/Zephyr-latest/drivers/can/ |
D | can_common.c | 155 static int update_sample_pnt(uint32_t total_tq, uint32_t sample_pnt, struct can_timing *res, in update_sample_pnt() 156 const struct can_timing *min, const struct can_timing *max) in update_sample_pnt() 251 static int can_calc_timing_internal(const struct device *dev, struct can_timing *res, in can_calc_timing_internal() 252 const struct can_timing *min, const struct can_timing *max, in can_calc_timing_internal() 256 struct can_timing tmp_res = { 0 }; in can_calc_timing_internal() 318 int z_impl_can_calc_timing(const struct device *dev, struct can_timing *res, in z_impl_can_calc_timing() 321 const struct can_timing *min = can_get_timing_min(dev); in z_impl_can_calc_timing() 322 const struct can_timing *max = can_get_timing_max(dev); in z_impl_can_calc_timing() 332 int z_impl_can_calc_timing_data(const struct device *dev, struct can_timing *res, in z_impl_can_calc_timing_data() 335 const struct can_timing *min = can_get_timing_data_min(dev); in z_impl_can_calc_timing_data() [all …]
|
D | can_handlers.c | 10 static int z_vrfy_can_calc_timing(const struct device *dev, struct can_timing *res, in z_vrfy_can_calc_timing() 13 struct can_timing res_copy; in z_vrfy_can_calc_timing() 27 const struct can_timing *timing) in z_vrfy_can_set_timing() 29 struct can_timing timing_copy; in z_vrfy_can_set_timing() 64 static inline const struct can_timing *z_vrfy_can_get_timing_min(const struct device *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() 82 static int z_vrfy_can_calc_timing_data(const struct device *dev, struct can_timing *res, in z_vrfy_can_calc_timing_data() 85 struct can_timing res_copy; 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() 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() [all …]
|
D | can_fake.c | 31 DEFINE_FAKE_VALUE_FUNC(int, fake_can_set_timing, const struct device *, const struct can_timing *); 34 const struct can_timing *);
|
D | can_shell.c | 328 const struct can_timing *timing_min; in cmd_can_show() 329 const struct can_timing *timing_max; in cmd_can_show() 438 struct can_timing timing = { 0 }; in cmd_can_bitrate_set() 509 struct can_timing timing = { 0 }; in cmd_can_dbitrate_set() 578 struct can_timing *timing) in can_shell_parse_timing() 618 struct can_timing timing = { 0 }; in cmd_can_timing_set() 647 struct can_timing timing = { 0 }; in cmd_can_dtiming_set()
|
D | can_loopback.c | 292 const struct can_timing *timing) in can_loopback_set_timing() 307 const struct can_timing *timing) in can_loopback_set_timing_data()
|
D | can_native_linux.c | 327 static int can_native_linux_set_timing(const struct device *dev, const struct can_timing *timing) in can_native_linux_set_timing() 342 const struct can_timing *timing) in can_native_linux_set_timing_data()
|
D | can_nxp_s32_canxl.c | 125 struct can_timing timing; 127 struct can_timing timing_data; 688 static void nxp_s32_zcan_timing_to_canxl_timing(const struct can_timing *timing, in nxp_s32_zcan_timing_to_canxl_timing() 703 const struct can_timing *timing) in can_nxp_s32_set_timing() 723 const struct can_timing *timing_data) in can_nxp_s32_set_timing_data()
|
D | can_renesas_ra.c | 184 const struct can_timing *z_timing) in set_hw_timing_configuration() 540 static int can_renesas_ra_set_timing(const struct device *dev, const struct can_timing *timing) in can_renesas_ra_set_timing() 781 const struct can_timing *timing_data) in can_renesas_ra_set_timing_data() 844 struct can_timing timing = {0}; in can_renesas_ra_apply_default_config()
|
D | can_esp32_twai.c | 118 static int can_esp32_twai_set_timing(const struct device *dev, const struct can_timing *timing) in can_esp32_twai_set_timing()
|
D | can_mcan.c | 197 int can_mcan_set_timing(const struct device *dev, const struct can_timing *timing) in can_mcan_set_timing() 226 int can_mcan_set_timing_data(const struct device *dev, const struct can_timing *timing_data) in can_mcan_set_timing_data() 1374 struct can_timing timing = { 0 }; in can_mcan_init() 1376 struct can_timing timing_data = { 0 }; in can_mcan_init()
|
D | can_mcux_flexcan.c | 116 struct can_timing timing; 118 struct can_timing timing_data; 137 const struct can_timing *timing) in mcux_flexcan_set_timing() 156 const struct can_timing *timing_data) in mcux_flexcan_set_timing_data()
|
D | can_sja1000.c | 108 int can_sja1000_set_timing(const struct device *dev, const struct can_timing *timing) in can_sja1000_set_timing() 750 struct can_timing timing = { 0 }; in can_sja1000_init()
|
D | can_rcar.c | 724 const struct can_timing *timing) in can_rcar_set_bittiming() 742 const struct can_timing *timing) in can_rcar_set_timing() 1012 struct can_timing timing = { 0 }; in can_rcar_init()
|
D | can_mcp251xfd.c | 405 static int mcp251xfd_set_timing(const struct device *dev, const struct can_timing *timing) in mcp251xfd_set_timing() 442 static int mcp251xfd_set_timing_data(const struct device *dev, const struct can_timing *timing) in mcp251xfd_set_timing_data() 1513 struct can_timing timing = { 0 }; in mcp251xfd_init() 1515 struct can_timing timing_data = { 0 }; in mcp251xfd_init()
|
D | can_mcp2515.c | 321 const struct can_timing *timing) in mcp2515_set_timing() 914 struct can_timing timing = { 0 }; in mcp2515_init()
|
D | can_xmc4xxx.c | 115 static int can_xmc4xxx_set_timing(const struct device *dev, const struct can_timing *timing) in can_xmc4xxx_set_timing() 790 struct can_timing timing = {0}; in can_xmc4xxx_init()
|
D | can_stm32_bxcan.c | 540 const struct can_timing *timing) in can_stm32_set_timing() 600 struct can_timing timing = { 0 }; in can_stm32_init()
|
/Zephyr-latest/tests/drivers/can/timing/src/ |
D | main.c | 75 static void assert_bitrate_correct(const struct device *dev, struct can_timing *timing, in assert_bitrate_correct() 101 static void assert_timing_within_bounds(struct can_timing *timing, in assert_timing_within_bounds() 102 const struct can_timing *min, in assert_timing_within_bounds() 103 const struct can_timing *max) in assert_timing_within_bounds() 128 static void assert_sp_within_margin(struct can_timing *timing, uint16_t sp, uint16_t sp_margin) in assert_sp_within_margin() 151 const struct can_timing *max = NULL; in test_timing_values() 152 const struct can_timing *min = NULL; in test_timing_values() 153 struct can_timing timing = { 0 }; in test_timing_values() 206 ZTEST_USER(can_timing, test_timing) in ZTEST_USER() argument 224 ZTEST_USER(can_timing, test_timing_data) in ZTEST_USER() argument [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | can.h | 262 struct can_timing { struct 410 const struct can_timing *timing); 417 const struct can_timing *timing_data); 520 struct can_timing timing_min; 522 struct can_timing timing_max; 526 struct can_timing timing_data_min; 528 struct can_timing timing_data_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); [all …]
|
/Zephyr-latest/include/zephyr/drivers/can/ |
D | can_fake.h | 21 DECLARE_FAKE_VALUE_FUNC(int, fake_can_set_timing, const struct device *, const struct can_timing *); 24 const struct can_timing *);
|
D | can_sja1000.h | 189 int can_sja1000_set_timing(const struct device *dev, const struct can_timing *timing);
|
D | can_mcan.h | 1644 int can_mcan_set_timing(const struct device *dev, const struct can_timing *timing); 1650 int can_mcan_set_timing_data(const struct device *dev, const struct can_timing *timing_data);
|
/Zephyr-latest/tests/drivers/can/timing/ |
D | CMakeLists.txt | 5 project(can_timing) project
|
/Zephyr-latest/tests/drivers/can/shell/src/ |
D | main.c | 27 static struct can_timing timing_capture; 32 static void assert_can_timing_equal(const struct can_timing *t1, const struct can_timing *t2) in assert_can_timing_equal() 56 static int can_shell_test_capture_timing(const struct device *dev, const struct can_timing *timing) in can_shell_test_capture_timing() 141 struct can_timing expected = { 0 }; in can_shell_test_bitrate() 183 struct can_timing expected = { 0 }; in can_shell_test_dbitrate() 214 struct can_timing expected = { in ZTEST() 246 struct can_timing expected = { in ZTEST()
|
/Zephyr-latest/tests/drivers/can/api/src/ |
D | canfd.c | 483 struct can_timing timing; in ZTEST_USER() 527 struct can_timing timing = { 0 }; in ZTEST_USER()
|