Lines Matching refs:transport
302 struct iscsi_transport *t = iface->transport; \
423 struct iscsi_transport *t = iface->transport; in iscsi_iface_attr_is_visible()
744 iscsi_create_iface(struct Scsi_Host *shost, struct iscsi_transport *transport, in iscsi_create_iface() argument
754 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()
1284 struct iscsi_transport *transport, in iscsi_create_flashnode_conn() argument
1294 fnode_conn->transport = transport; in iscsi_create_flashnode_conn()
1917 if (session->transport->session_recovery_timedout) in session_recovery_timedout()
1918 session->transport->session_recovery_timedout(session); in session_recovery_timedout()
2034 iscsi_alloc_session(struct Scsi_Host *shost, struct iscsi_transport *transport, in iscsi_alloc_session() argument
2044 session->transport = transport; in iscsi_alloc_session()
2126 iscsi_create_session(struct Scsi_Host *shost, struct iscsi_transport *transport, in iscsi_create_session() argument
2131 session = iscsi_alloc_session(shost, transport, dd_size); in iscsi_create_session()
2254 struct iscsi_transport *transport = session->transport; in iscsi_create_conn() local
2267 conn->transport = transport; in iscsi_create_conn()
2359 priv = iscsi_if_transport_lookup(conn->transport); in iscsi_recv_pdu()
2374 ev->transport_handle = iscsi_handle(conn->transport); in iscsi_recv_pdu()
2387 struct iscsi_transport *transport, uint32_t type, in iscsi_offload_mesg() argument
2405 ev->transport_handle = iscsi_handle(transport); in iscsi_offload_mesg()
2429 priv = iscsi_if_transport_lookup(conn->transport); in iscsi_conn_error_event()
2442 ev->transport_handle = iscsi_handle(conn->transport); in iscsi_conn_error_event()
2464 priv = iscsi_if_transport_lookup(conn->transport); in iscsi_conn_login_event()
2477 ev->transport_handle = iscsi_handle(conn->transport); in iscsi_conn_login_event()
2489 void iscsi_post_host_event(uint32_t host_no, struct iscsi_transport *transport, in iscsi_post_host_event() argument
2507 ev->transport_handle = iscsi_handle(transport); in iscsi_post_host_event()
2520 void iscsi_ping_comp_event(uint32_t host_no, struct iscsi_transport *transport, in iscsi_ping_comp_event() argument
2537 ev->transport_handle = iscsi_handle(transport); in iscsi_ping_comp_event()
2572 iscsi_if_get_stats(struct iscsi_transport *transport, struct nlmsghdr *nlh) in iscsi_if_get_stats() argument
2587 priv = iscsi_if_transport_lookup(transport); in iscsi_if_get_stats()
2609 evstat->transport_handle = iscsi_handle(conn->transport); in iscsi_if_get_stats()
2619 transport->get_stats(conn, stats); in iscsi_if_get_stats()
2651 priv = iscsi_if_transport_lookup(session->transport); in iscsi_session_event()
2666 ev->transport_handle = iscsi_handle(session->transport); in iscsi_session_event()
2712 struct iscsi_transport *transport = priv->iscsi_transport; in iscsi_if_create_session() local
2716 session = transport->create_session(ep, cmds_max, queue_depth, in iscsi_if_create_session()
2731 iscsi_if_create_conn(struct iscsi_transport *transport, struct iscsi_uevent *ev) in iscsi_if_create_conn() argument
2743 conn = transport->create_conn(session, ev->u.c_conn.cid); in iscsi_if_create_conn()
2758 iscsi_if_destroy_conn(struct iscsi_transport *transport, struct iscsi_uevent *ev) in iscsi_if_destroy_conn() argument
2767 if (transport->destroy_conn) in iscsi_if_destroy_conn()
2768 transport->destroy_conn(conn); in iscsi_if_destroy_conn()
2774 iscsi_set_param(struct iscsi_transport *transport, struct iscsi_uevent *ev) in iscsi_set_param() argument
2793 err = transport->set_param(conn, ev->u.set_param.param, in iscsi_set_param()
2800 static int iscsi_if_ep_connect(struct iscsi_transport *transport, in iscsi_if_ep_connect() argument
2808 if (!transport->ep_connect) in iscsi_if_ep_connect()
2824 ep = transport->ep_connect(shost, dst_addr, non_blocking); in iscsi_if_ep_connect()
2837 static int iscsi_if_ep_disconnect(struct iscsi_transport *transport, in iscsi_if_ep_disconnect() argument
2843 if (!transport->ep_disconnect) in iscsi_if_ep_disconnect()
2856 transport->ep_disconnect(ep); in iscsi_if_ep_disconnect()
2861 iscsi_if_transport_ep(struct iscsi_transport *transport, in iscsi_if_transport_ep() argument
2870 rc = iscsi_if_ep_connect(transport, ev, msg_type); in iscsi_if_transport_ep()
2873 if (!transport->ep_poll) in iscsi_if_transport_ep()
2880 ev->r.retcode = transport->ep_poll(ep, in iscsi_if_transport_ep()
2884 rc = iscsi_if_ep_disconnect(transport, in iscsi_if_transport_ep()
2892 iscsi_tgt_dscvr(struct iscsi_transport *transport, in iscsi_tgt_dscvr() argument
2899 if (!transport->tgt_dscvr) in iscsi_tgt_dscvr()
2911 err = transport->tgt_dscvr(shost, ev->u.tgt_dscvr.type, in iscsi_tgt_dscvr()
2918 iscsi_set_host_param(struct iscsi_transport *transport, in iscsi_set_host_param() argument
2925 if (!transport->set_host_param) in iscsi_set_host_param()
2935 err = transport->set_host_param(shost, ev->u.set_host_param.param, in iscsi_set_host_param()
2942 iscsi_set_path(struct iscsi_transport *transport, struct iscsi_uevent *ev) in iscsi_set_path() argument
2948 if (!transport->set_path) in iscsi_set_path()
2959 err = transport->set_path(shost, params); in iscsi_set_path()
2966 iscsi_set_iface_params(struct iscsi_transport *transport, in iscsi_set_iface_params() argument
2973 if (!transport->set_iface_param) in iscsi_set_iface_params()
2983 err = transport->set_iface_param(shost, data, len); in iscsi_set_iface_params()
2989 iscsi_send_ping(struct iscsi_transport *transport, struct iscsi_uevent *ev) in iscsi_send_ping() argument
2995 if (!transport->send_ping) in iscsi_send_ping()
3006 err = transport->send_ping(shost, ev->u.iscsi_ping.iface_num, in iscsi_send_ping()
3016 iscsi_get_chap(struct iscsi_transport *transport, struct nlmsghdr *nlh) in iscsi_get_chap() argument
3029 if (!transport->get_chap) in iscsi_get_chap()
3032 priv = iscsi_if_transport_lookup(transport); in iscsi_get_chap()
3060 evchap->transport_handle = iscsi_handle(transport); in iscsi_get_chap()
3068 err = transport->get_chap(shost, ev->u.get_chap.chap_tbl_idx, in iscsi_get_chap()
3084 static int iscsi_set_chap(struct iscsi_transport *transport, in iscsi_set_chap() argument
3091 if (!transport->set_chap) in iscsi_set_chap()
3101 err = transport->set_chap(shost, data, len); in iscsi_set_chap()
3106 static int iscsi_delete_chap(struct iscsi_transport *transport, in iscsi_delete_chap() argument
3112 if (!transport->delete_chap) in iscsi_delete_chap()
3122 err = transport->delete_chap(shost, ev->u.delete_chap.chap_tbl_idx); in iscsi_delete_chap()
3151 static int iscsi_set_flashnode_param(struct iscsi_transport *transport, in iscsi_set_flashnode_param() argument
3162 if (!transport->set_flashnode_param) { in iscsi_set_flashnode_param()
3191 err = transport->set_flashnode_param(fnode_sess, fnode_conn, data, len); in iscsi_set_flashnode_param()
3204 static int iscsi_new_flashnode(struct iscsi_transport *transport, in iscsi_new_flashnode() argument
3212 if (!transport->new_flashnode) { in iscsi_new_flashnode()
3225 index = transport->new_flashnode(shost, data, len); in iscsi_new_flashnode()
3239 static int iscsi_del_flashnode(struct iscsi_transport *transport, in iscsi_del_flashnode() argument
3247 if (!transport->del_flashnode) { in iscsi_del_flashnode()
3269 err = transport->del_flashnode(fnode_sess); in iscsi_del_flashnode()
3279 static int iscsi_login_flashnode(struct iscsi_transport *transport, in iscsi_login_flashnode() argument
3289 if (!transport->login_flashnode) { in iscsi_login_flashnode()
3318 err = transport->login_flashnode(fnode_sess, fnode_conn); in iscsi_login_flashnode()
3331 static int iscsi_logout_flashnode(struct iscsi_transport *transport, in iscsi_logout_flashnode() argument
3341 if (!transport->logout_flashnode) { in iscsi_logout_flashnode()
3371 err = transport->logout_flashnode(fnode_sess, fnode_conn); in iscsi_logout_flashnode()
3384 static int iscsi_logout_flashnode_sid(struct iscsi_transport *transport, in iscsi_logout_flashnode_sid() argument
3391 if (!transport->logout_flashnode_sid) { in iscsi_logout_flashnode_sid()
3412 err = transport->logout_flashnode_sid(session); in iscsi_logout_flashnode_sid()
3422 iscsi_get_host_stats(struct iscsi_transport *transport, struct nlmsghdr *nlh) in iscsi_get_host_stats() argument
3434 if (!transport->get_host_stats) in iscsi_get_host_stats()
3437 priv = iscsi_if_transport_lookup(transport); in iscsi_get_host_stats()
3465 evhost_stats->transport_handle = iscsi_handle(transport); in iscsi_get_host_stats()
3472 err = transport->get_host_stats(shost, buf, host_stats_size); in iscsi_get_host_stats()
3497 struct iscsi_transport *transport = NULL; in iscsi_if_recv_msg() local
3511 transport = priv->iscsi_transport; in iscsi_if_recv_msg()
3513 if (!try_module_get(transport->owner)) in iscsi_if_recv_msg()
3540 transport->destroy_session(session); in iscsi_if_recv_msg()
3553 err = iscsi_if_create_conn(transport, ev); in iscsi_if_recv_msg()
3556 err = iscsi_if_destroy_conn(transport, ev); in iscsi_if_recv_msg()
3563 iscsi_if_ep_disconnect(transport, conn->ep->id); in iscsi_if_recv_msg()
3570 ev->r.retcode = transport->bind_conn(session, conn, in iscsi_if_recv_msg()
3573 if (ev->r.retcode || !transport->ep_connect) in iscsi_if_recv_msg()
3589 err = iscsi_set_param(transport, ev); in iscsi_if_recv_msg()
3594 ev->r.retcode = transport->start_conn(conn); in iscsi_if_recv_msg()
3601 transport->stop_conn(conn, ev->u.stop_conn.flag); in iscsi_if_recv_msg()
3608 ev->r.retcode = transport->send_pdu(conn, in iscsi_if_recv_msg()
3616 err = iscsi_if_get_stats(transport, nlh); in iscsi_if_recv_msg()
3622 err = iscsi_if_transport_ep(transport, ev, nlh->nlmsg_type); in iscsi_if_recv_msg()
3625 err = iscsi_tgt_dscvr(transport, ev); in iscsi_if_recv_msg()
3628 err = iscsi_set_host_param(transport, ev); in iscsi_if_recv_msg()
3631 err = iscsi_set_path(transport, ev); in iscsi_if_recv_msg()
3634 err = iscsi_set_iface_params(transport, ev, in iscsi_if_recv_msg()
3638 err = iscsi_send_ping(transport, ev); in iscsi_if_recv_msg()
3641 err = iscsi_get_chap(transport, nlh); in iscsi_if_recv_msg()
3644 err = iscsi_delete_chap(transport, ev); in iscsi_if_recv_msg()
3647 err = iscsi_set_flashnode_param(transport, ev, in iscsi_if_recv_msg()
3652 err = iscsi_new_flashnode(transport, ev, in iscsi_if_recv_msg()
3656 err = iscsi_del_flashnode(transport, ev); in iscsi_if_recv_msg()
3659 err = iscsi_login_flashnode(transport, ev); in iscsi_if_recv_msg()
3662 err = iscsi_logout_flashnode(transport, ev); in iscsi_if_recv_msg()
3665 err = iscsi_logout_flashnode_sid(transport, ev); in iscsi_if_recv_msg()
3668 err = iscsi_set_chap(transport, ev, in iscsi_if_recv_msg()
3672 err = iscsi_get_host_stats(transport, nlh); in iscsi_if_recv_msg()
3679 module_put(transport->owner); in iscsi_if_recv_msg()
3746 struct iscsi_transport *t = conn->transport; \
3791 struct iscsi_transport *t = conn->transport; \
3861 struct iscsi_transport *t = conn->transport; in iscsi_conn_attr_is_visible()
3947 struct iscsi_transport *t = session->transport; \
4128 struct iscsi_transport *t = session->transport; in iscsi_session_attr_is_visible()