ena_com_get_cap - query whether device supports a capability. * @ena_dev: ENA communication layer struct * @cap_id: enum value representing the capability * * @return - true if capability is supported or false otherwise */
| 1118 | * @return - true if capability is supported or false otherwise |
| 1119 | */ |
| 1120 | static inline bool ena_com_get_cap(struct ena_com_dev *ena_dev, |
| 1121 | enum ena_admin_aq_caps_id cap_id) |
| 1122 | { |
| 1123 | return !!(ena_dev->capabilities & BIT(cap_id)); |
| 1124 | } |
| 1125 | |
| 1126 | /* ena_com_get_customer_metric_support - query whether device supports a given customer metric. |
| 1127 | * @ena_dev: ENA communication layer struct |
no outgoing calls
no test coverage detected