Lines Matching refs:chp

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