| /drivers/net/ |
| A D | ravb.c | 171 struct ravb_desc *desc = ð->tx_desc[eth->tx_desc_idx]; in ravb_send() 197 eth->tx_desc_idx = (eth->tx_desc_idx + 1) % (RAVB_NUM_TX_DESC - 1); in ravb_send() 204 struct ravb_rxdesc *desc = ð->rx_desc[eth->rx_desc_idx]; in ravb_recv() 229 struct ravb_rxdesc *desc = ð->rx_desc[eth->rx_desc_idx]; in ravb_free_pkt() 236 eth->rx_desc_idx = (eth->rx_desc_idx + 1) % RAVB_NUM_RX_DESC; in ravb_free_pkt() 237 desc = ð->rx_desc[eth->rx_desc_idx]; in ravb_free_pkt() 269 writel((uintptr_t)eth->base_desc, eth->iobase + RAVB_REG_DBAT); in ravb_base_desc_init() 286 eth->tx_desc[RAVB_NUM_TX_DESC - 1].dptr = (uintptr_t)eth->tx_desc; in ravb_tx_desc_init() 291 eth->base_desc[RAVB_TX_QUEUE_OFFSET].dptr = (uintptr_t)eth->tx_desc; in ravb_tx_desc_init() 308 eth->rx_desc[i].data.dptr = (uintptr_t)eth->rx_desc[i].packet; in ravb_rx_desc_init() [all …]
|
| A D | fec_mxc.c | 108 phy | reg, ð->mii_data); in fec_mdio_read() 416 &fec->eth->paddr1); in fecmxc_set_hwaddr() 480 &fec->eth->ecntrl); in fec_open() 483 &fec->eth->x_wmrk); in fec_open() 487 &fec->eth->ecntrl); in fec_open() 491 &fec->eth->ecntrl); in fec_open() 496 &fec->eth->ecntrl); in fec_open() 632 &fec->eth->x_cntrl); in fecmxc_halt() 648 &fec->eth->ecntrl); in fecmxc_halt() 1012 bus->priv = eth; in fec_get_miibus() [all …]
|
| A D | airoha_eth.c | 284 struct airoha_eth *eth; member 394 airoha_fe_maccr_init(eth); in airoha_fe_init() 623 struct airoha_eth *eth, in airoha_qdma_init() argument 628 qdma->eth = eth; in airoha_qdma_init() 649 struct airoha_eth *eth) in airoha_hw_init() argument 670 ret = airoha_fe_init(eth); in airoha_hw_init() 675 ret = airoha_qdma_init(dev, eth, ð->qdma[i]); in airoha_hw_init() 745 if (!eth->fe_regs) in airoha_eth_probe() 750 if (!eth->rsts.resets) in airoha_eth_probe() 756 if (!eth->xsi_rsts.resets) in airoha_eth_probe() [all …]
|
| A D | netconsole.c | 176 struct udevice *eth; in nc_send_packet() local 184 eth = eth_get_dev(); in nc_send_packet() 185 if (eth == NULL) in nc_send_packet() 189 if (eth_is_active(eth)) in nc_send_packet() 200 if (!eth_is_active(eth)) { in nc_send_packet() 298 struct udevice *eth; in nc_stdio_tstc() local 306 eth = eth_get_dev(); in nc_stdio_tstc() 307 if (eth_is_active(eth)) in nc_stdio_tstc()
|
| A D | sandbox-raw.c | 47 struct ethernet_hdr *eth = packet; in sb_eth_raw_send() local 49 if (ntohs(eth->et_protlen) == PROT_ARP) { in sb_eth_raw_send() 108 struct ethernet_hdr *eth = (void *)net_rx_packets[0]; in sb_eth_raw_recv() local 111 memcpy(eth->et_dest, pdata->enetaddr, ARP_HLEN); in sb_eth_raw_recv() 112 memset(eth->et_src, 0x01, ARP_HLEN); in sb_eth_raw_recv() 113 eth->et_protlen = htons(reply_arp ? PROT_ARP : PROT_IP); in sb_eth_raw_recv()
|
| A D | Makefile | 11 obj-$(CONFIG_BCM6348_ETH) += bcm6348-eth.o 12 obj-$(CONFIG_BCM6368_ETH) += bcm6368-eth.o 17 obj-$(CONFIG_DM_ETH_PHY) += eth-phy-uclass.o 74 obj-$(CONFIG_MT7620_ETH) += mt7620-eth.o 75 obj-$(CONFIG_MT7628_ETH) += mt7628-eth.o
|
| A D | sandbox.c | 133 struct ethhdr *eth = packet; in sandbox_eth_arp_req_to_reply() local 140 if (ntohs(eth->protlen) != PROT_ARP) in sandbox_eth_arp_req_to_reply() 158 memcpy(eth_recv->dst, eth->src, ETHADDR_LEN); in sandbox_eth_arp_req_to_reply() 192 struct ethhdr *eth = packet; in sandbox_eth_ping_req_to_reply() local 199 if (ntohs(eth->protlen) != PROT_IP) in sandbox_eth_ping_req_to_reply() 221 memcpy(eth_recv->dst, eth->src, ETHADDR_LEN); in sandbox_eth_ping_req_to_reply()
|
| A D | xilinx_emaclite.c | 461 struct ethernet_hdr *eth; in emaclite_recv() local 508 eth = (struct ethernet_hdr *)etherrxbuff; in emaclite_recv() 509 switch (ntohs(eth->et_protlen)) { in emaclite_recv()
|
| A D | fec_mxc.h | 241 struct ethernet_regs *eth; /* pointer to register'S base */ member
|
| A D | Kconfig | 15 This is currently implemented in net/eth-uclass.c 345 This driver is particularly useful in the test/dm/eth.c tests
|
| /drivers/net/mtk_eth/ |
| A D | mt7530.c | 27 mtk_mmd_ind_write(priv->epriv.eth, phy_addr, 0x1f, reg, val); in mt7530_core_reg_write() 107 return mtk_mii_read(priv->epriv.eth, addr, reg); in mt7530_mdio_read() 109 return mtk_mmd_ind_read(priv->epriv.eth, addr, devad, reg); in mt7530_mdio_read() 118 return mtk_mii_write(priv->epriv.eth, addr, reg, val); in mt7530_mdio_write() 120 return mtk_mmd_ind_write(priv->epriv.eth, addr, devad, reg, val); in mt7530_mdio_write() 160 mtk_ethsys_rmw(priv->epriv.eth, ETHSYS_CLKCFG0_REG, in mt7530_setup() 181 phy_val = mtk_mii_read(priv->epriv.eth, phy_addr, MII_BMCR); in mt7530_setup() 183 mtk_mii_write(priv->epriv.eth, phy_addr, MII_BMCR, phy_val); in mt7530_setup() 239 phy_val = mtk_mii_read(priv->epriv.eth, phy_addr, MII_BMCR); in mt7530_setup() 241 mtk_mii_write(priv->epriv.eth, phy_addr, MII_BMCR, phy_val); in mt7530_setup()
|
| A D | an8855.c | 373 ret = mtk_mii_write(priv->epriv.eth, priv->phy_base, 0x10, 0); in an8855_reg_write() 377 ret = mtk_mii_write(priv->epriv.eth, priv->phy_base, 0x11, in an8855_reg_write() 382 ret = mtk_mii_write(priv->epriv.eth, priv->phy_base, 0x12, in an8855_reg_write() 387 ret = mtk_mii_write(priv->epriv.eth, priv->phy_base, 0x13, in an8855_reg_write() 392 ret = mtk_mii_write(priv->epriv.eth, priv->phy_base, 0x14, in an8855_reg_write() 397 ret = mtk_mii_write(priv->epriv.eth, priv->phy_base, 0x1f, 0); in an8855_reg_write() 401 ret = mtk_mii_write(priv->epriv.eth, priv->phy_base, 0x10, 0); in an8855_reg_write() 933 return mtk_mii_read(priv->epriv.eth, addr, reg); in an8855_mdio_read() 935 return mtk_mmd_ind_read(priv->epriv.eth, addr, devad, reg); in an8855_mdio_read() 944 return mtk_mii_write(priv->epriv.eth, addr, reg, val); in an8855_mdio_write() [all …]
|
| A D | mt7988.c | 89 mtk_fe_rmw(priv->epriv.eth, PSE_NO_DROP_CFG_REG, 0, in mt7988_setup() 96 mtk_gmac_rmw(priv->epriv.eth, GMAC_MAC_MISC_REG, 0, BIT(0)); in mt7988_setup() 99 mtk_gmac_rmw(priv->epriv.eth, GMAC_XGMAC_STS_REG, 0, in mt7988_setup() 103 mtk_gmac_rmw(priv->epriv.eth, GMAC_GSW_CFG_REG, in mt7988_setup()
|
| A D | mt753x.c | 51 return __mt753x_mdio_reg_read(priv->epriv.eth, priv->smi_addr, reg, in mt753x_mdio_reg_read() 60 ret = mtk_mii_write(priv->epriv.eth, priv->smi_addr, 0x1f, reg >> 6); in mt753x_mdio_reg_write() 65 ret = mtk_mii_write(priv->epriv.eth, priv->smi_addr, (reg >> 2) & 0xf, in mt753x_mdio_reg_write() 71 return mtk_mii_write(priv->epriv.eth, priv->smi_addr, 0x10, data >> 16); in mt753x_mdio_reg_write()
|
| A D | mtk_eth.h | 54 struct mtk_eth_priv *eth; member
|
| A D | mtk_eth.c | 423 priv->swpriv->eth = priv; in mtk_switch_init()
|
| /drivers/net/fm/ |
| A D | Makefile | 6 obj-y += eth.o
|
| /drivers/net/octeon/ |
| A D | octeon_eth.c | 317 int eth; in octeon_eth_initialize() local 319 eth = cvmx_helper_get_port_fdt_node_offset(interface, index); in octeon_eth_initialize() 320 if (eth <= 0) { in octeon_eth_initialize()
|
| /drivers/usb/ |
| A D | Kconfig | 184 source "drivers/usb/eth/Kconfig"
|
| /drivers/pinctrl/meson/ |
| A D | pinctrl-meson-gxbb.c | 401 FUNCTION(eth),
|
| A D | pinctrl-meson-gxl.c | 648 FUNCTION(eth),
|
| A D | pinctrl-meson-axg.c | 863 FUNCTION(eth),
|
| A D | pinctrl-meson-g12a.c | 1160 FUNCTION(eth),
|
| /drivers/usb/gadget/ |
| A D | ether.c | 897 function = which_fn(eth); in config_buf()
|
| /drivers/pinctrl/renesas/ |
| A D | pfc-r8a7794.c | 4628 SH_PFC_FUNCTION(eth),
|