Searched refs:dev_scsi (Results 1 – 4 of 4) sorted by relevance
/systemd-251/src/udev/scsi_id/ |
D | scsi_serial.c | 85 static int do_scsi_page80_inquiry(struct scsi_id_device *dev_scsi, int fd, 150 static int scsi_dump_sense(struct scsi_id_device *dev_scsi, in scsi_dump_sense() argument 173 dev_scsi->kernel); in scsi_dump_sense() 186 dev_scsi->kernel, sb_len, in scsi_dump_sense() 197 dev_scsi->kernel, s); in scsi_dump_sense() 208 dev_scsi->kernel, code); in scsi_dump_sense() 211 dev_scsi->kernel, sense_key, asc, ascq); in scsi_dump_sense() 216 dev_scsi->kernel, sb_len, in scsi_dump_sense() 220 … log_debug("%s: old sense key: 0x%x", dev_scsi->kernel, sense_buffer[0] & 0x0f); in scsi_dump_sense() 223 dev_scsi->kernel, sense_buffer[0], sense_buffer[2]); in scsi_dump_sense() [all …]
|
D | scsi_id.c | 320 static int per_dev_options(struct scsi_id_device *dev_scsi, int *good_bad, int *page_code) { in per_dev_options() argument 369 static int set_inq_values(struct scsi_id_device *dev_scsi, const char *path) { in set_inq_values() argument 372 dev_scsi->use_sg = sg_version; in set_inq_values() 374 retval = scsi_std_inquiry(dev_scsi, path); in set_inq_values() 378 encode_devnode_name(dev_scsi->vendor, vendor_enc_str, sizeof(vendor_enc_str)); in set_inq_values() 379 encode_devnode_name(dev_scsi->model, model_enc_str, sizeof(model_enc_str)); in set_inq_values() 381 udev_replace_whitespace(dev_scsi->vendor, vendor_str, sizeof(vendor_str)-1); in set_inq_values() 383 udev_replace_whitespace(dev_scsi->model, model_str, sizeof(model_str)-1); in set_inq_values() 385 set_type(dev_scsi->type, type_str, sizeof(type_str)); in set_inq_values() 386 udev_replace_whitespace(dev_scsi->revision, revision_str, sizeof(revision_str)-1); in set_inq_values() [all …]
|
D | scsi_id.h | 51 int scsi_std_inquiry(struct scsi_id_device *dev_scsi, const char *devname); 52 int scsi_get_serial(struct scsi_id_device *dev_scsi, const char *devname,
|
/systemd-251/src/udev/ |
D | udev-builtin-usb_id.c | 307 sd_device *dev_scsi; in builtin_usb_id() local 312 … r = sd_device_get_parent_with_subsystem_devtype(dev, "scsi", "scsi_device", &dev_scsi); in builtin_usb_id() 317 if (sd_device_get_sysname(dev_scsi, &scsi_sysname) < 0) in builtin_usb_id() 320 log_device_debug(dev_scsi, "Invalid SCSI device"); in builtin_usb_id() 325 r = sd_device_get_sysattr_value(dev_scsi, "vendor", &scsi_vendor); in builtin_usb_id() 327 … log_device_debug_errno(dev_scsi, r, "Failed to get SCSI vendor attribute: %m"); in builtin_usb_id() 334 r = sd_device_get_sysattr_value(dev_scsi, "model", &scsi_model); in builtin_usb_id() 336 … log_device_debug_errno(dev_scsi, r, "Failed to get SCSI model attribute: %m"); in builtin_usb_id() 343 r = sd_device_get_sysattr_value(dev_scsi, "type", &scsi_type); in builtin_usb_id() 345 … log_device_debug_errno(dev_scsi, r, "Failed to get SCSI type attribute: %m"); in builtin_usb_id() [all …]
|