Searched refs:num_vport (Results 1 – 1 of 1) sorted by relevance
1737 u16 i, num_vport; in hclge_map_tqp() local1739 num_vport = hdev->num_req_vfs + 1; in hclge_map_tqp()1740 for (i = 0; i < num_vport; i++) { in hclge_map_tqp()1779 int num_vport, i; in hclge_alloc_vport() local1783 num_vport = hdev->num_req_vfs + 1; in hclge_alloc_vport()1785 if (hdev->num_tqps < num_vport) { in hclge_alloc_vport()1787 hdev->num_tqps, num_vport); in hclge_alloc_vport()1792 tqp_per_vport = hdev->num_tqps / num_vport; in hclge_alloc_vport()1793 tqp_main_vport = tqp_per_vport + hdev->num_tqps % num_vport; in hclge_alloc_vport()1795 vport = devm_kcalloc(&pdev->dev, num_vport, sizeof(struct hclge_vport), in hclge_alloc_vport()[all …]