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,
316 static int qla4xxx_send_ping(struct Scsi_Host *shost, uint32_t iface_num,
320 struct scsi_qla_host *ha = to_qla_host(shost);
769 static int qla4xxx_get_chap_list(struct Scsi_Host *shost, uint16_t chap_tbl_idx,
772 struct scsi_qla_host *ha = to_qla_host(shost);
858 static int qla4xxx_is_chap_active(struct Scsi_Host *shost,
863 ret = device_for_each_child(&shost->shost_gendev, &chap_tbl_idx,
869 static int qla4xxx_delete_chap(struct Scsi_Host *shost, uint16_t chap_tbl_idx)
871 struct scsi_qla_host *ha = to_qla_host(shost);
896 ret = qla4xxx_is_chap_active(shost, chap_tbl_idx);
954 * @shost: pointer to host
960 static int qla4xxx_set_chap_entry(struct Scsi_Host *shost, void *data, int len)
962 struct scsi_qla_host *ha = to_qla_host(shost);
1036 rc = qla4xxx_is_chap_active(shost,
1066 static int qla4xxx_get_host_stats(struct Scsi_Host *shost, char *buf, int len)
1068 struct scsi_qla_host *ha = to_qla_host(shost);
1274 struct Scsi_Host *shost = iscsi_iface_to_shost(iface);
1275 struct scsi_qla_host *ha = to_qla_host(shost);
1713 qla4xxx_ep_connect(struct Scsi_Host *shost, struct sockaddr *dst_addr,
1723 if (!shost) {
1725 pr_err("%s: shost is NULL\n", __func__);
1729 ha = iscsi_host_priv(shost);
1754 qla_ep->host = shost;
1900 static void qla4xxx_set_port_speed(struct Scsi_Host *shost)
1902 struct scsi_qla_host *ha = to_qla_host(shost);
1903 struct iscsi_cls_host *ihost = shost->shost_data;
1925 static void qla4xxx_set_port_state(struct Scsi_Host *shost)
1927 struct scsi_qla_host *ha = to_qla_host(shost);
1928 struct iscsi_cls_host *ihost = shost->shost_data;
1937 static int qla4xxx_host_get_param(struct Scsi_Host *shost,
1940 struct scsi_qla_host *ha = to_qla_host(shost);
1954 qla4xxx_set_port_state(shost);
1955 len = sprintf(buf, "%s\n", iscsi_get_port_state_name(shost));
1958 qla4xxx_set_port_speed(shost);
1959 len = sprintf(buf, "%s\n", iscsi_get_port_speed_name(shost));
2732 qla4xxx_iface_set_param(struct Scsi_Host *shost, void *data, uint32_t len)
2734 struct scsi_qla_host *ha = to_qla_host(shost);
7292 * @shost: pointer to host
7299 static int qla4xxx_sysfs_ddb_add(struct Scsi_Host *shost, const char *buf,
7302 struct scsi_qla_host *ha = to_qla_host(shost);
7380 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess);
7381 struct scsi_qla_host *ha = to_qla_host(shost);
7570 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess);
7571 struct scsi_qla_host *ha = to_qla_host(shost);
7754 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess);
7755 struct scsi_qla_host *ha = to_qla_host(shost);
7866 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess);
7867 struct scsi_qla_host *ha = to_qla_host(shost);
8121 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess);
8122 struct scsi_qla_host *ha = to_qla_host(shost);
8352 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess);
8353 struct scsi_qla_host *ha = to_qla_host(shost);
9421 * @shost: Pointer to SCSI Host struct
9426 static int qla4xxx_is_eh_active(struct Scsi_Host *shost)
9428 if (shost->shost_state == SHOST_RECOVERY)
9553 static int qla4xxx_host_reset(struct Scsi_Host *shost, int reset_type)
9555 struct scsi_qla_host *ha = to_qla_host(shost);