Lines Matching refs:dev
29 typedef size_t (*ivshmem_get_mem_f)(const struct device *dev,
32 typedef uint32_t (*ivshmem_get_id_f)(const struct device *dev);
34 typedef uint16_t (*ivshmem_get_vectors_f)(const struct device *dev);
36 typedef int (*ivshmem_int_peer_f)(const struct device *dev,
39 typedef int (*ivshmem_register_handler_f)(const struct device *dev,
45 typedef size_t (*ivshmem_get_rw_mem_section_f)(const struct device *dev,
48 typedef size_t (*ivshmem_get_output_mem_section_f)(const struct device *dev,
52 typedef uint32_t (*ivshmem_get_state_f)(const struct device *dev,
55 typedef int (*ivshmem_set_state_f)(const struct device *dev,
58 typedef uint32_t (*ivshmem_get_max_peers_f)(const struct device *dev);
60 typedef uint16_t (*ivshmem_get_protocol_f)(const struct device *dev);
62 typedef int (*ivshmem_enable_interrupts_f)(const struct device *dev,
98 __syscall size_t ivshmem_get_mem(const struct device *dev,
101 static inline size_t z_impl_ivshmem_get_mem(const struct device *dev, in z_impl_ivshmem_get_mem() argument
105 (const struct ivshmem_driver_api *)dev->api; in z_impl_ivshmem_get_mem()
107 return api->get_mem(dev, memmap); in z_impl_ivshmem_get_mem()
117 __syscall uint32_t ivshmem_get_id(const struct device *dev);
119 static inline uint32_t z_impl_ivshmem_get_id(const struct device *dev) in z_impl_ivshmem_get_id() argument
122 (const struct ivshmem_driver_api *)dev->api; in z_impl_ivshmem_get_id()
124 return api->get_id(dev); in z_impl_ivshmem_get_id()
134 __syscall uint16_t ivshmem_get_vectors(const struct device *dev);
136 static inline uint16_t z_impl_ivshmem_get_vectors(const struct device *dev) in z_impl_ivshmem_get_vectors() argument
139 (const struct ivshmem_driver_api *)dev->api; in z_impl_ivshmem_get_vectors()
141 return api->get_vectors(dev); in z_impl_ivshmem_get_vectors()
153 __syscall int ivshmem_int_peer(const struct device *dev,
156 static inline int z_impl_ivshmem_int_peer(const struct device *dev, in z_impl_ivshmem_int_peer() argument
160 (const struct ivshmem_driver_api *)dev->api; in z_impl_ivshmem_int_peer()
162 return api->int_peer(dev, peer_id, vector); in z_impl_ivshmem_int_peer()
180 __syscall int ivshmem_register_handler(const struct device *dev,
184 static inline int z_impl_ivshmem_register_handler(const struct device *dev, in z_impl_ivshmem_register_handler() argument
189 (const struct ivshmem_driver_api *)dev->api; in z_impl_ivshmem_register_handler()
191 return api->register_handler(dev, signal, vector); in z_impl_ivshmem_register_handler()
204 __syscall size_t ivshmem_get_rw_mem_section(const struct device *dev,
207 static inline size_t z_impl_ivshmem_get_rw_mem_section(const struct device *dev, in z_impl_ivshmem_get_rw_mem_section() argument
211 (const struct ivshmem_driver_api *)dev->api; in z_impl_ivshmem_get_rw_mem_section()
213 return api->get_rw_mem_section(dev, memmap); in z_impl_ivshmem_get_rw_mem_section()
225 __syscall size_t ivshmem_get_output_mem_section(const struct device *dev,
229 static inline size_t z_impl_ivshmem_get_output_mem_section(const struct device *dev, in z_impl_ivshmem_get_output_mem_section() argument
234 (const struct ivshmem_driver_api *)dev->api; in z_impl_ivshmem_get_output_mem_section()
236 return api->get_output_mem_section(dev, peer_id, memmap); in z_impl_ivshmem_get_output_mem_section()
247 __syscall uint32_t ivshmem_get_state(const struct device *dev,
250 static inline uint32_t z_impl_ivshmem_get_state(const struct device *dev, in z_impl_ivshmem_get_state() argument
254 (const struct ivshmem_driver_api *)dev->api; in z_impl_ivshmem_get_state()
256 return api->get_state(dev, peer_id); in z_impl_ivshmem_get_state()
267 __syscall int ivshmem_set_state(const struct device *dev,
270 static inline int z_impl_ivshmem_set_state(const struct device *dev, in z_impl_ivshmem_set_state() argument
274 (const struct ivshmem_driver_api *)dev->api; in z_impl_ivshmem_set_state()
276 return api->set_state(dev, state); in z_impl_ivshmem_set_state()
286 __syscall uint32_t ivshmem_get_max_peers(const struct device *dev);
288 static inline uint32_t z_impl_ivshmem_get_max_peers(const struct device *dev) in z_impl_ivshmem_get_max_peers() argument
291 (const struct ivshmem_driver_api *)dev->api; in z_impl_ivshmem_get_max_peers()
293 return api->get_max_peers(dev); in z_impl_ivshmem_get_max_peers()
303 __syscall uint16_t ivshmem_get_protocol(const struct device *dev);
305 static inline uint16_t z_impl_ivshmem_get_protocol(const struct device *dev) in z_impl_ivshmem_get_protocol() argument
308 (const struct ivshmem_driver_api *)dev->api; in z_impl_ivshmem_get_protocol()
310 return api->get_protocol(dev); in z_impl_ivshmem_get_protocol()
321 __syscall int ivshmem_enable_interrupts(const struct device *dev,
324 static inline int z_impl_ivshmem_enable_interrupts(const struct device *dev, in z_impl_ivshmem_enable_interrupts() argument
328 (const struct ivshmem_driver_api *)dev->api; in z_impl_ivshmem_enable_interrupts()
330 return api->enable_interrupts(dev, enable); in z_impl_ivshmem_enable_interrupts()