Lines Matching refs:PhysDiskNum
111 mpt_pd_insert(int fd, struct mpt_drive_list *list, U8 PhysDiskNum)
120 if (list->drives[i]->PhysDiskNum == PhysDiskNum)
122 if (list->drives[i]->PhysDiskNum > PhysDiskNum)
132 list->drives[i] = mpt_pd_info(fd, PhysDiskNum, NULL);
213 if (mpt_pd_insert(fd, list, rdisk->PhysDiskNum) < 0) {
228 if (mpt_pd_insert(fd, list, spare->PhysDiskNum) < 0) {
238 if (mpt_pd_insert(fd, list, disk->PhysDiskNum) < 0) {
260 U8 *PhysDiskNum)
271 *PhysDiskNum = val;
290 *PhysDiskNum = list->drives[val]->PhysDiskNum;
333 U8 PhysDiskNum;
349 if (mpt_lookup_drive(list, drive, &PhysDiskNum) < 0) {
358 info = mpt_pd_info(fd, PhysDiskNum, NULL);
361 warn("Failed to fetch info for drive %u", PhysDiskNum);
368 warnx("Drive %u is already in the desired state", PhysDiskNum);
374 error = mpt_raid_action(fd, Action, 0, 0, PhysDiskNum, 0, NULL, 0, NULL,
377 warnc(error, "Failed to set drive %u to %s", PhysDiskNum, name);