Home
last modified time | relevance | path

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

/openbmc/qemu/include/hw/xen/interface/io/
H A Dring.h184 #define RING_SIZE(_r) \ macro
189 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons))
204 unsigned int rsp = RING_SIZE(_r) - \
212 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \
214 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt)))
233 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req))
236 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp))
257 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r))
261 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
265 (((_prod) - (_r)->rsp_cons) > RING_SIZE(_r))
/openbmc/linux/include/xen/interface/io/
H A Dring.h163 #define RING_SIZE(_r) \ macro
168 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons))
182 unsigned int rsp = RING_SIZE(_r) - \
194 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req))
197 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp))
218 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r))
222 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
226 (((_prod) - (_r)->rsp_cons) > RING_SIZE(_r))
/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_transport_access_macros.h48 #define ADF_MAX_INFLIGHTS(RING_SIZE, MSG_SIZE) \ argument
49 ((((1 << (RING_SIZE - 1)) << 3) >> ADF_SIZE_TO_POW(MSG_SIZE)) - 1)
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_l4lb_noinline.c107 #define RING_SIZE 2 macro
111 #define CH_RINGS_SIZE (MAX_VIPS * RING_SIZE)
216 __u32 key = RING_SIZE * vip_info->vip_num + hash % RING_SIZE; in get_packet_dst()
H A Dtest_l4lb.c111 #define RING_SIZE 2 macro
115 #define CH_RINGS_SIZE (MAX_VIPS * RING_SIZE)
220 __u32 hash = get_packet_hash(pckt, is_ipv6) % RING_SIZE; in get_packet_dst()
221 __u32 key = RING_SIZE * vip_info->vip_num + hash; in get_packet_dst()
H A Dtest_l4lb_noinline_dynptr.c109 #define RING_SIZE 2 macro
113 #define CH_RINGS_SIZE (MAX_VIPS * RING_SIZE)
218 __u32 key = RING_SIZE * vip_info->vip_num + hash % RING_SIZE; in get_packet_dst()
/openbmc/linux/drivers/net/xen-netback/
H A Dnetback.c1556 if (req_prod - rsp_prod > RING_SIZE(&queue->tx)) in xenvif_map_frontend_data_rings()
1571 if (req_prod - rsp_prod > RING_SIZE(&queue->rx)) in xenvif_map_frontend_data_rings()
H A Dinterface.c635 if (req_prod - rsp_prod > RING_SIZE(&vif->ctrl)) in xenvif_connect_ctrl()
/openbmc/linux/Documentation/networking/
H A Daf_xdp.rst605 *item = ring->desc[*ring->consumer & (RING_SIZE - 1)];
612 u32 free_entries = RING_SIZE - (*ring->producer - *ring->consumer);
617 ring->desc[*ring->producer & (RING_SIZE - 1)] = *item;
/openbmc/qemu/hw/usb/
H A Dxen-usb.c600 if ((RING_SIZE(ring) - ring->rsp_prod_pvt - ring->req_cons) == 0) { in usbback_hotplug_notify()
/openbmc/linux/drivers/xen/
H A Dpvcalls-front.c127 *req_id = bedata->ring.req_prod_pvt & (RING_SIZE(&bedata->ring) - 1); in get_request()
/openbmc/linux/drivers/net/
H A Dxen-netfront.c419 if (id >= RING_SIZE(&queue->tx)) { in xennet_tx_buf_gc()