Home
last modified time | relevance | path

Searched refs:q_idx (Results 1 – 25 of 52) sorted by relevance

123

/linux-5.19.10/drivers/infiniband/hw/hfi1/
Dvnic_main.c124 u8 q_idx, struct sk_buff *skb, int err) in hfi1_vnic_update_tx_counters() argument
127 struct opa_vnic_stats *stats = &vinfo->stats[q_idx]; in hfi1_vnic_update_tx_counters()
153 u8 q_idx, struct sk_buff *skb, int err) in hfi1_vnic_update_rx_counters() argument
156 struct opa_vnic_stats *stats = &vinfo->stats[q_idx]; in hfi1_vnic_update_rx_counters()
205 u8 q_idx) in hfi1_vnic_maybe_stop_tx() argument
207 netif_stop_subqueue(vinfo->netdev, q_idx); in hfi1_vnic_maybe_stop_tx()
208 if (!hfi1_vnic_sdma_write_avail(vinfo, q_idx)) in hfi1_vnic_maybe_stop_tx()
211 netif_start_subqueue(vinfo->netdev, q_idx); in hfi1_vnic_maybe_stop_tx()
218 u8 pad_len, q_idx = skb->queue_mapping; in hfi1_netdev_start_xmit() local
225 v_dbg("xmit: queue %d skb len %d\n", q_idx, skb->len); in hfi1_netdev_start_xmit()
[all …]
Dvnic_sdma.c125 int hfi1_vnic_send_dma(struct hfi1_devdata *dd, u8 q_idx, in hfi1_vnic_send_dma() argument
129 struct hfi1_vnic_sdma *vnic_sdma = &vinfo->sdma[q_idx]; in hfi1_vnic_send_dma()
223 if (__netif_subqueue_stopped(vinfo->netdev, vnic_sdma->q_idx)) in hfi1_vnic_sdma_wakeup()
224 netif_wake_subqueue(vinfo->netdev, vnic_sdma->q_idx); in hfi1_vnic_sdma_wakeup()
228 u8 q_idx) in hfi1_vnic_sdma_write_avail() argument
230 struct hfi1_vnic_sdma *vnic_sdma = &vinfo->sdma[q_idx]; in hfi1_vnic_sdma_write_avail()
248 vnic_sdma->q_idx = i; in hfi1_vnic_sdma_init()
Dvnic.h49 u8 q_idx; member
113 u8 q_idx);
122 int hfi1_vnic_send_dma(struct hfi1_devdata *dd, u8 q_idx,
Dipoib_tx.c57 netif_stop_subqueue(txq->priv->netdev, txq->q_idx); in hfi1_ipoib_stop_txq()
64 netif_wake_subqueue(txq->priv->netdev, txq->q_idx); in hfi1_ipoib_wake_txq()
125 le64_to_cpu(tx->sdma_hdr->pbc), tx->txq->q_idx, in hfi1_ipoib_free_tx()
722 txq->q_idx = i; in hfi1_ipoib_txreq_init()
787 txq->q_idx, in hfi1_ipoib_drain_tx_list()
846 __netif_subqueue_stopped(dev, txq->q_idx), in hfi1_ipoib_tx_timeout()
Dipoib.h114 u8 q_idx; member
/linux-5.19.10/drivers/net/ethernet/intel/ice/
Dice_xsk.c25 static void ice_qp_reset_stats(struct ice_vsi *vsi, u16 q_idx) in ice_qp_reset_stats() argument
27 memset(&vsi->rx_rings[q_idx]->rx_stats, 0, in ice_qp_reset_stats()
28 sizeof(vsi->rx_rings[q_idx]->rx_stats)); in ice_qp_reset_stats()
29 memset(&vsi->tx_rings[q_idx]->stats, 0, in ice_qp_reset_stats()
30 sizeof(vsi->tx_rings[q_idx]->stats)); in ice_qp_reset_stats()
32 memset(&vsi->xdp_rings[q_idx]->stats, 0, in ice_qp_reset_stats()
33 sizeof(vsi->xdp_rings[q_idx]->stats)); in ice_qp_reset_stats()
41 static void ice_qp_clean_rings(struct ice_vsi *vsi, u16 q_idx) in ice_qp_clean_rings() argument
43 ice_clean_tx_ring(vsi->tx_rings[q_idx]); in ice_qp_clean_rings()
46 ice_clean_tx_ring(vsi->xdp_rings[q_idx]); in ice_qp_clean_rings()
[all …]
Dice_lib.h16 int ice_vsi_cfg_single_rxq(struct ice_vsi *vsi, u16 q_idx);
18 int ice_vsi_cfg_single_txq(struct ice_vsi *vsi, struct ice_tx_ring **tx_rings, u16 q_idx);
Dice_lib.c1871 int ice_vsi_cfg_single_rxq(struct ice_vsi *vsi, u16 q_idx) in ice_vsi_cfg_single_rxq() argument
1873 if (q_idx >= vsi->num_rxq) in ice_vsi_cfg_single_rxq()
1876 return ice_vsi_cfg_rxq(vsi->rx_rings[q_idx]); in ice_vsi_cfg_single_rxq()
1879 int ice_vsi_cfg_single_txq(struct ice_vsi *vsi, struct ice_tx_ring **tx_rings, u16 q_idx) in ice_vsi_cfg_single_txq() argument
1884 if (q_idx >= vsi->alloc_txq || !tx_rings || !tx_rings[q_idx]) in ice_vsi_cfg_single_txq()
1893 err = ice_vsi_cfg_txq(vsi, tx_rings[q_idx], qg_buf); in ice_vsi_cfg_single_txq()
1938 u16 q_idx = 0; in ice_vsi_cfg_txqs() local
1947 for (q_idx = 0; q_idx < count; q_idx++) { in ice_vsi_cfg_txqs()
1948 err = ice_vsi_cfg_txq(vsi, rings[q_idx], qg_buf); in ice_vsi_cfg_txqs()
2175 u16 q_idx; in ice_vsi_stop_tx_rings() local
[all …]
/linux-5.19.10/drivers/misc/habanalabs/common/
Dhw_queue.c408 u32 q_idx; in init_signal_cs() local
411 q_idx = job->hw_queue_id; in init_signal_cs()
412 prop = &hdev->kernel_queues[q_idx].sync_stream_prop; in init_signal_cs()
420 cs_cmpl->hw_sob->sob_id, cs_cmpl->sob_val, q_idx, in init_signal_cs()
429 rc = hl_cs_signal_sob_wraparound_handler(hdev, q_idx, &hw_sob, 1, in init_signal_cs()
468 u32 q_idx; in init_wait_cs() local
470 q_idx = job->hw_queue_id; in init_wait_cs()
471 prop = &hdev->kernel_queues[q_idx].sync_stream_prop; in init_wait_cs()
485 cs->encaps_sig_hdl->q_idx, in init_wait_cs()
521 prop->base_mon_id, q_idx, cs->sequence); in init_wait_cs()
[all …]
Dcommand_submission.c58 hw_sob->q_idx, hw_sob->sob_id); in hl_sob_reset_error()
1581 int hl_cs_signal_sob_wraparound_handler(struct hl_device *hdev, u32 q_idx, in hl_cs_signal_sob_wraparound_handler() argument
1589 prop = &hdev->kernel_queues[q_idx].sync_stream_prop; in hl_cs_signal_sob_wraparound_handler()
1612 q_idx); in hl_cs_signal_sob_wraparound_handler()
1653 prop->curr_sob_offset, q_idx); in hl_cs_signal_sob_wraparound_handler()
1721 enum hl_queue_type q_type, u32 q_idx, u32 encaps_signal_offset) in cs_ioctl_signal_wait_create_jobs() argument
1757 job->hw_queue_id = q_idx; in cs_ioctl_signal_wait_create_jobs()
1785 u32 q_idx, u32 count, in cs_ioctl_reserve_signals() argument
1805 if (q_idx >= hdev->asic_prop.max_queues) { in cs_ioctl_reserve_signals()
1807 q_idx); in cs_ioctl_reserve_signals()
[all …]
/linux-5.19.10/drivers/net/hyperv/
Dnetvsc_bpf.c230 struct xdp_frame *frame, u16 q_idx) in netvsc_ndoxdp_xmit_fm() argument
240 skb_record_rx_queue(skb, q_idx); in netvsc_ndoxdp_xmit_fm()
256 u16 q_idx; in netvsc_ndoxdp_xmit() local
276 q_idx = smp_processor_id() % ndev->real_num_tx_queues; in netvsc_ndoxdp_xmit()
279 if (netvsc_ndoxdp_xmit_fm(ndev, frames[i], q_idx)) in netvsc_ndoxdp_xmit()
285 tx_stats = &nvsc_dev->chan_table[q_idx].tx_stats; in netvsc_ndoxdp_xmit()
Dnetvsc.c327 int netvsc_alloc_recv_comp_ring(struct netvsc_device *net_device, u32 q_idx) in netvsc_alloc_recv_comp_ring() argument
329 struct netvsc_channel *nvchan = &net_device->chan_table[q_idx]; in netvsc_alloc_recv_comp_ring()
792 u16 q_idx = 0; in netvsc_send_tx_complete() local
813 q_idx = packet->q_idx; in netvsc_send_tx_complete()
815 tx_stats = &net_device->chan_table[q_idx].tx_stats; in netvsc_send_tx_complete()
827 atomic_dec_return(&net_device->chan_table[q_idx].queue_sends); in netvsc_send_tx_complete()
833 struct netdev_queue *txq = netdev_get_tx_queue(ndev, q_idx); in netvsc_send_tx_complete()
1080 &net_device->chan_table[packet->q_idx]; in netvsc_send_pkt()
1084 struct netdev_queue *txq = netdev_get_tx_queue(ndev, packet->q_idx); in netvsc_send_pkt()
1221 nvchan = &net_device->chan_table[packet->q_idx]; in netvsc_send()
[all …]
Dnetvsc_drv.c250 int q_idx; in netvsc_get_tx_queue() local
252 q_idx = ndc->tx_table[netvsc_get_hash(skb, ndc) & in netvsc_get_tx_queue()
256 if (q_idx != old_idx && in netvsc_get_tx_queue()
258 sk_tx_queue_set(sk, q_idx); in netvsc_get_tx_queue()
260 return q_idx; in netvsc_get_tx_queue()
276 int q_idx = sk_tx_queue_get(skb->sk); in netvsc_pick_tx() local
278 if (q_idx < 0 || skb->ooo_okay || q_idx >= ndev->real_num_tx_queues) { in netvsc_pick_tx()
283 q_idx = skb_get_rx_queue(skb); in netvsc_pick_tx()
285 q_idx = netvsc_get_tx_queue(ndev, skb, q_idx); in netvsc_pick_tx()
288 return q_idx; in netvsc_pick_tx()
[all …]
/linux-5.19.10/drivers/net/wireless/mediatek/mt76/
Dmt76_connac_mac.c311 u8 p_fmt, q_idx, omac_idx = 0, wmm_idx = 0, band_idx = 0; in mt76_connac2_mac_write_txwi() local
332 q_idx = MT_LMAC_ALTX0; in mt76_connac2_mac_write_txwi()
335 q_idx = MT_LMAC_BCN0; in mt76_connac2_mac_write_txwi()
338 q_idx = MT_LMAC_ALTX0; in mt76_connac2_mac_write_txwi()
341 q_idx = wmm_idx * MT76_CONNAC_MAX_WMM_SETS + in mt76_connac2_mac_write_txwi()
347 FIELD_PREP(MT_TXD0_Q_IDX, q_idx); in mt76_connac2_mac_write_txwi()
/linux-5.19.10/drivers/net/ethernet/cavium/thunder/
Dnicvf_queues.h354 void nicvf_enable_intr(struct nicvf *nic, int int_type, int q_idx);
355 void nicvf_disable_intr(struct nicvf *nic, int int_type, int q_idx);
356 void nicvf_clear_intr(struct nicvf *nic, int int_type, int q_idx);
357 int nicvf_is_intr_enabled(struct nicvf *nic, int int_type, int q_idx);
Dnicvf_queues.c1723 static u64 nicvf_int_type_to_mask(int int_type, int q_idx) in nicvf_int_type_to_mask() argument
1729 reg_val = ((1ULL << q_idx) << NICVF_INTR_CQ_SHIFT); in nicvf_int_type_to_mask()
1732 reg_val = ((1ULL << q_idx) << NICVF_INTR_SQ_SHIFT); in nicvf_int_type_to_mask()
1735 reg_val = ((1ULL << q_idx) << NICVF_INTR_RBDR_SHIFT); in nicvf_int_type_to_mask()
1757 void nicvf_enable_intr(struct nicvf *nic, int int_type, int q_idx) in nicvf_enable_intr() argument
1759 u64 mask = nicvf_int_type_to_mask(int_type, q_idx); in nicvf_enable_intr()
1771 void nicvf_disable_intr(struct nicvf *nic, int int_type, int q_idx) in nicvf_disable_intr() argument
1773 u64 mask = nicvf_int_type_to_mask(int_type, q_idx); in nicvf_disable_intr()
1785 void nicvf_clear_intr(struct nicvf *nic, int int_type, int q_idx) in nicvf_clear_intr() argument
1787 u64 mask = nicvf_int_type_to_mask(int_type, q_idx); in nicvf_clear_intr()
[all …]
/linux-5.19.10/drivers/net/ethernet/intel/fm10k/
Dfm10k_pf.c502 u16 vsi, queue, pc, q_idx; in fm10k_configure_dglort_map_pf() local
519 q_idx = dglort->queue_b; in fm10k_configure_dglort_map_pf()
523 for (queue = 0; queue < queue_count; queue++, q_idx++) { in fm10k_configure_dglort_map_pf()
524 if (q_idx >= FM10K_MAX_QUEUES) in fm10k_configure_dglort_map_pf()
527 fm10k_write_reg(hw, FM10K_TX_SGLORT(q_idx), glort); in fm10k_configure_dglort_map_pf()
528 fm10k_write_reg(hw, FM10K_RX_SGLORT(q_idx), glort); in fm10k_configure_dglort_map_pf()
538 q_idx = pc + dglort->queue_b; in fm10k_configure_dglort_map_pf()
540 if (q_idx >= FM10K_MAX_QUEUES) in fm10k_configure_dglort_map_pf()
543 txqctl = fm10k_read_reg(hw, FM10K_TXQCTL(q_idx)); in fm10k_configure_dglort_map_pf()
546 fm10k_write_reg(hw, FM10K_TXQCTL(q_idx), txqctl); in fm10k_configure_dglort_map_pf()
[all …]
Dfm10k_pci.c1176 int q_idx; in fm10k_napi_enable_all() local
1178 for (q_idx = 0; q_idx < interface->num_q_vectors; q_idx++) { in fm10k_napi_enable_all()
1179 q_vector = interface->q_vector[q_idx]; in fm10k_napi_enable_all()
1873 int q_idx; in fm10k_napi_disable_all() local
1875 for (q_idx = 0; q_idx < interface->num_q_vectors; q_idx++) { in fm10k_napi_disable_all()
1876 q_vector = interface->q_vector[q_idx]; in fm10k_napi_disable_all()
/linux-5.19.10/net/sched/
Dsch_api.c1686 int ret = 0, q_idx = *q_idx_p; in tc_dump_qdisc_root() local
1694 if (q_idx < s_q_idx) { in tc_dump_qdisc_root()
1695 q_idx++; in tc_dump_qdisc_root()
1702 q_idx++; in tc_dump_qdisc_root()
1715 if (q_idx < s_q_idx) { in tc_dump_qdisc_root()
1716 q_idx++; in tc_dump_qdisc_root()
1724 q_idx++; in tc_dump_qdisc_root()
1728 *q_idx_p = q_idx; in tc_dump_qdisc_root()
1738 int idx, q_idx; in tc_dump_qdisc() local
1746 s_q_idx = q_idx = cb->args[1]; in tc_dump_qdisc()
[all …]
/linux-5.19.10/drivers/net/ethernet/intel/iavf/
Diavf_main.c1116 int q_idx; in iavf_napi_enable_all() local
1120 for (q_idx = 0; q_idx < q_vectors; q_idx++) { in iavf_napi_enable_all()
1123 q_vector = &adapter->q_vectors[q_idx]; in iavf_napi_enable_all()
1135 int q_idx; in iavf_napi_disable_all() local
1139 for (q_idx = 0; q_idx < q_vectors; q_idx++) { in iavf_napi_disable_all()
1140 q_vector = &adapter->q_vectors[q_idx]; in iavf_napi_disable_all()
1657 int q_idx = 0, num_q_vectors; in iavf_alloc_q_vectors() local
1666 for (q_idx = 0; q_idx < num_q_vectors; q_idx++) { in iavf_alloc_q_vectors()
1667 q_vector = &adapter->q_vectors[q_idx]; in iavf_alloc_q_vectors()
1670 q_vector->v_idx = q_idx; in iavf_alloc_q_vectors()
[all …]
/linux-5.19.10/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Dtrx.c534 u16 rtl92ee_get_available_desc(struct ieee80211_hw *hw, u8 q_idx) in rtl92ee_get_available_desc() argument
542 get_desc_addr_fr_q_idx(q_idx)); in rtl92ee_get_available_desc()
889 u8 q_idx = *val; in rtl92ee_set_desc() local
900 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[q_idx]; in rtl92ee_set_desc()
903 if (q_idx == BEACON_QUEUE) { in rtl92ee_set_desc()
914 get_desc_addr_fr_q_idx(q_idx), in rtl92ee_set_desc()
/linux-5.19.10/drivers/scsi/mpi3mr/
Dmpi3mr_fw.c1511 static void mpi3mr_free_op_req_q_segments(struct mpi3mr_ioc *mrioc, u16 q_idx) in mpi3mr_free_op_req_q_segments() argument
1517 segments = mrioc->req_qinfo[q_idx].q_segments; in mpi3mr_free_op_req_q_segments()
1523 if (mrioc->req_qinfo[q_idx].q_segment_list) { in mpi3mr_free_op_req_q_segments()
1526 mrioc->req_qinfo[q_idx].q_segment_list, in mpi3mr_free_op_req_q_segments()
1527 mrioc->req_qinfo[q_idx].q_segment_list_dma); in mpi3mr_free_op_req_q_segments()
1528 mrioc->req_qinfo[q_idx].q_segment_list = NULL; in mpi3mr_free_op_req_q_segments()
1531 size = mrioc->req_qinfo[q_idx].segment_qd * in mpi3mr_free_op_req_q_segments()
1534 for (j = 0; j < mrioc->req_qinfo[q_idx].num_segments; j++) { in mpi3mr_free_op_req_q_segments()
1541 kfree(mrioc->req_qinfo[q_idx].q_segments); in mpi3mr_free_op_req_q_segments()
1542 mrioc->req_qinfo[q_idx].q_segments = NULL; in mpi3mr_free_op_req_q_segments()
[all …]
/linux-5.19.10/drivers/net/ethernet/intel/igc/
Digc_defines.h621 #define IGC_VLANPQF_QSEL(_n, q_idx) ((q_idx) << ((_n) * 4)) argument
/linux-5.19.10/drivers/net/ethernet/fungible/funeth/
Dfuneth_tx.c536 int i, q_idx; in fun_xdp_xmit_frames() local
545 q_idx = smp_processor_id(); in fun_xdp_xmit_frames()
546 if (unlikely(q_idx >= fp->num_xdpqs)) in fun_xdp_xmit_frames()
549 for (q = xdpqs[q_idx], i = 0; i < n; i++) in fun_xdp_xmit_frames()
/linux-5.19.10/drivers/net/ethernet/qlogic/qed/
Dqed_hw.h293 u8 q_idx; member

123