Home
last modified time | relevance | path

Searched refs:psock (Results 1 – 10 of 10) sorted by relevance

/Linux-v5.4/net/ipv4/
Dtcp_bpf.c15 struct sk_psock *psock; in tcp_bpf_stream_read() local
19 psock = sk_psock(sk); in tcp_bpf_stream_read()
20 if (likely(psock)) in tcp_bpf_stream_read()
21 empty = list_empty(&psock->ingress_msg); in tcp_bpf_stream_read()
26 static int tcp_bpf_wait_data(struct sock *sk, struct sk_psock *psock, in tcp_bpf_wait_data() argument
38 !list_empty(&psock->ingress_msg) || in tcp_bpf_wait_data()
45 int __tcp_bpf_recvmsg(struct sock *sk, struct sk_psock *psock, in __tcp_bpf_recvmsg() argument
53 msg_rx = list_first_entry_or_null(&psock->ingress_msg, in __tcp_bpf_recvmsg()
110 msg_rx = list_first_entry_or_null(&psock->ingress_msg, in __tcp_bpf_recvmsg()
121 struct sk_psock *psock; in tcp_bpf_recvmsg() local
[all …]
/Linux-v5.4/include/linux/
Dskmsg.h132 static inline void sk_msg_apply_bytes(struct sk_psock *psock, u32 bytes) in sk_msg_apply_bytes() argument
134 if (psock->apply_bytes) { in sk_msg_apply_bytes()
135 if (psock->apply_bytes < bytes) in sk_msg_apply_bytes()
136 psock->apply_bytes = 0; in sk_msg_apply_bytes()
138 psock->apply_bytes -= bytes; in sk_msg_apply_bytes()
282 static inline void sk_psock_queue_msg(struct sk_psock *psock, in sk_psock_queue_msg() argument
285 list_add_tail(&msg->list, &psock->ingress_msg); in sk_psock_queue_msg()
288 static inline bool sk_psock_queue_empty(const struct sk_psock *psock) in sk_psock_queue_empty() argument
290 return psock ? list_empty(&psock->ingress_msg) : true; in sk_psock_queue_empty()
293 static inline void sk_psock_report_error(struct sk_psock *psock, int err) in sk_psock_report_error() argument
[all …]
/Linux-v5.4/net/core/
Dskmsg.c399 static int sk_psock_skb_ingress(struct sk_psock *psock, struct sk_buff *skb) in sk_psock_skb_ingress() argument
401 struct sock *sk = psock->sk; in sk_psock_skb_ingress()
427 sk_psock_queue_msg(psock, msg); in sk_psock_skb_ingress()
428 sk_psock_data_ready(sk, psock); in sk_psock_skb_ingress()
432 static int sk_psock_handle_skb(struct sk_psock *psock, struct sk_buff *skb, in sk_psock_handle_skb() argument
436 return sk_psock_skb_ingress(psock, skb); in sk_psock_handle_skb()
438 return skb_send_sock_locked(psock->sk, skb, off, len); in sk_psock_handle_skb()
443 struct sk_psock *psock = container_of(work, struct sk_psock, work); in sk_psock_backlog() local
444 struct sk_psock_work_state *state = &psock->work_state; in sk_psock_backlog()
451 lock_sock(psock->sk); in sk_psock_backlog()
[all …]
Dsock_map.c95 static void sock_map_add_link(struct sk_psock *psock, in sock_map_add_link() argument
101 spin_lock_bh(&psock->link_lock); in sock_map_add_link()
102 list_add_tail(&link->list, &psock->link); in sock_map_add_link()
103 spin_unlock_bh(&psock->link_lock); in sock_map_add_link()
107 struct sk_psock *psock, void *link_raw) in sock_map_del_link() argument
112 spin_lock_bh(&psock->link_lock); in sock_map_del_link()
113 list_for_each_entry_safe(link, tmp, &psock->link, list) { in sock_map_del_link()
118 if (psock->parser.enabled && stab->progs.skb_parser) in sock_map_del_link()
124 spin_unlock_bh(&psock->link_lock); in sock_map_del_link()
127 sk_psock_stop_strp(sk, psock); in sock_map_del_link()
[all …]
/Linux-v5.4/net/kcm/
Dkcmsock.c53 static void kcm_abort_tx_psock(struct kcm_psock *psock, int err, in kcm_abort_tx_psock() argument
56 struct sock *csk = psock->sk; in kcm_abort_tx_psock()
57 struct kcm_mux *mux = psock->mux; in kcm_abort_tx_psock()
63 if (psock->tx_stopped) { in kcm_abort_tx_psock()
68 psock->tx_stopped = 1; in kcm_abort_tx_psock()
69 KCM_STATS_INCR(psock->stats.tx_aborts); in kcm_abort_tx_psock()
71 if (!psock->tx_kcm) { in kcm_abort_tx_psock()
73 list_del(&psock->psock_avail_list); in kcm_abort_tx_psock()
82 queue_work(kcm_wq, &psock->tx_kcm->tx_work); in kcm_abort_tx_psock()
93 struct kcm_psock *psock) in kcm_update_rx_mux_stats() argument
[all …]
Dkcmproc.c139 static void kcm_format_psock(struct kcm_psock *psock, struct seq_file *seq, in kcm_format_psock() argument
144 psock->index, in kcm_format_psock()
145 psock->strp.stats.msgs, in kcm_format_psock()
146 psock->strp.stats.bytes, in kcm_format_psock()
147 psock->stats.tx_msgs, in kcm_format_psock()
148 psock->stats.tx_bytes, in kcm_format_psock()
149 psock->sk->sk_receive_queue.qlen, in kcm_format_psock()
150 atomic_read(&psock->sk->sk_rmem_alloc), in kcm_format_psock()
151 psock->sk->sk_write_queue.qlen, in kcm_format_psock()
152 refcount_read(&psock->sk->sk_wmem_alloc)); in kcm_format_psock()
[all …]
/Linux-v5.4/drivers/pcmcia/
Dtcic.c105 u_short psock; member
404 socket_table[sockets].psock = i; in init_tcic()
482 tcic_setw(TCIC_ADDR+2, socket_table[i].psock << TCIC_SS_SHFT); in init_tcic()
533 u_short psock; in tcic_interrupt() local
546 psock = socket_table[i].psock; in tcic_interrupt()
547 tcic_setl(TCIC_ADDR, (psock << TCIC_ADDR_SS_SHFT) in tcic_interrupt()
548 | TCIC_ADDR_INDREG | TCIC_SCF1(psock)); in tcic_interrupt()
550 latch = sstat ^ socket_table[psock].last_sstat; in tcic_interrupt()
595 u_short psock = container_of(sock, struct tcic_socket, socket)->psock; in tcic_get_status() local
598 tcic_setl(TCIC_ADDR, (psock << TCIC_ADDR_SS_SHFT) in tcic_get_status()
[all …]
Di82365.c149 u_short psock; member
224 reg = I365_REG(socket[sock].psock, reg); in i365_get()
237 u_char val = I365_REG(socket[sock].psock, reg); in i365_set()
579 socket[sockets].psock = sock; in identify()
662 static void __init add_socket(unsigned int port, int psock, int type) in add_socket() argument
665 socket[sockets].psock = psock; in add_socket()
683 t->ioaddr, t->psock*0x40); in add_pcic()
907 if (socket[sock].psock & 1) { in i365_get_status()
1120 pcic[s->type].name, s->psock);
/Linux-v5.4/net/tls/
Dtls_sw.c760 struct sk_psock *psock; in bpf_exec_tx_verdict() local
768 psock = sk_psock_get(sk); in bpf_exec_tx_verdict()
769 if (!psock || !policy) in bpf_exec_tx_verdict()
773 if (psock->eval == __SK_NONE) { in bpf_exec_tx_verdict()
775 psock->eval = sk_psock_msg_verdict(sk, psock, msg); in bpf_exec_tx_verdict()
791 switch (psock->eval) { in bpf_exec_tx_verdict()
801 sk_redir = psock->sk_redir; in bpf_exec_tx_verdict()
842 psock->eval = __SK_NONE; in bpf_exec_tx_verdict()
843 if (psock->sk_redir) { in bpf_exec_tx_verdict()
844 sock_put(psock->sk_redir); in bpf_exec_tx_verdict()
[all …]
/Linux-v5.4/include/net/
Dtcp.h2154 int __tcp_bpf_recvmsg(struct sock *sk, struct sk_psock *psock,