Home
last modified time | relevance | path

Searched refs:sdev (Results 1 – 25 of 231) sorted by relevance

12345678910

/drivers/media/radio/si4713/
Dsi4713.c187 struct si4713_device *sdev = dev; in si4713_handler() local
189 v4l2_dbg(2, debug, &sdev->sd, in si4713_handler()
191 complete(&sdev->work); in si4713_handler()
206 static int si4713_send_command(struct si4713_device *sdev, const u8 command, in si4713_send_command() argument
210 struct i2c_client *client = v4l2_get_subdevdata(&sdev->sd); in si4713_send_command()
221 DBG_BUFFER(&sdev->sd, "Parameters", data1, argn + 1); in si4713_send_command()
225 v4l2_err(&sdev->sd, "Error while sending command 0x%02x\n", in si4713_send_command()
234 if (!wait_for_completion_timeout(&sdev->work, in si4713_send_command()
236 v4l2_warn(&sdev->sd, in si4713_send_command()
244 v4l2_err(&sdev->sd, in si4713_send_command()
[all …]
/drivers/scsi/
Dscsi_scan.c184 static void scsi_unlock_floptical(struct scsi_device *sdev, in scsi_unlock_floptical() argument
189 sdev_printk(KERN_NOTICE, sdev, "unlocking floptical drive\n"); in scsi_unlock_floptical()
196 scsi_execute_req(sdev, scsi_cmd, DMA_FROM_DEVICE, result, 0x2a, NULL, in scsi_unlock_floptical()
217 struct scsi_device *sdev; in scsi_alloc_sdev() local
221 sdev = kzalloc(sizeof(*sdev) + shost->transportt->device_size, in scsi_alloc_sdev()
223 if (!sdev) in scsi_alloc_sdev()
226 sdev->vendor = scsi_null_device_strs; in scsi_alloc_sdev()
227 sdev->model = scsi_null_device_strs; in scsi_alloc_sdev()
228 sdev->rev = scsi_null_device_strs; in scsi_alloc_sdev()
229 sdev->host = shost; in scsi_alloc_sdev()
[all …]
Dscsi_dh.c79 scsi_dh_find_driver(struct scsi_device *sdev) in scsi_dh_find_driver() argument
83 if (scsi_device_tpgs(sdev)) in scsi_dh_find_driver()
87 if (!strncmp(sdev->vendor, b->vendor, strlen(b->vendor)) && in scsi_dh_find_driver()
88 !strncmp(sdev->model, b->model, strlen(b->model))) { in scsi_dh_find_driver()
129 static int scsi_dh_handler_attach(struct scsi_device *sdev, in scsi_dh_handler_attach() argument
137 error = scsi_dh->attach(sdev); in scsi_dh_handler_attach()
139 sdev_printk(KERN_ERR, sdev, "%s: Attach failed (%d)\n", in scsi_dh_handler_attach()
143 sdev->handler = scsi_dh; in scsi_dh_handler_attach()
152 static void scsi_dh_handler_detach(struct scsi_device *sdev) in scsi_dh_handler_detach() argument
154 sdev->handler->detach(sdev); in scsi_dh_handler_detach()
[all …]
Dscsi_sysfs.c418 struct scsi_device *sdev; in scsi_device_cls_release() local
420 sdev = class_to_sdev(class_dev); in scsi_device_cls_release()
421 put_device(&sdev->sdev_gendev); in scsi_device_cls_release()
426 struct scsi_device *sdev; in scsi_device_dev_release_usercontext() local
431 sdev = container_of(work, struct scsi_device, ew.work); in scsi_device_dev_release_usercontext()
433 scsi_dh_release_device(sdev); in scsi_device_dev_release_usercontext()
435 parent = sdev->sdev_gendev.parent; in scsi_device_dev_release_usercontext()
437 spin_lock_irqsave(sdev->host->host_lock, flags); in scsi_device_dev_release_usercontext()
438 list_del(&sdev->siblings); in scsi_device_dev_release_usercontext()
439 list_del(&sdev->same_target_siblings); in scsi_device_dev_release_usercontext()
[all …]
Dscsi_ioctl.c88 static int ioctl_internal_command(struct scsi_device *sdev, char *cmd, in ioctl_internal_command() argument
94 SCSI_LOG_IOCTL(1, sdev_printk(KERN_INFO, sdev, in ioctl_internal_command()
97 result = scsi_execute_req(sdev, cmd, DMA_NONE, NULL, 0, in ioctl_internal_command()
100 SCSI_LOG_IOCTL(2, sdev_printk(KERN_INFO, sdev, in ioctl_internal_command()
108 sdev->lockable = 0; in ioctl_internal_command()
110 sdev_printk(KERN_INFO, sdev, in ioctl_internal_command()
117 if (sdev->removable) in ioctl_internal_command()
120 if (sdev->removable) { in ioctl_internal_command()
121 sdev->changed = 1; in ioctl_internal_command()
126 sdev_printk(KERN_INFO, sdev, in ioctl_internal_command()
[all …]
Dscsi_lib.c88 struct scsi_device *sdev = cmd->device; in scsi_mq_requeue_cmd() local
93 put_device(&sdev->sdev_gendev); in scsi_mq_requeue_cmd()
182 int scsi_execute(struct scsi_device *sdev, const unsigned char *cmd, in scsi_execute() argument
191 req = blk_get_request(sdev->request_queue, write, __GFP_RECLAIM); in scsi_execute()
196 if (bufflen && blk_rq_map_kern(sdev->request_queue, req, in scsi_execute()
232 int scsi_execute_req_flags(struct scsi_device *sdev, const unsigned char *cmd, in scsi_execute_req_flags() argument
245 result = scsi_execute(sdev, cmd, data_direction, buffer, bufflen, in scsi_execute_req_flags()
275 void scsi_device_unbusy(struct scsi_device *sdev) in scsi_device_unbusy() argument
277 struct Scsi_Host *shost = sdev->host; in scsi_device_unbusy()
278 struct scsi_target *starget = scsi_target(sdev); in scsi_device_unbusy()
[all …]
Dscsi.c562 struct scsi_device *sdev = cmd->device; in scsi_finish_command() local
563 struct scsi_target *starget = scsi_target(sdev); in scsi_finish_command()
564 struct Scsi_Host *shost = sdev->host; in scsi_finish_command()
568 scsi_device_unbusy(sdev); in scsi_finish_command()
578 if (atomic_read(&sdev->device_blocked)) in scsi_finish_command()
579 atomic_set(&sdev->device_blocked, 0); in scsi_finish_command()
588 SCSI_LOG_MLCOMPLETE(4, sdev_printk(KERN_INFO, sdev, in scsi_finish_command()
617 int scsi_change_queue_depth(struct scsi_device *sdev, int depth) in scsi_change_queue_depth() argument
620 sdev->queue_depth = depth; in scsi_change_queue_depth()
624 return sdev->queue_depth; in scsi_change_queue_depth()
[all …]
Dscsi_error.c123 struct scsi_device *sdev = scmd->device; in scmd_eh_abort_handler() local
126 if (scsi_host_eh_past_deadline(sdev->host)) { in scmd_eh_abort_handler()
134 rtn = scsi_try_to_abort_cmd(sdev->host->hostt, scmd); in scmd_eh_abort_handler()
137 if (scsi_host_eh_past_deadline(sdev->host)) { in scmd_eh_abort_handler()
183 struct scsi_device *sdev = scmd->device; in scsi_abort_command() local
184 struct Scsi_Host *shost = sdev->host; in scsi_abort_command()
311 int scsi_block_when_processing_errors(struct scsi_device *sdev) in scsi_block_when_processing_errors() argument
315 wait_event(sdev->host->host_wait, !scsi_host_in_recovery(sdev->host)); in scsi_block_when_processing_errors()
317 online = scsi_device_online(sdev); in scsi_block_when_processing_errors()
319 SCSI_LOG_ERROR_RECOVERY(5, sdev_printk(KERN_INFO, sdev, in scsi_block_when_processing_errors()
[all …]
/drivers/usb/usbip/
Dstub_dev.c35 struct stub_device *sdev = dev_get_drvdata(dev); in usbip_status_show() local
38 if (!sdev) { in usbip_status_show()
43 spin_lock_irq(&sdev->ud.lock); in usbip_status_show()
44 status = sdev->ud.status; in usbip_status_show()
45 spin_unlock_irq(&sdev->ud.lock); in usbip_status_show()
59 struct stub_device *sdev = dev_get_drvdata(dev); in store_sockfd() local
64 if (!sdev) { in store_sockfd()
78 spin_lock_irq(&sdev->ud.lock); in store_sockfd()
80 if (sdev->ud.status != SDEV_ST_AVAILABLE) { in store_sockfd()
89 sdev->ud.tcp_socket = socket; in store_sockfd()
[all …]
Dstub_tx.c42 void stub_enqueue_ret_unlink(struct stub_device *sdev, __u32 seqnum, in stub_enqueue_ret_unlink() argument
49 usbip_event_add(&sdev->ud, VDEV_EVENT_ERROR_MALLOC); in stub_enqueue_ret_unlink()
56 list_add_tail(&unlink->list, &sdev->unlink_tx); in stub_enqueue_ret_unlink()
71 struct stub_device *sdev = priv->sdev; in stub_complete() local
103 spin_lock_irqsave(&sdev->priv_lock, flags); in stub_complete()
104 if (sdev->ud.tcp_socket == NULL) { in stub_complete()
108 stub_enqueue_ret_unlink(sdev, priv->seqnum, urb->status); in stub_complete()
111 list_move_tail(&priv->list, &sdev->priv_tx); in stub_complete()
113 spin_unlock_irqrestore(&sdev->priv_lock, flags); in stub_complete()
116 wake_up(&sdev->tx_waitq); in stub_complete()
[all …]
Dstub_rx.c146 struct stub_device *sdev = priv->sdev; in tweak_set_configuration_cmd() local
154 err = usb_set_configuration(sdev->udev, config); in tweak_set_configuration_cmd()
156 dev_err(&sdev->udev->dev, "can't set config #%d, error %d\n", in tweak_set_configuration_cmd()
164 struct stub_device *sdev = priv->sdev; in tweak_reset_device_cmd() local
168 if (usb_lock_device_for_reset(sdev->udev, NULL) < 0) { in tweak_reset_device_cmd()
172 usb_reset_device(sdev->udev); in tweak_reset_device_cmd()
173 usb_unlock_device(sdev->udev); in tweak_reset_device_cmd()
215 static int stub_recv_cmd_unlink(struct stub_device *sdev, in stub_recv_cmd_unlink() argument
222 spin_lock_irqsave(&sdev->priv_lock, flags); in stub_recv_cmd_unlink()
224 list_for_each_entry(priv, &sdev->priv_init, list) { in stub_recv_cmd_unlink()
[all …]
/drivers/gpu/drm/shmobile/
Dshmob_drm_crtc.c41 static int shmob_drm_clk_on(struct shmob_drm_device *sdev) in shmob_drm_clk_on() argument
45 if (sdev->clock) { in shmob_drm_clk_on()
46 ret = clk_prepare_enable(sdev->clock); in shmob_drm_clk_on()
51 if (sdev->meram_dev && sdev->meram_dev->pdev) in shmob_drm_clk_on()
52 pm_runtime_get_sync(&sdev->meram_dev->pdev->dev); in shmob_drm_clk_on()
58 static void shmob_drm_clk_off(struct shmob_drm_device *sdev) in shmob_drm_clk_off() argument
61 if (sdev->meram_dev && sdev->meram_dev->pdev) in shmob_drm_clk_off()
62 pm_runtime_put_sync(&sdev->meram_dev->pdev->dev); in shmob_drm_clk_off()
64 if (sdev->clock) in shmob_drm_clk_off()
65 clk_disable_unprepare(sdev->clock); in shmob_drm_clk_off()
[all …]
Dshmob_drm_drv.c36 static int shmob_drm_init_interface(struct shmob_drm_device *sdev) in shmob_drm_init_interface() argument
60 if (sdev->pdata->iface.interface >= ARRAY_SIZE(ldmt1r)) { in shmob_drm_init_interface()
61 dev_err(sdev->dev, "invalid interface type %u\n", in shmob_drm_init_interface()
62 sdev->pdata->iface.interface); in shmob_drm_init_interface()
66 sdev->ldmt1r = ldmt1r[sdev->pdata->iface.interface]; in shmob_drm_init_interface()
70 static int shmob_drm_setup_clocks(struct shmob_drm_device *sdev, in shmob_drm_setup_clocks() argument
79 sdev->lddckr = LDDCKR_ICKSEL_BUS; in shmob_drm_setup_clocks()
83 sdev->lddckr = LDDCKR_ICKSEL_MIPI; in shmob_drm_setup_clocks()
87 sdev->lddckr = LDDCKR_ICKSEL_HDMI; in shmob_drm_setup_clocks()
93 clk = devm_clk_get(sdev->dev, clkname); in shmob_drm_setup_clocks()
[all …]
Dshmob_drm_plane.c69 struct shmob_drm_device *sdev = splane->plane.dev->dev_private; in __shmob_drm_plane_setup() local
118 #define plane_reg_dump(sdev, splane, reg) \ in __shmob_drm_plane_setup() argument
119 dev_dbg(sdev->ddev->dev, "%s(%u): %s 0x%08x 0x%08x\n", __func__, \ in __shmob_drm_plane_setup()
121 lcdc_read(sdev, reg(splane->index)), \ in __shmob_drm_plane_setup()
122 lcdc_read(sdev, reg(splane->index) + LCDC_SIDE_B_OFFSET)) in __shmob_drm_plane_setup()
124 plane_reg_dump(sdev, splane, LDBnBSIFR); in __shmob_drm_plane_setup()
125 plane_reg_dump(sdev, splane, LDBnBSSZR); in __shmob_drm_plane_setup()
126 plane_reg_dump(sdev, splane, LDBnBLOCR); in __shmob_drm_plane_setup()
127 plane_reg_dump(sdev, splane, LDBnBSMWR); in __shmob_drm_plane_setup()
128 plane_reg_dump(sdev, splane, LDBnBSAYR); in __shmob_drm_plane_setup()
[all …]
/drivers/spmi/
Dspmi.c33 struct spmi_device *sdev = to_spmi_device(dev); in spmi_dev_release() local
34 kfree(sdev); in spmi_dev_release()
68 int spmi_device_add(struct spmi_device *sdev) in spmi_device_add() argument
70 struct spmi_controller *ctrl = sdev->ctrl; in spmi_device_add()
73 dev_set_name(&sdev->dev, "%d-%02x", ctrl->nr, sdev->usid); in spmi_device_add()
75 err = device_add(&sdev->dev); in spmi_device_add()
77 dev_err(&sdev->dev, "Can't add %s, status %d\n", in spmi_device_add()
78 dev_name(&sdev->dev), err); in spmi_device_add()
82 dev_dbg(&sdev->dev, "device %s registered\n", dev_name(&sdev->dev)); in spmi_device_add()
93 void spmi_device_remove(struct spmi_device *sdev) in spmi_device_remove() argument
[all …]
/drivers/scsi/device_handler/
Dscsi_dh_emc.c119 static int trespass_endio(struct scsi_device *sdev, char *sense) in trespass_endio() argument
125 sdev_printk(KERN_ERR, sdev, "%s: Found valid sense data 0x%2x, " in trespass_endio()
136 sdev_printk(KERN_INFO, sdev, "%s: Array Based Copy in " in trespass_endio()
146 sdev_printk(KERN_INFO, sdev, "%s: Detected in-progress " in trespass_endio()
153 sdev_printk(KERN_INFO, sdev, in trespass_endio()
160 static int parse_sp_info_reply(struct scsi_device *sdev, in parse_sp_info_reply() argument
167 sdev_printk(KERN_NOTICE, sdev, "%s: Detected in-progress " in parse_sp_info_reply()
175 sdev_printk(KERN_NOTICE, sdev, in parse_sp_info_reply()
183 sdev_printk(KERN_NOTICE, sdev, in parse_sp_info_reply()
191 sdev_printk(KERN_WARNING, sdev, in parse_sp_info_reply()
[all …]
Dscsi_dh_alua.c101 struct scsi_device *sdev; member
117 struct scsi_device *sdev,
119 static void alua_check(struct scsi_device *sdev, bool force);
138 static int submit_rtpg(struct scsi_device *sdev, unsigned char *buff, in submit_rtpg() argument
154 return scsi_execute_req_flags(sdev, cdb, DMA_FROM_DEVICE, in submit_rtpg()
167 static int submit_stpg(struct scsi_device *sdev, int group_id, in submit_stpg() argument
187 return scsi_execute_req_flags(sdev, cdb, DMA_TO_DEVICE, in submit_stpg()
225 static struct alua_port_group *alua_alloc_pg(struct scsi_device *sdev, in alua_alloc_pg() argument
234 pg->device_id_len = scsi_vpd_lun_id(sdev, pg->device_id_str, in alua_alloc_pg()
241 sdev_printk(KERN_INFO, sdev, in alua_alloc_pg()
[all …]
Dscsi_dh_hp_sw.c45 struct scsi_device *sdev; member
59 static int tur_done(struct scsi_device *sdev, unsigned char *sense) in tur_done() argument
66 sdev_printk(KERN_WARNING, sdev, in tur_done()
88 sdev_printk(KERN_WARNING, sdev, in tur_done()
106 static int hp_sw_tur(struct scsi_device *sdev, struct hp_sw_dh_data *h) in hp_sw_tur() argument
112 req = blk_get_request(sdev->request_queue, WRITE, GFP_NOIO); in hp_sw_tur()
129 ret = tur_done(sdev, h->sense); in hp_sw_tur()
131 sdev_printk(KERN_WARNING, sdev, in hp_sw_tur()
159 static int start_done(struct scsi_device *sdev, unsigned char *sense) in start_done() argument
166 sdev_printk(KERN_WARNING, sdev, in start_done()
[all …]
Dscsi_dh_rdac.c187 struct scsi_device *sdev; member
259 #define RDAC_LOG(SHIFT, sdev, f, arg...) \ argument
262 sdev_printk(KERN_INFO, sdev, RDAC_NAME ": " f "\n", ## arg); \
265 static struct request *get_rdac_req(struct scsi_device *sdev, in get_rdac_req() argument
269 struct request_queue *q = sdev->request_queue; in get_rdac_req()
274 sdev_printk(KERN_INFO, sdev, in get_rdac_req()
282 sdev_printk(KERN_INFO, sdev, in get_rdac_req()
295 static struct request *rdac_failover_get(struct scsi_device *sdev, in rdac_failover_get() argument
336 rq = get_rdac_req(sdev, &h->ctlr->mode_select, data_size, WRITE); in rdac_failover_get()
368 u8 *array_id, struct scsi_device *sdev) in get_controller() argument
[all …]
/drivers/misc/mic/bus/
Dscif_bus.c135 struct scif_hw_dev *sdev = dev_to_scif(d); in scif_release_dev() local
137 kfree(sdev); in scif_release_dev()
148 struct scif_hw_dev *sdev; in scif_register_device() local
150 sdev = kzalloc(sizeof(*sdev), GFP_KERNEL); in scif_register_device()
151 if (!sdev) in scif_register_device()
154 sdev->dev.parent = pdev; in scif_register_device()
155 sdev->id.device = id; in scif_register_device()
156 sdev->id.vendor = SCIF_DEV_ANY_ID; in scif_register_device()
157 sdev->dev.archdata.dma_ops = dma_ops; in scif_register_device()
158 sdev->dev.release = scif_release_dev; in scif_register_device()
[all …]
/drivers/usb/storage/
Dscsiglue.c81 static int slave_alloc (struct scsi_device *sdev) in slave_alloc() argument
83 struct us_data *us = host_to_us(sdev->host); in slave_alloc()
90 sdev->inquiry_len = 36; in slave_alloc()
108 blk_queue_update_dma_alignment(sdev->request_queue, (512 - 1)); in slave_alloc()
112 sdev->sdev_bflags |= BLIST_FORCELUN; in slave_alloc()
117 static int slave_configure(struct scsi_device *sdev) in slave_configure() argument
119 struct us_data *us = host_to_us(sdev->host); in slave_configure()
131 if (queue_max_hw_sectors(sdev->request_queue) > max_sectors) in slave_configure()
132 blk_queue_max_hw_sectors(sdev->request_queue, in slave_configure()
134 } else if (sdev->type == TYPE_TAPE) { in slave_configure()
[all …]
/drivers/iommu/
Dintel-svm.c158 static void intel_flush_svm_range_dev (struct intel_svm *svm, struct intel_svm_dev *sdev, in intel_flush_svm_range_dev() argument
168 desc.low = QI_EIOTLB_PASID(svm->pasid) | QI_EIOTLB_DID(sdev->did) | in intel_flush_svm_range_dev()
171 desc.low = QI_EIOTLB_PASID(svm->pasid) | QI_EIOTLB_DID(sdev->did) | in intel_flush_svm_range_dev()
177 desc.low = QI_EIOTLB_PASID(svm->pasid) | QI_EIOTLB_DID(sdev->did) | in intel_flush_svm_range_dev()
184 if (sdev->dev_iotlb) { in intel_flush_svm_range_dev()
185 desc.low = QI_DEV_EIOTLB_PASID(svm->pasid) | QI_DEV_EIOTLB_SID(sdev->sid) | in intel_flush_svm_range_dev()
186 QI_DEV_EIOTLB_QDEP(sdev->qdep) | QI_DEIOTLB_TYPE; in intel_flush_svm_range_dev()
207 struct intel_svm_dev *sdev; in intel_flush_svm_range() local
215 list_for_each_entry_rcu(sdev, &svm->devs, list) in intel_flush_svm_range()
216 intel_flush_svm_range_dev(svm, sdev, address, pages, ih, gl); in intel_flush_svm_range()
[all …]
/drivers/misc/mic/scif/
Dscif_main.c77 struct scif_hw_dev *sdev = scifdev->sdev; in scif_intr_handler() local
79 sdev->hw_ops->ack_interrupt(sdev, scifdev->db); in scif_intr_handler()
88 struct scif_hw_dev *sdev = scifdev->sdev; in scif_qp_setup_handler() local
93 struct mic_bootparam *bp = sdev->dp; in scif_qp_setup_handler()
98 struct mic_bootparam __iomem *bp = sdev->rdp; in scif_qp_setup_handler()
106 dev_err(&scifdev->sdev->dev, in scif_qp_setup_handler()
147 static int scif_probe(struct scif_hw_dev *sdev) in scif_probe() argument
149 struct scif_dev *scifdev = &scif_dev[sdev->dnode]; in scif_probe()
152 dev_set_drvdata(&sdev->dev, sdev); in scif_probe()
153 scifdev->sdev = sdev; in scif_probe()
[all …]
/drivers/net/wireless/broadcom/b43/
Dbus.c141 return ssb_bus_may_powerdown(dev->sdev->bus); in b43_bus_ssb_bus_may_powerdown()
146 return ssb_bus_powerup(dev->sdev->bus, dynamic_pctl); in b43_bus_ssb_bus_powerup()
150 return ssb_device_is_enabled(dev->sdev); in b43_bus_ssb_device_is_enabled()
155 ssb_device_enable(dev->sdev, core_specific_flags); in b43_bus_ssb_device_enable()
160 ssb_device_disable(dev->sdev, core_specific_flags); in b43_bus_ssb_device_disable()
165 return ssb_read16(dev->sdev, offset); in b43_bus_ssb_read16()
169 return ssb_read32(dev->sdev, offset); in b43_bus_ssb_read32()
173 ssb_write16(dev->sdev, offset, value); in b43_bus_ssb_write16()
177 ssb_write32(dev->sdev, offset, value); in b43_bus_ssb_write32()
182 ssb_block_read(dev->sdev, buffer, count, offset, reg_width); in b43_bus_ssb_block_read()
[all …]
/drivers/infiniband/ulp/srpt/
Dib_srpt.c133 struct srpt_device *sdev; in srpt_event_handler() local
136 sdev = ib_get_client_data(event->device, &srpt_client); in srpt_event_handler()
137 if (!sdev || sdev->device != event->device) in srpt_event_handler()
141 sdev->device->name); in srpt_event_handler()
145 if (event->element.port_num <= sdev->device->phys_port_cnt) { in srpt_event_handler()
146 sport = &sdev->port[event->element.port_num - 1]; in srpt_event_handler()
158 if (event->element.port_num <= sdev->device->phys_port_cnt) { in srpt_event_handler()
159 sport = &sdev->port[event->element.port_num - 1]; in srpt_event_handler()
296 struct srpt_device *sdev = sport->sdev; in srpt_get_ioc() local
316 iocp->vendor_id = cpu_to_be32(sdev->device->attrs.vendor_id); in srpt_get_ioc()
[all …]

12345678910