Lines Matching refs:crypt
155 struct lib80211_crypt_data *crypt = in libipw_encrypt_fragment() local
156 ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in libipw_encrypt_fragment()
159 if (crypt == NULL) in libipw_encrypt_fragment()
164 atomic_inc(&crypt->refcnt); in libipw_encrypt_fragment()
166 if (crypt->ops && crypt->ops->encrypt_mpdu) in libipw_encrypt_fragment()
167 res = crypt->ops->encrypt_mpdu(frag, hdr_len, crypt->priv); in libipw_encrypt_fragment()
169 atomic_dec(&crypt->refcnt); in libipw_encrypt_fragment()
273 struct lib80211_crypt_data *crypt; in libipw_xmit() local
297 crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in libipw_xmit()
302 host_encrypt = ieee->host_encrypt && encrypt && crypt; in libipw_xmit()
303 host_encrypt_msdu = ieee->host_encrypt_msdu && encrypt && crypt; in libipw_xmit()
352 crypt && crypt->ops && crypt->ops->encrypt_msdu) { in libipw_xmit()
354 int len = bytes + hdr_len + crypt->ops->extra_msdu_prefix_len + in libipw_xmit()
355 crypt->ops->extra_msdu_postfix_len; in libipw_xmit()
361 skb_reserve(skb_new, crypt->ops->extra_msdu_prefix_len); in libipw_xmit()
367 res = crypt->ops->encrypt_msdu(skb_new, hdr_len, crypt->priv); in libipw_xmit()
375 bytes += crypt->ops->extra_msdu_prefix_len + in libipw_xmit()
376 crypt->ops->extra_msdu_postfix_len; in libipw_xmit()
401 bytes_per_frag -= crypt->ops->extra_mpdu_prefix_len + in libipw_xmit()
402 crypt->ops->extra_mpdu_postfix_len; in libipw_xmit()
471 crypt->ops->extra_mpdu_prefix_len); in libipw_xmit()