• Home
  • Raw
  • Download

Lines Matching refs:tg3

471 static void tg3_write32(struct tg3 *tp, u32 off, u32 val)  in tg3_write32()
476 static u32 tg3_read32(struct tg3 *tp, u32 off) in tg3_read32()
481 static void tg3_ape_write32(struct tg3 *tp, u32 off, u32 val) in tg3_ape_write32()
486 static u32 tg3_ape_read32(struct tg3 *tp, u32 off) in tg3_ape_read32()
491 static void tg3_write_indirect_reg32(struct tg3 *tp, u32 off, u32 val) in tg3_write_indirect_reg32()
501 static void tg3_write_flush_reg32(struct tg3 *tp, u32 off, u32 val) in tg3_write_flush_reg32()
507 static u32 tg3_read_indirect_reg32(struct tg3 *tp, u32 off) in tg3_read_indirect_reg32()
519 static void tg3_write_indirect_mbox(struct tg3 *tp, u32 off, u32 val) in tg3_write_indirect_mbox()
549 static u32 tg3_read_indirect_mbox(struct tg3 *tp, u32 off) in tg3_read_indirect_mbox()
566 static void _tw32_flush(struct tg3 *tp, u32 off, u32 val, u32 usec_wait) in _tw32_flush()
585 static inline void tw32_mailbox_flush(struct tg3 *tp, u32 off, u32 val) in tw32_mailbox_flush()
594 static void tg3_write32_tx_mbox(struct tg3 *tp, u32 off, u32 val) in tg3_write32_tx_mbox()
605 static u32 tg3_read32_mbox_5906(struct tg3 *tp, u32 off) in tg3_read32_mbox_5906()
610 static void tg3_write32_mbox_5906(struct tg3 *tp, u32 off, u32 val) in tg3_write32_mbox_5906()
626 static void tg3_write_mem(struct tg3 *tp, u32 off, u32 val) in tg3_write_mem()
651 static void tg3_read_mem(struct tg3 *tp, u32 off, u32 *val) in tg3_read_mem()
678 static void tg3_ape_lock_init(struct tg3 *tp) in tg3_ape_lock_init()
708 static int tg3_ape_lock(struct tg3 *tp, int locknum) in tg3_ape_lock()
770 static void tg3_ape_unlock(struct tg3 *tp, int locknum) in tg3_ape_unlock()
806 static int tg3_ape_event_lock(struct tg3 *tp, u32 timeout_us) in tg3_ape_event_lock()
827 static int tg3_ape_wait_for_event(struct tg3 *tp, u32 timeout_us) in tg3_ape_wait_for_event()
843 static int tg3_ape_scratchpad_read(struct tg3 *tp, u32 *data, u32 base_off, in tg3_ape_scratchpad_read()
907 static int tg3_ape_send_event(struct tg3 *tp, u32 event) in tg3_ape_send_event()
934 static void tg3_ape_driver_state_change(struct tg3 *tp, int kind) in tg3_ape_driver_state_change()
988 static void tg3_disable_ints(struct tg3 *tp) in tg3_disable_ints()
998 static void tg3_enable_ints(struct tg3 *tp) in tg3_enable_ints()
1031 struct tg3 *tp = tnapi->tp; in tg3_has_work()
1060 struct tg3 *tp = tnapi->tp; in tg3_int_reenable()
1074 static void tg3_switch_clocks(struct tg3 *tp) in tg3_switch_clocks()
1109 static int __tg3_readphy(struct tg3 *tp, unsigned int phy_addr, int reg, in __tg3_readphy()
1163 static int tg3_readphy(struct tg3 *tp, int reg, u32 *val) in tg3_readphy()
1168 static int __tg3_writephy(struct tg3 *tp, unsigned int phy_addr, int reg, in __tg3_writephy()
1222 static int tg3_writephy(struct tg3 *tp, int reg, u32 val) in tg3_writephy()
1227 static int tg3_phy_cl45_write(struct tg3 *tp, u32 devad, u32 addr, u32 val) in tg3_phy_cl45_write()
1250 static int tg3_phy_cl45_read(struct tg3 *tp, u32 devad, u32 addr, u32 *val) in tg3_phy_cl45_read()
1273 static int tg3_phydsp_read(struct tg3 *tp, u32 reg, u32 *val) in tg3_phydsp_read()
1284 static int tg3_phydsp_write(struct tg3 *tp, u32 reg, u32 val) in tg3_phydsp_write()
1295 static int tg3_phy_auxctl_read(struct tg3 *tp, int reg, u32 *val) in tg3_phy_auxctl_read()
1308 static int tg3_phy_auxctl_write(struct tg3 *tp, int reg, u32 set) in tg3_phy_auxctl_write()
1316 static int tg3_phy_toggle_auxctl_smdsp(struct tg3 *tp, bool enable) in tg3_phy_toggle_auxctl_smdsp()
1337 static int tg3_phy_shdw_write(struct tg3 *tp, int reg, u32 val) in tg3_phy_shdw_write()
1343 static int tg3_bmcr_reset(struct tg3 *tp) in tg3_bmcr_reset()
1376 struct tg3 *tp = bp->priv; in tg3_mdio_read()
1391 struct tg3 *tp = bp->priv; in tg3_mdio_write()
1404 static void tg3_mdio_config_5785(struct tg3 *tp) in tg3_mdio_config_5785()
1485 static void tg3_mdio_start(struct tg3 *tp) in tg3_mdio_start()
1496 static int tg3_mdio_init(struct tg3 *tp) in tg3_mdio_init()
1607 static void tg3_mdio_fini(struct tg3 *tp) in tg3_mdio_fini()
1617 static inline void tg3_generate_fw_event(struct tg3 *tp) in tg3_generate_fw_event()
1631 static void tg3_wait_for_event_ack(struct tg3 *tp) in tg3_wait_for_event_ack()
1661 static void tg3_phy_gather_ump_data(struct tg3 *tp, u32 *data) in tg3_phy_gather_ump_data()
1696 static void tg3_ump_link_report(struct tg3 *tp) in tg3_ump_link_report()
1718 static void tg3_stop_fw(struct tg3 *tp) in tg3_stop_fw()
1734 static void tg3_write_sig_pre_reset(struct tg3 *tp, int kind) in tg3_write_sig_pre_reset()
1763 static void tg3_write_sig_post_reset(struct tg3 *tp, int kind) in tg3_write_sig_post_reset()
1784 static void tg3_write_sig_legacy(struct tg3 *tp, int kind) in tg3_write_sig_legacy()
1809 static int tg3_poll_fw(struct tg3 *tp) in tg3_poll_fw()
1873 static void tg3_link_report(struct tg3 *tp) in tg3_link_report()
1963 static void tg3_setup_flow_control(struct tg3 *tp, u32 lcladv, u32 rmtadv) in tg3_setup_flow_control()
2006 struct tg3 *tp = netdev_priv(dev); in tg3_adjust_link()
2086 static int tg3_phy_init(struct tg3 *tp) in tg3_phy_init()
2134 static void tg3_phy_start(struct tg3 *tp) in tg3_phy_start()
2156 static void tg3_phy_stop(struct tg3 *tp) in tg3_phy_stop()
2164 static void tg3_phy_fini(struct tg3 *tp) in tg3_phy_fini()
2172 static int tg3_phy_set_extloopbk(struct tg3 *tp) in tg3_phy_set_extloopbk()
2202 static void tg3_phy_fet_toggle_apd(struct tg3 *tp, bool enable) in tg3_phy_fet_toggle_apd()
2222 static void tg3_phy_toggle_apd(struct tg3 *tp, bool enable) in tg3_phy_toggle_apd()
2253 static void tg3_phy_toggle_automdix(struct tg3 *tp, bool enable) in tg3_phy_toggle_automdix()
2294 static void tg3_phy_set_wirespeed(struct tg3 *tp) in tg3_phy_set_wirespeed()
2308 static void tg3_phy_apply_otp(struct tg3 *tp) in tg3_phy_apply_otp()
2345 static void tg3_eee_pull_config(struct tg3 *tp, struct ethtool_eee *eee) in tg3_eee_pull_config()
2385 static void tg3_phy_eee_adjust(struct tg3 *tp, bool current_link_up) in tg3_phy_eee_adjust()
2425 static void tg3_phy_eee_enable(struct tg3 *tp) in tg3_phy_eee_enable()
2444 static int tg3_wait_macro_done(struct tg3 *tp) in tg3_wait_macro_done()
2462 static int tg3_phy_write_and_check_testpat(struct tg3 *tp, int *resetp) in tg3_phy_write_and_check_testpat()
2528 static int tg3_phy_reset_chanpat(struct tg3 *tp) in tg3_phy_reset_chanpat()
2548 static int tg3_phy_reset_5703_4_5(struct tg3 *tp) in tg3_phy_reset_5703_4_5()
2616 static void tg3_carrier_off(struct tg3 *tp) in tg3_carrier_off()
2622 static void tg3_warn_mgmt_link_flap(struct tg3 *tp) in tg3_warn_mgmt_link_flap()
2632 static int tg3_phy_reset(struct tg3 *tp) in tg3_phy_reset()
2789 static inline u32 tg3_set_function_status(struct tg3 *tp, u32 newstat) in tg3_set_function_status()
2812 static inline int tg3_pwrsrc_switch_to_vmain(struct tg3 *tp) in tg3_pwrsrc_switch_to_vmain()
2837 static void tg3_pwrsrc_die_with_vmain(struct tg3 *tp) in tg3_pwrsrc_die_with_vmain()
2861 static void tg3_pwrsrc_switch_to_vaux(struct tg3 *tp) in tg3_pwrsrc_switch_to_vaux()
2938 static void tg3_frob_aux_power_5717(struct tg3 *tp, bool wol_enable) in tg3_frob_aux_power_5717()
2963 static void tg3_frob_aux_power(struct tg3 *tp, bool include_wol) in tg3_frob_aux_power()
2986 struct tg3 *tp_peer = netdev_priv(dev_peer); in tg3_frob_aux_power()
3007 static int tg3_5700_link_polarity(struct tg3 *tp, u32 speed) in tg3_5700_link_polarity()
3020 static bool tg3_phy_power_bug(struct tg3 *tp) in tg3_phy_power_bug()
3045 static bool tg3_phy_led_bug(struct tg3 *tp) in tg3_phy_led_bug()
3059 static void tg3_power_down_phy(struct tg3 *tp, bool do_low_power) in tg3_power_down_phy()
3134 static int tg3_nvram_lock(struct tg3 *tp) in tg3_nvram_lock()
3157 static void tg3_nvram_unlock(struct tg3 *tp) in tg3_nvram_unlock()
3168 static void tg3_enable_nvram_access(struct tg3 *tp) in tg3_enable_nvram_access()
3178 static void tg3_disable_nvram_access(struct tg3 *tp) in tg3_disable_nvram_access()
3187 static int tg3_nvram_read_using_eeprom(struct tg3 *tp, in tg3_nvram_read_using_eeprom()
3229 static int tg3_nvram_exec_cmd(struct tg3 *tp, u32 nvram_cmd) in tg3_nvram_exec_cmd()
3248 static u32 tg3_nvram_phys_addr(struct tg3 *tp, u32 addr) in tg3_nvram_phys_addr()
3263 static u32 tg3_nvram_logical_addr(struct tg3 *tp, u32 addr) in tg3_nvram_logical_addr()
3284 static int tg3_nvram_read(struct tg3 *tp, u32 offset, u32 *val) in tg3_nvram_read()
3317 static int tg3_nvram_read_be32(struct tg3 *tp, u32 offset, __be32 *val) in tg3_nvram_read_be32()
3326 static int tg3_nvram_write_block_using_eeprom(struct tg3 *tp, in tg3_nvram_write_block_using_eeprom()
3376 static int tg3_nvram_write_block_unbuffered(struct tg3 *tp, u32 offset, u32 len, in tg3_nvram_write_block_unbuffered()
3475 static int tg3_nvram_write_block_buffered(struct tg3 *tp, u32 offset, u32 len, in tg3_nvram_write_block_buffered()
3530 static int tg3_nvram_write_block(struct tg3 *tp, u32 offset, u32 len, u8 *buf) in tg3_nvram_write_block()
3585 static int tg3_pause_cpu(struct tg3 *tp, u32 cpu_base) in tg3_pause_cpu()
3603 static int tg3_rxcpu_pause(struct tg3 *tp) in tg3_rxcpu_pause()
3615 static int tg3_txcpu_pause(struct tg3 *tp) in tg3_txcpu_pause()
3621 static void tg3_resume_cpu(struct tg3 *tp, u32 cpu_base) in tg3_resume_cpu()
3628 static void tg3_rxcpu_resume(struct tg3 *tp) in tg3_rxcpu_resume()
3634 static int tg3_halt_cpu(struct tg3 *tp, u32 cpu_base) in tg3_halt_cpu()
3671 static int tg3_fw_data_len(struct tg3 *tp, in tg3_fw_data_len()
3699 static int tg3_load_firmware_cpu(struct tg3 *tp, u32 cpu_base, in tg3_load_firmware_cpu()
3704 void (*write_op)(struct tg3 *, u32, u32); in tg3_load_firmware_cpu()
3765 static int tg3_pause_cpu_and_set_pc(struct tg3 *tp, u32 cpu_base, u32 pc) in tg3_pause_cpu_and_set_pc()
3786 static int tg3_load_5701_a0_firmware_fix(struct tg3 *tp) in tg3_load_5701_a0_firmware_fix()
3827 static int tg3_validate_rxcpu_state(struct tg3 *tp) in tg3_validate_rxcpu_state()
3859 static void tg3_load_57766_firmware(struct tg3 *tp) in tg3_load_57766_firmware()
3900 static int tg3_load_tso_firmware(struct tg3 *tp) in tg3_load_tso_firmware()
3950 static void __tg3_set_one_mac_addr(struct tg3 *tp, u8 *mac_addr, int index) in __tg3_set_one_mac_addr()
3969 static void __tg3_set_mac_addr(struct tg3 *tp, bool skip_mac_1) in __tg3_set_mac_addr()
3996 static void tg3_enable_register_access(struct tg3 *tp) in tg3_enable_register_access()
4006 static int tg3_power_up(struct tg3 *tp) in tg3_power_up()
4023 static int tg3_setup_phy(struct tg3 *, bool);
4025 static int tg3_power_down_prepare(struct tg3 *tp) in tg3_power_down_prepare()
4263 static void tg3_power_down(struct tg3 *tp) in tg3_power_down()
4269 static void tg3_aux_stat_to_speed_duplex(struct tg3 *tp, u32 val, u16 *speed, u8 *duplex) in tg3_aux_stat_to_speed_duplex()
4316 static int tg3_phy_autoneg_cfg(struct tg3 *tp, u32 advertise, u32 flowctrl) in tg3_phy_autoneg_cfg()
4400 static void tg3_phy_copper_begin(struct tg3 *tp) in tg3_phy_copper_begin()
4497 static int tg3_phy_pull_config(struct tg3 *tp) in tg3_phy_pull_config()
4594 static int tg3_init_5401phy_dsp(struct tg3 *tp) in tg3_init_5401phy_dsp()
4613 static bool tg3_phy_eee_config_ok(struct tg3 *tp) in tg3_phy_eee_config_ok()
4636 static bool tg3_phy_copper_an_config_ok(struct tg3 *tp, u32 *lcladv) in tg3_phy_copper_an_config_ok()
4680 static bool tg3_phy_copper_fetch_rmtadv(struct tg3 *tp, u32 *rmtadv) in tg3_phy_copper_fetch_rmtadv()
4702 static bool tg3_test_and_report_link_chg(struct tg3 *tp, bool curr_link_up) in tg3_test_and_report_link_chg()
4720 static void tg3_clear_mac_status(struct tg3 *tp) in tg3_clear_mac_status()
4732 static void tg3_setup_eee(struct tg3 *tp) in tg3_setup_eee()
4768 static int tg3_setup_copper_phy(struct tg3 *tp, bool force_reset) in tg3_setup_copper_phy()
5145 static int tg3_fiber_aneg_smachine(struct tg3 *tp, in tg3_fiber_aneg_smachine()
5397 static int fiber_autoneg(struct tg3 *tp, u32 *txflags, u32 *rxflags) in fiber_autoneg()
5442 static void tg3_init_bcm8002(struct tg3 *tp) in tg3_init_bcm8002()
5492 static bool tg3_setup_fiber_hw_autoneg(struct tg3 *tp, u32 mac_status) in tg3_setup_fiber_hw_autoneg()
5637 static bool tg3_setup_fiber_by_hand(struct tg3 *tp, u32 mac_status) in tg3_setup_fiber_by_hand()
5702 static int tg3_setup_fiber_phy(struct tg3 *tp, bool force_reset) in tg3_setup_fiber_phy()
5805 static int tg3_setup_fiber_mii_phy(struct tg3 *tp, bool force_reset) in tg3_setup_fiber_mii_phy()
5999 static void tg3_serdes_parallel_detect(struct tg3 *tp) in tg3_serdes_parallel_detect()
6059 static int tg3_setup_phy(struct tg3 *tp, bool force_reset) in tg3_setup_phy()
6126 static u64 tg3_refclk_read(struct tg3 *tp) in tg3_refclk_read()
6133 static void tg3_refclk_write(struct tg3 *tp, u64 newval) in tg3_refclk_write()
6143 static inline void tg3_full_lock(struct tg3 *tp, int irq_sync);
6144 static inline void tg3_full_unlock(struct tg3 *tp);
6147 struct tg3 *tp = netdev_priv(dev); in tg3_get_ts_info()
6175 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_adjfreq()
6211 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_adjtime()
6224 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_gettime()
6241 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_settime()
6256 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_enable()
6328 static void tg3_hwclock_to_timestamp(struct tg3 *tp, u64 hwclock, in tg3_hwclock_to_timestamp()
6337 static void tg3_ptp_init(struct tg3 *tp) in tg3_ptp_init()
6349 static void tg3_ptp_resume(struct tg3 *tp) in tg3_ptp_resume()
6358 static void tg3_ptp_fini(struct tg3 *tp) in tg3_ptp_fini()
6368 static inline int tg3_irq_sync(struct tg3 *tp) in tg3_irq_sync()
6373 static inline void tg3_rd32_loop(struct tg3 *tp, u32 *dst, u32 off, u32 len) in tg3_rd32_loop()
6382 static void tg3_dump_legacy_regs(struct tg3 *tp, u32 *regs) in tg3_dump_legacy_regs()
6432 static void tg3_dump_state(struct tg3 *tp) in tg3_dump_state()
6494 static void tg3_tx_recover(struct tg3 *tp) in tg3_tx_recover()
6522 struct tg3 *tp = tnapi->tp; in tg3_tx()
6628 static void tg3_rx_data_free(struct tg3 *tp, struct ring_info *ri, u32 map_sz) in tg3_rx_data_free()
6654 static int tg3_alloc_rx_data(struct tg3 *tp, struct tg3_rx_prodring_set *tpr, in tg3_alloc_rx_data()
6728 struct tg3 *tp = tnapi->tp; in tg3_recycle_rx()
6795 struct tg3 *tp = tnapi->tp; in tg3_rx()
6999 static void tg3_poll_link(struct tg3 *tp) in tg3_poll_link()
7023 static int tg3_rx_prodring_xfer(struct tg3 *tp, in tg3_rx_prodring_xfer()
7151 struct tg3 *tp = tnapi->tp; in tg3_poll_work()
7200 static inline void tg3_reset_task_schedule(struct tg3 *tp) in tg3_reset_task_schedule()
7206 static inline void tg3_reset_task_cancel(struct tg3 *tp) in tg3_reset_task_cancel()
7216 struct tg3 *tp = tnapi->tp; in tg3_poll_msix()
7273 static void tg3_process_error(struct tg3 *tp) in tg3_process_error()
7310 struct tg3 *tp = tnapi->tp; in tg3_poll()
7355 static void tg3_napi_disable(struct tg3 *tp) in tg3_napi_disable()
7363 static void tg3_napi_enable(struct tg3 *tp) in tg3_napi_enable()
7371 static void tg3_napi_init(struct tg3 *tp) in tg3_napi_init()
7380 static void tg3_napi_fini(struct tg3 *tp) in tg3_napi_fini()
7388 static inline void tg3_netif_stop(struct tg3 *tp) in tg3_netif_stop()
7397 static inline void tg3_netif_start(struct tg3 *tp) in tg3_netif_start()
7415 static void tg3_irq_quiesce(struct tg3 *tp) in tg3_irq_quiesce()
7433 static inline void tg3_full_lock(struct tg3 *tp, int irq_sync) in tg3_full_lock()
7440 static inline void tg3_full_unlock(struct tg3 *tp) in tg3_full_unlock()
7451 struct tg3 *tp = tnapi->tp; in tg3_msi_1shot()
7470 struct tg3 *tp = tnapi->tp; in tg3_msi()
7492 struct tg3 *tp = tnapi->tp; in tg3_interrupt()
7541 struct tg3 *tp = tnapi->tp; in tg3_interrupt_tagged()
7594 struct tg3 *tp = tnapi->tp; in tg3_test_isr()
7609 struct tg3 *tp = netdev_priv(dev); in tg3_poll_controller()
7621 struct tg3 *tp = netdev_priv(dev); in tg3_tx_timeout()
7642 static inline int tg3_4g_tso_overflow_test(struct tg3 *tp, dma_addr_t mapping, in tg3_4g_tso_overflow_test()
7654 static inline int tg3_40bit_overflow_test(struct tg3 *tp, dma_addr_t mapping, in tg3_40bit_overflow_test()
7680 struct tg3 *tp = tnapi->tp; in tg3_tx_frag_set()
7783 struct tg3 *tp = tnapi->tp; in tigon3_dma_hwbug_workaround()
7837 static int tg3_tso_bug(struct tg3 *tp, struct tg3_napi *tnapi, in tg3_tso_bug()
7880 struct tg3 *tp = netdev_priv(dev); in tg3_start_xmit()
8134 static void tg3_mac_loopback(struct tg3 *tp, bool enable) in tg3_mac_loopback()
8162 static int tg3_phy_lpbk_set(struct tg3 *tp, u32 speed, bool extlpbk) in tg3_phy_lpbk_set()
8257 struct tg3 *tp = netdev_priv(dev); in tg3_set_loopback()
8284 struct tg3 *tp = netdev_priv(dev); in tg3_fix_features()
8302 static void tg3_rx_prodring_free(struct tg3 *tp, in tg3_rx_prodring_free()
8343 static int tg3_rx_prodring_alloc(struct tg3 *tp, in tg3_rx_prodring_alloc()
8445 static void tg3_rx_prodring_fini(struct tg3 *tp, in tg3_rx_prodring_fini()
8464 static int tg3_rx_prodring_init(struct tg3 *tp, in tg3_rx_prodring_init()
8507 static void tg3_free_rings(struct tg3 *tp) in tg3_free_rings()
8541 static int tg3_init_rings(struct tg3 *tp) in tg3_init_rings()
8576 static void tg3_mem_tx_release(struct tg3 *tp) in tg3_mem_tx_release()
8594 static int tg3_mem_tx_acquire(struct tg3 *tp) in tg3_mem_tx_acquire()
8626 static void tg3_mem_rx_release(struct tg3 *tp) in tg3_mem_rx_release()
8646 static int tg3_mem_rx_acquire(struct tg3 *tp) in tg3_mem_rx_acquire()
8690 static void tg3_free_consistent(struct tg3 *tp) in tg3_free_consistent()
8722 static int tg3_alloc_consistent(struct tg3 *tp) in tg3_alloc_consistent()
8789 static int tg3_stop_block(struct tg3 *tp, unsigned long ofs, u32 enable_bit, bool silent) in tg3_stop_block()
8841 static int tg3_abort_hw(struct tg3 *tp, bool silent) in tg3_abort_hw()
8913 static void tg3_save_pci_state(struct tg3 *tp) in tg3_save_pci_state()
8919 static void tg3_restore_pci_state(struct tg3 *tp) in tg3_restore_pci_state()
8979 static void tg3_override_clk(struct tg3 *tp) in tg3_override_clk()
9000 static void tg3_restore_clk(struct tg3 *tp) in tg3_restore_clk()
9023 static int tg3_chip_reset(struct tg3 *tp) in tg3_chip_reset()
9026 void (*write_op)(struct tg3 *, u32, u32); in tg3_chip_reset()
9285 static void tg3_get_nstats(struct tg3 *, struct rtnl_link_stats64 *);
9286 static void tg3_get_estats(struct tg3 *, struct tg3_ethtool_stats *);
9290 static int tg3_halt(struct tg3 *tp, int kind, bool silent) in tg3_halt()
9320 struct tg3 *tp = netdev_priv(dev); in tg3_set_mac_addr()
9355 static void tg3_set_bdinfo(struct tg3 *tp, u32 bdinfo_addr, in tg3_set_bdinfo()
9376 static void tg3_coal_tx_init(struct tg3 *tp, struct ethtool_coalesce *ec) in tg3_coal_tx_init()
9408 static void tg3_coal_rx_init(struct tg3 *tp, struct ethtool_coalesce *ec) in tg3_coal_rx_init()
9442 static void __tg3_set_coalesce(struct tg3 *tp, struct ethtool_coalesce *ec) in __tg3_set_coalesce()
9461 static void tg3_tx_rcbs_disable(struct tg3 *tp) in tg3_tx_rcbs_disable()
9483 static void tg3_tx_rcbs_init(struct tg3 *tp) in tg3_tx_rcbs_init()
9504 static void tg3_rx_ret_rcbs_disable(struct tg3 *tp) in tg3_rx_ret_rcbs_disable()
9527 static void tg3_rx_ret_rcbs_init(struct tg3 *tp) in tg3_rx_ret_rcbs_init()
9548 static void tg3_rings_reset(struct tg3 *tp) in tg3_rings_reset()
9618 static void tg3_setup_rxbd_thresholds(struct tg3 *tp) in tg3_setup_rxbd_thresholds()
9681 static void tg3_set_multi(struct tg3 *tp, unsigned int accept_all) in tg3_set_multi()
9692 struct tg3 *tp = netdev_priv(dev); in __tg3_set_rx_mode()
9758 static void tg3_rss_init_dflt_indir_tbl(struct tg3 *tp, u32 qcnt) in tg3_rss_init_dflt_indir_tbl()
9766 static void tg3_rss_check_indir_tbl(struct tg3 *tp) in tg3_rss_check_indir_tbl()
9788 static void tg3_rss_write_indir_tbl(struct tg3 *tp) in tg3_rss_write_indir_tbl()
9805 static inline u32 tg3_lso_rd_dma_workaround_bit(struct tg3 *tp) in tg3_lso_rd_dma_workaround_bit()
9814 static int tg3_reset_hw(struct tg3 *tp, bool reset_phy) in tg3_reset_hw()
10714 static int tg3_init_hw(struct tg3 *tp, bool reset_phy) in tg3_init_hw()
10730 static void tg3_sd_scan_scratchpad(struct tg3 *tp, struct tg3_ocir *ocir) in tg3_sd_scan_scratchpad()
10751 struct tg3 *tp = dev_get_drvdata(dev); in tg3_show_temp()
10775 ATTRIBUTE_GROUPS(tg3);
10777 static void tg3_hwmon_close(struct tg3 *tp) in tg3_hwmon_close()
10785 static void tg3_hwmon_open(struct tg3 *tp) in tg3_hwmon_open()
10821 static void tg3_periodic_fetch_stats(struct tg3 *tp) in tg3_periodic_fetch_stats()
10887 static void tg3_chk_missed_msi(struct tg3 *tp) in tg3_chk_missed_msi()
10912 struct tg3 *tp = (struct tg3 *) __opaque; in tg3_timer()
11049 static void tg3_timer_init(struct tg3 *tp) in tg3_timer_init()
11069 static void tg3_timer_start(struct tg3 *tp) in tg3_timer_start()
11078 static void tg3_timer_stop(struct tg3 *tp) in tg3_timer_stop()
11086 static int tg3_restart_hw(struct tg3 *tp, bool reset_phy) in tg3_restart_hw()
11109 struct tg3 *tp = container_of(work, struct tg3, reset_task); in tg3_reset_task()
11151 static int tg3_request_irq(struct tg3 *tp, int irq_num) in tg3_request_irq()
11192 static int tg3_test_interrupt(struct tg3 *tp) in tg3_test_interrupt()
11269 static int tg3_test_msi(struct tg3 *tp) in tg3_test_msi()
11327 static int tg3_request_firmware(struct tg3 *tp) in tg3_request_firmware()
11358 static u32 tg3_irq_count(struct tg3 *tp) in tg3_irq_count()
11374 static bool tg3_enable_msix(struct tg3 *tp) in tg3_enable_msix()
11433 static void tg3_ints_init(struct tg3 *tp) in tg3_ints_init()
11472 static void tg3_ints_fini(struct tg3 *tp) in tg3_ints_fini()
11484 static int tg3_start(struct tg3 *tp, bool reset_phy, bool test_irq, in tg3_start()
11603 static void tg3_stop(struct tg3 *tp) in tg3_stop()
11640 struct tg3 *tp = netdev_priv(dev); in tg3_open()
11704 struct tg3 *tp = netdev_priv(dev); in tg3_close()
11733 static u64 tg3_calc_crc_errors(struct tg3 *tp) in tg3_calc_crc_errors()
11761 static void tg3_get_estats(struct tg3 *tp, struct tg3_ethtool_stats *estats) in tg3_get_estats()
11845 static void tg3_get_nstats(struct tg3 *tp, struct rtnl_link_stats64 *stats) in tg3_get_nstats()
11907 struct tg3 *tp = netdev_priv(dev); in tg3_get_regs()
11925 struct tg3 *tp = netdev_priv(dev); in tg3_get_eeprom_len()
11932 struct tg3 *tp = netdev_priv(dev); in tg3_get_eeprom()
12023 struct tg3 *tp = netdev_priv(dev); in tg3_set_eeprom()
12079 struct tg3 *tp = netdev_priv(dev); in tg3_get_settings()
12145 struct tg3 *tp = netdev_priv(dev); in tg3_set_settings()
12236 struct tg3 *tp = netdev_priv(dev); in tg3_get_drvinfo()
12246 struct tg3 *tp = netdev_priv(dev); in tg3_get_wol()
12260 struct tg3 *tp = netdev_priv(dev); in tg3_set_wol()
12281 struct tg3 *tp = netdev_priv(dev); in tg3_get_msglevel()
12287 struct tg3 *tp = netdev_priv(dev); in tg3_set_msglevel()
12293 struct tg3 *tp = netdev_priv(dev); in tg3_nway_reset()
12329 struct tg3 *tp = netdev_priv(dev); in tg3_get_ringparam()
12350 struct tg3 *tp = netdev_priv(dev); in tg3_set_ringparam()
12398 struct tg3 *tp = netdev_priv(dev); in tg3_get_pauseparam()
12415 struct tg3 *tp = netdev_priv(dev); in tg3_set_pauseparam()
12535 struct tg3 *tp = netdev_priv(dev); in tg3_get_rxnfc()
12564 struct tg3 *tp = netdev_priv(dev); in tg3_get_rxfh_indir_size()
12574 struct tg3 *tp = netdev_priv(dev); in tg3_get_rxfh()
12585 struct tg3 *tp = netdev_priv(dev); in tg3_set_rxfh()
12607 struct tg3 *tp = netdev_priv(dev); in tg3_get_channels()
12632 struct tg3 *tp = netdev_priv(dev); in tg3_set_channels()
12674 struct tg3 *tp = netdev_priv(dev); in tg3_set_phys_id()
12709 struct tg3 *tp = netdev_priv(dev); in tg3_get_ethtool_stats()
12717 static __be32 *tg3_vpd_readblock(struct tg3 *tp, u32 *vpdlen) in tg3_vpd_readblock()
12803 static int tg3_test_nvram(struct tg3 *tp) in tg3_test_nvram()
12985 static int tg3_test_link(struct tg3 *tp) in tg3_test_link()
13009 static int tg3_test_registers(struct tg3 *tp) in tg3_test_registers()
13229 static int tg3_do_mem_test(struct tg3 *tp, u32 offset, u32 len) in tg3_do_mem_test()
13248 static int tg3_test_memory(struct tg3 *tp) in tg3_test_memory()
13341 static int tg3_run_loopback(struct tg3 *tp, u32 pktsz, bool tso_loopback) in tg3_run_loopback()
13557 static int tg3_test_loopback(struct tg3 *tp, u64 *data, bool do_extlpbk) in tg3_test_loopback()
13675 struct tg3 *tp = netdev_priv(dev); in tg3_self_test()
13763 struct tg3 *tp = netdev_priv(dev); in tg3_hwtstamp_set()
13850 struct tg3 *tp = netdev_priv(dev); in tg3_hwtstamp_get()
13912 struct tg3 *tp = netdev_priv(dev); in tg3_ioctl()
13976 struct tg3 *tp = netdev_priv(dev); in tg3_get_coalesce()
13984 struct tg3 *tp = netdev_priv(dev); in tg3_set_coalesce()
14038 struct tg3 *tp = netdev_priv(dev); in tg3_set_eee()
14075 struct tg3 *tp = netdev_priv(dev); in tg3_get_eee()
14127 struct tg3 *tp = netdev_priv(dev); in tg3_get_stats64()
14144 struct tg3 *tp = netdev_priv(dev); in tg3_set_rx_mode()
14154 static inline void tg3_set_mtu(struct net_device *dev, struct tg3 *tp, in tg3_set_mtu()
14177 struct tg3 *tp = netdev_priv(dev); in tg3_change_mtu()
14241 static void tg3_get_eeprom_size(struct tg3 *tp) in tg3_get_eeprom_size()
14275 static void tg3_get_nvram_size(struct tg3 *tp) in tg3_get_nvram_size()
14308 static void tg3_get_nvram_info(struct tg3 *tp) in tg3_get_nvram_info()
14359 static void tg3_nvram_get_pagesize(struct tg3 *tp, u32 nvmcfg1) in tg3_nvram_get_pagesize()
14386 static void tg3_get_5752_nvram_info(struct tg3 *tp) in tg3_get_5752_nvram_info()
14427 static void tg3_get_5755_nvram_info(struct tg3 *tp) in tg3_get_5755_nvram_info()
14483 static void tg3_get_5787_nvram_info(struct tg3 *tp) in tg3_get_5787_nvram_info()
14521 static void tg3_get_5761_nvram_info(struct tg3 *tp) in tg3_get_5761_nvram_info()
14596 static void tg3_get_5906_nvram_info(struct tg3 *tp) in tg3_get_5906_nvram_info()
14603 static void tg3_get_57780_nvram_info(struct tg3 *tp) in tg3_get_57780_nvram_info()
14676 static void tg3_get_5717_nvram_info(struct tg3 *tp) in tg3_get_5717_nvram_info()
14754 static void tg3_get_5720_nvram_info(struct tg3 *tp) in tg3_get_5720_nvram_info()
14902 static void tg3_nvram_init(struct tg3 *tp) in tg3_nvram_init()
15045 static struct subsys_tbl_ent *tg3_lookup_by_subsys(struct tg3 *tp) in tg3_lookup_by_subsys()
15059 static void tg3_get_eeprom_hw_cfg(struct tg3 *tp) in tg3_get_eeprom_hw_cfg()
15276 static int tg3_ape_otp_read(struct tg3 *tp, u32 offset, u32 *val) in tg3_ape_otp_read()
15309 static int tg3_issue_otp_command(struct tg3 *tp, u32 cmd) in tg3_issue_otp_command()
15332 static u32 tg3_read_otp_phycfg(struct tg3 *tp) in tg3_read_otp_phycfg()
15358 static void tg3_phy_init_link_config(struct tg3 *tp) in tg3_phy_init_link_config()
15387 static int tg3_phy_probe(struct tg3 *tp) in tg3_phy_probe()
15542 static void tg3_read_vpd(struct tg3 *tp) in tg3_read_vpd()
15666 static int tg3_fw_img_is_valid(struct tg3 *tp, u32 offset) in tg3_fw_img_is_valid()
15679 static void tg3_read_bc_ver(struct tg3 *tp) in tg3_read_bc_ver()
15731 static void tg3_read_hwsb_ver(struct tg3 *tp) in tg3_read_hwsb_ver()
15747 static void tg3_read_sb_ver(struct tg3 *tp, u32 val) in tg3_read_sb_ver()
15802 static void tg3_read_mgmtfw_ver(struct tg3 *tp) in tg3_read_mgmtfw_ver()
15854 static void tg3_probe_ncsi(struct tg3 *tp) in tg3_probe_ncsi()
15870 static void tg3_read_dash_ver(struct tg3 *tp) in tg3_read_dash_ver()
15895 static void tg3_read_otp_ver(struct tg3 *tp) in tg3_read_otp_ver()
15920 static void tg3_read_fw_ver(struct tg3 *tp) in tg3_read_fw_ver()
15957 static inline u32 tg3_rx_ret_ring_size(struct tg3 *tp) in tg3_rx_ret_ring_size()
15974 static struct pci_dev *tg3_find_peer(struct tg3 *tp) in tg3_find_peer()
16002 static void tg3_detect_asic_rev(struct tg3 *tp, u32 misc_ctrl_reg) in tg3_detect_asic_rev()
16090 static bool tg3_10_100_only_device(struct tg3 *tp, in tg3_10_100_only_device()
16112 static int tg3_get_invariants(struct tg3 *tp, const struct pci_device_id *ent) in tg3_get_invariants()
16892 static int tg3_get_macaddr_sparc(struct tg3 *tp) in tg3_get_macaddr_sparc()
16908 static int tg3_get_default_macaddr_sparc(struct tg3 *tp) in tg3_get_default_macaddr_sparc()
16917 static int tg3_get_device_address(struct tg3 *tp) in tg3_get_device_address()
17002 static u32 tg3_calc_dma_bndry(struct tg3 *tp, u32 val) in tg3_calc_dma_bndry()
17143 static int tg3_do_test_dma(struct tg3 *tp, u32 *buf, dma_addr_t buf_dma, in tg3_do_test_dma()
17231 static int tg3_test_dma(struct tg3 *tp) in tg3_test_dma()
17405 static void tg3_init_bufmgr_config(struct tg3 *tp) in tg3_init_bufmgr_config()
17461 static char *tg3_phy_string(struct tg3 *tp) in tg3_phy_string()
17493 static char *tg3_bus_string(struct tg3 *tp, char *str) in tg3_bus_string()
17529 static void tg3_init_coal(struct tg3 *tp) in tg3_init_coal()
17564 struct tg3 *tp; in tg3_init_one()
17952 struct tg3 *tp = netdev_priv(dev); in tg3_remove_one()
17983 struct tg3 *tp = netdev_priv(dev); in tg3_suspend()
18040 struct tg3 *tp = netdev_priv(dev); in tg3_resume()
18081 struct tg3 *tp = netdev_priv(dev); in tg3_shutdown()
18107 struct tg3 *tp = netdev_priv(netdev); in tg3_io_error_detected()
18164 struct tg3 *tp = netdev_priv(netdev); in tg3_io_slot_reset()
18211 struct tg3 *tp = netdev_priv(netdev); in tg3_io_resume()