Lines Matching refs:pdesc

28 				       struct rx_desc_92c *pdesc,  in _rtl92ce_query_rxphystatus()  argument
43 is_cck_rate = RX_HAL_IS_CCK_RATE(pdesc->rxmcs); in _rtl92ce_query_rxphystatus()
214 struct rx_desc_92c *pdesc, in _rtl92ce_translate_rx_signal_stuff() argument
249 _rtl92ce_query_rxphystatus(hw, pstats, pdesc, p_drvinfo, in _rtl92ce_translate_rx_signal_stuff()
262 struct rx_desc_92c *pdesc = (struct rx_desc_92c *)p_desc8; in rtl92ce_rx_query_desc() local
284 stats->is_cck = RX_HAL_IS_CCK_RATE(pdesc->rxmcs); in rtl92ce_rx_query_desc()
332 skb, stats, pdesc, in rtl92ce_rx_query_desc()
354 __le32 *pdesc = (__le32 *)pdesc8; in rtl92ce_tx_fill_desc() local
389 clear_pci_tx_desc_content(pdesc, sizeof(struct tx_desc_92c)); in rtl92ce_tx_fill_desc()
396 set_tx_desc_offset(pdesc, USB_HWDESC_HEADER_LEN); in rtl92ce_tx_fill_desc()
398 set_tx_desc_tx_rate(pdesc, tcb_desc->hw_rate); in rtl92ce_tx_fill_desc()
401 set_tx_desc_data_shortgi(pdesc, 1); in rtl92ce_tx_fill_desc()
404 set_tx_desc_agg_break(pdesc, 1); in rtl92ce_tx_fill_desc()
405 set_tx_desc_max_agg_num(pdesc, 0x14); in rtl92ce_tx_fill_desc()
407 set_tx_desc_seq(pdesc, seq_number); in rtl92ce_tx_fill_desc()
409 set_tx_desc_rts_enable(pdesc, ((tcb_desc->rts_enable && in rtl92ce_tx_fill_desc()
412 set_tx_desc_hw_rts_enable(pdesc, in rtl92ce_tx_fill_desc()
415 set_tx_desc_cts2self(pdesc, ((tcb_desc->cts_enable) ? 1 : 0)); in rtl92ce_tx_fill_desc()
416 set_tx_desc_rts_stbc(pdesc, ((tcb_desc->rts_stbc) ? 1 : 0)); in rtl92ce_tx_fill_desc()
418 set_tx_desc_rts_rate(pdesc, tcb_desc->rts_rate); in rtl92ce_tx_fill_desc()
419 set_tx_desc_rts_bw(pdesc, 0); in rtl92ce_tx_fill_desc()
420 set_tx_desc_rts_sc(pdesc, tcb_desc->rts_sc); in rtl92ce_tx_fill_desc()
421 set_tx_desc_rts_short(pdesc, in rtl92ce_tx_fill_desc()
428 set_tx_desc_data_bw(pdesc, 1); in rtl92ce_tx_fill_desc()
429 set_tx_desc_tx_sub_carrier(pdesc, 3); in rtl92ce_tx_fill_desc()
431 set_tx_desc_data_bw(pdesc, 0); in rtl92ce_tx_fill_desc()
432 set_tx_desc_tx_sub_carrier(pdesc, in rtl92ce_tx_fill_desc()
436 set_tx_desc_data_bw(pdesc, 0); in rtl92ce_tx_fill_desc()
437 set_tx_desc_tx_sub_carrier(pdesc, 0); in rtl92ce_tx_fill_desc()
440 set_tx_desc_linip(pdesc, 0); in rtl92ce_tx_fill_desc()
441 set_tx_desc_pkt_size(pdesc, (u16)skb->len); in rtl92ce_tx_fill_desc()
446 set_tx_desc_ampdu_density(pdesc, ampdu_density); in rtl92ce_tx_fill_desc()
457 set_tx_desc_sec_type(pdesc, 0x1); in rtl92ce_tx_fill_desc()
460 set_tx_desc_sec_type(pdesc, 0x3); in rtl92ce_tx_fill_desc()
463 set_tx_desc_sec_type(pdesc, 0x0); in rtl92ce_tx_fill_desc()
469 set_tx_desc_pkt_id(pdesc, 0); in rtl92ce_tx_fill_desc()
470 set_tx_desc_queue_sel(pdesc, fw_qsel); in rtl92ce_tx_fill_desc()
472 set_tx_desc_data_rate_fb_limit(pdesc, 0x1F); in rtl92ce_tx_fill_desc()
473 set_tx_desc_rts_rate_fb_limit(pdesc, 0xF); in rtl92ce_tx_fill_desc()
474 set_tx_desc_disable_fb(pdesc, 0); in rtl92ce_tx_fill_desc()
475 set_tx_desc_use_rate(pdesc, tcb_desc->use_driver_rate ? 1 : 0); in rtl92ce_tx_fill_desc()
481 set_tx_desc_rdg_enable(pdesc, 1); in rtl92ce_tx_fill_desc()
482 set_tx_desc_htc(pdesc, 1); in rtl92ce_tx_fill_desc()
488 set_tx_desc_first_seg(pdesc, (firstseg ? 1 : 0)); in rtl92ce_tx_fill_desc()
489 set_tx_desc_last_seg(pdesc, (lastseg ? 1 : 0)); in rtl92ce_tx_fill_desc()
491 set_tx_desc_tx_buffer_size(pdesc, (u16)skb->len); in rtl92ce_tx_fill_desc()
493 set_tx_desc_tx_buffer_address(pdesc, mapping); in rtl92ce_tx_fill_desc()
496 set_tx_desc_rate_id(pdesc, tcb_desc->ratr_index); in rtl92ce_tx_fill_desc()
497 set_tx_desc_macid(pdesc, tcb_desc->mac_id); in rtl92ce_tx_fill_desc()
499 set_tx_desc_rate_id(pdesc, 0xC + tcb_desc->ratr_index); in rtl92ce_tx_fill_desc()
500 set_tx_desc_macid(pdesc, tcb_desc->ratr_index); in rtl92ce_tx_fill_desc()
504 set_tx_desc_hwseq_en(pdesc, 1); in rtl92ce_tx_fill_desc()
505 set_tx_desc_pkt_id(pdesc, 8); in rtl92ce_tx_fill_desc()
508 set_tx_desc_qos(pdesc, 1); in rtl92ce_tx_fill_desc()
511 set_tx_desc_more_frag(pdesc, (lastseg ? 0 : 1)); in rtl92ce_tx_fill_desc()
515 set_tx_desc_bmc(pdesc, 1); in rtl92ce_tx_fill_desc()
528 __le32 *pdesc = (__le32 *)pdesc8; in rtl92ce_tx_fill_cmddesc() local
541 clear_pci_tx_desc_content(pdesc, TX_DESC_SIZE); in rtl92ce_tx_fill_cmddesc()
544 set_tx_desc_offset(pdesc, USB_HWDESC_HEADER_LEN); in rtl92ce_tx_fill_cmddesc()
546 set_tx_desc_tx_rate(pdesc, DESC_RATE1M); in rtl92ce_tx_fill_cmddesc()
548 set_tx_desc_seq(pdesc, 0); in rtl92ce_tx_fill_cmddesc()
550 set_tx_desc_linip(pdesc, 0); in rtl92ce_tx_fill_cmddesc()
552 set_tx_desc_queue_sel(pdesc, fw_queue); in rtl92ce_tx_fill_cmddesc()
554 set_tx_desc_first_seg(pdesc, 1); in rtl92ce_tx_fill_cmddesc()
555 set_tx_desc_last_seg(pdesc, 1); in rtl92ce_tx_fill_cmddesc()
557 set_tx_desc_tx_buffer_size(pdesc, (u16)(skb->len)); in rtl92ce_tx_fill_cmddesc()
559 set_tx_desc_tx_buffer_address(pdesc, mapping); in rtl92ce_tx_fill_cmddesc()
561 set_tx_desc_rate_id(pdesc, 7); in rtl92ce_tx_fill_cmddesc()
562 set_tx_desc_macid(pdesc, 0); in rtl92ce_tx_fill_cmddesc()
564 set_tx_desc_own(pdesc, 1); in rtl92ce_tx_fill_cmddesc()
566 set_tx_desc_pkt_size(pdesc, (u16)(skb->len)); in rtl92ce_tx_fill_cmddesc()
568 set_tx_desc_first_seg(pdesc, 1); in rtl92ce_tx_fill_cmddesc()
569 set_tx_desc_last_seg(pdesc, 1); in rtl92ce_tx_fill_cmddesc()
571 set_tx_desc_offset(pdesc, 0x20); in rtl92ce_tx_fill_cmddesc()
573 set_tx_desc_use_rate(pdesc, 1); in rtl92ce_tx_fill_cmddesc()
576 set_tx_desc_hwseq_en(pdesc, 1); in rtl92ce_tx_fill_cmddesc()
577 set_tx_desc_pkt_id(pdesc, 8); in rtl92ce_tx_fill_cmddesc()
581 "H2C Tx Cmd Content", pdesc, TX_DESC_SIZE); in rtl92ce_tx_fill_cmddesc()
587 __le32 *pdesc = (__le32 *)pdesc8; in rtl92ce_set_desc() local
593 set_tx_desc_own(pdesc, 1); in rtl92ce_set_desc()
596 set_tx_desc_next_desc_address(pdesc, *(u32 *)val); in rtl92ce_set_desc()
607 set_rx_desc_own(pdesc, 1); in rtl92ce_set_desc()
610 set_rx_desc_buff_addr(pdesc, *(u32 *)val); in rtl92ce_set_desc()
613 set_rx_desc_pkt_len(pdesc, *(u32 *)val); in rtl92ce_set_desc()
616 set_rx_desc_eor(pdesc, 1); in rtl92ce_set_desc()