Lines Matching refs:pkt_info

35 void rtw_tx_fill_tx_desc(struct rtw_tx_pkt_info *pkt_info, struct sk_buff *skb)  in rtw_tx_fill_tx_desc()  argument
39 SET_TX_DESC_TXPKTSIZE(txdesc, pkt_info->tx_pkt_size); in rtw_tx_fill_tx_desc()
40 SET_TX_DESC_OFFSET(txdesc, pkt_info->offset); in rtw_tx_fill_tx_desc()
41 SET_TX_DESC_PKT_OFFSET(txdesc, pkt_info->pkt_offset); in rtw_tx_fill_tx_desc()
42 SET_TX_DESC_QSEL(txdesc, pkt_info->qsel); in rtw_tx_fill_tx_desc()
43 SET_TX_DESC_BMC(txdesc, pkt_info->bmc); in rtw_tx_fill_tx_desc()
44 SET_TX_DESC_RATE_ID(txdesc, pkt_info->rate_id); in rtw_tx_fill_tx_desc()
45 SET_TX_DESC_DATARATE(txdesc, pkt_info->rate); in rtw_tx_fill_tx_desc()
46 SET_TX_DESC_DISDATAFB(txdesc, pkt_info->dis_rate_fallback); in rtw_tx_fill_tx_desc()
47 SET_TX_DESC_USE_RATE(txdesc, pkt_info->use_rate); in rtw_tx_fill_tx_desc()
48 SET_TX_DESC_SEC_TYPE(txdesc, pkt_info->sec_type); in rtw_tx_fill_tx_desc()
49 SET_TX_DESC_DATA_BW(txdesc, pkt_info->bw); in rtw_tx_fill_tx_desc()
50 SET_TX_DESC_SW_SEQ(txdesc, pkt_info->seq); in rtw_tx_fill_tx_desc()
51 SET_TX_DESC_MAX_AGG_NUM(txdesc, pkt_info->ampdu_factor); in rtw_tx_fill_tx_desc()
52 SET_TX_DESC_AMPDU_DENSITY(txdesc, pkt_info->ampdu_density); in rtw_tx_fill_tx_desc()
53 SET_TX_DESC_DATA_STBC(txdesc, pkt_info->stbc); in rtw_tx_fill_tx_desc()
54 SET_TX_DESC_DATA_LDPC(txdesc, pkt_info->ldpc); in rtw_tx_fill_tx_desc()
55 SET_TX_DESC_AGG_EN(txdesc, pkt_info->ampdu_en); in rtw_tx_fill_tx_desc()
56 SET_TX_DESC_LS(txdesc, pkt_info->ls); in rtw_tx_fill_tx_desc()
57 SET_TX_DESC_DATA_SHORT(txdesc, pkt_info->short_gi); in rtw_tx_fill_tx_desc()
58 SET_TX_DESC_SPE_RPT(txdesc, pkt_info->report); in rtw_tx_fill_tx_desc()
59 SET_TX_DESC_SW_DEFINE(txdesc, pkt_info->sn); in rtw_tx_fill_tx_desc()
60 SET_TX_DESC_USE_RTS(txdesc, pkt_info->rts); in rtw_tx_fill_tx_desc()
61 SET_TX_DESC_DISQSELSEQ(txdesc, pkt_info->dis_qselseq); in rtw_tx_fill_tx_desc()
62 SET_TX_DESC_EN_HWSEQ(txdesc, pkt_info->en_hwseq); in rtw_tx_fill_tx_desc()
63 SET_TX_DESC_HW_SSN_SEL(txdesc, pkt_info->hw_ssn_sel); in rtw_tx_fill_tx_desc()
64 SET_TX_DESC_NAVUSEHDR(txdesc, pkt_info->nav_use_hdr); in rtw_tx_fill_tx_desc()
65 SET_TX_DESC_BT_NULL(txdesc, pkt_info->bt_null); in rtw_tx_fill_tx_desc()
140 struct rtw_tx_pkt_info *pkt_info) in rtw_tx_report_enable() argument
148 pkt_info->sn = (atomic_inc_return(&tx_report->sn) << 2) & 0xfc; in rtw_tx_report_enable()
149 pkt_info->report = true; in rtw_tx_report_enable()
233 struct rtw_tx_pkt_info *pkt_info, in rtw_tx_pkt_info_update_rate() argument
237 pkt_info->rate_id = RTW_RATEID_B_20M; in rtw_tx_pkt_info_update_rate()
238 pkt_info->rate = DESC_RATE1M; in rtw_tx_pkt_info_update_rate()
240 pkt_info->rate_id = RTW_RATEID_G; in rtw_tx_pkt_info_update_rate()
241 pkt_info->rate = DESC_RATE6M; in rtw_tx_pkt_info_update_rate()
243 pkt_info->use_rate = true; in rtw_tx_pkt_info_update_rate()
244 pkt_info->dis_rate_fallback = true; in rtw_tx_pkt_info_update_rate()
248 struct rtw_tx_pkt_info *pkt_info, in rtw_tx_pkt_info_update_sec() argument
271 pkt_info->sec_type = sec_type; in rtw_tx_pkt_info_update_sec()
275 struct rtw_tx_pkt_info *pkt_info, in rtw_tx_mgmt_pkt_info_update() argument
279 rtw_tx_pkt_info_update_rate(rtwdev, pkt_info, skb); in rtw_tx_mgmt_pkt_info_update()
280 pkt_info->dis_qselseq = true; in rtw_tx_mgmt_pkt_info_update()
281 pkt_info->en_hwseq = true; in rtw_tx_mgmt_pkt_info_update()
282 pkt_info->hw_ssn_sel = 0; in rtw_tx_mgmt_pkt_info_update()
287 struct rtw_tx_pkt_info *pkt_info, in rtw_tx_data_pkt_info_update() argument
317 pkt_info->rts = true; in rtw_tx_data_pkt_info_update()
336 pkt_info->seq = seq; in rtw_tx_data_pkt_info_update()
337 pkt_info->ampdu_factor = ampdu_factor; in rtw_tx_data_pkt_info_update()
338 pkt_info->ampdu_density = ampdu_density; in rtw_tx_data_pkt_info_update()
339 pkt_info->ampdu_en = ampdu_en; in rtw_tx_data_pkt_info_update()
340 pkt_info->rate = rate; in rtw_tx_data_pkt_info_update()
341 pkt_info->rate_id = rate_id; in rtw_tx_data_pkt_info_update()
342 pkt_info->bw = bw; in rtw_tx_data_pkt_info_update()
343 pkt_info->stbc = stbc; in rtw_tx_data_pkt_info_update()
344 pkt_info->ldpc = ldpc; in rtw_tx_data_pkt_info_update()
348 struct rtw_tx_pkt_info *pkt_info, in rtw_tx_pkt_info_update() argument
366 rtw_tx_mgmt_pkt_info_update(rtwdev, pkt_info, sta, skb); in rtw_tx_pkt_info_update()
368 rtw_tx_data_pkt_info_update(rtwdev, pkt_info, sta, skb); in rtw_tx_pkt_info_update()
374 rtw_tx_report_enable(rtwdev, pkt_info); in rtw_tx_pkt_info_update()
376 pkt_info->bmc = bmc; in rtw_tx_pkt_info_update()
377 rtw_tx_pkt_info_update_sec(rtwdev, pkt_info, skb); in rtw_tx_pkt_info_update()
378 pkt_info->tx_pkt_size = skb->len; in rtw_tx_pkt_info_update()
379 pkt_info->offset = chip->tx_pkt_desc_sz; in rtw_tx_pkt_info_update()
380 pkt_info->qsel = skb->priority; in rtw_tx_pkt_info_update()
381 pkt_info->ls = true; in rtw_tx_pkt_info_update()
388 struct rtw_tx_pkt_info *pkt_info, in rtw_tx_rsvd_page_pkt_info_update() argument
400 pkt_info->qsel = TX_DESC_QSEL_MGMT; in rtw_tx_rsvd_page_pkt_info_update()
402 rtw_tx_pkt_info_update_rate(rtwdev, pkt_info, skb); in rtw_tx_rsvd_page_pkt_info_update()
406 pkt_info->bmc = bmc; in rtw_tx_rsvd_page_pkt_info_update()
407 pkt_info->tx_pkt_size = skb->len; in rtw_tx_rsvd_page_pkt_info_update()
408 pkt_info->offset = chip->tx_pkt_desc_sz; in rtw_tx_rsvd_page_pkt_info_update()
409 pkt_info->ls = true; in rtw_tx_rsvd_page_pkt_info_update()
411 pkt_info->nav_use_hdr = true; in rtw_tx_rsvd_page_pkt_info_update()
413 pkt_info->dis_qselseq = true; in rtw_tx_rsvd_page_pkt_info_update()
414 pkt_info->en_hwseq = true; in rtw_tx_rsvd_page_pkt_info_update()
415 pkt_info->hw_ssn_sel = 0; in rtw_tx_rsvd_page_pkt_info_update()
418 pkt_info->bt_null = true; in rtw_tx_rsvd_page_pkt_info_update()
420 rtw_tx_pkt_info_update_sec(rtwdev, pkt_info, skb); in rtw_tx_rsvd_page_pkt_info_update()
427 struct rtw_tx_pkt_info *pkt_info, in rtw_tx_write_data_rsvd_page_get() argument
445 rtw_tx_rsvd_page_pkt_info_update(rtwdev, pkt_info, skb, RSVD_BEACON); in rtw_tx_write_data_rsvd_page_get()
453 struct rtw_tx_pkt_info *pkt_info, in rtw_tx_write_data_h2c_get() argument
471 pkt_info->tx_pkt_size = size; in rtw_tx_write_data_h2c_get()
481 struct rtw_tx_pkt_info pkt_info = {0}; in rtw_tx() local
484 rtw_tx_pkt_info_update(rtwdev, &pkt_info, control->sta, skb); in rtw_tx()
485 ret = rtw_hci_tx_write(rtwdev, &pkt_info, skb); in rtw_tx()
536 struct rtw_tx_pkt_info pkt_info = {0}; in rtw_txq_push_skb() local
541 rtw_tx_pkt_info_update(rtwdev, &pkt_info, txq->sta, skb); in rtw_txq_push_skb()
542 ret = rtw_hci_tx_write(rtwdev, &pkt_info, skb); in rtw_txq_push_skb()