• Home
  • Raw
  • Download

Lines Matching refs:icd

190 static bool is_supported(struct soc_camera_device *icd,  in is_supported()  argument
308 struct soc_camera_device *icd = soc_camera_from_vb2q(vq); in queue_setup() local
309 struct soc_camera_host *ici = to_soc_camera_host(icd->parent); in queue_setup()
313 size = icd->sizeimage; in queue_setup()
327 dev_dbg(icd->parent, "%s, count=%d, size=%ld\n", __func__, in queue_setup()
347 struct soc_camera_device *icd = soc_camera_from_vb2q(vb->vb2_queue); in buffer_prepare() local
349 struct soc_camera_host *ici = to_soc_camera_host(icd->parent); in buffer_prepare()
354 size = icd->sizeimage; in buffer_prepare()
357 dev_err(icd->parent, "%s data will not fit into plane (%lu < %lu)\n", in buffer_prepare()
366 dev_err(icd->parent, "Not enough dma descriptors.\n"); in buffer_prepare()
390 struct soc_camera_device *icd = soc_camera_from_vb2q(vb->vb2_queue); in buffer_cleanup() local
391 struct soc_camera_host *ici = to_soc_camera_host(icd->parent); in buffer_cleanup()
412 dev_err(isi->soc_host.icd->parent, "Already in frame handling.\n"); in start_dma()
446 struct soc_camera_device *icd = soc_camera_from_vb2q(vb->vb2_queue); in buffer_queue() local
447 struct soc_camera_host *ici = to_soc_camera_host(icd->parent); in buffer_queue()
465 struct soc_camera_device *icd = soc_camera_from_vb2q(vq); in start_streaming() local
466 struct soc_camera_host *ici = to_soc_camera_host(icd->parent); in start_streaming()
475 dev_err(icd->parent, "Reset ISI timed out\n"); in start_streaming()
482 configure_geometry(isi, icd->user_width, icd->user_height, in start_streaming()
483 icd->current_fmt); in start_streaming()
499 struct soc_camera_device *icd = soc_camera_from_vb2q(vq); in stop_streaming() local
500 struct soc_camera_host *ici = to_soc_camera_host(icd->parent); in stop_streaming()
523 dev_err(icd->parent, in stop_streaming()
534 dev_err(icd->parent, "Disable ISI timed out\n"); in stop_streaming()
555 struct soc_camera_device *icd) in isi_camera_init_videobuf() argument
557 struct soc_camera_host *ici = to_soc_camera_host(icd->parent); in isi_camera_init_videobuf()
561 q->drv_priv = icd; in isi_camera_init_videobuf()
572 static int isi_camera_set_fmt(struct soc_camera_device *icd, in isi_camera_set_fmt() argument
575 struct v4l2_subdev *sd = soc_camera_to_subdev(icd); in isi_camera_set_fmt()
585 if (!is_supported(icd, pix->pixelformat)) in isi_camera_set_fmt()
588 xlate = soc_camera_xlate_by_fourcc(icd, pix->pixelformat); in isi_camera_set_fmt()
590 dev_warn(icd->parent, "Format %x not found\n", in isi_camera_set_fmt()
595 dev_dbg(icd->parent, "Plan to set format %dx%d\n", in isi_camera_set_fmt()
615 icd->current_fmt = xlate; in isi_camera_set_fmt()
617 dev_dbg(icd->parent, "Finally set format %dx%d\n", in isi_camera_set_fmt()
623 static int isi_camera_try_fmt(struct soc_camera_device *icd, in isi_camera_try_fmt() argument
626 struct v4l2_subdev *sd = soc_camera_to_subdev(icd); in isi_camera_try_fmt()
638 if (!is_supported(icd, pix->pixelformat)) in isi_camera_try_fmt()
641 xlate = soc_camera_xlate_by_fourcc(icd, pixfmt); in isi_camera_try_fmt()
643 dev_warn(icd->parent, "Format %x not found\n", pixfmt); in isi_camera_try_fmt()
675 dev_err(icd->parent, "Field type %d unsupported.\n", in isi_camera_try_fmt()
721 static int isi_camera_try_bus_param(struct soc_camera_device *icd, in isi_camera_try_bus_param() argument
724 struct v4l2_subdev *sd = soc_camera_to_subdev(icd); in isi_camera_try_bus_param()
725 struct soc_camera_host *ici = to_soc_camera_host(icd->parent); in isi_camera_try_bus_param()
736 dev_warn(icd->parent, in isi_camera_try_bus_param()
751 static int isi_camera_get_formats(struct soc_camera_device *icd, in isi_camera_get_formats() argument
755 struct v4l2_subdev *sd = soc_camera_to_subdev(icd); in isi_camera_get_formats()
772 dev_err(icd->parent, in isi_camera_get_formats()
778 ret = isi_camera_try_bus_param(icd, fmt->bits_per_sample); in isi_camera_get_formats()
780 dev_err(icd->parent, in isi_camera_get_formats()
795 dev_dbg(icd->parent, "Providing format %s using code %d\n", in isi_camera_get_formats()
803 dev_dbg(icd->parent, in isi_camera_get_formats()
819 static int isi_camera_add_device(struct soc_camera_device *icd) in isi_camera_add_device() argument
821 dev_dbg(icd->parent, "Atmel ISI Camera driver attached to camera %d\n", in isi_camera_add_device()
822 icd->devnum); in isi_camera_add_device()
827 static void isi_camera_remove_device(struct soc_camera_device *icd) in isi_camera_remove_device() argument
829 dev_dbg(icd->parent, "Atmel ISI Camera driver detached from camera %d\n", in isi_camera_remove_device()
830 icd->devnum); in isi_camera_remove_device()
835 struct soc_camera_device *icd = file->private_data; in isi_camera_poll() local
837 return vb2_poll(&icd->vb2_vidq, file, pt); in isi_camera_poll()
851 static int isi_camera_set_bus_param(struct soc_camera_device *icd) in isi_camera_set_bus_param() argument
853 struct v4l2_subdev *sd = soc_camera_to_subdev(icd); in isi_camera_set_bus_param()
854 struct soc_camera_host *ici = to_soc_camera_host(icd->parent); in isi_camera_set_bus_param()
866 dev_warn(icd->parent, in isi_camera_set_bus_param()
876 dev_dbg(icd->parent, "Flags cam: 0x%x host: 0x%x common: 0x%lx\n", in isi_camera_set_bus_param()
907 dev_dbg(icd->parent, "camera s_mbus_config(0x%lx) returned %d\n", in isi_camera_set_bus_param()
920 dev_dbg(icd->parent, "vsync active %s, hsync active %s, sampling on pix clock %s edge\n", in isi_camera_set_bus_param()