• Home
  • Raw
  • Download

Lines Matching refs:mo

118 	unsigned int o, mo;  in enable_all_objs()  local
122 mo = obj2msgobj(o); in enable_all_objs()
133 "RX data, RTR, SFF and EFF\n", mo); in enable_all_objs()
137 mo, obj_flags & CC770_OBJ_FLAG_RTR ? in enable_all_objs()
150 cc770_write_reg(priv, msgobj[mo].config, msgcfg); in enable_all_objs()
151 cc770_write_reg(priv, msgobj[mo].ctrl0, in enable_all_objs()
156 cc770_write_reg(priv, msgobj[mo].ctrl1, in enable_all_objs()
160 cc770_write_reg(priv, msgobj[mo].ctrl1, in enable_all_objs()
165 "TX data, RTR, SFF and EFF\n", mo); in enable_all_objs()
167 cc770_write_reg(priv, msgobj[mo].ctrl1, in enable_all_objs()
170 cc770_write_reg(priv, msgobj[mo].ctrl0, in enable_all_objs()
179 int o, mo; in disable_all_objs() local
182 mo = obj2msgobj(o); 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()
196 cc770_write_reg(priv, msgobj[mo].ctrl1, in disable_all_objs()
199 cc770_write_reg(priv, msgobj[mo].ctrl0, in disable_all_objs()
249 int mo, id, data; in chipset_init() local
270 for (mo = MSGOBJ_FIRST; mo <= MSGOBJ_LAST; mo++) { in chipset_init()
271 cc770_write_reg(priv, msgobj[mo].ctrl0, in chipset_init()
274 cc770_write_reg(priv, msgobj[mo].ctrl0, in chipset_init()
277 cc770_write_reg(priv, msgobj[mo].ctrl1, in chipset_init()
281 cc770_write_reg(priv, msgobj[mo].data[data], 0); in chipset_init()
283 cc770_write_reg(priv, msgobj[mo].id[id], 0); in chipset_init()
284 cc770_write_reg(priv, msgobj[mo].config, 0); in chipset_init()
393 static void cc770_tx(struct net_device *dev, int mo) in cc770_tx() argument
405 cc770_write_reg(priv, msgobj[mo].ctrl0, in cc770_tx()
407 cc770_write_reg(priv, msgobj[mo].ctrl1, in cc770_tx()
412 cc770_write_reg(priv, msgobj[mo].config, in cc770_tx()
414 cc770_write_reg(priv, msgobj[mo].id[3], id << 3); in cc770_tx()
415 cc770_write_reg(priv, msgobj[mo].id[2], id >> 5); in cc770_tx()
416 cc770_write_reg(priv, msgobj[mo].id[1], id >> 13); in cc770_tx()
417 cc770_write_reg(priv, msgobj[mo].id[0], id >> 21); in cc770_tx()
420 cc770_write_reg(priv, msgobj[mo].config, (dlc << 4) | rtr); in cc770_tx()
421 cc770_write_reg(priv, msgobj[mo].id[0], id >> 3); in cc770_tx()
422 cc770_write_reg(priv, msgobj[mo].id[1], id << 5); in cc770_tx()
426 cc770_write_reg(priv, msgobj[mo].data[i], cf->data[i]); in cc770_tx()
428 cc770_write_reg(priv, msgobj[mo].ctrl1, in cc770_tx()
430 cc770_write_reg(priv, msgobj[mo].ctrl0, in cc770_tx()
437 unsigned int mo = obj2msgobj(CC770_OBJ_TX); in cc770_start_xmit() local
445 msgobj[mo].ctrl1) & TXRQST_UNC) == TXRQST_SET) { in cc770_start_xmit()
451 cc770_tx(dev, mo); in cc770_start_xmit()
456 static void cc770_rx(struct net_device *dev, unsigned int mo, u8 ctrl1) in cc770_rx() argument
470 config = cc770_read_reg(priv, msgobj[mo].config); in cc770_rx()
484 id = cc770_read_reg(priv, msgobj[mo].id[3]); in cc770_rx()
485 id |= cc770_read_reg(priv, msgobj[mo].id[2]) << 8; in cc770_rx()
486 id |= cc770_read_reg(priv, msgobj[mo].id[1]) << 16; in cc770_rx()
487 id |= cc770_read_reg(priv, msgobj[mo].id[0]) << 24; in cc770_rx()
491 id = cc770_read_reg(priv, msgobj[mo].id[1]); in cc770_rx()
492 id |= cc770_read_reg(priv, msgobj[mo].id[0]) << 8; in cc770_rx()
499 cf->data[i] = cc770_read_reg(priv, msgobj[mo].data[i]); in cc770_rx()
611 unsigned int mo = obj2msgobj(o); in cc770_rx_interrupt() local
616 ctrl1 = cc770_read_reg(priv, msgobj[mo].ctrl1); in cc770_rx_interrupt()
621 if (!(cc770_read_reg(priv, msgobj[mo].ctrl0) & in cc770_rx_interrupt()
633 if (mo < MSGOBJ_LAST) in cc770_rx_interrupt()
634 cc770_write_reg(priv, msgobj[mo].ctrl1, in cc770_rx_interrupt()
637 cc770_rx(dev, mo, ctrl1); in cc770_rx_interrupt()
639 cc770_write_reg(priv, msgobj[mo].ctrl0, in cc770_rx_interrupt()
642 cc770_write_reg(priv, msgobj[mo].ctrl1, in cc770_rx_interrupt()
651 unsigned int mo = obj2msgobj(o); in cc770_rtr_interrupt() local
656 ctrl0 = cc770_read_reg(priv, msgobj[mo].ctrl0); in cc770_rtr_interrupt()
660 ctrl1 = cc770_read_reg(priv, msgobj[mo].ctrl1); in cc770_rtr_interrupt()
661 cc770_rx(dev, mo, ctrl1); in cc770_rtr_interrupt()
663 cc770_write_reg(priv, msgobj[mo].ctrl0, in cc770_rtr_interrupt()
666 cc770_write_reg(priv, msgobj[mo].ctrl1, in cc770_rtr_interrupt()
676 unsigned int mo = obj2msgobj(o); in cc770_tx_interrupt() local
680 ctrl1 = cc770_read_reg(priv, msgobj[mo].ctrl1); in cc770_tx_interrupt()
682 cc770_write_reg(priv, msgobj[mo].ctrl0, in cc770_tx_interrupt()
684 cc770_write_reg(priv, msgobj[mo].ctrl1, in cc770_tx_interrupt()
704 cc770_rx(dev, mo, ctrl1); in cc770_tx_interrupt()
705 cc770_tx(dev, mo); in cc770_tx_interrupt()