Home
last modified time | relevance | path

Searched refs:ring_size (Results 1 – 25 of 135) sorted by relevance

123456

/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ih.c42 unsigned ring_size, bool use_bus_addr) in amdgpu_ih_ring_init() argument
48 rb_bufsz = order_base_2(ring_size / 4); in amdgpu_ih_ring_init()
49 ring_size = (1 << rb_bufsz) * 4; in amdgpu_ih_ring_init()
50 ih->ring_size = ring_size; in amdgpu_ih_ring_init()
51 ih->ptr_mask = ih->ring_size - 1; in amdgpu_ih_ring_init()
64 ih->ring = dma_alloc_coherent(adev->dev, ih->ring_size + 8, in amdgpu_ih_ring_init()
69 memset((void *)ih->ring, 0, ih->ring_size + 8); in amdgpu_ih_ring_init()
71 ih->wptr_addr = dma_addr + ih->ring_size; in amdgpu_ih_ring_init()
72 ih->wptr_cpu = &ih->ring[ih->ring_size / 4]; in amdgpu_ih_ring_init()
73 ih->rptr_addr = dma_addr + ih->ring_size + 4; in amdgpu_ih_ring_init()
[all …]
Dpsp_v10_0.c107 ring->ring_size = 0x1000; in psp_v10_0_ring_init()
108 ret = amdgpu_bo_create_kernel(adev, ring->ring_size, PAGE_SIZE, in psp_v10_0_ring_init()
114 ring->ring_size = 0; in psp_v10_0_ring_init()
136 psp_ring_reg = ring->ring_size; in psp_v10_0_ring_create()
201 ring->ring_size / sizeof(struct psp_gfx_rb_frame) - 1; in psp_v10_0_cmd_submit()
203 uint32_t ring_size_dw = ring->ring_size / 4; in psp_v10_0_cmd_submit()
Dvega10_ih.c63 if (adev->irq.ih1.ring_size) { in vega10_ih_enable_interrupts()
79 if (adev->irq.ih2.ring_size) { in vega10_ih_enable_interrupts()
124 if (adev->irq.ih1.ring_size) { in vega10_ih_disable_interrupts()
144 if (adev->irq.ih2.ring_size) { in vega10_ih_disable_interrupts()
168 int rb_bufsz = order_base_2(ih->ring_size / 4); in vega10_ih_rb_cntl()
275 if (ih->ring_size) { in vega10_ih_irq_init()
305 if (ih->ring_size) { in vega10_ih_irq_init()
495 if ((v < ih->ring_size) && (v != ih->rptr)) in vega10_ih_irq_rearm()
Dpsp_v12_0.c217 ring->ring_size = 0x1000; in psp_v12_0_ring_init()
218 ret = amdgpu_bo_create_kernel(adev, ring->ring_size, PAGE_SIZE, in psp_v12_0_ring_init()
224 ring->ring_size = 0; in psp_v12_0_ring_init()
273 psp_ring_reg = ring->ring_size; in psp_v12_0_ring_create()
346 ring->ring_size / sizeof(struct psp_gfx_rb_frame) - 1; in psp_v12_0_cmd_submit()
348 uint32_t ring_size_dw = ring->ring_size / 4; in psp_v12_0_cmd_submit()
Damdgpu_ih.h37 unsigned ring_size; member
73 unsigned ring_size, bool use_bus_addr);
Damdgpu_ring.c311 ring->ring_size = roundup_pow_of_two(max_dw * 4 * sched_hw_submission); in amdgpu_ring_init()
313 ring->buf_mask = (ring->ring_size / 4) - 1; in amdgpu_ring_init()
318 r = amdgpu_bo_create_kernel(adev, ring->ring_size + ring->funcs->extra_dw, PAGE_SIZE, in amdgpu_ring_init()
464 if (*pos >= (ring->ring_size + 12)) in amdgpu_debugfs_ring_read()
504 i_size_write(ent->d_inode, ring->ring_size + 12); in amdgpu_debugfs_ring_init()
Dpsp_v3_1.c250 ring->ring_size = 0x1000; in psp_v3_1_ring_init()
251 ret = amdgpu_bo_create_kernel(adev, ring->ring_size, PAGE_SIZE, in psp_v3_1_ring_init()
257 ring->ring_size = 0; in psp_v3_1_ring_init()
340 psp_ring_reg = ring->ring_size; in psp_v3_1_ring_create()
422 ring->ring_size / sizeof(struct psp_gfx_rb_frame) - 1; in psp_v3_1_cmd_submit()
424 uint32_t ring_size_dw = ring->ring_size / 4; in psp_v3_1_cmd_submit()
Dpsp_v11_0.c380 ring->ring_size = 0x1000; in psp_v11_0_ring_init()
381 ret = amdgpu_bo_create_kernel(adev, ring->ring_size, PAGE_SIZE, in psp_v11_0_ring_init()
387 ring->ring_size = 0; in psp_v11_0_ring_init()
470 psp_ring_reg = ring->ring_size; in psp_v11_0_ring_create()
516 ring->ring_size / sizeof(struct psp_gfx_rb_frame) - 1; in psp_v11_0_cmd_submit()
518 uint32_t ring_size_dw = ring->ring_size / 4; in psp_v11_0_cmd_submit()
Damdgpu_test.c50 n -= adev->rings[i]->ring_size; in amdgpu_do_test_moves()
54 n -= adev->irq.ih.ring_size; in amdgpu_do_test_moves()
/drivers/gpu/drm/radeon/
Dradeon_ring.c87 ring->ring_free_dw = rptr + (ring->ring_size / 4); in radeon_ring_free_size()
92 ring->ring_free_dw = ring->ring_size / 4; in radeon_ring_free_size()
113 if (ndw > (ring->ring_size / 4)) in radeon_ring_alloc()
312 size = ring->wptr + (ring->ring_size / 4); in radeon_ring_backup()
379 int radeon_ring_init(struct radeon_device *rdev, struct radeon_ring *ring, unsigned ring_size, in radeon_ring_init() argument
384 ring->ring_size = ring_size; in radeon_ring_init()
389 r = radeon_bo_create(rdev, ring->ring_size, PAGE_SIZE, true, in radeon_ring_init()
414 ring->ptr_mask = (ring->ring_size / 4) - 1; in radeon_ring_init()
415 ring->ring_free_dw = ring->ring_size / 4; in radeon_ring_init()
476 count = (ring->ring_size / 4) - ring->ring_free_dw; in radeon_debugfs_ring_info()
Dni.c1694 rb_cntl = order_base_2(ring->ring_size / 8); in cayman_cp_resume()
2047 rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_size = 0; in cayman_uvd_start()
2055 if (!rdev->has_uvd || !rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_size) in cayman_uvd_resume()
2059 r = radeon_ring_init(rdev, ring, ring->ring_size, 0, PACKET0(UVD_NO_OP, 0)); in cayman_uvd_resume()
2127 rdev->ring[TN_RING_TYPE_VCE1_INDEX].ring_size = 0; in cayman_vce_start()
2128 rdev->ring[TN_RING_TYPE_VCE2_INDEX].ring_size = 0; in cayman_vce_start()
2136 if (!rdev->has_vce || !rdev->ring[TN_RING_TYPE_VCE1_INDEX].ring_size) in cayman_vce_resume()
2140 r = radeon_ring_init(rdev, ring, ring->ring_size, 0, 0x0); in cayman_vce_resume()
2146 r = radeon_ring_init(rdev, ring, ring->ring_size, 0, 0x0); in cayman_vce_resume()
2254 r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP_RPTR_OFFSET, in cayman_startup()
[all …]
/drivers/net/ethernet/amazon/ena/
Dena_netdev.h122 #define ENA_TX_RING_IDX_NEXT(idx, ring_size) (((idx) + 1) & ((ring_size) - 1)) argument
124 #define ENA_RX_RING_IDX_NEXT(idx, ring_size) (((idx) + 1) & ((ring_size) - 1)) argument
125 #define ENA_RX_RING_IDX_ADD(idx, n, ring_size) \ argument
126 (((idx) + (n)) & ((ring_size) - 1))
276 int ring_size; member
Dena_netdev.c184 txr->ring_size = adapter->requested_tx_ring_size; in ena_init_io_rings()
192 rxr->ring_size = adapter->requested_rx_ring_size; in ena_init_io_rings()
220 size = sizeof(struct ena_tx_buffer) * tx_ring->ring_size; in ena_setup_tx_resources()
230 size = sizeof(u16) * tx_ring->ring_size; in ena_setup_tx_resources()
247 for (i = 0; i < tx_ring->ring_size; i++) in ena_setup_tx_resources()
331 if (likely(req_id < rx_ring->ring_size)) in validate_rx_req_id()
369 size = sizeof(struct ena_rx_buffer) * (rx_ring->ring_size + 1); in ena_setup_rx_resources()
379 size = sizeof(u16) * rx_ring->ring_size; in ena_setup_rx_resources()
391 for (i = 0; i < rx_ring->ring_size; i++) in ena_setup_rx_resources()
560 rx_ring->ring_size); in ena_refill_rx_bufs()
[all …]
/drivers/xen/
Devtchn.c67 unsigned int ring_size; member
98 return idx & (u->ring_size - 1); in evtchn_ring_offset()
174 if ((u->ring_prod - u->ring_cons) < u->ring_size) { in evtchn_interrupt()
230 if (((c ^ p) & u->ring_size) != 0) { in evtchn_read()
231 bytes1 = (u->ring_size - evtchn_ring_offset(u, c)) * in evtchn_read()
317 if (u->nr_evtchns <= u->ring_size) in evtchn_resize_ring()
320 if (u->ring_size == 0) in evtchn_resize_ring()
323 new_size = 2 * u->ring_size; in evtchn_resize_ring()
349 memcpy(new_ring, old_ring, u->ring_size * sizeof(*u->ring)); in evtchn_resize_ring()
350 memcpy(new_ring + u->ring_size, old_ring, in evtchn_resize_ring()
[all …]
/drivers/crypto/qat/qat_common/
Dadf_transport.c120 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()
148 ADF_RING_SIZE_MODULO(ring->ring_size)); in adf_handle_response()
161 uint32_t ring_config = BUILD_RING_CONFIG(ring->ring_size); in adf_configure_tx_ring()
170 BUILD_RESP_RING_CONFIG(ring->ring_size, in adf_configure_rx_ring()
185 ADF_SIZE_TO_RING_SIZE_IN_BYTES(ring->ring_size); in adf_init_ring()
209 ring_base = BUILD_RING_BASE_ADDR(ring->dma_addr, ring->ring_size); in adf_init_ring()
219 ADF_SIZE_TO_RING_SIZE_IN_BYTES(ring->ring_size); in adf_cleanup_ring()
282 ring->ring_size = adf_verify_ring_size(msg_size, num_msgs); in adf_create_ring()
Dadf_transport_debug.c65 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()
/drivers/net/ethernet/pensando/ionic/
Dionic_dev.c280 .q_init.ring_size = ilog2(q->num_descs), in ionic_dev_cmd_adminq_init()
298 unsigned int ring_size; in ionic_cq_init() local
304 ring_size = ilog2(num_descs); in ionic_cq_init()
305 if (ring_size < 2 || ring_size > 16) in ionic_cq_init()
379 unsigned int ring_size; in ionic_q_init() local
385 ring_size = ilog2(num_descs); in ionic_q_init()
386 if (ring_size < 2 || ring_size > 16) in ionic_q_init()
/drivers/net/ethernet/atheros/
Dag71xx.c634 int ring_mask, ring_size; in ag71xx_tx_packets() local
638 ring_size = BIT(ring->order); in ag71xx_tx_packets()
691 if ((ring->curr - ring->dirty) < (ring_size * 3) / 4) in ag71xx_tx_packets()
990 int ring_size = BIT(ring->order); in ag71xx_ring_tx_init() local
991 int ring_mask = ring_size - 1; in ag71xx_ring_tx_init()
994 for (i = 0; i < ring_size; i++) { in ag71xx_ring_tx_init()
1015 int ring_size = BIT(ring->order); in ag71xx_ring_rx_clean() local
1021 for (i = 0; i < ring_size; i++) in ag71xx_ring_rx_clean()
1062 int ring_size = BIT(ring->order); in ag71xx_ring_rx_init() local
1067 for (i = 0; i < ring_size; i++) { in ag71xx_ring_rx_init()
[all …]
/drivers/gpu/drm/r128/
Dr128_ioc32.c45 int ring_size; member
77 init.ring_size = init32.ring_size; in compat_r128_init()
/drivers/net/ethernet/microchip/
Dlan743x_main.c1277 return ((++index) % tx->ring_size); in lan743x_tx_next_index()
1298 sizeof(*tx->ring_cpu_ptr) * (tx->ring_size)); in lan743x_tx_release_all_descriptors()
1300 sizeof(*tx->buffer_info) * (tx->ring_size)); in lan743x_tx_release_all_descriptors()
1322 return tx->ring_size - last_tail + last_head - 1; in lan743x_tx_get_avail_desc()
1565 if (required_number_of_descriptors > (tx->ring_size - 1)) { in lan743x_tx_xmit_frame()
1700 tx->ring_size = 0; in lan743x_tx_ring_cleanup()
1710 tx->ring_size = LAN743X_TX_RING_SIZE; in lan743x_tx_ring_init()
1711 if (tx->ring_size & ~TX_CFG_B_TX_RING_LEN_MASK_) { in lan743x_tx_ring_init()
1715 ring_allocation_size = ALIGN(tx->ring_size * in lan743x_tx_ring_init()
1730 cpu_ptr = kcalloc(tx->ring_size, sizeof(*tx->buffer_info), GFP_KERNEL); in lan743x_tx_ring_init()
[all …]
/drivers/net/ethernet/ti/
Dcpmac.c191 int ring_size; member
684 for (i = 0; i < priv->ring_size; i++) { in cpmac_clear_rx()
839 ring->rx_pending = priv->ring_size; in cpmac_get_ringparam()
852 priv->ring_size = ring->rx_pending; in cpmac_set_ringparam()
935 size = priv->ring_size + CPMAC_QUEUES; in cpmac_open()
949 for (i = 0, desc = priv->rx_head; i < priv->ring_size; i++, desc++) { in cpmac_open()
962 desc->next = &priv->rx_head[(i + 1) % priv->ring_size]; in cpmac_open()
988 for (i = 0; i < priv->ring_size; i++) { in cpmac_open()
1034 for (i = 0; i < priv->ring_size; i++) { in cpmac_stop()
1045 (CPMAC_QUEUES + priv->ring_size), in cpmac_stop()
[all …]
/drivers/hv/
Dring_buffer.c228 ring_info->ring_size = page_cnt << PAGE_SHIFT; in hv_ringbuffer_init()
230 reciprocal_value(ring_info->ring_size / 10); in hv_ringbuffer_init()
231 ring_info->ring_datasize = ring_info->ring_size - in hv_ringbuffer_init()
/drivers/scsi/fnic/
Dvnic_wq.c163 iowrite32(count, &wq->ctrl->ring_size); in vnic_wq_init_start()
185 iowrite32(wq->ring.desc_count, &wq->ctrl->ring_size); in vnic_wq_init()
/drivers/gpu/drm/i915/gvt/
Dcmd_parser.c472 unsigned long ring_size; member
712 s->ring_id, s->ring_start, s->ring_start + s->ring_size, in parser_exec_state_dump()
753 unsigned long ring_top = s->ring_start + s->ring_size; in update_ip_va()
787 if (s->ip_gma >= s->ring_start + s->ring_size) in ip_gma_advance()
788 s->ip_gma -= s->ring_size; in ip_gma_advance()
1185 if (s->ret_ip_gma_ring >= s->ring_start + s->ring_size) in cmd_handler_mi_batch_buffer_end()
1186 s->ret_ip_gma_ring -= s->ring_size; in cmd_handler_mi_batch_buffer_end()
2784 s.ring_size = _RING_CTL_BUF_SIZE(workload->rb_ctl); in scan_workload()
2809 unsigned long gma_head, gma_tail, gma_bottom, ring_size, ring_tail; in scan_wa_ctx() local
2822 ring_size = round_up(wa_ctx->indirect_ctx.size + CACHELINE_BYTES, in scan_wa_ctx()
[all …]
/drivers/net/ethernet/freescale/
Dfec_main.c243 (addr < txq->tso_hdrs_dma + txq->bd.ring_size * TSO_HEADER_SIZE))
274 return entries >= 0 ? entries : entries + txq->bd.ring_size; in fec_enet_get_free_txdesc_num()
803 for (i = 0; i < rxq->bd.ring_size; i++) { in fec_enet_bd_init()
826 for (i = 0; i < txq->bd.ring_size; i++) { in fec_enet_bd_init()
897 for (j = 0; j < txq->bd.ring_size; j++) { in fec_enet_reset_skb()
2702 for (i = 0; i < rxq->bd.ring_size; i++) { in fec_enet_free_buffers()
2719 for (i = 0; i < txq->bd.ring_size; i++) { in fec_enet_free_buffers()
2739 txq->bd.ring_size * TSO_HEADER_SIZE, in fec_enet_free_queue()
2765 txq->bd.ring_size = TX_RING_SIZE; in fec_enet_alloc_queue()
2766 fep->total_tx_ring_size += fep->tx_queue[i]->bd.ring_size; in fec_enet_alloc_queue()
[all …]

123456