• Home
  • Raw
  • Download

Lines Matching refs:rxm

134 	struct strp_msg *rxm = strp_msg(skb);  in padding_length()  local
144 if (back > rxm->full_len - prot->prepend_size) in padding_length()
147 rxm->offset + rxm->full_len - back, in padding_length()
187 struct strp_msg *rxm = strp_msg(skb); in tls_decrypt_done() local
195 rxm->full_len -= pad; in tls_decrypt_done()
196 rxm->offset += prot->prepend_size; in tls_decrypt_done()
197 rxm->full_len -= prot->overhead_size; in tls_decrypt_done()
1420 struct strp_msg *rxm = strp_msg(skb); in decrypt_internal() local
1427 const int data_len = rxm->full_len - prot->overhead_size + in decrypt_internal()
1436 n_sgin = skb_nsg(skb, rxm->offset + prot->prepend_size, in decrypt_internal()
1437 rxm->full_len - prot->prepend_size); in decrypt_internal()
1479 err = skb_copy_bits(skb, rxm->offset + TLS_HEADER_SIZE, in decrypt_internal()
1495 tls_make_aad(aad, rxm->full_len - prot->overhead_size + in decrypt_internal()
1504 rxm->offset + prot->prepend_size, in decrypt_internal()
1505 rxm->full_len - prot->prepend_size); in decrypt_internal()
1556 struct strp_msg *rxm = strp_msg(skb); in decrypt_skb_update() local
1561 err = tls_device_decrypted(sk, tls_ctx, skb, rxm); in decrypt_skb_update()
1587 rxm->full_len -= pad; in decrypt_skb_update()
1588 rxm->offset += prot->prepend_size; in decrypt_skb_update()
1589 rxm->full_len -= prot->overhead_size; in decrypt_skb_update()
1616 struct strp_msg *rxm = strp_msg(skb); in tls_sw_advance_skb() local
1618 if (len < rxm->full_len) { in tls_sw_advance_skb()
1619 rxm->offset += len; in tls_sw_advance_skb()
1620 rxm->full_len -= len; in tls_sw_advance_skb()
1660 struct strp_msg *rxm = strp_msg(skb); in process_rx_list() local
1667 if (skip < rxm->full_len) in process_rx_list()
1670 skip = skip - rxm->full_len; in process_rx_list()
1676 struct strp_msg *rxm = strp_msg(skb); in process_rx_list() local
1677 int chunk = min_t(unsigned int, rxm->full_len - skip, len); in process_rx_list()
1700 if (!zc || (rxm->full_len - skip) > len) { in process_rx_list()
1701 int err = skb_copy_datagram_msg(skb, rxm->offset + skip, in process_rx_list()
1712 rxm->offset = rxm->offset + chunk; in process_rx_list()
1713 rxm->full_len = rxm->full_len - chunk; in process_rx_list()
1716 if (rxm->full_len - skip) in process_rx_list()
1755 struct strp_msg *rxm; in tls_sw_recvmsg() local
1823 rxm = strp_msg(skb); in tls_sw_recvmsg()
1825 to_decrypt = rxm->full_len - prot->overhead_size; in tls_sw_recvmsg()
1887 rxm->offset = rxm->offset + rxm->full_len; in tls_sw_recvmsg()
1888 rxm->full_len = 0; in tls_sw_recvmsg()
1897 if (rxm->full_len > len) { in tls_sw_recvmsg()
1901 chunk = rxm->full_len; in tls_sw_recvmsg()
1904 err = skb_copy_datagram_msg(skb, rxm->offset, in tls_sw_recvmsg()
1910 rxm->offset = rxm->offset + chunk; in tls_sw_recvmsg()
1911 rxm->full_len = rxm->full_len - chunk; in tls_sw_recvmsg()
1995 struct strp_msg *rxm = NULL; in tls_sw_splice_read() local
2024 rxm = strp_msg(skb); in tls_sw_splice_read()
2026 chunk = min_t(unsigned int, rxm->full_len, len); in tls_sw_splice_read()
2027 copied = skb_splice_bits(skb, sk, rxm->offset, pipe, chunk, flags); in tls_sw_splice_read()
2062 struct strp_msg *rxm = strp_msg(skb); in tls_read_size() local
2068 if (rxm->offset + prot->prepend_size > skb->len) in tls_read_size()
2078 ret = skb_copy_bits(skb, rxm->offset, header, prot->prepend_size); in tls_read_size()
2109 TCP_SKB_CB(skb)->seq + rxm->offset); in tls_read_size()