Searched refs:num_tqps (Results 1 – 13 of 13) sorted by relevance
/linux/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hns3_debugfs.c | 703 for (i = 0; i < h->kinfo.num_tqps; i++) { in hns3_dbg_rx_queue_info() 712 ring = &priv->ring[(u32)(i + h->kinfo.num_tqps)]; in hns3_dbg_rx_queue_info() 807 for (i = 0; i < h->kinfo.num_tqps; i++) { in hns3_dbg_tx_queue_info() 825 hns3_dbg_tx_spare_info(ring, buf, len, h->kinfo.num_tqps, &pos); in hns3_dbg_tx_queue_info() 855 for (i = 0; i < h->kinfo.num_tqps; i++) { in hns3_dbg_queue_map() 927 if (d->qid >= d->handle->kinfo.num_tqps) { in hns3_dbg_rx_bd_info() 942 ring = &priv->ring[d->qid + d->handle->kinfo.num_tqps]; in hns3_dbg_rx_bd_info() 1000 if (d->qid >= d->handle->kinfo.num_tqps) { in hns3_dbg_tx_bd_info() 1073 kinfo->num_tqps); in hns3_dbg_dev_specs() 1157 if (!priv->ring[h->kinfo.num_tqps].page_pool) { in hns3_dbg_page_pool_info() [all …]
|
H A 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() 2537 int queue_num = priv->ae_handle->kinfo.num_tqps; in hns3_nic_get_stats64() 4490 if (tqp_vector->num_tqps > 1) in hns3_nic_common_poll() 4491 rx_budget = max(budget / tqp_vector->num_tqps, 1); in hns3_nic_common_poll() 4683 tqp_vector->num_tqps = 0; in hns3_nic_init_vector_data() 4687 for (i = 0; i < h->kinfo.num_tqps; i++) { in hns3_nic_init_vector_data() 4689 u16 tqp_num = h->kinfo.num_tqps; in hns3_nic_init_vector_data() [all …]
|
H A D | hclge_mbx.h | 203 __le16 num_tqps; member
|
H A D | hns3_enet.h | 567 u16 num_tqps; /* total number of tqps in TQP vector */ member
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
H A 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()
|
H A D | hclgevf_main.c | 226 hdev->num_tqps = le16_to_cpu(queue_info->num_tqps); in hclgevf_get_queue_info() 305 hdev->htqp = devm_kcalloc(&hdev->pdev->dev, hdev->num_tqps, in hclgevf_alloc_tqps() 312 for (i = 0; i < hdev->num_tqps; i++) { in hclgevf_alloc_tqps() 353 u16 new_tqps = hdev->num_tqps; in hclgevf_knic_setup() 369 kinfo->num_tqps = min(new_tqps, hdev->num_tqps); in hclgevf_knic_setup() 371 kinfo->tqp = devm_kcalloc(&hdev->pdev->dev, kinfo->num_tqps, in hclgevf_knic_setup() 376 for (i = 0; i < kinfo->num_tqps; i++) { in hclgevf_knic_setup() 385 kinfo->num_tqps = min_t(u16, hdev->num_nic_msix - 1, kinfo->num_tqps); in hclgevf_knic_setup() 386 kinfo->rss_size = min_t(u16, kinfo->num_tqps / num_tc, in hclgevf_knic_setup() 843 for (i = 0; i < handle->kinfo.num_tqps; i++) { in hclgevf_tqp_enable() [all …]
|
H A D | hclgevf_main.h | 233 u16 num_tqps; /* num task queue pairs of this VF */ member
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A 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()
|
H A D | hclge_main.c | 837 hdev->num_tqps = le16_to_cpu(req->tqp_num) + in hclge_query_pf_resource() 1500 hdev->num_tqps = hdev->num_req_vfs + 1; in hclge_init_kdump_kernel_config() 1632 hdev->htqp = devm_kcalloc(&hdev->pdev->dev, hdev->num_tqps, in hclge_alloc_tqps() 1639 for (i = 0; i < hdev->num_tqps; i++) { in hclge_alloc_tqps() 1700 static int hclge_assign_tqp(struct hclge_vport *vport, u16 num_tqps) in hclge_assign_tqp() argument 1706 for (i = 0, alloced = 0; i < hdev->num_tqps && in hclge_assign_tqp() 1707 alloced < num_tqps; i++) { in hclge_assign_tqp() 1729 static int hclge_knic_setup(struct hclge_vport *vport, u16 num_tqps, in hclge_knic_setup() argument 1744 kinfo->tqp = devm_kcalloc(&hdev->pdev->dev, num_tqps, in hclge_knic_setup() 1749 ret = hclge_assign_tqp(vport, num_tqps); in hclge_knic_setup() [all …]
|
H A 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()
|
H A D | hclge_debugfs.c | 1142 for (nq_id = 0; nq_id < hdev->num_tqps; nq_id++) { in hclge_dbg_dump_dcb_queue() 1488 grp_num = hdev->num_tqps <= HCLGE_TQP_MAX_SIZE_DEV_V2 ? in hclge_dbg_dump_tm_bp_qset_map() 1533 for (queue_id = 0; queue_id < hdev->num_tqps; queue_id++) { in hclge_dbg_dump_tm_map()
|
H A D | hclge_main.h | 888 u16 num_tqps; /* Num task queue pairs of this PF */ member
|
H A 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()
|