| /linux-6.15/net/strparser/ |
| H A D | strparser.c | 70 strp->cb.abort_parser(strp, err); in strp_parser_err() 213 len = (*strp->cb.parse_msg)(strp, head); in __strp_recv() 274 strp->need_bytes = stm->strp.full_len - in __strp_recv() 301 strp->cb.rcv_msg(strp, head); in __strp_recv() 362 strp->cb.read_sock(strp, &desc, strp_recv); in strp_read_sock() 404 strp->cb.lock(strp); in do_strp_work() 416 strp->cb.unlock(strp); in do_strp_work() 431 strp->cb.lock(strp); in strp_msg_timeout() 432 strp->cb.abort_parser(strp, -ETIMEDOUT); in strp_msg_timeout() 433 strp->cb.unlock(strp); in strp_msg_timeout() [all …]
|
| /linux-6.15/net/tls/ |
| H A D | tls_strp.c | 74 skb = tls_strp_skb_copy(strp, strp->anchor, strp->stm.offset, in tls_strp_msg_make_copy() 87 struct tls_strparser *strp = &ctx->strp; in tls_strp_msg_detach() local 122 struct tls_strparser *strp = &ctx->strp; in tls_strp_msg_cow() local 135 tcp_read_done(strp->sk, strp->stm.full_len); in tls_strp_msg_cow() 487 if (WARN_ON(tcp_inq(strp->sk) < strp->stm.full_len)) in tls_strp_msg_load() 518 sz = tls_rx_msg_size(strp, strp->anchor); in tls_strp_read_sock() 526 if (!strp->stm.full_len || inq < strp->stm.full_len) in tls_strp_read_sock() 541 if (unlikely(strp->stopped) || strp->msg_ready) in tls_strp_check_rcv() 581 tcp_read_done(strp->sk, strp->stm.full_len); in tls_strp_msg_done() 586 memset(&strp->stm, 0, sizeof(strp->stm)); in tls_strp_msg_done() [all …]
|
| H A D | tls.h | 188 void tls_strp_done(struct tls_strparser *strp); 189 void tls_strp_stop(struct tls_strparser *strp); 190 int tls_strp_init(struct tls_strparser *strp, struct sock *sk); 191 void tls_strp_data_ready(struct tls_strparser *strp); 193 void tls_strp_check_rcv(struct tls_strparser *strp); 194 void tls_strp_msg_done(struct tls_strparser *strp); 197 void tls_rx_msg_ready(struct tls_strparser *strp); 213 DEBUG_NET_WARN_ON_ONCE(!ctx->strp.msg_ready || !ctx->strp.anchor->len); in tls_strp_msg() 214 return ctx->strp.anchor; in tls_strp_msg() 219 return READ_ONCE(ctx->strp.msg_ready); in tls_strp_msg_ready() [all …]
|
| H A D | tls_sw.c | 1334 tls_strp_check_rcv(&ctx->strp); in tls_rx_rec_wait() 1363 tls_strp_msg_load(&ctx->strp, released); in tls_rx_rec_wait() 1811 tls_strp_msg_done(&ctx->strp); in tls_rx_rec_done() 2416 strp->mark = header[0]; in tls_rx_msg_size() 2447 tls_err_abort(strp->sk, ret); in tls_rx_msg_size() 2456 ctx = container_of(strp, struct tls_sw_context_rx, strp); in tls_rx_msg_ready() 2457 ctx->saved_data_ready(strp->sk); in tls_rx_msg_ready() 2471 tls_strp_data_ready(&ctx->strp); in tls_data_ready() 2540 tls_strp_stop(&ctx->strp); in tls_sw_release_resources_rx() 2557 tls_strp_done(&ctx->strp); in tls_sw_strparser_done() [all …]
|
| /linux-6.15/include/net/ |
| H A D | strparser.h | 50 void (*lock)(struct strparser *strp); 51 void (*unlock)(struct strparser *strp); 63 struct strp_msg strp; member 72 struct _strp_msg strp; member 87 offsetof(struct sk_skb_cb, strp)); in strp_msg() 112 strp->paused = 1; in strp_pause() 126 strp->stats._stat) in save_strp_stats() 136 if (strp->aborted) in save_strp_stats() 138 if (strp->interrupted) in save_strp_stats() 140 if (strp->unrecov_intr) in save_strp_stats() [all …]
|
| H A D | espintcp.h | 22 struct strparser strp; member
|
| H A D | kcm.h | 92 struct strparser strp; member
|
| H A D | tls.h | 137 struct tls_strparser strp; member
|
| /linux-6.15/tools/testing/selftests/bpf/prog_tests/ |
| H A D | sockmap_strp.c | 49 struct test_sockmap_strp *strp = NULL; in sockmap_strp_init() local 74 return strp; in sockmap_strp_init() 76 test_sockmap_strp__destroy(strp); in sockmap_strp_init() 95 struct test_sockmap_strp *strp = NULL; in test_sockmap_strp_dispatch_pkt() local 131 strp->data->verdict_max_size = 5; in test_sockmap_strp_dispatch_pkt() 160 test_sockmap_strp__destroy(strp); in test_sockmap_strp_dispatch_pkt() 174 struct test_sockmap_strp *strp = NULL; in test_sockmap_strp_multiple_pkt() local 225 test_sockmap_strp__destroy(strp); in test_sockmap_strp_multiple_pkt() 285 test_sockmap_strp__destroy(strp); in test_sockmap_strp_partial_read() 364 test_sockmap_strp__destroy(strp); in test_sockmap_strp_pass() [all …]
|
| /linux-6.15/net/xfrm/ |
| H A D | espintcp.c | 57 strp); in espintcp_rcv() 97 XFRM_INC_STATS(sock_net(strp->sk), LINUX_MIB_XFRMINERROR); in espintcp_rcv() 103 XFRM_INC_STATS(sock_net(strp->sk), LINUX_MIB_XFRMINERROR); in espintcp_rcv() 109 handle_nonesp(ctx, skb, strp->sk); in espintcp_rcv() 111 handle_esp(skb, strp->sk); in espintcp_rcv() 413 strp_data_ready(&ctx->strp); in espintcp_data_ready() 420 struct sock *sk = ctx->strp.sk; in espintcp_tx_work() 472 err = strp_init(&ctx->strp, sk, &cb); in espintcp_init_sk() 478 strp_check_rcv(&ctx->strp); in espintcp_init_sk() 534 strp_stop(&ctx->strp); in espintcp_close() [all …]
|
| /linux-6.15/Documentation/networking/ |
| H A D | strparser.rst | 43 strp_init(struct strparser *strp, struct sock *sk, 54 void strp_pause(struct strparser *strp) 61 void strp_unpause(struct strparser *strp) 67 void strp_stop(struct strparser *strp); 76 void strp_done(struct strparser *strp); 96 void strp_data_ready(struct strparser *strp); 106 void strp_check_rcv(struct strparser *strp); 152 void (*lock)(struct strparser *strp) 162 void (*unlock)(struct strparser *strp) 194 int (*read_sock_done)(struct strparser *strp, int err); [all …]
|
| /linux-6.15/net/kcm/ |
| H A D | kcmproc.c | 145 psock->strp.stats.msgs, in kcm_format_psock() 146 psock->strp.stats.bytes, in kcm_format_psock() 160 if (psock->strp.stopped) in kcm_format_psock() 166 if (!psock->strp.paused && !psock->ready_rx_msg) { in kcm_format_psock() 168 if (psock->strp.need_bytes) in kcm_format_psock() 170 psock->strp.need_bytes); in kcm_format_psock() 175 if (psock->strp.paused) in kcm_format_psock() 273 save_strp_stats(&psock->strp, &strp_stats); in kcm_stats_seq_show()
|
| H A D | kcmsock.c | 98 psock->strp.stats.bytes - in kcm_update_rx_mux_stats() 159 strp_unpause(&psock->strp); in kcm_rcv_ready() 160 strp_check_rcv(&psock->strp); in kcm_rcv_ready() 276 strp_pause(&psock->strp); in reserve_rx_kcm() 359 strp_data_ready(&psock->strp); in psock_data_ready() 367 struct kcm_psock *psock = container_of(strp, struct kcm_psock, strp); in kcm_rcv_strparser() 388 struct kcm_psock *psock = container_of(strp, struct kcm_psock, strp); in kcm_parse_func_strparser() 398 struct kcm_psock *psock = container_of(strp, struct kcm_psock, strp); in kcm_read_sock_done() 1312 strp_check_rcv(&psock->strp); in kcm_attach() 1365 strp_stop(&psock->strp); in kcm_unattach() [all …]
|
| /linux-6.15/scripts/dtc/ |
| H A D | util.c | 47 int xavsprintf_append(char **strp, const char *fmt, va_list ap) in xavsprintf_append() argument 53 p = *strp; in xavsprintf_append() 65 *strp = p; in xavsprintf_append() 69 int xasprintf_append(char **strp, const char *fmt, ...) in xasprintf_append() argument 75 n = xavsprintf_append(strp, fmt, ap); in xasprintf_append() 81 int xasprintf(char **strp, const char *fmt, ...) in xasprintf() argument 86 *strp = NULL; in xasprintf() 89 n = xavsprintf_append(strp, fmt, ap); in xasprintf()
|
| H A D | util.h | 68 extern int PRINTF(2, 3) xasprintf(char **strp, const char *fmt, ...); 69 extern int PRINTF(2, 3) xasprintf_append(char **strp, const char *fmt, ...); 70 extern int PRINTF(2, 0) xavsprintf_append(char **strp, const char *fmt, va_list ap);
|
| /linux-6.15/drivers/scsi/aic7xxx/aicasm/ |
| H A D | aicasm_scan.l | 549 const char *strp; 552 strp = next_match + strlen(next_match); 553 while (strp > next_match) 554 unput(*--strp);
|
| /linux-6.15/net/core/ |
| H A D | skmsg.c | 1064 static void sk_psock_strp_read(struct strparser *strp, struct sk_buff *skb) in sk_psock_strp_read() argument 1072 sk = strp->sk; in sk_psock_strp_read() 1093 static int sk_psock_strp_read_done(struct strparser *strp, int err) in sk_psock_strp_read_done() argument 1098 static int sk_psock_strp_parse(struct strparser *strp, struct sk_buff *skb) in sk_psock_strp_parse() argument 1100 struct sk_psock *psock = container_of(strp, struct sk_psock, strp); in sk_psock_strp_parse() 1129 strp_data_ready(&psock->strp); in sk_psock_strp_data_ready() 1146 ret = strp_init(&psock->strp, sk, &cb); in sk_psock_init_strp() 1151 psock->strp.cb.read_sock = tcp_bpf_strp_read_sock; in sk_psock_init_strp() 1176 strp_stop(&psock->strp); in sk_psock_stop_strp() 1183 strp_done(&psock->strp); in sk_psock_done_strp()
|
| /linux-6.15/tools/perf/util/ |
| H A D | util.c | 345 int perf_tip(char **strp, const char *dirpath) in perf_tip() argument 355 *strp = NULL; in perf_tip() 364 if (asprintf(strp, "Tip: %s", node->s) < 0) in perf_tip()
|
| H A D | build-id.c | 118 static int asnprintf(char **strp, size_t size, const char *fmt, ...) in asnprintf() argument 123 if (!strp) in asnprintf() 127 if (*strp) in asnprintf() 128 ret = vsnprintf(*strp, size, fmt, ap); in asnprintf() 130 ret = vasprintf(strp, fmt, ap); in asnprintf()
|
| H A D | util.h | 49 int perf_tip(char **strp, const char *dirpath);
|
| /linux-6.15/security/apparmor/ |
| H A D | label.c | 1672 int aa_label_asxprint(char **strp, struct aa_ns *ns, struct aa_label *label, in aa_label_asxprint() argument 1677 AA_BUG(!strp); in aa_label_asxprint() 1684 *strp = kmalloc(size + 1, gfp); in aa_label_asxprint() 1685 if (!*strp) in aa_label_asxprint() 1687 return aa_label_snxprint(*strp, size + 1, ns, label, flags); in aa_label_asxprint() 1701 int aa_label_acntsxprint(char __counted **strp, struct aa_ns *ns, in aa_label_acntsxprint() argument 1706 AA_BUG(!strp); in aa_label_acntsxprint() 1713 *strp = aa_str_alloc(size + 1, gfp); in aa_label_acntsxprint() 1714 if (!*strp) in aa_label_acntsxprint() 1716 return aa_label_snxprint(*strp, size + 1, ns, label, flags); in aa_label_acntsxprint()
|
| /linux-6.15/security/apparmor/include/ |
| H A D | label.h | 287 int aa_label_asxprint(char **strp, struct aa_ns *ns, struct aa_label *label, 289 int aa_label_acntsxprint(char __counted **strp, struct aa_ns *ns,
|
| /linux-6.15/security/selinux/ss/ |
| H A D | policydb.h | 389 extern int str_read(char **strp, gfp_t flags, struct policy_file *fp, u32 len);
|
| /linux-6.15/net/ipv4/ |
| H A D | tcp_bpf.c | 650 int tcp_bpf_strp_read_sock(struct strparser *strp, read_descriptor_t *desc, in tcp_bpf_strp_read_sock() argument 653 struct sock *sk = strp->sk; in tcp_bpf_strp_read_sock()
|
| /linux-6.15/include/linux/ |
| H A D | skmsg.h | 93 struct strparser strp; member
|