/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_ih.c | 43 r = amdgpu_bo_create(adev, adev->irq.ih.ring_size, in amdgpu_ih_ring_alloc() 82 int amdgpu_ih_ring_init(struct amdgpu_device *adev, unsigned ring_size, in amdgpu_ih_ring_init() argument 89 rb_bufsz = order_base_2(ring_size / 4); in amdgpu_ih_ring_init() 90 ring_size = (1 << rb_bufsz) * 4; in amdgpu_ih_ring_init() 91 adev->irq.ih.ring_size = ring_size; in amdgpu_ih_ring_init() 92 adev->irq.ih.ptr_mask = adev->irq.ih.ring_size - 1; in amdgpu_ih_ring_init() 102 adev->irq.ih.ring_size + 8, in amdgpu_ih_ring_init() 106 memset((void *)adev->irq.ih.ring, 0, adev->irq.ih.ring_size + 8); in amdgpu_ih_ring_init() 107 adev->irq.ih.wptr_offs = (adev->irq.ih.ring_size / 4) + 0; in amdgpu_ih_ring_init() 108 adev->irq.ih.rptr_offs = (adev->irq.ih.ring_size / 4) + 1; in amdgpu_ih_ring_init() [all …]
|
D | amdgpu_ring.c | 64 ring->ring_free_dw = rptr + (ring->ring_size / 4); in amdgpu_ring_free_size() 69 ring->ring_free_dw = ring->ring_size / 4; in amdgpu_ring_free_size() 88 if (ndw > (ring->ring_size / 4)) in amdgpu_ring_alloc() 238 size = ring->wptr + (ring->ring_size / 4); in amdgpu_ring_backup() 304 unsigned ring_size, u32 nop, u32 align_mask, in amdgpu_ring_init() argument 357 rb_bufsz = order_base_2(ring_size / 8); in amdgpu_ring_init() 358 ring_size = (1 << (rb_bufsz + 1)) * 4; in amdgpu_ring_init() 359 ring->ring_size = ring_size; in amdgpu_ring_init() 366 r = amdgpu_bo_create(adev, ring->ring_size, PAGE_SIZE, true, in amdgpu_ring_init() 391 ring->ptr_mask = (ring->ring_size / 4) - 1; in amdgpu_ring_init() [all …]
|
D | amdgpu_ih.h | 36 unsigned ring_size; member 58 int amdgpu_ih_ring_init(struct amdgpu_device *adev, unsigned ring_size,
|
/drivers/gpu/drm/radeon/ |
D | radeon_ring.c | 83 ring->ring_free_dw = rptr + (ring->ring_size / 4); in radeon_ring_free_size() 88 ring->ring_free_dw = ring->ring_size / 4; in radeon_ring_free_size() 109 if (ndw > (ring->ring_size / 4)) in radeon_ring_alloc() 308 size = ring->wptr + (ring->ring_size / 4); in radeon_ring_backup() 375 int radeon_ring_init(struct radeon_device *rdev, struct radeon_ring *ring, unsigned ring_size, in radeon_ring_init() argument 380 ring->ring_size = ring_size; in radeon_ring_init() 385 r = radeon_bo_create(rdev, ring->ring_size, PAGE_SIZE, true, in radeon_ring_init() 410 ring->ptr_mask = (ring->ring_size / 4) - 1; in radeon_ring_init() 411 ring->ring_free_dw = ring->ring_size / 4; in radeon_ring_init() 472 count = (ring->ring_size / 4) - ring->ring_free_dw; in radeon_debugfs_ring_info()
|
D | ni.c | 1698 rb_cntl = order_base_2(ring->ring_size / 8); in cayman_cp_resume() 2065 rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_size = 0; in cayman_startup() 2081 rdev->ring[TN_RING_TYPE_VCE1_INDEX].ring_size = 0; in cayman_startup() 2082 rdev->ring[TN_RING_TYPE_VCE2_INDEX].ring_size = 0; in cayman_startup() 2125 r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP_RPTR_OFFSET, in cayman_startup() 2131 r = radeon_ring_init(rdev, ring, ring->ring_size, R600_WB_DMA_RPTR_OFFSET, in cayman_startup() 2137 r = radeon_ring_init(rdev, ring, ring->ring_size, CAYMAN_WB_DMA1_RPTR_OFFSET, in cayman_startup() 2154 if (ring->ring_size) { in cayman_startup() 2155 r = radeon_ring_init(rdev, ring, ring->ring_size, 0, in cayman_startup() 2165 if (ring->ring_size) in cayman_startup() [all …]
|
D | radeon_ioc32.c | 42 int ring_size; member 75 || __put_user(init32.ring_size, &init->ring_size) in compat_radeon_cp_init()
|
D | vce_v1_0.c | 302 WREG32(VCE_RB_SIZE, ring->ring_size / 4); in vce_v1_0_start() 309 WREG32(VCE_RB_SIZE2, ring->ring_size / 4); in vce_v1_0_start()
|
D | r600.c | 2727 rb_bufsz = order_base_2(ring->ring_size / 8); in r600_cp_resume() 2777 void r600_ring_init(struct radeon_device *rdev, struct radeon_ring *ring, unsigned ring_size) in r600_ring_init() argument 2783 rb_bufsz = order_base_2(ring_size / 8); in r600_ring_init() 2784 ring_size = (1 << (rb_bufsz + 1)) * 4; in r600_ring_init() 2785 ring->ring_size = ring_size; in r600_ring_init() 3082 rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_size = 0; in r600_startup() 3101 r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP_RPTR_OFFSET, in r600_startup() 3115 if (ring->ring_size) { in r600_startup() 3116 r = radeon_ring_init(rdev, ring, ring->ring_size, 0, in r600_startup() 3420 void r600_ih_ring_init(struct radeon_device *rdev, unsigned ring_size) in r600_ih_ring_init() argument [all …]
|
/drivers/xen/ |
D | evtchn.c | 66 unsigned int ring_size; member 105 return idx & (u->ring_size - 1); in evtchn_ring_offset() 180 if ((u->ring_prod - u->ring_cons) < u->ring_size) { in evtchn_interrupt() 236 if (((c ^ p) & u->ring_size) != 0) { in evtchn_read() 237 bytes1 = (u->ring_size - evtchn_ring_offset(u, c)) * in evtchn_read() 323 if (u->nr_evtchns <= u->ring_size) in evtchn_resize_ring() 326 if (u->ring_size == 0) in evtchn_resize_ring() 329 new_size = 2 * u->ring_size; in evtchn_resize_ring() 355 memcpy(new_ring, old_ring, u->ring_size * sizeof(*u->ring)); in evtchn_resize_ring() 356 memcpy(new_ring + u->ring_size, old_ring, in evtchn_resize_ring() [all …]
|
/drivers/crypto/qat/qat_common/ |
D | adf_transport.c | 120 ADF_MAX_INFLIGHTS(ring->ring_size, ring->msg_size)) { in adf_send_message() 130 ADF_RING_SIZE_MODULO(ring->ring_size)); in adf_send_message() 147 ADF_RING_SIZE_MODULO(ring->ring_size)); in adf_handle_response() 162 uint32_t ring_config = BUILD_RING_CONFIG(ring->ring_size); in adf_configure_tx_ring() 171 BUILD_RESP_RING_CONFIG(ring->ring_size, in adf_configure_rx_ring() 186 ADF_SIZE_TO_RING_SIZE_IN_BYTES(ring->ring_size); in adf_init_ring() 211 ring_base = BUILD_RING_BASE_ADDR(ring->dma_addr, ring->ring_size); in adf_init_ring() 221 ADF_SIZE_TO_RING_SIZE_IN_BYTES(ring->ring_size); in adf_cleanup_ring() 284 ring->ring_size = adf_verify_ring_size(msg_size, num_msgs); in adf_create_ring()
|
D | adf_transport_debug.c | 65 if (*pos >= (ADF_SIZE_TO_RING_SIZE_IN_BYTES(ring->ring_size) / in adf_ring_start() 77 if (*pos >= (ADF_SIZE_TO_RING_SIZE_IN_BYTES(ring->ring_size) / in adf_ring_next() 109 ADF_SIZE_TO_RING_SIZE_IN_BYTES(ring->ring_size), in adf_ring_show()
|
D | adf_transport_internal.h | 69 uint8_t ring_size; member
|
/drivers/net/hyperv/ |
D | netvsc_drv.c | 47 static int ring_size = 128; variable 48 module_param(ring_size, int, S_IRUGO); 49 MODULE_PARM_DESC(ring_size, "Ring buffer size (# of pages)"); 765 device_info.ring_size = ring_size; in netvsc_set_channels() 843 device_info.ring_size = ring_size; in netvsc_change_mtu() 1069 device_info.ring_size = ring_size; in netvsc_probe() 1155 if (ring_size < RING_SIZE_MIN) { in netvsc_drv_init() 1156 ring_size = RING_SIZE_MIN; in netvsc_drv_init() 1158 ring_size); in netvsc_drv_init()
|
D | netvsc.c | 1212 int ring_size = in netvsc_device_add() local 1213 ((struct netvsc_device_info *)additional_info)->ring_size; in netvsc_device_add() 1221 net_device->ring_size = ring_size; in netvsc_device_add() 1241 ret = vmbus_open(device->channel, ring_size * PAGE_SIZE, in netvsc_device_add() 1242 ring_size * PAGE_SIZE, NULL, 0, in netvsc_device_add()
|
/drivers/gpu/drm/r128/ |
D | r128_ioc32.c | 44 int ring_size; member 78 || __put_user(init32.ring_size, &init->ring_size) in compat_r128_init()
|
/drivers/net/ethernet/ti/ |
D | cpmac.c | 203 int ring_size; member 699 for (i = 0; i < priv->ring_size; i++) { in cpmac_clear_rx() 879 ring->rx_pending = priv->ring_size; in cpmac_get_ringparam() 892 priv->ring_size = ring->rx_pending; in cpmac_set_ringparam() 975 size = priv->ring_size + CPMAC_QUEUES; in cpmac_open() 989 for (i = 0, desc = priv->rx_head; i < priv->ring_size; i++, desc++) { in cpmac_open() 1002 desc->next = &priv->rx_head[(i + 1) % priv->ring_size]; in cpmac_open() 1029 for (i = 0; i < priv->ring_size; i++) { in cpmac_open() 1073 for (i = 0; i < priv->ring_size; i++) { in cpmac_stop() 1084 (CPMAC_QUEUES + priv->ring_size), in cpmac_stop() [all …]
|
/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_chardev.c | 163 if (!is_power_of_2(args->ring_size) && (args->ring_size != 0)) { in set_queue_properties_from_user() 202 q_properties->queue_size = args->ring_size; in set_queue_properties_from_user() 233 q_properties->queue_size, args->ring_size); in set_queue_properties_from_user() 362 if (!is_power_of_2(args->ring_size) && (args->ring_size != 0)) { in kfd_ioctl_update_queue() 368 properties.queue_size = args->ring_size; in kfd_ioctl_update_queue()
|
/drivers/net/ethernet/renesas/ |
D | ravb_main.c | 221 int ring_size; in ravb_ring_free() local 235 ring_size = sizeof(struct ravb_ex_rx_desc) * in ravb_ring_free() 237 dma_free_coherent(ndev->dev.parent, ring_size, priv->rx_ring[q], in ravb_ring_free() 245 ring_size = sizeof(struct ravb_tx_desc) * in ravb_ring_free() 247 dma_free_coherent(ndev->dev.parent, ring_size, priv->tx_ring[q], in ravb_ring_free() 338 int ring_size; in ravb_ring_init() local 364 ring_size = sizeof(struct ravb_ex_rx_desc) * (priv->num_rx_ring[q] + 1); in ravb_ring_init() 365 priv->rx_ring[q] = dma_alloc_coherent(ndev->dev.parent, ring_size, in ravb_ring_init() 374 ring_size = sizeof(struct ravb_tx_desc) * in ravb_ring_init() 376 priv->tx_ring[q] = dma_alloc_coherent(ndev->dev.parent, ring_size, in ravb_ring_init()
|
/drivers/net/ethernet/freescale/ |
D | gianfar.h | 272 #define skip_bd(bdp, stride, base, ring_size) ({ \ argument 274 (new_bd >= (base) + (ring_size)) ? (new_bd - (ring_size)) : new_bd; }) 276 #define next_bd(bdp, base, ring_size) skip_bd(bdp, 1, base, ring_size) argument
|
/drivers/crypto/amcc/ |
D | crypto4xx_core.c | 51 union ce_ring_size ring_size; in crypto4xx_hw_init() local 85 ring_size.w = 0; in crypto4xx_hw_init() 86 ring_size.bf.ring_offset = PPC4XX_PD_SIZE; in crypto4xx_hw_init() 87 ring_size.bf.ring_size = PPC4XX_NUM_PD; in crypto4xx_hw_init() 88 writel(ring_size.w, dev->ce_base + CRYPTO4XX_RING_SIZE); in crypto4xx_hw_init()
|
/drivers/scsi/snic/ |
D | vnic_cq.c | 63 iowrite32(cq->ring.desc_count, &cq->ctrl->ring_size); in svnic_cq_init()
|
D | vnic_cq.h | 27 u32 ring_size; /* 0x08 */ member
|
/drivers/net/ethernet/cisco/enic/ |
D | vnic_cq.c | 67 iowrite32(cq->ring.desc_count, &cq->ctrl->ring_size); in vnic_cq_init()
|
/drivers/scsi/fnic/ |
D | vnic_cq.c | 62 iowrite32(cq->ring.desc_count, &cq->ctrl->ring_size); in vnic_cq_init()
|
D | vnic_wq_copy.c | 110 iowrite32(wq->ring.desc_count, &wq->ctrl->ring_size); in vnic_wq_copy_init()
|