Lines Matching refs:num_vport
1793 u16 i, num_vport; in hclge_map_tqp() local
1795 num_vport = hdev->num_req_vfs + 1; in hclge_map_tqp()
1796 for (i = 0; i < num_vport; i++) { in hclge_map_tqp()
1835 int num_vport, i; in hclge_alloc_vport() local
1839 num_vport = hdev->num_req_vfs + 1; in hclge_alloc_vport()
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()
1851 vport = devm_kcalloc(&pdev->dev, num_vport, sizeof(struct hclge_vport), in hclge_alloc_vport()
1857 hdev->num_alloc_vport = num_vport; in hclge_alloc_vport()
1862 for (i = 0; i < num_vport; i++) { in hclge_alloc_vport()