Lines Matching refs:dev

37 void __weak board_netphy_reset(void *dev)  in board_netphy_reset()  argument
39 struct pic32eth_dev *priv = dev; in board_netphy_reset()
89 static int pic32_phy_init(struct pic32eth_dev *priv, struct udevice *dev) in pic32_phy_init() argument
97 dev, priv->phyif); in pic32_phy_init()
133 printf("%s: No link.\n", phydev->dev->name); in pic32_mac_adjust_link()
153 printf("%s: Speed was bad\n", phydev->dev->name); in pic32_mac_adjust_link()
321 static int pic32_eth_start(struct udevice *dev) in pic32_eth_start() argument
323 struct eth_pdata *pdata = dev_get_platdata(dev); in pic32_eth_start()
324 struct pic32eth_dev *priv = dev_get_priv(dev); in pic32_eth_start()
348 static void pic32_eth_stop(struct udevice *dev) in pic32_eth_stop() argument
350 struct pic32eth_dev *priv = dev_get_priv(dev); in pic32_eth_stop()
384 static int pic32_eth_send(struct udevice *dev, void *packet, int length) in pic32_eth_send() argument
386 struct pic32eth_dev *priv = dev_get_priv(dev); in pic32_eth_send()
442 static int pic32_eth_recv(struct udevice *dev, int flags, uchar **packetp) in pic32_eth_recv() argument
444 struct pic32eth_dev *priv = dev_get_priv(dev); in pic32_eth_recv()
487 static int pic32_eth_free_pkt(struct udevice *dev, uchar *packet, int length) in pic32_eth_free_pkt() argument
489 struct pic32eth_dev *priv = dev_get_priv(dev); in pic32_eth_free_pkt()
526 static int pic32_eth_probe(struct udevice *dev) in pic32_eth_probe() argument
528 struct eth_pdata *pdata = dev_get_platdata(dev); in pic32_eth_probe()
529 struct pic32eth_dev *priv = dev_get_priv(dev); in pic32_eth_probe()
537 addr = fdtdec_get_addr_size(gd->fdt_blob, dev_of_offset(dev), "reg", in pic32_eth_probe()
547 phy_mode = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), "phy-mode", in pic32_eth_probe()
557 offset = fdtdec_lookup_phandle(gd->fdt_blob, dev_of_offset(dev), in pic32_eth_probe()
563 gpio_request_by_name_nodev(dev_ofnode(dev), "reset-gpios", 0, in pic32_eth_probe()
573 return pic32_phy_init(priv, dev); in pic32_eth_probe()
576 static int pic32_eth_remove(struct udevice *dev) in pic32_eth_remove() argument
578 struct pic32eth_dev *priv = dev_get_priv(dev); in pic32_eth_remove()
581 dm_gpio_free(dev, &priv->rst_gpio); in pic32_eth_remove()