ring_size 475 arch/powerpc/include/asm/pasemi_dma.h unsigned int ring_size; /* size of allocated ring */ ring_size 505 arch/powerpc/include/asm/pasemi_dma.h extern int pasemi_dma_alloc_ring(struct pasemi_dmachan *chan, int ring_size); ring_size 240 arch/powerpc/platforms/pasemi/dma_lib.c int pasemi_dma_alloc_ring(struct pasemi_dmachan *chan, int ring_size) ring_size 244 arch/powerpc/platforms/pasemi/dma_lib.c chan->ring_size = ring_size; ring_size 247 arch/powerpc/platforms/pasemi/dma_lib.c ring_size * sizeof(u64), ring_size 266 arch/powerpc/platforms/pasemi/dma_lib.c dma_free_coherent(&dma_pdev->dev, chan->ring_size * sizeof(u64), ring_size 269 arch/powerpc/platforms/pasemi/dma_lib.c chan->ring_size = 0; ring_size 307 arch/sparc/include/asm/vio.h unsigned int ring_size) ring_size 310 arch/sparc/include/asm/vio.h ((dr->prod - dr->cons) & (ring_size - 1)) - 1); ring_size 1676 drivers/block/xen-blkfront.c unsigned long ring_size = info->nr_ring_pages * XEN_PAGE_SIZE; ring_size 1683 drivers/block/xen-blkfront.c get_order(ring_size)); ring_size 1689 drivers/block/xen-blkfront.c FRONT_RING_INIT(&rinfo->ring, sring, ring_size); ring_size 1693 drivers/block/xen-blkfront.c free_pages((unsigned long)sring, get_order(ring_size)); ring_size 52 drivers/crypto/amcc/crypto4xx_core.c union ce_ring_size ring_size; ring_size 86 drivers/crypto/amcc/crypto4xx_core.c ring_size.w = 0; ring_size 87 drivers/crypto/amcc/crypto4xx_core.c ring_size.bf.ring_offset = PPC4XX_PD_SIZE; ring_size 88 drivers/crypto/amcc/crypto4xx_core.c ring_size.bf.ring_size = PPC4XX_NUM_PD; ring_size 89 drivers/crypto/amcc/crypto4xx_core.c writel(ring_size.w, dev->ce_base + CRYPTO4XX_RING_SIZE); ring_size 171 drivers/crypto/amcc/crypto4xx_reg_def.h u32 ring_size:10; ring_size 120 drivers/crypto/qat/qat_common/adf_transport.c ADF_MAX_INFLIGHTS(ring->ring_size, ring->msg_size)) { ring_size 130 drivers/crypto/qat/qat_common/adf_transport.c ADF_RING_SIZE_MODULO(ring->ring_size)); ring_size 148 drivers/crypto/qat/qat_common/adf_transport.c ADF_RING_SIZE_MODULO(ring->ring_size)); ring_size 161 drivers/crypto/qat/qat_common/adf_transport.c uint32_t ring_config = BUILD_RING_CONFIG(ring->ring_size); ring_size 170 drivers/crypto/qat/qat_common/adf_transport.c BUILD_RESP_RING_CONFIG(ring->ring_size, ring_size 185 drivers/crypto/qat/qat_common/adf_transport.c ADF_SIZE_TO_RING_SIZE_IN_BYTES(ring->ring_size); ring_size 209 drivers/crypto/qat/qat_common/adf_transport.c ring_base = BUILD_RING_BASE_ADDR(ring->dma_addr, ring->ring_size); ring_size 219 drivers/crypto/qat/qat_common/adf_transport.c ADF_SIZE_TO_RING_SIZE_IN_BYTES(ring->ring_size); ring_size 282 drivers/crypto/qat/qat_common/adf_transport.c ring->ring_size = adf_verify_ring_size(msg_size, num_msgs); ring_size 65 drivers/crypto/qat/qat_common/adf_transport_debug.c if (*pos >= (ADF_SIZE_TO_RING_SIZE_IN_BYTES(ring->ring_size) / ring_size 77 drivers/crypto/qat/qat_common/adf_transport_debug.c if (*pos >= (ADF_SIZE_TO_RING_SIZE_IN_BYTES(ring->ring_size) / ring_size 109 drivers/crypto/qat/qat_common/adf_transport_debug.c ADF_SIZE_TO_RING_SIZE_IN_BYTES(ring->ring_size), ring_size 69 drivers/crypto/qat/qat_common/adf_transport_internal.h uint8_t ring_size; ring_size 117 drivers/dma/ioat/sysfs.c static struct ioat_sysfs_entry ring_size_attr = __ATTR_RO(ring_size); ring_size 68 drivers/dma/qcom/hidma_ll.c #define HIDMA_INCREMENT_ITERATOR(iter, size, ring_size) \ ring_size 71 drivers/dma/qcom/hidma_ll.c if (iter >= ring_size) \ ring_size 72 drivers/dma/qcom/hidma_ll.c iter -= ring_size; \ ring_size 42 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c unsigned ring_size, bool use_bus_addr) ring_size 48 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c rb_bufsz = order_base_2(ring_size / 4); ring_size 49 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c ring_size = (1 << rb_bufsz) * 4; ring_size 50 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c ih->ring_size = ring_size; ring_size 51 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c ih->ptr_mask = ih->ring_size - 1; ring_size 64 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c ih->ring = dma_alloc_coherent(adev->dev, ih->ring_size + 8, ring_size 69 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c memset((void *)ih->ring, 0, ih->ring_size + 8); ring_size 71 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c ih->wptr_addr = dma_addr + ih->ring_size; ring_size 72 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c ih->wptr_cpu = &ih->ring[ih->ring_size / 4]; ring_size 73 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c ih->rptr_addr = dma_addr + ih->ring_size + 4; ring_size 74 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c ih->rptr_cpu = &ih->ring[(ih->ring_size / 4) + 1]; ring_size 88 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c r = amdgpu_bo_create_kernel(adev, ih->ring_size, PAGE_SIZE, ring_size 124 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c dma_free_coherent(adev->dev, ih->ring_size + 8, ring_size 37 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h unsigned ring_size; ring_size 73 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h unsigned ring_size, bool use_bus_addr); ring_size 68 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h uint32_t ring_size; ring_size 1017 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c data->rptr) % data->ring_size; ring_size 1068 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c data->wptr) % data->ring_size; ring_size 1125 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c data->ring_size = 64 * data->aligned_element_size; ring_size 1126 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c data->ring = kmalloc(data->ring_size, GFP_KERNEL); ring_size 379 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h unsigned int ring_size; ring_size 311 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c ring->ring_size = roundup_pow_of_two(max_dw * 4 * sched_hw_submission); ring_size 313 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c ring->buf_mask = (ring->ring_size / 4) - 1; ring_size 318 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c r = amdgpu_bo_create_kernel(adev, ring->ring_size + ring->funcs->extra_dw, PAGE_SIZE, ring_size 464 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c if (*pos >= (ring->ring_size + 12)) ring_size 504 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c i_size_write(ent->d_inode, ring->ring_size + 12); ring_size 189 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h unsigned ring_size; ring_size 266 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h unsigned ring_size, struct amdgpu_irq_src *irq_src, ring_size 50 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c n -= adev->rings[i]->ring_size; ring_size 54 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c n -= adev->irq.ih.ring_size; ring_size 127 drivers/gpu/drm/amd/amdgpu/cik_ih.c rb_bufsz = order_base_2(adev->irq.ih.ring_size / 4); ring_size 462 drivers/gpu/drm/amd/amdgpu/cik_sdma.c rb_bufsz = order_base_2(ring->ring_size / 4); ring_size 129 drivers/gpu/drm/amd/amdgpu/cz_ih.c rb_bufsz = order_base_2(adev->irq.ih.ring_size / 4); ring_size 2831 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c rb_bufsz = order_base_2(ring->ring_size / 8); ring_size 2872 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c rb_bufsz = order_base_2(ring->ring_size / 8); ring_size 3074 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c rb_bufsz = order_base_2(ring->ring_size / 4) - 1; ring_size 3329 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c (order_base_2(ring->ring_size / 4) - 1)); ring_size 2110 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c rb_bufsz = order_base_2(ring->ring_size / 8); ring_size 2199 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c rb_bufsz = order_base_2(ring->ring_size / 8); ring_size 2219 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c rb_bufsz = order_base_2(ring->ring_size / 8); ring_size 2622 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c rb_bufsz = order_base_2(ring->ring_size / 8); ring_size 2973 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c order_base_2(ring->ring_size / 8); ring_size 4306 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c rb_bufsz = order_base_2(ring->ring_size / 8); ring_size 4511 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c (order_base_2(ring->ring_size / 4) - 1)); ring_size 6482 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c ring->ring[offset] = (ring->ring_size >> 2) - offset + cur; ring_size 3214 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c rb_bufsz = order_base_2(ring->ring_size / 8); ring_size 3490 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c (order_base_2(ring->ring_size / 4) - 1)); ring_size 5402 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c ring->ring[offset] = (ring->ring_size>>2) - offset + cur; ring_size 129 drivers/gpu/drm/amd/amdgpu/iceland_ih.c rb_bufsz = order_base_2(adev->irq.ih.ring_size / 4); ring_size 78 drivers/gpu/drm/amd/amdgpu/navi10_ih.c int rb_bufsz = order_base_2(ih->ring_size / 4); ring_size 107 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c ring->ring_size = 0x1000; ring_size 108 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c ret = amdgpu_bo_create_kernel(adev, ring->ring_size, PAGE_SIZE, ring_size 114 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c ring->ring_size = 0; ring_size 136 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c psp_ring_reg = ring->ring_size; ring_size 201 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c ring->ring_size / sizeof(struct psp_gfx_rb_frame) - 1; ring_size 203 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c uint32_t ring_size_dw = ring->ring_size / 4; ring_size 380 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c ring->ring_size = 0x1000; ring_size 381 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c ret = amdgpu_bo_create_kernel(adev, ring->ring_size, PAGE_SIZE, ring_size 387 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c ring->ring_size = 0; ring_size 470 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c psp_ring_reg = ring->ring_size; ring_size 516 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c ring->ring_size / sizeof(struct psp_gfx_rb_frame) - 1; ring_size 518 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c uint32_t ring_size_dw = ring->ring_size / 4; ring_size 217 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c ring->ring_size = 0x1000; ring_size 218 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c ret = amdgpu_bo_create_kernel(adev, ring->ring_size, PAGE_SIZE, ring_size 224 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c ring->ring_size = 0; ring_size 273 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c psp_ring_reg = ring->ring_size; ring_size 346 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c ring->ring_size / sizeof(struct psp_gfx_rb_frame) - 1; ring_size 348 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c uint32_t ring_size_dw = ring->ring_size / 4; ring_size 250 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c ring->ring_size = 0x1000; ring_size 251 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c ret = amdgpu_bo_create_kernel(adev, ring->ring_size, PAGE_SIZE, ring_size 257 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c ring->ring_size = 0; ring_size 340 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c psp_ring_reg = ring->ring_size; ring_size 422 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c ring->ring_size / sizeof(struct psp_gfx_rb_frame) - 1; ring_size 424 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c uint32_t ring_size_dw = ring->ring_size / 4; ring_size 438 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c rb_bufsz = order_base_2(ring->ring_size / 4); ring_size 676 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c rb_bufsz = order_base_2(ring->ring_size / 4); ring_size 963 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c uint32_t rb_bufsz = order_base_2(ring->ring_size / 4); ring_size 641 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c rb_bufsz = order_base_2(ring->ring_size / 4); ring_size 145 drivers/gpu/drm/amd/amdgpu/si_dma.c rb_bufsz = order_base_2(ring->ring_size / 4); ring_size 75 drivers/gpu/drm/amd/amdgpu/si_ih.c rb_bufsz = order_base_2(adev->irq.ih.ring_size / 4); ring_size 125 drivers/gpu/drm/amd/amdgpu/tonga_ih.c rb_bufsz = order_base_2(adev->irq.ih.ring_size / 4); ring_size 367 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c rb_bufsz = order_base_2(ring->ring_size); ring_size 392 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c rb_bufsz = order_base_2(ring->ring_size); ring_size 811 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c rb_bufsz = order_base_2(ring->ring_size); ring_size 846 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c WREG32(mmUVD_RB_SIZE, ring->ring_size / 4); ring_size 853 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c WREG32(mmUVD_RB_SIZE2, ring->ring_size / 4); ring_size 894 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c size = order_base_2(ring->ring_size); ring_size 903 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c MMSCH_V1_0_INSERT_DIRECT_WT(SOC15_REG_OFFSET(UVD, i, mmUVD_RB_SIZE), ring->ring_size / 4); ring_size 1061 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c rb_bufsz = order_base_2(ring->ring_size); ring_size 1098 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c WREG32_SOC15(UVD, k, mmUVD_RB_SIZE, ring->ring_size / 4); ring_size 1105 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c WREG32_SOC15(UVD, k, mmUVD_RB_SIZE2, ring->ring_size / 4); ring_size 248 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c WREG32(mmVCE_RB_SIZE, ring->ring_size / 4); ring_size 255 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c WREG32(mmVCE_RB_SIZE2, ring->ring_size / 4); ring_size 285 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c WREG32(mmVCE_RB_SIZE, ring->ring_size / 4); ring_size 292 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c WREG32(mmVCE_RB_SIZE2, ring->ring_size / 4); ring_size 299 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c WREG32(mmVCE_RB_SIZE3, ring->ring_size / 4); ring_size 238 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c ring->ring_size / 4); ring_size 346 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c WREG32(SOC15_REG_OFFSET(VCE, 0, mmVCE_RB_SIZE), ring->ring_size / 4); ring_size 354 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c WREG32(SOC15_REG_OFFSET(VCE, 0, mmVCE_RB_SIZE2), ring->ring_size / 4); ring_size 362 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c WREG32(SOC15_REG_OFFSET(VCE, 0, mmVCE_RB_SIZE3), ring->ring_size / 4); ring_size 904 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c rb_bufsz = order_base_2(ring->ring_size); ring_size 942 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c WREG32_SOC15(UVD, 0, mmUVD_RB_SIZE, ring->ring_size / 4); ring_size 949 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c WREG32_SOC15(UVD, 0, mmUVD_RB_SIZE2, ring->ring_size / 4); ring_size 1077 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c rb_bufsz = order_base_2(ring->ring_size); ring_size 1263 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c WREG32_SOC15(UVD, 0, mmUVD_RB_SIZE, ring->ring_size / 4); ring_size 1270 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c WREG32_SOC15(UVD, 0, mmUVD_RB_SIZE2, ring->ring_size / 4); ring_size 722 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c WREG32_SOC15(UVD, 0, mmUVD_JRBC_RB_SIZE, ring->ring_size / 4); ring_size 1021 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c rb_bufsz = order_base_2(ring->ring_size); ring_size 1186 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c rb_bufsz = order_base_2(ring->ring_size); ring_size 1212 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c WREG32_SOC15(UVD, 0, mmUVD_RB_SIZE, ring->ring_size / 4); ring_size 1219 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c WREG32_SOC15(UVD, 0, mmUVD_RB_SIZE2, ring->ring_size / 4); ring_size 1364 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c WREG32_SOC15(UVD, 0, mmUVD_RB_SIZE, ring->ring_size / 4); ring_size 1371 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c WREG32_SOC15(UVD, 0, mmUVD_RB_SIZE2, ring->ring_size / 4); ring_size 668 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c WREG32_SOC15(UVD, i, mmUVD_JRBC_RB_SIZE, ring->ring_size / 4); ring_size 847 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c rb_bufsz = order_base_2(ring->ring_size); ring_size 872 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c WREG32_SOC15(UVD, i, mmUVD_RB_SIZE, ring->ring_size / 4); ring_size 879 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c WREG32_SOC15(UVD, i, mmUVD_RB_SIZE2, ring->ring_size / 4); ring_size 63 drivers/gpu/drm/amd/amdgpu/vega10_ih.c if (adev->irq.ih1.ring_size) { ring_size 79 drivers/gpu/drm/amd/amdgpu/vega10_ih.c if (adev->irq.ih2.ring_size) { ring_size 124 drivers/gpu/drm/amd/amdgpu/vega10_ih.c if (adev->irq.ih1.ring_size) { ring_size 144 drivers/gpu/drm/amd/amdgpu/vega10_ih.c if (adev->irq.ih2.ring_size) { ring_size 168 drivers/gpu/drm/amd/amdgpu/vega10_ih.c int rb_bufsz = order_base_2(ih->ring_size / 4); ring_size 275 drivers/gpu/drm/amd/amdgpu/vega10_ih.c if (ih->ring_size) { ring_size 305 drivers/gpu/drm/amd/amdgpu/vega10_ih.c if (ih->ring_size) { ring_size 495 drivers/gpu/drm/amd/amdgpu/vega10_ih.c if ((v < ih->ring_size) && (v != ih->rptr)) ring_size 167 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c if (!is_power_of_2(args->ring_size) && (args->ring_size != 0)) { ring_size 202 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c q_properties->queue_size = args->ring_size; ring_size 236 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c q_properties->queue_size, args->ring_size); ring_size 371 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c if (!is_power_of_2(args->ring_size) && (args->ring_size != 0)) { ring_size 377 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c properties.queue_size = args->ring_size; ring_size 363 drivers/gpu/drm/i810/i810_dma.c dev_priv->ring.Size = init->ring_size; ring_size 366 drivers/gpu/drm/i810/i810_dma.c dev_priv->ring.map.size = init->ring_size; ring_size 1177 drivers/gpu/drm/i915/gt/selftest_lrc.c int ring_size, count, i; ring_size 1189 drivers/gpu/drm/i915/gt/selftest_lrc.c ring_size = rq->wa_tail - rq->head; ring_size 1190 drivers/gpu/drm/i915/gt/selftest_lrc.c if (ring_size < 0) ring_size 1191 drivers/gpu/drm/i915/gt/selftest_lrc.c ring_size += rq->ring->size; ring_size 1192 drivers/gpu/drm/i915/gt/selftest_lrc.c ring_size = rq->ring->size / ring_size; ring_size 1194 drivers/gpu/drm/i915/gt/selftest_lrc.c __func__, engine->name, ring_size); ring_size 1207 drivers/gpu/drm/i915/gt/selftest_lrc.c for_each_prime_number_from(count, 1, ring_size) { ring_size 472 drivers/gpu/drm/i915/gvt/cmd_parser.c unsigned long ring_size; ring_size 712 drivers/gpu/drm/i915/gvt/cmd_parser.c s->ring_id, s->ring_start, s->ring_start + s->ring_size, ring_size 753 drivers/gpu/drm/i915/gvt/cmd_parser.c unsigned long ring_top = s->ring_start + s->ring_size; ring_size 787 drivers/gpu/drm/i915/gvt/cmd_parser.c if (s->ip_gma >= s->ring_start + s->ring_size) ring_size 788 drivers/gpu/drm/i915/gvt/cmd_parser.c s->ip_gma -= s->ring_size; ring_size 1185 drivers/gpu/drm/i915/gvt/cmd_parser.c if (s->ret_ip_gma_ring >= s->ring_start + s->ring_size) ring_size 1186 drivers/gpu/drm/i915/gvt/cmd_parser.c s->ret_ip_gma_ring -= s->ring_size; ring_size 2784 drivers/gpu/drm/i915/gvt/cmd_parser.c s.ring_size = _RING_CTL_BUF_SIZE(workload->rb_ctl); ring_size 2809 drivers/gpu/drm/i915/gvt/cmd_parser.c unsigned long gma_head, gma_tail, gma_bottom, ring_size, ring_tail; ring_size 2822 drivers/gpu/drm/i915/gvt/cmd_parser.c ring_size = round_up(wa_ctx->indirect_ctx.size + CACHELINE_BYTES, ring_size 2826 drivers/gpu/drm/i915/gvt/cmd_parser.c gma_bottom = wa_ctx->indirect_ctx.guest_gma + ring_size; ring_size 2833 drivers/gpu/drm/i915/gvt/cmd_parser.c s.ring_size = ring_size; ring_size 2845 drivers/gpu/drm/i915/gvt/cmd_parser.c wa_ctx->indirect_ctx.guest_gma, ring_size); ring_size 1268 drivers/gpu/drm/i915/gvt/scheduler.c const unsigned int ring_size = 512 * SZ_4K; ring_size 1270 drivers/gpu/drm/i915/gvt/scheduler.c ce->ring = __intel_context_ring_size(ring_size); ring_size 548 drivers/gpu/drm/r128/r128_cce.c + init->ring_size / sizeof(u32)); ring_size 549 drivers/gpu/drm/r128/r128_cce.c dev_priv->ring.size = init->ring_size; ring_size 550 drivers/gpu/drm/r128/r128_cce.c dev_priv->ring.size_l2qw = order_base_2(init->ring_size / 8); ring_size 45 drivers/gpu/drm/r128/r128_ioc32.c int ring_size; ring_size 77 drivers/gpu/drm/r128/r128_ioc32.c init.ring_size = init32.ring_size; ring_size 4083 drivers/gpu/drm/radeon/cik.c rb_bufsz = order_base_2(ring->ring_size / 8); ring_size 4677 drivers/gpu/drm/radeon/cik.c order_base_2(rdev->ring[idx].ring_size / 8); ring_size 6984 drivers/gpu/drm/radeon/cik.c rb_bufsz = order_base_2(rdev->ih.ring_size / 4); ring_size 8176 drivers/gpu/drm/radeon/cik.c rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_size = 0; ring_size 8184 drivers/gpu/drm/radeon/cik.c if (!rdev->has_uvd || !rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_size) ring_size 8188 drivers/gpu/drm/radeon/cik.c r = radeon_ring_init(rdev, ring, ring->ring_size, 0, PACKET0(UVD_NO_OP, 0)); ring_size 8255 drivers/gpu/drm/radeon/cik.c rdev->ring[TN_RING_TYPE_VCE1_INDEX].ring_size = 0; ring_size 8256 drivers/gpu/drm/radeon/cik.c rdev->ring[TN_RING_TYPE_VCE2_INDEX].ring_size = 0; ring_size 8264 drivers/gpu/drm/radeon/cik.c if (!rdev->has_vce || !rdev->ring[TN_RING_TYPE_VCE1_INDEX].ring_size) ring_size 8268 drivers/gpu/drm/radeon/cik.c r = radeon_ring_init(rdev, ring, ring->ring_size, 0, VCE_CMD_NO_OP); ring_size 8274 drivers/gpu/drm/radeon/cik.c r = radeon_ring_init(rdev, ring, ring->ring_size, 0, VCE_CMD_NO_OP); ring_size 8417 drivers/gpu/drm/radeon/cik.c r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP_RPTR_OFFSET, ring_size 8425 drivers/gpu/drm/radeon/cik.c r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP1_RPTR_OFFSET, ring_size 8436 drivers/gpu/drm/radeon/cik.c r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP2_RPTR_OFFSET, ring_size 8447 drivers/gpu/drm/radeon/cik.c r = radeon_ring_init(rdev, ring, ring->ring_size, R600_WB_DMA_RPTR_OFFSET, ring_size 8453 drivers/gpu/drm/radeon/cik.c r = radeon_ring_init(rdev, ring, ring->ring_size, CAYMAN_WB_DMA1_RPTR_OFFSET, ring_size 388 drivers/gpu/drm/radeon/cik_sdma.c rb_bufsz = order_base_2(ring->ring_size / 4); ring_size 3083 drivers/gpu/drm/radeon/evergreen.c rb_bufsz = order_base_2(ring->ring_size / 8); ring_size 4975 drivers/gpu/drm/radeon/evergreen.c rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_size = 0; ring_size 4983 drivers/gpu/drm/radeon/evergreen.c if (!rdev->has_uvd || !rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_size) ring_size 4987 drivers/gpu/drm/radeon/evergreen.c r = radeon_ring_init(rdev, ring, ring->ring_size, 0, PACKET0(UVD_NO_OP, 0)); ring_size 5081 drivers/gpu/drm/radeon/evergreen.c r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP_RPTR_OFFSET, ring_size 5087 drivers/gpu/drm/radeon/evergreen.c r = radeon_ring_init(rdev, ring, ring->ring_size, R600_WB_DMA_RPTR_OFFSET, ring_size 1694 drivers/gpu/drm/radeon/ni.c rb_cntl = order_base_2(ring->ring_size / 8); ring_size 2047 drivers/gpu/drm/radeon/ni.c rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_size = 0; ring_size 2055 drivers/gpu/drm/radeon/ni.c if (!rdev->has_uvd || !rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_size) ring_size 2059 drivers/gpu/drm/radeon/ni.c r = radeon_ring_init(rdev, ring, ring->ring_size, 0, PACKET0(UVD_NO_OP, 0)); ring_size 2127 drivers/gpu/drm/radeon/ni.c rdev->ring[TN_RING_TYPE_VCE1_INDEX].ring_size = 0; ring_size 2128 drivers/gpu/drm/radeon/ni.c rdev->ring[TN_RING_TYPE_VCE2_INDEX].ring_size = 0; ring_size 2136 drivers/gpu/drm/radeon/ni.c if (!rdev->has_vce || !rdev->ring[TN_RING_TYPE_VCE1_INDEX].ring_size) ring_size 2140 drivers/gpu/drm/radeon/ni.c r = radeon_ring_init(rdev, ring, ring->ring_size, 0, 0x0); ring_size 2146 drivers/gpu/drm/radeon/ni.c r = radeon_ring_init(rdev, ring, ring->ring_size, 0, 0x0); ring_size 2254 drivers/gpu/drm/radeon/ni.c r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP_RPTR_OFFSET, ring_size 2260 drivers/gpu/drm/radeon/ni.c r = radeon_ring_init(rdev, ring, ring->ring_size, R600_WB_DMA_RPTR_OFFSET, ring_size 2266 drivers/gpu/drm/radeon/ni.c r = radeon_ring_init(rdev, ring, ring->ring_size, CAYMAN_WB_DMA1_RPTR_OFFSET, ring_size 210 drivers/gpu/drm/radeon/ni_dma.c rb_bufsz = order_base_2(ring->ring_size / 4); ring_size 1110 drivers/gpu/drm/radeon/r100.c int r100_cp_init(struct radeon_device *rdev, unsigned ring_size) ring_size 1135 drivers/gpu/drm/radeon/r100.c rb_bufsz = order_base_2(ring_size / 8); ring_size 1136 drivers/gpu/drm/radeon/r100.c ring_size = (1 << (rb_bufsz + 1)) * 4; ring_size 1138 drivers/gpu/drm/radeon/r100.c r = radeon_ring_init(rdev, ring, ring_size, RADEON_WB_CP_RPTR_OFFSET, ring_size 2956 drivers/gpu/drm/radeon/r100.c count = (rdp + ring->ring_size - wdp) & ring->ptr_mask; ring_size 2729 drivers/gpu/drm/radeon/r600.c rb_bufsz = order_base_2(ring->ring_size / 8); ring_size 2779 drivers/gpu/drm/radeon/r600.c void r600_ring_init(struct radeon_device *rdev, struct radeon_ring *ring, unsigned ring_size) ring_size 2785 drivers/gpu/drm/radeon/r600.c rb_bufsz = order_base_2(ring_size / 8); ring_size 2786 drivers/gpu/drm/radeon/r600.c ring_size = (1 << (rb_bufsz + 1)) * 4; ring_size 2787 drivers/gpu/drm/radeon/r600.c ring->ring_size = ring_size; ring_size 3083 drivers/gpu/drm/radeon/r600.c rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_size = 0; ring_size 3091 drivers/gpu/drm/radeon/r600.c if (!rdev->has_uvd || !rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_size) ring_size 3095 drivers/gpu/drm/radeon/r600.c r = radeon_ring_init(rdev, ring, ring->ring_size, 0, PACKET0(UVD_NO_OP, 0)); ring_size 3160 drivers/gpu/drm/radeon/r600.c r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP_RPTR_OFFSET, ring_size 3469 drivers/gpu/drm/radeon/r600.c void r600_ih_ring_init(struct radeon_device *rdev, unsigned ring_size) ring_size 3474 drivers/gpu/drm/radeon/r600.c rb_bufsz = order_base_2(ring_size / 4); ring_size 3475 drivers/gpu/drm/radeon/r600.c ring_size = (1 << rb_bufsz) * 4; ring_size 3476 drivers/gpu/drm/radeon/r600.c rdev->ih.ring_size = ring_size; ring_size 3477 drivers/gpu/drm/radeon/r600.c rdev->ih.ptr_mask = rdev->ih.ring_size - 1; ring_size 3487 drivers/gpu/drm/radeon/r600.c r = radeon_bo_create(rdev, rdev->ih.ring_size, ring_size 3711 drivers/gpu/drm/radeon/r600.c rb_bufsz = order_base_2(rdev->ih.ring_size / 4); ring_size 131 drivers/gpu/drm/radeon/r600_dma.c rb_bufsz = order_base_2(ring->ring_size / 4); ring_size 842 drivers/gpu/drm/radeon/radeon.h unsigned ring_size; ring_size 973 drivers/gpu/drm/radeon/radeon.h unsigned ring_size; ring_size 1034 drivers/gpu/drm/radeon/radeon.h int radeon_ring_init(struct radeon_device *rdev, struct radeon_ring *cp, unsigned ring_size, ring_size 105 drivers/gpu/drm/radeon/radeon_asic.h int r100_cp_init(struct radeon_device *rdev, unsigned ring_size); ring_size 373 drivers/gpu/drm/radeon/radeon_asic.h void r600_ring_init(struct radeon_device *rdev, struct radeon_ring *cp, unsigned ring_size); ring_size 393 drivers/gpu/drm/radeon/radeon_asic.h void r600_ih_ring_init(struct radeon_device *rdev, unsigned ring_size); ring_size 87 drivers/gpu/drm/radeon/radeon_ring.c ring->ring_free_dw = rptr + (ring->ring_size / 4); ring_size 92 drivers/gpu/drm/radeon/radeon_ring.c ring->ring_free_dw = ring->ring_size / 4; ring_size 113 drivers/gpu/drm/radeon/radeon_ring.c if (ndw > (ring->ring_size / 4)) ring_size 312 drivers/gpu/drm/radeon/radeon_ring.c size = ring->wptr + (ring->ring_size / 4); ring_size 379 drivers/gpu/drm/radeon/radeon_ring.c int radeon_ring_init(struct radeon_device *rdev, struct radeon_ring *ring, unsigned ring_size, ring_size 384 drivers/gpu/drm/radeon/radeon_ring.c ring->ring_size = ring_size; ring_size 389 drivers/gpu/drm/radeon/radeon_ring.c r = radeon_bo_create(rdev, ring->ring_size, PAGE_SIZE, true, ring_size 414 drivers/gpu/drm/radeon/radeon_ring.c ring->ptr_mask = (ring->ring_size / 4) - 1; ring_size 415 drivers/gpu/drm/radeon/radeon_ring.c ring->ring_free_dw = ring->ring_size / 4; ring_size 476 drivers/gpu/drm/radeon/radeon_ring.c count = (ring->ring_size / 4) - ring->ring_free_dw; ring_size 1733 drivers/gpu/drm/radeon/rv770.c rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_size = 0; ring_size 1741 drivers/gpu/drm/radeon/rv770.c if (!rdev->has_uvd || !rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_size) ring_size 1745 drivers/gpu/drm/radeon/rv770.c r = radeon_ring_init(rdev, ring, ring->ring_size, 0, PACKET0(UVD_NO_OP, 0)); ring_size 1817 drivers/gpu/drm/radeon/rv770.c r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP_RPTR_OFFSET, ring_size 1823 drivers/gpu/drm/radeon/rv770.c r = radeon_ring_init(rdev, ring, ring->ring_size, R600_WB_DMA_RPTR_OFFSET, ring_size 3669 drivers/gpu/drm/radeon/si.c rb_bufsz = order_base_2(ring->ring_size / 8); ring_size 3700 drivers/gpu/drm/radeon/si.c rb_bufsz = order_base_2(ring->ring_size / 8); ring_size 3724 drivers/gpu/drm/radeon/si.c rb_bufsz = order_base_2(ring->ring_size / 8); ring_size 6012 drivers/gpu/drm/radeon/si.c rb_bufsz = order_base_2(rdev->ih.ring_size / 4); ring_size 6502 drivers/gpu/drm/radeon/si.c rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_size = 0; ring_size 6510 drivers/gpu/drm/radeon/si.c if (!rdev->has_uvd || !rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_size) ring_size 6514 drivers/gpu/drm/radeon/si.c r = radeon_ring_init(rdev, ring, ring->ring_size, 0, PACKET0(UVD_NO_OP, 0)); ring_size 6581 drivers/gpu/drm/radeon/si.c rdev->ring[TN_RING_TYPE_VCE1_INDEX].ring_size = 0; ring_size 6582 drivers/gpu/drm/radeon/si.c rdev->ring[TN_RING_TYPE_VCE2_INDEX].ring_size = 0; ring_size 6590 drivers/gpu/drm/radeon/si.c if (!rdev->has_vce || !rdev->ring[TN_RING_TYPE_VCE1_INDEX].ring_size) ring_size 6594 drivers/gpu/drm/radeon/si.c r = radeon_ring_init(rdev, ring, ring->ring_size, 0, VCE_CMD_NO_OP); ring_size 6600 drivers/gpu/drm/radeon/si.c r = radeon_ring_init(rdev, ring, ring->ring_size, 0, VCE_CMD_NO_OP); ring_size 6709 drivers/gpu/drm/radeon/si.c r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP_RPTR_OFFSET, ring_size 6715 drivers/gpu/drm/radeon/si.c r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP1_RPTR_OFFSET, ring_size 6721 drivers/gpu/drm/radeon/si.c r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP2_RPTR_OFFSET, ring_size 6727 drivers/gpu/drm/radeon/si.c r = radeon_ring_init(rdev, ring, ring->ring_size, R600_WB_DMA_RPTR_OFFSET, ring_size 6733 drivers/gpu/drm/radeon/si.c r = radeon_ring_init(rdev, ring, ring->ring_size, CAYMAN_WB_DMA1_RPTR_OFFSET, ring_size 377 drivers/gpu/drm/radeon/uvd_v1_0.c rb_bufsz = order_base_2(ring->ring_size); ring_size 302 drivers/gpu/drm/radeon/vce_v1_0.c WREG32(VCE_RB_SIZE, ring->ring_size / 4); ring_size 309 drivers/gpu/drm/radeon/vce_v1_0.c WREG32(VCE_RB_SIZE2, ring->ring_size / 4); ring_size 228 drivers/hv/ring_buffer.c ring_info->ring_size = page_cnt << PAGE_SHIFT; ring_size 230 drivers/hv/ring_buffer.c reciprocal_value(ring_info->ring_size / 10); ring_size 231 drivers/hv/ring_buffer.c ring_info->ring_datasize = ring_info->ring_size - ring_size 715 drivers/infiniband/ulp/srpt/ib_srpt.c int ring_size, int ioctx_size, ring_size 726 drivers/infiniband/ulp/srpt/ib_srpt.c ring = kvmalloc_array(ring_size, sizeof(ring[0]), GFP_KERNEL); ring_size 729 drivers/infiniband/ulp/srpt/ib_srpt.c for (i = 0; i < ring_size; ++i) { ring_size 756 drivers/infiniband/ulp/srpt/ib_srpt.c struct srpt_device *sdev, int ring_size, ring_size 765 drivers/infiniband/ulp/srpt/ib_srpt.c for (i = 0; i < ring_size; ++i) ring_size 503 drivers/mmc/host/dw_mmc.c host->ring_size = ring_size 507 drivers/mmc/host/dw_mmc.c for (i = 0, p = host->sg_cpu; i < host->ring_size - 1; ring_size 531 drivers/mmc/host/dw_mmc.c host->ring_size = ring_size 536 drivers/mmc/host/dw_mmc.c i < host->ring_size - 1; ring_size 2830 drivers/mmc/host/dw_mmc.c mmc->max_segs = host->ring_size; ring_size 2833 drivers/mmc/host/dw_mmc.c mmc->max_req_size = mmc->max_seg_size * host->ring_size; ring_size 182 drivers/mmc/host/dw_mmc.h unsigned int ring_size; ring_size 419 drivers/net/ethernet/amazon/ena/ena_ethtool.c ring->tx_pending = adapter->tx_ring[0].ring_size; ring_size 420 drivers/net/ethernet/amazon/ena/ena_ethtool.c ring->rx_pending = adapter->rx_ring[0].ring_size; ring_size 184 drivers/net/ethernet/amazon/ena/ena_netdev.c txr->ring_size = adapter->requested_tx_ring_size; ring_size 192 drivers/net/ethernet/amazon/ena/ena_netdev.c rxr->ring_size = adapter->requested_rx_ring_size; ring_size 220 drivers/net/ethernet/amazon/ena/ena_netdev.c size = sizeof(struct ena_tx_buffer) * tx_ring->ring_size; ring_size 230 drivers/net/ethernet/amazon/ena/ena_netdev.c size = sizeof(u16) * tx_ring->ring_size; ring_size 247 drivers/net/ethernet/amazon/ena/ena_netdev.c for (i = 0; i < tx_ring->ring_size; i++) ring_size 331 drivers/net/ethernet/amazon/ena/ena_netdev.c if (likely(req_id < rx_ring->ring_size)) ring_size 369 drivers/net/ethernet/amazon/ena/ena_netdev.c size = sizeof(struct ena_rx_buffer) * (rx_ring->ring_size + 1); ring_size 379 drivers/net/ethernet/amazon/ena/ena_netdev.c size = sizeof(u16) * rx_ring->ring_size; ring_size 391 drivers/net/ethernet/amazon/ena/ena_netdev.c for (i = 0; i < rx_ring->ring_size; i++) ring_size 560 drivers/net/ethernet/amazon/ena/ena_netdev.c rx_ring->ring_size); ring_size 587 drivers/net/ethernet/amazon/ena/ena_netdev.c for (i = 0; i < rx_ring->ring_size; i++) { ring_size 605 drivers/net/ethernet/amazon/ena/ena_netdev.c bufs_num = rx_ring->ring_size - 1; ring_size 661 drivers/net/ethernet/amazon/ena/ena_netdev.c for (i = 0; i < tx_ring->ring_size; i++) { ring_size 730 drivers/net/ethernet/amazon/ena/ena_netdev.c if (likely(req_id < tx_ring->ring_size)) { ring_size 802 drivers/net/ethernet/amazon/ena/ena_netdev.c tx_ring->ring_size); ring_size 914 drivers/net/ethernet/amazon/ena/ena_netdev.c rx_ring->ring_size); ring_size 939 drivers/net/ethernet/amazon/ena/ena_netdev.c rx_ring->ring_size); ring_size 1096 drivers/net/ethernet/amazon/ena/ena_netdev.c rx_ring->ring_size); ring_size 1131 drivers/net/ethernet/amazon/ena/ena_netdev.c min_t(int, rx_ring->ring_size / ENA_RX_REFILL_THRESH_DIVIDER, ring_size 1250 drivers/net/ethernet/amazon/ena/ena_netdev.c tx_budget = tx_ring->ring_size / ENA_TX_POLL_BUDGET_DIVIDER; ring_size 1649 drivers/net/ethernet/amazon/ena/ena_netdev.c ctx.queue_size = tx_ring->ring_size; ring_size 1716 drivers/net/ethernet/amazon/ena/ena_netdev.c ctx.queue_size = rx_ring->ring_size; ring_size 1772 drivers/net/ethernet/amazon/ena/ena_netdev.c adapter->tx_ring[i].ring_size = new_tx_size; ring_size 1773 drivers/net/ethernet/amazon/ena/ena_netdev.c adapter->rx_ring[i].ring_size = new_rx_size; ring_size 1836 drivers/net/ethernet/amazon/ena/ena_netdev.c cur_tx_ring_size = adapter->tx_ring[0].ring_size; ring_size 1837 drivers/net/ethernet/amazon/ena/ena_netdev.c cur_rx_ring_size = adapter->rx_ring[0].ring_size; ring_size 2332 drivers/net/ethernet/amazon/ena/ena_netdev.c tx_ring->ring_size); ring_size 2883 drivers/net/ethernet/amazon/ena/ena_netdev.c for (i = 0; i < tx_ring->ring_size; i++) { ring_size 3007 drivers/net/ethernet/amazon/ena/ena_netdev.c if (unlikely(refill_required == (rx_ring->ring_size - 1))) { ring_size 122 drivers/net/ethernet/amazon/ena/ena_netdev.h #define ENA_TX_RING_IDX_NEXT(idx, ring_size) (((idx) + 1) & ((ring_size) - 1)) ring_size 124 drivers/net/ethernet/amazon/ena/ena_netdev.h #define ENA_RX_RING_IDX_NEXT(idx, ring_size) (((idx) + 1) & ((ring_size) - 1)) ring_size 125 drivers/net/ethernet/amazon/ena/ena_netdev.h #define ENA_RX_RING_IDX_ADD(idx, n, ring_size) \ ring_size 126 drivers/net/ethernet/amazon/ena/ena_netdev.h (((idx) + (n)) & ((ring_size) - 1)) ring_size 278 drivers/net/ethernet/amazon/ena/ena_netdev.h int ring_size; ring_size 634 drivers/net/ethernet/atheros/ag71xx.c int ring_mask, ring_size; ring_size 638 drivers/net/ethernet/atheros/ag71xx.c ring_size = BIT(ring->order); ring_size 691 drivers/net/ethernet/atheros/ag71xx.c if ((ring->curr - ring->dirty) < (ring_size * 3) / 4) ring_size 990 drivers/net/ethernet/atheros/ag71xx.c int ring_size = BIT(ring->order); ring_size 991 drivers/net/ethernet/atheros/ag71xx.c int ring_mask = ring_size - 1; ring_size 994 drivers/net/ethernet/atheros/ag71xx.c for (i = 0; i < ring_size; i++) { ring_size 1015 drivers/net/ethernet/atheros/ag71xx.c int ring_size = BIT(ring->order); ring_size 1021 drivers/net/ethernet/atheros/ag71xx.c for (i = 0; i < ring_size; i++) ring_size 1062 drivers/net/ethernet/atheros/ag71xx.c int ring_size = BIT(ring->order); ring_size 1067 drivers/net/ethernet/atheros/ag71xx.c for (i = 0; i < ring_size; i++) { ring_size 1077 drivers/net/ethernet/atheros/ag71xx.c for (i = 0; i < ring_size; i++) { ring_size 1135 drivers/net/ethernet/atheros/ag71xx.c int ring_size, tx_size; ring_size 1137 drivers/net/ethernet/atheros/ag71xx.c ring_size = BIT(tx->order) + BIT(rx->order); ring_size 1140 drivers/net/ethernet/atheros/ag71xx.c tx->buf = kcalloc(ring_size, sizeof(*tx->buf), GFP_KERNEL); ring_size 1145 drivers/net/ethernet/atheros/ag71xx.c ring_size * AG71XX_DESC_SIZE, ring_size 1165 drivers/net/ethernet/atheros/ag71xx.c int ring_size; ring_size 1167 drivers/net/ethernet/atheros/ag71xx.c ring_size = BIT(tx->order) + BIT(rx->order); ring_size 1170 drivers/net/ethernet/atheros/ag71xx.c dma_free_coherent(&ag->pdev->dev, ring_size * AG71XX_DESC_SIZE, ring_size 1330 drivers/net/ethernet/atheros/ag71xx.c int i, n, ring_min, ring_mask, ring_size; ring_size 1338 drivers/net/ethernet/atheros/ag71xx.c ring_size = BIT(ring->order); ring_size 1375 drivers/net/ethernet/atheros/ag71xx.c if (ring->curr - ring->dirty >= ring_size - ring_min) { ring_size 1438 drivers/net/ethernet/atheros/ag71xx.c int ring_mask, ring_size, done = 0; ring_size 1448 drivers/net/ethernet/atheros/ag71xx.c ring_size = BIT(ring->order); ring_size 1464 drivers/net/ethernet/atheros/ag71xx.c if ((ring->dirty + ring_size) == ring->curr) { ring_size 442 drivers/net/ethernet/atheros/atl1e/atl1e.h u32 ring_size; ring_size 709 drivers/net/ethernet/atheros/atl1e/atl1e_main.c static void atl1e_cal_ring_size(struct atl1e_adapter *adapter, u32 *ring_size) ring_size 711 drivers/net/ethernet/atheros/atl1e/atl1e_main.c *ring_size = ((u32)(adapter->tx_ring.count * ring_size 733 drivers/net/ethernet/atheros/atl1e/atl1e_main.c atl1e_cal_ring_size(adapter, &adapter->ring_size); ring_size 781 drivers/net/ethernet/atheros/atl1e/atl1e_main.c pci_free_consistent(pdev, adapter->ring_size, ring_size 816 drivers/net/ethernet/atheros/atl1e/atl1e_main.c size = adapter->ring_size; ring_size 817 drivers/net/ethernet/atheros/atl1e/atl1e_main.c adapter->ring_vir_addr = pci_zalloc_consistent(pdev, adapter->ring_size, ring_size 867 drivers/net/ethernet/atheros/atl1e/atl1e_main.c if (unlikely(offset > adapter->ring_size)) { ring_size 869 drivers/net/ethernet/atheros/atl1e/atl1e_main.c offset, adapter->ring_size); ring_size 877 drivers/net/ethernet/atheros/atl1e/atl1e_main.c pci_free_consistent(pdev, adapter->ring_size, ring_size 285 drivers/net/ethernet/atheros/atlx/atl2.c adapter->ring_size = size = ring_size 672 drivers/net/ethernet/atheros/atlx/atl2.c pci_free_consistent(pdev, adapter->ring_size, adapter->ring_vir_addr, ring_size 456 drivers/net/ethernet/atheros/atlx/atl2.h int ring_size; ring_size 5372 drivers/net/ethernet/broadcom/bnx2.c static u32 bnx2_find_max_ring(u32 ring_size, u32 max_size) ring_size 5376 drivers/net/ethernet/broadcom/bnx2.c while (ring_size > BNX2_MAX_RX_DESC_CNT) { ring_size 5377 drivers/net/ethernet/broadcom/bnx2.c ring_size -= BNX2_MAX_RX_DESC_CNT; ring_size 4502 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c int ring_size = 0; ring_size 4617 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c ring_size = bnx2x_alloc_rx_bds(fp, rx_ring_size); ring_size 4618 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c if (ring_size < rx_ring_size) ring_size 4627 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c index, ring_size); ring_size 4632 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c if (ring_size < (fp->mode == TPA_MODE_DISABLED ? ring_size 3393 drivers/net/ethernet/broadcom/bnxt/bnxt.c static int bnxt_calc_nr_ring_pages(u32 ring_size, int desc_per_pg) ring_size 3397 drivers/net/ethernet/broadcom/bnxt/bnxt.c pages = ring_size / desc_per_pg; ring_size 3426 drivers/net/ethernet/broadcom/bnxt/bnxt.c u32 ring_size, rx_size, rx_space; ring_size 3436 drivers/net/ethernet/broadcom/bnxt/bnxt.c ring_size = bp->rx_ring_size; ring_size 3452 drivers/net/ethernet/broadcom/bnxt/bnxt.c agg_ring_size = ring_size * agg_factor; ring_size 3475 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->rx_nr_pages = bnxt_calc_nr_ring_pages(ring_size, RX_DESC_CNT); ring_size 3478 drivers/net/ethernet/broadcom/bnxt/bnxt.c ring_size = bp->tx_ring_size; ring_size 3479 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->tx_nr_pages = bnxt_calc_nr_ring_pages(ring_size, TX_DESC_CNT); ring_size 3482 drivers/net/ethernet/broadcom/bnxt/bnxt.c ring_size = bp->rx_ring_size * (2 + agg_factor) + bp->tx_ring_size; ring_size 3483 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->cp_ring_size = ring_size; ring_size 3485 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->cp_nr_pages = bnxt_calc_nr_ring_pages(ring_size, CP_DESC_CNT); ring_size 3490 drivers/net/ethernet/broadcom/bnxt/bnxt.c ring_size, bp->cp_ring_size); ring_size 420 drivers/net/ethernet/calxeda/xgmac.c static inline void desc_init_rx_desc(struct xgmac_dma_desc *p, int ring_size, ring_size 423 drivers/net/ethernet/calxeda/xgmac.c struct xgmac_dma_desc *end = p + ring_size - 1; ring_size 425 drivers/net/ethernet/calxeda/xgmac.c memset(p, 0, sizeof(*p) * ring_size); ring_size 433 drivers/net/ethernet/calxeda/xgmac.c static inline void desc_init_tx_desc(struct xgmac_dma_desc *p, u32 ring_size) ring_size 435 drivers/net/ethernet/calxeda/xgmac.c memset(p, 0, sizeof(*p) * ring_size); ring_size 436 drivers/net/ethernet/calxeda/xgmac.c p[ring_size - 1].flags = cpu_to_le32(TXDESC_END_RING); ring_size 202 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c static unsigned int ring_max_fill(unsigned int ring_size) ring_size 204 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c return ring_size - 8; ring_size 207 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c static unsigned int ring_size_to_bytes(unsigned int ring_size) ring_size 209 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c return ring_size * sizeof(union mgmt_port_ring_entry); ring_size 67 drivers/net/ethernet/cisco/enic/vnic_cq.c iowrite32(cq->ring.desc_count, &cq->ctrl->ring_size); ring_size 29 drivers/net/ethernet/cisco/enic/vnic_cq.h u32 ring_size; /* 0x08 */ ring_size 124 drivers/net/ethernet/cisco/enic/vnic_rq.c iowrite32(count, &rq->ctrl->ring_size); ring_size 32 drivers/net/ethernet/cisco/enic/vnic_rq.h u32 ring_size; /* 0x08 */ ring_size 144 drivers/net/ethernet/cisco/enic/vnic_wq.c iowrite32(count, &wq->ctrl->ring_size); ring_size 31 drivers/net/ethernet/cisco/enic/vnic_wq.h u32 ring_size; /* 0x08 */ ring_size 1257 drivers/net/ethernet/emulex/benet/be_cmds.c AMAP_SET_BITS(struct amap_mcc_context_be, ring_size, ctxt, ring_size 1264 drivers/net/ethernet/emulex/benet/be_cmds.c AMAP_SET_BITS(struct amap_mcc_context_v1, ring_size, ctxt, ring_size 1322 drivers/net/ethernet/emulex/benet/be_cmds.c AMAP_SET_BITS(struct amap_mcc_context_be, ring_size, ctxt, ring_size 530 drivers/net/ethernet/emulex/benet/be_cmds.h u8 ring_size[4]; ring_size 544 drivers/net/ethernet/emulex/benet/be_cmds.h u8 ring_size[4]; ring_size 468 drivers/net/ethernet/freescale/fec.h unsigned short ring_size; ring_size 281 drivers/net/ethernet/freescale/fec_main.c (addr < txq->tso_hdrs_dma + txq->bd.ring_size * TSO_HEADER_SIZE)) ring_size 312 drivers/net/ethernet/freescale/fec_main.c return entries >= 0 ? entries : entries + txq->bd.ring_size; ring_size 841 drivers/net/ethernet/freescale/fec_main.c for (i = 0; i < rxq->bd.ring_size; i++) { ring_size 864 drivers/net/ethernet/freescale/fec_main.c for (i = 0; i < txq->bd.ring_size; i++) { ring_size 935 drivers/net/ethernet/freescale/fec_main.c for (j = 0; j < txq->bd.ring_size; j++) { ring_size 2755 drivers/net/ethernet/freescale/fec_main.c for (i = 0; i < rxq->bd.ring_size; i++) { ring_size 2772 drivers/net/ethernet/freescale/fec_main.c for (i = 0; i < txq->bd.ring_size; i++) { ring_size 2792 drivers/net/ethernet/freescale/fec_main.c txq->bd.ring_size * TSO_HEADER_SIZE, ring_size 2818 drivers/net/ethernet/freescale/fec_main.c txq->bd.ring_size = TX_RING_SIZE; ring_size 2819 drivers/net/ethernet/freescale/fec_main.c fep->total_tx_ring_size += fep->tx_queue[i]->bd.ring_size; ring_size 2823 drivers/net/ethernet/freescale/fec_main.c (txq->bd.ring_size - txq->tx_stop_threshold) / 2; ring_size 2826 drivers/net/ethernet/freescale/fec_main.c txq->bd.ring_size * TSO_HEADER_SIZE, ring_size 2843 drivers/net/ethernet/freescale/fec_main.c fep->rx_queue[i]->bd.ring_size = RX_RING_SIZE; ring_size 2844 drivers/net/ethernet/freescale/fec_main.c fep->total_rx_ring_size += fep->rx_queue[i]->bd.ring_size; ring_size 2864 drivers/net/ethernet/freescale/fec_main.c for (i = 0; i < rxq->bd.ring_size; i++) { ring_size 2905 drivers/net/ethernet/freescale/fec_main.c for (i = 0; i < txq->bd.ring_size; i++) { ring_size 3275 drivers/net/ethernet/freescale/fec_main.c unsigned size = dsize * rxq->bd.ring_size; ring_size 3291 drivers/net/ethernet/freescale/fec_main.c unsigned size = dsize * txq->bd.ring_size; ring_size 1759 drivers/net/ethernet/freescale/gianfar.c struct txbd8 *base, int ring_size) ring_size 1763 drivers/net/ethernet/freescale/gianfar.c return (new_bd >= (base + ring_size)) ? (new_bd - ring_size) : new_bd; ring_size 1767 drivers/net/ethernet/freescale/gianfar.c int ring_size) ring_size 1769 drivers/net/ethernet/freescale/gianfar.c return skip_txbd(bdp, 1, base, ring_size); ring_size 1277 drivers/net/ethernet/microchip/lan743x_main.c return ((++index) % tx->ring_size); ring_size 1298 drivers/net/ethernet/microchip/lan743x_main.c sizeof(*tx->ring_cpu_ptr) * (tx->ring_size)); ring_size 1300 drivers/net/ethernet/microchip/lan743x_main.c sizeof(*tx->buffer_info) * (tx->ring_size)); ring_size 1322 drivers/net/ethernet/microchip/lan743x_main.c return tx->ring_size - last_tail + last_head - 1; ring_size 1565 drivers/net/ethernet/microchip/lan743x_main.c if (required_number_of_descriptors > (tx->ring_size - 1)) { ring_size 1700 drivers/net/ethernet/microchip/lan743x_main.c tx->ring_size = 0; ring_size 1710 drivers/net/ethernet/microchip/lan743x_main.c tx->ring_size = LAN743X_TX_RING_SIZE; ring_size 1711 drivers/net/ethernet/microchip/lan743x_main.c if (tx->ring_size & ~TX_CFG_B_TX_RING_LEN_MASK_) { ring_size 1715 drivers/net/ethernet/microchip/lan743x_main.c ring_allocation_size = ALIGN(tx->ring_size * ring_size 1730 drivers/net/ethernet/microchip/lan743x_main.c cpu_ptr = kcalloc(tx->ring_size, sizeof(*tx->buffer_info), GFP_KERNEL); ring_size 1831 drivers/net/ethernet/microchip/lan743x_main.c data |= ((tx->ring_size) & TX_CFG_B_TX_RING_LEN_MASK_); ring_size 1866 drivers/net/ethernet/microchip/lan743x_main.c tx->ring_size - 1); ring_size 1894 drivers/net/ethernet/microchip/lan743x_main.c return ((++index) % rx->ring_size); ring_size 1994 drivers/net/ethernet/microchip/lan743x_main.c if (current_head_index < 0 || current_head_index >= rx->ring_size) ring_size 1997 drivers/net/ethernet/microchip/lan743x_main.c if (rx->last_head < 0 || rx->last_head >= rx->ring_size) ring_size 2215 drivers/net/ethernet/microchip/lan743x_main.c for (index = 0; index < rx->ring_size; index++) ring_size 2241 drivers/net/ethernet/microchip/lan743x_main.c rx->ring_size = 0; ring_size 2253 drivers/net/ethernet/microchip/lan743x_main.c rx->ring_size = LAN743X_RX_RING_SIZE; ring_size 2254 drivers/net/ethernet/microchip/lan743x_main.c if (rx->ring_size <= 1) { ring_size 2258 drivers/net/ethernet/microchip/lan743x_main.c if (rx->ring_size & ~RX_CFG_B_RX_RING_LEN_MASK_) { ring_size 2262 drivers/net/ethernet/microchip/lan743x_main.c ring_allocation_size = ALIGN(rx->ring_size * ring_size 2276 drivers/net/ethernet/microchip/lan743x_main.c cpu_ptr = kcalloc(rx->ring_size, sizeof(*rx->buffer_info), ring_size 2299 drivers/net/ethernet/microchip/lan743x_main.c for (index = 0; index < rx->ring_size; index++) { ring_size 2351 drivers/net/ethernet/microchip/lan743x_main.c rx->ring_size - 1); ring_size 2394 drivers/net/ethernet/microchip/lan743x_main.c data |= ((rx->ring_size) & RX_CFG_B_RX_RING_LEN_MASK_); ring_size 2416 drivers/net/ethernet/microchip/lan743x_main.c rx->last_tail = ((u32)(rx->ring_size - 1)); ring_size 645 drivers/net/ethernet/microchip/lan743x_main.h int ring_size; ring_size 681 drivers/net/ethernet/microchip/lan743x_main.h int ring_size; ring_size 280 drivers/net/ethernet/pensando/ionic/ionic_dev.c .q_init.ring_size = ilog2(q->num_descs), ring_size 298 drivers/net/ethernet/pensando/ionic/ionic_dev.c unsigned int ring_size; ring_size 304 drivers/net/ethernet/pensando/ionic/ionic_dev.c ring_size = ilog2(num_descs); ring_size 305 drivers/net/ethernet/pensando/ionic/ionic_dev.c if (ring_size < 2 || ring_size > 16) ring_size 379 drivers/net/ethernet/pensando/ionic/ionic_dev.c unsigned int ring_size; ring_size 385 drivers/net/ethernet/pensando/ionic/ionic_dev.c ring_size = ilog2(num_descs); ring_size 386 drivers/net/ethernet/pensando/ionic/ionic_dev.c if (ring_size < 2 || ring_size > 16) ring_size 519 drivers/net/ethernet/pensando/ionic/ionic_if.h u8 ring_size; ring_size 569 drivers/net/ethernet/pensando/ionic/ionic_lif.c .ring_size = ilog2(q->num_descs), ring_size 580 drivers/net/ethernet/pensando/ionic/ionic_lif.c dev_dbg(dev, "txq_init.ring_size %d\n", ctx.cmd.q_init.ring_size); ring_size 615 drivers/net/ethernet/pensando/ionic/ionic_lif.c .ring_size = ilog2(q->num_descs), ring_size 625 drivers/net/ethernet/pensando/ionic/ionic_lif.c dev_dbg(dev, "rxq_init.ring_size %d\n", ctx.cmd.q_init.ring_size); ring_size 1900 drivers/net/ethernet/pensando/ionic/ionic_lif.c .ring_size = ilog2(q->num_descs), ring_size 1908 drivers/net/ethernet/pensando/ionic/ionic_lif.c dev_dbg(dev, "notifyq_init.ring_size %d\n", ctx.cmd.q_init.ring_size); ring_size 799 drivers/net/ethernet/qlogic/netxen/netxen_nic.h __le32 ring_size; /* Ring entries */ ring_size 807 drivers/net/ethernet/qlogic/netxen/netxen_nic.h __le32 ring_size; /* Ring entries */ ring_size 876 drivers/net/ethernet/qlogic/netxen/netxen_nic.h __le32 ring_size; /* Ring entries */ ring_size 328 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c prq_rds[i].ring_size = cpu_to_le32(rds_ring->num_desc); ring_size 341 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c prq_sds[i].ring_size = cpu_to_le32(sds_ring->num_desc); ring_size 468 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c prq_cds->ring_size = cpu_to_le32(tx_ring->num_desc); ring_size 713 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h __le32 ring_size; /* Ring entries */ ring_size 721 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h __le32 ring_size; /* Ring entries */ ring_size 791 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h __le32 ring_size; /* Ring entries */ ring_size 316 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c prq_rds[i].ring_size = cpu_to_le32(rds_ring->num_desc); ring_size 329 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c prq_sds[i].ring_size = cpu_to_le32(sds_ring->num_desc); ring_size 480 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c prq_cds->ring_size = cpu_to_le32(tx_ring->num_desc); ring_size 222 drivers/net/ethernet/renesas/ravb_main.c int ring_size; ring_size 236 drivers/net/ethernet/renesas/ravb_main.c ring_size = sizeof(struct ravb_ex_rx_desc) * ring_size 238 drivers/net/ethernet/renesas/ravb_main.c dma_free_coherent(ndev->dev.parent, ring_size, priv->rx_ring[q], ring_size 246 drivers/net/ethernet/renesas/ravb_main.c ring_size = sizeof(struct ravb_tx_desc) * ring_size 248 drivers/net/ethernet/renesas/ravb_main.c dma_free_coherent(ndev->dev.parent, ring_size, priv->tx_ring[q], ring_size 342 drivers/net/ethernet/renesas/ravb_main.c int ring_size; ring_size 370 drivers/net/ethernet/renesas/ravb_main.c ring_size = sizeof(struct ravb_ex_rx_desc) * (priv->num_rx_ring[q] + 1); ring_size 371 drivers/net/ethernet/renesas/ravb_main.c priv->rx_ring[q] = dma_alloc_coherent(ndev->dev.parent, ring_size, ring_size 380 drivers/net/ethernet/renesas/ravb_main.c ring_size = sizeof(struct ravb_tx_desc) * ring_size 382 drivers/net/ethernet/renesas/ravb_main.c priv->tx_ring[q] = dma_alloc_coherent(ndev->dev.parent, ring_size, ring_size 191 drivers/net/ethernet/ti/cpmac.c int ring_size; ring_size 684 drivers/net/ethernet/ti/cpmac.c for (i = 0; i < priv->ring_size; i++) { ring_size 839 drivers/net/ethernet/ti/cpmac.c ring->rx_pending = priv->ring_size; ring_size 852 drivers/net/ethernet/ti/cpmac.c priv->ring_size = ring->rx_pending; ring_size 935 drivers/net/ethernet/ti/cpmac.c size = priv->ring_size + CPMAC_QUEUES; ring_size 949 drivers/net/ethernet/ti/cpmac.c for (i = 0, desc = priv->rx_head; i < priv->ring_size; i++, desc++) { ring_size 962 drivers/net/ethernet/ti/cpmac.c desc->next = &priv->rx_head[(i + 1) % priv->ring_size]; ring_size 988 drivers/net/ethernet/ti/cpmac.c for (i = 0; i < priv->ring_size; i++) { ring_size 1034 drivers/net/ethernet/ti/cpmac.c for (i = 0; i < priv->ring_size; i++) { ring_size 1045 drivers/net/ethernet/ti/cpmac.c (CPMAC_QUEUES + priv->ring_size), ring_size 1123 drivers/net/ethernet/ti/cpmac.c priv->ring_size = 64; ring_size 46 drivers/net/hyperv/netvsc_drv.c static unsigned int ring_size __ro_after_init = 128; ring_size 47 drivers/net/hyperv/netvsc_drv.c module_param(ring_size, uint, 0444); ring_size 48 drivers/net/hyperv/netvsc_drv.c MODULE_PARM_DESC(ring_size, "Ring buffer size (# of pages)"); ring_size 2500 drivers/net/hyperv/netvsc_drv.c if (ring_size < RING_SIZE_MIN) { ring_size 2501 drivers/net/hyperv/netvsc_drv.c ring_size = RING_SIZE_MIN; ring_size 2503 drivers/net/hyperv/netvsc_drv.c ring_size); ring_size 2505 drivers/net/hyperv/netvsc_drv.c netvsc_ring_bytes = ring_size * PAGE_SIZE; ring_size 735 drivers/net/vmxnet3/vmxnet3_defs.h #define VMXNET3_INC_RING_IDX_ONLY(idx, ring_size) \ ring_size 738 drivers/net/vmxnet3/vmxnet3_defs.h if (unlikely((idx) == (ring_size))) {\ ring_size 1735 drivers/net/wireless/admtek/adm8211.c unsigned int ring_size; ring_size 1746 drivers/net/wireless/admtek/adm8211.c ring_size = sizeof(struct adm8211_desc) * priv->rx_ring_size + ring_size 1748 drivers/net/wireless/admtek/adm8211.c priv->rx_ring = pci_alloc_consistent(priv->pdev, ring_size, ring_size 186 drivers/net/wireless/ath/wil6210/pmc.c pmc_cmd.ring_size = cpu_to_le16(pmc->num_descriptors); ring_size 1177 drivers/net/wireless/ath/wil6210/txrx.c .ring_size = cpu_to_le16(size), ring_size 1279 drivers/net/wireless/ath/wil6210/txrx.c .ring_size = 0, ring_size 1361 drivers/net/wireless/ath/wil6210/txrx.c .ring_size = cpu_to_le16(size), ring_size 2605 drivers/net/wireless/ath/wil6210/wmi.c .ring_size = cpu_to_le16(vring->size), ring_size 3708 drivers/net/wireless/ath/wil6210/wmi.c .ring_size = cpu_to_le16(sring->size), ring_size 3785 drivers/net/wireless/ath/wil6210/wmi.c .ring_size = cpu_to_le16(sring->size), ring_size 3828 drivers/net/wireless/ath/wil6210/wmi.c .ring_size = cpu_to_le16(ring->size), ring_size 3872 drivers/net/wireless/ath/wil6210/wmi.c .ring_size = cpu_to_le16(ring->size), ring_size 3923 drivers/net/wireless/ath/wil6210/wmi.c .ring_size = cpu_to_le16(ring->size), ring_size 890 drivers/net/wireless/ath/wil6210/wmi.h __le16 ring_size; ring_size 999 drivers/net/wireless/ath/wil6210/wmi.h __le16 ring_size; ring_size 1462 drivers/net/wireless/ath/wil6210/wmi.h __le16 ring_size; ring_size 42 drivers/net/wireless/mediatek/mt76/dma.c writel(q->ndesc, &q->regs->ring_size); ring_size 132 drivers/net/wireless/mediatek/mt76/dma.c writel(q->ndesc, &q->regs->ring_size); ring_size 103 drivers/net/wireless/mediatek/mt76/mt76.h u32 ring_size; ring_size 881 drivers/scsi/be2iscsi/be_cmds.c AMAP_SET_BITS(struct amap_mcc_context, ring_size, ctxt, ring_size 1010 drivers/scsi/be2iscsi/be_cmds.c ring_size, ctxt, ring_size 1023 drivers/scsi/be2iscsi/be_cmds.c ring_size, ctxt, ring_size 635 drivers/scsi/be2iscsi/be_cmds.h u8 ring_size[4]; ring_size 877 drivers/scsi/be2iscsi/be_cmds.h u8 ring_size[4]; /* dword 0 */ ring_size 894 drivers/scsi/be2iscsi/be_cmds.h u8 ring_size[4]; /* dword 0 */ ring_size 62 drivers/scsi/fnic/vnic_cq.c iowrite32(cq->ring.desc_count, &cq->ctrl->ring_size); ring_size 37 drivers/scsi/fnic/vnic_cq.h u32 ring_size; /* 0x08 */ ring_size 120 drivers/scsi/fnic/vnic_rq.c iowrite32(rq->ring.desc_count, &rq->ctrl->ring_size); ring_size 50 drivers/scsi/fnic/vnic_rq.h u32 ring_size; /* 0x08 */ ring_size 163 drivers/scsi/fnic/vnic_wq.c iowrite32(count, &wq->ctrl->ring_size); ring_size 185 drivers/scsi/fnic/vnic_wq.c iowrite32(wq->ring.desc_count, &wq->ctrl->ring_size); ring_size 47 drivers/scsi/fnic/vnic_wq.h u32 ring_size; /* 0x08 */ ring_size 110 drivers/scsi/fnic/vnic_wq_copy.c iowrite32(wq->ring.desc_count, &wq->ctrl->ring_size); ring_size 63 drivers/scsi/snic/vnic_cq.c iowrite32(cq->ring.desc_count, &cq->ctrl->ring_size); ring_size 27 drivers/scsi/snic/vnic_cq.h u32 ring_size; /* 0x08 */ ring_size 164 drivers/scsi/snic/vnic_wq.c iowrite32(count, &wq->ctrl->ring_size); ring_size 28 drivers/scsi/snic/vnic_wq.h u32 ring_size; /* 0x08 */ ring_size 1184 drivers/scsi/storvsc_drv.c static int storvsc_connect_to_vsp(struct hv_device *device, u32 ring_size, ring_size 1193 drivers/scsi/storvsc_drv.c ring_size, ring_size 1194 drivers/scsi/storvsc_drv.c ring_size, ring_size 136 drivers/target/target_core_user.c size_t ring_size; ring_size 1577 drivers/target/target_core_user.c if (vma_pages(vma) != (udev->ring_size >> PAGE_SHIFT)) ring_size 1919 drivers/target/target_core_user.c info->mem[0].size = udev->ring_size = udev->data_size + CMDR_SIZE; ring_size 182 drivers/usb/cdns3/gadget.c int ring_size = cdns3_ring_size(priv_ep); ring_size 187 drivers/usb/cdns3/gadget.c ring_size, ring_size 193 drivers/usb/cdns3/gadget.c memset(priv_ep->trb_pool, 0, ring_size); ring_size 199 drivers/usb/cdns3/gadget.c priv_ep->num_trbs = ring_size / TRB_SIZE; ring_size 67 drivers/xen/evtchn.c unsigned int ring_size; ring_size 98 drivers/xen/evtchn.c return idx & (u->ring_size - 1); ring_size 174 drivers/xen/evtchn.c if ((u->ring_prod - u->ring_cons) < u->ring_size) { ring_size 230 drivers/xen/evtchn.c if (((c ^ p) & u->ring_size) != 0) { ring_size 231 drivers/xen/evtchn.c bytes1 = (u->ring_size - evtchn_ring_offset(u, c)) * ring_size 317 drivers/xen/evtchn.c if (u->nr_evtchns <= u->ring_size) ring_size 320 drivers/xen/evtchn.c if (u->ring_size == 0) ring_size 323 drivers/xen/evtchn.c new_size = 2 * u->ring_size; ring_size 349 drivers/xen/evtchn.c memcpy(new_ring, old_ring, u->ring_size * sizeof(*u->ring)); ring_size 350 drivers/xen/evtchn.c memcpy(new_ring + u->ring_size, old_ring, ring_size 351 drivers/xen/evtchn.c u->ring_size * sizeof(*u->ring)); ring_size 354 drivers/xen/evtchn.c u->ring_size = new_size; ring_size 125 include/linux/hyperv.h u32 ring_size; /* Include the shared header */ ring_size 163 include/trace/events/hswadsp.h __field( int, ring_size ) ring_size 172 include/trace/events/hswadsp.h __entry->ring_size = stream->request.ringinfo.ring_size; ring_size 179 include/trace/events/hswadsp.h (int)__entry->num_pages, (int)__entry->ring_size, ring_size 117 include/uapi/drm/i810_drm.h unsigned int ring_size; ring_size 137 include/uapi/drm/i810_drm.h unsigned int ring_size; ring_size 199 include/uapi/drm/i915_drm.h unsigned int ring_size; ring_size 235 include/uapi/drm/r128_drm.h int ring_size; ring_size 576 include/uapi/drm/radeon_drm.h int ring_size; ring_size 52 include/uapi/linux/kfd_ioctl.h __u32 ring_size; /* to KFD */ ring_size 75 include/uapi/linux/kfd_ioctl.h __u32 ring_size; /* to KFD */ ring_size 342 include/xen/interface/io/ring.h static inline RING_IDX name##_mask(RING_IDX idx, RING_IDX ring_size) \ ring_size 344 include/xen/interface/io/ring.h return idx & (ring_size - 1); \ ring_size 349 include/xen/interface/io/ring.h RING_IDX ring_size) \ ring_size 351 include/xen/interface/io/ring.h return buf + name##_mask(idx, ring_size); \ ring_size 359 include/xen/interface/io/ring.h RING_IDX ring_size) \ ring_size 362 include/xen/interface/io/ring.h size <= ring_size - *masked_cons) { \ ring_size 365 include/xen/interface/io/ring.h memcpy(opaque, buf + *masked_cons, ring_size - *masked_cons); \ ring_size 366 include/xen/interface/io/ring.h memcpy((unsigned char *)opaque + ring_size - *masked_cons, buf, \ ring_size 367 include/xen/interface/io/ring.h size - (ring_size - *masked_cons)); \ ring_size 369 include/xen/interface/io/ring.h *masked_cons = name##_mask(*masked_cons + size, ring_size); \ ring_size 377 include/xen/interface/io/ring.h RING_IDX ring_size) \ ring_size 380 include/xen/interface/io/ring.h size <= ring_size - *masked_prod) { \ ring_size 383 include/xen/interface/io/ring.h memcpy(buf + *masked_prod, opaque, ring_size - *masked_prod); \ ring_size 384 include/xen/interface/io/ring.h memcpy(buf, (unsigned char *)opaque + (ring_size - *masked_prod), \ ring_size 385 include/xen/interface/io/ring.h size - (ring_size - *masked_prod)); \ ring_size 387 include/xen/interface/io/ring.h *masked_prod = name##_mask(*masked_prod + size, ring_size); \ ring_size 392 include/xen/interface/io/ring.h RING_IDX ring_size) \ ring_size 399 include/xen/interface/io/ring.h prod = name##_mask(prod, ring_size); \ ring_size 400 include/xen/interface/io/ring.h cons = name##_mask(cons, ring_size); \ ring_size 403 include/xen/interface/io/ring.h return ring_size; \ ring_size 408 include/xen/interface/io/ring.h size = ring_size - (cons - prod); \ ring_size 1167 kernel/power/swap.c unsigned ring = 0, pg = 0, ring_size = 0, ring_size 1267 kernel/power/swap.c ring_size = i; ring_size 1276 kernel/power/swap.c want = ring_size = i; ring_size 1307 kernel/power/swap.c if (++ring >= ring_size) ring_size 1362 kernel/power/swap.c if (++pg >= ring_size) ring_size 1450 kernel/power/swap.c for (i = 0; i < ring_size; i++) ring_size 1127 sound/soc/intel/haswell/sst-haswell-ipc.c u32 ring_size, u32 ring_offset, u32 ring_first_pfn) ring_size 1136 sound/soc/intel/haswell/sst-haswell-ipc.c stream->request.ringinfo.ring_size = ring_size; ring_size 271 sound/soc/intel/haswell/sst-haswell-ipc.h u32 ring_size; ring_size 430 sound/soc/intel/haswell/sst-haswell-ipc.h u32 ring_size, u32 ring_offset, u32 ring_first_pfn); ring_size 199 tools/include/uapi/drm/i915_drm.h unsigned int ring_size; ring_size 29 tools/virtio/ringtest/main.c unsigned ring_size = 256; ring_size 288 tools/virtio/ringtest/main.c ring_size, ring_size 322 tools/virtio/ringtest/main.c ring_size = strtol(optarg, &endptr, 0); ring_size 323 tools/virtio/ringtest/main.c assert(ring_size && !(ring_size & (ring_size - 1))); ring_size 88 tools/virtio/ringtest/main.h extern unsigned ring_size; ring_size 120 tools/virtio/ringtest/ptr_ring.c int ret = ptr_ring_init(&array, ring_size, 0); ring_size 82 tools/virtio/ringtest/ring.c ret = posix_memalign((void **)&ring, 0x1000, ring_size * sizeof *ring); ring_size 97 tools/virtio/ringtest/ring.c for (i = 0; i < ring_size; ++i) { ring_size 103 tools/virtio/ringtest/ring.c guest.num_free = ring_size; ring_size 104 tools/virtio/ringtest/ring.c data = calloc(ring_size, sizeof(*data)); ring_size 120 tools/virtio/ringtest/ring.c head = (ring_size - 1) & (guest.avail_idx++); ring_size 145 tools/virtio/ringtest/ring.c unsigned head = (ring_size - 1) & guest.last_used_idx; ring_size 154 tools/virtio/ringtest/ring.c index = ring[head].index & (ring_size - 1); ring_size 166 tools/virtio/ringtest/ring.c unsigned head = (ring_size - 1) & guest.last_used_idx; ring_size 221 tools/virtio/ringtest/ring.c unsigned head = (ring_size - 1) & host.used_idx; ring_size 228 tools/virtio/ringtest/ring.c unsigned head = (ring_size - 1) & host.used_idx; ring_size 70 tools/virtio/ringtest/virtio_ring_0_9.c ret = posix_memalign(&p, 0x1000, vring_size(ring_size, 0x1000)); ring_size 75 tools/virtio/ringtest/virtio_ring_0_9.c memset(p, 0, vring_size(ring_size, 0x1000)); ring_size 76 tools/virtio/ringtest/virtio_ring_0_9.c vring_init(&ring, ring_size, p, 0x1000); ring_size 85 tools/virtio/ringtest/virtio_ring_0_9.c for (i = 0; i < ring_size - 1; i++) ring_size 89 tools/virtio/ringtest/virtio_ring_0_9.c guest.num_free = ring_size; ring_size 90 tools/virtio/ringtest/virtio_ring_0_9.c data = malloc(ring_size * sizeof *data); ring_size 95 tools/virtio/ringtest/virtio_ring_0_9.c memset(data, 0, ring_size * sizeof *data); ring_size 111 tools/virtio/ringtest/virtio_ring_0_9.c head = (ring_size - 1) & (guest.avail_idx++); ring_size 136 tools/virtio/ringtest/virtio_ring_0_9.c ring.avail->ring[avail & (ring_size - 1)] = ring_size 137 tools/virtio/ringtest/virtio_ring_0_9.c (head | (avail & ~(ring_size - 1))) ^ 0x8000; ring_size 142 tools/virtio/ringtest/virtio_ring_0_9.c avail = (ring_size - 1) & (guest.avail_idx++); ring_size 159 tools/virtio/ringtest/virtio_ring_0_9.c head = (ring_size - 1) & guest.last_used_idx; ring_size 161 tools/virtio/ringtest/virtio_ring_0_9.c if ((index ^ guest.last_used_idx ^ 0x8000) & ~(ring_size - 1)) ring_size 165 tools/virtio/ringtest/virtio_ring_0_9.c index &= ring_size - 1; ring_size 172 tools/virtio/ringtest/virtio_ring_0_9.c head = (ring_size - 1) & guest.last_used_idx; ring_size 175 tools/virtio/ringtest/virtio_ring_0_9.c head = (ring_size - 1) & guest.last_used_idx; ring_size 201 tools/virtio/ringtest/virtio_ring_0_9.c unsigned short head = last_used_idx & (ring_size - 1); ring_size 204 tools/virtio/ringtest/virtio_ring_0_9.c return (index ^ last_used_idx ^ 0x8000) & ~(ring_size - 1); ring_size 262 tools/virtio/ringtest/virtio_ring_0_9.c unsigned index = ring.avail->ring[head & (ring_size - 1)]; ring_size 264 tools/virtio/ringtest/virtio_ring_0_9.c return ((index ^ head ^ 0x8000) & ~(ring_size - 1)); ring_size 277 tools/virtio/ringtest/virtio_ring_0_9.c head = ring.avail->ring[used_idx & (ring_size - 1)]; ring_size 278 tools/virtio/ringtest/virtio_ring_0_9.c if ((used_idx ^ head ^ 0x8000) & ~(ring_size - 1)) ring_size 283 tools/virtio/ringtest/virtio_ring_0_9.c used_idx &= ring_size - 1; ring_size 284 tools/virtio/ringtest/virtio_ring_0_9.c desc = &ring.desc[head & (ring_size - 1)]; ring_size 292 tools/virtio/ringtest/virtio_ring_0_9.c used_idx &= ring_size - 1;