Home
last modified time | relevance | path

Searched refs:eth_dev (Results 1 – 13 of 13) sorted by relevance

/OK3568_Linux_fs/u-boot/drivers/net/
H A Deth-phy-uclass.c17 int eth_phy_binds_nodes(struct udevice *eth_dev) in eth_phy_binds_nodes() argument
23 mdio_node = dev_read_subnode(eth_dev, "mdio"); in eth_phy_binds_nodes()
26 eth_dev->name); in eth_phy_binds_nodes()
35 ret = device_bind_driver_to_node(eth_dev, in eth_phy_binds_nodes()
49 int eth_phy_set_mdio_bus(struct udevice *eth_dev, struct mii_dev *mdio_bus) in eth_phy_set_mdio_bus() argument
56 if (dev->parent == eth_dev) { in eth_phy_set_mdio_bus()
67 struct mii_dev *eth_phy_get_mdio_bus(struct udevice *eth_dev) in eth_phy_get_mdio_bus() argument
74 ret = uclass_get_device_by_phandle(UCLASS_ETH_PHY, eth_dev, in eth_phy_get_mdio_bus()
77 if (eth_dev != phy_dev->parent) { in eth_phy_get_mdio_bus()
84 printf("Get shared mii bus on %s\n", eth_dev->name); in eth_phy_get_mdio_bus()
[all …]
H A Dep93xx_eth.c29 #define GET_PRIV(eth_dev) ((struct ep93xx_priv *)(eth_dev)->priv) argument
30 #define GET_REGS(eth_dev) (GET_PRIV(eth_dev)->regs) argument
/OK3568_Linux_fs/kernel/drivers/net/wireless/cisco/
H A Dairo_cs.c60 struct net_device *eth_dev; member
85 if (((struct local_info *)link->priv)->eth_dev) { in airo_detach()
86 stop_airo_card(((struct local_info *)link->priv)->eth_dev, in airo_detach()
89 ((struct local_info *)link->priv)->eth_dev = NULL; in airo_detach()
122 ((struct local_info *)link->priv)->eth_dev = in airo_config()
125 if (!((struct local_info *)link->priv)->eth_dev) in airo_config()
145 netif_device_detach(local->eth_dev); in airo_suspend()
155 reset_airo_card(local->eth_dev); in airo_resume()
156 netif_device_attach(local->eth_dev); in airo_resume()
/OK3568_Linux_fs/kernel/drivers/usb/gadget/function/
H A Du_ether.c53 struct eth_dev { struct
145 struct eth_dev *dev = netdev_priv(net); in eth_get_drvinfo()
164 static void defer_kevent(struct eth_dev *dev, int flag) in defer_kevent()
177 rx_submit(struct eth_dev *dev, struct usb_request *req, gfp_t gfp_flags) in rx_submit()
258 struct eth_dev *dev = ep->driver_data; in rx_complete()
386 static int alloc_requests(struct eth_dev *dev, struct gether *link, unsigned n) in alloc_requests()
405 static void rx_fill(struct eth_dev *dev, gfp_t gfp_flags) in rx_fill()
429 struct eth_dev *dev = container_of(work, struct eth_dev, work); in eth_work()
443 struct eth_dev *dev = ep->driver_data; in tx_complete()
477 struct eth_dev *dev = netdev_priv(net); in eth_start_xmit()
[all …]
H A Du_ether.h39 struct eth_dev;
56 struct eth_dev *ioport;
90 struct eth_dev *gether_setup_name(struct usb_gadget *g,
107 static inline struct eth_dev *gether_setup(struct usb_gadget *g, in gether_setup()
259 void gether_cleanup(struct eth_dev *dev);
/OK3568_Linux_fs/kernel/drivers/net/wireless/atmel/
H A Datmel_cs.c70 struct net_device *eth_dev; member
142 ((struct local_info *)link->priv)->eth_dev = in atmel_config()
149 if (!((struct local_info *)link->priv)->eth_dev) in atmel_config()
162 struct net_device *dev = ((struct local_info *)link->priv)->eth_dev; in atmel_release()
168 ((struct local_info *)link->priv)->eth_dev = NULL; in atmel_release()
177 netif_device_detach(local->eth_dev); in atmel_suspend()
186 atmel_open(local->eth_dev); in atmel_resume()
187 netif_device_attach(local->eth_dev); in atmel_resume()
/OK3568_Linux_fs/u-boot/include/
H A Deth_phy.h12 int eth_phy_binds_nodes(struct udevice *eth_dev);
13 int eth_phy_set_mdio_bus(struct udevice *eth_dev, struct mii_dev *mdio_bus);
14 struct mii_dev *eth_phy_get_mdio_bus(struct udevice *eth_dev);
H A Dusb_ether.h31 struct eth_device eth_dev; /* used with eth_register */
/OK3568_Linux_fs/u-boot/drivers/usb/gadget/
H A Dether.c104 struct eth_dev { struct
146 struct eth_dev ethdev; argument
161 static inline int is_cdc(struct eth_dev *dev) in is_cdc()
173 static inline int rndis_active(struct eth_dev *dev) in rndis_active()
928 static void eth_start(struct eth_dev *dev, gfp_t gfp_flags);
929 static int alloc_requests(struct eth_dev *dev, unsigned n, gfp_t gfp_flags);
932 set_ether_config(struct eth_dev *dev, gfp_t gfp_flags) in set_ether_config()
1009 static void eth_reset_config(struct eth_dev *dev) in eth_reset_config()
1049 static int eth_set_config(struct eth_dev *dev, unsigned number, in eth_set_config()
1131 struct eth_dev *dev = ep->driver_data; in eth_status_complete()
[all …]
/OK3568_Linux_fs/u-boot/drivers/net/fsl-mc/
H A Dmc.c167 const char *propname, struct eth_device *eth_dev, in mc_fixup_mac_addr() argument
179 enetaddr_32[i] = cpu_to_fdt32(eth_dev->enetaddr[i]); in mc_fixup_mac_addr()
185 val = eth_dev->enetaddr; in mc_fixup_mac_addr()
193 if (!eth_env_get_enetaddr_by_index("eth", eth_dev->index, in mc_fixup_mac_addr()
243 struct eth_device *eth_dev) in mc_fixup_dpl_mac_addr() argument
257 err = mc_fixup_mac_addr(blob, dpmacoff, "mac_addr", eth_dev, in mc_fixup_dpl_mac_addr()
278 return mc_fixup_mac_addr(blob, dpnioff, "mac_addr", eth_dev, in mc_fixup_dpl_mac_addr()
283 struct eth_device *eth_dev) in mc_fixup_dpc_mac_addr() argument
319 return mc_fixup_mac_addr(blob, noff, "port_mac_address", eth_dev, in mc_fixup_dpc_mac_addr()
327 struct eth_device *eth_dev; in mc_fixup_mac_addrs() local
[all …]
/OK3568_Linux_fs/external/dpdk/pcie/e1000/
H A Digb_ethdev.c672 static int igb_ntuple_filter_uninit(struct rte_eth_dev *eth_dev) in igb_ntuple_filter_uninit() argument
675 E1000_DEV_PRIVATE_TO_FILTER_INFO(eth_dev->data->dev_private); in igb_ntuple_filter_uninit()
696 static int igb_flex_filter_uninit(struct rte_eth_dev *eth_dev) in igb_flex_filter_uninit() argument
699 E1000_DEV_PRIVATE_TO_FILTER_INFO(eth_dev->data->dev_private); in igb_flex_filter_uninit()
729 eth_igb_dev_init(struct rte_eth_dev *eth_dev) in eth_igb_dev_init() argument
732 struct rte_pci_device *pci_dev = RTE_ETH_DEV_TO_PCI(eth_dev); in eth_igb_dev_init()
734 E1000_DEV_PRIVATE_TO_HW(eth_dev->data->dev_private); in eth_igb_dev_init()
736 E1000_DEV_PRIVATE_TO_VFTA(eth_dev->data->dev_private); in eth_igb_dev_init()
738 E1000_DEV_PRIVATE_TO_FILTER_INFO(eth_dev->data->dev_private); in eth_igb_dev_init()
740 E1000_DEV_PRIVATE(eth_dev->data->dev_private); in eth_igb_dev_init()
[all …]
/OK3568_Linux_fs/u-boot/drivers/usb/eth/
H A Dusb_ether.c206 if (&usb_eth[i].eth_dev == dev) in is_eth_dev_on_usb_host()
227 eth = &usb_eth[usb_max_eth_dev].eth_dev; in probe_valid_drivers()
265 eth_unregister(&usb_eth[i].eth_dev); in usb_host_eth_scan()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/freescale/fman/
H A Dmac.c64 struct platform_device *eth_dev; member
870 priv->eth_dev = dpaa_eth_add_device(fman_id, mac_dev); in mac_probe()
871 if (IS_ERR(priv->eth_dev)) { in mac_probe()
874 priv->eth_dev = NULL; in mac_probe()
891 platform_device_unregister(mac_dev->priv->eth_dev); in mac_remove()