Lines Matching refs:ptcb_desc

335 static void rtl8821ae_insert_emcontent(struct rtl_tcb_desc *ptcb_desc,  in rtl8821ae_insert_emcontent()  argument
342 set_earlymode_pktnum(virtualaddress, ptcb_desc->empkt_num); in rtl8821ae_insert_emcontent()
343 if (ptcb_desc->empkt_num == 1) { in rtl8821ae_insert_emcontent()
344 dwtmp = ptcb_desc->empkt_len[0]; in rtl8821ae_insert_emcontent()
346 dwtmp = ptcb_desc->empkt_len[0]; in rtl8821ae_insert_emcontent()
348 dwtmp += ptcb_desc->empkt_len[1]; in rtl8821ae_insert_emcontent()
352 if (ptcb_desc->empkt_num <= 3) { in rtl8821ae_insert_emcontent()
353 dwtmp = ptcb_desc->empkt_len[2]; in rtl8821ae_insert_emcontent()
355 dwtmp = ptcb_desc->empkt_len[2]; in rtl8821ae_insert_emcontent()
357 dwtmp += ptcb_desc->empkt_len[3]; in rtl8821ae_insert_emcontent()
360 if (ptcb_desc->empkt_num <= 5) { in rtl8821ae_insert_emcontent()
361 dwtmp = ptcb_desc->empkt_len[4]; in rtl8821ae_insert_emcontent()
363 dwtmp = ptcb_desc->empkt_len[4]; in rtl8821ae_insert_emcontent()
365 dwtmp += ptcb_desc->empkt_len[5]; in rtl8821ae_insert_emcontent()
369 if (ptcb_desc->empkt_num <= 7) { in rtl8821ae_insert_emcontent()
370 dwtmp = ptcb_desc->empkt_len[6]; in rtl8821ae_insert_emcontent()
372 dwtmp = ptcb_desc->empkt_len[6]; in rtl8821ae_insert_emcontent()
374 dwtmp += ptcb_desc->empkt_len[7]; in rtl8821ae_insert_emcontent()
377 if (ptcb_desc->empkt_num <= 9) { in rtl8821ae_insert_emcontent()
378 dwtmp = ptcb_desc->empkt_len[8]; in rtl8821ae_insert_emcontent()
380 dwtmp = ptcb_desc->empkt_len[8]; in rtl8821ae_insert_emcontent()
382 dwtmp += ptcb_desc->empkt_len[9]; in rtl8821ae_insert_emcontent()
555 struct rtl_tcb_desc *ptcb_desc) in rtl8821ae_bw_mapping() argument
564 rtlphy->current_chan_bw, ptcb_desc->packet_bw); in rtl8821ae_bw_mapping()
567 if (ptcb_desc->packet_bw == HT_CHANNEL_WIDTH_80) in rtl8821ae_bw_mapping()
569 else if (ptcb_desc->packet_bw == HT_CHANNEL_WIDTH_20_40) in rtl8821ae_bw_mapping()
574 if ((ptcb_desc->packet_bw == HT_CHANNEL_WIDTH_20_40) || in rtl8821ae_bw_mapping()
575 (ptcb_desc->packet_bw == HT_CHANNEL_WIDTH_80)) in rtl8821ae_bw_mapping()
586 struct rtl_tcb_desc *ptcb_desc) in rtl8821ae_sc_mapping() argument
594 if (ptcb_desc->packet_bw == HT_CHANNEL_WIDTH_80) { in rtl8821ae_sc_mapping()
596 } else if (ptcb_desc->packet_bw == HT_CHANNEL_WIDTH_20_40) { in rtl8821ae_sc_mapping()
640 if (ptcb_desc->packet_bw == HT_CHANNEL_WIDTH_20_40) { in rtl8821ae_sc_mapping()
642 } else if (ptcb_desc->packet_bw == HT_CHANNEL_WIDTH_20) { in rtl8821ae_sc_mapping()
667 u8 hw_queue, struct rtl_tcb_desc *ptcb_desc) in rtl8821ae_tx_fill_desc() argument
689 rtl_get_tcb_desc(hw, info, sta, skb, ptcb_desc); in rtl8821ae_tx_fill_desc()
713 if (ptcb_desc->empkt_num) { in rtl8821ae_tx_fill_desc()
716 ptcb_desc->empkt_num); in rtl8821ae_tx_fill_desc()
717 rtl8821ae_insert_emcontent(ptcb_desc, in rtl8821ae_tx_fill_desc()
726 set_tx_desc_tx_rate(pdesc, ptcb_desc->hw_rate); in rtl8821ae_tx_fill_desc()
727 if (ptcb_desc->hw_rate > DESC_RATEMCS0) in rtl8821ae_tx_fill_desc()
728 short_gi = (ptcb_desc->use_shortgi) ? 1 : 0; in rtl8821ae_tx_fill_desc()
730 short_gi = (ptcb_desc->use_shortpreamble) ? 1 : 0; in rtl8821ae_tx_fill_desc()
740 ((ptcb_desc->rts_enable && in rtl8821ae_tx_fill_desc()
741 !ptcb_desc->cts_enable) ? 1 : 0)); in rtl8821ae_tx_fill_desc()
743 set_tx_desc_cts2self(pdesc, ((ptcb_desc->cts_enable) ? 1 : 0)); in rtl8821ae_tx_fill_desc()
745 set_tx_desc_rts_rate(pdesc, ptcb_desc->rts_rate); in rtl8821ae_tx_fill_desc()
746 set_tx_desc_rts_sc(pdesc, ptcb_desc->rts_sc); in rtl8821ae_tx_fill_desc()
747 tmp_bool = ((ptcb_desc->rts_rate <= DESC_RATE54M) ? in rtl8821ae_tx_fill_desc()
748 (ptcb_desc->rts_use_shortpreamble ? 1 : 0) : in rtl8821ae_tx_fill_desc()
749 (ptcb_desc->rts_use_shortgi ? 1 : 0)); in rtl8821ae_tx_fill_desc()
752 if (ptcb_desc->tx_enable_sw_calc_duration) in rtl8821ae_tx_fill_desc()
756 rtl8821ae_bw_mapping(hw, ptcb_desc)); in rtl8821ae_tx_fill_desc()
759 rtl8821ae_sc_mapping(hw, ptcb_desc)); in rtl8821ae_tx_fill_desc()
789 set_tx_desc_disable_fb(pdesc, ptcb_desc->disable_ratefallback ? in rtl8821ae_tx_fill_desc()
791 set_tx_desc_use_rate(pdesc, ptcb_desc->use_driver_rate ? 1 : 0); in rtl8821ae_tx_fill_desc()
802 rtl_set_tx_report(ptcb_desc, pdesc8, hw, tx_info); in rtl8821ae_tx_fill_desc()
811 set_tx_desc_rate_id(pdesc, ptcb_desc->ratr_index); in rtl8821ae_tx_fill_desc()
812 set_tx_desc_macid(pdesc, ptcb_desc->mac_id); in rtl8821ae_tx_fill_desc()
814 set_tx_desc_rate_id(pdesc, 0xC + ptcb_desc->ratr_index); in rtl8821ae_tx_fill_desc()
815 set_tx_desc_macid(pdesc, ptcb_desc->mac_id); in rtl8821ae_tx_fill_desc()
827 rtl8821ae_dm_set_tx_ant_by_tx_info(hw, pdesc8, ptcb_desc->mac_id); in rtl8821ae_tx_fill_desc()