Home
last modified time | relevance | path

Searched refs:pcdev (Results 1 – 13 of 13) sorted by relevance

/linux-4.1.27/drivers/media/platform/soc_camera/
Dmx2_camera.c382 static void mx27_update_emma_buf(struct mx2_camera_dev *pcdev, in mx27_update_emma_buf() argument
385 struct mx2_fmt_cfg *prp = pcdev->emma_prp; in mx27_update_emma_buf()
388 writel(phys, pcdev->base_emma + in mx27_update_emma_buf()
391 writel(phys, pcdev->base_emma + in mx27_update_emma_buf()
394 u32 imgsize = pcdev->soc_host.icd->user_height * in mx27_update_emma_buf()
395 pcdev->soc_host.icd->user_width; in mx27_update_emma_buf()
397 writel(phys + imgsize, pcdev->base_emma + in mx27_update_emma_buf()
399 writel(phys + ((5 * imgsize) / 4), pcdev->base_emma + in mx27_update_emma_buf()
405 static void mx2_camera_deactivate(struct mx2_camera_dev *pcdev) in mx2_camera_deactivate() argument
407 clk_disable_unprepare(pcdev->clk_csi_ahb); in mx2_camera_deactivate()
[all …]
Dpxa_camera.c329 static int pxa_init_dma_channel(struct pxa_camera_dev *pcdev, in pxa_init_dma_channel() argument
336 struct device *dev = pcdev->soc_host.v4l2_dev.dev; in pxa_init_dma_channel()
369 pxa_dma->sg_cpu[i].dsadr = pcdev->res->start + cibr; in pxa_init_dma_channel()
410 static void pxa_videobuf_set_actdma(struct pxa_camera_dev *pcdev, in pxa_videobuf_set_actdma() argument
414 if (pcdev->channels == 3) in pxa_videobuf_set_actdma()
429 struct pxa_camera_dev *pcdev = ici->priv; in pxa_videobuf_prepare() local
430 struct device *dev = pcdev->soc_host.v4l2_dev.dev; in pxa_videobuf_prepare()
484 if (pcdev->channels == 3) { in pxa_videobuf_prepare()
494 ret = pxa_init_dma_channel(pcdev, buf, dma, 0, CIBR0, size_y, in pxa_videobuf_prepare()
503 ret = pxa_init_dma_channel(pcdev, buf, dma, 1, CIBR1, in pxa_videobuf_prepare()
[all …]
Domap1_camera.c183 static void cam_write(struct omap1_cam_dev *pcdev, u16 reg, u32 val) in cam_write() argument
185 pcdev->reg_cache[reg / sizeof(u32)] = val; in cam_write()
186 __raw_writel(val, pcdev->base + reg); in cam_write()
189 static u32 cam_read(struct omap1_cam_dev *pcdev, u16 reg, bool from_cache) in cam_read() argument
191 return !from_cache ? __raw_readl(pcdev->base + reg) : in cam_read()
192 pcdev->reg_cache[reg / sizeof(u32)]; in cam_read()
195 #define CAM_READ(pcdev, reg) \ argument
196 cam_read(pcdev, REG_##reg, false)
197 #define CAM_WRITE(pcdev, reg, val) \ argument
198 cam_write(pcdev, REG_##reg, val)
[all …]
Dsh_mobile_ceu_camera.c171 static int sh_mobile_ceu_soft_reset(struct sh_mobile_ceu_dev *pcdev) in sh_mobile_ceu_soft_reset() argument
175 ceu_write(pcdev, CAPSR, 1 << 16); /* reset */ in sh_mobile_ceu_soft_reset()
179 if (!(ceu_read(pcdev, CSTSR) & 1)) { in sh_mobile_ceu_soft_reset()
188 if (!(ceu_read(pcdev, CAPSR) & (1 << 16))) { in sh_mobile_ceu_soft_reset()
196 dev_warn(pcdev->ici.v4l2_dev.dev, "soft reset time out\n"); in sh_mobile_ceu_soft_reset()
219 struct sh_mobile_ceu_dev *pcdev = ici->priv; in sh_mobile_ceu_videobuf_setup() local
248 alloc_ctxs[0] = pcdev->alloc_ctx; in sh_mobile_ceu_videobuf_setup()
251 pcdev->sequence = 0; in sh_mobile_ceu_videobuf_setup()
257 if (pcdev->video_limit && !*num_planes) { in sh_mobile_ceu_videobuf_setup()
260 if (size + pcdev->buf_total > pcdev->video_limit) in sh_mobile_ceu_videobuf_setup()
[all …]
/linux-4.1.27/drivers/media/platform/
Dmx2_emmaprp.c245 struct emmaprp_dev *pcdev = ctx->dev; in emmaprp_job_abort() local
249 dprintk(pcdev, "Aborting task\n"); in emmaprp_job_abort()
251 v4l2_m2m_job_finish(pcdev->m2m_dev, ctx->m2m_ctx); in emmaprp_job_abort()
257 struct emmaprp_dev *pcdev = ctx->dev; in emmaprp_lock() local
258 mutex_lock(&pcdev->dev_mutex); in emmaprp_lock()
264 struct emmaprp_dev *pcdev = ctx->dev; in emmaprp_unlock() local
265 mutex_unlock(&pcdev->dev_mutex); in emmaprp_unlock()
268 static inline void emmaprp_dump_regs(struct emmaprp_dev *pcdev) in emmaprp_dump_regs() argument
270 dprintk(pcdev, in emmaprp_dump_regs()
279 readl(pcdev->base_emma + PRP_SOURCE_Y_PTR), in emmaprp_dump_regs()
[all …]
Dm2m-deinterlace.c159 struct deinterlace_dev *pcdev = ctx->dev; in deinterlace_job_ready() local
164 dprintk(pcdev, "Task ready\n"); in deinterlace_job_ready()
168 dprintk(pcdev, "Task not ready to run\n"); in deinterlace_job_ready()
176 struct deinterlace_dev *pcdev = ctx->dev; in deinterlace_job_abort() local
180 dprintk(pcdev, "Aborting task\n"); in deinterlace_job_abort()
182 v4l2_m2m_job_finish(pcdev->m2m_dev, ctx->m2m_ctx); in deinterlace_job_abort()
188 struct deinterlace_dev *pcdev = ctx->dev; in deinterlace_lock() local
189 mutex_lock(&pcdev->dev_mutex); in deinterlace_lock()
195 struct deinterlace_dev *pcdev = ctx->dev; in deinterlace_unlock() local
196 mutex_unlock(&pcdev->dev_mutex); in deinterlace_unlock()
[all …]
/linux-4.1.27/drivers/amba/
Dbus.c44 struct amba_device *pcdev = to_amba_device(dev); in amba_match() local
48 if (pcdev->driver_override) in amba_match()
49 return !strcmp(pcdev->driver_override, drv->name); in amba_match()
51 return amba_lookup(pcdrv->id_table, pcdev) != NULL; in amba_match()
56 struct amba_device *pcdev = to_amba_device(dev); in amba_uevent() local
59 retval = add_uevent_var(env, "AMBA_ID=%08x", pcdev->periphid); in amba_uevent()
63 retval = add_uevent_var(env, "MODALIAS=amba:d%08X", pcdev->periphid); in amba_uevent()
142 struct amba_device *pcdev = to_amba_device(dev); in amba_pm_runtime_suspend() local
147 clk_disable(pcdev->pclk); in amba_pm_runtime_suspend()
149 clk_disable_unprepare(pcdev->pclk); in amba_pm_runtime_suspend()
[all …]
/linux-4.1.27/drivers/pinctrl/meson/
Dpinctrl-meson.c140 static int meson_get_groups_count(struct pinctrl_dev *pcdev) in meson_get_groups_count() argument
142 struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); in meson_get_groups_count()
147 static const char *meson_get_group_name(struct pinctrl_dev *pcdev, in meson_get_group_name() argument
150 struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); in meson_get_group_name()
155 static int meson_get_group_pins(struct pinctrl_dev *pcdev, unsigned selector, in meson_get_group_pins() argument
158 struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); in meson_get_group_pins()
166 static void meson_pin_dbg_show(struct pinctrl_dev *pcdev, struct seq_file *s, in meson_pin_dbg_show() argument
169 seq_printf(s, " %s", dev_name(pcdev->dev)); in meson_pin_dbg_show()
216 static int meson_pmx_set_mux(struct pinctrl_dev *pcdev, unsigned func_num, in meson_pmx_set_mux() argument
219 struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); in meson_pmx_set_mux()
[all …]
Dpinctrl-meson.h152 struct pinctrl_dev *pcdev; member
/linux-4.1.27/drivers/dma/
Dpl330.c2736 struct amba_device *pcdev = to_amba_device(dev); in pl330_suspend() local
2742 amba_pclk_disable(pcdev); in pl330_suspend()
2744 amba_pclk_unprepare(pcdev); in pl330_suspend()
2751 struct amba_device *pcdev = to_amba_device(dev); in pl330_resume() local
2754 ret = amba_pclk_prepare(pcdev); in pl330_resume()
2759 ret = amba_pclk_enable(pcdev); in pl330_resume()
/linux-4.1.27/Documentation/video4linux/
Dpxa_camera.txt164 pcdev->capture list. If that's the case, the capture will be restarted,
Dsoc-camera.txt55 ici->priv = pcdev;
/linux-4.1.27/drivers/media/platform/coda/
Dcoda-common.c1039 struct coda_dev *pcdev = ctx->dev; in coda_lock() local
1041 mutex_lock(&pcdev->dev_mutex); in coda_lock()
1047 struct coda_dev *pcdev = ctx->dev; in coda_unlock() local
1049 mutex_unlock(&pcdev->dev_mutex); in coda_unlock()