Lines Matching refs:chp
1023 static inline int dasd_path_is_operational(struct dasd_device *device, int chp)
1025 return test_bit(DASD_PATH_OPERATIONAL, &device->path[chp].flags);
1028 static inline int dasd_path_need_verify(struct dasd_device *device, int chp)
1030 return test_bit(DASD_PATH_TBV, &device->path[chp].flags);
1033 static inline void dasd_path_verify(struct dasd_device *device, int chp)
1035 __set_bit(DASD_PATH_TBV, &device->path[chp].flags);
1038 static inline void dasd_path_clear_verify(struct dasd_device *device, int chp)
1040 __clear_bit(DASD_PATH_TBV, &device->path[chp].flags);
1045 int chp;
1047 for (chp = 0; chp < 8; chp++)
1048 dasd_path_clear_verify(device, chp);
1051 static inline void dasd_path_fcsec(struct dasd_device *device, int chp)
1053 __set_bit(DASD_PATH_FCSEC, &device->path[chp].flags);
1056 static inline void dasd_path_clear_fcsec(struct dasd_device *device, int chp)
1058 __clear_bit(DASD_PATH_FCSEC, &device->path[chp].flags);
1061 static inline int dasd_path_need_fcsec(struct dasd_device *device, int chp)
1063 return test_bit(DASD_PATH_FCSEC, &device->path[chp].flags);
1068 int chp;
1070 for (chp = 0; chp < 8; chp++)
1071 dasd_path_clear_fcsec(device, chp);
1074 static inline void dasd_path_operational(struct dasd_device *device, int chp)
1076 __set_bit(DASD_PATH_OPERATIONAL, &device->path[chp].flags);
1077 device->opm |= (0x80 >> chp);
1080 static inline void dasd_path_nonpreferred(struct dasd_device *device, int chp)
1082 __set_bit(DASD_PATH_NPP, &device->path[chp].flags);
1085 static inline int dasd_path_is_nonpreferred(struct dasd_device *device, int chp)
1087 return test_bit(DASD_PATH_NPP, &device->path[chp].flags);
1091 int chp)
1093 __clear_bit(DASD_PATH_NPP, &device->path[chp].flags);
1096 static inline void dasd_path_preferred(struct dasd_device *device, int chp)
1098 __set_bit(DASD_PATH_PP, &device->path[chp].flags);
1101 static inline int dasd_path_is_preferred(struct dasd_device *device, int chp)
1103 return test_bit(DASD_PATH_PP, &device->path[chp].flags);
1107 int chp)
1109 __clear_bit(DASD_PATH_PP, &device->path[chp].flags);
1112 static inline void dasd_path_clear_oper(struct dasd_device *device, int chp)
1114 __clear_bit(DASD_PATH_OPERATIONAL, &device->path[chp].flags);
1115 device->opm &= ~(0x80 >> chp);
1118 static inline void dasd_path_clear_cable(struct dasd_device *device, int chp)
1120 __clear_bit(DASD_PATH_MISCABLED, &device->path[chp].flags);
1123 static inline void dasd_path_cuir(struct dasd_device *device, int chp)
1125 __set_bit(DASD_PATH_CUIR, &device->path[chp].flags);
1128 static inline int dasd_path_is_cuir(struct dasd_device *device, int chp)
1130 return test_bit(DASD_PATH_CUIR, &device->path[chp].flags);
1133 static inline void dasd_path_clear_cuir(struct dasd_device *device, int chp)
1135 __clear_bit(DASD_PATH_CUIR, &device->path[chp].flags);
1138 static inline void dasd_path_ifcc(struct dasd_device *device, int chp)
1140 set_bit(DASD_PATH_IFCC, &device->path[chp].flags);
1143 static inline int dasd_path_is_ifcc(struct dasd_device *device, int chp)
1145 return test_bit(DASD_PATH_IFCC, &device->path[chp].flags);
1148 static inline void dasd_path_clear_ifcc(struct dasd_device *device, int chp)
1150 clear_bit(DASD_PATH_IFCC, &device->path[chp].flags);
1153 static inline void dasd_path_clear_nohpf(struct dasd_device *device, int chp)
1155 __clear_bit(DASD_PATH_NOHPF, &device->path[chp].flags);
1158 static inline void dasd_path_miscabled(struct dasd_device *device, int chp)
1160 __set_bit(DASD_PATH_MISCABLED, &device->path[chp].flags);
1163 static inline int dasd_path_is_miscabled(struct dasd_device *device, int chp)
1165 return test_bit(DASD_PATH_MISCABLED, &device->path[chp].flags);
1168 static inline void dasd_path_nohpf(struct dasd_device *device, int chp)
1170 __set_bit(DASD_PATH_NOHPF, &device->path[chp].flags);
1173 static inline int dasd_path_is_nohpf(struct dasd_device *device, int chp)
1175 return test_bit(DASD_PATH_NOHPF, &device->path[chp].flags);
1190 int chp;
1193 for (chp = 0; chp < 8; chp++)
1194 if (dasd_path_need_verify(device, chp))
1195 tbvpm |= 0x80 >> chp;
1201 int chp;
1203 for (chp = 0; chp < 8; chp++)
1204 if (dasd_path_need_fcsec(device, chp))
1212 int chp;
1215 for (chp = 0; chp < 8; chp++) {
1216 if (dasd_path_is_nonpreferred(device, chp))
1217 npm |= 0x80 >> chp;
1224 int chp;
1227 for (chp = 0; chp < 8; chp++)
1228 if (dasd_path_is_preferred(device, chp))
1229 ppm |= 0x80 >> chp;
1235 int chp;
1238 for (chp = 0; chp < 8; chp++)
1239 if (dasd_path_is_miscabled(device, chp))
1240 cablepm |= 0x80 >> chp;
1246 int chp;
1249 for (chp = 0; chp < 8; chp++)
1250 if (dasd_path_is_cuir(device, chp))
1251 cuirpm |= 0x80 >> chp;
1257 int chp;
1260 for (chp = 0; chp < 8; chp++)
1261 if (dasd_path_is_ifcc(device, chp))
1262 ifccpm |= 0x80 >> chp;
1268 int chp;
1271 for (chp = 0; chp < 8; chp++)
1272 if (dasd_path_is_nohpf(device, chp))
1273 hpfpm |= 0x80 >> chp;
1277 static inline u8 dasd_path_get_fcs_path(struct dasd_device *device, int chp)
1279 return device->path[chp].fc_security;
1285 int chp;
1287 for (chp = 0; chp < 8; chp++) {
1288 if (device->opm & (0x80 >> chp)) {
1289 fc_sec = device->path[chp].fc_security;
1293 for (; chp < 8; chp++) {
1294 if (device->opm & (0x80 >> chp))
1295 if (device->path[chp].fc_security != fc_sec)
1308 int chp;
1310 for (chp = 0; chp < 8; chp++)
1311 if (pm & (0x80 >> chp))
1312 dasd_path_verify(device, chp);
1317 int chp;
1320 for (chp = 0; chp < 8; chp++)
1321 if (dasd_path_is_nohpf(device, chp) ||
1322 dasd_path_is_ifcc(device, chp) ||
1323 dasd_path_is_cuir(device, chp) ||
1324 dasd_path_is_miscabled(device, chp))
1325 nopm |= 0x80 >> chp;
1331 int chp;
1333 for (chp = 0; chp < 8; chp++)
1334 if (pm & (0x80 >> chp)) {
1335 dasd_path_operational(device, chp);
1340 dasd_path_clear_nohpf(device, chp);
1341 dasd_path_clear_cuir(device, chp);
1342 dasd_path_clear_cable(device, chp);
1343 dasd_path_clear_ifcc(device, chp);
1349 int chp;
1351 for (chp = 0; chp < 8; chp++)
1352 if (pm & (0x80 >> chp))
1353 dasd_path_miscabled(device, chp);
1358 int chp;
1360 for (chp = 0; chp < 8; chp++)
1361 if (pm & (0x80 >> chp))
1362 dasd_path_cuir(device, chp);
1367 int chp;
1369 for (chp = 0; chp < 8; chp++)
1370 if (pm & (0x80 >> chp))
1371 dasd_path_ifcc(device, chp);
1376 int chp;
1378 for (chp = 0; chp < 8; chp++)
1379 if (pm & (0x80 >> chp))
1380 dasd_path_nonpreferred(device, chp);
1385 int chp;
1387 for (chp = 0; chp < 8; chp++)
1388 if (pm & (0x80 >> chp))
1389 dasd_path_nohpf(device, chp);
1394 int chp;
1396 for (chp = 0; chp < 8; chp++)
1397 if (pm & (0x80 >> chp))
1398 dasd_path_preferred(device, chp);
1403 int chp;
1405 for (chp = 0; chp < 8; chp++)
1406 if (pm & (0x80 >> chp))
1407 dasd_path_fcsec(device, chp);
1416 int chp;
1418 for (chp = 0; chp < 8; chp++)
1419 if (pm & (0x80 >> chp))
1420 dasd_path_verify(device, chp);
1422 dasd_path_clear_verify(device, chp);
1427 int chp;
1429 for (chp = 0; chp < 8; chp++) {
1430 dasd_path_clear_oper(device, chp);
1431 if (pm & (0x80 >> chp)) {
1432 dasd_path_operational(device, chp);
1437 dasd_path_clear_nohpf(device, chp);
1438 dasd_path_clear_cuir(device, chp);
1439 dasd_path_clear_cable(device, chp);
1440 dasd_path_clear_ifcc(device, chp);
1451 int chp;
1453 for (chp = 0; chp < 8; chp++) {
1454 if (pm & (0x80 >> chp))
1455 dasd_path_clear_oper(device, chp);
1463 static inline void dasd_path_available(struct dasd_device *device, int chp)
1465 dasd_path_clear_oper(device, chp);
1466 dasd_path_verify(device, chp);
1469 static inline void dasd_path_notoper(struct dasd_device *device, int chp)
1471 dasd_path_clear_oper(device, chp);
1472 dasd_path_clear_preferred(device, chp);
1473 dasd_path_clear_nonpreferred(device, chp);
1476 static inline void dasd_path_fcsec_update(struct dasd_device *device, int chp)
1478 dasd_path_fcsec(device, chp);
1486 int chp;
1488 for (chp = 0; chp < 8; chp++)
1489 dasd_path_notoper(device, chp);