Home
last modified time | relevance | path

Searched refs:height (Results 1 – 200 of 851) sorted by relevance

12345

/linux-4.1.27/drivers/media/platform/omap/
Domap_voutlib.c48 crop->height = (pix->height < fbuf->fmt.height) ? in omap_vout_default_crop()
49 pix->height : fbuf->fmt.height; in omap_vout_default_crop()
51 crop->height &= ~1; in omap_vout_default_crop()
53 crop->top = ((pix->height - crop->height) >> 1) & ~1; in omap_vout_default_crop()
79 try_win.height += try_win.top; in omap_vout_try_window()
84 try_win.height = (try_win.height < fbuf->fmt.height) ? in omap_vout_try_window()
85 try_win.height : fbuf->fmt.height; in omap_vout_try_window()
88 if (try_win.top + try_win.height > fbuf->fmt.height) in omap_vout_try_window()
89 try_win.height = fbuf->fmt.height - try_win.top; in omap_vout_try_window()
91 try_win.height &= ~1; in omap_vout_try_window()
[all …]
/linux-4.1.27/drivers/media/platform/soc_camera/
Dsoc_scale_crop.c29 return r1->width < r2->width || r1->height < r2->height; in is_smaller()
37 r1->top + r1->height < r2->top + r2->height; in is_inside()
72 if (rect->height < subrect->height) in update_subrect()
73 subrect->height = rect->height; in update_subrect()
84 else if (rect->top + rect->height > in update_subrect()
85 subrect->top + subrect->height) in update_subrect()
86 subrect->top = rect->top + rect->height - in update_subrect()
87 subrect->height; in update_subrect()
104 unsigned int width, height; in soc_camera_client_s_crop() local
118 rect->width, rect->height, rect->left, rect->top); in soc_camera_client_s_crop()
[all …]
Dsh_mobile_ceu_camera.c142 unsigned int height; member
238 fmt->fmt.pix.height); in sh_mobile_ceu_videobuf_setup()
680 unsigned int height, width, cdwdr_width, in_width, in_height; in sh_mobile_ceu_set_rect() local
717 height = icd->user_height; in sh_mobile_ceu_set_rect()
718 in_height = cam->height; in sh_mobile_ceu_set_rect()
720 height = (height / 2) & ~3; in sh_mobile_ceu_set_rect()
737 (in_height << 16) | in_width, (height << 16) | width, in sh_mobile_ceu_set_rect()
743 ceu_write(pcdev, CFSZR, (height << 16) | width); in sh_mobile_ceu_set_rect()
1103 mf.height > pcdev->max_height) && shift < 4) { in sh_mobile_ceu_get_formats()
1106 mf.height = 1920 >> shift; in sh_mobile_ceu_get_formats()
[all …]
Drcar_vin.c508 unsigned int height; member
555 fmt->fmt.pix.height); in rcar_vin_videobuf_setup()
644 iowrite32(ALIGN(cam->width * cam->height, 0x80), in rcar_vin_setup()
1061 cam->width, cam->height, cam->vin_left, cam->vin_top); in rcar_vin_set_rect()
1063 cam_subrect->width, cam_subrect->height, in rcar_vin_set_rect()
1075 iowrite32((top_offset + cam_subrect->height) / 2 - 1, in rcar_vin_set_rect()
1080 iowrite32(top_offset + cam_subrect->height - 1, in rcar_vin_set_rect()
1087 if (cam_subrect->height != cam->out_height) in rcar_vin_set_rect()
1088 value = (4096 * cam_subrect->height) / cam->out_height; in rcar_vin_set_rect()
1360 rect.height = mf.height; in rcar_vin_get_formats()
[all …]
Dsoc_camera_platform.c45 mf->height = p->format.height; in soc_camera_platform_fill_fmt()
84 a->c.height = p->format.height; in soc_camera_platform_g_crop()
98 a->bounds.height = p->format.height; in soc_camera_platform_cropcap()
Dmx3_camera.c216 fmt->fmt.pix.height); in mx3_videobuf_setup()
725 unsigned int width, unsigned int height, in configure_geometry() argument
744 height_field = height - 1; in configure_geometry()
808 soc_camera_limit_side(&rect->top, &rect->height, 0, 2, 4096); in mx3_camera_set_crop()
830 if (mf.width != icd->user_width || mf.height != icd->user_height) in mx3_camera_set_crop()
831 configure_geometry(mx3_cam, mf.width, mf.height, in mx3_camera_set_crop()
835 mf.width, mf.height); in mx3_camera_set_crop()
838 icd->user_height = mf.height; in mx3_camera_set_crop()
862 dev_dbg(icd->parent, "Set format %dx%d\n", pix->width, pix->height); in mx3_camera_set_fmt()
870 configure_geometry(mx3_cam, pix->width, pix->height, xlate->host_fmt); in mx3_camera_set_fmt()
[all …]
Domap1_camera.c266 vb->height != icd->user_height) { in omap1_videobuf_prepare()
269 vb->height = icd->user_height; in omap1_videobuf_prepare()
1126 static bool is_dma_aligned(s32 bytes_per_line, unsigned int height, in is_dma_aligned() argument
1129 int size = bytes_per_line * height; in is_dma_aligned()
1135 static int dma_align(int *width, int *height, in dma_align() argument
1144 if (!is_dma_aligned(bytes_per_line, *height, vb_mode)) { in dma_align()
1151 height, 1, *height + incr, 0, salign); in dma_align()
1207 if (!is_dma_aligned(bytes_per_line, mf->height, pcdev->vb_mode)) { in set_mbus_format()
1209 __func__, mf->width, mf->height); in set_mbus_format()
1230 rect->width, rect->height, rect->left, rect->top); in omap1_cam_set_crop()
[all …]
Dmx2_camera.c919 soc_camera_limit_side(&rect->top, &rect->height, 0, 2, 4096); in mx2_camera_set_crop()
931 mf.width, mf.height); in mx2_camera_set_crop()
934 icd->user_height = mf.height; in mx2_camera_set_crop()
1017 in = mf_in->height; in mx2_emmaprp_resize()
1018 out = pix_out->height; in mx2_emmaprp_resize()
1108 mf_in->height = pix_out->height; in mx2_emmaprp_resize()
1128 __func__, pix->width, pix->height); in mx2_camera_set_fmt()
1138 mf.height = pix->height; in mx2_camera_set_fmt()
1149 pcdev->s_height = mf.height; in mx2_camera_set_fmt()
1157 if ((mf.width != pix->width || mf.height != pix->height) && in mx2_camera_set_fmt()
[all …]
Datmel-isi.c108 u32 height, u32 code) in configure_geometry() argument
146 cfg2 |= ((height - 1) << ISI_CFG2_IM_VSIZE_OFFSET) in configure_geometry()
501 pix->width, pix->height); in isi_camera_set_fmt()
504 mf.height = pix->height; in isi_camera_set_fmt()
516 ret = configure_geometry(isi, pix->width, pix->height, xlate->code); in isi_camera_set_fmt()
521 pix->height = mf.height; in isi_camera_set_fmt()
527 pix->width, pix->height); in isi_camera_set_fmt()
549 if (pix->height > MAX_SUPPORT_HEIGHT) in isi_camera_try_fmt()
550 pix->height = MAX_SUPPORT_HEIGHT; in isi_camera_try_fmt()
556 mf.height = pix->height; in isi_camera_try_fmt()
[all …]
/linux-4.1.27/drivers/media/platform/s5p-tv/
Dmixer_grp_layer.c26 { .width = 1, .height = 1, .size = 2 },
38 { .width = 1, .height = 1, .size = 2 },
50 { .width = 1, .height = 1, .size = 2 },
62 { .width = 1, .height = 1, .size = 4 },
165 y_center = dst->y_offset + dst->height / 2; in mxr_graph_fix_geometry()
169 dst->height = round_down(dst->height, 2); in mxr_graph_fix_geometry()
172 dst->height = round_up(dst->height, 2); in mxr_graph_fix_geometry()
176 dst->height = min(dst->height, dst->full_height); in mxr_graph_fix_geometry()
180 dst->height = min(dst->height, 2 * src->full_height); in mxr_graph_fix_geometry()
185 dst->y_offset = do_center(y_center, dst->height, in mxr_graph_fix_geometry()
[all …]
Dmixer_vp_layer.c27 { .width = 1, .height = 1, .size = 1 },
28 { .width = 2, .height = 2, .size = 2 },
40 { .width = 1, .height = 1, .size = 1 },
41 { .width = 2, .height = 2, .size = 2 },
53 { .width = 1, .height = 1, .size = 1 },
54 { .width = 2, .height = 2, .size = 2 },
67 { .width = 128, .height = 32, .size = 4096 },
68 { .width = 128, .height = 32, .size = 2048 },
156 y_center = dst->y_offset + dst->height / 2; in mxr_vp_fix_geometry()
160 dst->height = clamp(dst->height, 1U, 16 * src->full_height); in mxr_vp_fix_geometry()
[all …]
Dmixer_video.c179 geo->src.width, geo->src.height); in mxr_geometry_dump()
185 geo->dst.width, geo->dst.height); in mxr_geometry_dump()
202 layer->geo.dst.full_height = mbus_fmt.height; in mxr_layer_default_geo()
204 layer->geo.dst.height = layer->geo.dst.full_height; in mxr_layer_default_geo()
208 layer->geo.src.full_height = mbus_fmt.height; in mxr_layer_default_geo()
210 layer->geo.src.height = layer->geo.src.full_height; in mxr_layer_default_geo()
229 layer->geo.dst.full_height = mbus_fmt.height; in mxr_layer_update_output()
265 unsigned int width, unsigned int height) in mxr_get_plane_size() argument
268 unsigned int bl_height = divup(height, blk->height); in mxr_get_plane_size()
274 const struct mxr_format *fmt, u32 width, u32 height) in mxr_mplane_fill() argument
[all …]
Dsdo_drv.c39 unsigned int height; member
120 { V4L2_STD_PAL_N, .height = 576, .cookie = SDO_PAL_N },
121 { V4L2_STD_PAL_Nc, .height = 576, .cookie = SDO_PAL_NC },
122 { V4L2_STD_PAL_M, .height = 480, .cookie = SDO_PAL_M },
123 { V4L2_STD_PAL_60, .height = 480, .cookie = SDO_PAL_60 },
124 { V4L2_STD_NTSC_443, .height = 480, .cookie = SDO_NTSC_443 },
125 { V4L2_STD_PAL, .height = 576, .cookie = SDO_PAL_BGHID },
126 { V4L2_STD_NTSC_M, .height = 480, .cookie = SDO_NTSC_M },
172 fmt->height = sdev->fmt->height; in sdo_g_mbus_fmt()
Dmixer_reg.c152 val |= MXR_GRP_WH_HEIGHT(geo->src.height); in mxr_reg_graph_format()
189 vp_write(mdev, VP_SRC_HEIGHT, geo->src.height); in mxr_reg_vp_format()
197 vp_write(mdev, VP_DST_HEIGHT, geo->dst.height / 2); in mxr_reg_vp_format()
200 vp_write(mdev, VP_DST_HEIGHT, geo->dst.height); in mxr_reg_vp_format()
397 if (fmt->height == 480) in mxr_reg_set_mbus_fmt()
399 else if (fmt->height == 576) in mxr_reg_set_mbus_fmt()
401 else if (fmt->height == 720) in mxr_reg_set_mbus_fmt()
403 else if (fmt->height == 1080) in mxr_reg_set_mbus_fmt()
406 WARN(1, "unrecognized mbus height %u!\n", fmt->height); in mxr_reg_set_mbus_fmt()
/linux-4.1.27/drivers/video/console/
Dfbcon_rotate.h40 static inline void rotate_ud(const char *in, char *out, u32 width, u32 height) in rotate_ud() argument
47 for (i = 0; i < height; i++) { in rotate_ud()
51 height - (1 + i), in rotate_ud()
58 static inline void rotate_cw(const char *in, char *out, u32 width, u32 height) in rotate_cw() argument
60 int i, j, h = height, w = width; in rotate_cw()
61 int shift = (8 - (height % 8)) & 7; in rotate_cw()
64 height = (height + 7) & ~7; in rotate_cw()
69 pattern_set_bit(height - 1 - i - shift, j, in rotate_cw()
70 height, out); in rotate_cw()
76 static inline void rotate_ccw(const char *in, char *out, u32 width, u32 height) in rotate_ccw() argument
[all …]
Dfbcon_cw.c28 int i, j, offset = (vc->vc_font.height < 10) ? 1 : 2; in cw_update_attr()
29 int width = (vc->vc_font.height + 7) >> 3; in cw_update_attr()
49 int sx, int dy, int dx, int height, int width) in cw_bmove() argument
55 area.sx = vxres - ((sy + height) * vc->vc_font.height); in cw_bmove()
57 area.dx = vxres - ((dy + height) * vc->vc_font.height); in cw_bmove()
59 area.width = height * vc->vc_font.height; in cw_bmove()
60 area.height = width * vc->vc_font.width; in cw_bmove()
66 int sx, int height, int width) in cw_clear() argument
74 region.dx = vxres - ((sy + height) * vc->vc_font.height); in cw_clear()
76 region.height = width * vc->vc_font.width; in cw_clear()
[all …]
Dbitblit.c28 int i, offset = (vc->vc_font.height < 10) ? 1 : 2; in update_attr()
30 unsigned int cellsize = vc->vc_font.height * width; in update_attr()
47 int sx, int dy, int dx, int height, int width) in bit_bmove() argument
52 area.sy = sy * vc->vc_font.height; in bit_bmove()
54 area.dy = dy * vc->vc_font.height; in bit_bmove()
55 area.height = height * vc->vc_font.height; in bit_bmove()
62 int sx, int height, int width) in bit_clear() argument
69 region.dy = sy * vc->vc_font.height; in bit_clear()
71 region.height = height * vc->vc_font.height; in bit_clear()
97 image->height); in bit_putcs_aligned()
[all …]
Dfbcon_ud.c28 int i, offset = (vc->vc_font.height < 10) ? 1 : 2; in ud_update_attr()
30 unsigned int cellsize = vc->vc_font.height * width; in ud_update_attr()
49 int sx, int dy, int dx, int height, int width) in ud_bmove() argument
56 area.sy = vyres - ((sy + height) * vc->vc_font.height); in ud_bmove()
58 area.dy = vyres - ((dy + height) * vc->vc_font.height); in ud_bmove()
60 area.height = height * vc->vc_font.height; in ud_bmove()
67 int sx, int height, int width) in ud_clear() argument
76 region.dy = vyres - ((sy + height) * vc->vc_font.height); in ud_clear()
79 region.height = height * vc->vc_font.height; in ud_clear()
105 image->height); in ud_putcs_aligned()
[all …]
Dfbcon_ccw.c28 int i, j, offset = (vc->vc_font.height < 10) ? 1 : 2; in ccw_update_attr()
29 int width = (vc->vc_font.height + 7) >> 3; in ccw_update_attr()
30 int mod = vc->vc_font.height % 8; in ccw_update_attr()
64 int sx, int dy, int dx, int height, int width) in ccw_bmove() argument
70 area.sx = sy * vc->vc_font.height; in ccw_bmove()
72 area.dx = dy * vc->vc_font.height; in ccw_bmove()
74 area.width = height * vc->vc_font.height; in ccw_bmove()
75 area.height = width * vc->vc_font.width; in ccw_bmove()
81 int sx, int height, int width) in ccw_clear() argument
89 region.dx = sy * vc->vc_font.height; in ccw_clear()
[all …]
Dtileblit.c20 int sx, int dy, int dx, int height, int width) in tile_bmove() argument
28 area.height = height; in tile_bmove()
35 int sx, int height, int width) in tile_clear() argument
48 rect.height = height; in tile_clear()
65 blit.height = 1; in tile_putcs()
145 map.height = vc->vc_font.height; in fbcon_set_tileops()
Dmdacon.c431 int height, int width) in mdacon_clear() argument
436 if (width <= 0 || height <= 0) in mdacon_clear()
440 scr_memsetw(dest, eattr, height*width*2); in mdacon_clear()
442 for (; height > 0; height--, dest+=mda_num_columns) in mdacon_clear()
448 int dy, int dx, int height, int width) in mdacon_bmove() argument
452 if (width <= 0 || height <= 0) in mdacon_bmove()
456 scr_memmovew(MDA_ADDR(0,dy), MDA_ADDR(0,sy), height*width*2); in mdacon_bmove()
462 for (; height > 0; height--) { in mdacon_bmove()
468 src = MDA_ADDR(sx, sy+height-1); in mdacon_bmove()
469 dest = MDA_ADDR(dx, dy+height-1); in mdacon_bmove()
[all …]
Dfbcon_rotate.c37 vc->vc_font.height; in fbcon_rotate_font()
42 d_cellsize = ((vc->vc_font.height + 7)/8) * in fbcon_rotate_font()
68 vc->vc_font.height); in fbcon_rotate_font()
77 vc->vc_font.height); in fbcon_rotate_font()
85 vc->vc_font.height); in fbcon_rotate_font()
Dvgacon.c574 c->vc_font.height = vga_video_font_height; in vgacon_init()
712 c->vc_font.height - in vgacon_cursor()
713 (c->vc_font.height < in vgacon_cursor()
715 c->vc_font.height - in vgacon_cursor()
716 (c->vc_font.height < in vgacon_cursor()
721 c->vc_font.height / 3, in vgacon_cursor()
722 c->vc_font.height - in vgacon_cursor()
723 (c->vc_font.height < in vgacon_cursor()
728 (c->vc_font.height * 2) / 3, in vgacon_cursor()
729 c->vc_font.height - in vgacon_cursor()
[all …]
Dsticon.c186 int dy, int dx, int height, int width) in sticon_bmove() argument
188 if (!width || !height) in sticon_bmove()
191 if (((sy <= p->cursor_y) && (p->cursor_y < sy+height) && in sticon_bmove()
193 ((dy <= p->cursor_y) && (p->cursor_y < dy+height) && in sticon_bmove()
198 sti_bmove(sticon_sti, sy, sx, dy, dx, height, width); in sticon_bmove()
226 static void sticon_clear(struct vc_data *conp, int sy, int sx, int height, in sticon_clear() argument
229 if (!height || !width) in sticon_clear()
232 sti_clear(sticon_sti, sy, sx, height, width, conp->vc_video_erase_char); in sticon_clear()
Dfbcon.c160 static void fbcon_clear(struct vc_data *vc, int sy, int sx, int height,
170 int height, int width);
184 int dy, int dx, int height, int width, u_int y_break);
583 logo_lines = DIV_ROUND_UP(logo_height, vc->vc_font.height); in fbcon_prepare_logo()
884 disp->height = var->height; in var_to_display()
908 var->height = disp->height; in display_to_var()
996 vc->vc_font.height = font->height; in fbcon_startup()
1006 rows /= vc->vc_font.height; in fbcon_startup()
1055 vc->vc_font.height = fvc->vc_font.height; in fbcon_init()
1069 vc->vc_font.height = font->height; in fbcon_init()
[all …]
Dsticore.c167 int height, int width, u8 color) in sti_set() argument
178 .height = height, in sti_set()
195 int height, int width, int c) in sti_clear() argument
206 .height = height* sti->font_height, in sti_clear()
227 int dst_y, int dst_x, int height, int width) in sti_bmove() argument
236 .height = height* sti->font_height, in sti_bmove()
509 fbfont->width, fbfont->height, fbfont->name); in sti_select_fbfont()
511 bpc = ((fbfont->width+7)/8) * fbfont->height; in sti_select_fbfont()
522 nf->height = fbfont->height; in sti_select_fbfont()
527 nf->underline_pos = fbfont->height - nf->underline_height; in sti_select_fbfont()
[all …]
Dsoftcursor.c35 dsize = s_pitch * cursor->image.height; in soft_cursor()
53 size = d_pitch * image->height + buf_align; in soft_cursor()
72 fb_pad_aligned_buffer(dst, d_pitch, src, s_pitch, image->height); in soft_cursor()
/linux-4.1.27/lib/
Dradix-tree.c313 static inline unsigned long radix_tree_maxindex(unsigned int height) in radix_tree_maxindex() argument
315 return height_to_maxindex[height]; in radix_tree_maxindex()
325 unsigned int height; in radix_tree_extend() local
329 height = root->height + 1; in radix_tree_extend()
330 while (index > radix_tree_maxindex(height)) in radix_tree_extend()
331 height++; in radix_tree_extend()
334 root->height = height; in radix_tree_extend()
350 newheight = root->height+1; in radix_tree_extend()
363 root->height = newheight; in radix_tree_extend()
364 } while (height > root->height); in radix_tree_extend()
[all …]
Dbtree.c179 head->height = 0; in __btree_init()
210 int height = head->height; in btree_last() local
213 if (height == 0) in btree_last()
216 for ( ; height > 1; height--) in btree_last()
244 int i, height = head->height; in btree_lookup() local
247 if (height == 0) in btree_lookup()
250 for ( ; height > 1; height--) { in btree_lookup()
274 int i, height = head->height; in btree_update() local
277 if (height == 0) in btree_update()
280 for ( ; height > 1; height--) { in btree_update()
[all …]
/linux-4.1.27/drivers/video/fbdev/mb862xx/
Dmb862xxfb_accel.c67 cmd[5] = (area->height << 16) | area->width; in mb86290fb_copyarea()
76 u16 width, u16 height, u32 fgcolor, in mb86290fb_imageblit1() argument
101 (GDC_CMD_BITMAP << 16) | (2 + (step * height)); in mb86290fb_imageblit1()
103 cmd[8] = (height << 16) | width; in mb86290fb_imageblit1()
105 while (i < height) { in mb86290fb_imageblit1()
125 u16 width, u16 height, u32 fgcolor, in mb86290fb_imageblit8() argument
134 (GDC_CMD_BLT_DRAW << 16) | (2 + (height * step)); in mb86290fb_imageblit8()
136 cmd[2] = (height << 16) | width; in mb86290fb_imageblit8()
142 while (i < height) { in mb86290fb_imageblit8()
164 u16 width, u16 height, u32 fgcolor, in mb86290fb_imageblit16() argument
[all …]
/linux-4.1.27/drivers/video/fbdev/sis/
Dsis_accel.c118 int src_y, int dst_x, int dst_y, int width, int height) in SiS300SubsequentScreenToScreenCopy() argument
139 src_y += height-1; in SiS300SubsequentScreenToScreenCopy()
140 dst_y += height-1; in SiS300SubsequentScreenToScreenCopy()
142 SiS300SetupRect(width, height) in SiS300SubsequentScreenToScreenCopy()
205 int dst_x, int dst_y, int width, int height) in SiS310SubsequentScreenToScreenCopy() argument
221 if((mymax - mymin) < height) { in SiS310SubsequentScreenToScreenCopy()
244 SiS310SetupRect(width, height) in SiS310SubsequentScreenToScreenCopy()
324 int width, height; in fbcon_sis_fillrect() local
335 if(!rect->width || !rect->height || rect->dx >= vxres || rect->dy >= vyres) in fbcon_sis_fillrect()
340 height = ((rect->dy + rect->height) > vyres) ? (vyres - rect->dy) : rect->height; in fbcon_sis_fillrect()
[all …]
/linux-4.1.27/scripts/kconfig/lxdialog/
Dyesno.c27 static void print_buttons(WINDOW * dialog, int height, int width, int selected) in print_buttons() argument
30 int y = height - 2; in print_buttons()
42 int dialog_yesno(const char *title, const char *prompt, int height, int width) in dialog_yesno() argument
48 if (getmaxy(stdscr) < (height + YESNO_HEIGTH_MIN)) in dialog_yesno()
55 y = (getmaxy(stdscr) - height) / 2; in dialog_yesno()
57 draw_shadow(stdscr, y, x, height, width); in dialog_yesno()
59 dialog = newwin(height, width, y, x); in dialog_yesno()
62 draw_box(dialog, 0, 0, height, width, in dialog_yesno()
65 mvwaddch(dialog, height - 3, 0, ACS_LTEE); in dialog_yesno()
76 print_buttons(dialog, height, width, 0); in dialog_yesno()
[all …]
Dtextbox.c25 static void print_page(WINDOW *win, int height, int width, update_text_fn
61 int height, width, boxh, boxw; in dialog_textbox() local
82 getmaxyx(stdscr, height, width); in dialog_textbox()
83 if (height < TEXTBOX_HEIGTH_MIN || width < TEXTBOX_WIDTH_MIN) in dialog_textbox()
86 height = initial_height; in dialog_textbox()
88 if (height > 4) in dialog_textbox()
89 height -= 4; in dialog_textbox()
91 height = 0; in dialog_textbox()
102 y = (getmaxy(stdscr) - height) / 2; in dialog_textbox()
104 draw_shadow(stdscr, y, x, height, width); in dialog_textbox()
[all …]
Dinputbox.c29 static void print_buttons(WINDOW * dialog, int height, int width, int selected) in print_buttons() argument
32 int y = height - 2; in print_buttons()
44 int dialog_inputbox(const char *title, const char *prompt, int height, int width, in dialog_inputbox() argument
59 if (getmaxy(stdscr) <= (height - INPUTBOX_HEIGTH_MIN)) in dialog_inputbox()
66 y = (getmaxy(stdscr) - height) / 2; in dialog_inputbox()
68 draw_shadow(stdscr, y, x, height, width); in dialog_inputbox()
70 dialog = newwin(height, width, y, x); in dialog_inputbox()
73 draw_box(dialog, 0, 0, height, width, in dialog_inputbox()
76 mvwaddch(dialog, height - 3, 0, ACS_LTEE); in dialog_inputbox()
95 print_buttons(dialog, height, width, 0); in dialog_inputbox()
[all …]
Dmenubox.c112 int height) in print_arrows() argument
132 y = y + height + 1; in print_arrows()
136 if ((height < item_no) && (scroll + height < item_no)) { in print_arrows()
155 static void print_buttons(WINDOW * win, int height, int width, int selected) in print_buttons() argument
158 int y = height - 2; in print_buttons()
188 int height, width, menu_height; in dialog_menu() local
194 height = getmaxy(stdscr); in dialog_menu()
196 if (height < MENUBOX_HEIGTH_MIN || width < MENUBOX_WIDTH_MIN) in dialog_menu()
199 height -= 4; in dialog_menu()
201 menu_height = height - 10; in dialog_menu()
[all …]
Dchecklist.c66 int y, int x, int height) in print_arrows() argument
82 y = y + height + 1; in print_arrows()
85 if ((height < item_no) && (scroll + choice < item_no - 1)) { in print_arrows()
101 static void print_buttons(WINDOW * dialog, int height, int width, int selected) in print_buttons() argument
104 int y = height - 2; in print_buttons()
117 int dialog_checklist(const char *title, const char *prompt, int height, in dialog_checklist() argument
135 if (getmaxy(stdscr) < (height + CHECKLIST_HEIGTH_MIN)) in dialog_checklist()
144 y = (getmaxy(stdscr) - height) / 2; in dialog_checklist()
146 draw_shadow(stdscr, y, x, height, width); in dialog_checklist()
148 dialog = newwin(height, width, y, x); in dialog_checklist()
[all …]
Ddialog.h221 void attr_clear(WINDOW * win, int height, int width, chtype attr);
226 void draw_box(WINDOW * win, int y, int x, int height, int width, chtype box,
228 void draw_shadow(WINDOW * win, int y, int x, int height, int width);
231 int dialog_yesno(const char *title, const char *prompt, int height, int width);
232 int dialog_msgbox(const char *title, const char *prompt, int height,
243 int dialog_checklist(const char *title, const char *prompt, int height,
245 int dialog_inputbox(const char *title, const char *prompt, int height,
Dutil.c242 void attr_clear(WINDOW * win, int height, int width, chtype attr) in attr_clear() argument
247 for (i = 0; i < height; i++) { in attr_clear()
317 int height, width; in init_dialog() local
324 getmaxyx(stdscr, height, width); in init_dialog()
325 if (height < WINDOW_HEIGTH_MIN || width < WINDOW_WIDTH_MIN) { in init_dialog()
477 draw_box(WINDOW * win, int y, int x, int height, int width, in draw_box() argument
483 for (i = 0; i < height; i++) { in draw_box()
488 else if (i == height - 1 && !j) in draw_box()
492 else if (i == height - 1 && j == width - 1) in draw_box()
496 else if (i == height - 1) in draw_box()
[all …]
/linux-4.1.27/arch/x86/platform/efi/
Dearly_printk.c83 u32 i, height; in early_efi_scroll_up() local
86 height = boot_params.screen_info.lfb_height; in early_efi_scroll_up()
88 for (i = 0; i < height - font->height; i++) { in early_efi_scroll_up()
93 src = early_efi_map((i + font->height) * len, len); in early_efi_scroll_up()
114 src = font->data + c * font->height; in early_efi_write_char()
151 for (h = 0; h < font->height; h++) { in early_efi_write()
177 efi_y += font->height; in early_efi_write()
184 efi_y += font->height; in early_efi_write()
187 if (efi_y + font->height > si->lfb_height) { in early_efi_write()
190 efi_y -= font->height; in early_efi_write()
[all …]
/linux-4.1.27/drivers/staging/fbtft/
Dflexfb.c42 static unsigned int height; variable
43 module_param(height, uint, 0);
44 MODULE_PARM_DESC(height, "Display height");
149 write_reg(par, 0x0021, height - 1 - ys); in flexfb_set_addr_win_1()
157 write_reg(par, 0x0021, height - 1 - xs); in flexfb_set_addr_win_1()
270 if (!height) in flexfb_probe_common()
271 height = 160; in flexfb_probe_common()
281 if (!height) in flexfb_probe_common()
282 height = 220; in flexfb_probe_common()
293 if (!height) in flexfb_probe_common()
[all …]
/linux-4.1.27/drivers/media/pci/solo6x10/
Dsolo6x10-enc.c35 unsigned long height; in solo_capture_config() local
60 height = solo_dev->video_vsize; in solo_capture_config()
63 SOLO_DIM_V_MB_NUM_FRAME(height / 8) | in solo_capture_config()
64 SOLO_DIM_V_MB_NUM_FIELD(height / 16)); in solo_capture_config()
68 height = solo_dev->video_vsize; in solo_capture_config()
71 SOLO_DIM_V_MB_NUM_FRAME(height / 8) | in solo_capture_config()
72 SOLO_DIM_V_MB_NUM_FIELD(height / 16)); in solo_capture_config()
76 height = solo_dev->video_vsize / 2; in solo_capture_config()
79 SOLO_DIM_V_MB_NUM_FRAME(height / 8) | in solo_capture_config()
80 SOLO_DIM_V_MB_NUM_FIELD(height / 16)); in solo_capture_config()
[all …]
/linux-4.1.27/drivers/media/platform/vivid/
Dvivid-vid-common.c498 dev->src_rect.height != dev->sink_rect.height) in vivid_vid_can_loop()
556 mp->height = pix->height; in fmt_sp2mp()
584 pix->height = mp->height; in fmt_sp2mp_func()
600 r->height = size->height; in rect_set_size_to()
608 if (r->height < min_size->height) in rect_set_min_size()
609 r->height = min_size->height; in rect_set_min_size()
617 if (r->height > max_size->height) in rect_set_max_size()
618 r->height = max_size->height; in rect_set_max_size()
631 if (r->top + r->height > boundary->height) in rect_map_inside()
632 r->top = boundary->height - r->height; in rect_map_inside()
[all …]
Dvivid-vid-out.c41 unsigned h = dev->fmt_out_rect.height; in vid_out_queue_setup()
140 size = dev->bytesperline_out[p] * dev->fmt_out_rect.height + in vid_out_buf_prepare()
230 dev->sink_rect.height = 480; in vivid_update_format_out()
234 dev->sink_rect.height = 576; in vivid_update_format_out()
242 dev->sink_rect.height = bt->height; in vivid_update_format_out()
252 if (bt->width == 720 && bt->height <= 576) in vivid_update_format_out()
267 dev->crop_out.height /= 2; in vivid_update_format_out()
303 dev->sink_rect.width == 720 && dev->sink_rect.height <= 576) in vivid_get_pixel_aspect()
304 return dev->sink_rect.height == 480 ? in vivid_get_pixel_aspect()
319 mp->height = dev->fmt_out_rect.height; in vivid_g_fmt_vid_out()
[all …]
Dvivid-vid-cap.c104 unsigned h = dev->fmt_cap_rect.height; in vid_cap_queue_setup()
191 size = tpg_g_line_width(&dev->tpg, p) * dev->fmt_cap_rect.height + in vid_cap_buf_prepare()
389 dev->src_rect.width == 720 && dev->src_rect.height <= 576) in vivid_get_pixel_aspect()
390 return dev->src_rect.height == 480 ? in vivid_get_pixel_aspect()
409 dev->src_rect.height = webcam_sizes[dev->webcam_size_idx].height; in vivid_update_format_cap()
419 dev->src_rect.height = 480; in vivid_update_format_cap()
423 dev->src_rect.height = 576; in vivid_update_format_cap()
431 dev->src_rect.height = bt->height; in vivid_update_format_cap()
448 if (bt->width == 720 && bt->height <= 576) in vivid_update_format_cap()
461 tpg_reset_source(&dev->tpg, dev->src_rect.width, dev->src_rect.height, dev->field_cap); in vivid_update_format_cap()
[all …]
Dvivid-kthread-cap.c86 if (fb_y >= r->top && fb_y < r->top + r->height && in copy_pix()
184 dev->compose_out.width, dev->compose_out.height in vivid_precalc_copy_rects()
199 dev->loop_vid_copy.width, dev->loop_vid_copy.height, in vivid_precalc_copy_rects()
201 dev->loop_vid_out.width, dev->loop_vid_out.height, in vivid_precalc_copy_rects()
203 dev->loop_vid_cap.width, dev->loop_vid_cap.height, in vivid_precalc_copy_rects()
224 dev->loop_fb_copy.width, dev->loop_fb_copy.height, in vivid_precalc_copy_rects()
226 dev->loop_vid_overlay.width, dev->loop_vid_overlay.height, in vivid_precalc_copy_rects()
228 dev->loop_vid_overlay_cap.width, dev->loop_vid_overlay_cap.height, in vivid_precalc_copy_rects()
255 unsigned img_height = dev->compose_cap.height; in vivid_copy_buffer()
277 vid_out_int_part = dev->loop_vid_out.height / dev->loop_vid_cap.height; in vivid_copy_buffer()
[all …]
Dvivid-tpg.c103 tpg->crop.height = tpg->compose.height = h; in tpg_init()
383 void tpg_reset_source(struct tpg_data *tpg, unsigned width, unsigned height, in tpg_reset_source() argument
389 tpg->src_height = height; in tpg_reset_source()
391 tpg->buf_height = height; in tpg_reset_source()
397 tpg->crop.height = height; in tpg_reset_source()
400 tpg->compose.height = tpg->buf_height; in tpg_reset_source()
1219 tpg->square.height = sq_h; in tpg_calculate_square_border()
1224 tpg->border.height = h; in tpg_calculate_square_border()
1236 tpg->border.height = ((3 * w) / 4) & ~1; in tpg_calculate_square_border()
1237 tpg->border.top = (h - tpg->border.height) / 2; in tpg_calculate_square_border()
[all …]
/linux-4.1.27/drivers/video/fbdev/
Datafb_mfb.c26 int height, int width) in atafb_mfb_copyarea() argument
34 fb_memmove(dest, src, height * (width >> 3)); in atafb_mfb_copyarea()
38 for (rows = height; rows--;) { in atafb_mfb_copyarea()
44 src = (u8 *)info->screen_base + (sy + height - 1) * next_line + (sx >> 3); in atafb_mfb_copyarea()
45 dest = (u8 *)info->screen_base + (dy + height - 1) * next_line + (dx >> 3); in atafb_mfb_copyarea()
46 for (rows = height; rows--;) { in atafb_mfb_copyarea()
55 int sy, int sx, int height, int width) in atafb_mfb_fillrect() argument
64 fb_memset255(dest, height * (width >> 3)); in atafb_mfb_fillrect()
66 fb_memclear(dest, height * (width >> 3)); in atafb_mfb_fillrect()
68 for (rows = height; rows--; dest += next_line) { in atafb_mfb_fillrect()
Datafb.h5 int dx, int height, int width);
7 int sy, int sx, int height, int width);
13 int dx, int height, int width);
15 int sy, int sx, int height, int width);
21 int dx, int height, int width);
23 int sy, int sx, int height, int width);
29 int dx, int height, int width);
31 int sy, int sx, int height, int width);
Datafb_iplan2p2.c26 int height, int width) in atafb_iplan2p2_copyarea() argument
46 colsize = height; in atafb_iplan2p2_copyarea()
54 memmove32_col(dst, src, 0xff00ff, height, next_line - BPL * 2); in atafb_iplan2p2_copyarea()
65 for (j = height; j > 0; j--) { in atafb_iplan2p2_copyarea()
74 0xff00ff00, height, next_line - BPL * 2); in atafb_iplan2p2_copyarea()
91 for (j = height; j > 0; j--) { in atafb_iplan2p2_copyarea()
123 for (i = height; i; i--) { in atafb_iplan2p2_copyarea()
165 for (i = height; i; i--) { in atafb_iplan2p2_copyarea()
194 int sy, int sx, int height, int width) in atafb_iplan2p2_fillrect() argument
206 for (i = height; i; i--) { in atafb_iplan2p2_fillrect()
[all …]
Dtgafb.c623 u32 fgcolor, bgcolor, dx, dy, width, height, vxres, vyres, pixelmask; local
635 height = image->height;
649 if (dy + height > vyres)
650 height = vyres - dy;
709 for (i = 0; i < height; ++i) {
739 for (i = 0; i < height; ++i) {
762 for (i = 0; i < height; ++i) {
789 for (i = 0; i < height; ++i) {
811 for (i = 0; i < height; ++i) {
836 u32 color, dx, dy, width, height, vxres, vyres; local
[all …]
Datafb_iplan2p4.c26 int height, int width) in atafb_iplan2p4_copyarea() argument
46 colsize = height; in atafb_iplan2p4_copyarea()
54 memmove32_col(dst, src, 0xff00ff, height, next_line - BPL * 2); in atafb_iplan2p4_copyarea()
65 for (j = height; j > 0; j--) { in atafb_iplan2p4_copyarea()
74 0xff00ff00, height, next_line - BPL * 2); in atafb_iplan2p4_copyarea()
91 for (j = height; j > 0; j--) { in atafb_iplan2p4_copyarea()
123 for (i = height; i; i--) { in atafb_iplan2p4_copyarea()
172 for (i = height; i; i--) { in atafb_iplan2p4_copyarea()
208 int sy, int sx, int height, int width) in atafb_iplan2p4_fillrect() argument
220 for (i = height; i; i--) { in atafb_iplan2p4_fillrect()
[all …]
Dhitfb.c35 .height = -1,
61 u16 width, u16 height) in hitfb_accel_set_dest() argument
68 fb_writew(height-1, HD64461_BBTDHR); in hitfb_accel_set_dest()
76 u16 dy, u16 width, u16 height, u16 rop, in hitfb_accel_bitblt() argument
82 height--; in hitfb_accel_bitblt()
86 saddr = WIDTH * (sy + height) + sx + width; in hitfb_accel_bitblt()
87 daddr = WIDTH * (dy + height) + dx + width; in hitfb_accel_bitblt()
90 maddr = ((width >> 3) + 1) * (height + 1) - 1; in hitfb_accel_bitblt()
93 (((width >> 4) + 1) * (height + 1) - 1) * 2; in hitfb_accel_bitblt()
112 fb_writew(height, HD64461_BBTDHR); in hitfb_accel_bitblt()
[all …]
Datafb_iplan2p8.c33 int height, int width) in atafb_iplan2p8_copyarea() argument
53 colsize = height; in atafb_iplan2p8_copyarea()
61 memmove32_col(dst, src, 0xff00ff, height, next_line - BPL * 2); in atafb_iplan2p8_copyarea()
72 for (j = height; j > 0; j--) { in atafb_iplan2p8_copyarea()
81 0xff00ff00, height, next_line - BPL * 2); in atafb_iplan2p8_copyarea()
98 for (j = height; j > 0; j--) { in atafb_iplan2p8_copyarea()
130 for (i = height; i; i--) { in atafb_iplan2p8_copyarea()
193 for (i = height; i; i--) { in atafb_iplan2p8_copyarea()
243 int sy, int sx, int height, int width) in atafb_iplan2p8_fillrect() argument
255 for (i = height; i; i--) { in atafb_iplan2p8_fillrect()
[all …]
Dvga16fb.c75 .height = -1,
511 var->height = -1; in vga16fb_check_var()
833 int line_ofs, height; in vga_8planes_fillrect() local
848 height = rect->height; in vga_8planes_fillrect()
850 while (height--) { in vga_8planes_fillrect()
867 for (y = 0; y < rect->height; y++) { in vga_8planes_fillrect()
883 int x, x2, y2, vxres, vyres, width, height, line_ofs; in vga16fb_fillrect() local
889 if (!rect->width || !rect->height || rect->dx > vxres || rect->dy > vyres) in vga16fb_fillrect()
896 y2 = rect->dy + rect->height; in vga16fb_fillrect()
905 height = y2 - rect->dy; in vga16fb_fillrect()
[all …]
Damba-clcd-versatile.c24 .height = -1,
48 .height = -1,
73 .height = -1,
97 .height = -1,
122 .height = -1,
Dssd1307fb.c50 u32 height; member
131 array = ssd1307fb_alloc_array(par->width * par->height / 8, in ssd1307fb_update_display()
165 for (i = 0; i < (par->height / 8); i++) { in ssd1307fb_update_display()
180 ssd1307fb_write_array(par->client, array, par->width * par->height / 8); in ssd1307fb_update_display()
328 ret = ssd1307fb_write_cmd(par->client, par->height - 1); in ssd1307fb_ssd1306_init()
417 par->page_offset + (par->height / 8) - 1); in ssd1307fb_ssd1306_init()
484 if (of_property_read_u32(node, "solomon,height", &par->height)) in ssd1307fb_probe()
485 par->height = 16; in ssd1307fb_probe()
490 vmem_size = par->width * par->height / 8; in ssd1307fb_probe()
507 info->var.yres = par->height; in ssd1307fb_probe()
[all …]
Digafb.c86 .height = -1,
110 .height = -1,
133 .height = -1,
156 .height = -1,
482 int height = prom_getintdefault(node, "height", 768); in igafb_init() local
486 if (height == 768) in igafb_init()
490 if (height == 900) in igafb_init()
494 if (height == 1024) in igafb_init()
Dsunxvr1000.c21 unsigned int height; member
31 gp->height = of_getintprop_default(gp->of_node, "height", 0); in gfb_get_props()
34 if (!gp->width || !gp->height) { in gfb_get_props()
92 var->yres = gp->height; in gfb_set_fbinfo()
140 gp->fb_size = info->fix.line_length * gp->height; in gfb_probe()
Dgoldfishfb.c188 u32 width, height; in goldfish_fb_probe() local
218 height = readl(fb->reg_base + FB_GET_HEIGHT); in goldfish_fb_probe()
230 fb->fb.var.yres = height; in goldfish_fb_probe()
232 fb->fb.var.yres_virtual = height * 2; in goldfish_fb_probe()
235 fb->fb.var.height = readl(fb->reg_base + FB_GET_PHYS_HEIGHT); in goldfish_fb_probe()
246 framesize = width * height * 2 * 2; in goldfish_fb_probe()
251 width, height, fb->fb.screen_base); in goldfish_fb_probe()
Dsunxvr2500.c25 unsigned int height; member
35 sp->height = of_getintprop_default(sp->of_node, "height", 0); in s3d_get_props()
38 if (!sp->width || !sp->height) { in s3d_get_props()
96 var->yres = sp->height; in s3d_set_fbinfo()
181 sp->fb_size = info->fix.line_length * sp->height; in s3d_pci_register()
Dc2p.h14 u32 height, u32 dst_nextline, u32 dst_nextplane,
18 u32 height, u32 dst_nextline, u32 src_nextline,
Dsticore.h52 #define sti_font_y(sti) (PTR_STI(sti->font)->height)
236 u8 height; member
300 s16 height; /* block height in pixels */ member
395 int height, int width, u8 color);
397 int height, int width, int c);
399 int dst_y, int dst_x, int height, int width);
Damifb.c681 __u16 height; member
740 u_short height; member
1501 par->crsr.height = par->crsr.width = 0; in ami_decode_var()
1547 var->height = -1; in ami_encode_var()
1831 fix->crsr_height = fix->crsr_ysize = par->crsr.height; in ami_get_fix_cursorinfo()
1849 short height, width, bits, words; in ami_get_var_cursorinfo() local
1852 size = par->crsr.height * par->crsr.width; in ami_get_var_cursorinfo()
1853 alloc = var->height * var->width; in ami_get_var_cursorinfo()
1854 var->height = par->crsr.height; in ami_get_var_cursorinfo()
1858 if (size > var->height * var->width) in ami_get_var_cursorinfo()
[all …]
Dsimplefb.c40 .height = -1,
92 u32 height; member
111 ret = of_property_read_u32(np, "height", &params->height); in simplefb_parse_dt()
150 params->height = pd->height; in simplefb_parse_pd()
311 info->var.yres = params.height; in simplefb_probe()
313 info->var.yres_virtual = params.height; in simplefb_probe()
Dpmag-aa-fb.c77 u16 x, y, width, height; member
148 static int aafbcon_set_font(struct display *disp, int width, int height) in aafbcon_set_font() argument
154 if (width > 64 || height > 64 || width < 0 || height < 0) in aafbcon_set_font()
157 c->height = height; in aafbcon_set_font()
160 bt431_set_font(info->bt431, fgc, width, height); in aafbcon_set_font()
191 c->width = c->height = 0; in aafb_cursor_init()
Dfb-puv3.c82 .height = -1,
122 int aheight = region->height; in unifb_prim_fillrect()
194 if (!modded.width || !modded.height || in unifb_fillrect()
200 if (modded.dy + modded.height > vyres) in unifb_fillrect()
201 modded.height = vyres - modded.dy; in unifb_fillrect()
210 int aheight = area->height; in unifb_prim_copyarea()
294 modded.height = area->height; in unifb_copyarea()
304 if (!modded.width || !modded.height || in unifb_copyarea()
313 if (modded.sy + modded.height > vyres) in unifb_copyarea()
314 modded.height = vyres - modded.sy; in unifb_copyarea()
[all …]
/linux-4.1.27/include/video/
Domapvrfb.h42 extern void omap_vrfb_adjust_size(u16 *width, u16 *height,
44 extern u32 omap_vrfb_min_phys_size(u16 width, u16 height, u8 bytespp);
47 u16 width, u16 height,
49 extern int omap_vrfb_map_angle(struct vrfb *vrfb, u16 height, u8 rot);
56 static inline void omap_vrfb_adjust_size(u16 *width, u16 *height, in omap_vrfb_adjust_size() argument
58 static inline u32 omap_vrfb_min_phys_size(u16 width, u16 height, u8 bytespp) in omap_vrfb_min_phys_size() argument
63 u16 width, u16 height, unsigned bytespp, bool yuv_mode) {} in omap_vrfb_setup() argument
64 static inline int omap_vrfb_map_angle(struct vrfb *vrfb, u16 height, u8 rot) in omap_vrfb_map_angle() argument
/linux-4.1.27/drivers/media/i2c/soc_camera/
Dtw9910.c224 unsigned short height; member
242 .height = 480,
249 .height = 480,
256 .height = 240,
263 .height = 240,
270 .height = 120,
277 .height = 120,
287 .height = 576,
294 .height = 576,
301 .height = 288,
[all …]
Dov5642.c741 int height = priv->crop_rect.height; in ov5642_set_resolution() local
745 int start_y = (OV5642_SENSOR_SIZE_Y - height) / 2; in ov5642_set_resolution()
763 ret = reg_write16(client, REG_WINDOW_HEIGHT_HIGH, height); in ov5642_set_resolution()
767 priv->crop_rect.height = height; in ov5642_set_resolution()
772 ret = reg_write16(client, REG_OUT_HEIGHT_HIGH, height); in ov5642_set_resolution()
784 ret = reg_write16(client, REG_AVG_WINDOW_END_Y_HIGH, height); in ov5642_set_resolution()
797 mf->height = priv->crop_rect.height; in ov5642_try_fmt()
836 mf->height = priv->crop_rect.height; in ov5642_g_fmt()
860 &rect.height, 32, OV5642_MAX_HEIGHT, 1, 0); in ov5642_s_crop()
863 priv->crop_rect.height = rect.height; in ov5642_s_crop()
[all …]
Dmt9m111.c212 unsigned int height; /* sizes */ member
320 unsigned int width, unsigned int height) in mt9m111_setup_rect_ctx() argument
325 ret = mt9m111_reg_write(client, ctx->reducer_yzoom, rect->height); in mt9m111_setup_rect_ctx()
329 ret = mt9m111_reg_write(client, ctx->reducer_ysize, height); in mt9m111_setup_rect_ctx()
334 int width, int height, u32 code) in mt9m111_setup_geometry() argument
346 ret = reg_write(WINDOW_HEIGHT, rect->height); in mt9m111_setup_geometry()
352 rect, width, height); in mt9m111_setup_geometry()
355 rect, width, height); in mt9m111_setup_geometry()
359 __func__, code, rect->width, rect->height, rect->left, rect->top, in mt9m111_setup_geometry()
360 width, height, ret); in mt9m111_setup_geometry()
[all …]
Dmt9m001.c187 rect.height = ALIGN(rect.height, 2); in mt9m001_s_crop()
196 soc_camera_limit_side(&rect.top, &rect.height, in mt9m001_s_crop()
199 mt9m001->total_h = rect.height + mt9m001->y_skip_top + vblank; in mt9m001_s_crop()
218 rect.height + mt9m001->y_skip_top - 1); in mt9m001_s_crop()
244 a->bounds.height = MT9M001_MAX_HEIGHT; in mt9m001_cropcap()
260 mf->height = mt9m001->rect.height; in mt9m001_g_fmt()
278 .height = mf->height, in mt9m001_s_fmt()
287 mf->height = mt9m001->rect.height; in mt9m001_s_fmt()
305 &mf->height, MT9M001_MIN_HEIGHT + mt9m001->y_skip_top, in mt9m001_try_fmt()
309 mf->height = ALIGN(mf->height - 1, 2); in mt9m001_try_fmt()
[all …]
Dov2640.c278 u32 height; member
552 {.name = n, .width = w , .height = h, .regs = r }
754 static const struct ov2640_win_size *ov2640_select_win(u32 *width, u32 *height) in ov2640_select_win() argument
760 ov2640_supported_win_sizes[i].height >= *height) { in ov2640_select_win()
762 *height = ov2640_supported_win_sizes[i].height; in ov2640_select_win()
768 *height = ov2640_supported_win_sizes[default_size].height; in ov2640_select_win()
772 static int ov2640_set_params(struct i2c_client *client, u32 *width, u32 *height, in ov2640_set_params() argument
780 priv->win = ov2640_select_win(width, height); in ov2640_set_params()
836 *height = priv->win->height; in ov2640_set_params()
855 u32 width = SVGA_WIDTH, height = SVGA_HEIGHT; in ov2640_g_fmt() local
[all …]
Dov772x.c493 .height = VGA_HEIGHT,
502 .height = QVGA_HEIGHT,
662 static const struct ov772x_win_size *ov772x_select_win(u32 width, u32 height) in ov772x_select_win() argument
670 + abs(height - ov772x_win_sizes[i].rect.height); in ov772x_select_win()
697 *win = ov772x_select_win(mf->width, mf->height); in ov772x_select_params()
770 ret = ov772x_write(client, VSIZE, win->rect.height >> 1); in ov772x_set_params()
776 ret = ov772x_write(client, VOUTSIZE, win->rect.height >> 1); in ov772x_set_params()
782 ((win->rect.height & 1) << HREF_VSIZE_SHIFT) | in ov772x_set_params()
787 ((win->rect.height & 1) << EXHCH_VSIZE_SHIFT) | in ov772x_set_params()
859 a->c.height = VGA_HEIGHT; in ov772x_g_crop()
[all …]
Dov6650.c459 rect.height = ALIGN(rect.height, 2); in ov6650_s_crop()
462 soc_camera_limit_side(&rect.top, &rect.height, in ov6650_s_crop()
478 (rect.top + rect.height) >> 1); in ov6650_s_crop()
481 priv->rect.height = rect.height; in ov6650_s_crop()
494 a->bounds.height = H_CIF; in ov6650_cropcap()
509 mf->height = priv->rect.height >> priv->half_scale; in ov6650_g_fmt()
517 static bool is_unscaled_ok(int width, int height, struct v4l2_rect *rect) in is_unscaled_ok() argument
519 return width > rect->width >> 1 || height > rect->height >> 1; in is_unscaled_ok()
546 bool half_scale = !is_unscaled_ok(mf->width, mf->height, &priv->rect); in ov6650_s_fmt()
552 .top = priv->rect.top + (priv->rect.height >> 1) - in ov6650_s_fmt()
[all …]
Dov9740.c547 static void ov9740_res_roundup(u32 *width, u32 *height) in ov9740_res_roundup() argument
556 if (*height > OV9740_MAX_HEIGHT) in ov9740_res_roundup()
557 *height = OV9740_MAX_HEIGHT; 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()
628 ret = ov9740_reg_write(client, OV9740_Y_OUTPUT_SIZE_HI, height >> 8); in ov9740_set_res()
631 ret = ov9740_reg_write(client, OV9740_Y_OUTPUT_SIZE_LO, height & 0xff); in ov9740_set_res()
[all …]
Drj54n1cb0c.c161 unsigned short height; member
508 u32 width, u32 height) in rj54n1_set_rect() argument
514 ((height >> 8) & 7)); in rj54n1_set_rect()
519 ret = reg_write(client, reg_y, height & 0xff); in rj54n1_set_rect()
546 input_w = rect->width, input_h = rect->height; in rj54n1_s_crop()
567 rj54n1->height = output_h; in rj54n1_s_crop()
570 rj54n1->rect.height = input_h; in rj54n1_s_crop()
591 a->bounds.height = RJ54N1_MAX_HEIGHT; in rj54n1_cropcap()
610 mf->height = rj54n1->height; in rj54n1_g_fmt()
975 __func__, mf->code, mf->width, mf->height); in rj54n1_try_fmt()
[all …]
Dmt9t031.c241 xskip, yskip, rect->width, rect->height, rect->left, rect->top); in mt9t031_set_params()
277 rect->height + mt9t031->y_skip_top - 1); in mt9t031_set_params()
279 mt9t031->total_h = rect->height + mt9t031->y_skip_top + vblank; in mt9t031_set_params()
304 rect.height = ALIGN(rect.height, 2); in mt9t031_s_crop()
309 soc_camera_limit_side(&rect.top, &rect.height, in mt9t031_s_crop()
331 a->bounds.height = MT9T031_MAX_HEIGHT; in mt9t031_cropcap()
347 mf->height = mt9t031->rect.height / mt9t031->yskip; in mt9t031_g_fmt()
368 yskip = mt9t031_skip(&rect.height, mf->height, MT9T031_MAX_HEIGHT); in mt9t031_s_fmt()
386 &mf->height, MT9T031_MIN_HEIGHT, MT9T031_MAX_HEIGHT, 1, 0); in mt9t031_try_fmt()
521 mt9t031->total_h = mt9t031->rect.height + in mt9t031_s_ctrl()
[all …]
Dmt9t112.c344 static void mt9t112_frame_check(u32 *width, u32 *height, u32 *left, u32 *top) in mt9t112_frame_check() argument
347 soc_camera_limit_side(top, height, 0, 0, MAX_HEIGHT); in mt9t112_frame_check()
352 u16 height) in mt9t112_set_a_frame_size() argument
356 u16 hstart = (MAX_HEIGHT - height) / 2; in mt9t112_set_a_frame_size()
360 mt9t112_mcu_write(ret, client, VAR(26, 2), height); in mt9t112_set_a_frame_size()
364 mt9t112_mcu_write(ret, client, VAR(18, 45), 8 + height); in mt9t112_set_a_frame_size()
371 mt9t112_mcu_write(ret, client, VAR(18, 6), 11 + height + hstart); in mt9t112_set_a_frame_size()
827 priv->frame.height); in mt9t112_s_stream()
834 priv->frame.height); in mt9t112_s_stream()
862 mt9t112_frame_check(&priv->frame.width, &priv->frame.height, in mt9t112_set_params()
[all …]
Dmt9v022.c290 rect.height = ALIGN(rect.height, 2); in mt9v022_s_crop()
297 soc_camera_limit_side(&rect.top, &rect.height, in mt9v022_s_crop()
305 rect.height + mt9v022->y_skip_top + 43); in mt9v022_s_crop()
341 rect.height + mt9v022->y_skip_top); in mt9v022_s_crop()
346 dev_dbg(&client->dev, "Frame %dx%d pixel\n", rect.width, rect.height); in mt9v022_s_crop()
369 a->bounds.height = MT9V022_MAX_HEIGHT; in mt9v022_cropcap()
385 mf->height = mt9v022->rect.height; in mt9v022_g_fmt()
403 .height = mf->height, in mt9v022_s_fmt()
431 mf->height = mt9v022->rect.height; in mt9v022_s_fmt()
451 &mf->height, MT9V022_MIN_HEIGHT + mt9v022->y_skip_top, in mt9v022_try_fmt()
[all …]
/linux-4.1.27/drivers/media/platform/vsp1/
Dvsp1_rwpf.c68 fse->min_height = format->height; in vsp1_rwpf_enum_frame_size()
69 fse->max_height = format->height; in vsp1_rwpf_enum_frame_size()
126 format->height = clamp_t(unsigned int, fmt->format.height, in vsp1_rwpf_set_format()
138 crop->height = fmt->format.height; in vsp1_rwpf_set_format()
170 sel->r.height = format->height; in vsp1_rwpf_get_selection()
201 sel->r.top = min_t(unsigned int, sel->r.top, format->height - 2); in vsp1_rwpf_set_selection()
208 sel->r.height = min_t(unsigned int, sel->r.height, in vsp1_rwpf_set_selection()
209 format->height - sel->r.top); in vsp1_rwpf_set_selection()
218 format->height = crop->height; in vsp1_rwpf_set_selection()
Dvsp1_sru.c219 fse->min_height = format->height; in sru_enum_frame_size()
221 format->height <= SRU_MAX_SIZE / 2) { in sru_enum_frame_size()
223 fse->max_height = format->height * 2; in sru_enum_frame_size()
226 fse->max_height = format->height; in sru_enum_frame_size()
260 fmt->height = clamp(fmt->height, SRU_MIN_SIZE, SRU_MAX_SIZE); in sru_try_format()
275 input_area = format->width * format->height; in sru_try_format()
277 * min(fmt->height, SRU_MAX_SIZE); in sru_try_format()
280 fmt->height <= SRU_MAX_SIZE / 2 && in sru_try_format()
283 fmt->height = format->height * 2; in sru_try_format()
286 fmt->height = format->height; in sru_try_format()
Dvsp1_uds.c133 vscale = uds_compute_ratio(input->height, output->height); in uds_s_stream()
162 (output->height << VI6_UDS_CLIP_SIZE_VSIZE_SHIFT)); in uds_s_stream()
224 uds_output_limits(format->height, &fse->min_height, in uds_enum_frame_size()
258 fmt->height = clamp(fmt->height, UDS_MIN_SIZE, UDS_MAX_SIZE); in uds_try_format()
269 uds_output_limits(format->height, &minimum, &maximum); in uds_try_format()
270 fmt->height = clamp(fmt->height, minimum, maximum); in uds_try_format()
Dvsp1_bru.c105 (format->height << VI6_BRU_VIRRPF_SIZE_VSIZE_SHIFT)); in bru_s_stream()
280 fmt->height = clamp(fmt->height, BRU_MIN_SIZE, BRU_MAX_SIZE); in bru_try_format()
305 compose->height = format->height; in bru_set_format()
336 sel->r.height = BRU_MAX_SIZE; in bru_get_selection()
368 sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1); in bru_set_selection()
376 sel->r.height = format->height; in bru_set_selection()
Dvsp1_lif.c58 obth = min(obth, (format->width + 1) / 2 * format->height - 4); in lif_s_stream()
129 fse->min_height = format->height; in lif_enum_frame_size()
130 fse->max_height = format->height; in lif_enum_frame_size()
172 format->height = clamp_t(unsigned int, fmt->format.height, in lif_set_format()
/linux-4.1.27/tools/perf/util/
Dsvghelper.c142 static double normalize_height(double height) in normalize_height() argument
144 if (height < 0.25) in normalize_height()
146 else if (height < 0.50) in normalize_height()
148 else if (height < 0.75) in normalize_height()
154 void svg_ubox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int err, int … in svg_ubox() argument
157 height = normalize_height(height); in svg_ubox()
168 SLOT_HALF * height, in svg_ubox()
173 void svg_lbox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int err, int … in svg_lbox() argument
176 height = normalize_height(height); in svg_lbox()
186 Yslot * SLOT_MULT + SLOT_HEIGHT - SLOT_HALF * height, in svg_lbox()
[all …]
Dsvghelper.h7 extern void svg_ubox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int er…
8 extern void svg_lbox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int er…
9 extern void svg_fbox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int er…
/linux-4.1.27/drivers/video/fbdev/matrox/
Dmatroxfb_accel.c208 int sx, int dy, int dx, int height, int width) in matrox_accel_bmove() argument
233 end = (sy+height-1)*vxres+sx+curr_ydstorg(minfo); in matrox_accel_bmove()
235 dy += height-1; in matrox_accel_bmove()
242 mga_ydstlen(dy, height); in matrox_accel_bmove()
249 int sy, int sx, int dy, int dx, int height, in matrox_accel_bmove_lin() argument
275 end = (sy+height-1)*vxres+sx+curr_ydstorg(minfo); in matrox_accel_bmove_lin()
277 dy += height-1; in matrox_accel_bmove_lin()
285 mga_outl(M_LEN | M_EXEC, height); in matrox_accel_bmove_lin()
297 …es_virtual >> 1, area->sy, area->sx >> 1, area->dy, area->dx >> 1, area->height, area->width >> 1); in matroxfb_cfb4_copyarea()
303 … minfo->fbcon.var.xres_virtual, area->sy, area->sx, area->dy, area->dx, area->height, area->width); in matroxfb_copyarea()
[all …]
/linux-4.1.27/drivers/media/usb/gspca/stv06xx/
Dstv06xx_hdcs.c77 int width, height; member
289 unsigned int width, unsigned int height) in hdcs_set_size() argument
298 height = (height + 3) & ~0x3; in hdcs_set_size()
305 if (height + 2 * hdcs->array.border + HDCS_1020_BOTTOM_Y_SKIP in hdcs_set_size()
306 > hdcs->array.height) in hdcs_set_size()
307 height = hdcs->array.height - 2 * hdcs->array.border - in hdcs_set_size()
310 y = (hdcs->array.height - HDCS_1020_BOTTOM_Y_SKIP - height) / 2 in hdcs_set_size()
313 if (height > hdcs->array.height) in hdcs_set_size()
314 height = hdcs->array.height; in hdcs_set_size()
316 y = hdcs->array.top + (hdcs->array.height - height) / 2; in hdcs_set_size()
[all …]
/linux-4.1.27/drivers/media/platform/omap3isp/
Dispresizer.c354 u32 width, u32 height) in resizer_set_output_size() argument
361 rgval |= (height << ISPRSZ_OUT_SIZE_VERT_SHIFT) in resizer_set_output_size()
417 u32 width, u32 height) in resizer_set_input_size() argument
424 rgval |= (height << ISPRSZ_IN_SIZE_VERT_SHIFT) in resizer_set_input_size()
508 clock = div_u64((u64)limit * res->crop.active.height, ofmt->height); in omap3isp_resizer_max_rate()
590 * res->crop.active.height; in resizer_adjust_bandwidth()
796 unsigned int height; in resizer_calc_ratios() local
802 min_height = ((input->height - 7) * 256 - 32 - 64 * spv) / 1024 + 1; in resizer_calc_ratios()
804 max_height = ((input->height - 4) * 256 + 255 - 16 - 32 * spv) / 64 + 1; in resizer_calc_ratios()
806 output->height = clamp(output->height, min_height, max_height); in resizer_calc_ratios()
[all …]
Disph3a_af.c53 pax1 |= (conf->paxel.height >> 1) - 1; in h3a_af_setup_regs()
176 if (IS_OUT_OF_BOUNDS(paxel_cfg->height, OMAP3ISP_AF_PAXEL_HEIGHT_MIN, in h3a_af_validate_params()
178 paxel_cfg->height % 2) in h3a_af_validate_params()
216 (paxel_cfg->width * paxel_cfg->height == 12)) in h3a_af_validate_params()
279 (cur_cfg->paxel.height != user_cfg->paxel.height) || in h3a_af_set_params()
377 af_recover_cfg->paxel.height = OMAP3ISP_AF_PAXEL_HEIGHT_MIN; in omap3isp_h3a_af_init()
/linux-4.1.27/drivers/video/fbdev/omap2/
Dvrfb.c138 void omap_vrfb_adjust_size(u16 *width, u16 *height, in omap_vrfb_adjust_size() argument
142 *height = ALIGN(*height, VRFB_PAGE_HEIGHT); in omap_vrfb_adjust_size()
146 u32 omap_vrfb_min_phys_size(u16 width, u16 height, u8 bytespp) in omap_vrfb_min_phys_size() argument
154 return (width * height * bytespp) + get_extra_physical_size( in omap_vrfb_min_phys_size()
163 unsigned long height; in omap_vrfb_max_height() local
174 height = (phys_size - extra) / (width * bytespp); in omap_vrfb_max_height()
177 return min_t(unsigned long, height, 2048); in omap_vrfb_max_height()
182 u16 width, u16 height, in omap_vrfb_setup() argument
193 width, height, bytespp, yuv_mode); in omap_vrfb_setup()
212 vrfb_height = ALIGN(height, VRFB_PAGE_HEIGHT); in omap_vrfb_setup()
[all …]
/linux-4.1.27/drivers/video/fbdev/savage/
Dsavagefb_accel.c38 if (!region->width || !region->height) in savagefb_copyarea()
54 sy += region->height - 1; in savagefb_copyarea()
55 dy += region->height - 1; in savagefb_copyarea()
62 BCI_SEND(BCI_W_H(region->width, region->height)); in savagefb_copyarea()
70 if (!rect->width || !rect->height) in savagefb_fillrect()
89 BCI_SEND( BCI_W_H(rect->width, rect->height) ); in savagefb_fillrect()
99 if (!image->width || !image->height) in savagefb_imageblit()
123 size = (width * image->height)/8; in savagefb_imageblit()
132 BCI_SEND(BCI_W_H(width, image->height)); in savagefb_imageblit()
/linux-4.1.27/drivers/gpu/drm/vmwgfx/
Dsvga_overlay.h139 uint32 *height, /* IN / OUT */ in VMwareVideoGetAttributes() argument
154 *height = (*height + 1) & ~1; in VMwareVideoGetAttributes()
161 *size *= *height; in VMwareVideoGetAttributes()
173 tmp *= (*height >> 1); in VMwareVideoGetAttributes()
191 *size *= *height; in VMwareVideoGetAttributes()
Dsvga3d_surfacedefs.h746 size.height = max_t(u32, base_level.height >> mip_level, 1); in svga3dsurface_get_mip_size()
758 block_size->height = DIV_ROUND_UP(pixel_size->height, in svga3dsurface_get_size_in_blocks()
759 desc->block_size.height); in svga3dsurface_get_size_in_blocks()
818 image_blocks.height); in svga3dsurface_get_image_buffer_size()
827 slice_size = clamped_umul32(image_blocks.height, pitch); in svga3dsurface_get_image_buffer_size()
866 u32 width, u32 height, in svga3dsurface_get_pixel_offset() argument
870 const u32 bw = desc->block_size.width, bh = desc->block_size.height; in svga3dsurface_get_pixel_offset()
873 const u32 imgstride = DIV_ROUND_UP(height, bh) * rowstride; in svga3dsurface_get_pixel_offset()
Dsvga_reg.h907 uint32 height; member
986 uint32 height; member
1077 uint32 height; member
1098 uint32 height; member
1121 uint32 height; member
1150 uint32 height; member
1172 uint32 height; member
1198 uint32 height; member
Dvmwgfx_kms.c89 u32 *image, u32 width, u32 height, in vmw_cursor_update_image() argument
96 u32 image_size = width * height * 4; in vmw_cursor_update_image()
115 cmd->cursor.height = cpu_to_le32(height); in vmw_cursor_update_image()
126 u32 width, u32 height, in vmw_cursor_update_dmabuf() argument
137 kmap_num = (width*height*4 + PAGE_SIZE - 1) >> PAGE_SHIFT; in vmw_cursor_update_dmabuf()
150 ret = vmw_cursor_update_image(dev_priv, virtual, width, height, in vmw_cursor_update_dmabuf()
175 uint32_t handle, uint32_t width, uint32_t height) in vmw_du_crtc_cursor_set() argument
194 if (handle && (width != 64 || height != 64)) { in vmw_du_crtc_cursor_set()
240 ret = vmw_cursor_update_dmabuf(dev_priv, dmabuf, width, height, in vmw_du_crtc_cursor_set()
624 norect.y2 = framebuffer->height; in vmw_framebuffer_surface_dirty()
[all …]
/linux-4.1.27/drivers/gpu/drm/qxl/
Dqxl_image.c59 int height, int stride) in qxl_image_alloc_objects() argument
76 ret = qxl_allocate_chunk(qdev, release, image, sizeof(struct qxl_data_chunk) + stride * height); in qxl_image_alloc_objects()
104 int width, int height, in qxl_image_init_helper() argument
129 chunk->data_size = height * chunk_stride; in qxl_image_init_helper()
140 remain = linesize * height; in qxl_image_init_helper()
166 for (i = 0 ; i < height ; ++i) { in qxl_image_init_helper()
198 image->descriptor.height = height; in qxl_image_init_helper()
217 image->u.bitmap.y = height; in qxl_image_init_helper()
231 int x, int y, int width, int height, in qxl_image_init() argument
236 width, height, depth, 0, stride); in qxl_image_init()
Dqxl_draw.c165 int height = fb_image->height; in qxl_draw_opaque_fb() local
182 height, stride); in qxl_draw_opaque_fb()
200 rect.bottom = y + height; in qxl_draw_opaque_fb()
210 width, height, depth, stride); in qxl_draw_opaque_fb()
231 drawable->u.copy.src_area.bottom = height; in qxl_draw_opaque_fb()
282 int width, height; in qxl_draw_dirty_fb() local
314 height = bottom - top; in qxl_draw_dirty_fb()
322 height, stride); in qxl_draw_dirty_fb()
347 left, top, width, height, depth, stride); in qxl_draw_dirty_fb()
363 drawable->u.copy.src_area.bottom = height; in qxl_draw_dirty_fb()
[all …]
Dqxl_fb.c124 image->height = y2 - y1; in qxl_fb_dirty_flush()
227 …uint32_t size = fb_image->width * fb_image->height * (fb_image->depth >= 8 ? fb_image->depth / 8 :… in qxl_fb_delayed_imageblit()
255 int height = fb_rect->height; in qxl_fb_fillrect_internal() local
267 rect.bottom = y + height; in qxl_fb_fillrect_internal()
310 region->width, region->height, in qxl_fb_copyarea_internal()
453 int height = mode_cmd->height; in qxlfb_create_pinned_object() local
459 size = mode_cmd->pitches[0] * height; in qxlfb_create_pinned_object()
477 qbo->surf.height = mode_cmd->height; in qxlfb_create_pinned_object()
518 mode_cmd.height = sizes->surface_height; in qxlfb_create()
526 mode_cmd.height, mode_cmd.pitches[0]); in qxlfb_create()
[all …]
Dqxl_dumb.c42 args->size = pitch * args->height; in qxl_mode_dumb_create()
57 surf.height = args->height; in qxl_mode_dumb_create()
Dqxl_display.c36 return head->width && head->height; in qxl_head_enabled()
94 client_head->height = c_rect->bottom - c_rect->top; in qxl_display_copy_rom_client_monitors_config()
98 DRM_DEBUG_KMS("read %dx%d+%d+%d\n", client_head->width, client_head->height, in qxl_display_copy_rom_client_monitors_config()
157 mode = drm_cvt_mode(dev, head->width, head->height, 60, false, false, in qxl_add_monitors_config_modes()
161 *pheight = head->height; in qxl_add_monitors_config_modes()
234 .y2 = fb->height in qxl_crtc_page_flip()
296 uint32_t height, int32_t hot_x, int32_t hot_y) in qxl_crtc_cursor_set2() argument
356 cursor->header.height = 64; in qxl_crtc_cursor_set2()
497 norect.y2 = fb->height; in qxl_framebuffer_surface_dirty()
570 head->width > 8192 || head->height > 8192) { in qxl_send_monitors_config()
[all …]
/linux-4.1.27/drivers/gpu/drm/
Ddrm_rect.c314 int width, int height, in drm_rect_rotate() argument
328 r->y1 = height - tmp.y2; in drm_rect_rotate()
329 r->y2 = height - tmp.y1; in drm_rect_rotate()
347 r->y1 = height - tmp.y2; in drm_rect_rotate()
348 r->y2 = height - tmp.y1; in drm_rect_rotate()
352 r->x1 = height - tmp.y2; in drm_rect_rotate()
353 r->x2 = height - tmp.y1; in drm_rect_rotate()
388 int width, int height, in drm_rect_rotate_inv() argument
407 r->y1 = height - tmp.y2; in drm_rect_rotate_inv()
408 r->y2 = height - tmp.y1; in drm_rect_rotate_inv()
[all …]
Ddrm_fb_helper.c832 var->xres > fb->width || var->yres > fb->height || in drm_fb_helper_check_var()
833 var->xres_virtual > fb->width || var->yres_virtual > fb->height) { in drm_fb_helper_check_var()
838 fb->width, fb->height, fb->bits_per_pixel); in drm_fb_helper_check_var()
1178 info->var.yres_virtual = fb->height; in drm_fb_helper_fill_var()
1184 info->var.height = -1; in drm_fb_helper_fill_var()
1262 …y_mode *drm_has_preferred_mode(struct drm_fb_helper_connector *fb_connector, int width, int height) in drm_has_preferred_mode() argument
1268 mode->vdisplay > height) in drm_has_preferred_mode()
1283 int width, int height) in drm_pick_cmdline_mode() argument
1374 bool *enabled, int width, int height) in drm_target_cloned() argument
1401 modes[i] = drm_pick_cmdline_mode(fb_helper_conn, width, height); in drm_target_cloned()
[all …]
/linux-4.1.27/drivers/gpu/drm/panel/
Dpanel-simple.c49 unsigned int height; member
139 connector->display_info.height_mm = panel->desc->size.height; in panel_simple_get_fixed_modes()
392 .height = 91,
416 .height = 125,
439 .height = 136,
463 .height = 125,
486 .height = 144,
509 .height = 165,
532 .height = 165,
560 .height = 90,
[all …]
/linux-4.1.27/drivers/media/pci/bt8xx/
Dbtcx-risc.c96 clips[n].c.height = win->height; in btcx_screen_clips()
104 clips[n].c.height = win->height; in btcx_screen_clips()
112 clips[n].c.height = -win->top; in btcx_screen_clips()
115 if (win->top + win->height > sheight) { in btcx_screen_clips()
120 clips[n].c.height = win->height - clips[n].c.top; in btcx_screen_clips()
142 win->width, win->height, win->left, win->top, dx); in btcx_align()
154 clips[i].c.width, clips[i].c.height, in btcx_align()
201 if (line > clips[clip].c.top+clips[clip].c.height-1) in btcx_calc_skips()
208 if (maxline > clips[clip].c.top+clips[clip].c.height-1) in btcx_calc_skips()
209 maxline = clips[clip].c.top+clips[clip].c.height-1; in btcx_calc_skips()
Dbttv-risc.c264 ((skip_even || skip_odd) ? (ov->w.height+1)>>1 : ov->w.height); in bttv_risc_overlay()
281 for (maxy = -1, line = 0; line < ov->w.height; in bttv_risc_overlay()
284 (line >= (ov->w.height - VCR_HACK_LINES))) in bttv_risc_overlay()
337 int width, int height, int interleaved, in bttv_calc_geo_old() argument
360 sr = ((tvnorm->sheight >> (interleaved?0:1))*512)/height - 512; in bttv_calc_geo_old()
383 unsigned int height, in bttv_calc_geo() argument
395 && crop->height == tvnorm->cropcap.defrect.height in bttv_calc_geo()
398 bttv_calc_geo_old(btv, geo, width, height, in bttv_calc_geo()
406 c_height = min((unsigned int) crop->height, height * 16); in bttv_calc_geo()
416 sr = (sr * 512U + (height >> 1)) / height - 512; in bttv_calc_geo()
[all …]
Dbttv-driver.c276 .cropcap.bounds.height = (sheight) + (extraheight) + (vdelay) - \
281 .cropcap.defrect.height = sheight, \
759 + tvnorm->cropcap.bounds.height; in disclaim_video_lines()
1131 max_t(unsigned int, 32, c->rect.height >> 4); in bttv_crop_calc_limits()
1135 c->max_scaled_height = c->rect.height; in bttv_crop_calc_limits()
1164 + tvnorm->cropcap.bounds.height; in set_tvnorm()
1562 unsigned int width, unsigned int height, in bttv_prepare_buffer() argument
1576 height = RAW_LINES*2; in bttv_prepare_buffer()
1577 if (width*height > buf->vb.bsize) in bttv_prepare_buffer()
1599 height < c.min_scaled_height) in bttv_prepare_buffer()
[all …]
/linux-4.1.27/fs/gfs2/
Dbmap.c239 struct metapath *mp, unsigned int height) in find_metapath() argument
243 for (i = height; i--;) in find_metapath()
265 static inline __be64 *metapointer(unsigned int height, const struct metapath *mp) in metapointer() argument
267 struct buffer_head *bh = mp->mp_bh[height]; in metapointer()
268 unsigned int head_size = (height > 0) ? in metapointer()
270 return ((__be64 *)(bh->b_data + head_size)) + mp->mp_list[height]; in metapointer()
451 const unsigned int height, in gfs2_bmap_alloc() argument
462 const unsigned end_of_metadata = height - 1; in gfs2_bmap_alloc()
474 if (height == sheight) { in gfs2_bmap_alloc()
485 ptrs_per_blk = height > 1 ? sdp->sd_inptrs : sdp->sd_diptrs; in gfs2_bmap_alloc()
[all …]
/linux-4.1.27/drivers/media/platform/
Dsh_vou.c189 addr2 = addr1 + vou_dev->pix.width * vou_dev->pix.height; in sh_vou_schedule_next()
248 vou_dev->pix.height / 8; in sh_vou_buf_setup()
277 vb->height != pix->height || in sh_vou_buf_prepare()
280 vb->height = pix->height; in sh_vou_buf_prepare()
286 vb->size = vb->height * bytes_per_line; in sh_vou_buf_prepare()
461 frame_in_height = pix->height / 2; in sh_vou_configure_geometry()
462 frame_out_height = rect->height / 2; in sh_vou_configure_geometry()
574 unsigned int found = geo->output.height * vou_scale_v_den[i] / in vou_adjust_input()
655 err = abs(found - geo->output.height); in vou_adjust_output()
665 geo->output.height = best; in vou_adjust_output()
[all …]
Dvim2m.c112 unsigned int height; member
211 int width, height, bytesperline; in device_process() local
216 height = q_data->height; in device_process()
255 p_out += bytesperline * height - bytes_left; in device_process()
256 for (y = 0; y < height; ++y) { in device_process()
275 for (y = 0; y < height; ++y) { in device_process()
295 p_out += bytesperline * (height - 1); in device_process()
296 for (y = 0; y < height; ++y) { in device_process()
315 for (y = 0; y < height; ++y) { in device_process()
494 f->fmt.pix.height = q_data->height; in vidioc_g_fmt()
[all …]
Darv.c119 int width, height; member
336 for (h = 0; h < ar->height; h++) { in ar_read()
351 for (h = 0; h < ar->height; h++) { in ar_read()
379 for (h = 0; h < ar->height; h++) { in ar_read()
442 pix->height = ar->height; in ar_g_fmt_vid_cap()
446 pix->sizeimage = 2 * ar->width * ar->height; in ar_g_fmt_vid_cap()
457 if (pix->height <= AR_HEIGHT_QVGA || pix->width <= AR_WIDTH_QVGA) { in ar_try_fmt_vid_cap()
458 pix->height = AR_HEIGHT_QVGA; in ar_try_fmt_vid_cap()
462 pix->height = AR_HEIGHT_VGA; in ar_try_fmt_vid_cap()
468 pix->sizeimage = 2 * ar->width * ar->height; in ar_try_fmt_vid_cap()
[all …]
Dfsl-viu.c210 int width, height, sizeimage; member
369 prev->vb.height == buf->vb.height && in restart_video_queue()
407 *size = fh->width * fh->height * fh->fmt->depth >> 3; in buffer_setup()
466 reg_val.picture_count = (buf->vb.height / 2) << 16 | in buffer_activate()
496 fh->height < 32 || fh->height > norm_maxh()) in buffer_prepare()
498 buf->vb.size = (fh->width * fh->height * fh->fmt->depth) >> 3; in buffer_prepare()
504 buf->vb.height != fh->height || in buffer_prepare()
508 buf->vb.height = fh->height; in buffer_prepare()
518 buf->vb.height = fh->height; in buffer_prepare()
566 prev->vb.height == buf->vb.height && in buffer_queue()
[all …]
Dsh_veu.c164 .height = VGA_HEIGHT, \
173 .height = VGA_HEIGHT, \
405 pix->height = vfmt->frame.height; in sh_veu_g_fmt()
410 pix->sizeimage = vfmt->bytesperline * pix->height * in sh_veu_g_fmt()
413 f->type, pix->sizeimage, pix->width, pix->height, pix->pixelformat); in sh_veu_g_fmt()
449 &pix->height, MIN_H, MAX_H, 0, 0); in sh_veu_try_fmt()
455 pix->sizeimage = pix->height * pix->bytesperline * fmt->depth / fmt->ydepth; in sh_veu_try_fmt()
535 vfmt->offset_c = offset + y_line * vfmt->frame.height; in sh_veu_colour_offset()
574 vfmt->frame.height = pix->height; in sh_veu_s_fmt()
588 f->type, pix->width, pix->height, vfmt->fmt->fourcc); in sh_veu_s_fmt()
[all …]
Dmx2_emmaprp.c174 unsigned int height; member
305 s_height = s_q_data->height; in emmaprp_device_run()
309 d_height = d_q_data->height; in emmaprp_device_run()
464 f->fmt.pix.height = q_data->height; in vidioc_g_fmt()
508 W_ALIGN_YUV420, &f->fmt.pix.height, in vidioc_try_fmt()
513 W_ALIGN_OTHERS, &f->fmt.pix.height, in vidioc_try_fmt()
517 f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; in vidioc_try_fmt()
581 q_data->height = f->fmt.pix.height; in vidioc_s_fmt()
583 q_data->sizeimage = q_data->width * q_data->height * 3 / 2; in vidioc_s_fmt()
585 q_data->sizeimage = q_data->width * q_data->height * 2; in vidioc_s_fmt()
[all …]
Dtimblogiw.c60 u16 height; member
85 .height = 576,
91 .height = 480,
104 return norm->height * timblogiw_bytes_per_line(norm); in timblogiw_frame_size()
171 format->fmt.pix.height = fh->cur_norm->height; in timblogiw_g_fmt()
192 pix->width, pix->height, pix->pixelformat, pix->field, in timblogiw_try_fmt()
229 pix->height = fh->cur_norm->height; in timblogiw_s_fmt()
467 fsize->discrete.height = fh->cur_norm->height; in timblogiw_enum_framesizes()
505 vb->height = fh->cur_norm->height; in buffer_prepare()
/linux-4.1.27/drivers/video/fbdev/aty/
Dradeon_accel.c64 OUTREG(DST_WIDTH_HEIGHT, (region->width << 16) | region->height); in radeonfb_prim_fillrect()
87 if(!modded.width || !modded.height || in radeonfb_fillrect()
92 if(modded.dy + modded.height > vyres) modded.height = vyres - modded.dy; in radeonfb_fillrect()
103 w = area->width; h = area->height; in radeonfb_prim_copyarea()
144 modded.height = area->height; in radeonfb_copyarea()
158 if(!modded.width || !modded.height || in radeonfb_copyarea()
165 if(modded.sy + modded.height > vyres) modded.height = vyres - modded.sy; in radeonfb_copyarea()
166 if(modded.dy + modded.height > vyres) modded.height = vyres - modded.dy; in radeonfb_copyarea()
Dmach64_accel.c186 static inline void draw_rect(s16 x, s16 y, u16 width, u16 height, in draw_rect() argument
192 aty_st_le32(DST_HEIGHT_WIDTH, (width << 16) | height, par); in draw_rect()
204 if (!area->width || !area->height) in atyfb_copyarea()
220 dy += area->height - 1; in atyfb_copyarea()
221 sy += area->height - 1; in atyfb_copyarea()
238 aty_st_le32(SRC_HEIGHT1_WIDTH1, (width << 16) | area->height, par); in atyfb_copyarea()
240 draw_rect(dx, dy, width, area->height, par); in atyfb_copyarea()
250 if (!rect->width || !rect->height) in atyfb_fillrect()
279 draw_rect(dx, rect->dy, width, rect->height, par); in atyfb_fillrect()
290 if (!image->width || !image->height) in atyfb_imageblit()
[all …]
/linux-4.1.27/drivers/media/platform/exynos4-is/
Dfimc-capture.c362 wh = pixm->width * pixm->height; in queue_setup()
584 u32 *width, u32 *height, in fimc_capture_try_format() argument
621 height, max_t(u32, *height, 32), in fimc_capture_try_format()
631 *height = ctx->s_frame.f_height; in fimc_capture_try_format()
638 min_h = dst->offs_v + dst->height; in fimc_capture_try_format()
649 height, min_h, FIMC_CAMIF_MAX_HEIGHT, in fimc_capture_try_format()
654 pad, code ? *code : 0, *width, *height, in fimc_capture_try_format()
676 r->height = sink->f_height; in fimc_capture_try_selection()
684 max_sc_v = min(SCALER_MAX_VRATIO, 1 << (ffs(sink->height) - 1)); in fimc_capture_try_selection()
716 &r->height, min_h, max_h, align_h, in fimc_capture_try_selection()
[all …]
Dfimc-m2m.c326 &pix->height, 8, variant->pix_limit->scaler_dis_w, mod_y, 0); in fimc_try_fmt_mplane()
328 fimc_adjust_mplane_format(fmt, pix->width, pix->height, &f->fmt.pix_mp); in fimc_try_fmt_mplane()
350 frame->f_height = pixm->height; in __set_frame_format()
352 frame->o_height = pixm->height; in __set_frame_format()
354 frame->height = pixm->height; in __set_frame_format()
412 cr->bounds.height = frame->o_height; in fimc_m2m_cropcap()
430 cr->c.height = frame->height; in fimc_m2m_g_crop()
468 &cr->c.height, min_size, f->o_height, in fimc_m2m_try_crop()
474 if (cr->c.top + cr->c.height > f->o_height) in fimc_m2m_try_crop()
475 cr->c.top = f->o_height - cr->c.height; in fimc_m2m_try_crop()
[all …]
Dfimc-is-param.c216 mf->height = isp->otf_input.height; in __is_get_frame_size()
232 isp->otf_input.height = mf->height; in __is_set_frame_size()
234 isp->otf_output.height = mf->height; in __is_set_frame_size()
237 drc->otf_input.height = mf->height; in __is_set_frame_size()
239 drc->otf_output.height = mf->height; in __is_set_frame_size()
242 fd->otf_input.height = mf->height; in __is_set_frame_size()
696 isp->otf_input.height = DEFAULT_PREVIEW_STILL_HEIGHT; in fimc_is_set_initial_params()
711 isp->dma1_input.height = 0; in fimc_is_set_initial_params()
723 isp->dma2_input.height = 0; in fimc_is_set_initial_params()
775 isp->otf_output.height = DEFAULT_PREVIEW_STILL_HEIGHT; in fimc_is_set_initial_params()
[all …]
Dfimc-lite.c377 wh = pixm->width * pixm->height; in queue_setup()
581 &mf->height, 0, dd->max_height, 0, 0); in fimc_lite_subdev_try_fmt()
611 mf->height = rect->height; in fimc_lite_subdev_try_fmt()
617 mf->code, mf->colorspace, mf->width, mf->height); in fimc_lite_subdev_try_fmt()
627 &r->height, 0, frame->f_height, 0, 0); in fimc_lite_try_crop()
632 r->top = clamp_t(u32, r->top, 0, frame->f_height - r->height); in fimc_lite_try_crop()
635 r->left, r->top, r->width, r->height, in fimc_lite_try_crop()
647 r->height = crop_rect->height; in fimc_lite_try_compose()
652 r->top = clamp_t(u32, r->top, 0, fimc->out_frame.f_height - r->height); in fimc_lite_try_compose()
655 r->left, r->top, r->width, r->height, in fimc_lite_try_compose()
[all …]
Dfimc-core.h257 u32 height; member
510 static inline void set_frame_bounds(struct fimc_frame *f, u32 width, u32 height) in set_frame_bounds() argument
513 f->o_height = height; in set_frame_bounds()
515 f->f_height = height; in set_frame_bounds()
519 u32 left, u32 top, u32 width, u32 height) in set_frame_crop() argument
524 f->height = height; in set_frame_crop()
627 void fimc_adjust_mplane_format(struct fimc_fmt *fmt, u32 width, u32 height,
/linux-4.1.27/drivers/video/fbdev/i810/
Di810_accel.c195 static inline void color_blit(int width, int height, int pitch, int dest, in color_blit() argument
205 PUT_RING(height << 16 | width); in color_blit()
301 u32 dx, dy, width, height, dest, rop = 0, color = 0; in i810fb_fillrect() local
319 height = rect->height; in i810fb_fillrect()
322 color_blit(width, height, info->fix.line_length, dest, rop, color, in i810fb_fillrect()
329 u32 sx, sy, dx, dy, pitch, width, height, src, dest, xdir; in i810fb_copyarea() local
342 height = region->height; in i810fb_copyarea()
357 sy += height - 1; in i810fb_copyarea()
358 dy += height - 1; in i810fb_copyarea()
363 source_copy_blit(width, height, pitch, xdir, src, dest, in i810fb_copyarea()
[all …]
/linux-4.1.27/drivers/staging/media/omap4iss/
Diss_ipipe.c103 (format->height - 2) & IPIPE_SRC_VSZ_MASK); in ipipe_configure()
202 unsigned int height = fmt->height; in ipipe_try_format() local
218 fmt->height = clamp_t(u32, height, 1, 8192); in ipipe_try_format()
228 fmt->height = clamp_t(u32, height, 32, fmt->height); in ipipe_try_format()
282 format.height = 1; in ipipe_enum_frame_size()
285 fse->min_height = format.height; in ipipe_enum_frame_size()
292 format.height = -1; in ipipe_enum_frame_size()
295 fse->max_height = format.height; in ipipe_enum_frame_size()
363 source_fmt->format.height != sink_fmt->format.height) in ipipe_link_validate()
390 format.format.height = 4096; in ipipe_init_formats()
Diss_ipipeif.c201 (format->height - 1) & ISIF_LNV_MASK); in ipipeif_configure()
205 format->height - 1); in ipipeif_configure()
387 unsigned int height = fmt->height; in ipipeif_try_format() local
406 fmt->height = clamp_t(u32, height, 1, 8192); in ipipeif_try_format()
421 fmt->height = clamp_t(u32, height, 32, fmt->height); in ipipeif_try_format()
430 fmt->height = clamp_t(u32, height, 32, fmt->height); in ipipeif_try_format()
494 format.height = 1; in ipipeif_enum_frame_size()
497 fse->min_height = format.height; in ipipeif_enum_frame_size()
504 format.height = -1; in ipipeif_enum_frame_size()
507 fse->max_height = format.height; in ipipeif_enum_frame_size()
[all …]
Diss_resizer.c162 (outformat->height - 1)); in resizer_set_outaddr()
221 informat->height - 2); in resizer_configure()
229 outformat->height - 2); in resizer_configure()
239 outformat->height - 1); in resizer_configure()
254 outformat->height - 1); in resizer_configure()
447 unsigned int height = fmt->height; in resizer_try_format() local
463 fmt->height = clamp_t(u32, height, 1, 8192); in resizer_try_format()
483 fmt->height = clamp_t(u32, height, 32, fmt->height); in resizer_try_format()
556 format.height = 1; in resizer_enum_frame_size()
559 fse->min_height = format.height; in resizer_enum_frame_size()
[all …]
/linux-4.1.27/drivers/media/pci/tw68/
Dtw68-video.c234 dev->height = (norm->id & V4L2_STD_525_60) ? 480 : 576; in set_tvnorm()
270 unsigned int height, enum v4l2_field field) in tw68_set_scale() argument
279 height /= 2; /* we must set for 1-frame */ in tw68_set_scale()
284 width, height, V4L2_FIELD_HAS_BOTH(field), in tw68_set_scale()
305 vscale = (vactive * 256) / height; in tw68_set_scale()
308 width, height, in tw68_set_scale()
344 tw68_set_scale(dev, dev->width, dev->height, dev->field); in tw68_video_start_dma()
386 sizes[0] = (dev->fmt->depth * dev->width * dev->height) >> 3; in tw68_queue_setup()
466 size = (dev->width * dev->height * dev->fmt->depth) >> 3; in tw68_buf_prepare()
475 0, UNSET, bpl, 0, dev->height); in tw68_buf_prepare()
[all …]
/linux-4.1.27/drivers/gpu/drm/omapdrm/
Dtcm.h59 u16 width, height; /* container dimensions */ member
71 s32 (*reserve_2d)(struct tcm *tcm, u16 height, u16 width, u8 align,
94 struct tcm *sita_init(u16 width, u16 height, struct tcm_pt *attr);
131 static inline s32 tcm_reserve_2d(struct tcm *tcm, u16 width, u16 height, in tcm_reserve_2d() argument
136 (area == NULL || width == 0 || height == 0 || in tcm_reserve_2d()
139 (height > tcm->height || width > tcm->width) ? -ENOMEM : 0; in tcm_reserve_2d()
143 res = tcm->reserve_2d(tcm, height, width, align, area); in tcm_reserve_2d()
169 slots > (tcm->width * (u32) tcm->height) ? -ENOMEM : 0; in tcm_reserve_1d()
246 area->p1.y < area->tcm->height && in tcm_area_is_valid()
Dtcm-sita.c80 struct tcm *sita_init(u16 width, u16 height, struct tcm_pt *attr) in sita_init() argument
87 if (width == 0 || height == 0) in sita_init()
99 tcm->height = height; in sita_init()
116 kmalloc(sizeof(**pvt->map) * tcm->height, in sita_init()
126 if (attr && attr->x <= tcm->width && attr->y <= tcm->height) { in sita_init()
134 pvt->div_pt.y = (tcm->height * 3) / 4; in sita_init()
138 assign(&area, 0, 0, width - 1, height - 1); in sita_init()
156 area.p1.y = tcm->height - 1; in sita_deinit()
162 for (i = 0; i < tcm->height; i++) in sita_deinit()
187 assign(&field, tcm->width - 1, tcm->height - 1, 0, 0); in sita_reserve_1d()
[all …]
/linux-4.1.27/drivers/media/usb/go7007/
Dgo7007-v4l2.c88 static void get_resolution(struct go7007 *go, int *width, int *height) in get_resolution() argument
93 *height = 480; in get_resolution()
97 *height = 576; in get_resolution()
102 *height = go->board_info->sensor_height; in get_resolution()
187 int width, height; in set_capture_size() local
196 height = sensor_height; in set_capture_size()
205 if (fmt->fmt.pix.height > sensor_height) in set_capture_size()
206 height = sensor_height; in set_capture_size()
207 else if (fmt->fmt.pix.height < 96) in set_capture_size()
208 height = 96; in set_capture_size()
[all …]
Dgo7007-fw.c318 buf[p++] = go->height >> 8; in mjpeg_frame_header()
319 buf[p++] = go->height & 0xff; in mjpeg_frame_header()
428 int rows = go->interlace_coding ? go->height / 32 : go->height / 16; in mpeg1_frame_header()
584 CODE_ADD(c, go->height, 12); in mpeg1_sequence_header()
620 CODE_ADD(c, go->height, 14); in mpeg1_sequence_header()
730 int mb_count = (go->width >> 4) * (go->height >> 4); in mpeg4_frame_header()
811 CODE_ADD(c, go->height, 13); in mpeg4_sequence_header()
946 2 * go->width * go->height * (go->ipb ? 6 : 4) / 32, in brctrl_to_package()
948 2 * go->width * go->height * (go->ipb ? 6 : 4) / 32, in brctrl_to_package()
950 2 * go->width * go->height * (go->ipb ? 6 : 4) / 32, in brctrl_to_package()
[all …]
/linux-4.1.27/drivers/media/common/saa7146/
Dsaa7146_hlp.c347 int height = vv->ov.win.w.height; in calculate_clipping_registers_rect() local
371 h[i] = vv->ov.clips[i].c.height; in calculate_clipping_registers_rect()
386 y[i] = height - y[i] - h[i]; in calculate_clipping_registers_rect()
398 line_list[ 2*i ] = min_t(int, t, height); in calculate_clipping_registers_rect()
399 line_list[(2*i)+1] = min_t(int, b, height); in calculate_clipping_registers_rect()
526 static void saa7146_set_window(struct saa7146_dev *dev, int width, int height, enum v4l2_field fiel… in saa7146_set_window() argument
538 …calculate_v_scale_registers(dev, field, vv->standard->v_field*2, height, &hps_v_scale, &hps_v_gain… in saa7146_set_window()
655 saa7146_set_window(dev, vv->ov.win.w.width, vv->ov.win.w.height, vv->ov.win.field); in saa7146_enable_overlay()
656 …saa7146_set_position(dev, vv->ov.win.w.left, vv->ov.win.w.top, vv->ov.win.w.height, vv->ov.win.fie… in saa7146_enable_overlay()
712 int height = buf->fmt->height; in calculate_video_dma_grab_packed() local
[all …]
Dsaa7146_video.c152 vv->ov.win.w.width, vv->ov.win.w.height, in saa7146_start_preview()
224 int size = buf->fmt->width*buf->fmt->height; in saa7146_pgtable_build()
650 field = (f->fmt.pix.height > maxh / 2) in vidioc_try_fmt_vid_cap()
676 if (f->fmt.pix.height > maxh) in vidioc_try_fmt_vid_cap()
677 f->fmt.pix.height = maxh; in vidioc_try_fmt_vid_cap()
687 f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * f->fmt.pix.height; in vidioc_try_fmt_vid_cap()
689 f->fmt.pix.width, f->fmt.pix.height, in vidioc_try_fmt_vid_cap()
714 if (win->w.width < 48 || win->w.height < 32) { in vidioc_try_fmt_vid_overlay()
716 win->w.width, win->w.height); in vidioc_try_fmt_vid_overlay()
729 field = (win->w.height > maxh / 2) in vidioc_try_fmt_vid_overlay()
[all …]
/linux-4.1.27/drivers/media/pci/cx25821/
Dcx25821-video.c149 unsigned size = (chan->fmt->depth * chan->width * chan->height) >> 3; in cx25821_queue_setup()
176 if (vb2_plane_size(vb, 0) < chan->height * buf->bpl) in cx25821_buffer_prepare()
178 vb2_set_plane_payload(vb, 0, chan->height * buf->bpl); in cx25821_buffer_prepare()
198 buf->bpl, 0, chan->height); in cx25821_buffer_prepare()
203 buf->bpl, 0, chan->height); in cx25821_buffer_prepare()
213 chan->height >> 1); in cx25821_buffer_prepare()
218 0, buf->bpl * (chan->height >> 1), in cx25821_buffer_prepare()
219 buf->bpl, 0, chan->height >> 1); in cx25821_buffer_prepare()
224 buf->bpl * (chan->height >> 1), 0, in cx25821_buffer_prepare()
225 buf->bpl, 0, chan->height >> 1); in cx25821_buffer_prepare()
[all …]
/linux-4.1.27/drivers/media/usb/gspca/
Dstk1135.c313 u16 width, height; in stk1135_configure_mt9m112() local
320 height = gspca_dev->pixfmt.height; in stk1135_configure_mt9m112()
321 if (width <= 640 && height <= 512) { /* context A (half readout speed)*/ in stk1135_configure_mt9m112()
323 sensor_write(gspca_dev, 0x1aa, height); in stk1135_configure_mt9m112()
330 sensor_write(gspca_dev, 0x1a4, height); in stk1135_configure_mt9m112()
445 u16 width, height; in sd_start() local
460 height = gspca_dev->pixfmt.height; in sd_start()
463 reg_w(gspca_dev, STK1135_REG_CIEPO + 2, height & 0xff); in sd_start()
464 reg_w(gspca_dev, STK1135_REG_CIEPO + 3, height >> 8); in sd_start()
621 fmt->fmt.pix.height = clamp(fmt->fmt.pix.height, 32U, 1024U); in stk1135_try_fmt()
[all …]
Djpeg.h137 int height, in jpeg_define() argument
143 jpeg_hdr[JPEG_HEIGHT_OFFSET + 0] = height >> 8; in jpeg_define()
144 jpeg_hdr[JPEG_HEIGHT_OFFSET + 1] = height; in jpeg_define()
/linux-4.1.27/drivers/media/platform/s3c-camif/
Dcamif-capture.c251 pix_size = frame->rect.width * frame->rect.height; in camif_prepare_addr()
458 size = (pix->width * pix->height * fmt->depth) / 8; in queue_setup()
723 pix->height = frame->f_height; in s3c_camif_vidioc_g_fmt()
751 pix->width, pix->height, crop->width, crop->height, in __camif_video_try_format()
758 sc_vrmax = min(SCALER_MAX_RATIO, 1 << (ffs(crop->height) - 1)); in __camif_video_try_format()
762 hmin = max_t(u32, 8, crop->height / sc_vrmax); in __camif_video_try_format()
767 &pix->height, hmin, pix_lim->max_height, 0, 0); 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()
809 out_frame->f_height = pix->height; in s3c_camif_vidioc_s_fmt()
[all …]
/linux-4.1.27/drivers/media/i2c/
Dmt9t001.c299 vratio = DIV_ROUND_CLOSEST(crop->height, format->height); in mt9t001_s_stream()
321 ret = mt9t001_write(client, MT9T001_WINDOW_HEIGHT, crop->height - 1); in mt9t001_s_stream()
374 unsigned int height; in mt9t001_set_format() local
386 height = clamp_t(unsigned int, ALIGN(format->format.height, 2), in mt9t001_set_format()
387 max_t(unsigned int, __crop->height / 8, in mt9t001_set_format()
389 __crop->height); in mt9t001_set_format()
392 vratio = DIV_ROUND_CLOSEST(__crop->height, height); in mt9t001_set_format()
397 __format->height = __crop->height / vratio; in mt9t001_set_format()
441 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in mt9t001_set_selection()
447 rect.height = min_t(unsigned int, rect.height, in mt9t001_set_selection()
[all …]
Dvs6624.c67 .height = VGA_HEIGHT,
587 if (fmt->height > VGA_HEIGHT) in vs6624_try_mbus_fmt()
588 fmt->height = VGA_HEIGHT; in vs6624_try_mbus_fmt()
590 fmt->height = fmt->height & (~3); in vs6624_try_mbus_fmt()
625 if ((fmt->width == VGA_WIDTH) && (fmt->height == VGA_HEIGHT)) in vs6624_s_mbus_fmt()
627 else if ((fmt->width == QVGA_WIDTH) && (fmt->height == QVGA_HEIGHT)) in vs6624_s_mbus_fmt()
629 else if ((fmt->width == QQVGA_WIDTH) && (fmt->height == QQVGA_HEIGHT)) in vs6624_s_mbus_fmt()
631 else if ((fmt->width == CIF_WIDTH) && (fmt->height == CIF_HEIGHT)) in vs6624_s_mbus_fmt()
633 else if ((fmt->width == QCIF_WIDTH) && (fmt->height == QCIF_HEIGHT)) in vs6624_s_mbus_fmt()
635 else if ((fmt->width == QQCIF_WIDTH) && (fmt->height == QQCIF_HEIGHT)) in vs6624_s_mbus_fmt()
[all …]
Dmt9v011.c54 unsigned width, height; member
202 unsigned height, width, hblank, vblank, speed; in calc_fps() local
207 height = mt9v011_read(sd, R03_MT9V011_HEIGHT); in calc_fps()
214 t_time = row_time * (height + vblank + 1); in calc_fps()
232 unsigned height, width, hblank, vblank; in calc_speed() local
240 height = mt9v011_read(sd, R03_MT9V011_HEIGHT); in calc_speed()
246 line_time = height + vblank + 1; in calc_speed()
290 vstart = 8 + (480 - core->height) / 2; in set_res()
292 mt9v011_write(sd, R03_MT9V011_HEIGHT, core->height); in set_res()
293 mt9v011_write(sd, R06_MT9V011_VBLANK, 508 - core->height); in set_res()
[all …]
Dmt9p031.c411 ret = mt9p031_write(client, MT9P031_WINDOW_HEIGHT, crop->height - 1); in mt9p031_set_params()
419 yskip = DIV_ROUND_CLOSEST(crop->height, format->height); in mt9p031_set_params()
554 unsigned int height; in mt9p031_set_format() local
566 height = clamp_t(unsigned int, ALIGN(format->format.height, 2), in mt9p031_set_format()
567 max_t(unsigned int, __crop->height / 8, in mt9p031_set_format()
569 __crop->height); in mt9p031_set_format()
572 vratio = DIV_ROUND_CLOSEST(__crop->height, height); in mt9p031_set_format()
577 __format->height = __crop->height / vratio; in mt9p031_set_format()
619 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in mt9p031_set_selection()
625 rect.height = min_t(unsigned int, rect.height, in mt9p031_set_selection()
[all …]
Dsaa6752hs.c82 { .fmt = { .pix = { .width = 720, .height = 576 }}},
84 { .fmt = { .pix = { .width = 480, .height = 576 }}},
86 { .fmt = { .pix = { .width = 352, .height = 576 }}},
88 { .fmt = { .pix = { .width = 352, .height = 288 }}},
90 { .fmt = { .pix = { .width = 0, .height = 0}}},
564 f->height = v4l2_format_table[h->video_format].fmt.pix.height; in saa6752hs_g_mbus_fmt()
582 f->height = 576; in saa6752hs_try_mbus_fmt()
585 f->height = 576; in saa6752hs_try_mbus_fmt()
588 if (abs(f->height - 576) < abs(f->height - 288)) in saa6752hs_try_mbus_fmt()
589 f->height = 576; in saa6752hs_try_mbus_fmt()
[all …]
Dmt9v032.c441 ret = regmap_write(map, MT9V032_WINDOW_HEIGHT, crop->height); in mt9v032_s_stream()
522 unsigned int height; in mt9v032_set_format() local
534 height = clamp(ALIGN(format->format.height, 2), in mt9v032_set_format()
535 max_t(unsigned int, __crop->height / 4, in mt9v032_set_format()
537 __crop->height); in mt9v032_set_format()
540 vratio = mt9v032_calc_ratio(__crop->height, height); in mt9v032_set_format()
545 __format->height = __crop->height / vratio; in mt9v032_set_format()
595 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in mt9v032_set_selection()
601 rect.height = min_t(unsigned int, in mt9v032_set_selection()
602 rect.height, MT9V032_PIXEL_ARRAY_HEIGHT - rect.top); in mt9v032_set_selection()
[all …]
Dmt9m032.c208 - crop->height; in mt9m032_update_timing()
214 div_u64((crop->height + MT9M032_VBLANK_MAX) * in mt9m032_update_timing()
219 - crop->height; in mt9m032_update_timing()
237 sensor->crop.height - 1); in mt9m032_update_geom_timing()
470 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in mt9m032_set_pad_selection()
475 rect.height = min_t(unsigned int, rect.height, in mt9m032_set_pad_selection()
480 if (rect.width != __crop->width || rect.height != __crop->height) { in mt9m032_set_pad_selection()
486 format->height = rect.height; in mt9m032_set_pad_selection()
764 sensor->crop.height = MT9M032_ROW_SIZE_DEF; in mt9m032_probe()
767 sensor->format.height = sensor->crop.height; in mt9m032_probe()
Dov2659.c199 u16 height; member
756 .height = 240,
761 .height = 480,
766 .height = 600,
771 .height = 768,
776 .height = 720,
781 .height = 1024,
786 .height = 1200,
970 format->height = ov2659_framesizes[2].height; in ov2659_get_default_format()
1037 fse->max_height = ov2659_framesizes[fse->index].height; in ov2659_enum_frame_sizes()
[all …]
Ds5k5baf.c856 r->top = v->top * n->height / d->height; in s5k5baf_rescale()
858 r->height = v->height * n->height / d->height; in s5k5baf_rescale()
868 s5k5baf_write_seq(state, REG_G_PREVREQ_IN_WIDTH, p->width, p->height, in s5k5baf_hw_set_crop_rects()
873 s5k5baf_write_seq(state, REG_G_PREVZOOM_IN_WIDTH, r.width, r.height, in s5k5baf_hw_set_crop_rects()
910 s5k5baf_write_seq(state, REG_P_OUT_WIDTH(0), p->width, p->height); in s5k5baf_hw_set_crop_rects()
923 r->width, r->height, reg_fmt, in s5k5baf_hw_set_config()
1196 &fie->height, S5K5BAF_WIN_HEIGHT_MIN, in s5k5baf_enum_frame_interval()
1257 mf->height = S5K5BAF_CIS_HEIGHT; in s5k5baf_try_cis_format()
1269 &mf->height, S5K5BAF_WIN_HEIGHT_MIN, in s5k5baf_try_isp_format()
1303 mf->height = state->crop_source.height; in s5k5baf_get_fmt()
[all …]
Dnoon010pc30.c122 u16 height; member
162 .height = 288,
166 .height = 144,
170 .height = 72,
372 + abs(fsize->height - mf->height); in noon010_try_frame_size()
382 mf->height = match->height; in noon010_try_frame_size()
523 mf->height = info->curr_win->height; in noon010_get_fmt()
647 mf->height = noon010_sizes[0].height; in noon010_open()
Dsr030pc30.c175 u16 height; member
188 .height = 480,
192 .height = 240,
196 .height = 120,
406 + abs(fsize->height - mf->height); in sr030pc30_try_frame_size()
415 mf->height = match->height; in sr030pc30_try_frame_size()
500 mf->height = info->curr_win->height; in sr030pc30_g_fmt()
Dtvp5150.c746 decoder->rect.height = TVP5150_V_MAX_525_60; in tvp5150_s_std()
748 decoder->rect.height = TVP5150_V_MAX_OTHERS; in tvp5150_s_std()
841 f->height = decoder->rect.height; in tvp5150_mbus_fmt()
848 f->height); in tvp5150_mbus_fmt()
860 __func__, rect.left, rect.top, rect.width, rect.height); in tvp5150_s_crop()
883 rect.height = clamp_t(unsigned int, rect.height, in tvp5150_s_crop()
889 rect.top + rect.height - hmax); in tvp5150_s_crop()
934 a->bounds.height = TVP5150_V_MAX_525_60; in tvp5150_cropcap()
936 a->bounds.height = TVP5150_V_MAX_OTHERS; in tvp5150_cropcap()
1175 core->rect.height = TVP5150_V_MAX_525_60; in tvp5150_probe()
[all …]
/linux-4.1.27/drivers/video/fbdev/via/
Daccel.c53 static int hw_bitblt_1(void __iomem *engine, u8 op, u32 width, u32 height, in hw_bitblt_1() argument
74 src_y += height - 1; in hw_bitblt_1()
75 dst_y += height - 1; in hw_bitblt_1()
116 if ((width - 1) & 0xFFFFF000 || (height - 1) & 0xFFFFF000) { in hw_bitblt_1()
118 "%d %d\n", width, height); in hw_bitblt_1()
121 tmp = (width - 1) | ((height - 1) << 16); in hw_bitblt_1()
177 tmp = (width * height * (op == VIA_BITBLT_MONO ? 1 : (dst_bpp >> 3)) + in hw_bitblt_1()
186 static int hw_bitblt_2(void __iomem *engine, u8 op, u32 width, u32 height, in hw_bitblt_2() argument
207 src_y += height - 1; in hw_bitblt_2()
208 dst_y += height - 1; in hw_bitblt_2()
[all …]
/linux-4.1.27/drivers/media/usb/cpia2/
Dcpia2_core.c623 cam->params.roi.height); in cpia2_reset_camera()
802 target_kb = (cam->width * cam->height * 2 / 16384) * in cpia2_reset_camera()
952 int height = cam->params.roi.height; in set_default_user_mode() local
960 || (height > STV_IMAGE_QCIF_ROWS)) { in set_default_user_mode()
969 || (height > STV_IMAGE_CIF_ROWS)) { in set_default_user_mode()
1012 int cpia2_match_video_size(int width, int height) in cpia2_match_video_size() argument
1014 if (width >= STV_IMAGE_VGA_COLS && height >= STV_IMAGE_VGA_ROWS) in cpia2_match_video_size()
1017 if (width >= STV_IMAGE_CIF_COLS && height >= STV_IMAGE_CIF_ROWS) in cpia2_match_video_size()
1020 if (width >= STV_IMAGE_QVGA_COLS && height >= STV_IMAGE_QVGA_ROWS) in cpia2_match_video_size()
1023 if (width >= 288 && height >= 216) in cpia2_match_video_size()
[all …]
Dcpia2_v4l.c363 switch (cpia2_match_video_size(f->fmt.pix.width, f->fmt.pix.height)) { in cpia2_try_fmt_vid_cap()
366 f->fmt.pix.height = 480; in cpia2_try_fmt_vid_cap()
370 f->fmt.pix.height = 288; in cpia2_try_fmt_vid_cap()
374 f->fmt.pix.height = 240; in cpia2_try_fmt_vid_cap()
378 f->fmt.pix.height = 216; in cpia2_try_fmt_vid_cap()
382 f->fmt.pix.height = 192; in cpia2_try_fmt_vid_cap()
386 f->fmt.pix.height = 168; in cpia2_try_fmt_vid_cap()
390 f->fmt.pix.height = 144; in cpia2_try_fmt_vid_cap()
395 f->fmt.pix.height = 144; in cpia2_try_fmt_vid_cap()
431 f->fmt.pix.width, f->fmt.pix.height); in cpia2_s_fmt_vid_cap()
[all …]
/linux-4.1.27/drivers/media/platform/exynos-gsc/
Dgsc-core.c229 void gsc_set_frame_size(struct gsc_frame *frame, int width, int height) in gsc_set_frame_size() argument
232 frame->f_height = height; in gsc_set_frame_size()
234 frame->crop.height = height; in gsc_set_frame_size()
299 remainder = s_frame->crop.height % (*hratio * halign); in gsc_check_src_scale_info()
301 s_frame->crop.height -= remainder; in gsc_check_src_scale_info()
302 gsc_cal_prescaler_ratio(var, s_frame->crop.height, ty, hratio); in gsc_check_src_scale_info()
304 s_frame->crop.height + remainder, s_frame->crop.height); in gsc_check_src_scale_info()
400 pr_debug("user put w: %d, h: %d", pix_mp->width, pix_mp->height); in gsc_try_fmt_mplane()
439 tmp_h = pix_mp->height; in gsc_try_fmt_mplane()
442 &pix_mp->height, min_h, max_h, mod_y, 0); in gsc_try_fmt_mplane()
[all …]
/linux-4.1.27/tools/perf/ui/gtk/
Dbrowser.c22 int height; in perf_gtk__resize_window() local
32 height = rect.height * 3 / 4; in perf_gtk__resize_window()
34 gtk_window_resize(GTK_WINDOW(window), width, height); in perf_gtk__resize_window()
/linux-4.1.27/include/media/
Dv4l2-mediabus.h94 pix_fmt->height = mbus_fmt->height; in v4l2_fill_pix_format()
106 mbus_fmt->height = pix_fmt->height; in v4l2_fill_mbus_format()
/linux-4.1.27/fs/hfs/
Dbfind.c100 int height, res; in hfs_brec_find() local
109 height = tree->depth; in hfs_brec_find()
119 if (bnode->height != height) in hfs_brec_find()
121 if (bnode->type != (--height ? HFS_NODE_INDEX : HFS_NODE_LEAF)) in hfs_brec_find()
126 if (!height) in hfs_brec_find()
141 height, bnode->height, bnode->type, nidx, parent); in hfs_brec_find()
/linux-4.1.27/drivers/media/usb/pwc/
Dpwc-ctrl.c206 pdev->height = pwc_image_sizes[size][1]; in set_video_mode_Nala()
207 pdev->frame_size = (pdev->width * pdev->height * 3) / 2; in set_video_mode_Nala()
269 pdev->height = pwc_image_sizes[size][1]; in set_video_mode_Timon()
272 pdev->frame_size = (pChoose->bandlength * pdev->height) / 4; in set_video_mode_Timon()
274 pdev->frame_size = (pdev->width * pdev->height * 12) / 8; in set_video_mode_Timon()
319 pdev->height = pwc_image_sizes[size][1]; in set_video_mode_Kiara()
322 pdev->frame_size = (pdev->vbandlength * pdev->height) / 4; in set_video_mode_Kiara()
324 pdev->frame_size = (pdev->width * pdev->height * 12) / 8; in set_video_mode_Kiara()
330 int pwc_set_video_mode(struct pwc_device *pdev, int width, int height, in pwc_set_video_mode() argument
336 width, height, frames, pixfmt); in pwc_set_video_mode()
[all …]
Dpwc-uncompress.c64 pdev->width * pdev->height * 3 / 2); in pwc_decompress()
73 n = pdev->width * pdev->height; in pwc_decompress()
78 for (line = 0; line < pdev->height; line++) { in pwc_decompress()
/linux-4.1.27/drivers/gpu/drm/cirrus/
Dcirrus_fbdev.c21 int x, int y, int width, int height) in cirrus_dirty_update() argument
51 y2 = y + height - 1; in cirrus_dirty_update()
85 for (i = y; i < y + height; i++) { in cirrus_dirty_update()
103 rect->height); in cirrus_fillrect()
112 area->height); in cirrus_copyarea()
121 image->height); in cirrus_imageblit()
150 if (!cirrus_check_framebuffer(cdev, mode_cmd->width, mode_cmd->height, in cirrusfb_create_object()
154 size = mode_cmd->pitches[0] * mode_cmd->height; in cirrusfb_create_object()
180 mode_cmd.height = sizes->surface_height; in cirrusfb_create()
184 size = mode_cmd.pitches[0] * mode_cmd.height; in cirrusfb_create()
/linux-4.1.27/drivers/gpu/drm/mgag200/
Dmgag200_fb.c23 int x, int y, int width, int height) in mga_dirty_update() argument
54 y2 = y + height - 1; in mga_dirty_update()
106 rect->height); in mga_fillrect()
115 area->height); in mga_copyarea()
124 image->height); in mga_imageblit()
149 size = mode_cmd->pitches[0] * mode_cmd->height; in mgag200fb_create_object()
176 mode_cmd.height = sizes->surface_height; in mgag200fb_create()
181 size = mode_cmd.pitches[0] * mode_cmd.height; in mgag200fb_create()
243 fb->width, fb->height); in mgag200fb_create()
/linux-4.1.27/drivers/video/fbdev/core/
Dfbmem.c118 void fb_pad_aligned_buffer(u8 *dst, u32 d_pitch, u8 *src, u32 s_pitch, u32 height) in fb_pad_aligned_buffer() argument
120 __fb_pad_aligned_buffer(dst, d_pitch, src, s_pitch, height); in fb_pad_aligned_buffer()
124 void fb_pad_unaligned_buffer(u8 *dst, u32 d_pitch, u8 *src, u32 idx, u32 height, in fb_pad_unaligned_buffer() argument
130 for (i = height; i--; ) { in fb_pad_unaligned_buffer()
304 for (i = 0; i < logo->height; i++) in fb_set_logo()
315 for (i = 0; i < logo->height; i++) { in fb_set_logo()
362 static void fb_rotate_logo_ud(const u8 *in, u8 *out, u32 width, u32 height) in fb_rotate_logo_ud() argument
364 u32 size = width * height, i; in fb_rotate_logo_ud()
372 static void fb_rotate_logo_cw(const u8 *in, u8 *out, u32 width, u32 height) in fb_rotate_logo_cw() argument
374 int i, j, h = height - 1; in fb_rotate_logo_cw()
[all …]
Dsyscopyarea.c318 u32 height = area->height, width = area->width; in sys_copyarea() local
330 dy += height; in sys_copyarea()
331 sy += height; in sys_copyarea()
347 while (height--) { in sys_copyarea()
355 while (height--) { in sys_copyarea()
/linux-4.1.27/drivers/media/pci/saa7134/
Dsaa7134-video.c399 dev->crop_bounds.height = ((norm->id & V4L2_STD_525_60) ? 524 : 624) in set_tvnorm()
401 dev->crop_defrect.height = (norm->video_v_stop - norm->video_v_start +1)*2; in set_tvnorm()
550 int width, int height, int interlace) in set_size() argument
560 v_stop = (dev->crop_current.top + dev->crop_current.height -1)/2; in set_size()
575 yscale = 512 * div * dev->crop_current.height / height; in set_size()
584 saa_writeb(SAA7134_VIDEO_LINES1(task), height/div & 0xff); in set_size()
585 saa_writeb(SAA7134_VIDEO_LINES2(task), height/div >> 8); in set_size()
668 row[rows].position = clip_range((clips[i].c.top + clips[i].c.height) in setup_clipping()
689 if (win->w.height < 32) in verify_preview()
690 win->w.height = 32; in verify_preview()
[all …]
/linux-4.1.27/fs/hfsplus/
Dbfind.c169 int height, res; in hfs_brec_find() local
178 height = tree->depth; in hfs_brec_find()
188 if (bnode->height != height) in hfs_brec_find()
190 if (bnode->type != (--height ? HFS_NODE_INDEX : HFS_NODE_LEAF)) in hfs_brec_find()
195 if (!height) in hfs_brec_find()
210 height, bnode->height, bnode->type, nidx, parent); in hfs_brec_find()
/linux-4.1.27/Documentation/devicetree/bindings/media/
Dsh_mobile_ceu.txt7 - renesas,max-height: maximum image height, supported on this SoC
17 renesas,max-height = <8188>;
/linux-4.1.27/drivers/media/platform/davinci/
Dvpif.c55 .height = 480,
72 .height = 576,
89 .height = 720,
106 .height = 720,
123 .height = 1080,
143 .height = 1080,
163 .height = 1080,
182 .height = 480,
202 .height = 576,
Dvpfe_capture.c99 unsigned int height; member
302 f->fmt.pix.height = image_win.height; in vpfe_get_ccdc_image_format()
305 f->fmt.pix.height; in vpfe_get_ccdc_image_format()
391 vpfe_standards[i].height; in vpfe_config_image_format()
407 vpfe_dev->crop.height = vpfe_dev->std_info.active_lines; in vpfe_config_image_format()
409 pix->height = vpfe_dev->crop.height; in vpfe_config_image_format()
437 pix->sizeimage = pix->bytesperline * pix->height; in vpfe_config_image_format()
446 pix->sizeimage = pix->bytesperline * pix->height; in vpfe_config_image_format()
898 pixfmt->width, pixfmt->height, vpfe_pix_fmt->bpp); in vpfe_check_format()
901 pixfmt->height = clamp((pixfmt->height), min_height, max_height); in vpfe_check_format()
[all …]
/linux-4.1.27/drivers/staging/sm750fb/
Dsm750_accel.c94 u32 x,u32 y,u32 width,u32 height, in hw_fillrect() argument
125 FIELD_VALUE(0,DE_DIMENSION,Y_ET,height));//dpr8 in hw_fillrect()
151 unsigned int height, /* width and height of rectangle in pixel value */ in hw_copyarea() argument
225 sy += height - 1; in hw_copyarea()
227 dy += height - 1; in hw_copyarea()
290 FIELD_VALUE(0, DE_DIMENSION, Y_ET, height));//dpr08 in hw_copyarea()
330 u32 height, /* width and height of rectange in pixel value */ in hw_imageblit() argument
404 FIELD_VALUE(0, DE_DIMENSION, Y_ET, height));//dpr08 in hw_imageblit()
418 for (i=0; i<height; i++) in hw_imageblit()
/linux-4.1.27/arch/powerpc/kernel/
Dbtext.c119 void __init btext_setup_display(int width, int height, int depth, int pitch, in btext_setup_display() argument
125 g_max_loc_Y = height / 16; in btext_setup_display()
132 dispDeviceRect[3] = height; in btext_setup_display()
174 unsigned int width, height, depth, pitch; in btext_initialize() local
189 height = *prop; in btext_initialize()
219 g_max_loc_Y = height / 16; in btext_initialize()
225 dispDeviceRect[3] = height; in btext_initialize()
280 void btext_update_display(unsigned long phys, int width, int height, in btext_update_display() argument
294 dispDeviceRect[3] = height; in btext_update_display()
305 g_max_loc_Y = height / 16; in btext_update_display()
/linux-4.1.27/drivers/media/i2c/smiapp/
Dsmiapp-core.c313 max = sensor->pixel_array->crop[SMIAPP_PA_PAD_SRC].height in __smiapp_update_exposure_limits()
462 sensor->pixel_array->crop[SMIAPP_PA_PAD_SRC].height in smiapp_set_ctrl()
883 sensor->pixel_array->crop[SMIAPP_PA_PAD_SRC].height); in smiapp_update_blanking()
885 sensor->pixel_array->crop[SMIAPP_PA_PAD_SRC].height; in smiapp_update_blanking()
909 sensor->src->crop[SMIAPP_PAD_SRC].height); in smiapp_update_mode()
952 (sensor->pixel_array->crop[SMIAPP_PA_PAD_SRC].height in smiapp_update_mode()
1428 + sensor->pixel_array->crop[SMIAPP_PA_PAD_SRC].height - 1); in smiapp_start_streaming()
1460 sensor->scaler->crop[SMIAPP_PAD_SINK].height); in smiapp_start_streaming()
1485 sensor->src->crop[SMIAPP_PAD_SRC].height); in smiapp_start_streaming()
1631 fmt->format.height = r->height; in __smiapp_get_format()
[all …]
/linux-4.1.27/drivers/gpu/drm/sti/
Dsti_cursor.c55 unsigned int height; member
85 for (i = 0; i < cursor->height; i++) { in sti_cursor_argb8888_to_clut8()
122 (cursor->height != layer->src_h)) { in sti_cursor_prepare_layer()
124 cursor->height = layer->src_h; in sti_cursor_prepare_layer()
132 cursor->pixmap.size = cursor->width * cursor->height; in sti_cursor_prepare_layer()
177 writel(cursor->height << 16 | cursor->width, layer->regs + CUR_SIZE); in sti_cursor_commit_layer()
/linux-4.1.27/drivers/gpu/drm/ast/
Dast_fb.c47 int x, int y, int width, int height) in ast_dirty_update() argument
78 y2 = y + height - 1; in ast_dirty_update()
130 rect->height); in ast_fillrect()
139 area->height); in ast_copyarea()
148 image->height); in ast_imageblit()
177 size = mode_cmd->pitches[0] * mode_cmd->height; in astfb_create_object()
201 mode_cmd.height = sizes->surface_height; in astfb_create()
207 size = mode_cmd.pitches[0] * mode_cmd.height; in astfb_create()
266 fb->width, fb->height); in astfb_create()
/linux-4.1.27/drivers/media/pci/cx18/
Dcx18-streams.c121 unsigned int width, unsigned int height, in cx18_prepare_buffer() argument
130 if ((width < 48) || (height < 32)) in cx18_prepare_buffer()
133 buf->vb.size = (width * height * 2); in cx18_prepare_buffer()
138 if (buf->vb.width != width || buf->vb.height != height || in cx18_prepare_buffer()
143 buf->vb.height = height; in cx18_prepare_buffer()
151 s->vb_bytes_per_frame = height * 720 * 3 / 2; in cx18_prepare_buffer()
153 s->vb_bytes_per_frame = height * 720 * 2; in cx18_prepare_buffer()
165 buf->vb.height = height; in cx18_prepare_buffer()
173 s->vb_bytes_per_frame = height * 720 * 3 / 2; in cx18_prepare_buffer()
175 s->vb_bytes_per_frame = height * 720 * 2; in cx18_prepare_buffer()
[all …]
/linux-4.1.27/include/xen/interface/io/
Dfbif.h49 int32_t height; /* rect height */ member
61 int32_t height; /* height in pixels */ member
113 int32_t height; /* height of the framebuffer (in pixels) */ member
/linux-4.1.27/drivers/media/pci/zoran/
Dzoran_driver.c440 int height, in zoran_v4l_set_format() argument
448 if (height < BUZ_MIN_HEIGHT || width < BUZ_MIN_WIDTH || in zoran_v4l_set_format()
449 height > BUZ_MAX_HEIGHT || width > BUZ_MAX_WIDTH) { in zoran_v4l_set_format()
453 ZR_DEVNAME(zr), __func__, width, height); in zoran_v4l_set_format()
460 if (height * width * bpp > fh->buffers.buffer_size) { in zoran_v4l_set_format()
479 fh->v4l_settings.height = height; in zoran_v4l_set_format()
547 zr->v4l_settings.height; in zoran_v4l_queue_frame()
1062 int height, in setup_fbuffer() argument
1105 if (height <= 0 || width <= 0 || bytesperline <= 0) { in setup_fbuffer()
1109 ZR_DEVNAME(zr), __func__, width, height, bytesperline); in setup_fbuffer()
[all …]
Dzr36016.c275 zr36016_writei(ptr, ZR016I_PAY_HI, ptr->height >> 8); in zr36016_init()
276 zr36016_writei(ptr, ZR016I_PAY_LO, ptr->height & 0xFF); in zr36016_init()
322 cap->x, cap->y, cap->width, cap->height, in zr36016_set_video()
329 ptr->height = cap->height; in zr36016_set_video()
468 ptr->height = 288; in zr36016_setup()
/linux-4.1.27/drivers/media/usb/gspca/m5602/
Dm5602_po1030.c181 int height = cam->cam_mode[sd->gspca_dev.curr_mode].height; in po1030_start() local
202 data = ((height + 1) >> 8) & 0xff; in po1030_start()
207 data = (height + 1) & 0xff; in po1030_start()
210 height += 6; in po1030_start()
230 data = ((height + 3) >> 8) & 0xff; in po1030_start()
235 data = (height + 3) & 0xff; in po1030_start()
238 height += 12; in po1030_start()
272 err = m5602_write_bridge(sd, M5602_XB_VSYNC_PARA, (height >> 8) & 0xff); in po1030_start()
276 err = m5602_write_bridge(sd, M5602_XB_VSYNC_PARA, (height & 0xff)); in po1030_start()
/linux-4.1.27/Documentation/video4linux/
Dsh_mobile_ceu_camera.txt45 S_CROP(left / top = (5) - (1), width / height = (5') - (5))
46 S_FMT(width / height = (6') - (6))
50 (1) to (1') - whole max width or height
52 (2) to (2') - sensor cropped width or height
55 (4) to (4') - CEU cropped width or height
56 (5) to (5') - reverse sensor scale applied to CEU cropped width or height
/linux-4.1.27/drivers/media/usb/zr364xx/
Dzr364xx.c183 int height; member
365 *size = cam->width * cam->height * (cam->fmt->depth >> 3); in buffer_setup()
400 buf->vb.size = cam->width * cam->height * (cam->fmt->depth >> 3); in buffer_prepare()
409 buf->vb.height = cam->height; in buffer_prepare()
799 if (!(f->fmt.pix.width == 160 && f->fmt.pix.height == 120) && in zr364xx_vidioc_try_fmt_vid_cap()
800 !(f->fmt.pix.width == 640 && f->fmt.pix.height == 480)) { in zr364xx_vidioc_try_fmt_vid_cap()
802 f->fmt.pix.height = 240; in zr364xx_vidioc_try_fmt_vid_cap()
807 f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; in zr364xx_vidioc_try_fmt_vid_cap()
827 f->fmt.pix.height = cam->height; in zr364xx_vidioc_g_fmt_vid_cap()
829 f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; in zr364xx_vidioc_g_fmt_vid_cap()
[all …]
/linux-4.1.27/drivers/media/usb/stk1160/
Dstk1160-v4l.c314 f->fmt.pix.height = dev->height; in vidioc_g_fmt_vid_cap()
318 f->fmt.pix.sizeimage = dev->height * f->fmt.pix.bytesperline; in vidioc_g_fmt_vid_cap()
338 f->fmt.pix.height = dev->height; in vidioc_try_fmt_vid_cap()
341 f->fmt.pix.sizeimage = dev->height * f->fmt.pix.bytesperline; in vidioc_try_fmt_vid_cap()
399 dev->height = 480; in vidioc_s_std()
402 dev->height = 576; in vidioc_s_std()
526 size = dev->width * dev->height * 2; in queue_setup()
571 if (buf->length < dev->width * dev->height * 2) in buffer_queue()
686 dev->height = 480; in stk1160_video_register()
/linux-4.1.27/drivers/gpu/ipu-v3/
Dipu-cpmem.c424 u32 pixel_format, int stride, int height) in ipu_cpmem_set_yuv_planar() argument
433 u_offset = stride * height; in ipu_cpmem_set_yuv_planar()
434 v_offset = u_offset + (uv_stride * height / 2); in ipu_cpmem_set_yuv_planar()
440 u_offset = stride * height; in ipu_cpmem_set_yuv_planar()
441 v_offset = u_offset + (uv_stride * height); in ipu_cpmem_set_yuv_planar()
447 u_offset = stride * height; in ipu_cpmem_set_yuv_planar()
504 #define U_OFFSET(pix, x, y) ((pix->width * pix->height) + \
506 #define V_OFFSET(pix, x, y) ((pix->width * pix->height) + \
507 (pix->width * pix->height / 4) + \
509 #define U2_OFFSET(pix, x, y) ((pix->width * pix->height) + \
[all …]
/linux-4.1.27/drivers/usb/misc/sisusbvga/
Dsisusb_con.c240 c->vc_font.height = sisusb->current_font_height; in sisusbcon_init()
244 rows = c->vc_scan_lines / c->vc_font.height; in sisusbcon_init()
425 sisusbcon_clear(struct vc_data *c, int y, int x, int height, int width) in sisusbcon_clear() argument
433 if (width <= 0 || height <= 0) in sisusbcon_clear()
454 sisusbcon_memsetw(dest, eattr, height * cols * 2); in sisusbcon_clear()
458 for (i = height; i > 0; i--, dest += cols) in sisusbcon_clear()
468 length = ((height * cols) - x - (cols - width - x)) * 2; in sisusbcon_clear()
480 int dy, int dx, int height, int width) in sisusbcon_bmove() argument
486 if (width <= 0 || height <= 0) in sisusbcon_bmove()
501 length = ((height * cols) - dx - (cols - width - dx)) * 2; in sisusbcon_bmove()
[all …]
/linux-4.1.27/drivers/staging/media/davinci_vpfe/
Ddm365_resizer.c57 resizer_calculate_line_length(u32 pix, int width, int height, in resizer_calculate_line_length() argument
96 if (!format->width || !format->height) { in resizer_validate_output_image_format()
101 format->height, in_line_len, in_line_len_c); in resizer_validate_output_image_format()
186 param->rsz_rsc_param[index].o_vsz = outformat->height - 1; in configure_resizer_out_params()
189 param->ext_mem_param[index].rsz_sdr_ptr_e_y = outformat->height; in configure_resizer_out_params()
191 param->ext_mem_param[index].rsz_sdr_ptr_e_c = outformat->height; in configure_resizer_out_params()
237 ((informat->height) * 256) / (outformat->height); in resizer_calculate_resize_ratios()
240 ((informat->height >> 1) * 256) / (outformat->height); in resizer_calculate_resize_ratios()
279 image_height = outformat->height + 1; in resizer_calculate_sdram_offsets()
438 param->rsz_common.vsz = (informat->height - 1) >> 1; in resizer_configure_common_in_params()
[all …]
/linux-4.1.27/drivers/media/pci/sta2x11/
Dsta2x11_vip.c166 .height = 576,
174 .height = 288,
182 .height = 288,
194 .height = 480,
202 .height = 240,
210 .height = 240,
618 if (interlace_lim < f->fmt.pix.height) in vidioc_try_fmt_vid_cap()
625 if (interlace_lim < f->fmt.pix.height) in vidioc_try_fmt_vid_cap()
626 f->fmt.pix.height = interlace_lim; in vidioc_try_fmt_vid_cap()
634 f->fmt.pix.height &= ~1; in vidioc_try_fmt_vid_cap()
[all …]
/linux-4.1.27/drivers/gpu/drm/udl/
Dudl_fb.c144 int width, int height) in udl_handle_damage() argument
181 (y + height > fb->base.height)) in udl_handle_damage()
190 y2 = y + height - 1; in udl_handle_damage()
246 atomic_add(width*height*bpp, &udl->bytes_rendered); in udl_handle_damage()
294 rect->height); in udl_fb_fillrect()
304 region->height); in udl_fb_copyarea()
314 image->height); in udl_fb_imageblit()
490 mode_cmd.height = sizes->surface_height; in udlfb_create()
496 size = mode_cmd.pitches[0] * mode_cmd.height; in udlfb_create()
544 fb->width, fb->height, in udlfb_create()
[all …]
/linux-4.1.27/drivers/media/pci/cx23885/
Dcx23885-video.c325 sizes[0] = (dev->fmt->depth * dev->width * dev->height) >> 3; in queue_setup()
341 if (vb2_plane_size(vb, 0) < dev->height * buf->bpl) in buffer_prepare()
343 vb2_set_plane_payload(vb, 0, dev->height * buf->bpl); in buffer_prepare()
349 buf->bpl, 0, dev->height); in buffer_prepare()
354 buf->bpl, 0, dev->height); in buffer_prepare()
384 dev->height >> 1); in buffer_prepare()
389 0, buf->bpl * (dev->height >> 1), in buffer_prepare()
391 dev->height >> 1); in buffer_prepare()
396 buf->bpl * (dev->height >> 1), 0, in buffer_prepare()
398 dev->height >> 1); in buffer_prepare()
[all …]
/linux-4.1.27/drivers/media/pci/ivtv/
Divtv-ioctl.c351 pixfmt->height = itv->cxhdl.height; in ivtv_g_fmt_vid_cap()
357 pixfmt->sizeimage = pixfmt->height * 720 * 3 / 2; in ivtv_g_fmt_vid_cap()
417 pixfmt->height = itv->main_rect.height; in ivtv_g_fmt_vid_out()
436 pixfmt->height = itv->yuv_info.v4l2_src_h; in ivtv_g_fmt_vid_out()
439 1080 * ((pixfmt->height + 31) & ~31); in ivtv_g_fmt_vid_out()
466 winfmt->w.height = itv->osd_rect.height; in ivtv_g_fmt_vid_out_overlay()
480 int h = fmt->fmt.pix.height; in ivtv_try_fmt_vid_cap()
494 fmt->fmt.pix.height = h; in ivtv_try_fmt_vid_cap()
528 s32 h = fmt->fmt.pix.height; in ivtv_try_fmt_vid_out()
554 fmt->fmt.pix.height = h; in ivtv_try_fmt_vid_out()
[all …]
/linux-4.1.27/drivers/media/platform/s5p-g2d/
Dg2d.c70 .height = DEFAULT_HEIGHT,
329 f->fmt.pix.height = frm->height; in vidioc_g_fmt()
354 if (f->fmt.pix.height > MAX_HEIGHT) in vidioc_try_fmt()
355 f->fmt.pix.height = MAX_HEIGHT; in vidioc_try_fmt()
359 if (f->fmt.pix.height < 1) in vidioc_try_fmt()
360 f->fmt.pix.height = 1; in vidioc_try_fmt()
363 f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; in vidioc_try_fmt()
393 frm->height = f->fmt.pix.height; in vidioc_s_fmt()
399 frm->c_height = frm->height; in vidioc_s_fmt()
401 frm->bottom = frm->height; in vidioc_s_fmt()
[all …]
/linux-4.1.27/drivers/media/platform/coda/
Dcoda-common.c95 base_cr = base_y + q_data->bytesperline * q_data->height; in coda_write_base()
96 base_cb = base_cr + q_data->bytesperline * q_data->height / 4; in coda_write_base()
101 base_cb = base_y + q_data->bytesperline * q_data->height; in coda_write_base()
102 base_cr = base_cb + q_data->bytesperline * q_data->height / 4; in coda_write_base()
105 base_cb = base_y + q_data->bytesperline * q_data->height; in coda_write_base()
106 base_cr = base_cb + q_data->bytesperline * q_data->height / 2; in coda_write_base()
433 f->fmt.pix.height = q_data->height; in coda_g_fmt()
473 u32 width, u32 height) in coda_estimate_sizeimage() argument
480 return round_up(clamp(sizeimage, width * height / 8, in coda_estimate_sizeimage()
481 width * height * 2), PAGE_SIZE); in coda_estimate_sizeimage()
[all …]
/linux-4.1.27/drivers/media/usb/em28xx/
Dem28xx-video.c277 u16 width, u16 height) in em28xx_capture_area_set() argument
280 u8 cheight = height >> 2; in em28xx_capture_area_set()
281 u8 overflow = (height >> 9 & 0x02) | (width >> 10 & 0x01); in em28xx_capture_area_set()
299 em28xx_write_reg(dev, 0x35, height >> 4); in em28xx_capture_area_set()
332 int height = norm_maxh(dev); in em28xx_resolution_set() local
343 em28xx_accumulator_set(dev, 1, (width - 4) >> 2, 1, (height - 4) >> 2); in em28xx_resolution_set()
353 em28xx_capture_area_set(dev, 0, 2, width, height); in em28xx_resolution_set()
355 em28xx_capture_area_set(dev, 0, 0, width, height); in em28xx_resolution_set()
383 if (v4l2->width * 2 * v4l2->height > 720 * 240 * 2) in em28xx_set_alternate()
887 (v4l2->width * v4l2->height * v4l2->format->depth + 7) >> 3; in queue_setup()
[all …]
/linux-4.1.27/drivers/media/platform/am437x/
Dam437x-vpfe.c61 unsigned int height; member
246 pix->sizeimage = pix->bytesperline * pix->height; in mbus_to_pix()
286 lhs->fmt.pix.height == rhs->fmt.pix.height && in cmp_v4l2_format()
355 vert_nr_lines = (image_win->height >> 1) - 1; in vpfe_ccdc_setwin()
364 vert_nr_lines = image_win->height - 1; in vpfe_ccdc_setwin()
369 mid_img = vert_start + (image_win->height / 2); in vpfe_ccdc_setwin()
987 ccdc->ccdc_cfg.ycbcr.win.height = 576; in vpfe_ccdc_config_defaults()
999 ccdc->ccdc_cfg.bayer.win.height = 600; in vpfe_ccdc_config_defaults()
1019 f->fmt.pix.height = image_win.height; in vpfe_get_ccdc_image_format()
1022 f->fmt.pix.height; in vpfe_get_ccdc_image_format()
[all …]
/linux-4.1.27/drivers/media/usb/cx231xx/
Dcx231xx-vbi.c174 u32 height = 0; in vbi_buffer_setup() local
176 height = ((dev->norm & V4L2_STD_625_50) ? in vbi_buffer_setup()
179 *size = (dev->width * height * 2 * 2); in vbi_buffer_setup()
225 u32 height = 0; in vbi_buffer_prepare() local
227 height = ((dev->norm & V4L2_STD_625_50) ? in vbi_buffer_prepare()
229 buf->vb.size = ((dev->width << 1) * height * 2); in vbi_buffer_prepare()
235 buf->vb.height = height; in vbi_buffer_prepare()
702 u32 height = 0; in cx231xx_is_vbi_buffer_done() local
704 height = ((dev->norm & V4L2_STD_625_50) ? in cx231xx_is_vbi_buffer_done()
706 if (dma_q->lines_completed == height && dma_q->current_field == 2) in cx231xx_is_vbi_buffer_done()
/linux-4.1.27/arch/powerpc/include/asm/
Dbtext.h11 extern void btext_update_display(unsigned long phys, int width, int height,
13 extern void btext_setup_display(int width, int height, int depth, int pitch,
/linux-4.1.27/drivers/video/fbdev/omap2/dss/
Ddispc.c79 u16 width, u16 height, u16 out_width, u16 out_height,
84 u16 width, u16 height, u16 out_width, u16 out_height,
755 int height) in dispc_ovl_set_input_size() argument
757 u32 val = FLD_VAL(height - 1, 26, 16) | FLD_VAL(width - 1, 10, 0); in dispc_ovl_set_input_size()
766 int height) in dispc_ovl_set_output_size() argument
772 val = FLD_VAL(height - 1, 26, 16) | FLD_VAL(width - 1, 10, 0); in dispc_ovl_set_output_size()
1125 u16 height) in dispc_mgr_set_size() argument
1129 val = FLD_VAL(height - 1, dispc.feat->mgr_height_start, 16) | in dispc_mgr_set_size()
1809 u16 width, u16 height, in calc_vrfb_rotation_offset() argument
1835 width, height); in calc_vrfb_rotation_offset()
[all …]
/linux-4.1.27/drivers/gpu/drm/msm/
Dmsm_fb.c79 fb->width, fb->height, (char *)&fb->pixel_format, in msm_framebuffer_describe()
182 dev, mode_cmd, mode_cmd->width, mode_cmd->height, in msm_framebuffer_init()
214 unsigned int height = mode_cmd->height / (i ? vsub : 1); in msm_framebuffer_init() local
217 min_size = (height - 1) * mode_cmd->pitches[i] in msm_framebuffer_init()
/linux-4.1.27/drivers/gpu/drm/nouveau/
Dnv04_fbcon.c44 OUT_RING(chan, (region->height << 16) | region->width); in nv04_fbcon_copyarea()
71 OUT_RING(chan, (rect->width << 16) | rect->height); in nv04_fbcon_fillrect()
106 OUT_RING(chan, ((image->dy + image->height) << 16) | in nv04_fbcon_imageblit()
110 OUT_RING(chan, (image->height << 16) | image->width); in nv04_fbcon_imageblit()
111 OUT_RING(chan, (image->height << 16) | image->width); in nv04_fbcon_imageblit()
114 dsize = ALIGN(image->width * image->height, 32) >> 5; in nv04_fbcon_imageblit()
/linux-4.1.27/drivers/video/fbdev/omap/
Dhwa742.c84 int x, y, width, height; member
201 static void enable_tearsync(int y, int width, int height, int screen_height, in enable_tearsync() argument
220 if ((width * hwa742.pix_tx_time / 1000) * height < in enable_tearsync()
221 (y + height) * (hwa742.line_upd_time / 1000)) { in enable_tearsync()
346 int h = par->height; in send_frame_handler()
422 req->par.update.height = _h; \
435 int height = win->height; in create_req_list() local
443 ADD_PREQ(x, y, 1, height); in create_req_list()
451 unsigned int yspan = height; in create_req_list()
453 if (xspan * height * 2 > hwa742.max_transmit_size) { in create_req_list()
[all …]
/linux-4.1.27/drivers/media/platform/ti-vpe/
Dvpe.c312 unsigned int height; /* frame height */ member
757 unsigned int src_h = s_q_data->c_rect.height; in set_dei_regs()
812 unsigned int src_h = s_q_data->c_rect.height; in set_srcdst_params()
814 unsigned int dst_h = d_q_data->c_rect.height; in set_srcdst_params()
836 mv_buf_size = bytes_per_line * s_q_data->height; in set_srcdst_params()
1061 frame_height = q_data->c_rect.height; in add_in_dtd()
1405 pix->height = q_data->height; in vpe_g_fmt()
1472 &pix->height, MIN_H, MAX_H, H_ALIGN, in __vpe_try_fmt()
1485 if (pix->height > 1280) /* HD */ in __vpe_try_fmt()
1503 (pix->height * pix->width * depth) >> 3; in __vpe_try_fmt()
[all …]
/linux-4.1.27/include/drm/
Ddrm_fb_helper.h100 bool *enabled, int width, int height);
153 int width, int height);
156 int width, int height);
/linux-4.1.27/Documentation/devicetree/bindings/panel/
Dsamsung,s6e8aa0.txt16 - panel-height-mm: physical panel height [mm]
39 panel-height-mm = <103>;

12345