• Home
  • Raw
  • Download

Lines Matching refs:txdesc

48 				       struct txentry_desc *txdesc)  in rt2x00crypto_create_tx_descriptor()  argument
56 __set_bit(ENTRY_TXD_ENCRYPT, &txdesc->flags); in rt2x00crypto_create_tx_descriptor()
58 txdesc->cipher = rt2x00crypto_key_to_cipher(hw_key); in rt2x00crypto_create_tx_descriptor()
61 __set_bit(ENTRY_TXD_ENCRYPT_PAIRWISE, &txdesc->flags); in rt2x00crypto_create_tx_descriptor()
63 txdesc->key_idx = hw_key->hw_key_idx; in rt2x00crypto_create_tx_descriptor()
64 txdesc->iv_offset = txdesc->header_length; in rt2x00crypto_create_tx_descriptor()
65 txdesc->iv_len = hw_key->iv_len; in rt2x00crypto_create_tx_descriptor()
68 __set_bit(ENTRY_TXD_ENCRYPT_IV, &txdesc->flags); in rt2x00crypto_create_tx_descriptor()
71 __set_bit(ENTRY_TXD_ENCRYPT_MMIC, &txdesc->flags); in rt2x00crypto_create_tx_descriptor()
102 void rt2x00crypto_tx_copy_iv(struct sk_buff *skb, struct txentry_desc *txdesc) in rt2x00crypto_tx_copy_iv() argument
106 if (unlikely(!txdesc->iv_len)) in rt2x00crypto_tx_copy_iv()
110 memcpy(skbdesc->iv, skb->data + txdesc->iv_offset, txdesc->iv_len); in rt2x00crypto_tx_copy_iv()
113 void rt2x00crypto_tx_remove_iv(struct sk_buff *skb, struct txentry_desc *txdesc) in rt2x00crypto_tx_remove_iv() argument
117 if (unlikely(!txdesc->iv_len)) in rt2x00crypto_tx_remove_iv()
121 memcpy(skbdesc->iv, skb->data + txdesc->iv_offset, txdesc->iv_len); in rt2x00crypto_tx_remove_iv()
124 memmove(skb->data + txdesc->iv_len, skb->data, txdesc->iv_offset); in rt2x00crypto_tx_remove_iv()
127 skb_pull(skb, txdesc->iv_len); in rt2x00crypto_tx_remove_iv()
128 txdesc->length -= txdesc->iv_len; in rt2x00crypto_tx_remove_iv()