Lines Matching defs:clt
331 valid_timings(struct can_link_timecaps *cltc, struct can_link_timings *clt)
333 if (clt->clt_brp < cltc->cltc_brp_min ||
334 clt->clt_brp > cltc->cltc_brp_max)
337 if (clt->clt_prop < cltc->cltc_prop_min ||
338 clt->clt_prop > cltc->cltc_prop_max)
341 if (clt->clt_ps1 < cltc->cltc_ps1_min ||
342 clt->clt_ps1 > cltc->cltc_ps1_max)
345 if (clt->clt_ps2 < cltc->cltc_ps2_min ||
346 clt->clt_ps2 > cltc->cltc_ps2_max)
356 struct can_link_timings clt;
364 if (do_cmd(sock, canifname, CANGLINKTIMINGS, &clt, sizeof(clt), 0) < 0)
388 if (valid_timings(&cltc, &clt)) {
390 tq = ((uint64_t)clt.clt_brp * (uint64_t)1000000000) /
392 ntq = 1 + clt.clt_prop + clt.clt_ps1 + clt.clt_ps2;
394 1 + clt.clt_prop + clt.clt_ps1 + clt.clt_ps2, tq);
404 clt.clt_brp, clt.clt_prop, clt.clt_ps1, clt.clt_ps2, clt.clt_sjw);