Lines Matching refs:bt
100 struct can_bittiming bt; in can_parse_opt() local
103 memset(&bt, 0, sizeof(bt)); in can_parse_opt()
107 if (get_u32(&bt.bitrate, *argv, 0)) in can_parse_opt()
116 bt.sample_point = (__u32)(sp * 1000); in can_parse_opt()
119 if (get_u32(&bt.tq, *argv, 0)) in can_parse_opt()
123 if (get_u32(&bt.prop_seg, *argv, 0)) in can_parse_opt()
127 if (get_u32(&bt.phase_seg1, *argv, 0)) in can_parse_opt()
131 if (get_u32(&bt.phase_seg2, *argv, 0)) in can_parse_opt()
135 if (get_u32(&bt.sjw, *argv, 0)) in can_parse_opt()
179 if (bt.bitrate || bt.tq) in can_parse_opt()
180 addattr_l(n, 1024, IFLA_CAN_BITTIMING, &bt, sizeof(bt)); in can_parse_opt()
229 struct can_bittiming *bt = RTA_DATA(tb[IFLA_CAN_BITTIMING]); in can_print_opt() local
233 bt->bitrate, (float)bt->sample_point / 1000.); in can_print_opt()
236 bt->tq, bt->prop_seg, bt->phase_seg1, bt->phase_seg2, in can_print_opt()
237 bt->sjw); in can_print_opt()