Lines Matching defs:tg3
2 * tg3.c: Broadcom Tigon3 ethernet driver.
73 #include "tg3.h"
99 #define DRV_MODULE_NAME "tg3"
219 #define FIRMWARE_TG3 "tigon/tg3.bin"
470 static void tg3_write32(struct tg3 *tp, u32 off, u32 val)
475 static u32 tg3_read32(struct tg3 *tp, u32 off)
480 static void tg3_ape_write32(struct tg3 *tp, u32 off, u32 val)
485 static u32 tg3_ape_read32(struct tg3 *tp, u32 off)
490 static void tg3_write_indirect_reg32(struct tg3 *tp, u32 off, u32 val)
500 static void tg3_write_flush_reg32(struct tg3 *tp, u32 off, u32 val)
506 static u32 tg3_read_indirect_reg32(struct tg3 *tp, u32 off)
518 static void tg3_write_indirect_mbox(struct tg3 *tp, u32 off, u32 val)
548 static u32 tg3_read_indirect_mbox(struct tg3 *tp, u32 off)
565 static void _tw32_flush(struct tg3 *tp, u32 off, u32 val, u32 usec_wait)
584 static inline void tw32_mailbox_flush(struct tg3 *tp, u32 off, u32 val)
593 static void tg3_write32_tx_mbox(struct tg3 *tp, u32 off, u32 val)
604 static u32 tg3_read32_mbox_5906(struct tg3 *tp, u32 off)
609 static void tg3_write32_mbox_5906(struct tg3 *tp, u32 off, u32 val)
625 static void tg3_write_mem(struct tg3 *tp, u32 off, u32 val)
650 static void tg3_read_mem(struct tg3 *tp, u32 off, u32 *val)
677 static void tg3_ape_lock_init(struct tg3 *tp)
707 static int tg3_ape_lock(struct tg3 *tp, int locknum)
770 static void tg3_ape_unlock(struct tg3 *tp, int locknum)
807 static int tg3_ape_event_lock(struct tg3 *tp, u32 timeout_us)
829 static int tg3_ape_wait_for_event(struct tg3 *tp, u32 timeout_us)
845 static int tg3_ape_scratchpad_read(struct tg3 *tp, u32 *data, u32 base_off,
910 static int tg3_ape_send_event(struct tg3 *tp, u32 event)
937 static void tg3_ape_driver_state_change(struct tg3 *tp, int kind)
985 static void tg3_send_ape_heartbeat(struct tg3 *tp,
997 static void tg3_disable_ints(struct tg3 *tp)
1007 static void tg3_enable_ints(struct tg3 *tp)
1040 struct tg3 *tp = tnapi->tp;
1069 struct tg3 *tp = tnapi->tp;
1082 static void tg3_switch_clocks(struct tg3 *tp)
1117 static int __tg3_readphy(struct tg3 *tp, unsigned int phy_addr, int reg,
1171 static int tg3_readphy(struct tg3 *tp, int reg, u32 *val)
1176 static int __tg3_writephy(struct tg3 *tp, unsigned int phy_addr, int reg,
1230 static int tg3_writephy(struct tg3 *tp, int reg, u32 val)
1235 static int tg3_phy_cl45_write(struct tg3 *tp, u32 devad, u32 addr, u32 val)
1258 static int tg3_phy_cl45_read(struct tg3 *tp, u32 devad, u32 addr, u32 *val)
1281 static int tg3_phydsp_read(struct tg3 *tp, u32 reg, u32 *val)
1292 static int tg3_phydsp_write(struct tg3 *tp, u32 reg, u32 val)
1303 static int tg3_phy_auxctl_read(struct tg3 *tp, int reg, u32 *val)
1316 static int tg3_phy_auxctl_write(struct tg3 *tp, int reg, u32 set)
1324 static int tg3_phy_toggle_auxctl_smdsp(struct tg3 *tp, bool enable)
1345 static int tg3_phy_shdw_write(struct tg3 *tp, int reg, u32 val)
1351 static int tg3_bmcr_reset(struct tg3 *tp)
1384 struct tg3 *tp = bp->priv;
1399 struct tg3 *tp = bp->priv;
1412 static void tg3_mdio_config_5785(struct tg3 *tp)
1493 static void tg3_mdio_start(struct tg3 *tp)
1504 static int tg3_mdio_init(struct tg3 *tp)
1541 tp->mdio_bus->name = "tg3 mdio bus";
1604 static void tg3_mdio_fini(struct tg3 *tp)
1614 static inline void tg3_generate_fw_event(struct tg3 *tp)
1628 static void tg3_wait_for_event_ack(struct tg3 *tp)
1658 static void tg3_phy_gather_ump_data(struct tg3 *tp, u32 *data)
1693 static void tg3_ump_link_report(struct tg3 *tp)
1715 static void tg3_stop_fw(struct tg3 *tp)
1731 static void tg3_write_sig_pre_reset(struct tg3 *tp, int kind)
1760 static void tg3_write_sig_post_reset(struct tg3 *tp, int kind)
1781 static void tg3_write_sig_legacy(struct tg3 *tp, int kind)
1806 static int tg3_poll_fw(struct tg3 *tp)
1870 static void tg3_link_report(struct tg3 *tp)
1960 static void tg3_setup_flow_control(struct tg3 *tp, u32 lcladv, u32 rmtadv)
2003 struct tg3 *tp = netdev_priv(dev);
2083 static int tg3_phy_init(struct tg3 *tp)
2129 static void tg3_phy_start(struct tg3 *tp)
2152 static void tg3_phy_stop(struct tg3 *tp)
2160 static void tg3_phy_fini(struct tg3 *tp)
2168 static int tg3_phy_set_extloopbk(struct tg3 *tp)
2198 static void tg3_phy_fet_toggle_apd(struct tg3 *tp, bool enable)
2218 static void tg3_phy_toggle_apd(struct tg3 *tp, bool enable)
2249 static void tg3_phy_toggle_automdix(struct tg3 *tp, bool enable)
2290 static void tg3_phy_set_wirespeed(struct tg3 *tp)
2304 static void tg3_phy_apply_otp(struct tg3 *tp)
2341 static void tg3_eee_pull_config(struct tg3 *tp, struct ethtool_eee *eee)
2381 static void tg3_phy_eee_adjust(struct tg3 *tp, bool current_link_up)
2421 static void tg3_phy_eee_enable(struct tg3 *tp)
2440 static int tg3_wait_macro_done(struct tg3 *tp)
2458 static int tg3_phy_write_and_check_testpat(struct tg3 *tp, int *resetp)
2524 static int tg3_phy_reset_chanpat(struct tg3 *tp)
2544 static int tg3_phy_reset_5703_4_5(struct tg3 *tp)
2612 static void tg3_carrier_off(struct tg3 *tp)
2618 static void tg3_warn_mgmt_link_flap(struct tg3 *tp)
2628 static int tg3_phy_reset(struct tg3 *tp)
2785 static inline u32 tg3_set_function_status(struct tg3 *tp, u32 newstat)
2808 static inline int tg3_pwrsrc_switch_to_vmain(struct tg3 *tp)
2833 static void tg3_pwrsrc_die_with_vmain(struct tg3 *tp)
2857 static void tg3_pwrsrc_switch_to_vaux(struct tg3 *tp)
2934 static void tg3_frob_aux_power_5717(struct tg3 *tp, bool wol_enable)
2959 static void tg3_frob_aux_power(struct tg3 *tp, bool include_wol)
2982 struct tg3 *tp_peer = netdev_priv(dev_peer);
3003 static int tg3_5700_link_polarity(struct tg3 *tp, u32 speed)
3016 static bool tg3_phy_power_bug(struct tg3 *tp)
3041 static bool tg3_phy_led_bug(struct tg3 *tp)
3055 static void tg3_power_down_phy(struct tg3 *tp, bool do_low_power)
3130 static int tg3_nvram_lock(struct tg3 *tp)
3153 static void tg3_nvram_unlock(struct tg3 *tp)
3164 static void tg3_enable_nvram_access(struct tg3 *tp)
3174 static void tg3_disable_nvram_access(struct tg3 *tp)
3183 static int tg3_nvram_read_using_eeprom(struct tg3 *tp,
3225 static int tg3_nvram_exec_cmd(struct tg3 *tp, u32 nvram_cmd)
3244 static u32 tg3_nvram_phys_addr(struct tg3 *tp, u32 addr)
3259 static u32 tg3_nvram_logical_addr(struct tg3 *tp, u32 addr)
3276 * tg3 devices are BE devices, so on a BE machine, the data
3280 static int tg3_nvram_read(struct tg3 *tp, u32 offset, u32 *val)
3313 static int tg3_nvram_read_be32(struct tg3 *tp, u32 offset, __be32 *val)
3322 static int tg3_nvram_write_block_using_eeprom(struct tg3 *tp,
3372 static int tg3_nvram_write_block_unbuffered(struct tg3 *tp, u32 offset, u32 len,
3471 static int tg3_nvram_write_block_buffered(struct tg3 *tp, u32 offset, u32 len,
3526 static int tg3_nvram_write_block(struct tg3 *tp, u32 offset, u32 len, u8 *buf)
3581 static int tg3_pause_cpu(struct tg3 *tp, u32 cpu_base)
3599 static int tg3_rxcpu_pause(struct tg3 *tp)
3611 static int tg3_txcpu_pause(struct tg3 *tp)
3617 static void tg3_resume_cpu(struct tg3 *tp, u32 cpu_base)
3624 static void tg3_rxcpu_resume(struct tg3 *tp)
3630 static int tg3_halt_cpu(struct tg3 *tp, u32 cpu_base)
3667 static int tg3_fw_data_len(struct tg3 *tp,
3695 static int tg3_load_firmware_cpu(struct tg3 *tp, u32 cpu_base,
3700 void (*write_op)(struct tg3 *, u32, u32);
3761 static int tg3_pause_cpu_and_set_pc(struct tg3 *tp, u32 cpu_base, u32 pc)
3782 static int tg3_load_5701_a0_firmware_fix(struct tg3 *tp)
3823 static int tg3_validate_rxcpu_state(struct tg3 *tp)
3855 static void tg3_load_57766_firmware(struct tg3 *tp)
3896 static int tg3_load_tso_firmware(struct tg3 *tp)
3946 static void __tg3_set_one_mac_addr(struct tg3 *tp, const u8 *mac_addr,
3966 static void __tg3_set_mac_addr(struct tg3 *tp, bool skip_mac_1)
3993 static void tg3_enable_register_access(struct tg3 *tp)
4003 static int tg3_power_up(struct tg3 *tp)
4020 static int tg3_setup_phy(struct tg3 *, bool);
4022 static int tg3_power_down_prepare(struct tg3 *tp)
4269 static void tg3_power_down(struct tg3 *tp)
4275 static void tg3_aux_stat_to_speed_duplex(struct tg3 *tp, u32 val, u32 *speed, u8 *duplex)
4322 static int tg3_phy_autoneg_cfg(struct tg3 *tp, u32 advertise, u32 flowctrl)
4406 static void tg3_phy_copper_begin(struct tg3 *tp)
4503 static int tg3_phy_pull_config(struct tg3 *tp)
4600 static int tg3_init_5401phy_dsp(struct tg3 *tp)
4619 static bool tg3_phy_eee_config_ok(struct tg3 *tp)
4642 static bool tg3_phy_copper_an_config_ok(struct tg3 *tp, u32 *lcladv)
4686 static bool tg3_phy_copper_fetch_rmtadv(struct tg3 *tp, u32 *rmtadv)
4708 static bool tg3_test_and_report_link_chg(struct tg3 *tp, bool curr_link_up)
4726 static void tg3_clear_mac_status(struct tg3 *tp)
4738 static void tg3_setup_eee(struct tg3 *tp)
4774 static int tg3_setup_copper_phy(struct tg3 *tp, bool force_reset)
5151 static int tg3_fiber_aneg_smachine(struct tg3 *tp,
5403 static int fiber_autoneg(struct tg3 *tp, u32 *txflags, u32 *rxflags)
5448 static void tg3_init_bcm8002(struct tg3 *tp)
5498 static bool tg3_setup_fiber_hw_autoneg(struct tg3 *tp, u32 mac_status)
5642 static bool tg3_setup_fiber_by_hand(struct tg3 *tp, u32 mac_status)
5707 static int tg3_setup_fiber_phy(struct tg3 *tp, bool force_reset)
5809 static int tg3_setup_fiber_mii_phy(struct tg3 *tp, bool force_reset)
6003 static void tg3_serdes_parallel_detect(struct tg3 *tp)
6063 static int tg3_setup_phy(struct tg3 *tp, bool force_reset)
6130 static u64 tg3_refclk_read(struct tg3 *tp, struct ptp_system_timestamp *sts)
6143 static void tg3_refclk_write(struct tg3 *tp, u64 newval)
6153 static inline void tg3_full_lock(struct tg3 *tp, int irq_sync);
6154 static inline void tg3_full_unlock(struct tg3 *tp);
6157 struct tg3 *tp = netdev_priv(dev);
6185 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info);
6213 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info);
6226 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info);
6242 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info);
6257 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info);
6319 .name = "tg3 clock",
6333 static void tg3_hwclock_to_timestamp(struct tg3 *tp, u64 hwclock,
6342 static void tg3_ptp_init(struct tg3 *tp)
6354 static void tg3_ptp_resume(struct tg3 *tp)
6363 static void tg3_ptp_fini(struct tg3 *tp)
6373 static inline int tg3_irq_sync(struct tg3 *tp)
6378 static inline void tg3_rd32_loop(struct tg3 *tp, u32 *dst, u32 off, u32 len)
6387 static void tg3_dump_legacy_regs(struct tg3 *tp, u32 *regs)
6437 static void tg3_dump_state(struct tg3 *tp)
6507 static void tg3_tx_recover(struct tg3 *tp)
6535 struct tg3 *tp = tnapi->tp;
6639 static void tg3_rx_data_free(struct tg3 *tp, struct ring_info *ri, u32 map_sz)
6665 static int tg3_alloc_rx_data(struct tg3 *tp, struct tg3_rx_prodring_set *tpr,
6737 struct tg3 *tp = tnapi->tp;
6804 struct tg3 *tp = tnapi->tp;
7012 static void tg3_poll_link(struct tg3 *tp)
7036 static int tg3_rx_prodring_xfer(struct tg3 *tp,
7164 struct tg3 *tp = tnapi->tp;
7178 * code synchronizes with tg3->napi.poll()
7211 static inline void tg3_reset_task_schedule(struct tg3 *tp)
7217 static inline void tg3_reset_task_cancel(struct tg3 *tp)
7227 struct tg3 *tp = tnapi->tp;
7284 static void tg3_process_error(struct tg3 *tp)
7321 struct tg3 *tp = tnapi->tp;
7367 static void tg3_napi_disable(struct tg3 *tp)
7375 static void tg3_napi_enable(struct tg3 *tp)
7383 static void tg3_napi_init(struct tg3 *tp)
7392 static void tg3_napi_fini(struct tg3 *tp)
7400 static inline void tg3_netif_stop(struct tg3 *tp)
7409 static inline void tg3_netif_start(struct tg3 *tp)
7427 static void tg3_irq_quiesce(struct tg3 *tp)
7446 /* Fully shutdown all tg3 driver activity elsewhere in the system.
7451 static inline void tg3_full_lock(struct tg3 *tp, int irq_sync)
7458 static inline void tg3_full_unlock(struct tg3 *tp)
7469 struct tg3 *tp = tnapi->tp;
7488 struct tg3 *tp = tnapi->tp;
7510 struct tg3 *tp = tnapi->tp;
7559 struct tg3 *tp = tnapi->tp;
7612 struct tg3 *tp = tnapi->tp;
7627 struct tg3 *tp = netdev_priv(dev);
7639 struct tg3 *tp = netdev_priv(dev);
7660 static inline int tg3_4g_tso_overflow_test(struct tg3 *tp, dma_addr_t mapping,
7672 static inline int tg3_40bit_overflow_test(struct tg3 *tp, dma_addr_t mapping,
7698 struct tg3 *tp = tnapi->tp;
7799 struct tg3 *tp = tnapi->tp;
7861 static int tg3_tso_bug(struct tg3 *tp, struct tg3_napi *tnapi,
7904 struct tg3 *tp = netdev_priv(dev);
8163 static void tg3_mac_loopback(struct tg3 *tp, bool enable)
8191 static int tg3_phy_lpbk_set(struct tg3 *tp, u32 speed, bool extlpbk)
8286 struct tg3 *tp = netdev_priv(dev);
8313 struct tg3 *tp = netdev_priv(dev);
8331 static void tg3_rx_prodring_free(struct tg3 *tp,
8372 static int tg3_rx_prodring_alloc(struct tg3 *tp,
8474 static void tg3_rx_prodring_fini(struct tg3 *tp,
8493 static int tg3_rx_prodring_init(struct tg3 *tp,
8536 static void tg3_free_rings(struct tg3 *tp)
8570 static int tg3_init_rings(struct tg3 *tp)
8605 static void tg3_mem_tx_release(struct tg3 *tp)
8623 static int tg3_mem_tx_acquire(struct tg3 *tp)
8656 static void tg3_mem_rx_release(struct tg3 *tp)
8676 static int tg3_mem_rx_acquire(struct tg3 *tp)
8720 static void tg3_free_consistent(struct tg3 *tp)
8753 static int tg3_alloc_consistent(struct tg3 *tp)
8820 static int tg3_stop_block(struct tg3 *tp, unsigned long ofs, u32 enable_bit, bool silent)
8872 static int tg3_abort_hw(struct tg3 *tp, bool silent)
8944 static void tg3_save_pci_state(struct tg3 *tp)
8950 static void tg3_restore_pci_state(struct tg3 *tp)
9010 static void tg3_override_clk(struct tg3 *tp)
9031 static void tg3_restore_clk(struct tg3 *tp)
9054 static int tg3_chip_reset(struct tg3 *tp)
9059 void (*write_op)(struct tg3 *, u32, u32);
9173 * For most tg3 variants the trick below was working.
9331 static void tg3_get_nstats(struct tg3 *, struct rtnl_link_stats64 *);
9332 static void tg3_get_estats(struct tg3 *, struct tg3_ethtool_stats *);
9336 static int tg3_halt(struct tg3 *tp, int kind, bool silent)
9373 struct tg3 *tp = netdev_priv(dev);
9408 static void tg3_set_bdinfo(struct tg3 *tp, u32 bdinfo_addr,
9429 static void tg3_coal_tx_init(struct tg3 *tp, struct ethtool_coalesce *ec)
9461 static void tg3_coal_rx_init(struct tg3 *tp, struct ethtool_coalesce *ec)
9495 static void __tg3_set_coalesce(struct tg3 *tp, struct ethtool_coalesce *ec)
9514 static void tg3_tx_rcbs_disable(struct tg3 *tp)
9536 static void tg3_tx_rcbs_init(struct tg3 *tp)
9557 static void tg3_rx_ret_rcbs_disable(struct tg3 *tp)
9580 static void tg3_rx_ret_rcbs_init(struct tg3 *tp)
9601 static void tg3_rings_reset(struct tg3 *tp)
9671 static void tg3_setup_rxbd_thresholds(struct tg3 *tp)
9734 static void tg3_set_multi(struct tg3 *tp, unsigned int accept_all)
9745 struct tg3 *tp = netdev_priv(dev);
9811 static void tg3_rss_init_dflt_indir_tbl(struct tg3 *tp, u32 qcnt)
9819 static void tg3_rss_check_indir_tbl(struct tg3 *tp)
9841 static void tg3_rss_write_indir_tbl(struct tg3 *tp)
9858 static inline u32 tg3_lso_rd_dma_workaround_bit(struct tg3 *tp)
9867 static int tg3_reset_hw(struct tg3 *tp, bool reset_phy)
10783 static int tg3_init_hw(struct tg3 *tp, bool reset_phy)
10800 static void tg3_sd_scan_scratchpad(struct tg3 *tp, struct tg3_ocir *ocir)
10819 struct tg3 *tp = dev_get_drvdata(dev);
10843 ATTRIBUTE_GROUPS(tg3);
10845 static void tg3_hwmon_close(struct tg3 *tp)
10853 static void tg3_hwmon_open(struct tg3 *tp)
10873 tp->hwmon_dev = hwmon_device_register_with_groups(&pdev->dev, "tg3",
10881 static inline void tg3_hwmon_close(struct tg3 *tp) { }
10882 static inline void tg3_hwmon_open(struct tg3 *tp) { }
10893 static void tg3_periodic_fetch_stats(struct tg3 *tp)
10959 static void tg3_chk_missed_msi(struct tg3 *tp)
10984 struct tg3 *tp = from_timer(tp, t, timer);
11126 static void tg3_timer_init(struct tg3 *tp)
11144 static void tg3_timer_start(struct tg3 *tp)
11153 static void tg3_timer_stop(struct tg3 *tp)
11161 static int tg3_restart_hw(struct tg3 *tp, bool reset_phy)
11184 struct tg3 *tp = container_of(work, struct tg3, reset_task);
11235 static int tg3_request_irq(struct tg3 *tp, int irq_num)
11276 static int tg3_test_interrupt(struct tg3 *tp)
11353 static int tg3_test_msi(struct tg3 *tp)
11411 static int tg3_request_firmware(struct tg3 *tp)
11442 static u32 tg3_irq_count(struct tg3 *tp)
11458 static bool tg3_enable_msix(struct tg3 *tp)
11517 static void tg3_ints_init(struct tg3 *tp)
11556 static void tg3_ints_fini(struct tg3 *tp)
11568 static int tg3_start(struct tg3 *tp, bool reset_phy, bool test_irq,
11683 static void tg3_stop(struct tg3 *tp)
11720 struct tg3 *tp = netdev_priv(dev);
11777 struct tg3 *tp = netdev_priv(dev);
11800 static u64 tg3_calc_crc_errors(struct tg3 *tp)
11828 static void tg3_get_estats(struct tg3 *tp, struct tg3_ethtool_stats *estats)
11912 static void tg3_get_nstats(struct tg3 *tp, struct rtnl_link_stats64 *stats)
11995 struct tg3 *tp = netdev_priv(dev);
12013 struct tg3 *tp = netdev_priv(dev);
12020 struct tg3 *tp = netdev_priv(dev);
12111 struct tg3 *tp = netdev_priv(dev);
12168 struct tg3 *tp = netdev_priv(dev);
12243 struct tg3 *tp = netdev_priv(dev);
12338 struct tg3 *tp = netdev_priv(dev);
12347 struct tg3 *tp = netdev_priv(dev);
12361 struct tg3 *tp = netdev_priv(dev);
12382 struct tg3 *tp = netdev_priv(dev);
12388 struct tg3 *tp = netdev_priv(dev);
12394 struct tg3 *tp = netdev_priv(dev);
12433 struct tg3 *tp = netdev_priv(dev);
12457 struct tg3 *tp = netdev_priv(dev);
12512 struct tg3 *tp = netdev_priv(dev);
12529 struct tg3 *tp = netdev_priv(dev);
12635 struct tg3 *tp = netdev_priv(dev);
12660 struct tg3 *tp = netdev_priv(dev);
12670 struct tg3 *tp = netdev_priv(dev);
12687 struct tg3 *tp = netdev_priv(dev);
12719 struct tg3 *tp = netdev_priv(dev);
12744 struct tg3 *tp = netdev_priv(dev);
12786 struct tg3 *tp = netdev_priv(dev);
12818 struct tg3 *tp = netdev_priv(dev);
12826 static __be32 *tg3_vpd_readblock(struct tg3 *tp, unsigned int *vpdlen)
12897 static int tg3_test_nvram(struct tg3 *tp)
13057 static int tg3_test_link(struct tg3 *tp)
13081 static int tg3_test_registers(struct tg3 *tp)
13301 static int tg3_do_mem_test(struct tg3 *tp, u32 offset, u32 len)
13320 static int tg3_test_memory(struct tg3 *tp)
13413 static int tg3_run_loopback(struct tg3 *tp, u32 pktsz, bool tso_loopback)
13629 static int tg3_test_loopback(struct tg3 *tp, u64 *data, bool do_extlpbk)
13747 struct tg3 *tp = netdev_priv(dev);
13835 struct tg3 *tp = netdev_priv(dev);
13919 struct tg3 *tp = netdev_priv(dev);
13981 struct tg3 *tp = netdev_priv(dev);
14048 struct tg3 *tp = netdev_priv(dev);
14059 struct tg3 *tp = netdev_priv(dev);
14105 struct tg3 *tp = netdev_priv(dev);
14142 struct tg3 *tp = netdev_priv(dev);
14199 struct tg3 *tp = netdev_priv(dev);
14214 struct tg3 *tp = netdev_priv(dev);
14224 static inline void tg3_set_mtu(struct net_device *dev, struct tg3 *tp,
14247 struct tg3 *tp = netdev_priv(dev);
14309 static void tg3_get_eeprom_size(struct tg3 *tp)
14343 static void tg3_get_nvram_size(struct tg3 *tp)
14376 static void tg3_get_nvram_info(struct tg3 *tp)
14427 static void tg3_nvram_get_pagesize(struct tg3 *tp, u32 nvmcfg1)
14454 static void tg3_get_5752_nvram_info(struct tg3 *tp)
14495 static void tg3_get_5755_nvram_info(struct tg3 *tp)
14551 static void tg3_get_5787_nvram_info(struct tg3 *tp)
14589 static void tg3_get_5761_nvram_info(struct tg3 *tp)
14664 static void tg3_get_5906_nvram_info(struct tg3 *tp)
14671 static void tg3_get_57780_nvram_info(struct tg3 *tp)
14744 static void tg3_get_5717_nvram_info(struct tg3 *tp)
14822 static void tg3_get_5720_nvram_info(struct tg3 *tp)
14987 static void tg3_nvram_init(struct tg3 *tp)
15130 static struct subsys_tbl_ent *tg3_lookup_by_subsys(struct tg3 *tp)
15144 static void tg3_get_eeprom_hw_cfg(struct tg3 *tp)
15361 static int tg3_ape_otp_read(struct tg3 *tp, u32 offset, u32 *val)
15394 static int tg3_issue_otp_command(struct tg3 *tp, u32 cmd)
15417 static u32 tg3_read_otp_phycfg(struct tg3 *tp)
15443 static void tg3_phy_init_link_config(struct tg3 *tp)
15472 static int tg3_phy_probe(struct tg3 *tp)
15627 static void tg3_read_vpd(struct tg3 *tp)
15723 static int tg3_fw_img_is_valid(struct tg3 *tp, u32 offset)
15736 static void tg3_read_bc_ver(struct tg3 *tp)
15788 static void tg3_read_hwsb_ver(struct tg3 *tp)
15804 static void tg3_read_sb_ver(struct tg3 *tp, u32 val)
15859 static void tg3_read_mgmtfw_ver(struct tg3 *tp)
15911 static void tg3_probe_ncsi(struct tg3 *tp)
15927 static void tg3_read_dash_ver(struct tg3 *tp)
15952 static void tg3_read_otp_ver(struct tg3 *tp)
15977 static void tg3_read_fw_ver(struct tg3 *tp)
16014 static inline u32 tg3_rx_ret_ring_size(struct tg3 *tp)
16031 static struct pci_dev *tg3_find_peer(struct tg3 *tp)
16059 static void tg3_detect_asic_rev(struct tg3 *tp, u32 misc_ctrl_reg)
16147 static bool tg3_10_100_only_device(struct tg3 *tp,
16169 static int tg3_get_invariants(struct tg3 *tp, const struct pci_device_id *ent)
16295 * Any tg3 device found behind the bridge will also need the 40-bit
16598 * to succeed. Normally on powerup the tg3 chip firmware will make
16950 static int tg3_get_device_address(struct tg3 *tp, u8 *addr)
17027 static u32 tg3_calc_dma_bndry(struct tg3 *tp, u32 val)
17067 * Therefore, letting tg3 do so just wastes PCI bandwidth.
17168 static int tg3_do_test_dma(struct tg3 *tp, u32 *buf, dma_addr_t buf_dma,
17192 * the *second* time the tg3 driver was getting loaded after an
17256 static int tg3_test_dma(struct tg3 *tp)
17430 static void tg3_init_bufmgr_config(struct tg3 *tp)
17486 static char *tg3_phy_string(struct tg3 *tp)
17518 static char *tg3_bus_string(struct tg3 *tp, char *str)
17554 static void tg3_init_coal(struct tg3 *tp)
17589 struct tg3 *tp;
17980 struct tg3 *tp = netdev_priv(dev);
18012 struct tg3 *tp = netdev_priv(dev);
18068 struct tg3 *tp = netdev_priv(dev);
18109 struct tg3 *tp = netdev_priv(dev);
18140 struct tg3 *tp = netdev_priv(netdev);
18199 struct tg3 *tp = netdev_priv(netdev);
18246 struct tg3 *tp = netdev_priv(netdev);