Lines Matching refs:shost

113 static int qla4xxx_host_get_param(struct Scsi_Host *shost,
115 static int qla4xxx_iface_set_param(struct Scsi_Host *shost, void *data,
121 static struct iscsi_endpoint *qla4xxx_ep_connect(struct Scsi_Host *shost,
146 static int qla4xxx_send_ping(struct Scsi_Host *shost, uint32_t iface_num,
149 static int qla4xxx_get_chap_list(struct Scsi_Host *shost, uint16_t chap_tbl_idx,
151 static int qla4xxx_delete_chap(struct Scsi_Host *shost, uint16_t chap_tbl_idx);
152 static int qla4xxx_set_chap_entry(struct Scsi_Host *shost, void *data,
154 static int qla4xxx_get_host_stats(struct Scsi_Host *shost, char *buf, int len);
166 static int qla4xxx_host_reset(struct Scsi_Host *shost, int reset_type);
178 static int qla4xxx_sysfs_ddb_add(struct Scsi_Host *shost, const char *buf,
266 static int qla4xxx_send_ping(struct Scsi_Host *shost, uint32_t iface_num, in qla4xxx_send_ping() argument
270 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_send_ping()
719 static int qla4xxx_get_chap_list(struct Scsi_Host *shost, uint16_t chap_tbl_idx, in qla4xxx_get_chap_list() argument
722 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_get_chap_list()
808 static int qla4xxx_is_chap_active(struct Scsi_Host *shost, in qla4xxx_is_chap_active() argument
813 ret = device_for_each_child(&shost->shost_gendev, &chap_tbl_idx, in qla4xxx_is_chap_active()
819 static int qla4xxx_delete_chap(struct Scsi_Host *shost, uint16_t chap_tbl_idx) in qla4xxx_delete_chap() argument
821 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_delete_chap()
848 ret = qla4xxx_is_chap_active(shost, chap_tbl_idx); in qla4xxx_delete_chap()
912 static int qla4xxx_set_chap_entry(struct Scsi_Host *shost, void *data, int len) in qla4xxx_set_chap_entry() argument
914 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_set_chap_entry()
983 rc = qla4xxx_is_chap_active(shost, in qla4xxx_set_chap_entry()
1013 static int qla4xxx_get_host_stats(struct Scsi_Host *shost, char *buf, int len) in qla4xxx_get_host_stats() argument
1015 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_get_host_stats()
1221 struct Scsi_Host *shost = iscsi_iface_to_shost(iface); in qla4xxx_get_iface_param() local
1222 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_get_iface_param()
1660 qla4xxx_ep_connect(struct Scsi_Host *shost, struct sockaddr *dst_addr, in qla4xxx_ep_connect() argument
1670 if (!shost) { in qla4xxx_ep_connect()
1676 ha = iscsi_host_priv(shost); in qla4xxx_ep_connect()
1701 qla_ep->host = shost; in qla4xxx_ep_connect()
1849 static void qla4xxx_set_port_speed(struct Scsi_Host *shost) in qla4xxx_set_port_speed() argument
1851 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_set_port_speed()
1852 struct iscsi_cls_host *ihost = shost->shost_data; in qla4xxx_set_port_speed()
1874 static void qla4xxx_set_port_state(struct Scsi_Host *shost) in qla4xxx_set_port_state() argument
1876 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_set_port_state()
1877 struct iscsi_cls_host *ihost = shost->shost_data; in qla4xxx_set_port_state()
1886 static int qla4xxx_host_get_param(struct Scsi_Host *shost, in qla4xxx_host_get_param() argument
1889 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_host_get_param()
1903 qla4xxx_set_port_state(shost); in qla4xxx_host_get_param()
1904 len = sprintf(buf, "%s\n", iscsi_get_port_state_name(shost)); in qla4xxx_host_get_param()
1907 qla4xxx_set_port_speed(shost); in qla4xxx_host_get_param()
1908 len = sprintf(buf, "%s\n", iscsi_get_port_speed_name(shost)); in qla4xxx_host_get_param()
2681 qla4xxx_iface_set_param(struct Scsi_Host *shost, void *data, uint32_t len) in qla4xxx_iface_set_param() argument
2683 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_iface_set_param()
7256 static int qla4xxx_sysfs_ddb_add(struct Scsi_Host *shost, const char *buf, in qla4xxx_sysfs_ddb_add() argument
7259 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_sysfs_ddb_add()
7337 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess); in qla4xxx_sysfs_ddb_apply() local
7338 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_sysfs_ddb_apply()
7527 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess); in qla4xxx_sysfs_ddb_login() local
7528 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_sysfs_ddb_login()
7711 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess); in qla4xxx_sysfs_ddb_logout() local
7712 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_sysfs_ddb_logout()
7823 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess); in qla4xxx_sysfs_ddb_get_param() local
7824 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_sysfs_ddb_get_param()
8081 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess); in qla4xxx_sysfs_ddb_set_param() local
8082 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_sysfs_ddb_set_param()
8307 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess); in qla4xxx_sysfs_ddb_delete() local
8308 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_sysfs_ddb_delete()
9377 static int qla4xxx_is_eh_active(struct Scsi_Host *shost) in qla4xxx_is_eh_active() argument
9379 if (shost->shost_state == SHOST_RECOVERY) in qla4xxx_is_eh_active()
9497 static int qla4xxx_host_reset(struct Scsi_Host *shost, int reset_type) in qla4xxx_host_reset() argument
9499 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_host_reset()