Lines Matching refs:sh_eth_dev
70 static int sh_eth_send_common(struct sh_eth_dev *eth, void *packet, int len) in sh_eth_send_common()
127 static int sh_eth_recv_start(struct sh_eth_dev *eth) in sh_eth_recv_start()
143 static void sh_eth_recv_finish(struct sh_eth_dev *eth) in sh_eth_recv_finish()
163 static int sh_eth_reset(struct sh_eth_dev *eth) in sh_eth_reset()
196 static int sh_eth_tx_desc_init(struct sh_eth_dev *eth) in sh_eth_tx_desc_init()
249 static int sh_eth_rx_desc_init(struct sh_eth_dev *eth) in sh_eth_rx_desc_init()
322 static void sh_eth_tx_desc_free(struct sh_eth_dev *eth) in sh_eth_tx_desc_free()
332 static void sh_eth_rx_desc_free(struct sh_eth_dev *eth) in sh_eth_rx_desc_free()
347 static int sh_eth_desc_init(struct sh_eth_dev *eth) in sh_eth_desc_init()
379 static void sh_eth_mac_regs_config(struct sh_eth_dev *eth, unsigned char *mac) in sh_eth_mac_regs_config()
426 static int sh_eth_phy_regs_config(struct sh_eth_dev *eth) in sh_eth_phy_regs_config()
474 static void sh_eth_start(struct sh_eth_dev *eth) in sh_eth_start()
485 static void sh_eth_stop(struct sh_eth_dev *eth) in sh_eth_stop()
492 static int sh_eth_init_common(struct sh_eth_dev *eth, unsigned char *mac) in sh_eth_init_common()
509 static int sh_eth_start_common(struct sh_eth_dev *eth) in sh_eth_start_common()
530 static int sh_eth_phy_config_legacy(struct sh_eth_dev *eth) in sh_eth_phy_config_legacy()
548 struct sh_eth_dev *eth = dev->priv; in sh_eth_send_legacy()
553 static int sh_eth_recv_common(struct sh_eth_dev *eth) in sh_eth_recv_common()
576 struct sh_eth_dev *eth = dev->priv; in sh_eth_recv_legacy()
583 struct sh_eth_dev *eth = dev->priv; in sh_eth_init_legacy()
610 struct sh_eth_dev *eth = dev->priv; in sh_eth_halt_legacy()
618 struct sh_eth_dev *eth = NULL; in sh_eth_initialize()
622 eth = (struct sh_eth_dev *)malloc(sizeof(struct sh_eth_dev)); in sh_eth_initialize()
636 memset(eth, 0, sizeof(struct sh_eth_dev)); in sh_eth_initialize()
687 struct sh_eth_dev shdev;
698 struct sh_eth_dev *eth = &priv->shdev; in sh_ether_send()
706 struct sh_eth_dev *eth = &priv->shdev; in sh_ether_recv()
731 struct sh_eth_dev *eth = &priv->shdev; in sh_ether_free_pkt()
746 struct sh_eth_dev *eth = &priv->shdev; in sh_ether_write_hwaddr()
759 struct sh_eth_dev *eth = &priv->shdev; in sh_eth_phy_config()
781 struct sh_eth_dev *eth = &priv->shdev; in sh_ether_start()
803 struct sh_eth_dev *eth = &priv->shdev; in sh_ether_stop()
814 struct sh_eth_dev *eth = &priv->shdev; in sh_ether_probe()
890 struct sh_eth_dev *eth = &priv->shdev; in sh_ether_remove()
975 struct sh_eth_dev *eth = bus->priv; in sh_eth_bb_mdio_active()
985 struct sh_eth_dev *eth = bus->priv; in sh_eth_bb_mdio_tristate()
995 struct sh_eth_dev *eth = bus->priv; in sh_eth_bb_set_mdio()
1010 struct sh_eth_dev *eth = bus->priv; in sh_eth_bb_get_mdio()
1020 struct sh_eth_dev *eth = bus->priv; in sh_eth_bb_set_mdc()