Searched refs:SMC_inw (Results 1 – 5 of 5) sorted by relevance
/external/u-boot/drivers/net/ |
D | smc91111.c | 169 static inline word SMC_inw(struct eth_device *dev, dword offset) in SMC_inw() function 187 _w = SMC_inw(dev, offset & ~((dword)1)); in SMC_inb() 195 _w = SMC_inw(dev, offset & ~((dword)1)); in SMC_outb() 210 *p++ = SMC_inw(dev, offset); in SMC_insw() 242 word old_bank = SMC_inw (dev, BSR_REG); in poll4int() 246 while ((SMC_inw (dev, SMC91111_INT_REG) & mask) == 0) { in poll4int() 268 while (SMC_inw (dev, MMU_CMD_REG) & MC_BUSY) { in smc_wait_mmu_release_complete() 315 SMC_outw (dev, SMC_inw (dev, CONFIG_REG) | CONFIG_EPH_POWER_EN, in smc_reset() 335 while (SMC_inw (dev, MMU_CMD_REG) & MC_BUSY) in smc_reset() 430 saved_ptr = SMC_inw( dev, PTR_REG ); in smc_send() [all …]
|
D | smc91111.h | 72 #define SMC_inw(a,r) (*((volatile word *)((a)->iobase+((r)<<1)))) macro 81 #define SMC_inw(a,r) (*((volatile word *)((a)->iobase+(r)))) macro 99 word __w = SMC_inw((a),(r)&~1); \ 134 *(__b2 + __i) = SMC_inw((a),(r)); \ 135 SMC_inw((a),0); \ 161 #define SMC_inw(a,r) (SMC_LEON_SWAP16((*(volatile word *)((a)->iobase+((r)<<0))))) macro 164 word ___v = SMC_inw((a),(p) & ~1); \ 174 word __w = SMC_inw((a),(r)&~1); \ 218 #define SMC_inw(a, r) *((volatile word*)((a)->iobase + (r))) macro 225 *__b2++ = SWAB7206(SMC_inw(a, r)); \ [all …]
|
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 …]
|
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() 221 SMC_outw(dev, SMC_inw(dev, LAN91C96_CONTROL) | LAN91C96_CTR_BIT_8, in smc_reset() 439 while (SMC_inw(dev, LAN91C96_MMU) & LAN91C96_MMUCR_NO_BUSY) in smc_send_packet() 456 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() [all …]
|
/external/u-boot/examples/standalone/ |
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()
|