• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/

Lines Matching refs:tg3

2  * tg3.c: Broadcom Tigon3 ethernet driver.
63 #include "tg3.h"
65 #define DRV_MODULE_NAME "tg3"
305 static void tg3_write32(struct tg3 *tp, u32 off, u32 val)
310 static u32 tg3_read32(struct tg3 *tp, u32 off)
315 static void tg3_write_indirect_reg32(struct tg3 *tp, u32 off, u32 val)
325 static void tg3_write_flush_reg32(struct tg3 *tp, u32 off, u32 val)
331 static u32 tg3_read_indirect_reg32(struct tg3 *tp, u32 off)
343 static void tg3_write_indirect_mbox(struct tg3 *tp, u32 off, u32 val)
373 static u32 tg3_read_indirect_mbox(struct tg3 *tp, u32 off)
390 static void _tw32_flush(struct tg3 *tp, u32 off, u32 val, u32 usec_wait)
410 static inline void tw32_mailbox_flush(struct tg3 *tp, u32 off, u32 val)
418 static void tg3_write32_tx_mbox(struct tg3 *tp, u32 off, u32 val)
428 static u32 tg3_read32_mbox_5906(struct tg3 *tp, u32 off)
433 static void tg3_write32_mbox_5906(struct tg3 *tp, u32 off, u32 val)
449 static void tg3_write_mem(struct tg3 *tp, u32 off, u32 val)
474 static void tg3_read_mem(struct tg3 *tp, u32 off, u32 *val)
501 static void tg3_disable_ints(struct tg3 *tp)
508 static inline void tg3_cond_int(struct tg3 *tp)
518 static void tg3_enable_ints(struct tg3 *tp)
533 static inline unsigned int tg3_has_work(struct tg3 *tp)
558 static void tg3_restart_ints(struct tg3 *tp)
574 static inline void tg3_netif_stop(struct tg3 *tp)
581 static inline void tg3_netif_start(struct tg3 *tp)
593 static void tg3_switch_clocks(struct tg3 *tp)
626 static int tg3_readphy(struct tg3 *tp, int reg, u32 *val)
675 static int tg3_writephy(struct tg3 *tp, int reg, u32 val)
724 static void tg3_phy_set_wirespeed(struct tg3 *tp)
737 static int tg3_bmcr_reset(struct tg3 *tp)
768 static int tg3_wait_macro_done(struct tg3 *tp)
786 static int tg3_phy_write_and_check_testpat(struct tg3 *tp, int *resetp)
852 static int tg3_phy_reset_chanpat(struct tg3 *tp)
872 static int tg3_phy_reset_5703_4_5(struct tg3 *tp)
948 static void tg3_link_report(struct tg3 *);
953 static int tg3_phy_reset(struct tg3 *tp)
1069 static void tg3_frob_aux_power(struct tg3 *tp)
1071 struct tg3 *tp_peer = tp;
1164 static int tg3_setup_phy(struct tg3 *, int);
1170 static void tg3_write_sig_post_reset(struct tg3 *, int);
1171 static int tg3_halt_cpu(struct tg3 *, u32);
1172 static int tg3_nvram_lock(struct tg3 *);
1173 static void tg3_nvram_unlock(struct tg3 *);
1175 static void tg3_power_down_phy(struct tg3 *tp)
1215 static int tg3_set_power_state(struct tg3 *tp, pci_power_t state)
1429 static void tg3_link_report(struct tg3 *tp)
1453 static void tg3_setup_flow_control(struct tg3 *tp, u32 local_adv, u32 remote_adv)
1525 static void tg3_aux_stat_to_speed_duplex(struct tg3 *tp, u32 val, u16 *speed, u8 *duplex)
1572 static void tg3_phy_copper_begin(struct tg3 *tp)
1705 static int tg3_init_5401phy_dsp(struct tg3 *tp)
1733 static int tg3_copper_is_advertising_all(struct tg3 *tp, u32 mask)
1769 static int tg3_setup_copper_phy(struct tg3 *tp, int force_reset)
2112 static int tg3_fiber_aneg_smachine(struct tg3 *tp,
2359 static int fiber_autoneg(struct tg3 *tp, u32 *flags)
2403 static void tg3_init_bcm8002(struct tg3 *tp)
2451 static int tg3_setup_fiber_hw_autoneg(struct tg3 *tp, u32 mac_status)
2588 static int tg3_setup_fiber_by_hand(struct tg3 *tp, u32 mac_status)
2642 static int tg3_setup_fiber_phy(struct tg3 *tp, int force_reset)
2758 static int tg3_setup_fiber_mii_phy(struct tg3 *tp, int force_reset)
2925 static void tg3_serdes_parallel_detect(struct tg3 *tp)
2983 static int tg3_setup_phy(struct tg3 *tp, int force_reset)
3035 static void tg3_tx_recover(struct tg3 *tp)
3050 static inline u32 tg3_tx_avail(struct tg3 *tp)
3061 static void tg3_tx(struct tg3 *tp)
3136 static int tg3_alloc_rx_skb(struct tg3 *tp, u32 opaque_key,
3201 static void tg3_recycle_rx(struct tg3 *tp, u32 opaque_key,
3239 static int tg3_vlan_rx(struct tg3 *tp, struct sk_buff *skb, u16 vlan_tag)
3269 static int tg3_rx(struct tg3 *tp, int budget)
3427 struct tg3 *tp = netdev_priv(netdev);
3487 static void tg3_irq_quiesce(struct tg3 *tp)
3497 static inline int tg3_irq_sync(struct tg3 *tp)
3502 /* Fully shutdown all tg3 driver activity elsewhere in the system.
3507 static inline void tg3_full_lock(struct tg3 *tp, int irq_sync)
3514 static inline void tg3_full_unlock(struct tg3 *tp)
3525 struct tg3 *tp = netdev_priv(dev);
3543 struct tg3 *tp = netdev_priv(dev);
3564 struct tg3 *tp = netdev_priv(dev);
3613 struct tg3 *tp = netdev_priv(dev);
3662 struct tg3 *tp = netdev_priv(dev);
3673 static int tg3_init_hw(struct tg3 *, int);
3674 static int tg3_halt(struct tg3 *, int, int);
3679 static int tg3_restart_hw(struct tg3 *tp, int reset_phy)
3701 struct tg3 *tp = netdev_priv(dev);
3709 struct tg3 *tp = container_of(work, struct tg3, reset_task);
3748 static void tg3_dump_short_state(struct tg3 *tp)
3758 struct tg3 *tp = netdev_priv(dev);
3779 static inline int tg3_40bit_overflow_test(struct tg3 *tp, dma_addr_t mapping,
3791 static void tg3_set_txd(struct tg3 *, int, dma_addr_t, int, u32, u32);
3793 static int tigon3_dma_hwbug_workaround(struct tg3 *tp, struct sk_buff *skb,
3850 static void tg3_set_txd(struct tg3 *tp, int entry,
3878 struct tg3 *tp = netdev_priv(dev);
3994 static int tg3_tso_bug(struct tg3 *tp, struct sk_buff *skb)
4029 struct tg3 *tp = netdev_priv(dev);
4195 static inline void tg3_set_mtu(struct net_device *dev, struct tg3 *tp,
4216 struct tg3 *tp = netdev_priv(dev);
4255 static void tg3_free_rings(struct tg3 *tp)
4327 static int tg3_init_rings(struct tg3 *tp)
4414 static void tg3_free_consistent(struct tg3 *tp)
4454 static int tg3_alloc_consistent(struct tg3 *tp)
4517 static int tg3_stop_block(struct tg3 *tp, unsigned long ofs, u32 enable_bit, int silent)
4561 static int tg3_abort_hw(struct tg3 *tp, int silent)
4624 static int tg3_nvram_lock(struct tg3 *tp)
4647 static void tg3_nvram_unlock(struct tg3 *tp)
4658 static void tg3_enable_nvram_access(struct tg3 *tp)
4669 static void tg3_disable_nvram_access(struct tg3 *tp)
4680 static void tg3_write_sig_pre_reset(struct tg3 *tp, int kind)
4709 static void tg3_write_sig_post_reset(struct tg3 *tp, int kind)
4730 static void tg3_write_sig_legacy(struct tg3 *tp, int kind)
4755 static int tg3_poll_fw(struct tg3 *tp)
4794 static void tg3_stop_fw(struct tg3 *);
4797 static int tg3_chip_reset(struct tg3 *tp)
4800 void (*write_op)(struct tg3 *, u32, u32);
4869 * For most tg3 variants the trick below was working.
5007 static void tg3_stop_fw(struct tg3 *tp)
5028 static int tg3_halt(struct tg3 *tp, int kind, int silent)
5172 static int tg3_halt_cpu(struct tg3 *tp, u32 offset)
5232 static int tg3_load_firmware_cpu(struct tg3 *tp, u32 cpu_base, u32 cpu_scratch_base,
5236 void (*write_op)(struct tg3 *, u32, u32);
5291 static int tg3_load_5701_a0_firmware_fix(struct tg3 *tp)
5848 static int tg3_load_tso_firmware(struct tg3 *tp)
5921 static void __tg3_set_mac_addr(struct tg3 *tp, int skip_mac_1)
5959 struct tg3 *tp = netdev_priv(dev);
5992 static void tg3_set_bdinfo(struct tg3 *tp, u32 bdinfo_addr,
6013 static void __tg3_set_coalesce(struct tg3 *tp, struct ethtool_coalesce *ec)
6036 static int tg3_reset_hw(struct tg3 *tp, int reset_phy)
6675 static int tg3_init_hw(struct tg3 *tp, int reset_phy)
6701 static void tg3_periodic_fetch_stats(struct tg3 *tp)
6744 struct tg3 *tp = (struct tg3 *) __opaque;
6862 static int tg3_request_irq(struct tg3 *tp)
6882 static int tg3_test_interrupt(struct tg3 *tp)
6939 static int tg3_test_msi(struct tg3 *tp)
6999 struct tg3 *tp = netdev_priv(dev);
7130 static struct tg3_ethtool_stats *tg3_get_estats(struct tg3 *);
7134 struct tg3 *tp = netdev_priv(dev);
7184 static unsigned long calc_crc_errors(struct tg3 *tp)
7214 static struct tg3_ethtool_stats *tg3_get_estats(struct tg3 *tp)
7304 struct tg3 *tp = netdev_priv(dev);
7387 static void tg3_set_multi(struct tg3 *tp, unsigned int accept_all)
7398 struct tg3 *tp = netdev_priv(dev);
7462 struct tg3 *tp = netdev_priv(dev);
7483 struct tg3 *tp = netdev_priv(dev);
7554 struct tg3 *tp = netdev_priv(dev);
7559 static int tg3_nvram_read(struct tg3 *tp, u32 offset, u32 *val);
7560 static int tg3_nvram_read_swab(struct tg3 *tp, u32 offset, u32 *val);
7564 struct tg3 *tp = netdev_priv(dev);
7624 static int tg3_nvram_write_block(struct tg3 *tp, u32 offset, u32 len, u8 *buf);
7628 struct tg3 *tp = netdev_priv(dev);
7687 struct tg3 *tp = netdev_priv(dev);
7722 struct tg3 *tp = netdev_priv(dev);
7771 struct tg3 *tp = netdev_priv(dev);
7781 struct tg3 *tp = netdev_priv(dev);
7795 struct tg3 *tp = netdev_priv(dev);
7815 struct tg3 *tp = netdev_priv(dev);
7821 struct tg3 *tp = netdev_priv(dev);
7827 struct tg3 *tp = netdev_priv(dev);
7846 struct tg3 *tp = netdev_priv(dev);
7873 struct tg3 *tp = netdev_priv(dev);
7896 struct tg3 *tp = netdev_priv(dev);
7936 struct tg3 *tp = netdev_priv(dev);
7945 struct tg3 *tp = netdev_priv(dev);
7982 struct tg3 *tp = netdev_priv(dev);
7988 struct tg3 *tp = netdev_priv(dev);
8008 struct tg3 *tp = netdev_priv(dev);
8052 struct tg3 *tp = netdev_priv(dev);
8085 struct tg3 *tp = netdev_priv(dev);
8094 static int tg3_test_nvram(struct tg3 *tp)
8211 static int tg3_test_link(struct tg3 *tp)
8235 static int tg3_test_registers(struct tg3 *tp)
8455 static int tg3_do_mem_test(struct tg3 *tp, u32 offset, u32 len)
8474 static int tg3_test_memory(struct tg3 *tp)
8533 static int tg3_run_loopback(struct tg3 *tp, int loopback_mode)
8702 static int tg3_test_loopback(struct tg3 *tp)
8726 struct tg3 *tp = netdev_priv(dev);
8799 struct tg3 *tp = netdev_priv(dev);
8851 struct tg3 *tp = netdev_priv(dev);
8872 struct tg3 *tp = netdev_priv(dev);
8880 struct tg3 *tp = netdev_priv(dev);
8970 static void __devinit tg3_get_eeprom_size(struct tg3 *tp)
9004 static void __devinit tg3_get_nvram_size(struct tg3 *tp)
9026 static void __devinit tg3_get_nvram_info(struct tg3 *tp)
9079 static void __devinit tg3_get_5752_nvram_info(struct tg3 *tp)
9140 static void __devinit tg3_get_5755_nvram_info(struct tg3 *tp)
9185 static void __devinit tg3_get_5787_nvram_info(struct tg3 *tp)
9223 static void __devinit tg3_get_5906_nvram_info(struct tg3 *tp)
9231 static void __devinit tg3_nvram_init(struct tg3 *tp)
9282 static int tg3_nvram_read_using_eeprom(struct tg3 *tp,
9318 static int tg3_nvram_exec_cmd(struct tg3 *tp, u32 nvram_cmd)
9336 static u32 tg3_nvram_phys_addr(struct tg3 *tp, u32 addr)
9350 static u32 tg3_nvram_logical_addr(struct tg3 *tp, u32 addr)
9364 static int tg3_nvram_read(struct tg3 *tp, u32 offset, u32 *val)
9396 static int tg3_nvram_read_swab(struct tg3 *tp, u32 offset, u32 *val)
9406 static int tg3_nvram_write_block_using_eeprom(struct tg3 *tp,
9449 static int tg3_nvram_write_block_unbuffered(struct tg3 *tp, u32 offset, u32 len,
9545 static int tg3_nvram_write_block_buffered(struct tg3 *tp, u32 offset, u32 len,
9596 static int tg3_nvram_write_block(struct tg3 *tp, u32 offset, u32 len, u8 *buf)
9693 static inline struct subsys_tbl_ent *lookup_by_subsys(struct tg3 *tp)
9707 static void __devinit tg3_get_eeprom_hw_cfg(struct tg3 *tp)
9727 * to succeed. Normally on powerup the tg3 chip firmware will make
9885 static int __devinit tg3_phy_probe(struct tg3 *tp)
10011 static void __devinit tg3_read_partno(struct tg3 *tp)
10111 static void __devinit tg3_read_fw_ver(struct tg3 *tp)
10151 static struct pci_dev * __devinit tg3_find_peer(struct tg3 *);
10153 static int __devinit tg3_get_invariants(struct tg3 *tp)
10698 static int __devinit tg3_get_macaddr_sparc(struct tg3 *tp)
10715 static int __devinit tg3_get_default_macaddr_sparc(struct tg3 *tp)
10725 static int __devinit tg3_get_device_address(struct tg3 *tp)
10803 static u32 __devinit tg3_calc_dma_bndry(struct tg3 *tp, u32 val)
10838 * Therefore, letting tg3 do so just wastes PCI bandwidth.
10940 static int __devinit tg3_do_test_dma(struct tg3 *tp, u32 *buf, dma_addr_t buf_dma, int size, int to_device)
10963 * the *second* time the tg3 driver was getting loaded after an
11023 static int __devinit tg3_test_dma(struct tg3 *tp)
11180 static void __devinit tg3_init_link_config(struct tg3 *tp)
11198 static void __devinit tg3_init_bufmgr_config(struct tg3 *tp)
11240 static char * __devinit tg3_phy_string(struct tg3 *tp)
11264 static char * __devinit tg3_bus_string(struct tg3 *tp, char *str)
11300 static struct pci_dev * __devinit tg3_find_peer(struct tg3 *tp)
11328 static void __devinit tg3_init_coal(struct tg3 *tp)
11365 struct tg3 *tp;
11684 struct tg3 *tp = netdev_priv(dev);
11702 struct tg3 *tp = netdev_priv(dev);
11751 struct tg3 *tp = netdev_priv(dev);