Home
last modified time | relevance | path

Searched refs:width (Results 1 – 25 of 1050) sorted by relevance

12345678910>>...42

/drivers/media/platform/omap/
Domap_voutlib.c46 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/
Dsoc_scale_crop.c29 return r1->width < r2->width || r1->height < r2->height; in is_smaller()
36 r1->left + r1->width < r2->left + r2->width || in is_inside()
69 if (rect->width < subrect->width) in update_subrect()
70 subrect->width = rect->width; in update_subrect()
77 else if (rect->left + rect->width > in update_subrect()
78 subrect->left + subrect->width) in update_subrect()
79 subrect->left = rect->left + rect->width - in update_subrect()
80 subrect->width; 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 …]
/drivers/video/console/
Dfbcon_rotate.h40 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 …]
Dfbcon_ccw.c29 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 …]
Dfbcon_cw.c29 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 …]
Dfbcon_ud.c29 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 …]
Dbitblit.c29 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 …]
/drivers/video/fbdev/
Datafb_iplan2p2.c26 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 …]
Datafb_iplan2p4.c26 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 …]
Datafb_mfb.c26 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 …]
Datafb_iplan2p8.c33 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 …]
Datafb.h5 int dx, int height, int width);
7 int sy, int sx, int height, int width);
9 int dy, int dx, u32 width,
13 int dx, int height, int width);
15 int sy, int sx, int height, int width);
17 int dy, int dx, u32 width,
21 int dx, int height, int width);
23 int sy, int sx, int height, int width);
25 int dy, int dx, u32 width,
29 int dx, int height, int width);
[all …]
/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 },
164 x_center = dst->x_offset + dst->width / 2; in mxr_graph_fix_geometry()
168 dst->width = round_down(dst->width, 2); in mxr_graph_fix_geometry()
171 dst->width = round_up(dst->width, 2); in mxr_graph_fix_geometry()
175 dst->width = min(dst->width, dst->full_width); in mxr_graph_fix_geometry()
179 dst->width = min(dst->width, 2 * src->full_width); in mxr_graph_fix_geometry()
183 dst->x_offset = do_center(x_center, dst->width, 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 x_center = dst->x_offset + dst->width / 2; in mxr_vp_fix_geometry()
160 dst->width = clamp(dst->width, 8U, 16 * src->full_width); in mxr_vp_fix_geometry()
[all …]
/drivers/media/pci/bt8xx/
Dbtcx-risc.c95 clips[n].c.width = -win->left; in btcx_screen_clips()
99 if (win->left + win->width > swidth) { in btcx_screen_clips()
103 clips[n].c.width = win->width - clips[n].c.left; in btcx_screen_clips()
111 clips[n].c.width = win->width; in btcx_screen_clips()
119 clips[n].c.width = win->width; in btcx_screen_clips()
134 nw = (win->width) & ~mask; in btcx_align()
135 if (nx + nw > win->left + win->width) in btcx_align()
139 win->width = nw; in btcx_align()
142 win->width, win->height, win->left, win->top, dx); in btcx_align()
147 nw = (clips[i].c.width) & ~mask; in btcx_align()
[all …]
/drivers/acpi/acpica/
Dutprint.c66 u8 base, s32 width, s32 precision, u8 type);
243 u8 base, s32 width, s32 precision, u8 type) in acpi_ut_format_number() argument
275 width--; in acpi_ut_format_number()
278 width--; in acpi_ut_format_number()
281 width--; in acpi_ut_format_number()
285 width--; in acpi_ut_format_number()
287 width--; in acpi_ut_format_number()
302 width -= precision; in acpi_ut_format_number()
307 while (--width >= 0) { in acpi_ut_format_number()
322 while (--width >= 0) { in acpi_ut_format_number()
[all …]
/drivers/dma/
Dfsldma.h222 #define DMA_IN(fsl_chan, addr, width) \ argument
224 in_be##width(addr) : in_le##width(addr))
225 #define DMA_OUT(fsl_chan, addr, val, width) \ argument
227 out_be##width(addr, val) : out_le##width(addr, val))
229 #define DMA_TO_CPU(fsl_chan, d, width) \ argument
231 be##width##_to_cpu((__force __be##width)(v##width)d) : \
232 le##width##_to_cpu((__force __le##width)(v##width)d))
233 #define CPU_TO_DMA(fsl_chan, c, width) \ argument
235 (__force v##width)cpu_to_be##width(c) : \
236 (__force v##width)cpu_to_le##width(c))
/drivers/clk/
Dclk-divider.c33 #define div_mask(width) ((1 << (width)) - 1) argument
57 static unsigned int _get_maxdiv(const struct clk_div_table *table, u8 width, in _get_maxdiv() argument
61 return div_mask(width); in _get_maxdiv()
63 return 1 << div_mask(width); in _get_maxdiv()
66 return div_mask(width) + 1; in _get_maxdiv()
81 unsigned int val, unsigned long flags, u8 width) in _get_div() argument
88 return val ? val : div_mask(width) + 1; in _get_div()
106 unsigned int div, unsigned long flags, u8 width) in _get_val() argument
113 return (div == div_mask(width) + 1) ? 0 : div; in _get_val()
127 div = _get_div(table, val, flags, divider->width); in divider_recalc_rate()
[all …]
/drivers/video/fbdev/aty/
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()
200 u32 sx = area->sx, dx = area->dx, width = area->width, rotation = 0; in atyfb_copyarea() local
204 if (!area->width || !area->height) in atyfb_copyarea()
216 width *= 3; in atyfb_copyarea()
226 dx += width - 1; in atyfb_copyarea()
227 sx += width - 1; in atyfb_copyarea()
239 aty_st_le32(SRC_HEIGHT1_WIDTH1, (width << 16) | area->height, par); in atyfb_copyarea()
241 draw_rect(dx, dy, width, area->height, par); in atyfb_copyarea()
247 u32 color, dx = rect->dx, width = rect->width, rotation = 0; in atyfb_fillrect() local
[all …]
/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()
227 (slice->p0.x || (slice->p1.x != slice->tcm->width - 1))) { in tcm_slice()
229 slice->p1.x = slice->tcm->width - 1; in tcm_slice()
[all …]
/drivers/video/fbdev/matrox/
Dmatroxfb_accel.c208 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/
Dsis_accel.c118 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/media/platform/vivid/
Dvivid-vid-common.c520 if (dev->src_rect.width != dev->sink_rect.width || in vivid_vid_can_loop()
578 mp->width = pix->width; in fmt_sp2mp()
607 pix->width = mp->width; in fmt_sp2mp_func()
624 r->width = size->width; in rect_set_size_to()
631 if (r->width < min_size->width) in rect_set_min_size()
632 r->width = min_size->width; in rect_set_min_size()
640 if (r->width > max_size->width) in rect_set_max_size()
641 r->width = max_size->width; in rect_set_max_size()
654 if (r->left + r->width > boundary->width) in rect_map_inside()
655 r->left = boundary->width - r->width; in rect_map_inside()
[all …]
/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
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 …]
/drivers/staging/fbtft/
Dflexfb.c33 static unsigned int width; variable
34 module_param(width, uint, 0);
35 MODULE_PARM_DESC(width, "Display width");
141 unsigned int width; member
152 .width = 120,
159 .width = 176,
166 .width = 176,
174 .width = 176,
182 .width = 176,
190 .width = 240,
[all …]

12345678910>>...42