Lines Matching refs:priv
90 static inline bool can_tdc_is_enabled(const struct can_priv *priv) in can_tdc_is_enabled() argument
92 return !!(priv->ctrlmode & CAN_CTRLMODE_TDC_MASK); in can_tdc_is_enabled()
115 static inline s32 can_get_relative_tdco(const struct can_priv *priv) in can_get_relative_tdco() argument
117 const struct can_bittiming *dbt = &priv->data_bittiming; in can_get_relative_tdco()
121 return (s32)priv->tdc.tdco - sample_point_in_tc; in can_get_relative_tdco()
128 struct can_priv *priv = netdev_priv(dev); in can_set_static_ctrlmode() local
131 if (priv->ctrlmode_supported & static_mode) { in can_set_static_ctrlmode()
136 priv->ctrlmode = static_mode; in can_set_static_ctrlmode()
145 static inline u32 can_get_static_ctrlmode(struct can_priv *priv) in can_get_static_ctrlmode() argument
147 return priv->ctrlmode & ~priv->ctrlmode_supported; in can_get_static_ctrlmode()
158 struct can_priv *priv = netdev_priv(dev); in can_dev_dropped_skb() local
160 if (priv->ctrlmode & CAN_CTRLMODE_LISTENONLY) { in can_dev_dropped_skb()