Lines Matching refs:msg_pl

336 	struct sk_msg *msg_pl = &rec->msg_plaintext;  in tls_clone_plaintext_msg()  local
344 len = required - msg_pl->sg.size; in tls_clone_plaintext_msg()
349 skip = prot->prepend_size + msg_pl->sg.size; in tls_clone_plaintext_msg()
351 return sk_msg_clone(sk, msg_pl, msg_en, skip, len); in tls_clone_plaintext_msg()
359 struct sk_msg *msg_pl, *msg_en; in tls_get_rec() local
369 msg_pl = &rec->msg_plaintext; in tls_get_rec()
372 sk_msg_init(msg_pl); in tls_get_rec()
732 struct sk_msg *msg_pl, *msg_en; in tls_push_record() local
740 msg_pl = &rec->msg_plaintext; in tls_push_record()
743 split_point = msg_pl->apply_bytes; in tls_push_record()
744 split = split_point && split_point < msg_pl->sg.size; in tls_push_record()
746 msg_pl->sg.size + in tls_push_record()
755 rc = tls_split_open_record(sk, rec, &tmp, msg_pl, msg_en, in tls_push_record()
765 if (!msg_pl->sg.size) { in tls_push_record()
767 msg_pl = &rec->msg_plaintext; in tls_push_record()
771 sk_msg_trim(sk, msg_en, msg_pl->sg.size + in tls_push_record()
778 i = msg_pl->sg.end; in tls_push_record()
786 sg_chain(msg_pl->sg.data, msg_pl->sg.end + 1, in tls_push_record()
789 sg_mark_end(sk_msg_elem(msg_pl, i)); in tls_push_record()
792 if (msg_pl->sg.end < msg_pl->sg.start) { in tls_push_record()
793 sg_chain(&msg_pl->sg.data[msg_pl->sg.start], in tls_push_record()
794 MAX_SKB_FRAGS - msg_pl->sg.start + 1, in tls_push_record()
795 msg_pl->sg.data); in tls_push_record()
798 i = msg_pl->sg.start; in tls_push_record()
799 sg_chain(rec->sg_aead_in, 2, &msg_pl->sg.data[i]); in tls_push_record()
808 tls_make_aad(rec->aad_space, msg_pl->sg.size + prot->tail_size, in tls_push_record()
814 msg_pl->sg.size + prot->tail_size, in tls_push_record()
820 msg_pl->sg.size + prot->tail_size, i); in tls_push_record()
832 msg_pl = &tmp->msg_plaintext; in tls_push_record()
834 sk_msg_trim(sk, msg_en, msg_pl->sg.size + prot->overhead_size); in tls_push_record()
979 struct sk_msg *msg_pl; in tls_sw_push_pending_record() local
985 msg_pl = &rec->msg_plaintext; in tls_sw_push_pending_record()
986 copied = msg_pl->sg.size; in tls_sw_push_pending_record()
990 return bpf_exec_tx_verdict(msg_pl, sk, true, TLS_RECORD_TYPE_DATA, in tls_sw_push_pending_record()
995 struct sk_msg *msg_pl, size_t try_to_copy, in tls_sw_sendmsg_splice() argument
1014 sk_msg_page_add(msg_pl, page, part, off); in tls_sw_sendmsg_splice()
1015 msg_pl->sg.copybreak = 0; in tls_sw_sendmsg_splice()
1016 msg_pl->sg.curr = msg_pl->sg.end; in tls_sw_sendmsg_splice()
1020 } while (try_to_copy && !sk_msg_full(msg_pl)); in tls_sw_sendmsg_splice()
1038 struct sk_msg *msg_pl, *msg_en; in tls_sw_sendmsg_locked() local
1076 msg_pl = &rec->msg_plaintext; in tls_sw_sendmsg_locked()
1079 orig_size = msg_pl->sg.size; in tls_sw_sendmsg_locked()
1082 record_room = TLS_MAX_PAYLOAD_SIZE - msg_pl->sg.size; in tls_sw_sendmsg_locked()
1088 required_size = msg_pl->sg.size + try_to_copy + in tls_sw_sendmsg_locked()
1109 ret = tls_sw_sendmsg_splice(sk, msg, msg_pl, in tls_sw_sendmsg_locked()
1115 if (sk_msg_full(msg_pl)) in tls_sw_sendmsg_locked()
1124 u32 first = msg_pl->sg.end; in tls_sw_sendmsg_locked()
1127 msg_pl, try_to_copy); in tls_sw_sendmsg_locked()
1134 sk_msg_sg_copy_set(msg_pl, first); in tls_sw_sendmsg_locked()
1135 ret = bpf_exec_tx_verdict(msg_pl, sk, full_record, in tls_sw_sendmsg_locked()
1144 if (msg_pl->cork_bytes) { in tls_sw_sendmsg_locked()
1155 sk_msg_sg_copy_clear(msg_pl, first); in tls_sw_sendmsg_locked()
1157 msg_pl->sg.size - orig_size); in tls_sw_sendmsg_locked()
1159 sk_msg_trim(sk, msg_pl, orig_size); in tls_sw_sendmsg_locked()
1162 required_size = msg_pl->sg.size + try_to_copy; in tls_sw_sendmsg_locked()
1173 try_to_copy -= required_size - msg_pl->sg.size; in tls_sw_sendmsg_locked()
1176 msg_pl->sg.size + prot->overhead_size); in tls_sw_sendmsg_locked()
1181 msg_pl, try_to_copy); in tls_sw_sendmsg_locked()
1193 ret = bpf_exec_tx_verdict(msg_pl, sk, full_record, in tls_sw_sendmsg_locked()
1279 struct sk_msg *msg_pl; in tls_sw_splice_eof() local
1296 msg_pl = &rec->msg_plaintext; in tls_sw_splice_eof()
1297 if (msg_pl->sg.size == 0) in tls_sw_splice_eof()
1301 ret = bpf_exec_tx_verdict(msg_pl, sk, false, TLS_RECORD_TYPE_DATA, in tls_sw_splice_eof()