Lines Matching refs:wsm
243 struct wsm_hdr *wsm; in cw1200_bh_rx_helper() local
296 wsm = (struct wsm_hdr *)data; in cw1200_bh_rx_helper()
297 wsm_len = __le16_to_cpu(wsm->len); in cw1200_bh_rx_helper()
306 wsm_id = __le16_to_cpu(wsm->id) & 0xFFF; in cw1200_bh_rx_helper()
307 wsm_seq = (__le16_to_cpu(wsm->id) >> 13) & 7; in cw1200_bh_rx_helper()
313 &data[sizeof(*wsm)], in cw1200_bh_rx_helper()
314 wsm_len - sizeof(*wsm)); in cw1200_bh_rx_helper()
332 if (WARN_ON(wsm_handle_rx(priv, wsm_id, wsm, &skb_rx))) in cw1200_bh_rx_helper()
357 struct wsm_hdr *wsm; in cw1200_bh_tx_helper() local
381 wsm = (struct wsm_hdr *)data; in cw1200_bh_tx_helper()
382 BUG_ON(tx_len < sizeof(*wsm)); in cw1200_bh_tx_helper()
383 BUG_ON(__le16_to_cpu(wsm->len) != tx_len); in cw1200_bh_tx_helper()
394 wsm->id &= __cpu_to_le16(0xffff ^ WSM_TX_SEQ(WSM_TX_SEQ_MAX)); in cw1200_bh_tx_helper()
395 wsm->id |= __cpu_to_le16(WSM_TX_SEQ(priv->wsm_tx_seq)); in cw1200_bh_tx_helper()
407 __le16_to_cpu(wsm->len)); in cw1200_bh_tx_helper()