Lines Matching full:ptrn
1099 struct rtw89_mcc_pattern *ptrn, in __rtw89_mcc_calc_pattern_loose() argument
1113 *ptrn = (typeof(*ptrn)){ in __rtw89_mcc_calc_pattern_loose()
1130 ptrn->plan = RTW89_MCC_PLAN_MID_BT; in __rtw89_mcc_calc_pattern_loose()
1136 ptrn->plan, bcn_ofst); in __rtw89_mcc_calc_pattern_loose()
1152 ptrn->toa_ref = (upper + lower) / 2; in __rtw89_mcc_calc_pattern_loose()
1154 ptrn->toa_ref = lower; in __rtw89_mcc_calc_pattern_loose()
1156 ptrn->tob_ref = ref->duration - ptrn->toa_ref; in __rtw89_mcc_calc_pattern_loose()
1157 ptrn->tob_aux = res - ptrn->toa_ref; in __rtw89_mcc_calc_pattern_loose()
1158 ptrn->toa_aux = aux->duration - ptrn->tob_aux; in __rtw89_mcc_calc_pattern_loose()
1165 struct rtw89_mcc_pattern *ptrn) in __rtw89_mcc_calc_pattern_strict() argument
1181 ptrn->plan, bcn_ofst); in __rtw89_mcc_calc_pattern_strict()
1183 if (ptrn->plan == RTW89_MCC_PLAN_MID_BT) in __rtw89_mcc_calc_pattern_strict()
1244 ptrn->toa_ref = (upper_toa_ref + lower_toa_ref) / 2; in __rtw89_mcc_calc_pattern_strict()
1245 ptrn->tob_ref = ref->duration - ptrn->toa_ref; in __rtw89_mcc_calc_pattern_strict()
1246 ptrn->tob_aux = bcn_ofst - ptrn->toa_ref - bt_dur_in_mid; in __rtw89_mcc_calc_pattern_strict()
1247 ptrn->toa_aux = aux->duration - ptrn->tob_aux; in __rtw89_mcc_calc_pattern_strict()
1252 struct rtw89_mcc_pattern *ptrn, in __rtw89_mcc_fill_ptrn_anchor_ref() argument
1272 ptrn->toa_ref = ref_toa; in __rtw89_mcc_fill_ptrn_anchor_ref()
1273 ptrn->tob_ref = ref->duration - ptrn->toa_ref; in __rtw89_mcc_fill_ptrn_anchor_ref()
1275 ptrn->tob_ref = ref_tob; in __rtw89_mcc_fill_ptrn_anchor_ref()
1276 ptrn->toa_ref = ref->duration - ptrn->tob_ref; in __rtw89_mcc_fill_ptrn_anchor_ref()
1279 ptrn->tob_aux = bcn_ofst - ptrn->toa_ref; in __rtw89_mcc_fill_ptrn_anchor_ref()
1280 ptrn->toa_aux = aux->duration - ptrn->tob_aux; in __rtw89_mcc_fill_ptrn_anchor_ref()
1284 struct rtw89_mcc_pattern *ptrn, in __rtw89_mcc_fill_ptrn_anchor_aux() argument
1304 ptrn->tob_aux = aux_tob; in __rtw89_mcc_fill_ptrn_anchor_aux()
1305 ptrn->toa_aux = aux->duration - ptrn->tob_aux; in __rtw89_mcc_fill_ptrn_anchor_aux()
1307 ptrn->toa_aux = aux_toa; in __rtw89_mcc_fill_ptrn_anchor_aux()
1308 ptrn->tob_aux = aux->duration - ptrn->toa_aux; in __rtw89_mcc_fill_ptrn_anchor_aux()
1311 ptrn->toa_ref = bcn_ofst - ptrn->tob_aux; in __rtw89_mcc_fill_ptrn_anchor_aux()
1312 ptrn->tob_ref = ref->duration - ptrn->toa_ref; in __rtw89_mcc_fill_ptrn_anchor_aux()
1316 struct rtw89_mcc_pattern *ptrn, in __rtw89_mcc_calc_pattern_anchor() argument
1336 *ptrn = (typeof(*ptrn)){ in __rtw89_mcc_calc_pattern_anchor()
1342 ptrn->plan, bcn_ofst); in __rtw89_mcc_calc_pattern_anchor()
1345 __rtw89_mcc_fill_ptrn_anchor_ref(rtwdev, ptrn, small_bcn_ofst); in __rtw89_mcc_calc_pattern_anchor()
1347 __rtw89_mcc_fill_ptrn_anchor_aux(rtwdev, ptrn, small_bcn_ofst); in __rtw89_mcc_calc_pattern_anchor()
1349 __rtw89_mcc_fill_ptrn_anchor_ref(rtwdev, ptrn, small_bcn_ofst); in __rtw89_mcc_calc_pattern_anchor()
1360 struct rtw89_mcc_pattern ptrn; in rtw89_mcc_calc_pattern() local
1366 "MCC calc ptrn: not support dual limited roles\n"); in rtw89_mcc_calc_pattern()
1373 "MCC calc ptrn: not fit ref limit\n"); in rtw89_mcc_calc_pattern()
1380 "MCC calc ptrn: not fit aux limit\n"); in rtw89_mcc_calc_pattern()
1395 ptrn = (typeof(ptrn)){ in rtw89_mcc_calc_pattern()
1399 ret = __rtw89_mcc_calc_pattern_strict(rtwdev, &ptrn); in rtw89_mcc_calc_pattern()
1407 ret = __rtw89_mcc_calc_pattern_anchor(rtwdev, &ptrn, hdl_bt); in rtw89_mcc_calc_pattern()
1411 __rtw89_mcc_calc_pattern_loose(rtwdev, &ptrn, hdl_bt); in rtw89_mcc_calc_pattern()
1414 rtw89_mcc_assign_pattern(rtwdev, &ptrn); in rtw89_mcc_calc_pattern()