Lines Matching refs:inw
262 #define set_bits(v, p) outw(inw(p)|(v), (p))
263 #define mask_bits(v, p) outw(inw(p)&(v), (p))
557 wait = ((CTL_RELOAD | CTL_STORE) & inw(ioaddr + CONTROL)); in mot_setup()
564 addr = inw(ioaddr + GENERAL); in mot_setup()
706 inw(link->resource[0]->start + OSITECH_AUI_PWR), in osi_setup()
707 inw(link->resource[0]->start + OSITECH_RESET_ISR)); in osi_setup()
773 if (inw(ioaddr + BANK_SELECT) >> 8 != 0x33) { in check_sig()
789 s = inw(ioaddr + BASE_ADDR); in check_sig()
790 if ((inw(ioaddr + BANK_SELECT) >> 8 == 0x33) && in check_sig()
793 s = inw(ioaddr + REVISION); in check_sig()
892 mir = inw(ioaddr + MEMINFO) & 0xff; in smc91c92_config()
895 mcr = ((rev >> 4) > 3) ? inw(ioaddr + MEMCFG) : 0x0200; in smc91c92_config()
898 smc->cfg = inw(ioaddr + CONFIG) & ~CFG_AUI_SELECT; in smc91c92_config()
1038 save = inw(ioaddr + BANK_SELECT); in smc_dump()
1043 pr_cont(" %04x", inw(ioaddr + i)); in smc_dump()
1056 dev->name, dev, inw(dev->base_addr + BANK_SELECT)); in smc_open()
1091 dev->name, inw(ioaddr + BANK_SELECT)); in smc_close()
1134 packet_no = inw(ioaddr + PNR_ARR) >> 8; in smc_hardware_send_packet()
1170 (inw(ioaddr + INTERRUPT) & 0xff00), in smc_hardware_send_packet()
1190 inw(ioaddr)&0xff, inw(ioaddr + 2)); in smc_tx_timeout()
1210 skb->len, inw(ioaddr + 2)); in smc_start_xmit()
1244 ir = inw(ioaddr+INTERRUPT); in smc_start_xmit()
1272 int saved_packet = inw(ioaddr + PNR_ARR) & 0xff; in smc_tx_err()
1273 int packet_no = inw(ioaddr + FIFO_PORTS) & 0x7f; in smc_tx_err()
1282 tx_status = inw(ioaddr + DATA_1); in smc_tx_err()
1297 outw(inw(ioaddr + TCR) | TCR_ENABLE | smc->duplex, ioaddr + TCR); in smc_tx_err()
1317 ephs = inw(ioaddr + EPH); in smc_eph_irq()
1321 card_stats = inw(ioaddr + COUNTER); in smc_eph_irq()
1332 outw(inw(ioaddr + TCR) | TCR_ENABLE | smc->duplex, ioaddr + TCR); in smc_eph_irq()
1363 saved_bank = inw(ioaddr + BANK_SELECT); in smc_interrupt()
1374 saved_pointer = inw(ioaddr + POINTER); in smc_interrupt()
1375 mask = inw(ioaddr + INTERRUPT) >> 8; in smc_interrupt()
1380 status = inw(ioaddr + INTERRUPT) & 0xff; in smc_interrupt()
1482 if (inw(ioaddr + FIFO_PORTS) & FP_RXEMPTY) { in smc_rx()
1489 rx_status = inw(ioaddr + DATA_1); in smc_rx()
1490 packet_length = inw(ioaddr + DATA_1) & 0x07ff; in smc_rx()
1621 saved_bank = inw(ioaddr + BANK_SELECT); in smc_set_xcvr()
1669 (inw(ioaddr-0x10+OSITECH_AUI_PWR) & 0xff00), in smc_reset()
1725 saved_bank = inw(ioaddr + BANK_SELECT); in media_check()
1737 i = inw(ioaddr + INTERRUPT); in media_check()
1739 media = inw(ioaddr + EPH) & EPH_LINK_OK; in media_check()
1741 media |= (inw(ioaddr + CONFIG) & CFG_AUI_SELECT) ? 2 : 1; in media_check()
1765 saved_bank = inw(ioaddr + BANK_SELECT); in media_check()
1791 outw(inw(ioaddr + TCR) | smc->duplex, ioaddr + TCR); in media_check()
1845 return inw(ioaddr + EPH) & EPH_LINK_OK; in smc_link_ok()
1860 tmp = inw(ioaddr + CONFIG); in smc_netdev_get_ecmd()
1866 tmp = inw(ioaddr + TCR); in smc_netdev_get_ecmd()
1893 tmp = inw(ioaddr + TCR); in smc_netdev_set_ecmd()
1921 u16 saved_bank = inw(ioaddr + BANK_SELECT); in smc_get_link_ksettings()
1940 u16 saved_bank = inw(ioaddr + BANK_SELECT); in smc_set_link_ksettings()
1959 u16 saved_bank = inw(ioaddr + BANK_SELECT); in smc_get_link()
1976 u16 saved_bank = inw(ioaddr + BANK_SELECT); in smc_nway_reset()
2010 saved_bank = inw(ioaddr + BANK_SELECT); in smc_ioctl()