sdev               42 arch/arm/common/scoop.c 	struct scoop_dev *sdev = dev_get_drvdata(dev);
sdev               44 arch/arm/common/scoop.c 	iowrite16(0x0100, sdev->base + SCOOP_MCR);  /* 00 */
sdev               45 arch/arm/common/scoop.c 	iowrite16(0x0000, sdev->base + SCOOP_CDR);  /* 04 */
sdev               46 arch/arm/common/scoop.c 	iowrite16(0x0000, sdev->base + SCOOP_CCR);  /* 10 */
sdev               47 arch/arm/common/scoop.c 	iowrite16(0x0000, sdev->base + SCOOP_IMR);  /* 18 */
sdev               48 arch/arm/common/scoop.c 	iowrite16(0x00FF, sdev->base + SCOOP_IRM);  /* 14 */
sdev               49 arch/arm/common/scoop.c 	iowrite16(0x0000, sdev->base + SCOOP_ISR);  /* 1C */
sdev               50 arch/arm/common/scoop.c 	iowrite16(0x0000, sdev->base + SCOOP_IRM);
sdev               53 arch/arm/common/scoop.c static void __scoop_gpio_set(struct scoop_dev *sdev,
sdev               58 arch/arm/common/scoop.c 	gpwr = ioread16(sdev->base + SCOOP_GPWR);
sdev               63 arch/arm/common/scoop.c 	iowrite16(gpwr, sdev->base + SCOOP_GPWR);
sdev               68 arch/arm/common/scoop.c 	struct scoop_dev *sdev = gpiochip_get_data(chip);
sdev               71 arch/arm/common/scoop.c 	spin_lock_irqsave(&sdev->scoop_lock, flags);
sdev               73 arch/arm/common/scoop.c 	__scoop_gpio_set(sdev, offset, value);
sdev               75 arch/arm/common/scoop.c 	spin_unlock_irqrestore(&sdev->scoop_lock, flags);
sdev               80 arch/arm/common/scoop.c 	struct scoop_dev *sdev = gpiochip_get_data(chip);
sdev               83 arch/arm/common/scoop.c 	return !!(ioread16(sdev->base + SCOOP_GPRR) & (1 << (offset + 1)));
sdev               89 arch/arm/common/scoop.c 	struct scoop_dev *sdev = gpiochip_get_data(chip);
sdev               93 arch/arm/common/scoop.c 	spin_lock_irqsave(&sdev->scoop_lock, flags);
sdev               95 arch/arm/common/scoop.c 	gpcr = ioread16(sdev->base + SCOOP_GPCR);
sdev               97 arch/arm/common/scoop.c 	iowrite16(gpcr, sdev->base + SCOOP_GPCR);
sdev               99 arch/arm/common/scoop.c 	spin_unlock_irqrestore(&sdev->scoop_lock, flags);
sdev              107 arch/arm/common/scoop.c 	struct scoop_dev *sdev = gpiochip_get_data(chip);
sdev              111 arch/arm/common/scoop.c 	spin_lock_irqsave(&sdev->scoop_lock, flags);
sdev              113 arch/arm/common/scoop.c 	__scoop_gpio_set(sdev, offset, value);
sdev              115 arch/arm/common/scoop.c 	gpcr = ioread16(sdev->base + SCOOP_GPCR);
sdev              117 arch/arm/common/scoop.c 	iowrite16(gpcr, sdev->base + SCOOP_GPCR);
sdev              119 arch/arm/common/scoop.c 	spin_unlock_irqrestore(&sdev->scoop_lock, flags);
sdev              126 arch/arm/common/scoop.c 	struct scoop_dev *sdev = dev_get_drvdata(dev);
sdev              127 arch/arm/common/scoop.c 	return ioread16(sdev->base + reg);
sdev              132 arch/arm/common/scoop.c 	struct scoop_dev *sdev = dev_get_drvdata(dev);
sdev              133 arch/arm/common/scoop.c 	iowrite16(data, sdev->base + reg);
sdev              141 arch/arm/common/scoop.c static void check_scoop_reg(struct scoop_dev *sdev)
sdev              145 arch/arm/common/scoop.c 	mcr = ioread16(sdev->base + SCOOP_MCR);
sdev              147 arch/arm/common/scoop.c 		iowrite16(0x0101, sdev->base + SCOOP_MCR);
sdev              152 arch/arm/common/scoop.c 	struct scoop_dev *sdev = platform_get_drvdata(dev);
sdev              154 arch/arm/common/scoop.c 	check_scoop_reg(sdev);
sdev              155 arch/arm/common/scoop.c 	sdev->scoop_gpwr = ioread16(sdev->base + SCOOP_GPWR);
sdev              156 arch/arm/common/scoop.c 	iowrite16((sdev->scoop_gpwr & ~sdev->suspend_clr) | sdev->suspend_set, sdev->base + SCOOP_GPWR);
sdev              163 arch/arm/common/scoop.c 	struct scoop_dev *sdev = platform_get_drvdata(dev);
sdev              165 arch/arm/common/scoop.c 	check_scoop_reg(sdev);
sdev              166 arch/arm/common/scoop.c 	iowrite16(sdev->scoop_gpwr, sdev->base + SCOOP_GPWR);
sdev              241 arch/arm/common/scoop.c 	struct scoop_dev *sdev = platform_get_drvdata(pdev);
sdev              243 arch/arm/common/scoop.c 	if (!sdev)
sdev              246 arch/arm/common/scoop.c 	if (sdev->gpio.base != -1)
sdev              247 arch/arm/common/scoop.c 		gpiochip_remove(&sdev->gpio);
sdev              250 arch/arm/common/scoop.c 	iounmap(sdev->base);
sdev              251 arch/arm/common/scoop.c 	kfree(sdev);
sdev               45 arch/mips/ralink/cevt-rt3352.c 	struct systick_device *sdev;
sdev               48 arch/mips/ralink/cevt-rt3352.c 	sdev = container_of(evt, struct systick_device, dev);
sdev               49 arch/mips/ralink/cevt-rt3352.c 	count = ioread32(sdev->membase + SYSTICK_COUNT);
sdev               51 arch/mips/ralink/cevt-rt3352.c 	iowrite32(count, sdev->membase + SYSTICK_COMPARE);
sdev               93 arch/mips/ralink/cevt-rt3352.c 	struct systick_device *sdev;
sdev               95 arch/mips/ralink/cevt-rt3352.c 	sdev = container_of(evt, struct systick_device, dev);
sdev               97 arch/mips/ralink/cevt-rt3352.c 	if (sdev->irq_requested)
sdev               99 arch/mips/ralink/cevt-rt3352.c 	sdev->irq_requested = 0;
sdev              107 arch/mips/ralink/cevt-rt3352.c 	struct systick_device *sdev;
sdev              109 arch/mips/ralink/cevt-rt3352.c 	sdev = container_of(evt, struct systick_device, dev);
sdev              111 arch/mips/ralink/cevt-rt3352.c 	if (!sdev->irq_requested)
sdev              113 arch/mips/ralink/cevt-rt3352.c 	sdev->irq_requested = 1;
sdev              231 arch/x86/platform/intel-mid/sfi.c static void __init intel_scu_spi_device_register(struct spi_board_info *sdev)
sdev              240 arch/x86/platform/intel-mid/sfi.c 	new_dev = kzalloc(sizeof(*sdev), GFP_KERNEL);
sdev              243 arch/x86/platform/intel-mid/sfi.c 			sdev->modalias);
sdev              246 arch/x86/platform/intel-mid/sfi.c 	*new_dev = *sdev;
sdev              156 drivers/ata/libata-acpi.c 		if (dev->sdev)
sdev              157 drivers/ata/libata-acpi.c 			kobj = &dev->sdev->sdev_gendev.kobj;
sdev              160 drivers/ata/libata-scsi.c 	struct scsi_device *sdev = to_scsi_device(device);
sdev              168 drivers/ata/libata-scsi.c 	ap = ata_shost_to_port(sdev->host);
sdev              171 drivers/ata/libata-scsi.c 	dev = ata_scsi_find_dev(ap, sdev);
sdev              200 drivers/ata/libata-scsi.c 	struct scsi_device *sdev = to_scsi_device(device);
sdev              217 drivers/ata/libata-scsi.c 	ap = ata_shost_to_port(sdev->host);
sdev              220 drivers/ata/libata-scsi.c 	dev = ata_scsi_find_dev(ap, sdev);
sdev              264 drivers/ata/libata-scsi.c 	struct scsi_device *sdev = to_scsi_device(device);
sdev              270 drivers/ata/libata-scsi.c 	ap = ata_shost_to_port(sdev->host);
sdev              273 drivers/ata/libata-scsi.c 	dev = ata_scsi_find_dev(ap, sdev);
sdev              291 drivers/ata/libata-scsi.c 	struct scsi_device *sdev = to_scsi_device(device);
sdev              303 drivers/ata/libata-scsi.c 	ap = ata_shost_to_port(sdev->host);
sdev              304 drivers/ata/libata-scsi.c 	dev = ata_scsi_find_dev(ap, sdev);
sdev              428 drivers/ata/libata-scsi.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev              429 drivers/ata/libata-scsi.c 	struct ata_port *ap = ata_shost_to_port(sdev->host);
sdev              430 drivers/ata/libata-scsi.c 	struct ata_device *atadev = ata_scsi_find_dev(ap, sdev);
sdev              442 drivers/ata/libata-scsi.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev              443 drivers/ata/libata-scsi.c 	struct ata_port *ap = ata_shost_to_port(sdev->host);
sdev              444 drivers/ata/libata-scsi.c 	struct ata_device *atadev = ata_scsi_find_dev(ap, sdev);
sdev              491 drivers/ata/libata-scsi.c int ata_std_bios_param(struct scsi_device *sdev, struct block_device *bdev,
sdev              512 drivers/ata/libata-scsi.c void ata_scsi_unlock_native_capacity(struct scsi_device *sdev)
sdev              514 drivers/ata/libata-scsi.c 	struct ata_port *ap = ata_shost_to_port(sdev->host);
sdev              520 drivers/ata/libata-scsi.c 	dev = ata_scsi_find_dev(ap, sdev);
sdev              543 drivers/ata/libata-scsi.c static int ata_get_identity(struct ata_port *ap, struct scsi_device *sdev,
sdev              546 drivers/ata/libata-scsi.c 	struct ata_device *dev = ata_scsi_find_dev(ap, sdev);
sdev             1209 drivers/ata/libata-scsi.c static void ata_scsi_sdev_config(struct scsi_device *sdev)
sdev             1211 drivers/ata/libata-scsi.c 	sdev->use_10_for_rw = 1;
sdev             1212 drivers/ata/libata-scsi.c 	sdev->use_10_for_ms = 1;
sdev             1213 drivers/ata/libata-scsi.c 	sdev->no_write_same = 1;
sdev             1220 drivers/ata/libata-scsi.c 	sdev->max_device_blocked = 1;
sdev             1249 drivers/ata/libata-scsi.c static int ata_scsi_dev_config(struct scsi_device *sdev,
sdev             1252 drivers/ata/libata-scsi.c 	struct request_queue *q = sdev->request_queue;
sdev             1263 drivers/ata/libata-scsi.c 		sdev->sector_size = ATA_SECT_SIZE;
sdev             1277 drivers/ata/libata-scsi.c 		sdev->sector_size = ata_id_logical_sector_size(dev->id);
sdev             1278 drivers/ata/libata-scsi.c 		sdev->manage_start_stop = 1;
sdev             1288 drivers/ata/libata-scsi.c 	if (sdev->sector_size > PAGE_SIZE)
sdev             1291 drivers/ata/libata-scsi.c 			sdev->sector_size);
sdev             1293 drivers/ata/libata-scsi.c 	blk_queue_update_dma_alignment(q, sdev->sector_size - 1);
sdev             1296 drivers/ata/libata-scsi.c 		set_bit(SDEV_EVT_MEDIA_CHANGE, sdev->supported_events);
sdev             1301 drivers/ata/libata-scsi.c 		depth = min(sdev->host->can_queue, ata_id_queue_depth(dev->id));
sdev             1303 drivers/ata/libata-scsi.c 		scsi_change_queue_depth(sdev, depth);
sdev             1307 drivers/ata/libata-scsi.c 		sdev->security_supported = 1;
sdev             1309 drivers/ata/libata-scsi.c 	dev->sdev = sdev;
sdev             1325 drivers/ata/libata-scsi.c int ata_scsi_slave_config(struct scsi_device *sdev)
sdev             1327 drivers/ata/libata-scsi.c 	struct ata_port *ap = ata_shost_to_port(sdev->host);
sdev             1328 drivers/ata/libata-scsi.c 	struct ata_device *dev = __ata_scsi_find_dev(ap, sdev);
sdev             1331 drivers/ata/libata-scsi.c 	ata_scsi_sdev_config(sdev);
sdev             1334 drivers/ata/libata-scsi.c 		rc = ata_scsi_dev_config(sdev, dev);
sdev             1353 drivers/ata/libata-scsi.c void ata_scsi_slave_destroy(struct scsi_device *sdev)
sdev             1355 drivers/ata/libata-scsi.c 	struct ata_port *ap = ata_shost_to_port(sdev->host);
sdev             1356 drivers/ata/libata-scsi.c 	struct request_queue *q = sdev->request_queue;
sdev             1364 drivers/ata/libata-scsi.c 	dev = __ata_scsi_find_dev(ap, sdev);
sdev             1365 drivers/ata/libata-scsi.c 	if (dev && dev->sdev) {
sdev             1367 drivers/ata/libata-scsi.c 		dev->sdev = NULL;
sdev             1388 drivers/ata/libata-scsi.c int __ata_change_queue_depth(struct ata_port *ap, struct scsi_device *sdev,
sdev             1394 drivers/ata/libata-scsi.c 	if (queue_depth < 1 || queue_depth == sdev->queue_depth)
sdev             1395 drivers/ata/libata-scsi.c 		return sdev->queue_depth;
sdev             1397 drivers/ata/libata-scsi.c 	dev = ata_scsi_find_dev(ap, sdev);
sdev             1399 drivers/ata/libata-scsi.c 		return sdev->queue_depth;
sdev             1411 drivers/ata/libata-scsi.c 	queue_depth = min(queue_depth, sdev->host->can_queue);
sdev             1415 drivers/ata/libata-scsi.c 	if (sdev->queue_depth == queue_depth)
sdev             1418 drivers/ata/libata-scsi.c 	return scsi_change_queue_depth(sdev, queue_depth);
sdev             1436 drivers/ata/libata-scsi.c int ata_scsi_change_queue_depth(struct scsi_device *sdev, int queue_depth)
sdev             1438 drivers/ata/libata-scsi.c 	struct ata_port *ap = ata_shost_to_port(sdev->host);
sdev             1440 drivers/ata/libata-scsi.c 	return __ata_change_queue_depth(ap, sdev, queue_depth);
sdev             2911 drivers/ata/libata-scsi.c 		if (qc->cdb[0] == ALLOW_MEDIUM_REMOVAL && qc->dev->sdev)
sdev             2912 drivers/ata/libata-scsi.c 			qc->dev->sdev->locked = 0;
sdev             4583 drivers/ata/libata-scsi.c 			struct scsi_device *sdev;
sdev             4586 drivers/ata/libata-scsi.c 			if (dev->sdev)
sdev             4594 drivers/ata/libata-scsi.c 			sdev = __scsi_add_device(ap->scsi_host, channel, id, 0,
sdev             4596 drivers/ata/libata-scsi.c 			if (!IS_ERR(sdev)) {
sdev             4597 drivers/ata/libata-scsi.c 				dev->sdev = sdev;
sdev             4598 drivers/ata/libata-scsi.c 				scsi_device_put(sdev);
sdev             4600 drivers/ata/libata-scsi.c 				dev->sdev = NULL;
sdev             4611 drivers/ata/libata-scsi.c 			if (!dev->sdev)
sdev             4663 drivers/ata/libata-scsi.c 	if (dev->sdev) {
sdev             4664 drivers/ata/libata-scsi.c 		scsi_device_set_state(dev->sdev, SDEV_OFFLINE);
sdev             4683 drivers/ata/libata-scsi.c 	struct scsi_device *sdev;
sdev             4696 drivers/ata/libata-scsi.c 	sdev = dev->sdev;
sdev             4697 drivers/ata/libata-scsi.c 	dev->sdev = NULL;
sdev             4699 drivers/ata/libata-scsi.c 	if (sdev) {
sdev             4704 drivers/ata/libata-scsi.c 		if (scsi_device_get(sdev) == 0) {
sdev             4710 drivers/ata/libata-scsi.c 			scsi_device_set_state(sdev, SDEV_OFFLINE);
sdev             4713 drivers/ata/libata-scsi.c 			sdev = NULL;
sdev             4720 drivers/ata/libata-scsi.c 	if (sdev) {
sdev             4722 drivers/ata/libata-scsi.c 			     dev_name(&sdev->sdev_gendev));
sdev             4724 drivers/ata/libata-scsi.c 		scsi_remove_device(sdev);
sdev             4725 drivers/ata/libata-scsi.c 		scsi_device_put(sdev);
sdev             4763 drivers/ata/libata-scsi.c 	if (dev->sdev)
sdev             4764 drivers/ata/libata-scsi.c 		sdev_evt_send_simple(dev->sdev, SDEV_EVT_MEDIA_CHANGE,
sdev             4903 drivers/ata/libata-scsi.c 			struct scsi_device *sdev = dev->sdev;
sdev             4905 drivers/ata/libata-scsi.c 			if (!sdev)
sdev             4907 drivers/ata/libata-scsi.c 			if (scsi_device_get(sdev))
sdev             4911 drivers/ata/libata-scsi.c 			scsi_rescan_device(&(sdev->sdev_gendev));
sdev             4912 drivers/ata/libata-scsi.c 			scsi_device_put(sdev);
sdev             5073 drivers/ata/libata-scsi.c int ata_sas_slave_configure(struct scsi_device *sdev, struct ata_port *ap)
sdev             5075 drivers/ata/libata-scsi.c 	ata_scsi_sdev_config(sdev);
sdev             5076 drivers/ata/libata-scsi.c 	ata_scsi_dev_config(sdev, ap->link.device);
sdev              189 drivers/ata/libata-zpodd.c 	sdev_disable_disk_events(dev->sdev);
sdev              237 drivers/ata/libata-zpodd.c 	sdev_enable_disk_events(dev->sdev);
sdev              244 drivers/ata/libata-zpodd.c 	struct device *dev = &ata_dev->sdev->sdev_gendev;
sdev              797 drivers/ata/pata_macio.c static int pata_macio_slave_config(struct scsi_device *sdev)
sdev              799 drivers/ata/pata_macio.c 	struct ata_port *ap = ata_shost_to_port(sdev->host);
sdev              806 drivers/ata/pata_macio.c 	rc = ata_scsi_slave_config(sdev);
sdev              811 drivers/ata/pata_macio.c 	dev = &ap->link.device[sdev->id];
sdev              815 drivers/ata/pata_macio.c 		blk_queue_update_dma_alignment(sdev->request_queue, 31);
sdev              816 drivers/ata/pata_macio.c 		blk_queue_update_dma_pad(sdev->request_queue, 31);
sdev              830 drivers/ata/pata_macio.c 		blk_queue_update_dma_alignment(sdev->request_queue, 15);
sdev              831 drivers/ata/pata_macio.c 		blk_queue_update_dma_pad(sdev->request_queue, 15);
sdev              298 drivers/ata/sata_nv.c static int nv_adma_slave_config(struct scsi_device *sdev);
sdev              320 drivers/ata/sata_nv.c static int nv_swncq_slave_config(struct scsi_device *sdev);
sdev              657 drivers/ata/sata_nv.c static int nv_adma_slave_config(struct scsi_device *sdev)
sdev              659 drivers/ata/sata_nv.c 	struct ata_port *ap = ata_shost_to_port(sdev->host);
sdev              669 drivers/ata/sata_nv.c 	rc = ata_scsi_slave_config(sdev);
sdev              671 drivers/ata/sata_nv.c 	if (sdev->id >= ATA_MAX_DEVICES || sdev->channel || sdev->lun)
sdev              677 drivers/ata/sata_nv.c 	if (ap->link.device[sdev->id].class == ATA_DEV_ATAPI) {
sdev              736 drivers/ata/sata_nv.c 	blk_queue_segment_boundary(sdev->request_queue, segment_boundary);
sdev              737 drivers/ata/sata_nv.c 	blk_queue_max_segments(sdev->request_queue, sg_tablesize);
sdev             1878 drivers/ata/sata_nv.c static int nv_swncq_slave_config(struct scsi_device *sdev)
sdev             1880 drivers/ata/sata_nv.c 	struct ata_port *ap = ata_shost_to_port(sdev->host);
sdev             1888 drivers/ata/sata_nv.c 	rc = ata_scsi_slave_config(sdev);
sdev             1889 drivers/ata/sata_nv.c 	if (sdev->id >= ATA_MAX_DEVICES || sdev->channel || sdev->lun)
sdev             1893 drivers/ata/sata_nv.c 	dev = &ap->link.device[sdev->id];
sdev             1916 drivers/ata/sata_nv.c 		ata_scsi_change_queue_depth(sdev, 1);
sdev             1918 drivers/ata/sata_nv.c 			       sdev->queue_depth);
sdev               12 drivers/base/regmap/regmap-slimbus.c 	struct slim_device *sdev = context;
sdev               14 drivers/base/regmap/regmap-slimbus.c 	return slim_write(sdev, *(u16 *)data, count - 2, (u8 *)data + 2);
sdev               20 drivers/base/regmap/regmap-slimbus.c 	struct slim_device *sdev = context;
sdev               22 drivers/base/regmap/regmap-slimbus.c 	return slim_read(sdev, *(u16 *)reg, val_size, val);
sdev               85 drivers/base/regmap/regmap-spmi.c struct regmap *__regmap_init_spmi_base(struct spmi_device *sdev,
sdev               90 drivers/base/regmap/regmap-spmi.c 	return __regmap_init(&sdev->dev, &regmap_spmi_base, sdev, config,
sdev               95 drivers/base/regmap/regmap-spmi.c struct regmap *__devm_regmap_init_spmi_base(struct spmi_device *sdev,
sdev              100 drivers/base/regmap/regmap-spmi.c 	return __devm_regmap_init(&sdev->dev, &regmap_spmi_base, sdev, config,
sdev              205 drivers/base/regmap/regmap-spmi.c struct regmap *__regmap_init_spmi_ext(struct spmi_device *sdev,
sdev              210 drivers/base/regmap/regmap-spmi.c 	return __regmap_init(&sdev->dev, &regmap_spmi_ext, sdev, config,
sdev              215 drivers/base/regmap/regmap-spmi.c struct regmap *__devm_regmap_init_spmi_ext(struct spmi_device *sdev,
sdev              220 drivers/base/regmap/regmap-spmi.c 	return __devm_regmap_init(&sdev->dev, &regmap_spmi_ext, sdev, config,
sdev              121 drivers/clk/clk-scmi.c static int scmi_clocks_probe(struct scmi_device *sdev)
sdev              126 drivers/clk/clk-scmi.c 	struct device *dev = &sdev->dev;
sdev              128 drivers/clk/clk-scmi.c 	const struct scmi_handle *handle = sdev->handle;
sdev              240 drivers/cpufreq/scmi-cpufreq.c static int scmi_cpufreq_probe(struct scmi_device *sdev)
sdev              244 drivers/cpufreq/scmi-cpufreq.c 	handle = sdev->handle;
sdev              251 drivers/cpufreq/scmi-cpufreq.c 		dev_err(&sdev->dev, "%s: registering cpufreq failed, err: %d\n",
sdev              258 drivers/cpufreq/scmi-cpufreq.c static void scmi_cpufreq_remove(struct scmi_device *sdev)
sdev               54 drivers/dma/sh/shdma-base.c 	struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device);
sdev               55 drivers/dma/sh/shdma-base.c 	const struct shdma_ops *ops = sdev->ops;
sdev              127 drivers/dma/sh/shdma-base.c 			struct shdma_dev *sdev =
sdev              129 drivers/dma/sh/shdma-base.c 			const struct shdma_ops *ops = sdev->ops;
sdev              173 drivers/dma/sh/shdma-base.c 	struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device);
sdev              174 drivers/dma/sh/shdma-base.c 	const struct shdma_ops *ops = sdev->ops;
sdev              206 drivers/dma/sh/shdma-base.c 	struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device);
sdev              207 drivers/dma/sh/shdma-base.c 	const struct shdma_ops *ops = sdev->ops;
sdev              228 drivers/dma/sh/shdma-base.c 			      sdev->desc_size, GFP_KERNEL);
sdev              277 drivers/dma/sh/shdma-base.c 	struct shdma_dev *sdev;
sdev              287 drivers/dma/sh/shdma-base.c 	sdev = to_shdma_dev(chan->device);
sdev              296 drivers/dma/sh/shdma-base.c 		ret = sdev->ops->set_slave(schan, slave_id, 0, true);
sdev              306 drivers/dma/sh/shdma-base.c 		dev_warn(sdev->dma_dev.dev, "invalid slave ID passed to dma_request_slave\n");
sdev              313 drivers/dma/sh/shdma-base.c 	ret = sdev->ops->set_slave(schan, slave_id, 0, true);
sdev              453 drivers/dma/sh/shdma-base.c 	struct shdma_dev *sdev = to_shdma_dev(chan->device);
sdev              454 drivers/dma/sh/shdma-base.c 	const struct shdma_ops *ops = sdev->ops;
sdev              505 drivers/dma/sh/shdma-base.c 	struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device);
sdev              506 drivers/dma/sh/shdma-base.c 	const struct shdma_ops *ops = sdev->ops;
sdev              666 drivers/dma/sh/shdma-base.c 	struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device);
sdev              667 drivers/dma/sh/shdma-base.c 	const struct shdma_ops *ops = sdev->ops;
sdev              697 drivers/dma/sh/shdma-base.c 	struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device);
sdev              699 drivers/dma/sh/shdma-base.c 	const struct shdma_ops *ops = sdev->ops;
sdev              756 drivers/dma/sh/shdma-base.c 	struct shdma_dev *sdev = to_shdma_dev(chan->device);
sdev              757 drivers/dma/sh/shdma-base.c 	const struct shdma_ops *ops = sdev->ops;
sdev              852 drivers/dma/sh/shdma-base.c bool shdma_reset(struct shdma_dev *sdev)
sdev              854 drivers/dma/sh/shdma-base.c 	const struct shdma_ops *ops = sdev->ops;
sdev              860 drivers/dma/sh/shdma-base.c 	shdma_for_each_chan(schan, sdev, i) {
sdev              955 drivers/dma/sh/shdma-base.c void shdma_chan_probe(struct shdma_dev *sdev,
sdev              961 drivers/dma/sh/shdma-base.c 	schan->dma_chan.device = &sdev->dma_dev;
sdev              964 drivers/dma/sh/shdma-base.c 	schan->dev = sdev->dma_dev.dev;
sdev              978 drivers/dma/sh/shdma-base.c 			&sdev->dma_dev.channels);
sdev              979 drivers/dma/sh/shdma-base.c 	sdev->schan[id] = schan;
sdev              989 drivers/dma/sh/shdma-base.c int shdma_init(struct device *dev, struct shdma_dev *sdev,
sdev              992 drivers/dma/sh/shdma-base.c 	struct dma_device *dma_dev = &sdev->dma_dev;
sdev              998 drivers/dma/sh/shdma-base.c 	if (!sdev->ops ||
sdev              999 drivers/dma/sh/shdma-base.c 	    !sdev->desc_size ||
sdev             1000 drivers/dma/sh/shdma-base.c 	    !sdev->ops->embedded_desc ||
sdev             1001 drivers/dma/sh/shdma-base.c 	    !sdev->ops->start_xfer ||
sdev             1002 drivers/dma/sh/shdma-base.c 	    !sdev->ops->setup_xfer ||
sdev             1003 drivers/dma/sh/shdma-base.c 	    !sdev->ops->set_slave ||
sdev             1004 drivers/dma/sh/shdma-base.c 	    !sdev->ops->desc_setup ||
sdev             1005 drivers/dma/sh/shdma-base.c 	    !sdev->ops->slave_addr ||
sdev             1006 drivers/dma/sh/shdma-base.c 	    !sdev->ops->channel_busy ||
sdev             1007 drivers/dma/sh/shdma-base.c 	    !sdev->ops->halt_channel ||
sdev             1008 drivers/dma/sh/shdma-base.c 	    !sdev->ops->desc_completed)
sdev             1011 drivers/dma/sh/shdma-base.c 	sdev->schan = kcalloc(chan_num, sizeof(*sdev->schan), GFP_KERNEL);
sdev             1012 drivers/dma/sh/shdma-base.c 	if (!sdev->schan)
sdev             1037 drivers/dma/sh/shdma-base.c void shdma_cleanup(struct shdma_dev *sdev)
sdev             1039 drivers/dma/sh/shdma-base.c 	kfree(sdev->schan);
sdev              521 drivers/dma/sh/shdmac.c 	struct shdma_dev *sdev = &shdev->shdma_dev;
sdev              522 drivers/dma/sh/shdmac.c 	struct platform_device *pdev = to_platform_device(sdev->dma_dev.dev);
sdev              527 drivers/dma/sh/shdmac.c 	sh_chan = devm_kzalloc(sdev->dma_dev.dev, sizeof(struct sh_dmae_chan),
sdev              535 drivers/dma/sh/shdmac.c 	shdma_chan_probe(sdev, schan, id);
sdev              549 drivers/dma/sh/shdmac.c 		dev_err(sdev->dma_dev.dev,
sdev              238 drivers/dma/sprd-dma.c static void sprd_dma_glb_update(struct sprd_dma_dev *sdev, u32 reg,
sdev              241 drivers/dma/sprd-dma.c 	u32 orig = readl(sdev->glb_base + reg);
sdev              245 drivers/dma/sprd-dma.c 	writel(tmp, sdev->glb_base + reg);
sdev              258 drivers/dma/sprd-dma.c static int sprd_dma_enable(struct sprd_dma_dev *sdev)
sdev              262 drivers/dma/sprd-dma.c 	ret = clk_prepare_enable(sdev->clk);
sdev              270 drivers/dma/sprd-dma.c 	if (!IS_ERR(sdev->ashb_clk))
sdev              271 drivers/dma/sprd-dma.c 		ret = clk_prepare_enable(sdev->ashb_clk);
sdev              276 drivers/dma/sprd-dma.c static void sprd_dma_disable(struct sprd_dma_dev *sdev)
sdev              278 drivers/dma/sprd-dma.c 	clk_disable_unprepare(sdev->clk);
sdev              283 drivers/dma/sprd-dma.c 	if (!IS_ERR(sdev->ashb_clk))
sdev              284 drivers/dma/sprd-dma.c 		clk_disable_unprepare(sdev->ashb_clk);
sdev              289 drivers/dma/sprd-dma.c 	struct sprd_dma_dev *sdev = to_sprd_dma_dev(&schan->vc.chan);
sdev              296 drivers/dma/sprd-dma.c 		writel(schan->chn_num + 1, sdev->glb_base + uid_offset);
sdev              302 drivers/dma/sprd-dma.c 	struct sprd_dma_dev *sdev = to_sprd_dma_dev(&schan->vc.chan);
sdev              309 drivers/dma/sprd-dma.c 		writel(0, sdev->glb_base + uid_offset);
sdev              339 drivers/dma/sprd-dma.c 	struct sprd_dma_dev *sdev = to_sprd_dma_dev(&schan->vc.chan);
sdev              355 drivers/dma/sprd-dma.c 			dev_warn(sdev->dma_dev.dev,
sdev              398 drivers/dma/sprd-dma.c 	struct sprd_dma_dev *sdev = to_sprd_dma_dev(&schan->vc.chan);
sdev              419 drivers/dma/sprd-dma.c 		dev_warn(sdev->dma_dev.dev, "incorrect dma interrupt type\n");
sdev              433 drivers/dma/sprd-dma.c 	struct sprd_dma_dev *sdev = to_sprd_dma_dev(&schan->vc.chan);
sdev              444 drivers/dma/sprd-dma.c 		sprd_dma_glb_update(sdev, SPRD_DMA_GLB_2STAGE_GRP1, val, val);
sdev              454 drivers/dma/sprd-dma.c 		sprd_dma_glb_update(sdev, SPRD_DMA_GLB_2STAGE_GRP2, val, val);
sdev              464 drivers/dma/sprd-dma.c 		sprd_dma_glb_update(sdev, SPRD_DMA_GLB_2STAGE_GRP1, val, val);
sdev              474 drivers/dma/sprd-dma.c 		sprd_dma_glb_update(sdev, SPRD_DMA_GLB_2STAGE_GRP2, val, val);
sdev              478 drivers/dma/sprd-dma.c 		dev_err(sdev->dma_dev.dev, "invalid channel mode setting %d\n",
sdev              563 drivers/dma/sprd-dma.c 	struct sprd_dma_dev *sdev = (struct sprd_dma_dev *)dev_id;
sdev              564 drivers/dma/sprd-dma.c 	u32 irq_status = readl(sdev->glb_base + SPRD_DMA_GLB_INT_MSK_STS);
sdev              575 drivers/dma/sprd-dma.c 		schan = &sdev->channels[i];
sdev              725 drivers/dma/sprd-dma.c 	struct sprd_dma_dev *sdev = to_sprd_dma_dev(chan);
sdev              737 drivers/dma/sprd-dma.c 			dev_err(sdev->dma_dev.dev, "invalid source step\n");
sdev              753 drivers/dma/sprd-dma.c 			dev_err(sdev->dma_dev.dev, "invalid destination step\n");
sdev              761 drivers/dma/sprd-dma.c 		dev_err(sdev->dma_dev.dev, "invalid source datawidth\n");
sdev              767 drivers/dma/sprd-dma.c 		dev_err(sdev->dma_dev.dev, "invalid destination datawidth\n");
sdev             1081 drivers/dma/sprd-dma.c 	struct sprd_dma_dev *sdev;
sdev             1093 drivers/dma/sprd-dma.c 	sdev = devm_kzalloc(&pdev->dev,
sdev             1094 drivers/dma/sprd-dma.c 			    struct_size(sdev, channels, chn_count),
sdev             1096 drivers/dma/sprd-dma.c 	if (!sdev)
sdev             1099 drivers/dma/sprd-dma.c 	sdev->clk = devm_clk_get(&pdev->dev, "enable");
sdev             1100 drivers/dma/sprd-dma.c 	if (IS_ERR(sdev->clk)) {
sdev             1102 drivers/dma/sprd-dma.c 		return PTR_ERR(sdev->clk);
sdev             1106 drivers/dma/sprd-dma.c 	sdev->ashb_clk = devm_clk_get(&pdev->dev, "ashb_eb");
sdev             1107 drivers/dma/sprd-dma.c 	if (IS_ERR(sdev->ashb_clk))
sdev             1117 drivers/dma/sprd-dma.c 	sdev->irq = platform_get_irq(pdev, 0);
sdev             1118 drivers/dma/sprd-dma.c 	if (sdev->irq > 0) {
sdev             1119 drivers/dma/sprd-dma.c 		ret = devm_request_irq(&pdev->dev, sdev->irq, dma_irq_handle,
sdev             1120 drivers/dma/sprd-dma.c 				       0, "sprd_dma", (void *)sdev);
sdev             1130 drivers/dma/sprd-dma.c 	sdev->glb_base = devm_ioremap_resource(&pdev->dev, res);
sdev             1131 drivers/dma/sprd-dma.c 	if (IS_ERR(sdev->glb_base))
sdev             1132 drivers/dma/sprd-dma.c 		return PTR_ERR(sdev->glb_base);
sdev             1134 drivers/dma/sprd-dma.c 	dma_cap_set(DMA_MEMCPY, sdev->dma_dev.cap_mask);
sdev             1135 drivers/dma/sprd-dma.c 	sdev->total_chns = chn_count;
sdev             1136 drivers/dma/sprd-dma.c 	sdev->dma_dev.chancnt = chn_count;
sdev             1137 drivers/dma/sprd-dma.c 	INIT_LIST_HEAD(&sdev->dma_dev.channels);
sdev             1138 drivers/dma/sprd-dma.c 	INIT_LIST_HEAD(&sdev->dma_dev.global_node);
sdev             1139 drivers/dma/sprd-dma.c 	sdev->dma_dev.dev = &pdev->dev;
sdev             1140 drivers/dma/sprd-dma.c 	sdev->dma_dev.device_alloc_chan_resources = sprd_dma_alloc_chan_resources;
sdev             1141 drivers/dma/sprd-dma.c 	sdev->dma_dev.device_free_chan_resources = sprd_dma_free_chan_resources;
sdev             1142 drivers/dma/sprd-dma.c 	sdev->dma_dev.device_tx_status = sprd_dma_tx_status;
sdev             1143 drivers/dma/sprd-dma.c 	sdev->dma_dev.device_issue_pending = sprd_dma_issue_pending;
sdev             1144 drivers/dma/sprd-dma.c 	sdev->dma_dev.device_prep_dma_memcpy = sprd_dma_prep_dma_memcpy;
sdev             1145 drivers/dma/sprd-dma.c 	sdev->dma_dev.device_prep_slave_sg = sprd_dma_prep_slave_sg;
sdev             1146 drivers/dma/sprd-dma.c 	sdev->dma_dev.device_config = sprd_dma_slave_config;
sdev             1147 drivers/dma/sprd-dma.c 	sdev->dma_dev.device_pause = sprd_dma_pause;
sdev             1148 drivers/dma/sprd-dma.c 	sdev->dma_dev.device_resume = sprd_dma_resume;
sdev             1149 drivers/dma/sprd-dma.c 	sdev->dma_dev.device_terminate_all = sprd_dma_terminate_all;
sdev             1152 drivers/dma/sprd-dma.c 		dma_chn = &sdev->channels[i];
sdev             1156 drivers/dma/sprd-dma.c 		dma_chn->chn_base = sdev->glb_base + SPRD_DMA_CHN_REG_OFFSET +
sdev             1160 drivers/dma/sprd-dma.c 		vchan_init(&dma_chn->vc, &sdev->dma_dev);
sdev             1163 drivers/dma/sprd-dma.c 	platform_set_drvdata(pdev, sdev);
sdev             1164 drivers/dma/sprd-dma.c 	ret = sprd_dma_enable(sdev);
sdev             1175 drivers/dma/sprd-dma.c 	ret = dma_async_device_register(&sdev->dma_dev);
sdev             1181 drivers/dma/sprd-dma.c 	sprd_dma_info.dma_cap = sdev->dma_dev.cap_mask;
sdev             1191 drivers/dma/sprd-dma.c 	dma_async_device_unregister(&sdev->dma_dev);
sdev             1196 drivers/dma/sprd-dma.c 	sprd_dma_disable(sdev);
sdev             1202 drivers/dma/sprd-dma.c 	struct sprd_dma_dev *sdev = platform_get_drvdata(pdev);
sdev             1211 drivers/dma/sprd-dma.c 	if (sdev->irq > 0)
sdev             1212 drivers/dma/sprd-dma.c 		devm_free_irq(&pdev->dev, sdev->irq, sdev);
sdev             1214 drivers/dma/sprd-dma.c 	list_for_each_entry_safe(c, cn, &sdev->dma_dev.channels,
sdev             1221 drivers/dma/sprd-dma.c 	dma_async_device_unregister(&sdev->dma_dev);
sdev             1222 drivers/dma/sprd-dma.c 	sprd_dma_disable(sdev);
sdev             1236 drivers/dma/sprd-dma.c 	struct sprd_dma_dev *sdev = dev_get_drvdata(dev);
sdev             1238 drivers/dma/sprd-dma.c 	sprd_dma_disable(sdev);
sdev             1244 drivers/dma/sprd-dma.c 	struct sprd_dma_dev *sdev = dev_get_drvdata(dev);
sdev             1247 drivers/dma/sprd-dma.c 	ret = sprd_dma_enable(sdev);
sdev             1249 drivers/dma/sprd-dma.c 		dev_err(sdev->dma_dev.dev, "enable dma failed\n");
sdev              226 drivers/dma/sun6i-dma.c static inline void sun6i_dma_dump_com_regs(struct sun6i_dma_dev *sdev)
sdev              228 drivers/dma/sun6i-dma.c 	dev_dbg(sdev->slave.dev, "Common register:\n"
sdev              234 drivers/dma/sun6i-dma.c 		DMA_IRQ_EN(0), readl(sdev->base + DMA_IRQ_EN(0)),
sdev              235 drivers/dma/sun6i-dma.c 		DMA_IRQ_EN(1), readl(sdev->base + DMA_IRQ_EN(1)),
sdev              236 drivers/dma/sun6i-dma.c 		DMA_IRQ_STAT(0), readl(sdev->base + DMA_IRQ_STAT(0)),
sdev              237 drivers/dma/sun6i-dma.c 		DMA_IRQ_STAT(1), readl(sdev->base + DMA_IRQ_STAT(1)),
sdev              238 drivers/dma/sun6i-dma.c 		DMA_STAT, readl(sdev->base + DMA_STAT));
sdev              241 drivers/dma/sun6i-dma.c static inline void sun6i_dma_dump_chan_regs(struct sun6i_dma_dev *sdev,
sdev              246 drivers/dma/sun6i-dma.c 	dev_dbg(sdev->slave.dev, "Chan %d reg: %pa\n"
sdev              295 drivers/dma/sun6i-dma.c static void sun6i_enable_clock_autogate_a23(struct sun6i_dma_dev *sdev)
sdev              297 drivers/dma/sun6i-dma.c 	writel(SUN8I_DMA_GATE_ENABLE, sdev->base + SUN8I_DMA_GATE);
sdev              300 drivers/dma/sun6i-dma.c static void sun6i_enable_clock_autogate_h3(struct sun6i_dma_dev *sdev)
sdev              302 drivers/dma/sun6i-dma.c 	writel(SUNXI_H3_DMA_GATE_ENABLE, sdev->base + SUNXI_H3_DMA_GATE);
sdev              404 drivers/dma/sun6i-dma.c 	struct sun6i_dma_dev *sdev = to_sun6i_dma_dev(vd->tx.chan->device);
sdev              418 drivers/dma/sun6i-dma.c 		dma_pool_free(sdev->pool, v_lli, p_lli);
sdev              429 drivers/dma/sun6i-dma.c 	struct sun6i_dma_dev *sdev = to_sun6i_dma_dev(vchan->vc.chan.device);
sdev              455 drivers/dma/sun6i-dma.c 	irq_val = readl(sdev->base + DMA_IRQ_EN(irq_reg));
sdev              459 drivers/dma/sun6i-dma.c 	writel(irq_val, sdev->base + DMA_IRQ_EN(irq_reg));
sdev              464 drivers/dma/sun6i-dma.c 	sun6i_dma_dump_com_regs(sdev);
sdev              465 drivers/dma/sun6i-dma.c 	sun6i_dma_dump_chan_regs(sdev, pchan);
sdev              472 drivers/dma/sun6i-dma.c 	struct sun6i_dma_dev *sdev = (struct sun6i_dma_dev *)data;
sdev              478 drivers/dma/sun6i-dma.c 	list_for_each_entry(vchan, &sdev->slave.channels, vc.chan.device_node) {
sdev              488 drivers/dma/sun6i-dma.c 				dev_dbg(sdev->slave.dev, "pchan %u: free\n",
sdev              499 drivers/dma/sun6i-dma.c 	spin_lock_irq(&sdev->lock);
sdev              500 drivers/dma/sun6i-dma.c 	for (pchan_idx = 0; pchan_idx < sdev->num_pchans; pchan_idx++) {
sdev              501 drivers/dma/sun6i-dma.c 		pchan = &sdev->pchans[pchan_idx];
sdev              503 drivers/dma/sun6i-dma.c 		if (pchan->vchan || list_empty(&sdev->pending))
sdev              506 drivers/dma/sun6i-dma.c 		vchan = list_first_entry(&sdev->pending,
sdev              516 drivers/dma/sun6i-dma.c 		dev_dbg(sdev->slave.dev, "pchan %u: alloc vchan %p\n",
sdev              519 drivers/dma/sun6i-dma.c 	spin_unlock_irq(&sdev->lock);
sdev              521 drivers/dma/sun6i-dma.c 	for (pchan_idx = 0; pchan_idx < sdev->num_pchans; pchan_idx++) {
sdev              525 drivers/dma/sun6i-dma.c 		pchan = sdev->pchans + pchan_idx;
sdev              537 drivers/dma/sun6i-dma.c 	struct sun6i_dma_dev *sdev = dev_id;
sdev              543 drivers/dma/sun6i-dma.c 	for (i = 0; i < sdev->num_pchans / DMA_IRQ_CHAN_NR; i++) {
sdev              544 drivers/dma/sun6i-dma.c 		status = readl(sdev->base + DMA_IRQ_STAT(i));
sdev              548 drivers/dma/sun6i-dma.c 		dev_dbg(sdev->slave.dev, "DMA irq status %s: 0x%x\n",
sdev              551 drivers/dma/sun6i-dma.c 		writel(status, sdev->base + DMA_IRQ_STAT(i));
sdev              554 drivers/dma/sun6i-dma.c 			pchan = sdev->pchans + j;
sdev              570 drivers/dma/sun6i-dma.c 		if (!atomic_read(&sdev->tasklet_shutdown))
sdev              571 drivers/dma/sun6i-dma.c 			tasklet_schedule(&sdev->task);
sdev              578 drivers/dma/sun6i-dma.c static int set_config(struct sun6i_dma_dev *sdev,
sdev              607 drivers/dma/sun6i-dma.c 	if (!(BIT(src_addr_width) & sdev->slave.src_addr_widths))
sdev              609 drivers/dma/sun6i-dma.c 	if (!(BIT(dst_addr_width) & sdev->slave.dst_addr_widths))
sdev              611 drivers/dma/sun6i-dma.c 	if (!(BIT(src_maxburst) & sdev->cfg->src_burst_lengths))
sdev              613 drivers/dma/sun6i-dma.c 	if (!(BIT(dst_maxburst) & sdev->cfg->dst_burst_lengths))
sdev              624 drivers/dma/sun6i-dma.c 	sdev->cfg->set_burst_length(p_cfg, src_burst, dst_burst);
sdev              633 drivers/dma/sun6i-dma.c 	struct sun6i_dma_dev *sdev = to_sun6i_dma_dev(chan->device);
sdev              651 drivers/dma/sun6i-dma.c 	v_lli = dma_pool_alloc(sdev->pool, GFP_NOWAIT, &p_lli);
sdev              653 drivers/dma/sun6i-dma.c 		dev_err(sdev->slave.dev, "Failed to alloc lli memory\n");
sdev              667 drivers/dma/sun6i-dma.c 	sdev->cfg->set_burst_length(&v_lli->cfg, burst, burst);
sdev              668 drivers/dma/sun6i-dma.c 	sdev->cfg->set_drq(&v_lli->cfg, DRQ_SDRAM, DRQ_SDRAM);
sdev              669 drivers/dma/sun6i-dma.c 	sdev->cfg->set_mode(&v_lli->cfg, LINEAR_MODE, LINEAR_MODE);
sdev              687 drivers/dma/sun6i-dma.c 	struct sun6i_dma_dev *sdev = to_sun6i_dma_dev(chan->device);
sdev              700 drivers/dma/sun6i-dma.c 	ret = set_config(sdev, sconfig, dir, &lli_cfg);
sdev              711 drivers/dma/sun6i-dma.c 		v_lli = dma_pool_alloc(sdev->pool, GFP_NOWAIT, &p_lli);
sdev              722 drivers/dma/sun6i-dma.c 			sdev->cfg->set_drq(&v_lli->cfg, DRQ_SDRAM, vchan->port);
sdev              723 drivers/dma/sun6i-dma.c 			sdev->cfg->set_mode(&v_lli->cfg, LINEAR_MODE, IO_MODE);
sdev              735 drivers/dma/sun6i-dma.c 			sdev->cfg->set_drq(&v_lli->cfg, vchan->port, DRQ_SDRAM);
sdev              736 drivers/dma/sun6i-dma.c 			sdev->cfg->set_mode(&v_lli->cfg, IO_MODE, LINEAR_MODE);
sdev              756 drivers/dma/sun6i-dma.c 		dma_pool_free(sdev->pool, prev, virt_to_phys(prev));
sdev              769 drivers/dma/sun6i-dma.c 	struct sun6i_dma_dev *sdev = to_sun6i_dma_dev(chan->device);
sdev              779 drivers/dma/sun6i-dma.c 	ret = set_config(sdev, sconfig, dir, &lli_cfg);
sdev              790 drivers/dma/sun6i-dma.c 		v_lli = dma_pool_alloc(sdev->pool, GFP_NOWAIT, &p_lli);
sdev              792 drivers/dma/sun6i-dma.c 			dev_err(sdev->slave.dev, "Failed to alloc lli memory\n");
sdev              803 drivers/dma/sun6i-dma.c 			sdev->cfg->set_drq(&v_lli->cfg, DRQ_SDRAM, vchan->port);
sdev              804 drivers/dma/sun6i-dma.c 			sdev->cfg->set_mode(&v_lli->cfg, LINEAR_MODE, IO_MODE);
sdev              809 drivers/dma/sun6i-dma.c 			sdev->cfg->set_drq(&v_lli->cfg, vchan->port, DRQ_SDRAM);
sdev              810 drivers/dma/sun6i-dma.c 			sdev->cfg->set_mode(&v_lli->cfg, IO_MODE, LINEAR_MODE);
sdev              824 drivers/dma/sun6i-dma.c 		dma_pool_free(sdev->pool, prev, virt_to_phys(prev));
sdev              841 drivers/dma/sun6i-dma.c 	struct sun6i_dma_dev *sdev = to_sun6i_dma_dev(chan->device);
sdev              851 drivers/dma/sun6i-dma.c 		spin_lock(&sdev->lock);
sdev              853 drivers/dma/sun6i-dma.c 		spin_unlock(&sdev->lock);
sdev              861 drivers/dma/sun6i-dma.c 	struct sun6i_dma_dev *sdev = to_sun6i_dma_dev(chan->device);
sdev              874 drivers/dma/sun6i-dma.c 		spin_lock(&sdev->lock);
sdev              875 drivers/dma/sun6i-dma.c 		list_add_tail(&vchan->node, &sdev->pending);
sdev              876 drivers/dma/sun6i-dma.c 		spin_unlock(&sdev->lock);
sdev              886 drivers/dma/sun6i-dma.c 	struct sun6i_dma_dev *sdev = to_sun6i_dma_dev(chan->device);
sdev              892 drivers/dma/sun6i-dma.c 	spin_lock(&sdev->lock);
sdev              894 drivers/dma/sun6i-dma.c 	spin_unlock(&sdev->lock);
sdev              967 drivers/dma/sun6i-dma.c 	struct sun6i_dma_dev *sdev = to_sun6i_dma_dev(chan->device);
sdev              974 drivers/dma/sun6i-dma.c 		spin_lock(&sdev->lock);
sdev              977 drivers/dma/sun6i-dma.c 			list_add_tail(&vchan->node, &sdev->pending);
sdev              978 drivers/dma/sun6i-dma.c 			tasklet_schedule(&sdev->task);
sdev              983 drivers/dma/sun6i-dma.c 		spin_unlock(&sdev->lock);
sdev              994 drivers/dma/sun6i-dma.c 	struct sun6i_dma_dev *sdev = to_sun6i_dma_dev(chan->device);
sdev              998 drivers/dma/sun6i-dma.c 	spin_lock_irqsave(&sdev->lock, flags);
sdev             1000 drivers/dma/sun6i-dma.c 	spin_unlock_irqrestore(&sdev->lock, flags);
sdev             1008 drivers/dma/sun6i-dma.c 	struct sun6i_dma_dev *sdev = ofdma->of_dma_data;
sdev             1013 drivers/dma/sun6i-dma.c 	if (port > sdev->max_request)
sdev             1016 drivers/dma/sun6i-dma.c 	chan = dma_get_any_slave_channel(&sdev->slave);
sdev             1026 drivers/dma/sun6i-dma.c static inline void sun6i_kill_tasklet(struct sun6i_dma_dev *sdev)
sdev             1029 drivers/dma/sun6i-dma.c 	writel(0, sdev->base + DMA_IRQ_EN(0));
sdev             1030 drivers/dma/sun6i-dma.c 	writel(0, sdev->base + DMA_IRQ_EN(1));
sdev             1033 drivers/dma/sun6i-dma.c 	atomic_inc(&sdev->tasklet_shutdown);
sdev             1036 drivers/dma/sun6i-dma.c 	devm_free_irq(sdev->slave.dev, sdev->irq, sdev);
sdev             1039 drivers/dma/sun6i-dma.c 	tasklet_kill(&sdev->task);
sdev             1042 drivers/dma/sun6i-dma.c static inline void sun6i_dma_free(struct sun6i_dma_dev *sdev)
sdev             1046 drivers/dma/sun6i-dma.c 	for (i = 0; i < sdev->num_vchans; i++) {
sdev             1047 drivers/dma/sun6i-dma.c 		struct sun6i_vchan *vchan = &sdev->vchans[i];
sdev              802 drivers/firewire/sbp2.c 	struct scsi_device *sdev;
sdev              863 drivers/firewire/sbp2.c 	sdev = __scsi_add_device(shost, 0, 0, sbp2_lun2int(lu->lun), lu);
sdev              873 drivers/firewire/sbp2.c 	if (IS_ERR(sdev))
sdev              879 drivers/firewire/sbp2.c 		scsi_remove_device(sdev);
sdev              880 drivers/firewire/sbp2.c 		scsi_device_put(sdev);
sdev              886 drivers/firewire/sbp2.c 	scsi_device_put(sdev);
sdev             1217 drivers/firewire/sbp2.c 	struct scsi_device *sdev;
sdev             1224 drivers/firewire/sbp2.c 		sdev = scsi_device_lookup(shost, 0, 0, sbp2_lun2int(lu->lun));
sdev             1225 drivers/firewire/sbp2.c 		if (sdev) {
sdev             1226 drivers/firewire/sbp2.c 			scsi_remove_device(sdev);
sdev             1227 drivers/firewire/sbp2.c 			scsi_device_put(sdev);
sdev             1491 drivers/firewire/sbp2.c static int sbp2_scsi_slave_alloc(struct scsi_device *sdev)
sdev             1493 drivers/firewire/sbp2.c 	struct sbp2_logical_unit *lu = sdev->hostdata;
sdev             1499 drivers/firewire/sbp2.c 	sdev->allow_restart = 1;
sdev             1505 drivers/firewire/sbp2.c 	blk_queue_update_dma_alignment(sdev->request_queue, 4 - 1);
sdev             1508 drivers/firewire/sbp2.c 		sdev->inquiry_len = 36;
sdev             1513 drivers/firewire/sbp2.c static int sbp2_scsi_slave_configure(struct scsi_device *sdev)
sdev             1515 drivers/firewire/sbp2.c 	struct sbp2_logical_unit *lu = sdev->hostdata;
sdev             1517 drivers/firewire/sbp2.c 	sdev->use_10_for_rw = 1;
sdev             1520 drivers/firewire/sbp2.c 		sdev->manage_start_stop = 1;
sdev             1522 drivers/firewire/sbp2.c 	if (sdev->type == TYPE_ROM)
sdev             1523 drivers/firewire/sbp2.c 		sdev->use_10_for_ms = 1;
sdev             1525 drivers/firewire/sbp2.c 	if (sdev->type == TYPE_DISK &&
sdev             1527 drivers/firewire/sbp2.c 		sdev->skip_ms_page_8 = 1;
sdev             1530 drivers/firewire/sbp2.c 		sdev->fix_capacity = 1;
sdev             1533 drivers/firewire/sbp2.c 		sdev->start_stop_pwr_cond = 1;
sdev             1536 drivers/firewire/sbp2.c 		blk_queue_max_hw_sectors(sdev->request_queue, 128 * 1024 / 512);
sdev             1566 drivers/firewire/sbp2.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             1569 drivers/firewire/sbp2.c 	if (!sdev)
sdev             1572 drivers/firewire/sbp2.c 	lu = sdev->hostdata;
sdev              808 drivers/firmware/arm_scmi/driver.c 	struct scmi_device *sdev;
sdev              810 drivers/firmware/arm_scmi/driver.c 	sdev = scmi_device_create(np, info->dev, prot_id);
sdev              811 drivers/firmware/arm_scmi/driver.c 	if (!sdev) {
sdev              817 drivers/firmware/arm_scmi/driver.c 	if (scmi_mbox_txrx_setup(info, &sdev->dev, prot_id)) {
sdev              818 drivers/firmware/arm_scmi/driver.c 		dev_err(&sdev->dev, "failed to setup transport\n");
sdev              819 drivers/firmware/arm_scmi/driver.c 		scmi_device_destroy(sdev);
sdev              824 drivers/firmware/arm_scmi/driver.c 	scmi_set_handle(sdev);
sdev               54 drivers/firmware/arm_scmi/scmi_pm_domain.c static int scmi_pm_domain_probe(struct scmi_device *sdev)
sdev               57 drivers/firmware/arm_scmi/scmi_pm_domain.c 	struct device *dev = &sdev->dev;
sdev               62 drivers/firmware/arm_scmi/scmi_pm_domain.c 	const struct scmi_handle *handle = sdev->handle;
sdev               19 drivers/gpu/drm/shmobile/shmob_drm_backlight.c 	struct shmob_drm_device *sdev = scon->connector.dev->dev_private;
sdev               20 drivers/gpu/drm/shmobile/shmob_drm_backlight.c 	const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight;
sdev               33 drivers/gpu/drm/shmobile/shmob_drm_backlight.c 	struct shmob_drm_device *sdev = scon->connector.dev->dev_private;
sdev               34 drivers/gpu/drm/shmobile/shmob_drm_backlight.c 	const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight;
sdev               57 drivers/gpu/drm/shmobile/shmob_drm_backlight.c 	struct shmob_drm_device *sdev = scon->connector.dev->dev_private;
sdev               58 drivers/gpu/drm/shmobile/shmob_drm_backlight.c 	const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight;
sdev               37 drivers/gpu/drm/shmobile/shmob_drm_crtc.c static int shmob_drm_clk_on(struct shmob_drm_device *sdev)
sdev               41 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	if (sdev->clock) {
sdev               42 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 		ret = clk_prepare_enable(sdev->clock);
sdev               50 drivers/gpu/drm/shmobile/shmob_drm_crtc.c static void shmob_drm_clk_off(struct shmob_drm_device *sdev)
sdev               52 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	if (sdev->clock)
sdev               53 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 		clk_disable_unprepare(sdev->clock);
sdev               63 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct shmob_drm_device *sdev = crtc->dev->dev_private;
sdev               64 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	const struct shmob_drm_interface_data *idata = &sdev->pdata->iface;
sdev               68 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	value = sdev->ldmt1r
sdev               76 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	lcdc_write(sdev, LDMT1R, value);
sdev               87 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 		lcdc_write(sdev, LDMT2R, value);
sdev               93 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 		lcdc_write(sdev, LDMT3R, value);
sdev               98 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	lcdc_write(sdev, LDHCNR, value);
sdev              102 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	lcdc_write(sdev, LDHSYNR, value);
sdev              107 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	lcdc_write(sdev, LDHAJR, value);
sdev              111 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	lcdc_write(sdev, LDVLNR, value);
sdev              115 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	lcdc_write(sdev, LDVSYNR, value);
sdev              120 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct shmob_drm_device *sdev = scrtc->crtc.dev->dev_private;
sdev              123 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	value = lcdc_read(sdev, LDCNT2R);
sdev              125 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 		lcdc_write(sdev, LDCNT2R, value | LDCNT2R_DO);
sdev              127 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 		lcdc_write(sdev, LDCNT2R, value & ~LDCNT2R_DO);
sdev              131 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 		value = lcdc_read(sdev, LDPMR) & LDPMR_LPS;
sdev              140 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 		lcdc_write(sdev, LDDCKSTPR, LDDCKSTPR_DCKSTP);
sdev              154 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct shmob_drm_device *sdev = crtc->dev->dev_private;
sdev              155 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	const struct shmob_drm_interface_data *idata = &sdev->pdata->iface;
sdev              157 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct drm_device *dev = sdev->ddev;
sdev              170 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	ret = shmob_drm_clk_on(sdev);
sdev              175 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	lcdc_write(sdev, LDCNT2R, lcdc_read(sdev, LDCNT2R) | LDCNT2R_BR);
sdev              176 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	lcdc_wait_bit(sdev, LDCNT2R, LDCNT2R_BR, 0);
sdev              177 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	lcdc_write(sdev, LDCNT2R, LDCNT2R_ME);
sdev              181 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	lcdc_write(sdev, LDINTR, 0);
sdev              184 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	lcdc_write(sdev, LDPMR, 0);
sdev              186 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	value = sdev->lddckr;
sdev              191 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 		lcdc_write(sdev, LDDCKPAT1R, 0);
sdev              192 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 		lcdc_write(sdev, LDDCKPAT2R, (1 << (idata->clk_div / 2)) - 1);
sdev              200 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	lcdc_write(sdev, LDDCKR, value);
sdev              201 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	lcdc_write(sdev, LDDCKSTPR, 0);
sdev              202 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	lcdc_wait_bit(sdev, LDDCKSTPR, ~0, 0);
sdev              210 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	lcdc_write(sdev, LDDFR, format->lddfr | LDDFR_CF1);
sdev              211 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	lcdc_write(sdev, LDMLSR, scrtc->line_size);
sdev              212 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	lcdc_write(sdev, LDSA1R, scrtc->dma[0]);
sdev              214 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 		lcdc_write(sdev, LDSA2R, scrtc->dma[1]);
sdev              215 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	lcdc_write(sdev, LDSM1R, 0);
sdev              236 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	lcdc_write(sdev, LDDDSR, value);
sdev              245 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	lcdc_write(sdev, LDCNT1R, LDCNT1R_DE);
sdev              255 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct shmob_drm_device *sdev = crtc->dev->dev_private;
sdev              264 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	lcdc_write(sdev, LDCNT1R, 0);
sdev              267 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	shmob_drm_clk_off(sdev);
sdev              310 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct shmob_drm_device *sdev = crtc->dev->dev_private;
sdev              314 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	lcdc_write_mirror(sdev, LDSA1R, scrtc->dma[0]);
sdev              316 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 		lcdc_write_mirror(sdev, LDSA2R, scrtc->dma[1]);
sdev              318 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	lcdc_write(sdev, LDRCNTR, lcdc_read(sdev, LDRCNTR) ^ LDRCNTR_MRS);
sdev              350 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct shmob_drm_device *sdev = crtc->dev->dev_private;
sdev              355 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 		dev_dbg(sdev->dev, "mode_set: unsupported format %08x\n",
sdev              436 drivers/gpu/drm/shmobile/shmob_drm_crtc.c static void shmob_drm_crtc_enable_vblank(struct shmob_drm_device *sdev,
sdev              443 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	spin_lock_irqsave(&sdev->irq_lock, flags);
sdev              444 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	ldintr = lcdc_read(sdev, LDINTR) | LDINTR_STATUS_MASK;
sdev              449 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	lcdc_write(sdev, LDINTR, ldintr);
sdev              450 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	spin_unlock_irqrestore(&sdev->irq_lock, flags);
sdev              455 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct shmob_drm_device *sdev = crtc->dev->dev_private;
sdev              457 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	shmob_drm_crtc_enable_vblank(sdev, true);
sdev              464 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct shmob_drm_device *sdev = crtc->dev->dev_private;
sdev              466 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	shmob_drm_crtc_enable_vblank(sdev, false);
sdev              477 drivers/gpu/drm/shmobile/shmob_drm_crtc.c int shmob_drm_crtc_create(struct shmob_drm_device *sdev)
sdev              479 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct drm_crtc *crtc = &sdev->crtc.crtc;
sdev              482 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	sdev->crtc.dpms = DRM_MODE_DPMS_OFF;
sdev              484 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	ret = drm_crtc_init(sdev->ddev, crtc, &crtc_funcs);
sdev              503 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct shmob_drm_device *sdev = encoder->dev->dev_private;
sdev              504 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct shmob_drm_connector *scon = &sdev->connector;
sdev              519 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct shmob_drm_device *sdev = dev->dev_private;
sdev              520 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct drm_connector *connector = &sdev->connector.connector;
sdev              570 drivers/gpu/drm/shmobile/shmob_drm_crtc.c int shmob_drm_encoder_create(struct shmob_drm_device *sdev)
sdev              572 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct drm_encoder *encoder = &sdev->encoder.encoder;
sdev              575 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	sdev->encoder.dpms = DRM_MODE_DPMS_OFF;
sdev              579 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	ret = drm_encoder_init(sdev->ddev, encoder, &encoder_funcs,
sdev              598 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct shmob_drm_device *sdev = connector->dev->dev_private;
sdev              606 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	mode->clock = sdev->pdata->panel.mode.clock;
sdev              607 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	mode->hdisplay = sdev->pdata->panel.mode.hdisplay;
sdev              608 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	mode->hsync_start = sdev->pdata->panel.mode.hsync_start;
sdev              609 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	mode->hsync_end = sdev->pdata->panel.mode.hsync_end;
sdev              610 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	mode->htotal = sdev->pdata->panel.mode.htotal;
sdev              611 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	mode->vdisplay = sdev->pdata->panel.mode.vdisplay;
sdev              612 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	mode->vsync_start = sdev->pdata->panel.mode.vsync_start;
sdev              613 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	mode->vsync_end = sdev->pdata->panel.mode.vsync_end;
sdev              614 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	mode->vtotal = sdev->pdata->panel.mode.vtotal;
sdev              615 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	mode->flags = sdev->pdata->panel.mode.flags;
sdev              620 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	connector->display_info.width_mm = sdev->pdata->panel.width_mm;
sdev              621 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	connector->display_info.height_mm = sdev->pdata->panel.height_mm;
sdev              654 drivers/gpu/drm/shmobile/shmob_drm_crtc.c int shmob_drm_connector_create(struct shmob_drm_device *sdev,
sdev              657 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct drm_connector *connector = &sdev->connector.connector;
sdev              660 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	sdev->connector.encoder = encoder;
sdev              662 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	connector->display_info.width_mm = sdev->pdata->panel.width_mm;
sdev              663 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	connector->display_info.height_mm = sdev->pdata->panel.height_mm;
sdev              665 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	ret = drm_connector_init(sdev->ddev, connector, &connector_funcs,
sdev              672 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	ret = shmob_drm_backlight_init(&sdev->connector);
sdev              682 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 		sdev->ddev->mode_config.dpms_property, DRM_MODE_DPMS_OFF);
sdev              687 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	shmob_drm_backlight_exit(&sdev->connector);
sdev               46 drivers/gpu/drm/shmobile/shmob_drm_crtc.h int shmob_drm_crtc_create(struct shmob_drm_device *sdev);
sdev               51 drivers/gpu/drm/shmobile/shmob_drm_crtc.h int shmob_drm_encoder_create(struct shmob_drm_device *sdev);
sdev               52 drivers/gpu/drm/shmobile/shmob_drm_crtc.h int shmob_drm_connector_create(struct shmob_drm_device *sdev,
sdev               34 drivers/gpu/drm/shmobile/shmob_drm_drv.c static int shmob_drm_init_interface(struct shmob_drm_device *sdev)
sdev               58 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	if (sdev->pdata->iface.interface >= ARRAY_SIZE(ldmt1r)) {
sdev               59 drivers/gpu/drm/shmobile/shmob_drm_drv.c 		dev_err(sdev->dev, "invalid interface type %u\n",
sdev               60 drivers/gpu/drm/shmobile/shmob_drm_drv.c 			sdev->pdata->iface.interface);
sdev               64 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	sdev->ldmt1r = ldmt1r[sdev->pdata->iface.interface];
sdev               68 drivers/gpu/drm/shmobile/shmob_drm_drv.c static int shmob_drm_setup_clocks(struct shmob_drm_device *sdev,
sdev               77 drivers/gpu/drm/shmobile/shmob_drm_drv.c 		sdev->lddckr = LDDCKR_ICKSEL_BUS;
sdev               81 drivers/gpu/drm/shmobile/shmob_drm_drv.c 		sdev->lddckr = LDDCKR_ICKSEL_MIPI;
sdev               85 drivers/gpu/drm/shmobile/shmob_drm_drv.c 		sdev->lddckr = LDDCKR_ICKSEL_HDMI;
sdev               91 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	clk = devm_clk_get(sdev->dev, clkname);
sdev               93 drivers/gpu/drm/shmobile/shmob_drm_drv.c 		dev_err(sdev->dev, "cannot get dot clock %s\n", clkname);
sdev               97 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	sdev->clock = clk;
sdev              108 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	struct shmob_drm_device *sdev = dev->dev_private;
sdev              116 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	spin_lock_irqsave(&sdev->irq_lock, flags);
sdev              117 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	status = lcdc_read(sdev, LDINTR);
sdev              118 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	lcdc_write(sdev, LDINTR, status ^ LDINTR_STATUS_MASK);
sdev              119 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	spin_unlock_irqrestore(&sdev->irq_lock, flags);
sdev              123 drivers/gpu/drm/shmobile/shmob_drm_drv.c 		shmob_drm_crtc_finish_page_flip(&sdev->crtc);
sdev              159 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	struct shmob_drm_device *sdev = dev_get_drvdata(dev);
sdev              161 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	drm_kms_helper_poll_disable(sdev->ddev);
sdev              162 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	shmob_drm_crtc_suspend(&sdev->crtc);
sdev              169 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	struct shmob_drm_device *sdev = dev_get_drvdata(dev);
sdev              171 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	drm_modeset_lock_all(sdev->ddev);
sdev              172 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	shmob_drm_crtc_resume(&sdev->crtc);
sdev              173 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	drm_modeset_unlock_all(sdev->ddev);
sdev              175 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	drm_kms_helper_poll_enable(sdev->ddev);
sdev              190 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	struct shmob_drm_device *sdev = platform_get_drvdata(pdev);
sdev              191 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	struct drm_device *ddev = sdev->ddev;
sdev              205 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	struct shmob_drm_device *sdev;
sdev              220 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	sdev = devm_kzalloc(&pdev->dev, sizeof(*sdev), GFP_KERNEL);
sdev              221 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	if (sdev == NULL)
sdev              224 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	sdev->dev = &pdev->dev;
sdev              225 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	sdev->pdata = pdata;
sdev              226 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	spin_lock_init(&sdev->irq_lock);
sdev              228 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	platform_set_drvdata(pdev, sdev);
sdev              231 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	sdev->mmio = devm_ioremap_resource(&pdev->dev, res);
sdev              232 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	if (IS_ERR(sdev->mmio))
sdev              233 drivers/gpu/drm/shmobile/shmob_drm_drv.c 		return PTR_ERR(sdev->mmio);
sdev              235 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	ret = shmob_drm_setup_clocks(sdev, pdata->clk_source);
sdev              239 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	ret = shmob_drm_init_interface(sdev);
sdev              248 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	sdev->ddev = ddev;
sdev              249 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	ddev->dev_private = sdev;
sdev              251 drivers/gpu/drm/shmobile/shmob_drm_drv.c 	ret = shmob_drm_modeset_init(sdev);
sdev              258 drivers/gpu/drm/shmobile/shmob_drm_drv.c 		ret = shmob_drm_plane_create(sdev, i);
sdev              127 drivers/gpu/drm/shmobile/shmob_drm_kms.c int shmob_drm_modeset_init(struct shmob_drm_device *sdev)
sdev              129 drivers/gpu/drm/shmobile/shmob_drm_kms.c 	drm_mode_config_init(sdev->ddev);
sdev              131 drivers/gpu/drm/shmobile/shmob_drm_kms.c 	shmob_drm_crtc_create(sdev);
sdev              132 drivers/gpu/drm/shmobile/shmob_drm_kms.c 	shmob_drm_encoder_create(sdev);
sdev              133 drivers/gpu/drm/shmobile/shmob_drm_kms.c 	shmob_drm_connector_create(sdev, &sdev->encoder.encoder);
sdev              135 drivers/gpu/drm/shmobile/shmob_drm_kms.c 	drm_kms_helper_poll_init(sdev->ddev);
sdev              137 drivers/gpu/drm/shmobile/shmob_drm_kms.c 	sdev->ddev->mode_config.min_width = 0;
sdev              138 drivers/gpu/drm/shmobile/shmob_drm_kms.c 	sdev->ddev->mode_config.min_height = 0;
sdev              139 drivers/gpu/drm/shmobile/shmob_drm_kms.c 	sdev->ddev->mode_config.max_width = 4095;
sdev              140 drivers/gpu/drm/shmobile/shmob_drm_kms.c 	sdev->ddev->mode_config.max_height = 4095;
sdev              141 drivers/gpu/drm/shmobile/shmob_drm_kms.c 	sdev->ddev->mode_config.funcs = &shmob_drm_mode_config_funcs;
sdev              143 drivers/gpu/drm/shmobile/shmob_drm_kms.c 	drm_helper_disable_unused_functions(sdev->ddev);
sdev               27 drivers/gpu/drm/shmobile/shmob_drm_kms.h int shmob_drm_modeset_init(struct shmob_drm_device *sdev);
sdev               63 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	struct shmob_drm_device *sdev = splane->plane.dev->dev_private;
sdev              112 drivers/gpu/drm/shmobile/shmob_drm_plane.c #define plane_reg_dump(sdev, splane, reg) \
sdev              113 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	dev_dbg(sdev->ddev->dev, "%s(%u): %s 0x%08x 0x%08x\n", __func__, \
sdev              115 drivers/gpu/drm/shmobile/shmob_drm_plane.c 		lcdc_read(sdev, reg(splane->index)), \
sdev              116 drivers/gpu/drm/shmobile/shmob_drm_plane.c 		lcdc_read(sdev, reg(splane->index) + LCDC_SIDE_B_OFFSET))
sdev              118 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	plane_reg_dump(sdev, splane, LDBnBSIFR);
sdev              119 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	plane_reg_dump(sdev, splane, LDBnBSSZR);
sdev              120 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	plane_reg_dump(sdev, splane, LDBnBLOCR);
sdev              121 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	plane_reg_dump(sdev, splane, LDBnBSMWR);
sdev              122 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	plane_reg_dump(sdev, splane, LDBnBSAYR);
sdev              123 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	plane_reg_dump(sdev, splane, LDBnBSACR);
sdev              125 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	lcdc_write(sdev, LDBCR, LDBCR_UPC(splane->index));
sdev              126 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	dev_dbg(sdev->ddev->dev, "%s(%u): %s 0x%08x\n", __func__, splane->index,
sdev              127 drivers/gpu/drm/shmobile/shmob_drm_plane.c 		"LDBCR", lcdc_read(sdev, LDBCR));
sdev              129 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	lcdc_write(sdev, LDBnBSIFR(splane->index), format);
sdev              131 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	lcdc_write(sdev, LDBnBSSZR(splane->index),
sdev              134 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	lcdc_write(sdev, LDBnBLOCR(splane->index),
sdev              137 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	lcdc_write(sdev, LDBnBSMWR(splane->index),
sdev              142 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	lcdc_write(sdev, LDBnBSAYR(splane->index), splane->dma[0]);
sdev              144 drivers/gpu/drm/shmobile/shmob_drm_plane.c 		lcdc_write(sdev, LDBnBSACR(splane->index), splane->dma[1]);
sdev              146 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	lcdc_write(sdev, LDBCR,
sdev              148 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	dev_dbg(sdev->ddev->dev, "%s(%u): %s 0x%08x\n", __func__, splane->index,
sdev              149 drivers/gpu/drm/shmobile/shmob_drm_plane.c 		"LDBCR", lcdc_read(sdev, LDBCR));
sdev              151 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	plane_reg_dump(sdev, splane, LDBnBSIFR);
sdev              152 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	plane_reg_dump(sdev, splane, LDBnBSSZR);
sdev              153 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	plane_reg_dump(sdev, splane, LDBnBLOCR);
sdev              154 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	plane_reg_dump(sdev, splane, LDBnBSMWR);
sdev              155 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	plane_reg_dump(sdev, splane, LDBnBSAYR);
sdev              156 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	plane_reg_dump(sdev, splane, LDBnBSACR);
sdev              178 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	struct shmob_drm_device *sdev = plane->dev->dev_private;
sdev              183 drivers/gpu/drm/shmobile/shmob_drm_plane.c 		dev_dbg(sdev->dev, "update_plane: unsupported format %08x\n",
sdev              189 drivers/gpu/drm/shmobile/shmob_drm_plane.c 		dev_dbg(sdev->dev, "%s: scaling not supported\n", __func__);
sdev              210 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	struct shmob_drm_device *sdev = plane->dev->dev_private;
sdev              214 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	lcdc_write(sdev, LDBnBSIFR(splane->index), 0);
sdev              242 drivers/gpu/drm/shmobile/shmob_drm_plane.c int shmob_drm_plane_create(struct shmob_drm_device *sdev, unsigned int index)
sdev              247 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	splane = devm_kzalloc(sdev->dev, sizeof(*splane), GFP_KERNEL);
sdev              254 drivers/gpu/drm/shmobile/shmob_drm_plane.c 	ret = drm_plane_init(sdev->ddev, &splane->plane, 1,
sdev               16 drivers/gpu/drm/shmobile/shmob_drm_plane.h int shmob_drm_plane_create(struct shmob_drm_device *sdev, unsigned int index);
sdev              278 drivers/gpu/drm/shmobile/shmob_drm_regs.h static inline void lcdc_write_mirror(struct shmob_drm_device *sdev, u32 reg,
sdev              281 drivers/gpu/drm/shmobile/shmob_drm_regs.h 	iowrite32(data, sdev->mmio + reg + LCDC_MIRROR_OFFSET);
sdev              284 drivers/gpu/drm/shmobile/shmob_drm_regs.h static inline void lcdc_write(struct shmob_drm_device *sdev, u32 reg, u32 data)
sdev              286 drivers/gpu/drm/shmobile/shmob_drm_regs.h 	iowrite32(data, sdev->mmio + reg);
sdev              288 drivers/gpu/drm/shmobile/shmob_drm_regs.h 		iowrite32(data, sdev->mmio + reg + LCDC_SIDE_B_OFFSET);
sdev              291 drivers/gpu/drm/shmobile/shmob_drm_regs.h static inline u32 lcdc_read(struct shmob_drm_device *sdev, u32 reg)
sdev              293 drivers/gpu/drm/shmobile/shmob_drm_regs.h 	return ioread32(sdev->mmio + reg);
sdev              296 drivers/gpu/drm/shmobile/shmob_drm_regs.h static inline int lcdc_wait_bit(struct shmob_drm_device *sdev, u32 reg,
sdev              301 drivers/gpu/drm/shmobile/shmob_drm_regs.h 	while ((lcdc_read(sdev, reg) & mask) != until) {
sdev              159 drivers/hwmon/scmi-hwmon.c static int scmi_hwmon_probe(struct scmi_device *sdev)
sdev              168 drivers/hwmon/scmi-hwmon.c 	struct device *hwdev, *dev = &sdev->dev;
sdev              171 drivers/hwmon/scmi-hwmon.c 	const struct scmi_handle *handle = sdev->handle;
sdev               41 drivers/iio/resolver/ad2s1200.c 	struct spi_device *sdev;
sdev               82 drivers/iio/resolver/ad2s1200.c 		ret = spi_read(st->sdev, &st->rx, 2);
sdev              145 drivers/iio/resolver/ad2s1200.c 	st->sdev = spi;
sdev               26 drivers/iio/resolver/ad2s90.c 	struct spi_device *sdev;
sdev               50 drivers/iio/resolver/ad2s90.c 		ret = spi_read(st->sdev, st->rx, 2);
sdev               96 drivers/iio/resolver/ad2s90.c 	st->sdev = spi;
sdev              108 drivers/infiniband/sw/siw/siw.h 	struct siw_device *sdev;
sdev              159 drivers/infiniband/sw/siw/siw.h 	struct siw_device *sdev;
sdev              431 drivers/infiniband/sw/siw/siw.h 	struct siw_device *sdev;
sdev              530 drivers/infiniband/sw/siw/siw.h int siw_qp_add(struct siw_device *sdev, struct siw_qp *qp);
sdev              552 drivers/infiniband/sw/siw/siw.h int siw_get_tx_cpu(struct siw_device *sdev);
sdev              610 drivers/infiniband/sw/siw/siw.h static inline struct siw_qp *siw_qp_id2obj(struct siw_device *sdev, int id)
sdev              615 drivers/infiniband/sw/siw/siw.h 	qp = xa_load(&sdev->qp_xa, id);
sdev              721 drivers/infiniband/sw/siw/siw.h 	ibdev_dbg(&qp->sdev->base_dev, "QP[%u] %s: " fmt, qp_id(qp), __func__, \
sdev              733 drivers/infiniband/sw/siw/siw.h 	ibdev_dbg(&mem->sdev->base_dev,                                        \
sdev              737 drivers/infiniband/sw/siw/siw.h 	ibdev_dbg(&cep->sdev->base_dev, "CEP[0x%pK] %s: " fmt,                  \
sdev              160 drivers/infiniband/sw/siw/siw_cm.c static struct siw_cep *siw_cep_alloc(struct siw_device *sdev)
sdev              176 drivers/infiniband/sw/siw/siw_cm.c 	cep->sdev = sdev;
sdev              179 drivers/infiniband/sw/siw/siw_cm.c 	spin_lock_irqsave(&sdev->lock, flags);
sdev              180 drivers/infiniband/sw/siw/siw_cm.c 	list_add_tail(&cep->devq, &sdev->cep_list);
sdev              181 drivers/infiniband/sw/siw/siw_cm.c 	spin_unlock_irqrestore(&sdev->lock, flags);
sdev              252 drivers/infiniband/sw/siw/siw_cm.c 	struct siw_device *sdev = cep->sdev;
sdev              264 drivers/infiniband/sw/siw/siw_cm.c 	spin_lock_irqsave(&sdev->lock, flags);
sdev              266 drivers/infiniband/sw/siw/siw_cm.c 	spin_unlock_irqrestore(&sdev->lock, flags);
sdev              795 drivers/infiniband/sw/siw/siw_cm.c 		     rep_ord > cep->sdev->attrs.max_ird)) {
sdev              798 drivers/infiniband/sw/siw/siw_cm.c 				    cep->sdev->attrs.max_ord);
sdev              917 drivers/infiniband/sw/siw/siw_cm.c 	new_cep = siw_cep_alloc(cep->sdev);
sdev             1338 drivers/infiniband/sw/siw/siw_cm.c 	struct siw_device *sdev = to_siw_dev(id->device);
sdev             1351 drivers/infiniband/sw/siw/siw_cm.c 	if (params->ird > sdev->attrs.max_ird ||
sdev             1352 drivers/infiniband/sw/siw/siw_cm.c 	    params->ord > sdev->attrs.max_ord)
sdev             1369 drivers/infiniband/sw/siw/siw_cm.c 	qp = siw_qp_id2obj(sdev, params->qpn);
sdev             1416 drivers/infiniband/sw/siw/siw_cm.c 	cep = siw_cep_alloc(sdev);
sdev             1562 drivers/infiniband/sw/siw/siw_cm.c 	struct siw_device *sdev = to_siw_dev(id->device);
sdev             1588 drivers/infiniband/sw/siw/siw_cm.c 	qp = siw_qp_id2obj(sdev, params->qpn);
sdev             1608 drivers/infiniband/sw/siw/siw_cm.c 	if (params->ord > sdev->attrs.max_ord ||
sdev             1609 drivers/infiniband/sw/siw/siw_cm.c 	    params->ird > sdev->attrs.max_ird) {
sdev             1613 drivers/infiniband/sw/siw/siw_cm.c 			qp_id(qp), params->ord, sdev->attrs.max_ord,
sdev             1614 drivers/infiniband/sw/siw/siw_cm.c 			params->ird, sdev->attrs.max_ird);
sdev             1645 drivers/infiniband/sw/siw/siw_cm.c 			    cep->ird <= sdev->attrs.max_ird)
sdev             1796 drivers/infiniband/sw/siw/siw_cm.c 	struct siw_device *sdev = to_siw_dev(id->device);
sdev             1822 drivers/infiniband/sw/siw/siw_cm.c 			s->sk->sk_bound_dev_if = sdev->netdev->ifindex;
sdev             1831 drivers/infiniband/sw/siw/siw_cm.c 			s->sk->sk_bound_dev_if = sdev->netdev->ifindex;
sdev             1840 drivers/infiniband/sw/siw/siw_cm.c 	cep = siw_cep_alloc(sdev);
sdev               39 drivers/infiniband/sw/siw/siw_cm.h 	struct siw_device *sdev;
sdev               63 drivers/infiniband/sw/siw/siw_main.c static int siw_device_register(struct siw_device *sdev, const char *name)
sdev               65 drivers/infiniband/sw/siw/siw_main.c 	struct ib_device *base_dev = &sdev->base_dev;
sdev               74 drivers/infiniband/sw/siw/siw_main.c 	sdev->vendor_part_id = dev_id++;
sdev               76 drivers/infiniband/sw/siw/siw_main.c 	siw_dbg(base_dev, "HWaddr=%pM\n", sdev->netdev->dev_addr);
sdev               83 drivers/infiniband/sw/siw/siw_main.c 	struct siw_device *sdev = to_siw_dev(base_dev);
sdev               85 drivers/infiniband/sw/siw/siw_main.c 	xa_destroy(&sdev->qp_xa);
sdev               86 drivers/infiniband/sw/siw/siw_main.c 	xa_destroy(&sdev->mem_xa);
sdev              185 drivers/infiniband/sw/siw/siw_main.c int siw_get_tx_cpu(struct siw_device *sdev)
sdev              188 drivers/infiniband/sw/siw/siw_main.c 	int i, num_cpus, cpu, min_use, node = sdev->numa_node, tx_cpu = -1;
sdev              220 drivers/infiniband/sw/siw/siw_main.c 	siw_dbg(&sdev->base_dev,
sdev              304 drivers/infiniband/sw/siw/siw_main.c 	struct siw_device *sdev = NULL;
sdev              324 drivers/infiniband/sw/siw/siw_main.c 	sdev = ib_alloc_device(siw_device, base_dev);
sdev              325 drivers/infiniband/sw/siw/siw_main.c 	if (!sdev)
sdev              328 drivers/infiniband/sw/siw/siw_main.c 	base_dev = &sdev->base_dev;
sdev              330 drivers/infiniband/sw/siw/siw_main.c 	sdev->netdev = netdev;
sdev              382 drivers/infiniband/sw/siw/siw_main.c 	xa_init_flags(&sdev->qp_xa, XA_FLAGS_ALLOC1);
sdev              383 drivers/infiniband/sw/siw/siw_main.c 	xa_init_flags(&sdev->mem_xa, XA_FLAGS_ALLOC1);
sdev              396 drivers/infiniband/sw/siw/siw_main.c 	sdev->attrs.max_qp = SIW_MAX_QP;
sdev              397 drivers/infiniband/sw/siw/siw_main.c 	sdev->attrs.max_qp_wr = SIW_MAX_QP_WR;
sdev              398 drivers/infiniband/sw/siw/siw_main.c 	sdev->attrs.max_ord = SIW_MAX_ORD_QP;
sdev              399 drivers/infiniband/sw/siw/siw_main.c 	sdev->attrs.max_ird = SIW_MAX_IRD_QP;
sdev              400 drivers/infiniband/sw/siw/siw_main.c 	sdev->attrs.max_sge = SIW_MAX_SGE;
sdev              401 drivers/infiniband/sw/siw/siw_main.c 	sdev->attrs.max_sge_rd = SIW_MAX_SGE_RD;
sdev              402 drivers/infiniband/sw/siw/siw_main.c 	sdev->attrs.max_cq = SIW_MAX_CQ;
sdev              403 drivers/infiniband/sw/siw/siw_main.c 	sdev->attrs.max_cqe = SIW_MAX_CQE;
sdev              404 drivers/infiniband/sw/siw/siw_main.c 	sdev->attrs.max_mr = SIW_MAX_MR;
sdev              405 drivers/infiniband/sw/siw/siw_main.c 	sdev->attrs.max_pd = SIW_MAX_PD;
sdev              406 drivers/infiniband/sw/siw/siw_main.c 	sdev->attrs.max_mw = SIW_MAX_MW;
sdev              407 drivers/infiniband/sw/siw/siw_main.c 	sdev->attrs.max_fmr = SIW_MAX_FMR;
sdev              408 drivers/infiniband/sw/siw/siw_main.c 	sdev->attrs.max_srq = SIW_MAX_SRQ;
sdev              409 drivers/infiniband/sw/siw/siw_main.c 	sdev->attrs.max_srq_wr = SIW_MAX_SRQ_WR;
sdev              410 drivers/infiniband/sw/siw/siw_main.c 	sdev->attrs.max_srq_sge = SIW_MAX_SGE;
sdev              412 drivers/infiniband/sw/siw/siw_main.c 	INIT_LIST_HEAD(&sdev->cep_list);
sdev              413 drivers/infiniband/sw/siw/siw_main.c 	INIT_LIST_HEAD(&sdev->qp_list);
sdev              415 drivers/infiniband/sw/siw/siw_main.c 	atomic_set(&sdev->num_ctx, 0);
sdev              416 drivers/infiniband/sw/siw/siw_main.c 	atomic_set(&sdev->num_srq, 0);
sdev              417 drivers/infiniband/sw/siw/siw_main.c 	atomic_set(&sdev->num_qp, 0);
sdev              418 drivers/infiniband/sw/siw/siw_main.c 	atomic_set(&sdev->num_cq, 0);
sdev              419 drivers/infiniband/sw/siw/siw_main.c 	atomic_set(&sdev->num_mr, 0);
sdev              420 drivers/infiniband/sw/siw/siw_main.c 	atomic_set(&sdev->num_pd, 0);
sdev              422 drivers/infiniband/sw/siw/siw_main.c 	sdev->numa_node = dev_to_node(parent);
sdev              423 drivers/infiniband/sw/siw/siw_main.c 	spin_lock_init(&sdev->lock);
sdev              425 drivers/infiniband/sw/siw/siw_main.c 	return sdev;
sdev              438 drivers/infiniband/sw/siw/siw_main.c 	struct siw_device *sdev =
sdev              447 drivers/infiniband/sw/siw/siw_main.c 	list_for_each_safe(pos, tmp, &sdev->qp_list) {
sdev              454 drivers/infiniband/sw/siw/siw_main.c 	ib_device_put(&sdev->base_dev);
sdev              457 drivers/infiniband/sw/siw/siw_main.c static void siw_device_goes_down(struct siw_device *sdev)
sdev              459 drivers/infiniband/sw/siw/siw_main.c 	if (ib_device_try_get(&sdev->base_dev)) {
sdev              460 drivers/infiniband/sw/siw/siw_main.c 		INIT_WORK(&sdev->netdev_down, siw_netdev_down);
sdev              461 drivers/infiniband/sw/siw/siw_main.c 		schedule_work(&sdev->netdev_down);
sdev              470 drivers/infiniband/sw/siw/siw_main.c 	struct siw_device *sdev;
sdev              481 drivers/infiniband/sw/siw/siw_main.c 	sdev = to_siw_dev(base_dev);
sdev              485 drivers/infiniband/sw/siw/siw_main.c 		sdev->state = IB_PORT_ACTIVE;
sdev              486 drivers/infiniband/sw/siw/siw_main.c 		siw_port_event(sdev, 1, IB_EVENT_PORT_ACTIVE);
sdev              490 drivers/infiniband/sw/siw/siw_main.c 		siw_device_goes_down(sdev);
sdev              494 drivers/infiniband/sw/siw/siw_main.c 		sdev->state = IB_PORT_DOWN;
sdev              495 drivers/infiniband/sw/siw/siw_main.c 		siw_port_event(sdev, 1, IB_EVENT_PORT_ERR);
sdev              508 drivers/infiniband/sw/siw/siw_main.c 		ib_unregister_device_queued(&sdev->base_dev);
sdev              512 drivers/infiniband/sw/siw/siw_main.c 		siw_port_event(sdev, 1, IB_EVENT_LID_CHANGE);
sdev              524 drivers/infiniband/sw/siw/siw_main.c 	ib_device_put(&sdev->base_dev);
sdev              536 drivers/infiniband/sw/siw/siw_main.c 	struct siw_device *sdev = NULL;
sdev              547 drivers/infiniband/sw/siw/siw_main.c 	sdev = siw_device_create(netdev);
sdev              548 drivers/infiniband/sw/siw/siw_main.c 	if (sdev) {
sdev              552 drivers/infiniband/sw/siw/siw_main.c 			sdev->state = IB_PORT_ACTIVE;
sdev              554 drivers/infiniband/sw/siw/siw_main.c 			sdev->state = IB_PORT_DOWN;
sdev              556 drivers/infiniband/sw/siw/siw_main.c 		rv = siw_device_register(sdev, basedev_name);
sdev              558 drivers/infiniband/sw/siw/siw_main.c 			ib_dealloc_device(&sdev->base_dev);
sdev               21 drivers/infiniband/sw/siw/siw_mem.c int siw_mem_add(struct siw_device *sdev, struct siw_mem *m)
sdev               29 drivers/infiniband/sw/siw/siw_mem.c 	if (xa_alloc_cyclic(&sdev->mem_xa, &id, m, limit, &next,
sdev               48 drivers/infiniband/sw/siw/siw_mem.c struct siw_mem *siw_mem_id2obj(struct siw_device *sdev, int stag_index)
sdev               53 drivers/infiniband/sw/siw/siw_mem.c 	mem = xa_load(&sdev->mem_xa, stag_index);
sdev               92 drivers/infiniband/sw/siw/siw_mem.c 	struct siw_device *sdev = to_siw_dev(pd->device);
sdev              102 drivers/infiniband/sw/siw/siw_mem.c 	mem->sdev = sdev;
sdev              114 drivers/infiniband/sw/siw/siw_mem.c 	if (xa_alloc_cyclic(&sdev->mem_xa, &id, mem, limit, &next,
sdev              135 drivers/infiniband/sw/siw/siw_mem.c 	found = xa_erase(&mem->sdev->mem_xa, mem->stag >> 8);
sdev              225 drivers/infiniband/sw/siw/siw_mem.c 	struct siw_device *sdev = to_siw_dev(pd->device);
sdev              234 drivers/infiniband/sw/siw/siw_mem.c 		new = siw_mem_id2obj(sdev, sge->lkey >> 8);
sdev              294 drivers/infiniband/sw/siw/siw_mem.c 	struct siw_device *sdev = to_siw_dev(pd->device);
sdev              295 drivers/infiniband/sw/siw/siw_mem.c 	struct siw_mem *mem = siw_mem_id2obj(sdev, stag >> 8);
sdev               13 drivers/infiniband/sw/siw/siw_mem.h struct siw_mem *siw_mem_id2obj(struct siw_device *sdev, int stag_index);
sdev               14 drivers/infiniband/sw/siw/siw_mem.h int siw_mem_add(struct siw_device *sdev, struct siw_mem *m);
sdev             1298 drivers/infiniband/sw/siw/siw_qp.c int siw_qp_add(struct siw_device *sdev, struct siw_qp *qp)
sdev             1300 drivers/infiniband/sw/siw/siw_qp.c 	int rv = xa_alloc(&sdev->qp_xa, &qp->ib_qp->qp_num, qp, xa_limit_32b,
sdev             1305 drivers/infiniband/sw/siw/siw_qp.c 		qp->sdev = sdev;
sdev             1316 drivers/infiniband/sw/siw/siw_qp.c 	struct siw_device *sdev = qp->sdev;
sdev             1322 drivers/infiniband/sw/siw/siw_qp.c 	found = xa_erase(&sdev->qp_xa, qp_id(qp));
sdev             1324 drivers/infiniband/sw/siw/siw_qp.c 	spin_lock_irqsave(&sdev->lock, flags);
sdev             1326 drivers/infiniband/sw/siw/siw_qp.c 	spin_unlock_irqrestore(&sdev->lock, flags);
sdev             1335 drivers/infiniband/sw/siw/siw_qp.c 	atomic_dec(&sdev->num_qp);
sdev              561 drivers/infiniband/sw/siw/siw_qp_rx.c 		rx_mem(frx) = siw_mem_id2obj(qp->sdev, srx->ddp_stag >> 8);
sdev              922 drivers/infiniband/sw/siw/siw_qp_tx.c 	struct siw_device *sdev = to_siw_dev(pd->device);
sdev              938 drivers/infiniband/sw/siw/siw_qp_tx.c 	mem = siw_mem_id2obj(sdev, sqe->rkey  >> 8);
sdev             1255 drivers/infiniband/sw/siw/siw_qp_tx.c 		qp->tx_cpu = siw_get_tx_cpu(qp->sdev);
sdev               86 drivers/infiniband/sw/siw/siw_verbs.c 		siw_dbg(&uctx->sdev->base_dev, "mmap lookup failed: %lu, %u\n",
sdev               99 drivers/infiniband/sw/siw/siw_verbs.c 	struct siw_device *sdev = to_siw_dev(base_ctx->device);
sdev              104 drivers/infiniband/sw/siw/siw_verbs.c 	if (atomic_inc_return(&sdev->num_ctx) > SIW_MAX_CONTEXT) {
sdev              110 drivers/infiniband/sw/siw/siw_verbs.c 	ctx->sdev = sdev;
sdev              112 drivers/infiniband/sw/siw/siw_verbs.c 	uresp.dev_id = sdev->vendor_part_id;
sdev              123 drivers/infiniband/sw/siw/siw_verbs.c 		atomic_read(&sdev->num_ctx));
sdev              128 drivers/infiniband/sw/siw/siw_verbs.c 	atomic_dec(&sdev->num_ctx);
sdev              130 drivers/infiniband/sw/siw/siw_verbs.c 		atomic_read(&sdev->num_ctx));
sdev              151 drivers/infiniband/sw/siw/siw_verbs.c 	atomic_dec(&uctx->sdev->num_ctx);
sdev              157 drivers/infiniband/sw/siw/siw_verbs.c 	struct siw_device *sdev = to_siw_dev(base_dev);
sdev              168 drivers/infiniband/sw/siw/siw_verbs.c 	attr->max_cq = sdev->attrs.max_cq;
sdev              169 drivers/infiniband/sw/siw/siw_verbs.c 	attr->max_cqe = sdev->attrs.max_cqe;
sdev              171 drivers/infiniband/sw/siw/siw_verbs.c 	attr->max_fmr = sdev->attrs.max_fmr;
sdev              172 drivers/infiniband/sw/siw/siw_verbs.c 	attr->max_mr = sdev->attrs.max_mr;
sdev              173 drivers/infiniband/sw/siw/siw_verbs.c 	attr->max_mw = sdev->attrs.max_mw;
sdev              175 drivers/infiniband/sw/siw/siw_verbs.c 	attr->max_pd = sdev->attrs.max_pd;
sdev              176 drivers/infiniband/sw/siw/siw_verbs.c 	attr->max_qp = sdev->attrs.max_qp;
sdev              177 drivers/infiniband/sw/siw/siw_verbs.c 	attr->max_qp_init_rd_atom = sdev->attrs.max_ird;
sdev              178 drivers/infiniband/sw/siw/siw_verbs.c 	attr->max_qp_rd_atom = sdev->attrs.max_ord;
sdev              179 drivers/infiniband/sw/siw/siw_verbs.c 	attr->max_qp_wr = sdev->attrs.max_qp_wr;
sdev              180 drivers/infiniband/sw/siw/siw_verbs.c 	attr->max_recv_sge = sdev->attrs.max_sge;
sdev              181 drivers/infiniband/sw/siw/siw_verbs.c 	attr->max_res_rd_atom = sdev->attrs.max_qp * sdev->attrs.max_ird;
sdev              182 drivers/infiniband/sw/siw/siw_verbs.c 	attr->max_send_sge = sdev->attrs.max_sge;
sdev              183 drivers/infiniband/sw/siw/siw_verbs.c 	attr->max_sge_rd = sdev->attrs.max_sge_rd;
sdev              184 drivers/infiniband/sw/siw/siw_verbs.c 	attr->max_srq = sdev->attrs.max_srq;
sdev              185 drivers/infiniband/sw/siw/siw_verbs.c 	attr->max_srq_sge = sdev->attrs.max_srq_sge;
sdev              186 drivers/infiniband/sw/siw/siw_verbs.c 	attr->max_srq_wr = sdev->attrs.max_srq_wr;
sdev              189 drivers/infiniband/sw/siw/siw_verbs.c 	attr->vendor_part_id = sdev->vendor_part_id;
sdev              191 drivers/infiniband/sw/siw/siw_verbs.c 	memcpy(&attr->sys_image_guid, sdev->netdev->dev_addr, 6);
sdev              199 drivers/infiniband/sw/siw/siw_verbs.c 	struct siw_device *sdev = to_siw_dev(base_dev);
sdev              208 drivers/infiniband/sw/siw/siw_verbs.c 	attr->max_mtu = ib_mtu_int_to_enum(sdev->netdev->mtu);
sdev              209 drivers/infiniband/sw/siw/siw_verbs.c 	attr->phys_state = sdev->state == IB_PORT_ACTIVE ?
sdev              213 drivers/infiniband/sw/siw/siw_verbs.c 	attr->state = sdev->state;
sdev              256 drivers/infiniband/sw/siw/siw_verbs.c 	struct siw_device *sdev = to_siw_dev(base_dev);
sdev              260 drivers/infiniband/sw/siw/siw_verbs.c 	memcpy(&gid->raw[0], sdev->netdev->dev_addr, 6);
sdev              267 drivers/infiniband/sw/siw/siw_verbs.c 	struct siw_device *sdev = to_siw_dev(pd->device);
sdev              269 drivers/infiniband/sw/siw/siw_verbs.c 	if (atomic_inc_return(&sdev->num_pd) > SIW_MAX_PD) {
sdev              270 drivers/infiniband/sw/siw/siw_verbs.c 		atomic_dec(&sdev->num_pd);
sdev              273 drivers/infiniband/sw/siw/siw_verbs.c 	siw_dbg_pd(pd, "now %d PD's(s)\n", atomic_read(&sdev->num_pd));
sdev              280 drivers/infiniband/sw/siw/siw_verbs.c 	struct siw_device *sdev = to_siw_dev(pd->device);
sdev              283 drivers/infiniband/sw/siw/siw_verbs.c 	atomic_dec(&sdev->num_pd);
sdev              313 drivers/infiniband/sw/siw/siw_verbs.c 	struct siw_device *sdev = to_siw_dev(base_dev);
sdev              323 drivers/infiniband/sw/siw/siw_verbs.c 	if (atomic_inc_return(&sdev->num_qp) > SIW_MAX_QP) {
sdev              386 drivers/infiniband/sw/siw/siw_verbs.c 	rv = siw_qp_add(sdev, qp);
sdev              486 drivers/infiniband/sw/siw/siw_verbs.c 	qp->tx_cpu = siw_get_tx_cpu(sdev);
sdev              492 drivers/infiniband/sw/siw/siw_verbs.c 	spin_lock_irqsave(&sdev->lock, flags);
sdev              493 drivers/infiniband/sw/siw/siw_verbs.c 	list_add_tail(&qp->devq, &sdev->qp_list);
sdev              494 drivers/infiniband/sw/siw/siw_verbs.c 	spin_unlock_irqrestore(&sdev->lock, flags);
sdev              499 drivers/infiniband/sw/siw/siw_verbs.c 	xa_erase(&sdev->qp_xa, qp_id(qp));
sdev              513 drivers/infiniband/sw/siw/siw_verbs.c 	atomic_dec(&sdev->num_qp);
sdev              527 drivers/infiniband/sw/siw/siw_verbs.c 	struct siw_device *sdev;
sdev              531 drivers/infiniband/sw/siw/siw_verbs.c 		sdev = to_siw_dev(base_qp->device);
sdev              540 drivers/infiniband/sw/siw/siw_verbs.c 	qp_attr->path_mtu = ib_mtu_int_to_enum(sdev->netdev->mtu);
sdev             1084 drivers/infiniband/sw/siw/siw_verbs.c 	struct siw_device *sdev = to_siw_dev(base_cq->device);
sdev             1096 drivers/infiniband/sw/siw/siw_verbs.c 	atomic_dec(&sdev->num_cq);
sdev             1114 drivers/infiniband/sw/siw/siw_verbs.c 	struct siw_device *sdev = to_siw_dev(base_cq->device);
sdev             1118 drivers/infiniband/sw/siw/siw_verbs.c 	if (atomic_inc_return(&sdev->num_cq) > SIW_MAX_CQ) {
sdev             1123 drivers/infiniband/sw/siw/siw_verbs.c 	if (size < 1 || size > sdev->attrs.max_cqe) {
sdev             1191 drivers/infiniband/sw/siw/siw_verbs.c 	atomic_dec(&sdev->num_cq);
sdev             1271 drivers/infiniband/sw/siw/siw_verbs.c 	struct siw_device *sdev = to_siw_dev(base_mr->device);
sdev             1275 drivers/infiniband/sw/siw/siw_verbs.c 	atomic_dec(&sdev->num_mr);
sdev             1301 drivers/infiniband/sw/siw/siw_verbs.c 	struct siw_device *sdev = to_siw_dev(pd->device);
sdev             1310 drivers/infiniband/sw/siw/siw_verbs.c 	if (atomic_inc_return(&sdev->num_mr) > SIW_MAX_MR) {
sdev             1378 drivers/infiniband/sw/siw/siw_verbs.c 	atomic_dec(&sdev->num_mr);
sdev             1393 drivers/infiniband/sw/siw/siw_verbs.c 	struct siw_device *sdev = to_siw_dev(pd->device);
sdev             1398 drivers/infiniband/sw/siw/siw_verbs.c 	if (atomic_inc_return(&sdev->num_mr) > SIW_MAX_MR) {
sdev             1436 drivers/infiniband/sw/siw/siw_verbs.c 	atomic_dec(&sdev->num_mr);
sdev             1526 drivers/infiniband/sw/siw/siw_verbs.c 	struct siw_device *sdev = to_siw_dev(pd->device);
sdev             1530 drivers/infiniband/sw/siw/siw_verbs.c 	if (atomic_inc_return(&sdev->num_mr) > SIW_MAX_MR) {
sdev             1554 drivers/infiniband/sw/siw/siw_verbs.c 	atomic_dec(&sdev->num_mr);
sdev             1574 drivers/infiniband/sw/siw/siw_verbs.c 	struct siw_device *sdev = to_siw_dev(base_srq->device);
sdev             1580 drivers/infiniband/sw/siw/siw_verbs.c 	if (atomic_inc_return(&sdev->num_srq) > SIW_MAX_SRQ) {
sdev             1642 drivers/infiniband/sw/siw/siw_verbs.c 	atomic_dec(&sdev->num_srq);
sdev             1720 drivers/infiniband/sw/siw/siw_verbs.c 	struct siw_device *sdev = to_siw_dev(base_srq->device);
sdev             1729 drivers/infiniband/sw/siw/siw_verbs.c 	atomic_dec(&sdev->num_srq);
sdev             1853 drivers/infiniband/sw/siw/siw_verbs.c void siw_port_event(struct siw_device *sdev, u8 port, enum ib_event_type etype)
sdev             1858 drivers/infiniband/sw/siw/siw_verbs.c 	event.device = &sdev->base_dev;
sdev             1861 drivers/infiniband/sw/siw/siw_verbs.c 	siw_dbg(&sdev->base_dev, "reporting port event %d\n", etype);
sdev             1296 drivers/infiniband/ulp/srp/ib_srp.c 				       struct scsi_device *sdev,
sdev             1303 drivers/infiniband/ulp/srp/ib_srp.c 	    (!sdev || req->scmnd->device == sdev) &&
sdev             1335 drivers/infiniband/ulp/srp/ib_srp.c 			   struct scsi_device *sdev, int result)
sdev             1337 drivers/infiniband/ulp/srp/ib_srp.c 	struct scsi_cmnd *scmnd = srp_claim_req(ch, req, sdev, NULL);
sdev             2902 drivers/infiniband/ulp/srp/ib_srp.c srp_change_queue_depth(struct scsi_device *sdev, int qdepth)
sdev             2904 drivers/infiniband/ulp/srp/ib_srp.c 	if (!sdev->tagged_supported)
sdev             2906 drivers/infiniband/ulp/srp/ib_srp.c 	return scsi_change_queue_depth(sdev, qdepth);
sdev             3050 drivers/infiniband/ulp/srp/ib_srp.c static int srp_slave_configure(struct scsi_device *sdev)
sdev             3052 drivers/infiniband/ulp/srp/ib_srp.c 	struct Scsi_Host *shost = sdev->host;
sdev             3054 drivers/infiniband/ulp/srp/ib_srp.c 	struct request_queue *q = sdev->request_queue;
sdev             3057 drivers/infiniband/ulp/srp/ib_srp.c 	if (sdev->type == TYPE_DISK) {
sdev             3271 drivers/infiniband/ulp/srp/ib_srp.c 	struct scsi_device *sdev;
sdev             3274 drivers/infiniband/ulp/srp/ib_srp.c 	shost_for_each_device(sdev, host)
sdev              138 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_device *sdev;
sdev              142 drivers/infiniband/ulp/srpt/ib_srpt.c 	sdev = ib_get_client_data(event->device, &srpt_client);
sdev              143 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (!sdev || sdev->device != event->device)
sdev              147 drivers/infiniband/ulp/srpt/ib_srpt.c 		 dev_name(&sdev->device->dev));
sdev              152 drivers/infiniband/ulp/srpt/ib_srpt.c 		if (port_num < sdev->device->phys_port_cnt) {
sdev              153 drivers/infiniband/ulp/srpt/ib_srpt.c 			sport = &sdev->port[port_num];
sdev              159 drivers/infiniband/ulp/srpt/ib_srpt.c 			     sdev->device->phys_port_cnt);
sdev              170 drivers/infiniband/ulp/srpt/ib_srpt.c 		if (port_num < sdev->device->phys_port_cnt) {
sdev              171 drivers/infiniband/ulp/srpt/ib_srpt.c 			sport = &sdev->port[port_num];
sdev              177 drivers/infiniband/ulp/srpt/ib_srpt.c 			     sdev->device->phys_port_cnt);
sdev              323 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_device *sdev = sport->sdev;
sdev              341 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (sdev->use_srq)
sdev              342 drivers/infiniband/ulp/srpt/ib_srpt.c 		send_queue_depth = sdev->srq_size;
sdev              345 drivers/infiniband/ulp/srpt/ib_srpt.c 				       sdev->device->attrs.max_qp_wr);
sdev              350 drivers/infiniband/ulp/srpt/ib_srpt.c 	iocp->vendor_id = cpu_to_be32(sdev->device->attrs.vendor_id);
sdev              351 drivers/infiniband/ulp/srpt/ib_srpt.c 	iocp->device_id = cpu_to_be32(sdev->device->attrs.vendor_part_id);
sdev              352 drivers/infiniband/ulp/srpt/ib_srpt.c 	iocp->device_version = cpu_to_be16(sdev->device->attrs.hw_ver);
sdev              353 drivers/infiniband/ulp/srpt/ib_srpt.c 	iocp->subsys_vendor_id = cpu_to_be32(sdev->device->attrs.vendor_id);
sdev              563 drivers/infiniband/ulp/srpt/ib_srpt.c 	ret = ib_modify_port(sport->sdev->device, sport->port, 0, &port_modify);
sdev              567 drivers/infiniband/ulp/srpt/ib_srpt.c 	ret = ib_query_port(sport->sdev->device, sport->port, &port_attr);
sdev              574 drivers/infiniband/ulp/srpt/ib_srpt.c 	ret = rdma_query_gid(sport->sdev->device, sport->port, 0, &sport->gid);
sdev              594 drivers/infiniband/ulp/srpt/ib_srpt.c 		sport->mad_agent = ib_register_mad_agent(sport->sdev->device,
sdev              614 drivers/infiniband/ulp/srpt/ib_srpt.c 	ib_modify_port(sport->sdev->device, sport->port, 0, &port_modify);
sdev              627 drivers/infiniband/ulp/srpt/ib_srpt.c static void srpt_unregister_mad_agent(struct srpt_device *sdev)
sdev              635 drivers/infiniband/ulp/srpt/ib_srpt.c 	for (i = 1; i <= sdev->device->phys_port_cnt; i++) {
sdev              636 drivers/infiniband/ulp/srpt/ib_srpt.c 		sport = &sdev->port[i - 1];
sdev              638 drivers/infiniband/ulp/srpt/ib_srpt.c 		if (ib_modify_port(sdev->device, i, 0, &port_modify) < 0)
sdev              654 drivers/infiniband/ulp/srpt/ib_srpt.c static struct srpt_ioctx *srpt_alloc_ioctx(struct srpt_device *sdev,
sdev              669 drivers/infiniband/ulp/srpt/ib_srpt.c 	ioctx->dma = ib_dma_map_single(sdev->device, ioctx->buf,
sdev              671 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (ib_dma_mapping_error(sdev->device, ioctx->dma))
sdev              691 drivers/infiniband/ulp/srpt/ib_srpt.c static void srpt_free_ioctx(struct srpt_device *sdev, struct srpt_ioctx *ioctx,
sdev              698 drivers/infiniband/ulp/srpt/ib_srpt.c 	ib_dma_unmap_single(sdev->device, ioctx->dma,
sdev              714 drivers/infiniband/ulp/srpt/ib_srpt.c static struct srpt_ioctx **srpt_alloc_ioctx_ring(struct srpt_device *sdev,
sdev              730 drivers/infiniband/ulp/srpt/ib_srpt.c 		ring[i] = srpt_alloc_ioctx(sdev, ioctx_size, buf_cache, dir);
sdev              740 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_free_ioctx(sdev, ring[i], buf_cache, dir);
sdev              756 drivers/infiniband/ulp/srpt/ib_srpt.c 				 struct srpt_device *sdev, int ring_size,
sdev              766 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_free_ioctx(sdev, ioctx_ring[i], buf_cache, dir);
sdev              821 drivers/infiniband/ulp/srpt/ib_srpt.c static int srpt_post_recv(struct srpt_device *sdev, struct srpt_rdma_ch *ch,
sdev              827 drivers/infiniband/ulp/srpt/ib_srpt.c 	BUG_ON(!sdev);
sdev              830 drivers/infiniband/ulp/srpt/ib_srpt.c 	list.lkey = sdev->lkey;
sdev              838 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (sdev->use_srq)
sdev              839 drivers/infiniband/ulp/srpt/ib_srpt.c 		return ib_post_srq_recv(sdev->srq, &wr, NULL);
sdev             1125 drivers/infiniband/ulp/srpt/ib_srpt.c 	ret = ib_find_cached_pkey(ch->sport->sdev->device, ch->sport->port,
sdev             1627 drivers/infiniband/ulp/srpt/ib_srpt.c 	ib_dma_sync_single_for_cpu(ch->sport->sdev->device,
sdev             1670 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_post_recv(ch->sport->sdev, ch, recv_ioctx);
sdev             1781 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_device *sdev = sport->sdev;
sdev             1782 drivers/infiniband/ulp/srpt/ib_srpt.c 	const struct ib_device_attr *attrs = &sdev->device->attrs;
sdev             1794 drivers/infiniband/ulp/srpt/ib_srpt.c 	ch->cq = ib_alloc_cq_any(sdev->device, ch, ch->rq_size + sq_size,
sdev             1824 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (sdev->use_srq) {
sdev             1825 drivers/infiniband/ulp/srpt/ib_srpt.c 		qp_init->srq = sdev->srq;
sdev             1833 drivers/infiniband/ulp/srpt/ib_srpt.c 		ret = rdma_create_qp(ch->rdma_cm.cm_id, sdev->pd, qp_init);
sdev             1836 drivers/infiniband/ulp/srpt/ib_srpt.c 		ch->qp = ib_create_qp(sdev->pd, qp_init);
sdev             1867 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (!sdev->use_srq)
sdev             1869 drivers/infiniband/ulp/srpt/ib_srpt.c 			srpt_post_recv(sdev, ch, ch->ioctx_recv_ring[i]);
sdev             2010 drivers/infiniband/ulp/srpt/ib_srpt.c 					dev_name(&sport->sdev->device->dev),
sdev             2090 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_device *sdev;
sdev             2097 drivers/infiniband/ulp/srpt/ib_srpt.c 	sdev = ch->sport->sdev;
sdev             2098 drivers/infiniband/ulp/srpt/ib_srpt.c 	BUG_ON(!sdev);
sdev             2122 drivers/infiniband/ulp/srpt/ib_srpt.c 			     ch->sport->sdev, ch->rq_size,
sdev             2128 drivers/infiniband/ulp/srpt/ib_srpt.c 			     sdev, ch->rq_size,
sdev             2152 drivers/infiniband/ulp/srpt/ib_srpt.c static int srpt_cm_req_recv(struct srpt_device *const sdev,
sdev             2159 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_port *sport = &sdev->port[port_num - 1];
sdev             2174 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (WARN_ON(!sdev || !req))
sdev             2209 drivers/infiniband/ulp/srpt/ib_srpt.c 			dev_name(&sport->sdev->device->dev), port_num);
sdev             2249 drivers/infiniband/ulp/srpt/ib_srpt.c 	ch->rq_size = min(MAX_SRPT_RQ_SIZE, sdev->device->attrs.max_qp_wr);
sdev             2261 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_alloc_ioctx_ring(ch->sport->sdev, ch->rq_size,
sdev             2272 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (!sdev->use_srq) {
sdev             2296 drivers/infiniband/ulp/srpt/ib_srpt.c 			srpt_alloc_ioctx_ring(ch->sport->sdev, ch->rq_size,
sdev             2374 drivers/infiniband/ulp/srpt/ib_srpt.c 			dev_name(&sdev->device->dev), port_num);
sdev             2458 drivers/infiniband/ulp/srpt/ib_srpt.c 			     ch->sport->sdev, ch->rq_size,
sdev             2466 drivers/infiniband/ulp/srpt/ib_srpt.c 			     ch->sport->sdev, ch->rq_size,
sdev             2529 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_device *sdev;
sdev             2534 drivers/infiniband/ulp/srpt/ib_srpt.c 	sdev = ib_get_client_data(cm_id->device, &srpt_client);
sdev             2535 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (!sdev)
sdev             2556 drivers/infiniband/ulp/srpt/ib_srpt.c 	return srpt_cm_req_recv(sdev, NULL, cm_id, cm_id->port_num,
sdev             2796 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_device *sdev = ch->sport->sdev;
sdev             2855 drivers/infiniband/ulp/srpt/ib_srpt.c 	ib_dma_sync_single_for_device(sdev->device, ioctx->ioctx.dma, resp_len,
sdev             2860 drivers/infiniband/ulp/srpt/ib_srpt.c 	sge.lkey = sdev->lkey;
sdev             2965 drivers/infiniband/ulp/srpt/ib_srpt.c 			dev_name(&sport->sdev->device->dev), sport->port);
sdev             2990 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_device *sdev;
sdev             2994 drivers/infiniband/ulp/srpt/ib_srpt.c 	list_for_each_entry(sdev, &srpt_dev_list, list) {
sdev             2995 drivers/infiniband/ulp/srpt/ib_srpt.c 		dev = sdev->device;
sdev             3000 drivers/infiniband/ulp/srpt/ib_srpt.c 			sport = &sdev->port[i];
sdev             3023 drivers/infiniband/ulp/srpt/ib_srpt.c static void srpt_free_srq(struct srpt_device *sdev)
sdev             3025 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (!sdev->srq)
sdev             3028 drivers/infiniband/ulp/srpt/ib_srpt.c 	ib_destroy_srq(sdev->srq);
sdev             3029 drivers/infiniband/ulp/srpt/ib_srpt.c 	srpt_free_ioctx_ring((struct srpt_ioctx **)sdev->ioctx_ring, sdev,
sdev             3030 drivers/infiniband/ulp/srpt/ib_srpt.c 			     sdev->srq_size, sdev->req_buf_cache,
sdev             3032 drivers/infiniband/ulp/srpt/ib_srpt.c 	kmem_cache_destroy(sdev->req_buf_cache);
sdev             3033 drivers/infiniband/ulp/srpt/ib_srpt.c 	sdev->srq = NULL;
sdev             3036 drivers/infiniband/ulp/srpt/ib_srpt.c static int srpt_alloc_srq(struct srpt_device *sdev)
sdev             3040 drivers/infiniband/ulp/srpt/ib_srpt.c 		.srq_context = (void *)sdev,
sdev             3041 drivers/infiniband/ulp/srpt/ib_srpt.c 		.attr.max_wr = sdev->srq_size,
sdev             3045 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct ib_device *device = sdev->device;
sdev             3049 drivers/infiniband/ulp/srpt/ib_srpt.c 	WARN_ON_ONCE(sdev->srq);
sdev             3050 drivers/infiniband/ulp/srpt/ib_srpt.c 	srq = ib_create_srq(sdev->pd, &srq_attr);
sdev             3056 drivers/infiniband/ulp/srpt/ib_srpt.c 	pr_debug("create SRQ #wr= %d max_allow=%d dev= %s\n", sdev->srq_size,
sdev             3057 drivers/infiniband/ulp/srpt/ib_srpt.c 		 sdev->device->attrs.max_srq_wr, dev_name(&device->dev));
sdev             3059 drivers/infiniband/ulp/srpt/ib_srpt.c 	sdev->req_buf_cache = kmem_cache_create("srpt-srq-req-buf",
sdev             3061 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (!sdev->req_buf_cache)
sdev             3064 drivers/infiniband/ulp/srpt/ib_srpt.c 	sdev->ioctx_ring = (struct srpt_recv_ioctx **)
sdev             3065 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_alloc_ioctx_ring(sdev, sdev->srq_size,
sdev             3066 drivers/infiniband/ulp/srpt/ib_srpt.c 				      sizeof(*sdev->ioctx_ring[0]),
sdev             3067 drivers/infiniband/ulp/srpt/ib_srpt.c 				      sdev->req_buf_cache, 0, DMA_FROM_DEVICE);
sdev             3068 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (!sdev->ioctx_ring)
sdev             3071 drivers/infiniband/ulp/srpt/ib_srpt.c 	sdev->use_srq = true;
sdev             3072 drivers/infiniband/ulp/srpt/ib_srpt.c 	sdev->srq = srq;
sdev             3074 drivers/infiniband/ulp/srpt/ib_srpt.c 	for (i = 0; i < sdev->srq_size; ++i) {
sdev             3075 drivers/infiniband/ulp/srpt/ib_srpt.c 		INIT_LIST_HEAD(&sdev->ioctx_ring[i]->wait_list);
sdev             3076 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_post_recv(sdev, NULL, sdev->ioctx_ring[i]);
sdev             3082 drivers/infiniband/ulp/srpt/ib_srpt.c 	kmem_cache_destroy(sdev->req_buf_cache);
sdev             3089 drivers/infiniband/ulp/srpt/ib_srpt.c static int srpt_use_srq(struct srpt_device *sdev, bool use_srq)
sdev             3091 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct ib_device *device = sdev->device;
sdev             3095 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_free_srq(sdev);
sdev             3096 drivers/infiniband/ulp/srpt/ib_srpt.c 		sdev->use_srq = false;
sdev             3097 drivers/infiniband/ulp/srpt/ib_srpt.c 	} else if (use_srq && !sdev->srq) {
sdev             3098 drivers/infiniband/ulp/srpt/ib_srpt.c 		ret = srpt_alloc_srq(sdev);
sdev             3101 drivers/infiniband/ulp/srpt/ib_srpt.c 		 dev_name(&device->dev), sdev->use_srq, ret);
sdev             3111 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_device *sdev;
sdev             3117 drivers/infiniband/ulp/srpt/ib_srpt.c 	sdev = kzalloc(struct_size(sdev, port, device->phys_port_cnt),
sdev             3119 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (!sdev)
sdev             3122 drivers/infiniband/ulp/srpt/ib_srpt.c 	sdev->device = device;
sdev             3123 drivers/infiniband/ulp/srpt/ib_srpt.c 	mutex_init(&sdev->sdev_mutex);
sdev             3125 drivers/infiniband/ulp/srpt/ib_srpt.c 	sdev->pd = ib_alloc_pd(device, 0);
sdev             3126 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (IS_ERR(sdev->pd))
sdev             3129 drivers/infiniband/ulp/srpt/ib_srpt.c 	sdev->lkey = sdev->pd->local_dma_lkey;
sdev             3131 drivers/infiniband/ulp/srpt/ib_srpt.c 	sdev->srq_size = min(srpt_srq_size, sdev->device->attrs.max_srq_wr);
sdev             3133 drivers/infiniband/ulp/srpt/ib_srpt.c 	srpt_use_srq(sdev, sdev->port[0].port_attrib.use_srq);
sdev             3139 drivers/infiniband/ulp/srpt/ib_srpt.c 		sdev->cm_id = ib_create_cm_id(device, srpt_cm_handler, sdev);
sdev             3140 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (IS_ERR(sdev->cm_id)) {
sdev             3142 drivers/infiniband/ulp/srpt/ib_srpt.c 			PTR_ERR(sdev->cm_id));
sdev             3143 drivers/infiniband/ulp/srpt/ib_srpt.c 		sdev->cm_id = NULL;
sdev             3158 drivers/infiniband/ulp/srpt/ib_srpt.c 	ret = sdev->cm_id ?
sdev             3159 drivers/infiniband/ulp/srpt/ib_srpt.c 		ib_cm_listen(sdev->cm_id, cpu_to_be64(srpt_service_guid), 0) :
sdev             3163 drivers/infiniband/ulp/srpt/ib_srpt.c 		       sdev->cm_id->state);
sdev             3167 drivers/infiniband/ulp/srpt/ib_srpt.c 	INIT_IB_EVENT_HANDLER(&sdev->event_handler, sdev->device,
sdev             3169 drivers/infiniband/ulp/srpt/ib_srpt.c 	ib_register_event_handler(&sdev->event_handler);
sdev             3171 drivers/infiniband/ulp/srpt/ib_srpt.c 	for (i = 1; i <= sdev->device->phys_port_cnt; i++) {
sdev             3172 drivers/infiniband/ulp/srpt/ib_srpt.c 		sport = &sdev->port[i - 1];
sdev             3176 drivers/infiniband/ulp/srpt/ib_srpt.c 		sport->sdev = sdev;
sdev             3186 drivers/infiniband/ulp/srpt/ib_srpt.c 			       dev_name(&sdev->device->dev), i);
sdev             3192 drivers/infiniband/ulp/srpt/ib_srpt.c 	list_add_tail(&sdev->list, &srpt_dev_list);
sdev             3196 drivers/infiniband/ulp/srpt/ib_srpt.c 	ib_set_client_data(device, &srpt_client, sdev);
sdev             3201 drivers/infiniband/ulp/srpt/ib_srpt.c 	ib_unregister_event_handler(&sdev->event_handler);
sdev             3203 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (sdev->cm_id)
sdev             3204 drivers/infiniband/ulp/srpt/ib_srpt.c 		ib_destroy_cm_id(sdev->cm_id);
sdev             3206 drivers/infiniband/ulp/srpt/ib_srpt.c 	srpt_free_srq(sdev);
sdev             3207 drivers/infiniband/ulp/srpt/ib_srpt.c 	ib_dealloc_pd(sdev->pd);
sdev             3209 drivers/infiniband/ulp/srpt/ib_srpt.c 	kfree(sdev);
sdev             3211 drivers/infiniband/ulp/srpt/ib_srpt.c 	sdev = NULL;
sdev             3223 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_device *sdev = client_data;
sdev             3226 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (!sdev) {
sdev             3232 drivers/infiniband/ulp/srpt/ib_srpt.c 	srpt_unregister_mad_agent(sdev);
sdev             3234 drivers/infiniband/ulp/srpt/ib_srpt.c 	ib_unregister_event_handler(&sdev->event_handler);
sdev             3237 drivers/infiniband/ulp/srpt/ib_srpt.c 	for (i = 0; i < sdev->device->phys_port_cnt; i++)
sdev             3238 drivers/infiniband/ulp/srpt/ib_srpt.c 		cancel_work_sync(&sdev->port[i].work);
sdev             3240 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (sdev->cm_id)
sdev             3241 drivers/infiniband/ulp/srpt/ib_srpt.c 		ib_destroy_cm_id(sdev->cm_id);
sdev             3251 drivers/infiniband/ulp/srpt/ib_srpt.c 	list_del(&sdev->list);
sdev             3254 drivers/infiniband/ulp/srpt/ib_srpt.c 	for (i = 0; i < sdev->device->phys_port_cnt; i++)
sdev             3255 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_release_sport(&sdev->port[i]);
sdev             3257 drivers/infiniband/ulp/srpt/ib_srpt.c 	srpt_free_srq(sdev);
sdev             3259 drivers/infiniband/ulp/srpt/ib_srpt.c 	ib_dealloc_pd(sdev->pd);
sdev             3261 drivers/infiniband/ulp/srpt/ib_srpt.c 	kfree(sdev);
sdev             3318 drivers/infiniband/ulp/srpt/ib_srpt.c 		srpt_post_recv(ch->sport->sdev, ch, recv_ioctx);
sdev             3566 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_device *sdev = sport->sdev;
sdev             3577 drivers/infiniband/ulp/srpt/ib_srpt.c 	ret = mutex_lock_interruptible(&sdev->sdev_mutex);
sdev             3587 drivers/infiniband/ulp/srpt/ib_srpt.c 	srpt_use_srq(sdev, sport->port_attrib.use_srq);
sdev             3592 drivers/infiniband/ulp/srpt/ib_srpt.c 	mutex_unlock(&sdev->sdev_mutex);
sdev              386 drivers/infiniband/ulp/srpt/ib_srpt.h 	struct srpt_device	*sdev;
sdev              256 drivers/input/joystick/gamecon.c 	struct gc_subdev *sdev = data;
sdev              257 drivers/input/joystick/gamecon.c 	unsigned char target = 1 << sdev->idx; /* select desired pin */
sdev              294 drivers/input/joystick/gamecon.c 	struct gc_subdev *sdev;
sdev              297 drivers/input/joystick/gamecon.c 	sdev = kmalloc(sizeof(*sdev), GFP_KERNEL);
sdev              298 drivers/input/joystick/gamecon.c 	if (!sdev)
sdev              301 drivers/input/joystick/gamecon.c 	sdev->idx = i;
sdev              305 drivers/input/joystick/gamecon.c 	err = input_ff_create_memless(dev, sdev, gc_n64_play_effect);
sdev              307 drivers/input/joystick/gamecon.c 		kfree(sdev);
sdev              102 drivers/iommu/intel-svm.c static void intel_flush_svm_range_dev (struct intel_svm *svm, struct intel_svm_dev *sdev,
sdev              109 drivers/iommu/intel-svm.c 			QI_EIOTLB_DID(sdev->did) |
sdev              117 drivers/iommu/intel-svm.c 				QI_EIOTLB_DID(sdev->did) |
sdev              128 drivers/iommu/intel-svm.c 	if (sdev->dev_iotlb) {
sdev              130 drivers/iommu/intel-svm.c 				QI_DEV_EIOTLB_SID(sdev->sid) |
sdev              131 drivers/iommu/intel-svm.c 				QI_DEV_EIOTLB_QDEP(sdev->qdep) |
sdev              157 drivers/iommu/intel-svm.c 	struct intel_svm_dev *sdev;
sdev              160 drivers/iommu/intel-svm.c 	list_for_each_entry_rcu(sdev, &svm->devs, list)
sdev              161 drivers/iommu/intel-svm.c 		intel_flush_svm_range_dev(svm, sdev, address, pages, ih);
sdev              179 drivers/iommu/intel-svm.c 	struct intel_svm_dev *sdev;
sdev              194 drivers/iommu/intel-svm.c 	list_for_each_entry_rcu(sdev, &svm->devs, list) {
sdev              195 drivers/iommu/intel-svm.c 		intel_pasid_tear_down_entry(svm->iommu, sdev->dev, svm->pasid);
sdev              196 drivers/iommu/intel-svm.c 		intel_flush_svm_range_dev(svm, sdev, 0, -1, 0);
sdev              214 drivers/iommu/intel-svm.c 	struct intel_svm_dev *sdev;
sdev              255 drivers/iommu/intel-svm.c 			list_for_each_entry(sdev, &svm->devs, list) {
sdev              256 drivers/iommu/intel-svm.c 				if (dev == sdev->dev) {
sdev              257 drivers/iommu/intel-svm.c 					if (sdev->ops != ops) {
sdev              261 drivers/iommu/intel-svm.c 					sdev->users++;
sdev              270 drivers/iommu/intel-svm.c 	sdev = kzalloc(sizeof(*sdev), GFP_KERNEL);
sdev              271 drivers/iommu/intel-svm.c 	if (!sdev) {
sdev              275 drivers/iommu/intel-svm.c 	sdev->dev = dev;
sdev              281 drivers/iommu/intel-svm.c 		kfree(sdev);
sdev              287 drivers/iommu/intel-svm.c 		kfree(sdev);
sdev              291 drivers/iommu/intel-svm.c 	sdev->did = FLPT_DEFAULT_DID;
sdev              292 drivers/iommu/intel-svm.c 	sdev->sid = PCI_DEVID(info->bus, info->devfn);
sdev              294 drivers/iommu/intel-svm.c 		sdev->dev_iotlb = 1;
sdev              295 drivers/iommu/intel-svm.c 		sdev->qdep = info->ats_qdep;
sdev              296 drivers/iommu/intel-svm.c 		if (sdev->qdep >= QI_DEV_EIOTLB_MAX_INVS)
sdev              297 drivers/iommu/intel-svm.c 			sdev->qdep = 0;
sdev              301 drivers/iommu/intel-svm.c 	sdev->users = 1;
sdev              302 drivers/iommu/intel-svm.c 	sdev->ops = ops;
sdev              303 drivers/iommu/intel-svm.c 	init_rcu_head(&sdev->rcu);
sdev              309 drivers/iommu/intel-svm.c 			kfree(sdev);
sdev              323 drivers/iommu/intel-svm.c 			kfree(sdev);
sdev              338 drivers/iommu/intel-svm.c 				kfree(sdev);
sdev              354 drivers/iommu/intel-svm.c 			kfree(sdev);
sdev              371 drivers/iommu/intel-svm.c 			kfree(sdev);
sdev              375 drivers/iommu/intel-svm.c 	list_add_rcu(&sdev->list, &svm->devs);
sdev              390 drivers/iommu/intel-svm.c 	struct intel_svm_dev *sdev;
sdev              404 drivers/iommu/intel-svm.c 	list_for_each_entry(sdev, &svm->devs, list) {
sdev              405 drivers/iommu/intel-svm.c 		if (dev == sdev->dev) {
sdev              407 drivers/iommu/intel-svm.c 			sdev->users--;
sdev              408 drivers/iommu/intel-svm.c 			if (!sdev->users) {
sdev              409 drivers/iommu/intel-svm.c 				list_del_rcu(&sdev->list);
sdev              418 drivers/iommu/intel-svm.c 				intel_flush_svm_range_dev(svm, sdev, 0, -1, 0);
sdev              419 drivers/iommu/intel-svm.c 				kfree_rcu(sdev, rcu);
sdev              544 drivers/iommu/intel-svm.c 		struct intel_svm_dev *sdev;
sdev              615 drivers/iommu/intel-svm.c 		list_for_each_entry_rcu(sdev, &svm->devs, list) {
sdev              616 drivers/iommu/intel-svm.c 			if (sdev->sid == req->rid)
sdev              624 drivers/iommu/intel-svm.c 		if (WARN_ON(&sdev->list == &svm->devs))
sdev              625 drivers/iommu/intel-svm.c 			sdev = NULL;
sdev              627 drivers/iommu/intel-svm.c 		if (sdev && sdev->ops && sdev->ops->fault_cb) {
sdev              630 drivers/iommu/intel-svm.c 			sdev->ops->fault_cb(sdev->dev, req->pasid, req->addr,
sdev              635 drivers/iommu/intel-svm.c 		sdev = NULL;
sdev              455 drivers/macintosh/macio_asic.c 	struct macio_dev *rdev, *mdev, *mbdev = NULL, *sdev = NULL;
sdev              488 drivers/macintosh/macio_asic.c 			sdev = mdev;
sdev              505 drivers/macintosh/macio_asic.c 	if (sdev) {
sdev              506 drivers/macintosh/macio_asic.c 		pnode = sdev->ofdev.dev.of_node;
sdev              511 drivers/macintosh/macio_asic.c 			if (macio_add_one_device(chip, &sdev->ofdev.dev, np,
sdev               43 drivers/media/pci/bt8xx/bttv-gpio.c 	struct bttv_sub_device *sdev = to_bttv_sub_dev(dev);
sdev               46 drivers/media/pci/bt8xx/bttv-gpio.c 	return sub->probe ? sub->probe(sdev) : -ENODEV;
sdev               51 drivers/media/pci/bt8xx/bttv-gpio.c 	struct bttv_sub_device *sdev = to_bttv_sub_dev(dev);
sdev               55 drivers/media/pci/bt8xx/bttv-gpio.c 		sub->remove(sdev);
sdev              274 drivers/media/platform/exynos4-is/mipi-csis.c static struct csis_state *sd_to_csis_state(struct v4l2_subdev *sdev)
sdev              276 drivers/media/platform/exynos4-is/mipi-csis.c 	return container_of(sdev, struct csis_state, sd);
sdev             1545 drivers/media/platform/fsl-viu.c 	struct v4l2_subdev *sdev = list_entry(v4l2_dev->subdevs.next,
sdev             1547 drivers/media/platform/fsl-viu.c 	struct i2c_client *client = v4l2_get_subdevdata(sdev);
sdev              548 drivers/media/platform/seco-cec/seco-cec.c static int secocec_acpi_probe(struct secocec_data *sdev)
sdev              550 drivers/media/platform/seco-cec/seco-cec.c 	struct device *dev = sdev->dev;
sdev              567 drivers/media/platform/seco-cec/seco-cec.c 	sdev->irq = irq;
sdev               53 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	struct sun6i_csi_dev *sdev = sun6i_csi_to_dev(csi);
sdev               60 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	if ((sdev->csi.v4l2_ep.bus_type == V4L2_MBUS_PARALLEL
sdev               61 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	     || sdev->csi.v4l2_ep.bus_type == V4L2_MBUS_BT656)
sdev               62 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	     && sdev->csi.v4l2_ep.bus.parallel.bus_width == 16) {
sdev               79 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 				dev_dbg(sdev->dev, "Unsupported mbus code: 0x%x\n",
sdev               85 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 			dev_dbg(sdev->dev, "Unsupported pixformat: 0x%x\n",
sdev              142 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 			dev_dbg(sdev->dev, "Unsupported mbus code: 0x%x\n",
sdev              157 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 		dev_dbg(sdev->dev, "Unsupported pixformat: 0x%x\n", pixformat);
sdev              166 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	struct sun6i_csi_dev *sdev = sun6i_csi_to_dev(csi);
sdev              167 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	struct device *dev = sdev->dev;
sdev              168 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	struct regmap *regmap = sdev->regmap;
sdev              174 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 		clk_disable_unprepare(sdev->clk_ram);
sdev              177 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 			clk_rate_exclusive_put(sdev->clk_mod);
sdev              178 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 		clk_disable_unprepare(sdev->clk_mod);
sdev              179 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 		reset_control_assert(sdev->rstc_bus);
sdev              183 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	ret = clk_prepare_enable(sdev->clk_mod);
sdev              185 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 		dev_err(sdev->dev, "Enable csi clk err %d\n", ret);
sdev              190 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 		clk_set_rate_exclusive(sdev->clk_mod, 300000000);
sdev              192 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	ret = clk_prepare_enable(sdev->clk_ram);
sdev              194 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 		dev_err(sdev->dev, "Enable clk_dram_csi clk err %d\n", ret);
sdev              198 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	ret = reset_control_deassert(sdev->rstc_bus);
sdev              200 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 		dev_err(sdev->dev, "reset err %d\n", ret);
sdev              209 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	clk_disable_unprepare(sdev->clk_ram);
sdev              212 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 		clk_rate_exclusive_put(sdev->clk_mod);
sdev              213 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	clk_disable_unprepare(sdev->clk_mod);
sdev              217 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c static enum csi_input_fmt get_csi_input_format(struct sun6i_csi_dev *sdev,
sdev              235 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	dev_dbg(sdev->dev, "Select YUV422 as default input format of CSI.\n");
sdev              239 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c static enum csi_output_fmt get_csi_output_format(struct sun6i_csi_dev *sdev,
sdev              299 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 		dev_warn(sdev->dev, "Unsupported pixformat: 0x%x\n", pixformat);
sdev              306 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c static enum csi_input_seq get_csi_input_seq(struct sun6i_csi_dev *sdev,
sdev              333 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 			dev_warn(sdev->dev, "Unsupported mbus code: 0x%x\n",
sdev              355 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 			dev_warn(sdev->dev, "Unsupported mbus code: 0x%x\n",
sdev              365 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 		dev_warn(sdev->dev, "Unsupported pixformat: 0x%x, defaulting to YUYV\n",
sdev              373 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c static void sun6i_csi_setup_bus(struct sun6i_csi_dev *sdev)
sdev              375 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	struct v4l2_fwnode_endpoint *endpoint = &sdev->csi.v4l2_ep;
sdev              376 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	struct sun6i_csi *csi = &sdev->csi;
sdev              389 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	regmap_read(sdev->regmap, CSI_IF_CFG_REG, &cfg);
sdev              437 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 		dev_warn(sdev->dev, "Unsupported bus type: %d\n",
sdev              455 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 		dev_warn(sdev->dev, "Unsupported bus width: %u\n", bus_width);
sdev              459 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	regmap_write(sdev->regmap, CSI_IF_CFG_REG, cfg);
sdev              462 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c static void sun6i_csi_set_format(struct sun6i_csi_dev *sdev)
sdev              464 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	struct sun6i_csi *csi = &sdev->csi;
sdev              468 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	regmap_read(sdev->regmap, CSI_CH_CFG_REG, &cfg);
sdev              475 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	val = get_csi_input_format(sdev, csi->config.code,
sdev              479 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	val = get_csi_output_format(sdev, csi->config.pixelformat,
sdev              483 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	val = get_csi_input_seq(sdev, csi->config.code,
sdev              494 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	regmap_write(sdev->regmap, CSI_CH_CFG_REG, cfg);
sdev              497 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c static void sun6i_csi_set_window(struct sun6i_csi_dev *sdev)
sdev              499 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	struct sun6i_csi_config *config = &sdev->csi.config;
sdev              502 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	int *planar_offset = sdev->planar_offset;
sdev              512 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 		dev_dbg(sdev->dev,
sdev              520 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	regmap_write(sdev->regmap, CSI_CH_HSIZE_REG,
sdev              523 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	regmap_write(sdev->regmap, CSI_CH_VSIZE_REG,
sdev              555 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 		dev_dbg(sdev->dev,
sdev              566 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	regmap_write(sdev->regmap, CSI_CH_BUF_LEN_REG,
sdev              574 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	struct sun6i_csi_dev *sdev = sun6i_csi_to_dev(csi);
sdev              581 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	sun6i_csi_setup_bus(sdev);
sdev              582 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	sun6i_csi_set_format(sdev);
sdev              583 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	sun6i_csi_set_window(sdev);
sdev              590 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	struct sun6i_csi_dev *sdev = sun6i_csi_to_dev(csi);
sdev              592 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	regmap_write(sdev->regmap, CSI_CH_F0_BUFA_REG,
sdev              593 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 		     (addr + sdev->planar_offset[0]) >> 2);
sdev              594 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	if (sdev->planar_offset[1] != -1)
sdev              595 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 		regmap_write(sdev->regmap, CSI_CH_F1_BUFA_REG,
sdev              596 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 			     (addr + sdev->planar_offset[1]) >> 2);
sdev              597 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	if (sdev->planar_offset[2] != -1)
sdev              598 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 		regmap_write(sdev->regmap, CSI_CH_F2_BUFA_REG,
sdev              599 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 			     (addr + sdev->planar_offset[2]) >> 2);
sdev              604 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	struct sun6i_csi_dev *sdev = sun6i_csi_to_dev(csi);
sdev              605 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	struct regmap *regmap = sdev->regmap;
sdev              795 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	struct sun6i_csi_dev *sdev = (struct sun6i_csi_dev *)dev_id;
sdev              796 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	struct regmap *regmap = sdev->regmap;
sdev              816 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 		sun6i_video_frame_done(&sdev->csi.video);
sdev              830 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c static int sun6i_csi_resource_request(struct sun6i_csi_dev *sdev,
sdev              843 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	sdev->regmap = devm_regmap_init_mmio_clk(&pdev->dev, "bus", io_base,
sdev              845 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	if (IS_ERR(sdev->regmap)) {
sdev              847 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 		return PTR_ERR(sdev->regmap);
sdev              850 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	sdev->clk_mod = devm_clk_get(&pdev->dev, "mod");
sdev              851 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	if (IS_ERR(sdev->clk_mod)) {
sdev              853 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 		return PTR_ERR(sdev->clk_mod);
sdev              856 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	sdev->clk_ram = devm_clk_get(&pdev->dev, "ram");
sdev              857 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	if (IS_ERR(sdev->clk_ram)) {
sdev              859 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 		return PTR_ERR(sdev->clk_ram);
sdev              862 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	sdev->rstc_bus = devm_reset_control_get_shared(&pdev->dev, NULL);
sdev              863 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	if (IS_ERR(sdev->rstc_bus)) {
sdev              865 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 		return PTR_ERR(sdev->rstc_bus);
sdev              873 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 			       sdev);
sdev              892 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	struct sun6i_csi_dev *sdev;
sdev              895 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	sdev = devm_kzalloc(&pdev->dev, sizeof(*sdev), GFP_KERNEL);
sdev              896 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	if (!sdev)
sdev              899 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	sdev->dev = &pdev->dev;
sdev              901 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	sdev->dev->dma_pfn_offset = PHYS_OFFSET >> PAGE_SHIFT;
sdev              903 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	ret = sun6i_csi_resource_request(sdev, pdev);
sdev              907 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	platform_set_drvdata(pdev, sdev);
sdev              909 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	sdev->csi.dev = &pdev->dev;
sdev              910 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	return sun6i_csi_v4l2_init(&sdev->csi);
sdev              915 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	struct sun6i_csi_dev *sdev = platform_get_drvdata(pdev);
sdev              917 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c 	sun6i_csi_v4l2_cleanup(&sdev->csi);
sdev              174 drivers/media/radio/si4713/si4713.c 	struct si4713_device *sdev = dev;
sdev              176 drivers/media/radio/si4713/si4713.c 	v4l2_dbg(2, debug, &sdev->sd,
sdev              178 drivers/media/radio/si4713/si4713.c 	complete(&sdev->work);
sdev              193 drivers/media/radio/si4713/si4713.c static int si4713_send_command(struct si4713_device *sdev, const u8 command,
sdev              197 drivers/media/radio/si4713/si4713.c 	struct i2c_client *client = v4l2_get_subdevdata(&sdev->sd);
sdev              208 drivers/media/radio/si4713/si4713.c 	DBG_BUFFER(&sdev->sd, "Parameters", data1, argn + 1);
sdev              212 drivers/media/radio/si4713/si4713.c 		v4l2_err(&sdev->sd, "Error while sending command 0x%02x\n",
sdev              221 drivers/media/radio/si4713/si4713.c 		if (!wait_for_completion_timeout(&sdev->work,
sdev              223 drivers/media/radio/si4713/si4713.c 			v4l2_warn(&sdev->sd,
sdev              231 drivers/media/radio/si4713/si4713.c 			v4l2_err(&sdev->sd,
sdev              237 drivers/media/radio/si4713/si4713.c 		DBG_BUFFER(&sdev->sd, "Response", response, respn);
sdev              258 drivers/media/radio/si4713/si4713.c static int si4713_read_property(struct si4713_device *sdev, u16 prop, u32 *pv)
sdev              273 drivers/media/radio/si4713/si4713.c 	err = si4713_send_command(sdev, SI4713_CMD_GET_PROPERTY,
sdev              282 drivers/media/radio/si4713/si4713.c 	v4l2_dbg(1, debug, &sdev->sd,
sdev              295 drivers/media/radio/si4713/si4713.c static int si4713_write_property(struct si4713_device *sdev, u16 prop, u16 val)
sdev              314 drivers/media/radio/si4713/si4713.c 	rval = si4713_send_command(sdev, SI4713_CMD_SET_PROPERTY,
sdev              322 drivers/media/radio/si4713/si4713.c 	v4l2_dbg(1, debug, &sdev->sd,
sdev              340 drivers/media/radio/si4713/si4713.c static int si4713_powerup(struct si4713_device *sdev)
sdev              342 drivers/media/radio/si4713/si4713.c 	struct i2c_client *client = v4l2_get_subdevdata(&sdev->sd);
sdev              354 drivers/media/radio/si4713/si4713.c 	if (sdev->power_state)
sdev              357 drivers/media/radio/si4713/si4713.c 	if (sdev->vdd) {
sdev              358 drivers/media/radio/si4713/si4713.c 		err = regulator_enable(sdev->vdd);
sdev              360 drivers/media/radio/si4713/si4713.c 			v4l2_err(&sdev->sd, "Failed to enable vdd: %d\n", err);
sdev              365 drivers/media/radio/si4713/si4713.c 	if (sdev->vio) {
sdev              366 drivers/media/radio/si4713/si4713.c 		err = regulator_enable(sdev->vio);
sdev              368 drivers/media/radio/si4713/si4713.c 			v4l2_err(&sdev->sd, "Failed to enable vio: %d\n", err);
sdev              373 drivers/media/radio/si4713/si4713.c 	if (sdev->gpio_reset) {
sdev              375 drivers/media/radio/si4713/si4713.c 		gpiod_set_value(sdev->gpio_reset, 1);
sdev              381 drivers/media/radio/si4713/si4713.c 	err = si4713_send_command(sdev, SI4713_CMD_POWER_UP,
sdev              387 drivers/media/radio/si4713/si4713.c 		v4l2_dbg(1, debug, &sdev->sd, "Powerup response: 0x%02x\n",
sdev              389 drivers/media/radio/si4713/si4713.c 		v4l2_dbg(1, debug, &sdev->sd, "Device in power up mode\n");
sdev              390 drivers/media/radio/si4713/si4713.c 		sdev->power_state = POWER_ON;
sdev              393 drivers/media/radio/si4713/si4713.c 			err = si4713_write_property(sdev, SI4713_GPO_IEN,
sdev              397 drivers/media/radio/si4713/si4713.c 	gpiod_set_value(sdev->gpio_reset, 0);
sdev              400 drivers/media/radio/si4713/si4713.c 	if (sdev->vdd) {
sdev              401 drivers/media/radio/si4713/si4713.c 		err = regulator_disable(sdev->vdd);
sdev              403 drivers/media/radio/si4713/si4713.c 			v4l2_err(&sdev->sd, "Failed to disable vdd: %d\n", err);
sdev              406 drivers/media/radio/si4713/si4713.c 	if (sdev->vio) {
sdev              407 drivers/media/radio/si4713/si4713.c 		err = regulator_disable(sdev->vio);
sdev              409 drivers/media/radio/si4713/si4713.c 			v4l2_err(&sdev->sd, "Failed to disable vio: %d\n", err);
sdev              419 drivers/media/radio/si4713/si4713.c static int si4713_powerdown(struct si4713_device *sdev)
sdev              424 drivers/media/radio/si4713/si4713.c 	if (!sdev->power_state)
sdev              427 drivers/media/radio/si4713/si4713.c 	err = si4713_send_command(sdev, SI4713_CMD_POWER_DOWN,
sdev              433 drivers/media/radio/si4713/si4713.c 		v4l2_dbg(1, debug, &sdev->sd, "Power down response: 0x%02x\n",
sdev              435 drivers/media/radio/si4713/si4713.c 		v4l2_dbg(1, debug, &sdev->sd, "Device in reset mode\n");
sdev              436 drivers/media/radio/si4713/si4713.c 		if (sdev->gpio_reset)
sdev              437 drivers/media/radio/si4713/si4713.c 			gpiod_set_value(sdev->gpio_reset, 0);
sdev              439 drivers/media/radio/si4713/si4713.c 		if (sdev->vdd) {
sdev              440 drivers/media/radio/si4713/si4713.c 			err = regulator_disable(sdev->vdd);
sdev              442 drivers/media/radio/si4713/si4713.c 				v4l2_err(&sdev->sd,
sdev              447 drivers/media/radio/si4713/si4713.c 		if (sdev->vio) {
sdev              448 drivers/media/radio/si4713/si4713.c 			err = regulator_disable(sdev->vio);
sdev              450 drivers/media/radio/si4713/si4713.c 				v4l2_err(&sdev->sd,
sdev              454 drivers/media/radio/si4713/si4713.c 		sdev->power_state = POWER_OFF;
sdev              464 drivers/media/radio/si4713/si4713.c static int si4713_checkrev(struct si4713_device *sdev)
sdev              466 drivers/media/radio/si4713/si4713.c 	struct i2c_client *client = v4l2_get_subdevdata(&sdev->sd);
sdev              470 drivers/media/radio/si4713/si4713.c 	rval = si4713_send_command(sdev, SI4713_CMD_GET_REV,
sdev              479 drivers/media/radio/si4713/si4713.c 		v4l2_info(&sdev->sd, "chip found @ 0x%02x (%s)\n",
sdev              482 drivers/media/radio/si4713/si4713.c 		v4l2_err(&sdev->sd, "Invalid product number 0x%X\n", resp[1]);
sdev              494 drivers/media/radio/si4713/si4713.c static int si4713_wait_stc(struct si4713_device *sdev, const int usecs)
sdev              496 drivers/media/radio/si4713/si4713.c 	struct i2c_client *client = v4l2_get_subdevdata(&sdev->sd);
sdev              502 drivers/media/radio/si4713/si4713.c 	    !wait_for_completion_timeout(&sdev->work, usecs_to_jiffies(usecs) + 1))
sdev              503 drivers/media/radio/si4713/si4713.c 		v4l2_warn(&sdev->sd,
sdev              508 drivers/media/radio/si4713/si4713.c 		err = si4713_send_command(sdev, SI4713_CMD_GET_INT_STATUS,
sdev              515 drivers/media/radio/si4713/si4713.c 			v4l2_dbg(1, debug, &sdev->sd,
sdev              538 drivers/media/radio/si4713/si4713.c static int si4713_tx_tune_freq(struct si4713_device *sdev, u16 frequency)
sdev              553 drivers/media/radio/si4713/si4713.c 	err = si4713_send_command(sdev, SI4713_CMD_TX_TUNE_FREQ,
sdev              560 drivers/media/radio/si4713/si4713.c 	v4l2_dbg(1, debug, &sdev->sd,
sdev              564 drivers/media/radio/si4713/si4713.c 	err = si4713_wait_stc(sdev, TIMEOUT_TX_TUNE);
sdev              582 drivers/media/radio/si4713/si4713.c static int si4713_tx_tune_power(struct si4713_device *sdev, u8 power,
sdev              604 drivers/media/radio/si4713/si4713.c 	err = si4713_send_command(sdev, SI4713_CMD_TX_TUNE_POWER,
sdev              611 drivers/media/radio/si4713/si4713.c 	v4l2_dbg(1, debug, &sdev->sd,
sdev              615 drivers/media/radio/si4713/si4713.c 	return si4713_wait_stc(sdev, TIMEOUT_TX_TUNE_POWER);
sdev              630 drivers/media/radio/si4713/si4713.c static int si4713_tx_tune_measure(struct si4713_device *sdev, u16 frequency,
sdev              648 drivers/media/radio/si4713/si4713.c 	sdev->tune_rnl = DEFAULT_TUNE_RNL;
sdev              653 drivers/media/radio/si4713/si4713.c 	err = si4713_send_command(sdev, SI4713_CMD_TX_TUNE_MEASURE,
sdev              660 drivers/media/radio/si4713/si4713.c 	v4l2_dbg(1, debug, &sdev->sd,
sdev              664 drivers/media/radio/si4713/si4713.c 	return si4713_wait_stc(sdev, TIMEOUT_TX_TUNE);
sdev              681 drivers/media/radio/si4713/si4713.c static int si4713_tx_tune_status(struct si4713_device *sdev, u8 intack,
sdev              694 drivers/media/radio/si4713/si4713.c 	err = si4713_send_command(sdev, SI4713_CMD_TX_TUNE_STATUS,
sdev              699 drivers/media/radio/si4713/si4713.c 		v4l2_dbg(1, debug, &sdev->sd,
sdev              702 drivers/media/radio/si4713/si4713.c 		sdev->frequency = *frequency;
sdev              706 drivers/media/radio/si4713/si4713.c 		v4l2_dbg(1, debug, &sdev->sd,
sdev              724 drivers/media/radio/si4713/si4713.c static int si4713_tx_rds_buff(struct si4713_device *sdev, u8 mode, u16 rdsb,
sdev              740 drivers/media/radio/si4713/si4713.c 	err = si4713_send_command(sdev, SI4713_CMD_TX_RDS_BUFF,
sdev              745 drivers/media/radio/si4713/si4713.c 		v4l2_dbg(1, debug, &sdev->sd,
sdev              748 drivers/media/radio/si4713/si4713.c 		v4l2_dbg(1, debug, &sdev->sd,
sdev              762 drivers/media/radio/si4713/si4713.c static int si4713_tx_rds_ps(struct si4713_device *sdev, u8 psid,
sdev              776 drivers/media/radio/si4713/si4713.c 	err = si4713_send_command(sdev, SI4713_CMD_TX_RDS_PS,
sdev              783 drivers/media/radio/si4713/si4713.c 	v4l2_dbg(1, debug, &sdev->sd, "%s: status=0x%02x\n", __func__, val[0]);
sdev              788 drivers/media/radio/si4713/si4713.c static int si4713_set_power_state(struct si4713_device *sdev, u8 value)
sdev              791 drivers/media/radio/si4713/si4713.c 		return si4713_powerup(sdev);
sdev              792 drivers/media/radio/si4713/si4713.c 	return si4713_powerdown(sdev);
sdev              795 drivers/media/radio/si4713/si4713.c static int si4713_set_mute(struct si4713_device *sdev, u16 mute)
sdev              801 drivers/media/radio/si4713/si4713.c 	if (sdev->power_state)
sdev              802 drivers/media/radio/si4713/si4713.c 		rval = si4713_write_property(sdev,
sdev              808 drivers/media/radio/si4713/si4713.c static int si4713_set_rds_ps_name(struct si4713_device *sdev, char *ps_name)
sdev              817 drivers/media/radio/si4713/si4713.c 	if (sdev->power_state) {
sdev              820 drivers/media/radio/si4713/si4713.c 			rval = si4713_tx_rds_ps(sdev, (i / (RDS_BLOCK / 2)),
sdev              832 drivers/media/radio/si4713/si4713.c 		rval = si4713_write_property(sdev,
sdev              838 drivers/media/radio/si4713/si4713.c 		rval = si4713_write_property(sdev,
sdev              848 drivers/media/radio/si4713/si4713.c static int si4713_set_rds_radio_text(struct si4713_device *sdev, const char *rt)
sdev              856 drivers/media/radio/si4713/si4713.c 	if (!sdev->power_state)
sdev              859 drivers/media/radio/si4713/si4713.c 	rval = si4713_tx_rds_buff(sdev, RDS_BLOCK_CLEAR, 0, 0, 0, &left);
sdev              881 drivers/media/radio/si4713/si4713.c 		rval = si4713_tx_rds_buff(sdev, RDS_BLOCK_LOAD,
sdev              903 drivers/media/radio/si4713/si4713.c static int si4713_update_tune_status(struct si4713_device *sdev)
sdev              909 drivers/media/radio/si4713/si4713.c 	rval = si4713_tx_tune_status(sdev, 0x00, &f, &p, &a, &n);
sdev              919 drivers/media/radio/si4713/si4713.c 	sdev->tune_rnl = n;
sdev              925 drivers/media/radio/si4713/si4713.c static int si4713_choose_econtrol_action(struct si4713_device *sdev, u32 id,
sdev             1052 drivers/media/radio/si4713/si4713.c static int si4713_setup(struct si4713_device *sdev)
sdev             1060 drivers/media/radio/si4713/si4713.c 	f.frequency = sdev->frequency ? sdev->frequency : DEFAULT_FREQUENCY;
sdev             1062 drivers/media/radio/si4713/si4713.c 	rval = si4713_s_frequency(&sdev->sd, &f);
sdev             1065 drivers/media/radio/si4713/si4713.c 	if (sdev->stereo)
sdev             1069 drivers/media/radio/si4713/si4713.c 	if (sdev->rds_enabled)
sdev             1071 drivers/media/radio/si4713/si4713.c 	si4713_s_modulator(&sdev->sd, &vm);
sdev             1080 drivers/media/radio/si4713/si4713.c static int si4713_initialize(struct si4713_device *sdev)
sdev             1084 drivers/media/radio/si4713/si4713.c 	rval = si4713_set_power_state(sdev, POWER_ON);
sdev             1088 drivers/media/radio/si4713/si4713.c 	rval = si4713_checkrev(sdev);
sdev             1092 drivers/media/radio/si4713/si4713.c 	rval = si4713_set_power_state(sdev, POWER_OFF);
sdev             1096 drivers/media/radio/si4713/si4713.c 	sdev->frequency = DEFAULT_FREQUENCY;
sdev             1097 drivers/media/radio/si4713/si4713.c 	sdev->stereo = 1;
sdev             1098 drivers/media/radio/si4713/si4713.c 	sdev->tune_rnl = DEFAULT_TUNE_RNL;
sdev             1105 drivers/media/radio/si4713/si4713.c 	struct si4713_device *sdev =
sdev             1121 drivers/media/radio/si4713/si4713.c 			ret = si4713_set_mute(sdev, ctrl->val);
sdev             1123 drivers/media/radio/si4713/si4713.c 				ret = si4713_set_power_state(sdev, POWER_DOWN);
sdev             1126 drivers/media/radio/si4713/si4713.c 		ret = si4713_set_power_state(sdev, POWER_UP);
sdev             1128 drivers/media/radio/si4713/si4713.c 			ret = si4713_set_mute(sdev, ctrl->val);
sdev             1130 drivers/media/radio/si4713/si4713.c 			ret = si4713_setup(sdev);
sdev             1136 drivers/media/radio/si4713/si4713.c 	if (!sdev->power_state)
sdev             1147 drivers/media/radio/si4713/si4713.c 			ret = si4713_set_rds_ps_name(sdev, ctrl->p_new.p_char);
sdev             1151 drivers/media/radio/si4713/si4713.c 			ret = si4713_set_rds_radio_text(sdev, ctrl->p_new.p_char);
sdev             1162 drivers/media/radio/si4713/si4713.c 			ret = si4713_tx_tune_power(sdev,
sdev             1163 drivers/media/radio/si4713/si4713.c 				sdev->tune_pwr_level->val, sdev->tune_ant_cap->val);
sdev             1166 drivers/media/radio/si4713/si4713.c 				sdev->tune_ant_cap->is_new = false;
sdev             1167 drivers/media/radio/si4713/si4713.c 				sdev->tune_pwr_level->is_new = false;
sdev             1173 drivers/media/radio/si4713/si4713.c 			if (sdev->rds_alt_freqs_enable->val) {
sdev             1174 drivers/media/radio/si4713/si4713.c 				val = sdev->rds_alt_freqs->p_new.p_u32[0];
sdev             1179 drivers/media/radio/si4713/si4713.c 			ret = si4713_write_property(sdev, SI4713_TX_RDS_PS_AF, val);
sdev             1183 drivers/media/radio/si4713/si4713.c 			ret = si4713_choose_econtrol_action(sdev, ctrl->id, &bit,
sdev             1200 drivers/media/radio/si4713/si4713.c 				ret = si4713_read_property(sdev, property, &val);
sdev             1206 drivers/media/radio/si4713/si4713.c 			ret = si4713_write_property(sdev, property, val);
sdev             1221 drivers/media/radio/si4713/si4713.c 	struct si4713_device *sdev = to_si4713_device(sd);
sdev             1233 drivers/media/radio/si4713/si4713.c 		if (sdev->power_state) {
sdev             1235 drivers/media/radio/si4713/si4713.c 			rval = si4713_tx_tune_measure(sdev, frequency, 0);
sdev             1239 drivers/media/radio/si4713/si4713.c 			rval = si4713_update_tune_status(sdev);
sdev             1243 drivers/media/radio/si4713/si4713.c 		rnl->rnl = sdev->tune_rnl;
sdev             1257 drivers/media/radio/si4713/si4713.c 	struct si4713_device *sdev = to_si4713_device(sd);
sdev             1260 drivers/media/radio/si4713/si4713.c 	if (!sdev)
sdev             1274 drivers/media/radio/si4713/si4713.c 	if (sdev->power_state) {
sdev             1277 drivers/media/radio/si4713/si4713.c 		rval = si4713_read_property(sdev, SI4713_TX_COMPONENT_ENABLE,
sdev             1282 drivers/media/radio/si4713/si4713.c 		sdev->stereo = get_status_bit(comp_en, 1, 1 << 1);
sdev             1286 drivers/media/radio/si4713/si4713.c 	if (sdev->stereo)
sdev             1292 drivers/media/radio/si4713/si4713.c 	if (sdev->rds_enabled)
sdev             1303 drivers/media/radio/si4713/si4713.c 	struct si4713_device *sdev = to_si4713_device(sd);
sdev             1308 drivers/media/radio/si4713/si4713.c 	if (!sdev)
sdev             1324 drivers/media/radio/si4713/si4713.c 	if (sdev->power_state) {
sdev             1325 drivers/media/radio/si4713/si4713.c 		rval = si4713_read_property(sdev,
sdev             1333 drivers/media/radio/si4713/si4713.c 		rval = si4713_write_property(sdev,
sdev             1339 drivers/media/radio/si4713/si4713.c 	sdev->stereo = stereo;
sdev             1340 drivers/media/radio/si4713/si4713.c 	sdev->rds_enabled = rds;
sdev             1348 drivers/media/radio/si4713/si4713.c 	struct si4713_device *sdev = to_si4713_device(sd);
sdev             1354 drivers/media/radio/si4713/si4713.c 	if (sdev->power_state) {
sdev             1358 drivers/media/radio/si4713/si4713.c 		rval = si4713_tx_tune_status(sdev, 0x00, &freq, &p, &a, &n);
sdev             1362 drivers/media/radio/si4713/si4713.c 		sdev->frequency = freq;
sdev             1365 drivers/media/radio/si4713/si4713.c 	f->frequency = si4713_to_v4l2(sdev->frequency);
sdev             1373 drivers/media/radio/si4713/si4713.c 	struct si4713_device *sdev = to_si4713_device(sd);
sdev             1383 drivers/media/radio/si4713/si4713.c 	if (sdev->power_state) {
sdev             1384 drivers/media/radio/si4713/si4713.c 		rval = si4713_tx_tune_freq(sdev, frequency);
sdev             1390 drivers/media/radio/si4713/si4713.c 	sdev->frequency = frequency;
sdev             1432 drivers/media/radio/si4713/si4713.c 	struct si4713_device *sdev;
sdev             1440 drivers/media/radio/si4713/si4713.c 	sdev = devm_kzalloc(&client->dev, sizeof(*sdev), GFP_KERNEL);
sdev             1441 drivers/media/radio/si4713/si4713.c 	if (!sdev) {
sdev             1447 drivers/media/radio/si4713/si4713.c 	sdev->gpio_reset = devm_gpiod_get_optional(&client->dev, "reset",
sdev             1449 drivers/media/radio/si4713/si4713.c 	if (IS_ERR(sdev->gpio_reset)) {
sdev             1450 drivers/media/radio/si4713/si4713.c 		rval = PTR_ERR(sdev->gpio_reset);
sdev             1455 drivers/media/radio/si4713/si4713.c 	sdev->vdd = devm_regulator_get_optional(&client->dev, "vdd");
sdev             1456 drivers/media/radio/si4713/si4713.c 	if (IS_ERR(sdev->vdd)) {
sdev             1457 drivers/media/radio/si4713/si4713.c 		rval = PTR_ERR(sdev->vdd);
sdev             1462 drivers/media/radio/si4713/si4713.c 		sdev->vdd = NULL;
sdev             1465 drivers/media/radio/si4713/si4713.c 	sdev->vio = devm_regulator_get_optional(&client->dev, "vio");
sdev             1466 drivers/media/radio/si4713/si4713.c 	if (IS_ERR(sdev->vio)) {
sdev             1467 drivers/media/radio/si4713/si4713.c 		rval = PTR_ERR(sdev->vio);
sdev             1472 drivers/media/radio/si4713/si4713.c 		sdev->vio = NULL;
sdev             1475 drivers/media/radio/si4713/si4713.c 	v4l2_i2c_subdev_init(&sdev->sd, client, &si4713_subdev_ops);
sdev             1477 drivers/media/radio/si4713/si4713.c 	init_completion(&sdev->work);
sdev             1479 drivers/media/radio/si4713/si4713.c 	hdl = &sdev->ctrl_handler;
sdev             1481 drivers/media/radio/si4713/si4713.c 	sdev->mute = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops,
sdev             1484 drivers/media/radio/si4713/si4713.c 	sdev->rds_pi = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops,
sdev             1486 drivers/media/radio/si4713/si4713.c 	sdev->rds_pty = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops,
sdev             1488 drivers/media/radio/si4713/si4713.c 	sdev->rds_compressed = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops,
sdev             1490 drivers/media/radio/si4713/si4713.c 	sdev->rds_art_head = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops,
sdev             1492 drivers/media/radio/si4713/si4713.c 	sdev->rds_stereo = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops,
sdev             1494 drivers/media/radio/si4713/si4713.c 	sdev->rds_tp = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops,
sdev             1496 drivers/media/radio/si4713/si4713.c 	sdev->rds_ta = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops,
sdev             1498 drivers/media/radio/si4713/si4713.c 	sdev->rds_ms = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops,
sdev             1500 drivers/media/radio/si4713/si4713.c 	sdev->rds_dyn_pty = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops,
sdev             1502 drivers/media/radio/si4713/si4713.c 	sdev->rds_alt_freqs_enable = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops,
sdev             1504 drivers/media/radio/si4713/si4713.c 	sdev->rds_alt_freqs = v4l2_ctrl_new_custom(hdl, &si4713_alt_freqs_ctrl, NULL);
sdev             1505 drivers/media/radio/si4713/si4713.c 	sdev->rds_deviation = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops,
sdev             1513 drivers/media/radio/si4713/si4713.c 	sdev->rds_ps_name = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops,
sdev             1520 drivers/media/radio/si4713/si4713.c 	sdev->rds_radio_text = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops,
sdev             1523 drivers/media/radio/si4713/si4713.c 	sdev->limiter_enabled = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops,
sdev             1525 drivers/media/radio/si4713/si4713.c 	sdev->limiter_release_time = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops,
sdev             1528 drivers/media/radio/si4713/si4713.c 	sdev->limiter_deviation = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops,
sdev             1532 drivers/media/radio/si4713/si4713.c 	sdev->compression_enabled = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops,
sdev             1534 drivers/media/radio/si4713/si4713.c 	sdev->compression_gain = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops,
sdev             1537 drivers/media/radio/si4713/si4713.c 	sdev->compression_threshold = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops,
sdev             1541 drivers/media/radio/si4713/si4713.c 	sdev->compression_attack_time = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops,
sdev             1544 drivers/media/radio/si4713/si4713.c 	sdev->compression_release_time = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops,
sdev             1548 drivers/media/radio/si4713/si4713.c 	sdev->pilot_tone_enabled = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops,
sdev             1550 drivers/media/radio/si4713/si4713.c 	sdev->pilot_tone_deviation = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops,
sdev             1553 drivers/media/radio/si4713/si4713.c 	sdev->pilot_tone_freq = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops,
sdev             1557 drivers/media/radio/si4713/si4713.c 	sdev->tune_preemphasis = v4l2_ctrl_new_std_menu(hdl, &si4713_ctrl_ops,
sdev             1560 drivers/media/radio/si4713/si4713.c 	sdev->tune_pwr_level = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops,
sdev             1563 drivers/media/radio/si4713/si4713.c 	sdev->tune_ant_cap = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops,
sdev             1571 drivers/media/radio/si4713/si4713.c 	v4l2_ctrl_cluster(29, &sdev->mute);
sdev             1572 drivers/media/radio/si4713/si4713.c 	sdev->sd.ctrl_handler = hdl;
sdev             1577 drivers/media/radio/si4713/si4713.c 			client->name, sdev);
sdev             1579 drivers/media/radio/si4713/si4713.c 			v4l2_err(&sdev->sd, "Could not request IRQ\n");
sdev             1582 drivers/media/radio/si4713/si4713.c 		v4l2_dbg(1, debug, &sdev->sd, "IRQ requested.\n");
sdev             1584 drivers/media/radio/si4713/si4713.c 		v4l2_warn(&sdev->sd, "IRQ not configured. Using timeouts.\n");
sdev             1587 drivers/media/radio/si4713/si4713.c 	rval = si4713_initialize(sdev);
sdev             1589 drivers/media/radio/si4713/si4713.c 		v4l2_err(&sdev->sd, "Failed to probe device information.\n");
sdev             1612 drivers/media/radio/si4713/si4713.c 	sdev->pd = si4713_pdev;
sdev             1618 drivers/media/radio/si4713/si4713.c 	v4l2_device_unregister_subdev(&sdev->sd);
sdev             1629 drivers/media/radio/si4713/si4713.c 	struct si4713_device *sdev = to_si4713_device(sd);
sdev             1631 drivers/media/radio/si4713/si4713.c 	platform_device_unregister(sdev->pd);
sdev             1633 drivers/media/radio/si4713/si4713.c 	if (sdev->power_state)
sdev             1634 drivers/media/radio/si4713/si4713.c 		si4713_set_power_state(sdev, POWER_DOWN);
sdev              965 drivers/media/usb/s2255/s2255drv.c static void s2255_print_cfg(struct s2255_dev *sdev, struct s2255_mode *mode)
sdev              967 drivers/media/usb/s2255/s2255drv.c 	struct device *dev = &sdev->udev->dev;
sdev             1231 drivers/message/fusion/mptctl.c 	struct scsi_device 	*sdev;
sdev             1311 drivers/message/fusion/mptctl.c 		shost_for_each_device(sdev, ioc->sh) {
sdev             1312 drivers/message/fusion/mptctl.c 			vdevice = sdev->hostdata;
sdev             1373 drivers/message/fusion/mptctl.c 	struct scsi_device 	*sdev;
sdev             1423 drivers/message/fusion/mptctl.c 		shost_for_each_device(sdev, ioc->sh) {
sdev             1426 drivers/message/fusion/mptctl.c 			vdevice = sdev->hostdata;
sdev             1751 drivers/message/fusion/mptctl.c 	struct scsi_device *sdev;
sdev             1896 drivers/message/fusion/mptctl.c 			shost_for_each_device(sdev, ioc->sh) {
sdev             1897 drivers/message/fusion/mptctl.c 				struct scsi_target *starget = scsi_target(sdev);
sdev               99 drivers/message/fusion/mptfc.c static int mptfc_slave_alloc(struct scsi_device *sdev);
sdev              191 drivers/message/fusion/mptfc.c 	struct scsi_device	*sdev = SCpnt->device;
sdev              192 drivers/message/fusion/mptfc.c 	struct Scsi_Host	*shost = sdev->host;
sdev              193 drivers/message/fusion/mptfc.c 	struct fc_rport		*rport = starget_to_rport(scsi_target(sdev));
sdev              568 drivers/message/fusion/mptfc.c mptfc_dump_lun_info(MPT_ADAPTER *ioc, struct fc_rport *rport, struct scsi_device *sdev,
sdev              581 drivers/message/fusion/mptfc.c 		sdev->host->host_no,
sdev              583 drivers/message/fusion/mptfc.c 		sdev->id, ri->pg0.CurrentTargetID,
sdev              597 drivers/message/fusion/mptfc.c mptfc_slave_alloc(struct scsi_device *sdev)
sdev              606 drivers/message/fusion/mptfc.c 	starget = scsi_target(sdev);
sdev              612 drivers/message/fusion/mptfc.c 	hd = shost_priv(sdev->host);
sdev              623 drivers/message/fusion/mptfc.c 	sdev->hostdata = vdevice;
sdev              632 drivers/message/fusion/mptfc.c 	vdevice->lun = sdev->lun;
sdev              637 drivers/message/fusion/mptfc.c 	mptfc_dump_lun_info(ioc, rport, sdev, vtarget);
sdev              558 drivers/message/fusion/mptsas.c 	struct scsi_device	*sdev;
sdev              597 drivers/message/fusion/mptsas.c 	shost_for_each_device(sdev, ioc->sh) {
sdev              598 drivers/message/fusion/mptsas.c 		starget = scsi_target(sdev);
sdev              968 drivers/message/fusion/mptsas.c 	struct scsi_device 		*sdev;
sdev              972 drivers/message/fusion/mptsas.c 	shost_for_each_device(sdev, ioc->sh) {
sdev              973 drivers/message/fusion/mptsas.c 		vdevice = sdev->hostdata;
sdev             1086 drivers/message/fusion/mptsas.c mptsas_block_io_sdev(struct scsi_device *sdev, void *data)
sdev             1088 drivers/message/fusion/mptsas.c 	scsi_device_set_state(sdev, SDEV_BLOCK);
sdev             1685 drivers/message/fusion/mptsas.c mptsas_slave_configure(struct scsi_device *sdev)
sdev             1687 drivers/message/fusion/mptsas.c 	struct Scsi_Host	*host = sdev->host;
sdev             1690 drivers/message/fusion/mptsas.c 	VirtDevice	*vdevice = sdev->hostdata;
sdev             1693 drivers/message/fusion/mptsas.c 		sdev_printk(KERN_INFO, sdev, "clearing deleted flag\n");
sdev             1701 drivers/message/fusion/mptsas.c 	if (sdev->channel == MPTSAS_RAID_CHANNEL) {
sdev             1702 drivers/message/fusion/mptsas.c 		mptsas_add_device_component_starget_ir(ioc, scsi_target(sdev));
sdev             1706 drivers/message/fusion/mptsas.c 	sas_read_port_mode_page(sdev);
sdev             1708 drivers/message/fusion/mptsas.c 	mptsas_add_device_component_starget(ioc, scsi_target(sdev));
sdev             1711 drivers/message/fusion/mptsas.c 	return mptscsih_slave_configure(sdev);
sdev             1842 drivers/message/fusion/mptsas.c mptsas_slave_alloc(struct scsi_device *sdev)
sdev             1844 drivers/message/fusion/mptsas.c 	struct Scsi_Host	*host = sdev->host;
sdev             1859 drivers/message/fusion/mptsas.c 	starget = scsi_target(sdev);
sdev             1862 drivers/message/fusion/mptsas.c 	if (sdev->channel == MPTSAS_RAID_CHANNEL)
sdev             1865 drivers/message/fusion/mptsas.c 	rphy = dev_to_rphy(sdev->sdev_target->dev.parent);
sdev             1872 drivers/message/fusion/mptsas.c 			vdevice->lun = sdev->lun;
sdev             1879 drivers/message/fusion/mptsas.c 				sdev->no_uld_attach = 1;
sdev             1891 drivers/message/fusion/mptsas.c 	sdev->hostdata = vdevice;
sdev             3733 drivers/message/fusion/mptsas.c 				struct scsi_device		*sdev;
sdev             3743 drivers/message/fusion/mptsas.c 				shost_for_each_device(sdev, ioc->sh) {
sdev             3744 drivers/message/fusion/mptsas.c 					vdevice = sdev->hostdata;
sdev             3759 drivers/message/fusion/mptsas.c 						atomic_read(&sdev->device_busy)));
sdev             3990 drivers/message/fusion/mptsas.c 	struct scsi_device *sdev;
sdev             4004 drivers/message/fusion/mptsas.c 		sdev = scsi_device_lookup(ioc->sh, MPTSAS_RAID_CHANNEL,
sdev             4006 drivers/message/fusion/mptsas.c 		if (sdev) {
sdev             4007 drivers/message/fusion/mptsas.c 			scsi_device_put(sdev);
sdev             4025 drivers/message/fusion/mptsas.c 	struct scsi_device	*sdev;
sdev             4076 drivers/message/fusion/mptsas.c 		shost_for_each_device(sdev, ioc->sh) {
sdev             4077 drivers/message/fusion/mptsas.c 			if (sdev->id == id && sdev->channel == channel) {
sdev             4078 drivers/message/fusion/mptsas.c 				if (current_depth > sdev->queue_depth) {
sdev             4079 drivers/message/fusion/mptsas.c 					sdev_printk(KERN_INFO, sdev,
sdev             4082 drivers/message/fusion/mptsas.c 					    "depth (%d)\n", sdev->queue_depth,
sdev             4086 drivers/message/fusion/mptsas.c 				depth = scsi_track_queue_full(sdev,
sdev             4087 drivers/message/fusion/mptsas.c 					sdev->queue_depth - 1);
sdev             4089 drivers/message/fusion/mptsas.c 					sdev_printk(KERN_INFO, sdev,
sdev             4093 drivers/message/fusion/mptsas.c 					sdev_printk(KERN_INFO, sdev,
sdev             4097 drivers/message/fusion/mptsas.c 					sdev_printk(KERN_DEBUG, sdev,
sdev             4206 drivers/message/fusion/mptsas.c mptsas_reprobe_lun(struct scsi_device *sdev, void *data)
sdev             4210 drivers/message/fusion/mptsas.c 	sdev->no_uld_attach = data ? 1 : 0;
sdev             4211 drivers/message/fusion/mptsas.c 	rc = scsi_device_reprobe(sdev);
sdev             4546 drivers/message/fusion/mptsas.c 		scsi_remove_device(hot_plug_info->sdev);
sdev             4547 drivers/message/fusion/mptsas.c 		scsi_device_put(hot_plug_info->sdev);
sdev             4638 drivers/message/fusion/mptsas.c 	struct scsi_device *sdev = NULL;
sdev             4656 drivers/message/fusion/mptsas.c 		sdev = scsi_device_lookup(ioc->sh, MPTSAS_RAID_CHANNEL,
sdev             4658 drivers/message/fusion/mptsas.c 		hot_plug_info.sdev = sdev;
sdev             4659 drivers/message/fusion/mptsas.c 		if (sdev)
sdev             4660 drivers/message/fusion/mptsas.c 			vdevice = sdev->hostdata;
sdev             4696 drivers/message/fusion/mptsas.c 		if (!sdev)
sdev             4702 drivers/message/fusion/mptsas.c 		if (sdev) {
sdev             4703 drivers/message/fusion/mptsas.c 			scsi_device_put(sdev);
sdev             4710 drivers/message/fusion/mptsas.c 			if (!sdev)
sdev             4719 drivers/message/fusion/mptsas.c 			if (!sdev)
sdev             4726 drivers/message/fusion/mptsas.c 			if (sdev) {
sdev             4727 drivers/message/fusion/mptsas.c 				scsi_device_put(sdev);
sdev             5103 drivers/message/fusion/mptsas.c 	struct scsi_device *sdev;
sdev             5106 drivers/message/fusion/mptsas.c 	sdev = scsi_device_lookup(ioc->sh, MPTSAS_RAID_CHANNEL, id, 0);
sdev             5107 drivers/message/fusion/mptsas.c 	if (!sdev)
sdev             5119 drivers/message/fusion/mptsas.c 	scsi_remove_device(sdev);
sdev             5121 drivers/message/fusion/mptsas.c 	scsi_device_put(sdev);
sdev              104 drivers/message/fusion/mptsas.h 	struct scsi_device	*sdev;
sdev             2085 drivers/message/fusion/mptscsih.c mptscsih_bios_param(struct scsi_device * sdev, struct block_device *bdev,
sdev             2283 drivers/message/fusion/mptscsih.c mptscsih_slave_destroy(struct scsi_device *sdev)
sdev             2285 drivers/message/fusion/mptscsih.c 	struct Scsi_Host	*host = sdev->host;
sdev             2291 drivers/message/fusion/mptscsih.c 	starget = scsi_target(sdev);
sdev             2293 drivers/message/fusion/mptscsih.c 	vdevice = sdev->hostdata;
sdev             2301 drivers/message/fusion/mptscsih.c 	sdev->hostdata = NULL;
sdev             2313 drivers/message/fusion/mptscsih.c mptscsih_change_queue_depth(struct scsi_device *sdev, int qdepth)
sdev             2315 drivers/message/fusion/mptscsih.c 	MPT_SCSI_HOST		*hd = shost_priv(sdev->host);
sdev             2321 drivers/message/fusion/mptscsih.c 	starget = scsi_target(sdev);
sdev             2327 drivers/message/fusion/mptscsih.c 		else if (sdev->type == TYPE_DISK &&
sdev             2335 drivers/message/fusion/mptscsih.c 	if (!sdev->tagged_supported)
sdev             2341 drivers/message/fusion/mptscsih.c 	return scsi_change_queue_depth(sdev, qdepth);
sdev             2351 drivers/message/fusion/mptscsih.c mptscsih_slave_configure(struct scsi_device *sdev)
sdev             2353 drivers/message/fusion/mptscsih.c 	struct Scsi_Host	*sh = sdev->host;
sdev             2360 drivers/message/fusion/mptscsih.c 	starget = scsi_target(sdev);
sdev             2362 drivers/message/fusion/mptscsih.c 	vdevice = sdev->hostdata;
sdev             2366 drivers/message/fusion/mptscsih.c 		ioc->name, sdev, sdev->channel, sdev->id, sdev->lun));
sdev             2370 drivers/message/fusion/mptscsih.c 		    ioc->name, sdev->sdtr, sdev->wdtr,
sdev             2371 drivers/message/fusion/mptscsih.c 		    sdev->ppr, sdev->inquiry_len));
sdev             2377 drivers/message/fusion/mptscsih.c 		ioc->name, sdev->queue_depth, vtarget->tflags));
sdev             2385 drivers/message/fusion/mptscsih.c 	mptscsih_change_queue_depth(sdev, MPT_SCSI_CMD_PER_DEV_HIGH);
sdev             2388 drivers/message/fusion/mptscsih.c 		ioc->name,sdev->tagged_supported, sdev->simple_tags));
sdev             2390 drivers/message/fusion/mptscsih.c 	blk_queue_dma_alignment (sdev->request_queue, 512 - 1);
sdev              125 drivers/message/fusion/mptscsih.h extern int mptscsih_bios_param(struct scsi_device * sdev, struct block_device *bdev, sector_t capacity, int geom[]);
sdev              131 drivers/message/fusion/mptscsih.h extern int mptscsih_change_queue_depth(struct scsi_device *sdev, int qdepth);
sdev              109 drivers/message/fusion/mptspi.c 			    struct scsi_device *sdev)
sdev              123 drivers/message/fusion/mptspi.c 	if (sdev->scsi_level < SCSI_2) {
sdev              129 drivers/message/fusion/mptspi.c 		if (scsi_device_wide(sdev))
sdev              132 drivers/message/fusion/mptspi.c 		if (scsi_device_sync(sdev)) {
sdev              134 drivers/message/fusion/mptspi.c 			if (!scsi_device_dt(sdev))
sdev              137 drivers/message/fusion/mptspi.c 				if (!scsi_device_ius(sdev) &&
sdev              138 drivers/message/fusion/mptspi.c 				    !scsi_device_qas(sdev))
sdev              142 drivers/message/fusion/mptspi.c 					if (scsi_device_qas(sdev)) {
sdev              146 drivers/message/fusion/mptspi.c 						scsi_device_qas(sdev), id));
sdev              149 drivers/message/fusion/mptspi.c 					if (sdev->type == TYPE_TAPE &&
sdev              150 drivers/message/fusion/mptspi.c 					    scsi_device_ius(sdev))
sdev              170 drivers/message/fusion/mptspi.c 	if (!sdev->tagged_supported)
sdev              213 drivers/message/fusion/mptspi.c 	spi_min_period(scsi_target(sdev)) = factor;
sdev              214 drivers/message/fusion/mptspi.c 	spi_max_offset(scsi_target(sdev)) = offset;
sdev              215 drivers/message/fusion/mptspi.c 	spi_max_width(scsi_target(sdev)) = width;
sdev              329 drivers/message/fusion/mptspi.c 		    struct scsi_device *sdev)
sdev              335 drivers/message/fusion/mptspi.c 	if (sdev->inq_periph_qual != 0)
sdev              341 drivers/message/fusion/mptspi.c 	vtarget->type = sdev->type;
sdev              343 drivers/message/fusion/mptspi.c 	if ((sdev->type == TYPE_PROCESSOR) && (hd->ioc->spi_data.Saf_Te)) {
sdev              348 drivers/message/fusion/mptspi.c 	}else if ((sdev->type == TYPE_PROCESSOR) &&
sdev              350 drivers/message/fusion/mptspi.c 		if (sdev->inquiry_len > 49 ) {
sdev              351 drivers/message/fusion/mptspi.c 			if (sdev->inquiry[44] == 'S' &&
sdev              352 drivers/message/fusion/mptspi.c 			    sdev->inquiry[45] == 'A' &&
sdev              353 drivers/message/fusion/mptspi.c 			    sdev->inquiry[46] == 'F' &&
sdev              354 drivers/message/fusion/mptspi.c 			    sdev->inquiry[47] == '-' &&
sdev              355 drivers/message/fusion/mptspi.c 			    sdev->inquiry[48] == 'T' &&
sdev              356 drivers/message/fusion/mptspi.c 			    sdev->inquiry[49] == 'E' ) {
sdev              362 drivers/message/fusion/mptspi.c 	mptspi_setTargetNegoParms(hd, vtarget, sdev);
sdev              684 drivers/message/fusion/mptspi.c 			     struct scsi_device *sdev)
sdev              686 drivers/message/fusion/mptspi.c 	VirtTarget *vtarget = scsi_target(sdev)->hostdata;
sdev              690 drivers/message/fusion/mptspi.c 	if (sdev->channel == 0 &&
sdev              691 drivers/message/fusion/mptspi.c 	    mptspi_is_raid(hd, sdev->id))
sdev              695 drivers/message/fusion/mptspi.c 	if (sdev->channel == 1 &&
sdev              697 drivers/message/fusion/mptspi.c 		starget_printk(KERN_ERR, scsi_target(sdev), MYIOC_s_FMT
sdev              702 drivers/message/fusion/mptspi.c 	hd->spi_pending |= (1 << sdev->id);
sdev              703 drivers/message/fusion/mptspi.c 	spi_dv_device(sdev);
sdev              704 drivers/message/fusion/mptspi.c 	hd->spi_pending &= ~(1 << sdev->id);
sdev              706 drivers/message/fusion/mptspi.c 	if (sdev->channel == 1 &&
sdev              708 drivers/message/fusion/mptspi.c 		starget_printk(KERN_ERR, scsi_target(sdev), MYIOC_s_FMT
sdev              711 drivers/message/fusion/mptspi.c 	mptspi_read_parameters(sdev->sdev_target);
sdev              712 drivers/message/fusion/mptspi.c 	spi_display_xfer_agreement(sdev->sdev_target);
sdev              713 drivers/message/fusion/mptspi.c 	mptspi_read_parameters(sdev->sdev_target);
sdev              716 drivers/message/fusion/mptspi.c static int mptspi_slave_alloc(struct scsi_device *sdev)
sdev              718 drivers/message/fusion/mptspi.c 	MPT_SCSI_HOST *hd = shost_priv(sdev->host);
sdev              724 drivers/message/fusion/mptspi.c 	if (sdev->channel == 1 &&
sdev              725 drivers/message/fusion/mptspi.c 		mptscsih_is_phys_disk(ioc, 0, sdev->id) == 0)
sdev              735 drivers/message/fusion/mptspi.c 	vdevice->lun = sdev->lun;
sdev              736 drivers/message/fusion/mptspi.c 	sdev->hostdata = vdevice;
sdev              738 drivers/message/fusion/mptspi.c 	starget = scsi_target(sdev);
sdev              743 drivers/message/fusion/mptspi.c 	if (sdev->channel == 1)
sdev              744 drivers/message/fusion/mptspi.c 		sdev->no_uld_attach = 1;
sdev              749 drivers/message/fusion/mptspi.c static int mptspi_slave_configure(struct scsi_device *sdev)
sdev              751 drivers/message/fusion/mptspi.c 	struct _MPT_SCSI_HOST *hd = shost_priv(sdev->host);
sdev              752 drivers/message/fusion/mptspi.c 	VirtTarget *vtarget = scsi_target(sdev)->hostdata;
sdev              755 drivers/message/fusion/mptspi.c 	mptspi_initTarget(hd, vtarget, sdev);
sdev              757 drivers/message/fusion/mptspi.c 	ret = mptscsih_slave_configure(sdev);
sdev              764 drivers/message/fusion/mptspi.c 		sdev->id, spi_min_period(scsi_target(sdev)),
sdev              765 drivers/message/fusion/mptspi.c 		spi_max_offset(scsi_target(sdev)),
sdev              766 drivers/message/fusion/mptspi.c 		spi_max_width(scsi_target(sdev))));
sdev              768 drivers/message/fusion/mptspi.c 	if ((sdev->channel == 1 ||
sdev              769 drivers/message/fusion/mptspi.c 	     !(mptspi_is_raid(hd, sdev->id))) &&
sdev              770 drivers/message/fusion/mptspi.c 	    !spi_initial_dv(sdev->sdev_target))
sdev              771 drivers/message/fusion/mptspi.c 		mptspi_dv_device(hd, sdev);
sdev              802 drivers/message/fusion/mptspi.c static void mptspi_slave_destroy(struct scsi_device *sdev)
sdev              804 drivers/message/fusion/mptspi.c 	struct scsi_target *starget = scsi_target(sdev);
sdev              806 drivers/message/fusion/mptspi.c 	VirtDevice *vdevice = sdev->hostdata;
sdev              820 drivers/message/fusion/mptspi.c 	mptscsih_slave_destroy(sdev);
sdev              863 drivers/message/fusion/mptspi.c 	struct scsi_device *sdev;
sdev              908 drivers/message/fusion/mptspi.c 			sdev = scsi_device_lookup_by_target(starget, i);
sdev              909 drivers/message/fusion/mptspi.c 			if (sdev && sdev->type == TYPE_TAPE) {
sdev              910 drivers/message/fusion/mptspi.c 				sdev_printk(KERN_DEBUG, sdev, MYIOC_s_FMT
sdev             1117 drivers/message/fusion/mptspi.c 	struct scsi_device *sdev;
sdev             1128 drivers/message/fusion/mptspi.c 	shost_for_each_device(sdev,shost) {
sdev             1129 drivers/message/fusion/mptspi.c 		struct scsi_target *starget = scsi_target(sdev);
sdev             1133 drivers/message/fusion/mptspi.c 		if (sdev->channel != 1)
sdev             1143 drivers/message/fusion/mptspi.c 		mptspi_dv_device(hd, sdev);
sdev             1261 drivers/message/fusion/mptspi.c 	struct scsi_device *sdev;
sdev             1270 drivers/message/fusion/mptspi.c 		shost_for_each_device(sdev, ioc->sh) {
sdev             1271 drivers/message/fusion/mptspi.c 			if  (hd->spi_pending & (1 << sdev->id))
sdev             1273 drivers/message/fusion/mptspi.c 			starget = scsi_target(sdev);
sdev             1281 drivers/message/fusion/mptspi.c 		shost_for_each_device(sdev, ioc->sh)
sdev             1282 drivers/message/fusion/mptspi.c 			mptspi_dv_device(hd, sdev);
sdev              119 drivers/mfd/qcom-spmi-pmic.c static int pmic_spmi_probe(struct spmi_device *sdev)
sdev              123 drivers/mfd/qcom-spmi-pmic.c 	regmap = devm_regmap_init_spmi_ext(sdev, &spmi_regmap_config);
sdev              128 drivers/mfd/qcom-spmi-pmic.c 	if (sdev->usid % 2 == 0)
sdev              129 drivers/mfd/qcom-spmi-pmic.c 		pmic_spmi_show_revid(regmap, &sdev->dev);
sdev              131 drivers/mfd/qcom-spmi-pmic.c 	return devm_of_platform_populate(&sdev->dev);
sdev               46 drivers/misc/mic/bus/cosm_bus.h 	struct device *sdev;
sdev              127 drivers/misc/mic/bus/scif_bus.c 	struct scif_hw_dev *sdev = dev_to_scif(d);
sdev              129 drivers/misc/mic/bus/scif_bus.c 	kfree(sdev);
sdev              140 drivers/misc/mic/bus/scif_bus.c 	struct scif_hw_dev *sdev;
sdev              142 drivers/misc/mic/bus/scif_bus.c 	sdev = kzalloc(sizeof(*sdev), GFP_KERNEL);
sdev              143 drivers/misc/mic/bus/scif_bus.c 	if (!sdev)
sdev              146 drivers/misc/mic/bus/scif_bus.c 	sdev->dev.parent = pdev;
sdev              147 drivers/misc/mic/bus/scif_bus.c 	sdev->id.device = id;
sdev              148 drivers/misc/mic/bus/scif_bus.c 	sdev->id.vendor = SCIF_DEV_ANY_ID;
sdev              149 drivers/misc/mic/bus/scif_bus.c 	sdev->dev.dma_ops = dma_ops;
sdev              150 drivers/misc/mic/bus/scif_bus.c 	sdev->dev.release = scif_release_dev;
sdev              151 drivers/misc/mic/bus/scif_bus.c 	sdev->hw_ops = hw_ops;
sdev              152 drivers/misc/mic/bus/scif_bus.c 	sdev->dnode = dnode;
sdev              153 drivers/misc/mic/bus/scif_bus.c 	sdev->snode = snode;
sdev              154 drivers/misc/mic/bus/scif_bus.c 	dev_set_drvdata(&sdev->dev, sdev);
sdev              155 drivers/misc/mic/bus/scif_bus.c 	sdev->dev.bus = &scif_bus;
sdev              156 drivers/misc/mic/bus/scif_bus.c 	sdev->mmio = mmio;
sdev              157 drivers/misc/mic/bus/scif_bus.c 	sdev->aper = aper;
sdev              158 drivers/misc/mic/bus/scif_bus.c 	sdev->dp = dp;
sdev              159 drivers/misc/mic/bus/scif_bus.c 	sdev->rdp = rdp;
sdev              160 drivers/misc/mic/bus/scif_bus.c 	sdev->dev.dma_mask = &sdev->dev.coherent_dma_mask;
sdev              161 drivers/misc/mic/bus/scif_bus.c 	dma_set_mask(&sdev->dev, DMA_BIT_MASK(64));
sdev              162 drivers/misc/mic/bus/scif_bus.c 	sdev->dma_ch = chan;
sdev              163 drivers/misc/mic/bus/scif_bus.c 	sdev->num_dma_ch = num_chan;
sdev              164 drivers/misc/mic/bus/scif_bus.c 	sdev->card_rel_da = card_rel_da;
sdev              165 drivers/misc/mic/bus/scif_bus.c 	dev_set_name(&sdev->dev, "scif-dev%u", sdev->dnode);
sdev              170 drivers/misc/mic/bus/scif_bus.c 	ret = device_register(&sdev->dev);
sdev              173 drivers/misc/mic/bus/scif_bus.c 	return sdev;
sdev              175 drivers/misc/mic/bus/scif_bus.c 	put_device(&sdev->dev);
sdev              180 drivers/misc/mic/bus/scif_bus.c void scif_unregister_device(struct scif_hw_dev *sdev)
sdev              182 drivers/misc/mic/bus/scif_bus.c 	device_unregister(&sdev->dev);
sdev               87 drivers/misc/mic/bus/scif_bus.h 	int (*next_db)(struct scif_hw_dev *sdev);
sdev               88 drivers/misc/mic/bus/scif_bus.h 	struct mic_irq * (*request_irq)(struct scif_hw_dev *sdev,
sdev               93 drivers/misc/mic/bus/scif_bus.h 	void (*free_irq)(struct scif_hw_dev *sdev,
sdev               95 drivers/misc/mic/bus/scif_bus.h 	void (*ack_interrupt)(struct scif_hw_dev *sdev, int num);
sdev               96 drivers/misc/mic/bus/scif_bus.h 	void (*send_intr)(struct scif_hw_dev *sdev, int db);
sdev               97 drivers/misc/mic/bus/scif_bus.h 	void (*send_p2p_intr)(struct scif_hw_dev *sdev, int db,
sdev               99 drivers/misc/mic/bus/scif_bus.h 	void __iomem * (*remap)(struct scif_hw_dev *sdev,
sdev              101 drivers/misc/mic/bus/scif_bus.h 	void (*unmap)(struct scif_hw_dev *sdev, void __iomem *va);
sdev              114 drivers/misc/mic/bus/scif_bus.h void scif_unregister_device(struct scif_hw_dev *sdev);
sdev              256 drivers/misc/mic/cosm/cosm_main.c 	cdev->sdev = device_create_with_groups(g_cosm_class, cdev->dev.parent,
sdev              259 drivers/misc/mic/cosm/cosm_main.c 	if (IS_ERR(cdev->sdev)) {
sdev              260 drivers/misc/mic/cosm/cosm_main.c 		rc = PTR_ERR(cdev->sdev);
sdev              266 drivers/misc/mic/cosm/cosm_main.c 	cdev->state_sysfs = sysfs_get_dirent(cdev->sdev->kobj.sd,
sdev              470 drivers/misc/mic/scif/scif_api.c 		dev_err(&ep->remote_dev->sdev->dev,
sdev              479 drivers/misc/mic/scif/scif_api.c 		dev_err(&ep->remote_dev->sdev->dev,
sdev              508 drivers/misc/mic/scif/scif_api.c 		dev_err(&ep->remote_dev->sdev->dev,
sdev              526 drivers/misc/mic/scif/scif_api.c 			dev_err(&ep->remote_dev->sdev->dev,
sdev              546 drivers/misc/mic/scif/scif_api.c 		dev_dbg(&ep->remote_dev->sdev->dev,
sdev              549 drivers/misc/mic/scif/scif_api.c 		dev_dbg(&ep->remote_dev->sdev->dev,
sdev              838 drivers/misc/mic/scif/scif_api.c 		dev_dbg(&cep->remote_dev->sdev->dev,
sdev               37 drivers/misc/mic/scif/scif_dma.c 	struct scif_dev *sdev;
sdev               80 drivers/misc/mic/scif/scif_dma.c 	struct scif_hw_dev *sdev;
sdev               90 drivers/misc/mic/scif/scif_dma.c 	sdev = scifdev->sdev;
sdev               91 drivers/misc/mic/scif/scif_dma.c 	if (!sdev->num_dma_ch)
sdev               93 drivers/misc/mic/scif/scif_dma.c 	chan = sdev->dma_ch[scifdev->dma_ch_idx];
sdev               94 drivers/misc/mic/scif/scif_dma.c 	scifdev->dma_ch_idx = (scifdev->dma_ch_idx + 1) % sdev->num_dma_ch;
sdev              391 drivers/misc/mic/scif/scif_dma.c 		dev_err(&ep->remote_dev->sdev->dev,
sdev              409 drivers/misc/mic/scif/scif_dma.c static int scif_sync_dma(struct scif_hw_dev *sdev, struct dma_chan *chan,
sdev              420 drivers/misc/mic/scif/scif_dma.c 		dev_err(&sdev->dev, "%s %d err %d\n",
sdev              429 drivers/misc/mic/scif/scif_dma.c 		dev_err(&sdev->dev, "%s %d err %d\n",
sdev              437 drivers/misc/mic/scif/scif_dma.c 		dev_err(&sdev->dev, "%s %d err %d\n",
sdev              448 drivers/misc/mic/scif/scif_dma.c 			dev_err(&sdev->dev, "%s %d err %d\n",
sdev              475 drivers/misc/mic/scif/scif_dma.c static int scif_async_dma(struct scif_hw_dev *sdev, struct dma_chan *chan)
sdev              487 drivers/misc/mic/scif/scif_dma.c 		dev_err(&sdev->dev, "%s %d err %d\n",
sdev              496 drivers/misc/mic/scif/scif_dma.c 		dev_err(&sdev->dev, "%s %d err %d\n",
sdev              507 drivers/misc/mic/scif/scif_dma.c 		dev_err(&sdev->dev, "%s %d err %d\n",
sdev              516 drivers/misc/mic/scif/scif_dma.c 		dev_err(&sdev->dev, "%s %d err %d\n",
sdev              524 drivers/misc/mic/scif/scif_dma.c 		dev_err(&sdev->dev, "%s %d err %d\n",
sdev              540 drivers/misc/mic/scif/scif_dma.c static int scif_drain_dma_poll(struct scif_hw_dev *sdev, struct dma_chan *chan)
sdev              544 drivers/misc/mic/scif/scif_dma.c 	return scif_sync_dma(sdev, chan, SCIF_DMA_SYNC_WAIT);
sdev              555 drivers/misc/mic/scif/scif_dma.c int scif_drain_dma_intr(struct scif_hw_dev *sdev, struct dma_chan *chan)
sdev              559 drivers/misc/mic/scif/scif_dma.c 	return scif_async_dma(sdev, chan);
sdev              586 drivers/misc/mic/scif/scif_dma.c 		    !scif_drain_dma_intr(ep->remote_dev->sdev,
sdev              591 drivers/misc/mic/scif/scif_dma.c 			dev_warn(&ep->remote_dev->sdev->dev,
sdev              629 drivers/misc/mic/scif/scif_dma.c 		    !scif_drain_dma_intr(ep->remote_dev->sdev,
sdev              636 drivers/misc/mic/scif/scif_dma.c 			dev_warn(&ep->remote_dev->sdev->dev,
sdev              673 drivers/misc/mic/scif/scif_dma.c 	    dev->sdev->aper && !dev->sdev->card_rel_da)
sdev              674 drivers/misc/mic/scif/scif_dma.c 		phys = phys - dev->sdev->aper->pa;
sdev              856 drivers/misc/mic/scif/scif_dma.c 	scif_unmap_single(comp_cb->temp_phys, comp_cb->sdev,
sdev             1049 drivers/misc/mic/scif/scif_dma.c 			ret = scif_drain_dma_intr(rdev->sdev, chan);
sdev             1387 drivers/misc/mic/scif/scif_dma.c 			ret = scif_drain_dma_poll(rdev->sdev, chan);
sdev             1603 drivers/misc/mic/scif/scif_dma.c 	comp_cb->sdev = work->remote_dev;
sdev             1800 drivers/misc/mic/scif/scif_dma.c 			err = scif_drain_dma_poll(rdev->sdev,
sdev             1803 drivers/misc/mic/scif/scif_dma.c 			err = scif_drain_dma_intr(rdev->sdev,
sdev              212 drivers/misc/mic/scif/scif_fence.c 		dev_err(&ep->remote_dev->sdev->dev, "%s %d err %d\n",
sdev              219 drivers/misc/mic/scif/scif_fence.c 		dev_err(&ep->remote_dev->sdev->dev, "%s %d err %d\n",
sdev              235 drivers/misc/mic/scif/scif_fence.c 			dev_err(&ep->remote_dev->sdev->dev, "%s %d err %d\n",
sdev              248 drivers/misc/mic/scif/scif_fence.c 		dev_err(&ep->remote_dev->sdev->dev, "%s %d err %d\n",
sdev              267 drivers/misc/mic/scif/scif_fence.c 		dev_err(&ep->remote_dev->sdev->dev, "%s %d err %d\n",
sdev              598 drivers/misc/mic/scif/scif_fence.c 		dev_err(&ep->remote_dev->sdev->dev, "%s %d err %d\n",
sdev              605 drivers/misc/mic/scif/scif_fence.c 		dev_err(&ep->remote_dev->sdev->dev, "%s %d err %d\n",
sdev              613 drivers/misc/mic/scif/scif_fence.c 		dev_err(&ep->remote_dev->sdev->dev, "%s %d err %d\n",
sdev              622 drivers/misc/mic/scif/scif_fence.c 		dev_err(&ep->remote_dev->sdev->dev, "%s %d err %d\n",
sdev               68 drivers/misc/mic/scif/scif_main.c 	struct scif_hw_dev *sdev = scifdev->sdev;
sdev               70 drivers/misc/mic/scif/scif_main.c 	sdev->hw_ops->ack_interrupt(sdev, scifdev->db);
sdev               79 drivers/misc/mic/scif/scif_main.c 	struct scif_hw_dev *sdev = scifdev->sdev;
sdev               84 drivers/misc/mic/scif/scif_main.c 		struct mic_bootparam *bp = sdev->dp;
sdev               89 drivers/misc/mic/scif/scif_main.c 		struct mic_bootparam __iomem *bp = sdev->rdp;
sdev               97 drivers/misc/mic/scif/scif_main.c 			dev_err(&scifdev->sdev->dev,
sdev              139 drivers/misc/mic/scif/scif_main.c static int scif_probe(struct scif_hw_dev *sdev)
sdev              141 drivers/misc/mic/scif/scif_main.c 	struct scif_dev *scifdev = &scif_dev[sdev->dnode];
sdev              144 drivers/misc/mic/scif/scif_main.c 	dev_set_drvdata(&sdev->dev, sdev);
sdev              145 drivers/misc/mic/scif/scif_main.c 	scifdev->sdev = sdev;
sdev              148 drivers/misc/mic/scif/scif_main.c 		struct scif_dev *loopb_dev = &scif_dev[sdev->snode];
sdev              150 drivers/misc/mic/scif/scif_main.c 		loopb_dev->sdev = sdev;
sdev              162 drivers/misc/mic/scif/scif_main.c 	scifdev->db = sdev->hw_ops->next_db(sdev);
sdev              163 drivers/misc/mic/scif/scif_main.c 	scifdev->cookie = sdev->hw_ops->request_irq(sdev, scif_intr_handler,
sdev              171 drivers/misc/mic/scif/scif_main.c 		struct mic_bootparam *bp = sdev->dp;
sdev              176 drivers/misc/mic/scif/scif_main.c 		struct mic_bootparam __iomem *bp = sdev->rdp;
sdev              190 drivers/misc/mic/scif/scif_main.c 		scif_destroy_loopback_qp(&scif_dev[sdev->snode]);
sdev              208 drivers/misc/mic/scif/scif_main.c static void scif_remove(struct scif_hw_dev *sdev)
sdev              210 drivers/misc/mic/scif/scif_main.c 	struct scif_dev *scifdev = &scif_dev[sdev->dnode];
sdev              213 drivers/misc/mic/scif/scif_main.c 		struct mic_bootparam *bp = sdev->dp;
sdev              218 drivers/misc/mic/scif/scif_main.c 		struct mic_bootparam __iomem *bp = sdev->rdp;
sdev              230 drivers/misc/mic/scif/scif_main.c 		scif_destroy_loopback_qp(&scif_dev[sdev->snode]);
sdev              232 drivers/misc/mic/scif/scif_main.c 		sdev->hw_ops->free_irq(sdev, scifdev->cookie, scifdev);
sdev              239 drivers/misc/mic/scif/scif_main.c 	scifdev->sdev = NULL;
sdev              176 drivers/misc/mic/scif/scif_main.h 	struct scif_hw_dev *sdev;
sdev               26 drivers/misc/mic/scif/scif_map.h 		va = dma_alloc_coherent(&scifdev->sdev->dev,
sdev               43 drivers/misc/mic/scif/scif_map.h 		dma_free_coherent(&scifdev->sdev->dev,
sdev               57 drivers/misc/mic/scif/scif_map.h 		*dma_handle = dma_map_single(&scifdev->sdev->dev,
sdev               59 drivers/misc/mic/scif/scif_map.h 		if (dma_mapping_error(&scifdev->sdev->dev, *dma_handle))
sdev               76 drivers/misc/mic/scif/scif_map.h 		dma_unmap_single(&scifdev->sdev->dev, local,
sdev               85 drivers/misc/mic/scif/scif_map.h 	struct scif_hw_dev *sdev = scifdev->sdev;
sdev               91 drivers/misc/mic/scif/scif_map.h 			   sdev->hw_ops->remap(sdev, phys, size);
sdev               99 drivers/misc/mic/scif/scif_map.h 		struct scif_hw_dev *sdev = scifdev->sdev;
sdev              101 drivers/misc/mic/scif/scif_map.h 		sdev->hw_ops->unmap(sdev, (void __force __iomem *)virt);
sdev              114 drivers/misc/mic/scif/scif_map.h 		struct scif_hw_dev *sdev = scifdev->sdev;
sdev              115 drivers/misc/mic/scif/scif_map.h 		*dma_handle = dma_map_page(&sdev->dev,
sdev              118 drivers/misc/mic/scif/scif_map.h 		if (dma_mapping_error(&sdev->dev, *dma_handle))
sdev               42 drivers/misc/mic/scif/scif_mmap.c 		dev_err(&scifdev->sdev->dev,
sdev              199 drivers/misc/mic/scif/scif_mmap.c 	struct scif_hw_dev *sdev = scifdev->sdev;
sdev              206 drivers/misc/mic/scif/scif_mmap.c 	if (!scifdev_self(scifdev) && sdev->aper && sdev->card_rel_da)
sdev              207 drivers/misc/mic/scif/scif_mmap.c 		apt_base = sdev->aper->pa;
sdev              246 drivers/misc/mic/scif/scif_mmap.c 		dev_err(&ep->remote_dev->sdev->dev,
sdev              286 drivers/misc/mic/scif/scif_mmap.c 				ep->remote_dev->sdev->aper->va +
sdev              288 drivers/misc/mic/scif/scif_mmap.c 				ep->remote_dev->sdev->aper->pa;
sdev              303 drivers/misc/mic/scif/scif_mmap.c 		dev_err(&ep->remote_dev->sdev->dev,
sdev              342 drivers/misc/mic/scif/scif_mmap.c 		scif_drain_dma_intr(ep->remote_dev->sdev,
sdev              473 drivers/misc/mic/scif/scif_mmap.c 			scif_drain_dma_intr(rdev->sdev,
sdev              645 drivers/misc/mic/scif/scif_mmap.c 		dev_err(&ep->remote_dev->sdev->dev,
sdev              674 drivers/misc/mic/scif/scif_mmap.c 		dev_err(&ep->remote_dev->sdev->dev,
sdev              685 drivers/misc/mic/scif/scif_mmap.c 		dev_err(&ep->remote_dev->sdev->dev,
sdev              110 drivers/misc/mic/scif/scif_nm.c 	struct scif_hw_dev *sdev = dev->sdev;
sdev              112 drivers/misc/mic/scif/scif_nm.c 	if (!dev->sdev)
sdev              116 drivers/misc/mic/scif/scif_nm.c 			sdev->hw_ops->free_irq(sdev, dev->cookie, dev);
sdev              237 drivers/misc/mic/scif/scif_nodeqp.c 		dev_err(&scifdev->sdev->dev,
sdev              278 drivers/misc/mic/scif/scif_nodeqp.c 	struct scif_hw_dev *sdev = scifdev->sdev;
sdev              281 drivers/misc/mic/scif/scif_nodeqp.c 		sdev->hw_ops->send_p2p_intr(sdev, scifdev->rdb, &scifdev->mmio);
sdev              283 drivers/misc/mic/scif/scif_nodeqp.c 		sdev->hw_ops->send_intr(sdev, scifdev->rdb);
sdev              384 drivers/misc/mic/scif/scif_nodeqp.c 	struct scif_hw_dev *psdev = peerdev->sdev;
sdev              385 drivers/misc/mic/scif/scif_nodeqp.c 	struct scif_hw_dev *sdev = scifdev->sdev;
sdev              404 drivers/misc/mic/scif/scif_nodeqp.c 	err = dma_map_sg(&sdev->dev, p2p->ppi_sg[SCIF_PPI_MMIO],
sdev              408 drivers/misc/mic/scif/scif_nodeqp.c 	err = dma_map_sg(&sdev->dev, p2p->ppi_sg[SCIF_PPI_APER],
sdev              419 drivers/misc/mic/scif/scif_nodeqp.c 	dma_unmap_sg(&sdev->dev, p2p->ppi_sg[SCIF_PPI_MMIO],
sdev              433 drivers/misc/mic/scif/scif_nodeqp.c 	struct scif_hw_dev *sdev = scifdev->sdev;
sdev              435 drivers/misc/mic/scif/scif_nodeqp.c 	dma_unmap_sg(&sdev->dev, p2p->ppi_sg[SCIF_PPI_MMIO],
sdev              437 drivers/misc/mic/scif/scif_nodeqp.c 	dma_unmap_sg(&sdev->dev, p2p->ppi_sg[SCIF_PPI_APER],
sdev              508 drivers/misc/mic/scif/scif_nodeqp.c 		dev_err(&scifdev->sdev->dev,
sdev              598 drivers/misc/mic/scif/scif_nodeqp.c 		dev_err(&scifdev->sdev->dev,
sdev              602 drivers/misc/mic/scif/scif_nodeqp.c 	dev_info(&scifdev->sdev->dev,
sdev              646 drivers/misc/mic/scif/scif_nodeqp.c 		dev_dbg(&scifdev->sdev->dev,
sdev              773 drivers/misc/mic/scif/scif_nodeqp.c 	struct scif_hw_dev *sdev;
sdev              775 drivers/misc/mic/scif/scif_nodeqp.c 	dev_dbg(&scifdev->sdev->dev,
sdev              778 drivers/misc/mic/scif/scif_nodeqp.c 	dev_dbg(&scifdev->sdev->dev,
sdev              783 drivers/misc/mic/scif/scif_nodeqp.c 	newdev->sdev = scif_dev[SCIF_MGMT_NODE].sdev;
sdev              784 drivers/misc/mic/scif/scif_nodeqp.c 	sdev = newdev->sdev;
sdev              787 drivers/misc/mic/scif/scif_nodeqp.c 		dev_err(&scifdev->sdev->dev,
sdev              791 drivers/misc/mic/scif/scif_nodeqp.c 	newdev->mmio.va = ioremap_nocache(msg->payload[1], sdev->mmio->len);
sdev              793 drivers/misc/mic/scif/scif_nodeqp.c 		dev_err(&scifdev->sdev->dev,
sdev              809 drivers/misc/mic/scif/scif_nodeqp.c 		dev_err(&scifdev->sdev->dev,
sdev              814 drivers/misc/mic/scif/scif_nodeqp.c 	newdev->db = sdev->hw_ops->next_db(sdev);
sdev              815 drivers/misc/mic/scif/scif_nodeqp.c 	newdev->cookie = sdev->hw_ops->request_irq(sdev, scif_intr_handler,
sdev              838 drivers/misc/mic/scif/scif_nodeqp.c 	dev_err(&scifdev->sdev->dev,
sdev              857 drivers/misc/mic/scif/scif_nodeqp.c 			dev_err(&peerdev->sdev->dev,
sdev              868 drivers/misc/mic/scif/scif_nodeqp.c 	dev_err(&peerdev->sdev->dev,
sdev              892 drivers/misc/mic/scif/scif_nodeqp.c 	dev_dbg(&scifdev->sdev->dev,
sdev              895 drivers/misc/mic/scif/scif_nodeqp.c 	dev_dbg(&scifdev->sdev->dev,
sdev              912 drivers/misc/mic/scif/scif_nodeqp.c 	peerdev->sdev = scif_dev[SCIF_MGMT_NODE].sdev;
sdev              943 drivers/misc/mic/scif/scif_nodeqp.c 		dev_dbg(&scifdev->sdev->dev,
sdev              974 drivers/misc/mic/scif/scif_nodeqp.c 	struct scif_dev *sdev = &scif_dev[msg->payload[0]];
sdev              976 drivers/misc/mic/scif/scif_nodeqp.c 	atomic_inc(&sdev->disconn_rescnt);
sdev              977 drivers/misc/mic/scif/scif_nodeqp.c 	wake_up(&sdev->disconn_wq);
sdev             1012 drivers/misc/mic/scif/scif_nodeqp.c 	dev_err(&scifdev->sdev->dev,
sdev             1080 drivers/misc/mic/scif/scif_nodeqp.c 		dev_err(&scifdev->sdev->dev,
sdev             1295 drivers/misc/mic/scif/scif_nodeqp.c 	scifdev->sdev = NULL;
sdev             1311 drivers/misc/mic/scif/scif_nodeqp.c 		dma_unmap_sg(&scifdev->sdev->dev, p2p->ppi_sg[SCIF_PPI_MMIO],
sdev             1314 drivers/misc/mic/scif/scif_nodeqp.c 		dma_unmap_sg(&scifdev->sdev->dev, p2p->ppi_sg[SCIF_PPI_APER],
sdev             1329 drivers/misc/mic/scif/scif_nodeqp.c 				dma_unmap_sg(&peer_dev->sdev->dev,
sdev             1333 drivers/misc/mic/scif/scif_nodeqp.c 				dma_unmap_sg(&peer_dev->sdev->dev,
sdev               25 drivers/misc/mic/scif/scif_peer_bus.c 	struct scif_peer_dev *sdev = dev_to_scif_peer(d);
sdev               26 drivers/misc/mic/scif/scif_peer_bus.c 	struct scif_dev *scifdev = &scif_dev[sdev->dnode];
sdev               29 drivers/misc/mic/scif/scif_peer_bus.c 	kfree(sdev);
sdev               43 drivers/misc/mic/scif/scif_peer_bus.c 	spdev->dev.parent = scifdev->sdev->dev.parent;
sdev               59 drivers/misc/mic/scif/scif_peer_bus.c 	dev_err(&scifdev->sdev->dev,
sdev               73 drivers/misc/mic/scif/scif_peer_bus.c 		dev_err(&scifdev->sdev->dev,
sdev               79 drivers/misc/mic/scif/scif_peer_bus.c 	scifdev->signal_pool = dmam_pool_create(pool_name, &scifdev->sdev->dev,
sdev               83 drivers/misc/mic/scif/scif_peer_bus.c 		dev_err(&scifdev->sdev->dev,
sdev               19 drivers/misc/mic/scif/scif_peer_bus.h void scif_peer_register_device(struct scif_dev *sdev);
sdev              231 drivers/misc/mic/scif/scif_rma.c 			dma_unmap_sg(&remote_dev->sdev->dev,
sdev              542 drivers/misc/mic/scif/scif_rma.c 	err = dma_map_sg(&remote_dev->sdev->dev, window->st->sgl,
sdev              718 drivers/misc/mic/scif/scif_rma.c 			scif_drain_dma_intr(ep->remote_dev->sdev,
sdev              779 drivers/misc/mic/scif/scif_rma.c 		dev_err(&ep->remote_dev->sdev->dev,
sdev              807 drivers/misc/mic/scif/scif_rma.c 		dev_err(&ep->remote_dev->sdev->dev,
sdev             1063 drivers/misc/mic/scif/scif_rma.c 	dev_err(&scifdev->sdev->dev,
sdev             1111 drivers/misc/mic/scif/scif_rma.c 	struct scif_hw_dev *sdev = dev->sdev;
sdev             1119 drivers/misc/mic/scif/scif_rma.c 	    sdev->aper && !sdev->card_rel_da)
sdev             1120 drivers/misc/mic/scif/scif_rma.c 		apt_base = sdev->aper->pa;
sdev             1195 drivers/misc/mic/scif/scif_rma.c 		dev_err(&scifdev->sdev->dev,
sdev             1204 drivers/misc/mic/scif/scif_rma.c 			dev_err(&scifdev->sdev->dev,
sdev             1226 drivers/misc/mic/scif/scif_rma.c 		scif_drain_dma_intr(ep->remote_dev->sdev,
sdev             1534 drivers/misc/mic/scif/scif_rma.c 		dev_err(&ep->remote_dev->sdev->dev,
sdev             1542 drivers/misc/mic/scif/scif_rma.c 		dev_err(&ep->remote_dev->sdev->dev,
sdev             1550 drivers/misc/mic/scif/scif_rma.c 		dev_err(&ep->remote_dev->sdev->dev,
sdev             1562 drivers/misc/mic/scif/scif_rma.c 	dev_err(&ep->remote_dev->sdev->dev,
sdev             1662 drivers/misc/mic/scif/scif_rma.c 		dev_err(&ep->remote_dev->sdev->dev,
sdev             1670 drivers/misc/mic/scif/scif_rma.c 		dev_err(&ep->remote_dev->sdev->dev,
sdev             1678 drivers/misc/mic/scif/scif_rma.c 	dev_dbg(&ep->remote_dev->sdev->dev,
sdev             1686 drivers/misc/mic/scif/scif_rma.c 	dev_err(&ep->remote_dev->sdev->dev,
sdev             1738 drivers/misc/mic/scif/scif_rma.c 		dev_err(&ep->remote_dev->sdev->dev,
sdev             1745 drivers/misc/mic/scif/scif_rma.c 		dev_err(&ep->remote_dev->sdev->dev,
sdev              374 drivers/misc/mic/scif/scif_rma.h int scif_drain_dma_intr(struct scif_hw_dev *sdev, struct dma_chan *chan);
sdev             1080 drivers/mtd/devices/spear_smi.c 	struct spear_smi *sdev = dev_get_drvdata(dev);
sdev             1082 drivers/mtd/devices/spear_smi.c 	if (sdev && sdev->clk)
sdev             1083 drivers/mtd/devices/spear_smi.c 		clk_disable_unprepare(sdev->clk);
sdev             1090 drivers/mtd/devices/spear_smi.c 	struct spear_smi *sdev = dev_get_drvdata(dev);
sdev             1093 drivers/mtd/devices/spear_smi.c 	if (sdev && sdev->clk)
sdev             1094 drivers/mtd/devices/spear_smi.c 		ret = clk_prepare_enable(sdev->clk);
sdev             1097 drivers/mtd/devices/spear_smi.c 		spear_smi_hw_init(sdev);
sdev             1312 drivers/net/bonding/bond_options.c 	struct net_device *sdev;
sdev             1336 drivers/net/bonding/bond_options.c 	sdev = __dev_get_by_name(dev_net(bond->dev), newval->string);
sdev             1337 drivers/net/bonding/bond_options.c 	if (!sdev)
sdev             1343 drivers/net/bonding/bond_options.c 		if (sdev == slave->dev)
sdev             1487 drivers/net/can/grcan.c 	static ssize_t grcan_store_##name(struct device *sdev,		\
sdev             1492 drivers/net/can/grcan.c 		struct net_device *dev = to_net_dev(sdev);		\
sdev             1504 drivers/net/can/grcan.c 	static ssize_t grcan_show_##name(struct device *sdev,		\
sdev             1508 drivers/net/can/grcan.c 		struct net_device *dev = to_net_dev(sdev);		\
sdev              559 drivers/net/ethernet/alacritech/slic.h static inline u32 slic_read(struct slic_device *sdev, unsigned int reg)
sdev              561 drivers/net/ethernet/alacritech/slic.h 	return ioread32(sdev->regs + reg);
sdev              564 drivers/net/ethernet/alacritech/slic.h static inline void slic_write(struct slic_device *sdev, unsigned int reg,
sdev              567 drivers/net/ethernet/alacritech/slic.h 	iowrite32(val, sdev->regs + reg);
sdev              570 drivers/net/ethernet/alacritech/slic.h static inline void slic_flush_write(struct slic_device *sdev)
sdev              572 drivers/net/ethernet/alacritech/slic.h 	(void)ioread32(sdev->regs + SLIC_REG_HOSTID);
sdev               79 drivers/net/ethernet/alacritech/slicoss.c static unsigned int slic_next_compl_idx(struct slic_device *sdev)
sdev               81 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_stat_queue *stq = &sdev->stq;
sdev              103 drivers/net/ethernet/alacritech/slicoss.c 		slic_write(sdev, SLIC_REG_RBAR, lower_32_bits(paddr) |
sdev              106 drivers/net/ethernet/alacritech/slicoss.c 		slic_flush_write(sdev);
sdev              140 drivers/net/ethernet/alacritech/slicoss.c static void slic_start_upr(struct slic_device *sdev, struct slic_upr *upr)
sdev              146 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, reg, lower_32_bits(upr->paddr));
sdev              147 drivers/net/ethernet/alacritech/slicoss.c 	slic_flush_write(sdev);
sdev              150 drivers/net/ethernet/alacritech/slicoss.c static void slic_queue_upr(struct slic_device *sdev, struct slic_upr *upr)
sdev              152 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_upr_list *upr_list = &sdev->upr_list;
sdev              163 drivers/net/ethernet/alacritech/slicoss.c 		slic_start_upr(sdev, upr);
sdev              166 drivers/net/ethernet/alacritech/slicoss.c static struct slic_upr *slic_dequeue_upr(struct slic_device *sdev)
sdev              168 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_upr_list *upr_list = &sdev->upr_list;
sdev              186 drivers/net/ethernet/alacritech/slicoss.c 		slic_start_upr(sdev, next_upr);
sdev              191 drivers/net/ethernet/alacritech/slicoss.c static int slic_new_upr(struct slic_device *sdev, unsigned int type,
sdev              202 drivers/net/ethernet/alacritech/slicoss.c 	slic_queue_upr(sdev, upr);
sdev              223 drivers/net/ethernet/alacritech/slicoss.c static void slic_configure_rcv(struct slic_device *sdev)
sdev              230 drivers/net/ethernet/alacritech/slicoss.c 	if (sdev->duplex == DUPLEX_FULL)
sdev              233 drivers/net/ethernet/alacritech/slicoss.c 	if (sdev->promisc)
sdev              236 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_WRCFG, val);
sdev              240 drivers/net/ethernet/alacritech/slicoss.c static void slic_configure_xmt(struct slic_device *sdev)
sdev              246 drivers/net/ethernet/alacritech/slicoss.c 	if (sdev->duplex == DUPLEX_FULL)
sdev              249 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_WXCFG, val);
sdev              253 drivers/net/ethernet/alacritech/slicoss.c static void slic_configure_mac(struct slic_device *sdev)
sdev              257 drivers/net/ethernet/alacritech/slicoss.c 	if (sdev->speed == SPEED_1000) {
sdev              268 drivers/net/ethernet/alacritech/slicoss.c 	if (sdev->duplex == DUPLEX_FULL)
sdev              271 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_WMCFG, val);
sdev              274 drivers/net/ethernet/alacritech/slicoss.c static void slic_configure_link_locked(struct slic_device *sdev, int speed,
sdev              277 drivers/net/ethernet/alacritech/slicoss.c 	struct net_device *dev = sdev->netdev;
sdev              279 drivers/net/ethernet/alacritech/slicoss.c 	if (sdev->speed == speed && sdev->duplex == duplex)
sdev              282 drivers/net/ethernet/alacritech/slicoss.c 	sdev->speed = speed;
sdev              283 drivers/net/ethernet/alacritech/slicoss.c 	sdev->duplex = duplex;
sdev              285 drivers/net/ethernet/alacritech/slicoss.c 	if (sdev->speed == SPEED_UNKNOWN) {
sdev              290 drivers/net/ethernet/alacritech/slicoss.c 		slic_configure_mac(sdev);
sdev              291 drivers/net/ethernet/alacritech/slicoss.c 		slic_configure_xmt(sdev);
sdev              292 drivers/net/ethernet/alacritech/slicoss.c 		slic_configure_rcv(sdev);
sdev              293 drivers/net/ethernet/alacritech/slicoss.c 		slic_flush_write(sdev);
sdev              300 drivers/net/ethernet/alacritech/slicoss.c static void slic_configure_link(struct slic_device *sdev, int speed,
sdev              303 drivers/net/ethernet/alacritech/slicoss.c 	spin_lock_bh(&sdev->link_lock);
sdev              304 drivers/net/ethernet/alacritech/slicoss.c 	slic_configure_link_locked(sdev, speed, duplex);
sdev              305 drivers/net/ethernet/alacritech/slicoss.c 	spin_unlock_bh(&sdev->link_lock);
sdev              310 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_device *sdev = netdev_priv(dev);
sdev              330 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_MCASTLOW, lower_32_bits(mcmask));
sdev              331 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_MCASTHIGH, upper_32_bits(mcmask));
sdev              335 drivers/net/ethernet/alacritech/slicoss.c 	spin_lock_bh(&sdev->link_lock);
sdev              336 drivers/net/ethernet/alacritech/slicoss.c 	if (sdev->promisc != set_promisc) {
sdev              337 drivers/net/ethernet/alacritech/slicoss.c 		sdev->promisc = set_promisc;
sdev              338 drivers/net/ethernet/alacritech/slicoss.c 		slic_configure_rcv(sdev);
sdev              340 drivers/net/ethernet/alacritech/slicoss.c 	spin_unlock_bh(&sdev->link_lock);
sdev              343 drivers/net/ethernet/alacritech/slicoss.c static void slic_xmit_complete(struct slic_device *sdev)
sdev              345 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_tx_queue *txq = &sdev->txq;
sdev              346 drivers/net/ethernet/alacritech/slicoss.c 	struct net_device *dev = sdev->netdev;
sdev              356 drivers/net/ethernet/alacritech/slicoss.c 		idx = slic_next_compl_idx(sdev);
sdev              368 drivers/net/ethernet/alacritech/slicoss.c 		dma_unmap_single(&sdev->pdev->dev,
sdev              381 drivers/net/ethernet/alacritech/slicoss.c 	u64_stats_update_begin(&sdev->stats.syncp);
sdev              382 drivers/net/ethernet/alacritech/slicoss.c 	sdev->stats.tx_bytes += bytes;
sdev              383 drivers/net/ethernet/alacritech/slicoss.c 	sdev->stats.tx_packets += frames;
sdev              384 drivers/net/ethernet/alacritech/slicoss.c 	u64_stats_update_end(&sdev->stats.syncp);
sdev              393 drivers/net/ethernet/alacritech/slicoss.c static void slic_refill_rx_queue(struct slic_device *sdev, gfp_t gfp)
sdev              397 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_rx_queue *rxq = &sdev->rxq;
sdev              398 drivers/net/ethernet/alacritech/slicoss.c 	struct net_device *dev = sdev->netdev;
sdev              411 drivers/net/ethernet/alacritech/slicoss.c 		paddr = dma_map_single(&sdev->pdev->dev, skb->data, maplen,
sdev              413 drivers/net/ethernet/alacritech/slicoss.c 		if (dma_mapping_error(&sdev->pdev->dev, paddr)) {
sdev              429 drivers/net/ethernet/alacritech/slicoss.c 		dma_sync_single_for_cpu(&sdev->pdev->dev, paddr,
sdev              434 drivers/net/ethernet/alacritech/slicoss.c 		dma_sync_single_for_device(&sdev->pdev->dev, paddr,
sdev              446 drivers/net/ethernet/alacritech/slicoss.c 		slic_write(sdev, SLIC_REG_HBAR, lower_32_bits(paddr) + offset);
sdev              451 drivers/net/ethernet/alacritech/slicoss.c static void slic_handle_frame_error(struct slic_device *sdev,
sdev              454 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_stats *stats = &sdev->stats;
sdev              456 drivers/net/ethernet/alacritech/slicoss.c 	if (sdev->model == SLIC_MODEL_OASIS) {
sdev              547 drivers/net/ethernet/alacritech/slicoss.c static void slic_handle_receive(struct slic_device *sdev, unsigned int todo,
sdev              550 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_rx_queue *rxq = &sdev->rxq;
sdev              551 drivers/net/ethernet/alacritech/slicoss.c 	struct net_device *dev = sdev->netdev;
sdev              569 drivers/net/ethernet/alacritech/slicoss.c 		dma_sync_single_for_cpu(&sdev->pdev->dev,
sdev              576 drivers/net/ethernet/alacritech/slicoss.c 			dma_sync_single_for_device(&sdev->pdev->dev,
sdev              587 drivers/net/ethernet/alacritech/slicoss.c 		dma_unmap_single(&sdev->pdev->dev,
sdev              596 drivers/net/ethernet/alacritech/slicoss.c 			slic_handle_frame_error(sdev, skb);
sdev              602 drivers/net/ethernet/alacritech/slicoss.c 				SLIC_INC_STATS_COUNTER(&sdev->stats, rx_mcasts);
sdev              609 drivers/net/ethernet/alacritech/slicoss.c 			napi_gro_receive(&sdev->napi, skb);
sdev              618 drivers/net/ethernet/alacritech/slicoss.c 	u64_stats_update_begin(&sdev->stats.syncp);
sdev              619 drivers/net/ethernet/alacritech/slicoss.c 	sdev->stats.rx_bytes += bytes;
sdev              620 drivers/net/ethernet/alacritech/slicoss.c 	sdev->stats.rx_packets += frames;
sdev              621 drivers/net/ethernet/alacritech/slicoss.c 	u64_stats_update_end(&sdev->stats.syncp);
sdev              623 drivers/net/ethernet/alacritech/slicoss.c 	slic_refill_rx_queue(sdev, GFP_ATOMIC);
sdev              626 drivers/net/ethernet/alacritech/slicoss.c static void slic_handle_link_irq(struct slic_device *sdev)
sdev              628 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_shmem *sm = &sdev->shmem;
sdev              650 drivers/net/ethernet/alacritech/slicoss.c 	slic_configure_link(sdev, speed, duplex);
sdev              653 drivers/net/ethernet/alacritech/slicoss.c static void slic_handle_upr_irq(struct slic_device *sdev, u32 irqs)
sdev              658 drivers/net/ethernet/alacritech/slicoss.c 	upr = slic_dequeue_upr(sdev);
sdev              660 drivers/net/ethernet/alacritech/slicoss.c 		netdev_warn(sdev->netdev, "no upr found on list\n");
sdev              667 drivers/net/ethernet/alacritech/slicoss.c 			slic_queue_upr(sdev, upr);
sdev              670 drivers/net/ethernet/alacritech/slicoss.c 		slic_handle_link_irq(sdev);
sdev              675 drivers/net/ethernet/alacritech/slicoss.c static int slic_handle_link_change(struct slic_device *sdev)
sdev              677 drivers/net/ethernet/alacritech/slicoss.c 	return slic_new_upr(sdev, SLIC_UPR_LSTAT, sdev->shmem.link_paddr);
sdev              680 drivers/net/ethernet/alacritech/slicoss.c static void slic_handle_err_irq(struct slic_device *sdev, u32 isr)
sdev              682 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_stats *stats = &sdev->stats;
sdev              692 drivers/net/ethernet/alacritech/slicoss.c static void slic_handle_irq(struct slic_device *sdev, u32 isr,
sdev              696 drivers/net/ethernet/alacritech/slicoss.c 		slic_handle_err_irq(sdev, isr);
sdev              699 drivers/net/ethernet/alacritech/slicoss.c 		slic_handle_link_change(sdev);
sdev              702 drivers/net/ethernet/alacritech/slicoss.c 		slic_handle_upr_irq(sdev, isr);
sdev              705 drivers/net/ethernet/alacritech/slicoss.c 		slic_handle_receive(sdev, todo, done);
sdev              708 drivers/net/ethernet/alacritech/slicoss.c 		slic_xmit_complete(sdev);
sdev              713 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_device *sdev = container_of(napi, struct slic_device, napi);
sdev              714 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_shmem *sm = &sdev->shmem;
sdev              719 drivers/net/ethernet/alacritech/slicoss.c 	slic_handle_irq(sdev, isr, todo, &done);
sdev              727 drivers/net/ethernet/alacritech/slicoss.c 		slic_write(sdev, SLIC_REG_ISR, 0);
sdev              728 drivers/net/ethernet/alacritech/slicoss.c 		slic_flush_write(sdev);
sdev              736 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_device *sdev = dev_id;
sdev              737 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_shmem *sm = &sdev->shmem;
sdev              740 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_ICR, SLIC_ICR_INT_MASK);
sdev              741 drivers/net/ethernet/alacritech/slicoss.c 	slic_flush_write(sdev);
sdev              748 drivers/net/ethernet/alacritech/slicoss.c 		slic_write(sdev, SLIC_REG_ISR, 0);
sdev              749 drivers/net/ethernet/alacritech/slicoss.c 		slic_flush_write(sdev);
sdev              753 drivers/net/ethernet/alacritech/slicoss.c 	napi_schedule_irqoff(&sdev->napi);
sdev              758 drivers/net/ethernet/alacritech/slicoss.c static void slic_card_reset(struct slic_device *sdev)
sdev              762 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_RESET, SLIC_RESET_MAGIC);
sdev              764 drivers/net/ethernet/alacritech/slicoss.c 	pci_read_config_word(sdev->pdev, PCI_COMMAND, &cmd);
sdev              768 drivers/net/ethernet/alacritech/slicoss.c static int slic_init_stat_queue(struct slic_device *sdev)
sdev              771 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_stat_queue *stq = &sdev->stq;
sdev              787 drivers/net/ethernet/alacritech/slicoss.c 		descs = dma_alloc_coherent(&sdev->pdev->dev, size, &paddr,
sdev              790 drivers/net/ethernet/alacritech/slicoss.c 			netdev_err(sdev->netdev,
sdev              804 drivers/net/ethernet/alacritech/slicoss.c 		slic_write(sdev, SLIC_REG_RBAR, lower_32_bits(paddr) |
sdev              817 drivers/net/ethernet/alacritech/slicoss.c 		dma_free_coherent(&sdev->pdev->dev, stq->mem_size,
sdev              825 drivers/net/ethernet/alacritech/slicoss.c static void slic_free_stat_queue(struct slic_device *sdev)
sdev              827 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_stat_queue *stq = &sdev->stq;
sdev              831 drivers/net/ethernet/alacritech/slicoss.c 		dma_free_coherent(&sdev->pdev->dev, stq->mem_size,
sdev              837 drivers/net/ethernet/alacritech/slicoss.c static int slic_init_tx_queue(struct slic_device *sdev)
sdev              839 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_tx_queue *txq = &sdev->txq;
sdev              853 drivers/net/ethernet/alacritech/slicoss.c 	txq->dma_pool = dma_pool_create("slic_pool", &sdev->pdev->dev,
sdev              858 drivers/net/ethernet/alacritech/slicoss.c 		netdev_err(sdev->netdev, "failed to create dma pool\n");
sdev              867 drivers/net/ethernet/alacritech/slicoss.c 			netdev_err(sdev->netdev,
sdev              895 drivers/net/ethernet/alacritech/slicoss.c static void slic_free_tx_queue(struct slic_device *sdev)
sdev              897 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_tx_queue *txq = &sdev->txq;
sdev              907 drivers/net/ethernet/alacritech/slicoss.c 		dma_unmap_single(&sdev->pdev->dev,
sdev              917 drivers/net/ethernet/alacritech/slicoss.c static int slic_init_rx_queue(struct slic_device *sdev)
sdev              919 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_rx_queue *rxq = &sdev->rxq;
sdev              931 drivers/net/ethernet/alacritech/slicoss.c 	slic_refill_rx_queue(sdev, GFP_KERNEL);
sdev              936 drivers/net/ethernet/alacritech/slicoss.c static void slic_free_rx_queue(struct slic_device *sdev)
sdev              938 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_rx_queue *rxq = &sdev->rxq;
sdev              949 drivers/net/ethernet/alacritech/slicoss.c 		dma_unmap_single(&sdev->pdev->dev,
sdev              958 drivers/net/ethernet/alacritech/slicoss.c static void slic_set_link_autoneg(struct slic_device *sdev)
sdev              960 drivers/net/ethernet/alacritech/slicoss.c 	unsigned int subid = sdev->pdev->subsystem_device;
sdev              963 drivers/net/ethernet/alacritech/slicoss.c 	if (sdev->is_fiber) {
sdev              971 drivers/net/ethernet/alacritech/slicoss.c 		slic_write(sdev, SLIC_REG_WPHY, val);
sdev              975 drivers/net/ethernet/alacritech/slicoss.c 		slic_write(sdev, SLIC_REG_WPHY, val);
sdev              987 drivers/net/ethernet/alacritech/slicoss.c 		slic_write(sdev, SLIC_REG_WPHY, val);
sdev              991 drivers/net/ethernet/alacritech/slicoss.c 		slic_write(sdev, SLIC_REG_WPHY, val);
sdev              996 drivers/net/ethernet/alacritech/slicoss.c 			slic_write(sdev, SLIC_REG_WPHY, val);
sdev             1001 drivers/net/ethernet/alacritech/slicoss.c 			slic_write(sdev, SLIC_REG_WPHY, val);
sdev             1005 drivers/net/ethernet/alacritech/slicoss.c 			slic_write(sdev, SLIC_REG_WPHY, val);
sdev             1010 drivers/net/ethernet/alacritech/slicoss.c static void slic_set_mac_address(struct slic_device *sdev)
sdev             1012 drivers/net/ethernet/alacritech/slicoss.c 	u8 *addr = sdev->netdev->dev_addr;
sdev             1017 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_WRADDRAL, val);
sdev             1018 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_WRADDRBL, val);
sdev             1022 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_WRADDRAH, val);
sdev             1023 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_WRADDRBH, val);
sdev             1024 drivers/net/ethernet/alacritech/slicoss.c 	slic_flush_write(sdev);
sdev             1042 drivers/net/ethernet/alacritech/slicoss.c static int slic_load_rcvseq_firmware(struct slic_device *sdev)
sdev             1052 drivers/net/ethernet/alacritech/slicoss.c 	file = (sdev->model == SLIC_MODEL_OASIS) ?  SLIC_RCV_FIRMWARE_OASIS :
sdev             1054 drivers/net/ethernet/alacritech/slicoss.c 	err = request_firmware(&fw, file, &sdev->pdev->dev);
sdev             1056 drivers/net/ethernet/alacritech/slicoss.c 		dev_err(&sdev->pdev->dev,
sdev             1064 drivers/net/ethernet/alacritech/slicoss.c 		dev_err(&sdev->pdev->dev,
sdev             1075 drivers/net/ethernet/alacritech/slicoss.c 		dev_err(&sdev->pdev->dev,
sdev             1082 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_RCV_WCS, SLIC_RCVWCS_BEGIN);
sdev             1086 drivers/net/ethernet/alacritech/slicoss.c 		slic_write(sdev, SLIC_REG_RCV_WCS, addr);
sdev             1090 drivers/net/ethernet/alacritech/slicoss.c 		slic_write(sdev, SLIC_REG_RCV_WCS, instr);
sdev             1096 drivers/net/ethernet/alacritech/slicoss.c 		slic_write(sdev, SLIC_REG_RCV_WCS, instr);
sdev             1099 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_RCV_WCS, SLIC_RCVWCS_FINISH);
sdev             1100 drivers/net/ethernet/alacritech/slicoss.c 	slic_flush_write(sdev);
sdev             1110 drivers/net/ethernet/alacritech/slicoss.c static int slic_load_firmware(struct slic_device *sdev)
sdev             1127 drivers/net/ethernet/alacritech/slicoss.c 	file = (sdev->model == SLIC_MODEL_OASIS) ?  SLIC_FIRMWARE_OASIS :
sdev             1129 drivers/net/ethernet/alacritech/slicoss.c 	err = request_firmware(&fw, file, &sdev->pdev->dev);
sdev             1131 drivers/net/ethernet/alacritech/slicoss.c 		dev_err(&sdev->pdev->dev, "failed to load firmware %s\n", file);
sdev             1138 drivers/net/ethernet/alacritech/slicoss.c 		dev_err(&sdev->pdev->dev,
sdev             1147 drivers/net/ethernet/alacritech/slicoss.c 		dev_err(&sdev->pdev->dev,
sdev             1161 drivers/net/ethernet/alacritech/slicoss.c 		dev_err(&sdev->pdev->dev,
sdev             1181 drivers/net/ethernet/alacritech/slicoss.c 			slic_write(sdev, SLIC_REG_WCS, base + addr);
sdev             1183 drivers/net/ethernet/alacritech/slicoss.c 			slic_write(sdev, SLIC_REG_WCS, instr);
sdev             1186 drivers/net/ethernet/alacritech/slicoss.c 			slic_write(sdev, SLIC_REG_WCS, instr);
sdev             1203 drivers/net/ethernet/alacritech/slicoss.c 			slic_write(sdev, SLIC_REG_WCS,
sdev             1206 drivers/net/ethernet/alacritech/slicoss.c 			slic_write(sdev, SLIC_REG_WCS, instr);
sdev             1209 drivers/net/ethernet/alacritech/slicoss.c 			slic_write(sdev, SLIC_REG_WCS, instr);
sdev             1213 drivers/net/ethernet/alacritech/slicoss.c 	slic_flush_write(sdev);
sdev             1216 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_WCS, SLIC_WCS_START);
sdev             1217 drivers/net/ethernet/alacritech/slicoss.c 	slic_flush_write(sdev);
sdev             1226 drivers/net/ethernet/alacritech/slicoss.c static int slic_init_shmem(struct slic_device *sdev)
sdev             1228 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_shmem *sm = &sdev->shmem;
sdev             1232 drivers/net/ethernet/alacritech/slicoss.c 	sm_data = dma_alloc_coherent(&sdev->pdev->dev, sizeof(*sm_data),
sdev             1235 drivers/net/ethernet/alacritech/slicoss.c 		dev_err(&sdev->pdev->dev, "failed to allocate shared memory\n");
sdev             1246 drivers/net/ethernet/alacritech/slicoss.c static void slic_free_shmem(struct slic_device *sdev)
sdev             1248 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_shmem *sm = &sdev->shmem;
sdev             1251 drivers/net/ethernet/alacritech/slicoss.c 	dma_free_coherent(&sdev->pdev->dev, sizeof(*sm_data), sm_data,
sdev             1255 drivers/net/ethernet/alacritech/slicoss.c static int slic_init_iface(struct slic_device *sdev)
sdev             1257 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_shmem *sm = &sdev->shmem;
sdev             1260 drivers/net/ethernet/alacritech/slicoss.c 	sdev->upr_list.pending = false;
sdev             1262 drivers/net/ethernet/alacritech/slicoss.c 	err = slic_init_shmem(sdev);
sdev             1264 drivers/net/ethernet/alacritech/slicoss.c 		netdev_err(sdev->netdev, "failed to init shared memory\n");
sdev             1268 drivers/net/ethernet/alacritech/slicoss.c 	err = slic_load_firmware(sdev);
sdev             1270 drivers/net/ethernet/alacritech/slicoss.c 		netdev_err(sdev->netdev, "failed to load firmware\n");
sdev             1274 drivers/net/ethernet/alacritech/slicoss.c 	err = slic_load_rcvseq_firmware(sdev);
sdev             1276 drivers/net/ethernet/alacritech/slicoss.c 		netdev_err(sdev->netdev,
sdev             1281 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_ICR, SLIC_ICR_INT_OFF);
sdev             1282 drivers/net/ethernet/alacritech/slicoss.c 	slic_flush_write(sdev);
sdev             1285 drivers/net/ethernet/alacritech/slicoss.c 	err = slic_init_rx_queue(sdev);
sdev             1287 drivers/net/ethernet/alacritech/slicoss.c 		netdev_err(sdev->netdev, "failed to init rx queue: %u\n", err);
sdev             1291 drivers/net/ethernet/alacritech/slicoss.c 	err = slic_init_tx_queue(sdev);
sdev             1293 drivers/net/ethernet/alacritech/slicoss.c 		netdev_err(sdev->netdev, "failed to init tx queue: %u\n", err);
sdev             1297 drivers/net/ethernet/alacritech/slicoss.c 	err = slic_init_stat_queue(sdev);
sdev             1299 drivers/net/ethernet/alacritech/slicoss.c 		netdev_err(sdev->netdev, "failed to init status queue: %u\n",
sdev             1304 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_ISP, lower_32_bits(sm->isr_paddr));
sdev             1305 drivers/net/ethernet/alacritech/slicoss.c 	napi_enable(&sdev->napi);
sdev             1307 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_INTAGG, 0);
sdev             1308 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_ISR, 0);
sdev             1309 drivers/net/ethernet/alacritech/slicoss.c 	slic_flush_write(sdev);
sdev             1311 drivers/net/ethernet/alacritech/slicoss.c 	slic_set_mac_address(sdev);
sdev             1313 drivers/net/ethernet/alacritech/slicoss.c 	spin_lock_bh(&sdev->link_lock);
sdev             1314 drivers/net/ethernet/alacritech/slicoss.c 	sdev->duplex = DUPLEX_UNKNOWN;
sdev             1315 drivers/net/ethernet/alacritech/slicoss.c 	sdev->speed = SPEED_UNKNOWN;
sdev             1316 drivers/net/ethernet/alacritech/slicoss.c 	spin_unlock_bh(&sdev->link_lock);
sdev             1318 drivers/net/ethernet/alacritech/slicoss.c 	slic_set_link_autoneg(sdev);
sdev             1320 drivers/net/ethernet/alacritech/slicoss.c 	err = request_irq(sdev->pdev->irq, slic_irq, IRQF_SHARED, DRV_NAME,
sdev             1321 drivers/net/ethernet/alacritech/slicoss.c 			  sdev);
sdev             1323 drivers/net/ethernet/alacritech/slicoss.c 		netdev_err(sdev->netdev, "failed to request irq: %u\n", err);
sdev             1327 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_ICR, SLIC_ICR_INT_ON);
sdev             1328 drivers/net/ethernet/alacritech/slicoss.c 	slic_flush_write(sdev);
sdev             1330 drivers/net/ethernet/alacritech/slicoss.c 	err = slic_handle_link_change(sdev);
sdev             1332 drivers/net/ethernet/alacritech/slicoss.c 		netdev_warn(sdev->netdev,
sdev             1337 drivers/net/ethernet/alacritech/slicoss.c 	napi_disable(&sdev->napi);
sdev             1338 drivers/net/ethernet/alacritech/slicoss.c 	slic_free_stat_queue(sdev);
sdev             1340 drivers/net/ethernet/alacritech/slicoss.c 	slic_free_tx_queue(sdev);
sdev             1342 drivers/net/ethernet/alacritech/slicoss.c 	slic_free_rx_queue(sdev);
sdev             1344 drivers/net/ethernet/alacritech/slicoss.c 	slic_free_shmem(sdev);
sdev             1345 drivers/net/ethernet/alacritech/slicoss.c 	slic_card_reset(sdev);
sdev             1352 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_device *sdev = netdev_priv(dev);
sdev             1357 drivers/net/ethernet/alacritech/slicoss.c 	err = slic_init_iface(sdev);
sdev             1370 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_device *sdev = netdev_priv(dev);
sdev             1376 drivers/net/ethernet/alacritech/slicoss.c 	napi_disable(&sdev->napi);
sdev             1377 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_ICR, SLIC_ICR_INT_OFF);
sdev             1378 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_ISR, 0);
sdev             1379 drivers/net/ethernet/alacritech/slicoss.c 	slic_flush_write(sdev);
sdev             1381 drivers/net/ethernet/alacritech/slicoss.c 	free_irq(sdev->pdev->irq, sdev);
sdev             1384 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_WXCFG, val);
sdev             1388 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_WRCFG, val);
sdev             1391 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_WPHY, val);
sdev             1392 drivers/net/ethernet/alacritech/slicoss.c 	slic_flush_write(sdev);
sdev             1394 drivers/net/ethernet/alacritech/slicoss.c 	slic_clear_upr_list(&sdev->upr_list);
sdev             1395 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_QUIESCE, 0);
sdev             1397 drivers/net/ethernet/alacritech/slicoss.c 	slic_free_stat_queue(sdev);
sdev             1398 drivers/net/ethernet/alacritech/slicoss.c 	slic_free_tx_queue(sdev);
sdev             1399 drivers/net/ethernet/alacritech/slicoss.c 	slic_free_rx_queue(sdev);
sdev             1400 drivers/net/ethernet/alacritech/slicoss.c 	slic_free_shmem(sdev);
sdev             1402 drivers/net/ethernet/alacritech/slicoss.c 	slic_card_reset(sdev);
sdev             1410 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_device *sdev = netdev_priv(dev);
sdev             1411 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_tx_queue *txq = &sdev->txq;
sdev             1425 drivers/net/ethernet/alacritech/slicoss.c 	paddr = dma_map_single(&sdev->pdev->dev, skb->data, maplen,
sdev             1427 drivers/net/ethernet/alacritech/slicoss.c 	if (dma_mapping_error(&sdev->pdev->dev, paddr)) {
sdev             1449 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_CBAR, cbar_val);
sdev             1464 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_device *sdev = netdev_priv(dev);
sdev             1465 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_stats *stats = &sdev->stats;
sdev             1494 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_device *sdev = netdev_priv(dev);
sdev             1495 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_stats *stats = &sdev->stats;
sdev             1533 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_device *sdev = netdev_priv(dev);
sdev             1537 drivers/net/ethernet/alacritech/slicoss.c 	strlcpy(info->bus_info, pci_name(sdev->pdev), sizeof(info->bus_info));
sdev             1597 drivers/net/ethernet/alacritech/slicoss.c static int slic_read_eeprom(struct slic_device *sdev)
sdev             1599 drivers/net/ethernet/alacritech/slicoss.c 	unsigned int devfn = PCI_FUNC(sdev->pdev->devfn);
sdev             1600 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_shmem *sm = &sdev->shmem;
sdev             1611 drivers/net/ethernet/alacritech/slicoss.c 	eeprom = dma_alloc_coherent(&sdev->pdev->dev, SLIC_EEPROM_SIZE,
sdev             1616 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_ICR, SLIC_ICR_INT_OFF);
sdev             1618 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_ISP, lower_32_bits(sm->isr_paddr));
sdev             1620 drivers/net/ethernet/alacritech/slicoss.c 	err = slic_new_upr(sdev, SLIC_UPR_CONFIG, paddr);
sdev             1628 drivers/net/ethernet/alacritech/slicoss.c 			dev_err(&sdev->pdev->dev,
sdev             1632 drivers/net/ethernet/alacritech/slicoss.c 		upr = slic_dequeue_upr(sdev);
sdev             1636 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_ISP, 0);
sdev             1637 drivers/net/ethernet/alacritech/slicoss.c 	slic_write(sdev, SLIC_REG_ISR, 0);
sdev             1638 drivers/net/ethernet/alacritech/slicoss.c 	slic_flush_write(sdev);
sdev             1643 drivers/net/ethernet/alacritech/slicoss.c 	if (sdev->model == SLIC_MODEL_OASIS) {
sdev             1660 drivers/net/ethernet/alacritech/slicoss.c 		dev_err(&sdev->pdev->dev, "invalid checksum in eeprom\n");
sdev             1665 drivers/net/ethernet/alacritech/slicoss.c 	ether_addr_copy(sdev->netdev->dev_addr, mac[devfn]);
sdev             1667 drivers/net/ethernet/alacritech/slicoss.c 	dma_free_coherent(&sdev->pdev->dev, SLIC_EEPROM_SIZE, eeprom, paddr);
sdev             1672 drivers/net/ethernet/alacritech/slicoss.c static int slic_init(struct slic_device *sdev)
sdev             1676 drivers/net/ethernet/alacritech/slicoss.c 	spin_lock_init(&sdev->upper_lock);
sdev             1677 drivers/net/ethernet/alacritech/slicoss.c 	spin_lock_init(&sdev->link_lock);
sdev             1678 drivers/net/ethernet/alacritech/slicoss.c 	INIT_LIST_HEAD(&sdev->upr_list.list);
sdev             1679 drivers/net/ethernet/alacritech/slicoss.c 	spin_lock_init(&sdev->upr_list.lock);
sdev             1680 drivers/net/ethernet/alacritech/slicoss.c 	u64_stats_init(&sdev->stats.syncp);
sdev             1682 drivers/net/ethernet/alacritech/slicoss.c 	slic_card_reset(sdev);
sdev             1684 drivers/net/ethernet/alacritech/slicoss.c 	err = slic_load_firmware(sdev);
sdev             1686 drivers/net/ethernet/alacritech/slicoss.c 		dev_err(&sdev->pdev->dev, "failed to load firmware\n");
sdev             1691 drivers/net/ethernet/alacritech/slicoss.c 	err = slic_init_shmem(sdev);
sdev             1693 drivers/net/ethernet/alacritech/slicoss.c 		dev_err(&sdev->pdev->dev, "failed to init shared memory\n");
sdev             1697 drivers/net/ethernet/alacritech/slicoss.c 	err = slic_read_eeprom(sdev);
sdev             1699 drivers/net/ethernet/alacritech/slicoss.c 		dev_err(&sdev->pdev->dev, "failed to read eeprom\n");
sdev             1703 drivers/net/ethernet/alacritech/slicoss.c 	slic_card_reset(sdev);
sdev             1704 drivers/net/ethernet/alacritech/slicoss.c 	slic_free_shmem(sdev);
sdev             1708 drivers/net/ethernet/alacritech/slicoss.c 	slic_free_shmem(sdev);
sdev             1743 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_device *sdev;
sdev             1772 drivers/net/ethernet/alacritech/slicoss.c 	dev = alloc_etherdev(sizeof(*sdev));
sdev             1788 drivers/net/ethernet/alacritech/slicoss.c 	sdev = netdev_priv(dev);
sdev             1789 drivers/net/ethernet/alacritech/slicoss.c 	sdev->model = (pdev->device == PCI_DEVICE_ID_ALACRITECH_OASIS) ?
sdev             1791 drivers/net/ethernet/alacritech/slicoss.c 	sdev->is_fiber = slic_is_fiber(pdev->subsystem_device);
sdev             1792 drivers/net/ethernet/alacritech/slicoss.c 	sdev->pdev = pdev;
sdev             1793 drivers/net/ethernet/alacritech/slicoss.c 	sdev->netdev = dev;
sdev             1794 drivers/net/ethernet/alacritech/slicoss.c 	sdev->regs = ioremap_nocache(pci_resource_start(pdev, 0),
sdev             1796 drivers/net/ethernet/alacritech/slicoss.c 	if (!sdev->regs) {
sdev             1802 drivers/net/ethernet/alacritech/slicoss.c 	err = slic_init(sdev);
sdev             1808 drivers/net/ethernet/alacritech/slicoss.c 	netif_napi_add(dev, &sdev->napi, slic_poll, SLIC_NAPI_WEIGHT);
sdev             1820 drivers/net/ethernet/alacritech/slicoss.c 	iounmap(sdev->regs);
sdev             1834 drivers/net/ethernet/alacritech/slicoss.c 	struct slic_device *sdev = netdev_priv(dev);
sdev             1837 drivers/net/ethernet/alacritech/slicoss.c 	iounmap(sdev->regs);
sdev              148 drivers/net/ethernet/broadcom/b44.c static inline void b44_sync_dma_desc_for_device(struct ssb_device *sdev,
sdev              153 drivers/net/ethernet/broadcom/b44.c 	dma_sync_single_for_device(sdev->dma_dev, dma_base + offset,
sdev              157 drivers/net/ethernet/broadcom/b44.c static inline void b44_sync_dma_desc_for_cpu(struct ssb_device *sdev,
sdev              162 drivers/net/ethernet/broadcom/b44.c 	dma_sync_single_for_cpu(sdev->dma_dev, dma_base + offset,
sdev              168 drivers/net/ethernet/broadcom/b44.c 	return ssb_read32(bp->sdev, reg);
sdev              174 drivers/net/ethernet/broadcom/b44.c 	ssb_write32(bp->sdev, reg, val);
sdev              632 drivers/net/ethernet/broadcom/b44.c 		dma_unmap_single(bp->sdev->dma_dev,
sdev              677 drivers/net/ethernet/broadcom/b44.c 	mapping = dma_map_single(bp->sdev->dma_dev, skb->data,
sdev              683 drivers/net/ethernet/broadcom/b44.c 	if (dma_mapping_error(bp->sdev->dma_dev, mapping) ||
sdev              686 drivers/net/ethernet/broadcom/b44.c 		if (!dma_mapping_error(bp->sdev->dma_dev, mapping))
sdev              687 drivers/net/ethernet/broadcom/b44.c 			dma_unmap_single(bp->sdev->dma_dev, mapping,
sdev              693 drivers/net/ethernet/broadcom/b44.c 		mapping = dma_map_single(bp->sdev->dma_dev, skb->data,
sdev              696 drivers/net/ethernet/broadcom/b44.c 		if (dma_mapping_error(bp->sdev->dma_dev, mapping) ||
sdev              698 drivers/net/ethernet/broadcom/b44.c 			if (!dma_mapping_error(bp->sdev->dma_dev, mapping))
sdev              699 drivers/net/ethernet/broadcom/b44.c 				dma_unmap_single(bp->sdev->dma_dev, mapping, RX_PKT_BUF_SZ,DMA_FROM_DEVICE);
sdev              726 drivers/net/ethernet/broadcom/b44.c 		b44_sync_dma_desc_for_device(bp->sdev, bp->rx_ring_dma,
sdev              754 drivers/net/ethernet/broadcom/b44.c 		b44_sync_dma_desc_for_cpu(bp->sdev, bp->rx_ring_dma,
sdev              770 drivers/net/ethernet/broadcom/b44.c 		b44_sync_dma_desc_for_device(bp->sdev, bp->rx_ring_dma,
sdev              774 drivers/net/ethernet/broadcom/b44.c 	dma_sync_single_for_device(bp->sdev->dma_dev, dest_map->mapping,
sdev              796 drivers/net/ethernet/broadcom/b44.c 		dma_sync_single_for_cpu(bp->sdev->dma_dev, map,
sdev              830 drivers/net/ethernet/broadcom/b44.c 			dma_unmap_single(bp->sdev->dma_dev, map,
sdev              882 drivers/net/ethernet/broadcom/b44.c 		ssb_device_enable(bp->sdev, 0); /* resets ISTAT_RFO */
sdev              991 drivers/net/ethernet/broadcom/b44.c 	mapping = dma_map_single(bp->sdev->dma_dev, skb->data, len, DMA_TO_DEVICE);
sdev              992 drivers/net/ethernet/broadcom/b44.c 	if (dma_mapping_error(bp->sdev->dma_dev, mapping) || mapping + len > DMA_BIT_MASK(30)) {
sdev              996 drivers/net/ethernet/broadcom/b44.c 		if (!dma_mapping_error(bp->sdev->dma_dev, mapping))
sdev              997 drivers/net/ethernet/broadcom/b44.c 			dma_unmap_single(bp->sdev->dma_dev, mapping, len,
sdev             1004 drivers/net/ethernet/broadcom/b44.c 		mapping = dma_map_single(bp->sdev->dma_dev, bounce_skb->data,
sdev             1006 drivers/net/ethernet/broadcom/b44.c 		if (dma_mapping_error(bp->sdev->dma_dev, mapping) || mapping + len > DMA_BIT_MASK(30)) {
sdev             1007 drivers/net/ethernet/broadcom/b44.c 			if (!dma_mapping_error(bp->sdev->dma_dev, mapping))
sdev             1008 drivers/net/ethernet/broadcom/b44.c 				dma_unmap_single(bp->sdev->dma_dev, mapping,
sdev             1032 drivers/net/ethernet/broadcom/b44.c 		b44_sync_dma_desc_for_device(bp->sdev, bp->tx_ring_dma,
sdev             1104 drivers/net/ethernet/broadcom/b44.c 		dma_unmap_single(bp->sdev->dma_dev, rp->mapping, RX_PKT_BUF_SZ,
sdev             1116 drivers/net/ethernet/broadcom/b44.c 		dma_unmap_single(bp->sdev->dma_dev, rp->mapping, rp->skb->len,
sdev             1139 drivers/net/ethernet/broadcom/b44.c 		dma_sync_single_for_device(bp->sdev->dma_dev, bp->rx_ring_dma,
sdev             1143 drivers/net/ethernet/broadcom/b44.c 		dma_sync_single_for_device(bp->sdev->dma_dev, bp->tx_ring_dma,
sdev             1164 drivers/net/ethernet/broadcom/b44.c 			dma_unmap_single(bp->sdev->dma_dev, bp->rx_ring_dma,
sdev             1168 drivers/net/ethernet/broadcom/b44.c 			dma_free_coherent(bp->sdev->dma_dev, DMA_TABLE_BYTES,
sdev             1175 drivers/net/ethernet/broadcom/b44.c 			dma_unmap_single(bp->sdev->dma_dev, bp->tx_ring_dma,
sdev             1179 drivers/net/ethernet/broadcom/b44.c 			dma_free_coherent(bp->sdev->dma_dev, DMA_TABLE_BYTES,
sdev             1205 drivers/net/ethernet/broadcom/b44.c 	bp->rx_ring = dma_alloc_coherent(bp->sdev->dma_dev, size,
sdev             1218 drivers/net/ethernet/broadcom/b44.c 		rx_ring_dma = dma_map_single(bp->sdev->dma_dev, rx_ring,
sdev             1222 drivers/net/ethernet/broadcom/b44.c 		if (dma_mapping_error(bp->sdev->dma_dev, rx_ring_dma) ||
sdev             1233 drivers/net/ethernet/broadcom/b44.c 	bp->tx_ring = dma_alloc_coherent(bp->sdev->dma_dev, size,
sdev             1246 drivers/net/ethernet/broadcom/b44.c 		tx_ring_dma = dma_map_single(bp->sdev->dma_dev, tx_ring,
sdev             1250 drivers/net/ethernet/broadcom/b44.c 		if (dma_mapping_error(bp->sdev->dma_dev, tx_ring_dma) ||
sdev             1283 drivers/net/ethernet/broadcom/b44.c 	struct ssb_device *sdev = bp->sdev;
sdev             1286 drivers/net/ethernet/broadcom/b44.c 	was_enabled = ssb_device_is_enabled(bp->sdev);
sdev             1288 drivers/net/ethernet/broadcom/b44.c 	ssb_device_enable(bp->sdev, 0);
sdev             1289 drivers/net/ethernet/broadcom/b44.c 	ssb_pcicore_dev_irqvecs_enable(&sdev->bus->pcicore, sdev);
sdev             1314 drivers/net/ethernet/broadcom/b44.c 	switch (sdev->bus->bustype) {
sdev             1317 drivers/net/ethernet/broadcom/b44.c 		     (DIV_ROUND_CLOSEST(ssb_clockspeed(sdev->bus),
sdev             1606 drivers/net/ethernet/broadcom/b44.c 	if (bp->sdev->bus->bustype != SSB_BUSTYPE_SSB) {
sdev             1608 drivers/net/ethernet/broadcom/b44.c 		pci_read_config_word(bp->sdev->bus->host_pci, SSB_PMCSR, &val);
sdev             1609 drivers/net/ethernet/broadcom/b44.c 		pci_write_config_word(bp->sdev->bus->host_pci, SSB_PMCSR, val | SSB_PE);
sdev             1794 drivers/net/ethernet/broadcom/b44.c 	struct ssb_bus *bus = bp->sdev->bus;
sdev             2116 drivers/net/ethernet/broadcom/b44.c 	device_set_wakeup_enable(bp->sdev->dev, wol->wolopts & WAKE_MAGIC);
sdev             2161 drivers/net/ethernet/broadcom/b44.c 	struct ssb_device *sdev = bp->sdev;
sdev             2165 drivers/net/ethernet/broadcom/b44.c 	bp->dma_offset = ssb_dma_translation(sdev);
sdev             2167 drivers/net/ethernet/broadcom/b44.c 	if (sdev->bus->bustype == SSB_BUSTYPE_SSB &&
sdev             2169 drivers/net/ethernet/broadcom/b44.c 		addr = sdev->bus->sprom.et1mac;
sdev             2170 drivers/net/ethernet/broadcom/b44.c 		bp->phy_addr = sdev->bus->sprom.et1phyaddr;
sdev             2172 drivers/net/ethernet/broadcom/b44.c 		addr = sdev->bus->sprom.et0mac;
sdev             2173 drivers/net/ethernet/broadcom/b44.c 		bp->phy_addr = sdev->bus->sprom.et0phyaddr;
sdev             2193 drivers/net/ethernet/broadcom/b44.c 	if (bp->sdev->id.revision >= 7)
sdev             2256 drivers/net/ethernet/broadcom/b44.c 	struct ssb_device *sdev = bp->sdev;
sdev             2259 drivers/net/ethernet/broadcom/b44.c 	struct ssb_sprom *sprom = &sdev->bus->sprom;
sdev             2264 drivers/net/ethernet/broadcom/b44.c 		dev_err(sdev->dev, "mdiobus_alloc() failed\n");
sdev             2273 drivers/net/ethernet/broadcom/b44.c 	mii_bus->parent = sdev->dev;
sdev             2281 drivers/net/ethernet/broadcom/b44.c 		dev_err(sdev->dev, "failed to register MII bus\n");
sdev             2288 drivers/net/ethernet/broadcom/b44.c 		dev_info(sdev->dev,
sdev             2303 drivers/net/ethernet/broadcom/b44.c 		dev_err(sdev->dev, "could not attach PHY at %i\n",
sdev             2344 drivers/net/ethernet/broadcom/b44.c static int b44_init_one(struct ssb_device *sdev,
sdev             2361 drivers/net/ethernet/broadcom/b44.c 	SET_NETDEV_DEV(dev, sdev->dev);
sdev             2367 drivers/net/ethernet/broadcom/b44.c 	bp->sdev = sdev;
sdev             2384 drivers/net/ethernet/broadcom/b44.c 	dev->irq = sdev->irq;
sdev             2387 drivers/net/ethernet/broadcom/b44.c 	err = ssb_bus_powerup(sdev->bus, 0);
sdev             2389 drivers/net/ethernet/broadcom/b44.c 		dev_err(sdev->dev,
sdev             2394 drivers/net/ethernet/broadcom/b44.c 	if (dma_set_mask_and_coherent(sdev->dma_dev, DMA_BIT_MASK(30))) {
sdev             2395 drivers/net/ethernet/broadcom/b44.c 		dev_err(sdev->dev,
sdev             2402 drivers/net/ethernet/broadcom/b44.c 		dev_err(sdev->dev,
sdev             2408 drivers/net/ethernet/broadcom/b44.c 		dev_err(sdev->dev, "No PHY present on this MAC, aborting\n");
sdev             2429 drivers/net/ethernet/broadcom/b44.c 		dev_err(sdev->dev, "Cannot register net device, aborting\n");
sdev             2435 drivers/net/ethernet/broadcom/b44.c 	ssb_set_drvdata(sdev, dev);
sdev             2445 drivers/net/ethernet/broadcom/b44.c 		dev_err(sdev->dev, "phy reset failed\n");
sdev             2452 drivers/net/ethernet/broadcom/b44.c 			dev_err(sdev->dev, "Cannot register PHY, aborting\n");
sdev             2457 drivers/net/ethernet/broadcom/b44.c 	device_set_wakeup_capable(sdev->dev, true);
sdev             2465 drivers/net/ethernet/broadcom/b44.c 	ssb_bus_may_powerdown(sdev->bus);
sdev             2475 drivers/net/ethernet/broadcom/b44.c static void b44_remove_one(struct ssb_device *sdev)
sdev             2477 drivers/net/ethernet/broadcom/b44.c 	struct net_device *dev = ssb_get_drvdata(sdev);
sdev             2483 drivers/net/ethernet/broadcom/b44.c 	ssb_device_disable(sdev, 0);
sdev             2484 drivers/net/ethernet/broadcom/b44.c 	ssb_bus_may_powerdown(sdev->bus);
sdev             2487 drivers/net/ethernet/broadcom/b44.c 	ssb_pcihost_set_power_state(sdev, PCI_D3hot);
sdev             2488 drivers/net/ethernet/broadcom/b44.c 	ssb_set_drvdata(sdev, NULL);
sdev             2491 drivers/net/ethernet/broadcom/b44.c static int b44_suspend(struct ssb_device *sdev, pm_message_t state)
sdev             2493 drivers/net/ethernet/broadcom/b44.c 	struct net_device *dev = ssb_get_drvdata(sdev);
sdev             2516 drivers/net/ethernet/broadcom/b44.c 	ssb_pcihost_set_power_state(sdev, PCI_D3hot);
sdev             2520 drivers/net/ethernet/broadcom/b44.c static int b44_resume(struct ssb_device *sdev)
sdev             2522 drivers/net/ethernet/broadcom/b44.c 	struct net_device *dev = ssb_get_drvdata(sdev);
sdev             2526 drivers/net/ethernet/broadcom/b44.c 	rc = ssb_bus_powerup(sdev->bus, 0);
sdev             2528 drivers/net/ethernet/broadcom/b44.c 		dev_err(sdev->dev,
sdev              399 drivers/net/ethernet/broadcom/b44.h 	struct ssb_device	*sdev;
sdev              982 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 			struct net_device *sdev = l2_accel->macvlan[i];
sdev              984 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 			if (!sdev)
sdev              990 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 						sdev->dev_addr,
sdev             1238 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 				struct net_device *sdev = l2_accel->macvlan[i];
sdev             1240 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 				if (!sdev)
sdev             1246 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 							sdev->dev_addr,
sdev             1265 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 			struct net_device *sdev = l2_accel->macvlan[i];
sdev             1267 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 			if (!sdev)
sdev             1275 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 						sdev->dev_addr,
sdev             1458 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 				    struct net_device *sdev)
sdev             1472 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 	if (!macvlan_supports_dest_filter(sdev))
sdev             1522 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 	l2_accel->macvlan[i] = sdev;
sdev             1543 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 	fm10k_queue_mac_request(interface, glort, sdev->dev_addr,
sdev             1549 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 		fm10k_queue_mac_request(interface, glort, sdev->dev_addr,
sdev             1554 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 	return sdev;
sdev             1563 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 	struct net_device *sdev = priv;
sdev             1572 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 		if (l2_accel->macvlan[i] == sdev)
sdev             1589 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 	fm10k_queue_mac_request(interface, glort, sdev->dev_addr,
sdev             1595 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 		fm10k_queue_mac_request(interface, glort, sdev->dev_addr,
sdev               41 drivers/net/ipvlan/ipvlan_l3s.c 	struct net_device *sdev;
sdev               47 drivers/net/ipvlan/ipvlan_l3s.c 	sdev = addr->master->dev;
sdev               55 drivers/net/ipvlan/ipvlan_l3s.c 					   ip4h->tos, sdev);
sdev               67 drivers/net/ipvlan/ipvlan_l3s.c 			.flowi6_iif   = sdev->ifindex,
sdev               76 drivers/net/ipvlan/ipvlan_l3s.c 		dst = ip6_route_input_lookup(dev_net(sdev), sdev, &fl6,
sdev               17 drivers/net/netdevsim/sdev.c 	struct netdevsim_shared_dev *sdev;
sdev               22 drivers/net/netdevsim/sdev.c 		if (WARN_ON(!joinns->sdev))
sdev               24 drivers/net/netdevsim/sdev.c 		sdev = joinns->sdev;
sdev               25 drivers/net/netdevsim/sdev.c 		sdev->refcnt++;
sdev               26 drivers/net/netdevsim/sdev.c 		return sdev;
sdev               29 drivers/net/netdevsim/sdev.c 	sdev = kzalloc(sizeof(*sdev), GFP_KERNEL);
sdev               30 drivers/net/netdevsim/sdev.c 	if (!sdev)
sdev               32 drivers/net/netdevsim/sdev.c 	sdev->refcnt = 1;
sdev               33 drivers/net/netdevsim/sdev.c 	sdev->switch_id = nsim_sdev_id++;
sdev               35 drivers/net/netdevsim/sdev.c 	sprintf(sdev_ddir_name, "%u", sdev->switch_id);
sdev               36 drivers/net/netdevsim/sdev.c 	sdev->ddir = debugfs_create_dir(sdev_ddir_name, nsim_sdev_ddir);
sdev               37 drivers/net/netdevsim/sdev.c 	if (IS_ERR_OR_NULL(sdev->ddir)) {
sdev               38 drivers/net/netdevsim/sdev.c 		err = PTR_ERR_OR_ZERO(sdev->ddir) ?: -EINVAL;
sdev               42 drivers/net/netdevsim/sdev.c 	return sdev;
sdev               46 drivers/net/netdevsim/sdev.c 	kfree(sdev);
sdev               50 drivers/net/netdevsim/sdev.c void nsim_sdev_put(struct netdevsim_shared_dev *sdev)
sdev               52 drivers/net/netdevsim/sdev.c 	if (--sdev->refcnt)
sdev               54 drivers/net/netdevsim/sdev.c 	debugfs_remove_recursive(sdev->ddir);
sdev               55 drivers/net/netdevsim/sdev.c 	kfree(sdev);
sdev              128 drivers/net/wireless/broadcom/b43/bus.c 	return ssb_bus_may_powerdown(dev->sdev->bus);
sdev              133 drivers/net/wireless/broadcom/b43/bus.c 	return ssb_bus_powerup(dev->sdev->bus, dynamic_pctl);
sdev              137 drivers/net/wireless/broadcom/b43/bus.c 	return ssb_device_is_enabled(dev->sdev);
sdev              142 drivers/net/wireless/broadcom/b43/bus.c 	ssb_device_enable(dev->sdev, core_specific_flags);
sdev              147 drivers/net/wireless/broadcom/b43/bus.c 	ssb_device_disable(dev->sdev, core_specific_flags);
sdev              152 drivers/net/wireless/broadcom/b43/bus.c 	return ssb_read16(dev->sdev, offset);
sdev              156 drivers/net/wireless/broadcom/b43/bus.c 	return ssb_read32(dev->sdev, offset);
sdev              160 drivers/net/wireless/broadcom/b43/bus.c 	ssb_write16(dev->sdev, offset, value);
sdev              164 drivers/net/wireless/broadcom/b43/bus.c 	ssb_write32(dev->sdev, offset, value);
sdev              169 drivers/net/wireless/broadcom/b43/bus.c 	ssb_block_read(dev->sdev, buffer, count, offset, reg_width);
sdev              175 drivers/net/wireless/broadcom/b43/bus.c 	ssb_block_write(dev->sdev, buffer, count, offset, reg_width);
sdev              178 drivers/net/wireless/broadcom/b43/bus.c struct b43_bus_dev *b43_bus_dev_ssb_init(struct ssb_device *sdev)
sdev              187 drivers/net/wireless/broadcom/b43/bus.c 	dev->sdev = sdev;
sdev              202 drivers/net/wireless/broadcom/b43/bus.c 	dev->dev = sdev->dev;
sdev              203 drivers/net/wireless/broadcom/b43/bus.c 	dev->dma_dev = sdev->dma_dev;
sdev              204 drivers/net/wireless/broadcom/b43/bus.c 	dev->irq = sdev->irq;
sdev              206 drivers/net/wireless/broadcom/b43/bus.c 	dev->board_vendor = sdev->bus->boardinfo.vendor;
sdev              207 drivers/net/wireless/broadcom/b43/bus.c 	dev->board_type = sdev->bus->boardinfo.type;
sdev              208 drivers/net/wireless/broadcom/b43/bus.c 	dev->board_rev = sdev->bus->sprom.board_rev;
sdev              210 drivers/net/wireless/broadcom/b43/bus.c 	dev->chip_id = sdev->bus->chip_id;
sdev              211 drivers/net/wireless/broadcom/b43/bus.c 	dev->chip_rev = sdev->bus->chip_rev;
sdev              212 drivers/net/wireless/broadcom/b43/bus.c 	dev->chip_pkg = sdev->bus->chip_package;
sdev              214 drivers/net/wireless/broadcom/b43/bus.c 	dev->bus_sprom = &sdev->bus->sprom;
sdev              216 drivers/net/wireless/broadcom/b43/bus.c 	dev->core_id = sdev->id.coreid;
sdev              217 drivers/net/wireless/broadcom/b43/bus.c 	dev->core_rev = sdev->id.revision;
sdev              232 drivers/net/wireless/broadcom/b43/bus.c 		return ssb_get_drvdata(dev->sdev);
sdev              248 drivers/net/wireless/broadcom/b43/bus.c 		ssb_set_drvdata(dev->sdev, wldev);
sdev               18 drivers/net/wireless/broadcom/b43/bus.h 		struct ssb_device *sdev;
sdev               61 drivers/net/wireless/broadcom/b43/bus.h 		dev->sdev->bus->bustype == SSB_BUSTYPE_PCMCIA);
sdev               75 drivers/net/wireless/broadcom/b43/bus.h 		return (dev->sdev->bus->bustype == SSB_BUSTYPE_PCI);
sdev               84 drivers/net/wireless/broadcom/b43/bus.h 		dev->sdev->bus->bustype == SSB_BUSTYPE_SDIO);
sdev               91 drivers/net/wireless/broadcom/b43/bus.h struct b43_bus_dev *b43_bus_dev_ssb_init(struct ssb_device *sdev);
sdev              815 drivers/net/wireless/broadcom/b43/dma.c 		tmp = ssb_read32(dev->dev->sdev, SSB_TMSHIGH);
sdev             1044 drivers/net/wireless/broadcom/b43/dma.c 	    dev->dev->sdev->bus->bustype == SSB_BUSTYPE_PCI &&
sdev             1045 drivers/net/wireless/broadcom/b43/dma.c 	    !(pci_is_pcie(dev->dev->sdev->bus->host_pci) &&
sdev             1046 drivers/net/wireless/broadcom/b43/dma.c 	      ssb_read32(dev->dev->sdev, SSB_TMSHIGH) & SSB_TMSHIGH_DMA64))
sdev             1073 drivers/net/wireless/broadcom/b43/dma.c 		dma->translation = ssb_dma_translation(dev->dev->sdev);
sdev             1220 drivers/net/wireless/broadcom/b43/main.c 		ssb_cc = &dev->dev->sdev->bus->chipco;
sdev             2852 drivers/net/wireless/broadcom/b43/main.c 	struct ssb_bus *bus = dev->dev->sdev->bus;
sdev             3025 drivers/net/wireless/broadcom/b43/main.c 		tmp = ssb_read32(dev->dev->sdev, SSB_TMSLOW);
sdev             3030 drivers/net/wireless/broadcom/b43/main.c 		ssb_write32(dev->dev->sdev, SSB_TMSLOW, tmp);
sdev             3329 drivers/net/wireless/broadcom/b43/main.c 			    dev->dev->sdev->bus->chipco.fast_pwrup_delay);
sdev             3933 drivers/net/wireless/broadcom/b43/main.c 		tmp = ssb_read32(dev->dev->sdev, SSB_TMSLOW);
sdev             3938 drivers/net/wireless/broadcom/b43/main.c 		ssb_write32(dev->dev->sdev, SSB_TMSLOW, tmp);
sdev             4725 drivers/net/wireless/broadcom/b43/main.c 	bus = dev->dev->sdev->bus;
sdev             4729 drivers/net/wireless/broadcom/b43/main.c 		tmp = ssb_read32(dev->dev->sdev, SSB_IMCFGLO);
sdev             4733 drivers/net/wireless/broadcom/b43/main.c 		ssb_write32(dev->dev->sdev, SSB_IMCFGLO, tmp);
sdev             4837 drivers/net/wireless/broadcom/b43/main.c 		ssb_pcicore_dev_irqvecs_enable(&dev->dev->sdev->bus->pcicore,
sdev             4838 drivers/net/wireless/broadcom/b43/main.c 					       dev->dev->sdev);
sdev             4873 drivers/net/wireless/broadcom/b43/main.c 	    dev->dev->sdev->bus->bustype == SSB_BUSTYPE_PCI &&
sdev             4874 drivers/net/wireless/broadcom/b43/main.c 	    dev->dev->sdev->bus->pcicore.dev->id.revision <= 10)
sdev             5302 drivers/net/wireless/broadcom/b43/main.c 	    dev->dev->sdev->bus->bustype == SSB_BUSTYPE_PCI)
sdev             5303 drivers/net/wireless/broadcom/b43/main.c 		dev_id = dev->dev->sdev->bus->host_pci->device;
sdev             5398 drivers/net/wireless/broadcom/b43/main.c 			tmp = ssb_read32(dev->dev->sdev, SSB_TMSHIGH);
sdev             5549 drivers/net/wireless/broadcom/b43/main.c 	ssb_set_devtypedata(dev->sdev, NULL);
sdev             5694 drivers/net/wireless/broadcom/b43/main.c int b43_ssb_probe(struct ssb_device *sdev, const struct ssb_device_id *id)
sdev             5700 drivers/net/wireless/broadcom/b43/main.c 	dev = b43_bus_dev_ssb_init(sdev);
sdev             5704 drivers/net/wireless/broadcom/b43/main.c 	wl = ssb_get_devtypedata(sdev);
sdev             5711 drivers/net/wireless/broadcom/b43/main.c 	b43_sprom_fixup(sdev->bus);
sdev             5718 drivers/net/wireless/broadcom/b43/main.c 	ssb_set_devtypedata(sdev, wl);
sdev             5719 drivers/net/wireless/broadcom/b43/main.c 	B43_WARN_ON(ssb_get_devtypedata(sdev) != wl);
sdev             5738 drivers/net/wireless/broadcom/b43/main.c static void b43_ssb_remove(struct ssb_device *sdev)
sdev             5740 drivers/net/wireless/broadcom/b43/main.c 	struct b43_wl *wl = ssb_get_devtypedata(sdev);
sdev             5741 drivers/net/wireless/broadcom/b43/main.c 	struct b43_wldev *wldev = ssb_get_drvdata(sdev);
sdev              354 drivers/net/wireless/broadcom/b43/phy_common.c 		tmp = ssb_read32(dev->dev->sdev, SSB_TMSLOW);
sdev              358 drivers/net/wireless/broadcom/b43/phy_common.c 		ssb_write32(dev->dev->sdev, SSB_TMSLOW, tmp);
sdev              361 drivers/net/wireless/broadcom/b43/phy_common.c 		tmp = ssb_read32(dev->dev->sdev, SSB_TMSLOW);
sdev              363 drivers/net/wireless/broadcom/b43/phy_common.c 		ssb_write32(dev->dev->sdev, SSB_TMSLOW, tmp);
sdev              397 drivers/net/wireless/broadcom/b43/phy_common.c 		tmp = ssb_read32(dev->dev->sdev, SSB_TMSLOW);
sdev              401 drivers/net/wireless/broadcom/b43/phy_common.c 		ssb_write32(dev->dev->sdev, SSB_TMSLOW, tmp);
sdev              402 drivers/net/wireless/broadcom/b43/phy_common.c 		ssb_read32(dev->dev->sdev, SSB_TMSLOW); /* flush */
sdev              405 drivers/net/wireless/broadcom/b43/phy_common.c 		tmp = ssb_read32(dev->dev->sdev, SSB_TMSLOW);
sdev              408 drivers/net/wireless/broadcom/b43/phy_common.c 		ssb_write32(dev->dev->sdev, SSB_TMSLOW, tmp);
sdev              409 drivers/net/wireless/broadcom/b43/phy_common.c 		ssb_read32(dev->dev->sdev, SSB_TMSLOW); /* flush */
sdev              584 drivers/net/wireless/broadcom/b43/phy_common.c 		tmp = ssb_read32(dev->dev->sdev, SSB_TMSLOW);
sdev              589 drivers/net/wireless/broadcom/b43/phy_common.c 		ssb_write32(dev->dev->sdev, SSB_TMSLOW, tmp);
sdev              199 drivers/net/wireless/broadcom/b43/phy_lp.c 	struct ssb_bus *bus = dev->dev->sdev->bus;
sdev              504 drivers/net/wireless/broadcom/b43/phy_lp.c 	struct ssb_bus *bus = dev->dev->sdev->bus;
sdev             1274 drivers/net/wireless/broadcom/b43/phy_lp.c 	struct ssb_bus *bus = dev->dev->sdev->bus;
sdev             2390 drivers/net/wireless/broadcom/b43/phy_lp.c 	struct ssb_bus *bus = dev->dev->sdev->bus;
sdev             2480 drivers/net/wireless/broadcom/b43/phy_lp.c 	struct ssb_bus *bus = dev->dev->sdev->bus;
sdev             6003 drivers/net/wireless/broadcom/b43/phy_n.c 			ssb_chipco_gpio_control(&dev->dev->sdev->bus->chipco,
sdev             6049 drivers/net/wireless/broadcom/b43/phy_n.c 			chipco_set32(&dev->dev->sdev->bus->chipco,
sdev             6261 drivers/net/wireless/broadcom/b43/phy_n.c 		ssb_pmu_spuravoid_pllupdate(&dev->dev->sdev->bus->chipco,
sdev             6509 drivers/net/wireless/broadcom/b43/phy_n.c 			    dev->dev->sdev->bus->bustype == SSB_BUSTYPE_PCI) {
sdev             6511 drivers/net/wireless/broadcom/b43/phy_n.c 					dev->dev->sdev->bus->host_pci;
sdev               65 drivers/net/wireless/broadcom/b43/sdio.c 	struct ssb_bus *bus = dev->dev->sdev->bus;
sdev               81 drivers/net/wireless/broadcom/b43/sdio.c 	struct ssb_bus *bus = dev->dev->sdev->bus;
sdev             2562 drivers/net/wireless/broadcom/b43legacy/main.c 	struct ssb_device *sdev = dev->dev;
sdev             2565 drivers/net/wireless/broadcom/b43legacy/main.c 	tmslow = ssb_read32(sdev, SSB_TMSLOW);
sdev             2569 drivers/net/wireless/broadcom/b43legacy/main.c 	ssb_write32(sdev, SSB_TMSLOW, tmslow);
sdev             2572 drivers/net/wireless/broadcom/b43legacy/main.c 	tmslow = ssb_read32(sdev, SSB_TMSLOW);
sdev             2575 drivers/net/wireless/broadcom/b43legacy/main.c 	ssb_write32(sdev, SSB_TMSLOW, tmslow);
sdev             3046 drivers/net/wireless/intersil/hostap/hostap_hw.c 		       struct device *sdev)
sdev             3198 drivers/net/wireless/intersil/hostap/hostap_hw.c 	SET_NETDEV_DEV(dev, sdev);
sdev              899 drivers/net/wireless/rsi/rsi_91x_sdio.c 	struct rsi_91x_sdiodev *sdev = adapter->rsi_dev;
sdev              900 drivers/net/wireless/rsi/rsi_91x_sdio.c 	struct sdio_func *pfunction = sdev->pfunction;
sdev             1020 drivers/net/wireless/rsi/rsi_91x_sdio.c 	struct rsi_91x_sdiodev *sdev;
sdev             1054 drivers/net/wireless/rsi/rsi_91x_sdio.c 	sdev = (struct rsi_91x_sdiodev *)adapter->rsi_dev;
sdev             1055 drivers/net/wireless/rsi/rsi_91x_sdio.c 	rsi_init_event(&sdev->rx_thread.event);
sdev             1056 drivers/net/wireless/rsi/rsi_91x_sdio.c 	status = rsi_create_kthread(adapter->priv, &sdev->rx_thread,
sdev             1062 drivers/net/wireless/rsi/rsi_91x_sdio.c 	skb_queue_head_init(&sdev->rx_q.head);
sdev             1063 drivers/net/wireless/rsi/rsi_91x_sdio.c 	sdev->rx_q.num_rx_pkts = 0;
sdev             1097 drivers/net/wireless/rsi/rsi_91x_sdio.c 	rsi_kill_thread(&sdev->rx_thread);
sdev             1409 drivers/net/wireless/rsi/rsi_91x_sdio.c 	struct rsi_91x_sdiodev *sdev;
sdev             1418 drivers/net/wireless/rsi/rsi_91x_sdio.c 	sdev = (struct rsi_91x_sdiodev *)adapter->rsi_dev;
sdev             1433 drivers/net/wireless/rsi/rsi_91x_sdio.c 	if (sdev->write_fail)
sdev             1468 drivers/net/wireless/rsi/rsi_91x_sdio.c 	struct rsi_91x_sdiodev *sdev =
sdev             1484 drivers/net/wireless/rsi/rsi_91x_sdio.c 	rsi_sdio_disable_interrupts(sdev->pfunction);
sdev             1486 drivers/net/wireless/rsi/rsi_91x_sdio.c 	if (sdev->write_fail)
sdev               66 drivers/net/wireless/rsi/rsi_91x_sdio_ops.c 	struct rsi_91x_sdiodev *sdev = adapter->rsi_dev;
sdev               71 drivers/net/wireless/rsi/rsi_91x_sdio_ops.c 		rsi_wait_event(&sdev->rx_thread.event, EVENT_WAIT_FOREVER);
sdev               72 drivers/net/wireless/rsi/rsi_91x_sdio_ops.c 		rsi_reset_event(&sdev->rx_thread.event);
sdev               75 drivers/net/wireless/rsi/rsi_91x_sdio_ops.c 			if (atomic_read(&sdev->rx_thread.thread_done))
sdev               78 drivers/net/wireless/rsi/rsi_91x_sdio_ops.c 			skb = skb_dequeue(&sdev->rx_q.head);
sdev               81 drivers/net/wireless/rsi/rsi_91x_sdio_ops.c 			if (sdev->rx_q.num_rx_pkts > 0)
sdev               82 drivers/net/wireless/rsi/rsi_91x_sdio_ops.c 				sdev->rx_q.num_rx_pkts--;
sdev               95 drivers/net/wireless/rsi/rsi_91x_sdio_ops.c 	skb_queue_purge(&sdev->rx_q.head);
sdev               96 drivers/net/wireless/rsi/rsi_91x_sdio_ops.c 	atomic_inc(&sdev->rx_thread.thread_done);
sdev               97 drivers/net/wireless/rsi/rsi_91x_sdio_ops.c 	complete_and_exit(&sdev->rx_thread.completion, 0);
sdev              887 drivers/perf/qcom_l2_pmu.c 	struct platform_device *sdev = to_platform_device(dev);
sdev              911 drivers/perf/qcom_l2_pmu.c 	irq = platform_get_irq(sdev, 0);
sdev              860 drivers/platform/x86/msi-laptop.c static int rfkill_init(struct platform_device *sdev)
sdev              868 drivers/platform/x86/msi-laptop.c 	rfk_bluetooth = rfkill_alloc("msi-bluetooth", &sdev->dev,
sdev              879 drivers/platform/x86/msi-laptop.c 	rfk_wlan = rfkill_alloc("msi-wlan", &sdev->dev, RFKILL_TYPE_WLAN,
sdev              890 drivers/platform/x86/msi-laptop.c 		rfk_threeg = rfkill_alloc("msi-threeg", &sdev->dev,
sdev              975 drivers/platform/x86/msi-laptop.c static int __init load_scm_model_init(struct platform_device *sdev)
sdev             1001 drivers/platform/x86/msi-laptop.c 	result = rfkill_init(sdev);
sdev             1043 drivers/platform/x86/sony-laptop.c 	struct sony_backlight_props *sdev =
sdev             1046 drivers/platform/x86/sony-laptop.c 	sony_call_snc_handle(sdev->handle, sdev->cmd_base + 0x100, &result);
sdev             1048 drivers/platform/x86/sony-laptop.c 	return (result & 0xff) - sdev->offset;
sdev             1054 drivers/platform/x86/sony-laptop.c 	struct sony_backlight_props *sdev =
sdev             1057 drivers/platform/x86/sony-laptop.c 	value = bd->props.brightness + sdev->offset;
sdev             1058 drivers/platform/x86/sony-laptop.c 	if (sony_call_snc_handle(sdev->handle, sdev->cmd_base | (value << 0x10),
sdev               87 drivers/reset/reset-scmi.c static int scmi_reset_probe(struct scmi_device *sdev)
sdev               90 drivers/reset/reset-scmi.c 	struct device *dev = &sdev->dev;
sdev               92 drivers/reset/reset-scmi.c 	const struct scmi_handle *handle = sdev->handle;
sdev              252 drivers/s390/scsi/zfcp_dbf.c 				struct scsi_device *sdev)
sdev              260 drivers/s390/scsi/zfcp_dbf.c 	if (sdev) {
sdev              261 drivers/s390/scsi/zfcp_dbf.c 		rec->lun_status = atomic_read(&sdev_to_zfcp(sdev)->status);
sdev              262 drivers/s390/scsi/zfcp_dbf.c 		rec->lun = zfcp_scsi_dev_lun(sdev);
sdev              279 drivers/s390/scsi/zfcp_dbf.c 		       struct zfcp_port *port, struct scsi_device *sdev,
sdev              298 drivers/s390/scsi/zfcp_dbf.c 	zfcp_dbf_set_common(rec, adapter, port, sdev);
sdev              325 drivers/s390/scsi/zfcp_dbf.c 			    struct zfcp_port *port, struct scsi_device *sdev,
sdev              331 drivers/s390/scsi/zfcp_dbf.c 	zfcp_dbf_rec_trig(tag, adapter, port, sdev, want, need);
sdev              355 drivers/s390/scsi/zfcp_dbf.c 	zfcp_dbf_set_common(rec, erp->adapter, erp->port, erp->sdev);
sdev              362 drivers/s390/scsi/zfcp_dbf.c 	if (erp->sdev)
sdev              364 drivers/s390/scsi/zfcp_dbf.c 			atomic_read(&sdev_to_zfcp(erp->sdev)->erp_counter);
sdev              612 drivers/s390/scsi/zfcp_dbf.c void zfcp_dbf_scsi_common(char *tag, int level, struct scsi_device *sdev,
sdev              616 drivers/s390/scsi/zfcp_dbf.c 		(struct zfcp_adapter *) sdev->host->hostdata[0];
sdev              643 drivers/s390/scsi/zfcp_dbf.c 		rec->scsi_id = sdev->id;
sdev              644 drivers/s390/scsi/zfcp_dbf.c 		rec->scsi_lun = (u32)sdev->lun;
sdev              645 drivers/s390/scsi/zfcp_dbf.c 		rec->scsi_lun_64_hi = (u32)(sdev->lun >> 32);
sdev              420 drivers/s390/scsi/zfcp_dbf.h void zfcp_dbf_scsi_devreset(char *tag, struct scsi_device *sdev, u8 flag,
sdev              424 drivers/s390/scsi/zfcp_dbf.h 					sdev->host->hostdata[0];
sdev              437 drivers/s390/scsi/zfcp_dbf.h 	zfcp_dbf_scsi_common(tmp_tag, level, sdev, NULL, fsf_req);
sdev              129 drivers/s390/scsi/zfcp_def.h 	struct scsi_device *sdev;
sdev              287 drivers/s390/scsi/zfcp_def.h static inline struct zfcp_scsi_dev *sdev_to_zfcp(struct scsi_device *sdev)
sdev              289 drivers/s390/scsi/zfcp_def.h 	return scsi_transport_device_data(sdev);
sdev              296 drivers/s390/scsi/zfcp_def.h static inline u64 zfcp_scsi_dev_lun(struct scsi_device *sdev)
sdev              300 drivers/s390/scsi/zfcp_def.h 	int_to_scsilun(sdev->lun, (struct scsi_lun *)&fcp_lun);
sdev               83 drivers/s390/scsi/zfcp_erp.c static void zfcp_erp_action_dismiss_lun(struct scsi_device *sdev)
sdev               85 drivers/s390/scsi/zfcp_erp.c 	struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev);
sdev               93 drivers/s390/scsi/zfcp_erp.c 	struct scsi_device *sdev;
sdev               99 drivers/s390/scsi/zfcp_erp.c 		__shost_for_each_device(sdev, port->adapter->scsi_host)
sdev              100 drivers/s390/scsi/zfcp_erp.c 			if (sdev_to_zfcp(sdev)->port == port)
sdev              101 drivers/s390/scsi/zfcp_erp.c 				zfcp_erp_action_dismiss_lun(sdev);
sdev              122 drivers/s390/scsi/zfcp_erp.c 	struct zfcp_port *port,	struct scsi_device *sdev)
sdev              129 drivers/s390/scsi/zfcp_erp.c 		zsdev = sdev_to_zfcp(sdev);
sdev              163 drivers/s390/scsi/zfcp_erp.c 				 struct scsi_device *sdev)
sdev              171 drivers/s390/scsi/zfcp_erp.c 		zfcp_sdev = sdev_to_zfcp(sdev);
sdev              216 drivers/s390/scsi/zfcp_erp.c 						  struct scsi_device *sdev)
sdev              229 drivers/s390/scsi/zfcp_erp.c 		zfcp_sdev = sdev_to_zfcp(sdev);
sdev              231 drivers/s390/scsi/zfcp_erp.c 			if (scsi_device_get(sdev))
sdev              237 drivers/s390/scsi/zfcp_erp.c 		WARN_ON_ONCE(erp_action->sdev != sdev);
sdev              251 drivers/s390/scsi/zfcp_erp.c 		WARN_ON_ONCE(erp_action->sdev != NULL);
sdev              262 drivers/s390/scsi/zfcp_erp.c 		WARN_ON_ONCE(erp_action->sdev != NULL);
sdev              283 drivers/s390/scsi/zfcp_erp.c 				    struct scsi_device *sdev,
sdev              289 drivers/s390/scsi/zfcp_erp.c 	need = zfcp_erp_handle_failed(want, adapter, port, sdev);
sdev              300 drivers/s390/scsi/zfcp_erp.c 	need = zfcp_erp_required_act(want, adapter, port, sdev);
sdev              304 drivers/s390/scsi/zfcp_erp.c 	act = zfcp_erp_setup_act(need, act_status, adapter, port, sdev);
sdev              314 drivers/s390/scsi/zfcp_erp.c 	zfcp_dbf_rec_trig(dbftag, adapter, port, sdev, want, need);
sdev              452 drivers/s390/scsi/zfcp_erp.c static void zfcp_erp_lun_block(struct scsi_device *sdev, int clear_mask)
sdev              454 drivers/s390/scsi/zfcp_erp.c 	zfcp_erp_clear_lun_status(sdev,
sdev              458 drivers/s390/scsi/zfcp_erp.c static void _zfcp_erp_lun_reopen(struct scsi_device *sdev, int clear,
sdev              461 drivers/s390/scsi/zfcp_erp.c 	struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev);
sdev              464 drivers/s390/scsi/zfcp_erp.c 	zfcp_erp_lun_block(sdev, clear);
sdev              467 drivers/s390/scsi/zfcp_erp.c 				zfcp_sdev->port, sdev, dbftag, act_status);
sdev              478 drivers/s390/scsi/zfcp_erp.c void zfcp_erp_lun_reopen(struct scsi_device *sdev, int clear, char *dbftag)
sdev              481 drivers/s390/scsi/zfcp_erp.c 	struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev);
sdev              486 drivers/s390/scsi/zfcp_erp.c 	_zfcp_erp_lun_reopen(sdev, clear, dbftag, 0);
sdev              496 drivers/s390/scsi/zfcp_erp.c void zfcp_erp_lun_shutdown(struct scsi_device *sdev, int clear, char *dbftag)
sdev              499 drivers/s390/scsi/zfcp_erp.c 	zfcp_erp_lun_reopen(sdev, clear | flags, dbftag);
sdev              512 drivers/s390/scsi/zfcp_erp.c void zfcp_erp_lun_shutdown_wait(struct scsi_device *sdev, char *dbftag)
sdev              515 drivers/s390/scsi/zfcp_erp.c 	struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev);
sdev              521 drivers/s390/scsi/zfcp_erp.c 	_zfcp_erp_lun_reopen(sdev, clear, dbftag, ZFCP_STATUS_ERP_NO_REF);
sdev              548 drivers/s390/scsi/zfcp_erp.c static void zfcp_erp_lun_unblock(struct scsi_device *sdev)
sdev              550 drivers/s390/scsi/zfcp_erp.c 	struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev);
sdev              554 drivers/s390/scsi/zfcp_erp.c 		zfcp_dbf_rec_run("erlubl1", &sdev_to_zfcp(sdev)->erp_action);
sdev              662 drivers/s390/scsi/zfcp_erp.c 	struct scsi_device *sdev;
sdev              665 drivers/s390/scsi/zfcp_erp.c 	__shost_for_each_device(sdev, port->adapter->scsi_host)
sdev              666 drivers/s390/scsi/zfcp_erp.c 		if (sdev_to_zfcp(sdev)->port == port)
sdev              667 drivers/s390/scsi/zfcp_erp.c 			_zfcp_erp_lun_reopen(sdev, clear, dbftag, 0);
sdev              684 drivers/s390/scsi/zfcp_erp.c 		_zfcp_erp_lun_reopen(act->sdev, 0, "ersff_4", 0);
sdev             1045 drivers/s390/scsi/zfcp_erp.c static void zfcp_erp_lun_strategy_clearstati(struct scsi_device *sdev)
sdev             1047 drivers/s390/scsi/zfcp_erp.c 	struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev);
sdev             1080 drivers/s390/scsi/zfcp_erp.c 	struct scsi_device *sdev = erp_action->sdev;
sdev             1081 drivers/s390/scsi/zfcp_erp.c 	struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev);
sdev             1085 drivers/s390/scsi/zfcp_erp.c 		zfcp_erp_lun_strategy_clearstati(sdev);
sdev             1111 drivers/s390/scsi/zfcp_erp.c 	struct scsi_device *sdev, enum zfcp_erp_act_result result)
sdev             1113 drivers/s390/scsi/zfcp_erp.c 	struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev);
sdev             1118 drivers/s390/scsi/zfcp_erp.c 		zfcp_erp_lun_unblock(sdev);
sdev             1126 drivers/s390/scsi/zfcp_erp.c 				(unsigned long long)zfcp_scsi_dev_lun(sdev),
sdev             1128 drivers/s390/scsi/zfcp_erp.c 			zfcp_erp_set_lun_status(sdev,
sdev             1141 drivers/s390/scsi/zfcp_erp.c 		zfcp_erp_lun_block(sdev, 0);
sdev             1224 drivers/s390/scsi/zfcp_erp.c 	struct scsi_device *sdev = erp_action->sdev;
sdev             1229 drivers/s390/scsi/zfcp_erp.c 		result = zfcp_erp_strategy_check_lun(sdev, result);
sdev             1265 drivers/s390/scsi/zfcp_erp.c 	struct scsi_device *sdev = act->sdev;
sdev             1290 drivers/s390/scsi/zfcp_erp.c 		zfcp_sdev = sdev_to_zfcp(sdev);
sdev             1292 drivers/s390/scsi/zfcp_erp.c 			_zfcp_erp_lun_reopen(sdev,
sdev             1318 drivers/s390/scsi/zfcp_erp.c 		zfcp_sdev = sdev_to_zfcp(erp_action->sdev);
sdev             1346 drivers/s390/scsi/zfcp_erp.c 	struct scsi_device *sdev;
sdev             1361 drivers/s390/scsi/zfcp_erp.c 	__shost_for_each_device(sdev, shost) {
sdev             1362 drivers/s390/scsi/zfcp_erp.c 		struct zfcp_scsi_dev *zsdev = sdev_to_zfcp(sdev);
sdev             1365 drivers/s390/scsi/zfcp_erp.c 		if (sdev->sdev_state == SDEV_DEL ||
sdev             1366 drivers/s390/scsi/zfcp_erp.c 		    sdev->sdev_state == SDEV_CANCEL)
sdev             1400 drivers/s390/scsi/zfcp_erp.c 	struct scsi_device *sdev = act->sdev;
sdev             1405 drivers/s390/scsi/zfcp_erp.c 			scsi_device_put(sdev);
sdev             1625 drivers/s390/scsi/zfcp_erp.c 	struct scsi_device *sdev;
sdev             1640 drivers/s390/scsi/zfcp_erp.c 	__shost_for_each_device(sdev, adapter->scsi_host)
sdev             1641 drivers/s390/scsi/zfcp_erp.c 		atomic_or(common_mask, &sdev_to_zfcp(sdev)->status);
sdev             1655 drivers/s390/scsi/zfcp_erp.c 	struct scsi_device *sdev;
sdev             1677 drivers/s390/scsi/zfcp_erp.c 	__shost_for_each_device(sdev, adapter->scsi_host) {
sdev             1678 drivers/s390/scsi/zfcp_erp.c 		atomic_andnot(common_mask, &sdev_to_zfcp(sdev)->status);
sdev             1680 drivers/s390/scsi/zfcp_erp.c 			atomic_set(&sdev_to_zfcp(sdev)->erp_counter, 0);
sdev             1694 drivers/s390/scsi/zfcp_erp.c 	struct scsi_device *sdev;
sdev             1704 drivers/s390/scsi/zfcp_erp.c 	__shost_for_each_device(sdev, port->adapter->scsi_host)
sdev             1705 drivers/s390/scsi/zfcp_erp.c 		if (sdev_to_zfcp(sdev)->port == port)
sdev             1707 drivers/s390/scsi/zfcp_erp.c 					&sdev_to_zfcp(sdev)->status);
sdev             1720 drivers/s390/scsi/zfcp_erp.c 	struct scsi_device *sdev;
sdev             1734 drivers/s390/scsi/zfcp_erp.c 	__shost_for_each_device(sdev, port->adapter->scsi_host)
sdev             1735 drivers/s390/scsi/zfcp_erp.c 		if (sdev_to_zfcp(sdev)->port == port) {
sdev             1737 drivers/s390/scsi/zfcp_erp.c 					  &sdev_to_zfcp(sdev)->status);
sdev             1739 drivers/s390/scsi/zfcp_erp.c 				atomic_set(&sdev_to_zfcp(sdev)->erp_counter, 0);
sdev             1749 drivers/s390/scsi/zfcp_erp.c void zfcp_erp_set_lun_status(struct scsi_device *sdev, u32 mask)
sdev             1751 drivers/s390/scsi/zfcp_erp.c 	struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev);
sdev             1761 drivers/s390/scsi/zfcp_erp.c void zfcp_erp_clear_lun_status(struct scsi_device *sdev, u32 mask)
sdev             1763 drivers/s390/scsi/zfcp_erp.c 	struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev);
sdev               40 drivers/s390/scsi/zfcp_ext.h 				   struct scsi_device *sdev, u8 want, u8 need);
sdev               53 drivers/s390/scsi/zfcp_ext.h extern void zfcp_dbf_scsi_common(char *tag, int level, struct scsi_device *sdev,
sdev              134 drivers/s390/scsi/zfcp_ext.h extern struct zfcp_fsf_req *zfcp_fsf_fcp_task_mgmt(struct scsi_device *sdev,
sdev              849 drivers/s390/scsi/zfcp_fsf.c 	struct scsi_device *sdev = req->data;
sdev              856 drivers/s390/scsi/zfcp_fsf.c 	zfcp_sdev = sdev_to_zfcp(sdev);
sdev              883 drivers/s390/scsi/zfcp_fsf.c 		zfcp_erp_set_lun_status(sdev, ZFCP_STATUS_COMMON_ACCESS_BOXED);
sdev              884 drivers/s390/scsi/zfcp_fsf.c 		zfcp_erp_lun_reopen(sdev, ZFCP_STATUS_COMMON_ERP_FAILED,
sdev              913 drivers/s390/scsi/zfcp_fsf.c 	struct scsi_device *sdev = scmnd->device;
sdev              914 drivers/s390/scsi/zfcp_fsf.c 	struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev);
sdev              935 drivers/s390/scsi/zfcp_fsf.c 	req->data = sdev;
sdev             1740 drivers/s390/scsi/zfcp_fsf.c 	struct scsi_device *sdev;
sdev             1754 drivers/s390/scsi/zfcp_fsf.c 		shost_for_each_device(sdev, port->adapter->scsi_host)
sdev             1755 drivers/s390/scsi/zfcp_fsf.c 			if (sdev_to_zfcp(sdev)->port == port)
sdev             1757 drivers/s390/scsi/zfcp_fsf.c 						  &sdev_to_zfcp(sdev)->status);
sdev             1777 drivers/s390/scsi/zfcp_fsf.c 		shost_for_each_device(sdev, port->adapter->scsi_host)
sdev             1778 drivers/s390/scsi/zfcp_fsf.c 			if (sdev_to_zfcp(sdev)->port == port)
sdev             1780 drivers/s390/scsi/zfcp_fsf.c 						  &sdev_to_zfcp(sdev)->status);
sdev             1833 drivers/s390/scsi/zfcp_fsf.c 	struct scsi_device *sdev = req->data;
sdev             1841 drivers/s390/scsi/zfcp_fsf.c 	zfcp_sdev = sdev_to_zfcp(sdev);
sdev             1866 drivers/s390/scsi/zfcp_fsf.c 				 zfcp_scsi_dev_lun(sdev),
sdev             1870 drivers/s390/scsi/zfcp_fsf.c 		zfcp_erp_set_lun_status(sdev,
sdev             1879 drivers/s390/scsi/zfcp_fsf.c 			 (unsigned long long)zfcp_scsi_dev_lun(sdev),
sdev             1881 drivers/s390/scsi/zfcp_fsf.c 		zfcp_erp_set_lun_status(sdev, ZFCP_STATUS_COMMON_ERP_FAILED);
sdev             1933 drivers/s390/scsi/zfcp_fsf.c 	req->qtcb->bottom.support.fcp_lun = zfcp_scsi_dev_lun(erp_action->sdev);
sdev             1935 drivers/s390/scsi/zfcp_fsf.c 	req->data = erp_action->sdev;
sdev             1956 drivers/s390/scsi/zfcp_fsf.c 	struct scsi_device *sdev = req->data;
sdev             1962 drivers/s390/scsi/zfcp_fsf.c 	zfcp_sdev = sdev_to_zfcp(sdev);
sdev             2004 drivers/s390/scsi/zfcp_fsf.c 	struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(erp_action->sdev);
sdev             2027 drivers/s390/scsi/zfcp_fsf.c 	req->data = erp_action->sdev;
sdev             2109 drivers/s390/scsi/zfcp_fsf.c 					struct scsi_device *sdev)
sdev             2117 drivers/s390/scsi/zfcp_fsf.c 	zfcp_sdev = sdev_to_zfcp(sdev);
sdev             2138 drivers/s390/scsi/zfcp_fsf.c 			(unsigned long long)zfcp_scsi_dev_lun(sdev),
sdev             2158 drivers/s390/scsi/zfcp_fsf.c 		zfcp_erp_set_lun_status(sdev, ZFCP_STATUS_COMMON_ACCESS_BOXED);
sdev             2159 drivers/s390/scsi/zfcp_fsf.c 		zfcp_erp_lun_reopen(sdev, ZFCP_STATUS_COMMON_ERP_FAILED,
sdev             2275 drivers/s390/scsi/zfcp_fsf.c 	struct scsi_device *sdev = scsi_cmnd->device;
sdev             2276 drivers/s390/scsi/zfcp_fsf.c 	struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev);
sdev             2364 drivers/s390/scsi/zfcp_fsf.c 	struct scsi_device *sdev = req->data;
sdev             2368 drivers/s390/scsi/zfcp_fsf.c 	zfcp_fsf_fcp_handler_common(req, sdev);
sdev             2385 drivers/s390/scsi/zfcp_fsf.c struct zfcp_fsf_req *zfcp_fsf_fcp_task_mgmt(struct scsi_device *sdev,
sdev             2390 drivers/s390/scsi/zfcp_fsf.c 	struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev);
sdev             2410 drivers/s390/scsi/zfcp_fsf.c 	req->data = sdev;
sdev             2422 drivers/s390/scsi/zfcp_fsf.c 	zfcp_fc_fcp_tm(fcp_cmnd, sdev, tm_flags);
sdev               40 drivers/s390/scsi/zfcp_scsi.c static void zfcp_scsi_slave_destroy(struct scsi_device *sdev)
sdev               42 drivers/s390/scsi/zfcp_scsi.c 	struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev);
sdev               48 drivers/s390/scsi/zfcp_scsi.c 	zfcp_erp_lun_shutdown_wait(sdev, "scssd_1");
sdev              113 drivers/s390/scsi/zfcp_scsi.c static int zfcp_scsi_slave_alloc(struct scsi_device *sdev)
sdev              115 drivers/s390/scsi/zfcp_scsi.c 	struct fc_rport *rport = starget_to_rport(scsi_target(sdev));
sdev              117 drivers/s390/scsi/zfcp_scsi.c 		(struct zfcp_adapter *) sdev->host->hostdata[0];
sdev              118 drivers/s390/scsi/zfcp_scsi.c 	struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev);
sdev              124 drivers/s390/scsi/zfcp_scsi.c 	zfcp_sdev->erp_action.sdev = sdev;
sdev              141 drivers/s390/scsi/zfcp_scsi.c 	unit = zfcp_unit_find(port, zfcp_scsi_dev_lun(sdev));
sdev              159 drivers/s390/scsi/zfcp_scsi.c 	zfcp_erp_set_lun_status(sdev, ZFCP_STATUS_COMMON_RUNNING);
sdev              160 drivers/s390/scsi/zfcp_scsi.c 	zfcp_erp_lun_reopen(sdev, 0, "scsla_1");
sdev              289 drivers/s390/scsi/zfcp_scsi.c static int zfcp_scsi_task_mgmt_function(struct scsi_device *sdev, u8 tm_flags)
sdev              291 drivers/s390/scsi/zfcp_scsi.c 	struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev);
sdev              293 drivers/s390/scsi/zfcp_scsi.c 	struct fc_rport *rport = starget_to_rport(scsi_target(sdev));
sdev              299 drivers/s390/scsi/zfcp_scsi.c 		fsf_req = zfcp_fsf_fcp_task_mgmt(sdev, tm_flags);
sdev              303 drivers/s390/scsi/zfcp_scsi.c 		zfcp_dbf_scsi_devreset("wait", sdev, tm_flags, NULL);
sdev              307 drivers/s390/scsi/zfcp_scsi.c 			zfcp_dbf_scsi_devreset("fiof", sdev, tm_flags, NULL);
sdev              313 drivers/s390/scsi/zfcp_scsi.c 			zfcp_dbf_scsi_devreset("nres", sdev, tm_flags, NULL);
sdev              318 drivers/s390/scsi/zfcp_scsi.c 		zfcp_dbf_scsi_devreset("reqf", sdev, tm_flags, NULL);
sdev              325 drivers/s390/scsi/zfcp_scsi.c 		zfcp_dbf_scsi_devreset("fail", sdev, tm_flags, fsf_req);
sdev              328 drivers/s390/scsi/zfcp_scsi.c 		zfcp_dbf_scsi_devreset("okay", sdev, tm_flags, fsf_req);
sdev              338 drivers/s390/scsi/zfcp_scsi.c 	struct scsi_device *sdev = scpnt->device;
sdev              340 drivers/s390/scsi/zfcp_scsi.c 	return zfcp_scsi_task_mgmt_function(sdev, FCP_TMF_LUN_RESET);
sdev              348 drivers/s390/scsi/zfcp_scsi.c 	struct scsi_device *sdev = NULL, *tmp_sdev;
sdev              355 drivers/s390/scsi/zfcp_scsi.c 			sdev = tmp_sdev;
sdev              359 drivers/s390/scsi/zfcp_scsi.c 	if (!sdev) {
sdev              365 drivers/s390/scsi/zfcp_scsi.c 	ret = zfcp_scsi_task_mgmt_function(sdev, FCP_TMF_TGT_RESET);
sdev              368 drivers/s390/scsi/zfcp_scsi.c 	if (sdev)
sdev              127 drivers/s390/scsi/zfcp_sysfs.c 	struct scsi_device *sdev;
sdev              130 drivers/s390/scsi/zfcp_sysfs.c 	sdev = zfcp_unit_sdev(unit);
sdev              131 drivers/s390/scsi/zfcp_sysfs.c 	if (sdev) {
sdev              132 drivers/s390/scsi/zfcp_sysfs.c 		status = atomic_read(&sdev_to_zfcp(sdev)->status);
sdev              134 drivers/s390/scsi/zfcp_sysfs.c 		scsi_device_put(sdev);
sdev              146 drivers/s390/scsi/zfcp_sysfs.c 	struct scsi_device *sdev;
sdev              151 drivers/s390/scsi/zfcp_sysfs.c 	sdev = zfcp_unit_sdev(unit);
sdev              152 drivers/s390/scsi/zfcp_sysfs.c 	if (sdev) {
sdev              153 drivers/s390/scsi/zfcp_sysfs.c 		zfcp_erp_set_lun_status(sdev, ZFCP_STATUS_COMMON_RUNNING);
sdev              154 drivers/s390/scsi/zfcp_sysfs.c 		zfcp_erp_lun_reopen(sdev, ZFCP_STATUS_COMMON_ERP_FAILED,
sdev              254 drivers/s390/scsi/zfcp_sysfs.c 	struct scsi_device *sdev;
sdev              262 drivers/s390/scsi/zfcp_sysfs.c 	__shost_for_each_device(sdev, adapter->scsi_host) {
sdev              263 drivers/s390/scsi/zfcp_sysfs.c 		const struct zfcp_scsi_dev *zsdev = sdev_to_zfcp(sdev);
sdev              265 drivers/s390/scsi/zfcp_sysfs.c 		if (sdev->sdev_state == SDEV_DEL ||
sdev              266 drivers/s390/scsi/zfcp_sysfs.c 		    sdev->sdev_state == SDEV_CANCEL)
sdev              422 drivers/s390/scsi/zfcp_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);			\
sdev              423 drivers/s390/scsi/zfcp_sysfs.c 	struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev);		\
sdev              453 drivers/s390/scsi/zfcp_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);			\
sdev              454 drivers/s390/scsi/zfcp_sysfs.c 	struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev);		\
sdev              483 drivers/s390/scsi/zfcp_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);			 \
sdev              484 drivers/s390/scsi/zfcp_sysfs.c 	struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev);		 \
sdev              499 drivers/s390/scsi/zfcp_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev              501 drivers/s390/scsi/zfcp_sysfs.c 	return sprintf(buf, "0x%016llx\n", zfcp_scsi_dev_lun(sdev));
sdev              513 drivers/s390/scsi/zfcp_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev              514 drivers/s390/scsi/zfcp_sysfs.c 	unsigned int status = atomic_read(&sdev_to_zfcp(sdev)->status);
sdev              524 drivers/s390/scsi/zfcp_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev              530 drivers/s390/scsi/zfcp_sysfs.c 	zfcp_erp_set_lun_status(sdev, ZFCP_STATUS_COMMON_RUNNING);
sdev              531 drivers/s390/scsi/zfcp_sysfs.c 	zfcp_erp_lun_reopen(sdev, ZFCP_STATUS_COMMON_ERP_FAILED,
sdev              533 drivers/s390/scsi/zfcp_sysfs.c 	zfcp_erp_wait(sdev_to_zfcp(sdev)->port->adapter);
sdev              217 drivers/s390/scsi/zfcp_unit.c 	struct scsi_device *sdev;
sdev              220 drivers/s390/scsi/zfcp_unit.c 	sdev = zfcp_unit_sdev(unit);
sdev              221 drivers/s390/scsi/zfcp_unit.c 	if (sdev) {
sdev              222 drivers/s390/scsi/zfcp_unit.c 		zfcp_sdev = sdev_to_zfcp(sdev);
sdev              224 drivers/s390/scsi/zfcp_unit.c 		scsi_device_put(sdev);
sdev              241 drivers/s390/scsi/zfcp_unit.c 	struct scsi_device *sdev;
sdev              252 drivers/s390/scsi/zfcp_unit.c 	sdev = zfcp_unit_sdev(unit);
sdev              253 drivers/s390/scsi/zfcp_unit.c 	if (sdev) {
sdev              254 drivers/s390/scsi/zfcp_unit.c 		scsi_remove_device(sdev);
sdev              255 drivers/s390/scsi/zfcp_unit.c 		scsi_device_put(sdev);
sdev             1698 drivers/scsi/3w-9xxx.c static int twa_scsi_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int geom[])
sdev             1703 drivers/scsi/3w-9xxx.c 	tw_dev = (TW_Device_Extension *)sdev->host->hostdata;
sdev             1979 drivers/scsi/3w-9xxx.c static int twa_slave_configure(struct scsi_device *sdev)
sdev             1982 drivers/scsi/3w-9xxx.c 	blk_queue_rq_timeout(sdev->request_queue, 60 * HZ);
sdev             1408 drivers/scsi/3w-sas.c static int twl_scsi_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int geom[])
sdev             1413 drivers/scsi/3w-sas.c 	tw_dev = (TW_Device_Extension *)sdev->host->hostdata;
sdev             1532 drivers/scsi/3w-sas.c static int twl_slave_configure(struct scsi_device *sdev)
sdev             1535 drivers/scsi/3w-sas.c 	blk_queue_rq_timeout(sdev->request_queue, 60 * HZ);
sdev             1343 drivers/scsi/3w-xxxx.c static int tw_scsi_biosparam(struct scsi_device *sdev, struct block_device *bdev,
sdev             1350 drivers/scsi/3w-xxxx.c 	tw_dev = (TW_Device_Extension *)sdev->host->hostdata;
sdev             2229 drivers/scsi/3w-xxxx.c static int tw_slave_configure(struct scsi_device *sdev)
sdev             2232 drivers/scsi/3w-xxxx.c 	blk_queue_rq_timeout(sdev->request_queue, 60 * HZ);
sdev               26 drivers/scsi/53c700.h #define DDEBUG(prefix, sdev, fmt, a...) \
sdev               27 drivers/scsi/53c700.h 	sdev_printk(prefix, sdev, fmt, ##a)
sdev             3384 drivers/scsi/BusLogic.c static int blogic_diskparam(struct scsi_device *sdev, struct block_device *dev,
sdev             3388 drivers/scsi/BusLogic.c 				(struct blogic_adapter *) sdev->host->hostdata;
sdev             2620 drivers/scsi/aacraid/aachba.c 		struct scsi_device *sdev = cmd->device;
sdev             2622 drivers/scsi/aacraid/aachba.c 		u32 cid = sdev_id(sdev);
sdev             2647 drivers/scsi/aacraid/aachba.c 	struct scsi_device *sdev = scsicmd->device;
sdev             2659 drivers/scsi/aacraid/aachba.c 	spin_lock_irqsave(&sdev->list_lock, flags);
sdev             2660 drivers/scsi/aacraid/aachba.c 	list_for_each_entry(cmd, &sdev->cmd_list, list)
sdev             2710 drivers/scsi/aacraid/aachba.c 	spin_unlock_irqrestore(&sdev->list_lock, flags);
sdev             2718 drivers/scsi/aacraid/aachba.c 	aac = (struct aac_dev *)sdev->host->hostdata;
sdev             2783 drivers/scsi/aacraid/aachba.c 	struct scsi_device *sdev = scsicmd->device;
sdev             2784 drivers/scsi/aacraid/aachba.c 	struct aac_dev *aac = (struct aac_dev *)sdev->host->hostdata;
sdev             2810 drivers/scsi/aacraid/aachba.c 	pmcmd->cid = cpu_to_le32(sdev_id(sdev));
sdev             1865 drivers/scsi/aacraid/commsup.c static void aac_put_safw_scsi_device(struct scsi_device *sdev)
sdev             1867 drivers/scsi/aacraid/commsup.c 	if (sdev)
sdev             1868 drivers/scsi/aacraid/commsup.c 		scsi_device_put(sdev);
sdev             1873 drivers/scsi/aacraid/commsup.c 	struct scsi_device *sdev;
sdev             1875 drivers/scsi/aacraid/commsup.c 	sdev = aac_lookup_safw_scsi_device(dev, bus, target);
sdev             1876 drivers/scsi/aacraid/commsup.c 	scsi_remove_device(sdev);
sdev             1877 drivers/scsi/aacraid/commsup.c 	aac_put_safw_scsi_device(sdev);
sdev             1897 drivers/scsi/aacraid/commsup.c 	struct scsi_device *sdev;
sdev             1899 drivers/scsi/aacraid/commsup.c 	sdev = aac_lookup_safw_scsi_device(dev, bus, target);
sdev             1900 drivers/scsi/aacraid/commsup.c 	if (sdev)
sdev             1902 drivers/scsi/aacraid/commsup.c 	aac_put_safw_scsi_device(sdev);
sdev              296 drivers/scsi/aacraid/linit.c static int aac_biosparm(struct scsi_device *sdev, struct block_device *bdev,
sdev              388 drivers/scsi/aacraid/linit.c static int aac_slave_configure(struct scsi_device *sdev)
sdev              390 drivers/scsi/aacraid/linit.c 	struct aac_dev *aac = (struct aac_dev *)sdev->host->hostdata;
sdev              397 drivers/scsi/aacraid/linit.c 	chn = aac_logical_to_phys(sdev_channel(sdev));
sdev              398 drivers/scsi/aacraid/linit.c 	tid = sdev_id(sdev);
sdev              414 drivers/scsi/aacraid/linit.c 	if (aac->jbod && (sdev->type == TYPE_DISK))
sdev              415 drivers/scsi/aacraid/linit.c 		sdev->removable = 1;
sdev              417 drivers/scsi/aacraid/linit.c 	if (sdev->type == TYPE_DISK
sdev              418 drivers/scsi/aacraid/linit.c 	 && sdev_channel(sdev) != CONTAINER_CHANNEL
sdev              419 drivers/scsi/aacraid/linit.c 	 && (!aac->jbod || sdev->inq_periph_qual)
sdev              420 drivers/scsi/aacraid/linit.c 	 && (!aac->raid_scsi_mode || (sdev_channel(sdev) != 2))) {
sdev              426 drivers/scsi/aacraid/linit.c 			sdev->no_uld_attach = 1;
sdev              429 drivers/scsi/aacraid/linit.c 	if (sdev->tagged_supported
sdev              430 drivers/scsi/aacraid/linit.c 	 &&  sdev->type == TYPE_DISK
sdev              431 drivers/scsi/aacraid/linit.c 	 &&  (!aac->raid_scsi_mode || (sdev_channel(sdev) != 2))
sdev              432 drivers/scsi/aacraid/linit.c 	 && !sdev->no_uld_attach) {
sdev              435 drivers/scsi/aacraid/linit.c 		struct Scsi_Host *host = sdev->host;
sdev              449 drivers/scsi/aacraid/linit.c 			 && (!aac->raid_scsi_mode || (sdev_channel(sdev) != 2))
sdev              465 drivers/scsi/aacraid/linit.c 		if (sdev_channel(sdev) != NATIVE_CHANNEL)
sdev              478 drivers/scsi/aacraid/linit.c 		if (strncmp(sdev->vendor, "ATA", 3) == 0)
sdev              488 drivers/scsi/aacraid/linit.c 	if (set_timeout && sdev->request_queue->rq_timeout < (45 * HZ))
sdev              489 drivers/scsi/aacraid/linit.c 		blk_queue_rq_timeout(sdev->request_queue, 45*HZ);
sdev              496 drivers/scsi/aacraid/linit.c 	scsi_change_queue_depth(sdev, depth);
sdev              498 drivers/scsi/aacraid/linit.c 	sdev->tagged_supported = 1;
sdev              512 drivers/scsi/aacraid/linit.c static int aac_change_queue_depth(struct scsi_device *sdev, int depth)
sdev              514 drivers/scsi/aacraid/linit.c 	struct aac_dev *aac = (struct aac_dev *)(sdev->host->hostdata);
sdev              517 drivers/scsi/aacraid/linit.c 	chn = aac_logical_to_phys(sdev_channel(sdev));
sdev              518 drivers/scsi/aacraid/linit.c 	tid = sdev_id(sdev);
sdev              523 drivers/scsi/aacraid/linit.c 	if (sdev->tagged_supported && (sdev->type == TYPE_DISK) &&
sdev              524 drivers/scsi/aacraid/linit.c 	    (sdev_channel(sdev) == CONTAINER_CHANNEL)) {
sdev              526 drivers/scsi/aacraid/linit.c 		struct Scsi_Host *host = sdev->host;
sdev              543 drivers/scsi/aacraid/linit.c 		return scsi_change_queue_depth(sdev, depth);
sdev              545 drivers/scsi/aacraid/linit.c 		scsi_change_queue_depth(sdev, aac->hba_map[chn][tid].qd_limit);
sdev              547 drivers/scsi/aacraid/linit.c 		scsi_change_queue_depth(sdev, 1);
sdev              549 drivers/scsi/aacraid/linit.c 	return sdev->queue_depth;
sdev              554 drivers/scsi/aacraid/linit.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev              555 drivers/scsi/aacraid/linit.c 	struct aac_dev *aac = (struct aac_dev *)(sdev->host->hostdata);
sdev              556 drivers/scsi/aacraid/linit.c 	if (sdev_channel(sdev) != CONTAINER_CHANNEL)
sdev              557 drivers/scsi/aacraid/linit.c 		return snprintf(buf, PAGE_SIZE, sdev->no_uld_attach
sdev              559 drivers/scsi/aacraid/linit.c 		  ((aac->jbod && (sdev->type == TYPE_DISK)) ? "JBOD\n" : ""));
sdev              561 drivers/scsi/aacraid/linit.c 	  get_container_type(aac->fsa_dev[sdev_id(sdev)].type));
sdev              575 drivers/scsi/aacraid/linit.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev              576 drivers/scsi/aacraid/linit.c 	struct aac_dev *aac = (struct aac_dev *)(sdev->host->hostdata);
sdev              581 drivers/scsi/aacraid/linit.c 	if (sdev_channel(sdev) == CONTAINER_CHANNEL)
sdev              582 drivers/scsi/aacraid/linit.c 		memcpy(sn, aac->fsa_dev[sdev_id(sdev)].identifier, sizeof(sn));
sdev              608 drivers/scsi/aacraid/linit.c static int aac_ioctl(struct scsi_device *sdev, unsigned int cmd,
sdev              611 drivers/scsi/aacraid/linit.c 	struct aac_dev *dev = (struct aac_dev *)sdev->host->hostdata;
sdev              621 drivers/scsi/aacraid/linit.c 	struct scsi_device *sdev = NULL;
sdev              632 drivers/scsi/aacraid/linit.c 	__shost_for_each_device(sdev, shost) {
sdev              633 drivers/scsi/aacraid/linit.c 		spin_lock_irqsave(&sdev->list_lock, flags);
sdev              634 drivers/scsi/aacraid/linit.c 		list_for_each_entry(scmnd, &sdev->cmd_list, list) {
sdev              653 drivers/scsi/aacraid/linit.c 		spin_unlock_irqrestore(&sdev->list_lock, flags);
sdev             1198 drivers/scsi/aacraid/linit.c static int aac_compat_ioctl(struct scsi_device *sdev, unsigned int cmd,
sdev             1201 drivers/scsi/aacraid/linit.c 	struct aac_dev *dev = (struct aac_dev *)sdev->host->hostdata;
sdev             2044 drivers/scsi/aacraid/linit.c 	struct scsi_device *sdev = NULL;
sdev             2071 drivers/scsi/aacraid/linit.c 	shost_for_each_device(sdev, shost)
sdev             2072 drivers/scsi/aacraid/linit.c 		if (sdev->sdev_state == SDEV_OFFLINE)
sdev             2073 drivers/scsi/aacraid/linit.c 			sdev->sdev_state = SDEV_RUNNING;
sdev             7185 drivers/scsi/advansys.c advansys_biosparam(struct scsi_device *sdev, struct block_device *bdev,
sdev             7188 drivers/scsi/advansys.c 	struct asc_board *boardp = shost_priv(sdev->host);
sdev             7191 drivers/scsi/advansys.c 	ASC_STATS(sdev->host, biosparam);
sdev             7284 drivers/scsi/advansys.c static void AscAsyncFix(ASC_DVC_VAR *asc_dvc, struct scsi_device *sdev)
sdev             7286 drivers/scsi/advansys.c 	char type = sdev->type;
sdev             7287 drivers/scsi/advansys.c 	ASC_SCSI_BIT_ID_TYPE tid_bits = 1 << sdev->id;
sdev             7294 drivers/scsi/advansys.c 	if ((type == TYPE_ROM) && (strncmp(sdev->vendor, "HP ", 3) == 0))
sdev             7303 drivers/scsi/advansys.c 		AscSetRunChipSynRegAtID(asc_dvc->iop_base, sdev->id,
sdev             7308 drivers/scsi/advansys.c advansys_narrow_slave_configure(struct scsi_device *sdev, ASC_DVC_VAR *asc_dvc)
sdev             7310 drivers/scsi/advansys.c 	ASC_SCSI_BIT_ID_TYPE tid_bit = 1 << sdev->id;
sdev             7313 drivers/scsi/advansys.c 	if (sdev->lun == 0) {
sdev             7315 drivers/scsi/advansys.c 		if ((asc_dvc->cfg->sdtr_enable & tid_bit) && sdev->sdtr) {
sdev             7322 drivers/scsi/advansys.c 			AscAsyncFix(asc_dvc, sdev);
sdev             7325 drivers/scsi/advansys.c 	if (sdev->tagged_supported) {
sdev             7327 drivers/scsi/advansys.c 			if (sdev->lun == 0) {
sdev             7331 drivers/scsi/advansys.c 			scsi_change_queue_depth(sdev, 
sdev             7332 drivers/scsi/advansys.c 						asc_dvc->max_dvc_qng[sdev->id]);
sdev             7335 drivers/scsi/advansys.c 		if (sdev->lun == 0) {
sdev             7341 drivers/scsi/advansys.c 	if ((sdev->lun == 0) &&
sdev             7350 drivers/scsi/advansys.c 		asc_dvc->max_dvc_qng[sdev->id] =
sdev             7351 drivers/scsi/advansys.c 					asc_dvc->cfg->max_tag_qng[sdev->id];
sdev             7353 drivers/scsi/advansys.c 				 (ushort)(ASCV_MAX_DVC_QNG_BEG + sdev->id),
sdev             7354 drivers/scsi/advansys.c 				 asc_dvc->max_dvc_qng[sdev->id]);
sdev             7434 drivers/scsi/advansys.c advansys_wide_slave_configure(struct scsi_device *sdev, ADV_DVC_VAR *adv_dvc)
sdev             7437 drivers/scsi/advansys.c 	unsigned short tidmask = 1 << sdev->id;
sdev             7439 drivers/scsi/advansys.c 	if (sdev->lun == 0) {
sdev             7446 drivers/scsi/advansys.c 		if ((adv_dvc->wdtr_able & tidmask) && sdev->wdtr)
sdev             7448 drivers/scsi/advansys.c 		if ((adv_dvc->sdtr_able & tidmask) && sdev->sdtr)
sdev             7450 drivers/scsi/advansys.c 		if (adv_dvc->chip_type == ADV_CHIP_ASC38C1600 && sdev->ppr)
sdev             7460 drivers/scsi/advansys.c 		    sdev->tagged_supported) {
sdev             7467 drivers/scsi/advansys.c 					 ASC_MC_NUMBER_OF_MAX_CMD + sdev->id,
sdev             7472 drivers/scsi/advansys.c 	if ((adv_dvc->tagqng_able & tidmask) && sdev->tagged_supported)
sdev             7473 drivers/scsi/advansys.c 		scsi_change_queue_depth(sdev, adv_dvc->max_dvc_qng);
sdev             7480 drivers/scsi/advansys.c static int advansys_slave_configure(struct scsi_device *sdev)
sdev             7482 drivers/scsi/advansys.c 	struct asc_board *boardp = shost_priv(sdev->host);
sdev             7485 drivers/scsi/advansys.c 		advansys_narrow_slave_configure(sdev,
sdev             7488 drivers/scsi/advansys.c 		advansys_wide_slave_configure(sdev,
sdev             1223 drivers/scsi/aha152x.c static int aha152x_biosparam(struct scsi_device *sdev, struct block_device *bdev,
sdev             1226 drivers/scsi/aha152x.c 	struct Scsi_Host *shpnt = sdev->host;
sdev              981 drivers/scsi/aha1542.c static int aha1542_biosparam(struct scsi_device *sdev,
sdev              984 drivers/scsi/aha1542.c 	struct aha1542_hostdata *aha1542 = shost_priv(sdev->host);
sdev              504 drivers/scsi/aha1740.c static int aha1740_biosparam(struct scsi_device *sdev,
sdev              509 drivers/scsi/aha1740.c 	int extended = HOSTDATA(sdev->host)->translation;
sdev             4086 drivers/scsi/aic7xxx/aic79xx_core.c 	struct scsi_device *sdev = cmd->device;
sdev             4088 drivers/scsi/aic7xxx/aic79xx_core.c 	ahd_platform_set_tags(ahd, sdev, devinfo, alg);
sdev              672 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_linux_slave_alloc(struct scsi_device *sdev)
sdev              675 drivers/scsi/aic7xxx/aic79xx_osm.c 		*((struct ahd_softc **)sdev->host->hostdata);
sdev              679 drivers/scsi/aic7xxx/aic79xx_osm.c 		printk("%s: Slave Alloc %d\n", ahd_name(ahd), sdev->id);
sdev              681 drivers/scsi/aic7xxx/aic79xx_osm.c 	dev = scsi_transport_device_data(sdev);
sdev              701 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_linux_slave_configure(struct scsi_device *sdev)
sdev              705 drivers/scsi/aic7xxx/aic79xx_osm.c 	ahd = *((struct ahd_softc **)sdev->host->hostdata);
sdev              707 drivers/scsi/aic7xxx/aic79xx_osm.c 		sdev_printk(KERN_INFO, sdev, "Slave Configure\n");
sdev              709 drivers/scsi/aic7xxx/aic79xx_osm.c 	ahd_linux_device_queue_depth(sdev);
sdev              712 drivers/scsi/aic7xxx/aic79xx_osm.c 	if (!spi_initial_dv(sdev->sdev_target))
sdev              713 drivers/scsi/aic7xxx/aic79xx_osm.c 		spi_dv_device(sdev);
sdev              723 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_linux_biosparam(struct scsi_device *sdev, struct block_device *bdev,
sdev              734 drivers/scsi/aic7xxx/aic79xx_osm.c 	ahd = *((struct ahd_softc **)sdev->host->hostdata);
sdev             1402 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_platform_set_tags(struct ahd_softc *ahd, struct scsi_device *sdev,
sdev             1409 drivers/scsi/aic7xxx/aic79xx_osm.c 	if (sdev == NULL)
sdev             1412 drivers/scsi/aic7xxx/aic79xx_osm.c 	dev = scsi_transport_device_data(sdev);
sdev             1470 drivers/scsi/aic7xxx/aic79xx_osm.c 		scsi_change_queue_depth(sdev,
sdev             1480 drivers/scsi/aic7xxx/aic79xx_osm.c 		scsi_change_queue_depth(sdev, 1);
sdev             1527 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_linux_device_queue_depth(struct scsi_device *sdev)
sdev             1531 drivers/scsi/aic7xxx/aic79xx_osm.c 	struct ahd_softc *ahd = *((struct ahd_softc **)sdev->host->hostdata);
sdev             1535 drivers/scsi/aic7xxx/aic79xx_osm.c 			    sdev->sdev_target->id, sdev->lun,
sdev             1536 drivers/scsi/aic7xxx/aic79xx_osm.c 			    sdev->sdev_target->channel == 0 ? 'A' : 'B',
sdev             1539 drivers/scsi/aic7xxx/aic79xx_osm.c 	if (tags != 0 && sdev->tagged_supported != 0) {
sdev             1541 drivers/scsi/aic7xxx/aic79xx_osm.c 		ahd_platform_set_tags(ahd, sdev, &devinfo, AHD_QUEUE_TAGGED);
sdev             1547 drivers/scsi/aic7xxx/aic79xx_osm.c 		ahd_platform_set_tags(ahd, sdev, &devinfo, AHD_QUEUE_NONE);
sdev             1882 drivers/scsi/aic7xxx/aic79xx_osm.c 			     struct scsi_device *sdev, struct scb *scb)
sdev             1885 drivers/scsi/aic7xxx/aic79xx_osm.c 	struct ahd_linux_device *dev = scsi_transport_device_data(sdev);
sdev             1889 drivers/scsi/aic7xxx/aic79xx_osm.c 			    sdev->sdev_target->id, sdev->lun,
sdev             1890 drivers/scsi/aic7xxx/aic79xx_osm.c 			    sdev->sdev_target->channel == 0 ? 'A' : 'B',
sdev             2009 drivers/scsi/aic7xxx/aic79xx_osm.c 			ahd_platform_set_tags(ahd, sdev, &devinfo,
sdev             2019 drivers/scsi/aic7xxx/aic79xx_osm.c 		ahd_platform_set_tags(ahd, sdev, &devinfo,
sdev              663 drivers/scsi/aic7xxx/aic79xx_osm.h void	ahd_platform_set_tags(struct ahd_softc *ahd, struct scsi_device *sdev,
sdev               50 drivers/scsi/aic7xxx/aic79xx_proc.c 				      struct scsi_device *sdev);
sdev              192 drivers/scsi/aic7xxx/aic79xx_proc.c ahd_dump_device_state(struct seq_file *m, struct scsi_device *sdev)
sdev              194 drivers/scsi/aic7xxx/aic79xx_proc.c 	struct ahd_linux_device *dev = scsi_transport_device_data(sdev);
sdev              197 drivers/scsi/aic7xxx/aic79xx_proc.c 		  sdev->sdev_target->channel + 'A',
sdev              198 drivers/scsi/aic7xxx/aic79xx_proc.c 		   sdev->sdev_target->id, (u8)sdev->lun);
sdev             2672 drivers/scsi/aic7xxx/aic7xxx_core.c 	struct scsi_device *sdev = cmd->device;
sdev             2674 drivers/scsi/aic7xxx/aic7xxx_core.c  	ahc_platform_set_tags(ahc, sdev, devinfo, alg);
sdev              640 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_linux_slave_alloc(struct scsi_device *sdev)
sdev              643 drivers/scsi/aic7xxx/aic7xxx_osm.c 		*((struct ahc_softc **)sdev->host->hostdata);
sdev              644 drivers/scsi/aic7xxx/aic7xxx_osm.c 	struct scsi_target *starget = sdev->sdev_target;
sdev              648 drivers/scsi/aic7xxx/aic7xxx_osm.c 		printk("%s: Slave Alloc %d\n", ahc_name(ahc), sdev->id);
sdev              650 drivers/scsi/aic7xxx/aic7xxx_osm.c 	dev = scsi_transport_device_data(sdev);
sdev              672 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_linux_slave_configure(struct scsi_device *sdev)
sdev              676 drivers/scsi/aic7xxx/aic7xxx_osm.c 	ahc = *((struct ahc_softc **)sdev->host->hostdata);
sdev              679 drivers/scsi/aic7xxx/aic7xxx_osm.c 		sdev_printk(KERN_INFO, sdev, "Slave Configure\n");
sdev              681 drivers/scsi/aic7xxx/aic7xxx_osm.c 	ahc_linux_device_queue_depth(sdev);
sdev              684 drivers/scsi/aic7xxx/aic7xxx_osm.c 	if (!spi_initial_dv(sdev->sdev_target))
sdev              685 drivers/scsi/aic7xxx/aic7xxx_osm.c 		spi_dv_device(sdev);
sdev              695 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_linux_biosparam(struct scsi_device *sdev, struct block_device *bdev,
sdev              707 drivers/scsi/aic7xxx/aic7xxx_osm.c 	ahc = *((struct ahc_softc **)sdev->host->hostdata);
sdev              708 drivers/scsi/aic7xxx/aic7xxx_osm.c 	channel = sdev_channel(sdev);
sdev             1270 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_platform_set_tags(struct ahc_softc *ahc, struct scsi_device *sdev,
sdev             1277 drivers/scsi/aic7xxx/aic7xxx_osm.c 	if (sdev == NULL)
sdev             1279 drivers/scsi/aic7xxx/aic7xxx_osm.c 	dev = scsi_transport_device_data(sdev);
sdev             1334 drivers/scsi/aic7xxx/aic7xxx_osm.c 		scsi_change_queue_depth(sdev,
sdev             1344 drivers/scsi/aic7xxx/aic7xxx_osm.c 		scsi_change_queue_depth(sdev, 2);
sdev             1391 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_linux_device_queue_depth(struct scsi_device *sdev)
sdev             1395 drivers/scsi/aic7xxx/aic7xxx_osm.c 	struct ahc_softc *ahc = *((struct ahc_softc **)sdev->host->hostdata);
sdev             1398 drivers/scsi/aic7xxx/aic7xxx_osm.c 			    sdev->sdev_target->channel == 0
sdev             1400 drivers/scsi/aic7xxx/aic7xxx_osm.c 			    sdev->sdev_target->id, sdev->lun,
sdev             1401 drivers/scsi/aic7xxx/aic7xxx_osm.c 			    sdev->sdev_target->channel == 0 ? 'A' : 'B',
sdev             1404 drivers/scsi/aic7xxx/aic7xxx_osm.c 	if (tags != 0 && sdev->tagged_supported != 0) {
sdev             1406 drivers/scsi/aic7xxx/aic7xxx_osm.c 		ahc_platform_set_tags(ahc, sdev, &devinfo, AHC_QUEUE_TAGGED);
sdev             1412 drivers/scsi/aic7xxx/aic7xxx_osm.c 		ahc_platform_set_tags(ahc, sdev, &devinfo, AHC_QUEUE_NONE);
sdev             1811 drivers/scsi/aic7xxx/aic7xxx_osm.c 			     struct scsi_device *sdev, struct scb *scb)
sdev             1814 drivers/scsi/aic7xxx/aic7xxx_osm.c 	struct ahc_linux_device *dev = scsi_transport_device_data(sdev);
sdev             1818 drivers/scsi/aic7xxx/aic7xxx_osm.c 			    sdev->sdev_target->id, sdev->lun,
sdev             1819 drivers/scsi/aic7xxx/aic7xxx_osm.c 			    sdev->sdev_target->channel == 0 ? 'A' : 'B',
sdev             1919 drivers/scsi/aic7xxx/aic7xxx_osm.c 			ahc_platform_set_tags(ahc, sdev, &devinfo,
sdev             1930 drivers/scsi/aic7xxx/aic7xxx_osm.c 		ahc_platform_set_tags(ahc, sdev, &devinfo,
sdev              679 drivers/scsi/aic7xxx/aic7xxx_osm.h void	ahc_platform_set_tags(struct ahc_softc *ahc, struct scsi_device *sdev,
sdev              160 drivers/scsi/aic7xxx/aic7xxx_proc.c 		struct scsi_device *sdev;
sdev              162 drivers/scsi/aic7xxx/aic7xxx_proc.c 		sdev = scsi_device_lookup_by_target(starget, lun);
sdev              164 drivers/scsi/aic7xxx/aic7xxx_proc.c 		if (sdev == NULL)
sdev              167 drivers/scsi/aic7xxx/aic7xxx_proc.c 		ahc_dump_device_state(m, sdev);
sdev              172 drivers/scsi/aic7xxx/aic7xxx_proc.c ahc_dump_device_state(struct seq_file *m, struct scsi_device *sdev)
sdev              174 drivers/scsi/aic7xxx/aic7xxx_proc.c 	struct ahc_linux_device *dev = scsi_transport_device_data(sdev);
sdev              177 drivers/scsi/aic7xxx/aic7xxx_proc.c 		  sdev->sdev_target->channel + 'A',
sdev              178 drivers/scsi/aic7xxx/aic7xxx_proc.c 		   sdev->sdev_target->id, (u8)sdev->lun);
sdev              111 drivers/scsi/arcmsr/arcmsr_hba.c static int arcmsr_bios_param(struct scsi_device *sdev,
sdev              142 drivers/scsi/arcmsr/arcmsr_hba.c static int arcmsr_adjust_disk_queue_depth(struct scsi_device *sdev, int queue_depth)
sdev              146 drivers/scsi/arcmsr/arcmsr_hba.c 	return scsi_change_queue_depth(sdev, queue_depth);
sdev              353 drivers/scsi/arcmsr/arcmsr_hba.c static int arcmsr_bios_param(struct scsi_device *sdev,
sdev               28 drivers/scsi/bfa/bfad_im.c static int bfad_im_slave_alloc(struct scsi_device *sdev);
sdev              411 drivers/scsi/bfa/bfad_im.c bfad_im_slave_destroy(struct scsi_device *sdev)
sdev              413 drivers/scsi/bfa/bfad_im.c 	sdev->hostdata = NULL;
sdev              789 drivers/scsi/bfa/bfad_im.c bfad_im_slave_configure(struct scsi_device *sdev)
sdev              791 drivers/scsi/bfa/bfad_im.c 	scsi_change_queue_depth(sdev, bfa_lun_queue_depth);
sdev              869 drivers/scsi/bfa/bfad_im.c bfad_ramp_up_qdepth(struct bfad_itnim_s *itnim, struct scsi_device *sdev)
sdev              877 drivers/scsi/bfa/bfad_im.c 		shost_for_each_device(tmp_sdev, sdev->host) {
sdev              879 drivers/scsi/bfa/bfad_im.c 				if (tmp_sdev->id != sdev->id)
sdev              891 drivers/scsi/bfa/bfad_im.c bfad_handle_qfull(struct bfad_itnim_s *itnim, struct scsi_device *sdev)
sdev              897 drivers/scsi/bfa/bfad_im.c 	shost_for_each_device(tmp_sdev, sdev->host) {
sdev              898 drivers/scsi/bfa/bfad_im.c 		if (tmp_sdev->id != sdev->id)
sdev              927 drivers/scsi/bfa/bfad_im.c bfad_im_check_if_make_lun_visible(struct scsi_device *sdev,
sdev              939 drivers/scsi/bfa/bfad_im.c 		    scsilun_to_int(&lun_list[i].lun) == sdev->lun &&
sdev              953 drivers/scsi/bfa/bfad_im.c bfad_im_slave_alloc(struct scsi_device *sdev)
sdev              955 drivers/scsi/bfa/bfad_im.c 	struct fc_rport *rport = starget_to_rport(scsi_target(sdev));
sdev              970 drivers/scsi/bfa/bfad_im.c 		if (sdev->lun == 0) {
sdev              971 drivers/scsi/bfa/bfad_im.c 			sdev->sdev_bflags |= BLIST_NOREPORTLUN |
sdev              980 drivers/scsi/bfa/bfad_im.c 		if (bfad_im_check_if_make_lun_visible(sdev, rport) !=
sdev              985 drivers/scsi/bfa/bfad_im.c 	sdev->hostdata = rport->dd_data;
sdev              166 drivers/scsi/bfa/bfad_im.h 				 struct scsi_device *sdev);
sdev              167 drivers/scsi/bfa/bfad_im.h void bfad_handle_qfull(struct bfad_itnim_s *itnim, struct scsi_device *sdev);
sdev             2669 drivers/scsi/bnx2fc/bnx2fc_fcoe.c static int bnx2fc_slave_configure(struct scsi_device *sdev)
sdev             2674 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	scsi_change_queue_depth(sdev, bnx2fc_queue_depth);
sdev             2222 drivers/scsi/csiostor/csio_scsi.c csio_slave_alloc(struct scsi_device *sdev)
sdev             2224 drivers/scsi/csiostor/csio_scsi.c 	struct fc_rport *rport = starget_to_rport(scsi_target(sdev));
sdev             2229 drivers/scsi/csiostor/csio_scsi.c 	sdev->hostdata = *((struct csio_lnode **)(rport->dd_data));
sdev             2235 drivers/scsi/csiostor/csio_scsi.c csio_slave_configure(struct scsi_device *sdev)
sdev             2237 drivers/scsi/csiostor/csio_scsi.c 	scsi_change_queue_depth(sdev, csio_lun_qdepth);
sdev             2242 drivers/scsi/csiostor/csio_scsi.c csio_slave_destroy(struct scsi_device *sdev)
sdev             2244 drivers/scsi/csiostor/csio_scsi.c 	sdev->hostdata = NULL;
sdev              333 drivers/scsi/cxlflash/common.h int cxlflash_ioctl(struct scsi_device *sdev, unsigned int cmd,
sdev               31 drivers/scsi/cxlflash/lunmgt.c static struct llun_info *create_local(struct scsi_device *sdev, u8 *wwid)
sdev               33 drivers/scsi/cxlflash/lunmgt.c 	struct cxlflash_cfg *cfg = shost_priv(sdev->host);
sdev               43 drivers/scsi/cxlflash/lunmgt.c 	lli->sdev = sdev;
sdev               44 drivers/scsi/cxlflash/lunmgt.c 	lli->host_no = sdev->host->host_no;
sdev               59 drivers/scsi/cxlflash/lunmgt.c static struct glun_info *create_global(struct scsi_device *sdev, u8 *wwid)
sdev               61 drivers/scsi/cxlflash/lunmgt.c 	struct cxlflash_cfg *cfg = shost_priv(sdev->host);
sdev              132 drivers/scsi/cxlflash/lunmgt.c static struct llun_info *find_and_create_lun(struct scsi_device *sdev, u8 *wwid)
sdev              134 drivers/scsi/cxlflash/lunmgt.c 	struct cxlflash_cfg *cfg = shost_priv(sdev->host);
sdev              146 drivers/scsi/cxlflash/lunmgt.c 	lli = create_local(sdev, wwid);
sdev              157 drivers/scsi/cxlflash/lunmgt.c 	gli = create_global(sdev, wwid);
sdev              227 drivers/scsi/cxlflash/lunmgt.c int cxlflash_manage_lun(struct scsi_device *sdev,
sdev              230 drivers/scsi/cxlflash/lunmgt.c 	struct cxlflash_cfg *cfg = shost_priv(sdev->host);
sdev              235 drivers/scsi/cxlflash/lunmgt.c 	u32 chan = sdev->channel;
sdev              238 drivers/scsi/cxlflash/lunmgt.c 	lli = find_and_create_lun(sdev, manage->wwid);
sdev              254 drivers/scsi/cxlflash/lunmgt.c 		lli->lun_id[chan] = lun_to_lunid(sdev->lun);
sdev              255 drivers/scsi/cxlflash/lunmgt.c 		sdev->hostdata = lli;
sdev              264 drivers/scsi/cxlflash/lunmgt.c 			sdev->hostdata = NULL;
sdev              463 drivers/scsi/cxlflash/main.c static int send_tmf(struct cxlflash_cfg *cfg, struct scsi_device *sdev,
sdev              501 drivers/scsi/cxlflash/main.c 	cmd->rcb.port_sel = CHAN2PORTMASK(sdev->channel);
sdev              502 drivers/scsi/cxlflash/main.c 	cmd->rcb.lun_id = lun_to_lunid(sdev->lun);
sdev             2478 drivers/scsi/cxlflash/main.c 	struct scsi_device *sdev = scp->device;
sdev             2479 drivers/scsi/cxlflash/main.c 	struct Scsi_Host *host = sdev->host;
sdev             2485 drivers/scsi/cxlflash/main.c 		host->host_no, sdev->channel, sdev->id, sdev->lun);
sdev             2489 drivers/scsi/cxlflash/main.c 		rcr = send_tmf(cfg, sdev, TMF_LUN_RESET);
sdev             2565 drivers/scsi/cxlflash/main.c static int cxlflash_change_queue_depth(struct scsi_device *sdev, int qdepth)
sdev             2571 drivers/scsi/cxlflash/main.c 	scsi_change_queue_depth(sdev, qdepth);
sdev             2572 drivers/scsi/cxlflash/main.c 	return sdev->queue_depth;
sdev             3111 drivers/scsi/cxlflash/main.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             3114 drivers/scsi/cxlflash/main.c 			 sdev->hostdata ? "superpipe" : "legacy");
sdev              330 drivers/scsi/cxlflash/superpipe.c static int read_cap16(struct scsi_device *sdev, struct llun_info *lli)
sdev              332 drivers/scsi/cxlflash/superpipe.c 	struct cxlflash_cfg *cfg = shost_priv(sdev->host);
sdev              360 drivers/scsi/cxlflash/superpipe.c 	result = scsi_execute(sdev, scsi_cmd, DMA_FROM_DEVICE, cmd_buf,
sdev              630 drivers/scsi/cxlflash/superpipe.c int _cxlflash_disk_release(struct scsi_device *sdev,
sdev              634 drivers/scsi/cxlflash/superpipe.c 	struct cxlflash_cfg *cfg = shost_priv(sdev->host);
sdev              636 drivers/scsi/cxlflash/superpipe.c 	struct llun_info *lli = sdev->hostdata;
sdev              686 drivers/scsi/cxlflash/superpipe.c 		rc = _cxlflash_vlun_resize(sdev, ctxi, &size);
sdev              732 drivers/scsi/cxlflash/superpipe.c int cxlflash_disk_release(struct scsi_device *sdev,
sdev              735 drivers/scsi/cxlflash/superpipe.c 	return _cxlflash_disk_release(sdev, NULL, release);
sdev              890 drivers/scsi/cxlflash/superpipe.c static int _cxlflash_disk_detach(struct scsi_device *sdev,
sdev              894 drivers/scsi/cxlflash/superpipe.c 	struct cxlflash_cfg *cfg = shost_priv(sdev->host);
sdev              896 drivers/scsi/cxlflash/superpipe.c 	struct llun_info *lli = sdev->hostdata;
sdev              926 drivers/scsi/cxlflash/superpipe.c 				_cxlflash_disk_release(sdev, ctxi, &rel);
sdev              950 drivers/scsi/cxlflash/superpipe.c 	scsi_device_put(sdev);
sdev              958 drivers/scsi/cxlflash/superpipe.c static int cxlflash_disk_detach(struct scsi_device *sdev,
sdev              961 drivers/scsi/cxlflash/superpipe.c 	return _cxlflash_disk_detach(sdev, NULL, detach);
sdev             1029 drivers/scsi/cxlflash/superpipe.c 		_cxlflash_disk_detach(lun_access->sdev, ctxi, &detach);
sdev             1317 drivers/scsi/cxlflash/superpipe.c static int cxlflash_disk_attach(struct scsi_device *sdev,
sdev             1320 drivers/scsi/cxlflash/superpipe.c 	struct cxlflash_cfg *cfg = shost_priv(sdev->host);
sdev             1323 drivers/scsi/cxlflash/superpipe.c 	struct llun_info *lli = sdev->hostdata;
sdev             1348 drivers/scsi/cxlflash/superpipe.c 			__func__, lli->lun_id[sdev->channel]);
sdev             1349 drivers/scsi/cxlflash/superpipe.c 		rc = read_cap16(sdev, lli);
sdev             1379 drivers/scsi/cxlflash/superpipe.c 	rc = scsi_device_get(sdev);
sdev             1393 drivers/scsi/cxlflash/superpipe.c 	lun_access->sdev = sdev;
sdev             1477 drivers/scsi/cxlflash/superpipe.c 	attach->max_xfer = sdev->host->max_sectors * MAX_SECTOR_UNIT;
sdev             1520 drivers/scsi/cxlflash/superpipe.c 	scsi_device_put(sdev);
sdev             1651 drivers/scsi/cxlflash/superpipe.c static int cxlflash_afu_recover(struct scsi_device *sdev,
sdev             1654 drivers/scsi/cxlflash/superpipe.c 	struct cxlflash_cfg *cfg = shost_priv(sdev->host);
sdev             1656 drivers/scsi/cxlflash/superpipe.c 	struct llun_info *lli = sdev->hostdata;
sdev             1772 drivers/scsi/cxlflash/superpipe.c static int process_sense(struct scsi_device *sdev,
sdev             1775 drivers/scsi/cxlflash/superpipe.c 	struct cxlflash_cfg *cfg = shost_priv(sdev->host);
sdev             1777 drivers/scsi/cxlflash/superpipe.c 	struct llun_info *lli = sdev->hostdata;
sdev             1802 drivers/scsi/cxlflash/superpipe.c 			rc = read_cap16(sdev, lli);
sdev             1837 drivers/scsi/cxlflash/superpipe.c static int cxlflash_disk_verify(struct scsi_device *sdev,
sdev             1842 drivers/scsi/cxlflash/superpipe.c 	struct cxlflash_cfg *cfg = shost_priv(sdev->host);
sdev             1844 drivers/scsi/cxlflash/superpipe.c 	struct llun_info *lli = sdev->hostdata;
sdev             1881 drivers/scsi/cxlflash/superpipe.c 		rc = process_sense(sdev, verify);
sdev             1962 drivers/scsi/cxlflash/superpipe.c static int cxlflash_disk_direct_open(struct scsi_device *sdev, void *arg)
sdev             1964 drivers/scsi/cxlflash/superpipe.c 	struct cxlflash_cfg *cfg = shost_priv(sdev->host);
sdev             1967 drivers/scsi/cxlflash/superpipe.c 	struct llun_info *lli = sdev->hostdata;
sdev             1978 drivers/scsi/cxlflash/superpipe.c 	u32 port = CHAN2PORTMASK(sdev->channel);
sdev             2010 drivers/scsi/cxlflash/superpipe.c 	rht_format1(rhte, lli->lun_id[sdev->channel], ctxi->rht_perms, port);
sdev             2032 drivers/scsi/cxlflash/superpipe.c 	_cxlflash_disk_release(sdev, ctxi, &rel);
sdev             2050 drivers/scsi/cxlflash/superpipe.c static int ioctl_common(struct scsi_device *sdev, unsigned int cmd)
sdev             2052 drivers/scsi/cxlflash/superpipe.c 	struct cxlflash_cfg *cfg = shost_priv(sdev->host);
sdev             2054 drivers/scsi/cxlflash/superpipe.c 	struct llun_info *lli = sdev->hostdata;
sdev             2095 drivers/scsi/cxlflash/superpipe.c int cxlflash_ioctl(struct scsi_device *sdev, unsigned int cmd, void __user *arg)
sdev             2099 drivers/scsi/cxlflash/superpipe.c 	struct cxlflash_cfg *cfg = shost_priv(sdev->host);
sdev             2108 drivers/scsi/cxlflash/superpipe.c 	struct Scsi_Host *shost = sdev->host;
sdev             2155 drivers/scsi/cxlflash/superpipe.c 			sdev->channel, sdev->id, sdev->lun);
sdev             2156 drivers/scsi/cxlflash/superpipe.c 		rc = ioctl_common(sdev, cmd);
sdev             2198 drivers/scsi/cxlflash/superpipe.c 	rc = do_ioctl(sdev, (void *)&buf);
sdev             2214 drivers/scsi/cxlflash/superpipe.c 			sdev->channel, sdev->id, sdev->lun, rc);
sdev             2218 drivers/scsi/cxlflash/superpipe.c 			cmd, shost->host_no, sdev->channel, sdev->id,
sdev             2219 drivers/scsi/cxlflash/superpipe.c 			sdev->lun, rc);
sdev               64 drivers/scsi/cxlflash/superpipe.h 	struct scsi_device *sdev;
sdev               70 drivers/scsi/cxlflash/superpipe.h 	struct scsi_device *sdev;
sdev              117 drivers/scsi/cxlflash/superpipe.h int cxlflash_vlun_resize(struct scsi_device *sdev,
sdev              119 drivers/scsi/cxlflash/superpipe.h int _cxlflash_vlun_resize(struct scsi_device *sdev, struct ctx_info *ctxi,
sdev              122 drivers/scsi/cxlflash/superpipe.h int cxlflash_disk_release(struct scsi_device *sdev,
sdev              124 drivers/scsi/cxlflash/superpipe.h int _cxlflash_disk_release(struct scsi_device *sdev, struct ctx_info *ctxi,
sdev              127 drivers/scsi/cxlflash/superpipe.h int cxlflash_disk_clone(struct scsi_device *sdev,
sdev              130 drivers/scsi/cxlflash/superpipe.h int cxlflash_disk_virtual_open(struct scsi_device *sdev, void *arg);
sdev              148 drivers/scsi/cxlflash/superpipe.h int cxlflash_manage_lun(struct scsi_device *sdev,
sdev              419 drivers/scsi/cxlflash/vlun.c static int write_same16(struct scsi_device *sdev,
sdev              429 drivers/scsi/cxlflash/vlun.c 	struct cxlflash_cfg *cfg = shost_priv(sdev->host);
sdev              431 drivers/scsi/cxlflash/vlun.c 	const u32 s = ilog2(sdev->sector_size) - 9;
sdev              432 drivers/scsi/cxlflash/vlun.c 	const u32 to = sdev->request_queue->rq_timeout;
sdev              433 drivers/scsi/cxlflash/vlun.c 	const u32 ws_limit = blk_queue_get_max_sectors(sdev->request_queue,
sdev              453 drivers/scsi/cxlflash/vlun.c 		result = scsi_execute(sdev, scsi_cmd, DMA_TO_DEVICE, cmd_buf,
sdev              501 drivers/scsi/cxlflash/vlun.c 		    struct scsi_device *sdev,
sdev              507 drivers/scsi/cxlflash/vlun.c 	struct cxlflash_cfg *cfg = shost_priv(sdev->host);
sdev              510 drivers/scsi/cxlflash/vlun.c 	struct llun_info *lli = sdev->hostdata;
sdev              619 drivers/scsi/cxlflash/vlun.c 		      struct scsi_device *sdev,
sdev              625 drivers/scsi/cxlflash/vlun.c 	struct cxlflash_cfg *cfg = shost_priv(sdev->host);
sdev              628 drivers/scsi/cxlflash/vlun.c 	struct llun_info *lli = sdev->hostdata;
sdev              695 drivers/scsi/cxlflash/vlun.c 			write_same16(sdev, aun, MC_CHUNK_SIZE);
sdev              729 drivers/scsi/cxlflash/vlun.c int _cxlflash_vlun_resize(struct scsi_device *sdev,
sdev              733 drivers/scsi/cxlflash/vlun.c 	struct cxlflash_cfg *cfg = shost_priv(sdev->host);
sdev              735 drivers/scsi/cxlflash/vlun.c 	struct llun_info *lli = sdev->hostdata;
sdev              790 drivers/scsi/cxlflash/vlun.c 		rc = grow_lxt(afu, sdev, ctxid, rhndl, rhte, &new_size);
sdev              792 drivers/scsi/cxlflash/vlun.c 		rc = shrink_lxt(afu, sdev, rhndl, rhte, ctxi, &new_size);
sdev              822 drivers/scsi/cxlflash/vlun.c int cxlflash_vlun_resize(struct scsi_device *sdev,
sdev              825 drivers/scsi/cxlflash/vlun.c 	return _cxlflash_vlun_resize(sdev, NULL, resize);
sdev              973 drivers/scsi/cxlflash/vlun.c int cxlflash_disk_virtual_open(struct scsi_device *sdev, void *arg)
sdev              975 drivers/scsi/cxlflash/vlun.c 	struct cxlflash_cfg *cfg = shost_priv(sdev->host);
sdev              977 drivers/scsi/cxlflash/vlun.c 	struct llun_info *lli = sdev->hostdata;
sdev             1045 drivers/scsi/cxlflash/vlun.c 	rc = _cxlflash_vlun_resize(sdev, ctxi, &resize);
sdev             1190 drivers/scsi/cxlflash/vlun.c int cxlflash_disk_clone(struct scsi_device *sdev,
sdev             1193 drivers/scsi/cxlflash/vlun.c 	struct cxlflash_cfg *cfg = shost_priv(sdev->host);
sdev             1195 drivers/scsi/cxlflash/vlun.c 	struct llun_info *lli = sdev->hostdata;
sdev             1250 drivers/scsi/cxlflash/vlun.c 			if (lun_access_dst->sdev == lun_access_src->sdev) {
sdev             1309 drivers/scsi/cxlflash/vlun.c 				_cxlflash_disk_release(sdev, ctxi_dst,
sdev             1059 drivers/scsi/dc395x.c static int dc395x_bios_param(struct scsi_device *sdev,
sdev             1068 drivers/scsi/dc395x.c 	acb = (struct AdapterCtlBlk *)sdev->host->hostdata;
sdev               88 drivers/scsi/device_handler/scsi_dh_alua.c 	struct scsi_device	*sdev;
sdev              104 drivers/scsi/device_handler/scsi_dh_alua.c 			    struct scsi_device *sdev,
sdev              106 drivers/scsi/device_handler/scsi_dh_alua.c static void alua_check(struct scsi_device *sdev, bool force);
sdev              125 drivers/scsi/device_handler/scsi_dh_alua.c static int submit_rtpg(struct scsi_device *sdev, unsigned char *buff,
sdev              141 drivers/scsi/device_handler/scsi_dh_alua.c 	return scsi_execute(sdev, cdb, DMA_FROM_DEVICE, buff, bufflen, NULL,
sdev              153 drivers/scsi/device_handler/scsi_dh_alua.c static int submit_stpg(struct scsi_device *sdev, int group_id,
sdev              173 drivers/scsi/device_handler/scsi_dh_alua.c 	return scsi_execute(sdev, cdb, DMA_TO_DEVICE, stpg_data, stpg_len, NULL,
sdev              210 drivers/scsi/device_handler/scsi_dh_alua.c static struct alua_port_group *alua_alloc_pg(struct scsi_device *sdev,
sdev              219 drivers/scsi/device_handler/scsi_dh_alua.c 	pg->device_id_len = scsi_vpd_lun_id(sdev, pg->device_id_str,
sdev              226 drivers/scsi/device_handler/scsi_dh_alua.c 		sdev_printk(KERN_INFO, sdev,
sdev              267 drivers/scsi/device_handler/scsi_dh_alua.c static int alua_check_tpgs(struct scsi_device *sdev)
sdev              275 drivers/scsi/device_handler/scsi_dh_alua.c 	if (sdev->type != TYPE_DISK) {
sdev              276 drivers/scsi/device_handler/scsi_dh_alua.c 		sdev_printk(KERN_INFO, sdev,
sdev              282 drivers/scsi/device_handler/scsi_dh_alua.c 	tpgs = scsi_device_tpgs(sdev);
sdev              285 drivers/scsi/device_handler/scsi_dh_alua.c 		sdev_printk(KERN_INFO, sdev,
sdev              290 drivers/scsi/device_handler/scsi_dh_alua.c 		sdev_printk(KERN_INFO, sdev, "%s: supports explicit TPGS\n",
sdev              294 drivers/scsi/device_handler/scsi_dh_alua.c 		sdev_printk(KERN_INFO, sdev, "%s: supports implicit TPGS\n",
sdev              298 drivers/scsi/device_handler/scsi_dh_alua.c 		sdev_printk(KERN_INFO, sdev, "%s: not supported\n",
sdev              302 drivers/scsi/device_handler/scsi_dh_alua.c 		sdev_printk(KERN_INFO, sdev,
sdev              319 drivers/scsi/device_handler/scsi_dh_alua.c static int alua_check_vpd(struct scsi_device *sdev, struct alua_dh_data *h,
sdev              327 drivers/scsi/device_handler/scsi_dh_alua.c 	group_id = scsi_vpd_tpg_id(sdev, &rel_port);
sdev              334 drivers/scsi/device_handler/scsi_dh_alua.c 		sdev_printk(KERN_INFO, sdev,
sdev              340 drivers/scsi/device_handler/scsi_dh_alua.c 	pg = alua_alloc_pg(sdev, group_id, tpgs);
sdev              347 drivers/scsi/device_handler/scsi_dh_alua.c 		sdev_printk(KERN_INFO, sdev,
sdev              352 drivers/scsi/device_handler/scsi_dh_alua.c 		sdev_printk(KERN_INFO, sdev,
sdev              377 drivers/scsi/device_handler/scsi_dh_alua.c 			sdev, NULL, true);
sdev              408 drivers/scsi/device_handler/scsi_dh_alua.c static int alua_check_sense(struct scsi_device *sdev,
sdev              417 drivers/scsi/device_handler/scsi_dh_alua.c 			alua_check(sdev, false);
sdev              428 drivers/scsi/device_handler/scsi_dh_alua.c 			alua_check(sdev, true);
sdev              445 drivers/scsi/device_handler/scsi_dh_alua.c 			alua_check(sdev, true);
sdev              452 drivers/scsi/device_handler/scsi_dh_alua.c 			alua_check(sdev, true);
sdev              481 drivers/scsi/device_handler/scsi_dh_alua.c static int alua_tur(struct scsi_device *sdev)
sdev              486 drivers/scsi/device_handler/scsi_dh_alua.c 	retval = scsi_test_unit_ready(sdev, ALUA_FAILOVER_TIMEOUT * HZ,
sdev              505 drivers/scsi/device_handler/scsi_dh_alua.c static int alua_rtpg(struct scsi_device *sdev, struct alua_port_group *pg)
sdev              532 drivers/scsi/device_handler/scsi_dh_alua.c 	retval = submit_rtpg(sdev, buff, bufflen, &sense_hdr, pg->flags);
sdev              545 drivers/scsi/device_handler/scsi_dh_alua.c 			sdev_printk(KERN_INFO, sdev,
sdev              552 drivers/scsi/device_handler/scsi_dh_alua.c 			sdev_printk(KERN_INFO, sdev,
sdev              592 drivers/scsi/device_handler/scsi_dh_alua.c 			sdev_printk(KERN_ERR, sdev, "%s: rtpg retry\n",
sdev              594 drivers/scsi/device_handler/scsi_dh_alua.c 			scsi_print_sense_hdr(sdev, ALUA_DH_NAME, &sense_hdr);
sdev              598 drivers/scsi/device_handler/scsi_dh_alua.c 		sdev_printk(KERN_ERR, sdev, "%s: rtpg failed\n",
sdev              600 drivers/scsi/device_handler/scsi_dh_alua.c 		scsi_print_sense_hdr(sdev, ALUA_DH_NAME, &sense_hdr);
sdev              614 drivers/scsi/device_handler/scsi_dh_alua.c 			sdev_printk(KERN_WARNING, sdev,
sdev              630 drivers/scsi/device_handler/scsi_dh_alua.c 		sdev_printk(KERN_INFO, sdev,
sdev              662 drivers/scsi/device_handler/scsi_dh_alua.c 						BUG_ON(!h->sdev);
sdev              663 drivers/scsi/device_handler/scsi_dh_alua.c 						h->sdev->access_state = desc[0];
sdev              681 drivers/scsi/device_handler/scsi_dh_alua.c 	sdev_printk(KERN_INFO, sdev,
sdev              708 drivers/scsi/device_handler/scsi_dh_alua.c 				BUG_ON(!h->sdev);
sdev              709 drivers/scsi/device_handler/scsi_dh_alua.c 				h->sdev->access_state =
sdev              712 drivers/scsi/device_handler/scsi_dh_alua.c 					h->sdev->access_state |=
sdev              742 drivers/scsi/device_handler/scsi_dh_alua.c static unsigned alua_stpg(struct scsi_device *sdev, struct alua_port_group *pg)
sdev              768 drivers/scsi/device_handler/scsi_dh_alua.c 		sdev_printk(KERN_INFO, sdev,
sdev              773 drivers/scsi/device_handler/scsi_dh_alua.c 	retval = submit_stpg(sdev, pg->group_id, &sense_hdr);
sdev              777 drivers/scsi/device_handler/scsi_dh_alua.c 			sdev_printk(KERN_INFO, sdev,
sdev              783 drivers/scsi/device_handler/scsi_dh_alua.c 			sdev_printk(KERN_INFO, sdev, "%s: stpg failed\n",
sdev              785 drivers/scsi/device_handler/scsi_dh_alua.c 			scsi_print_sense_hdr(sdev, ALUA_DH_NAME, &sense_hdr);
sdev              796 drivers/scsi/device_handler/scsi_dh_alua.c 	struct scsi_device *sdev;
sdev              803 drivers/scsi/device_handler/scsi_dh_alua.c 	sdev = pg->rtpg_sdev;
sdev              804 drivers/scsi/device_handler/scsi_dh_alua.c 	if (!sdev) {
sdev              818 drivers/scsi/device_handler/scsi_dh_alua.c 			if (alua_tur(sdev) == SCSI_DH_RETRY) {
sdev              831 drivers/scsi/device_handler/scsi_dh_alua.c 		err = alua_rtpg(sdev, pg);
sdev              849 drivers/scsi/device_handler/scsi_dh_alua.c 		err = alua_stpg(sdev, pg);
sdev              875 drivers/scsi/device_handler/scsi_dh_alua.c 	scsi_device_put(sdev);
sdev              891 drivers/scsi/device_handler/scsi_dh_alua.c 			    struct scsi_device *sdev,
sdev              896 drivers/scsi/device_handler/scsi_dh_alua.c 	if (WARN_ON_ONCE(!pg) || scsi_device_get(sdev))
sdev              909 drivers/scsi/device_handler/scsi_dh_alua.c 		pg->rtpg_sdev = sdev;
sdev              925 drivers/scsi/device_handler/scsi_dh_alua.c 			sdev = NULL;
sdev              929 drivers/scsi/device_handler/scsi_dh_alua.c 	if (sdev)
sdev              930 drivers/scsi/device_handler/scsi_dh_alua.c 		scsi_device_put(sdev);
sdev              942 drivers/scsi/device_handler/scsi_dh_alua.c static int alua_initialize(struct scsi_device *sdev, struct alua_dh_data *h)
sdev              947 drivers/scsi/device_handler/scsi_dh_alua.c 	tpgs = alua_check_tpgs(sdev);
sdev              949 drivers/scsi/device_handler/scsi_dh_alua.c 		err = alua_check_vpd(sdev, h, tpgs);
sdev              963 drivers/scsi/device_handler/scsi_dh_alua.c static int alua_set_params(struct scsi_device *sdev, const char *params)
sdev              965 drivers/scsi/device_handler/scsi_dh_alua.c 	struct alua_dh_data *h = sdev->handler_data;
sdev             1007 drivers/scsi/device_handler/scsi_dh_alua.c static int alua_activate(struct scsi_device *sdev,
sdev             1010 drivers/scsi/device_handler/scsi_dh_alua.c 	struct alua_dh_data *h = sdev->handler_data;
sdev             1036 drivers/scsi/device_handler/scsi_dh_alua.c 	if (alua_rtpg_queue(pg, sdev, qdata, true))
sdev             1053 drivers/scsi/device_handler/scsi_dh_alua.c static void alua_check(struct scsi_device *sdev, bool force)
sdev             1055 drivers/scsi/device_handler/scsi_dh_alua.c 	struct alua_dh_data *h = sdev->handler_data;
sdev             1066 drivers/scsi/device_handler/scsi_dh_alua.c 	alua_rtpg_queue(pg, sdev, NULL, force);
sdev             1076 drivers/scsi/device_handler/scsi_dh_alua.c static blk_status_t alua_prep_fn(struct scsi_device *sdev, struct request *req)
sdev             1078 drivers/scsi/device_handler/scsi_dh_alua.c 	struct alua_dh_data *h = sdev->handler_data;
sdev             1101 drivers/scsi/device_handler/scsi_dh_alua.c static void alua_rescan(struct scsi_device *sdev)
sdev             1103 drivers/scsi/device_handler/scsi_dh_alua.c 	struct alua_dh_data *h = sdev->handler_data;
sdev             1105 drivers/scsi/device_handler/scsi_dh_alua.c 	alua_initialize(sdev, h);
sdev             1112 drivers/scsi/device_handler/scsi_dh_alua.c static int alua_bus_attach(struct scsi_device *sdev)
sdev             1123 drivers/scsi/device_handler/scsi_dh_alua.c 	h->sdev = sdev;
sdev             1127 drivers/scsi/device_handler/scsi_dh_alua.c 	err = alua_initialize(sdev, h);
sdev             1131 drivers/scsi/device_handler/scsi_dh_alua.c 	sdev->handler_data = h;
sdev             1142 drivers/scsi/device_handler/scsi_dh_alua.c static void alua_bus_detach(struct scsi_device *sdev)
sdev             1144 drivers/scsi/device_handler/scsi_dh_alua.c 	struct alua_dh_data *h = sdev->handler_data;
sdev             1150 drivers/scsi/device_handler/scsi_dh_alua.c 	h->sdev = NULL;
sdev             1158 drivers/scsi/device_handler/scsi_dh_alua.c 	sdev->handler_data = NULL;
sdev              100 drivers/scsi/device_handler/scsi_dh_emc.c static int trespass_endio(struct scsi_device *sdev,
sdev              105 drivers/scsi/device_handler/scsi_dh_emc.c 	sdev_printk(KERN_ERR, sdev, "%s: Found valid sense data 0x%2x, "
sdev              116 drivers/scsi/device_handler/scsi_dh_emc.c 		sdev_printk(KERN_INFO, sdev, "%s: Array Based Copy in "
sdev              126 drivers/scsi/device_handler/scsi_dh_emc.c 		sdev_printk(KERN_INFO, sdev, "%s: Detected in-progress "
sdev              135 drivers/scsi/device_handler/scsi_dh_emc.c static int parse_sp_info_reply(struct scsi_device *sdev,
sdev              142 drivers/scsi/device_handler/scsi_dh_emc.c 		sdev_printk(KERN_NOTICE, sdev, "%s: Detected in-progress "
sdev              150 drivers/scsi/device_handler/scsi_dh_emc.c 		sdev_printk(KERN_NOTICE, sdev,
sdev              158 drivers/scsi/device_handler/scsi_dh_emc.c 		sdev_printk(KERN_NOTICE, sdev,
sdev              166 drivers/scsi/device_handler/scsi_dh_emc.c 		sdev_printk(KERN_WARNING, sdev,
sdev              178 drivers/scsi/device_handler/scsi_dh_emc.c 		sdev->access_state = SCSI_ACCESS_STATE_OPTIMAL;
sdev              180 drivers/scsi/device_handler/scsi_dh_emc.c 		sdev->access_state = SCSI_ACCESS_STATE_STANDBY;
sdev              182 drivers/scsi/device_handler/scsi_dh_emc.c 		sdev->access_state |= SCSI_ACCESS_STATE_PREFERRED;
sdev              189 drivers/scsi/device_handler/scsi_dh_emc.c static char * parse_sp_model(struct scsi_device *sdev, unsigned char *buffer)
sdev              196 drivers/scsi/device_handler/scsi_dh_emc.c 		sdev_printk(KERN_WARNING, sdev,
sdev              212 drivers/scsi/device_handler/scsi_dh_emc.c 		sdev_printk(KERN_WARNING, sdev,
sdev              219 drivers/scsi/device_handler/scsi_dh_emc.c 		sdev_printk(KERN_WARNING, sdev,
sdev              235 drivers/scsi/device_handler/scsi_dh_emc.c static int send_trespass_cmd(struct scsi_device *sdev,
sdev              266 drivers/scsi/device_handler/scsi_dh_emc.c 	err = scsi_execute(sdev, cdb, DMA_TO_DEVICE, csdev->buffer, len, NULL,
sdev              271 drivers/scsi/device_handler/scsi_dh_emc.c 			res = trespass_endio(sdev, &sshdr);
sdev              273 drivers/scsi/device_handler/scsi_dh_emc.c 			sdev_printk(KERN_INFO, sdev,
sdev              283 drivers/scsi/device_handler/scsi_dh_emc.c static int clariion_check_sense(struct scsi_device *sdev,
sdev              331 drivers/scsi/device_handler/scsi_dh_emc.c static blk_status_t clariion_prep_fn(struct scsi_device *sdev,
sdev              334 drivers/scsi/device_handler/scsi_dh_emc.c 	struct clariion_dh_data *h = sdev->handler_data;
sdev              344 drivers/scsi/device_handler/scsi_dh_emc.c static int clariion_std_inquiry(struct scsi_device *sdev,
sdev              350 drivers/scsi/device_handler/scsi_dh_emc.c 	sp_model = parse_sp_model(sdev, sdev->inquiry);
sdev              362 drivers/scsi/device_handler/scsi_dh_emc.c 	sdev_printk(KERN_INFO, sdev,
sdev              369 drivers/scsi/device_handler/scsi_dh_emc.c static int clariion_send_inquiry(struct scsi_device *sdev,
sdev              374 drivers/scsi/device_handler/scsi_dh_emc.c 	if (!scsi_get_vpd_page(sdev, 0xC0, csdev->buffer,
sdev              376 drivers/scsi/device_handler/scsi_dh_emc.c 		err = parse_sp_info_reply(sdev, csdev);
sdev              381 drivers/scsi/device_handler/scsi_dh_emc.c static int clariion_activate(struct scsi_device *sdev,
sdev              384 drivers/scsi/device_handler/scsi_dh_emc.c 	struct clariion_dh_data *csdev = sdev->handler_data;
sdev              387 drivers/scsi/device_handler/scsi_dh_emc.c 	result = clariion_send_inquiry(sdev, csdev);
sdev              394 drivers/scsi/device_handler/scsi_dh_emc.c 	result = send_trespass_cmd(sdev, csdev);
sdev              397 drivers/scsi/device_handler/scsi_dh_emc.c 	sdev_printk(KERN_INFO, sdev,"%s: %s trespass command sent\n",
sdev              402 drivers/scsi/device_handler/scsi_dh_emc.c 	result = clariion_send_inquiry(sdev, csdev);
sdev              407 drivers/scsi/device_handler/scsi_dh_emc.c 	sdev_printk(KERN_INFO, sdev,
sdev              423 drivers/scsi/device_handler/scsi_dh_emc.c static int clariion_set_params(struct scsi_device *sdev, const char *params)
sdev              425 drivers/scsi/device_handler/scsi_dh_emc.c 	struct clariion_dh_data *csdev = sdev->handler_data;
sdev              462 drivers/scsi/device_handler/scsi_dh_emc.c 	result = send_trespass_cmd(sdev, csdev);
sdev              467 drivers/scsi/device_handler/scsi_dh_emc.c 	result = clariion_send_inquiry(sdev, csdev);
sdev              473 drivers/scsi/device_handler/scsi_dh_emc.c static int clariion_bus_attach(struct scsi_device *sdev)
sdev              485 drivers/scsi/device_handler/scsi_dh_emc.c 	err = clariion_std_inquiry(sdev, h);
sdev              489 drivers/scsi/device_handler/scsi_dh_emc.c 	err = clariion_send_inquiry(sdev, h);
sdev              493 drivers/scsi/device_handler/scsi_dh_emc.c 	sdev_printk(KERN_INFO, sdev,
sdev              499 drivers/scsi/device_handler/scsi_dh_emc.c 	sdev->handler_data = h;
sdev              507 drivers/scsi/device_handler/scsi_dh_emc.c static void clariion_bus_detach(struct scsi_device *sdev)
sdev              509 drivers/scsi/device_handler/scsi_dh_emc.c 	kfree(sdev->handler_data);
sdev              510 drivers/scsi/device_handler/scsi_dh_emc.c 	sdev->handler_data = NULL;
sdev               31 drivers/scsi/device_handler/scsi_dh_hp_sw.c 	struct scsi_device *sdev;
sdev               43 drivers/scsi/device_handler/scsi_dh_hp_sw.c static int tur_done(struct scsi_device *sdev, struct hp_sw_dh_data *h,
sdev               65 drivers/scsi/device_handler/scsi_dh_hp_sw.c 		sdev_printk(KERN_WARNING, sdev,
sdev               81 drivers/scsi/device_handler/scsi_dh_hp_sw.c static int hp_sw_tur(struct scsi_device *sdev, struct hp_sw_dh_data *h)
sdev               90 drivers/scsi/device_handler/scsi_dh_hp_sw.c 	res = scsi_execute(sdev, cmd, DMA_NONE, NULL, 0, NULL, &sshdr,
sdev               94 drivers/scsi/device_handler/scsi_dh_hp_sw.c 			ret = tur_done(sdev, h, &sshdr);
sdev               96 drivers/scsi/device_handler/scsi_dh_hp_sw.c 			sdev_printk(KERN_WARNING, sdev,
sdev              121 drivers/scsi/device_handler/scsi_dh_hp_sw.c 	struct scsi_device *sdev = h->sdev;
sdev              128 drivers/scsi/device_handler/scsi_dh_hp_sw.c 	res = scsi_execute(sdev, cmd, DMA_NONE, NULL, 0, NULL, &sshdr,
sdev              132 drivers/scsi/device_handler/scsi_dh_hp_sw.c 			sdev_printk(KERN_WARNING, sdev,
sdev              152 drivers/scsi/device_handler/scsi_dh_hp_sw.c 			sdev_printk(KERN_WARNING, sdev,
sdev              162 drivers/scsi/device_handler/scsi_dh_hp_sw.c static blk_status_t hp_sw_prep_fn(struct scsi_device *sdev, struct request *req)
sdev              164 drivers/scsi/device_handler/scsi_dh_hp_sw.c 	struct hp_sw_dh_data *h = sdev->handler_data;
sdev              184 drivers/scsi/device_handler/scsi_dh_hp_sw.c static int hp_sw_activate(struct scsi_device *sdev,
sdev              188 drivers/scsi/device_handler/scsi_dh_hp_sw.c 	struct hp_sw_dh_data *h = sdev->handler_data;
sdev              190 drivers/scsi/device_handler/scsi_dh_hp_sw.c 	ret = hp_sw_tur(sdev, h);
sdev              200 drivers/scsi/device_handler/scsi_dh_hp_sw.c static int hp_sw_bus_attach(struct scsi_device *sdev)
sdev              210 drivers/scsi/device_handler/scsi_dh_hp_sw.c 	h->sdev = sdev;
sdev              212 drivers/scsi/device_handler/scsi_dh_hp_sw.c 	ret = hp_sw_tur(sdev, h);
sdev              220 drivers/scsi/device_handler/scsi_dh_hp_sw.c 	sdev_printk(KERN_INFO, sdev, "%s: attached to %s path\n",
sdev              224 drivers/scsi/device_handler/scsi_dh_hp_sw.c 	sdev->handler_data = h;
sdev              231 drivers/scsi/device_handler/scsi_dh_hp_sw.c static void hp_sw_bus_detach( struct scsi_device *sdev )
sdev              233 drivers/scsi/device_handler/scsi_dh_hp_sw.c 	kfree(sdev->handler_data);
sdev              234 drivers/scsi/device_handler/scsi_dh_hp_sw.c 	sdev->handler_data = NULL;
sdev              187 drivers/scsi/device_handler/scsi_dh_rdac.c 	struct scsi_device	*sdev;
sdev              258 drivers/scsi/device_handler/scsi_dh_rdac.c #define RDAC_LOG(SHIFT, sdev, f, arg...) \
sdev              261 drivers/scsi/device_handler/scsi_dh_rdac.c 		sdev_printk(KERN_INFO, sdev, RDAC_NAME ": " f "\n", ## arg); \
sdev              327 drivers/scsi/device_handler/scsi_dh_rdac.c 			u8 *array_id, struct scsi_device *sdev)
sdev              334 drivers/scsi/device_handler/scsi_dh_rdac.c 			  (tmp->host == sdev->host)) {
sdev              346 drivers/scsi/device_handler/scsi_dh_rdac.c 	ctlr->host = sdev->host;
sdev              362 drivers/scsi/device_handler/scsi_dh_rdac.c static int get_lun_info(struct scsi_device *sdev, struct rdac_dh_data *h,
sdev              368 drivers/scsi/device_handler/scsi_dh_rdac.c 	if (!scsi_get_vpd_page(sdev, 0xC8, (unsigned char *)inqp,
sdev              388 drivers/scsi/device_handler/scsi_dh_rdac.c static int check_ownership(struct scsi_device *sdev, struct rdac_dh_data *h)
sdev              395 drivers/scsi/device_handler/scsi_dh_rdac.c 	if (!scsi_get_vpd_page(sdev, 0xC9, (unsigned char *)inqp,
sdev              427 drivers/scsi/device_handler/scsi_dh_rdac.c 			BUG_ON(!tmp->sdev);
sdev              428 drivers/scsi/device_handler/scsi_dh_rdac.c 			tmp->sdev->access_state = access_state;
sdev              437 drivers/scsi/device_handler/scsi_dh_rdac.c static int initialize_controller(struct scsi_device *sdev,
sdev              443 drivers/scsi/device_handler/scsi_dh_rdac.c 	if (!scsi_get_vpd_page(sdev, 0xC4, (unsigned char *)inqp,
sdev              452 drivers/scsi/device_handler/scsi_dh_rdac.c 		h->ctlr = get_controller(index, array_name, array_id, sdev);
sdev              457 drivers/scsi/device_handler/scsi_dh_rdac.c 			h->sdev = sdev;
sdev              465 drivers/scsi/device_handler/scsi_dh_rdac.c static int set_mode_select(struct scsi_device *sdev, struct rdac_dh_data *h)
sdev              470 drivers/scsi/device_handler/scsi_dh_rdac.c 	if (!scsi_get_vpd_page(sdev, 0xC2, (unsigned char *)inqp,
sdev              485 drivers/scsi/device_handler/scsi_dh_rdac.c static int mode_select_handle_sense(struct scsi_device *sdev,
sdev              489 drivers/scsi/device_handler/scsi_dh_rdac.c 	struct rdac_dh_data *h = sdev->handler_data;
sdev              518 drivers/scsi/device_handler/scsi_dh_rdac.c 	RDAC_LOG(RDAC_LOG_FAILOVER, sdev, "array %s, ctlr %d, "
sdev              531 drivers/scsi/device_handler/scsi_dh_rdac.c 	struct scsi_device *sdev = ctlr->ms_sdev;
sdev              532 drivers/scsi/device_handler/scsi_dh_rdac.c 	struct rdac_dh_data *h = sdev->handler_data;
sdev              553 drivers/scsi/device_handler/scsi_dh_rdac.c 	RDAC_LOG(RDAC_LOG_FAILOVER, sdev, "array %s, ctlr %d, "
sdev              558 drivers/scsi/device_handler/scsi_dh_rdac.c 	if (scsi_execute(sdev, cdb, DMA_TO_DEVICE, &h->ctlr->mode_select,
sdev              561 drivers/scsi/device_handler/scsi_dh_rdac.c 		err = mode_select_handle_sense(sdev, &sshdr);
sdev              569 drivers/scsi/device_handler/scsi_dh_rdac.c 		RDAC_LOG(RDAC_LOG_FAILOVER, sdev, "array %s, ctlr %d, "
sdev              585 drivers/scsi/device_handler/scsi_dh_rdac.c static int queue_mode_select(struct scsi_device *sdev,
sdev              595 drivers/scsi/device_handler/scsi_dh_rdac.c 	qdata->h = sdev->handler_data;
sdev              604 drivers/scsi/device_handler/scsi_dh_rdac.c 		ctlr->ms_sdev = sdev;
sdev              611 drivers/scsi/device_handler/scsi_dh_rdac.c static int rdac_activate(struct scsi_device *sdev,
sdev              614 drivers/scsi/device_handler/scsi_dh_rdac.c 	struct rdac_dh_data *h = sdev->handler_data;
sdev              618 drivers/scsi/device_handler/scsi_dh_rdac.c 	err = check_ownership(sdev, h);
sdev              637 drivers/scsi/device_handler/scsi_dh_rdac.c 		err = queue_mode_select(sdev, fn, data);
sdev              647 drivers/scsi/device_handler/scsi_dh_rdac.c static blk_status_t rdac_prep_fn(struct scsi_device *sdev, struct request *req)
sdev              649 drivers/scsi/device_handler/scsi_dh_rdac.c 	struct rdac_dh_data *h = sdev->handler_data;
sdev              659 drivers/scsi/device_handler/scsi_dh_rdac.c static int rdac_check_sense(struct scsi_device *sdev,
sdev              662 drivers/scsi/device_handler/scsi_dh_rdac.c 	struct rdac_dh_data *h = sdev->handler_data;
sdev              664 drivers/scsi/device_handler/scsi_dh_rdac.c 	RDAC_LOG(RDAC_LOG_SENSE, sdev, "array %s, ctlr %d, "
sdev              724 drivers/scsi/device_handler/scsi_dh_rdac.c static int rdac_bus_attach(struct scsi_device *sdev)
sdev              737 drivers/scsi/device_handler/scsi_dh_rdac.c 	err = get_lun_info(sdev, h, array_name, array_id);
sdev              741 drivers/scsi/device_handler/scsi_dh_rdac.c 	err = initialize_controller(sdev, h, array_name, array_id);
sdev              745 drivers/scsi/device_handler/scsi_dh_rdac.c 	err = check_ownership(sdev, h);
sdev              749 drivers/scsi/device_handler/scsi_dh_rdac.c 	err = set_mode_select(sdev, h);
sdev              753 drivers/scsi/device_handler/scsi_dh_rdac.c 	sdev_printk(KERN_NOTICE, sdev,
sdev              758 drivers/scsi/device_handler/scsi_dh_rdac.c 	sdev->handler_data = h;
sdev              771 drivers/scsi/device_handler/scsi_dh_rdac.c static void rdac_bus_detach( struct scsi_device *sdev )
sdev              773 drivers/scsi/device_handler/scsi_dh_rdac.c 	struct rdac_dh_data *h = sdev->handler_data;
sdev              781 drivers/scsi/device_handler/scsi_dh_rdac.c 		h->sdev = NULL;
sdev              785 drivers/scsi/device_handler/scsi_dh_rdac.c 	sdev->handler_data = NULL;
sdev              481 drivers/scsi/dpt_i2o.c static int adpt_bios_param(struct scsi_device *sdev, struct block_device *dev,
sdev              518 drivers/scsi/dpt_i2o.c 	if(sdev->type == 5) {  // CDROM
sdev               35 drivers/scsi/dpti.h static int adpt_bios_param(struct scsi_device * sdev, struct block_device *dev,
sdev              462 drivers/scsi/fdomain.c static int fdomain_biosparam(struct scsi_device *sdev,
sdev               99 drivers/scsi/fnic/fnic_main.c static int fnic_slave_alloc(struct scsi_device *sdev)
sdev              101 drivers/scsi/fnic/fnic_main.c 	struct fc_rport *rport = starget_to_rport(scsi_target(sdev));
sdev              106 drivers/scsi/fnic/fnic_main.c 	scsi_change_queue_depth(sdev, fnic_max_qdepth);
sdev              332 drivers/scsi/gdth.c int __gdth_execute(struct scsi_device *sdev, gdth_cmd_str *gdtcmd, char *cmnd,
sdev              335 drivers/scsi/gdth.c     gdth_ha_str *ha = shost_priv(sdev->host);
sdev              351 drivers/scsi/gdth.c     scp->device = sdev;
sdev              378 drivers/scsi/gdth.c     struct scsi_device *sdev = scsi_get_host_dev(shost);
sdev              379 drivers/scsi/gdth.c     int rval = __gdth_execute(sdev, gdtcmd, cmnd, timeout, info);
sdev              381 drivers/scsi/gdth.c     scsi_free_host_dev(sdev);
sdev             3359 drivers/scsi/gdth.c static int gdth_bios_param(struct scsi_device *sdev,struct block_device *bdev,sector_t cap,int *ip)
sdev             3362 drivers/scsi/gdth.c     gdth_ha_str *ha = shost_priv(sdev->host);
sdev             3366 drivers/scsi/gdth.c     sd = sdev;
sdev             3432 drivers/scsi/gdth.c         if (!ha->sdev)
sdev             3433 drivers/scsi/gdth.c             ha->sdev = scsi_get_host_dev(ha->shost);
sdev             3540 drivers/scsi/gdth.c     rval = __gdth_execute(ha->sdev, &cmd, cmnd, 30, NULL);
sdev             3672 drivers/scsi/gdth.c 	rval = __gdth_execute(ha->sdev, &gen.command, cmnd, gen.timeout,
sdev             3731 drivers/scsi/gdth.c             if (__gdth_execute(ha->sdev, cmd, cmnd, 30, &cluster_type) == S_OK)
sdev             3781 drivers/scsi/gdth.c         status = __gdth_execute(ha->sdev, cmd, cmnd, 30, &info);
sdev             3797 drivers/scsi/gdth.c         status = __gdth_execute(ha->sdev, cmd, cmnd, 30, &info);
sdev             3831 drivers/scsi/gdth.c         status = __gdth_execute(ha->sdev, cmd, cmnd, 30, &info);
sdev             3844 drivers/scsi/gdth.c         status = __gdth_execute(ha->sdev, cmd, cmnd, 30, &info);
sdev             3859 drivers/scsi/gdth.c         status = __gdth_execute(ha->sdev, cmd, cmnd, 30, &info);
sdev             3999 drivers/scsi/gdth.c         scp->device = ha->sdev;
sdev             4064 drivers/scsi/gdth.c static int gdth_slave_configure(struct scsi_device *sdev)
sdev             4066 drivers/scsi/gdth.c     sdev->skip_ms_page_3f = 1;
sdev             4067 drivers/scsi/gdth.c     sdev->skip_ms_page_8 = 1;
sdev             4229 drivers/scsi/gdth.c 	if (ha->sdev) {
sdev             4230 drivers/scsi/gdth.c 		scsi_free_host_dev(ha->sdev);
sdev             4231 drivers/scsi/gdth.c 		ha->sdev = NULL;
sdev              905 drivers/scsi/gdth.h     struct scsi_device         *sdev;
sdev              574 drivers/scsi/hisi_sas/hisi_sas.h extern int hisi_sas_slave_configure(struct scsi_device *sdev);
sdev              816 drivers/scsi/hisi_sas/hisi_sas_main.c int hisi_sas_slave_configure(struct scsi_device *sdev)
sdev              818 drivers/scsi/hisi_sas/hisi_sas_main.c 	struct domain_device *dev = sdev_to_domain_dev(sdev);
sdev              819 drivers/scsi/hisi_sas/hisi_sas_main.c 	int ret = sas_slave_configure(sdev);
sdev              824 drivers/scsi/hisi_sas/hisi_sas_main.c 		sas_change_queue_depth(sdev, 64);
sdev              279 drivers/scsi/hpsa.c static int hpsa_change_queue_depth(struct scsi_device *sdev, int qdepth);
sdev              282 drivers/scsi/hpsa.c static int hpsa_slave_alloc(struct scsi_device *sdev);
sdev              283 drivers/scsi/hpsa.c static int hpsa_slave_configure(struct scsi_device *sdev);
sdev              284 drivers/scsi/hpsa.c static void hpsa_slave_destroy(struct scsi_device *sdev);
sdev              331 drivers/scsi/hpsa.c static inline struct ctlr_info *sdev_to_hba(struct scsi_device *sdev)
sdev              333 drivers/scsi/hpsa.c 	unsigned long *priv = shost_priv(sdev->host);
sdev              667 drivers/scsi/hpsa.c 	struct scsi_device *sdev;
sdev              671 drivers/scsi/hpsa.c 	sdev = to_scsi_device(dev);
sdev              672 drivers/scsi/hpsa.c 	h = sdev_to_hba(sdev);
sdev              674 drivers/scsi/hpsa.c 	hdev = sdev->hostdata;
sdev              699 drivers/scsi/hpsa.c 	struct scsi_device *sdev;
sdev              704 drivers/scsi/hpsa.c 	sdev = to_scsi_device(dev);
sdev              705 drivers/scsi/hpsa.c 	h = sdev_to_hba(sdev);
sdev              707 drivers/scsi/hpsa.c 	hdev = sdev->hostdata;
sdev              721 drivers/scsi/hpsa.c 	struct scsi_device *sdev;
sdev              726 drivers/scsi/hpsa.c 	sdev = to_scsi_device(dev);
sdev              727 drivers/scsi/hpsa.c 	h = sdev_to_hba(sdev);
sdev              729 drivers/scsi/hpsa.c 	hdev = sdev->hostdata;
sdev              749 drivers/scsi/hpsa.c 	struct scsi_device *sdev;
sdev              754 drivers/scsi/hpsa.c 	sdev = to_scsi_device(dev);
sdev              755 drivers/scsi/hpsa.c 	h = sdev_to_hba(sdev);
sdev              757 drivers/scsi/hpsa.c 	hdev = sdev->hostdata;
sdev              772 drivers/scsi/hpsa.c 	struct scsi_device *sdev;
sdev              777 drivers/scsi/hpsa.c 	sdev = to_scsi_device(dev);
sdev              778 drivers/scsi/hpsa.c 	h = sdev_to_hba(sdev);
sdev              780 drivers/scsi/hpsa.c 	hdev = sdev->hostdata;
sdev              800 drivers/scsi/hpsa.c 	struct scsi_device *sdev;
sdev              811 drivers/scsi/hpsa.c 	sdev = to_scsi_device(dev);
sdev              812 drivers/scsi/hpsa.c 	h = sdev_to_hba(sdev);
sdev              814 drivers/scsi/hpsa.c 	hdev = sdev->hostdata;
sdev             1872 drivers/scsi/hpsa.c 	struct scsi_device *sdev = NULL;
sdev             1884 drivers/scsi/hpsa.c 		sdev = scsi_device_lookup(h->scsi_host, device->bus,
sdev             1886 drivers/scsi/hpsa.c 		if (sdev) {
sdev             1887 drivers/scsi/hpsa.c 			scsi_remove_device(sdev);
sdev             1888 drivers/scsi/hpsa.c 			scsi_device_put(sdev);
sdev             2094 drivers/scsi/hpsa.c static int hpsa_slave_alloc(struct scsi_device *sdev)
sdev             2100 drivers/scsi/hpsa.c 	h = sdev_to_hba(sdev);
sdev             2102 drivers/scsi/hpsa.c 	if (sdev_channel(sdev) == HPSA_PHYSICAL_DEVICE_BUS) {
sdev             2106 drivers/scsi/hpsa.c 		starget = scsi_target(sdev);
sdev             2110 drivers/scsi/hpsa.c 			sd->target = sdev_id(sdev);
sdev             2111 drivers/scsi/hpsa.c 			sd->lun = sdev->lun;
sdev             2115 drivers/scsi/hpsa.c 		sd = lookup_hpsa_scsi_dev(h, sdev_channel(sdev),
sdev             2116 drivers/scsi/hpsa.c 					sdev_id(sdev), sdev->lun);
sdev             2120 drivers/scsi/hpsa.c 		sdev->hostdata = sd;
sdev             2122 drivers/scsi/hpsa.c 		sdev->hostdata = NULL;
sdev             2128 drivers/scsi/hpsa.c static int hpsa_slave_configure(struct scsi_device *sdev)
sdev             2133 drivers/scsi/hpsa.c 	sd = sdev->hostdata;
sdev             2134 drivers/scsi/hpsa.c 	sdev->no_uld_attach = !sd || !sd->expose_device;
sdev             2140 drivers/scsi/hpsa.c 			sdev->eh_timeout = HPSA_EH_PTRAID_TIMEOUT;
sdev             2141 drivers/scsi/hpsa.c 			blk_queue_rq_timeout(sdev->request_queue,
sdev             2145 drivers/scsi/hpsa.c 					sd->queue_depth : sdev->host->can_queue;
sdev             2148 drivers/scsi/hpsa.c 		queue_depth = sdev->host->can_queue;
sdev             2150 drivers/scsi/hpsa.c 	scsi_change_queue_depth(sdev, queue_depth);
sdev             2155 drivers/scsi/hpsa.c static void hpsa_slave_destroy(struct scsi_device *sdev)
sdev             2159 drivers/scsi/hpsa.c 	hdev = sdev->hostdata;
sdev             5760 drivers/scsi/hpsa.c static int hpsa_change_queue_depth(struct scsi_device *sdev, int qdepth)
sdev             5762 drivers/scsi/hpsa.c 	struct hpsa_scsi_dev_t *logical_drive = sdev->hostdata;
sdev             5772 drivers/scsi/hpsa.c 	return scsi_change_queue_depth(sdev, qdepth);
sdev             1109 drivers/scsi/hptiop.c static int hptiop_adjust_disk_queue_depth(struct scsi_device *sdev,
sdev             1112 drivers/scsi/hptiop.c 	struct hptiop_hba *hba = (struct hptiop_hba *)sdev->host->hostdata;
sdev             1116 drivers/scsi/hptiop.c 	return scsi_change_queue_depth(sdev, queue_depth);
sdev             1160 drivers/scsi/hptiop.c static int hptiop_slave_config(struct scsi_device *sdev)
sdev             1162 drivers/scsi/hptiop.c 	if (sdev->type == TYPE_TAPE)
sdev             1163 drivers/scsi/hptiop.c 		blk_queue_max_hw_sectors(sdev->request_queue, 8192);
sdev             1495 drivers/scsi/ibmvscsi/ibmvfc.c static void ibmvfc_relogin(struct scsi_device *sdev)
sdev             1497 drivers/scsi/ibmvscsi/ibmvfc.c 	struct ibmvfc_host *vhost = shost_priv(sdev->host);
sdev             1498 drivers/scsi/ibmvscsi/ibmvfc.c 	struct fc_rport *rport = starget_to_rport(scsi_target(sdev));
sdev             1959 drivers/scsi/ibmvscsi/ibmvfc.c static int ibmvfc_reset_device(struct scsi_device *sdev, int type, char *desc)
sdev             1961 drivers/scsi/ibmvscsi/ibmvfc.c 	struct ibmvfc_host *vhost = shost_priv(sdev->host);
sdev             1962 drivers/scsi/ibmvscsi/ibmvfc.c 	struct fc_rport *rport = starget_to_rport(scsi_target(sdev));
sdev             1983 drivers/scsi/ibmvscsi/ibmvfc.c 		tmf->cancel_key = cpu_to_be32((unsigned long)sdev->hostdata);
sdev             1985 drivers/scsi/ibmvscsi/ibmvfc.c 		int_to_scsilun(sdev->lun, &tmf->iu.lun);
sdev             1996 drivers/scsi/ibmvscsi/ibmvfc.c 		sdev_printk(KERN_ERR, sdev, "Failed to send %s reset event. rc=%d\n",
sdev             2001 drivers/scsi/ibmvscsi/ibmvfc.c 	sdev_printk(KERN_INFO, sdev, "Resetting %s\n", desc);
sdev             2011 drivers/scsi/ibmvscsi/ibmvfc.c 		sdev_printk(KERN_ERR, sdev, "%s reset failed: %s (%x:%x) "
sdev             2018 drivers/scsi/ibmvscsi/ibmvfc.c 		sdev_printk(KERN_INFO, sdev, "%s reset successful\n", desc);
sdev             2142 drivers/scsi/ibmvscsi/ibmvfc.c static int ibmvfc_cancel_all(struct scsi_device *sdev, int type)
sdev             2144 drivers/scsi/ibmvscsi/ibmvfc.c 	struct ibmvfc_host *vhost = shost_priv(sdev->host);
sdev             2145 drivers/scsi/ibmvscsi/ibmvfc.c 	struct scsi_target *starget = scsi_target(sdev);
sdev             2158 drivers/scsi/ibmvscsi/ibmvfc.c 		if (evt->cmnd && evt->cmnd->device == sdev) {
sdev             2166 drivers/scsi/ibmvscsi/ibmvfc.c 			sdev_printk(KERN_INFO, sdev, "No events found to cancel\n");
sdev             2181 drivers/scsi/ibmvscsi/ibmvfc.c 		int_to_scsilun(sdev->lun, &tmf->lun);
sdev             2188 drivers/scsi/ibmvscsi/ibmvfc.c 		tmf->cancel_key = cpu_to_be32((unsigned long)sdev->hostdata);
sdev             2199 drivers/scsi/ibmvscsi/ibmvfc.c 		sdev_printk(KERN_ERR, sdev, "Failed to send cancel event. rc=%d\n", rsp_rc);
sdev             2206 drivers/scsi/ibmvscsi/ibmvfc.c 	sdev_printk(KERN_INFO, sdev, "Cancelling outstanding commands.\n");
sdev             2215 drivers/scsi/ibmvscsi/ibmvfc.c 		sdev_printk(KERN_WARNING, sdev, "Cancel failed with rc=%x\n", status);
sdev             2227 drivers/scsi/ibmvscsi/ibmvfc.c 	sdev_printk(KERN_INFO, sdev, "Successfully cancelled outstanding commands\n");
sdev             2274 drivers/scsi/ibmvscsi/ibmvfc.c static int ibmvfc_abort_task_set(struct scsi_device *sdev)
sdev             2276 drivers/scsi/ibmvscsi/ibmvfc.c 	struct ibmvfc_host *vhost = shost_priv(sdev->host);
sdev             2277 drivers/scsi/ibmvscsi/ibmvfc.c 	struct fc_rport *rport = starget_to_rport(scsi_target(sdev));
sdev             2289 drivers/scsi/ibmvscsi/ibmvfc.c 		if (evt->cmnd && evt->cmnd->device == sdev) {
sdev             2297 drivers/scsi/ibmvscsi/ibmvfc.c 			sdev_printk(KERN_INFO, sdev, "No events found to abort\n");
sdev             2313 drivers/scsi/ibmvscsi/ibmvfc.c 		tmf->cancel_key = cpu_to_be32((unsigned long)sdev->hostdata);
sdev             2315 drivers/scsi/ibmvscsi/ibmvfc.c 		int_to_scsilun(sdev->lun, &tmf->iu.lun);
sdev             2327 drivers/scsi/ibmvscsi/ibmvfc.c 		sdev_printk(KERN_ERR, sdev, "Failed to send abort. rc=%d\n", rsp_rc);
sdev             2331 drivers/scsi/ibmvscsi/ibmvfc.c 	sdev_printk(KERN_INFO, sdev, "Aborting outstanding commands\n");
sdev             2335 drivers/scsi/ibmvscsi/ibmvfc.c 		rc = ibmvfc_cancel_all(sdev, 0);
sdev             2337 drivers/scsi/ibmvscsi/ibmvfc.c 			rc = ibmvfc_wait_for_ops(vhost, sdev->hostdata, ibmvfc_match_key);
sdev             2343 drivers/scsi/ibmvscsi/ibmvfc.c 			sdev_printk(KERN_INFO, sdev, "Cancel failed, resetting host\n");
sdev             2346 drivers/scsi/ibmvscsi/ibmvfc.c 			rc = ibmvfc_wait_for_ops(vhost, sdev->hostdata, ibmvfc_match_key);
sdev             2370 drivers/scsi/ibmvscsi/ibmvfc.c 		sdev_printk(KERN_ERR, sdev, "Abort failed: %s (%x:%x) "
sdev             2377 drivers/scsi/ibmvscsi/ibmvfc.c 		sdev_printk(KERN_INFO, sdev, "Abort successful\n");
sdev             2395 drivers/scsi/ibmvscsi/ibmvfc.c 	struct scsi_device *sdev = cmd->device;
sdev             2396 drivers/scsi/ibmvscsi/ibmvfc.c 	struct ibmvfc_host *vhost = shost_priv(sdev->host);
sdev             2404 drivers/scsi/ibmvscsi/ibmvfc.c 		cancel_rc = ibmvfc_cancel_all(sdev, IBMVFC_TMF_ABORT_TASK_SET);
sdev             2405 drivers/scsi/ibmvscsi/ibmvfc.c 		ibmvfc_abort_task_set(sdev);
sdev             2407 drivers/scsi/ibmvscsi/ibmvfc.c 		cancel_rc = ibmvfc_cancel_all(sdev, IBMVFC_TMF_SUPPRESS_ABTS);
sdev             2410 drivers/scsi/ibmvscsi/ibmvfc.c 		rc = ibmvfc_wait_for_ops(vhost, sdev, ibmvfc_match_lun);
sdev             2428 drivers/scsi/ibmvscsi/ibmvfc.c 	struct scsi_device *sdev = cmd->device;
sdev             2429 drivers/scsi/ibmvscsi/ibmvfc.c 	struct ibmvfc_host *vhost = shost_priv(sdev->host);
sdev             2437 drivers/scsi/ibmvscsi/ibmvfc.c 		cancel_rc = ibmvfc_cancel_all(sdev, IBMVFC_TMF_LUN_RESET);
sdev             2438 drivers/scsi/ibmvscsi/ibmvfc.c 		reset_rc = ibmvfc_reset_device(sdev, IBMVFC_LUN_RESET, "LUN");
sdev             2440 drivers/scsi/ibmvscsi/ibmvfc.c 		cancel_rc = ibmvfc_cancel_all(sdev, IBMVFC_TMF_SUPPRESS_ABTS);
sdev             2443 drivers/scsi/ibmvscsi/ibmvfc.c 		rc = ibmvfc_wait_for_ops(vhost, sdev, ibmvfc_match_lun);
sdev             2458 drivers/scsi/ibmvscsi/ibmvfc.c static void ibmvfc_dev_cancel_all_noreset(struct scsi_device *sdev, void *data)
sdev             2461 drivers/scsi/ibmvscsi/ibmvfc.c 	*rc |= ibmvfc_cancel_all(sdev, IBMVFC_TMF_SUPPRESS_ABTS);
sdev             2470 drivers/scsi/ibmvscsi/ibmvfc.c static void ibmvfc_dev_cancel_all_reset(struct scsi_device *sdev, void *data)
sdev             2473 drivers/scsi/ibmvscsi/ibmvfc.c 	*rc |= ibmvfc_cancel_all(sdev, IBMVFC_TMF_TGT_RESET);
sdev             2485 drivers/scsi/ibmvscsi/ibmvfc.c 	struct scsi_device *sdev = cmd->device;
sdev             2486 drivers/scsi/ibmvscsi/ibmvfc.c 	struct ibmvfc_host *vhost = shost_priv(sdev->host);
sdev             2487 drivers/scsi/ibmvscsi/ibmvfc.c 	struct scsi_target *starget = scsi_target(sdev);
sdev             2498 drivers/scsi/ibmvscsi/ibmvfc.c 		reset_rc = ibmvfc_reset_device(sdev, IBMVFC_TARGET_RESET, "target");
sdev             2540 drivers/scsi/ibmvscsi/ibmvfc.c 	struct scsi_device *sdev;
sdev             2544 drivers/scsi/ibmvscsi/ibmvfc.c 	shost_for_each_device(sdev, shost) {
sdev             2545 drivers/scsi/ibmvscsi/ibmvfc.c 		dev_rport = starget_to_rport(scsi_target(sdev));
sdev             2548 drivers/scsi/ibmvscsi/ibmvfc.c 		ibmvfc_cancel_all(sdev, IBMVFC_TMF_SUPPRESS_ABTS);
sdev             2830 drivers/scsi/ibmvscsi/ibmvfc.c static int ibmvfc_slave_alloc(struct scsi_device *sdev)
sdev             2832 drivers/scsi/ibmvscsi/ibmvfc.c 	struct Scsi_Host *shost = sdev->host;
sdev             2833 drivers/scsi/ibmvscsi/ibmvfc.c 	struct fc_rport *rport = starget_to_rport(scsi_target(sdev));
sdev             2841 drivers/scsi/ibmvscsi/ibmvfc.c 	sdev->hostdata = (void *)(unsigned long)vhost->task_set++;
sdev             2878 drivers/scsi/ibmvscsi/ibmvfc.c static int ibmvfc_slave_configure(struct scsi_device *sdev)
sdev             2880 drivers/scsi/ibmvscsi/ibmvfc.c 	struct Scsi_Host *shost = sdev->host;
sdev             2884 drivers/scsi/ibmvscsi/ibmvfc.c 	if (sdev->type == TYPE_DISK)
sdev             2885 drivers/scsi/ibmvscsi/ibmvfc.c 		sdev->allow_restart = 1;
sdev             2899 drivers/scsi/ibmvscsi/ibmvfc.c static int ibmvfc_change_queue_depth(struct scsi_device *sdev, int qdepth)
sdev             2904 drivers/scsi/ibmvscsi/ibmvfc.c 	return scsi_change_queue_depth(sdev, qdepth);
sdev             1851 drivers/scsi/ibmvscsi/ibmvscsi.c static int ibmvscsi_slave_configure(struct scsi_device *sdev)
sdev             1853 drivers/scsi/ibmvscsi/ibmvscsi.c 	struct Scsi_Host *shost = sdev->host;
sdev             1857 drivers/scsi/ibmvscsi/ibmvscsi.c 	if (sdev->type == TYPE_DISK) {
sdev             1858 drivers/scsi/ibmvscsi/ibmvscsi.c 		sdev->allow_restart = 1;
sdev             1859 drivers/scsi/ibmvscsi/ibmvscsi.c 		blk_queue_rq_timeout(sdev->request_queue, 120 * HZ);
sdev             1874 drivers/scsi/ibmvscsi/ibmvscsi.c static int ibmvscsi_change_queue_depth(struct scsi_device *sdev, int qdepth)
sdev             1878 drivers/scsi/ibmvscsi/ibmvscsi.c 	return scsi_change_queue_depth(sdev, qdepth);
sdev              945 drivers/scsi/imm.c static int imm_biosparam(struct scsi_device *sdev, struct block_device *dev,
sdev             2664 drivers/scsi/initio.c static int i91u_biosparam(struct scsi_device *sdev, struct block_device *dev,
sdev             2670 drivers/scsi/initio.c 	host = (struct initio_host *) sdev->host->hostdata;
sdev             2671 drivers/scsi/initio.c 	tc = &host->targets[sdev->id];
sdev             1192 drivers/scsi/ipr.c 	res->sdev = NULL;
sdev             1368 drivers/scsi/ipr.c 		if (res->sdev && new_path)
sdev             1369 drivers/scsi/ipr.c 			sdev_printk(KERN_INFO, res->sdev, "Resource path: %s\n",
sdev             1472 drivers/scsi/ipr.c 		if (res->sdev) {
sdev             1480 drivers/scsi/ipr.c 	} else if (!res->sdev || res->del_from_ml) {
sdev             3328 drivers/scsi/ipr.c 	struct scsi_device *sdev;
sdev             3346 drivers/scsi/ipr.c 			if (res->del_from_ml && res->sdev) {
sdev             3348 drivers/scsi/ipr.c 				sdev = res->sdev;
sdev             3349 drivers/scsi/ipr.c 				if (!scsi_device_get(sdev)) {
sdev             3355 drivers/scsi/ipr.c 					scsi_remove_device(sdev);
sdev             3356 drivers/scsi/ipr.c 					scsi_device_put(sdev);
sdev             4488 drivers/scsi/ipr.c static int ipr_change_queue_depth(struct scsi_device *sdev, int qdepth)
sdev             4490 drivers/scsi/ipr.c 	struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)sdev->host->hostdata;
sdev             4495 drivers/scsi/ipr.c 	res = (struct ipr_resource_entry *)sdev->hostdata;
sdev             4501 drivers/scsi/ipr.c 	scsi_change_queue_depth(sdev, qdepth);
sdev             4502 drivers/scsi/ipr.c 	return sdev->queue_depth;
sdev             4516 drivers/scsi/ipr.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             4517 drivers/scsi/ipr.c 	struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)sdev->host->hostdata;
sdev             4523 drivers/scsi/ipr.c 	res = (struct ipr_resource_entry *)sdev->hostdata;
sdev             4550 drivers/scsi/ipr.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             4551 drivers/scsi/ipr.c 	struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)sdev->host->hostdata;
sdev             4558 drivers/scsi/ipr.c 	res = (struct ipr_resource_entry *)sdev->hostdata;
sdev             4590 drivers/scsi/ipr.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             4591 drivers/scsi/ipr.c 	struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)sdev->host->hostdata;
sdev             4597 drivers/scsi/ipr.c 	res = (struct ipr_resource_entry *)sdev->hostdata;
sdev             4626 drivers/scsi/ipr.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             4627 drivers/scsi/ipr.c 	struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)sdev->host->hostdata;
sdev             4633 drivers/scsi/ipr.c 	res = (struct ipr_resource_entry *)sdev->hostdata;
sdev             4661 drivers/scsi/ipr.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             4662 drivers/scsi/ipr.c 	struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)sdev->host->hostdata;
sdev             4668 drivers/scsi/ipr.c 	res = (struct ipr_resource_entry *)sdev->hostdata;
sdev             4689 drivers/scsi/ipr.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             4690 drivers/scsi/ipr.c 	struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)sdev->host->hostdata;
sdev             4696 drivers/scsi/ipr.c 	res = (struct ipr_resource_entry *)sdev->hostdata;
sdev             4701 drivers/scsi/ipr.c 			if (res->sdev)
sdev             4702 drivers/scsi/ipr.c 				sdev_printk(KERN_INFO, res->sdev, "raw mode is %s\n",
sdev             4744 drivers/scsi/ipr.c static int ipr_biosparam(struct scsi_device *sdev,
sdev             4878 drivers/scsi/ipr.c static struct ipr_resource_entry *ipr_find_sdev(struct scsi_device *sdev)
sdev             4880 drivers/scsi/ipr.c 	struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *) sdev->host->hostdata;
sdev             4884 drivers/scsi/ipr.c 		if ((res->bus == sdev->channel) &&
sdev             4885 drivers/scsi/ipr.c 		    (res->target == sdev->id) &&
sdev             4886 drivers/scsi/ipr.c 		    (res->lun == sdev->lun))
sdev             4900 drivers/scsi/ipr.c static void ipr_slave_destroy(struct scsi_device *sdev)
sdev             4906 drivers/scsi/ipr.c 	ioa_cfg = (struct ipr_ioa_cfg *) sdev->host->hostdata;
sdev             4909 drivers/scsi/ipr.c 	res = (struct ipr_resource_entry *) sdev->hostdata;
sdev             4913 drivers/scsi/ipr.c 		sdev->hostdata = NULL;
sdev             4914 drivers/scsi/ipr.c 		res->sdev = NULL;
sdev             4929 drivers/scsi/ipr.c static int ipr_slave_configure(struct scsi_device *sdev)
sdev             4931 drivers/scsi/ipr.c 	struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *) sdev->host->hostdata;
sdev             4938 drivers/scsi/ipr.c 	res = sdev->hostdata;
sdev             4941 drivers/scsi/ipr.c 			sdev->type = TYPE_RAID;
sdev             4943 drivers/scsi/ipr.c 			sdev->scsi_level = 4;
sdev             4944 drivers/scsi/ipr.c 			sdev->no_uld_attach = 1;
sdev             4947 drivers/scsi/ipr.c 			sdev->scsi_level = SCSI_SPC_3;
sdev             4948 drivers/scsi/ipr.c 			sdev->no_report_opcodes = 1;
sdev             4949 drivers/scsi/ipr.c 			blk_queue_rq_timeout(sdev->request_queue,
sdev             4951 drivers/scsi/ipr.c 			blk_queue_max_hw_sectors(sdev->request_queue, IPR_VSET_MAX_SECTORS);
sdev             4958 drivers/scsi/ipr.c 			scsi_change_queue_depth(sdev, IPR_MAX_CMD_PER_ATA_LUN);
sdev             4959 drivers/scsi/ipr.c 			ata_sas_slave_configure(sdev, ap);
sdev             4963 drivers/scsi/ipr.c 			sdev_printk(KERN_INFO, sdev, "Resource path: %s\n",
sdev             4982 drivers/scsi/ipr.c static int ipr_ata_slave_alloc(struct scsi_device *sdev)
sdev             4988 drivers/scsi/ipr.c 	if (sdev->sdev_target)
sdev             4989 drivers/scsi/ipr.c 		sata_port = sdev->sdev_target->hostdata;
sdev             4997 drivers/scsi/ipr.c 		ipr_slave_destroy(sdev);
sdev             5015 drivers/scsi/ipr.c static int ipr_slave_alloc(struct scsi_device *sdev)
sdev             5017 drivers/scsi/ipr.c 	struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *) sdev->host->hostdata;
sdev             5022 drivers/scsi/ipr.c 	sdev->hostdata = NULL;
sdev             5026 drivers/scsi/ipr.c 	res = ipr_find_sdev(sdev);
sdev             5028 drivers/scsi/ipr.c 		res->sdev = sdev;
sdev             5031 drivers/scsi/ipr.c 		sdev->hostdata = res;
sdev             5037 drivers/scsi/ipr.c 			return ipr_ata_slave_alloc(sdev);
sdev             5467 drivers/scsi/ipr.c 	sdev_printk(KERN_ERR, ipr_cmd->u.sdev, "Abort timed out. Resetting bus.\n");
sdev             5546 drivers/scsi/ipr.c 	ipr_cmd->u.sdev = scsi_cmd->device;
sdev             6688 drivers/scsi/ipr.c static int ipr_ioctl(struct scsi_device *sdev, unsigned int cmd,
sdev             6693 drivers/scsi/ipr.c 	res = (struct ipr_resource_entry *)sdev->hostdata;
sdev             6697 drivers/scsi/ipr.c 		return ata_sas_scsi_ioctl(res->sata_port->ap, sdev, cmd, arg);
sdev             7843 drivers/scsi/ipr.c 		} else if (res->sdev && (ipr_is_vset_device(res) || ipr_is_scsi_disk(res)))
sdev             7844 drivers/scsi/ipr.c 			res->sdev->allow_restart = 1;
sdev             7851 drivers/scsi/ipr.c 		if (res->sdev) {
sdev             1324 drivers/scsi/ipr.h 	struct scsi_device *sdev;
sdev             1634 drivers/scsi/ipr.h 		struct scsi_device *sdev;
sdev             1140 drivers/scsi/ips.c static int ips_biosparam(struct scsi_device *sdev, struct block_device *bdev,
sdev             1143 drivers/scsi/ips.c 	ips_ha_t *ha = (ips_ha_t *) sdev->host->hostdata;
sdev              401 drivers/scsi/ips.h    static int ips_biosparam(struct scsi_device *sdev, struct block_device *bdev,
sdev              958 drivers/scsi/iscsi_tcp.c static int iscsi_sw_tcp_slave_configure(struct scsi_device *sdev)
sdev              960 drivers/scsi/iscsi_tcp.c 	struct iscsi_sw_tcp_host *tcp_sw_host = iscsi_host_priv(sdev->host);
sdev              965 drivers/scsi/iscsi_tcp.c 		sdev->request_queue->backing_dev_info->capabilities
sdev              967 drivers/scsi/iscsi_tcp.c 	blk_queue_dma_alignment(sdev->request_queue, 0);
sdev             2235 drivers/scsi/libfc/fc_fcp.c int fc_slave_alloc(struct scsi_device *sdev)
sdev             2237 drivers/scsi/libfc/fc_fcp.c 	struct fc_rport *rport = starget_to_rport(scsi_target(sdev));
sdev             2242 drivers/scsi/libfc/fc_fcp.c 	scsi_change_queue_depth(sdev, FC_FCP_DFLT_QUEUE_DEPTH);
sdev              784 drivers/scsi/libsas/sas_scsi_host.c int sas_ioctl(struct scsi_device *sdev, unsigned int cmd, void __user *arg)
sdev              786 drivers/scsi/libsas/sas_scsi_host.c 	struct domain_device *dev = sdev_to_domain_dev(sdev);
sdev              789 drivers/scsi/libsas/sas_scsi_host.c 		return ata_sas_scsi_ioctl(dev->sata_dev.ap, sdev, cmd, arg);
sdev              864 drivers/scsi/libsas/sas_scsi_host.c int sas_change_queue_depth(struct scsi_device *sdev, int depth)
sdev              866 drivers/scsi/libsas/sas_scsi_host.c 	struct domain_device *dev = sdev_to_domain_dev(sdev);
sdev              869 drivers/scsi/libsas/sas_scsi_host.c 		return __ata_change_queue_depth(dev->sata_dev.ap, sdev, depth);
sdev              871 drivers/scsi/libsas/sas_scsi_host.c 	if (!sdev->tagged_supported)
sdev              873 drivers/scsi/libsas/sas_scsi_host.c 	return scsi_change_queue_depth(sdev, depth);
sdev               73 drivers/scsi/lpfc/lpfc_scsi.c lpfc_rport_data_from_scsi_device(struct scsi_device *sdev)
sdev               75 drivers/scsi/lpfc/lpfc_scsi.c 	struct lpfc_vport *vport = (struct lpfc_vport *)sdev->host->hostdata;
sdev               78 drivers/scsi/lpfc/lpfc_scsi.c 		return ((struct lpfc_device_data *)sdev->hostdata)->rport_data;
sdev               80 drivers/scsi/lpfc/lpfc_scsi.c 		return (struct lpfc_rport_data *)sdev->hostdata;
sdev              247 drivers/scsi/lpfc/lpfc_scsi.c 	struct scsi_device *sdev;
sdev              267 drivers/scsi/lpfc/lpfc_scsi.c 			shost_for_each_device(sdev, shost) {
sdev              269 drivers/scsi/lpfc/lpfc_scsi.c 					sdev->queue_depth * num_rsrc_err /
sdev              272 drivers/scsi/lpfc/lpfc_scsi.c 					new_queue_depth = sdev->queue_depth - 1;
sdev              274 drivers/scsi/lpfc/lpfc_scsi.c 					new_queue_depth = sdev->queue_depth -
sdev              276 drivers/scsi/lpfc/lpfc_scsi.c 				scsi_change_queue_depth(sdev, new_queue_depth);
sdev              297 drivers/scsi/lpfc/lpfc_scsi.c 	struct scsi_device *sdev;
sdev              305 drivers/scsi/lpfc/lpfc_scsi.c 			shost_for_each_device(sdev, shost) {
sdev              306 drivers/scsi/lpfc/lpfc_scsi.c 				rport = starget_to_rport(scsi_target(sdev));
sdev             5497 drivers/scsi/lpfc/lpfc_scsi.c lpfc_slave_alloc(struct scsi_device *sdev)
sdev             5499 drivers/scsi/lpfc/lpfc_scsi.c 	struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata;
sdev             5501 drivers/scsi/lpfc/lpfc_scsi.c 	struct fc_rport *rport = starget_to_rport(scsi_target(sdev));
sdev             5526 drivers/scsi/lpfc/lpfc_scsi.c 						     sdev->lun);
sdev             5532 drivers/scsi/lpfc/lpfc_scsi.c 							sdev->lun,
sdev             5543 drivers/scsi/lpfc/lpfc_scsi.c 		sdev->hostdata = device_data;
sdev             5545 drivers/scsi/lpfc/lpfc_scsi.c 		sdev->hostdata = rport->dd_data;
sdev             5611 drivers/scsi/lpfc/lpfc_scsi.c lpfc_slave_configure(struct scsi_device *sdev)
sdev             5613 drivers/scsi/lpfc/lpfc_scsi.c 	struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata;
sdev             5616 drivers/scsi/lpfc/lpfc_scsi.c 	scsi_change_queue_depth(sdev, vport->cfg_lun_queue_depth);
sdev             5635 drivers/scsi/lpfc/lpfc_scsi.c lpfc_slave_destroy(struct scsi_device *sdev)
sdev             5637 drivers/scsi/lpfc/lpfc_scsi.c 	struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata;
sdev             5640 drivers/scsi/lpfc/lpfc_scsi.c 	struct lpfc_device_data *device_data = sdev->hostdata;
sdev             5650 drivers/scsi/lpfc/lpfc_scsi.c 	sdev->hostdata = NULL;
sdev             5997 drivers/scsi/lpfc/lpfc_scsi.c lpfc_no_slave(struct scsi_device *sdev)
sdev             2794 drivers/scsi/megaraid.c megaraid_biosparam(struct scsi_device *sdev, struct block_device *bdev,
sdev             2805 drivers/scsi/megaraid.c 	adapter = (adapter_t *)sdev->host->hostdata;
sdev             2807 drivers/scsi/megaraid.c 	if (IS_RAID_CH(adapter, sdev->channel)) {
sdev             2841 drivers/scsi/megaraid.c 			 sdev->channel);
sdev              213 drivers/scsi/megaraid/mega_common.h #define MRAID_IS_LOGICAL_SDEV(adp, sdev)	\
sdev              214 drivers/scsi/megaraid/mega_common.h 	(sdev->channel == (adp)->max_channel) ? 1 : 0
sdev             4014 drivers/scsi/megaraid/megaraid_mbox.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             4015 drivers/scsi/megaraid/megaraid_mbox.c 	adapter_t	*adapter = (adapter_t *)SCSIHOST2ADAP(sdev->host);
sdev             4026 drivers/scsi/megaraid/megaraid_mbox.c 			MRAID_IS_LOGICAL_SDEV(adapter, sdev)) {
sdev             4033 drivers/scsi/megaraid/megaraid_mbox.c 				mapped_sdev_id = sdev->id;
sdev             4035 drivers/scsi/megaraid/megaraid_mbox.c 				if (sdev->id > adapter->init_id) {
sdev             4041 drivers/scsi/megaraid/megaraid_mbox.c 					scsi_id = sdev->id;
sdev             2539 drivers/scsi/megaraid/megaraid_sas.h #define MEGASAS_IS_LOGICAL(sdev)					\
sdev             2540 drivers/scsi/megaraid/megaraid_sas.h 	((sdev->channel < MEGASAS_MAX_PD_CHANNELS) ? 0 : 1)
sdev             2668 drivers/scsi/megaraid/megaraid_sas.h void megasas_set_dynamic_target_properties(struct scsi_device *sdev,
sdev             2671 drivers/scsi/megaraid/megaraid_sas.h 			    struct scsi_device *sdev);
sdev             2690 drivers/scsi/megaraid/megaraid_sas.h void megasas_update_sdev_properties(struct scsi_device *sdev);
sdev              129 drivers/scsi/megaraid/megaraid_sas_base.c 				struct scsi_device *sdev);
sdev             1857 drivers/scsi/megaraid/megaraid_sas_base.c void megasas_set_dynamic_target_properties(struct scsi_device *sdev,
sdev             1869 drivers/scsi/megaraid/megaraid_sas_base.c 	instance = megasas_lookup_instance(sdev->host->host_no);
sdev             1871 drivers/scsi/megaraid/megaraid_sas_base.c 	mr_device_priv_data = sdev->hostdata;
sdev             1876 drivers/scsi/megaraid/megaraid_sas_base.c 	if (MEGASAS_IS_LOGICAL(sdev)) {
sdev             1877 drivers/scsi/megaraid/megaraid_sas_base.c 		device_id = ((sdev->channel % 2) * MEGASAS_MAX_DEV_PER_CHANNEL)
sdev             1878 drivers/scsi/megaraid/megaraid_sas_base.c 					+ sdev->id;
sdev             1886 drivers/scsi/megaraid/megaraid_sas_base.c 		blk_queue_update_dma_alignment(sdev->request_queue, 0x7);
sdev             1891 drivers/scsi/megaraid/megaraid_sas_base.c 		pd_index = (sdev->channel * MEGASAS_MAX_DEV_PER_CHANNEL) +
sdev             1892 drivers/scsi/megaraid/megaraid_sas_base.c 			sdev->id;
sdev             1933 drivers/scsi/megaraid/megaraid_sas_base.c megasas_set_nvme_device_properties(struct scsi_device *sdev, u32 max_io_size)
sdev             1938 drivers/scsi/megaraid/megaraid_sas_base.c 	instance = (struct megasas_instance *)sdev->host->hostdata;
sdev             1942 drivers/scsi/megaraid/megaraid_sas_base.c 	blk_queue_max_hw_sectors(sdev->request_queue, (max_io_size / 512));
sdev             1944 drivers/scsi/megaraid/megaraid_sas_base.c 	blk_queue_flag_set(QUEUE_FLAG_NOMERGES, sdev->request_queue);
sdev             1945 drivers/scsi/megaraid/megaraid_sas_base.c 	blk_queue_virt_boundary(sdev->request_queue, mr_nvme_pg_size - 1);
sdev             1956 drivers/scsi/megaraid/megaraid_sas_base.c static void megasas_set_fw_assisted_qd(struct scsi_device *sdev,
sdev             1965 drivers/scsi/megaraid/megaraid_sas_base.c 	instance = megasas_lookup_instance(sdev->host->host_no);
sdev             1966 drivers/scsi/megaraid/megaraid_sas_base.c 	mr_device_priv_data = sdev->hostdata;
sdev             1991 drivers/scsi/megaraid/megaraid_sas_base.c 	scsi_change_queue_depth(sdev, device_qd);
sdev             2006 drivers/scsi/megaraid/megaraid_sas_base.c static void megasas_set_static_target_properties(struct scsi_device *sdev,
sdev             2012 drivers/scsi/megaraid/megaraid_sas_base.c 	instance = megasas_lookup_instance(sdev->host->host_no);
sdev             2017 drivers/scsi/megaraid/megaraid_sas_base.c 	blk_queue_rq_timeout(sdev->request_queue, scmd_timeout * HZ);
sdev             2026 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_set_nvme_device_properties(sdev, (max_io_size_kb << 10));
sdev             2028 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_set_fw_assisted_qd(sdev, is_target_prop);
sdev             2032 drivers/scsi/megaraid/megaraid_sas_base.c static int megasas_slave_configure(struct scsi_device *sdev)
sdev             2039 drivers/scsi/megaraid/megaraid_sas_base.c 	instance = megasas_lookup_instance(sdev->host->host_no);
sdev             2041 drivers/scsi/megaraid/megaraid_sas_base.c 		if (!MEGASAS_IS_LOGICAL(sdev) && sdev->type == TYPE_DISK) {
sdev             2042 drivers/scsi/megaraid/megaraid_sas_base.c 			pd_index = (sdev->channel * MEGASAS_MAX_DEV_PER_CHANNEL) +
sdev             2043 drivers/scsi/megaraid/megaraid_sas_base.c 				sdev->id;
sdev             2052 drivers/scsi/megaraid/megaraid_sas_base.c 	if ((instance->pd_info) && !MEGASAS_IS_LOGICAL(sdev))
sdev             2053 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_get_pd_info(instance, sdev);
sdev             2059 drivers/scsi/megaraid/megaraid_sas_base.c 		ret_target_prop = megasas_get_target_prop(instance, sdev);
sdev             2062 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_set_static_target_properties(sdev, is_target_prop);
sdev             2065 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_set_dynamic_target_properties(sdev, is_target_prop);
sdev             2072 drivers/scsi/megaraid/megaraid_sas_base.c static int megasas_slave_alloc(struct scsi_device *sdev)
sdev             2078 drivers/scsi/megaraid/megaraid_sas_base.c 	instance = megasas_lookup_instance(sdev->host->host_no);
sdev             2079 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!MEGASAS_IS_LOGICAL(sdev)) {
sdev             2084 drivers/scsi/megaraid/megaraid_sas_base.c 			(sdev->channel * MEGASAS_MAX_DEV_PER_CHANNEL) +
sdev             2085 drivers/scsi/megaraid/megaraid_sas_base.c 			sdev->id;
sdev             2099 drivers/scsi/megaraid/megaraid_sas_base.c 	sdev->hostdata = mr_device_priv_data;
sdev             2106 drivers/scsi/megaraid/megaraid_sas_base.c static void megasas_slave_destroy(struct scsi_device *sdev)
sdev             2108 drivers/scsi/megaraid/megaraid_sas_base.c 	kfree(sdev->hostdata);
sdev             2109 drivers/scsi/megaraid/megaraid_sas_base.c 	sdev->hostdata = NULL;
sdev             3073 drivers/scsi/megaraid/megaraid_sas_base.c megasas_bios_param(struct scsi_device *sdev, struct block_device *bdev,
sdev             3330 drivers/scsi/megaraid/megaraid_sas_base.c 	struct scsi_device *sdev;
sdev             3343 drivers/scsi/megaraid/megaraid_sas_base.c 	shost_for_each_device(sdev, shost) {
sdev             3344 drivers/scsi/megaraid/megaraid_sas_base.c 		ret_target_prop = megasas_get_target_prop(instance, sdev);
sdev             3346 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_set_fw_assisted_qd(sdev, is_target_prop);
sdev             4403 drivers/scsi/megaraid/megaraid_sas_base.c megasas_get_pd_info(struct megasas_instance *instance, struct scsi_device *sdev)
sdev             4412 drivers/scsi/megaraid/megaraid_sas_base.c 	device_id = (sdev->channel * MEGASAS_MAX_DEV_PER_CHANNEL) + sdev->id;
sdev             4446 drivers/scsi/megaraid/megaraid_sas_base.c 		mr_device_priv_data = sdev->hostdata;
sdev             6630 drivers/scsi/megaraid/megaraid_sas_base.c 			struct scsi_device *sdev)
sdev             6635 drivers/scsi/megaraid/megaraid_sas_base.c 	u16 targetId = ((sdev->channel % 2) * MEGASAS_MAX_DEV_PER_CHANNEL) +
sdev             6636 drivers/scsi/megaraid/megaraid_sas_base.c 			sdev->id;
sdev             6650 drivers/scsi/megaraid/megaraid_sas_base.c 	dcmd->mbox.b[0] = MEGASAS_IS_LOGICAL(sdev);
sdev             8541 drivers/scsi/megaraid/megaraid_sas_base.c static inline void megasas_remove_scsi_device(struct scsi_device *sdev)
sdev             8543 drivers/scsi/megaraid/megaraid_sas_base.c 	sdev_printk(KERN_INFO, sdev, "SCSI device is removed\n");
sdev             8544 drivers/scsi/megaraid/megaraid_sas_base.c 	scsi_remove_device(sdev);
sdev             8545 drivers/scsi/megaraid/megaraid_sas_base.c 	scsi_device_put(sdev);
sdev             4576 drivers/scsi/megaraid/megaraid_sas_fusion.c static u16 megasas_get_tm_devhandle(struct scsi_device *sdev)
sdev             4585 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance = (struct megasas_instance *)sdev->host->hostdata;
sdev             4588 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (!MEGASAS_IS_LOGICAL(sdev)) {
sdev             4590 drivers/scsi/megaraid/megaraid_sas_fusion.c 			pd_index = (sdev->channel * MEGASAS_MAX_DEV_PER_CHANNEL)
sdev             4591 drivers/scsi/megaraid/megaraid_sas_fusion.c 				    + sdev->id;
sdev             4596 drivers/scsi/megaraid/megaraid_sas_fusion.c 			sdev_printk(KERN_ERR, sdev, "Firmware expose tmCapable"
sdev             4599 drivers/scsi/megaraid/megaraid_sas_fusion.c 		device_id = ((sdev->channel % 2) * MEGASAS_MAX_DEV_PER_CHANNEL)
sdev             4600 drivers/scsi/megaraid/megaraid_sas_fusion.c 				+ sdev->id;
sdev             4798 drivers/scsi/megaraid/megaraid_sas_fusion.c 	struct scsi_device *sdev;
sdev             4988 drivers/scsi/megaraid/megaraid_sas_fusion.c 			shost_for_each_device(sdev, shost) {
sdev             4991 drivers/scsi/megaraid/megaraid_sas_fusion.c 					ret_target_prop = megasas_get_target_prop(instance, sdev);
sdev             4994 drivers/scsi/megaraid/megaraid_sas_fusion.c 				megasas_set_dynamic_target_properties(sdev, is_target_prop);
sdev              679 drivers/scsi/mpt3sas/mpt3sas_base.h 	struct scsi_device *sdev;
sdev             1591 drivers/scsi/mpt3sas/mpt3sas_base.h void mpt3sas_scsih_change_queue_depth(struct scsi_device *sdev, int qdepth);
sdev             1744 drivers/scsi/mpt3sas/mpt3sas_base.h bool scsih_ncq_prio_supp(struct scsi_device *sdev);
sdev             3453 drivers/scsi/mpt3sas/mpt3sas_ctl.c 	struct scsi_device *sdev;
sdev             3463 drivers/scsi/mpt3sas/mpt3sas_ctl.c 		shost_for_each_device(sdev, ioc->shost) {
sdev             3464 drivers/scsi/mpt3sas/mpt3sas_ctl.c 			sas_device_priv_data = sdev->hostdata;
sdev             3500 drivers/scsi/mpt3sas/mpt3sas_ctl.c 			mpt3sas_scsih_change_queue_depth(sdev, qdepth);
sdev             3505 drivers/scsi/mpt3sas/mpt3sas_ctl.c 		shost_for_each_device(sdev, ioc->shost)
sdev             3506 drivers/scsi/mpt3sas/mpt3sas_ctl.c 			mpt3sas_scsih_change_queue_depth(sdev,
sdev             3564 drivers/scsi/mpt3sas/mpt3sas_ctl.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             3565 drivers/scsi/mpt3sas/mpt3sas_ctl.c 	struct MPT3SAS_DEVICE *sas_device_priv_data = sdev->hostdata;
sdev             3586 drivers/scsi/mpt3sas/mpt3sas_ctl.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             3587 drivers/scsi/mpt3sas/mpt3sas_ctl.c 	struct MPT3SAS_DEVICE *sas_device_priv_data = sdev->hostdata;
sdev             3606 drivers/scsi/mpt3sas/mpt3sas_ctl.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             3607 drivers/scsi/mpt3sas/mpt3sas_ctl.c 	struct MPT3SAS_DEVICE *sas_device_priv_data = sdev->hostdata;
sdev             3618 drivers/scsi/mpt3sas/mpt3sas_ctl.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             3619 drivers/scsi/mpt3sas/mpt3sas_ctl.c 	struct MPT3SAS_DEVICE *sas_device_priv_data = sdev->hostdata;
sdev             3625 drivers/scsi/mpt3sas/mpt3sas_ctl.c 	if (!scsih_ncq_prio_supp(sdev))
sdev              717 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	struct _sas_device *sas_device, struct scsi_device *sdev,
sdev              720 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	if (sdev) {
sdev              722 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			sdev_printk(KERN_INFO, sdev,
sdev              728 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			sdev_printk(KERN_INFO, sdev,
sdev              733 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			sdev_printk(KERN_INFO, sdev, "chassis slot(0x%04x)\n",
sdev             1513 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsih_change_queue_depth(struct scsi_device *sdev, int qdepth)
sdev             1515 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	struct Scsi_Host *shost = sdev->host;
sdev             1532 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	sas_device_priv_data = sdev->hostdata;
sdev             1553 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	if (!sdev->tagged_supported)
sdev             1557 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	return scsi_change_queue_depth(sdev, qdepth);
sdev             1568 drivers/scsi/mpt3sas/mpt3sas_scsih.c mpt3sas_scsih_change_queue_depth(struct scsi_device *sdev, int qdepth)
sdev             1570 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	struct Scsi_Host *shost = sdev->host;
sdev             1576 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	scsih_change_queue_depth(sdev, qdepth);
sdev             1696 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			raid_device->sdev = NULL;
sdev             1754 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsih_slave_alloc(struct scsi_device *sdev)
sdev             1771 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	sas_device_priv_data->lun = sdev->lun;
sdev             1774 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	starget = scsi_target(sdev);
sdev             1778 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	sdev->hostdata = sas_device_priv_data;
sdev             1780 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		sdev->no_uld_attach = 1;
sdev             1789 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			raid_device->sdev = sdev; /* raid is single lun */
sdev             1797 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			sdev_printk(KERN_INFO, sdev,
sdev             1812 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			sdev_printk(KERN_INFO, sdev,
sdev             1832 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsih_slave_destroy(struct scsi_device *sdev)
sdev             1842 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	if (!sdev->hostdata)
sdev             1845 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	starget = scsi_target(sdev);
sdev             1876 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	kfree(sdev->hostdata);
sdev             1877 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	sdev->hostdata = NULL;
sdev             1888 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	u16 handle, struct scsi_device *sdev)
sdev             1914 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	sdev_printk(KERN_INFO, sdev,
sdev             1940 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             1941 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	struct MPT3SAS_ADAPTER *ioc = shost_priv(sdev->host);
sdev             1945 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	return (sdev->channel == RAID_CHANNEL) ? 1 : 0;
sdev             1951 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             1953 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	return (sdev->channel == PCIE_CHANNEL) ? 1 : 0;
sdev             1963 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             1964 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	struct MPT3SAS_ADAPTER *ioc = shost_priv(sdev->host);
sdev             1979 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	raid_device = _scsih_raid_device_find_by_id(ioc, sdev->id,
sdev             1980 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	    sdev->channel);
sdev             2024 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             2025 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	struct MPT3SAS_ADAPTER *ioc = shost_priv(sdev->host);
sdev             2035 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	raid_device = _scsih_raid_device_find_by_id(ioc, sdev->id,
sdev             2036 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	    sdev->channel);
sdev             2091 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	struct scsi_device *sdev, u8 volume_type)
sdev             2113 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			&sdev->sdev_gendev, level);
sdev             2118 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			&sdev->sdev_gendev, level);
sdev             2200 drivers/scsi/mpt3sas/mpt3sas_scsih.c _scsih_enable_tlr(struct MPT3SAS_ADAPTER *ioc, struct scsi_device *sdev)
sdev             2204 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	if (sdev->type != TYPE_TAPE)
sdev             2210 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	sas_enable_tlr(sdev);
sdev             2211 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	sdev_printk(KERN_INFO, sdev, "TLR %s\n",
sdev             2212 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	    sas_is_tlr_enabled(sdev) ? "Enabled" : "Disabled");
sdev             2225 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsih_slave_configure(struct scsi_device *sdev)
sdev             2227 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	struct Scsi_Host *shost = sdev->host;
sdev             2243 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	sas_device_priv_data = sdev->hostdata;
sdev             2322 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			sdev_printk(KERN_INFO, sdev,
sdev             2330 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			blk_queue_max_hw_sectors(sdev->request_queue,
sdev             2332 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			sdev_printk(KERN_INFO, sdev,
sdev             2337 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		mpt3sas_scsih_change_queue_depth(sdev, qdepth);
sdev             2341 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			_scsih_set_level(ioc, sdev, raid_device->volume_type);
sdev             2378 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		sdev_printk(KERN_INFO, sdev,
sdev             2383 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			sdev_printk(KERN_INFO, sdev,
sdev             2389 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			sdev_printk(KERN_INFO, sdev,
sdev             2396 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			blk_queue_max_hw_sectors(sdev->request_queue,
sdev             2401 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		mpt3sas_scsih_change_queue_depth(sdev, qdepth);
sdev             2407 drivers/scsi/mpt3sas/mpt3sas_scsih.c 				sdev->request_queue);
sdev             2408 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		blk_queue_virt_boundary(sdev->request_queue,
sdev             2431 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			sdev_printk(KERN_WARNING, sdev,
sdev             2447 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	sdev_printk(KERN_INFO, sdev, "%s: handle(0x%04x), " \
sdev             2452 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	_scsih_display_enclosure_chassis_info(NULL, sas_device, sdev, NULL);
sdev             2458 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		_scsih_display_sata_capabilities(ioc, handle, sdev);
sdev             2461 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	mpt3sas_scsih_change_queue_depth(sdev, qdepth);
sdev             2464 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		sas_read_port_mode_page(sdev);
sdev             2465 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		_scsih_enable_tlr(ioc, sdev);
sdev             2482 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsih_bios_param(struct scsi_device *sdev, struct block_device *bdev,
sdev             2603 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	struct scsi_device *sdev;
sdev             2606 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	shost_for_each_device(sdev, ioc->shost) {
sdev             2609 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		sas_device_priv_data = sdev->hostdata;
sdev             2631 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	struct scsi_device *sdev;
sdev             2634 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	shost_for_each_device(sdev, ioc->shost) {
sdev             2637 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		sas_device_priv_data = sdev->hostdata;
sdev             3288 drivers/scsi/mpt3sas/mpt3sas_scsih.c _scsih_internal_device_block(struct scsi_device *sdev,
sdev             3293 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	sdev_printk(KERN_INFO, sdev, "device_block, handle(0x%04x)\n",
sdev             3297 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	r = scsi_internal_device_block_nowait(sdev);
sdev             3299 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		sdev_printk(KERN_WARNING, sdev,
sdev             3313 drivers/scsi/mpt3sas/mpt3sas_scsih.c _scsih_internal_device_unblock(struct scsi_device *sdev,
sdev             3318 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	sdev_printk(KERN_WARNING, sdev, "device_unblock and setting to running, "
sdev             3321 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	r = scsi_internal_device_unblock_nowait(sdev, SDEV_RUNNING);
sdev             3328 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		sdev_printk(KERN_WARNING, sdev,
sdev             3333 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		r = scsi_internal_device_block_nowait(sdev);
sdev             3335 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			sdev_printk(KERN_WARNING, sdev, "retried device_block "
sdev             3340 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		r = scsi_internal_device_unblock_nowait(sdev, SDEV_RUNNING);
sdev             3342 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			sdev_printk(KERN_WARNING, sdev, "retried device_unblock"
sdev             3358 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	struct scsi_device *sdev;
sdev             3360 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	shost_for_each_device(sdev, ioc->shost) {
sdev             3361 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		sas_device_priv_data = sdev->hostdata;
sdev             3367 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		dewtprintk(ioc, sdev_printk(KERN_INFO, sdev,
sdev             3370 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		_scsih_internal_device_unblock(sdev, sas_device_priv_data);
sdev             3386 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	struct scsi_device *sdev;
sdev             3388 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	shost_for_each_device(sdev, ioc->shost) {
sdev             3389 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		sas_device_priv_data = sdev->hostdata;
sdev             3396 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			_scsih_internal_device_unblock(sdev,
sdev             3411 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	struct scsi_device *sdev;
sdev             3413 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	shost_for_each_device(sdev, ioc->shost) {
sdev             3414 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		sas_device_priv_data = sdev->hostdata;
sdev             3420 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			sdev_printk(KERN_INFO, sdev,
sdev             3425 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		_scsih_internal_device_block(sdev, sas_device_priv_data);
sdev             3440 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	struct scsi_device *sdev;
sdev             3445 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	shost_for_each_device(sdev, ioc->shost) {
sdev             3446 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		sas_device_priv_data = sdev->hostdata;
sdev             3456 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			sdev_printk(KERN_INFO, sdev,
sdev             3461 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		_scsih_internal_device_block(sdev, sas_device_priv_data);
sdev             7370 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	struct scsi_device *sdev;
sdev             7415 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		sdev = scmd->device;
sdev             7416 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		sas_device_priv_data = sdev->hostdata;
sdev             7444 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			sdev_printk(KERN_WARNING, sdev,
sdev             7453 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			sdev_printk(KERN_WARNING, sdev,
sdev             7481 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		r = mpt3sas_scsih_issue_tm(ioc, handle, sdev->lun,
sdev             7485 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			sdev_printk(KERN_WARNING, sdev,
sdev             7492 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			sdev_printk(KERN_WARNING, sdev,
sdev             7715 drivers/scsi/mpt3sas/mpt3sas_scsih.c _scsih_reprobe_lun(struct scsi_device *sdev, void *no_uld_attach)
sdev             7717 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	sdev->no_uld_attach = no_uld_attach ? 1 : 0;
sdev             7718 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	sdev_printk(KERN_INFO, sdev, "%s raid component\n",
sdev             7719 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	    sdev->no_uld_attach ? "hiding" : "exposing");
sdev             7720 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	WARN_ON(scsi_device_reprobe(sdev));
sdev             8363 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	struct scsi_device *sdev;
sdev             8365 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	shost_for_each_device(sdev, ioc->shost) {
sdev             8366 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		sas_device_priv_data = sdev->hostdata;
sdev             10844 drivers/scsi/mpt3sas/mpt3sas_scsih.c bool scsih_ncq_prio_supp(struct scsi_device *sdev)
sdev             10849 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	if (!scsi_device_supports_vpd(sdev))
sdev             10856 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	if (!scsi_get_vpd_page(sdev, 0x89, buf, SCSI_VPD_PG_LEN))
sdev              207 drivers/scsi/mvsas/mv_sas.h 	struct scsi_device	*sdev;
sdev             1381 drivers/scsi/mvumi.c 	struct scsi_device *sdev;
sdev             1385 drivers/scsi/mvumi.c 		sdev = scsi_device_lookup(mhba->shost, 0, devid, 0);
sdev             1386 drivers/scsi/mvumi.c 		if (sdev) {
sdev             1388 drivers/scsi/mvumi.c 								sdev->id, 0);
sdev             1389 drivers/scsi/mvumi.c 			scsi_remove_device(sdev);
sdev             1390 drivers/scsi/mvumi.c 			scsi_device_put(sdev);
sdev             1396 drivers/scsi/mvumi.c 		sdev = scsi_device_lookup(mhba->shost, 0, devid, 0);
sdev             1397 drivers/scsi/mvumi.c 		if (!sdev) {
sdev             1405 drivers/scsi/mvumi.c 			scsi_device_put(sdev);
sdev             1464 drivers/scsi/mvumi.c 	struct scsi_device *sdev = NULL;
sdev             1486 drivers/scsi/mvumi.c 		sdev = scsi_device_lookup(mhba->shost, 0,
sdev             1489 drivers/scsi/mvumi.c 	if (sdev) {
sdev             1490 drivers/scsi/mvumi.c 		scsi_remove_device(sdev);
sdev             1491 drivers/scsi/mvumi.c 		scsi_device_put(sdev);
sdev             1499 drivers/scsi/mvumi.c 	struct scsi_device *sdev;
sdev             1501 drivers/scsi/mvumi.c 	sdev = scsi_device_lookup(mhba->shost, 0, id, 0);
sdev             1502 drivers/scsi/mvumi.c 	if (sdev) {
sdev             1503 drivers/scsi/mvumi.c 		scsi_rescan_device(&sdev->sdev_gendev);
sdev             1504 drivers/scsi/mvumi.c 		scsi_device_put(sdev);
sdev             1585 drivers/scsi/mvumi.c 				mv_dev->sdev = NULL;
sdev             2003 drivers/scsi/mvumi.c static int mvumi_slave_configure(struct scsi_device *sdev)
sdev             2008 drivers/scsi/mvumi.c 	mhba = (struct mvumi_hba *) sdev->host->hostdata;
sdev             2009 drivers/scsi/mvumi.c 	if (sdev->id >= mhba->max_target_id)
sdev             2012 drivers/scsi/mvumi.c 	mhba->target_map[sdev->id / bitcount] |= (1 << (sdev->id % bitcount));
sdev             2147 drivers/scsi/mvumi.c mvumi_bios_param(struct scsi_device *sdev, struct block_device *bdev,
sdev             2391 drivers/scsi/mvumi.c 	struct scsi_device *sdev = NULL;
sdev             2439 drivers/scsi/mvumi.c 		sdev = scsi_device_lookup(mhba->shost, 0,
sdev             2441 drivers/scsi/mvumi.c 	if (sdev) {
sdev             2442 drivers/scsi/mvumi.c 		scsi_remove_device(sdev);
sdev             2443 drivers/scsi/mvumi.c 		scsi_device_put(sdev);
sdev              468 drivers/scsi/mvumi.h 	struct scsi_device *sdev;
sdev              230 drivers/scsi/myrb.c 		enum myrb_cmd_opcode op, struct scsi_device *sdev,
sdev              248 drivers/scsi/myrb.c 	mbox->type3D.channel = sdev->channel;
sdev              249 drivers/scsi/myrb.c 	mbox->type3D.target = sdev->id;
sdev              359 drivers/scsi/myrb.c 		struct scsi_device *sdev;
sdev              361 drivers/scsi/myrb.c 		shost_for_each_device(sdev, cb->host) {
sdev              362 drivers/scsi/myrb.c 			if (sdev->channel >= myrb_logical_channel(cb->host))
sdev              364 drivers/scsi/myrb.c 			err_table_offset = sdev->channel * MYRB_MAX_TARGETS
sdev              365 drivers/scsi/myrb.c 				+ sdev->id;
sdev              373 drivers/scsi/myrb.c 			sdev_printk(KERN_CRIT, sdev,
sdev              402 drivers/scsi/myrb.c 		struct scsi_device *sdev;
sdev              404 drivers/scsi/myrb.c 		sdev = scsi_device_lookup(shost, myrb_logical_channel(shost),
sdev              406 drivers/scsi/myrb.c 		if (!sdev) {
sdev              416 drivers/scsi/myrb.c 		old = sdev->hostdata;
sdev              422 drivers/scsi/myrb.c 			sdev_printk(KERN_INFO, sdev,
sdev              426 drivers/scsi/myrb.c 		scsi_device_put(sdev);
sdev              484 drivers/scsi/myrb.c 		struct scsi_device *sdev;
sdev              486 drivers/scsi/myrb.c 		sdev = scsi_device_lookup(cb->host,
sdev              489 drivers/scsi/myrb.c 		if (!sdev)
sdev              494 drivers/scsi/myrb.c 			sdev_printk(KERN_INFO, sdev,
sdev              500 drivers/scsi/myrb.c 			sdev_printk(KERN_INFO, sdev,
sdev              504 drivers/scsi/myrb.c 			sdev_printk(KERN_INFO, sdev,
sdev              508 drivers/scsi/myrb.c 			sdev_printk(KERN_INFO, sdev,
sdev              512 drivers/scsi/myrb.c 			sdev_printk(KERN_INFO, sdev,
sdev              516 drivers/scsi/myrb.c 			sdev_printk(KERN_INFO, sdev,
sdev              522 drivers/scsi/myrb.c 		scsi_device_put(sdev);
sdev              558 drivers/scsi/myrb.c 		struct scsi_device *sdev;
sdev              560 drivers/scsi/myrb.c 		sdev = scsi_device_lookup(cb->host,
sdev              563 drivers/scsi/myrb.c 		if (sdev) {
sdev              564 drivers/scsi/myrb.c 			sdev_printk(KERN_INFO, sdev,
sdev              568 drivers/scsi/myrb.c 			scsi_device_put(sdev);
sdev              586 drivers/scsi/myrb.c 	struct scsi_device *sdev = NULL;
sdev              603 drivers/scsi/myrb.c 	sdev = scsi_device_lookup(cb->host,
sdev              612 drivers/scsi/myrb.c 			if (!sdev)
sdev              614 drivers/scsi/myrb.c 			sdev_printk(KERN_INFO, sdev,
sdev              618 drivers/scsi/myrb.c 			if (!sdev)
sdev              623 drivers/scsi/myrb.c 			sdev_printk(KERN_INFO, sdev,
sdev              629 drivers/scsi/myrb.c 			if (!sdev)
sdev              631 drivers/scsi/myrb.c 			sdev_printk(KERN_INFO, sdev,
sdev              635 drivers/scsi/myrb.c 			if (!sdev)
sdev              637 drivers/scsi/myrb.c 			sdev_printk(KERN_INFO, sdev,
sdev              644 drivers/scsi/myrb.c 		if (sdev && cb->bgi_status.status == MYRB_BGI_INPROGRESS)
sdev              645 drivers/scsi/myrb.c 			sdev_printk(KERN_INFO, sdev,
sdev              650 drivers/scsi/myrb.c 		if (sdev && cb->bgi_status.status == MYRB_BGI_INPROGRESS)
sdev              651 drivers/scsi/myrb.c 			sdev_printk(KERN_INFO, sdev,
sdev              658 drivers/scsi/myrb.c 	if (sdev)
sdev              659 drivers/scsi/myrb.c 		scsi_device_put(sdev);
sdev              782 drivers/scsi/myrb.c 		struct scsi_device *sdev, enum myrb_devstate state)
sdev              791 drivers/scsi/myrb.c 	mbox->type3D.channel = sdev->channel;
sdev              792 drivers/scsi/myrb.c 	mbox->type3D.target = sdev->id;
sdev             1273 drivers/scsi/myrb.c 	struct scsi_device *sdev = scmd->device;
sdev             1293 drivers/scsi/myrb.c 	dcdb->channel = sdev->channel;
sdev             1294 drivers/scsi/myrb.c 	dcdb->target = sdev->id;
sdev             1428 drivers/scsi/myrb.c 	struct scsi_device *sdev = scmd->device;
sdev             1435 drivers/scsi/myrb.c 	ldev_info = sdev->hostdata;
sdev             1439 drivers/scsi/myrb.c 			sdev->id, ldev_info ? ldev_info->state : 0xff);
sdev             1594 drivers/scsi/myrb.c 		mbox->type5.ld.ldev_num = sdev->id;
sdev             1615 drivers/scsi/myrb.c 		mbox->type5.ld.ldev_num = sdev->id;
sdev             1637 drivers/scsi/myrb.c 	struct scsi_device *sdev = scmd->device;
sdev             1639 drivers/scsi/myrb.c 	if (sdev->channel > myrb_logical_channel(shost)) {
sdev             1644 drivers/scsi/myrb.c 	if (sdev->channel == myrb_logical_channel(shost))
sdev             1650 drivers/scsi/myrb.c static int myrb_ldev_slave_alloc(struct scsi_device *sdev)
sdev             1652 drivers/scsi/myrb.c 	struct myrb_hba *cb = shost_priv(sdev->host);
sdev             1654 drivers/scsi/myrb.c 	unsigned short ldev_num = sdev->id;
sdev             1661 drivers/scsi/myrb.c 	sdev->hostdata = kzalloc(sizeof(*ldev_info), GFP_KERNEL);
sdev             1662 drivers/scsi/myrb.c 	if (!sdev->hostdata)
sdev             1664 drivers/scsi/myrb.c 	dev_dbg(&sdev->sdev_gendev,
sdev             1667 drivers/scsi/myrb.c 	memcpy(sdev->hostdata, ldev_info,
sdev             1692 drivers/scsi/myrb.c 	raid_set_level(myrb_raid_template, &sdev->sdev_gendev, level);
sdev             1696 drivers/scsi/myrb.c static int myrb_pdev_slave_alloc(struct scsi_device *sdev)
sdev             1698 drivers/scsi/myrb.c 	struct myrb_hba *cb = shost_priv(sdev->host);
sdev             1702 drivers/scsi/myrb.c 	if (sdev->id > MYRB_MAX_TARGETS)
sdev             1710 drivers/scsi/myrb.c 				  sdev, pdev_info);
sdev             1712 drivers/scsi/myrb.c 		dev_dbg(&sdev->sdev_gendev,
sdev             1719 drivers/scsi/myrb.c 		dev_dbg(&sdev->sdev_gendev,
sdev             1724 drivers/scsi/myrb.c 	dev_dbg(&sdev->sdev_gendev,
sdev             1726 drivers/scsi/myrb.c 		sdev->channel, sdev->id, pdev_info->state);
sdev             1727 drivers/scsi/myrb.c 	sdev->hostdata = pdev_info;
sdev             1732 drivers/scsi/myrb.c static int myrb_slave_alloc(struct scsi_device *sdev)
sdev             1734 drivers/scsi/myrb.c 	if (sdev->channel > myrb_logical_channel(sdev->host))
sdev             1737 drivers/scsi/myrb.c 	if (sdev->lun > 0)
sdev             1740 drivers/scsi/myrb.c 	if (sdev->channel == myrb_logical_channel(sdev->host))
sdev             1741 drivers/scsi/myrb.c 		return myrb_ldev_slave_alloc(sdev);
sdev             1743 drivers/scsi/myrb.c 	return myrb_pdev_slave_alloc(sdev);
sdev             1746 drivers/scsi/myrb.c static int myrb_slave_configure(struct scsi_device *sdev)
sdev             1750 drivers/scsi/myrb.c 	if (sdev->channel > myrb_logical_channel(sdev->host))
sdev             1753 drivers/scsi/myrb.c 	if (sdev->channel < myrb_logical_channel(sdev->host)) {
sdev             1754 drivers/scsi/myrb.c 		sdev->no_uld_attach = 1;
sdev             1757 drivers/scsi/myrb.c 	if (sdev->lun != 0)
sdev             1760 drivers/scsi/myrb.c 	ldev_info = sdev->hostdata;
sdev             1764 drivers/scsi/myrb.c 		sdev_printk(KERN_INFO, sdev,
sdev             1768 drivers/scsi/myrb.c 	sdev->tagged_supported = 1;
sdev             1772 drivers/scsi/myrb.c static void myrb_slave_destroy(struct scsi_device *sdev)
sdev             1774 drivers/scsi/myrb.c 	kfree(sdev->hostdata);
sdev             1777 drivers/scsi/myrb.c static int myrb_biosparam(struct scsi_device *sdev, struct block_device *bdev,
sdev             1780 drivers/scsi/myrb.c 	struct myrb_hba *cb = shost_priv(sdev->host);
sdev             1792 drivers/scsi/myrb.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             1793 drivers/scsi/myrb.c 	struct myrb_hba *cb = shost_priv(sdev->host);
sdev             1796 drivers/scsi/myrb.c 	if (!sdev->hostdata)
sdev             1799 drivers/scsi/myrb.c 	if (sdev->channel == myrb_logical_channel(sdev->host)) {
sdev             1800 drivers/scsi/myrb.c 		struct myrb_ldev_info *ldev_info = sdev->hostdata;
sdev             1810 drivers/scsi/myrb.c 		struct myrb_pdev_state *pdev_info = sdev->hostdata;
sdev             1815 drivers/scsi/myrb.c 					  sdev, pdev_info);
sdev             1817 drivers/scsi/myrb.c 			sdev_printk(KERN_INFO, sdev,
sdev             1837 drivers/scsi/myrb.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             1838 drivers/scsi/myrb.c 	struct myrb_hba *cb = shost_priv(sdev->host);
sdev             1853 drivers/scsi/myrb.c 	pdev_info = sdev->hostdata;
sdev             1855 drivers/scsi/myrb.c 		sdev_printk(KERN_INFO, sdev,
sdev             1860 drivers/scsi/myrb.c 		sdev_printk(KERN_INFO, sdev,
sdev             1868 drivers/scsi/myrb.c 	status = myrb_set_pdev_state(cb, sdev, new_state);
sdev             1873 drivers/scsi/myrb.c 		sdev_printk(KERN_INFO, sdev,
sdev             1878 drivers/scsi/myrb.c 		sdev_printk(KERN_INFO, sdev,
sdev             1883 drivers/scsi/myrb.c 		sdev_printk(KERN_INFO, sdev,
sdev             1888 drivers/scsi/myrb.c 		sdev_printk(KERN_INFO, sdev,
sdev             1893 drivers/scsi/myrb.c 		sdev_printk(KERN_INFO, sdev,
sdev             1905 drivers/scsi/myrb.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             1907 drivers/scsi/myrb.c 	if (sdev->channel == myrb_logical_channel(sdev->host)) {
sdev             1908 drivers/scsi/myrb.c 		struct myrb_ldev_info *ldev_info = sdev->hostdata;
sdev             1927 drivers/scsi/myrb.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             1928 drivers/scsi/myrb.c 	struct myrb_hba *cb = shost_priv(sdev->host);
sdev             1932 drivers/scsi/myrb.c 	if (sdev->channel < myrb_logical_channel(sdev->host))
sdev             1937 drivers/scsi/myrb.c 	if (rbld_buf.ldev_num != sdev->id ||
sdev             1949 drivers/scsi/myrb.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             1950 drivers/scsi/myrb.c 	struct myrb_hba *cb = shost_priv(sdev->host);
sdev             1961 drivers/scsi/myrb.c 	if (sdev->channel >= myrb_logical_channel(sdev->host))
sdev             1967 drivers/scsi/myrb.c 			sdev_printk(KERN_INFO, sdev,
sdev             1977 drivers/scsi/myrb.c 		mbox->type3D.channel = sdev->channel;
sdev             1978 drivers/scsi/myrb.c 		mbox->type3D.target = sdev->id;
sdev             1987 drivers/scsi/myrb.c 			sdev_printk(KERN_INFO, sdev,
sdev             1995 drivers/scsi/myrb.c 			sdev_printk(KERN_INFO, sdev,
sdev             2012 drivers/scsi/myrb.c 		sdev_printk(KERN_INFO, sdev, "Rebuild %s\n",
sdev             2017 drivers/scsi/myrb.c 		sdev_printk(KERN_INFO, sdev,
sdev             2041 drivers/scsi/myrb.c 		sdev_printk(KERN_INFO, sdev,
sdev             2044 drivers/scsi/myrb.c 		sdev_printk(KERN_INFO, sdev,
sdev             2054 drivers/scsi/myrb.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             2055 drivers/scsi/myrb.c 	struct myrb_hba *cb = shost_priv(sdev->host);
sdev             2068 drivers/scsi/myrb.c 	if (sdev->channel < myrb_logical_channel(sdev->host))
sdev             2074 drivers/scsi/myrb.c 			sdev_printk(KERN_INFO, sdev,
sdev             2084 drivers/scsi/myrb.c 		mbox->type3C.ldev_num = sdev->id;
sdev             2094 drivers/scsi/myrb.c 		if (ldev_num != sdev->id) {
sdev             2095 drivers/scsi/myrb.c 			sdev_printk(KERN_INFO, sdev,
sdev             2102 drivers/scsi/myrb.c 			sdev_printk(KERN_INFO, sdev,
sdev             2119 drivers/scsi/myrb.c 		sdev_printk(KERN_INFO, sdev, "Check Consistency %s\n",
sdev             2124 drivers/scsi/myrb.c 		sdev_printk(KERN_INFO, sdev,
sdev             2148 drivers/scsi/myrb.c 		sdev_printk(KERN_INFO, sdev,
sdev             2151 drivers/scsi/myrb.c 		sdev_printk(KERN_INFO, sdev,
sdev             2251 drivers/scsi/myrb.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             2253 drivers/scsi/myrb.c 	return sdev->channel == myrb_logical_channel(sdev->host);
sdev             2262 drivers/scsi/myrb.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             2263 drivers/scsi/myrb.c 	struct myrb_hba *cb = shost_priv(sdev->host);
sdev             2269 drivers/scsi/myrb.c 	if (sdev->channel < myrb_logical_channel(sdev->host))
sdev             2273 drivers/scsi/myrb.c 		if (rbld_buf.ldev_num == sdev->id) {
sdev             2289 drivers/scsi/myrb.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             2290 drivers/scsi/myrb.c 	struct myrb_hba *cb = shost_priv(sdev->host);
sdev             2291 drivers/scsi/myrb.c 	struct myrb_ldev_info *ldev_info = sdev->hostdata;
sdev             2295 drivers/scsi/myrb.c 	if (sdev->channel < myrb_logical_channel(sdev->host) || !ldev_info)
sdev              820 drivers/scsi/myrs.c 	struct scsi_device *sdev;
sdev              854 drivers/scsi/myrs.c 		sdev = scsi_device_lookup(shost, ev->channel,
sdev              856 drivers/scsi/myrs.c 		sdev_printk(KERN_INFO, sdev, "event %d: Physical Device %s\n",
sdev              858 drivers/scsi/myrs.c 		if (sdev && sdev->hostdata &&
sdev              859 drivers/scsi/myrs.c 		    sdev->channel < cs->ctlr_info->physchan_present) {
sdev              860 drivers/scsi/myrs.c 			struct myrs_pdev_info *pdev_info = sdev->hostdata;
sdev              940 drivers/scsi/myrs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev              941 drivers/scsi/myrs.c 	struct myrs_hba *cs = shost_priv(sdev->host);
sdev              944 drivers/scsi/myrs.c 	if (!sdev->hostdata)
sdev              947 drivers/scsi/myrs.c 	if (sdev->channel >= cs->ctlr_info->physchan_present) {
sdev              948 drivers/scsi/myrs.c 		struct myrs_ldev_info *ldev_info = sdev->hostdata;
sdev              961 drivers/scsi/myrs.c 		pdev_info = sdev->hostdata;
sdev              975 drivers/scsi/myrs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev              976 drivers/scsi/myrs.c 	struct myrs_hba *cs = shost_priv(sdev->host);
sdev              993 drivers/scsi/myrs.c 	if (sdev->channel < cs->ctlr_info->physchan_present) {
sdev              994 drivers/scsi/myrs.c 		struct myrs_pdev_info *pdev_info = sdev->hostdata;
sdev              999 drivers/scsi/myrs.c 			sdev_printk(KERN_INFO, sdev,
sdev             1004 drivers/scsi/myrs.c 		status = myrs_translate_pdev(cs, sdev->channel, sdev->id,
sdev             1005 drivers/scsi/myrs.c 					     sdev->lun, pdev_devmap);
sdev             1010 drivers/scsi/myrs.c 		struct myrs_ldev_info *ldev_info = sdev->hostdata;
sdev             1013 drivers/scsi/myrs.c 			sdev_printk(KERN_INFO, sdev,
sdev             1035 drivers/scsi/myrs.c 		if (sdev->channel < cs->ctlr_info->physchan_present) {
sdev             1036 drivers/scsi/myrs.c 			struct myrs_pdev_info *pdev_info = sdev->hostdata;
sdev             1040 drivers/scsi/myrs.c 			struct myrs_ldev_info *ldev_info = sdev->hostdata;
sdev             1044 drivers/scsi/myrs.c 		sdev_printk(KERN_INFO, sdev,
sdev             1049 drivers/scsi/myrs.c 	sdev_printk(KERN_INFO, sdev,
sdev             1059 drivers/scsi/myrs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             1060 drivers/scsi/myrs.c 	struct myrs_hba *cs = shost_priv(sdev->host);
sdev             1063 drivers/scsi/myrs.c 	if (!sdev->hostdata)
sdev             1066 drivers/scsi/myrs.c 	if (sdev->channel >= cs->ctlr_info->physchan_present) {
sdev             1069 drivers/scsi/myrs.c 		ldev_info = sdev->hostdata;
sdev             1085 drivers/scsi/myrs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             1086 drivers/scsi/myrs.c 	struct myrs_hba *cs = shost_priv(sdev->host);
sdev             1091 drivers/scsi/myrs.c 	if (sdev->channel < cs->ctlr_info->physchan_present)
sdev             1094 drivers/scsi/myrs.c 	ldev_info = sdev->hostdata;
sdev             1098 drivers/scsi/myrs.c 		sdev_printk(KERN_INFO, sdev,
sdev             1114 drivers/scsi/myrs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             1115 drivers/scsi/myrs.c 	struct myrs_hba *cs = shost_priv(sdev->host);
sdev             1123 drivers/scsi/myrs.c 	if (sdev->channel < cs->ctlr_info->physchan_present)
sdev             1126 drivers/scsi/myrs.c 	ldev_info = sdev->hostdata;
sdev             1137 drivers/scsi/myrs.c 		sdev_printk(KERN_INFO, sdev,
sdev             1144 drivers/scsi/myrs.c 		sdev_printk(KERN_INFO, sdev,
sdev             1149 drivers/scsi/myrs.c 		sdev_printk(KERN_INFO, sdev,
sdev             1173 drivers/scsi/myrs.c 		sdev_printk(KERN_INFO, sdev,
sdev             1178 drivers/scsi/myrs.c 		sdev_printk(KERN_INFO, sdev, "Rebuild %s\n",
sdev             1190 drivers/scsi/myrs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             1191 drivers/scsi/myrs.c 	struct myrs_hba *cs = shost_priv(sdev->host);
sdev             1196 drivers/scsi/myrs.c 	if (sdev->channel < cs->ctlr_info->physchan_present)
sdev             1199 drivers/scsi/myrs.c 	ldev_info = sdev->hostdata;
sdev             1215 drivers/scsi/myrs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             1216 drivers/scsi/myrs.c 	struct myrs_hba *cs = shost_priv(sdev->host);
sdev             1224 drivers/scsi/myrs.c 	if (sdev->channel < cs->ctlr_info->physchan_present)
sdev             1227 drivers/scsi/myrs.c 	ldev_info = sdev->hostdata;
sdev             1238 drivers/scsi/myrs.c 		sdev_printk(KERN_INFO, sdev,
sdev             1244 drivers/scsi/myrs.c 		sdev_printk(KERN_INFO, sdev,
sdev             1250 drivers/scsi/myrs.c 		sdev_printk(KERN_INFO, sdev,
sdev             1277 drivers/scsi/myrs.c 		sdev_printk(KERN_INFO, sdev,
sdev             1282 drivers/scsi/myrs.c 		sdev_printk(KERN_INFO, sdev, "Consistency Check %s\n",
sdev             1499 drivers/scsi/myrs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             1500 drivers/scsi/myrs.c 	struct myrs_hba *cs = shost_priv(sdev->host);
sdev             1590 drivers/scsi/myrs.c 	struct scsi_device *sdev = scmd->device;
sdev             1612 drivers/scsi/myrs.c 			struct myrs_ldev_info *ldev_info = sdev->hostdata;
sdev             1641 drivers/scsi/myrs.c 			struct myrs_ldev_info *ldev_info = sdev->hostdata;
sdev             1650 drivers/scsi/myrs.c 			mbox->SCSI_10.pdev.lun = sdev->lun;
sdev             1651 drivers/scsi/myrs.c 			mbox->SCSI_10.pdev.target = sdev->id;
sdev             1652 drivers/scsi/myrs.c 			mbox->SCSI_10.pdev.channel = sdev->channel;
sdev             1687 drivers/scsi/myrs.c 			struct myrs_ldev_info *ldev_info = sdev->hostdata;
sdev             1696 drivers/scsi/myrs.c 			mbox->SCSI_255.pdev.lun = sdev->lun;
sdev             1697 drivers/scsi/myrs.c 			mbox->SCSI_255.pdev.target = sdev->id;
sdev             1698 drivers/scsi/myrs.c 			mbox->SCSI_255.pdev.channel = sdev->channel;
sdev             1782 drivers/scsi/myrs.c 		struct scsi_device *sdev)
sdev             1786 drivers/scsi/myrs.c 		sdev->channel - cs->ctlr_info->physchan_present;
sdev             1788 drivers/scsi/myrs.c 	ldev_num = sdev->id + chan_offset * sdev->host->max_id;
sdev             1793 drivers/scsi/myrs.c static int myrs_slave_alloc(struct scsi_device *sdev)
sdev             1795 drivers/scsi/myrs.c 	struct myrs_hba *cs = shost_priv(sdev->host);
sdev             1798 drivers/scsi/myrs.c 	if (sdev->channel > sdev->host->max_channel)
sdev             1801 drivers/scsi/myrs.c 	if (sdev->channel >= cs->ctlr_info->physchan_present) {
sdev             1805 drivers/scsi/myrs.c 		if (sdev->lun > 0)
sdev             1808 drivers/scsi/myrs.c 		ldev_num = myrs_translate_ldev(cs, sdev);
sdev             1816 drivers/scsi/myrs.c 			sdev->hostdata = NULL;
sdev             1821 drivers/scsi/myrs.c 			dev_dbg(&sdev->sdev_gendev,
sdev             1826 drivers/scsi/myrs.c 			sdev->hostdata = ldev_info;
sdev             1859 drivers/scsi/myrs.c 				       &sdev->sdev_gendev, level);
sdev             1864 drivers/scsi/myrs.c 				sdev_printk(KERN_DEBUG, sdev,
sdev             1876 drivers/scsi/myrs.c 		status = myrs_get_pdev_info(cs, sdev->channel,
sdev             1877 drivers/scsi/myrs.c 					    sdev->id, sdev->lun,
sdev             1880 drivers/scsi/myrs.c 			sdev->hostdata = NULL;
sdev             1884 drivers/scsi/myrs.c 		sdev->hostdata = pdev_info;
sdev             1889 drivers/scsi/myrs.c static int myrs_slave_configure(struct scsi_device *sdev)
sdev             1891 drivers/scsi/myrs.c 	struct myrs_hba *cs = shost_priv(sdev->host);
sdev             1894 drivers/scsi/myrs.c 	if (sdev->channel > sdev->host->max_channel)
sdev             1897 drivers/scsi/myrs.c 	if (sdev->channel < cs->ctlr_info->physchan_present) {
sdev             1899 drivers/scsi/myrs.c 		if (sdev->type == TYPE_RAID)
sdev             1901 drivers/scsi/myrs.c 		sdev->no_uld_attach = 1;
sdev             1904 drivers/scsi/myrs.c 	if (sdev->lun != 0)
sdev             1907 drivers/scsi/myrs.c 	ldev_info = sdev->hostdata;
sdev             1912 drivers/scsi/myrs.c 		sdev->wce_default_on = 1;
sdev             1913 drivers/scsi/myrs.c 	sdev->tagged_supported = 1;
sdev             1917 drivers/scsi/myrs.c static void myrs_slave_destroy(struct scsi_device *sdev)
sdev             1919 drivers/scsi/myrs.c 	kfree(sdev->hostdata);
sdev             1968 drivers/scsi/myrs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             1969 drivers/scsi/myrs.c 	struct myrs_hba *cs = shost_priv(sdev->host);
sdev             1971 drivers/scsi/myrs.c 	return (sdev->channel >= cs->ctlr_info->physchan_present) ? 1 : 0;
sdev             1981 drivers/scsi/myrs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             1982 drivers/scsi/myrs.c 	struct myrs_hba *cs = shost_priv(sdev->host);
sdev             1983 drivers/scsi/myrs.c 	struct myrs_ldev_info *ldev_info = sdev->hostdata;
sdev             1987 drivers/scsi/myrs.c 	if (sdev->channel < cs->ctlr_info->physchan_present || !ldev_info)
sdev             2006 drivers/scsi/myrs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             2007 drivers/scsi/myrs.c 	struct myrs_hba *cs = shost_priv(sdev->host);
sdev             2008 drivers/scsi/myrs.c 	struct myrs_ldev_info *ldev_info = sdev->hostdata;
sdev             2011 drivers/scsi/myrs.c 	if (sdev->channel < cs->ctlr_info->physchan_present || !ldev_info)
sdev             2147 drivers/scsi/myrs.c 		struct scsi_device *sdev;
sdev             2149 drivers/scsi/myrs.c 		shost_for_each_device(sdev, shost) {
sdev             2153 drivers/scsi/myrs.c 			if (sdev->channel < info->physchan_present)
sdev             2155 drivers/scsi/myrs.c 			ldev_info = sdev->hostdata;
sdev             1914 drivers/scsi/ncr53c8xx.c static	struct lcb *	ncr_setup_lcb	(struct ncb *np, struct scsi_device *sdev);
sdev             1934 drivers/scsi/ncr53c8xx.c static	void	ncr_setup_tags	(struct ncb *np, struct scsi_device *sdev);
sdev             4112 drivers/scsi/ncr53c8xx.c 	struct scsi_device *sdev = cmd->device;
sdev             4113 drivers/scsi/ncr53c8xx.c 	struct tcb *tp = &np->target[sdev->id];
sdev             4114 drivers/scsi/ncr53c8xx.c 	struct lcb *lp = tp->lp[sdev->lun];
sdev             4129 drivers/scsi/ncr53c8xx.c 	if ((sdev->id == np->myaddr	  ) ||
sdev             4130 drivers/scsi/ncr53c8xx.c 		(sdev->id >= MAX_TARGET) ||
sdev             4131 drivers/scsi/ncr53c8xx.c 		(sdev->lun    >= MAX_LUN   )) {
sdev             4183 drivers/scsi/ncr53c8xx.c 	idmsg = IDENTIFY(0, sdev->lun);
sdev             4353 drivers/scsi/ncr53c8xx.c 	cp->phys.select.sel_id		= sdev_id(sdev);
sdev             5623 drivers/scsi/ncr53c8xx.c static void ncr_setup_tags (struct ncb *np, struct scsi_device *sdev)
sdev             5625 drivers/scsi/ncr53c8xx.c 	unsigned char tn = sdev->id, ln = sdev->lun;
sdev             5633 drivers/scsi/ncr53c8xx.c 	if ((!tp) || (!lp) || !sdev)
sdev             5657 drivers/scsi/ncr53c8xx.c 	if (sdev->tagged_supported && lp->numtags > 1) {
sdev             5702 drivers/scsi/ncr53c8xx.c 			dev_info(&sdev->sdev_gendev,
sdev             5706 drivers/scsi/ncr53c8xx.c 			dev_info(&sdev->sdev_gendev,
sdev             7573 drivers/scsi/ncr53c8xx.c static struct lcb *ncr_setup_lcb (struct ncb *np, struct scsi_device *sdev)
sdev             7575 drivers/scsi/ncr53c8xx.c 	unsigned char tn = sdev->id, ln = sdev->lun;
sdev             7587 drivers/scsi/ncr53c8xx.c 	if (sdev->tagged_supported && lp->jump_ccb == &lp->jump_ccb_0) {
sdev             7602 drivers/scsi/ncr53c8xx.c 		ncr_setup_tags (np, sdev);
sdev              255 drivers/scsi/pm8001/pm8001_sas.h 	struct scsi_device	*sdev;
sdev             4294 drivers/scsi/pmcraid.c 	struct scsi_device *sdev;
sdev             4311 drivers/scsi/pmcraid.c 			sdev = res->scsi_dev;
sdev             4318 drivers/scsi/pmcraid.c 			if (!scsi_device_get(sdev)) {
sdev             4329 drivers/scsi/pmcraid.c 				scsi_remove_device(sdev);
sdev             4330 drivers/scsi/pmcraid.c 				scsi_device_put(sdev);
sdev              821 drivers/scsi/ppa.c static int ppa_biosparam(struct scsi_device *sdev, struct block_device *dev,
sdev              905 drivers/scsi/qedf/qedf_main.c static int qedf_slave_configure(struct scsi_device *sdev)
sdev              908 drivers/scsi/qedf/qedf_main.c 		scsi_change_queue_depth(sdev, qedf_queue_depth);
sdev             1034 drivers/scsi/qla1280.c qla1280_biosparam(struct scsi_device *sdev, struct block_device *bdev,
sdev             1817 drivers/scsi/qla2xxx/qla_os.c qla2xxx_slave_alloc(struct scsi_device *sdev)
sdev             1819 drivers/scsi/qla2xxx/qla_os.c 	struct fc_rport *rport = starget_to_rport(scsi_target(sdev));
sdev             1824 drivers/scsi/qla2xxx/qla_os.c 	sdev->hostdata = *(fc_port_t **)rport->dd_data;
sdev             1830 drivers/scsi/qla2xxx/qla_os.c qla2xxx_slave_configure(struct scsi_device *sdev)
sdev             1832 drivers/scsi/qla2xxx/qla_os.c 	scsi_qla_host_t *vha = shost_priv(sdev->host);
sdev             1836 drivers/scsi/qla2xxx/qla_os.c 		blk_queue_update_dma_alignment(sdev->request_queue, 0x7);
sdev             1838 drivers/scsi/qla2xxx/qla_os.c 	scsi_change_queue_depth(sdev, req->max_q_depth);
sdev             1843 drivers/scsi/qla2xxx/qla_os.c qla2xxx_slave_destroy(struct scsi_device *sdev)
sdev             1845 drivers/scsi/qla2xxx/qla_os.c 	sdev->hostdata = NULL;
sdev             9033 drivers/scsi/qla4xxx/ql4_os.c static int qla4xxx_slave_alloc(struct scsi_device *sdev)
sdev             9040 drivers/scsi/qla4xxx/ql4_os.c 	cls_sess = starget_to_session(sdev->sdev_target);
sdev             9044 drivers/scsi/qla4xxx/ql4_os.c 	sdev->hostdata = ddb;
sdev             9049 drivers/scsi/qla4xxx/ql4_os.c 	scsi_change_queue_depth(sdev, queue_depth);
sdev             9155 drivers/scsi/qla4xxx/ql4_os.c 					struct scsi_device *sdev)
sdev             9168 drivers/scsi/qla4xxx/ql4_os.c 		    (!sdev || sdev == cmd->device)) {
sdev              977 drivers/scsi/qlogicpti.c static int qlogicpti_slave_configure(struct scsi_device *sdev)
sdev              979 drivers/scsi/qlogicpti.c 	struct qlogicpti *qpti = shost_priv(sdev->host);
sdev              980 drivers/scsi/qlogicpti.c 	int tgt = sdev->id;
sdev              985 drivers/scsi/qlogicpti.c 	if (sdev->sdtr) {
sdev              992 drivers/scsi/qlogicpti.c 	if (sdev->wdtr)
sdev               66 drivers/scsi/raid_class.c 		struct scsi_device *sdev = to_scsi_device(dev);
sdev               68 drivers/scsi/raid_class.c 		if (i->f->cookie != sdev->host->hostt)
sdev              183 drivers/scsi/scsi.c 	struct scsi_device *sdev = cmd->device;
sdev              184 drivers/scsi/scsi.c 	struct scsi_target *starget = scsi_target(sdev);
sdev              185 drivers/scsi/scsi.c 	struct Scsi_Host *shost = sdev->host;
sdev              189 drivers/scsi/scsi.c 	scsi_device_unbusy(sdev);
sdev              199 drivers/scsi/scsi.c 	if (atomic_read(&sdev->device_blocked))
sdev              200 drivers/scsi/scsi.c 		atomic_set(&sdev->device_blocked, 0);
sdev              209 drivers/scsi/scsi.c 	SCSI_LOG_MLCOMPLETE(4, sdev_printk(KERN_INFO, sdev,
sdev              238 drivers/scsi/scsi.c int scsi_change_queue_depth(struct scsi_device *sdev, int depth)
sdev              241 drivers/scsi/scsi.c 		sdev->queue_depth = depth;
sdev              245 drivers/scsi/scsi.c 	if (sdev->request_queue)
sdev              246 drivers/scsi/scsi.c 		blk_set_queue_depth(sdev->request_queue, depth);
sdev              248 drivers/scsi/scsi.c 	return sdev->queue_depth;
sdev              271 drivers/scsi/scsi.c int scsi_track_queue_full(struct scsi_device *sdev, int depth)
sdev              279 drivers/scsi/scsi.c 	if ((jiffies >> 4) == (sdev->last_queue_full_time >> 4))
sdev              282 drivers/scsi/scsi.c 	sdev->last_queue_full_time = jiffies;
sdev              283 drivers/scsi/scsi.c 	if (sdev->last_queue_full_depth != depth) {
sdev              284 drivers/scsi/scsi.c 		sdev->last_queue_full_count = 1;
sdev              285 drivers/scsi/scsi.c 		sdev->last_queue_full_depth = depth;
sdev              287 drivers/scsi/scsi.c 		sdev->last_queue_full_count++;
sdev              290 drivers/scsi/scsi.c 	if (sdev->last_queue_full_count <= 10)
sdev              293 drivers/scsi/scsi.c 	return scsi_change_queue_depth(sdev, depth);
sdev              309 drivers/scsi/scsi.c static int scsi_vpd_inquiry(struct scsi_device *sdev, unsigned char *buffer,
sdev              329 drivers/scsi/scsi.c 	result = scsi_execute_req(sdev, cmd, DMA_FROM_DEVICE, buffer,
sdev              355 drivers/scsi/scsi.c int scsi_get_vpd_page(struct scsi_device *sdev, u8 page, unsigned char *buf,
sdev              360 drivers/scsi/scsi.c 	if (sdev->skip_vpd_pages)
sdev              364 drivers/scsi/scsi.c 	result = scsi_vpd_inquiry(sdev, buf, 0, buf_len);
sdev              383 drivers/scsi/scsi.c 	result = scsi_vpd_inquiry(sdev, buf, page, buf_len);
sdev              401 drivers/scsi/scsi.c static struct scsi_vpd *scsi_get_vpd_buf(struct scsi_device *sdev, u8 page)
sdev              411 drivers/scsi/scsi.c 	result = scsi_vpd_inquiry(sdev, vpd_buf->data, page, vpd_len);
sdev              427 drivers/scsi/scsi.c static void scsi_update_vpd_page(struct scsi_device *sdev, u8 page,
sdev              432 drivers/scsi/scsi.c 	vpd_buf = scsi_get_vpd_buf(sdev, page);
sdev              436 drivers/scsi/scsi.c 	mutex_lock(&sdev->inquiry_mutex);
sdev              438 drivers/scsi/scsi.c 			   lockdep_is_held(&sdev->inquiry_mutex));
sdev              439 drivers/scsi/scsi.c 	mutex_unlock(&sdev->inquiry_mutex);
sdev              454 drivers/scsi/scsi.c void scsi_attach_vpd(struct scsi_device *sdev)
sdev              459 drivers/scsi/scsi.c 	if (!scsi_device_supports_vpd(sdev))
sdev              463 drivers/scsi/scsi.c 	vpd_buf = scsi_get_vpd_buf(sdev, 0);
sdev              469 drivers/scsi/scsi.c 			scsi_update_vpd_page(sdev, 0x80, &sdev->vpd_pg80);
sdev              471 drivers/scsi/scsi.c 			scsi_update_vpd_page(sdev, 0x83, &sdev->vpd_pg83);
sdev              487 drivers/scsi/scsi.c int scsi_report_opcode(struct scsi_device *sdev, unsigned char *buffer,
sdev              494 drivers/scsi/scsi.c 	if (sdev->no_report_opcodes || sdev->scsi_level < SCSI_SPC_3)
sdev              505 drivers/scsi/scsi.c 	result = scsi_execute_req(sdev, cmd, DMA_FROM_DEVICE, buffer, len,
sdev              531 drivers/scsi/scsi.c int scsi_device_get(struct scsi_device *sdev)
sdev              533 drivers/scsi/scsi.c 	if (sdev->sdev_state == SDEV_DEL || sdev->sdev_state == SDEV_CANCEL)
sdev              535 drivers/scsi/scsi.c 	if (!get_device(&sdev->sdev_gendev))
sdev              537 drivers/scsi/scsi.c 	if (!try_module_get(sdev->host->hostt->module))
sdev              542 drivers/scsi/scsi.c 	put_device(&sdev->sdev_gendev);
sdev              556 drivers/scsi/scsi.c void scsi_device_put(struct scsi_device *sdev)
sdev              558 drivers/scsi/scsi.c 	module_put(sdev->host->hostt->module);
sdev              559 drivers/scsi/scsi.c 	put_device(&sdev->sdev_gendev);
sdev              602 drivers/scsi/scsi.c 	struct scsi_device *sdev;
sdev              604 drivers/scsi/scsi.c 	shost_for_each_device(sdev, shost) {
sdev              605 drivers/scsi/scsi.c 		if ((sdev->channel == starget->channel) &&
sdev              606 drivers/scsi/scsi.c 		    (sdev->id == starget->id))
sdev              607 drivers/scsi/scsi.c 			fn(sdev, data);
sdev              630 drivers/scsi/scsi.c 	struct scsi_device *sdev;
sdev              632 drivers/scsi/scsi.c 	__shost_for_each_device(sdev, shost) {
sdev              633 drivers/scsi/scsi.c 		if ((sdev->channel == starget->channel) &&
sdev              634 drivers/scsi/scsi.c 		    (sdev->id == starget->id))
sdev              635 drivers/scsi/scsi.c 			fn(sdev, data);
sdev              658 drivers/scsi/scsi.c 	struct scsi_device *sdev;
sdev              660 drivers/scsi/scsi.c 	list_for_each_entry(sdev, &starget->devices, same_target_siblings) {
sdev              661 drivers/scsi/scsi.c 		if (sdev->sdev_state == SDEV_DEL)
sdev              663 drivers/scsi/scsi.c 		if (sdev->lun ==lun)
sdev              664 drivers/scsi/scsi.c 			return sdev;
sdev              683 drivers/scsi/scsi.c 	struct scsi_device *sdev;
sdev              688 drivers/scsi/scsi.c 	sdev = __scsi_device_lookup_by_target(starget, lun);
sdev              689 drivers/scsi/scsi.c 	if (sdev && scsi_device_get(sdev))
sdev              690 drivers/scsi/scsi.c 		sdev = NULL;
sdev              693 drivers/scsi/scsi.c 	return sdev;
sdev              716 drivers/scsi/scsi.c 	struct scsi_device *sdev;
sdev              718 drivers/scsi/scsi.c 	list_for_each_entry(sdev, &shost->__devices, siblings) {
sdev              719 drivers/scsi/scsi.c 		if (sdev->sdev_state == SDEV_DEL)
sdev              721 drivers/scsi/scsi.c 		if (sdev->channel == channel && sdev->id == id &&
sdev              722 drivers/scsi/scsi.c 				sdev->lun ==lun)
sdev              723 drivers/scsi/scsi.c 			return sdev;
sdev              744 drivers/scsi/scsi.c 	struct scsi_device *sdev;
sdev              748 drivers/scsi/scsi.c 	sdev = __scsi_device_lookup(shost, channel, id, lun);
sdev              749 drivers/scsi/scsi.c 	if (sdev && scsi_device_get(sdev))
sdev              750 drivers/scsi/scsi.c 		sdev = NULL;
sdev              753 drivers/scsi/scsi.c 	return sdev;
sdev              850 drivers/scsi/scsi_debug.c static void config_cdb_len(struct scsi_device *sdev)
sdev              854 drivers/scsi/scsi_debug.c 		sdev->use_10_for_rw = false;
sdev              855 drivers/scsi/scsi_debug.c 		sdev->use_16_for_rw = false;
sdev              856 drivers/scsi/scsi_debug.c 		sdev->use_10_for_ms = false;
sdev              859 drivers/scsi/scsi_debug.c 		sdev->use_10_for_rw = true;
sdev              860 drivers/scsi/scsi_debug.c 		sdev->use_16_for_rw = false;
sdev              861 drivers/scsi/scsi_debug.c 		sdev->use_10_for_ms = false;
sdev              864 drivers/scsi/scsi_debug.c 		sdev->use_10_for_rw = true;
sdev              865 drivers/scsi/scsi_debug.c 		sdev->use_16_for_rw = false;
sdev              866 drivers/scsi/scsi_debug.c 		sdev->use_10_for_ms = true;
sdev              869 drivers/scsi/scsi_debug.c 		sdev->use_10_for_rw = false;
sdev              870 drivers/scsi/scsi_debug.c 		sdev->use_16_for_rw = true;
sdev              871 drivers/scsi/scsi_debug.c 		sdev->use_10_for_ms = true;
sdev              874 drivers/scsi/scsi_debug.c 		sdev->use_10_for_rw = false;
sdev              875 drivers/scsi/scsi_debug.c 		sdev->use_16_for_rw = true;
sdev              876 drivers/scsi/scsi_debug.c 		sdev->use_10_for_ms = true;
sdev              881 drivers/scsi/scsi_debug.c 		sdev->use_10_for_rw = true;
sdev              882 drivers/scsi/scsi_debug.c 		sdev->use_16_for_rw = false;
sdev              883 drivers/scsi/scsi_debug.c 		sdev->use_10_for_ms = false;
sdev              893 drivers/scsi/scsi_debug.c 	struct scsi_device *sdev;
sdev              898 drivers/scsi/scsi_debug.c 		shost_for_each_device(sdev, shost) {
sdev              899 drivers/scsi/scsi_debug.c 			config_cdb_len(sdev);
sdev             3825 drivers/scsi/scsi_debug.c static struct sdebug_dev_info *find_build_dev_info(struct scsi_device *sdev)
sdev             3831 drivers/scsi/scsi_debug.c 	sdbg_host = *(struct sdebug_host_info **)shost_priv(sdev->host);
sdev             3837 drivers/scsi/scsi_debug.c 		if ((devip->used) && (devip->channel == sdev->channel) &&
sdev             3838 drivers/scsi/scsi_debug.c 		    (devip->target == sdev->id) &&
sdev             3839 drivers/scsi/scsi_debug.c 		    (devip->lun == sdev->lun))
sdev             3854 drivers/scsi/scsi_debug.c 	open_devip->channel = sdev->channel;
sdev             3855 drivers/scsi/scsi_debug.c 	open_devip->target = sdev->id;
sdev             3856 drivers/scsi/scsi_debug.c 	open_devip->lun = sdev->lun;
sdev             5541 drivers/scsi/scsi_debug.c static int sdebug_change_qdepth(struct scsi_device *sdev, int qdepth)
sdev             5547 drivers/scsi/scsi_debug.c 	devip = (struct sdebug_dev_info *)sdev->hostdata;
sdev             5559 drivers/scsi/scsi_debug.c 	scsi_change_queue_depth(sdev, qdepth);
sdev             5562 drivers/scsi/scsi_debug.c 		sdev_printk(KERN_INFO, sdev, "%s: qdepth=%d, num_in_q=%d\n",
sdev             5566 drivers/scsi/scsi_debug.c 	return sdev->queue_depth;
sdev              572 drivers/scsi/scsi_devinfo.c blist_flags_t scsi_get_device_flags(struct scsi_device *sdev,
sdev              576 drivers/scsi/scsi_devinfo.c 	return scsi_get_device_flags_keyed(sdev, vendor, model,
sdev              594 drivers/scsi/scsi_devinfo.c blist_flags_t scsi_get_device_flags_keyed(struct scsi_device *sdev,
sdev              610 drivers/scsi/scsi_devinfo.c 	if (sdev->sdev_bflags)
sdev              611 drivers/scsi/scsi_devinfo.c 		return sdev->sdev_bflags;
sdev               70 drivers/scsi/scsi_dh.c scsi_dh_find_driver(struct scsi_device *sdev)
sdev               74 drivers/scsi/scsi_dh.c 	if (scsi_device_tpgs(sdev))
sdev               78 drivers/scsi/scsi_dh.c 		if (!strncmp(sdev->vendor, b->vendor, strlen(b->vendor)) &&
sdev               79 drivers/scsi/scsi_dh.c 		    !strncmp(sdev->model, b->model, strlen(b->model))) {
sdev              123 drivers/scsi/scsi_dh.c static int scsi_dh_handler_attach(struct scsi_device *sdev,
sdev              131 drivers/scsi/scsi_dh.c 	error = scsi_dh->attach(sdev);
sdev              149 drivers/scsi/scsi_dh.c 			sdev_printk(KERN_ERR, sdev, "%s: Attach failed (%d)\n",
sdev              153 drivers/scsi/scsi_dh.c 		sdev->handler = scsi_dh;
sdev              162 drivers/scsi/scsi_dh.c static void scsi_dh_handler_detach(struct scsi_device *sdev)
sdev              164 drivers/scsi/scsi_dh.c 	sdev->handler->detach(sdev);
sdev              165 drivers/scsi/scsi_dh.c 	sdev_printk(KERN_NOTICE, sdev, "%s: Detached\n", sdev->handler->name);
sdev              166 drivers/scsi/scsi_dh.c 	module_put(sdev->handler->module);
sdev              169 drivers/scsi/scsi_dh.c void scsi_dh_add_device(struct scsi_device *sdev)
sdev              174 drivers/scsi/scsi_dh.c 	drv = scsi_dh_find_driver(sdev);
sdev              182 drivers/scsi/scsi_dh.c 		(void)scsi_dh_handler_attach(sdev, devinfo);
sdev              185 drivers/scsi/scsi_dh.c void scsi_dh_release_device(struct scsi_device *sdev)
sdev              187 drivers/scsi/scsi_dh.c 	if (sdev->handler)
sdev              188 drivers/scsi/scsi_dh.c 		scsi_dh_handler_detach(sdev);
sdev              252 drivers/scsi/scsi_dh.c 	struct scsi_device *sdev;
sdev              255 drivers/scsi/scsi_dh.c 	sdev = scsi_device_from_queue(q);
sdev              256 drivers/scsi/scsi_dh.c 	if (!sdev) {
sdev              262 drivers/scsi/scsi_dh.c 	if (!sdev->handler)
sdev              265 drivers/scsi/scsi_dh.c 	if (sdev->sdev_state == SDEV_CANCEL ||
sdev              266 drivers/scsi/scsi_dh.c 	    sdev->sdev_state == SDEV_DEL)
sdev              270 drivers/scsi/scsi_dh.c 	if (sdev->sdev_state == SDEV_OFFLINE)
sdev              273 drivers/scsi/scsi_dh.c 	if (sdev->handler->activate)
sdev              274 drivers/scsi/scsi_dh.c 		err = sdev->handler->activate(sdev, fn, data);
sdev              277 drivers/scsi/scsi_dh.c 	put_device(&sdev->sdev_gendev);
sdev              299 drivers/scsi/scsi_dh.c 	struct scsi_device *sdev;
sdev              302 drivers/scsi/scsi_dh.c 	sdev = scsi_device_from_queue(q);
sdev              303 drivers/scsi/scsi_dh.c 	if (!sdev)
sdev              306 drivers/scsi/scsi_dh.c 	if (sdev->handler && sdev->handler->set_params)
sdev              307 drivers/scsi/scsi_dh.c 		err = sdev->handler->set_params(sdev, params);
sdev              308 drivers/scsi/scsi_dh.c 	put_device(&sdev->sdev_gendev);
sdev              321 drivers/scsi/scsi_dh.c 	struct scsi_device *sdev;
sdev              325 drivers/scsi/scsi_dh.c 	sdev = scsi_device_from_queue(q);
sdev              326 drivers/scsi/scsi_dh.c 	if (!sdev)
sdev              335 drivers/scsi/scsi_dh.c 	if (sdev->handler) {
sdev              336 drivers/scsi/scsi_dh.c 		if (sdev->handler != scsi_dh)
sdev              341 drivers/scsi/scsi_dh.c 	err = scsi_dh_handler_attach(sdev, scsi_dh);
sdev              344 drivers/scsi/scsi_dh.c 	put_device(&sdev->sdev_gendev);
sdev              360 drivers/scsi/scsi_dh.c 	struct scsi_device *sdev;
sdev              363 drivers/scsi/scsi_dh.c 	sdev = scsi_device_from_queue(q);
sdev              364 drivers/scsi/scsi_dh.c 	if (!sdev)
sdev              367 drivers/scsi/scsi_dh.c 	if (sdev->handler)
sdev              368 drivers/scsi/scsi_dh.c 		handler_name = kstrdup(sdev->handler->name, gfp);
sdev              369 drivers/scsi/scsi_dh.c 	put_device(&sdev->sdev_gendev);
sdev              134 drivers/scsi/scsi_error.c 	struct scsi_device *sdev = scmd->device;
sdev              137 drivers/scsi/scsi_error.c 	if (scsi_host_eh_past_deadline(sdev->host)) {
sdev              145 drivers/scsi/scsi_error.c 		rtn = scsi_try_to_abort_cmd(sdev->host->hostt, scmd);
sdev              148 drivers/scsi/scsi_error.c 			if (scsi_host_eh_past_deadline(sdev->host)) {
sdev              188 drivers/scsi/scsi_error.c 	struct scsi_device *sdev = scmd->device;
sdev              189 drivers/scsi/scsi_error.c 	struct Scsi_Host *shost = sdev->host;
sdev              334 drivers/scsi/scsi_error.c int scsi_block_when_processing_errors(struct scsi_device *sdev)
sdev              338 drivers/scsi/scsi_error.c 	wait_event(sdev->host->host_wait, !scsi_host_in_recovery(sdev->host));
sdev              340 drivers/scsi/scsi_error.c 	online = scsi_device_online(sdev);
sdev              356 drivers/scsi/scsi_error.c 	struct scsi_device *sdev;
sdev              362 drivers/scsi/scsi_error.c 	shost_for_each_device(sdev, shost) {
sdev              364 drivers/scsi/scsi_error.c 			if (scmd->device == sdev) {
sdev              397 drivers/scsi/scsi_error.c static void scsi_report_lun_change(struct scsi_device *sdev)
sdev              399 drivers/scsi/scsi_error.c 	sdev->sdev_target->expecting_lun_change = 1;
sdev              408 drivers/scsi/scsi_error.c static void scsi_report_sense(struct scsi_device *sdev,
sdev              416 drivers/scsi/scsi_error.c 			sdev_printk(KERN_WARNING, sdev,
sdev              420 drivers/scsi/scsi_error.c 			scsi_report_lun_change(sdev);
sdev              421 drivers/scsi/scsi_error.c 			sdev_printk(KERN_WARNING, sdev,
sdev              427 drivers/scsi/scsi_error.c 			sdev_printk(KERN_WARNING, sdev,
sdev              435 drivers/scsi/scsi_error.c 			sdev_printk(KERN_WARNING, sdev,
sdev              443 drivers/scsi/scsi_error.c 			sdev_printk(KERN_WARNING, sdev,
sdev              449 drivers/scsi/scsi_error.c 			sdev_printk(KERN_WARNING, sdev,
sdev              453 drivers/scsi/scsi_error.c 			sdev_printk(KERN_WARNING, sdev,
sdev              457 drivers/scsi/scsi_error.c 			sdev_printk(KERN_WARNING, sdev,
sdev              460 drivers/scsi/scsi_error.c 			sdev_printk(KERN_WARNING, sdev,
sdev              465 drivers/scsi/scsi_error.c 		set_bit(evt_type, sdev->pending_events);
sdev              466 drivers/scsi/scsi_error.c 		schedule_work(&sdev->event_work);
sdev              483 drivers/scsi/scsi_error.c 	struct scsi_device *sdev = scmd->device;
sdev              489 drivers/scsi/scsi_error.c 	scsi_report_sense(sdev, &sshdr);
sdev              494 drivers/scsi/scsi_error.c 	if (sdev->handler && sdev->handler->check_sense) {
sdev              497 drivers/scsi/scsi_error.c 		rc = sdev->handler->check_sense(sdev, &sshdr);
sdev              541 drivers/scsi/scsi_error.c 		if (sshdr.asc == 0x44 && sdev->sdev_bflags & BLIST_RETRY_ITF)
sdev              544 drivers/scsi/scsi_error.c 		    sdev->sdev_bflags & BLIST_RETRY_ASC_C1)
sdev              643 drivers/scsi/scsi_error.c static void scsi_handle_queue_ramp_up(struct scsi_device *sdev)
sdev              645 drivers/scsi/scsi_error.c 	struct scsi_host_template *sht = sdev->host->hostt;
sdev              649 drivers/scsi/scsi_error.c 	    sdev->queue_depth >= sdev->max_queue_depth)
sdev              653 drivers/scsi/scsi_error.c 	    sdev->last_queue_ramp_up + sdev->queue_ramp_up_period))
sdev              657 drivers/scsi/scsi_error.c 	    sdev->last_queue_full_time + sdev->queue_ramp_up_period))
sdev              664 drivers/scsi/scsi_error.c 	shost_for_each_device(tmp_sdev, sdev->host) {
sdev              665 drivers/scsi/scsi_error.c 		if (tmp_sdev->channel != sdev->channel ||
sdev              666 drivers/scsi/scsi_error.c 		    tmp_sdev->id != sdev->id ||
sdev              667 drivers/scsi/scsi_error.c 		    tmp_sdev->queue_depth == sdev->max_queue_depth)
sdev              671 drivers/scsi/scsi_error.c 		sdev->last_queue_ramp_up = jiffies;
sdev              675 drivers/scsi/scsi_error.c static void scsi_handle_queue_full(struct scsi_device *sdev)
sdev              677 drivers/scsi/scsi_error.c 	struct scsi_host_template *sht = sdev->host->hostt;
sdev              683 drivers/scsi/scsi_error.c 	shost_for_each_device(tmp_sdev, sdev->host) {
sdev              684 drivers/scsi/scsi_error.c 		if (tmp_sdev->channel != sdev->channel ||
sdev              685 drivers/scsi/scsi_error.c 		    tmp_sdev->id != sdev->id)
sdev              843 drivers/scsi/scsi_error.c static void __scsi_report_device_reset(struct scsi_device *sdev, void *data)
sdev              845 drivers/scsi/scsi_error.c 	sdev->was_reset = 1;
sdev              846 drivers/scsi/scsi_error.c 	sdev->expecting_cc_ua = 1;
sdev              956 drivers/scsi/scsi_error.c 	struct scsi_device *sdev = scmd->device;
sdev             1005 drivers/scsi/scsi_error.c 	if (sdev->scsi_level <= SCSI_2 && sdev->scsi_level != SCSI_UNKNOWN)
sdev             1007 drivers/scsi/scsi_error.c 			(sdev->lun << 5 & 0xe0);
sdev             1058 drivers/scsi/scsi_error.c 	struct scsi_device *sdev = scmd->device;
sdev             1059 drivers/scsi/scsi_error.c 	struct Scsi_Host *shost = sdev->host;
sdev             1078 drivers/scsi/scsi_error.c 	mutex_lock(&sdev->state_mutex);
sdev             1079 drivers/scsi/scsi_error.c 	while (sdev->sdev_state == SDEV_BLOCK && timeleft > 0) {
sdev             1080 drivers/scsi/scsi_error.c 		mutex_unlock(&sdev->state_mutex);
sdev             1081 drivers/scsi/scsi_error.c 		SCSI_LOG_ERROR_RECOVERY(5, sdev_printk(KERN_DEBUG, sdev,
sdev             1082 drivers/scsi/scsi_error.c 			"%s: state %d <> %d\n", __func__, sdev->sdev_state,
sdev             1087 drivers/scsi/scsi_error.c 		mutex_lock(&sdev->state_mutex);
sdev             1089 drivers/scsi/scsi_error.c 	if (sdev->sdev_state != SDEV_BLOCK)
sdev             1093 drivers/scsi/scsi_error.c 	mutex_unlock(&sdev->state_mutex);
sdev             1331 drivers/scsi/scsi_error.c 	struct scsi_device *sdev;
sdev             1336 drivers/scsi/scsi_error.c 		sdev = scmd->device;
sdev             1339 drivers/scsi/scsi_error.c 			if (scsi_host_eh_past_deadline(sdev->host)) {
sdev             1343 drivers/scsi/scsi_error.c 					sdev_printk(KERN_INFO, sdev,
sdev             1356 drivers/scsi/scsi_error.c 			if (scmd->device == sdev) {
sdev             1407 drivers/scsi/scsi_error.c 	struct scsi_device *sdev;
sdev             1409 drivers/scsi/scsi_error.c 	shost_for_each_device(sdev, shost) {
sdev             1412 drivers/scsi/scsi_error.c 				sdev_printk(KERN_INFO, sdev,
sdev             1419 drivers/scsi/scsi_error.c 			if (scmd->device == sdev && SCSI_SENSE_VALID(scmd) &&
sdev             1429 drivers/scsi/scsi_error.c 			sdev_printk(KERN_INFO, sdev,
sdev             1434 drivers/scsi/scsi_error.c 			if (!scsi_device_online(sdev) ||
sdev             1438 drivers/scsi/scsi_error.c 					if (scmd->device == sdev &&
sdev             1445 drivers/scsi/scsi_error.c 				sdev_printk(KERN_INFO, sdev,
sdev             1472 drivers/scsi/scsi_error.c 	struct scsi_device *sdev;
sdev             1475 drivers/scsi/scsi_error.c 	shost_for_each_device(sdev, shost) {
sdev             1478 drivers/scsi/scsi_error.c 				sdev_printk(KERN_INFO, sdev,
sdev             1485 drivers/scsi/scsi_error.c 			if (scmd->device == sdev) {
sdev             1494 drivers/scsi/scsi_error.c 			sdev_printk(KERN_INFO, sdev,
sdev             1498 drivers/scsi/scsi_error.c 			if (!scsi_device_online(sdev) ||
sdev             1503 drivers/scsi/scsi_error.c 					if (scmd->device == sdev &&
sdev             1511 drivers/scsi/scsi_error.c 				sdev_printk(KERN_INFO, sdev,
sdev             1705 drivers/scsi/scsi_error.c 	struct scsi_device *sdev;
sdev             1710 drivers/scsi/scsi_error.c 		sdev = scmd->device;
sdev             1712 drivers/scsi/scsi_error.c 		mutex_lock(&sdev->state_mutex);
sdev             1713 drivers/scsi/scsi_error.c 		scsi_device_set_state(sdev, SDEV_OFFLINE);
sdev             1714 drivers/scsi/scsi_error.c 		mutex_unlock(&sdev->state_mutex);
sdev             1972 drivers/scsi/scsi_error.c static void scsi_eh_lock_door(struct scsi_device *sdev)
sdev             1977 drivers/scsi/scsi_error.c 	req = blk_get_request(sdev->request_queue, REQ_OP_SCSI_IN, 0);
sdev             2007 drivers/scsi/scsi_error.c 	struct scsi_device *sdev;
sdev             2015 drivers/scsi/scsi_error.c 	shost_for_each_device(sdev, shost) {
sdev             2016 drivers/scsi/scsi_error.c 		if (scsi_device_online(sdev) && sdev->was_reset && sdev->locked) {
sdev             2017 drivers/scsi/scsi_error.c 			scsi_eh_lock_door(sdev);
sdev             2018 drivers/scsi/scsi_error.c 			sdev->was_reset = 0;
sdev             2274 drivers/scsi/scsi_error.c 	struct scsi_device *sdev;
sdev             2276 drivers/scsi/scsi_error.c 	__shost_for_each_device(sdev, shost) {
sdev             2277 drivers/scsi/scsi_error.c 		if (channel == sdev_channel(sdev))
sdev             2278 drivers/scsi/scsi_error.c 			__scsi_report_device_reset(sdev, NULL);
sdev             2307 drivers/scsi/scsi_error.c 	struct scsi_device *sdev;
sdev             2309 drivers/scsi/scsi_error.c 	__shost_for_each_device(sdev, shost) {
sdev             2310 drivers/scsi/scsi_error.c 		if (channel == sdev_channel(sdev) &&
sdev             2311 drivers/scsi/scsi_error.c 		    target == sdev_id(sdev))
sdev             2312 drivers/scsi/scsi_error.c 			__scsi_report_device_reset(sdev, NULL);
sdev               89 drivers/scsi/scsi_ioctl.c static int ioctl_internal_command(struct scsi_device *sdev, char *cmd,
sdev               95 drivers/scsi/scsi_ioctl.c 	SCSI_LOG_IOCTL(1, sdev_printk(KERN_INFO, sdev,
sdev               98 drivers/scsi/scsi_ioctl.c 	result = scsi_execute_req(sdev, cmd, DMA_NONE, NULL, 0,
sdev              101 drivers/scsi/scsi_ioctl.c 	SCSI_LOG_IOCTL(2, sdev_printk(KERN_INFO, sdev,
sdev              109 drivers/scsi/scsi_ioctl.c 				sdev->lockable = 0;
sdev              111 drivers/scsi/scsi_ioctl.c 				sdev_printk(KERN_INFO, sdev,
sdev              118 drivers/scsi/scsi_ioctl.c 			if (sdev->removable)
sdev              122 drivers/scsi/scsi_ioctl.c 			if (sdev->removable) {
sdev              123 drivers/scsi/scsi_ioctl.c 				sdev->changed = 1;
sdev              129 drivers/scsi/scsi_ioctl.c 			sdev_printk(KERN_INFO, sdev,
sdev              132 drivers/scsi/scsi_ioctl.c 			scsi_print_sense_hdr(sdev, NULL, &sshdr);
sdev              137 drivers/scsi/scsi_ioctl.c 	SCSI_LOG_IOCTL(2, sdev_printk(KERN_INFO, sdev,
sdev              142 drivers/scsi/scsi_ioctl.c int scsi_set_medium_removal(struct scsi_device *sdev, char state)
sdev              147 drivers/scsi/scsi_ioctl.c 	if (!sdev->removable || !sdev->lockable)
sdev              157 drivers/scsi/scsi_ioctl.c 	ret = ioctl_internal_command(sdev, scsi_cmd,
sdev              160 drivers/scsi/scsi_ioctl.c 		sdev->locked = (state == SCSI_REMOVAL_PREVENT);
sdev              175 drivers/scsi/scsi_ioctl.c static int scsi_ioctl_get_pci(struct scsi_device *sdev, void __user *arg)
sdev              177 drivers/scsi/scsi_ioctl.c 	struct device *dev = scsi_get_device(sdev->host);
sdev              202 drivers/scsi/scsi_ioctl.c int scsi_ioctl(struct scsi_device *sdev, int cmd, void __user *arg)
sdev              228 drivers/scsi/scsi_ioctl.c 		__put_user((sdev->id & 0xff)
sdev              229 drivers/scsi/scsi_ioctl.c 			 + ((sdev->lun & 0xff) << 8)
sdev              230 drivers/scsi/scsi_ioctl.c 			 + ((sdev->channel & 0xff) << 16)
sdev              231 drivers/scsi/scsi_ioctl.c 			 + ((sdev->host->host_no & 0xff) << 24),
sdev              233 drivers/scsi/scsi_ioctl.c 		__put_user(sdev->host->unique_id,
sdev              237 drivers/scsi/scsi_ioctl.c 		return put_user(sdev->host->host_no, (int __user *)arg);
sdev              239 drivers/scsi/scsi_ioctl.c 		return ioctl_probe(sdev->host, arg);
sdev              243 drivers/scsi/scsi_ioctl.c 		return sg_scsi_ioctl(sdev->request_queue, NULL, 0, arg);
sdev              245 drivers/scsi/scsi_ioctl.c 		return scsi_set_medium_removal(sdev, SCSI_REMOVAL_PREVENT);
sdev              247 drivers/scsi/scsi_ioctl.c 		return scsi_set_medium_removal(sdev, SCSI_REMOVAL_ALLOW);
sdev              249 drivers/scsi/scsi_ioctl.c 		return scsi_test_unit_ready(sdev, IOCTL_NORMAL_TIMEOUT,
sdev              256 drivers/scsi/scsi_ioctl.c 		return ioctl_internal_command(sdev, scsi_cmd,
sdev              263 drivers/scsi/scsi_ioctl.c 		return ioctl_internal_command(sdev, scsi_cmd,
sdev              266 drivers/scsi/scsi_ioctl.c                 return scsi_ioctl_get_pci(sdev, arg);
sdev              268 drivers/scsi/scsi_ioctl.c 		return scsi_ioctl_reset(sdev, arg);
sdev              270 drivers/scsi/scsi_ioctl.c 		if (sdev->host->hostt->ioctl)
sdev              271 drivers/scsi/scsi_ioctl.c 			return sdev->host->hostt->ioctl(sdev, cmd, arg);
sdev              280 drivers/scsi/scsi_ioctl.c int scsi_ioctl_block_when_processing_errors(struct scsi_device *sdev, int cmd,
sdev              284 drivers/scsi/scsi_ioctl.c 		if (scsi_host_in_recovery(sdev->host))
sdev              287 drivers/scsi/scsi_ioctl.c 		if (!scsi_block_when_processing_errors(sdev))
sdev              248 drivers/scsi/scsi_lib.c int __scsi_execute(struct scsi_device *sdev, const unsigned char *cmd,
sdev              258 drivers/scsi/scsi_lib.c 	req = blk_get_request(sdev->request_queue,
sdev              265 drivers/scsi/scsi_lib.c 	if (bufflen &&	blk_rq_map_kern(sdev->request_queue, req,
sdev              347 drivers/scsi/scsi_lib.c void scsi_device_unbusy(struct scsi_device *sdev)
sdev              349 drivers/scsi/scsi_lib.c 	struct Scsi_Host *shost = sdev->host;
sdev              350 drivers/scsi/scsi_lib.c 	struct scsi_target *starget = scsi_target(sdev);
sdev              357 drivers/scsi/scsi_lib.c 	atomic_dec(&sdev->device_busy);
sdev              375 drivers/scsi/scsi_lib.c 	struct scsi_device *sdev, *tmp;
sdev              394 drivers/scsi/scsi_lib.c 	list_for_each_entry_safe(sdev, tmp, &starget->devices,
sdev              396 drivers/scsi/scsi_lib.c 		if (sdev == current_sdev)
sdev              398 drivers/scsi/scsi_lib.c 		if (scsi_device_get(sdev))
sdev              402 drivers/scsi/scsi_lib.c 		scsi_kick_queue(sdev->request_queue);
sdev              405 drivers/scsi/scsi_lib.c 		scsi_device_put(sdev);
sdev              411 drivers/scsi/scsi_lib.c static inline bool scsi_device_is_busy(struct scsi_device *sdev)
sdev              413 drivers/scsi/scsi_lib.c 	if (atomic_read(&sdev->device_busy) >= sdev->queue_depth)
sdev              415 drivers/scsi/scsi_lib.c 	if (atomic_read(&sdev->device_blocked) > 0)
sdev              446 drivers/scsi/scsi_lib.c 	struct scsi_device *sdev;
sdev              468 drivers/scsi/scsi_lib.c 		sdev = list_entry(starved_list.next,
sdev              470 drivers/scsi/scsi_lib.c 		list_del_init(&sdev->starved_entry);
sdev              471 drivers/scsi/scsi_lib.c 		if (scsi_target_is_busy(scsi_target(sdev))) {
sdev              472 drivers/scsi/scsi_lib.c 			list_move_tail(&sdev->starved_entry,
sdev              487 drivers/scsi/scsi_lib.c 		slq = sdev->request_queue;
sdev              516 drivers/scsi/scsi_lib.c 	struct scsi_device *sdev = q->queuedata;
sdev              518 drivers/scsi/scsi_lib.c 	if (scsi_target(sdev)->single_lun)
sdev              519 drivers/scsi/scsi_lib.c 		scsi_single_lun_run(sdev);
sdev              520 drivers/scsi/scsi_lib.c 	if (!list_empty(&sdev->host->starved_list))
sdev              521 drivers/scsi/scsi_lib.c 		scsi_starved_list_run(sdev->host);
sdev              528 drivers/scsi/scsi_lib.c 	struct scsi_device *sdev;
sdev              531 drivers/scsi/scsi_lib.c 	sdev = container_of(work, struct scsi_device, requeue_work);
sdev              532 drivers/scsi/scsi_lib.c 	q = sdev->request_queue;
sdev              538 drivers/scsi/scsi_lib.c 	struct scsi_device *sdev;
sdev              540 drivers/scsi/scsi_lib.c 	shost_for_each_device(sdev, shost)
sdev              541 drivers/scsi/scsi_lib.c 		scsi_run_queue(sdev->request_queue);
sdev              576 drivers/scsi/scsi_lib.c 	struct scsi_device *sdev = cmd->device;
sdev              577 drivers/scsi/scsi_lib.c 	struct request_queue *q = sdev->request_queue;
sdev              615 drivers/scsi/scsi_lib.c 	if (scsi_target(sdev)->single_lun ||
sdev              616 drivers/scsi/scsi_lib.c 	    !list_empty(&sdev->host->starved_list))
sdev              617 drivers/scsi/scsi_lib.c 		kblockd_schedule_work(&sdev->requeue_work);
sdev             1107 drivers/scsi/scsi_lib.c 	struct scsi_device *sdev = cmd->device;
sdev             1108 drivers/scsi/scsi_lib.c 	struct Scsi_Host *shost = sdev->host;
sdev             1112 drivers/scsi/scsi_lib.c 		spin_lock_irqsave(&sdev->list_lock, flags);
sdev             1113 drivers/scsi/scsi_lib.c 		list_add_tail(&cmd->list, &sdev->cmd_list);
sdev             1114 drivers/scsi/scsi_lib.c 		spin_unlock_irqrestore(&sdev->list_lock, flags);
sdev             1121 drivers/scsi/scsi_lib.c 	struct scsi_device *sdev = cmd->device;
sdev             1122 drivers/scsi/scsi_lib.c 	struct Scsi_Host *shost = sdev->host;
sdev             1126 drivers/scsi/scsi_lib.c 		spin_lock_irqsave(&sdev->list_lock, flags);
sdev             1129 drivers/scsi/scsi_lib.c 		spin_unlock_irqrestore(&sdev->list_lock, flags);
sdev             1165 drivers/scsi/scsi_lib.c static blk_status_t scsi_setup_scsi_cmnd(struct scsi_device *sdev,
sdev             1197 drivers/scsi/scsi_lib.c static blk_status_t scsi_setup_fs_cmnd(struct scsi_device *sdev,
sdev             1202 drivers/scsi/scsi_lib.c 	if (unlikely(sdev->handler && sdev->handler->prep_fn)) {
sdev             1203 drivers/scsi/scsi_lib.c 		blk_status_t ret = sdev->handler->prep_fn(sdev, req);
sdev             1213 drivers/scsi/scsi_lib.c static blk_status_t scsi_setup_cmnd(struct scsi_device *sdev,
sdev             1226 drivers/scsi/scsi_lib.c 		return scsi_setup_scsi_cmnd(sdev, req);
sdev             1228 drivers/scsi/scsi_lib.c 		return scsi_setup_fs_cmnd(sdev, req);
sdev             1232 drivers/scsi/scsi_lib.c scsi_prep_state_check(struct scsi_device *sdev, struct request *req)
sdev             1234 drivers/scsi/scsi_lib.c 	switch (sdev->sdev_state) {
sdev             1242 drivers/scsi/scsi_lib.c 		sdev_printk(KERN_ERR, sdev,
sdev             1250 drivers/scsi/scsi_lib.c 		sdev_printk(KERN_ERR, sdev,
sdev             1282 drivers/scsi/scsi_lib.c 				  struct scsi_device *sdev)
sdev             1286 drivers/scsi/scsi_lib.c 	busy = atomic_inc_return(&sdev->device_busy) - 1;
sdev             1287 drivers/scsi/scsi_lib.c 	if (atomic_read(&sdev->device_blocked)) {
sdev             1294 drivers/scsi/scsi_lib.c 		if (atomic_dec_return(&sdev->device_blocked) > 0)
sdev             1296 drivers/scsi/scsi_lib.c 		SCSI_LOG_MLQUEUE(3, sdev_printk(KERN_INFO, sdev,
sdev             1300 drivers/scsi/scsi_lib.c 	if (busy >= sdev->queue_depth)
sdev             1305 drivers/scsi/scsi_lib.c 	atomic_dec(&sdev->device_busy);
sdev             1314 drivers/scsi/scsi_lib.c 					   struct scsi_device *sdev)
sdev             1316 drivers/scsi/scsi_lib.c 	struct scsi_target *starget = scsi_target(sdev);
sdev             1322 drivers/scsi/scsi_lib.c 		    starget->starget_sdev_user != sdev) {
sdev             1326 drivers/scsi/scsi_lib.c 		starget->starget_sdev_user = sdev;
sdev             1355 drivers/scsi/scsi_lib.c 	list_move_tail(&sdev->starved_entry, &shost->starved_list);
sdev             1370 drivers/scsi/scsi_lib.c 				   struct scsi_device *sdev)
sdev             1399 drivers/scsi/scsi_lib.c 	if (!list_empty(&sdev->starved_entry)) {
sdev             1401 drivers/scsi/scsi_lib.c 		if (!list_empty(&sdev->starved_entry))
sdev             1402 drivers/scsi/scsi_lib.c 			list_del_init(&sdev->starved_entry);
sdev             1410 drivers/scsi/scsi_lib.c 	if (list_empty(&sdev->starved_entry))
sdev             1411 drivers/scsi/scsi_lib.c 		list_add_tail(&sdev->starved_entry, &shost->starved_list);
sdev             1432 drivers/scsi/scsi_lib.c 	struct scsi_device *sdev = q->queuedata;
sdev             1438 drivers/scsi/scsi_lib.c 	shost = sdev->host;
sdev             1446 drivers/scsi/scsi_lib.c 	if (scsi_host_in_recovery(shost) || scsi_device_is_busy(sdev))
sdev             1582 drivers/scsi/scsi_lib.c 	struct scsi_device *sdev = req->q->queuedata;
sdev             1583 drivers/scsi/scsi_lib.c 	struct Scsi_Host *shost = sdev->host;
sdev             1586 drivers/scsi/scsi_lib.c 	scsi_init_command(sdev, cmd);
sdev             1604 drivers/scsi/scsi_lib.c 	return scsi_setup_cmnd(sdev, req);
sdev             1626 drivers/scsi/scsi_lib.c 	struct scsi_device *sdev = q->queuedata;
sdev             1628 drivers/scsi/scsi_lib.c 	atomic_dec(&sdev->device_busy);
sdev             1634 drivers/scsi/scsi_lib.c 	struct scsi_device *sdev = q->queuedata;
sdev             1636 drivers/scsi/scsi_lib.c 	if (scsi_dev_queue_ready(q, sdev))
sdev             1639 drivers/scsi/scsi_lib.c 	if (atomic_read(&sdev->device_busy) == 0 && !scsi_device_blocked(sdev))
sdev             1649 drivers/scsi/scsi_lib.c 	struct scsi_device *sdev = q->queuedata;
sdev             1650 drivers/scsi/scsi_lib.c 	struct Scsi_Host *shost = sdev->host;
sdev             1659 drivers/scsi/scsi_lib.c 	if (unlikely(sdev->sdev_state != SDEV_RUNNING)) {
sdev             1660 drivers/scsi/scsi_lib.c 		ret = scsi_prep_state_check(sdev, req);
sdev             1666 drivers/scsi/scsi_lib.c 	if (!scsi_target_queue_ready(shost, sdev))
sdev             1668 drivers/scsi/scsi_lib.c 	if (!scsi_host_queue_ready(q, shost, sdev))
sdev             1682 drivers/scsi/scsi_lib.c 	if (sdev->simple_tags)
sdev             1702 drivers/scsi/scsi_lib.c 	if (scsi_target(sdev)->can_queue > 0)
sdev             1703 drivers/scsi/scsi_lib.c 		atomic_dec(&scsi_target(sdev)->target_busy);
sdev             1710 drivers/scsi/scsi_lib.c 		if (atomic_read(&sdev->device_busy) ||
sdev             1711 drivers/scsi/scsi_lib.c 		    scsi_device_blocked(sdev))
sdev             1715 drivers/scsi/scsi_lib.c 		if (unlikely(!scsi_device_online(sdev)))
sdev             1846 drivers/scsi/scsi_lib.c 	struct scsi_device *sdev = q->queuedata;
sdev             1847 drivers/scsi/scsi_lib.c 	struct Scsi_Host *shost = sdev->host;
sdev             1870 drivers/scsi/scsi_lib.c struct request_queue *scsi_mq_alloc_queue(struct scsi_device *sdev)
sdev             1872 drivers/scsi/scsi_lib.c 	sdev->request_queue = blk_mq_init_queue(&sdev->host->tag_set);
sdev             1873 drivers/scsi/scsi_lib.c 	if (IS_ERR(sdev->request_queue))
sdev             1876 drivers/scsi/scsi_lib.c 	sdev->request_queue->queuedata = sdev;
sdev             1877 drivers/scsi/scsi_lib.c 	__scsi_init_queue(sdev->host, sdev->request_queue);
sdev             1878 drivers/scsi/scsi_lib.c 	blk_queue_flag_set(QUEUE_FLAG_SCSI_PASSTHROUGH, sdev->request_queue);
sdev             1879 drivers/scsi/scsi_lib.c 	return sdev->request_queue;
sdev             1924 drivers/scsi/scsi_lib.c 	struct scsi_device *sdev = NULL;
sdev             1928 drivers/scsi/scsi_lib.c 		sdev = q->queuedata;
sdev             1929 drivers/scsi/scsi_lib.c 	if (!sdev || !get_device(&sdev->sdev_gendev))
sdev             1930 drivers/scsi/scsi_lib.c 		sdev = NULL;
sdev             1932 drivers/scsi/scsi_lib.c 	return sdev;
sdev             2024 drivers/scsi/scsi_lib.c scsi_mode_select(struct scsi_device *sdev, int pf, int sp, int modepage,
sdev             2035 drivers/scsi/scsi_lib.c 	if (sdev->use_10_for_ms) {
sdev             2075 drivers/scsi/scsi_lib.c 	ret = scsi_execute_req(sdev, cmd, DMA_TO_DEVICE, real_buffer, len,
sdev             2100 drivers/scsi/scsi_lib.c scsi_mode_sense(struct scsi_device *sdev, int dbd, int modepage,
sdev             2120 drivers/scsi/scsi_lib.c 	use_10_for_ms = sdev->use_10_for_ms;
sdev             2140 drivers/scsi/scsi_lib.c 	result = scsi_execute_req(sdev, cmd, DMA_FROM_DEVICE, buffer, len,
sdev             2156 drivers/scsi/scsi_lib.c 				sdev->use_10_for_ms = 0;
sdev             2208 drivers/scsi/scsi_lib.c scsi_test_unit_ready(struct scsi_device *sdev, int timeout, int retries,
sdev             2218 drivers/scsi/scsi_lib.c 		result = scsi_execute_req(sdev, cmd, DMA_NONE, NULL, 0, sshdr,
sdev             2220 drivers/scsi/scsi_lib.c 		if (sdev->removable && scsi_sense_valid(sshdr) &&
sdev             2222 drivers/scsi/scsi_lib.c 			sdev->changed = 1;
sdev             2239 drivers/scsi/scsi_lib.c scsi_device_set_state(struct scsi_device *sdev, enum scsi_device_state state)
sdev             2241 drivers/scsi/scsi_lib.c 	enum scsi_device_state oldstate = sdev->sdev_state;
sdev             2342 drivers/scsi/scsi_lib.c 	sdev->sdev_state = state;
sdev             2347 drivers/scsi/scsi_lib.c 				sdev_printk(KERN_ERR, sdev,
sdev             2363 drivers/scsi/scsi_lib.c static void scsi_evt_emit(struct scsi_device *sdev, struct scsi_event *evt)
sdev             2373 drivers/scsi/scsi_lib.c 		scsi_rescan_device(&sdev->sdev_gendev);
sdev             2401 drivers/scsi/scsi_lib.c 	kobject_uevent_env(&sdev->sdev_gendev.kobj, KOBJ_CHANGE, envp);
sdev             2413 drivers/scsi/scsi_lib.c 	struct scsi_device *sdev;
sdev             2417 drivers/scsi/scsi_lib.c 	sdev = container_of(work, struct scsi_device, event_work);
sdev             2420 drivers/scsi/scsi_lib.c 		if (test_and_clear_bit(evt_type, sdev->pending_events))
sdev             2421 drivers/scsi/scsi_lib.c 			sdev_evt_send_simple(sdev, evt_type, GFP_KERNEL);
sdev             2428 drivers/scsi/scsi_lib.c 		spin_lock_irqsave(&sdev->list_lock, flags);
sdev             2429 drivers/scsi/scsi_lib.c 		list_splice_init(&sdev->event_list, &event_list);
sdev             2430 drivers/scsi/scsi_lib.c 		spin_unlock_irqrestore(&sdev->list_lock, flags);
sdev             2438 drivers/scsi/scsi_lib.c 			scsi_evt_emit(sdev, evt);
sdev             2451 drivers/scsi/scsi_lib.c void sdev_evt_send(struct scsi_device *sdev, struct scsi_event *evt)
sdev             2459 drivers/scsi/scsi_lib.c 	if (!test_bit(evt->evt_type, sdev->supported_events)) {
sdev             2465 drivers/scsi/scsi_lib.c 	spin_lock_irqsave(&sdev->list_lock, flags);
sdev             2466 drivers/scsi/scsi_lib.c 	list_add_tail(&evt->node, &sdev->event_list);
sdev             2467 drivers/scsi/scsi_lib.c 	schedule_work(&sdev->event_work);
sdev             2468 drivers/scsi/scsi_lib.c 	spin_unlock_irqrestore(&sdev->list_lock, flags);
sdev             2516 drivers/scsi/scsi_lib.c void sdev_evt_send_simple(struct scsi_device *sdev,
sdev             2521 drivers/scsi/scsi_lib.c 		sdev_printk(KERN_ERR, sdev, "event %d eaten due to OOM\n",
sdev             2526 drivers/scsi/scsi_lib.c 	sdev_evt_send(sdev, evt);
sdev             2546 drivers/scsi/scsi_lib.c scsi_device_quiesce(struct scsi_device *sdev)
sdev             2548 drivers/scsi/scsi_lib.c 	struct request_queue *q = sdev->request_queue;
sdev             2556 drivers/scsi/scsi_lib.c 	WARN_ON_ONCE(sdev->quiesced_by && sdev->quiesced_by != current);
sdev             2558 drivers/scsi/scsi_lib.c 	if (sdev->quiesced_by == current)
sdev             2573 drivers/scsi/scsi_lib.c 	mutex_lock(&sdev->state_mutex);
sdev             2574 drivers/scsi/scsi_lib.c 	err = scsi_device_set_state(sdev, SDEV_QUIESCE);
sdev             2576 drivers/scsi/scsi_lib.c 		sdev->quiesced_by = current;
sdev             2579 drivers/scsi/scsi_lib.c 	mutex_unlock(&sdev->state_mutex);
sdev             2594 drivers/scsi/scsi_lib.c void scsi_device_resume(struct scsi_device *sdev)
sdev             2600 drivers/scsi/scsi_lib.c 	mutex_lock(&sdev->state_mutex);
sdev             2601 drivers/scsi/scsi_lib.c 	if (sdev->quiesced_by) {
sdev             2602 drivers/scsi/scsi_lib.c 		sdev->quiesced_by = NULL;
sdev             2603 drivers/scsi/scsi_lib.c 		blk_clear_pm_only(sdev->request_queue);
sdev             2605 drivers/scsi/scsi_lib.c 	if (sdev->sdev_state == SDEV_QUIESCE)
sdev             2606 drivers/scsi/scsi_lib.c 		scsi_device_set_state(sdev, SDEV_RUNNING);
sdev             2607 drivers/scsi/scsi_lib.c 	mutex_unlock(&sdev->state_mutex);
sdev             2612 drivers/scsi/scsi_lib.c device_quiesce_fn(struct scsi_device *sdev, void *data)
sdev             2614 drivers/scsi/scsi_lib.c 	scsi_device_quiesce(sdev);
sdev             2625 drivers/scsi/scsi_lib.c device_resume_fn(struct scsi_device *sdev, void *data)
sdev             2627 drivers/scsi/scsi_lib.c 	scsi_device_resume(sdev);
sdev             2651 drivers/scsi/scsi_lib.c int scsi_internal_device_block_nowait(struct scsi_device *sdev)
sdev             2653 drivers/scsi/scsi_lib.c 	struct request_queue *q = sdev->request_queue;
sdev             2656 drivers/scsi/scsi_lib.c 	err = scsi_device_set_state(sdev, SDEV_BLOCK);
sdev             2658 drivers/scsi/scsi_lib.c 		err = scsi_device_set_state(sdev, SDEV_CREATED_BLOCK);
sdev             2689 drivers/scsi/scsi_lib.c static int scsi_internal_device_block(struct scsi_device *sdev)
sdev             2691 drivers/scsi/scsi_lib.c 	struct request_queue *q = sdev->request_queue;
sdev             2694 drivers/scsi/scsi_lib.c 	mutex_lock(&sdev->state_mutex);
sdev             2695 drivers/scsi/scsi_lib.c 	err = scsi_internal_device_block_nowait(sdev);
sdev             2698 drivers/scsi/scsi_lib.c 	mutex_unlock(&sdev->state_mutex);
sdev             2703 drivers/scsi/scsi_lib.c void scsi_start_queue(struct scsi_device *sdev)
sdev             2705 drivers/scsi/scsi_lib.c 	struct request_queue *q = sdev->request_queue;
sdev             2725 drivers/scsi/scsi_lib.c int scsi_internal_device_unblock_nowait(struct scsi_device *sdev,
sdev             2740 drivers/scsi/scsi_lib.c 	switch (sdev->sdev_state) {
sdev             2743 drivers/scsi/scsi_lib.c 		sdev->sdev_state = new_state;
sdev             2748 drivers/scsi/scsi_lib.c 			sdev->sdev_state = new_state;
sdev             2750 drivers/scsi/scsi_lib.c 			sdev->sdev_state = SDEV_CREATED;
sdev             2758 drivers/scsi/scsi_lib.c 	scsi_start_queue(sdev);
sdev             2778 drivers/scsi/scsi_lib.c static int scsi_internal_device_unblock(struct scsi_device *sdev,
sdev             2783 drivers/scsi/scsi_lib.c 	mutex_lock(&sdev->state_mutex);
sdev             2784 drivers/scsi/scsi_lib.c 	ret = scsi_internal_device_unblock_nowait(sdev, new_state);
sdev             2785 drivers/scsi/scsi_lib.c 	mutex_unlock(&sdev->state_mutex);
sdev             2791 drivers/scsi/scsi_lib.c device_block(struct scsi_device *sdev, void *data)
sdev             2795 drivers/scsi/scsi_lib.c 	ret = scsi_internal_device_block(sdev);
sdev             2798 drivers/scsi/scsi_lib.c 		  dev_name(&sdev->sdev_gendev), ret);
sdev             2822 drivers/scsi/scsi_lib.c device_unblock(struct scsi_device *sdev, void *data)
sdev             2824 drivers/scsi/scsi_lib.c 	scsi_internal_device_unblock(sdev, *(enum scsi_device_state *)data);
sdev             2907 drivers/scsi/scsi_lib.c void sdev_disable_disk_events(struct scsi_device *sdev)
sdev             2909 drivers/scsi/scsi_lib.c 	atomic_inc(&sdev->disk_events_disable_depth);
sdev             2913 drivers/scsi/scsi_lib.c void sdev_enable_disk_events(struct scsi_device *sdev)
sdev             2915 drivers/scsi/scsi_lib.c 	if (WARN_ON_ONCE(atomic_read(&sdev->disk_events_disable_depth) <= 0))
sdev             2917 drivers/scsi/scsi_lib.c 	atomic_dec(&sdev->disk_events_disable_depth);
sdev             2935 drivers/scsi/scsi_lib.c int scsi_vpd_lun_id(struct scsi_device *sdev, char *id, size_t id_len)
sdev             2944 drivers/scsi/scsi_lib.c 	vpd_pg83 = rcu_dereference(sdev->vpd_pg83);
sdev             3086 drivers/scsi/scsi_lib.c int scsi_vpd_tpg_id(struct scsi_device *sdev, int *rel_id)
sdev             3093 drivers/scsi/scsi_lib.c 	vpd_pg83 = rcu_dereference(sdev->vpd_pg83);
sdev               53 drivers/scsi/scsi_logging.c void sdev_prefix_printk(const char *level, const struct scsi_device *sdev,
sdev               60 drivers/scsi/scsi_logging.c 	if (!sdev)
sdev               75 drivers/scsi/scsi_logging.c 	dev_printk(level, &sdev->sdev_gendev, "%s", logbuf);
sdev              296 drivers/scsi/scsi_logging.c scsi_log_dump_sense(const struct scsi_device *sdev, const char *name, int tag,
sdev              316 drivers/scsi/scsi_logging.c 		dev_printk(KERN_INFO, &sdev->sdev_gendev, "%s", logbuf);
sdev              322 drivers/scsi/scsi_logging.c scsi_log_print_sense_hdr(const struct scsi_device *sdev, const char *name,
sdev              333 drivers/scsi/scsi_logging.c 	dev_printk(KERN_INFO, &sdev->sdev_gendev, "%s", logbuf);
sdev              342 drivers/scsi/scsi_logging.c 	dev_printk(KERN_INFO, &sdev->sdev_gendev, "%s", logbuf);
sdev              347 drivers/scsi/scsi_logging.c scsi_log_print_sense(const struct scsi_device *sdev, const char *name, int tag,
sdev              353 drivers/scsi/scsi_logging.c 		scsi_log_print_sense_hdr(sdev, name, tag, &sshdr);
sdev              355 drivers/scsi/scsi_logging.c 		scsi_log_dump_sense(sdev, name, tag, sense_buffer, sense_len);
sdev              362 drivers/scsi/scsi_logging.c scsi_print_sense_hdr(const struct scsi_device *sdev, const char *name,
sdev              365 drivers/scsi/scsi_logging.c 	scsi_log_print_sense_hdr(sdev, name, -1, sshdr);
sdev              370 drivers/scsi/scsi_logging.c void __scsi_print_sense(const struct scsi_device *sdev, const char *name,
sdev              373 drivers/scsi/scsi_logging.c 	scsi_log_print_sense(sdev, name, -1, sense_buffer, sense_len);
sdev               99 drivers/scsi/scsi_pm.c 			struct scsi_device *sdev = to_scsi_device(dev);
sdev              101 drivers/scsi/scsi_pm.c 				blk_post_runtime_resume(sdev->request_queue, 0);
sdev              103 drivers/scsi/scsi_pm.c 				blk_set_runtime_active(sdev->request_queue);
sdev              236 drivers/scsi/scsi_pm.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev              239 drivers/scsi/scsi_pm.c 	err = blk_pre_runtime_suspend(sdev->request_queue);
sdev              244 drivers/scsi/scsi_pm.c 	blk_post_runtime_suspend(sdev->request_queue, err);
sdev              264 drivers/scsi/scsi_pm.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev              268 drivers/scsi/scsi_pm.c 	blk_pre_runtime_resume(sdev->request_queue);
sdev              271 drivers/scsi/scsi_pm.c 	blk_post_runtime_resume(sdev->request_queue, err);
sdev              304 drivers/scsi/scsi_pm.c int scsi_autopm_get_device(struct scsi_device *sdev)
sdev              308 drivers/scsi/scsi_pm.c 	err = pm_runtime_get_sync(&sdev->sdev_gendev);
sdev              310 drivers/scsi/scsi_pm.c 		pm_runtime_put_sync(&sdev->sdev_gendev);
sdev              317 drivers/scsi/scsi_pm.c void scsi_autopm_put_device(struct scsi_device *sdev)
sdev              319 drivers/scsi/scsi_pm.c 	pm_runtime_put_sync(&sdev->sdev_gendev);
sdev               53 drivers/scsi/scsi_priv.h extern blist_flags_t scsi_get_device_flags(struct scsi_device *sdev,
sdev               56 drivers/scsi/scsi_priv.h extern blist_flags_t scsi_get_device_flags_keyed(struct scsi_device *sdev,
sdev               89 drivers/scsi/scsi_priv.h extern int scsi_maybe_unblock_host(struct scsi_device *sdev);
sdev               90 drivers/scsi/scsi_priv.h extern void scsi_device_unbusy(struct scsi_device *sdev);
sdev               95 drivers/scsi/scsi_priv.h extern struct request_queue *scsi_mq_alloc_queue(struct scsi_device *sdev);
sdev               96 drivers/scsi/scsi_priv.h extern void scsi_start_queue(struct scsi_device *sdev);
sdev              181 drivers/scsi/scsi_priv.h void scsi_dh_add_device(struct scsi_device *sdev);
sdev              182 drivers/scsi/scsi_priv.h void scsi_dh_release_device(struct scsi_device *sdev);
sdev              184 drivers/scsi/scsi_priv.h static inline void scsi_dh_add_device(struct scsi_device *sdev) { }
sdev              185 drivers/scsi/scsi_priv.h static inline void scsi_dh_release_device(struct scsi_device *sdev) { }
sdev              180 drivers/scsi/scsi_proc.c 	struct scsi_device *sdev;
sdev              187 drivers/scsi/scsi_proc.c 	sdev = to_scsi_device(dev);
sdev              190 drivers/scsi/scsi_proc.c 		sdev->host->host_no, sdev->channel, sdev->id, sdev->lun);
sdev              192 drivers/scsi/scsi_proc.c 		if (sdev->vendor[i] >= 0x20)
sdev              193 drivers/scsi/scsi_proc.c 			seq_putc(s, sdev->vendor[i]);
sdev              200 drivers/scsi/scsi_proc.c 		if (sdev->model[i] >= 0x20)
sdev              201 drivers/scsi/scsi_proc.c 			seq_putc(s, sdev->model[i]);
sdev              208 drivers/scsi/scsi_proc.c 		if (sdev->rev[i] >= 0x20)
sdev              209 drivers/scsi/scsi_proc.c 			seq_putc(s, sdev->rev[i]);
sdev              216 drivers/scsi/scsi_proc.c 	seq_printf(s, "  Type:   %s ", scsi_device_type(sdev->type));
sdev              218 drivers/scsi/scsi_proc.c 			sdev->scsi_level - (sdev->scsi_level > 1));
sdev              219 drivers/scsi/scsi_proc.c 	if (sdev->scsi_level == 2)
sdev              273 drivers/scsi/scsi_proc.c 	struct scsi_device *sdev;
sdev              280 drivers/scsi/scsi_proc.c 	sdev = scsi_device_lookup(shost, channel, id, lun);
sdev              281 drivers/scsi/scsi_proc.c 	if (sdev) {
sdev              282 drivers/scsi/scsi_proc.c 		scsi_remove_device(sdev);
sdev              283 drivers/scsi/scsi_proc.c 		scsi_device_put(sdev);
sdev              185 drivers/scsi/scsi_scan.c static void scsi_unlock_floptical(struct scsi_device *sdev,
sdev              190 drivers/scsi/scsi_scan.c 	sdev_printk(KERN_NOTICE, sdev, "unlocking floptical drive\n");
sdev              197 drivers/scsi/scsi_scan.c 	scsi_execute_req(sdev, scsi_cmd, DMA_FROM_DEVICE, result, 0x2a, NULL,
sdev              218 drivers/scsi/scsi_scan.c 	struct scsi_device *sdev;
sdev              222 drivers/scsi/scsi_scan.c 	sdev = kzalloc(sizeof(*sdev) + shost->transportt->device_size,
sdev              224 drivers/scsi/scsi_scan.c 	if (!sdev)
sdev              227 drivers/scsi/scsi_scan.c 	sdev->vendor = scsi_null_device_strs;
sdev              228 drivers/scsi/scsi_scan.c 	sdev->model = scsi_null_device_strs;
sdev              229 drivers/scsi/scsi_scan.c 	sdev->rev = scsi_null_device_strs;
sdev              230 drivers/scsi/scsi_scan.c 	sdev->host = shost;
sdev              231 drivers/scsi/scsi_scan.c 	sdev->queue_ramp_up_period = SCSI_DEFAULT_RAMP_UP_PERIOD;
sdev              232 drivers/scsi/scsi_scan.c 	sdev->id = starget->id;
sdev              233 drivers/scsi/scsi_scan.c 	sdev->lun = lun;
sdev              234 drivers/scsi/scsi_scan.c 	sdev->channel = starget->channel;
sdev              235 drivers/scsi/scsi_scan.c 	mutex_init(&sdev->state_mutex);
sdev              236 drivers/scsi/scsi_scan.c 	sdev->sdev_state = SDEV_CREATED;
sdev              237 drivers/scsi/scsi_scan.c 	INIT_LIST_HEAD(&sdev->siblings);
sdev              238 drivers/scsi/scsi_scan.c 	INIT_LIST_HEAD(&sdev->same_target_siblings);
sdev              239 drivers/scsi/scsi_scan.c 	INIT_LIST_HEAD(&sdev->cmd_list);
sdev              240 drivers/scsi/scsi_scan.c 	INIT_LIST_HEAD(&sdev->starved_entry);
sdev              241 drivers/scsi/scsi_scan.c 	INIT_LIST_HEAD(&sdev->event_list);
sdev              242 drivers/scsi/scsi_scan.c 	spin_lock_init(&sdev->list_lock);
sdev              243 drivers/scsi/scsi_scan.c 	mutex_init(&sdev->inquiry_mutex);
sdev              244 drivers/scsi/scsi_scan.c 	INIT_WORK(&sdev->event_work, scsi_evt_thread);
sdev              245 drivers/scsi/scsi_scan.c 	INIT_WORK(&sdev->requeue_work, scsi_requeue_run_queue);
sdev              247 drivers/scsi/scsi_scan.c 	sdev->sdev_gendev.parent = get_device(&starget->dev);
sdev              248 drivers/scsi/scsi_scan.c 	sdev->sdev_target = starget;
sdev              251 drivers/scsi/scsi_scan.c 	sdev->hostdata = hostdata;
sdev              255 drivers/scsi/scsi_scan.c 	sdev->max_device_blocked = SCSI_DEFAULT_DEVICE_BLOCKED;
sdev              260 drivers/scsi/scsi_scan.c 	sdev->type = -1;
sdev              267 drivers/scsi/scsi_scan.c 	sdev->borken = 1;
sdev              269 drivers/scsi/scsi_scan.c 	sdev->request_queue = scsi_mq_alloc_queue(sdev);
sdev              270 drivers/scsi/scsi_scan.c 	if (!sdev->request_queue) {
sdev              274 drivers/scsi/scsi_scan.c 		kfree(sdev);
sdev              277 drivers/scsi/scsi_scan.c 	WARN_ON_ONCE(!blk_get_queue(sdev->request_queue));
sdev              278 drivers/scsi/scsi_scan.c 	sdev->request_queue->queuedata = sdev;
sdev              280 drivers/scsi/scsi_scan.c 	scsi_change_queue_depth(sdev, sdev->host->cmd_per_lun ?
sdev              281 drivers/scsi/scsi_scan.c 					sdev->host->cmd_per_lun : 1);
sdev              283 drivers/scsi/scsi_scan.c 	scsi_sysfs_device_initialize(sdev);
sdev              286 drivers/scsi/scsi_scan.c 		ret = shost->hostt->slave_alloc(sdev);
sdev              298 drivers/scsi/scsi_scan.c 	return sdev;
sdev              301 drivers/scsi/scsi_scan.c 	__scsi_remove_device(sdev);
sdev              560 drivers/scsi/scsi_scan.c static int scsi_probe_lun(struct scsi_device *sdev, unsigned char *inq_result,
sdev              574 drivers/scsi/scsi_scan.c 	first_inquiry_len = sdev->inquiry_len ? sdev->inquiry_len : 36;
sdev              579 drivers/scsi/scsi_scan.c 	SCSI_LOG_SCAN_BUS(3, sdev_printk(KERN_INFO, sdev,
sdev              593 drivers/scsi/scsi_scan.c 		result = scsi_execute_req(sdev,  scsi_cmd, DMA_FROM_DEVICE,
sdev              598 drivers/scsi/scsi_scan.c 		SCSI_LOG_SCAN_BUS(3, sdev_printk(KERN_INFO, sdev,
sdev              645 drivers/scsi/scsi_scan.c 		*bflags = scsi_get_device_flags(sdev, &inq_result[8],
sdev              653 drivers/scsi/scsi_scan.c 			else if (sdev->inquiry_len)
sdev              654 drivers/scsi/scsi_scan.c 				next_inquiry_len = sdev->inquiry_len;
sdev              667 drivers/scsi/scsi_scan.c 		sdev_printk(KERN_INFO, sdev,
sdev              685 drivers/scsi/scsi_scan.c 	sdev->inquiry_len = min(try_inquiry_len, response_len);
sdev              702 drivers/scsi/scsi_scan.c 	if (sdev->inquiry_len < 36) {
sdev              703 drivers/scsi/scsi_scan.c 		if (!sdev->host->short_inquiry) {
sdev              704 drivers/scsi/scsi_scan.c 			shost_printk(KERN_INFO, sdev->host,
sdev              706 drivers/scsi/scsi_scan.c 				    " using 36\n", sdev->inquiry_len);
sdev              707 drivers/scsi/scsi_scan.c 			sdev->host->short_inquiry = 1;
sdev              709 drivers/scsi/scsi_scan.c 		sdev->inquiry_len = 36;
sdev              730 drivers/scsi/scsi_scan.c 	sdev->scsi_level = inq_result[2] & 0x07;
sdev              731 drivers/scsi/scsi_scan.c 	if (sdev->scsi_level >= 2 ||
sdev              732 drivers/scsi/scsi_scan.c 	    (sdev->scsi_level == 1 && (inq_result[3] & 0x0f) == 1))
sdev              733 drivers/scsi/scsi_scan.c 		sdev->scsi_level++;
sdev              734 drivers/scsi/scsi_scan.c 	sdev->sdev_target->scsi_level = sdev->scsi_level;
sdev              740 drivers/scsi/scsi_scan.c 	sdev->lun_in_cdb = 0;
sdev              741 drivers/scsi/scsi_scan.c 	if (sdev->scsi_level <= SCSI_2 &&
sdev              742 drivers/scsi/scsi_scan.c 	    sdev->scsi_level != SCSI_UNKNOWN &&
sdev              743 drivers/scsi/scsi_scan.c 	    !sdev->host->no_scsi2_lun_in_cdb)
sdev              744 drivers/scsi/scsi_scan.c 		sdev->lun_in_cdb = 1;
sdev              764 drivers/scsi/scsi_scan.c static int scsi_add_lun(struct scsi_device *sdev, unsigned char *inq_result,
sdev              789 drivers/scsi/scsi_scan.c 	sdev->inquiry = kmemdup(inq_result,
sdev              790 drivers/scsi/scsi_scan.c 				max_t(size_t, sdev->inquiry_len, 36),
sdev              792 drivers/scsi/scsi_scan.c 	if (sdev->inquiry == NULL)
sdev              795 drivers/scsi/scsi_scan.c 	sdev->vendor = (char *) (sdev->inquiry + 8);
sdev              796 drivers/scsi/scsi_scan.c 	sdev->model = (char *) (sdev->inquiry + 16);
sdev              797 drivers/scsi/scsi_scan.c 	sdev->rev = (char *) (sdev->inquiry + 32);
sdev              799 drivers/scsi/scsi_scan.c 	if (strncmp(sdev->vendor, "ATA     ", 8) == 0) {
sdev              806 drivers/scsi/scsi_scan.c 		sdev->allow_restart = 1;
sdev              810 drivers/scsi/scsi_scan.c 		sdev->type = TYPE_ROM;
sdev              811 drivers/scsi/scsi_scan.c 		sdev->removable = 1;
sdev              813 drivers/scsi/scsi_scan.c 		sdev->type = (inq_result[0] & 0x1f);
sdev              814 drivers/scsi/scsi_scan.c 		sdev->removable = (inq_result[1] & 0x80) >> 7;
sdev              821 drivers/scsi/scsi_scan.c 		if (scsi_is_wlun(sdev->lun) && sdev->type != TYPE_WLUN) {
sdev              822 drivers/scsi/scsi_scan.c 			sdev_printk(KERN_WARNING, sdev,
sdev              824 drivers/scsi/scsi_scan.c 				__func__, sdev->type, (unsigned int)sdev->lun);
sdev              825 drivers/scsi/scsi_scan.c 			sdev->type = TYPE_WLUN;
sdev              830 drivers/scsi/scsi_scan.c 	if (sdev->type == TYPE_RBC || sdev->type == TYPE_ROM) {
sdev              855 drivers/scsi/scsi_scan.c 	sdev->inq_periph_qual = (inq_result[0] >> 5) & 7;
sdev              856 drivers/scsi/scsi_scan.c 	sdev->lockable = sdev->removable;
sdev              857 drivers/scsi/scsi_scan.c 	sdev->soft_reset = (inq_result[7] & 1) && ((inq_result[3] & 7) == 2);
sdev              859 drivers/scsi/scsi_scan.c 	if (sdev->scsi_level >= SCSI_3 ||
sdev              860 drivers/scsi/scsi_scan.c 			(sdev->inquiry_len > 56 && inq_result[56] & 0x04))
sdev              861 drivers/scsi/scsi_scan.c 		sdev->ppr = 1;
sdev              863 drivers/scsi/scsi_scan.c 		sdev->wdtr = 1;
sdev              865 drivers/scsi/scsi_scan.c 		sdev->sdtr = 1;
sdev              867 drivers/scsi/scsi_scan.c 	sdev_printk(KERN_NOTICE, sdev, "%s %.8s %.16s %.4s PQ: %d "
sdev              868 drivers/scsi/scsi_scan.c 			"ANSI: %d%s\n", scsi_device_type(sdev->type),
sdev              869 drivers/scsi/scsi_scan.c 			sdev->vendor, sdev->model, sdev->rev,
sdev              870 drivers/scsi/scsi_scan.c 			sdev->inq_periph_qual, inq_result[2] & 0x07,
sdev              873 drivers/scsi/scsi_scan.c 	if ((sdev->scsi_level >= SCSI_2) && (inq_result[7] & 2) &&
sdev              875 drivers/scsi/scsi_scan.c 		sdev->tagged_supported = 1;
sdev              876 drivers/scsi/scsi_scan.c 		sdev->simple_tags = 1;
sdev              885 drivers/scsi/scsi_scan.c 		sdev->borken = 0;
sdev              888 drivers/scsi/scsi_scan.c 		sdev->no_uld_attach = 1;
sdev              895 drivers/scsi/scsi_scan.c 		sdev->select_no_atn = 1;
sdev              902 drivers/scsi/scsi_scan.c 		blk_queue_max_hw_sectors(sdev->request_queue, 512);
sdev              908 drivers/scsi/scsi_scan.c 		blk_queue_max_hw_sectors(sdev->request_queue, 1024);
sdev              915 drivers/scsi/scsi_scan.c 		sdev->no_start_on_add = 1;
sdev              918 drivers/scsi/scsi_scan.c 		scsi_target(sdev)->single_lun = 1;
sdev              920 drivers/scsi/scsi_scan.c 	sdev->use_10_for_rw = 1;
sdev              926 drivers/scsi/scsi_scan.c 		sdev->no_report_opcodes = 1;
sdev              930 drivers/scsi/scsi_scan.c 	mutex_lock(&sdev->state_mutex);
sdev              931 drivers/scsi/scsi_scan.c 	ret = scsi_device_set_state(sdev, SDEV_RUNNING);
sdev              933 drivers/scsi/scsi_scan.c 		ret = scsi_device_set_state(sdev, SDEV_BLOCK);
sdev              934 drivers/scsi/scsi_scan.c 	mutex_unlock(&sdev->state_mutex);
sdev              937 drivers/scsi/scsi_scan.c 		sdev_printk(KERN_ERR, sdev,
sdev              939 drivers/scsi/scsi_scan.c 			    scsi_device_state_name(sdev->sdev_state));
sdev              944 drivers/scsi/scsi_scan.c 		sdev->lockable = 0;
sdev              947 drivers/scsi/scsi_scan.c 		sdev->retry_hwerror = 1;
sdev              950 drivers/scsi/scsi_scan.c 		sdev->no_dif = 1;
sdev              953 drivers/scsi/scsi_scan.c 		sdev->unmap_limit_for_ws = 1;
sdev              955 drivers/scsi/scsi_scan.c 	sdev->eh_timeout = SCSI_DEFAULT_EH_TIMEOUT;
sdev              958 drivers/scsi/scsi_scan.c 		sdev->try_vpd_pages = 1;
sdev              960 drivers/scsi/scsi_scan.c 		sdev->skip_vpd_pages = 1;
sdev              962 drivers/scsi/scsi_scan.c 	transport_configure_device(&sdev->sdev_gendev);
sdev              964 drivers/scsi/scsi_scan.c 	if (sdev->host->hostt->slave_configure) {
sdev              965 drivers/scsi/scsi_scan.c 		ret = sdev->host->hostt->slave_configure(sdev);
sdev              972 drivers/scsi/scsi_scan.c 				sdev_printk(KERN_ERR, sdev,
sdev              979 drivers/scsi/scsi_scan.c 	if (sdev->scsi_level >= SCSI_3)
sdev              980 drivers/scsi/scsi_scan.c 		scsi_attach_vpd(sdev);
sdev              982 drivers/scsi/scsi_scan.c 	sdev->max_queue_depth = sdev->queue_depth;
sdev              983 drivers/scsi/scsi_scan.c 	sdev->sdev_bflags = *bflags;
sdev              990 drivers/scsi/scsi_scan.c 	if (!async && scsi_sysfs_add_sdev(sdev) != 0)
sdev             1049 drivers/scsi/scsi_scan.c 	struct scsi_device *sdev;
sdev             1059 drivers/scsi/scsi_scan.c 	sdev = scsi_device_lookup_by_target(starget, lun);
sdev             1060 drivers/scsi/scsi_scan.c 	if (sdev) {
sdev             1061 drivers/scsi/scsi_scan.c 		if (rescan != SCSI_SCAN_INITIAL || !scsi_device_created(sdev)) {
sdev             1062 drivers/scsi/scsi_scan.c 			SCSI_LOG_SCAN_BUS(3, sdev_printk(KERN_INFO, sdev,
sdev             1064 drivers/scsi/scsi_scan.c 				dev_name(&sdev->sdev_gendev)));
sdev             1066 drivers/scsi/scsi_scan.c 				*sdevp = sdev;
sdev             1068 drivers/scsi/scsi_scan.c 				scsi_device_put(sdev);
sdev             1071 drivers/scsi/scsi_scan.c 				*bflagsp = scsi_get_device_flags(sdev,
sdev             1072 drivers/scsi/scsi_scan.c 								 sdev->vendor,
sdev             1073 drivers/scsi/scsi_scan.c 								 sdev->model);
sdev             1076 drivers/scsi/scsi_scan.c 		scsi_device_put(sdev);
sdev             1078 drivers/scsi/scsi_scan.c 		sdev = scsi_alloc_sdev(starget, lun, hostdata);
sdev             1079 drivers/scsi/scsi_scan.c 	if (!sdev)
sdev             1087 drivers/scsi/scsi_scan.c 	if (scsi_probe_lun(sdev, result, result_len, &bflags))
sdev             1106 drivers/scsi/scsi_scan.c 		SCSI_LOG_SCAN_BUS(2, sdev_printk(KERN_INFO, sdev, "scsi scan:"
sdev             1114 drivers/scsi/scsi_scan.c 				sdev_printk(KERN_INFO, sdev,
sdev             1150 drivers/scsi/scsi_scan.c 		SCSI_LOG_SCAN_BUS(3, sdev_printk(KERN_INFO, sdev,
sdev             1157 drivers/scsi/scsi_scan.c 	res = scsi_add_lun(sdev, result, &bflags, shost->async_scan);
sdev             1160 drivers/scsi/scsi_scan.c 			sdev->lockable = 0;
sdev             1161 drivers/scsi/scsi_scan.c 			scsi_unlock_floptical(sdev, result);
sdev             1170 drivers/scsi/scsi_scan.c 			if (scsi_device_get(sdev) == 0) {
sdev             1171 drivers/scsi/scsi_scan.c 				*sdevp = sdev;
sdev             1173 drivers/scsi/scsi_scan.c 				__scsi_remove_device(sdev);
sdev             1178 drivers/scsi/scsi_scan.c 		__scsi_remove_device(sdev);
sdev             1300 drivers/scsi/scsi_scan.c 	struct scsi_device *sdev;
sdev             1323 drivers/scsi/scsi_scan.c 	if (!(sdev = scsi_device_lookup_by_target(starget, 0))) {
sdev             1324 drivers/scsi/scsi_scan.c 		sdev = scsi_alloc_sdev(starget, 0, NULL);
sdev             1325 drivers/scsi/scsi_scan.c 		if (!sdev)
sdev             1327 drivers/scsi/scsi_scan.c 		if (scsi_device_get(sdev)) {
sdev             1328 drivers/scsi/scsi_scan.c 			__scsi_remove_device(sdev);
sdev             1341 drivers/scsi/scsi_scan.c 			   (sdev->host->unchecked_isa_dma ? __GFP_DMA : 0));
sdev             1373 drivers/scsi/scsi_scan.c 		SCSI_LOG_SCAN_BUS(3, sdev_printk (KERN_INFO, sdev,
sdev             1377 drivers/scsi/scsi_scan.c 		result = scsi_execute_req(sdev, scsi_cmd, DMA_FROM_DEVICE,
sdev             1381 drivers/scsi/scsi_scan.c 		SCSI_LOG_SCAN_BUS(3, sdev_printk (KERN_INFO, sdev,
sdev             1416 drivers/scsi/scsi_scan.c 	SCSI_LOG_SCAN_BUS(3, sdev_printk (KERN_INFO, sdev,
sdev             1426 drivers/scsi/scsi_scan.c 		if (lun > sdev->host->max_lun) {
sdev             1427 drivers/scsi/scsi_scan.c 			sdev_printk(KERN_WARNING, sdev,
sdev             1439 drivers/scsi/scsi_scan.c 				sdev_printk(KERN_ERR, sdev,
sdev             1451 drivers/scsi/scsi_scan.c 	if (scsi_device_created(sdev))
sdev             1455 drivers/scsi/scsi_scan.c 		__scsi_remove_device(sdev);
sdev             1456 drivers/scsi/scsi_scan.c 	scsi_device_put(sdev);
sdev             1463 drivers/scsi/scsi_scan.c 	struct scsi_device *sdev = ERR_PTR(-ENODEV);
sdev             1480 drivers/scsi/scsi_scan.c 		scsi_probe_and_add_lun(starget, lun, NULL, &sdev, 1, hostdata);
sdev             1492 drivers/scsi/scsi_scan.c 	return sdev;
sdev             1499 drivers/scsi/scsi_scan.c 	struct scsi_device *sdev = 
sdev             1501 drivers/scsi/scsi_scan.c 	if (IS_ERR(sdev))
sdev             1502 drivers/scsi/scsi_scan.c 		return PTR_ERR(sdev);
sdev             1504 drivers/scsi/scsi_scan.c 	scsi_device_put(sdev);
sdev             1511 drivers/scsi/scsi_scan.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             1515 drivers/scsi/scsi_scan.c 	scsi_attach_vpd(sdev);
sdev             1517 drivers/scsi/scsi_scan.c 	if (sdev->handler && sdev->handler->rescan)
sdev             1518 drivers/scsi/scsi_scan.c 		sdev->handler->rescan(sdev);
sdev             1692 drivers/scsi/scsi_scan.c 	struct scsi_device *sdev;
sdev             1693 drivers/scsi/scsi_scan.c 	shost_for_each_device(sdev, shost) {
sdev             1695 drivers/scsi/scsi_scan.c 		if (sdev->sdev_state == SDEV_DEL)
sdev             1698 drivers/scsi/scsi_scan.c 		if (sdev->is_visible)
sdev             1701 drivers/scsi/scsi_scan.c 		    scsi_sysfs_add_sdev(sdev) != 0)
sdev             1702 drivers/scsi/scsi_scan.c 			__scsi_remove_device(sdev);
sdev             1863 drivers/scsi/scsi_scan.c 	struct scsi_device *sdev;
sdev             1868 drivers/scsi/scsi_scan.c 	list_for_each_entry(sdev, &shost->__devices, siblings) {
sdev             1869 drivers/scsi/scsi_scan.c 		if (sdev->sdev_state == SDEV_DEL)
sdev             1872 drivers/scsi/scsi_scan.c 		__scsi_remove_device(sdev);
sdev             1897 drivers/scsi/scsi_scan.c 	struct scsi_device *sdev = NULL;
sdev             1907 drivers/scsi/scsi_scan.c 	sdev = scsi_alloc_sdev(starget, 0, NULL);
sdev             1908 drivers/scsi/scsi_scan.c 	if (sdev)
sdev             1909 drivers/scsi/scsi_scan.c 		sdev->borken = 0;
sdev             1915 drivers/scsi/scsi_scan.c 	return sdev;
sdev             1927 drivers/scsi/scsi_scan.c void scsi_free_host_dev(struct scsi_device *sdev)
sdev             1929 drivers/scsi/scsi_scan.c 	BUG_ON(sdev->id != sdev->host->this_id);
sdev             1931 drivers/scsi/scsi_scan.c 	__scsi_remove_device(sdev);
sdev              428 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev;
sdev              430 drivers/scsi/scsi_sysfs.c 	sdev = class_to_sdev(class_dev);
sdev              431 drivers/scsi/scsi_sysfs.c 	put_device(&sdev->sdev_gendev);
sdev              436 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev;
sdev              442 drivers/scsi/scsi_sysfs.c 	sdev = container_of(work, struct scsi_device, ew.work);
sdev              444 drivers/scsi/scsi_sysfs.c 	scsi_dh_release_device(sdev);
sdev              446 drivers/scsi/scsi_sysfs.c 	parent = sdev->sdev_gendev.parent;
sdev              448 drivers/scsi/scsi_sysfs.c 	spin_lock_irqsave(sdev->host->host_lock, flags);
sdev              449 drivers/scsi/scsi_sysfs.c 	list_del(&sdev->siblings);
sdev              450 drivers/scsi/scsi_sysfs.c 	list_del(&sdev->same_target_siblings);
sdev              451 drivers/scsi/scsi_sysfs.c 	list_del(&sdev->starved_entry);
sdev              452 drivers/scsi/scsi_sysfs.c 	spin_unlock_irqrestore(sdev->host->host_lock, flags);
sdev              454 drivers/scsi/scsi_sysfs.c 	cancel_work_sync(&sdev->event_work);
sdev              456 drivers/scsi/scsi_sysfs.c 	list_for_each_safe(this, tmp, &sdev->event_list) {
sdev              464 drivers/scsi/scsi_sysfs.c 	blk_put_queue(sdev->request_queue);
sdev              466 drivers/scsi/scsi_sysfs.c 	sdev->request_queue = NULL;
sdev              468 drivers/scsi/scsi_sysfs.c 	mutex_lock(&sdev->inquiry_mutex);
sdev              469 drivers/scsi/scsi_sysfs.c 	rcu_swap_protected(sdev->vpd_pg80, vpd_pg80,
sdev              470 drivers/scsi/scsi_sysfs.c 			   lockdep_is_held(&sdev->inquiry_mutex));
sdev              471 drivers/scsi/scsi_sysfs.c 	rcu_swap_protected(sdev->vpd_pg83, vpd_pg83,
sdev              472 drivers/scsi/scsi_sysfs.c 			   lockdep_is_held(&sdev->inquiry_mutex));
sdev              473 drivers/scsi/scsi_sysfs.c 	mutex_unlock(&sdev->inquiry_mutex);
sdev              479 drivers/scsi/scsi_sysfs.c 	kfree(sdev->inquiry);
sdev              480 drivers/scsi/scsi_sysfs.c 	kfree(sdev);
sdev              514 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev;
sdev              519 drivers/scsi/scsi_sysfs.c 	sdev = to_scsi_device(dev);
sdev              521 drivers/scsi/scsi_sysfs.c 	add_uevent_var(env, "MODALIAS=" SCSI_DEVICE_MODALIAS_FMT, sdev->type);
sdev              564 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev;					\
sdev              565 drivers/scsi/scsi_sysfs.c 	sdev = to_scsi_device(dev);					\
sdev              566 drivers/scsi/scsi_sysfs.c 	return snprintf (buf, 20, format_string, sdev->field);		\
sdev              589 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev;					\
sdev              590 drivers/scsi/scsi_sysfs.c 	sdev = to_scsi_device(dev);					\
sdev              591 drivers/scsi/scsi_sysfs.c 	sscanf (buf, format_string, &sdev->field);			\
sdev              611 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev;					\
sdev              614 drivers/scsi/scsi_sysfs.c 		sdev = to_scsi_device(dev);				\
sdev              615 drivers/scsi/scsi_sysfs.c 		sdev->field = ret;					\
sdev              652 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev              653 drivers/scsi/scsi_sysfs.c 	return snprintf(buf, 20, "%d\n", atomic_read(&sdev->device_busy));
sdev              661 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev              662 drivers/scsi/scsi_sysfs.c 	return snprintf(buf, 20, "%d\n", atomic_read(&sdev->device_blocked));
sdev              672 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev;
sdev              673 drivers/scsi/scsi_sysfs.c 	sdev = to_scsi_device(dev);
sdev              674 drivers/scsi/scsi_sysfs.c 	return snprintf(buf, 20, "%d\n", sdev->request_queue->rq_timeout / HZ);
sdev              681 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev;
sdev              683 drivers/scsi/scsi_sysfs.c 	sdev = to_scsi_device(dev);
sdev              685 drivers/scsi/scsi_sysfs.c 	blk_queue_rq_timeout(sdev->request_queue, timeout * HZ);
sdev              693 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev;
sdev              694 drivers/scsi/scsi_sysfs.c 	sdev = to_scsi_device(dev);
sdev              695 drivers/scsi/scsi_sysfs.c 	return snprintf(buf, 20, "%u\n", sdev->eh_timeout / HZ);
sdev              702 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev;
sdev              709 drivers/scsi/scsi_sysfs.c 	sdev = to_scsi_device(dev);
sdev              713 drivers/scsi/scsi_sysfs.c 	sdev->eh_timeout = eh_timeout * HZ;
sdev              733 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev              739 drivers/scsi/scsi_sysfs.c 	if (scsi_device_get(sdev))
sdev              755 drivers/scsi/scsi_sysfs.c 	scsi_remove_device(sdev);
sdev              758 drivers/scsi/scsi_sysfs.c 	scsi_device_put(sdev);
sdev              768 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev              787 drivers/scsi/scsi_sysfs.c 	mutex_lock(&sdev->state_mutex);
sdev              788 drivers/scsi/scsi_sysfs.c 	ret = scsi_device_set_state(sdev, state);
sdev              794 drivers/scsi/scsi_sysfs.c 		blk_mq_run_hw_queues(sdev->request_queue, true);
sdev              795 drivers/scsi/scsi_sysfs.c 	mutex_unlock(&sdev->state_mutex);
sdev              803 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev              804 drivers/scsi/scsi_sysfs.c 	const char *name = scsi_device_state_name(sdev->sdev_state);
sdev              818 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev              821 drivers/scsi/scsi_sysfs.c 	if (sdev->simple_tags)
sdev              831 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev              833 drivers/scsi/scsi_sysfs.c 	if (!sdev->tagged_supported)
sdev              836 drivers/scsi/scsi_sysfs.c 	sdev_printk(KERN_INFO, sdev,
sdev              851 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);			\
sdev              856 drivers/scsi/scsi_sysfs.c 	vpd_page = rcu_dereference(sdev->vpd_##_page);			\
sdev              877 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev              879 drivers/scsi/scsi_sysfs.c 	if (!sdev->inquiry)
sdev              882 drivers/scsi/scsi_sysfs.c 	return memory_read_from_buffer(buf, count, &off, sdev->inquiry,
sdev              883 drivers/scsi/scsi_sysfs.c 				       sdev->inquiry_len);
sdev              909 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);			\
sdev              910 drivers/scsi/scsi_sysfs.c 	unsigned long long count = atomic_read(&sdev->field);		\
sdev              922 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev;
sdev              923 drivers/scsi/scsi_sysfs.c 	sdev = to_scsi_device(dev);
sdev              924 drivers/scsi/scsi_sysfs.c 	return snprintf (buf, 20, SCSI_DEVICE_MODALIAS_FMT "\n", sdev->type);
sdev              933 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);			\
sdev              934 drivers/scsi/scsi_sysfs.c 	int val = test_bit(SDEV_EVT_##Cap_name, sdev->supported_events);\
sdev              943 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);			\
sdev              946 drivers/scsi/scsi_sysfs.c 		clear_bit(SDEV_EVT_##Cap_name, sdev->supported_events);	\
sdev              948 drivers/scsi/scsi_sysfs.c 		set_bit(SDEV_EVT_##Cap_name, sdev->supported_events);	\
sdev              973 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev              974 drivers/scsi/scsi_sysfs.c 	struct scsi_host_template *sht = sdev->host->hostt;
sdev              981 drivers/scsi/scsi_sysfs.c 	if (depth < 1 || depth > sdev->host->can_queue)
sdev              984 drivers/scsi/scsi_sysfs.c 	retval = sht->change_queue_depth(sdev, depth);
sdev              988 drivers/scsi/scsi_sysfs.c 	sdev->max_queue_depth = sdev->queue_depth;
sdev             1001 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             1004 drivers/scsi/scsi_sysfs.c 	count = scsi_vpd_lun_id(sdev, buf, PAGE_SIZE);
sdev             1024 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             1028 drivers/scsi/scsi_sysfs.c 	for (i = 0; i < sizeof(sdev->sdev_bflags) * BITS_PER_BYTE; i++) {
sdev             1031 drivers/scsi/scsi_sysfs.c 		if (!(sdev->sdev_bflags & (__force blist_flags_t)BIT(i)))
sdev             1054 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             1056 drivers/scsi/scsi_sysfs.c 	if (!sdev->handler)
sdev             1059 drivers/scsi/scsi_sysfs.c 	return snprintf(buf, 20, "%s\n", sdev->handler->name);
sdev             1066 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             1069 drivers/scsi/scsi_sysfs.c 	if (sdev->sdev_state == SDEV_CANCEL ||
sdev             1070 drivers/scsi/scsi_sysfs.c 	    sdev->sdev_state == SDEV_DEL)
sdev             1073 drivers/scsi/scsi_sysfs.c 	if (!sdev->handler) {
sdev             1077 drivers/scsi/scsi_sysfs.c 		err = scsi_dh_attach(sdev->request_queue, buf);
sdev             1082 drivers/scsi/scsi_sysfs.c 		if (sdev->handler->activate)
sdev             1083 drivers/scsi/scsi_sysfs.c 			err = sdev->handler->activate(sdev, NULL, NULL);
sdev             1090 drivers/scsi/scsi_sysfs.c 		sdev_printk(KERN_WARNING, sdev,
sdev             1092 drivers/scsi/scsi_sysfs.c 			    sdev->handler->name);
sdev             1107 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             1111 drivers/scsi/scsi_sysfs.c 	if (!sdev->handler)
sdev             1114 drivers/scsi/scsi_sysfs.c 	access_state = (sdev->access_state & SCSI_ACCESS_STATE_MASK);
sdev             1127 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             1129 drivers/scsi/scsi_sysfs.c 	if (!sdev->handler)
sdev             1132 drivers/scsi/scsi_sysfs.c 	if (sdev->access_state & SCSI_ACCESS_STATE_PREFERRED)
sdev             1145 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev;
sdev             1146 drivers/scsi/scsi_sysfs.c 	sdev = to_scsi_device(dev);
sdev             1148 drivers/scsi/scsi_sysfs.c 			jiffies_to_msecs(sdev->queue_ramp_up_period));
sdev             1156 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             1162 drivers/scsi/scsi_sysfs.c 	sdev->queue_ramp_up_period = msecs_to_jiffies(period);
sdev             1174 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             1178 drivers/scsi/scsi_sysfs.c 	    !sdev->host->hostt->change_queue_depth)
sdev             1182 drivers/scsi/scsi_sysfs.c 	    !sdev->host->hostt->change_queue_depth)
sdev             1187 drivers/scsi/scsi_sysfs.c 	    !sdev->handler)
sdev             1190 drivers/scsi/scsi_sysfs.c 	    !sdev->handler)
sdev             1200 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev             1203 drivers/scsi/scsi_sysfs.c 	if (attr == &dev_attr_vpd_pg80 && !sdev->vpd_pg80)
sdev             1206 drivers/scsi/scsi_sysfs.c 	if (attr == &dev_attr_vpd_pg83 && !sdev->vpd_pg83)
sdev             1297 drivers/scsi/scsi_sysfs.c int scsi_sysfs_add_sdev(struct scsi_device *sdev)
sdev             1300 drivers/scsi/scsi_sysfs.c 	struct request_queue *rq = sdev->request_queue;
sdev             1301 drivers/scsi/scsi_sysfs.c 	struct scsi_target *starget = sdev->sdev_target;
sdev             1309 drivers/scsi/scsi_sysfs.c 	device_enable_async_suspend(&sdev->sdev_gendev);
sdev             1311 drivers/scsi/scsi_sysfs.c 	pm_runtime_set_active(&sdev->sdev_gendev);
sdev             1312 drivers/scsi/scsi_sysfs.c 	pm_runtime_forbid(&sdev->sdev_gendev);
sdev             1313 drivers/scsi/scsi_sysfs.c 	pm_runtime_enable(&sdev->sdev_gendev);
sdev             1316 drivers/scsi/scsi_sysfs.c 	scsi_autopm_get_device(sdev);
sdev             1318 drivers/scsi/scsi_sysfs.c 	scsi_dh_add_device(sdev);
sdev             1320 drivers/scsi/scsi_sysfs.c 	error = device_add(&sdev->sdev_gendev);
sdev             1322 drivers/scsi/scsi_sysfs.c 		sdev_printk(KERN_INFO, sdev,
sdev             1327 drivers/scsi/scsi_sysfs.c 	device_enable_async_suspend(&sdev->sdev_dev);
sdev             1328 drivers/scsi/scsi_sysfs.c 	error = device_add(&sdev->sdev_dev);
sdev             1330 drivers/scsi/scsi_sysfs.c 		sdev_printk(KERN_INFO, sdev,
sdev             1332 drivers/scsi/scsi_sysfs.c 		device_del(&sdev->sdev_gendev);
sdev             1335 drivers/scsi/scsi_sysfs.c 	transport_add_device(&sdev->sdev_gendev);
sdev             1336 drivers/scsi/scsi_sysfs.c 	sdev->is_visible = 1;
sdev             1338 drivers/scsi/scsi_sysfs.c 	error = bsg_scsi_register_queue(rq, &sdev->sdev_gendev);
sdev             1342 drivers/scsi/scsi_sysfs.c 		sdev_printk(KERN_INFO, sdev,
sdev             1346 drivers/scsi/scsi_sysfs.c 	if (sdev->host->hostt->sdev_attrs) {
sdev             1347 drivers/scsi/scsi_sysfs.c 		for (i = 0; sdev->host->hostt->sdev_attrs[i]; i++) {
sdev             1348 drivers/scsi/scsi_sysfs.c 			error = device_create_file(&sdev->sdev_gendev,
sdev             1349 drivers/scsi/scsi_sysfs.c 					sdev->host->hostt->sdev_attrs[i]);
sdev             1355 drivers/scsi/scsi_sysfs.c 	if (sdev->host->hostt->sdev_groups) {
sdev             1356 drivers/scsi/scsi_sysfs.c 		error = sysfs_create_groups(&sdev->sdev_gendev.kobj,
sdev             1357 drivers/scsi/scsi_sysfs.c 				sdev->host->hostt->sdev_groups);
sdev             1362 drivers/scsi/scsi_sysfs.c 	scsi_autopm_put_device(sdev);
sdev             1366 drivers/scsi/scsi_sysfs.c void __scsi_remove_device(struct scsi_device *sdev)
sdev             1368 drivers/scsi/scsi_sysfs.c 	struct device *dev = &sdev->sdev_gendev;
sdev             1376 drivers/scsi/scsi_sysfs.c 	if (sdev->sdev_state == SDEV_DEL)
sdev             1379 drivers/scsi/scsi_sysfs.c 	if (sdev->is_visible) {
sdev             1384 drivers/scsi/scsi_sysfs.c 		mutex_lock(&sdev->state_mutex);
sdev             1390 drivers/scsi/scsi_sysfs.c 		res = scsi_device_set_state(sdev, SDEV_CANCEL);
sdev             1392 drivers/scsi/scsi_sysfs.c 			res = scsi_device_set_state(sdev, SDEV_DEL);
sdev             1394 drivers/scsi/scsi_sysfs.c 				scsi_start_queue(sdev);
sdev             1396 drivers/scsi/scsi_sysfs.c 		mutex_unlock(&sdev->state_mutex);
sdev             1401 drivers/scsi/scsi_sysfs.c 		if (sdev->host->hostt->sdev_groups)
sdev             1402 drivers/scsi/scsi_sysfs.c 			sysfs_remove_groups(&sdev->sdev_gendev.kobj,
sdev             1403 drivers/scsi/scsi_sysfs.c 					sdev->host->hostt->sdev_groups);
sdev             1405 drivers/scsi/scsi_sysfs.c 		bsg_unregister_queue(sdev->request_queue);
sdev             1406 drivers/scsi/scsi_sysfs.c 		device_unregister(&sdev->sdev_dev);
sdev             1410 drivers/scsi/scsi_sysfs.c 		put_device(&sdev->sdev_dev);
sdev             1417 drivers/scsi/scsi_sysfs.c 	mutex_lock(&sdev->state_mutex);
sdev             1418 drivers/scsi/scsi_sysfs.c 	scsi_device_set_state(sdev, SDEV_DEL);
sdev             1419 drivers/scsi/scsi_sysfs.c 	mutex_unlock(&sdev->state_mutex);
sdev             1421 drivers/scsi/scsi_sysfs.c 	blk_cleanup_queue(sdev->request_queue);
sdev             1422 drivers/scsi/scsi_sysfs.c 	cancel_work_sync(&sdev->requeue_work);
sdev             1424 drivers/scsi/scsi_sysfs.c 	if (sdev->host->hostt->slave_destroy)
sdev             1425 drivers/scsi/scsi_sysfs.c 		sdev->host->hostt->slave_destroy(sdev);
sdev             1433 drivers/scsi/scsi_sysfs.c 	scsi_target_reap(scsi_target(sdev));
sdev             1442 drivers/scsi/scsi_sysfs.c void scsi_remove_device(struct scsi_device *sdev)
sdev             1444 drivers/scsi/scsi_sysfs.c 	struct Scsi_Host *shost = sdev->host;
sdev             1447 drivers/scsi/scsi_sysfs.c 	__scsi_remove_device(sdev);
sdev             1456 drivers/scsi/scsi_sysfs.c 	struct scsi_device *sdev;
sdev             1460 drivers/scsi/scsi_sysfs.c 	list_for_each_entry(sdev, &shost->__devices, siblings) {
sdev             1467 drivers/scsi/scsi_sysfs.c 		if (sdev->channel != starget->channel ||
sdev             1468 drivers/scsi/scsi_sysfs.c 		    sdev->id != starget->id)
sdev             1470 drivers/scsi/scsi_sysfs.c 		if (sdev->sdev_state == SDEV_DEL ||
sdev             1471 drivers/scsi/scsi_sysfs.c 		    sdev->sdev_state == SDEV_CANCEL ||
sdev             1472 drivers/scsi/scsi_sysfs.c 		    !get_device(&sdev->sdev_gendev))
sdev             1475 drivers/scsi/scsi_sysfs.c 		scsi_remove_device(sdev);
sdev             1476 drivers/scsi/scsi_sysfs.c 		put_device(&sdev->sdev_gendev);
sdev             1565 drivers/scsi/scsi_sysfs.c void scsi_sysfs_device_initialize(struct scsi_device *sdev)
sdev             1568 drivers/scsi/scsi_sysfs.c 	struct Scsi_Host *shost = sdev->host;
sdev             1569 drivers/scsi/scsi_sysfs.c 	struct scsi_target  *starget = sdev->sdev_target;
sdev             1571 drivers/scsi/scsi_sysfs.c 	device_initialize(&sdev->sdev_gendev);
sdev             1572 drivers/scsi/scsi_sysfs.c 	sdev->sdev_gendev.bus = &scsi_bus_type;
sdev             1573 drivers/scsi/scsi_sysfs.c 	sdev->sdev_gendev.type = &scsi_dev_type;
sdev             1574 drivers/scsi/scsi_sysfs.c 	dev_set_name(&sdev->sdev_gendev, "%d:%d:%d:%llu",
sdev             1575 drivers/scsi/scsi_sysfs.c 		     sdev->host->host_no, sdev->channel, sdev->id, sdev->lun);
sdev             1577 drivers/scsi/scsi_sysfs.c 	device_initialize(&sdev->sdev_dev);
sdev             1578 drivers/scsi/scsi_sysfs.c 	sdev->sdev_dev.parent = get_device(&sdev->sdev_gendev);
sdev             1579 drivers/scsi/scsi_sysfs.c 	sdev->sdev_dev.class = &sdev_class;
sdev             1580 drivers/scsi/scsi_sysfs.c 	dev_set_name(&sdev->sdev_dev, "%d:%d:%d:%llu",
sdev             1581 drivers/scsi/scsi_sysfs.c 		     sdev->host->host_no, sdev->channel, sdev->id, sdev->lun);
sdev             1589 drivers/scsi/scsi_sysfs.c 	sdev->scsi_level = starget->scsi_level;
sdev             1590 drivers/scsi/scsi_sysfs.c 	if (sdev->scsi_level <= SCSI_2 &&
sdev             1591 drivers/scsi/scsi_sysfs.c 			sdev->scsi_level != SCSI_UNKNOWN &&
sdev             1593 drivers/scsi/scsi_sysfs.c 		sdev->lun_in_cdb = 1;
sdev             1595 drivers/scsi/scsi_sysfs.c 	transport_setup_device(&sdev->sdev_gendev);
sdev             1597 drivers/scsi/scsi_sysfs.c 	list_add_tail(&sdev->same_target_siblings, &starget->devices);
sdev             1598 drivers/scsi/scsi_sysfs.c 	list_add_tail(&sdev->siblings, &shost->__devices);
sdev              161 drivers/scsi/scsi_transport_sas.c static struct sas_end_device *sas_sdev_to_rdev(struct scsi_device *sdev)
sdev              163 drivers/scsi/scsi_transport_sas.c 	struct sas_rphy *rphy = target_to_rphy(sdev->sdev_target);
sdev              322 drivers/scsi/scsi_transport_sas.c u64 sas_get_address(struct scsi_device *sdev)
sdev              324 drivers/scsi/scsi_transport_sas.c 	struct sas_end_device *rdev = sas_sdev_to_rdev(sdev);
sdev              339 drivers/scsi/scsi_transport_sas.c sas_tlr_supported(struct scsi_device *sdev)
sdev              342 drivers/scsi/scsi_transport_sas.c 	struct sas_end_device *rdev = sas_sdev_to_rdev(sdev);
sdev              349 drivers/scsi/scsi_transport_sas.c 	if (scsi_get_vpd_page(sdev, 0x90, buffer, vpd_len))
sdev              376 drivers/scsi/scsi_transport_sas.c sas_disable_tlr(struct scsi_device *sdev)
sdev              378 drivers/scsi/scsi_transport_sas.c 	struct sas_end_device *rdev = sas_sdev_to_rdev(sdev);
sdev              391 drivers/scsi/scsi_transport_sas.c void sas_enable_tlr(struct scsi_device *sdev)
sdev              394 drivers/scsi/scsi_transport_sas.c 	tlr_supported  = sas_tlr_supported(sdev);
sdev              397 drivers/scsi/scsi_transport_sas.c 		struct sas_end_device *rdev = sas_sdev_to_rdev(sdev);
sdev              406 drivers/scsi/scsi_transport_sas.c unsigned int sas_is_tlr_enabled(struct scsi_device *sdev)
sdev              408 drivers/scsi/scsi_transport_sas.c 	struct sas_end_device *rdev = sas_sdev_to_rdev(sdev);
sdev             1227 drivers/scsi/scsi_transport_sas.c int sas_read_port_mode_page(struct scsi_device *sdev)
sdev             1230 drivers/scsi/scsi_transport_sas.c 	struct sas_end_device *rdev = sas_sdev_to_rdev(sdev);
sdev             1237 drivers/scsi/scsi_transport_sas.c 	res = scsi_mode_sense(sdev, 1, 0x19, buffer, BUF_SIZE, 30*HZ, 3,
sdev              107 drivers/scsi/scsi_transport_spi.c static int spi_execute(struct scsi_device *sdev, const void *cmd,
sdev              120 drivers/scsi/scsi_transport_spi.c 		result = scsi_execute(sdev, cmd, dir, buffer, bufflen, sense,
sdev              210 drivers/scsi/scsi_transport_spi.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev              211 drivers/scsi/scsi_transport_spi.c 	struct scsi_target *starget = sdev->sdev_target;
sdev              214 drivers/scsi/scsi_transport_spi.c 	bflags = scsi_get_device_flags_keyed(sdev, &sdev->inquiry[8],
sdev              215 drivers/scsi/scsi_transport_spi.c 					     &sdev->inquiry[16],
sdev              221 drivers/scsi/scsi_transport_spi.c 	spi_support_sync(starget) = scsi_device_sync(sdev);
sdev              222 drivers/scsi/scsi_transport_spi.c 	spi_support_wide(starget) = scsi_device_wide(sdev);
sdev              223 drivers/scsi/scsi_transport_spi.c 	spi_support_dt(starget) = scsi_device_dt(sdev);
sdev              224 drivers/scsi/scsi_transport_spi.c 	spi_support_dt_only(starget) = scsi_device_dt_only(sdev);
sdev              225 drivers/scsi/scsi_transport_spi.c 	spi_support_ius(starget) = scsi_device_ius(sdev);
sdev              230 drivers/scsi/scsi_transport_spi.c 	spi_support_qas(starget) = scsi_device_qas(sdev);
sdev              611 drivers/scsi/scsi_transport_spi.c 		i->f->set_##x(sdev->sdev_target, y)
sdev              623 drivers/scsi/scsi_transport_spi.c spi_dv_device_echo_buffer(struct scsi_device *sdev, u8 *buffer,
sdev              674 drivers/scsi/scsi_transport_spi.c 		result = spi_execute(sdev, spi_write_buffer, DMA_TO_DEVICE,
sdev              676 drivers/scsi/scsi_transport_spi.c 		if(result || !scsi_device_online(sdev)) {
sdev              678 drivers/scsi/scsi_transport_spi.c 			scsi_device_set_state(sdev, SDEV_QUIESCE);
sdev              691 drivers/scsi/scsi_transport_spi.c 			sdev_printk(KERN_ERR, sdev, "Write Buffer failure %x\n", result);
sdev              696 drivers/scsi/scsi_transport_spi.c 		spi_execute(sdev, spi_read_buffer, DMA_FROM_DEVICE,
sdev              698 drivers/scsi/scsi_transport_spi.c 		scsi_device_set_state(sdev, SDEV_QUIESCE);
sdev              709 drivers/scsi/scsi_transport_spi.c spi_dv_device_compare_inquiry(struct scsi_device *sdev, u8 *buffer,
sdev              713 drivers/scsi/scsi_transport_spi.c 	const int len = sdev->inquiry_len;
sdev              721 drivers/scsi/scsi_transport_spi.c 		result = spi_execute(sdev, spi_inquiry, DMA_FROM_DEVICE,
sdev              724 drivers/scsi/scsi_transport_spi.c 		if(result || !scsi_device_online(sdev)) {
sdev              725 drivers/scsi/scsi_transport_spi.c 			scsi_device_set_state(sdev, SDEV_QUIESCE);
sdev              745 drivers/scsi/scsi_transport_spi.c spi_dv_retrain(struct scsi_device *sdev, u8 *buffer, u8 *ptr,
sdev              749 drivers/scsi/scsi_transport_spi.c 	struct spi_internal *i = to_spi_internal(sdev->host->transportt);
sdev              750 drivers/scsi/scsi_transport_spi.c 	struct scsi_target *starget = sdev->sdev_target;
sdev              757 drivers/scsi/scsi_transport_spi.c 		retval = compare_fn(sdev, buffer, ptr, DV_LOOPS);
sdev              769 drivers/scsi/scsi_transport_spi.c 			i->f->get_period(sdev->sdev_target);
sdev              803 drivers/scsi/scsi_transport_spi.c spi_dv_device_get_echo_buffer(struct scsi_device *sdev, u8 *buffer)
sdev              827 drivers/scsi/scsi_transport_spi.c 		result = spi_execute(sdev, spi_test_unit_ready, DMA_NONE, 
sdev              839 drivers/scsi/scsi_transport_spi.c 	result = spi_execute(sdev, spi_read_buffer_descriptor, 
sdev              850 drivers/scsi/scsi_transport_spi.c spi_dv_device_internal(struct scsi_device *sdev, u8 *buffer)
sdev              852 drivers/scsi/scsi_transport_spi.c 	struct spi_internal *i = to_spi_internal(sdev->host->transportt);
sdev              853 drivers/scsi/scsi_transport_spi.c 	struct scsi_target *starget = sdev->sdev_target;
sdev              854 drivers/scsi/scsi_transport_spi.c 	struct Scsi_Host *shost = sdev->host;
sdev              855 drivers/scsi/scsi_transport_spi.c 	int len = sdev->inquiry_len;
sdev              862 drivers/scsi/scsi_transport_spi.c 	if (spi_dv_device_compare_inquiry(sdev, buffer, buffer, DV_LOOPS)
sdev              878 drivers/scsi/scsi_transport_spi.c 		if (spi_dv_device_compare_inquiry(sdev, buffer,
sdev              949 drivers/scsi/scsi_transport_spi.c 	spi_dv_retrain(sdev, buffer, buffer + sdev->inquiry_len,
sdev              961 drivers/scsi/scsi_transport_spi.c 		len = spi_dv_device_get_echo_buffer(sdev, buffer);
sdev              973 drivers/scsi/scsi_transport_spi.c 	if (spi_dv_retrain(sdev, buffer, buffer + len,
sdev              994 drivers/scsi/scsi_transport_spi.c spi_dv_device(struct scsi_device *sdev)
sdev              996 drivers/scsi/scsi_transport_spi.c 	struct scsi_target *starget = sdev->sdev_target;
sdev             1011 drivers/scsi/scsi_transport_spi.c 	if (unlikely(scsi_device_get(sdev)))
sdev             1023 drivers/scsi/scsi_transport_spi.c 	if (unlikely(scsi_device_quiesce(sdev)))
sdev             1033 drivers/scsi/scsi_transport_spi.c 	spi_dv_device_internal(sdev, buffer);
sdev             1048 drivers/scsi/scsi_transport_spi.c 	scsi_device_put(sdev);
sdev             1056 drivers/scsi/scsi_transport_spi.c 	struct scsi_device	*sdev;
sdev             1064 drivers/scsi/scsi_transport_spi.c 	struct scsi_device *sdev = wqw->sdev;
sdev             1067 drivers/scsi/scsi_transport_spi.c 	spi_dv_device(sdev);
sdev             1068 drivers/scsi/scsi_transport_spi.c 	spi_dv_pending(sdev->sdev_target) = 0;
sdev             1069 drivers/scsi/scsi_transport_spi.c 	scsi_device_put(sdev);
sdev             1083 drivers/scsi/scsi_transport_spi.c spi_schedule_dv_device(struct scsi_device *sdev)
sdev             1091 drivers/scsi/scsi_transport_spi.c 	if (unlikely(spi_dv_pending(sdev->sdev_target))) {
sdev             1096 drivers/scsi/scsi_transport_spi.c 	spi_dv_pending(sdev->sdev_target) = 1;
sdev             1097 drivers/scsi/scsi_transport_spi.c 	if (unlikely(scsi_device_get(sdev))) {
sdev             1099 drivers/scsi/scsi_transport_spi.c 		spi_dv_pending(sdev->sdev_target) = 0;
sdev             1104 drivers/scsi/scsi_transport_spi.c 	wqw->sdev = sdev;
sdev             1368 drivers/scsi/scsi_transport_spi.c 	struct scsi_device *sdev;
sdev             1375 drivers/scsi/scsi_transport_spi.c 	sdev = to_scsi_device(dev);
sdev             1376 drivers/scsi/scsi_transport_spi.c 	shost = sdev->host;
sdev             1384 drivers/scsi/scsi_transport_spi.c 	if (i->f->deny_binding && i->f->deny_binding(sdev->sdev_target))
sdev              536 drivers/scsi/scsi_transport_srp.c 	struct scsi_device *sdev;
sdev              560 drivers/scsi/scsi_transport_srp.c 		shost_for_each_device(sdev, shost) {
sdev              561 drivers/scsi/scsi_transport_srp.c 			mutex_lock(&sdev->state_mutex);
sdev              562 drivers/scsi/scsi_transport_srp.c 			if (sdev->sdev_state == SDEV_OFFLINE)
sdev              563 drivers/scsi/scsi_transport_srp.c 				sdev->sdev_state = SDEV_RUNNING;
sdev              564 drivers/scsi/scsi_transport_srp.c 			mutex_unlock(&sdev->state_mutex);
sdev              600 drivers/scsi/scsi_transport_srp.c 	struct scsi_device *sdev = scmd->device;
sdev              601 drivers/scsi/scsi_transport_srp.c 	struct Scsi_Host *shost = sdev->host;
sdev              605 drivers/scsi/scsi_transport_srp.c 	pr_debug("timeout for sdev %s\n", dev_name(&sdev->sdev_gendev));
sdev              608 drivers/scsi/scsi_transport_srp.c 		i->f->reset_timer_if_blocked && scsi_device_blocked(sdev) ?
sdev              642 drivers/scsi/sd.c 	struct scsi_device *sdev = sdkp->device;
sdev              646 drivers/scsi/sd.c 	scsi_device_put(sdev);
sdev              654 drivers/scsi/sd.c 	struct scsi_device *sdev = data;
sdev              663 drivers/scsi/sd.c 	ret = scsi_execute_req(sdev, cdb,
sdev             1337 drivers/scsi/sd.c 	struct scsi_device *sdev;
sdev             1345 drivers/scsi/sd.c 	sdev = sdkp->device;
sdev             1352 drivers/scsi/sd.c 	if (!scsi_block_when_processing_errors(sdev))
sdev             1355 drivers/scsi/sd.c 	if (sdev->removable || sdkp->write_prot)
sdev             1362 drivers/scsi/sd.c 	if (sdev->removable && !sdkp->media_present && !(mode & FMODE_NDELAY))
sdev             1380 drivers/scsi/sd.c 	if (!scsi_device_online(sdev))
sdev             1383 drivers/scsi/sd.c 	if ((atomic_inc_return(&sdkp->openers) == 1) && sdev->removable) {
sdev             1384 drivers/scsi/sd.c 		if (scsi_block_when_processing_errors(sdev))
sdev             1385 drivers/scsi/sd.c 			scsi_set_medium_removal(sdev, SCSI_REMOVAL_PREVENT);
sdev             1411 drivers/scsi/sd.c 	struct scsi_device *sdev = sdkp->device;
sdev             1415 drivers/scsi/sd.c 	if (atomic_dec_return(&sdkp->openers) == 0 && sdev->removable) {
sdev             1416 drivers/scsi/sd.c 		if (scsi_block_when_processing_errors(sdev))
sdev             1417 drivers/scsi/sd.c 			scsi_set_medium_removal(sdev, SCSI_REMOVAL_ALLOW);
sdev             1699 drivers/scsi/sd.c 	struct scsi_device *sdev = sdkp->device;
sdev             1707 drivers/scsi/sd.c 	error = scsi_ioctl_block_when_processing_errors(sdev, cmd,
sdev             1718 drivers/scsi/sd.c 	if (!sdev->host->hostt->compat_ioctl)
sdev             1720 drivers/scsi/sd.c 	return sdev->host->hostt->compat_ioctl(sdev, cmd, p);
sdev             1747 drivers/scsi/sd.c 	struct scsi_device *sdev = scsi_disk(bdev->bd_disk)->device;
sdev             1762 drivers/scsi/sd.c 	result = scsi_execute_req(sdev, cmd, DMA_TO_DEVICE, &data, sizeof(data),
sdev             1767 drivers/scsi/sd.c 		sdev_printk(KERN_INFO, sdev, "PR command failed: %d\n", result);
sdev             1768 drivers/scsi/sd.c 		scsi_print_sense_hdr(sdev, NULL, &sshdr);
sdev             1868 drivers/scsi/sd.c 	struct scsi_device *sdev = scmd->device;
sdev             1870 drivers/scsi/sd.c 	if (!scsi_device_online(sdev) ||
sdev             1896 drivers/scsi/sd.c 		mutex_lock(&sdev->state_mutex);
sdev             1897 drivers/scsi/sd.c 		scsi_device_set_state(sdev, SDEV_OFFLINE);
sdev             1898 drivers/scsi/sd.c 		mutex_unlock(&sdev->state_mutex);
sdev             1909 drivers/scsi/sd.c 	struct scsi_device *sdev = scmd->device;
sdev             1917 drivers/scsi/sd.c 	if (scsi_bufflen(scmd) <= sdev->sector_size)
sdev             1930 drivers/scsi/sd.c 	start_lba = sectors_to_logical(sdev, blk_rq_pos(req));
sdev             1931 drivers/scsi/sd.c 	end_lba = start_lba + bytes_to_logical(sdev, scsi_bufflen(scmd));
sdev             1944 drivers/scsi/sd.c 	good_bytes = logical_to_bytes(sdev, bad_lba - start_lba);
sdev             2998 drivers/scsi/sd.c 	struct scsi_device *sdev = sdkp->device;
sdev             3000 drivers/scsi/sd.c 	if (sdev->host->no_write_same) {
sdev             3001 drivers/scsi/sd.c 		sdev->no_write_same = 1;
sdev             3006 drivers/scsi/sd.c 	if (scsi_report_opcode(sdev, buffer, SD_BUF_SIZE, INQUIRY) < 0) {
sdev             3010 drivers/scsi/sd.c 		sdev->no_report_opcodes = 1;
sdev             3016 drivers/scsi/sd.c 		if (!scsi_get_vpd_page(sdev, 0x89, buffer, vpd_buf_len))
sdev             3017 drivers/scsi/sd.c 			sdev->no_write_same = 1;
sdev             3020 drivers/scsi/sd.c 	if (scsi_report_opcode(sdev, buffer, SD_BUF_SIZE, WRITE_SAME_16) == 1)
sdev             3023 drivers/scsi/sd.c 	if (scsi_report_opcode(sdev, buffer, SD_BUF_SIZE, WRITE_SAME) == 1)
sdev             3029 drivers/scsi/sd.c 	struct scsi_device *sdev = sdkp->device;
sdev             3031 drivers/scsi/sd.c 	if (!sdev->security_supported)
sdev             3034 drivers/scsi/sd.c 	if (scsi_report_opcode(sdev, buffer, SD_BUF_SIZE,
sdev             3036 drivers/scsi/sd.c 	    scsi_report_opcode(sdev, buffer, SD_BUF_SIZE,
sdev             3216 drivers/scsi/sd.c 	struct scsi_device *sdev = scsi_disk(disk)->device;
sdev             3218 drivers/scsi/sd.c 	if (sdev->host->hostt->unlock_native_capacity)
sdev             3219 drivers/scsi/sd.c 		sdev->host->hostt->unlock_native_capacity(sdev);
sdev              171 drivers/scsi/sd.h static inline sector_t logical_to_sectors(struct scsi_device *sdev, sector_t blocks)
sdev              173 drivers/scsi/sd.h 	return blocks << (ilog2(sdev->sector_size) - 9);
sdev              176 drivers/scsi/sd.h static inline unsigned int logical_to_bytes(struct scsi_device *sdev, sector_t blocks)
sdev              178 drivers/scsi/sd.h 	return blocks * sdev->sector_size;
sdev              181 drivers/scsi/sd.h static inline sector_t bytes_to_logical(struct scsi_device *sdev, unsigned int bytes)
sdev              183 drivers/scsi/sd.h 	return bytes >> ilog2(sdev->sector_size);
sdev              186 drivers/scsi/sd.h static inline sector_t sectors_to_logical(struct scsi_device *sdev, sector_t sector)
sdev              188 drivers/scsi/sd.h 	return sector >> (ilog2(sdev->sector_size) - 9);
sdev               47 drivers/scsi/ses.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev               50 drivers/scsi/ses.c 	if (sdev->type != TYPE_ENCLOSURE)
sdev               54 drivers/scsi/ses.c 	sdev_printk(KERN_NOTICE, sdev, "Attached Enclosure device\n");
sdev               77 drivers/scsi/ses.c static int ses_recv_diag(struct scsi_device *sdev, int page_code,
sdev               91 drivers/scsi/ses.c 	ret =  scsi_execute_req(sdev, cmd, DMA_FROM_DEVICE, buf, bufflen,
sdev              104 drivers/scsi/ses.c 	sdev_printk(KERN_ERR, sdev,
sdev              111 drivers/scsi/ses.c static int ses_send_diag(struct scsi_device *sdev, int page_code,
sdev              125 drivers/scsi/ses.c 	result = scsi_execute_req(sdev, cmd, DMA_TO_DEVICE, buf, bufflen,
sdev              128 drivers/scsi/ses.c 		sdev_printk(KERN_ERR, sdev, "SEND DIAGNOSTIC result: %8x\n",
sdev              138 drivers/scsi/ses.c 	struct scsi_device *sdev = to_scsi_device(edev->edev.parent);
sdev              161 drivers/scsi/ses.c 	return ses_send_diag(sdev, 2, ses_dev->page2, ses_dev->page2_len);
sdev              168 drivers/scsi/ses.c 	struct scsi_device *sdev = to_scsi_device(edev->edev.parent);
sdev              173 drivers/scsi/ses.c 	if (ses_recv_diag(sdev, 2, ses_dev->page2, ses_dev->page2_len) < 0)
sdev              407 drivers/scsi/ses.c 	struct scsi_device *sdev;
sdev              412 drivers/scsi/ses.c 	sdev = to_scsi_device(edev->edev.parent);
sdev              414 drivers/scsi/ses.c 	if (sdev->host != sed->shost)
sdev              498 drivers/scsi/ses.c 				       struct scsi_device *sdev,
sdev              513 drivers/scsi/ses.c 		ses_recv_diag(sdev, 10, ses_dev->page10, ses_dev->page10_len);
sdev              515 drivers/scsi/ses.c 	result = ses_recv_diag(sdev, 7, hdr_buf, INIT_ALLOC_SIZE);
sdev              524 drivers/scsi/ses.c 	result = ses_recv_diag(sdev, 7, buf, len);
sdev              602 drivers/scsi/ses.c 				   struct scsi_device *sdev,
sdev              613 drivers/scsi/ses.c 	if (scsi_is_sas_rphy(sdev->sdev_target->dev.parent))
sdev              614 drivers/scsi/ses.c 		efd.addr = sas_get_address(sdev);
sdev              617 drivers/scsi/ses.c 		efd.dev = &sdev->sdev_gendev;
sdev              626 drivers/scsi/ses.c 	struct scsi_device *sdev = to_scsi_device(cdev->parent);
sdev              637 drivers/scsi/ses.c 	if (!scsi_device_enclosure(sdev)) {
sdev              641 drivers/scsi/ses.c 		while ((edev = enclosure_find(&sdev->host->shost_gendev, prev)) != NULL) {
sdev              642 drivers/scsi/ses.c 			ses_match_to_enclosure(edev, sdev, 1);
sdev              649 drivers/scsi/ses.c 	if (sdev->type != TYPE_ENCLOSURE)
sdev              650 drivers/scsi/ses.c 		sdev_printk(KERN_NOTICE, sdev, "Embedded Enclosure Device\n");
sdev              658 drivers/scsi/ses.c 	result = ses_recv_diag(sdev, page, hdr_buf, INIT_ALLOC_SIZE);
sdev              667 drivers/scsi/ses.c 	result = ses_recv_diag(sdev, page, buf, len);
sdev              698 drivers/scsi/ses.c 	result = ses_recv_diag(sdev, page, hdr_buf, INIT_ALLOC_SIZE);
sdev              708 drivers/scsi/ses.c 	result = ses_recv_diag(sdev, 2, buf, len);
sdev              718 drivers/scsi/ses.c 	result = ses_recv_diag(sdev, page, hdr_buf, INIT_ALLOC_SIZE);
sdev              726 drivers/scsi/ses.c 		result = ses_recv_diag(sdev, page, buf, len);
sdev              738 drivers/scsi/ses.c 	edev = enclosure_register(cdev->parent, dev_name(&sdev->sdev_gendev),
sdev              751 drivers/scsi/ses.c 	ses_enclosure_data_process(edev, sdev, 1);
sdev              755 drivers/scsi/ses.c 	shost_for_each_device(tmp_sdev, sdev->host) {
sdev              764 drivers/scsi/ses.c 	sdev_printk(KERN_ERR, sdev, "Failed to get diagnostic page 0x%x\n",
sdev              776 drivers/scsi/ses.c 	sdev_printk(KERN_ERR, sdev, "Failed to bind enclosure %d\n", err);
sdev              785 drivers/scsi/ses.c static void ses_intf_remove_component(struct scsi_device *sdev)
sdev              789 drivers/scsi/ses.c 	while ((edev = enclosure_find(&sdev->host->shost_gendev, prev)) != NULL) {
sdev              791 drivers/scsi/ses.c 		if (!enclosure_remove_device(edev, &sdev->sdev_gendev))
sdev              798 drivers/scsi/ses.c static void ses_intf_remove_enclosure(struct scsi_device *sdev)
sdev              804 drivers/scsi/ses.c 	edev = enclosure_find(&sdev->sdev_gendev, NULL);
sdev              825 drivers/scsi/ses.c 	struct scsi_device *sdev = to_scsi_device(cdev->parent);
sdev              827 drivers/scsi/ses.c 	if (!scsi_device_enclosure(sdev))
sdev              828 drivers/scsi/ses.c 		ses_intf_remove_component(sdev);
sdev              830 drivers/scsi/ses.c 		ses_intf_remove_enclosure(sdev);
sdev             1152 drivers/scsi/sg.c 	struct scsi_device *sdev;
sdev             1157 drivers/scsi/sg.c 	sdev = sdp->device;
sdev             1158 drivers/scsi/sg.c 	if (sdev->host->hostt->compat_ioctl) { 
sdev             1161 drivers/scsi/sg.c 		ret = sdev->host->hostt->compat_ioctl(sdev, cmd_in, (void __user *)arg);
sdev              945 drivers/scsi/smartpqi/smartpqi.h 	struct scsi_device *sdev;
sdev              194 drivers/scsi/smartpqi/smartpqi_init.c static inline void pqi_disable_write_same(struct scsi_device *sdev)
sdev              196 drivers/scsi/smartpqi/smartpqi_init.c 	sdev->no_write_same = 1;
sdev             1518 drivers/scsi/smartpqi/smartpqi_init.c 		scsi_remove_device(device->sdev);
sdev             1736 drivers/scsi/smartpqi/smartpqi_init.c 	return device->sdev != NULL;
sdev             1848 drivers/scsi/smartpqi/smartpqi_init.c 		if (device->sdev && device->queue_depth !=
sdev             1851 drivers/scsi/smartpqi/smartpqi_init.c 			scsi_change_queue_depth(device->sdev,
sdev             2664 drivers/scsi/smartpqi/smartpqi_init.c static inline void pqi_take_device_offline(struct scsi_device *sdev, char *path)
sdev             2669 drivers/scsi/smartpqi/smartpqi_init.c 	device = sdev->hostdata;
sdev             2674 drivers/scsi/smartpqi/smartpqi_init.c 	ctrl_info = shost_to_hba(sdev->host);
sdev             5765 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_slave_alloc(struct scsi_device *sdev)
sdev             5773 drivers/scsi/smartpqi/smartpqi_init.c 	ctrl_info = shost_to_hba(sdev->host);
sdev             5777 drivers/scsi/smartpqi/smartpqi_init.c 	if (sdev_channel(sdev) == PQI_PHYSICAL_DEVICE_BUS) {
sdev             5778 drivers/scsi/smartpqi/smartpqi_init.c 		starget = scsi_target(sdev);
sdev             5782 drivers/scsi/smartpqi/smartpqi_init.c 			device->target = sdev_id(sdev);
sdev             5783 drivers/scsi/smartpqi/smartpqi_init.c 			device->lun = sdev->lun;
sdev             5787 drivers/scsi/smartpqi/smartpqi_init.c 		device = pqi_find_scsi_dev(ctrl_info, sdev_channel(sdev),
sdev             5788 drivers/scsi/smartpqi/smartpqi_init.c 			sdev_id(sdev), sdev->lun);
sdev             5792 drivers/scsi/smartpqi/smartpqi_init.c 		sdev->hostdata = device;
sdev             5793 drivers/scsi/smartpqi/smartpqi_init.c 		device->sdev = sdev;
sdev             5796 drivers/scsi/smartpqi/smartpqi_init.c 			scsi_change_queue_depth(sdev,
sdev             5800 drivers/scsi/smartpqi/smartpqi_init.c 			pqi_disable_write_same(sdev);
sdev             5802 drivers/scsi/smartpqi/smartpqi_init.c 			sdev->allow_restart = 1;
sdev             6068 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_ioctl(struct scsi_device *sdev, unsigned int cmd,
sdev             6074 drivers/scsi/smartpqi/smartpqi_init.c 	ctrl_info = shost_to_hba(sdev->host);
sdev             6238 drivers/scsi/smartpqi/smartpqi_init.c 	struct scsi_device *sdev;
sdev             6243 drivers/scsi/smartpqi/smartpqi_init.c 	sdev = to_scsi_device(dev);
sdev             6244 drivers/scsi/smartpqi/smartpqi_init.c 	ctrl_info = shost_to_hba(sdev->host);
sdev             6248 drivers/scsi/smartpqi/smartpqi_init.c 	device = sdev->hostdata;
sdev             6276 drivers/scsi/smartpqi/smartpqi_init.c 	struct scsi_device *sdev;
sdev             6281 drivers/scsi/smartpqi/smartpqi_init.c 	sdev = to_scsi_device(dev);
sdev             6282 drivers/scsi/smartpqi/smartpqi_init.c 	ctrl_info = shost_to_hba(sdev->host);
sdev             6286 drivers/scsi/smartpqi/smartpqi_init.c 	device = sdev->hostdata;
sdev             6304 drivers/scsi/smartpqi/smartpqi_init.c 	struct scsi_device *sdev;
sdev             6315 drivers/scsi/smartpqi/smartpqi_init.c 	sdev = to_scsi_device(dev);
sdev             6316 drivers/scsi/smartpqi/smartpqi_init.c 	ctrl_info = shost_to_hba(sdev->host);
sdev             6320 drivers/scsi/smartpqi/smartpqi_init.c 	device = sdev->hostdata;
sdev             6388 drivers/scsi/smartpqi/smartpqi_init.c 	struct scsi_device *sdev;
sdev             6393 drivers/scsi/smartpqi/smartpqi_init.c 	sdev = to_scsi_device(dev);
sdev             6394 drivers/scsi/smartpqi/smartpqi_init.c 	ctrl_info = shost_to_hba(sdev->host);
sdev             6398 drivers/scsi/smartpqi/smartpqi_init.c 	device = sdev->hostdata;
sdev             6415 drivers/scsi/smartpqi/smartpqi_init.c 	struct scsi_device *sdev;
sdev             6419 drivers/scsi/smartpqi/smartpqi_init.c 	sdev = to_scsi_device(dev);
sdev             6420 drivers/scsi/smartpqi/smartpqi_init.c 	ctrl_info = shost_to_hba(sdev->host);
sdev             6424 drivers/scsi/smartpqi/smartpqi_init.c 	device = sdev->hostdata;
sdev             6438 drivers/scsi/smartpqi/smartpqi_init.c 	struct scsi_device *sdev;
sdev             6443 drivers/scsi/smartpqi/smartpqi_init.c 	sdev = to_scsi_device(dev);
sdev             6444 drivers/scsi/smartpqi/smartpqi_init.c 	ctrl_info = shost_to_hba(sdev->host);
sdev             6448 drivers/scsi/smartpqi/smartpqi_init.c 	device = sdev->hostdata;
sdev               63 drivers/scsi/snic/snic_main.c snic_slave_alloc(struct scsi_device *sdev)
sdev               65 drivers/scsi/snic/snic_main.c 	struct snic_tgt *tgt = starget_to_tgt(scsi_target(sdev));
sdev               78 drivers/scsi/snic/snic_main.c snic_slave_configure(struct scsi_device *sdev)
sdev               80 drivers/scsi/snic/snic_main.c 	struct snic *snic = shost_priv(sdev->host);
sdev               87 drivers/scsi/snic/snic_main.c 	scsi_change_queue_depth(sdev, qdepth);
sdev               93 drivers/scsi/snic/snic_main.c 	blk_queue_rq_timeout(sdev->request_queue, tmo);
sdev               99 drivers/scsi/snic/snic_main.c snic_change_queue_depth(struct scsi_device *sdev, int qdepth)
sdev              101 drivers/scsi/snic/snic_main.c 	struct snic *snic = shost_priv(sdev->host);
sdev              105 drivers/scsi/snic/snic_main.c 	if (qsz < sdev->queue_depth)
sdev              107 drivers/scsi/snic/snic_main.c 	else if (qsz > sdev->queue_depth)
sdev              110 drivers/scsi/snic/snic_main.c 	atomic64_set(&snic->s_stats.misc.last_qsz, sdev->queue_depth);
sdev              112 drivers/scsi/snic/snic_main.c 	scsi_change_queue_depth(sdev, qsz);
sdev              114 drivers/scsi/snic/snic_main.c 	return sdev->queue_depth;
sdev             2105 drivers/scsi/snic/snic_scsi.c snic_dev_reset_supported(struct scsi_device *sdev)
sdev             2107 drivers/scsi/snic/snic_scsi.c 	struct snic_tgt *tgt = starget_to_tgt(scsi_target(sdev));
sdev              182 drivers/scsi/sr.c 	struct scsi_device *sdev = cd->device;
sdev              186 drivers/scsi/sr.c 	scsi_device_put(sdev);
sdev              190 drivers/scsi/sr.c static unsigned int sr_get_events(struct scsi_device *sdev)
sdev              206 drivers/scsi/sr.c 	result = scsi_execute_req(sdev, cmd, DMA_FROM_DEVICE, buf, sizeof(buf),
sdev              527 drivers/scsi/sr.c 	struct scsi_device *sdev;
sdev              534 drivers/scsi/sr.c 	sdev = cd->device;
sdev              535 drivers/scsi/sr.c 	scsi_autopm_get_device(sdev);
sdev              542 drivers/scsi/sr.c 	scsi_autopm_put_device(sdev);
sdev              563 drivers/scsi/sr.c 	struct scsi_device *sdev = cd->device;
sdev              569 drivers/scsi/sr.c 	ret = scsi_ioctl_block_when_processing_errors(sdev, cmd,
sdev              574 drivers/scsi/sr.c 	scsi_autopm_get_device(sdev);
sdev              583 drivers/scsi/sr.c 		ret = scsi_ioctl(sdev, cmd, argp);
sdev              591 drivers/scsi/sr.c 	ret = scsi_ioctl(sdev, cmd, argp);
sdev              594 drivers/scsi/sr.c 	scsi_autopm_put_device(sdev);
sdev              655 drivers/scsi/sr.c 	struct scsi_device *sdev = cd->device;
sdev              663 drivers/scsi/sr.c 	if (!scsi_block_when_processing_errors(sdev))
sdev              683 drivers/scsi/sr.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev              688 drivers/scsi/sr.c 	scsi_autopm_get_device(sdev);
sdev              690 drivers/scsi/sr.c 	if (sdev->type != TYPE_ROM && sdev->type != TYPE_WORM)
sdev              722 drivers/scsi/sr.c 	blk_queue_rq_timeout(sdev->request_queue, SR_TIMEOUT);
sdev              724 drivers/scsi/sr.c 	cd->device = sdev;
sdev              741 drivers/scsi/sr.c 	sdev->sector_size = 2048;	/* A guess, just in case */
sdev              749 drivers/scsi/sr.c 	disk->queue = sdev->request_queue;
sdev              759 drivers/scsi/sr.c 	blk_pm_runtime_init(sdev->request_queue, dev);
sdev              763 drivers/scsi/sr.c 	device_add_disk(&sdev->sdev_gendev, disk, NULL);
sdev              765 drivers/scsi/sr.c 	sdev_printk(KERN_DEBUG, sdev,
sdev              776 drivers/scsi/sr.c 	scsi_autopm_put_device(sdev);
sdev              976 drivers/scsi/sr.c 	struct scsi_device *sdev = cd->device;
sdev              978 drivers/scsi/sr.c 	if (cgc->cmd[0] == GPCMD_READ_DISC_INFO && sdev->no_read_disc_info)
sdev              271 drivers/scsi/st.c 	struct scsi_device *sdev = STp->device;
sdev              275 drivers/scsi/st.c 	scsi_device_put(sdev);
sdev             3863 drivers/scsi/st.c 	struct scsi_device *sdev = STp->device;
sdev             3865 drivers/scsi/st.c 	if (sdev->host->hostt->compat_ioctl) { 
sdev             3867 drivers/scsi/st.c 		ret = sdev->host->hostt->compat_ioctl(sdev, cmd, (void __user *)arg);
sdev              587 drivers/scsi/stex.c stex_slave_config(struct scsi_device *sdev)
sdev              589 drivers/scsi/stex.c 	sdev->use_10_for_rw = 1;
sdev              590 drivers/scsi/stex.c 	sdev->use_10_for_ms = 1;
sdev              591 drivers/scsi/stex.c 	blk_queue_rq_timeout(sdev->request_queue, 60 * HZ);
sdev             1458 drivers/scsi/stex.c static int stex_biosparam(struct scsi_device *sdev,
sdev              378 drivers/scsi/storvsc_drv.c static int storvsc_change_queue_depth(struct scsi_device *sdev, int queue_depth);
sdev              498 drivers/scsi/storvsc_drv.c 	struct scsi_device *sdev;
sdev              502 drivers/scsi/storvsc_drv.c 	sdev = scsi_device_lookup(wrk->host, 0, wrk->tgt_id, wrk->lun);
sdev              503 drivers/scsi/storvsc_drv.c 	if (!sdev)
sdev              505 drivers/scsi/storvsc_drv.c 	scsi_rescan_device(&sdev->sdev_gendev);
sdev              506 drivers/scsi/storvsc_drv.c 	scsi_device_put(sdev);
sdev              515 drivers/scsi/storvsc_drv.c 	struct scsi_device *sdev;
sdev              532 drivers/scsi/storvsc_drv.c 	shost_for_each_device(sdev, host)
sdev              533 drivers/scsi/storvsc_drv.c 		scsi_test_unit_ready(sdev, 1, 1, NULL);
sdev              544 drivers/scsi/storvsc_drv.c 	struct scsi_device *sdev;
sdev              550 drivers/scsi/storvsc_drv.c 	sdev = scsi_device_lookup(wrk->host, 0, wrk->tgt_id, wrk->lun);
sdev              552 drivers/scsi/storvsc_drv.c 	if (sdev) {
sdev              553 drivers/scsi/storvsc_drv.c 		scsi_remove_device(sdev);
sdev              554 drivers/scsi/storvsc_drv.c 		scsi_device_put(sdev);
sdev             1448 drivers/scsi/storvsc_drv.c static int storvsc_get_chs(struct scsi_device *sdev, struct block_device * bdev,
sdev             1911 drivers/scsi/storvsc_drv.c static int storvsc_change_queue_depth(struct scsi_device *sdev, int queue_depth)
sdev             1916 drivers/scsi/storvsc_drv.c 	return scsi_change_queue_depth(sdev, queue_depth);
sdev              289 drivers/scsi/sym53c8xx_2/sym_glue.c 	struct scsi_device *sdev = cmd->device;
sdev              298 drivers/scsi/sym53c8xx_2/sym_glue.c 	tp = &np->target[sdev->id];
sdev              303 drivers/scsi/sym53c8xx_2/sym_glue.c 	lp = sym_lp(tp, sdev->lun);
sdev              724 drivers/scsi/sym53c8xx_2/sym_glue.c static int sym53c8xx_slave_alloc(struct scsi_device *sdev)
sdev              726 drivers/scsi/sym53c8xx_2/sym_glue.c 	struct sym_hcb *np = sym_get_hcb(sdev->host);
sdev              727 drivers/scsi/sym53c8xx_2/sym_glue.c 	struct sym_tcb *tp = &np->target[sdev->id];
sdev              732 drivers/scsi/sym53c8xx_2/sym_glue.c 	if (sdev->id >= SYM_CONF_MAX_TARGET || sdev->lun >= SYM_CONF_MAX_LUN)
sdev              748 drivers/scsi/sym53c8xx_2/sym_glue.c 		starget_printk(KERN_INFO, sdev->sdev_target,
sdev              755 drivers/scsi/sym53c8xx_2/sym_glue.c 		if (sdev->lun != 0) {
sdev              759 drivers/scsi/sym53c8xx_2/sym_glue.c 		starget_printk(KERN_INFO, sdev->sdev_target,
sdev              763 drivers/scsi/sym53c8xx_2/sym_glue.c 	lp = sym_alloc_lcb(np, sdev->id, sdev->lun);
sdev              769 drivers/scsi/sym53c8xx_2/sym_glue.c 		tp->starget = sdev->sdev_target;
sdev              784 drivers/scsi/sym53c8xx_2/sym_glue.c static int sym53c8xx_slave_configure(struct scsi_device *sdev)
sdev              786 drivers/scsi/sym53c8xx_2/sym_glue.c 	struct sym_hcb *np = sym_get_hcb(sdev->host);
sdev              787 drivers/scsi/sym53c8xx_2/sym_glue.c 	struct sym_tcb *tp = &np->target[sdev->id];
sdev              788 drivers/scsi/sym53c8xx_2/sym_glue.c 	struct sym_lcb *lp = sym_lp(tp, sdev->lun);
sdev              805 drivers/scsi/sym53c8xx_2/sym_glue.c 	if (!sdev->tagged_supported)
sdev              810 drivers/scsi/sym53c8xx_2/sym_glue.c 	scsi_change_queue_depth(sdev, depth_to_use);
sdev              812 drivers/scsi/sym53c8xx_2/sym_glue.c 	sym_tune_dev_queuing(tp, sdev->lun, reqtags);
sdev              814 drivers/scsi/sym53c8xx_2/sym_glue.c 	if (!spi_initial_dv(sdev->sdev_target))
sdev              815 drivers/scsi/sym53c8xx_2/sym_glue.c 		spi_dv_device(sdev);
sdev              820 drivers/scsi/sym53c8xx_2/sym_glue.c static void sym53c8xx_slave_destroy(struct scsi_device *sdev)
sdev              822 drivers/scsi/sym53c8xx_2/sym_glue.c 	struct sym_hcb *np = sym_get_hcb(sdev->host);
sdev              823 drivers/scsi/sym53c8xx_2/sym_glue.c 	struct sym_tcb *tp = &np->target[sdev->id];
sdev              824 drivers/scsi/sym53c8xx_2/sym_glue.c 	struct sym_lcb *lp = sym_lp(tp, sdev->lun);
sdev              839 drivers/scsi/sym53c8xx_2/sym_glue.c 			       "Removing busy LCB (%d)\n", (u8)sdev->lun);
sdev              843 drivers/scsi/sym53c8xx_2/sym_glue.c 	if (sym_free_lcb(np, sdev->id, sdev->lun) == 0) {
sdev             5133 drivers/scsi/sym53c8xx_2/sym_hipd.c 	struct scsi_device *sdev = cmd->device;
sdev             5153 drivers/scsi/sym53c8xx_2/sym_hipd.c 	lp = sym_lp(tp, sdev->lun);
sdev             5160 drivers/scsi/sym53c8xx_2/sym_hipd.c 	msgptr[msglen++] = IDENTIFY(can_disconnect, sdev->lun);
sdev             5353 drivers/scsi/sym53c8xx_2/sym_hipd.c 	struct scsi_device *sdev;
sdev             5367 drivers/scsi/sym53c8xx_2/sym_hipd.c 	sdev = cmd->device;
sdev             5369 drivers/scsi/sym53c8xx_2/sym_hipd.c 		dev_info(&sdev->sdev_gendev, "CCB=%p STAT=%x/%x/%x\n", cp,
sdev             5377 drivers/scsi/sym53c8xx_2/sym_hipd.c 	lp = sym_lp(tp, sdev->lun);
sdev             5408 drivers/scsi/sym53c8xx_2/sym_hipd.c 	i = sym_dequeue_from_squeue(np, i, cp->target, sdev->lun, -1);
sdev              733 drivers/scsi/ufs/ufs-sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);			\
sdev              734 drivers/scsi/ufs/ufs-sysfs.c 	struct ufs_hba *hba = shost_priv(sdev->host);			\
sdev              735 drivers/scsi/ufs/ufs-sysfs.c 	u8 lun = ufshcd_scsi_to_upiu_lun(sdev->lun);			\
sdev              786 drivers/scsi/ufs/ufs-sysfs.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev              787 drivers/scsi/ufs/ufs-sysfs.c 	struct ufs_hba *hba = shost_priv(sdev->host);
sdev              788 drivers/scsi/ufs/ufs-sysfs.c 	u8 lun = ufshcd_scsi_to_upiu_lun(sdev->lun);
sdev             4511 drivers/scsi/ufs/ufshcd.c static void ufshcd_set_queue_depth(struct scsi_device *sdev)
sdev             4517 drivers/scsi/ufs/ufshcd.c 	hba = shost_priv(sdev->host);
sdev             4521 drivers/scsi/ufs/ufshcd.c 					  ufshcd_scsi_to_upiu_lun(sdev->lun),
sdev             4537 drivers/scsi/ufs/ufshcd.c 	scsi_change_queue_depth(sdev, lun_qdepth);
sdev             4583 drivers/scsi/ufs/ufshcd.c 						    struct scsi_device *sdev)
sdev             4589 drivers/scsi/ufs/ufshcd.c 		if (!ufshcd_get_lu_wp(hba, ufshcd_scsi_to_upiu_lun(sdev->lun),
sdev             4602 drivers/scsi/ufs/ufshcd.c static int ufshcd_slave_alloc(struct scsi_device *sdev)
sdev             4606 drivers/scsi/ufs/ufshcd.c 	hba = shost_priv(sdev->host);
sdev             4609 drivers/scsi/ufs/ufshcd.c 	sdev->use_10_for_ms = 1;
sdev             4612 drivers/scsi/ufs/ufshcd.c 	sdev->allow_restart = 1;
sdev             4615 drivers/scsi/ufs/ufshcd.c 	sdev->no_report_opcodes = 1;
sdev             4618 drivers/scsi/ufs/ufshcd.c 	sdev->no_write_same = 1;
sdev             4620 drivers/scsi/ufs/ufshcd.c 	ufshcd_set_queue_depth(sdev);
sdev             4622 drivers/scsi/ufs/ufshcd.c 	ufshcd_get_lu_power_on_wp_status(hba, sdev);
sdev             4634 drivers/scsi/ufs/ufshcd.c static int ufshcd_change_queue_depth(struct scsi_device *sdev, int depth)
sdev             4636 drivers/scsi/ufs/ufshcd.c 	struct ufs_hba *hba = shost_priv(sdev->host);
sdev             4640 drivers/scsi/ufs/ufshcd.c 	return scsi_change_queue_depth(sdev, depth);
sdev             4647 drivers/scsi/ufs/ufshcd.c static int ufshcd_slave_configure(struct scsi_device *sdev)
sdev             4649 drivers/scsi/ufs/ufshcd.c 	struct request_queue *q = sdev->request_queue;
sdev             4659 drivers/scsi/ufs/ufshcd.c static void ufshcd_slave_destroy(struct scsi_device *sdev)
sdev             4663 drivers/scsi/ufs/ufshcd.c 	hba = shost_priv(sdev->host);
sdev             4665 drivers/scsi/ufs/ufshcd.c 	if (ufshcd_scsi_to_upiu_lun(sdev->lun) == UFS_UPIU_UFS_DEVICE_WLUN) {
sdev              280 drivers/scsi/virtio_scsi.c 	struct scsi_device *sdev;
sdev              290 drivers/scsi/virtio_scsi.c 		sdev = scsi_device_lookup(shost, 0, target, lun);
sdev              291 drivers/scsi/virtio_scsi.c 		if (sdev) {
sdev              292 drivers/scsi/virtio_scsi.c 			scsi_remove_device(sdev);
sdev              293 drivers/scsi/virtio_scsi.c 			scsi_device_put(sdev);
sdev              307 drivers/scsi/virtio_scsi.c 	struct scsi_device *sdev;
sdev              314 drivers/scsi/virtio_scsi.c 	sdev = scsi_device_lookup(shost, 0, target, lun);
sdev              315 drivers/scsi/virtio_scsi.c 	if (!sdev) {
sdev              324 drivers/scsi/virtio_scsi.c 		scsi_rescan_device(&sdev->sdev_gendev);
sdev              326 drivers/scsi/virtio_scsi.c 	scsi_device_put(sdev);
sdev              331 drivers/scsi/virtio_scsi.c 	struct scsi_device *sdev;
sdev              337 drivers/scsi/virtio_scsi.c 	shost_for_each_device(sdev, shost) {
sdev              338 drivers/scsi/virtio_scsi.c 		inquiry_len = sdev->inquiry_len ? sdev->inquiry_len : 36;
sdev              346 drivers/scsi/virtio_scsi.c 		result = scsi_execute_req(sdev, scsi_cmd, DMA_FROM_DEVICE,
sdev              352 drivers/scsi/virtio_scsi.c 			scsi_remove_device(sdev);
sdev              672 drivers/scsi/virtio_scsi.c static int virtscsi_change_queue_depth(struct scsi_device *sdev, int qdepth)
sdev              674 drivers/scsi/virtio_scsi.c 	struct Scsi_Host *shost = sdev->host;
sdev              677 drivers/scsi/virtio_scsi.c 	return scsi_change_queue_depth(sdev, min(max_depth, qdepth));
sdev              523 drivers/scsi/vmw_pvscsi.c static int pvscsi_change_queue_depth(struct scsi_device *sdev, int qdepth)
sdev              525 drivers/scsi/vmw_pvscsi.c 	if (!sdev->tagged_supported)
sdev              527 drivers/scsi/vmw_pvscsi.c 	return scsi_change_queue_depth(sdev, qdepth);
sdev              681 drivers/scsi/vmw_pvscsi.c 	struct scsi_device *sdev;
sdev              685 drivers/scsi/vmw_pvscsi.c 	sdev = cmd->device;
sdev              705 drivers/scsi/vmw_pvscsi.c 	e->bus    = sdev->channel;
sdev              706 drivers/scsi/vmw_pvscsi.c 	e->target = sdev->id;
sdev              708 drivers/scsi/vmw_pvscsi.c 	e->lun[1] = sdev->lun;
sdev             1024 drivers/scsi/vmw_pvscsi.c 	struct scsi_device *sdev;
sdev             1042 drivers/scsi/vmw_pvscsi.c 		sdev = scsi_device_lookup(host, desc->bus, desc->target,
sdev             1044 drivers/scsi/vmw_pvscsi.c 		if (sdev) {
sdev             1046 drivers/scsi/vmw_pvscsi.c 			scsi_device_put(sdev);
sdev             1063 drivers/scsi/vmw_pvscsi.c 		sdev = scsi_device_lookup(host, desc->bus, desc->target,
sdev             1065 drivers/scsi/vmw_pvscsi.c 		if (sdev) {
sdev             1066 drivers/scsi/vmw_pvscsi.c 			scsi_remove_device(sdev);
sdev             1067 drivers/scsi/vmw_pvscsi.c 			scsi_device_put(sdev);
sdev              545 drivers/scsi/wd719x.c static int wd719x_biosparam(struct scsi_device *sdev, struct block_device *bdev,
sdev              654 drivers/scsi/xen-scsifront.c static int scsifront_sdev_configure(struct scsi_device *sdev)
sdev              656 drivers/scsi/xen-scsifront.c 	struct vscsifrnt_info *info = shost_priv(sdev->host);
sdev              672 drivers/scsi/xen-scsifront.c static void scsifront_sdev_destroy(struct scsi_device *sdev)
sdev              674 drivers/scsi/xen-scsifront.c 	struct vscsifrnt_info *info = shost_priv(sdev->host);
sdev              977 drivers/scsi/xen-scsifront.c 	struct scsi_device *sdev;
sdev             1029 drivers/scsi/xen-scsifront.c 			sdev = scsi_device_lookup(info->host, chn, tgt, lun);
sdev             1030 drivers/scsi/xen-scsifront.c 			if (sdev) {
sdev             1031 drivers/scsi/xen-scsifront.c 				scsi_remove_device(sdev);
sdev             1032 drivers/scsi/xen-scsifront.c 				scsi_device_put(sdev);
sdev               30 drivers/sh/superhyway/superhyway.c 	struct superhyway_device *sdev = to_superhyway_device(dev);
sdev               32 drivers/sh/superhyway/superhyway.c 	kfree(sdev->resource);
sdev               33 drivers/sh/superhyway/superhyway.c 	kfree(sdev);
sdev               53 drivers/sh/superhyway/superhyway.c int superhyway_add_device(unsigned long base, struct superhyway_device *sdev,
sdev               56 drivers/sh/superhyway/superhyway.c 	struct superhyway_device *dev = sdev;
sdev              387 drivers/siox/siox-core.c 	struct siox_device *sdev = to_siox_device(dev);
sdev              389 drivers/siox/siox-core.c 	return sprintf(buf, "%s\n", sdev->type);
sdev              397 drivers/siox/siox-core.c 	struct siox_device *sdev = to_siox_device(dev);
sdev              399 drivers/siox/siox-core.c 	return sprintf(buf, "%zu\n", sdev->inbytes);
sdev              407 drivers/siox/siox-core.c 	struct siox_device *sdev = to_siox_device(dev);
sdev              409 drivers/siox/siox-core.c 	return sprintf(buf, "%zu\n", sdev->outbytes);
sdev              417 drivers/siox/siox-core.c 	struct siox_device *sdev = to_siox_device(dev);
sdev              420 drivers/siox/siox-core.c 	siox_master_lock(sdev->smaster);
sdev              422 drivers/siox/siox-core.c 	status_errors = sdev->status_errors;
sdev              424 drivers/siox/siox-core.c 	siox_master_unlock(sdev->smaster);
sdev              434 drivers/siox/siox-core.c 	struct siox_device *sdev = to_siox_device(dev);
sdev              437 drivers/siox/siox-core.c 	siox_master_lock(sdev->smaster);
sdev              439 drivers/siox/siox-core.c 	connected = sdev->connected;
sdev              441 drivers/siox/siox-core.c 	siox_master_unlock(sdev->smaster);
sdev              451 drivers/siox/siox-core.c 	struct siox_device *sdev = to_siox_device(dev);
sdev              454 drivers/siox/siox-core.c 	siox_master_lock(sdev->smaster);
sdev              456 drivers/siox/siox-core.c 	status = sdev->status_read_clean;
sdev              458 drivers/siox/siox-core.c 	siox_master_unlock(sdev->smaster);
sdev              468 drivers/siox/siox-core.c 	struct siox_device *sdev = to_siox_device(dev);
sdev              471 drivers/siox/siox-core.c 	siox_master_lock(sdev->smaster);
sdev              473 drivers/siox/siox-core.c 	watchdog_errors = sdev->watchdog_errors;
sdev              475 drivers/siox/siox-core.c 	siox_master_unlock(sdev->smaster);
sdev              294 drivers/slimbus/messaging.c int slim_read(struct slim_device *sdev, u32 addr, size_t count, u8 *val)
sdev              300 drivers/slimbus/messaging.c 	return slim_xfer_msg(sdev, &msg, SLIM_MSG_MC_REQUEST_VALUE);
sdev              312 drivers/slimbus/messaging.c int slim_readb(struct slim_device *sdev, u32 addr)
sdev              317 drivers/slimbus/messaging.c 	ret = slim_read(sdev, addr, 1, &buf);
sdev              337 drivers/slimbus/messaging.c int slim_write(struct slim_device *sdev, u32 addr, size_t count, u8 *val)
sdev              343 drivers/slimbus/messaging.c 	return slim_xfer_msg(sdev, &msg, SLIM_MSG_MC_CHANGE_VALUE);
sdev              359 drivers/slimbus/messaging.c int slim_writeb(struct slim_device *sdev, u32 addr, u8 value)
sdev              361 drivers/slimbus/messaging.c 	return slim_write(sdev, addr, 1, &value);
sdev              915 drivers/slimbus/qcom-ngd-ctrl.c 	struct slim_device *sdev = rt->dev;
sdev              916 drivers/slimbus/qcom-ngd-ctrl.c 	struct slim_controller *ctrl = sdev->ctrl;
sdev              939 drivers/slimbus/qcom-ngd-ctrl.c 			wbuf[txn.msg->num_bytes++] = sdev->laddr;
sdev              960 drivers/slimbus/qcom-ngd-ctrl.c 				dev_err(&sdev->dev, "Fail to allocate TID\n");
sdev              973 drivers/slimbus/qcom-ngd-ctrl.c 		dev_err(&sdev->dev, "TX timed out:MC:0x%x,mt:0x%x", txn.mc,
sdev              980 drivers/slimbus/qcom-ngd-ctrl.c 	wbuf[1] = sdev->laddr;
sdev              993 drivers/slimbus/qcom-ngd-ctrl.c 		dev_err(&sdev->dev, "TX timed out:MC:0x%x,mt:0x%x", txn.mc,
sdev              126 drivers/slimbus/stream.c 	struct slim_device *sdev = stream->dev;
sdev              140 drivers/slimbus/stream.c 	return slim_do_transfer(sdev->ctrl, &txn);
sdev              146 drivers/slimbus/stream.c 	struct slim_device *sdev = stream->dev;
sdev              156 drivers/slimbus/stream.c 	return slim_do_transfer(sdev->ctrl, &txn);
sdev              162 drivers/slimbus/stream.c 	struct slim_device *sdev = stream->dev;
sdev              170 drivers/slimbus/stream.c 	ret = slim_do_transfer(sdev->ctrl, &txn);
sdev              177 drivers/slimbus/stream.c 	return slim_do_transfer(sdev->ctrl, &txn);
sdev              266 drivers/slimbus/stream.c 	struct slim_device *sdev = stream->dev;
sdev              283 drivers/slimbus/stream.c 	return slim_do_transfer(sdev->ctrl, &txn);
sdev              301 drivers/slimbus/stream.c 	struct slim_device *sdev = stream->dev;
sdev              319 drivers/slimbus/stream.c 	return slim_do_transfer(sdev->ctrl, &txn);
sdev              325 drivers/slimbus/stream.c 	struct slim_device *sdev = stream->dev;
sdev              336 drivers/slimbus/stream.c 	return slim_do_transfer(sdev->ctrl, &txn);
sdev              466 drivers/slimbus/stream.c 	struct slim_device *sdev = stream->dev;
sdev              468 drivers/slimbus/stream.c 	spin_lock(&sdev->stream_list_lock);
sdev              470 drivers/slimbus/stream.c 	spin_unlock(&sdev->stream_list_lock);
sdev               56 drivers/spi/spi-altera.c static inline struct altera_spi *altera_spi_to_hw(struct spi_device *sdev)
sdev               58 drivers/spi/spi-altera.c 	return spi_master_get_devdata(sdev->master);
sdev              468 drivers/spi/spi-davinci.c 	struct device *sdev = dspi->bitbang.master->dev.parent;
sdev              471 drivers/spi/spi-davinci.c 		dev_err(sdev, "SPI Time-out Error\n");
sdev              475 drivers/spi/spi-davinci.c 		dev_err(sdev, "SPI Desynchronization Error\n");
sdev              479 drivers/spi/spi-davinci.c 		dev_err(sdev, "SPI Bit error\n");
sdev              485 drivers/spi/spi-davinci.c 			dev_err(sdev, "SPI Data Length Error\n");
sdev              489 drivers/spi/spi-davinci.c 			dev_err(sdev, "SPI Parity Error\n");
sdev              493 drivers/spi/spi-davinci.c 			dev_err(sdev, "SPI Data Overrun error\n");
sdev              497 drivers/spi/spi-davinci.c 			dev_err(sdev, "SPI Buffer Init Active\n");
sdev              752 drivers/spi/spi-davinci.c 	struct device *sdev = dspi->bitbang.master->dev.parent;
sdev              754 drivers/spi/spi-davinci.c 	dspi->dma_rx = dma_request_chan(sdev, "rx");
sdev              758 drivers/spi/spi-davinci.c 	dspi->dma_tx = dma_request_chan(sdev, "tx");
sdev               57 drivers/spi/spi-oc-tiny.c static inline struct tiny_spi *tiny_spi_to_hw(struct spi_device *sdev)
sdev               59 drivers/spi/spi-oc-tiny.c 	return spi_master_get_devdata(sdev->master);
sdev               83 drivers/spi/spi-s3c24xx.c static inline struct s3c24xx_spi *to_hw(struct spi_device *sdev)
sdev               85 drivers/spi/spi-s3c24xx.c 	return spi_master_get_devdata(sdev->master);
sdev              291 drivers/spi/spi-sprd.c static void sprd_spi_chipselect(struct spi_device *sdev, bool cs)
sdev              293 drivers/spi/spi-sprd.c 	struct spi_controller *sctlr = sdev->controller;
sdev              402 drivers/spi/spi-sprd.c static int sprd_spi_txrx_bufs(struct spi_device *sdev, struct spi_transfer *t)
sdev              404 drivers/spi/spi-sprd.c 	struct sprd_spi *ss = spi_controller_get_devdata(sdev->controller);
sdev              586 drivers/spi/spi-sprd.c static int sprd_spi_dma_txrx_bufs(struct spi_device *sdev,
sdev              589 drivers/spi/spi-sprd.c 	struct sprd_spi *ss = spi_master_get_devdata(sdev->master);
sdev              637 drivers/spi/spi-sprd.c 			dev_err(&sdev->dev,
sdev              716 drivers/spi/spi-sprd.c static int sprd_spi_setup_transfer(struct spi_device *sdev,
sdev              719 drivers/spi/spi-sprd.c 	struct sprd_spi *ss = spi_controller_get_devdata(sdev->controller);
sdev              727 drivers/spi/spi-sprd.c 	ss->hw_mode = sdev->mode;
sdev              788 drivers/spi/spi-sprd.c 				 struct spi_device *sdev,
sdev              793 drivers/spi/spi-sprd.c 	ret = sprd_spi_setup_transfer(sdev, t);
sdev              797 drivers/spi/spi-sprd.c 	if (sctlr->can_dma(sctlr, sdev, t))
sdev              798 drivers/spi/spi-sprd.c 		ret = sprd_spi_dma_txrx_bufs(sdev, t);
sdev              800 drivers/spi/spi-sprd.c 		ret = sprd_spi_txrx_bufs(sdev, t);
sdev              324 drivers/spi/spi.c 						const struct spi_device *sdev)
sdev              327 drivers/spi/spi.c 		if (!strcmp(sdev->modalias, id->name))
sdev              334 drivers/spi/spi.c const struct spi_device_id *spi_get_device_id(const struct spi_device *sdev)
sdev              336 drivers/spi/spi.c 	const struct spi_driver *sdrv = to_spi_driver(sdev->dev.driver);
sdev              338 drivers/spi/spi.c 	return spi_match_id(sdrv->id_table, sdev);
sdev               25 drivers/spmi/spmi.c 	struct spmi_device *sdev = to_spmi_device(dev);
sdev               26 drivers/spmi/spmi.c 	kfree(sdev);
sdev               60 drivers/spmi/spmi.c int spmi_device_add(struct spmi_device *sdev)
sdev               62 drivers/spmi/spmi.c 	struct spmi_controller *ctrl = sdev->ctrl;
sdev               65 drivers/spmi/spmi.c 	dev_set_name(&sdev->dev, "%d-%02x", ctrl->nr, sdev->usid);
sdev               67 drivers/spmi/spmi.c 	err = device_add(&sdev->dev);
sdev               69 drivers/spmi/spmi.c 		dev_err(&sdev->dev, "Can't add %s, status %d\n",
sdev               70 drivers/spmi/spmi.c 			dev_name(&sdev->dev), err);
sdev               74 drivers/spmi/spmi.c 	dev_dbg(&sdev->dev, "device %s registered\n", dev_name(&sdev->dev));
sdev               85 drivers/spmi/spmi.c void spmi_device_remove(struct spmi_device *sdev)
sdev               87 drivers/spmi/spmi.c 	device_unregister(&sdev->dev);
sdev              140 drivers/spmi/spmi.c int spmi_register_read(struct spmi_device *sdev, u8 addr, u8 *buf)
sdev              146 drivers/spmi/spmi.c 	return spmi_read_cmd(sdev->ctrl, SPMI_CMD_READ, sdev->usid, addr,
sdev              161 drivers/spmi/spmi.c int spmi_ext_register_read(struct spmi_device *sdev, u8 addr, u8 *buf,
sdev              168 drivers/spmi/spmi.c 	return spmi_read_cmd(sdev->ctrl, SPMI_CMD_EXT_READ, sdev->usid, addr,
sdev              183 drivers/spmi/spmi.c int spmi_ext_register_readl(struct spmi_device *sdev, u16 addr, u8 *buf,
sdev              190 drivers/spmi/spmi.c 	return spmi_read_cmd(sdev->ctrl, SPMI_CMD_EXT_READL, sdev->usid, addr,
sdev              203 drivers/spmi/spmi.c int spmi_register_write(struct spmi_device *sdev, u8 addr, u8 data)
sdev              209 drivers/spmi/spmi.c 	return spmi_write_cmd(sdev->ctrl, SPMI_CMD_WRITE, sdev->usid, addr,
sdev              221 drivers/spmi/spmi.c int spmi_register_zero_write(struct spmi_device *sdev, u8 data)
sdev              223 drivers/spmi/spmi.c 	return spmi_write_cmd(sdev->ctrl, SPMI_CMD_ZERO_WRITE, sdev->usid, 0,
sdev              238 drivers/spmi/spmi.c int spmi_ext_register_write(struct spmi_device *sdev, u8 addr, const u8 *buf,
sdev              245 drivers/spmi/spmi.c 	return spmi_write_cmd(sdev->ctrl, SPMI_CMD_EXT_WRITE, sdev->usid, addr,
sdev              260 drivers/spmi/spmi.c int spmi_ext_register_writel(struct spmi_device *sdev, u16 addr, const u8 *buf,
sdev              267 drivers/spmi/spmi.c 	return spmi_write_cmd(sdev->ctrl, SPMI_CMD_EXT_WRITEL, sdev->usid,
sdev              280 drivers/spmi/spmi.c int spmi_command_reset(struct spmi_device *sdev)
sdev              282 drivers/spmi/spmi.c 	return spmi_cmd(sdev->ctrl, SPMI_CMD_RESET, sdev->usid);
sdev              292 drivers/spmi/spmi.c int spmi_command_sleep(struct spmi_device *sdev)
sdev              294 drivers/spmi/spmi.c 	return spmi_cmd(sdev->ctrl, SPMI_CMD_SLEEP, sdev->usid);
sdev              305 drivers/spmi/spmi.c int spmi_command_wakeup(struct spmi_device *sdev)
sdev              307 drivers/spmi/spmi.c 	return spmi_cmd(sdev->ctrl, SPMI_CMD_WAKEUP, sdev->usid);
sdev              317 drivers/spmi/spmi.c int spmi_command_shutdown(struct spmi_device *sdev)
sdev              319 drivers/spmi/spmi.c 	return spmi_cmd(sdev->ctrl, SPMI_CMD_SHUTDOWN, sdev->usid);
sdev              326 drivers/spmi/spmi.c 	struct spmi_device *sdev = to_spmi_device(dev);
sdev              333 drivers/spmi/spmi.c 	err = sdrv->probe(sdev);
sdev              388 drivers/spmi/spmi.c 	struct spmi_device *sdev;
sdev              390 drivers/spmi/spmi.c 	sdev = kzalloc(sizeof(*sdev), GFP_KERNEL);
sdev              391 drivers/spmi/spmi.c 	if (!sdev)
sdev              394 drivers/spmi/spmi.c 	sdev->ctrl = ctrl;
sdev              395 drivers/spmi/spmi.c 	device_initialize(&sdev->dev);
sdev              396 drivers/spmi/spmi.c 	sdev->dev.parent = &ctrl->dev;
sdev              397 drivers/spmi/spmi.c 	sdev->dev.bus = &spmi_bus_type;
sdev              398 drivers/spmi/spmi.c 	sdev->dev.type = &spmi_dev_type;
sdev              399 drivers/spmi/spmi.c 	return sdev;
sdev              458 drivers/spmi/spmi.c 		struct spmi_device *sdev;
sdev              485 drivers/spmi/spmi.c 		sdev = spmi_device_alloc(ctrl);
sdev              486 drivers/spmi/spmi.c 		if (!sdev)
sdev              489 drivers/spmi/spmi.c 		sdev->dev.of_node = node;
sdev              490 drivers/spmi/spmi.c 		sdev->usid = (u8) reg[0];
sdev              492 drivers/spmi/spmi.c 		err = spmi_device_add(sdev);
sdev              494 drivers/spmi/spmi.c 			dev_err(&sdev->dev,
sdev              496 drivers/spmi/spmi.c 			spmi_device_put(sdev);
sdev              170 drivers/ssb/driver_gige.c static int ssb_gige_probe(struct ssb_device *sdev,
sdev              179 drivers/ssb/driver_gige.c 	dev->dev = sdev;
sdev              194 drivers/ssb/driver_gige.c 	if (!ssb_device_is_enabled(sdev))
sdev              195 drivers/ssb/driver_gige.c 		ssb_device_enable(sdev, 0);
sdev              198 drivers/ssb/driver_gige.c 	base = ssb_admatch_base(ssb_read32(sdev, SSB_ADMATCH1));
sdev              222 drivers/ssb/driver_gige.c 	tmslow = ssb_read32(sdev, SSB_TMSLOW);
sdev              223 drivers/ssb/driver_gige.c 	tmshigh = ssb_read32(sdev, SSB_TMSHIGH);
sdev              234 drivers/ssb/driver_gige.c 	ssb_write32(sdev, SSB_TMSLOW, tmslow);
sdev              236 drivers/ssb/driver_gige.c 	ssb_set_drvdata(sdev, dev);
sdev              250 drivers/ssb/driver_gige.c int ssb_gige_pcibios_plat_dev_init(struct ssb_device *sdev,
sdev              253 drivers/ssb/driver_gige.c 	struct ssb_gige *dev = ssb_get_drvdata(sdev);
sdev              269 drivers/ssb/driver_gige.c 	pdev->irq = ssb_mips_irq(sdev) + 2;
sdev              275 drivers/ssb/driver_gige.c int ssb_gige_map_irq(struct ssb_device *sdev,
sdev              278 drivers/ssb/driver_gige.c 	struct ssb_gige *dev = ssb_get_drvdata(sdev);
sdev              285 drivers/ssb/driver_gige.c 	return ssb_mips_irq(sdev) + 2;
sdev              206 drivers/ssb/main.c 	struct ssb_device *sdev;
sdev              215 drivers/ssb/main.c 		sdev = ssb_device_get(&bus->devices[i]);
sdev              217 drivers/ssb/main.c 		if (!sdev->dev || !sdev->dev->driver ||
sdev              218 drivers/ssb/main.c 		    !device_is_registered(sdev->dev)) {
sdev              219 drivers/ssb/main.c 			ssb_device_put(sdev);
sdev              222 drivers/ssb/main.c 		sdrv = drv_to_ssb_drv(sdev->dev->driver);
sdev              225 drivers/ssb/main.c 		sdrv->remove(sdev);
sdev              241 drivers/ssb/main.c 	struct ssb_device *sdev;
sdev              249 drivers/ssb/main.c 		sdev = &bus->devices[i];
sdev              251 drivers/ssb/main.c 		if (WARN_ON(!sdev->dev || !sdev->dev->driver))
sdev              253 drivers/ssb/main.c 		sdrv = drv_to_ssb_drv(sdev->dev->driver);
sdev              257 drivers/ssb/main.c 		err = sdrv->probe(sdev, &sdev->id);
sdev              259 drivers/ssb/main.c 			dev_err(sdev->dev,
sdev              261 drivers/ssb/main.c 				dev_name(sdev->dev));
sdev              264 drivers/ssb/main.c 		ssb_device_put(sdev);
sdev              414 drivers/ssb/main.c 	struct ssb_device *sdev;
sdev              418 drivers/ssb/main.c 		sdev = &(bus->devices[i]);
sdev              419 drivers/ssb/main.c 		if (sdev->dev)
sdev              420 drivers/ssb/main.c 			device_unregister(sdev->dev);
sdev              460 drivers/ssb/main.c 	struct ssb_device *sdev;
sdev              467 drivers/ssb/main.c 		sdev = &(bus->devices[i]);
sdev              471 drivers/ssb/main.c 		switch (sdev->id.coreid) {
sdev              488 drivers/ssb/main.c 		devwrap->sdev = sdev;
sdev              497 drivers/ssb/main.c 			sdev->irq = bus->host_pci->irq;
sdev              499 drivers/ssb/main.c 			sdev->dma_dev = dev->parent;
sdev              504 drivers/ssb/main.c 			sdev->irq = bus->host_pcmcia->irq;
sdev              515 drivers/ssb/main.c 			sdev->dma_dev = dev;
sdev              519 drivers/ssb/main.c 		sdev->dev = dev;
sdev              525 drivers/ssb/main.c 			sdev->dev = NULL;
sdev              185 drivers/staging/comedi/drivers/comedi_bond.c 		int sdev = -1, nchans;
sdev              217 drivers/staging/comedi/drivers/comedi_bond.c 		while ((sdev = comedi_find_subdevice_by_type(d, COMEDI_SUBD_DIO,
sdev              218 drivers/staging/comedi/drivers/comedi_bond.c 							     sdev + 1)) > -1) {
sdev              219 drivers/staging/comedi/drivers/comedi_bond.c 			nchans = comedi_get_n_channels(d, sdev);
sdev              223 drivers/staging/comedi/drivers/comedi_bond.c 					nchans, minor, sdev);
sdev              232 drivers/staging/comedi/drivers/comedi_bond.c 			bdev->subdev = sdev;
sdev             1956 drivers/staging/comedi/drivers/ni_mio_common.c 				     struct comedi_subdevice *sdev,
sdev             1965 drivers/staging/comedi/drivers/ni_mio_common.c 	nbytes *= comedi_bytes_per_scan(sdev);
sdev             1967 drivers/staging/comedi/drivers/ni_mio_common.c 	if (nbytes > sdev->async->prealloc_bufsz) {
sdev             1969 drivers/staging/comedi/drivers/ni_mio_common.c 			dev_err(sdev->device->class_dev,
sdev             1978 drivers/staging/comedi/drivers/ni_mio_common.c 		nbytes = sdev->async->prealloc_bufsz;
sdev             1981 drivers/staging/comedi/drivers/ni_mio_common.c 	mite_init_ring_descriptors(ring, sdev, nbytes);
sdev             1983 drivers/staging/comedi/drivers/ni_mio_common.c 	dev_err(sdev->device->class_dev,
sdev             1211 drivers/staging/fbtft/fbtft-core.c 		       struct spi_device *sdev,
sdev             1220 drivers/staging/fbtft/fbtft-core.c 	if (sdev)
sdev             1221 drivers/staging/fbtft/fbtft-core.c 		dev = &sdev->dev;
sdev             1240 drivers/staging/fbtft/fbtft-core.c 	par->spi = sdev;
sdev              253 drivers/staging/fbtft/fbtft.h int fbtft_probe_common(struct fbtft_display *display, struct spi_device *sdev,
sdev              635 drivers/staging/iio/adc/ad7280a.c 	struct device *sdev = &st->spi->dev;
sdev              642 drivers/staging/iio/adc/ad7280a.c 		ret = ad7280_balance_switch_attr_init(iio_attr, sdev, addr, i);
sdev              652 drivers/staging/iio/adc/ad7280a.c 		ret = ad7280_balance_timer_attr_init(iio_attr, sdev, addr, i);
sdev               90 drivers/staging/iio/resolver/ad2s1210.c 	struct spi_device *sdev;
sdev              122 drivers/staging/iio/resolver/ad2s1210.c 	ret = spi_write(st->sdev, st->tx, 1);
sdev              150 drivers/staging/iio/resolver/ad2s1210.c 	ret = spi_sync_transfer(st->sdev, xfers, 2);
sdev              165 drivers/staging/iio/resolver/ad2s1210.c 		dev_err(&st->sdev->dev, "ad2s1210: FCW out of range\n");
sdev              489 drivers/staging/iio/resolver/ad2s1210.c 	ret = spi_read(st->sdev, st->rx, 2);
sdev              633 drivers/staging/iio/resolver/ad2s1210.c 	struct spi_device *spi = st->sdev;
sdev              668 drivers/staging/iio/resolver/ad2s1210.c 	st->sdev = spi;
sdev              116 drivers/staging/media/imx/imx-media-csi.c static inline struct csi_priv *sd_to_dev(struct v4l2_subdev *sdev)
sdev              118 drivers/staging/media/imx/imx-media-csi.c 	return container_of(sdev, struct csi_priv, sd);
sdev               88 drivers/staging/media/imx/imx6-mipi-csi2.c static inline struct csi2_dev *sd_to_dev(struct v4l2_subdev *sdev)
sdev               90 drivers/staging/media/imx/imx6-mipi-csi2.c 	return container_of(sdev, struct csi2_dev, sd);
sdev              321 drivers/staging/media/imx/imx7-mipi-csis.c static struct csi_state *mipi_sd_to_csis_state(struct v4l2_subdev *sdev)
sdev              323 drivers/staging/media/imx/imx7-mipi-csis.c 	return container_of(sdev, struct csi_state, mipi_sd);
sdev               60 drivers/staging/rts5208/rtsx.c static int slave_alloc(struct scsi_device *sdev)
sdev               67 drivers/staging/rts5208/rtsx.c 	sdev->inquiry_len = 36;
sdev               71 drivers/staging/rts5208/rtsx.c static int slave_configure(struct scsi_device *sdev)
sdev               83 drivers/staging/rts5208/rtsx.c 	blk_queue_dma_alignment(sdev->request_queue, (512 - 1));
sdev               99 drivers/staging/rts5208/rtsx.c 	if (sdev->scsi_level < SCSI_2) {
sdev              100 drivers/staging/rts5208/rtsx.c 		sdev->scsi_level = SCSI_2;
sdev              101 drivers/staging/rts5208/rtsx.c 		sdev->sdev_target->scsi_level = SCSI_2;
sdev               42 drivers/staging/unisys/visorhba/visorhba_main.c 	struct scsi_device *sdev;
sdev              612 drivers/staging/unisys/visorhba/visorhba_main.c 	vdisk->sdev = scsidev;
sdev              137 drivers/target/target_core_pscsi.c 		struct scsi_device *sdev)
sdev              150 drivers/target/target_core_pscsi.c 	ret = scsi_execute_req(sdev, cdb, DMA_FROM_DEVICE, buf, 12, NULL,
sdev              158 drivers/target/target_core_pscsi.c 	sdev->sector_size = get_unaligned_be24(&buf[9]);
sdev              160 drivers/target/target_core_pscsi.c 	if (!sdev->sector_size)
sdev              161 drivers/target/target_core_pscsi.c 		sdev->sector_size = 1024;
sdev              167 drivers/target/target_core_pscsi.c pscsi_set_inquiry_info(struct scsi_device *sdev, struct t10_wwn *wwn)
sdev              169 drivers/target/target_core_pscsi.c 	if (sdev->inquiry_len < INQUIRY_LEN)
sdev              176 drivers/target/target_core_pscsi.c 		 "%." __stringify(INQUIRY_VENDOR_LEN) "s", sdev->vendor);
sdev              179 drivers/target/target_core_pscsi.c 		 "%." __stringify(INQUIRY_MODEL_LEN) "s", sdev->model);
sdev              182 drivers/target/target_core_pscsi.c 		 "%." __stringify(INQUIRY_REVISION_LEN) "s", sdev->rev);
sdev              186 drivers/target/target_core_pscsi.c pscsi_get_inquiry_vpd_serial(struct scsi_device *sdev, struct t10_wwn *wwn)
sdev              201 drivers/target/target_core_pscsi.c 	ret = scsi_execute_req(sdev, cdb, DMA_FROM_DEVICE, buf,
sdev              219 drivers/target/target_core_pscsi.c pscsi_get_inquiry_vpd_device_ident(struct scsi_device *sdev,
sdev              236 drivers/target/target_core_pscsi.c 	ret = scsi_execute_req(sdev, cdb, DMA_FROM_DEVICE, buf,
sdev               68 drivers/usb/storage/scsiglue.c static int slave_alloc (struct scsi_device *sdev)
sdev               70 drivers/usb/storage/scsiglue.c 	struct us_data *us = host_to_us(sdev->host);
sdev               77 drivers/usb/storage/scsiglue.c 	sdev->inquiry_len = 36;
sdev               83 drivers/usb/storage/scsiglue.c 	blk_queue_update_dma_alignment(sdev->request_queue, (512 - 1));
sdev               87 drivers/usb/storage/scsiglue.c 		sdev->sdev_bflags |= BLIST_FORCELUN;
sdev               92 drivers/usb/storage/scsiglue.c static int slave_configure(struct scsi_device *sdev)
sdev               94 drivers/usb/storage/scsiglue.c 	struct us_data *us = host_to_us(sdev->host);
sdev              107 drivers/usb/storage/scsiglue.c 		if (queue_max_hw_sectors(sdev->request_queue) > max_sectors)
sdev              108 drivers/usb/storage/scsiglue.c 			blk_queue_max_hw_sectors(sdev->request_queue,
sdev              110 drivers/usb/storage/scsiglue.c 	} else if (sdev->type == TYPE_TAPE) {
sdev              116 drivers/usb/storage/scsiglue.c 		blk_queue_max_hw_sectors(sdev->request_queue, 0x7FFFFF);
sdev              122 drivers/usb/storage/scsiglue.c 		blk_queue_max_hw_sectors(sdev->request_queue, 2048);
sdev              129 drivers/usb/storage/scsiglue.c 	blk_queue_max_hw_sectors(sdev->request_queue,
sdev              130 drivers/usb/storage/scsiglue.c 		min_t(size_t, queue_max_hw_sectors(sdev->request_queue),
sdev              140 drivers/usb/storage/scsiglue.c 		blk_queue_bounce_limit(sdev->request_queue, BLK_BOUNCE_HIGH);
sdev              147 drivers/usb/storage/scsiglue.c 	if (sdev->type == TYPE_DISK) {
sdev              174 drivers/usb/storage/scsiglue.c 			sdev->use_10_for_ms = 1;
sdev              180 drivers/usb/storage/scsiglue.c 		sdev->use_192_bytes_for_3f = 1;
sdev              192 drivers/usb/storage/scsiglue.c 			sdev->skip_ms_page_3f = 1;
sdev              198 drivers/usb/storage/scsiglue.c 		sdev->skip_ms_page_8 = 1;
sdev              204 drivers/usb/storage/scsiglue.c 		sdev->skip_vpd_pages = !sdev->try_vpd_pages;
sdev              207 drivers/usb/storage/scsiglue.c 		sdev->no_report_opcodes = 1;
sdev              210 drivers/usb/storage/scsiglue.c 		sdev->no_write_same = 1;
sdev              218 drivers/usb/storage/scsiglue.c 			sdev->fix_capacity = 1;
sdev              226 drivers/usb/storage/scsiglue.c 			sdev->guess_capacity = 1;
sdev              230 drivers/usb/storage/scsiglue.c 			sdev->no_read_capacity_16 = 1;
sdev              239 drivers/usb/storage/scsiglue.c 			sdev->try_rc_10_first = 1;
sdev              245 drivers/usb/storage/scsiglue.c 		if (sdev->scsi_level > SCSI_SPC_2 &&
sdev              257 drivers/usb/storage/scsiglue.c 		sdev->retry_hwerror = 1;
sdev              263 drivers/usb/storage/scsiglue.c 		sdev->allow_restart = 1;
sdev              270 drivers/usb/storage/scsiglue.c 		sdev->last_sector_bug = 1;
sdev              284 drivers/usb/storage/scsiglue.c 			sdev->wce_default_on = 1;
sdev              288 drivers/usb/storage/scsiglue.c 			sdev->broken_fua = 1;
sdev              293 drivers/usb/storage/scsiglue.c 			sdev->skip_ms_page_8 = 1;
sdev              294 drivers/usb/storage/scsiglue.c 			sdev->skip_ms_page_3f = 1;
sdev              296 drivers/usb/storage/scsiglue.c 			sdev->wce_default_on = 1;
sdev              305 drivers/usb/storage/scsiglue.c 		sdev->use_10_for_ms = 1;
sdev              309 drivers/usb/storage/scsiglue.c 			sdev->no_read_disc_info = 1;
sdev              320 drivers/usb/storage/scsiglue.c 			sdev->scsi_level == SCSI_UNKNOWN)
sdev              328 drivers/usb/storage/scsiglue.c 		sdev->lockable = 0;
sdev              571 drivers/usb/storage/scsiglue.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev              573 drivers/usb/storage/scsiglue.c 	return sprintf(buf, "%u\n", queue_max_hw_sectors(sdev->request_queue));
sdev              580 drivers/usb/storage/scsiglue.c 	struct scsi_device *sdev = to_scsi_device(dev);
sdev              584 drivers/usb/storage/scsiglue.c 		blk_queue_max_hw_sectors(sdev->request_queue, ms);
sdev              180 drivers/usb/storage/uas.c 	struct scsi_device *sdev = cmnd->device;
sdev              188 drivers/usb/storage/uas.c 			sdev_printk(KERN_INFO, sdev, "%s: urb length %d "
sdev              498 drivers/usb/storage/uas.c 	struct scsi_device *sdev = cmnd->device;
sdev              519 drivers/usb/storage/uas.c 	int_to_scsilun(sdev->lun, &iu->lun);
sdev              639 drivers/usb/storage/uas.c 	struct scsi_device *sdev = cmnd->device;
sdev              640 drivers/usb/storage/uas.c 	struct uas_dev_info *devinfo = sdev->hostdata;
sdev              763 drivers/usb/storage/uas.c 	struct scsi_device *sdev = cmnd->device;
sdev              764 drivers/usb/storage/uas.c 	struct uas_dev_info *devinfo = sdev->hostdata;
sdev              771 drivers/usb/storage/uas.c 		shost_printk(KERN_ERR, sdev->host,
sdev              776 drivers/usb/storage/uas.c 	shost_printk(KERN_INFO, sdev->host, "%s start\n", __func__);
sdev              796 drivers/usb/storage/uas.c 		shost_printk(KERN_INFO, sdev->host, "%s FAILED err %d\n",
sdev              801 drivers/usb/storage/uas.c 	shost_printk(KERN_INFO, sdev->host, "%s success\n", __func__);
sdev              816 drivers/usb/storage/uas.c static int uas_slave_alloc(struct scsi_device *sdev)
sdev              819 drivers/usb/storage/uas.c 		(struct uas_dev_info *)sdev->host->hostdata;
sdev              821 drivers/usb/storage/uas.c 	sdev->hostdata = devinfo;
sdev              828 drivers/usb/storage/uas.c 	blk_queue_update_dma_alignment(sdev->request_queue, (512 - 1));
sdev              831 drivers/usb/storage/uas.c 		blk_queue_max_hw_sectors(sdev->request_queue, 64);
sdev              833 drivers/usb/storage/uas.c 		blk_queue_max_hw_sectors(sdev->request_queue, 240);
sdev              838 drivers/usb/storage/uas.c static int uas_slave_configure(struct scsi_device *sdev)
sdev              840 drivers/usb/storage/uas.c 	struct uas_dev_info *devinfo = sdev->hostdata;
sdev              843 drivers/usb/storage/uas.c 		sdev->no_report_opcodes = 1;
sdev              847 drivers/usb/storage/uas.c 		sdev->broken_fua = 1;
sdev              851 drivers/usb/storage/uas.c 		sdev->skip_ms_page_3f = 1;
sdev              852 drivers/usb/storage/uas.c 		sdev->skip_ms_page_8 = 1;
sdev              853 drivers/usb/storage/uas.c 		sdev->wce_default_on = 1;
sdev              858 drivers/usb/storage/uas.c 		sdev->no_read_capacity_16 = 1;
sdev              866 drivers/usb/storage/uas.c 		sdev->fix_capacity = 1;
sdev              872 drivers/usb/storage/uas.c 		sdev->guess_capacity = 1;
sdev              884 drivers/usb/storage/uas.c 		sdev->skip_ms_page_3f = 1;
sdev              886 drivers/usb/storage/uas.c 	scsi_change_queue_depth(sdev, devinfo->qdepth - 2);
sdev               54 drivers/usb/usbip/stub.h 	struct stub_device *sdev;
sdev               77 drivers/usb/usbip/stub.h 	struct stub_device *sdev;
sdev               94 drivers/usb/usbip/stub.h void stub_device_cleanup_urbs(struct stub_device *sdev);
sdev              100 drivers/usb/usbip/stub.h void stub_enqueue_ret_unlink(struct stub_device *sdev, __u32 seqnum,
sdev               21 drivers/usb/usbip/stub_dev.c 	struct stub_device *sdev = dev_get_drvdata(dev);
sdev               24 drivers/usb/usbip/stub_dev.c 	if (!sdev) {
sdev               29 drivers/usb/usbip/stub_dev.c 	spin_lock_irq(&sdev->ud.lock);
sdev               30 drivers/usb/usbip/stub_dev.c 	status = sdev->ud.status;
sdev               31 drivers/usb/usbip/stub_dev.c 	spin_unlock_irq(&sdev->ud.lock);
sdev               45 drivers/usb/usbip/stub_dev.c 	struct stub_device *sdev = dev_get_drvdata(dev);
sdev               50 drivers/usb/usbip/stub_dev.c 	if (!sdev) {
sdev               64 drivers/usb/usbip/stub_dev.c 		spin_lock_irq(&sdev->ud.lock);
sdev               66 drivers/usb/usbip/stub_dev.c 		if (sdev->ud.status != SDEV_ST_AVAILABLE) {
sdev               75 drivers/usb/usbip/stub_dev.c 		sdev->ud.tcp_socket = socket;
sdev               76 drivers/usb/usbip/stub_dev.c 		sdev->ud.sockfd = sockfd;
sdev               78 drivers/usb/usbip/stub_dev.c 		spin_unlock_irq(&sdev->ud.lock);
sdev               80 drivers/usb/usbip/stub_dev.c 		sdev->ud.tcp_rx = kthread_get_run(stub_rx_loop, &sdev->ud,
sdev               82 drivers/usb/usbip/stub_dev.c 		sdev->ud.tcp_tx = kthread_get_run(stub_tx_loop, &sdev->ud,
sdev               85 drivers/usb/usbip/stub_dev.c 		spin_lock_irq(&sdev->ud.lock);
sdev               86 drivers/usb/usbip/stub_dev.c 		sdev->ud.status = SDEV_ST_USED;
sdev               87 drivers/usb/usbip/stub_dev.c 		spin_unlock_irq(&sdev->ud.lock);
sdev               92 drivers/usb/usbip/stub_dev.c 		spin_lock_irq(&sdev->ud.lock);
sdev               93 drivers/usb/usbip/stub_dev.c 		if (sdev->ud.status != SDEV_ST_USED)
sdev               96 drivers/usb/usbip/stub_dev.c 		spin_unlock_irq(&sdev->ud.lock);
sdev               98 drivers/usb/usbip/stub_dev.c 		usbip_event_add(&sdev->ud, SDEV_EVENT_DOWN);
sdev              104 drivers/usb/usbip/stub_dev.c 	spin_unlock_irq(&sdev->ud.lock);
sdev              119 drivers/usb/usbip/stub_dev.c 	struct stub_device *sdev = container_of(ud, struct stub_device, ud);
sdev              128 drivers/usb/usbip/stub_dev.c 		dev_dbg(&sdev->udev->dev, "shutdown sockfd %d\n", ud->sockfd);
sdev              155 drivers/usb/usbip/stub_dev.c 	stub_device_cleanup_urbs(sdev);
sdev              162 drivers/usb/usbip/stub_dev.c 		spin_lock_irqsave(&sdev->priv_lock, flags);
sdev              163 drivers/usb/usbip/stub_dev.c 		list_for_each_entry_safe(unlink, tmp, &sdev->unlink_tx, list) {
sdev              167 drivers/usb/usbip/stub_dev.c 		list_for_each_entry_safe(unlink, tmp, &sdev->unlink_free,
sdev              172 drivers/usb/usbip/stub_dev.c 		spin_unlock_irqrestore(&sdev->priv_lock, flags);
sdev              178 drivers/usb/usbip/stub_dev.c 	struct stub_device *sdev = container_of(ud, struct stub_device, ud);
sdev              179 drivers/usb/usbip/stub_dev.c 	struct usb_device *udev = sdev->udev;
sdev              223 drivers/usb/usbip/stub_dev.c 	struct stub_device *sdev;
sdev              230 drivers/usb/usbip/stub_dev.c 	sdev = kzalloc(sizeof(struct stub_device), GFP_KERNEL);
sdev              231 drivers/usb/usbip/stub_dev.c 	if (!sdev)
sdev              234 drivers/usb/usbip/stub_dev.c 	sdev->udev = usb_get_dev(udev);
sdev              241 drivers/usb/usbip/stub_dev.c 	sdev->devid		= (busnum << 16) | devnum;
sdev              242 drivers/usb/usbip/stub_dev.c 	sdev->ud.side		= USBIP_STUB;
sdev              243 drivers/usb/usbip/stub_dev.c 	sdev->ud.status		= SDEV_ST_AVAILABLE;
sdev              244 drivers/usb/usbip/stub_dev.c 	spin_lock_init(&sdev->ud.lock);
sdev              245 drivers/usb/usbip/stub_dev.c 	sdev->ud.tcp_socket	= NULL;
sdev              246 drivers/usb/usbip/stub_dev.c 	sdev->ud.sockfd		= -1;
sdev              248 drivers/usb/usbip/stub_dev.c 	INIT_LIST_HEAD(&sdev->priv_init);
sdev              249 drivers/usb/usbip/stub_dev.c 	INIT_LIST_HEAD(&sdev->priv_tx);
sdev              250 drivers/usb/usbip/stub_dev.c 	INIT_LIST_HEAD(&sdev->priv_free);
sdev              251 drivers/usb/usbip/stub_dev.c 	INIT_LIST_HEAD(&sdev->unlink_free);
sdev              252 drivers/usb/usbip/stub_dev.c 	INIT_LIST_HEAD(&sdev->unlink_tx);
sdev              253 drivers/usb/usbip/stub_dev.c 	spin_lock_init(&sdev->priv_lock);
sdev              255 drivers/usb/usbip/stub_dev.c 	init_waitqueue_head(&sdev->tx_waitq);
sdev              257 drivers/usb/usbip/stub_dev.c 	sdev->ud.eh_ops.shutdown = stub_shutdown_connection;
sdev              258 drivers/usb/usbip/stub_dev.c 	sdev->ud.eh_ops.reset    = stub_device_reset;
sdev              259 drivers/usb/usbip/stub_dev.c 	sdev->ud.eh_ops.unusable = stub_device_unusable;
sdev              261 drivers/usb/usbip/stub_dev.c 	usbip_start_eh(&sdev->ud);
sdev              265 drivers/usb/usbip/stub_dev.c 	return sdev;
sdev              268 drivers/usb/usbip/stub_dev.c static void stub_device_free(struct stub_device *sdev)
sdev              270 drivers/usb/usbip/stub_dev.c 	kfree(sdev);
sdev              275 drivers/usb/usbip/stub_dev.c 	struct stub_device *sdev = NULL;
sdev              286 drivers/usb/usbip/stub_dev.c 	sdev = stub_device_alloc(udev);
sdev              287 drivers/usb/usbip/stub_dev.c 	if (!sdev)
sdev              334 drivers/usb/usbip/stub_dev.c 	dev_set_drvdata(&udev->dev, sdev);
sdev              336 drivers/usb/usbip/stub_dev.c 	busid_priv->sdev = sdev;
sdev              365 drivers/usb/usbip/stub_dev.c 	busid_priv->sdev = NULL;
sdev              376 drivers/usb/usbip/stub_dev.c 	stub_device_free(sdev);
sdev              383 drivers/usb/usbip/stub_dev.c 	usbip_event_add(&busid_priv->sdev->ud, SDEV_EVENT_REMOVED);
sdev              386 drivers/usb/usbip/stub_dev.c 	usbip_stop_eh(&busid_priv->sdev->ud);
sdev              395 drivers/usb/usbip/stub_dev.c 	struct stub_device *sdev;
sdev              408 drivers/usb/usbip/stub_dev.c 	sdev = dev_get_drvdata(&udev->dev);
sdev              411 drivers/usb/usbip/stub_dev.c 	if (!sdev) {
sdev              449 drivers/usb/usbip/stub_dev.c 	usb_put_dev(sdev->udev);
sdev              454 drivers/usb/usbip/stub_dev.c 	busid_priv->sdev = NULL;
sdev              455 drivers/usb/usbip/stub_dev.c 	stub_device_free(sdev);
sdev              328 drivers/usb/usbip/stub_main.c static struct stub_priv *stub_priv_pop(struct stub_device *sdev)
sdev              333 drivers/usb/usbip/stub_main.c 	spin_lock_irqsave(&sdev->priv_lock, flags);
sdev              335 drivers/usb/usbip/stub_main.c 	priv = stub_priv_pop_from_listhead(&sdev->priv_init);
sdev              339 drivers/usb/usbip/stub_main.c 	priv = stub_priv_pop_from_listhead(&sdev->priv_tx);
sdev              343 drivers/usb/usbip/stub_main.c 	priv = stub_priv_pop_from_listhead(&sdev->priv_free);
sdev              346 drivers/usb/usbip/stub_main.c 	spin_unlock_irqrestore(&sdev->priv_lock, flags);
sdev              351 drivers/usb/usbip/stub_main.c void stub_device_cleanup_urbs(struct stub_device *sdev)
sdev              356 drivers/usb/usbip/stub_main.c 	dev_dbg(&sdev->udev->dev, "Stub device cleaning up urbs\n");
sdev              358 drivers/usb/usbip/stub_main.c 	while ((priv = stub_priv_pop(sdev))) {
sdev              133 drivers/usb/usbip/stub_rx.c 	struct stub_device *sdev = priv->sdev;
sdev              141 drivers/usb/usbip/stub_rx.c 	err = usb_set_configuration(sdev->udev, config);
sdev              143 drivers/usb/usbip/stub_rx.c 		dev_err(&sdev->udev->dev, "can't set config #%d, error %d\n",
sdev              151 drivers/usb/usbip/stub_rx.c 	struct stub_device *sdev = priv->sdev;
sdev              155 drivers/usb/usbip/stub_rx.c 	if (usb_lock_device_for_reset(sdev->udev, NULL) < 0) {
sdev              159 drivers/usb/usbip/stub_rx.c 	usb_reset_device(sdev->udev);
sdev              160 drivers/usb/usbip/stub_rx.c 	usb_unlock_device(sdev->udev);
sdev              202 drivers/usb/usbip/stub_rx.c static int stub_recv_cmd_unlink(struct stub_device *sdev,
sdev              209 drivers/usb/usbip/stub_rx.c 	spin_lock_irqsave(&sdev->priv_lock, flags);
sdev              211 drivers/usb/usbip/stub_rx.c 	list_for_each_entry(priv, &sdev->priv_init, list) {
sdev              233 drivers/usb/usbip/stub_rx.c 		spin_unlock_irqrestore(&sdev->priv_lock, flags);
sdev              270 drivers/usb/usbip/stub_rx.c 	stub_enqueue_ret_unlink(sdev, pdu->base.seqnum, 0);
sdev              272 drivers/usb/usbip/stub_rx.c 	spin_unlock_irqrestore(&sdev->priv_lock, flags);
sdev              277 drivers/usb/usbip/stub_rx.c static int valid_request(struct stub_device *sdev, struct usbip_header *pdu)
sdev              279 drivers/usb/usbip/stub_rx.c 	struct usbip_device *ud = &sdev->ud;
sdev              282 drivers/usb/usbip/stub_rx.c 	if (pdu->base.devid == sdev->devid) {
sdev              294 drivers/usb/usbip/stub_rx.c static struct stub_priv *stub_priv_alloc(struct stub_device *sdev,
sdev              298 drivers/usb/usbip/stub_rx.c 	struct usbip_device *ud = &sdev->ud;
sdev              301 drivers/usb/usbip/stub_rx.c 	spin_lock_irqsave(&sdev->priv_lock, flags);
sdev              305 drivers/usb/usbip/stub_rx.c 		dev_err(&sdev->udev->dev, "alloc stub_priv\n");
sdev              306 drivers/usb/usbip/stub_rx.c 		spin_unlock_irqrestore(&sdev->priv_lock, flags);
sdev              312 drivers/usb/usbip/stub_rx.c 	priv->sdev = sdev;
sdev              318 drivers/usb/usbip/stub_rx.c 	list_add_tail(&priv->list, &sdev->priv_init);
sdev              320 drivers/usb/usbip/stub_rx.c 	spin_unlock_irqrestore(&sdev->priv_lock, flags);
sdev              325 drivers/usb/usbip/stub_rx.c static int get_pipe(struct stub_device *sdev, struct usbip_header *pdu)
sdev              327 drivers/usb/usbip/stub_rx.c 	struct usb_device *udev = sdev->udev;
sdev              371 drivers/usb/usbip/stub_rx.c 			dev_err(&sdev->udev->dev,
sdev              384 drivers/usb/usbip/stub_rx.c 	dev_err(&sdev->udev->dev, "CMD_SUBMIT: invalid epnum %d\n", epnum);
sdev              453 drivers/usb/usbip/stub_rx.c static void stub_recv_cmd_submit(struct stub_device *sdev,
sdev              457 drivers/usb/usbip/stub_rx.c 	struct usbip_device *ud = &sdev->ud;
sdev              458 drivers/usb/usbip/stub_rx.c 	struct usb_device *udev = sdev->udev;
sdev              464 drivers/usb/usbip/stub_rx.c 	int pipe = get_pipe(sdev, pdu);
sdev              478 drivers/usb/usbip/stub_rx.c 	priv = stub_priv_alloc(sdev, pdu);
sdev              631 drivers/usb/usbip/stub_rx.c 	struct stub_device *sdev = container_of(ud, struct stub_device, ud);
sdev              632 drivers/usb/usbip/stub_rx.c 	struct device *dev = &sdev->udev->dev;
sdev              651 drivers/usb/usbip/stub_rx.c 	if (!valid_request(sdev, &pdu)) {
sdev              659 drivers/usb/usbip/stub_rx.c 		stub_recv_cmd_unlink(sdev, &pdu);
sdev              663 drivers/usb/usbip/stub_rx.c 		stub_recv_cmd_submit(sdev, &pdu);
sdev               14 drivers/usb/usbip/stub_tx.c void stub_enqueue_ret_unlink(struct stub_device *sdev, __u32 seqnum,
sdev               21 drivers/usb/usbip/stub_tx.c 		usbip_event_add(&sdev->ud, VDEV_EVENT_ERROR_MALLOC);
sdev               28 drivers/usb/usbip/stub_tx.c 	list_add_tail(&unlink->list, &sdev->unlink_tx);
sdev               43 drivers/usb/usbip/stub_tx.c 	struct stub_device *sdev = priv->sdev;
sdev               91 drivers/usb/usbip/stub_tx.c 	spin_lock_irqsave(&sdev->priv_lock, flags);
sdev               92 drivers/usb/usbip/stub_tx.c 	if (sdev->ud.tcp_socket == NULL) {
sdev               96 drivers/usb/usbip/stub_tx.c 		stub_enqueue_ret_unlink(sdev, priv->seqnum, urb->status);
sdev               99 drivers/usb/usbip/stub_tx.c 		list_move_tail(&priv->list, &sdev->priv_tx);
sdev              101 drivers/usb/usbip/stub_tx.c 	spin_unlock_irqrestore(&sdev->priv_lock, flags);
sdev              104 drivers/usb/usbip/stub_tx.c 	wake_up(&sdev->tx_waitq);
sdev              132 drivers/usb/usbip/stub_tx.c static struct stub_priv *dequeue_from_priv_tx(struct stub_device *sdev)
sdev              137 drivers/usb/usbip/stub_tx.c 	spin_lock_irqsave(&sdev->priv_lock, flags);
sdev              139 drivers/usb/usbip/stub_tx.c 	list_for_each_entry_safe(priv, tmp, &sdev->priv_tx, list) {
sdev              140 drivers/usb/usbip/stub_tx.c 		list_move_tail(&priv->list, &sdev->priv_free);
sdev              141 drivers/usb/usbip/stub_tx.c 		spin_unlock_irqrestore(&sdev->priv_lock, flags);
sdev              145 drivers/usb/usbip/stub_tx.c 	spin_unlock_irqrestore(&sdev->priv_lock, flags);
sdev              150 drivers/usb/usbip/stub_tx.c static int stub_send_ret_submit(struct stub_device *sdev)
sdev              160 drivers/usb/usbip/stub_tx.c 	while ((priv = dequeue_from_priv_tx(sdev)) != NULL) {
sdev              177 drivers/usb/usbip/stub_tx.c 			dev_err(&sdev->udev->dev,
sdev              196 drivers/usb/usbip/stub_tx.c 			usbip_event_add(&sdev->ud, SDEV_EVENT_ERROR_MALLOC);
sdev              287 drivers/usb/usbip/stub_tx.c 				dev_err(&sdev->udev->dev,
sdev              292 drivers/usb/usbip/stub_tx.c 				usbip_event_add(&sdev->ud,
sdev              304 drivers/usb/usbip/stub_tx.c 				usbip_event_add(&sdev->ud,
sdev              316 drivers/usb/usbip/stub_tx.c 		ret = kernel_sendmsg(sdev->ud.tcp_socket, &msg,
sdev              319 drivers/usb/usbip/stub_tx.c 			dev_err(&sdev->udev->dev,
sdev              324 drivers/usb/usbip/stub_tx.c 			usbip_event_add(&sdev->ud, SDEV_EVENT_ERROR_TCP);
sdev              334 drivers/usb/usbip/stub_tx.c 	spin_lock_irqsave(&sdev->priv_lock, flags);
sdev              335 drivers/usb/usbip/stub_tx.c 	list_for_each_entry_safe(priv, tmp, &sdev->priv_free, list) {
sdev              338 drivers/usb/usbip/stub_tx.c 	spin_unlock_irqrestore(&sdev->priv_lock, flags);
sdev              343 drivers/usb/usbip/stub_tx.c static struct stub_unlink *dequeue_from_unlink_tx(struct stub_device *sdev)
sdev              348 drivers/usb/usbip/stub_tx.c 	spin_lock_irqsave(&sdev->priv_lock, flags);
sdev              350 drivers/usb/usbip/stub_tx.c 	list_for_each_entry_safe(unlink, tmp, &sdev->unlink_tx, list) {
sdev              351 drivers/usb/usbip/stub_tx.c 		list_move_tail(&unlink->list, &sdev->unlink_free);
sdev              352 drivers/usb/usbip/stub_tx.c 		spin_unlock_irqrestore(&sdev->priv_lock, flags);
sdev              356 drivers/usb/usbip/stub_tx.c 	spin_unlock_irqrestore(&sdev->priv_lock, flags);
sdev              361 drivers/usb/usbip/stub_tx.c static int stub_send_ret_unlink(struct stub_device *sdev)
sdev              372 drivers/usb/usbip/stub_tx.c 	while ((unlink = dequeue_from_unlink_tx(sdev)) != NULL) {
sdev              391 drivers/usb/usbip/stub_tx.c 		ret = kernel_sendmsg(sdev->ud.tcp_socket, &msg, iov,
sdev              394 drivers/usb/usbip/stub_tx.c 			dev_err(&sdev->udev->dev,
sdev              397 drivers/usb/usbip/stub_tx.c 			usbip_event_add(&sdev->ud, SDEV_EVENT_ERROR_TCP);
sdev              405 drivers/usb/usbip/stub_tx.c 	spin_lock_irqsave(&sdev->priv_lock, flags);
sdev              407 drivers/usb/usbip/stub_tx.c 	list_for_each_entry_safe(unlink, tmp, &sdev->unlink_free, list) {
sdev              412 drivers/usb/usbip/stub_tx.c 	spin_unlock_irqrestore(&sdev->priv_lock, flags);
sdev              420 drivers/usb/usbip/stub_tx.c 	struct stub_device *sdev = container_of(ud, struct stub_device, ud);
sdev              440 drivers/usb/usbip/stub_tx.c 		if (stub_send_ret_submit(sdev) < 0)
sdev              443 drivers/usb/usbip/stub_tx.c 		if (stub_send_ret_unlink(sdev) < 0)
sdev              446 drivers/usb/usbip/stub_tx.c 		wait_event_interruptible(sdev->tx_waitq,
sdev              447 drivers/usb/usbip/stub_tx.c 					 (!list_empty(&sdev->priv_tx) ||
sdev              448 drivers/usb/usbip/stub_tx.c 					  !list_empty(&sdev->unlink_tx) ||
sdev               78 drivers/w1/masters/sgi_w1.c 	struct sgi_w1_device *sdev;
sdev               82 drivers/w1/masters/sgi_w1.c 	sdev = devm_kzalloc(&pdev->dev, sizeof(struct sgi_w1_device),
sdev               84 drivers/w1/masters/sgi_w1.c 	if (!sdev)
sdev               88 drivers/w1/masters/sgi_w1.c 	sdev->mcr = devm_ioremap_resource(&pdev->dev, res);
sdev               89 drivers/w1/masters/sgi_w1.c 	if (IS_ERR(sdev->mcr))
sdev               90 drivers/w1/masters/sgi_w1.c 		return PTR_ERR(sdev->mcr);
sdev               92 drivers/w1/masters/sgi_w1.c 	sdev->bus_master.data = sdev;
sdev               93 drivers/w1/masters/sgi_w1.c 	sdev->bus_master.reset_bus = sgi_w1_reset_bus;
sdev               94 drivers/w1/masters/sgi_w1.c 	sdev->bus_master.touch_bit = sgi_w1_touch_bit;
sdev               98 drivers/w1/masters/sgi_w1.c 		strlcpy(sdev->dev_id, pdata->dev_id, sizeof(sdev->dev_id));
sdev               99 drivers/w1/masters/sgi_w1.c 		sdev->bus_master.dev_id = sdev->dev_id;
sdev              102 drivers/w1/masters/sgi_w1.c 	platform_set_drvdata(pdev, sdev);
sdev              104 drivers/w1/masters/sgi_w1.c 	return w1_add_master_device(&sdev->bus_master);
sdev              112 drivers/w1/masters/sgi_w1.c 	struct sgi_w1_device *sdev = platform_get_drvdata(pdev);
sdev              114 drivers/w1/masters/sgi_w1.c 	w1_remove_master_device(&sdev->bus_master);
sdev             2820 fs/btrfs/scrub.c 						  struct btrfs_device *sdev,
sdev             2861 fs/btrfs/scrub.c 	sparity->scrub_dev = sdev;
sdev              674 include/linux/libata.h 	struct scsi_device	*sdev;		/* attached SCSI device */
sdev             1179 include/linux/libata.h extern int ata_std_bios_param(struct scsi_device *sdev,
sdev             1182 include/linux/libata.h extern void ata_scsi_unlock_native_capacity(struct scsi_device *sdev);
sdev             1183 include/linux/libata.h extern int ata_scsi_slave_config(struct scsi_device *sdev);
sdev             1184 include/linux/libata.h extern void ata_scsi_slave_destroy(struct scsi_device *sdev);
sdev             1185 include/linux/libata.h extern int ata_scsi_change_queue_depth(struct scsi_device *sdev,
sdev             1187 include/linux/libata.h extern int __ata_change_queue_depth(struct ata_port *ap, struct scsi_device *sdev,
sdev              276 include/linux/scmi_protocol.h 	int (*probe)(struct scmi_device *sdev);
sdev              277 include/linux/scmi_protocol.h 	void (*remove)(struct scmi_device *sdev);
sdev              232 include/linux/serdev.h static inline int serdev_device_open(struct serdev_device *sdev)
sdev              236 include/linux/serdev.h static inline void serdev_device_close(struct serdev_device *sdev) {}
sdev              237 include/linux/serdev.h static inline unsigned int serdev_device_set_baudrate(struct serdev_device *sdev, unsigned int baudrate)
sdev              241 include/linux/serdev.h static inline void serdev_device_set_flow_control(struct serdev_device *sdev, bool enable) {}
sdev              248 include/linux/serdev.h static inline void serdev_device_wait_until_sent(struct serdev_device *sdev, long timeout) {}
sdev              257 include/linux/serdev.h static inline int serdev_device_write(struct serdev_device *sdev, const unsigned char *buf,
sdev              262 include/linux/serdev.h static inline void serdev_device_write_flush(struct serdev_device *sdev) {}
sdev              263 include/linux/serdev.h static inline int serdev_device_write_room(struct serdev_device *sdev)
sdev              118 include/linux/shdma-base.h bool shdma_reset(struct shdma_dev *sdev);
sdev              119 include/linux/shdma-base.h void shdma_chan_probe(struct shdma_dev *sdev,
sdev              122 include/linux/shdma-base.h int shdma_init(struct device *dev, struct shdma_dev *sdev,
sdev              124 include/linux/shdma-base.h void shdma_cleanup(struct shdma_dev *sdev);
sdev              196 include/linux/slimbus.h int slim_readb(struct slim_device *sdev, u32 addr);
sdev              197 include/linux/slimbus.h int slim_writeb(struct slim_device *sdev, u32 addr, u8 value);
sdev              198 include/linux/slimbus.h int slim_read(struct slim_device *sdev, u32 addr, size_t count, u8 *val);
sdev              199 include/linux/slimbus.h int slim_write(struct slim_device *sdev, u32 addr, size_t count, u8 *val);
sdev             1373 include/linux/spi/spi.h spi_get_device_id(const struct spi_device *sdev);
sdev               50 include/linux/spmi.h static inline void *spmi_device_get_drvdata(const struct spmi_device *sdev)
sdev               52 include/linux/spmi.h 	return dev_get_drvdata(&sdev->dev);
sdev               55 include/linux/spmi.h static inline void spmi_device_set_drvdata(struct spmi_device *sdev, void *data)
sdev               57 include/linux/spmi.h 	dev_set_drvdata(&sdev->dev, data);
sdev               62 include/linux/spmi.h static inline void spmi_device_put(struct spmi_device *sdev)
sdev               64 include/linux/spmi.h 	if (sdev)
sdev               65 include/linux/spmi.h 		put_device(&sdev->dev);
sdev               68 include/linux/spmi.h int spmi_device_add(struct spmi_device *sdev);
sdev               70 include/linux/spmi.h void spmi_device_remove(struct spmi_device *sdev);
sdev              139 include/linux/spmi.h 	int	(*probe)(struct spmi_device *sdev);
sdev              140 include/linux/spmi.h 	void	(*remove)(struct spmi_device *sdev);
sdev              166 include/linux/spmi.h int spmi_register_read(struct spmi_device *sdev, u8 addr, u8 *buf);
sdev              167 include/linux/spmi.h int spmi_ext_register_read(struct spmi_device *sdev, u8 addr, u8 *buf,
sdev              169 include/linux/spmi.h int spmi_ext_register_readl(struct spmi_device *sdev, u16 addr, u8 *buf,
sdev              171 include/linux/spmi.h int spmi_register_write(struct spmi_device *sdev, u8 addr, u8 data);
sdev              172 include/linux/spmi.h int spmi_register_zero_write(struct spmi_device *sdev, u8 data);
sdev              173 include/linux/spmi.h int spmi_ext_register_write(struct spmi_device *sdev, u8 addr,
sdev              175 include/linux/spmi.h int spmi_ext_register_writel(struct spmi_device *sdev, u16 addr,
sdev              177 include/linux/spmi.h int spmi_command_reset(struct spmi_device *sdev);
sdev              178 include/linux/spmi.h int spmi_command_sleep(struct spmi_device *sdev);
sdev              179 include/linux/spmi.h int spmi_command_wakeup(struct spmi_device *sdev);
sdev              180 include/linux/spmi.h int spmi_command_shutdown(struct spmi_device *sdev);
sdev              265 include/linux/ssb/ssb.h 	struct ssb_device *sdev;
sdev              292 include/linux/ssb/ssb.h 	return wrap->sdev;
sdev              641 include/linux/ssb/ssb.h void ssb_pcihost_set_power_state(struct ssb_device *sdev, pci_power_t state)
sdev              643 include/linux/ssb/ssb.h 	if (sdev->bus->bustype == SSB_BUSTYPE_PCI)
sdev              644 include/linux/ssb/ssb.h 		pci_set_power_state(sdev->bus->host_pci, state);
sdev              652 include/linux/ssb/ssb.h void ssb_pcihost_set_power_state(struct ssb_device *sdev, pci_power_t state)
sdev              122 include/linux/ssb/ssb_driver_gige.h extern int ssb_gige_pcibios_plat_dev_init(struct ssb_device *sdev,
sdev              124 include/linux/ssb/ssb_driver_gige.h extern int ssb_gige_map_irq(struct ssb_device *sdev,
sdev              142 include/linux/ssb/ssb_driver_gige.h static inline int ssb_gige_pcibios_plat_dev_init(struct ssb_device *sdev,
sdev              147 include/linux/ssb/ssb_driver_gige.h static inline int ssb_gige_map_irq(struct ssb_device *sdev,
sdev              414 include/scsi/libsas.h sdev_to_domain_dev(struct scsi_device *sdev) {
sdev              415 include/scsi/libsas.h 	return starget_to_domain_dev(sdev->sdev_target);
sdev              699 include/scsi/libsas.h extern int sas_ioctl(struct scsi_device *sdev, unsigned int cmd,
sdev              240 include/scsi/scsi_device.h #define sdev_dbg(sdev, fmt, a...) \
sdev              241 include/scsi/scsi_device.h 	dev_dbg(&(sdev)->sdev_gendev, fmt, ##a)
sdev              251 include/scsi/scsi_device.h #define sdev_printk(l, sdev, fmt, a...)				\
sdev              252 include/scsi/scsi_device.h 	sdev_prefix_printk(l, sdev, NULL, fmt, ##a)
sdev              319 include/scsi/scsi_device.h static inline struct scsi_target *scsi_target(struct scsi_device *sdev)
sdev              321 include/scsi/scsi_device.h 	return to_scsi_target(sdev->sdev_gendev.parent);
sdev              336 include/scsi/scsi_device.h void scsi_attach_vpd(struct scsi_device *sdev);
sdev              368 include/scsi/scsi_device.h #define shost_for_each_device(sdev, shost) \
sdev              369 include/scsi/scsi_device.h 	for ((sdev) = __scsi_iterate_devices((shost), NULL); \
sdev              370 include/scsi/scsi_device.h 	     (sdev); \
sdev              371 include/scsi/scsi_device.h 	     (sdev) = __scsi_iterate_devices((shost), (sdev)))
sdev              386 include/scsi/scsi_device.h #define __shost_for_each_device(sdev, shost) \
sdev              387 include/scsi/scsi_device.h 	list_for_each_entry((sdev), &((shost)->__devices), siblings)
sdev              394 include/scsi/scsi_device.h extern int scsi_mode_sense(struct scsi_device *sdev, int dbd, int modepage,
sdev              398 include/scsi/scsi_device.h extern int scsi_mode_select(struct scsi_device *sdev, int pf, int sp,
sdev              403 include/scsi/scsi_device.h extern int scsi_test_unit_ready(struct scsi_device *sdev, int timeout,
sdev              407 include/scsi/scsi_device.h extern int scsi_report_opcode(struct scsi_device *sdev, unsigned char *buffer,
sdev              409 include/scsi/scsi_device.h extern int scsi_device_set_state(struct scsi_device *sdev,
sdev              413 include/scsi/scsi_device.h extern void sdev_evt_send(struct scsi_device *sdev, struct scsi_event *evt);
sdev              414 include/scsi/scsi_device.h extern void sdev_evt_send_simple(struct scsi_device *sdev,
sdev              416 include/scsi/scsi_device.h extern int scsi_device_quiesce(struct scsi_device *sdev);
sdev              417 include/scsi/scsi_device.h extern void scsi_device_resume(struct scsi_device *sdev);
sdev              431 include/scsi/scsi_device.h extern int __scsi_execute(struct scsi_device *sdev, const unsigned char *cmd,
sdev              437 include/scsi/scsi_device.h #define scsi_execute(sdev, cmd, data_direction, buffer, bufflen, sense,	\
sdev              442 include/scsi/scsi_device.h 	__scsi_execute(sdev, cmd, data_direction, buffer, bufflen,	\
sdev              446 include/scsi/scsi_device.h static inline int scsi_execute_req(struct scsi_device *sdev,
sdev              451 include/scsi/scsi_device.h 	return scsi_execute(sdev, cmd, data_direction, buffer,
sdev              454 include/scsi/scsi_device.h extern void sdev_disable_disk_events(struct scsi_device *sdev);
sdev              455 include/scsi/scsi_device.h extern void sdev_enable_disk_events(struct scsi_device *sdev);
sdev              467 include/scsi/scsi_device.h static inline int __must_check scsi_device_reprobe(struct scsi_device *sdev)
sdev              469 include/scsi/scsi_device.h 	return device_reprobe(&sdev->sdev_gendev);
sdev              472 include/scsi/scsi_device.h static inline unsigned int sdev_channel(struct scsi_device *sdev)
sdev              474 include/scsi/scsi_device.h 	return sdev->channel;
sdev              477 include/scsi/scsi_device.h static inline unsigned int sdev_id(struct scsi_device *sdev)
sdev              479 include/scsi/scsi_device.h 	return sdev->id;
sdev              488 include/scsi/scsi_device.h static inline int scsi_device_online(struct scsi_device *sdev)
sdev              490 include/scsi/scsi_device.h 	return (sdev->sdev_state != SDEV_OFFLINE &&
sdev              491 include/scsi/scsi_device.h 		sdev->sdev_state != SDEV_TRANSPORT_OFFLINE &&
sdev              492 include/scsi/scsi_device.h 		sdev->sdev_state != SDEV_DEL);
sdev              494 include/scsi/scsi_device.h static inline int scsi_device_blocked(struct scsi_device *sdev)
sdev              496 include/scsi/scsi_device.h 	return sdev->sdev_state == SDEV_BLOCK ||
sdev              497 include/scsi/scsi_device.h 		sdev->sdev_state == SDEV_CREATED_BLOCK;
sdev              499 include/scsi/scsi_device.h static inline int scsi_device_created(struct scsi_device *sdev)
sdev              501 include/scsi/scsi_device.h 	return sdev->sdev_state == SDEV_CREATED ||
sdev              502 include/scsi/scsi_device.h 		sdev->sdev_state == SDEV_CREATED_BLOCK;
sdev              505 include/scsi/scsi_device.h int scsi_internal_device_block_nowait(struct scsi_device *sdev);
sdev              506 include/scsi/scsi_device.h int scsi_internal_device_unblock_nowait(struct scsi_device *sdev,
sdev              510 include/scsi/scsi_device.h static inline int scsi_device_sync(struct scsi_device *sdev)
sdev              512 include/scsi/scsi_device.h 	return sdev->sdtr;
sdev              514 include/scsi/scsi_device.h static inline int scsi_device_wide(struct scsi_device *sdev)
sdev              516 include/scsi/scsi_device.h 	return sdev->wdtr;
sdev              518 include/scsi/scsi_device.h static inline int scsi_device_dt(struct scsi_device *sdev)
sdev              520 include/scsi/scsi_device.h 	return sdev->ppr;
sdev              522 include/scsi/scsi_device.h static inline int scsi_device_dt_only(struct scsi_device *sdev)
sdev              524 include/scsi/scsi_device.h 	if (sdev->inquiry_len < 57)
sdev              526 include/scsi/scsi_device.h 	return (sdev->inquiry[56] & 0x0c) == 0x04;
sdev              528 include/scsi/scsi_device.h static inline int scsi_device_ius(struct scsi_device *sdev)
sdev              530 include/scsi/scsi_device.h 	if (sdev->inquiry_len < 57)
sdev              532 include/scsi/scsi_device.h 	return sdev->inquiry[56] & 0x01;
sdev              534 include/scsi/scsi_device.h static inline int scsi_device_qas(struct scsi_device *sdev)
sdev              536 include/scsi/scsi_device.h 	if (sdev->inquiry_len < 57)
sdev              538 include/scsi/scsi_device.h 	return sdev->inquiry[56] & 0x02;
sdev              540 include/scsi/scsi_device.h static inline int scsi_device_enclosure(struct scsi_device *sdev)
sdev              542 include/scsi/scsi_device.h 	return sdev->inquiry ? (sdev->inquiry[6] & (1<<6)) : 1;
sdev              545 include/scsi/scsi_device.h static inline int scsi_device_protection(struct scsi_device *sdev)
sdev              547 include/scsi/scsi_device.h 	if (sdev->no_dif)
sdev              550 include/scsi/scsi_device.h 	return sdev->scsi_level > SCSI_2 && sdev->inquiry[5] & (1<<0);
sdev              553 include/scsi/scsi_device.h static inline int scsi_device_tpgs(struct scsi_device *sdev)
sdev              555 include/scsi/scsi_device.h 	return sdev->inquiry ? (sdev->inquiry[5] >> 4) & 0x3 : 0;
sdev              566 include/scsi/scsi_device.h static inline int scsi_device_supports_vpd(struct scsi_device *sdev)
sdev              571 include/scsi/scsi_device.h 	if (sdev->try_vpd_pages)
sdev              578 include/scsi/scsi_device.h 	if (sdev->scsi_level >= SCSI_SPC_2 && !sdev->skip_vpd_pages)
sdev               44 include/scsi/scsi_ioctl.h int scsi_ioctl_block_when_processing_errors(struct scsi_device *sdev,
sdev               79 include/scsi/scsi_transport.h scsi_transport_device_data(struct scsi_device *sdev)
sdev               81 include/scsi/scsi_transport.h 	struct Scsi_Host *shost = sdev->host;
sdev               82 include/scsi/scsi_transport.h 	return (u8 *)sdev->sdev_data
sdev               16 include/scsi/scsi_transport_sas.h static inline int scsi_is_sas_rphy(const struct device *sdev)
sdev              608 sound/aoa/fabrics/layout.c 	struct soundbus_dev *sdev;
sdev              798 sound/aoa/fabrics/layout.c 	codec->soundbus_dev = ldev->sdev;
sdev              996 sound/aoa/fabrics/layout.c static int aoa_fabric_layout_probe(struct soundbus_dev *sdev)
sdev             1009 sound/aoa/fabrics/layout.c 	for_each_child_of_node(sdev->ofdev.dev.of_node, sound) {
sdev             1035 sound/aoa/fabrics/layout.c 	ldev->sdev = sdev;
sdev             1055 sound/aoa/fabrics/layout.c 	dev_set_drvdata(&sdev->ofdev.dev, ldev);
sdev             1062 sound/aoa/fabrics/layout.c 	sdev->pcmid = ldev->layout->pcmid;
sdev             1064 sound/aoa/fabrics/layout.c 		sdev->pcmname = ldev->layout->busname;
sdev             1066 sound/aoa/fabrics/layout.c 		sdev->pcmname = "Master";
sdev             1071 sound/aoa/fabrics/layout.c 	err = aoa_fabric_register(&layout_fabric, &sdev->ofdev.dev);
sdev             1086 sound/aoa/fabrics/layout.c 	sdev->pcmname = NULL;
sdev             1087 sound/aoa/fabrics/layout.c 	sdev->pcmid = -1;
sdev             1097 sound/aoa/fabrics/layout.c static int aoa_fabric_layout_remove(struct soundbus_dev *sdev)
sdev             1099 sound/aoa/fabrics/layout.c 	struct layout_dev *ldev = dev_get_drvdata(&sdev->ofdev.dev);
sdev             1124 sound/aoa/fabrics/layout.c 	sdev->pcmid = -1;
sdev             1125 sound/aoa/fabrics/layout.c 	sdev->pcmname = NULL;
sdev               92 sound/aoa/soundbus/i2sbus/i2sbus.h #define soundbus_dev_to_i2sbus_dev(sdev) \
sdev               93 sound/aoa/soundbus/i2sbus/i2sbus.h 		container_of(sdev, struct i2sbus_dev, sound)
sdev               75 sound/aoa/soundbus/i2sbus/pcm.c 	struct soundbus_dev *sdev;
sdev               91 sound/aoa/soundbus/i2sbus/pcm.c 	sdev = &i2sdev->sound;
sdev              100 sound/aoa/soundbus/i2sbus/pcm.c 	list_for_each_entry(cii, &sdev->codec_list, list) {
sdev              201 sound/aoa/soundbus/i2sbus/pcm.c 	list_for_each_entry(cii, &sdev->codec_list, list) {
sdev              209 sound/aoa/soundbus/i2sbus/pcm.c 				    &sdev->codec_list, list) {
sdev              939 sound/aoa/soundbus/i2sbus/pcm.c 	cii->sdev = soundbus_dev_get(dev);
sdev              943 sound/aoa/soundbus/i2sbus/pcm.c 	if (!cii->sdev) {
sdev               48 sound/aoa/soundbus/soundbus.h 	struct soundbus_dev *sdev;
sdev               11 sound/aoa/soundbus/sysfs.c 	struct soundbus_dev *sdev = to_soundbus_device(dev);
sdev               12 sound/aoa/soundbus/sysfs.c 	struct platform_device *of = &sdev->ofdev;
sdev               15 sound/aoa/soundbus/sysfs.c 	if (*sdev->modalias) {
sdev               16 sound/aoa/soundbus/sysfs.c 		strlcpy(buf, sdev->modalias, sizeof(sdev->modalias) + 1);
sdev               32 sound/aoa/soundbus/sysfs.c 	struct soundbus_dev *sdev = to_soundbus_device(dev);
sdev               33 sound/aoa/soundbus/sysfs.c 	struct platform_device *of = &sdev->ofdev;
sdev               42 sound/aoa/soundbus/sysfs.c 	struct soundbus_dev *sdev = to_soundbus_device(dev);
sdev               43 sound/aoa/soundbus/sysfs.c 	struct platform_device *of = &sdev->ofdev;
sdev               45 sound/core/seq_device.c 	struct snd_seq_device *sdev = to_seq_dev(dev);
sdev               48 sound/core/seq_device.c 	return strcmp(sdrv->id, sdev->id) == 0 &&
sdev               49 sound/core/seq_device.c 		sdrv->argsize == sdev->argsize;
sdev               65 sound/core/seq_device.c 	struct snd_seq_device *sdev = to_seq_dev(dev);
sdev               68 sound/core/seq_device.c 	snd_iprintf(buffer, "snd-%s,%s,%d\n", sdev->id,
sdev               91 sound/core/seq_device.c 	struct snd_seq_device *sdev = to_seq_dev(dev);
sdev               94 sound/core/seq_device.c 		request_module("snd-%s", sdev->id);
sdev              177 sound/core/seq_device.c 	struct snd_seq_device *sdev = to_seq_dev(dev);
sdev              179 sound/core/seq_device.c 	if (sdev->private_free)
sdev              180 sound/core/seq_device.c 		sdev->private_free(sdev);
sdev              181 sound/core/seq_device.c 	kfree(sdev);
sdev              152 sound/isa/wavefront/wavefront_fx.c snd_wavefront_fx_ioctl (struct snd_hwdep *sdev, struct file *file,
sdev              164 sound/isa/wavefront/wavefront_fx.c 	card = sdev->card;
sdev             5165 sound/soc/codecs/wcd9335.c static int wcd9335_slim_status(struct slim_device *sdev,
sdev             5168 sound/soc/codecs/wcd9335.c 	struct device *dev = &sdev->dev;
sdev             5181 sound/soc/codecs/wcd9335.c 	wcd->slim = sdev;
sdev             5182 sound/soc/codecs/wcd9335.c 	wcd->slim_ifc_dev = of_slim_get_device(sdev->ctrl, ifc_dev_np);
sdev             5191 sound/soc/codecs/wcd9335.c 	wcd->regmap = regmap_init_slimbus(sdev, &wcd9335_regmap_config);
sdev              156 sound/soc/intel/atom/sst-mfld-platform-pcm.c static int sst_get_stream_mapping(int dev, int sdev, int dir,
sdev               60 sound/soc/sof/control.c 	struct snd_sof_dev *sdev = scontrol->sdev;
sdev               76 sound/soc/sof/control.c 	if (pm_runtime_active(sdev->dev))
sdev               77 sound/soc/sof/control.c 		snd_sof_ipc_set_get_comp_data(sdev->ipc, scontrol,
sdev              107 sound/soc/sof/control.c 	struct snd_sof_dev *sdev = scontrol->sdev;
sdev              122 sound/soc/sof/control.c 	if (pm_runtime_active(sdev->dev))
sdev              123 sound/soc/sof/control.c 		snd_sof_ipc_set_get_comp_data(sdev->ipc, scontrol,
sdev              154 sound/soc/sof/control.c 	struct snd_sof_dev *sdev = scontrol->sdev;
sdev              169 sound/soc/sof/control.c 	if (pm_runtime_active(sdev->dev))
sdev              170 sound/soc/sof/control.c 		snd_sof_ipc_set_get_comp_data(sdev->ipc, scontrol,
sdev              185 sound/soc/sof/control.c 	struct snd_sof_dev *sdev = scontrol->sdev;
sdev              192 sound/soc/sof/control.c 		dev_err_ratelimited(sdev->dev,
sdev              200 sound/soc/sof/control.c 		dev_err_ratelimited(sdev->dev,
sdev              220 sound/soc/sof/control.c 	struct snd_sof_dev *sdev = scontrol->sdev;
sdev              226 sound/soc/sof/control.c 		dev_err_ratelimited(sdev->dev,
sdev              233 sound/soc/sof/control.c 		dev_err_ratelimited(sdev->dev,
sdev              243 sound/soc/sof/control.c 	if (pm_runtime_active(sdev->dev))
sdev              244 sound/soc/sof/control.c 		snd_sof_ipc_set_get_comp_data(sdev->ipc, scontrol,
sdev              260 sound/soc/sof/control.c 	struct snd_sof_dev *sdev = scontrol->sdev;
sdev              276 sound/soc/sof/control.c 		dev_err_ratelimited(sdev->dev, "error: Bytes data size %d exceeds max %d.\n",
sdev              283 sound/soc/sof/control.c 		dev_err_ratelimited(sdev->dev,
sdev              293 sound/soc/sof/control.c 		dev_err_ratelimited(sdev->dev,
sdev              300 sound/soc/sof/control.c 		dev_err_ratelimited(sdev->dev, "error: Incompatible ABI version 0x%08x.\n",
sdev              306 sound/soc/sof/control.c 		dev_err_ratelimited(sdev->dev, "error: Mismatch in ABI data size (truncated?).\n");
sdev              311 sound/soc/sof/control.c 	if (pm_runtime_active(sdev->dev))
sdev              312 sound/soc/sof/control.c 		snd_sof_ipc_set_get_comp_data(sdev->ipc, scontrol,
sdev              328 sound/soc/sof/control.c 	struct snd_sof_dev *sdev = scontrol->sdev;
sdev              351 sound/soc/sof/control.c 		dev_err_ratelimited(sdev->dev, "error: user data size %d exceeds max size %d.\n",
sdev               27 sound/soc/sof/core.c struct snd_sof_pcm *snd_sof_find_spcm_name(struct snd_sof_dev *sdev,
sdev               32 sound/soc/sof/core.c 	list_for_each_entry(spcm, &sdev->pcm_list, list) {
sdev               51 sound/soc/sof/core.c struct snd_sof_pcm *snd_sof_find_spcm_comp(struct snd_sof_dev *sdev,
sdev               57 sound/soc/sof/core.c 	list_for_each_entry(spcm, &sdev->pcm_list, list) {
sdev               71 sound/soc/sof/core.c struct snd_sof_pcm *snd_sof_find_spcm_pcm_id(struct snd_sof_dev *sdev,
sdev               76 sound/soc/sof/core.c 	list_for_each_entry(spcm, &sdev->pcm_list, list) {
sdev               84 sound/soc/sof/core.c struct snd_sof_widget *snd_sof_find_swidget(struct snd_sof_dev *sdev,
sdev               89 sound/soc/sof/core.c 	list_for_each_entry(swidget, &sdev->widget_list, list) {
sdev               98 sound/soc/sof/core.c struct snd_sof_widget *snd_sof_find_swidget_sname(struct snd_sof_dev *sdev,
sdev              109 sound/soc/sof/core.c 	list_for_each_entry(swidget, &sdev->widget_list, list) {
sdev              117 sound/soc/sof/core.c struct snd_sof_dai *snd_sof_find_dai(struct snd_sof_dev *sdev,
sdev              122 sound/soc/sof/core.c 	list_for_each_entry(dai, &sdev->dai_list, list) {
sdev              160 sound/soc/sof/core.c void snd_sof_get_status(struct snd_sof_dev *sdev, u32 panic_code,
sdev              170 sound/soc/sof/core.c 		dev_err(sdev->dev, "error: unexpected fault 0x%8.8x trace 0x%8.8x\n",
sdev              179 sound/soc/sof/core.c 			dev_err(sdev->dev, "error: %s\n", panic_msg[i].msg);
sdev              180 sound/soc/sof/core.c 			dev_err(sdev->dev, "error: trace point %8.8x\n",
sdev              187 sound/soc/sof/core.c 	dev_err(sdev->dev, "error: unknown reason %8.8x\n", panic_code);
sdev              188 sound/soc/sof/core.c 	dev_err(sdev->dev, "error: trace point %8.8x\n", tracep_code);
sdev              191 sound/soc/sof/core.c 	dev_err(sdev->dev, "error: panic at %s:%d\n",
sdev              193 sound/soc/sof/core.c 	sof_oops(sdev, oops);
sdev              194 sound/soc/sof/core.c 	sof_stack(sdev, oops, stack, stack_words);
sdev              205 sound/soc/sof/core.c int snd_sof_create_page_table(struct snd_sof_dev *sdev,
sdev              213 sound/soc/sof/core.c 	dev_dbg(sdev->dev, "generating page table for %p size 0x%zx pages %d\n",
sdev              228 sound/soc/sof/core.c 		dev_vdbg(sdev->dev, "pfn i %i idx %d pfn %x\n", i, idx, pfn);
sdev              259 sound/soc/sof/core.c static int sof_machine_check(struct snd_sof_dev *sdev)
sdev              261 sound/soc/sof/core.c 	struct snd_sof_pdata *plat_data = sdev->pdata;
sdev              271 sound/soc/sof/core.c 	dev_err(sdev->dev, "error: no matching ASoC machine driver found - aborting probe\n");
sdev              275 sound/soc/sof/core.c 	dev_warn(sdev->dev, "No ASoC machine driver found - using nocodec\n");
sdev              276 sound/soc/sof/core.c 	machine = devm_kzalloc(sdev->dev, sizeof(*machine), GFP_KERNEL);
sdev              280 sound/soc/sof/core.c 	ret = sof_nocodec_setup(sdev->dev, plat_data, machine,
sdev              331 sound/soc/sof/core.c static int sof_probe_continue(struct snd_sof_dev *sdev)
sdev              333 sound/soc/sof/core.c 	struct snd_sof_pdata *plat_data = sdev->pdata;
sdev              340 sound/soc/sof/core.c 	ret = snd_sof_probe(sdev);
sdev              342 sound/soc/sof/core.c 		dev_err(sdev->dev, "error: failed to probe DSP %d\n", ret);
sdev              346 sound/soc/sof/core.c 	sdev->fw_state = SOF_FW_BOOT_PREPARE;
sdev              349 sound/soc/sof/core.c 	ret = sof_machine_check(sdev);
sdev              351 sound/soc/sof/core.c 		dev_err(sdev->dev, "error: failed to get machine info %d\n",
sdev              357 sound/soc/sof/core.c 	snd_sof_new_platform_drv(sdev);
sdev              360 sound/soc/sof/core.c 	ret = snd_sof_dbg_init(sdev);
sdev              367 sound/soc/sof/core.c 		dev_err(sdev->dev, "error: failed to init DSP trace/debug %d\n",
sdev              373 sound/soc/sof/core.c 	sdev->ipc = snd_sof_ipc_init(sdev);
sdev              374 sound/soc/sof/core.c 	if (!sdev->ipc) {
sdev              375 sound/soc/sof/core.c 		dev_err(sdev->dev, "error: failed to init DSP IPC %d\n", ret);
sdev              380 sound/soc/sof/core.c 	ret = snd_sof_load_firmware(sdev);
sdev              382 sound/soc/sof/core.c 		dev_err(sdev->dev, "error: failed to load DSP firmware %d\n",
sdev              387 sound/soc/sof/core.c 	sdev->fw_state = SOF_FW_BOOT_IN_PROGRESS;
sdev              393 sound/soc/sof/core.c 	ret = snd_sof_run_firmware(sdev);
sdev              395 sound/soc/sof/core.c 		dev_err(sdev->dev, "error: failed to boot DSP firmware %d\n",
sdev              401 sound/soc/sof/core.c 	ret = snd_sof_init_trace(sdev);
sdev              404 sound/soc/sof/core.c 		dev_warn(sdev->dev,
sdev              409 sound/soc/sof/core.c 	sdev->first_boot = false;
sdev              412 sound/soc/sof/core.c 	ret = devm_snd_soc_register_component(sdev->dev, &sdev->plat_drv,
sdev              413 sound/soc/sof/core.c 					      sof_ops(sdev)->drv,
sdev              414 sound/soc/sof/core.c 					      sof_ops(sdev)->num_drv);
sdev              416 sound/soc/sof/core.c 		dev_err(sdev->dev,
sdev              427 sound/soc/sof/core.c 		platform_device_register_data(sdev->dev, drv_name,
sdev              435 sound/soc/sof/core.c 	dev_dbg(sdev->dev, "created machine %s\n",
sdev              439 sound/soc/sof/core.c 		plat_data->sof_probe_complete(sdev->dev);
sdev              444 sound/soc/sof/core.c 	snd_sof_free_trace(sdev);
sdev              446 sound/soc/sof/core.c 	snd_sof_fw_unload(sdev);
sdev              448 sound/soc/sof/core.c 	snd_sof_ipc_free(sdev);
sdev              450 sound/soc/sof/core.c 	snd_sof_free_debug(sdev);
sdev              452 sound/soc/sof/core.c 	snd_sof_remove(sdev);
sdev              455 sound/soc/sof/core.c 	sdev->fw_state = SOF_FW_BOOT_NOT_STARTED;
sdev              456 sound/soc/sof/core.c 	sdev->first_boot = true;
sdev              463 sound/soc/sof/core.c 	struct snd_sof_dev *sdev =
sdev              467 sound/soc/sof/core.c 	ret = sof_probe_continue(sdev);
sdev              470 sound/soc/sof/core.c 		dev_err(sdev->dev, "error: %s failed err: %d\n", __func__, ret);
sdev              476 sound/soc/sof/core.c 	struct snd_sof_dev *sdev;
sdev              478 sound/soc/sof/core.c 	sdev = devm_kzalloc(dev, sizeof(*sdev), GFP_KERNEL);
sdev              479 sound/soc/sof/core.c 	if (!sdev)
sdev              483 sound/soc/sof/core.c 	sdev->dev = dev;
sdev              485 sound/soc/sof/core.c 	sdev->pdata = plat_data;
sdev              486 sound/soc/sof/core.c 	sdev->first_boot = true;
sdev              487 sound/soc/sof/core.c 	sdev->fw_state = SOF_FW_BOOT_NOT_STARTED;
sdev              488 sound/soc/sof/core.c 	dev_set_drvdata(dev, sdev);
sdev              491 sound/soc/sof/core.c 	if (!sof_ops(sdev) || !sof_ops(sdev)->probe || !sof_ops(sdev)->run ||
sdev              492 sound/soc/sof/core.c 	    !sof_ops(sdev)->block_read || !sof_ops(sdev)->block_write ||
sdev              493 sound/soc/sof/core.c 	    !sof_ops(sdev)->send_msg || !sof_ops(sdev)->load_firmware ||
sdev              494 sound/soc/sof/core.c 	    !sof_ops(sdev)->ipc_msg_data || !sof_ops(sdev)->ipc_pcm_params)
sdev              497 sound/soc/sof/core.c 	INIT_LIST_HEAD(&sdev->pcm_list);
sdev              498 sound/soc/sof/core.c 	INIT_LIST_HEAD(&sdev->kcontrol_list);
sdev              499 sound/soc/sof/core.c 	INIT_LIST_HEAD(&sdev->widget_list);
sdev              500 sound/soc/sof/core.c 	INIT_LIST_HEAD(&sdev->dai_list);
sdev              501 sound/soc/sof/core.c 	INIT_LIST_HEAD(&sdev->route_list);
sdev              502 sound/soc/sof/core.c 	spin_lock_init(&sdev->ipc_lock);
sdev              503 sound/soc/sof/core.c 	spin_lock_init(&sdev->hw_lock);
sdev              506 sound/soc/sof/core.c 		INIT_WORK(&sdev->probe_work, sof_probe_work);
sdev              510 sound/soc/sof/core.c 		sdev->ipc_timeout = TIMEOUT_DEFAULT_IPC_MS;
sdev              512 sound/soc/sof/core.c 		sdev->ipc_timeout = plat_data->desc->ipc_timeout;
sdev              514 sound/soc/sof/core.c 		sdev->boot_timeout = TIMEOUT_DEFAULT_BOOT_MS;
sdev              516 sound/soc/sof/core.c 		sdev->boot_timeout = plat_data->desc->boot_timeout;
sdev              519 sound/soc/sof/core.c 		schedule_work(&sdev->probe_work);
sdev              523 sound/soc/sof/core.c 	return sof_probe_continue(sdev);
sdev              529 sound/soc/sof/core.c 	struct snd_sof_dev *sdev = dev_get_drvdata(dev);
sdev              530 sound/soc/sof/core.c 	struct snd_sof_pdata *pdata = sdev->pdata;
sdev              533 sound/soc/sof/core.c 		cancel_work_sync(&sdev->probe_work);
sdev              535 sound/soc/sof/core.c 	if (sdev->fw_state > SOF_FW_BOOT_NOT_STARTED) {
sdev              536 sound/soc/sof/core.c 		snd_sof_fw_unload(sdev);
sdev              537 sound/soc/sof/core.c 		snd_sof_ipc_free(sdev);
sdev              538 sound/soc/sof/core.c 		snd_sof_free_debug(sdev);
sdev              539 sound/soc/sof/core.c 		snd_sof_free_trace(sdev);
sdev              556 sound/soc/sof/core.c 	if (sdev->fw_state > SOF_FW_BOOT_NOT_STARTED)
sdev              557 sound/soc/sof/core.c 		snd_sof_remove(sdev);
sdev               25 sound/soc/sof/debug.c static int sof_debug_ipc_flood_test(struct snd_sof_dev *sdev,
sdev               52 sound/soc/sof/debug.c 		ret = sof_ipc_tx_message(sdev->ipc, hdr.cmd, &hdr, hdr.size,
sdev               79 sound/soc/sof/debug.c 		dev_err(sdev->dev,
sdev               93 sound/soc/sof/debug.c 		dev_dbg(sdev->dev, "IPC Flood test duration: %lums\n",
sdev               99 sound/soc/sof/debug.c 	dev_dbg(sdev->dev,
sdev              102 sound/soc/sof/debug.c 	dev_dbg(sdev->dev, "Max response time: %lluns\n",
sdev              104 sound/soc/sof/debug.c 	dev_dbg(sdev->dev, "Min response time: %lluns\n",
sdev              127 sound/soc/sof/debug.c 	struct snd_sof_dev *sdev = dfse->sdev;
sdev              192 sound/soc/sof/debug.c 	ret = pm_runtime_get_sync(sdev->dev);
sdev              194 sound/soc/sof/debug.c 		dev_err_ratelimited(sdev->dev,
sdev              197 sound/soc/sof/debug.c 		pm_runtime_put_noidle(sdev->dev);
sdev              202 sound/soc/sof/debug.c 	ret = sof_debug_ipc_flood_test(sdev, dfse, flood_duration_test,
sdev              205 sound/soc/sof/debug.c 	pm_runtime_mark_last_busy(sdev->dev);
sdev              206 sound/soc/sof/debug.c 	err = pm_runtime_put_autosuspend(sdev->dev);
sdev              208 sound/soc/sof/debug.c 		dev_err_ratelimited(sdev->dev,
sdev              225 sound/soc/sof/debug.c 	struct snd_sof_dev *sdev = dfse->sdev;
sdev              287 sound/soc/sof/debug.c 		if (pm_runtime_active(sdev->dev) ||
sdev              291 sound/soc/sof/debug.c 			dev_info(sdev->dev,
sdev              297 sound/soc/sof/debug.c 		if (!pm_runtime_active(sdev->dev) &&
sdev              299 sound/soc/sof/debug.c 			dev_err(sdev->dev,
sdev              333 sound/soc/sof/debug.c int snd_sof_debugfs_io_item(struct snd_sof_dev *sdev,
sdev              340 sound/soc/sof/debug.c 	if (!sdev)
sdev              343 sound/soc/sof/debug.c 	dfse = devm_kzalloc(sdev->dev, sizeof(*dfse), GFP_KERNEL);
sdev              350 sound/soc/sof/debug.c 	dfse->sdev = sdev;
sdev              359 sound/soc/sof/debug.c 		dfse->cache_buf = devm_kzalloc(sdev->dev, size, GFP_KERNEL);
sdev              365 sound/soc/sof/debug.c 	debugfs_create_file(name, 0444, sdev->debugfs_root, dfse,
sdev              369 sound/soc/sof/debug.c 	list_add(&dfse->list, &sdev->dfsentry_list);
sdev              376 sound/soc/sof/debug.c int snd_sof_debugfs_buf_item(struct snd_sof_dev *sdev,
sdev              382 sound/soc/sof/debug.c 	if (!sdev)
sdev              385 sound/soc/sof/debug.c 	dfse = devm_kzalloc(sdev->dev, sizeof(*dfse), GFP_KERNEL);
sdev              392 sound/soc/sof/debug.c 	dfse->sdev = sdev;
sdev              399 sound/soc/sof/debug.c 	dfse->cache_buf = devm_kzalloc(sdev->dev, IPC_FLOOD_TEST_RESULT_LEN,
sdev              405 sound/soc/sof/debug.c 	debugfs_create_file(name, mode, sdev->debugfs_root, dfse,
sdev              408 sound/soc/sof/debug.c 	list_add(&dfse->list, &sdev->dfsentry_list);
sdev              414 sound/soc/sof/debug.c int snd_sof_dbg_init(struct snd_sof_dev *sdev)
sdev              416 sound/soc/sof/debug.c 	const struct snd_sof_dsp_ops *ops = sof_ops(sdev);
sdev              422 sound/soc/sof/debug.c 	sdev->debugfs_root = debugfs_create_dir("sof", NULL);
sdev              425 sound/soc/sof/debug.c 	INIT_LIST_HEAD(&sdev->dfsentry_list);
sdev              431 sound/soc/sof/debug.c 		err = snd_sof_debugfs_io_item(sdev, sdev->bar[map->bar] +
sdev              441 sound/soc/sof/debug.c 	err = snd_sof_debugfs_buf_item(sdev, NULL, 0,
sdev              449 sound/soc/sof/debug.c 	err = snd_sof_debugfs_buf_item(sdev, NULL, 0,
sdev              461 sound/soc/sof/debug.c void snd_sof_free_debug(struct snd_sof_dev *sdev)
sdev              463 sound/soc/sof/debug.c 	debugfs_remove_recursive(sdev->debugfs_root);
sdev               44 sound/soc/sof/imx/imx8.c 	struct snd_sof_dev *sdev;
sdev               60 sound/soc/sof/imx/imx8.c static void imx8_get_reply(struct snd_sof_dev *sdev)
sdev               62 sound/soc/sof/imx/imx8.c 	struct snd_sof_ipc_msg *msg = sdev->msg;
sdev               67 sound/soc/sof/imx/imx8.c 		dev_warn(sdev->dev, "unexpected ipc interrupt\n");
sdev               72 sound/soc/sof/imx/imx8.c 	sof_mailbox_read(sdev, sdev->host_box.offset, &reply, sizeof(reply));
sdev               80 sound/soc/sof/imx/imx8.c 			dev_err(sdev->dev, "error: reply expected %zu got %u bytes\n",
sdev               87 sound/soc/sof/imx/imx8.c 			sof_mailbox_read(sdev, sdev->host_box.offset,
sdev               94 sound/soc/sof/imx/imx8.c static int imx8_get_mailbox_offset(struct snd_sof_dev *sdev)
sdev               99 sound/soc/sof/imx/imx8.c static int imx8_get_window_offset(struct snd_sof_dev *sdev, u32 id)
sdev              109 sound/soc/sof/imx/imx8.c 	spin_lock_irqsave(&priv->sdev->ipc_lock, flags);
sdev              110 sound/soc/sof/imx/imx8.c 	imx8_get_reply(priv->sdev);
sdev              111 sound/soc/sof/imx/imx8.c 	snd_sof_ipc_reply(priv->sdev, 0);
sdev              112 sound/soc/sof/imx/imx8.c 	spin_unlock_irqrestore(&priv->sdev->ipc_lock, flags);
sdev              119 sound/soc/sof/imx/imx8.c 	snd_sof_ipc_msgs_rx(priv->sdev);
sdev              127 sound/soc/sof/imx/imx8.c static int imx8_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg)
sdev              129 sound/soc/sof/imx/imx8.c 	struct imx8_priv *priv = (struct imx8_priv *)sdev->private;
sdev              131 sound/soc/sof/imx/imx8.c 	sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data,
sdev              141 sound/soc/sof/imx/imx8.c static int imx8_run(struct snd_sof_dev *sdev)
sdev              143 sound/soc/sof/imx/imx8.c 	struct imx8_priv *dsp_priv = (struct imx8_priv *)sdev->private;
sdev              149 sound/soc/sof/imx/imx8.c 		dev_err(sdev->dev, "Error system address offset source select\n");
sdev              156 sound/soc/sof/imx/imx8.c 		dev_err(sdev->dev, "Error system address offset of AUDIO\n");
sdev              163 sound/soc/sof/imx/imx8.c 		dev_err(sdev->dev, "Error system address offset of PERIPH %d\n",
sdev              171 sound/soc/sof/imx/imx8.c 		dev_err(sdev->dev, "Error system address offset of IRQ\n");
sdev              181 sound/soc/sof/imx/imx8.c static int imx8_probe(struct snd_sof_dev *sdev)
sdev              184 sound/soc/sof/imx/imx8.c 		container_of(sdev->dev, struct platform_device, dev);
sdev              198 sound/soc/sof/imx/imx8.c 	sdev->private = priv;
sdev              199 sound/soc/sof/imx/imx8.c 	priv->dev = sdev->dev;
sdev              200 sound/soc/sof/imx/imx8.c 	priv->sdev = sdev;
sdev              206 sound/soc/sof/imx/imx8.c 		dev_err(sdev->dev, "no power-domains property in %pOF\n", np);
sdev              239 sound/soc/sof/imx/imx8.c 		dev_err(sdev->dev, "Cannot obtain SCU handle (err = %d)\n",
sdev              244 sound/soc/sof/imx/imx8.c 	priv->ipc_dev = platform_device_register_data(sdev->dev, "imx-dsp",
sdev              256 sound/soc/sof/imx/imx8.c 		dev_err(sdev->dev, "Failed to get drvdata\n");
sdev              269 sound/soc/sof/imx/imx8.c 		dev_err(sdev->dev, "error: failed to get DSP base at idx 0\n");
sdev              274 sound/soc/sof/imx/imx8.c 	sdev->bar[SOF_FW_BLK_TYPE_IRAM] = devm_ioremap(sdev->dev, base, size);
sdev              275 sound/soc/sof/imx/imx8.c 	if (!sdev->bar[SOF_FW_BLK_TYPE_IRAM]) {
sdev              276 sound/soc/sof/imx/imx8.c 		dev_err(sdev->dev, "failed to ioremap base 0x%x size 0x%x\n",
sdev              281 sound/soc/sof/imx/imx8.c 	sdev->mmio_bar = SOF_FW_BLK_TYPE_IRAM;
sdev              296 sound/soc/sof/imx/imx8.c 	sdev->bar[SOF_FW_BLK_TYPE_SRAM] = devm_ioremap_wc(sdev->dev, res.start,
sdev              299 sound/soc/sof/imx/imx8.c 	if (!sdev->bar[SOF_FW_BLK_TYPE_SRAM]) {
sdev              300 sound/soc/sof/imx/imx8.c 		dev_err(sdev->dev, "failed to ioremap mem 0x%x size 0x%x\n",
sdev              305 sound/soc/sof/imx/imx8.c 	sdev->mailbox_bar = SOF_FW_BLK_TYPE_SRAM;
sdev              308 sound/soc/sof/imx/imx8.c 	sdev->dsp_box.offset = MBOX_OFFSET;
sdev              323 sound/soc/sof/imx/imx8.c static int imx8_remove(struct snd_sof_dev *sdev)
sdev              325 sound/soc/sof/imx/imx8.c 	struct imx8_priv *priv = (struct imx8_priv *)sdev->private;
sdev              339 sound/soc/sof/imx/imx8.c static int imx8_get_bar_index(struct snd_sof_dev *sdev, u32 type)
sdev              344 sound/soc/sof/imx/imx8.c static void imx8_ipc_msg_data(struct snd_sof_dev *sdev,
sdev              348 sound/soc/sof/imx/imx8.c 	sof_mailbox_read(sdev, sdev->dsp_box.offset, p, sz);
sdev              351 sound/soc/sof/imx/imx8.c static int imx8_ipc_pcm_params(struct snd_sof_dev *sdev,
sdev               71 sound/soc/sof/intel/bdw.c static void bdw_host_done(struct snd_sof_dev *sdev);
sdev               72 sound/soc/sof/intel/bdw.c static void bdw_dsp_done(struct snd_sof_dev *sdev);
sdev               73 sound/soc/sof/intel/bdw.c static void bdw_get_reply(struct snd_sof_dev *sdev);
sdev               79 sound/soc/sof/intel/bdw.c static int bdw_run(struct snd_sof_dev *sdev)
sdev               82 sound/soc/sof/intel/bdw.c 	snd_sof_dsp_update_bits(sdev, BDW_DSP_BAR, SHIM_HMDC,
sdev               87 sound/soc/sof/intel/bdw.c 	snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR,
sdev               94 sound/soc/sof/intel/bdw.c static int bdw_reset(struct snd_sof_dev *sdev)
sdev               97 sound/soc/sof/intel/bdw.c 	snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR,
sdev              105 sound/soc/sof/intel/bdw.c 	snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR,
sdev              112 sound/soc/sof/intel/bdw.c static int bdw_set_dsp_D0(struct snd_sof_dev *sdev)
sdev              118 sound/soc/sof/intel/bdw.c 	snd_sof_dsp_update_bits_unlocked(sdev, BDW_PCI_BAR, PCI_VDRTCTL2,
sdev              123 sound/soc/sof/intel/bdw.c 	snd_sof_dsp_update_bits_unlocked(sdev, BDW_PCI_BAR, PCI_VDRTCTL0,
sdev              127 sound/soc/sof/intel/bdw.c 	snd_sof_dsp_update_bits_unlocked(sdev, BDW_PCI_BAR, PCI_PMCS,
sdev              132 sound/soc/sof/intel/bdw.c 		reg = readl(sdev->bar[BDW_PCI_BAR] + PCI_PMCS)
sdev              147 sound/soc/sof/intel/bdw.c 	snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR,
sdev              152 sound/soc/sof/intel/bdw.c 	snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR,
sdev              159 sound/soc/sof/intel/bdw.c 	snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CLKCTL,
sdev              168 sound/soc/sof/intel/bdw.c 	bdw_reset(sdev);
sdev              171 sound/soc/sof/intel/bdw.c 	snd_sof_dsp_update_bits_unlocked(sdev, BDW_PCI_BAR, PCI_VDRTCTL2,
sdev              180 sound/soc/sof/intel/bdw.c 	snd_sof_dsp_update_bits_unlocked(sdev, BDW_PCI_BAR, PCI_VDRTCTL2,
sdev              188 sound/soc/sof/intel/bdw.c 	snd_sof_dsp_update_bits_unlocked(sdev, BDW_PCI_BAR, PCI_VDRTCTL0,
sdev              192 sound/soc/sof/intel/bdw.c 	snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR,  SHIM_CSR2,
sdev              197 sound/soc/sof/intel/bdw.c 	snd_sof_dsp_update_bits(sdev, BDW_DSP_BAR, SHIM_HMDC,
sdev              204 sound/soc/sof/intel/bdw.c 	snd_sof_dsp_update_bits(sdev, BDW_DSP_BAR, SHIM_IMRX,
sdev              206 sound/soc/sof/intel/bdw.c 	snd_sof_dsp_update_bits(sdev, BDW_DSP_BAR, SHIM_IMRD,
sdev              211 sound/soc/sof/intel/bdw.c 	snd_sof_dsp_write(sdev, BDW_DSP_BAR, SHIM_IPCX, 0x0);
sdev              212 sound/soc/sof/intel/bdw.c 	snd_sof_dsp_write(sdev, BDW_DSP_BAR, SHIM_IPCD, 0x0);
sdev              213 sound/soc/sof/intel/bdw.c 	snd_sof_dsp_write(sdev, BDW_DSP_BAR, 0x80, 0x6);
sdev              214 sound/soc/sof/intel/bdw.c 	snd_sof_dsp_write(sdev, BDW_DSP_BAR, 0xe0, 0x300a);
sdev              219 sound/soc/sof/intel/bdw.c static void bdw_get_registers(struct snd_sof_dev *sdev,
sdev              224 sound/soc/sof/intel/bdw.c 	u32 offset = sdev->dsp_oops_offset;
sdev              227 sound/soc/sof/intel/bdw.c 	sof_mailbox_read(sdev, offset, xoops, sizeof(*xoops));
sdev              233 sound/soc/sof/intel/bdw.c 		dev_err(sdev->dev, "invalid header size 0x%x. FW oops is bogus\n",
sdev              238 sound/soc/sof/intel/bdw.c 	sof_mailbox_read(sdev, offset, panic_info, sizeof(*panic_info));
sdev              242 sound/soc/sof/intel/bdw.c 	sof_mailbox_read(sdev, offset, stack, stack_words * sizeof(u32));
sdev              245 sound/soc/sof/intel/bdw.c static void bdw_dump(struct snd_sof_dev *sdev, u32 flags)
sdev              253 sound/soc/sof/intel/bdw.c 	status = snd_sof_dsp_read(sdev, BDW_DSP_BAR, SHIM_IPCD);
sdev              254 sound/soc/sof/intel/bdw.c 	panic = snd_sof_dsp_read(sdev, BDW_DSP_BAR, SHIM_IPCX);
sdev              255 sound/soc/sof/intel/bdw.c 	bdw_get_registers(sdev, &xoops, &panic_info, stack,
sdev              257 sound/soc/sof/intel/bdw.c 	snd_sof_get_status(sdev, status, panic, &xoops, &panic_info, stack,
sdev              267 sound/soc/sof/intel/bdw.c 	struct snd_sof_dev *sdev = context;
sdev              272 sound/soc/sof/intel/bdw.c 	isr = snd_sof_dsp_read(sdev, BDW_DSP_BAR, SHIM_ISRX);
sdev              281 sound/soc/sof/intel/bdw.c 	struct snd_sof_dev *sdev = context;
sdev              284 sound/soc/sof/intel/bdw.c 	imrx = snd_sof_dsp_read64(sdev, BDW_DSP_BAR, SHIM_IMRX);
sdev              285 sound/soc/sof/intel/bdw.c 	ipcx = snd_sof_dsp_read(sdev, BDW_DSP_BAR, SHIM_IPCX);
sdev              291 sound/soc/sof/intel/bdw.c 		snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR,
sdev              295 sound/soc/sof/intel/bdw.c 		spin_lock_irq(&sdev->ipc_lock);
sdev              304 sound/soc/sof/intel/bdw.c 		bdw_get_reply(sdev);
sdev              305 sound/soc/sof/intel/bdw.c 		snd_sof_ipc_reply(sdev, ipcx);
sdev              307 sound/soc/sof/intel/bdw.c 		bdw_dsp_done(sdev);
sdev              309 sound/soc/sof/intel/bdw.c 		spin_unlock_irq(&sdev->ipc_lock);
sdev              312 sound/soc/sof/intel/bdw.c 	ipcd = snd_sof_dsp_read(sdev, BDW_DSP_BAR, SHIM_IPCD);
sdev              318 sound/soc/sof/intel/bdw.c 		snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR,
sdev              324 sound/soc/sof/intel/bdw.c 			snd_sof_dsp_panic(sdev, BDW_PANIC_OFFSET(ipcx) +
sdev              327 sound/soc/sof/intel/bdw.c 			snd_sof_ipc_msgs_rx(sdev);
sdev              330 sound/soc/sof/intel/bdw.c 		bdw_host_done(sdev);
sdev              340 sound/soc/sof/intel/bdw.c static int bdw_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg)
sdev              343 sound/soc/sof/intel/bdw.c 	sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data,
sdev              345 sound/soc/sof/intel/bdw.c 	snd_sof_dsp_write(sdev, BDW_DSP_BAR, SHIM_IPCX, SHIM_IPCX_BUSY);
sdev              350 sound/soc/sof/intel/bdw.c static void bdw_get_reply(struct snd_sof_dev *sdev)
sdev              352 sound/soc/sof/intel/bdw.c 	struct snd_sof_ipc_msg *msg = sdev->msg;
sdev              362 sound/soc/sof/intel/bdw.c 		dev_warn(sdev->dev, "unexpected ipc interrupt raised!\n");
sdev              367 sound/soc/sof/intel/bdw.c 	sof_mailbox_read(sdev, sdev->host_box.offset, &reply, sizeof(reply));
sdev              375 sound/soc/sof/intel/bdw.c 			dev_err(sdev->dev, "error: reply expected %zu got %u bytes\n",
sdev              382 sound/soc/sof/intel/bdw.c 			sof_mailbox_read(sdev, sdev->host_box.offset,
sdev              389 sound/soc/sof/intel/bdw.c static int bdw_get_mailbox_offset(struct snd_sof_dev *sdev)
sdev              394 sound/soc/sof/intel/bdw.c static int bdw_get_window_offset(struct snd_sof_dev *sdev, u32 id)
sdev              399 sound/soc/sof/intel/bdw.c static void bdw_host_done(struct snd_sof_dev *sdev)
sdev              402 sound/soc/sof/intel/bdw.c 	snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_IPCD,
sdev              407 sound/soc/sof/intel/bdw.c 	snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_IMRX,
sdev              411 sound/soc/sof/intel/bdw.c static void bdw_dsp_done(struct snd_sof_dev *sdev)
sdev              414 sound/soc/sof/intel/bdw.c 	snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_IPCX,
sdev              418 sound/soc/sof/intel/bdw.c 	snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_IMRX,
sdev              425 sound/soc/sof/intel/bdw.c static int bdw_probe(struct snd_sof_dev *sdev)
sdev              427 sound/soc/sof/intel/bdw.c 	struct snd_sof_pdata *pdata = sdev->pdata;
sdev              430 sound/soc/sof/intel/bdw.c 		container_of(sdev->dev, struct platform_device, dev);
sdev              442 sound/soc/sof/intel/bdw.c 		dev_err(sdev->dev, "error: failed to get LPE base at idx %d\n",
sdev              447 sound/soc/sof/intel/bdw.c 	dev_dbg(sdev->dev, "LPE PHY base at 0x%x size 0x%x", base, size);
sdev              448 sound/soc/sof/intel/bdw.c 	sdev->bar[BDW_DSP_BAR] = devm_ioremap(sdev->dev, base, size);
sdev              449 sound/soc/sof/intel/bdw.c 	if (!sdev->bar[BDW_DSP_BAR]) {
sdev              450 sound/soc/sof/intel/bdw.c 		dev_err(sdev->dev,
sdev              455 sound/soc/sof/intel/bdw.c 	dev_dbg(sdev->dev, "LPE VADDR %p\n", sdev->bar[BDW_DSP_BAR]);
sdev              458 sound/soc/sof/intel/bdw.c 	sdev->mmio_bar = BDW_DSP_BAR;
sdev              459 sound/soc/sof/intel/bdw.c 	sdev->mailbox_bar = BDW_DSP_BAR;
sdev              460 sound/soc/sof/intel/bdw.c 	sdev->dsp_oops_offset = MBOX_OFFSET;
sdev              469 sound/soc/sof/intel/bdw.c 		dev_err(sdev->dev, "error: failed to get PCI base at idx %d\n",
sdev              474 sound/soc/sof/intel/bdw.c 	dev_dbg(sdev->dev, "PCI base at 0x%x size 0x%x", base, size);
sdev              475 sound/soc/sof/intel/bdw.c 	sdev->bar[BDW_PCI_BAR] = devm_ioremap(sdev->dev, base, size);
sdev              476 sound/soc/sof/intel/bdw.c 	if (!sdev->bar[BDW_PCI_BAR]) {
sdev              477 sound/soc/sof/intel/bdw.c 		dev_err(sdev->dev,
sdev              482 sound/soc/sof/intel/bdw.c 	dev_dbg(sdev->dev, "PCI VADDR %p\n", sdev->bar[BDW_PCI_BAR]);
sdev              485 sound/soc/sof/intel/bdw.c 	sdev->ipc_irq = platform_get_irq(pdev, desc->irqindex_host_ipc);
sdev              486 sound/soc/sof/intel/bdw.c 	if (sdev->ipc_irq < 0)
sdev              487 sound/soc/sof/intel/bdw.c 		return sdev->ipc_irq;
sdev              489 sound/soc/sof/intel/bdw.c 	dev_dbg(sdev->dev, "using IRQ %d\n", sdev->ipc_irq);
sdev              490 sound/soc/sof/intel/bdw.c 	ret = devm_request_threaded_irq(sdev->dev, sdev->ipc_irq,
sdev              492 sound/soc/sof/intel/bdw.c 					IRQF_SHARED, "AudioDSP", sdev);
sdev              494 sound/soc/sof/intel/bdw.c 		dev_err(sdev->dev, "error: failed to register IRQ %d\n",
sdev              495 sound/soc/sof/intel/bdw.c 			sdev->ipc_irq);
sdev              500 sound/soc/sof/intel/bdw.c 	ret = bdw_set_dsp_D0(sdev);
sdev              502 sound/soc/sof/intel/bdw.c 		dev_err(sdev->dev, "error: failed to set DSP D0\n");
sdev              507 sound/soc/sof/intel/bdw.c 	ret = dma_coerce_mask_and_coherent(sdev->dev, DMA_BIT_MASK(31));
sdev              509 sound/soc/sof/intel/bdw.c 		dev_err(sdev->dev, "error: failed to set DMA mask %d\n", ret);
sdev              514 sound/soc/sof/intel/bdw.c 	snd_sof_dsp_mailbox_init(sdev, MBOX_OFFSET, MBOX_SIZE, 0, 0);
sdev              110 sound/soc/sof/intel/byt.c static void byt_host_done(struct snd_sof_dev *sdev);
sdev              111 sound/soc/sof/intel/byt.c static void byt_dsp_done(struct snd_sof_dev *sdev);
sdev              112 sound/soc/sof/intel/byt.c static void byt_get_reply(struct snd_sof_dev *sdev);
sdev              118 sound/soc/sof/intel/byt.c static void byt_get_registers(struct snd_sof_dev *sdev,
sdev              123 sound/soc/sof/intel/byt.c 	u32 offset = sdev->dsp_oops_offset;
sdev              126 sound/soc/sof/intel/byt.c 	sof_mailbox_read(sdev, offset, xoops, sizeof(*xoops));
sdev              132 sound/soc/sof/intel/byt.c 		dev_err(sdev->dev, "invalid header size 0x%x. FW oops is bogus\n",
sdev              137 sound/soc/sof/intel/byt.c 	sof_mailbox_read(sdev, offset, panic_info, sizeof(*panic_info));
sdev              141 sound/soc/sof/intel/byt.c 	sof_mailbox_read(sdev, offset, stack, stack_words * sizeof(u32));
sdev              144 sound/soc/sof/intel/byt.c static void byt_dump(struct snd_sof_dev *sdev, u32 flags)
sdev              152 sound/soc/sof/intel/byt.c 	status = snd_sof_dsp_read(sdev, BYT_DSP_BAR, SHIM_IPCD);
sdev              153 sound/soc/sof/intel/byt.c 	panic = snd_sof_dsp_read(sdev, BYT_DSP_BAR, SHIM_IPCX);
sdev              154 sound/soc/sof/intel/byt.c 	byt_get_registers(sdev, &xoops, &panic_info, stack,
sdev              156 sound/soc/sof/intel/byt.c 	snd_sof_get_status(sdev, status, panic, &xoops, &panic_info, stack,
sdev              166 sound/soc/sof/intel/byt.c 	struct snd_sof_dev *sdev = context;
sdev              171 sound/soc/sof/intel/byt.c 	isr = snd_sof_dsp_read64(sdev, BYT_DSP_BAR, SHIM_ISRX);
sdev              180 sound/soc/sof/intel/byt.c 	struct snd_sof_dev *sdev = context;
sdev              184 sound/soc/sof/intel/byt.c 	imrx = snd_sof_dsp_read64(sdev, BYT_DSP_BAR, SHIM_IMRX);
sdev              185 sound/soc/sof/intel/byt.c 	ipcx = snd_sof_dsp_read64(sdev, BYT_DSP_BAR, SHIM_IPCX);
sdev              191 sound/soc/sof/intel/byt.c 		snd_sof_dsp_update_bits64_unlocked(sdev, BYT_DSP_BAR,
sdev              196 sound/soc/sof/intel/byt.c 		spin_lock_irq(&sdev->ipc_lock);
sdev              205 sound/soc/sof/intel/byt.c 		byt_get_reply(sdev);
sdev              206 sound/soc/sof/intel/byt.c 		snd_sof_ipc_reply(sdev, ipcx);
sdev              208 sound/soc/sof/intel/byt.c 		byt_dsp_done(sdev);
sdev              210 sound/soc/sof/intel/byt.c 		spin_unlock_irq(&sdev->ipc_lock);
sdev              214 sound/soc/sof/intel/byt.c 	ipcd = snd_sof_dsp_read64(sdev, BYT_DSP_BAR, SHIM_IPCD);
sdev              218 sound/soc/sof/intel/byt.c 		snd_sof_dsp_update_bits64_unlocked(sdev, BYT_DSP_BAR,
sdev              225 sound/soc/sof/intel/byt.c 			snd_sof_dsp_panic(sdev, BYT_PANIC_OFFSET(ipcd) +
sdev              228 sound/soc/sof/intel/byt.c 			snd_sof_ipc_msgs_rx(sdev);
sdev              231 sound/soc/sof/intel/byt.c 		byt_host_done(sdev);
sdev              237 sound/soc/sof/intel/byt.c static int byt_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg)
sdev              240 sound/soc/sof/intel/byt.c 	sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data,
sdev              242 sound/soc/sof/intel/byt.c 	snd_sof_dsp_write64(sdev, BYT_DSP_BAR, SHIM_IPCX, SHIM_BYT_IPCX_BUSY);
sdev              247 sound/soc/sof/intel/byt.c static void byt_get_reply(struct snd_sof_dev *sdev)
sdev              249 sound/soc/sof/intel/byt.c 	struct snd_sof_ipc_msg *msg = sdev->msg;
sdev              259 sound/soc/sof/intel/byt.c 		dev_warn(sdev->dev, "unexpected ipc interrupt raised!\n");
sdev              264 sound/soc/sof/intel/byt.c 	sof_mailbox_read(sdev, sdev->host_box.offset, &reply, sizeof(reply));
sdev              272 sound/soc/sof/intel/byt.c 			dev_err(sdev->dev, "error: reply expected %zu got %u bytes\n",
sdev              279 sound/soc/sof/intel/byt.c 			sof_mailbox_read(sdev, sdev->host_box.offset,
sdev              286 sound/soc/sof/intel/byt.c static int byt_get_mailbox_offset(struct snd_sof_dev *sdev)
sdev              291 sound/soc/sof/intel/byt.c static int byt_get_window_offset(struct snd_sof_dev *sdev, u32 id)
sdev              296 sound/soc/sof/intel/byt.c static void byt_host_done(struct snd_sof_dev *sdev)
sdev              299 sound/soc/sof/intel/byt.c 	snd_sof_dsp_update_bits64_unlocked(sdev, BYT_DSP_BAR, SHIM_IPCD,
sdev              305 sound/soc/sof/intel/byt.c 	snd_sof_dsp_update_bits64_unlocked(sdev, BYT_DSP_BAR, SHIM_IMRX,
sdev              309 sound/soc/sof/intel/byt.c static void byt_dsp_done(struct snd_sof_dev *sdev)
sdev              312 sound/soc/sof/intel/byt.c 	snd_sof_dsp_update_bits64_unlocked(sdev, BYT_DSP_BAR, SHIM_IPCX,
sdev              316 sound/soc/sof/intel/byt.c 	snd_sof_dsp_update_bits64_unlocked(sdev, BYT_DSP_BAR, SHIM_IMRX,
sdev              324 sound/soc/sof/intel/byt.c static int byt_run(struct snd_sof_dev *sdev)
sdev              329 sound/soc/sof/intel/byt.c 	snd_sof_dsp_update_bits64(sdev, BYT_DSP_BAR, SHIM_CSR,
sdev              332 sound/soc/sof/intel/byt.c 		if (!(snd_sof_dsp_read64(sdev, BYT_DSP_BAR, SHIM_CSR) &
sdev              338 sound/soc/sof/intel/byt.c 		dev_err(sdev->dev, "error:  unable to run DSP firmware\n");
sdev              339 sound/soc/sof/intel/byt.c 		byt_dump(sdev, SOF_DBG_REGS | SOF_DBG_MBOX);
sdev              347 sound/soc/sof/intel/byt.c static int byt_reset(struct snd_sof_dev *sdev)
sdev              350 sound/soc/sof/intel/byt.c 	snd_sof_dsp_update_bits64(sdev, BYT_DSP_BAR, SHIM_CSR,
sdev              359 sound/soc/sof/intel/byt.c 	snd_sof_dsp_update_bits64(sdev, BYT_DSP_BAR, SHIM_CSR,
sdev              393 sound/soc/sof/intel/byt.c static int tangier_pci_probe(struct snd_sof_dev *sdev)
sdev              395 sound/soc/sof/intel/byt.c 	struct snd_sof_pdata *pdata = sdev->pdata;
sdev              397 sound/soc/sof/intel/byt.c 	struct pci_dev *pci = to_pci_dev(sdev->dev);
sdev              404 sound/soc/sof/intel/byt.c 		dev_err(sdev->dev, "error: failed to set DMA mask %d\n", ret);
sdev              412 sound/soc/sof/intel/byt.c 	dev_dbg(sdev->dev, "LPE PHY base at 0x%x size 0x%x", base, size);
sdev              413 sound/soc/sof/intel/byt.c 	sdev->bar[BYT_DSP_BAR] = devm_ioremap(sdev->dev, base, size);
sdev              414 sound/soc/sof/intel/byt.c 	if (!sdev->bar[BYT_DSP_BAR]) {
sdev              415 sound/soc/sof/intel/byt.c 		dev_err(sdev->dev, "error: failed to ioremap LPE base 0x%x size 0x%x\n",
sdev              419 sound/soc/sof/intel/byt.c 	dev_dbg(sdev->dev, "LPE VADDR %p\n", sdev->bar[BYT_DSP_BAR]);
sdev              430 sound/soc/sof/intel/byt.c 		dev_info(sdev->dev, "IMR not set by BIOS. Ignoring\n");
sdev              434 sound/soc/sof/intel/byt.c 	dev_dbg(sdev->dev, "IMR base at 0x%x size 0x%x", base, size);
sdev              435 sound/soc/sof/intel/byt.c 	sdev->bar[BYT_IMR_BAR] = devm_ioremap(sdev->dev, base, size);
sdev              436 sound/soc/sof/intel/byt.c 	if (!sdev->bar[BYT_IMR_BAR]) {
sdev              437 sound/soc/sof/intel/byt.c 		dev_err(sdev->dev, "error: failed to ioremap IMR base 0x%x size 0x%x\n",
sdev              441 sound/soc/sof/intel/byt.c 	dev_dbg(sdev->dev, "IMR VADDR %p\n", sdev->bar[BYT_IMR_BAR]);
sdev              445 sound/soc/sof/intel/byt.c 	sdev->ipc_irq = pci->irq;
sdev              446 sound/soc/sof/intel/byt.c 	dev_dbg(sdev->dev, "using IRQ %d\n", sdev->ipc_irq);
sdev              447 sound/soc/sof/intel/byt.c 	ret = devm_request_threaded_irq(sdev->dev, sdev->ipc_irq,
sdev              449 sound/soc/sof/intel/byt.c 					0, "AudioDSP", sdev);
sdev              451 sound/soc/sof/intel/byt.c 		dev_err(sdev->dev, "error: failed to register IRQ %d\n",
sdev              452 sound/soc/sof/intel/byt.c 			sdev->ipc_irq);
sdev              457 sound/soc/sof/intel/byt.c 	snd_sof_dsp_update_bits64(sdev, BYT_DSP_BAR, SHIM_IMRX, 0x3, 0x0);
sdev              458 sound/soc/sof/intel/byt.c 	snd_sof_dsp_update_bits64(sdev, BYT_DSP_BAR, SHIM_IMRD, 0x3, 0x0);
sdev              461 sound/soc/sof/intel/byt.c 	sdev->dsp_box.offset = MBOX_OFFSET;
sdev              528 sound/soc/sof/intel/byt.c static int byt_acpi_probe(struct snd_sof_dev *sdev)
sdev              530 sound/soc/sof/intel/byt.c 	struct snd_sof_pdata *pdata = sdev->pdata;
sdev              533 sound/soc/sof/intel/byt.c 		container_of(sdev->dev, struct platform_device, dev);
sdev              539 sound/soc/sof/intel/byt.c 	ret = dma_coerce_mask_and_coherent(sdev->dev, DMA_BIT_MASK(31));
sdev              541 sound/soc/sof/intel/byt.c 		dev_err(sdev->dev, "error: failed to set DMA mask %d\n", ret);
sdev              552 sound/soc/sof/intel/byt.c 		dev_err(sdev->dev, "error: failed to get LPE base at idx %d\n",
sdev              557 sound/soc/sof/intel/byt.c 	dev_dbg(sdev->dev, "LPE PHY base at 0x%x size 0x%x", base, size);
sdev              558 sound/soc/sof/intel/byt.c 	sdev->bar[BYT_DSP_BAR] = devm_ioremap(sdev->dev, base, size);
sdev              559 sound/soc/sof/intel/byt.c 	if (!sdev->bar[BYT_DSP_BAR]) {
sdev              560 sound/soc/sof/intel/byt.c 		dev_err(sdev->dev, "error: failed to ioremap LPE base 0x%x size 0x%x\n",
sdev              564 sound/soc/sof/intel/byt.c 	dev_dbg(sdev->dev, "LPE VADDR %p\n", sdev->bar[BYT_DSP_BAR]);
sdev              567 sound/soc/sof/intel/byt.c 	sdev->mmio_bar = BYT_DSP_BAR;
sdev              568 sound/soc/sof/intel/byt.c 	sdev->mailbox_bar = BYT_DSP_BAR;
sdev              580 sound/soc/sof/intel/byt.c 		dev_err(sdev->dev, "error: failed to get IMR base at idx %d\n",
sdev              587 sound/soc/sof/intel/byt.c 		dev_info(sdev->dev, "IMR not set by BIOS. Ignoring\n");
sdev              591 sound/soc/sof/intel/byt.c 	dev_dbg(sdev->dev, "IMR base at 0x%x size 0x%x", base, size);
sdev              592 sound/soc/sof/intel/byt.c 	sdev->bar[BYT_IMR_BAR] = devm_ioremap(sdev->dev, base, size);
sdev              593 sound/soc/sof/intel/byt.c 	if (!sdev->bar[BYT_IMR_BAR]) {
sdev              594 sound/soc/sof/intel/byt.c 		dev_err(sdev->dev, "error: failed to ioremap IMR base 0x%x size 0x%x\n",
sdev              598 sound/soc/sof/intel/byt.c 	dev_dbg(sdev->dev, "IMR VADDR %p\n", sdev->bar[BYT_IMR_BAR]);
sdev              602 sound/soc/sof/intel/byt.c 	sdev->ipc_irq = platform_get_irq(pdev, desc->irqindex_host_ipc);
sdev              603 sound/soc/sof/intel/byt.c 	if (sdev->ipc_irq < 0)
sdev              604 sound/soc/sof/intel/byt.c 		return sdev->ipc_irq;
sdev              606 sound/soc/sof/intel/byt.c 	dev_dbg(sdev->dev, "using IRQ %d\n", sdev->ipc_irq);
sdev              607 sound/soc/sof/intel/byt.c 	ret = devm_request_threaded_irq(sdev->dev, sdev->ipc_irq,
sdev              609 sound/soc/sof/intel/byt.c 					IRQF_SHARED, "AudioDSP", sdev);
sdev              611 sound/soc/sof/intel/byt.c 		dev_err(sdev->dev, "error: failed to register IRQ %d\n",
sdev              612 sound/soc/sof/intel/byt.c 			sdev->ipc_irq);
sdev              617 sound/soc/sof/intel/byt.c 	snd_sof_dsp_update_bits64(sdev, BYT_DSP_BAR, SHIM_IMRX, 0x3, 0x0);
sdev              618 sound/soc/sof/intel/byt.c 	snd_sof_dsp_update_bits64(sdev, BYT_DSP_BAR, SHIM_IMRD, 0x3, 0x0);
sdev              621 sound/soc/sof/intel/byt.c 	sdev->dsp_box.offset = MBOX_OFFSET;
sdev               27 sound/soc/sof/intel/cnl.c static void cnl_ipc_host_done(struct snd_sof_dev *sdev);
sdev               28 sound/soc/sof/intel/cnl.c static void cnl_ipc_dsp_done(struct snd_sof_dev *sdev);
sdev               32 sound/soc/sof/intel/cnl.c 	struct snd_sof_dev *sdev = context;
sdev               41 sound/soc/sof/intel/cnl.c 	hipcida = snd_sof_dsp_read(sdev, HDA_DSP_BAR, CNL_DSP_REG_HIPCIDA);
sdev               42 sound/soc/sof/intel/cnl.c 	hipctdr = snd_sof_dsp_read(sdev, HDA_DSP_BAR, CNL_DSP_REG_HIPCTDR);
sdev               43 sound/soc/sof/intel/cnl.c 	hipctdd = snd_sof_dsp_read(sdev, HDA_DSP_BAR, CNL_DSP_REG_HIPCTDD);
sdev               44 sound/soc/sof/intel/cnl.c 	hipci = snd_sof_dsp_read(sdev, HDA_DSP_BAR, CNL_DSP_REG_HIPCIDR);
sdev               51 sound/soc/sof/intel/cnl.c 		dev_vdbg(sdev->dev,
sdev               56 sound/soc/sof/intel/cnl.c 		snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR,
sdev               60 sound/soc/sof/intel/cnl.c 		spin_lock_irq(&sdev->ipc_lock);
sdev               63 sound/soc/sof/intel/cnl.c 		hda_dsp_ipc_get_reply(sdev);
sdev               64 sound/soc/sof/intel/cnl.c 		snd_sof_ipc_reply(sdev, msg);
sdev               66 sound/soc/sof/intel/cnl.c 		if (sdev->code_loading)	{
sdev               67 sound/soc/sof/intel/cnl.c 			sdev->code_loading = 0;
sdev               68 sound/soc/sof/intel/cnl.c 			wake_up(&sdev->waitq);
sdev               71 sound/soc/sof/intel/cnl.c 		cnl_ipc_dsp_done(sdev);
sdev               73 sound/soc/sof/intel/cnl.c 		spin_unlock_irq(&sdev->ipc_lock);
sdev               83 sound/soc/sof/intel/cnl.c 		dev_vdbg(sdev->dev,
sdev               90 sound/soc/sof/intel/cnl.c 			snd_sof_dsp_panic(sdev, HDA_DSP_PANIC_OFFSET(msg_ext));
sdev               92 sound/soc/sof/intel/cnl.c 			snd_sof_ipc_msgs_rx(sdev);
sdev               95 sound/soc/sof/intel/cnl.c 		cnl_ipc_host_done(sdev);
sdev              104 sound/soc/sof/intel/cnl.c 		dev_dbg_ratelimited(sdev->dev,
sdev              109 sound/soc/sof/intel/cnl.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, HDA_DSP_REG_ADSPIC,
sdev              115 sound/soc/sof/intel/cnl.c static void cnl_ipc_host_done(struct snd_sof_dev *sdev)
sdev              121 sound/soc/sof/intel/cnl.c 	snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR,
sdev              129 sound/soc/sof/intel/cnl.c 	snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR,
sdev              135 sound/soc/sof/intel/cnl.c static void cnl_ipc_dsp_done(struct snd_sof_dev *sdev)
sdev              141 sound/soc/sof/intel/cnl.c 	snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR,
sdev              147 sound/soc/sof/intel/cnl.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR,
sdev              153 sound/soc/sof/intel/cnl.c static int cnl_ipc_send_msg(struct snd_sof_dev *sdev,
sdev              157 sound/soc/sof/intel/cnl.c 	sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data,
sdev              159 sound/soc/sof/intel/cnl.c 	snd_sof_dsp_write(sdev, HDA_DSP_BAR, CNL_DSP_REG_HIPCIDR,
sdev              165 sound/soc/sof/intel/cnl.c static void cnl_ipc_dump(struct snd_sof_dev *sdev)
sdev              171 sound/soc/sof/intel/cnl.c 	hda_ipc_irq_dump(sdev);
sdev              174 sound/soc/sof/intel/cnl.c 	hipcida = snd_sof_dsp_read(sdev, HDA_DSP_BAR, CNL_DSP_REG_HIPCIDA);
sdev              175 sound/soc/sof/intel/cnl.c 	hipcctl = snd_sof_dsp_read(sdev, HDA_DSP_BAR, CNL_DSP_REG_HIPCCTL);
sdev              176 sound/soc/sof/intel/cnl.c 	hipctdr = snd_sof_dsp_read(sdev, HDA_DSP_BAR, CNL_DSP_REG_HIPCTDR);
sdev              180 sound/soc/sof/intel/cnl.c 	dev_err(sdev->dev,
sdev               41 sound/soc/sof/intel/hda-codec.c void hda_codec_jack_wake_enable(struct snd_sof_dev *sdev)
sdev               43 sound/soc/sof/intel/hda-codec.c 	struct hda_bus *hbus = sof_to_hbus(sdev);
sdev               44 sound/soc/sof/intel/hda-codec.c 	struct hdac_bus *bus = sof_to_bus(sdev);
sdev               56 sound/soc/sof/intel/hda-codec.c void hda_codec_jack_check(struct snd_sof_dev *sdev)
sdev               58 sound/soc/sof/intel/hda-codec.c 	struct hda_bus *hbus = sof_to_hbus(sdev);
sdev               59 sound/soc/sof/intel/hda-codec.c 	struct hdac_bus *bus = sof_to_bus(sdev);
sdev               75 sound/soc/sof/intel/hda-codec.c void hda_codec_jack_wake_enable(struct snd_sof_dev *sdev) {}
sdev               76 sound/soc/sof/intel/hda-codec.c void hda_codec_jack_check(struct snd_sof_dev *sdev) {}
sdev               82 sound/soc/sof/intel/hda-codec.c static int hda_codec_probe(struct snd_sof_dev *sdev, int address)
sdev               87 sound/soc/sof/intel/hda-codec.c 	struct hda_bus *hbus = sof_to_hbus(sdev);
sdev              100 sound/soc/sof/intel/hda-codec.c 	dev_dbg(sdev->dev, "HDA codec #%d probed OK: response: %x\n",
sdev              104 sound/soc/sof/intel/hda-codec.c 	hda_priv = devm_kzalloc(sdev->dev, sizeof(*hda_priv), GFP_KERNEL);
sdev              129 sound/soc/sof/intel/hda-codec.c 	hdev = devm_kzalloc(sdev->dev, sizeof(*hdev), GFP_KERNEL);
sdev              140 sound/soc/sof/intel/hda-codec.c int hda_codec_probe_bus(struct snd_sof_dev *sdev)
sdev              142 sound/soc/sof/intel/hda-codec.c 	struct hdac_bus *bus = sof_to_bus(sdev);
sdev              151 sound/soc/sof/intel/hda-codec.c 		ret = hda_codec_probe(sdev, i);
sdev              165 sound/soc/sof/intel/hda-codec.c void hda_codec_i915_get(struct snd_sof_dev *sdev)
sdev              167 sound/soc/sof/intel/hda-codec.c 	struct hdac_bus *bus = sof_to_bus(sdev);
sdev              174 sound/soc/sof/intel/hda-codec.c void hda_codec_i915_put(struct snd_sof_dev *sdev)
sdev              176 sound/soc/sof/intel/hda-codec.c 	struct hdac_bus *bus = sof_to_bus(sdev);
sdev              183 sound/soc/sof/intel/hda-codec.c int hda_codec_i915_init(struct snd_sof_dev *sdev)
sdev              185 sound/soc/sof/intel/hda-codec.c 	struct hdac_bus *bus = sof_to_bus(sdev);
sdev              193 sound/soc/sof/intel/hda-codec.c 	hda_codec_i915_get(sdev);
sdev              199 sound/soc/sof/intel/hda-codec.c int hda_codec_i915_exit(struct snd_sof_dev *sdev)
sdev              201 sound/soc/sof/intel/hda-codec.c 	struct hdac_bus *bus = sof_to_bus(sdev);
sdev              204 sound/soc/sof/intel/hda-codec.c 	hda_codec_i915_put(sdev);
sdev               27 sound/soc/sof/intel/hda-ctrl.c int hda_dsp_ctrl_link_reset(struct snd_sof_dev *sdev, bool reset)
sdev               37 sound/soc/sof/intel/hda-ctrl.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, SOF_HDA_GCTL,
sdev               43 sound/soc/sof/intel/hda-ctrl.c 		gctl = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, SOF_HDA_GCTL);
sdev               50 sound/soc/sof/intel/hda-ctrl.c 	dev_err(sdev->dev, "error: failed to %s HDA controller gctl 0x%x\n",
sdev               55 sound/soc/sof/intel/hda-ctrl.c int hda_dsp_ctrl_get_caps(struct snd_sof_dev *sdev)
sdev               57 sound/soc/sof/intel/hda-ctrl.c 	struct hdac_bus *bus = sof_to_bus(sdev);
sdev               61 sound/soc/sof/intel/hda-ctrl.c 	offset = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, SOF_HDA_LLCH);
sdev               64 sound/soc/sof/intel/hda-ctrl.c 		cap = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, offset);
sdev               66 sound/soc/sof/intel/hda-ctrl.c 		dev_dbg(sdev->dev, "checking for capabilities at offset 0x%x\n",
sdev               73 sound/soc/sof/intel/hda-ctrl.c 			dev_dbg(sdev->dev, "found DSP capability at 0x%x\n",
sdev               76 sound/soc/sof/intel/hda-ctrl.c 			sdev->bar[HDA_DSP_PP_BAR] = bus->ppcap;
sdev               79 sound/soc/sof/intel/hda-ctrl.c 			dev_dbg(sdev->dev, "found SPIB capability at 0x%x\n",
sdev               82 sound/soc/sof/intel/hda-ctrl.c 			sdev->bar[HDA_DSP_SPIB_BAR] = bus->spbcap;
sdev               85 sound/soc/sof/intel/hda-ctrl.c 			dev_dbg(sdev->dev, "found DRSM capability at 0x%x\n",
sdev               88 sound/soc/sof/intel/hda-ctrl.c 			sdev->bar[HDA_DSP_DRSM_BAR] = bus->drsmcap;
sdev               91 sound/soc/sof/intel/hda-ctrl.c 			dev_dbg(sdev->dev, "found GTS capability at 0x%x\n",
sdev               96 sound/soc/sof/intel/hda-ctrl.c 			dev_dbg(sdev->dev, "found ML capability at 0x%x\n",
sdev              101 sound/soc/sof/intel/hda-ctrl.c 			dev_vdbg(sdev->dev, "found capability %d at 0x%x\n",
sdev              112 sound/soc/sof/intel/hda-ctrl.c void hda_dsp_ctrl_ppcap_enable(struct snd_sof_dev *sdev, bool enable)
sdev              116 sound/soc/sof/intel/hda-ctrl.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_PP_BAR, SOF_HDA_REG_PP_PPCTL,
sdev              120 sound/soc/sof/intel/hda-ctrl.c void hda_dsp_ctrl_ppcap_int_enable(struct snd_sof_dev *sdev, bool enable)
sdev              124 sound/soc/sof/intel/hda-ctrl.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_PP_BAR, SOF_HDA_REG_PP_PPCTL,
sdev              128 sound/soc/sof/intel/hda-ctrl.c void hda_dsp_ctrl_misc_clock_gating(struct snd_sof_dev *sdev, bool enable)
sdev              132 sound/soc/sof/intel/hda-ctrl.c 	snd_sof_pci_update_bits(sdev, PCI_CGCTL, PCI_CGCTL_MISCBDCGE_MASK, val);
sdev              140 sound/soc/sof/intel/hda-ctrl.c int hda_dsp_ctrl_clock_power_gating(struct snd_sof_dev *sdev, bool enable)
sdev              146 sound/soc/sof/intel/hda-ctrl.c 	snd_sof_pci_update_bits(sdev, PCI_CGCTL, PCI_CGCTL_ADSPDCGE, val);
sdev              150 sound/soc/sof/intel/hda-ctrl.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, HDA_VS_INTEL_EM2,
sdev              155 sound/soc/sof/intel/hda-ctrl.c 	snd_sof_pci_update_bits(sdev, PCI_PGCTL, PCI_PGCTL_ADSPPGD, val);
sdev              160 sound/soc/sof/intel/hda-ctrl.c int hda_dsp_ctrl_init_chip(struct snd_sof_dev *sdev, bool full_reset)
sdev              162 sound/soc/sof/intel/hda-ctrl.c 	struct hdac_bus *bus = sof_to_bus(sdev);
sdev              172 sound/soc/sof/intel/hda-ctrl.c 	hda_dsp_ctrl_misc_clock_gating(sdev, false);
sdev              176 sound/soc/sof/intel/hda-ctrl.c 		ret = hda_dsp_ctrl_link_reset(sdev, true);
sdev              178 sound/soc/sof/intel/hda-ctrl.c 			dev_err(sdev->dev, "error: failed to reset HDA controller\n");
sdev              185 sound/soc/sof/intel/hda-ctrl.c 		ret = hda_dsp_ctrl_link_reset(sdev, false);
sdev              187 sound/soc/sof/intel/hda-ctrl.c 			dev_err(sdev->dev, "error: failed to exit HDA controller reset\n");
sdev              214 sound/soc/sof/intel/hda-ctrl.c 		snd_sof_dsp_write(sdev, HDA_DSP_HDA_BAR,
sdev              220 sound/soc/sof/intel/hda-ctrl.c 	snd_sof_dsp_write(sdev, HDA_DSP_HDA_BAR, SOF_HDA_WAKESTS,
sdev              229 sound/soc/sof/intel/hda-ctrl.c 	snd_sof_dsp_write(sdev, HDA_DSP_HDA_BAR, SOF_HDA_INTSTS,
sdev              238 sound/soc/sof/intel/hda-ctrl.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, SOF_HDA_INTCTL,
sdev              244 sound/soc/sof/intel/hda-ctrl.c 		snd_sof_dsp_write(sdev, HDA_DSP_HDA_BAR, SOF_HDA_ADSP_DPLBASE,
sdev              246 sound/soc/sof/intel/hda-ctrl.c 		snd_sof_dsp_write(sdev, HDA_DSP_HDA_BAR, SOF_HDA_ADSP_DPUBASE,
sdev              258 sound/soc/sof/intel/hda-ctrl.c 	hda_dsp_ctrl_misc_clock_gating(sdev, true);
sdev              263 sound/soc/sof/intel/hda-ctrl.c void hda_dsp_ctrl_stop_chip(struct snd_sof_dev *sdev)
sdev              265 sound/soc/sof/intel/hda-ctrl.c 	struct hdac_bus *bus = sof_to_bus(sdev);
sdev              275 sound/soc/sof/intel/hda-ctrl.c 		snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR,
sdev              283 sound/soc/sof/intel/hda-ctrl.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, SOF_HDA_INTCTL,
sdev              287 sound/soc/sof/intel/hda-ctrl.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, SOF_HDA_INTCTL,
sdev              294 sound/soc/sof/intel/hda-ctrl.c 		snd_sof_dsp_write(sdev, HDA_DSP_HDA_BAR,
sdev              300 sound/soc/sof/intel/hda-ctrl.c 	snd_sof_dsp_write(sdev, HDA_DSP_HDA_BAR, SOF_HDA_WAKESTS,
sdev              309 sound/soc/sof/intel/hda-ctrl.c 	snd_sof_dsp_write(sdev, HDA_DSP_HDA_BAR, SOF_HDA_INTSTS,
sdev              318 sound/soc/sof/intel/hda-ctrl.c 		snd_sof_dsp_write(sdev, HDA_DSP_HDA_BAR,
sdev              320 sound/soc/sof/intel/hda-ctrl.c 		snd_sof_dsp_write(sdev, HDA_DSP_HDA_BAR,
sdev              162 sound/soc/sof/intel/hda-dai.c 	list_for_each_entry(sof_dai, &hda_stream->sdev->dai_list, list) {
sdev              171 sound/soc/sof/intel/hda-dai.c 				dev_err(hda_stream->sdev->dev,
sdev              181 sound/soc/sof/intel/hda-dai.c 			ret = sof_ipc_tx_message(hda_stream->sdev->ipc,
sdev              188 sound/soc/sof/intel/hda-dai.c 				dev_err(hda_stream->sdev->dev,
sdev              264 sound/soc/sof/intel/hda-dai.c 	struct snd_sof_dev *sdev =
sdev              272 sound/soc/sof/intel/hda-dai.c 	dev_dbg(sdev->dev, "hda: prepare stream dir %d\n", substream->stream);
sdev               27 sound/soc/sof/intel/hda-dsp.c int hda_dsp_core_reset_enter(struct snd_sof_dev *sdev, unsigned int core_mask)
sdev               35 sound/soc/sof/intel/hda-dsp.c 	snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR,
sdev               40 sound/soc/sof/intel/hda-dsp.c 	ret = snd_sof_dsp_read_poll_timeout(sdev, HDA_DSP_BAR,
sdev               47 sound/soc/sof/intel/hda-dsp.c 	adspcs = snd_sof_dsp_read(sdev, HDA_DSP_BAR,
sdev               51 sound/soc/sof/intel/hda-dsp.c 		dev_err(sdev->dev,
sdev               60 sound/soc/sof/intel/hda-dsp.c int hda_dsp_core_reset_leave(struct snd_sof_dev *sdev, unsigned int core_mask)
sdev               67 sound/soc/sof/intel/hda-dsp.c 	snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR,
sdev               74 sound/soc/sof/intel/hda-dsp.c 	ret = snd_sof_dsp_read_poll_timeout(sdev, HDA_DSP_BAR,
sdev               81 sound/soc/sof/intel/hda-dsp.c 	adspcs = snd_sof_dsp_read(sdev, HDA_DSP_BAR,
sdev               84 sound/soc/sof/intel/hda-dsp.c 		dev_err(sdev->dev,
sdev               93 sound/soc/sof/intel/hda-dsp.c int hda_dsp_core_stall_reset(struct snd_sof_dev *sdev, unsigned int core_mask)
sdev               96 sound/soc/sof/intel/hda-dsp.c 	snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR,
sdev              102 sound/soc/sof/intel/hda-dsp.c 	return hda_dsp_core_reset_enter(sdev, core_mask);
sdev              105 sound/soc/sof/intel/hda-dsp.c int hda_dsp_core_run(struct snd_sof_dev *sdev, unsigned int core_mask)
sdev              110 sound/soc/sof/intel/hda-dsp.c 	ret = hda_dsp_core_reset_leave(sdev, core_mask);
sdev              115 sound/soc/sof/intel/hda-dsp.c 	dev_dbg(sdev->dev, "unstall/run core: core_mask = %x\n", core_mask);
sdev              116 sound/soc/sof/intel/hda-dsp.c 	snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR,
sdev              122 sound/soc/sof/intel/hda-dsp.c 	if (!hda_dsp_core_is_enabled(sdev, core_mask)) {
sdev              123 sound/soc/sof/intel/hda-dsp.c 		hda_dsp_core_stall_reset(sdev, core_mask);
sdev              124 sound/soc/sof/intel/hda-dsp.c 		dev_err(sdev->dev, "error: DSP start core failed: core_mask %x\n",
sdev              136 sound/soc/sof/intel/hda-dsp.c int hda_dsp_core_power_up(struct snd_sof_dev *sdev, unsigned int core_mask)
sdev              143 sound/soc/sof/intel/hda-dsp.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, HDA_DSP_REG_ADSPCS,
sdev              149 sound/soc/sof/intel/hda-dsp.c 	ret = snd_sof_dsp_read_poll_timeout(sdev, HDA_DSP_BAR,
sdev              155 sound/soc/sof/intel/hda-dsp.c 		dev_err(sdev->dev, "error: timeout on core powerup\n");
sdev              158 sound/soc/sof/intel/hda-dsp.c 	adspcs = snd_sof_dsp_read(sdev, HDA_DSP_BAR,
sdev              162 sound/soc/sof/intel/hda-dsp.c 		dev_err(sdev->dev,
sdev              171 sound/soc/sof/intel/hda-dsp.c int hda_dsp_core_power_down(struct snd_sof_dev *sdev, unsigned int core_mask)
sdev              176 sound/soc/sof/intel/hda-dsp.c 	snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR,
sdev              180 sound/soc/sof/intel/hda-dsp.c 	return snd_sof_dsp_read_poll_timeout(sdev, HDA_DSP_BAR,
sdev              187 sound/soc/sof/intel/hda-dsp.c bool hda_dsp_core_is_enabled(struct snd_sof_dev *sdev,
sdev              193 sound/soc/sof/intel/hda-dsp.c 	val = snd_sof_dsp_read(sdev, HDA_DSP_BAR, HDA_DSP_REG_ADSPCS);
sdev              200 sound/soc/sof/intel/hda-dsp.c 	dev_dbg(sdev->dev, "DSP core(s) enabled? %d : core_mask %x\n",
sdev              206 sound/soc/sof/intel/hda-dsp.c int hda_dsp_enable_core(struct snd_sof_dev *sdev, unsigned int core_mask)
sdev              211 sound/soc/sof/intel/hda-dsp.c 	if (hda_dsp_core_is_enabled(sdev, core_mask))
sdev              215 sound/soc/sof/intel/hda-dsp.c 	ret = hda_dsp_core_power_up(sdev, core_mask);
sdev              217 sound/soc/sof/intel/hda-dsp.c 		dev_err(sdev->dev, "error: dsp core power up failed: core_mask %x\n",
sdev              222 sound/soc/sof/intel/hda-dsp.c 	return hda_dsp_core_run(sdev, core_mask);
sdev              225 sound/soc/sof/intel/hda-dsp.c int hda_dsp_core_reset_power_down(struct snd_sof_dev *sdev,
sdev              231 sound/soc/sof/intel/hda-dsp.c 	ret = hda_dsp_core_stall_reset(sdev, core_mask);
sdev              233 sound/soc/sof/intel/hda-dsp.c 		dev_err(sdev->dev, "error: dsp core reset failed: core_mask %x\n",
sdev              239 sound/soc/sof/intel/hda-dsp.c 	ret = hda_dsp_core_power_down(sdev, core_mask);
sdev              241 sound/soc/sof/intel/hda-dsp.c 		dev_err(sdev->dev, "error: dsp core power down fail mask %x: %d\n",
sdev              247 sound/soc/sof/intel/hda-dsp.c 	if (hda_dsp_core_is_enabled(sdev, core_mask)) {
sdev              248 sound/soc/sof/intel/hda-dsp.c 		dev_err(sdev->dev, "error: dsp core disable fail mask %x: %d\n",
sdev              256 sound/soc/sof/intel/hda-dsp.c void hda_dsp_ipc_int_enable(struct snd_sof_dev *sdev)
sdev              258 sound/soc/sof/intel/hda-dsp.c 	struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata;
sdev              262 sound/soc/sof/intel/hda-dsp.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, chip->ipc_ctl,
sdev              267 sound/soc/sof/intel/hda-dsp.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, HDA_DSP_REG_ADSPIC,
sdev              271 sound/soc/sof/intel/hda-dsp.c void hda_dsp_ipc_int_disable(struct snd_sof_dev *sdev)
sdev              273 sound/soc/sof/intel/hda-dsp.c 	struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata;
sdev              277 sound/soc/sof/intel/hda-dsp.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, HDA_DSP_REG_ADSPIC,
sdev              281 sound/soc/sof/intel/hda-dsp.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, chip->ipc_ctl,
sdev              285 sound/soc/sof/intel/hda-dsp.c static int hda_suspend(struct snd_sof_dev *sdev, bool runtime_suspend)
sdev              287 sound/soc/sof/intel/hda-dsp.c 	struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata;
sdev              290 sound/soc/sof/intel/hda-dsp.c 	struct hdac_bus *bus = sof_to_bus(sdev);
sdev              295 sound/soc/sof/intel/hda-dsp.c 	hda_dsp_ipc_int_disable(sdev);
sdev              299 sound/soc/sof/intel/hda-dsp.c 		hda_codec_jack_wake_enable(sdev);
sdev              306 sound/soc/sof/intel/hda-dsp.c 	ret = hda_dsp_core_reset_power_down(sdev, chip->cores_mask);
sdev              308 sound/soc/sof/intel/hda-dsp.c 		dev_err(sdev->dev,
sdev              314 sound/soc/sof/intel/hda-dsp.c 	hda_dsp_ctrl_ppcap_enable(sdev, false);
sdev              315 sound/soc/sof/intel/hda-dsp.c 	hda_dsp_ctrl_ppcap_int_enable(sdev, false);
sdev              318 sound/soc/sof/intel/hda-dsp.c 	hda_dsp_ctrl_stop_chip(sdev);
sdev              321 sound/soc/sof/intel/hda-dsp.c 	snd_sof_pci_update_bits(sdev, PCI_PGCTL,
sdev              325 sound/soc/sof/intel/hda-dsp.c 	ret = hda_dsp_ctrl_link_reset(sdev, true);
sdev              327 sound/soc/sof/intel/hda-dsp.c 		dev_err(sdev->dev,
sdev              335 sound/soc/sof/intel/hda-dsp.c static int hda_resume(struct snd_sof_dev *sdev, bool runtime_resume)
sdev              338 sound/soc/sof/intel/hda-dsp.c 	struct hdac_bus *bus = sof_to_bus(sdev);
sdev              347 sound/soc/sof/intel/hda-dsp.c 	snd_sof_pci_update_bits(sdev, PCI_TCSEL, 0x07, 0);
sdev              350 sound/soc/sof/intel/hda-dsp.c 	ret = hda_dsp_ctrl_init_chip(sdev, true);
sdev              352 sound/soc/sof/intel/hda-dsp.c 		dev_err(sdev->dev,
sdev              360 sound/soc/sof/intel/hda-dsp.c 		hda_codec_jack_check(sdev);
sdev              374 sound/soc/sof/intel/hda-dsp.c 	hda_dsp_ctrl_ppcap_enable(sdev, true);
sdev              375 sound/soc/sof/intel/hda-dsp.c 	hda_dsp_ctrl_ppcap_int_enable(sdev, true);
sdev              380 sound/soc/sof/intel/hda-dsp.c int hda_dsp_resume(struct snd_sof_dev *sdev)
sdev              383 sound/soc/sof/intel/hda-dsp.c 	return hda_resume(sdev, false);
sdev              386 sound/soc/sof/intel/hda-dsp.c int hda_dsp_runtime_resume(struct snd_sof_dev *sdev)
sdev              389 sound/soc/sof/intel/hda-dsp.c 	return hda_resume(sdev, true);
sdev              392 sound/soc/sof/intel/hda-dsp.c int hda_dsp_runtime_idle(struct snd_sof_dev *sdev)
sdev              394 sound/soc/sof/intel/hda-dsp.c 	struct hdac_bus *hbus = sof_to_bus(sdev);
sdev              397 sound/soc/sof/intel/hda-dsp.c 		dev_dbg(sdev->dev, "some codecs still powered (%08X), not idle\n",
sdev              405 sound/soc/sof/intel/hda-dsp.c int hda_dsp_runtime_suspend(struct snd_sof_dev *sdev)
sdev              408 sound/soc/sof/intel/hda-dsp.c 	return hda_suspend(sdev, true);
sdev              411 sound/soc/sof/intel/hda-dsp.c int hda_dsp_suspend(struct snd_sof_dev *sdev)
sdev              413 sound/soc/sof/intel/hda-dsp.c 	struct hdac_bus *bus = sof_to_bus(sdev);
sdev              417 sound/soc/sof/intel/hda-dsp.c 	ret = hda_suspend(sdev, false);
sdev              426 sound/soc/sof/intel/hda-dsp.c int hda_dsp_set_hw_params_upon_resume(struct snd_sof_dev *sdev)
sdev              429 sound/soc/sof/intel/hda-dsp.c 	struct hdac_bus *bus = sof_to_bus(sdev);
sdev               21 sound/soc/sof/intel/hda-ipc.c static void hda_dsp_ipc_host_done(struct snd_sof_dev *sdev)
sdev               27 sound/soc/sof/intel/hda-ipc.c 	snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR,
sdev               33 sound/soc/sof/intel/hda-ipc.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR,
sdev               39 sound/soc/sof/intel/hda-ipc.c static void hda_dsp_ipc_dsp_done(struct snd_sof_dev *sdev)
sdev               45 sound/soc/sof/intel/hda-ipc.c 	snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR,
sdev               51 sound/soc/sof/intel/hda-ipc.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR,
sdev               57 sound/soc/sof/intel/hda-ipc.c int hda_dsp_ipc_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg)
sdev               60 sound/soc/sof/intel/hda-ipc.c 	sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data,
sdev               62 sound/soc/sof/intel/hda-ipc.c 	snd_sof_dsp_write(sdev, HDA_DSP_BAR, HDA_DSP_REG_HIPCI,
sdev               68 sound/soc/sof/intel/hda-ipc.c void hda_dsp_ipc_get_reply(struct snd_sof_dev *sdev)
sdev               70 sound/soc/sof/intel/hda-ipc.c 	struct snd_sof_ipc_msg *msg = sdev->msg;
sdev               81 sound/soc/sof/intel/hda-ipc.c 		dev_warn(sdev->dev, "unexpected ipc interrupt raised!\n");
sdev               99 sound/soc/sof/intel/hda-ipc.c 	sof_mailbox_read(sdev, sdev->host_box.offset, &reply,
sdev              108 sound/soc/sof/intel/hda-ipc.c 			dev_err(sdev->dev, "error: reply expected %zu got %u bytes\n",
sdev              115 sound/soc/sof/intel/hda-ipc.c 			sof_mailbox_read(sdev, sdev->host_box.offset,
sdev              133 sound/soc/sof/intel/hda-ipc.c 	struct snd_sof_dev *sdev = context;
sdev              143 sound/soc/sof/intel/hda-ipc.c 	hipcie = snd_sof_dsp_read(sdev, HDA_DSP_BAR,
sdev              145 sound/soc/sof/intel/hda-ipc.c 	hipct = snd_sof_dsp_read(sdev, HDA_DSP_BAR, HDA_DSP_REG_HIPCT);
sdev              146 sound/soc/sof/intel/hda-ipc.c 	hipci = snd_sof_dsp_read(sdev, HDA_DSP_BAR, HDA_DSP_REG_HIPCI);
sdev              147 sound/soc/sof/intel/hda-ipc.c 	hipcte = snd_sof_dsp_read(sdev, HDA_DSP_BAR, HDA_DSP_REG_HIPCTE);
sdev              154 sound/soc/sof/intel/hda-ipc.c 		dev_vdbg(sdev->dev,
sdev              159 sound/soc/sof/intel/hda-ipc.c 		snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR,
sdev              173 sound/soc/sof/intel/hda-ipc.c 		spin_lock_irq(&sdev->ipc_lock);
sdev              177 sound/soc/sof/intel/hda-ipc.c 			hda_dsp_ipc_get_reply(sdev);
sdev              178 sound/soc/sof/intel/hda-ipc.c 			snd_sof_ipc_reply(sdev, msg);
sdev              182 sound/soc/sof/intel/hda-ipc.c 		if (sdev->code_loading)	{
sdev              183 sound/soc/sof/intel/hda-ipc.c 			sdev->code_loading = 0;
sdev              184 sound/soc/sof/intel/hda-ipc.c 			wake_up(&sdev->waitq);
sdev              188 sound/soc/sof/intel/hda-ipc.c 		hda_dsp_ipc_dsp_done(sdev);
sdev              190 sound/soc/sof/intel/hda-ipc.c 		spin_unlock_irq(&sdev->ipc_lock);
sdev              200 sound/soc/sof/intel/hda-ipc.c 		dev_vdbg(sdev->dev,
sdev              205 sound/soc/sof/intel/hda-ipc.c 		snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR,
sdev              212 sound/soc/sof/intel/hda-ipc.c 			snd_sof_dsp_panic(sdev, HDA_DSP_PANIC_OFFSET(msg_ext));
sdev              215 sound/soc/sof/intel/hda-ipc.c 			snd_sof_ipc_msgs_rx(sdev);
sdev              218 sound/soc/sof/intel/hda-ipc.c 		hda_dsp_ipc_host_done(sdev);
sdev              227 sound/soc/sof/intel/hda-ipc.c 		dev_dbg_ratelimited(sdev->dev,
sdev              232 sound/soc/sof/intel/hda-ipc.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, HDA_DSP_REG_ADSPIC,
sdev              241 sound/soc/sof/intel/hda-ipc.c 	struct snd_sof_dev *sdev = context;
sdev              245 sound/soc/sof/intel/hda-ipc.c 	spin_lock(&sdev->hw_lock);
sdev              248 sound/soc/sof/intel/hda-ipc.c 	irq_status = snd_sof_dsp_read(sdev, HDA_DSP_BAR, HDA_DSP_REG_ADSPIS);
sdev              249 sound/soc/sof/intel/hda-ipc.c 	dev_vdbg(sdev->dev, "irq handler: irq_status:0x%x\n", irq_status);
sdev              258 sound/soc/sof/intel/hda-ipc.c 		snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR,
sdev              265 sound/soc/sof/intel/hda-ipc.c 	spin_unlock(&sdev->hw_lock);
sdev              269 sound/soc/sof/intel/hda-ipc.c int hda_dsp_ipc_get_mailbox_offset(struct snd_sof_dev *sdev)
sdev              274 sound/soc/sof/intel/hda-ipc.c int hda_dsp_ipc_get_window_offset(struct snd_sof_dev *sdev, u32 id)
sdev              279 sound/soc/sof/intel/hda-ipc.c void hda_ipc_msg_data(struct snd_sof_dev *sdev,
sdev              283 sound/soc/sof/intel/hda-ipc.c 	if (!substream || !sdev->stream_box.size) {
sdev              284 sound/soc/sof/intel/hda-ipc.c 		sof_mailbox_read(sdev, sdev->dsp_box.offset, p, sz);
sdev              295 sound/soc/sof/intel/hda-ipc.c 			sof_mailbox_read(sdev, hda_stream->stream.posn_offset,
sdev              300 sound/soc/sof/intel/hda-ipc.c int hda_ipc_pcm_params(struct snd_sof_dev *sdev,
sdev              313 sound/soc/sof/intel/hda-ipc.c 	if (posn_offset > sdev->stream_box.size ||
sdev              317 sound/soc/sof/intel/hda-ipc.c 	hda_stream->stream.posn_offset = sdev->stream_box.offset + posn_offset;
sdev              319 sound/soc/sof/intel/hda-ipc.c 	dev_dbg(sdev->dev, "pcm: stream dir %d, posn mailbox offset is %zu",
sdev               26 sound/soc/sof/intel/hda-loader.c static int cl_stream_prepare(struct snd_sof_dev *sdev, unsigned int format,
sdev               32 sound/soc/sof/intel/hda-loader.c 	struct pci_dev *pci = to_pci_dev(sdev->dev);
sdev               36 sound/soc/sof/intel/hda-loader.c 		dev_err(sdev->dev, "error: code loading DMA is playback only\n");
sdev               40 sound/soc/sof/intel/hda-loader.c 	dsp_stream = hda_dsp_stream_get(sdev, direction);
sdev               43 sound/soc/sof/intel/hda-loader.c 		dev_err(sdev->dev, "error: no stream available\n");
sdev               52 sound/soc/sof/intel/hda-loader.c 		dev_err(sdev->dev, "error: memory alloc failed: %x\n", ret);
sdev               60 sound/soc/sof/intel/hda-loader.c 	ret = hda_dsp_stream_hw_params(sdev, dsp_stream, dmab, NULL);
sdev               62 sound/soc/sof/intel/hda-loader.c 		dev_err(sdev->dev, "error: hdac prepare failed: %x\n", ret);
sdev               66 sound/soc/sof/intel/hda-loader.c 	hda_dsp_stream_spib_config(sdev, dsp_stream, HDA_DSP_SPIB_ENABLE, size);
sdev               71 sound/soc/sof/intel/hda-loader.c 	hda_dsp_stream_put(sdev, direction, hstream->stream_tag);
sdev               81 sound/soc/sof/intel/hda-loader.c static int cl_dsp_init(struct snd_sof_dev *sdev, const void *fwdata,
sdev               84 sound/soc/sof/intel/hda-loader.c 	struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata;
sdev               91 sound/soc/sof/intel/hda-loader.c 	ret = hda_dsp_core_power_up(sdev, chip->cores_mask);
sdev               93 sound/soc/sof/intel/hda-loader.c 		dev_err(sdev->dev, "error: dsp core 0/1 power up failed\n");
sdev               99 sound/soc/sof/intel/hda-loader.c 		snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR,
sdev              108 sound/soc/sof/intel/hda-loader.c 	snd_sof_dsp_write(sdev, HDA_DSP_BAR, chip->ipc_req,
sdev              113 sound/soc/sof/intel/hda-loader.c 	ret = hda_dsp_core_run(sdev, HDA_DSP_CORE_MASK(0));
sdev              115 sound/soc/sof/intel/hda-loader.c 		dev_err(sdev->dev, "error: dsp core start failed %d\n", ret);
sdev              121 sound/soc/sof/intel/hda-loader.c 	ret = snd_sof_dsp_read_poll_timeout(sdev, HDA_DSP_BAR,
sdev              129 sound/soc/sof/intel/hda-loader.c 		dev_err(sdev->dev, "error: waiting for HIPCIE done\n");
sdev              134 sound/soc/sof/intel/hda-loader.c 	ret = hda_dsp_core_power_down(sdev,
sdev              137 sound/soc/sof/intel/hda-loader.c 		dev_err(sdev->dev, "error: dsp core x power down failed\n");
sdev              142 sound/soc/sof/intel/hda-loader.c 	hda_dsp_ipc_int_enable(sdev);
sdev              145 sound/soc/sof/intel/hda-loader.c 	ret = snd_sof_dsp_read_poll_timeout(sdev, HDA_DSP_BAR,
sdev              156 sound/soc/sof/intel/hda-loader.c 	hda_dsp_dump(sdev, SOF_DBG_REGS | SOF_DBG_PCI | SOF_DBG_MBOX);
sdev              157 sound/soc/sof/intel/hda-loader.c 	hda_dsp_core_reset_power_down(sdev, chip->cores_mask);
sdev              162 sound/soc/sof/intel/hda-loader.c static int cl_trigger(struct snd_sof_dev *sdev,
sdev              171 sound/soc/sof/intel/hda-loader.c 		wait_event_timeout(sdev->waitq, !sdev->code_loading,
sdev              174 sound/soc/sof/intel/hda-loader.c 		snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, SOF_HDA_INTCTL,
sdev              178 sound/soc/sof/intel/hda-loader.c 		snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR,
sdev              188 sound/soc/sof/intel/hda-loader.c 		return hda_dsp_stream_trigger(sdev, stream, cmd);
sdev              192 sound/soc/sof/intel/hda-loader.c static struct hdac_ext_stream *get_stream_with_tag(struct snd_sof_dev *sdev,
sdev              195 sound/soc/sof/intel/hda-loader.c 	struct hdac_bus *bus = sof_to_bus(sdev);
sdev              209 sound/soc/sof/intel/hda-loader.c static int cl_cleanup(struct snd_sof_dev *sdev, struct snd_dma_buffer *dmab,
sdev              216 sound/soc/sof/intel/hda-loader.c 	ret = hda_dsp_stream_spib_config(sdev, stream, HDA_DSP_SPIB_DISABLE, 0);
sdev              218 sound/soc/sof/intel/hda-loader.c 	hda_dsp_stream_put(sdev, SNDRV_PCM_STREAM_PLAYBACK,
sdev              224 sound/soc/sof/intel/hda-loader.c 	snd_sof_dsp_write(sdev, HDA_DSP_HDA_BAR,
sdev              226 sound/soc/sof/intel/hda-loader.c 	snd_sof_dsp_write(sdev, HDA_DSP_HDA_BAR,
sdev              229 sound/soc/sof/intel/hda-loader.c 	snd_sof_dsp_write(sdev, HDA_DSP_HDA_BAR, sd_offset, 0);
sdev              238 sound/soc/sof/intel/hda-loader.c static int cl_copy_fw(struct snd_sof_dev *sdev, struct hdac_ext_stream *stream)
sdev              243 sound/soc/sof/intel/hda-loader.c 	ret = cl_trigger(sdev, stream, SNDRV_PCM_TRIGGER_START);
sdev              245 sound/soc/sof/intel/hda-loader.c 		dev_err(sdev->dev, "error: DMA trigger start failed\n");
sdev              249 sound/soc/sof/intel/hda-loader.c 	status = snd_sof_dsp_read_poll_timeout(sdev, HDA_DSP_BAR,
sdev              256 sound/soc/sof/intel/hda-loader.c 	ret = cl_trigger(sdev, stream, SNDRV_PCM_TRIGGER_STOP);
sdev              258 sound/soc/sof/intel/hda-loader.c 		dev_err(sdev->dev, "error: DMA trigger stop failed\n");
sdev              265 sound/soc/sof/intel/hda-loader.c int hda_dsp_cl_boot_firmware(struct snd_sof_dev *sdev)
sdev              267 sound/soc/sof/intel/hda-loader.c 	struct snd_sof_pdata *plat_data = sdev->pdata;
sdev              280 sound/soc/sof/intel/hda-loader.c 	init_waitqueue_head(&sdev->boot_wait);
sdev              283 sound/soc/sof/intel/hda-loader.c 	tag = cl_stream_prepare(sdev, 0x40, stripped_firmware.size,
sdev              284 sound/soc/sof/intel/hda-loader.c 				&sdev->dmab, SNDRV_PCM_STREAM_PLAYBACK);
sdev              287 sound/soc/sof/intel/hda-loader.c 		dev_err(sdev->dev, "error: dma prepare for fw loading err: %x\n",
sdev              293 sound/soc/sof/intel/hda-loader.c 	stream = get_stream_with_tag(sdev, tag);
sdev              295 sound/soc/sof/intel/hda-loader.c 		dev_err(sdev->dev,
sdev              302 sound/soc/sof/intel/hda-loader.c 	memcpy(sdev->dmab.area, stripped_firmware.data,
sdev              307 sound/soc/sof/intel/hda-loader.c 		ret = cl_dsp_init(sdev, stripped_firmware.data,
sdev              314 sound/soc/sof/intel/hda-loader.c 		dev_err(sdev->dev, "error: Error code=0x%x: FW status=0x%x\n",
sdev              315 sound/soc/sof/intel/hda-loader.c 			snd_sof_dsp_read(sdev, HDA_DSP_BAR,
sdev              317 sound/soc/sof/intel/hda-loader.c 			snd_sof_dsp_read(sdev, HDA_DSP_BAR,
sdev              319 sound/soc/sof/intel/hda-loader.c 		dev_err(sdev->dev, "error: iteration %d of Core En/ROM load failed: %d\n",
sdev              324 sound/soc/sof/intel/hda-loader.c 		dev_err(sdev->dev, "error: dsp init failed after %d attempts with err: %d\n",
sdev              333 sound/soc/sof/intel/hda-loader.c 	ret = cl_copy_fw(sdev, stream);
sdev              335 sound/soc/sof/intel/hda-loader.c 		dev_dbg(sdev->dev, "Firmware download successful, booting...\n");
sdev              337 sound/soc/sof/intel/hda-loader.c 		dev_err(sdev->dev, "error: load fw failed ret: %d\n", ret);
sdev              344 sound/soc/sof/intel/hda-loader.c 	ret1 = cl_cleanup(sdev, &sdev->dmab, stream);
sdev              346 sound/soc/sof/intel/hda-loader.c 		dev_err(sdev->dev, "error: Code loader DSP cleanup failed\n");
sdev              361 sound/soc/sof/intel/hda-loader.c 	hda_dsp_dump(sdev, SOF_DBG_REGS | SOF_DBG_PCI | SOF_DBG_MBOX);
sdev              364 sound/soc/sof/intel/hda-loader.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_PP_BAR,
sdev              371 sound/soc/sof/intel/hda-loader.c int hda_dsp_pre_fw_run(struct snd_sof_dev *sdev)
sdev              374 sound/soc/sof/intel/hda-loader.c 	return hda_dsp_ctrl_clock_power_gating(sdev, false);
sdev              378 sound/soc/sof/intel/hda-loader.c int hda_dsp_post_fw_run(struct snd_sof_dev *sdev)
sdev              381 sound/soc/sof/intel/hda-loader.c 	return hda_dsp_ctrl_clock_power_gating(sdev, true);
sdev               29 sound/soc/sof/intel/hda-pcm.c static inline u32 get_mult_div(struct snd_sof_dev *sdev, int rate)
sdev               57 sound/soc/sof/intel/hda-pcm.c 		dev_warn(sdev->dev, "can't find div rate %d using 48kHz\n",
sdev               63 sound/soc/sof/intel/hda-pcm.c static inline u32 get_bits(struct snd_sof_dev *sdev, int sample_bits)
sdev               77 sound/soc/sof/intel/hda-pcm.c 		dev_warn(sdev->dev, "can't find %d bits using 16bit\n",
sdev               83 sound/soc/sof/intel/hda-pcm.c int hda_dsp_pcm_hw_params(struct snd_sof_dev *sdev,
sdev               90 sound/soc/sof/intel/hda-pcm.c 	struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata;
sdev               96 sound/soc/sof/intel/hda-pcm.c 	rate = get_mult_div(sdev, params_rate(params));
sdev               97 sound/soc/sof/intel/hda-pcm.c 	bits = get_bits(sdev, params_width(params));
sdev              110 sound/soc/sof/intel/hda-pcm.c 	ret = hda_dsp_stream_hw_params(sdev, stream, dmab, params);
sdev              112 sound/soc/sof/intel/hda-pcm.c 		dev_err(sdev->dev, "error: hdac prepare failed: %x\n", ret);
sdev              117 sound/soc/sof/intel/hda-pcm.c 	hda_dsp_stream_spib_config(sdev, stream, HDA_DSP_SPIB_DISABLE, 0);
sdev              128 sound/soc/sof/intel/hda-pcm.c int hda_dsp_pcm_trigger(struct snd_sof_dev *sdev,
sdev              134 sound/soc/sof/intel/hda-pcm.c 	return hda_dsp_stream_trigger(sdev, stream, cmd);
sdev              137 sound/soc/sof/intel/hda-pcm.c snd_pcm_uframes_t hda_dsp_pcm_pointer(struct snd_sof_dev *sdev,
sdev              142 sound/soc/sof/intel/hda-pcm.c 	struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata;
sdev              146 sound/soc/sof/intel/hda-pcm.c 	spcm = snd_sof_find_spcm_dai(sdev, rtd);
sdev              148 sound/soc/sof/intel/hda-pcm.c 		dev_warn_ratelimited(sdev->dev, "warn: can't find PCM with DAI ID %d\n",
sdev              168 sound/soc/sof/intel/hda-pcm.c 		pos = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR,
sdev              186 sound/soc/sof/intel/hda-pcm.c 		snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR,
sdev              199 sound/soc/sof/intel/hda-pcm.c 	dev_vdbg(sdev->dev, "PCM: stream %d dir %d position %lu\n",
sdev              204 sound/soc/sof/intel/hda-pcm.c int hda_dsp_pcm_open(struct snd_sof_dev *sdev,
sdev              210 sound/soc/sof/intel/hda-pcm.c 	dsp_stream = hda_dsp_stream_get(sdev, direction);
sdev              213 sound/soc/sof/intel/hda-pcm.c 		dev_err(sdev->dev, "error: no stream available\n");
sdev              222 sound/soc/sof/intel/hda-pcm.c int hda_dsp_pcm_close(struct snd_sof_dev *sdev,
sdev              229 sound/soc/sof/intel/hda-pcm.c 	ret = hda_dsp_stream_put(sdev, direction, hstream->stream_tag);
sdev              232 sound/soc/sof/intel/hda-pcm.c 		dev_dbg(sdev->dev, "stream %s not opened!\n", substream->name);
sdev               28 sound/soc/sof/intel/hda-stream.c static int hda_setup_bdle(struct snd_sof_dev *sdev,
sdev               34 sound/soc/sof/intel/hda-stream.c 	struct hdac_bus *bus = sof_to_bus(sdev);
sdev               42 sound/soc/sof/intel/hda-stream.c 			dev_err(sdev->dev, "error: stream frags exceeded\n");
sdev               67 sound/soc/sof/intel/hda-stream.c 		dev_vdbg(sdev->dev, "bdl, frags:%d, chunk size:0x%x;\n",
sdev               79 sound/soc/sof/intel/hda-stream.c int hda_dsp_stream_setup_bdl(struct snd_sof_dev *sdev,
sdev               83 sound/soc/sof/intel/hda-stream.c 	struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata;
sdev               89 sound/soc/sof/intel/hda-stream.c 	dev_dbg(sdev->dev, "period_bytes:0x%x\n", period_bytes);
sdev               95 sound/soc/sof/intel/hda-stream.c 	dev_dbg(sdev->dev, "periods:%d\n", periods);
sdev              116 sound/soc/sof/intel/hda-stream.c 			offset = hda_setup_bdle(sdev, dmab,
sdev              120 sound/soc/sof/intel/hda-stream.c 			offset = hda_setup_bdle(sdev, dmab,
sdev              128 sound/soc/sof/intel/hda-stream.c int hda_dsp_stream_spib_config(struct snd_sof_dev *sdev,
sdev              135 sound/soc/sof/intel/hda-stream.c 	if (!sdev->bar[HDA_DSP_SPIB_BAR]) {
sdev              136 sound/soc/sof/intel/hda-stream.c 		dev_err(sdev->dev, "error: address of spib capability is NULL\n");
sdev              143 sound/soc/sof/intel/hda-stream.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_SPIB_BAR,
sdev              148 sound/soc/sof/intel/hda-stream.c 	sof_io_write(sdev, stream->spib_addr, size);
sdev              155 sound/soc/sof/intel/hda-stream.c hda_dsp_stream_get(struct snd_sof_dev *sdev, int direction)
sdev              157 sound/soc/sof/intel/hda-stream.c 	struct hdac_bus *bus = sof_to_bus(sdev);
sdev              184 sound/soc/sof/intel/hda-stream.c 		dev_err(sdev->dev, "error: no free %s streams\n",
sdev              195 sound/soc/sof/intel/hda-stream.c 			snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR,
sdev              203 sound/soc/sof/intel/hda-stream.c int hda_dsp_stream_put(struct snd_sof_dev *sdev, int direction, int stream_tag)
sdev              205 sound/soc/sof/intel/hda-stream.c 	struct hdac_bus *bus = sof_to_bus(sdev);
sdev              233 sound/soc/sof/intel/hda-stream.c 			snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR,
sdev              239 sound/soc/sof/intel/hda-stream.c 		dev_dbg(sdev->dev, "stream_tag %d not opened!\n", stream_tag);
sdev              246 sound/soc/sof/intel/hda-stream.c int hda_dsp_stream_trigger(struct snd_sof_dev *sdev,
sdev              260 sound/soc/sof/intel/hda-stream.c 		snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, SOF_HDA_INTCTL,
sdev              264 sound/soc/sof/intel/hda-stream.c 		snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR,
sdev              271 sound/soc/sof/intel/hda-stream.c 		ret = snd_sof_dsp_read_poll_timeout(sdev,
sdev              286 sound/soc/sof/intel/hda-stream.c 		snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR,
sdev              291 sound/soc/sof/intel/hda-stream.c 		ret = snd_sof_dsp_read_poll_timeout(sdev, HDA_DSP_HDA_BAR,
sdev              300 sound/soc/sof/intel/hda-stream.c 		snd_sof_dsp_write(sdev, HDA_DSP_HDA_BAR, sd_offset +
sdev              305 sound/soc/sof/intel/hda-stream.c 		snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, SOF_HDA_INTCTL,
sdev              309 sound/soc/sof/intel/hda-stream.c 		dev_err(sdev->dev, "error: unknown command: %d\n", cmd);
sdev              320 sound/soc/sof/intel/hda-stream.c int hda_dsp_stream_hw_params(struct snd_sof_dev *sdev,
sdev              325 sound/soc/sof/intel/hda-stream.c 	struct hdac_bus *bus = sof_to_bus(sdev);
sdev              334 sound/soc/sof/intel/hda-stream.c 		dev_err(sdev->dev, "error: no stream available\n");
sdev              340 sound/soc/sof/intel/hda-stream.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_PP_BAR, SOF_HDA_REG_PP_PPCTL,
sdev              344 sound/soc/sof/intel/hda-stream.c 		dev_err(sdev->dev, "error: no dma buffer allocated!\n");
sdev              349 sound/soc/sof/intel/hda-stream.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, sd_offset,
sdev              353 sound/soc/sof/intel/hda-stream.c 	ret = snd_sof_dsp_read_poll_timeout(sdev, HDA_DSP_HDA_BAR,
sdev              362 sound/soc/sof/intel/hda-stream.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR,
sdev              368 sound/soc/sof/intel/hda-stream.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, sd_offset, 0x1,
sdev              372 sound/soc/sof/intel/hda-stream.c 		val = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR,
sdev              378 sound/soc/sof/intel/hda-stream.c 		dev_err(sdev->dev, "error: stream reset failed\n");
sdev              383 sound/soc/sof/intel/hda-stream.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, sd_offset, 0x1,
sdev              389 sound/soc/sof/intel/hda-stream.c 		val = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR,
sdev              395 sound/soc/sof/intel/hda-stream.c 		dev_err(sdev->dev, "error: timeout waiting for stream reset\n");
sdev              403 sound/soc/sof/intel/hda-stream.c 	snd_sof_dsp_write(sdev, HDA_DSP_HDA_BAR,
sdev              406 sound/soc/sof/intel/hda-stream.c 	snd_sof_dsp_write(sdev, HDA_DSP_HDA_BAR,
sdev              411 sound/soc/sof/intel/hda-stream.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, sd_offset,
sdev              415 sound/soc/sof/intel/hda-stream.c 	ret = snd_sof_dsp_read_poll_timeout(sdev, HDA_DSP_HDA_BAR,
sdev              424 sound/soc/sof/intel/hda-stream.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR,
sdev              431 sound/soc/sof/intel/hda-stream.c 	ret = hda_dsp_stream_setup_bdl(sdev, dmab, hstream);
sdev              433 sound/soc/sof/intel/hda-stream.c 		dev_err(sdev->dev, "error: set up of BDL failed\n");
sdev              438 sound/soc/sof/intel/hda-stream.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, sd_offset,
sdev              444 sound/soc/sof/intel/hda-stream.c 	snd_sof_dsp_write(sdev, HDA_DSP_HDA_BAR,
sdev              460 sound/soc/sof/intel/hda-stream.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_PP_BAR, SOF_HDA_REG_PP_PPCTL,
sdev              464 sound/soc/sof/intel/hda-stream.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR,
sdev              470 sound/soc/sof/intel/hda-stream.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_PP_BAR, SOF_HDA_REG_PP_PPCTL,
sdev              474 sound/soc/sof/intel/hda-stream.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR,
sdev              479 sound/soc/sof/intel/hda-stream.c 	snd_sof_dsp_write(sdev, HDA_DSP_HDA_BAR,
sdev              482 sound/soc/sof/intel/hda-stream.c 	snd_sof_dsp_write(sdev, HDA_DSP_HDA_BAR,
sdev              487 sound/soc/sof/intel/hda-stream.c 	if (!(snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, SOF_HDA_ADSP_DPLBASE)
sdev              489 sound/soc/sof/intel/hda-stream.c 		snd_sof_dsp_write(sdev, HDA_DSP_HDA_BAR, SOF_HDA_ADSP_DPUBASE,
sdev              491 sound/soc/sof/intel/hda-stream.c 		snd_sof_dsp_write(sdev, HDA_DSP_HDA_BAR, SOF_HDA_ADSP_DPLBASE,
sdev              497 sound/soc/sof/intel/hda-stream.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, sd_offset,
sdev              504 sound/soc/sof/intel/hda-stream.c 			snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR,
sdev              516 sound/soc/sof/intel/hda-stream.c int hda_dsp_stream_hw_free(struct snd_sof_dev *sdev,
sdev              523 sound/soc/sof/intel/hda-stream.c 	struct hdac_bus *bus = sof_to_bus(sdev);
sdev              529 sound/soc/sof/intel/hda-stream.c 		snd_sof_dsp_update_bits(sdev, HDA_DSP_PP_BAR,
sdev              628 sound/soc/sof/intel/hda-stream.c int hda_dsp_stream_init(struct snd_sof_dev *sdev)
sdev              630 sound/soc/sof/intel/hda-stream.c 	struct hdac_bus *bus = sof_to_bus(sdev);
sdev              633 sound/soc/sof/intel/hda-stream.c 	struct pci_dev *pci = to_pci_dev(sdev->dev);
sdev              639 sound/soc/sof/intel/hda-stream.c 	gcap = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, SOF_HDA_GCAP);
sdev              640 sound/soc/sof/intel/hda-stream.c 	dev_dbg(sdev->dev, "hda global caps = 0x%x\n", gcap);
sdev              647 sound/soc/sof/intel/hda-stream.c 	dev_dbg(sdev->dev, "detected %d playback and %d capture streams\n",
sdev              651 sound/soc/sof/intel/hda-stream.c 		dev_err(sdev->dev, "error: too many playback streams %d\n",
sdev              657 sound/soc/sof/intel/hda-stream.c 		dev_err(sdev->dev, "error: too many capture streams %d\n",
sdev              670 sound/soc/sof/intel/hda-stream.c 		dev_err(sdev->dev, "error: posbuffer dma alloc failed\n");
sdev              679 sound/soc/sof/intel/hda-stream.c 		dev_err(sdev->dev, "error: RB alloc failed\n");
sdev              688 sound/soc/sof/intel/hda-stream.c 		hda_stream = devm_kzalloc(sdev->dev, sizeof(*hda_stream),
sdev              693 sound/soc/sof/intel/hda-stream.c 		hda_stream->sdev = sdev;
sdev              697 sound/soc/sof/intel/hda-stream.c 		stream->pphc_addr = sdev->bar[HDA_DSP_PP_BAR] +
sdev              700 sound/soc/sof/intel/hda-stream.c 		stream->pplc_addr = sdev->bar[HDA_DSP_PP_BAR] +
sdev              705 sound/soc/sof/intel/hda-stream.c 		if (sdev->bar[HDA_DSP_SPIB_BAR]) {
sdev              706 sound/soc/sof/intel/hda-stream.c 			stream->spib_addr = sdev->bar[HDA_DSP_SPIB_BAR] +
sdev              710 sound/soc/sof/intel/hda-stream.c 			stream->fifo_addr = sdev->bar[HDA_DSP_SPIB_BAR] +
sdev              720 sound/soc/sof/intel/hda-stream.c 		hstream->sd_addr = sdev->bar[HDA_DSP_HDA_BAR] + sd_offset;
sdev              730 sound/soc/sof/intel/hda-stream.c 			dev_err(sdev->dev, "error: stream bdl dma alloc failed\n");
sdev              743 sound/soc/sof/intel/hda-stream.c 		hda_stream = devm_kzalloc(sdev->dev, sizeof(*hda_stream),
sdev              748 sound/soc/sof/intel/hda-stream.c 		hda_stream->sdev = sdev;
sdev              753 sound/soc/sof/intel/hda-stream.c 		stream->pphc_addr = sdev->bar[HDA_DSP_PP_BAR] +
sdev              756 sound/soc/sof/intel/hda-stream.c 		stream->pplc_addr = sdev->bar[HDA_DSP_PP_BAR] +
sdev              761 sound/soc/sof/intel/hda-stream.c 		if (sdev->bar[HDA_DSP_SPIB_BAR]) {
sdev              762 sound/soc/sof/intel/hda-stream.c 			stream->spib_addr = sdev->bar[HDA_DSP_SPIB_BAR] +
sdev              766 sound/soc/sof/intel/hda-stream.c 			stream->fifo_addr = sdev->bar[HDA_DSP_SPIB_BAR] +
sdev              776 sound/soc/sof/intel/hda-stream.c 		hstream->sd_addr = sdev->bar[HDA_DSP_HDA_BAR] + sd_offset;
sdev              786 sound/soc/sof/intel/hda-stream.c 			dev_err(sdev->dev, "error: stream bdl dma alloc failed\n");
sdev              802 sound/soc/sof/intel/hda-stream.c void hda_dsp_stream_free(struct snd_sof_dev *sdev)
sdev              804 sound/soc/sof/intel/hda-stream.c 	struct hdac_bus *bus = sof_to_bus(sdev);
sdev              829 sound/soc/sof/intel/hda-stream.c 		devm_kfree(sdev->dev, hda_stream);
sdev               22 sound/soc/sof/intel/hda-trace.c static int hda_dsp_trace_prepare(struct snd_sof_dev *sdev)
sdev               24 sound/soc/sof/intel/hda-trace.c 	struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata;
sdev               27 sound/soc/sof/intel/hda-trace.c 	struct snd_dma_buffer *dmab = &sdev->dmatb;
sdev               31 sound/soc/sof/intel/hda-trace.c 	hstream->bufsize = sdev->dmatb.bytes;
sdev               33 sound/soc/sof/intel/hda-trace.c 	ret = hda_dsp_stream_hw_params(sdev, stream, dmab, NULL);
sdev               35 sound/soc/sof/intel/hda-trace.c 		dev_err(sdev->dev, "error: hdac prepare failed: %x\n", ret);
sdev               40 sound/soc/sof/intel/hda-trace.c int hda_dsp_trace_init(struct snd_sof_dev *sdev, u32 *stream_tag)
sdev               42 sound/soc/sof/intel/hda-trace.c 	struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata;
sdev               45 sound/soc/sof/intel/hda-trace.c 	hda->dtrace_stream = hda_dsp_stream_get(sdev,
sdev               49 sound/soc/sof/intel/hda-trace.c 		dev_err(sdev->dev,
sdev               60 sound/soc/sof/intel/hda-trace.c 	ret = hda_dsp_trace_prepare(sdev);
sdev               62 sound/soc/sof/intel/hda-trace.c 		dev_err(sdev->dev, "error: hdac trace init failed: %x\n", ret);
sdev               63 sound/soc/sof/intel/hda-trace.c 		hda_dsp_stream_put(sdev, SNDRV_PCM_STREAM_CAPTURE, *stream_tag);
sdev               71 sound/soc/sof/intel/hda-trace.c int hda_dsp_trace_release(struct snd_sof_dev *sdev)
sdev               73 sound/soc/sof/intel/hda-trace.c 	struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata;
sdev               78 sound/soc/sof/intel/hda-trace.c 		hda_dsp_stream_put(sdev,
sdev               85 sound/soc/sof/intel/hda-trace.c 	dev_dbg(sdev->dev, "DMA trace stream is not opened!\n");
sdev               89 sound/soc/sof/intel/hda-trace.c int hda_dsp_trace_trigger(struct snd_sof_dev *sdev, int cmd)
sdev               91 sound/soc/sof/intel/hda-trace.c 	struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata;
sdev               93 sound/soc/sof/intel/hda-trace.c 	return hda_dsp_stream_trigger(sdev, hda->dtrace_stream, cmd);
sdev               83 sound/soc/sof/intel/hda.c static void hda_dsp_get_status_skl(struct snd_sof_dev *sdev)
sdev               88 sound/soc/sof/intel/hda.c 	status = snd_sof_dsp_read(sdev, HDA_DSP_BAR,
sdev               93 sound/soc/sof/intel/hda.c 			dev_err(sdev->dev, "%s - code %8.8x\n",
sdev              100 sound/soc/sof/intel/hda.c 	dev_dbg(sdev->dev, "unknown ROM status value %8.8x\n", status);
sdev              103 sound/soc/sof/intel/hda.c static void hda_dsp_get_status(struct snd_sof_dev *sdev)
sdev              108 sound/soc/sof/intel/hda.c 	status = snd_sof_dsp_read(sdev, HDA_DSP_BAR,
sdev              113 sound/soc/sof/intel/hda.c 			dev_err(sdev->dev, "%s - code %8.8x\n",
sdev              120 sound/soc/sof/intel/hda.c 	dev_dbg(sdev->dev, "unknown ROM status value %8.8x\n", status);
sdev              123 sound/soc/sof/intel/hda.c static void hda_dsp_get_registers(struct snd_sof_dev *sdev,
sdev              128 sound/soc/sof/intel/hda.c 	u32 offset = sdev->dsp_oops_offset;
sdev              131 sound/soc/sof/intel/hda.c 	sof_mailbox_read(sdev, offset, xoops, sizeof(*xoops));
sdev              137 sound/soc/sof/intel/hda.c 		dev_err(sdev->dev, "invalid header size 0x%x. FW oops is bogus\n",
sdev              142 sound/soc/sof/intel/hda.c 	sof_block_read(sdev, sdev->mmio_bar, offset,
sdev              147 sound/soc/sof/intel/hda.c 	sof_block_read(sdev, sdev->mmio_bar, offset, stack,
sdev              151 sound/soc/sof/intel/hda.c void hda_dsp_dump_skl(struct snd_sof_dev *sdev, u32 flags)
sdev              159 sound/soc/sof/intel/hda.c 	hda_dsp_get_status_skl(sdev);
sdev              162 sound/soc/sof/intel/hda.c 	status = snd_sof_dsp_read(sdev, HDA_DSP_BAR,
sdev              166 sound/soc/sof/intel/hda.c 	panic = snd_sof_dsp_read(sdev, HDA_DSP_BAR,
sdev              169 sound/soc/sof/intel/hda.c 	if (sdev->fw_state == SOF_FW_BOOT_COMPLETE) {
sdev              170 sound/soc/sof/intel/hda.c 		hda_dsp_get_registers(sdev, &xoops, &panic_info, stack,
sdev              172 sound/soc/sof/intel/hda.c 		snd_sof_get_status(sdev, status, panic, &xoops, &panic_info,
sdev              175 sound/soc/sof/intel/hda.c 		dev_err(sdev->dev, "error: status = 0x%8.8x panic = 0x%8.8x\n",
sdev              177 sound/soc/sof/intel/hda.c 		hda_dsp_get_status_skl(sdev);
sdev              181 sound/soc/sof/intel/hda.c void hda_dsp_dump(struct snd_sof_dev *sdev, u32 flags)
sdev              189 sound/soc/sof/intel/hda.c 	hda_dsp_get_status(sdev);
sdev              192 sound/soc/sof/intel/hda.c 	status = snd_sof_dsp_read(sdev, HDA_DSP_BAR,
sdev              194 sound/soc/sof/intel/hda.c 	panic = snd_sof_dsp_read(sdev, HDA_DSP_BAR, HDA_DSP_SRAM_REG_FW_TRACEP);
sdev              196 sound/soc/sof/intel/hda.c 	if (sdev->fw_state == SOF_FW_BOOT_COMPLETE) {
sdev              197 sound/soc/sof/intel/hda.c 		hda_dsp_get_registers(sdev, &xoops, &panic_info, stack,
sdev              199 sound/soc/sof/intel/hda.c 		snd_sof_get_status(sdev, status, panic, &xoops, &panic_info,
sdev              202 sound/soc/sof/intel/hda.c 		dev_err(sdev->dev, "error: status = 0x%8.8x panic = 0x%8.8x\n",
sdev              204 sound/soc/sof/intel/hda.c 		hda_dsp_get_status(sdev);
sdev              208 sound/soc/sof/intel/hda.c void hda_ipc_irq_dump(struct snd_sof_dev *sdev)
sdev              210 sound/soc/sof/intel/hda.c 	struct hdac_bus *bus = sof_to_bus(sdev);
sdev              218 sound/soc/sof/intel/hda.c 	adspis = snd_sof_dsp_read(sdev, HDA_DSP_BAR, HDA_DSP_REG_ADSPIS);
sdev              219 sound/soc/sof/intel/hda.c 	intsts = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, SOF_HDA_INTSTS);
sdev              220 sound/soc/sof/intel/hda.c 	intctl = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, SOF_HDA_INTCTL);
sdev              221 sound/soc/sof/intel/hda.c 	ppsts = snd_sof_dsp_read(sdev, HDA_DSP_PP_BAR, SOF_HDA_REG_PP_PPSTS);
sdev              224 sound/soc/sof/intel/hda.c 	dev_err(sdev->dev,
sdev              227 sound/soc/sof/intel/hda.c 	dev_err(sdev->dev,
sdev              232 sound/soc/sof/intel/hda.c void hda_ipc_dump(struct snd_sof_dev *sdev)
sdev              238 sound/soc/sof/intel/hda.c 	hda_ipc_irq_dump(sdev);
sdev              241 sound/soc/sof/intel/hda.c 	hipcie = snd_sof_dsp_read(sdev, HDA_DSP_BAR, HDA_DSP_REG_HIPCIE);
sdev              242 sound/soc/sof/intel/hda.c 	hipct = snd_sof_dsp_read(sdev, HDA_DSP_BAR, HDA_DSP_REG_HIPCT);
sdev              243 sound/soc/sof/intel/hda.c 	hipcctl = snd_sof_dsp_read(sdev, HDA_DSP_BAR, HDA_DSP_REG_HIPCCTL);
sdev              247 sound/soc/sof/intel/hda.c 	dev_err(sdev->dev,
sdev              252 sound/soc/sof/intel/hda.c static int hda_init(struct snd_sof_dev *sdev)
sdev              256 sound/soc/sof/intel/hda.c 	struct pci_dev *pci = to_pci_dev(sdev->dev);
sdev              259 sound/soc/sof/intel/hda.c 	hbus = sof_to_hbus(sdev);
sdev              260 sound/soc/sof/intel/hda.c 	bus = sof_to_bus(sdev);
sdev              289 sound/soc/sof/intel/hda.c 	sdev->bar[HDA_DSP_HDA_BAR] = bus->remap_addr;
sdev              292 sound/soc/sof/intel/hda.c 	ret = hda_dsp_ctrl_get_caps(sdev);
sdev              294 sound/soc/sof/intel/hda.c 		dev_err(sdev->dev, "error: get caps error\n");
sdev              301 sound/soc/sof/intel/hda.c static int check_nhlt_dmic(struct snd_sof_dev *sdev)
sdev              306 sound/soc/sof/intel/hda.c 	nhlt = intel_nhlt_init(sdev->dev);
sdev              308 sound/soc/sof/intel/hda.c 		dmic_num = intel_nhlt_get_dmic_geo(sdev->dev, nhlt);
sdev              317 sound/soc/sof/intel/hda.c static const char *fixup_tplg_name(struct snd_sof_dev *sdev,
sdev              326 sound/soc/sof/intel/hda.c 	filename = devm_kstrdup(sdev->dev, sof_tplg_filename, GFP_KERNEL);
sdev              333 sound/soc/sof/intel/hda.c 		tplg_filename = devm_kasprintf(sdev->dev, GFP_KERNEL,
sdev              344 sound/soc/sof/intel/hda.c static int hda_init_caps(struct snd_sof_dev *sdev)
sdev              346 sound/soc/sof/intel/hda.c 	struct hdac_bus *bus = sof_to_bus(sdev);
sdev              351 sound/soc/sof/intel/hda.c 	struct snd_sof_pdata *pdata = sdev->pdata;
sdev              366 sound/soc/sof/intel/hda.c 		dev_dbg(sdev->dev, "PP capability, will probe DSP later.\n");
sdev              370 sound/soc/sof/intel/hda.c 	ret = hda_codec_i915_init(sdev);
sdev              372 sound/soc/sof/intel/hda.c 		dev_err(sdev->dev, "error: init i915 and HDMI codec failed\n");
sdev              378 sound/soc/sof/intel/hda.c 	ret = hda_dsp_ctrl_init_chip(sdev, true);
sdev              383 sound/soc/sof/intel/hda.c 		hda_codec_i915_exit(sdev);
sdev              433 sound/soc/sof/intel/hda.c 			dmic_num = check_nhlt_dmic(sdev);
sdev              453 sound/soc/sof/intel/hda.c 			tplg_filename = fixup_tplg_name(sdev, tplg_filename,
sdev              456 sound/soc/sof/intel/hda.c 				hda_codec_i915_exit(sdev);
sdev              468 sound/soc/sof/intel/hda.c 		mach_params->platform = dev_name(sdev->dev);
sdev              472 sound/soc/sof/intel/hda.c 	hda_codec_probe_bus(sdev);
sdev              474 sound/soc/sof/intel/hda.c 	hda_codec_i915_put(sdev);
sdev              496 sound/soc/sof/intel/hda.c int hda_dsp_probe(struct snd_sof_dev *sdev)
sdev              498 sound/soc/sof/intel/hda.c 	struct pci_dev *pci = to_pci_dev(sdev->dev);
sdev              512 sound/soc/sof/intel/hda.c 		dev_err(sdev->dev, "error: the DSP is not enabled on this platform, aborting probe\n");
sdev              515 sound/soc/sof/intel/hda.c 		dev_err(sdev->dev, "error: unknown PCI class/subclass/prog-if 0x%06x found, aborting probe\n", pci->class);
sdev              518 sound/soc/sof/intel/hda.c 	dev_info(sdev->dev, "DSP detected with PCI class/subclass/prog-if 0x%06x\n", pci->class);
sdev              520 sound/soc/sof/intel/hda.c 	chip = get_chip_info(sdev->pdata);
sdev              522 sound/soc/sof/intel/hda.c 		dev_err(sdev->dev, "error: no such device supported, chip id:%x\n",
sdev              528 sound/soc/sof/intel/hda.c 	hdev = devm_kzalloc(sdev->dev, sizeof(*hdev), GFP_KERNEL);
sdev              531 sound/soc/sof/intel/hda.c 	sdev->pdata->hw_pdata = hdev;
sdev              534 sound/soc/sof/intel/hda.c 	hdev->dmic_dev = platform_device_register_data(sdev->dev, "dmic-codec",
sdev              538 sound/soc/sof/intel/hda.c 		dev_err(sdev->dev, "error: failed to create DMIC device\n");
sdev              549 sound/soc/sof/intel/hda.c 	hdev->no_ipc_position = sof_ops(sdev)->pcm_pointer ? 1 : 0;
sdev              553 sound/soc/sof/intel/hda.c 	bus = sof_to_bus(sdev);
sdev              554 sound/soc/sof/intel/hda.c 	ret = hda_init(sdev);
sdev              560 sound/soc/sof/intel/hda.c 	sdev->bar[HDA_DSP_BAR] = pci_ioremap_bar(pci, HDA_DSP_BAR);
sdev              562 sound/soc/sof/intel/hda.c 	if (!sdev->bar[HDA_DSP_BAR]) {
sdev              563 sound/soc/sof/intel/hda.c 		dev_err(sdev->dev, "error: ioremap error\n");
sdev              568 sound/soc/sof/intel/hda.c 	sdev->mmio_bar = HDA_DSP_BAR;
sdev              569 sound/soc/sof/intel/hda.c 	sdev->mailbox_bar = HDA_DSP_BAR;
sdev              573 sound/soc/sof/intel/hda.c 		dev_dbg(sdev->dev, "DMA mask is 64 bit\n");
sdev              576 sound/soc/sof/intel/hda.c 		dev_dbg(sdev->dev, "DMA mask is 32 bit\n");
sdev              582 sound/soc/sof/intel/hda.c 	ret = hda_dsp_stream_init(sdev);
sdev              584 sound/soc/sof/intel/hda.c 		dev_err(sdev->dev, "error: failed to init streams\n");
sdev              599 sound/soc/sof/intel/hda.c 		dev_info(sdev->dev, "use msi interrupt mode\n");
sdev              602 sound/soc/sof/intel/hda.c 		sdev->ipc_irq = hdev->irq;
sdev              604 sound/soc/sof/intel/hda.c 		sdev->msi_enabled = true;
sdev              607 sound/soc/sof/intel/hda.c 	if (!sdev->msi_enabled) {
sdev              608 sound/soc/sof/intel/hda.c 		dev_info(sdev->dev, "use legacy interrupt mode\n");
sdev              614 sound/soc/sof/intel/hda.c 		sdev->ipc_irq = pci->irq;
sdev              617 sound/soc/sof/intel/hda.c 	dev_dbg(sdev->dev, "using HDA IRQ %d\n", hdev->irq);
sdev              622 sound/soc/sof/intel/hda.c 		dev_err(sdev->dev, "error: failed to register HDA IRQ %d\n",
sdev              627 sound/soc/sof/intel/hda.c 	dev_dbg(sdev->dev, "using IPC IRQ %d\n", sdev->ipc_irq);
sdev              628 sound/soc/sof/intel/hda.c 	ret = request_threaded_irq(sdev->ipc_irq, hda_dsp_ipc_irq_handler,
sdev              629 sound/soc/sof/intel/hda.c 				   sof_ops(sdev)->irq_thread, IRQF_SHARED,
sdev              630 sound/soc/sof/intel/hda.c 				   "AudioDSP", sdev);
sdev              632 sound/soc/sof/intel/hda.c 		dev_err(sdev->dev, "error: failed to register IPC IRQ %d\n",
sdev              633 sound/soc/sof/intel/hda.c 			sdev->ipc_irq);
sdev              644 sound/soc/sof/intel/hda.c 	snd_sof_pci_update_bits(sdev, PCI_TCSEL, 0x07, 0);
sdev              647 sound/soc/sof/intel/hda.c 	ret = hda_init_caps(sdev);
sdev              652 sound/soc/sof/intel/hda.c 	hda_dsp_ctrl_ppcap_enable(sdev, true);
sdev              653 sound/soc/sof/intel/hda.c 	hda_dsp_ctrl_ppcap_int_enable(sdev, true);
sdev              656 sound/soc/sof/intel/hda.c 	init_waitqueue_head(&sdev->waitq);
sdev              659 sound/soc/sof/intel/hda.c 	sdev->dsp_box.offset = HDA_DSP_MBOX_UPLINK_OFFSET;
sdev              664 sound/soc/sof/intel/hda.c 	free_irq(sdev->ipc_irq, sdev);
sdev              668 sound/soc/sof/intel/hda.c 	if (sdev->msi_enabled)
sdev              671 sound/soc/sof/intel/hda.c 	hda_dsp_stream_free(sdev);
sdev              673 sound/soc/sof/intel/hda.c 	iounmap(sdev->bar[HDA_DSP_BAR]);
sdev              680 sound/soc/sof/intel/hda.c int hda_dsp_remove(struct snd_sof_dev *sdev)
sdev              682 sound/soc/sof/intel/hda.c 	struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata;
sdev              683 sound/soc/sof/intel/hda.c 	struct hdac_bus *bus = sof_to_bus(sdev);
sdev              684 sound/soc/sof/intel/hda.c 	struct pci_dev *pci = to_pci_dev(sdev->dev);
sdev              696 sound/soc/sof/intel/hda.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_PP_BAR, SOF_HDA_REG_PP_PPCTL,
sdev              700 sound/soc/sof/intel/hda.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, SOF_HDA_INTCTL,
sdev              705 sound/soc/sof/intel/hda.c 		hda_dsp_core_reset_power_down(sdev, chip->cores_mask);
sdev              708 sound/soc/sof/intel/hda.c 	snd_sof_dsp_update_bits(sdev, HDA_DSP_PP_BAR, SOF_HDA_REG_PP_PPCTL,
sdev              711 sound/soc/sof/intel/hda.c 	free_irq(sdev->ipc_irq, sdev);
sdev              713 sound/soc/sof/intel/hda.c 	if (sdev->msi_enabled)
sdev              716 sound/soc/sof/intel/hda.c 	hda_dsp_stream_free(sdev);
sdev              721 sound/soc/sof/intel/hda.c 	iounmap(sdev->bar[HDA_DSP_BAR]);
sdev              727 sound/soc/sof/intel/hda.c 	hda_codec_i915_exit(sdev);
sdev              421 sound/soc/sof/intel/hda.h 	struct snd_sof_dev *sdev;
sdev              440 sound/soc/sof/intel/hda.h int hda_dsp_probe(struct snd_sof_dev *sdev);
sdev              441 sound/soc/sof/intel/hda.h int hda_dsp_remove(struct snd_sof_dev *sdev);
sdev              442 sound/soc/sof/intel/hda.h int hda_dsp_core_reset_enter(struct snd_sof_dev *sdev,
sdev              444 sound/soc/sof/intel/hda.h int hda_dsp_core_reset_leave(struct snd_sof_dev *sdev,
sdev              446 sound/soc/sof/intel/hda.h int hda_dsp_core_stall_reset(struct snd_sof_dev *sdev, unsigned int core_mask);
sdev              447 sound/soc/sof/intel/hda.h int hda_dsp_core_run(struct snd_sof_dev *sdev, unsigned int core_mask);
sdev              448 sound/soc/sof/intel/hda.h int hda_dsp_core_power_up(struct snd_sof_dev *sdev, unsigned int core_mask);
sdev              449 sound/soc/sof/intel/hda.h int hda_dsp_enable_core(struct snd_sof_dev *sdev, unsigned int core_mask);
sdev              450 sound/soc/sof/intel/hda.h int hda_dsp_core_power_down(struct snd_sof_dev *sdev, unsigned int core_mask);
sdev              451 sound/soc/sof/intel/hda.h bool hda_dsp_core_is_enabled(struct snd_sof_dev *sdev,
sdev              453 sound/soc/sof/intel/hda.h int hda_dsp_core_reset_power_down(struct snd_sof_dev *sdev,
sdev              455 sound/soc/sof/intel/hda.h void hda_dsp_ipc_int_enable(struct snd_sof_dev *sdev);
sdev              456 sound/soc/sof/intel/hda.h void hda_dsp_ipc_int_disable(struct snd_sof_dev *sdev);
sdev              458 sound/soc/sof/intel/hda.h int hda_dsp_suspend(struct snd_sof_dev *sdev);
sdev              459 sound/soc/sof/intel/hda.h int hda_dsp_resume(struct snd_sof_dev *sdev);
sdev              460 sound/soc/sof/intel/hda.h int hda_dsp_runtime_suspend(struct snd_sof_dev *sdev);
sdev              461 sound/soc/sof/intel/hda.h int hda_dsp_runtime_resume(struct snd_sof_dev *sdev);
sdev              462 sound/soc/sof/intel/hda.h int hda_dsp_runtime_idle(struct snd_sof_dev *sdev);
sdev              463 sound/soc/sof/intel/hda.h int hda_dsp_set_hw_params_upon_resume(struct snd_sof_dev *sdev);
sdev              464 sound/soc/sof/intel/hda.h void hda_dsp_dump_skl(struct snd_sof_dev *sdev, u32 flags);
sdev              465 sound/soc/sof/intel/hda.h void hda_dsp_dump(struct snd_sof_dev *sdev, u32 flags);
sdev              466 sound/soc/sof/intel/hda.h void hda_ipc_dump(struct snd_sof_dev *sdev);
sdev              467 sound/soc/sof/intel/hda.h void hda_ipc_irq_dump(struct snd_sof_dev *sdev);
sdev              472 sound/soc/sof/intel/hda.h int hda_dsp_pcm_open(struct snd_sof_dev *sdev,
sdev              474 sound/soc/sof/intel/hda.h int hda_dsp_pcm_close(struct snd_sof_dev *sdev,
sdev              476 sound/soc/sof/intel/hda.h int hda_dsp_pcm_hw_params(struct snd_sof_dev *sdev,
sdev              480 sound/soc/sof/intel/hda.h int hda_dsp_stream_hw_free(struct snd_sof_dev *sdev,
sdev              482 sound/soc/sof/intel/hda.h int hda_dsp_pcm_trigger(struct snd_sof_dev *sdev,
sdev              484 sound/soc/sof/intel/hda.h snd_pcm_uframes_t hda_dsp_pcm_pointer(struct snd_sof_dev *sdev,
sdev              491 sound/soc/sof/intel/hda.h int hda_dsp_stream_init(struct snd_sof_dev *sdev);
sdev              492 sound/soc/sof/intel/hda.h void hda_dsp_stream_free(struct snd_sof_dev *sdev);
sdev              493 sound/soc/sof/intel/hda.h int hda_dsp_stream_hw_params(struct snd_sof_dev *sdev,
sdev              497 sound/soc/sof/intel/hda.h int hda_dsp_stream_trigger(struct snd_sof_dev *sdev,
sdev              501 sound/soc/sof/intel/hda.h int hda_dsp_stream_setup_bdl(struct snd_sof_dev *sdev,
sdev              506 sound/soc/sof/intel/hda.h 	hda_dsp_stream_get(struct snd_sof_dev *sdev, int direction);
sdev              507 sound/soc/sof/intel/hda.h int hda_dsp_stream_put(struct snd_sof_dev *sdev, int direction, int stream_tag);
sdev              508 sound/soc/sof/intel/hda.h int hda_dsp_stream_spib_config(struct snd_sof_dev *sdev,
sdev              512 sound/soc/sof/intel/hda.h void hda_ipc_msg_data(struct snd_sof_dev *sdev,
sdev              515 sound/soc/sof/intel/hda.h int hda_ipc_pcm_params(struct snd_sof_dev *sdev,
sdev              522 sound/soc/sof/intel/hda.h int hda_dsp_ipc_send_msg(struct snd_sof_dev *sdev,
sdev              524 sound/soc/sof/intel/hda.h void hda_dsp_ipc_get_reply(struct snd_sof_dev *sdev);
sdev              525 sound/soc/sof/intel/hda.h int hda_dsp_ipc_get_mailbox_offset(struct snd_sof_dev *sdev);
sdev              526 sound/soc/sof/intel/hda.h int hda_dsp_ipc_get_window_offset(struct snd_sof_dev *sdev, u32 id);
sdev              530 sound/soc/sof/intel/hda.h int hda_dsp_ipc_cmd_done(struct snd_sof_dev *sdev, int dir);
sdev              535 sound/soc/sof/intel/hda.h int hda_dsp_cl_boot_firmware(struct snd_sof_dev *sdev);
sdev              536 sound/soc/sof/intel/hda.h int hda_dsp_cl_boot_firmware_skl(struct snd_sof_dev *sdev);
sdev              539 sound/soc/sof/intel/hda.h int hda_dsp_pre_fw_run(struct snd_sof_dev *sdev);
sdev              540 sound/soc/sof/intel/hda.h int hda_dsp_post_fw_run(struct snd_sof_dev *sdev);
sdev              545 sound/soc/sof/intel/hda.h int hda_dsp_ctrl_get_caps(struct snd_sof_dev *sdev);
sdev              546 sound/soc/sof/intel/hda.h void hda_dsp_ctrl_ppcap_enable(struct snd_sof_dev *sdev, bool enable);
sdev              547 sound/soc/sof/intel/hda.h void hda_dsp_ctrl_ppcap_int_enable(struct snd_sof_dev *sdev, bool enable);
sdev              548 sound/soc/sof/intel/hda.h int hda_dsp_ctrl_link_reset(struct snd_sof_dev *sdev, bool reset);
sdev              549 sound/soc/sof/intel/hda.h void hda_dsp_ctrl_misc_clock_gating(struct snd_sof_dev *sdev, bool enable);
sdev              550 sound/soc/sof/intel/hda.h int hda_dsp_ctrl_clock_power_gating(struct snd_sof_dev *sdev, bool enable);
sdev              551 sound/soc/sof/intel/hda.h int hda_dsp_ctrl_init_chip(struct snd_sof_dev *sdev, bool full_reset);
sdev              552 sound/soc/sof/intel/hda.h void hda_dsp_ctrl_stop_chip(struct snd_sof_dev *sdev);
sdev              562 sound/soc/sof/intel/hda.h int hda_codec_probe_bus(struct snd_sof_dev *sdev);
sdev              563 sound/soc/sof/intel/hda.h void hda_codec_jack_wake_enable(struct snd_sof_dev *sdev);
sdev              564 sound/soc/sof/intel/hda.h void hda_codec_jack_check(struct snd_sof_dev *sdev);
sdev              570 sound/soc/sof/intel/hda.h void hda_codec_i915_get(struct snd_sof_dev *sdev);
sdev              571 sound/soc/sof/intel/hda.h void hda_codec_i915_put(struct snd_sof_dev *sdev);
sdev              572 sound/soc/sof/intel/hda.h int hda_codec_i915_init(struct snd_sof_dev *sdev);
sdev              573 sound/soc/sof/intel/hda.h int hda_codec_i915_exit(struct snd_sof_dev *sdev);
sdev              577 sound/soc/sof/intel/hda.h static inline void hda_codec_i915_get(struct snd_sof_dev *sdev)  { }
sdev              578 sound/soc/sof/intel/hda.h static inline void hda_codec_i915_put(struct snd_sof_dev *sdev)  { }
sdev              579 sound/soc/sof/intel/hda.h static inline int hda_codec_i915_init(struct snd_sof_dev *sdev) { return 0; }
sdev              580 sound/soc/sof/intel/hda.h static inline int hda_codec_i915_exit(struct snd_sof_dev *sdev) { return 0; }
sdev              587 sound/soc/sof/intel/hda.h int hda_dsp_trace_init(struct snd_sof_dev *sdev, u32 *stream_tag);
sdev              588 sound/soc/sof/intel/hda.h int hda_dsp_trace_release(struct snd_sof_dev *sdev);
sdev              589 sound/soc/sof/intel/hda.h int hda_dsp_trace_trigger(struct snd_sof_dev *sdev, int cmd);
sdev               28 sound/soc/sof/intel/intel-ipc.c void intel_ipc_msg_data(struct snd_sof_dev *sdev,
sdev               32 sound/soc/sof/intel/intel-ipc.c 	if (!substream || !sdev->stream_box.size) {
sdev               33 sound/soc/sof/intel/intel-ipc.c 		sof_mailbox_read(sdev, sdev->dsp_box.offset, p, sz);
sdev               39 sound/soc/sof/intel/intel-ipc.c 			sof_mailbox_read(sdev, stream->posn_offset, p, sz);
sdev               44 sound/soc/sof/intel/intel-ipc.c int intel_ipc_pcm_params(struct snd_sof_dev *sdev,
sdev               52 sound/soc/sof/intel/intel-ipc.c 	if (posn_offset > sdev->stream_box.size ||
sdev               56 sound/soc/sof/intel/intel-ipc.c 	stream->posn_offset = sdev->stream_box.offset + posn_offset;
sdev               58 sound/soc/sof/intel/intel-ipc.c 	dev_dbg(sdev->dev, "pcm: stream dir %d, posn mailbox offset is %zu",
sdev               65 sound/soc/sof/intel/intel-ipc.c int intel_pcm_open(struct snd_sof_dev *sdev,
sdev               80 sound/soc/sof/intel/intel-ipc.c int intel_pcm_close(struct snd_sof_dev *sdev,
sdev               20 sound/soc/sof/ipc.c static void ipc_trace_message(struct snd_sof_dev *sdev, u32 msg_id);
sdev               21 sound/soc/sof/ipc.c static void ipc_stream_message(struct snd_sof_dev *sdev, u32 msg_cmd);
sdev               29 sound/soc/sof/ipc.c 	struct snd_sof_dev *sdev;
sdev              202 sound/soc/sof/ipc.c 	struct snd_sof_dev *sdev = ipc->sdev;
sdev              208 sound/soc/sof/ipc.c 				 msecs_to_jiffies(sdev->ipc_timeout));
sdev              211 sound/soc/sof/ipc.c 		dev_err(sdev->dev, "error: ipc timed out for 0x%x size %d\n",
sdev              213 sound/soc/sof/ipc.c 		snd_sof_dsp_dbg_dump(ipc->sdev, SOF_DBG_REGS | SOF_DBG_MBOX);
sdev              214 sound/soc/sof/ipc.c 		snd_sof_ipc_dump(ipc->sdev);
sdev              215 sound/soc/sof/ipc.c 		snd_sof_trace_notify_for_error(ipc->sdev);
sdev              223 sound/soc/sof/ipc.c 			dev_err(sdev->dev, "error: ipc error for 0x%x size %zu\n",
sdev              226 sound/soc/sof/ipc.c 			ipc_log_header(sdev->dev, "ipc tx succeeded", hdr->cmd);
sdev              237 sound/soc/sof/ipc.c 	struct snd_sof_dev *sdev = ipc->sdev;
sdev              248 sound/soc/sof/ipc.c 	spin_lock_irq(&sdev->ipc_lock);
sdev              262 sound/soc/sof/ipc.c 	sdev->msg = msg;
sdev              264 sound/soc/sof/ipc.c 	ret = snd_sof_dsp_send_msg(sdev, msg);
sdev              269 sound/soc/sof/ipc.c 	spin_unlock_irq(&sdev->ipc_lock);
sdev              273 sound/soc/sof/ipc.c 		dev_err_ratelimited(sdev->dev,
sdev              279 sound/soc/sof/ipc.c 	ipc_log_header(sdev->dev, "ipc tx", msg->header);
sdev              312 sound/soc/sof/ipc.c int snd_sof_ipc_reply(struct snd_sof_dev *sdev, u32 msg_id)
sdev              314 sound/soc/sof/ipc.c 	struct snd_sof_ipc_msg *msg = &sdev->ipc->msg;
sdev              317 sound/soc/sof/ipc.c 		dev_err(sdev->dev, "error: no reply expected, received 0x%x",
sdev              331 sound/soc/sof/ipc.c void snd_sof_ipc_msgs_rx(struct snd_sof_dev *sdev)
sdev              338 sound/soc/sof/ipc.c 	snd_sof_ipc_msg_data(sdev, NULL, &hdr, sizeof(hdr));
sdev              339 sound/soc/sof/ipc.c 	ipc_log_header(sdev->dev, "ipc rx", hdr.cmd);
sdev              347 sound/soc/sof/ipc.c 		dev_err(sdev->dev, "error: ipc reply unknown\n");
sdev              351 sound/soc/sof/ipc.c 		if (sdev->fw_state == SOF_FW_BOOT_IN_PROGRESS) {
sdev              352 sound/soc/sof/ipc.c 			err = sof_ops(sdev)->fw_ready(sdev, cmd);
sdev              354 sound/soc/sof/ipc.c 				sdev->fw_state = SOF_FW_BOOT_READY_FAILED;
sdev              356 sound/soc/sof/ipc.c 				sdev->fw_state = SOF_FW_BOOT_COMPLETE;
sdev              359 sound/soc/sof/ipc.c 			wake_up(&sdev->boot_wait);
sdev              369 sound/soc/sof/ipc.c 		ipc_stream_message(sdev, hdr.cmd);
sdev              372 sound/soc/sof/ipc.c 		ipc_trace_message(sdev, type);
sdev              375 sound/soc/sof/ipc.c 		dev_err(sdev->dev, "error: unknown DSP message 0x%x\n", cmd);
sdev              379 sound/soc/sof/ipc.c 	ipc_log_header(sdev->dev, "ipc rx done", hdr.cmd);
sdev              387 sound/soc/sof/ipc.c static void ipc_trace_message(struct snd_sof_dev *sdev, u32 msg_id)
sdev              394 sound/soc/sof/ipc.c 		snd_sof_ipc_msg_data(sdev, NULL, &posn, sizeof(posn));
sdev              395 sound/soc/sof/ipc.c 		snd_sof_trace_update_pos(sdev, &posn);
sdev              398 sound/soc/sof/ipc.c 		dev_err(sdev->dev, "error: unhandled trace message %x\n",
sdev              408 sound/soc/sof/ipc.c static void ipc_period_elapsed(struct snd_sof_dev *sdev, u32 msg_id)
sdev              415 sound/soc/sof/ipc.c 	spcm = snd_sof_find_spcm_comp(sdev, msg_id, &direction);
sdev              417 sound/soc/sof/ipc.c 		dev_err(sdev->dev,
sdev              424 sound/soc/sof/ipc.c 	snd_sof_ipc_msg_data(sdev, stream->substream, &posn, sizeof(posn));
sdev              426 sound/soc/sof/ipc.c 	dev_dbg(sdev->dev, "posn : host 0x%llx dai 0x%llx wall 0x%llx\n",
sdev              437 sound/soc/sof/ipc.c static void ipc_xrun(struct snd_sof_dev *sdev, u32 msg_id)
sdev              444 sound/soc/sof/ipc.c 	spcm = snd_sof_find_spcm_comp(sdev, msg_id, &direction);
sdev              446 sound/soc/sof/ipc.c 		dev_err(sdev->dev, "error: XRUN for unknown stream, msg_id %d\n",
sdev              452 sound/soc/sof/ipc.c 	snd_sof_ipc_msg_data(sdev, stream->substream, &posn, sizeof(posn));
sdev              454 sound/soc/sof/ipc.c 	dev_dbg(sdev->dev,  "posn XRUN: host %llx comp %d size %d\n",
sdev              465 sound/soc/sof/ipc.c static void ipc_stream_message(struct snd_sof_dev *sdev, u32 msg_cmd)
sdev              473 sound/soc/sof/ipc.c 		ipc_period_elapsed(sdev, msg_id);
sdev              476 sound/soc/sof/ipc.c 		ipc_xrun(sdev, msg_id);
sdev              479 sound/soc/sof/ipc.c 		dev_err(sdev->dev, "error: unhandled stream message %x\n",
sdev              486 sound/soc/sof/ipc.c int snd_sof_ipc_stream_posn(struct snd_sof_dev *sdev,
sdev              499 sound/soc/sof/ipc.c 	err = sof_ipc_tx_message(sdev->ipc,
sdev              503 sound/soc/sof/ipc.c 		dev_err(sdev->dev, "error: failed to get stream %d position\n",
sdev              544 sound/soc/sof/ipc.c static int sof_set_get_large_ctrl_data(struct snd_sof_dev *sdev,
sdev              580 sound/soc/sof/ipc.c 	mutex_lock(&sdev->ipc->tx_mutex);
sdev              594 sound/soc/sof/ipc.c 		err = sof_ipc_tx_message_unlocked(sdev->ipc,
sdev              609 sound/soc/sof/ipc.c 	mutex_unlock(&sdev->ipc->tx_mutex);
sdev              626 sound/soc/sof/ipc.c 	struct snd_sof_dev *sdev = ipc->sdev;
sdev              627 sound/soc/sof/ipc.c 	struct sof_ipc_fw_ready *ready = &sdev->fw_ready;
sdev              639 sound/soc/sof/ipc.c 			snd_sof_dsp_block_write(sdev, sdev->mmio_bar,
sdev              644 sound/soc/sof/ipc.c 			snd_sof_dsp_block_read(sdev, sdev->mmio_bar,
sdev              689 sound/soc/sof/ipc.c 		err = sof_ipc_tx_message(sdev->ipc, cdata->rhdr.hdr.cmd, cdata,
sdev              694 sound/soc/sof/ipc.c 			dev_err(sdev->dev, "error: set/get ctrl ipc comp %d\n",
sdev              701 sound/soc/sof/ipc.c 	dev_dbg(sdev->dev, "large ipc size %u, control size %u\n",
sdev              706 sound/soc/sof/ipc.c 		dev_err(sdev->dev, "error: incompatible FW ABI version\n");
sdev              710 sound/soc/sof/ipc.c 	err = sof_set_get_large_ctrl_data(sdev, cdata, &sparams, send);
sdev              713 sound/soc/sof/ipc.c 		dev_err(sdev->dev, "error: set/get large ctrl ipc comp %d\n",
sdev              724 sound/soc/sof/ipc.c int snd_sof_dsp_mailbox_init(struct snd_sof_dev *sdev, u32 dspbox,
sdev              728 sound/soc/sof/ipc.c 	sdev->dsp_box.offset = dspbox;
sdev              729 sound/soc/sof/ipc.c 	sdev->dsp_box.size = dspbox_size;
sdev              730 sound/soc/sof/ipc.c 	sdev->host_box.offset = hostbox;
sdev              731 sound/soc/sof/ipc.c 	sdev->host_box.size = hostbox_size;
sdev              736 sound/soc/sof/ipc.c int snd_sof_ipc_valid(struct snd_sof_dev *sdev)
sdev              738 sound/soc/sof/ipc.c 	struct sof_ipc_fw_ready *ready = &sdev->fw_ready;
sdev              741 sound/soc/sof/ipc.c 	dev_info(sdev->dev,
sdev              744 sound/soc/sof/ipc.c 	dev_info(sdev->dev,
sdev              752 sound/soc/sof/ipc.c 		dev_err(sdev->dev, "error: incompatible FW ABI version\n");
sdev              758 sound/soc/sof/ipc.c 			dev_warn(sdev->dev, "warn: FW ABI is more recent than kernel\n");
sdev              760 sound/soc/sof/ipc.c 			dev_err(sdev->dev, "error: FW ABI is more recent than kernel\n");
sdev              766 sound/soc/sof/ipc.c 		dev_info(sdev->dev,
sdev              781 sound/soc/sof/ipc.c 	memcpy(&sdev->fw_version, v, sizeof(*v));
sdev              787 sound/soc/sof/ipc.c struct snd_sof_ipc *snd_sof_ipc_init(struct snd_sof_dev *sdev)
sdev              793 sound/soc/sof/ipc.c 	if (!sof_ops(sdev)->fw_ready) {
sdev              794 sound/soc/sof/ipc.c 		dev_err(sdev->dev, "error: ipc mandatory ops not defined\n");
sdev              798 sound/soc/sof/ipc.c 	ipc = devm_kzalloc(sdev->dev, sizeof(*ipc), GFP_KERNEL);
sdev              803 sound/soc/sof/ipc.c 	ipc->sdev = sdev;
sdev              810 sound/soc/sof/ipc.c 	msg->msg_data = devm_kzalloc(sdev->dev, SOF_IPC_MSG_MAX_SIZE,
sdev              815 sound/soc/sof/ipc.c 	msg->reply_data = devm_kzalloc(sdev->dev, SOF_IPC_MSG_MAX_SIZE,
sdev              826 sound/soc/sof/ipc.c void snd_sof_ipc_free(struct snd_sof_dev *sdev)
sdev              828 sound/soc/sof/ipc.c 	struct snd_sof_ipc *ipc = sdev->ipc;
sdev               17 sound/soc/sof/loader.c static int get_ext_windows(struct snd_sof_dev *sdev,
sdev               27 sound/soc/sof/loader.c 	sdev->info_window = kmemdup(w, struct_size(w, window, w->num_windows),
sdev               29 sound/soc/sof/loader.c 	if (!sdev->info_window)
sdev               36 sound/soc/sof/loader.c int snd_sof_fw_parse_ext_data(struct snd_sof_dev *sdev, u32 bar, u32 offset)
sdev               47 sound/soc/sof/loader.c 	snd_sof_dsp_block_read(sdev, bar, offset, ext_data,
sdev               54 sound/soc/sof/loader.c 		snd_sof_dsp_block_read(sdev, bar, offset,
sdev               58 sound/soc/sof/loader.c 		dev_dbg(sdev->dev, "found ext header type %d size 0x%x\n",
sdev               66 sound/soc/sof/loader.c 			ret = get_ext_windows(sdev, ext_hdr);
sdev               69 sound/soc/sof/loader.c 			dev_warn(sdev->dev, "warning: unknown ext header type %d size 0x%x\n",
sdev               75 sound/soc/sof/loader.c 			dev_err(sdev->dev, "error: failed to parse ext data type %d\n",
sdev               82 sound/soc/sof/loader.c 		snd_sof_dsp_block_read(sdev, bar, offset, ext_data,
sdev               95 sound/soc/sof/loader.c static void sof_get_windows(struct snd_sof_dev *sdev)
sdev              108 sound/soc/sof/loader.c 	if (!sdev->info_window) {
sdev              109 sound/soc/sof/loader.c 		dev_err(sdev->dev, "error: have no window info\n");
sdev              113 sound/soc/sof/loader.c 	bar = snd_sof_dsp_get_bar_index(sdev, SOF_FW_BLK_TYPE_SRAM);
sdev              115 sound/soc/sof/loader.c 		dev_err(sdev->dev, "error: have no bar mapping\n");
sdev              119 sound/soc/sof/loader.c 	for (i = 0; i < sdev->info_window->num_windows; i++) {
sdev              120 sound/soc/sof/loader.c 		elem = &sdev->info_window->window[i];
sdev              122 sound/soc/sof/loader.c 		window_offset = snd_sof_dsp_get_window_offset(sdev, elem->id);
sdev              124 sound/soc/sof/loader.c 			dev_warn(sdev->dev, "warn: no offset for window %d\n",
sdev              133 sound/soc/sof/loader.c 			snd_sof_debugfs_io_item(sdev,
sdev              134 sound/soc/sof/loader.c 						sdev->bar[bar] +
sdev              142 sound/soc/sof/loader.c 			snd_sof_debugfs_io_item(sdev,
sdev              143 sound/soc/sof/loader.c 						sdev->bar[bar] +
sdev              149 sound/soc/sof/loader.c 			snd_sof_debugfs_io_item(sdev,
sdev              150 sound/soc/sof/loader.c 						sdev->bar[bar] +
sdev              157 sound/soc/sof/loader.c 			snd_sof_debugfs_io_item(sdev,
sdev              158 sound/soc/sof/loader.c 						sdev->bar[bar] +
sdev              167 sound/soc/sof/loader.c 			snd_sof_debugfs_io_item(sdev,
sdev              168 sound/soc/sof/loader.c 						sdev->bar[bar] +
sdev              174 sound/soc/sof/loader.c 			snd_sof_debugfs_io_item(sdev,
sdev              175 sound/soc/sof/loader.c 						sdev->bar[bar] +
sdev              182 sound/soc/sof/loader.c 			sdev->dsp_oops_offset = window_offset + elem->offset;
sdev              183 sound/soc/sof/loader.c 			snd_sof_debugfs_io_item(sdev,
sdev              184 sound/soc/sof/loader.c 						sdev->bar[bar] +
sdev              191 sound/soc/sof/loader.c 			dev_err(sdev->dev, "error: get illegal window info\n");
sdev              197 sound/soc/sof/loader.c 		dev_err(sdev->dev, "error: get illegal mailbox window\n");
sdev              201 sound/soc/sof/loader.c 	snd_sof_dsp_mailbox_init(sdev, inbox_offset, inbox_size,
sdev              203 sound/soc/sof/loader.c 	sdev->stream_box.offset = stream_offset;
sdev              204 sound/soc/sof/loader.c 	sdev->stream_box.size = stream_size;
sdev              206 sound/soc/sof/loader.c 	dev_dbg(sdev->dev, " mailbox upstream 0x%x - size 0x%x\n",
sdev              208 sound/soc/sof/loader.c 	dev_dbg(sdev->dev, " mailbox downstream 0x%x - size 0x%x\n",
sdev              210 sound/soc/sof/loader.c 	dev_dbg(sdev->dev, " stream region 0x%x - size 0x%x\n",
sdev              215 sound/soc/sof/loader.c int sof_fw_ready(struct snd_sof_dev *sdev, u32 msg_id)
sdev              217 sound/soc/sof/loader.c 	struct sof_ipc_fw_ready *fw_ready = &sdev->fw_ready;
sdev              223 sound/soc/sof/loader.c 	offset = snd_sof_dsp_get_mailbox_offset(sdev);
sdev              225 sound/soc/sof/loader.c 		dev_err(sdev->dev, "error: have no mailbox offset\n");
sdev              229 sound/soc/sof/loader.c 	bar = snd_sof_dsp_get_bar_index(sdev, SOF_FW_BLK_TYPE_SRAM);
sdev              231 sound/soc/sof/loader.c 		dev_err(sdev->dev, "error: have no bar mapping\n");
sdev              235 sound/soc/sof/loader.c 	dev_dbg(sdev->dev, "ipc: DSP is ready 0x%8.8x offset 0x%x\n",
sdev              239 sound/soc/sof/loader.c 	if (!sdev->first_boot)
sdev              243 sound/soc/sof/loader.c 	sof_block_read(sdev, bar, offset, fw_ready, sizeof(*fw_ready));
sdev              246 sound/soc/sof/loader.c 	ret = snd_sof_ipc_valid(sdev);
sdev              251 sound/soc/sof/loader.c 	snd_sof_fw_parse_ext_data(sdev, bar, offset +
sdev              254 sound/soc/sof/loader.c 	sof_get_windows(sdev);
sdev              261 sound/soc/sof/loader.c int snd_sof_parse_module_memcpy(struct snd_sof_dev *sdev,
sdev              269 sound/soc/sof/loader.c 	dev_dbg(sdev->dev, "new module size 0x%x blocks 0x%x type 0x%x\n",
sdev              279 sound/soc/sof/loader.c 			dev_err(sdev->dev, "error: not enough data remaining\n");
sdev              287 sound/soc/sof/loader.c 			dev_warn(sdev->dev,
sdev              289 sound/soc/sof/loader.c 			dev_warn(sdev->dev, " type 0x%x offset 0x%x\n",
sdev              302 sound/soc/sof/loader.c 			bar = snd_sof_dsp_get_bar_index(sdev, block->type);
sdev              304 sound/soc/sof/loader.c 				dev_err(sdev->dev,
sdev              311 sound/soc/sof/loader.c 			dev_err(sdev->dev, "error: bad type 0x%x for block 0x%x\n",
sdev              316 sound/soc/sof/loader.c 		dev_dbg(sdev->dev,
sdev              322 sound/soc/sof/loader.c 			dev_err(sdev->dev, "error: invalid block size 0x%x\n",
sdev              326 sound/soc/sof/loader.c 		snd_sof_dsp_block_write(sdev, bar, offset,
sdev              330 sound/soc/sof/loader.c 			dev_err(sdev->dev, "error: not enough data remaining\n");
sdev              345 sound/soc/sof/loader.c static int check_header(struct snd_sof_dev *sdev, const struct firmware *fw)
sdev              354 sound/soc/sof/loader.c 		dev_err(sdev->dev, "error: invalid firmware signature\n");
sdev              360 sound/soc/sof/loader.c 		dev_err(sdev->dev, "error: invalid filesize mismatch got 0x%zx expected 0x%zx\n",
sdev              365 sound/soc/sof/loader.c 	dev_dbg(sdev->dev, "header size=0x%x modules=0x%x abi=0x%x size=%zu\n",
sdev              372 sound/soc/sof/loader.c static int load_modules(struct snd_sof_dev *sdev, const struct firmware *fw)
sdev              382 sound/soc/sof/loader.c 	load_module = sof_ops(sdev)->load_module;
sdev              391 sound/soc/sof/loader.c 		dev_err(sdev->dev, "error: fw size smaller than header size\n");
sdev              398 sound/soc/sof/loader.c 			dev_err(sdev->dev, "error: not enough data remaining\n");
sdev              406 sound/soc/sof/loader.c 		ret = load_module(sdev, module);
sdev              408 sound/soc/sof/loader.c 			dev_err(sdev->dev, "error: invalid module %d\n", count);
sdev              413 sound/soc/sof/loader.c 			dev_err(sdev->dev, "error: not enough data remaining\n");
sdev              426 sound/soc/sof/loader.c int snd_sof_load_firmware_raw(struct snd_sof_dev *sdev)
sdev              428 sound/soc/sof/loader.c 	struct snd_sof_pdata *plat_data = sdev->pdata;
sdev              433 sound/soc/sof/loader.c 	sdev->code_loading = 1;
sdev              445 sound/soc/sof/loader.c 	ret = request_firmware(&plat_data->fw, fw_filename, sdev->dev);
sdev              448 sound/soc/sof/loader.c 		dev_err(sdev->dev, "error: request firmware %s failed err: %d\n",
sdev              458 sound/soc/sof/loader.c int snd_sof_load_firmware_memcpy(struct snd_sof_dev *sdev)
sdev              460 sound/soc/sof/loader.c 	struct snd_sof_pdata *plat_data = sdev->pdata;
sdev              463 sound/soc/sof/loader.c 	ret = snd_sof_load_firmware_raw(sdev);
sdev              468 sound/soc/sof/loader.c 	ret = check_header(sdev, plat_data->fw);
sdev              470 sound/soc/sof/loader.c 		dev_err(sdev->dev, "error: invalid FW header\n");
sdev              475 sound/soc/sof/loader.c 	ret = snd_sof_dsp_reset(sdev);
sdev              477 sound/soc/sof/loader.c 		dev_err(sdev->dev, "error: failed to reset DSP\n");
sdev              482 sound/soc/sof/loader.c 	ret = load_modules(sdev, plat_data->fw);
sdev              484 sound/soc/sof/loader.c 		dev_err(sdev->dev, "error: invalid FW modules\n");
sdev              498 sound/soc/sof/loader.c int snd_sof_load_firmware(struct snd_sof_dev *sdev)
sdev              500 sound/soc/sof/loader.c 	dev_dbg(sdev->dev, "loading firmware\n");
sdev              502 sound/soc/sof/loader.c 	if (sof_ops(sdev)->load_firmware)
sdev              503 sound/soc/sof/loader.c 		return sof_ops(sdev)->load_firmware(sdev);
sdev              508 sound/soc/sof/loader.c int snd_sof_run_firmware(struct snd_sof_dev *sdev)
sdev              513 sound/soc/sof/loader.c 	init_waitqueue_head(&sdev->boot_wait);
sdev              516 sound/soc/sof/loader.c 	if (sdev->first_boot) {
sdev              517 sound/soc/sof/loader.c 		ret = snd_sof_debugfs_buf_item(sdev, &sdev->fw_version,
sdev              518 sound/soc/sof/loader.c 					       sizeof(sdev->fw_version),
sdev              522 sound/soc/sof/loader.c 			dev_err(sdev->dev, "error: snd_sof_debugfs_buf_item failed\n");
sdev              528 sound/soc/sof/loader.c 	ret = snd_sof_dsp_pre_fw_run(sdev);
sdev              530 sound/soc/sof/loader.c 		dev_err(sdev->dev, "error: failed pre fw run op\n");
sdev              534 sound/soc/sof/loader.c 	dev_dbg(sdev->dev, "booting DSP firmware\n");
sdev              537 sound/soc/sof/loader.c 	ret = snd_sof_dsp_run(sdev);
sdev              539 sound/soc/sof/loader.c 		dev_err(sdev->dev, "error: failed to reset DSP\n");
sdev              551 sound/soc/sof/loader.c 	ret = wait_event_timeout(sdev->boot_wait,
sdev              552 sound/soc/sof/loader.c 				 sdev->fw_state > SOF_FW_BOOT_IN_PROGRESS,
sdev              553 sound/soc/sof/loader.c 				 msecs_to_jiffies(sdev->boot_timeout));
sdev              555 sound/soc/sof/loader.c 		dev_err(sdev->dev, "error: firmware boot failure\n");
sdev              556 sound/soc/sof/loader.c 		snd_sof_dsp_dbg_dump(sdev, SOF_DBG_REGS | SOF_DBG_MBOX |
sdev              558 sound/soc/sof/loader.c 		sdev->fw_state = SOF_FW_BOOT_FAILED;
sdev              562 sound/soc/sof/loader.c 	if (sdev->fw_state == SOF_FW_BOOT_COMPLETE)
sdev              563 sound/soc/sof/loader.c 		dev_info(sdev->dev, "firmware boot complete\n");
sdev              568 sound/soc/sof/loader.c 	ret = snd_sof_dsp_post_fw_run(sdev);
sdev              570 sound/soc/sof/loader.c 		dev_err(sdev->dev, "error: failed post fw run op\n");
sdev              575 sound/soc/sof/loader.c 	sdev->enabled_cores_mask = init_core_mask;
sdev              581 sound/soc/sof/loader.c void snd_sof_fw_unload(struct snd_sof_dev *sdev)
sdev               15 sound/soc/sof/ops.c bool snd_sof_pci_update_bits_unlocked(struct snd_sof_dev *sdev, u32 offset,
sdev               18 sound/soc/sof/ops.c 	struct pci_dev *pci = to_pci_dev(sdev->dev);
sdev               24 sound/soc/sof/ops.c 	dev_dbg(sdev->dev, "Debug PCIR: %8.8x at  %8.8x\n", old & mask, offset);
sdev               32 sound/soc/sof/ops.c 	dev_dbg(sdev->dev, "Debug PCIW: %8.8x at  %8.8x\n", value,
sdev               38 sound/soc/sof/ops.c bool snd_sof_pci_update_bits(struct snd_sof_dev *sdev, u32 offset,
sdev               44 sound/soc/sof/ops.c 	spin_lock_irqsave(&sdev->hw_lock, flags);
sdev               45 sound/soc/sof/ops.c 	change = snd_sof_pci_update_bits_unlocked(sdev, offset, mask, value);
sdev               46 sound/soc/sof/ops.c 	spin_unlock_irqrestore(&sdev->hw_lock, flags);
sdev               51 sound/soc/sof/ops.c bool snd_sof_dsp_update_bits_unlocked(struct snd_sof_dev *sdev, u32 bar,
sdev               57 sound/soc/sof/ops.c 	ret = snd_sof_dsp_read(sdev, bar, offset);
sdev               65 sound/soc/sof/ops.c 	snd_sof_dsp_write(sdev, bar, offset, new);
sdev               71 sound/soc/sof/ops.c bool snd_sof_dsp_update_bits64_unlocked(struct snd_sof_dev *sdev, u32 bar,
sdev               76 sound/soc/sof/ops.c 	old = snd_sof_dsp_read64(sdev, bar, offset);
sdev               83 sound/soc/sof/ops.c 	snd_sof_dsp_write64(sdev, bar, offset, new);
sdev               90 sound/soc/sof/ops.c bool snd_sof_dsp_update_bits(struct snd_sof_dev *sdev, u32 bar, u32 offset,
sdev               96 sound/soc/sof/ops.c 	spin_lock_irqsave(&sdev->hw_lock, flags);
sdev               97 sound/soc/sof/ops.c 	change = snd_sof_dsp_update_bits_unlocked(sdev, bar, offset, mask,
sdev               99 sound/soc/sof/ops.c 	spin_unlock_irqrestore(&sdev->hw_lock, flags);
sdev              104 sound/soc/sof/ops.c bool snd_sof_dsp_update_bits64(struct snd_sof_dev *sdev, u32 bar, u32 offset,
sdev              110 sound/soc/sof/ops.c 	spin_lock_irqsave(&sdev->hw_lock, flags);
sdev              111 sound/soc/sof/ops.c 	change = snd_sof_dsp_update_bits64_unlocked(sdev, bar, offset, mask,
sdev              113 sound/soc/sof/ops.c 	spin_unlock_irqrestore(&sdev->hw_lock, flags);
sdev              119 sound/soc/sof/ops.c void snd_sof_dsp_update_bits_forced_unlocked(struct snd_sof_dev *sdev, u32 bar,
sdev              125 sound/soc/sof/ops.c 	ret = snd_sof_dsp_read(sdev, bar, offset);
sdev              130 sound/soc/sof/ops.c 	snd_sof_dsp_write(sdev, bar, offset, new);
sdev              134 sound/soc/sof/ops.c void snd_sof_dsp_update_bits_forced(struct snd_sof_dev *sdev, u32 bar,
sdev              139 sound/soc/sof/ops.c 	spin_lock_irqsave(&sdev->hw_lock, flags);
sdev              140 sound/soc/sof/ops.c 	snd_sof_dsp_update_bits_forced_unlocked(sdev, bar, offset, mask, value);
sdev              141 sound/soc/sof/ops.c 	spin_unlock_irqrestore(&sdev->hw_lock, flags);
sdev              145 sound/soc/sof/ops.c void snd_sof_dsp_panic(struct snd_sof_dev *sdev, u32 offset)
sdev              147 sound/soc/sof/ops.c 	dev_err(sdev->dev, "error : DSP panic!\n");
sdev              154 sound/soc/sof/ops.c 	if (!sdev->dsp_oops_offset)
sdev              155 sound/soc/sof/ops.c 		sdev->dsp_oops_offset = offset;
sdev              157 sound/soc/sof/ops.c 		dev_dbg(sdev->dev, "panic: dsp_oops_offset %zu offset %d\n",
sdev              158 sound/soc/sof/ops.c 			sdev->dsp_oops_offset, offset);
sdev              160 sound/soc/sof/ops.c 	snd_sof_dsp_dbg_dump(sdev, SOF_DBG_REGS | SOF_DBG_MBOX);
sdev              161 sound/soc/sof/ops.c 	snd_sof_trace_notify_for_error(sdev);
sdev               21 sound/soc/sof/ops.h #define sof_ops(sdev) \
sdev               22 sound/soc/sof/ops.h 	((sdev)->pdata->desc->ops)
sdev               27 sound/soc/sof/ops.h static inline int snd_sof_probe(struct snd_sof_dev *sdev)
sdev               29 sound/soc/sof/ops.h 	return sof_ops(sdev)->probe(sdev);
sdev               32 sound/soc/sof/ops.h static inline int snd_sof_remove(struct snd_sof_dev *sdev)
sdev               34 sound/soc/sof/ops.h 	if (sof_ops(sdev)->remove)
sdev               35 sound/soc/sof/ops.h 		return sof_ops(sdev)->remove(sdev);
sdev               46 sound/soc/sof/ops.h static inline int snd_sof_dsp_run(struct snd_sof_dev *sdev)
sdev               48 sound/soc/sof/ops.h 	return sof_ops(sdev)->run(sdev);
sdev               51 sound/soc/sof/ops.h static inline int snd_sof_dsp_stall(struct snd_sof_dev *sdev)
sdev               53 sound/soc/sof/ops.h 	if (sof_ops(sdev)->stall)
sdev               54 sound/soc/sof/ops.h 		return sof_ops(sdev)->stall(sdev);
sdev               59 sound/soc/sof/ops.h static inline int snd_sof_dsp_reset(struct snd_sof_dev *sdev)
sdev               61 sound/soc/sof/ops.h 	if (sof_ops(sdev)->reset)
sdev               62 sound/soc/sof/ops.h 		return sof_ops(sdev)->reset(sdev);
sdev               68 sound/soc/sof/ops.h static inline int snd_sof_dsp_core_power_up(struct snd_sof_dev *sdev,
sdev               71 sound/soc/sof/ops.h 	if (sof_ops(sdev)->core_power_up)
sdev               72 sound/soc/sof/ops.h 		return sof_ops(sdev)->core_power_up(sdev, core_mask);
sdev               77 sound/soc/sof/ops.h static inline int snd_sof_dsp_core_power_down(struct snd_sof_dev *sdev,
sdev               80 sound/soc/sof/ops.h 	if (sof_ops(sdev)->core_power_down)
sdev               81 sound/soc/sof/ops.h 		return sof_ops(sdev)->core_power_down(sdev, core_mask);
sdev               87 sound/soc/sof/ops.h static inline int snd_sof_dsp_pre_fw_run(struct snd_sof_dev *sdev)
sdev               89 sound/soc/sof/ops.h 	if (sof_ops(sdev)->pre_fw_run)
sdev               90 sound/soc/sof/ops.h 		return sof_ops(sdev)->pre_fw_run(sdev);
sdev               95 sound/soc/sof/ops.h static inline int snd_sof_dsp_post_fw_run(struct snd_sof_dev *sdev)
sdev               97 sound/soc/sof/ops.h 	if (sof_ops(sdev)->post_fw_run)
sdev               98 sound/soc/sof/ops.h 		return sof_ops(sdev)->post_fw_run(sdev);
sdev              114 sound/soc/sof/ops.h static inline int snd_sof_dsp_get_bar_index(struct snd_sof_dev *sdev, u32 type)
sdev              116 sound/soc/sof/ops.h 	if (sof_ops(sdev)->get_bar_index)
sdev              117 sound/soc/sof/ops.h 		return sof_ops(sdev)->get_bar_index(sdev, type);
sdev              119 sound/soc/sof/ops.h 	return sdev->mmio_bar;
sdev              122 sound/soc/sof/ops.h static inline int snd_sof_dsp_get_mailbox_offset(struct snd_sof_dev *sdev)
sdev              124 sound/soc/sof/ops.h 	if (sof_ops(sdev)->get_mailbox_offset)
sdev              125 sound/soc/sof/ops.h 		return sof_ops(sdev)->get_mailbox_offset(sdev);
sdev              127 sound/soc/sof/ops.h 	dev_err(sdev->dev, "error: %s not defined\n", __func__);
sdev              131 sound/soc/sof/ops.h static inline int snd_sof_dsp_get_window_offset(struct snd_sof_dev *sdev,
sdev              134 sound/soc/sof/ops.h 	if (sof_ops(sdev)->get_window_offset)
sdev              135 sound/soc/sof/ops.h 		return sof_ops(sdev)->get_window_offset(sdev, id);
sdev              137 sound/soc/sof/ops.h 	dev_err(sdev->dev, "error: %s not defined\n", __func__);
sdev              141 sound/soc/sof/ops.h static inline int snd_sof_dsp_resume(struct snd_sof_dev *sdev)
sdev              143 sound/soc/sof/ops.h 	if (sof_ops(sdev)->resume)
sdev              144 sound/soc/sof/ops.h 		return sof_ops(sdev)->resume(sdev);
sdev              149 sound/soc/sof/ops.h static inline int snd_sof_dsp_suspend(struct snd_sof_dev *sdev)
sdev              151 sound/soc/sof/ops.h 	if (sof_ops(sdev)->suspend)
sdev              152 sound/soc/sof/ops.h 		return sof_ops(sdev)->suspend(sdev);
sdev              157 sound/soc/sof/ops.h static inline int snd_sof_dsp_runtime_resume(struct snd_sof_dev *sdev)
sdev              159 sound/soc/sof/ops.h 	if (sof_ops(sdev)->runtime_resume)
sdev              160 sound/soc/sof/ops.h 		return sof_ops(sdev)->runtime_resume(sdev);
sdev              165 sound/soc/sof/ops.h static inline int snd_sof_dsp_runtime_suspend(struct snd_sof_dev *sdev)
sdev              167 sound/soc/sof/ops.h 	if (sof_ops(sdev)->runtime_suspend)
sdev              168 sound/soc/sof/ops.h 		return sof_ops(sdev)->runtime_suspend(sdev);
sdev              173 sound/soc/sof/ops.h static inline int snd_sof_dsp_runtime_idle(struct snd_sof_dev *sdev)
sdev              175 sound/soc/sof/ops.h 	if (sof_ops(sdev)->runtime_idle)
sdev              176 sound/soc/sof/ops.h 		return sof_ops(sdev)->runtime_idle(sdev);
sdev              181 sound/soc/sof/ops.h static inline int snd_sof_dsp_hw_params_upon_resume(struct snd_sof_dev *sdev)
sdev              183 sound/soc/sof/ops.h 	if (sof_ops(sdev)->set_hw_params_upon_resume)
sdev              184 sound/soc/sof/ops.h 		return sof_ops(sdev)->set_hw_params_upon_resume(sdev);
sdev              188 sound/soc/sof/ops.h static inline int snd_sof_dsp_set_clk(struct snd_sof_dev *sdev, u32 freq)
sdev              190 sound/soc/sof/ops.h 	if (sof_ops(sdev)->set_clk)
sdev              191 sound/soc/sof/ops.h 		return sof_ops(sdev)->set_clk(sdev, freq);
sdev              197 sound/soc/sof/ops.h static inline void snd_sof_dsp_dbg_dump(struct snd_sof_dev *sdev, u32 flags)
sdev              199 sound/soc/sof/ops.h 	if (sof_ops(sdev)->dbg_dump)
sdev              200 sound/soc/sof/ops.h 		return sof_ops(sdev)->dbg_dump(sdev, flags);
sdev              203 sound/soc/sof/ops.h static inline void snd_sof_ipc_dump(struct snd_sof_dev *sdev)
sdev              205 sound/soc/sof/ops.h 	if (sof_ops(sdev)->ipc_dump)
sdev              206 sound/soc/sof/ops.h 		return sof_ops(sdev)->ipc_dump(sdev);
sdev              210 sound/soc/sof/ops.h static inline void snd_sof_dsp_write(struct snd_sof_dev *sdev, u32 bar,
sdev              213 sound/soc/sof/ops.h 	if (sof_ops(sdev)->write) {
sdev              214 sound/soc/sof/ops.h 		sof_ops(sdev)->write(sdev, sdev->bar[bar] + offset, value);
sdev              218 sound/soc/sof/ops.h 	dev_err_ratelimited(sdev->dev, "error: %s not defined\n", __func__);
sdev              221 sound/soc/sof/ops.h static inline void snd_sof_dsp_write64(struct snd_sof_dev *sdev, u32 bar,
sdev              224 sound/soc/sof/ops.h 	if (sof_ops(sdev)->write64) {
sdev              225 sound/soc/sof/ops.h 		sof_ops(sdev)->write64(sdev, sdev->bar[bar] + offset, value);
sdev              229 sound/soc/sof/ops.h 	dev_err_ratelimited(sdev->dev, "error: %s not defined\n", __func__);
sdev              232 sound/soc/sof/ops.h static inline u32 snd_sof_dsp_read(struct snd_sof_dev *sdev, u32 bar,
sdev              235 sound/soc/sof/ops.h 	if (sof_ops(sdev)->read)
sdev              236 sound/soc/sof/ops.h 		return sof_ops(sdev)->read(sdev, sdev->bar[bar] + offset);
sdev              238 sound/soc/sof/ops.h 	dev_err(sdev->dev, "error: %s not defined\n", __func__);
sdev              242 sound/soc/sof/ops.h static inline u64 snd_sof_dsp_read64(struct snd_sof_dev *sdev, u32 bar,
sdev              245 sound/soc/sof/ops.h 	if (sof_ops(sdev)->read64)
sdev              246 sound/soc/sof/ops.h 		return sof_ops(sdev)->read64(sdev, sdev->bar[bar] + offset);
sdev              248 sound/soc/sof/ops.h 	dev_err(sdev->dev, "error: %s not defined\n", __func__);
sdev              253 sound/soc/sof/ops.h static inline void snd_sof_dsp_block_read(struct snd_sof_dev *sdev, u32 bar,
sdev              256 sound/soc/sof/ops.h 	sof_ops(sdev)->block_read(sdev, bar, offset, dest, bytes);
sdev              259 sound/soc/sof/ops.h static inline void snd_sof_dsp_block_write(struct snd_sof_dev *sdev, u32 bar,
sdev              262 sound/soc/sof/ops.h 	sof_ops(sdev)->block_write(sdev, bar, offset, src, bytes);
sdev              266 sound/soc/sof/ops.h static inline int snd_sof_dsp_send_msg(struct snd_sof_dev *sdev,
sdev              269 sound/soc/sof/ops.h 	return sof_ops(sdev)->send_msg(sdev, msg);
sdev              273 sound/soc/sof/ops.h static inline int snd_sof_dma_trace_init(struct snd_sof_dev *sdev,
sdev              276 sound/soc/sof/ops.h 	if (sof_ops(sdev)->trace_init)
sdev              277 sound/soc/sof/ops.h 		return sof_ops(sdev)->trace_init(sdev, stream_tag);
sdev              282 sound/soc/sof/ops.h static inline int snd_sof_dma_trace_release(struct snd_sof_dev *sdev)
sdev              284 sound/soc/sof/ops.h 	if (sof_ops(sdev)->trace_release)
sdev              285 sound/soc/sof/ops.h 		return sof_ops(sdev)->trace_release(sdev);
sdev              290 sound/soc/sof/ops.h static inline int snd_sof_dma_trace_trigger(struct snd_sof_dev *sdev, int cmd)
sdev              292 sound/soc/sof/ops.h 	if (sof_ops(sdev)->trace_trigger)
sdev              293 sound/soc/sof/ops.h 		return sof_ops(sdev)->trace_trigger(sdev, cmd);
sdev              300 sound/soc/sof/ops.h snd_sof_pcm_platform_open(struct snd_sof_dev *sdev,
sdev              303 sound/soc/sof/ops.h 	if (sof_ops(sdev) && sof_ops(sdev)->pcm_open)
sdev              304 sound/soc/sof/ops.h 		return sof_ops(sdev)->pcm_open(sdev, substream);
sdev              311 sound/soc/sof/ops.h snd_sof_pcm_platform_close(struct snd_sof_dev *sdev,
sdev              314 sound/soc/sof/ops.h 	if (sof_ops(sdev) && sof_ops(sdev)->pcm_close)
sdev              315 sound/soc/sof/ops.h 		return sof_ops(sdev)->pcm_close(sdev, substream);
sdev              322 sound/soc/sof/ops.h snd_sof_pcm_platform_hw_params(struct snd_sof_dev *sdev,
sdev              327 sound/soc/sof/ops.h 	if (sof_ops(sdev) && sof_ops(sdev)->pcm_hw_params)
sdev              328 sound/soc/sof/ops.h 		return sof_ops(sdev)->pcm_hw_params(sdev, substream,
sdev              336 sound/soc/sof/ops.h snd_sof_pcm_platform_hw_free(struct snd_sof_dev *sdev,
sdev              339 sound/soc/sof/ops.h 	if (sof_ops(sdev) && sof_ops(sdev)->pcm_hw_free)
sdev              340 sound/soc/sof/ops.h 		return sof_ops(sdev)->pcm_hw_free(sdev, substream);
sdev              347 sound/soc/sof/ops.h snd_sof_pcm_platform_trigger(struct snd_sof_dev *sdev,
sdev              350 sound/soc/sof/ops.h 	if (sof_ops(sdev) && sof_ops(sdev)->pcm_trigger)
sdev              351 sound/soc/sof/ops.h 		return sof_ops(sdev)->pcm_trigger(sdev, substream, cmd);
sdev              357 sound/soc/sof/ops.h static inline void snd_sof_ipc_msg_data(struct snd_sof_dev *sdev,
sdev              361 sound/soc/sof/ops.h 	sof_ops(sdev)->ipc_msg_data(sdev, substream, p, sz);
sdev              366 sound/soc/sof/ops.h snd_sof_ipc_pcm_params(struct snd_sof_dev *sdev,
sdev              370 sound/soc/sof/ops.h 	return sof_ops(sdev)->ipc_pcm_params(sdev, substream, reply);
sdev              375 sound/soc/sof/ops.h snd_sof_pcm_platform_pointer(struct snd_sof_dev *sdev,
sdev              378 sound/soc/sof/ops.h 	if (sof_ops(sdev) && sof_ops(sdev)->pcm_pointer)
sdev              379 sound/soc/sof/ops.h 		return sof_ops(sdev)->pcm_pointer(sdev, substream);
sdev              417 sound/soc/sof/ops.h #define snd_sof_dsp_read_poll_timeout(sdev, bar, offset, val, cond, sleep_us, timeout_us) \
sdev              424 sound/soc/sof/ops.h 		(val) = snd_sof_dsp_read(sdev, bar, offset);		\
sdev              426 sound/soc/sof/ops.h 			dev_dbg(sdev->dev, \
sdev              432 sound/soc/sof/ops.h 			(val) = snd_sof_dsp_read(sdev, bar, offset); \
sdev              433 sound/soc/sof/ops.h 			dev_dbg(sdev->dev, \
sdev              444 sound/soc/sof/ops.h bool snd_sof_pci_update_bits(struct snd_sof_dev *sdev, u32 offset,
sdev              447 sound/soc/sof/ops.h bool snd_sof_dsp_update_bits_unlocked(struct snd_sof_dev *sdev, u32 bar,
sdev              450 sound/soc/sof/ops.h bool snd_sof_dsp_update_bits64_unlocked(struct snd_sof_dev *sdev, u32 bar,
sdev              453 sound/soc/sof/ops.h bool snd_sof_dsp_update_bits(struct snd_sof_dev *sdev, u32 bar, u32 offset,
sdev              456 sound/soc/sof/ops.h bool snd_sof_dsp_update_bits64(struct snd_sof_dev *sdev, u32 bar,
sdev              459 sound/soc/sof/ops.h void snd_sof_dsp_update_bits_forced(struct snd_sof_dev *sdev, u32 bar,
sdev              462 sound/soc/sof/ops.h int snd_sof_dsp_register_poll(struct snd_sof_dev *sdev, u32 bar, u32 offset,
sdev              466 sound/soc/sof/ops.h void snd_sof_dsp_panic(struct snd_sof_dev *sdev, u32 offset);
sdev               28 sound/soc/sof/pcm.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
sdev               33 sound/soc/sof/pcm.c 	spcm = snd_sof_find_spcm_dai(sdev, rtd);
sdev               37 sound/soc/sof/pcm.c 	return snd_sof_create_page_table(sdev, dmab,
sdev               44 sound/soc/sof/pcm.c 	struct snd_sof_dev *sdev = spcm->sdev;
sdev               46 sound/soc/sof/pcm.c 	int ret = snd_sof_ipc_pcm_params(sdev, substream, reply);
sdev               49 sound/soc/sof/pcm.c 		dev_err(sdev->dev, "error: got wrong reply for PCM %d\n",
sdev               75 sound/soc/sof/pcm.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
sdev               78 sound/soc/sof/pcm.c 	spcm = snd_sof_find_spcm_dai(sdev, rtd);
sdev               80 sound/soc/sof/pcm.c 		dev_err(sdev->dev,
sdev              105 sound/soc/sof/pcm.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
sdev              115 sound/soc/sof/pcm.c 	spcm = snd_sof_find_spcm_dai(sdev, rtd);
sdev              119 sound/soc/sof/pcm.c 	dev_dbg(sdev->dev, "pcm: hw params stream %d dir %d\n",
sdev              127 sound/soc/sof/pcm.c 		dev_err(sdev->dev, "error: could not allocate %d bytes for PCM %d\n",
sdev              187 sound/soc/sof/pcm.c 	ret = snd_sof_pcm_platform_hw_params(sdev,
sdev              192 sound/soc/sof/pcm.c 		dev_err(sdev->dev, "error: platform hw params failed\n");
sdev              196 sound/soc/sof/pcm.c 	dev_dbg(sdev->dev, "stream_tag %d", pcm.params.stream_tag);
sdev              199 sound/soc/sof/pcm.c 	ret = sof_ipc_tx_message(sdev->ipc, pcm.hdr.cmd, &pcm, sizeof(pcm),
sdev              202 sound/soc/sof/pcm.c 		dev_err(sdev->dev, "error: hw params ipc failed for stream %d\n",
sdev              220 sound/soc/sof/pcm.c 				struct snd_sof_dev *sdev,
sdev              232 sound/soc/sof/pcm.c 	ret = sof_ipc_tx_message(sdev->ipc, stream.hdr.cmd, &stream,
sdev              245 sound/soc/sof/pcm.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
sdev              253 sound/soc/sof/pcm.c 	spcm = snd_sof_find_spcm_dai(sdev, rtd);
sdev              257 sound/soc/sof/pcm.c 	dev_dbg(sdev->dev, "pcm: free stream %d dir %d\n", spcm->pcm.pcm_id,
sdev              261 sound/soc/sof/pcm.c 		ret = sof_pcm_dsp_pcm_free(substream, sdev, spcm);
sdev              270 sound/soc/sof/pcm.c 	ret = snd_sof_pcm_platform_hw_free(sdev, substream);
sdev              272 sound/soc/sof/pcm.c 		dev_err(sdev->dev, "error: platform hw free failed\n");
sdev              284 sound/soc/sof/pcm.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
sdev              292 sound/soc/sof/pcm.c 	spcm = snd_sof_find_spcm_dai(sdev, rtd);
sdev              299 sound/soc/sof/pcm.c 	dev_dbg(sdev->dev, "pcm: prepare stream %d dir %d\n", spcm->pcm.pcm_id,
sdev              305 sound/soc/sof/pcm.c 		dev_err(sdev->dev, "error: set pcm hw_params after resume\n");
sdev              321 sound/soc/sof/pcm.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
sdev              333 sound/soc/sof/pcm.c 	spcm = snd_sof_find_spcm_dai(sdev, rtd);
sdev              337 sound/soc/sof/pcm.c 	dev_dbg(sdev->dev, "pcm: trigger stream %d dir %d cmd %d\n",
sdev              356 sound/soc/sof/pcm.c 			dev_err(sdev->dev,
sdev              372 sound/soc/sof/pcm.c 		dev_err(sdev->dev, "error: unhandled trigger cmd %d\n", cmd);
sdev              381 sound/soc/sof/pcm.c 		snd_sof_pcm_platform_trigger(sdev, substream, cmd);
sdev              384 sound/soc/sof/pcm.c 	ret = sof_ipc_tx_message(sdev->ipc, stream.hdr.cmd, &stream,
sdev              389 sound/soc/sof/pcm.c 		snd_sof_pcm_platform_trigger(sdev, substream, cmd);
sdev              393 sound/soc/sof/pcm.c 		ret = sof_pcm_dsp_pcm_free(substream, sdev, spcm);
sdev              403 sound/soc/sof/pcm.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
sdev              412 sound/soc/sof/pcm.c 	if (sof_ops(sdev)->pcm_pointer)
sdev              413 sound/soc/sof/pcm.c 		return sof_ops(sdev)->pcm_pointer(sdev, substream);
sdev              415 sound/soc/sof/pcm.c 	spcm = snd_sof_find_spcm_dai(sdev, rtd);
sdev              425 sound/soc/sof/pcm.c 	dev_dbg(sdev->dev, "PCM: stream %d dir %d DMA position %lu DAI position %lu\n",
sdev              437 sound/soc/sof/pcm.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
sdev              446 sound/soc/sof/pcm.c 	spcm = snd_sof_find_spcm_dai(sdev, rtd);
sdev              450 sound/soc/sof/pcm.c 	dev_dbg(sdev->dev, "pcm: open stream %d dir %d\n", spcm->pcm.pcm_id,
sdev              484 sound/soc/sof/pcm.c 	dev_dbg(sdev->dev, "period min %zd max %zd bytes\n",
sdev              487 sound/soc/sof/pcm.c 	dev_dbg(sdev->dev, "period count %d max %d\n",
sdev              490 sound/soc/sof/pcm.c 	dev_dbg(sdev->dev, "buffer max %zd bytes\n",
sdev              501 sound/soc/sof/pcm.c 	ret = snd_sof_pcm_platform_open(sdev, substream);
sdev              503 sound/soc/sof/pcm.c 		dev_err(sdev->dev, "error: pcm open failed %d\n", ret);
sdev              513 sound/soc/sof/pcm.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
sdev              521 sound/soc/sof/pcm.c 	spcm = snd_sof_find_spcm_dai(sdev, rtd);
sdev              525 sound/soc/sof/pcm.c 	dev_dbg(sdev->dev, "pcm: close stream %d dir %d\n", spcm->pcm.pcm_id,
sdev              528 sound/soc/sof/pcm.c 	err = snd_sof_pcm_platform_close(sdev, substream);
sdev              530 sound/soc/sof/pcm.c 		dev_err(sdev->dev, "error: pcm close failed %d\n",
sdev              562 sound/soc/sof/pcm.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
sdev              569 sound/soc/sof/pcm.c 	spcm = snd_sof_find_spcm_dai(sdev, rtd);
sdev              571 sound/soc/sof/pcm.c 		dev_warn(sdev->dev, "warn: can't find PCM with DAI ID %d\n",
sdev              576 sound/soc/sof/pcm.c 	dev_dbg(sdev->dev, "creating new PCM %s\n", spcm->pcm.pcm_name);
sdev              585 sound/soc/sof/pcm.c 	dev_dbg(sdev->dev, "spcm: allocate %s playback DMA buffer size 0x%x max 0x%x\n",
sdev              589 sound/soc/sof/pcm.c 				      SNDRV_DMA_TYPE_DEV_SG, sdev->dev,
sdev              602 sound/soc/sof/pcm.c 	dev_dbg(sdev->dev, "spcm: allocate %s capture DMA buffer size 0x%x max 0x%x\n",
sdev              606 sound/soc/sof/pcm.c 				      SNDRV_DMA_TYPE_DEV_SG, sdev->dev,
sdev              624 sound/soc/sof/pcm.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
sdev              626 sound/soc/sof/pcm.c 		snd_sof_find_dai(sdev, (char *)rtd->dai_link->name);
sdev              630 sound/soc/sof/pcm.c 		dev_warn(sdev->dev, "warning: no topology found for BE DAI %s config\n",
sdev              660 sound/soc/sof/pcm.c 		dev_err(sdev->dev, "error: No available DAI format!\n");
sdev              672 sound/soc/sof/pcm.c 		dev_dbg(sdev->dev,
sdev              674 sound/soc/sof/pcm.c 		dev_dbg(sdev->dev,
sdev              682 sound/soc/sof/pcm.c 			dev_err(sdev->dev,
sdev              695 sound/soc/sof/pcm.c 		dev_err(sdev->dev, "error: invalid DAI type %d\n",
sdev              705 sound/soc/sof/pcm.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(component);
sdev              706 sound/soc/sof/pcm.c 	struct snd_sof_pdata *plat_data = sdev->pdata;
sdev              711 sound/soc/sof/pcm.c 	sdev->component = component;
sdev              713 sound/soc/sof/pcm.c 	tplg_filename = devm_kasprintf(sdev->dev, GFP_KERNEL,
sdev              720 sound/soc/sof/pcm.c 	ret = snd_sof_load_topology(sdev, tplg_filename);
sdev              722 sound/soc/sof/pcm.c 		dev_err(sdev->dev, "error: failed to load DSP topology %d\n",
sdev              732 sound/soc/sof/pcm.c 	if (!sof_ops(sdev)->runtime_suspend || !sof_ops(sdev)->runtime_resume)
sdev              733 sound/soc/sof/pcm.c 		pm_runtime_get_noresume(sdev->dev);
sdev              744 sound/soc/sof/pcm.c void snd_sof_new_platform_drv(struct snd_sof_dev *sdev)
sdev              746 sound/soc/sof/pcm.c 	struct snd_soc_component_driver *pd = &sdev->plat_drv;
sdev              747 sound/soc/sof/pcm.c 	struct snd_sof_pdata *plat_data = sdev->pdata;
sdev               14 sound/soc/sof/pm.c static int sof_restore_kcontrols(struct snd_sof_dev *sdev)
sdev               21 sound/soc/sof/pm.c 	list_for_each_entry(scontrol, &sdev->kcontrol_list, list) {
sdev               32 sound/soc/sof/pm.c 			ret = snd_sof_ipc_set_get_comp_data(sdev->ipc, scontrol,
sdev               40 sound/soc/sof/pm.c 			ret = snd_sof_ipc_set_get_comp_data(sdev->ipc, scontrol,
sdev               51 sound/soc/sof/pm.c 			dev_err(sdev->dev,
sdev               62 sound/soc/sof/pm.c static int sof_restore_pipelines(struct snd_sof_dev *sdev)
sdev               73 sound/soc/sof/pm.c 	list_for_each_entry_reverse(swidget, &sdev->widget_list, list) {
sdev               85 sound/soc/sof/pm.c 			ret = sof_ipc_tx_message(sdev->ipc,
sdev               99 sound/soc/sof/pm.c 			ret = sof_load_pipeline_ipc(sdev, pipeline, &r);
sdev              103 sound/soc/sof/pm.c 			ret = sof_ipc_tx_message(sdev->ipc, hdr->cmd,
sdev              109 sound/soc/sof/pm.c 			dev_err(sdev->dev,
sdev              118 sound/soc/sof/pm.c 	list_for_each_entry_reverse(sroute, &sdev->route_list, list) {
sdev              129 sound/soc/sof/pm.c 		ret = sof_ipc_tx_message(sdev->ipc,
sdev              134 sound/soc/sof/pm.c 			dev_err(sdev->dev,
sdev              146 sound/soc/sof/pm.c 	list_for_each_entry_reverse(dai, &sdev->dai_list, list) {
sdev              151 sound/soc/sof/pm.c 			dev_err(sdev->dev, "error: no config for DAI %s\n",
sdev              165 sound/soc/sof/pm.c 		ret = sof_ipc_tx_message(sdev->ipc,
sdev              171 sound/soc/sof/pm.c 			dev_err(sdev->dev,
sdev              180 sound/soc/sof/pm.c 	list_for_each_entry(swidget, &sdev->widget_list, list) {
sdev              184 sound/soc/sof/pm.c 				snd_sof_complete_pipeline(sdev, swidget);
sdev              192 sound/soc/sof/pm.c 	ret = sof_restore_kcontrols(sdev);
sdev              194 sound/soc/sof/pm.c 		dev_err(sdev->dev,
sdev              200 sound/soc/sof/pm.c static int sof_send_pm_ipc(struct snd_sof_dev *sdev, int cmd)
sdev              212 sound/soc/sof/pm.c 	return sof_ipc_tx_message(sdev->ipc, pm_ctx.hdr.cmd, &pm_ctx,
sdev              216 sound/soc/sof/pm.c static int sof_set_hw_params_upon_resume(struct snd_sof_dev *sdev)
sdev              228 sound/soc/sof/pm.c 	list_for_each_entry(spcm, &sdev->pcm_list, list) {
sdev              241 sound/soc/sof/pm.c 	return snd_sof_dsp_hw_params_upon_resume(sdev);
sdev              245 sound/soc/sof/pm.c static void sof_cache_debugfs(struct snd_sof_dev *sdev)
sdev              249 sound/soc/sof/pm.c 	list_for_each_entry(dfse, &sdev->dfsentry_list, list) {
sdev              265 sound/soc/sof/pm.c 	struct snd_sof_dev *sdev = dev_get_drvdata(dev);
sdev              269 sound/soc/sof/pm.c 	if (!sof_ops(sdev)->resume || !sof_ops(sdev)->runtime_resume)
sdev              273 sound/soc/sof/pm.c 	if (sdev->first_boot)
sdev              281 sound/soc/sof/pm.c 		ret = snd_sof_dsp_runtime_resume(sdev);
sdev              283 sound/soc/sof/pm.c 		ret = snd_sof_dsp_resume(sdev);
sdev              285 sound/soc/sof/pm.c 		dev_err(sdev->dev,
sdev              290 sound/soc/sof/pm.c 	sdev->fw_state = SOF_FW_BOOT_PREPARE;
sdev              293 sound/soc/sof/pm.c 	ret = snd_sof_load_firmware(sdev);
sdev              295 sound/soc/sof/pm.c 		dev_err(sdev->dev,
sdev              301 sound/soc/sof/pm.c 	sdev->fw_state = SOF_FW_BOOT_IN_PROGRESS;
sdev              307 sound/soc/sof/pm.c 	ret = snd_sof_run_firmware(sdev);
sdev              309 sound/soc/sof/pm.c 		dev_err(sdev->dev,
sdev              316 sound/soc/sof/pm.c 	ret = snd_sof_init_trace_ipc(sdev);
sdev              319 sound/soc/sof/pm.c 		dev_warn(sdev->dev,
sdev              325 sound/soc/sof/pm.c 	ret = sof_restore_pipelines(sdev);
sdev              327 sound/soc/sof/pm.c 		dev_err(sdev->dev,
sdev              334 sound/soc/sof/pm.c 	ret = sof_send_pm_ipc(sdev, SOF_IPC_PM_CTX_RESTORE);
sdev              336 sound/soc/sof/pm.c 		dev_err(sdev->dev,
sdev              345 sound/soc/sof/pm.c 	struct snd_sof_dev *sdev = dev_get_drvdata(dev);
sdev              349 sound/soc/sof/pm.c 	if (!sof_ops(sdev)->suspend)
sdev              352 sound/soc/sof/pm.c 	if (sdev->fw_state != SOF_FW_BOOT_COMPLETE)
sdev              356 sound/soc/sof/pm.c 	snd_sof_release_trace(sdev);
sdev              360 sound/soc/sof/pm.c 		ret = sof_set_hw_params_upon_resume(sdev);
sdev              362 sound/soc/sof/pm.c 			dev_err(sdev->dev,
sdev              372 sound/soc/sof/pm.c 		sof_cache_debugfs(sdev);
sdev              375 sound/soc/sof/pm.c 	ret = sof_send_pm_ipc(sdev, SOF_IPC_PM_CTX_SAVE);
sdev              381 sound/soc/sof/pm.c 		dev_err(sdev->dev,
sdev              387 sound/soc/sof/pm.c 		dev_warn(sdev->dev,
sdev              395 sound/soc/sof/pm.c 	if (sdev->fw_state == SOF_FW_BOOT_NOT_STARTED)
sdev              400 sound/soc/sof/pm.c 		ret = snd_sof_dsp_runtime_suspend(sdev);
sdev              402 sound/soc/sof/pm.c 		ret = snd_sof_dsp_suspend(sdev);
sdev              404 sound/soc/sof/pm.c 		dev_err(sdev->dev,
sdev              409 sound/soc/sof/pm.c 	sdev->fw_state = SOF_FW_BOOT_NOT_STARTED;
sdev              422 sound/soc/sof/pm.c 	struct snd_sof_dev *sdev = dev_get_drvdata(dev);
sdev              424 sound/soc/sof/pm.c 	return snd_sof_dsp_runtime_idle(sdev);
sdev              131 sound/soc/sof/sof-priv.h 	int (*fw_ready)(struct snd_sof_dev *sdev, u32 msg_id); /* optional */
sdev              134 sound/soc/sof/sof-priv.h 	int (*pcm_open)(struct snd_sof_dev *sdev,
sdev              137 sound/soc/sof/sof-priv.h 	int (*pcm_close)(struct snd_sof_dev *sdev,
sdev              141 sound/soc/sof/sof-priv.h 	int (*pcm_hw_params)(struct snd_sof_dev *sdev,
sdev              147 sound/soc/sof/sof-priv.h 	int (*pcm_hw_free)(struct snd_sof_dev *sdev,
sdev              151 sound/soc/sof/sof-priv.h 	int (*pcm_trigger)(struct snd_sof_dev *sdev,
sdev              156 sound/soc/sof/sof-priv.h 	snd_pcm_uframes_t (*pcm_pointer)(struct snd_sof_dev *sdev,
sdev              160 sound/soc/sof/sof-priv.h 	void (*ipc_msg_data)(struct snd_sof_dev *sdev,
sdev              165 sound/soc/sof/sof-priv.h 	int (*ipc_pcm_params)(struct snd_sof_dev *sdev,
sdev              179 sound/soc/sof/sof-priv.h 	int (*set_hw_params_upon_resume)(struct snd_sof_dev *sdev); /* optional */
sdev              192 sound/soc/sof/sof-priv.h 	int (*trace_init)(struct snd_sof_dev *sdev,
sdev              194 sound/soc/sof/sof-priv.h 	int (*trace_release)(struct snd_sof_dev *sdev); /* optional */
sdev              195 sound/soc/sof/sof-priv.h 	int (*trace_trigger)(struct snd_sof_dev *sdev,
sdev              199 sound/soc/sof/sof-priv.h 	int (*get_bar_index)(struct snd_sof_dev *sdev,
sdev              201 sound/soc/sof/sof-priv.h 	int (*get_mailbox_offset)(struct snd_sof_dev *sdev);/* mandatory for common loader code */
sdev              202 sound/soc/sof/sof-priv.h 	int (*get_window_offset)(struct snd_sof_dev *sdev,
sdev              212 sound/soc/sof/sof-priv.h 	void (*dsp_oops)(struct snd_sof_dev *sdev, void *oops);
sdev              213 sound/soc/sof/sof-priv.h 	void (*dsp_stack)(struct snd_sof_dev *sdev, void *oops,
sdev              217 sound/soc/sof/sof-priv.h #define sof_arch_ops(sdev) ((sdev)->pdata->desc->arch_ops)
sdev              248 sound/soc/sof/sof-priv.h 	struct snd_sof_dev *sdev;
sdev              300 sound/soc/sof/sof-priv.h 	struct snd_sof_dev *sdev;
sdev              310 sound/soc/sof/sof-priv.h 	struct snd_sof_dev *sdev;
sdev              326 sound/soc/sof/sof-priv.h 	struct snd_sof_dev *sdev;
sdev              340 sound/soc/sof/sof-priv.h 	struct snd_sof_dev *sdev;
sdev              350 sound/soc/sof/sof-priv.h 	struct snd_sof_dev *sdev;
sdev              468 sound/soc/sof/sof-priv.h void snd_sof_new_platform_drv(struct snd_sof_dev *sdev);
sdev              470 sound/soc/sof/sof-priv.h int snd_sof_create_page_table(struct snd_sof_dev *sdev,
sdev              477 sound/soc/sof/sof-priv.h int snd_sof_load_firmware(struct snd_sof_dev *sdev);
sdev              478 sound/soc/sof/sof-priv.h int snd_sof_load_firmware_raw(struct snd_sof_dev *sdev);
sdev              479 sound/soc/sof/sof-priv.h int snd_sof_load_firmware_memcpy(struct snd_sof_dev *sdev);
sdev              480 sound/soc/sof/sof-priv.h int snd_sof_run_firmware(struct snd_sof_dev *sdev);
sdev              481 sound/soc/sof/sof-priv.h int snd_sof_parse_module_memcpy(struct snd_sof_dev *sdev,
sdev              483 sound/soc/sof/sof-priv.h void snd_sof_fw_unload(struct snd_sof_dev *sdev);
sdev              484 sound/soc/sof/sof-priv.h int snd_sof_fw_parse_ext_data(struct snd_sof_dev *sdev, u32 bar, u32 offset);
sdev              489 sound/soc/sof/sof-priv.h struct snd_sof_ipc *snd_sof_ipc_init(struct snd_sof_dev *sdev);
sdev              490 sound/soc/sof/sof-priv.h void snd_sof_ipc_free(struct snd_sof_dev *sdev);
sdev              491 sound/soc/sof/sof-priv.h int snd_sof_ipc_reply(struct snd_sof_dev *sdev, u32 msg_id);
sdev              492 sound/soc/sof/sof-priv.h void snd_sof_ipc_msgs_rx(struct snd_sof_dev *sdev);
sdev              493 sound/soc/sof/sof-priv.h int snd_sof_ipc_stream_pcm_params(struct snd_sof_dev *sdev,
sdev              495 sound/soc/sof/sof-priv.h int snd_sof_dsp_mailbox_init(struct snd_sof_dev *sdev, u32 dspbox,
sdev              498 sound/soc/sof/sof-priv.h int snd_sof_ipc_valid(struct snd_sof_dev *sdev);
sdev              502 sound/soc/sof/sof-priv.h struct snd_sof_widget *snd_sof_find_swidget(struct snd_sof_dev *sdev,
sdev              504 sound/soc/sof/sof-priv.h struct snd_sof_widget *snd_sof_find_swidget_sname(struct snd_sof_dev *sdev,
sdev              507 sound/soc/sof/sof-priv.h struct snd_sof_dai *snd_sof_find_dai(struct snd_sof_dev *sdev,
sdev              511 sound/soc/sof/sof-priv.h struct snd_sof_pcm *snd_sof_find_spcm_dai(struct snd_sof_dev *sdev,
sdev              516 sound/soc/sof/sof-priv.h 	list_for_each_entry(spcm, &sdev->pcm_list, list) {
sdev              524 sound/soc/sof/sof-priv.h struct snd_sof_pcm *snd_sof_find_spcm_name(struct snd_sof_dev *sdev,
sdev              526 sound/soc/sof/sof-priv.h struct snd_sof_pcm *snd_sof_find_spcm_comp(struct snd_sof_dev *sdev,
sdev              529 sound/soc/sof/sof-priv.h struct snd_sof_pcm *snd_sof_find_spcm_pcm_id(struct snd_sof_dev *sdev,
sdev              536 sound/soc/sof/sof-priv.h int snd_sof_ipc_stream_posn(struct snd_sof_dev *sdev,
sdev              554 sound/soc/sof/sof-priv.h int snd_sof_init_topology(struct snd_sof_dev *sdev,
sdev              556 sound/soc/sof/sof-priv.h int snd_sof_load_topology(struct snd_sof_dev *sdev, const char *file);
sdev              557 sound/soc/sof/sof-priv.h int snd_sof_complete_pipeline(struct snd_sof_dev *sdev,
sdev              560 sound/soc/sof/sof-priv.h int sof_load_pipeline_ipc(struct snd_sof_dev *sdev,
sdev              567 sound/soc/sof/sof-priv.h int snd_sof_init_trace(struct snd_sof_dev *sdev);
sdev              568 sound/soc/sof/sof-priv.h void snd_sof_release_trace(struct snd_sof_dev *sdev);
sdev              569 sound/soc/sof/sof-priv.h void snd_sof_free_trace(struct snd_sof_dev *sdev);
sdev              570 sound/soc/sof/sof-priv.h int snd_sof_dbg_init(struct snd_sof_dev *sdev);
sdev              571 sound/soc/sof/sof-priv.h void snd_sof_free_debug(struct snd_sof_dev *sdev);
sdev              572 sound/soc/sof/sof-priv.h int snd_sof_debugfs_io_item(struct snd_sof_dev *sdev,
sdev              576 sound/soc/sof/sof-priv.h int snd_sof_debugfs_buf_item(struct snd_sof_dev *sdev,
sdev              579 sound/soc/sof/sof-priv.h int snd_sof_trace_update_pos(struct snd_sof_dev *sdev,
sdev              581 sound/soc/sof/sof-priv.h void snd_sof_trace_notify_for_error(struct snd_sof_dev *sdev);
sdev              582 sound/soc/sof/sof-priv.h void snd_sof_get_status(struct snd_sof_dev *sdev, u32 panic_code,
sdev              586 sound/soc/sof/sof-priv.h int snd_sof_init_trace_ipc(struct snd_sof_dev *sdev);
sdev              623 sound/soc/sof/sof-priv.h static inline void sof_stack(struct snd_sof_dev *sdev, void *oops, u32 *stack,
sdev              626 sound/soc/sof/sof-priv.h 	if (sof_arch_ops(sdev)->dsp_stack)
sdev              627 sound/soc/sof/sof-priv.h 		sof_arch_ops(sdev)->dsp_stack(sdev, oops, stack, stack_words);
sdev              630 sound/soc/sof/sof-priv.h static inline void sof_oops(struct snd_sof_dev *sdev, void *oops)
sdev              632 sound/soc/sof/sof-priv.h 	if (sof_arch_ops(sdev)->dsp_oops)
sdev              633 sound/soc/sof/sof-priv.h 		sof_arch_ops(sdev)->dsp_oops(sdev, oops);
sdev              641 sound/soc/sof/sof-priv.h void sof_io_write(struct snd_sof_dev *sdev, void __iomem *addr, u32 value);
sdev              642 sound/soc/sof/sof-priv.h void sof_io_write64(struct snd_sof_dev *sdev, void __iomem *addr, u64 value);
sdev              643 sound/soc/sof/sof-priv.h u32 sof_io_read(struct snd_sof_dev *sdev, void __iomem *addr);
sdev              644 sound/soc/sof/sof-priv.h u64 sof_io_read64(struct snd_sof_dev *sdev, void __iomem *addr);
sdev              645 sound/soc/sof/sof-priv.h void sof_mailbox_write(struct snd_sof_dev *sdev, u32 offset,
sdev              647 sound/soc/sof/sof-priv.h void sof_mailbox_read(struct snd_sof_dev *sdev, u32 offset,
sdev              649 sound/soc/sof/sof-priv.h void sof_block_write(struct snd_sof_dev *sdev, u32 bar, u32 offset, void *src,
sdev              651 sound/soc/sof/sof-priv.h void sof_block_read(struct snd_sof_dev *sdev, u32 bar, u32 offset, void *dest,
sdev              654 sound/soc/sof/sof-priv.h int sof_fw_ready(struct snd_sof_dev *sdev, u32 msg_id);
sdev              656 sound/soc/sof/sof-priv.h void intel_ipc_msg_data(struct snd_sof_dev *sdev,
sdev              659 sound/soc/sof/sof-priv.h int intel_ipc_pcm_params(struct snd_sof_dev *sdev,
sdev              663 sound/soc/sof/sof-priv.h int intel_pcm_open(struct snd_sof_dev *sdev,
sdev              665 sound/soc/sof/sof-priv.h int intel_pcm_close(struct snd_sof_dev *sdev,
sdev               56 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = swidget->sdev;
sdev               65 sound/soc/sof/topology.c 	spcm = snd_sof_find_spcm_name(sdev, swidget->widget->sname);
sdev               67 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: cannot find PCM for %s\n",
sdev              102 sound/soc/sof/topology.c 	ret = sof_ipc_tx_message(sdev->ipc, pcm.hdr.cmd, &pcm, sizeof(pcm),
sdev              105 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: pcm params failed for %s\n",
sdev              114 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = swidget->sdev;
sdev              125 sound/soc/sof/topology.c 	ret = sof_ipc_tx_message(sdev->ipc, stream.hdr.cmd, &stream,
sdev              128 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: failed to trigger %s\n",
sdev              138 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev;
sdev              144 sound/soc/sof/topology.c 	sdev = swidget->sdev;
sdev              146 sound/soc/sof/topology.c 	dev_dbg(sdev->dev, "received event %d for widget %s\n",
sdev              155 sound/soc/sof/topology.c 			dev_err(sdev->dev,
sdev              164 sound/soc/sof/topology.c 			dev_err(sdev->dev,
sdev              172 sound/soc/sof/topology.c 			dev_err(sdev->dev,
sdev              179 sound/soc/sof/topology.c 			dev_err(sdev->dev,
sdev              444 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev              463 sound/soc/sof/topology.c 	scontrol->comp_id = sdev->next_comp_id;
sdev              478 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: invalid TLV data\n");
sdev              485 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: setting up volume table\n");
sdev              497 sound/soc/sof/topology.c 	dev_dbg(sdev->dev, "tplg: load kcontrol index %d chans %d\n",
sdev              508 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev              523 sound/soc/sof/topology.c 	scontrol->comp_id = sdev->next_comp_id;
sdev              528 sound/soc/sof/topology.c 	dev_dbg(sdev->dev, "tplg: load kcontrol index %d chans %d comp_id %d\n",
sdev              539 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev              551 sound/soc/sof/topology.c 		dev_err(sdev->dev, "err: bytes data size %d exceeds max %d.\n",
sdev              561 sound/soc/sof/topology.c 	scontrol->comp_id = sdev->next_comp_id;
sdev              564 sound/soc/sof/topology.c 	dev_dbg(sdev->dev, "tplg: load kcontrol index %d chans %d\n",
sdev              572 sound/soc/sof/topology.c 			dev_err(sdev->dev, "error: Wrong ABI magic 0x%08x.\n",
sdev              578 sound/soc/sof/topology.c 			dev_err(sdev->dev,
sdev              585 sound/soc/sof/topology.c 			dev_err(sdev->dev,
sdev              909 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev              934 sound/soc/sof/topology.c 			if (sdev->private)
sdev              935 sound/soc/sof/topology.c 				index = sdev->private;
sdev              954 sound/soc/sof/topology.c 					dev_err(sdev->dev,
sdev              982 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev              990 sound/soc/sof/topology.c 			dev_err(sdev->dev, "error: invalid array size 0x%x\n",
sdev              998 sound/soc/sof/topology.c 			dev_err(sdev->dev, "error: invalid array size 0x%x\n",
sdev             1021 sound/soc/sof/topology.c 			dev_err(sdev->dev, "error: unknown token type %d\n",
sdev             1036 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev             1038 sound/soc/sof/topology.c 	dev_dbg(sdev->dev, " config: periods snk %d src %d fmt %d\n",
sdev             1051 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev             1056 sound/soc/sof/topology.c 	dev_dbg(sdev->dev, "tplg: load control type %d name : %s\n",
sdev             1063 sound/soc/sof/topology.c 	scontrol->sdev = sdev;
sdev             1092 sound/soc/sof/topology.c 		dev_warn(sdev->dev, "control type not supported %d:%d:%d\n",
sdev             1099 sound/soc/sof/topology.c 	list_add(&scontrol->list, &sdev->kcontrol_list);
sdev             1106 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev             1110 sound/soc/sof/topology.c 	dev_dbg(sdev->dev, "tplg: unload control name : %s\n", scomp->name);
sdev             1120 sound/soc/sof/topology.c 	return sof_ipc_tx_message(sdev->ipc,
sdev             1134 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev             1139 sound/soc/sof/topology.c 		dev_vdbg(sdev->dev, "tplg: check widget: %s stream: %s dai stream: %s\n",
sdev             1153 sound/soc/sof/topology.c 			dev_dbg(sdev->dev, "tplg: connected widget %s -> DAI link %s\n",
sdev             1159 sound/soc/sof/topology.c 			dev_dbg(sdev->dev, "tplg: connected widget %s -> DAI link %s\n",
sdev             1169 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: can't connect DAI %s stream %s\n",
sdev             1183 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev             1201 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: parse dai tokens failed %d\n",
sdev             1210 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: parse dai.cfg tokens failed %d\n",
sdev             1215 sound/soc/sof/topology.c 	dev_dbg(sdev->dev, "dai %s: type %d index %d\n",
sdev             1219 sound/soc/sof/topology.c 	ret = sof_ipc_tx_message(sdev->ipc, comp_dai.comp.hdr.cmd,
sdev             1223 sound/soc/sof/topology.c 		dai->sdev = sdev;
sdev             1239 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev             1259 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: parse buffer tokens failed %d\n",
sdev             1265 sound/soc/sof/topology.c 	dev_dbg(sdev->dev, "buffer %s: size %d caps 0x%x\n",
sdev             1270 sound/soc/sof/topology.c 	ret = sof_ipc_tx_message(sdev->ipc, buffer->comp.hdr.cmd, buffer,
sdev             1273 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: buffer %s load failed\n",
sdev             1282 sound/soc/sof/topology.c static int spcm_bind(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm,
sdev             1287 sound/soc/sof/topology.c 	host_widget = snd_sof_find_swidget_sname(sdev,
sdev             1291 sound/soc/sof/topology.c 		dev_err(sdev->dev, "can't find host comp to bind pcm\n");
sdev             1310 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev             1332 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: parse host tokens failed %d\n",
sdev             1341 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: parse host.cfg tokens failed %d\n",
sdev             1346 sound/soc/sof/topology.c 	dev_dbg(sdev->dev, "loaded host %s\n", swidget->widget->name);
sdev             1351 sound/soc/sof/topology.c 	ret = sof_ipc_tx_message(sdev->ipc, host->comp.hdr.cmd, host,
sdev             1363 sound/soc/sof/topology.c int sof_load_pipeline_ipc(struct snd_sof_dev *sdev,
sdev             1370 sound/soc/sof/topology.c 	ret = sof_ipc_tx_message(sdev->ipc, pipeline->hdr.cmd, pipeline,
sdev             1373 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: load pipeline ipc failure\n");
sdev             1378 sound/soc/sof/topology.c 	ret = snd_sof_dsp_core_power_up(sdev, 1 << pipeline->core);
sdev             1380 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: powering up pipeline schedule core %d\n",
sdev             1386 sound/soc/sof/topology.c 	sdev->enabled_cores_mask |= 1 << pipeline->core;
sdev             1393 sound/soc/sof/topology.c 	pm_core_config.enable_mask = sdev->enabled_cores_mask;
sdev             1400 sound/soc/sof/topology.c 	ret = sof_ipc_tx_message(sdev->ipc, pm_core_config.hdr.cmd,
sdev             1404 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: core enable ipc failure\n");
sdev             1414 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev             1431 sound/soc/sof/topology.c 	comp_swidget = snd_sof_find_swidget(sdev, tw->sname);
sdev             1433 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: widget %s refers to non existent widget %s\n",
sdev             1441 sound/soc/sof/topology.c 	dev_dbg(sdev->dev, "tplg: pipeline id %d comp %d scheduling comp id %d\n",
sdev             1448 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: parse pipeline tokens failed %d\n",
sdev             1453 sound/soc/sof/topology.c 	dev_dbg(sdev->dev, "pipeline %s: period %d pri %d mips %d core %d frames %d\n",
sdev             1460 sound/soc/sof/topology.c 	ret = sof_load_pipeline_ipc(sdev, pipeline, r);
sdev             1477 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev             1498 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: parse mixer.cfg tokens failed %d\n",
sdev             1508 sound/soc/sof/topology.c 	ret = sof_ipc_tx_message(sdev->ipc, mixer->comp.hdr.cmd, mixer,
sdev             1524 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev             1545 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: parse mux.cfg tokens failed %d\n",
sdev             1555 sound/soc/sof/topology.c 	ret = sof_ipc_tx_message(sdev->ipc, mux->comp.hdr.cmd, mux,
sdev             1572 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev             1585 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: invalid kcontrol count %d for volume\n",
sdev             1603 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: parse volume tokens failed %d\n",
sdev             1611 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: parse volume.cfg tokens failed %d\n",
sdev             1620 sound/soc/sof/topology.c 	list_for_each_entry(scontrol, &sdev->kcontrol_list, list) {
sdev             1631 sound/soc/sof/topology.c 	ret = sof_ipc_tx_message(sdev->ipc, volume->comp.hdr.cmd, volume,
sdev             1649 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev             1670 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: parse src tokens failed %d\n",
sdev             1679 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: parse src.cfg tokens failed %d\n",
sdev             1684 sound/soc/sof/topology.c 	dev_dbg(sdev->dev, "src %s: source rate %d sink rate %d\n",
sdev             1690 sound/soc/sof/topology.c 	ret = sof_ipc_tx_message(sdev->ipc, src->comp.hdr.cmd, src,
sdev             1708 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev             1729 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: parse tone tokens failed %d\n",
sdev             1738 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: parse tone.cfg tokens failed %d\n",
sdev             1743 sound/soc/sof/topology.c 	dev_dbg(sdev->dev, "tone %s: frequency %d amplitude %d\n",
sdev             1749 sound/soc/sof/topology.c 	ret = sof_ipc_tx_message(sdev->ipc, tone->comp.hdr.cmd, tone,
sdev             1758 sound/soc/sof/topology.c static int sof_get_control_data(struct snd_sof_dev *sdev,
sdev             1788 sound/soc/sof/topology.c 			dev_err(sdev->dev, "error: unknown kcontrol type %d in widget %s\n",
sdev             1795 sound/soc/sof/topology.c 			dev_err(sdev->dev, "error: no scontrol for widget %s\n",
sdev             1836 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev             1848 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: invalid process comp type %d\n",
sdev             1863 sound/soc/sof/topology.c 		ret = sof_get_control_data(sdev, widget, wdata,
sdev             1898 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: parse process.cfg tokens failed %d\n",
sdev             1922 sound/soc/sof/topology.c 	ret = sof_ipc_tx_message(sdev->ipc, process->comp.hdr.cmd, process,
sdev             1926 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: create process failed\n");
sdev             1937 sound/soc/sof/topology.c 		ret = snd_sof_ipc_set_get_comp_data(sdev->ipc, wdata[i].control,
sdev             1943 sound/soc/sof/topology.c 			dev_err(sdev->dev, "error: send control failed\n");
sdev             1966 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev             1973 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: process tokens not found\n");
sdev             1984 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: parse process tokens failed %d\n",
sdev             1993 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: process loading failed\n");
sdev             2000 sound/soc/sof/topology.c static int sof_widget_bind_event(struct snd_sof_dev *sdev,
sdev             2026 sound/soc/sof/topology.c 	dev_err(sdev->dev,
sdev             2037 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev             2048 sound/soc/sof/topology.c 	swidget->sdev = sdev;
sdev             2050 sound/soc/sof/topology.c 	swidget->comp_id = sdev->next_comp_id++;
sdev             2057 sound/soc/sof/topology.c 	dev_dbg(sdev->dev, "tplg: ready widget id %d pipe %d type %d name : %s stream %s\n",
sdev             2076 sound/soc/sof/topology.c 			list_add(&dai->list, &sdev->dai_list);
sdev             2088 sound/soc/sof/topology.c 		list_for_each_entry(scontrol, &sdev->kcontrol_list, list) {
sdev             2128 sound/soc/sof/topology.c 		dev_warn(sdev->dev, "warning: widget type %d name %s not handled\n",
sdev             2135 sound/soc/sof/topology.c 		dev_err(sdev->dev,
sdev             2146 sound/soc/sof/topology.c 		ret = sof_widget_bind_event(sdev, swidget,
sdev             2149 sound/soc/sof/topology.c 			dev_err(sdev->dev, "error: widget event binding failed\n");
sdev             2157 sound/soc/sof/topology.c 	list_add(&swidget->list, &sdev->widget_list);
sdev             2181 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev             2215 sound/soc/sof/topology.c 		ret = snd_sof_dsp_core_power_down(sdev, 1 << pipeline->core);
sdev             2217 sound/soc/sof/topology.c 			dev_err(sdev->dev, "error: powering down pipeline schedule core %d\n",
sdev             2221 sound/soc/sof/topology.c 		sdev->enabled_cores_mask &= ~(1 << pipeline->core);
sdev             2245 sound/soc/sof/topology.c 			dev_warn(sdev->dev, "unsupported kcontrol_type\n");
sdev             2273 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev             2287 sound/soc/sof/topology.c 	spcm->sdev = sdev;
sdev             2293 sound/soc/sof/topology.c 		dev_dbg(sdev->dev, "tplg: load pcm %s\n", pcm->dai_name);
sdev             2296 sound/soc/sof/topology.c 	list_add(&spcm->list, &sdev->pcm_list);
sdev             2305 sound/soc/sof/topology.c 	ret = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, sdev->dev,
sdev             2308 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: can't alloc page table for %s %d\n",
sdev             2315 sound/soc/sof/topology.c 	ret = spcm_bind(sdev, spcm, stream);
sdev             2317 sound/soc/sof/topology.c 		dev_err(sdev->dev,
sdev             2332 sound/soc/sof/topology.c 	ret = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, sdev->dev,
sdev             2335 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: can't alloc page table for %s %d\n",
sdev             2341 sound/soc/sof/topology.c 	ret = spcm_bind(sdev, spcm, stream);
sdev             2343 sound/soc/sof/topology.c 		dev_err(sdev->dev,
sdev             2410 sound/soc/sof/topology.c static int sof_set_dai_config(struct snd_sof_dev *sdev, u32 size,
sdev             2417 sound/soc/sof/topology.c 	list_for_each_entry(dai, &sdev->dai_list, list) {
sdev             2439 sound/soc/sof/topology.c 		dev_warn(sdev->dev, "warning: failed to find dai for dai link %s",
sdev             2452 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev             2469 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: parse ssp tokens failed %d\n",
sdev             2483 sound/soc/sof/topology.c 	dev_dbg(sdev->dev, "tplg: config SSP%d fmt 0x%x mclk %d bclk %d fclk %d width (%d)%d slots %d mclk id %d quirks %d\n",
sdev             2492 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: invalid fsync rate for SSP%d\n",
sdev             2498 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: invalid channel count for SSP%d\n",
sdev             2504 sound/soc/sof/topology.c 	ret = sof_ipc_tx_message(sdev->ipc,
sdev             2509 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: failed to set DAI config for SSP%d\n",
sdev             2515 sound/soc/sof/topology.c 	ret = sof_set_dai_config(sdev, size, link, config);
sdev             2517 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: failed to save DAI config for SSP%d\n",
sdev             2549 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev             2553 sound/soc/sof/topology.c 	struct sof_ipc_fw_ready *ready = &sdev->fw_ready;
sdev             2570 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: parse dmic tokens failed %d\n",
sdev             2594 sound/soc/sof/topology.c 	sdev->private = kzalloc(sizeof(u32), GFP_KERNEL);
sdev             2595 sound/soc/sof/topology.c 	if (!sdev->private) {
sdev             2605 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: parse dmic pdm tokens failed %d\n",
sdev             2614 sound/soc/sof/topology.c 	dev_dbg(sdev->dev, "tplg: config DMIC%d driver version %d\n",
sdev             2616 sound/soc/sof/topology.c 	dev_dbg(sdev->dev, "pdmclk_min %d pdm_clkmax %d duty_min %hd\n",
sdev             2619 sound/soc/sof/topology.c 	dev_dbg(sdev->dev, "duty_max %hd fifo_fs %d num_pdms active %d\n",
sdev             2622 sound/soc/sof/topology.c 	dev_dbg(sdev->dev, "fifo word length %hd\n",
sdev             2626 sound/soc/sof/topology.c 		dev_dbg(sdev->dev, "pdm %hd mic a %hd mic b %hd\n",
sdev             2630 sound/soc/sof/topology.c 		dev_dbg(sdev->dev, "pdm %hd polarity a %hd polarity b %hd\n",
sdev             2634 sound/soc/sof/topology.c 		dev_dbg(sdev->dev, "pdm %hd clk_edge %hd skew %hd\n",
sdev             2646 sound/soc/sof/topology.c 	ret = sof_ipc_tx_message(sdev->ipc,
sdev             2651 sound/soc/sof/topology.c 		dev_err(sdev->dev,
sdev             2658 sound/soc/sof/topology.c 	ret = sof_set_dai_config(sdev, size, link, ipc_config);
sdev             2660 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: failed to save DAI config for DMIC%d\n",
sdev             2664 sound/soc/sof/topology.c 	kfree(sdev->private);
sdev             2675 sound/soc/sof/topology.c static int sof_link_hda_process(struct snd_sof_dev *sdev,
sdev             2685 sound/soc/sof/topology.c 	list_for_each_entry(sof_dai, &sdev->dai_list, list) {
sdev             2703 sound/soc/sof/topology.c 			ret = sof_ipc_tx_message(sdev->ipc,
sdev             2708 sound/soc/sof/topology.c 				dev_err(sdev->dev, "error: failed to set DAI config for direction:%d of HDA dai %d\n",
sdev             2723 sound/soc/sof/topology.c 		dev_warn(sdev->dev, "warning: failed to find dai for dai link %s",
sdev             2736 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev             2751 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: parse hda tokens failed %d\n",
sdev             2758 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: failed to find dai %s in %s",
sdev             2763 sound/soc/sof/topology.c 	ret = sof_link_hda_process(sdev, link, config);
sdev             2765 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: failed to process hda dai link %s",
sdev             2777 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev             2786 sound/soc/sof/topology.c 	ret = sof_ipc_tx_message(sdev->ipc,
sdev             2791 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: failed to set DAI config for ALH %d\n",
sdev             2797 sound/soc/sof/topology.c 	ret = sof_set_dai_config(sdev, size, link, config);
sdev             2799 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: failed to save DAI config for ALH %d\n",
sdev             2810 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev             2819 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: no platforms\n");
sdev             2822 sound/soc/sof/topology.c 	link->platforms->name = dev_name(sdev->dev);
sdev             2841 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: expected tokens for DAI, none found\n");
sdev             2853 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: parse link tokens failed %d\n",
sdev             2865 sound/soc/sof/topology.c 			dev_err(sdev->dev, "error: unexpected DAI config count %d!\n",
sdev             2870 sound/soc/sof/topology.c 		dev_dbg(sdev->dev, "tplg: %d hw_configs found, default id: %d!\n",
sdev             2879 sound/soc/sof/topology.c 			dev_err(sdev->dev, "error: default hw_config id: %d not found!\n",
sdev             2918 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: invalid DAI type %d\n", config.type);
sdev             2928 sound/soc/sof/topology.c static int sof_link_hda_unload(struct snd_sof_dev *sdev,
sdev             2936 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: failed to find dai %s in %s",
sdev             2947 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev             2958 sound/soc/sof/topology.c 	list_for_each_entry(sof_dai, &sdev->dai_list, list) {
sdev             2966 sound/soc/sof/topology.c 	dev_err(sdev->dev, "error: failed to find dai %s in %s",
sdev             2978 sound/soc/sof/topology.c 		ret = sof_link_hda_unload(sdev, link);
sdev             2981 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: invalid DAI type %d\n",
sdev             2994 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev             3007 sound/soc/sof/topology.c 	sroute->sdev = sdev;
sdev             3018 sound/soc/sof/topology.c 	dev_dbg(sdev->dev, "sink %s control %s source %s\n",
sdev             3023 sound/soc/sof/topology.c 	source_swidget = snd_sof_find_swidget(sdev, (char *)route->source);
sdev             3025 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: source %s not found\n",
sdev             3044 sound/soc/sof/topology.c 	sink_swidget = snd_sof_find_swidget(sdev, (char *)route->sink);
sdev             3046 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: sink %s not found\n",
sdev             3070 sound/soc/sof/topology.c 		dev_dbg(sdev->dev, "warning: neither Linked source component %s nor sink component %s is of buffer type, ignoring link\n",
sdev             3075 sound/soc/sof/topology.c 		ret = sof_ipc_tx_message(sdev->ipc,
sdev             3082 sound/soc/sof/topology.c 			dev_err(sdev->dev, "error: failed to add route sink %s control %s source %s\n",
sdev             3091 sound/soc/sof/topology.c 			dev_err(sdev->dev, "error: DSP failed to add route sink %s control %s source %s result %d\n",
sdev             3104 sound/soc/sof/topology.c 		list_add(&sroute->list, &sdev->route_list);
sdev             3118 sound/soc/sof/topology.c static int snd_sof_cache_kcontrol_val(struct snd_sof_dev *sdev)
sdev             3124 sound/soc/sof/topology.c 	list_for_each_entry(scontrol, &sdev->kcontrol_list, list) {
sdev             3139 sound/soc/sof/topology.c 			dev_err(sdev->dev,
sdev             3144 sound/soc/sof/topology.c 		ret = snd_sof_ipc_set_get_comp_data(sdev->ipc, scontrol,
sdev             3149 sound/soc/sof/topology.c 			dev_warn(sdev->dev,
sdev             3158 sound/soc/sof/topology.c int snd_sof_complete_pipeline(struct snd_sof_dev *sdev,
sdev             3165 sound/soc/sof/topology.c 	dev_dbg(sdev->dev, "tplg: complete pipeline %s id %d\n",
sdev             3173 sound/soc/sof/topology.c 	ret = sof_ipc_tx_message(sdev->ipc,
sdev             3184 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev             3188 sound/soc/sof/topology.c 	list_for_each_entry(swidget, &sdev->widget_list, list) {
sdev             3195 sound/soc/sof/topology.c 				snd_sof_complete_pipeline(sdev, swidget);
sdev             3205 sound/soc/sof/topology.c 	snd_sof_cache_kcontrol_val(sdev);
sdev             3212 sound/soc/sof/topology.c 	struct snd_sof_dev *sdev = snd_soc_component_get_drvdata(scomp);
sdev             3220 sound/soc/sof/topology.c 		dev_dbg(sdev->dev, "No topology ABI info\n");
sdev             3225 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: invalid topology ABI size\n");
sdev             3229 sound/soc/sof/topology.c 	dev_info(sdev->dev,
sdev             3240 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: incompatible topology ABI version\n");
sdev             3246 sound/soc/sof/topology.c 			dev_warn(sdev->dev, "warn: topology ABI is more recent than kernel\n");
sdev             3248 sound/soc/sof/topology.c 			dev_err(sdev->dev, "error: topology ABI is more recent than kernel\n");
sdev             3306 sound/soc/sof/topology.c int snd_sof_init_topology(struct snd_sof_dev *sdev,
sdev             3310 sound/soc/sof/topology.c 	sdev->tplg_ops = ops;
sdev             3315 sound/soc/sof/topology.c int snd_sof_load_topology(struct snd_sof_dev *sdev, const char *file)
sdev             3320 sound/soc/sof/topology.c 	dev_dbg(sdev->dev, "loading topology:%s\n", file);
sdev             3322 sound/soc/sof/topology.c 	ret = request_firmware(&fw, file, sdev->dev);
sdev             3324 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: tplg request firmware %s failed err: %d\n",
sdev             3329 sound/soc/sof/topology.c 	ret = snd_soc_tplg_component_load(sdev->component,
sdev             3333 sound/soc/sof/topology.c 		dev_err(sdev->dev, "error: tplg component load failed %d\n",
sdev               16 sound/soc/sof/trace.c static size_t sof_trace_avail(struct snd_sof_dev *sdev,
sdev               19 sound/soc/sof/trace.c 	loff_t host_offset = READ_ONCE(sdev->host_offset);
sdev               36 sound/soc/sof/trace.c static size_t sof_wait_trace_avail(struct snd_sof_dev *sdev,
sdev               40 sound/soc/sof/trace.c 	size_t ret = sof_trace_avail(sdev, pos, buffer_size);
sdev               46 sound/soc/sof/trace.c 	if (!sdev->dtrace_is_enabled && sdev->dtrace_draining) {
sdev               51 sound/soc/sof/trace.c 		sdev->dtrace_draining = false;
sdev               58 sound/soc/sof/trace.c 	add_wait_queue(&sdev->trace_sleep, &wait);
sdev               64 sound/soc/sof/trace.c 	remove_wait_queue(&sdev->trace_sleep, &wait);
sdev               66 sound/soc/sof/trace.c 	return sof_trace_avail(sdev, pos, buffer_size);
sdev               73 sound/soc/sof/trace.c 	struct snd_sof_dev *sdev = dfse->sdev;
sdev               80 sound/soc/sof/trace.c 	sdev->dtrace_error = false;
sdev               96 sound/soc/sof/trace.c 	avail = sof_wait_trace_avail(sdev, lpos, buffer_size);
sdev               97 sound/soc/sof/trace.c 	if (sdev->dtrace_error) {
sdev               98 sound/soc/sof/trace.c 		dev_err(sdev->dev, "error: trace IO error\n");
sdev              119 sound/soc/sof/trace.c 	struct snd_sof_dev *sdev = dfse->sdev;
sdev              122 sound/soc/sof/trace.c 	if (!sdev->dtrace_is_enabled)
sdev              123 sound/soc/sof/trace.c 		sdev->host_offset = 0;
sdev              135 sound/soc/sof/trace.c static int trace_debugfs_create(struct snd_sof_dev *sdev)
sdev              139 sound/soc/sof/trace.c 	if (!sdev)
sdev              142 sound/soc/sof/trace.c 	dfse = devm_kzalloc(sdev->dev, sizeof(*dfse), GFP_KERNEL);
sdev              147 sound/soc/sof/trace.c 	dfse->buf = sdev->dmatb.area;
sdev              148 sound/soc/sof/trace.c 	dfse->size = sdev->dmatb.bytes;
sdev              149 sound/soc/sof/trace.c 	dfse->sdev = sdev;
sdev              151 sound/soc/sof/trace.c 	debugfs_create_file("trace", 0444, sdev->debugfs_root, dfse,
sdev              157 sound/soc/sof/trace.c int snd_sof_init_trace_ipc(struct snd_sof_dev *sdev)
sdev              159 sound/soc/sof/trace.c 	struct sof_ipc_fw_ready *ready = &sdev->fw_ready;
sdev              165 sound/soc/sof/trace.c 	if (sdev->dtrace_is_enabled || !sdev->dma_trace_pages)
sdev              179 sound/soc/sof/trace.c 	params.buffer.phy_addr = sdev->dmatp.addr;
sdev              180 sound/soc/sof/trace.c 	params.buffer.size = sdev->dmatb.bytes;
sdev              181 sound/soc/sof/trace.c 	params.buffer.pages = sdev->dma_trace_pages;
sdev              184 sound/soc/sof/trace.c 	sdev->host_offset = 0;
sdev              185 sound/soc/sof/trace.c 	sdev->dtrace_draining = false;
sdev              187 sound/soc/sof/trace.c 	ret = snd_sof_dma_trace_init(sdev, &params.stream_tag);
sdev              189 sound/soc/sof/trace.c 		dev_err(sdev->dev,
sdev              193 sound/soc/sof/trace.c 	dev_dbg(sdev->dev, "stream_tag: %d\n", params.stream_tag);
sdev              196 sound/soc/sof/trace.c 	ret = sof_ipc_tx_message(sdev->ipc,
sdev              200 sound/soc/sof/trace.c 		dev_err(sdev->dev,
sdev              205 sound/soc/sof/trace.c 	ret = snd_sof_dma_trace_trigger(sdev, SNDRV_PCM_TRIGGER_START);
sdev              207 sound/soc/sof/trace.c 		dev_err(sdev->dev,
sdev              212 sound/soc/sof/trace.c 	sdev->dtrace_is_enabled = true;
sdev              217 sound/soc/sof/trace.c 	snd_sof_dma_trace_release(sdev);
sdev              221 sound/soc/sof/trace.c int snd_sof_init_trace(struct snd_sof_dev *sdev)
sdev              226 sound/soc/sof/trace.c 	sdev->dtrace_is_enabled = false;
sdev              229 sound/soc/sof/trace.c 	ret = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, sdev->dev,
sdev              230 sound/soc/sof/trace.c 				  PAGE_SIZE, &sdev->dmatp);
sdev              232 sound/soc/sof/trace.c 		dev_err(sdev->dev,
sdev              238 sound/soc/sof/trace.c 	ret = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV_SG, sdev->dev,
sdev              239 sound/soc/sof/trace.c 				  DMA_BUF_SIZE_FOR_TRACE, &sdev->dmatb);
sdev              241 sound/soc/sof/trace.c 		dev_err(sdev->dev,
sdev              247 sound/soc/sof/trace.c 	ret = snd_sof_create_page_table(sdev, &sdev->dmatb, sdev->dmatp.area,
sdev              248 sound/soc/sof/trace.c 					sdev->dmatb.bytes);
sdev              252 sound/soc/sof/trace.c 	sdev->dma_trace_pages = ret;
sdev              253 sound/soc/sof/trace.c 	dev_dbg(sdev->dev, "dma_trace_pages: %d\n", sdev->dma_trace_pages);
sdev              255 sound/soc/sof/trace.c 	if (sdev->first_boot) {
sdev              256 sound/soc/sof/trace.c 		ret = trace_debugfs_create(sdev);
sdev              261 sound/soc/sof/trace.c 	init_waitqueue_head(&sdev->trace_sleep);
sdev              263 sound/soc/sof/trace.c 	ret = snd_sof_init_trace_ipc(sdev);
sdev              269 sound/soc/sof/trace.c 	sdev->dma_trace_pages = 0;
sdev              270 sound/soc/sof/trace.c 	snd_dma_free_pages(&sdev->dmatb);
sdev              272 sound/soc/sof/trace.c 	snd_dma_free_pages(&sdev->dmatp);
sdev              277 sound/soc/sof/trace.c int snd_sof_trace_update_pos(struct snd_sof_dev *sdev,
sdev              280 sound/soc/sof/trace.c 	if (sdev->dtrace_is_enabled && sdev->host_offset != posn->host_offset) {
sdev              281 sound/soc/sof/trace.c 		sdev->host_offset = posn->host_offset;
sdev              282 sound/soc/sof/trace.c 		wake_up(&sdev->trace_sleep);
sdev              286 sound/soc/sof/trace.c 		dev_err(sdev->dev,
sdev              294 sound/soc/sof/trace.c void snd_sof_trace_notify_for_error(struct snd_sof_dev *sdev)
sdev              296 sound/soc/sof/trace.c 	if (sdev->dtrace_is_enabled) {
sdev              297 sound/soc/sof/trace.c 		dev_err(sdev->dev, "error: waking up any trace sleepers\n");
sdev              298 sound/soc/sof/trace.c 		sdev->dtrace_error = true;
sdev              299 sound/soc/sof/trace.c 		wake_up(&sdev->trace_sleep);
sdev              304 sound/soc/sof/trace.c void snd_sof_release_trace(struct snd_sof_dev *sdev)
sdev              308 sound/soc/sof/trace.c 	if (!sdev->dtrace_is_enabled)
sdev              311 sound/soc/sof/trace.c 	ret = snd_sof_dma_trace_trigger(sdev, SNDRV_PCM_TRIGGER_STOP);
sdev              313 sound/soc/sof/trace.c 		dev_err(sdev->dev,
sdev              316 sound/soc/sof/trace.c 	ret = snd_sof_dma_trace_release(sdev);
sdev              318 sound/soc/sof/trace.c 		dev_err(sdev->dev,
sdev              321 sound/soc/sof/trace.c 	sdev->dtrace_is_enabled = false;
sdev              322 sound/soc/sof/trace.c 	sdev->dtrace_draining = true;
sdev              323 sound/soc/sof/trace.c 	wake_up(&sdev->trace_sleep);
sdev              327 sound/soc/sof/trace.c void snd_sof_free_trace(struct snd_sof_dev *sdev)
sdev              329 sound/soc/sof/trace.c 	snd_sof_release_trace(sdev);
sdev              331 sound/soc/sof/trace.c 	if (sdev->dma_trace_pages) {
sdev              332 sound/soc/sof/trace.c 		snd_dma_free_pages(&sdev->dmatb);
sdev              333 sound/soc/sof/trace.c 		snd_dma_free_pages(&sdev->dmatp);
sdev              334 sound/soc/sof/trace.c 		sdev->dma_trace_pages = 0;
sdev               24 sound/soc/sof/utils.c void sof_io_write(struct snd_sof_dev *sdev, void __iomem *addr, u32 value)
sdev               30 sound/soc/sof/utils.c u32 sof_io_read(struct snd_sof_dev *sdev, void __iomem *addr)
sdev               36 sound/soc/sof/utils.c void sof_io_write64(struct snd_sof_dev *sdev, void __iomem *addr, u64 value)
sdev               42 sound/soc/sof/utils.c u64 sof_io_read64(struct snd_sof_dev *sdev, void __iomem *addr)
sdev               52 sound/soc/sof/utils.c void sof_mailbox_write(struct snd_sof_dev *sdev, u32 offset,
sdev               55 sound/soc/sof/utils.c 	void __iomem *dest = sdev->bar[sdev->mailbox_bar] + offset;
sdev               61 sound/soc/sof/utils.c void sof_mailbox_read(struct snd_sof_dev *sdev, u32 offset,
sdev               64 sound/soc/sof/utils.c 	void __iomem *src = sdev->bar[sdev->mailbox_bar] + offset;
sdev               74 sound/soc/sof/utils.c void sof_block_write(struct snd_sof_dev *sdev, u32 bar, u32 offset, void *src,
sdev               77 sound/soc/sof/utils.c 	void __iomem *dest = sdev->bar[bar] + offset;
sdev              105 sound/soc/sof/utils.c void sof_block_read(struct snd_sof_dev *sdev, u32 bar, u32 offset, void *dest,
sdev              108 sound/soc/sof/utils.c 	void __iomem *src = sdev->bar[bar] + offset;
sdev               84 sound/soc/sof/xtensa/core.c static void xtensa_dsp_oops(struct snd_sof_dev *sdev, void *oops)
sdev               89 sound/soc/sof/xtensa/core.c 	dev_err(sdev->dev, "error: DSP Firmware Oops\n");
sdev               92 sound/soc/sof/xtensa/core.c 			dev_err(sdev->dev, "error: Exception Cause: %s, %s\n",
sdev               97 sound/soc/sof/xtensa/core.c 	dev_err(sdev->dev, "EXCCAUSE 0x%8.8x EXCVADDR 0x%8.8x PS       0x%8.8x SAR     0x%8.8x\n",
sdev               99 sound/soc/sof/xtensa/core.c 	dev_err(sdev->dev, "EPC1     0x%8.8x EPC2     0x%8.8x EPC3     0x%8.8x EPC4    0x%8.8x",
sdev              101 sound/soc/sof/xtensa/core.c 	dev_err(sdev->dev, "EPC5     0x%8.8x EPC6     0x%8.8x EPC7     0x%8.8x DEPC    0x%8.8x",
sdev              103 sound/soc/sof/xtensa/core.c 	dev_err(sdev->dev, "EPS2     0x%8.8x EPS3     0x%8.8x EPS4     0x%8.8x EPS5    0x%8.8x",
sdev              105 sound/soc/sof/xtensa/core.c 	dev_err(sdev->dev, "EPS6     0x%8.8x EPS7     0x%8.8x INTENABL 0x%8.8x INTERRU 0x%8.8x",
sdev              109 sound/soc/sof/xtensa/core.c static void xtensa_stack(struct snd_sof_dev *sdev, void *oops, u32 *stack,
sdev              118 sound/soc/sof/xtensa/core.c 	dev_err(sdev->dev, "stack dump from 0x%8.8x\n", stack_ptr);
sdev              127 sound/soc/sof/xtensa/core.c 		dev_err(sdev->dev, "0x%08x: %s\n", stack_ptr + i, buf);
sdev              206 tools/usb/usbip/libsrc/usbip_common.c int read_usb_device(struct udev_device *sdev, struct usbip_usb_device *udev)
sdev              211 tools/usb/usbip/libsrc/usbip_common.c 	READ_ATTR(udev, uint8_t,  sdev, bDeviceClass,		"%02x\n");
sdev              212 tools/usb/usbip/libsrc/usbip_common.c 	READ_ATTR(udev, uint8_t,  sdev, bDeviceSubClass,	"%02x\n");
sdev              213 tools/usb/usbip/libsrc/usbip_common.c 	READ_ATTR(udev, uint8_t,  sdev, bDeviceProtocol,	"%02x\n");
sdev              215 tools/usb/usbip/libsrc/usbip_common.c 	READ_ATTR(udev, uint16_t, sdev, idVendor,		"%04x\n");
sdev              216 tools/usb/usbip/libsrc/usbip_common.c 	READ_ATTR(udev, uint16_t, sdev, idProduct,		"%04x\n");
sdev              217 tools/usb/usbip/libsrc/usbip_common.c 	READ_ATTR(udev, uint16_t, sdev, bcdDevice,		"%04x\n");
sdev              219 tools/usb/usbip/libsrc/usbip_common.c 	READ_ATTR(udev, uint8_t,  sdev, bConfigurationValue,	"%02x\n");
sdev              220 tools/usb/usbip/libsrc/usbip_common.c 	READ_ATTR(udev, uint8_t,  sdev, bNumConfigurations,	"%02x\n");
sdev              221 tools/usb/usbip/libsrc/usbip_common.c 	READ_ATTR(udev, uint8_t,  sdev, bNumInterfaces,		"%02x\n");
sdev              223 tools/usb/usbip/libsrc/usbip_common.c 	READ_ATTR(udev, uint8_t,  sdev, devnum,			"%d\n");
sdev              224 tools/usb/usbip/libsrc/usbip_common.c 	udev->speed = read_attr_speed(sdev);
sdev              226 tools/usb/usbip/libsrc/usbip_common.c 	path = udev_device_get_syspath(sdev);
sdev              227 tools/usb/usbip/libsrc/usbip_common.c 	name = udev_device_get_sysname(sdev);
sdev              135 tools/usb/usbip/libsrc/usbip_common.h int read_usb_device(struct udev_device *sdev, struct usbip_usb_device *udev);
sdev               63 tools/usb/usbip/libsrc/usbip_device_driver.c int read_usb_vudc_device(struct udev_device *sdev, struct usbip_usb_device *dev)
sdev               74 tools/usb/usbip/libsrc/usbip_device_driver.c 	plat = udev_device_get_parent(sdev);
sdev              100 tools/usb/usbip/libsrc/usbip_device_driver.c 	speed = udev_device_get_sysattr_value(sdev, "current_speed");
sdev               31 tools/usb/usbip/libsrc/usbip_host_common.h 	int (*read_device)(struct udev_device *sdev,