Lines Matching refs:mtod
108 wh = mtod(m0, struct ieee80211_frame *); in ieee80211_wep_encrypt()
110 memcpy(mtod(n0, caddr_t), wh, hdrlen); in ieee80211_wep_encrypt()
118 ivp = mtod(n0, u_int8_t *) + hdrlen; in ieee80211_wep_encrypt()
161 crc = ether_crc32_le_update(crc, mtod(m, caddr_t) + moff, len); in ieee80211_wep_encrypt()
162 rc4_crypt(&ctx->rc4, mtod(m, caddr_t) + moff, in ieee80211_wep_encrypt()
163 mtod(n, caddr_t) + noff, len); in ieee80211_wep_encrypt()
180 icvp = mtod(n, caddr_t) + n->m_len; in ieee80211_wep_encrypt()
211 wh = mtod(m0, struct ieee80211_frame *); in ieee80211_wep_decrypt()
242 memcpy(mtod(n0, caddr_t), wh, hdrlen); in ieee80211_wep_decrypt()
243 wh = mtod(n0, struct ieee80211_frame *); in ieee80211_wep_decrypt()
277 rc4_crypt(&ctx->rc4, mtod(m, caddr_t) + moff, in ieee80211_wep_decrypt()
278 mtod(n, caddr_t) + noff, len); in ieee80211_wep_decrypt()
279 crc = ether_crc32_le_update(crc, mtod(n, caddr_t) + noff, len); in ieee80211_wep_decrypt()