Home
last modified time | relevance | path

Searched refs:dev_scsi (Results 1 – 4 of 4) sorted by relevance

/third_party/eudev/src/scsi_id/
Dscsi_serial.c104 struct scsi_id_device *dev_scsi, int fd,
179 struct scsi_id_device *dev_scsi, in scsi_dump_sense() argument
205 log_debug("%s: sense buffer empty", dev_scsi->kernel); in scsi_dump_sense()
219 dev_scsi->kernel, sb_len, s - sb_len); in scsi_dump_sense()
229 dev_scsi->kernel, s); in scsi_dump_sense()
240 dev_scsi->kernel, code); in scsi_dump_sense()
244 dev_scsi->kernel, sense_key, asc, ascq); in scsi_dump_sense()
248 dev_scsi->kernel, sb_len, 4 - sb_len); in scsi_dump_sense()
253 … log_debug("%s: old sense key: 0x%x", dev_scsi->kernel, sense_buffer[0] & 0x0f); in scsi_dump_sense()
256 dev_scsi->kernel, sense_buffer[0], sense_buffer[2]); in scsi_dump_sense()
[all …]
Dscsi_id.c418 struct scsi_id_device *dev_scsi, int *good_bad, int *page_code) in per_dev_options() argument
472 static int set_inq_values(struct udev *udev, struct scsi_id_device *dev_scsi, const char *path) in set_inq_values() argument
476 dev_scsi->use_sg = sg_version; in set_inq_values()
478 retval = scsi_std_inquiry(udev, dev_scsi, path); in set_inq_values()
482 udev_util_encode_string(dev_scsi->vendor, vendor_enc_str, sizeof(vendor_enc_str)); in set_inq_values()
483 udev_util_encode_string(dev_scsi->model, model_enc_str, sizeof(model_enc_str)); in set_inq_values()
485 util_replace_whitespace(dev_scsi->vendor, vendor_str, sizeof(vendor_str)); in set_inq_values()
487 util_replace_whitespace(dev_scsi->model, model_str, sizeof(model_str)); in set_inq_values()
489 set_type(dev_scsi->type, type_str, sizeof(type_str)); in set_inq_values()
490 util_replace_whitespace(dev_scsi->revision, revision_str, sizeof(revision_str)); in set_inq_values()
[all …]
Dscsi_id.h63 int scsi_std_inquiry(struct udev *udev, struct scsi_id_device *dev_scsi, const char *devname);
64 int scsi_get_serial(struct udev *udev, struct scsi_id_device *dev_scsi, const char *devname,
/third_party/eudev/src/udev/
Dudev-builtin-usb_id.c306 struct udev_device *dev_scsi; in builtin_usb_id() local
311dev_scsi = udev_device_get_parent_with_subsystem_devtype(dev, "scsi", "scsi_device"); in builtin_usb_id()
312 if (dev_scsi == NULL) { in builtin_usb_id()
317 … if (sscanf(udev_device_get_sysname(dev_scsi), "%d:%d:%d:%d", &host, &bus, &target, &lun) != 4) { in builtin_usb_id()
318 log_debug("invalid scsi device '%s'", udev_device_get_sysname(dev_scsi)); in builtin_usb_id()
323 scsi_vendor = udev_device_get_sysattr_value(dev_scsi, "vendor"); in builtin_usb_id()
326 udev_device_get_sysname(dev_scsi)); in builtin_usb_id()
333 scsi_model = udev_device_get_sysattr_value(dev_scsi, "model"); in builtin_usb_id()
336 udev_device_get_sysname(dev_scsi)); in builtin_usb_id()
343 scsi_type = udev_device_get_sysattr_value(dev_scsi, "type"); in builtin_usb_id()
[all …]