Home
last modified time | relevance | path

Searched refs:eth_device (Results 1 – 25 of 108) sorted by relevance

12345

/external/u-boot/drivers/net/
Dks8851_mll.c105 static u8 ks_rdreg8(struct eth_device *dev, u16 offset) in ks_rdreg8()
115 static u16 ks_rdreg16(struct eth_device *dev, u16 offset) in ks_rdreg16()
122 static void ks_wrreg8(struct eth_device *dev, u16 offset, u8 val) in ks_wrreg8()
131 static void ks_wrreg16(struct eth_device *dev, u16 offset, u16 val) in ks_wrreg16()
144 static inline void ks_inblk(struct eth_device *dev, u16 *wptr, u32 len) in ks_inblk()
158 static inline void ks_outblk(struct eth_device *dev, u16 *wptr, u32 len) in ks_outblk()
166 static void ks_enable_int(struct eth_device *dev) in ks_enable_int()
171 static void ks_set_powermode(struct eth_device *dev, unsigned pwrmode) in ks_set_powermode()
187 static void ks_read_config(struct eth_device *dev) in ks_read_config()
227 static void ks_soft_reset(struct eth_device *dev, unsigned op) in ks_soft_reset()
[all …]
Dns8382x.c251 static int mdio_read(struct eth_device *dev, int phy_id, int addr);
252 static void mdio_write(struct eth_device *dev, int phy_id, int addr, int value);
253 static void mdio_sync(struct eth_device *dev, u32 offset);
254 static int ns8382x_init(struct eth_device *dev, bd_t * bis);
255 static void ns8382x_reset(struct eth_device *dev);
256 static void ns8382x_init_rxfilter(struct eth_device *dev);
257 static void ns8382x_init_txd(struct eth_device *dev);
258 static void ns8382x_init_rxd(struct eth_device *dev);
259 static void ns8382x_set_rx_mode(struct eth_device *dev);
260 static void ns8382x_check_duplex(struct eth_device *dev);
[all …]
Dnatsemi.c228 static void write_eeprom(struct eth_device *dev, long addr, int location,
231 static int read_eeprom(struct eth_device *dev, long addr, int location);
232 static int mdio_read(struct eth_device *dev, int phy_id, int location);
233 static int natsemi_init(struct eth_device *dev, bd_t * bis);
234 static void natsemi_reset(struct eth_device *dev);
235 static void natsemi_init_rxfilter(struct eth_device *dev);
236 static void natsemi_init_txd(struct eth_device *dev);
237 static void natsemi_init_rxd(struct eth_device *dev);
238 static void natsemi_set_rx_mode(struct eth_device *dev);
239 static void natsemi_check_duplex(struct eth_device *dev);
[all …]
Ddc2114x.c144 static void sendto_srom(struct eth_device* dev, u_int command, u_long addr);
145 static int getfrom_srom(struct eth_device* dev, u_long addr);
146 static int do_eeprom_cmd(struct eth_device *dev, u_long ioaddr,int cmd,int cmd_len);
147 static int do_read_eeprom(struct eth_device *dev,u_long ioaddr,int location,int addr_len);
150 static int write_srom(struct eth_device *dev, u_long ioaddr, int index, int new_value);
151 static void update_srom(struct eth_device *dev, bd_t *bis);
154 static int read_srom(struct eth_device *dev, u_long ioaddr, int index);
155 static void read_hw_addr(struct eth_device* dev, bd_t * bis);
157 static void send_setup_frame(struct eth_device* dev, bd_t * bis);
159 static int dc21x4x_init(struct eth_device* dev, bd_t* bis);
[all …]
Dax88180.c52 static void ax88180_rx_handler (struct eth_device *dev);
53 static int ax88180_phy_initial (struct eth_device *dev);
54 static void ax88180_media_config (struct eth_device *dev);
55 static unsigned long get_CicadaPHY_media_mode (struct eth_device *dev);
56 static unsigned long get_MarvellPHY_media_mode (struct eth_device *dev);
57 static unsigned short ax88180_mdio_read (struct eth_device *dev,
59 static void ax88180_mdio_write (struct eth_device *dev,
67 static int ax88180_mdio_check_complete (struct eth_device *dev) in ax88180_mdio_check_complete()
83 ax88180_mdio_read (struct eth_device *dev, unsigned long regaddr) in ax88180_mdio_read()
99 ax88180_mdio_write (struct eth_device *dev, unsigned long regaddr, in ax88180_mdio_write()
[all …]
Dsmc911x.c16 u32 pkt_data_pull(struct eth_device *dev, u32 addr) \
18 void pkt_data_push(struct eth_device *dev, u32 addr, u32 val) \
21 static void smc911x_handle_mac_address(struct eth_device *dev) in smc911x_handle_mac_address()
34 static int smc911x_eth_phy_read(struct eth_device *dev, in smc911x_eth_phy_read()
51 static int smc911x_eth_phy_write(struct eth_device *dev, in smc911x_eth_phy_write()
66 static int smc911x_phy_reset(struct eth_device *dev) in smc911x_phy_reset()
80 static void smc911x_phy_configure(struct eth_device *dev) in smc911x_phy_configure()
111 static void smc911x_enable(struct eth_device *dev) in smc911x_enable()
128 static int smc911x_init(struct eth_device *dev, bd_t * bd) in smc911x_init()
147 static int smc911x_send(struct eth_device *dev, void *packet, int length) in smc911x_send()
[all …]
Dlan91c96.c115 static int smc_get_ethaddr(bd_t *bd, struct eth_device *dev);
116 static int get_rom_mac(struct eth_device *dev, unsigned char *v_rom_mac);
142 void dump_memory_info(struct eth_device *dev) in dump_memory_info()
163 static int poll4int (struct eth_device *dev, byte mask, int timeout) in poll4int()
204 static void smc_reset(struct eth_device *dev) in smc_reset()
236 static void smc_enable(struct eth_device *dev) in smc_enable()
270 static void smc_shutdown(struct eth_device *dev) in smc_shutdown()
303 static int smc_send_packet(struct eth_device *dev, void *packet, in smc_send_packet()
472 static int smc_open(bd_t *bd, struct eth_device *dev) in smc_open()
515 static int smc_rcv(struct eth_device *dev) in smc_rcv()
[all …]
Deepro100.c216 static void init_rx_ring (struct eth_device *dev);
217 static void purge_tx_ring (struct eth_device *dev);
219 static void read_hw_addr (struct eth_device *dev, bd_t * bis);
221 static int eepro100_init (struct eth_device *dev, bd_t * bis);
222 static int eepro100_send(struct eth_device *dev, void *packet, int length);
223 static int eepro100_recv (struct eth_device *dev);
224 static void eepro100_halt (struct eth_device *dev);
234 static inline int INW (struct eth_device *dev, u_long addr) in INW()
239 static inline void OUTW (struct eth_device *dev, int command, u_long addr) in OUTW()
244 static inline void OUTL (struct eth_device *dev, int command, u_long addr) in OUTL()
[all …]
Dcs8900.c50 static u16 get_reg_init_bus(struct eth_device *dev, int regno) in get_reg_init_bus()
67 static u16 get_reg(struct eth_device *dev, int regno) in get_reg()
75 static void put_reg(struct eth_device *dev, int regno, u16 val) in put_reg()
82 static void cs8900_reset(struct eth_device *dev) in cs8900_reset()
100 static void cs8900_reginit(struct eth_device *dev) in cs8900_reginit()
115 void cs8900_get_enetaddr(struct eth_device *dev) in cs8900_get_enetaddr()
138 void cs8900_halt(struct eth_device *dev) in cs8900_halt()
147 static int cs8900_init(struct eth_device *dev, bd_t * bd) in cs8900_init()
171 static int cs8900_recv(struct eth_device *dev) in cs8900_recv()
201 static int cs8900_send(struct eth_device *dev, void *packet, int length) in cs8900_send()
[all …]
Dpcnet.c95 static u16 pcnet_read_csr(struct eth_device *dev, int index) in pcnet_read_csr()
101 static void pcnet_write_csr(struct eth_device *dev, int index, u16 val) in pcnet_write_csr()
107 static u16 pcnet_read_bcr(struct eth_device *dev, int index) in pcnet_read_bcr()
113 static void pcnet_write_bcr(struct eth_device *dev, int index, u16 val) in pcnet_write_bcr()
119 static void pcnet_reset(struct eth_device *dev) in pcnet_reset()
124 static int pcnet_check(struct eth_device *dev) in pcnet_check()
130 static int pcnet_init (struct eth_device *dev, bd_t * bis);
131 static int pcnet_send(struct eth_device *dev, void *packet, int length);
132 static int pcnet_recv (struct eth_device *dev);
133 static void pcnet_halt (struct eth_device *dev);
[all …]
Drtl8139.c184 static int rtl8139_probe(struct eth_device *dev, bd_t *bis);
186 static void rtl_reset(struct eth_device *dev);
187 static int rtl_transmit(struct eth_device *dev, void *packet, int length);
188 static int rtl_poll(struct eth_device *dev);
189 static void rtl_disable(struct eth_device *dev);
191 static int rtl_bcast_addr(struct eth_device *dev, const u8 *bcast_mac, u8 set) in rtl_bcast_addr()
207 struct eth_device *dev; in rtl8139_initialize()
221 dev = (struct eth_device *)malloc(sizeof *dev); in rtl8139_initialize()
252 static int rtl8139_probe(struct eth_device *dev, bd_t *bis) in rtl8139_probe()
341 static void set_rx_mode(struct eth_device *dev) { in set_rx_mode()
[all …]
Dsmc91111.c145 static void smc_phy_configure(struct eth_device *dev);
169 static inline word SMC_inw(struct eth_device *dev, dword offset) in SMC_inw()
177 static inline void SMC_outw(struct eth_device *dev, word value, dword offset) in SMC_outw()
183 static inline byte SMC_inb(struct eth_device *dev, dword offset) in SMC_inb()
191 static inline void SMC_outb(struct eth_device *dev, byte value, dword offset) in SMC_outb()
204 static inline void SMC_insw(struct eth_device *dev, dword offset, in SMC_insw()
216 static inline void SMC_outsw(struct eth_device *dev, dword offset, in SMC_outsw()
238 static int poll4int (struct eth_device *dev, byte mask, int timeout) in poll4int()
263 static inline void smc_wait_mmu_release_complete (struct eth_device *dev) in smc_wait_mmu_release_complete()
292 static void smc_reset (struct eth_device *dev) in smc_reset()
[all …]
Dftgmac100.c44 static int ftgmac100_mdiobus_read(struct eth_device *dev, int phy_addr, in ftgmac100_mdiobus_read()
79 static int ftgmac100_mdiobus_write(struct eth_device *dev, int phy_addr, in ftgmac100_mdiobus_write()
117 int ftgmac100_phy_read(struct eth_device *dev, int addr, int reg, u16 *value) in ftgmac100_phy_read()
127 int ftgmac100_phy_write(struct eth_device *dev, int addr, int reg, u16 value) in ftgmac100_phy_write()
135 static int ftgmac100_phy_reset(struct eth_device *dev) in ftgmac100_phy_reset()
169 static int ftgmac100_phy_init(struct eth_device *dev) in ftgmac100_phy_init()
251 static int ftgmac100_update_link_speed(struct eth_device *dev) in ftgmac100_update_link_speed()
318 static void ftgmac100_reset(struct eth_device *dev) in ftgmac100_reset()
333 static void ftgmac100_set_mac(struct eth_device *dev, in ftgmac100_set_mac()
346 static void ftgmac100_set_mac_from_env(struct eth_device *dev) in ftgmac100_set_mac_from_env()
[all …]
Dbcm-sf2-eth.c32 static int bcm_sf2_eth_init(struct eth_device *dev) in bcm_sf2_eth_init()
71 static int bcm_sf2_eth_send(struct eth_device *dev, void *packet, int length) in bcm_sf2_eth_send()
102 static int bcm_sf2_eth_receive(struct eth_device *dev) in bcm_sf2_eth_receive()
137 static int bcm_sf2_eth_write_hwaddr(struct eth_device *dev) in bcm_sf2_eth_write_hwaddr()
148 static int bcm_sf2_eth_open(struct eth_device *dev, bd_t *bt) in bcm_sf2_eth_open()
187 static void bcm_sf2_eth_close(struct eth_device *dev) in bcm_sf2_eth_close()
201 struct eth_device *dev; in bcm_sf2_eth_register()
205 dev = (struct eth_device *)malloc(sizeof(struct eth_device)); in bcm_sf2_eth_register()
Dsmc911x.h22 static inline u32 __smc911x_reg_read(struct eth_device *dev, u32 offset) in __smc911x_reg_read()
26 u32 smc911x_reg_read(struct eth_device *dev, u32 offset)
29 static inline void __smc911x_reg_write(struct eth_device *dev, in __smc911x_reg_write()
34 void smc911x_reg_write(struct eth_device *dev, u32 offset, u32 val)
37 static inline u32 smc911x_reg_read(struct eth_device *dev, u32 offset) in smc911x_reg_read()
42 static inline void smc911x_reg_write(struct eth_device *dev, in smc911x_reg_write()
404 static u32 smc911x_get_mac_csr(struct eth_device *dev, u8 reg) in smc911x_get_mac_csr()
416 static void smc911x_set_mac_csr(struct eth_device *dev, u8 reg, u32 data) in smc911x_set_mac_csr()
426 static int smc911x_detect_chip(struct eth_device *dev) in smc911x_detect_chip()
453 static void smc911x_reset(struct eth_device *dev) in smc911x_reset()
Dftmac110.c65 static int ftmac110_reset(struct eth_device *dev);
67 static uint16_t mdio_read(struct eth_device *dev, in mdio_read()
96 static void mdio_write(struct eth_device *dev, in mdio_write()
120 static uint32_t ftmac110_phyqry(struct eth_device *dev) in ftmac110_phyqry()
192 static int ftmac110_reset(struct eth_device *dev) in ftmac110_reset()
258 static int ftmac110_probe(struct eth_device *dev, bd_t *bis) in ftmac110_probe()
268 static void ftmac110_halt(struct eth_device *dev) in ftmac110_halt()
279 static int ftmac110_send(struct eth_device *dev, void *pkt, int len) in ftmac110_send()
325 static int ftmac110_recv(struct eth_device *dev) in ftmac110_recv()
371 struct eth_device *dev; in ftmac110_mdio_read()
[all …]
Dmpc8xx_fec.c40 static int mii_discover_phy(struct eth_device *dev);
110 static int fec_send(struct eth_device *dev, void *packet, int length);
111 static int fec_recv(struct eth_device *dev);
112 static int fec_init(struct eth_device *dev, bd_t *bd);
113 static void fec_halt(struct eth_device *dev);
120 struct eth_device *dev; in fec_initialize()
171 static int fec_send(struct eth_device *dev, void *packet, int length) in fec_send()
216 static int fec_recv(struct eth_device *dev) in fec_recv()
295 static inline void fec_10Mbps(struct eth_device *dev) in fec_10Mbps()
308 static inline void fec_100Mbps(struct eth_device *dev) in fec_100Mbps()
[all …]
Ddnet.c30 struct eth_device netdev;
133 static int dnet_send(struct eth_device *netdev, void *packet, int length) in dnet_send()
168 static int dnet_recv(struct eth_device *netdev) in dnet_recv()
202 static void dnet_set_hwaddr(struct eth_device *netdev) in dnet_set_hwaddr()
217 struct eth_device *netdev = &dnet->netdev; in dnet_phy_reset()
243 struct eth_device *netdev = &dnet->netdev; in dnet_phy_init()
313 static int dnet_init(struct eth_device *netdev, bd_t *bd) in dnet_init()
351 static void dnet_halt(struct eth_device *netdev) in dnet_halt()
362 struct eth_device *netdev; in dnet_eth_initialize()
Dax88180.h356 static inline unsigned short INW (struct eth_device *dev, unsigned long addr) in INW()
365 static inline void OUTW (struct eth_device *dev, unsigned short command, unsigned long addr) in OUTW()
370 static inline unsigned short READ_RXBUF (struct eth_device *dev) in READ_RXBUF()
375 static inline void WRITE_TXBUF (struct eth_device *dev, unsigned short data) in WRITE_TXBUF()
380 static inline void OUTW (struct eth_device *dev, unsigned short command, unsigned long addr) in OUTW()
385 static inline unsigned long READ_RXBUF (struct eth_device *dev) in READ_RXBUF()
390 static inline void WRITE_TXBUF (struct eth_device *dev, unsigned long data) in WRITE_TXBUF()
/external/u-boot/examples/standalone/
Dsmc91111_eeprom.c26 void dump_reg (struct eth_device *dev);
27 void dump_eeprom (struct eth_device *dev);
28 int write_eeprom_reg (struct eth_device *dev, int value, int reg);
29 void copy_from_eeprom (struct eth_device *dev);
30 void print_MAC (struct eth_device *dev);
31 int read_eeprom_reg (struct eth_device *dev, int reg);
32 void print_macaddr (struct eth_device *dev);
39 struct eth_device dev; in smc91111_eeprom()
231 void copy_from_eeprom (struct eth_device *dev) in copy_from_eeprom()
249 void print_macaddr (struct eth_device *dev) in print_macaddr()
[all …]
Dsmc911x_eeprom.c57 static void dump_regs(struct eth_device *dev) in dump_regs()
69 static int do_eeprom_cmd(struct eth_device *dev, int cmd, u8 reg) in do_eeprom_cmd()
92 static u8 read_eeprom_reg(struct eth_device *dev, u8 reg) in read_eeprom_reg()
101 static int write_eeprom_reg(struct eth_device *dev, u8 value, u8 reg) in write_eeprom_reg()
141 static void write_stuff(struct eth_device *dev, char *line) in write_stuff()
194 static void copy_from_eeprom(struct eth_device *dev) in copy_from_eeprom()
212 static void print_macaddr(struct eth_device *dev) in print_macaddr()
231 static void dump_eeprom(struct eth_device *dev) in dump_eeprom()
242 static int smc911x_init(struct eth_device *dev) in smc911x_init()
321 struct eth_device dev; in smc911x_eeprom()
/external/u-boot/net/
Deth_legacy.c38 static struct eth_device *eth_devices;
39 struct eth_device *eth_current;
46 void eth_set_dev(struct eth_device *dev) in eth_set_dev()
51 struct eth_device *eth_get_dev_by_name(const char *devname) in eth_get_dev_by_name()
53 struct eth_device *dev, *target_dev; in eth_get_dev_by_name()
73 struct eth_device *eth_get_dev_by_index(int index) in eth_get_dev_by_index()
75 struct eth_device *dev, *target_dev; in eth_get_dev_by_index()
105 struct eth_device *dev; in on_ethaddr()
133 int eth_write_hwaddr(struct eth_device *dev, const char *base_name, in eth_write_hwaddr()
184 int eth_register(struct eth_device *dev) in eth_register()
[all …]
/external/u-boot/include/
Dnet.h166 struct eth_device { struct
173 int (*init)(struct eth_device *, bd_t *); argument
174 int (*send)(struct eth_device *, void *packet, int length); argument
175 int (*recv)(struct eth_device *); argument
176 void (*halt)(struct eth_device *); argument
178 int (*mcast)(struct eth_device *, const u8 *enetaddr, u8 set); argument
180 int (*write_hwaddr)(struct eth_device *); argument
181 struct eth_device *next; argument
186 int eth_register(struct eth_device *dev);/* Register network device */ argument
187 int eth_unregister(struct eth_device *dev);/* Remove network device */
[all …]
Dusb_ether.h30 struct eth_device eth_dev; /* used with eth_register */
114 struct eth_device *eth);
120 struct eth_device *eth);
126 struct eth_device *eth);
132 struct eth_device *eth);
138 struct eth_device *eth);
/external/u-boot/drivers/qe/
Duec_phy.h163 struct eth_device *dev;
187 int (*mdio_read) (struct eth_device * dev, int mii_id, int reg);
188 void (*mdio_write) (struct eth_device * dev, int mii_id, int reg,
233 void uec_write_phy_reg (struct eth_device *dev, int mii_id, int regnum,
235 int uec_read_phy_reg (struct eth_device *dev, int mii_id, int regnum);

12345