/drivers/media/platform/omap/ |
D | omap_voutlib.c | 48 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 …]
|
/drivers/media/platform/s5p-tv/ |
D | mixer_grp_layer.c | 26 { .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 …]
|
D | mixer_vp_layer.c | 27 { .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 …]
|
/drivers/video/console/ |
D | fbcon_cw.c | 28 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 …]
|
D | fbcon_rotate.h | 40 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 …]
|
D | fbcon_ud.c | 28 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 …]
|
D | bitblit.c | 28 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 …]
|
D | fbcon_ccw.c | 28 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 …]
|
/drivers/media/platform/soc_camera/ |
D | sh_mobile_ceu_camera.c | 134 unsigned int height; member 232 fmt->fmt.pix.height); in sh_mobile_ceu_videobuf_setup() 661 unsigned int height, width, cdwdr_width, in_width, in_height; in sh_mobile_ceu_set_rect() local 698 height = icd->user_height; in sh_mobile_ceu_set_rect() 699 in_height = cam->height; in sh_mobile_ceu_set_rect() 701 height = (height / 2) & ~3; in sh_mobile_ceu_set_rect() 718 (in_height << 16) | in_width, (height << 16) | width, in sh_mobile_ceu_set_rect() 724 ceu_write(pcdev, CFSZR, (height << 16) | width); in sh_mobile_ceu_set_rect() 1092 mf.height > pcdev->max_height) && shift < 4) { in sh_mobile_ceu_get_formats() 1095 mf.height = 1920 >> shift; in sh_mobile_ceu_get_formats() [all …]
|
/drivers/video/mb862xx/ |
D | mb862xxfb_accel.c | 67 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 …]
|
/drivers/video/sis/ |
D | sis_accel.c | 118 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 …]
|
/drivers/staging/media/solo6x10/ |
D | solo6x10-enc.c | 39 unsigned long height; in solo_capture_config() local 64 height = solo_dev->video_vsize; in solo_capture_config() 67 SOLO_DIM_V_MB_NUM_FRAME(height / 8) | in solo_capture_config() 68 SOLO_DIM_V_MB_NUM_FIELD(height / 16)); in solo_capture_config() 72 height = solo_dev->video_vsize; in solo_capture_config() 75 SOLO_DIM_V_MB_NUM_FRAME(height / 8) | in solo_capture_config() 76 SOLO_DIM_V_MB_NUM_FIELD(height / 16)); in solo_capture_config() 80 height = solo_dev->video_vsize / 2; in solo_capture_config() 83 SOLO_DIM_V_MB_NUM_FRAME(height / 8) | in solo_capture_config() 84 SOLO_DIM_V_MB_NUM_FIELD(height / 16)); in solo_capture_config() [all …]
|
/drivers/media/i2c/soc_camera/ |
D | tw9910.c | 224 unsigned short height; member 241 .height = 480, 248 .height = 480, 255 .height = 240, 262 .height = 240, 269 .height = 120, 276 .height = 120, 286 .height = 576, 293 .height = 576, 300 .height = 288, [all …]
|
D | mt9m111.c | 213 int height; /* sizes */ member 321 unsigned int width, unsigned int height) in mt9m111_setup_rect_ctx() argument 326 ret = mt9m111_reg_write(client, ctx->reducer_yzoom, rect->height); in mt9m111_setup_rect_ctx() 330 ret = mt9m111_reg_write(client, ctx->reducer_ysize, height); in mt9m111_setup_rect_ctx() 335 int width, int height, enum v4l2_mbus_pixelcode code) in mt9m111_setup_geometry() argument 347 ret = reg_write(WINDOW_HEIGHT, rect->height); in mt9m111_setup_geometry() 353 rect, width, height); in mt9m111_setup_geometry() 356 rect, width, height); in mt9m111_setup_geometry() 360 __func__, code, rect->width, rect->height, rect->left, rect->top, in mt9m111_setup_geometry() 361 width, height, ret); in mt9m111_setup_geometry() [all …]
|
D | ov5642.c | 740 int height = priv->crop_rect.height; in ov5642_set_resolution() local 744 int start_y = (OV5642_SENSOR_SIZE_Y - height) / 2; in ov5642_set_resolution() 762 ret = reg_write16(client, REG_WINDOW_HEIGHT_HIGH, height); in ov5642_set_resolution() 766 priv->crop_rect.height = height; in ov5642_set_resolution() 771 ret = reg_write16(client, REG_OUT_HEIGHT_HIGH, height); in ov5642_set_resolution() 783 ret = reg_write16(client, REG_AVG_WINDOW_END_Y_HIGH, height); in ov5642_set_resolution() 796 mf->height = priv->crop_rect.height; in ov5642_try_fmt() 835 mf->height = priv->crop_rect.height; in ov5642_g_fmt() 876 &rect.height, 32, OV5642_MAX_HEIGHT, 1, 0); in ov5642_s_crop() 879 priv->crop_rect.height = rect.height; in ov5642_s_crop() [all …]
|
/drivers/video/matrox/ |
D | matroxfb_accel.c | 200 int sx, int dy, int dx, int height, int width) in matrox_accel_bmove() argument 223 end = (sy+height-1)*vxres+sx+curr_ydstorg(minfo); in matrox_accel_bmove() 225 dy += height-1; in matrox_accel_bmove() 231 mga_ydstlen(dy, height); in matrox_accel_bmove() 238 int sy, int sx, int dy, int dx, int height, in matrox_accel_bmove_lin() argument 262 end = (sy+height-1)*vxres+sx+curr_ydstorg(minfo); in matrox_accel_bmove_lin() 264 dy += height-1; in matrox_accel_bmove_lin() 271 mga_outl(M_LEN | M_EXEC, height); in matrox_accel_bmove_lin() 283 …es_virtual >> 1, area->sy, area->sx >> 1, area->dy, area->dx >> 1, area->height, area->width >> 1); in matroxfb_cfb4_copyarea() 289 … minfo->fbcon.var.xres_virtual, area->sy, area->sx, area->dy, area->dx, area->height, area->width); in matroxfb_copyarea() [all …]
|
/drivers/video/ |
D | atafb_mfb.c | 26 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()
|
D | atafb.h | 5 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);
|
D | tgafb.c | 626 u32 fgcolor, bgcolor, dx, dy, width, height, vxres, vyres, pixelmask; local 638 height = image->height; 652 if (dy + height > vyres) 653 height = vyres - dy; 712 for (i = 0; i < height; ++i) { 742 for (i = 0; i < height; ++i) { 765 for (i = 0; i < height; ++i) { 792 for (i = 0; i < height; ++i) { 814 for (i = 0; i < height; ++i) { 839 u32 color, dx, dy, width, height, vxres, vyres; local [all …]
|
/drivers/media/platform/omap3isp/ |
D | ispresizer.c | 365 u32 width, u32 height) in resizer_set_output_size() argument 370 dev_dbg(isp->dev, "Output size[w/h]: %dx%d\n", width, height); in resizer_set_output_size() 373 rgval |= (height << ISPRSZ_OUT_SIZE_VERT_SHIFT) in resizer_set_output_size() 429 u32 width, u32 height) in resizer_set_input_size() argument 434 dev_dbg(isp->dev, "Input size[w/h]: %dx%d\n", width, height); in resizer_set_input_size() 438 rgval |= (height << ISPRSZ_IN_SIZE_VERT_SHIFT) in resizer_set_input_size() 522 clock = div_u64((u64)limit * res->crop.active.height, ofmt->height); in omap3isp_resizer_max_rate() 604 * res->crop.active.height; in resizer_adjust_bandwidth() 810 unsigned int height; in resizer_calc_ratios() local 816 min_height = ((input->height - 7) * 256 - 32 - 64 * spv) / 1024 + 1; in resizer_calc_ratios() [all …]
|
/drivers/media/usb/gspca/stv06xx/ |
D | stv06xx_hdcs.c | 77 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 …]
|
/drivers/video/omap2/ |
D | vrfb.c | 138 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 …]
|
/drivers/staging/media/go7007/ |
D | go7007-v4l2.c | 94 static void get_resolution(struct go7007 *go, int *width, int *height) in get_resolution() argument 99 *height = 480; in get_resolution() 103 *height = 576; in get_resolution() 108 *height = go->board_info->sensor_height; in get_resolution() 193 int width, height, i; in set_capture_size() local 202 height = sensor_height; in set_capture_size() 211 if (fmt->fmt.pix.height > sensor_height) in set_capture_size() 212 height = sensor_height; in set_capture_size() 213 else if (fmt->fmt.pix.height < 96) in set_capture_size() 214 height = 96; in set_capture_size() [all …]
|
/drivers/gpu/drm/qxl/ |
D | qxl_image.c | 37 int width, int height, in qxl_image_create_helper() argument 55 ret = qxl_alloc_bo_reserved(qdev, sizeof(*chunk) + height * chunk_stride, in qxl_image_create_helper() 60 chunk->data_size = height * chunk_stride; in qxl_image_create_helper() 71 remain = linesize * height; in qxl_image_create_helper() 97 for (i = 0 ; i < height ; ++i) { in qxl_image_create_helper() 134 image->descriptor.height = height; in qxl_image_create_helper() 153 image->u.bitmap.y = height; in qxl_image_create_helper() 170 int x, int y, int width, int height, in qxl_image_create() argument 175 width, height, depth, 0, stride); in qxl_image_create()
|
/drivers/media/platform/ |
D | sh_vou.c | 189 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() 459 frame_in_height = pix->height / 2; in sh_vou_configure_geometry() 460 frame_out_height = rect->height / 2; in sh_vou_configure_geometry() 572 unsigned int found = geo->output.height * vou_scale_v_den[i] / in vou_adjust_input() 653 err = abs(found - geo->output.height); in vou_adjust_output() 663 geo->output.height = best; in vou_adjust_output() [all …]
|