Home
last modified time | relevance | path

Searched refs:num_vf_en (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/cavium/thunder/
Dnic_main.c44 u8 num_vf_en; /* No of VF enabled */ member
169 if (vf < nic->num_vf_en) { in nic_mbx_send_ready()
177 mbx.nic_cfg.sqs_mode = (vf >= nic->num_vf_en) ? true : false; in nic_mbx_send_ready()
180 mbx.nic_cfg.loopback_supported = vf < nic->num_vf_en; in nic_mbx_send_ready()
324 nic->num_vf_en = 0; in nic_set_lmac_vf_mapping()
333 nic->num_vf_en += lmac_cnt; in nic_set_lmac_vf_mapping()
350 if (nic->num_vf_en >= pci_sriov_get_totalvfs(nic->pdev)) { in nic_set_lmac_vf_mapping()
351 nic->num_vf_en = pci_sriov_get_totalvfs(nic->pdev); in nic_set_lmac_vf_mapping()
729 return sqs + nic->num_vf_en; in nic_nxt_avail_sqs()
764 if (lbk->vf_id >= nic->num_vf_en) in nic_config_loopback()
[all …]
/linux-6.12.1/drivers/crypto/cavium/cpt/
Dcptpf_main.c515 cpt->num_vf_en = num_vfs; /* User requested VFs */ in cpt_sriov_init()
517 if (total_vf_cnt < cpt->num_vf_en) in cpt_sriov_init()
518 cpt->num_vf_en = total_vf_cnt; in cpt_sriov_init()
524 err = pci_enable_sriov(pdev, cpt->num_vf_en); in cpt_sriov_init()
527 cpt->num_vf_en); in cpt_sriov_init()
528 cpt->num_vf_en = 0; in cpt_sriov_init()
535 cpt->num_vf_en); in cpt_sriov_init()
Dcptpf.h47 u8 num_vf_en; /* Number of VFs enabled (0...CPT_MAX_VF_NUM) */ member