Lines Matching refs:dev_cap
52 struct hinic_dev_cap *dev_cap) in parse_capability() argument
57 if (!HINIC_IS_VF(hwdev->hwif) && dev_cap->intr_type != INTR_MSIX_TYPE) 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()
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()
83 hwdev->port_id = dev_cap->port_id; in parse_capability()
99 struct hinic_dev_cap dev_cap; in get_capability() local
103 out_len = sizeof(dev_cap); in get_capability()
106 HINIC_CFG_NIC_CAP, &dev_cap, sizeof(dev_cap), in get_capability()
107 &dev_cap, &out_len, HINIC_MGMT_MSG_SYNC); in get_capability()
113 return parse_capability(hwdev, &dev_cap); in get_capability()