Searched refs:nic_cap (Results 1 – 6 of 6) sorted by relevance
60 struct hinic_cap *nic_cap = &hwdev->nic_cap; in parse_capability() local71 nic_cap->num_qps = (num_irqs - (num_aeqs + num_ceqs)) / 2; in parse_capability()73 if (nic_cap->num_qps > HINIC_Q_CTXT_MAX) in parse_capability()74 nic_cap->num_qps = HINIC_Q_CTXT_MAX; in parse_capability()77 nic_cap->max_qps = dev_cap->max_sqs + 1; in parse_capability()79 nic_cap->max_qps = dev_cap->max_sqs; in parse_capability()81 if (nic_cap->num_qps > nic_cap->max_qps) in parse_capability()82 nic_cap->num_qps = nic_cap->max_qps; in parse_capability()85 nic_cap->max_vf = dev_cap->max_vf; in parse_capability()86 nic_cap->max_vf_qps = dev_cap->max_vf_sqs + 1; in parse_capability()[all …]
591 if (vf_in_pf < 1 || vf_in_pf > hwdev->nic_cap.max_vf) { in check_vf_mbox_random_id()595 hwdev->nic_cap.max_vf + offset); in check_vf_mbox_random_id()1504 for (vf_in_pf = 1; vf_in_pf <= hwdev->nic_cap.max_vf; vf_in_pf++) { in hinic_vf_mbox_random_id_init()
368 struct hinic_cap nic_cap; member
1068 cap = &dev->nic_cap; in cfg_mbx_pf_proc_vf_msg()1191 nic_io->max_vfs = hwdev->nic_cap.max_vf; in hinic_vf_func_init()
907 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()
302 err = hinic_set_max_qnum(nic_dev, nic_dev->hwdev->nic_cap.max_qps); in hinic_configure_max_qnum()