Lines Matching defs:tp
93 #define tg3_flag(tp, flag) \ argument
95 #define tg3_flag_set(tp, flag) \ argument
97 #define tg3_flag_clear(tp, flag) \ argument
131 #define TG3_MAX_MTU(tp) \ argument
138 #define TG3_RX_STD_RING_SIZE(tp) \ argument
142 #define TG3_RX_JMB_RING_SIZE(tp) \ argument
157 #define TG3_RX_STD_RING_BYTES(tp) \ argument
159 #define TG3_RX_JMB_RING_BYTES(tp) \ argument
161 #define TG3_RX_RCB_RING_BYTES(tp) \ argument
177 #define TG3_RX_STD_BUFF_RING_SIZE(tp) \ argument
180 #define TG3_RX_JMB_BUFF_RING_SIZE(tp) \ argument
196 #define TG3_RX_COPY_THRESH(tp) TG3_RX_COPY_THRESHOLD argument
198 #define TG3_RX_COPY_THRESH(tp) ((tp)->rx_copy_thresh) argument
202 #define TG3_RX_OFFSET(tp) ((tp)->rx_offset) argument
204 #define TG3_RX_OFFSET(tp) (NET_SKB_PAD) argument
214 #define TG3_MAX_UCAST_ADDR(tp) (tg3_flag((tp), ENABLE_ASF) ? 2 : 3) argument
215 #define TG3_UCAST_ADDR_IDX(tp) (tg3_flag((tp), ENABLE_ASF) ? 2 : 1) argument
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()
771 static void tg3_ape_unlock(struct tg3 *tp, int locknum) in tg3_ape_unlock()
808 static int tg3_ape_event_lock(struct tg3 *tp, u32 timeout_us) in tg3_ape_event_lock()
830 static int tg3_ape_wait_for_event(struct tg3 *tp, u32 timeout_us) in tg3_ape_wait_for_event()
846 static int tg3_ape_scratchpad_read(struct tg3 *tp, u32 *data, u32 base_off, in tg3_ape_scratchpad_read()
911 static int tg3_ape_send_event(struct tg3 *tp, u32 event) in tg3_ape_send_event()
938 static void tg3_ape_driver_state_change(struct tg3 *tp, int kind) in tg3_ape_driver_state_change()
986 static void tg3_send_ape_heartbeat(struct tg3 *tp, in tg3_send_ape_heartbeat()
998 static void tg3_disable_ints(struct tg3 *tp) in tg3_disable_ints()
1008 static void tg3_enable_ints(struct tg3 *tp) in tg3_enable_ints()
1041 struct tg3 *tp = tnapi->tp; in tg3_has_work() local
1070 struct tg3 *tp = tnapi->tp; in tg3_int_reenable() local
1083 static void tg3_switch_clocks(struct tg3 *tp) in tg3_switch_clocks()
1118 static int __tg3_readphy(struct tg3 *tp, unsigned int phy_addr, int reg, in __tg3_readphy()
1172 static int tg3_readphy(struct tg3 *tp, int reg, u32 *val) in tg3_readphy()
1177 static int __tg3_writephy(struct tg3 *tp, unsigned int phy_addr, int reg, in __tg3_writephy()
1231 static int tg3_writephy(struct tg3 *tp, int reg, u32 val) in tg3_writephy()
1236 static int tg3_phy_cl45_write(struct tg3 *tp, u32 devad, u32 addr, u32 val) in tg3_phy_cl45_write()
1259 static int tg3_phy_cl45_read(struct tg3 *tp, u32 devad, u32 addr, u32 *val) in tg3_phy_cl45_read()
1282 static int tg3_phydsp_read(struct tg3 *tp, u32 reg, u32 *val) in tg3_phydsp_read()
1293 static int tg3_phydsp_write(struct tg3 *tp, u32 reg, u32 val) in tg3_phydsp_write()
1304 static int tg3_phy_auxctl_read(struct tg3 *tp, int reg, u32 *val) in tg3_phy_auxctl_read()
1317 static int tg3_phy_auxctl_write(struct tg3 *tp, int reg, u32 set) in tg3_phy_auxctl_write()
1325 static int tg3_phy_toggle_auxctl_smdsp(struct tg3 *tp, bool enable) in tg3_phy_toggle_auxctl_smdsp()
1346 static int tg3_phy_shdw_write(struct tg3 *tp, int reg, u32 val) in tg3_phy_shdw_write()
1352 static int tg3_bmcr_reset(struct tg3 *tp) in tg3_bmcr_reset()
1385 struct tg3 *tp = bp->priv; in tg3_mdio_read() local
1400 struct tg3 *tp = bp->priv; in tg3_mdio_write() local
1413 static void tg3_mdio_config_5785(struct tg3 *tp) in tg3_mdio_config_5785()
1494 static void tg3_mdio_start(struct tg3 *tp) in tg3_mdio_start()
1505 static int tg3_mdio_init(struct tg3 *tp) in tg3_mdio_init()
1605 static void tg3_mdio_fini(struct tg3 *tp) in tg3_mdio_fini()
1615 static inline void tg3_generate_fw_event(struct tg3 *tp) in tg3_generate_fw_event()
1629 static void tg3_wait_for_event_ack(struct tg3 *tp) in tg3_wait_for_event_ack()
1659 static void tg3_phy_gather_ump_data(struct tg3 *tp, u32 *data) in tg3_phy_gather_ump_data()
1694 static void tg3_ump_link_report(struct tg3 *tp) in tg3_ump_link_report()
1716 static void tg3_stop_fw(struct tg3 *tp) in tg3_stop_fw()
1732 static void tg3_write_sig_pre_reset(struct tg3 *tp, int kind) in tg3_write_sig_pre_reset()
1761 static void tg3_write_sig_post_reset(struct tg3 *tp, int kind) in tg3_write_sig_post_reset()
1782 static void tg3_write_sig_legacy(struct tg3 *tp, int kind) in tg3_write_sig_legacy()
1807 static int tg3_poll_fw(struct tg3 *tp) in tg3_poll_fw()
1871 static void tg3_link_report(struct tg3 *tp) in tg3_link_report()
1961 static void tg3_setup_flow_control(struct tg3 *tp, u32 lcladv, u32 rmtadv) in tg3_setup_flow_control()
2004 struct tg3 *tp = netdev_priv(dev); in tg3_adjust_link() local
2084 static int tg3_phy_init(struct tg3 *tp) in tg3_phy_init()
2130 static void tg3_phy_start(struct tg3 *tp) in tg3_phy_start()
2153 static void tg3_phy_stop(struct tg3 *tp) in tg3_phy_stop()
2161 static void tg3_phy_fini(struct tg3 *tp) in tg3_phy_fini()
2169 static int tg3_phy_set_extloopbk(struct tg3 *tp) in tg3_phy_set_extloopbk()
2199 static void tg3_phy_fet_toggle_apd(struct tg3 *tp, bool enable) in tg3_phy_fet_toggle_apd()
2219 static void tg3_phy_toggle_apd(struct tg3 *tp, bool enable) in tg3_phy_toggle_apd()
2250 static void tg3_phy_toggle_automdix(struct tg3 *tp, bool enable) in tg3_phy_toggle_automdix()
2291 static void tg3_phy_set_wirespeed(struct tg3 *tp) in tg3_phy_set_wirespeed()
2305 static void tg3_phy_apply_otp(struct tg3 *tp) in tg3_phy_apply_otp()
2342 static void tg3_eee_pull_config(struct tg3 *tp, struct ethtool_keee *eee) in tg3_eee_pull_config()
2382 static void tg3_phy_eee_adjust(struct tg3 *tp, bool current_link_up) in tg3_phy_eee_adjust()
2422 static void tg3_phy_eee_enable(struct tg3 *tp) in tg3_phy_eee_enable()
2441 static int tg3_wait_macro_done(struct tg3 *tp) in tg3_wait_macro_done()
2459 static int tg3_phy_write_and_check_testpat(struct tg3 *tp, int *resetp) in tg3_phy_write_and_check_testpat()
2525 static int tg3_phy_reset_chanpat(struct tg3 *tp) in tg3_phy_reset_chanpat()
2545 static int tg3_phy_reset_5703_4_5(struct tg3 *tp) in tg3_phy_reset_5703_4_5()
2613 static void tg3_carrier_off(struct tg3 *tp) in tg3_carrier_off()
2619 static void tg3_warn_mgmt_link_flap(struct tg3 *tp) in tg3_warn_mgmt_link_flap()
2629 static int tg3_phy_reset(struct tg3 *tp) in tg3_phy_reset()
2786 static inline u32 tg3_set_function_status(struct tg3 *tp, u32 newstat) in tg3_set_function_status()
2809 static inline int tg3_pwrsrc_switch_to_vmain(struct tg3 *tp) in tg3_pwrsrc_switch_to_vmain()
2834 static void tg3_pwrsrc_die_with_vmain(struct tg3 *tp) in tg3_pwrsrc_die_with_vmain()
2858 static void tg3_pwrsrc_switch_to_vaux(struct tg3 *tp) in tg3_pwrsrc_switch_to_vaux()
2935 static void tg3_frob_aux_power_5717(struct tg3 *tp, bool wol_enable) in tg3_frob_aux_power_5717()
2960 static void tg3_frob_aux_power(struct tg3 *tp, bool include_wol) in tg3_frob_aux_power()
3004 static int tg3_5700_link_polarity(struct tg3 *tp, u32 speed) in tg3_5700_link_polarity()
3017 static bool tg3_phy_power_bug(struct tg3 *tp) in tg3_phy_power_bug()
3042 static bool tg3_phy_led_bug(struct tg3 *tp) in tg3_phy_led_bug()
3056 static void tg3_power_down_phy(struct tg3 *tp, bool do_low_power) in tg3_power_down_phy()
3131 static int tg3_nvram_lock(struct tg3 *tp) in tg3_nvram_lock()
3154 static void tg3_nvram_unlock(struct tg3 *tp) in tg3_nvram_unlock()
3165 static void tg3_enable_nvram_access(struct tg3 *tp) in tg3_enable_nvram_access()
3175 static void tg3_disable_nvram_access(struct tg3 *tp) in tg3_disable_nvram_access()
3184 static int tg3_nvram_read_using_eeprom(struct tg3 *tp, in tg3_nvram_read_using_eeprom()
3226 static int tg3_nvram_exec_cmd(struct tg3 *tp, u32 nvram_cmd) in tg3_nvram_exec_cmd()
3245 static u32 tg3_nvram_phys_addr(struct tg3 *tp, u32 addr) in tg3_nvram_phys_addr()
3260 static u32 tg3_nvram_logical_addr(struct tg3 *tp, u32 addr) in tg3_nvram_logical_addr()
3281 static int tg3_nvram_read(struct tg3 *tp, u32 offset, u32 *val) in tg3_nvram_read()
3314 static int tg3_nvram_read_be32(struct tg3 *tp, u32 offset, __be32 *val) in tg3_nvram_read_be32()
3323 static int tg3_nvram_write_block_using_eeprom(struct tg3 *tp, in tg3_nvram_write_block_using_eeprom()
3373 static int tg3_nvram_write_block_unbuffered(struct tg3 *tp, u32 offset, u32 len, in tg3_nvram_write_block_unbuffered()
3472 static int tg3_nvram_write_block_buffered(struct tg3 *tp, u32 offset, u32 len, in tg3_nvram_write_block_buffered()
3527 static int tg3_nvram_write_block(struct tg3 *tp, u32 offset, u32 len, u8 *buf) in tg3_nvram_write_block()
3582 static int tg3_pause_cpu(struct tg3 *tp, u32 cpu_base) in tg3_pause_cpu()
3600 static int tg3_rxcpu_pause(struct tg3 *tp) in tg3_rxcpu_pause()
3612 static int tg3_txcpu_pause(struct tg3 *tp) in tg3_txcpu_pause()
3618 static void tg3_resume_cpu(struct tg3 *tp, u32 cpu_base) in tg3_resume_cpu()
3625 static void tg3_rxcpu_resume(struct tg3 *tp) in tg3_rxcpu_resume()
3631 static int tg3_halt_cpu(struct tg3 *tp, u32 cpu_base) in tg3_halt_cpu()
3668 static int tg3_fw_data_len(struct tg3 *tp, in tg3_fw_data_len()
3696 static int tg3_load_firmware_cpu(struct tg3 *tp, u32 cpu_base, in tg3_load_firmware_cpu()
3762 static int tg3_pause_cpu_and_set_pc(struct tg3 *tp, u32 cpu_base, u32 pc) in tg3_pause_cpu_and_set_pc()
3783 static int tg3_load_5701_a0_firmware_fix(struct tg3 *tp) in tg3_load_5701_a0_firmware_fix()
3824 static int tg3_validate_rxcpu_state(struct tg3 *tp) in tg3_validate_rxcpu_state()
3856 static void tg3_load_57766_firmware(struct tg3 *tp) in tg3_load_57766_firmware()
3897 static int tg3_load_tso_firmware(struct tg3 *tp) in tg3_load_tso_firmware()
3947 static void __tg3_set_one_mac_addr(struct tg3 *tp, const u8 *mac_addr, in __tg3_set_one_mac_addr()
3967 static void __tg3_set_mac_addr(struct tg3 *tp, bool skip_mac_1) in __tg3_set_mac_addr()
3994 static void tg3_enable_register_access(struct tg3 *tp) in tg3_enable_register_access()
4004 static int tg3_power_up(struct tg3 *tp) in tg3_power_up()
4023 static void tg3_power_down_prepare(struct tg3 *tp) in tg3_power_down_prepare()
4270 static void tg3_power_down(struct tg3 *tp) in tg3_power_down()
4276 static void tg3_aux_stat_to_speed_duplex(struct tg3 *tp, u32 val, u32 *speed, u8 *duplex) in tg3_aux_stat_to_speed_duplex()
4323 static int tg3_phy_autoneg_cfg(struct tg3 *tp, u32 advertise, u32 flowctrl) in tg3_phy_autoneg_cfg()
4396 static void tg3_phy_copper_begin(struct tg3 *tp) in tg3_phy_copper_begin()
4493 static int tg3_phy_pull_config(struct tg3 *tp) in tg3_phy_pull_config()
4590 static int tg3_init_5401phy_dsp(struct tg3 *tp) in tg3_init_5401phy_dsp()
4609 static bool tg3_phy_eee_config_ok(struct tg3 *tp) in tg3_phy_eee_config_ok()
4632 static bool tg3_phy_copper_an_config_ok(struct tg3 *tp, u32 *lcladv) in tg3_phy_copper_an_config_ok()
4676 static bool tg3_phy_copper_fetch_rmtadv(struct tg3 *tp, u32 *rmtadv) in tg3_phy_copper_fetch_rmtadv()
4698 static bool tg3_test_and_report_link_chg(struct tg3 *tp, bool curr_link_up) in tg3_test_and_report_link_chg()
4716 static void tg3_clear_mac_status(struct tg3 *tp) in tg3_clear_mac_status()
4728 static void tg3_setup_eee(struct tg3 *tp) in tg3_setup_eee()
4764 static int tg3_setup_copper_phy(struct tg3 *tp, bool force_reset) in tg3_setup_copper_phy()
5141 static int tg3_fiber_aneg_smachine(struct tg3 *tp, in tg3_fiber_aneg_smachine()
5393 static int fiber_autoneg(struct tg3 *tp, u32 *txflags, u32 *rxflags) in fiber_autoneg()
5438 static void tg3_init_bcm8002(struct tg3 *tp) in tg3_init_bcm8002()
5488 static bool tg3_setup_fiber_hw_autoneg(struct tg3 *tp, u32 mac_status) in tg3_setup_fiber_hw_autoneg()
5632 static bool tg3_setup_fiber_by_hand(struct tg3 *tp, u32 mac_status) in tg3_setup_fiber_by_hand()
5697 static int tg3_setup_fiber_phy(struct tg3 *tp, bool force_reset) in tg3_setup_fiber_phy()
5799 static int tg3_setup_fiber_mii_phy(struct tg3 *tp, bool force_reset) in tg3_setup_fiber_mii_phy()
5993 static void tg3_serdes_parallel_detect(struct tg3 *tp) in tg3_serdes_parallel_detect()
6053 static int tg3_setup_phy(struct tg3 *tp, bool force_reset) in tg3_setup_phy()
6120 static u64 tg3_refclk_read(struct tg3 *tp, struct ptp_system_timestamp *sts) in tg3_refclk_read()
6133 static void tg3_refclk_write(struct tg3 *tp, u64 newval) in tg3_refclk_write()
6147 struct tg3 *tp = netdev_priv(dev); in tg3_get_ts_info() local
6171 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_adjfine() local
6199 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_adjtime() local
6212 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_gettimex() local
6228 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_settime() local
6243 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_enable() local
6303 static void tg3_hwclock_to_timestamp(struct tg3 *tp, u64 hwclock, in tg3_hwclock_to_timestamp()
6311 static void tg3_read_tx_tstamp(struct tg3 *tp, u64 *hwclock) in tg3_read_tx_tstamp()
6319 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_ts_aux_work() local
6361 static void tg3_ptp_init(struct tg3 *tp) in tg3_ptp_init()
6373 static void tg3_ptp_resume(struct tg3 *tp) in tg3_ptp_resume()
6382 static void tg3_ptp_fini(struct tg3 *tp) in tg3_ptp_fini()
6394 static inline int tg3_irq_sync(struct tg3 *tp) in tg3_irq_sync()
6399 static inline void tg3_rd32_loop(struct tg3 *tp, u32 *dst, u32 off, u32 len) in tg3_rd32_loop()
6408 static void tg3_dump_legacy_regs(struct tg3 *tp, u32 *regs) in tg3_dump_legacy_regs()
6458 static void tg3_dump_state(struct tg3 *tp) in tg3_dump_state()
6528 static void tg3_tx_recover(struct tg3 *tp) in tg3_tx_recover()
6556 struct tg3 *tp = tnapi->tp; in tg3_tx() local
6669 static void tg3_rx_data_free(struct tg3 *tp, struct ring_info *ri, u32 map_sz) in tg3_rx_data_free()
6695 static int tg3_alloc_rx_data(struct tg3 *tp, struct tg3_rx_prodring_set *tpr, in tg3_alloc_rx_data()
6767 struct tg3 *tp = tnapi->tp; in tg3_recycle_rx() local
6834 struct tg3 *tp = tnapi->tp; in tg3_rx() local
7042 static void tg3_poll_link(struct tg3 *tp) in tg3_poll_link()
7066 static int tg3_rx_prodring_xfer(struct tg3 *tp, in tg3_rx_prodring_xfer()
7194 struct tg3 *tp = tnapi->tp; in tg3_poll_work() local
7241 static inline void tg3_reset_task_schedule(struct tg3 *tp) in tg3_reset_task_schedule()
7247 static inline void tg3_reset_task_cancel(struct tg3 *tp) in tg3_reset_task_cancel()
7257 struct tg3 *tp = tnapi->tp; in tg3_poll_msix() local
7314 static void tg3_process_error(struct tg3 *tp) in tg3_process_error()
7351 struct tg3 *tp = tnapi->tp; in tg3_poll() local
7397 static void tg3_napi_disable(struct tg3 *tp) in tg3_napi_disable()
7420 static void tg3_napi_enable(struct tg3 *tp) in tg3_napi_enable()
7444 static void tg3_napi_init(struct tg3 *tp) in tg3_napi_init()
7456 static void tg3_napi_fini(struct tg3 *tp) in tg3_napi_fini()
7464 static inline void tg3_netif_stop(struct tg3 *tp) in tg3_netif_stop()
7473 static inline void tg3_netif_start(struct tg3 *tp) in tg3_netif_start()
7491 static void tg3_irq_quiesce(struct tg3 *tp) in tg3_irq_quiesce()
7515 static inline void tg3_full_lock(struct tg3 *tp, int irq_sync) in tg3_full_lock()
7522 static inline void tg3_full_unlock(struct tg3 *tp) in tg3_full_unlock()
7533 struct tg3 *tp = tnapi->tp; in tg3_msi_1shot() local
7552 struct tg3 *tp = tnapi->tp; in tg3_msi() local
7574 struct tg3 *tp = tnapi->tp; in tg3_interrupt() local
7623 struct tg3 *tp = tnapi->tp; in tg3_interrupt_tagged() local
7676 struct tg3 *tp = tnapi->tp; in tg3_test_isr() local
7691 struct tg3 *tp = netdev_priv(dev); in tg3_poll_controller() local
7703 struct tg3 *tp = netdev_priv(dev); in tg3_tx_timeout() local
7724 static inline int tg3_4g_tso_overflow_test(struct tg3 *tp, dma_addr_t mapping, in tg3_4g_tso_overflow_test()
7736 static inline int tg3_40bit_overflow_test(struct tg3 *tp, dma_addr_t mapping, in tg3_40bit_overflow_test()
7762 struct tg3 *tp = tnapi->tp; in tg3_tx_frag_set() local
7863 struct tg3 *tp = tnapi->tp; in tigon3_dma_hwbug_workaround() local
7925 static int tg3_tso_bug(struct tg3 *tp, struct tg3_napi *tnapi, in tg3_tso_bug()
7968 struct tg3 *tp = netdev_priv(dev); in __tg3_start_xmit() local
8249 struct tg3 *tp; in tg3_start_xmit() local
8263 static void tg3_mac_loopback(struct tg3 *tp, bool enable) in tg3_mac_loopback()
8291 static int tg3_phy_lpbk_set(struct tg3 *tp, u32 speed, bool extlpbk) in tg3_phy_lpbk_set()
8386 struct tg3 *tp = netdev_priv(dev); in tg3_set_loopback() local
8413 struct tg3 *tp = netdev_priv(dev); in tg3_fix_features() local
8431 static void tg3_rx_prodring_free(struct tg3 *tp, in tg3_rx_prodring_free()
8472 static int tg3_rx_prodring_alloc(struct tg3 *tp, in tg3_rx_prodring_alloc()
8574 static void tg3_rx_prodring_fini(struct tg3 *tp, in tg3_rx_prodring_fini()
8593 static int tg3_rx_prodring_init(struct tg3 *tp, in tg3_rx_prodring_init()
8636 static void tg3_free_rings(struct tg3 *tp) in tg3_free_rings()
8670 static int tg3_init_rings(struct tg3 *tp) in tg3_init_rings()
8705 static void tg3_mem_tx_release(struct tg3 *tp) in tg3_mem_tx_release()
8723 static int tg3_mem_tx_acquire(struct tg3 *tp) in tg3_mem_tx_acquire()
8756 static void tg3_mem_rx_release(struct tg3 *tp) in tg3_mem_rx_release()
8776 static int tg3_mem_rx_acquire(struct tg3 *tp) in tg3_mem_rx_acquire()
8820 static void tg3_free_consistent(struct tg3 *tp) in tg3_free_consistent()
8853 static int tg3_alloc_consistent(struct tg3 *tp) in tg3_alloc_consistent()
8920 static int tg3_stop_block(struct tg3 *tp, unsigned long ofs, u32 enable_bit, bool silent) in tg3_stop_block()
8972 static int tg3_abort_hw(struct tg3 *tp, bool silent) in tg3_abort_hw()
9044 static void tg3_save_pci_state(struct tg3 *tp) in tg3_save_pci_state()
9050 static void tg3_restore_pci_state(struct tg3 *tp) in tg3_restore_pci_state()
9110 static void tg3_override_clk(struct tg3 *tp) in tg3_override_clk()
9131 static void tg3_restore_clk(struct tg3 *tp) in tg3_restore_clk()
9154 static int tg3_chip_reset(struct tg3 *tp) in tg3_chip_reset()
9436 static int tg3_halt(struct tg3 *tp, int kind, bool silent) in tg3_halt()
9473 struct tg3 *tp = netdev_priv(dev); in tg3_set_mac_addr() local
9508 static void tg3_set_bdinfo(struct tg3 *tp, u32 bdinfo_addr, in tg3_set_bdinfo()
9529 static void tg3_coal_tx_init(struct tg3 *tp, struct ethtool_coalesce *ec) in tg3_coal_tx_init()
9561 static void tg3_coal_rx_init(struct tg3 *tp, struct ethtool_coalesce *ec) in tg3_coal_rx_init()
9595 static void __tg3_set_coalesce(struct tg3 *tp, struct ethtool_coalesce *ec) in __tg3_set_coalesce()
9614 static void tg3_tx_rcbs_disable(struct tg3 *tp) in tg3_tx_rcbs_disable()
9636 static void tg3_tx_rcbs_init(struct tg3 *tp) in tg3_tx_rcbs_init()
9657 static void tg3_rx_ret_rcbs_disable(struct tg3 *tp) in tg3_rx_ret_rcbs_disable()
9680 static void tg3_rx_ret_rcbs_init(struct tg3 *tp) in tg3_rx_ret_rcbs_init()
9701 static void tg3_rings_reset(struct tg3 *tp) in tg3_rings_reset()
9771 static void tg3_setup_rxbd_thresholds(struct tg3 *tp) in tg3_setup_rxbd_thresholds()
9834 static void tg3_set_multi(struct tg3 *tp, unsigned int accept_all) in tg3_set_multi()
9845 struct tg3 *tp = netdev_priv(dev); in __tg3_set_rx_mode() local
9911 static void tg3_rss_init_dflt_indir_tbl(struct tg3 *tp, u32 qcnt) in tg3_rss_init_dflt_indir_tbl()
9919 static void tg3_rss_check_indir_tbl(struct tg3 *tp) in tg3_rss_check_indir_tbl()
9941 static void tg3_rss_write_indir_tbl(struct tg3 *tp) in tg3_rss_write_indir_tbl()
9958 static inline u32 tg3_lso_rd_dma_workaround_bit(struct tg3 *tp) in tg3_lso_rd_dma_workaround_bit()
9967 static int tg3_reset_hw(struct tg3 *tp, bool reset_phy) in tg3_reset_hw()
10883 static int tg3_init_hw(struct tg3 *tp, bool reset_phy) in tg3_init_hw()
10900 static void tg3_sd_scan_scratchpad(struct tg3 *tp, struct tg3_ocir *ocir) in tg3_sd_scan_scratchpad()
10919 struct tg3 *tp = dev_get_drvdata(dev); in tg3_show_temp() local
10945 static void tg3_hwmon_close(struct tg3 *tp) in tg3_hwmon_close()
10953 static void tg3_hwmon_open(struct tg3 *tp) in tg3_hwmon_open()
10981 static inline void tg3_hwmon_close(struct tg3 *tp) { } in tg3_hwmon_close()
10982 static inline void tg3_hwmon_open(struct tg3 *tp) { } in tg3_hwmon_open()
10993 static void tg3_periodic_fetch_stats(struct tg3 *tp) in tg3_periodic_fetch_stats()
11059 static void tg3_chk_missed_msi(struct tg3 *tp) in tg3_chk_missed_msi()
11084 struct tg3 *tp = from_timer(tp, t, timer); in tg3_timer() local
11226 static void tg3_timer_init(struct tg3 *tp) in tg3_timer_init()
11244 static void tg3_timer_start(struct tg3 *tp) in tg3_timer_start()
11253 static void tg3_timer_stop(struct tg3 *tp) in tg3_timer_stop()
11261 static int tg3_restart_hw(struct tg3 *tp, bool reset_phy) in tg3_restart_hw()
11288 struct tg3 *tp = container_of(work, struct tg3, reset_task); in tg3_reset_task() local
11342 static int tg3_request_irq(struct tg3 *tp, int irq_num) in tg3_request_irq()
11382 static int tg3_test_interrupt(struct tg3 *tp) in tg3_test_interrupt()
11459 static int tg3_test_msi(struct tg3 *tp) in tg3_test_msi()
11517 static int tg3_request_firmware(struct tg3 *tp) in tg3_request_firmware()
11548 static u32 tg3_irq_count(struct tg3 *tp) in tg3_irq_count()
11564 static bool tg3_enable_msix(struct tg3 *tp) in tg3_enable_msix()
11623 static void tg3_ints_init(struct tg3 *tp) in tg3_ints_init()
11662 static void tg3_ints_fini(struct tg3 *tp) in tg3_ints_fini()
11674 static int tg3_start(struct tg3 *tp, bool reset_phy, bool test_irq, in tg3_start()
11791 static void tg3_stop(struct tg3 *tp) in tg3_stop()
11828 struct tg3 *tp = netdev_priv(dev); in tg3_open() local
11885 struct tg3 *tp = netdev_priv(dev); in tg3_close() local
11908 static u64 tg3_calc_crc_errors(struct tg3 *tp) in tg3_calc_crc_errors()
11936 static void tg3_get_estats(struct tg3 *tp, struct tg3_ethtool_stats *estats) in tg3_get_estats()
12020 static void tg3_get_nstats(struct tg3 *tp, struct rtnl_link_stats64 *stats) in tg3_get_nstats()
12103 struct tg3 *tp = netdev_priv(dev); in tg3_get_regs() local
12121 struct tg3 *tp = netdev_priv(dev); in tg3_get_eeprom_len() local
12128 struct tg3 *tp = netdev_priv(dev); in tg3_get_eeprom() local
12219 struct tg3 *tp = netdev_priv(dev); in tg3_set_eeprom() local
12276 struct tg3 *tp = netdev_priv(dev); in tg3_get_link_ksettings() local
12351 struct tg3 *tp = netdev_priv(dev); in tg3_set_link_ksettings() local
12446 struct tg3 *tp = netdev_priv(dev); in tg3_get_drvinfo() local
12455 struct tg3 *tp = netdev_priv(dev); in tg3_get_wol() local
12469 struct tg3 *tp = netdev_priv(dev); in tg3_set_wol() local
12490 struct tg3 *tp = netdev_priv(dev); in tg3_get_msglevel() local
12496 struct tg3 *tp = netdev_priv(dev); in tg3_set_msglevel() local
12502 struct tg3 *tp = netdev_priv(dev); in tg3_nway_reset() local
12541 struct tg3 *tp = netdev_priv(dev); in tg3_get_ringparam() local
12565 struct tg3 *tp = netdev_priv(dev); in tg3_set_ringparam() local
12622 struct tg3 *tp = netdev_priv(dev); in tg3_get_pauseparam() local
12639 struct tg3 *tp = netdev_priv(dev); in tg3_set_pauseparam() local
12747 struct tg3 *tp = netdev_priv(dev); in tg3_get_rxnfc() local
12772 struct tg3 *tp = netdev_priv(dev); in tg3_get_rxfh_indir_size() local
12782 struct tg3 *tp = netdev_priv(dev); in tg3_get_rxfh() local
12798 struct tg3 *tp = netdev_priv(dev); in tg3_set_rxfh() local
12831 struct tg3 *tp = netdev_priv(dev); in tg3_get_channels() local
12856 struct tg3 *tp = netdev_priv(dev); in tg3_set_channels() local
12898 struct tg3 *tp = netdev_priv(dev); in tg3_set_phys_id() local
12930 struct tg3 *tp = netdev_priv(dev); in tg3_get_ethtool_stats() local
12938 static __be32 *tg3_vpd_readblock(struct tg3 *tp, unsigned int *vpdlen) in tg3_vpd_readblock()
13009 static int tg3_test_nvram(struct tg3 *tp) in tg3_test_nvram()
13173 static int tg3_test_link(struct tg3 *tp) in tg3_test_link()
13197 static int tg3_test_registers(struct tg3 *tp) in tg3_test_registers()
13417 static int tg3_do_mem_test(struct tg3 *tp, u32 offset, u32 len) in tg3_do_mem_test()
13436 static int tg3_test_memory(struct tg3 *tp) in tg3_test_memory()
13529 static int tg3_run_loopback(struct tg3 *tp, u32 pktsz, bool tso_loopback) in tg3_run_loopback()
13745 static int tg3_test_loopback(struct tg3 *tp, u64 *data, bool do_extlpbk) in tg3_test_loopback()
13863 struct tg3 *tp = netdev_priv(dev); in tg3_self_test() local
13953 struct tg3 *tp = netdev_priv(dev); in tg3_hwtstamp_set() local
14037 struct tg3 *tp = netdev_priv(dev); in tg3_hwtstamp_get() local
14099 struct tg3 *tp = netdev_priv(dev); in tg3_ioctl() local
14166 struct tg3 *tp = netdev_priv(dev); in tg3_get_coalesce() local
14177 struct tg3 *tp = netdev_priv(dev); in tg3_set_coalesce() local
14223 struct tg3 *tp = netdev_priv(dev); in tg3_set_eee() local
14262 struct tg3 *tp = netdev_priv(dev); in tg3_get_eee() local
14319 struct tg3 *tp = netdev_priv(dev); in tg3_get_stats64() local
14334 struct tg3 *tp = netdev_priv(dev); in tg3_set_rx_mode() local
14344 static inline void tg3_set_mtu(struct net_device *dev, struct tg3 *tp, in tg3_set_mtu()
14367 struct tg3 *tp = netdev_priv(dev); in tg3_change_mtu() local
14431 static void tg3_get_eeprom_size(struct tg3 *tp) in tg3_get_eeprom_size()
14465 static void tg3_get_nvram_size(struct tg3 *tp) in tg3_get_nvram_size()
14498 static void tg3_get_nvram_info(struct tg3 *tp) in tg3_get_nvram_info()
14549 static void tg3_nvram_get_pagesize(struct tg3 *tp, u32 nvmcfg1) in tg3_nvram_get_pagesize()
14576 static void tg3_get_5752_nvram_info(struct tg3 *tp) in tg3_get_5752_nvram_info()
14617 static void tg3_get_5755_nvram_info(struct tg3 *tp) in tg3_get_5755_nvram_info()
14673 static void tg3_get_5787_nvram_info(struct tg3 *tp) in tg3_get_5787_nvram_info()
14711 static void tg3_get_5761_nvram_info(struct tg3 *tp) in tg3_get_5761_nvram_info()
14786 static void tg3_get_5906_nvram_info(struct tg3 *tp) in tg3_get_5906_nvram_info()
14793 static void tg3_get_57780_nvram_info(struct tg3 *tp) in tg3_get_57780_nvram_info()
14866 static void tg3_get_5717_nvram_info(struct tg3 *tp) in tg3_get_5717_nvram_info()
14944 static void tg3_get_5720_nvram_info(struct tg3 *tp) in tg3_get_5720_nvram_info()
15109 static void tg3_nvram_init(struct tg3 *tp) in tg3_nvram_init()
15252 static struct subsys_tbl_ent *tg3_lookup_by_subsys(struct tg3 *tp) in tg3_lookup_by_subsys()
15266 static void tg3_get_eeprom_hw_cfg(struct tg3 *tp) in tg3_get_eeprom_hw_cfg()
15483 static int tg3_ape_otp_read(struct tg3 *tp, u32 offset, u32 *val) in tg3_ape_otp_read()
15516 static int tg3_issue_otp_command(struct tg3 *tp, u32 cmd) in tg3_issue_otp_command()
15539 static u32 tg3_read_otp_phycfg(struct tg3 *tp) in tg3_read_otp_phycfg()
15565 static void tg3_phy_init_link_config(struct tg3 *tp) in tg3_phy_init_link_config()
15594 static int tg3_phy_probe(struct tg3 *tp) in tg3_phy_probe()
15752 static void tg3_read_vpd(struct tg3 *tp) in tg3_read_vpd()
15848 static int tg3_fw_img_is_valid(struct tg3 *tp, u32 offset) in tg3_fw_img_is_valid()
15861 static void tg3_read_bc_ver(struct tg3 *tp) in tg3_read_bc_ver()
15913 static void tg3_read_hwsb_ver(struct tg3 *tp) in tg3_read_hwsb_ver()
15929 static void tg3_read_sb_ver(struct tg3 *tp, u32 val) in tg3_read_sb_ver()
15984 static void tg3_read_mgmtfw_ver(struct tg3 *tp) in tg3_read_mgmtfw_ver()
16036 static void tg3_probe_ncsi(struct tg3 *tp) in tg3_probe_ncsi()
16052 static void tg3_read_dash_ver(struct tg3 *tp) in tg3_read_dash_ver()
16077 static void tg3_read_otp_ver(struct tg3 *tp) in tg3_read_otp_ver()
16102 static void tg3_read_fw_ver(struct tg3 *tp) in tg3_read_fw_ver()
16139 static inline u32 tg3_rx_ret_ring_size(struct tg3 *tp) in tg3_rx_ret_ring_size()
16156 static struct pci_dev *tg3_find_peer(struct tg3 *tp) in tg3_find_peer()
16184 static void tg3_detect_asic_rev(struct tg3 *tp, u32 misc_ctrl_reg) in tg3_detect_asic_rev()
16272 static bool tg3_10_100_only_device(struct tg3 *tp, in tg3_10_100_only_device()
16294 static int tg3_get_invariants(struct tg3 *tp, const struct pci_device_id *ent) in tg3_get_invariants()
17075 static int tg3_get_device_address(struct tg3 *tp, u8 *addr) in tg3_get_device_address()
17154 static u32 tg3_calc_dma_bndry(struct tg3 *tp, u32 val) in tg3_calc_dma_bndry()
17295 static int tg3_do_test_dma(struct tg3 *tp, u32 *buf, dma_addr_t buf_dma, in tg3_do_test_dma()
17383 static int tg3_test_dma(struct tg3 *tp) in tg3_test_dma()
17557 static void tg3_init_bufmgr_config(struct tg3 *tp) in tg3_init_bufmgr_config()
17613 static char *tg3_phy_string(struct tg3 *tp) in tg3_phy_string()
17645 static char *tg3_bus_string(struct tg3 *tp, char *str) in tg3_bus_string()
17681 static void tg3_init_coal(struct tg3 *tp) in tg3_init_coal()
17716 struct tg3 *tp; in tg3_init_one() local
18110 struct tg3 *tp = netdev_priv(dev); in tg3_remove_one() local
18142 struct tg3 *tp = netdev_priv(dev); in tg3_suspend() local
18176 struct tg3 *tp = netdev_priv(dev); in tg3_resume() local
18263 struct tg3 *tp = netdev_priv(dev); in tg3_shutdown() local
18307 struct tg3 *tp = netdev_priv(netdev); in tg3_io_error_detected() local
18368 struct tg3 *tp = netdev_priv(netdev); in tg3_io_slot_reset() local
18417 struct tg3 *tp = netdev_priv(netdev); in tg3_io_resume() local