Lines Matching refs:dev_cap
58 struct hinic_dev_cap *dev_cap) in parse_capability() argument
63 if (!HINIC_IS_VF(hwdev->hwif) && dev_cap->intr_type != INTR_MSIX_TYPE) 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()
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()
89 hwdev->port_id = dev_cap->port_id; in parse_capability()
105 struct hinic_dev_cap dev_cap; in get_capability() local
109 out_len = sizeof(dev_cap); in get_capability()
112 HINIC_CFG_NIC_CAP, &dev_cap, sizeof(dev_cap), in get_capability()
113 &dev_cap, &out_len, HINIC_MGMT_MSG_SYNC); in get_capability()
119 return parse_capability(hwdev, &dev_cap); in get_capability()