Lines Matching refs:mo

110 	unsigned int o, mo;  in enable_all_objs()  local
114 mo = obj2msgobj(o); in enable_all_objs()
125 "RX data, RTR, SFF and EFF\n", mo); in enable_all_objs()
129 mo, obj_flags & CC770_OBJ_FLAG_RTR ? in enable_all_objs()
142 cc770_write_reg(priv, msgobj[mo].config, msgcfg); in enable_all_objs()
143 cc770_write_reg(priv, msgobj[mo].ctrl0, in enable_all_objs()
148 cc770_write_reg(priv, msgobj[mo].ctrl1, in enable_all_objs()
152 cc770_write_reg(priv, msgobj[mo].ctrl1, in enable_all_objs()
157 "TX data, RTR, SFF and EFF\n", mo); in enable_all_objs()
159 cc770_write_reg(priv, msgobj[mo].ctrl1, in enable_all_objs()
162 cc770_write_reg(priv, msgobj[mo].ctrl0, in enable_all_objs()
171 int o, mo; in disable_all_objs() local
174 mo = obj2msgobj(o); in disable_all_objs()
180 cc770_write_reg(priv, msgobj[mo].ctrl1, in disable_all_objs()
183 cc770_write_reg(priv, msgobj[mo].ctrl0, in disable_all_objs()
188 cc770_write_reg(priv, msgobj[mo].ctrl1, in disable_all_objs()
191 cc770_write_reg(priv, msgobj[mo].ctrl0, in disable_all_objs()
241 int mo, id, data; in chipset_init() local
262 for (mo = MSGOBJ_FIRST; mo <= MSGOBJ_LAST; mo++) { in chipset_init()
263 cc770_write_reg(priv, msgobj[mo].ctrl0, in chipset_init()
266 cc770_write_reg(priv, msgobj[mo].ctrl0, in chipset_init()
269 cc770_write_reg(priv, msgobj[mo].ctrl1, in chipset_init()
273 cc770_write_reg(priv, msgobj[mo].data[data], 0); in chipset_init()
275 cc770_write_reg(priv, msgobj[mo].id[id], 0); in chipset_init()
276 cc770_write_reg(priv, msgobj[mo].config, 0); in chipset_init()
385 static void cc770_tx(struct net_device *dev, int mo) in cc770_tx() argument
397 cc770_write_reg(priv, msgobj[mo].ctrl0, in cc770_tx()
399 cc770_write_reg(priv, msgobj[mo].ctrl1, in cc770_tx()
404 cc770_write_reg(priv, msgobj[mo].config, in cc770_tx()
406 cc770_write_reg(priv, msgobj[mo].id[3], id << 3); in cc770_tx()
407 cc770_write_reg(priv, msgobj[mo].id[2], id >> 5); in cc770_tx()
408 cc770_write_reg(priv, msgobj[mo].id[1], id >> 13); in cc770_tx()
409 cc770_write_reg(priv, msgobj[mo].id[0], id >> 21); in cc770_tx()
412 cc770_write_reg(priv, msgobj[mo].config, (dlc << 4) | rtr); in cc770_tx()
413 cc770_write_reg(priv, msgobj[mo].id[0], id >> 3); in cc770_tx()
414 cc770_write_reg(priv, msgobj[mo].id[1], id << 5); in cc770_tx()
418 cc770_write_reg(priv, msgobj[mo].data[i], cf->data[i]); in cc770_tx()
420 cc770_write_reg(priv, msgobj[mo].ctrl1, in cc770_tx()
422 cc770_write_reg(priv, msgobj[mo].ctrl0, in cc770_tx()
429 unsigned int mo = obj2msgobj(CC770_OBJ_TX); in cc770_start_xmit() local
437 msgobj[mo].ctrl1) & TXRQST_UNC) == TXRQST_SET) { in cc770_start_xmit()
443 cc770_tx(dev, mo); in cc770_start_xmit()
448 static void cc770_rx(struct net_device *dev, unsigned int mo, u8 ctrl1) in cc770_rx() argument
462 config = cc770_read_reg(priv, msgobj[mo].config); in cc770_rx()
476 id = cc770_read_reg(priv, msgobj[mo].id[3]); in cc770_rx()
477 id |= cc770_read_reg(priv, msgobj[mo].id[2]) << 8; in cc770_rx()
478 id |= cc770_read_reg(priv, msgobj[mo].id[1]) << 16; in cc770_rx()
479 id |= cc770_read_reg(priv, msgobj[mo].id[0]) << 24; in cc770_rx()
483 id = cc770_read_reg(priv, msgobj[mo].id[1]); in cc770_rx()
484 id |= cc770_read_reg(priv, msgobj[mo].id[0]) << 8; in cc770_rx()
491 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
672 ctrl1 = cc770_read_reg(priv, msgobj[mo].ctrl1); in cc770_tx_interrupt()
674 cc770_write_reg(priv, msgobj[mo].ctrl0, in cc770_tx_interrupt()
676 cc770_write_reg(priv, msgobj[mo].ctrl1, in cc770_tx_interrupt()
696 cc770_rx(dev, mo, ctrl1); in cc770_tx_interrupt()
697 cc770_tx(dev, mo); in cc770_tx_interrupt()