Lines Matching refs:macio
144 struct macio_chip* macio; in simple_feature_tweak() local
147 macio = macio_find(node, type); in simple_feature_tweak()
148 if (!macio) in simple_feature_tweak()
166 struct macio_chip* macio; in ohare_htw_scc_enable() local
173 macio = macio_find(node, 0); in ohare_htw_scc_enable()
174 if (!macio) in ohare_htw_scc_enable()
183 htw = (macio->type == macio_heathrow || macio->type == macio_paddington in ohare_htw_scc_enable()
184 || macio->type == macio_gatwick); in ohare_htw_scc_enable()
225 macio->flags |= chan_mask; in ohare_htw_scc_enable()
228 macio->flags |= MACIO_FLAG_SCC_LOCKED; in ohare_htw_scc_enable()
230 if (macio->flags & MACIO_FLAG_SCC_LOCKED) in ohare_htw_scc_enable()
245 macio->flags &= ~(chan_mask); in ohare_htw_scc_enable()
305 struct macio_chip* macio = &macio_chips[0]; in ohare_sleep_state() local
321 struct macio_chip* macio; in heathrow_modem_enable() local
325 macio = macio_find(node, macio_unknown); in heathrow_modem_enable()
326 if (!macio) in heathrow_modem_enable()
374 struct macio_chip* macio; in heathrow_mesh_enable() local
377 macio = macio_find(node, macio_unknown); in heathrow_mesh_enable()
378 if (!macio) in heathrow_mesh_enable()
433 struct macio_chip* macio; in heathrow_bmac_enable() local
436 macio = macio_find(node, 0); in heathrow_bmac_enable()
437 if (!macio) in heathrow_bmac_enable()
462 struct macio_chip* macio; in heathrow_sound_enable() local
472 macio = macio_find(node, 0); in heathrow_sound_enable()
473 if (!macio) in heathrow_sound_enable()
495 static void dbdma_save(struct macio_chip *macio, struct dbdma_regs *save) in dbdma_save() argument
502 (macio->base + ((0x8000+i*0x100)>>2)); in dbdma_save()
511 static void dbdma_restore(struct macio_chip *macio, struct dbdma_regs *save) in dbdma_restore() argument
518 (macio->base + ((0x8000+i*0x100)>>2)); in dbdma_restore()
530 static void heathrow_sleep(struct macio_chip *macio, int secondary) in heathrow_sleep() argument
533 dbdma_save(macio, save_alt_dbdma); in heathrow_sleep()
537 dbdma_save(macio, save_dbdma); in heathrow_sleep()
562 static void heathrow_wakeup(struct macio_chip *macio, int secondary) in heathrow_wakeup() argument
571 dbdma_restore(macio, save_alt_dbdma); in heathrow_wakeup()
582 dbdma_restore(macio, save_dbdma); in heathrow_wakeup()
605 struct macio_chip* macio; in core99_scc_enable() local
610 macio = macio_find(node, 0); in core99_scc_enable()
611 if (!macio) in core99_scc_enable()
654 macio->flags |= chan_mask; in core99_scc_enable()
673 macio->flags |= MACIO_FLAG_SCC_LOCKED; in core99_scc_enable()
675 if (macio->flags & MACIO_FLAG_SCC_LOCKED) in core99_scc_enable()
696 macio->flags &= ~(chan_mask); in core99_scc_enable()
706 struct macio_chip* macio; in core99_modem_enable() local
716 macio = macio_find(node, 0); in core99_modem_enable()
717 if (!macio) in core99_modem_enable()
758 struct macio_chip* macio; in pangea_modem_enable() local
769 macio = macio_find(node, 0); in pangea_modem_enable()
770 if (!macio) in pangea_modem_enable()
907 struct macio_chip *macio; in core99_gmac_phy_reset() local
909 macio = &macio_chips[0]; in core99_gmac_phy_reset()
910 if (macio->type != macio_keylargo && macio->type != macio_pangea && in core99_gmac_phy_reset()
911 macio->type != macio_intrepid) in core99_gmac_phy_reset()
931 struct macio_chip* macio; in core99_sound_chip_enable() local
934 macio = macio_find(node, 0); in core99_sound_chip_enable()
935 if (!macio) in core99_sound_chip_enable()
961 struct macio_chip* macio; in core99_airport_enable() local
965 macio = macio_find(node, 0); in core99_airport_enable()
966 if (!macio) in core99_airport_enable()
972 if (node != macio->of_node && in core99_airport_enable()
973 (!node->parent || node->parent != macio->of_node)) in core99_airport_enable()
975 state = (macio->flags & MACIO_FLAG_AIRPORT_ON) != 0; in core99_airport_enable()
1026 macio->flags |= MACIO_FLAG_AIRPORT_ON; in core99_airport_enable()
1039 macio->flags &= ~MACIO_FLAG_AIRPORT_ON; in core99_airport_enable()
1050 struct macio_chip *macio; in core99_reset_cpu() local
1058 macio = &macio_chips[0]; in core99_reset_cpu()
1059 if (macio->type != macio_keylargo) in core99_reset_cpu()
1094 struct macio_chip *macio; in core99_usb_enable() local
1100 macio = &macio_chips[0]; in core99_usb_enable()
1101 if (macio->type != macio_keylargo && macio->type != macio_pangea && in core99_usb_enable()
1102 macio->type != macio_intrepid) in core99_usb_enable()
1164 if (macio->type == macio_intrepid) { in core99_usb_enable()
1219 if (macio->type != macio_intrepid) in core99_usb_enable()
1226 if (macio->type != macio_intrepid) in core99_usb_enable()
1248 struct macio_chip *macio; in core99_firewire_enable() local
1250 macio = &macio_chips[0]; in core99_firewire_enable()
1251 if (macio->type != macio_keylargo && macio->type != macio_pangea && in core99_firewire_enable()
1252 macio->type != macio_intrepid) in core99_firewire_enable()
1254 if (!(macio->flags & MACIO_FLAG_FW_SUPPORTED)) in core99_firewire_enable()
1275 struct macio_chip *macio; in core99_firewire_cable_power() local
1280 macio = &macio_chips[0]; in core99_firewire_cable_power()
1281 if (macio->type != macio_keylargo && macio->type != macio_pangea && in core99_firewire_cable_power()
1282 macio->type != macio_intrepid) in core99_firewire_cable_power()
1284 if (!(macio->flags & MACIO_FLAG_FW_SUPPORTED)) in core99_firewire_cable_power()
1326 struct macio_chip *macio = &macio_chips[0]; in core99_read_gpio() local
1335 struct macio_chip *macio = &macio_chips[0]; in core99_write_gpio() local
1344 struct macio_chip *macio = &macio_chips[0]; in g5_gmac_enable() local
1369 struct macio_chip *macio = &macio_chips[0]; in g5_fw_enable() local
1415 struct macio_chip *macio = &macio_chips[0]; in g5_eth_phy_reset() local
1446 struct macio_chip *macio = &macio_chips[0]; in g5_i2s_enable() local
1467 if (macio->type != macio_keylargo2 && macio->type != macio_shasta) in g5_i2s_enable()
1477 if (macio->type == macio_shasta) in g5_i2s_enable()
1505 struct macio_chip *macio; in g5_reset_cpu() local
1509 macio = &macio_chips[0]; in g5_reset_cpu()
1510 if (macio->type != macio_keylargo2 && macio->type != macio_shasta) in g5_reset_cpu()
1564 static void keylargo_shutdown(struct macio_chip *macio, int sleep_mode) in keylargo_shutdown() argument
1597 if (macio->rev >= 2) { in keylargo_shutdown()
1617 static void pangea_shutdown(struct macio_chip *macio, int sleep_mode) in pangea_shutdown() argument
1650 static void intrepid_shutdown(struct macio_chip *macio, int sleep_mode) in intrepid_shutdown() argument
1681 struct macio_chip *macio; in core99_sleep() local
1684 macio = &macio_chips[0]; in core99_sleep()
1685 if (macio->type != macio_keylargo && macio->type != macio_pangea && in core99_sleep()
1686 macio->type != macio_intrepid) in core99_sleep()
1692 if (macio->flags & MACIO_FLAG_AIRPORT_ON) in core99_sleep()
1693 core99_airport_enable(macio->of_node, 0, 0); in core99_sleep()
1696 if (macio->flags & MACIO_FLAG_FW_SUPPORTED) { in core99_sleep()
1702 if (macio->type == macio_keylargo) in core99_sleep()
1703 core99_modem_enable(macio->of_node, 0, 0); in core99_sleep()
1705 pangea_modem_enable(macio->of_node, 0, 0); in core99_sleep()
1708 core99_sound_chip_enable(macio->of_node, 0, 0); in core99_sleep()
1723 if (macio->type == macio_keylargo) in core99_sleep()
1730 if (macio->type == macio_pangea || macio->type == macio_intrepid) in core99_sleep()
1734 dbdma_save(macio, save_dbdma); in core99_sleep()
1739 if (macio->type == macio_pangea) in core99_sleep()
1740 pangea_shutdown(macio, 1); in core99_sleep()
1741 else if (macio->type == macio_intrepid) in core99_sleep()
1742 intrepid_shutdown(macio, 1); in core99_sleep()
1743 else if (macio->type == macio_keylargo) in core99_sleep()
1744 keylargo_shutdown(macio, 1); in core99_sleep()
1774 struct macio_chip *macio; in core99_wake_up() local
1777 macio = &macio_chips[0]; in core99_wake_up()
1778 if (macio->type != macio_keylargo && macio->type != macio_pangea && in core99_wake_up()
1779 macio->type != macio_intrepid) in core99_wake_up()
1794 if (macio->type == macio_keylargo) { in core99_wake_up()
1808 if (macio->type == macio_pangea || macio->type == macio_intrepid) { in core99_wake_up()
1813 dbdma_restore(macio, save_dbdma); in core99_wake_up()
2417 struct macio_chip *macio = &macio_chips[0]; in probe_motherboard() local
2443 switch(macio->type) { in probe_motherboard()
2777 struct macio_chip *macio = &macio_chips[0]; in set_initial_features() local
2785 struct macio_chip *macio = &macio_chips[1]; in set_initial_features() local
2883 struct macio_chip *macio = &macio_chips[0]; in set_initial_features() local