Lines Matching refs:timing
321 const struct can_timing *timing) in mcp2515_set_timing() argument
326 if (!timing) { in mcp2515_set_timing()
338 __ASSERT(timing->prescaler > 0, "Prescaler should be bigger than zero"); in mcp2515_set_timing()
339 uint8_t brp = timing->prescaler - 1; in mcp2515_set_timing()
340 uint8_t sjw = (timing->sjw - 1) << 6; in mcp2515_set_timing()
346 const uint8_t phseg1 = (timing->phase_seg1 - 1) << 3; in mcp2515_set_timing()
347 const uint8_t prseg = (timing->prop_seg - 1); in mcp2515_set_timing()
355 const uint8_t phseg2 = (timing->phase_seg2 - 1); in mcp2515_set_timing()
914 struct can_timing timing = { 0 }; in mcp2515_init() local
975 ret = can_calc_timing(dev, &timing, dev_cfg->common.bitrate, in mcp2515_init()
983 timing.prescaler, timing.phase_seg1, timing.phase_seg2); in mcp2515_init()
988 ret = can_set_timing(dev, &timing); in mcp2515_init()