/linux-4.4.14/drivers/scsi/ |
D | scsi_dh.c | 76 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 …]
|
D | scsi_scan.c | 180 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 …]
|
D | scsi_ioctl.c | 88 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 …]
|
D | scsi_sysfs.c | 387 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 …]
|
D | scsi_lib.c | 122 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 …]
|
D | scsi.c | 562 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 …]
|
D | ses.c | 54 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 …]
|
D | scsi_error.c | 123 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 …]
|
D | scsi_priv.h | 52 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 …]
|
D | scsi_proc.c | 179 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 …]
|
D | scsi_transport_spi.c | 119 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 …]
|
D | scsi_pm.c | 219 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 …]
|
D | sr.c | 180 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 …]
|
D | scsi_logging.c | 96 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 …]
|
D | sd.c | 588 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 …]
|
D | storvsc_drv.c | 459 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 …]
|
D | scsi_transport_srp.c | 413 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 …]
|
D | virtio_scsi.c | 324 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 …]
|
D | mvumi.c | 1418 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 …]
|
D | vmw_pvscsi.c | 507 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 …]
|
D | ipr.c | 1163 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 …]
|
D | xen-scsifront.c | 676 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()
|
D | sd.h | 149 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()
|
D | scsi_transport_sas.c | 159 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 …]
|
D | scsi_devinfo.c | 562 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()
|
D | hpsa.c | 253 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 …]
|
D | iscsi_tcp.c | 938 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()
|
D | raid_class.c | 68 struct scsi_device *sdev = to_scsi_device(dev); in raid_match() local 70 if (i->f->cookie != sdev->host->hostt) in raid_match()
|
D | gdth.c | 445 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 …]
|
D | advansys.c | 7192 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 …]
|
D | ncr53c8xx.c | 1926 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 …]
|
D | 53c700.h | 25 #define DDEBUG(prefix, sdev, fmt, a...) \ argument 26 sdev_printk(prefix, sdev, fmt, ##a)
|
D | qlogicpti.c | 966 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()
|
D | aha1740.c | 503 static int aha1740_biosparam(struct scsi_device *sdev, in aha1740_biosparam() argument 508 int extended = HOSTDATA(sdev->host)->translation; in aha1740_biosparam()
|
D | hptiop.c | 1119 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()
|
D | scsi_debug.c | 3573 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 …]
|
D | t128.c | 289 static int t128_biosparam(struct scsi_device *sdev, struct block_device *bdev, in t128_biosparam() argument
|
D | stex.c | 540 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
|
D | dtc.c | 304 static int dtc_biosparam(struct scsi_device *sdev, struct block_device *dev, in dtc_biosparam() argument
|
D | pas16.c | 464 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/ |
D | sdo_drv.c | 76 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/ |
D | si4713.c | 187 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/ |
D | stub_dev.c | 35 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 …]
|
D | stub_tx.c | 38 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 …]
|
D | stub_rx.c | 146 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 …]
|
D | stub_main.c | 227 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()
|
D | stub.h | 69 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/ |
D | scoop.c | 46 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/ |
D | scsi_device.h | 213 #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 …]
|
D | scsi_transport.h | 115 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()
|
D | scsi_ioctl.h | 43 int scsi_ioctl_block_when_processing_errors(struct scsi_device *sdev,
|
D | libsas.h | 436 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/ |
D | shmob_drm_crtc.c | 41 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 …]
|
D | shmob_drm_drv.c | 36 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 …]
|
D | shmob_drm_plane.c | 69 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 …]
|
D | shmob_drm_kms.c | 141 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 …]
|
D | shmob_drm_backlight.c | 23 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()
|
D | shmob_drm_regs.h | 279 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()
|
D | shmob_drm_crtc.h | 48 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,
|
D | shmob_drm_plane.h | 19 int shmob_drm_plane_create(struct shmob_drm_device *sdev, unsigned int index);
|
D | shmob_drm_kms.h | 32 int shmob_drm_modeset_init(struct shmob_drm_device *sdev);
|
/linux-4.4.14/drivers/spmi/ |
D | spmi.c | 32 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/ |
D | scif_bus.c | 135 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 …]
|
D | scif_bus.h | 95 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);
|
D | cosm_bus.h | 56 struct device *sdev; member
|
/linux-4.4.14/drivers/scsi/device_handler/ |
D | scsi_dh_emc.c | 119 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 …]
|
D | scsi_dh_alua.c | 77 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 …]
|
D | scsi_dh_hp_sw.c | 45 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 …]
|
D | scsi_dh_rdac.c | 256 #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/ |
D | scsiglue.c | 79 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 …]
|
D | uas.c | 156 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/ |
D | spmi.h | 58 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 …]
|
D | shdma-base.h | 121 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);
|
D | libata.h | 682 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/ |
D | scif_main.c | 77 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 …]
|
D | scif_map.h | 35 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 …]
|
D | scif_nodeqp.c | 246 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 …]
|
D | scif_peer_bus.c | 33 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()
|
D | scif_mmap.c | 51 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 …]
|
D | scif_dma.c | 46 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 …]
|
D | scif_nm.c | 119 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()
|
D | scif_rma.c | 238 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 …]
|
D | scif_fence.c | 218 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()
|
D | scif_peer_bus.h | 27 void scif_peer_register_device(struct scif_dev *sdev);
|
D | scif_api.c | 479 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()
|
D | scif_main.h | 185 struct scif_hw_dev *sdev; member
|
D | scif_rma.h | 361 int scif_drain_dma_intr(struct scif_hw_dev *sdev, struct dma_chan *chan);
|
/linux-4.4.14/drivers/iommu/ |
D | intel-svm.c | 149 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 …]
|
D | intel-iommu.c | 4992 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/ |
D | bus.c | 141 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 …]
|
D | bus.h | 17 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);
|
D | phy_common.c | 367 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 …]
|
D | sdio.c | 69 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()
|
D | main.c | 1226 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 …]
|
D | dma.c | 828 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/ |
D | sun6i-dma.c | 188 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/ |
D | mptspi.c | 109 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 …]
|
D | mptsas.c | 558 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 …]
|
D | mptscsih.c | 2090 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 …]
|
D | mptscsih.h | 125 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);
|
D | mptfc.c | 99 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 …]
|
D | mptsas.h | 104 struct scsi_device *sdev; member
|
D | mptctl.c | 1250 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/ |
D | zfcp_erp.c | 91 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 …]
|
D | zfcp_unit.c | 209 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()
|
D | zfcp_sysfs.c | 126 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 …]
|
D | zfcp_def.h | 118 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()
|
D | zfcp_fsf.c | 812 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 …]
|
D | zfcp_scsi.c | 35 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()
|
D | zfcp_dbf.c | 233 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/ |
D | ib_srpt.c | 115 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 …]
|
D | ib_srpt.h | 359 struct srpt_device *sdev; member
|
/linux-4.4.14/arch/mips/ralink/ |
D | cevt-rt3352.c | 45 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/ |
D | lunmgt.c | 33 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 …]
|
D | superpipe.c | 303 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 …]
|
D | vlun.c | 423 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 …]
|
D | superpipe.h | 71 struct scsi_device *sdev; member 77 struct scsi_device *sdev; member
|
/linux-4.4.14/drivers/dma/sh/ |
D | shdma-base.c | 57 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 …]
|
D | sudmac.c | 142 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()
|
D | shdmac.c | 527 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()
|
D | rcar-hpbdma.c | 505 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/ |
D | gdm_sdio.c | 124 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/ |
D | regmap-spmi.c | 94 struct regmap *__regmap_init_spmi_base(struct spmi_device *sdev, in __regmap_init_spmi_base() argument 99 return __regmap_init(&sdev->dev, ®map_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, ®map_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, ®map_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, ®map_spmi_ext, sdev, config, in __devm_regmap_init_spmi_ext()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/ |
D | b44.c | 148 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 …]
|
D | b44.h | 398 struct ssb_device *sdev; member
|
/linux-4.4.14/sound/core/seq/ |
D | seq_device.c | 60 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/ |
D | driver_gige.c | 170 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 …]
|
D | main.c | 206 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/ |
D | usbip_common.c | 182 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 …]
|
D | usbip_common.h | 121 int read_usb_device(struct udev_device *sdev, struct usbip_usb_device *udev);
|
/linux-4.4.14/drivers/ata/ |
D | libata-scsi.c | 173 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 …]
|
D | libata-zpodd.c | 174 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()
|
D | sata_nv.c | 314 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 …]
|
D | pata_macio.c | 794 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/ |
D | sysfs.c | 18 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()
|
D | soundbus.h | 49 struct soundbus_dev *sdev; member
|
/linux-4.4.14/drivers/mfd/ |
D | qcom-spmi-pmic.c | 121 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/ |
D | smd-rpm.c | 198 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/ |
D | linit.c | 310 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 …]
|
D | aachba.c | 2107 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/ |
D | aic7xxx_proc.c | 160 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()
|
D | aic79xx_proc.c | 50 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()
|
D | aic7xxx_osm.c | 640 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 …]
|
D | aic79xx_osm.c | 672 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/ |
D | sbp2.c | 815 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/ |
D | ssb_driver_gige.h | 121 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
|
D | ssb.h | 264 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/ |
D | superhyway.c | 30 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/ |
D | layout.c | 602 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/ |
D | porting-android-switch-class | 27 - 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/ |
D | sym_glue.c | 302 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/ |
D | comedi_bond.c | 194 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/ |
D | timed_output.h | 23 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/ |
D | ad2s90.c | 24 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()
|
D | ad2s1200.c | 38 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()
|
D | ad2s1210.c | 85 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/ |
D | mpt3sas_scsih.c | 540 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 …]
|
D | mpt3sas_base.h | 367 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/ |
D | ibmvfc.c | 1502 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 …]
|
D | ibmvscsi.c | 1921 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/ |
D | bfad_im.c | 35 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 …]
|
D | bfad_im.h | 152 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/ |
D | bttv-gpio.c | 55 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/ |
D | flexfb.c | 375 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()
|
D | fbtft-core.c | 1334 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()
|
D | fbtft.h | 271 int fbtft_probe_common(struct fbtft_display *display, struct spi_device *sdev,
|
/linux-4.4.14/drivers/scsi/snic/ |
D | snic_main.c | 63 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/ |
D | target_core_pscsi.c | 150 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/ |
D | spi-davinci.c | 477 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 …]
|
D | spi-altera.c | 64 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()
|
D | spi-oc-tiny.c | 60 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()
|
D | spi-nuc900.c | 65 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()
|
D | spi-s3c24xx.c | 87 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/ |
D | i2sbus.h | 93 #define soundbus_dev_to_i2sbus_dev(sdev) \ argument 94 container_of(sdev, struct i2sbus_dev, sound)
|
D | pcm.c | 76 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/ |
D | cosm_main.c | 263 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/ |
D | spi_porting.txt | 110 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/ |
D | spear_smi.c | 1047 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/ |
D | gamecon.c | 272 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/ |
D | scsi_eh.txt | 243 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/ |
D | mega_common.h | 217 #define MRAID_IS_LOGICAL_SDEV(adp, sdev) \ argument 218 (sdev->channel == (adp)->max_channel) ? 1 : 0
|
D | megaraid_sas_base.c | 1735 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/ |
D | scsi.xml.db | 41 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/ |
D | sas_scsi_host.c | 813 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/ |
D | sfi.c | 237 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/ |
D | rtsx.c | 71 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/ |
D | wavefront_fx.c | 165 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/ |
D | macio_asic.c | 459 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/ |
D | msi-laptop.c | 873 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/ |
D | fm10k_netdev.c | 1218 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/ |
D | lpfc_scsi.c | 72 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/ |
D | isdn_ppp.c | 2111 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/ |
D | ufshcd.c | 2820 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/ |
D | ib_srp.c | 1113 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/ |
D | csio_scsi.c | 2226 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/ |
D | bond_options.c | 1275 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/ |
D | simscsi.c | 114 simscsi_biosparam (struct scsi_device *sdev, struct block_device *n, in simscsi_biosparam() argument
|
/linux-4.4.14/drivers/scsi/fnic/ |
D | fnic_main.c | 94 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/ |
D | iscsi_iser.c | 970 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/ |
D | grcan.c | 1491 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); \
|