Home
last modified time | relevance | path

Searched refs:q_num (Results 1 – 25 of 49) sorted by relevance

12

/linux-6.12.1/drivers/net/wireless/rsi/
Drsi_91x_core.c91 static u32 rsi_get_num_pkts_dequeue(struct rsi_common *common, u8 q_num) in rsi_get_num_pkts_dequeue() argument
96 s16 txop = common->tx_qinfo[q_num].txop * 32; in rsi_get_num_pkts_dequeue()
103 if (q_num == VI_Q) in rsi_get_num_pkts_dequeue()
106 if (skb_queue_len(&common->tx_queue[q_num])) in rsi_get_num_pkts_dequeue()
107 skb = skb_peek(&common->tx_queue[q_num]); in rsi_get_num_pkts_dequeue()
121 if (skb_queue_len(&common->tx_queue[q_num]) - pkt_cnt) in rsi_get_num_pkts_dequeue()
142 u8 q_num = INVALID_QUEUE; in rsi_core_determine_hal_queue() local
146 q_num = MGMT_BEACON_Q; in rsi_core_determine_hal_queue()
147 return q_num; in rsi_core_determine_hal_queue()
151 q_num = MGMT_SOFT_Q; in rsi_core_determine_hal_queue()
[all …]
Drsi_91x_coex.c25 enum rsi_coex_queues q_num = RSI_COEX_Q_INVALID; in rsi_coex_determine_coex_q() local
28 q_num = RSI_COEX_Q_COMMON; in rsi_coex_determine_coex_q()
30 q_num = RSI_COEX_Q_BT; in rsi_coex_determine_coex_q()
32 q_num = RSI_COEX_Q_WLAN; in rsi_coex_determine_coex_q()
34 return q_num; in rsi_coex_determine_coex_q()
Drsi_91x_sdio_ops.c336 int rsi_sdio_check_buffer_status(struct rsi_hw *adapter, u8 q_num) in rsi_sdio_check_buffer_status() argument
390 if ((q_num == MGMT_SOFT_Q) && (dev->rx_info.mgmt_buffer_full)) in rsi_sdio_check_buffer_status()
393 if ((q_num < MGMT_SOFT_Q) && (dev->rx_info.buffer_full)) in rsi_sdio_check_buffer_status()
Drsi_usb.h73 static inline int rsi_usb_check_queue_status(struct rsi_hw *adapter, u8 q_num) in rsi_usb_check_queue_status() argument
/linux-6.12.1/drivers/net/ethernet/pensando/ionic/
Dionic_stats.c173 static void ionic_add_lif_txq_stats(struct ionic_lif *lif, int q_num, in ionic_add_lif_txq_stats() argument
176 struct ionic_tx_stats *txstats = &lif->txqstats[q_num]; in ionic_add_lif_txq_stats()
189 static void ionic_add_lif_rxq_stats(struct ionic_lif *lif, int q_num, in ionic_add_lif_rxq_stats() argument
192 struct ionic_rx_stats *rxstats = &lif->rxqstats[q_num]; in ionic_add_lif_rxq_stats()
212 int q_num; in ionic_get_lif_stats() local
216 for (q_num = 0; q_num < MAX_Q(lif); q_num++) { in ionic_get_lif_stats()
217 ionic_add_lif_txq_stats(lif, q_num, stats); in ionic_get_lif_stats()
218 ionic_add_lif_rxq_stats(lif, q_num, stats); in ionic_get_lif_stats()
255 int q_num) in ionic_sw_stats_get_tx_strings() argument
260 ethtool_sprintf(buf, "tx_%d_%s", q_num, in ionic_sw_stats_get_tx_strings()
[all …]
/linux-6.12.1/drivers/misc/bcm-vk/
Dbcm_vk_msg.c46 u32 q_num = msg->trans_id & BCM_VK_MSG_Q_MASK; in get_q_num() local
48 if (q_num >= VK_MSGQ_PER_CHAN_MAX) in get_q_num()
49 q_num = VK_MSGQ_NUM_DEFAULT; in get_q_num()
50 return q_num; in get_q_num()
53 static void set_q_num(struct vk_msg_blk *msg, u32 q_num) in set_q_num() argument
57 if (q_num >= VK_MSGQ_PER_CHAN_MAX) in set_q_num()
60 trans_q = q_num; in set_q_num()
521 static void bcm_vk_append_pendq(struct bcm_vk_msg_chan *chan, u16 q_num, in bcm_vk_append_pendq() argument
527 list_add_tail(&entry->node, &chan->pendq[q_num]); in bcm_vk_append_pendq()
551 u32 q_num; in bcm_vk_append_ib_sgl() local
[all …]
Dbcm_vk.h179 #define VK_BAR0_Q_DB_BASE(q_num) (VK_BAR0_REGSEG_DB_BASE + \ argument
180 ((q_num) * VK_BAR0_REGSEG_DB_REG_GAP))
507 const pid_t pid, const u32 q_num);
508 void bcm_to_v_q_doorbell(struct bcm_vk *vk, u32 q_num, u32 db_val);
/linux-6.12.1/drivers/net/ethernet/brocade/bna/
Dbnad_ethtool.c565 static void bnad_get_cq_strings(u8 **string, int q_num) in bnad_get_cq_strings() argument
567 ethtool_sprintf(string, "cq%d_producer_index", q_num); in bnad_get_cq_strings()
568 ethtool_sprintf(string, "cq%d_consumer_index", q_num); in bnad_get_cq_strings()
569 ethtool_sprintf(string, "cq%d_hw_producer_index", q_num); in bnad_get_cq_strings()
570 ethtool_sprintf(string, "cq%d_intr", q_num); in bnad_get_cq_strings()
571 ethtool_sprintf(string, "cq%d_poll", q_num); in bnad_get_cq_strings()
572 ethtool_sprintf(string, "cq%d_schedule", q_num); in bnad_get_cq_strings()
573 ethtool_sprintf(string, "cq%d_keep_poll", q_num); in bnad_get_cq_strings()
574 ethtool_sprintf(string, "cq%d_complete", q_num); in bnad_get_cq_strings()
577 static void bnad_get_rxq_strings(u8 **string, int q_num) in bnad_get_rxq_strings() argument
[all …]
/linux-6.12.1/drivers/scsi/snic/
Dsnic_io.c45 u16 q_num, in snic_wq_cmpl_handler_cont() argument
52 SNIC_BUG_ON(q_num != 0); in snic_wq_cmpl_handler_cont()
54 spin_lock_irqsave(&snic->wq_lock[q_num], flags); in snic_wq_cmpl_handler_cont()
55 svnic_wq_service(&snic->wq[q_num], in snic_wq_cmpl_handler_cont()
60 spin_unlock_irqrestore(&snic->wq_lock[q_num], flags); in snic_wq_cmpl_handler_cont()
128 snic_wqdesc_avail(struct snic *snic, int q_num, int req_type) in snic_wqdesc_avail() argument
132 if (q_num > 0) { in snic_wqdesc_avail()
138 SNIC_BUG_ON(q_num > 0); in snic_wqdesc_avail()
157 int q_num = 0; in snic_queue_wq_desc() local
171 q_num = snic_select_wq(snic); in snic_queue_wq_desc()
[all …]
/linux-6.12.1/drivers/net/wireless/microchip/wilc1000/
Dwlan.c29 static void wilc_wlan_txq_remove(struct wilc *wilc, u8 q_num, in wilc_wlan_txq_remove() argument
34 wilc->txq[q_num].count--; in wilc_wlan_txq_remove()
38 wilc_wlan_txq_remove_from_head(struct wilc *wilc, u8 q_num) in wilc_wlan_txq_remove_from_head() argument
45 if (!list_empty(&wilc->txq[q_num].txq_head.list)) { in wilc_wlan_txq_remove_from_head()
46 tqe = list_first_entry(&wilc->txq[q_num].txq_head.list, in wilc_wlan_txq_remove_from_head()
50 wilc->txq[q_num].count--; in wilc_wlan_txq_remove_from_head()
56 static void wilc_wlan_txq_add_to_tail(struct net_device *dev, u8 q_num, in wilc_wlan_txq_add_to_tail() argument
65 list_add_tail(&tqe->list, &wilc->txq[q_num].txq_head.list); in wilc_wlan_txq_add_to_tail()
67 wilc->txq[q_num].count++; in wilc_wlan_txq_add_to_tail()
74 static void wilc_wlan_txq_add_to_head(struct wilc_vif *vif, u8 q_num, in wilc_wlan_txq_add_to_head() argument
[all …]
/linux-6.12.1/drivers/net/wwan/t7xx/
Dt7xx_hif_dpmaif_tx.c52 unsigned int q_num) in t7xx_dpmaif_update_drb_rd_idx() argument
54 struct dpmaif_tx_queue *txq = &dpmaif_ctrl->txq[q_num]; in t7xx_dpmaif_update_drb_rd_idx()
62 new_hw_rd_idx = t7xx_dpmaif_ul_get_rd_idx(&dpmaif_ctrl->hw_info, q_num); in t7xx_dpmaif_update_drb_rd_idx()
81 unsigned int q_num, unsigned int release_cnt) in t7xx_dpmaif_release_tx_buffer() argument
83 struct dpmaif_tx_queue *txq = &dpmaif_ctrl->txq[q_num]; in t7xx_dpmaif_release_tx_buffer()
109 "txq%u: DRB check fail, invalid skb\n", q_num); in t7xx_dpmaif_release_tx_buffer()
129 dev_err(dpmaif_ctrl->dev, "txq%u: DRB not marked as the last one\n", q_num); in t7xx_dpmaif_release_tx_buffer()
135 unsigned int q_num, unsigned int budget) in t7xx_dpmaif_tx_release() argument
137 struct dpmaif_tx_queue *txq = &dpmaif_ctrl->txq[q_num]; in t7xx_dpmaif_tx_release()
141 t7xx_dpmaif_update_drb_rd_idx(dpmaif_ctrl, q_num); in t7xx_dpmaif_tx_release()
[all …]
Dt7xx_dpmaif.h156 void t7xx_dpmaif_unmask_ulq_intr(struct dpmaif_hw_info *hw_info, unsigned int q_num);
157 void t7xx_dpmaif_ul_update_hw_drb_cnt(struct dpmaif_hw_info *hw_info, unsigned int q_num,
172 unsigned int t7xx_dpmaif_ul_get_rd_idx(struct dpmaif_hw_info *hw_info, unsigned int q_num);
173 unsigned int t7xx_dpmaif_dl_get_bat_rd_idx(struct dpmaif_hw_info *hw_info, unsigned int q_num);
174 unsigned int t7xx_dpmaif_dl_get_bat_wr_idx(struct dpmaif_hw_info *hw_info, unsigned int q_num);
175 unsigned int t7xx_dpmaif_dl_get_frg_rd_idx(struct dpmaif_hw_info *hw_info, unsigned int q_num);
Dt7xx_dpmaif.c82 static void t7xx_dpmaif_mask_ulq_intr(struct dpmaif_hw_info *hw_info, unsigned int q_num) in t7xx_dpmaif_mask_ulq_intr() argument
89 ul_int_que_done = BIT(q_num + DP_UL_INT_DONE_OFFSET) & DP_UL_INT_QDONE_MSK; in t7xx_dpmaif_mask_ulq_intr()
102 void t7xx_dpmaif_unmask_ulq_intr(struct dpmaif_hw_info *hw_info, unsigned int q_num) in t7xx_dpmaif_unmask_ulq_intr() argument
109 ul_int_que_done = BIT(q_num + DP_UL_INT_DONE_OFFSET) & DP_UL_INT_QDONE_MSK; in t7xx_dpmaif_unmask_ulq_intr()
766 static void t7xx_dpmaif_config_dlq_pit_hw(struct dpmaif_hw_info *hw_info, unsigned int q_num, in t7xx_dpmaif_config_dlq_pit_hw() argument
772 t7xx_dpmaif_dl_dlq_pit_init_done(hw_info, q_num); in t7xx_dpmaif_config_dlq_pit_hw()
861 unsigned int q_num, unsigned int size) in t7xx_dpmaif_ul_update_drb_size() argument
865 value = ioread32(hw_info->pcie_base + DPMAIF_UL_DRBSIZE_ADDRH_n(q_num)); in t7xx_dpmaif_ul_update_drb_size()
868 iowrite32(value, hw_info->pcie_base + DPMAIF_UL_DRBSIZE_ADDRH_n(q_num)); in t7xx_dpmaif_ul_update_drb_size()
872 unsigned int q_num, dma_addr_t addr) in t7xx_dpmaif_ul_update_drb_base_addr() argument
[all …]
/linux-6.12.1/drivers/net/ethernet/intel/idpf/
Didpf_ethtool.c961 int q_num) in idpf_find_rxq_vec() argument
966 return vport->rxq_grps->singleq.rxqs[q_num]->q_vector; in idpf_find_rxq_vec()
968 q_grp = q_num / IDPF_DFLT_SPLITQ_RXQ_PER_GROUP; in idpf_find_rxq_vec()
969 q_idx = q_num % IDPF_DFLT_SPLITQ_RXQ_PER_GROUP; in idpf_find_rxq_vec()
982 int q_num) in idpf_find_txq_vec() argument
987 return vport->txqs[q_num]->q_vector; in idpf_find_txq_vec()
989 q_grp = q_num / IDPF_DFLT_SPLITQ_TXQ_PER_GROUP; in idpf_find_txq_vec()
1025 u32 q_num) in idpf_get_q_coalesce() argument
1037 if (q_num >= vport->num_rxq && q_num >= vport->num_txq) { in idpf_get_q_coalesce()
1042 if (q_num < vport->num_rxq) in idpf_get_q_coalesce()
[all …]
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns/
Dhns_ae_adapt.c56 int q_num = rcb_comm->max_q_per_vf; in hns_ae_get_base_ring_pair() local
59 return &rcb_comm->ring_pair_cb[port * q_num * vf_num]; in hns_ae_get_base_ring_pair()
95 ae_handle->q_num = qnum_per_vf; in hns_ae_get_handle()
143 for (i = 0; i < handle->q_num; i++) in hns_ae_put_handle()
157 for (i = 0; i < handle->q_num; i++) { in hns_ae_wait_flow_down()
186 int q_num = handle->q_num; in hns_ae_ring_enable_all() local
189 for (i = 0; i < q_num; i++) in hns_ae_ring_enable_all()
315 for (i = 0; i < handle->q_num; i++) { in hns_ae_set_mtu()
342 for (k = 0; k < handle->q_num; k++) { in hns_ae_start()
363 hns_rcb_wait_fbd_clean(handle->qs, handle->q_num, RCB_INT_FLAG_TX); in hns_ae_stop()
[all …]
Dhns_enet.c394 assert(skb->queue_mapping < priv->ae_handle->q_num); in hns_nic_net_xmit_hw()
1256 static int hns_nic_init_affinity_mask(int q_num, int ring_idx, in hns_nic_init_affinity_mask() argument
1265 if (q_num == num_possible_cpus()) { in hns_nic_init_affinity_mask()
1269 cpu = ring_idx - q_num; in hns_nic_init_affinity_mask()
1274 cpu = (ring_idx - q_num) * 2 + 1; in hns_nic_init_affinity_mask()
1283 static void hns_nic_free_irq(int q_num, struct hns_nic_priv *priv) in hns_nic_free_irq() argument
1287 for (i = 0; i < q_num * 2; i++) { in hns_nic_free_irq()
1307 for (i = 0; i < h->q_num * 2; i++) { in hns_nic_init_irq()
1328 cpu = hns_nic_init_affinity_mask(h->q_num, i, in hns_nic_init_irq()
1341 hns_nic_free_irq(h->q_num, priv); in hns_nic_init_irq()
[all …]
Dhnae.c298 for (i = 0; i < handle->q_num; i++) /* free ring*/ in hnae_reinit_handle()
304 for (i = 0; i < handle->q_num; i++) {/* reinit ring*/ in hnae_reinit_handle()
350 for (i = 0; i < handle->q_num; i++) { in hnae_get_handle()
377 for (i = 0; i < h->q_num; i++) in hnae_put_handle()
Dhns_ethtool.c530 h->q_num, h->q_num * 2 - 1, in __lb_run_test()
569 (void)__lb_clean_rings(priv, 0, h->q_num - 1, 256); in __lb_down()
831 ch->max_rx = priv->ae_handle->q_num; in hns_get_channels()
832 ch->max_tx = priv->ae_handle->q_num; in hns_get_channels()
834 ch->rx_count = priv->ae_handle->q_num; in hns_get_channels()
835 ch->tx_count = priv->ae_handle->q_num; in hns_get_channels()
1242 cmd->data = priv->ae_handle->q_num; in hns_get_rxnfc()
/linux-6.12.1/include/linux/
Dhisi_acc_qm.h443 u32 n, q_num; in q_num_set() local
451 q_num = min_t(u32, QM_QNUM_V1, QM_QNUM_V2); in q_num_set()
453 q_num); in q_num_set()
456 q_num = QM_QNUM_V1; in q_num_set()
458 q_num = QM_QNUM_V2; in q_num_set()
464 if (ret || n < QM_MIN_QNUM || n > q_num) in q_num_set()
/linux-6.12.1/drivers/scsi/
Dstorvsc_drv.c1384 u16 q_num) in get_og_chn() argument
1392 stor_device->stor_chns[q_num] = stor_device->device->channel; in get_og_chn()
1405 node_mask = cpumask_of_node(cpu_to_node(q_num)); in get_og_chn()
1413 stor_device->stor_chns[q_num] = stor_device->device->channel; in get_og_chn()
1417 hash_qnum = q_num; in get_og_chn()
1429 stor_device->stor_chns[q_num] = stor_device->stor_chns[tgt_cpu]; in get_og_chn()
1431 return stor_device->stor_chns[q_num]; in get_og_chn()
1436 struct storvsc_cmd_request *request, u16 q_num) in storvsc_do_io() argument
1458 outgoing_channel = READ_ONCE(stor_device->stor_chns[q_num]); in storvsc_do_io()
1460 if (outgoing_channel->target_cpu == q_num) { in storvsc_do_io()
[all …]
/linux-6.12.1/drivers/dma/ti/
Dcppi41.c95 unsigned int q_num; member
313 u32 q_num; in cppi41_irq() local
338 q_num = __fls(val); in cppi41_irq()
339 val &= ~(1 << q_num); in cppi41_irq()
340 q_num += 32 * i; in cppi41_irq()
341 desc = cppi41_pop_desc(cdd, q_num); in cppi41_irq()
345 q_num, desc); in cppi41_irq()
391 cppi_writel(c->q_num, c->gcr_reg + RXHPCRA0); in cppi41_dma_alloc_chan_resources()
472 cppi_writel(reg, cdd->qmgr_mem + QMGR_QUEUE_D(c->q_num)); in push_desc_queue()
717 desc_phys = cppi41_pop_desc(cdd, c->q_num); in cppi41_tear_down_chan()
[all …]
/linux-6.12.1/drivers/net/ethernet/intel/ice/
Dice_ethtool.c4120 ice_get_q_coalesce(struct ice_vsi *vsi, struct ethtool_coalesce *ec, int q_num) in ice_get_q_coalesce() argument
4122 if (q_num < vsi->num_rxq && q_num < vsi->num_txq) { in ice_get_q_coalesce()
4124 &vsi->rx_rings[q_num]->q_vector->rx)) in ice_get_q_coalesce()
4127 &vsi->tx_rings[q_num]->q_vector->tx)) in ice_get_q_coalesce()
4129 } else if (q_num < vsi->num_rxq) { in ice_get_q_coalesce()
4131 &vsi->rx_rings[q_num]->q_vector->rx)) in ice_get_q_coalesce()
4133 } else if (q_num < vsi->num_txq) { in ice_get_q_coalesce()
4135 &vsi->tx_rings[q_num]->q_vector->tx)) in ice_get_q_coalesce()
4155 int q_num) in __ice_get_coalesce() argument
4160 if (q_num < 0) in __ice_get_coalesce()
[all …]
/linux-6.12.1/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_init.h202 #define BNX2X_PF_Q_NUM(q_num, port, vnic)\ argument
203 ((((port) << 1) | (vnic)) * 16 + (q_num))
207 static inline void bnx2x_map_q_cos(struct bnx2x *bp, u32 q_num, u32 new_cos) in bnx2x_map_q_cos() argument
210 u32 curr_cos = REG_RD(bp, QM_REG_QVOQIDX_0 + q_num * 4); in bnx2x_map_q_cos()
229 BNX2X_PF_Q_NUM(q_num, BP_PORT(bp), vnic); in bnx2x_map_q_cos()
/linux-6.12.1/arch/sparc/include/uapi/asm/
Doradax.h31 __u16 q_num; /* queue number of enqueued ccb */ member
/linux-6.12.1/drivers/net/ethernet/google/gve/
Dgve_rx_dqo.c308 int idx = rx->q_num; in gve_rx_free_ring_dqo()
330 qpl_id = gve_get_rx_qpl_id(cfg->qcfg_tx, rx->q_num); in gve_rx_free_ring_dqo()
396 rx->q_num = idx; in gve_rx_alloc_ring_dqo()
428 qpl_id = gve_get_rx_qpl_id(cfg->qcfg_tx, rx->q_num); in gve_rx_alloc_ring_dqo()
554 gve_rx_write_doorbell_dqo(priv, rx->q_num); in gve_rx_post_buffers_dqo()
900 skb_record_rx_queue(rx->ctx.skb_head, rx->q_num); in gve_rx_complete_skb()
953 err = gve_rx_dqo(napi, rx, compl_desc, complq->head, rx->q_num); in gve_rx_poll_dqo()

12