Lines Matching refs:rxm

156 	struct strp_msg *rxm = strp_msg(skb);  in tls_padding_length()  local
162 int offset = rxm->full_len - TLS_TAG_SIZE - 1; in tls_padding_length()
169 err = skb_copy_bits(skb, rxm->offset + offset, in tls_padding_length()
1464 const struct strp_msg *rxm = strp_msg(skb); in tls_decrypt_sg() local
1469 const int data_len = rxm->full_len - prot->overhead_size; in tls_decrypt_sg()
1476 n_sgin = skb_nsg(skb, rxm->offset + prot->prepend_size, in tls_decrypt_sg()
1477 rxm->full_len - prot->prepend_size); in tls_decrypt_sg()
1492 clear_skb = tls_alloc_clrtxt_skb(sk, skb, rxm->full_len); in tls_decrypt_sg()
1540 err = skb_copy_bits(skb, rxm->offset + TLS_HEADER_SIZE, in tls_decrypt_sg()
1550 tls_make_aad(dctx->aad, rxm->full_len - prot->overhead_size + in tls_decrypt_sg()
1558 rxm->offset + prot->prepend_size, in tls_decrypt_sg()
1559 rxm->full_len - prot->prepend_size); in tls_decrypt_sg()
1626 struct strp_msg *rxm; in tls_decrypt_sw() local
1654 rxm = strp_msg(darg->skb); in tls_decrypt_sw()
1655 rxm->full_len -= pad; in tls_decrypt_sw()
1666 struct strp_msg *rxm; in tls_decrypt_device() local
1686 rxm = strp_msg(darg->skb); in tls_decrypt_device()
1687 rxm->full_len -= pad; in tls_decrypt_device()
1700 off = rxm->offset + prot->prepend_size; in tls_decrypt_device()
1701 len = rxm->full_len - prot->overhead_size; in tls_decrypt_device()
1715 struct strp_msg *rxm; in tls_rx_one_record() local
1724 rxm = strp_msg(darg->skb); in tls_rx_one_record()
1725 rxm->offset += prot->prepend_size; in tls_rx_one_record()
1726 rxm->full_len -= prot->overhead_size; in tls_rx_one_record()
1785 struct strp_msg *rxm = strp_msg(skb); in process_rx_list() local
1792 if (skip < rxm->full_len) in process_rx_list()
1795 skip = skip - rxm->full_len; in process_rx_list()
1801 struct strp_msg *rxm = strp_msg(skb); in process_rx_list() local
1802 int chunk = min_t(unsigned int, rxm->full_len - skip, len); in process_rx_list()
1810 err = skb_copy_datagram_msg(skb, rxm->offset + skip, in process_rx_list()
1820 rxm->offset = rxm->offset + chunk; in process_rx_list()
1821 rxm->full_len = rxm->full_len - chunk; in process_rx_list()
1824 if (rxm->full_len - skip) in process_rx_list()
1936 struct strp_msg *rxm; in tls_sw_recvmsg() local
1997 rxm = strp_msg(tls_strp_msg(ctx)); in tls_sw_recvmsg()
2000 to_decrypt = rxm->full_len - prot->overhead_size; in tls_sw_recvmsg()
2042 rxm = strp_msg(darg.skb); in tls_sw_recvmsg()
2043 chunk = rxm->full_len; in tls_sw_recvmsg()
2067 rxm->offset = rxm->offset + rxm->full_len; in tls_sw_recvmsg()
2068 rxm->full_len = 0; in tls_sw_recvmsg()
2078 err = skb_copy_datagram_msg(skb, rxm->offset, in tls_sw_recvmsg()
2087 rxm->offset += chunk; in tls_sw_recvmsg()
2088 rxm->full_len -= chunk; in tls_sw_recvmsg()
2152 struct strp_msg *rxm = NULL; in tls_sw_splice_read() local
2186 rxm = strp_msg(skb); in tls_sw_splice_read()
2195 chunk = min_t(unsigned int, rxm->full_len, len); in tls_sw_splice_read()
2196 copied = skb_splice_bits(skb, sk, rxm->offset, pipe, chunk, flags); in tls_sw_splice_read()
2200 if (chunk < rxm->full_len) { in tls_sw_splice_read()
2201 rxm->offset += len; in tls_sw_splice_read()
2202 rxm->full_len -= len; in tls_sw_splice_read()