Home
last modified time | relevance | path

Searched refs:RING_SIZE (Results 1 – 5 of 5) sorted by relevance

/freebsd/sys/contrib/xen/io/
H A Dring.h197 #define RING_SIZE(_r) \ macro
202 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons))
217 unsigned int rsp = RING_SIZE(_r) - \
225 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \
227 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt)))
232 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req))
235 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp))
256 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r))
260 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
264 (((_prod) - (_r)->rsp_cons) > RING_SIZE(_r))
/freebsd/sys/dev/qat/include/common/
H A Dadf_transport_access_macros.h69 #define ADF_MAX_INFLIGHTS(RING_SIZE, MSG_SIZE) \ argument
70 ((((1 << (RING_SIZE - 1)) << 3) >> ADF_SIZE_TO_POW(MSG_SIZE)) - 1)
/freebsd/sys/dev/qat_c2xxx/
H A Dqatvar.h157 #define QAT_MAX_INFLIGHTS(RING_SIZE, MSG_SIZE) \ argument
158 ((((1 << (RING_SIZE - 1)) << 3) >> QAT_SIZE_TO_POW(MSG_SIZE)) - 1)
/freebsd/sys/dev/xen/netback/
H A Dnetback_unit_tests.c606 rsize = RING_SIZE(&xnb_unit_pvt.txf); in xnb_ring2pkt_wraps()
909 rsize = RING_SIZE(&xnb_unit_pvt.txf); in xnb_txpkt2rsp_wraps()
H A Dnetback.c124 unsigned int rsp = RING_SIZE(_r) - \