Home
last modified time | relevance | path

Searched refs:srx (Results 1 – 25 of 28) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/infiniband/sw/siw/
Dsiw_qp_rx.c29 static int siw_rx_umem(struct siw_rx_stream *srx, struct siw_umem *umem, in siw_rx_umem() argument
42 __func__, qp_id(rx_qp(srx)), in siw_rx_umem()
46 srx->skb_copied += copied; in siw_rx_umem()
47 srx->skb_new -= copied; in siw_rx_umem()
54 siw_dbg_qp(rx_qp(srx), "page %pK, bytes=%u\n", p, bytes); in siw_rx_umem()
57 rv = skb_copy_bits(srx->skb, srx->skb_offset, dest + pg_off, in siw_rx_umem()
62 srx->skb_copied += copied; in siw_rx_umem()
63 srx->skb_new -= copied; in siw_rx_umem()
66 qp_id(rx_qp(srx)), __func__, len, p, rv); in siw_rx_umem()
70 if (srx->mpa_crc_hd) { in siw_rx_umem()
[all …]
Dsiw.h685 static inline void siw_crc_skb(struct siw_rx_stream *srx, unsigned int len) in siw_crc_skb() argument
691 __wsum crc = *(u32 *)shash_desc_ctx(srx->mpa_crc_hd); in siw_crc_skb()
693 crc = __skb_checksum(srx->skb, srx->skb_offset, len, crc, in siw_crc_skb()
695 *(u32 *)shash_desc_ctx(srx->mpa_crc_hd) = crc; in siw_crc_skb()
/kernel/linux/linux-5.10/net/rxrpc/
Dutils.c16 int rxrpc_extract_addr_from_skb(struct sockaddr_rxrpc *srx, struct sk_buff *skb) in rxrpc_extract_addr_from_skb() argument
18 memset(srx, 0, sizeof(*srx)); in rxrpc_extract_addr_from_skb()
22 srx->transport_type = SOCK_DGRAM; in rxrpc_extract_addr_from_skb()
23 srx->transport_len = sizeof(srx->transport.sin); in rxrpc_extract_addr_from_skb()
24 srx->transport.sin.sin_family = AF_INET; in rxrpc_extract_addr_from_skb()
25 srx->transport.sin.sin_port = udp_hdr(skb)->source; in rxrpc_extract_addr_from_skb()
26 srx->transport.sin.sin_addr.s_addr = ip_hdr(skb)->saddr; in rxrpc_extract_addr_from_skb()
31 srx->transport_type = SOCK_DGRAM; in rxrpc_extract_addr_from_skb()
32 srx->transport_len = sizeof(srx->transport.sin6); in rxrpc_extract_addr_from_skb()
33 srx->transport.sin6.sin6_family = AF_INET6; in rxrpc_extract_addr_from_skb()
[all …]
Dpeer_object.c29 const struct sockaddr_rxrpc *srx) in rxrpc_peer_hash_key() argument
38 hash_key += srx->transport_type; in rxrpc_peer_hash_key()
39 hash_key += srx->transport_len; in rxrpc_peer_hash_key()
40 hash_key += srx->transport.family; in rxrpc_peer_hash_key()
42 switch (srx->transport.family) { in rxrpc_peer_hash_key()
44 hash_key += (u16 __force)srx->transport.sin.sin_port; in rxrpc_peer_hash_key()
45 size = sizeof(srx->transport.sin.sin_addr); in rxrpc_peer_hash_key()
46 p = (u16 *)&srx->transport.sin.sin_addr; in rxrpc_peer_hash_key()
50 hash_key += (u16 __force)srx->transport.sin.sin_port; in rxrpc_peer_hash_key()
51 size = sizeof(srx->transport.sin6.sin6_addr); in rxrpc_peer_hash_key()
[all …]
Dlocal_object.c35 const struct sockaddr_rxrpc *srx) in rxrpc_local_cmp_key() argument
39 diff = ((local->srx.transport_type - srx->transport_type) ?: in rxrpc_local_cmp_key()
40 (local->srx.transport_len - srx->transport_len) ?: in rxrpc_local_cmp_key()
41 (local->srx.transport.family - srx->transport.family)); in rxrpc_local_cmp_key()
45 switch (srx->transport.family) { in rxrpc_local_cmp_key()
50 return ((u16 __force)local->srx.transport.sin.sin_port - in rxrpc_local_cmp_key()
51 (u16 __force)srx->transport.sin.sin_port) ?: in rxrpc_local_cmp_key()
52 memcmp(&local->srx.transport.sin.sin_addr, in rxrpc_local_cmp_key()
53 &srx->transport.sin.sin_addr, in rxrpc_local_cmp_key()
60 return ((u16 __force)local->srx.transport.sin6.sin6_port - in rxrpc_local_cmp_key()
[all …]
Dpeer_event.c30 struct sockaddr_rxrpc *srx) in rxrpc_lookup_peer_icmp_rcu() argument
36 memset(srx, 0, sizeof(*srx)); in rxrpc_lookup_peer_icmp_rcu()
37 srx->transport_type = local->srx.transport_type; in rxrpc_lookup_peer_icmp_rcu()
38 srx->transport_len = local->srx.transport_len; in rxrpc_lookup_peer_icmp_rcu()
39 srx->transport.family = local->srx.transport.family; in rxrpc_lookup_peer_icmp_rcu()
44 switch (srx->transport.family) { in rxrpc_lookup_peer_icmp_rcu()
46 srx->transport_len = sizeof(srx->transport.sin); in rxrpc_lookup_peer_icmp_rcu()
47 srx->transport.family = AF_INET; in rxrpc_lookup_peer_icmp_rcu()
48 srx->transport.sin.sin_port = serr->port; in rxrpc_lookup_peer_icmp_rcu()
52 memcpy(&srx->transport.sin.sin_addr, in rxrpc_lookup_peer_icmp_rcu()
[all …]
Daf_rxrpc.c77 struct sockaddr_rxrpc *srx, in rxrpc_validate_address() argument
85 if (srx->srx_family != AF_RXRPC) in rxrpc_validate_address()
88 if (srx->transport_type != SOCK_DGRAM) in rxrpc_validate_address()
92 if (srx->transport_len < sizeof(sa_family_t) || in rxrpc_validate_address()
93 srx->transport_len > len) in rxrpc_validate_address()
96 if (srx->transport.family != rx->family && in rxrpc_validate_address()
97 srx->transport.family == AF_INET && rx->family != AF_INET6) in rxrpc_validate_address()
100 switch (srx->transport.family) { in rxrpc_validate_address()
102 if (srx->transport_len < sizeof(struct sockaddr_in)) in rxrpc_validate_address()
109 if (srx->transport_len < sizeof(struct sockaddr_in6)) in rxrpc_validate_address()
[all …]
Dconn_object.c78 struct sockaddr_rxrpc srx; in rxrpc_find_connection_rcu() local
83 if (rxrpc_extract_addr_from_skb(&srx, skb) < 0) in rxrpc_find_connection_rcu()
86 if (srx.transport.family != local->srx.transport.family && in rxrpc_find_connection_rcu()
87 (srx.transport.family == AF_INET && in rxrpc_find_connection_rcu()
88 local->srx.transport.family != AF_INET6)) { in rxrpc_find_connection_rcu()
90 srx.transport.family, in rxrpc_find_connection_rcu()
91 local->srx.transport.family); in rxrpc_find_connection_rcu()
103 peer = rxrpc_lookup_peer_rcu(local, &srx); in rxrpc_find_connection_rcu()
128 switch (srx.transport.family) { in rxrpc_find_connection_rcu()
130 if (peer->srx.transport.sin.sin_port != in rxrpc_find_connection_rcu()
[all …]
Dlocal_event.c30 struct sockaddr_rxrpc srx; in rxrpc_send_version_request() local
38 if (rxrpc_extract_addr_from_skb(&srx, skb) < 0) in rxrpc_send_version_request()
41 msg.msg_name = &srx.transport; in rxrpc_send_version_request()
42 msg.msg_namelen = srx.transport_len; in rxrpc_send_version_request()
Dproc.c81 sprintf(lbuff, "%pISpc", &local->srx.transport); in rxrpc_call_seq_show()
90 sprintf(rbuff, "%pISpc", &peer->srx.transport); in rxrpc_call_seq_show()
180 sprintf(lbuff, "%pISpc", &conn->params.local->srx.transport); in rxrpc_connection_seq_show()
182 sprintf(rbuff, "%pISpc", &conn->params.peer->srx.transport); in rxrpc_connection_seq_show()
232 sprintf(lbuff, "%pISpc", &peer->local->srx.transport); in rxrpc_peer_seq_show()
234 sprintf(rbuff, "%pISpc", &peer->srx.transport); in rxrpc_peer_seq_show()
355 sprintf(lbuff, "%pISpc", &local->srx.transport); in rxrpc_local_seq_show()
Doutput.c201 msg.msg_name = &call->peer->srx.transport; in rxrpc_send_ack_packet()
202 msg.msg_namelen = call->peer->srx.transport_len; in rxrpc_send_ack_packet()
310 msg.msg_name = &call->peer->srx.transport; in rxrpc_send_abort_packet()
311 msg.msg_namelen = call->peer->srx.transport_len; in rxrpc_send_abort_packet()
395 msg.msg_name = &call->peer->srx.transport; in rxrpc_send_data_packet()
396 msg.msg_namelen = call->peer->srx.transport_len; in rxrpc_send_data_packet()
521 switch (conn->params.local->srx.transport.family) { in rxrpc_send_data_packet()
557 struct sockaddr_rxrpc srx; in rxrpc_reject_packets() local
574 msg.msg_name = &srx.transport; in rxrpc_reject_packets()
602 if (rxrpc_extract_addr_from_skb(&srx, skb) == 0) { in rxrpc_reject_packets()
[all …]
Dconn_event.c55 msg.msg_name = &conn->params.peer->srx.transport; in rxrpc_conn_retransmit_call()
56 msg.msg_namelen = conn->params.peer->srx.transport_len; in rxrpc_conn_retransmit_call()
216 msg.msg_name = &conn->params.peer->srx.transport; in rxrpc_abort_connection()
217 msg.msg_namelen = conn->params.peer->srx.transport_len; in rxrpc_abort_connection()
Dcall_object.c195 struct sockaddr_rxrpc *srx, in rxrpc_alloc_client_call() argument
208 call->service_id = srx->srx_service; in rxrpc_alloc_client_call()
271 struct sockaddr_rxrpc *srx, in rxrpc_new_client_call() argument
293 call = rxrpc_alloc_client_call(rx, srx, gfp, debug_id); in rxrpc_new_client_call()
352 ret = rxrpc_connect_call(rx, call, cp, srx, gfp); in rxrpc_new_client_call()
Drecvmsg.c591 struct sockaddr_rxrpc *srx = msg->msg_name; in rxrpc_recvmsg() local
592 size_t len = sizeof(call->peer->srx); in rxrpc_recvmsg()
594 memcpy(msg->msg_name, &call->peer->srx, len); in rxrpc_recvmsg()
595 srx->srx_service = call->service_id; in rxrpc_recvmsg()
Dconn_client.c365 struct sockaddr_rxrpc *srx, in rxrpc_prep_call() argument
372 cp->peer = rxrpc_lookup_peer(rx, cp->local, srx, gfp); in rxrpc_prep_call()
711 struct sockaddr_rxrpc *srx, in rxrpc_connect_call() argument
722 bundle = rxrpc_prep_call(rx, call, cp, srx, gfp); in rxrpc_connect_call()
Dsendmsg.c629 DECLARE_SOCKADDR(struct sockaddr_rxrpc *, srx, msg->msg_name); in rxrpc_new_client_call_for_sendmsg()
648 cp.service_id = srx->srx_service; in rxrpc_new_client_call_for_sendmsg()
649 call = rxrpc_new_client_call(rx, &cp, srx, &p->call, GFP_KERNEL, in rxrpc_new_client_call_for_sendmsg()
Dar-internal.h148 struct sockaddr_rxrpc srx; /* Primary Service/local addresses */ member
275 struct sockaddr_rxrpc srx; /* local address */ member
299 struct sockaddr_rxrpc srx; /* remote address */ member
Drxkad.c664 msg.msg_name = &conn->params.peer->srx.transport; in rxkad_issue_challenge()
665 msg.msg_namelen = conn->params.peer->srx.transport_len; in rxkad_issue_challenge()
723 msg.msg_name = &conn->params.peer->srx.transport; in rxkad_send_response()
724 msg.msg_namelen = conn->params.peer->srx.transport_len; in rxkad_send_response()
/kernel/linux/linux-5.10/fs/afs/
Daddr_list.c48 struct sockaddr_rxrpc *srx = &alist->addrs[i]; in afs_alloc_addrlist() local
49 srx->srx_family = AF_RXRPC; in afs_alloc_addrlist()
50 srx->srx_service = service; in afs_alloc_addrlist()
51 srx->transport_type = SOCK_DGRAM; in afs_alloc_addrlist()
52 srx->transport_len = sizeof(srx->transport.sin6); in afs_alloc_addrlist()
53 srx->transport.sin6.sin6_family = AF_INET6; in afs_alloc_addrlist()
54 srx->transport.sin6.sin6_port = htons(port); in afs_alloc_addrlist()
276 struct sockaddr_rxrpc *srx; in afs_merge_fs_addr4() local
301 srx = &alist->addrs[i]; in afs_merge_fs_addr4()
302 srx->srx_family = AF_RXRPC; in afs_merge_fs_addr4()
[all …]
Drxrpc.c38 struct sockaddr_rxrpc srx; in afs_open_socket() local
51 memset(&srx, 0, sizeof(srx)); in afs_open_socket()
52 srx.srx_family = AF_RXRPC; in afs_open_socket()
53 srx.srx_service = CM_SERVICE; in afs_open_socket()
54 srx.transport_type = SOCK_DGRAM; in afs_open_socket()
55 srx.transport_len = sizeof(srx.transport.sin6); in afs_open_socket()
56 srx.transport.sin6.sin6_family = AF_INET6; in afs_open_socket()
57 srx.transport.sin6.sin6_port = htons(AFS_CM_PORT); in afs_open_socket()
64 ret = kernel_bind(socket, (struct sockaddr *) &srx, sizeof(srx)); in afs_open_socket()
66 srx.transport.sin6.sin6_port = 0; in afs_open_socket()
[all …]
Dcmservice.c145 struct sockaddr_rxrpc srx; in afs_find_cm_server_by_peer() local
148 rxrpc_kernel_get_peer(call->net->socket, call->rxcall, &srx); in afs_find_cm_server_by_peer()
150 server = afs_find_server(call->net, &srx); in afs_find_cm_server_by_peer()
152 trace_afs_cm_no_server(call, &srx); in afs_find_cm_server_by_peer()
Dserver.c25 const struct sockaddr_rxrpc *srx) in afs_find_server() argument
40 if (srx->transport.family == AF_INET6) { in afs_find_server()
41 const struct sockaddr_in6 *a = &srx->transport.sin6, *b; in afs_find_server()
57 const struct sockaddr_in *a = &srx->transport.sin, *b; in afs_find_server()
/kernel/linux/linux-5.10/include/trace/events/
Dafs.h1223 TP_PROTO(struct afs_call *call, struct sockaddr_rxrpc *srx),
1225 TP_ARGS(call, srx),
1230 __field_struct(struct sockaddr_rxrpc, srx )
1236 memcpy(&__entry->srx, srx, sizeof(__entry->srx));
1240 __entry->call, __entry->op_id, &__entry->srx.transport)
Drxrpc.h1436 struct sockaddr_rxrpc *srx),
1438 TP_ARGS(peer, ee, srx),
1443 __field_struct(struct sockaddr_rxrpc, srx )
1449 memcpy(&__entry->srx, srx, sizeof(__entry->srx));
1460 &__entry->srx.transport)
/kernel/linux/linux-5.10/Documentation/networking/
Drxrpc.rst558 struct sockaddr_rxrpc srx = {
566 bind(client, &srx, sizeof(srx));
588 struct sockaddr_rxrpc srx = {
596 connect(client, &srx, sizeof(srx));
669 struct sockaddr_rxrpc srx = {
677 bind(server, &srx, sizeof(srx));
804 struct sockaddr_rxrpc *srx,
817 connected client socket unless an alternative is supplied (srx is

12