Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/cxgbe/tom/t4_tom.h
Show First 20 Lines • Show All 325 Lines • ▼ Show 20 Lines | |||||
static inline struct adapter * | static inline struct adapter * | ||||
td_adapter(struct tom_data *td) | td_adapter(struct tom_data *td) | ||||
{ | { | ||||
return (td->tod.tod_softc); | return (td->tod.tod_softc); | ||||
} | } | ||||
static inline void | static inline void | ||||
set_mbuf_raw_wr(struct mbuf *m, bool raw) | |||||
{ | |||||
M_ASSERTPKTHDR(m); | |||||
m->m_pkthdr.PH_per.eight[6] = raw; | |||||
} | |||||
static inline bool | |||||
mbuf_raw_wr(struct mbuf *m) | |||||
{ | |||||
M_ASSERTPKTHDR(m); | |||||
return (m->m_pkthdr.PH_per.eight[6]); | |||||
} | |||||
static inline void | |||||
set_mbuf_ulp_submode(struct mbuf *m, uint8_t ulp_submode) | set_mbuf_ulp_submode(struct mbuf *m, uint8_t ulp_submode) | ||||
{ | { | ||||
M_ASSERTPKTHDR(m); | M_ASSERTPKTHDR(m); | ||||
m->m_pkthdr.PH_per.eight[0] = ulp_submode; | m->m_pkthdr.PH_per.eight[0] = ulp_submode; | ||||
} | } | ||||
static inline uint8_t | static inline uint8_t | ||||
▲ Show 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | |||||
int t4_init_ppod_region(struct ppod_region *, struct t4_range *, u_int, | int t4_init_ppod_region(struct ppod_region *, struct t4_range *, u_int, | ||||
const char *); | const char *); | ||||
void t4_free_ppod_region(struct ppod_region *); | void t4_free_ppod_region(struct ppod_region *); | ||||
int t4_alloc_page_pods_for_ps(struct ppod_region *, struct pageset *); | int t4_alloc_page_pods_for_ps(struct ppod_region *, struct pageset *); | ||||
int t4_alloc_page_pods_for_buf(struct ppod_region *, vm_offset_t, int, | int t4_alloc_page_pods_for_buf(struct ppod_region *, vm_offset_t, int, | ||||
struct ppod_reservation *); | struct ppod_reservation *); | ||||
int t4_write_page_pods_for_ps(struct adapter *, struct sge_wrq *, int, | int t4_write_page_pods_for_ps(struct adapter *, struct sge_wrq *, int, | ||||
struct pageset *); | struct pageset *); | ||||
int t4_write_page_pods_for_buf(struct adapter *, struct sge_wrq *, int, | int t4_write_page_pods_for_buf(struct adapter *, struct toepcb *, | ||||
struct ppod_reservation *, vm_offset_t, int); | struct ppod_reservation *, vm_offset_t, int); | ||||
void t4_free_page_pods(struct ppod_reservation *); | void t4_free_page_pods(struct ppod_reservation *); | ||||
int t4_soreceive_ddp(struct socket *, struct sockaddr **, struct uio *, | int t4_soreceive_ddp(struct socket *, struct sockaddr **, struct uio *, | ||||
struct mbuf **, struct mbuf **, int *); | struct mbuf **, struct mbuf **, int *); | ||||
int t4_aio_queue_ddp(struct socket *, struct kaiocb *); | int t4_aio_queue_ddp(struct socket *, struct kaiocb *); | ||||
void t4_ddp_mod_load(void); | void t4_ddp_mod_load(void); | ||||
void t4_ddp_mod_unload(void); | void t4_ddp_mod_unload(void); | ||||
void ddp_assert_empty(struct toepcb *); | void ddp_assert_empty(struct toepcb *); | ||||
Show All 28 Lines |