Home
last modified time | relevance | path

Searched refs:vin (Results 1 – 15 of 15) sorted by relevance

/drivers/media/platform/rcar-vin/
Drcar-dma.c131 static void rvin_write(struct rvin_dev *vin, u32 value, u32 offset) in rvin_write() argument
133 iowrite32(value, vin->base + offset); in rvin_write()
136 static u32 rvin_read(struct rvin_dev *vin, u32 offset) in rvin_read() argument
138 return ioread32(vin->base + offset); in rvin_read()
141 static int rvin_setup(struct rvin_dev *vin) in rvin_setup() argument
147 switch (vin->format.field) { in rvin_setup()
158 if (!v4l2_subdev_call(vin_to_source(vin), video, g_std, &std)) { in rvin_setup()
171 if (vin->continuous) { in rvin_setup()
186 switch (vin->digital.code) { in rvin_setup()
194 vnmc |= vin->digital.mbus_cfg.type == V4L2_MBUS_BT656 ? in rvin_setup()
[all …]
Drcar-v4l2.c95 static void rvin_reset_crop_compose(struct rvin_dev *vin) in rvin_reset_crop_compose() argument
97 vin->crop.top = vin->crop.left = 0; in rvin_reset_crop_compose()
98 vin->crop.width = vin->source.width; in rvin_reset_crop_compose()
99 vin->crop.height = vin->source.height; in rvin_reset_crop_compose()
101 vin->compose.top = vin->compose.left = 0; in rvin_reset_crop_compose()
102 vin->compose.width = vin->format.width; in rvin_reset_crop_compose()
103 vin->compose.height = vin->format.height; in rvin_reset_crop_compose()
106 static int rvin_reset_format(struct rvin_dev *vin) in rvin_reset_format() argument
114 fmt.pad = vin->digital.source_pad; in rvin_reset_format()
116 ret = v4l2_subdev_call(vin_to_source(vin), pad, get_fmt, NULL, &fmt); in rvin_reset_format()
[all …]
Drcar-core.c76 struct rvin_dev *vin = notifier_to_vin(notifier); in rvin_digital_notify_complete() local
80 if (!rvin_mbus_supported(&vin->digital)) { in rvin_digital_notify_complete()
81 vin_err(vin, "Unsupported media bus format for %s\n", in rvin_digital_notify_complete()
82 vin->digital.subdev->name); in rvin_digital_notify_complete()
86 vin_dbg(vin, "Found media bus format for %s: %d\n", in rvin_digital_notify_complete()
87 vin->digital.subdev->name, vin->digital.code); in rvin_digital_notify_complete()
89 ret = v4l2_device_register_subdev_nodes(&vin->v4l2_dev); in rvin_digital_notify_complete()
91 vin_err(vin, "Failed to register subdev nodes\n"); in rvin_digital_notify_complete()
95 return rvin_v4l2_probe(vin); in rvin_digital_notify_complete()
102 struct rvin_dev *vin = notifier_to_vin(notifier); in rvin_digital_notify_unbind() local
[all …]
Drcar-vin.h148 #define vin_to_source(vin) vin->digital.subdev argument
156 int rvin_dma_probe(struct rvin_dev *vin, int irq);
157 void rvin_dma_remove(struct rvin_dev *vin);
159 int rvin_v4l2_probe(struct rvin_dev *vin);
160 void rvin_v4l2_remove(struct rvin_dev *vin);
165 void rvin_scale_try(struct rvin_dev *vin, struct v4l2_pix_format *pix,
167 void rvin_crop_scale_comp(struct rvin_dev *vin);
DMakefile1 rcar-vin-objs = rcar-core.o rcar-dma.o rcar-v4l2.o
3 obj-$(CONFIG_VIDEO_RCAR_VIN) += rcar-vin.o
DKconfig12 module will be called rcar-vin.
/drivers/media/platform/
Darv.c412 static int ar_enum_input(struct file *file, void *fh, struct v4l2_input *vin) in ar_enum_input() argument
414 if (vin->index > 0) in ar_enum_input()
416 strlcpy(vin->name, "Camera", sizeof(vin->name)); in ar_enum_input()
417 vin->type = V4L2_INPUT_TYPE_CAMERA; in ar_enum_input()
418 vin->audioset = 0; in ar_enum_input()
419 vin->tuner = 0; in ar_enum_input()
420 vin->std = V4L2_STD_ALL; in ar_enum_input()
421 vin->status = 0; in ar_enum_input()
DMakefile72 obj-$(CONFIG_VIDEO_RCAR_VIN) += rcar-vin/
DKconfig151 source "drivers/media/platform/rcar-vin/Kconfig"
/drivers/media/platform/vivid/
Dvivid-vid-cap.h54 int vidioc_enumaudio(struct file *file, void *fh, struct v4l2_audio *vin);
55 int vidioc_g_audio(struct file *file, void *fh, struct v4l2_audio *vin);
56 int vidioc_s_audio(struct file *file, void *fh, const struct v4l2_audio *vin);
Dvivid-vid-cap.c1412 int vidioc_enumaudio(struct file *file, void *fh, struct v4l2_audio *vin) in vidioc_enumaudio() argument
1414 if (vin->index >= ARRAY_SIZE(vivid_audio_inputs)) in vidioc_enumaudio()
1416 *vin = vivid_audio_inputs[vin->index]; in vidioc_enumaudio()
1420 int vidioc_g_audio(struct file *file, void *fh, struct v4l2_audio *vin) in vidioc_g_audio() argument
1426 *vin = vivid_audio_inputs[dev->tv_audio_input]; in vidioc_g_audio()
1430 int vidioc_s_audio(struct file *file, void *fh, const struct v4l2_audio *vin) in vidioc_s_audio() argument
1436 if (vin->index >= ARRAY_SIZE(vivid_audio_inputs)) in vidioc_s_audio()
1438 dev->tv_audio_input = vin->index; in vidioc_s_audio()
/drivers/media/pci/cx18/
Dcx18-ioctl.c410 static int cx18_enumaudio(struct file *file, void *fh, struct v4l2_audio *vin) in cx18_enumaudio() argument
414 return cx18_get_audio_input(cx, vin->index, vin); in cx18_enumaudio()
417 static int cx18_g_audio(struct file *file, void *fh, struct v4l2_audio *vin) in cx18_g_audio() argument
421 vin->index = cx->audio_input; in cx18_g_audio()
422 return cx18_get_audio_input(cx, vin->index, vin); in cx18_g_audio()
436 static int cx18_enum_input(struct file *file, void *fh, struct v4l2_input *vin) in cx18_enum_input() argument
441 return cx18_get_input(cx, vin->index, vin); in cx18_enum_input()
/drivers/hwmon/
Dadm9240.c379 #define vin(nr) \ macro
387 vin(0);
388 vin(1);
389 vin(2);
390 vin(3);
391 vin(4);
392 vin(5);
/drivers/media/pci/ivtv/
Divtv-ioctl.c763 static int ivtv_enumaudio(struct file *file, void *fh, struct v4l2_audio *vin) in ivtv_enumaudio() argument
767 return ivtv_get_audio_input(itv, vin->index, vin); in ivtv_enumaudio()
770 static int ivtv_g_audio(struct file *file, void *fh, struct v4l2_audio *vin) in ivtv_g_audio() argument
774 vin->index = itv->audio_input; in ivtv_g_audio()
775 return ivtv_get_audio_input(itv, vin->index, vin); in ivtv_g_audio()
791 static int ivtv_enumaudout(struct file *file, void *fh, struct v4l2_audioout *vin) in ivtv_enumaudout() argument
796 return ivtv_get_audio_output(itv, vin->index, vin); in ivtv_enumaudout()
799 static int ivtv_g_audout(struct file *file, void *fh, struct v4l2_audioout *vin) in ivtv_g_audout() argument
803 vin->index = 0; in ivtv_g_audout()
804 return ivtv_get_audio_output(itv, vin->index, vin); in ivtv_g_audout()
[all …]
/drivers/media/usb/pvrusb2/
Dpvrusb2-v4l2.c278 static int pvr2_enumaudio(struct file *file, void *priv, struct v4l2_audio *vin) in pvr2_enumaudio() argument
295 if (vin->index > 0) in pvr2_enumaudio()
297 strncpy(vin->name, "PVRUSB2 Audio", 14); in pvr2_enumaudio()
298 vin->capability = V4L2_AUDCAP_STEREO; in pvr2_enumaudio()
302 static int pvr2_g_audio(struct file *file, void *priv, struct v4l2_audio *vin) in pvr2_g_audio() argument
305 vin->index = 0; in pvr2_g_audio()
306 strncpy(vin->name, "PVRUSB2 Audio", 14); in pvr2_g_audio()
307 vin->capability = V4L2_AUDCAP_STEREO; in pvr2_g_audio()