Searched refs:vfres (Results 1 – 7 of 7) sorted by relevance
/drivers/net/ethernet/intel/ice/ |
D | ice_virtchnl_pf.c | 1600 struct virtchnl_vf_resource *vfres = NULL; in ice_vc_get_vf_res_msg() local 1613 vfres = devm_kzalloc(&pf->pdev->dev, len, GFP_KERNEL); in ice_vc_get_vf_res_msg() 1614 if (!vfres) { in ice_vc_get_vf_res_msg() 1626 vfres->vf_cap_flags = VIRTCHNL_VF_OFFLOAD_L2; in ice_vc_get_vf_res_msg() 1634 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_VLAN; in ice_vc_get_vf_res_msg() 1637 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_RSS_PF; in ice_vc_get_vf_res_msg() 1640 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_RSS_AQ; in ice_vc_get_vf_res_msg() 1642 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_RSS_REG; in ice_vc_get_vf_res_msg() 1646 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_RSS_PCTYPE_V2; in ice_vc_get_vf_res_msg() 1649 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_ENCAP; in ice_vc_get_vf_res_msg() [all …]
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_virtchnl_pf.c | 1849 struct virtchnl_vf_resource *vfres = NULL; in i40e_vc_get_vf_resources_msg() local 1862 len = struct_size(vfres, vsi_res, num_vsis); in i40e_vc_get_vf_resources_msg() 1863 vfres = kzalloc(len, GFP_KERNEL); in i40e_vc_get_vf_resources_msg() 1864 if (!vfres) { in i40e_vc_get_vf_resources_msg() 1876 vfres->vf_cap_flags = VIRTCHNL_VF_OFFLOAD_L2; in i40e_vc_get_vf_resources_msg() 1879 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_VLAN; in i40e_vc_get_vf_resources_msg() 1883 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_IWARP; in i40e_vc_get_vf_resources_msg() 1890 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_RSS_PF; in i40e_vc_get_vf_resources_msg() 1894 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_RSS_AQ; in i40e_vc_get_vf_resources_msg() 1896 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_RSS_REG; in i40e_vc_get_vf_resources_msg() [all …]
|
/drivers/net/ethernet/chelsio/cxgb4vf/ |
D | t4vf_hw.c | 547 if (!(adapter->params.vfres.r_caps & FW_CMD_CAP_PORT)) in t4vf_port_init() 1093 struct vf_resources *vfres = &adapter->params.vfres; in t4vf_get_vfres() local 1115 vfres->niqflint = FW_PFVF_CMD_NIQFLINT_G(word); in t4vf_get_vfres() 1116 vfres->niq = FW_PFVF_CMD_NIQ_G(word); in t4vf_get_vfres() 1119 vfres->neq = FW_PFVF_CMD_NEQ_G(word); in t4vf_get_vfres() 1120 vfres->pmask = FW_PFVF_CMD_PMASK_G(word); in t4vf_get_vfres() 1123 vfres->tc = FW_PFVF_CMD_TC_G(word); in t4vf_get_vfres() 1124 vfres->nvi = FW_PFVF_CMD_NVI_G(word); in t4vf_get_vfres() 1125 vfres->nexactf = FW_PFVF_CMD_NEXACTF_G(word); in t4vf_get_vfres() 1128 vfres->r_caps = FW_PFVF_CMD_R_CAPS_G(word); in t4vf_get_vfres() [all …]
|
D | cxgb4vf_main.c | 2353 struct vf_resources *vfres = &adapter->params.vfres; in resources_show() local 2357 desc " (" #var "):", vfres->var) in resources_show() 2512 struct vf_resources *vfres = &adapter->params.vfres; in size_nports_qsets() local 2518 adapter->params.nports = vfres->nvi; in size_nports_qsets() 2531 pmask_nports = hweight32(adapter->params.vfres.pmask); in size_nports_qsets() 2536 adapter->params.vfres.pmask); in size_nports_qsets() 2556 ethqsets = vfres->niqflint - 1 - (msi == MSI_MSI); in size_nports_qsets() 2557 if (vfres->nethctrl != ethqsets) in size_nports_qsets() 2558 ethqsets = min(vfres->nethctrl, ethqsets); in size_nports_qsets() 2559 if (vfres->neq < ethqsets*2) in size_nports_qsets() [all …]
|
D | t4vf_common.h | 265 struct vf_resources vfres; /* Virtual Function Resource limits */ member
|
/drivers/net/ethernet/intel/iavf/ |
D | iavf_virtchnl.c | 409 struct virtchnl_vf_res_request vfres; in iavf_request_queues() local 418 vfres.num_queue_pairs = min_t(int, num, num_online_cpus()); in iavf_request_queues() 423 (u8 *)&vfres, sizeof(vfres)); in iavf_request_queues() 1411 struct virtchnl_vf_res_request *vfres = in iavf_virtchnl_completion() local 1414 if (vfres->num_queue_pairs != adapter->num_req_queues) { in iavf_virtchnl_completion() 1418 vfres->num_queue_pairs); in iavf_virtchnl_completion()
|
D | iavf_main.c | 2065 struct virtchnl_vf_resource *vfres = adapter->vf_res; in iavf_reset_task() local 2197 if ((vfres->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_ADQ) && in iavf_reset_task() 2589 struct virtchnl_vf_resource *vfres = adapter->vf_res; in __iavf_setup_tc() local 2617 if (!(vfres->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_ADQ)) { in __iavf_setup_tc() 3424 struct virtchnl_vf_resource *vfres = adapter->vf_res; in iavf_process_config() local 3432 for (i = 0; i < vfres->num_vsis; i++) { in iavf_process_config() 3433 if (vfres->vsi_res[i].vsi_type == VIRTCHNL_VSI_SRIOV) in iavf_process_config() 3434 adapter->vsi_res = &vfres->vsi_res[i]; in iavf_process_config() 3474 if (vfres->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_ENCAP) { in iavf_process_config() 3484 if (!(vfres->vf_cap_flags & in iavf_process_config() [all …]
|