Home
last modified time | relevance | path

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

12345

/OK3568_Linux_fs/u-boot/drivers/net/
H A Dks8851_mll.c106 static u8 ks_rdreg8(struct eth_device *dev, u16 offset) in ks_rdreg8()
116 static u16 ks_rdreg16(struct eth_device *dev, u16 offset) in ks_rdreg16()
123 static void ks_wrreg8(struct eth_device *dev, u16 offset, u8 val) in ks_wrreg8()
132 static void ks_wrreg16(struct eth_device *dev, u16 offset, u16 val) in ks_wrreg16()
145 static inline void ks_inblk(struct eth_device *dev, u16 *wptr, u32 len) in ks_inblk()
159 static inline void ks_outblk(struct eth_device *dev, u16 *wptr, u32 len) in ks_outblk()
167 static void ks_enable_int(struct eth_device *dev) in ks_enable_int()
172 static void ks_set_powermode(struct eth_device *dev, unsigned pwrmode) in ks_set_powermode()
188 static void ks_read_config(struct eth_device *dev) in ks_read_config()
228 static void ks_soft_reset(struct eth_device *dev, unsigned op) in ks_soft_reset()
[all …]
H A 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 …]
H A 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 …]
H A Ddc2114x.c146 static void sendto_srom(struct eth_device* dev, u_int command, u_long addr);
147 static int getfrom_srom(struct eth_device* dev, u_long addr);
148 static int do_eeprom_cmd(struct eth_device *dev, u_long ioaddr,int cmd,int cmd_len);
149 static int do_read_eeprom(struct eth_device *dev,u_long ioaddr,int location,int addr_len);
152 static int write_srom(struct eth_device *dev, u_long ioaddr, int index, int new_value);
153 static void update_srom(struct eth_device *dev, bd_t *bis);
156 static int read_srom(struct eth_device *dev, u_long ioaddr, int index);
157 static void read_hw_addr(struct eth_device* dev, bd_t * bis);
159 static void send_setup_frame(struct eth_device* dev, bd_t * bis);
161 static int dc21x4x_init(struct eth_device* dev, bd_t* bis);
[all …]
H A 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 …]
H A Dsmc911x.c17 u32 pkt_data_pull(struct eth_device *dev, u32 addr) \
19 void pkt_data_push(struct eth_device *dev, u32 addr, u32 val) \
22 static void smc911x_handle_mac_address(struct eth_device *dev) in smc911x_handle_mac_address()
35 static int smc911x_eth_phy_read(struct eth_device *dev, in smc911x_eth_phy_read()
52 static int smc911x_eth_phy_write(struct eth_device *dev, in smc911x_eth_phy_write()
67 static int smc911x_phy_reset(struct eth_device *dev) in smc911x_phy_reset()
81 static void smc911x_phy_configure(struct eth_device *dev) in smc911x_phy_configure()
112 static void smc911x_enable(struct eth_device *dev) in smc911x_enable()
129 static int smc911x_init(struct eth_device *dev, bd_t * bd) in smc911x_init()
148 static int smc911x_send(struct eth_device *dev, void *packet, int length) in smc911x_send()
[all …]
H A Dlan91c96.c116 static int smc_get_ethaddr(bd_t *bd, struct eth_device *dev);
117 static int get_rom_mac(struct eth_device *dev, unsigned char *v_rom_mac);
143 void dump_memory_info(struct eth_device *dev) in dump_memory_info()
164 static int poll4int (struct eth_device *dev, byte mask, int timeout) in poll4int()
205 static void smc_reset(struct eth_device *dev) in smc_reset()
237 static void smc_enable(struct eth_device *dev) in smc_enable()
271 static void smc_shutdown(struct eth_device *dev) in smc_shutdown()
304 static int smc_send_packet(struct eth_device *dev, void *packet, in smc_send_packet()
473 static int smc_open(bd_t *bd, struct eth_device *dev) in smc_open()
516 static int smc_rcv(struct eth_device *dev) in smc_rcv()
[all …]
H A Deepro100.c217 static void init_rx_ring (struct eth_device *dev);
218 static void purge_tx_ring (struct eth_device *dev);
220 static void read_hw_addr (struct eth_device *dev, bd_t * bis);
222 static int eepro100_init (struct eth_device *dev, bd_t * bis);
223 static int eepro100_send(struct eth_device *dev, void *packet, int length);
224 static int eepro100_recv (struct eth_device *dev);
225 static void eepro100_halt (struct eth_device *dev);
235 static inline int INW (struct eth_device *dev, u_long addr) in INW()
240 static inline void OUTW (struct eth_device *dev, int command, u_long addr) in OUTW()
245 static inline void OUTL (struct eth_device *dev, int command, u_long addr) in OUTL()
[all …]
H A Dcs8900.c51 static u16 get_reg_init_bus(struct eth_device *dev, int regno) in get_reg_init_bus()
68 static u16 get_reg(struct eth_device *dev, int regno) in get_reg()
76 static void put_reg(struct eth_device *dev, int regno, u16 val) in put_reg()
83 static void cs8900_reset(struct eth_device *dev) in cs8900_reset()
101 static void cs8900_reginit(struct eth_device *dev) in cs8900_reginit()
116 void cs8900_get_enetaddr(struct eth_device *dev) in cs8900_get_enetaddr()
139 void cs8900_halt(struct eth_device *dev) in cs8900_halt()
148 static int cs8900_init(struct eth_device *dev, bd_t * bd) in cs8900_init()
172 static int cs8900_recv(struct eth_device *dev) in cs8900_recv()
202 static int cs8900_send(struct eth_device *dev, void *packet, int length) in cs8900_send()
[all …]
H A Dpcnet.c96 static u16 pcnet_read_csr(struct eth_device *dev, int index) in pcnet_read_csr()
102 static void pcnet_write_csr(struct eth_device *dev, int index, u16 val) in pcnet_write_csr()
108 static u16 pcnet_read_bcr(struct eth_device *dev, int index) in pcnet_read_bcr()
114 static void pcnet_write_bcr(struct eth_device *dev, int index, u16 val) in pcnet_write_bcr()
120 static void pcnet_reset(struct eth_device *dev) in pcnet_reset()
125 static int pcnet_check(struct eth_device *dev) in pcnet_check()
131 static int pcnet_init (struct eth_device *dev, bd_t * bis);
132 static int pcnet_send(struct eth_device *dev, void *packet, int length);
133 static int pcnet_recv (struct eth_device *dev);
134 static void pcnet_halt (struct eth_device *dev);
[all …]
H A 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 …]
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()
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 …]
H A Dftgmac100.c45 static int ftgmac100_mdiobus_read(struct eth_device *dev, int phy_addr, in ftgmac100_mdiobus_read()
80 static int ftgmac100_mdiobus_write(struct eth_device *dev, int phy_addr, in ftgmac100_mdiobus_write()
118 int ftgmac100_phy_read(struct eth_device *dev, int addr, int reg, u16 *value) in ftgmac100_phy_read()
128 int ftgmac100_phy_write(struct eth_device *dev, int addr, int reg, u16 value) in ftgmac100_phy_write()
136 static int ftgmac100_phy_reset(struct eth_device *dev) in ftgmac100_phy_reset()
170 static int ftgmac100_phy_init(struct eth_device *dev) in ftgmac100_phy_init()
252 static int ftgmac100_update_link_speed(struct eth_device *dev) in ftgmac100_update_link_speed()
319 static void ftgmac100_reset(struct eth_device *dev) in ftgmac100_reset()
334 static void ftgmac100_set_mac(struct eth_device *dev, in ftgmac100_set_mac()
347 static void ftgmac100_set_mac_from_env(struct eth_device *dev) in ftgmac100_set_mac_from_env()
[all …]
H A Dbcm-sf2-eth.c33 static int bcm_sf2_eth_init(struct eth_device *dev) in bcm_sf2_eth_init()
72 static int bcm_sf2_eth_send(struct eth_device *dev, void *packet, int length) in bcm_sf2_eth_send()
103 static int bcm_sf2_eth_receive(struct eth_device *dev) in bcm_sf2_eth_receive()
138 static int bcm_sf2_eth_write_hwaddr(struct eth_device *dev) in bcm_sf2_eth_write_hwaddr()
149 static int bcm_sf2_eth_open(struct eth_device *dev, bd_t *bt) in bcm_sf2_eth_open()
188 static void bcm_sf2_eth_close(struct eth_device *dev) in bcm_sf2_eth_close()
202 struct eth_device *dev; in bcm_sf2_eth_register()
206 dev = (struct eth_device *)malloc(sizeof(struct eth_device)); in bcm_sf2_eth_register()
H A Dsmc911x.h23 static inline u32 __smc911x_reg_read(struct eth_device *dev, u32 offset) in __smc911x_reg_read()
27 u32 smc911x_reg_read(struct eth_device *dev, u32 offset)
30 static inline void __smc911x_reg_write(struct eth_device *dev, in __smc911x_reg_write()
35 void smc911x_reg_write(struct eth_device *dev, u32 offset, u32 val)
38 static inline u32 smc911x_reg_read(struct eth_device *dev, u32 offset) in smc911x_reg_read()
43 static inline void smc911x_reg_write(struct eth_device *dev, in smc911x_reg_write()
405 static u32 smc911x_get_mac_csr(struct eth_device *dev, u8 reg) in smc911x_get_mac_csr()
417 static void smc911x_set_mac_csr(struct eth_device *dev, u8 reg, u32 data) in smc911x_set_mac_csr()
427 static int smc911x_detect_chip(struct eth_device *dev) in smc911x_detect_chip()
454 static void smc911x_reset(struct eth_device *dev) in smc911x_reset()
H A Dxilinx_ll_temac_sdma.h249 void ll_temac_collect_xlplb_sdma_reg_addr(struct eth_device *dev);
252 int ll_temac_init_sdma(struct eth_device *dev);
255 int ll_temac_halt_sdma(struct eth_device *dev);
258 int ll_temac_reset_sdma(struct eth_device *dev);
261 int ll_temac_recv_sdma(struct eth_device *dev);
264 int ll_temac_send_sdma(struct eth_device *dev, void *packet, int length);
H A Dftmac110.c66 static int ftmac110_reset(struct eth_device *dev);
68 static uint16_t mdio_read(struct eth_device *dev, in mdio_read()
97 static void mdio_write(struct eth_device *dev, in mdio_write()
121 static uint32_t ftmac110_phyqry(struct eth_device *dev) in ftmac110_phyqry()
193 static int ftmac110_reset(struct eth_device *dev) in ftmac110_reset()
259 static int ftmac110_probe(struct eth_device *dev, bd_t *bis) in ftmac110_probe()
269 static void ftmac110_halt(struct eth_device *dev) in ftmac110_halt()
280 static int ftmac110_send(struct eth_device *dev, void *pkt, int len) in ftmac110_send()
326 static int ftmac110_recv(struct eth_device *dev) in ftmac110_recv()
372 struct eth_device *dev; in ftmac110_mdio_read()
[all …]
H A Dmpc8xx_fec.c41 static int mii_discover_phy(struct eth_device *dev);
111 static int fec_send(struct eth_device *dev, void *packet, int length);
112 static int fec_recv(struct eth_device *dev);
113 static int fec_init(struct eth_device *dev, bd_t *bd);
114 static void fec_halt(struct eth_device *dev);
121 struct eth_device *dev; in fec_initialize()
172 static int fec_send(struct eth_device *dev, void *packet, int length) in fec_send()
217 static int fec_recv(struct eth_device *dev) in fec_recv()
296 static inline void fec_10Mbps(struct eth_device *dev) in fec_10Mbps()
309 static inline void fec_100Mbps(struct eth_device *dev) in fec_100Mbps()
[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()
/OK3568_Linux_fs/u-boot/examples/standalone/
H A Dsmc91111_eeprom.c27 void dump_reg (struct eth_device *dev);
28 void dump_eeprom (struct eth_device *dev);
29 int write_eeprom_reg (struct eth_device *dev, int value, int reg);
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()
[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()
/OK3568_Linux_fs/u-boot/net/
H A Deth_legacy.c39 static struct eth_device *eth_devices;
40 struct eth_device *eth_current;
47 void eth_set_dev(struct eth_device *dev) in eth_set_dev()
52 struct eth_device *eth_get_dev_by_name(const char *devname) in eth_get_dev_by_name()
54 struct eth_device *dev, *target_dev; in eth_get_dev_by_name()
74 struct eth_device *eth_get_dev_by_index(int index) in eth_get_dev_by_index()
76 struct eth_device *dev, *target_dev; in eth_get_dev_by_index()
106 struct eth_device *dev; in on_ethaddr()
134 int eth_write_hwaddr(struct eth_device *dev, const char *base_name, in eth_write_hwaddr()
185 int eth_register(struct eth_device *dev) in eth_register()
[all …]
/OK3568_Linux_fs/u-boot/include/
H A 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 …]
H A Dusb_ether.h31 struct eth_device eth_dev; /* used with eth_register */
115 struct eth_device *eth);
121 struct eth_device *eth);
127 struct eth_device *eth);
133 struct eth_device *eth);
139 struct eth_device *eth);
/OK3568_Linux_fs/u-boot/drivers/qe/
H A Duec_phy.h164 struct eth_device *dev;
188 int (*mdio_read) (struct eth_device * dev, int mii_id, int reg);
189 void (*mdio_write) (struct eth_device * dev, int mii_id, int reg,
234 void uec_write_phy_reg (struct eth_device *dev, int mii_id, int regnum,
236 int uec_read_phy_reg (struct eth_device *dev, int mii_id, int regnum);

12345