Lines Matching defs:dev_result

275 static int print_dev_scsi(struct device_match_result *dev_result, char *tmpstr);
276 static int print_dev_ata(struct device_match_result *dev_result, char *tmpstr);
277 static int print_dev_semb(struct device_match_result *dev_result, char *tmpstr);
278 static int print_dev_mmcsd(struct device_match_result *dev_result,
280 static int print_dev_nvme(struct device_match_result *dev_result, char *tmpstr);
558 struct device_match_result *dev_result;
564 dev_result =
567 if ((dev_result->flags
575 if (dev_result->protocol == PROTO_SCSI) {
576 if (print_dev_scsi(dev_result,
581 } else if (dev_result->protocol == PROTO_ATA ||
582 dev_result->protocol == PROTO_SATAPM) {
583 if (print_dev_ata(dev_result,
588 } else if (dev_result->protocol == PROTO_MMCSD){
589 if (print_dev_mmcsd(dev_result,
594 } else if (dev_result->protocol == PROTO_SEMB) {
595 if (print_dev_semb(dev_result,
600 } else if (dev_result->protocol == PROTO_NVME) {
601 if (print_dev_nvme(dev_result,
617 dev_result->path_id,
618 dev_result->target_id,
619 (uintmax_t)dev_result->target_lun);
681 print_dev_scsi(struct device_match_result *dev_result, char *tmpstr)
685 cam_strvis(vendor, dev_result->inq_data.vendor,
686 sizeof(dev_result->inq_data.vendor), sizeof(vendor));
687 cam_strvis(product, dev_result->inq_data.product,
688 sizeof(dev_result->inq_data.product), sizeof(product));
689 cam_strvis(revision, dev_result->inq_data.revision,
690 sizeof(dev_result->inq_data.revision), sizeof(revision));
697 print_dev_ata(struct device_match_result *dev_result, char *tmpstr)
701 cam_strvis(product, dev_result->ident_data.model,
702 sizeof(dev_result->ident_data.model), sizeof(product));
703 cam_strvis(revision, dev_result->ident_data.revision,
704 sizeof(dev_result->ident_data.revision), sizeof(revision));
711 print_dev_semb(struct device_match_result *dev_result, char *tmpstr)
716 sid = (struct sep_identify_data *)&dev_result->ident_data;
731 print_dev_mmcsd(struct device_match_result *dev_result, char *tmpstr)
738 dev = cam_open_btl(dev_result->path_id, dev_result->target_id,
739 dev_result->target_lun, O_RDWR, NULL);
818 print_dev_nvme(struct device_match_result *dev_result, char *tmpstr)
824 dev = cam_open_btl(dev_result->path_id, dev_result->target_id,
825 dev_result->target_lun, O_RDWR, NULL);
8913 struct device_match_result *dev_result;
8915 dev_result =
8918 if (dev_result->flags &
8933 bcopy(dev_result, &item->dev_match,
8934 sizeof(*dev_result));