Lines Matching refs:tdc_const
144 const struct can_tdc_const *tdc_const = priv->tdc_const; in can_tdc_changelink() local
147 if (!tdc_const || !can_tdc_is_enabled(priv)) in can_tdc_changelink()
158 if (tdcv < tdc_const->tdcv_min || tdcv > tdc_const->tdcv_max) in can_tdc_changelink()
167 if (tdco < tdc_const->tdco_min || tdco > tdc_const->tdco_max) in can_tdc_changelink()
176 if (tdcf < tdc_const->tdcf_min || tdcf > tdc_const->tdcf_max) in can_tdc_changelink()
349 can_calc_tdco(&priv->tdc, priv->tdc_const, &dbt, in can_changelink()
397 if (!priv->tdc_const) in can_tdc_get_size()
407 if (priv->tdc_const->tdcf_max) { in can_tdc_get_size()
417 if (priv->tdc_const->tdcf_max) in can_tdc_get_size()
472 const struct can_tdc_const *tdc_const = priv->tdc_const; in can_tdc_fill_info() local
474 if (!tdc_const) in can_tdc_fill_info()
482 (nla_put_u32(skb, IFLA_CAN_TDC_TDCV_MIN, tdc_const->tdcv_min) || in can_tdc_fill_info()
483 nla_put_u32(skb, IFLA_CAN_TDC_TDCV_MAX, tdc_const->tdcv_max))) in can_tdc_fill_info()
485 if (nla_put_u32(skb, IFLA_CAN_TDC_TDCO_MIN, tdc_const->tdco_min) || in can_tdc_fill_info()
486 nla_put_u32(skb, IFLA_CAN_TDC_TDCO_MAX, tdc_const->tdco_max)) in can_tdc_fill_info()
488 if (tdc_const->tdcf_max && in can_tdc_fill_info()
489 (nla_put_u32(skb, IFLA_CAN_TDC_TDCF_MIN, tdc_const->tdcf_min) || in can_tdc_fill_info()
490 nla_put_u32(skb, IFLA_CAN_TDC_TDCF_MAX, tdc_const->tdcf_max))) in can_tdc_fill_info()
507 if (tdc_const->tdcf_max && in can_tdc_fill_info()