Lines Matching refs:t
292 void mt76x2_get_rate_power(struct mt76x02_dev *dev, struct mt76x02_rate_power *t, in mt76x2_get_rate_power() argument
300 memset(t, 0, sizeof(*t)); in mt76x2_get_rate_power()
303 t->cck[0] = t->cck[1] = mt76x02_rate_power_val(val); in mt76x2_get_rate_power()
304 t->cck[2] = t->cck[3] = mt76x02_rate_power_val(val >> 8); in mt76x2_get_rate_power()
310 t->ofdm[0] = t->ofdm[1] = mt76x02_rate_power_val(val); in mt76x2_get_rate_power()
311 t->ofdm[2] = t->ofdm[3] = mt76x02_rate_power_val(val >> 8); in mt76x2_get_rate_power()
317 t->ofdm[4] = t->ofdm[5] = mt76x02_rate_power_val(val); in mt76x2_get_rate_power()
318 t->ofdm[6] = t->ofdm[7] = mt76x02_rate_power_val(val >> 8); in mt76x2_get_rate_power()
321 t->ht[0] = t->ht[1] = mt76x02_rate_power_val(val); in mt76x2_get_rate_power()
322 t->ht[2] = t->ht[3] = mt76x02_rate_power_val(val >> 8); in mt76x2_get_rate_power()
325 t->ht[4] = t->ht[5] = mt76x02_rate_power_val(val); in mt76x2_get_rate_power()
326 t->ht[6] = t->ht[7] = mt76x02_rate_power_val(val >> 8); in mt76x2_get_rate_power()
329 t->ht[8] = t->ht[9] = mt76x02_rate_power_val(val); in mt76x2_get_rate_power()
330 t->ht[10] = t->ht[11] = mt76x02_rate_power_val(val >> 8); in mt76x2_get_rate_power()
333 t->ht[12] = t->ht[13] = mt76x02_rate_power_val(val); in mt76x2_get_rate_power()
334 t->ht[14] = t->ht[15] = mt76x02_rate_power_val(val >> 8); in mt76x2_get_rate_power()
339 t->vht[0] = t->vht[1] = mt76x02_rate_power_val(val >> 8); in mt76x2_get_rate_power()
345 struct mt76x2_tx_power_info *t, in mt76x2_get_power_info_2g() argument
363 t->chain[chain].tssi_slope = data[0]; in mt76x2_get_power_info_2g()
364 t->chain[chain].tssi_offset = data[1]; in mt76x2_get_power_info_2g()
365 t->chain[chain].target_power = data[2]; in mt76x2_get_power_info_2g()
366 t->chain[chain].delta = in mt76x2_get_power_info_2g()
370 t->target_power = val >> 8; in mt76x2_get_power_info_2g()
375 struct mt76x2_tx_power_info *t, in mt76x2_get_power_info_5g() argument
415 t->chain[chain].tssi_slope = data[0]; in mt76x2_get_power_info_5g()
416 t->chain[chain].tssi_offset = data[1]; in mt76x2_get_power_info_5g()
417 t->chain[chain].target_power = data[2]; in mt76x2_get_power_info_5g()
418 t->chain[chain].delta = in mt76x2_get_power_info_5g()
422 t->target_power = val & 0xff; in mt76x2_get_power_info_5g()
426 struct mt76x2_tx_power_info *t, in mt76x2_get_power_info() argument
431 memset(t, 0, sizeof(*t)); in mt76x2_get_power_info()
438 mt76x2_get_power_info_5g(dev, t, chan, 0, in mt76x2_get_power_info()
440 mt76x2_get_power_info_5g(dev, t, chan, 1, in mt76x2_get_power_info()
443 mt76x2_get_power_info_2g(dev, t, chan, 0, in mt76x2_get_power_info()
445 mt76x2_get_power_info_2g(dev, t, chan, 1, in mt76x2_get_power_info()
450 !mt76x02_field_valid(t->target_power)) in mt76x2_get_power_info()
451 t->target_power = t->chain[0].target_power; in mt76x2_get_power_info()
453 t->delta_bw40 = mt76x02_rate_power_val(bw40); in mt76x2_get_power_info()
454 t->delta_bw80 = mt76x02_rate_power_val(bw80); in mt76x2_get_power_info()
458 int mt76x2_get_temp_comp(struct mt76x02_dev *dev, struct mt76x2_temp_comp *t) in mt76x2_get_temp_comp() argument
464 memset(t, 0, sizeof(*t)); in mt76x2_get_temp_comp()
473 t->temp_25_ref = val & 0x7f; in mt76x2_get_temp_comp()
483 t->high_slope = slope & 0xff; in mt76x2_get_temp_comp()
484 t->low_slope = slope >> 8; in mt76x2_get_temp_comp()
485 t->lower_bound = 0 - (bounds & 0xf); in mt76x2_get_temp_comp()
486 t->upper_bound = (bounds >> 4) & 0xf; in mt76x2_get_temp_comp()