Home
last modified time | relevance | path

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

12345

/openbmc/u-boot/drivers/net/
H A Dks8851_mll.c166 static void ks_enable_int(struct eth_device *dev) in ks_enable_int()
187 static void ks_read_config(struct eth_device *dev) in ks_read_config()
237 void ks_enable_qmu(struct eth_device *dev) in ks_enable_qmu()
255 static void ks_disable_qmu(struct eth_device *dev) in ks_disable_qmu()
340 static int ks_read_selftest(struct eth_device *dev) in ks_read_selftest()
368 static void ks_setup(struct eth_device *dev) in ks_setup()
405 static void ks_setup_int(struct eth_device *dev) in ks_setup_int()
451 static void ks8851_mll_reset(struct eth_device *dev) in ks8851_mll_reset()
555 static void ks8851_mll_halt(struct eth_device *dev) in ks8851_mll_halt()
566 static int ks8851_mll_recv(struct eth_device *dev) in ks8851_mll_recv()
[all …]
H A Dnatsemi.c252 INW(struct eth_device *dev, u_long addr) in INW()
258 INL(struct eth_device *dev, u_long addr) in INL()
293 struct eth_device *dev; in natsemi_initialize()
603 natsemi_reset(struct eth_device *dev) in natsemi_reset()
633 natsemi_init_rxfilter(struct eth_device *dev) in natsemi_init_rxfilter()
655 natsemi_init_txd(struct eth_device *dev) in natsemi_init_txd()
679 natsemi_init_rxd(struct eth_device *dev) in natsemi_init_rxd()
723 natsemi_set_rx_mode(struct eth_device *dev) in natsemi_set_rx_mode()
731 natsemi_check_duplex(struct eth_device *dev) in natsemi_check_duplex()
822 natsemi_poll(struct eth_device *dev) in natsemi_poll()
[all …]
H A Dns8382x.c273 INW(struct eth_device *dev, u_long addr) in INW()
279 INL(struct eth_device *dev, u_long addr) in INL()
309 struct eth_device *dev; in ns8382x_initialize()
458 mdio_sync(struct eth_device *dev, u32 offset) in mdio_sync()
583 ns8382x_reset(struct eth_device *dev) in ns8382x_reset()
617 ns8382x_init_txd(struct eth_device *dev) in ns8382x_init_txd()
638 ns8382x_init_rxd(struct eth_device *dev) in ns8382x_init_rxd()
675 ns8382x_set_rx_mode(struct eth_device *dev) in ns8382x_set_rx_mode()
691 ns8382x_check_duplex(struct eth_device *dev) in ns8382x_check_duplex()
795 ns8382x_poll(struct eth_device *dev) in ns8382x_poll()
[all …]
H A Ddc2114x.c150 static void update_srom(struct eth_device *dev, bd_t *bis);
160 static int dc21x4x_recv(struct eth_device* dev);
161 static void dc21x4x_halt(struct eth_device* dev);
163 extern void dc21x4x_select_media(struct eth_device* dev);
172 static int INL(struct eth_device* dev, u_long addr) in INL()
200 struct eth_device* dev; in dc21x4x_initialize()
264 dev = (struct eth_device*) malloc(sizeof *dev); in dc21x4x_initialize()
305 static int dc21x4x_init(struct eth_device* dev, bd_t* bis) in dc21x4x_init()
422 static int dc21x4x_recv(struct eth_device* dev) in dc21x4x_recv()
468 static void dc21x4x_halt(struct eth_device* dev) in dc21x4x_halt()
[all …]
H A 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()
186 static void smc911x_halt(struct eth_device *dev) in smc911x_halt()
192 static int smc911x_rx(struct eth_device *dev) in smc911x_rx()
[all …]
H A Dax88180.c52 static void ax88180_rx_handler (struct eth_device *dev);
53 static int ax88180_phy_initial (struct eth_device *dev);
59 static void ax88180_mdio_write (struct eth_device *dev,
112 static int ax88180_phy_reset (struct eth_device *dev) in ax88180_phy_reset()
130 static void ax88180_mac_reset (struct eth_device *dev) in ax88180_mac_reset()
188 static void ax88180_rx_handler (struct eth_device *dev) in ax88180_rx_handler()
255 static int ax88180_phy_initial (struct eth_device *dev) in ax88180_phy_initial()
524 static void ax88180_halt (struct eth_device *dev) in ax88180_halt()
574 static int ax88180_recv (struct eth_device *dev) in ax88180_recv()
704 struct eth_device *dev; in ax88180_initialize()
[all …]
H A Dlan91c96.c142 void dump_memory_info(struct eth_device *dev) in dump_memory_info()
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()
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()
628 static int smc_close(struct eth_device *dev) in smc_close()
680 static void lan91c96_halt(struct eth_device *dev) in lan91c96_halt()
685 static int lan91c96_recv(struct eth_device *dev) in lan91c96_recv()
755 static int lan91c96_detect_chip(struct eth_device *dev) in lan91c96_detect_chip()
[all …]
H A 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()
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()
245 static void cs8900_e2prom_ready(struct eth_device *dev) in cs8900_e2prom_ready()
255 int cs8900_e2prom_read(struct eth_device *dev, in cs8900_e2prom_read()
[all …]
H A Deepro100.c214 static void init_rx_ring (struct eth_device *dev);
215 static void purge_tx_ring (struct eth_device *dev);
221 static int eepro100_recv (struct eth_device *dev);
222 static void eepro100_halt (struct eth_device *dev);
301 struct eth_device *dev; in verify_phyaddr()
332 struct eth_device *dev; in eepro100_miiphy_read()
349 struct eth_device *dev; in eepro100_miiphy_write()
391 struct eth_device *dev; in eepro100_initialize()
653 static int eepro100_recv (struct eth_device *dev) in eepro100_recv()
719 static void eepro100_halt (struct eth_device *dev) in eepro100_halt()
[all …]
H A Dpcnet.c95 static u16 pcnet_read_csr(struct eth_device *dev, int index) in pcnet_read_csr()
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);
132 static int pcnet_recv (struct eth_device *dev);
133 static void pcnet_halt (struct eth_device *dev);
154 struct eth_device *dev; in pcnet_initialize()
173 dev = (struct eth_device *)malloc(sizeof(*dev)); in pcnet_initialize()
293 static int pcnet_init(struct eth_device *dev, bd_t *bis) in pcnet_init()
482 static int pcnet_recv (struct eth_device *dev) in pcnet_recv()
[all …]
H A Drtl8139.c180 static int rtl8139_probe(struct eth_device *dev, bd_t *bis);
182 static void rtl_reset(struct eth_device *dev);
184 static int rtl_poll(struct eth_device *dev);
185 static void rtl_disable(struct eth_device *dev);
201 struct eth_device *dev; in rtl8139_initialize()
215 dev = (struct eth_device *)malloc(sizeof *dev); in rtl8139_initialize()
244 static int rtl8139_probe(struct eth_device *dev, bd_t *bis) in rtl8139_probe()
333 static void set_rx_mode(struct eth_device *dev) { in set_rx_mode()
346 static void rtl_reset(struct eth_device *dev) in rtl_reset()
458 static int rtl_poll(struct eth_device *dev) in rtl_poll()
[all …]
H A 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()
H A 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()
183 static inline byte SMC_inb(struct eth_device *dev, dword offset) in SMC_inb()
292 static void smc_reset (struct eth_device *dev) in smc_reset()
354 static void smc_enable(struct eth_device *dev) in smc_enable()
380 static void smc_halt(struct eth_device *dev) in smc_halt()
601 static int smc_write_hwaddr(struct eth_device *dev) in smc_write_hwaddr()
629 static int smc_init(struct eth_device *dev, bd_t *bd) in smc_init()
665 static int smc_rcv(struct eth_device *dev) in smc_rcv()
1112 static void smc_phy_configure (struct eth_device *dev) in smc_phy_configure()
[all …]
H A 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()
H A 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()
325 static int ftmac110_recv(struct eth_device *dev) in ftmac110_recv()
371 struct eth_device *dev; in ftmac110_mdio_read()
390 struct eth_device *dev; in ftmac110_mdio_write()
[all …]
H A 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()
H A Dmpc8xx_fec.c40 static int mii_discover_phy(struct eth_device *dev);
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()
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()
496 static int fec_init(struct eth_device *dev, bd_t *bd) in fec_init()
664 static void fec_halt(struct eth_device *dev) in fec_halt()
[all …]
H A 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()
/openbmc/u-boot/examples/standalone/
H A Dsmc91111_eeprom.c26 void dump_reg (struct eth_device *dev);
27 void dump_eeprom (struct eth_device *dev);
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()
276 void dump_eeprom (struct eth_device *dev) in dump_eeprom()
[all …]
H A 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()
/openbmc/u-boot/net/
H A 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()
53 struct eth_device *dev, *target_dev; in eth_get_dev_by_name()
75 struct eth_device *dev, *target_dev; in eth_get_dev_by_index()
105 struct eth_device *dev; in on_ethaddr()
184 int eth_register(struct eth_device *dev) in eth_register()
186 struct eth_device *d; in eth_register()
210 struct eth_device *cur; in eth_unregister()
262 struct eth_device *dev = eth_devices; in eth_initialize()
[all …]
/openbmc/u-boot/include/
H A Dusb_ether.h20 struct eth_device eth_dev; /* used with eth_register */
104 struct eth_device *eth);
110 struct eth_device *eth);
116 struct eth_device *eth);
122 struct eth_device *eth);
128 struct eth_device *eth);
H A Dnet.h165 struct eth_device { struct
172 int (*init)(struct eth_device *, bd_t *); argument
173 int (*send)(struct eth_device *, void *packet, int length); argument
174 int (*recv)(struct eth_device *); argument
175 void (*halt)(struct eth_device *); argument
176 int (*mcast)(struct eth_device *, const u8 *enetaddr, int join); argument
177 int (*write_hwaddr)(struct eth_device *); argument
178 struct eth_device *next; argument
186 extern struct eth_device *eth_current;
188 static __always_inline struct eth_device *eth_get_dev(void) in eth_get_dev()
[all …]
/openbmc/u-boot/drivers/qe/
H A 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);
/openbmc/u-boot/board/micronas/vct/
H A Debi_smc911x.c35 u32 smc911x_reg_read(struct eth_device *dev, u32 addr) in smc911x_reg_read()
49 void smc911x_reg_write(struct eth_device *dev, u32 addr, u32 data) in smc911x_reg_write()
60 void pkt_data_push(struct eth_device *dev, u32 addr, u32 data) in pkt_data_push()
73 u32 pkt_data_pull(struct eth_device *dev, u32 addr) in pkt_data_pull()

12345