/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/wireless/bcm43xx/ |
H A D | bcm43xx_sysfs.h | 6 int bcm43xx_sysfs_register(struct bcm43xx_private *bcm); 7 void bcm43xx_sysfs_unregister(struct bcm43xx_private *bcm);
|
H A D | bcm43xx_radio.h | 56 void bcm43xx_radio_lock(struct bcm43xx_private *bcm); 57 void bcm43xx_radio_unlock(struct bcm43xx_private *bcm); 59 u16 bcm43xx_radio_read16(struct bcm43xx_private *bcm, u16 offset); 60 void bcm43xx_radio_write16(struct bcm43xx_private *bcm, u16 offset, u16 val); 62 u16 bcm43xx_radio_init2050(struct bcm43xx_private *bcm); 63 void bcm43xx_radio_init2060(struct bcm43xx_private *bcm); 65 void bcm43xx_radio_turn_on(struct bcm43xx_private *bcm); 66 void bcm43xx_radio_turn_off(struct bcm43xx_private *bcm); 69 int bcm43xx_is_hw_radio_enabled(struct bcm43xx_private *bcm) argument 74 if (bcm [all...] |
H A D | bcm43xx_power.h | 48 int bcm43xx_pctl_init(struct bcm43xx_private *bcm); 49 int bcm43xx_pctl_set_clock(struct bcm43xx_private *bcm, u16 mode); 50 int bcm43xx_pctl_set_crystal(struct bcm43xx_private *bcm, int on); 51 u16 bcm43xx_pctl_powerup_delay(struct bcm43xx_private *bcm); 53 void bcm43xx_power_saving_ctl_bits(struct bcm43xx_private *bcm,
|
H A D | bcm43xx_radio.c | 93 void bcm43xx_radio_lock(struct bcm43xx_private *bcm) argument 97 status = bcm43xx_read32(bcm, BCM43xx_MMIO_STATUS_BITFIELD); 99 bcm43xx_write32(bcm, BCM43xx_MMIO_STATUS_BITFIELD, status); 104 void bcm43xx_radio_unlock(struct bcm43xx_private *bcm) argument 108 bcm43xx_read16(bcm, BCM43xx_MMIO_PHY_VER); /* dummy read */ 109 status = bcm43xx_read32(bcm, BCM43xx_MMIO_STATUS_BITFIELD); 111 bcm43xx_write32(bcm, BCM43xx_MMIO_STATUS_BITFIELD, status); 115 u16 bcm43xx_radio_read16(struct bcm43xx_private *bcm, u16 offset) argument 117 struct bcm43xx_phyinfo *phy = bcm43xx_current_phy(bcm); 118 struct bcm43xx_radioinfo *radio = bcm43xx_current_radio(bcm); 144 bcm43xx_radio_write16(struct bcm43xx_private *bcm, u16 offset, u16 val) argument 151 bcm43xx_set_all_gains(struct bcm43xx_private *bcm, s16 first, s16 second, s16 third) argument 184 bcm43xx_set_original_gains(struct bcm43xx_private *bcm) argument 217 bcm43xx_synth_pu_workaround(struct bcm43xx_private *bcm, u8 channel) argument 237 bcm43xx_radio_aci_detect(struct bcm43xx_private *bcm, u8 channel) argument 268 bcm43xx_radio_aci_scan(struct bcm43xx_private *bcm) argument 317 bcm43xx_nrssi_hw_write(struct bcm43xx_private *bcm, u16 offset, s16 val) argument 325 bcm43xx_nrssi_hw_read(struct bcm43xx_private *bcm, u16 offset) argument 336 bcm43xx_nrssi_hw_update(struct bcm43xx_private *bcm, u16 val) argument 350 bcm43xx_nrssi_mem_update(struct bcm43xx_private *bcm) argument 366 bcm43xx_calc_nrssi_offset(struct bcm43xx_private *bcm) argument 531 bcm43xx_calc_nrssi_slope(struct bcm43xx_private *bcm) argument 779 bcm43xx_calc_nrssi_threshold(struct bcm43xx_private *bcm) argument 946 bcm43xx_radio_interference_mitigation_enable(struct bcm43xx_private *bcm, int mode) argument 1184 bcm43xx_radio_interference_mitigation_disable(struct bcm43xx_private *bcm, int mode) argument 1286 bcm43xx_radio_set_interference_mitigation(struct bcm43xx_private *bcm, int mode) argument 1331 bcm43xx_radio_calibrationvalue(struct bcm43xx_private *bcm) argument 1345 bcm43xx_get_812_value(struct bcm43xx_private *bcm, u8 lpd) argument 1443 bcm43xx_radio_init2050(struct bcm43xx_private *bcm) argument 1659 bcm43xx_radio_init2060(struct bcm43xx_private *bcm) argument 1715 bcm43xx_radio_set_tx_iq(struct bcm43xx_private *bcm) argument 1732 bcm43xx_radio_selectchannel(struct bcm43xx_private *bcm, u8 channel, int synthetic_pu_workaround) argument 1834 bcm43xx_radio_set_txantenna(struct bcm43xx_private *bcm, u32 val) argument 1914 bcm43xx_radio_set_txpower_a(struct bcm43xx_private *bcm, u16 txpower) argument 1945 bcm43xx_radio_set_txpower_bg(struct bcm43xx_private *bcm, u16 baseband_attenuation, u16 radio_attenuation, u16 txpower) argument 1981 bcm43xx_default_baseband_attenuation(struct bcm43xx_private *bcm) argument 1990 bcm43xx_default_radio_attenuation(struct bcm43xx_private *bcm) argument 2080 bcm43xx_default_txctl1(struct bcm43xx_private *bcm) argument 2095 bcm43xx_radio_turn_on(struct bcm43xx_private *bcm) argument 2128 bcm43xx_radio_turn_off(struct bcm43xx_private *bcm) argument 2149 bcm43xx_radio_clear_tssi(struct bcm43xx_private *bcm) argument [all...] |
H A D | bcm43xx_power.c | 39 static int bcm43xx_pctl_get_slowclksrc(struct bcm43xx_private *bcm) argument 44 assert(bcm->current_core == &bcm->core_chipcommon); 45 if (bcm->current_core->rev < 6) { 46 if (bcm->bustype == BCM43xx_BUSTYPE_PCMCIA || 47 bcm->bustype == BCM43xx_BUSTYPE_SB) 49 if (bcm->bustype == BCM43xx_BUSTYPE_PCI) { 50 err = bcm43xx_pci_read_config32(bcm, BCM43xx_PCTL_OUT, &tmp); 57 if (bcm->current_core->rev < 10) { 58 tmp = bcm43xx_read32(bcm, BCM43xx_CHIPCOMMON_SLOWCLKCT 74 bcm43xx_pctl_clockfreqlimit(struct bcm43xx_private *bcm, int get_max) argument 151 bcm43xx_pctl_init(struct bcm43xx_private *bcm) argument 192 bcm43xx_pctl_powerup_delay(struct bcm43xx_private *bcm) argument 223 bcm43xx_pctl_set_clock(struct bcm43xx_private *bcm, u16 mode) argument 273 bcm43xx_pctl_set_crystal(struct bcm43xx_private *bcm, int on) argument 344 bcm43xx_power_saving_ctl_bits(struct bcm43xx_private *bcm, int bit25, int bit26) argument [all...] |
H A D | bcm43xx_phy.h | 38 void bcm43xx_raw_phy_lock(struct bcm43xx_private *bcm); 39 #define bcm43xx_phy_lock(bcm, flags) \ 42 bcm43xx_raw_phy_lock(bcm); \ 44 void bcm43xx_raw_phy_unlock(struct bcm43xx_private *bcm); 45 #define bcm43xx_phy_unlock(bcm, flags) \ 47 bcm43xx_raw_phy_unlock(bcm); \ 55 u16 bcm43xx_phy_read(struct bcm43xx_private *bcm, u16 offset); 56 void bcm43xx_phy_write(struct bcm43xx_private *bcm, u16 offset, u16 val); 58 int bcm43xx_phy_init_tssi2dbm_table(struct bcm43xx_private *bcm); 59 int bcm43xx_phy_init(struct bcm43xx_private *bcm); [all...] |
H A D | bcm43xx_main.c | 145 static void bcm43xx_ram_write(struct bcm43xx_private *bcm, u16 offset, u32 val) argument 149 status = bcm43xx_read32(bcm, BCM43xx_MMIO_STATUS_BITFIELD); 153 bcm43xx_write32(bcm, BCM43xx_MMIO_RAM_CONTROL, offset); 155 bcm43xx_write32(bcm, BCM43xx_MMIO_RAM_DATA, val); 159 void bcm43xx_shm_control_word(struct bcm43xx_private *bcm, argument 169 bcm43xx_write32(bcm, BCM43xx_MMIO_SHM_CONTROL, control); 172 u32 bcm43xx_shm_read32(struct bcm43xx_private *bcm, argument 180 bcm43xx_shm_control_word(bcm, routing, offset >> 2); 181 ret = bcm43xx_read16(bcm, BCM43xx_MMIO_SHM_DATA_UNALIGNED); 183 bcm43xx_shm_control_word(bcm, routin 196 bcm43xx_shm_read16(struct bcm43xx_private *bcm, u16 routing, u16 offset) argument 217 bcm43xx_shm_write32(struct bcm43xx_private *bcm, u16 routing, u16 offset, u32 value) argument 242 bcm43xx_shm_write16(struct bcm43xx_private *bcm, u16 routing, u16 offset, u16 value) argument 262 bcm43xx_tsf_read(struct bcm43xx_private *bcm, u64 *tsf) argument 310 bcm43xx_tsf_write(struct bcm43xx_private *bcm, u64 tsf) argument 355 bcm43xx_macfilter_set(struct bcm43xx_private *bcm, u16 offset, const u8 *mac) argument 375 bcm43xx_macfilter_clear(struct bcm43xx_private *bcm, u16 offset) argument 383 bcm43xx_write_mac_bssid_templates(struct bcm43xx_private *bcm) argument 407 bcm43xx_interrupt_enable(struct bcm43xx_private *bcm, u32 mask) argument 420 bcm43xx_interrupt_disable(struct bcm43xx_private *bcm, u32 mask) argument 434 bcm43xx_synchronize_irq(struct bcm43xx_private *bcm) argument 441 bcm43xx_disable_interrupts_sync(struct bcm43xx_private *bcm) argument 458 bcm43xx_read_radioinfo(struct bcm43xx_private *bcm) argument 639 bcm43xx_sprom_read(struct bcm43xx_private *bcm, u16 *sprom) argument 659 bcm43xx_sprom_write(struct bcm43xx_private *bcm, const u16 *sprom) argument 714 bcm43xx_sprom_extract(struct bcm43xx_private *bcm) argument 845 bcm43xx_geo_init(struct bcm43xx_private *bcm) argument 929 bcm43xx_dummy_transmission(struct bcm43xx_private *bcm) argument 998 key_write(struct bcm43xx_private *bcm, u8 index, u8 algorithm, const u16 *key) argument 1030 keymac_write(struct bcm43xx_private *bcm, u8 index, const u32 *addr) argument 1058 bcm43xx_key_write(struct bcm43xx_private *bcm, u8 index, u8 algorithm, const u8 *_key, int key_len, const u8 *mac_addr) argument 1081 bcm43xx_clear_keys(struct bcm43xx_private *bcm) argument 1109 _switch_core(struct bcm43xx_private *bcm, int core) argument 1140 bcm43xx_switch_core(struct bcm43xx_private *bcm, struct bcm43xx_coreinfo *new_core) argument 1159 bcm43xx_core_enabled(struct bcm43xx_private *bcm) argument 1171 bcm43xx_core_disable(struct bcm43xx_private *bcm, u32 core_flags) argument 1236 bcm43xx_core_enable(struct bcm43xx_private *bcm, u32 core_flags) argument 1283 bcm43xx_wireless_core_reset(struct bcm43xx_private *bcm, int connect_phy) argument 1306 bcm43xx_wireless_core_disable(struct bcm43xx_private *bcm) argument 1314 bcm43xx_wireless_core_mark_inactive(struct bcm43xx_private *bcm) argument 1332 handle_irq_transmit_status(struct bcm43xx_private *bcm) argument 1366 drain_txstatus_queue(struct bcm43xx_private *bcm) argument 1383 bcm43xx_generate_noise_sample(struct bcm43xx_private *bcm) argument 1393 bcm43xx_calculate_link_quality(struct bcm43xx_private *bcm) argument 1407 handle_irq_noise(struct bcm43xx_private *bcm) argument 1475 handle_irq_ps(struct bcm43xx_private *bcm) argument 1487 handle_irq_reg124(struct bcm43xx_private *bcm) argument 1496 handle_irq_pmq(struct bcm43xx_private *bcm) argument 1511 bcm43xx_generate_beacon_template(struct bcm43xx_private *bcm, u16 ram_offset, u16 shm_size_offset) argument 1551 handle_irq_beacon(struct bcm43xx_private *bcm) argument 1578 bcm43xx_interrupt_tasklet(struct bcm43xx_private *bcm) argument 1710 pio_irq_workaround(struct bcm43xx_private *bcm, u16 base, int queueidx) argument 1722 bcm43xx_interrupt_ack(struct bcm43xx_private *bcm, u32 reason) argument 1753 struct bcm43xx_private *bcm = dev_id; local 1802 bcm43xx_release_firmware(struct bcm43xx_private *bcm, int force) argument 1818 bcm43xx_request_firmware(struct bcm43xx_private *bcm) argument 1944 bcm43xx_upload_microcode(struct bcm43xx_private *bcm) argument 1973 bcm43xx_write_initvals(struct bcm43xx_private *bcm, const struct bcm43xx_initval *data, const unsigned int len) argument 2006 bcm43xx_upload_initvals(struct bcm43xx_private *bcm) argument 2025 bcm43xx_initialize_irq(struct bcm43xx_private *bcm) argument 2041 switch_to_gpio_core(struct bcm43xx_private *bcm) argument 2065 bcm43xx_gpio_init(struct bcm43xx_private *bcm) argument 2114 bcm43xx_gpio_cleanup(struct bcm43xx_private *bcm) argument 2131 bcm43xx_mac_enable(struct bcm43xx_private *bcm) argument 2147 bcm43xx_mac_suspend(struct bcm43xx_private *bcm) argument 2171 bcm43xx_set_iwmode(struct bcm43xx_private *bcm, int iw_mode) argument 2231 bcm43xx_chip_cleanup(struct bcm43xx_private *bcm) argument 2243 bcm43xx_chip_init(struct bcm43xx_private *bcm) argument 2403 bcm43xx_validate_chip(struct bcm43xx_private *bcm) argument 2452 bcm43xx_probe_cores(struct bcm43xx_private *bcm) argument 2659 bcm43xx_gen_bssid(struct bcm43xx_private *bcm) argument 2680 bcm43xx_rate_memory_write(struct bcm43xx_private *bcm, u16 rate, int is_ofdm) argument 2698 bcm43xx_rate_memory_init(struct bcm43xx_private *bcm) argument 2721 bcm43xx_wireless_core_cleanup(struct bcm43xx_private *bcm) argument 2731 bcm43xx_wireless_core_init(struct bcm43xx_private *bcm, int active_wlcore) argument 2844 bcm43xx_chipset_attach(struct bcm43xx_private *bcm) argument 2861 bcm43xx_chipset_detach(struct bcm43xx_private *bcm) argument 2867 bcm43xx_pcicore_broadcast_value(struct bcm43xx_private *bcm, u32 address, u32 data) argument 2875 bcm43xx_pcicore_commit_settings(struct bcm43xx_private *bcm) argument 2901 bcm43xx_pcie_reg_read(struct bcm43xx_private *bcm, u32 address) argument 2907 bcm43xx_pcie_reg_write(struct bcm43xx_private *bcm, u32 address, u32 data) argument 2914 bcm43xx_pcie_mdio_write(struct bcm43xx_private *bcm, u8 dev, u8 reg, u16 data) argument 2938 bcm43xx_setup_backplane_pci_connection(struct bcm43xx_private *bcm, u32 core_mask) argument 3019 bcm43xx_periodic_every120sec(struct bcm43xx_private *bcm) argument 3031 bcm43xx_periodic_every60sec(struct bcm43xx_private *bcm) argument 3041 bcm43xx_periodic_every30sec(struct bcm43xx_private *bcm) argument 3047 bcm43xx_periodic_every15sec(struct bcm43xx_private *bcm) argument 3053 bcm43xx_periodic_every1sec(struct bcm43xx_private *bcm) argument 3091 do_periodic_work(struct bcm43xx_private *bcm) argument 3108 struct bcm43xx_private *bcm = local 3164 bcm43xx_periodic_tasks_delete(struct bcm43xx_private *bcm) argument 3169 bcm43xx_periodic_tasks_setup(struct bcm43xx_private *bcm) argument 3178 bcm43xx_security_init(struct bcm43xx_private *bcm) argument 3187 struct bcm43xx_private *bcm = (struct bcm43xx_private *)rng->priv; local 3197 bcm43xx_rng_exit(struct bcm43xx_private *bcm) argument 3202 bcm43xx_rng_init(struct bcm43xx_private *bcm) argument 3218 bcm43xx_shutdown_all_wireless_cores(struct bcm43xx_private *bcm) argument 3250 bcm43xx_free_board(struct bcm43xx_private *bcm) argument 3279 prepare_radiodata_for_init(struct bcm43xx_private *bcm, struct bcm43xx_radioinfo *radio) argument 3306 prepare_priv_for_init(struct bcm43xx_private *bcm) argument 3350 wireless_core_up(struct bcm43xx_private *bcm, int active_wlcore) argument 3372 bcm43xx_select_wireless_core(struct bcm43xx_private *bcm, int phytype) argument 3502 bcm43xx_init_board(struct bcm43xx_private *bcm) argument 3544 bcm43xx_detach_board(struct bcm43xx_private *bcm) argument 3563 bcm43xx_read_phyinfo(struct bcm43xx_private *bcm) argument 3632 bcm43xx_attach_board(struct bcm43xx_private *bcm) argument 3766 bcm43xx_tx(struct bcm43xx_private *bcm, struct ieee80211_txb *txb) argument 3783 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 3805 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 3891 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 3907 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 3918 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 3930 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 3937 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 3949 bcm43xx_init_private(struct bcm43xx_private *bcm, struct net_device *net_dev, struct pci_dev *pci_dev) argument 3991 struct bcm43xx_private *bcm; local 4058 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 4071 struct bcm43xx_private *bcm = local 4094 bcm43xx_controller_restart(struct bcm43xx_private *bcm, const char *reason) argument 4108 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 4141 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local [all...] |
H A D | bcm43xx_main.h | 61 u8 bcm43xx_freq_to_channel(struct bcm43xx_private *bcm, argument 64 if (bcm43xx_current_phy(bcm)->type == BCM43xx_PHYTYPE_A) 88 int bcm43xx_channel_to_freq(struct bcm43xx_private *bcm, argument 91 if (bcm43xx_current_phy(bcm)->type == BCM43xx_PHYTYPE_A) 96 void bcm43xx_tsf_read(struct bcm43xx_private *bcm, u64 *tsf); 97 void bcm43xx_tsf_write(struct bcm43xx_private *bcm, u64 tsf); 99 void bcm43xx_set_iwmode(struct bcm43xx_private *bcm, 102 u32 bcm43xx_shm_read32(struct bcm43xx_private *bcm, 104 u16 bcm43xx_shm_read16(struct bcm43xx_private *bcm, 106 void bcm43xx_shm_write32(struct bcm43xx_private *bcm, [all...] |
H A D | bcm43xx_phy.c | 81 static void bcm43xx_phy_initg(struct bcm43xx_private *bcm); 94 void bcm43xx_raw_phy_lock(struct bcm43xx_private *bcm) argument 96 struct bcm43xx_phyinfo *phy = bcm43xx_current_phy(bcm); 99 if (bcm43xx_read32(bcm, BCM43xx_MMIO_STATUS_BITFIELD) == 0x00000000) { 103 if (bcm->current_core->rev < 3) { 104 bcm43xx_mac_suspend(bcm); 107 if (bcm->ieee->iw_mode != IW_MODE_MASTER) 108 bcm43xx_power_saving_ctl_bits(bcm, -1, 1); 113 void bcm43xx_raw_phy_unlock(struct bcm43xx_private *bcm) argument 115 struct bcm43xx_phyinfo *phy = bcm43xx_current_phy(bcm); 130 bcm43xx_phy_read(struct bcm43xx_private *bcm, u16 offset) argument 136 bcm43xx_phy_write(struct bcm43xx_private *bcm, u16 offset, u16 val) argument 143 bcm43xx_phy_calibrate(struct bcm43xx_private *bcm) argument 161 bcm43xx_phy_connect(struct bcm43xx_private *bcm, int connect) argument 196 bcm43xx_phy_init_pctl(struct bcm43xx_private *bcm) argument 246 bcm43xx_phy_agcsetup(struct bcm43xx_private *bcm) argument 333 bcm43xx_phy_setupg(struct bcm43xx_private *bcm) argument 428 bcm43xx_phy_init_noisescaletbl(struct bcm43xx_private *bcm) argument 456 bcm43xx_phy_setupa(struct bcm43xx_private *bcm) argument 572 bcm43xx_phy_inita(struct bcm43xx_private *bcm) argument 630 bcm43xx_phy_initb2(struct bcm43xx_private *bcm) argument 681 bcm43xx_phy_initb4(struct bcm43xx_private *bcm) argument 739 bcm43xx_phy_initb5(struct bcm43xx_private *bcm) argument 846 bcm43xx_phy_initb6(struct bcm43xx_private *bcm) argument 982 bcm43xx_calc_loopback_gain(struct bcm43xx_private *bcm) argument 1183 bcm43xx_phy_initg(struct bcm43xx_private *bcm) argument 1292 bcm43xx_phy_lo_b_r15_loop(struct bcm43xx_private *bcm) argument 1314 bcm43xx_phy_lo_b_measure(struct bcm43xx_private *bcm) argument 1408 bcm43xx_phy_lo_g_deviation_subval(struct bcm43xx_private *bcm, u16 control) argument 1441 bcm43xx_phy_lo_g_singledeviation(struct bcm43xx_private *bcm, u16 control) argument 1454 bcm43xx_lo_write(struct bcm43xx_private *bcm, struct bcm43xx_lopair *pair) argument 1479 bcm43xx_find_lopair(struct bcm43xx_private *bcm, u16 baseband_attenuation, u16 radio_attenuation, u16 tx) argument 1500 bcm43xx_current_lopair(struct bcm43xx_private *bcm) argument 1511 bcm43xx_phy_lo_adjust(struct bcm43xx_private *bcm, int fixed) argument 1523 bcm43xx_phy_lo_g_measure_txctl2(struct bcm43xx_private *bcm) argument 1545 bcm43xx_phy_lo_g_state(struct bcm43xx_private *bcm, const struct bcm43xx_lopair *in_pair, struct bcm43xx_lopair *out_pair, u16 r27) argument 1628 bcm43xx_phy_set_baseband_attenuation(struct bcm43xx_private *bcm, u16 baseband_attenuation) argument 1652 bcm43xx_phy_lo_g_measure(struct bcm43xx_private *bcm) argument 1874 bcm43xx_phy_lo_mark_current_used(struct bcm43xx_private *bcm) argument 1882 bcm43xx_phy_lo_mark_all_unused(struct bcm43xx_private *bcm) argument 1897 bcm43xx_phy_estimate_power_out(struct bcm43xx_private *bcm, s8 tssi) argument 1927 bcm43xx_phy_xmitpower(struct bcm43xx_private *bcm) argument 2109 bcm43xx_phy_init_tssi2dbm_table(struct bcm43xx_private *bcm) argument 2188 bcm43xx_phy_init(struct bcm43xx_private *bcm) argument 2231 bcm43xx_phy_set_antenna_diversity(struct bcm43xx_private *bcm) argument [all...] |
H A D | bcm43xx_leds.c | 37 struct bcm43xx_private *bcm = led->bcm; local 44 ledctl = bcm43xx_read16(bcm, BCM43xx_MMIO_GPIO_CONTROL); 46 bcm43xx_write16(bcm, BCM43xx_MMIO_GPIO_CONTROL, ledctl); 52 struct bcm43xx_private *bcm = led->bcm; local 55 spin_lock_irqsave(&bcm->leds_lock, flags); 60 spin_unlock_irqrestore(&bcm->leds_lock, flags); 76 struct bcm43xx_private *bcm = led->bcm; local 98 bcm43xx_led_init_hardcoded(struct bcm43xx_private *bcm, struct bcm43xx_led *led, int led_index) argument 132 bcm43xx_leds_init(struct bcm43xx_private *bcm) argument 161 bcm43xx_leds_exit(struct bcm43xx_private *bcm) argument 173 bcm43xx_leds_update(struct bcm43xx_private *bcm, int activity) argument 282 bcm43xx_leds_switch_all(struct bcm43xx_private *bcm, int on) argument [all...] |
H A D | bcm43xx_wx.c | 55 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 61 mutex_lock(&bcm->mutex); 62 for (i = 0; i < bcm->nr_80211_available; i++) { 63 phy = &(bcm->core_80211_ext[i].phy); 77 mutex_unlock(&bcm->mutex); 105 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 112 mutex_lock(&bcm->mutex); 113 spin_lock_irqsave(&bcm->irq_lock, flags); 118 freq = bcm43xx_channel_to_freq(bcm, channel); 125 channel = bcm43xx_freq_to_channel(bcm, fre 150 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 180 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 206 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 220 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 318 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 335 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 353 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 380 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 396 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 423 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 439 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 487 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 513 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 526 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 539 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 552 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 565 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 617 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 647 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 666 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 687 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 710 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 764 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 797 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local 844 struct bcm43xx_private *bcm = bcm43xx_priv(net_dev); local [all...] |
H A D | bcm43xx_leds.h | 12 struct bcm43xx_private *bcm; member in struct:bcm43xx_led 16 #define bcm43xx_led_index(led) ((int)((led) - (led)->bcm->leds)) 57 int bcm43xx_leds_init(struct bcm43xx_private *bcm); 58 void bcm43xx_leds_exit(struct bcm43xx_private *bcm); 59 void bcm43xx_leds_update(struct bcm43xx_private *bcm, int activity); 60 void bcm43xx_leds_switch_all(struct bcm43xx_private *bcm, int on);
|
H A D | bcm43xx_pio.h | 53 struct bcm43xx_private *bcm; member in struct:bcm43xx_pioqueue 91 return bcm43xx_read16(queue->bcm, queue->mmio_base + offset); 98 bcm43xx_write16(queue->bcm, queue->mmio_base + offset, value); 103 int bcm43xx_pio_init(struct bcm43xx_private *bcm); 104 void bcm43xx_pio_free(struct bcm43xx_private *bcm); 106 int bcm43xx_pio_tx(struct bcm43xx_private *bcm, 108 void bcm43xx_pio_handle_xmitstatus(struct bcm43xx_private *bcm, 116 void bcm43xx_pio_freeze_txqueues(struct bcm43xx_private *bcm); 117 void bcm43xx_pio_thaw_txqueues(struct bcm43xx_private *bcm); 122 int bcm43xx_pio_init(struct bcm43xx_private *bcm) argument 127 bcm43xx_pio_free(struct bcm43xx_private *bcm) argument 131 bcm43xx_pio_tx(struct bcm43xx_private *bcm, struct ieee80211_txb *txb) argument 137 bcm43xx_pio_handle_xmitstatus(struct bcm43xx_private *bcm, struct bcm43xx_xmitstatus *status) argument 154 bcm43xx_pio_freeze_txqueues(struct bcm43xx_private *bcm) argument 158 bcm43xx_pio_thaw_txqueues(struct bcm43xx_private *bcm) argument [all...] |
H A D | bcm43xx_sysfs.c | 110 struct bcm43xx_private *bcm = dev_to_bcm(dev); local 123 mutex_lock(&bcm->mutex); 124 spin_lock_irqsave(&bcm->irq_lock, flags); 125 err = bcm43xx_sprom_read(bcm, sprom); 129 spin_unlock_irqrestore(&bcm->irq_lock, flags); 130 mutex_unlock(&bcm->mutex); 140 struct bcm43xx_private *bcm = dev_to_bcm(dev); local 155 mutex_lock(&bcm->mutex); 156 spin_lock_irqsave(&bcm->irq_lock, flags); 157 spin_lock(&bcm 178 struct bcm43xx_private *bcm = dev_to_bcm(dev); local 210 struct bcm43xx_private *bcm = dev_to_bcm(dev); local 259 struct bcm43xx_private *bcm = dev_to_bcm(dev); local 281 struct bcm43xx_private *bcm = dev_to_bcm(dev); local 310 struct bcm43xx_private *bcm = dev_to_bcm(dev); local 347 struct bcm43xx_private *bcm = dev_to_bcm(dev); local 378 struct bcm43xx_private *bcm = dev_to_bcm(dev); local 426 bcm43xx_sysfs_register(struct bcm43xx_private *bcm) argument 462 bcm43xx_sysfs_unregister(struct bcm43xx_private *bcm) argument [all...] |
H A D | bcm43xx_debugfs.c | 68 struct bcm43xx_private *bcm = file->private_data; local 80 mutex_lock(&bcm->mutex); 81 spin_lock_irqsave(&bcm->irq_lock, flags); 82 if (bcm43xx_status(bcm) != BCM43xx_STAT_INITIALIZED) { 86 net_dev = bcm->net_dev; 87 pci_dev = bcm->pci_dev; 95 fappend("IRQ: %d\n", bcm->irq); 96 fappend("mmio_addr: 0x%p\n", bcm->mmio_addr); 97 fappend("chip_id: 0x%04x chip_rev: 0x%02x\n", bcm->chip_id, bcm 157 struct bcm43xx_private *bcm = file->private_data; local 187 struct bcm43xx_private *bcm = file->private_data; local 217 struct bcm43xx_private *bcm = file->private_data; local 259 struct bcm43xx_private *bcm = file->private_data; local 322 struct bcm43xx_private *bcm = file->private_data; local 394 bcm43xx_debugfs_add_device(struct bcm43xx_private *bcm) argument 450 bcm43xx_debugfs_remove_device(struct bcm43xx_private *bcm) argument 470 bcm43xx_debugfs_log_txstat(struct bcm43xx_private *bcm, struct bcm43xx_xmitstatus *status) argument [all...] |
H A D | bcm43xx_debugfs.h | 25 struct bcm43xx_private *bcm; member in struct:bcm43xx_dfsentry 48 void bcm43xx_debugfs_add_device(struct bcm43xx_private *bcm); 49 void bcm43xx_debugfs_remove_device(struct bcm43xx_private *bcm); 50 void bcm43xx_debugfs_log_txstat(struct bcm43xx_private *bcm, 76 void bcm43xx_debugfs_add_device(struct bcm43xx_private *bcm) { } argument 78 void bcm43xx_debugfs_remove_device(struct bcm43xx_private *bcm) { } argument 80 void bcm43xx_debugfs_log_txstat(struct bcm43xx_private *bcm, argument
|
H A D | bcm43xx_ilt.h | 29 void bcm43xx_ilt_write(struct bcm43xx_private *bcm, u16 offset, u16 val); 30 void bcm43xx_ilt_write32(struct bcm43xx_private *bcm, u16 offset, u32 val); 31 u16 bcm43xx_ilt_read(struct bcm43xx_private *bcm, u16 offset);
|
H A D | bcm43xx_ethtool.c | 40 struct bcm43xx_private *bcm = bcm43xx_priv(dev); local 44 strncpy(info->bus_info, pci_name(bcm->pci_dev), ETHTOOL_BUSINFO_LEN);
|
H A D | bcm43xx_pio.c | 148 struct bcm43xx_pioqueue * parse_cookie(struct bcm43xx_private *bcm, argument 152 struct bcm43xx_pio *pio = bcm43xx_current_pio(bcm); 187 bcm43xx_generate_txhdr(queue->bcm, 259 struct bcm43xx_private *bcm = queue->bcm; local 265 spin_lock_irqsave(&bcm->irq_lock, flags); 303 spin_unlock_irqrestore(&bcm->irq_lock, flags); 323 struct bcm43xx_pioqueue * bcm43xx_setup_pioqueue(struct bcm43xx_private *bcm, argument 334 queue->bcm = bcm; 396 bcm43xx_pio_free(struct bcm43xx_private *bcm) argument 414 bcm43xx_pio_init(struct bcm43xx_private *bcm) argument 460 bcm43xx_pio_tx(struct bcm43xx_private *bcm, struct ieee80211_txb *txb) argument 488 bcm43xx_pio_handle_xmitstatus(struct bcm43xx_private *bcm, struct bcm43xx_xmitstatus *status) argument 636 bcm43xx_pio_freeze_txqueues(struct bcm43xx_private *bcm) argument 648 bcm43xx_pio_thaw_txqueues(struct bcm43xx_private *bcm) argument [all...] |
H A D | bcm43xx_xmit.c | 271 void bcm43xx_generate_txhdr(struct bcm43xx_private *bcm, argument 278 const struct bcm43xx_phyinfo *phy = bcm43xx_current_phy(bcm); 280 const struct ieee80211_security *secinfo = &bcm->ieee->sec; 296 bitrate = ieee80211softmac_suggest_txrate(bcm->softmac, 317 if (encrypt_frame && !bcm->ieee->host_encrypt) { 323 wsec_rate |= (bcm->key[secinfo->active_key].algorithm << BCM43xx_TXHDR_WSEC_ALGO_SHIFT) 339 if (bcm->short_preamble) 371 static s8 bcm43xx_rssi_postprocess(struct bcm43xx_private *bcm, argument 375 struct bcm43xx_radioinfo *radio = bcm43xx_current_radio(bcm); 376 struct bcm43xx_phyinfo *phy = bcm43xx_current_phy(bcm); 434 bcm43xx_rx(struct bcm43xx_private *bcm, struct sk_buff *skb, struct bcm43xx_rxhdr *rxhdr) argument [all...] |
H A D | bcm43xx.h | 719 #define bcm43xx_status(bcm) atomic_read(&(bcm)->init_status) 720 #define bcm43xx_set_status(bcm, stat) do { \ 721 atomic_set(&(bcm)->init_status, (stat)); \ 728 * => bcm->mutex: General sleeping mutex. Protects struct bcm43xx_private 731 * => bcm->irq_lock: IRQ spinlock. Protects against IRQ handler concurrency. 854 struct bcm43xx_private *bcm; local 857 bcm = bcm43xx_priv(net_dev); 859 return bcm; 868 int bcm43xx_using_pio(struct bcm43xx_private *bcm) argument 874 bcm43xx_using_pio(struct bcm43xx_private *bcm) argument 880 bcm43xx_using_pio(struct bcm43xx_private *bcm) argument 894 bcm43xx_current_80211_priv(struct bcm43xx_private *bcm) argument 900 bcm43xx_current_pio(struct bcm43xx_private *bcm) argument 906 bcm43xx_current_dma(struct bcm43xx_private *bcm) argument 912 bcm43xx_current_phy(struct bcm43xx_private *bcm) argument 917 bcm43xx_current_radio(struct bcm43xx_private *bcm) argument 933 bcm43xx_read16(struct bcm43xx_private *bcm, u16 offset) argument 939 bcm43xx_write16(struct bcm43xx_private *bcm, u16 offset, u16 value) argument 945 bcm43xx_read32(struct bcm43xx_private *bcm, u16 offset) argument 951 bcm43xx_write32(struct bcm43xx_private *bcm, u16 offset, u32 value) argument 957 bcm43xx_pci_read_config16(struct bcm43xx_private *bcm, int offset, u16 *value) argument 963 bcm43xx_pci_read_config32(struct bcm43xx_private *bcm, int offset, u32 *value) argument 969 bcm43xx_pci_write_config16(struct bcm43xx_private *bcm, int offset, u16 value) argument 975 bcm43xx_pci_write_config32(struct bcm43xx_private *bcm, int offset, u32 value) argument [all...] |
H A D | bcm43xx_dma.h | 245 struct bcm43xx_private *bcm; member in struct:bcm43xx_dmaring 285 return bcm43xx_read32(ring->bcm, ring->mmio_base + offset); 292 bcm43xx_write32(ring->bcm, ring->mmio_base + offset, value); 296 int bcm43xx_dma_init(struct bcm43xx_private *bcm); 297 void bcm43xx_dma_free(struct bcm43xx_private *bcm); 299 int bcm43xx_dmacontroller_rx_reset(struct bcm43xx_private *bcm, 302 int bcm43xx_dmacontroller_tx_reset(struct bcm43xx_private *bcm, 311 void bcm43xx_dma_handle_xmitstatus(struct bcm43xx_private *bcm, 314 int bcm43xx_dma_tx(struct bcm43xx_private *bcm, 320 u64 bcm43xx_get_supported_dma_mask(struct bcm43xx_private *bcm) argument 339 bcm43xx_dma_init(struct bcm43xx_private *bcm) argument 344 bcm43xx_dma_free(struct bcm43xx_private *bcm) argument 348 bcm43xx_dmacontroller_rx_reset(struct bcm43xx_private *bcm, u16 dmacontroller_mmio_base, int dma64) argument 355 bcm43xx_dmacontroller_tx_reset(struct bcm43xx_private *bcm, u16 dmacontroller_mmio_base, int dma64) argument 362 bcm43xx_dma_tx(struct bcm43xx_private *bcm, struct ieee80211_txb *txb) argument 368 bcm43xx_dma_handle_xmitstatus(struct bcm43xx_private *bcm, struct bcm43xx_xmitstatus *status) argument [all...] |
H A D | bcm43xx_dma.c | 82 netif_stop_queue(ring->bcm->net_dev); 107 netif_wake_queue(ring->bcm->net_dev); 153 dmaaddr = pci_map_single(ring->bcm->pci_dev, 167 pci_unmap_single(ring->bcm->pci_dev, 171 pci_unmap_single(ring->bcm->pci_dev, 184 pci_dma_sync_single_for_cpu(ring->bcm->pci_dev, 195 pci_dma_sync_single_for_cpu(ring->bcm->pci_dev, 215 ring->descbase = pci_alloc_consistent(ring->bcm->pci_dev, BCM43xx_DMA_RINGMEMSIZE, 228 rx_ring_dma = pci_map_single(ring->bcm->pci_dev, rx_ring, 233 rx_ring_dma + BCM43xx_DMA_RINGMEMSIZE > ring->bcm 273 bcm43xx_dmacontroller_rx_reset(struct bcm43xx_private *bcm, u16 mmio_base, int dma64) argument 309 bcm43xx_dmacontroller_tx_reset(struct bcm43xx_private *bcm, u16 mmio_base, int dma64) argument 636 bcm43xx_setup_dmaring(struct bcm43xx_private *bcm, int controller_index, int for_tx, int dma64) argument 728 bcm43xx_dma_free(struct bcm43xx_private *bcm) argument 755 bcm43xx_dma_init(struct bcm43xx_private *bcm) argument 897 parse_cookie(struct bcm43xx_private *bcm, u16 cookie, int *slot) argument 1011 bcm43xx_dma_tx(struct bcm43xx_private *bcm, struct ieee80211_txb *txb) argument 1044 bcm43xx_dma_handle_xmitstatus(struct bcm43xx_private *bcm, struct bcm43xx_xmitstatus *status) argument [all...] |
H A D | bcm43xx_ilt.c | 315 void bcm43xx_ilt_write(struct bcm43xx_private *bcm, u16 offset, u16 val) argument 317 if (bcm43xx_current_phy(bcm)->type == BCM43xx_PHYTYPE_A) { 318 bcm43xx_phy_write(bcm, BCM43xx_PHY_ILT_A_CTRL, offset); 320 bcm43xx_phy_write(bcm, BCM43xx_PHY_ILT_A_DATA1, val); 322 bcm43xx_phy_write(bcm, BCM43xx_PHY_ILT_G_CTRL, offset); 324 bcm43xx_phy_write(bcm, BCM43xx_PHY_ILT_G_DATA1, val); 328 void bcm43xx_ilt_write32(struct bcm43xx_private *bcm, u16 offset, u32 val) argument 330 if (bcm43xx_current_phy(bcm)->type == BCM43xx_PHYTYPE_A) { 331 bcm43xx_phy_write(bcm, BCM43xx_PHY_ILT_A_CTRL, offset); 333 bcm43xx_phy_write(bcm, BCM43xx_PHY_ILT_A_DATA 343 bcm43xx_ilt_read(struct bcm43xx_private *bcm, u16 offset) argument [all...] |
H A D | bcm43xx_xmit.h | 81 void bcm43xx_generate_txhdr(struct bcm43xx_private *bcm, 144 int bcm43xx_rx(struct bcm43xx_private *bcm,
|