sdevice 28 drivers/gpio/gpio-siox.c static int gpio_siox_set_data(struct siox_device *sdevice, u8 status, u8 buf[]) sdevice 30 drivers/gpio/gpio-siox.c struct gpio_siox_ddata *ddata = dev_get_drvdata(&sdevice->dev); sdevice 39 drivers/gpio/gpio-siox.c static int gpio_siox_get_data(struct siox_device *sdevice, const u8 buf[]) sdevice 41 drivers/gpio/gpio-siox.c struct gpio_siox_ddata *ddata = dev_get_drvdata(&sdevice->dev); sdevice 211 drivers/gpio/gpio-siox.c static int gpio_siox_probe(struct siox_device *sdevice) sdevice 215 drivers/gpio/gpio-siox.c struct device *dev = &sdevice->dev; sdevice 96 drivers/gpu/drm/i915/intel_pch.c unsigned short svendor, unsigned short sdevice) sdevice 102 drivers/gpu/drm/i915/intel_pch.c sdevice == PCI_SUBDEVICE_ID_QEMU)); sdevice 1406 drivers/scsi/storvsc_drv.c static int storvsc_device_alloc(struct scsi_device *sdevice) sdevice 1417 drivers/scsi/storvsc_drv.c sdevice->sdev_bflags = BLIST_REPORTLUN2 | BLIST_TRY_VPD_PAGES; sdevice 1422 drivers/scsi/storvsc_drv.c static int storvsc_device_configure(struct scsi_device *sdevice) sdevice 1424 drivers/scsi/storvsc_drv.c blk_queue_rq_timeout(sdevice->request_queue, (storvsc_timeout * HZ)); sdevice 1426 drivers/scsi/storvsc_drv.c sdevice->no_write_same = 1; sdevice 1433 drivers/scsi/storvsc_drv.c if (!strncmp(sdevice->vendor, "Msft", 4)) { sdevice 1437 drivers/scsi/storvsc_drv.c sdevice->scsi_level = SCSI_SPC_3; sdevice 1442 drivers/scsi/storvsc_drv.c sdevice->no_write_same = 0; sdevice 645 drivers/scsi/virtio_scsi.c static int virtscsi_device_alloc(struct scsi_device *sdevice) sdevice 661 drivers/scsi/virtio_scsi.c sdevice->sdev_bflags = BLIST_TRY_VPD_PAGES; sdevice 68 drivers/siox/siox-core.c static bool siox_device_counter_error(struct siox_device *sdevice, sdevice 74 drivers/siox/siox-core.c static bool siox_device_type_error(struct siox_device *sdevice, u8 status_clean) sdevice 83 drivers/siox/siox-core.c if (sdevice->statustype) { sdevice 84 drivers/siox/siox-core.c if (statustype != sdevice->statustype) sdevice 97 drivers/siox/siox-core.c static bool siox_device_wdg_error(struct siox_device *sdevice, u8 status_clean) sdevice 105 drivers/siox/siox-core.c bool siox_device_synced(struct siox_device *sdevice) sdevice 107 drivers/siox/siox-core.c if (siox_device_type_error(sdevice, sdevice->status_read_clean)) sdevice 110 drivers/siox/siox-core.c return !siox_device_counter_error(sdevice, sdevice->status_read_clean); sdevice 119 drivers/siox/siox-core.c bool siox_device_connected(struct siox_device *sdevice) sdevice 121 drivers/siox/siox-core.c if (!siox_device_synced(sdevice)) sdevice 124 drivers/siox/siox-core.c return !siox_device_wdg_error(sdevice, sdevice->status_read_clean); sdevice 130 drivers/siox/siox-core.c struct siox_device *sdevice; sdevice 153 drivers/siox/siox-core.c list_for_each_entry(sdevice, &smaster->devices, node) { sdevice 155 drivers/siox/siox-core.c to_siox_driver(sdevice->dev.driver); sdevice 156 drivers/siox/siox-core.c sdevice->status_written = smaster->status; sdevice 158 drivers/siox/siox-core.c i -= sdevice->inbytes; sdevice 165 drivers/siox/siox-core.c if (!siox_device_synced(sdevice)) sdevice 169 drivers/siox/siox-core.c sdriver->set_data(sdevice, sdevice->status_written, sdevice 176 drivers/siox/siox-core.c sdevice->status_written &= ~SIOX_STATUS_WDG; sdevice 178 drivers/siox/siox-core.c smaster->buf[i] = sdevice->status_written; sdevice 180 drivers/siox/siox-core.c trace_siox_set_data(smaster, sdevice, devno, i); sdevice 194 drivers/siox/siox-core.c list_for_each_entry(sdevice, &smaster->devices, node) { sdevice 196 drivers/siox/siox-core.c to_siox_driver(sdevice->dev.driver); sdevice 197 drivers/siox/siox-core.c u8 status = smaster->buf[i + sdevice->outbytes - 1]; sdevice 199 drivers/siox/siox-core.c u8 prev_status_clean = sdevice->status_read_clean; sdevice 203 drivers/siox/siox-core.c if (!siox_device_synced(sdevice)) sdevice 216 drivers/siox/siox-core.c sdevice->status_written_lastcycle); sdevice 219 drivers/siox/siox-core.c if (siox_device_counter_error(sdevice, status_clean) || sdevice 220 drivers/siox/siox-core.c siox_device_type_error(sdevice, status_clean)) { sdevice 227 drivers/siox/siox-core.c siox_device_counter_error(sdevice, sdevice 229 drivers/siox/siox-core.c siox_device_type_error(sdevice, sdevice 233 drivers/siox/siox-core.c sdevice->status_errors++; sdevice 234 drivers/siox/siox-core.c sysfs_notify_dirent(sdevice->status_errors_kn); sdevice 244 drivers/siox/siox-core.c if (siox_device_wdg_error(sdevice, status_clean)) sdevice 249 drivers/siox/siox-core.c sysfs_notify_dirent(sdevice->watchdog_kn); sdevice 251 drivers/siox/siox-core.c if (siox_device_wdg_error(sdevice, status_clean)) { sdevice 253 drivers/siox/siox-core.c sdevice->watchdog_errors_kn; sdevice 255 drivers/siox/siox-core.c sdevice->watchdog_errors++; sdevice 260 drivers/siox/siox-core.c if (connected != sdevice->connected) sdevice 261 drivers/siox/siox-core.c sysfs_notify_dirent(sdevice->connected_kn); sdevice 263 drivers/siox/siox-core.c sdevice->status_read_clean = status_clean; sdevice 264 drivers/siox/siox-core.c sdevice->status_written_lastcycle = sdevice->status_written; sdevice 265 drivers/siox/siox-core.c sdevice->connected = connected; sdevice 267 drivers/siox/siox-core.c trace_siox_get_data(smaster, sdevice, devno, status_clean, i); sdevice 271 drivers/siox/siox-core.c sdriver->get_data(sdevice, &smaster->buf[i]); sdevice 274 drivers/siox/siox-core.c i += sdevice->outbytes; sdevice 358 drivers/siox/siox-core.c struct siox_device *sdevice; sdevice 362 drivers/siox/siox-core.c list_for_each_entry(sdevice, &smaster->devices, node) { sdevice 363 drivers/siox/siox-core.c if (sdevice->connected) sdevice 364 drivers/siox/siox-core.c sysfs_notify_dirent(sdevice->connected_kn); sdevice 365 drivers/siox/siox-core.c sdevice->connected = false; sdevice 496 drivers/siox/siox-core.c struct siox_device *sdevice = to_siox_device(dev); sdevice 498 drivers/siox/siox-core.c kfree(sdevice); sdevice 523 drivers/siox/siox-core.c struct siox_device *sdevice = to_siox_device(dev); sdevice 526 drivers/siox/siox-core.c ret = sdriver->probe(sdevice); sdevice 534 drivers/siox/siox-core.c struct siox_device *sdevice = to_siox_device(dev); sdevice 537 drivers/siox/siox-core.c ret = sdriver->remove(sdevice); sdevice 545 drivers/siox/siox-core.c struct siox_device *sdevice = to_siox_device(dev); sdevice 547 drivers/siox/siox-core.c sdriver->shutdown(sdevice); sdevice 747 drivers/siox/siox-core.c struct siox_device *sdevice; sdevice 749 drivers/siox/siox-core.c sdevice = container_of(smaster->devices.prev, sdevice 751 drivers/siox/siox-core.c list_del(&sdevice->node); sdevice 756 drivers/siox/siox-core.c device_unregister(&sdevice->dev); sdevice 771 drivers/siox/siox-core.c struct siox_device *sdevice; sdevice 775 drivers/siox/siox-core.c sdevice = kzalloc(sizeof(*sdevice), GFP_KERNEL); sdevice 776 drivers/siox/siox-core.c if (!sdevice) sdevice 779 drivers/siox/siox-core.c sdevice->type = type; sdevice 780 drivers/siox/siox-core.c sdevice->inbytes = inbytes; sdevice 781 drivers/siox/siox-core.c sdevice->outbytes = outbytes; sdevice 782 drivers/siox/siox-core.c sdevice->statustype = statustype; sdevice 784 drivers/siox/siox-core.c sdevice->smaster = smaster; sdevice 785 drivers/siox/siox-core.c sdevice->dev.parent = &smaster->dev; sdevice 786 drivers/siox/siox-core.c sdevice->dev.bus = &siox_bus_type; sdevice 787 drivers/siox/siox-core.c sdevice->dev.type = &siox_device_type; sdevice 791 drivers/siox/siox-core.c dev_set_name(&sdevice->dev, "siox-%d-%d", sdevice 810 drivers/siox/siox-core.c ret = device_register(&sdevice->dev); sdevice 818 drivers/siox/siox-core.c list_add_tail(&sdevice->node, &smaster->devices); sdevice 820 drivers/siox/siox-core.c smaster->setbuf_len += sdevice->inbytes; sdevice 821 drivers/siox/siox-core.c smaster->getbuf_len += sdevice->outbytes; sdevice 823 drivers/siox/siox-core.c sdevice->status_errors_kn = sysfs_get_dirent(sdevice->dev.kobj.sd, sdevice 825 drivers/siox/siox-core.c sdevice->watchdog_kn = sysfs_get_dirent(sdevice->dev.kobj.sd, sdevice 827 drivers/siox/siox-core.c sdevice->watchdog_errors_kn = sysfs_get_dirent(sdevice->dev.kobj.sd, sdevice 829 drivers/siox/siox-core.c sdevice->connected_kn = sysfs_get_dirent(sdevice->dev.kobj.sd, sdevice 834 drivers/siox/siox-core.c return sdevice; sdevice 842 drivers/siox/siox-core.c kfree(sdevice); sdevice 849 drivers/siox/siox-core.c struct siox_device *sdevice; sdevice 858 drivers/siox/siox-core.c sdevice = container_of(smaster->devices.prev, struct siox_device, node); sdevice 859 drivers/siox/siox-core.c list_del(&sdevice->node); sdevice 862 drivers/siox/siox-core.c smaster->setbuf_len -= sdevice->inbytes; sdevice 863 drivers/siox/siox-core.c smaster->getbuf_len -= sdevice->outbytes; sdevice 875 drivers/siox/siox-core.c device_unregister(&sdevice->dev); sdevice 34 include/linux/siox.h bool siox_device_synced(struct siox_device *sdevice); sdevice 35 include/linux/siox.h bool siox_device_connected(struct siox_device *sdevice); sdevice 38 include/linux/siox.h int (*probe)(struct siox_device *sdevice); sdevice 39 include/linux/siox.h int (*remove)(struct siox_device *sdevice); sdevice 40 include/linux/siox.h void (*shutdown)(struct siox_device *sdevice); sdevice 46 include/linux/siox.h int (*set_data)(struct siox_device *sdevice, u8 status, u8 buf[]); sdevice 51 include/linux/siox.h int (*get_data)(struct siox_device *sdevice, const u8 buf[]); sdevice 11 include/trace/events/siox.h const struct siox_device *sdevice, sdevice 13 include/trace/events/siox.h TP_ARGS(smaster, sdevice, devno, bufoffset), sdevice 18 include/trace/events/siox.h __dynamic_array(u8, buf, sdevice->inbytes) sdevice 23 include/trace/events/siox.h __entry->inbytes = sdevice->inbytes; sdevice 25 include/trace/events/siox.h smaster->buf + bufoffset, sdevice->inbytes); sdevice 36 include/trace/events/siox.h const struct siox_device *sdevice, sdevice 39 include/trace/events/siox.h TP_ARGS(smaster, sdevice, devno, status_clean, bufoffset), sdevice 45 include/trace/events/siox.h __dynamic_array(u8, buf, sdevice->outbytes) sdevice 51 include/trace/events/siox.h __entry->outbytes = sdevice->outbytes; sdevice 53 include/trace/events/siox.h smaster->buf + bufoffset, sdevice->outbytes);