Home
last modified time | relevance | path

Searched refs:camif (Results 1 - 14 of 14) sorted by relevance

/kernel/linux/linux-5.10/drivers/media/platform/s3c-camif/
H A Dcamif-core.c34 #include "camif-core.h"
38 [CLK_GATE] = "camif",
95 * s3c_camif_find_format() - lookup camif color format by fourcc or an index
145 struct v4l2_rect *camif_crop = &vp->camif->camif_crop; in s3c_camif_get_scaler_config()
187 static int camif_register_sensor(struct camif_dev *camif) in camif_register_sensor() argument
189 struct s3c_camif_sensor_info *sensor = &camif->pdata.sensor; in camif_register_sensor()
190 struct v4l2_device *v4l2_dev = &camif->v4l2_dev; in camif_register_sensor()
196 camif->sensor.sd = NULL; in camif_register_sensor()
216 camif->sensor.sd = sd; in camif_register_sensor()
220 /* Get initial pixel format and set it at the camif sin in camif_register_sensor()
237 camif_unregister_sensor(struct camif_dev *camif) camif_unregister_sensor() argument
253 camif_create_media_links(struct camif_dev *camif) camif_create_media_links() argument
274 camif_register_video_nodes(struct camif_dev *camif) camif_register_video_nodes() argument
283 camif_unregister_video_nodes(struct camif_dev *camif) camif_unregister_video_nodes() argument
289 camif_unregister_media_entities(struct camif_dev *camif) camif_unregister_media_entities() argument
299 camif_media_dev_init(struct camif_dev *camif) camif_media_dev_init() argument
326 camif_clk_put(struct camif_dev *camif) camif_clk_put() argument
339 camif_clk_get(struct camif_dev *camif) camif_clk_get() argument
372 camif_request_irqs(struct platform_device *pdev, struct camif_dev *camif) camif_request_irqs() argument
402 struct camif_dev *camif; s3c_camif_probe() local
514 struct camif_dev *camif = platform_get_drvdata(pdev); s3c_camif_remove() local
531 struct camif_dev *camif = dev_get_drvdata(dev); s3c_camif_runtime_resume() local
541 struct camif_dev *camif = dev_get_drvdata(dev); s3c_camif_runtime_suspend() local
[all...]
H A Dcamif-regs.c11 #include "camif-regs.h"
16 void camif_hw_reset(struct camif_dev *camif) in camif_hw_reset() argument
20 cfg = camif_read(camif, S3C_CAMIF_REG_CISRCFMT); in camif_hw_reset()
22 camif_write(camif, S3C_CAMIF_REG_CISRCFMT, cfg); in camif_hw_reset()
25 cfg = camif_read(camif, S3C_CAMIF_REG_CIGCTRL); in camif_hw_reset()
27 if (camif->variant->ip_revision == S3C6410_CAMIF_IP_REV) in camif_hw_reset()
29 camif_write(camif, S3C_CAMIF_REG_CIGCTRL, cfg); in camif_hw_reset()
32 cfg = camif_read(camif, S3C_CAMIF_REG_CIGCTRL); in camif_hw_reset()
34 camif_write(camif, S3C_CAMIF_REG_CIGCTRL, cfg); in camif_hw_reset()
40 u32 cfg = camif_read(vp->camif, S3C_CAMIF_REG_CIGCTR in camif_hw_clear_pending_irq()
49 camif_hw_set_test_pattern(struct camif_dev *camif, unsigned int pattern) camif_hw_set_test_pattern() argument
57 camif_hw_set_effect(struct camif_dev *camif, unsigned int effect, unsigned int cr, unsigned int cb) camif_hw_set_effect() argument
103 camif_hw_set_source_format(struct camif_dev *camif) camif_hw_set_source_format() argument
128 camif_hw_set_camera_crop(struct camif_dev *camif) camif_hw_set_camera_crop() argument
153 struct camif_dev *camif = vp->camif; camif_hw_clear_fifo_overflow() local
167 camif_hw_set_camera_bus(struct camif_dev *camif) camif_hw_set_camera_bus() argument
203 struct camif_dev *camif = vp->camif; camif_hw_set_output_addr() local
257 struct camif_dev *camif = vp->camif; camif_hw_set_output_dma() local
298 struct camif_dev *camif = vp->camif; camif_hw_set_target_format() local
363 struct camif_dev *camif = vp->camif; camif_hw_set_prescaler() local
381 struct camif_dev *camif = vp->camif; camif_s3c244x_hw_set_scaler() local
428 struct camif_dev *camif = vp->camif; camif_s3c64xx_hw_set_scaler() local
513 struct camif_dev *camif = vp->camif; camif_hw_enable_capture() local
536 struct camif_dev *camif = vp->camif; camif_hw_disable_capture() local
554 camif_hw_dump_regs(struct camif_dev *camif, const char *label) camif_hw_dump_regs() argument
[all...]
H A Dcamif-capture.c37 #include "camif-core.h"
38 #include "camif-regs.h"
43 /* Locking: called with vp->camif->slock spinlock held */
64 /* Locking: called with camif->slock spinlock held */
65 static int s3c_camif_hw_init(struct camif_dev *camif, struct camif_vp *vp) in s3c_camif_hw_init() argument
67 const struct s3c_camif_variant *variant = camif->variant; in s3c_camif_hw_init()
69 if (camif->sensor.sd == NULL || vp->out_fmt == NULL) in s3c_camif_hw_init()
74 camif_hw_set_camera_bus(camif); in s3c_camif_hw_init()
75 camif_hw_set_source_format(camif); in s3c_camif_hw_init()
76 camif_hw_set_camera_crop(camif); in s3c_camif_hw_init()
95 s3c_camif_hw_vp_init(struct camif_dev *camif, struct camif_vp *vp) s3c_camif_hw_vp_init() argument
110 sensor_set_power(struct camif_dev *camif, int on) sensor_set_power() argument
128 sensor_set_streaming(struct camif_dev *camif, int on) sensor_set_streaming() argument
151 struct camif_dev *camif = vp->camif; camif_reinitialize() local
184 struct camif_dev *camif = vp->camif; s3c_vp_active() local
195 camif_is_streaming(struct camif_dev *camif) camif_is_streaming() argument
209 struct camif_dev *camif = vp->camif; camif_stop_capture() local
291 struct camif_dev *camif = vp->camif; s3c_camif_irq_handler() local
377 struct camif_dev *camif = vp->camif; start_streaming() local
483 struct camif_dev *camif = vp->camif; buffer_queue() local
537 struct camif_dev *camif = vp->camif; s3c_camif_open() local
569 struct camif_dev *camif = vp->camif; s3c_camif_close() local
596 struct camif_dev *camif = vp->camif; s3c_camif_poll() local
712 struct camif_dev *camif = vp->camif; __camif_video_try_format() local
807 camif_pipeline_validate(struct camif_dev *camif) camif_pipeline_validate() argument
836 struct camif_dev *camif = vp->camif; s3c_camif_streamon() local
868 struct camif_dev *camif = vp->camif; s3c_camif_streamoff() local
1002 __camif_try_compose(struct camif_dev *camif, struct camif_vp *vp, struct v4l2_rect *r) __camif_try_compose() argument
1018 struct camif_dev *camif = vp->camif; s3c_camif_s_selection() local
1071 struct camif_dev *camif = vp->camif; s3c_camif_video_s_ctrl() local
1099 s3c_camif_register_video_node(struct camif_dev *camif, int idx) s3c_camif_register_video_node() argument
1176 s3c_camif_unregister_video_node(struct camif_dev *camif, int idx) s3c_camif_unregister_video_node() argument
1214 struct camif_dev *camif = v4l2_get_subdevdata(sd); s3c_camif_subdev_get_fmt() local
1245 __camif_subdev_try_format(struct camif_dev *camif, struct v4l2_mbus_framefmt *mf, int pad) __camif_subdev_try_format() argument
1282 struct camif_dev *camif = v4l2_get_subdevdata(sd); s3c_camif_subdev_set_fmt() local
1349 struct camif_dev *camif = v4l2_get_subdevdata(sd); s3c_camif_subdev_get_selection() local
1383 __camif_try_crop(struct camif_dev *camif, struct v4l2_rect *r) __camif_try_crop() argument
1436 struct camif_dev *camif = v4l2_get_subdevdata(sd); s3c_camif_subdev_set_selection() local
1489 struct camif_dev *camif = container_of(ctrl->handler, struct camif_dev, s3c_camif_subdev_s_ctrl() local
1539 s3c_camif_create_subdev(struct camif_dev *camif) s3c_camif_create_subdev() argument
1591 s3c_camif_unregister_subdev(struct camif_dev *camif) s3c_camif_unregister_subdev() argument
1605 s3c_camif_set_defaults(struct camif_dev *camif) s3c_camif_set_defaults() argument
[all...]
H A DMakefile4 s3c-camif-objs := camif-core.o camif-capture.o camif-regs.o
6 obj-$(CONFIG_VIDEO_S3C_CAMIF) += s3c-camif.o
H A Dcamif-regs.h14 #include "camif-core.h"
240 void camif_hw_reset(struct camif_dev *camif);
248 void camif_hw_set_camera_bus(struct camif_dev *camif);
249 void camif_hw_set_source_format(struct camif_dev *camif);
250 void camif_hw_set_camera_crop(struct camif_dev *camif);
255 void camif_hw_set_test_pattern(struct camif_dev *camif, unsigned int pattern);
256 void camif_hw_set_effect(struct camif_dev *camif, unsigned int effect,
260 void camif_hw_dump_regs(struct camif_dev *camif, const char *label);
264 return readl(vp->camif->io_base + S3C_CAMIF_REG_CISTATUS(vp->id, in camif_hw_get_status()
H A Dcamif-core.h28 #define S3C_CAMIF_DRIVER_NAME "s3c-camif"
184 * @camif: pointer to the camif structure
209 struct camif_dev *camif; member
246 * @pads: the camif subdev's media pads
312 * struct camif_buffer - the camif video buffer structure
327 int s3c_camif_register_video_node(struct camif_dev *camif, int idx);
328 void s3c_camif_unregister_video_node(struct camif_dev *camif, int idx);
330 int s3c_camif_create_subdev(struct camif_dev *camif);
331 void s3c_camif_unregister_subdev(struct camif_dev *camif);
[all...]
/kernel/linux/linux-6.6/drivers/media/platform/samsung/s3c-camif/
H A Dcamif-core.c33 #include "camif-core.h"
37 [CLK_GATE] = "camif",
94 * s3c_camif_find_format() - lookup camif color format by fourcc or an index
146 struct v4l2_rect *camif_crop = &vp->camif->camif_crop; in s3c_camif_get_scaler_config()
188 static int camif_register_sensor(struct camif_dev *camif) in camif_register_sensor() argument
190 struct s3c_camif_sensor_info *sensor = &camif->pdata.sensor; in camif_register_sensor()
191 struct v4l2_device *v4l2_dev = &camif->v4l2_dev; in camif_register_sensor()
199 camif->sensor.sd = NULL; in camif_register_sensor()
219 camif->sensor.sd = sd; in camif_register_sensor()
223 /* Get initial pixel format and set it at the camif sin in camif_register_sensor()
239 camif_unregister_sensor(struct camif_dev *camif) camif_unregister_sensor() argument
255 camif_create_media_links(struct camif_dev *camif) camif_create_media_links() argument
276 camif_register_video_nodes(struct camif_dev *camif) camif_register_video_nodes() argument
285 camif_unregister_video_nodes(struct camif_dev *camif) camif_unregister_video_nodes() argument
291 camif_unregister_media_entities(struct camif_dev *camif) camif_unregister_media_entities() argument
300 camif_media_dev_init(struct camif_dev *camif) camif_media_dev_init() argument
327 camif_clk_put(struct camif_dev *camif) camif_clk_put() argument
340 camif_clk_get(struct camif_dev *camif) camif_clk_get() argument
373 camif_request_irqs(struct platform_device *pdev, struct camif_dev *camif) camif_request_irqs() argument
403 struct camif_dev *camif; s3c_camif_probe() local
513 struct camif_dev *camif = platform_get_drvdata(pdev); s3c_camif_remove() local
529 struct camif_dev *camif = dev_get_drvdata(dev); s3c_camif_runtime_resume() local
539 struct camif_dev *camif = dev_get_drvdata(dev); s3c_camif_runtime_suspend() local
[all...]
H A Dcamif-regs.c11 #include "camif-regs.h"
16 void camif_hw_reset(struct camif_dev *camif) in camif_hw_reset() argument
20 cfg = camif_read(camif, S3C_CAMIF_REG_CISRCFMT); in camif_hw_reset()
22 camif_write(camif, S3C_CAMIF_REG_CISRCFMT, cfg); in camif_hw_reset()
25 cfg = camif_read(camif, S3C_CAMIF_REG_CIGCTRL); in camif_hw_reset()
27 if (camif->variant->ip_revision == S3C6410_CAMIF_IP_REV) in camif_hw_reset()
29 camif_write(camif, S3C_CAMIF_REG_CIGCTRL, cfg); in camif_hw_reset()
32 cfg = camif_read(camif, S3C_CAMIF_REG_CIGCTRL); in camif_hw_reset()
34 camif_write(camif, S3C_CAMIF_REG_CIGCTRL, cfg); in camif_hw_reset()
40 u32 cfg = camif_read(vp->camif, S3C_CAMIF_REG_CIGCTR in camif_hw_clear_pending_irq()
49 camif_hw_set_test_pattern(struct camif_dev *camif, unsigned int pattern) camif_hw_set_test_pattern() argument
57 camif_hw_set_effect(struct camif_dev *camif, unsigned int effect, unsigned int cr, unsigned int cb) camif_hw_set_effect() argument
103 camif_hw_set_source_format(struct camif_dev *camif) camif_hw_set_source_format() argument
128 camif_hw_set_camera_crop(struct camif_dev *camif) camif_hw_set_camera_crop() argument
153 struct camif_dev *camif = vp->camif; camif_hw_clear_fifo_overflow() local
167 camif_hw_set_camera_bus(struct camif_dev *camif) camif_hw_set_camera_bus() argument
203 struct camif_dev *camif = vp->camif; camif_hw_set_output_addr() local
257 struct camif_dev *camif = vp->camif; camif_hw_set_output_dma() local
298 struct camif_dev *camif = vp->camif; camif_hw_set_target_format() local
363 struct camif_dev *camif = vp->camif; camif_hw_set_prescaler() local
381 struct camif_dev *camif = vp->camif; camif_s3c244x_hw_set_scaler() local
428 struct camif_dev *camif = vp->camif; camif_s3c64xx_hw_set_scaler() local
513 struct camif_dev *camif = vp->camif; camif_hw_enable_capture() local
536 struct camif_dev *camif = vp->camif; camif_hw_disable_capture() local
554 camif_hw_dump_regs(struct camif_dev *camif, const char *label) camif_hw_dump_regs() argument
[all...]
H A Dcamif-capture.c37 #include "camif-core.h"
38 #include "camif-regs.h"
43 /* Locking: called with vp->camif->slock spinlock held */
64 /* Locking: called with camif->slock spinlock held */
65 static int s3c_camif_hw_init(struct camif_dev *camif, struct camif_vp *vp) in s3c_camif_hw_init() argument
67 const struct s3c_camif_variant *variant = camif->variant; in s3c_camif_hw_init()
69 if (camif->sensor.sd == NULL || vp->out_fmt == NULL) in s3c_camif_hw_init()
74 camif_hw_set_camera_bus(camif); in s3c_camif_hw_init()
75 camif_hw_set_source_format(camif); in s3c_camif_hw_init()
76 camif_hw_set_camera_crop(camif); in s3c_camif_hw_init()
95 s3c_camif_hw_vp_init(struct camif_dev *camif, struct camif_vp *vp) s3c_camif_hw_vp_init() argument
110 sensor_set_power(struct camif_dev *camif, int on) sensor_set_power() argument
128 sensor_set_streaming(struct camif_dev *camif, int on) sensor_set_streaming() argument
151 struct camif_dev *camif = vp->camif; camif_reinitialize() local
184 struct camif_dev *camif = vp->camif; s3c_vp_active() local
195 camif_is_streaming(struct camif_dev *camif) camif_is_streaming() argument
209 struct camif_dev *camif = vp->camif; camif_stop_capture() local
291 struct camif_dev *camif = vp->camif; s3c_camif_irq_handler() local
377 struct camif_dev *camif = vp->camif; start_streaming() local
483 struct camif_dev *camif = vp->camif; buffer_queue() local
537 struct camif_dev *camif = vp->camif; s3c_camif_open() local
569 struct camif_dev *camif = vp->camif; s3c_camif_close() local
596 struct camif_dev *camif = vp->camif; s3c_camif_poll() local
712 struct camif_dev *camif = vp->camif; __camif_video_try_format() local
807 camif_pipeline_validate(struct camif_dev *camif) camif_pipeline_validate() argument
837 struct camif_dev *camif = vp->camif; s3c_camif_streamon() local
869 struct camif_dev *camif = vp->camif; s3c_camif_streamoff() local
1003 __camif_try_compose(struct camif_dev *camif, struct camif_vp *vp, struct v4l2_rect *r) __camif_try_compose() argument
1019 struct camif_dev *camif = vp->camif; s3c_camif_s_selection() local
1072 struct camif_dev *camif = vp->camif; s3c_camif_video_s_ctrl() local
1100 s3c_camif_register_video_node(struct camif_dev *camif, int idx) s3c_camif_register_video_node() argument
1177 s3c_camif_unregister_video_node(struct camif_dev *camif, int idx) s3c_camif_unregister_video_node() argument
1215 struct camif_dev *camif = v4l2_get_subdevdata(sd); s3c_camif_subdev_get_fmt() local
1246 __camif_subdev_try_format(struct camif_dev *camif, struct v4l2_mbus_framefmt *mf, int pad) __camif_subdev_try_format() argument
1283 struct camif_dev *camif = v4l2_get_subdevdata(sd); s3c_camif_subdev_set_fmt() local
1350 struct camif_dev *camif = v4l2_get_subdevdata(sd); s3c_camif_subdev_get_selection() local
1384 __camif_try_crop(struct camif_dev *camif, struct v4l2_rect *r) __camif_try_crop() argument
1437 struct camif_dev *camif = v4l2_get_subdevdata(sd); s3c_camif_subdev_set_selection() local
1490 struct camif_dev *camif = container_of(ctrl->handler, struct camif_dev, s3c_camif_subdev_s_ctrl() local
1540 s3c_camif_create_subdev(struct camif_dev *camif) s3c_camif_create_subdev() argument
1592 s3c_camif_unregister_subdev(struct camif_dev *camif) s3c_camif_unregister_subdev() argument
1606 s3c_camif_set_defaults(struct camif_dev *camif) s3c_camif_set_defaults() argument
[all...]
H A DMakefile4 s3c-camif-objs := camif-core.o camif-capture.o camif-regs.o
6 obj-$(CONFIG_VIDEO_S3C_CAMIF) += s3c-camif.o
H A Dcamif-regs.h14 #include "camif-core.h"
240 void camif_hw_reset(struct camif_dev *camif);
248 void camif_hw_set_camera_bus(struct camif_dev *camif);
249 void camif_hw_set_source_format(struct camif_dev *camif);
250 void camif_hw_set_camera_crop(struct camif_dev *camif);
255 void camif_hw_set_test_pattern(struct camif_dev *camif, unsigned int pattern);
256 void camif_hw_set_effect(struct camif_dev *camif, unsigned int effect,
260 void camif_hw_dump_regs(struct camif_dev *camif, const char *label);
264 return readl(vp->camif->io_base + S3C_CAMIF_REG_CISTATUS(vp->id, in camif_hw_get_status()
H A Dcamif-core.h28 #define S3C_CAMIF_DRIVER_NAME "s3c-camif"
186 * @camif: pointer to the camif structure
213 struct camif_dev *camif; member
250 * @pads: the camif subdev's media pads
322 * struct camif_buffer - the camif video buffer structure
337 int s3c_camif_register_video_node(struct camif_dev *camif, int idx);
338 void s3c_camif_unregister_video_node(struct camif_dev *camif, int idx);
340 int s3c_camif_create_subdev(struct camif_dev *camif);
341 void s3c_camif_unregister_subdev(struct camif_dev *camif);
[all...]
/kernel/linux/linux-5.10/drivers/devfreq/event/
H A Dexynos-ppmu.c66 PPMU_EVENT(camif),
/kernel/linux/linux-6.6/drivers/devfreq/event/
H A Dexynos-ppmu.c66 PPMU_EVENT(camif),

Completed in 10 milliseconds