Lines Matching refs:chp

1016 static inline int dasd_path_is_operational(struct dasd_device *device, int chp)  in dasd_path_is_operational()  argument
1018 return test_bit(DASD_PATH_OPERATIONAL, &device->path[chp].flags); in dasd_path_is_operational()
1021 static inline int dasd_path_need_verify(struct dasd_device *device, int chp) in dasd_path_need_verify() argument
1023 return test_bit(DASD_PATH_TBV, &device->path[chp].flags); in dasd_path_need_verify()
1026 static inline void dasd_path_verify(struct dasd_device *device, int chp) in dasd_path_verify() argument
1028 __set_bit(DASD_PATH_TBV, &device->path[chp].flags); in dasd_path_verify()
1031 static inline void dasd_path_clear_verify(struct dasd_device *device, int chp) in dasd_path_clear_verify() argument
1033 __clear_bit(DASD_PATH_TBV, &device->path[chp].flags); in dasd_path_clear_verify()
1038 int chp; in dasd_path_clear_all_verify() local
1040 for (chp = 0; chp < 8; chp++) in dasd_path_clear_all_verify()
1041 dasd_path_clear_verify(device, chp); in dasd_path_clear_all_verify()
1044 static inline void dasd_path_fcsec(struct dasd_device *device, int chp) in dasd_path_fcsec() argument
1046 __set_bit(DASD_PATH_FCSEC, &device->path[chp].flags); in dasd_path_fcsec()
1049 static inline void dasd_path_clear_fcsec(struct dasd_device *device, int chp) in dasd_path_clear_fcsec() argument
1051 __clear_bit(DASD_PATH_FCSEC, &device->path[chp].flags); in dasd_path_clear_fcsec()
1054 static inline int dasd_path_need_fcsec(struct dasd_device *device, int chp) in dasd_path_need_fcsec() argument
1056 return test_bit(DASD_PATH_FCSEC, &device->path[chp].flags); in dasd_path_need_fcsec()
1061 int chp; in dasd_path_clear_all_fcsec() local
1063 for (chp = 0; chp < 8; chp++) in dasd_path_clear_all_fcsec()
1064 dasd_path_clear_fcsec(device, chp); in dasd_path_clear_all_fcsec()
1067 static inline void dasd_path_operational(struct dasd_device *device, int chp) in dasd_path_operational() argument
1069 __set_bit(DASD_PATH_OPERATIONAL, &device->path[chp].flags); in dasd_path_operational()
1070 device->opm |= (0x80 >> chp); in dasd_path_operational()
1073 static inline void dasd_path_nonpreferred(struct dasd_device *device, int chp) in dasd_path_nonpreferred() argument
1075 __set_bit(DASD_PATH_NPP, &device->path[chp].flags); in dasd_path_nonpreferred()
1078 static inline int dasd_path_is_nonpreferred(struct dasd_device *device, int chp) in dasd_path_is_nonpreferred() argument
1080 return test_bit(DASD_PATH_NPP, &device->path[chp].flags); in dasd_path_is_nonpreferred()
1084 int chp) in dasd_path_clear_nonpreferred() argument
1086 __clear_bit(DASD_PATH_NPP, &device->path[chp].flags); in dasd_path_clear_nonpreferred()
1089 static inline void dasd_path_preferred(struct dasd_device *device, int chp) in dasd_path_preferred() argument
1091 __set_bit(DASD_PATH_PP, &device->path[chp].flags); in dasd_path_preferred()
1094 static inline int dasd_path_is_preferred(struct dasd_device *device, int chp) in dasd_path_is_preferred() argument
1096 return test_bit(DASD_PATH_PP, &device->path[chp].flags); in dasd_path_is_preferred()
1100 int chp) in dasd_path_clear_preferred() argument
1102 __clear_bit(DASD_PATH_PP, &device->path[chp].flags); in dasd_path_clear_preferred()
1105 static inline void dasd_path_clear_oper(struct dasd_device *device, int chp) in dasd_path_clear_oper() argument
1107 __clear_bit(DASD_PATH_OPERATIONAL, &device->path[chp].flags); in dasd_path_clear_oper()
1108 device->opm &= ~(0x80 >> chp); in dasd_path_clear_oper()
1111 static inline void dasd_path_clear_cable(struct dasd_device *device, int chp) in dasd_path_clear_cable() argument
1113 __clear_bit(DASD_PATH_MISCABLED, &device->path[chp].flags); in dasd_path_clear_cable()
1116 static inline void dasd_path_cuir(struct dasd_device *device, int chp) in dasd_path_cuir() argument
1118 __set_bit(DASD_PATH_CUIR, &device->path[chp].flags); in dasd_path_cuir()
1121 static inline int dasd_path_is_cuir(struct dasd_device *device, int chp) in dasd_path_is_cuir() argument
1123 return test_bit(DASD_PATH_CUIR, &device->path[chp].flags); in dasd_path_is_cuir()
1126 static inline void dasd_path_clear_cuir(struct dasd_device *device, int chp) in dasd_path_clear_cuir() argument
1128 __clear_bit(DASD_PATH_CUIR, &device->path[chp].flags); in dasd_path_clear_cuir()
1131 static inline void dasd_path_ifcc(struct dasd_device *device, int chp) in dasd_path_ifcc() argument
1133 set_bit(DASD_PATH_IFCC, &device->path[chp].flags); in dasd_path_ifcc()
1136 static inline int dasd_path_is_ifcc(struct dasd_device *device, int chp) in dasd_path_is_ifcc() argument
1138 return test_bit(DASD_PATH_IFCC, &device->path[chp].flags); in dasd_path_is_ifcc()
1141 static inline void dasd_path_clear_ifcc(struct dasd_device *device, int chp) in dasd_path_clear_ifcc() argument
1143 clear_bit(DASD_PATH_IFCC, &device->path[chp].flags); in dasd_path_clear_ifcc()
1146 static inline void dasd_path_clear_nohpf(struct dasd_device *device, int chp) in dasd_path_clear_nohpf() argument
1148 __clear_bit(DASD_PATH_NOHPF, &device->path[chp].flags); in dasd_path_clear_nohpf()
1151 static inline void dasd_path_miscabled(struct dasd_device *device, int chp) in dasd_path_miscabled() argument
1153 __set_bit(DASD_PATH_MISCABLED, &device->path[chp].flags); in dasd_path_miscabled()
1156 static inline int dasd_path_is_miscabled(struct dasd_device *device, int chp) in dasd_path_is_miscabled() argument
1158 return test_bit(DASD_PATH_MISCABLED, &device->path[chp].flags); in dasd_path_is_miscabled()
1161 static inline void dasd_path_nohpf(struct dasd_device *device, int chp) in dasd_path_nohpf() argument
1163 __set_bit(DASD_PATH_NOHPF, &device->path[chp].flags); in dasd_path_nohpf()
1166 static inline int dasd_path_is_nohpf(struct dasd_device *device, int chp) in dasd_path_is_nohpf() argument
1168 return test_bit(DASD_PATH_NOHPF, &device->path[chp].flags); in dasd_path_is_nohpf()
1183 int chp; in dasd_path_get_tbvpm() local
1186 for (chp = 0; chp < 8; chp++) in dasd_path_get_tbvpm()
1187 if (dasd_path_need_verify(device, chp)) in dasd_path_get_tbvpm()
1188 tbvpm |= 0x80 >> chp; in dasd_path_get_tbvpm()
1194 int chp; in dasd_path_get_fcsecpm() local
1196 for (chp = 0; chp < 8; chp++) in dasd_path_get_fcsecpm()
1197 if (dasd_path_need_fcsec(device, chp)) in dasd_path_get_fcsecpm()
1205 int chp; in dasd_path_get_nppm() local
1208 for (chp = 0; chp < 8; chp++) { in dasd_path_get_nppm()
1209 if (dasd_path_is_nonpreferred(device, chp)) in dasd_path_get_nppm()
1210 npm |= 0x80 >> chp; in dasd_path_get_nppm()
1217 int chp; in dasd_path_get_ppm() local
1220 for (chp = 0; chp < 8; chp++) in dasd_path_get_ppm()
1221 if (dasd_path_is_preferred(device, chp)) in dasd_path_get_ppm()
1222 ppm |= 0x80 >> chp; in dasd_path_get_ppm()
1228 int chp; in dasd_path_get_cablepm() local
1231 for (chp = 0; chp < 8; chp++) in dasd_path_get_cablepm()
1232 if (dasd_path_is_miscabled(device, chp)) in dasd_path_get_cablepm()
1233 cablepm |= 0x80 >> chp; in dasd_path_get_cablepm()
1239 int chp; in dasd_path_get_cuirpm() local
1242 for (chp = 0; chp < 8; chp++) in dasd_path_get_cuirpm()
1243 if (dasd_path_is_cuir(device, chp)) in dasd_path_get_cuirpm()
1244 cuirpm |= 0x80 >> chp; in dasd_path_get_cuirpm()
1250 int chp; in dasd_path_get_ifccpm() local
1253 for (chp = 0; chp < 8; chp++) in dasd_path_get_ifccpm()
1254 if (dasd_path_is_ifcc(device, chp)) in dasd_path_get_ifccpm()
1255 ifccpm |= 0x80 >> chp; in dasd_path_get_ifccpm()
1261 int chp; in dasd_path_get_hpfpm() local
1264 for (chp = 0; chp < 8; chp++) in dasd_path_get_hpfpm()
1265 if (dasd_path_is_nohpf(device, chp)) in dasd_path_get_hpfpm()
1266 hpfpm |= 0x80 >> chp; in dasd_path_get_hpfpm()
1270 static inline u8 dasd_path_get_fcs_path(struct dasd_device *device, int chp) in dasd_path_get_fcs_path() argument
1272 return device->path[chp].fc_security; in dasd_path_get_fcs_path()
1278 int chp; in dasd_path_get_fcs_device() local
1280 for (chp = 0; chp < 8; chp++) { in dasd_path_get_fcs_device()
1281 if (device->opm & (0x80 >> chp)) { in dasd_path_get_fcs_device()
1282 fc_sec = device->path[chp].fc_security; in dasd_path_get_fcs_device()
1286 for (; chp < 8; chp++) { in dasd_path_get_fcs_device()
1287 if (device->opm & (0x80 >> chp)) in dasd_path_get_fcs_device()
1288 if (device->path[chp].fc_security != fc_sec) in dasd_path_get_fcs_device()
1301 int chp; in dasd_path_add_tbvpm() local
1303 for (chp = 0; chp < 8; chp++) in dasd_path_add_tbvpm()
1304 if (pm & (0x80 >> chp)) in dasd_path_add_tbvpm()
1305 dasd_path_verify(device, chp); in dasd_path_add_tbvpm()
1310 int chp; in dasd_path_get_notoperpm() local
1313 for (chp = 0; chp < 8; chp++) in dasd_path_get_notoperpm()
1314 if (dasd_path_is_nohpf(device, chp) || in dasd_path_get_notoperpm()
1315 dasd_path_is_ifcc(device, chp) || in dasd_path_get_notoperpm()
1316 dasd_path_is_cuir(device, chp) || in dasd_path_get_notoperpm()
1317 dasd_path_is_miscabled(device, chp)) in dasd_path_get_notoperpm()
1318 nopm |= 0x80 >> chp; in dasd_path_get_notoperpm()
1324 int chp; in dasd_path_add_opm() local
1326 for (chp = 0; chp < 8; chp++) in dasd_path_add_opm()
1327 if (pm & (0x80 >> chp)) { in dasd_path_add_opm()
1328 dasd_path_operational(device, chp); in dasd_path_add_opm()
1333 dasd_path_clear_nohpf(device, chp); in dasd_path_add_opm()
1334 dasd_path_clear_cuir(device, chp); in dasd_path_add_opm()
1335 dasd_path_clear_cable(device, chp); in dasd_path_add_opm()
1336 dasd_path_clear_ifcc(device, chp); in dasd_path_add_opm()
1342 int chp; in dasd_path_add_cablepm() local
1344 for (chp = 0; chp < 8; chp++) in dasd_path_add_cablepm()
1345 if (pm & (0x80 >> chp)) in dasd_path_add_cablepm()
1346 dasd_path_miscabled(device, chp); in dasd_path_add_cablepm()
1351 int chp; in dasd_path_add_cuirpm() local
1353 for (chp = 0; chp < 8; chp++) in dasd_path_add_cuirpm()
1354 if (pm & (0x80 >> chp)) in dasd_path_add_cuirpm()
1355 dasd_path_cuir(device, chp); in dasd_path_add_cuirpm()
1360 int chp; in dasd_path_add_ifccpm() local
1362 for (chp = 0; chp < 8; chp++) in dasd_path_add_ifccpm()
1363 if (pm & (0x80 >> chp)) in dasd_path_add_ifccpm()
1364 dasd_path_ifcc(device, chp); in dasd_path_add_ifccpm()
1369 int chp; in dasd_path_add_nppm() local
1371 for (chp = 0; chp < 8; chp++) in dasd_path_add_nppm()
1372 if (pm & (0x80 >> chp)) in dasd_path_add_nppm()
1373 dasd_path_nonpreferred(device, chp); in dasd_path_add_nppm()
1378 int chp; in dasd_path_add_nohpfpm() local
1380 for (chp = 0; chp < 8; chp++) in dasd_path_add_nohpfpm()
1381 if (pm & (0x80 >> chp)) in dasd_path_add_nohpfpm()
1382 dasd_path_nohpf(device, chp); in dasd_path_add_nohpfpm()
1387 int chp; in dasd_path_add_ppm() local
1389 for (chp = 0; chp < 8; chp++) in dasd_path_add_ppm()
1390 if (pm & (0x80 >> chp)) in dasd_path_add_ppm()
1391 dasd_path_preferred(device, chp); in dasd_path_add_ppm()
1396 int chp; in dasd_path_add_fcsecpm() local
1398 for (chp = 0; chp < 8; chp++) in dasd_path_add_fcsecpm()
1399 if (pm & (0x80 >> chp)) in dasd_path_add_fcsecpm()
1400 dasd_path_fcsec(device, chp); in dasd_path_add_fcsecpm()
1409 int chp; in dasd_path_set_tbvpm() local
1411 for (chp = 0; chp < 8; chp++) in dasd_path_set_tbvpm()
1412 if (pm & (0x80 >> chp)) in dasd_path_set_tbvpm()
1413 dasd_path_verify(device, chp); in dasd_path_set_tbvpm()
1415 dasd_path_clear_verify(device, chp); in dasd_path_set_tbvpm()
1420 int chp; in dasd_path_set_opm() local
1422 for (chp = 0; chp < 8; chp++) { in dasd_path_set_opm()
1423 dasd_path_clear_oper(device, chp); in dasd_path_set_opm()
1424 if (pm & (0x80 >> chp)) { in dasd_path_set_opm()
1425 dasd_path_operational(device, chp); in dasd_path_set_opm()
1430 dasd_path_clear_nohpf(device, chp); in dasd_path_set_opm()
1431 dasd_path_clear_cuir(device, chp); in dasd_path_set_opm()
1432 dasd_path_clear_cable(device, chp); in dasd_path_set_opm()
1433 dasd_path_clear_ifcc(device, chp); in dasd_path_set_opm()
1444 int chp; in dasd_path_remove_opm() local
1446 for (chp = 0; chp < 8; chp++) { in dasd_path_remove_opm()
1447 if (pm & (0x80 >> chp)) in dasd_path_remove_opm()
1448 dasd_path_clear_oper(device, chp); in dasd_path_remove_opm()
1456 static inline void dasd_path_available(struct dasd_device *device, int chp) in dasd_path_available() argument
1458 dasd_path_clear_oper(device, chp); in dasd_path_available()
1459 dasd_path_verify(device, chp); in dasd_path_available()
1462 static inline void dasd_path_notoper(struct dasd_device *device, int chp) in dasd_path_notoper() argument
1464 dasd_path_clear_oper(device, chp); in dasd_path_notoper()
1465 dasd_path_clear_preferred(device, chp); in dasd_path_notoper()
1466 dasd_path_clear_nonpreferred(device, chp); in dasd_path_notoper()
1469 static inline void dasd_path_fcsec_update(struct dasd_device *device, int chp) in dasd_path_fcsec_update() argument
1471 dasd_path_fcsec(device, chp); in dasd_path_fcsec_update()
1479 int chp; in dasd_path_no_path() local
1481 for (chp = 0; chp < 8; chp++) in dasd_path_no_path()
1482 dasd_path_notoper(device, chp); in dasd_path_no_path()