Lines Matching refs:record

139 static void destroy_record(struct tls_record_info *record)  in destroy_record()  argument
143 for (i = 0; i < record->num_frags; i++) in destroy_record()
144 __skb_frag_unref(&record->frags[i], false); in destroy_record()
145 kfree(record); in destroy_record()
255 static void tls_append_frag(struct tls_record_info *record, in tls_append_frag() argument
261 frag = &record->frags[record->num_frags - 1]; in tls_append_frag()
269 ++record->num_frags; in tls_append_frag()
274 record->len += size; in tls_append_frag()
280 struct tls_record_info *record, in tls_push_record() argument
288 record->end_seq = tp->write_seq + record->len; in tls_push_record()
289 list_add_tail_rcu(&record->list, &offload_ctx->records_list); in tls_push_record()
297 for (i = 0; i < record->num_frags; i++) { in tls_push_record()
298 frag = &record->frags[i]; in tls_push_record()
305 sg_mark_end(&offload_ctx->sg_tx_data[record->num_frags - 1]); in tls_push_record()
313 struct tls_record_info *record, in tls_device_record_close() argument
332 tls_append_frag(record, pfrag, prot->tag_size); in tls_device_record_close()
335 tls_fill_prepend(ctx, skb_frag_address(&record->frags[0]), in tls_device_record_close()
336 record->len - prot->overhead_size, in tls_device_record_close()
344 struct tls_record_info *record; in tls_create_new_record() local
347 record = kmalloc(sizeof(*record), GFP_KERNEL); in tls_create_new_record()
348 if (!record) in tls_create_new_record()
351 frag = &record->frags[0]; in tls_create_new_record()
358 record->num_frags = 1; in tls_create_new_record()
359 record->len = prepend_size; in tls_create_new_record()
360 offload_ctx->open_record = record; in tls_create_new_record()
426 struct tls_record_info *record; in tls_push_data() local
471 record = ctx->open_record; in tls_push_data()
472 if (!record) in tls_push_data()
481 destroy_record(record); in tls_push_data()
483 } else if (record->len > prot->prepend_size) { in tls_push_data()
490 record = ctx->open_record; in tls_push_data()
492 copy = min_t(size_t, size, max_open_record_len - record->len); in tls_push_data()
515 tls_append_frag(record, &zc_pfrag, copy); in tls_push_data()
524 tls_append_frag(record, pfrag, copy); in tls_push_data()
539 if (done || record->len >= max_open_record_len || in tls_push_data()
540 (record->num_frags >= MAX_SKB_FRAGS - 1)) { in tls_push_data()
541 tls_device_record_close(sk, tls_ctx, record, in tls_push_data()
547 record, in tls_push_data()