• Home
  • Raw
  • Download

Lines Matching refs:iface

48 #define C_CAN_IFACE(reg, iface)	(C_CAN_IF1_##reg + (iface) * IF_ENUM_REG_LEN)  argument
250 static void c_can_obj_update(struct net_device *dev, int iface, u32 cmd, u32 obj) in c_can_obj_update() argument
253 int cnt, reg = C_CAN_IFACE(COMREQ_REG, iface); in c_can_obj_update()
266 static inline void c_can_object_get(struct net_device *dev, int iface, in c_can_object_get() argument
269 c_can_obj_update(dev, iface, cmd, obj); in c_can_object_get()
272 static inline void c_can_object_put(struct net_device *dev, int iface, in c_can_object_put() argument
275 c_can_obj_update(dev, iface, cmd | IF_COMM_WR, obj); in c_can_object_put()
283 static void c_can_inval_tx_object(struct net_device *dev, int iface, int obj) in c_can_inval_tx_object() argument
287 priv->write_reg(priv, C_CAN_IFACE(MSGCTRL_REG, iface), 0); in c_can_inval_tx_object()
288 c_can_object_put(dev, iface, obj, IF_COMM_INVAL); in c_can_inval_tx_object()
291 static void c_can_inval_msg_object(struct net_device *dev, int iface, int obj) in c_can_inval_msg_object() argument
295 priv->write_reg(priv, C_CAN_IFACE(ARB1_REG, iface), 0); in c_can_inval_msg_object()
296 priv->write_reg(priv, C_CAN_IFACE(ARB2_REG, iface), 0); in c_can_inval_msg_object()
297 c_can_inval_tx_object(dev, iface, obj); in c_can_inval_msg_object()
300 static void c_can_setup_tx_object(struct net_device *dev, int iface, in c_can_setup_tx_object() argument
326 c_can_inval_msg_object(dev, iface, obj); in c_can_setup_tx_object()
330 priv->write_reg32(priv, C_CAN_IFACE(ARB1_REG, iface), arb); in c_can_setup_tx_object()
332 priv->write_reg(priv, C_CAN_IFACE(MSGCTRL_REG, iface), ctrl); in c_can_setup_tx_object()
335 u32 data = 0, dreg = C_CAN_IFACE(DATA1_REG, iface); in c_can_setup_tx_object()
347 C_CAN_IFACE(DATA1_REG, iface) + i / 2, in c_can_setup_tx_object()
355 int iface) in c_can_activate_all_lower_rx_msg_obj() argument
360 c_can_object_get(dev, iface, i, IF_COMM_CLR_NEWDAT); in c_can_activate_all_lower_rx_msg_obj()
364 int iface, int objno, u32 ctrl) in c_can_handle_lost_msg_obj() argument
372 priv->write_reg(priv, C_CAN_IFACE(MSGCTRL_REG, iface), ctrl); in c_can_handle_lost_msg_obj()
373 c_can_object_put(dev, iface, objno, IF_COMM_CONTROL); in c_can_handle_lost_msg_obj()
390 static int c_can_read_msg_object(struct net_device *dev, int iface, u32 ctrl) in c_can_read_msg_object() argument
406 arb = priv->read_reg32(priv, C_CAN_IFACE(ARB1_REG, iface)); in c_can_read_msg_object()
416 int i, dreg = C_CAN_IFACE(DATA1_REG, iface); in c_can_read_msg_object()
442 static void c_can_setup_receive_object(struct net_device *dev, int iface, in c_can_setup_receive_object() argument
448 priv->write_reg32(priv, C_CAN_IFACE(MASK1_REG, iface), mask); in c_can_setup_receive_object()
451 priv->write_reg32(priv, C_CAN_IFACE(ARB1_REG, iface), id); in c_can_setup_receive_object()
453 priv->write_reg(priv, C_CAN_IFACE(MSGCTRL_REG, iface), mcont); in c_can_setup_receive_object()
454 c_can_object_put(dev, iface, obj, IF_COMM_RCV_SETUP); in c_can_setup_receive_object()