Home
last modified time | relevance | path

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

/linux-4.1.27/net/nfc/
Ddigital_core.c47 struct sk_buff *digital_skb_alloc(struct nfc_digital_dev *ddev, in digital_skb_alloc() argument
52 skb = alloc_skb(len + ddev->tx_headroom + ddev->tx_tailroom, in digital_skb_alloc()
55 skb_reserve(skb, ddev->tx_headroom); in digital_skb_alloc()
105 static inline void digital_switch_rf(struct nfc_digital_dev *ddev, bool on) in digital_switch_rf() argument
107 ddev->ops->switch_rf(ddev, on); in digital_switch_rf()
110 static inline void digital_abort_cmd(struct nfc_digital_dev *ddev) in digital_abort_cmd() argument
112 ddev->ops->abort_cmd(ddev); in digital_abort_cmd()
118 struct nfc_digital_dev *ddev = container_of(work, in digital_wq_cmd_complete() local
122 mutex_lock(&ddev->cmd_lock); in digital_wq_cmd_complete()
124 cmd = list_first_entry_or_null(&ddev->cmd_queue, struct digital_cmd, in digital_wq_cmd_complete()
[all …]
Ddigital_dep.c113 static void digital_in_recv_dep_res(struct nfc_digital_dev *ddev, void *arg,
115 static void digital_tg_recv_dep_req(struct nfc_digital_dev *ddev, void *arg,
144 static void digital_skb_push_dep_sod(struct nfc_digital_dev *ddev, in digital_skb_push_dep_sod() argument
151 if (ddev->curr_rf_tech == NFC_DIGITAL_RF_TECH_106A) in digital_skb_push_dep_sod()
155 static int digital_skb_pull_dep_sod(struct nfc_digital_dev *ddev, in digital_skb_pull_dep_sod() argument
163 if (ddev->curr_rf_tech == NFC_DIGITAL_RF_TECH_106A) in digital_skb_pull_dep_sod()
176 digital_send_dep_data_prep(struct nfc_digital_dev *ddev, struct sk_buff *skb, in digital_send_dep_data_prep() argument
182 if (skb->len > ddev->remote_payload_max) { in digital_send_dep_data_prep()
185 new_skb = digital_skb_alloc(ddev, ddev->remote_payload_max); in digital_send_dep_data_prep()
187 kfree_skb(ddev->chaining_skb); in digital_send_dep_data_prep()
[all …]
Ddigital_technology.c172 static int digital_in_send_sdd_req(struct nfc_digital_dev *ddev,
175 int digital_in_iso_dep_pull_sod(struct nfc_digital_dev *ddev, in digital_in_iso_dep_pull_sod() argument
203 int digital_in_iso_dep_push_sod(struct nfc_digital_dev *ddev, in digital_in_iso_dep_push_sod() argument
210 if (skb->len + 3 > ddev->target_fsc) in digital_in_iso_dep_push_sod()
215 *skb->data = DIGITAL_ISO_DEP_I_PCB | ddev->curr_nfc_dep_pni; in digital_in_iso_dep_push_sod()
217 ddev->curr_nfc_dep_pni = in digital_in_iso_dep_push_sod()
218 DIGITAL_ISO_DEP_PNI(ddev->curr_nfc_dep_pni + 1); in digital_in_iso_dep_push_sod()
223 static void digital_in_recv_ats(struct nfc_digital_dev *ddev, void *arg, in digital_in_recv_ats() argument
243 ddev->target_fsc = DIGITAL_ATS_MAX_FSC; in digital_in_recv_ats()
245 ddev->target_fsc = digital_ats_fsc[fsdi]; in digital_in_recv_ats()
[all …]
Ddigital.h44 #define DIGITAL_DRV_CAPS_IN_CRC(ddev) \ argument
45 ((ddev)->driver_capabilities & NFC_DIGITAL_DRV_CAPS_IN_CRC)
46 #define DIGITAL_DRV_CAPS_TG_CRC(ddev) \ argument
47 ((ddev)->driver_capabilities & NFC_DIGITAL_DRV_CAPS_TG_CRC)
54 struct sk_buff *digital_skb_alloc(struct nfc_digital_dev *ddev,
57 int digital_send_cmd(struct nfc_digital_dev *ddev, u8 cmd_type,
62 int digital_in_configure_hw(struct nfc_digital_dev *ddev, int type, int param);
63 static inline int digital_in_send_cmd(struct nfc_digital_dev *ddev, in digital_in_send_cmd() argument
68 return digital_send_cmd(ddev, DIGITAL_CMD_IN_SEND, skb, NULL, timeout, in digital_in_send_cmd()
72 void digital_poll_next_tech(struct nfc_digital_dev *ddev);
[all …]
/linux-4.1.27/drivers/dma/
Dtxx9dmac.c104 const struct txx9dmac_dev *ddev) in __txx9dmac_regs() argument
106 return ddev->regs; in __txx9dmac_regs()
110 const struct txx9dmac_dev *ddev) in __txx9dmac_regs32() argument
112 return ddev->regs; in __txx9dmac_regs32()
115 #define dma64_readl(ddev, name) \ argument
116 __raw_readl(&(__txx9dmac_regs(ddev)->name))
117 #define dma64_writel(ddev, name, val) \ argument
118 __raw_writel((val), &(__txx9dmac_regs(ddev)->name))
120 #define dma32_readl(ddev, name) \ argument
121 __raw_readl(&(__txx9dmac_regs32(ddev)->name))
[all …]
Dtxx9dmac.h166 struct txx9dmac_dev *ddev; member
191 static inline bool __is_dmac64(const struct txx9dmac_dev *ddev) in __is_dmac64() argument
193 return ddev->have_64bit_regs; in __is_dmac64()
198 return __is_dmac64(dc->ddev); in is_dmac64()
250 static inline void txx9dmac_desc_set_INTENT(struct txx9dmac_dev *ddev, in txx9dmac_desc_set_INTENT() argument
260 static inline void txx9dmac_desc_set_nosimple(struct txx9dmac_dev *ddev, in txx9dmac_desc_set_nosimple() argument
277 static inline void txx9dmac_desc_set_INTENT(struct txx9dmac_dev *ddev, in txx9dmac_desc_set_INTENT() argument
280 if (__is_dmac64(ddev)) in txx9dmac_desc_set_INTENT()
290 static inline void txx9dmac_desc_set_nosimple(struct txx9dmac_dev *ddev, in txx9dmac_desc_set_nosimple() argument
294 if (__is_dmac64(ddev)) { in txx9dmac_desc_set_nosimple()
Dbcm2835-dma.c49 struct dma_device ddev; member
129 return container_of(d, struct bcm2835_dmadev, ddev); in to_bcm2835_dma_dev()
492 dev_err(d->ddev.dev, "DMA transfer could not be terminated\n"); in bcm2835_dma_terminate_all()
506 c = devm_kzalloc(d->ddev.dev, sizeof(*c), GFP_KERNEL); in bcm2835_dma_chan_init()
511 vchan_init(&c->vc, &d->ddev); in bcm2835_dma_chan_init()
525 list_for_each_entry_safe(c, next, &od->ddev.channels, in bcm2835_dma_free()
544 chan = dma_get_any_slave_channel(&d->ddev); in bcm2835_dma_xlate()
585 dma_cap_set(DMA_SLAVE, od->ddev.cap_mask); in bcm2835_dma_probe()
586 dma_cap_set(DMA_PRIVATE, od->ddev.cap_mask); in bcm2835_dma_probe()
587 dma_cap_set(DMA_CYCLIC, od->ddev.cap_mask); in bcm2835_dma_probe()
[all …]
Domap-dma.c26 struct dma_device ddev; member
163 return container_of(d, struct omap_dmadev, ddev); in to_omap_dma_dev()
505 dev_err(od->ddev.dev, "invalid channel %u\n", channel); in omap_dma_irq()
534 dev_dbg(od->ddev.dev, "allocating channel %u for %u\n", in omap_dma_alloc_chan_resources()
591 dev_dbg(od->ddev.dev, "freeing channel for %u\n", c->dma_sig); in omap_dma_free_chan_resources()
1051 vchan_init(&c->vc, &od->ddev); in omap_dma_chan_init()
1060 while (!list_empty(&od->ddev.channels)) { in omap_dma_free()
1061 struct omap_chan *c = list_first_entry(&od->ddev.channels, in omap_dma_free()
1095 dma_cap_set(DMA_SLAVE, od->ddev.cap_mask); in omap_dma_probe()
1096 dma_cap_set(DMA_CYCLIC, od->ddev.cap_mask); in omap_dma_probe()
[all …]
Dcppi41.c130 struct dma_device ddev; member
646 while (!list_empty(&cdd->ddev.channels)) { in cleanup_chans()
649 cchan = list_first_entry(&cdd->ddev.channels, in cleanup_chans()
690 cchan->chan.device = &cdd->ddev; in cppi41_add_chans()
691 list_add_tail(&cchan->chan.device_node, &cdd->ddev.channels); in cppi41_add_chans()
927 dma_cap_set(DMA_SLAVE, cdd->ddev.cap_mask); in cppi41_dma_probe()
928 cdd->ddev.device_alloc_chan_resources = cppi41_dma_alloc_chan_resources; in cppi41_dma_probe()
929 cdd->ddev.device_free_chan_resources = cppi41_dma_free_chan_resources; in cppi41_dma_probe()
930 cdd->ddev.device_tx_status = cppi41_dma_tx_status; in cppi41_dma_probe()
931 cdd->ddev.device_issue_pending = cppi41_dma_issue_pending; in cppi41_dma_probe()
[all …]
Ddma-jz4740.c127 struct dma_device ddev; member
138 ddev); in jz4740_dma_chan_get_dev()
522 dd = &dmadev->ddev; in jz4740_dma_probe()
582 dma_async_device_unregister(&dmadev->ddev); in jz4740_dma_remove()
Dat_hdmac_regs.h338 static inline struct at_dma *to_at_dma(struct dma_device *ddev) in to_at_dma() argument
340 return container_of(ddev, struct at_dma, dma_common); in to_at_dma()
Dpch_dma.c160 static inline struct pch_dma *to_pd(struct dma_device *ddev) in to_pd() argument
162 return container_of(ddev, struct pch_dma, dma); in to_pd()
Dat_xdmac.c276 static inline struct at_xdmac *to_at_xdmac(struct dma_device *ddev) in to_at_xdmac() argument
278 return container_of(ddev, struct at_xdmac, dma); in to_at_xdmac()
/linux-4.1.27/drivers/usb/core/
Dconfig.c46 static void usb_parse_ss_endpoint_companion(struct device *ddev, int cfgno, in usb_parse_ss_endpoint_companion() argument
59 dev_warn(ddev, "No SuperSpeed endpoint companion for config %d " in usb_parse_ss_endpoint_companion()
84 dev_warn(ddev, "Control endpoint with bMaxBurst = %d in " in usb_parse_ss_endpoint_companion()
90 dev_warn(ddev, "Endpoint with bMaxBurst = %d in " in usb_parse_ss_endpoint_companion()
100 dev_warn(ddev, "%s endpoint with bmAttributes = %d in " in usb_parse_ss_endpoint_companion()
109 dev_warn(ddev, "Bulk endpoint with more than 65536 streams in " in usb_parse_ss_endpoint_companion()
116 dev_warn(ddev, "Isoc endpoint has Mult of %d in " in usb_parse_ss_endpoint_companion()
134 dev_warn(ddev, "%s endpoint with wBytesPerInterval of %d in " in usb_parse_ss_endpoint_companion()
145 static int usb_parse_endpoint(struct device *ddev, int cfgno, int inum, in usb_parse_endpoint() argument
163 dev_warn(ddev, "config %d interface %d altsetting %d has an " in usb_parse_endpoint()
[all …]
/linux-4.1.27/include/net/nfc/
Ddigital.h96 typedef void (*nfc_digital_cmd_complete_t)(struct nfc_digital_dev *ddev,
156 int (*in_configure_hw)(struct nfc_digital_dev *ddev, int type,
158 int (*in_send_cmd)(struct nfc_digital_dev *ddev, struct sk_buff *skb,
162 int (*tg_configure_hw)(struct nfc_digital_dev *ddev, int type,
164 int (*tg_send_cmd)(struct nfc_digital_dev *ddev, struct sk_buff *skb,
167 int (*tg_listen)(struct nfc_digital_dev *ddev, u16 timeout,
169 int (*tg_listen_mdaa)(struct nfc_digital_dev *ddev,
173 int (*tg_listen_md)(struct nfc_digital_dev *ddev, u16 timeout,
175 int (*tg_get_rf_tech)(struct nfc_digital_dev *ddev, u8 *rf_tech);
177 int (*switch_rf)(struct nfc_digital_dev *ddev, bool on);
[all …]
/linux-4.1.27/drivers/gpu/drm/ast/
Dast_drv.c123 struct drm_device *ddev = pci_get_drvdata(pdev); in ast_pm_suspend() local
126 error = ast_drm_freeze(ddev); in ast_pm_suspend()
137 struct drm_device *ddev = pci_get_drvdata(pdev); in ast_pm_resume() local
138 return ast_drm_resume(ddev); in ast_pm_resume()
144 struct drm_device *ddev = pci_get_drvdata(pdev); in ast_pm_freeze() local
146 if (!ddev || !ddev->dev_private) in ast_pm_freeze()
148 return ast_drm_freeze(ddev); in ast_pm_freeze()
155 struct drm_device *ddev = pci_get_drvdata(pdev); in ast_pm_thaw() local
156 return ast_drm_thaw(ddev); in ast_pm_thaw()
162 struct drm_device *ddev = pci_get_drvdata(pdev); in ast_pm_poweroff() local
[all …]
/linux-4.1.27/drivers/gpu/drm/radeon/
Dradeon_agp.c136 ret = drm_agp_acquire(rdev->ddev); in radeon_agp_init()
142 ret = drm_agp_info(rdev->ddev, &info); in radeon_agp_init()
144 drm_agp_release(rdev->ddev); in radeon_agp_init()
149 if (rdev->ddev->agp->agp_info.aper_size < 32) { in radeon_agp_init()
150 drm_agp_release(rdev->ddev); in radeon_agp_init()
153 rdev->ddev->agp->agp_info.aper_size); in radeon_agp_init()
234 ret = drm_agp_enable(rdev->ddev, mode); in radeon_agp_init()
237 drm_agp_release(rdev->ddev); in radeon_agp_init()
241 rdev->mc.agp_base = rdev->ddev->agp->agp_info.aper_base; in radeon_agp_init()
242 rdev->mc.gtt_size = rdev->ddev->agp->agp_info.aper_size << 20; in radeon_agp_init()
[all …]
Dradeon_irq_kms.c78 struct drm_device *dev = rdev->ddev; in radeon_hotplug_work_func()
96 struct drm_device *dev = rdev->ddev; in radeon_dp_work_func()
279 r = drm_vblank_init(rdev->ddev, rdev->num_crtc); in radeon_irq_kms_init()
299 r = drm_irq_install(rdev->ddev, rdev->ddev->pdev->irq); in radeon_irq_kms_init()
319 drm_vblank_cleanup(rdev->ddev); in radeon_irq_kms_fini()
321 drm_irq_uninstall(rdev->ddev); in radeon_irq_kms_fini()
343 if (!rdev->ddev->irq_enabled) in radeon_irq_kms_sw_irq_get()
382 if (!rdev->ddev->irq_enabled) in radeon_irq_kms_sw_irq_put()
408 if (!rdev->ddev->irq_enabled) in radeon_irq_kms_pflip_irq_get()
434 if (!rdev->ddev->irq_enabled) in radeon_irq_kms_pflip_irq_put()
[all …]
Dradeon_display.c309 spin_lock_irqsave(&rdev->ddev->event_lock, flags); in radeon_crtc_handle_vblank()
315 spin_unlock_irqrestore(&rdev->ddev->event_lock, flags); in radeon_crtc_handle_vblank()
325 (DRM_SCANOUTPOS_VALID & radeon_get_crtc_scanoutpos(rdev->ddev, crtc_id, 0, in radeon_crtc_handle_vblank()
337 spin_unlock_irqrestore(&rdev->ddev->event_lock, flags); in radeon_crtc_handle_vblank()
360 spin_lock_irqsave(&rdev->ddev->event_lock, flags); in radeon_crtc_handle_flip()
367 spin_unlock_irqrestore(&rdev->ddev->event_lock, flags); in radeon_crtc_handle_flip()
377 drm_send_vblank_event(rdev->ddev, crtc_id, work->event); in radeon_crtc_handle_flip()
379 spin_unlock_irqrestore(&rdev->ddev->event_lock, flags); in radeon_crtc_handle_flip()
381 drm_vblank_put(rdev->ddev, radeon_crtc->crtc_id); in radeon_crtc_handle_flip()
1398 drm_property_create_range(rdev->ddev, 0 , "coherent", 0, 1); in radeon_modeset_create_props()
[all …]
Dradeon_pm.c256 mutex_lock(&rdev->ddev->struct_mutex); in radeon_pm_set_clocks()
271 mutex_unlock(&rdev->ddev->struct_mutex); in radeon_pm_set_clocks()
282 drm_vblank_get(rdev->ddev, i); in radeon_pm_set_clocks()
293 drm_vblank_put(rdev->ddev, i); in radeon_pm_set_clocks()
307 mutex_unlock(&rdev->ddev->struct_mutex); in radeon_pm_set_clocks()
348 struct drm_device *ddev = dev_get_drvdata(dev); in radeon_get_pm_profile() local
349 struct radeon_device *rdev = ddev->dev_private; in radeon_get_pm_profile()
364 struct drm_device *ddev = dev_get_drvdata(dev); in radeon_set_pm_profile() local
365 struct radeon_device *rdev = ddev->dev_private; in radeon_set_pm_profile()
369 (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) in radeon_set_pm_profile()
[all …]
Dradeon_fb.c261 ret = radeon_framebuffer_init(rdev->ddev, &rfbdev->rfb, &mode_cmd, gobj); in radeonfb_create()
296 info->apertures->ranges[0].base = rdev->ddev->mode_config.fb_base; in radeonfb_create()
318 vga_switcheroo_client_fb_set(rdev->ddev->pdev, info); in radeonfb_create()
378 if (list_empty(&rdev->ddev->mode_config.connector_list)) in radeon_fbdev_init()
392 drm_fb_helper_prepare(rdev->ddev, &rfbdev->helper, in radeon_fbdev_init()
395 ret = drm_fb_helper_init(rdev->ddev, &rfbdev->helper, in radeon_fbdev_init()
406 drm_helper_disable_unused_functions(rdev->ddev); in radeon_fbdev_init()
426 radeon_fbdev_destroy(rdev->ddev, rdev->mode_info.rfbdev); in radeon_fbdev_fini()
Dradeon_device.c744 radeon_combios_asic_init(rdev->ddev); in radeon_boot_test_post_card()
964 atom_card_info->dev = rdev->ddev; in radeon_atombios_init()
989 radeon_atom_initialize_bios_scratch_regs(rdev->ddev); in radeon_atombios_init()
1032 radeon_combios_initialize_bios_scratch_regs(rdev->ddev); in radeon_combios_init()
1272 struct drm_device *ddev, in radeon_device_init() argument
1282 rdev->ddev = ddev; in radeon_device_init()
1843 drm_helper_resume_force_mode(rdev->ddev); in radeon_gpu_reset()
1894 rdev->ddev->control->debugfs_root, in radeon_debugfs_add_files()
1895 rdev->ddev->control); in radeon_debugfs_add_files()
1897 rdev->ddev->primary->debugfs_root, in radeon_debugfs_add_files()
[all …]
Drs600.c311 struct drm_device *ddev = rdev->ddev; in rs600_pm_prepare() local
317 list_for_each_entry(crtc, &ddev->mode_config.crtc_list, head) { in rs600_pm_prepare()
329 struct drm_device *ddev = rdev->ddev; in rs600_pm_finish() local
335 list_for_each_entry(crtc, &ddev->mode_config.crtc_list, head) { in rs600_pm_finish()
398 struct drm_device *dev = rdev->ddev; in rs600_hpd_init()
424 struct drm_device *dev = rdev->ddev; in rs600_hpd_fini()
785 drm_handle_vblank(rdev->ddev, 0); in rs600_irq_process()
794 drm_handle_vblank(rdev->ddev, 1); in rs600_irq_process()
1127 radeon_get_clock_info(rdev->ddev); in rs600_init()
Dradeon.h2315 struct drm_device *ddev; member
2469 struct drm_device *ddev,
2795 #define ASIC_IS_X2(rdev) ((rdev->ddev->pdev->device == 0x9441) || \
2796 (rdev->ddev->pdev->device == 0x9443) || \
2797 (rdev->ddev->pdev->device == 0x944B) || \
2798 (rdev->ddev->pdev->device == 0x9506) || \
2799 (rdev->ddev->pdev->device == 0x9509) || \
2800 (rdev->ddev->pdev->device == 0x950F) || \
2801 (rdev->ddev->pdev->device == 0x689C) || \
2802 (rdev->ddev->pdev->device == 0x689D))
[all …]
Dradeon_ttm.c149 if (!rdev->ddev->agp) { in radeon_init_mem_type()
154 if (!rdev->ddev->agp->cant_use_aperture) in radeon_init_mem_type()
471 mem->bus.is_iomem = !rdev->ddev->agp->cant_use_aperture; in radeon_ttm_io_mem_reserve()
503 rdev->ddev->hose->dense_mem_base; in radeon_ttm_io_mem_reserve()
687 return ttm_agp_tt_create(bdev, rdev->ddev->agp->bridge, in radeon_ttm_tt_create()
877 rdev->ddev->anon_inode->i_mapping, in radeon_ttm_init()
1157 struct drm_minor *minor = rdev->ddev->primary; in radeon_ttm_debugfs_init()
Dradeon_fence.c147 trace_radeon_fence_emit(rdev->ddev, ring, (*fence)->seq); in radeon_fence_emit()
284 if (fence_drv->delayed_irq && rdev->ddev->irq_enabled) { in radeon_fence_check_lockup()
501 trace_radeon_fence_wait_begin(rdev->ddev, i, target_seq[i]); in radeon_fence_wait_seq_timeout()
523 trace_radeon_fence_wait_end(rdev->ddev, i, target_seq[i]); in radeon_fence_wait_seq_timeout()
Dradeon_cs.c77 struct drm_device *ddev = p->rdev->ddev; in radeon_cs_parser_relocs() local
104 gobj = drm_gem_object_lookup(ddev, p->filp, r->handle); in radeon_cs_parser_relocs()
125 (i == 0 || drm_pci_device_is_agp(p->rdev->ddev) || in radeon_cs_parser_relocs()
Dradeon_bios.c520 if (rdev->ddev->pdev->device == PCI_DEVICE_ID_ATI_RADEON_QY) { in legacy_read_disabled_bios()
557 if (rdev->ddev->pdev->device == PCI_DEVICE_ID_ATI_RADEON_QY) { in legacy_read_disabled_bios()
575 if (rdev->ddev->pdev->device == PCI_DEVICE_ID_ATI_RADEON_QY) { in legacy_read_disabled_bios()
Dr420.c321 radeon_combios_asic_init(rdev->ddev); in r420_resume()
413 radeon_get_clock_info(rdev->ddev); in r420_init()
Dr100.c445 struct drm_device *ddev = rdev->ddev; in r100_pm_prepare() local
451 list_for_each_entry(crtc, &ddev->mode_config.crtc_list, head) { in r100_pm_prepare()
476 struct drm_device *ddev = rdev->ddev; in r100_pm_finish() local
482 list_for_each_entry(crtc, &ddev->mode_config.crtc_list, head) { in r100_pm_finish()
589 struct drm_device *dev = rdev->ddev; in r100_hpd_init()
611 struct drm_device *dev = rdev->ddev; in r100_hpd_fini()
782 drm_handle_vblank(rdev->ddev, 0); in r100_irq_process()
791 drm_handle_vblank(rdev->ddev, 1); in r100_irq_process()
1465 crtc = drm_crtc_find(p->rdev->ddev, crtc_id); in r100_cs_packet_parse_vline()
2616 struct drm_device *dev = rdev->ddev; in r100_set_common_regs()
[all …]
Drs400.c476 radeon_combios_asic_init(rdev->ddev); in rs400_resume()
554 radeon_get_clock_info(rdev->ddev); in rs400_init()
Dradeon_object.c207 r = drm_gem_object_init(rdev->ddev, &bo->gem_base, size); in radeon_bo_create()
429 mutex_lock(&rdev->ddev->struct_mutex); in radeon_bo_force_delete()
438 mutex_unlock(&rdev->ddev->struct_mutex); in radeon_bo_force_delete()
Dr520.c291 radeon_get_clock_info(rdev->ddev); in r520_init()
Devergreen.c1617 struct drm_device *ddev = rdev->ddev; in evergreen_pm_prepare() local
1623 list_for_each_entry(crtc, &ddev->mode_config.crtc_list, head) { in evergreen_pm_prepare()
1642 struct drm_device *ddev = rdev->ddev; in evergreen_pm_finish() local
1648 list_for_each_entry(crtc, &ddev->mode_config.crtc_list, head) { in evergreen_pm_finish()
1781 struct drm_device *dev = rdev->ddev; in evergreen_hpd_init()
1837 struct drm_device *dev = rdev->ddev; in evergreen_hpd_fini()
5032 drm_handle_vblank(rdev->ddev, 0); in evergreen_irq_process()
5062 drm_handle_vblank(rdev->ddev, 1); in evergreen_irq_process()
5092 drm_handle_vblank(rdev->ddev, 2); in evergreen_irq_process()
5122 drm_handle_vblank(rdev->ddev, 3); in evergreen_irq_process()
[all …]
Dradeon_combios.c375 edid_info = combios_get_table_offset(rdev->ddev, COMBIOS_HARDCODED_EDID_TABLE); in radeon_combios_check_hardcoded_edid()
645 struct drm_device *dev = rdev->ddev; in radeon_combios_get_i2c_info_from_table()
673 struct drm_device *dev = rdev->ddev; in radeon_combios_i2c_init()
815 struct drm_device *dev = rdev->ddev; in radeon_combios_sideport_present()
918 struct drm_device *dev = rdev->ddev; in radeon_combios_get_tv_info()
2637 struct drm_device *dev = rdev->ddev; in radeon_combios_get_power_modes()
Dr600_hdmi.c118 struct drm_device *dev = rdev->ddev; in r600_audio_update_hdmi()
Dradeon_acpi.c722 list_for_each_entry(tmp, &rdev->ddev->mode_config.encoder_list, in radeon_acpi_init()
Dr300.c1435 radeon_combios_asic_init(rdev->ddev); in r300_resume()
1521 radeon_get_clock_info(rdev->ddev); in r300_init()
Dsi.c6473 drm_handle_vblank(rdev->ddev, 0); in si_irq_process()
6503 drm_handle_vblank(rdev->ddev, 1); in si_irq_process()
6533 drm_handle_vblank(rdev->ddev, 2); in si_irq_process()
6563 drm_handle_vblank(rdev->ddev, 3); in si_irq_process()
6593 drm_handle_vblank(rdev->ddev, 4); in si_irq_process()
6623 drm_handle_vblank(rdev->ddev, 5); in si_irq_process()
7134 radeon_get_clock_info(rdev->ddev); in si_init()
7382 ret = drm_pcie_get_speed_cap_mask(rdev->ddev, &mask); in si_pcie_gen3_enable()
Dr600_dpm.c156 struct drm_device *dev = rdev->ddev; in r600_dpm_get_vblank_time()
182 struct drm_device *dev = rdev->ddev; in r600_dpm_get_vrefresh()
Dr600.c900 struct drm_device *dev = rdev->ddev; in r600_hpd_init()
966 struct drm_device *dev = rdev->ddev; in r600_hpd_fini()
3188 radeon_get_clock_info(rdev->ddev); in r600_init()
4046 drm_handle_vblank(rdev->ddev, 0); in r600_irq_process()
4076 drm_handle_vblank(rdev->ddev, 1); in r600_irq_process()
Dradeon_audio.c257 list_for_each_entry(encoder, &rdev->ddev->mode_config.encoder_list, head) { in radeon_audio_enable()
Dcik.c7946 drm_handle_vblank(rdev->ddev, 0); in cik_irq_process()
7976 drm_handle_vblank(rdev->ddev, 1); in cik_irq_process()
8006 drm_handle_vblank(rdev->ddev, 2); in cik_irq_process()
8036 drm_handle_vblank(rdev->ddev, 3); in cik_irq_process()
8066 drm_handle_vblank(rdev->ddev, 4); in cik_irq_process()
8096 drm_handle_vblank(rdev->ddev, 5); in cik_irq_process()
8839 radeon_get_clock_info(rdev->ddev); in cik_init()
9781 ret = drm_pcie_get_speed_cap_mask(rdev->ddev, &mask); in cik_pcie_gen3_enable()
Dradeon_i2c.c1025 struct drm_device *dev = rdev->ddev; in radeon_i2c_add()
Drs690.c837 radeon_get_clock_info(rdev->ddev); in rs690_init()
Drs780_dpm.c225 struct drm_device *dev = rdev->ddev; in rs780_voltage_scaling_init()
Drv515.c667 radeon_get_clock_info(rdev->ddev); in rv515_init()
Drv770.c1884 radeon_get_clock_info(rdev->ddev); in rv770_init()
Dni.c2223 radeon_get_clock_info(rdev->ddev); in cayman_init()
Dr600_cs.c889 crtc = drm_crtc_find(p->rdev->ddev, crtc_id); in r600_cs_common_vline_parse()
Datombios_encoders.c2233 struct drm_device *dev = rdev->ddev; in radeon_atom_encoder_init()
Dradeon_atombios.c191 rdev->i2c_bus[i] = radeon_i2c_create(rdev->ddev, &i2c, stmp); in radeon_atombios_i2c_init()
Dsi_dpm.c6822 ret = drm_pcie_get_speed_cap_mask(rdev->ddev, &mask); in si_dpm_init()
Dci_dpm.c5655 ret = drm_pcie_get_speed_cap_mask(rdev->ddev, &mask); in ci_dpm_init()
/linux-4.1.27/drivers/gpu/drm/shmobile/
Dshmob_drm_kms.c143 drm_mode_config_init(sdev->ddev); 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()
155 sdev->ddev->mode_config.funcs = &shmob_drm_mode_config_funcs; in shmob_drm_modeset_init()
157 drm_helper_disable_unused_functions(sdev->ddev); in shmob_drm_modeset_init()
Dshmob_drm_drv.c143 sdev->ddev = dev; in shmob_drm_load()
306 drm_kms_helper_poll_disable(sdev->ddev); in shmob_drm_pm_suspend()
316 drm_modeset_lock_all(sdev->ddev); in shmob_drm_pm_resume()
318 drm_modeset_unlock_all(sdev->ddev); in shmob_drm_pm_resume()
320 drm_kms_helper_poll_enable(sdev->ddev); in shmob_drm_pm_resume()
342 drm_put_dev(sdev->ddev); in shmob_drm_remove()
Dshmob_drm_plane.c119 dev_dbg(sdev->ddev->dev, "%s(%u): %s 0x%08x 0x%08x\n", __func__, \ in __shmob_drm_plane_setup()
132 dev_dbg(sdev->ddev->dev, "%s(%u): %s 0x%08x\n", __func__, splane->index, in __shmob_drm_plane_setup()
154 dev_dbg(sdev->ddev->dev, "%s(%u): %s 0x%08x\n", __func__, splane->index, in __shmob_drm_plane_setup()
258 ret = drm_plane_init(sdev->ddev, &splane->plane, 1, in shmob_drm_plane_create()
Dshmob_drm_drv.h40 struct drm_device *ddev; member
Dshmob_drm_crtc.c169 struct drm_device *dev = sdev->ddev; in shmob_drm_crtc_start()
520 ret = drm_crtc_init(sdev->ddev, crtc, &crtc_funcs); in shmob_drm_crtc_create()
615 ret = drm_encoder_init(sdev->ddev, encoder, &encoder_funcs, in shmob_drm_encoder_create()
724 ret = drm_connector_init(sdev->ddev, connector, &connector_funcs, in shmob_drm_connector_create()
746 sdev->ddev->mode_config.dpms_property, DRM_MODE_DPMS_OFF); in shmob_drm_connector_create()
/linux-4.1.27/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_dc.c513 struct drm_device *ddev; in atmel_hlcdc_dc_drm_probe() local
516 ddev = drm_dev_alloc(&atmel_hlcdc_dc_driver, &pdev->dev); in atmel_hlcdc_dc_drm_probe()
517 if (!ddev) in atmel_hlcdc_dc_drm_probe()
520 ret = drm_dev_set_unique(ddev, dev_name(ddev->dev)); in atmel_hlcdc_dc_drm_probe()
524 ret = atmel_hlcdc_dc_load(ddev); in atmel_hlcdc_dc_drm_probe()
528 ret = drm_dev_register(ddev, 0); in atmel_hlcdc_dc_drm_probe()
532 ret = atmel_hlcdc_dc_connector_plug_all(ddev); in atmel_hlcdc_dc_drm_probe()
539 drm_dev_unregister(ddev); in atmel_hlcdc_dc_drm_probe()
542 atmel_hlcdc_dc_unload(ddev); in atmel_hlcdc_dc_drm_probe()
545 drm_dev_unref(ddev); in atmel_hlcdc_dc_drm_probe()
[all …]
/linux-4.1.27/drivers/gpu/drm/qxl/
Dqxl_debugfs.c126 qdev->ddev->control->debugfs_root, in qxl_debugfs_add_files()
127 qdev->ddev->control); in qxl_debugfs_add_files()
129 qdev->ddev->primary->debugfs_root, in qxl_debugfs_add_files()
130 qdev->ddev->primary); in qxl_debugfs_add_files()
143 qdev->ddev->control); in qxl_debugfs_remove_files()
146 qdev->ddev->primary); in qxl_debugfs_remove_files()
Dqxl_display.c106 struct drm_device *dev = qdev->ddev; in qxl_update_offset_props()
126 struct drm_device *dev = qdev->ddev; in qxl_display_read_client_monitors_config()
135 if (!drm_helper_hpd_irq_event(qdev->ddev)) { in qxl_display_read_client_monitors_config()
138 drm_kms_helper_hotplug_event(qdev->ddev); in qxl_display_read_client_monitors_config()
834 struct drm_device *ddev = connector->dev; in qxl_conn_mode_valid() local
835 struct qxl_device *qdev = ddev->dev_private; in qxl_conn_mode_valid()
892 struct drm_device *ddev = connector->dev; in qxl_conn_detect() local
893 struct qxl_device *qdev = ddev->dev_private; in qxl_conn_detect()
955 drm_property_create_range(qdev->ddev, DRM_MODE_PROP_IMMUTABLE, in qxl_mode_create_hotplug_mode_update_property()
1093 drm_mode_config_init(qdev->ddev); in qxl_modeset_init()
[all …]
Dqxl_irq.c93 ret = drm_irq_install(qdev->ddev, qdev->ddev->pdev->irq); in qxl_irq_init()
Dqxl_kms.c119 struct drm_device *ddev, in qxl_device_init() argument
126 qdev->ddev = ddev; in qxl_device_init()
339 drm_kms_helper_poll_init(qdev->ddev); in qxl_driver_load()
Dqxl_object.c96 r = drm_gem_object_init(qdev->ddev, &bo->gem_base, size); in qxl_bo_create()
278 mutex_lock(&qdev->ddev->struct_mutex); in qxl_bo_force_delete()
287 mutex_unlock(&qdev->ddev->struct_mutex); in qxl_bo_force_delete()
Dqxl_fb.c547 qxl_framebuffer_init(qdev->ddev, &qfbdev->qfb, &mode_cmd, gobj); in qxlfb_create()
580 info->apertures->ranges[0].base = qdev->ddev->mode_config.fb_base; in qxlfb_create()
683 drm_fb_helper_prepare(qdev->ddev, &qfbdev->helper, in qxl_fbdev_init()
686 ret = drm_fb_helper_init(qdev->ddev, &qfbdev->helper, in qxl_fbdev_init()
714 qxl_fbdev_destroy(qdev->ddev, qdev->mode_info.qfbdev); in qxl_fbdev_fini()
Dqxl_ioctl.c67 return qxl_mode_dumb_mmap(file_priv, qdev->ddev, qxl_map->handle, in qxl_map_ioctl()
118 gobj = drm_gem_object_lookup(qdev->ddev, file_priv, handle); in qxlhw_handle_to_bo()
Dqxl_ttm.c401 qdev->ddev->anon_inode->i_mapping, in qxl_ttm_init()
Dqxl_drv.h244 struct drm_device *ddev; member
/linux-4.1.27/drivers/input/tablet/
Dgtco.c203 struct device *ddev = &device->intf->dev; in parse_hid_report_descriptor() local
230 dev_dbg(ddev, "======>>>>>>PARSE<<<<<<======\n"); in parse_hid_report_descriptor()
279 dev_dbg(ddev, "::::: Saving Report: %d input #%d Max: 0x%X(%d) Min:0x%X(%d) of %d bits\n", in parse_hid_report_descriptor()
294 dev_dbg(ddev, "GER: X Usage: 0x%x\n", usage); in parse_hid_report_descriptor()
302 dev_dbg(ddev, "GER: Y Usage: 0x%x\n", usage); in parse_hid_report_descriptor()
352 dev_dbg(ddev, "======>>>>>> Physical\n"); in parse_hid_report_descriptor()
355 dev_dbg(ddev, "======>>>>>>\n"); in parse_hid_report_descriptor()
370 dev_dbg(ddev, "<<<<<<======\n"); in parse_hid_report_descriptor()
386 dev_dbg(ddev, "%sMAINTAG:(%d) %c SIZE: %d Data: %s 0x%x\n", in parse_hid_report_descriptor()
391 dev_dbg(ddev, "%sMAINTAG:(%d) %c SIZE: %d Data: %s 0x%x\n", in parse_hid_report_descriptor()
[all …]
/linux-4.1.27/drivers/nfc/
Dport100.c885 static void port100_abort_cmd(struct nfc_digital_dev *ddev) in port100_abort_cmd() argument
887 struct port100 *dev = nfc_digital_get_drvdata(ddev); in port100_abort_cmd()
977 static int port100_switch_rf(struct nfc_digital_dev *ddev, bool on) in port100_switch_rf() argument
979 struct port100 *dev = nfc_digital_get_drvdata(ddev); in port100_switch_rf()
998 static int port100_in_set_rf(struct nfc_digital_dev *ddev, u8 rf) in port100_in_set_rf() argument
1000 struct port100 *dev = nfc_digital_get_drvdata(ddev); in port100_in_set_rf()
1028 static int port100_in_set_framing(struct nfc_digital_dev *ddev, int param) in port100_in_set_framing() argument
1030 struct port100 *dev = nfc_digital_get_drvdata(ddev); in port100_in_set_framing()
1070 static int port100_in_configure_hw(struct nfc_digital_dev *ddev, int type, in port100_in_configure_hw() argument
1074 return port100_in_set_rf(ddev, param); in port100_in_configure_hw()
[all …]
Dtrf7970a.c430 struct nfc_digital_dev *ddev; member
629 trf->cb(trf->ddev, trf->cb_arg, trf->rx_skb); in trf7970a_send_upstream()
1116 static int trf7970a_switch_rf(struct nfc_digital_dev *ddev, bool on) in trf7970a_switch_rf() argument
1118 struct trf7970a *trf = nfc_digital_get_drvdata(ddev); in trf7970a_switch_rf()
1320 static int trf7970a_in_configure_hw(struct nfc_digital_dev *ddev, int type, in trf7970a_in_configure_hw() argument
1323 struct trf7970a *trf = nfc_digital_get_drvdata(ddev); in trf7970a_in_configure_hw()
1441 static int trf7970a_send_cmd(struct nfc_digital_dev *ddev, in trf7970a_send_cmd() argument
1445 struct trf7970a *trf = nfc_digital_get_drvdata(ddev); in trf7970a_send_cmd()
1498 trf->ddev = ddev; in trf7970a_send_cmd()
1658 static int trf7970a_tg_configure_hw(struct nfc_digital_dev *ddev, int type, in trf7970a_tg_configure_hw() argument
[all …]
/linux-4.1.27/drivers/usb/serial/
Dusb-serial.c715 struct device *ddev = &interface->dev; in usb_serial_probe() local
741 dev_dbg(ddev, "none matched\n"); in usb_serial_probe()
747 dev_err(ddev, "module get failed, exiting\n"); in usb_serial_probe()
766 dev_dbg(ddev, "sub driver rejected device\n"); in usb_serial_probe()
781 dev_dbg(ddev, "found bulk in on endpoint %d\n", i); in usb_serial_probe()
790 dev_dbg(ddev, "found bulk out on endpoint %d\n", i); in usb_serial_probe()
799 dev_dbg(ddev, "found interrupt in on endpoint %d\n", i); in usb_serial_probe()
809 dev_dbg(ddev, "found interrupt out on endpoint %d\n", i); in usb_serial_probe()
836 dev_dbg(ddev, "found interrupt in for Prolific device on separate interface\n"); in usb_serial_probe()
850 dev_info(ddev, "PL-2303 hack: descriptors matched but endpoints did not\n"); in usb_serial_probe()
[all …]
Dftdi_sio.c2185 struct device *ddev = &port->dev; in ftdi_set_termios() local
2199 dev_dbg(ddev, "%s: forcing baud rate for this device\n", __func__); in ftdi_set_termios()
2206 dev_dbg(ddev, "%s: forcing rtscts for this device\n", __func__); in ftdi_set_termios()
2225 dev_warn(ddev, "requested CSIZE setting not supported\n"); in ftdi_set_termios()
2272 dev_dbg(ddev, "Setting CS5 quirk\n"); in ftdi_set_termios()
2276 dev_dbg(ddev, "Setting CS7\n"); in ftdi_set_termios()
2281 dev_dbg(ddev, "Setting CS8\n"); in ftdi_set_termios()
2294 dev_err(ddev, "%s FAILED to set databits/stopbits/parity\n", in ftdi_set_termios()
2307 dev_err(ddev, "%s error from disable flowcontrol urb\n", in ftdi_set_termios()
2316 dev_err(ddev, "%s urb failed to set baudrate\n", __func__); in ftdi_set_termios()
[all …]
Dio_edgeport.c2754 struct device *ddev = &serial->dev->dev; in edge_startup() local
2805 dev_warn(ddev, in edge_startup()
2811 dev_dbg(ddev, "%s - time 1 %ld\n", __func__, jiffies); in edge_startup()
2818 dev_dbg(ddev, "%s - time 2 %ld\n", __func__, jiffies); in edge_startup()
2823 dev_dbg(ddev, "%s - time 3 %ld\n", __func__, jiffies); in edge_startup()
2829 dev_dbg(ddev, " FirmwareMajorVersion %d.%d.%d\n", in edge_startup()
2854 dev_dbg(ddev, "found interrupt in\n"); in edge_startup()
2891 dev_dbg(ddev, "found bulk in\n"); in edge_startup()
2924 dev_dbg(ddev, "found bulk out\n"); in edge_startup()
2934 dev_err(ddev, "expected endpoints not found\n"); in edge_startup()
[all …]
/linux-4.1.27/drivers/scsi/libsas/
Dsas_init.c254 struct domain_device *ddev = sas_find_dev_by_rphy(rphy); in transport_sas_phy_reset() local
255 struct domain_device *ata_dev = sas_ex_to_ata(ddev, phy->number); in transport_sas_phy_reset()
262 return sas_smp_phy_control(ddev, phy->number, reset_type, NULL); in transport_sas_phy_reset()
289 struct domain_device *ddev = sas_find_dev_by_rphy(rphy); in sas_phy_enable() local
294 ret = sas_smp_phy_control(ddev, phy->number, cmd, NULL); in sas_phy_enable()
322 struct domain_device *ddev = sas_find_dev_by_rphy(rphy); in sas_phy_reset() local
323 ret = sas_smp_phy_control(ddev, phy->number, reset_type, NULL); in sas_phy_reset()
358 struct domain_device *ddev = sas_find_dev_by_rphy(rphy); in sas_set_phy_speed() local
359 ret = sas_smp_phy_control(ddev, phy->number, in sas_set_phy_speed()
Dsas_ata.c371 static int sas_ata_printk(const char *level, const struct domain_device *ddev, in sas_ata_printk() argument
374 struct ata_port *ap = ddev->sata_dev.ap; in sas_ata_printk()
375 struct device *dev = &ddev->rphy->dev; in sas_ata_printk()
804 struct domain_device *ddev = cmd_to_domain_dev(cmd); in sas_ata_eh() local
806 if (!dev_is_sata(ddev) || TO_SAS_TASK(cmd)) in sas_ata_eh()
808 if (eh_dev && eh_dev != ddev) in sas_ata_eh()
810 eh_dev = ddev; in sas_ata_eh()
Dsas_discover.c503 struct domain_device *ddev = port->port_dev; in sas_revalidate_domain() local
518 if (ddev && (ddev->dev_type == SAS_FANOUT_EXPANDER_DEVICE || in sas_revalidate_domain()
519 ddev->dev_type == SAS_EDGE_EXPANDER_DEVICE)) in sas_revalidate_domain()
520 res = sas_ex_revalidate_domain(ddev); in sas_revalidate_domain()
/linux-4.1.27/drivers/gpu/drm/tilcdc/
Dtilcdc_drv.c576 struct drm_device *ddev = dev_get_drvdata(dev); in tilcdc_pm_suspend() local
577 struct tilcdc_drm_private *priv = ddev->dev_private; in tilcdc_pm_suspend()
580 drm_kms_helper_poll_disable(ddev); in tilcdc_pm_suspend()
585 priv->saved_register[n++] = tilcdc_read(ddev, registers[i].reg); in tilcdc_pm_suspend()
592 struct drm_device *ddev = dev_get_drvdata(dev); in tilcdc_pm_resume() local
593 struct tilcdc_drm_private *priv = ddev->dev_private; in tilcdc_pm_resume()
599 tilcdc_write(ddev, registers[i].reg, priv->saved_register[n++]); in tilcdc_pm_resume()
601 drm_kms_helper_poll_enable(ddev); in tilcdc_pm_resume()
/linux-4.1.27/drivers/gpu/drm/rcar-du/
Drcar_du_vgacon.c73 ret = drm_connector_init(rcdu->ddev, connector, &connector_funcs, in rcar_du_vga_connector_init()
85 rcdu->ddev->mode_config.dpms_property, DRM_MODE_DPMS_OFF); in rcar_du_vga_connector_init()
Drcar_du_drv.c172 rcdu->ddev = dev; in rcar_du_load()
296 drm_kms_helper_poll_disable(rcdu->ddev); in rcar_du_pm_suspend()
308 drm_kms_helper_poll_enable(rcdu->ddev); in rcar_du_pm_resume()
330 drm_put_dev(rcdu->ddev); in rcar_du_remove()
Drcar_du_lvdscon.c114 ret = drm_connector_init(rcdu->ddev, connector, &connector_funcs, in rcar_du_lvds_connector_init()
126 rcdu->ddev->mode_config.dpms_property, DRM_MODE_DPMS_OFF); in rcar_du_lvds_connector_init()
Drcar_du_hdmicon.c105 ret = drm_connector_init(rcdu->ddev, connector, &connector_funcs, in rcar_du_hdmi_connector_init()
117 rcdu->ddev->mode_config.dpms_property, DRM_MODE_DPMS_OFF); in rcar_du_hdmi_connector_init()
Drcar_du_hdmienc.c149 ret = driver->encoder_init(i2c_slave, rcdu->ddev, &renc->slave); in rcar_du_hdmienc_init()
153 ret = drm_encoder_init(rcdu->ddev, encoder, &encoder_funcs, in rcar_du_hdmienc_init()
Drcar_du_plane.c403 drm_property_create_range(rcdu->ddev, 0, "alpha", 0, 255); in rcar_du_planes_init()
412 drm_property_create_range(rcdu->ddev, 0, "colorkey", in rcar_du_planes_init()
418 drm_property_create_range(rcdu->ddev, 0, "zpos", 1, 7); in rcar_du_planes_init()
438 ret = drm_universal_plane_init(rcdu->ddev, &plane->plane, crtcs, in rcar_du_planes_init()
Drcar_du_drv.h78 struct drm_device *ddev; member
Drcar_du_encoder.c175 ret = drm_encoder_init(rcdu->ddev, encoder, &encoder_funcs, in rcar_du_encoder_init()
Drcar_du_kms.c657 struct drm_device *dev = rcdu->ddev; in rcar_du_modeset_init()
Drcar_du_crtc.c594 ret = drm_crtc_init_with_planes(rcdu->ddev, crtc, in rcar_du_crtc_create()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Den_tx.c303 dma_unmap_single(priv->ddev, in mlx4_en_free_tx_desc()
308 dma_unmap_page(priv->ddev, in mlx4_en_free_tx_desc()
314 dma_unmap_page(priv->ddev, in mlx4_en_free_tx_desc()
327 dma_unmap_single(priv->ddev, in mlx4_en_free_tx_desc()
332 dma_unmap_page(priv->ddev, in mlx4_en_free_tx_desc()
341 dma_unmap_page(priv->ddev, in mlx4_en_free_tx_desc()
709 struct device *ddev = priv->ddev; in mlx4_en_xmit() local
807 dma = skb_frag_dma_map(ddev, frag, in mlx4_en_xmit()
810 if (dma_mapping_error(ddev, dma)) in mlx4_en_xmit()
824 dma = dma_map_single(ddev, skb->data + in mlx4_en_xmit()
[all …]
Den_rx.c72 dma = dma_map_page(priv->ddev, page, 0, PAGE_SIZE << order, in mlx4_alloc_pages()
74 if (dma_mapping_error(priv->ddev, dma)) { in mlx4_alloc_pages()
127 dma_unmap_page(priv->ddev, page_alloc[i].dma, in mlx4_en_alloc_frags()
146 dma_unmap_page(priv->ddev, frags[i].dma, frags[i].page_size, in mlx4_en_free_frag()
177 dma_unmap_page(priv->ddev, page_alloc->dma, in mlx4_en_init_allocator()
200 dma_unmap_page(priv->ddev, page_alloc->dma, in mlx4_en_destroy_allocator()
564 dma_sync_single_for_cpu(priv->ddev, dma, frag_info->frag_size, in mlx4_en_complete_rx_desc()
615 dma_sync_single_for_cpu(priv->ddev, dma, length, in mlx4_en_rx_skb()
815 dma_sync_single_for_cpu(priv->ddev, dma, sizeof(*ethh), in mlx4_en_process_rx_cq()
Dmlx4_en.h582 struct device *ddev; member
Den_netdev.c2795 priv->ddev = &mdev->pdev->dev; in mlx4_en_init_netdev()
/linux-4.1.27/drivers/dma/hsu/
Dhsu.h116 static inline struct hsu_dma *to_hsu_dma(struct dma_device *ddev) in to_hsu_dma() argument
118 return container_of(ddev, struct hsu_dma, dma); in to_hsu_dma()
/linux-4.1.27/block/
Dgenhd.c509 struct device *ddev = disk_to_dev(disk); in register_disk() local
515 ddev->parent = disk->driverfs_dev; in register_disk()
517 dev_set_name(ddev, "%s", disk->disk_name); in register_disk()
520 dev_set_uevent_suppress(ddev, 1); in register_disk()
522 if (device_add(ddev)) in register_disk()
525 err = sysfs_create_link(block_depr, &ddev->kobj, in register_disk()
526 kobject_name(&ddev->kobj)); in register_disk()
528 device_del(ddev); in register_disk()
538 pm_runtime_set_memalloc_noio(ddev, true); in register_disk()
540 disk->part0.holder_dir = kobject_create_and_add("holders", &ddev->kobj); in register_disk()
[all …]
Dpartition-generic.c275 struct device *ddev = disk_to_dev(disk); in add_partition() local
318 dname = dev_name(ddev); in add_partition()
327 pdev->parent = ddev; in add_partition()
356 if (!dev_get_uevent_suppress(ddev)) in add_partition()
/linux-4.1.27/drivers/infiniband/hw/mlx5/
Dmr.c756 struct device *ddev = dev->ib_dev.dma_device; in reg_umr() local
799 dma = dma_map_single(ddev, pas, size, DMA_TO_DEVICE); in reg_umr()
800 if (dma_mapping_error(ddev, dma)) { in reg_umr()
832 dma_unmap_single(ddev, dma, size, DMA_TO_DEVICE); in reg_umr()
851 struct device *ddev = dev->ib_dev.dma_device; in mlx5_ib_update_mtt() local
896 dma = dma_map_single(ddev, pas, size, DMA_TO_DEVICE); in mlx5_ib_update_mtt()
897 if (dma_mapping_error(ddev, dma)) { in mlx5_ib_update_mtt()
906 dma_sync_single_for_cpu(ddev, dma, size, DMA_TO_DEVICE); in mlx5_ib_update_mtt()
921 dma_sync_single_for_device(ddev, dma, size, DMA_TO_DEVICE); in mlx5_ib_update_mtt()
956 dma_unmap_single(ddev, dma, size, DMA_TO_DEVICE); in mlx5_ib_update_mtt()
/linux-4.1.27/drivers/dma/dw/
Dregs.h306 static inline struct dw_dma *to_dw_dma(struct dma_device *ddev) in to_dw_dma() argument
308 return container_of(ddev, struct dw_dma, dma); in to_dw_dma()
/linux-4.1.27/drivers/net/wireless/hostap/
Dhostap_info.c156 netif_carrier_on(local->ddev); in prism2_info_linkstatus()
440 netif_carrier_on(local->ddev); in handle_info_queue_linkstatus()
444 netif_carrier_off(local->ddev); in handle_info_queue_linkstatus()
Dhostap_main.c116 if (dev == iface->local->ddev) in hostap_remove_interface()
117 iface->local->ddev = NULL; in hostap_remove_interface()
190 local->ddev->name, "wds%d"); in prism2_wds_add()
612 if (dev == local->ddev) { in prism2_close()
898 rtnl_locked, local->ddev->name, in hostap_enable_hostapd()
930 rtnl_locked, local->ddev->name, in hostap_enable_hostapd_sta()
Dhostap_proc.c457 local->proc = proc_mkdir(local->ddev->name, hostap_proc); in hostap_init_proc()
460 local->ddev->name); in hostap_init_proc()
Dhostap_80211_tx.c86 if (local->ddev != dev) { in hostap_data_start_xmit()
Dhostap_wlan.h651 struct net_device *ddev; /* main data device */ member
Dhostap_hw.c3272 local->ddev = hostap_add_interface(local, HOSTAP_INTERFACE_MAIN, 0, in hostap_hw_ready()
3275 if (local->ddev) { in hostap_hw_ready()
3279 netif_carrier_off(local->ddev); in hostap_hw_ready()
Dhostap_ioctl.c869 struct net_device *dev = local->ddev; in hostap_monitor_set_type()
1116 struct net_device *dev = local->ddev; in hostap_monitor_mode_disable()
1202 netif_carrier_on(local->ddev); in prism2_ioctl_siwmode()
Dhostap_80211_rx.c745 dev = local->ddev; in hostap_80211_rx()
/linux-4.1.27/drivers/gpu/drm/cirrus/
Dcirrus_main.c120 struct drm_device *ddev, in cirrus_device_init() argument
125 cdev->dev = ddev; in cirrus_device_init()
Dcirrus_drv.h192 struct drm_device *ddev,
/linux-4.1.27/include/linux/
Drio.h447 static inline struct rio_mport *dma_to_mport(struct dma_device *ddev) in dma_to_mport() argument
449 return container_of(ddev, struct rio_mport, dma); in dma_to_mport()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/
Dcmd.c1329 struct device *ddev = &dev->pdev->dev; in alloc_cmd_page() local
1331 cmd->cmd_alloc_buf = dma_zalloc_coherent(ddev, MLX5_ADAPTER_PAGE_SIZE, in alloc_cmd_page()
1344 dma_free_coherent(ddev, MLX5_ADAPTER_PAGE_SIZE, cmd->cmd_alloc_buf, in alloc_cmd_page()
1346 cmd->cmd_alloc_buf = dma_zalloc_coherent(ddev, in alloc_cmd_page()
1360 struct device *ddev = &dev->pdev->dev; in free_cmd_page() local
1362 dma_free_coherent(ddev, cmd->alloc_size, cmd->cmd_alloc_buf, in free_cmd_page()
/linux-4.1.27/drivers/gpu/drm/udl/
Dudl_drv.h53 struct drm_device *ddev; member
Dudl_main.c295 udl->ddev = dev; in udl_driver_load()
Dudl_fb.c329 if (drm_device_is_unplugged(udl->ddev)) in udl_fb_open()
/linux-4.1.27/drivers/gpu/drm/msm/
Dmsm_drv.c935 struct drm_device *ddev = dev_get_drvdata(dev); in msm_pm_suspend() local
937 drm_kms_helper_poll_disable(ddev); in msm_pm_suspend()
944 struct drm_device *ddev = dev_get_drvdata(dev); in msm_pm_resume() local
946 drm_kms_helper_poll_enable(ddev); in msm_pm_resume()
/linux-4.1.27/drivers/macintosh/
Dwindfarm_pm91.c642 static int wf_smu_probe(struct platform_device *ddev) in wf_smu_probe() argument
649 static int wf_smu_remove(struct platform_device *ddev) in wf_smu_remove() argument
Dwindfarm_pm81.c720 static int wf_smu_probe(struct platform_device *ddev) in wf_smu_probe() argument
727 static int wf_smu_remove(struct platform_device *ddev) in wf_smu_remove() argument
Dwindfarm_pm121.c997 static int pm121_probe(struct platform_device *ddev) in pm121_probe() argument
1004 static int pm121_remove(struct platform_device *ddev) in pm121_remove() argument
/linux-4.1.27/fs/xfs/
Dxfs_super.c720 struct block_device *ddev = mp->m_super->s_bdev; in xfs_open_devices() local
738 if (rtdev == ddev || rtdev == logdev) { in xfs_open_devices()
750 mp->m_ddev_targp = xfs_alloc_buftarg(mp, ddev); in xfs_open_devices()
760 if (logdev && logdev != ddev) { in xfs_open_devices()
778 if (logdev && logdev != ddev) in xfs_open_devices()
/linux-4.1.27/drivers/rapidio/devices/
Dtsi721_dma.c55 static inline struct tsi721_device *to_tsi721(struct dma_device *ddev) in to_tsi721() argument
57 return container_of(ddev, struct rio_mport, dma)->priv; in to_tsi721()
/linux-4.1.27/drivers/s390/net/
Dqeth_l2_main.c1956 struct ccw_device *ddev; in qeth_bridgeport_an_set() local
1963 ddev = CARD_DDEV(card); in qeth_bridgeport_an_set()
1964 ccw_device_get_schid(ddev, &schid); in qeth_bridgeport_an_set()
Dqeth_core_main.c4831 struct ccw_device *ddev; in qeth_determine_capabilities() local
4835 ddev = CARD_DDEV(card); in qeth_determine_capabilities()
4836 if (!ddev->online) { in qeth_determine_capabilities()
4838 rc = ccw_device_set_online(ddev); in qeth_determine_capabilities()
4857 rc = qdio_get_ssqd_desc(ddev, &card->ssqd); in qeth_determine_capabilities()
4877 ccw_device_set_offline(ddev); in qeth_determine_capabilities()