Home
last modified time | relevance | path

Searched refs:trans (Results 1 – 25 of 36) sorted by relevance

12

/net/rxrpc/
Dar-transport.c34 struct rxrpc_transport *trans; in rxrpc_alloc_transport() local
38 trans = kzalloc(sizeof(struct rxrpc_transport), gfp); in rxrpc_alloc_transport()
39 if (trans) { in rxrpc_alloc_transport()
40 trans->local = local; in rxrpc_alloc_transport()
41 trans->peer = peer; in rxrpc_alloc_transport()
42 INIT_LIST_HEAD(&trans->link); in rxrpc_alloc_transport()
43 trans->bundles = RB_ROOT; in rxrpc_alloc_transport()
44 trans->client_conns = RB_ROOT; in rxrpc_alloc_transport()
45 trans->server_conns = RB_ROOT; in rxrpc_alloc_transport()
46 skb_queue_head_init(&trans->error_queue); in rxrpc_alloc_transport()
[all …]
Dar-connection.c66 struct rxrpc_transport *trans, in rxrpc_get_bundle() argument
75 rx, key_serial(key), trans->debug_id, ntohs(service_id)); in rxrpc_get_bundle()
77 if (rx->trans == trans && rx->bundle) { in rxrpc_get_bundle()
84 spin_lock(&trans->client_lock); in rxrpc_get_bundle()
86 p = trans->bundles.rb_node; in rxrpc_get_bundle()
98 spin_unlock(&trans->client_lock); in rxrpc_get_bundle()
111 spin_lock(&trans->client_lock); in rxrpc_get_bundle()
113 pp = &trans->bundles.rb_node; in rxrpc_get_bundle()
132 rb_insert_color(&bundle->node, &trans->bundles); in rxrpc_get_bundle()
133 spin_unlock(&trans->client_lock); in rxrpc_get_bundle()
[all …]
Daf_rxrpc.c229 struct rxrpc_transport *trans; in rxrpc_name_to_transport() local
249 trans = rxrpc_get_transport(rx->local, peer, gfp); in rxrpc_name_to_transport()
251 _leave(" = %p", trans); in rxrpc_name_to_transport()
252 return trans; in rxrpc_name_to_transport()
276 struct rxrpc_transport *trans; in rxrpc_kernel_begin_call() local
286 trans = rxrpc_name_to_transport(sock, (struct sockaddr *) srx, in rxrpc_kernel_begin_call()
288 if (IS_ERR(trans)) { in rxrpc_kernel_begin_call()
289 call = ERR_CAST(trans); in rxrpc_kernel_begin_call()
290 trans = NULL; in rxrpc_kernel_begin_call()
294 trans = rx->trans; in rxrpc_kernel_begin_call()
[all …]
Dar-proc.c49 struct rxrpc_transport *trans; in rxrpc_call_seq_show() local
62 trans = call->conn->trans; in rxrpc_call_seq_show()
65 &trans->local->srx.transport.sin.sin_addr, in rxrpc_call_seq_show()
66 ntohs(trans->local->srx.transport.sin.sin_port)); in rxrpc_call_seq_show()
69 &trans->peer->srx.transport.sin.sin_addr, in rxrpc_call_seq_show()
70 ntohs(trans->peer->srx.transport.sin.sin_port)); in rxrpc_call_seq_show()
132 struct rxrpc_transport *trans; in rxrpc_connection_seq_show() local
145 trans = conn->trans; in rxrpc_connection_seq_show()
148 &trans->local->srx.transport.sin.sin_addr, in rxrpc_connection_seq_show()
149 ntohs(trans->local->srx.transport.sin.sin_port)); in rxrpc_connection_seq_show()
[all …]
Dar-error.c31 struct rxrpc_transport *trans; in rxrpc_UDP_error_report() local
62 trans = rxrpc_find_transport(local, peer); in rxrpc_UDP_error_report()
63 if (!trans) { in rxrpc_UDP_error_report()
110 skb_queue_tail(&trans->error_queue, skb); in rxrpc_UDP_error_report()
111 rxrpc_queue_work(&trans->error_handler); in rxrpc_UDP_error_report()
135 struct rxrpc_transport *trans = in rxrpc_UDP_error_handler() local
142 skb = skb_dequeue(&trans->error_queue); in rxrpc_UDP_error_handler()
222 spin_lock_bh(&trans->peer->lock); in rxrpc_UDP_error_handler()
223 trans->peer->net_error = err; in rxrpc_UDP_error_handler()
225 list_for_each_entry_safe(call, _n, &trans->peer->error_targets, in rxrpc_UDP_error_handler()
[all …]
Dar-output.c130 struct rxrpc_transport *trans, struct msghdr *msg, in rxrpc_client_sendmsg() argument
144 ASSERT(trans != NULL); in rxrpc_client_sendmsg()
152 if (trans) { in rxrpc_client_sendmsg()
162 bundle = rxrpc_get_bundle(rx, trans, key, service_id, in rxrpc_client_sendmsg()
168 call = rxrpc_get_client_call(rx, trans, bundle, user_call_ID, in rxrpc_client_sendmsg()
170 if (trans) in rxrpc_client_sendmsg()
171 rxrpc_put_bundle(trans, bundle); in rxrpc_client_sendmsg()
335 int rxrpc_send_packet(struct rxrpc_transport *trans, struct sk_buff *skb) in rxrpc_send_packet() argument
346 msg.msg_name = &trans->peer->srx.transport.sin; in rxrpc_send_packet()
347 msg.msg_namelen = sizeof(trans->peer->srx.transport.sin); in rxrpc_send_packet()
[all …]
Dar-call.c104 struct rxrpc_transport *trans, in rxrpc_alloc_client_call() argument
114 ASSERT(trans != NULL); in rxrpc_alloc_client_call()
125 ret = rxrpc_connect_call(rx, trans, bundle, call, gfp); in rxrpc_alloc_client_call()
131 spin_lock(&call->conn->trans->peer->lock); in rxrpc_alloc_client_call()
132 list_add(&call->error_link, &call->conn->trans->peer->error_targets); in rxrpc_alloc_client_call()
133 spin_unlock(&call->conn->trans->peer->lock); in rxrpc_alloc_client_call()
147 struct rxrpc_transport *trans, in rxrpc_get_client_call() argument
157 rx, trans ? trans->debug_id : -1, bundle ? bundle->debug_id : -1, in rxrpc_get_client_call()
178 if (!create || !trans) in rxrpc_get_client_call()
183 candidate = rxrpc_alloc_client_call(rx, trans, bundle, gfp); in rxrpc_get_client_call()
[all …]
Dar-input.c603 skb_queue_tail(&conn->trans->local->accept_queue, skb); in rxrpc_post_packet_to_call()
604 rxrpc_queue_work(&conn->trans->local->acceptor); in rxrpc_post_packet_to_call()
610 rxrpc_reject_packet(conn->trans->local, skb); in rxrpc_post_packet_to_call()
674 struct rxrpc_transport *trans; in rxrpc_data_ready() local
756 trans = rxrpc_find_transport(local, peer); in rxrpc_data_ready()
758 if (!trans) in rxrpc_data_ready()
761 conn = rxrpc_find_connection(trans, &sp->hdr); in rxrpc_data_ready()
762 rxrpc_put_transport(trans); in rxrpc_data_ready()
Dar-accept.c79 struct rxrpc_transport *trans; in rxrpc_accept_incoming_call() local
107 trans = rxrpc_get_transport(local, peer, GFP_NOIO); in rxrpc_accept_incoming_call()
109 if (IS_ERR(trans)) { in rxrpc_accept_incoming_call()
115 conn = rxrpc_incoming_connection(trans, &sp->hdr, GFP_NOIO); in rxrpc_accept_incoming_call()
116 rxrpc_put_transport(trans); in rxrpc_accept_incoming_call()
Dar-ack.c209 if (rxrpc_send_packet(call->conn->trans, txb) < 0) { in rxrpc_resend()
569 peer = call->conn->trans->peer; in rxrpc_extract_ackinfo()
857 msg.msg_name = &call->conn->trans->peer->srx.transport.sin; in rxrpc_process_call()
858 msg.msg_namelen = sizeof(call->conn->trans->peer->srx.transport.sin); in rxrpc_process_call()
891 error = call->conn->trans->peer->net_error; in rxrpc_process_call()
1167 mtu = call->conn->trans->peer->if_mtu; in rxrpc_process_call()
1168 mtu -= call->conn->trans->peer->hdrsize; in rxrpc_process_call()
1220 ret = kernel_sendmsg(call->conn->trans->local->socket, in rxrpc_process_call()
Dar-connevent.c86 msg.msg_name = &conn->trans->peer->srx.transport.sin; in rxrpc_abort_connection()
87 msg.msg_namelen = sizeof(conn->trans->peer->srx.transport.sin); in rxrpc_abort_connection()
115 ret = kernel_sendmsg(conn->trans->local->socket, &msg, iov, 2, len); in rxrpc_abort_connection()
/net/rds/
Dtransport.c43 int rds_trans_register(struct rds_transport *trans) in rds_trans_register() argument
45 BUG_ON(strlen(trans->t_name) + 1 > TRANSNAMSIZ); in rds_trans_register()
49 if (transports[trans->t_type]) in rds_trans_register()
51 trans->t_type); in rds_trans_register()
53 transports[trans->t_type] = trans; in rds_trans_register()
54 printk(KERN_INFO "Registered RDS/%s transport\n", trans->t_name); in rds_trans_register()
63 void rds_trans_unregister(struct rds_transport *trans) in rds_trans_unregister() argument
67 transports[trans->t_type] = NULL; in rds_trans_unregister()
68 printk(KERN_INFO "Unregistered RDS/%s transport\n", trans->t_name); in rds_trans_unregister()
74 void rds_trans_put(struct rds_transport *trans) in rds_trans_put() argument
[all …]
Dconnection.c69 struct rds_transport *trans) in rds_conn_lookup() argument
75 conn->c_trans == trans) { in rds_conn_lookup()
115 struct rds_transport *trans, gfp_t gfp, in __rds_conn_create() argument
125 conn = rds_conn_lookup(head, laddr, faddr, trans); in __rds_conn_create()
171 if (is_outgoing && trans->t_prefer_loopback) { in __rds_conn_create()
176 trans = &rds_loop_transport; in __rds_conn_create()
180 conn->c_trans = trans; in __rds_conn_create()
182 ret = trans->conn_alloc(conn, gfp); in __rds_conn_create()
200 trans->t_name ? trans->t_name : "[unknown]", in __rds_conn_create()
214 trans->conn_free(conn->c_transport_data); in __rds_conn_create()
[all …]
Drdma_transport.c73 struct rds_transport *trans; in rds_rdma_cm_event_handler() local
80 trans = &rds_iw_transport; in rds_rdma_cm_event_handler()
82 trans = &rds_ib_transport; in rds_rdma_cm_event_handler()
103 ret = trans->cm_handle_connect(cm_id, event); in rds_rdma_cm_event_handler()
114 ret = trans->cm_initiate_connect(cm_id); in rds_rdma_cm_event_handler()
118 trans->cm_connect_complete(conn, event); in rds_rdma_cm_event_handler()
Dbind.c167 struct rds_transport *trans; in rds_bind() local
184 trans = rds_trans_get_preferred(sin->sin_addr.s_addr); in rds_bind()
185 if (!trans) { in rds_bind()
193 rs->rs_transport = trans; in rds_bind()
Dstats.c123 goto trans; in rds_stats_info()
137 trans: in rds_stats_info()
Drds.h616 struct rds_transport *trans, gfp_t gfp);
618 struct rds_transport *trans, gfp_t gfp);
803 int rds_trans_register(struct rds_transport *trans);
804 void rds_trans_unregister(struct rds_transport *trans);
806 void rds_trans_put(struct rds_transport *trans);
/net/sctp/
Dsocket.c604 struct sctp_transport *trans; in sctp_send_asconf_add_ip() local
606 list_for_each_entry(trans, in sctp_send_asconf_add_ip()
609 dst_release(trans->dst); in sctp_send_asconf_add_ip()
610 trans->cwnd = min(4*asoc->pathmtu, max_t(__u32, in sctp_send_asconf_add_ip()
612 trans->ssthresh = asoc->peer.i.a_rwnd; in sctp_send_asconf_add_ip()
613 trans->rto = asoc->rto_initial; in sctp_send_asconf_add_ip()
614 sctp_max_rto(asoc, trans); in sctp_send_asconf_add_ip()
615 trans->rtt = trans->srtt = trans->rttvar = 0; in sctp_send_asconf_add_ip()
616 sctp_transport_route(trans, NULL, in sctp_send_asconf_add_ip()
2323 struct sctp_transport *trans, in sctp_apply_peer_addr_params() argument
[all …]
Dtsnmap.c118 struct sctp_transport *trans) in sctp_tsnmap_mark() argument
137 if (trans) in sctp_tsnmap_mark()
138 trans->sack_generation = in sctp_tsnmap_mark()
139 trans->asoc->peer.sack_generation; in sctp_tsnmap_mark()
Dassociola.c1209 struct sctp_transport *trans; in sctp_assoc_update() local
1222 trans = list_entry(pos, struct sctp_transport, transports); in sctp_assoc_update()
1223 if (!sctp_assoc_lookup_paddr(new, &trans->ipaddr)) { in sctp_assoc_update()
1224 sctp_assoc_rm_peer(asoc, trans); in sctp_assoc_update()
1229 sctp_transport_reset(trans); in sctp_assoc_update()
1261 list_for_each_entry(trans, &new->peer.transport_addr_list, in sctp_assoc_update()
1263 if (!sctp_assoc_lookup_paddr(asoc, &trans->ipaddr)) in sctp_assoc_update()
1264 sctp_assoc_add_peer(asoc, &trans->ipaddr, in sctp_assoc_update()
1265 GFP_ATOMIC, trans->state); in sctp_assoc_update()
/net/llc/
Dllc_sap.c145 struct llc_sap_state_trans *trans, in llc_exec_sap_trans_actions() argument
149 llc_sap_action_t *next_action = trans->ev_actions; in llc_exec_sap_trans_actions()
169 struct llc_sap_state_trans *trans; in llc_sap_next_state() local
173 trans = llc_find_sap_trans(sap, skb); in llc_sap_next_state()
174 if (!trans) in llc_sap_next_state()
181 rc = llc_exec_sap_trans_actions(sap, trans, skb); in llc_sap_next_state()
187 sap->state = trans->next_state; in llc_sap_next_state()
Dllc_conn.c36 struct llc_conn_state_trans *trans,
379 struct llc_conn_state_trans *trans; in llc_conn_service() local
384 trans = llc_qualify_conn_ev(sk, skb); in llc_conn_service()
385 if (trans) { in llc_conn_service()
386 rc = llc_exec_conn_trans_actions(sk, trans, skb); in llc_conn_service()
387 if (!rc && trans->next_state != NO_STATE_CHANGE) { in llc_conn_service()
388 llc->state = trans->next_state; in llc_conn_service()
453 struct llc_conn_state_trans *trans, in llc_exec_conn_trans_actions() argument
459 for (next_action = trans->ev_actions; in llc_exec_conn_trans_actions()
/net/9p/
Dtrans_rdma.c228 struct p9_trans_rdma *rdma = c->trans; in p9_cm_event_handler()
329 struct p9_trans_rdma *rdma = client->trans; in cq_comp_handler()
388 struct p9_trans_rdma *rdma = client->trans; in post_recv()
416 struct p9_trans_rdma *rdma = client->trans; in rdma_request()
527 rdma = client->trans; in rdma_close()
598 client->trans = rdma; in rdma_create_trans()
Dtrans_fd.c235 ts = client->trans; in p9_fd_poll()
274 ts = client->trans; in p9_fd_read()
417 ts = client->trans; in p9_fd_write()
664 struct p9_trans_fd *ts = client->trans; in p9_fd_request()
789 client->trans = ts; in p9_fd_open()
817 client->trans = p; in p9_socket_open()
868 ts = client->trans; in p9_fd_close()
997 p = (struct p9_trans_fd *) client->trans; in p9_fd_create()
Dtrans_virtio.c122 struct virtio_chan *chan = client->trans; in p9_virtio_close()
269 struct virtio_chan *chan = client->trans; in p9_virtio_request()
372 struct virtio_chan *chan = client->trans; in p9_virtio_zc_request()
632 client->trans = (void *)chan; in p9_virtio_create()

12