Lines Matching refs:byteproc
242 struct dcmipp_byteproc_device *byteproc = v4l2_get_subdevdata(sd); in dcmipp_byteproc_set_fmt() local
246 if (byteproc->streaming) in dcmipp_byteproc_set_fmt()
330 struct dcmipp_byteproc_device *byteproc = v4l2_get_subdevdata(sd); in dcmipp_byteproc_set_selection() local
361 dev_dbg(byteproc->dev, "s_selection: crop %ux%u@(%u,%u)\n", in dcmipp_byteproc_set_selection()
374 dev_dbg(byteproc->dev, "s_selection: compose %ux%u@(%u,%u)\n", in dcmipp_byteproc_set_selection()
395 (struct dcmipp_byteproc_device *byteproc) in dcmipp_byteproc_configure_scale_crop() argument
404 state = v4l2_subdev_lock_and_get_active_state(&byteproc->sd); in dcmipp_byteproc_configure_scale_crop()
416 reg_clear(byteproc, DCMIPP_P0PPCR, DCMIPP_P0PPCR_BSM_MASK); in dcmipp_byteproc_configure_scale_crop()
417 reg_clear(byteproc, DCMIPP_P0PPCR, DCMIPP_P0PPCR_LSM); in dcmipp_byteproc_configure_scale_crop()
418 reg_write(byteproc, DCMIPP_P0SCSTR, 0); in dcmipp_byteproc_configure_scale_crop()
419 reg_write(byteproc, DCMIPP_P0SCSZR, 0); in dcmipp_byteproc_configure_scale_crop()
440 reg_set(byteproc, DCMIPP_P0PPCR, val); in dcmipp_byteproc_configure_scale_crop()
442 dev_dbg(byteproc->dev, "decimate to %dx%d [prediv=%dx%d]\n", in dcmipp_byteproc_configure_scale_crop()
447 dev_dbg(byteproc->dev, "crop to %dx%d\n", crop->width, crop->height); in dcmipp_byteproc_configure_scale_crop()
450 reg_write(byteproc, DCMIPP_P0SCSTR, in dcmipp_byteproc_configure_scale_crop()
454 reg_write(byteproc, DCMIPP_P0SCSZR, in dcmipp_byteproc_configure_scale_crop()
465 struct dcmipp_byteproc_device *byteproc = v4l2_get_subdevdata(sd); in dcmipp_byteproc_s_stream() local
477 ret = dcmipp_byteproc_configure_scale_crop(byteproc); in dcmipp_byteproc_s_stream()
483 dev_err(byteproc->dev, in dcmipp_byteproc_s_stream()
491 dev_err(byteproc->dev, in dcmipp_byteproc_s_stream()
498 byteproc->streaming = enable; in dcmipp_byteproc_s_stream()
514 struct dcmipp_byteproc_device *byteproc = v4l2_get_subdevdata(sd); in dcmipp_byteproc_release() local
516 kfree(byteproc); in dcmipp_byteproc_release()
526 struct dcmipp_byteproc_device *byteproc = in dcmipp_byteproc_ent_release() local
529 dcmipp_ent_sd_unregister(ved, &byteproc->sd); in dcmipp_byteproc_ent_release()
536 struct dcmipp_byteproc_device *byteproc; in dcmipp_byteproc_ent_init() local
543 byteproc = kzalloc(sizeof(*byteproc), GFP_KERNEL); in dcmipp_byteproc_ent_init()
544 if (!byteproc) in dcmipp_byteproc_ent_init()
547 byteproc->regs = regs; in dcmipp_byteproc_ent_init()
550 ret = dcmipp_ent_sd_register(&byteproc->ved, &byteproc->sd, in dcmipp_byteproc_ent_init()
558 kfree(byteproc); in dcmipp_byteproc_ent_init()
562 byteproc->dev = dev; in dcmipp_byteproc_ent_init()
564 return &byteproc->ved; in dcmipp_byteproc_ent_init()