Lines Matching refs:dev
187 static int bcm6368_eth_free_pkt(struct udevice *dev, uchar *packet, int len) in bcm6368_eth_free_pkt() argument
189 struct bcm6368_eth_priv *priv = dev_get_priv(dev); in bcm6368_eth_free_pkt()
194 static int bcm6368_eth_recv(struct udevice *dev, int flags, uchar **packetp) in bcm6368_eth_recv() argument
196 struct bcm6368_eth_priv *priv = dev_get_priv(dev); in bcm6368_eth_recv()
201 static int bcm6368_eth_send(struct udevice *dev, void *packet, int length) in bcm6368_eth_send() argument
203 struct bcm6368_eth_priv *priv = dev_get_priv(dev); in bcm6368_eth_send()
214 static int bcm6368_eth_adjust_link(struct udevice *dev) in bcm6368_eth_adjust_link() argument
216 struct bcm6368_eth_priv *priv = dev_get_priv(dev); in bcm6368_eth_adjust_link()
248 dev_info(&priv->pdev->dev, "link DOWN on %s\n", in bcm6368_eth_adjust_link()
307 static int bcm6368_eth_start(struct udevice *dev) in bcm6368_eth_start() argument
309 struct bcm6368_eth_priv *priv = dev_get_priv(dev); in bcm6368_eth_start()
400 bcm6368_eth_adjust_link(dev); in bcm6368_eth_start()
405 static void bcm6368_eth_stop(struct udevice *dev) in bcm6368_eth_stop() argument
407 struct bcm6368_eth_priv *priv = dev_get_priv(dev); in bcm6368_eth_stop()
504 static int bcm6368_eth_probe(struct udevice *dev) in bcm6368_eth_probe() argument
506 struct eth_pdata *pdata = dev_get_platdata(dev); in bcm6368_eth_probe()
507 struct bcm6368_eth_priv *priv = dev_get_priv(dev); in bcm6368_eth_probe()
512 priv->base = dev_remap_addr(dev); in bcm6368_eth_probe()
518 num_ports = dev_read_u32_default(dev, "brcm,num-ports", ETH_MAX_PORT); in bcm6368_eth_probe()
523 ret = dma_get_by_name(dev, "tx", &priv->tx_dma); in bcm6368_eth_probe()
527 ret = dma_get_by_name(dev, "rx", &priv->rx_dma); in bcm6368_eth_probe()
536 ret = clk_get_by_index(dev, i, &clk); in bcm6368_eth_probe()
558 ret = reset_get_by_index(dev, i, &reset); in bcm6368_eth_probe()
577 if (dev_read_bool(dev, "brcm,rgmii-override")) in bcm6368_eth_probe()
579 if (dev_read_bool(dev, "brcm,rgmii-timing")) in bcm6368_eth_probe()
583 dev_for_each_subnode(node, dev) { in bcm6368_eth_probe()
621 ret = bcm6368_mdio_init(dev->name, priv); in bcm6368_eth_probe()