Lines Matching refs:txdesc

473 static void _rtl_fill_usb_tx_desc(u8 *txdesc)  in _rtl_fill_usb_tx_desc()  argument
475 SET_TX_DESC_OWN(txdesc, 1); in _rtl_fill_usb_tx_desc()
476 SET_TX_DESC_LAST_SEG(txdesc, 1); in _rtl_fill_usb_tx_desc()
477 SET_TX_DESC_FIRST_SEG(txdesc, 1); in _rtl_fill_usb_tx_desc()
482 static void _rtl_tx_desc_checksum(u8 *txdesc) in _rtl_tx_desc_checksum() argument
484 u16 *ptr = (u16 *)txdesc; in _rtl_tx_desc_checksum()
489 SET_TX_DESC_TX_DESC_CHECKSUM(txdesc, 0); in _rtl_tx_desc_checksum()
492 SET_TX_DESC_TX_DESC_CHECKSUM(txdesc, checksum); in _rtl_tx_desc_checksum()
515 u8 *txdesc; in rtl92cu_tx_fill_desc() local
519 txdesc = (u8 *)skb_push(skb, RTL_TX_HEADER_SIZE); in rtl92cu_tx_fill_desc()
520 memset(txdesc, 0, RTL_TX_HEADER_SIZE); in rtl92cu_tx_fill_desc()
521 SET_TX_DESC_PKT_SIZE(txdesc, pktlen); in rtl92cu_tx_fill_desc()
522 SET_TX_DESC_LINIP(txdesc, 0); in rtl92cu_tx_fill_desc()
523 SET_TX_DESC_PKT_OFFSET(txdesc, RTL_DUMMY_OFFSET); in rtl92cu_tx_fill_desc()
524 SET_TX_DESC_OFFSET(txdesc, RTL_TX_HEADER_SIZE); in rtl92cu_tx_fill_desc()
525 SET_TX_DESC_TX_RATE(txdesc, tcb_desc->hw_rate); in rtl92cu_tx_fill_desc()
527 SET_TX_DESC_DATA_SHORTGI(txdesc, 1); in rtl92cu_tx_fill_desc()
530 SET_TX_DESC_AGG_ENABLE(txdesc, 1); in rtl92cu_tx_fill_desc()
531 SET_TX_DESC_MAX_AGG_NUM(txdesc, 0x14); in rtl92cu_tx_fill_desc()
533 SET_TX_DESC_AGG_BREAK(txdesc, 1); in rtl92cu_tx_fill_desc()
535 SET_TX_DESC_SEQ(txdesc, seq_number); in rtl92cu_tx_fill_desc()
536 SET_TX_DESC_RTS_ENABLE(txdesc, ((tcb_desc->rts_enable && in rtl92cu_tx_fill_desc()
538 SET_TX_DESC_HW_RTS_ENABLE(txdesc, ((tcb_desc->rts_enable || in rtl92cu_tx_fill_desc()
540 SET_TX_DESC_CTS2SELF(txdesc, ((tcb_desc->cts_enable) ? 1 : 0)); in rtl92cu_tx_fill_desc()
541 SET_TX_DESC_RTS_STBC(txdesc, ((tcb_desc->rts_stbc) ? 1 : 0)); in rtl92cu_tx_fill_desc()
542 SET_TX_DESC_RTS_RATE(txdesc, tcb_desc->rts_rate); in rtl92cu_tx_fill_desc()
543 SET_TX_DESC_RTS_BW(txdesc, 0); in rtl92cu_tx_fill_desc()
544 SET_TX_DESC_RTS_SC(txdesc, tcb_desc->rts_sc); in rtl92cu_tx_fill_desc()
545 SET_TX_DESC_RTS_SHORT(txdesc, in rtl92cu_tx_fill_desc()
551 SET_TX_DESC_DATA_BW(txdesc, 1); in rtl92cu_tx_fill_desc()
552 SET_TX_DESC_DATA_SC(txdesc, 3); in rtl92cu_tx_fill_desc()
554 SET_TX_DESC_DATA_BW(txdesc, 1); in rtl92cu_tx_fill_desc()
555 SET_TX_DESC_DATA_SC(txdesc, mac->cur_40_prime_sc); in rtl92cu_tx_fill_desc()
557 SET_TX_DESC_DATA_BW(txdesc, 0); in rtl92cu_tx_fill_desc()
558 SET_TX_DESC_DATA_SC(txdesc, 0); in rtl92cu_tx_fill_desc()
561 SET_TX_DESC_DATA_BW(txdesc, 0); in rtl92cu_tx_fill_desc()
562 SET_TX_DESC_DATA_SC(txdesc, 0); in rtl92cu_tx_fill_desc()
568 SET_TX_DESC_AMPDU_DENSITY(txdesc, ampdu_density); in rtl92cu_tx_fill_desc()
577 SET_TX_DESC_SEC_TYPE(txdesc, 0x1); in rtl92cu_tx_fill_desc()
580 SET_TX_DESC_SEC_TYPE(txdesc, 0x3); in rtl92cu_tx_fill_desc()
583 SET_TX_DESC_SEC_TYPE(txdesc, 0x0); in rtl92cu_tx_fill_desc()
587 SET_TX_DESC_PKT_ID(txdesc, 0); in rtl92cu_tx_fill_desc()
588 SET_TX_DESC_QUEUE_SEL(txdesc, fw_qsel); in rtl92cu_tx_fill_desc()
589 SET_TX_DESC_DATA_RATE_FB_LIMIT(txdesc, 0x1F); in rtl92cu_tx_fill_desc()
590 SET_TX_DESC_RTS_RATE_FB_LIMIT(txdesc, 0xF); in rtl92cu_tx_fill_desc()
591 SET_TX_DESC_DISABLE_FB(txdesc, 0); in rtl92cu_tx_fill_desc()
592 SET_TX_DESC_USE_RATE(txdesc, tcb_desc->use_driver_rate ? 1 : 0); in rtl92cu_tx_fill_desc()
597 SET_TX_DESC_RDG_ENABLE(txdesc, 1); in rtl92cu_tx_fill_desc()
598 SET_TX_DESC_HTC(txdesc, 1); in rtl92cu_tx_fill_desc()
602 SET_TX_DESC_RATE_ID(txdesc, tcb_desc->ratr_index); in rtl92cu_tx_fill_desc()
603 SET_TX_DESC_MACID(txdesc, tcb_desc->mac_id); in rtl92cu_tx_fill_desc()
605 SET_TX_DESC_RATE_ID(txdesc, 0xC + tcb_desc->ratr_index); in rtl92cu_tx_fill_desc()
606 SET_TX_DESC_MACID(txdesc, tcb_desc->ratr_index); in rtl92cu_tx_fill_desc()
610 SET_TX_DESC_HWSEQ_EN(txdesc, 1); in rtl92cu_tx_fill_desc()
611 SET_TX_DESC_PKT_ID(txdesc, 8); in rtl92cu_tx_fill_desc()
613 SET_TX_DESC_QOS(txdesc, 1); in rtl92cu_tx_fill_desc()
616 SET_TX_DESC_MORE_FRAG(txdesc, 1); in rtl92cu_tx_fill_desc()
619 SET_TX_DESC_BMC(txdesc, 1); in rtl92cu_tx_fill_desc()
620 _rtl_fill_usb_tx_desc(txdesc); in rtl92cu_tx_fill_desc()
621 _rtl_tx_desc_checksum(txdesc); in rtl92cu_tx_fill_desc()