Lines Matching defs:nic
537 struct nic { struct
542 u16 (*mdio_ctrl)(struct nic *nic, u32 addr, u32 dir, u32 reg, u16 data); argument
544 struct rx *rxs ____cacheline_aligned;
545 struct rx *rx_to_use;
546 struct rx *rx_to_clean;
547 struct rfd blank_rfd;
548 enum ru_state ru_running;
550 spinlock_t cb_lock ____cacheline_aligned;
551 spinlock_t cmd_lock;
552 struct csr __iomem *csr;
553 enum scb_cmd_lo cuc_cmd;
554 unsigned int cbs_avail;
555 struct napi_struct napi;
556 struct cb *cbs;
557 struct cb *cb_to_use;
558 struct cb *cb_to_send;
559 struct cb *cb_to_clean;
560 __le16 tx_command;
563 enum {
569 } flags ____cacheline_aligned;
571 enum mac mac;
572 enum phy phy;
573 struct params params;
574 struct timer_list watchdog;
575 struct mii_if_info mii;
576 struct work_struct tx_timeout_task;
577 enum loopback loopback;
579 struct mem *mem;
580 dma_addr_t dma_addr;
582 struct dma_pool *cbs_pool;
606 static inline void e100_write_flush(struct nic *nic) in e100_write_flush()
613 static void e100_enable_irq(struct nic *nic) in e100_enable_irq()
623 static void e100_disable_irq(struct nic *nic) in e100_disable_irq()
633 static void e100_hw_reset(struct nic *nic) in e100_hw_reset()
648 static int e100_self_test(struct nic *nic) in e100_self_test()
681 static void e100_eeprom_write(struct nic *nic, u16 addr_len, u16 addr, __le16 data) in e100_eeprom_write()
719 static __le16 e100_eeprom_read(struct nic *nic, u16 *addr_len, u16 addr) in e100_eeprom_read()
760 static int e100_eeprom_load(struct nic *nic) in e100_eeprom_load()
786 static int e100_eeprom_save(struct nic *nic, u16 start, u16 count) in e100_eeprom_save()
813 static int e100_exec_cmd(struct nic *nic, u8 cmd, dma_addr_t dma_addr) in e100_exec_cmd()
844 static int e100_exec_cb(struct nic *nic, struct sk_buff *skb, in e100_exec_cb()
845 int (*cb_prepare)(struct nic *, struct cb *, struct sk_buff *)) in e100_exec_cb()
904 struct nic *nic = netdev_priv(netdev); in mdio_read() local
910 struct nic *nic = netdev_priv(netdev); in mdio_write() local
916 static u16 mdio_ctrl_hw(struct nic *nic, u32 addr, u32 dir, u32 reg, u16 data) in mdio_ctrl_hw()
956 static u16 mdio_ctrl_phy_82552_v(struct nic *nic, in mdio_ctrl_phy_82552_v()
986 static u16 mdio_ctrl_phy_mii_emulated(struct nic *nic, in mdio_ctrl_phy_mii_emulated()
1028 static inline int e100_phy_supports_mii(struct nic *nic) in e100_phy_supports_mii()
1036 static void e100_get_defaults(struct nic *nic) in e100_get_defaults()
1069 static int e100_configure(struct nic *nic, struct cb *cb, struct sk_buff *skb) in e100_configure()
1219 static const struct firmware *e100_request_firmware(struct nic *nic) in e100_request_firmware()
1307 static int e100_setup_ucode(struct nic *nic, struct cb *cb, in e100_setup_ucode()
1337 static inline int e100_load_ucode_wait(struct nic *nic) in e100_load_ucode_wait()
1377 static int e100_setup_iaaddr(struct nic *nic, struct cb *cb, in e100_setup_iaaddr()
1385 static int e100_dump(struct nic *nic, struct cb *cb, struct sk_buff *skb) in e100_dump()
1393 static int e100_phy_check_without_mii(struct nic *nic) in e100_phy_check_without_mii()
1434 static int e100_phy_init(struct nic *nic) in e100_phy_init()
1527 static int e100_hw_init(struct nic *nic) in e100_hw_init()
1560 static int e100_multi(struct nic *nic, struct cb *cb, struct sk_buff *skb) in e100_multi()
1580 struct nic *nic = netdev_priv(netdev); in e100_set_multicast_list() local
1601 static void e100_update_stats(struct nic *nic) in e100_update_stats()
1663 static void e100_adjust_adaptive_ifs(struct nic *nic, int speed, int duplex) in e100_adjust_adaptive_ifs()
1687 struct nic *nic = from_timer(nic, t, watchdog); in e100_watchdog() local
1736 static int e100_xmit_prepare(struct nic *nic, struct cb *cb, in e100_xmit_prepare()
1776 struct nic *nic = netdev_priv(netdev); in e100_xmit_frame() local
1809 static int e100_tx_clean(struct nic *nic) in e100_tx_clean()
1852 static void e100_clean_cbs(struct nic *nic) in e100_clean_cbs()
1876 static int e100_alloc_cbs(struct nic *nic) in e100_alloc_cbs()
1905 static inline void e100_start_receiver(struct nic *nic, struct rx *rx) in e100_start_receiver()
1921 static int e100_rx_alloc_skb(struct nic *nic, struct rx *rx) in e100_rx_alloc_skb()
1951 static int e100_rx_indicate(struct nic *nic, struct rx *rx, in e100_rx_indicate()
2050 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()
2149 static int e100_rx_alloc_list(struct nic *nic) in e100_rx_alloc_list()
2192 struct nic *nic = netdev_priv(netdev); in e100_intr() local
2219 struct nic *nic = container_of(napi, struct nic, napi); in e100_poll() local
2239 struct nic *nic = netdev_priv(netdev); in e100_netpoll() local
2250 struct nic *nic = netdev_priv(netdev); in e100_set_mac_address() local
2262 static int e100_asf(struct nic *nic) in e100_asf()
2271 static int e100_up(struct nic *nic) in e100_up()
2303 static void e100_down(struct nic *nic) in e100_down()
2318 struct nic *nic = netdev_priv(netdev); in e100_tx_timeout() local
2327 struct nic *nic = container_of(work, struct nic, tx_timeout_task); in e100_tx_timeout_task() local
2341 static int e100_loopback_test(struct nic *nic, enum loopback loopback_mode) in e100_loopback_test()
2405 struct nic *nic = netdev_priv(netdev); in e100_get_link_ksettings() local
2415 struct nic *nic = netdev_priv(netdev); in e100_set_link_ksettings() local
2428 struct nic *nic = netdev_priv(netdev); in e100_get_drvinfo() local
2437 struct nic *nic = netdev_priv(netdev); in e100_get_regs_len() local
2444 struct nic *nic = netdev_priv(netdev); in e100_get_regs() local
2464 struct nic *nic = netdev_priv(netdev); in e100_get_wol() local
2471 struct nic *nic = netdev_priv(netdev); in e100_set_wol() local
2491 struct nic *nic = netdev_priv(netdev); in e100_get_msglevel() local
2497 struct nic *nic = netdev_priv(netdev); in e100_set_msglevel() local
2503 struct nic *nic = netdev_priv(netdev); in e100_nway_reset() local
2509 struct nic *nic = netdev_priv(netdev); in e100_get_link() local
2515 struct nic *nic = netdev_priv(netdev); in e100_get_eeprom_len() local
2523 struct nic *nic = netdev_priv(netdev); in e100_get_eeprom() local
2534 struct nic *nic = netdev_priv(netdev); in e100_set_eeprom() local
2548 struct nic *nic = netdev_priv(netdev); in e100_get_ringparam() local
2561 struct nic *nic = netdev_priv(netdev); in e100_set_ringparam() local
2595 struct nic *nic = netdev_priv(netdev); in e100_diag_test() local
2627 struct nic *nic = netdev_priv(netdev); in e100_set_phys_id() local
2690 struct nic *nic = netdev_priv(netdev); in e100_get_ethtool_stats() local
2747 struct nic *nic = netdev_priv(netdev); in e100_do_ioctl() local
2752 static int e100_alloc(struct nic *nic) in e100_alloc()
2759 static void e100_free(struct nic *nic) in e100_free()
2770 struct nic *nic = netdev_priv(netdev); in e100_open() local
2788 struct nic *nic = netdev_priv(netdev); in e100_set_features() local
2817 struct nic *nic; in e100_probe() local
2973 struct nic *nic = netdev_priv(netdev); in e100_remove() local
2990 struct nic *nic = netdev_priv(netdev); in __e100_shutdown() local
3039 struct nic *nic = netdev_priv(netdev); in e100_resume() local
3075 struct nic *nic = netdev_priv(netdev); in e100_io_error_detected() local
3099 struct nic *nic = netdev_priv(netdev); in e100_io_slot_reset() local
3126 struct nic *nic = netdev_priv(netdev); in e100_io_resume() local