Lines Matching refs:width

88 static void get_resolution(struct go7007 *go, int *width, int *height)  in get_resolution()  argument
92 *width = 720; in get_resolution()
96 *width = 720; in get_resolution()
101 *width = go->board_info->sensor_width; in get_resolution()
187 int width, height; in set_capture_size() local
195 width = sensor_width; in set_capture_size()
198 if (fmt->fmt.pix.width > sensor_width) in set_capture_size()
199 width = sensor_width; in set_capture_size()
200 else if (fmt->fmt.pix.width < 144) in set_capture_size()
201 width = 144; in set_capture_size()
203 width = fmt->fmt.pix.width & ~0x0f; in set_capture_size()
212 width = fmt->fmt.pix.width; in set_capture_size()
214 if (width <= sensor_width / 4) { in set_capture_size()
215 width = sensor_width / 4; in set_capture_size()
217 } else if (width <= sensor_width / 2) { in set_capture_size()
218 width = sensor_width / 2; in set_capture_size()
221 width = sensor_width; in set_capture_size()
224 width &= ~0xf; in set_capture_size()
233 fmt->fmt.pix.width = width; in set_capture_size()
247 go->width = width; in set_capture_size()
256 mbus_fmt.width = fmt ? fmt->fmt.pix.width : width; in set_capture_size()
263 if (width <= sensor_width / 4) { in set_capture_size()
267 } else if (width <= sensor_width / 2) { in set_capture_size()
339 fmt->fmt.pix.width = go->width; in vidioc_g_fmt_vid_cap()
541 int width, height; in vidioc_enum_framesizes() local
549 get_resolution(go, &width, &height); in vidioc_enum_framesizes()
551 fsize->discrete.width = (width >> fsize->index) & ~0xf; in vidioc_enum_framesizes()
560 int width, height; in vidioc_enum_frameintervals() local
570 get_resolution(go, &width, &height); in vidioc_enum_frameintervals()
572 if (fival->width == ((width >> i) & ~0xf) && in vidioc_enum_frameintervals()
849 for (y = 0; y < go->height / 16; y++, mt += go->width / 16) in go7007_s_ctrl()
850 memcpy(mt, ctrl->p_new.p_u8 + y * (720 / 16), go->width / 16); in go7007_s_ctrl()