Lines Matching full:mo

111 	unsigned int o, mo;  in enable_all_objs()  local
115 mo = obj2msgobj(o); in enable_all_objs()
126 "RX data, RTR, SFF and EFF\n", mo); in enable_all_objs()
130 mo, obj_flags & CC770_OBJ_FLAG_RTR ? in enable_all_objs()
143 cc770_write_reg(priv, msgobj[mo].config, msgcfg); in enable_all_objs()
144 cc770_write_reg(priv, msgobj[mo].ctrl0, in enable_all_objs()
149 cc770_write_reg(priv, msgobj[mo].ctrl1, in enable_all_objs()
153 cc770_write_reg(priv, msgobj[mo].ctrl1, in enable_all_objs()
158 "TX data, RTR, SFF and EFF\n", mo); in enable_all_objs()
160 cc770_write_reg(priv, msgobj[mo].ctrl1, in enable_all_objs()
163 cc770_write_reg(priv, msgobj[mo].ctrl0, in enable_all_objs()
172 int o, mo; in disable_all_objs() local
175 mo = obj2msgobj(o); in disable_all_objs()
181 cc770_write_reg(priv, msgobj[mo].ctrl1, in disable_all_objs()
184 cc770_write_reg(priv, msgobj[mo].ctrl0, in disable_all_objs()
189 cc770_write_reg(priv, msgobj[mo].ctrl1, in disable_all_objs()
192 cc770_write_reg(priv, msgobj[mo].ctrl0, in disable_all_objs()
242 int mo, id, data; in chipset_init() local
263 for (mo = MSGOBJ_FIRST; mo <= MSGOBJ_LAST; mo++) { in chipset_init()
264 cc770_write_reg(priv, msgobj[mo].ctrl0, in chipset_init()
267 cc770_write_reg(priv, msgobj[mo].ctrl0, in chipset_init()
270 cc770_write_reg(priv, msgobj[mo].ctrl1, in chipset_init()
274 cc770_write_reg(priv, msgobj[mo].data[data], 0); in chipset_init()
276 cc770_write_reg(priv, msgobj[mo].id[id], 0); in chipset_init()
277 cc770_write_reg(priv, msgobj[mo].config, 0); in chipset_init()
386 static void cc770_tx(struct net_device *dev, int mo) in cc770_tx() argument
398 cc770_write_reg(priv, msgobj[mo].ctrl0, in cc770_tx()
400 cc770_write_reg(priv, msgobj[mo].ctrl1, in cc770_tx()
405 cc770_write_reg(priv, msgobj[mo].config, in cc770_tx()
407 cc770_write_reg(priv, msgobj[mo].id[3], id << 3); in cc770_tx()
408 cc770_write_reg(priv, msgobj[mo].id[2], id >> 5); in cc770_tx()
409 cc770_write_reg(priv, msgobj[mo].id[1], id >> 13); in cc770_tx()
410 cc770_write_reg(priv, msgobj[mo].id[0], id >> 21); in cc770_tx()
413 cc770_write_reg(priv, msgobj[mo].config, (dlc << 4) | rtr); in cc770_tx()
414 cc770_write_reg(priv, msgobj[mo].id[0], id >> 3); in cc770_tx()
415 cc770_write_reg(priv, msgobj[mo].id[1], id << 5); in cc770_tx()
419 cc770_write_reg(priv, msgobj[mo].data[i], cf->data[i]); in cc770_tx()
421 cc770_write_reg(priv, msgobj[mo].ctrl1, in cc770_tx()
423 cc770_write_reg(priv, msgobj[mo].ctrl0, in cc770_tx()
430 unsigned int mo = obj2msgobj(CC770_OBJ_TX); in cc770_start_xmit() local
438 msgobj[mo].ctrl1) & TXRQST_UNC) == TXRQST_SET) { in cc770_start_xmit()
444 cc770_tx(dev, mo); in cc770_start_xmit()
449 static void cc770_rx(struct net_device *dev, unsigned int mo, u8 ctrl1) in cc770_rx() argument
463 config = cc770_read_reg(priv, msgobj[mo].config); in cc770_rx()
477 id = cc770_read_reg(priv, msgobj[mo].id[3]); in cc770_rx()
478 id |= cc770_read_reg(priv, msgobj[mo].id[2]) << 8; in cc770_rx()
479 id |= cc770_read_reg(priv, msgobj[mo].id[1]) << 16; in cc770_rx()
480 id |= cc770_read_reg(priv, msgobj[mo].id[0]) << 24; in cc770_rx()
484 id = cc770_read_reg(priv, msgobj[mo].id[1]); in cc770_rx()
485 id |= cc770_read_reg(priv, msgobj[mo].id[0]) << 8; in cc770_rx()
492 cf->data[i] = cc770_read_reg(priv, msgobj[mo].data[i]); in cc770_rx()
603 unsigned int mo = obj2msgobj(o); in cc770_rx_interrupt() local
608 ctrl1 = cc770_read_reg(priv, msgobj[mo].ctrl1); in cc770_rx_interrupt()
613 if (!(cc770_read_reg(priv, msgobj[mo].ctrl0) & in cc770_rx_interrupt()
625 if (mo < MSGOBJ_LAST) in cc770_rx_interrupt()
626 cc770_write_reg(priv, msgobj[mo].ctrl1, in cc770_rx_interrupt()
629 cc770_rx(dev, mo, ctrl1); in cc770_rx_interrupt()
631 cc770_write_reg(priv, msgobj[mo].ctrl0, in cc770_rx_interrupt()
634 cc770_write_reg(priv, msgobj[mo].ctrl1, in cc770_rx_interrupt()
643 unsigned int mo = obj2msgobj(o); in cc770_rtr_interrupt() local
648 ctrl0 = cc770_read_reg(priv, msgobj[mo].ctrl0); in cc770_rtr_interrupt()
652 ctrl1 = cc770_read_reg(priv, msgobj[mo].ctrl1); in cc770_rtr_interrupt()
653 cc770_rx(dev, mo, ctrl1); in cc770_rtr_interrupt()
655 cc770_write_reg(priv, msgobj[mo].ctrl0, in cc770_rtr_interrupt()
658 cc770_write_reg(priv, msgobj[mo].ctrl1, in cc770_rtr_interrupt()
668 unsigned int mo = obj2msgobj(o); in cc770_tx_interrupt() local
671 ctrl1 = cc770_read_reg(priv, msgobj[mo].ctrl1); in cc770_tx_interrupt()
673 cc770_write_reg(priv, msgobj[mo].ctrl0, in cc770_tx_interrupt()
675 cc770_write_reg(priv, msgobj[mo].ctrl1, in cc770_tx_interrupt()
695 cc770_rx(dev, mo, ctrl1); in cc770_tx_interrupt()
696 cc770_tx(dev, mo); in cc770_tx_interrupt()