Lines Matching refs:unit

462 static struct brcms_bss_cfg *brcms_c_bsscfg_malloc(uint unit)  in brcms_c_bsscfg_malloc()  argument
482 brcms_c_attach_malloc(uint unit, uint *err, uint devid) in brcms_c_attach_malloc() argument
536 wlc->bsscfg = brcms_c_bsscfg_malloc(unit); in brcms_c_attach_malloc()
622 wlc->pub->unit); in brcms_c_calc_frame_time()
688 brcms_dbg_info(wlc_hw->d11core, "wl%d\n", wlc_hw->unit); in brcms_c_write_inits()
729 __func__, wlc_hw->unit, in brcms_c_ucode_bsinit()
739 __func__, wlc_hw->unit, in brcms_c_ucode_bsinit()
744 __func__, wlc_hw->unit, wlc_hw->corerev); in brcms_c_ucode_bsinit()
759 brcms_dbg_info(wlc_hw->d11core, "wl%d: clk %d\n", wlc_hw->unit, clk); in brcms_b_core_phy_clk()
784 brcms_dbg_mac80211(wlc_hw->d11core, "wl%d: bandunit %d\n", wlc_hw->unit, in brcms_c_setxband()
813 brcms_dbg_mac80211(wlc_hw->d11core, "wl%d\n", wlc_hw->unit); in brcms_c_setband_inact()
1049 brcms_err(core, "wl%d: %s: dead chip\n", wlc_hw->unit, in brcms_b_txstatus()
1121 uint unit = wlc_hw->unit; in brcms_b_attach_dmapio() local
1124 snprintf(name, sizeof(name), "wl%d", unit); in brcms_b_attach_dmapio()
1177 unit); in brcms_b_attach_dmapio()
1511 brcms_dbg_rx(core, "wl%d: brcms_b_set_addrmatch\n", wlc_hw->unit); in brcms_b_set_addrmatch()
1534 brcms_dbg_info(core, "wl%d\n", wlc_hw->unit); in brcms_b_write_template_ram()
1707 brcms_dbg_mac80211(wlc_hw->d11core, "wl%d: bandunit %d\n", wlc_hw->unit, in brcms_b_bsinit()
1787 brcms_dbg_info(wlc_hw->d11core, "wl%d: reset phy\n", wlc_hw->unit); in brcms_b_phy_reset()
1921 brcms_dbg_info(wlc_hw->d11core, "wl%d: want %d\n", wlc_hw->unit, want); in brcms_b_xtal()
2010 brcms_dbg_info(wlc_hw->d11core, "wl%d: core reset\n", wlc_hw->unit); in brcms_b_corereset()
2023 wlc_hw->unit, __func__, i); in brcms_b_corereset()
2029 wlc_hw->unit, __func__, RX_FIFO); in brcms_b_corereset()
2266 brcms_dbg_info(wlc_hw->d11core, "wl%d\n", wlc_hw->unit); in brcms_ucode_write()
2296 __func__, wlc_hw->unit, wlc_hw->corerev); in brcms_ucode_download()
2305 __func__, wlc_hw->unit, wlc_hw->corerev); in brcms_ucode_download()
2338 uint unit; in brcms_b_fifoerrors() local
2342 unit = wlc_hw->unit; in brcms_b_fifoerrors()
2354 unit, idx, intstatus); in brcms_b_fifoerrors()
2358 "overflow\n", unit, idx); in brcms_b_fifoerrors()
2364 unit, idx); in brcms_b_fifoerrors()
2369 brcms_err(core, "wl%d: fifo %d: data error\n", unit, in brcms_b_fifoerrors()
2376 "error\n", unit, idx); in brcms_b_fifoerrors()
2382 "underflow\n", idx, unit); in brcms_b_fifoerrors()
2386 "underflow\n", idx, unit); in brcms_b_fifoerrors()
2650 brcms_dbg_mac80211(core, "wl%d: bandunit %d\n", wlc_hw->unit, in brcms_c_suspend_mac_and_wait()
2666 brcms_err(core, "wl%d: %s: dead chip\n", wlc_hw->unit, in brcms_c_suspend_mac_and_wait()
2677 brcms_err(core, "wl%d: %s: dead chip\n", wlc_hw->unit, in brcms_c_suspend_mac_and_wait()
2692 wlc_hw->unit, BRCMS_MAX_MAC_SUSPEND); in brcms_c_suspend_mac_and_wait()
2694 "psm_brc 0x%04x\n", wlc_hw->unit, in brcms_c_suspend_mac_and_wait()
2702 brcms_err(core, "wl%d: %s: dead chip\n", wlc_hw->unit, in brcms_c_suspend_mac_and_wait()
2718 brcms_dbg_mac80211(core, "wl%d: bandunit %d\n", wlc_hw->unit, in brcms_c_enable_mac()
2778 "expected 0xaa5555aa\n", wlc_hw->unit, val); in brcms_b_validate_chip_access()
2791 "expected 0x55aaaa55\n", wlc_hw->unit, val); in brcms_b_validate_chip_access()
2806 "0x%x, expected 0x%x or 0x%x\n", wlc_hw->unit, w, in brcms_b_validate_chip_access()
2822 brcms_dbg_info(core, "wl%d\n", wlc_hw->unit); in brcms_b_core_phypll_ctl()
2874 brcms_dbg_info(wlc_hw->d11core, "wl%d: disable core\n", wlc_hw->unit); in brcms_c_coredisable()
3114 wlc->pub->unit, delta); in brcms_c_statsupd()
3122 wlc->pub->unit, delta, i); in brcms_c_statsupd()
3145 brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit); in brcms_c_reset()
3191 brcms_dbg_info(core, "wl%d: core init\n", wlc_hw->unit); in brcms_b_coreinit()
3212 "suspend!\n", wlc_hw->unit); in brcms_b_coreinit()
3223 " %d\n", __func__, wlc_hw->unit, in brcms_b_coreinit()
3230 " %d\n", __func__, wlc_hw->unit, in brcms_b_coreinit()
3234 __func__, wlc_hw->unit, wlc_hw->corerev); in brcms_b_coreinit()
3707 wlc->pub->unit, wlc->band->bandunit); in brcms_c_bsinit()
3732 wlc->pub->unit); in brcms_c_duty_cycle_set()
3758 brcms_dbg_mac80211(wlc->hw->d11core, "wl%d: hps %d\n", wlc->pub->unit, in brcms_c_set_ps_ctrl()
3854 brcms_dbg_mac80211(wlc_hw->d11core, "wl%d: 0x%x\n", wlc_hw->unit, in brcms_b_set_chanspec()
3917 wlc->pub->unit, __func__, CHSPEC_CHANNEL(chanspec)); in brcms_c_set_chanspec()
3929 wlc->pub->unit, __func__, in brcms_c_set_chanspec()
4069 wlc->pub->unit, __func__); in brcms_c_wme_setparams()
4088 "aifs %d\n", wlc->pub->unit, acp_shm.aifs); in brcms_c_wme_setparams()
4207 wlc->pub->unit, __func__); in brcms_c_radio_timer()
4238 brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit); in brcms_c_watchdog()
4245 wlc->pub->unit, __func__); in brcms_c_watchdog()
4282 static bool brcms_c_timers_init(struct brcms_c_info *wlc, int unit) in brcms_c_timers_init() argument
4288 "failed\n", unit); in brcms_c_timers_init()
4296 "failed\n", unit); in brcms_c_timers_init()
4310 static void brcms_c_info_init(struct brcms_c_info *wlc, int unit) in brcms_c_info_init() argument
4363 uint unit; in brcms_c_attach_module() local
4364 unit = wlc->pub->unit; in brcms_c_attach_module()
4369 "failed\n", unit); in brcms_c_attach_module()
4377 "failed\n", unit); in brcms_c_attach_module()
4384 "failed\n", unit); in brcms_c_attach_module()
4404 uint unit, bool piomode) in brcms_b_attach() argument
4416 brcms_dbg_info(core, "wl%d: vendor 0x%x device 0x%x\n", unit, in brcms_b_attach()
4420 brcms_dbg_info(core, "wl%d: vendor 0x%x device 0x%x\n", unit, in brcms_b_attach()
4428 wlc_hw->unit = unit; in brcms_b_attach()
4442 unit); in brcms_b_attach()
4450 unit); in brcms_b_attach()
4486 "failed\n", unit); in brcms_b_attach()
4500 unit, ai_get_boardtype(wlc_hw->sih), in brcms_b_attach()
4541 "failed\n", unit); in brcms_b_attach()
4549 sha_params.unit = unit; in brcms_b_attach()
4602 "attach failed\n", unit); in brcms_b_attach()
4633 "phy type/rev (%d/%d)\n", unit, in brcms_b_attach()
4654 brcms_dbg_info(core, "wl%d: phy %u/%u radio %x/%u\n", unit, in brcms_b_attach()
4692 unit); in brcms_b_attach()
4704 wiphy_err(wiphy, "wl%d: brcms_b_attach: failed with err %d\n", unit, in brcms_b_attach()
4712 uint unit; in brcms_c_attach_stf_ant_init() local
4716 unit = wlc->pub->unit; in brcms_c_attach_stf_ant_init()
4727 " srom (0x%x), using 3\n", unit, __func__, aa); in brcms_c_attach_stf_ant_init()
4911 brcms_dbg_info(wlc_hw->d11core, "wl%d\n", wlc_hw->unit); in brcms_b_hw_up()
4948 brcms_dbg_info(wlc_hw->d11core, "wl%d\n", wlc_hw->unit); in brcms_b_up_prep()
5018 brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit); in brcms_c_up()
5062 wlc->pub->unit); in brcms_c_up()
5194 brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit); in brcms_c_down()
5200 wlc->pub->unit, __func__); in brcms_c_down()
5314 wlc->pub->unit, __func__, gmode); in brcms_c_set_gmode()
5882 "not in hw_rateset\n", wlc->pub->unit, rspec); in brcms_c_valid_rate()
5909 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
5920 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
5930 wlc->pub->unit, rate); in mac80211_wlc_set_nrate()
5942 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
5950 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
5958 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
5964 wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
5971 "request\n", wlc->pub->unit, __func__); in mac80211_wlc_set_nrate()
6281 wlc->pub->unit, __func__); in brcms_c_d11hdrs_mac80211()
6453 wlc->pub->unit, __func__); in brcms_c_d11hdrs_mac80211()
6845 wlc->pub->unit, fifo_names[queue], in brcms_c_d11hdrs_mac80211()
6852 wlc->pub->unit, __func__, in brcms_c_d11hdrs_mac80211()
7683 wlc->pub->unit, p->len); in brcms_c_recv()
7783 brcms_err(core, "wl%d: %s: dead chip\n", wlc_hw->unit, in brcms_c_dpc()
7794 wlc_hw->unit, macintstatus); in brcms_c_dpc()
7833 "(seconds). Resetting.\n", wlc_hw->unit, wlc_hw->now); in brcms_c_dpc()
7847 " RF Disable Input\n", wlc_hw->unit); in brcms_c_dpc()
7869 brcms_dbg_info(core, "wl%d\n", wlc->pub->unit); in brcms_c_init()
7966 brcms_c_attach(struct brcms_info *wl, struct bcma_device *core, uint unit, in brcms_c_attach() argument
7975 wlc = brcms_c_attach_malloc(unit, &err, 0); in brcms_c_attach()
7988 pub->unit = unit; in brcms_c_attach()
7994 brcms_c_info_init(wlc, unit); in brcms_c_attach()
8003 err = brcms_b_attach(wlc, core, unit, piomode); in brcms_c_attach()
8081 if (!brcms_c_timers_init(wlc, unit)) { in brcms_c_attach()
8082 wiphy_err(wl->wiphy, "wl%d: %s: init_timer failed\n", unit, in brcms_c_attach()
8092 "\n", unit, __func__); in brcms_c_attach()
8132 unit, __func__, err); in brcms_c_attach()