/dports/games/wolfpack/empire-4.4.1/src/client/ |
H A D | ringbuf.c | 82 assert(-RING_SIZE - 1 <= n && n <= RING_SIZE); in ring_peek() 95 return r->buf[idx % RING_SIZE]; in ring_peek() 108 return r->buf[r->cons++ % RING_SIZE]; in ring_getc() 118 if (r->prod - r->cons == RING_SIZE) in ring_putc() 187 unsigned cons = r->cons % RING_SIZE; in ring_from_file() 188 unsigned prod = r->prod % RING_SIZE; in ring_from_file() 193 if (r->prod == r->cons + RING_SIZE) in ring_from_file() 199 iov[0].iov_len = RING_SIZE - prod; in ring_from_file() 224 unsigned cons = r->cons % RING_SIZE; in ring_to_iovec() 225 unsigned prod = r->prod % RING_SIZE; in ring_to_iovec() [all …]
|
/dports/emulators/qemu60/qemu-6.0.0/roms/edk2/OvmfPkg/Include/IndustryStandard/Xen/io/ |
H A D | ring.h | 162 #define RING_SIZE(_r) \ macro 167 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons)) 182 UINT32 rsp = RING_SIZE(_r) - \ 190 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \ 192 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) 197 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req)) 200 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp)) 204 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r)) 208 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
|
/dports/emulators/qemu42/qemu-4.2.1/roms/ipxe/src/include/xen/io/ |
H A D | ring.h | 180 #define RING_SIZE(_r) \ macro 185 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons)) 200 unsigned int rsp = RING_SIZE(_r) - \ 208 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \ 210 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) 215 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req)) 218 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp)) 222 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r)) 226 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
|
/dports/emulators/qemu42/qemu-4.2.1/roms/edk2/OvmfPkg/Include/IndustryStandard/Xen/io/ |
H A D | ring.h | 162 #define RING_SIZE(_r) \ macro 167 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons)) 182 UINT32 rsp = RING_SIZE(_r) - \ 190 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \ 192 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) 197 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req)) 200 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp)) 204 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r)) 208 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
|
/dports/emulators/qemu/qemu-6.2.0/roms/edk2/OvmfPkg/Include/IndustryStandard/Xen/io/ |
H A D | ring.h | 162 #define RING_SIZE(_r) \ macro 167 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons)) 182 UINT32 rsp = RING_SIZE(_r) - \ 190 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \ 192 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) 197 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req)) 200 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp)) 204 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r)) 208 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
|
/dports/emulators/qemu5/qemu-5.2.0/roms/ipxe/src/include/xen/io/ |
H A D | ring.h | 180 #define RING_SIZE(_r) \ macro 185 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons)) 200 unsigned int rsp = RING_SIZE(_r) - \ 208 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \ 210 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) 215 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req)) 218 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp)) 222 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r)) 226 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
|
/dports/emulators/qemu-powernv/qemu-powernv-3.0.50/roms/ipxe/src/include/xen/io/ |
H A D | ring.h | 180 #define RING_SIZE(_r) \ macro 185 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons)) 200 unsigned int rsp = RING_SIZE(_r) - \ 208 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \ 210 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) 215 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req)) 218 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp)) 222 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r)) 226 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
|
/dports/emulators/qemu-utils/qemu-4.2.1/roms/ipxe/src/include/xen/io/ |
H A D | ring.h | 180 #define RING_SIZE(_r) \ macro 185 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons)) 200 unsigned int rsp = RING_SIZE(_r) - \ 208 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \ 210 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) 215 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req)) 218 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp)) 222 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r)) 226 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
|
/dports/emulators/qemu5/qemu-5.2.0/roms/edk2/OvmfPkg/Include/IndustryStandard/Xen/io/ |
H A D | ring.h | 162 #define RING_SIZE(_r) \ macro 167 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons)) 182 UINT32 rsp = RING_SIZE(_r) - \ 190 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \ 192 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) 197 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req)) 200 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp)) 204 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r)) 208 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
|
/dports/net/ipxe/ipxe-2265a65/src/include/xen/io/ |
H A D | ring.h | 180 #define RING_SIZE(_r) \ macro 185 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons)) 200 unsigned int rsp = RING_SIZE(_r) - \ 208 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \ 210 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) 215 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req)) 218 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp)) 222 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r)) 226 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
|
/dports/sysutils/uefi-edk2-qemu/edk2-edk2-stable201911/OvmfPkg/Include/IndustryStandard/Xen/io/ |
H A D | ring.h | 162 #define RING_SIZE(_r) \ macro 167 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons)) 182 UINT32 rsp = RING_SIZE(_r) - \ 190 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \ 192 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) 197 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req)) 200 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp)) 204 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r)) 208 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
|
/dports/sysutils/uefi-edk2-bhyve/edk2-edk2-stable202102/OvmfPkg/Include/IndustryStandard/Xen/io/ |
H A D | ring.h | 162 #define RING_SIZE(_r) \ macro 167 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons)) 182 UINT32 rsp = RING_SIZE(_r) - \ 190 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \ 192 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) 197 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req)) 200 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp)) 204 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r)) 208 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
|
/dports/emulators/qemu-guest-agent/qemu-5.0.1/roms/ipxe/src/include/xen/io/ |
H A D | ring.h | 180 #define RING_SIZE(_r) \ macro 185 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons)) 200 unsigned int rsp = RING_SIZE(_r) - \ 208 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \ 210 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) 215 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req)) 218 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp)) 222 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r)) 226 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
|
/dports/emulators/qemu-utils/qemu-4.2.1/roms/edk2/OvmfPkg/Include/IndustryStandard/Xen/io/ |
H A D | ring.h | 162 #define RING_SIZE(_r) \ macro 167 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons)) 182 UINT32 rsp = RING_SIZE(_r) - \ 190 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \ 192 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) 197 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req)) 200 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp)) 204 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r)) 208 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
|
/dports/emulators/qemu-guest-agent/qemu-5.0.1/roms/edk2/OvmfPkg/Include/IndustryStandard/Xen/io/ |
H A D | ring.h | 162 #define RING_SIZE(_r) \ macro 167 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons)) 182 UINT32 rsp = RING_SIZE(_r) - \ 190 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \ 192 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) 197 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req)) 200 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp)) 204 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r)) 208 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
|
/dports/emulators/qemu/qemu-6.2.0/roms/ipxe/src/include/xen/io/ |
H A D | ring.h | 180 #define RING_SIZE(_r) \ macro 185 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons)) 200 unsigned int rsp = RING_SIZE(_r) - \ 208 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \ 210 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) 215 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req)) 218 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp)) 222 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r)) 226 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
|
/dports/sysutils/edk2/edk2-edk2-stable202102/OvmfPkg/Include/IndustryStandard/Xen/io/ |
H A D | ring.h | 162 #define RING_SIZE(_r) \ 167 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons)) 182 UINT32 rsp = RING_SIZE(_r) - \ 190 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \ 192 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) 197 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req)) 200 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp)) 204 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r)) 208 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
|
/dports/emulators/qemu60/qemu-6.0.0/roms/ipxe/src/include/xen/io/ |
H A D | ring.h | 180 #define RING_SIZE(_r) \ macro 185 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons)) 200 unsigned int rsp = RING_SIZE(_r) - \ 208 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \ 210 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) 215 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req)) 218 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp)) 222 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r)) 226 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
|
/dports/emulators/qemu42/qemu-4.2.1/include/hw/xen/interface/io/ |
H A D | ring.h | 192 #define RING_SIZE(_r) \ macro 197 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons)) 212 unsigned int rsp = RING_SIZE(_r) - \ 220 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \ 222 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) 227 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req)) 244 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp)) 248 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r)) 252 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
|
/dports/sysutils/u-boot-nanopi-neo2/u-boot-2021.07/include/xen/interface/io/ |
H A D | ring.h | 170 #define RING_SIZE(_r) \ macro 175 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons)) 190 unsigned int rsp = RING_SIZE(_r) - \ 198 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \ 200 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) 205 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req)) 222 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp)) 226 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r)) 230 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
|
/dports/sysutils/u-boot-olimex-a20-som-evb/u-boot-2021.07/include/xen/interface/io/ |
H A D | ring.h | 170 #define RING_SIZE(_r) \ macro 175 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons)) 190 unsigned int rsp = RING_SIZE(_r) - \ 198 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \ 200 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) 205 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req)) 222 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp)) 226 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r)) 230 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
|
/dports/sysutils/u-boot-olinuxino-lime2/u-boot-2021.07/include/xen/interface/io/ |
H A D | ring.h | 170 #define RING_SIZE(_r) \ macro 175 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons)) 190 unsigned int rsp = RING_SIZE(_r) - \ 198 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \ 200 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) 205 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req)) 222 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp)) 226 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r)) 230 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
|
/dports/sysutils/u-boot-olinuxino-lime/u-boot-2021.07/include/xen/interface/io/ |
H A D | ring.h | 170 #define RING_SIZE(_r) \ macro 175 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons)) 190 unsigned int rsp = RING_SIZE(_r) - \ 198 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \ 200 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) 205 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req)) 222 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp)) 226 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r)) 230 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
|
/dports/sysutils/u-boot-wandboard/u-boot-2021.07/include/xen/interface/io/ |
H A D | ring.h | 170 #define RING_SIZE(_r) \ macro 175 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons)) 190 unsigned int rsp = RING_SIZE(_r) - \ 198 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \ 200 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) 205 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req)) 222 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp)) 226 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r)) 230 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
|
/dports/emulators/qemu-utils/qemu-4.2.1/include/hw/xen/interface/io/ |
H A D | ring.h | 192 #define RING_SIZE(_r) \ macro 197 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons)) 212 unsigned int rsp = RING_SIZE(_r) - \ 220 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \ 222 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) 227 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req)) 244 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp)) 248 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r)) 252 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
|