Lines Matching refs:width

61 	f->dma_offset.line = f->f_width - (f->rect.left + f->rect.width);  in camif_prepare_dma_offset()
251 pix_size = frame->rect.width * frame->rect.height; in camif_prepare_addr()
458 size = (pix->width * pix->height * fmt->depth) / 8; in queue_setup()
722 pix->width = frame->f_width; in s3c_camif_vidioc_g_fmt()
751 pix->width, pix->height, crop->width, crop->height, in __camif_video_try_format()
757 sc_hrmax = min(SCALER_MAX_RATIO, 1 << (ffs(crop->width) - 3)); in __camif_video_try_format()
760 wmin = max_t(u32, pix_lim->min_out_width, crop->width / sc_hrmax); in __camif_video_try_format()
765 v4l_bound_align_image(&pix->width, wmin, pix_lim->max_sc_out_width, in __camif_video_try_format()
769 pix->bytesperline = pix->width * fmt->ybpp; in __camif_video_try_format()
770 pix->sizeimage = (pix->width * pix->height * fmt->depth) / 8; in __camif_video_try_format()
776 pix->width, pix->height, wmin, hmin, sc_hrmax, sc_vrmax); in __camif_video_try_format()
808 out_frame->f_width = pix->width; in s3c_camif_vidioc_s_fmt()
812 out_frame->rect.width = pix->width; in s3c_camif_vidioc_s_fmt()
822 pix->width * pix->height * fmt->depth, fmt->depth, in s3c_camif_vidioc_s_fmt()
846 if (src_fmt.format.width != camif->mbus_fmt.width || in camif_pipeline_validate()
1012 sel->r.width = vp->out_frame.f_width; in s3c_camif_g_selection()
1058 sel->r.left, sel->r.top, sel->r.width, sel->r.height); in s3c_camif_s_selection()
1255 mf->width = camif->camif_crop.width; in s3c_camif_subdev_get_fmt()
1284 v4l_bound_align_image(&mf->width, 8, CAMIF_MAX_PIX_WIDTH, in __camif_subdev_try_format()
1290 v4l_bound_align_image(&mf->width, 8, crop->width, in __camif_subdev_try_format()
1296 v4l2_dbg(1, debug, &camif->subdev, "%ux%u\n", mf->width, mf->height); in __camif_subdev_try_format()
1309 fmt->pad, mf->code, mf->width, mf->height); in s3c_camif_subdev_set_fmt()
1338 crop->width = mf->width; in s3c_camif_subdev_set_fmt()
1349 frame->f_width = mf->width; in s3c_camif_subdev_set_fmt()
1357 mf->width = crop->width; in s3c_camif_subdev_set_fmt()
1389 sel->r.width = mf->width; in s3c_camif_subdev_get_selection()
1398 __func__, crop->left, crop->top, crop->width, in s3c_camif_subdev_get_selection()
1399 crop->height, mf->width, mf->height); in s3c_camif_subdev_get_selection()
1418 v4l_bound_align_image(&r->width, 0, mf->width, in __camif_try_crop()
1422 v4l_bound_align_image(&left, 0, mf->width - r->width, in __camif_try_crop()
1428 r->width = mf->width - left; in __camif_try_crop()
1441 if ((or->width > r->width) == (or->height > r->height)) in __camif_try_crop()
1450 r->left, r->top, r->width, r->height, mf->width, mf->height); in __camif_try_crop()
1490 __func__, crop->left, crop->top, crop->width, crop->height, in s3c_camif_subdev_set_selection()
1491 camif->mbus_fmt.width, camif->mbus_fmt.height); in s3c_camif_subdev_set_selection()
1651 f->rect.width = CAMIF_DEF_WIDTH; in s3c_camif_set_defaults()
1662 camif->mbus_fmt.width = CAMIF_DEF_WIDTH; in s3c_camif_set_defaults()
1667 camif->camif_crop.width = CAMIF_DEF_WIDTH; in s3c_camif_set_defaults()