| /OK3568_Linux_fs/u-boot/drivers/net/ |
| H A 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 …]
|
| H A D | smc91111.h | 73 #define SMC_inw(a,r) (*((volatile word *)((a)->iobase+((r)<<1)))) macro 82 #define SMC_inw(a,r) (*((volatile word *)((a)->iobase+(r)))) macro 100 word __w = SMC_inw((a),(r)&~1); \ 135 *(__b2 + __i) = SMC_inw((a),(r)); \ 136 SMC_inw((a),0); \ 162 #define SMC_inw(a,r) (SMC_LEON_SWAP16((*(volatile word *)((a)->iobase+((r)<<0))))) macro 165 word ___v = SMC_inw((a),(p) & ~1); \ 175 word __w = SMC_inw((a),(r)&~1); \ 219 #define SMC_inw(a, r) *((volatile word*)((a)->iobase + (r))) macro 226 *__b2++ = SWAB7206(SMC_inw(a, r)); \ [all …]
|
| H A D | lan91c96.h | 66 #define SMC_inw(edev, r) (*((volatile word *)SMCREG(edev, r))) macro 69 unsigned int __v = SMC_inw(edev, __p & ~1); \ 77 word __w = SMC_inw(edev, (r)&~1); \ 115 *(__b2 + __i) = SMC_inw(edev,\ 117 SMC_inw(edev, 0); \ 137 #define SMC_inw(edev, r) (*((volatile word *)((edev)->iobase+(r)))) macro 138 #define SMC_inb(edev, r) (((r)&1) ? SMC_inw(edev, (r)&~1)>>8 :\ 139 SMC_inw(edev, r)&0xFF) 143 word __w = SMC_inw(edev, (r)&~1); \ 161 *(__b2 + __i) = SMC_inw(edev,\ [all …]
|
| H A D | lan91c96.c | 148 old_bank = SMC_inw(dev, LAN91C96_BANK_SELECT) & 0xF; in dump_memory_info() 151 mem_info = SMC_inw(dev, LAN91C96_MIR); in dump_memory_info() 168 word old_bank = SMC_inw(dev, LAN91C96_BANK_SELECT); in poll4int() 172 while ((SMC_inw(dev, LAN91C96_INT_STATS) & mask) == 0) { in poll4int() 222 SMC_outw(dev, SMC_inw(dev, LAN91C96_CONTROL) | LAN91C96_CTR_BIT_8, in smc_reset() 440 while (SMC_inw(dev, LAN91C96_MMU) & LAN91C96_MMUCR_NO_BUSY) in smc_send_packet() 457 while (SMC_inw(dev, LAN91C96_MMU) & LAN91C96_MMUCR_NO_BUSY) in smc_send_packet() 529 packet_number = SMC_inw(dev, LAN91C96_FIFO); in smc_rcv() 546 status = SMC_inw(dev, LAN91C96_DATA_HIGH); in smc_rcv() 547 packet_length = SMC_inw(dev, LAN91C96_DATA_HIGH); in smc_rcv() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/smsc/ |
| H A D | smc91x.h | 68 #define SMC_inw(a, r) \ macro 124 #define SMC_inw(a, r) inw((a) + (r) - 0xa0000000) macro 144 #define SMC_inw(a, r) readw((a) + (r)) macro 178 #define SMC_inw(a, r) _swapw(readw((a) + (r))) macro 210 #define SMC_inw(a, r) ioread16((a) + (r)) macro 382 *((u16 *)buf) = SMC_inw(ioaddr, reg); in smc_pxa_dma_insw() 431 #define SMC_inw(ioaddr, reg) SMC_inw_b(ioaddr, reg) macro 873 : (SMC_inw(ioaddr, PN_REG(lp)) & 0xFF)) 887 : (SMC_inw(ioaddr, PN_REG(lp)) >> 8)) 891 : (SMC_inw(ioaddr, TXFIFO_REG(lp)) & 0xFF)) [all …]
|
| /OK3568_Linux_fs/u-boot/examples/standalone/ |
| H A D | smc91111_eeprom.c | 55 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()
|