Home
last modified time | relevance | path

Searched refs:dev (Results 1 – 10 of 10) sorted by relevance

/net/
A Deth-uclass.c128 if (dev && !device_active(dev)) { in eth_set_dev()
131 dev = NULL; in eth_set_dev()
232 if (!dev || !device_active(dev)) in eth_write_hwaddr()
248 ret = eth_get_ops(dev)->write_hwaddr(dev); in eth_write_hwaddr()
298 ret = eth_get_ops(dev)->start(dev); in eth_start_udev()
407 if (!dev || !device_active(dev)) in eth_is_active()
490 if (!dev) { in eth_initialize()
512 printf("eth%d: %s", dev_seq(dev), dev->name); in eth_initialize()
606 ret = eth_get_ops(dev)->read_rom_hwaddr(dev); in eth_post_probe()
634 dev->name, dev_seq(dev), pdata->enetaddr); in eth_post_probe()
[all …]
A Ddsa-uclass.c31 if (!dev) in dsa_set_tagging()
37 priv = dev_get_uclass_priv(dev); in dsa_set_tagging()
56 for (device_find_first_child(dev, &pdev); in dsa_port_get_ofnode()
72 if (!dev) in dsa_get_master()
75 priv = dev_get_uclass_priv(dev); in dsa_get_master()
89 struct dsa_ops *ops = dsa_get_ops(dev); in dsa_port_start()
116 struct dsa_ops *ops = dsa_get_ops(dev); in dsa_port_stop()
140 struct dsa_ops *ops = dsa_get_ops(dev); in dsa_port_send()
209 priv = dev_get_uclass_priv(dev); in dsa_port_free_pkt()
301 master = dsa_get_master(dev); in dsa_port_probe()
[all …]
A Dmdio-uclass.c33 static int dm_mdio_post_bind(struct udevice *dev) in dm_mdio_post_bind() argument
38 if (dev_has_ofnode(dev)) { in dm_mdio_post_bind()
39 dt_name = dev_read_string(dev, "device-name"); in dm_mdio_post_bind()
42 device_set_name(dev, dt_name); in dm_mdio_post_bind()
50 if (strchr(dev->name, ' ')) { in dm_mdio_post_bind()
52 dev->name); in dm_mdio_post_bind()
57 return dm_scan_fdt_dev(dev); in dm_mdio_post_bind()
169 dev_err(dev, "couldn't allocate mii_bus\n"); in dm_mdio_post_probe()
176 pdata->mii_bus->priv = dev; in dm_mdio_post_probe()
195 mdio_bind_phy_nodes(dev); in dm_mdio_post_probe()
[all …]
A Deth_bootdev.c22 static int eth_get_bootflow(struct udevice *dev, struct bootflow_iter *iter, in eth_get_bootflow() argument
42 snprintf(name, sizeof(name), "%s.%d", dev->name, iter->part); in eth_get_bootflow()
58 static int eth_bootdev_bind(struct udevice *dev) in eth_bootdev_bind() argument
60 struct bootdev_uc_plat *ucp = dev_get_uclass_plat(dev); in eth_bootdev_bind()
83 struct udevice *dev = NULL; in eth_bootdev_hunt() local
96 uclass_foreach_dev_probe(UCLASS_ETH, dev) in eth_bootdev_hunt()
A Deth_common.c114 void *dev = NULL; in eth_set_current() local
117 dev = eth_get_dev_by_name(ethprime); in eth_set_current()
118 if (dev) in eth_set_current()
119 eth_set_dev(dev); in eth_set_current()
A Dnet-common.c36 struct udevice *dev; in net_sntp_set_rtc() local
41 ret = uclass_get_device(UCLASS_RTC, 0, &dev); in net_sntp_set_rtc()
45 dm_rtc_set(dev, &tm); in net_sntp_set_rtc()
A Deth_internal.h16 void eth_set_dev(struct udevice *dev);
/net/lwip/
A Ddhcp.c116 struct udevice *dev; in do_dhcp() local
121 dev = eth_get_dev(); in do_dhcp()
122 if (!dev) { in do_dhcp()
127 ret = dhcp_loop(dev); in do_dhcp()
A Dwget.c65 struct udevice *dev; in mbedtls_hardware_poll() local
70 ret = uclass_get_device(UCLASS_RNG, 0, &dev); in mbedtls_hardware_poll()
75 ret = dm_rng_read(dev, output, len); in mbedtls_hardware_poll()
A Dnet-lwip.c106 static int get_udev_ipv4_info(struct udevice *dev, ip4_addr_t *ip, in get_udev_ipv4_info() argument
112 int idx = dev_seq(dev); in get_udev_ipv4_info()

Completed in 26 milliseconds