Lines Matching refs:wsm
238 struct wsm_hdr *wsm; in cw1200_bh_rx_helper() local
291 wsm = (struct wsm_hdr *)data; in cw1200_bh_rx_helper()
292 wsm_len = __le16_to_cpu(wsm->len); in cw1200_bh_rx_helper()
301 wsm_id = __le16_to_cpu(wsm->id) & 0xFFF; in cw1200_bh_rx_helper()
302 wsm_seq = (__le16_to_cpu(wsm->id) >> 13) & 7; in cw1200_bh_rx_helper()
308 &data[sizeof(*wsm)], in cw1200_bh_rx_helper()
309 wsm_len - sizeof(*wsm)); in cw1200_bh_rx_helper()
327 if (WARN_ON(wsm_handle_rx(priv, wsm_id, wsm, &skb_rx))) in cw1200_bh_rx_helper()
346 struct wsm_hdr *wsm; in cw1200_bh_tx_helper() local
370 wsm = (struct wsm_hdr *)data; in cw1200_bh_tx_helper()
371 BUG_ON(tx_len < sizeof(*wsm)); in cw1200_bh_tx_helper()
372 BUG_ON(__le16_to_cpu(wsm->len) != tx_len); in cw1200_bh_tx_helper()
383 wsm->id &= __cpu_to_le16(0xffff ^ WSM_TX_SEQ(WSM_TX_SEQ_MAX)); in cw1200_bh_tx_helper()
384 wsm->id |= __cpu_to_le16(WSM_TX_SEQ(priv->wsm_tx_seq)); in cw1200_bh_tx_helper()
396 __le16_to_cpu(wsm->len)); in cw1200_bh_tx_helper()