Lines Matching refs:txdesc

444 static void _rtl_fill_usb_tx_desc(__le32 *txdesc)  in _rtl_fill_usb_tx_desc()  argument
446 set_tx_desc_own(txdesc, 1); in _rtl_fill_usb_tx_desc()
447 set_tx_desc_last_seg(txdesc, 1); in _rtl_fill_usb_tx_desc()
448 set_tx_desc_first_seg(txdesc, 1); in _rtl_fill_usb_tx_desc()
454 static void _rtl_tx_desc_checksum(__le32 *txdesc) in _rtl_tx_desc_checksum() argument
456 __le16 *ptr = (__le16 *)txdesc; in _rtl_tx_desc_checksum()
461 set_tx_desc_tx_desc_checksum(txdesc, 0); in _rtl_tx_desc_checksum()
464 set_tx_desc_tx_desc_checksum(txdesc, checksum); in _rtl_tx_desc_checksum()
488 __le32 *txdesc; in rtl92cu_tx_fill_desc() local
493 txdesc = (__le32 *)txdesc8; in rtl92cu_tx_fill_desc()
494 memset(txdesc, 0, RTL_TX_HEADER_SIZE); in rtl92cu_tx_fill_desc()
495 set_tx_desc_pkt_size(txdesc, pktlen); in rtl92cu_tx_fill_desc()
496 set_tx_desc_linip(txdesc, 0); in rtl92cu_tx_fill_desc()
497 set_tx_desc_pkt_offset(txdesc, RTL_DUMMY_OFFSET); in rtl92cu_tx_fill_desc()
498 set_tx_desc_offset(txdesc, RTL_TX_HEADER_SIZE); in rtl92cu_tx_fill_desc()
499 set_tx_desc_tx_rate(txdesc, tcb_desc->hw_rate); in rtl92cu_tx_fill_desc()
501 set_tx_desc_data_shortgi(txdesc, 1); in rtl92cu_tx_fill_desc()
504 set_tx_desc_agg_enable(txdesc, 1); in rtl92cu_tx_fill_desc()
505 set_tx_desc_max_agg_num(txdesc, 0x14); in rtl92cu_tx_fill_desc()
507 set_tx_desc_agg_break(txdesc, 1); in rtl92cu_tx_fill_desc()
509 set_tx_desc_seq(txdesc, seq_number); in rtl92cu_tx_fill_desc()
510 set_tx_desc_rts_enable(txdesc, in rtl92cu_tx_fill_desc()
513 set_tx_desc_hw_rts_enable(txdesc, in rtl92cu_tx_fill_desc()
516 set_tx_desc_cts2self(txdesc, ((tcb_desc->cts_enable) ? 1 : 0)); in rtl92cu_tx_fill_desc()
517 set_tx_desc_rts_stbc(txdesc, ((tcb_desc->rts_stbc) ? 1 : 0)); in rtl92cu_tx_fill_desc()
518 set_tx_desc_rts_rate(txdesc, tcb_desc->rts_rate); in rtl92cu_tx_fill_desc()
519 set_tx_desc_rts_bw(txdesc, 0); in rtl92cu_tx_fill_desc()
520 set_tx_desc_rts_sc(txdesc, tcb_desc->rts_sc); in rtl92cu_tx_fill_desc()
521 set_tx_desc_rts_short(txdesc, in rtl92cu_tx_fill_desc()
527 set_tx_desc_data_bw(txdesc, 1); in rtl92cu_tx_fill_desc()
528 set_tx_desc_data_sc(txdesc, 3); in rtl92cu_tx_fill_desc()
530 set_tx_desc_data_bw(txdesc, 1); in rtl92cu_tx_fill_desc()
531 set_tx_desc_data_sc(txdesc, mac->cur_40_prime_sc); in rtl92cu_tx_fill_desc()
533 set_tx_desc_data_bw(txdesc, 0); in rtl92cu_tx_fill_desc()
534 set_tx_desc_data_sc(txdesc, 0); in rtl92cu_tx_fill_desc()
537 set_tx_desc_data_bw(txdesc, 0); in rtl92cu_tx_fill_desc()
538 set_tx_desc_data_sc(txdesc, 0); in rtl92cu_tx_fill_desc()
545 set_tx_desc_ampdu_density(txdesc, ampdu_density); in rtl92cu_tx_fill_desc()
555 set_tx_desc_sec_type(txdesc, 0x1); in rtl92cu_tx_fill_desc()
558 set_tx_desc_sec_type(txdesc, 0x3); in rtl92cu_tx_fill_desc()
561 set_tx_desc_sec_type(txdesc, 0x0); in rtl92cu_tx_fill_desc()
565 set_tx_desc_pkt_id(txdesc, 0); in rtl92cu_tx_fill_desc()
566 set_tx_desc_queue_sel(txdesc, fw_qsel); in rtl92cu_tx_fill_desc()
567 set_tx_desc_data_rate_fb_limit(txdesc, 0x1F); in rtl92cu_tx_fill_desc()
568 set_tx_desc_rts_rate_fb_limit(txdesc, 0xF); in rtl92cu_tx_fill_desc()
569 set_tx_desc_disable_fb(txdesc, 0); in rtl92cu_tx_fill_desc()
570 set_tx_desc_use_rate(txdesc, tcb_desc->use_driver_rate ? 1 : 0); in rtl92cu_tx_fill_desc()
575 set_tx_desc_rdg_enable(txdesc, 1); in rtl92cu_tx_fill_desc()
576 set_tx_desc_htc(txdesc, 1); in rtl92cu_tx_fill_desc()
580 set_tx_desc_rate_id(txdesc, tcb_desc->ratr_index); in rtl92cu_tx_fill_desc()
581 set_tx_desc_macid(txdesc, tcb_desc->mac_id); in rtl92cu_tx_fill_desc()
583 set_tx_desc_rate_id(txdesc, 0xC + tcb_desc->ratr_index); in rtl92cu_tx_fill_desc()
584 set_tx_desc_macid(txdesc, tcb_desc->ratr_index); in rtl92cu_tx_fill_desc()
588 set_tx_desc_hwseq_en(txdesc, 1); in rtl92cu_tx_fill_desc()
589 set_tx_desc_pkt_id(txdesc, 8); in rtl92cu_tx_fill_desc()
591 set_tx_desc_qos(txdesc, 1); in rtl92cu_tx_fill_desc()
594 set_tx_desc_more_frag(txdesc, 1); in rtl92cu_tx_fill_desc()
597 set_tx_desc_bmc(txdesc, 1); in rtl92cu_tx_fill_desc()
598 _rtl_fill_usb_tx_desc(txdesc); in rtl92cu_tx_fill_desc()
599 _rtl_tx_desc_checksum(txdesc); in rtl92cu_tx_fill_desc()