Lines Matching refs:chp

930 static inline int dasd_path_is_operational(struct dasd_device *device, int chp)  in dasd_path_is_operational()  argument
932 return test_bit(DASD_PATH_OPERATIONAL, &device->path[chp].flags); in dasd_path_is_operational()
935 static inline int dasd_path_need_verify(struct dasd_device *device, int chp) in dasd_path_need_verify() argument
937 return test_bit(DASD_PATH_TBV, &device->path[chp].flags); in dasd_path_need_verify()
940 static inline void dasd_path_verify(struct dasd_device *device, int chp) in dasd_path_verify() argument
942 __set_bit(DASD_PATH_TBV, &device->path[chp].flags); in dasd_path_verify()
945 static inline void dasd_path_clear_verify(struct dasd_device *device, int chp) in dasd_path_clear_verify() argument
947 __clear_bit(DASD_PATH_TBV, &device->path[chp].flags); in dasd_path_clear_verify()
952 int chp; in dasd_path_clear_all_verify() local
954 for (chp = 0; chp < 8; chp++) in dasd_path_clear_all_verify()
955 dasd_path_clear_verify(device, chp); in dasd_path_clear_all_verify()
958 static inline void dasd_path_fcsec(struct dasd_device *device, int chp) in dasd_path_fcsec() argument
960 __set_bit(DASD_PATH_FCSEC, &device->path[chp].flags); in dasd_path_fcsec()
963 static inline void dasd_path_clear_fcsec(struct dasd_device *device, int chp) in dasd_path_clear_fcsec() argument
965 __clear_bit(DASD_PATH_FCSEC, &device->path[chp].flags); in dasd_path_clear_fcsec()
968 static inline int dasd_path_need_fcsec(struct dasd_device *device, int chp) in dasd_path_need_fcsec() argument
970 return test_bit(DASD_PATH_FCSEC, &device->path[chp].flags); in dasd_path_need_fcsec()
975 int chp; in dasd_path_clear_all_fcsec() local
977 for (chp = 0; chp < 8; chp++) in dasd_path_clear_all_fcsec()
978 dasd_path_clear_fcsec(device, chp); in dasd_path_clear_all_fcsec()
981 static inline void dasd_path_operational(struct dasd_device *device, int chp) in dasd_path_operational() argument
983 __set_bit(DASD_PATH_OPERATIONAL, &device->path[chp].flags); in dasd_path_operational()
984 device->opm |= (0x80 >> chp); in dasd_path_operational()
987 static inline void dasd_path_nonpreferred(struct dasd_device *device, int chp) in dasd_path_nonpreferred() argument
989 __set_bit(DASD_PATH_NPP, &device->path[chp].flags); in dasd_path_nonpreferred()
992 static inline int dasd_path_is_nonpreferred(struct dasd_device *device, int chp) in dasd_path_is_nonpreferred() argument
994 return test_bit(DASD_PATH_NPP, &device->path[chp].flags); in dasd_path_is_nonpreferred()
998 int chp) in dasd_path_clear_nonpreferred() argument
1000 __clear_bit(DASD_PATH_NPP, &device->path[chp].flags); in dasd_path_clear_nonpreferred()
1003 static inline void dasd_path_preferred(struct dasd_device *device, int chp) in dasd_path_preferred() argument
1005 __set_bit(DASD_PATH_PP, &device->path[chp].flags); in dasd_path_preferred()
1008 static inline int dasd_path_is_preferred(struct dasd_device *device, int chp) in dasd_path_is_preferred() argument
1010 return test_bit(DASD_PATH_PP, &device->path[chp].flags); in dasd_path_is_preferred()
1014 int chp) in dasd_path_clear_preferred() argument
1016 __clear_bit(DASD_PATH_PP, &device->path[chp].flags); in dasd_path_clear_preferred()
1019 static inline void dasd_path_clear_oper(struct dasd_device *device, int chp) in dasd_path_clear_oper() argument
1021 __clear_bit(DASD_PATH_OPERATIONAL, &device->path[chp].flags); in dasd_path_clear_oper()
1022 device->opm &= ~(0x80 >> chp); in dasd_path_clear_oper()
1025 static inline void dasd_path_clear_cable(struct dasd_device *device, int chp) in dasd_path_clear_cable() argument
1027 __clear_bit(DASD_PATH_MISCABLED, &device->path[chp].flags); in dasd_path_clear_cable()
1030 static inline void dasd_path_cuir(struct dasd_device *device, int chp) in dasd_path_cuir() argument
1032 __set_bit(DASD_PATH_CUIR, &device->path[chp].flags); in dasd_path_cuir()
1035 static inline int dasd_path_is_cuir(struct dasd_device *device, int chp) in dasd_path_is_cuir() argument
1037 return test_bit(DASD_PATH_CUIR, &device->path[chp].flags); in dasd_path_is_cuir()
1040 static inline void dasd_path_clear_cuir(struct dasd_device *device, int chp) in dasd_path_clear_cuir() argument
1042 __clear_bit(DASD_PATH_CUIR, &device->path[chp].flags); in dasd_path_clear_cuir()
1045 static inline void dasd_path_ifcc(struct dasd_device *device, int chp) in dasd_path_ifcc() argument
1047 set_bit(DASD_PATH_IFCC, &device->path[chp].flags); in dasd_path_ifcc()
1050 static inline int dasd_path_is_ifcc(struct dasd_device *device, int chp) in dasd_path_is_ifcc() argument
1052 return test_bit(DASD_PATH_IFCC, &device->path[chp].flags); in dasd_path_is_ifcc()
1055 static inline void dasd_path_clear_ifcc(struct dasd_device *device, int chp) in dasd_path_clear_ifcc() argument
1057 clear_bit(DASD_PATH_IFCC, &device->path[chp].flags); in dasd_path_clear_ifcc()
1060 static inline void dasd_path_clear_nohpf(struct dasd_device *device, int chp) in dasd_path_clear_nohpf() argument
1062 __clear_bit(DASD_PATH_NOHPF, &device->path[chp].flags); in dasd_path_clear_nohpf()
1065 static inline void dasd_path_miscabled(struct dasd_device *device, int chp) in dasd_path_miscabled() argument
1067 __set_bit(DASD_PATH_MISCABLED, &device->path[chp].flags); in dasd_path_miscabled()
1070 static inline int dasd_path_is_miscabled(struct dasd_device *device, int chp) in dasd_path_is_miscabled() argument
1072 return test_bit(DASD_PATH_MISCABLED, &device->path[chp].flags); in dasd_path_is_miscabled()
1075 static inline void dasd_path_nohpf(struct dasd_device *device, int chp) in dasd_path_nohpf() argument
1077 __set_bit(DASD_PATH_NOHPF, &device->path[chp].flags); in dasd_path_nohpf()
1080 static inline int dasd_path_is_nohpf(struct dasd_device *device, int chp) in dasd_path_is_nohpf() argument
1082 return test_bit(DASD_PATH_NOHPF, &device->path[chp].flags); in dasd_path_is_nohpf()
1097 int chp; in dasd_path_get_tbvpm() local
1100 for (chp = 0; chp < 8; chp++) in dasd_path_get_tbvpm()
1101 if (dasd_path_need_verify(device, chp)) in dasd_path_get_tbvpm()
1102 tbvpm |= 0x80 >> chp; in dasd_path_get_tbvpm()
1108 int chp; in dasd_path_get_fcsecpm() local
1110 for (chp = 0; chp < 8; chp++) in dasd_path_get_fcsecpm()
1111 if (dasd_path_need_fcsec(device, chp)) in dasd_path_get_fcsecpm()
1119 int chp; in dasd_path_get_nppm() local
1122 for (chp = 0; chp < 8; chp++) { in dasd_path_get_nppm()
1123 if (dasd_path_is_nonpreferred(device, chp)) in dasd_path_get_nppm()
1124 npm |= 0x80 >> chp; in dasd_path_get_nppm()
1131 int chp; in dasd_path_get_ppm() local
1134 for (chp = 0; chp < 8; chp++) in dasd_path_get_ppm()
1135 if (dasd_path_is_preferred(device, chp)) in dasd_path_get_ppm()
1136 ppm |= 0x80 >> chp; in dasd_path_get_ppm()
1142 int chp; in dasd_path_get_cablepm() local
1145 for (chp = 0; chp < 8; chp++) in dasd_path_get_cablepm()
1146 if (dasd_path_is_miscabled(device, chp)) in dasd_path_get_cablepm()
1147 cablepm |= 0x80 >> chp; in dasd_path_get_cablepm()
1153 int chp; in dasd_path_get_cuirpm() local
1156 for (chp = 0; chp < 8; chp++) in dasd_path_get_cuirpm()
1157 if (dasd_path_is_cuir(device, chp)) in dasd_path_get_cuirpm()
1158 cuirpm |= 0x80 >> chp; in dasd_path_get_cuirpm()
1164 int chp; in dasd_path_get_ifccpm() local
1167 for (chp = 0; chp < 8; chp++) in dasd_path_get_ifccpm()
1168 if (dasd_path_is_ifcc(device, chp)) in dasd_path_get_ifccpm()
1169 ifccpm |= 0x80 >> chp; in dasd_path_get_ifccpm()
1175 int chp; in dasd_path_get_hpfpm() local
1178 for (chp = 0; chp < 8; chp++) in dasd_path_get_hpfpm()
1179 if (dasd_path_is_nohpf(device, chp)) in dasd_path_get_hpfpm()
1180 hpfpm |= 0x80 >> chp; in dasd_path_get_hpfpm()
1184 static inline u8 dasd_path_get_fcs_path(struct dasd_device *device, int chp) in dasd_path_get_fcs_path() argument
1186 return device->path[chp].fc_security; in dasd_path_get_fcs_path()
1192 int chp; in dasd_path_get_fcs_device() local
1194 for (chp = 0; chp < 8; chp++) { in dasd_path_get_fcs_device()
1195 if (device->opm & (0x80 >> chp)) { in dasd_path_get_fcs_device()
1196 fc_sec = device->path[chp].fc_security; in dasd_path_get_fcs_device()
1200 for (; chp < 8; chp++) { in dasd_path_get_fcs_device()
1201 if (device->opm & (0x80 >> chp)) in dasd_path_get_fcs_device()
1202 if (device->path[chp].fc_security != fc_sec) in dasd_path_get_fcs_device()
1215 int chp; in dasd_path_add_tbvpm() local
1217 for (chp = 0; chp < 8; chp++) in dasd_path_add_tbvpm()
1218 if (pm & (0x80 >> chp)) in dasd_path_add_tbvpm()
1219 dasd_path_verify(device, chp); in dasd_path_add_tbvpm()
1224 int chp; in dasd_path_get_notoperpm() local
1227 for (chp = 0; chp < 8; chp++) in dasd_path_get_notoperpm()
1228 if (dasd_path_is_nohpf(device, chp) || in dasd_path_get_notoperpm()
1229 dasd_path_is_ifcc(device, chp) || in dasd_path_get_notoperpm()
1230 dasd_path_is_cuir(device, chp) || in dasd_path_get_notoperpm()
1231 dasd_path_is_miscabled(device, chp)) in dasd_path_get_notoperpm()
1232 nopm |= 0x80 >> chp; in dasd_path_get_notoperpm()
1238 int chp; in dasd_path_add_opm() local
1240 for (chp = 0; chp < 8; chp++) in dasd_path_add_opm()
1241 if (pm & (0x80 >> chp)) { in dasd_path_add_opm()
1242 dasd_path_operational(device, chp); in dasd_path_add_opm()
1247 dasd_path_clear_nohpf(device, chp); in dasd_path_add_opm()
1248 dasd_path_clear_cuir(device, chp); in dasd_path_add_opm()
1249 dasd_path_clear_cable(device, chp); in dasd_path_add_opm()
1250 dasd_path_clear_ifcc(device, chp); in dasd_path_add_opm()
1256 int chp; in dasd_path_add_cablepm() local
1258 for (chp = 0; chp < 8; chp++) in dasd_path_add_cablepm()
1259 if (pm & (0x80 >> chp)) in dasd_path_add_cablepm()
1260 dasd_path_miscabled(device, chp); in dasd_path_add_cablepm()
1265 int chp; in dasd_path_add_cuirpm() local
1267 for (chp = 0; chp < 8; chp++) in dasd_path_add_cuirpm()
1268 if (pm & (0x80 >> chp)) in dasd_path_add_cuirpm()
1269 dasd_path_cuir(device, chp); in dasd_path_add_cuirpm()
1274 int chp; in dasd_path_add_ifccpm() local
1276 for (chp = 0; chp < 8; chp++) in dasd_path_add_ifccpm()
1277 if (pm & (0x80 >> chp)) in dasd_path_add_ifccpm()
1278 dasd_path_ifcc(device, chp); in dasd_path_add_ifccpm()
1283 int chp; in dasd_path_add_nppm() local
1285 for (chp = 0; chp < 8; chp++) in dasd_path_add_nppm()
1286 if (pm & (0x80 >> chp)) in dasd_path_add_nppm()
1287 dasd_path_nonpreferred(device, chp); in dasd_path_add_nppm()
1292 int chp; in dasd_path_add_nohpfpm() local
1294 for (chp = 0; chp < 8; chp++) in dasd_path_add_nohpfpm()
1295 if (pm & (0x80 >> chp)) in dasd_path_add_nohpfpm()
1296 dasd_path_nohpf(device, chp); in dasd_path_add_nohpfpm()
1301 int chp; in dasd_path_add_ppm() local
1303 for (chp = 0; chp < 8; chp++) in dasd_path_add_ppm()
1304 if (pm & (0x80 >> chp)) in dasd_path_add_ppm()
1305 dasd_path_preferred(device, chp); in dasd_path_add_ppm()
1310 int chp; in dasd_path_add_fcsecpm() local
1312 for (chp = 0; chp < 8; chp++) in dasd_path_add_fcsecpm()
1313 if (pm & (0x80 >> chp)) in dasd_path_add_fcsecpm()
1314 dasd_path_fcsec(device, chp); in dasd_path_add_fcsecpm()
1323 int chp; in dasd_path_set_tbvpm() local
1325 for (chp = 0; chp < 8; chp++) in dasd_path_set_tbvpm()
1326 if (pm & (0x80 >> chp)) in dasd_path_set_tbvpm()
1327 dasd_path_verify(device, chp); in dasd_path_set_tbvpm()
1329 dasd_path_clear_verify(device, chp); in dasd_path_set_tbvpm()
1334 int chp; in dasd_path_set_opm() local
1336 for (chp = 0; chp < 8; chp++) { in dasd_path_set_opm()
1337 dasd_path_clear_oper(device, chp); in dasd_path_set_opm()
1338 if (pm & (0x80 >> chp)) { in dasd_path_set_opm()
1339 dasd_path_operational(device, chp); in dasd_path_set_opm()
1344 dasd_path_clear_nohpf(device, chp); in dasd_path_set_opm()
1345 dasd_path_clear_cuir(device, chp); in dasd_path_set_opm()
1346 dasd_path_clear_cable(device, chp); in dasd_path_set_opm()
1347 dasd_path_clear_ifcc(device, chp); in dasd_path_set_opm()
1358 int chp; in dasd_path_remove_opm() local
1360 for (chp = 0; chp < 8; chp++) { in dasd_path_remove_opm()
1361 if (pm & (0x80 >> chp)) in dasd_path_remove_opm()
1362 dasd_path_clear_oper(device, chp); in dasd_path_remove_opm()
1370 static inline void dasd_path_available(struct dasd_device *device, int chp) in dasd_path_available() argument
1372 dasd_path_clear_oper(device, chp); in dasd_path_available()
1373 dasd_path_verify(device, chp); in dasd_path_available()
1376 static inline void dasd_path_notoper(struct dasd_device *device, int chp) in dasd_path_notoper() argument
1378 dasd_path_clear_oper(device, chp); in dasd_path_notoper()
1379 dasd_path_clear_preferred(device, chp); in dasd_path_notoper()
1380 dasd_path_clear_nonpreferred(device, chp); in dasd_path_notoper()
1383 static inline void dasd_path_fcsec_update(struct dasd_device *device, int chp) in dasd_path_fcsec_update() argument
1385 dasd_path_fcsec(device, chp); in dasd_path_fcsec_update()
1393 int chp; in dasd_path_no_path() local
1395 for (chp = 0; chp < 8; chp++) in dasd_path_no_path()
1396 dasd_path_notoper(device, chp); in dasd_path_no_path()