Home
last modified time | relevance | path

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

/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))
/qemu/hw/usb/
H A Dxen-usb.c600 if ((RING_SIZE(ring) - ring->rsp_prod_pvt - ring->req_cons) == 0) { in usbback_hotplug_notify()