Lines Matching defs:aux

388 	struct rtw89_mcc_role *aux = &mcc->role_aux;
395 req.macid_y = aux->rtwvif->mac_id;
413 struct rtw89_mcc_role *aux = &mcc->role_aux;
423 arg.infos[1].band = aux->rtwvif->mac_idx;
424 arg.infos[1].port = aux->rtwvif->port;
443 struct rtw89_mcc_role *aux = &mcc->role_aux;
458 tbtt_ofst_aux = rtw89_mcc_get_tbtt_ofst(rtwdev, aux, tsf_aux);
723 struct rtw89_mcc_role *aux = &mcc->role_aux;
728 "MCC assign pattern: ref {%d | %d}, aux {%d | %d}\n",
735 pattern->courtesy.macid_tgt = aux->rtwvif->mac_id;
741 pattern->courtesy.macid_src = aux->rtwvif->mac_id;
762 * |< duration ref >| (if mid bt) |< duration aux >|
763 * |< tob ref >|< toa ref >| ... |< tob aux >|< toa aux >|
765 * tbtt ref tbtt aux
779 struct rtw89_mcc_role *aux = &mcc->role_aux;
794 max_bcn_ofst = ref->duration + aux->duration;
797 ref->limit.max_toa + aux->duration);
798 else if (aux->limit.enable)
800 ref->duration + aux->limit.max_tob);
819 } else if (aux->limit.enable) {
821 res - (aux->duration - aux->limit.max_toa));
822 lower = max_t(s16, lower, res - aux->limit.max_tob);
832 ptrn->toa_aux = aux->duration - ptrn->tob_aux;
843 struct rtw89_mcc_role *aux = &mcc->role_aux;
868 if (aux->duration < min_tob + min_toa) {
870 "MCC calc ptrn_st: not meet aux dur cond\n");
883 upper_tob_aux = min_t(s16, min_tob + res, aux->duration - min_toa);
896 } else if (aux->limit.enable) {
897 if (min_tob > aux->limit.max_tob || min_toa > aux->limit.max_toa) {
899 "MCC calc ptrn_st: conflict aux limit\n");
903 upper_tob_aux = min_t(s16, upper_tob_aux, aux->limit.max_tob);
905 aux->duration - aux->limit.max_toa);
921 ptrn->toa_aux = aux->duration - ptrn->tob_aux;
929 struct rtw89_mcc_role *aux = &mcc->role_aux;
935 if (ref->limit.enable && aux->limit.enable) {
948 if (aux->limit.enable &&
949 aux->duration > aux->limit.max_tob + aux->limit.max_toa) {
951 "MCC calc ptrn: not fit aux limit\n");
989 struct rtw89_mcc_role *aux = &mcc->role_aux;
998 tmp.tob_aux = aux->duration / 2;
999 tmp.toa_aux = aux->duration - tmp.tob_aux;
1031 struct rtw89_mcc_role *aux = &mcc->role_aux;
1039 } else if (aux->duration < RTW89_MCC_MIN_STA_DURATION) {
1050 } else if (aux->limit.enable) {
1051 dur_aux = min(dur_aux, aux->limit.max_dur);
1056 "MCC set dur: (ref, aux) {%d ~ %d} -> {%d ~ %d}\n",
1057 ref->duration, aux->duration, dur_ref, dur_aux);
1060 aux->duration = dur_aux;
1197 struct rtw89_mcc_role *aux = &mcc->role_aux;
1203 if (ref->is_2ghz && aux->is_2ghz) {
1211 if (!ref->is_2ghz && !aux->is_2ghz) {
1221 rtw89_mcc_mod_duration_diff_band_with_bt(rtwdev, ref, aux);
1223 rtw89_mcc_mod_duration_diff_band_with_bt(rtwdev, aux, ref);
1317 struct rtw89_mcc_role *aux = &mcc->role_aux;
1328 rtw89_mcc_sync_tbtt(rtwdev, ref, aux, false);
1330 rtw89_mcc_set_duration_go_sta(rtwdev, ref, aux);
1332 rtw89_mcc_sync_tbtt(rtwdev, aux, ref, true);
1333 config->mcc_interval = aux->beacon_interval;
1334 rtw89_mcc_set_duration_go_sta(rtwdev, aux, ref);
1483 struct rtw89_mcc_role *aux = &mcc->role_aux;
1503 ret = __mcc_fw_add_role(rtwdev, aux);
1519 ret = __mcc_fw_add_role(rtwdev, aux);
1529 ret = __mcc_fw_add_role(rtwdev, aux);
1569 struct rtw89_mcc_role *aux = &mcc->role_aux;
1581 slot_idx_tgt = aux->slot_idx;
1583 slot_arg_src = &arg->slots[aux->slot_idx];
1596 struct rtw89_mcc_role *aux = &mcc->role_aux;
1619 __mrc_fw_add_role(rtwdev, aux, &add_arg, 1);
1628 __mrc_fw_add_role(rtwdev, aux, &add_arg, 2);
1635 __mrc_fw_add_role(rtwdev, aux, &add_arg, 1);
1694 struct rtw89_mcc_role *aux = &mcc->role_aux;
1700 .macid_y = aux->rtwvif->mac_id,
1702 .duration_y = aux->duration,
1735 struct rtw89_mcc_role *aux = &mcc->role_aux;
1745 .slot_idx = aux->slot_idx,
1746 .duration = aux->duration,
1787 struct rtw89_mcc_role *aux = &mcc->role_aux;
1804 } else if (aux->is_go) {
1805 rtwvif_go = aux->rtwvif;
1809 duration = config->mcc_interval - aux->duration;
1811 /* convert time domain from sta(ref) to GO(aux) */
1840 struct rtw89_mcc_role *aux = &mcc->role_aux;
1847 else if (aux->is_go)
1848 rtw89_fw_h2c_tsf32_toggle(rtwdev, aux->rtwvif, true);
1857 struct rtw89_mcc_role *aux = &mcc->role_aux;
1864 else if (aux->is_go)
1865 rtw89_fw_h2c_tsf32_toggle(rtwdev, aux->rtwvif, false);
1874 struct rtw89_mcc_role *aux = &mcc->role_aux;
1888 if (ref->is_go || aux->is_go)