Lines Matching defs:offload_ctx

73 	struct tls_offload_context_tx *offload_ctx =
75 struct tls_context *ctx = offload_ctx->ctx;
112 struct tls_offload_context_tx *offload_ctx = tls_offload_ctx_tx(ctx);
117 queue_work(destruct_wq, &offload_ctx->destruct_work);
150 static void delete_all_records(struct tls_offload_context_tx *offload_ctx)
154 list_for_each_entry_safe(info, temp, &offload_ctx->records_list, list) {
159 offload_ctx->retransmit_hint = NULL;
285 struct tls_offload_context_tx *offload_ctx,
295 list_add_tail_rcu(&record->list, &offload_ctx->records_list);
296 offload_ctx->open_record = NULL;
305 sg_unmark_end(&offload_ctx->sg_tx_data[i]);
306 sg_set_page(&offload_ctx->sg_tx_data[i], skb_frag_page(frag),
311 sg_mark_end(&offload_ctx->sg_tx_data[record->num_frags - 1]);
314 return tls_push_sg(sk, ctx, offload_ctx->sg_tx_data, 0, flags);
346 static int tls_create_new_record(struct tls_offload_context_tx *offload_ctx,
366 offload_ctx->open_record = record;
371 struct tls_offload_context_tx *offload_ctx,
377 if (!offload_ctx->open_record) {
385 ret = tls_create_new_record(offload_ctx, pfrag, prepend_size);
1051 struct tls_offload_context_tx *offload_ctx;
1119 offload_ctx = kzalloc(TLS_OFFLOAD_CONTEXT_SIZE_TX, GFP_KERNEL);
1120 if (!offload_ctx) {
1125 rc = tls_sw_fallback_init(sk, offload_ctx, crypto_info);
1131 offload_ctx->unacked_record_sn = be64_to_cpu(rcd_sn) - 1;
1137 INIT_WORK(&offload_ctx->destruct_work, tls_device_tx_del_task);
1138 offload_ctx->ctx = ctx;
1140 INIT_LIST_HEAD(&offload_ctx->records_list);
1141 list_add_tail(&start_marker_record->list, &offload_ctx->records_list);
1142 spin_lock_init(&offload_ctx->lock);
1143 sg_init_table(offload_ctx->sg_tx_data,
1144 ARRAY_SIZE(offload_ctx->sg_tx_data));
1171 ctx->priv_ctx_tx = offload_ctx;
1195 crypto_free_aead(offload_ctx->aead_send);
1197 kfree(offload_ctx);