Lines Matching refs:ptcb_desc

316 static void rtl88ee_insert_emcontent(struct rtl_tcb_desc *ptcb_desc,  in rtl88ee_insert_emcontent()  argument
322 set_earlymode_pktnum(virtualaddress, ptcb_desc->empkt_num); in rtl88ee_insert_emcontent()
323 if (ptcb_desc->empkt_num == 1) { in rtl88ee_insert_emcontent()
324 dwtmp = ptcb_desc->empkt_len[0]; in rtl88ee_insert_emcontent()
326 dwtmp = ptcb_desc->empkt_len[0]; in rtl88ee_insert_emcontent()
328 dwtmp += ptcb_desc->empkt_len[1]; in rtl88ee_insert_emcontent()
332 if (ptcb_desc->empkt_num <= 3) { in rtl88ee_insert_emcontent()
333 dwtmp = ptcb_desc->empkt_len[2]; in rtl88ee_insert_emcontent()
335 dwtmp = ptcb_desc->empkt_len[2]; in rtl88ee_insert_emcontent()
337 dwtmp += ptcb_desc->empkt_len[3]; in rtl88ee_insert_emcontent()
340 if (ptcb_desc->empkt_num <= 5) { in rtl88ee_insert_emcontent()
341 dwtmp = ptcb_desc->empkt_len[4]; in rtl88ee_insert_emcontent()
343 dwtmp = ptcb_desc->empkt_len[4]; in rtl88ee_insert_emcontent()
345 dwtmp += ptcb_desc->empkt_len[5]; in rtl88ee_insert_emcontent()
349 if (ptcb_desc->empkt_num <= 7) { in rtl88ee_insert_emcontent()
350 dwtmp = ptcb_desc->empkt_len[6]; in rtl88ee_insert_emcontent()
352 dwtmp = ptcb_desc->empkt_len[6]; in rtl88ee_insert_emcontent()
354 dwtmp += ptcb_desc->empkt_len[7]; in rtl88ee_insert_emcontent()
357 if (ptcb_desc->empkt_num <= 9) { in rtl88ee_insert_emcontent()
358 dwtmp = ptcb_desc->empkt_len[8]; in rtl88ee_insert_emcontent()
360 dwtmp = ptcb_desc->empkt_len[8]; in rtl88ee_insert_emcontent()
362 dwtmp += ptcb_desc->empkt_len[9]; in rtl88ee_insert_emcontent()
481 u8 hw_queue, struct rtl_tcb_desc *ptcb_desc) in rtl88ee_tx_fill_desc() argument
511 rtl_get_tcb_desc(hw, info, sta, skb, ptcb_desc); in rtl88ee_tx_fill_desc()
535 if (ptcb_desc->empkt_num) { in rtl88ee_tx_fill_desc()
538 ptcb_desc->empkt_num); in rtl88ee_tx_fill_desc()
539 rtl88ee_insert_emcontent(ptcb_desc, in rtl88ee_tx_fill_desc()
546 ptcb_desc->use_driver_rate = true; in rtl88ee_tx_fill_desc()
547 set_tx_desc_tx_rate(pdesc, ptcb_desc->hw_rate); in rtl88ee_tx_fill_desc()
548 if (ptcb_desc->hw_rate > DESC92C_RATEMCS0) in rtl88ee_tx_fill_desc()
549 short_gi = (ptcb_desc->use_shortgi) ? 1 : 0; in rtl88ee_tx_fill_desc()
551 short_gi = (ptcb_desc->use_shortpreamble) ? 1 : 0; in rtl88ee_tx_fill_desc()
560 set_tx_desc_rts_enable(pdesc, ((ptcb_desc->rts_enable && in rtl88ee_tx_fill_desc()
561 !ptcb_desc->cts_enable) ? 1 : 0)); in rtl88ee_tx_fill_desc()
563 set_tx_desc_cts2self(pdesc, ((ptcb_desc->cts_enable) ? 1 : 0)); in rtl88ee_tx_fill_desc()
564 set_tx_desc_rts_stbc(pdesc, ((ptcb_desc->rts_stbc) ? 1 : 0)); in rtl88ee_tx_fill_desc()
566 set_tx_desc_rts_rate(pdesc, ptcb_desc->rts_rate); in rtl88ee_tx_fill_desc()
568 set_tx_desc_rts_sc(pdesc, ptcb_desc->rts_sc); in rtl88ee_tx_fill_desc()
570 ((ptcb_desc->rts_rate <= DESC92C_RATE54M) ? in rtl88ee_tx_fill_desc()
571 (ptcb_desc->rts_use_shortpreamble ? 1 : 0) : in rtl88ee_tx_fill_desc()
572 (ptcb_desc->rts_use_shortgi ? 1 : 0))); in rtl88ee_tx_fill_desc()
574 if (ptcb_desc->tx_enable_sw_calc_duration) in rtl88ee_tx_fill_desc()
578 if (ptcb_desc->packet_bw == HT_CHANNEL_WIDTH_20_40) { in rtl88ee_tx_fill_desc()
620 set_tx_desc_disable_fb(pdesc, ptcb_desc->disable_ratefallback ? in rtl88ee_tx_fill_desc()
622 set_tx_desc_use_rate(pdesc, ptcb_desc->use_driver_rate ? 1 : 0); in rtl88ee_tx_fill_desc()
628 if (!ptcb_desc->use_driver_rate) { in rtl88ee_tx_fill_desc()
647 set_tx_desc_rate_id(pdesc, ptcb_desc->ratr_index); in rtl88ee_tx_fill_desc()
648 set_tx_desc_macid(pdesc, ptcb_desc->mac_id); in rtl88ee_tx_fill_desc()
650 set_tx_desc_rate_id(pdesc, 0xC + ptcb_desc->ratr_index); in rtl88ee_tx_fill_desc()
651 set_tx_desc_macid(pdesc, ptcb_desc->ratr_index); in rtl88ee_tx_fill_desc()
664 rtl88e_dm_set_tx_ant_by_tx_info(hw, pdesc8, ptcb_desc->mac_id); in rtl88ee_tx_fill_desc()