Lines Matching refs:readl

562 	if ((readl(&ap->regs->HostCtrl) >> 28) == 4) {  in acenic_probe_one()
614 writel(readl(&regs->CpuCtrl) | CPU_HALT, &regs->CpuCtrl); in acenic_remove_one()
616 writel(readl(&regs->CpuBCtrl) | CPU_HALT, &regs->CpuBCtrl); in acenic_remove_one()
622 readl(&regs->CpuCtrl); /* flush */ in acenic_remove_one()
851 idx = readl(&regs->CmdPrd); in ace_issue_cmd()
884 readl(&regs->HostCtrl); /* PCI write posting */ in ace_init()
901 readl(&regs->HostCtrl); /* PCI write posting */ in ace_init()
906 writel(readl(&regs->CpuCtrl) | CPU_HALT, &regs->CpuCtrl); in ace_init()
907 readl(&regs->CpuCtrl); /* PCI write posting */ in ace_init()
910 tig_ver = readl(&regs->HostCtrl) >> 28; in ace_init()
928 writel(readl(&regs->CpuBCtrl) | CPU_HALT, &regs->CpuBCtrl); in ace_init()
929 readl(&regs->CpuBCtrl); /* PCI write posting */ in ace_init()
961 readl(&regs->ModeStat); /* PCI write posting */ in ace_init()
1021 pci_state = readl(&regs->PciState); in ace_init()
1446 writel(readl(&regs->CpuCtrl) & ~(CPU_HALT|CPU_TRACE), &regs->CpuCtrl); in ace_init()
1447 readl(&regs->CpuCtrl); in ace_init()
1460 writel(readl(&regs->CpuCtrl) | CPU_HALT, &regs->CpuCtrl); in ace_init()
1461 readl(&regs->CpuCtrl); in ace_init()
1473 writel(readl(&regs->CpuBCtrl) | CPU_HALT, in ace_init()
1476 readl(&regs->Mb0Lo); in ace_init()
1557 dev->name, (unsigned int)readl(&regs->HostCtrl)); in ace_watchdog()
1835 u32 state = readl(&ap->regs->GigLnkState); in ace_handle_event()
2117 if (!(readl(&regs->HostCtrl) & IN_INT)) in ace_interrupt()
2129 readl(&regs->Mb0Lo); in ace_interrupt()
2159 evtcsm = readl(&regs->EvtCsm); in ace_interrupt()
2599 link = readl(&regs->GigLnkState); in ace_get_settings()
2603 link = readl(&regs->FastLnkState); in ace_get_settings()
2625 ecmd->trace = readl(&regs->TuneTrace); in ace_get_settings()
2627 ecmd->txcoal = readl(&regs->TuneTxCoalTicks); in ace_get_settings()
2628 ecmd->rxcoal = readl(&regs->TuneRxCoalTicks); in ace_get_settings()
2630 ecmd->maxtxpkt = readl(&regs->TuneMaxTxDesc); in ace_get_settings()
2631 ecmd->maxrxpkt = readl(&regs->TuneMaxRxDesc); in ace_get_settings()
2642 link = readl(&regs->GigLnkState); in ace_set_settings()
2646 link = readl(&regs->FastLnkState); in ace_set_settings()
2805 dev->stats.rx_missed_errors = readl(&mac_stats->drop_space); in ace_get_stats()
2806 dev->stats.multicast = readl(&mac_stats->kept_mc); in ace_get_stats()
2807 dev->stats.collisions = readl(&mac_stats->coll); in ace_get_stats()
2881 if (!(readl(&regs->CpuCtrl) & CPU_HALTED)) { in ace_load_firmware()
2955 readl(&regs->LocalCtrl); in eeprom_start()
2957 local = readl(&regs->LocalCtrl); in eeprom_start()
2960 readl(&regs->LocalCtrl); in eeprom_start()
2965 readl(&regs->LocalCtrl); in eeprom_start()
2970 readl(&regs->LocalCtrl); in eeprom_start()
2975 readl(&regs->LocalCtrl); in eeprom_start()
2986 local = readl(&regs->LocalCtrl); in eeprom_prep()
2990 readl(&regs->LocalCtrl); in eeprom_prep()
3000 readl(&regs->LocalCtrl); in eeprom_prep()
3006 readl(&regs->LocalCtrl); in eeprom_prep()
3011 readl(&regs->LocalCtrl); in eeprom_prep()
3022 local = readl(&regs->LocalCtrl); in eeprom_check_ack()
3025 readl(&regs->LocalCtrl); in eeprom_check_ack()
3030 readl(&regs->LocalCtrl); in eeprom_check_ack()
3034 state = (readl(&regs->LocalCtrl) & EEPROM_DATA_IN) != 0; in eeprom_check_ack()
3037 writel(readl(&regs->LocalCtrl) & ~EEPROM_CLK_OUT, &regs->LocalCtrl); in eeprom_check_ack()
3038 readl(&regs->LocalCtrl); in eeprom_check_ack()
3050 local = readl(&regs->LocalCtrl); in eeprom_stop()
3053 readl(&regs->LocalCtrl); in eeprom_stop()
3058 readl(&regs->LocalCtrl); in eeprom_stop()
3063 readl(&regs->LocalCtrl); in eeprom_stop()
3068 readl(&regs->LocalCtrl); in eeprom_stop()
3134 local = readl(&regs->LocalCtrl); in read_eeprom_byte()
3137 readl(&regs->LocalCtrl); in read_eeprom_byte()
3142 readl(&regs->LocalCtrl); in read_eeprom_byte()
3147 ((readl(&regs->LocalCtrl) & EEPROM_DATA_IN) != 0); in read_eeprom_byte()
3150 local = readl(&regs->LocalCtrl); in read_eeprom_byte()
3153 readl(&regs->LocalCtrl); in read_eeprom_byte()
3159 readl(&regs->LocalCtrl); in read_eeprom_byte()
3167 readl(&regs->LocalCtrl); in read_eeprom_byte()
3170 writel(readl(&regs->LocalCtrl) | EEPROM_CLK_OUT, &regs->LocalCtrl); in read_eeprom_byte()
3171 readl(&regs->LocalCtrl); in read_eeprom_byte()
3173 writel(readl(&regs->LocalCtrl) & ~EEPROM_CLK_OUT, &regs->LocalCtrl); in read_eeprom_byte()
3174 readl(&regs->LocalCtrl); in read_eeprom_byte()