Lines Matching refs:dev
10 static int z_vrfy_can_calc_timing(const struct device *dev, struct can_timing *res, in z_vrfy_can_calc_timing() argument
16 K_OOPS(K_SYSCALL_DRIVER_CAN(dev, get_core_clock)); in z_vrfy_can_calc_timing()
19 err = z_impl_can_calc_timing(dev, &res_copy, bitrate, sample_pnt); in z_vrfy_can_calc_timing()
26 static inline int z_vrfy_can_set_timing(const struct device *dev, in z_vrfy_can_set_timing() argument
31 K_OOPS(K_SYSCALL_DRIVER_CAN(dev, set_timing)); in z_vrfy_can_set_timing()
34 return z_impl_can_set_timing(dev, &timing_copy); in z_vrfy_can_set_timing()
38 static inline int z_vrfy_can_get_core_clock(const struct device *dev, in z_vrfy_can_get_core_clock() argument
41 K_OOPS(K_SYSCALL_DRIVER_CAN(dev, get_core_clock)); in z_vrfy_can_get_core_clock()
44 return z_impl_can_get_core_clock(dev, rate); in z_vrfy_can_get_core_clock()
48 static inline uint32_t z_vrfy_can_get_bitrate_min(const struct device *dev) in z_vrfy_can_get_bitrate_min() argument
50 K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN)); in z_vrfy_can_get_bitrate_min()
52 return z_impl_can_get_bitrate_min(dev); in z_vrfy_can_get_bitrate_min()
56 static inline uint32_t z_vrfy_can_get_bitrate_max(const struct device *dev) in z_vrfy_can_get_bitrate_max() argument
58 K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN)); in z_vrfy_can_get_bitrate_max()
60 return z_impl_can_get_bitrate_max(dev); in z_vrfy_can_get_bitrate_max()
64 static inline const struct can_timing *z_vrfy_can_get_timing_min(const struct device *dev) in z_vrfy_can_get_timing_min() argument
66 K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN)); in z_vrfy_can_get_timing_min()
68 return z_impl_can_get_timing_min(dev); in z_vrfy_can_get_timing_min()
72 static inline const struct can_timing *z_vrfy_can_get_timing_max(const struct device *dev) in z_vrfy_can_get_timing_max() argument
74 K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN)); in z_vrfy_can_get_timing_max()
76 return z_impl_can_get_timing_max(dev); in z_vrfy_can_get_timing_max()
82 static int z_vrfy_can_calc_timing_data(const struct device *dev, struct can_timing *res, in z_vrfy_can_calc_timing_data() argument
88 K_OOPS(K_SYSCALL_DRIVER_CAN(dev, get_core_clock)); in z_vrfy_can_calc_timing_data()
91 err = z_impl_can_calc_timing_data(dev, &res_copy, bitrate, sample_pnt); in z_vrfy_can_calc_timing_data()
98 static inline const struct can_timing *z_vrfy_can_get_timing_data_min(const struct device *dev) in z_vrfy_can_get_timing_data_min() argument
100 K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN)); in z_vrfy_can_get_timing_data_min()
102 return z_impl_can_get_timing_data_min(dev); in z_vrfy_can_get_timing_data_min()
106 static inline const struct can_timing *z_vrfy_can_get_timing_data_max(const struct device *dev) in z_vrfy_can_get_timing_data_max() argument
108 K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN)); in z_vrfy_can_get_timing_data_max()
110 return z_impl_can_get_timing_data_max(dev); in z_vrfy_can_get_timing_data_max()
114 static inline int z_vrfy_can_set_timing_data(const struct device *dev, in z_vrfy_can_set_timing_data() argument
119 K_OOPS(K_SYSCALL_DRIVER_CAN(dev, set_timing_data)); in z_vrfy_can_set_timing_data()
122 return z_impl_can_set_timing_data(dev, &timing_data_copy); in z_vrfy_can_set_timing_data()
126 static inline int z_vrfy_can_set_bitrate_data(const struct device *dev, in z_vrfy_can_set_bitrate_data() argument
129 K_OOPS(K_SYSCALL_DRIVER_CAN(dev, set_timing_data)); in z_vrfy_can_set_bitrate_data()
131 return z_impl_can_set_bitrate_data(dev, bitrate_data); in z_vrfy_can_set_bitrate_data()
137 static inline int z_vrfy_can_get_max_filters(const struct device *dev, bool ide) in z_vrfy_can_get_max_filters() argument
140 K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN)); in z_vrfy_can_get_max_filters()
142 return z_impl_can_get_max_filters(dev, ide); in z_vrfy_can_get_max_filters()
146 static inline int z_vrfy_can_get_capabilities(const struct device *dev, can_mode_t *cap) in z_vrfy_can_get_capabilities() argument
148 K_OOPS(K_SYSCALL_DRIVER_CAN(dev, get_capabilities)); in z_vrfy_can_get_capabilities()
151 return z_impl_can_get_capabilities(dev, cap); in z_vrfy_can_get_capabilities()
155 static inline const struct device *z_vrfy_can_get_transceiver(const struct device *dev) in z_vrfy_can_get_transceiver() argument
157 K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN)); in z_vrfy_can_get_transceiver()
159 return z_impl_can_get_transceiver(dev); in z_vrfy_can_get_transceiver()
163 static inline int z_vrfy_can_start(const struct device *dev) in z_vrfy_can_start() argument
165 K_OOPS(K_SYSCALL_DRIVER_CAN(dev, start)); in z_vrfy_can_start()
167 return z_impl_can_start(dev); in z_vrfy_can_start()
171 static inline int z_vrfy_can_stop(const struct device *dev) in z_vrfy_can_stop() argument
173 K_OOPS(K_SYSCALL_DRIVER_CAN(dev, stop)); in z_vrfy_can_stop()
175 return z_impl_can_stop(dev); in z_vrfy_can_stop()
179 static inline int z_vrfy_can_set_mode(const struct device *dev, can_mode_t mode) in z_vrfy_can_set_mode() argument
181 K_OOPS(K_SYSCALL_DRIVER_CAN(dev, set_mode)); in z_vrfy_can_set_mode()
183 return z_impl_can_set_mode(dev, mode); in z_vrfy_can_set_mode()
187 static inline can_mode_t z_vrfy_can_get_mode(const struct device *dev) in z_vrfy_can_get_mode() argument
189 K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN)); in z_vrfy_can_get_mode()
191 return z_impl_can_get_mode(dev); in z_vrfy_can_get_mode()
195 static inline int z_vrfy_can_set_bitrate(const struct device *dev, uint32_t bitrate) in z_vrfy_can_set_bitrate() argument
197 K_OOPS(K_SYSCALL_DRIVER_CAN(dev, set_timing)); in z_vrfy_can_set_bitrate()
199 return z_impl_can_set_bitrate(dev, bitrate); in z_vrfy_can_set_bitrate()
203 static inline int z_vrfy_can_send(const struct device *dev, in z_vrfy_can_send() argument
211 K_OOPS(K_SYSCALL_DRIVER_CAN(dev, send)); in z_vrfy_can_send()
215 return z_impl_can_send(dev, &frame_copy, timeout, callback, user_data); in z_vrfy_can_send()
219 static inline int z_vrfy_can_add_rx_filter_msgq(const struct device *dev, in z_vrfy_can_add_rx_filter_msgq() argument
225 K_OOPS(K_SYSCALL_DRIVER_CAN(dev, add_rx_filter)); in z_vrfy_can_add_rx_filter_msgq()
229 return z_impl_can_add_rx_filter_msgq(dev, msgq, &filter_copy); in z_vrfy_can_add_rx_filter_msgq()
233 static inline void z_vrfy_can_remove_rx_filter(const struct device *dev, int filter_id) in z_vrfy_can_remove_rx_filter() argument
235 K_OOPS(K_SYSCALL_DRIVER_CAN(dev, remove_rx_filter)); in z_vrfy_can_remove_rx_filter()
237 z_impl_can_remove_rx_filter(dev, filter_id); in z_vrfy_can_remove_rx_filter()
241 static inline int z_vrfy_can_get_state(const struct device *dev, enum can_state *state, in z_vrfy_can_get_state() argument
244 K_OOPS(K_SYSCALL_DRIVER_CAN(dev, get_state)); in z_vrfy_can_get_state()
254 return z_impl_can_get_state(dev, state, err_cnt); in z_vrfy_can_get_state()
259 static inline int z_vrfy_can_recover(const struct device *dev, k_timeout_t timeout) in z_vrfy_can_recover() argument
262 K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN)); in z_vrfy_can_recover()
264 return z_impl_can_recover(dev, timeout); in z_vrfy_can_recover()
271 static inline uint32_t z_vrfy_can_stats_get_bit_errors(const struct device *dev) in z_vrfy_can_stats_get_bit_errors() argument
273 K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN)); in z_vrfy_can_stats_get_bit_errors()
275 return z_impl_can_stats_get_bit_errors(dev); in z_vrfy_can_stats_get_bit_errors()
279 static inline uint32_t z_vrfy_can_stats_get_bit0_errors(const struct device *dev) in z_vrfy_can_stats_get_bit0_errors() argument
281 K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN)); in z_vrfy_can_stats_get_bit0_errors()
283 return z_impl_can_stats_get_bit0_errors(dev); in z_vrfy_can_stats_get_bit0_errors()
287 static inline uint32_t z_vrfy_can_stats_get_bit1_errors(const struct device *dev) in z_vrfy_can_stats_get_bit1_errors() argument
289 K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN)); in z_vrfy_can_stats_get_bit1_errors()
291 return z_impl_can_stats_get_bit1_errors(dev); in z_vrfy_can_stats_get_bit1_errors()
295 static inline uint32_t z_vrfy_can_stats_get_stuff_errors(const struct device *dev) in z_vrfy_can_stats_get_stuff_errors() argument
297 K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN)); in z_vrfy_can_stats_get_stuff_errors()
299 return z_impl_can_stats_get_stuff_errors(dev); in z_vrfy_can_stats_get_stuff_errors()
303 static inline uint32_t z_vrfy_can_stats_get_crc_errors(const struct device *dev) in z_vrfy_can_stats_get_crc_errors() argument
305 K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN)); in z_vrfy_can_stats_get_crc_errors()
307 return z_impl_can_stats_get_crc_errors(dev); in z_vrfy_can_stats_get_crc_errors()
311 static inline uint32_t z_vrfy_can_stats_get_form_errors(const struct device *dev) in z_vrfy_can_stats_get_form_errors() argument
313 K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN)); in z_vrfy_can_stats_get_form_errors()
315 return z_impl_can_stats_get_form_errors(dev); in z_vrfy_can_stats_get_form_errors()
319 static inline uint32_t z_vrfy_can_stats_get_ack_errors(const struct device *dev) in z_vrfy_can_stats_get_ack_errors() argument
321 K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN)); in z_vrfy_can_stats_get_ack_errors()
323 return z_impl_can_stats_get_ack_errors(dev); in z_vrfy_can_stats_get_ack_errors()
327 static inline uint32_t z_vrfy_can_stats_get_rx_overruns(const struct device *dev) in z_vrfy_can_stats_get_rx_overruns() argument
329 K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_CAN)); in z_vrfy_can_stats_get_rx_overruns()
331 return z_impl_can_stats_get_rx_overruns(dev); in z_vrfy_can_stats_get_rx_overruns()