Lines Matching refs:prot
283 struct tls_prot_info *prot = &ctx->prot_info; in tls_push_record() local
295 tls_advance_record_sn(sk, prot, &ctx->tx); in tls_push_record()
317 struct tls_prot_info *prot = &ctx->prot_info; in tls_device_record_close() local
326 if (unlikely(pfrag->size - pfrag->offset < prot->tag_size) && in tls_device_record_close()
327 !skb_page_frag_refill(prot->tag_size, pfrag, sk->sk_allocation)) { in tls_device_record_close()
332 tls_append_frag(record, pfrag, prot->tag_size); in tls_device_record_close()
336 record->len - prot->overhead_size, in tls_device_record_close()
424 struct tls_prot_info *prot = &tls_ctx->prot_info; in tls_push_data() local
463 prot->prepend_size; in tls_push_data()
465 rc = tls_do_allocation(sk, ctx, pfrag, prot->prepend_size); in tls_push_data()
483 } else if (record->len > prot->prepend_size) { in tls_push_data()
771 struct tls_prot_info *prot; in tls_device_rx_resync_new_rec() local
781 prot = &tls_ctx->prot_info; in tls_device_rx_resync_new_rec()
783 memcpy(rcd_sn, tls_ctx->rx.rec_seq, prot->rec_seq_size); in tls_device_rx_resync_new_rec()
812 tls_bigint_increment(rcd_sn, prot->rec_seq_size); in tls_device_rx_resync_new_rec()
866 struct tls_prot_info *prot = &tls_ctx->prot_info; in tls_device_core_ctrl_rx_resync() local
869 memcpy(rcd_sn, tls_ctx->rx.rec_seq, prot->rec_seq_size); in tls_device_core_ctrl_rx_resync()
870 tls_bigint_increment(rcd_sn, prot->rec_seq_size); in tls_device_core_ctrl_rx_resync()
1063 struct tls_prot_info *prot; in tls_set_device_offload() local
1070 prot = &ctx->prot_info; in tls_set_device_offload()
1098 rc = init_prot_info(prot, crypto_info, cipher_desc); in tls_set_device_offload()