Lines Matching refs:chp

910 static inline int dasd_path_is_operational(struct dasd_device *device, int chp)  in dasd_path_is_operational()  argument
912 return test_bit(DASD_PATH_OPERATIONAL, &device->path[chp].flags); in dasd_path_is_operational()
915 static inline int dasd_path_need_verify(struct dasd_device *device, int chp) in dasd_path_need_verify() argument
917 return test_bit(DASD_PATH_TBV, &device->path[chp].flags); in dasd_path_need_verify()
920 static inline void dasd_path_verify(struct dasd_device *device, int chp) in dasd_path_verify() argument
922 __set_bit(DASD_PATH_TBV, &device->path[chp].flags); in dasd_path_verify()
925 static inline void dasd_path_clear_verify(struct dasd_device *device, int chp) in dasd_path_clear_verify() argument
927 __clear_bit(DASD_PATH_TBV, &device->path[chp].flags); in dasd_path_clear_verify()
932 int chp; in dasd_path_clear_all_verify() local
934 for (chp = 0; chp < 8; chp++) in dasd_path_clear_all_verify()
935 dasd_path_clear_verify(device, chp); in dasd_path_clear_all_verify()
938 static inline void dasd_path_operational(struct dasd_device *device, int chp) in dasd_path_operational() argument
940 __set_bit(DASD_PATH_OPERATIONAL, &device->path[chp].flags); in dasd_path_operational()
941 device->opm |= (0x80 >> chp); in dasd_path_operational()
944 static inline void dasd_path_nonpreferred(struct dasd_device *device, int chp) in dasd_path_nonpreferred() argument
946 __set_bit(DASD_PATH_NPP, &device->path[chp].flags); in dasd_path_nonpreferred()
949 static inline int dasd_path_is_nonpreferred(struct dasd_device *device, int chp) in dasd_path_is_nonpreferred() argument
951 return test_bit(DASD_PATH_NPP, &device->path[chp].flags); in dasd_path_is_nonpreferred()
955 int chp) in dasd_path_clear_nonpreferred() argument
957 __clear_bit(DASD_PATH_NPP, &device->path[chp].flags); in dasd_path_clear_nonpreferred()
960 static inline void dasd_path_preferred(struct dasd_device *device, int chp) in dasd_path_preferred() argument
962 __set_bit(DASD_PATH_PP, &device->path[chp].flags); in dasd_path_preferred()
965 static inline int dasd_path_is_preferred(struct dasd_device *device, int chp) in dasd_path_is_preferred() argument
967 return test_bit(DASD_PATH_PP, &device->path[chp].flags); in dasd_path_is_preferred()
971 int chp) in dasd_path_clear_preferred() argument
973 __clear_bit(DASD_PATH_PP, &device->path[chp].flags); in dasd_path_clear_preferred()
976 static inline void dasd_path_clear_oper(struct dasd_device *device, int chp) in dasd_path_clear_oper() argument
978 __clear_bit(DASD_PATH_OPERATIONAL, &device->path[chp].flags); in dasd_path_clear_oper()
979 device->opm &= ~(0x80 >> chp); in dasd_path_clear_oper()
982 static inline void dasd_path_clear_cable(struct dasd_device *device, int chp) in dasd_path_clear_cable() argument
984 __clear_bit(DASD_PATH_MISCABLED, &device->path[chp].flags); in dasd_path_clear_cable()
987 static inline void dasd_path_cuir(struct dasd_device *device, int chp) in dasd_path_cuir() argument
989 __set_bit(DASD_PATH_CUIR, &device->path[chp].flags); in dasd_path_cuir()
992 static inline int dasd_path_is_cuir(struct dasd_device *device, int chp) in dasd_path_is_cuir() argument
994 return test_bit(DASD_PATH_CUIR, &device->path[chp].flags); in dasd_path_is_cuir()
997 static inline void dasd_path_clear_cuir(struct dasd_device *device, int chp) in dasd_path_clear_cuir() argument
999 __clear_bit(DASD_PATH_CUIR, &device->path[chp].flags); in dasd_path_clear_cuir()
1002 static inline void dasd_path_ifcc(struct dasd_device *device, int chp) in dasd_path_ifcc() argument
1004 set_bit(DASD_PATH_IFCC, &device->path[chp].flags); in dasd_path_ifcc()
1007 static inline int dasd_path_is_ifcc(struct dasd_device *device, int chp) in dasd_path_is_ifcc() argument
1009 return test_bit(DASD_PATH_IFCC, &device->path[chp].flags); in dasd_path_is_ifcc()
1012 static inline void dasd_path_clear_ifcc(struct dasd_device *device, int chp) in dasd_path_clear_ifcc() argument
1014 clear_bit(DASD_PATH_IFCC, &device->path[chp].flags); in dasd_path_clear_ifcc()
1017 static inline void dasd_path_clear_nohpf(struct dasd_device *device, int chp) in dasd_path_clear_nohpf() argument
1019 __clear_bit(DASD_PATH_NOHPF, &device->path[chp].flags); in dasd_path_clear_nohpf()
1022 static inline void dasd_path_miscabled(struct dasd_device *device, int chp) in dasd_path_miscabled() argument
1024 __set_bit(DASD_PATH_MISCABLED, &device->path[chp].flags); in dasd_path_miscabled()
1027 static inline int dasd_path_is_miscabled(struct dasd_device *device, int chp) in dasd_path_is_miscabled() argument
1029 return test_bit(DASD_PATH_MISCABLED, &device->path[chp].flags); in dasd_path_is_miscabled()
1032 static inline void dasd_path_nohpf(struct dasd_device *device, int chp) in dasd_path_nohpf() argument
1034 __set_bit(DASD_PATH_NOHPF, &device->path[chp].flags); in dasd_path_nohpf()
1037 static inline int dasd_path_is_nohpf(struct dasd_device *device, int chp) in dasd_path_is_nohpf() argument
1039 return test_bit(DASD_PATH_NOHPF, &device->path[chp].flags); in dasd_path_is_nohpf()
1054 int chp; in dasd_path_get_tbvpm() local
1057 for (chp = 0; chp < 8; chp++) in dasd_path_get_tbvpm()
1058 if (dasd_path_need_verify(device, chp)) in dasd_path_get_tbvpm()
1059 tbvpm |= 0x80 >> chp; in dasd_path_get_tbvpm()
1065 int chp; in dasd_path_get_nppm() local
1068 for (chp = 0; chp < 8; chp++) { in dasd_path_get_nppm()
1069 if (dasd_path_is_nonpreferred(device, chp)) in dasd_path_get_nppm()
1070 npm |= 0x80 >> chp; in dasd_path_get_nppm()
1077 int chp; in dasd_path_get_ppm() local
1080 for (chp = 0; chp < 8; chp++) in dasd_path_get_ppm()
1081 if (dasd_path_is_preferred(device, chp)) in dasd_path_get_ppm()
1082 ppm |= 0x80 >> chp; in dasd_path_get_ppm()
1088 int chp; in dasd_path_get_cablepm() local
1091 for (chp = 0; chp < 8; chp++) in dasd_path_get_cablepm()
1092 if (dasd_path_is_miscabled(device, chp)) in dasd_path_get_cablepm()
1093 cablepm |= 0x80 >> chp; in dasd_path_get_cablepm()
1099 int chp; in dasd_path_get_cuirpm() local
1102 for (chp = 0; chp < 8; chp++) in dasd_path_get_cuirpm()
1103 if (dasd_path_is_cuir(device, chp)) in dasd_path_get_cuirpm()
1104 cuirpm |= 0x80 >> chp; in dasd_path_get_cuirpm()
1110 int chp; in dasd_path_get_ifccpm() local
1113 for (chp = 0; chp < 8; chp++) in dasd_path_get_ifccpm()
1114 if (dasd_path_is_ifcc(device, chp)) in dasd_path_get_ifccpm()
1115 ifccpm |= 0x80 >> chp; in dasd_path_get_ifccpm()
1121 int chp; in dasd_path_get_hpfpm() local
1124 for (chp = 0; chp < 8; chp++) in dasd_path_get_hpfpm()
1125 if (dasd_path_is_nohpf(device, chp)) in dasd_path_get_hpfpm()
1126 hpfpm |= 0x80 >> chp; in dasd_path_get_hpfpm()
1136 int chp; in dasd_path_add_tbvpm() local
1138 for (chp = 0; chp < 8; chp++) in dasd_path_add_tbvpm()
1139 if (pm & (0x80 >> chp)) in dasd_path_add_tbvpm()
1140 dasd_path_verify(device, chp); in dasd_path_add_tbvpm()
1145 int chp; in dasd_path_get_notoperpm() local
1148 for (chp = 0; chp < 8; chp++) in dasd_path_get_notoperpm()
1149 if (dasd_path_is_nohpf(device, chp) || in dasd_path_get_notoperpm()
1150 dasd_path_is_ifcc(device, chp) || in dasd_path_get_notoperpm()
1151 dasd_path_is_cuir(device, chp) || in dasd_path_get_notoperpm()
1152 dasd_path_is_miscabled(device, chp)) in dasd_path_get_notoperpm()
1153 nopm |= 0x80 >> chp; in dasd_path_get_notoperpm()
1159 int chp; in dasd_path_add_opm() local
1161 for (chp = 0; chp < 8; chp++) in dasd_path_add_opm()
1162 if (pm & (0x80 >> chp)) { in dasd_path_add_opm()
1163 dasd_path_operational(device, chp); in dasd_path_add_opm()
1168 dasd_path_clear_nohpf(device, chp); in dasd_path_add_opm()
1169 dasd_path_clear_cuir(device, chp); in dasd_path_add_opm()
1170 dasd_path_clear_cable(device, chp); in dasd_path_add_opm()
1171 dasd_path_clear_ifcc(device, chp); in dasd_path_add_opm()
1177 int chp; in dasd_path_add_cablepm() local
1179 for (chp = 0; chp < 8; chp++) in dasd_path_add_cablepm()
1180 if (pm & (0x80 >> chp)) in dasd_path_add_cablepm()
1181 dasd_path_miscabled(device, chp); in dasd_path_add_cablepm()
1186 int chp; in dasd_path_add_cuirpm() local
1188 for (chp = 0; chp < 8; chp++) in dasd_path_add_cuirpm()
1189 if (pm & (0x80 >> chp)) in dasd_path_add_cuirpm()
1190 dasd_path_cuir(device, chp); in dasd_path_add_cuirpm()
1195 int chp; in dasd_path_add_ifccpm() local
1197 for (chp = 0; chp < 8; chp++) in dasd_path_add_ifccpm()
1198 if (pm & (0x80 >> chp)) in dasd_path_add_ifccpm()
1199 dasd_path_ifcc(device, chp); in dasd_path_add_ifccpm()
1204 int chp; in dasd_path_add_nppm() local
1206 for (chp = 0; chp < 8; chp++) in dasd_path_add_nppm()
1207 if (pm & (0x80 >> chp)) in dasd_path_add_nppm()
1208 dasd_path_nonpreferred(device, chp); in dasd_path_add_nppm()
1213 int chp; in dasd_path_add_nohpfpm() local
1215 for (chp = 0; chp < 8; chp++) in dasd_path_add_nohpfpm()
1216 if (pm & (0x80 >> chp)) in dasd_path_add_nohpfpm()
1217 dasd_path_nohpf(device, chp); in dasd_path_add_nohpfpm()
1222 int chp; in dasd_path_add_ppm() local
1224 for (chp = 0; chp < 8; chp++) in dasd_path_add_ppm()
1225 if (pm & (0x80 >> chp)) in dasd_path_add_ppm()
1226 dasd_path_preferred(device, chp); in dasd_path_add_ppm()
1235 int chp; in dasd_path_set_tbvpm() local
1237 for (chp = 0; chp < 8; chp++) in dasd_path_set_tbvpm()
1238 if (pm & (0x80 >> chp)) in dasd_path_set_tbvpm()
1239 dasd_path_verify(device, chp); in dasd_path_set_tbvpm()
1241 dasd_path_clear_verify(device, chp); in dasd_path_set_tbvpm()
1246 int chp; in dasd_path_set_opm() local
1248 for (chp = 0; chp < 8; chp++) { in dasd_path_set_opm()
1249 dasd_path_clear_oper(device, chp); in dasd_path_set_opm()
1250 if (pm & (0x80 >> chp)) { in dasd_path_set_opm()
1251 dasd_path_operational(device, chp); in dasd_path_set_opm()
1256 dasd_path_clear_nohpf(device, chp); in dasd_path_set_opm()
1257 dasd_path_clear_cuir(device, chp); in dasd_path_set_opm()
1258 dasd_path_clear_cable(device, chp); in dasd_path_set_opm()
1259 dasd_path_clear_ifcc(device, chp); in dasd_path_set_opm()
1270 int chp; in dasd_path_remove_opm() local
1272 for (chp = 0; chp < 8; chp++) { in dasd_path_remove_opm()
1273 if (pm & (0x80 >> chp)) in dasd_path_remove_opm()
1274 dasd_path_clear_oper(device, chp); in dasd_path_remove_opm()
1282 static inline void dasd_path_available(struct dasd_device *device, int chp) in dasd_path_available() argument
1284 dasd_path_clear_oper(device, chp); in dasd_path_available()
1285 dasd_path_verify(device, chp); in dasd_path_available()
1288 static inline void dasd_path_notoper(struct dasd_device *device, int chp) in dasd_path_notoper() argument
1290 dasd_path_clear_oper(device, chp); in dasd_path_notoper()
1291 dasd_path_clear_preferred(device, chp); in dasd_path_notoper()
1292 dasd_path_clear_nonpreferred(device, chp); in dasd_path_notoper()
1300 int chp; in dasd_path_no_path() local
1302 for (chp = 0; chp < 8; chp++) in dasd_path_no_path()
1303 dasd_path_notoper(device, chp); in dasd_path_no_path()