Lines Matching refs:D11REGOFFS

396 			      D11REGOFFS(maccontrol));  in brcms_deviceremoved()
602 bcma_write16(core, D11REGOFFS(ifs_slot), 0x0207); in brcms_b_update_slot_timing()
606 bcma_write16(core, D11REGOFFS(ifs_slot), 0x0212); in brcms_b_update_slot_timing()
816 D11REGOFFS(maccontrol)); in brcms_c_setband_inact()
1039 s1 = bcma_read32(core, D11REGOFFS(frmtxstatus)); in brcms_b_txstatus()
1050 s2 = bcma_read32(core, D11REGOFFS(frmtxstatus2)); in brcms_b_txstatus()
1246 D11REGOFFS(clk_ctl_st), in brcms_b_clkctl_clk()
1253 D11REGOFFS(clk_ctl_st)) & in brcms_b_clkctl_clk()
1257 D11REGOFFS(clk_ctl_st)) & in brcms_b_clkctl_clk()
1262 D11REGOFFS(clk_ctl_st)) & in brcms_b_clkctl_clk()
1271 D11REGOFFS(clk_ctl_st), in brcms_b_clkctl_clk()
1403 bcma_write32(wlc_hw->d11core, D11REGOFFS(maccontrol), in brcms_c_mctrl_write()
1510 bcma_write16(core, D11REGOFFS(rcm_ctl), in brcms_b_set_addrmatch()
1512 bcma_write16(core, D11REGOFFS(rcm_mat_data), mac_l); in brcms_b_set_addrmatch()
1513 bcma_write16(core, D11REGOFFS(rcm_mat_data), mac_m); in brcms_b_set_addrmatch()
1514 bcma_write16(core, D11REGOFFS(rcm_mat_data), mac_h); in brcms_b_set_addrmatch()
1528 bcma_write32(core, D11REGOFFS(tplatewrptr), offset); in brcms_b_write_template_ram()
1534 be_bit = (bcma_read32(core, D11REGOFFS(maccontrol)) & MCTL_BIGEND) != 0; in brcms_b_write_template_ram()
1547 bcma_write32(core, D11REGOFFS(tplatewrdata), word); in brcms_b_write_template_ram()
1558 bcma_write32(wlc_hw->d11core, D11REGOFFS(objaddr), in brcms_b_set_cwmin()
1560 (void)bcma_read32(wlc_hw->d11core, D11REGOFFS(objaddr)); in brcms_b_set_cwmin()
1561 bcma_write32(wlc_hw->d11core, D11REGOFFS(objdata), newmin); in brcms_b_set_cwmin()
1568 bcma_write32(wlc_hw->d11core, D11REGOFFS(objaddr), in brcms_b_set_cwmax()
1570 (void)bcma_read32(wlc_hw->d11core, D11REGOFFS(objaddr)); in brcms_b_set_cwmax()
1571 bcma_write32(wlc_hw->d11core, D11REGOFFS(objdata), newmax); in brcms_b_set_cwmax()
1845 WARN_ON((bcma_read32(wlc_hw->d11core, D11REGOFFS(maccontrol)) & in brcms_b_setband()
1965 D11REGOFFS(phydebug)) & PDBG_RFD) != 0); in brcms_b_radio_read_hwdisabled()
2095 bcma_write16(core, D11REGOFFS(xmtfifocmd), txfifo_cmd); in brcms_b_corerev_fifofixup()
2096 bcma_write16(core, D11REGOFFS(xmtfifodef), txfifo_def); in brcms_b_corerev_fifofixup()
2097 bcma_write16(core, D11REGOFFS(xmtfifodef1), txfifo_def1); in brcms_b_corerev_fifofixup()
2099 bcma_write16(core, D11REGOFFS(xmtfifocmd), txfifo_cmd); in brcms_b_corerev_fifofixup()
2139 bcma_write16(core, D11REGOFFS(tsf_clk_frac_l), 0x2082); in brcms_b_switch_macfreq()
2140 bcma_write16(core, D11REGOFFS(tsf_clk_frac_h), 0x8); in brcms_b_switch_macfreq()
2142 bcma_write16(core, D11REGOFFS(tsf_clk_frac_l), 0x5341); in brcms_b_switch_macfreq()
2143 bcma_write16(core, D11REGOFFS(tsf_clk_frac_h), 0x8); in brcms_b_switch_macfreq()
2145 bcma_write16(core, D11REGOFFS(tsf_clk_frac_l), 0x8889); in brcms_b_switch_macfreq()
2146 bcma_write16(core, D11REGOFFS(tsf_clk_frac_h), 0x8); in brcms_b_switch_macfreq()
2150 bcma_write16(core, D11REGOFFS(tsf_clk_frac_l), 0x7CE0); in brcms_b_switch_macfreq()
2151 bcma_write16(core, D11REGOFFS(tsf_clk_frac_h), 0xC); in brcms_b_switch_macfreq()
2153 bcma_write16(core, D11REGOFFS(tsf_clk_frac_l), 0xCCCD); in brcms_b_switch_macfreq()
2154 bcma_write16(core, D11REGOFFS(tsf_clk_frac_h), 0xC); in brcms_b_switch_macfreq()
2221 bcma_set16(wlc_hw->d11core, D11REGOFFS(psm_gpio_oe), in brcms_c_gpio_init()
2223 bcma_set16(wlc_hw->d11core, D11REGOFFS(psm_gpio_out), in brcms_c_gpio_init()
2259 bcma_write32(core, D11REGOFFS(objaddr), in brcms_ucode_write()
2261 (void)bcma_read32(core, D11REGOFFS(objaddr)); in brcms_ucode_write()
2263 bcma_write32(core, D11REGOFFS(objdata), le32_to_cpu(ucode[i])); in brcms_ucode_write()
2334 D11REGOFFS(intctrlregs[idx].intstatus)) & in brcms_b_fifoerrors()
2381 D11REGOFFS(intctrlregs[idx].intstatus), in brcms_b_fifoerrors()
2390 bcma_write32(wlc_hw->d11core, D11REGOFFS(macintmask), wlc->macintmask); in brcms_c_intrson()
2403 bcma_write32(wlc_hw->d11core, D11REGOFFS(macintmask), 0); in brcms_c_intrsoff()
2404 (void)bcma_read32(wlc_hw->d11core, D11REGOFFS(macintmask)); in brcms_c_intrsoff()
2419 bcma_write32(wlc_hw->d11core, D11REGOFFS(macintmask), wlc->macintmask); in brcms_c_intrsrestore()
2534 macintstatus = bcma_read32(core, D11REGOFFS(macintstatus)); in wlc_intstatus()
2557 bcma_write32(core, D11REGOFFS(macintmask), 0); in wlc_intstatus()
2558 (void)bcma_read32(core, D11REGOFFS(macintmask)); in wlc_intstatus()
2562 bcma_write32(core, D11REGOFFS(macintstatus), macintstatus); in wlc_intstatus()
2571 bcma_write32(core, D11REGOFFS(intctrlregs[RX_FIFO].intstatus), in wlc_intstatus()
2649 mc = bcma_read32(core, D11REGOFFS(maccontrol)); in brcms_c_suspend_mac_and_wait()
2661 mi = bcma_read32(core, D11REGOFFS(macintstatus)); in brcms_c_suspend_mac_and_wait()
2672 SPINWAIT(!(bcma_read32(core, D11REGOFFS(macintstatus)) & MI_MACSSPNDD), in brcms_c_suspend_mac_and_wait()
2675 if (!(bcma_read32(core, D11REGOFFS(macintstatus)) & MI_MACSSPNDD)) { in brcms_c_suspend_mac_and_wait()
2681 bcma_read32(core, D11REGOFFS(psmdebug)), in brcms_c_suspend_mac_and_wait()
2682 bcma_read32(core, D11REGOFFS(phydebug)), in brcms_c_suspend_mac_and_wait()
2683 bcma_read16(core, D11REGOFFS(psm_brc))); in brcms_c_suspend_mac_and_wait()
2686 mc = bcma_read32(core, D11REGOFFS(maccontrol)); in brcms_c_suspend_mac_and_wait()
2714 mc = bcma_read32(core, D11REGOFFS(maccontrol)); in brcms_c_enable_mac()
2720 bcma_write32(core, D11REGOFFS(macintstatus), MI_MACSSPNDD); in brcms_c_enable_mac()
2722 mc = bcma_read32(core, D11REGOFFS(maccontrol)); in brcms_c_enable_mac()
2727 mi = bcma_read32(core, D11REGOFFS(macintstatus)); in brcms_c_enable_mac()
2750 bcma_write32(core, D11REGOFFS(objaddr), OBJADDR_SHM_SEL | 0); in brcms_b_validate_chip_access()
2751 (void)bcma_read32(core, D11REGOFFS(objaddr)); in brcms_b_validate_chip_access()
2752 w = bcma_read32(core, D11REGOFFS(objdata)); in brcms_b_validate_chip_access()
2755 bcma_write32(core, D11REGOFFS(objaddr), OBJADDR_SHM_SEL | 0); in brcms_b_validate_chip_access()
2756 (void)bcma_read32(core, D11REGOFFS(objaddr)); in brcms_b_validate_chip_access()
2757 bcma_write32(core, D11REGOFFS(objdata), (u32) 0xaa5555aa); in brcms_b_validate_chip_access()
2759 bcma_write32(core, D11REGOFFS(objaddr), OBJADDR_SHM_SEL | 0); in brcms_b_validate_chip_access()
2760 (void)bcma_read32(core, D11REGOFFS(objaddr)); in brcms_b_validate_chip_access()
2761 val = bcma_read32(core, D11REGOFFS(objdata)); in brcms_b_validate_chip_access()
2768 bcma_write32(core, D11REGOFFS(objaddr), OBJADDR_SHM_SEL | 0); in brcms_b_validate_chip_access()
2769 (void)bcma_read32(core, D11REGOFFS(objaddr)); in brcms_b_validate_chip_access()
2770 bcma_write32(core, D11REGOFFS(objdata), (u32) 0x55aaaa55); in brcms_b_validate_chip_access()
2772 bcma_write32(core, D11REGOFFS(objaddr), OBJADDR_SHM_SEL | 0); in brcms_b_validate_chip_access()
2773 (void)bcma_read32(core, D11REGOFFS(objaddr)); in brcms_b_validate_chip_access()
2774 val = bcma_read32(core, D11REGOFFS(objdata)); in brcms_b_validate_chip_access()
2781 bcma_write32(core, D11REGOFFS(objaddr), OBJADDR_SHM_SEL | 0); in brcms_b_validate_chip_access()
2782 (void)bcma_read32(core, D11REGOFFS(objaddr)); in brcms_b_validate_chip_access()
2783 bcma_write32(core, D11REGOFFS(objdata), w); in brcms_b_validate_chip_access()
2786 bcma_write32(core, D11REGOFFS(tsf_cfpstart), 0); in brcms_b_validate_chip_access()
2788 w = bcma_read32(core, D11REGOFFS(maccontrol)); in brcms_b_validate_chip_access()
2814 bcma_set32(core, D11REGOFFS(clk_ctl_st), in brcms_b_core_phypll_ctl()
2818 SPINWAIT((bcma_read32(core, D11REGOFFS(clk_ctl_st)) & in brcms_b_core_phypll_ctl()
2822 tmp = bcma_read32(core, D11REGOFFS(clk_ctl_st)); in brcms_b_core_phypll_ctl()
2827 bcma_set32(core, D11REGOFFS(clk_ctl_st), in brcms_b_core_phypll_ctl()
2830 SPINWAIT((bcma_read32(core, D11REGOFFS(clk_ctl_st)) & in brcms_b_core_phypll_ctl()
2836 tmp = bcma_read32(core, D11REGOFFS(clk_ctl_st)); in brcms_b_core_phypll_ctl()
2850 bcma_mask32(core, D11REGOFFS(clk_ctl_st), in brcms_b_core_phypll_ctl()
2852 (void)bcma_read32(core, D11REGOFFS(clk_ctl_st)); in brcms_b_core_phypll_ctl()
2907 u16 objoff = D11REGOFFS(objdata); in brcms_b_read_objmem()
2909 bcma_write32(core, D11REGOFFS(objaddr), sel | (offset >> 2)); in brcms_b_read_objmem()
2910 (void)bcma_read32(core, D11REGOFFS(objaddr)); in brcms_b_read_objmem()
2922 u16 objoff = D11REGOFFS(objdata); in brcms_b_write_objmem()
2924 bcma_write32(core, D11REGOFFS(objaddr), sel | (offset >> 2)); in brcms_b_write_objmem()
2925 (void)bcma_read32(core, D11REGOFFS(objaddr)); in brcms_b_write_objmem()
3015 bcma_write32(wlc_hw->d11core, D11REGOFFS(objaddr), in brcms_b_retrylimit_upd()
3017 (void)bcma_read32(wlc_hw->d11core, D11REGOFFS(objaddr)); in brcms_b_retrylimit_upd()
3018 bcma_write32(wlc_hw->d11core, D11REGOFFS(objdata), wlc_hw->SRL); in brcms_b_retrylimit_upd()
3019 bcma_write32(wlc_hw->d11core, D11REGOFFS(objaddr), in brcms_b_retrylimit_upd()
3021 (void)bcma_read32(wlc_hw->d11core, D11REGOFFS(objaddr)); in brcms_b_retrylimit_upd()
3022 bcma_write32(wlc_hw->d11core, D11REGOFFS(objdata), wlc_hw->LRL); in brcms_b_retrylimit_upd()
3188 bcma_write32(core, D11REGOFFS(macintstatus), -1); in brcms_b_coreinit()
3193 SPINWAIT(((bcma_read32(core, D11REGOFFS(macintstatus)) & in brcms_b_coreinit()
3195 if ((bcma_read32(core, D11REGOFFS(macintstatus)) & MI_MACSSPNDD) == 0) in brcms_b_coreinit()
3265 WARN_ON(bcma_read32(core, D11REGOFFS(maccontrol)) == 0xffffffff); in brcms_b_coreinit()
3274 bcma_write32(core, D11REGOFFS(intrcvlazy[0]), (1 << IRL_FC_SHIFT)); in brcms_b_coreinit()
3283 bcma_write32(core, D11REGOFFS(tsf_cfprep), in brcms_b_coreinit()
3285 bcma_write32(core, D11REGOFFS(tsf_cfpstart), bcnint_us); in brcms_b_coreinit()
3286 bcma_write32(core, D11REGOFFS(macintstatus), MI_GP1); in brcms_b_coreinit()
3289 bcma_write32(core, D11REGOFFS(intctrlregs[RX_FIFO].intmask), in brcms_b_coreinit()
3297 bcma_write16(core, D11REGOFFS(scc_fastpwrup_dly), wlc->fastpwrup_dly); in brcms_b_coreinit()
3310 bcma_write32(core, D11REGOFFS(objaddr), in brcms_b_coreinit()
3312 (void)bcma_read32(core, D11REGOFFS(objaddr)); in brcms_b_coreinit()
3313 bcma_write32(core, D11REGOFFS(objdata), wlc_hw->SRL); in brcms_b_coreinit()
3314 bcma_write32(core, D11REGOFFS(objaddr), in brcms_b_coreinit()
3316 (void)bcma_read32(core, D11REGOFFS(objaddr)); in brcms_b_coreinit()
3317 bcma_write32(core, D11REGOFFS(objdata), wlc_hw->LRL); in brcms_b_coreinit()
3323 bcma_mask16(core, D11REGOFFS(ifs_ctl), 0x0FFF); in brcms_b_coreinit()
3324 bcma_write16(core, D11REGOFFS(ifs_aifsn), EDCF_AIFSN_MIN); in brcms_b_coreinit()
3746 v1 = bcma_read32(wlc->hw->d11core, D11REGOFFS(maccontrol)); in brcms_c_set_ps_ctrl()
4074 bcma_read16(wlc->hw->d11core, D11REGOFFS(tsf_random)) & in brcms_c_wme_setparams()
4564 wlc_hw->machwcap = bcma_read32(core, D11REGOFFS(machwcap)); in brcms_b_attach()
5139 D11REGOFFS(maccontrol)) & MCTL_EN_MAC) in brcms_b_down_finish()
5479 bcma_set32(wlc->hw->d11core, D11REGOFFS(maccontrol), MCTL_TBTTHOLD); in brcms_c_time_lock()
5481 bcma_read32(wlc->hw->d11core, D11REGOFFS(maccontrol)); in brcms_c_time_lock()
5486 bcma_mask32(wlc->hw->d11core, D11REGOFFS(maccontrol), ~MCTL_TBTTHOLD); in brcms_c_time_unlock()
5488 bcma_read32(wlc->hw->d11core, D11REGOFFS(maccontrol)); in brcms_c_time_unlock()
5502 bcma_write32(wlc->hw->d11core, D11REGOFFS(tsf_cfprep), in brcms_c_set_beacon_period()
5504 bcma_write32(wlc->hw->d11core, D11REGOFFS(tsf_cfpstart), bcnint_us); in brcms_c_set_beacon_period()
6957 *tsf_l_ptr = bcma_read32(core, D11REGOFFS(tsf_timerlow)); in brcms_b_read_tsf()
6958 *tsf_h_ptr = bcma_read32(core, D11REGOFFS(tsf_timerhigh)); in brcms_b_read_tsf()
7302 if ((bcma_read32(core, D11REGOFFS(maccommand)) & both_valid) == both_valid) in brcms_c_update_beacon_hw()
7304 bcma_write32(core, D11REGOFFS(macintstatus), MI_BCNTPL); in brcms_c_update_beacon_hw()
7311 bcma_set32(core, D11REGOFFS(maccommand), MCMD_BCN0VLD); in brcms_c_update_beacon_hw()
7318 if ((bcma_read32(core, D11REGOFFS(maccommand)) & both_valid) == both_valid) { in brcms_c_update_beacon_hw()
7323 if (!(bcma_read32(core, D11REGOFFS(maccommand)) & MCMD_BCN0VLD)) { in brcms_c_update_beacon_hw()
7327 bcma_set32(core, D11REGOFFS(maccommand), MCMD_BCN0VLD); in brcms_c_update_beacon_hw()
7330 if (!(bcma_read32(core, D11REGOFFS(maccommand)) & MCMD_BCN1VLD)) { in brcms_c_update_beacon_hw()
7334 bcma_set32(core, D11REGOFFS(maccommand), MCMD_BCN1VLD); in brcms_c_update_beacon_hw()
7568 bcma_write32(wlc->hw->d11core, D11REGOFFS(tsf_timerlow), tsf_l); in brcms_c_tsf_set()
7569 bcma_write32(wlc->hw->d11core, D11REGOFFS(tsf_timerhigh), tsf_h); in brcms_c_tsf_set()
7749 bcma_set32(core, D11REGOFFS(maccommand), wlc->qvalid); in brcms_c_dpc()
7777 bcma_write32(core, D11REGOFFS(gptimer), 0); in brcms_c_dpc()
7826 bcma_write32(core, D11REGOFFS(tsf_cfprep), in brcms_c_init()
7857 bcma_set16(core, D11REGOFFS(ifs_ctl), IFS_USEEDCF); in brcms_c_init()
7880 bcma_write32(core, D11REGOFFS(rfdisabledly), RFDISABLE_DEFAULT); in brcms_c_init()