Searched refs:sdev (Results 101 - 125 of 221) sorted by relevance

123456789

/drivers/target/loopback/
H A Dtcm_loop.c118 struct scsi_device *sdev,
124 scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), depth);
127 scsi_track_queue_full(sdev, depth);
130 scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), depth);
135 return sdev->queue_depth;
138 static int tcm_loop_change_queue_type(struct scsi_device *sdev, int tag) argument
140 if (sdev->tagged_supported) {
141 scsi_set_tag_type(sdev, ta
117 tcm_loop_change_queue_depth( struct scsi_device *sdev, int depth, int reason) argument
[all...]
/drivers/message/fusion/
H A Dmptfc.c99 static int mptfc_slave_alloc(struct scsi_device *sdev);
192 struct scsi_device *sdev = SCpnt->device; local
193 struct Scsi_Host *shost = sdev->host;
194 struct fc_rport *rport = starget_to_rport(scsi_target(sdev));
572 * @sdev
576 mptfc_dump_lun_info(MPT_ADAPTER *ioc, struct fc_rport *rport, struct scsi_device *sdev, argument
586 "mptfc_slv_alloc.%d: num_luns %d, sdev.id %d, "
589 sdev->host->host_no,
591 sdev->id, ri->pg0.CurrentTargetID,
605 mptfc_slave_alloc(struct scsi_device *sdev) argument
[all...]
H A Dmptsas.h104 struct scsi_device *sdev; member in struct:mptsas_hotplug_event
/drivers/misc/mic/host/
H A Dmic_sysfs.c54 dev_dbg(mdev->sdev->parent, "Shutdown Status %s -> %s\n",
62 dev_dbg(mdev->sdev->parent, "State %s -> %s\n",
144 dev_err(mdev->sdev->parent,
H A Dmic_virtio.c65 dev_err(mdev->sdev->parent, "%s %d err %d\n",
443 dev_dbg(mdev->sdev->parent, "%s\n", __func__);
689 dev_dbg(mdev->sdev->parent,
707 dev_dbg(mdev->sdev->parent, "request irq failed\n");
723 dev_dbg(mdev->sdev->parent, "Added virtio device id %d\n", dd->type);
758 dev_dbg(mdev->sdev->parent,
768 dev_dbg(mdev->sdev->parent,
797 dev_dbg(mdev->sdev->parent,
/drivers/scsi/lpfc/
H A Dlpfc_scsi.c72 lpfc_rport_data_from_scsi_device(struct scsi_device *sdev) argument
74 struct lpfc_vport *vport = (struct lpfc_vport *)sdev->host->hostdata;
77 return ((struct lpfc_device_data *)sdev->hostdata)->rport_data;
79 return (struct lpfc_rport_data *)sdev->hostdata;
301 * @sdev: Pointer the scsi device on which to change the queue depth.
302 * @qdepth: New queue depth to set the sdev to.
310 lpfc_change_queue_depth(struct scsi_device *sdev, int qdepth, int reason) argument
312 struct lpfc_vport *vport = (struct lpfc_vport *) sdev->host->hostdata;
317 old_queue_depth = sdev->queue_depth;
323 scsi_adjust_queue_depth(sdev, scsi_get_tag_typ
353 lpfc_change_queue_type(struct scsi_device *sdev, int tag_type) argument
423 struct scsi_device *sdev; local
474 struct scsi_device *sdev; local
5524 lpfc_slave_alloc(struct scsi_device *sdev) argument
5630 lpfc_slave_configure(struct scsi_device *sdev) argument
5657 lpfc_slave_destroy(struct scsi_device *sdev) argument
[all...]
/drivers/input/joystick/
H A Dgamecon.c271 struct gc_subdev *sdev = data; local
272 unsigned char target = 1 << sdev->idx; /* select desired pin */
309 struct gc_subdev *sdev; local
312 sdev = kmalloc(sizeof(*sdev), GFP_KERNEL);
313 if (!sdev)
316 sdev->idx = i;
320 err = input_ff_create_memless(dev, sdev, gc_n64_play_effect);
322 kfree(sdev);
/drivers/mtd/devices/
H A Dspear_smi.c1046 struct spear_smi *sdev = dev_get_drvdata(dev); local
1048 if (sdev && sdev->clk)
1049 clk_disable_unprepare(sdev->clk);
1056 struct spear_smi *sdev = dev_get_drvdata(dev); local
1059 if (sdev && sdev->clk)
1060 ret = clk_prepare_enable(sdev->clk);
1063 spear_smi_hw_init(sdev);
/drivers/scsi/
H A Dxen-scsifront.c606 static int scsifront_sdev_configure(struct scsi_device *sdev) argument
608 struct vscsifrnt_info *info = shost_priv(sdev->host);
617 static void scsifront_sdev_destroy(struct scsi_device *sdev) argument
619 struct vscsifrnt_info *info = shost_priv(sdev->host);
867 struct scsi_device *sdev; local
916 sdev = scsi_device_lookup(info->host, chn, tgt, lun);
917 if (sdev) {
918 scsi_remove_device(sdev);
919 scsi_device_put(sdev);
H A Dscsi_transport_sas.c159 static struct sas_end_device *sas_sdev_to_rdev(struct scsi_device *sdev) argument
161 struct sas_rphy *rphy = target_to_rphy(sdev->sdev_target);
371 * @sdev: scsi device struct
378 sas_tlr_supported(struct scsi_device *sdev) argument
381 struct sas_end_device *rdev = sas_sdev_to_rdev(sdev);
385 if (scsi_get_vpd_page(sdev, 0x90, buffer, vpd_len))
406 * @sdev: scsi device struct
412 sas_disable_tlr(struct scsi_device *sdev) argument
414 struct sas_end_device *rdev = sas_sdev_to_rdev(sdev);
422 * @sdev
427 sas_enable_tlr(struct scsi_device *sdev) argument
442 sas_is_tlr_enabled(struct scsi_device *sdev) argument
1273 sas_read_port_mode_page(struct scsi_device *sdev) argument
[all...]
H A Dstorvsc_drv.c414 struct scsi_device *sdev; local
419 sdev = scsi_device_lookup(wrk->host, 0, 0, lun);
420 if (!sdev)
422 scsi_rescan_device(&sdev->sdev_gendev);
423 scsi_device_put(sdev);
450 struct scsi_device *sdev; local
456 sdev = scsi_device_lookup(wrk->host, 0, 0, wrk->lun);
458 if (sdev) {
459 scsi_remove_device(sdev);
460 scsi_device_put(sdev);
1453 storvsc_get_chs(struct scsi_device *sdev, struct block_device * bdev, sector_t capacity, int *info) argument
[all...]
H A Dipr.c1147 res->sdev = NULL;
1322 if (res->sdev && new_path)
1323 sdev_printk(KERN_INFO, res->sdev, "Resource path: %s\n",
1426 if (res->sdev) {
1435 } else if (!res->sdev || res->del_from_ml) {
3245 struct scsi_device *sdev; local
3283 if (res->del_from_ml && res->sdev) {
3285 sdev = res->sdev;
3286 if (!scsi_device_get(sdev)) {
4330 ipr_change_queue_depth(struct scsi_device *sdev, int qdepth, int reason) argument
4359 ipr_change_queue_type(struct scsi_device *sdev, int tag_type) argument
4400 struct scsi_device *sdev = to_scsi_device(dev); local
4434 struct scsi_device *sdev = to_scsi_device(dev); local
4474 struct scsi_device *sdev = to_scsi_device(dev); local
4510 struct scsi_device *sdev = to_scsi_device(dev); local
4556 ipr_biosparam(struct scsi_device *sdev, struct block_device *block_device, sector_t capacity, int *parm) argument
4690 ipr_find_sdev(struct scsi_device *sdev) argument
4712 ipr_slave_destroy(struct scsi_device *sdev) argument
4741 ipr_slave_configure(struct scsi_device *sdev) argument
4792 ipr_ata_slave_alloc(struct scsi_device *sdev) argument
4825 ipr_slave_alloc(struct scsi_device *sdev) argument
6297 ipr_ioctl(struct scsi_device *sdev, int cmd, void __user *arg) argument
[all...]
H A Dscsi_devinfo.c528 * @sdev: &scsi_device to get flags for
538 int scsi_get_device_flags(struct scsi_device *sdev, argument
542 return scsi_get_device_flags_keyed(sdev, vendor, model,
549 * @sdev: &scsi_device to get flags for
560 int scsi_get_device_flags_keyed(struct scsi_device *sdev, argument
629 if (sdev->sdev_bflags)
630 return sdev->sdev_bflags;
H A Dscsi_debug.c2636 static struct sdebug_dev_info * devInfoReg(struct scsi_device * sdev) argument
2641 (struct sdebug_dev_info *)sdev->hostdata;
2645 sdbg_host = *(struct sdebug_host_info **)shost_priv(sdev->host);
2651 if ((devip->used) && (devip->channel == sdev->channel) &&
2652 (devip->target == sdev->id) &&
2653 (devip->lun == sdev->lun))
2669 open_devip->channel = sdev->channel;
2670 open_devip->target = sdev->id;
2671 open_devip->lun = sdev->lun;
2676 if (sdev
4476 sdebug_change_qdepth(struct scsi_device *sdev, int qdepth, int reason) argument
4533 sdebug_change_qtype(struct scsi_device *sdev, int qtype) argument
[all...]
H A Dstex.c547 stex_slave_alloc(struct scsi_device *sdev) argument
550 sdev->tagged_supported = 1;
552 scsi_activate_tcq(sdev, sdev->host->can_queue);
558 stex_slave_config(struct scsi_device *sdev) argument
560 sdev->use_10_for_rw = 1;
561 sdev->use_10_for_ms = 1;
562 blk_queue_rq_timeout(sdev->request_queue, 60 * HZ);
563 sdev->tagged_supported = 1;
569 stex_slave_destroy(struct scsi_device *sdev) argument
1369 stex_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int geom[]) argument
[all...]
/drivers/ata/
H A Dsata_nv.c314 static int nv_adma_slave_config(struct scsi_device *sdev);
336 static int nv_swncq_slave_config(struct scsi_device *sdev);
673 static int nv_adma_slave_config(struct scsi_device *sdev) argument
675 struct ata_port *ap = ata_shost_to_port(sdev->host);
686 rc = ata_scsi_slave_config(sdev);
688 if (sdev->id >= ATA_MAX_DEVICES || sdev->channel || sdev->lun)
694 if (ap->link.device[sdev->id].class == ATA_DEV_ATAPI) {
739 sdev0 = ap->host->ports[0]->link.device[0].sdev;
1916 nv_swncq_slave_config(struct scsi_device *sdev) argument
[all...]
H A Dpata_macio.c794 static int pata_macio_slave_config(struct scsi_device *sdev) argument
796 struct ata_port *ap = ata_shost_to_port(sdev->host);
803 rc = ata_scsi_slave_config(sdev);
808 dev = &ap->link.device[sdev->id];
812 blk_queue_update_dma_alignment(sdev->request_queue, 31);
813 blk_queue_update_dma_pad(sdev->request_queue, 31);
827 blk_queue_update_dma_alignment(sdev->request_queue, 15);
828 blk_queue_update_dma_pad(sdev->request_queue, 15);
/drivers/spi/
H A Dspi-altera.c64 static inline struct altera_spi *altera_spi_to_hw(struct spi_device *sdev) argument
66 return spi_master_get_devdata(sdev->master);
/drivers/macintosh/
H A Dmacio_asic.c459 struct macio_dev *rdev, *mdev, *mbdev = NULL, *sdev = NULL; local
492 sdev = mdev;
509 if (sdev) {
510 pnode = sdev->ofdev.dev.of_node;
515 if (macio_add_one_device(chip, &sdev->ofdev.dev, np,
/drivers/staging/iio/resolver/
H A Dad2s1210.c85 struct spi_device *sdev; member in struct:ad2s1210_state
116 ret = spi_write(st->sdev, st->tx, 1);
138 ret = spi_sync_transfer(st->sdev, &xfer, 1);
492 ret = spi_read(st->sdev, st->rx, 2);
688 st->sdev = spi;
/drivers/scsi/libsas/
H A Dsas_scsi_host.c872 int sas_ioctl(struct scsi_device *sdev, int cmd, void __user *arg) argument
874 struct domain_device *dev = sdev_to_domain_dev(sdev);
877 return ata_sas_scsi_ioctl(dev->sata_dev.ap, sdev, cmd, arg);
959 int sas_change_queue_depth(struct scsi_device *sdev, int depth, int reason) argument
961 struct domain_device *dev = sdev_to_domain_dev(sdev);
964 return __ata_change_queue_depth(dev->sata_dev.ap, sdev, depth,
970 if (!sdev->tagged_supported)
972 scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), depth);
975 scsi_track_queue_full(sdev, dept
[all...]
/drivers/scsi/qla2xxx/
H A Dqla_os.c1387 qla2xxx_slave_alloc(struct scsi_device *sdev) argument
1389 struct fc_rport *rport = starget_to_rport(scsi_target(sdev));
1394 sdev->hostdata = *(fc_port_t **)rport->dd_data;
1400 qla2xxx_slave_configure(struct scsi_device *sdev) argument
1402 scsi_qla_host_t *vha = shost_priv(sdev->host);
1406 blk_queue_update_dma_alignment(sdev->request_queue, 0x7);
1408 if (sdev->tagged_supported)
1409 scsi_activate_tcq(sdev, req->max_q_depth);
1411 scsi_deactivate_tcq(sdev, req->max_q_depth);
1416 qla2xxx_slave_destroy(struct scsi_device *sdev) argument
1421 qla2x00_handle_queue_full(struct scsi_device *sdev, int qdepth) argument
1433 qla2x00_adjust_sdev_qdepth_up(struct scsi_device *sdev, int qdepth) argument
1457 qla2x00_change_queue_depth(struct scsi_device *sdev, int qdepth, int reason) argument
1477 qla2x00_change_queue_type(struct scsi_device *sdev, int tag_type) argument
[all...]
/drivers/staging/rts5208/
H A Drtsx.c77 static int slave_alloc(struct scsi_device *sdev) argument
84 sdev->inquiry_len = 36;
88 static int slave_configure(struct scsi_device *sdev) argument
98 blk_queue_dma_alignment(sdev->request_queue, (512 - 1));
114 if (sdev->scsi_level < SCSI_2)
115 sdev->scsi_level = sdev->sdev_target->scsi_level = SCSI_2;
/drivers/scsi/ufs/
H A Dufshcd.c2683 * @sdev: pointer to SCSI device
2690 static void ufshcd_set_queue_depth(struct scsi_device *sdev) argument
2696 hba = shost_priv(sdev->host);
2700 ufshcd_scsi_to_upiu_lun(sdev->lun),
2716 scsi_activate_tcq(sdev, lun_qdepth);
2758 * @sdev: pointer to SCSI device
2762 struct scsi_device *sdev)
2768 if (!ufshcd_get_lu_wp(hba, ufshcd_scsi_to_upiu_lun(sdev->lun),
2777 * @sdev: pointer to SCSI device
2781 static int ufshcd_slave_alloc(struct scsi_device *sdev) argument
2761 ufshcd_get_lu_power_on_wp_status(struct ufs_hba *hba, struct scsi_device *sdev) argument
2815 ufshcd_change_queue_depth(struct scsi_device *sdev, int depth, int reason) argument
2844 ufshcd_slave_configure(struct scsi_device *sdev) argument
2858 ufshcd_slave_destroy(struct scsi_device *sdev) argument
[all...]
/drivers/infiniband/ulp/srp/
H A Dib_srp.c1023 * @sdev: If not NULL, only take ownership for this SCSI device.
1032 struct scsi_device *sdev,
1039 (!sdev || req->scmnd->device == sdev) &&
1073 struct srp_request *req, struct scsi_device *sdev,
1076 struct scsi_cmnd *scmnd = srp_claim_req(target, req, sdev, NULL);
1089 struct scsi_device *sdev; local
1096 shost_for_each_device(sdev, shost)
1097 WARN_ON_ONCE(sdev->request_queue->request_fn_active);
2263 * @sdev
1030 srp_claim_req(struct srp_target_port *target, struct srp_request *req, struct scsi_device *sdev, struct scsi_cmnd *scmnd) argument
1072 srp_finish_req(struct srp_target_port *target, struct srp_request *req, struct scsi_device *sdev, int result) argument
2269 srp_change_queue_type(struct scsi_device *sdev, int tag_type) argument
2293 srp_change_queue_depth(struct scsi_device *sdev, int qdepth, int reason) argument
2422 srp_slave_configure(struct scsi_device *sdev) argument
[all...]

Completed in 3332 milliseconds

123456789