Home
last modified time | relevance | path

Searched refs:num_tqps (Results 1 – 16 of 16) sorted by relevance

/drivers/net/ethernet/hisilicon/hns3/hns3_common/
Dhclge_comm_tqp_stats.c17 for (i = 0; i < kinfo->num_tqps; i++) { in hclge_comm_tqps_get_stats()
22 for (i = 0; i < kinfo->num_tqps; i++) { in hclge_comm_tqps_get_stats()
34 return kinfo->num_tqps * HCLGE_COMM_QUEUE_PAIR_SIZE; in hclge_comm_tqps_get_sset_count()
43 for (i = 0; i < kinfo->num_tqps; i++) { in hclge_comm_tqps_get_strings()
50 for (i = 0; i < kinfo->num_tqps; i++) { in hclge_comm_tqps_get_strings()
69 for (i = 0; i < kinfo->num_tqps; i++) { in hclge_comm_tqps_update_stats()
110 for (i = 0; i < kinfo->num_tqps; i++) { in hclge_comm_reset_tqp_stats()
/drivers/net/ethernet/hisilicon/hns3/
Dhns3_ethtool.c215 for (i = kinfo->num_tqps; i < kinfo->num_tqps * 2; i++) { in hns3_lb_check_rx_ring()
498 return ((HNS3_TQP_STATS_COUNT * h->kinfo.num_tqps) + in hns3_get_sset_count()
513 u32 stat_count, u32 num_tqps, const char *prefix) in hns3_update_strings() argument
520 for (i = 0; i < num_tqps; i++) { in hns3_update_strings()
546 kinfo->num_tqps, tx_prefix); in hns3_get_strings_tqps()
550 kinfo->num_tqps, rx_prefix); in hns3_get_strings_tqps()
594 for (i = 0; i < kinfo->num_tqps; i++) { in hns3_get_stats_tqps()
603 for (i = 0; i < kinfo->num_tqps; i++) { in hns3_get_stats_tqps()
604 ring = &nic_priv->ring[i + kinfo->num_tqps]; in hns3_get_stats_tqps()
693 int rx_queue_index = h->kinfo.num_tqps; in hns3_get_ringparam()
[all …]
Dhns3_debugfs.c700 for (i = 0; i < h->kinfo.num_tqps; i++) { in hns3_dbg_rx_queue_info()
709 ring = &priv->ring[(u32)(i + h->kinfo.num_tqps)]; in hns3_dbg_rx_queue_info()
804 for (i = 0; i < h->kinfo.num_tqps; i++) { in hns3_dbg_tx_queue_info()
822 hns3_dbg_tx_spare_info(ring, buf, len, h->kinfo.num_tqps, &pos); in hns3_dbg_tx_queue_info()
852 for (i = 0; i < h->kinfo.num_tqps; i++) { in hns3_dbg_queue_map()
924 if (d->qid >= d->handle->kinfo.num_tqps) { in hns3_dbg_rx_bd_info()
939 ring = &priv->ring[d->qid + d->handle->kinfo.num_tqps]; in hns3_dbg_rx_bd_info()
997 if (d->qid >= d->handle->kinfo.num_tqps) { in hns3_dbg_tx_bd_info()
1070 kinfo->num_tqps); in hns3_dbg_dev_specs()
1152 if (!priv->ring[h->kinfo.num_tqps].page_pool) { in hns3_dbg_page_pool_info()
[all …]
Dhns3_enet.c613 unsigned int queue_size = kinfo->num_tqps; in hns3_nic_set_real_num_queue()
728 for (j = 0; j < h->kinfo.num_tqps; j++) in hns3_nic_net_up()
816 for (i = 0; i < h->kinfo.num_tqps; i++) { in hns3_reset_tx_queue()
835 for (i = 0; i < h->kinfo.num_tqps; i++) in hns3_nic_net_down()
2541 int queue_num = priv->ae_handle->kinfo.num_tqps; in hns3_nic_get_stats64()
4494 if (tqp_vector->num_tqps > 1) in hns3_nic_common_poll()
4495 rx_budget = max(budget / tqp_vector->num_tqps, 1); in hns3_nic_common_poll()
4687 tqp_vector->num_tqps = 0; in hns3_nic_init_vector_data()
4691 for (i = 0; i < h->kinfo.num_tqps; i++) { in hns3_nic_init_vector_data()
4693 u16 tqp_num = h->kinfo.num_tqps; in hns3_nic_init_vector_data()
[all …]
Dhclge_mbx.h203 __le16 num_tqps; member
Dhns3_enet.h567 u16 num_tqps; /* total number of tqps in TQP vector */ member
Dhnae3.h836 u16 num_tqps; /* total number of TQPs in this handle */ member
/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_regs.c120 ring_len * hdev->num_tqps; in hclgevf_get_regs_len()
148 for (j = 0; j < hdev->num_tqps; j++) { in hclgevf_get_regs()
Dhclgevf_main.c191 hdev->num_tqps = le16_to_cpu(queue_info->num_tqps); in hclgevf_get_queue_info()
270 hdev->htqp = devm_kcalloc(&hdev->pdev->dev, hdev->num_tqps, in hclgevf_alloc_tqps()
277 for (i = 0; i < hdev->num_tqps; i++) { in hclgevf_alloc_tqps()
318 u16 new_tqps = hdev->num_tqps; in hclgevf_knic_setup()
334 kinfo->num_tqps = min(new_tqps, hdev->num_tqps); in hclgevf_knic_setup()
336 kinfo->tqp = devm_kcalloc(&hdev->pdev->dev, kinfo->num_tqps, in hclgevf_knic_setup()
341 for (i = 0; i < kinfo->num_tqps; i++) { in hclgevf_knic_setup()
350 kinfo->num_tqps = min_t(u16, hdev->num_nic_msix - 1, kinfo->num_tqps); in hclgevf_knic_setup()
351 kinfo->rss_size = min_t(u16, kinfo->num_tqps / num_tc, in hclgevf_knic_setup()
808 for (i = 0; i < handle->kinfo.num_tqps; i++) { in hclgevf_tqp_enable()
[all …]
Dhclgevf_main.h233 u16 num_tqps; /* num task queue pairs of this VF */ member
/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_regs.c534 for (j = 0; j < kinfo->num_tqps; j++) { in hclge_fetch_pf_reg()
541 data_num_sum += (reg_num + HCLGE_REG_TLV_SPACE) * kinfo->num_tqps; in hclge_fetch_pf_reg()
615 kinfo->num_tqps + tqp_intr_len * (hdev->num_msi_used - 1) + in hclge_get_regs_len()
Dhclge_main.c798 hdev->num_tqps = le16_to_cpu(req->tqp_num) + in hclge_query_pf_resource()
1454 hdev->num_tqps = hdev->num_req_vfs + 1; in hclge_init_kdump_kernel_config()
1586 hdev->htqp = devm_kcalloc(&hdev->pdev->dev, hdev->num_tqps, in hclge_alloc_tqps()
1593 for (i = 0; i < hdev->num_tqps; i++) { in hclge_alloc_tqps()
1654 static int hclge_assign_tqp(struct hclge_vport *vport, u16 num_tqps) in hclge_assign_tqp() argument
1660 for (i = 0, alloced = 0; i < hdev->num_tqps && in hclge_assign_tqp()
1661 alloced < num_tqps; i++) { in hclge_assign_tqp()
1683 static int hclge_knic_setup(struct hclge_vport *vport, u16 num_tqps, in hclge_knic_setup() argument
1698 kinfo->tqp = devm_kcalloc(&hdev->pdev->dev, num_tqps, in hclge_knic_setup()
1703 ret = hclge_assign_tqp(vport, num_tqps); in hclge_knic_setup()
[all …]
Dhclge_mbx.c521 queue_info->num_tqps = cpu_to_le16(vport->alloc_tqps); in hclge_get_vf_queue_info()
733 if (queue_id >= handle->kinfo.num_tqps) { in hclge_get_queue_id_in_pf()
Dhclge_debugfs.c504 for (nq_id = 0; nq_id < hdev->num_tqps; nq_id++) { in hclge_dbg_dump_dcb_queue()
850 grp_num = hdev->num_tqps <= HCLGE_TQP_MAX_SIZE_DEV_V2 ? in hclge_dbg_dump_tm_bp_qset_map()
895 for (queue_id = 0; queue_id < hdev->num_tqps; queue_id++) { in hclge_dbg_dump_tm_map()
Dhclge_main.h870 u16 num_tqps; /* Num task queue pairs of this PF */ member
Dhclge_tm.c722 kinfo->num_tqps = hclge_vport_get_tqp_num(vport); in hclge_tm_vport_tc_info_update()
1526 if (hdev->num_tqps > HCLGE_TQP_MAX_SIZE_DEV_V2) { in hclge_bp_setup_hw()