Home
last modified time | relevance | path

Searched refs:SMC_inw (Results 1 – 5 of 5) sorted by relevance

/u-boot/drivers/net/
A Dsmc91111.c211 *p++ = SMC_inw(dev, offset); in SMC_insw()
243 word old_bank = SMC_inw (dev, BSR_REG); in poll4int()
431 saved_ptr = SMC_inw( dev, PTR_REG ); in smc_send()
681 saved_ptr = SMC_inw( dev, PTR_REG ); in smc_rcv()
790 regval = SMC_inw( dev, reg );
807 if ( SMC_inw( dev, reg ) & bit)
830 return(SMC_inw( dev, reg ));
946 oldBank = SMC_inw (dev, BANK_SELECT); in smc_read_phy_register()
952 mii_reg = SMC_inw (dev, MII_REG); in smc_read_phy_register()
1067 oldBank = SMC_inw (dev, BANK_SELECT); in smc_write_phy_register()
[all …]
A Dlan91c96.h65 #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 …]
A Dlan91c96.c149 old_bank = SMC_inw(dev, LAN91C96_BANK_SELECT) & 0xF; in dump_memory_info()
152 mem_info = SMC_inw(dev, LAN91C96_MIR); in dump_memory_info()
169 word old_bank = SMC_inw(dev, LAN91C96_BANK_SELECT); in poll4int()
173 while ((SMC_inw(dev, LAN91C96_INT_STATS) & mask) == 0) { in poll4int()
441 while (SMC_inw(dev, LAN91C96_MMU) & LAN91C96_MMUCR_NO_BUSY) in smc_send_packet()
530 packet_number = SMC_inw(dev, LAN91C96_FIFO); in smc_rcv()
547 status = SMC_inw(dev, LAN91C96_DATA_HIGH); in smc_rcv()
548 packet_length = SMC_inw(dev, LAN91C96_DATA_HIGH); in smc_rcv()
603 while (SMC_inw(dev, LAN91C96_MMU) & LAN91C96_MMUCR_NO_BUSY) in smc_rcv()
609 while (SMC_inw(dev, LAN91C96_MMU) & LAN91C96_MMUCR_NO_BUSY) in smc_rcv()
[all …]
A Dsmc91111.h100 word __w = SMC_inw((a),(r)&~1); \
135 *(__b2 + __i) = SMC_inw((a),(r)); \
136 SMC_inw((a),0); \
165 word ___v = SMC_inw((a),(p) & ~1); \
175 word __w = SMC_inw((a),(r)&~1); \
226 *__b2++ = SWAB7206(SMC_inw(a, r)); \
231 word __w = SMC_inw((a), ((r)&(~1))); \
261 #define SMC_inb(a,r) (((r)&1) ? SMC_inw((a),(r)&~1)>>8 : SMC_inw((a),(r)&0xFF))
273 word __w = SMC_inw((a),(r)&~1); \
297 *(__b2 + __i) = SMC_inw((a),(r)); \
[all …]
/u-boot/examples/standalone/
A Dsmc91111_eeprom.c55 if ((SMC_inw (&dev, BANK_SELECT) & 0xFF00) != 0x3300) { in smc91111_eeprom()
237 SMC_outw (dev, (SMC_inw (dev, CTL_REG) & !CTL_EEPROM_SELECT) | in copy_from_eeprom()
240 while ((SMC_inw (dev, CTL_REG) & CTL_RELOAD) && --i) in copy_from_eeprom()
318 SMC_outw (dev, SMC_inw (dev, CTL_REG) | CTL_EEPROM_SELECT | in read_eeprom_reg()
321 while ((SMC_inw (dev, CTL_REG) & CTL_RELOAD) && --timeout) in read_eeprom_reg()
328 return SMC_inw (dev, GP_REG); in read_eeprom_reg()
341 SMC_outw (dev, SMC_inw (dev, CTL_REG) | CTL_EEPROM_SELECT | in write_eeprom_reg()
344 while ((SMC_inw (dev, CTL_REG) & CTL_STORE) && --timeout) in write_eeprom_reg()
368 printf ("%04x ", SMC_inw (dev, i)); in dump_reg()

Completed in 11 milliseconds