Lines Matching defs:PhysDiskNum
109 mpt_pd_insert(int fd, struct mpt_drive_list *list, U8 PhysDiskNum)
118 if (list->drives[i]->PhysDiskNum == PhysDiskNum)
120 if (list->drives[i]->PhysDiskNum > PhysDiskNum)
130 list->drives[i] = mpt_pd_info(fd, PhysDiskNum, NULL);
211 if (mpt_pd_insert(fd, list, rdisk->PhysDiskNum) < 0) {
226 if (mpt_pd_insert(fd, list, spare->PhysDiskNum) < 0) {
236 if (mpt_pd_insert(fd, list, disk->PhysDiskNum) < 0) {
258 U8 *PhysDiskNum)
269 *PhysDiskNum = val;
288 *PhysDiskNum = list->drives[val]->PhysDiskNum;
331 U8 PhysDiskNum;
347 if (mpt_lookup_drive(list, drive, &PhysDiskNum) < 0) {
356 info = mpt_pd_info(fd, PhysDiskNum, NULL);
359 warn("Failed to fetch info for drive %u", PhysDiskNum);
366 warnx("Drive %u is already in the desired state", PhysDiskNum);
372 error = mpt_raid_action(fd, Action, 0, 0, PhysDiskNum, 0, NULL, 0, NULL,
375 warnc(error, "Failed to set drive %u to %s", PhysDiskNum, name);