Lines Matching refs:dbt
115 struct can_bittiming bt = {}, dbt = {}; in can_parse_opt() local
153 if (get_u32(&dbt.bitrate, *argv, 0)) in can_parse_opt()
161 dbt.sample_point = (__u32)(sp * 1000); in can_parse_opt()
164 if (get_u32(&dbt.tq, *argv, 0)) in can_parse_opt()
168 if (get_u32(&dbt.prop_seg, *argv, 0)) in can_parse_opt()
172 if (get_u32(&dbt.phase_seg1, *argv, 0)) in can_parse_opt()
176 if (get_u32(&dbt.phase_seg2, *argv, 0)) in can_parse_opt()
180 if (get_u32(&dbt.sjw, *argv, 0)) in can_parse_opt()
246 if (dbt.bitrate || dbt.tq) in can_parse_opt()
247 addattr_l(n, 1024, IFLA_CAN_DATA_BITTIMING, &dbt, sizeof(dbt)); in can_parse_opt()
414 struct can_bittiming *dbt = in can_print_opt() local
419 print_int(PRINT_JSON, "bitrate", NULL, dbt->bitrate); in can_print_opt()
423 (float) dbt->sample_point / 1000.); in can_print_opt()
424 print_int(PRINT_JSON, "tq", NULL, dbt->tq); in can_print_opt()
425 print_int(PRINT_JSON, "prop_seg", NULL, dbt->prop_seg); in can_print_opt()
427 NULL, dbt->phase_seg1); in can_print_opt()
429 NULL, dbt->phase_seg2); in can_print_opt()
430 print_int(PRINT_JSON, "sjw", NULL, dbt->sjw); in can_print_opt()
434 dbt->bitrate, in can_print_opt()
435 (float) dbt->sample_point / 1000.); in can_print_opt()
438 dbt->tq, dbt->prop_seg, dbt->phase_seg1, in can_print_opt()
439 dbt->phase_seg2, dbt->sjw); in can_print_opt()
484 struct can_bittiming *dbt = in can_print_opt() local
486 dbitrate = dbt->bitrate; in can_print_opt()