Lines Matching refs:device

283 typedef void (*can_tx_callback_t)(const struct device *dev, int error, void *user_data);
292 typedef void (*can_rx_callback_t)(const struct device *dev, struct can_frame *frame,
303 typedef void (*can_state_change_callback_t)(const struct device *dev,
339 const struct device *phy;
409 typedef int (*can_set_timing_t)(const struct device *dev,
416 typedef int (*can_set_timing_data_t)(const struct device *dev,
423 typedef int (*can_get_capabilities_t)(const struct device *dev, can_mode_t *cap);
429 typedef int (*can_start_t)(const struct device *dev);
435 typedef int (*can_stop_t)(const struct device *dev);
441 typedef int (*can_set_mode_t)(const struct device *dev, can_mode_t mode);
450 typedef int (*can_send_t)(const struct device *dev,
459 typedef int (*can_add_rx_filter_t)(const struct device *dev,
468 typedef void (*can_remove_rx_filter_t)(const struct device *dev, int filter_id);
474 typedef int (*can_recover_t)(const struct device *dev, k_timeout_t timeout);
480 typedef int (*can_get_state_t)(const struct device *dev, enum can_state *state,
487 typedef void(*can_set_state_change_callback_t)(const struct device *dev,
495 typedef int (*can_get_core_clock_t)(const struct device *dev, uint32_t *rate);
501 typedef int (*can_get_max_filters_t)(const struct device *dev, bool ide);
721 static inline int UTIL_CAT(dev_id, _init)(const struct device *dev) \
815 __syscall int can_get_core_clock(const struct device *dev, uint32_t *rate);
817 static inline int z_impl_can_get_core_clock(const struct device *dev, uint32_t *rate) in z_impl_can_get_core_clock()
840 __syscall uint32_t can_get_bitrate_min(const struct device *dev);
842 static inline uint32_t z_impl_can_get_bitrate_min(const struct device *dev) in z_impl_can_get_bitrate_min()
865 __syscall uint32_t can_get_bitrate_max(const struct device *dev);
867 static inline uint32_t z_impl_can_get_bitrate_max(const struct device *dev) in z_impl_can_get_bitrate_max()
881 __syscall const struct can_timing *can_get_timing_min(const struct device *dev);
883 static inline const struct can_timing *z_impl_can_get_timing_min(const struct device *dev) in z_impl_can_get_timing_min()
897 __syscall const struct can_timing *can_get_timing_max(const struct device *dev);
899 static inline const struct can_timing *z_impl_can_get_timing_max(const struct device *dev) in z_impl_can_get_timing_max()
932 __syscall int can_calc_timing(const struct device *dev, struct can_timing *res,
948 __syscall const struct can_timing *can_get_timing_data_min(const struct device *dev);
951 static inline const struct can_timing *z_impl_can_get_timing_data_min(const struct device *dev) in z_impl_can_get_timing_data_min()
972 __syscall const struct can_timing *can_get_timing_data_max(const struct device *dev);
975 static inline const struct can_timing *z_impl_can_get_timing_data_max(const struct device *dev) in z_impl_can_get_timing_data_max()
1003 __syscall int can_calc_timing_data(const struct device *dev, struct can_timing *res,
1023 __syscall int can_set_timing_data(const struct device *dev,
1054 __syscall int can_set_bitrate_data(const struct device *dev, uint32_t bitrate_data);
1069 __syscall int can_set_timing(const struct device *dev,
1085 __syscall int can_get_capabilities(const struct device *dev, can_mode_t *cap);
1087 static inline int z_impl_can_get_capabilities(const struct device *dev, can_mode_t *cap) in z_impl_can_get_capabilities()
1103 __syscall const struct device *can_get_transceiver(const struct device *dev);
1105 static const struct device *z_impl_can_get_transceiver(const struct device *dev) in z_impl_can_get_transceiver()
1129 __syscall int can_start(const struct device *dev);
1131 static inline int z_impl_can_start(const struct device *dev) in z_impl_can_start()
1153 __syscall int can_stop(const struct device *dev);
1155 static inline int z_impl_can_stop(const struct device *dev) in z_impl_can_stop()
1172 __syscall int can_set_mode(const struct device *dev, can_mode_t mode);
1174 static inline int z_impl_can_set_mode(const struct device *dev, can_mode_t mode) in z_impl_can_set_mode()
1188 __syscall can_mode_t can_get_mode(const struct device *dev);
1190 static inline can_mode_t z_impl_can_get_mode(const struct device *dev) in z_impl_can_get_mode()
1222 __syscall int can_set_bitrate(const struct device *dev, uint32_t bitrate);
1276 __syscall int can_send(const struct device *dev, const struct can_frame *frame,
1311 int can_add_rx_filter(const struct device *dev, can_rx_callback_t callback,
1353 __syscall int can_add_rx_filter_msgq(const struct device *dev, struct k_msgq *msgq,
1365 __syscall void can_remove_rx_filter(const struct device *dev, int filter_id);
1367 static inline void z_impl_can_remove_rx_filter(const struct device *dev, int filter_id) in z_impl_can_remove_rx_filter()
1387 __syscall int can_get_max_filters(const struct device *dev, bool ide);
1389 static inline int z_impl_can_get_max_filters(const struct device *dev, bool ide) in z_impl_can_get_max_filters()
1421 __syscall int can_get_state(const struct device *dev, enum can_state *state,
1424 static inline int z_impl_can_get_state(const struct device *dev, enum can_state *state, in z_impl_can_get_state()
1449 __syscall int can_recover(const struct device *dev, k_timeout_t timeout);
1452 static inline int z_impl_can_recover(const struct device *dev, k_timeout_t timeout) in z_impl_can_recover()
1477 static inline void can_set_state_change_callback(const struct device *dev, in can_set_state_change_callback()
1506 __syscall uint32_t can_stats_get_bit_errors(const struct device *dev);
1509 static inline uint32_t z_impl_can_stats_get_bit_errors(const struct device *dev) in z_impl_can_stats_get_bit_errors()
1529 __syscall uint32_t can_stats_get_bit0_errors(const struct device *dev);
1532 static inline uint32_t z_impl_can_stats_get_bit0_errors(const struct device *dev) in z_impl_can_stats_get_bit0_errors()
1552 __syscall uint32_t can_stats_get_bit1_errors(const struct device *dev);
1555 static inline uint32_t z_impl_can_stats_get_bit1_errors(const struct device *dev) in z_impl_can_stats_get_bit1_errors()
1573 __syscall uint32_t can_stats_get_stuff_errors(const struct device *dev);
1576 static inline uint32_t z_impl_can_stats_get_stuff_errors(const struct device *dev) in z_impl_can_stats_get_stuff_errors()
1594 __syscall uint32_t can_stats_get_crc_errors(const struct device *dev);
1597 static inline uint32_t z_impl_can_stats_get_crc_errors(const struct device *dev) in z_impl_can_stats_get_crc_errors()
1615 __syscall uint32_t can_stats_get_form_errors(const struct device *dev);
1618 static inline uint32_t z_impl_can_stats_get_form_errors(const struct device *dev) in z_impl_can_stats_get_form_errors()
1636 __syscall uint32_t can_stats_get_ack_errors(const struct device *dev);
1639 static inline uint32_t z_impl_can_stats_get_ack_errors(const struct device *dev) in z_impl_can_stats_get_ack_errors()
1658 __syscall uint32_t can_stats_get_rx_overruns(const struct device *dev);
1661 static inline uint32_t z_impl_can_stats_get_rx_overruns(const struct device *dev) in z_impl_can_stats_get_rx_overruns()