Home
last modified time | relevance | path

Searched refs:nic_cap (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_dev.c54 struct hinic_cap *nic_cap = &hwdev->nic_cap; in parse_capability() local
65 nic_cap->num_qps = (num_irqs - (num_aeqs + num_ceqs)) / 2; in parse_capability()
67 if (nic_cap->num_qps > HINIC_Q_CTXT_MAX) in parse_capability()
68 nic_cap->num_qps = HINIC_Q_CTXT_MAX; in parse_capability()
71 nic_cap->max_qps = dev_cap->max_sqs + 1; in parse_capability()
73 nic_cap->max_qps = dev_cap->max_sqs; in parse_capability()
75 if (nic_cap->num_qps > nic_cap->max_qps) in parse_capability()
76 nic_cap->num_qps = nic_cap->max_qps; in parse_capability()
79 nic_cap->max_vf = dev_cap->max_vf; in parse_capability()
80 nic_cap->max_vf_qps = dev_cap->max_vf_sqs + 1; in parse_capability()
[all …]
Dhinic_hw_mbox.c586 if (vf_in_pf < 1 || vf_in_pf > hwdev->nic_cap.max_vf) { in check_vf_mbox_random_id()
590 hwdev->nic_cap.max_vf + offset); in check_vf_mbox_random_id()
1499 for (vf_in_pf = 1; vf_in_pf <= hwdev->nic_cap.max_vf; vf_in_pf++) { in hinic_vf_mbox_random_id_init()
Dhinic_hw_dev.h434 struct hinic_cap nic_cap; member
Dhinic_sriov.c1084 cap = &dev->nic_cap; in cfg_mbx_pf_proc_vf_msg()
1205 nic_io->max_vfs = hwdev->nic_cap.max_vf; in hinic_vf_func_init()
Dhinic_ethtool.c907 nic_dev->hwdev->nic_cap.num_qps = count; in hinic_set_channels()
916 nic_dev->hwdev->nic_cap.num_qps = count; in hinic_set_channels()
Dhinic_main.c299 return hinic_set_max_qnum(nic_dev, nic_dev->hwdev->nic_cap.max_qps); in hinic_configure_max_qnum()