Lines Matching defs:tp
92 #define tg3_flag(tp, flag) \ argument
94 #define tg3_flag_set(tp, flag) \ argument
96 #define tg3_flag_clear(tp, flag) \ argument
130 #define TG3_MAX_MTU(tp) \ argument
137 #define TG3_RX_STD_RING_SIZE(tp) \ argument
141 #define TG3_RX_JMB_RING_SIZE(tp) \ argument
156 #define TG3_RX_STD_RING_BYTES(tp) \ argument
158 #define TG3_RX_JMB_RING_BYTES(tp) \ argument
160 #define TG3_RX_RCB_RING_BYTES(tp) \ argument
176 #define TG3_RX_STD_BUFF_RING_SIZE(tp) \ argument
179 #define TG3_RX_JMB_BUFF_RING_SIZE(tp) \ argument
195 #define TG3_RX_COPY_THRESH(tp) TG3_RX_COPY_THRESHOLD argument
197 #define TG3_RX_COPY_THRESH(tp) ((tp)->rx_copy_thresh) argument
201 #define TG3_RX_OFFSET(tp) ((tp)->rx_offset) argument
203 #define TG3_RX_OFFSET(tp) (NET_SKB_PAD) argument
213 #define TG3_MAX_UCAST_ADDR(tp) (tg3_flag((tp), ENABLE_ASF) ? 2 : 3) argument
214 #define TG3_UCAST_ADDR_IDX(tp) (tg3_flag((tp), ENABLE_ASF) ? 2 : 1) argument
470 static void tg3_write32(struct tg3 *tp, u32 off, u32 val) in tg3_write32()
475 static u32 tg3_read32(struct tg3 *tp, u32 off) in tg3_read32()
480 static void tg3_ape_write32(struct tg3 *tp, u32 off, u32 val) in tg3_ape_write32()
485 static u32 tg3_ape_read32(struct tg3 *tp, u32 off) in tg3_ape_read32()
490 static void tg3_write_indirect_reg32(struct tg3 *tp, u32 off, u32 val) in tg3_write_indirect_reg32()
500 static void tg3_write_flush_reg32(struct tg3 *tp, u32 off, u32 val) in tg3_write_flush_reg32()
506 static u32 tg3_read_indirect_reg32(struct tg3 *tp, u32 off) in tg3_read_indirect_reg32()
518 static void tg3_write_indirect_mbox(struct tg3 *tp, u32 off, u32 val) in tg3_write_indirect_mbox()
548 static u32 tg3_read_indirect_mbox(struct tg3 *tp, u32 off) in tg3_read_indirect_mbox()
565 static void _tw32_flush(struct tg3 *tp, u32 off, u32 val, u32 usec_wait) in _tw32_flush()
584 static inline void tw32_mailbox_flush(struct tg3 *tp, u32 off, u32 val) in tw32_mailbox_flush()
593 static void tg3_write32_tx_mbox(struct tg3 *tp, u32 off, u32 val) in tg3_write32_tx_mbox()
604 static u32 tg3_read32_mbox_5906(struct tg3 *tp, u32 off) in tg3_read32_mbox_5906()
609 static void tg3_write32_mbox_5906(struct tg3 *tp, u32 off, u32 val) in tg3_write32_mbox_5906()
625 static void tg3_write_mem(struct tg3 *tp, u32 off, u32 val) in tg3_write_mem()
650 static void tg3_read_mem(struct tg3 *tp, u32 off, u32 *val) in tg3_read_mem()
677 static void tg3_ape_lock_init(struct tg3 *tp) in tg3_ape_lock_init()
707 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()
807 static int tg3_ape_event_lock(struct tg3 *tp, u32 timeout_us) in tg3_ape_event_lock()
829 static int tg3_ape_wait_for_event(struct tg3 *tp, u32 timeout_us) in tg3_ape_wait_for_event()
845 static int tg3_ape_scratchpad_read(struct tg3 *tp, u32 *data, u32 base_off, in tg3_ape_scratchpad_read()
910 static int tg3_ape_send_event(struct tg3 *tp, u32 event) in tg3_ape_send_event()
937 static void tg3_ape_driver_state_change(struct tg3 *tp, int kind) in tg3_ape_driver_state_change()
985 static void tg3_send_ape_heartbeat(struct tg3 *tp, in tg3_send_ape_heartbeat()
997 static void tg3_disable_ints(struct tg3 *tp) in tg3_disable_ints()
1007 static void tg3_enable_ints(struct tg3 *tp) in tg3_enable_ints()
1040 struct tg3 *tp = tnapi->tp; in tg3_has_work() local
1069 struct tg3 *tp = tnapi->tp; in tg3_int_reenable() local
1082 static void tg3_switch_clocks(struct tg3 *tp) in tg3_switch_clocks()
1117 static int __tg3_readphy(struct tg3 *tp, unsigned int phy_addr, int reg, in __tg3_readphy()
1171 static int tg3_readphy(struct tg3 *tp, int reg, u32 *val) in tg3_readphy()
1176 static int __tg3_writephy(struct tg3 *tp, unsigned int phy_addr, int reg, in __tg3_writephy()
1230 static int tg3_writephy(struct tg3 *tp, int reg, u32 val) in tg3_writephy()
1235 static int tg3_phy_cl45_write(struct tg3 *tp, u32 devad, u32 addr, u32 val) in tg3_phy_cl45_write()
1258 static int tg3_phy_cl45_read(struct tg3 *tp, u32 devad, u32 addr, u32 *val) in tg3_phy_cl45_read()
1281 static int tg3_phydsp_read(struct tg3 *tp, u32 reg, u32 *val) in tg3_phydsp_read()
1292 static int tg3_phydsp_write(struct tg3 *tp, u32 reg, u32 val) in tg3_phydsp_write()
1303 static int tg3_phy_auxctl_read(struct tg3 *tp, int reg, u32 *val) in tg3_phy_auxctl_read()
1316 static int tg3_phy_auxctl_write(struct tg3 *tp, int reg, u32 set) in tg3_phy_auxctl_write()
1324 static int tg3_phy_toggle_auxctl_smdsp(struct tg3 *tp, bool enable) in tg3_phy_toggle_auxctl_smdsp()
1345 static int tg3_phy_shdw_write(struct tg3 *tp, int reg, u32 val) in tg3_phy_shdw_write()
1351 static int tg3_bmcr_reset(struct tg3 *tp) in tg3_bmcr_reset()
1384 struct tg3 *tp = bp->priv; in tg3_mdio_read() local
1399 struct tg3 *tp = bp->priv; in tg3_mdio_write() local
1412 static void tg3_mdio_config_5785(struct tg3 *tp) in tg3_mdio_config_5785()
1493 static void tg3_mdio_start(struct tg3 *tp) in tg3_mdio_start()
1504 static int tg3_mdio_init(struct tg3 *tp) in tg3_mdio_init()
1604 static void tg3_mdio_fini(struct tg3 *tp) in tg3_mdio_fini()
1614 static inline void tg3_generate_fw_event(struct tg3 *tp) in tg3_generate_fw_event()
1628 static void tg3_wait_for_event_ack(struct tg3 *tp) in tg3_wait_for_event_ack()
1658 static void tg3_phy_gather_ump_data(struct tg3 *tp, u32 *data) in tg3_phy_gather_ump_data()
1693 static void tg3_ump_link_report(struct tg3 *tp) in tg3_ump_link_report()
1715 static void tg3_stop_fw(struct tg3 *tp) in tg3_stop_fw()
1731 static void tg3_write_sig_pre_reset(struct tg3 *tp, int kind) in tg3_write_sig_pre_reset()
1760 static void tg3_write_sig_post_reset(struct tg3 *tp, int kind) in tg3_write_sig_post_reset()
1781 static void tg3_write_sig_legacy(struct tg3 *tp, int kind) in tg3_write_sig_legacy()
1806 static int tg3_poll_fw(struct tg3 *tp) in tg3_poll_fw()
1870 static void tg3_link_report(struct tg3 *tp) in tg3_link_report()
1960 static void tg3_setup_flow_control(struct tg3 *tp, u32 lcladv, u32 rmtadv) in tg3_setup_flow_control()
2003 struct tg3 *tp = netdev_priv(dev); in tg3_adjust_link() local
2083 static int tg3_phy_init(struct tg3 *tp) in tg3_phy_init()
2129 static void tg3_phy_start(struct tg3 *tp) in tg3_phy_start()
2152 static void tg3_phy_stop(struct tg3 *tp) in tg3_phy_stop()
2160 static void tg3_phy_fini(struct tg3 *tp) in tg3_phy_fini()
2168 static int tg3_phy_set_extloopbk(struct tg3 *tp) in tg3_phy_set_extloopbk()
2198 static void tg3_phy_fet_toggle_apd(struct tg3 *tp, bool enable) in tg3_phy_fet_toggle_apd()
2218 static void tg3_phy_toggle_apd(struct tg3 *tp, bool enable) in tg3_phy_toggle_apd()
2249 static void tg3_phy_toggle_automdix(struct tg3 *tp, bool enable) in tg3_phy_toggle_automdix()
2290 static void tg3_phy_set_wirespeed(struct tg3 *tp) in tg3_phy_set_wirespeed()
2304 static void tg3_phy_apply_otp(struct tg3 *tp) in tg3_phy_apply_otp()
2341 static void tg3_eee_pull_config(struct tg3 *tp, struct ethtool_eee *eee) in tg3_eee_pull_config()
2381 static void tg3_phy_eee_adjust(struct tg3 *tp, bool current_link_up) in tg3_phy_eee_adjust()
2421 static void tg3_phy_eee_enable(struct tg3 *tp) in tg3_phy_eee_enable()
2440 static int tg3_wait_macro_done(struct tg3 *tp) in tg3_wait_macro_done()
2458 static int tg3_phy_write_and_check_testpat(struct tg3 *tp, int *resetp) in tg3_phy_write_and_check_testpat()
2524 static int tg3_phy_reset_chanpat(struct tg3 *tp) in tg3_phy_reset_chanpat()
2544 static int tg3_phy_reset_5703_4_5(struct tg3 *tp) in tg3_phy_reset_5703_4_5()
2612 static void tg3_carrier_off(struct tg3 *tp) in tg3_carrier_off()
2618 static void tg3_warn_mgmt_link_flap(struct tg3 *tp) in tg3_warn_mgmt_link_flap()
2628 static int tg3_phy_reset(struct tg3 *tp) in tg3_phy_reset()
2785 static inline u32 tg3_set_function_status(struct tg3 *tp, u32 newstat) in tg3_set_function_status()
2808 static inline int tg3_pwrsrc_switch_to_vmain(struct tg3 *tp) in tg3_pwrsrc_switch_to_vmain()
2833 static void tg3_pwrsrc_die_with_vmain(struct tg3 *tp) in tg3_pwrsrc_die_with_vmain()
2857 static void tg3_pwrsrc_switch_to_vaux(struct tg3 *tp) in tg3_pwrsrc_switch_to_vaux()
2934 static void tg3_frob_aux_power_5717(struct tg3 *tp, bool wol_enable) in tg3_frob_aux_power_5717()
2959 static void tg3_frob_aux_power(struct tg3 *tp, bool include_wol) in tg3_frob_aux_power()
3003 static int tg3_5700_link_polarity(struct tg3 *tp, u32 speed) in tg3_5700_link_polarity()
3016 static bool tg3_phy_power_bug(struct tg3 *tp) in tg3_phy_power_bug()
3041 static bool tg3_phy_led_bug(struct tg3 *tp) in tg3_phy_led_bug()
3055 static void tg3_power_down_phy(struct tg3 *tp, bool do_low_power) in tg3_power_down_phy()
3130 static int tg3_nvram_lock(struct tg3 *tp) in tg3_nvram_lock()
3153 static void tg3_nvram_unlock(struct tg3 *tp) in tg3_nvram_unlock()
3164 static void tg3_enable_nvram_access(struct tg3 *tp) in tg3_enable_nvram_access()
3174 static void tg3_disable_nvram_access(struct tg3 *tp) in tg3_disable_nvram_access()
3183 static int tg3_nvram_read_using_eeprom(struct tg3 *tp, in tg3_nvram_read_using_eeprom()
3225 static int tg3_nvram_exec_cmd(struct tg3 *tp, u32 nvram_cmd) in tg3_nvram_exec_cmd()
3244 static u32 tg3_nvram_phys_addr(struct tg3 *tp, u32 addr) in tg3_nvram_phys_addr()
3259 static u32 tg3_nvram_logical_addr(struct tg3 *tp, u32 addr) in tg3_nvram_logical_addr()
3280 static int tg3_nvram_read(struct tg3 *tp, u32 offset, u32 *val) in tg3_nvram_read()
3313 static int tg3_nvram_read_be32(struct tg3 *tp, u32 offset, __be32 *val) in tg3_nvram_read_be32()
3322 static int tg3_nvram_write_block_using_eeprom(struct tg3 *tp, in tg3_nvram_write_block_using_eeprom()
3372 static int tg3_nvram_write_block_unbuffered(struct tg3 *tp, u32 offset, u32 len, in tg3_nvram_write_block_unbuffered()
3471 static int tg3_nvram_write_block_buffered(struct tg3 *tp, u32 offset, u32 len, in tg3_nvram_write_block_buffered()
3526 static int tg3_nvram_write_block(struct tg3 *tp, u32 offset, u32 len, u8 *buf) in tg3_nvram_write_block()
3581 static int tg3_pause_cpu(struct tg3 *tp, u32 cpu_base) in tg3_pause_cpu()
3599 static int tg3_rxcpu_pause(struct tg3 *tp) in tg3_rxcpu_pause()
3611 static int tg3_txcpu_pause(struct tg3 *tp) in tg3_txcpu_pause()
3617 static void tg3_resume_cpu(struct tg3 *tp, u32 cpu_base) in tg3_resume_cpu()
3624 static void tg3_rxcpu_resume(struct tg3 *tp) in tg3_rxcpu_resume()
3630 static int tg3_halt_cpu(struct tg3 *tp, u32 cpu_base) in tg3_halt_cpu()
3667 static int tg3_fw_data_len(struct tg3 *tp, in tg3_fw_data_len()
3695 static int tg3_load_firmware_cpu(struct tg3 *tp, u32 cpu_base, in tg3_load_firmware_cpu()
3761 static int tg3_pause_cpu_and_set_pc(struct tg3 *tp, u32 cpu_base, u32 pc) in tg3_pause_cpu_and_set_pc()
3782 static int tg3_load_5701_a0_firmware_fix(struct tg3 *tp) in tg3_load_5701_a0_firmware_fix()
3823 static int tg3_validate_rxcpu_state(struct tg3 *tp) in tg3_validate_rxcpu_state()
3855 static void tg3_load_57766_firmware(struct tg3 *tp) in tg3_load_57766_firmware()
3896 static int tg3_load_tso_firmware(struct tg3 *tp) in tg3_load_tso_firmware()
3946 static void __tg3_set_one_mac_addr(struct tg3 *tp, const u8 *mac_addr, in __tg3_set_one_mac_addr()
3966 static void __tg3_set_mac_addr(struct tg3 *tp, bool skip_mac_1) in __tg3_set_mac_addr()
3993 static void tg3_enable_register_access(struct tg3 *tp) in tg3_enable_register_access()
4003 static int tg3_power_up(struct tg3 *tp) in tg3_power_up()
4022 static int tg3_power_down_prepare(struct tg3 *tp) in tg3_power_down_prepare()
4269 static void tg3_power_down(struct tg3 *tp) in tg3_power_down()
4275 static void tg3_aux_stat_to_speed_duplex(struct tg3 *tp, u32 val, u32 *speed, u8 *duplex) in tg3_aux_stat_to_speed_duplex()
4322 static int tg3_phy_autoneg_cfg(struct tg3 *tp, u32 advertise, u32 flowctrl) in tg3_phy_autoneg_cfg()
4406 static void tg3_phy_copper_begin(struct tg3 *tp) in tg3_phy_copper_begin()
4503 static int tg3_phy_pull_config(struct tg3 *tp) in tg3_phy_pull_config()
4600 static int tg3_init_5401phy_dsp(struct tg3 *tp) in tg3_init_5401phy_dsp()
4619 static bool tg3_phy_eee_config_ok(struct tg3 *tp) in tg3_phy_eee_config_ok()
4642 static bool tg3_phy_copper_an_config_ok(struct tg3 *tp, u32 *lcladv) in tg3_phy_copper_an_config_ok()
4686 static bool tg3_phy_copper_fetch_rmtadv(struct tg3 *tp, u32 *rmtadv) in tg3_phy_copper_fetch_rmtadv()
4708 static bool tg3_test_and_report_link_chg(struct tg3 *tp, bool curr_link_up) in tg3_test_and_report_link_chg()
4726 static void tg3_clear_mac_status(struct tg3 *tp) in tg3_clear_mac_status()
4738 static void tg3_setup_eee(struct tg3 *tp) in tg3_setup_eee()
4774 static int tg3_setup_copper_phy(struct tg3 *tp, bool force_reset) in tg3_setup_copper_phy()
5151 static int tg3_fiber_aneg_smachine(struct tg3 *tp, in tg3_fiber_aneg_smachine()
5403 static int fiber_autoneg(struct tg3 *tp, u32 *txflags, u32 *rxflags) in fiber_autoneg()
5448 static void tg3_init_bcm8002(struct tg3 *tp) in tg3_init_bcm8002()
5498 static bool tg3_setup_fiber_hw_autoneg(struct tg3 *tp, u32 mac_status) in tg3_setup_fiber_hw_autoneg()
5642 static bool tg3_setup_fiber_by_hand(struct tg3 *tp, u32 mac_status) in tg3_setup_fiber_by_hand()
5707 static int tg3_setup_fiber_phy(struct tg3 *tp, bool force_reset) in tg3_setup_fiber_phy()
5809 static int tg3_setup_fiber_mii_phy(struct tg3 *tp, bool force_reset) in tg3_setup_fiber_mii_phy()
6003 static void tg3_serdes_parallel_detect(struct tg3 *tp) in tg3_serdes_parallel_detect()
6063 static int tg3_setup_phy(struct tg3 *tp, bool force_reset) in tg3_setup_phy()
6130 static u64 tg3_refclk_read(struct tg3 *tp, struct ptp_system_timestamp *sts) in tg3_refclk_read()
6143 static void tg3_refclk_write(struct tg3 *tp, u64 newval) in tg3_refclk_write()
6157 struct tg3 *tp = netdev_priv(dev); in tg3_get_ts_info() local
6185 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_adjfine() local
6213 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_adjtime() local
6226 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_gettimex() local
6242 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_settime() local
6257 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_enable() local
6317 static void tg3_hwclock_to_timestamp(struct tg3 *tp, u64 hwclock, in tg3_hwclock_to_timestamp()
6325 static void tg3_read_tx_tstamp(struct tg3 *tp, u64 *hwclock) in tg3_read_tx_tstamp()
6333 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_ts_aux_work() local
6375 static void tg3_ptp_init(struct tg3 *tp) in tg3_ptp_init()
6387 static void tg3_ptp_resume(struct tg3 *tp) in tg3_ptp_resume()
6396 static void tg3_ptp_fini(struct tg3 *tp) in tg3_ptp_fini()
6408 static inline int tg3_irq_sync(struct tg3 *tp) in tg3_irq_sync()
6413 static inline void tg3_rd32_loop(struct tg3 *tp, u32 *dst, u32 off, u32 len) in tg3_rd32_loop()
6422 static void tg3_dump_legacy_regs(struct tg3 *tp, u32 *regs) in tg3_dump_legacy_regs()
6472 static void tg3_dump_state(struct tg3 *tp) in tg3_dump_state()
6542 static void tg3_tx_recover(struct tg3 *tp) in tg3_tx_recover()
6570 struct tg3 *tp = tnapi->tp; in tg3_tx() local
6683 static void tg3_rx_data_free(struct tg3 *tp, struct ring_info *ri, u32 map_sz) in tg3_rx_data_free()
6709 static int tg3_alloc_rx_data(struct tg3 *tp, struct tg3_rx_prodring_set *tpr, in tg3_alloc_rx_data()
6781 struct tg3 *tp = tnapi->tp; in tg3_recycle_rx() local
6848 struct tg3 *tp = tnapi->tp; in tg3_rx() local
7056 static void tg3_poll_link(struct tg3 *tp) in tg3_poll_link()
7080 static int tg3_rx_prodring_xfer(struct tg3 *tp, in tg3_rx_prodring_xfer()
7208 struct tg3 *tp = tnapi->tp; in tg3_poll_work() local
7255 static inline void tg3_reset_task_schedule(struct tg3 *tp) in tg3_reset_task_schedule()
7261 static inline void tg3_reset_task_cancel(struct tg3 *tp) in tg3_reset_task_cancel()
7271 struct tg3 *tp = tnapi->tp; in tg3_poll_msix() local
7328 static void tg3_process_error(struct tg3 *tp) in tg3_process_error()
7365 struct tg3 *tp = tnapi->tp; in tg3_poll() local
7411 static void tg3_napi_disable(struct tg3 *tp) in tg3_napi_disable()
7419 static void tg3_napi_enable(struct tg3 *tp) in tg3_napi_enable()
7427 static void tg3_napi_init(struct tg3 *tp) in tg3_napi_init()
7436 static void tg3_napi_fini(struct tg3 *tp) in tg3_napi_fini()
7444 static inline void tg3_netif_stop(struct tg3 *tp) in tg3_netif_stop()
7453 static inline void tg3_netif_start(struct tg3 *tp) in tg3_netif_start()
7471 static void tg3_irq_quiesce(struct tg3 *tp) in tg3_irq_quiesce()
7495 static inline void tg3_full_lock(struct tg3 *tp, int irq_sync) in tg3_full_lock()
7502 static inline void tg3_full_unlock(struct tg3 *tp) in tg3_full_unlock()
7513 struct tg3 *tp = tnapi->tp; in tg3_msi_1shot() local
7532 struct tg3 *tp = tnapi->tp; in tg3_msi() local
7554 struct tg3 *tp = tnapi->tp; in tg3_interrupt() local
7603 struct tg3 *tp = tnapi->tp; in tg3_interrupt_tagged() local
7656 struct tg3 *tp = tnapi->tp; in tg3_test_isr() local
7671 struct tg3 *tp = netdev_priv(dev); in tg3_poll_controller() local
7683 struct tg3 *tp = netdev_priv(dev); in tg3_tx_timeout() local
7704 static inline int tg3_4g_tso_overflow_test(struct tg3 *tp, dma_addr_t mapping, in tg3_4g_tso_overflow_test()
7716 static inline int tg3_40bit_overflow_test(struct tg3 *tp, dma_addr_t mapping, in tg3_40bit_overflow_test()
7742 struct tg3 *tp = tnapi->tp; in tg3_tx_frag_set() local
7843 struct tg3 *tp = tnapi->tp; in tigon3_dma_hwbug_workaround() local
7905 static int tg3_tso_bug(struct tg3 *tp, struct tg3_napi *tnapi, in tg3_tso_bug()
7948 struct tg3 *tp = netdev_priv(dev); in __tg3_start_xmit() local
8229 struct tg3 *tp; in tg3_start_xmit() local
8243 static void tg3_mac_loopback(struct tg3 *tp, bool enable) in tg3_mac_loopback()
8271 static int tg3_phy_lpbk_set(struct tg3 *tp, u32 speed, bool extlpbk) in tg3_phy_lpbk_set()
8366 struct tg3 *tp = netdev_priv(dev); in tg3_set_loopback() local
8393 struct tg3 *tp = netdev_priv(dev); in tg3_fix_features() local
8411 static void tg3_rx_prodring_free(struct tg3 *tp, in tg3_rx_prodring_free()
8452 static int tg3_rx_prodring_alloc(struct tg3 *tp, in tg3_rx_prodring_alloc()
8554 static void tg3_rx_prodring_fini(struct tg3 *tp, in tg3_rx_prodring_fini()
8573 static int tg3_rx_prodring_init(struct tg3 *tp, in tg3_rx_prodring_init()
8616 static void tg3_free_rings(struct tg3 *tp) in tg3_free_rings()
8650 static int tg3_init_rings(struct tg3 *tp) in tg3_init_rings()
8685 static void tg3_mem_tx_release(struct tg3 *tp) in tg3_mem_tx_release()
8703 static int tg3_mem_tx_acquire(struct tg3 *tp) in tg3_mem_tx_acquire()
8736 static void tg3_mem_rx_release(struct tg3 *tp) in tg3_mem_rx_release()
8756 static int tg3_mem_rx_acquire(struct tg3 *tp) in tg3_mem_rx_acquire()
8800 static void tg3_free_consistent(struct tg3 *tp) in tg3_free_consistent()
8833 static int tg3_alloc_consistent(struct tg3 *tp) in tg3_alloc_consistent()
8900 static int tg3_stop_block(struct tg3 *tp, unsigned long ofs, u32 enable_bit, bool silent) in tg3_stop_block()
8952 static int tg3_abort_hw(struct tg3 *tp, bool silent) in tg3_abort_hw()
9024 static void tg3_save_pci_state(struct tg3 *tp) in tg3_save_pci_state()
9030 static void tg3_restore_pci_state(struct tg3 *tp) in tg3_restore_pci_state()
9090 static void tg3_override_clk(struct tg3 *tp) in tg3_override_clk()
9111 static void tg3_restore_clk(struct tg3 *tp) in tg3_restore_clk()
9134 static int tg3_chip_reset(struct tg3 *tp) in tg3_chip_reset()
9416 static int tg3_halt(struct tg3 *tp, int kind, bool silent) in tg3_halt()
9453 struct tg3 *tp = netdev_priv(dev); in tg3_set_mac_addr() local
9488 static void tg3_set_bdinfo(struct tg3 *tp, u32 bdinfo_addr, in tg3_set_bdinfo()
9509 static void tg3_coal_tx_init(struct tg3 *tp, struct ethtool_coalesce *ec) in tg3_coal_tx_init()
9541 static void tg3_coal_rx_init(struct tg3 *tp, struct ethtool_coalesce *ec) in tg3_coal_rx_init()
9575 static void __tg3_set_coalesce(struct tg3 *tp, struct ethtool_coalesce *ec) in __tg3_set_coalesce()
9594 static void tg3_tx_rcbs_disable(struct tg3 *tp) in tg3_tx_rcbs_disable()
9616 static void tg3_tx_rcbs_init(struct tg3 *tp) in tg3_tx_rcbs_init()
9637 static void tg3_rx_ret_rcbs_disable(struct tg3 *tp) in tg3_rx_ret_rcbs_disable()
9660 static void tg3_rx_ret_rcbs_init(struct tg3 *tp) in tg3_rx_ret_rcbs_init()
9681 static void tg3_rings_reset(struct tg3 *tp) in tg3_rings_reset()
9751 static void tg3_setup_rxbd_thresholds(struct tg3 *tp) in tg3_setup_rxbd_thresholds()
9814 static void tg3_set_multi(struct tg3 *tp, unsigned int accept_all) in tg3_set_multi()
9825 struct tg3 *tp = netdev_priv(dev); in __tg3_set_rx_mode() local
9891 static void tg3_rss_init_dflt_indir_tbl(struct tg3 *tp, u32 qcnt) in tg3_rss_init_dflt_indir_tbl()
9899 static void tg3_rss_check_indir_tbl(struct tg3 *tp) in tg3_rss_check_indir_tbl()
9921 static void tg3_rss_write_indir_tbl(struct tg3 *tp) in tg3_rss_write_indir_tbl()
9938 static inline u32 tg3_lso_rd_dma_workaround_bit(struct tg3 *tp) in tg3_lso_rd_dma_workaround_bit()
9947 static int tg3_reset_hw(struct tg3 *tp, bool reset_phy) in tg3_reset_hw()
10863 static int tg3_init_hw(struct tg3 *tp, bool reset_phy) in tg3_init_hw()
10880 static void tg3_sd_scan_scratchpad(struct tg3 *tp, struct tg3_ocir *ocir) in tg3_sd_scan_scratchpad()
10899 struct tg3 *tp = dev_get_drvdata(dev); in tg3_show_temp() local
10925 static void tg3_hwmon_close(struct tg3 *tp) in tg3_hwmon_close()
10933 static void tg3_hwmon_open(struct tg3 *tp) in tg3_hwmon_open()
10961 static inline void tg3_hwmon_close(struct tg3 *tp) { } in tg3_hwmon_close()
10962 static inline void tg3_hwmon_open(struct tg3 *tp) { } in tg3_hwmon_open()
10973 static void tg3_periodic_fetch_stats(struct tg3 *tp) in tg3_periodic_fetch_stats()
11039 static void tg3_chk_missed_msi(struct tg3 *tp) in tg3_chk_missed_msi()
11064 struct tg3 *tp = from_timer(tp, t, timer); in tg3_timer() local
11206 static void tg3_timer_init(struct tg3 *tp) in tg3_timer_init()
11224 static void tg3_timer_start(struct tg3 *tp) in tg3_timer_start()
11233 static void tg3_timer_stop(struct tg3 *tp) in tg3_timer_stop()
11241 static int tg3_restart_hw(struct tg3 *tp, bool reset_phy) in tg3_restart_hw()
11264 struct tg3 *tp = container_of(work, struct tg3, reset_task); in tg3_reset_task() local
11315 static int tg3_request_irq(struct tg3 *tp, int irq_num) in tg3_request_irq()
11356 static int tg3_test_interrupt(struct tg3 *tp) in tg3_test_interrupt()
11433 static int tg3_test_msi(struct tg3 *tp) in tg3_test_msi()
11491 static int tg3_request_firmware(struct tg3 *tp) in tg3_request_firmware()
11522 static u32 tg3_irq_count(struct tg3 *tp) in tg3_irq_count()
11538 static bool tg3_enable_msix(struct tg3 *tp) in tg3_enable_msix()
11597 static void tg3_ints_init(struct tg3 *tp) in tg3_ints_init()
11636 static void tg3_ints_fini(struct tg3 *tp) in tg3_ints_fini()
11648 static int tg3_start(struct tg3 *tp, bool reset_phy, bool test_irq, in tg3_start()
11763 static void tg3_stop(struct tg3 *tp) in tg3_stop()
11800 struct tg3 *tp = netdev_priv(dev); in tg3_open() local
11857 struct tg3 *tp = netdev_priv(dev); in tg3_close() local
11880 static u64 tg3_calc_crc_errors(struct tg3 *tp) in tg3_calc_crc_errors()
11908 static void tg3_get_estats(struct tg3 *tp, struct tg3_ethtool_stats *estats) in tg3_get_estats()
11992 static void tg3_get_nstats(struct tg3 *tp, struct rtnl_link_stats64 *stats) in tg3_get_nstats()
12075 struct tg3 *tp = netdev_priv(dev); in tg3_get_regs() local
12093 struct tg3 *tp = netdev_priv(dev); in tg3_get_eeprom_len() local
12100 struct tg3 *tp = netdev_priv(dev); in tg3_get_eeprom() local
12191 struct tg3 *tp = netdev_priv(dev); in tg3_set_eeprom() local
12248 struct tg3 *tp = netdev_priv(dev); in tg3_get_link_ksettings() local
12323 struct tg3 *tp = netdev_priv(dev); in tg3_set_link_ksettings() local
12418 struct tg3 *tp = netdev_priv(dev); in tg3_get_drvinfo() local
12427 struct tg3 *tp = netdev_priv(dev); in tg3_get_wol() local
12441 struct tg3 *tp = netdev_priv(dev); in tg3_set_wol() local
12462 struct tg3 *tp = netdev_priv(dev); in tg3_get_msglevel() local
12468 struct tg3 *tp = netdev_priv(dev); in tg3_set_msglevel() local
12474 struct tg3 *tp = netdev_priv(dev); in tg3_nway_reset() local
12513 struct tg3 *tp = netdev_priv(dev); in tg3_get_ringparam() local
12537 struct tg3 *tp = netdev_priv(dev); in tg3_set_ringparam() local
12592 struct tg3 *tp = netdev_priv(dev); in tg3_get_pauseparam() local
12609 struct tg3 *tp = netdev_priv(dev); in tg3_set_pauseparam() local
12715 struct tg3 *tp = netdev_priv(dev); in tg3_get_rxnfc() local
12740 struct tg3 *tp = netdev_priv(dev); in tg3_get_rxfh_indir_size() local
12750 struct tg3 *tp = netdev_priv(dev); in tg3_get_rxfh() local
12766 struct tg3 *tp = netdev_priv(dev); in tg3_set_rxfh() local
12799 struct tg3 *tp = netdev_priv(dev); in tg3_get_channels() local
12824 struct tg3 *tp = netdev_priv(dev); in tg3_set_channels() local
12866 struct tg3 *tp = netdev_priv(dev); in tg3_set_phys_id() local
12898 struct tg3 *tp = netdev_priv(dev); in tg3_get_ethtool_stats() local
12906 static __be32 *tg3_vpd_readblock(struct tg3 *tp, unsigned int *vpdlen) in tg3_vpd_readblock()
12977 static int tg3_test_nvram(struct tg3 *tp) in tg3_test_nvram()
13137 static int tg3_test_link(struct tg3 *tp) in tg3_test_link()
13161 static int tg3_test_registers(struct tg3 *tp) in tg3_test_registers()
13381 static int tg3_do_mem_test(struct tg3 *tp, u32 offset, u32 len) in tg3_do_mem_test()
13400 static int tg3_test_memory(struct tg3 *tp) in tg3_test_memory()
13493 static int tg3_run_loopback(struct tg3 *tp, u32 pktsz, bool tso_loopback) in tg3_run_loopback()
13709 static int tg3_test_loopback(struct tg3 *tp, u64 *data, bool do_extlpbk) in tg3_test_loopback()
13827 struct tg3 *tp = netdev_priv(dev); in tg3_self_test() local
13915 struct tg3 *tp = netdev_priv(dev); in tg3_hwtstamp_set() local
13999 struct tg3 *tp = netdev_priv(dev); in tg3_hwtstamp_get() local
14061 struct tg3 *tp = netdev_priv(dev); in tg3_ioctl() local
14128 struct tg3 *tp = netdev_priv(dev); in tg3_get_coalesce() local
14139 struct tg3 *tp = netdev_priv(dev); in tg3_set_coalesce() local
14185 struct tg3 *tp = netdev_priv(dev); in tg3_set_eee() local
14222 struct tg3 *tp = netdev_priv(dev); in tg3_get_eee() local
14279 struct tg3 *tp = netdev_priv(dev); in tg3_get_stats64() local
14294 struct tg3 *tp = netdev_priv(dev); in tg3_set_rx_mode() local
14304 static inline void tg3_set_mtu(struct net_device *dev, struct tg3 *tp, in tg3_set_mtu()
14327 struct tg3 *tp = netdev_priv(dev); in tg3_change_mtu() local
14389 static void tg3_get_eeprom_size(struct tg3 *tp) in tg3_get_eeprom_size()
14423 static void tg3_get_nvram_size(struct tg3 *tp) in tg3_get_nvram_size()
14456 static void tg3_get_nvram_info(struct tg3 *tp) in tg3_get_nvram_info()
14507 static void tg3_nvram_get_pagesize(struct tg3 *tp, u32 nvmcfg1) in tg3_nvram_get_pagesize()
14534 static void tg3_get_5752_nvram_info(struct tg3 *tp) in tg3_get_5752_nvram_info()
14575 static void tg3_get_5755_nvram_info(struct tg3 *tp) in tg3_get_5755_nvram_info()
14631 static void tg3_get_5787_nvram_info(struct tg3 *tp) in tg3_get_5787_nvram_info()
14669 static void tg3_get_5761_nvram_info(struct tg3 *tp) in tg3_get_5761_nvram_info()
14744 static void tg3_get_5906_nvram_info(struct tg3 *tp) in tg3_get_5906_nvram_info()
14751 static void tg3_get_57780_nvram_info(struct tg3 *tp) in tg3_get_57780_nvram_info()
14824 static void tg3_get_5717_nvram_info(struct tg3 *tp) in tg3_get_5717_nvram_info()
14902 static void tg3_get_5720_nvram_info(struct tg3 *tp) in tg3_get_5720_nvram_info()
15067 static void tg3_nvram_init(struct tg3 *tp) in tg3_nvram_init()
15210 static struct subsys_tbl_ent *tg3_lookup_by_subsys(struct tg3 *tp) in tg3_lookup_by_subsys()
15224 static void tg3_get_eeprom_hw_cfg(struct tg3 *tp) in tg3_get_eeprom_hw_cfg()
15441 static int tg3_ape_otp_read(struct tg3 *tp, u32 offset, u32 *val) in tg3_ape_otp_read()
15474 static int tg3_issue_otp_command(struct tg3 *tp, u32 cmd) in tg3_issue_otp_command()
15497 static u32 tg3_read_otp_phycfg(struct tg3 *tp) in tg3_read_otp_phycfg()
15523 static void tg3_phy_init_link_config(struct tg3 *tp) in tg3_phy_init_link_config()
15552 static int tg3_phy_probe(struct tg3 *tp) in tg3_phy_probe()
15707 static void tg3_read_vpd(struct tg3 *tp) in tg3_read_vpd()
15803 static int tg3_fw_img_is_valid(struct tg3 *tp, u32 offset) in tg3_fw_img_is_valid()
15816 static void tg3_read_bc_ver(struct tg3 *tp) in tg3_read_bc_ver()
15868 static void tg3_read_hwsb_ver(struct tg3 *tp) in tg3_read_hwsb_ver()
15884 static void tg3_read_sb_ver(struct tg3 *tp, u32 val) in tg3_read_sb_ver()
15939 static void tg3_read_mgmtfw_ver(struct tg3 *tp) in tg3_read_mgmtfw_ver()
15991 static void tg3_probe_ncsi(struct tg3 *tp) in tg3_probe_ncsi()
16007 static void tg3_read_dash_ver(struct tg3 *tp) in tg3_read_dash_ver()
16032 static void tg3_read_otp_ver(struct tg3 *tp) in tg3_read_otp_ver()
16057 static void tg3_read_fw_ver(struct tg3 *tp) in tg3_read_fw_ver()
16094 static inline u32 tg3_rx_ret_ring_size(struct tg3 *tp) in tg3_rx_ret_ring_size()
16111 static struct pci_dev *tg3_find_peer(struct tg3 *tp) in tg3_find_peer()
16139 static void tg3_detect_asic_rev(struct tg3 *tp, u32 misc_ctrl_reg) in tg3_detect_asic_rev()
16227 static bool tg3_10_100_only_device(struct tg3 *tp, in tg3_10_100_only_device()
16249 static int tg3_get_invariants(struct tg3 *tp, const struct pci_device_id *ent) in tg3_get_invariants()
17030 static int tg3_get_device_address(struct tg3 *tp, u8 *addr) in tg3_get_device_address()
17107 static u32 tg3_calc_dma_bndry(struct tg3 *tp, u32 val) in tg3_calc_dma_bndry()
17248 static int tg3_do_test_dma(struct tg3 *tp, u32 *buf, dma_addr_t buf_dma, in tg3_do_test_dma()
17336 static int tg3_test_dma(struct tg3 *tp) in tg3_test_dma()
17510 static void tg3_init_bufmgr_config(struct tg3 *tp) in tg3_init_bufmgr_config()
17566 static char *tg3_phy_string(struct tg3 *tp) in tg3_phy_string()
17598 static char *tg3_bus_string(struct tg3 *tp, char *str) in tg3_bus_string()
17634 static void tg3_init_coal(struct tg3 *tp) in tg3_init_coal()
17669 struct tg3 *tp; in tg3_init_one() local
18060 struct tg3 *tp = netdev_priv(dev); in tg3_remove_one() local
18092 struct tg3 *tp = netdev_priv(dev); in tg3_suspend() local
18148 struct tg3 *tp = netdev_priv(dev); in tg3_resume() local
18189 struct tg3 *tp = netdev_priv(dev); in tg3_shutdown() local
18220 struct tg3 *tp = netdev_priv(netdev); in tg3_io_error_detected() local
18279 struct tg3 *tp = netdev_priv(netdev); in tg3_io_slot_reset() local
18326 struct tg3 *tp = netdev_priv(netdev); in tg3_io_resume() local