Home
last modified time | relevance | path

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

12

/openbmc/linux/net/strparser/
H A Dstrparser.c70 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()
368 if (unlikely(strp->stopped) || strp->paused) in strp_data_ready()
398 strp->cb.lock(strp); in do_strp_work()
410 strp->cb.unlock(strp); in do_strp_work()
425 strp->cb.lock(strp); in strp_msg_timeout()
426 strp->cb.abort_parser(strp, -ETIMEDOUT); in strp_msg_timeout()
427 strp->cb.unlock(strp); in strp_msg_timeout()
[all …]
/openbmc/linux/net/tls/
H A Dtls_strp.c17 if (strp->stopped) in tls_strp_abort_strp()
73 skb = tls_strp_skb_copy(strp, strp->anchor, strp->stm.offset, in tls_strp_msg_make_copy()
86 struct tls_strparser *strp = &ctx->strp; in tls_strp_msg_detach() local
121 struct tls_strparser *strp = &ctx->strp; in tls_strp_msg_cow() local
134 tcp_read_done(strp->sk, strp->stm.full_len); in tls_strp_msg_cow()
485 if (WARN_ON(tcp_inq(strp->sk) < strp->stm.full_len)) in tls_strp_msg_load()
516 sz = tls_rx_msg_size(strp, strp->anchor); in tls_strp_read_sock()
539 if (unlikely(strp->stopped) || strp->msg_ready) in tls_strp_check_rcv()
579 tcp_read_done(strp->sk, strp->stm.full_len); in tls_strp_msg_done()
584 memset(&strp->stm, 0, sizeof(strp->stm)); in tls_strp_msg_done()
[all …]
H A Dtls.h184 void tls_strp_done(struct tls_strparser *strp);
185 void tls_strp_stop(struct tls_strparser *strp);
186 int tls_strp_init(struct tls_strparser *strp, struct sock *sk);
187 void tls_strp_data_ready(struct tls_strparser *strp);
189 void tls_strp_check_rcv(struct tls_strparser *strp);
190 void tls_strp_msg_done(struct tls_strparser *strp);
193 void tls_rx_msg_ready(struct tls_strparser *strp);
209 DEBUG_NET_WARN_ON_ONCE(!ctx->strp.msg_ready || !ctx->strp.anchor->len); in tls_strp_msg()
210 return ctx->strp.anchor; in tls_strp_msg()
215 return READ_ONCE(ctx->strp.msg_ready); in tls_strp_msg_ready()
[all …]
H A Dtls_sw.c1330 tls_strp_check_rcv(&ctx->strp); in tls_rx_rec_wait()
1359 tls_strp_msg_load(&ctx->strp, released); in tls_rx_rec_wait()
1777 tls_strp_msg_done(&ctx->strp); in tls_rx_rec_done()
2383 strp->mark = header[0]; in tls_rx_msg_size()
2414 tls_err_abort(strp->sk, ret); in tls_rx_msg_size()
2423 ctx = container_of(strp, struct tls_sw_context_rx, strp); in tls_rx_msg_ready()
2424 ctx->saved_data_ready(strp->sk); in tls_rx_msg_ready()
2438 tls_strp_data_ready(&ctx->strp); in tls_data_ready()
2510 tls_strp_stop(&ctx->strp); in tls_sw_release_resources_rx()
2527 tls_strp_done(&ctx->strp); in tls_sw_strparser_done()
[all …]
/openbmc/linux/include/net/
H A Dstrparser.h48 void (*lock)(struct strparser *strp);
49 void (*unlock)(struct strparser *strp);
61 struct strp_msg strp; member
70 struct _strp_msg strp; member
85 offsetof(struct sk_skb_cb, strp)); in strp_msg()
110 strp->paused = 1; in strp_pause()
124 strp->stats._stat) in save_strp_stats()
134 if (strp->aborted) in save_strp_stats()
136 if (strp->interrupted) in save_strp_stats()
138 if (strp->unrecov_intr) in save_strp_stats()
[all …]
H A Despintcp.h22 struct strparser strp; member
H A Dkcm.h92 struct strparser strp; member
/openbmc/linux/net/xfrm/
H A Despintcp.c56 strp); in espintcp_rcv()
96 XFRM_INC_STATS(sock_net(strp->sk), LINUX_MIB_XFRMINERROR); in espintcp_rcv()
102 XFRM_INC_STATS(sock_net(strp->sk), LINUX_MIB_XFRMINERROR); in espintcp_rcv()
108 handle_nonesp(ctx, skb, strp->sk); in espintcp_rcv()
110 handle_esp(skb, strp->sk); in espintcp_rcv()
409 strp_data_ready(&ctx->strp); in espintcp_data_ready()
416 struct sock *sk = ctx->strp.sk; in espintcp_tx_work()
468 err = strp_init(&ctx->strp, sk, &cb); in espintcp_init_sk()
474 strp_check_rcv(&ctx->strp); in espintcp_init_sk()
530 strp_stop(&ctx->strp); in espintcp_close()
[all …]
/openbmc/linux/Documentation/networking/
H A Dstrparser.rst43 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)
187 int (*read_sock_done)(struct strparser *strp, int err);
[all …]
/openbmc/linux/net/kcm/
H A 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()
H A Dkcmsock.c98 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()
1311 strp_check_rcv(&psock->strp); in kcm_attach()
1364 strp_stop(&psock->strp); in kcm_unattach()
[all …]
/openbmc/linux/scripts/dtc/
H A Dutil.c47 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 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);
/openbmc/linux/drivers/scsi/aic7xxx/aicasm/
H A Daicasm_scan.l546 const char *strp;
549 strp = next_match + strlen(next_match);
550 while (strp > next_match)
551 unput(*--strp);
/openbmc/linux/tools/perf/util/
H A Dutil.c418 int perf_tip(char **strp, const char *dirpath) in perf_tip() argument
428 *strp = NULL; in perf_tip()
437 if (asprintf(strp, "Tip: %s", node->s) < 0) in perf_tip()
H A Dutil.h53 int perf_tip(char **strp, const char *dirpath);
H A Dbuild-id.c150 static int asnprintf(char **strp, size_t size, const char *fmt, ...) in asnprintf() argument
155 if (!strp) in asnprintf()
159 if (*strp) in asnprintf()
160 ret = vsnprintf(*strp, size, fmt, ap); in asnprintf()
162 ret = vasprintf(strp, fmt, ap); in asnprintf()
/openbmc/linux/net/core/
H A Dskmsg.c1056 static void sk_psock_strp_read(struct strparser *strp, struct sk_buff *skb) in sk_psock_strp_read() argument
1064 sk = strp->sk; in sk_psock_strp_read()
1085 static int sk_psock_strp_read_done(struct strparser *strp, int err) in sk_psock_strp_read_done() argument
1090 static int sk_psock_strp_parse(struct strparser *strp, struct sk_buff *skb) in sk_psock_strp_parse() argument
1092 struct sk_psock *psock = container_of(strp, struct sk_psock, strp); in sk_psock_strp_parse()
1121 strp_data_ready(&psock->strp); in sk_psock_strp_data_ready()
1138 ret = strp_init(&psock->strp, sk, &cb); in sk_psock_init_strp()
1164 strp_stop(&psock->strp); in sk_psock_stop_strp()
1171 strp_done(&psock->strp); in sk_psock_done_strp()
/openbmc/qemu/block/
H A Dnfs.c424 char *file = NULL, *strp = NULL; in nfs_client_open() local
430 strp = strrchr(client->path, '/'); in nfs_client_open()
431 if (strp == NULL) { in nfs_client_open()
435 file = g_strdup(strp); in nfs_client_open()
436 *strp = 0; in nfs_client_open()
553 *strp = '/'; in nfs_client_open()
/openbmc/linux/security/apparmor/
H A 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()
/openbmc/u-boot/scripts/dtc/
H A Dutil.h74 extern int PRINTF(2, 3) xasprintf(char **strp, const char *fmt, ...);
H A Dutil.c50 int xasprintf(char **strp, const char *fmt, ...) in xasprintf() argument
75 *strp = p; in xasprintf()
/openbmc/u-boot/include/
H A Dcros_ec.h348 int cros_ec_read_build_info(struct udevice *dev, char **strp);
/openbmc/linux/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,
/openbmc/qemu/pc-bios/
H A Dpetalogix-ml605.dts157 xlnx,rxvlan-strp = < 0x00 >;
163 xlnx,txvlan-strp = < 0x00 >;

12