Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/cxgbe/tom/t4_tom.h
Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | struct pageset { | ||||
u_int vm_timestamp; | u_int vm_timestamp; | ||||
}; | }; | ||||
TAILQ_HEAD(pagesetq, pageset); | TAILQ_HEAD(pagesetq, pageset); | ||||
#define PS_WIRED 0x0001 /* Pages wired rather than held. */ | #define PS_WIRED 0x0001 /* Pages wired rather than held. */ | ||||
#define PS_PPODS_WRITTEN 0x0002 /* Page pods written to the card. */ | #define PS_PPODS_WRITTEN 0x0002 /* Page pods written to the card. */ | ||||
#define EXT_FLAG_AIOTX EXT_FLAG_VENDOR1 | |||||
#define IS_AIOTX_MBUF(m) \ | |||||
((m)->m_flags & M_EXT && (m)->m_ext.ext_flags & EXT_FLAG_AIOTX) | |||||
struct ddp_buffer { | struct ddp_buffer { | ||||
struct pageset *ps; | struct pageset *ps; | ||||
struct kaiocb *job; | struct kaiocb *job; | ||||
int cancel_pending; | int cancel_pending; | ||||
}; | }; | ||||
struct ddp_pcb { | struct ddp_pcb { | ||||
u_int flags; | u_int flags; | ||||
struct ddp_buffer db[2]; | struct ddp_buffer db[2]; | ||||
TAILQ_HEAD(, pageset) cached_pagesets; | TAILQ_HEAD(, pageset) cached_pagesets; | ||||
TAILQ_HEAD(, kaiocb) aiojobq; | TAILQ_HEAD(, kaiocb) aiojobq; | ||||
u_int waiting_count; | u_int waiting_count; | ||||
u_int active_count; | u_int active_count; | ||||
u_int cached_count; | u_int cached_count; | ||||
int active_id; /* the currently active DDP buffer */ | int active_id; /* the currently active DDP buffer */ | ||||
struct task requeue_task; | struct task requeue_task; | ||||
struct kaiocb *queueing; | struct kaiocb *queueing; | ||||
struct mtx lock; | struct mtx lock; | ||||
}; | |||||
struct aiotx_buffer { | |||||
struct pageset ps; | |||||
struct kaiocb *job; | |||||
int refcount; | |||||
}; | }; | ||||
struct toepcb { | struct toepcb { | ||||
TAILQ_ENTRY(toepcb) link; /* toep_list */ | TAILQ_ENTRY(toepcb) link; /* toep_list */ | ||||
u_int flags; /* miscellaneous flags */ | u_int flags; /* miscellaneous flags */ | ||||
int refcount; | int refcount; | ||||
struct tom_data *td; | struct tom_data *td; | ||||
struct inpcb *inp; /* backpointer to host stack's PCB */ | struct inpcb *inp; /* backpointer to host stack's PCB */ | ||||
▲ Show 20 Lines • Show All 280 Lines • Show Last 20 Lines |