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()
959 struct sk_msg *msg_pl; in tls_sw_push_pending_record() local
965 msg_pl = &rec->msg_plaintext; in tls_sw_push_pending_record()
966 copied = msg_pl->sg.size; in tls_sw_push_pending_record()
970 return bpf_exec_tx_verdict(msg_pl, sk, true, TLS_RECORD_TYPE_DATA, in tls_sw_push_pending_record()
975 struct sk_msg *msg_pl, size_t try_to_copy, in tls_sw_sendmsg_splice() argument
994 sk_msg_page_add(msg_pl, page, part, off); in tls_sw_sendmsg_splice()
995 msg_pl->sg.copybreak = 0; in tls_sw_sendmsg_splice()
996 msg_pl->sg.curr = msg_pl->sg.end; in tls_sw_sendmsg_splice()
1000 } while (try_to_copy && !sk_msg_full(msg_pl)); in tls_sw_sendmsg_splice()
1018 struct sk_msg *msg_pl, *msg_en; in tls_sw_sendmsg_locked() local
1056 msg_pl = &rec->msg_plaintext; in tls_sw_sendmsg_locked()
1059 orig_size = msg_pl->sg.size; in tls_sw_sendmsg_locked()
1062 record_room = TLS_MAX_PAYLOAD_SIZE - msg_pl->sg.size; in tls_sw_sendmsg_locked()
1068 required_size = msg_pl->sg.size + try_to_copy + in tls_sw_sendmsg_locked()
1089 ret = tls_sw_sendmsg_splice(sk, msg, msg_pl, in tls_sw_sendmsg_locked()
1095 if (sk_msg_full(msg_pl)) in tls_sw_sendmsg_locked()
1104 u32 first = msg_pl->sg.end; in tls_sw_sendmsg_locked()
1107 msg_pl, try_to_copy); in tls_sw_sendmsg_locked()
1114 sk_msg_sg_copy_set(msg_pl, first); in tls_sw_sendmsg_locked()
1115 ret = bpf_exec_tx_verdict(msg_pl, sk, full_record, in tls_sw_sendmsg_locked()
1131 sk_msg_sg_copy_clear(msg_pl, first); in tls_sw_sendmsg_locked()
1133 msg_pl->sg.size - orig_size); in tls_sw_sendmsg_locked()
1135 sk_msg_trim(sk, msg_pl, orig_size); in tls_sw_sendmsg_locked()
1138 required_size = msg_pl->sg.size + try_to_copy; in tls_sw_sendmsg_locked()
1149 try_to_copy -= required_size - msg_pl->sg.size; in tls_sw_sendmsg_locked()
1152 msg_pl->sg.size + prot->overhead_size); in tls_sw_sendmsg_locked()
1157 msg_pl, try_to_copy); in tls_sw_sendmsg_locked()
1169 ret = bpf_exec_tx_verdict(msg_pl, sk, full_record, in tls_sw_sendmsg_locked()
1255 struct sk_msg *msg_pl; in tls_sw_splice_eof() local
1272 msg_pl = &rec->msg_plaintext; in tls_sw_splice_eof()
1273 if (msg_pl->sg.size == 0) in tls_sw_splice_eof()
1277 ret = bpf_exec_tx_verdict(msg_pl, sk, false, TLS_RECORD_TYPE_DATA, in tls_sw_splice_eof()