Lines Matching refs:quirks
467 u32 quirks; member
556 if (rp->quirks & rqStatusWBRace) in rhine_get_events()
565 if (rp->quirks & rqStatusWBRace) in rhine_ack_events()
580 if (rp->quirks & rqWOL) { in rhine_power_init()
590 if (rp->quirks & rq6patterns) in rhine_power_init()
595 if (rp->quirks & rq6patterns) in rhine_power_init()
600 if (rp->quirks & rq6patterns) in rhine_power_init()
643 if (rp->quirks & rqForceReset) in rhine_chip_reset()
655 static void enable_mmio(long pioaddr, u32 quirks) in enable_mmio() argument
659 if (quirks & rqNeedEnMMIO) { in enable_mmio()
660 if (quirks & rqRhineI) { in enable_mmio()
674 u32 quirks) in verify_mmio() argument
676 if (quirks & rqNeedEnMMIO) { in verify_mmio()
719 enable_mmio(pioaddr, rp->quirks); in rhine_reload_eeprom()
722 if (rp->quirks & rqWOL) in rhine_reload_eeprom()
871 if (rp->quirks & rqRhineI) in rhine_hw_init()
896 static int rhine_init_one_common(struct device *hwdev, u32 quirks, in rhine_init_one_common() argument
921 rp->quirks = quirks; in rhine_init_one_common()
927 phy_id = rp->quirks & rqIntPHY ? 1 : 0; in rhine_init_one_common()
970 if (rp->quirks & rqRhineI) in rhine_init_one_common()
973 if (rp->quirks & rqMgmt) in rhine_init_one_common()
983 if (rp->quirks & rqRhineI) in rhine_init_one_common()
985 else if (rp->quirks & rqStatusWBRace) in rhine_init_one_common()
987 else if (rp->quirks & rqMgmt) in rhine_init_one_common()
1045 u32 quirks = rqNeedEnMMIO; in rhine_init_one_pci() local
1047 u32 quirks = 0; in rhine_init_one_pci() local
1055 quirks |= rqRhineI; in rhine_init_one_pci()
1057 quirks |= rqWOL | rqForceReset; in rhine_init_one_pci()
1059 quirks |= rqStatusWBRace; in rhine_init_one_pci()
1061 quirks |= rqIntPHY; in rhine_init_one_pci()
1063 quirks |= rq6patterns; in rhine_init_one_pci()
1065 quirks |= rqMgmt; in rhine_init_one_pci()
1086 ioaddr = pci_iomap(pdev, (quirks & rqNeedEnMMIO ? 1 : 0), io_size); in rhine_init_one_pci()
1095 enable_mmio(pioaddr, quirks); in rhine_init_one_pci()
1097 rc = verify_mmio(hwdev, pioaddr, ioaddr, quirks); in rhine_init_one_pci()
1101 rc = rhine_init_one_common(&pdev->dev, quirks, in rhine_init_one_pci()
1118 const u32 *quirks; in rhine_init_one_platform() local
1122 quirks = of_device_get_match_data(&pdev->dev); in rhine_init_one_platform()
1123 if (!quirks) in rhine_init_one_platform()
1134 return rhine_init_one_common(&pdev->dev, *quirks, in rhine_init_one_platform()
1154 if (rp->quirks & rqRhineI) { in alloc_ring()
1315 if (rp->quirks & rqRhineI) in alloc_tbufs()
1568 if (rp->quirks & rqMgmt) in init_registers()
1601 if (rp->quirks & rqRhineI) { in rhine_disable_linkmon()
1695 enable_mmio(rp->pioaddr, rp->quirks); in rhine_open()
1788 if ((rp->quirks & rqRhineI) && in rhine_start_tx()
1951 if (((rp->quirks & rqRhineI) && txstatus & 0x0002) || in rhine_tx()
1959 if (rp->quirks & rqRhineI) in rhine_tx()
2249 } else if (rp->quirks & rqMgmt) { in rhine_set_rx_mode()
2271 if (rp->quirks & rqMgmt) { in rhine_set_rx_mode()
2346 if (!(rp->quirks & rqWOL)) in rhine_get_wol()
2362 if (!(rp->quirks & rqWOL)) in rhine_set_wol()
2466 if (!(rp->quirks & rqWOL)) in rhine_shutdown_pci()
2472 if (rp->quirks & rq6patterns) in rhine_shutdown_pci()
2540 enable_mmio(rp->pioaddr, rp->quirks); in rhine_resume()