Searched refs:strp (Results 1 - 24 of 24) sorted by relevance

/linux-master/net/strparser/
H A Dstrparser.c33 offsetof(struct sk_skb_cb, strp));
37 static void strp_abort_strp(struct strparser *strp, int err) argument
41 cancel_delayed_work(&strp->msg_timer_work);
43 if (strp->stopped)
46 strp->stopped = 1;
48 if (strp->sk) {
49 struct sock *sk = strp->sk;
57 static void strp_start_timer(struct strparser *strp, long timeo) argument
60 mod_delayed_work(strp_wq, &strp->msg_timer_work, timeo);
64 static void strp_parser_err(struct strparser *strp, in argument
73 strp_peek_len(struct strparser *strp) argument
93 struct strparser *strp = (struct strparser *)desc->arg.data; local
317 strp_process(struct strparser *strp, struct sk_buff *orig_skb, unsigned int orig_offset, size_t orig_len, size_t max_msg_size, long timeo) argument
333 struct strparser *strp = (struct strparser *)desc->arg.data; local
339 default_read_sock_done(struct strparser *strp, int err) argument
345 strp_read_sock(struct strparser *strp) argument
366 strp_data_ready(struct strparser *strp) argument
393 do_strp_work(struct strparser *strp) argument
420 struct strparser *strp = container_of(w, struct strparser, local
430 strp_sock_lock(struct strparser *strp) argument
435 strp_sock_unlock(struct strparser *strp) argument
440 strp_init(struct strparser *strp, struct sock *sk, const struct strp_callbacks *cb) argument
482 __strp_unpause(struct strparser *strp) argument
494 strp_unpause(struct strparser *strp) argument
508 strp_done(struct strparser *strp) argument
522 strp_stop(struct strparser *strp) argument
528 strp_check_rcv(struct strparser *strp) argument
[all...]
/linux-master/net/tls/
H A Dtls_strp.c15 static void tls_strp_abort_strp(struct tls_strparser *strp, int err) argument
17 if (strp->stopped)
20 strp->stopped = 1;
23 WRITE_ONCE(strp->sk->sk_err, -err);
26 sk_error_report(strp->sk);
29 static void tls_strp_anchor_free(struct tls_strparser *strp) argument
31 struct skb_shared_info *shinfo = skb_shinfo(strp->anchor);
34 if (!strp->copy_mode)
36 consume_skb(strp->anchor);
37 strp
41 tls_strp_skb_copy(struct tls_strparser *strp, struct sk_buff *in_skb, int offset, int len) argument
68 tls_strp_msg_make_copy(struct tls_strparser *strp) argument
86 struct tls_strparser *strp = &ctx->strp; local
121 struct tls_strparser *strp = &ctx->strp; local
144 tls_strp_msg_hold(struct tls_strparser *strp, struct sk_buff_head *dst) argument
191 tls_strp_flush_anchor_copy(struct tls_strparser *strp) argument
209 tls_strp_copyin_frag(struct tls_strparser *strp, struct sk_buff *skb, struct sk_buff *in_skb, unsigned int offset, size_t in_len) argument
279 tls_strp_copyin_skb(struct tls_strparser *strp, struct sk_buff *skb, struct sk_buff *in_skb, unsigned int offset, size_t in_len) argument
338 struct tls_strparser *strp = (struct tls_strparser *)desc->arg.data; local
370 tls_strp_read_copyin(struct tls_strparser *strp) argument
384 tls_strp_read_copy(struct tls_strparser *strp, bool qshort) argument
426 tls_strp_check_queue_ok(struct tls_strparser *strp) argument
453 tls_strp_load_anchor_with_queue(struct tls_strparser *strp, int len) argument
476 tls_strp_msg_load(struct tls_strparser *strp, bool force_refresh) argument
499 tls_strp_read_sock(struct tls_strparser *strp) argument
537 tls_strp_check_rcv(struct tls_strparser *strp) argument
547 tls_strp_data_ready(struct tls_strparser *strp) argument
566 struct tls_strparser *strp = local
574 tls_strp_msg_done(struct tls_strparser *strp) argument
589 tls_strp_stop(struct tls_strparser *strp) argument
594 tls_strp_init(struct tls_strparser *strp, struct sock *sk) argument
612 tls_strp_done(struct tls_strparser *strp) argument
[all...]
H A Dtls.h187 void tls_strp_done(struct tls_strparser *strp);
188 void tls_strp_stop(struct tls_strparser *strp);
189 int tls_strp_init(struct tls_strparser *strp, struct sock *sk);
190 void tls_strp_data_ready(struct tls_strparser *strp);
192 void tls_strp_check_rcv(struct tls_strparser *strp);
193 void tls_strp_msg_done(struct tls_strparser *strp);
195 int tls_rx_msg_size(struct tls_strparser *strp, struct sk_buff *skb);
196 void tls_rx_msg_ready(struct tls_strparser *strp);
198 void tls_strp_msg_load(struct tls_strparser *strp, bool force_refresh);
201 int tls_strp_msg_hold(struct tls_strparser *strp, struc
[all...]
H A Dtls_sw.c1330 tls_strp_check_rcv(&ctx->strp);
1359 tls_strp_msg_load(&ctx->strp, released);
1610 err = tls_strp_msg_hold(&ctx->strp, &ctx->async_hold);
1777 tls_strp_msg_done(&ctx->strp);
2079 DEBUG_NET_WARN_ON_ONCE(darg.skb == ctx->strp.anchor);
2359 int tls_rx_msg_size(struct tls_strparser *strp, struct sk_buff *skb) argument
2361 struct tls_context *tls_ctx = tls_get_ctx(strp->sk);
2369 if (strp->stm.offset + prot->prepend_size > skb->len)
2379 ret = skb_copy_bits(skb, strp->stm.offset, header, prot->prepend_size);
2383 strp
2419 tls_rx_msg_ready(struct tls_strparser *strp) argument
[all...]
H A Dtls_main.c708 tls_strp_check_rcv(&rx_ctx->strp);
/linux-master/include/net/
H A 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 in struct:_strp_msg
68 /* align strp on cache line boundary within skb->cb[] */
70 struct _strp_msg strp; member in struct:sk_skb_cb
72 /* strp user
108 strp_pause(struct strparser *strp) argument
118 save_strp_stats(struct strparser *strp, struct strp_aggr_stats *agg_stats) argument
[all...]
H A Despintcp.h22 struct strparser strp; member in struct:espintcp_ctx
H A Dkcm.h91 struct strparser strp; member in struct:kcm_psock
H A Dtls.h134 struct tls_strparser strp; member in struct:tls_sw_context_rx
/linux-master/scripts/dtc/
H A Dutil.h66 extern int PRINTF(2, 3) xasprintf(char **strp, const char *fmt, ...);
67 extern int PRINTF(2, 3) xasprintf_append(char **strp, const char *fmt, ...);
68 extern int xavsprintf_append(char **strp, const char *fmt, va_list ap);
H A Dutil.c47 int xavsprintf_append(char **strp, const char *fmt, va_list ap) argument
53 p = *strp;
65 *strp = p;
69 int xasprintf_append(char **strp, const char *fmt, ...) argument
75 n = xavsprintf_append(strp, fmt, ap);
81 int xasprintf(char **strp, const char *fmt, ...) argument
86 *strp = NULL;
89 n = xavsprintf_append(strp, fmt, ap);
/linux-master/net/xfrm/
H A Despintcp.c54 static void espintcp_rcv(struct strparser *strp, struct sk_buff *skb) argument
56 struct espintcp_ctx *ctx = container_of(strp, struct espintcp_ctx,
57 strp);
69 XFRM_INC_STATS(sock_net(strp->sk), LINUX_MIB_XFRMINHDRERROR);
82 XFRM_INC_STATS(sock_net(strp->sk), LINUX_MIB_XFRMINHDRERROR);
90 XFRM_INC_STATS(sock_net(strp->sk), LINUX_MIB_XFRMINHDRERROR);
97 XFRM_INC_STATS(sock_net(strp->sk), LINUX_MIB_XFRMINERROR);
103 XFRM_INC_STATS(sock_net(strp->sk), LINUX_MIB_XFRMINERROR);
109 handle_nonesp(ctx, skb, strp->sk);
111 handle_esp(skb, strp
114 espintcp_parse(struct strparser *strp, struct sk_buff *skb) argument
[all...]
/linux-master/net/kcm/
H A Dkcmproc.c145 psock->strp.stats.msgs,
146 psock->strp.stats.bytes,
160 if (psock->strp.stopped)
166 if (!psock->strp.paused && !psock->ready_rx_msg) {
168 if (psock->strp.need_bytes)
170 psock->strp.need_bytes);
175 if (psock->strp.paused)
273 save_strp_stats(&psock->strp, &strp_stats);
H A Dkcmsock.c98 psock->strp.stats.bytes -
101 psock->strp.stats.msgs - psock->saved_rx_msgs;
102 psock->saved_rx_msgs = psock->strp.stats.msgs;
103 psock->saved_rx_bytes = psock->strp.stats.bytes;
159 strp_unpause(&psock->strp);
160 strp_check_rcv(&psock->strp);
276 strp_pause(&psock->strp);
359 strp_data_ready(&psock->strp);
365 static void kcm_rcv_strparser(struct strparser *strp, struct sk_buff *skb) argument
367 struct kcm_psock *psock = container_of(strp, struc
386 kcm_parse_func_strparser(struct strparser *strp, struct sk_buff *skb) argument
396 kcm_read_sock_done(struct strparser *strp, int err) argument
[all...]
/linux-master/tools/perf/util/
H A Dutil.h54 int perf_tip(char **strp, const char *dirpath);
H A Dutil.c418 int perf_tip(char **strp, const char *dirpath) argument
428 *strp = NULL;
437 if (asprintf(strp, "Tip: %s", node->s) < 0)
H A Dbuild-id.c150 static int asnprintf(char **strp, size_t size, const char *fmt, ...) argument
155 if (!strp)
159 if (*strp)
160 ret = vsnprintf(*strp, size, fmt, ap);
162 ret = vasprintf(strp, fmt, ap);
H A Dsort.c3839 char *str, *strp; local
3845 strp = str = strdup(field_order);
3852 strp++;
3854 if (!strlen(strp)) {
3859 ret = setup_output_list(&perf_hpp_list, strp);
/linux-master/net/core/
H A Dskmsg.c1055 static void sk_psock_strp_read(struct strparser *strp, struct sk_buff *skb) argument
1063 sk = strp->sk;
1084 static int sk_psock_strp_read_done(struct strparser *strp, int err) argument
1089 static int sk_psock_strp_parse(struct strparser *strp, struct sk_buff *skb) argument
1091 struct sk_psock *psock = container_of(strp, struct sk_psock, strp);
1120 strp_data_ready(&psock->strp);
1137 ret = strp_init(&psock->strp, sk, &cb);
1163 strp_stop(&psock->strp);
1170 strp_done(&psock->strp);
[all...]
/linux-master/security/apparmor/
H A Dlabel.c1680 * @strp: Returns - the allocated buffer with the label name. (NOT NULL)
1689 int aa_label_asxprint(char **strp, struct aa_ns *ns, struct aa_label *label, argument
1694 AA_BUG(!strp);
1701 *strp = kmalloc(size + 1, gfp);
1702 if (!*strp)
1704 return aa_label_snxprint(*strp, size + 1, ns, label, flags);
1709 * @strp: buffer to write to.
1718 int aa_label_acntsxprint(char __counted **strp, struct aa_ns *ns, argument
1723 AA_BUG(!strp);
1730 *strp
[all...]
/linux-master/security/apparmor/include/
H A Dlabel.h313 int aa_label_asxprint(char **strp, struct aa_ns *ns, struct aa_label *label,
315 int aa_label_acntsxprint(char __counted **strp, struct aa_ns *ns,
/linux-master/include/linux/
H A Dskmsg.h89 struct strparser strp; member in struct:sk_psock
/linux-master/drivers/usb/gadget/function/
H A Df_midi2.c2173 const char **strp, size_t maxlen,
2191 kfree(*strp);
2193 *strp = c;
2172 f_midi2_opts_str_store(struct f_midi2_opts *opts, const char **strp, size_t maxlen, const char *page, size_t len) argument
/linux-master/security/selinux/ss/
H A Dpolicydb.c1090 static int str_read(char **strp, gfp_t flags, void *fp, u32 len) argument
1109 *strp = str;

Completed in 270 milliseconds