/Zephyr-latest/include/zephyr/drivers/can/ |
D | transceiver.h | 36 typedef int (*can_transceiver_enable_t)(const struct device *dev, can_mode_t mode); 66 static inline int can_transceiver_enable(const struct device *dev, can_mode_t mode) in can_transceiver_enable()
|
D | can_fake.h | 26 DECLARE_FAKE_VALUE_FUNC(int, fake_can_get_capabilities, const struct device *, can_mode_t *); 28 DECLARE_FAKE_VALUE_FUNC(int, fake_can_set_mode, const struct device *, can_mode_t);
|
D | can_sja1000.h | 195 int can_sja1000_get_capabilities(const struct device *dev, can_mode_t *cap); 213 int can_sja1000_set_mode(const struct device *dev, can_mode_t mode);
|
D | can_mcan.h | 1620 int can_mcan_get_capabilities(const struct device *dev, can_mode_t *cap); 1638 int can_mcan_set_mode(const struct device *dev, can_mode_t mode);
|
/Zephyr-latest/include/zephyr/drivers/ |
D | can.h | 116 typedef uint32_t can_mode_t; typedef 396 can_mode_t mode; 423 typedef int (*can_get_capabilities_t)(const struct device *dev, can_mode_t *cap); 441 typedef int (*can_set_mode_t)(const struct device *dev, can_mode_t mode); 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() 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()
|
/Zephyr-latest/drivers/can/ |
D | can_fake.c | 36 DEFINE_FAKE_VALUE_FUNC(int, fake_can_get_capabilities, const struct device *, can_mode_t *); 38 DEFINE_FAKE_VALUE_FUNC(int, fake_can_set_mode, const struct device *, can_mode_t);
|
D | can_handlers.c | 146 static inline int z_vrfy_can_get_capabilities(const struct device *dev, can_mode_t *cap) in z_vrfy_can_get_capabilities() 179 static inline int z_vrfy_can_set_mode(const struct device *dev, can_mode_t 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()
|
D | can_shell.c | 30 can_mode_t mode; 256 static void can_shell_print_extended_modes(const struct shell *sh, can_mode_t cap) in can_shell_print_extended_modes() 277 shell_fprintf_normal(sh, "0x%08x ", (can_mode_t)BIT(bit)); in can_shell_print_extended_modes() 336 can_mode_t cap; in cmd_can_show() 676 can_mode_t mode = CAN_MODE_NORMAL; in cmd_can_mode_set() 677 can_mode_t raw; in cmd_can_mode_set() 699 raw = (can_mode_t)strtoul(argv[i], &endptr, 16); in cmd_can_mode_set()
|
D | can_loopback.c | 225 static int can_loopback_get_capabilities(const struct device *dev, can_mode_t *cap) in can_loopback_get_capabilities() 266 static int can_loopback_set_mode(const struct device *dev, can_mode_t mode) in can_loopback_set_mode()
|
D | can_native_linux.c | 256 static int can_native_linux_get_capabilities(const struct device *dev, can_mode_t *cap) in can_native_linux_get_capabilities() 295 static int can_native_linux_set_mode(const struct device *dev, can_mode_t mode) in can_native_linux_set_mode()
|
D | can_sja1000.c | 137 int can_sja1000_get_capabilities(const struct device *dev, can_mode_t *cap) in can_sja1000_get_capabilities() 218 int can_sja1000_set_mode(const struct device *dev, can_mode_t mode) in can_sja1000_set_mode() 220 can_mode_t supported = CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY | CAN_MODE_ONE_SHOT | in can_sja1000_set_mode()
|
D | can_rcar.c | 563 static int can_rcar_get_capabilities(const struct device *dev, can_mode_t *cap) in can_rcar_get_capabilities() 654 static int can_rcar_set_mode(const struct device *dev, can_mode_t mode) in can_rcar_set_mode() 656 can_mode_t supported = CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY; in can_rcar_set_mode()
|
D | can_renesas_ra.c | 400 static int can_renesas_ra_get_capabilities(const struct device *dev, can_mode_t *cap) in can_renesas_ra_get_capabilities() 509 static int can_renesas_ra_set_mode(const struct device *dev, can_mode_t mode) in can_renesas_ra_set_mode() 521 can_mode_t caps = 0; in can_renesas_ra_set_mode()
|
D | can_stm32_bxcan.c | 377 static int can_stm32_get_capabilities(const struct device *dev, can_mode_t *cap) in can_stm32_get_capabilities() 478 static int can_stm32_set_mode(const struct device *dev, can_mode_t mode) in can_stm32_set_mode() 480 can_mode_t supported = CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY | CAN_MODE_ONE_SHOT; in can_stm32_set_mode()
|
D | can_nxp_s32_canxl.c | 132 static int can_nxp_s32_get_capabilities(const struct device *dev, can_mode_t *cap) in can_nxp_s32_get_capabilities() 274 static int can_nxp_s32_set_mode(const struct device *dev, can_mode_t mode) in can_nxp_s32_set_mode() 276 can_mode_t supported = CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY; in can_nxp_s32_set_mode()
|
D | can_mcan.c | 274 int can_mcan_get_capabilities(const struct device *dev, can_mode_t *cap) in can_mcan_get_capabilities() 374 int can_mcan_set_mode(const struct device *dev, can_mode_t mode) in can_mcan_set_mode() 376 can_mode_t supported = CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY; in can_mcan_set_mode()
|
D | can_mcux_flexcan.c | 174 static int mcux_flexcan_get_capabilities(const struct device *dev, can_mode_t *cap) in mcux_flexcan_get_capabilities() 389 static int mcux_flexcan_set_mode(const struct device *dev, can_mode_t mode) in mcux_flexcan_set_mode() 391 can_mode_t supported = CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY | CAN_MODE_3_SAMPLES; in mcux_flexcan_set_mode()
|
/Zephyr-latest/tests/drivers/can/api/src/ |
D | common.h | 172 void can_common_test_setup(can_mode_t initial_mode);
|
D | canfd.c | 232 can_mode_t cap; in ZTEST() 308 static void check_filters_preserved_between_modes(can_mode_t first, can_mode_t second) in check_filters_preserved_between_modes() 540 can_mode_t cap; in canfd_predicate()
|
D | common.c | 226 void can_common_test_setup(can_mode_t initial_mode) in can_common_test_setup()
|
D | classic.c | 448 can_mode_t cap; in ZTEST_USER() 1120 can_mode_t cap; in ZTEST_USER() 1338 can_mode_t cap; in ZTEST_USER()
|
/Zephyr-latest/tests/subsys/canbus/isotp/conformance/src/ |
D | mode_check.c | 70 can_mode_t cap; in isotp_conformance_mode_check_setup()
|
/Zephyr-latest/tests/drivers/can/timing/src/ |
D | main.c | 227 can_mode_t cap; in ZTEST_USER() 263 can_mode_t cap; in can_timing_setup()
|
/Zephyr-latest/drivers/can/transceiver/ |
D | can_transceiver_gpio.c | 61 static int can_transceiver_gpio_enable(const struct device *dev, can_mode_t mode) in can_transceiver_gpio_enable()
|
/Zephyr-latest/samples/subsys/canbus/isotp/src/ |
D | main.c | 149 can_mode_t mode = (IS_ENABLED(CONFIG_SAMPLE_LOOPBACK_MODE) ? CAN_MODE_LOOPBACK : 0) | in main()
|