• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/

Lines Matching refs:tg3

2  * tg3.c: Broadcom Tigon3 ethernet driver.
68 #include "tg3.h"
70 #define DRV_MODULE_NAME "tg3"
171 #define FIRMWARE_TG3 "tigon/tg3.bin"
368 static void tg3_write32(struct tg3 *tp, u32 off, u32 val)
373 static u32 tg3_read32(struct tg3 *tp, u32 off)
378 static void tg3_ape_write32(struct tg3 *tp, u32 off, u32 val)
383 static u32 tg3_ape_read32(struct tg3 *tp, u32 off)
388 static void tg3_write_indirect_reg32(struct tg3 *tp, u32 off, u32 val)
398 static void tg3_write_flush_reg32(struct tg3 *tp, u32 off, u32 val)
404 static u32 tg3_read_indirect_reg32(struct tg3 *tp, u32 off)
416 static void tg3_write_indirect_mbox(struct tg3 *tp, u32 off, u32 val)
446 static u32 tg3_read_indirect_mbox(struct tg3 *tp, u32 off)
463 static void _tw32_flush(struct tg3 *tp, u32 off, u32 val, u32 usec_wait)
483 static inline void tw32_mailbox_flush(struct tg3 *tp, u32 off, u32 val)
491 static void tg3_write32_tx_mbox(struct tg3 *tp, u32 off, u32 val)
501 static u32 tg3_read32_mbox_5906(struct tg3 *tp, u32 off)
506 static void tg3_write32_mbox_5906(struct tg3 *tp, u32 off, u32 val)
522 static void tg3_write_mem(struct tg3 *tp, u32 off, u32 val)
547 static void tg3_read_mem(struct tg3 *tp, u32 off, u32 *val)
574 static void tg3_ape_lock_init(struct tg3 *tp)
589 static int tg3_ape_lock(struct tg3 *tp, int locknum)
637 static void tg3_ape_unlock(struct tg3 *tp, int locknum)
660 static void tg3_disable_ints(struct tg3 *tp)
670 static void tg3_enable_ints(struct tg3 *tp)
703 struct tg3 *tp = tnapi->tp;
729 struct tg3 *tp = tnapi->tp;
744 static void tg3_napi_disable(struct tg3 *tp)
752 static void tg3_napi_enable(struct tg3 *tp)
760 static inline void tg3_netif_stop(struct tg3 *tp)
767 static inline void tg3_netif_start(struct tg3 *tp)
780 static void tg3_switch_clocks(struct tg3 *tp)
816 static int tg3_readphy(struct tg3 *tp, int reg, u32 *val)
865 static int tg3_writephy(struct tg3 *tp, int reg, u32 val)
914 static int tg3_bmcr_reset(struct tg3 *tp)
947 struct tg3 *tp = bp->priv;
962 struct tg3 *tp = bp->priv;
980 static void tg3_mdio_config_5785(struct tg3 *tp)
1061 static void tg3_mdio_start(struct tg3 *tp)
1072 static int tg3_mdio_init(struct tg3 *tp)
1104 tp->mdio_bus->name = "tg3 mdio bus";
1179 static void tg3_mdio_fini(struct tg3 *tp)
1189 static inline void tg3_generate_fw_event(struct tg3 *tp)
1203 static void tg3_wait_for_event_ack(struct tg3 *tp)
1230 static void tg3_ump_link_report(struct tg3 *tp)
1277 static void tg3_link_report(struct tg3 *tp)
1354 static void tg3_setup_flow_control(struct tg3 *tp, u32 lcladv, u32 rmtadv)
1398 struct tg3 *tp = netdev_priv(dev);
1478 static int tg3_phy_init(struct tg3 *tp)
1526 static void tg3_phy_start(struct tg3 *tp)
1548 static void tg3_phy_stop(struct tg3 *tp)
1556 static void tg3_phy_fini(struct tg3 *tp)
1564 static int tg3_phydsp_write(struct tg3 *tp, u32 reg, u32 val)
1575 static void tg3_phy_fet_toggle_apd(struct tg3 *tp, bool enable)
1595 static void tg3_phy_toggle_apd(struct tg3 *tp, bool enable)
1631 static void tg3_phy_toggle_automdix(struct tg3 *tp, int enable)
1671 static void tg3_phy_set_wirespeed(struct tg3 *tp)
1684 static void tg3_phy_apply_otp(struct tg3 *tp)
1727 static int tg3_wait_macro_done(struct tg3 *tp)
1745 static int tg3_phy_write_and_check_testpat(struct tg3 *tp, int *resetp)
1811 static int tg3_phy_reset_chanpat(struct tg3 *tp)
1831 static int tg3_phy_reset_5703_4_5(struct tg3 *tp)
1907 static int tg3_phy_reset(struct tg3 *tp)
2049 static void tg3_frob_aux_power(struct tg3 *tp)
2051 struct tg3 *tp_peer = tp;
2164 static int tg3_5700_link_polarity(struct tg3 *tp, u32 speed)
2177 static int tg3_setup_phy(struct tg3 *, int);
2183 static void tg3_write_sig_post_reset(struct tg3 *, int);
2184 static int tg3_halt_cpu(struct tg3 *, u32);
2186 static void tg3_power_down_phy(struct tg3 *tp, bool do_low_power)
2261 static int tg3_nvram_lock(struct tg3 *tp)
2284 static void tg3_nvram_unlock(struct tg3 *tp)
2295 static void tg3_enable_nvram_access(struct tg3 *tp)
2306 static void tg3_disable_nvram_access(struct tg3 *tp)
2316 static int tg3_nvram_read_using_eeprom(struct tg3 *tp,
2358 static int tg3_nvram_exec_cmd(struct tg3 *tp, u32 nvram_cmd)
2377 static u32 tg3_nvram_phys_addr(struct tg3 *tp, u32 addr)
2392 static u32 tg3_nvram_logical_addr(struct tg3 *tp, u32 addr)
2409 * tg3 devices are BE devices, so on a BE machine, the data
2413 static int tg3_nvram_read(struct tg3 *tp, u32 offset, u32 *val)
2446 static int tg3_nvram_read_be32(struct tg3 *tp, u32 offset, __be32 *val)
2456 static void __tg3_set_mac_addr(struct tg3 *tp, int skip_mac_1)
2492 static int tg3_set_power_state(struct tg3 *tp, pci_power_t state)
2774 static void tg3_aux_stat_to_speed_duplex(struct tg3 *tp, u32 val, u16 *speed, u8 *duplex)
2821 static void tg3_phy_copper_begin(struct tg3 *tp)
2959 static int tg3_init_5401phy_dsp(struct tg3 *tp)
2978 static int tg3_copper_is_advertising_all(struct tg3 *tp, u32 mask)
3014 static int tg3_adv_1000T_flowctrl_ok(struct tg3 *tp, u32 *lcladv, u32 *rmtadv)
3047 static int tg3_setup_copper_phy(struct tg3 *tp, int force_reset)
3390 static int tg3_fiber_aneg_smachine(struct tg3 *tp,
3641 static int fiber_autoneg(struct tg3 *tp, u32 *txflags, u32 *rxflags)
3686 static void tg3_init_bcm8002(struct tg3 *tp)
3734 static int tg3_setup_fiber_hw_autoneg(struct tg3 *tp, u32 mac_status)
3876 static int tg3_setup_fiber_by_hand(struct tg3 *tp, u32 mac_status)
3938 static int tg3_setup_fiber_phy(struct tg3 *tp, int force_reset)
4046 static int tg3_setup_fiber_mii_phy(struct tg3 *tp, int force_reset)
4218 static void tg3_serdes_parallel_detect(struct tg3 *tp)
4278 static int tg3_setup_phy(struct tg3 *tp, int force_reset)
4345 static void tg3_tx_recover(struct tg3 *tp)
4375 struct tg3 *tp = tnapi->tp;
4444 static void tg3_rx_skb_free(struct tg3 *tp, struct ring_info *ri, u32 map_sz)
4466 static int tg3_alloc_rx_skb(struct tg3 *tp, struct tg3_rx_prodring_set *tpr,
4532 struct tg3 *tp = tnapi->tp;
4599 struct tg3 *tp = tnapi->tp;
4799 static void tg3_poll_link(struct tg3 *tp)
4825 static int tg3_rx_prodring_xfer(struct tg3 *tp,
4950 struct tg3 *tp = tnapi->tp;
4961 * code synchronizes with tg3->napi.poll()
4998 struct tg3 *tp = tnapi->tp;
5042 struct tg3 *tp = tnapi->tp;
5084 static void tg3_irq_quiesce(struct tg3 *tp)
5097 static inline int tg3_irq_sync(struct tg3 *tp)
5102 /* Fully shutdown all tg3 driver activity elsewhere in the system.
5107 static inline void tg3_full_lock(struct tg3 *tp, int irq_sync)
5114 static inline void tg3_full_unlock(struct tg3 *tp)
5125 struct tg3 *tp = tnapi->tp;
5144 struct tg3 *tp = tnapi->tp;
5166 struct tg3 *tp = tnapi->tp;
5215 struct tg3 *tp = tnapi->tp;
5268 struct tg3 *tp = tnapi->tp;
5279 static int tg3_init_hw(struct tg3 *, int);
5280 static int tg3_halt(struct tg3 *, int, int);
5285 static int tg3_restart_hw(struct tg3 *tp, int reset_phy)
5310 struct tg3 *tp = netdev_priv(dev);
5319 struct tg3 *tp = container_of(work, struct tg3, reset_task);
5365 static void tg3_dump_short_state(struct tg3 *tp)
5375 struct tg3 *tp = netdev_priv(dev);
5395 static inline int tg3_40bit_overflow_test(struct tg3 *tp, dma_addr_t mapping,
5413 struct tg3 *tp = tnapi->tp;
5518 struct tg3 *tp = netdev_priv(dev);
5688 static int tg3_tso_bug(struct tg3 *tp, struct sk_buff *skb)
5732 struct tg3 *tp = netdev_priv(dev);
5973 static inline void tg3_set_mtu(struct net_device *dev, struct tg3 *tp,
5994 struct tg3 *tp = netdev_priv(dev);
6031 static void tg3_rx_prodring_free(struct tg3 *tp,
6072 static int tg3_rx_prodring_alloc(struct tg3 *tp,
6167 static void tg3_rx_prodring_fini(struct tg3 *tp,
6186 static int tg3_rx_prodring_init(struct tg3 *tp,
6225 static void tg3_free_rings(struct tg3 *tp)
6279 static int tg3_init_rings(struct tg3 *tp)
6317 static void tg3_free_consistent(struct tg3 *tp)
6362 static int tg3_alloc_consistent(struct tg3 *tp)
6461 static int tg3_stop_block(struct tg3 *tp, unsigned long ofs, u32 enable_bit, int silent)
6505 static int tg3_abort_hw(struct tg3 *tp, int silent)
6570 static void tg3_ape_send_event(struct tg3 *tp, u32 event)
6606 static void tg3_ape_driver_state_change(struct tg3 *tp, int kind)
6652 static void tg3_write_sig_pre_reset(struct tg3 *tp, int kind)
6685 static void tg3_write_sig_post_reset(struct tg3 *tp, int kind)
6709 static void tg3_write_sig_legacy(struct tg3 *tp, int kind)
6734 static int tg3_poll_fw(struct tg3 *tp)
6780 static void tg3_save_pci_state(struct tg3 *tp)
6786 static void tg3_restore_pci_state(struct tg3 *tp)
6850 static void tg3_stop_fw(struct tg3 *);
6853 static int tg3_chip_reset(struct tg3 *tp)
6856 void (*write_op)(struct tg3 *, u32, u32);
6950 * For most tg3 variants the trick below was working.
7090 static void tg3_stop_fw(struct tg3 *tp)
7107 static int tg3_halt(struct tg3 *tp, int kind, int silent)
7135 static int tg3_halt_cpu(struct tg3 *tp, u32 offset)
7187 static int tg3_load_firmware_cpu(struct tg3 *tp, u32 cpu_base, u32 cpu_scratch_base,
7191 void (*write_op)(struct tg3 *, u32, u32);
7233 static int tg3_load_5701_a0_firmware_fix(struct tg3 *tp)
7290 static int tg3_load_tso_firmware(struct tg3 *tp)
7354 struct tg3 *tp = netdev_priv(dev);
7387 static void tg3_set_bdinfo(struct tg3 *tp, u32 bdinfo_addr,
7408 static void __tg3_set_coalesce(struct tg3 *tp, struct ethtool_coalesce *ec)
7478 static void tg3_rings_reset(struct tg3 *tp)
7599 static int tg3_reset_hw(struct tg3 *tp, int reset_phy)
8380 static int tg3_init_hw(struct tg3 *tp, int reset_phy)
8396 static void tg3_periodic_fetch_stats(struct tg3 *tp)
8439 struct tg3 *tp = (struct tg3 *) __opaque;
8559 static int tg3_request_irq(struct tg3 *tp, int irq_num)
8589 static int tg3_test_interrupt(struct tg3 *tp)
8664 static int tg3_test_msi(struct tg3 *tp)
8722 static int tg3_request_firmware(struct tg3 *tp)
8753 static bool tg3_enable_msix(struct tg3 *tp)
8802 static void tg3_ints_init(struct tg3 *tp)
8834 static void tg3_ints_fini(struct tg3 *tp)
8846 struct tg3 *tp = netdev_priv(dev);
8985 static struct tg3_ethtool_stats *tg3_get_estats(struct tg3 *);
8990 struct tg3 *tp = netdev_priv(dev);
9037 static u64 calc_crc_errors(struct tg3 *tp)
9067 static struct tg3_ethtool_stats *tg3_get_estats(struct tg3 *tp)
9158 struct tg3 *tp = netdev_priv(dev);
9241 static void tg3_set_multi(struct tg3 *tp, unsigned int accept_all)
9252 struct tg3 *tp = netdev_priv(dev);
9313 struct tg3 *tp = netdev_priv(dev);
9334 struct tg3 *tp = netdev_priv(dev);
9405 struct tg3 *tp = netdev_priv(dev);
9412 struct tg3 *tp = netdev_priv(dev);
9473 static int tg3_nvram_write_block(struct tg3 *tp, u32 offset, u32 len, u8 *buf);
9477 struct tg3 *tp = netdev_priv(dev);
9536 struct tg3 *tp = netdev_priv(dev);
9579 struct tg3 *tp = netdev_priv(dev);
9669 struct tg3 *tp = netdev_priv(dev);
9679 struct tg3 *tp = netdev_priv(dev);
9695 struct tg3 *tp = netdev_priv(dev);
9719 struct tg3 *tp = netdev_priv(dev);
9725 struct tg3 *tp = netdev_priv(dev);
9731 struct tg3 *tp = netdev_priv(dev);
9758 struct tg3 *tp = netdev_priv(dev);
9792 struct tg3 *tp = netdev_priv(dev);
9815 struct tg3 *tp = netdev_priv(dev);
9861 struct tg3 *tp = netdev_priv(dev);
9878 struct tg3 *tp = netdev_priv(dev);
9981 struct tg3 *tp = netdev_priv(dev);
9987 struct tg3 *tp = netdev_priv(dev);
10007 struct tg3 *tp = netdev_priv(dev);
10052 struct tg3 *tp = netdev_priv(dev);
10085 struct tg3 *tp = netdev_priv(dev);
10096 static int tg3_test_nvram(struct tg3 *tp)
10236 static int tg3_test_link(struct tg3 *tp)
10260 static int tg3_test_registers(struct tg3 *tp)
10480 static int tg3_do_mem_test(struct tg3 *tp, u32 offset, u32 len)
10499 static int tg3_test_memory(struct tg3 *tp)
10572 static int tg3_run_loopback(struct tg3 *tp, int loopback_mode)
10755 static int tg3_test_loopback(struct tg3 *tp)
10821 struct tg3 *tp = netdev_priv(dev);
10899 struct tg3 *tp = netdev_priv(dev);
10956 struct tg3 *tp = netdev_priv(dev);
10980 struct tg3 *tp = netdev_priv(dev);
10988 struct tg3 *tp = netdev_priv(dev);
11073 static void __devinit tg3_get_eeprom_size(struct tg3 *tp)
11107 static void __devinit tg3_get_nvram_size(struct tg3 *tp)
11141 static void __devinit tg3_get_nvram_info(struct tg3 *tp)
11192 static void __devinit tg3_nvram_get_pagesize(struct tg3 *tp, u32 nvmcfg1)
11219 static void __devinit tg3_get_5752_nvram_info(struct tg3 *tp)
11260 static void __devinit tg3_get_5755_nvram_info(struct tg3 *tp)
11316 static void __devinit tg3_get_5787_nvram_info(struct tg3 *tp)
11354 static void __devinit tg3_get_5761_nvram_info(struct tg3 *tp)
11429 static void __devinit tg3_get_5906_nvram_info(struct tg3 *tp)
11436 static void __devinit tg3_get_57780_nvram_info(struct tg3 *tp)
11509 static void __devinit tg3_get_5717_nvram_info(struct tg3 *tp)
11584 static void __devinit tg3_nvram_init(struct tg3 *tp)
11646 static int tg3_nvram_write_block_using_eeprom(struct tg3 *tp,
11696 static int tg3_nvram_write_block_unbuffered(struct tg3 *tp, u32 offset, u32 len,
11794 static int tg3_nvram_write_block_buffered(struct tg3 *tp, u32 offset, u32 len,
11845 static int tg3_nvram_write_block(struct tg3 *tp, u32 offset, u32 len, u8 *buf)
11966 static struct subsys_tbl_ent * __devinit tg3_lookup_by_subsys(struct tg3 *tp)
11980 static void __devinit tg3_get_eeprom_hw_cfg(struct tg3 *tp)
12000 * to succeed. Normally on powerup the tg3 chip firmware will make
12195 static int __devinit tg3_issue_otp_command(struct tg3 *tp, u32 cmd)
12218 static u32 __devinit tg3_read_otp_phycfg(struct tg3 *tp)
12244 static int __devinit tg3_phy_probe(struct tg3 *tp)
12373 static void __devinit tg3_read_vpd(struct tg3 *tp)
12505 static int __devinit tg3_fw_img_is_valid(struct tg3 *tp, u32 offset)
12518 static void __devinit tg3_read_bc_ver(struct tg3 *tp)
12570 static void __devinit tg3_read_hwsb_ver(struct tg3 *tp)
12586 static void __devinit tg3_read_sb_ver(struct tg3 *tp, u32 val)
12638 static void __devinit tg3_read_mgmtfw_ver(struct tg3 *tp)
12690 static void __devinit tg3_read_dash_ver(struct tg3 *tp)
12725 static void __devinit tg3_read_fw_ver(struct tg3 *tp)
12760 static struct pci_dev * __devinit tg3_find_peer(struct tg3 *);
12769 static int __devinit tg3_get_invariants(struct tg3 *tp)
13486 static int __devinit tg3_get_macaddr_sparc(struct tg3 *tp)
13503 static int __devinit tg3_get_default_macaddr_sparc(struct tg3 *tp)
13513 static int __devinit tg3_get_device_address(struct tg3 *tp)
13593 static u32 __devinit tg3_calc_dma_bndry(struct tg3 *tp, u32 val)
13633 * Therefore, letting tg3 do so just wastes PCI bandwidth.
13735 static int __devinit tg3_do_test_dma(struct tg3 *tp, u32 *buf, dma_addr_t buf_dma, int size, int to_device)
13758 * the *second* time the tg3 driver was getting loaded after an
13817 static int __devinit tg3_test_dma(struct tg3 *tp)
13980 static void __devinit tg3_init_link_config(struct tg3 *tp)
13997 static void __devinit tg3_init_bufmgr_config(struct tg3 *tp)
14053 static char * __devinit tg3_phy_string(struct tg3 *tp)
14083 static char * __devinit tg3_bus_string(struct tg3 *tp, char *str)
14119 static struct pci_dev * __devinit tg3_find_peer(struct tg3 *tp)
14147 static void __devinit tg3_init_coal(struct tg3 *tp)
14220 struct tg3 *tp;
14587 struct tg3 *tp = netdev_priv(dev);
14618 struct tg3 *tp = netdev_priv(dev);
14680 struct tg3 *tp = netdev_priv(dev);