/Zephyr-latest/soc/st/stm32/stm32f0x/ |
D | soc.h | 27 #undef CAN_MODE_LOOPBACK
|
/Zephyr-latest/soc/st/stm32/stm32f1x/ |
D | soc.h | 27 #undef CAN_MODE_LOOPBACK
|
/Zephyr-latest/soc/st/stm32/stm32f2x/ |
D | soc.h | 26 #undef CAN_MODE_LOOPBACK
|
/Zephyr-latest/soc/st/stm32/stm32f3x/ |
D | soc.h | 28 #undef CAN_MODE_LOOPBACK
|
/Zephyr-latest/soc/st/stm32/stm32f4x/ |
D | soc.h | 27 #undef CAN_MODE_LOOPBACK
|
/Zephyr-latest/soc/st/stm32/stm32f7x/ |
D | soc.h | 26 #undef CAN_MODE_LOOPBACK
|
/Zephyr-latest/soc/st/stm32/stm32l4x/ |
D | soc.h | 28 #undef CAN_MODE_LOOPBACK
|
/Zephyr-latest/tests/drivers/can/api/src/ |
D | canfd.c | 237 zassert_not_equal(cap & (CAN_MODE_LOOPBACK | CAN_MODE_FD), 0, in ZTEST() 324 err = can_set_mode(can_dev, first | CAN_MODE_LOOPBACK); in check_filters_preserved_between_modes() 326 zassert_equal(first | CAN_MODE_LOOPBACK, can_get_mode(can_dev)); in check_filters_preserved_between_modes() 357 err = can_set_mode(can_dev, second | CAN_MODE_LOOPBACK); in check_filters_preserved_between_modes() 359 zassert_equal(second | CAN_MODE_LOOPBACK, can_get_mode(can_dev)); in check_filters_preserved_between_modes() 386 err = can_set_mode(can_dev, CAN_MODE_FD | CAN_MODE_LOOPBACK); in check_filters_preserved_between_modes() 388 zassert_equal(CAN_MODE_FD | CAN_MODE_LOOPBACK, can_get_mode(can_dev)); in check_filters_preserved_between_modes() 562 can_common_test_setup(CAN_MODE_LOOPBACK | CAN_MODE_FD); in canfd_setup()
|
D | classic.c | 453 zassert_not_equal(cap & CAN_MODE_LOOPBACK, 0, "CAN loopback mode not supported"); in ZTEST_USER() 1154 err = can_set_mode(can_dev, CAN_MODE_LOOPBACK); in ZTEST_USER() 1156 zassert_equal(CAN_MODE_LOOPBACK, can_get_mode(can_dev)); in ZTEST_USER() 1216 err = can_set_mode(can_dev, CAN_MODE_LOOPBACK); in ZTEST_USER() 1218 zassert_equal(CAN_MODE_LOOPBACK, can_get_mode(can_dev)); in ZTEST_USER() 1421 can_common_test_setup(CAN_MODE_LOOPBACK); in can_classic_setup()
|
/Zephyr-latest/drivers/can/ |
D | can_loopback.c | 81 if ((data->common.mode & CAN_MODE_LOOPBACK) == 0U) { in tx_thread() 229 *cap = CAN_MODE_NORMAL | CAN_MODE_LOOPBACK; in can_loopback_get_capabilities() 275 if ((mode & ~(CAN_MODE_LOOPBACK | CAN_MODE_FD)) != 0) { in can_loopback_set_mode() 280 if ((mode & ~(CAN_MODE_LOOPBACK)) != 0) { in can_loopback_set_mode()
|
D | can_native_linux.c | 102 if ((data->common.mode & CAN_MODE_LOOPBACK) == 0U) { in rx_thread() 260 *cap = CAN_MODE_NORMAL | CAN_MODE_LOOPBACK; in can_native_linux_get_capabilities() 301 if ((mode & ~(CAN_MODE_LOOPBACK | CAN_MODE_FD)) != 0) { in can_native_linux_set_mode() 306 if ((mode & ~(CAN_MODE_LOOPBACK)) != 0) { in can_native_linux_set_mode()
|
D | can_sja1000.c | 141 *cap = CAN_MODE_NORMAL | CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY | in can_sja1000_get_capabilities() 220 can_mode_t supported = CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY | CAN_MODE_ONE_SHOT | in can_sja1000_set_mode() 244 if ((mode & CAN_MODE_LOOPBACK) != 0) { in can_sja1000_set_mode() 421 if ((data->common.mode & CAN_MODE_LOOPBACK) != 0) { in can_sja1000_send()
|
D | can_rcar.c | 567 *cap = CAN_MODE_NORMAL | CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY; in can_rcar_get_capabilities() 656 can_mode_t supported = CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY; in can_rcar_set_mode() 677 if ((mode & (CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY)) == in can_rcar_set_mode() 678 (CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY)) { in can_rcar_set_mode() 682 } else if ((mode & CAN_MODE_LOOPBACK) != 0) { in can_rcar_set_mode()
|
D | can_nxp_s32_canxl.c | 136 *cap = CAN_MODE_NORMAL | CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY; in can_nxp_s32_get_capabilities() 276 can_mode_t supported = CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY; in can_nxp_s32_set_mode() 300 if ((mode & (CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY)) in can_nxp_s32_set_mode() 301 == (CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY)) { in can_nxp_s32_set_mode() 312 } else if (mode & CAN_MODE_LOOPBACK) { in can_nxp_s32_set_mode()
|
D | can_mcux_flexcan.c | 178 *cap = CAN_MODE_NORMAL | CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY | CAN_MODE_3_SAMPLES; in mcux_flexcan_get_capabilities() 391 can_mode_t supported = CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY | CAN_MODE_3_SAMPLES; in mcux_flexcan_set_mode() 422 if ((mode & CAN_MODE_LOOPBACK) != 0) { in mcux_flexcan_set_mode() 465 if ((mode & CAN_MODE_LOOPBACK) != 0) { in mcux_flexcan_set_mode()
|
D | can_stm32_bxcan.c | 381 *cap = CAN_MODE_NORMAL | CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY | CAN_MODE_ONE_SHOT; in can_stm32_get_capabilities() 480 can_mode_t supported = CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY | CAN_MODE_ONE_SHOT; in can_stm32_set_mode() 502 if ((mode & CAN_MODE_LOOPBACK) != 0) { in can_stm32_set_mode()
|
D | can_mcan.c | 278 *cap = CAN_MODE_NORMAL | CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY; in can_mcan_get_capabilities() 376 can_mode_t supported = CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY; in can_mcan_set_mode() 411 if ((mode & CAN_MODE_LOOPBACK) != 0) { in can_mcan_set_mode()
|
D | can_mcp2515.c | 405 *cap = CAN_MODE_NORMAL | CAN_MODE_LISTENONLY | CAN_MODE_LOOPBACK; in mcp2515_get_capabilities() 515 case CAN_MODE_LOOPBACK: in mcp2515_set_mode()
|
D | can_renesas_ra.c | 403 *cap = CAN_MODE_NORMAL | CAN_MODE_LOOPBACK; in can_renesas_ra_get_capabilities() 456 if ((data->common.mode & CAN_MODE_LOOPBACK) != 0) { in can_renesas_ra_start()
|
/Zephyr-latest/tests/subsys/canbus/isotp/conformance/src/ |
D | mode_check.c | 82 err = can_set_mode(can_dev, CAN_MODE_LOOPBACK | (canfd_capable ? CAN_MODE_FD : 0)); in isotp_conformance_mode_check_setup()
|
/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()
|
/Zephyr-latest/samples/drivers/can/counter/src/ |
D | main.c | 218 ret = can_set_mode(can_dev, CAN_MODE_LOOPBACK); in main()
|
/Zephyr-latest/samples/net/sockets/can/src/ |
D | main.c | 270 ret = can_set_mode(dev, CAN_MODE_LOOPBACK); in main()
|
/Zephyr-latest/tests/drivers/can/shell/src/ |
D | main.c | 330 can_shell_test_mode("can mode " FAKE_CAN_NAME " loopback", CAN_MODE_LOOPBACK); in ZTEST() 351 CAN_MODE_LISTENONLY | CAN_MODE_LOOPBACK); in ZTEST()
|
/Zephyr-latest/tests/subsys/canbus/isotp/implementation/src/ |
D | main.c | 420 ret = can_set_mode(can_dev, CAN_MODE_LOOPBACK); in isotp_implementation_setup()
|