Lines Matching refs:crypt

141 	struct lib80211_crypt_data *crypt =  in libipw_encrypt_fragment()  local
142 ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in libipw_encrypt_fragment()
145 if (crypt == NULL) in libipw_encrypt_fragment()
150 atomic_inc(&crypt->refcnt); in libipw_encrypt_fragment()
152 if (crypt->ops && crypt->ops->encrypt_mpdu) in libipw_encrypt_fragment()
153 res = crypt->ops->encrypt_mpdu(frag, hdr_len, crypt->priv); in libipw_encrypt_fragment()
155 atomic_dec(&crypt->refcnt); in libipw_encrypt_fragment()
258 struct lib80211_crypt_data *crypt; in libipw_xmit() local
282 crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; in libipw_xmit()
287 host_encrypt = ieee->host_encrypt && encrypt && crypt; in libipw_xmit()
288 host_encrypt_msdu = ieee->host_encrypt_msdu && encrypt && crypt; in libipw_xmit()
337 crypt && crypt->ops && crypt->ops->encrypt_msdu) { in libipw_xmit()
339 int len = bytes + hdr_len + crypt->ops->extra_msdu_prefix_len + in libipw_xmit()
340 crypt->ops->extra_msdu_postfix_len; in libipw_xmit()
346 skb_reserve(skb_new, crypt->ops->extra_msdu_prefix_len); in libipw_xmit()
352 res = crypt->ops->encrypt_msdu(skb_new, hdr_len, crypt->priv); in libipw_xmit()
360 bytes += crypt->ops->extra_msdu_prefix_len + in libipw_xmit()
361 crypt->ops->extra_msdu_postfix_len; in libipw_xmit()
385 if (host_encrypt && crypt && crypt->ops) in libipw_xmit()
386 bytes_per_frag -= crypt->ops->extra_mpdu_prefix_len + in libipw_xmit()
387 crypt->ops->extra_mpdu_postfix_len; in libipw_xmit()
455 crypt->ops->extra_mpdu_prefix_len); in libipw_xmit()