Lines Matching refs:chp

854 static inline int dasd_path_is_operational(struct dasd_device *device, int chp)  in dasd_path_is_operational()  argument
856 return test_bit(DASD_PATH_OPERATIONAL, &device->path[chp].flags); in dasd_path_is_operational()
859 static inline int dasd_path_need_verify(struct dasd_device *device, int chp) in dasd_path_need_verify() argument
861 return test_bit(DASD_PATH_TBV, &device->path[chp].flags); in dasd_path_need_verify()
864 static inline void dasd_path_verify(struct dasd_device *device, int chp) in dasd_path_verify() argument
866 __set_bit(DASD_PATH_TBV, &device->path[chp].flags); in dasd_path_verify()
869 static inline void dasd_path_clear_verify(struct dasd_device *device, int chp) in dasd_path_clear_verify() argument
871 __clear_bit(DASD_PATH_TBV, &device->path[chp].flags); in dasd_path_clear_verify()
876 int chp; in dasd_path_clear_all_verify() local
878 for (chp = 0; chp < 8; chp++) in dasd_path_clear_all_verify()
879 dasd_path_clear_verify(device, chp); in dasd_path_clear_all_verify()
882 static inline void dasd_path_operational(struct dasd_device *device, int chp) in dasd_path_operational() argument
884 __set_bit(DASD_PATH_OPERATIONAL, &device->path[chp].flags); in dasd_path_operational()
885 device->opm |= (0x80 >> chp); in dasd_path_operational()
888 static inline void dasd_path_nonpreferred(struct dasd_device *device, int chp) in dasd_path_nonpreferred() argument
890 __set_bit(DASD_PATH_NPP, &device->path[chp].flags); in dasd_path_nonpreferred()
893 static inline int dasd_path_is_nonpreferred(struct dasd_device *device, int chp) in dasd_path_is_nonpreferred() argument
895 return test_bit(DASD_PATH_NPP, &device->path[chp].flags); in dasd_path_is_nonpreferred()
899 int chp) in dasd_path_clear_nonpreferred() argument
901 __clear_bit(DASD_PATH_NPP, &device->path[chp].flags); in dasd_path_clear_nonpreferred()
904 static inline void dasd_path_preferred(struct dasd_device *device, int chp) in dasd_path_preferred() argument
906 __set_bit(DASD_PATH_PP, &device->path[chp].flags); in dasd_path_preferred()
909 static inline int dasd_path_is_preferred(struct dasd_device *device, int chp) in dasd_path_is_preferred() argument
911 return test_bit(DASD_PATH_PP, &device->path[chp].flags); in dasd_path_is_preferred()
915 int chp) in dasd_path_clear_preferred() argument
917 __clear_bit(DASD_PATH_PP, &device->path[chp].flags); in dasd_path_clear_preferred()
920 static inline void dasd_path_clear_oper(struct dasd_device *device, int chp) in dasd_path_clear_oper() argument
922 __clear_bit(DASD_PATH_OPERATIONAL, &device->path[chp].flags); in dasd_path_clear_oper()
923 device->opm &= ~(0x80 >> chp); in dasd_path_clear_oper()
926 static inline void dasd_path_clear_cable(struct dasd_device *device, int chp) in dasd_path_clear_cable() argument
928 __clear_bit(DASD_PATH_MISCABLED, &device->path[chp].flags); in dasd_path_clear_cable()
931 static inline void dasd_path_cuir(struct dasd_device *device, int chp) in dasd_path_cuir() argument
933 __set_bit(DASD_PATH_CUIR, &device->path[chp].flags); in dasd_path_cuir()
936 static inline int dasd_path_is_cuir(struct dasd_device *device, int chp) in dasd_path_is_cuir() argument
938 return test_bit(DASD_PATH_CUIR, &device->path[chp].flags); in dasd_path_is_cuir()
941 static inline void dasd_path_clear_cuir(struct dasd_device *device, int chp) in dasd_path_clear_cuir() argument
943 __clear_bit(DASD_PATH_CUIR, &device->path[chp].flags); in dasd_path_clear_cuir()
946 static inline void dasd_path_ifcc(struct dasd_device *device, int chp) in dasd_path_ifcc() argument
948 set_bit(DASD_PATH_IFCC, &device->path[chp].flags); in dasd_path_ifcc()
951 static inline int dasd_path_is_ifcc(struct dasd_device *device, int chp) in dasd_path_is_ifcc() argument
953 return test_bit(DASD_PATH_IFCC, &device->path[chp].flags); in dasd_path_is_ifcc()
956 static inline void dasd_path_clear_ifcc(struct dasd_device *device, int chp) in dasd_path_clear_ifcc() argument
958 clear_bit(DASD_PATH_IFCC, &device->path[chp].flags); in dasd_path_clear_ifcc()
961 static inline void dasd_path_clear_nohpf(struct dasd_device *device, int chp) in dasd_path_clear_nohpf() argument
963 __clear_bit(DASD_PATH_NOHPF, &device->path[chp].flags); in dasd_path_clear_nohpf()
966 static inline void dasd_path_miscabled(struct dasd_device *device, int chp) in dasd_path_miscabled() argument
968 __set_bit(DASD_PATH_MISCABLED, &device->path[chp].flags); in dasd_path_miscabled()
971 static inline int dasd_path_is_miscabled(struct dasd_device *device, int chp) in dasd_path_is_miscabled() argument
973 return test_bit(DASD_PATH_MISCABLED, &device->path[chp].flags); in dasd_path_is_miscabled()
976 static inline void dasd_path_nohpf(struct dasd_device *device, int chp) in dasd_path_nohpf() argument
978 __set_bit(DASD_PATH_NOHPF, &device->path[chp].flags); in dasd_path_nohpf()
981 static inline int dasd_path_is_nohpf(struct dasd_device *device, int chp) in dasd_path_is_nohpf() argument
983 return test_bit(DASD_PATH_NOHPF, &device->path[chp].flags); in dasd_path_is_nohpf()
998 int chp; in dasd_path_get_tbvpm() local
1001 for (chp = 0; chp < 8; chp++) in dasd_path_get_tbvpm()
1002 if (dasd_path_need_verify(device, chp)) in dasd_path_get_tbvpm()
1003 tbvpm |= 0x80 >> chp; in dasd_path_get_tbvpm()
1009 int chp; in dasd_path_get_nppm() local
1012 for (chp = 0; chp < 8; chp++) { in dasd_path_get_nppm()
1013 if (dasd_path_is_nonpreferred(device, chp)) in dasd_path_get_nppm()
1014 npm |= 0x80 >> chp; in dasd_path_get_nppm()
1021 int chp; in dasd_path_get_ppm() local
1024 for (chp = 0; chp < 8; chp++) in dasd_path_get_ppm()
1025 if (dasd_path_is_preferred(device, chp)) in dasd_path_get_ppm()
1026 ppm |= 0x80 >> chp; in dasd_path_get_ppm()
1032 int chp; in dasd_path_get_cablepm() local
1035 for (chp = 0; chp < 8; chp++) in dasd_path_get_cablepm()
1036 if (dasd_path_is_miscabled(device, chp)) in dasd_path_get_cablepm()
1037 cablepm |= 0x80 >> chp; in dasd_path_get_cablepm()
1043 int chp; in dasd_path_get_cuirpm() local
1046 for (chp = 0; chp < 8; chp++) in dasd_path_get_cuirpm()
1047 if (dasd_path_is_cuir(device, chp)) in dasd_path_get_cuirpm()
1048 cuirpm |= 0x80 >> chp; in dasd_path_get_cuirpm()
1054 int chp; in dasd_path_get_ifccpm() local
1057 for (chp = 0; chp < 8; chp++) in dasd_path_get_ifccpm()
1058 if (dasd_path_is_ifcc(device, chp)) in dasd_path_get_ifccpm()
1059 ifccpm |= 0x80 >> chp; in dasd_path_get_ifccpm()
1065 int chp; in dasd_path_get_hpfpm() local
1068 for (chp = 0; chp < 8; chp++) in dasd_path_get_hpfpm()
1069 if (dasd_path_is_nohpf(device, chp)) in dasd_path_get_hpfpm()
1070 hpfpm |= 0x80 >> chp; in dasd_path_get_hpfpm()
1080 int chp; in dasd_path_add_tbvpm() local
1082 for (chp = 0; chp < 8; chp++) in dasd_path_add_tbvpm()
1083 if (pm & (0x80 >> chp)) in dasd_path_add_tbvpm()
1084 dasd_path_verify(device, chp); in dasd_path_add_tbvpm()
1089 int chp; in dasd_path_get_notoperpm() local
1092 for (chp = 0; chp < 8; chp++) in dasd_path_get_notoperpm()
1093 if (dasd_path_is_nohpf(device, chp) || in dasd_path_get_notoperpm()
1094 dasd_path_is_ifcc(device, chp) || in dasd_path_get_notoperpm()
1095 dasd_path_is_cuir(device, chp) || in dasd_path_get_notoperpm()
1096 dasd_path_is_miscabled(device, chp)) in dasd_path_get_notoperpm()
1097 nopm |= 0x80 >> chp; in dasd_path_get_notoperpm()
1103 int chp; in dasd_path_add_opm() local
1105 for (chp = 0; chp < 8; chp++) in dasd_path_add_opm()
1106 if (pm & (0x80 >> chp)) { in dasd_path_add_opm()
1107 dasd_path_operational(device, chp); in dasd_path_add_opm()
1112 dasd_path_clear_nohpf(device, chp); in dasd_path_add_opm()
1113 dasd_path_clear_cuir(device, chp); in dasd_path_add_opm()
1114 dasd_path_clear_cable(device, chp); in dasd_path_add_opm()
1115 dasd_path_clear_ifcc(device, chp); in dasd_path_add_opm()
1121 int chp; in dasd_path_add_cablepm() local
1123 for (chp = 0; chp < 8; chp++) in dasd_path_add_cablepm()
1124 if (pm & (0x80 >> chp)) in dasd_path_add_cablepm()
1125 dasd_path_miscabled(device, chp); in dasd_path_add_cablepm()
1130 int chp; in dasd_path_add_cuirpm() local
1132 for (chp = 0; chp < 8; chp++) in dasd_path_add_cuirpm()
1133 if (pm & (0x80 >> chp)) in dasd_path_add_cuirpm()
1134 dasd_path_cuir(device, chp); in dasd_path_add_cuirpm()
1139 int chp; in dasd_path_add_ifccpm() local
1141 for (chp = 0; chp < 8; chp++) in dasd_path_add_ifccpm()
1142 if (pm & (0x80 >> chp)) in dasd_path_add_ifccpm()
1143 dasd_path_ifcc(device, chp); in dasd_path_add_ifccpm()
1148 int chp; in dasd_path_add_nppm() local
1150 for (chp = 0; chp < 8; chp++) in dasd_path_add_nppm()
1151 if (pm & (0x80 >> chp)) in dasd_path_add_nppm()
1152 dasd_path_nonpreferred(device, chp); in dasd_path_add_nppm()
1157 int chp; in dasd_path_add_nohpfpm() local
1159 for (chp = 0; chp < 8; chp++) in dasd_path_add_nohpfpm()
1160 if (pm & (0x80 >> chp)) in dasd_path_add_nohpfpm()
1161 dasd_path_nohpf(device, chp); in dasd_path_add_nohpfpm()
1166 int chp; in dasd_path_add_ppm() local
1168 for (chp = 0; chp < 8; chp++) in dasd_path_add_ppm()
1169 if (pm & (0x80 >> chp)) in dasd_path_add_ppm()
1170 dasd_path_preferred(device, chp); in dasd_path_add_ppm()
1179 int chp; in dasd_path_set_tbvpm() local
1181 for (chp = 0; chp < 8; chp++) in dasd_path_set_tbvpm()
1182 if (pm & (0x80 >> chp)) in dasd_path_set_tbvpm()
1183 dasd_path_verify(device, chp); in dasd_path_set_tbvpm()
1185 dasd_path_clear_verify(device, chp); in dasd_path_set_tbvpm()
1190 int chp; in dasd_path_set_opm() local
1192 for (chp = 0; chp < 8; chp++) { in dasd_path_set_opm()
1193 dasd_path_clear_oper(device, chp); in dasd_path_set_opm()
1194 if (pm & (0x80 >> chp)) { in dasd_path_set_opm()
1195 dasd_path_operational(device, chp); in dasd_path_set_opm()
1200 dasd_path_clear_nohpf(device, chp); in dasd_path_set_opm()
1201 dasd_path_clear_cuir(device, chp); in dasd_path_set_opm()
1202 dasd_path_clear_cable(device, chp); in dasd_path_set_opm()
1203 dasd_path_clear_ifcc(device, chp); in dasd_path_set_opm()
1214 int chp; in dasd_path_remove_opm() local
1216 for (chp = 0; chp < 8; chp++) { in dasd_path_remove_opm()
1217 if (pm & (0x80 >> chp)) in dasd_path_remove_opm()
1218 dasd_path_clear_oper(device, chp); in dasd_path_remove_opm()
1226 static inline void dasd_path_available(struct dasd_device *device, int chp) in dasd_path_available() argument
1228 dasd_path_clear_oper(device, chp); in dasd_path_available()
1229 dasd_path_verify(device, chp); in dasd_path_available()
1232 static inline void dasd_path_notoper(struct dasd_device *device, int chp) in dasd_path_notoper() argument
1234 dasd_path_clear_oper(device, chp); in dasd_path_notoper()
1235 dasd_path_clear_preferred(device, chp); in dasd_path_notoper()
1236 dasd_path_clear_nonpreferred(device, chp); in dasd_path_notoper()
1244 int chp; in dasd_path_no_path() local
1246 for (chp = 0; chp < 8; chp++) in dasd_path_no_path()
1247 dasd_path_notoper(device, chp); in dasd_path_no_path()