Home
last modified time | relevance | path

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

/Linux-v4.19/net/strparser/
Dstrparser.c36 struct strp_msg strp; member
47 static void strp_abort_strp(struct strparser *strp, int err) in strp_abort_strp() argument
51 cancel_delayed_work(&strp->msg_timer_work); in strp_abort_strp()
53 if (strp->stopped) in strp_abort_strp()
56 strp->stopped = 1; in strp_abort_strp()
58 if (strp->sk) { in strp_abort_strp()
59 struct sock *sk = strp->sk; in strp_abort_strp()
67 static void strp_start_timer(struct strparser *strp, long timeo) in strp_start_timer() argument
70 mod_delayed_work(strp_wq, &strp->msg_timer_work, timeo); in strp_start_timer()
74 static void strp_parser_err(struct strparser *strp, int err, in strp_parser_err() argument
[all …]
/Linux-v4.19/include/net/
Dstrparser.h47 int (*parse_msg)(struct strparser *strp, struct sk_buff *skb);
48 void (*rcv_msg)(struct strparser *strp, struct sk_buff *skb);
49 int (*read_sock_done)(struct strparser *strp, int err);
50 void (*abort_parser)(struct strparser *strp, int err);
51 void (*lock)(struct strparser *strp);
52 void (*unlock)(struct strparser *strp);
86 static inline void strp_pause(struct strparser *strp) in strp_pause() argument
88 strp->paused = 1; in strp_pause()
92 void strp_unpause(struct strparser *strp);
94 void __strp_unpause(struct strparser *strp);
[all …]
Dkcm.h94 struct strparser strp; member
Dtls.h120 struct strparser strp; member
/Linux-v4.19/arch/mips/pmcs-msp71xx/
Dmsp_usb.c123 char *strp; in msp_usb_setup() local
142 strp = prom_getenv((char *)&envstr[0]); in msp_usb_setup()
143 if (strp) { in msp_usb_setup()
145 if (!strcmp(strp, "device")) in msp_usb_setup()
/Linux-v4.19/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-v4.19/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.c99 psock->strp.stats.bytes - in kcm_update_rx_mux_stats()
102 psock->strp.stats.msgs - psock->saved_rx_msgs; in kcm_update_rx_mux_stats()
103 psock->saved_rx_msgs = psock->strp.stats.msgs; in kcm_update_rx_mux_stats()
104 psock->saved_rx_bytes = psock->strp.stats.bytes; in kcm_update_rx_mux_stats()
160 strp_unpause(&psock->strp); in kcm_rcv_ready()
161 strp_check_rcv(&psock->strp); in kcm_rcv_ready()
275 strp_pause(&psock->strp); in reserve_rx_kcm()
353 strp_data_ready(&psock->strp); in psock_data_ready()
359 static void kcm_rcv_strparser(struct strparser *strp, struct sk_buff *skb) in kcm_rcv_strparser() argument
361 struct kcm_psock *psock = container_of(strp, struct kcm_psock, strp); in kcm_rcv_strparser()
[all …]
/Linux-v4.19/net/tls/
Dtls_sw.c838 __strp_unpause(&ctx->strp); in tls_sw_advance_skb()
1025 static int tls_read_size(struct strparser *strp, struct sk_buff *skb) in tls_read_size() argument
1027 struct tls_context *tls_ctx = tls_get_ctx(strp->sk); in tls_read_size()
1073 handle_device_resync(strp->sk, TCP_SKB_CB(skb)->seq + rxm->offset, in tls_read_size()
1079 tls_err_abort(strp->sk, ret); in tls_read_size()
1084 static void tls_queue(struct strparser *strp, struct sk_buff *skb) in tls_queue() argument
1086 struct tls_context *tls_ctx = tls_get_ctx(strp->sk); in tls_queue()
1092 strp_pause(strp); in tls_queue()
1094 ctx->saved_data_ready(strp->sk); in tls_queue()
1102 strp_data_ready(&ctx->strp); in tls_data_ready()
[all …]
/Linux-v4.19/drivers/scsi/aic7xxx/aicasm/
Daicasm_scan.l550 const char *strp;
553 strp = next_match + strlen(next_match);
554 while (strp > next_match)
555 unput(*--strp);
/Linux-v4.19/tools/perf/util/
Dbuild-id.c137 static int asnprintf(char **strp, size_t size, const char *fmt, ...) in asnprintf() argument
142 if (!strp) in asnprintf()
146 if (*strp) in asnprintf()
147 ret = vsnprintf(*strp, size, fmt, ap); in asnprintf()
149 ret = vasprintf(strp, fmt, ap); in asnprintf()
Dsort.c2932 char *str, *strp; in __setup_output_field() local
2938 strp = str = strdup(field_order); in __setup_output_field()
2945 strp++; in __setup_output_field()
2947 if (!strlen(strp)) { in __setup_output_field()
2952 ret = setup_output_list(&perf_hpp_list, strp); in __setup_output_field()
/Linux-v4.19/security/apparmor/
Dlabel.c1661 int aa_label_asxprint(char **strp, struct aa_ns *ns, struct aa_label *label, in aa_label_asxprint() argument
1666 AA_BUG(!strp); in aa_label_asxprint()
1673 *strp = kmalloc(size + 1, gfp); in aa_label_asxprint()
1674 if (!*strp) in aa_label_asxprint()
1676 return aa_label_snxprint(*strp, size + 1, ns, label, flags); in aa_label_asxprint()
1690 int aa_label_acntsxprint(char __counted **strp, struct aa_ns *ns, in aa_label_acntsxprint() argument
1695 AA_BUG(!strp); in aa_label_acntsxprint()
1702 *strp = aa_str_alloc(size + 1, gfp); in aa_label_acntsxprint()
1703 if (!*strp) in aa_label_acntsxprint()
1705 return aa_label_snxprint(*strp, size + 1, ns, label, flags); in aa_label_acntsxprint()
/Linux-v4.19/scripts/dtc/
Dutil.c50 int xasprintf(char **strp, const char *fmt, ...) in xasprintf() argument
75 *strp = p; in xasprintf()
Dutil.h74 extern int PRINTF(2, 3) xasprintf(char **strp, const char *fmt, ...);
/Linux-v4.19/kernel/bpf/
Dsockmap.c120 struct strparser strp; member
1360 static void smap_read_sock_strparser(struct strparser *strp, in smap_read_sock_strparser() argument
1366 psock = container_of(strp, struct smap_psock, strp); in smap_read_sock_strparser()
1380 strp_data_ready(&psock->strp); in smap_data_ready()
1469 strp_stop(&psock->strp); in smap_stop_sock()
1506 static int smap_parse_func_strparser(struct strparser *strp, in smap_parse_func_strparser() argument
1514 psock = container_of(strp, struct smap_psock, strp); in smap_parse_func_strparser()
1537 static int smap_read_sock_done(struct strparser *strp, int err) in smap_read_sock_done() argument
1551 return strp_init(&psock->strp, sk, &cb); in smap_init_sock()
1596 strp_done(&psock->strp); in smap_gc_work()
/Linux-v4.19/security/apparmor/include/
Dlabel.h316 int aa_label_asxprint(char **strp, struct aa_ns *ns, struct aa_label *label,
318 int aa_label_acntsxprint(char __counted **strp, struct aa_ns *ns,
/Linux-v4.19/security/selinux/ss/
Dpolicydb.c1096 static int str_read(char **strp, gfp_t flags, void *fp, u32 len) in str_read() argument
1109 *strp = str; in str_read()