Lines Matching full:dev
11 typedef int (*vtd_alloc_entries_f)(const struct device *dev,
14 typedef uint32_t (*vtd_remap_msi_f)(const struct device *dev,
18 typedef int (*vtd_remap_f)(const struct device *dev,
24 typedef int (*vtd_set_irte_vector_f)(const struct device *dev,
28 typedef int (*vtd_get_irte_by_vector_f)(const struct device *dev,
31 typedef uint16_t (*vtd_get_irte_vector_f)(const struct device *dev,
34 typedef int (*vtd_set_irte_irq_f)(const struct device *dev,
38 typedef int (*vtd_get_irte_by_irq_f)(const struct device *dev,
41 typedef void (*vtd_set_irte_msi_f)(const struct device *dev,
45 typedef bool (*vtd_irte_is_msi_f)(const struct device *dev,
64 * @param dev Pointer to the device structure for the driver instance
71 static inline int vtd_allocate_entries(const struct device *dev, in vtd_allocate_entries() argument
75 (const struct vtd_driver_api *)dev->api; in vtd_allocate_entries()
77 return api->allocate_entries(dev, n_entries); in vtd_allocate_entries()
83 * @param dev Pointer to the device structure for the driver instance
89 static inline uint32_t vtd_remap_msi(const struct device *dev, in vtd_remap_msi() argument
94 (const struct vtd_driver_api *)dev->api; in vtd_remap_msi()
96 return api->remap_msi(dev, vector, n_vector); in vtd_remap_msi()
102 * @param dev Pointer to the device structure for the driver instance
110 static inline int vtd_remap(const struct device *dev, in vtd_remap() argument
117 (const struct vtd_driver_api *)dev->api; in vtd_remap()
119 return api->remap(dev, irte_idx, vector, flags, src_id); in vtd_remap()
125 * @param dev Pointer to the device structure for the driver instance
131 static inline int vtd_set_irte_vector(const struct device *dev, in vtd_set_irte_vector() argument
136 (const struct vtd_driver_api *)dev->api; in vtd_set_irte_vector()
138 return api->set_irte_vector(dev, irte_idx, vector); in vtd_set_irte_vector()
144 * @param dev Pointer to the device structure for the driver instance
149 static inline int vtd_get_irte_by_vector(const struct device *dev, in vtd_get_irte_by_vector() argument
153 (const struct vtd_driver_api *)dev->api; in vtd_get_irte_by_vector()
155 return api->get_irte_by_vector(dev, vector); in vtd_get_irte_by_vector()
161 * @param dev Pointer to the device structure for the driver instance
166 static inline uint16_t vtd_get_irte_vector(const struct device *dev, in vtd_get_irte_vector() argument
170 (const struct vtd_driver_api *)dev->api; in vtd_get_irte_vector()
172 return api->get_irte_vector(dev, irte_idx); in vtd_get_irte_vector()
178 * @param dev Pointer to the device structure for the driver instance
184 static inline int vtd_set_irte_irq(const struct device *dev, in vtd_set_irte_irq() argument
189 (const struct vtd_driver_api *)dev->api; in vtd_set_irte_irq()
191 return api->set_irte_irq(dev, irte_idx, irq); in vtd_set_irte_irq()
197 * @param dev Pointer to the device structure for the driver instance
202 static inline int vtd_get_irte_by_irq(const struct device *dev, in vtd_get_irte_by_irq() argument
206 (const struct vtd_driver_api *)dev->api; in vtd_get_irte_by_irq()
208 return api->get_irte_by_irq(dev, irq); in vtd_get_irte_by_irq()
211 static inline void vtd_set_irte_msi(const struct device *dev, in vtd_set_irte_msi() argument
216 (const struct vtd_driver_api *)dev->api; in vtd_set_irte_msi()
218 api->set_irte_msi(dev, irte_idx, msi); in vtd_set_irte_msi()
221 static inline bool vtd_irte_is_msi(const struct device *dev, in vtd_irte_is_msi() argument
225 (const struct vtd_driver_api *)dev->api; in vtd_irte_is_msi()
227 return api->irte_is_msi(dev, irte_idx); in vtd_irte_is_msi()