Home
last modified time | relevance | path

Searched refs:ddev (Results 1 – 25 of 219) sorted by relevance

123456789

/drivers/platform/surface/
Dsurface_dtx.c177 struct sdtx_device *ddev; member
189 struct sdtx_device *ddev = container_of(kref, struct sdtx_device, kref); in __sdtx_device_release() local
191 mutex_destroy(&ddev->write_lock); in __sdtx_device_release()
192 kfree(ddev); in __sdtx_device_release()
195 static struct sdtx_device *sdtx_device_get(struct sdtx_device *ddev) in sdtx_device_get() argument
197 if (ddev) in sdtx_device_get()
198 kref_get(&ddev->kref); in sdtx_device_get()
200 return ddev; in sdtx_device_get()
203 static void sdtx_device_put(struct sdtx_device *ddev) in sdtx_device_put() argument
205 if (ddev) in sdtx_device_put()
[all …]
/drivers/gpu/drm/stm/
Ddrv.c68 static int drv_load(struct drm_device *ddev) in drv_load() argument
70 struct platform_device *pdev = to_platform_device(ddev->dev); in drv_load()
76 ldev = devm_kzalloc(ddev->dev, sizeof(*ldev), GFP_KERNEL); in drv_load()
80 ddev->dev_private = (void *)ldev; in drv_load()
82 ret = drmm_mode_config_init(ddev); in drv_load()
91 ddev->mode_config.min_width = 0; in drv_load()
92 ddev->mode_config.min_height = 0; in drv_load()
93 ddev->mode_config.max_width = STM_MAX_FB_WIDTH; in drv_load()
94 ddev->mode_config.max_height = STM_MAX_FB_HEIGHT; in drv_load()
95 ddev->mode_config.funcs = &drv_mode_config_funcs; in drv_load()
[all …]
Dltdc.c369 struct drm_device *ddev = arg; in ltdc_irq_thread() local
370 struct ltdc_device *ldev = ddev->dev_private; in ltdc_irq_thread()
371 struct drm_crtc *crtc = drm_crtc_from_index(ddev, 0); in ltdc_irq_thread()
390 struct drm_device *ddev = arg; in ltdc_irq() local
391 struct ltdc_device *ldev = ddev->dev_private; in ltdc_irq()
427 struct drm_device *ddev = crtc->dev; in ltdc_crtc_atomic_enable() local
431 pm_runtime_get_sync(ddev->dev); in ltdc_crtc_atomic_enable()
449 struct drm_device *ddev = crtc->dev; in ltdc_crtc_atomic_disable() local
461 pm_runtime_put_sync(ddev->dev); in ltdc_crtc_atomic_disable()
528 struct drm_device *ddev = crtc->dev; in ltdc_crtc_mode_set_nofb() local
[all …]
/drivers/gpu/drm/sti/
Dsti_drv.c152 static int sti_init(struct drm_device *ddev) in sti_init() argument
160 ddev->dev_private = (void *)private; in sti_init()
161 dev_set_drvdata(ddev->dev, ddev); in sti_init()
162 private->drm_dev = ddev; in sti_init()
164 drm_mode_config_init(ddev); in sti_init()
166 sti_mode_config_init(ddev); in sti_init()
168 drm_kms_helper_poll_init(ddev); in sti_init()
173 static void sti_cleanup(struct drm_device *ddev) in sti_cleanup() argument
175 struct sti_private *private = ddev->dev_private; in sti_cleanup()
177 drm_kms_helper_poll_fini(ddev); in sti_cleanup()
[all …]
/drivers/dma/
Dtxx9dmac.c101 const struct txx9dmac_dev *ddev) in __txx9dmac_regs() argument
103 return ddev->regs; in __txx9dmac_regs()
107 const struct txx9dmac_dev *ddev) in __txx9dmac_regs32() argument
109 return ddev->regs; in __txx9dmac_regs32()
112 #define dma64_readl(ddev, name) \ argument
113 __raw_readl(&(__txx9dmac_regs(ddev)->name))
114 #define dma64_writel(ddev, name, val) \ argument
115 __raw_writel((val), &(__txx9dmac_regs(ddev)->name))
117 #define dma32_readl(ddev, name) \ argument
118 __raw_readl(&(__txx9dmac_regs32(ddev)->name))
[all …]
Duniphier-xdmac.c97 struct dma_device ddev; member
242 dev_err(xc->xdev->ddev.dev, in uniphier_xdmac_chan_irq()
245 dev_err(xc->xdev->ddev.dev, in uniphier_xdmac_chan_irq()
345 if (maxburst > xc->xdev->ddev.max_burst) { in uniphier_xdmac_prep_slave_sg()
346 dev_err(xc->xdev->ddev.dev, in uniphier_xdmac_prep_slave_sg()
373 dev_err(xc->xdev->ddev.dev, in uniphier_xdmac_prep_slave_sg()
380 dev_err(xc->xdev->ddev.dev, in uniphier_xdmac_prep_slave_sg()
463 vchan_init(&xc->vc, &xdev->ddev); in uniphier_xdmac_chan_init()
485 struct dma_device *ddev; in uniphier_xdmac_probe() local
505 ddev = &xdev->ddev; in uniphier_xdmac_probe()
[all …]
Duniphier-mdmac.c68 struct dma_device ddev; member
375 vchan_init(&mc->vc, &mdev->ddev); in uniphier_mdmac_chan_init()
384 struct dma_device *ddev; in uniphier_mdmac_probe() local
414 ddev = &mdev->ddev; in uniphier_mdmac_probe()
415 ddev->dev = dev; in uniphier_mdmac_probe()
416 dma_cap_set(DMA_PRIVATE, ddev->cap_mask); in uniphier_mdmac_probe()
417 ddev->src_addr_widths = UNIPHIER_MDMAC_SLAVE_BUSWIDTHS; in uniphier_mdmac_probe()
418 ddev->dst_addr_widths = UNIPHIER_MDMAC_SLAVE_BUSWIDTHS; in uniphier_mdmac_probe()
419 ddev->directions = BIT(DMA_MEM_TO_DEV) | BIT(DMA_DEV_TO_MEM); in uniphier_mdmac_probe()
420 ddev->residue_granularity = DMA_RESIDUE_GRANULARITY_SEGMENT; in uniphier_mdmac_probe()
[all …]
Dmilbeaut-xdmac.c75 struct dma_device ddev; member
287 vchan_init(&mc->vc, &mdev->ddev); in milbeaut_xdmac_chan_init()
314 struct dma_device *ddev; in milbeaut_xdmac_probe() local
330 ddev = &mdev->ddev; in milbeaut_xdmac_probe()
331 ddev->dev = dev; in milbeaut_xdmac_probe()
332 dma_cap_set(DMA_MEMCPY, ddev->cap_mask); in milbeaut_xdmac_probe()
333 ddev->src_addr_widths = MLB_XDMAC_BUSWIDTHS; in milbeaut_xdmac_probe()
334 ddev->dst_addr_widths = MLB_XDMAC_BUSWIDTHS; in milbeaut_xdmac_probe()
335 ddev->device_free_chan_resources = milbeaut_xdmac_free_chan_resources; in milbeaut_xdmac_probe()
336 ddev->device_prep_dma_memcpy = milbeaut_xdmac_prep_memcpy; in milbeaut_xdmac_probe()
[all …]
Dmilbeaut-hdmac.c77 struct dma_device ddev; member
413 chan = dma_get_any_slave_channel(&mdev->ddev); in milbeaut_hdmac_xlate()
450 vchan_init(&mc->vc, &mdev->ddev); in milbeaut_hdmac_chan_init()
459 struct dma_device *ddev; in milbeaut_hdmac_probe() local
489 ddev = &mdev->ddev; in milbeaut_hdmac_probe()
490 ddev->dev = dev; in milbeaut_hdmac_probe()
491 dma_cap_set(DMA_SLAVE, ddev->cap_mask); in milbeaut_hdmac_probe()
492 dma_cap_set(DMA_PRIVATE, ddev->cap_mask); in milbeaut_hdmac_probe()
493 ddev->src_addr_widths = MLB_HDMAC_BUSWIDTHS; in milbeaut_hdmac_probe()
494 ddev->dst_addr_widths = MLB_HDMAC_BUSWIDTHS; in milbeaut_hdmac_probe()
[all …]
/drivers/dma/qcom/
Dhidma.c79 return container_of(dmadev, struct hidma_dev, ddev); in to_hidma_dev()
95 INIT_LIST_HEAD(&dmadev->ddev.channels); in hidma_free()
110 struct dma_device *ddev = mchan->chan.device; in hidma_process_completed() local
111 struct hidma_dev *mdma = to_hidma_dev(ddev); in hidma_process_completed()
169 struct dma_device *ddev = mchan->chan.device; in hidma_callback() local
170 struct hidma_dev *dmadev = to_hidma_dev(ddev); in hidma_callback()
189 pm_runtime_mark_last_busy(dmadev->ddev.dev); in hidma_callback()
190 pm_runtime_put_autosuspend(dmadev->ddev.dev); in hidma_callback()
197 struct dma_device *ddev; in hidma_chan_init() local
199 mchan = devm_kzalloc(dmadev->ddev.dev, sizeof(*mchan), GFP_KERNEL); in hidma_chan_init()
[all …]
/drivers/gpu/drm/tilcdc/
Dtilcdc_external.c44 struct drm_connector *tilcdc_encoder_find_connector(struct drm_device *ddev, in tilcdc_encoder_find_connector() argument
49 list_for_each_entry(connector, &ddev->mode_config.connector_list, head) { in tilcdc_encoder_find_connector()
54 dev_err(ddev->dev, "No connector found for %s encoder (id %d)\n", in tilcdc_encoder_find_connector()
60 int tilcdc_add_component_encoder(struct drm_device *ddev) in tilcdc_add_component_encoder() argument
62 struct tilcdc_drm_private *priv = ddev->dev_private; in tilcdc_add_component_encoder()
65 list_for_each_entry(iter, &ddev->mode_config.encoder_list, head) in tilcdc_add_component_encoder()
72 dev_err(ddev->dev, "%s: No suitable encoder found\n", __func__); in tilcdc_add_component_encoder()
77 tilcdc_encoder_find_connector(ddev, encoder); in tilcdc_add_component_encoder()
90 int tilcdc_attach_bridge(struct drm_device *ddev, struct drm_bridge *bridge) in tilcdc_attach_bridge() argument
92 struct tilcdc_drm_private *priv = ddev->dev_private; in tilcdc_attach_bridge()
[all …]
Dtilcdc_drv.c203 struct drm_device *ddev; in tilcdc_init() local
215 ddev = drm_dev_alloc(ddrv, dev); in tilcdc_init()
216 if (IS_ERR(ddev)) in tilcdc_init()
217 return PTR_ERR(ddev); in tilcdc_init()
219 ddev->dev_private = priv; in tilcdc_init()
220 platform_set_drvdata(pdev, ddev); in tilcdc_init()
221 drm_mode_config_init(ddev); in tilcdc_init()
257 switch (tilcdc_read(ddev, LCDC_PID_REG)) { in tilcdc_init()
268 tilcdc_read(ddev, LCDC_PID_REG)); in tilcdc_init()
326 ret = tilcdc_crtc_create(ddev); in tilcdc_init()
[all …]
/drivers/gpu/drm/shmobile/
Dshmob_drm_drv.c150 drm_kms_helper_poll_disable(sdev->ddev); in shmob_drm_pm_suspend()
160 drm_modeset_lock_all(sdev->ddev); in shmob_drm_pm_resume()
162 drm_modeset_unlock_all(sdev->ddev); in shmob_drm_pm_resume()
164 drm_kms_helper_poll_enable(sdev->ddev); in shmob_drm_pm_resume()
180 struct drm_device *ddev = sdev->ddev; in shmob_drm_remove() local
182 drm_dev_unregister(ddev); in shmob_drm_remove()
183 drm_kms_helper_poll_fini(ddev); in shmob_drm_remove()
184 free_irq(sdev->irq, ddev); in shmob_drm_remove()
185 drm_dev_put(ddev); in shmob_drm_remove()
194 struct drm_device *ddev; in shmob_drm_probe() local
[all …]
/drivers/gpu/drm/omapdrm/
Domap_drv.c130 static void omap_disconnect_pipelines(struct drm_device *ddev) in omap_disconnect_pipelines() argument
132 struct omap_drm_private *priv = ddev->dev_private; in omap_disconnect_pipelines()
149 static int omap_connect_pipelines(struct drm_device *ddev) in omap_connect_pipelines() argument
151 struct omap_drm_private *priv = ddev->dev_private; in omap_connect_pipelines()
370 static void omap_modeset_fini(struct drm_device *ddev) in omap_modeset_fini() argument
372 omap_drm_irq_uninstall(ddev); in omap_modeset_fini()
374 drm_mode_config_cleanup(ddev); in omap_modeset_fini()
380 static void omap_modeset_enable_external_hpd(struct drm_device *ddev) in omap_modeset_enable_external_hpd() argument
382 struct omap_drm_private *priv = ddev->dev_private; in omap_modeset_enable_external_hpd()
399 static void omap_modeset_disable_external_hpd(struct drm_device *ddev) in omap_modeset_disable_external_hpd() argument
[all …]
/drivers/gpu/drm/amd/pm/
Damdgpu_pm.c123 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_get_power_dpm_state() local
124 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_get_power_dpm_state()
134 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_get_power_dpm_state()
136 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_power_dpm_state()
146 pm_runtime_mark_last_busy(ddev->dev); in amdgpu_get_power_dpm_state()
147 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_get_power_dpm_state()
159 struct drm_device *ddev = dev_get_drvdata(dev); in amdgpu_set_power_dpm_state() local
160 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_set_power_dpm_state()
178 ret = pm_runtime_get_sync(ddev->dev); in amdgpu_set_power_dpm_state()
180 pm_runtime_put_autosuspend(ddev->dev); in amdgpu_set_power_dpm_state()
[all …]
/drivers/gpu/drm/tidss/
Dtidss_crtc.c26 struct drm_device *ddev = tcrtc->crtc.dev; in tidss_crtc_finish_page_flip() local
27 struct tidss_device *tidss = to_tidss(ddev); in tidss_crtc_finish_page_flip()
32 spin_lock_irqsave(&ddev->event_lock, flags); in tidss_crtc_finish_page_flip()
42 spin_unlock_irqrestore(&ddev->event_lock, flags); in tidss_crtc_finish_page_flip()
50 spin_unlock_irqrestore(&ddev->event_lock, flags); in tidss_crtc_finish_page_flip()
56 spin_unlock_irqrestore(&ddev->event_lock, flags); in tidss_crtc_finish_page_flip()
92 struct drm_device *ddev = crtc->dev; in tidss_crtc_atomic_check() local
93 struct tidss_device *tidss = to_tidss(ddev); in tidss_crtc_atomic_check()
100 dev_dbg(ddev->dev, "%s\n", __func__); in tidss_crtc_atomic_check()
109 dev_dbg(ddev->dev, "%s: bad mode: %ux%u pclk %u kHz\n", in tidss_crtc_atomic_check()
[all …]
Dtidss_drv.c79 return drm_mode_config_helper_suspend(&tidss->ddev); in tidss_suspend()
88 return drm_mode_config_helper_resume(&tidss->ddev); in tidss_resume()
103 static void tidss_release(struct drm_device *ddev) in tidss_release() argument
105 drm_kms_helper_poll_fini(ddev); in tidss_release()
126 struct drm_device *ddev; in tidss_probe() local
133 struct tidss_device, ddev); in tidss_probe()
137 ddev = &tidss->ddev; in tidss_probe()
171 ret = tidss_irq_install(ddev, irq); in tidss_probe()
177 drm_kms_helper_poll_init(ddev); in tidss_probe()
179 drm_mode_config_reset(ddev); in tidss_probe()
[all …]
Dtidss_irq.c28 struct drm_device *ddev = crtc->dev; in tidss_irq_enable_vblank() local
29 struct tidss_device *tidss = to_tidss(ddev); in tidss_irq_enable_vblank()
43 struct drm_device *ddev = crtc->dev; in tidss_irq_disable_vblank() local
44 struct tidss_device *tidss = to_tidss(ddev); in tidss_irq_disable_vblank()
58 struct drm_device *ddev = (struct drm_device *)arg; in tidss_irq_handler() local
59 struct tidss_device *tidss = to_tidss(ddev); in tidss_irq_handler()
96 static void tidss_irq_preinstall(struct drm_device *ddev) in tidss_irq_preinstall() argument
98 struct tidss_device *tidss = to_tidss(ddev); in tidss_irq_preinstall()
110 static void tidss_irq_postinstall(struct drm_device *ddev) in tidss_irq_postinstall() argument
112 struct tidss_device *tidss = to_tidss(ddev); in tidss_irq_postinstall()
[all …]
Dtidss_kms.c27 struct drm_device *ddev = old_state->dev; in tidss_atomic_commit_tail() local
28 struct tidss_device *tidss = to_tidss(ddev); in tidss_atomic_commit_tail()
30 dev_dbg(ddev->dev, "%s\n", __func__); in tidss_atomic_commit_tail()
34 drm_atomic_helper_commit_modeset_disables(ddev, old_state); in tidss_atomic_commit_tail()
35 drm_atomic_helper_commit_planes(ddev, old_state, 0); in tidss_atomic_commit_tail()
36 drm_atomic_helper_commit_modeset_enables(ddev, old_state); in tidss_atomic_commit_tail()
39 drm_atomic_helper_wait_for_flip_done(ddev, old_state); in tidss_atomic_commit_tail()
41 drm_atomic_helper_cleanup_planes(ddev, old_state); in tidss_atomic_commit_tail()
50 static int tidss_atomic_check(struct drm_device *ddev, in tidss_atomic_check() argument
60 ret = drm_atomic_helper_check(ddev, state); in tidss_atomic_check()
[all …]
Dtidss_plane.c27 struct drm_device *ddev = plane->dev; in tidss_plane_atomic_check() local
28 struct tidss_device *tidss = to_tidss(ddev); in tidss_plane_atomic_check()
36 dev_dbg(ddev->dev, "%s\n", __func__); in tidss_plane_atomic_check()
73 dev_dbg(ddev->dev, in tidss_plane_atomic_check()
80 dev_dbg(ddev->dev, in tidss_plane_atomic_check()
87 dev_dbg(ddev->dev, in tidss_plane_atomic_check()
110 struct drm_device *ddev = plane->dev; in tidss_plane_atomic_update() local
111 struct tidss_device *tidss = to_tidss(ddev); in tidss_plane_atomic_update()
118 dev_dbg(ddev->dev, "%s\n", __func__); in tidss_plane_atomic_update()
143 struct drm_device *ddev = plane->dev; in tidss_plane_atomic_disable() local
[all …]
/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_main.c2265 void hns_dsaf_get_regs(struct dsaf_device *ddev, u32 port, void *data) in hns_dsaf_get_regs() argument
2271 bool is_ver1 = AE_IS_VER1(ddev->dsaf_ver); in hns_dsaf_get_regs()
2274 p[0] = dsaf_read_dev(ddev, DSAF_SRAM_INIT_OVER_0_REG); in hns_dsaf_get_regs()
2275 p[1] = dsaf_read_dev(ddev, DSAF_CFG_0_REG); in hns_dsaf_get_regs()
2276 p[2] = dsaf_read_dev(ddev, DSAF_ECC_ERR_INVERT_0_REG); in hns_dsaf_get_regs()
2277 p[3] = dsaf_read_dev(ddev, DSAF_ABNORMAL_TIMEOUT_0_REG); in hns_dsaf_get_regs()
2278 p[4] = dsaf_read_dev(ddev, DSAF_FSM_TIMEOUT_0_REG); in hns_dsaf_get_regs()
2279 p[5] = dsaf_read_dev(ddev, DSAF_DSA_REG_CNT_CLR_CE_REG); in hns_dsaf_get_regs()
2280 p[6] = dsaf_read_dev(ddev, DSAF_DSA_SBM_INF_FIFO_THRD_REG); in hns_dsaf_get_regs()
2281 p[7] = dsaf_read_dev(ddev, DSAF_DSA_SRAM_1BIT_ECC_SEL_REG); in hns_dsaf_get_regs()
[all …]
/drivers/usb/core/
Dconfig.c51 static void usb_parse_ssp_isoc_endpoint_companion(struct device *ddev, in usb_parse_ssp_isoc_endpoint_companion() argument
64 dev_notice(ddev, "Invalid SuperSpeedPlus isoc endpoint companion" in usb_parse_ssp_isoc_endpoint_companion()
72 static void usb_parse_ss_endpoint_companion(struct device *ddev, int cfgno, in usb_parse_ss_endpoint_companion() argument
86 dev_notice(ddev, "No SuperSpeed endpoint companion for config %d " in usb_parse_ss_endpoint_companion()
112 dev_notice(ddev, "Control endpoint with bMaxBurst = %d in " in usb_parse_ss_endpoint_companion()
118 dev_notice(ddev, "Endpoint with bMaxBurst = %d in " in usb_parse_ss_endpoint_companion()
128 dev_notice(ddev, "%s endpoint with bmAttributes = %d in " in usb_parse_ss_endpoint_companion()
137 dev_notice(ddev, "Bulk endpoint with more than 65536 streams in " in usb_parse_ss_endpoint_companion()
145 dev_notice(ddev, "Isoc endpoint has Mult of %d in " in usb_parse_ss_endpoint_companion()
163 dev_notice(ddev, "%s endpoint with wBytesPerInterval of %d in " in usb_parse_ss_endpoint_companion()
[all …]
/drivers/gpu/drm/msm/
Dmsm_drv.c319 struct drm_device *ddev = platform_get_drvdata(pdev); in msm_drm_uninit() local
320 struct msm_drm_private *priv = ddev->dev_private; in msm_drm_uninit()
332 if (ddev->registered) { in msm_drm_uninit()
333 drm_dev_unregister(ddev); in msm_drm_uninit()
334 drm_atomic_helper_shutdown(ddev); in msm_drm_uninit()
350 msm_gem_shrinker_cleanup(ddev); in msm_drm_uninit()
352 drm_kms_helper_poll_fini(ddev); in msm_drm_uninit()
359 msm_fbdev_free(ddev); in msm_drm_uninit()
363 msm_disp_snapshot_destroy(ddev); in msm_drm_uninit()
365 drm_mode_config_cleanup(ddev); in msm_drm_uninit()
[all …]
/drivers/fpga/
Ddfl.c251 dfl_match_one_device(const struct dfl_device_id *id, struct dfl_device *ddev) in dfl_match_one_device() argument
253 if (id->type == ddev->type && id->feature_id == ddev->feature_id) in dfl_match_one_device()
261 struct dfl_device *ddev = to_dfl_dev(dev); in dfl_bus_match() local
268 if (dfl_match_one_device(id_entry, ddev)) { in dfl_bus_match()
269 ddev->id_entry = id_entry; in dfl_bus_match()
282 struct dfl_device *ddev = to_dfl_dev(dev); in dfl_bus_probe() local
284 return ddrv->probe(ddev); in dfl_bus_probe()
290 struct dfl_device *ddev = to_dfl_dev(dev); in dfl_bus_remove() local
293 ddrv->remove(ddev); in dfl_bus_remove()
298 struct dfl_device *ddev = to_dfl_dev(dev); in dfl_bus_uevent() local
[all …]
/drivers/dma/mediatek/
Dmtk-uart-apdma.c79 struct dma_device ddev; member
107 return container_of(d, struct mtk_uart_apdmadev, ddev); in to_mtk_uart_apdma_dev()
277 ret = pm_runtime_resume_and_get(mtkd->ddev.dev); in mtk_uart_apdma_alloc_chan_resources()
305 pm_runtime_put_noidle(mtkd->ddev.dev); in mtk_uart_apdma_alloc_chan_resources()
320 pm_runtime_put_sync(mtkd->ddev.dev); in mtk_uart_apdma_free_chan_resources()
462 while (!list_empty(&mtkd->ddev.channels)) { in mtk_uart_apdma_free()
463 struct mtk_chan *c = list_first_entry(&mtkd->ddev.channels, in mtk_uart_apdma_free()
506 dma_cap_set(DMA_SLAVE, mtkd->ddev.cap_mask); in mtk_uart_apdma_probe()
507 mtkd->ddev.device_alloc_chan_resources = in mtk_uart_apdma_probe()
509 mtkd->ddev.device_free_chan_resources = in mtk_uart_apdma_probe()
[all …]

123456789