Lines Matching defs:nic
536 struct nic { struct
541 u16 (*mdio_ctrl)(struct nic *nic, u32 addr, u32 dir, u32 reg, u16 data); argument
543 struct rx *rxs ____cacheline_aligned;
544 struct rx *rx_to_use;
545 struct rx *rx_to_clean;
546 struct rfd blank_rfd;
547 enum ru_state ru_running;
549 spinlock_t cb_lock ____cacheline_aligned;
550 spinlock_t cmd_lock;
551 struct csr __iomem *csr;
552 enum scb_cmd_lo cuc_cmd;
553 unsigned int cbs_avail;
554 struct napi_struct napi;
555 struct cb *cbs;
556 struct cb *cb_to_use;
557 struct cb *cb_to_send;
558 struct cb *cb_to_clean;
559 __le16 tx_command;
562 enum {
568 } flags ____cacheline_aligned;
570 enum mac mac;
571 enum phy phy;
572 struct params params;
573 struct timer_list watchdog;
574 struct mii_if_info mii;
575 struct work_struct tx_timeout_task;
576 enum loopback loopback;
578 struct mem *mem;
579 dma_addr_t dma_addr;
581 struct dma_pool *cbs_pool;
605 static inline void e100_write_flush(struct nic *nic) in e100_write_flush()
612 static void e100_enable_irq(struct nic *nic) in e100_enable_irq()
622 static void e100_disable_irq(struct nic *nic) in e100_disable_irq()
632 static void e100_hw_reset(struct nic *nic) in e100_hw_reset()
647 static int e100_self_test(struct nic *nic) in e100_self_test()
680 static void e100_eeprom_write(struct nic *nic, u16 addr_len, u16 addr, __le16 data) in e100_eeprom_write()
718 static __le16 e100_eeprom_read(struct nic *nic, u16 *addr_len, u16 addr) in e100_eeprom_read()
759 static int e100_eeprom_load(struct nic *nic) in e100_eeprom_load()
785 static int e100_eeprom_save(struct nic *nic, u16 start, u16 count) in e100_eeprom_save()
812 static int e100_exec_cmd(struct nic *nic, u8 cmd, dma_addr_t dma_addr) in e100_exec_cmd()
843 static int e100_exec_cb(struct nic *nic, struct sk_buff *skb, in e100_exec_cb()
844 int (*cb_prepare)(struct nic *, struct cb *, struct sk_buff *)) in e100_exec_cb()
903 struct nic *nic = netdev_priv(netdev); in mdio_read() local
909 struct nic *nic = netdev_priv(netdev); in mdio_write() local
915 static u16 mdio_ctrl_hw(struct nic *nic, u32 addr, u32 dir, u32 reg, u16 data) in mdio_ctrl_hw()
955 static u16 mdio_ctrl_phy_82552_v(struct nic *nic, in mdio_ctrl_phy_82552_v()
985 static u16 mdio_ctrl_phy_mii_emulated(struct nic *nic, in mdio_ctrl_phy_mii_emulated()
1027 static inline int e100_phy_supports_mii(struct nic *nic) in e100_phy_supports_mii()
1035 static void e100_get_defaults(struct nic *nic) in e100_get_defaults()
1068 static int e100_configure(struct nic *nic, struct cb *cb, struct sk_buff *skb) in e100_configure()
1218 static const struct firmware *e100_request_firmware(struct nic *nic) in e100_request_firmware()
1306 static int e100_setup_ucode(struct nic *nic, struct cb *cb, in e100_setup_ucode()
1336 static inline int e100_load_ucode_wait(struct nic *nic) in e100_load_ucode_wait()
1376 static int e100_setup_iaaddr(struct nic *nic, struct cb *cb, in e100_setup_iaaddr()
1384 static int e100_dump(struct nic *nic, struct cb *cb, struct sk_buff *skb) in e100_dump()
1392 static int e100_phy_check_without_mii(struct nic *nic) in e100_phy_check_without_mii()
1432 static int e100_phy_init(struct nic *nic) in e100_phy_init()
1525 static int e100_hw_init(struct nic *nic) in e100_hw_init()
1558 static int e100_multi(struct nic *nic, struct cb *cb, struct sk_buff *skb) in e100_multi()
1578 struct nic *nic = netdev_priv(netdev); in e100_set_multicast_list() local
1599 static void e100_update_stats(struct nic *nic) in e100_update_stats()
1661 static void e100_adjust_adaptive_ifs(struct nic *nic, int speed, int duplex) in e100_adjust_adaptive_ifs()
1685 struct nic *nic = from_timer(nic, t, watchdog); in e100_watchdog() local
1734 static int e100_xmit_prepare(struct nic *nic, struct cb *cb, in e100_xmit_prepare()
1771 struct nic *nic = netdev_priv(netdev); in e100_xmit_frame() local
1804 static int e100_tx_clean(struct nic *nic) in e100_tx_clean()
1847 static void e100_clean_cbs(struct nic *nic) in e100_clean_cbs()
1871 static int e100_alloc_cbs(struct nic *nic) in e100_alloc_cbs()
1900 static inline void e100_start_receiver(struct nic *nic, struct rx *rx) in e100_start_receiver()
1916 static int e100_rx_alloc_skb(struct nic *nic, struct rx *rx) in e100_rx_alloc_skb()
1948 static int e100_rx_indicate(struct nic *nic, struct rx *rx, in e100_rx_indicate()
2047 static void e100_rx_clean(struct nic *nic, unsigned int *work_done, in e100_rx_clean()
2127 static void e100_rx_clean_list(struct nic *nic) in e100_rx_clean_list()
2150 static int e100_rx_alloc_list(struct nic *nic) in e100_rx_alloc_list()
2193 struct nic *nic = netdev_priv(netdev); in e100_intr() local
2220 struct nic *nic = container_of(napi, struct nic, napi); in e100_poll() local
2240 struct nic *nic = netdev_priv(netdev); in e100_netpoll() local
2251 struct nic *nic = netdev_priv(netdev); in e100_set_mac_address() local
2263 static int e100_asf(struct nic *nic) in e100_asf()
2272 static int e100_up(struct nic *nic) in e100_up()
2304 static void e100_down(struct nic *nic) in e100_down()
2319 struct nic *nic = netdev_priv(netdev); in e100_tx_timeout() local
2328 struct nic *nic = container_of(work, struct nic, tx_timeout_task); in e100_tx_timeout_task() local
2342 static int e100_loopback_test(struct nic *nic, enum loopback loopback_mode) in e100_loopback_test()
2406 struct nic *nic = netdev_priv(netdev); in e100_get_link_ksettings() local
2416 struct nic *nic = netdev_priv(netdev); in e100_set_link_ksettings() local
2429 struct nic *nic = netdev_priv(netdev); in e100_get_drvinfo() local
2438 struct nic *nic = netdev_priv(netdev); in e100_get_regs_len() local
2449 struct nic *nic = netdev_priv(netdev); in e100_get_regs() local
2473 struct nic *nic = netdev_priv(netdev); in e100_get_wol() local
2480 struct nic *nic = netdev_priv(netdev); in e100_set_wol() local
2500 struct nic *nic = netdev_priv(netdev); in e100_get_msglevel() local
2506 struct nic *nic = netdev_priv(netdev); in e100_set_msglevel() local
2512 struct nic *nic = netdev_priv(netdev); in e100_nway_reset() local
2518 struct nic *nic = netdev_priv(netdev); in e100_get_link() local
2524 struct nic *nic = netdev_priv(netdev); in e100_get_eeprom_len() local
2532 struct nic *nic = netdev_priv(netdev); in e100_get_eeprom() local
2543 struct nic *nic = netdev_priv(netdev); in e100_set_eeprom() local
2559 struct nic *nic = netdev_priv(netdev); in e100_get_ringparam() local
2574 struct nic *nic = netdev_priv(netdev); in e100_set_ringparam() local
2608 struct nic *nic = netdev_priv(netdev); in e100_diag_test() local
2640 struct nic *nic = netdev_priv(netdev); in e100_set_phys_id() local
2703 struct nic *nic = netdev_priv(netdev); in e100_get_ethtool_stats() local
2760 struct nic *nic = netdev_priv(netdev); in e100_do_ioctl() local
2765 static int e100_alloc(struct nic *nic) in e100_alloc()
2772 static void e100_free(struct nic *nic) in e100_free()
2783 struct nic *nic = netdev_priv(netdev); in e100_open() local
2801 struct nic *nic = netdev_priv(netdev); in e100_set_features() local
2830 struct nic *nic; in e100_probe() local
2986 struct nic *nic = netdev_priv(netdev); in e100_remove() local
3003 struct nic *nic = netdev_priv(netdev); in __e100_shutdown() local
3051 struct nic *nic = netdev_priv(netdev); in e100_resume() local
3096 struct nic *nic = netdev_priv(netdev); in e100_io_error_detected() local
3120 struct nic *nic = netdev_priv(netdev); in e100_io_slot_reset() local
3147 struct nic *nic = netdev_priv(netdev); in e100_io_resume() local