Lines Matching refs:sky2_hw
150 static int gm_phy_write(struct sky2_hw *hw, unsigned port, u16 reg, u16 val) in gm_phy_write()
177 static int __gm_phy_read(struct sky2_hw *hw, unsigned port, u16 reg, u16 *val) in __gm_phy_read()
204 static inline u16 gm_phy_read(struct sky2_hw *hw, unsigned port, u16 reg) in gm_phy_read()
212 static void sky2_power_on(struct sky2_hw *hw) in sky2_power_on()
261 static void sky2_power_aux(struct sky2_hw *hw) in sky2_power_aux()
283 static void sky2_gmac_reset(struct sky2_hw *hw, unsigned port) in sky2_gmac_reset()
325 static void sky2_phy_init(struct sky2_hw *hw, unsigned port) in sky2_phy_init()
695 static void sky2_phy_power_up(struct sky2_hw *hw, unsigned port) in sky2_phy_power_up()
716 static void sky2_phy_power_down(struct sky2_hw *hw, unsigned port) in sky2_phy_power_down()
788 struct sky2_hw *hw = sky2->hw; in sky2_enable_rx_tx()
809 struct sky2_hw *hw = sky2->hw; in sky2_wol_init()
878 static void sky2_set_tx_stfwd(struct sky2_hw *hw, unsigned port) in sky2_set_tx_stfwd()
897 static void sky2_mac_init(struct sky2_hw *hw, unsigned port) in sky2_mac_init()
1036 static void sky2_ramset(struct sky2_hw *hw, u16 q, u32 start, u32 space) in sky2_ramset()
1076 static void sky2_qset(struct sky2_hw *hw, u16 q) in sky2_qset()
1087 static void sky2_prefetch_init(struct sky2_hw *hw, u32 qaddr, in sky2_prefetch_init()
1125 static inline void sky2_put_idx(struct sky2_hw *hw, unsigned q, u16 idx) in sky2_put_idx()
1283 struct sky2_hw *hw = sky2->hw; in rx_set_rss()
1324 struct sky2_hw *hw = sky2->hw; in sky2_rx_stop()
1368 struct sky2_hw *hw = sky2->hw; in sky2_ioctl()
1405 struct sky2_hw *hw = sky2->hw; in sky2_vlan_mode()
1430 static inline unsigned sky2_rx_pad(const struct sky2_hw *hw) in sky2_rx_pad()
1485 struct sky2_hw *hw = sky2->hw; in sky2_alloc_rx_skbs()
1518 struct sky2_hw *hw = sky2->hw; in sky2_rx_start()
1592 struct sky2_hw *hw = sky2->hw; in sky2_alloc_buffers()
1624 struct sky2_hw *hw = sky2->hw; in sky2_free_buffers()
1648 struct sky2_hw *hw = sky2->hw; in sky2_hw_up()
1711 static int sky2_setup_irq(struct sky2_hw *hw, const char *name) in sky2_setup_irq()
1737 struct sky2_hw *hw = sky2->hw; in sky2_open()
1829 struct sky2_hw *hw = sky2->hw; in sky2_xmit_frame()
2040 static void sky2_tx_reset(struct sky2_hw *hw, unsigned port) in sky2_tx_reset()
2066 struct sky2_hw *hw = sky2->hw; in sky2_hw_down()
2115 struct sky2_hw *hw = sky2->hw; in sky2_close()
2150 static u16 sky2_phy_speed(const struct sky2_hw *hw, u16 aux) in sky2_phy_speed()
2174 struct sky2_hw *hw = sky2->hw; in sky2_link_up()
2206 struct sky2_hw *hw = sky2->hw; in sky2_link_down()
2236 struct sky2_hw *hw = sky2->hw; in sky2_autoneg_done()
2297 static void sky2_phy_intr(struct sky2_hw *hw, unsigned port) in sky2_phy_intr()
2338 static void sky2_qlink_intr(struct sky2_hw *hw) in sky2_qlink_intr()
2364 struct sky2_hw *hw = sky2->hw; in sky2_tx_timeout()
2380 struct sky2_hw *hw = sky2->hw; in sky2_change_mtu()
2638 static inline void sky2_rx_done(struct sky2_hw *hw, unsigned port, in sky2_rx_done()
2702 static int sky2_status_intr(struct sky2_hw *hw, int to_do, u16 idx) in sky2_status_intr()
2802 static void sky2_hw_error(struct sky2_hw *hw, unsigned port, u32 status) in sky2_hw_error()
2842 static void sky2_hw_intr(struct sky2_hw *hw) in sky2_hw_intr()
2889 static void sky2_mac_intr(struct sky2_hw *hw, unsigned port) in sky2_mac_intr()
2915 static void sky2_le_error(struct sky2_hw *hw, unsigned port, u16 q) in sky2_le_error()
2930 struct sky2_hw *hw = sky2->hw; in sky2_rx_hung()
2962 struct sky2_hw *hw = from_timer(hw, t, watchdog_timer); in sky2_watchdog()
2993 static void sky2_err_intr(struct sky2_hw *hw, u32 status) in sky2_err_intr()
3022 struct sky2_hw *hw = container_of(napi, struct sky2_hw, napi); in sky2_poll()
3055 struct sky2_hw *hw = dev_id; in sky2_intr()
3082 static u32 sky2_mhz(const struct sky2_hw *hw) in sky2_mhz()
3109 static inline u32 sky2_us2clk(const struct sky2_hw *hw, u32 us) in sky2_us2clk()
3114 static inline u32 sky2_clk2us(const struct sky2_hw *hw, u32 clk) in sky2_clk2us()
3120 static int sky2_init(struct sky2_hw *hw) in sky2_init()
3228 static void sky2_reset(struct sky2_hw *hw) in sky2_reset()
3456 static void sky2_all_down(struct sky2_hw *hw) in sky2_all_down()
3481 static void sky2_all_up(struct sky2_hw *hw) in sky2_all_up()
3509 struct sky2_hw *hw = container_of(work, struct sky2_hw, restart_work); in sky2_restart()
3520 static inline u8 sky2_wol_supported(const struct sky2_hw *hw) in sky2_wol_supported()
3536 struct sky2_hw *hw = sky2->hw; in sky2_set_wol()
3558 static u32 sky2_supported_modes(const struct sky2_hw *hw) in sky2_supported_modes()
3579 struct sky2_hw *hw = sky2->hw; in sky2_get_link_ksettings()
3611 const struct sky2_hw *hw = sky2->hw; in sky2_set_link_ksettings()
3760 struct sky2_hw *hw = sky2->hw; in sky2_phy_stats()
3811 struct sky2_hw *hw = sky2->hw; in sky2_set_mac_address()
3844 struct sky2_hw *hw = sky2->hw; in sky2_set_multicast()
3890 struct sky2_hw *hw = sky2->hw; in sky2_get_stats()
3934 struct sky2_hw *hw = sky2->hw; in sky2_led()
4056 struct sky2_hw *hw = sky2->hw; in sky2_get_coalesce()
4091 struct sky2_hw *hw = sky2->hw; in sky2_set_coalesce()
4182 static int sky2_reg_access_ok(struct sky2_hw *hw, unsigned int b) in sky2_reg_access_ok()
4256 struct sky2_hw *hw = sky2->hw; in sky2_get_eeprom_len()
4263 static int sky2_vpd_wait(const struct sky2_hw *hw, int cap, u16 busy) in sky2_vpd_wait()
4279 static int sky2_vpd_read(struct sky2_hw *hw, int cap, void *data, in sky2_vpd_read()
4303 static int sky2_vpd_write(struct sky2_hw *hw, int cap, const void *data, in sky2_vpd_write()
4359 const struct sky2_hw *hw = sky2->hw; in sky2_fix_features()
4455 static void sky2_show_vpd(struct seq_file *seq, struct sky2_hw *hw) in sky2_show_vpd()
4517 struct sky2_hw *hw = sky2->hw; in sky2_debug_show()
4719 static struct net_device *sky2_init_netdev(struct sky2_hw *hw, unsigned port, in sky2_init_netdev()
4826 struct sky2_hw *hw = dev_id; in sky2_test_intr()
4843 static int sky2_test_msi(struct sky2_hw *hw) in sky2_test_msi()
4947 struct sky2_hw *hw; in sky2_probe()
5136 struct sky2_hw *hw = pci_get_drvdata(pdev); in sky2_remove()
5177 struct sky2_hw *hw = dev_get_drvdata(dev); in sky2_suspend()
5207 struct sky2_hw *hw = pci_get_drvdata(pdev); in sky2_resume()
5243 struct sky2_hw *hw = pci_get_drvdata(pdev); in sky2_shutdown()