/Linux-v6.1/drivers/net/wireless/rsi/ |
D | rsi_91x_core.c | 91 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 …]
|
D | rsi_91x_coex.c | 25 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()
|
D | rsi_91x_sdio_ops.c | 339 int rsi_sdio_check_buffer_status(struct rsi_hw *adapter, u8 q_num) in rsi_sdio_check_buffer_status() argument 394 if ((q_num == MGMT_SOFT_Q) && (dev->rx_info.mgmt_buffer_full)) in rsi_sdio_check_buffer_status() 397 if ((q_num < MGMT_SOFT_Q) && (dev->rx_info.buffer_full)) in rsi_sdio_check_buffer_status()
|
D | rsi_usb.h | 73 static inline int rsi_usb_check_queue_status(struct rsi_hw *adapter, u8 q_num) in rsi_usb_check_queue_status() argument
|
/Linux-v6.1/drivers/net/ethernet/pensando/ionic/ |
D | ionic_stats.c | 161 static void ionic_add_lif_txq_stats(struct ionic_lif *lif, int q_num, in ionic_add_lif_txq_stats() argument 164 struct ionic_tx_stats *txstats = &lif->txqstats[q_num]; in ionic_add_lif_txq_stats() 176 static void ionic_add_lif_rxq_stats(struct ionic_lif *lif, int q_num, in ionic_add_lif_rxq_stats() argument 179 struct ionic_rx_stats *rxstats = &lif->rxqstats[q_num]; in ionic_add_lif_rxq_stats() 194 int q_num; in ionic_get_lif_stats() local 198 for (q_num = 0; q_num < MAX_Q(lif); q_num++) { in ionic_get_lif_stats() 199 ionic_add_lif_txq_stats(lif, q_num, stats); in ionic_get_lif_stats() 200 ionic_add_lif_rxq_stats(lif, q_num, stats); in ionic_get_lif_stats() 237 int q_num) in ionic_sw_stats_get_tx_strings() argument 242 ethtool_sprintf(buf, "tx_%d_%s", q_num, in ionic_sw_stats_get_tx_strings() [all …]
|
/Linux-v6.1/drivers/misc/bcm-vk/ |
D | bcm_vk_msg.c | 46 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 …]
|
D | bcm_vk.h | 179 #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-v6.1/drivers/net/ethernet/brocade/bna/ |
D | bnad_ethtool.c | 565 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-v6.1/drivers/net/wireless/microchip/wilc1000/ |
D | wlan.c | 34 static void wilc_wlan_txq_remove(struct wilc *wilc, u8 q_num, in wilc_wlan_txq_remove() argument 39 wilc->txq[q_num].count--; in wilc_wlan_txq_remove() 43 wilc_wlan_txq_remove_from_head(struct wilc *wilc, u8 q_num) in wilc_wlan_txq_remove_from_head() argument 50 if (!list_empty(&wilc->txq[q_num].txq_head.list)) { in wilc_wlan_txq_remove_from_head() 51 tqe = list_first_entry(&wilc->txq[q_num].txq_head.list, in wilc_wlan_txq_remove_from_head() 55 wilc->txq[q_num].count--; in wilc_wlan_txq_remove_from_head() 61 static void wilc_wlan_txq_add_to_tail(struct net_device *dev, u8 q_num, in wilc_wlan_txq_add_to_tail() argument 70 list_add_tail(&tqe->list, &wilc->txq[q_num].txq_head.list); in wilc_wlan_txq_add_to_tail() 72 wilc->txq[q_num].count++; in wilc_wlan_txq_add_to_tail() 79 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-v6.1/drivers/scsi/snic/ |
D | snic_io.c | 45 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-v6.1/drivers/net/wwan/t7xx/ |
D | t7xx_hif_dpmaif_tx.c | 52 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 …]
|
D | t7xx_dpmaif.h | 156 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);
|
D | t7xx_dpmaif.c | 82 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-v6.1/drivers/net/ethernet/hisilicon/hns/ |
D | hns_ae_adapt.c | 56 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 …]
|
D | hns_enet.c | 369 assert(skb->queue_mapping < priv->ae_handle->q_num); in hns_nic_net_xmit_hw() 1231 static int hns_nic_init_affinity_mask(int q_num, int ring_idx, in hns_nic_init_affinity_mask() argument 1240 if (q_num == num_possible_cpus()) { in hns_nic_init_affinity_mask() 1244 cpu = ring_idx - q_num; in hns_nic_init_affinity_mask() 1249 cpu = (ring_idx - q_num) * 2 + 1; in hns_nic_init_affinity_mask() 1258 static void hns_nic_free_irq(int q_num, struct hns_nic_priv *priv) in hns_nic_free_irq() argument 1262 for (i = 0; i < q_num * 2; i++) { in hns_nic_free_irq() 1282 for (i = 0; i < h->q_num * 2; i++) { in hns_nic_init_irq() 1303 cpu = hns_nic_init_affinity_mask(h->q_num, i, in hns_nic_init_irq() 1316 hns_nic_free_irq(h->q_num, priv); in hns_nic_init_irq() [all …]
|
D | hnae.c | 296 for (i = 0; i < handle->q_num; i++) /* free ring*/ in hnae_reinit_handle() 302 for (i = 0; i < handle->q_num; i++) {/* reinit ring*/ in hnae_reinit_handle() 348 for (i = 0; i < handle->q_num; i++) { in hnae_get_handle() 375 for (i = 0; i < h->q_num; i++) in hnae_put_handle()
|
D | hns_ethtool.c | 530 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() 834 ch->max_rx = priv->ae_handle->q_num; in hns_get_channels() 835 ch->max_tx = priv->ae_handle->q_num; in hns_get_channels() 837 ch->rx_count = priv->ae_handle->q_num; in hns_get_channels() 838 ch->tx_count = priv->ae_handle->q_num; in hns_get_channels() 1243 cmd->data = priv->ae_handle->q_num; in hns_get_rxnfc()
|
D | hns_enet.h | 85 ((priv)->ring_data[(priv)->ae_handle->q_num + (idx)])
|
/Linux-v6.1/include/linux/ |
D | hisi_acc_qm.h | 389 u32 n, q_num; in q_num_set() local 396 q_num = min_t(u32, QM_QNUM_V1, QM_QNUM_V2); in q_num_set() 398 q_num); in q_num_set() 401 q_num = QM_QNUM_V1; in q_num_set() 403 q_num = QM_QNUM_V2; in q_num_set() 407 if (ret || n < QM_MIN_QNUM || n > q_num) in q_num_set()
|
/Linux-v6.1/drivers/scsi/ |
D | storvsc_drv.c | 1357 u16 q_num) in get_og_chn() argument 1365 stor_device->stor_chns[q_num] = stor_device->device->channel; in get_og_chn() 1378 node_mask = cpumask_of_node(cpu_to_node(q_num)); in get_og_chn() 1386 stor_device->stor_chns[q_num] = stor_device->device->channel; in get_og_chn() 1390 hash_qnum = q_num; in get_og_chn() 1402 stor_device->stor_chns[q_num] = stor_device->stor_chns[tgt_cpu]; in get_og_chn() 1404 return stor_device->stor_chns[q_num]; in get_og_chn() 1409 struct storvsc_cmd_request *request, u16 q_num) in storvsc_do_io() argument 1431 outgoing_channel = READ_ONCE(stor_device->stor_chns[q_num]); in storvsc_do_io() 1433 if (outgoing_channel->target_cpu == q_num) { in storvsc_do_io() [all …]
|
/Linux-v6.1/drivers/dma/ti/ |
D | cppi41.c | 95 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-v6.1/drivers/net/ethernet/intel/ice/ |
D | ice_ethtool.c | 3648 ice_get_q_coalesce(struct ice_vsi *vsi, struct ethtool_coalesce *ec, int q_num) in ice_get_q_coalesce() argument 3650 if (q_num < vsi->num_rxq && q_num < vsi->num_txq) { in ice_get_q_coalesce() 3652 &vsi->rx_rings[q_num]->q_vector->rx)) in ice_get_q_coalesce() 3655 &vsi->tx_rings[q_num]->q_vector->tx)) in ice_get_q_coalesce() 3657 } else if (q_num < vsi->num_rxq) { in ice_get_q_coalesce() 3659 &vsi->rx_rings[q_num]->q_vector->rx)) in ice_get_q_coalesce() 3661 } else if (q_num < vsi->num_txq) { in ice_get_q_coalesce() 3663 &vsi->tx_rings[q_num]->q_vector->tx)) in ice_get_q_coalesce() 3683 int q_num) in __ice_get_coalesce() argument 3688 if (q_num < 0) in __ice_get_coalesce() [all …]
|
/Linux-v6.1/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_init.h | 202 #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-v6.1/arch/sparc/include/uapi/asm/ |
D | oradax.h | 31 __u16 q_num; /* queue number of enqueued ccb */ member
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlxsw/ |
D | pci.c | 206 enum mlxsw_pci_queue_type q_type, u8 q_num) in __mlxsw_pci_queue_get() argument 208 return &mlxsw_pci->queues[q_type].q[q_num]; in __mlxsw_pci_queue_get() 212 u8 q_num) in mlxsw_pci_sdq_get() argument 215 MLXSW_PCI_QUEUE_TYPE_SDQ, q_num); in mlxsw_pci_sdq_get() 219 u8 q_num) in mlxsw_pci_rdq_get() argument 222 MLXSW_PCI_QUEUE_TYPE_RDQ, q_num); in mlxsw_pci_rdq_get() 226 u8 q_num) in mlxsw_pci_cq_get() argument 228 return __mlxsw_pci_queue_get(mlxsw_pci, MLXSW_PCI_QUEUE_TYPE_CQ, q_num); in mlxsw_pci_cq_get() 232 u8 q_num) in mlxsw_pci_eq_get() argument 234 return __mlxsw_pci_queue_get(mlxsw_pci, MLXSW_PCI_QUEUE_TYPE_EQ, q_num); in mlxsw_pci_eq_get() [all …]
|