Lines Matching refs:width
547 static void ov9740_res_roundup(u32 *width, u32 *height) in ov9740_res_roundup() argument
550 *width = ALIGN(*width, 4); in ov9740_res_roundup()
553 if (*width > OV9740_MAX_WIDTH) in ov9740_res_roundup()
554 *width = OV9740_MAX_WIDTH; in ov9740_res_roundup()
561 static int ov9740_set_res(struct i2c_client *client, u32 width, u32 height) in ov9740_set_res() argument
572 if ((width != OV9740_MAX_WIDTH) || (height != OV9740_MAX_HEIGHT)) in ov9740_set_res()
582 if ((OV9740_MAX_WIDTH * height) > (OV9740_MAX_HEIGHT * width)) { in ov9740_set_res()
583 scale_input_x = (OV9740_MAX_HEIGHT * width) / height; in ov9740_set_res()
587 scale_input_y = (OV9740_MAX_WIDTH * height) / width; in ov9740_set_res()
622 ret = ov9740_reg_write(client, OV9740_X_OUTPUT_SIZE_HI, width >> 8); in ov9740_set_res()
625 ret = ov9740_reg_write(client, OV9740_X_OUTPUT_SIZE_LO, width & 0xff); in ov9740_set_res()
649 (scale_input_x - width) >> 8); in ov9740_set_res()
653 (scale_input_x - width) & 0xff); in ov9740_set_res()
680 ov9740_res_roundup(&mf->width, &mf->height); in ov9740_s_fmt()
695 ret = ov9740_set_res(client, mf->width, mf->height); in ov9740_s_fmt()
710 ov9740_res_roundup(&mf->width, &mf->height); in ov9740_try_fmt()
734 a->bounds.width = OV9740_MAX_WIDTH; in ov9740_cropcap()
748 a->c.width = OV9740_MAX_WIDTH; in ov9740_g_crop()