/u-boot/include/ |
A D | usb_ether.h | 20 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);
|
A D | net.h | 190 struct eth_device { struct 197 int (*init)(struct eth_device *eth, struct bd_info *bd); argument 198 int (*send)(struct eth_device *, void *packet, int length); argument 199 int (*recv)(struct eth_device *); argument 200 void (*halt)(struct eth_device *); argument 201 int (*mcast)(struct eth_device *, const u8 *enetaddr, int join); argument 202 int (*write_hwaddr)(struct eth_device *eth); argument 203 struct eth_device *next; argument 211 extern struct eth_device *eth_current; 213 static __always_inline struct eth_device *eth_get_dev(void) in eth_get_dev() [all …]
|
/u-boot/drivers/net/ |
A D | natsemi.c | 253 INW(struct eth_device *dev, u_long addr) in INW() 259 INL(struct eth_device *dev, u_long addr) in INL() 294 struct eth_device *dev; in natsemi_initialize() 604 natsemi_reset(struct eth_device *dev) in natsemi_reset() 634 natsemi_init_rxfilter(struct eth_device *dev) in natsemi_init_rxfilter() 656 natsemi_init_txd(struct eth_device *dev) in natsemi_init_txd() 680 natsemi_init_rxd(struct eth_device *dev) in natsemi_init_rxd() 724 natsemi_set_rx_mode(struct eth_device *dev) in natsemi_set_rx_mode() 732 natsemi_check_duplex(struct eth_device *dev) in natsemi_check_duplex() 823 natsemi_poll(struct eth_device *dev) in natsemi_poll() [all …]
|
A D | ns8382x.c | 275 INW(struct eth_device *dev, u_long addr) in INW() 281 INL(struct eth_device *dev, u_long addr) in INL() 311 struct eth_device *dev; in ns8382x_initialize() 460 mdio_sync(struct eth_device *dev, u32 offset) in mdio_sync() 585 ns8382x_reset(struct eth_device *dev) in ns8382x_reset() 619 ns8382x_init_txd(struct eth_device *dev) in ns8382x_init_txd() 640 ns8382x_init_rxd(struct eth_device *dev) in ns8382x_init_rxd() 677 ns8382x_set_rx_mode(struct eth_device *dev) in ns8382x_set_rx_mode() 693 ns8382x_check_duplex(struct eth_device *dev) in ns8382x_check_duplex() 797 ns8382x_poll(struct eth_device *dev) in ns8382x_poll() [all …]
|
A D | cs8900.c | 52 static u16 get_reg_init_bus(struct eth_device *dev, int regno) in get_reg_init_bus() 69 static u16 get_reg(struct eth_device *dev, int regno) in get_reg() 77 static void put_reg(struct eth_device *dev, int regno, u16 val) in put_reg() 84 static void cs8900_reset(struct eth_device *dev) in cs8900_reset() 102 static void cs8900_reginit(struct eth_device *dev) in cs8900_reginit() 117 void cs8900_get_enetaddr(struct eth_device *dev) in cs8900_get_enetaddr() 140 void cs8900_halt(struct eth_device *dev) in cs8900_halt() 173 static int cs8900_recv(struct eth_device *dev) in cs8900_recv() 247 static void cs8900_e2prom_ready(struct eth_device *dev) in cs8900_e2prom_ready() 257 int cs8900_e2prom_read(struct eth_device *dev, in cs8900_e2prom_read() [all …]
|
A D | lan91c96.c | 144 void dump_memory_info(struct eth_device *dev) in dump_memory_info() 206 static void smc_reset(struct eth_device *dev) in smc_reset() 238 static void smc_enable(struct eth_device *dev) in smc_enable() 272 static void smc_shutdown(struct eth_device *dev) in smc_shutdown() 517 static int smc_rcv(struct eth_device *dev) in smc_rcv() 630 static int smc_close(struct eth_device *dev) in smc_close() 682 static void lan91c96_halt(struct eth_device *dev) in lan91c96_halt() 687 static int lan91c96_recv(struct eth_device *dev) in lan91c96_recv() 692 static int lan91c96_send(struct eth_device *dev, void *packet, in lan91c96_send() 757 static int lan91c96_detect_chip(struct eth_device *dev) in lan91c96_detect_chip() [all …]
|
A D | ax88180.c | 54 static void ax88180_rx_handler (struct eth_device *dev); 55 static int ax88180_phy_initial (struct eth_device *dev); 61 static void ax88180_mdio_write (struct eth_device *dev, 114 static int ax88180_phy_reset (struct eth_device *dev) in ax88180_phy_reset() 132 static void ax88180_mac_reset (struct eth_device *dev) in ax88180_mac_reset() 190 static void ax88180_rx_handler (struct eth_device *dev) in ax88180_rx_handler() 257 static int ax88180_phy_initial (struct eth_device *dev) in ax88180_phy_initial() 526 static void ax88180_halt (struct eth_device *dev) in ax88180_halt() 576 static int ax88180_recv (struct eth_device *dev) in ax88180_recv() 706 struct eth_device *dev; in ax88180_initialize() [all …]
|
A D | bcm-sf2-eth.c | 34 static int bcm_sf2_eth_init(struct eth_device *dev) in bcm_sf2_eth_init() 73 static int bcm_sf2_eth_send(struct eth_device *dev, void *packet, int length) in bcm_sf2_eth_send() 104 static int bcm_sf2_eth_receive(struct eth_device *dev) in bcm_sf2_eth_receive() 139 static int bcm_sf2_eth_write_hwaddr(struct eth_device *dev) in bcm_sf2_eth_write_hwaddr() 150 static int bcm_sf2_eth_open(struct eth_device *dev, struct bd_info *bt) in bcm_sf2_eth_open() 189 static void bcm_sf2_eth_close(struct eth_device *dev) in bcm_sf2_eth_close() 203 struct eth_device *dev; in bcm_sf2_eth_register() 207 dev = (struct eth_device *)malloc(sizeof(struct eth_device)); in bcm_sf2_eth_register()
|
A D | smc91111.c | 146 static void smc_phy_configure(struct eth_device *dev); 170 static inline word SMC_inw(struct eth_device *dev, dword offset) in SMC_inw() 184 static inline byte SMC_inb(struct eth_device *dev, dword offset) in SMC_inb() 205 static inline void SMC_insw(struct eth_device *dev, dword offset, in SMC_insw() 293 static void smc_reset (struct eth_device *dev) in smc_reset() 355 static void smc_enable(struct eth_device *dev) in smc_enable() 381 static void smc_halt(struct eth_device *dev) in smc_halt() 602 static int smc_write_hwaddr(struct eth_device *dev) in smc_write_hwaddr() 666 static int smc_rcv(struct eth_device *dev) in smc_rcv() 1113 static void smc_phy_configure (struct eth_device *dev) in smc_phy_configure() [all …]
|
A D | ftmac110.c | 67 static int ftmac110_reset(struct eth_device *dev); 69 static uint16_t mdio_read(struct eth_device *dev, in mdio_read() 98 static void mdio_write(struct eth_device *dev, in mdio_write() 122 static uint32_t ftmac110_phyqry(struct eth_device *dev) in ftmac110_phyqry() 194 static int ftmac110_reset(struct eth_device *dev) in ftmac110_reset() 270 static void ftmac110_halt(struct eth_device *dev) in ftmac110_halt() 281 static int ftmac110_send(struct eth_device *dev, void *pkt, int len) in ftmac110_send() 327 static int ftmac110_recv(struct eth_device *dev) in ftmac110_recv() 373 struct eth_device *dev; in ftmac110_mdio_read() 392 struct eth_device *dev; in ftmac110_mdio_write() [all …]
|
A D | dnet.c | 32 struct eth_device netdev; 135 static int dnet_send(struct eth_device *netdev, void *packet, int length) in dnet_send() 170 static int dnet_recv(struct eth_device *netdev) in dnet_recv() 204 static void dnet_set_hwaddr(struct eth_device *netdev) in dnet_set_hwaddr() 219 struct eth_device *netdev = &dnet->netdev; in dnet_phy_reset() 245 struct eth_device *netdev = &dnet->netdev; in dnet_phy_init() 315 static int dnet_init(struct eth_device *netdev, struct bd_info *bd) in dnet_init() 353 static void dnet_halt(struct eth_device *netdev) in dnet_halt() 364 struct eth_device *netdev; in dnet_eth_initialize()
|
A D | mpc8xx_fec.c | 44 static int mii_discover_phy(struct eth_device *dev); 115 static int fec_recv(struct eth_device *dev); 117 static void fec_halt(struct eth_device *dev); 124 struct eth_device *dev; in fec_initialize() 220 static int fec_recv(struct eth_device *dev) in fec_recv() 299 static inline void fec_10Mbps(struct eth_device *dev) in fec_10Mbps() 312 static inline void fec_100Mbps(struct eth_device *dev) in fec_100Mbps() 327 static inline void fec_full_duplex(struct eth_device *dev) in fec_full_duplex() 337 static inline void fec_half_duplex(struct eth_device *dev) in fec_half_duplex() 668 static void fec_halt(struct eth_device *dev) in fec_halt() [all …]
|
A D | ax88180.h | 356 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()
|
A D | ep93xx_eth.c | 44 static void dump_dev(struct eth_device *dev) in dump_dev() 71 static void dump_rx_status_queue(struct eth_device *dev) in dump_rx_status_queue() 89 static void dump_rx_descriptor_queue(struct eth_device *dev) in dump_rx_descriptor_queue() 107 static void dump_tx_descriptor_queue(struct eth_device *dev) in dump_tx_descriptor_queue() 125 static void dump_tx_status_queue(struct eth_device *dev) in dump_tx_status_queue() 150 static void ep93xx_mac_reset(struct eth_device *dev) in ep93xx_mac_reset() 168 static int ep93xx_eth_open(struct eth_device *dev, struct bd_info *bd) in ep93xx_eth_open() 286 static void ep93xx_eth_close(struct eth_device *dev) in ep93xx_eth_close() 302 static int ep93xx_eth_rcv_packet(struct eth_device *dev) in ep93xx_eth_rcv_packet() 371 static int ep93xx_eth_send_packet(struct eth_device *dev, in ep93xx_eth_send_packet() [all …]
|
A D | lpc32xx_eth.c | 203 struct eth_device dev; 232 struct eth_device *dev = eth_get_dev_by_name(bus->name); in mii_reg_read() 291 struct eth_device *dev = eth_get_dev_by_name(bus->name); in mii_reg_write() 357 static int lpc32xx_eth_send(struct eth_device *dev, void *dataptr, int datasize) in lpc32xx_eth_send() 394 static int lpc32xx_eth_recv(struct eth_device *dev) in lpc32xx_eth_recv() 428 static int lpc32xx_eth_write_hwaddr(struct eth_device *dev) in lpc32xx_eth_write_hwaddr() 445 static int lpc32xx_eth_init(struct eth_device *dev) in lpc32xx_eth_init() 543 static int lpc32xx_eth_halt(struct eth_device *dev) in lpc32xx_eth_halt() 559 int lpc32xx_eth_phylib_init(struct eth_device *dev, int phyid) in lpc32xx_eth_phylib_init() 602 struct eth_device *dev = &lpc32xx_eth.dev; in lpc32xx_eth_initialize()
|
A D | uli526x.c | 179 static int uli526x_rx_packet(struct eth_device *); 180 static void uli526x_free_tx_pkt(struct eth_device *, 183 static void uli526x_init(struct eth_device *); 188 static void uli526x_disable(struct eth_device *); 189 static void set_mac_addr(struct eth_device *); 207 struct eth_device *dev; in uli526x_initialize() 222 dev = (struct eth_device *)malloc(sizeof *dev); in uli526x_initialize() 336 static void uli526x_disable(struct eth_device *dev) in uli526x_disable() 364 static void uli526x_init(struct eth_device *dev) in uli526x_init() 539 static int uli526x_rx_packet(struct eth_device *dev) in uli526x_rx_packet() [all …]
|
A D | armada100_fec.c | 30 static int eth_dump_regs(struct eth_device *dev) in eth_dump_regs() 65 struct eth_device *dev = eth_get_dev_by_name(bus->name); in smi_reg_read() 112 struct eth_device *dev = eth_get_dev_by_name(bus->name); in smi_reg_write() 147 static void abortdma(struct eth_device *dev) in abortdma() 356 static void init_hashtable(struct eth_device *dev) in init_hashtable() 368 static int ethernet_phy_detect(struct eth_device *dev) in ethernet_phy_detect() 424 static int armdfec_init(struct eth_device *dev, struct bd_info *bd) in armdfec_init() 524 static void armdfec_halt(struct eth_device *dev) in armdfec_halt() 547 static int armdfec_send(struct eth_device *dev, void *dataptr, int datasize) in armdfec_send() 601 static int armdfec_recv(struct eth_device *dev) in armdfec_recv() [all …]
|
A D | at91_emac.c | 157 struct eth_device *netdev; in get_emacbase_by_name() 186 static int at91emac_phy_reset(struct eth_device *netdev) in at91emac_phy_reset() 220 static int at91emac_phy_init(struct eth_device *netdev) in at91emac_phy_init() 318 static int at91emac_init(struct eth_device *netdev, struct bd_info *bd) in at91emac_init() 384 static void at91emac_halt(struct eth_device *netdev) in at91emac_halt() 394 static int at91emac_send(struct eth_device *netdev, void *packet, int length) in at91emac_send() 411 static int at91emac_recv(struct eth_device *netdev) in at91emac_recv() 453 static int at91emac_write_hwaddr(struct eth_device *netdev) in at91emac_write_hwaddr() 477 struct eth_device *dev; in at91emac_register()
|
A D | calxedaxgmac.c | 308 struct eth_device *dev; 341 static int xgmac_reset(struct eth_device *dev) in xgmac_reset() 359 static void xgmac_hwmacaddr(struct eth_device *dev) in xgmac_hwmacaddr() 369 static int xgmac_init(struct eth_device *dev, struct bd_info * bis) in xgmac_init() 428 static int xgmac_tx(struct eth_device *dev, void *packet, int length) in xgmac_tx() 456 static int xgmac_rx(struct eth_device *dev) in xgmac_rx() 481 static void xgmac_halt(struct eth_device *dev) in xgmac_halt() 504 struct eth_device *dev; in calxedaxgmac_initialize()
|
A D | dm9000x.c | 98 struct eth_device netdev; 282 static int dm9000_init(struct eth_device *dev, struct bd_info *bd) in dm9000_init() 404 static int dm9000_send(struct eth_device *netdev, void *packet, int length) in dm9000_send() 445 static void dm9000_halt(struct eth_device *netdev) in dm9000_halt() 459 static int dm9000_rx(struct eth_device *netdev) in dm9000_rx() 554 static void dm9000_get_enetaddr(struct eth_device *dev) in dm9000_get_enetaddr() 624 struct eth_device *dev = &(dm9000_info.netdev); in dm9000_initialize()
|
/u-boot/examples/standalone/ |
A D | smc91111_eeprom.c | 27 void dump_reg (struct eth_device *dev); 28 void dump_eeprom (struct eth_device *dev); 30 void copy_from_eeprom (struct eth_device *dev); 31 void print_MAC (struct eth_device *dev); 32 int read_eeprom_reg (struct eth_device *dev, int reg); 33 void print_macaddr (struct eth_device *dev); 40 struct eth_device dev; in smc91111_eeprom() 232 void copy_from_eeprom (struct eth_device *dev) in copy_from_eeprom() 250 void print_macaddr (struct eth_device *dev) in print_macaddr() 277 void dump_eeprom (struct eth_device *dev) in dump_eeprom() [all …]
|
/u-boot/net/ |
A D | eth_legacy.c | 44 static struct eth_device *eth_devices; 45 struct eth_device *eth_current; 52 void eth_set_dev(struct eth_device *dev) in eth_set_dev() 59 struct eth_device *dev, *target_dev; in eth_get_dev_by_name() 81 struct eth_device *dev, *target_dev; in eth_get_dev_by_index() 111 struct eth_device *dev; in on_ethaddr() 190 int eth_register(struct eth_device *dev) in eth_register() 192 struct eth_device *d; in eth_register() 216 struct eth_device *cur; in eth_unregister() 268 struct eth_device *dev = eth_devices; in eth_initialize() [all …]
|
/u-boot/drivers/qe/ |
A D | uec_phy.h | 136 struct eth_device *dev; 160 int (*mdio_read)(struct eth_device *dev, int mii_id, int reg); 161 void (*mdio_write)(struct eth_device *dev, int mii_id, int reg, 206 void uec_write_phy_reg(struct eth_device *dev, int mii_id, int regnum, 208 int uec_read_phy_reg(struct eth_device *dev, int mii_id, int regnum); 212 void change_phy_interface_mode(struct eth_device *dev,
|
/u-boot/drivers/usb/gadget/ |
A D | rndis.h | 230 struct eth_device *dev; 231 int (*ack)(struct eth_device *); 244 int rndis_register(int (*rndis_control_ack)(struct eth_device *)); 245 int rndis_set_param_dev(u8 configNr, struct eth_device *dev, int mtu,
|
/u-boot/arch/powerpc/cpu/mpc85xx/ |
A D | ether_fcc.c | 124 static int fec_send(struct eth_device *dev, void *packet, int length) in fec_send() 171 static int fec_recv(struct eth_device* dev) in fec_recv() 209 static int fec_init(struct eth_device* dev, struct bd_info *bis) in fec_init() 406 static void fec_halt(struct eth_device* dev) in fec_halt() 423 struct eth_device* dev; in fec_initialize() 428 dev = (struct eth_device*) malloc(sizeof *dev); in fec_initialize()
|