Lines Matching refs:wlc_cm

230 		struct brcms_cm_info *wlc_cm, struct txpwr_limits *txpwr,  in brcms_c_channel_min_txpower_limits_with_local_constraint()  argument
309 brcms_c_set_country(struct brcms_cm_info *wlc_cm, in brcms_c_set_country() argument
312 struct brcms_c_info *wlc = wlc_cm->wlc; in brcms_c_set_country()
328 struct brcms_cm_info *wlc_cm; in brcms_c_channel_mgr_attach() local
334 wlc_cm = kzalloc(sizeof(struct brcms_cm_info), GFP_ATOMIC); in brcms_c_channel_mgr_attach()
335 if (wlc_cm == NULL) in brcms_c_channel_mgr_attach()
337 wlc_cm->pub = pub; in brcms_c_channel_mgr_attach()
338 wlc_cm->wlc = wlc; in brcms_c_channel_mgr_attach()
339 wlc->cmi = wlc_cm; in brcms_c_channel_mgr_attach()
342 wlc_cm->world_regd = brcms_world_regd(ccode, ccode_len); in brcms_c_channel_mgr_attach()
350 if (!wlc_cm->world_regd) { in brcms_c_channel_mgr_attach()
351 wlc_cm->world_regd = brcms_default_world_regd(); in brcms_c_channel_mgr_attach()
352 ccode = wlc_cm->world_regd->regdomain->alpha2; in brcms_c_channel_mgr_attach()
362 brcms_c_set_country(wlc_cm, wlc_cm->world_regd); in brcms_c_channel_mgr_attach()
364 return wlc_cm; in brcms_c_channel_mgr_attach()
367 void brcms_c_channel_mgr_detach(struct brcms_cm_info *wlc_cm) in brcms_c_channel_mgr_detach() argument
369 kfree(wlc_cm); in brcms_c_channel_mgr_detach()
373 brcms_c_channel_set_chanspec(struct brcms_cm_info *wlc_cm, u16 chanspec, in brcms_c_channel_set_chanspec() argument
376 struct brcms_c_info *wlc = wlc_cm->wlc; in brcms_c_channel_set_chanspec()
380 brcms_c_channel_reg_limits(wlc_cm, chanspec, &txpwr); in brcms_c_channel_set_chanspec()
383 wlc_cm, &txpwr, local_constraint_qdbm in brcms_c_channel_set_chanspec()
398 brcms_c_channel_reg_limits(struct brcms_cm_info *wlc_cm, u16 chanspec, in brcms_c_channel_reg_limits() argument
401 struct brcms_c_info *wlc = wlc_cm->wlc; in brcms_c_channel_reg_limits()
420 country = &wlc_cm->world_regd->country; in brcms_c_channel_reg_limits()
602 brcms_c_valid_chanspec_ext(struct brcms_cm_info *wlc_cm, u16 chspec) in brcms_c_valid_chanspec_ext() argument
604 struct brcms_c_info *wlc = wlc_cm->wlc; in brcms_c_valid_chanspec_ext()
614 if (CHANNEL_BANDUNIT(wlc_cm->wlc, channel) != in brcms_c_valid_chanspec_ext()
621 bool brcms_c_valid_chanspec_db(struct brcms_cm_info *wlc_cm, u16 chspec) in brcms_c_valid_chanspec_db() argument
623 return brcms_c_valid_chanspec_ext(wlc_cm, chspec); in brcms_c_valid_chanspec_db()