Lines Matching refs:num_tqps

847 	hdev->num_tqps = le16_to_cpu(req->tqp_num) +  in hclge_query_pf_resource()
1510 hdev->num_tqps = hdev->num_req_vfs + 1; in hclge_init_kdump_kernel_config()
1642 hdev->htqp = devm_kcalloc(&hdev->pdev->dev, hdev->num_tqps, in hclge_alloc_tqps()
1649 for (i = 0; i < hdev->num_tqps; i++) { in hclge_alloc_tqps()
1710 static int hclge_assign_tqp(struct hclge_vport *vport, u16 num_tqps) in hclge_assign_tqp() argument
1716 for (i = 0, alloced = 0; i < hdev->num_tqps && in hclge_assign_tqp()
1717 alloced < num_tqps; i++) { in hclge_assign_tqp()
1739 static int hclge_knic_setup(struct hclge_vport *vport, u16 num_tqps, in hclge_knic_setup() argument
1754 kinfo->tqp = devm_kcalloc(&hdev->pdev->dev, num_tqps, in hclge_knic_setup()
1759 ret = hclge_assign_tqp(vport, num_tqps); in hclge_knic_setup()
1809 static int hclge_vport_setup(struct hclge_vport *vport, u16 num_tqps) in hclge_vport_setup() argument
1821 ret = hclge_knic_setup(vport, num_tqps, in hclge_vport_setup()
1841 if (hdev->num_tqps < num_vport) { in hclge_alloc_vport()
1843 hdev->num_tqps, num_vport); in hclge_alloc_vport()
1848 tqp_per_vport = hdev->num_tqps / num_vport; in hclge_alloc_vport()
1849 tqp_main_vport = tqp_per_vport + hdev->num_tqps % num_vport; in hclge_alloc_vport()
6512 tqps = hdev->vport[vf].nic.kinfo.num_tqps; in hclge_fd_parse_ring_cookie()
7932 for (i = 0; i < handle->kinfo.num_tqps; i++) { in hclge_tqp_enable()
10811 for (i = 0; i < handle->kinfo.num_tqps; i++) { in hclge_reset_tqp_cmd()
10871 req->fun_reset_rcb_vqid_num = cpu_to_le16(handle->kinfo.num_tqps); in hclge_reset_rcb()
11175 dev_info(dev, "Task queue pairs numbers: %u\n", hdev->num_tqps); in hclge_info_show()
12393 u16 cur_tqps = kinfo->num_tqps; in hclge_set_channels()