Lines Matching defs:tg3
2 * tg3.c: Broadcom Tigon3 ethernet driver.
72 #include "tg3.h"
98 #define DRV_MODULE_NAME "tg3"
218 #define FIRMWARE_TG3 "tigon/tg3.bin"
469 static void tg3_write32(struct tg3 *tp, u32 off, u32 val)
474 static u32 tg3_read32(struct tg3 *tp, u32 off)
479 static void tg3_ape_write32(struct tg3 *tp, u32 off, u32 val)
484 static u32 tg3_ape_read32(struct tg3 *tp, u32 off)
489 static void tg3_write_indirect_reg32(struct tg3 *tp, u32 off, u32 val)
499 static void tg3_write_flush_reg32(struct tg3 *tp, u32 off, u32 val)
505 static u32 tg3_read_indirect_reg32(struct tg3 *tp, u32 off)
517 static void tg3_write_indirect_mbox(struct tg3 *tp, u32 off, u32 val)
547 static u32 tg3_read_indirect_mbox(struct tg3 *tp, u32 off)
564 static void _tw32_flush(struct tg3 *tp, u32 off, u32 val, u32 usec_wait)
583 static inline void tw32_mailbox_flush(struct tg3 *tp, u32 off, u32 val)
592 static void tg3_write32_tx_mbox(struct tg3 *tp, u32 off, u32 val)
603 static u32 tg3_read32_mbox_5906(struct tg3 *tp, u32 off)
608 static void tg3_write32_mbox_5906(struct tg3 *tp, u32 off, u32 val)
624 static void tg3_write_mem(struct tg3 *tp, u32 off, u32 val)
649 static void tg3_read_mem(struct tg3 *tp, u32 off, u32 *val)
676 static void tg3_ape_lock_init(struct tg3 *tp)
706 static int tg3_ape_lock(struct tg3 *tp, int locknum)
769 static void tg3_ape_unlock(struct tg3 *tp, int locknum)
806 static int tg3_ape_event_lock(struct tg3 *tp, u32 timeout_us)
828 static int tg3_ape_wait_for_event(struct tg3 *tp, u32 timeout_us)
844 static int tg3_ape_scratchpad_read(struct tg3 *tp, u32 *data, u32 base_off,
909 static int tg3_ape_send_event(struct tg3 *tp, u32 event)
936 static void tg3_ape_driver_state_change(struct tg3 *tp, int kind)
984 static void tg3_send_ape_heartbeat(struct tg3 *tp,
996 static void tg3_disable_ints(struct tg3 *tp)
1006 static void tg3_enable_ints(struct tg3 *tp)
1039 struct tg3 *tp = tnapi->tp;
1068 struct tg3 *tp = tnapi->tp;
1081 static void tg3_switch_clocks(struct tg3 *tp)
1116 static int __tg3_readphy(struct tg3 *tp, unsigned int phy_addr, int reg,
1170 static int tg3_readphy(struct tg3 *tp, int reg, u32 *val)
1175 static int __tg3_writephy(struct tg3 *tp, unsigned int phy_addr, int reg,
1229 static int tg3_writephy(struct tg3 *tp, int reg, u32 val)
1234 static int tg3_phy_cl45_write(struct tg3 *tp, u32 devad, u32 addr, u32 val)
1257 static int tg3_phy_cl45_read(struct tg3 *tp, u32 devad, u32 addr, u32 *val)
1280 static int tg3_phydsp_read(struct tg3 *tp, u32 reg, u32 *val)
1291 static int tg3_phydsp_write(struct tg3 *tp, u32 reg, u32 val)
1302 static int tg3_phy_auxctl_read(struct tg3 *tp, int reg, u32 *val)
1315 static int tg3_phy_auxctl_write(struct tg3 *tp, int reg, u32 set)
1323 static int tg3_phy_toggle_auxctl_smdsp(struct tg3 *tp, bool enable)
1344 static int tg3_phy_shdw_write(struct tg3 *tp, int reg, u32 val)
1350 static int tg3_bmcr_reset(struct tg3 *tp)
1383 struct tg3 *tp = bp->priv;
1398 struct tg3 *tp = bp->priv;
1411 static void tg3_mdio_config_5785(struct tg3 *tp)
1492 static void tg3_mdio_start(struct tg3 *tp)
1503 static int tg3_mdio_init(struct tg3 *tp)
1540 tp->mdio_bus->name = "tg3 mdio bus";
1610 static void tg3_mdio_fini(struct tg3 *tp)
1620 static inline void tg3_generate_fw_event(struct tg3 *tp)
1634 static void tg3_wait_for_event_ack(struct tg3 *tp)
1664 static void tg3_phy_gather_ump_data(struct tg3 *tp, u32 *data)
1699 static void tg3_ump_link_report(struct tg3 *tp)
1721 static void tg3_stop_fw(struct tg3 *tp)
1737 static void tg3_write_sig_pre_reset(struct tg3 *tp, int kind)
1766 static void tg3_write_sig_post_reset(struct tg3 *tp, int kind)
1787 static void tg3_write_sig_legacy(struct tg3 *tp, int kind)
1812 static int tg3_poll_fw(struct tg3 *tp)
1876 static void tg3_link_report(struct tg3 *tp)
1966 static void tg3_setup_flow_control(struct tg3 *tp, u32 lcladv, u32 rmtadv)
2009 struct tg3 *tp = netdev_priv(dev);
2089 static int tg3_phy_init(struct tg3 *tp)
2135 static void tg3_phy_start(struct tg3 *tp)
2158 static void tg3_phy_stop(struct tg3 *tp)
2166 static void tg3_phy_fini(struct tg3 *tp)
2174 static int tg3_phy_set_extloopbk(struct tg3 *tp)
2204 static void tg3_phy_fet_toggle_apd(struct tg3 *tp, bool enable)
2224 static void tg3_phy_toggle_apd(struct tg3 *tp, bool enable)
2255 static void tg3_phy_toggle_automdix(struct tg3 *tp, bool enable)
2296 static void tg3_phy_set_wirespeed(struct tg3 *tp)
2310 static void tg3_phy_apply_otp(struct tg3 *tp)
2347 static void tg3_eee_pull_config(struct tg3 *tp, struct ethtool_eee *eee)
2387 static void tg3_phy_eee_adjust(struct tg3 *tp, bool current_link_up)
2427 static void tg3_phy_eee_enable(struct tg3 *tp)
2446 static int tg3_wait_macro_done(struct tg3 *tp)
2464 static int tg3_phy_write_and_check_testpat(struct tg3 *tp, int *resetp)
2530 static int tg3_phy_reset_chanpat(struct tg3 *tp)
2550 static int tg3_phy_reset_5703_4_5(struct tg3 *tp)
2618 static void tg3_carrier_off(struct tg3 *tp)
2624 static void tg3_warn_mgmt_link_flap(struct tg3 *tp)
2634 static int tg3_phy_reset(struct tg3 *tp)
2791 static inline u32 tg3_set_function_status(struct tg3 *tp, u32 newstat)
2814 static inline int tg3_pwrsrc_switch_to_vmain(struct tg3 *tp)
2839 static void tg3_pwrsrc_die_with_vmain(struct tg3 *tp)
2863 static void tg3_pwrsrc_switch_to_vaux(struct tg3 *tp)
2940 static void tg3_frob_aux_power_5717(struct tg3 *tp, bool wol_enable)
2965 static void tg3_frob_aux_power(struct tg3 *tp, bool include_wol)
2988 struct tg3 *tp_peer = netdev_priv(dev_peer);
3009 static int tg3_5700_link_polarity(struct tg3 *tp, u32 speed)
3022 static bool tg3_phy_power_bug(struct tg3 *tp)
3047 static bool tg3_phy_led_bug(struct tg3 *tp)
3061 static void tg3_power_down_phy(struct tg3 *tp, bool do_low_power)
3136 static int tg3_nvram_lock(struct tg3 *tp)
3159 static void tg3_nvram_unlock(struct tg3 *tp)
3170 static void tg3_enable_nvram_access(struct tg3 *tp)
3180 static void tg3_disable_nvram_access(struct tg3 *tp)
3189 static int tg3_nvram_read_using_eeprom(struct tg3 *tp,
3231 static int tg3_nvram_exec_cmd(struct tg3 *tp, u32 nvram_cmd)
3250 static u32 tg3_nvram_phys_addr(struct tg3 *tp, u32 addr)
3265 static u32 tg3_nvram_logical_addr(struct tg3 *tp, u32 addr)
3282 * tg3 devices are BE devices, so on a BE machine, the data
3286 static int tg3_nvram_read(struct tg3 *tp, u32 offset, u32 *val)
3319 static int tg3_nvram_read_be32(struct tg3 *tp, u32 offset, __be32 *val)
3328 static int tg3_nvram_write_block_using_eeprom(struct tg3 *tp,
3378 static int tg3_nvram_write_block_unbuffered(struct tg3 *tp, u32 offset, u32 len,
3477 static int tg3_nvram_write_block_buffered(struct tg3 *tp, u32 offset, u32 len,
3532 static int tg3_nvram_write_block(struct tg3 *tp, u32 offset, u32 len, u8 *buf)
3587 static int tg3_pause_cpu(struct tg3 *tp, u32 cpu_base)
3605 static int tg3_rxcpu_pause(struct tg3 *tp)
3617 static int tg3_txcpu_pause(struct tg3 *tp)
3623 static void tg3_resume_cpu(struct tg3 *tp, u32 cpu_base)
3630 static void tg3_rxcpu_resume(struct tg3 *tp)
3636 static int tg3_halt_cpu(struct tg3 *tp, u32 cpu_base)
3673 static int tg3_fw_data_len(struct tg3 *tp,
3701 static int tg3_load_firmware_cpu(struct tg3 *tp, u32 cpu_base,
3706 void (*write_op)(struct tg3 *, u32, u32);
3767 static int tg3_pause_cpu_and_set_pc(struct tg3 *tp, u32 cpu_base, u32 pc)
3788 static int tg3_load_5701_a0_firmware_fix(struct tg3 *tp)
3829 static int tg3_validate_rxcpu_state(struct tg3 *tp)
3861 static void tg3_load_57766_firmware(struct tg3 *tp)
3902 static int tg3_load_tso_firmware(struct tg3 *tp)
3952 static void __tg3_set_one_mac_addr(struct tg3 *tp, u8 *mac_addr, int index)
3971 static void __tg3_set_mac_addr(struct tg3 *tp, bool skip_mac_1)
3998 static void tg3_enable_register_access(struct tg3 *tp)
4008 static int tg3_power_up(struct tg3 *tp)
4025 static int tg3_setup_phy(struct tg3 *, bool);
4027 static int tg3_power_down_prepare(struct tg3 *tp)
4274 static void tg3_power_down(struct tg3 *tp)
4280 static void tg3_aux_stat_to_speed_duplex(struct tg3 *tp, u32 val, u32 *speed, u8 *duplex)
4327 static int tg3_phy_autoneg_cfg(struct tg3 *tp, u32 advertise, u32 flowctrl)
4411 static void tg3_phy_copper_begin(struct tg3 *tp)
4508 static int tg3_phy_pull_config(struct tg3 *tp)
4605 static int tg3_init_5401phy_dsp(struct tg3 *tp)
4624 static bool tg3_phy_eee_config_ok(struct tg3 *tp)
4647 static bool tg3_phy_copper_an_config_ok(struct tg3 *tp, u32 *lcladv)
4691 static bool tg3_phy_copper_fetch_rmtadv(struct tg3 *tp, u32 *rmtadv)
4713 static bool tg3_test_and_report_link_chg(struct tg3 *tp, bool curr_link_up)
4731 static void tg3_clear_mac_status(struct tg3 *tp)
4743 static void tg3_setup_eee(struct tg3 *tp)
4779 static int tg3_setup_copper_phy(struct tg3 *tp, bool force_reset)
5156 static int tg3_fiber_aneg_smachine(struct tg3 *tp,
5408 static int fiber_autoneg(struct tg3 *tp, u32 *txflags, u32 *rxflags)
5453 static void tg3_init_bcm8002(struct tg3 *tp)
5503 static bool tg3_setup_fiber_hw_autoneg(struct tg3 *tp, u32 mac_status)
5648 static bool tg3_setup_fiber_by_hand(struct tg3 *tp, u32 mac_status)
5713 static int tg3_setup_fiber_phy(struct tg3 *tp, bool force_reset)
5816 static int tg3_setup_fiber_mii_phy(struct tg3 *tp, bool force_reset)
6010 static void tg3_serdes_parallel_detect(struct tg3 *tp)
6070 static int tg3_setup_phy(struct tg3 *tp, bool force_reset)
6137 static u64 tg3_refclk_read(struct tg3 *tp, struct ptp_system_timestamp *sts)
6150 static void tg3_refclk_write(struct tg3 *tp, u64 newval)
6160 static inline void tg3_full_lock(struct tg3 *tp, int irq_sync);
6161 static inline void tg3_full_unlock(struct tg3 *tp);
6164 struct tg3 *tp = netdev_priv(dev);
6192 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info);
6228 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info);
6241 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info);
6257 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info);
6272 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info);
6334 .name = "tg3 clock",
6348 static void tg3_hwclock_to_timestamp(struct tg3 *tp, u64 hwclock,
6357 static void tg3_ptp_init(struct tg3 *tp)
6369 static void tg3_ptp_resume(struct tg3 *tp)
6378 static void tg3_ptp_fini(struct tg3 *tp)
6388 static inline int tg3_irq_sync(struct tg3 *tp)
6393 static inline void tg3_rd32_loop(struct tg3 *tp, u32 *dst, u32 off, u32 len)
6402 static void tg3_dump_legacy_regs(struct tg3 *tp, u32 *regs)
6452 static void tg3_dump_state(struct tg3 *tp)
6522 static void tg3_tx_recover(struct tg3 *tp)
6550 struct tg3 *tp = tnapi->tp;
6656 static void tg3_rx_data_free(struct tg3 *tp, struct ring_info *ri, u32 map_sz)
6682 static int tg3_alloc_rx_data(struct tg3 *tp, struct tg3_rx_prodring_set *tpr,
6756 struct tg3 *tp = tnapi->tp;
6823 struct tg3 *tp = tnapi->tp;
7026 static void tg3_poll_link(struct tg3 *tp)
7050 static int tg3_rx_prodring_xfer(struct tg3 *tp,
7178 struct tg3 *tp = tnapi->tp;
7192 * code synchronizes with tg3->napi.poll()
7225 static inline void tg3_reset_task_schedule(struct tg3 *tp)
7231 static inline void tg3_reset_task_cancel(struct tg3 *tp)
7241 struct tg3 *tp = tnapi->tp;
7298 static void tg3_process_error(struct tg3 *tp)
7335 struct tg3 *tp = tnapi->tp;
7381 static void tg3_napi_disable(struct tg3 *tp)
7389 static void tg3_napi_enable(struct tg3 *tp)
7397 static void tg3_napi_init(struct tg3 *tp)
7406 static void tg3_napi_fini(struct tg3 *tp)
7414 static inline void tg3_netif_stop(struct tg3 *tp)
7423 static inline void tg3_netif_start(struct tg3 *tp)
7441 static void tg3_irq_quiesce(struct tg3 *tp)
7460 /* Fully shutdown all tg3 driver activity elsewhere in the system.
7465 static inline void tg3_full_lock(struct tg3 *tp, int irq_sync)
7472 static inline void tg3_full_unlock(struct tg3 *tp)
7483 struct tg3 *tp = tnapi->tp;
7502 struct tg3 *tp = tnapi->tp;
7524 struct tg3 *tp = tnapi->tp;
7573 struct tg3 *tp = tnapi->tp;
7626 struct tg3 *tp = tnapi->tp;
7641 struct tg3 *tp = netdev_priv(dev);
7653 struct tg3 *tp = netdev_priv(dev);
7674 static inline int tg3_4g_tso_overflow_test(struct tg3 *tp, dma_addr_t mapping,
7686 static inline int tg3_40bit_overflow_test(struct tg3 *tp, dma_addr_t mapping,
7712 struct tg3 *tp = tnapi->tp;
7815 struct tg3 *tp = tnapi->tp;
7877 static int tg3_tso_bug(struct tg3 *tp, struct tg3_napi *tnapi,
7920 struct tg3 *tp = netdev_priv(dev);
8178 static void tg3_mac_loopback(struct tg3 *tp, bool enable)
8206 static int tg3_phy_lpbk_set(struct tg3 *tp, u32 speed, bool extlpbk)
8301 struct tg3 *tp = netdev_priv(dev);
8328 struct tg3 *tp = netdev_priv(dev);
8346 static void tg3_rx_prodring_free(struct tg3 *tp,
8387 static int tg3_rx_prodring_alloc(struct tg3 *tp,
8489 static void tg3_rx_prodring_fini(struct tg3 *tp,
8508 static int tg3_rx_prodring_init(struct tg3 *tp,
8551 static void tg3_free_rings(struct tg3 *tp)
8585 static int tg3_init_rings(struct tg3 *tp)
8620 static void tg3_mem_tx_release(struct tg3 *tp)
8638 static int tg3_mem_tx_acquire(struct tg3 *tp)
8671 static void tg3_mem_rx_release(struct tg3 *tp)
8691 static int tg3_mem_rx_acquire(struct tg3 *tp)
8735 static void tg3_free_consistent(struct tg3 *tp)
8768 static int tg3_alloc_consistent(struct tg3 *tp)
8835 static int tg3_stop_block(struct tg3 *tp, unsigned long ofs, u32 enable_bit, bool silent)
8887 static int tg3_abort_hw(struct tg3 *tp, bool silent)
8959 static void tg3_save_pci_state(struct tg3 *tp)
8965 static void tg3_restore_pci_state(struct tg3 *tp)
9025 static void tg3_override_clk(struct tg3 *tp)
9046 static void tg3_restore_clk(struct tg3 *tp)
9069 static int tg3_chip_reset(struct tg3 *tp)
9074 void (*write_op)(struct tg3 *, u32, u32);
9188 * For most tg3 variants the trick below was working.
9346 static void tg3_get_nstats(struct tg3 *, struct rtnl_link_stats64 *);
9347 static void tg3_get_estats(struct tg3 *, struct tg3_ethtool_stats *);
9351 static int tg3_halt(struct tg3 *tp, int kind, bool silent)
9388 struct tg3 *tp = netdev_priv(dev);
9423 static void tg3_set_bdinfo(struct tg3 *tp, u32 bdinfo_addr,
9444 static void tg3_coal_tx_init(struct tg3 *tp, struct ethtool_coalesce *ec)
9476 static void tg3_coal_rx_init(struct tg3 *tp, struct ethtool_coalesce *ec)
9510 static void __tg3_set_coalesce(struct tg3 *tp, struct ethtool_coalesce *ec)
9529 static void tg3_tx_rcbs_disable(struct tg3 *tp)
9551 static void tg3_tx_rcbs_init(struct tg3 *tp)
9572 static void tg3_rx_ret_rcbs_disable(struct tg3 *tp)
9595 static void tg3_rx_ret_rcbs_init(struct tg3 *tp)
9616 static void tg3_rings_reset(struct tg3 *tp)
9686 static void tg3_setup_rxbd_thresholds(struct tg3 *tp)
9749 static void tg3_set_multi(struct tg3 *tp, unsigned int accept_all)
9760 struct tg3 *tp = netdev_priv(dev);
9826 static void tg3_rss_init_dflt_indir_tbl(struct tg3 *tp, u32 qcnt)
9834 static void tg3_rss_check_indir_tbl(struct tg3 *tp)
9856 static void tg3_rss_write_indir_tbl(struct tg3 *tp)
9873 static inline u32 tg3_lso_rd_dma_workaround_bit(struct tg3 *tp)
9882 static int tg3_reset_hw(struct tg3 *tp, bool reset_phy)
10799 static int tg3_init_hw(struct tg3 *tp, bool reset_phy)
10816 static void tg3_sd_scan_scratchpad(struct tg3 *tp, struct tg3_ocir *ocir)
10835 struct tg3 *tp = dev_get_drvdata(dev);
10859 ATTRIBUTE_GROUPS(tg3);
10861 static void tg3_hwmon_close(struct tg3 *tp)
10869 static void tg3_hwmon_open(struct tg3 *tp)
10889 tp->hwmon_dev = hwmon_device_register_with_groups(&pdev->dev, "tg3",
10897 static inline void tg3_hwmon_close(struct tg3 *tp) { }
10898 static inline void tg3_hwmon_open(struct tg3 *tp) { }
10909 static void tg3_periodic_fetch_stats(struct tg3 *tp)
10975 static void tg3_chk_missed_msi(struct tg3 *tp)
11000 struct tg3 *tp = from_timer(tp, t, timer);
11142 static void tg3_timer_init(struct tg3 *tp)
11160 static void tg3_timer_start(struct tg3 *tp)
11169 static void tg3_timer_stop(struct tg3 *tp)
11177 static int tg3_restart_hw(struct tg3 *tp, bool reset_phy)
11200 struct tg3 *tp = container_of(work, struct tg3, reset_task);
11255 static int tg3_request_irq(struct tg3 *tp, int irq_num)
11296 static int tg3_test_interrupt(struct tg3 *tp)
11373 static int tg3_test_msi(struct tg3 *tp)
11431 static int tg3_request_firmware(struct tg3 *tp)
11462 static u32 tg3_irq_count(struct tg3 *tp)
11478 static bool tg3_enable_msix(struct tg3 *tp)
11537 static void tg3_ints_init(struct tg3 *tp)
11576 static void tg3_ints_fini(struct tg3 *tp)
11588 static int tg3_start(struct tg3 *tp, bool reset_phy, bool test_irq,
11703 static void tg3_stop(struct tg3 *tp)
11740 struct tg3 *tp = netdev_priv(dev);
11797 struct tg3 *tp = netdev_priv(dev);
11820 static u64 tg3_calc_crc_errors(struct tg3 *tp)
11848 static void tg3_get_estats(struct tg3 *tp, struct tg3_ethtool_stats *estats)
11932 static void tg3_get_nstats(struct tg3 *tp, struct rtnl_link_stats64 *stats)
12015 struct tg3 *tp = netdev_priv(dev);
12033 struct tg3 *tp = netdev_priv(dev);
12040 struct tg3 *tp = netdev_priv(dev);
12131 struct tg3 *tp = netdev_priv(dev);
12188 struct tg3 *tp = netdev_priv(dev);
12263 struct tg3 *tp = netdev_priv(dev);
12358 struct tg3 *tp = netdev_priv(dev);
12367 struct tg3 *tp = netdev_priv(dev);
12381 struct tg3 *tp = netdev_priv(dev);
12402 struct tg3 *tp = netdev_priv(dev);
12408 struct tg3 *tp = netdev_priv(dev);
12414 struct tg3 *tp = netdev_priv(dev);
12450 struct tg3 *tp = netdev_priv(dev);
12471 struct tg3 *tp = netdev_priv(dev);
12526 struct tg3 *tp = netdev_priv(dev);
12543 struct tg3 *tp = netdev_priv(dev);
12649 struct tg3 *tp = netdev_priv(dev);
12674 struct tg3 *tp = netdev_priv(dev);
12684 struct tg3 *tp = netdev_priv(dev);
12701 struct tg3 *tp = netdev_priv(dev);
12733 struct tg3 *tp = netdev_priv(dev);
12758 struct tg3 *tp = netdev_priv(dev);
12800 struct tg3 *tp = netdev_priv(dev);
12832 struct tg3 *tp = netdev_priv(dev);
12840 static __be32 *tg3_vpd_readblock(struct tg3 *tp, u32 *vpdlen)
12926 static int tg3_test_nvram(struct tg3 *tp)
13108 static int tg3_test_link(struct tg3 *tp)
13132 static int tg3_test_registers(struct tg3 *tp)
13352 static int tg3_do_mem_test(struct tg3 *tp, u32 offset, u32 len)
13371 static int tg3_test_memory(struct tg3 *tp)
13464 static int tg3_run_loopback(struct tg3 *tp, u32 pktsz, bool tso_loopback)
13680 static int tg3_test_loopback(struct tg3 *tp, u64 *data, bool do_extlpbk)
13798 struct tg3 *tp = netdev_priv(dev);
13886 struct tg3 *tp = netdev_priv(dev);
13973 struct tg3 *tp = netdev_priv(dev);
14035 struct tg3 *tp = netdev_priv(dev);
14099 struct tg3 *tp = netdev_priv(dev);
14107 struct tg3 *tp = netdev_priv(dev);
14153 struct tg3 *tp = netdev_priv(dev);
14190 struct tg3 *tp = netdev_priv(dev);
14247 struct tg3 *tp = netdev_priv(dev);
14262 struct tg3 *tp = netdev_priv(dev);
14272 static inline void tg3_set_mtu(struct net_device *dev, struct tg3 *tp,
14295 struct tg3 *tp = netdev_priv(dev);
14357 static void tg3_get_eeprom_size(struct tg3 *tp)
14391 static void tg3_get_nvram_size(struct tg3 *tp)
14424 static void tg3_get_nvram_info(struct tg3 *tp)
14475 static void tg3_nvram_get_pagesize(struct tg3 *tp, u32 nvmcfg1)
14502 static void tg3_get_5752_nvram_info(struct tg3 *tp)
14543 static void tg3_get_5755_nvram_info(struct tg3 *tp)
14599 static void tg3_get_5787_nvram_info(struct tg3 *tp)
14637 static void tg3_get_5761_nvram_info(struct tg3 *tp)
14712 static void tg3_get_5906_nvram_info(struct tg3 *tp)
14719 static void tg3_get_57780_nvram_info(struct tg3 *tp)
14792 static void tg3_get_5717_nvram_info(struct tg3 *tp)
14870 static void tg3_get_5720_nvram_info(struct tg3 *tp)
15035 static void tg3_nvram_init(struct tg3 *tp)
15178 static struct subsys_tbl_ent *tg3_lookup_by_subsys(struct tg3 *tp)
15192 static void tg3_get_eeprom_hw_cfg(struct tg3 *tp)
15409 static int tg3_ape_otp_read(struct tg3 *tp, u32 offset, u32 *val)
15442 static int tg3_issue_otp_command(struct tg3 *tp, u32 cmd)
15465 static u32 tg3_read_otp_phycfg(struct tg3 *tp)
15491 static void tg3_phy_init_link_config(struct tg3 *tp)
15520 static int tg3_phy_probe(struct tg3 *tp)
15675 static void tg3_read_vpd(struct tg3 *tp)
15799 static int tg3_fw_img_is_valid(struct tg3 *tp, u32 offset)
15812 static void tg3_read_bc_ver(struct tg3 *tp)
15864 static void tg3_read_hwsb_ver(struct tg3 *tp)
15880 static void tg3_read_sb_ver(struct tg3 *tp, u32 val)
15935 static void tg3_read_mgmtfw_ver(struct tg3 *tp)
15987 static void tg3_probe_ncsi(struct tg3 *tp)
16003 static void tg3_read_dash_ver(struct tg3 *tp)
16028 static void tg3_read_otp_ver(struct tg3 *tp)
16053 static void tg3_read_fw_ver(struct tg3 *tp)
16090 static inline u32 tg3_rx_ret_ring_size(struct tg3 *tp)
16107 static struct pci_dev *tg3_find_peer(struct tg3 *tp)
16135 static void tg3_detect_asic_rev(struct tg3 *tp, u32 misc_ctrl_reg)
16223 static bool tg3_10_100_only_device(struct tg3 *tp,
16245 static int tg3_get_invariants(struct tg3 *tp, const struct pci_device_id *ent)
16371 * Any tg3 device found behind the bridge will also need the 40-bit
16674 * to succeed. Normally on powerup the tg3 chip firmware will make
17026 static int tg3_get_device_address(struct tg3 *tp)
17104 static u32 tg3_calc_dma_bndry(struct tg3 *tp, u32 val)
17144 * Therefore, letting tg3 do so just wastes PCI bandwidth.
17245 static int tg3_do_test_dma(struct tg3 *tp, u32 *buf, dma_addr_t buf_dma,
17269 * the *second* time the tg3 driver was getting loaded after an
17333 static int tg3_test_dma(struct tg3 *tp)
17507 static void tg3_init_bufmgr_config(struct tg3 *tp)
17563 static char *tg3_phy_string(struct tg3 *tp)
17595 static char *tg3_bus_string(struct tg3 *tp, char *str)
17631 static void tg3_init_coal(struct tg3 *tp)
17666 struct tg3 *tp;
18058 struct tg3 *tp = netdev_priv(dev);
18090 struct tg3 *tp = netdev_priv(dev);
18146 struct tg3 *tp = netdev_priv(dev);
18187 struct tg3 *tp = netdev_priv(dev);
18218 struct tg3 *tp = netdev_priv(netdev);
18277 struct tg3 *tp = netdev_priv(netdev);
18324 struct tg3 *tp = netdev_priv(netdev);