Home
last modified time | relevance | path

Searched refs:ring_idx (Results 1 – 22 of 22) sorted by relevance

/linux-6.6.21/drivers/gpu/drm/virtio/
Dvirtgpu_submit.c44 u32 ring_idx; member
51 u32 context = submit->fence_ctx + submit->ring_idx; in virtio_gpu_do_fence_wait()
275 u32 ring_idx) in virtio_gpu_fence_event_create() argument
371 u64 fence_ctx, u32 ring_idx) in virtio_gpu_init_submit() argument
382 (vfpriv->ring_idx_mask & BIT_ULL(ring_idx))) in virtio_gpu_init_submit()
391 out_fence = virtio_gpu_fence_alloc(vgdev, fence_ctx, ring_idx); in virtio_gpu_init_submit()
396 err = virtio_gpu_fence_event_create(dev, file, out_fence, ring_idx); in virtio_gpu_init_submit()
405 submit->ring_idx = ring_idx; in virtio_gpu_init_submit()
481 u32 ring_idx = 0; in virtio_gpu_execbuffer_ioctl() local
491 if (exbuf->ring_idx >= vfpriv->num_rings) in virtio_gpu_execbuffer_ioctl()
[all …]
Dvirtgpu_fence.c76 uint32_t ring_idx) in virtio_gpu_fence_alloc() argument
78 uint64_t fence_context = base_fence_ctx + ring_idx; in virtio_gpu_fence_alloc()
87 fence->ring_idx = ring_idx; in virtio_gpu_fence_alloc()
123 cmd_hdr->ring_idx = (u8)fence->ring_idx; in virtio_gpu_fence_emit()
Dvirtgpu_drv.h146 uint32_t ring_idx; member
441 uint32_t ring_idx);
/linux-6.6.21/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_debugfs.c64 static void debugfs_dim_ring_init(struct dim *dim, int ring_idx, in debugfs_dim_ring_init() argument
69 snprintf(qname, 10, "%d", ring_idx); in debugfs_dim_ring_init()
Dbnxt_ulp.h26 u32 ring_idx; member
Dbnxt_ulp.c44 ent[i].ring_idx = idx + i; in bnxt_fill_msix_vecs()
Dbnxt.c2906 int ring_idx = j & bp->tx_ring_mask; in bnxt_free_tx_skbs() local
2909 tx_buf = &txr->tx_buf_ring[ring_idx]; in bnxt_free_tx_skbs()
/linux-6.6.21/drivers/net/vmxnet3/
Dvmxnet3_drv.c613 vmxnet3_rq_alloc_rx_buf(struct vmxnet3_rx_queue *rq, u32 ring_idx, in vmxnet3_rq_alloc_rx_buf() argument
617 struct vmxnet3_rx_buf_info *rbi_base = rq->buf_info[ring_idx]; in vmxnet3_rq_alloc_rx_buf()
618 struct vmxnet3_cmd_ring *ring = &rq->rx_ring[ring_idx]; in vmxnet3_rq_alloc_rx_buf()
1531 u32 idx, ring_idx; in vmxnet3_rq_rx_complete() local
1548 ring_idx = VMXNET3_GET_RING_IDX(adapter, rcd->rqID); in vmxnet3_rq_rx_complete()
1549 ring = rq->rx_ring + ring_idx; in vmxnet3_rq_rx_complete()
1550 vmxnet3_getRxDesc(rxd, &rq->rx_ring[ring_idx].base[idx].rxd, in vmxnet3_rq_rx_complete()
1552 rbi = rq->buf_info[ring_idx] + idx; in vmxnet3_rq_rx_complete()
1604 ring_idx, idx); in vmxnet3_rq_rx_complete()
1845 ring = rq->rx_ring + ring_idx; in vmxnet3_rq_rx_complete()
[all …]
Dvmxnet3_int.h448 #define VMXNET3_RX_ALLOC_THRESHOLD(rq, ring_idx, adapter) \ argument
449 ((rq)->rx_ring[ring_idx].size >> 3)
/linux-6.6.21/drivers/net/wireless/ath/wil6210/
Ddebugfs.c1067 int ring_idx = dbg_ring_index; in txdesc_show() local
1075 if (ring_idx >= WIL6210_MAX_TX_RINGS) { in txdesc_show()
1076 seq_printf(s, "invalid ring index %d\n", ring_idx); in txdesc_show()
1079 tx = ring_idx > 0; /* desc ring 0 is reserved for RX */ in txdesc_show()
1082 if (ring_idx > WIL6210_MAX_TX_RINGS) { in txdesc_show()
1083 seq_printf(s, "invalid ring index %d\n", ring_idx); in txdesc_show()
1086 tx = (ring_idx < WIL6210_MAX_TX_RINGS); in txdesc_show()
1089 ring = tx ? &wil->ring_tx[ring_idx] : &wil->ring_rx; in txdesc_show()
1093 seq_printf(s, "No Tx[%2d] RING\n", ring_idx); in txdesc_show()
1102 ring_idx, txdesc_idx, ring->size); in txdesc_show()
[all …]
/linux-6.6.21/include/uapi/drm/
Dvirtgpu_drm.h85 __u32 ring_idx; /* command ring index (see VIRTGPU_EXECBUF_RING_IDX) */ member
/linux-6.6.21/drivers/bus/mhi/ep/
Dmain.c28 static int mhi_ep_send_event(struct mhi_ep_cntrl *mhi_cntrl, u32 ring_idx, in mhi_ep_send_event() argument
37 ring = &mhi_cntrl->mhi_event[ring_idx].ring; in mhi_ep_send_event()
38 ctx = (union mhi_ep_ring_ctx *)&mhi_cntrl->ev_ctx_cache[ring_idx]; in mhi_ep_send_event()
42 dev_err(dev, "Error starting event ring (%u)\n", ring_idx); in mhi_ep_send_event()
50 dev_err(dev, "Error adding element to event ring (%u)\n", ring_idx); in mhi_ep_send_event()
/linux-6.6.21/include/uapi/linux/
Dvirtio_gpu.h142 __u8 ring_idx; member
/linux-6.6.21/drivers/net/ethernet/intel/ixgbe/
Dixgbe_lib.c1104 adapter->rx_ring[i]->ring_idx = i; in ixgbe_alloc_q_vectors()
1109 adapter->tx_ring[i]->ring_idx = i; in ixgbe_alloc_q_vectors()
1114 adapter->xdp_ring[i]->ring_idx = i; in ixgbe_alloc_q_vectors()
Dixgbe_xsk.c15 int qid = ring->ring_idx; in ixgbe_xsk_pool()
Dixgbe.h400 u16 ring_idx; /* {rx,tx,xdp}_ring back reference idx */ member
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns/
Dhns_enet.c1256 static int hns_nic_init_affinity_mask(int q_num, int ring_idx, in hns_nic_init_affinity_mask() argument
1267 cpu = ring_idx; in hns_nic_init_affinity_mask()
1269 cpu = ring_idx - q_num; in hns_nic_init_affinity_mask()
1272 cpu = ring_idx * 2; in hns_nic_init_affinity_mask()
1274 cpu = (ring_idx - q_num) * 2 + 1; in hns_nic_init_affinity_mask()
Dhns_dsaf_rcb.c488 struct rcb_common_cb *rcb_common, int ring_idx) in hns_rcb_get_port_in_comm() argument
490 return ring_idx / (rcb_common->max_q_per_vf * rcb_common->max_vfn); in hns_rcb_get_port_in_comm()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/
Den_netdev.c1596 static int mlx4_en_init_affinity_hint(struct mlx4_en_priv *priv, int ring_idx) in mlx4_en_init_affinity_hint() argument
1598 struct mlx4_en_rx_ring *ring = priv->rx_ring[ring_idx]; in mlx4_en_init_affinity_hint()
1604 cpumask_set_cpu(cpumask_local_spread(ring_idx, numa_node), in mlx4_en_init_affinity_hint()
1609 static void mlx4_en_free_affinity_hint(struct mlx4_en_priv *priv, int ring_idx) in mlx4_en_free_affinity_hint() argument
1611 free_cpumask_var(priv->rx_ring[ring_idx]->affinity_mask); in mlx4_en_free_affinity_hint()
/linux-6.6.21/drivers/infiniband/hw/bnxt_re/
Dmain.c1187 rattr.lrid = rdev->en_dev->msix_entries[i + 1].ring_idx; in bnxt_re_alloc_res()
1505 rattr.lrid = rdev->en_dev->msix_entries[BNXT_RE_AEQ_IDX].ring_idx; in bnxt_re_dev_init()
/linux-6.6.21/drivers/dma/ti/
Dk3-udma.c1680 int ring_idx, ret; in udma_alloc_tx_resources() local
1688 ring_idx = tchan->tflow_id; in udma_alloc_tx_resources()
1690 ring_idx = ud->bchan_cnt + tchan->id; in udma_alloc_tx_resources()
1692 ret = k3_ringacc_request_rings_pair(ud->ringacc, ring_idx, -1, in udma_alloc_tx_resources()
/linux-6.6.21/drivers/net/ethernet/broadcom/
Dbnx2.c3025 u32 ring_idx) in bnx2_rx_skb() argument
3028 u16 prod = ring_idx & 0xffff; in bnx2_rx_skb()
3033 bnx2_reuse_rx_data(bp, rxr, data, (u16) (ring_idx >> 16), prod); in bnx2_rx_skb()