Lines Matching defs:device_id
291 uint16_t device_id;
350 error = mfi_lookup_drive(fd, cp, &device_id);
357 if (mfi_pd_get_info(fd, device_id, pinfo, NULL) < 0) {
366 warnx("Drive %u is not available", device_id);
373 warnx("Drive %u is foreign", device_id);
436 array_info->drives[i].ref.v.device_id,
928 uint16_t device_id;
947 error = mfi_lookup_drive(fd, av[1], &device_id);
951 if (mfi_pd_get_info(fd, device_id, &info, NULL) < 0) {
958 warnx("Drive %u is not available", device_id);
1055 uint16_t device_id;
1070 error = mfi_lookup_drive(fd, av[1], &device_id);
1077 if (mfi_pd_get_info(fd, device_id, &info, NULL) < 0) {
1079 warn("Failed to fetch info for drive %u", device_id);
1085 warnx("Drive %u is not a hot spare", device_id);
1113 uint16_t device_id;
1135 device_id = ar->pd[j].ref.v.device_id;
1136 if (device_id == 0xffff)
1139 printf(" drive %u %s\n", device_id,
1141 if (mfi_pd_get_info(fd, device_id, &pinfo,
1191 "global", sp->ref.v.device_id);