Lines Matching defs:shost

112 static int qla4xxx_host_get_param(struct Scsi_Host *shost,
114 static int qla4xxx_iface_set_param(struct Scsi_Host *shost, void *data,
120 static struct iscsi_endpoint *qla4xxx_ep_connect(struct Scsi_Host *shost,
145 static int qla4xxx_send_ping(struct Scsi_Host *shost, uint32_t iface_num,
148 static int qla4xxx_get_chap_list(struct Scsi_Host *shost, uint16_t chap_tbl_idx,
150 static int qla4xxx_delete_chap(struct Scsi_Host *shost, uint16_t chap_tbl_idx);
151 static int qla4xxx_set_chap_entry(struct Scsi_Host *shost, void *data,
153 static int qla4xxx_get_host_stats(struct Scsi_Host *shost, char *buf, int len);
165 static int qla4xxx_host_reset(struct Scsi_Host *shost, int reset_type);
177 static int qla4xxx_sysfs_ddb_add(struct Scsi_Host *shost, const char *buf,
317 static int qla4xxx_send_ping(struct Scsi_Host *shost, uint32_t iface_num,
321 struct scsi_qla_host *ha = to_qla_host(shost);
766 static int qla4xxx_get_chap_list(struct Scsi_Host *shost, uint16_t chap_tbl_idx,
769 struct scsi_qla_host *ha = to_qla_host(shost);
853 static int qla4xxx_is_chap_active(struct Scsi_Host *shost,
858 ret = device_for_each_child(&shost->shost_gendev, &chap_tbl_idx,
864 static int qla4xxx_delete_chap(struct Scsi_Host *shost, uint16_t chap_tbl_idx)
866 struct scsi_qla_host *ha = to_qla_host(shost);
891 ret = qla4xxx_is_chap_active(shost, chap_tbl_idx);
949 * @shost: pointer to host
955 static int qla4xxx_set_chap_entry(struct Scsi_Host *shost, void *data, int len)
957 struct scsi_qla_host *ha = to_qla_host(shost);
1031 rc = qla4xxx_is_chap_active(shost,
1061 static int qla4xxx_get_host_stats(struct Scsi_Host *shost, char *buf, int len)
1063 struct scsi_qla_host *ha = to_qla_host(shost);
1269 struct Scsi_Host *shost = iscsi_iface_to_shost(iface);
1270 struct scsi_qla_host *ha = to_qla_host(shost);
1708 qla4xxx_ep_connect(struct Scsi_Host *shost, struct sockaddr *dst_addr,
1718 if (!shost) {
1720 pr_err("%s: shost is NULL\n", __func__);
1724 ha = iscsi_host_priv(shost);
1749 qla_ep->host = shost;
1895 static void qla4xxx_set_port_speed(struct Scsi_Host *shost)
1897 struct scsi_qla_host *ha = to_qla_host(shost);
1898 struct iscsi_cls_host *ihost = shost->shost_data;
1920 static void qla4xxx_set_port_state(struct Scsi_Host *shost)
1922 struct scsi_qla_host *ha = to_qla_host(shost);
1923 struct iscsi_cls_host *ihost = shost->shost_data;
1932 static int qla4xxx_host_get_param(struct Scsi_Host *shost,
1935 struct scsi_qla_host *ha = to_qla_host(shost);
1949 qla4xxx_set_port_state(shost);
1950 len = sprintf(buf, "%s\n", iscsi_get_port_state_name(shost));
1953 qla4xxx_set_port_speed(shost);
1954 len = sprintf(buf, "%s\n", iscsi_get_port_speed_name(shost));
2727 qla4xxx_iface_set_param(struct Scsi_Host *shost, void *data, uint32_t len)
2729 struct scsi_qla_host *ha = to_qla_host(shost);
7279 * @shost: pointer to host
7286 static int qla4xxx_sysfs_ddb_add(struct Scsi_Host *shost, const char *buf,
7289 struct scsi_qla_host *ha = to_qla_host(shost);
7367 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess);
7368 struct scsi_qla_host *ha = to_qla_host(shost);
7557 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess);
7558 struct scsi_qla_host *ha = to_qla_host(shost);
7741 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess);
7742 struct scsi_qla_host *ha = to_qla_host(shost);
7851 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess);
7852 struct scsi_qla_host *ha = to_qla_host(shost);
8106 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess);
8107 struct scsi_qla_host *ha = to_qla_host(shost);
8337 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess);
8338 struct scsi_qla_host *ha = to_qla_host(shost);
9402 * @shost: Pointer to SCSI Host struct
9407 static int qla4xxx_is_eh_active(struct Scsi_Host *shost)
9409 if (shost->shost_state == SHOST_RECOVERY)
9534 static int qla4xxx_host_reset(struct Scsi_Host *shost, int reset_type)
9536 struct scsi_qla_host *ha = to_qla_host(shost);