Lines Matching refs:macio
138 struct macio_chip* macio; in simple_feature_tweak() local
141 macio = macio_find(node, type); in simple_feature_tweak()
142 if (!macio) in simple_feature_tweak()
160 struct macio_chip* macio; in ohare_htw_scc_enable() local
167 macio = macio_find(node, 0); in ohare_htw_scc_enable()
168 if (!macio) in ohare_htw_scc_enable()
177 htw = (macio->type == macio_heathrow || macio->type == macio_paddington in ohare_htw_scc_enable()
178 || macio->type == macio_gatwick); in ohare_htw_scc_enable()
219 macio->flags |= chan_mask; in ohare_htw_scc_enable()
222 macio->flags |= MACIO_FLAG_SCC_LOCKED; in ohare_htw_scc_enable()
224 if (macio->flags & MACIO_FLAG_SCC_LOCKED) in ohare_htw_scc_enable()
239 macio->flags &= ~(chan_mask); in ohare_htw_scc_enable()
299 struct macio_chip* macio = &macio_chips[0]; in ohare_sleep_state() local
315 struct macio_chip* macio; in heathrow_modem_enable() local
319 macio = macio_find(node, macio_unknown); in heathrow_modem_enable()
320 if (!macio) in heathrow_modem_enable()
368 struct macio_chip* macio; in heathrow_mesh_enable() local
371 macio = macio_find(node, macio_unknown); in heathrow_mesh_enable()
372 if (!macio) in heathrow_mesh_enable()
427 struct macio_chip* macio; in heathrow_bmac_enable() local
430 macio = macio_find(node, 0); in heathrow_bmac_enable()
431 if (!macio) in heathrow_bmac_enable()
456 struct macio_chip* macio; in heathrow_sound_enable() local
466 macio = macio_find(node, 0); in heathrow_sound_enable()
467 if (!macio) in heathrow_sound_enable()
489 static void dbdma_save(struct macio_chip *macio, struct dbdma_regs *save) in dbdma_save() argument
496 (macio->base + ((0x8000+i*0x100)>>2)); in dbdma_save()
505 static void dbdma_restore(struct macio_chip *macio, struct dbdma_regs *save) in dbdma_restore() argument
512 (macio->base + ((0x8000+i*0x100)>>2)); in dbdma_restore()
524 static void heathrow_sleep(struct macio_chip *macio, int secondary) in heathrow_sleep() argument
527 dbdma_save(macio, save_alt_dbdma); in heathrow_sleep()
531 dbdma_save(macio, save_dbdma); in heathrow_sleep()
556 static void heathrow_wakeup(struct macio_chip *macio, int secondary) in heathrow_wakeup() argument
565 dbdma_restore(macio, save_alt_dbdma); in heathrow_wakeup()
576 dbdma_restore(macio, save_dbdma); in heathrow_wakeup()
599 struct macio_chip* macio; in core99_scc_enable() local
604 macio = macio_find(node, 0); in core99_scc_enable()
605 if (!macio) in core99_scc_enable()
648 macio->flags |= chan_mask; in core99_scc_enable()
667 macio->flags |= MACIO_FLAG_SCC_LOCKED; in core99_scc_enable()
669 if (macio->flags & MACIO_FLAG_SCC_LOCKED) in core99_scc_enable()
690 macio->flags &= ~(chan_mask); in core99_scc_enable()
700 struct macio_chip* macio; in core99_modem_enable() local
710 macio = macio_find(node, 0); in core99_modem_enable()
711 if (!macio) in core99_modem_enable()
752 struct macio_chip* macio; in pangea_modem_enable() local
763 macio = macio_find(node, 0); in pangea_modem_enable()
764 if (!macio) in pangea_modem_enable()
901 struct macio_chip *macio; in core99_gmac_phy_reset() local
903 macio = &macio_chips[0]; in core99_gmac_phy_reset()
904 if (macio->type != macio_keylargo && macio->type != macio_pangea && in core99_gmac_phy_reset()
905 macio->type != macio_intrepid) in core99_gmac_phy_reset()
925 struct macio_chip* macio; in core99_sound_chip_enable() local
928 macio = macio_find(node, 0); in core99_sound_chip_enable()
929 if (!macio) in core99_sound_chip_enable()
955 struct macio_chip* macio; in core99_airport_enable() local
959 macio = macio_find(node, 0); in core99_airport_enable()
960 if (!macio) in core99_airport_enable()
966 if (node != macio->of_node && in core99_airport_enable()
967 (!node->parent || node->parent != macio->of_node)) in core99_airport_enable()
969 state = (macio->flags & MACIO_FLAG_AIRPORT_ON) != 0; in core99_airport_enable()
1020 macio->flags |= MACIO_FLAG_AIRPORT_ON; in core99_airport_enable()
1033 macio->flags &= ~MACIO_FLAG_AIRPORT_ON; in core99_airport_enable()
1044 struct macio_chip *macio; in core99_reset_cpu() local
1051 macio = &macio_chips[0]; in core99_reset_cpu()
1052 if (macio->type != macio_keylargo) in core99_reset_cpu()
1083 struct macio_chip *macio; in core99_usb_enable() local
1089 macio = &macio_chips[0]; in core99_usb_enable()
1090 if (macio->type != macio_keylargo && macio->type != macio_pangea && in core99_usb_enable()
1091 macio->type != macio_intrepid) in core99_usb_enable()
1153 if (macio->type == macio_intrepid) { in core99_usb_enable()
1208 if (macio->type != macio_intrepid) in core99_usb_enable()
1215 if (macio->type != macio_intrepid) in core99_usb_enable()
1237 struct macio_chip *macio; in core99_firewire_enable() local
1239 macio = &macio_chips[0]; in core99_firewire_enable()
1240 if (macio->type != macio_keylargo && macio->type != macio_pangea && in core99_firewire_enable()
1241 macio->type != macio_intrepid) in core99_firewire_enable()
1243 if (!(macio->flags & MACIO_FLAG_FW_SUPPORTED)) in core99_firewire_enable()
1264 struct macio_chip *macio; in core99_firewire_cable_power() local
1269 macio = &macio_chips[0]; in core99_firewire_cable_power()
1270 if (macio->type != macio_keylargo && macio->type != macio_pangea && in core99_firewire_cable_power()
1271 macio->type != macio_intrepid) in core99_firewire_cable_power()
1273 if (!(macio->flags & MACIO_FLAG_FW_SUPPORTED)) in core99_firewire_cable_power()
1315 struct macio_chip *macio = &macio_chips[0]; in core99_read_gpio() local
1324 struct macio_chip *macio = &macio_chips[0]; in core99_write_gpio() local
1333 struct macio_chip *macio = &macio_chips[0]; in g5_gmac_enable() local
1358 struct macio_chip *macio = &macio_chips[0]; in g5_fw_enable() local
1403 struct macio_chip *macio = &macio_chips[0]; in g5_eth_phy_reset() local
1434 struct macio_chip *macio = &macio_chips[0]; in g5_i2s_enable() local
1455 if (macio->type != macio_keylargo2 && macio->type != macio_shasta) in g5_i2s_enable()
1465 if (macio->type == macio_shasta) in g5_i2s_enable()
1494 struct macio_chip *macio; in g5_reset_cpu() local
1497 macio = &macio_chips[0]; in g5_reset_cpu()
1498 if (macio->type != macio_keylargo2 && macio->type != macio_shasta) in g5_reset_cpu()
1548 static void keylargo_shutdown(struct macio_chip *macio, int sleep_mode) in keylargo_shutdown() argument
1581 if (macio->rev >= 2) { in keylargo_shutdown()
1601 static void pangea_shutdown(struct macio_chip *macio, int sleep_mode) in pangea_shutdown() argument
1634 static void intrepid_shutdown(struct macio_chip *macio, int sleep_mode) in intrepid_shutdown() argument
1665 struct macio_chip *macio; in core99_sleep() local
1668 macio = &macio_chips[0]; in core99_sleep()
1669 if (macio->type != macio_keylargo && macio->type != macio_pangea && in core99_sleep()
1670 macio->type != macio_intrepid) in core99_sleep()
1676 if (macio->flags & MACIO_FLAG_AIRPORT_ON) in core99_sleep()
1677 core99_airport_enable(macio->of_node, 0, 0); in core99_sleep()
1680 if (macio->flags & MACIO_FLAG_FW_SUPPORTED) { in core99_sleep()
1686 if (macio->type == macio_keylargo) in core99_sleep()
1687 core99_modem_enable(macio->of_node, 0, 0); in core99_sleep()
1689 pangea_modem_enable(macio->of_node, 0, 0); in core99_sleep()
1692 core99_sound_chip_enable(macio->of_node, 0, 0); in core99_sleep()
1707 if (macio->type == macio_keylargo) in core99_sleep()
1714 if (macio->type == macio_pangea || macio->type == macio_intrepid) in core99_sleep()
1718 dbdma_save(macio, save_dbdma); in core99_sleep()
1723 if (macio->type == macio_pangea) in core99_sleep()
1724 pangea_shutdown(macio, 1); in core99_sleep()
1725 else if (macio->type == macio_intrepid) in core99_sleep()
1726 intrepid_shutdown(macio, 1); in core99_sleep()
1727 else if (macio->type == macio_keylargo) in core99_sleep()
1728 keylargo_shutdown(macio, 1); in core99_sleep()
1758 struct macio_chip *macio; in core99_wake_up() local
1761 macio = &macio_chips[0]; in core99_wake_up()
1762 if (macio->type != macio_keylargo && macio->type != macio_pangea && in core99_wake_up()
1763 macio->type != macio_intrepid) in core99_wake_up()
1778 if (macio->type == macio_keylargo) { in core99_wake_up()
1792 if (macio->type == macio_pangea || macio->type == macio_intrepid) { in core99_wake_up()
1797 dbdma_restore(macio, save_dbdma); in core99_wake_up()
2401 struct macio_chip *macio = &macio_chips[0]; in probe_motherboard() local
2427 switch(macio->type) { in probe_motherboard()
2761 struct macio_chip *macio = &macio_chips[0]; in set_initial_features() local
2769 struct macio_chip *macio = &macio_chips[1]; in set_initial_features() local
2866 struct macio_chip *macio = &macio_chips[0]; in set_initial_features() local