/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/hns3_common/ |
D | hclge_comm_tqp_stats.c | 17 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()
|
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_ethtool.c | 212 for (i = kinfo->num_tqps; i < kinfo->num_tqps * 2; i++) { in hns3_lb_check_rx_ring() 483 return ((HNS3_TQP_STATS_COUNT * h->kinfo.num_tqps) + in hns3_get_sset_count() 498 u32 stat_count, u32 num_tqps, const char *prefix) in hns3_update_strings() argument 505 for (i = 0; i < num_tqps; i++) { in hns3_update_strings() 531 kinfo->num_tqps, tx_prefix); in hns3_get_strings_tqps() 535 kinfo->num_tqps, rx_prefix); in hns3_get_strings_tqps() 579 for (i = 0; i < kinfo->num_tqps; i++) { in hns3_get_stats_tqps() 588 for (i = 0; i < kinfo->num_tqps; i++) { in hns3_get_stats_tqps() 589 ring = &nic_priv->ring[i + kinfo->num_tqps]; in hns3_get_stats_tqps() 678 int rx_queue_index = h->kinfo.num_tqps; in hns3_get_ringparam() [all …]
|
D | hns3_debugfs.c | 700 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 …]
|
D | hns3_enet.c | 613 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() 4491 if (tqp_vector->num_tqps > 1) in hns3_nic_common_poll() 4492 rx_budget = max(budget / tqp_vector->num_tqps, 1); in hns3_nic_common_poll() 4684 tqp_vector->num_tqps = 0; in hns3_nic_init_vector_data() 4688 for (i = 0; i < h->kinfo.num_tqps; i++) { in hns3_nic_init_vector_data() 4690 u16 tqp_num = h->kinfo.num_tqps; in hns3_nic_init_vector_data() [all …]
|
D | hclge_mbx.h | 203 __le16 num_tqps; member
|
D | hns3_enet.h | 565 u16 num_tqps; /* total number of tqps in TQP vector */ member
|
D | hnae3.h | 836 u16 num_tqps; /* total number of TQPs in this handle */ member
|
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
D | hclgevf_regs.c | 120 ring_len * hdev->num_tqps; in hclgevf_get_regs_len() 148 for (j = 0; j < hdev->num_tqps; j++) { in hclgevf_get_regs()
|
D | hclgevf_main.c | 191 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() 807 for (i = 0; i < handle->kinfo.num_tqps; i++) { in hclgevf_tqp_enable() [all …]
|
D | hclgevf_main.h | 233 u16 num_tqps; /* num task queue pairs of this VF */ member
|
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_regs.c | 534 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()
|
D | hclge_main.c | 798 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() 1583 hdev->htqp = devm_kcalloc(&hdev->pdev->dev, hdev->num_tqps, in hclge_alloc_tqps() 1590 for (i = 0; i < hdev->num_tqps; i++) { in hclge_alloc_tqps() 1651 static int hclge_assign_tqp(struct hclge_vport *vport, u16 num_tqps) in hclge_assign_tqp() argument 1657 for (i = 0, alloced = 0; i < hdev->num_tqps && in hclge_assign_tqp() 1658 alloced < num_tqps; i++) { in hclge_assign_tqp() 1680 static int hclge_knic_setup(struct hclge_vport *vport, u16 num_tqps, in hclge_knic_setup() argument 1695 kinfo->tqp = devm_kcalloc(&hdev->pdev->dev, num_tqps, in hclge_knic_setup() 1700 ret = hclge_assign_tqp(vport, num_tqps); in hclge_knic_setup() [all …]
|
D | hclge_mbx.c | 521 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()
|
D | hclge_debugfs.c | 504 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()
|
D | hclge_main.h | 867 u16 num_tqps; /* Num task queue pairs of this PF */ member
|
D | hclge_tm.c | 722 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()
|