Lines Matching defs:record

141 static void destroy_record(struct tls_record_info *record)
145 for (i = 0; i < record->num_frags; i++)
146 __skb_frag_unref(&record->frags[i], false);
147 kfree(record);
257 static void tls_append_frag(struct tls_record_info *record,
263 frag = &record->frags[record->num_frags - 1];
271 ++record->num_frags;
276 record->len += size;
282 struct tls_record_info *record,
290 record->end_seq = tp->write_seq + record->len;
291 list_add_tail_rcu(&record->list, &offload_ctx->records_list);
299 for (i = 0; i < record->num_frags; i++) {
300 frag = &record->frags[i];
307 sg_mark_end(&offload_ctx->sg_tx_data[record->num_frags - 1]);
315 struct tls_record_info *record,
334 tls_append_frag(record, pfrag, prot->tag_size);
337 tls_fill_prepend(ctx, skb_frag_address(&record->frags[0]),
338 record->len - prot->overhead_size,
346 struct tls_record_info *record;
349 record = kmalloc(sizeof(*record), GFP_KERNEL);
350 if (!record)
353 frag = &record->frags[0];
360 record->num_frags = 1;
361 record->len = prepend_size;
362 offload_ctx->open_record = record;
428 struct tls_record_info *record;
461 /* TLS_HEADER_SIZE is not counted as part of the TLS record, and
473 record = ctx->open_record;
474 if (!record)
479 * record with type !=
483 destroy_record(record);
485 } else if (record->len > prot->prepend_size) {
492 record = ctx->open_record;
494 copy = min_t(size_t, size, max_open_record_len - record->len);
517 tls_append_frag(record, &zc_pfrag, copy);
526 tls_append_frag(record, pfrag, copy);
541 if (done || record->len >= max_open_record_len ||
542 (record->num_frags >= MAX_SKB_FRAGS - 1)) {
543 tls_device_record_close(sk, tls_ctx, record,
549 record,
628 /* send the start_marker record if seq number is before the
629 * tls offload start marker sequence number. This record is
636 /* we have the first record, get the last record to see
844 /* seen decrypted fragments since last fully-failed record */
1002 /* Return immediately if the record is either entirely plaintext or
1004 * record.
1050 /* start at rec_seq - 1 to account for the start marker record */
1136 * So mark the last skb in the write queue as end of record.