• Home
  • Raw
  • Download

Lines Matching refs:bd

21 static inline int get_rssi0(struct wcn36xx_rx_bd *bd)  in get_rssi0()  argument
23 return 100 - ((bd->phy_stat0 >> 24) & 0xff); in get_rssi0()
30 struct wcn36xx_rx_bd *bd; in wcn36xx_rx_skb() local
39 bd = (struct wcn36xx_rx_bd *)skb->data; in wcn36xx_rx_skb()
40 buff_to_be((u32 *)bd, sizeof(*bd)/sizeof(u32)); in wcn36xx_rx_skb()
42 "BD <<< ", (char *)bd, in wcn36xx_rx_skb()
45 skb_put(skb, bd->pdu.mpdu_header_off + bd->pdu.mpdu_len); in wcn36xx_rx_skb()
46 skb_pull(skb, bd->pdu.mpdu_header_off); in wcn36xx_rx_skb()
51 status.signal = -get_rssi0(bd); in wcn36xx_rx_skb()
85 static void wcn36xx_set_tx_pdu(struct wcn36xx_tx_bd *bd, in wcn36xx_set_tx_pdu() argument
90 bd->pdu.mpdu_header_len = mpdu_header_len; in wcn36xx_set_tx_pdu()
91 bd->pdu.mpdu_header_off = sizeof(*bd); in wcn36xx_set_tx_pdu()
92 bd->pdu.mpdu_data_off = bd->pdu.mpdu_header_len + in wcn36xx_set_tx_pdu()
93 bd->pdu.mpdu_header_off; in wcn36xx_set_tx_pdu()
94 bd->pdu.mpdu_len = len; in wcn36xx_set_tx_pdu()
95 bd->pdu.tid = tid; in wcn36xx_set_tx_pdu()
96 bd->pdu.bd_ssn = WCN36XX_TXBD_SSN_FILL_DPU_QOS; in wcn36xx_set_tx_pdu()
148 static void wcn36xx_set_tx_data(struct wcn36xx_tx_bd *bd, in wcn36xx_set_tx_data() argument
160 bd->bd_rate = WCN36XX_BD_RATE_DATA; in wcn36xx_set_tx_data()
170 bd->dpu_sign = sta_priv->ucast_dpu_sign; in wcn36xx_set_tx_data()
172 bd->sta_index = sta_priv->bss_sta_index; in wcn36xx_set_tx_data()
173 bd->dpu_desc_idx = sta_priv->bss_dpu_desc_index; in wcn36xx_set_tx_data()
177 bd->sta_index = sta_priv->sta_index; in wcn36xx_set_tx_data()
178 bd->dpu_desc_idx = sta_priv->dpu_desc_index; in wcn36xx_set_tx_data()
182 bd->sta_index = __vif_priv->self_sta_index; in wcn36xx_set_tx_data()
183 bd->dpu_desc_idx = __vif_priv->self_dpu_desc_index; in wcn36xx_set_tx_data()
184 bd->dpu_sign = __vif_priv->self_ucast_dpu_sign; in wcn36xx_set_tx_data()
189 bd->dpu_ne = 1; in wcn36xx_set_tx_data()
192 bd->ub = 1; in wcn36xx_set_tx_data()
193 bd->ack_policy = 1; in wcn36xx_set_tx_data()
199 wcn36xx_set_tx_pdu(bd, in wcn36xx_set_tx_data()
209 static void wcn36xx_set_tx_mgmt(struct wcn36xx_tx_bd *bd, in wcn36xx_set_tx_mgmt() argument
218 bd->sta_index = __vif_priv->self_sta_index; in wcn36xx_set_tx_mgmt()
219 bd->dpu_desc_idx = __vif_priv->self_dpu_desc_index; in wcn36xx_set_tx_mgmt()
220 bd->dpu_ne = 1; in wcn36xx_set_tx_mgmt()
224 bd->bd_rate = (WCN36XX_BAND(wcn) == NL80211_BAND_5GHZ) ? in wcn36xx_set_tx_mgmt()
228 bd->bd_rate = WCN36XX_BD_RATE_CTRL; in wcn36xx_set_tx_mgmt()
242 bd->ub = 1; in wcn36xx_set_tx_mgmt()
244 bd->ack_policy = 1; in wcn36xx_set_tx_mgmt()
245 bd->queue_id = WCN36XX_TX_B_WQ_ID; in wcn36xx_set_tx_mgmt()
247 bd->queue_id = WCN36XX_TX_U_WQ_ID; in wcn36xx_set_tx_mgmt()
250 wcn36xx_set_tx_pdu(bd, in wcn36xx_set_tx_mgmt()
268 struct wcn36xx_tx_bd *bd = wcn36xx_dxe_get_next_bd(wcn, is_low); in wcn36xx_start_tx() local
270 if (!bd) { in wcn36xx_start_tx()
282 memset(bd, 0, sizeof(*bd)); in wcn36xx_start_tx()
292 bd->dpu_rf = WCN36XX_BMU_WQ_TX; in wcn36xx_start_tx()
294 bd->tx_comp = !!(info->flags & IEEE80211_TX_CTL_REQ_TX_STATUS); in wcn36xx_start_tx()
295 if (bd->tx_comp) { in wcn36xx_start_tx()
317 wcn36xx_set_tx_data(bd, wcn, &vif_priv, sta_priv, skb, bcast); in wcn36xx_start_tx()
320 wcn36xx_set_tx_mgmt(bd, wcn, &vif_priv, skb, bcast); in wcn36xx_start_tx()
322 buff_to_be((u32 *)bd, sizeof(*bd)/sizeof(u32)); in wcn36xx_start_tx()
323 bd->tx_bd_sign = 0xbdbdbdbd; in wcn36xx_start_tx()