Lines Matching refs:pos

313 	u8 *pos;  in lib80211_tkip_hdr()  local
331 pos = skb_push(skb, TKIP_HDR_LEN); in lib80211_tkip_hdr()
332 memmove(pos, pos + TKIP_HDR_LEN, hdr_len); in lib80211_tkip_hdr()
333 pos += hdr_len; in lib80211_tkip_hdr()
335 *pos++ = *rc4key; in lib80211_tkip_hdr()
336 *pos++ = *(rc4key + 1); in lib80211_tkip_hdr()
337 *pos++ = *(rc4key + 2); in lib80211_tkip_hdr()
338 *pos++ = (tkey->key_idx << 6) | (1 << 5) /* Ext IV included */ ; in lib80211_tkip_hdr()
339 *pos++ = tkey->tx_iv32 & 0xff; in lib80211_tkip_hdr()
340 *pos++ = (tkey->tx_iv32 >> 8) & 0xff; in lib80211_tkip_hdr()
341 *pos++ = (tkey->tx_iv32 >> 16) & 0xff; in lib80211_tkip_hdr()
342 *pos++ = (tkey->tx_iv32 >> 24) & 0xff; in lib80211_tkip_hdr()
358 u8 rc4key[16], *pos, *icv; in lib80211_tkip_encrypt() local
373 pos = skb->data + hdr_len; in lib80211_tkip_encrypt()
378 crc = ~crc32_le(~0, pos, len); in lib80211_tkip_encrypt()
386 sg_init_one(&sg, pos, len + 4); in lib80211_tkip_encrypt()
408 u8 keyidx, *pos; in lib80211_tkip_decrypt() local
428 pos = skb->data + hdr_len; in lib80211_tkip_decrypt()
429 keyidx = pos[3]; in lib80211_tkip_decrypt()
446 iv16 = (pos[0] << 8) | pos[2]; in lib80211_tkip_decrypt()
447 iv32 = pos[4] | (pos[5] << 8) | (pos[6] << 16) | (pos[7] << 24); in lib80211_tkip_decrypt()
448 pos += TKIP_HDR_LEN; in lib80211_tkip_decrypt()
469 sg_init_one(&sg, pos, plen + 4); in lib80211_tkip_decrypt()
476 crc = ~crc32_le(~0, pos, plen); in lib80211_tkip_decrypt()
481 if (memcmp(icv, pos + plen, 4) != 0) { in lib80211_tkip_decrypt()
569 u8 *pos; in lib80211_michael_mic_add() local
579 pos = skb_put(skb, 8); in lib80211_michael_mic_add()
581 skb->data + hdr_len, skb->len - 8 - hdr_len, pos)) in lib80211_michael_mic_add()