/openbmc/linux/net/sctp/ |
H A D | transport.c | 95 struct sctp_transport *transport; in sctp_transport_new() local 97 transport = kzalloc(sizeof(*transport), gfp); in sctp_transport_new() 98 if (!transport) in sctp_transport_new() 101 if (!sctp_transport_init(net, transport, addr, gfp)) in sctp_transport_new() 104 SCTP_DBG_OBJCNT_INC(transport); in sctp_transport_new() 106 return transport; in sctp_transport_new() 109 kfree(transport); in sctp_transport_new() 118 void sctp_transport_free(struct sctp_transport *transport) in sctp_transport_free() argument 121 if (del_timer(&transport->hb_timer)) in sctp_transport_free() 122 sctp_transport_put(transport); in sctp_transport_free() [all …]
|
H A D | outqueue.c | 45 struct sctp_transport *transport, 52 struct sctp_transport *transport, 101 struct sctp_transport *transport, in sctp_cacc_skip_3_1_d() argument 104 if (count_of_newacks >= 2 && transport != primary) in sctp_cacc_skip_3_1_d() 116 static inline int sctp_cacc_skip_3_1_f(struct sctp_transport *transport, in sctp_cacc_skip_3_1_f() argument 120 (transport && !transport->cacc.cacc_saw_newack)) in sctp_cacc_skip_3_1_f() 133 struct sctp_transport *transport, in sctp_cacc_skip_3_1() argument 137 if (sctp_cacc_skip_3_1_d(primary, transport, count_of_newacks)) in sctp_cacc_skip_3_1() 139 if (sctp_cacc_skip_3_1_f(transport, count_of_newacks)) in sctp_cacc_skip_3_1() 176 struct sctp_transport *transport, in sctp_cacc_skip() argument [all …]
|
H A D | sm_sideeffect.c | 102 struct sctp_transport *transport; in sctp_do_ecn_ecne_work() local 107 transport = sctp_assoc_lookup_tsn(asoc, lowest_tsn); in sctp_do_ecn_ecne_work() 110 if (transport) in sctp_do_ecn_ecne_work() 111 sctp_transport_lower_cwnd(transport, in sctp_do_ecn_ecne_work() 233 struct sctp_transport *transport = in sctp_generate_t3_rtx_event() local 234 from_timer(transport, t, T3_rtx_timer); in sctp_generate_t3_rtx_event() 235 struct sctp_association *asoc = transport->asoc; in sctp_generate_t3_rtx_event() 247 if (!mod_timer(&transport->T3_rtx_timer, jiffies + (HZ/20))) in sctp_generate_t3_rtx_event() 248 sctp_transport_hold(transport); in sctp_generate_t3_rtx_event() 257 transport, GFP_ATOMIC); in sctp_generate_t3_rtx_event() [all …]
|
H A D | output.c | 76 struct sctp_transport *tp = packet->transport; in sctp_packet_config() 145 struct sctp_transport *transport, in sctp_packet_init() argument 148 pr_debug("%s: packet:%p transport:%p\n", __func__, packet, transport); in sctp_packet_init() 150 packet->transport = transport; in sctp_packet_init() 219 struct sctp_transport *t = pkt->transport; in sctp_packet_bundle_pad() 235 chunk->transport = t; in sctp_packet_bundle_pad() 244 struct sctp_association *asoc = pkt->transport->asoc; in sctp_packet_bundle_auth() 292 asoc = pkt->transport->asoc; in sctp_packet_bundle_sack() 299 if (pkt->transport->sack_generation != in sctp_packet_bundle_sack() 300 pkt->transport->asoc->peer.sack_generation) in sctp_packet_bundle_sack() [all …]
|
H A D | associola.c | 317 struct sctp_transport *transport; in sctp_association_free() local 377 transport = list_entry(pos, struct sctp_transport, transports); in sctp_association_free() 379 sctp_unhash_transport(transport); in sctp_association_free() 380 sctp_transport_free(transport); in sctp_association_free() 424 struct sctp_transport *transport) in sctp_assoc_set_primary() argument 432 asoc->peer.primary_path != transport) in sctp_assoc_set_primary() 435 asoc->peer.primary_path = transport; in sctp_assoc_set_primary() 436 sctp_ulpevent_notify_peer_addr_change(transport, in sctp_assoc_set_primary() 440 memcpy(&asoc->peer.primary_addr, &transport->ipaddr, in sctp_assoc_set_primary() 446 if ((transport->state == SCTP_ACTIVE) || in sctp_assoc_set_primary() [all …]
|
H A D | proc.c | 115 struct sctp_transport *transport; in sctp_seq_dump_remote_addrs() local 120 list_for_each_entry_rcu(transport, &assoc->peer.transport_addr_list, in sctp_seq_dump_remote_addrs() 122 addr = &transport->ipaddr; in sctp_seq_dump_remote_addrs() 217 struct sctp_transport *transport = v; in sctp_transport_seq_stop() local 219 sctp_transport_put(transport); in sctp_transport_seq_stop() 230 struct sctp_transport *transport = v; in sctp_transport_seq_next() local 232 sctp_transport_put(transport); in sctp_transport_seq_next() 243 struct sctp_transport *transport; in sctp_assocs_seq_show() local 257 transport = (struct sctp_transport *)v; in sctp_assocs_seq_show() 258 assoc = transport->asoc; in sctp_assocs_seq_show() [all …]
|
/openbmc/linux/net/sunrpc/ |
H A D | xprtsock.c | 65 static void xs_set_srcport(struct sock_xprt *transport, struct socket *sock); 528 xs_read_header(struct sock_xprt *transport, struct xdr_buf *buf) in xs_read_header() argument 530 if (!transport->recv.copied) { in xs_read_header() 531 if (buf->head[0].iov_len >= transport->recv.offset) in xs_read_header() 533 &transport->recv.xid, in xs_read_header() 534 transport->recv.offset); in xs_read_header() 535 transport->recv.copied = transport->recv.offset; in xs_read_header() 540 xs_read_stream_request_done(struct sock_xprt *transport) in xs_read_stream_request_done() argument 542 return transport->recv.fraghdr & cpu_to_be32(RPC_LAST_STREAM_FRAGMENT); in xs_read_stream_request_done() 546 xs_read_stream_check_eor(struct sock_xprt *transport, in xs_read_stream_check_eor() argument [all …]
|
/openbmc/libpldm/src/transport/ |
H A D | transport.c | 36 int pldm_transport_poll(struct pldm_transport *transport, int timeout) in pldm_transport_poll() argument 40 if (!transport) { in pldm_transport_poll() 45 if (!transport->init_pollfd) { in pldm_transport_poll() 49 rc = transport->init_pollfd(transport, &pollfd); in pldm_transport_poll() 64 pldm_requester_rc_t pldm_transport_send_msg(struct pldm_transport *transport, in pldm_transport_send_msg() argument 69 if (!transport || !pldm_msg) { in pldm_transport_send_msg() 77 return transport->send(transport, tid, pldm_msg, msg_len); in pldm_transport_send_msg() 81 pldm_requester_rc_t pldm_transport_recv_msg(struct pldm_transport *transport, in pldm_transport_recv_msg() argument 85 if (!transport || !msg_len) { in pldm_transport_recv_msg() 90 transport->recv(transport, tid, pldm_msg, msg_len); in pldm_transport_recv_msg() [all …]
|
H A D | mctp-demux.c | 27 struct pldm_transport transport; member 36 container_of(ptr, struct pldm_transport_mctp_demux, transport) 42 return &ctx->transport; in pldm_transport_mctp_demux_core() 251 demux->transport.name = MCTP_DEMUX_NAME; in pldm_transport_mctp_demux_init() 252 demux->transport.version = 1; in pldm_transport_mctp_demux_init() 253 demux->transport.recv = pldm_transport_mctp_demux_recv; in pldm_transport_mctp_demux_init() 254 demux->transport.send = pldm_transport_mctp_demux_send; in pldm_transport_mctp_demux_init() 255 demux->transport.init_pollfd = pldm_transport_mctp_demux_init_pollfd; in pldm_transport_mctp_demux_init() 292 demux->transport.name = MCTP_DEMUX_NAME; in pldm_transport_mctp_demux_init_with_fd() 293 demux->transport.version = 1; in pldm_transport_mctp_demux_init_with_fd() [all …]
|
H A D | af-mctp.c | 36 struct pldm_transport transport; member 45 container_of(ptr, struct pldm_transport_af_mctp, transport) 51 return &ctx->transport; in pldm_transport_af_mctp_core() 252 af_mctp->transport.name = AF_MCTP_NAME; in pldm_transport_af_mctp_init() 253 af_mctp->transport.version = 1; in pldm_transport_af_mctp_init() 254 af_mctp->transport.recv = pldm_transport_af_mctp_recv; in pldm_transport_af_mctp_init() 255 af_mctp->transport.send = pldm_transport_af_mctp_send; in pldm_transport_af_mctp_init() 256 af_mctp->transport.init_pollfd = pldm_transport_af_mctp_init_pollfd; in pldm_transport_af_mctp_init() 287 int pldm_transport_af_mctp_bind(struct pldm_transport_af_mctp *transport, in pldm_transport_af_mctp_bind() argument 293 if (!transport) { in pldm_transport_af_mctp_bind() [all …]
|
/openbmc/qemu/python/qemu/qmp/ |
H A D | util.py | 43 transport = cast( # type: ignore[redundant-cast] 44 asyncio.WriteTransport, writer.transport 48 low, high = transport.get_write_buffer_limits() # type: ignore 49 transport.set_write_buffer_limits(0, 0) 53 transport.set_write_buffer_limits(high, low) 118 transport = writer.transport 119 assert isinstance(transport, asyncio.WriteTransport) 120 return transport.is_closing() 134 transport = writer.transport 135 assert isinstance(transport, asyncio.WriteTransport) [all …]
|
/openbmc/libpldm/tests/transport/ |
H A D | meson.build | 2 'transport/transport', 3 'transport/send_recv_one', 4 'transport/send_recv_timeout', 5 'transport/send_recv_unwanted', 6 'transport/send_recv_wrong_command_code', 7 'transport/send_recv_wrong_pldm_type',
|
/openbmc/linux/net/vmw_vsock/ |
H A D | af_vsock.c | 347 void vsock_for_each_connected_socket(struct vsock_transport *transport, in vsock_for_each_connected_socket() argument 358 if (vsk->transport != transport) in vsock_for_each_connected_socket() 424 if (!vsk->transport) in vsock_deassign_transport() 427 vsk->transport->destruct(vsk); in vsock_deassign_transport() 428 module_put(vsk->transport->module); in vsock_deassign_transport() 429 vsk->transport = NULL; in vsock_deassign_transport() 484 if (vsk->transport) { in vsock_assign_transport() 485 if (vsk->transport == new_transport) in vsock_assign_transport() 494 vsk->transport->release(vsk); in vsock_assign_transport() 527 vsk->transport = new_transport; in vsock_assign_transport() [all …]
|
H A D | Kconfig | 30 tristate "Virtual Sockets loopback transport" 35 This module implements a loopback transport for Virtual Sockets, 42 tristate "VMware VMCI transport for Virtual Sockets" 45 This module implements a VMCI transport for Virtual Sockets. 47 Enable this transport if your Virtual Machine runs on a VMware 54 tristate "virtio transport for Virtual Sockets" 58 This module implements a virtio transport for Virtual Sockets. 60 Enable this transport if your Virtual Machine host supports Virtual 74 tristate "Hyper-V transport for Virtual Sockets" 77 This module implements a Hyper-V transport for Virtual Sockets. [all …]
|
/openbmc/linux/net/rxrpc/ |
H A D | peer_object.c | 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() 52 p = (u16 *)&srx->transport.sin6.sin6_addr; in rxrpc_peer_hash_key() 87 (peer->srx.transport.family - srx->transport.family)); in rxrpc_peer_cmp_key() 91 switch (srx->transport.family) { in rxrpc_peer_cmp_key() [all …]
|
H A D | utils.c | 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() 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() 34 srx->transport.sin6.sin6_port = udp_hdr(skb)->source; in rxrpc_extract_addr_from_skb() 35 srx->transport.sin6.sin6_addr = ipv6_hdr(skb)->saddr; in rxrpc_extract_addr_from_skb()
|
H A D | peer_event.c | 39 srx->transport.family = local->srx.transport.family; in rxrpc_lookup_peer_local_rcu() 44 switch (srx->transport.family) { in rxrpc_lookup_peer_local_rcu() 46 srx->transport_len = sizeof(srx->transport.sin); in rxrpc_lookup_peer_local_rcu() 47 srx->transport.family = AF_INET; in rxrpc_lookup_peer_local_rcu() 48 srx->transport.sin.sin_port = serr->port; in rxrpc_lookup_peer_local_rcu() 51 memcpy(&srx->transport.sin.sin_addr, in rxrpc_lookup_peer_local_rcu() 56 memcpy(&srx->transport.sin.sin_addr, in rxrpc_lookup_peer_local_rcu() 61 memcpy(&srx->transport.sin.sin_addr, &ip_hdr(skb)->saddr, in rxrpc_lookup_peer_local_rcu() 71 srx->transport.sin6.sin6_port = serr->port; in rxrpc_lookup_peer_local_rcu() 72 memcpy(&srx->transport.sin6.sin6_addr, in rxrpc_lookup_peer_local_rcu() [all …]
|
H A D | local_object.c | 66 (local->srx.transport.family - srx->transport.family)); in rxrpc_local_cmp_key() 70 switch (srx->transport.family) { in rxrpc_local_cmp_key() 75 return ((u16 __force)local->srx.transport.sin.sin_port - in rxrpc_local_cmp_key() 76 (u16 __force)srx->transport.sin.sin_port) ?: in rxrpc_local_cmp_key() 77 memcmp(&local->srx.transport.sin.sin_addr, in rxrpc_local_cmp_key() 78 &srx->transport.sin.sin_addr, in rxrpc_local_cmp_key() 85 return ((u16 __force)local->srx.transport.sin6.sin6_port - in rxrpc_local_cmp_key() 86 (u16 __force)srx->transport.sin6.sin6_port) ?: in rxrpc_local_cmp_key() 87 memcmp(&local->srx.transport.sin6.sin6_addr, in rxrpc_local_cmp_key() 88 &srx->transport.sin6.sin6_addr, in rxrpc_local_cmp_key() [all …]
|
/openbmc/linux/drivers/firmware/arm_scmi/ |
H A D | Kconfig | 61 This declares whether at least one SCMI transport has been configured. 63 configured transport. 68 This declares whether a shared memory based transport for SCMI is 74 This declares whether a message passing based transport for SCMI is 78 bool "SCMI transport based on Mailbox" 84 Enable mailbox based transport for SCMI. 87 transport based on mailboxes, answer Y. 90 bool "SCMI transport based on OP-TEE service" 97 This enables the OP-TEE service based transport for SCMI. 100 transport based on OP-TEE SCMI service, answer Y. [all …]
|
H A D | Makefile | 7 scmi-transport-$(CONFIG_ARM_SCMI_HAVE_SHMEM) = shmem.o 8 scmi-transport-$(CONFIG_ARM_SCMI_TRANSPORT_MAILBOX) += mailbox.o 9 scmi-transport-$(CONFIG_ARM_SCMI_TRANSPORT_SMC) += smc.o 10 scmi-transport-$(CONFIG_ARM_SCMI_HAVE_MSG) += msg.o 11 scmi-transport-$(CONFIG_ARM_SCMI_TRANSPORT_VIRTIO) += virtio.o 12 scmi-transport-$(CONFIG_ARM_SCMI_TRANSPORT_OPTEE) += optee.o 14 scmi-module-objs := $(scmi-driver-y) $(scmi-protocols-y) $(scmi-transport-y)
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | debugfs-scmi | 22 What: /sys/kernel/debug/scmi/<n>/transport/type 26 Description: A string representing the type of transport configured for this 30 What: /sys/kernel/debug/scmi/<n>/transport/is_atomic 34 Description: A boolean stating if the transport configured on the underlying 38 What: /sys/kernel/debug/scmi/<n>/transport/max_rx_timeout_ms 43 for the currently configured SCMI transport for instance <n>. 46 What: /sys/kernel/debug/scmi/<n>/transport/max_msg_size 51 configured SCMI transport for instance <n>. 54 What: /sys/kernel/debug/scmi/<n>/transport/tx_max_msg 59 the currently configured SCMI transport for instance <n> on the [all …]
|
/openbmc/linux/arch/um/drivers/ |
H A D | net_kern.c | 370 struct transport *transport, gfp_t gfp_mask) in eth_configure() argument 377 size = transport->private_size + sizeof(struct uml_net_private); in eth_configure() 431 (*transport->kern->init)(dev, init); in eth_configure() 438 .max_packet = transport->user->max_packet, in eth_configure() 439 .protocol = transport->kern->protocol, in eth_configure() 440 .open = transport->user->open, in eth_configure() 441 .close = transport->user->close, in eth_configure() 442 .remove = transport->user->remove, in eth_configure() 443 .read = transport->kern->read, in eth_configure() 444 .write = transport->kern->write, in eth_configure() [all …]
|
/openbmc/linux/drivers/scsi/ |
H A D | scsi_transport_iscsi.c | 325 struct iscsi_transport *t = iface->transport; \ 446 struct iscsi_transport *t = iface->transport; in iscsi_iface_attr_is_visible() 745 iscsi_create_iface(struct Scsi_Host *shost, struct iscsi_transport *transport, in iscsi_create_iface() argument 755 iface->transport = transport; in iscsi_create_iface() 814 struct iscsi_transport *t = fnode_sess->transport; \ 914 struct iscsi_transport *t = fnode_sess->transport; in iscsi_flashnode_sess_attr_is_visible() 1027 struct iscsi_transport *t = fnode_conn->transport; \ 1115 struct iscsi_transport *t = fnode_conn->transport; in iscsi_flashnode_conn_attr_is_visible() 1235 struct iscsi_transport *transport, in iscsi_create_flashnode_sess() argument 1245 fnode_sess->transport = transport; in iscsi_create_flashnode_sess() [all …]
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | l2tp.sh | 236 tmpl proto esp mode transport 240 tmpl proto esp mode transport 244 tmpl proto esp mode transport 248 tmpl proto esp mode transport 253 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f 128 mode transport 258 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f 128 mode transport 263 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f 128 mode transport 268 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f 128 mode transport 275 tmpl proto esp mode transport 279 tmpl proto esp mode transport [all …]
|
/openbmc/linux/fs/afs/ |
H A D | addr_list.c | 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() 284 struct sockaddr_in *a = &alist->addrs[i].transport.sin; in afs_merge_fs_addr4() 304 srx->transport_len = sizeof(srx->transport.sin); in afs_merge_fs_addr4() 305 srx->transport.sin.sin_family = AF_INET; in afs_merge_fs_addr4() 306 srx->transport.sin.sin_port = htons(port); in afs_merge_fs_addr4() 307 srx->transport.sin.sin_addr.s_addr = xdr; in afs_merge_fs_addr4() 324 struct sockaddr_in6 *a = &alist->addrs[i].transport.sin6; in afs_merge_fs_addr6() 344 srx->transport_len = sizeof(srx->transport.sin6); in afs_merge_fs_addr6() [all …]
|