Home
last modified time | relevance | path

Searched refs:queue_id (Results 1 – 25 of 190) sorted by relevance

12345678

/linux/drivers/net/ethernet/engleder/
H A Dtsnep_xdp.c22 struct xsk_buff_pool *pool, u16 queue_id) in tsnep_xdp_enable_pool() argument
27 if (queue_id >= adapter->num_rx_queues || in tsnep_xdp_enable_pool()
28 queue_id >= adapter->num_tx_queues) in tsnep_xdp_enable_pool()
31 queue = &adapter->queue[queue_id]; in tsnep_xdp_enable_pool()
32 if (queue->rx->queue_index != queue_id || in tsnep_xdp_enable_pool()
33 queue->tx->queue_index != queue_id) { in tsnep_xdp_enable_pool()
58 static int tsnep_xdp_disable_pool(struct tsnep_adapter *adapter, u16 queue_id) in tsnep_xdp_disable_pool() argument
63 if (queue_id >= adapter->num_rx_queues || in tsnep_xdp_disable_pool()
64 queue_id >= adapter->num_tx_queues) in tsnep_xdp_disable_pool()
67 pool = xsk_get_pool_from_qid(adapter->netdev, queue_id); in tsnep_xdp_disable_pool()
[all …]
/linux/arch/mips/include/asm/octeon/
H A Dcvmx-cmd-queue.h170 cvmx_cmd_queue_result_t cvmx_cmd_queue_initialize(cvmx_cmd_queue_id_t queue_id,
183 cvmx_cmd_queue_result_t cvmx_cmd_queue_shutdown(cvmx_cmd_queue_id_t queue_id);
193 int cvmx_cmd_queue_length(cvmx_cmd_queue_id_t queue_id);
205 void *cvmx_cmd_queue_buffer(cvmx_cmd_queue_id_t queue_id);
214 static inline int __cvmx_cmd_queue_get_index(cvmx_cmd_queue_id_t queue_id) in __cvmx_cmd_queue_get_index() argument
223 int unit = queue_id >> 16; in __cvmx_cmd_queue_get_index()
224 int q = (queue_id >> 4) & 0xf; in __cvmx_cmd_queue_get_index()
225 int core = queue_id & 0xf; in __cvmx_cmd_queue_get_index()
236 static inline void __cvmx_cmd_queue_lock(cvmx_cmd_queue_id_t queue_id, in __cvmx_cmd_queue_lock() argument
278 … "=" GCC_OFF_SMALL_ASM()(__cvmx_cmd_queue_state_ptr->ticket[__cvmx_cmd_queue_get_index(queue_id)]), in __cvmx_cmd_queue_lock()
[all …]
/linux/drivers/net/ethernet/intel/igc/
H A Digc_xdp.c44 struct xsk_buff_pool *pool, u16 queue_id) in igc_xdp_enable_pool() argument
54 if (queue_id >= adapter->num_rx_queues || in igc_xdp_enable_pool()
55 queue_id >= adapter->num_tx_queues) in igc_xdp_enable_pool()
76 rx_ring = adapter->rx_ring[queue_id]; in igc_xdp_enable_pool()
77 tx_ring = adapter->tx_ring[queue_id]; in igc_xdp_enable_pool()
95 err = igc_xsk_wakeup(ndev, queue_id, XDP_WAKEUP_RX); in igc_xdp_enable_pool()
105 static int igc_xdp_disable_pool(struct igc_adapter *adapter, u16 queue_id) in igc_xdp_disable_pool() argument
112 if (queue_id >= adapter->num_rx_queues || in igc_xdp_disable_pool()
113 queue_id >= adapter->num_tx_queues) in igc_xdp_disable_pool()
116 pool = xsk_get_pool_from_qid(adapter->netdev, queue_id); in igc_xdp_disable_pool()
[all …]
/linux/arch/mips/cavium-octeon/executive/
H A Dcvmx-cmd-queue.c108 cvmx_cmd_queue_result_t cvmx_cmd_queue_initialize(cvmx_cmd_queue_id_t queue_id, in cvmx_cmd_queue_initialize() argument
117 qstate = __cvmx_cmd_queue_get_state(queue_id); in cvmx_cmd_queue_initialize()
188 ticket[__cvmx_cmd_queue_get_index(queue_id)] = 0; in cvmx_cmd_queue_initialize()
203 cvmx_cmd_queue_result_t cvmx_cmd_queue_shutdown(cvmx_cmd_queue_id_t queue_id) in cvmx_cmd_queue_shutdown() argument
205 __cvmx_cmd_queue_state_t *qptr = __cvmx_cmd_queue_get_state(queue_id); in cvmx_cmd_queue_shutdown()
212 if (cvmx_cmd_queue_length(queue_id) > 0) { in cvmx_cmd_queue_shutdown()
218 __cvmx_cmd_queue_lock(queue_id, qptr); in cvmx_cmd_queue_shutdown()
238 int cvmx_cmd_queue_length(cvmx_cmd_queue_id_t queue_id) in cvmx_cmd_queue_length() argument
241 if (__cvmx_cmd_queue_get_state(queue_id) == NULL) in cvmx_cmd_queue_length()
249 switch ((cvmx_cmd_queue_id_t) (queue_id & 0xff0000)) { in cvmx_cmd_queue_length()
[all …]
/linux/drivers/scsi/lpfc/
H A Dlpfc_debugfs.h402 q->queue_id, q->type, q->subtype, in lpfc_debug_dump_q()
442 qtypestr, wqidx, wq->queue_id); in lpfc_debug_dump_wq()
445 qtypestr, wq->queue_id); in lpfc_debug_dump_wq()
490 if (cq->assoc_qid == eq->queue_id) in lpfc_debug_dump_cq()
502 qtypestr, wqidx, wq->queue_id, wqidx, cq->queue_id, in lpfc_debug_dump_cq()
503 eqidx, eq->queue_id); in lpfc_debug_dump_cq()
507 qtypestr, wq->queue_id, cq->queue_id, in lpfc_debug_dump_cq()
508 eqidx, eq->queue_id); in lpfc_debug_dump_cq()
528 pr_err("EQ[Idx:%d|Qid:%d]\n", qidx, qp->queue_id); in lpfc_debug_dump_hba_eq()
543 phba->sli4_hba.dat_rq->queue_id); in lpfc_debug_dump_dat_rq()
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_amdkfd_gfx_v10_3.c58 uint32_t queue_id) in acquire_queue() argument
63 lock_srbm(adev, mec, pipe, queue_id, 0); in acquire_queue()
67 uint32_t pipe_id, uint32_t queue_id) in get_queue_mask() argument
70 queue_id; in get_queue_mask()
131 unsigned int queue_id) in get_sdma_rlc_reg_offset() argument
161 + queue_id * (mmSDMA0_RLC1_RB_CNTL - mmSDMA0_RLC0_RB_CNTL); in get_sdma_rlc_reg_offset()
164 queue_id, sdma_rlc_reg_offset); in get_sdma_rlc_reg_offset()
180 uint32_t pipe_id, uint32_t queue_id, in hqd_load_v10_3() argument
190 pr_debug("Load hqd of pipe %d queue %d\n", pipe_id, queue_id); in hqd_load_v10_3()
191 acquire_queue(adev, pipe_id, queue_id); in hqd_load_v10_3()
[all …]
H A Damdgpu_amdkfd_gfx_v11.c56 uint32_t queue_id) in acquire_queue() argument
61 lock_srbm(adev, mec, pipe, queue_id, 0); in acquire_queue()
65 uint32_t pipe_id, uint32_t queue_id) in get_queue_mask() argument
68 queue_id; in get_queue_mask()
127 unsigned int queue_id) in get_sdma_rlc_reg_offset() argument
146 + queue_id * (regSDMA0_QUEUE1_RB_CNTL - regSDMA0_QUEUE0_RB_CNTL); in get_sdma_rlc_reg_offset()
149 queue_id, sdma_rlc_reg_offset); in get_sdma_rlc_reg_offset()
165 uint32_t queue_id, uint32_t __user *wptr, in hqd_load_v11() argument
175 pr_debug("Load hqd of pipe %d queue %d\n", pipe_id, queue_id); in hqd_load_v11()
176 acquire_queue(adev, pipe_id, queue_id); in hqd_load_v11()
[all …]
H A Damdgpu_amdkfd_gfx_v9.h32 uint32_t queue_id, uint32_t __user *wptr,
36 uint32_t pipe_id, uint32_t queue_id,
39 uint32_t pipe_id, uint32_t queue_id,
43 uint32_t queue_id, uint32_t inst);
47 uint32_t queue_id, uint32_t inst);
62 uint32_t queue_id, uint32_t inst);
64 uint32_t pipe_id, uint32_t queue_id);
107 uint32_t queue_id,
111 uint32_t queue_id,
H A Damdgpu_amdkfd_gfx_v10.c58 uint32_t queue_id) in acquire_queue() argument
63 lock_srbm(adev, mec, pipe, queue_id, 0); in acquire_queue()
67 uint32_t pipe_id, uint32_t queue_id) in get_queue_mask() argument
70 queue_id; in get_queue_mask()
162 unsigned int queue_id) in get_sdma_rlc_reg_offset() argument
178 + queue_id * (mmSDMA0_RLC1_RB_CNTL - mmSDMA0_RLC0_RB_CNTL); in get_sdma_rlc_reg_offset()
181 queue_id, retval); in get_sdma_rlc_reg_offset()
209 uint32_t pipe_id, uint32_t queue_id, in kgd_hqd_load() argument
219 pr_debug("Load hqd of pipe %d queue %d\n", pipe_id, queue_id); in kgd_hqd_load()
220 acquire_queue(adev, pipe_id, queue_id); in kgd_hqd_load()
[all …]
H A Damdgpu_amdkfd_gfx_v8.c58 uint32_t queue_id) in acquire_queue() argument
63 lock_srbm(adev, mec, pipe, queue_id, 0); in acquire_queue()
155 uint32_t pipe_id, uint32_t queue_id, in kgd_hqd_load() argument
166 acquire_queue(adev, pipe_id, queue_id); in kgd_hqd_load()
176 mec, pipe, queue_id); in kgd_hqd_load()
179 ((mec << 5) | (pipe << 3) | queue_id | 0x80)); in kgd_hqd_load()
216 acquire_queue(adev, pipe_id, queue_id); in kgd_hqd_load()
229 uint32_t pipe_id, uint32_t queue_id, in kgd_hqd_dump() argument
245 acquire_queue(adev, pipe_id, queue_id); in kgd_hqd_dump()
318 uint32_t engine_id, uint32_t queue_id, in kgd_hqd_sdma_dump() argument
[all …]
H A Damdgpu_amdkfd_gfx_v9.c64 uint32_t queue_id, uint32_t inst) in kgd_gfx_v9_acquire_queue() argument
69 kgd_gfx_v9_lock_srbm(adev, mec, pipe, queue_id, 0, inst); in kgd_gfx_v9_acquire_queue()
73 uint32_t pipe_id, uint32_t queue_id) in kgd_gfx_v9_get_queue_mask() argument
76 queue_id; in kgd_gfx_v9_get_queue_mask()
182 unsigned int queue_id) in get_sdma_rlc_reg_offset() argument
204 + queue_id * (mmSDMA0_RLC1_RB_CNTL - mmSDMA0_RLC0_RB_CNTL); in get_sdma_rlc_reg_offset()
207 queue_id, sdma_rlc_reg_offset); in get_sdma_rlc_reg_offset()
223 uint32_t pipe_id, uint32_t queue_id, in kgd_gfx_v9_hqd_load() argument
234 kgd_gfx_v9_acquire_queue(adev, pipe_id, queue_id, inst); in kgd_gfx_v9_hqd_load()
286 (uint32_t)kgd_gfx_v9_get_queue_mask(adev, pipe_id, queue_id)); in kgd_gfx_v9_hqd_load()
[all …]
H A Damdgpu_amdkfd_gfx_v7.c64 uint32_t queue_id) in acquire_queue() argument
69 lock_srbm(adev, mec, pipe, queue_id, 0); in acquire_queue()
160 uint32_t pipe_id, uint32_t queue_id, in kgd_hqd_load() argument
171 acquire_queue(adev, pipe_id, queue_id); in kgd_hqd_load()
192 acquire_queue(adev, pipe_id, queue_id); in kgd_hqd_load()
205 uint32_t pipe_id, uint32_t queue_id, in kgd_hqd_dump() argument
221 acquire_queue(adev, pipe_id, queue_id); in kgd_hqd_dump()
295 uint32_t engine_id, uint32_t queue_id, in kgd_hqd_sdma_dump() argument
299 queue_id * KFD_CIK_SDMA_QUEUE_OFFSET; in kgd_hqd_sdma_dump()
322 uint32_t queue_id, uint32_t inst) in kgd_hqd_is_occupied() argument
[all …]
H A Damdgpu_amdkfd_gfx_v12.c44 uint32_t queue_id) in acquire_queue() argument
49 lock_srbm(adev, mec, pipe, queue_id, 0); in acquire_queue()
78 unsigned int queue_id) in get_sdma_rlc_reg_offset() argument
97 + queue_id * (regSDMA0_QUEUE1_RB_CNTL - regSDMA0_QUEUE0_RB_CNTL); in get_sdma_rlc_reg_offset()
100 queue_id, sdma_rlc_reg_offset); in get_sdma_rlc_reg_offset()
106 uint32_t pipe_id, uint32_t queue_id, in hqd_dump_v12() argument
122 acquire_queue(adev, pipe_id, queue_id); in hqd_dump_v12()
137 uint32_t engine_id, uint32_t queue_id, in hqd_sdma_dump_v12() argument
141 engine_id, queue_id); in hqd_sdma_dump_v12()
H A Damdgpu_mes.h182 int queue_id; member
258 uint32_t queue_id; member
267 uint32_t queue_id; member
277 uint32_t queue_id; member
300 uint32_t queue_id; member
421 int *queue_id);
422 int amdgpu_mes_remove_hw_queue(struct amdgpu_device *adev, int queue_id);
423 int amdgpu_mes_reset_hw_queue(struct amdgpu_device *adev, int queue_id);
425 int me_id, int pipe_id, int queue_id, int vmid);
H A Damdgpu_mes.c340 idr_remove(&adev->mes.queue_id_idr, queue->queue_id); in amdgpu_mes_destroy_process()
604 int *queue_id) in amdgpu_mes_add_hw_queue() argument
648 *queue_id = queue->queue_id = r; in amdgpu_mes_add_hw_queue()
712 idr_remove(&adev->mes.queue_id_idr, queue->queue_id); in amdgpu_mes_add_hw_queue()
722 int amdgpu_mes_remove_hw_queue(struct amdgpu_device *adev, int queue_id) in amdgpu_mes_remove_hw_queue() argument
739 queue = idr_find(&adev->mes.queue_id_idr, queue_id); in amdgpu_mes_remove_hw_queue()
743 DRM_ERROR("queue id %d doesn't exist\n", queue_id); in amdgpu_mes_remove_hw_queue()
747 idr_remove(&adev->mes.queue_id_idr, queue_id); in amdgpu_mes_remove_hw_queue()
760 queue_id); in amdgpu_mes_remove_hw_queue()
771 int amdgpu_mes_reset_hw_queue(struct amdgpu_device *adev, int queue_id) in amdgpu_mes_reset_hw_queue() argument
[all …]
H A Damdgpu_amdkfd_gc_9_4_3.c45 unsigned int queue_id) in get_sdma_rlc_reg_offset() argument
52 queue_id * (regSDMA_RLC1_RB_CNTL - regSDMA_RLC0_RB_CNTL); in get_sdma_rlc_reg_offset()
55 queue_id, retval); in get_sdma_rlc_reg_offset()
129 uint32_t engine_id, uint32_t queue_id, in kgd_gfx_v9_4_3_hqd_sdma_dump() argument
133 engine_id, queue_id); in kgd_gfx_v9_4_3_hqd_sdma_dump()
285 uint32_t pipe_id, uint32_t queue_id, in kgd_gfx_v9_4_3_hqd_load() argument
295 kgd_gfx_v9_acquire_queue(adev, pipe_id, queue_id, inst); in kgd_gfx_v9_4_3_hqd_load()
347 (uint32_t)kgd_gfx_v9_get_queue_mask(adev, pipe_id, queue_id)); in kgd_gfx_v9_4_3_hqd_load()
/linux/drivers/mailbox/
H A Dti-msgmgr.c47 u8 queue_id; member
108 u8 queue_id; member
473 "rx_%03d", d->is_sproxy ? qinst->proxy_id : qinst->queue_id); in ti_msgmgr_queue_rx_irq_req()
486 qinst->queue_id, qinst->proxy_id, in ti_msgmgr_queue_rx_irq_req()
614 if (req_qid == qinst->queue_id && req_pid == qinst->proxy_id) in ti_msgmgr_of_xlate()
648 qinst->queue_id = qd->queue_id; in ti_msgmgr_queue_setup()
650 if (qinst->queue_id > d->queue_count) { in ti_msgmgr_queue_setup()
652 idx, qinst->queue_id, d->queue_count); in ti_msgmgr_queue_setup()
674 Q_DATA_OFFSET(qinst->proxy_id, qinst->queue_id, in ti_msgmgr_queue_setup()
677 Q_DATA_OFFSET(qinst->proxy_id, qinst->queue_id, in ti_msgmgr_queue_setup()
[all …]
/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_mqd_manager.h79 uint32_t pipe_id, uint32_t queue_id,
90 uint32_t queue_id);
97 uint32_t queue_id);
169 uint32_t pipe_id, uint32_t queue_id,
174 uint32_t pipe_id, uint32_t queue_id);
181 uint32_t queue_id);
184 uint32_t pipe_id, uint32_t queue_id,
189 uint32_t pipe_id, uint32_t queue_id);
193 uint32_t queue_id);
H A Dkfd_mqd_manager.c209 uint32_t pipe_id, uint32_t queue_id, in kfd_hiq_load_mqd_kiq() argument
213 queue_id, p->doorbell_off, 0); in kfd_hiq_load_mqd_kiq()
218 uint32_t pipe_id, uint32_t queue_id) in kfd_destroy_mqd_cp() argument
221 pipe_id, queue_id, 0); in kfd_destroy_mqd_cp()
237 uint32_t queue_id) in kfd_is_occupied_cp() argument
240 pipe_id, queue_id, 0); in kfd_is_occupied_cp()
244 uint32_t pipe_id, uint32_t queue_id, in kfd_load_mqd_sdma() argument
259 uint32_t queue_id) in kfd_destroy_mqd_sdma() argument
266 uint32_t queue_id) in kfd_is_occupied_sdma() argument
/linux/drivers/gpu/drm/amd/include/
H A Dkgd_kfd_interface.h234 uint32_t queue_id, uint32_t __user *wptr,
239 uint32_t pipe_id, uint32_t queue_id,
246 uint32_t pipe_id, uint32_t queue_id,
250 uint32_t engine_id, uint32_t queue_id,
255 uint32_t queue_id, uint32_t inst);
260 uint32_t queue_id, uint32_t inst);
328 uint32_t pipe_id, uint32_t queue_id,
331 uint32_t pipe_id, uint32_t queue_id,
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
H A Dphy.c381 u8 i, queue_id; in _rtl92cu_phy_set_rf_power_state() local
416 for (queue_id = 0, i = 0; in _rtl92cu_phy_set_rf_power_state()
417 queue_id < RTL_PCI_MAX_TX_QUEUE_COUNT;) { in _rtl92cu_phy_set_rf_power_state()
418 ring = &pcipriv->dev.tx_ring[queue_id]; in _rtl92cu_phy_set_rf_power_state()
420 queue_id == BEACON_QUEUE) { in _rtl92cu_phy_set_rf_power_state()
421 queue_id++; in _rtl92cu_phy_set_rf_power_state()
427 queue_id, in _rtl92cu_phy_set_rf_power_state()
436 queue_id, in _rtl92cu_phy_set_rf_power_state()
459 for (queue_id = 0, i = 0; in _rtl92cu_phy_set_rf_power_state()
460 queue_id < RTL_PCI_MAX_TX_QUEUE_COUNT;) { in _rtl92cu_phy_set_rf_power_state()
[all …]
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_xsk.c111 struct xsk_buff_pool *pool, u16 queue_id) in nfp_net_xsk_setup_pool() argument
143 prev_pool = dp->xsk_pools[queue_id]; in nfp_net_xsk_setup_pool()
144 dp->xsk_pools[queue_id] = pool; in nfp_net_xsk_setup_pool()
162 int nfp_net_xsk_wakeup(struct net_device *netdev, u32 queue_id, u32 flags) in nfp_net_xsk_wakeup() argument
171 napi_schedule(&nn->r_vecs[queue_id].napi); in nfp_net_xsk_wakeup()
/linux/net/xdp/
H A Dxsk_buff_pool.c149 bpf.xsk.queue_id = pool->queue_id; in xp_disable_drv_zc()
163 struct net_device *netdev, u16 queue_id, u16 flags) in xp_assign_dev() argument
177 if (xsk_get_pool_from_qid(netdev, queue_id)) in xp_assign_dev()
181 pool->queue_id = queue_id; in xp_assign_dev()
182 err = xsk_reg_pool_at_qid(netdev, pool, queue_id); in xp_assign_dev()
220 bpf.xsk.queue_id = queue_id; in xp_assign_dev()
241 xsk_clear_pool_at_qid(netdev, queue_id); in xp_assign_dev()
248 xp_assign_dev_shared(struct xsk_buff_pool * pool,struct xdp_sock * umem_xs,struct net_device * dev,u16 queue_id) xp_assign_dev_shared() argument
[all...]
/linux/tools/testing/selftests/bpf/
H A Dxsk.c71 __u32 queue_id; member
459 __u32 queue_id) in xsk_get_ctx() argument
467 if (ctx->ifindex == ifindex && ctx->queue_id == queue_id) { in xsk_get_ctx()
504 __u32 queue_id, in xsk_create_ctx() argument
530 ctx->queue_id = queue_id; in xsk_create_ctx()
540 __u32 queue_id, struct xsk_umem *umem, in xsk_socket__create_shared() argument
580 ctx = xsk_get_ctx(umem, ifindex, queue_id); in xsk_socket__create_shared()
587 ctx = xsk_create_ctx(xsk, umem, ifindex, queue_id, fill, comp); in xsk_socket__create_shared()
671 sxdp.sxdp_queue_id = ctx->queue_id; in xsk_socket__create_shared()
709 __u32 queue_id, struct xsk_umem *umem, in xsk_socket__create() argument
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
H A Dphy.c407 u8 i, queue_id; in _rtl92ce_phy_set_rf_power_state() local
462 for (queue_id = 0, i = 0; in _rtl92ce_phy_set_rf_power_state()
463 queue_id < RTL_PCI_MAX_TX_QUEUE_COUNT;) { in _rtl92ce_phy_set_rf_power_state()
464 ring = &pcipriv->dev.tx_ring[queue_id]; in _rtl92ce_phy_set_rf_power_state()
465 if (queue_id == BEACON_QUEUE || in _rtl92ce_phy_set_rf_power_state()
467 queue_id++; in _rtl92ce_phy_set_rf_power_state()
472 i + 1, queue_id, in _rtl92ce_phy_set_rf_power_state()
482 queue_id, in _rtl92ce_phy_set_rf_power_state()

12345678