Searched refs:SMC_inw (Results 1 – 6 of 6) sorted by relevance
/openbmc/u-boot/drivers/net/ |
H A D | smc91111.c | 210 *p++ = SMC_inw(dev, offset); in SMC_insw() 242 word old_bank = SMC_inw (dev, BSR_REG); in poll4int() 430 saved_ptr = SMC_inw( dev, PTR_REG ); in smc_send() 680 saved_ptr = SMC_inw( dev, PTR_REG ); in smc_rcv() 789 regval = SMC_inw( dev, reg ); 806 if ( SMC_inw( dev, reg ) & bit) 829 return(SMC_inw( dev, reg )); 945 oldBank = SMC_inw (dev, BANK_SELECT); in smc_read_phy_register() 951 mii_reg = SMC_inw (dev, MII_REG); in smc_read_phy_register() 1066 oldBank = SMC_inw (dev, BANK_SELECT); in smc_write_phy_register() [all …]
|
H A D | lan91c96.h | 65 #define SMC_inw(edev, r) (*((volatile word *)SMCREG(edev, r))) macro 68 unsigned int __v = SMC_inw(edev, __p & ~1); \ 76 word __w = SMC_inw(edev, (r)&~1); \ 114 *(__b2 + __i) = SMC_inw(edev,\ 116 SMC_inw(edev, 0); \ 136 #define SMC_inw(edev, r) (*((volatile word *)((edev)->iobase+(r)))) macro 137 #define SMC_inb(edev, r) (((r)&1) ? SMC_inw(edev, (r)&~1)>>8 :\ 138 SMC_inw(edev, r)&0xFF) 142 word __w = SMC_inw(edev, (r)&~1); \ 160 *(__b2 + __i) = SMC_inw(edev,\ [all …]
|
H A D | smc91111.h | 99 word __w = SMC_inw((a),(r)&~1); \ 134 *(__b2 + __i) = SMC_inw((a),(r)); \ 135 SMC_inw((a),0); \ 164 word ___v = SMC_inw((a),(p) & ~1); \ 174 word __w = SMC_inw((a),(r)&~1); \ 225 *__b2++ = SWAB7206(SMC_inw(a, r)); \ 230 word __w = SMC_inw((a), ((r)&(~1))); \ 260 #define SMC_inb(a,r) (((r)&1) ? SMC_inw((a),(r)&~1)>>8 : SMC_inw((a),(r)&0xFF)) 272 word __w = SMC_inw((a),(r)&~1); \ 296 *(__b2 + __i) = SMC_inw((a),(r)); \ [all …]
|
H A D | lan91c96.c | 147 old_bank = SMC_inw(dev, LAN91C96_BANK_SELECT) & 0xF; in dump_memory_info() 150 mem_info = SMC_inw(dev, LAN91C96_MIR); in dump_memory_info() 167 word old_bank = SMC_inw(dev, LAN91C96_BANK_SELECT); in poll4int() 171 while ((SMC_inw(dev, LAN91C96_INT_STATS) & mask) == 0) { in poll4int() 439 while (SMC_inw(dev, LAN91C96_MMU) & LAN91C96_MMUCR_NO_BUSY) in smc_send_packet() 528 packet_number = SMC_inw(dev, LAN91C96_FIFO); in smc_rcv() 545 status = SMC_inw(dev, LAN91C96_DATA_HIGH); in smc_rcv() 546 packet_length = SMC_inw(dev, LAN91C96_DATA_HIGH); in smc_rcv() 601 while (SMC_inw(dev, LAN91C96_MMU) & LAN91C96_MMUCR_NO_BUSY) in smc_rcv() 607 while (SMC_inw(dev, LAN91C96_MMU) & LAN91C96_MMUCR_NO_BUSY) in smc_rcv() [all …]
|
/openbmc/linux/drivers/net/ethernet/smsc/ |
H A D | smc91x.h | 68 #define SMC_inw(a, r) \ macro 178 #define SMC_inw(a, r) ioread16be((a) + (r)) macro 199 #define SMC_inw(a, r) ioread16((a) + (r)) macro 371 *((u16 *)buf) = SMC_inw(ioaddr, reg); in smc_pxa_dma_insw() 862 : (SMC_inw(ioaddr, PN_REG(lp)) & 0xFF)) 876 : (SMC_inw(ioaddr, PN_REG(lp)) >> 8)) 888 : (SMC_inw(ioaddr, INT_REG(lp)) & 0xFF)) 906 : (SMC_inw(ioaddr, INT_REG(lp)) >> 8)) 1000 __v = SMC_inw(ioaddr, ADDR0_REG(lp)); \ 1002 __v = SMC_inw(ioaddr, ADDR1_REG(lp)); \ [all …]
|
/openbmc/u-boot/examples/standalone/ |
H A D | smc91111_eeprom.c | 54 if ((SMC_inw (&dev, BANK_SELECT) & 0xFF00) != 0x3300) { in smc91111_eeprom() 236 SMC_outw (dev, (SMC_inw (dev, CTL_REG) & !CTL_EEPROM_SELECT) | in copy_from_eeprom() 239 while ((SMC_inw (dev, CTL_REG) & CTL_RELOAD) && --i) in copy_from_eeprom() 317 SMC_outw (dev, SMC_inw (dev, CTL_REG) | CTL_EEPROM_SELECT | in read_eeprom_reg() 320 while ((SMC_inw (dev, CTL_REG) & CTL_RELOAD) && --timeout) in read_eeprom_reg() 327 return SMC_inw (dev, GP_REG); in read_eeprom_reg() 340 SMC_outw (dev, SMC_inw (dev, CTL_REG) | CTL_EEPROM_SELECT | in write_eeprom_reg() 343 while ((SMC_inw (dev, CTL_REG) & CTL_STORE) && --timeout) in write_eeprom_reg() 367 printf ("%04x ", SMC_inw (dev, i)); in dump_reg()
|