Home
last modified time | relevance | path

Searched refs:strp (Results 1 – 23 of 23) sorted by relevance

/kernel/linux/linux-5.10/net/strparser/
Dstrparser.c33 offsetof(struct sk_skb_cb, strp)); in _strp_msg()
37 static void strp_abort_strp(struct strparser *strp, int err) in strp_abort_strp() argument
41 cancel_delayed_work(&strp->msg_timer_work); in strp_abort_strp()
43 if (strp->stopped) in strp_abort_strp()
46 strp->stopped = 1; in strp_abort_strp()
48 if (strp->sk) { in strp_abort_strp()
49 struct sock *sk = strp->sk; in strp_abort_strp()
57 static void strp_start_timer(struct strparser *strp, long timeo) in strp_start_timer() argument
60 mod_delayed_work(strp_wq, &strp->msg_timer_work, timeo); in strp_start_timer()
64 static void strp_parser_err(struct strparser *strp, int err, in strp_parser_err() argument
[all …]
/kernel/linux/linux-5.10/include/net/
Dstrparser.h44 int (*parse_msg)(struct strparser *strp, struct sk_buff *skb);
45 void (*rcv_msg)(struct strparser *strp, struct sk_buff *skb);
46 int (*read_sock_done)(struct strparser *strp, int err);
47 void (*abort_parser)(struct strparser *strp, int err);
48 void (*lock)(struct strparser *strp);
49 void (*unlock)(struct strparser *strp);
61 struct strp_msg strp; member
68 struct _strp_msg strp; member
74 offsetof(struct sk_skb_cb, strp)); in strp_msg()
97 static inline void strp_pause(struct strparser *strp) in strp_pause() argument
[all …]
Despintcp.h22 struct strparser strp; member
Dkcm.h91 struct strparser strp; member
Dtls.h151 struct strparser strp; member
/kernel/linux/linux-5.10/net/xfrm/
Despintcp.c52 static void espintcp_rcv(struct strparser *strp, struct sk_buff *skb) in espintcp_rcv() argument
54 struct espintcp_ctx *ctx = container_of(strp, struct espintcp_ctx, in espintcp_rcv()
55 strp); in espintcp_rcv()
67 XFRM_INC_STATS(sock_net(strp->sk), LINUX_MIB_XFRMINHDRERROR); in espintcp_rcv()
80 XFRM_INC_STATS(sock_net(strp->sk), LINUX_MIB_XFRMINHDRERROR); in espintcp_rcv()
88 XFRM_INC_STATS(sock_net(strp->sk), LINUX_MIB_XFRMINHDRERROR); in espintcp_rcv()
95 XFRM_INC_STATS(sock_net(strp->sk), LINUX_MIB_XFRMINERROR); in espintcp_rcv()
101 XFRM_INC_STATS(sock_net(strp->sk), LINUX_MIB_XFRMINERROR); in espintcp_rcv()
107 handle_nonesp(ctx, skb, strp->sk); in espintcp_rcv()
109 handle_esp(skb, strp->sk); in espintcp_rcv()
[all …]
/kernel/linux/linux-5.10/Documentation/networking/
Dstrparser.rst43 strp_init(struct strparser *strp, struct sock *sk,
46 Called to initialize a stream parser. strp is a struct of type
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);
84 int strp_process(struct strparser *strp, struct sk_buff *orig_skb,
96 void strp_data_ready(struct strparser *strp);
106 void strp_check_rcv(struct strparser *strp);
119 int (*parse_msg)(struct strparser *strp, struct sk_buff *skb);
[all …]
/kernel/linux/linux-5.10/scripts/dtc/
Dutil.c36 int xavsprintf_append(char **strp, const char *fmt, va_list ap) in xavsprintf_append() argument
42 p = *strp; in xavsprintf_append()
54 *strp = p; in xavsprintf_append()
58 int xasprintf_append(char **strp, const char *fmt, ...) in xasprintf_append() argument
64 n = xavsprintf_append(strp, fmt, ap); in xasprintf_append()
70 int xasprintf(char **strp, const char *fmt, ...) in xasprintf() argument
75 *strp = NULL; in xasprintf()
78 n = xavsprintf_append(strp, fmt, ap); in xasprintf()
Dutil.h65 extern int PRINTF(2, 3) xasprintf(char **strp, const char *fmt, ...);
66 extern int PRINTF(2, 3) xasprintf_append(char **strp, const char *fmt, ...);
67 extern int xavsprintf_append(char **strp, const char *fmt, va_list ap);
/kernel/linux/linux-5.10/net/kcm/
Dkcmproc.c145 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()
Dkcmsock.c96 psock->strp.stats.bytes - in kcm_update_rx_mux_stats()
99 psock->strp.stats.msgs - psock->saved_rx_msgs; in kcm_update_rx_mux_stats()
100 psock->saved_rx_msgs = psock->strp.stats.msgs; in kcm_update_rx_mux_stats()
101 psock->saved_rx_bytes = psock->strp.stats.bytes; in kcm_update_rx_mux_stats()
157 strp_unpause(&psock->strp); in kcm_rcv_ready()
158 strp_check_rcv(&psock->strp); in kcm_rcv_ready()
274 strp_pause(&psock->strp); in reserve_rx_kcm()
355 strp_data_ready(&psock->strp); in psock_data_ready()
361 static void kcm_rcv_strparser(struct strparser *strp, struct sk_buff *skb) in kcm_rcv_strparser() argument
363 struct kcm_psock *psock = container_of(strp, struct kcm_psock, strp); in kcm_rcv_strparser()
[all …]
/kernel/linux/linux-5.10/net/core/
Dskmsg.c674 strp_done(&psock->parser.strp); in sk_psock_destroy_deferred()
771 static struct sk_psock *sk_psock_from_strp(struct strparser *strp) in sk_psock_from_strp() argument
775 parser = container_of(strp, struct sk_psock_parser, strp); in sk_psock_from_strp()
882 static void sk_psock_strp_read(struct strparser *strp, struct sk_buff *skb) in sk_psock_strp_read() argument
890 sk = strp->sk; in sk_psock_strp_read()
909 static int sk_psock_strp_read_done(struct strparser *strp, int err) in sk_psock_strp_read_done() argument
914 static int sk_psock_strp_parse(struct strparser *strp, struct sk_buff *skb) in sk_psock_strp_parse() argument
916 struct sk_psock *psock = sk_psock_from_strp(strp); in sk_psock_strp_parse()
943 strp_data_ready(&psock->parser.strp); in sk_psock_strp_data_ready()
1028 return strp_init(&psock->parser.strp, sk, &cb); in sk_psock_init_strp()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/aic7xxx/aicasm/
Daicasm_scan.l546 const char *strp;
549 strp = next_match + strlen(next_match);
550 while (strp > next_match)
551 unput(*--strp);
/kernel/linux/linux-5.10/tools/perf/util/
Dutil.c382 int perf_tip(char **strp, const char *dirpath) in perf_tip() argument
392 *strp = NULL; in perf_tip()
401 if (asprintf(strp, "Tip: %s", node->s) < 0) in perf_tip()
Dutil.h42 int perf_tip(char **strp, const char *dirpath);
Dbuild-id.c147 static int asnprintf(char **strp, size_t size, const char *fmt, ...) in asnprintf() argument
152 if (!strp) in asnprintf()
156 if (*strp) in asnprintf()
157 ret = vsnprintf(*strp, size, fmt, ap); in asnprintf()
159 ret = vasprintf(strp, fmt, ap); in asnprintf()
Dsort.c3071 char *str, *strp; in __setup_output_field() local
3077 strp = str = strdup(field_order); in __setup_output_field()
3084 strp++; in __setup_output_field()
3086 if (!strlen(strp)) { in __setup_output_field()
3091 ret = setup_output_list(&perf_hpp_list, strp); in __setup_output_field()
/kernel/linux/linux-5.10/net/tls/
Dtls_sw.c1311 __strp_unpause(&ctx->strp); in tls_wait_data()
1628 __strp_unpause(&ctx->strp); in tls_sw_advance_skb()
1892 __strp_unpause(&ctx->strp); in tls_sw_recvmsg()
2056 static int tls_read_size(struct strparser *strp, struct sk_buff *skb) in tls_read_size() argument
2058 struct tls_context *tls_ctx = tls_get_ctx(strp->sk); in tls_read_size()
2108 tls_device_rx_resync_new_rec(strp->sk, data_len + TLS_HEADER_SIZE, in tls_read_size()
2113 tls_err_abort(strp->sk, ret); in tls_read_size()
2118 static void tls_queue(struct strparser *strp, struct sk_buff *skb) in tls_queue() argument
2120 struct tls_context *tls_ctx = tls_get_ctx(strp->sk); in tls_queue()
2126 strp_pause(strp); in tls_queue()
[all …]
/kernel/linux/linux-5.10/security/apparmor/
Dlabel.c1687 int aa_label_asxprint(char **strp, struct aa_ns *ns, struct aa_label *label, in aa_label_asxprint() argument
1692 AA_BUG(!strp); in aa_label_asxprint()
1699 *strp = kmalloc(size + 1, gfp); in aa_label_asxprint()
1700 if (!*strp) in aa_label_asxprint()
1702 return aa_label_snxprint(*strp, size + 1, ns, label, flags); in aa_label_asxprint()
1716 int aa_label_acntsxprint(char __counted **strp, struct aa_ns *ns, in aa_label_acntsxprint() argument
1721 AA_BUG(!strp); in aa_label_acntsxprint()
1728 *strp = aa_str_alloc(size + 1, gfp); in aa_label_acntsxprint()
1729 if (!*strp) in aa_label_acntsxprint()
1731 return aa_label_snxprint(*strp, size + 1, ns, label, flags); in aa_label_acntsxprint()
/kernel/linux/linux-5.10/security/apparmor/include/
Dlabel.h314 int aa_label_asxprint(char **strp, struct aa_ns *ns, struct aa_label *label,
316 int aa_label_acntsxprint(char __counted **strp, struct aa_ns *ns,
/kernel/linux/linux-5.10/include/linux/
Dskmsg.h74 struct strparser strp; member
/kernel/linux/linux-5.10/fs/hmdfs/comm/
Dtransport.c582 if (ctx && ctx->strp.stopped) { in tcp_handle_is_available()
/kernel/linux/linux-5.10/security/selinux/ss/
Dpolicydb.c1075 static int str_read(char **strp, gfp_t flags, void *fp, u32 len) in str_read() argument
1094 *strp = str; in str_read()