Lines Matching refs:hi

668 			     struct atto_ioctl *hi,  in hba_ioctl_tunnel()  argument
677 hi->status = ATTO_STS_OUT_OF_RSRC; in hba_ioctl_tunnel()
690 struct atto_ioctl *hi = (struct atto_ioctl *)rq->aux_req_cx; in scsi_passthru_comp_cb() local
691 struct atto_hba_scsi_pass_thru *spt = &hi->data.scsi_pass_thru; in scsi_passthru_comp_cb()
749 struct atto_ioctl *hi = (struct atto_ioctl *)esas2r_buffered_ioctl; in hba_ioctl_callback() local
751 hi->status = ATTO_STS_SUCCESS; in hba_ioctl_callback()
753 switch (hi->function) { in hba_ioctl_callback()
759 &hi->data.get_adap_info; in hba_ioctl_callback()
761 if (hi->flags & HBAF_TUNNEL) { in hba_ioctl_callback()
762 hi->status = ATTO_STS_UNSUPPORTED; in hba_ioctl_callback()
766 if (hi->version > ATTO_VER_GET_ADAP_INFO0) { in hba_ioctl_callback()
767 hi->status = ATTO_STS_INV_VERSION; in hba_ioctl_callback()
768 hi->version = ATTO_VER_GET_ADAP_INFO0; in hba_ioctl_callback()
871 &hi->data.get_adap_addr; in hba_ioctl_callback()
873 if (hi->flags & HBAF_TUNNEL) { in hba_ioctl_callback()
874 hi->status = ATTO_STS_UNSUPPORTED; in hba_ioctl_callback()
878 if (hi->version > ATTO_VER_GET_ADAP_ADDR0) { in hba_ioctl_callback()
879 hi->status = ATTO_STS_INV_VERSION; in hba_ioctl_callback()
880 hi->version = ATTO_VER_GET_ADAP_ADDR0; in hba_ioctl_callback()
885 hi->status = ATTO_STS_NOT_APPL; in hba_ioctl_callback()
892 hi->status = ATTO_STS_INV_PARAM; in hba_ioctl_callback()
900 if (hi->flags & HBAF_TUNNEL) { in hba_ioctl_callback()
901 if (hba_ioctl_tunnel(a, hi, rq, sgc)) in hba_ioctl_callback()
907 hi->status = ATTO_STS_UNSUPPORTED; in hba_ioctl_callback()
914 struct atto_hba_trace *trc = &hi->data.trace; in hba_ioctl_callback()
916 if (hi->flags & HBAF_TUNNEL) { in hba_ioctl_callback()
917 if (hba_ioctl_tunnel(a, hi, rq, sgc)) in hba_ioctl_callback()
923 if (hi->version > ATTO_VER_TRACE1) { in hba_ioctl_callback()
924 hi->status = ATTO_STS_INV_VERSION; in hba_ioctl_callback()
925 hi->version = ATTO_VER_TRACE1; in hba_ioctl_callback()
930 && hi->version >= ATTO_VER_TRACE1) { in hba_ioctl_callback()
932 u32 len = hi->data_length; in hba_ioctl_callback()
946 hi->status = ATTO_STS_INV_PARAM; in hba_ioctl_callback()
953 hi->data_length = len; in hba_ioctl_callback()
960 hi->status = ATTO_STS_UNSUPPORTED; in hba_ioctl_callback()
973 hi->status = ATTO_STS_UNSUPPORTED; in hba_ioctl_callback()
981 struct atto_hba_scsi_pass_thru *spt = &hi->data.scsi_pass_thru; in hba_ioctl_callback()
986 if (hi->flags & HBAF_TUNNEL) { in hba_ioctl_callback()
987 if (hba_ioctl_tunnel(a, hi, rq, sgc)) in hba_ioctl_callback()
993 if (hi->version > ATTO_VER_SCSI_PASS_THRU0) { in hba_ioctl_callback()
994 hi->status = ATTO_STS_INV_VERSION; in hba_ioctl_callback()
995 hi->version = ATTO_VER_SCSI_PASS_THRU0; in hba_ioctl_callback()
1000 hi->status = ATTO_STS_INV_PARAM; in hba_ioctl_callback()
1006 sgc->length = hi->data_length; in hba_ioctl_callback()
1014 rq->vrq->scsi.length = cpu_to_le32(hi->data_length); in hba_ioctl_callback()
1024 rq->aux_req_cx = hi; in hba_ioctl_callback()
1034 hi->status = ATTO_STS_INV_PARAM; in hba_ioctl_callback()
1047 hi->status = ATTO_STS_OUT_OF_RSRC; in hba_ioctl_callback()
1059 &hi->data.get_dev_addr; in hba_ioctl_callback()
1062 if (hi->flags & HBAF_TUNNEL) { in hba_ioctl_callback()
1063 if (hba_ioctl_tunnel(a, hi, rq, sgc)) in hba_ioctl_callback()
1069 if (hi->version > ATTO_VER_GET_DEV_ADDR0) { in hba_ioctl_callback()
1070 hi->status = ATTO_STS_INV_VERSION; in hba_ioctl_callback()
1071 hi->version = ATTO_VER_GET_DEV_ADDR0; in hba_ioctl_callback()
1076 hi->status = ATTO_STS_INV_PARAM; in hba_ioctl_callback()
1083 hi->status = ATTO_STS_FAILED; in hba_ioctl_callback()
1086 hi->status = ATTO_STS_UNSUPPORTED; in hba_ioctl_callback()
1093 hi->status = ATTO_STS_NOT_APPL; in hba_ioctl_callback()
1095 hi->status = ATTO_STS_INV_PARAM; in hba_ioctl_callback()
1109 if (hba_ioctl_tunnel(a, hi, rq, sgc)) in hba_ioctl_callback()
1117 struct atto_hba_adap_ctrl *ac = &hi->data.adap_ctrl; in hba_ioctl_callback()
1119 if (hi->flags & HBAF_TUNNEL) { in hba_ioctl_callback()
1120 hi->status = ATTO_STS_UNSUPPORTED; in hba_ioctl_callback()
1124 if (hi->version > ATTO_VER_ADAP_CTRL0) { in hba_ioctl_callback()
1125 hi->status = ATTO_STS_INV_VERSION; in hba_ioctl_callback()
1126 hi->version = ATTO_VER_ADAP_CTRL0; in hba_ioctl_callback()
1133 hi->status = ATTO_STS_UNSUPPORTED; in hba_ioctl_callback()
1155 struct atto_hba_get_device_info *gdi = &hi->data.get_dev_info; in hba_ioctl_callback()
1158 if (hi->flags & HBAF_TUNNEL) { in hba_ioctl_callback()
1159 if (hba_ioctl_tunnel(a, hi, rq, sgc)) in hba_ioctl_callback()
1165 if (hi->version > ATTO_VER_GET_DEV_INFO0) { in hba_ioctl_callback()
1166 hi->status = ATTO_STS_INV_VERSION; in hba_ioctl_callback()
1167 hi->version = ATTO_VER_GET_DEV_INFO0; in hba_ioctl_callback()
1172 hi->status = ATTO_STS_INV_PARAM; in hba_ioctl_callback()
1185 hi->status = ATTO_STS_FAILED; in hba_ioctl_callback()
1189 hi->status = ATTO_STS_UNSUPPORTED; in hba_ioctl_callback()
1195 hi->status = ATTO_STS_INV_FUNC; in hba_ioctl_callback()