Home
last modified time | relevance | path

Searched refs:can_mode_t (Results 1 – 25 of 33) sorted by relevance

12

/Zephyr-latest/include/zephyr/drivers/can/
Dtransceiver.h36 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()
Dcan_fake.h26 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);
Dcan_sja1000.h195 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);
Dcan_mcan.h1620 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/
Dcan.h116 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/
Dcan_fake.c36 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);
Dcan_handlers.c146 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()
Dcan_shell.c30 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()
Dcan_loopback.c225 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()
Dcan_native_linux.c256 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()
Dcan_sja1000.c137 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()
Dcan_rcar.c563 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()
Dcan_renesas_ra.c400 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()
Dcan_stm32_bxcan.c377 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()
Dcan_nxp_s32_canxl.c132 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()
Dcan_mcan.c274 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()
Dcan_mcux_flexcan.c174 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/
Dcommon.h172 void can_common_test_setup(can_mode_t initial_mode);
Dcanfd.c232 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()
Dcommon.c226 void can_common_test_setup(can_mode_t initial_mode) in can_common_test_setup()
Dclassic.c448 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/
Dmode_check.c70 can_mode_t cap; in isotp_conformance_mode_check_setup()
/Zephyr-latest/tests/drivers/can/timing/src/
Dmain.c227 can_mode_t cap; in ZTEST_USER()
263 can_mode_t cap; in can_timing_setup()
/Zephyr-latest/drivers/can/transceiver/
Dcan_transceiver_gpio.c61 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/
Dmain.c149 can_mode_t mode = (IS_ENABLED(CONFIG_SAMPLE_LOOPBACK_MODE) ? CAN_MODE_LOOPBACK : 0) | in main()

12