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

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/udev/extras/scsi_id/
H A Dscsi_id.h33 extern int scsi_std_inquiry(struct sysfs_device *dev_scsi, const char *devname,
35 extern int scsi_get_serial (struct sysfs_device *dev_scsi, const char *devname,
H A Dscsi_serial.c148 static int scsi_dump_sense(struct sysfs_device *dev_scsi, struct sg_io_hdr *io) argument
168 info("%s: sense buffer empty", dev_scsi->kernel);
183 dev_scsi->kernel, sb_len, s - sb_len);
194 dev_scsi->kernel, s);
206 dev_scsi->kernel, code);
210 dev_scsi->kernel, sense_key, asc, ascq);
214 dev_scsi->kernel, sb_len, 4 - sb_len);
219 info("%s: old sense key: 0x%x", dev_scsi->kernel, sense_buffer[0] & 0x0f);
222 dev_scsi->kernel, sense_buffer[0], sense_buffer[2]);
224 dev_scsi
243 scsi_dump(struct sysfs_device *dev_scsi, struct sg_io_hdr *io) argument
262 scsi_inquiry(struct sysfs_device *dev_scsi, int fd, unsigned char evpd, unsigned char page, unsigned char *buf, unsigned int buflen) argument
332 do_scsi_page0_inquiry(struct sysfs_device *dev_scsi, int fd, unsigned char *buffer, unsigned int len) argument
381 prepend_vendor_model(struct sysfs_device *dev_scsi, char *serial) argument
419 check_fill_0x83_id(struct sysfs_device *dev_scsi, unsigned char *page_83, const struct scsi_id_search_values *id_search, char *serial, char *serial_short, int max_len) argument
510 check_fill_0x83_prespc3(struct sysfs_device *dev_scsi, unsigned char *page_83, const struct scsi_id_search_values *id_search, char *serial, char *serial_short, int max_len) argument
532 do_scsi_page83_inquiry(struct sysfs_device *dev_scsi, int fd, char *serial, char *serial_short, int len) argument
617 do_scsi_page83_prespc3_inquiry(struct sysfs_device *dev_scsi, int fd, char *serial, char *serial_short, int len) argument
679 do_scsi_page80_inquiry(struct sysfs_device *dev_scsi, int fd, char *serial, char *serial_short, int max_len) argument
720 scsi_std_inquiry(struct sysfs_device *dev_scsi, const char *devname, char *vendor, char *model, char *rev, char *type) argument
751 scsi_get_serial(struct sysfs_device *dev_scsi, const char *devname, int page_code, char *serial, char *serial_short, int len) argument
[all...]
H A Dscsi_id.c534 static int per_dev_options(struct sysfs_device *dev_scsi, int *good_bad, int *page_code) argument
593 static int set_sysfs_values(struct sysfs_device *dev_scsi) argument
597 vendor = sysfs_attr_get_value(dev_scsi->devpath, "vendor");
599 info("%s: cannot get vendor attribute", dev_scsi->devpath);
604 model = sysfs_attr_get_value(dev_scsi->devpath, "model");
606 info("%s: cannot get model attribute\n", dev_scsi->devpath);
611 type = sysfs_attr_get_value(dev_scsi->devpath, "type");
613 info("%s: cannot get type attribute", dev_scsi->devpath);
618 type = sysfs_attr_get_value(dev_scsi->devpath, "rev");
620 info("%s: cannot get type attribute\n", dev_scsi
628 set_inq_values(struct sysfs_device *dev_scsi, const char *path) argument
682 struct sysfs_device *dev_scsi = NULL; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/udev/extras/usb_id/
H A Dusb_id.c273 struct sysfs_device *dev_scsi; local
277 dev_scsi = sysfs_device_get_parent_with_subsystem(dev, "scsi");
278 if (dev_scsi == NULL) {
282 if (sscanf(dev_scsi->kernel, "%d:%d:%d:%d", &host, &bus, &target, &lun) != 4) {
283 info("invalid scsi device '%s'", dev_scsi->kernel);
288 scsi_vendor = sysfs_attr_get_value(dev_scsi->devpath, "vendor");
290 info("%s: cannot get SCSI vendor attribute", dev_scsi->kernel);
295 scsi_model = sysfs_attr_get_value(dev_scsi->devpath, "model");
297 info("%s: cannot get SCSI model attribute", dev_scsi->kernel);
302 scsi_type = sysfs_attr_get_value(dev_scsi
[all...]

Completed in 62 milliseconds