Lines Matching full:hi

670 			     struct atto_ioctl *hi,  in hba_ioctl_tunnel()  argument
679 hi->status = ATTO_STS_OUT_OF_RSRC; in hba_ioctl_tunnel()
692 struct atto_ioctl *hi = (struct atto_ioctl *)rq->aux_req_cx; in scsi_passthru_comp_cb() local
693 struct atto_hba_scsi_pass_thru *spt = &hi->data.scsi_pass_thru; in scsi_passthru_comp_cb()
751 struct atto_ioctl *hi = (struct atto_ioctl *)esas2r_buffered_ioctl; in hba_ioctl_callback() local
753 hi->status = ATTO_STS_SUCCESS; in hba_ioctl_callback()
755 switch (hi->function) { in hba_ioctl_callback()
761 &hi->data.get_adap_info; in hba_ioctl_callback()
763 if (hi->flags & HBAF_TUNNEL) { in hba_ioctl_callback()
764 hi->status = ATTO_STS_UNSUPPORTED; in hba_ioctl_callback()
768 if (hi->version > ATTO_VER_GET_ADAP_INFO0) { in hba_ioctl_callback()
769 hi->status = ATTO_STS_INV_VERSION; in hba_ioctl_callback()
770 hi->version = ATTO_VER_GET_ADAP_INFO0; in hba_ioctl_callback()
867 &hi->data.get_adap_addr; in hba_ioctl_callback()
869 if (hi->flags & HBAF_TUNNEL) { in hba_ioctl_callback()
870 hi->status = ATTO_STS_UNSUPPORTED; in hba_ioctl_callback()
874 if (hi->version > ATTO_VER_GET_ADAP_ADDR0) { in hba_ioctl_callback()
875 hi->status = ATTO_STS_INV_VERSION; in hba_ioctl_callback()
876 hi->version = ATTO_VER_GET_ADAP_ADDR0; in hba_ioctl_callback()
881 hi->status = ATTO_STS_NOT_APPL; in hba_ioctl_callback()
888 hi->status = ATTO_STS_INV_PARAM; in hba_ioctl_callback()
896 if (hi->flags & HBAF_TUNNEL) { in hba_ioctl_callback()
897 if (hba_ioctl_tunnel(a, hi, rq, sgc)) in hba_ioctl_callback()
903 hi->status = ATTO_STS_UNSUPPORTED; in hba_ioctl_callback()
910 struct atto_hba_trace *trc = &hi->data.trace; in hba_ioctl_callback()
912 if (hi->flags & HBAF_TUNNEL) { in hba_ioctl_callback()
913 if (hba_ioctl_tunnel(a, hi, rq, sgc)) in hba_ioctl_callback()
919 if (hi->version > ATTO_VER_TRACE1) { in hba_ioctl_callback()
920 hi->status = ATTO_STS_INV_VERSION; in hba_ioctl_callback()
921 hi->version = ATTO_VER_TRACE1; in hba_ioctl_callback()
926 && hi->version >= ATTO_VER_TRACE1) { in hba_ioctl_callback()
928 u32 len = hi->data_length; in hba_ioctl_callback()
942 hi->status = ATTO_STS_INV_PARAM; in hba_ioctl_callback()
949 hi->data_length = len; in hba_ioctl_callback()
956 hi->status = ATTO_STS_UNSUPPORTED; in hba_ioctl_callback()
969 hi->status = ATTO_STS_UNSUPPORTED; in hba_ioctl_callback()
977 struct atto_hba_scsi_pass_thru *spt = &hi->data.scsi_pass_thru; in hba_ioctl_callback()
982 if (hi->flags & HBAF_TUNNEL) { in hba_ioctl_callback()
983 if (hba_ioctl_tunnel(a, hi, rq, sgc)) in hba_ioctl_callback()
989 if (hi->version > ATTO_VER_SCSI_PASS_THRU0) { in hba_ioctl_callback()
990 hi->status = ATTO_STS_INV_VERSION; in hba_ioctl_callback()
991 hi->version = ATTO_VER_SCSI_PASS_THRU0; in hba_ioctl_callback()
996 hi->status = ATTO_STS_INV_PARAM; in hba_ioctl_callback()
1002 sgc->length = hi->data_length; in hba_ioctl_callback()
1010 rq->vrq->scsi.length = cpu_to_le32(hi->data_length); in hba_ioctl_callback()
1020 rq->aux_req_cx = hi; in hba_ioctl_callback()
1030 hi->status = ATTO_STS_INV_PARAM; in hba_ioctl_callback()
1043 hi->status = ATTO_STS_OUT_OF_RSRC; in hba_ioctl_callback()
1055 &hi->data.get_dev_addr; in hba_ioctl_callback()
1058 if (hi->flags & HBAF_TUNNEL) { in hba_ioctl_callback()
1059 if (hba_ioctl_tunnel(a, hi, rq, sgc)) in hba_ioctl_callback()
1065 if (hi->version > ATTO_VER_GET_DEV_ADDR0) { in hba_ioctl_callback()
1066 hi->status = ATTO_STS_INV_VERSION; in hba_ioctl_callback()
1067 hi->version = ATTO_VER_GET_DEV_ADDR0; in hba_ioctl_callback()
1072 hi->status = ATTO_STS_INV_PARAM; in hba_ioctl_callback()
1079 hi->status = ATTO_STS_FAILED; in hba_ioctl_callback()
1082 hi->status = ATTO_STS_UNSUPPORTED; in hba_ioctl_callback()
1089 hi->status = ATTO_STS_NOT_APPL; in hba_ioctl_callback()
1091 hi->status = ATTO_STS_INV_PARAM; in hba_ioctl_callback()
1105 if (hba_ioctl_tunnel(a, hi, rq, sgc)) in hba_ioctl_callback()
1113 struct atto_hba_adap_ctrl *ac = &hi->data.adap_ctrl; in hba_ioctl_callback()
1115 if (hi->flags & HBAF_TUNNEL) { in hba_ioctl_callback()
1116 hi->status = ATTO_STS_UNSUPPORTED; in hba_ioctl_callback()
1120 if (hi->version > ATTO_VER_ADAP_CTRL0) { in hba_ioctl_callback()
1121 hi->status = ATTO_STS_INV_VERSION; in hba_ioctl_callback()
1122 hi->version = ATTO_VER_ADAP_CTRL0; in hba_ioctl_callback()
1129 hi->status = ATTO_STS_UNSUPPORTED; in hba_ioctl_callback()
1151 struct atto_hba_get_device_info *gdi = &hi->data.get_dev_info; in hba_ioctl_callback()
1154 if (hi->flags & HBAF_TUNNEL) { in hba_ioctl_callback()
1155 if (hba_ioctl_tunnel(a, hi, rq, sgc)) in hba_ioctl_callback()
1161 if (hi->version > ATTO_VER_GET_DEV_INFO0) { in hba_ioctl_callback()
1162 hi->status = ATTO_STS_INV_VERSION; in hba_ioctl_callback()
1163 hi->version = ATTO_VER_GET_DEV_INFO0; in hba_ioctl_callback()
1168 hi->status = ATTO_STS_INV_PARAM; in hba_ioctl_callback()
1181 hi->status = ATTO_STS_FAILED; in hba_ioctl_callback()
1185 hi->status = ATTO_STS_UNSUPPORTED; in hba_ioctl_callback()
1191 hi->status = ATTO_STS_INV_FUNC; in hba_ioctl_callback()