Home
last modified time | relevance | path

Searched refs:sdev (Results 1 – 200 of 265) sorted by relevance

12

/linux-4.4.14/drivers/scsi/
Dscsi_dh.c76 scsi_dh_find_driver(struct scsi_device *sdev) in scsi_dh_find_driver() argument
80 if (scsi_device_tpgs(sdev)) in scsi_dh_find_driver()
84 if (!strncmp(sdev->vendor, b->vendor, strlen(b->vendor)) && in scsi_dh_find_driver()
85 !strncmp(sdev->model, b->model, strlen(b->model))) { in scsi_dh_find_driver()
126 static int scsi_dh_handler_attach(struct scsi_device *sdev, in scsi_dh_handler_attach() argument
134 error = scsi_dh->attach(sdev); in scsi_dh_handler_attach()
136 sdev_printk(KERN_ERR, sdev, "%s: Attach failed (%d)\n", in scsi_dh_handler_attach()
140 sdev->handler = scsi_dh; in scsi_dh_handler_attach()
149 static void scsi_dh_handler_detach(struct scsi_device *sdev) in scsi_dh_handler_detach() argument
151 sdev->handler->detach(sdev); in scsi_dh_handler_detach()
[all …]
Dscsi_scan.c180 static void scsi_unlock_floptical(struct scsi_device *sdev, in scsi_unlock_floptical() argument
185 sdev_printk(KERN_NOTICE, sdev, "unlocking floptical drive\n"); in scsi_unlock_floptical()
192 scsi_execute_req(sdev, scsi_cmd, DMA_FROM_DEVICE, result, 0x2a, NULL, in scsi_unlock_floptical()
213 struct scsi_device *sdev; in scsi_alloc_sdev() local
219 sdev = kzalloc(sizeof(*sdev) + shost->transportt->device_size, in scsi_alloc_sdev()
221 if (!sdev) in scsi_alloc_sdev()
224 sdev->vendor = scsi_null_device_strs; in scsi_alloc_sdev()
225 sdev->model = scsi_null_device_strs; in scsi_alloc_sdev()
226 sdev->rev = scsi_null_device_strs; in scsi_alloc_sdev()
227 sdev->host = shost; in scsi_alloc_sdev()
[all …]
Dscsi_ioctl.c88 static int ioctl_internal_command(struct scsi_device *sdev, char *cmd, in ioctl_internal_command() argument
94 SCSI_LOG_IOCTL(1, sdev_printk(KERN_INFO, sdev, in ioctl_internal_command()
97 result = scsi_execute_req(sdev, cmd, DMA_NONE, NULL, 0, in ioctl_internal_command()
100 SCSI_LOG_IOCTL(2, sdev_printk(KERN_INFO, sdev, in ioctl_internal_command()
108 sdev->lockable = 0; in ioctl_internal_command()
110 sdev_printk(KERN_INFO, sdev, in ioctl_internal_command()
117 if (sdev->removable) in ioctl_internal_command()
120 if (sdev->removable) { in ioctl_internal_command()
121 sdev->changed = 1; in ioctl_internal_command()
126 sdev_printk(KERN_INFO, sdev, in ioctl_internal_command()
[all …]
Dscsi_sysfs.c387 struct scsi_device *sdev; in scsi_device_cls_release() local
389 sdev = class_to_sdev(class_dev); in scsi_device_cls_release()
390 put_device(&sdev->sdev_gendev); in scsi_device_cls_release()
395 struct scsi_device *sdev; in scsi_device_dev_release_usercontext() local
400 sdev = container_of(work, struct scsi_device, ew.work); in scsi_device_dev_release_usercontext()
402 scsi_dh_release_device(sdev); in scsi_device_dev_release_usercontext()
404 parent = sdev->sdev_gendev.parent; in scsi_device_dev_release_usercontext()
406 spin_lock_irqsave(sdev->host->host_lock, flags); in scsi_device_dev_release_usercontext()
407 list_del(&sdev->siblings); in scsi_device_dev_release_usercontext()
408 list_del(&sdev->same_target_siblings); in scsi_device_dev_release_usercontext()
[all …]
Dscsi_lib.c122 struct scsi_device *sdev = cmd->device; in scsi_mq_requeue_cmd() local
127 put_device(&sdev->sdev_gendev); in scsi_mq_requeue_cmd()
216 int scsi_execute(struct scsi_device *sdev, const unsigned char *cmd, in scsi_execute() argument
225 req = blk_get_request(sdev->request_queue, write, __GFP_RECLAIM); in scsi_execute()
230 if (bufflen && blk_rq_map_kern(sdev->request_queue, req, in scsi_execute()
266 int scsi_execute_req_flags(struct scsi_device *sdev, const unsigned char *cmd, in scsi_execute_req_flags() argument
279 result = scsi_execute(sdev, cmd, data_direction, buffer, bufflen, in scsi_execute_req_flags()
309 void scsi_device_unbusy(struct scsi_device *sdev) in scsi_device_unbusy() argument
311 struct Scsi_Host *shost = sdev->host; in scsi_device_unbusy()
312 struct scsi_target *starget = scsi_target(sdev); in scsi_device_unbusy()
[all …]
Dscsi.c562 struct scsi_device *sdev = cmd->device; in scsi_finish_command() local
563 struct scsi_target *starget = scsi_target(sdev); in scsi_finish_command()
564 struct Scsi_Host *shost = sdev->host; in scsi_finish_command()
568 scsi_device_unbusy(sdev); in scsi_finish_command()
578 if (atomic_read(&sdev->device_blocked)) in scsi_finish_command()
579 atomic_set(&sdev->device_blocked, 0); in scsi_finish_command()
588 SCSI_LOG_MLCOMPLETE(4, sdev_printk(KERN_INFO, sdev, in scsi_finish_command()
617 int scsi_change_queue_depth(struct scsi_device *sdev, int depth) in scsi_change_queue_depth() argument
620 sdev->queue_depth = depth; in scsi_change_queue_depth()
624 return sdev->queue_depth; in scsi_change_queue_depth()
[all …]
Dses.c54 struct scsi_device *sdev = to_scsi_device(dev); in ses_probe() local
57 if (sdev->type != TYPE_ENCLOSURE) in ses_probe()
61 sdev_printk(KERN_NOTICE, sdev, "Attached Enclosure device\n"); in ses_probe()
84 static int ses_recv_diag(struct scsi_device *sdev, int page_code, in ses_recv_diag() argument
98 ret = scsi_execute_req(sdev, cmd, DMA_FROM_DEVICE, buf, bufflen, in ses_recv_diag()
111 sdev_printk(KERN_ERR, sdev, in ses_recv_diag()
118 static int ses_send_diag(struct scsi_device *sdev, int page_code, in ses_send_diag() argument
132 result = scsi_execute_req(sdev, cmd, DMA_TO_DEVICE, buf, bufflen, in ses_send_diag()
135 sdev_printk(KERN_ERR, sdev, "SEND DIAGNOSTIC result: %8x\n", in ses_send_diag()
145 struct scsi_device *sdev = to_scsi_device(edev->edev.parent); in ses_set_page2_descriptor() local
[all …]
Dscsi_error.c123 struct scsi_device *sdev = scmd->device; in scmd_eh_abort_handler() local
126 if (scsi_host_eh_past_deadline(sdev->host)) { in scmd_eh_abort_handler()
134 rtn = scsi_try_to_abort_cmd(sdev->host->hostt, scmd); in scmd_eh_abort_handler()
137 if (scsi_host_eh_past_deadline(sdev->host)) { in scmd_eh_abort_handler()
183 struct scsi_device *sdev = scmd->device; in scsi_abort_command() local
184 struct Scsi_Host *shost = sdev->host; in scsi_abort_command()
311 int scsi_block_when_processing_errors(struct scsi_device *sdev) in scsi_block_when_processing_errors() argument
315 wait_event(sdev->host->host_wait, !scsi_host_in_recovery(sdev->host)); in scsi_block_when_processing_errors()
317 online = scsi_device_online(sdev); in scsi_block_when_processing_errors()
319 SCSI_LOG_ERROR_RECOVERY(5, sdev_printk(KERN_INFO, sdev, in scsi_block_when_processing_errors()
[all …]
Dscsi_priv.h52 extern int scsi_get_device_flags(struct scsi_device *sdev,
55 extern int scsi_get_device_flags_keyed(struct scsi_device *sdev,
83 extern int scsi_maybe_unblock_host(struct scsi_device *sdev);
84 extern void scsi_device_unbusy(struct scsi_device *sdev);
88 extern struct request_queue *scsi_alloc_queue(struct scsi_device *sdev);
89 extern struct request_queue *scsi_mq_alloc_queue(struct scsi_device *sdev);
175 int scsi_dh_add_device(struct scsi_device *sdev);
176 void scsi_dh_release_device(struct scsi_device *sdev);
177 void scsi_dh_remove_device(struct scsi_device *sdev);
179 static inline int scsi_dh_add_device(struct scsi_device *sdev) { return 0; } in scsi_dh_add_device() argument
[all …]
Dscsi_proc.c179 struct scsi_device *sdev; in proc_print_scsidevice() local
186 sdev = to_scsi_device(dev); in proc_print_scsidevice()
189 sdev->host->host_no, sdev->channel, sdev->id, sdev->lun); in proc_print_scsidevice()
191 if (sdev->vendor[i] >= 0x20) in proc_print_scsidevice()
192 seq_putc(s, sdev->vendor[i]); in proc_print_scsidevice()
199 if (sdev->model[i] >= 0x20) in proc_print_scsidevice()
200 seq_putc(s, sdev->model[i]); in proc_print_scsidevice()
207 if (sdev->rev[i] >= 0x20) in proc_print_scsidevice()
208 seq_putc(s, sdev->rev[i]); in proc_print_scsidevice()
215 seq_printf(s, " Type: %s ", scsi_device_type(sdev->type)); in proc_print_scsidevice()
[all …]
Dscsi_transport_spi.c119 static int spi_execute(struct scsi_device *sdev, const void *cmd, in spi_execute() argument
128 result = scsi_execute(sdev, cmd, dir, buffer, bufflen, in spi_execute()
226 struct scsi_device *sdev = to_scsi_device(dev); in spi_device_configure() local
227 struct scsi_target *starget = sdev->sdev_target; in spi_device_configure()
228 unsigned bflags = scsi_get_device_flags_keyed(sdev, &sdev->inquiry[8], in spi_device_configure()
229 &sdev->inquiry[16], in spi_device_configure()
235 spi_support_sync(starget) = scsi_device_sync(sdev); in spi_device_configure()
236 spi_support_wide(starget) = scsi_device_wide(sdev); in spi_device_configure()
237 spi_support_dt(starget) = scsi_device_dt(sdev); in spi_device_configure()
238 spi_support_dt_only(starget) = scsi_device_dt_only(sdev); in spi_device_configure()
[all …]
Dscsi_pm.c219 struct scsi_device *sdev = to_scsi_device(dev); in sdev_runtime_suspend() local
222 err = blk_pre_runtime_suspend(sdev->request_queue); in sdev_runtime_suspend()
227 blk_post_runtime_suspend(sdev->request_queue, err); in sdev_runtime_suspend()
247 struct scsi_device *sdev = to_scsi_device(dev); in sdev_runtime_resume() local
251 blk_pre_runtime_resume(sdev->request_queue); in sdev_runtime_resume()
254 blk_post_runtime_resume(sdev->request_queue, err); in sdev_runtime_resume()
287 int scsi_autopm_get_device(struct scsi_device *sdev) in scsi_autopm_get_device() argument
291 err = pm_runtime_get_sync(&sdev->sdev_gendev); in scsi_autopm_get_device()
293 pm_runtime_put_sync(&sdev->sdev_gendev); in scsi_autopm_get_device()
300 void scsi_autopm_put_device(struct scsi_device *sdev) in scsi_autopm_put_device() argument
[all …]
Dsr.c180 struct scsi_device *sdev = cd->device; in scsi_cd_put() local
184 scsi_device_put(sdev); in scsi_cd_put()
188 static unsigned int sr_get_events(struct scsi_device *sdev) in sr_get_events() argument
204 result = scsi_execute_req(sdev, cmd, DMA_FROM_DEVICE, buf, sizeof(buf), in sr_get_events()
549 struct scsi_device *sdev = cd->device; in sr_block_ioctl() local
555 ret = scsi_ioctl_block_when_processing_errors(sdev, cmd, in sr_block_ioctl()
567 ret = scsi_ioctl(sdev, cmd, argp); in sr_block_ioctl()
575 ret = scsi_ioctl(sdev, cmd, argp); in sr_block_ioctl()
625 struct scsi_device *sdev = cd->device; in sr_open() local
633 if (!scsi_block_when_processing_errors(sdev)) in sr_open()
[all …]
Dscsi_logging.c96 void sdev_prefix_printk(const char *level, const struct scsi_device *sdev, in sdev_prefix_printk() argument
103 if (!sdev) in sdev_prefix_printk()
118 dev_printk(level, &sdev->sdev_gendev, "%s", logbuf); in sdev_prefix_printk()
339 scsi_log_dump_sense(const struct scsi_device *sdev, const char *name, int tag, in scsi_log_dump_sense() argument
359 dev_printk(KERN_INFO, &sdev->sdev_gendev, "%s", logbuf); in scsi_log_dump_sense()
365 scsi_log_print_sense_hdr(const struct scsi_device *sdev, const char *name, in scsi_log_print_sense_hdr() argument
376 dev_printk(KERN_INFO, &sdev->sdev_gendev, "%s", logbuf); in scsi_log_print_sense_hdr()
385 dev_printk(KERN_INFO, &sdev->sdev_gendev, "%s", logbuf); in scsi_log_print_sense_hdr()
390 scsi_log_print_sense(const struct scsi_device *sdev, const char *name, int tag, in scsi_log_print_sense() argument
396 scsi_log_print_sense_hdr(sdev, name, tag, &sshdr); in scsi_log_print_sense()
[all …]
Dsd.c588 struct scsi_device *sdev = sdkp->device; in scsi_disk_put() local
592 scsi_device_put(sdev); in scsi_disk_put()
1182 struct scsi_device *sdev; in sd_open() local
1190 sdev = sdkp->device; in sd_open()
1197 if (!scsi_block_when_processing_errors(sdev)) in sd_open()
1200 if (sdev->removable || sdkp->write_prot) in sd_open()
1207 if (sdev->removable && !sdkp->media_present && !(mode & FMODE_NDELAY)) in sd_open()
1225 if (!scsi_device_online(sdev)) in sd_open()
1228 if ((atomic_inc_return(&sdkp->openers) == 1) && sdev->removable) { in sd_open()
1229 if (scsi_block_when_processing_errors(sdev)) in sd_open()
[all …]
Dstorvsc_drv.c459 struct scsi_device *sdev; in storvsc_device_scan() local
464 sdev = scsi_device_lookup(wrk->host, 0, 0, lun); in storvsc_device_scan()
465 if (!sdev) in storvsc_device_scan()
467 scsi_rescan_device(&sdev->sdev_gendev); in storvsc_device_scan()
468 scsi_device_put(sdev); in storvsc_device_scan()
478 struct scsi_device *sdev; in storvsc_host_scan() local
495 shost_for_each_device(sdev, host) in storvsc_host_scan()
496 scsi_test_unit_ready(sdev, 1, 1, NULL); in storvsc_host_scan()
509 struct scsi_device *sdev; in storvsc_remove_lun() local
515 sdev = scsi_device_lookup(wrk->host, 0, 0, wrk->lun); in storvsc_remove_lun()
[all …]
Dscsi_transport_srp.c413 struct scsi_device *sdev; in scsi_request_fn_active() local
417 shost_for_each_device(sdev, shost) { in scsi_request_fn_active()
418 q = sdev->request_queue; in scsi_request_fn_active()
570 struct scsi_device *sdev; in srp_reconnect_rport() local
596 __shost_for_each_device(sdev, shost) in srp_reconnect_rport()
597 if (sdev->sdev_state == SDEV_OFFLINE) in srp_reconnect_rport()
598 sdev->sdev_state = SDEV_RUNNING; in srp_reconnect_rport()
634 struct scsi_device *sdev = scmd->device; in srp_timed_out() local
635 struct Scsi_Host *shost = sdev->host; in srp_timed_out()
639 pr_debug("timeout for sdev %s\n", dev_name(&sdev->sdev_gendev)); in srp_timed_out()
[all …]
Dvirtio_scsi.c324 struct scsi_device *sdev; in virtscsi_handle_transport_reset() local
334 sdev = scsi_device_lookup(shost, 0, target, lun); in virtscsi_handle_transport_reset()
335 if (sdev) { in virtscsi_handle_transport_reset()
336 scsi_remove_device(sdev); in virtscsi_handle_transport_reset()
337 scsi_device_put(sdev); in virtscsi_handle_transport_reset()
351 struct scsi_device *sdev; in virtscsi_handle_param_change() local
358 sdev = scsi_device_lookup(shost, 0, target, lun); in virtscsi_handle_param_change()
359 if (!sdev) { in virtscsi_handle_param_change()
368 scsi_rescan_device(&sdev->sdev_gendev); in virtscsi_handle_param_change()
370 scsi_device_put(sdev); in virtscsi_handle_param_change()
[all …]
Dmvumi.c1418 struct scsi_device *sdev; in mvumi_handle_hotplug() local
1422 sdev = scsi_device_lookup(mhba->shost, 0, devid, 0); in mvumi_handle_hotplug()
1423 if (sdev) { in mvumi_handle_hotplug()
1425 sdev->id, 0); in mvumi_handle_hotplug()
1426 scsi_remove_device(sdev); in mvumi_handle_hotplug()
1427 scsi_device_put(sdev); in mvumi_handle_hotplug()
1433 sdev = scsi_device_lookup(mhba->shost, 0, devid, 0); in mvumi_handle_hotplug()
1434 if (!sdev) { in mvumi_handle_hotplug()
1442 scsi_device_put(sdev); in mvumi_handle_hotplug()
1501 struct scsi_device *sdev = NULL; in mvumi_detach_devices() local
[all …]
Dvmw_pvscsi.c507 static int pvscsi_change_queue_depth(struct scsi_device *sdev, int qdepth) in pvscsi_change_queue_depth() argument
509 if (!sdev->tagged_supported) in pvscsi_change_queue_depth()
511 return scsi_change_queue_depth(sdev, qdepth); in pvscsi_change_queue_depth()
660 struct scsi_device *sdev; in pvscsi_queue_ring() local
664 sdev = cmd->device; in pvscsi_queue_ring()
684 e->bus = sdev->channel; in pvscsi_queue_ring()
685 e->target = sdev->id; in pvscsi_queue_ring()
687 e->lun[1] = sdev->lun; in pvscsi_queue_ring()
987 struct scsi_device *sdev; in pvscsi_process_msg() local
1005 sdev = scsi_device_lookup(host, desc->bus, desc->target, in pvscsi_process_msg()
[all …]
Dipr.c1163 res->sdev = NULL; in ipr_init_res_entry()
1339 if (res->sdev && new_path) in ipr_update_res_entry()
1340 sdev_printk(KERN_INFO, res->sdev, "Resource path: %s\n", in ipr_update_res_entry()
1443 if (res->sdev) { in ipr_handle_config_change()
1451 } else if (!res->sdev || res->del_from_ml) { in ipr_handle_config_change()
3262 struct scsi_device *sdev; in ipr_worker_thread() local
3299 if (res->del_from_ml && res->sdev) { in ipr_worker_thread()
3301 sdev = res->sdev; in ipr_worker_thread()
3302 if (!scsi_device_get(sdev)) { in ipr_worker_thread()
3308 scsi_remove_device(sdev); in ipr_worker_thread()
[all …]
Dxen-scsifront.c676 static int scsifront_sdev_configure(struct scsi_device *sdev) in scsifront_sdev_configure() argument
678 struct vscsifrnt_info *info = shost_priv(sdev->host); in scsifront_sdev_configure()
687 static void scsifront_sdev_destroy(struct scsi_device *sdev) in scsifront_sdev_destroy() argument
689 struct vscsifrnt_info *info = shost_priv(sdev->host); in scsifront_sdev_destroy()
988 struct scsi_device *sdev; in scsifront_do_lun_hotplug() local
1037 sdev = scsi_device_lookup(info->host, chn, tgt, lun); in scsifront_do_lun_hotplug()
1038 if (sdev) { in scsifront_do_lun_hotplug()
1039 scsi_remove_device(sdev); in scsifront_do_lun_hotplug()
1040 scsi_device_put(sdev); in scsifront_do_lun_hotplug()
Dsd.h149 static inline sector_t logical_to_sectors(struct scsi_device *sdev, sector_t blocks) in logical_to_sectors() argument
151 return blocks << (ilog2(sdev->sector_size) - 9); in logical_to_sectors()
Dscsi_transport_sas.c159 static struct sas_end_device *sas_sdev_to_rdev(struct scsi_device *sdev) in sas_bitfield_name_search()
161 struct sas_rphy *rphy = target_to_rphy(sdev->sdev_target); in sas_bitfield_name_search()
378 sas_tlr_supported(struct scsi_device *sdev) in sas_tlr_supported() argument
381 struct sas_end_device *rdev = sas_sdev_to_rdev(sdev); in sas_tlr_supported()
385 if (scsi_get_vpd_page(sdev, 0x90, buffer, vpd_len)) in sas_tlr_supported()
412 sas_disable_tlr(struct scsi_device *sdev) in sas_disable_tlr() argument
414 struct sas_end_device *rdev = sas_sdev_to_rdev(sdev); in sas_disable_tlr()
427 void sas_enable_tlr(struct scsi_device *sdev) in sas_enable_tlr() argument
430 tlr_supported = sas_tlr_supported(sdev); in sas_enable_tlr()
433 struct sas_end_device *rdev = sas_sdev_to_rdev(sdev); in sas_enable_tlr()
[all …]
Dscsi_devinfo.c562 int scsi_get_device_flags(struct scsi_device *sdev, in scsi_get_device_flags() argument
566 return scsi_get_device_flags_keyed(sdev, vendor, model, in scsi_get_device_flags()
584 int scsi_get_device_flags_keyed(struct scsi_device *sdev, in scsi_get_device_flags_keyed() argument
605 if (sdev->sdev_bflags) in scsi_get_device_flags_keyed()
606 return sdev->sdev_bflags; in scsi_get_device_flags_keyed()
Dhpsa.c253 static int hpsa_change_queue_depth(struct scsi_device *sdev, int qdepth);
257 static int hpsa_slave_alloc(struct scsi_device *sdev);
258 static int hpsa_slave_configure(struct scsi_device *sdev);
259 static void hpsa_slave_destroy(struct scsi_device *sdev);
297 static inline struct ctlr_info *sdev_to_hba(struct scsi_device *sdev) in sdev_to_hba() argument
299 unsigned long *priv = shost_priv(sdev->host); in sdev_to_hba()
650 struct scsi_device *sdev; in raid_level_show() local
654 sdev = to_scsi_device(dev); in raid_level_show()
655 h = sdev_to_hba(sdev); in raid_level_show()
657 hdev = sdev->hostdata; in raid_level_show()
[all …]
Discsi_tcp.c938 static int iscsi_sw_tcp_slave_alloc(struct scsi_device *sdev) in iscsi_sw_tcp_slave_alloc() argument
940 set_bit(QUEUE_FLAG_BIDI, &sdev->request_queue->queue_flags); in iscsi_sw_tcp_slave_alloc()
944 static int iscsi_sw_tcp_slave_configure(struct scsi_device *sdev) in iscsi_sw_tcp_slave_configure() argument
946 blk_queue_bounce_limit(sdev->request_queue, BLK_BOUNCE_ANY); in iscsi_sw_tcp_slave_configure()
947 blk_queue_dma_alignment(sdev->request_queue, 0); in iscsi_sw_tcp_slave_configure()
Draid_class.c68 struct scsi_device *sdev = to_scsi_device(dev); in raid_match() local
70 if (i->f->cookie != sdev->host->hostt) in raid_match()
Dgdth.c445 int __gdth_execute(struct scsi_device *sdev, gdth_cmd_str *gdtcmd, char *cmnd, in __gdth_execute() argument
448 gdth_ha_str *ha = shost_priv(sdev->host); in __gdth_execute()
464 scp->device = sdev; in __gdth_execute()
491 struct scsi_device *sdev = scsi_get_host_dev(shost); in gdth_execute() local
492 int rval = __gdth_execute(sdev, gdtcmd, cmnd, timeout, info); in gdth_execute()
494 scsi_free_host_dev(sdev); in gdth_execute()
3969 static int gdth_bios_param(struct scsi_device *sdev,struct block_device *bdev,sector_t cap,int *ip) in gdth_bios_param() argument
3972 gdth_ha_str *ha = shost_priv(sdev->host); in gdth_bios_param()
3976 sd = sdev; in gdth_bios_param()
4042 if (!ha->sdev) in gdth_open()
[all …]
Dadvansys.c7192 advansys_biosparam(struct scsi_device *sdev, struct block_device *bdev, in advansys_biosparam() argument
7195 struct asc_board *boardp = shost_priv(sdev->host); in advansys_biosparam()
7198 ASC_STATS(sdev->host, biosparam); in advansys_biosparam()
7291 static void AscAsyncFix(ASC_DVC_VAR *asc_dvc, struct scsi_device *sdev) in AscAsyncFix() argument
7293 char type = sdev->type; in AscAsyncFix()
7294 ASC_SCSI_BIT_ID_TYPE tid_bits = 1 << sdev->id; in AscAsyncFix()
7301 if ((type == TYPE_ROM) && (strncmp(sdev->vendor, "HP ", 3) == 0)) in AscAsyncFix()
7310 AscSetRunChipSynRegAtID(asc_dvc->iop_base, sdev->id, in AscAsyncFix()
7315 advansys_narrow_slave_configure(struct scsi_device *sdev, ASC_DVC_VAR *asc_dvc) in advansys_narrow_slave_configure() argument
7317 ASC_SCSI_BIT_ID_TYPE tid_bit = 1 << sdev->id; in advansys_narrow_slave_configure()
[all …]
Dncr53c8xx.c1926 static struct lcb * ncr_setup_lcb (struct ncb *np, struct scsi_device *sdev);
1946 static void ncr_setup_tags (struct ncb *np, struct scsi_device *sdev);
4121 struct scsi_device *sdev = cmd->device; in ncr_queue_command() local
4122 struct tcb *tp = &np->target[sdev->id]; in ncr_queue_command()
4123 struct lcb *lp = tp->lp[sdev->lun]; in ncr_queue_command()
4138 if ((sdev->id == np->myaddr ) || in ncr_queue_command()
4139 (sdev->id >= MAX_TARGET) || in ncr_queue_command()
4140 (sdev->lun >= MAX_LUN )) { in ncr_queue_command()
4192 idmsg = IDENTIFY(0, sdev->lun); in ncr_queue_command()
4362 cp->phys.select.sel_id = sdev_id(sdev); in ncr_queue_command()
[all …]
D53c700.h25 #define DDEBUG(prefix, sdev, fmt, a...) \ argument
26 sdev_printk(prefix, sdev, fmt, ##a)
Dqlogicpti.c966 static int qlogicpti_slave_configure(struct scsi_device *sdev) in qlogicpti_slave_configure() argument
968 struct qlogicpti *qpti = shost_priv(sdev->host); in qlogicpti_slave_configure()
969 int tgt = sdev->id; in qlogicpti_slave_configure()
974 if (sdev->sdtr) { in qlogicpti_slave_configure()
981 if (sdev->wdtr) in qlogicpti_slave_configure()
Daha1740.c503 static int aha1740_biosparam(struct scsi_device *sdev, in aha1740_biosparam() argument
508 int extended = HOSTDATA(sdev->host)->translation; in aha1740_biosparam()
Dhptiop.c1119 static int hptiop_adjust_disk_queue_depth(struct scsi_device *sdev, in hptiop_adjust_disk_queue_depth() argument
1122 struct hptiop_hba *hba = (struct hptiop_hba *)sdev->host->hostdata; in hptiop_adjust_disk_queue_depth()
1126 return scsi_change_queue_depth(sdev, queue_depth); in hptiop_adjust_disk_queue_depth()
1170 static int hptiop_slave_config(struct scsi_device *sdev) in hptiop_slave_config() argument
1172 if (sdev->type == TYPE_TAPE) in hptiop_slave_config()
1173 blk_queue_max_hw_sectors(sdev->request_queue, 8192); in hptiop_slave_config()
Dscsi_debug.c3573 static struct sdebug_dev_info * devInfoReg(struct scsi_device * sdev) in devInfoReg() argument
3578 (struct sdebug_dev_info *)sdev->hostdata; in devInfoReg()
3582 sdbg_host = *(struct sdebug_host_info **)shost_priv(sdev->host); in devInfoReg()
3588 if ((devip->used) && (devip->channel == sdev->channel) && in devInfoReg()
3589 (devip->target == sdev->id) && in devInfoReg()
3590 (devip->lun == sdev->lun)) in devInfoReg()
3605 open_devip->channel = sdev->channel; in devInfoReg()
3606 open_devip->target = sdev->id; in devInfoReg()
3607 open_devip->lun = sdev->lun; in devInfoReg()
5072 sdebug_change_qdepth(struct scsi_device *sdev, int qdepth) in sdebug_change_qdepth() argument
[all …]
Dt128.c289 static int t128_biosparam(struct scsi_device *sdev, struct block_device *bdev, in t128_biosparam() argument
Dstex.c540 stex_slave_config(struct scsi_device *sdev) in stex_slave_config() argument
542 sdev->use_10_for_rw = 1; in stex_slave_config()
543 sdev->use_10_for_ms = 1; in stex_slave_config()
544 blk_queue_rq_timeout(sdev->request_queue, 60 * HZ); in stex_slave_config()
1341 static int stex_biosparam(struct scsi_device *sdev, in stex_biosparam() argument
Ddtc.c304 static int dtc_biosparam(struct scsi_device *sdev, struct block_device *dev, in dtc_biosparam() argument
Dpas16.c464 static int pas16_biosparam(struct scsi_device *sdev, struct block_device *dev, in pas16_biosparam() argument
/linux-4.4.14/drivers/media/platform/s5p-tv/
Dsdo_drv.c76 void sdo_write_mask(struct sdo_device *sdev, u32 reg_id, u32 value, u32 mask) in sdo_write_mask() argument
78 u32 old = readl(sdev->regs + reg_id); in sdo_write_mask()
80 writel(value, sdev->regs + reg_id); in sdo_write_mask()
84 void sdo_write(struct sdo_device *sdev, u32 reg_id, u32 value) in sdo_write() argument
86 writel(value, sdev->regs + reg_id); in sdo_write()
90 u32 sdo_read(struct sdo_device *sdev, u32 reg_id) in sdo_read() argument
92 return readl(sdev->regs + reg_id); in sdo_read()
97 struct sdo_device *sdev = dev_data; in sdo_irq_handler() local
100 sdo_write_mask(sdev, SDO_IRQ, ~0, SDO_VSYNC_IRQ_PEND); in sdo_irq_handler()
104 static void sdo_reg_debug(struct sdo_device *sdev) in sdo_reg_debug() argument
[all …]
/linux-4.4.14/drivers/media/radio/si4713/
Dsi4713.c187 struct si4713_device *sdev = dev; in si4713_handler() local
189 v4l2_dbg(2, debug, &sdev->sd, in si4713_handler()
191 complete(&sdev->work); in si4713_handler()
206 static int si4713_send_command(struct si4713_device *sdev, const u8 command, in si4713_send_command() argument
210 struct i2c_client *client = v4l2_get_subdevdata(&sdev->sd); in si4713_send_command()
221 DBG_BUFFER(&sdev->sd, "Parameters", data1, argn + 1); in si4713_send_command()
225 v4l2_err(&sdev->sd, "Error while sending command 0x%02x\n", in si4713_send_command()
234 if (!wait_for_completion_timeout(&sdev->work, in si4713_send_command()
236 v4l2_warn(&sdev->sd, in si4713_send_command()
244 v4l2_err(&sdev->sd, in si4713_send_command()
[all …]
/linux-4.4.14/drivers/usb/usbip/
Dstub_dev.c35 struct stub_device *sdev = dev_get_drvdata(dev); in usbip_status_show() local
38 if (!sdev) { in usbip_status_show()
43 spin_lock_irq(&sdev->ud.lock); in usbip_status_show()
44 status = sdev->ud.status; in usbip_status_show()
45 spin_unlock_irq(&sdev->ud.lock); in usbip_status_show()
59 struct stub_device *sdev = dev_get_drvdata(dev); in store_sockfd() local
64 if (!sdev) { in store_sockfd()
78 spin_lock_irq(&sdev->ud.lock); in store_sockfd()
80 if (sdev->ud.status != SDEV_ST_AVAILABLE) { in store_sockfd()
89 sdev->ud.tcp_socket = socket; in store_sockfd()
[all …]
Dstub_tx.c38 void stub_enqueue_ret_unlink(struct stub_device *sdev, __u32 seqnum, in stub_enqueue_ret_unlink() argument
45 usbip_event_add(&sdev->ud, VDEV_EVENT_ERROR_MALLOC); in stub_enqueue_ret_unlink()
52 list_add_tail(&unlink->list, &sdev->unlink_tx); in stub_enqueue_ret_unlink()
67 struct stub_device *sdev = priv->sdev; in stub_complete() local
99 spin_lock_irqsave(&sdev->priv_lock, flags); in stub_complete()
101 stub_enqueue_ret_unlink(sdev, priv->seqnum, urb->status); in stub_complete()
104 list_move_tail(&priv->list, &sdev->priv_tx); in stub_complete()
106 spin_unlock_irqrestore(&sdev->priv_lock, flags); in stub_complete()
109 wake_up(&sdev->tx_waitq); in stub_complete()
137 static struct stub_priv *dequeue_from_priv_tx(struct stub_device *sdev) in dequeue_from_priv_tx() argument
[all …]
Dstub_rx.c146 struct stub_device *sdev = priv->sdev; in tweak_set_configuration_cmd() local
154 err = usb_set_configuration(sdev->udev, config); in tweak_set_configuration_cmd()
156 dev_err(&sdev->udev->dev, "can't set config #%d, error %d\n", in tweak_set_configuration_cmd()
164 struct stub_device *sdev = priv->sdev; in tweak_reset_device_cmd() local
173 if (usb_lock_device_for_reset(sdev->udev, sdev->interface) < 0) { in tweak_reset_device_cmd()
177 usb_reset_device(sdev->udev); in tweak_reset_device_cmd()
178 usb_unlock_device(sdev->udev); in tweak_reset_device_cmd()
220 static int stub_recv_cmd_unlink(struct stub_device *sdev, in stub_recv_cmd_unlink() argument
227 spin_lock_irqsave(&sdev->priv_lock, flags); in stub_recv_cmd_unlink()
229 list_for_each_entry(priv, &sdev->priv_init, list) { in stub_recv_cmd_unlink()
[all …]
Dstub_main.c227 static struct stub_priv *stub_priv_pop(struct stub_device *sdev) in stub_priv_pop() argument
232 spin_lock_irqsave(&sdev->priv_lock, flags); in stub_priv_pop()
234 priv = stub_priv_pop_from_listhead(&sdev->priv_init); in stub_priv_pop()
238 priv = stub_priv_pop_from_listhead(&sdev->priv_tx); in stub_priv_pop()
242 priv = stub_priv_pop_from_listhead(&sdev->priv_free); in stub_priv_pop()
245 spin_unlock_irqrestore(&sdev->priv_lock, flags); in stub_priv_pop()
250 void stub_device_cleanup_urbs(struct stub_device *sdev) in stub_device_cleanup_urbs() argument
255 dev_dbg(&sdev->udev->dev, "free sdev %p\n", sdev); in stub_device_cleanup_urbs()
257 while ((priv = stub_priv_pop(sdev))) { in stub_device_cleanup_urbs()
259 dev_dbg(&sdev->udev->dev, "free urb %p\n", urb); in stub_device_cleanup_urbs()
Dstub.h69 struct stub_device *sdev; member
88 struct stub_device *sdev; member
102 void stub_device_cleanup_urbs(struct stub_device *sdev);
108 void stub_enqueue_ret_unlink(struct stub_device *sdev, __u32 seqnum,
/linux-4.4.14/arch/arm/common/
Dscoop.c46 struct scoop_dev *sdev = dev_get_drvdata(dev); in reset_scoop() local
48 iowrite16(0x0100, sdev->base + SCOOP_MCR); /* 00 */ in reset_scoop()
49 iowrite16(0x0000, sdev->base + SCOOP_CDR); /* 04 */ in reset_scoop()
50 iowrite16(0x0000, sdev->base + SCOOP_CCR); /* 10 */ in reset_scoop()
51 iowrite16(0x0000, sdev->base + SCOOP_IMR); /* 18 */ in reset_scoop()
52 iowrite16(0x00FF, sdev->base + SCOOP_IRM); /* 14 */ in reset_scoop()
53 iowrite16(0x0000, sdev->base + SCOOP_ISR); /* 1C */ in reset_scoop()
54 iowrite16(0x0000, sdev->base + SCOOP_IRM); in reset_scoop()
57 static void __scoop_gpio_set(struct scoop_dev *sdev, in __scoop_gpio_set() argument
62 gpwr = ioread16(sdev->base + SCOOP_GPWR); in __scoop_gpio_set()
[all …]
/linux-4.4.14/include/scsi/
Dscsi_device.h213 #define sdev_dbg(sdev, fmt, a...) \ argument
214 dev_dbg(&(sdev)->sdev_gendev, fmt, ##a)
224 #define sdev_printk(l, sdev, fmt, a...) \ argument
225 sdev_prefix_printk(l, sdev, NULL, fmt, ##a)
291 static inline struct scsi_target *scsi_target(struct scsi_device *sdev) in scsi_target() argument
293 return to_scsi_target(sdev->sdev_gendev.parent); in scsi_target()
308 void scsi_attach_vpd(struct scsi_device *sdev);
339 #define shost_for_each_device(sdev, shost) \ argument
340 for ((sdev) = __scsi_iterate_devices((shost), NULL); \
341 (sdev); \
[all …]
Dscsi_transport.h115 scsi_transport_device_data(struct scsi_device *sdev) in scsi_transport_device_data() argument
117 struct Scsi_Host *shost = sdev->host; in scsi_transport_device_data()
118 return (u8 *)sdev->sdev_data in scsi_transport_device_data()
Dscsi_ioctl.h43 int scsi_ioctl_block_when_processing_errors(struct scsi_device *sdev,
Dlibsas.h436 sdev_to_domain_dev(struct scsi_device *sdev) { in sdev_to_domain_dev() argument
437 return starget_to_domain_dev(sdev->sdev_target); in sdev_to_domain_dev()
722 extern int sas_ioctl(struct scsi_device *sdev, int cmd, void __user *arg);
/linux-4.4.14/drivers/gpu/drm/shmobile/
Dshmob_drm_crtc.c41 static int shmob_drm_clk_on(struct shmob_drm_device *sdev) in shmob_drm_clk_on() argument
45 if (sdev->clock) { in shmob_drm_clk_on()
46 ret = clk_prepare_enable(sdev->clock); in shmob_drm_clk_on()
51 if (sdev->meram_dev && sdev->meram_dev->pdev) in shmob_drm_clk_on()
52 pm_runtime_get_sync(&sdev->meram_dev->pdev->dev); in shmob_drm_clk_on()
58 static void shmob_drm_clk_off(struct shmob_drm_device *sdev) in shmob_drm_clk_off() argument
61 if (sdev->meram_dev && sdev->meram_dev->pdev) in shmob_drm_clk_off()
62 pm_runtime_put_sync(&sdev->meram_dev->pdev->dev); in shmob_drm_clk_off()
64 if (sdev->clock) in shmob_drm_clk_off()
65 clk_disable_unprepare(sdev->clock); in shmob_drm_clk_off()
[all …]
Dshmob_drm_drv.c36 static int shmob_drm_init_interface(struct shmob_drm_device *sdev) in shmob_drm_init_interface() argument
60 if (sdev->pdata->iface.interface >= ARRAY_SIZE(ldmt1r)) { in shmob_drm_init_interface()
61 dev_err(sdev->dev, "invalid interface type %u\n", in shmob_drm_init_interface()
62 sdev->pdata->iface.interface); in shmob_drm_init_interface()
66 sdev->ldmt1r = ldmt1r[sdev->pdata->iface.interface]; in shmob_drm_init_interface()
70 static int shmob_drm_setup_clocks(struct shmob_drm_device *sdev, in shmob_drm_setup_clocks() argument
79 sdev->lddckr = LDDCKR_ICKSEL_BUS; in shmob_drm_setup_clocks()
83 sdev->lddckr = LDDCKR_ICKSEL_MIPI; in shmob_drm_setup_clocks()
87 sdev->lddckr = LDDCKR_ICKSEL_HDMI; in shmob_drm_setup_clocks()
93 clk = devm_clk_get(sdev->dev, clkname); in shmob_drm_setup_clocks()
[all …]
Dshmob_drm_plane.c69 struct shmob_drm_device *sdev = splane->plane.dev->dev_private; in __shmob_drm_plane_setup() local
118 #define plane_reg_dump(sdev, splane, reg) \ in __shmob_drm_plane_setup() argument
119 dev_dbg(sdev->ddev->dev, "%s(%u): %s 0x%08x 0x%08x\n", __func__, \ in __shmob_drm_plane_setup()
121 lcdc_read(sdev, reg(splane->index)), \ in __shmob_drm_plane_setup()
122 lcdc_read(sdev, reg(splane->index) + LCDC_SIDE_B_OFFSET)) in __shmob_drm_plane_setup()
124 plane_reg_dump(sdev, splane, LDBnBSIFR); in __shmob_drm_plane_setup()
125 plane_reg_dump(sdev, splane, LDBnBSSZR); in __shmob_drm_plane_setup()
126 plane_reg_dump(sdev, splane, LDBnBLOCR); in __shmob_drm_plane_setup()
127 plane_reg_dump(sdev, splane, LDBnBSMWR); in __shmob_drm_plane_setup()
128 plane_reg_dump(sdev, splane, LDBnBSAYR); in __shmob_drm_plane_setup()
[all …]
Dshmob_drm_kms.c141 int shmob_drm_modeset_init(struct shmob_drm_device *sdev) in shmob_drm_modeset_init() argument
143 drm_mode_config_init(sdev->ddev); in shmob_drm_modeset_init()
145 shmob_drm_crtc_create(sdev); in shmob_drm_modeset_init()
146 shmob_drm_encoder_create(sdev); in shmob_drm_modeset_init()
147 shmob_drm_connector_create(sdev, &sdev->encoder.encoder); in shmob_drm_modeset_init()
149 drm_kms_helper_poll_init(sdev->ddev); in shmob_drm_modeset_init()
151 sdev->ddev->mode_config.min_width = 0; in shmob_drm_modeset_init()
152 sdev->ddev->mode_config.min_height = 0; in shmob_drm_modeset_init()
153 sdev->ddev->mode_config.max_width = 4095; in shmob_drm_modeset_init()
154 sdev->ddev->mode_config.max_height = 4095; in shmob_drm_modeset_init()
[all …]
Dshmob_drm_backlight.c23 struct shmob_drm_device *sdev = scon->connector.dev->dev_private; in shmob_drm_backlight_update() local
24 const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight; in shmob_drm_backlight_update()
37 struct shmob_drm_device *sdev = scon->connector.dev->dev_private; in shmob_drm_backlight_get_brightness() local
38 const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight; in shmob_drm_backlight_get_brightness()
61 struct shmob_drm_device *sdev = scon->connector.dev->dev_private; in shmob_drm_backlight_init() local
62 const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight; in shmob_drm_backlight_init()
Dshmob_drm_regs.h279 static inline void lcdc_write_mirror(struct shmob_drm_device *sdev, u32 reg, in lcdc_write_mirror() argument
282 iowrite32(data, sdev->mmio + reg + LCDC_MIRROR_OFFSET); in lcdc_write_mirror()
285 static inline void lcdc_write(struct shmob_drm_device *sdev, u32 reg, u32 data) in lcdc_write() argument
287 iowrite32(data, sdev->mmio + reg); in lcdc_write()
289 iowrite32(data, sdev->mmio + reg + LCDC_SIDE_B_OFFSET); in lcdc_write()
292 static inline u32 lcdc_read(struct shmob_drm_device *sdev, u32 reg) in lcdc_read() argument
294 return ioread32(sdev->mmio + reg); in lcdc_read()
297 static inline int lcdc_wait_bit(struct shmob_drm_device *sdev, u32 reg, in lcdc_wait_bit() argument
302 while ((lcdc_read(sdev, reg) & mask) != until) { in lcdc_wait_bit()
Dshmob_drm_crtc.h48 int shmob_drm_crtc_create(struct shmob_drm_device *sdev);
49 void shmob_drm_crtc_enable_vblank(struct shmob_drm_device *sdev, bool enable);
56 int shmob_drm_encoder_create(struct shmob_drm_device *sdev);
57 int shmob_drm_connector_create(struct shmob_drm_device *sdev,
Dshmob_drm_plane.h19 int shmob_drm_plane_create(struct shmob_drm_device *sdev, unsigned int index);
Dshmob_drm_kms.h32 int shmob_drm_modeset_init(struct shmob_drm_device *sdev);
/linux-4.4.14/drivers/spmi/
Dspmi.c32 struct spmi_device *sdev = to_spmi_device(dev); in spmi_dev_release() local
33 kfree(sdev); in spmi_dev_release()
67 int spmi_device_add(struct spmi_device *sdev) in spmi_device_add() argument
69 struct spmi_controller *ctrl = sdev->ctrl; in spmi_device_add()
72 dev_set_name(&sdev->dev, "%d-%02x", ctrl->nr, sdev->usid); in spmi_device_add()
74 err = device_add(&sdev->dev); in spmi_device_add()
76 dev_err(&sdev->dev, "Can't add %s, status %d\n", in spmi_device_add()
77 dev_name(&sdev->dev), err); in spmi_device_add()
81 dev_dbg(&sdev->dev, "device %s registered\n", dev_name(&sdev->dev)); in spmi_device_add()
92 void spmi_device_remove(struct spmi_device *sdev) in spmi_device_remove() argument
[all …]
/linux-4.4.14/drivers/misc/mic/bus/
Dscif_bus.c135 struct scif_hw_dev *sdev = dev_to_scif(d); in scif_release_dev() local
137 kfree(sdev); in scif_release_dev()
148 struct scif_hw_dev *sdev; in scif_register_device() local
150 sdev = kzalloc(sizeof(*sdev), GFP_KERNEL); in scif_register_device()
151 if (!sdev) in scif_register_device()
154 sdev->dev.parent = pdev; in scif_register_device()
155 sdev->id.device = id; in scif_register_device()
156 sdev->id.vendor = SCIF_DEV_ANY_ID; in scif_register_device()
157 sdev->dev.archdata.dma_ops = dma_ops; in scif_register_device()
158 sdev->dev.release = scif_release_dev; in scif_register_device()
[all …]
Dscif_bus.h95 int (*next_db)(struct scif_hw_dev *sdev);
96 struct mic_irq * (*request_irq)(struct scif_hw_dev *sdev,
101 void (*free_irq)(struct scif_hw_dev *sdev,
103 void (*ack_interrupt)(struct scif_hw_dev *sdev, int num);
104 void (*send_intr)(struct scif_hw_dev *sdev, int db);
105 void (*send_p2p_intr)(struct scif_hw_dev *sdev, int db,
107 void __iomem * (*ioremap)(struct scif_hw_dev *sdev,
109 void (*iounmap)(struct scif_hw_dev *sdev, void __iomem *va);
122 void scif_unregister_device(struct scif_hw_dev *sdev);
Dcosm_bus.h56 struct device *sdev; member
/linux-4.4.14/drivers/scsi/device_handler/
Dscsi_dh_emc.c119 static int trespass_endio(struct scsi_device *sdev, char *sense) in trespass_endio() argument
125 sdev_printk(KERN_ERR, sdev, "%s: Found valid sense data 0x%2x, " in trespass_endio()
136 sdev_printk(KERN_INFO, sdev, "%s: Array Based Copy in " in trespass_endio()
146 sdev_printk(KERN_INFO, sdev, "%s: Detected in-progress " in trespass_endio()
153 sdev_printk(KERN_INFO, sdev, in trespass_endio()
160 static int parse_sp_info_reply(struct scsi_device *sdev, in parse_sp_info_reply() argument
167 sdev_printk(KERN_NOTICE, sdev, "%s: Detected in-progress " in parse_sp_info_reply()
175 sdev_printk(KERN_NOTICE, sdev, in parse_sp_info_reply()
183 sdev_printk(KERN_NOTICE, sdev, in parse_sp_info_reply()
191 sdev_printk(KERN_WARNING, sdev, in parse_sp_info_reply()
[all …]
Dscsi_dh_alua.c77 struct scsi_device *sdev; member
103 static struct request *get_alua_req(struct scsi_device *sdev, in get_alua_req() argument
107 struct request_queue *q = sdev->request_queue; in get_alua_req()
112 sdev_printk(KERN_INFO, sdev, in get_alua_req()
120 sdev_printk(KERN_INFO, sdev, in get_alua_req()
137 static int submit_vpd_inquiry(struct scsi_device *sdev, struct alua_dh_data *h) in submit_vpd_inquiry() argument
142 rq = get_alua_req(sdev, h->buff, h->bufflen, READ); in submit_vpd_inquiry()
159 sdev_printk(KERN_INFO, sdev, in submit_vpd_inquiry()
174 static unsigned submit_rtpg(struct scsi_device *sdev, struct alua_dh_data *h, in submit_rtpg() argument
180 rq = get_alua_req(sdev, h->buff, h->bufflen, READ); in submit_rtpg()
[all …]
Dscsi_dh_hp_sw.c45 struct scsi_device *sdev; member
59 static int tur_done(struct scsi_device *sdev, unsigned char *sense) in tur_done() argument
66 sdev_printk(KERN_WARNING, sdev, in tur_done()
88 sdev_printk(KERN_WARNING, sdev, in tur_done()
106 static int hp_sw_tur(struct scsi_device *sdev, struct hp_sw_dh_data *h) in hp_sw_tur() argument
112 req = blk_get_request(sdev->request_queue, WRITE, GFP_NOIO); in hp_sw_tur()
129 ret = tur_done(sdev, h->sense); in hp_sw_tur()
131 sdev_printk(KERN_WARNING, sdev, in hp_sw_tur()
159 static int start_done(struct scsi_device *sdev, unsigned char *sense) in start_done() argument
166 sdev_printk(KERN_WARNING, sdev, in start_done()
[all …]
Dscsi_dh_rdac.c256 #define RDAC_LOG(SHIFT, sdev, f, arg...) \ argument
259 sdev_printk(KERN_INFO, sdev, RDAC_NAME ": " f "\n", ## arg); \
262 static struct request *get_rdac_req(struct scsi_device *sdev, in get_rdac_req() argument
266 struct request_queue *q = sdev->request_queue; in get_rdac_req()
271 sdev_printk(KERN_INFO, sdev, in get_rdac_req()
279 sdev_printk(KERN_INFO, sdev, in get_rdac_req()
292 static struct request *rdac_failover_get(struct scsi_device *sdev, in rdac_failover_get() argument
333 rq = get_rdac_req(sdev, &h->ctlr->mode_select, data_size, WRITE); in rdac_failover_get()
365 u8 *array_id, struct scsi_device *sdev) in get_controller() argument
372 (tmp->host == sdev->host)) { in get_controller()
[all …]
/linux-4.4.14/drivers/usb/storage/
Dscsiglue.c79 static int slave_alloc (struct scsi_device *sdev) in slave_alloc() argument
81 struct us_data *us = host_to_us(sdev->host); in slave_alloc()
88 sdev->inquiry_len = 36; in slave_alloc()
105 blk_queue_update_dma_alignment(sdev->request_queue, (512 - 1)); in slave_alloc()
109 sdev->sdev_bflags |= BLIST_FORCELUN; in slave_alloc()
114 static int slave_configure(struct scsi_device *sdev) in slave_configure() argument
116 struct us_data *us = host_to_us(sdev->host); in slave_configure()
127 if (queue_max_hw_sectors(sdev->request_queue) > max_sectors) in slave_configure()
128 blk_queue_max_hw_sectors(sdev->request_queue, in slave_configure()
130 } else if (sdev->type == TYPE_TAPE) { in slave_configure()
[all …]
Duas.c156 struct scsi_device *sdev = cmnd->device; in uas_sense() local
164 sdev_printk(KERN_INFO, sdev, "%s: urb length %d " in uas_sense()
454 struct scsi_device *sdev = cmnd->device; in uas_alloc_cmd_urb() local
475 int_to_scsilun(sdev->lun, &iu->lun); in uas_alloc_cmd_urb()
595 struct scsi_device *sdev = cmnd->device; in uas_queuecommand_lck() local
596 struct uas_dev_info *devinfo = sdev->hostdata; in uas_queuecommand_lck()
718 struct scsi_device *sdev = cmnd->device; in uas_eh_bus_reset_handler() local
719 struct uas_dev_info *devinfo = sdev->hostdata; in uas_eh_bus_reset_handler()
726 shost_printk(KERN_ERR, sdev->host, in uas_eh_bus_reset_handler()
731 shost_printk(KERN_INFO, sdev->host, "%s start\n", __func__); in uas_eh_bus_reset_handler()
[all …]
/linux-4.4.14/include/linux/
Dspmi.h58 static inline void *spmi_device_get_drvdata(const struct spmi_device *sdev) in spmi_device_get_drvdata() argument
60 return dev_get_drvdata(&sdev->dev); in spmi_device_get_drvdata()
63 static inline void spmi_device_set_drvdata(struct spmi_device *sdev, void *data) in spmi_device_set_drvdata() argument
65 dev_set_drvdata(&sdev->dev, data); in spmi_device_set_drvdata()
70 static inline void spmi_device_put(struct spmi_device *sdev) in spmi_device_put() argument
72 if (sdev) in spmi_device_put()
73 put_device(&sdev->dev); in spmi_device_put()
76 int spmi_device_add(struct spmi_device *sdev);
78 void spmi_device_remove(struct spmi_device *sdev);
147 int (*probe)(struct spmi_device *sdev);
[all …]
Dshdma-base.h121 bool shdma_reset(struct shdma_dev *sdev);
122 void shdma_chan_probe(struct shdma_dev *sdev,
125 int shdma_init(struct device *dev, struct shdma_dev *sdev,
127 void shdma_cleanup(struct shdma_dev *sdev);
Dlibata.h682 struct scsi_device *sdev; /* attached SCSI device */ member
1203 extern int ata_std_bios_param(struct scsi_device *sdev,
1206 extern void ata_scsi_unlock_native_capacity(struct scsi_device *sdev);
1207 extern int ata_scsi_slave_config(struct scsi_device *sdev);
1208 extern void ata_scsi_slave_destroy(struct scsi_device *sdev);
1209 extern int ata_scsi_change_queue_depth(struct scsi_device *sdev,
1211 extern int __ata_change_queue_depth(struct ata_port *ap, struct scsi_device *sdev,
/linux-4.4.14/drivers/misc/mic/scif/
Dscif_main.c77 struct scif_hw_dev *sdev = scifdev->sdev; in scif_intr_handler() local
79 sdev->hw_ops->ack_interrupt(sdev, scifdev->db); in scif_intr_handler()
88 struct scif_hw_dev *sdev = scifdev->sdev; in scif_qp_setup_handler() local
93 struct mic_bootparam *bp = sdev->dp; in scif_qp_setup_handler()
98 struct mic_bootparam __iomem *bp = sdev->rdp; in scif_qp_setup_handler()
106 dev_err(&scifdev->sdev->dev, in scif_qp_setup_handler()
147 static int scif_probe(struct scif_hw_dev *sdev) in scif_probe() argument
149 struct scif_dev *scifdev = &scif_dev[sdev->dnode]; in scif_probe()
152 dev_set_drvdata(&sdev->dev, sdev); in scif_probe()
153 scifdev->sdev = sdev; in scif_probe()
[all …]
Dscif_map.h35 va = dma_alloc_coherent(&scifdev->sdev->dev, in scif_alloc_coherent()
52 dma_free_coherent(&scifdev->sdev->dev, in scif_free_coherent()
66 *dma_handle = dma_map_single(&scifdev->sdev->dev, in scif_map_single()
68 if (dma_mapping_error(&scifdev->sdev->dev, *dma_handle)) in scif_map_single()
85 dma_unmap_single(&scifdev->sdev->dev, local, in scif_unmap_single()
94 struct scif_hw_dev *sdev = scifdev->sdev; in scif_ioremap() local
100 sdev->hw_ops->ioremap(sdev, phys, size); in scif_ioremap()
108 struct scif_hw_dev *sdev = scifdev->sdev; in scif_iounmap() local
110 sdev->hw_ops->iounmap(sdev, (void __force __iomem *)virt); in scif_iounmap()
123 struct scif_hw_dev *sdev = scifdev->sdev; in scif_map_page() local
[all …]
Dscif_nodeqp.c246 dev_err(&scifdev->sdev->dev, in scif_setup_qp_connect_response()
287 struct scif_hw_dev *sdev = scifdev->sdev; in scif_send_msg_intr() local
290 sdev->hw_ops->send_p2p_intr(sdev, scifdev->rdb, &scifdev->mmio); in scif_send_msg_intr()
292 sdev->hw_ops->send_intr(sdev, scifdev->rdb); in scif_send_msg_intr()
393 struct scif_hw_dev *psdev = peerdev->sdev; in scif_init_p2p_info()
394 struct scif_hw_dev *sdev = scifdev->sdev; in scif_init_p2p_info() local
413 err = dma_map_sg(&sdev->dev, p2p->ppi_sg[SCIF_PPI_MMIO], in scif_init_p2p_info()
417 err = dma_map_sg(&sdev->dev, p2p->ppi_sg[SCIF_PPI_APER], in scif_init_p2p_info()
428 dma_unmap_sg(&sdev->dev, p2p->ppi_sg[SCIF_PPI_MMIO], in scif_init_p2p_info()
442 struct scif_hw_dev *sdev = scifdev->sdev; in scif_deinit_p2p_info() local
[all …]
Dscif_peer_bus.c33 struct scif_peer_dev *sdev = dev_to_scif_peer(d); in scif_peer_release_dev() local
34 struct scif_dev *scifdev = &scif_dev[sdev->dnode]; in scif_peer_release_dev()
37 kfree(sdev); in scif_peer_release_dev()
51 spdev->dev.parent = scifdev->sdev->dev.parent; in scif_peer_initialize_device()
67 dev_err(&scifdev->sdev->dev, in scif_peer_initialize_device()
81 dev_err(&scifdev->sdev->dev, in scif_peer_add_device()
87 scifdev->signal_pool = dmam_pool_create(pool_name, &scifdev->sdev->dev, in scif_peer_add_device()
91 dev_err(&scifdev->sdev->dev, in scif_peer_add_device()
Dscif_mmap.c51 dev_err(&scifdev->sdev->dev, in scif_recv_munmap()
208 struct scif_hw_dev *sdev = scifdev->sdev; in scif_get_phys() local
215 if (!scifdev_self(scifdev) && sdev->aper && sdev->card_rel_da) in scif_get_phys()
216 apt_base = sdev->aper->pa; in scif_get_phys()
255 dev_err(&ep->remote_dev->sdev->dev, in scif_get_pages()
295 ep->remote_dev->sdev->aper->va + in scif_get_pages()
297 ep->remote_dev->sdev->aper->pa; in scif_get_pages()
312 dev_err(&ep->remote_dev->sdev->dev, in scif_get_pages()
351 scif_drain_dma_intr(ep->remote_dev->sdev, in scif_put_pages()
482 scif_drain_dma_intr(rdev->sdev, in scif_rma_list_munmap()
[all …]
Dscif_dma.c46 struct scif_dev *sdev; member
94 struct scif_hw_dev *sdev; in scif_reserve_dma_chan() local
104 sdev = scifdev->sdev; in scif_reserve_dma_chan()
105 if (!sdev->num_dma_ch) in scif_reserve_dma_chan()
107 chan = sdev->dma_ch[scifdev->dma_ch_idx]; in scif_reserve_dma_chan()
108 scifdev->dma_ch_idx = (scifdev->dma_ch_idx + 1) % sdev->num_dma_ch; in scif_reserve_dma_chan()
424 dev_err(&ep->remote_dev->sdev->dev, in scif_register_temp()
442 static int scif_sync_dma(struct scif_hw_dev *sdev, struct dma_chan *chan, in scif_sync_dma() argument
453 dev_err(&sdev->dev, "%s %d err %d\n", in scif_sync_dma()
462 dev_err(&sdev->dev, "%s %d err %d\n", in scif_sync_dma()
[all …]
Dscif_nm.c119 struct scif_hw_dev *sdev = dev->sdev; in scif_cleanup_scifdev() local
121 if (!dev->sdev) in scif_cleanup_scifdev()
125 sdev->hw_ops->free_irq(sdev, dev->cookie, dev); in scif_cleanup_scifdev()
Dscif_rma.c238 dma_unmap_sg(&remote_dev->sdev->dev, in scif_unmap_window()
558 err = dma_map_sg(&remote_dev->sdev->dev, window->st->sgl, in scif_iommu_map()
734 scif_drain_dma_intr(ep->remote_dev->sdev, in scif_unregister_window()
795 dev_err(&ep->remote_dev->sdev->dev, in scif_prep_remote_window()
823 dev_err(&ep->remote_dev->sdev->dev, in scif_prep_remote_window()
1079 dev_err(&scifdev->sdev->dev, in scif_alloc_req()
1127 struct scif_hw_dev *sdev = dev->sdev; in scif_fixup_aper_base() local
1135 sdev->aper && !sdev->card_rel_da) in scif_fixup_aper_base()
1136 apt_base = sdev->aper->pa; in scif_fixup_aper_base()
1211 dev_err(&scifdev->sdev->dev, in scif_recv_unreg()
[all …]
Dscif_fence.c218 dev_err(&ep->remote_dev->sdev->dev, "%s %d err %d\n", in _scif_prog_signal()
225 dev_err(&ep->remote_dev->sdev->dev, "%s %d err %d\n", in _scif_prog_signal()
241 dev_err(&ep->remote_dev->sdev->dev, "%s %d err %d\n", in _scif_prog_signal()
254 dev_err(&ep->remote_dev->sdev->dev, "%s %d err %d\n", in _scif_prog_signal()
265 dev_err(&ep->remote_dev->sdev->dev, "%s %d err %d\n", in _scif_prog_signal()
594 dev_err(&ep->remote_dev->sdev->dev, "%s %d err %d\n", in _scif_fence_mark()
601 dev_err(&ep->remote_dev->sdev->dev, "%s %d err %d\n", in _scif_fence_mark()
609 dev_err(&ep->remote_dev->sdev->dev, "%s %d err %d\n", in _scif_fence_mark()
618 dev_err(&ep->remote_dev->sdev->dev, "%s %d err %d\n", in _scif_fence_mark()
Dscif_peer_bus.h27 void scif_peer_register_device(struct scif_dev *sdev);
Dscif_api.c479 dev_err(&ep->remote_dev->sdev->dev, in scif_conn_func()
488 dev_err(&ep->remote_dev->sdev->dev, in scif_conn_func()
517 dev_err(&ep->remote_dev->sdev->dev, in scif_conn_func()
535 dev_err(&ep->remote_dev->sdev->dev, in scif_conn_func()
555 dev_dbg(&ep->remote_dev->sdev->dev, in scif_conn_func()
558 dev_dbg(&ep->remote_dev->sdev->dev, in scif_conn_func()
848 dev_dbg(&cep->remote_dev->sdev->dev, in scif_accept()
Dscif_main.h185 struct scif_hw_dev *sdev; member
Dscif_rma.h361 int scif_drain_dma_intr(struct scif_hw_dev *sdev, struct dma_chan *chan);
/linux-4.4.14/drivers/iommu/
Dintel-svm.c149 static void intel_flush_svm_range_dev (struct intel_svm *svm, struct intel_svm_dev *sdev, in intel_flush_svm_range_dev() argument
159 desc.low = QI_EIOTLB_PASID(svm->pasid) | QI_EIOTLB_DID(sdev->did) | in intel_flush_svm_range_dev()
162 desc.low = QI_EIOTLB_PASID(svm->pasid) | QI_EIOTLB_DID(sdev->did) | in intel_flush_svm_range_dev()
168 desc.low = QI_EIOTLB_PASID(svm->pasid) | QI_EIOTLB_DID(sdev->did) | in intel_flush_svm_range_dev()
175 if (sdev->dev_iotlb) { in intel_flush_svm_range_dev()
176 desc.low = QI_DEV_EIOTLB_PASID(svm->pasid) | QI_DEV_EIOTLB_SID(sdev->sid) | in intel_flush_svm_range_dev()
177 QI_DEV_EIOTLB_QDEP(sdev->qdep) | QI_DEIOTLB_TYPE; in intel_flush_svm_range_dev()
198 struct intel_svm_dev *sdev; in intel_flush_svm_range() local
206 list_for_each_entry_rcu(sdev, &svm->devs, list) in intel_flush_svm_range()
207 intel_flush_svm_range_dev(svm, sdev, address, pages, ih, gl); in intel_flush_svm_range()
[all …]
Dintel-iommu.c4992 int intel_iommu_enable_pasid(struct intel_iommu *iommu, struct intel_svm_dev *sdev) in intel_iommu_enable_pasid() argument
5001 domain = get_valid_domain_for_dev(sdev->dev); in intel_iommu_enable_pasid()
5009 info = sdev->dev->archdata.iommu; in intel_iommu_enable_pasid()
5019 sdev->did = domain->iommu_did[iommu->seq_id]; in intel_iommu_enable_pasid()
5020 sdev->sid = PCI_DEVID(info->bus, info->devfn); in intel_iommu_enable_pasid()
5049 iommu->flush.flush_context(iommu, sdev->did, sdev->sid, in intel_iommu_enable_pasid()
5059 sdev->dev_iotlb = 1; in intel_iommu_enable_pasid()
5060 sdev->qdep = info->ats_qdep; in intel_iommu_enable_pasid()
5061 if (sdev->qdep >= QI_DEV_EIOTLB_MAX_INVS) in intel_iommu_enable_pasid()
5062 sdev->qdep = 0; in intel_iommu_enable_pasid()
/linux-4.4.14/drivers/net/wireless/b43/
Dbus.c141 return ssb_bus_may_powerdown(dev->sdev->bus); in b43_bus_ssb_bus_may_powerdown()
146 return ssb_bus_powerup(dev->sdev->bus, dynamic_pctl); in b43_bus_ssb_bus_powerup()
150 return ssb_device_is_enabled(dev->sdev); in b43_bus_ssb_device_is_enabled()
155 ssb_device_enable(dev->sdev, core_specific_flags); in b43_bus_ssb_device_enable()
160 ssb_device_disable(dev->sdev, core_specific_flags); in b43_bus_ssb_device_disable()
165 return ssb_read16(dev->sdev, offset); in b43_bus_ssb_read16()
169 return ssb_read32(dev->sdev, offset); in b43_bus_ssb_read32()
173 ssb_write16(dev->sdev, offset, value); in b43_bus_ssb_write16()
177 ssb_write32(dev->sdev, offset, value); in b43_bus_ssb_write32()
182 ssb_block_read(dev->sdev, buffer, count, offset, reg_width); in b43_bus_ssb_block_read()
[all …]
Dbus.h17 struct ssb_device *sdev; member
60 dev->sdev->bus->bustype == SSB_BUSTYPE_PCMCIA); in b43_bus_host_is_pcmcia()
74 return (dev->sdev->bus->bustype == SSB_BUSTYPE_PCI); in b43_bus_host_is_pci()
83 dev->sdev->bus->bustype == SSB_BUSTYPE_SDIO); in b43_bus_host_is_sdio()
90 struct b43_bus_dev *b43_bus_dev_ssb_init(struct ssb_device *sdev);
Dphy_common.c367 tmp = ssb_read32(dev->dev->sdev, SSB_TMSLOW); in b43_phy_put_into_reset()
371 ssb_write32(dev->dev->sdev, SSB_TMSLOW, tmp); in b43_phy_put_into_reset()
374 tmp = ssb_read32(dev->dev->sdev, SSB_TMSLOW); in b43_phy_put_into_reset()
376 ssb_write32(dev->dev->sdev, SSB_TMSLOW, tmp); in b43_phy_put_into_reset()
410 tmp = ssb_read32(dev->dev->sdev, SSB_TMSLOW); in b43_phy_take_out_of_reset()
414 ssb_write32(dev->dev->sdev, SSB_TMSLOW, tmp); in b43_phy_take_out_of_reset()
415 ssb_read32(dev->dev->sdev, SSB_TMSLOW); /* flush */ in b43_phy_take_out_of_reset()
418 tmp = ssb_read32(dev->dev->sdev, SSB_TMSLOW); in b43_phy_take_out_of_reset()
421 ssb_write32(dev->dev->sdev, SSB_TMSLOW, tmp); in b43_phy_take_out_of_reset()
422 ssb_read32(dev->dev->sdev, SSB_TMSLOW); /* flush */ in b43_phy_take_out_of_reset()
[all …]
Dsdio.c69 struct ssb_bus *bus = dev->dev->sdev->bus; in b43_sdio_request_irq()
85 struct ssb_bus *bus = dev->dev->sdev->bus; in b43_sdio_free_irq()
Dmain.c1226 ssb_cc = &dev->dev->sdev->bus->chipco; in b43_wireless_core_phy_pll_reset()
2867 struct ssb_bus *bus = dev->dev->sdev->bus; in b43_ssb_gpio_dev()
3040 tmp = ssb_read32(dev->dev->sdev, SSB_TMSLOW); in b43_mac_phy_clock_set()
3045 ssb_write32(dev->dev->sdev, SSB_TMSLOW, tmp); in b43_mac_phy_clock_set()
3347 dev->dev->sdev->bus->chipco.fast_pwrup_delay); in b43_chip_init()
3951 tmp = ssb_read32(dev->dev->sdev, SSB_TMSLOW); in b43_switch_band()
3956 ssb_write32(dev->dev->sdev, SSB_TMSLOW, tmp); in b43_switch_band()
4753 bus = dev->dev->sdev->bus; in b43_imcfglo_timeouts_workaround()
4757 tmp = ssb_read32(dev->dev->sdev, SSB_IMCFGLO); in b43_imcfglo_timeouts_workaround()
4761 ssb_write32(dev->dev->sdev, SSB_IMCFGLO, tmp); in b43_imcfglo_timeouts_workaround()
[all …]
Ddma.c828 tmp = ssb_read32(dev->dev->sdev, SSB_TMSHIGH); in supported_dma_mask()
1106 dev->dev->sdev->bus->bustype == SSB_BUSTYPE_PCI && in b43_dma_translation_in_low_word()
1107 !(pci_is_pcie(dev->dev->sdev->bus->host_pci) && in b43_dma_translation_in_low_word()
1108 ssb_read32(dev->dev->sdev, SSB_TMSHIGH) & SSB_TMSHIGH_DMA64)) in b43_dma_translation_in_low_word()
1135 dma->translation = ssb_dma_translation(dev->dev->sdev); in b43_dma_init()
/linux-4.4.14/drivers/dma/
Dsun6i-dma.c188 static inline void sun6i_dma_dump_com_regs(struct sun6i_dma_dev *sdev) in sun6i_dma_dump_com_regs() argument
190 dev_dbg(sdev->slave.dev, "Common register:\n" in sun6i_dma_dump_com_regs()
196 DMA_IRQ_EN(0), readl(sdev->base + DMA_IRQ_EN(0)), in sun6i_dma_dump_com_regs()
197 DMA_IRQ_EN(1), readl(sdev->base + DMA_IRQ_EN(1)), in sun6i_dma_dump_com_regs()
198 DMA_IRQ_STAT(0), readl(sdev->base + DMA_IRQ_STAT(0)), in sun6i_dma_dump_com_regs()
199 DMA_IRQ_STAT(1), readl(sdev->base + DMA_IRQ_STAT(1)), in sun6i_dma_dump_com_regs()
200 DMA_STAT, readl(sdev->base + DMA_STAT)); in sun6i_dma_dump_com_regs()
203 static inline void sun6i_dma_dump_chan_regs(struct sun6i_dma_dev *sdev, in sun6i_dma_dump_chan_regs() argument
208 dev_dbg(sdev->slave.dev, "Chan %d reg: %pa\n" in sun6i_dma_dump_chan_regs()
335 struct sun6i_dma_dev *sdev = to_sun6i_dma_dev(vd->tx.chan->device); in sun6i_dma_free_desc() local
[all …]
/linux-4.4.14/drivers/message/fusion/
Dmptspi.c109 struct scsi_device *sdev) in mptspi_setTargetNegoParms() argument
123 if (sdev->scsi_level < SCSI_2) { in mptspi_setTargetNegoParms()
129 if (scsi_device_wide(sdev)) in mptspi_setTargetNegoParms()
132 if (scsi_device_sync(sdev)) { in mptspi_setTargetNegoParms()
134 if (!scsi_device_dt(sdev)) in mptspi_setTargetNegoParms()
137 if (!scsi_device_ius(sdev) && in mptspi_setTargetNegoParms()
138 !scsi_device_qas(sdev)) in mptspi_setTargetNegoParms()
142 if (scsi_device_qas(sdev)) { in mptspi_setTargetNegoParms()
146 scsi_device_qas(sdev), id)); in mptspi_setTargetNegoParms()
149 if (sdev->type == TYPE_TAPE && in mptspi_setTargetNegoParms()
[all …]
Dmptsas.c558 struct scsi_device *sdev; in mptsas_add_device_component() local
597 shost_for_each_device(sdev, ioc->sh) { in mptsas_add_device_component()
598 starget = scsi_target(sdev); in mptsas_add_device_component()
968 struct scsi_device *sdev; in mptsas_find_vtarget() local
972 shost_for_each_device(sdev, ioc->sh) { in mptsas_find_vtarget()
973 vdevice = sdev->hostdata; in mptsas_find_vtarget()
1086 mptsas_block_io_sdev(struct scsi_device *sdev, void *data) in mptsas_block_io_sdev() argument
1088 scsi_device_set_state(sdev, SDEV_BLOCK); in mptsas_block_io_sdev()
1686 mptsas_slave_configure(struct scsi_device *sdev) in mptsas_slave_configure() argument
1688 struct Scsi_Host *host = sdev->host; in mptsas_slave_configure()
[all …]
Dmptscsih.c2090 mptscsih_bios_param(struct scsi_device * sdev, struct block_device *bdev, in mptscsih_bios_param() argument
2288 mptscsih_slave_destroy(struct scsi_device *sdev) in mptscsih_slave_destroy() argument
2290 struct Scsi_Host *host = sdev->host; in mptscsih_slave_destroy()
2296 starget = scsi_target(sdev); in mptscsih_slave_destroy()
2298 vdevice = sdev->hostdata; in mptscsih_slave_destroy()
2306 sdev->hostdata = NULL; in mptscsih_slave_destroy()
2318 mptscsih_change_queue_depth(struct scsi_device *sdev, int qdepth) in mptscsih_change_queue_depth() argument
2320 MPT_SCSI_HOST *hd = shost_priv(sdev->host); in mptscsih_change_queue_depth()
2326 starget = scsi_target(sdev); in mptscsih_change_queue_depth()
2332 else if (sdev->type == TYPE_DISK && in mptscsih_change_queue_depth()
[all …]
Dmptscsih.h125 extern int mptscsih_bios_param(struct scsi_device * sdev, struct block_device *bdev, sector_t capac…
131 extern int mptscsih_change_queue_depth(struct scsi_device *sdev, int qdepth);
Dmptfc.c99 static int mptfc_slave_alloc(struct scsi_device *sdev);
192 struct scsi_device *sdev = SCpnt->device; in mptfc_block_error_handler() local
193 struct Scsi_Host *shost = sdev->host; in mptfc_block_error_handler()
194 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in mptfc_block_error_handler()
576 mptfc_dump_lun_info(MPT_ADAPTER *ioc, struct fc_rport *rport, struct scsi_device *sdev, in mptfc_dump_lun_info() argument
589 sdev->host->host_no, in mptfc_dump_lun_info()
591 sdev->id, ri->pg0.CurrentTargetID, in mptfc_dump_lun_info()
605 mptfc_slave_alloc(struct scsi_device *sdev) in mptfc_slave_alloc() argument
614 starget = scsi_target(sdev); in mptfc_slave_alloc()
620 hd = shost_priv(sdev->host); in mptfc_slave_alloc()
[all …]
Dmptsas.h104 struct scsi_device *sdev; member
Dmptctl.c1250 struct scsi_device *sdev; in mptctl_getiocinfo() local
1338 shost_for_each_device(sdev, ioc->sh) { in mptctl_getiocinfo()
1339 vdevice = sdev->hostdata; in mptctl_getiocinfo()
1402 struct scsi_device *sdev; in mptctl_gettargetinfo() local
1459 shost_for_each_device(sdev, ioc->sh) { in mptctl_gettargetinfo()
1462 vdevice = sdev->hostdata; in mptctl_gettargetinfo()
1841 struct scsi_device *sdev; in mptctl_do_mpt_command() local
1993 shost_for_each_device(sdev, ioc->sh) { in mptctl_do_mpt_command()
1994 struct scsi_target *starget = scsi_target(sdev); in mptctl_do_mpt_command()
/linux-4.4.14/drivers/s390/scsi/
Dzfcp_erp.c91 static void zfcp_erp_action_dismiss_lun(struct scsi_device *sdev) in zfcp_erp_action_dismiss_lun() argument
93 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_action_dismiss_lun()
101 struct scsi_device *sdev; in zfcp_erp_action_dismiss_port() local
107 __shost_for_each_device(sdev, port->adapter->scsi_host) in zfcp_erp_action_dismiss_port()
108 if (sdev_to_zfcp(sdev)->port == port) in zfcp_erp_action_dismiss_port()
109 zfcp_erp_action_dismiss_lun(sdev); in zfcp_erp_action_dismiss_port()
130 struct scsi_device *sdev) in zfcp_erp_required_act() argument
138 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_required_act()
182 struct scsi_device *sdev) in zfcp_erp_setup_act() argument
189 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_setup_act()
[all …]
Dzfcp_unit.c209 struct scsi_device *sdev; in zfcp_unit_sdev_status() local
212 sdev = zfcp_unit_sdev(unit); in zfcp_unit_sdev_status()
213 if (sdev) { in zfcp_unit_sdev_status()
214 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_unit_sdev_status()
216 scsi_device_put(sdev); in zfcp_unit_sdev_status()
233 struct scsi_device *sdev; in zfcp_unit_remove() local
244 sdev = zfcp_unit_sdev(unit); in zfcp_unit_remove()
245 if (sdev) { in zfcp_unit_remove()
246 scsi_remove_device(sdev); in zfcp_unit_remove()
247 scsi_device_put(sdev); in zfcp_unit_remove()
Dzfcp_sysfs.c126 struct scsi_device *sdev; in zfcp_sysfs_unit_failed_show() local
129 sdev = zfcp_unit_sdev(unit); in zfcp_sysfs_unit_failed_show()
130 if (sdev) { in zfcp_sysfs_unit_failed_show()
131 status = atomic_read(&sdev_to_zfcp(sdev)->status); in zfcp_sysfs_unit_failed_show()
133 scsi_device_put(sdev); in zfcp_sysfs_unit_failed_show()
145 struct scsi_device *sdev; in zfcp_sysfs_unit_failed_store() local
150 sdev = zfcp_unit_sdev(unit); in zfcp_sysfs_unit_failed_store()
151 if (sdev) { in zfcp_sysfs_unit_failed_store()
152 zfcp_erp_set_lun_status(sdev, ZFCP_STATUS_COMMON_RUNNING); in zfcp_sysfs_unit_failed_store()
153 zfcp_erp_lun_reopen(sdev, ZFCP_STATUS_COMMON_ERP_FAILED, in zfcp_sysfs_unit_failed_store()
[all …]
Dzfcp_def.h118 struct scsi_device *sdev; member
264 static inline struct zfcp_scsi_dev *sdev_to_zfcp(struct scsi_device *sdev) in sdev_to_zfcp() argument
266 return scsi_transport_device_data(sdev); in sdev_to_zfcp()
273 static inline u64 zfcp_scsi_dev_lun(struct scsi_device *sdev) in zfcp_scsi_dev_lun() argument
277 int_to_scsilun(sdev->lun, (struct scsi_lun *)&fcp_lun); in zfcp_scsi_dev_lun()
Dzfcp_fsf.c812 struct scsi_device *sdev = req->data; in zfcp_fsf_abort_fcp_command_handler() local
819 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_abort_fcp_command_handler()
846 zfcp_erp_set_lun_status(sdev, ZFCP_STATUS_COMMON_ACCESS_BOXED); in zfcp_fsf_abort_fcp_command_handler()
847 zfcp_erp_lun_reopen(sdev, ZFCP_STATUS_COMMON_ERP_FAILED, in zfcp_fsf_abort_fcp_command_handler()
876 struct scsi_device *sdev = scmnd->device; in zfcp_fsf_abort_fcp_cmnd() local
877 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_abort_fcp_cmnd()
898 req->data = sdev; in zfcp_fsf_abort_fcp_cmnd()
1667 struct scsi_device *sdev; in zfcp_fsf_close_physical_port_handler() local
1681 shost_for_each_device(sdev, port->adapter->scsi_host) in zfcp_fsf_close_physical_port_handler()
1682 if (sdev_to_zfcp(sdev)->port == port) in zfcp_fsf_close_physical_port_handler()
[all …]
Dzfcp_scsi.c35 static void zfcp_scsi_slave_destroy(struct scsi_device *sdev) in zfcp_scsi_slave_destroy() argument
37 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_scsi_slave_destroy()
43 zfcp_erp_lun_shutdown_wait(sdev, "scssd_1"); in zfcp_scsi_slave_destroy()
110 static int zfcp_scsi_slave_alloc(struct scsi_device *sdev) in zfcp_scsi_slave_alloc() argument
112 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in zfcp_scsi_slave_alloc()
114 (struct zfcp_adapter *) sdev->host->hostdata[0]; in zfcp_scsi_slave_alloc()
115 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_scsi_slave_alloc()
124 unit = zfcp_unit_find(port, zfcp_scsi_dev_lun(sdev)); in zfcp_scsi_slave_alloc()
142 zfcp_erp_set_lun_status(sdev, ZFCP_STATUS_COMMON_RUNNING); in zfcp_scsi_slave_alloc()
143 zfcp_erp_lun_reopen(sdev, 0, "scsla_1"); in zfcp_scsi_slave_alloc()
Dzfcp_dbf.c233 struct scsi_device *sdev) in zfcp_dbf_set_common() argument
241 if (sdev) { in zfcp_dbf_set_common()
242 rec->lun_status = atomic_read(&sdev_to_zfcp(sdev)->status); in zfcp_dbf_set_common()
243 rec->lun = zfcp_scsi_dev_lun(sdev); in zfcp_dbf_set_common()
259 struct zfcp_port *port, struct scsi_device *sdev, in zfcp_dbf_rec_trig() argument
272 zfcp_dbf_set_common(rec, adapter, port, sdev); in zfcp_dbf_rec_trig()
304 zfcp_dbf_set_common(rec, erp->adapter, erp->port, erp->sdev); in zfcp_dbf_rec_run()
311 if (erp->sdev) in zfcp_dbf_rec_run()
313 atomic_read(&sdev_to_zfcp(erp->sdev)->erp_counter); in zfcp_dbf_rec_run()
/linux-4.4.14/drivers/infiniband/ulp/srpt/
Dib_srpt.c115 static inline const char *srpt_sdev_name(struct srpt_device *sdev) in srpt_sdev_name() argument
117 return sdev->device->name; in srpt_sdev_name()
175 struct srpt_device *sdev; in srpt_event_handler() local
178 sdev = ib_get_client_data(event->device, &srpt_client); in srpt_event_handler()
179 if (!sdev || sdev->device != event->device) in srpt_event_handler()
183 srpt_sdev_name(sdev)); in srpt_event_handler()
187 if (event->element.port_num <= sdev->device->phys_port_cnt) { in srpt_event_handler()
188 sport = &sdev->port[event->element.port_num - 1]; in srpt_event_handler()
200 if (event->element.port_num <= sdev->device->phys_port_cnt) { in srpt_event_handler()
201 sport = &sdev->port[event->element.port_num - 1]; in srpt_event_handler()
[all …]
Dib_srpt.h359 struct srpt_device *sdev; member
/linux-4.4.14/arch/mips/ralink/
Dcevt-rt3352.c45 struct systick_device *sdev; in systick_next_event() local
48 sdev = container_of(evt, struct systick_device, dev); in systick_next_event()
49 count = ioread32(sdev->membase + SYSTICK_COUNT); in systick_next_event()
51 iowrite32(count, sdev->membase + SYSTICK_COMPARE); in systick_next_event()
93 struct systick_device *sdev; in systick_shutdown() local
95 sdev = container_of(evt, struct systick_device, dev); in systick_shutdown()
97 if (sdev->irq_requested) in systick_shutdown()
99 sdev->irq_requested = 0; in systick_shutdown()
107 struct systick_device *sdev; in systick_set_oneshot() local
109 sdev = container_of(evt, struct systick_device, dev); in systick_set_oneshot()
[all …]
/linux-4.4.14/drivers/scsi/cxlflash/
Dlunmgt.c33 static struct llun_info *create_local(struct scsi_device *sdev, u8 *wwid) in create_local() argument
43 lli->sdev = sdev; in create_local()
44 lli->host_no = sdev->host->host_no; in create_local()
59 static struct glun_info *create_global(struct scsi_device *sdev, u8 *wwid) in create_global() argument
130 static struct llun_info *find_and_create_lun(struct scsi_device *sdev, u8 *wwid) in find_and_create_lun() argument
134 struct Scsi_Host *shost = sdev->host; in find_and_create_lun()
144 lli = create_local(sdev, wwid); in find_and_create_lun()
155 gli = create_global(sdev, wwid); in find_and_create_lun()
225 int cxlflash_manage_lun(struct scsi_device *sdev, in cxlflash_manage_lun() argument
231 u32 chan = sdev->channel; in cxlflash_manage_lun()
[all …]
Dsuperpipe.c303 static int read_cap16(struct scsi_device *sdev, struct llun_info *lli) in read_cap16() argument
305 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)sdev->host->hostdata; in read_cap16()
334 result = scsi_execute(sdev, scsi_cmd, DMA_FROM_DEVICE, cmd_buf, in read_cap16()
604 int _cxlflash_disk_release(struct scsi_device *sdev, in _cxlflash_disk_release() argument
608 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)sdev->host->hostdata; in _cxlflash_disk_release()
610 struct llun_info *lli = sdev->hostdata; in _cxlflash_disk_release()
659 rc = _cxlflash_vlun_resize(sdev, ctxi, &size); in _cxlflash_disk_release()
701 int cxlflash_disk_release(struct scsi_device *sdev, in cxlflash_disk_release() argument
704 return _cxlflash_disk_release(sdev, NULL, release); in cxlflash_disk_release()
820 static int _cxlflash_disk_detach(struct scsi_device *sdev, in _cxlflash_disk_detach() argument
[all …]
Dvlun.c423 static int write_same16(struct scsi_device *sdev, in write_same16() argument
435 u32 to = sdev->request_queue->rq_timeout; in write_same16()
436 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)sdev->host->hostdata; in write_same16()
456 result = scsi_execute(sdev, scsi_cmd, DMA_TO_DEVICE, cmd_buf, in write_same16()
505 struct scsi_device *sdev, in grow_lxt() argument
512 struct llun_info *lli = sdev->hostdata; in grow_lxt()
618 struct scsi_device *sdev, in shrink_lxt() argument
625 struct llun_info *lli = sdev->hostdata; in shrink_lxt()
693 write_same16(sdev, aun, MC_CHUNK_SIZE); in shrink_lxt()
727 int _cxlflash_vlun_resize(struct scsi_device *sdev, in _cxlflash_vlun_resize() argument
[all …]
Dsuperpipe.h71 struct scsi_device *sdev; member
77 struct scsi_device *sdev; member
/linux-4.4.14/drivers/dma/sh/
Dshdma-base.c57 struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device); in shdma_chan_xfer_ld_queue() local
58 const struct shdma_ops *ops = sdev->ops; in shdma_chan_xfer_ld_queue()
130 struct shdma_dev *sdev = in shdma_tx_submit() local
132 const struct shdma_ops *ops = sdev->ops; in shdma_tx_submit()
176 struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device); in shdma_setup_slave() local
177 const struct shdma_ops *ops = sdev->ops; in shdma_setup_slave()
209 struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device); in shdma_alloc_chan_resources() local
210 const struct shdma_ops *ops = sdev->ops; in shdma_alloc_chan_resources()
231 sdev->desc_size, GFP_KERNEL); in shdma_alloc_chan_resources()
280 struct shdma_dev *sdev; in shdma_chan_filter() local
[all …]
Dsudmac.c142 struct sudmac_device *sdev = to_sdev(sc); in sudmac_find_slave() local
143 struct sudmac_pdata *pdata = sdev->pdata; in sudmac_find_slave()
241 struct shdma_dev *sdev = &su_dev->shdma_dev; in sudmac_chan_probe() local
242 struct platform_device *pdev = to_platform_device(sdev->dma_dev.dev); in sudmac_chan_probe()
249 dev_err(sdev->dma_dev.dev, in sudmac_chan_probe()
257 shdma_chan_probe(sdev, schan, id); in sudmac_chan_probe()
283 dev_err(sdev->dma_dev.dev, in sudmac_chan_probe()
Dshdmac.c527 struct shdma_dev *sdev = &shdev->shdma_dev; in sh_dmae_chan_probe() local
528 struct platform_device *pdev = to_platform_device(sdev->dma_dev.dev); in sh_dmae_chan_probe()
533 sh_chan = devm_kzalloc(sdev->dma_dev.dev, sizeof(struct sh_dmae_chan), in sh_dmae_chan_probe()
536 dev_err(sdev->dma_dev.dev, in sh_dmae_chan_probe()
544 shdma_chan_probe(sdev, schan, id); in sh_dmae_chan_probe()
558 dev_err(sdev->dma_dev.dev, in sh_dmae_chan_probe()
Drcar-hpbdma.c505 struct shdma_dev *sdev = &hpbdev->shdma_dev; in hpb_dmae_chan_probe() local
523 shdma_chan_probe(sdev, schan, id); in hpb_dmae_chan_probe()
/linux-4.4.14/drivers/staging/gdm72xx/
Dgdm_sdio.c124 static void release_sdio(struct sdiowm_dev *sdev) in release_sdio() argument
126 struct tx_cxt *tx = &sdev->tx; in release_sdio()
127 struct rx_cxt *rx = &sdev->rx; in release_sdio()
161 static int init_sdio(struct sdiowm_dev *sdev) in init_sdio() argument
164 struct tx_cxt *tx = &sdev->tx; in init_sdio()
165 struct rx_cxt *rx = &sdev->rx; in init_sdio()
209 release_sdio(sdev); in init_sdio()
329 struct sdiowm_dev *sdev = container_of(work, struct sdiowm_dev, ws); in do_tx() local
330 struct sdio_func *func = sdev->func; in do_tx()
331 struct tx_cxt *tx = &sdev->tx; in do_tx()
[all …]
/linux-4.4.14/drivers/base/regmap/
Dregmap-spmi.c94 struct regmap *__regmap_init_spmi_base(struct spmi_device *sdev, in __regmap_init_spmi_base() argument
99 return __regmap_init(&sdev->dev, &regmap_spmi_base, sdev, config, in __regmap_init_spmi_base()
104 struct regmap *__devm_regmap_init_spmi_base(struct spmi_device *sdev, in __devm_regmap_init_spmi_base() argument
109 return __devm_regmap_init(&sdev->dev, &regmap_spmi_base, sdev, config, in __devm_regmap_init_spmi_base()
214 struct regmap *__regmap_init_spmi_ext(struct spmi_device *sdev, in __regmap_init_spmi_ext() argument
219 return __regmap_init(&sdev->dev, &regmap_spmi_ext, sdev, config, in __regmap_init_spmi_ext()
224 struct regmap *__devm_regmap_init_spmi_ext(struct spmi_device *sdev, in __devm_regmap_init_spmi_ext() argument
229 return __devm_regmap_init(&sdev->dev, &regmap_spmi_ext, sdev, config, in __devm_regmap_init_spmi_ext()
/linux-4.4.14/drivers/net/ethernet/broadcom/
Db44.c148 static inline void b44_sync_dma_desc_for_device(struct ssb_device *sdev, in b44_sync_dma_desc_for_device() argument
153 dma_sync_single_for_device(sdev->dma_dev, dma_base + offset, in b44_sync_dma_desc_for_device()
157 static inline void b44_sync_dma_desc_for_cpu(struct ssb_device *sdev, in b44_sync_dma_desc_for_cpu() argument
162 dma_sync_single_for_cpu(sdev->dma_dev, dma_base + offset, in b44_sync_dma_desc_for_cpu()
168 return ssb_read32(bp->sdev, reg); in br32()
174 ssb_write32(bp->sdev, reg, val); in bw32()
632 dma_unmap_single(bp->sdev->dma_dev, in b44_tx()
677 mapping = dma_map_single(bp->sdev->dma_dev, skb->data, in b44_alloc_rx_skb()
683 if (dma_mapping_error(bp->sdev->dma_dev, mapping) || in b44_alloc_rx_skb()
686 if (!dma_mapping_error(bp->sdev->dma_dev, mapping)) in b44_alloc_rx_skb()
[all …]
Db44.h398 struct ssb_device *sdev; member
/linux-4.4.14/sound/core/seq/
Dseq_device.c60 struct snd_seq_device *sdev = to_seq_dev(dev); in snd_seq_bus_match() local
63 return strcmp(sdrv->id, sdev->id) == 0 && in snd_seq_bus_match()
64 sdrv->argsize == sdev->argsize; in snd_seq_bus_match()
80 struct snd_seq_device *sdev = to_seq_dev(dev); in print_dev_info() local
83 snd_iprintf(buffer, "snd-%s,%s,%d\n", sdev->id, in print_dev_info()
106 struct snd_seq_device *sdev = to_seq_dev(dev); in request_seq_drv() local
109 request_module("snd-%s", sdev->id); in request_seq_drv()
189 struct snd_seq_device *sdev = to_seq_dev(dev); in snd_seq_dev_release() local
191 if (sdev->private_free) in snd_seq_dev_release()
192 sdev->private_free(sdev); in snd_seq_dev_release()
[all …]
/linux-4.4.14/drivers/ssb/
Ddriver_gige.c170 static int ssb_gige_probe(struct ssb_device *sdev, in ssb_gige_probe() argument
179 dev->dev = sdev; in ssb_gige_probe()
194 if (!ssb_device_is_enabled(sdev)) in ssb_gige_probe()
195 ssb_device_enable(sdev, 0); in ssb_gige_probe()
198 base = ssb_admatch_base(ssb_read32(sdev, SSB_ADMATCH1)); in ssb_gige_probe()
222 tmslow = ssb_read32(sdev, SSB_TMSLOW); in ssb_gige_probe()
223 tmshigh = ssb_read32(sdev, SSB_TMSHIGH); in ssb_gige_probe()
234 ssb_write32(sdev, SSB_TMSLOW, tmslow); in ssb_gige_probe()
236 ssb_set_drvdata(sdev, dev); in ssb_gige_probe()
250 int ssb_gige_pcibios_plat_dev_init(struct ssb_device *sdev, in ssb_gige_pcibios_plat_dev_init() argument
[all …]
Dmain.c206 struct ssb_device *sdev; in ssb_devices_freeze() local
215 sdev = ssb_device_get(&bus->devices[i]); in ssb_devices_freeze()
217 if (!sdev->dev || !sdev->dev->driver || in ssb_devices_freeze()
218 !device_is_registered(sdev->dev)) { in ssb_devices_freeze()
219 ssb_device_put(sdev); in ssb_devices_freeze()
222 sdrv = drv_to_ssb_drv(sdev->dev->driver); in ssb_devices_freeze()
225 sdrv->remove(sdev); in ssb_devices_freeze()
241 struct ssb_device *sdev; in ssb_devices_thaw() local
249 sdev = &bus->devices[i]; in ssb_devices_thaw()
251 if (SSB_WARN_ON(!sdev->dev || !sdev->dev->driver)) in ssb_devices_thaw()
[all …]
/linux-4.4.14/tools/usb/usbip/libsrc/
Dusbip_common.c182 int read_usb_device(struct udev_device *sdev, struct usbip_usb_device *udev) in read_usb_device() argument
187 READ_ATTR(udev, uint8_t, sdev, bDeviceClass, "%02x\n"); in read_usb_device()
188 READ_ATTR(udev, uint8_t, sdev, bDeviceSubClass, "%02x\n"); in read_usb_device()
189 READ_ATTR(udev, uint8_t, sdev, bDeviceProtocol, "%02x\n"); in read_usb_device()
191 READ_ATTR(udev, uint16_t, sdev, idVendor, "%04x\n"); in read_usb_device()
192 READ_ATTR(udev, uint16_t, sdev, idProduct, "%04x\n"); in read_usb_device()
193 READ_ATTR(udev, uint16_t, sdev, bcdDevice, "%04x\n"); in read_usb_device()
195 READ_ATTR(udev, uint8_t, sdev, bConfigurationValue, "%02x\n"); in read_usb_device()
196 READ_ATTR(udev, uint8_t, sdev, bNumConfigurations, "%02x\n"); in read_usb_device()
197 READ_ATTR(udev, uint8_t, sdev, bNumInterfaces, "%02x\n"); in read_usb_device()
[all …]
Dusbip_common.h121 int read_usb_device(struct udev_device *sdev, struct usbip_usb_device *udev);
/linux-4.4.14/drivers/ata/
Dlibata-scsi.c173 struct scsi_device *sdev = to_scsi_device(device); in ata_scsi_park_show() local
181 ap = ata_shost_to_port(sdev->host); in ata_scsi_park_show()
184 dev = ata_scsi_find_dev(ap, sdev); in ata_scsi_park_show()
213 struct scsi_device *sdev = to_scsi_device(device); in ata_scsi_park_store() local
230 ap = ata_shost_to_port(sdev->host); in ata_scsi_park_store()
233 dev = ata_scsi_find_dev(ap, sdev); in ata_scsi_park_store()
323 struct scsi_device *sdev = to_scsi_device(dev); in ata_scsi_activity_show() local
324 struct ata_port *ap = ata_shost_to_port(sdev->host); in ata_scsi_activity_show()
325 struct ata_device *atadev = ata_scsi_find_dev(ap, sdev); in ata_scsi_activity_show()
337 struct scsi_device *sdev = to_scsi_device(dev); in ata_scsi_activity_store() local
[all …]
Dlibata-zpodd.c174 sdev_disable_disk_events(dev->sdev); in zpodd_enable_run_wake()
225 sdev_enable_disk_events(dev->sdev); in zpodd_post_poweron()
232 struct device *dev = &ata_dev->sdev->sdev_gendev; in zpodd_wake_dev()
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) in nv_adma_slave_config() argument
675 struct ata_port *ap = ata_shost_to_port(sdev->host); in nv_adma_slave_config()
686 rc = ata_scsi_slave_config(sdev); in nv_adma_slave_config()
688 if (sdev->id >= ATA_MAX_DEVICES || sdev->channel || sdev->lun) in nv_adma_slave_config()
694 if (ap->link.device[sdev->id].class == ATA_DEV_ATAPI) { in nv_adma_slave_config()
739 sdev0 = ap->host->ports[0]->link.device[0].sdev; in nv_adma_slave_config()
740 sdev1 = ap->host->ports[1]->link.device[0].sdev; in nv_adma_slave_config()
771 blk_queue_segment_boundary(sdev->request_queue, segment_boundary); in nv_adma_slave_config()
[all …]
Dpata_macio.c794 static int pata_macio_slave_config(struct scsi_device *sdev) in pata_macio_slave_config() argument
796 struct ata_port *ap = ata_shost_to_port(sdev->host); in pata_macio_slave_config()
803 rc = ata_scsi_slave_config(sdev); in pata_macio_slave_config()
808 dev = &ap->link.device[sdev->id]; in pata_macio_slave_config()
812 blk_queue_update_dma_alignment(sdev->request_queue, 31); in pata_macio_slave_config()
813 blk_queue_update_dma_pad(sdev->request_queue, 31); in pata_macio_slave_config()
827 blk_queue_update_dma_alignment(sdev->request_queue, 15); in pata_macio_slave_config()
828 blk_queue_update_dma_pad(sdev->request_queue, 15); in pata_macio_slave_config()
/linux-4.4.14/sound/aoa/soundbus/
Dsysfs.c18 struct soundbus_dev *sdev = to_soundbus_device(dev); in modalias_show() local
19 struct platform_device *of = &sdev->ofdev; in modalias_show()
22 if (*sdev->modalias) { in modalias_show()
23 strlcpy(buf, sdev->modalias, sizeof(sdev->modalias) + 1); in modalias_show()
Dsoundbus.h49 struct soundbus_dev *sdev; member
/linux-4.4.14/drivers/mfd/
Dqcom-spmi-pmic.c121 static int pmic_spmi_probe(struct spmi_device *sdev) in pmic_spmi_probe() argument
123 struct device_node *root = sdev->dev.of_node; in pmic_spmi_probe()
126 regmap = devm_regmap_init_spmi_ext(sdev, &spmi_regmap_config); in pmic_spmi_probe()
130 pmic_spmi_show_revid(regmap, &sdev->dev); in pmic_spmi_probe()
132 return of_platform_populate(root, NULL, NULL, &sdev->dev); in pmic_spmi_probe()
135 static void pmic_spmi_remove(struct spmi_device *sdev) in pmic_spmi_remove() argument
137 of_platform_depopulate(&sdev->dev); in pmic_spmi_remove()
/linux-4.4.14/drivers/soc/qcom/
Dsmd-rpm.c198 static int qcom_smd_rpm_probe(struct qcom_smd_device *sdev) in qcom_smd_rpm_probe() argument
202 rpm = devm_kzalloc(&sdev->dev, sizeof(*rpm), GFP_KERNEL); in qcom_smd_rpm_probe()
209 rpm->rpm_channel = sdev->channel; in qcom_smd_rpm_probe()
211 dev_set_drvdata(&sdev->dev, rpm); in qcom_smd_rpm_probe()
213 return of_platform_populate(sdev->dev.of_node, NULL, NULL, &sdev->dev); in qcom_smd_rpm_probe()
216 static void qcom_smd_rpm_remove(struct qcom_smd_device *sdev) in qcom_smd_rpm_remove() argument
218 of_platform_depopulate(&sdev->dev); in qcom_smd_rpm_remove()
/linux-4.4.14/drivers/scsi/aacraid/
Dlinit.c310 static int aac_biosparm(struct scsi_device *sdev, struct block_device *bdev, in aac_biosparm() argument
402 static int aac_slave_configure(struct scsi_device *sdev) in aac_slave_configure() argument
404 struct aac_dev *aac = (struct aac_dev *)sdev->host->hostdata; in aac_slave_configure()
405 if (aac->jbod && (sdev->type == TYPE_DISK)) in aac_slave_configure()
406 sdev->removable = 1; in aac_slave_configure()
407 if ((sdev->type == TYPE_DISK) && in aac_slave_configure()
408 (sdev_channel(sdev) != CONTAINER_CHANNEL) && in aac_slave_configure()
409 (!aac->jbod || sdev->inq_periph_qual) && in aac_slave_configure()
410 (!aac->raid_scsi_mode || (sdev_channel(sdev) != 2))) { in aac_slave_configure()
414 sdev->no_uld_attach = 1; in aac_slave_configure()
[all …]
Daachba.c2107 struct scsi_device *sdev = cmd->device; in synchronize_callback() local
2109 u32 cid = sdev_id(sdev); in synchronize_callback()
2134 struct scsi_device *sdev = scsicmd->device; in aac_synchronize() local
2146 spin_lock_irqsave(&sdev->list_lock, flags); in aac_synchronize()
2147 list_for_each_entry(cmd, &sdev->cmd_list, list) in aac_synchronize()
2197 spin_unlock_irqrestore(&sdev->list_lock, flags); in aac_synchronize()
2205 aac = (struct aac_dev *)sdev->host->hostdata; in aac_synchronize()
2271 struct scsi_device *sdev = scsicmd->device; in aac_start_stop() local
2272 struct aac_dev *aac = (struct aac_dev *)sdev->host->hostdata; in aac_start_stop()
2300 pmcmd->cid = cpu_to_le32(sdev_id(sdev)); in aac_start_stop()
/linux-4.4.14/drivers/scsi/aic7xxx/
Daic7xxx_proc.c160 struct scsi_device *sdev; in ahc_dump_target_state() local
162 sdev = scsi_device_lookup_by_target(starget, lun); in ahc_dump_target_state()
164 if (sdev == NULL) in ahc_dump_target_state()
167 ahc_dump_device_state(m, sdev); in ahc_dump_target_state()
172 ahc_dump_device_state(struct seq_file *m, struct scsi_device *sdev) in ahc_dump_device_state() argument
174 struct ahc_linux_device *dev = scsi_transport_device_data(sdev); in ahc_dump_device_state()
177 sdev->sdev_target->channel + 'A', in ahc_dump_device_state()
178 sdev->sdev_target->id, (u8)sdev->lun); in ahc_dump_device_state()
Daic79xx_proc.c50 struct scsi_device *sdev);
192 ahd_dump_device_state(struct seq_file *m, struct scsi_device *sdev) in ahd_dump_device_state() argument
194 struct ahd_linux_device *dev = scsi_transport_device_data(sdev); in ahd_dump_device_state()
197 sdev->sdev_target->channel + 'A', in ahd_dump_device_state()
198 sdev->sdev_target->id, (u8)sdev->lun); in ahd_dump_device_state()
Daic7xxx_osm.c640 ahc_linux_slave_alloc(struct scsi_device *sdev) in ahc_linux_slave_alloc() argument
643 *((struct ahc_softc **)sdev->host->hostdata); in ahc_linux_slave_alloc()
644 struct scsi_target *starget = sdev->sdev_target; in ahc_linux_slave_alloc()
648 printk("%s: Slave Alloc %d\n", ahc_name(ahc), sdev->id); in ahc_linux_slave_alloc()
650 dev = scsi_transport_device_data(sdev); in ahc_linux_slave_alloc()
672 ahc_linux_slave_configure(struct scsi_device *sdev) in ahc_linux_slave_configure() argument
676 ahc = *((struct ahc_softc **)sdev->host->hostdata); in ahc_linux_slave_configure()
679 sdev_printk(KERN_INFO, sdev, "Slave Configure\n"); in ahc_linux_slave_configure()
681 ahc_linux_device_queue_depth(sdev); in ahc_linux_slave_configure()
684 if (!spi_initial_dv(sdev->sdev_target)) in ahc_linux_slave_configure()
[all …]
Daic79xx_osm.c672 ahd_linux_slave_alloc(struct scsi_device *sdev) in ahd_linux_slave_alloc() argument
675 *((struct ahd_softc **)sdev->host->hostdata); in ahd_linux_slave_alloc()
679 printk("%s: Slave Alloc %d\n", ahd_name(ahd), sdev->id); in ahd_linux_slave_alloc()
681 dev = scsi_transport_device_data(sdev); in ahd_linux_slave_alloc()
701 ahd_linux_slave_configure(struct scsi_device *sdev) in ahd_linux_slave_configure() argument
705 ahd = *((struct ahd_softc **)sdev->host->hostdata); in ahd_linux_slave_configure()
707 sdev_printk(KERN_INFO, sdev, "Slave Configure\n"); in ahd_linux_slave_configure()
709 ahd_linux_device_queue_depth(sdev); in ahd_linux_slave_configure()
712 if (!spi_initial_dv(sdev->sdev_target)) in ahd_linux_slave_configure()
713 spi_dv_device(sdev); in ahd_linux_slave_configure()
[all …]
/linux-4.4.14/drivers/firewire/
Dsbp2.c815 struct scsi_device *sdev; in sbp2_login() local
876 sdev = __scsi_add_device(shost, 0, 0, sbp2_lun2int(lu->lun), lu); in sbp2_login()
886 if (IS_ERR(sdev)) in sbp2_login()
892 scsi_remove_device(sdev); in sbp2_login()
893 scsi_device_put(sdev); in sbp2_login()
899 scsi_device_put(sdev); in sbp2_login()
1234 struct scsi_device *sdev; in sbp2_remove() local
1241 sdev = scsi_device_lookup(shost, 0, 0, sbp2_lun2int(lu->lun)); in sbp2_remove()
1242 if (sdev) { in sbp2_remove()
1243 scsi_remove_device(sdev); in sbp2_remove()
[all …]
/linux-4.4.14/include/linux/ssb/
Dssb_driver_gige.h121 extern int ssb_gige_pcibios_plat_dev_init(struct ssb_device *sdev,
123 extern int ssb_gige_map_irq(struct ssb_device *sdev,
141 static inline int ssb_gige_pcibios_plat_dev_init(struct ssb_device *sdev, in ssb_gige_pcibios_plat_dev_init() argument
146 static inline int ssb_gige_map_irq(struct ssb_device *sdev, in ssb_gige_map_irq() argument
Dssb.h264 struct ssb_device *sdev; member
291 return wrap->sdev; in dev_to_ssb_dev()
646 void ssb_pcihost_set_power_state(struct ssb_device *sdev, pci_power_t state) in ssb_pcihost_set_power_state() argument
648 if (sdev->bus->bustype == SSB_BUSTYPE_PCI) in ssb_pcihost_set_power_state()
649 pci_set_power_state(sdev->bus->host_pci, state); in ssb_pcihost_set_power_state()
657 void ssb_pcihost_set_power_state(struct ssb_device *sdev, pci_power_t state) in ssb_pcihost_set_power_state() argument
/linux-4.4.14/drivers/sh/superhyway/
Dsuperhyway.c30 struct superhyway_device *sdev = to_superhyway_device(dev); in superhyway_device_release() local
32 kfree(sdev->resource); in superhyway_device_release()
33 kfree(sdev); in superhyway_device_release()
53 int superhyway_add_device(unsigned long base, struct superhyway_device *sdev, in superhyway_add_device() argument
56 struct superhyway_device *dev = sdev; in superhyway_add_device()
/linux-4.4.14/sound/aoa/fabrics/
Dlayout.c602 struct soundbus_dev *sdev; member
792 codec->soundbus_dev = ldev->sdev; in check_codec()
990 static int aoa_fabric_layout_probe(struct soundbus_dev *sdev) in aoa_fabric_layout_probe() argument
1003 while ((sound = of_get_next_child(sdev->ofdev.dev.of_node, sound))) { in aoa_fabric_layout_probe()
1029 ldev->sdev = sdev; in aoa_fabric_layout_probe()
1049 dev_set_drvdata(&sdev->ofdev.dev, ldev); in aoa_fabric_layout_probe()
1056 sdev->pcmid = ldev->layout->pcmid; in aoa_fabric_layout_probe()
1058 sdev->pcmname = ldev->layout->busname; in aoa_fabric_layout_probe()
1060 sdev->pcmname = "Master"; in aoa_fabric_layout_probe()
1065 err = aoa_fabric_register(&layout_fabric, &sdev->ofdev.dev); in aoa_fabric_layout_probe()
[all …]
/linux-4.4.14/Documentation/extcon/
Dporting-android-switch-class27 - switch_dev_register(sdev, dev)
29 : type change (sdev->edev)
32 - switch_dev_unregister(sdev)
34 : no change but type change (sdev->edev)
35 - switch_get_state(sdev)
37 : no change but type change (sdev->edev) and (return: int->u32)
38 - switch_set_state(sdev, state)
40 : no change but type change (sdev->edev) and (state: int->u32)
/linux-4.4.14/drivers/scsi/sym53c8xx_2/
Dsym_glue.c302 struct scsi_device *sdev = cmd->device; in sym_queue_command() local
311 tp = &np->target[sdev->id]; in sym_queue_command()
316 lp = sym_lp(tp, sdev->lun); in sym_queue_command()
737 static int sym53c8xx_slave_alloc(struct scsi_device *sdev) in sym53c8xx_slave_alloc() argument
739 struct sym_hcb *np = sym_get_hcb(sdev->host); in sym53c8xx_slave_alloc()
740 struct sym_tcb *tp = &np->target[sdev->id]; in sym53c8xx_slave_alloc()
745 if (sdev->id >= SYM_CONF_MAX_TARGET || sdev->lun >= SYM_CONF_MAX_LUN) in sym53c8xx_slave_alloc()
761 starget_printk(KERN_INFO, sdev->sdev_target, in sym53c8xx_slave_alloc()
768 if (sdev->lun != 0) { in sym53c8xx_slave_alloc()
772 starget_printk(KERN_INFO, sdev->sdev_target, in sym53c8xx_slave_alloc()
[all …]
/linux-4.4.14/drivers/staging/comedi/drivers/
Dcomedi_bond.c194 int sdev = -1, nchans; in do_dev_config() local
226 while ((sdev = comedi_find_subdevice_by_type(d, COMEDI_SUBD_DIO, in do_dev_config()
227 sdev + 1)) > -1) { in do_dev_config()
228 nchans = comedi_get_n_channels(d, sdev); in do_dev_config()
232 nchans, minor, sdev); in do_dev_config()
241 bdev->subdev = sdev; in do_dev_config()
/linux-4.4.14/drivers/staging/android/
Dtimed_output.h23 void (*enable)(struct timed_output_dev *sdev, int timeout);
26 int (*get_time)(struct timed_output_dev *sdev);
/linux-4.4.14/drivers/staging/iio/resolver/
Dad2s90.c24 struct spi_device *sdev; member
38 ret = spi_read(st->sdev, st->rx, 2); in ad2s90_read_raw()
74 st->sdev = spi; in ad2s90_probe()
Dad2s1200.c38 struct spi_device *sdev; member
60 ret = spi_read(st->sdev, st->rx, 2); in ad2s1200_read_raw()
126 st->sdev = spi; in ad2s1200_probe()
Dad2s1210.c85 struct spi_device *sdev; member
116 ret = spi_write(st->sdev, st->tx, 1); in ad2s1210_config_write()
138 ret = spi_sync_transfer(st->sdev, &xfer, 1); in ad2s1210_config_read()
154 dev_err(&st->sdev->dev, "ad2s1210: FCW out of range\n"); in ad2s1210_update_frequency_control_word()
494 ret = spi_read(st->sdev, st->rx, 2); in ad2s1210_read_raw()
690 st->sdev = spi; in ad2s1210_probe()
/linux-4.4.14/drivers/scsi/mpt3sas/
Dmpt3sas_scsih.c540 ret = tgt_priv->sdev; in __mpt3sas_get_sdev_from_target()
1201 scsih_change_queue_depth(struct scsi_device *sdev, int qdepth) in scsih_change_queue_depth() argument
1203 struct Scsi_Host *shost = sdev->host; in scsih_change_queue_depth()
1214 sas_device_priv_data = sdev->hostdata; in scsih_change_queue_depth()
1235 if (!sdev->tagged_supported) in scsih_change_queue_depth()
1239 return scsi_change_queue_depth(sdev, qdepth); in scsih_change_queue_depth()
1295 sas_target_priv_data->sdev = sas_device; in scsih_target_alloc()
1337 raid_device->sdev = NULL; in scsih_target_destroy()
1355 sas_target_priv_data->sdev = NULL; in scsih_target_destroy()
1375 scsih_slave_alloc(struct scsi_device *sdev) in scsih_slave_alloc() argument
[all …]
Dmpt3sas_base.h367 struct _sas_device *sdev; member
519 struct scsi_device *sdev; member
1392 extern int scsi_internal_device_block(struct scsi_device *sdev);
1393 extern int scsi_internal_device_unblock(struct scsi_device *sdev,
/linux-4.4.14/drivers/scsi/ibmvscsi/
Dibmvfc.c1502 static void ibmvfc_relogin(struct scsi_device *sdev) in ibmvfc_relogin() argument
1504 struct ibmvfc_host *vhost = shost_priv(sdev->host); in ibmvfc_relogin()
1505 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in ibmvfc_relogin()
1961 static int ibmvfc_reset_device(struct scsi_device *sdev, int type, char *desc) in ibmvfc_reset_device() argument
1963 struct ibmvfc_host *vhost = shost_priv(sdev->host); in ibmvfc_reset_device()
1964 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in ibmvfc_reset_device()
1985 tmf->cancel_key = cpu_to_be32((unsigned long)sdev->hostdata); in ibmvfc_reset_device()
1987 int_to_scsilun(sdev->lun, &tmf->iu.lun); in ibmvfc_reset_device()
1998 sdev_printk(KERN_ERR, sdev, "Failed to send %s reset event. rc=%d\n", in ibmvfc_reset_device()
2003 sdev_printk(KERN_INFO, sdev, "Resetting %s\n", desc); in ibmvfc_reset_device()
[all …]
Dibmvscsi.c1921 static int ibmvscsi_slave_configure(struct scsi_device *sdev) in ibmvscsi_slave_configure() argument
1923 struct Scsi_Host *shost = sdev->host; in ibmvscsi_slave_configure()
1927 if (sdev->type == TYPE_DISK) { in ibmvscsi_slave_configure()
1928 sdev->allow_restart = 1; in ibmvscsi_slave_configure()
1929 blk_queue_rq_timeout(sdev->request_queue, 120 * HZ); in ibmvscsi_slave_configure()
1944 static int ibmvscsi_change_queue_depth(struct scsi_device *sdev, int qdepth) in ibmvscsi_change_queue_depth() argument
1948 return scsi_change_queue_depth(sdev, qdepth); in ibmvscsi_change_queue_depth()
/linux-4.4.14/drivers/scsi/bfa/
Dbfad_im.c35 static int bfad_im_slave_alloc(struct scsi_device *sdev);
402 bfad_im_slave_destroy(struct scsi_device *sdev) in bfad_im_slave_destroy() argument
404 sdev->hostdata = NULL; in bfad_im_slave_destroy()
777 bfad_im_slave_configure(struct scsi_device *sdev) in bfad_im_slave_configure() argument
779 scsi_change_queue_depth(sdev, bfa_lun_queue_depth); in bfad_im_slave_configure()
857 bfad_ramp_up_qdepth(struct bfad_itnim_s *itnim, struct scsi_device *sdev) in bfad_ramp_up_qdepth() argument
865 shost_for_each_device(tmp_sdev, sdev->host) { in bfad_ramp_up_qdepth()
867 if (tmp_sdev->id != sdev->id) in bfad_ramp_up_qdepth()
879 bfad_handle_qfull(struct bfad_itnim_s *itnim, struct scsi_device *sdev) in bfad_handle_qfull() argument
885 shost_for_each_device(tmp_sdev, sdev->host) { in bfad_handle_qfull()
[all …]
Dbfad_im.h152 struct scsi_device *sdev);
153 void bfad_handle_qfull(struct bfad_itnim_s *itnim, struct scsi_device *sdev);
/linux-4.4.14/drivers/media/pci/bt8xx/
Dbttv-gpio.c55 struct bttv_sub_device *sdev = to_bttv_sub_dev(dev); in bttv_sub_probe() local
58 return sub->probe ? sub->probe(sdev) : -ENODEV; in bttv_sub_probe()
63 struct bttv_sub_device *sdev = to_bttv_sub_dev(dev); in bttv_sub_remove() local
67 sub->remove(sdev); in bttv_sub_remove()
/linux-4.4.14/drivers/staging/fbtft/
Dflexfb.c375 static int flexfb_probe_common(struct spi_device *sdev, in flexfb_probe_common() argument
386 if (sdev) in flexfb_probe_common()
387 dev = &sdev->dev; in flexfb_probe_common()
392 sdev ? "'SPI device'" : "'Platform device'"); in flexfb_probe_common()
417 if (sdev) in flexfb_probe_common()
418 par->spi = sdev; in flexfb_probe_common()
441 if (sdev) { in flexfb_probe_common()
Dfbtft-core.c1334 struct spi_device *sdev, struct platform_device *pdev) in fbtft_probe_common() argument
1342 if (sdev) in fbtft_probe_common()
1343 dev = &sdev->dev; in fbtft_probe_common()
1362 par->spi = sdev; in fbtft_probe_common()
Dfbtft.h271 int fbtft_probe_common(struct fbtft_display *display, struct spi_device *sdev,
/linux-4.4.14/drivers/scsi/snic/
Dsnic_main.c63 snic_slave_alloc(struct scsi_device *sdev) in snic_slave_alloc() argument
65 struct snic_tgt *tgt = starget_to_tgt(scsi_target(sdev)); in snic_slave_alloc()
78 snic_slave_configure(struct scsi_device *sdev) in snic_slave_configure() argument
80 struct snic *snic = shost_priv(sdev->host); in snic_slave_configure()
87 scsi_change_queue_depth(sdev, qdepth); in snic_slave_configure()
93 blk_queue_rq_timeout(sdev->request_queue, tmo); in snic_slave_configure()
99 snic_change_queue_depth(struct scsi_device *sdev, int qdepth) in snic_change_queue_depth() argument
104 scsi_change_queue_depth(sdev, qsz); in snic_change_queue_depth()
105 SNIC_INFO("QDepth Changed to %d\n", sdev->queue_depth); in snic_change_queue_depth()
107 return sdev->queue_depth; in snic_change_queue_depth()
/linux-4.4.14/drivers/target/
Dtarget_core_pscsi.c150 struct scsi_device *sdev) in pscsi_tape_read_blocksize() argument
163 ret = scsi_execute_req(sdev, cdb, DMA_FROM_DEVICE, buf, 12, NULL, in pscsi_tape_read_blocksize()
171 sdev->sector_size = (buf[9] << 16) | (buf[10] << 8) | (buf[11]); in pscsi_tape_read_blocksize()
172 if (!sdev->sector_size) in pscsi_tape_read_blocksize()
173 sdev->sector_size = 1024; in pscsi_tape_read_blocksize()
179 pscsi_set_inquiry_info(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_set_inquiry_info() argument
183 if (sdev->inquiry_len < INQUIRY_LEN) in pscsi_set_inquiry_info()
186 buf = sdev->inquiry; in pscsi_set_inquiry_info()
198 pscsi_get_inquiry_vpd_serial(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_get_inquiry_vpd_serial() argument
214 ret = scsi_execute_req(sdev, cdb, DMA_FROM_DEVICE, buf, in pscsi_get_inquiry_vpd_serial()
[all …]
/linux-4.4.14/drivers/spi/
Dspi-davinci.c477 struct device *sdev = dspi->bitbang.master->dev.parent; in davinci_spi_check_error() local
480 dev_dbg(sdev, "SPI Time-out Error\n"); in davinci_spi_check_error()
484 dev_dbg(sdev, "SPI Desynchronization Error\n"); in davinci_spi_check_error()
488 dev_dbg(sdev, "SPI Bit error\n"); in davinci_spi_check_error()
494 dev_dbg(sdev, "SPI Data Length Error\n"); in davinci_spi_check_error()
498 dev_dbg(sdev, "SPI Parity Error\n"); in davinci_spi_check_error()
502 dev_dbg(sdev, "SPI Data Overrun error\n"); in davinci_spi_check_error()
506 dev_dbg(sdev, "SPI Buffer Init Active\n"); in davinci_spi_check_error()
800 struct device *sdev = dspi->bitbang.master->dev.parent; in davinci_spi_request_dma() local
809 dev_err(sdev, "request RX DMA channel failed\n"); in davinci_spi_request_dma()
[all …]
Dspi-altera.c64 static inline struct altera_spi *altera_spi_to_hw(struct spi_device *sdev) in altera_spi_to_hw() argument
66 return spi_master_get_devdata(sdev->master); in altera_spi_to_hw()
Dspi-oc-tiny.c60 static inline struct tiny_spi *tiny_spi_to_hw(struct spi_device *sdev) in tiny_spi_to_hw() argument
62 return spi_master_get_devdata(sdev->master); in tiny_spi_to_hw()
Dspi-nuc900.c65 static inline struct nuc900_spi *to_hw(struct spi_device *sdev) in to_hw() argument
67 return spi_master_get_devdata(sdev->master); in to_hw()
Dspi-s3c24xx.c87 static inline struct s3c24xx_spi *to_hw(struct spi_device *sdev) in to_hw() argument
89 return spi_master_get_devdata(sdev->master); in to_hw()
/linux-4.4.14/sound/aoa/soundbus/i2sbus/
Di2sbus.h93 #define soundbus_dev_to_i2sbus_dev(sdev) \ argument
94 container_of(sdev, struct i2sbus_dev, sound)
Dpcm.c76 struct soundbus_dev *sdev; in i2sbus_pcm_open() local
92 sdev = &i2sdev->sound; in i2sbus_pcm_open()
101 list_for_each_entry(cii, &sdev->codec_list, list) { in i2sbus_pcm_open()
202 list_for_each_entry(cii, &sdev->codec_list, list) { in i2sbus_pcm_open()
210 &sdev->codec_list, list) { in i2sbus_pcm_open()
940 cii->sdev = soundbus_dev_get(dev); in i2sbus_attach_codec()
944 if (!cii->sdev) { in i2sbus_attach_codec()
/linux-4.4.14/drivers/misc/mic/cosm/
Dcosm_main.c263 cdev->sdev = device_create_with_groups(g_cosm_class, cdev->dev.parent, in cosm_driver_probe()
266 if (IS_ERR(cdev->sdev)) { in cosm_driver_probe()
267 rc = PTR_ERR(cdev->sdev); in cosm_driver_probe()
273 cdev->state_sysfs = sysfs_get_dirent(cdev->sdev->kobj.sd, in cosm_driver_probe()
/linux-4.4.14/Documentation/networking/caif/
Dspi_porting.txt110 struct cfspi_dev sdev;
181 slave.sdev.init_xfer = sspi_init_xfer;
182 slave.sdev.sig_xfer = sspi_sig_xfer;
183 slave.sdev.clk_mhz = 13;
184 slave.sdev.priv = &slave;
185 slave.sdev.name = "spi_sspi";
190 slave_device.dev.platform_data = &slave.sdev;
/linux-4.4.14/drivers/mtd/devices/
Dspear_smi.c1047 struct spear_smi *sdev = dev_get_drvdata(dev); in spear_smi_suspend() local
1049 if (sdev && sdev->clk) in spear_smi_suspend()
1050 clk_disable_unprepare(sdev->clk); in spear_smi_suspend()
1057 struct spear_smi *sdev = dev_get_drvdata(dev); in spear_smi_resume() local
1060 if (sdev && sdev->clk) in spear_smi_resume()
1061 ret = clk_prepare_enable(sdev->clk); in spear_smi_resume()
1064 spear_smi_hw_init(sdev); in spear_smi_resume()
/linux-4.4.14/drivers/input/joystick/
Dgamecon.c272 struct gc_subdev *sdev = data; in gc_n64_play_effect() local
273 unsigned char target = 1 << sdev->idx; /* select desired pin */ in gc_n64_play_effect()
310 struct gc_subdev *sdev; in gc_n64_init_ff() local
313 sdev = kmalloc(sizeof(*sdev), GFP_KERNEL); in gc_n64_init_ff()
314 if (!sdev) in gc_n64_init_ff()
317 sdev->idx = i; in gc_n64_init_ff()
321 err = input_ff_create_memless(dev, sdev, gc_n64_play_effect); in gc_n64_init_ff()
323 kfree(sdev); in gc_n64_init_ff()
/linux-4.4.14/Documentation/scsi/
Dscsi_eh.txt243 scmds are retried iff its sdev is still online (not offlined during
337 If a timedout scmd is successfully aborted and the sdev is
342 Note that both offline and ready status mean that the sdev is
344 immediate failing; thus, if a sdev is in one of the two
362 For each sdev which has failed scmds with valid sense data
369 If STU succeeds and the sdev is either offline or ready,
370 all failed scmds on the sdev are EH-finished with
376 scmds. Yet, this function EH-finish all scmds on the sdev
379 a sdev has no timed out scmd.
388 resetting clears all scmds on the sdev, there is no need
[all …]
/linux-4.4.14/drivers/scsi/megaraid/
Dmega_common.h217 #define MRAID_IS_LOGICAL_SDEV(adp, sdev) \ argument
218 (sdev->channel == (adp)->max_channel) ? 1 : 0
Dmegaraid_sas_base.c1735 static void megasas_set_dma_alignment(struct scsi_device *sdev) in megasas_set_dma_alignment() argument
1743 instance = megasas_lookup_instance(sdev->host->host_no); in megasas_set_dma_alignment()
1749 if (sdev->channel >= MEGASAS_MAX_PD_CHANNELS) { in megasas_set_dma_alignment()
1750 device_id = ((sdev->channel % 2) * MEGASAS_MAX_DEV_PER_CHANNEL) in megasas_set_dma_alignment()
1751 + sdev->id; in megasas_set_dma_alignment()
1757 blk_queue_update_dma_alignment(sdev->request_queue, 0x7); in megasas_set_dma_alignment()
1761 static int megasas_slave_configure(struct scsi_device *sdev) in megasas_slave_configure() argument
1766 instance = megasas_lookup_instance(sdev->host->host_no); in megasas_slave_configure()
1768 if (sdev->channel < MEGASAS_MAX_PD_CHANNELS && in megasas_slave_configure()
1769 sdev->type == TYPE_DISK) { in megasas_slave_configure()
[all …]
/linux-4.4.14/Documentation/DocBook/
Dscsi.xml.db41 API-sdev-evt-send
42 API-sdev-evt-alloc
43 API-sdev-evt-send-simple
68 API-scsi-alloc-sdev
/linux-4.4.14/drivers/scsi/libsas/
Dsas_scsi_host.c813 int sas_ioctl(struct scsi_device *sdev, int cmd, void __user *arg) in sas_ioctl() argument
815 struct domain_device *dev = sdev_to_domain_dev(sdev); in sas_ioctl()
818 return ata_sas_scsi_ioctl(dev->sata_dev.ap, sdev, cmd, arg); in sas_ioctl()
897 int sas_change_queue_depth(struct scsi_device *sdev, int depth) in sas_change_queue_depth() argument
899 struct domain_device *dev = sdev_to_domain_dev(sdev); in sas_change_queue_depth()
902 return __ata_change_queue_depth(dev->sata_dev.ap, sdev, depth); in sas_change_queue_depth()
904 if (!sdev->tagged_supported) in sas_change_queue_depth()
906 return scsi_change_queue_depth(sdev, depth); in sas_change_queue_depth()
/linux-4.4.14/arch/x86/platform/intel-mid/
Dsfi.c237 static void __init intel_scu_spi_device_register(struct spi_board_info *sdev) in intel_scu_spi_device_register() argument
246 new_dev = kzalloc(sizeof(*sdev), GFP_KERNEL); in intel_scu_spi_device_register()
249 sdev->modalias); in intel_scu_spi_device_register()
252 *new_dev = *sdev; in intel_scu_spi_device_register()
/linux-4.4.14/drivers/staging/rts5208/
Drtsx.c71 static int slave_alloc(struct scsi_device *sdev) in slave_alloc() argument
78 sdev->inquiry_len = 36; in slave_alloc()
82 static int slave_configure(struct scsi_device *sdev) in slave_configure() argument
92 blk_queue_dma_alignment(sdev->request_queue, (512 - 1)); in slave_configure()
108 if (sdev->scsi_level < SCSI_2) in slave_configure()
109 sdev->scsi_level = sdev->sdev_target->scsi_level = SCSI_2; in slave_configure()
/linux-4.4.14/sound/isa/wavefront/
Dwavefront_fx.c165 snd_wavefront_fx_ioctl (struct snd_hwdep *sdev, struct file *file, in snd_wavefront_fx_ioctl() argument
177 card = sdev->card; in snd_wavefront_fx_ioctl()
/linux-4.4.14/drivers/macintosh/
Dmacio_asic.c459 struct macio_dev *rdev, *mdev, *mbdev = NULL, *sdev = NULL; in macio_pci_add_devices() local
492 sdev = mdev; in macio_pci_add_devices()
509 if (sdev) { in macio_pci_add_devices()
510 pnode = sdev->ofdev.dev.of_node; in macio_pci_add_devices()
515 if (macio_add_one_device(chip, &sdev->ofdev.dev, np, in macio_pci_add_devices()
/linux-4.4.14/drivers/platform/x86/
Dmsi-laptop.c873 static int rfkill_init(struct platform_device *sdev) in rfkill_init() argument
881 rfk_bluetooth = rfkill_alloc("msi-bluetooth", &sdev->dev, in rfkill_init()
892 rfk_wlan = rfkill_alloc("msi-wlan", &sdev->dev, RFKILL_TYPE_WLAN, in rfkill_init()
903 rfk_threeg = rfkill_alloc("msi-threeg", &sdev->dev, in rfkill_init()
996 static int __init load_scm_model_init(struct platform_device *sdev) in load_scm_model_init() argument
1022 result = rfkill_init(sdev); in load_scm_model_init()
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/
Dfm10k_netdev.c1218 struct net_device *sdev) in fm10k_dfwd_add_station() argument
1275 l2_accel->macvlan[i] = sdev; in fm10k_dfwd_add_station()
1292 hw->mac.ops.update_uc_addr(hw, glort, sdev->dev_addr, 0, true, 0); in fm10k_dfwd_add_station()
1296 return sdev; in fm10k_dfwd_add_station()
1305 struct net_device *sdev = priv; in fm10k_dfwd_del_station() local
1314 if (l2_accel->macvlan[i] == sdev) in fm10k_dfwd_del_station()
1327 hw->mac.ops.update_uc_addr(hw, glort, sdev->dev_addr, 0, false, 0); in fm10k_dfwd_del_station()
/linux-4.4.14/drivers/scsi/lpfc/
Dlpfc_scsi.c72 lpfc_rport_data_from_scsi_device(struct scsi_device *sdev) in lpfc_rport_data_from_scsi_device() argument
74 struct lpfc_vport *vport = (struct lpfc_vport *)sdev->host->hostdata; in lpfc_rport_data_from_scsi_device()
77 return ((struct lpfc_device_data *)sdev->hostdata)->rport_data; in lpfc_rport_data_from_scsi_device()
79 return (struct lpfc_rport_data *)sdev->hostdata; in lpfc_rport_data_from_scsi_device()
301 struct scsi_device *sdev; in lpfc_ramp_down_queue_handler() local
321 shost_for_each_device(sdev, shost) { in lpfc_ramp_down_queue_handler()
323 sdev->queue_depth * num_rsrc_err / in lpfc_ramp_down_queue_handler()
326 new_queue_depth = sdev->queue_depth - 1; in lpfc_ramp_down_queue_handler()
328 new_queue_depth = sdev->queue_depth - in lpfc_ramp_down_queue_handler()
330 scsi_change_queue_depth(sdev, new_queue_depth); in lpfc_ramp_down_queue_handler()
[all …]
/linux-4.4.14/drivers/isdn/i4l/
Disdn_ppp.c2111 struct net_device *sdev; in isdn_ppp_dial_slave() local
2119 sdev = lp->slave; in isdn_ppp_dial_slave()
2120 while (sdev) { in isdn_ppp_dial_slave()
2121 isdn_net_local *mlp = netdev_priv(sdev); in isdn_ppp_dial_slave()
2124 sdev = mlp->slave; in isdn_ppp_dial_slave()
2126 if (!sdev) in isdn_ppp_dial_slave()
2129 isdn_net_dial_req(netdev_priv(sdev)); in isdn_ppp_dial_slave()
2142 struct net_device *sdev; in isdn_ppp_hangup_slave() local
2150 sdev = lp->slave; in isdn_ppp_hangup_slave()
2151 while (sdev) { in isdn_ppp_hangup_slave()
[all …]
/linux-4.4.14/drivers/scsi/ufs/
Dufshcd.c2820 static void ufshcd_set_queue_depth(struct scsi_device *sdev) in ufshcd_set_queue_depth() argument
2826 hba = shost_priv(sdev->host); in ufshcd_set_queue_depth()
2830 ufshcd_scsi_to_upiu_lun(sdev->lun), in ufshcd_set_queue_depth()
2846 scsi_change_queue_depth(sdev, lun_qdepth); in ufshcd_set_queue_depth()
2892 struct scsi_device *sdev) in ufshcd_get_lu_power_on_wp_status() argument
2898 if (!ufshcd_get_lu_wp(hba, ufshcd_scsi_to_upiu_lun(sdev->lun), in ufshcd_get_lu_power_on_wp_status()
2911 static int ufshcd_slave_alloc(struct scsi_device *sdev) in ufshcd_slave_alloc() argument
2915 hba = shost_priv(sdev->host); in ufshcd_slave_alloc()
2918 sdev->use_10_for_ms = 1; in ufshcd_slave_alloc()
2921 sdev->allow_restart = 1; in ufshcd_slave_alloc()
[all …]
/linux-4.4.14/drivers/infiniband/ulp/srp/
Dib_srp.c1113 struct scsi_device *sdev, in srp_claim_req() argument
1120 (!sdev || req->scmnd->device == sdev) && in srp_claim_req()
1152 struct scsi_device *sdev, int result) in srp_finish_req() argument
1154 struct scsi_cmnd *scmnd = srp_claim_req(ch, req, sdev, NULL); in srp_finish_req()
1168 struct scsi_device *sdev; in srp_terminate_io() local
1175 shost_for_each_device(sdev, shost) in srp_terminate_io()
1176 WARN_ON_ONCE(sdev->request_queue->request_fn_active); in srp_terminate_io()
2464 srp_change_queue_depth(struct scsi_device *sdev, int qdepth) in srp_change_queue_depth() argument
2466 if (!sdev->tagged_supported) in srp_change_queue_depth()
2468 return scsi_change_queue_depth(sdev, qdepth); in srp_change_queue_depth()
[all …]
/linux-4.4.14/drivers/scsi/csiostor/
Dcsio_scsi.c2226 csio_slave_alloc(struct scsi_device *sdev) in csio_slave_alloc() argument
2228 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in csio_slave_alloc()
2233 sdev->hostdata = *((struct csio_lnode **)(rport->dd_data)); in csio_slave_alloc()
2239 csio_slave_configure(struct scsi_device *sdev) in csio_slave_configure() argument
2241 scsi_change_queue_depth(sdev, csio_lun_qdepth); in csio_slave_configure()
2246 csio_slave_destroy(struct scsi_device *sdev) in csio_slave_destroy() argument
2248 sdev->hostdata = NULL; in csio_slave_destroy()
/linux-4.4.14/drivers/net/bonding/
Dbond_options.c1275 struct net_device *sdev; in bond_option_queue_id_set() local
1299 sdev = __dev_get_by_name(dev_net(bond->dev), newval->string); in bond_option_queue_id_set()
1300 if (!sdev) in bond_option_queue_id_set()
1306 if (sdev == slave->dev) in bond_option_queue_id_set()
/linux-4.4.14/arch/ia64/hp/sim/
Dsimscsi.c114 simscsi_biosparam (struct scsi_device *sdev, struct block_device *n, in simscsi_biosparam() argument
/linux-4.4.14/drivers/scsi/fnic/
Dfnic_main.c94 static int fnic_slave_alloc(struct scsi_device *sdev) in fnic_slave_alloc() argument
96 struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); in fnic_slave_alloc()
101 scsi_change_queue_depth(sdev, fnic_max_qdepth); in fnic_slave_alloc()
/linux-4.4.14/drivers/infiniband/ulp/iser/
Discsi_iser.c970 static int iscsi_iser_slave_alloc(struct scsi_device *sdev) in iscsi_iser_slave_alloc() argument
972 blk_queue_virt_boundary(sdev->request_queue, ~MASK_4K); in iscsi_iser_slave_alloc()
/linux-4.4.14/drivers/net/can/
Dgrcan.c1491 static ssize_t grcan_store_##name(struct device *sdev, \
1496 struct net_device *dev = to_net_dev(sdev); \
1508 static ssize_t grcan_show_##name(struct device *sdev, \
1512 struct net_device *dev = to_net_dev(sdev); \

12