Lines Matching refs:ihost

91 	struct iscsi_host *ihost = shost_priv(shost);  in iscsi_conn_queue_xmit()  local
93 if (ihost->workq) in iscsi_conn_queue_xmit()
94 queue_work(ihost->workq, &conn->xmitwork); in iscsi_conn_queue_xmit()
101 struct iscsi_host *ihost = shost_priv(shost); in iscsi_conn_queue_recv() local
103 if (ihost->workq && !test_bit(ISCSI_CONN_FLAG_SUSPEND_RX, &conn->flags)) in iscsi_conn_queue_recv()
104 queue_work(ihost->workq, &conn->recvwork); in iscsi_conn_queue_recv()
808 struct iscsi_host *ihost = shost_priv(conn->session->host); in iscsi_send_mgmt_task() local
811 if (!ihost->workq) { in iscsi_send_mgmt_task()
1753 struct iscsi_host *ihost; in iscsi_queuecommand() local
1762 ihost = shost_priv(host); in iscsi_queuecommand()
1840 if (!ihost->workq) { in iscsi_queuecommand()
2029 struct iscsi_host *ihost = shost_priv(shost); in iscsi_suspend_tx() local
2032 if (ihost->workq) in iscsi_suspend_tx()
2050 struct iscsi_host *ihost = shost_priv(shost); in iscsi_suspend_rx() local
2053 if (ihost->workq) in iscsi_suspend_rx()
2902 struct iscsi_host *ihost; in iscsi_host_alloc() local
2907 ihost = shost_priv(shost); in iscsi_host_alloc()
2910 ihost->workq = alloc_workqueue("iscsi_q_%d", in iscsi_host_alloc()
2913 if (!ihost->workq) in iscsi_host_alloc()
2917 spin_lock_init(&ihost->lock); in iscsi_host_alloc()
2918 ihost->state = ISCSI_HOST_SETUP; in iscsi_host_alloc()
2919 ihost->num_sessions = 0; in iscsi_host_alloc()
2920 init_waitqueue_head(&ihost->session_removal_wq); in iscsi_host_alloc()
2944 struct iscsi_host *ihost = shost_priv(shost); in iscsi_host_remove() local
2947 spin_lock_irqsave(&ihost->lock, flags); in iscsi_host_remove()
2948 ihost->state = ISCSI_HOST_REMOVED; in iscsi_host_remove()
2949 spin_unlock_irqrestore(&ihost->lock, flags); in iscsi_host_remove()
2956 wait_event_interruptible(ihost->session_removal_wq, in iscsi_host_remove()
2957 ihost->num_sessions == 0); in iscsi_host_remove()
2967 struct iscsi_host *ihost = shost_priv(shost); in iscsi_host_free() local
2969 if (ihost->workq) in iscsi_host_free()
2970 destroy_workqueue(ihost->workq); in iscsi_host_free()
2972 kfree(ihost->netdev); in iscsi_host_free()
2973 kfree(ihost->hwaddress); in iscsi_host_free()
2974 kfree(ihost->initiatorname); in iscsi_host_free()
2981 struct iscsi_host *ihost = shost_priv(shost); in iscsi_host_dec_session_cnt() local
2992 spin_lock_irqsave(&ihost->lock, flags); in iscsi_host_dec_session_cnt()
2993 ihost->num_sessions--; in iscsi_host_dec_session_cnt()
2994 if (ihost->num_sessions == 0) in iscsi_host_dec_session_cnt()
2995 wake_up(&ihost->session_removal_wq); in iscsi_host_dec_session_cnt()
2996 spin_unlock_irqrestore(&ihost->lock, flags); in iscsi_host_dec_session_cnt()
3022 struct iscsi_host *ihost = shost_priv(shost); in iscsi_session_setup() local
3028 spin_lock_irqsave(&ihost->lock, flags); in iscsi_session_setup()
3029 if (ihost->state == ISCSI_HOST_REMOVED) { in iscsi_session_setup()
3030 spin_unlock_irqrestore(&ihost->lock, flags); in iscsi_session_setup()
3033 ihost->num_sessions++; in iscsi_session_setup()
3034 spin_unlock_irqrestore(&ihost->lock, flags); in iscsi_session_setup()
3867 struct iscsi_host *ihost = shost_priv(shost); in iscsi_host_get_param() local
3872 len = sysfs_emit(buf, "%s\n", ihost->netdev); in iscsi_host_get_param()
3875 len = sysfs_emit(buf, "%s\n", ihost->hwaddress); in iscsi_host_get_param()
3878 len = sysfs_emit(buf, "%s\n", ihost->initiatorname); in iscsi_host_get_param()
3891 struct iscsi_host *ihost = shost_priv(shost); in iscsi_host_set_param() local
3895 return iscsi_switch_str_param(&ihost->netdev, buf); in iscsi_host_set_param()
3897 return iscsi_switch_str_param(&ihost->hwaddress, buf); in iscsi_host_set_param()
3899 return iscsi_switch_str_param(&ihost->initiatorname, buf); in iscsi_host_set_param()