Lines Matching refs:ptcb_desc

339 static void _rtl88ee_insert_emcontent(struct rtl_tcb_desc *ptcb_desc,  in _rtl88ee_insert_emcontent()  argument
345 SET_EARLYMODE_PKTNUM(virtualaddress, ptcb_desc->empkt_num); in _rtl88ee_insert_emcontent()
346 if (ptcb_desc->empkt_num == 1) { in _rtl88ee_insert_emcontent()
347 dwtmp = ptcb_desc->empkt_len[0]; in _rtl88ee_insert_emcontent()
349 dwtmp = ptcb_desc->empkt_len[0]; in _rtl88ee_insert_emcontent()
351 dwtmp += ptcb_desc->empkt_len[1]; in _rtl88ee_insert_emcontent()
355 if (ptcb_desc->empkt_num <= 3) { in _rtl88ee_insert_emcontent()
356 dwtmp = ptcb_desc->empkt_len[2]; in _rtl88ee_insert_emcontent()
358 dwtmp = ptcb_desc->empkt_len[2]; in _rtl88ee_insert_emcontent()
360 dwtmp += ptcb_desc->empkt_len[3]; in _rtl88ee_insert_emcontent()
363 if (ptcb_desc->empkt_num <= 5) { in _rtl88ee_insert_emcontent()
364 dwtmp = ptcb_desc->empkt_len[4]; in _rtl88ee_insert_emcontent()
366 dwtmp = ptcb_desc->empkt_len[4]; in _rtl88ee_insert_emcontent()
368 dwtmp += ptcb_desc->empkt_len[5]; in _rtl88ee_insert_emcontent()
372 if (ptcb_desc->empkt_num <= 7) { in _rtl88ee_insert_emcontent()
373 dwtmp = ptcb_desc->empkt_len[6]; in _rtl88ee_insert_emcontent()
375 dwtmp = ptcb_desc->empkt_len[6]; in _rtl88ee_insert_emcontent()
377 dwtmp += ptcb_desc->empkt_len[7]; in _rtl88ee_insert_emcontent()
380 if (ptcb_desc->empkt_num <= 9) { in _rtl88ee_insert_emcontent()
381 dwtmp = ptcb_desc->empkt_len[8]; in _rtl88ee_insert_emcontent()
383 dwtmp = ptcb_desc->empkt_len[8]; in _rtl88ee_insert_emcontent()
385 dwtmp += ptcb_desc->empkt_len[9]; in _rtl88ee_insert_emcontent()
502 u8 hw_queue, struct rtl_tcb_desc *ptcb_desc) in rtl88ee_tx_fill_desc() argument
532 rtl_get_tcb_desc(hw, info, sta, skb, ptcb_desc); in rtl88ee_tx_fill_desc()
556 if (ptcb_desc->empkt_num) { in rtl88ee_tx_fill_desc()
559 ptcb_desc->empkt_num); in rtl88ee_tx_fill_desc()
560 _rtl88ee_insert_emcontent(ptcb_desc, in rtl88ee_tx_fill_desc()
567 ptcb_desc->use_driver_rate = true; in rtl88ee_tx_fill_desc()
568 SET_TX_DESC_TX_RATE(pdesc, ptcb_desc->hw_rate); in rtl88ee_tx_fill_desc()
569 if (ptcb_desc->hw_rate > DESC92C_RATEMCS0) in rtl88ee_tx_fill_desc()
570 short_gi = (ptcb_desc->use_shortgi) ? 1 : 0; in rtl88ee_tx_fill_desc()
572 short_gi = (ptcb_desc->use_shortpreamble) ? 1 : 0; in rtl88ee_tx_fill_desc()
581 SET_TX_DESC_RTS_ENABLE(pdesc, ((ptcb_desc->rts_enable && in rtl88ee_tx_fill_desc()
582 !ptcb_desc->cts_enable) ? 1 : 0)); in rtl88ee_tx_fill_desc()
584 SET_TX_DESC_CTS2SELF(pdesc, ((ptcb_desc->cts_enable) ? 1 : 0)); in rtl88ee_tx_fill_desc()
585 SET_TX_DESC_RTS_STBC(pdesc, ((ptcb_desc->rts_stbc) ? 1 : 0)); in rtl88ee_tx_fill_desc()
587 SET_TX_DESC_RTS_RATE(pdesc, ptcb_desc->rts_rate); in rtl88ee_tx_fill_desc()
589 SET_TX_DESC_RTS_SC(pdesc, ptcb_desc->rts_sc); in rtl88ee_tx_fill_desc()
591 ((ptcb_desc->rts_rate <= DESC92C_RATE54M) ? in rtl88ee_tx_fill_desc()
592 (ptcb_desc->rts_use_shortpreamble ? 1 : 0) : in rtl88ee_tx_fill_desc()
593 (ptcb_desc->rts_use_shortgi ? 1 : 0))); in rtl88ee_tx_fill_desc()
595 if (ptcb_desc->tx_enable_sw_calc_duration) in rtl88ee_tx_fill_desc()
599 if (ptcb_desc->packet_bw == HT_CHANNEL_WIDTH_20_40) { in rtl88ee_tx_fill_desc()
641 SET_TX_DESC_DISABLE_FB(pdesc, ptcb_desc->disable_ratefallback ? in rtl88ee_tx_fill_desc()
643 SET_TX_DESC_USE_RATE(pdesc, ptcb_desc->use_driver_rate ? 1 : 0); in rtl88ee_tx_fill_desc()
649 if (!ptcb_desc->use_driver_rate) { in rtl88ee_tx_fill_desc()
668 SET_TX_DESC_RATE_ID(pdesc, ptcb_desc->ratr_index); in rtl88ee_tx_fill_desc()
669 SET_TX_DESC_MACID(pdesc, ptcb_desc->mac_id); in rtl88ee_tx_fill_desc()
671 SET_TX_DESC_RATE_ID(pdesc, 0xC + ptcb_desc->ratr_index); in rtl88ee_tx_fill_desc()
672 SET_TX_DESC_MACID(pdesc, ptcb_desc->ratr_index); in rtl88ee_tx_fill_desc()
685 rtl88e_dm_set_tx_ant_by_tx_info(hw, pdesc, ptcb_desc->mac_id); in rtl88ee_tx_fill_desc()