Home
last modified time | relevance | path

Searched refs:smc_sock (Results 1 – 16 of 16) sorted by relevance

/Linux-v5.15/net/smc/
Dsmc_close.h22 void smc_close_wake_tx_prepared(struct smc_sock *smc);
23 int smc_close_active(struct smc_sock *smc);
24 int smc_close_shutdown_write(struct smc_sock *smc);
25 void smc_close_init(struct smc_sock *smc);
26 void smc_clcsock_release(struct smc_sock *smc);
28 void smc_close_active_abort(struct smc_sock *smc);
Daf_smc.c69 struct smc_sock *smc = smc_sk(sk); in smc_set_keepalive()
115 .obj_size = sizeof(struct smc_sock),
127 .obj_size = sizeof(struct smc_sock),
133 static void smc_restore_fallback_changes(struct smc_sock *smc) in smc_restore_fallback_changes()
141 static int __smc_release(struct smc_sock *smc) in __smc_release()
180 struct smc_sock *smc; in smc_release()
228 struct smc_sock *smc; in smc_sock_alloc()
260 struct smc_sock *smc; in smc_bind()
333 static void smc_copy_sock_settings_to_clc(struct smc_sock *smc) in smc_copy_sock_settings_to_clc()
343 static void smc_copy_sock_settings_to_smc(struct smc_sock *smc) in smc_copy_sock_settings_to_smc()
[all …]
Dsmc_close.c24 void smc_clcsock_release(struct smc_sock *smc) in smc_clcsock_release()
49 static void smc_close_stream_wait(struct smc_sock *smc, long timeout) in smc_close_stream_wait()
78 void smc_close_wake_tx_prepared(struct smc_sock *smc) in smc_close_wake_tx_prepared()
111 static void smc_close_cancel_work(struct smc_sock *smc) in smc_close_cancel_work()
124 void smc_close_active_abort(struct smc_sock *smc) in smc_close_active_abort()
189 int smc_close_active(struct smc_sock *smc) in smc_close_active()
295 static void smc_close_passive_abort_received(struct smc_sock *smc) in smc_close_passive_abort_received()
344 struct smc_sock *smc = container_of(conn, struct smc_sock, conn); in smc_close_passive_work()
430 int smc_close_shutdown_write(struct smc_sock *smc) in smc_close_shutdown_write()
486 void smc_close_init(struct smc_sock *smc) in smc_close_init()
Dsmc_rx.h20 void smc_rx_init(struct smc_sock *smc);
22 int smc_rx_recvmsg(struct smc_sock *smc, struct msghdr *msg,
24 int smc_rx_wait(struct smc_sock *smc, long *timeo,
Dsmc.h212 struct smc_sock { /* smc sock container */ struct
218 struct smc_sock *listen_smc; /* listen parent */ argument
246 static inline struct smc_sock *smc_sk(const struct sock *sk) in smc_sk() argument
248 return (struct smc_sock *)sk; in smc_sk()
280 static inline bool using_ipsec(struct smc_sock *smc) in using_ipsec()
286 static inline bool using_ipsec(struct smc_sock *smc) in using_ipsec()
Dsmc_rx.c54 static int smc_rx_update_consumer(struct smc_sock *smc, in smc_rx_update_consumer()
95 static void smc_rx_update_cons(struct smc_sock *smc, size_t len) in smc_rx_update_cons()
105 struct smc_sock *smc;
113 struct smc_sock *smc = priv->smc; in smc_rx_pipe_buf_release()
145 struct smc_sock *smc) in smc_rx_splice()
192 int smc_rx_wait(struct smc_sock *smc, long *timeo, in smc_rx_wait()
218 static int smc_rx_recv_urg(struct smc_sock *smc, struct msghdr *msg, int len, in smc_rx_recv_urg()
262 static bool smc_rx_recvmsg_data_available(struct smc_sock *smc) in smc_rx_recvmsg_data_available()
281 int smc_rx_recvmsg(struct smc_sock *smc, struct msghdr *msg, in smc_rx_recvmsg()
447 void smc_rx_init(struct smc_sock *smc) in smc_rx_init()
Dsmc_cdc.c31 struct smc_sock *smc; in smc_cdc_tx_handler()
38 smc = container_of(conn, struct smc_sock, conn); in smc_cdc_tx_handler()
229 struct smc_sock *smc = container_of(conn, struct smc_sock, conn); in smcd_cdc_msg_send()
270 static void smc_cdc_handle_urg_data_arrival(struct smc_sock *smc, in smc_cdc_handle_urg_data_arrival()
290 static void smc_cdc_msg_validate(struct smc_sock *smc, struct smc_cdc_msg *cdc, in smc_cdc_msg_validate()
312 static void smc_cdc_msg_recv_action(struct smc_sock *smc, in smc_cdc_msg_recv_action()
382 static void smc_cdc_msg_recv(struct smc_sock *smc, struct smc_cdc_msg *cdc) in smc_cdc_msg_recv()
402 struct smc_sock *smc; in smcd_cdc_rx_tsklet()
410 smc = container_of(conn, struct smc_sock, conn); in smcd_cdc_rx_tsklet()
430 struct smc_sock *smc; in smc_cdc_rx_handler()
[all …]
Dsmc_tx.h31 void smc_tx_init(struct smc_sock *smc);
32 int smc_tx_sendmsg(struct smc_sock *smc, struct msghdr *msg, size_t len);
34 void smc_tx_sndbuf_nonfull(struct smc_sock *smc);
Dsmc_tx.c44 struct smc_sock *smc = smc_sk(sk); in smc_tx_write_space()
67 void smc_tx_sndbuf_nonfull(struct smc_sock *smc) in smc_tx_sndbuf_nonfull()
77 static int smc_tx_wait(struct smc_sock *smc, int flags) in smc_tx_wait()
127 static bool smc_tx_is_corked(struct smc_sock *smc) in smc_tx_is_corked()
137 int smc_tx_sendmsg(struct smc_sock *smc, struct msghdr *msg, size_t len) in smc_tx_sendmsg()
436 struct smc_sock *smc = container_of(conn, struct smc_sock, in smc_tx_rdma_writes()
514 struct smc_sock *smc = in smcr_tx_sndbuf_nonempty()
515 container_of(conn, struct smc_sock, conn); in smcr_tx_sndbuf_nonempty()
590 struct smc_sock *smc = container_of(conn, struct smc_sock, in smc_tx_sndbuf_nonempty()
605 struct smc_sock *smc = container_of(conn, struct smc_sock, conn); in smc_tx_work()
[all …]
Dsmc_clc.h328 int smc_clc_wait_msg(struct smc_sock *smc, void *buf, int buflen,
330 int smc_clc_send_decline(struct smc_sock *smc, u32 peer_diag_info, u8 version);
331 int smc_clc_send_proposal(struct smc_sock *smc, struct smc_init_info *ini);
332 int smc_clc_send_confirm(struct smc_sock *smc, bool clnt_first_contact,
334 int smc_clc_send_accept(struct smc_sock *smc, bool srv_first_contact,
Dsmc_core.c167 struct smc_sock *smc = container_of(conn, struct smc_sock, conn); in smc_lgr_register_conn()
194 struct smc_sock *smc = container_of(conn, struct smc_sock, conn); in __smc_lgr_unregister_conn()
758 static int smc_lgr_create(struct smc_sock *smc, struct smc_init_info *ini) in smc_lgr_create()
870 static int smc_switch_cursor(struct smc_sock *smc, struct smc_cdc_tx_pend *pend, in smc_switch_cursor()
935 struct smc_sock *smc; in smc_switch_conns()
962 smc = container_of(conn, struct smc_sock, conn); in smc_switch_conns()
1241 static void smc_sk_wake_ups(struct smc_sock *smc) in smc_sk_wake_ups()
1251 struct smc_sock *smc = container_of(conn, struct smc_sock, conn); in smc_conn_kill()
1294 struct smc_sock *smc; in __smc_lgr_terminate()
1309 smc = container_of(conn, struct smc_sock, conn); in __smc_lgr_terminate()
[all …]
Dsmc_core.h413 struct smc_sock;
424 int smc_buf_create(struct smc_sock *smc, bool is_smcd);
441 int smc_conn_create(struct smc_sock *smc, struct smc_init_info *ini);
Dsmc_clc.c337 int smc_clc_wait_msg(struct smc_sock *smc, void *buf, int buflen, in smc_clc_wait_msg()
447 int smc_clc_send_decline(struct smc_sock *smc, u32 peer_diag_info, u8 version) in smc_clc_send_decline()
480 int smc_clc_send_proposal(struct smc_sock *smc, struct smc_init_info *ini) in smc_clc_send_proposal()
637 static int smc_clc_send_confirm_accept(struct smc_sock *smc, in smc_clc_send_confirm_accept()
735 int smc_clc_send_confirm(struct smc_sock *smc, bool clnt_first_contact, in smc_clc_send_confirm()
760 int smc_clc_send_accept(struct smc_sock *new_smc, bool srv_first_contact, in smc_clc_send_accept()
Dsmc_llc.h81 void smc_llc_lgr_init(struct smc_link_group *lgr, struct smc_sock *smc);
Dsmc_diag.c36 struct smc_sock *smc = smc_sk(sk); in smc_diag_msg_common_fill()
76 struct smc_sock *smc = smc_sk(sk); in __smc_diag_dump()
Dsmc_llc.c1777 void smc_llc_lgr_init(struct smc_link_group *lgr, struct smc_sock *smc) in smc_llc_lgr_init()