/linux-4.1.27/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.1.27/drivers/scsi/device_handler/ |
D | scsi_dh.c | 55 device_handler_match_function(struct scsi_device *sdev) in device_handler_match_function() argument 61 if (tmp_dh->match && tmp_dh->match(sdev)) { in device_handler_match_function() 81 struct scsi_device *sdev) in device_handler_match() argument 85 found_dh = device_handler_match_function(sdev); in device_handler_match() 98 static int scsi_dh_handler_attach(struct scsi_device *sdev, in scsi_dh_handler_attach() argument 103 if (sdev->scsi_dh_data) { in scsi_dh_handler_attach() 104 if (sdev->scsi_dh_data->scsi_dh != scsi_dh) in scsi_dh_handler_attach() 107 kref_get(&sdev->scsi_dh_data->kref); in scsi_dh_handler_attach() 114 d = scsi_dh->attach(sdev); in scsi_dh_handler_attach() 116 sdev_printk(KERN_ERR, sdev, "%s: Attach failed (%ld)\n", in scsi_dh_handler_attach() [all …]
|
D | scsi_dh_emc.c | 118 *get_clariion_data(struct scsi_device *sdev) in get_clariion_data() argument 120 return container_of(sdev->scsi_dh_data, struct clariion_dh_data, in get_clariion_data() 127 static int trespass_endio(struct scsi_device *sdev, char *sense) in trespass_endio() argument 133 sdev_printk(KERN_ERR, sdev, "%s: Found valid sense data 0x%2x, " in trespass_endio() 144 sdev_printk(KERN_INFO, sdev, "%s: Array Based Copy in " in trespass_endio() 154 sdev_printk(KERN_INFO, sdev, "%s: Detected in-progress " in trespass_endio() 161 sdev_printk(KERN_INFO, sdev, in trespass_endio() 168 static int parse_sp_info_reply(struct scsi_device *sdev, in parse_sp_info_reply() argument 175 sdev_printk(KERN_NOTICE, sdev, "%s: Detected in-progress " in parse_sp_info_reply() 183 sdev_printk(KERN_NOTICE, sdev, in parse_sp_info_reply() [all …]
|
D | scsi_dh_hp_sw.c | 46 struct scsi_device *sdev; member 53 static inline struct hp_sw_dh_data *get_hp_sw_data(struct scsi_device *sdev) in get_hp_sw_data() argument 55 return container_of(sdev->scsi_dh_data, struct hp_sw_dh_data, dh_data); in get_hp_sw_data() 65 static int tur_done(struct scsi_device *sdev, unsigned char *sense) in tur_done() argument 72 sdev_printk(KERN_WARNING, sdev, in tur_done() 94 sdev_printk(KERN_WARNING, sdev, in tur_done() 112 static int hp_sw_tur(struct scsi_device *sdev, struct hp_sw_dh_data *h) in hp_sw_tur() argument 118 req = blk_get_request(sdev->request_queue, WRITE, GFP_NOIO); in hp_sw_tur() 135 ret = tur_done(sdev, h->sense); in hp_sw_tur() 137 sdev_printk(KERN_WARNING, sdev, in hp_sw_tur() [all …]
|
D | scsi_dh_alua.c | 78 struct scsi_device *sdev; member 89 static inline struct alua_dh_data *get_alua_data(struct scsi_device *sdev) in get_alua_data() argument 91 return container_of(sdev->scsi_dh_data, struct alua_dh_data, dh_data); in get_alua_data() 109 static struct request *get_alua_req(struct scsi_device *sdev, in get_alua_req() argument 113 struct request_queue *q = sdev->request_queue; in get_alua_req() 118 sdev_printk(KERN_INFO, sdev, in get_alua_req() 126 sdev_printk(KERN_INFO, sdev, in get_alua_req() 143 static int submit_vpd_inquiry(struct scsi_device *sdev, struct alua_dh_data *h) in submit_vpd_inquiry() argument 148 rq = get_alua_req(sdev, h->buff, h->bufflen, READ); in submit_vpd_inquiry() 165 sdev_printk(KERN_INFO, sdev, in submit_vpd_inquiry() [all …]
|
D | scsi_dh_rdac.c | 257 #define RDAC_LOG(SHIFT, sdev, f, arg...) \ argument 260 sdev_printk(KERN_INFO, sdev, RDAC_NAME ": " f "\n", ## arg); \ 263 static inline struct rdac_dh_data *get_rdac_data(struct scsi_device *sdev) in get_rdac_data() argument 265 return container_of(sdev->scsi_dh_data, struct rdac_dh_data, dh_data); in get_rdac_data() 268 static struct request *get_rdac_req(struct scsi_device *sdev, in get_rdac_req() argument 272 struct request_queue *q = sdev->request_queue; in get_rdac_req() 277 sdev_printk(KERN_INFO, sdev, in get_rdac_req() 285 sdev_printk(KERN_INFO, sdev, in get_rdac_req() 298 static struct request *rdac_failover_get(struct scsi_device *sdev, in rdac_failover_get() argument 339 rq = get_rdac_req(sdev, &h->ctlr->mode_select, data_size, WRITE); in rdac_failover_get() [all …]
|
/linux-4.1.27/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.1.27/drivers/scsi/ |
D | scsi_scan.c | 179 static void scsi_unlock_floptical(struct scsi_device *sdev, in scsi_unlock_floptical() argument 184 sdev_printk(KERN_NOTICE, sdev, "unlocking floptical drive\n"); in scsi_unlock_floptical() 191 scsi_execute_req(sdev, scsi_cmd, DMA_FROM_DEVICE, result, 0x2a, NULL, in scsi_unlock_floptical() 212 struct scsi_device *sdev; in scsi_alloc_sdev() local 218 sdev = kzalloc(sizeof(*sdev) + shost->transportt->device_size, in scsi_alloc_sdev() 220 if (!sdev) in scsi_alloc_sdev() 223 sdev->vendor = scsi_null_device_strs; in scsi_alloc_sdev() 224 sdev->model = scsi_null_device_strs; in scsi_alloc_sdev() 225 sdev->rev = scsi_null_device_strs; in scsi_alloc_sdev() 226 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 parent = sdev->sdev_gendev.parent; in scsi_device_dev_release_usercontext() 404 spin_lock_irqsave(sdev->host->host_lock, flags); in scsi_device_dev_release_usercontext() 405 list_del(&sdev->siblings); in scsi_device_dev_release_usercontext() 406 list_del(&sdev->same_target_siblings); in scsi_device_dev_release_usercontext() 407 list_del(&sdev->starved_entry); in scsi_device_dev_release_usercontext() [all …]
|
D | scsi_lib.c | 121 struct scsi_device *sdev = cmd->device; in scsi_mq_requeue_cmd() local 126 put_device(&sdev->sdev_gendev); in scsi_mq_requeue_cmd() 215 int scsi_execute(struct scsi_device *sdev, const unsigned char *cmd, in scsi_execute() argument 224 req = blk_get_request(sdev->request_queue, write, __GFP_WAIT); in scsi_execute() 229 if (bufflen && blk_rq_map_kern(sdev->request_queue, req, in scsi_execute() 265 int scsi_execute_req_flags(struct scsi_device *sdev, const unsigned char *cmd, in scsi_execute_req_flags() argument 278 result = scsi_execute(sdev, cmd, data_direction, buffer, bufflen, in scsi_execute_req_flags() 308 void scsi_device_unbusy(struct scsi_device *sdev) in scsi_device_unbusy() argument 310 struct Scsi_Host *shost = sdev->host; in scsi_device_unbusy() 311 struct scsi_target *starget = scsi_target(sdev); in scsi_device_unbusy() [all …]
|
D | scsi.c | 608 struct scsi_device *sdev = cmd->device; in scsi_finish_command() local 609 struct scsi_target *starget = scsi_target(sdev); in scsi_finish_command() 610 struct Scsi_Host *shost = sdev->host; in scsi_finish_command() 614 scsi_device_unbusy(sdev); in scsi_finish_command() 624 if (atomic_read(&sdev->device_blocked)) in scsi_finish_command() 625 atomic_set(&sdev->device_blocked, 0); in scsi_finish_command() 634 SCSI_LOG_MLCOMPLETE(4, sdev_printk(KERN_INFO, sdev, in scsi_finish_command() 663 int scsi_change_queue_depth(struct scsi_device *sdev, int depth) in scsi_change_queue_depth() argument 670 spin_lock_irqsave(sdev->request_queue->queue_lock, flags); in scsi_change_queue_depth() 681 if (!shost_use_blk_mq(sdev->host) && !sdev->host->bqt) { 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 96 return scsi_execute_req(sdev, cmd, DMA_FROM_DEVICE, buf, bufflen, in ses_recv_diag() 100 static int ses_send_diag(struct scsi_device *sdev, int page_code, in ses_send_diag() argument 114 result = scsi_execute_req(sdev, cmd, DMA_TO_DEVICE, buf, bufflen, in ses_send_diag() 117 sdev_printk(KERN_ERR, sdev, "SEND DIAGNOSTIC result: %8x\n", in ses_send_diag() 127 struct scsi_device *sdev = to_scsi_device(edev->edev.parent); in ses_set_page2_descriptor() local 150 return ses_send_diag(sdev, 2, ses_dev->page2, ses_dev->page2_len); in ses_set_page2_descriptor() [all …]
|
D | scsi_error.c | 121 struct scsi_device *sdev = scmd->device; in scmd_eh_abort_handler() local 124 if (scsi_host_eh_past_deadline(sdev->host)) { in scmd_eh_abort_handler() 132 rtn = scsi_try_to_abort_cmd(sdev->host->hostt, scmd); in scmd_eh_abort_handler() 135 if (scsi_host_eh_past_deadline(sdev->host)) { in scmd_eh_abort_handler() 181 struct scsi_device *sdev = scmd->device; in scsi_abort_command() local 182 struct Scsi_Host *shost = sdev->host; in scsi_abort_command() 309 int scsi_block_when_processing_errors(struct scsi_device *sdev) in scsi_block_when_processing_errors() argument 313 wait_event(sdev->host->host_wait, !scsi_host_in_recovery(sdev->host)); in scsi_block_when_processing_errors() 315 online = scsi_device_online(sdev); in scsi_block_when_processing_errors() 317 SCSI_LOG_ERROR_RECOVERY(5, sdev_printk(KERN_INFO, sdev, in scsi_block_when_processing_errors() [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_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); 179 extern int scsi_internal_device_block(struct scsi_device *sdev); 180 extern int scsi_internal_device_unblock(struct scsi_device *sdev,
|
D | scsi_pm.c | 219 struct scsi_device *sdev = to_scsi_device(dev); in sdev_runtime_suspend() local 223 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 252 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 | 586 struct scsi_device *sdev = sdkp->device; in scsi_disk_put() local 590 scsi_device_put(sdev); in scsi_disk_put() 1167 struct scsi_device *sdev; in sd_open() local 1175 sdev = sdkp->device; in sd_open() 1182 if (!scsi_block_when_processing_errors(sdev)) in sd_open() 1185 if (sdev->removable || sdkp->write_prot) in sd_open() 1192 if (sdev->removable && !sdkp->media_present && !(mode & FMODE_NDELAY)) in sd_open() 1210 if (!scsi_device_online(sdev)) in sd_open() 1213 if ((atomic_inc_return(&sdkp->openers) == 1) && sdev->removable) { in sd_open() 1214 if (scsi_block_when_processing_errors(sdev)) in sd_open() [all …]
|
D | scsi_transport_srp.c | 407 struct scsi_device *sdev; in scsi_request_fn_active() local 411 shost_for_each_device(sdev, shost) { in scsi_request_fn_active() 412 q = sdev->request_queue; in scsi_request_fn_active() 564 struct scsi_device *sdev; in srp_reconnect_rport() local 590 __shost_for_each_device(sdev, shost) in srp_reconnect_rport() 591 if (sdev->sdev_state == SDEV_OFFLINE) in srp_reconnect_rport() 592 sdev->sdev_state = SDEV_RUNNING; in srp_reconnect_rport() 628 struct scsi_device *sdev = scmd->device; in srp_timed_out() local 629 struct Scsi_Host *shost = sdev->host; in srp_timed_out() 632 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 | storvsc_drv.c | 409 struct scsi_device *sdev; in storvsc_device_scan() local 414 sdev = scsi_device_lookup(wrk->host, 0, 0, lun); in storvsc_device_scan() 415 if (!sdev) in storvsc_device_scan() 417 scsi_rescan_device(&sdev->sdev_gendev); in storvsc_device_scan() 418 scsi_device_put(sdev); in storvsc_device_scan() 428 struct scsi_device *sdev; in storvsc_host_scan() local 447 list_for_each_entry(sdev, &host->__devices, siblings) { in storvsc_host_scan() 449 scsi_test_unit_ready(sdev, 1, 1, NULL); in storvsc_host_scan() 466 struct scsi_device *sdev; in storvsc_remove_lun() local 472 sdev = scsi_device_lookup(wrk->host, 0, 0, wrk->lun); in storvsc_remove_lun() [all …]
|
D | ipr.c | 1163 res->sdev = NULL; in ipr_init_res_entry() 1338 if (res->sdev && new_path) in ipr_update_res_entry() 1339 sdev_printk(KERN_INFO, res->sdev, "Resource path: %s\n", in ipr_update_res_entry() 1442 if (res->sdev) { in ipr_handle_config_change() 1450 } else if (!res->sdev || res->del_from_ml) { in ipr_handle_config_change() 3261 struct scsi_device *sdev; in ipr_worker_thread() local 3298 if (res->del_from_ml && res->sdev) { in ipr_worker_thread() 3300 sdev = res->sdev; in ipr_worker_thread() 3301 if (!scsi_device_get(sdev)) { in ipr_worker_thread() 3307 scsi_remove_device(sdev); in ipr_worker_thread() [all …]
|
D | sd.h | 148 static inline sector_t logical_to_sectors(struct scsi_device *sdev, sector_t blocks) in logical_to_sectors() argument 150 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 | 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 | scsi_devinfo.c | 543 int scsi_get_device_flags(struct scsi_device *sdev, in scsi_get_device_flags() argument 547 return scsi_get_device_flags_keyed(sdev, vendor, model, in scsi_get_device_flags() 565 int scsi_get_device_flags_keyed(struct scsi_device *sdev, in scsi_get_device_flags_keyed() argument 634 if (sdev->sdev_bflags) in scsi_get_device_flags_keyed() 635 return sdev->sdev_bflags; in scsi_get_device_flags_keyed()
|
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 | hpsa.c | 220 static int hpsa_change_queue_depth(struct scsi_device *sdev, int qdepth); 224 static int hpsa_slave_alloc(struct scsi_device *sdev); 225 static void hpsa_slave_destroy(struct scsi_device *sdev); 256 static inline struct ctlr_info *sdev_to_hba(struct scsi_device *sdev) in sdev_to_hba() argument 258 unsigned long *priv = shost_priv(sdev->host); in sdev_to_hba() 529 struct scsi_device *sdev; in raid_level_show() local 533 sdev = to_scsi_device(dev); in raid_level_show() 534 h = sdev_to_hba(sdev); in raid_level_show() 536 hdev = sdev->hostdata; in raid_level_show() 561 struct scsi_device *sdev; in lunid_show() local [all …]
|
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 | 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 | advansys.c | 7546 advansys_biosparam(struct scsi_device *sdev, struct block_device *bdev, in advansys_biosparam() argument 7549 struct asc_board *boardp = shost_priv(sdev->host); in advansys_biosparam() 7552 ASC_STATS(sdev->host, biosparam); in advansys_biosparam() 7644 static void AscAsyncFix(ASC_DVC_VAR *asc_dvc, struct scsi_device *sdev) in AscAsyncFix() argument 7646 char type = sdev->type; in AscAsyncFix() 7647 ASC_SCSI_BIT_ID_TYPE tid_bits = 1 << sdev->id; in AscAsyncFix() 7654 if ((type == TYPE_ROM) && (strncmp(sdev->vendor, "HP ", 3) == 0)) in AscAsyncFix() 7663 AscSetRunChipSynRegAtID(asc_dvc->iop_base, sdev->id, in AscAsyncFix() 7668 advansys_narrow_slave_configure(struct scsi_device *sdev, ASC_DVC_VAR *asc_dvc) in advansys_narrow_slave_configure() argument 7670 ASC_SCSI_BIT_ID_TYPE tid_bit = 1 << sdev->id; in advansys_narrow_slave_configure() [all …]
|
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 | scsi_debug.c | 3576 static struct sdebug_dev_info * devInfoReg(struct scsi_device * sdev) in devInfoReg() argument 3581 (struct sdebug_dev_info *)sdev->hostdata; in devInfoReg() 3585 sdbg_host = *(struct sdebug_host_info **)shost_priv(sdev->host); in devInfoReg() 3591 if ((devip->used) && (devip->channel == sdev->channel) && in devInfoReg() 3592 (devip->target == sdev->id) && in devInfoReg() 3593 (devip->lun == sdev->lun)) in devInfoReg() 3609 open_devip->channel = sdev->channel; in devInfoReg() 3610 open_devip->target = sdev->id; in devInfoReg() 3611 open_devip->lun = sdev->lun; in devInfoReg() 5085 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 | 547 stex_slave_config(struct scsi_device *sdev) in stex_slave_config() argument 549 sdev->use_10_for_rw = 1; in stex_slave_config() 550 sdev->use_10_for_ms = 1; in stex_slave_config() 551 blk_queue_rq_timeout(sdev->request_queue, 60 * HZ); in stex_slave_config() 1348 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
|
D | dpti.h | 39 static int adpt_bios_param(struct scsi_device * sdev, struct block_device *dev,
|
D | 3w-sas.c | 1411 static int twl_scsi_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacit… in twl_scsi_biosparam() argument 1416 tw_dev = (TW_Device_Extension *)sdev->host->hostdata; in twl_scsi_biosparam() 1535 static int twl_slave_configure(struct scsi_device *sdev) in twl_slave_configure() argument 1538 blk_queue_rq_timeout(sdev->request_queue, 60 * HZ); in twl_slave_configure()
|
D | mvumi.h | 484 struct scsi_device *sdev; member
|
D | aha1542.c | 921 static int aha1542_biosparam(struct scsi_device *sdev, in aha1542_biosparam() argument 924 struct aha1542_hostdata *aha1542 = shost_priv(sdev->host); in aha1542_biosparam()
|
/linux-4.1.27/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.1.27/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.1.27/include/scsi/ |
D | scsi_device.h | 222 struct scsi_device *sdev; member 233 #define sdev_dbg(sdev, fmt, a...) \ argument 234 dev_dbg(&(sdev)->sdev_gendev, fmt, ##a) 244 #define sdev_printk(l, sdev, fmt, a...) \ argument 245 sdev_prefix_printk(l, sdev, NULL, fmt, ##a) 310 static inline struct scsi_target *scsi_target(struct scsi_device *sdev) in scsi_target() argument 312 return to_scsi_target(sdev->sdev_gendev.parent); in scsi_target() 327 void scsi_attach_vpd(struct scsi_device *sdev); 358 #define shost_for_each_device(sdev, shost) \ argument 359 for ((sdev) = __scsi_iterate_devices((shost), NULL); \ [all …]
|
D | scsi_tcq.h | 33 static inline struct scsi_cmnd *scsi_find_tag(struct scsi_device *sdev, int tag) in scsi_find_tag() argument 38 if (shost_use_blk_mq(sdev->host)) in scsi_find_tag() 39 return scsi_mq_find_tag(sdev->host, tag); in scsi_find_tag() 41 req = blk_queue_find_tag(sdev->request_queue, tag); in scsi_find_tag() 46 return sdev->current_cmnd; in scsi_find_tag()
|
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.1.27/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.1.27/drivers/spmi/ |
D | spmi.c | 30 struct spmi_device *sdev = to_spmi_device(dev); in spmi_dev_release() local 31 kfree(sdev); in spmi_dev_release() 65 int spmi_device_add(struct spmi_device *sdev) in spmi_device_add() argument 67 struct spmi_controller *ctrl = sdev->ctrl; in spmi_device_add() 70 dev_set_name(&sdev->dev, "%d-%02x", ctrl->nr, sdev->usid); in spmi_device_add() 72 err = device_add(&sdev->dev); in spmi_device_add() 74 dev_err(&sdev->dev, "Can't add %s, status %d\n", in spmi_device_add() 75 dev_name(&sdev->dev), err); in spmi_device_add() 79 dev_dbg(&sdev->dev, "device %s registered\n", dev_name(&sdev->dev)); in spmi_device_add() 90 void spmi_device_remove(struct spmi_device *sdev) in spmi_device_remove() argument [all …]
|
/linux-4.1.27/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.1.27/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 | 681 struct scsi_device *sdev; /* attached SCSI device */ member 1202 extern int ata_std_bios_param(struct scsi_device *sdev, 1205 extern void ata_scsi_unlock_native_capacity(struct scsi_device *sdev); 1206 extern int ata_scsi_slave_config(struct scsi_device *sdev); 1207 extern void ata_scsi_slave_destroy(struct scsi_device *sdev); 1208 extern int ata_scsi_change_queue_depth(struct scsi_device *sdev, 1210 extern int __ata_change_queue_depth(struct ata_port *ap, struct scsi_device *sdev,
|
D | extcon.h | 222 extern int extcon_find_cable_index(struct extcon_dev *sdev,
|
/linux-4.1.27/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() 3349 dev->dev->sdev->bus->chipco.fast_pwrup_delay); in b43_chip_init() 3953 tmp = ssb_read32(dev->dev->sdev, SSB_TMSLOW); in b43_switch_band() 3958 ssb_write32(dev->dev->sdev, SSB_TMSLOW, tmp); in b43_switch_band() 4757 bus = dev->dev->sdev->bus; in b43_imcfglo_timeouts_workaround() 4761 tmp = ssb_read32(dev->dev->sdev, SSB_IMCFGLO); in b43_imcfglo_timeouts_workaround() 4765 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.1.27/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.1.27/drivers/infiniband/ulp/srpt/ |
D | ib_srpt.c | 118 static inline const char *srpt_sdev_name(struct srpt_device *sdev) in srpt_sdev_name() argument 120 return sdev->device->name; in srpt_sdev_name() 178 struct srpt_device *sdev; in srpt_event_handler() local 181 sdev = ib_get_client_data(event->device, &srpt_client); in srpt_event_handler() 182 if (!sdev || sdev->device != event->device) in srpt_event_handler() 186 srpt_sdev_name(sdev)); in srpt_event_handler() 190 if (event->element.port_num <= sdev->device->phys_port_cnt) { in srpt_event_handler() 191 sport = &sdev->port[event->element.port_num - 1]; in srpt_event_handler() 203 if (event->element.port_num <= sdev->device->phys_port_cnt) { in srpt_event_handler() 204 sport = &sdev->port[event->element.port_num - 1]; in srpt_event_handler() [all …]
|
D | ib_srpt.h | 360 struct srpt_device *sdev; member
|
/linux-4.1.27/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 | 1246 struct scsi_device *sdev; in mptctl_getiocinfo() local 1334 shost_for_each_device(sdev, ioc->sh) { in mptctl_getiocinfo() 1335 vdevice = sdev->hostdata; in mptctl_getiocinfo() 1398 struct scsi_device *sdev; in mptctl_gettargetinfo() local 1455 shost_for_each_device(sdev, ioc->sh) { in mptctl_gettargetinfo() 1458 vdevice = sdev->hostdata; in mptctl_gettargetinfo() 1837 struct scsi_device *sdev; in mptctl_do_mpt_command() local 1980 shost_for_each_device(sdev, ioc->sh) { in mptctl_do_mpt_command() 1981 struct scsi_target *starget = scsi_target(sdev); in mptctl_do_mpt_command()
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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 + delta, sdev->membase + SYSTICK_COMPARE); in systick_next_event() 93 struct systick_device *sdev; in systick_set_clock_mode() local 95 sdev = container_of(evt, struct systick_device, dev); in systick_set_clock_mode() 99 if (!sdev->irq_requested) in systick_set_clock_mode() 101 sdev->irq_requested = 1; in systick_set_clock_mode() 107 if (sdev->irq_requested) in systick_set_clock_mode() 109 sdev->irq_requested = 0; in systick_set_clock_mode()
|
/linux-4.1.27/drivers/base/regmap/ |
D | regmap-spmi.c | 102 struct regmap *regmap_init_spmi_base(struct spmi_device *sdev, in regmap_init_spmi_base() argument 105 return regmap_init(&sdev->dev, ®map_spmi_base, sdev, config); in regmap_init_spmi_base() 118 struct regmap *devm_regmap_init_spmi_base(struct spmi_device *sdev, in devm_regmap_init_spmi_base() argument 121 return devm_regmap_init(&sdev->dev, ®map_spmi_base, sdev, config); in devm_regmap_init_spmi_base() 233 struct regmap *regmap_init_spmi_ext(struct spmi_device *sdev, in regmap_init_spmi_ext() argument 236 return regmap_init(&sdev->dev, ®map_spmi_ext, sdev, config); in regmap_init_spmi_ext() 249 struct regmap *devm_regmap_init_spmi_ext(struct spmi_device *sdev, in devm_regmap_init_spmi_ext() argument 252 return devm_regmap_init(&sdev->dev, ®map_spmi_ext, sdev, config); in devm_regmap_init_spmi_ext()
|
/linux-4.1.27/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 | 394 struct ssb_device *sdev; member
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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()
|
D | libata-acpi.c | 155 if (dev->sdev) in ata_acpi_uevent() 156 kobj = &dev->sdev->sdev_gendev.kobj; in ata_acpi_uevent()
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/drivers/staging/fbtft/ |
D | flexfb.c | 248 static int flexfb_probe_common(struct spi_device *sdev, struct platform_device *pdev) in flexfb_probe_common() argument 258 if (sdev) in flexfb_probe_common() 259 dev = &sdev->dev; in flexfb_probe_common() 263 fbtft_init_dbg(dev, "%s(%s)\n", __func__, sdev ? "'SPI device'" : "'Platform device'"); in flexfb_probe_common() 389 if (sdev) in flexfb_probe_common() 390 par->spi = sdev; in flexfb_probe_common() 411 if (sdev) { in flexfb_probe_common() 426 sdev->bits_per_word = 9; in flexfb_probe_common() 427 ret = sdev->master->setup(sdev); in flexfb_probe_common() 431 sdev->bits_per_word = 8; in flexfb_probe_common() [all …]
|
D | fbtft.h | 276 struct spi_device *sdev, struct platform_device *pdev);
|
D | fbtft-core.c | 1365 struct spi_device *sdev, struct platform_device *pdev) in fbtft_probe_common() argument 1373 if (sdev) in fbtft_probe_common() 1374 dev = &sdev->dev; in fbtft_probe_common() 1394 par->spi = sdev; in fbtft_probe_common()
|
/linux-4.1.27/drivers/misc/mic/host/ |
D | mic_intr.c | 33 struct pci_dev *pdev = container_of(mdev->sdev->parent, in mic_thread_fn() 60 struct pci_dev *pdev = container_of(mdev->sdev->parent, in mic_interrupt() 232 dev_dbg(mdev->sdev->parent, in mic_setup_msix() 446 struct pci_dev *pdev = container_of(mdev->sdev->parent, in mic_request_threaded_irq() 451 dev_err(mdev->sdev->parent, in mic_request_threaded_irq() 461 dev_err(mdev->sdev->parent, in mic_request_threaded_irq() 470 dev_dbg(mdev->sdev->parent, in mic_request_threaded_irq() 479 dev_dbg(mdev->sdev->parent, "irq: %d assigned for src: %d\n", in mic_request_threaded_irq() 485 dev_err(mdev->sdev->parent, in mic_request_threaded_irq() 498 dev_dbg(mdev->sdev->parent, "callback %d registered for src: %d\n", in mic_request_threaded_irq() [all …]
|
D | mic_x100.c | 46 dev_dbg(mdev->sdev->parent, "Writing 0x%x to scratch pad index %d\n", in mic_x100_write_spad() 69 dev_dbg(mdev->sdev->parent, in mic_x100_read_spad() 364 dev_err(mdev->sdev->parent, in mic_x100_load_command_line() 391 mdev->ramdisk, mdev->sdev->parent); in mic_x100_load_ramdisk() 393 dev_err(mdev->sdev->parent, in mic_x100_load_ramdisk() 427 dev_dbg(mdev->sdev->parent, "%s %d boot_addr 0x%x\n", in mic_x100_get_boot_addr() 430 dev_err(mdev->sdev->parent, in mic_x100_get_boot_addr() 458 rc = request_firmware(&fw, mdev->firmware, mdev->sdev->parent); in mic_x100_load_firmware() 460 dev_err(mdev->sdev->parent, in mic_x100_load_firmware() 467 dev_err(mdev->sdev->parent, "%s %d rc %d bootaddr 0x%x\n", in mic_x100_load_firmware() [all …]
|
D | mic_smpt.c | 185 dev_err(mdev->sdev->parent, in mic_to_dma_addr() 235 dev_err(mdev->sdev->parent, in mic_map() 268 dev_err(mdev->sdev->parent, in mic_unmap() 288 dev_warn(mdev->sdev->parent, in mic_unmap() 311 struct pci_dev *pdev = container_of(mdev->sdev->parent, in mic_map_single() 319 dev_err(mdev->sdev->parent, in mic_map_single() 343 struct pci_dev *pdev = container_of(mdev->sdev->parent, in mic_unmap_single() 403 dev_dbg(mdev->sdev->parent, in mic_smpt_uninit() 409 dev_dbg(mdev->sdev->parent, in mic_smpt_uninit() 414 dev_warn(mdev->sdev->parent, in mic_smpt_uninit()
|
D | mic_device.h | 103 struct device *sdev; member 206 mdev->sdev->parent); in mic_request_dma_chan() 209 dev_err(mdev->sdev->parent, "%s %d unable to acquire channel\n", in mic_request_dma_chan()
|
D | mic_main.c | 85 dev_err(mdev->sdev->parent, "%s %d err %d\n", in mic_dp_init() 94 dev_err(mdev->sdev->parent, "%s %d err %d\n", in mic_dp_init() 368 mdev->sdev = device_create_with_groups(g_mic_class, &pdev->dev, in mic_probe() 371 if (IS_ERR(mdev->sdev)) { in mic_probe() 372 rc = PTR_ERR(mdev->sdev); in mic_probe() 377 mdev->state_sysfs = sysfs_get_dirent(mdev->sdev->kobj.sd, "state"); in mic_probe()
|
D | mic_virtio.c | 65 dev_err(mdev->sdev->parent, "%s %d err %d\n", in mic_sync_dma() 443 dev_dbg(mdev->sdev->parent, "%s\n", __func__); in mic_virtio_reset_devices() 689 dev_dbg(mdev->sdev->parent, in mic_virtio_add_device() 707 dev_dbg(mdev->sdev->parent, "request irq failed\n"); in mic_virtio_add_device() 723 dev_dbg(mdev->sdev->parent, "Added virtio device id %d\n", dd->type); in mic_virtio_add_device() 758 dev_dbg(mdev->sdev->parent, in mic_virtio_del_device() 768 dev_dbg(mdev->sdev->parent, in mic_virtio_del_device() 797 dev_dbg(mdev->sdev->parent, in mic_virtio_del_device()
|
D | mic_sysfs.c | 54 dev_dbg(mdev->sdev->parent, "Shutdown Status %s -> %s\n", in mic_set_shutdown_status() 62 dev_dbg(mdev->sdev->parent, "State %s -> %s\n", in mic_set_state() 144 dev_err(mdev->sdev->parent, in state_store()
|
D | mic_virtio.h | 127 return mvdev->mdev->sdev->parent; in mic_dev()
|
D | mic_boot.c | 157 mdev->dma_mbdev = mbus_register_device(mdev->sdev->parent, in mic_start() 290 dev_warn(mdev->sdev->parent, "state %d should be %d\n", in mic_complete_resume()
|
D | mic_debugfs.c | 382 struct pci_dev *pdev = container_of(mdev->sdev->parent, in mic_msi_irq_info_show() 447 mdev->dbg_dir = debugfs_create_dir(dev_name(mdev->sdev), mic_dbg); in mic_create_debug_dir()
|
/linux-4.1.27/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 …]
|
D | aic7xxx_osm.h | 684 void ahc_platform_set_tags(struct ahc_softc *ahc, struct scsi_device *sdev,
|
D | aic79xx_osm.h | 675 void ahd_platform_set_tags(struct ahd_softc *ahd, struct scsi_device *sdev,
|
/linux-4.1.27/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.1.27/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.1.27/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 | 258 struct ssb_device *sdev; member 285 return wrap->sdev; in dev_to_ssb_dev() 640 void ssb_pcihost_set_power_state(struct ssb_device *sdev, pci_power_t state) in ssb_pcihost_set_power_state() argument 642 if (sdev->bus->bustype == SSB_BUSTYPE_PCI) in ssb_pcihost_set_power_state() 643 pci_set_power_state(sdev->bus->host_pci, state); in ssb_pcihost_set_power_state() 651 void ssb_pcihost_set_power_state(struct ssb_device *sdev, pci_power_t state) in ssb_pcihost_set_power_state() argument
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/drivers/staging/comedi/drivers/ |
D | comedi_bond.c | 193 int sdev = -1, nchans; in do_dev_config() local 225 while ((sdev = comedi_find_subdevice_by_type(d, COMEDI_SUBD_DIO, in do_dev_config() 226 sdev + 1)) > -1) { in do_dev_config() 227 nchans = comedi_get_n_channels(d, sdev); in do_dev_config() 231 nchans, minor, sdev); in do_dev_config() 240 bdev->subdev = sdev; in do_dev_config()
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/drivers/scsi/mpt2sas/ |
D | mpt2sas_scsih.c | 1190 _scsih_change_queue_depth(struct scsi_device *sdev, int qdepth) in _scsih_change_queue_depth() argument 1192 struct Scsi_Host *shost = sdev->host; in _scsih_change_queue_depth() 1203 sas_device_priv_data = sdev->hostdata; in _scsih_change_queue_depth() 1220 if (!sdev->tagged_supported) in _scsih_change_queue_depth() 1224 return scsi_change_queue_depth(sdev, qdepth); in _scsih_change_queue_depth() 1319 raid_device->sdev = NULL; in _scsih_target_destroy() 1349 _scsih_slave_alloc(struct scsi_device *sdev) in _scsih_slave_alloc() argument 1365 sas_device_priv_data->lun = sdev->lun; in _scsih_slave_alloc() 1368 starget = scsi_target(sdev); in _scsih_slave_alloc() 1372 sdev->hostdata = sas_device_priv_data; in _scsih_slave_alloc() [all …]
|
D | mpt2sas_base.h | 408 struct scsi_device *sdev; member 1192 extern int scsi_internal_device_block(struct scsi_device *sdev); 1195 extern int scsi_internal_device_unblock(struct scsi_device *sdev,
|
/linux-4.1.27/drivers/scsi/mpt3sas/ |
D | mpt3sas_scsih.c | 1065 _scsih_change_queue_depth(struct scsi_device *sdev, int qdepth) in _scsih_change_queue_depth() argument 1067 struct Scsi_Host *shost = sdev->host; in _scsih_change_queue_depth() 1078 sas_device_priv_data = sdev->hostdata; in _scsih_change_queue_depth() 1096 if (!sdev->tagged_supported) in _scsih_change_queue_depth() 1100 return scsi_change_queue_depth(sdev, qdepth); in _scsih_change_queue_depth() 1195 raid_device->sdev = NULL; in _scsih_target_destroy() 1225 _scsih_slave_alloc(struct scsi_device *sdev) in _scsih_slave_alloc() argument 1241 sas_device_priv_data->lun = sdev->lun; in _scsih_slave_alloc() 1244 starget = scsi_target(sdev); in _scsih_slave_alloc() 1248 sdev->hostdata = sas_device_priv_data; in _scsih_slave_alloc() [all …]
|
D | mpt3sas_base.h | 339 struct scsi_device *sdev; member 1164 extern int scsi_internal_device_block(struct scsi_device *sdev); 1165 extern int scsi_internal_device_unblock(struct scsi_device *sdev,
|
/linux-4.1.27/drivers/target/ |
D | target_core_pscsi.c | 154 struct scsi_device *sdev) in pscsi_tape_read_blocksize() argument 167 ret = scsi_execute_req(sdev, cdb, DMA_FROM_DEVICE, buf, 12, NULL, in pscsi_tape_read_blocksize() 175 sdev->sector_size = (buf[9] << 16) | (buf[10] << 8) | (buf[11]); in pscsi_tape_read_blocksize() 176 if (!sdev->sector_size) in pscsi_tape_read_blocksize() 177 sdev->sector_size = 1024; in pscsi_tape_read_blocksize() 183 pscsi_set_inquiry_info(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_set_inquiry_info() argument 187 if (sdev->inquiry_len < INQUIRY_LEN) in pscsi_set_inquiry_info() 190 buf = sdev->inquiry; in pscsi_set_inquiry_info() 202 pscsi_get_inquiry_vpd_serial(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_get_inquiry_vpd_serial() argument 218 ret = scsi_execute_req(sdev, cdb, DMA_FROM_DEVICE, buf, in pscsi_get_inquiry_vpd_serial() [all …]
|
/linux-4.1.27/drivers/spi/ |
D | spi-davinci.c | 481 struct device *sdev = dspi->bitbang.master->dev.parent; in davinci_spi_check_error() local 484 dev_dbg(sdev, "SPI Time-out Error\n"); in davinci_spi_check_error() 488 dev_dbg(sdev, "SPI Desynchronization Error\n"); in davinci_spi_check_error() 492 dev_dbg(sdev, "SPI Bit error\n"); in davinci_spi_check_error() 498 dev_dbg(sdev, "SPI Data Length Error\n"); in davinci_spi_check_error() 502 dev_dbg(sdev, "SPI Parity Error\n"); in davinci_spi_check_error() 506 dev_dbg(sdev, "SPI Data Overrun error\n"); in davinci_spi_check_error() 510 dev_dbg(sdev, "SPI Buffer Init Active\n"); in davinci_spi_check_error() 804 struct device *sdev = dspi->bitbang.master->dev.parent; in davinci_spi_request_dma() local 813 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()
|
D | spi.c | 81 const struct spi_device *sdev) in spi_match_id() argument 84 if (!strcmp(sdev->modalias, id->name)) in spi_match_id() 91 const struct spi_device_id *spi_get_device_id(const struct spi_device *sdev) in spi_get_device_id() argument 93 const struct spi_driver *sdrv = to_spi_driver(sdev->dev.driver); in spi_get_device_id() 95 return spi_match_id(sdrv->id_table, sdev); in spi_get_device_id()
|
/linux-4.1.27/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.1.27/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.1.27/drivers/mtd/devices/ |
D | spear_smi.c | 1046 struct spear_smi *sdev = dev_get_drvdata(dev); in spear_smi_suspend() local 1048 if (sdev && sdev->clk) in spear_smi_suspend() 1049 clk_disable_unprepare(sdev->clk); in spear_smi_suspend() 1056 struct spear_smi *sdev = dev_get_drvdata(dev); in spear_smi_resume() local 1059 if (sdev && sdev->clk) in spear_smi_resume() 1060 ret = clk_prepare_enable(sdev->clk); in spear_smi_resume() 1063 spear_smi_hw_init(sdev); in spear_smi_resume()
|
/linux-4.1.27/drivers/input/joystick/ |
D | gamecon.c | 271 struct gc_subdev *sdev = data; in gc_n64_play_effect() local 272 unsigned char target = 1 << sdev->idx; /* select desired pin */ in gc_n64_play_effect() 309 struct gc_subdev *sdev; in gc_n64_init_ff() local 312 sdev = kmalloc(sizeof(*sdev), GFP_KERNEL); in gc_n64_init_ff() 313 if (!sdev) in gc_n64_init_ff() 316 sdev->idx = i; in gc_n64_init_ff() 320 err = input_ff_create_memless(dev, sdev, gc_n64_play_effect); in gc_n64_init_ff() 322 kfree(sdev); in gc_n64_init_ff()
|
/linux-4.1.27/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 …]
|
D | scsi_mid_low_api.txt | 114 "static int xxx_slave_alloc(struct scsi_device * sdev) { /* code */ }" 440 * @sdev: pointer to SCSI device to change queue depth on 456 int scsi_change_queue_depth(struct scsi_device *sdev, int tags) 593 * @sdev: a pointer to a scsi device instance 602 * lead to the slave_destroy() callback being invoked. sdev is an 607 int scsi_remove_device(struct scsi_device *sdev) 664 * @sdev: pointer to SCSI device instance 680 int scsi_track_queue_full(struct scsi_device *sdev, int depth) 725 static int xyz_slave_configure(struct scsi_device * sdev); 761 * @sdev: pointer to scsi device context (defined in [all …]
|
/linux-4.1.27/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_mbox.c | 4087 struct scsi_device *sdev = to_scsi_device(dev); in megaraid_sysfs_show_ldnum() local 4088 adapter_t *adapter = (adapter_t *)SCSIHOST2ADAP(sdev->host); in megaraid_sysfs_show_ldnum() 4099 MRAID_IS_LOGICAL_SDEV(adapter, sdev)) { in megaraid_sysfs_show_ldnum() 4106 mapped_sdev_id = sdev->id; in megaraid_sysfs_show_ldnum() 4108 if (sdev->id > adapter->init_id) { in megaraid_sysfs_show_ldnum() 4114 scsi_id = sdev->id; in megaraid_sysfs_show_ldnum()
|
/linux-4.1.27/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.1.27/arch/x86/platform/intel-mid/ |
D | sfi.c | 240 static void __init intel_scu_spi_device_register(struct spi_board_info *sdev) in intel_scu_spi_device_register() argument 249 new_dev = kzalloc(sizeof(*sdev), GFP_KERNEL); in intel_scu_spi_device_register() 252 sdev->modalias); in intel_scu_spi_device_register() 255 *new_dev = *sdev; in intel_scu_spi_device_register()
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/drivers/platform/x86/ |
D | msi-laptop.c | 872 static int rfkill_init(struct platform_device *sdev) in rfkill_init() argument 880 rfk_bluetooth = rfkill_alloc("msi-bluetooth", &sdev->dev, in rfkill_init() 891 rfk_wlan = rfkill_alloc("msi-wlan", &sdev->dev, RFKILL_TYPE_WLAN, in rfkill_init() 902 rfk_threeg = rfkill_alloc("msi-threeg", &sdev->dev, in rfkill_init() 995 static int __init load_scm_model_init(struct platform_device *sdev) in load_scm_model_init() argument 1021 result = rfkill_init(sdev); in load_scm_model_init()
|
D | sony-laptop.c | 1056 struct sony_backlight_props *sdev = in sony_nc_get_brightness_ng() local 1059 sony_call_snc_handle(sdev->handle, sdev->cmd_base + 0x100, &result); in sony_nc_get_brightness_ng() 1061 return (result & 0xff) - sdev->offset; in sony_nc_get_brightness_ng() 1067 struct sony_backlight_props *sdev = in sony_nc_update_status_ng() local 1070 value = bd->props.brightness + sdev->offset; in sony_nc_update_status_ng() 1071 if (sony_call_snc_handle(sdev->handle, sdev->cmd_base | (value << 0x10), in sony_nc_update_status_ng()
|
/linux-4.1.27/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.1.27/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_netdev.c | 1219 struct net_device *sdev) in fm10k_dfwd_add_station() argument 1276 l2_accel->macvlan[i] = sdev; in fm10k_dfwd_add_station() 1293 hw->mac.ops.update_uc_addr(hw, glort, sdev->dev_addr, 0, true, 0); in fm10k_dfwd_add_station() 1297 return sdev; in fm10k_dfwd_add_station() 1306 struct net_device *sdev = priv; in fm10k_dfwd_del_station() local 1315 if (l2_accel->macvlan[i] == sdev) in fm10k_dfwd_del_station() 1328 hw->mac.ops.update_uc_addr(hw, glort, sdev->dev_addr, 0, false, 0); in fm10k_dfwd_del_station()
|
/linux-4.1.27/drivers/scsi/ufs/ |
D | ufshcd.c | 2725 static void ufshcd_set_queue_depth(struct scsi_device *sdev) in ufshcd_set_queue_depth() argument 2731 hba = shost_priv(sdev->host); in ufshcd_set_queue_depth() 2735 ufshcd_scsi_to_upiu_lun(sdev->lun), in ufshcd_set_queue_depth() 2751 scsi_change_queue_depth(sdev, lun_qdepth); in ufshcd_set_queue_depth() 2797 struct scsi_device *sdev) in ufshcd_get_lu_power_on_wp_status() argument 2803 if (!ufshcd_get_lu_wp(hba, ufshcd_scsi_to_upiu_lun(sdev->lun), in ufshcd_get_lu_power_on_wp_status() 2816 static int ufshcd_slave_alloc(struct scsi_device *sdev) in ufshcd_slave_alloc() argument 2820 hba = shost_priv(sdev->host); in ufshcd_slave_alloc() 2823 sdev->use_10_for_ms = 1; in ufshcd_slave_alloc() 2826 sdev->allow_restart = 1; in ufshcd_slave_alloc() [all …]
|
/linux-4.1.27/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.1.27/drivers/infiniband/ulp/srp/ |
D | ib_srp.c | 1107 struct scsi_device *sdev, in srp_claim_req() argument 1114 (!sdev || req->scmnd->device == sdev) && in srp_claim_req() 1146 struct scsi_device *sdev, int result) in srp_finish_req() argument 1148 struct scsi_cmnd *scmnd = srp_claim_req(ch, req, sdev, NULL); in srp_finish_req() 1162 struct scsi_device *sdev; in srp_terminate_io() local 1169 shost_for_each_device(sdev, shost) in srp_terminate_io() 1170 WARN_ON_ONCE(sdev->request_queue->request_fn_active); in srp_terminate_io() 2405 srp_change_queue_depth(struct scsi_device *sdev, int qdepth) in srp_change_queue_depth() argument 2407 if (!sdev->tagged_supported) in srp_change_queue_depth() 2409 return scsi_change_queue_depth(sdev, qdepth); in srp_change_queue_depth() [all …]
|
/linux-4.1.27/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.1.27/drivers/net/bonding/ |
D | bond_options.c | 1240 struct net_device *sdev; in bond_option_queue_id_set() local 1264 sdev = __dev_get_by_name(dev_net(bond->dev), newval->string); in bond_option_queue_id_set() 1265 if (!sdev) in bond_option_queue_id_set() 1271 if (sdev == slave->dev) in bond_option_queue_id_set()
|
/linux-4.1.27/drivers/staging/unisys/virthba/ |
D | virthba.c | 335 struct scsi_device *sdev; in send_disk_add_remove() local 338 sdev = scsi_device_lookup(dar->shost, dar->channel, dar->id, dar->lun); in send_disk_add_remove() 339 if (sdev) { in send_disk_add_remove() 341 scsi_remove_device(sdev); in send_disk_add_remove()
|
/linux-4.1.27/arch/ia64/hp/sim/ |
D | simscsi.c | 114 simscsi_biosparam (struct scsi_device *sdev, struct block_device *n, in simscsi_biosparam() argument
|
/linux-4.1.27/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.1.27/drivers/net/can/ |
D | grcan.c | 1490 static ssize_t grcan_store_##name(struct device *sdev, \ 1495 struct net_device *dev = to_net_dev(sdev); \ 1507 static ssize_t grcan_show_##name(struct device *sdev, \ 1511 struct net_device *dev = to_net_dev(sdev); \
|
/linux-4.1.27/drivers/block/ |
D | cciss_scsi.c | 641 struct scsi_device *sdev = in adjust_cciss_scsi_table() local 644 if (sdev != NULL) { in adjust_cciss_scsi_table() 645 scsi_remove_device(sdev); in adjust_cciss_scsi_table() 646 scsi_device_put(sdev); in adjust_cciss_scsi_table()
|
/linux-4.1.27/include/linux/spi/ |
D | spi.h | 1048 spi_get_device_id(const struct spi_device *sdev);
|
/linux-4.1.27/drivers/media/platform/exynos4-is/ |
D | mipi-csis.c | 277 static struct csis_state *sd_to_csis_state(struct v4l2_subdev *sdev) in sd_to_csis_state() argument 279 return container_of(sdev, struct csis_state, sd); in sd_to_csis_state()
|