Lines Matching refs:pdesc
289 __le32 *pdesc = (__le32 *)pdesc8; in rtl92cu_rx_query_desc() local
290 u32 phystatus = get_rx_desc_phy_status(pdesc); in rtl92cu_rx_query_desc()
292 stats->length = (u16)get_rx_desc_pkt_len(pdesc); in rtl92cu_rx_query_desc()
293 stats->rx_drvinfo_size = (u8)get_rx_desc_drvinfo_size(pdesc) * in rtl92cu_rx_query_desc()
295 stats->rx_bufshift = (u8)(get_rx_desc_shift(pdesc) & 0x03); in rtl92cu_rx_query_desc()
296 stats->icv = (u16)get_rx_desc_icv(pdesc); in rtl92cu_rx_query_desc()
297 stats->crc = (u16)get_rx_desc_crc32(pdesc); in rtl92cu_rx_query_desc()
299 stats->decrypted = !get_rx_desc_swdec(pdesc); in rtl92cu_rx_query_desc()
300 stats->rate = (u8)get_rx_desc_rx_mcs(pdesc); in rtl92cu_rx_query_desc()
301 stats->shortpreamble = (u16)get_rx_desc_splcp(pdesc); in rtl92cu_rx_query_desc()
302 stats->isampdu = (bool)(get_rx_desc_paggr(pdesc) == 1); in rtl92cu_rx_query_desc()
303 stats->isfirst_ampdu = (bool)((get_rx_desc_paggr(pdesc) == 1) && in rtl92cu_rx_query_desc()
304 (get_rx_desc_faggr(pdesc) == 1)); in rtl92cu_rx_query_desc()
305 stats->timestamp_low = get_rx_desc_tsfl(pdesc); in rtl92cu_rx_query_desc()
306 stats->rx_is40mhzpacket = (bool)get_rx_desc_bw(pdesc); in rtl92cu_rx_query_desc()
307 stats->is_ht = (bool)get_rx_desc_rx_ht(pdesc); in rtl92cu_rx_query_desc()
310 if (get_rx_desc_crc32(pdesc)) in rtl92cu_rx_query_desc()
312 if (!get_rx_desc_swdec(pdesc)) in rtl92cu_rx_query_desc()
314 if (get_rx_desc_bw(pdesc)) in rtl92cu_rx_query_desc()
316 if (get_rx_desc_rx_ht(pdesc)) in rtl92cu_rx_query_desc()
323 rx_status->mactime = get_rx_desc_tsfl(pdesc); in rtl92cu_rx_query_desc()
606 __le32 *pdesc = (__le32 *)pdesc8; in rtl92cu_fill_fake_txdesc() local
609 memset(pdesc, 0, RTL_TX_HEADER_SIZE); in rtl92cu_fill_fake_txdesc()
610 set_tx_desc_first_seg(pdesc, 1); /* bFirstSeg; */ in rtl92cu_fill_fake_txdesc()
611 set_tx_desc_last_seg(pdesc, 1); /* bLastSeg; */ in rtl92cu_fill_fake_txdesc()
612 set_tx_desc_offset(pdesc, RTL_TX_HEADER_SIZE); /* Offset = 32 */ in rtl92cu_fill_fake_txdesc()
613 set_tx_desc_pkt_size(pdesc, buffer_len); /* Buffer size + command hdr */ in rtl92cu_fill_fake_txdesc()
614 set_tx_desc_queue_sel(pdesc, QSLT_MGNT); /* Fixed queue of Mgnt queue */ in rtl92cu_fill_fake_txdesc()
618 set_tx_desc_nav_use_hdr(pdesc, 1); in rtl92cu_fill_fake_txdesc()
620 set_tx_desc_hwseq_en(pdesc, 1); /* Hw set sequence number */ in rtl92cu_fill_fake_txdesc()
621 set_tx_desc_pkt_id(pdesc, BIT(3)); /* set bit3 to 1. */ in rtl92cu_fill_fake_txdesc()
623 set_tx_desc_use_rate(pdesc, 1); /* use data rate which is set by Sw */ in rtl92cu_fill_fake_txdesc()
624 set_tx_desc_own(pdesc, 1); in rtl92cu_fill_fake_txdesc()
625 set_tx_desc_tx_rate(pdesc, DESC_RATE1M); in rtl92cu_fill_fake_txdesc()
626 _rtl_tx_desc_checksum(pdesc); in rtl92cu_fill_fake_txdesc()
637 __le32 *pdesc = (__le32 *)pdesc8; in rtl92cu_tx_fill_cmddesc() local
639 memset((void *)pdesc, 0, RTL_TX_HEADER_SIZE); in rtl92cu_tx_fill_cmddesc()
641 set_tx_desc_offset(pdesc, RTL_TX_HEADER_SIZE); in rtl92cu_tx_fill_cmddesc()
642 set_tx_desc_tx_rate(pdesc, DESC_RATE1M); in rtl92cu_tx_fill_cmddesc()
643 set_tx_desc_seq(pdesc, 0); in rtl92cu_tx_fill_cmddesc()
644 set_tx_desc_linip(pdesc, 0); in rtl92cu_tx_fill_cmddesc()
645 set_tx_desc_queue_sel(pdesc, fw_queue); in rtl92cu_tx_fill_cmddesc()
646 set_tx_desc_first_seg(pdesc, 1); in rtl92cu_tx_fill_cmddesc()
647 set_tx_desc_last_seg(pdesc, 1); in rtl92cu_tx_fill_cmddesc()
648 set_tx_desc_rate_id(pdesc, 7); in rtl92cu_tx_fill_cmddesc()
649 set_tx_desc_macid(pdesc, 0); in rtl92cu_tx_fill_cmddesc()
650 set_tx_desc_own(pdesc, 1); in rtl92cu_tx_fill_cmddesc()
651 set_tx_desc_pkt_size(pdesc, (u16)skb->len); in rtl92cu_tx_fill_cmddesc()
652 set_tx_desc_first_seg(pdesc, 1); in rtl92cu_tx_fill_cmddesc()
653 set_tx_desc_last_seg(pdesc, 1); in rtl92cu_tx_fill_cmddesc()
654 set_tx_desc_offset(pdesc, 0x20); in rtl92cu_tx_fill_cmddesc()
655 set_tx_desc_use_rate(pdesc, 1); in rtl92cu_tx_fill_cmddesc()
657 set_tx_desc_hwseq_en(pdesc, 1); in rtl92cu_tx_fill_cmddesc()
658 set_tx_desc_pkt_id(pdesc, 8); in rtl92cu_tx_fill_cmddesc()
661 pdesc, RTL_TX_DESC_SIZE); in rtl92cu_tx_fill_cmddesc()