Lines Matching full:transport

3  * iSCSI transport class definitions
317 struct iscsi_transport *t = iface->transport; \
438 struct iscsi_transport *t = iface->transport; in iscsi_iface_attr_is_visible()
759 iscsi_create_iface(struct Scsi_Host *shost, struct iscsi_transport *transport, in iscsi_create_iface() argument
769 iface->transport = transport; in iscsi_create_iface()
829 struct iscsi_transport *t = fnode_sess->transport; \
929 struct iscsi_transport *t = fnode_sess->transport; in iscsi_flashnode_sess_attr_is_visible()
1042 struct iscsi_transport *t = fnode_conn->transport; \
1130 struct iscsi_transport *t = fnode_conn->transport; in iscsi_flashnode_conn_attr_is_visible()
1239 * @transport: pointer to transport data
1250 struct iscsi_transport *transport, in iscsi_create_flashnode_sess() argument
1260 fnode_sess->transport = transport; in iscsi_create_flashnode_sess()
1287 * @transport: pointer to transport data
1299 struct iscsi_transport *transport, in iscsi_create_flashnode_conn() argument
1309 fnode_conn->transport = transport; in iscsi_create_flashnode_conn()
1930 if (session->transport->session_recovery_timedout) in session_recovery_timedout()
1931 session->transport->session_recovery_timedout(session); in session_recovery_timedout()
2054 session->transport->destroy_session(session); in __iscsi_destroy_session()
2058 iscsi_alloc_session(struct Scsi_Host *shost, struct iscsi_transport *transport, in iscsi_alloc_session() argument
2068 session->transport = transport; in iscsi_alloc_session()
2126 "could not register transport's dev\n"); in iscsi_add_session()
2151 * @transport: iscsi transport
2158 iscsi_create_session(struct Scsi_Host *shost, struct iscsi_transport *transport, in iscsi_create_session() argument
2163 session = iscsi_alloc_session(shost, transport, dd_size); in iscsi_create_session()
2270 struct iscsi_transport *transport = session->transport; in iscsi_create_conn() local
2284 conn->transport = transport; in iscsi_create_conn()
2304 "register transport's dev\n"); in iscsi_create_conn()
2391 priv = iscsi_if_transport_lookup(conn->transport); in iscsi_recv_pdu()
2406 ev->transport_handle = iscsi_handle(conn->transport); in iscsi_recv_pdu()
2419 struct iscsi_transport *transport, uint32_t type, in iscsi_offload_mesg() argument
2437 ev->transport_handle = iscsi_handle(transport); in iscsi_offload_mesg()
2474 conn->transport->stop_conn(conn, flag); in iscsi_if_stop_conn()
2525 priv = iscsi_if_transport_lookup(conn->transport); in iscsi_conn_error_event()
2538 ev->transport_handle = iscsi_handle(conn->transport); in iscsi_conn_error_event()
2560 priv = iscsi_if_transport_lookup(conn->transport); in iscsi_conn_login_event()
2573 ev->transport_handle = iscsi_handle(conn->transport); in iscsi_conn_login_event()
2585 void iscsi_post_host_event(uint32_t host_no, struct iscsi_transport *transport, in iscsi_post_host_event() argument
2603 ev->transport_handle = iscsi_handle(transport); in iscsi_post_host_event()
2616 void iscsi_ping_comp_event(uint32_t host_no, struct iscsi_transport *transport, in iscsi_ping_comp_event() argument
2633 ev->transport_handle = iscsi_handle(transport); in iscsi_ping_comp_event()
2664 iscsi_if_get_stats(struct iscsi_transport *transport, struct nlmsghdr *nlh) in iscsi_if_get_stats() argument
2679 priv = iscsi_if_transport_lookup(transport); in iscsi_if_get_stats()
2701 evstat->transport_handle = iscsi_handle(conn->transport); in iscsi_if_get_stats()
2711 transport->get_stats(conn, stats); in iscsi_if_get_stats()
2743 priv = iscsi_if_transport_lookup(session->transport); in iscsi_session_event()
2758 ev->transport_handle = iscsi_handle(session->transport); in iscsi_session_event()
2804 struct iscsi_transport *transport = priv->iscsi_transport; in iscsi_if_create_session() local
2808 session = transport->create_session(ep, cmds_max, queue_depth, in iscsi_if_create_session()
2818 "Completed creating transport session\n"); in iscsi_if_create_session()
2823 iscsi_if_create_conn(struct iscsi_transport *transport, struct iscsi_uevent *ev) in iscsi_if_create_conn() argument
2835 conn = transport->create_conn(session, ev->u.c_conn.cid); in iscsi_if_create_conn()
2845 ISCSI_DBG_TRANS_CONN(conn, "Completed creating transport conn\n"); in iscsi_if_create_conn()
2850 iscsi_if_destroy_conn(struct iscsi_transport *transport, struct iscsi_uevent *ev) in iscsi_if_destroy_conn() argument
2866 ISCSI_DBG_TRANS_CONN(conn, "Destroying transport conn\n"); in iscsi_if_destroy_conn()
2869 if (transport->destroy_conn) in iscsi_if_destroy_conn()
2870 transport->destroy_conn(conn); in iscsi_if_destroy_conn()
2877 iscsi_set_param(struct iscsi_transport *transport, struct iscsi_uevent *ev) in iscsi_set_param() argument
2896 err = transport->set_param(conn, ev->u.set_param.param, in iscsi_set_param()
2903 static int iscsi_if_ep_connect(struct iscsi_transport *transport, in iscsi_if_ep_connect() argument
2911 if (!transport->ep_connect) in iscsi_if_ep_connect()
2927 ep = transport->ep_connect(shost, dst_addr, non_blocking); in iscsi_if_ep_connect()
2940 static int iscsi_if_ep_disconnect(struct iscsi_transport *transport, in iscsi_if_ep_disconnect() argument
2946 if (!transport->ep_disconnect) in iscsi_if_ep_disconnect()
2959 transport->ep_disconnect(ep); in iscsi_if_ep_disconnect()
2964 iscsi_if_transport_ep(struct iscsi_transport *transport, in iscsi_if_transport_ep() argument
2973 rc = iscsi_if_ep_connect(transport, ev, msg_type); in iscsi_if_transport_ep()
2976 if (!transport->ep_poll) in iscsi_if_transport_ep()
2983 ev->r.retcode = transport->ep_poll(ep, in iscsi_if_transport_ep()
2987 rc = iscsi_if_ep_disconnect(transport, in iscsi_if_transport_ep()
2995 iscsi_tgt_dscvr(struct iscsi_transport *transport, in iscsi_tgt_dscvr() argument
3002 if (!transport->tgt_dscvr) in iscsi_tgt_dscvr()
3014 err = transport->tgt_dscvr(shost, ev->u.tgt_dscvr.type, in iscsi_tgt_dscvr()
3021 iscsi_set_host_param(struct iscsi_transport *transport, in iscsi_set_host_param() argument
3028 if (!transport->set_host_param) in iscsi_set_host_param()
3038 err = transport->set_host_param(shost, ev->u.set_host_param.param, in iscsi_set_host_param()
3045 iscsi_set_path(struct iscsi_transport *transport, struct iscsi_uevent *ev) in iscsi_set_path() argument
3051 if (!transport->set_path) in iscsi_set_path()
3062 err = transport->set_path(shost, params); in iscsi_set_path()
3087 iscsi_set_iface_params(struct iscsi_transport *transport, in iscsi_set_iface_params() argument
3094 if (!transport->set_iface_param) in iscsi_set_iface_params()
3104 err = transport->set_iface_param(shost, data, len); in iscsi_set_iface_params()
3110 iscsi_send_ping(struct iscsi_transport *transport, struct iscsi_uevent *ev) in iscsi_send_ping() argument
3116 if (!transport->send_ping) in iscsi_send_ping()
3127 err = transport->send_ping(shost, ev->u.iscsi_ping.iface_num, in iscsi_send_ping()
3137 iscsi_get_chap(struct iscsi_transport *transport, struct nlmsghdr *nlh) in iscsi_get_chap() argument
3150 if (!transport->get_chap) in iscsi_get_chap()
3153 priv = iscsi_if_transport_lookup(transport); in iscsi_get_chap()
3181 evchap->transport_handle = iscsi_handle(transport); in iscsi_get_chap()
3189 err = transport->get_chap(shost, ev->u.get_chap.chap_tbl_idx, in iscsi_get_chap()
3205 static int iscsi_set_chap(struct iscsi_transport *transport, in iscsi_set_chap() argument
3212 if (!transport->set_chap) in iscsi_set_chap()
3222 err = transport->set_chap(shost, data, len); in iscsi_set_chap()
3227 static int iscsi_delete_chap(struct iscsi_transport *transport, in iscsi_delete_chap() argument
3233 if (!transport->delete_chap) in iscsi_delete_chap()
3243 err = transport->delete_chap(shost, ev->u.delete_chap.chap_tbl_idx); in iscsi_delete_chap()
3272 static int iscsi_set_flashnode_param(struct iscsi_transport *transport, in iscsi_set_flashnode_param() argument
3283 if (!transport->set_flashnode_param) { in iscsi_set_flashnode_param()
3312 err = transport->set_flashnode_param(fnode_sess, fnode_conn, data, len); in iscsi_set_flashnode_param()
3325 static int iscsi_new_flashnode(struct iscsi_transport *transport, in iscsi_new_flashnode() argument
3333 if (!transport->new_flashnode) { in iscsi_new_flashnode()
3346 index = transport->new_flashnode(shost, data, len); in iscsi_new_flashnode()
3360 static int iscsi_del_flashnode(struct iscsi_transport *transport, in iscsi_del_flashnode() argument
3368 if (!transport->del_flashnode) { in iscsi_del_flashnode()
3390 err = transport->del_flashnode(fnode_sess); in iscsi_del_flashnode()
3400 static int iscsi_login_flashnode(struct iscsi_transport *transport, in iscsi_login_flashnode() argument
3410 if (!transport->login_flashnode) { in iscsi_login_flashnode()
3439 err = transport->login_flashnode(fnode_sess, fnode_conn); in iscsi_login_flashnode()
3452 static int iscsi_logout_flashnode(struct iscsi_transport *transport, in iscsi_logout_flashnode() argument
3462 if (!transport->logout_flashnode) { in iscsi_logout_flashnode()
3492 err = transport->logout_flashnode(fnode_sess, fnode_conn); in iscsi_logout_flashnode()
3505 static int iscsi_logout_flashnode_sid(struct iscsi_transport *transport, in iscsi_logout_flashnode_sid() argument
3512 if (!transport->logout_flashnode_sid) { in iscsi_logout_flashnode_sid()
3533 err = transport->logout_flashnode_sid(session); in iscsi_logout_flashnode_sid()
3543 iscsi_get_host_stats(struct iscsi_transport *transport, struct nlmsghdr *nlh) in iscsi_get_host_stats() argument
3555 if (!transport->get_host_stats) in iscsi_get_host_stats()
3558 priv = iscsi_if_transport_lookup(transport); in iscsi_get_host_stats()
3586 evhost_stats->transport_handle = iscsi_handle(transport); in iscsi_get_host_stats()
3593 err = transport->get_host_stats(shost, buf, host_stats_size); in iscsi_get_host_stats()
3619 struct iscsi_transport *transport = NULL; in iscsi_if_recv_msg() local
3633 transport = priv->iscsi_transport; in iscsi_if_recv_msg()
3635 if (!try_module_get(transport->owner)) in iscsi_if_recv_msg()
3668 transport->destroy_session(session); in iscsi_if_recv_msg()
3696 err = iscsi_if_create_conn(transport, ev); in iscsi_if_recv_msg()
3699 err = iscsi_if_destroy_conn(transport, ev); in iscsi_if_recv_msg()
3706 iscsi_if_ep_disconnect(transport, conn->ep->id); in iscsi_if_recv_msg()
3714 ev->r.retcode = transport->bind_conn(session, conn, in iscsi_if_recv_msg()
3719 if (ev->r.retcode || !transport->ep_connect) in iscsi_if_recv_msg()
3735 err = iscsi_set_param(transport, ev); in iscsi_if_recv_msg()
3741 ev->r.retcode = transport->start_conn(conn); in iscsi_if_recv_msg()
3760 ev->r.retcode = transport->send_pdu(conn, in iscsi_if_recv_msg()
3770 err = iscsi_if_get_stats(transport, nlh); in iscsi_if_recv_msg()
3776 err = iscsi_if_transport_ep(transport, ev, nlh->nlmsg_type); in iscsi_if_recv_msg()
3779 err = iscsi_tgt_dscvr(transport, ev); in iscsi_if_recv_msg()
3782 err = iscsi_set_host_param(transport, ev); in iscsi_if_recv_msg()
3785 err = iscsi_set_path(transport, ev); in iscsi_if_recv_msg()
3788 err = iscsi_set_iface_params(transport, ev, in iscsi_if_recv_msg()
3792 err = iscsi_send_ping(transport, ev); in iscsi_if_recv_msg()
3795 err = iscsi_get_chap(transport, nlh); in iscsi_if_recv_msg()
3798 err = iscsi_delete_chap(transport, ev); in iscsi_if_recv_msg()
3801 err = iscsi_set_flashnode_param(transport, ev, in iscsi_if_recv_msg()
3806 err = iscsi_new_flashnode(transport, ev, in iscsi_if_recv_msg()
3810 err = iscsi_del_flashnode(transport, ev); in iscsi_if_recv_msg()
3813 err = iscsi_login_flashnode(transport, ev); in iscsi_if_recv_msg()
3816 err = iscsi_logout_flashnode(transport, ev); in iscsi_if_recv_msg()
3819 err = iscsi_logout_flashnode_sid(transport, ev); in iscsi_if_recv_msg()
3822 err = iscsi_set_chap(transport, ev, in iscsi_if_recv_msg()
3826 err = iscsi_get_host_stats(transport, nlh); in iscsi_if_recv_msg()
3833 module_put(transport->owner); in iscsi_if_recv_msg()
3907 struct iscsi_transport *t = conn->transport; \
3972 struct iscsi_transport *t = conn->transport; \
4043 struct iscsi_transport *t = conn->transport; in iscsi_conn_attr_is_visible()
4131 struct iscsi_transport *t = session->transport; \
4312 struct iscsi_transport *t = session->transport; in iscsi_session_attr_is_visible()
4660 printk(KERN_NOTICE "iscsi: registered transport (%s)\n", tt->name); in iscsi_register_transport()
4721 printk(KERN_INFO "Loading iSCSI transport class v%s.\n", in iscsi_transport_init()
4819 MODULE_DESCRIPTION("iSCSI Transport Interface");