Lines Matching refs:cfg

271 phl_ps_ips_cfg(struct phl_info_t *phl_info, struct ps_cfg *cfg, u8 en)  in phl_ps_ips_cfg()  argument
280 ips_info.macid = cfg->macid; in phl_ps_ips_cfg()
286 phl_ps_lps_cfg(struct phl_info_t *phl_info, struct ps_cfg *cfg, u8 en) in phl_ps_lps_cfg() argument
293 sta = rtw_phl_get_stainfo_by_macid(phl_info, cfg->macid); in phl_ps_lps_cfg()
306 PHL_TRACE(COMP_PHL_PS, _PHL_INFO_, "[PS], %s(): enter lps, macid %d.\n", __func__, cfg->macid); in phl_ps_lps_cfg()
309 PHL_TRACE(COMP_PHL_PS, _PHL_INFO_, "[PS], %s(): leave lps, macid %d.\n", __func__, cfg->macid); in phl_ps_lps_cfg()
314 lps_info.macid = cfg->macid; in phl_ps_lps_cfg()
315 lps_info.listen_bcn_mode = cfg->listen_bcn_mode; in phl_ps_lps_cfg()
316 lps_info.awake_interval = cfg->awake_interval; in phl_ps_lps_cfg()
317 lps_info.smart_ps_mode = cfg->smart_ps_mode; in phl_ps_lps_cfg()
332 static enum rtw_phl_status _lps_enter_proto_cfg(struct phl_info_t *phl_info, struct ps_cfg *cfg) in _lps_enter_proto_cfg() argument
345 phl_sta = rtw_phl_get_stainfo_by_macid(phl_info, cfg->macid); in _lps_enter_proto_cfg()
358 status = RTW_PHL_PKT_OFLD_REQ(phl_info, cfg->macid, in _lps_enter_proto_cfg()
359 PKT_TYPE_NULL_DATA, cfg->token, &null_info); in _lps_enter_proto_cfg()
365 status = phl_ps_lps_cfg(phl_info, cfg, true); in _lps_enter_proto_cfg()
374 static enum rtw_phl_status _lps_leave_proto_cfg(struct phl_info_t *phl_info, struct ps_cfg *cfg) in _lps_leave_proto_cfg() argument
380 status = phl_ps_lps_cfg(phl_info, cfg, false); in _lps_leave_proto_cfg()
386 status = phl_pkt_ofld_cancel(phl_info, cfg->macid, in _lps_leave_proto_cfg()
387 PKT_TYPE_NULL_DATA, cfg->token); in _lps_leave_proto_cfg()
396 enum rtw_phl_status phl_ps_lps_proto_cfg(struct phl_info_t *phl_info, struct ps_cfg *cfg, bool lps_… in phl_ps_lps_proto_cfg() argument
399 return _lps_enter_proto_cfg(phl_info, cfg); in phl_ps_lps_proto_cfg()
401 return _lps_leave_proto_cfg(phl_info, cfg); in phl_ps_lps_proto_cfg()
404 enum rtw_phl_status phl_ps_lps_enter(struct phl_info_t *phl_info, struct ps_cfg *cfg) in phl_ps_lps_enter() argument
408 if (cfg->proto_cfg) { in phl_ps_lps_enter()
409 status = phl_ps_lps_proto_cfg(phl_info, cfg, true); in phl_ps_lps_enter()
416 if (cfg->pwr_cfg) { in phl_ps_lps_enter()
417 status = phl_ps_cfg_pwr_lvl(phl_info, cfg->ps_mode, cfg->cur_pwr_lvl, cfg->pwr_lvl); in phl_ps_lps_enter()
427 enum rtw_phl_status phl_ps_lps_leave(struct phl_info_t *phl_info, struct ps_cfg *cfg) in phl_ps_lps_leave() argument
431 if (cfg->pwr_cfg) { in phl_ps_lps_leave()
432 status = phl_ps_cfg_pwr_lvl(phl_info, cfg->ps_mode, cfg->cur_pwr_lvl, cfg->pwr_lvl); in phl_ps_lps_leave()
439 if (cfg->proto_cfg) { in phl_ps_lps_leave()
440 status = phl_ps_lps_proto_cfg(phl_info, cfg, false); in phl_ps_lps_leave()
450 enum rtw_phl_status phl_ps_ips_proto_cfg(struct phl_info_t *phl_info, struct ps_cfg *cfg, bool ips_… in phl_ps_ips_proto_cfg() argument
455 phl_ps_ips_cfg(phl_info, cfg, ips_en); in phl_ps_ips_proto_cfg()
460 enum rtw_phl_status phl_ps_ips_enter(struct phl_info_t *phl_info, struct ps_cfg *cfg) in phl_ps_ips_enter() argument
464 if (cfg->proto_cfg) { in phl_ps_ips_enter()
465 status = phl_ps_ips_proto_cfg(phl_info, cfg, true); in phl_ps_ips_enter()
472 if (cfg->pwr_cfg) { in phl_ps_ips_enter()
473 status = phl_ps_cfg_pwr_lvl(phl_info, cfg->ps_mode, cfg->cur_pwr_lvl, cfg->pwr_lvl); in phl_ps_ips_enter()
483 enum rtw_phl_status phl_ps_ips_leave(struct phl_info_t *phl_info, struct ps_cfg *cfg) in phl_ps_ips_leave() argument
487 if (cfg->pwr_cfg) { in phl_ps_ips_leave()
488 status = phl_ps_cfg_pwr_lvl(phl_info, cfg->ps_mode, cfg->cur_pwr_lvl, cfg->pwr_lvl); in phl_ps_ips_leave()
495 if (cfg->proto_cfg) { in phl_ps_ips_leave()
496 status = phl_ps_ips_proto_cfg(phl_info, cfg, false); in phl_ps_ips_leave()
507 phl_ps_enter_ps(struct phl_info_t *phl_info, struct ps_cfg *cfg) in phl_ps_enter_ps() argument
512 __func__, phl_ps_ps_mode_to_str(cfg->ps_mode), phl_ps_pwr_lvl_to_str(cfg->pwr_lvl), in phl_ps_enter_ps()
513 cfg->macid, (cfg->token == NULL) ? 0xFF : *cfg->token, cfg->proto_cfg, cfg->pwr_cfg); in phl_ps_enter_ps()
515 if (cfg->ps_mode == PS_MODE_LPS) in phl_ps_enter_ps()
516 status = phl_ps_lps_enter(phl_info, cfg); in phl_ps_enter_ps()
517 else if (cfg->ps_mode == PS_MODE_IPS) in phl_ps_enter_ps()
518 status = phl_ps_ips_enter(phl_info, cfg); in phl_ps_enter_ps()
524 phl_ps_leave_ps(struct phl_info_t *phl_info, struct ps_cfg *cfg) in phl_ps_leave_ps() argument
529 __func__, phl_ps_ps_mode_to_str(cfg->ps_mode), phl_ps_pwr_lvl_to_str(cfg->pwr_lvl), in phl_ps_leave_ps()
530 cfg->macid, (cfg->token == NULL) ? 0xFF : *cfg->token, cfg->proto_cfg, cfg->pwr_cfg); in phl_ps_leave_ps()
532 if (cfg->ps_mode == PS_MODE_LPS) in phl_ps_leave_ps()
533 status = phl_ps_lps_leave(phl_info, cfg); in phl_ps_leave_ps()
534 else if (cfg->ps_mode == PS_MODE_IPS) in phl_ps_leave_ps()
535 status = phl_ps_ips_leave(phl_info, cfg); in phl_ps_leave_ps()