/drivers/media/platform/omap/ |
D | omap_voutlib.c | 46 crop->width = (pix->width < fbuf->fmt.width) ? in omap_vout_default_crop() 47 pix->width : fbuf->fmt.width; in omap_vout_default_crop() 50 crop->width &= ~1; in omap_vout_default_crop() 52 crop->left = ((pix->width - crop->width) >> 1) & ~1; in omap_vout_default_crop() 75 try_win.width += try_win.left; in omap_vout_try_window() 82 try_win.width = (try_win.width < fbuf->fmt.width) ? in omap_vout_try_window() 83 try_win.width : fbuf->fmt.width; in omap_vout_try_window() 86 if (try_win.left + try_win.width > fbuf->fmt.width) in omap_vout_try_window() 87 try_win.width = fbuf->fmt.width - try_win.left; in omap_vout_try_window() 90 try_win.width &= ~1; in omap_vout_try_window() [all …]
|
/drivers/media/platform/soc_camera/ |
D | soc_scale_crop.c | 29 return r1->width < r2->width || r1->height < r2->height; in is_smaller() 36 r1->left + r1->width < r2->left + r2->width || in is_inside() 68 if (rect->width < subrect->width) in move_and_crop_subrect() 69 subrect->width = rect->width; in move_and_crop_subrect() 76 else if (rect->left + rect->width < in move_and_crop_subrect() 77 subrect->left + subrect->width) in move_and_crop_subrect() 78 subrect->left = rect->left + rect->width - in move_and_crop_subrect() 79 subrect->width; in move_and_crop_subrect() 112 unsigned int width, height; in soc_camera_client_s_selection() local 127 rect->width, rect->height, rect->left, rect->top); in soc_camera_client_s_selection() [all …]
|
/drivers/staging/media/atomisp/pci/atomisp2/ |
D | atomisp_dfs_tables.h | 27 unsigned int width; member 45 .width = ISP_FREQ_RULE_ANY, 52 .width = ISP_FREQ_RULE_ANY, 59 .width = ISP_FREQ_RULE_ANY, 66 .width = ISP_FREQ_RULE_ANY, 73 .width = ISP_FREQ_RULE_ANY, 92 .width = ISP_FREQ_RULE_ANY, 99 .width = ISP_FREQ_RULE_ANY, 106 .width = ISP_FREQ_RULE_ANY, 113 .width = ISP_FREQ_RULE_ANY, [all …]
|
/drivers/video/fbdev/core/ |
D | fbcon_rotate.h | 40 static inline void rotate_ud(const char *in, char *out, u32 width, u32 height) in rotate_ud() argument 43 int shift = (8 - (width % 8)) & 7; in rotate_ud() 45 width = (width + 7) & ~7; in rotate_ud() 48 for (j = 0; j < width - shift; j++) { in rotate_ud() 49 if (pattern_test_bit(j, i, width, in)) in rotate_ud() 50 pattern_set_bit(width - (1 + j + shift), in rotate_ud() 52 width, out); 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() 63 width = (width + 7) & ~7; in rotate_cw() [all …]
|
D | fbcon_ccw.c | 29 int width = (vc->vc_font.height + 7) >> 3; in ccw_update_attr() local 39 for (i = 0; i < vc->vc_font.width; i++) { in ccw_update_attr() 40 for (j = 0; j < width; j++) { in ccw_update_attr() 44 if (j == width - 1) in ccw_update_attr() 47 if (msk1 && j == width - 2) in ccw_update_attr() 52 *(dst - width) |= c; in ccw_update_attr() 64 int sx, int dy, int dx, int height, int width) in ccw_bmove() argument 71 area.sy = vyres - ((sx + width) * vc->vc_font.width); in ccw_bmove() 73 area.dy = vyres - ((dx + width) * vc->vc_font.width); in ccw_bmove() 74 area.width = height * vc->vc_font.height; in ccw_bmove() [all …]
|
D | fbcon_cw.c | 29 int width = (vc->vc_font.height + 7) >> 3; in cw_update_attr() local 32 for (i = 0; i < vc->vc_font.width; i++) { in cw_update_attr() 33 for (j = 0; j < width; j++) { in cw_update_attr() 38 c |= *(src-width); in cw_update_attr() 49 int sx, int dy, int dx, int height, int width) in cw_bmove() argument 56 area.sy = sx * vc->vc_font.width; in cw_bmove() 58 area.dy = dx * vc->vc_font.width; 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 [all …]
|
D | bitblit.c | 29 int width = DIV_ROUND_UP(vc->vc_font.width, 8); in update_attr() local 30 unsigned int cellsize = vc->vc_font.height * width; in update_attr() 33 offset = cellsize - (offset * width); in update_attr() 47 int sx, int dy, int dx, int height, int width) in bit_bmove() argument 51 area.sx = sx * vc->vc_font.width; in bit_bmove() 53 area.dx = dx * vc->vc_font.width; in bit_bmove() 56 area.width = width * vc->vc_font.width; in bit_bmove() 62 int sx, int height, int width) in bit_clear() argument 68 region.dx = sx * vc->vc_font.width; in bit_clear() 70 region.width = width * vc->vc_font.width; in bit_clear() [all …]
|
D | fbcon_ud.c | 29 int width = (vc->vc_font.width + 7) >> 3; in ud_update_attr() local 30 unsigned int cellsize = vc->vc_font.height * width; in ud_update_attr() 33 offset = offset * width; in ud_update_attr() 49 int sx, int dy, int dx, int height, int width) in ud_bmove() argument 57 area.sx = vxres - ((sx + width) * vc->vc_font.width); in ud_bmove() 59 area.dx = vxres - ((dx + width) * vc->vc_font.width); in ud_bmove() 61 area.width = width * vc->vc_font.width; in ud_bmove() 67 int sx, int height, int width) in ud_clear() argument 77 region.dx = vxres - ((sx + width) * vc->vc_font.width); in ud_clear() 78 region.width = width * vc->vc_font.width; in ud_clear() [all …]
|
/drivers/staging/media/atomisp/pci/atomisp2/css2400/runtime/frame/src/ |
D | frame.c | 47 unsigned int width, 90 unsigned int width, 97 static struct ia_css_frame *frame_create(unsigned int width, 128 ia_css_frame_allocate(frame, info->res.width, info->res.height, in ia_css_frame_allocate_from_info() 137 unsigned int width, in ia_css_frame_allocate() argument 145 if (frame == NULL || width == 0 || height == 0) in ia_css_frame_allocate() 151 width, height, format); in ia_css_frame_allocate() 154 width, height, format, padded_width, raw_bit_depth); in ia_css_frame_allocate() 157 err = frame_allocate_with_data(frame, width, height, format, in ia_css_frame_allocate() 229 me = frame_create(info->res.width, in ia_css_frame_create_from_info() [all …]
|
/drivers/video/fbdev/ |
D | atafb_iplan2p2.c | 26 int height, int width) in atafb_iplan2p2_copyarea() argument 57 width -= 8; in atafb_iplan2p2_copyarea() 59 w = width >> 4; in atafb_iplan2p2_copyarea() 72 if (width & 15) in atafb_iplan2p2_copyarea() 73 memmove32_col(dst + width / (8 / BPL), src + width / (8 / BPL), in atafb_iplan2p2_copyarea() 76 src = (u8 *)info->screen_base + (sy - 1) * next_line + ((sx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p2_copyarea() 77 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p2_copyarea() 79 if ((sx + width) & 15) { in atafb_iplan2p2_copyarea() 83 width -= 8; in atafb_iplan2p2_copyarea() 85 w = width >> 4; in atafb_iplan2p2_copyarea() [all …]
|
D | atafb_iplan2p4.c | 26 int height, int width) in atafb_iplan2p4_copyarea() argument 57 width -= 8; in atafb_iplan2p4_copyarea() 59 w = width >> 4; in atafb_iplan2p4_copyarea() 72 if (width & 15) in atafb_iplan2p4_copyarea() 73 memmove32_col(dst + width / (8 / BPL), src + width / (8 / BPL), in atafb_iplan2p4_copyarea() 76 src = (u8 *)info->screen_base + (sy - 1) * next_line + ((sx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p4_copyarea() 77 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p4_copyarea() 79 if ((sx + width) & 15) { in atafb_iplan2p4_copyarea() 83 width -= 8; in atafb_iplan2p4_copyarea() 85 w = width >> 4; in atafb_iplan2p4_copyarea() [all …]
|
D | atafb_mfb.c | 26 int height, int width) in atafb_mfb_copyarea() argument 31 if (sx == 0 && dx == 0 && width == next_line) { in atafb_mfb_copyarea() 32 src = (u8 *)info->screen_base + sy * (width >> 3); in atafb_mfb_copyarea() 33 dest = (u8 *)info->screen_base + dy * (width >> 3); in atafb_mfb_copyarea() 34 fb_memmove(dest, src, height * (width >> 3)); in atafb_mfb_copyarea() 39 fb_memmove(dest, src, width >> 3); in atafb_mfb_copyarea() 47 fb_memmove(dest, src, width >> 3); in atafb_mfb_copyarea() 55 int sy, int sx, int height, int width) in atafb_mfb_fillrect() argument 62 if (sx == 0 && width == next_line) { in atafb_mfb_fillrect() 64 fb_memset255(dest, height * (width >> 3)); in atafb_mfb_fillrect() [all …]
|
D | atafb_iplan2p8.c | 33 int height, int width) in atafb_iplan2p8_copyarea() argument 64 width -= 8; in atafb_iplan2p8_copyarea() 66 w = width >> 4; in atafb_iplan2p8_copyarea() 79 if (width & 15) in atafb_iplan2p8_copyarea() 80 memmove32_col(dst + width / (8 / BPL), src + width / (8 / BPL), in atafb_iplan2p8_copyarea() 83 src = (u8 *)info->screen_base + (sy - 1) * next_line + ((sx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p8_copyarea() 84 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p8_copyarea() 86 if ((sx + width) & 15) { in atafb_iplan2p8_copyarea() 90 width -= 8; in atafb_iplan2p8_copyarea() 92 w = width >> 4; in atafb_iplan2p8_copyarea() [all …]
|
D | atafb.h | 6 int dx, int height, int width); 8 int sy, int sx, int height, int width); 10 int dy, int dx, u32 width, 14 int dx, int height, int width); 16 int sy, int sx, int height, int width); 18 int dy, int dx, u32 width, 22 int dx, int height, int width); 24 int sy, int sx, int height, int width); 26 int dy, int dx, u32 width, 30 int dx, int height, int width); [all …]
|
/drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/ |
D | hive_isp_css_ddr_hrt_modified.h | 35 unsigned int width, 46 unsigned int width, 55 unsigned int width, 61 unsigned int width, 66 unsigned int width, 72 unsigned int width, 91 unsigned int width, 97 unsigned int width, 107 unsigned int width, 115 unsigned int width, [all …]
|
/drivers/clk/ |
D | clk-divider.c | 31 #define div_mask(width) ((1 << (width)) - 1) argument 34 u8 width) in _get_table_maxdiv() argument 36 unsigned int maxdiv = 0, mask = div_mask(width); in _get_table_maxdiv() 56 static unsigned int _get_maxdiv(const struct clk_div_table *table, u8 width, in _get_maxdiv() argument 60 return div_mask(width); in _get_maxdiv() 62 return 1 << div_mask(width); in _get_maxdiv() 64 return _get_table_maxdiv(table, width); in _get_maxdiv() 65 return div_mask(width) + 1; in _get_maxdiv() 80 unsigned int val, unsigned long flags, u8 width) in _get_div() argument 87 return val ? val : div_mask(width) + 1; in _get_div() [all …]
|
/drivers/media/pci/bt8xx/ |
D | btcx-risc.c | 103 clips[n].c.width = -win->left; in btcx_screen_clips() 107 if (win->left + win->width > swidth) { in btcx_screen_clips() 111 clips[n].c.width = win->width - clips[n].c.left; in btcx_screen_clips() 119 clips[n].c.width = win->width; in btcx_screen_clips() 127 clips[n].c.width = win->width; in btcx_screen_clips() 142 nw = (win->width) & ~mask; in btcx_align() 143 if (nx + nw > win->left + win->width) in btcx_align() 147 win->width = nw; in btcx_align() 149 win->width, win->height, win->left, win->top, dx); in btcx_align() 154 nw = (clips[i].c.width) & ~mask; in btcx_align() [all …]
|
/drivers/dma/ |
D | fsldma.h | 226 #define DMA_IN(fsl_chan, addr, width) \ argument 228 in_be##width(addr) : in_le##width(addr)) 229 #define DMA_OUT(fsl_chan, addr, val, width) \ argument 231 out_be##width(addr, val) : out_le##width(addr, val)) 233 #define DMA_TO_CPU(fsl_chan, d, width) \ argument 235 be##width##_to_cpu((__force __be##width)(v##width)d) : \ 236 le##width##_to_cpu((__force __le##width)(v##width)d)) 237 #define CPU_TO_DMA(fsl_chan, c, width) \ argument 239 (__force v##width)cpu_to_be##width(c) : \ 240 (__force v##width)cpu_to_le##width(c))
|
/drivers/video/fbdev/aty/ |
D | mach64_accel.c | 187 static inline void draw_rect(s16 x, s16 y, u16 width, u16 height, in draw_rect() argument 193 aty_st_le32(DST_HEIGHT_WIDTH, (width << 16) | height, par); in draw_rect() 201 u32 sx = area->sx, dx = area->dx, width = area->width, rotation = 0; in atyfb_copyarea() local 205 if (!area->width || !area->height) in atyfb_copyarea() 217 width *= 3; in atyfb_copyarea() 227 dx += width - 1; in atyfb_copyarea() 228 sx += width - 1; in atyfb_copyarea() 240 aty_st_le32(SRC_HEIGHT1_WIDTH1, (width << 16) | area->height, par); in atyfb_copyarea() 242 draw_rect(dx, dy, width, area->height, par); in atyfb_copyarea() 248 u32 color, dx = rect->dx, width = rect->width, rotation = 0; in atyfb_fillrect() local [all …]
|
/drivers/acpi/acpica/ |
D | utprint.c | 66 u8 base, s32 width, s32 precision, u8 type); 238 u8 base, s32 width, s32 precision, u8 type) in acpi_ut_format_number() argument 270 width--; in acpi_ut_format_number() 273 width--; in acpi_ut_format_number() 276 width--; in acpi_ut_format_number() 280 width--; in acpi_ut_format_number() 282 width--; in acpi_ut_format_number() 297 width -= precision; in acpi_ut_format_number() 302 while (--width >= 0) { in acpi_ut_format_number() 318 while (--width >= 0) { in acpi_ut_format_number() [all …]
|
/drivers/gpu/drm/omapdrm/ |
D | tcm.h | 59 u16 width, height; /* container dimensions */ member 69 s32 (*reserve_2d)(struct tcm *tcm, u16 height, u16 width, u16 align, 93 struct tcm *sita_init(u16 width, u16 height); 133 static inline s32 tcm_reserve_2d(struct tcm *tcm, u16 width, u16 height, in tcm_reserve_2d() argument 139 (area == NULL || width == 0 || height == 0 || in tcm_reserve_2d() 142 (height > tcm->height || width > tcm->width) ? -ENOMEM : 0; in tcm_reserve_2d() 146 res = tcm->reserve_2d(tcm, height, width, align, offset, in tcm_reserve_2d() 173 slots > (tcm->width * (u32) tcm->height) ? -ENOMEM : 0; in tcm_reserve_1d() 231 (slice->p0.x || (slice->p1.x != slice->tcm->width - 1))) { in tcm_slice() 233 slice->p1.x = slice->tcm->width - 1; in tcm_slice() [all …]
|
/drivers/video/fbdev/matrox/ |
D | matroxfb_accel.c | 208 int sx, int dy, int dx, int height, int width) in matrox_accel_bmove() argument 223 width--; in matrox_accel_bmove() 225 end = start+width; in matrox_accel_bmove() 232 width--; in matrox_accel_bmove() 234 start = end+width; in matrox_accel_bmove() 241 mga_outl(M_FXBNDRY, ((dx+width)<<16) | dx); in matrox_accel_bmove() 250 int width) in matrox_accel_bmove_lin() argument 265 width--; in matrox_accel_bmove_lin() 267 end = start+width; in matrox_accel_bmove_lin() 274 width--; in matrox_accel_bmove_lin() [all …]
|
/drivers/video/fbdev/sis/ |
D | sis_accel.c | 118 int src_y, int dst_x, int dst_y, int width, int height) in SiS300SubsequentScreenToScreenCopy() argument 135 src_x += width-1; in SiS300SubsequentScreenToScreenCopy() 136 dst_x += width-1; in SiS300SubsequentScreenToScreenCopy() 142 SiS300SetupRect(width, height) in SiS300SubsequentScreenToScreenCopy() 205 int dst_x, int dst_y, int width, int height) in SiS310SubsequentScreenToScreenCopy() argument 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() 339 width = ((rect->dx + rect->width) > vxres) ? (vxres - rect->dx) : rect->width; in fbcon_sis_fillrect() 354 SiS300SubsequentSolidFillRect(ivideo, rect->dx, rect->dy, width, height); in fbcon_sis_fillrect() [all …]
|
/drivers/gpu/drm/panel/ |
D | panel-simple.c | 52 unsigned int width; member 152 connector->display_info.width_mm = panel->desc->size.width; in panel_simple_get_fixed_modes() 410 .width = 105, 435 .width = 152, 459 .width = 223, 482 .width = 217, 506 .width = 223, 529 .width = 256, 552 .width = 293, 575 .width = 293, [all …]
|
/drivers/video/fbdev/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 97 bytes = (image->width + 7) >> 3; in mb86290fb_imageblit1() 103 cmd[8] = (height << 16) | width; in mb86290fb_imageblit1() 125 u16 width, u16 height, u32 fgcolor, in mb86290fb_imageblit8() argument 136 cmd[2] = (height << 16) | width; in mb86290fb_imageblit8() 140 bytes = image->width; in mb86290fb_imageblit8() 164 u16 width, u16 height, u32 fgcolor, in mb86290fb_imageblit16() argument 174 bytes = image->width << 1; in mb86290fb_imageblit16() 179 cmd[2] = (height << 16) | width; in mb86290fb_imageblit16() [all …]
|