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,
265 static int qla4xxx_send_ping(struct Scsi_Host *shost, uint32_t iface_num, in qla4xxx_send_ping() argument
269 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_send_ping()
718 static int qla4xxx_get_chap_list(struct Scsi_Host *shost, uint16_t chap_tbl_idx, in qla4xxx_get_chap_list() argument
721 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_get_chap_list()
807 static int qla4xxx_is_chap_active(struct Scsi_Host *shost, in qla4xxx_is_chap_active() argument
812 ret = device_for_each_child(&shost->shost_gendev, &chap_tbl_idx, in qla4xxx_is_chap_active()
818 static int qla4xxx_delete_chap(struct Scsi_Host *shost, uint16_t chap_tbl_idx) in qla4xxx_delete_chap() argument
820 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_delete_chap()
847 ret = qla4xxx_is_chap_active(shost, chap_tbl_idx); in qla4xxx_delete_chap()
911 static int qla4xxx_set_chap_entry(struct Scsi_Host *shost, void *data, int len) in qla4xxx_set_chap_entry() argument
913 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_set_chap_entry()
982 rc = qla4xxx_is_chap_active(shost, in qla4xxx_set_chap_entry()
1012 static int qla4xxx_get_host_stats(struct Scsi_Host *shost, char *buf, int len) in qla4xxx_get_host_stats() argument
1014 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_get_host_stats()
1220 struct Scsi_Host *shost = iscsi_iface_to_shost(iface); in qla4xxx_get_iface_param() local
1221 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_get_iface_param()
1659 qla4xxx_ep_connect(struct Scsi_Host *shost, struct sockaddr *dst_addr, in qla4xxx_ep_connect() argument
1669 if (!shost) { in qla4xxx_ep_connect()
1675 ha = iscsi_host_priv(shost); in qla4xxx_ep_connect()
1700 qla_ep->host = shost; in qla4xxx_ep_connect()
1848 static void qla4xxx_set_port_speed(struct Scsi_Host *shost) in qla4xxx_set_port_speed() argument
1850 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_set_port_speed()
1851 struct iscsi_cls_host *ihost = shost->shost_data; in qla4xxx_set_port_speed()
1873 static void qla4xxx_set_port_state(struct Scsi_Host *shost) in qla4xxx_set_port_state() argument
1875 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_set_port_state()
1876 struct iscsi_cls_host *ihost = shost->shost_data; in qla4xxx_set_port_state()
1885 static int qla4xxx_host_get_param(struct Scsi_Host *shost, in qla4xxx_host_get_param() argument
1888 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_host_get_param()
1902 qla4xxx_set_port_state(shost); in qla4xxx_host_get_param()
1903 len = sprintf(buf, "%s\n", iscsi_get_port_state_name(shost)); in qla4xxx_host_get_param()
1906 qla4xxx_set_port_speed(shost); in qla4xxx_host_get_param()
1907 len = sprintf(buf, "%s\n", iscsi_get_port_speed_name(shost)); in qla4xxx_host_get_param()
2680 qla4xxx_iface_set_param(struct Scsi_Host *shost, void *data, uint32_t len) in qla4xxx_iface_set_param() argument
2682 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_iface_set_param()
7255 static int qla4xxx_sysfs_ddb_add(struct Scsi_Host *shost, const char *buf, in qla4xxx_sysfs_ddb_add() argument
7258 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_sysfs_ddb_add()
7336 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess); in qla4xxx_sysfs_ddb_apply() local
7337 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_sysfs_ddb_apply()
7526 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess); in qla4xxx_sysfs_ddb_login() local
7527 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_sysfs_ddb_login()
7710 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess); in qla4xxx_sysfs_ddb_logout() local
7711 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_sysfs_ddb_logout()
7822 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess); in qla4xxx_sysfs_ddb_get_param() local
7823 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_sysfs_ddb_get_param()
8080 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess); in qla4xxx_sysfs_ddb_set_param() local
8081 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_sysfs_ddb_set_param()
8306 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess); in qla4xxx_sysfs_ddb_delete() local
8307 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_sysfs_ddb_delete()
9369 static int qla4xxx_is_eh_active(struct Scsi_Host *shost) in qla4xxx_is_eh_active() argument
9371 if (shost->shost_state == SHOST_RECOVERY) in qla4xxx_is_eh_active()
9489 static int qla4xxx_host_reset(struct Scsi_Host *shost, int reset_type) in qla4xxx_host_reset() argument
9491 struct scsi_qla_host *ha = to_qla_host(shost); in qla4xxx_host_reset()