Home
last modified time | relevance | path

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

/Linux-v5.4/net/strparser/
Dstrparser.c34 struct strp_msg strp; member
45 static void strp_abort_strp(struct strparser *strp, int err) in strp_abort_strp() argument
49 cancel_delayed_work(&strp->msg_timer_work); in strp_abort_strp()
51 if (strp->stopped) in strp_abort_strp()
54 strp->stopped = 1; in strp_abort_strp()
56 if (strp->sk) { in strp_abort_strp()
57 struct sock *sk = strp->sk; in strp_abort_strp()
65 static void strp_start_timer(struct strparser *strp, long timeo) in strp_start_timer() argument
68 mod_delayed_work(strp_wq, &strp->msg_timer_work, timeo); in strp_start_timer()
72 static void strp_parser_err(struct strparser *strp, int err, in strp_parser_err() argument
[all …]
/Linux-v5.4/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);
83 static inline void strp_pause(struct strparser *strp) in strp_pause() argument
85 strp->paused = 1; in strp_pause()
89 void strp_unpause(struct strparser *strp);
91 void __strp_unpause(struct strparser *strp);
[all …]
Dkcm.h91 struct strparser strp; member
Dtls.h172 struct strparser strp; member
/Linux-v5.4/arch/mips/pmcs-msp71xx/
Dmsp_usb.c123 char *strp; in msp_usb_setup() local
142 strp = prom_getenv(&envstr[0]); in msp_usb_setup()
143 if (strp) { in msp_usb_setup()
145 if (!strcmp(strp, "device")) in msp_usb_setup()
/Linux-v5.4/Documentation/networking/
Dstrparser.txt37 strp_init(struct strparser *strp, struct sock *sk,
40 Called to initialize a stream parser. strp is a struct of type
46 void strp_pause(struct strparser *strp)
51 void strp_unpause(struct strparser *strp)
55 void strp_stop(struct strparser *strp);
62 void strp_done(struct strparser *strp);
68 int strp_process(struct strparser *strp, struct sk_buff *orig_skb,
78 void strp_data_ready(struct strparser *strp);
86 void strp_check_rcv(struct strparser *strp);
97 int (*parse_msg)(struct strparser *strp, struct sk_buff *skb);
[all …]
/Linux-v5.4/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()
272 strp_pause(&psock->strp); in reserve_rx_kcm()
350 strp_data_ready(&psock->strp); in psock_data_ready()
356 static void kcm_rcv_strparser(struct strparser *strp, struct sk_buff *skb) in kcm_rcv_strparser() argument
358 struct kcm_psock *psock = container_of(strp, struct kcm_psock, strp); in kcm_rcv_strparser()
[all …]
/Linux-v5.4/scripts/dtc/
Dutil.c35 int xavsprintf_append(char **strp, const char *fmt, va_list ap) in xavsprintf_append() argument
41 p = *strp; in xavsprintf_append()
53 *strp = p; in xavsprintf_append()
57 int xasprintf_append(char **strp, const char *fmt, ...) in xasprintf_append() argument
63 n = xavsprintf_append(strp, fmt, ap); in xasprintf_append()
69 int xasprintf(char **strp, const char *fmt, ...) in xasprintf() argument
74 *strp = NULL; in xasprintf()
77 n = xavsprintf_append(strp, fmt, ap); in xasprintf()
Dutil.h60 extern int PRINTF(2, 3) xasprintf(char **strp, const char *fmt, ...);
61 extern int PRINTF(2, 3) xasprintf_append(char **strp, const char *fmt, ...);
62 extern int xavsprintf_append(char **strp, const char *fmt, va_list ap);
/Linux-v5.4/net/core/
Dskmsg.c570 strp_done(&psock->parser.strp); in sk_psock_destroy_deferred()
681 static struct sk_psock *sk_psock_from_strp(struct strparser *strp) in sk_psock_from_strp() argument
685 parser = container_of(strp, struct sk_psock_parser, strp); in sk_psock_from_strp()
741 static void sk_psock_strp_read(struct strparser *strp, struct sk_buff *skb) in sk_psock_strp_read() argument
743 struct sk_psock *psock = sk_psock_from_strp(strp); in sk_psock_strp_read()
759 static int sk_psock_strp_read_done(struct strparser *strp, int err) in sk_psock_strp_read_done() argument
764 static int sk_psock_strp_parse(struct strparser *strp, struct sk_buff *skb) in sk_psock_strp_parse() argument
766 struct sk_psock *psock = sk_psock_from_strp(strp); in sk_psock_strp_parse()
787 strp_data_ready(&psock->parser.strp); in sk_psock_strp_data_ready()
816 return strp_init(&psock->parser.strp, sk, &cb); in sk_psock_init_strp()
[all …]
/Linux-v5.4/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);
/Linux-v5.4/tools/perf/util/
Dbuild-id.c142 static int asnprintf(char **strp, size_t size, const char *fmt, ...) in asnprintf() argument
147 if (!strp) in asnprintf()
151 if (*strp) in asnprintf()
152 ret = vsnprintf(*strp, size, fmt, ap); in asnprintf()
154 ret = vasprintf(strp, fmt, ap); in asnprintf()
Dsort.c3036 char *str, *strp; in __setup_output_field() local
3042 strp = str = strdup(field_order); in __setup_output_field()
3049 strp++; in __setup_output_field()
3051 if (!strlen(strp)) { in __setup_output_field()
3056 ret = setup_output_list(&perf_hpp_list, strp); in __setup_output_field()
/Linux-v5.4/security/apparmor/
Dlabel.c1657 int aa_label_asxprint(char **strp, struct aa_ns *ns, struct aa_label *label, in aa_label_asxprint() argument
1662 AA_BUG(!strp); in aa_label_asxprint()
1669 *strp = kmalloc(size + 1, gfp); in aa_label_asxprint()
1670 if (!*strp) in aa_label_asxprint()
1672 return aa_label_snxprint(*strp, size + 1, ns, label, flags); in aa_label_asxprint()
1686 int aa_label_acntsxprint(char __counted **strp, struct aa_ns *ns, in aa_label_acntsxprint() argument
1691 AA_BUG(!strp); in aa_label_acntsxprint()
1698 *strp = aa_str_alloc(size + 1, gfp); in aa_label_acntsxprint()
1699 if (!*strp) in aa_label_acntsxprint()
1701 return aa_label_snxprint(*strp, size + 1, ns, label, flags); in aa_label_acntsxprint()
/Linux-v5.4/net/tls/
Dtls_sw.c1560 __strp_unpause(&ctx->strp); in tls_sw_advance_skb()
1967 static int tls_read_size(struct strparser *strp, struct sk_buff *skb) in tls_read_size() argument
1969 struct tls_context *tls_ctx = tls_get_ctx(strp->sk); in tls_read_size()
2019 tls_device_rx_resync_new_rec(strp->sk, data_len + TLS_HEADER_SIZE, in tls_read_size()
2024 tls_err_abort(strp->sk, ret); in tls_read_size()
2029 static void tls_queue(struct strparser *strp, struct sk_buff *skb) in tls_queue() argument
2031 struct tls_context *tls_ctx = tls_get_ctx(strp->sk); in tls_queue()
2037 strp_pause(strp); in tls_queue()
2039 ctx->saved_data_ready(strp->sk); in tls_queue()
2048 strp_data_ready(&ctx->strp); in tls_data_ready()
[all …]
/Linux-v5.4/security/apparmor/include/
Dlabel.h312 int aa_label_asxprint(char **strp, struct aa_ns *ns, struct aa_label *label,
314 int aa_label_acntsxprint(char __counted **strp, struct aa_ns *ns,
/Linux-v5.4/include/linux/
Dskmsg.h70 struct strparser strp; member
/Linux-v5.4/security/selinux/ss/
Dpolicydb.c1059 static int str_read(char **strp, gfp_t flags, void *fp, u32 len) in str_read() argument
1072 *strp = str; in str_read()