/src/sys/external/mit/xen-include-public/dist/xen/include/public/io/ |
ring.h | 166 * requestor (front end) never has more than RING_SIZE()-1 193 #define RING_SIZE(_r) \ 198 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons)) 213 unsigned int rsp = RING_SIZE(_r) - \ 221 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \ 223 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) 228 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req)) 245 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp)) 249 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r)) 253 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r) [all...] |
/src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/ |
amdgpu_ih.c | 39 * @ring_size: ring size to allocate 47 unsigned ring_size, bool use_bus_addr) 53 rb_bufsz = order_base_2(ring_size / 4); 54 ring_size = (1 << rb_bufsz) * 4; 55 ih->ring_size = ring_size; 56 ih->ptr_mask = ih->ring_size - 1; 70 const bus_size_t size = ih->ring_size + 8; 102 ih->ring = dma_alloc_coherent(adev->dev, ih->ring_size + 8, 109 ih->wptr_addr = dma_addr + ih->ring_size; [all...] |
amdgpu_ih.h | 39 unsigned ring_size; member in struct:amdgpu_ih_ring 79 unsigned ring_size, bool use_bus_addr);
|
amdgpu_vega10_ih.c | 68 if (adev->irq.ih1.ring_size) { 84 if (adev->irq.ih2.ring_size) { 129 if (adev->irq.ih1.ring_size) { 149 if (adev->irq.ih2.ring_size) { 173 int rb_bufsz = order_base_2(ih->ring_size / 4); 282 if (ih->ring_size) { 312 if (ih->ring_size) { 502 if ((v < ih->ring_size) && (v != ih->rptr))
|
amdgpu_psp_v10_0.c | 153 ring->ring_size = 0x1000; 154 ret = amdgpu_bo_create_kernel(adev, ring->ring_size, PAGE_SIZE, 160 ring->ring_size = 0; 182 psp_ring_reg = ring->ring_size;
|
amdgpu_ring.c | 318 ring->ring_size = roundup_pow_of_two(max_dw * 4 * sched_hw_submission); 320 ring->buf_mask = (ring->ring_size / 4) - 1; 325 r = amdgpu_bo_create_kernel(adev, ring->ring_size + ring->funcs->extra_dw, PAGE_SIZE, 473 if (*pos >= (ring->ring_size + 12)) 513 i_size_write(ent->d_inode, ring->ring_size + 12);
|
amdgpu_psp_v12_0.c | 222 ring->ring_size = 0x1000; 223 ret = amdgpu_bo_create_kernel(adev, ring->ring_size, PAGE_SIZE, 229 ring->ring_size = 0; 278 psp_ring_reg = ring->ring_size;
|
amdgpu_test.c | 55 n -= adev->rings[i]->ring_size; 59 n -= adev->irq.ih.ring_size;
|
amdgpu_psp_v3_1.c | 255 ring->ring_size = 0x1000; 256 ret = amdgpu_bo_create_kernel(adev, ring->ring_size, PAGE_SIZE, 262 ring->ring_size = 0; 345 psp_ring_reg = ring->ring_size;
|
amdgpu_ring.h | 193 unsigned ring_size; member in struct:amdgpu_ring 270 unsigned ring_size, struct amdgpu_irq_src *irq_src,
|
amdgpu_vce_v2_0.c | 253 WREG32(mmVCE_RB_SIZE, ring->ring_size / 4); 260 WREG32(mmVCE_RB_SIZE2, ring->ring_size / 4);
|
amdgpu_vcn_v2_5.c | 856 rb_bufsz = order_base_2(ring->ring_size); 1036 rb_bufsz = order_base_2(ring->ring_size); 1061 WREG32_SOC15(UVD, i, mmUVD_RB_SIZE, ring->ring_size / 4); 1068 WREG32_SOC15(UVD, i, mmUVD_RB_SIZE2, ring->ring_size / 4); 1236 ring->ring_size / 4); 1250 rb_bufsz = order_base_2(ring->ring_size); 1402 WREG32_SOC15(UVD, inst_idx, mmUVD_RB_SIZE, ring->ring_size / 4); 1409 WREG32_SOC15(UVD, inst_idx, mmUVD_RB_SIZE2, ring->ring_size / 4);
|
amdgpu_cik_ih.c | 132 rb_bufsz = order_base_2(adev->irq.ih.ring_size / 4);
|
amdgpu_psp_v11_0.c | 436 ring->ring_size = 0x1000; 437 ret = amdgpu_bo_create_kernel(adev, ring->ring_size, PAGE_SIZE, 443 ring->ring_size = 0; 534 psp_ring_reg = ring->ring_size;
|
amdgpu_si_ih.c | 80 rb_bufsz = order_base_2(adev->irq.ih.ring_size / 4);
|
amdgpu_vce_v4_0.c | 245 ring->ring_size / 4); 353 WREG32(SOC15_REG_OFFSET(VCE, 0, mmVCE_RB_SIZE), ring->ring_size / 4); 361 WREG32(SOC15_REG_OFFSET(VCE, 0, mmVCE_RB_SIZE2), ring->ring_size / 4); 369 WREG32(SOC15_REG_OFFSET(VCE, 0, mmVCE_RB_SIZE3), ring->ring_size / 4);
|
/src/sys/external/bsd/drm2/dist/drm/radeon/ |
radeon_ring.c | 91 /* This works because ring_size is a power of 2 */ 92 ring->ring_free_dw = rptr + (ring->ring_size / 4); 97 ring->ring_free_dw = ring->ring_size / 4; 118 if (ndw > (ring->ring_size / 4)) 317 size = ring->wptr + (ring->ring_size / 4); 377 * @ring_size: size of the ring 384 int radeon_ring_init(struct radeon_device *rdev, struct radeon_ring *ring, unsigned ring_size, 389 ring->ring_size = ring_size; 394 r = radeon_bo_create(rdev, ring->ring_size, PAGE_SIZE, true [all...] |
radeon_vce_v1_0.c | 307 WREG32(VCE_RB_SIZE, ring->ring_size / 4); 314 WREG32(VCE_RB_SIZE2, ring->ring_size / 4);
|
radeon_ni.c | 1701 rb_cntl = order_base_2(ring->ring_size / 8); 2054 rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_size = 0; 2062 if (!rdev->has_uvd || !rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_size) 2066 r = radeon_ring_init(rdev, ring, ring->ring_size, 0, PACKET0(UVD_NO_OP, 0)); 2134 rdev->ring[TN_RING_TYPE_VCE1_INDEX].ring_size = 0; 2135 rdev->ring[TN_RING_TYPE_VCE2_INDEX].ring_size = 0; 2143 if (!rdev->has_vce || !rdev->ring[TN_RING_TYPE_VCE1_INDEX].ring_size) 2147 r = radeon_ring_init(rdev, ring, ring->ring_size, 0, 0x0); 2153 r = radeon_ring_init(rdev, ring, ring->ring_size, 0, 0x0); 2261 r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP_RPTR_OFFSET [all...] |
/src/sys/external/bsd/drm2/dist/drm/r128/ |
r128_ioc32.c | 50 int ring_size; member in struct:drm_r128_init32 82 init.ring_size = init32.ring_size;
|
/src/sys/external/bsd/drm2/dist/include/uapi/drm/ |
i810_drm.h | 119 unsigned int ring_size; member in struct:_drm_i810_init 139 unsigned int ring_size; member in struct:_drm_i810_pre12_init
|
/src/sys/dev/pci/ |
if_enavar.h | 116 #define ENA_TX_RING_IDX_NEXT(idx, ring_size) (((idx) + 1) & ((ring_size) - 1)) 118 #define ENA_RX_RING_IDX_NEXT(idx, ring_size) (((idx) + 1) & ((ring_size) - 1)) 300 int ring_size; /* number of tx/rx_buffer_info's entries */ member in struct:ena_ring
|
if_ena.c | 554 txr->ring_size = adapter->tx_ring_size; 568 rxr->ring_size = adapter->rx_ring_size; 684 size = sizeof(struct ena_tx_buffer) * tx_ring->ring_size; 687 size = sizeof(uint16_t) * tx_ring->ring_size; 691 for (i = 0; i < tx_ring->ring_size; i++) 705 for (i = 0; i < tx_ring->ring_size; i++) { 723 i = tx_ring->ring_size; 733 size = sizeof(uint16_t) * tx_ring->ring_size; 736 size = sizeof(struct ena_tx_buffer) * tx_ring->ring_size; 767 for (int i = 0; i < tx_ring->ring_size; i++) [all...] |
/src/sys/external/bsd/drm/dist/shared-core/ |
r128_cce.c | 544 + init->ring_size / sizeof(u32)); 545 dev_priv->ring.size = init->ring_size; 546 dev_priv->ring.size_l2qw = drm_order(init->ring_size / 8);
|
r128_drm.h | 229 int ring_size; member in struct:drm_r128_init
|