/linux-4.1.27/drivers/video/console/ |
H A D | fbcon_rotate.h | 40 static inline void rotate_ud(const char *in, char *out, u32 width, u32 height) rotate_ud() argument 43 int shift = (8 - (width % 8)) & 7; rotate_ud() 45 width = (width + 7) & ~7; rotate_ud() 48 for (j = 0; j < width - shift; j++) { rotate_ud() 49 if (pattern_test_bit(j, i, width, in)) rotate_ud() 50 pattern_set_bit(width - (1 + j + shift), rotate_ud() 52 width, out); rotate_ud() 58 static inline void rotate_cw(const char *in, char *out, u32 width, u32 height) rotate_cw() argument 60 int i, j, h = height, w = width; rotate_cw() 63 width = (width + 7) & ~7; rotate_cw() 68 if (pattern_test_bit(j, i, width, in)) rotate_cw() 76 static inline void rotate_ccw(const char *in, char *out, u32 width, u32 height) rotate_ccw() argument 78 int i, j, h = height, w = width; rotate_ccw() 79 int shift = (8 - (width % 8)) & 7; rotate_ccw() 81 width = (width + 7) & ~7; rotate_ccw() 86 if (pattern_test_bit(j, i, width, in)) rotate_ccw() 87 pattern_set_bit(i, width - 1 - j - shift, rotate_ccw()
|
H A D | fbcon_ccw.c | 29 int width = (vc->vc_font.height + 7) >> 3; ccw_update_attr() local 39 for (i = 0; i < vc->vc_font.width; i++) { ccw_update_attr() 40 for (j = 0; j < width; j++) { ccw_update_attr() 44 if (j == width - 1) ccw_update_attr() 47 if (msk1 && j == width - 2) ccw_update_attr() 52 *(dst - width) |= c; ccw_update_attr() 64 int sx, int dy, int dx, int height, int width) ccw_bmove() 71 area.sy = vyres - ((sx + width) * vc->vc_font.width); ccw_bmove() 73 area.dy = vyres - ((dx + width) * vc->vc_font.width); ccw_bmove() 74 area.width = height * vc->vc_font.height; ccw_bmove() 75 area.height = width * vc->vc_font.width; ccw_bmove() 81 int sx, int height, int width) ccw_clear() 90 region.dy = vyres - ((sx + width) * vc->vc_font.width); ccw_clear() 91 region.height = width * vc->vc_font.width; ccw_clear() 92 region.width = height * vc->vc_font.height; ccw_clear() 118 vc->vc_font.width); ccw_putcs_aligned() 121 vc->vc_font.width); ccw_putcs_aligned() 123 dst += d_pitch * vc->vc_font.width; ccw_putcs_aligned() 135 u32 width = (vc->vc_font.height + 7)/8; ccw_putcs() local 136 u32 cellsize = width * vc->vc_font.width; ccw_putcs() 151 image.dy = vyres - ((xx + count) * vc->vc_font.width); ccw_putcs() 152 image.width = vc->vc_font.height; ccw_putcs() 169 image.height = vc->vc_font.width * cnt; ccw_putcs() 170 pitch = ((image.width + 7) >> 3) + scan_align; ccw_putcs() 177 width, cellsize, &image, buf, dst); ccw_putcs() 194 unsigned int cw = vc->vc_font.width; ccw_clear_margins() 208 region.width = info->var.xres_virtual; ccw_clear_margins() 216 region.width = bh; ccw_clear_margins() 250 src = ops->fontbuffer + ((c & charmask) * (w * vc->vc_font.width)); ccw_cursor() 261 dst = kmalloc(w * vc->vc_font.width, GFP_ATOMIC); ccw_cursor() 278 if (ops->cursor_state.image.height != vc->vc_font.width || ccw_cursor() 279 ops->cursor_state.image.width != vc->vc_font.height || ccw_cursor() 281 ops->cursor_state.image.height = vc->vc_font.width; ccw_cursor() 282 ops->cursor_state.image.width = vc->vc_font.height; ccw_cursor() 287 dy = vyres - ((vc->vc_x + 1) * vc->vc_font.width); ccw_cursor() 307 char *tmp, *mask = kmalloc(w*vc->vc_font.width, GFP_ATOMIC); ccw_cursor() 309 int width = (vc->vc_font.width + 7)/8; ccw_cursor() local 314 tmp = kmalloc(width * vc->vc_font.height, GFP_ATOMIC); ccw_cursor() 349 size = (vc->vc_font.height - cur_height) * width; ccw_cursor() 352 size = cur_height * width; ccw_cursor() 355 memset(mask, 0, w * vc->vc_font.width); ccw_cursor() 356 rotate_ccw(tmp, mask, vc->vc_font.width, vc->vc_font.height); ccw_cursor() 377 cursor.image.width = ops->cursor_state.image.width; ccw_cursor() 63 ccw_bmove(struct vc_data *vc, struct fb_info *info, int sy, int sx, int dy, int dx, int height, int width) ccw_bmove() argument 80 ccw_clear(struct vc_data *vc, struct fb_info *info, int sy, int sx, int height, int width) ccw_clear() argument
|
H A D | fbcon_cw.c | 29 int width = (vc->vc_font.height + 7) >> 3; cw_update_attr() local 32 for (i = 0; i < vc->vc_font.width; i++) { cw_update_attr() 33 for (j = 0; j < width; j++) { cw_update_attr() 38 c |= *(src-width); cw_update_attr() 49 int sx, int dy, int dx, int height, int width) cw_bmove() 56 area.sy = sx * vc->vc_font.width; cw_bmove() 58 area.dy = dx * vc->vc_font.width; cw_bmove() 59 area.width = height * vc->vc_font.height; cw_bmove() 60 area.height = width * vc->vc_font.width; cw_bmove() 66 int sx, int height, int width) cw_clear() 75 region.dy = sx * vc->vc_font.width; cw_clear() 76 region.height = width * vc->vc_font.width; cw_clear() 77 region.width = height * vc->vc_font.height; cw_clear() 103 vc->vc_font.width); cw_putcs_aligned() 106 vc->vc_font.width); cw_putcs_aligned() 108 dst += d_pitch * vc->vc_font.width; cw_putcs_aligned() 120 u32 width = (vc->vc_font.height + 7)/8; cw_putcs() local 121 u32 cellsize = width * vc->vc_font.width; cw_putcs() 136 image.dy = xx * vc->vc_font.width; cw_putcs() 137 image.width = vc->vc_font.height; cw_putcs() 152 image.height = vc->vc_font.width * cnt; cw_putcs() 153 pitch = ((image.width + 7) >> 3) + scan_align; cw_putcs() 160 width, cellsize, &image, buf, dst); cw_putcs() 177 unsigned int cw = vc->vc_font.width; cw_clear_margins() 191 region.width = info->var.xres_virtual; cw_clear_margins() 199 region.width = bh; cw_clear_margins() 233 src = ops->fontbuffer + ((c & charmask) * (w * vc->vc_font.width)); cw_cursor() 244 dst = kmalloc(w * vc->vc_font.width, GFP_ATOMIC); cw_cursor() 261 if (ops->cursor_state.image.height != vc->vc_font.width || cw_cursor() 262 ops->cursor_state.image.width != vc->vc_font.height || cw_cursor() 264 ops->cursor_state.image.height = vc->vc_font.width; cw_cursor() 265 ops->cursor_state.image.width = vc->vc_font.height; cw_cursor() 270 dy = vc->vc_x * vc->vc_font.width; cw_cursor() 290 char *tmp, *mask = kmalloc(w*vc->vc_font.width, GFP_ATOMIC); cw_cursor() 292 int width = (vc->vc_font.width + 7)/8; cw_cursor() local 297 tmp = kmalloc(width * vc->vc_font.height, GFP_ATOMIC); cw_cursor() 332 size = (vc->vc_font.height - cur_height) * width; cw_cursor() 335 size = cur_height * width; cw_cursor() 338 memset(mask, 0, w * vc->vc_font.width); cw_cursor() 339 rotate_cw(tmp, mask, vc->vc_font.width, vc->vc_font.height); cw_cursor() 360 cursor.image.width = ops->cursor_state.image.width; cw_cursor() 48 cw_bmove(struct vc_data *vc, struct fb_info *info, int sy, int sx, int dy, int dx, int height, int width) cw_bmove() argument 65 cw_clear(struct vc_data *vc, struct fb_info *info, int sy, int sx, int height, int width) cw_clear() argument
|
H A D | bitblit.c | 29 int width = DIV_ROUND_UP(vc->vc_font.width, 8); update_attr() local 30 unsigned int cellsize = vc->vc_font.height * width; update_attr() 33 offset = cellsize - (offset * width); update_attr() 47 int sx, int dy, int dx, int height, int width) bit_bmove() 51 area.sx = sx * vc->vc_font.width; bit_bmove() 53 area.dx = dx * vc->vc_font.width; bit_bmove() 56 area.width = width * vc->vc_font.width; bit_bmove() 62 int sx, int height, int width) bit_clear() 68 region.dx = sx * vc->vc_font.width; bit_clear() 70 region.width = width * vc->vc_font.width; bit_clear() 83 u32 idx = vc->vc_font.width >> 3; bit_putcs_aligned() 116 u32 shift_low = 0, mod = vc->vc_font.width % 8; bit_putcs_unaligned() 118 u32 idx = vc->vc_font.width >> 3; bit_putcs_unaligned() 148 u32 width = DIV_ROUND_UP(vc->vc_font.width, 8); bit_putcs() local 149 u32 cellsize = width * vc->vc_font.height; bit_putcs() 153 u32 mod = vc->vc_font.width % 8, cnt, pitch, size; bit_putcs() 159 image.dx = xx * vc->vc_font.width; bit_putcs() 176 image.width = vc->vc_font.width * cnt; bit_putcs() 177 pitch = DIV_ROUND_UP(image.width, 8) + scan_align; bit_putcs() 186 width, cellsize, &image, buf, dst); bit_putcs() 189 pitch, width, cellsize, &image, bit_putcs() 192 image.dx += cnt * vc->vc_font.width; bit_putcs() 208 unsigned int cw = vc->vc_font.width; bit_clear_margins() 222 region.width = rw; bit_clear_margins() 230 region.width = rs; bit_clear_margins() 242 int w = DIV_ROUND_UP(vc->vc_font.width, 8), c; bit_cursor() 289 if ((ops->cursor_state.image.dx != (vc->vc_font.width * vc->vc_x)) || bit_cursor() 292 ops->cursor_state.image.dx = vc->vc_font.width * vc->vc_x; bit_cursor() 298 ops->cursor_state.image.width != vc->vc_font.width || bit_cursor() 301 ops->cursor_state.image.width = vc->vc_font.width; bit_cursor() 374 cursor.image.width = ops->cursor_state.image.width; bit_cursor() 46 bit_bmove(struct vc_data *vc, struct fb_info *info, int sy, int sx, int dy, int dx, int height, int width) bit_bmove() argument 61 bit_clear(struct vc_data *vc, struct fb_info *info, int sy, int sx, int height, int width) bit_clear() argument
|
H A D | fbcon_ud.c | 29 int width = (vc->vc_font.width + 7) >> 3; ud_update_attr() local 30 unsigned int cellsize = vc->vc_font.height * width; ud_update_attr() 33 offset = offset * width; ud_update_attr() 49 int sx, int dy, int dx, int height, int width) ud_bmove() 57 area.sx = vxres - ((sx + width) * vc->vc_font.width); ud_bmove() 59 area.dx = vxres - ((dx + width) * vc->vc_font.width); ud_bmove() 61 area.width = width * vc->vc_font.width; ud_bmove() 67 int sx, int height, int width) ud_clear() 77 region.dx = vxres - ((sx + width) * vc->vc_font.width); ud_clear() 78 region.width = width * vc->vc_font.width; ud_clear() 92 u32 idx = vc->vc_font.width >> 3; ud_putcs_aligned() 125 u32 shift_low = 0, mod = vc->vc_font.width % 8; ud_putcs_unaligned() 127 u32 idx = vc->vc_font.width >> 3; ud_putcs_unaligned() 157 u32 width = (vc->vc_font.width + 7)/8; ud_putcs() local 158 u32 cellsize = width * vc->vc_font.height; ud_putcs() 162 u32 mod = vc->vc_font.width % 8, cnt, pitch, size; ud_putcs() 174 image.dx = vxres - ((xx + count) * vc->vc_font.width); ud_putcs() 192 image.width = vc->vc_font.width * cnt; ud_putcs() 193 pitch = ((image.width + 7) >> 3) + scan_align; ud_putcs() 202 width, cellsize, &image, buf, dst); ud_putcs() 205 width, cellsize, &image, ud_putcs() 208 image.dx += image.width; ud_putcs() 225 unsigned int cw = vc->vc_font.width; ud_clear_margins() 237 region.width = rw; ud_clear_margins() 246 region.width = info->var.xres; ud_clear_margins() 257 int w = (vc->vc_font.width + 7) >> 3, c; ud_cursor() 310 ops->cursor_state.image.width != vc->vc_font.width || ud_cursor() 313 ops->cursor_state.image.width = vc->vc_font.width; ud_cursor() 318 dx = vxres - ((vc->vc_x * vc->vc_font.width) + vc->vc_font.width); ud_cursor() 401 cursor.image.width = ops->cursor_state.image.width; ud_cursor() 48 ud_bmove(struct vc_data *vc, struct fb_info *info, int sy, int sx, int dy, int dx, int height, int width) ud_bmove() argument 66 ud_clear(struct vc_data *vc, struct fb_info *info, int sy, int sx, int height, int width) ud_clear() argument
|
H A D | fbcon_rotate.c | 36 s_cellsize = ((vc->vc_font.width + 7)/8) * fbcon_rotate_font() 43 vc->vc_font.width; fbcon_rotate_font() 67 rotate_ud(src, dst, vc->vc_font.width, fbcon_rotate_font() 76 rotate_cw(src, dst, vc->vc_font.width, fbcon_rotate_font() 84 rotate_ccw(src, dst, vc->vc_font.width, fbcon_rotate_font()
|
H A D | tileblit.c | 20 int sx, int dy, int dx, int height, int width) tile_bmove() 29 area.width = width; tile_bmove() 35 int sx, int height, int width) tile_clear() 47 rect.width = width; tile_clear() 64 blit.width = count; tile_putcs() 144 map.width = vc->vc_font.width; fbcon_set_tileops() 19 tile_bmove(struct vc_data *vc, struct fb_info *info, int sy, int sx, int dy, int dx, int height, int width) tile_bmove() argument 34 tile_clear(struct vc_data *vc, struct fb_info *info, int sy, int sx, int height, int width) tile_clear() argument
|
H A D | sticon.c | 186 int dy, int dx, int height, int width) sticon_bmove() 188 if (!width || !height) sticon_bmove() 192 (sx <= p->cursor_x) && (p->cursor_x < sx+width)) || sticon_bmove() 194 (dx <= p->cursor_x) && (p->cursor_x < dx+width))) sticon_bmove() 198 sti_bmove(sticon_sti, sy, sx, dy, dx, height, width); sticon_bmove() 227 int width) sticon_clear() 229 if (!height || !width) sticon_clear() 232 sti_clear(sticon_sti, sy, sx, height, width, conp->vc_video_erase_char); sticon_clear() 185 sticon_bmove(struct vc_data *conp, int sy, int sx, int dy, int dx, int height, int width) sticon_bmove() argument 226 sticon_clear(struct vc_data *conp, int sy, int sx, int height, int width) sticon_clear() argument
|
/linux-4.1.27/drivers/media/platform/omap/ |
H A D | omap_voutlib.c | 46 crop->width = (pix->width < fbuf->fmt.width) ? omap_vout_default_crop() 47 pix->width : fbuf->fmt.width; omap_vout_default_crop() 50 crop->width &= ~1; omap_vout_default_crop() 52 crop->left = ((pix->width - crop->width) >> 1) & ~1; omap_vout_default_crop() 75 try_win.width += try_win.left; omap_vout_try_window() 82 try_win.width = (try_win.width < fbuf->fmt.width) ? omap_vout_try_window() 83 try_win.width : fbuf->fmt.width; omap_vout_try_window() 86 if (try_win.left + try_win.width > fbuf->fmt.width) omap_vout_try_window() 87 try_win.width = fbuf->fmt.width - try_win.left; omap_vout_try_window() 90 try_win.width &= ~1; omap_vout_try_window() 93 if (try_win.width <= 0 || try_win.height <= 0) omap_vout_try_window() 132 if ((crop->width/win->w.width) >= 2) omap_vout_new_window() 133 crop->width = win->w.width * 2; omap_vout_new_window() 135 if (crop->width > 768) { omap_vout_new_window() 141 crop->width = 768; omap_vout_new_window() 148 if ((crop->width/win->w.width) >= 4) omap_vout_new_window() 149 crop->width = win->w.width * 4; omap_vout_new_window() 177 try_crop.width += try_crop.left; omap_vout_new_crop() 184 try_crop.width = (try_crop.width < pix->width) ? omap_vout_new_crop() 185 try_crop.width : pix->width; omap_vout_new_crop() 188 if (try_crop.left + try_crop.width > pix->width) omap_vout_new_crop() 189 try_crop.width = pix->width - try_crop.left; omap_vout_new_crop() 193 try_crop.width &= ~1; omap_vout_new_crop() 196 if (try_crop.width <= 0 || try_crop.height <= 0) omap_vout_new_crop() 202 * crop width wider than 768 pixels. omap_vout_new_crop() 204 if (try_crop.width > 768) omap_vout_new_crop() 205 try_crop.width = 768; omap_vout_new_crop() 228 hresize = (1024 * try_crop.width) / win->w.width; omap_vout_new_crop() 234 win->w.width = ((1024 * try_crop.width) / hresize) & ~1; omap_vout_new_crop() 235 if (win->w.width == 0) omap_vout_new_crop() 236 win->w.width = 2; omap_vout_new_crop() 237 if (win->w.width + win->w.left > fbuf->fmt.width) { omap_vout_new_crop() 240 * cropping width to maintain the horizontal resizing ratio. omap_vout_new_crop() 242 win->w.width = (fbuf->fmt.width - win->w.left) & ~1; omap_vout_new_crop() 243 if (try_crop.width == 0) omap_vout_new_crop() 244 try_crop.width = 2; omap_vout_new_crop() 250 if ((try_crop.width/win->w.width) >= 2) omap_vout_new_crop() 251 try_crop.width = win->w.width * 2; omap_vout_new_crop() 253 if (try_crop.width > 768) { omap_vout_new_crop() 259 try_crop.width = 768; omap_vout_new_crop() 265 if ((try_crop.width/win->w.width) >= 4) omap_vout_new_crop() 266 try_crop.width = win->w.width * 4; omap_vout_new_crop() 291 win->w.width = crop->width; omap_vout_new_format() 293 win->w.left = ((fbuf->fmt.width - win->w.width) >> 1) & ~1; omap_vout_new_format()
|
/linux-4.1.27/drivers/video/fbdev/ |
H A D | atafb.h | 5 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); 31 int sy, int sx, int height, int width); 33 int dy, int dx, u32 width,
|
H A D | atafb_mfb.c | 26 int height, int width) atafb_mfb_copyarea() 31 if (sx == 0 && dx == 0 && width == next_line) { atafb_mfb_copyarea() 32 src = (u8 *)info->screen_base + sy * (width >> 3); atafb_mfb_copyarea() 33 dest = (u8 *)info->screen_base + dy * (width >> 3); atafb_mfb_copyarea() 34 fb_memmove(dest, src, height * (width >> 3)); atafb_mfb_copyarea() 39 fb_memmove(dest, src, width >> 3); atafb_mfb_copyarea() 47 fb_memmove(dest, src, width >> 3); atafb_mfb_copyarea() 55 int sy, int sx, int height, int width) atafb_mfb_fillrect() 62 if (sx == 0 && width == next_line) { atafb_mfb_fillrect() 64 fb_memset255(dest, height * (width >> 3)); atafb_mfb_fillrect() 66 fb_memclear(dest, height * (width >> 3)); atafb_mfb_fillrect() 70 fb_memset255(dest, width >> 3); atafb_mfb_fillrect() 72 fb_memclear_small(dest, width >> 3); atafb_mfb_fillrect() 78 int dy, int dx, u32 width, atafb_mfb_linefill() 86 for (rows = width / 8; rows--; /* check margins */ ) { atafb_mfb_linefill() 24 atafb_mfb_copyarea(struct fb_info *info, u_long next_line, int sy, int sx, int dy, int dx, int height, int width) atafb_mfb_copyarea() argument 54 atafb_mfb_fillrect(struct fb_info *info, u_long next_line, u32 color, int sy, int sx, int height, int width) atafb_mfb_fillrect() argument 77 atafb_mfb_linefill(struct fb_info *info, u_long next_line, int dy, int dx, u32 width, const u8 *data, u32 bgcolor, u32 fgcolor) atafb_mfb_linefill() argument
|
H A D | atafb_iplan2p2.c | 26 int height, int width) atafb_iplan2p2_copyarea() 57 width -= 8; atafb_iplan2p2_copyarea() 59 w = width >> 4; atafb_iplan2p2_copyarea() 72 if (width & 15) atafb_iplan2p2_copyarea() 73 memmove32_col(dst + width / (8 / BPL), src + width / (8 / BPL), atafb_iplan2p2_copyarea() 76 src = (u8 *)info->screen_base + (sy - 1) * next_line + ((sx + width + 8) & ~15) / (8 / BPL); atafb_iplan2p2_copyarea() 77 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); atafb_iplan2p2_copyarea() 79 if ((sx + width) & 15) { atafb_iplan2p2_copyarea() 83 width -= 8; atafb_iplan2p2_copyarea() 85 w = width >> 4; atafb_iplan2p2_copyarea() 99 memmove32_col(dst - (width - 16) / (8 / BPL), atafb_iplan2p2_copyarea() 100 src - (width - 16) / (8 / BPL), atafb_iplan2p2_copyarea() 115 w = width; atafb_iplan2p2_copyarea() 120 if ((sx + width) & 15) atafb_iplan2p2_copyarea() 152 src = (u8 *)info->screen_base + (sy - 1) * next_line + ((sx + width + 8) & ~15) / (8 / BPL); atafb_iplan2p2_copyarea() 153 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); atafb_iplan2p2_copyarea() 157 w = width; atafb_iplan2p2_copyarea() 158 if ((dx + width) & 15) atafb_iplan2p2_copyarea() 194 int sy, int sx, int height, int width) atafb_iplan2p2_fillrect() 211 width -= 8; atafb_iplan2p2_fillrect() 215 rows = width >> 4; atafb_iplan2p2_fillrect() 224 width &= 15; atafb_iplan2p2_fillrect() 227 if (width) { atafb_iplan2p2_fillrect() 240 int dy, int dx, u32 width, atafb_iplan2p2_linefill() 252 width -= 8; atafb_iplan2p2_linefill() 255 if (width >= 16) { atafb_iplan2p2_linefill() 259 for (rows = width / 16; rows; rows--) { atafb_iplan2p2_linefill() 266 width &= 15; atafb_iplan2p2_linefill() 269 if (width) atafb_iplan2p2_linefill() 24 atafb_iplan2p2_copyarea(struct fb_info *info, u_long next_line, int sy, int sx, int dy, int dx, int height, int width) atafb_iplan2p2_copyarea() argument 193 atafb_iplan2p2_fillrect(struct fb_info *info, u_long next_line, u32 color, int sy, int sx, int height, int width) atafb_iplan2p2_fillrect() argument 239 atafb_iplan2p2_linefill(struct fb_info *info, u_long next_line, int dy, int dx, u32 width, const u8 *data, u32 bgcolor, u32 fgcolor) atafb_iplan2p2_linefill() argument
|
H A D | atafb_iplan2p4.c | 26 int height, int width) atafb_iplan2p4_copyarea() 57 width -= 8; atafb_iplan2p4_copyarea() 59 w = width >> 4; atafb_iplan2p4_copyarea() 72 if (width & 15) atafb_iplan2p4_copyarea() 73 memmove32_col(dst + width / (8 / BPL), src + width / (8 / BPL), atafb_iplan2p4_copyarea() 76 src = (u8 *)info->screen_base + (sy - 1) * next_line + ((sx + width + 8) & ~15) / (8 / BPL); atafb_iplan2p4_copyarea() 77 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); atafb_iplan2p4_copyarea() 79 if ((sx + width) & 15) { atafb_iplan2p4_copyarea() 83 width -= 8; atafb_iplan2p4_copyarea() 85 w = width >> 4; atafb_iplan2p4_copyarea() 99 memmove32_col(dst - (width - 16) / (8 / BPL), atafb_iplan2p4_copyarea() 100 src - (width - 16) / (8 / BPL), atafb_iplan2p4_copyarea() 115 w = width; atafb_iplan2p4_copyarea() 120 if ((sx + width) & 15) atafb_iplan2p4_copyarea() 159 src = (u8 *)info->screen_base + (sy - 1) * next_line + ((sx + width + 8) & ~15) / (8 / BPL); atafb_iplan2p4_copyarea() 160 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); atafb_iplan2p4_copyarea() 164 w = width; atafb_iplan2p4_copyarea() 165 if ((dx + width) & 15) atafb_iplan2p4_copyarea() 208 int sy, int sx, int height, int width) atafb_iplan2p4_fillrect() 225 width -= 8; atafb_iplan2p4_fillrect() 229 rows = width >> 4; atafb_iplan2p4_fillrect() 238 width &= 15; atafb_iplan2p4_fillrect() 241 if (width) { atafb_iplan2p4_fillrect() 254 int dy, int dx, u32 width, atafb_iplan2p4_linefill() 266 width -= 8; atafb_iplan2p4_linefill() 269 if (width >= 16) { atafb_iplan2p4_linefill() 273 for (rows = width / 16; rows; rows--) { atafb_iplan2p4_linefill() 281 width &= 15; atafb_iplan2p4_linefill() 284 if (width) atafb_iplan2p4_linefill() 24 atafb_iplan2p4_copyarea(struct fb_info *info, u_long next_line, int sy, int sx, int dy, int dx, int height, int width) atafb_iplan2p4_copyarea() argument 207 atafb_iplan2p4_fillrect(struct fb_info *info, u_long next_line, u32 color, int sy, int sx, int height, int width) atafb_iplan2p4_fillrect() argument 253 atafb_iplan2p4_linefill(struct fb_info *info, u_long next_line, int dy, int dx, u32 width, const u8 *data, u32 bgcolor, u32 fgcolor) atafb_iplan2p4_linefill() argument
|
H A D | atafb_iplan2p8.c | 33 int height, int width) atafb_iplan2p8_copyarea() 64 width -= 8; atafb_iplan2p8_copyarea() 66 w = width >> 4; atafb_iplan2p8_copyarea() 79 if (width & 15) atafb_iplan2p8_copyarea() 80 memmove32_col(dst + width / (8 / BPL), src + width / (8 / BPL), atafb_iplan2p8_copyarea() 83 src = (u8 *)info->screen_base + (sy - 1) * next_line + ((sx + width + 8) & ~15) / (8 / BPL); atafb_iplan2p8_copyarea() 84 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); atafb_iplan2p8_copyarea() 86 if ((sx + width) & 15) { atafb_iplan2p8_copyarea() 90 width -= 8; atafb_iplan2p8_copyarea() 92 w = width >> 4; atafb_iplan2p8_copyarea() 106 memmove32_col(dst - (width - 16) / (8 / BPL), atafb_iplan2p8_copyarea() 107 src - (width - 16) / (8 / BPL), atafb_iplan2p8_copyarea() 122 w = width; atafb_iplan2p8_copyarea() 127 if ((sx + width) & 15) atafb_iplan2p8_copyarea() 180 src = (u8 *)info->screen_base + (sy - 1) * next_line + ((sx + width + 8) & ~15) / (8 / BPL); atafb_iplan2p8_copyarea() 181 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); atafb_iplan2p8_copyarea() 185 w = width; atafb_iplan2p8_copyarea() 186 if ((dx + width) & 15) atafb_iplan2p8_copyarea() 243 int sy, int sx, int height, int width) atafb_iplan2p8_fillrect() 260 width -= 8; atafb_iplan2p8_fillrect() 264 rows = width >> 4; atafb_iplan2p8_fillrect() 273 width &= 15; atafb_iplan2p8_fillrect() 276 if (width) { atafb_iplan2p8_fillrect() 289 int dy, int dx, u32 width, atafb_iplan2p8_linefill() 301 width -= 8; atafb_iplan2p8_linefill() 304 if (width >= 16) { atafb_iplan2p8_linefill() 308 for (rows = width / 16; rows; rows--) { atafb_iplan2p8_linefill() 318 width &= 15; atafb_iplan2p8_linefill() 321 if (width) atafb_iplan2p8_linefill() 31 atafb_iplan2p8_copyarea(struct fb_info *info, u_long next_line, int sy, int sx, int dy, int dx, int height, int width) atafb_iplan2p8_copyarea() argument 242 atafb_iplan2p8_fillrect(struct fb_info *info, u_long next_line, u32 color, int sy, int sx, int height, int width) atafb_iplan2p8_fillrect() argument 288 atafb_iplan2p8_linefill(struct fb_info *info, u_long next_line, int dy, int dx, u32 width, const u8 *data, u32 bgcolor, u32 fgcolor) atafb_iplan2p8_linefill() argument
|
H A D | c2p_iplan2.c | 78 * @width: Image width (in pixels) 85 void c2p_iplan2(void *dst, const void *src, u32 dx, u32 dy, u32 width, c2p_iplan2() argument 100 last = 0xffffU ^ (0xffffU >> ((dst_idx+width) % 16)); c2p_iplan2() 105 w = width; c2p_iplan2() 106 if (dst_idx+width <= 16) { c2p_iplan2() 110 memcpy(d.pixels+dst_idx, c, width); c2p_iplan2() 111 c += width; c2p_iplan2() 117 w = width; c2p_iplan2() 127 w = width-w; c2p_iplan2()
|
H A D | c2p_planar.c | 78 * @width: Image width (in pixels) 86 void c2p_planar(void *dst, const void *src, u32 dx, u32 dy, u32 width, c2p_planar() argument 101 last = ~(0xffffffffU >> ((dst_idx+width) % 32)); c2p_planar() 105 w = width; c2p_planar() 106 if (dst_idx+width <= 32) { c2p_planar() 110 memcpy(d.pixels+dst_idx, c, width); c2p_planar() 111 c += width; c2p_planar() 118 w = width; c2p_planar() 129 w = width-w; c2p_planar()
|
H A D | sunxvr2500.c | 24 unsigned int width; member in struct:s3d_info 34 sp->width = of_getintprop_default(sp->of_node, "width", 0); s3d_get_props() 38 if (!sp->width || !sp->height) { s3d_get_props() 95 var->xres = sp->width; s3d_set_fbinfo() 163 /* XXX 'linebytes' is often wrong, it is equal to the width s3d_pci_register() 169 info->fix.line_length = sp->width; s3d_pci_register() 172 info->fix.line_length = sp->width * 2; s3d_pci_register() 175 info->fix.line_length = sp->width * 3; s3d_pci_register() 178 info->fix.line_length = sp->width * 4; s3d_pci_register()
|
H A D | amba-clcd-versatile.c | 23 .width = -1, 47 .width = -1, 72 .width = -1, 96 .width = -1, 121 .width = -1,
|
H A D | tgafb.c | 194 /* Some of the acceleration routines assume the line width is tgafb_check_var() 623 u32 fgcolor, bgcolor, dx, dy, width, height, vxres, vyres, pixelmask; tgafb_mono_imageblit() local 634 width = image->width; tgafb_mono_imageblit() 639 rincr = (width + 7) / 8; tgafb_mono_imageblit() 642 if (unlikely(width == 0)) tgafb_mono_imageblit() 647 if (dx + width > vxres) tgafb_mono_imageblit() 648 width = vxres - dx; tgafb_mono_imageblit() 695 if (width + shift <= 32) { tgafb_mono_imageblit() 701 /* Avoid a shift by 32; width > 0 implied. */ tgafb_mono_imageblit() 702 pixelmask = (2ul << (width - 1)) - 1; tgafb_mono_imageblit() 707 bwidth = (width + 7) / 8; tgafb_mono_imageblit() 738 bwidth = (width / 8) & -4; tgafb_mono_imageblit() 753 pixelmask = (1ul << (width & 31)) - 1; tgafb_mono_imageblit() 760 bwidth = ((width & 31) + 7) / 8; tgafb_mono_imageblit() 788 bwidth = (width / 8) & -2; tgafb_mono_imageblit() 802 pixelmask = ((1ul << (width & 15)) - 1) << shift; tgafb_mono_imageblit() 809 bwidth = (width & 15) > 8; tgafb_mono_imageblit() 836 u32 color, dx, dy, width, height, vxres, vyres; tgafb_clut_imageblit() local 844 width = image->width; tgafb_clut_imageblit() 853 if (dx + width > vxres) tgafb_clut_imageblit() 854 width = vxres - dx; tgafb_clut_imageblit() 866 for (j = 0; j < width; j++) { tgafb_clut_imageblit() 924 u32 dx, dy, width, height, vxres, vyres, color; tgafb_fillrect() local 931 width = rect->width; tgafb_fillrect() 940 if (dx > vxres || dy > vyres || !width || !height) tgafb_fillrect() 942 if (dx + width > vxres) tgafb_fillrect() 943 width = vxres - dx; tgafb_fillrect() 990 the width of the screen so that we can take advantage of this tgafb_fillrect() 992 if (width == line_length) tgafb_fillrect() 993 width *= height, height = 1; tgafb_fillrect() 1001 if (width <= 2048) { tgafb_fillrect() 1004 data = (width - 1) | align; tgafb_fillrect() 1012 unsigned long nwidth = width & -2048; tgafb_fillrect() 1016 ldata = ((width & 2047) - 1) | align; tgafb_fillrect() 1021 if (j < width) tgafb_fillrect() 1051 u32 height, u32 width) copyarea_line_8bpp() 1062 n64 = (height * width) / 64; copyarea_line_8bpp() 1065 spos = (sy + height) * width; copyarea_line_8bpp() 1066 dpos = (dy + height) * width; copyarea_line_8bpp() 1077 spos = sy * width; copyarea_line_8bpp() 1078 dpos = dy * width; copyarea_line_8bpp() 1096 u32 height, u32 width) copyarea_line_32bpp() 1110 n16 = (height * width) / 16; copyarea_line_32bpp() 1113 src = tga_fb + (sy + height) * width * 4; copyarea_line_32bpp() 1114 dst = tga_fb + (dy + height) * width * 4; copyarea_line_32bpp() 1125 src = tga_fb + sy * width * 4; copyarea_line_32bpp() 1126 dst = tga_fb + dy * width * 4; copyarea_line_32bpp() 1145 u32 height, u32 width, u32 line_length, copyarea_8bpp() 1157 if ((dx | sx | width) & 7) { copyarea_8bpp() 1168 backward = dy == sy && dx > sx && dx < sx + width; copyarea_8bpp() 1175 depos += width, sepos += width; copyarea_8bpp() 1178 n32 = width / 32; copyarea_8bpp() 1179 last_step = width % 32; copyarea_8bpp() 1253 unsigned long dx, dy, width, height, sx, sy, vxres, vyres; tgafb_copyarea() local 1258 width = area->width; tgafb_copyarea() 1271 if (dx + width > vxres) tgafb_copyarea() 1272 width = vxres - dx; tgafb_copyarea() 1277 if (sx + width > vxres || sy + height > vyres) tgafb_copyarea() 1283 if (!(line_length & 63) && width * (bpp >> 3) == line_length) { tgafb_copyarea() 1285 copyarea_line_8bpp(info, dy, sy, height, width); tgafb_copyarea() 1287 copyarea_line_32bpp(info, dy, sy, height, width); tgafb_copyarea() 1298 width, line_length, area); tgafb_copyarea() 1050 copyarea_line_8bpp(struct fb_info *info, u32 dy, u32 sy, u32 height, u32 width) copyarea_line_8bpp() argument 1095 copyarea_line_32bpp(struct fb_info *info, u32 dy, u32 sy, u32 height, u32 width) copyarea_line_32bpp() argument 1144 copyarea_8bpp(struct fb_info *info, u32 dx, u32 dy, u32 sx, u32 sy, u32 height, u32 width, u32 line_length, const struct fb_copyarea *area) copyarea_8bpp() argument
|
H A D | hitfb.c | 36 .width = -1, 61 u16 width, u16 height) hitfb_accel_set_dest() 67 fb_writew(width-1, HD64461_BBTDWR); hitfb_accel_set_dest() 76 u16 dy, u16 width, u16 height, u16 rop, hitfb_accel_bitblt() 83 width--; hitfb_accel_bitblt() 86 saddr = WIDTH * (sy + height) + sx + width; hitfb_accel_bitblt() 87 daddr = WIDTH * (dy + height) + dx + width; hitfb_accel_bitblt() 90 maddr = ((width >> 3) + 1) * (height + 1) - 1; hitfb_accel_bitblt() 93 (((width >> 4) + 1) * (height + 1) - 1) * 2; hitfb_accel_bitblt() 111 fb_writew(width, HD64461_BBTDWR); hitfb_accel_bitblt() 137 hitfb_accel_set_dest(1, rect->dx, rect->dy, rect->width, hitfb_fillrect() 142 hitfb_accel_set_dest(0, rect->dx, rect->dy, rect->width, hitfb_fillrect() 153 area->dx, area->dy, area->width, area->height, hitfb_copyarea() 60 hitfb_accel_set_dest(int truecolor, u16 dx, u16 dy, u16 width, u16 height) hitfb_accel_set_dest() argument 75 hitfb_accel_bitblt(int truecolor, u16 sx, u16 sy, u16 dx, u16 dy, u16 width, u16 height, u16 rop, u32 mask_addr) hitfb_accel_bitblt() argument
|
H A D | vga16fb.c | 76 .width = -1, 512 var->width = -1; vga16fb_check_var() 829 u32 dx = rect->dx, width = rect->width; vga_8planes_fillrect() local 844 width /= 4; vga_8planes_fillrect() 845 line_ofs = info->fix.line_length - width; vga_8planes_fillrect() 854 for (x = width; x > 0; --x) { vga_8planes_fillrect() 883 int x, x2, y2, vxres, vyres, width, height, line_ofs; vga16fb_fillrect() local 889 if (!rect->width || !rect->height || rect->dx > vxres || rect->dy > vyres) vga16fb_fillrect() 895 x2 = rect->dx + rect->width; vga16fb_fillrect() 899 width = x2 - rect->dx; vga16fb_fillrect() 906 width = rect->width/8; vga16fb_fillrect() 908 line_ofs = info->fix.line_length - width; vga16fb_fillrect() 922 for (x = 0; x < width; x++) { vga16fb_fillrect() 938 for (x = 0; x < width; x++) { vga16fb_fillrect() 963 u32 sx, dx, width; vga_8planes_copyarea() local 971 width = area->width / 4; vga_8planes_copyarea() 974 line_ofs = info->fix.line_length - width; vga_8planes_copyarea() 978 for (x = 0; x < width; x++) { vga_8planes_copyarea() 988 line_ofs = info->fix.line_length - width; vga_8planes_copyarea() 989 dest = info->screen_base + dx + width + vga_8planes_copyarea() 991 src = info->screen_base + sx + width + vga_8planes_copyarea() 994 for (x = 0; x < width; x++) { vga_8planes_copyarea() 1015 int height, width, line_ofs; vga16fb_copyarea() local 1034 x2 = area->dx + area->width; vga16fb_copyarea() 1040 width = x2 - dx; vga16fb_copyarea() 1051 if (sx + width > vxres || sy + height > vyres) vga16fb_copyarea() 1057 width = width/8; vga16fb_copyarea() 1059 line_ofs = info->fix.line_length - width; vga16fb_copyarea() 1069 for (x = 0; x < width; x++) { vga16fb_copyarea() 1079 dst = info->screen_base + (dx/8) + width + vga16fb_copyarea() 1081 src = info->screen_base + (sx/8) + width + vga16fb_copyarea() 1084 for (x = 0; x < width; x++) { vga16fb_copyarea() 1176 for (x = image->width/8; x--;) vga_imageblit_expand() 1191 for (x=image->width/8; x--;){ vga_imageblit_expand() 1235 for (x = 0; x < image->width; x++) { vga_imageblit_color()
|
H A D | ssd1307fb.c | 57 u32 width; member in struct:ssd1307fb_par 131 array = ssd1307fb_alloc_array(par->width * par->height / 8, ssd1307fb_update_display() 138 * pixels, and the width of the screen. When sending a byte of ssd1307fb_update_display() 166 for (j = 0; j < par->width; j++) { ssd1307fb_update_display() 167 u32 array_idx = i * par->width + j; ssd1307fb_update_display() 170 u32 page_length = par->width * i; ssd1307fb_update_display() 171 u32 index = page_length + (par->width * k + j) / 8; ssd1307fb_update_display() 180 ssd1307fb_write_array(par->client, array, par->width * par->height / 8); ssd1307fb_update_display() 404 ret = ssd1307fb_write_cmd(par->client, par->width - 1); ssd1307fb_ssd1306_init() 481 if (of_property_read_u32(node, "solomon,width", &par->width)) ssd1307fb_probe() 482 par->width = 96; ssd1307fb_probe() 490 vmem_size = par->width * par->height / 8; ssd1307fb_probe() 501 info->fix.line_length = par->width / 8; ssd1307fb_probe() 505 info->var.xres = par->width; ssd1307fb_probe() 506 info->var.xres_virtual = par->width; ssd1307fb_probe()
|
H A D | pm3fb.c | 223 const u32 width = (info->var.xres_virtual + 7) & ~7; pm3fb_init_engine() local 279 PM3FBDestReadBufferWidth_Width(width)); pm3fb_init_engine() 287 PM3FBSourceReadBufferWidth_Width(width)); pm3fb_init_engine() 333 PM3FBWriteBufferWidth_Width(width)); pm3fb_init_engine() 409 if (!modded.width || !modded.height || pm3fb_fillrect() 413 if (modded.dx + modded.width > vxres) pm3fb_fillrect() 414 modded.width = vxres - modded.dx; pm3fb_fillrect() 442 PM3Render2D_Width(modded.width) | pm3fb_fillrect() 466 if (!modded.width || !modded.height || pm3fb_copyarea() 471 if (modded.sx + modded.width > vxres) pm3fb_copyarea() 472 modded.width = vxres - modded.sx; pm3fb_copyarea() 473 if (modded.dx + modded.width > vxres) pm3fb_copyarea() 474 modded.width = vxres - modded.dx; pm3fb_copyarea() 498 ((modded.dx + modded.width) & 0x0fff)); pm3fb_copyarea() 514 PM3Render2D_Width(modded.width + x_align) | pm3fb_copyarea() 573 ((image->dx + image->width) & 0x0fff)); pm3fb_imageblit() 582 PM3Render2D_Width(image->width) | pm3fb_imageblit() 587 int width = ((image->width + 7) >> 3) pm3fb_imageblit() local 589 width >>= 2; pm3fb_imageblit() 591 while (width >= PM3_FIFO_SIZE) { pm3fb_imageblit() 599 width -= PM3_FIFO_SIZE - 1; pm3fb_imageblit() 602 PM3_WAIT(par, width + 1); pm3fb_imageblit() 603 while (width--) { pm3fb_imageblit() 628 if (cursor->image.width > 64 || pm3fb_cursor() 692 int j = (cursor->image.width + 7) >> 3; pm3fb_cursor() 737 const u32 width = (info->var.xres_virtual + 7) & ~7; pm3fb_write_mode() local 757 pm3fb_shift_bpp(bpp, width)); pm3fb_write_mode() 964 var->width = -1; pm3fb_check_var() 992 DPRINTK("width not supported: %u\n", var->xres); pm3fb_check_var() 1092 * {hardwarespecific} contains width of DAC pm3fb_setcolreg() 1101 * var->{color}.length contains width of DAC or the number pm3fb_setcolreg() 1112 #define CNVT_TOHW(val, width) ((((val) << (width)) + 0x7FFF - (val)) >> 16) pm3fb_setcolreg()
|
H A D | goldfishfb.c | 188 u32 width, height; goldfish_fb_probe() local 217 width = readl(fb->reg_base + FB_GET_WIDTH); goldfish_fb_probe() 225 fb->fb.fix.line_length = width * 2; goldfish_fb_probe() 229 fb->fb.var.xres = width; goldfish_fb_probe() 231 fb->fb.var.xres_virtual = width; goldfish_fb_probe() 236 fb->fb.var.width = readl(fb->reg_base + FB_GET_PHYS_WIDTH); goldfish_fb_probe() 246 framesize = width * height * 2 * 2; goldfish_fb_probe() 251 width, height, fb->fb.screen_base); goldfish_fb_probe()
|
H A D | sunxvr1000.c | 20 unsigned int width; member in struct:gfb_info 30 gp->width = of_getintprop_default(gp->of_node, "width", 0); gfb_get_props() 34 if (!gp->width || !gp->height) { gfb_get_props() 91 var->xres = gp->width; gfb_set_fbinfo()
|
/linux-4.1.27/tools/perf/util/ |
H A D | values.c | 145 int width; perf_read_values__display_pretty() local 147 width = snprintf(NULL, 0, "%d", values->pid[i]); perf_read_values__display_pretty() 148 if (width > pidwidth) perf_read_values__display_pretty() 149 pidwidth = width; perf_read_values__display_pretty() 150 width = snprintf(NULL, 0, "%d", values->tid[i]); perf_read_values__display_pretty() 151 if (width > tidwidth) perf_read_values__display_pretty() 152 tidwidth = width; perf_read_values__display_pretty() 154 width = snprintf(NULL, 0, "%" PRIu64, values->value[i][j]); perf_read_values__display_pretty() 155 if (width > counterwidth[j]) perf_read_values__display_pretty() 156 counterwidth[j] = width; perf_read_values__display_pretty() 179 int width, pidwidth, tidwidth, namewidth, rawwidth, countwidth; perf_read_values__display_raw() local 189 width = snprintf(NULL, 0, "%d", values->pid[i]); perf_read_values__display_raw() 190 if (width > pidwidth) perf_read_values__display_raw() 191 pidwidth = width; perf_read_values__display_raw() 192 width = snprintf(NULL, 0, "%d", values->tid[i]); perf_read_values__display_raw() 193 if (width > tidwidth) perf_read_values__display_raw() 194 tidwidth = width; perf_read_values__display_raw() 197 width = strlen(values->countername[j]); perf_read_values__display_raw() 198 if (width > namewidth) perf_read_values__display_raw() 199 namewidth = width; perf_read_values__display_raw() 200 width = snprintf(NULL, 0, "%" PRIx64, values->counterrawid[j]); perf_read_values__display_raw() 201 if (width > rawwidth) perf_read_values__display_raw() 202 rawwidth = width; perf_read_values__display_raw() 206 width = snprintf(NULL, 0, "%" PRIu64, values->value[i][j]); perf_read_values__display_raw() 207 if (width > countwidth) perf_read_values__display_raw() 208 countwidth = width; perf_read_values__display_raw()
|
H A D | svghelper.c | 100 * if the recording is short, we default to a width of 1000, but open_svg() 101 * for longer recordings we want at least 200 units of width per second open_svg() 111 fprintf(svgfile, "<svg width=\"%i\" height=\"%" PRIu64 "\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n", svg_page_width, total_height); open_svg() 115 fprintf(svgfile, " rect { stroke-width: 1; }\n"); open_svg() 116 fprintf(svgfile, " rect.process { fill:rgb(180,180,180); fill-opacity:0.9; stroke-width:1; stroke:rgb( 0, 0, 0); } \n"); open_svg() 117 fprintf(svgfile, " rect.process2 { fill:rgb(180,180,180); fill-opacity:0.9; stroke-width:0; stroke:rgb( 0, 0, 0); } \n"); open_svg() 118 fprintf(svgfile, " rect.process3 { fill:rgb(180,180,180); fill-opacity:0.5; stroke-width:0; stroke:rgb( 0, 0, 0); } \n"); open_svg() 119 fprintf(svgfile, " rect.sample { fill:rgb( 0, 0,255); fill-opacity:0.8; stroke-width:0; stroke:rgb( 0, 0, 0); } \n"); open_svg() 120 fprintf(svgfile, " rect.sample_hi{ fill:rgb(255,128, 0); fill-opacity:0.8; stroke-width:0; stroke:rgb( 0, 0, 0); } \n"); open_svg() 121 fprintf(svgfile, " rect.error { fill:rgb(255, 0, 0); fill-opacity:0.5; stroke-width:0; stroke:rgb( 0, 0, 0); } \n"); open_svg() 122 fprintf(svgfile, " rect.net { fill:rgb( 0,128, 0); fill-opacity:0.5; stroke-width:0; stroke:rgb( 0, 0, 0); } \n"); open_svg() 123 fprintf(svgfile, " rect.disk { fill:rgb( 0, 0,255); fill-opacity:0.5; stroke-width:0; stroke:rgb( 0, 0, 0); } \n"); open_svg() 124 fprintf(svgfile, " rect.sync { fill:rgb(128,128, 0); fill-opacity:0.5; stroke-width:0; stroke:rgb( 0, 0, 0); } \n"); open_svg() 125 fprintf(svgfile, " rect.poll { fill:rgb( 0,128,128); fill-opacity:0.2; stroke-width:0; stroke:rgb( 0, 0, 0); } \n"); open_svg() 126 fprintf(svgfile, " rect.blocked { fill:rgb(255, 0, 0); fill-opacity:0.5; stroke-width:0; stroke:rgb( 0, 0, 0); } \n"); open_svg() 127 fprintf(svgfile, " rect.waiting { fill:rgb(224,214, 0); fill-opacity:0.8; stroke-width:0; stroke:rgb( 0, 0, 0); } \n"); open_svg() 128 fprintf(svgfile, " rect.WAITING { fill:rgb(255,214, 48); fill-opacity:0.6; stroke-width:0; stroke:rgb( 0, 0, 0); } \n"); open_svg() 129 fprintf(svgfile, " rect.cpu { fill:rgb(192,192,192); fill-opacity:0.2; stroke-width:0.5; stroke:rgb(128,128,128); } \n"); open_svg() 130 fprintf(svgfile, " rect.pstate { fill:rgb(128,128,128); fill-opacity:0.8; stroke-width:0; } \n"); open_svg() 131 fprintf(svgfile, " rect.c1 { fill:rgb(255,214,214); fill-opacity:0.5; stroke-width:0; } \n"); open_svg() 132 fprintf(svgfile, " rect.c2 { fill:rgb(255,172,172); fill-opacity:0.5; stroke-width:0; } \n"); open_svg() 133 fprintf(svgfile, " rect.c3 { fill:rgb(255,130,130); fill-opacity:0.5; stroke-width:0; } \n"); open_svg() 134 fprintf(svgfile, " rect.c4 { fill:rgb(255, 88, 88); fill-opacity:0.5; stroke-width:0; } \n"); open_svg() 135 fprintf(svgfile, " rect.c5 { fill:rgb(255, 44, 44); fill-opacity:0.5; stroke-width:0; } \n"); open_svg() 136 fprintf(svgfile, " rect.c6 { fill:rgb(255, 0, 0); fill-opacity:0.5; stroke-width:0; } \n"); open_svg() 137 fprintf(svgfile, " line.pstate { stroke:rgb(255,255, 0); stroke-opacity:0.8; stroke-width:2; } \n"); open_svg() 164 fprintf(svgfile, "<rect x=\"%.8f\" width=\"%.8f\" y=\"%.1f\" height=\"%.1f\" class=\"%s\"/>\n", svg_ubox() 183 fprintf(svgfile, "<rect x=\"%.8f\" width=\"%.8f\" y=\"%.1f\" height=\"%.1f\" class=\"%s\"/>\n", svg_lbox() 202 fprintf(svgfile, "<rect x=\"%.8f\" width=\"%.8f\" y=\"%.1f\" height=\"%.1f\" class=\"%s\"/>\n", svg_fbox() 216 fprintf(svgfile, "<rect x=\"%.8f\" width=\"%.8f\" y=\"%.1f\" height=\"%.1f\" class=\"%s\"/>\n", svg_box() 253 fprintf(svgfile, "<rect x=\"%.8f\" width=\"%.8f\" y=\"%.1f\" height=\"%.1f\" class=\"%s\"/>\n", svg_running() 316 fprintf(svgfile, "<rect x=\"0\" width=\"%.8f\" y=\"0\" height=\"%.1f\" class=\"%s\"/>\n", svg_waiting() 368 fprintf(svgfile, "<rect x=\"%.8f\" width=\"%.8f\" y=\"%.1f\" height=\"%.1f\" class=\"cpu\"/>\n", svg_cpu_box() 385 double width; svg_process() local 402 fprintf(svgfile, "<rect x=\"0\" width=\"%.8f\" y=\"0\" height=\"%.1f\" class=\"%s\"/>\n", svg_process() 404 width = time2pixels(end)-time2pixels(start); svg_process() 405 if (width > 6) svg_process() 406 width = 6; svg_process() 408 width = round_text_size(width); svg_process() 410 if (width > MIN_TEXT_SIZE) svg_process() 412 width, name); svg_process() 419 double width; svg_cstate() local 432 fprintf(svgfile, "<rect class=\"%s\" x=\"%.8f\" width=\"%.8f\" y=\"%.1f\" height=\"%.1f\"/>\n", svg_cstate() 437 width = (time2pixels(end)-time2pixels(start))/2.0; svg_cstate() 438 if (width > 6) svg_cstate() 439 width = 6; svg_cstate() 441 width = round_text_size(width); svg_cstate() 443 if (width > MIN_TEXT_SIZE) svg_cstate() 445 time2pixels(start), cpu2y(cpu)+width, width, type); svg_cstate() 514 fprintf(svgfile, "<line x1=\"%.8f\" y1=\"%.2f\" x2=\"%.8f\" y2=\"%.2f\" style=\"stroke:rgb(32,255,32);stroke-width:0.009\"/>\n", svg_partial_wakeline() 521 fprintf(svgfile, "<line x1=\"%.8f\" y1=\"%.2f\" x2=\"%.8f\" y2=\"%.2f\" style=\"stroke:rgb(32,255,32);stroke-width:0.009\"/>\n", svg_partial_wakeline() 529 fprintf(svgfile, "<line x1=\"%.8f\" y1=\"%.2f\" x2=\"%.8f\" y2=\"%.2f\" style=\"stroke:rgb(32,255,32);stroke-width:0.009\"/>\n", svg_partial_wakeline() 536 fprintf(svgfile, "<line x1=\"%.8f\" y1=\"%.2f\" x2=\"%.8f\" y2=\"%.2f\" style=\"stroke:rgb(32,255,32);stroke-width:0.009\"/>\n", svg_partial_wakeline() 567 fprintf(svgfile, "<line x1=\"%.8f\" y1=\"%.2f\" x2=\"%.8f\" y2=\"%.2f\" style=\"stroke:rgb(32,255,32);stroke-width:0.009\"/>\n", svg_wakeline() 570 fprintf(svgfile, "<line x1=\"%.8f\" y1=\"%.2f\" x2=\"%.8f\" y2=\"%.2f\" style=\"stroke:rgb(32,255,32);stroke-width:0.009\"/>\n", svg_wakeline() 616 fprintf(svgfile, "<rect x=\"%i\" width=\"%.8f\" y=\"0\" height=\"%.1f\" class=\"%s\"/>\n", svg_legenda_box() 673 fprintf(svgfile, "<line x1=\"%.8f\" y1=\"%.2f\" x2=\"%.8f\" y2=\"%" PRIu64 "\" style=\"stroke:rgb(%i,%i,%i);stroke-width:%.3f\"/>\n", svg_time_grid()
|
H A D | sort.c | 70 size_t size, unsigned int width) hist_entry__thread_snprintf() 74 width = max(7U, width) - 6; hist_entry__thread_snprintf() 76 width, width, comm ?: ""); hist_entry__thread_snprintf() 109 size_t size, unsigned int width) hist_entry__comm_snprintf() 111 return repsep_snprintf(bf, size, "%-*.*s", width, width, comm__str(he->comm)); hist_entry__comm_snprintf() 152 size_t size, unsigned int width) _hist_entry__dso_snprintf() 157 return repsep_snprintf(bf, size, "%-*.*s", width, width, dso_name); _hist_entry__dso_snprintf() 160 return repsep_snprintf(bf, size, "%-*.*s", width, width, "[unknown]"); _hist_entry__dso_snprintf() 164 size_t size, unsigned int width) hist_entry__dso_snprintf() 166 return _hist_entry__dso_snprintf(he->ms.map, bf, size, width); hist_entry__dso_snprintf() 231 unsigned int width) _hist_entry__sym_snprintf() 248 width - ret, ""); _hist_entry__sym_snprintf() 251 width - ret, _hist_entry__sym_snprintf() 259 width - ret, ""); _hist_entry__sym_snprintf() 262 if (ret > width) _hist_entry__sym_snprintf() 263 bf[width] = '\0'; _hist_entry__sym_snprintf() 265 return width; _hist_entry__sym_snprintf() 269 size_t size, unsigned int width) hist_entry__sym_snprintf() 272 he->level, bf, size, width); hist_entry__sym_snprintf() 312 size_t size, unsigned int width) hist_entry__srcline_snprintf() 314 return repsep_snprintf(bf, size, "%-*.*s", width, width, he->srcline); hist_entry__srcline_snprintf() 339 size_t size, unsigned int width) hist_entry__parent_snprintf() 341 return repsep_snprintf(bf, size, "%-*.*s", width, width, hist_entry__parent_snprintf() 361 size_t size, unsigned int width) hist_entry__cpu_snprintf() 363 return repsep_snprintf(bf, size, "%*.*d", width, width, he->cpu); hist_entry__cpu_snprintf() 386 size_t size, unsigned int width) hist_entry__dso_from_snprintf() 390 bf, size, width); hist_entry__dso_from_snprintf() 392 return repsep_snprintf(bf, size, "%-*.*s", width, width, "N/A"); hist_entry__dso_from_snprintf() 406 size_t size, unsigned int width) hist_entry__dso_to_snprintf() 410 bf, size, width); hist_entry__dso_to_snprintf() 412 return repsep_snprintf(bf, size, "%-*.*s", width, width, "N/A"); hist_entry__dso_to_snprintf() 451 size_t size, unsigned int width) hist_entry__sym_from_snprintf() 457 he->level, bf, size, width); hist_entry__sym_from_snprintf() 460 return repsep_snprintf(bf, size, "%-*.*s", width, width, "N/A"); hist_entry__sym_from_snprintf() 464 size_t size, unsigned int width) hist_entry__sym_to_snprintf() 470 he->level, bf, size, width); hist_entry__sym_to_snprintf() 473 return repsep_snprintf(bf, size, "%-*.*s", width, width, "N/A"); hist_entry__sym_to_snprintf() 518 size_t size, unsigned int width){ hist_entry__mispredict_snprintf() 528 return repsep_snprintf(bf, size, "%-*.*s", width, width, out); hist_entry__mispredict_snprintf() 546 size_t size, unsigned int width) hist_entry__daddr_snprintf() 558 width); hist_entry__daddr_snprintf() 576 size_t size, unsigned int width) hist_entry__dso_daddr_snprintf() 583 return _hist_entry__dso_snprintf(map, bf, size, width); hist_entry__dso_daddr_snprintf() 606 size_t size, unsigned int width) hist_entry__locked_snprintf() 621 return repsep_snprintf(bf, size, "%-*s", width, out); hist_entry__locked_snprintf() 655 size_t size, unsigned int width) hist_entry__tlb_snprintf() 691 return repsep_snprintf(bf, size, "%-*s", width, out); hist_entry__tlb_snprintf() 732 size_t size, unsigned int width) hist_entry__lvl_snprintf() 768 return repsep_snprintf(bf, size, "%-*s", width, out); hist_entry__lvl_snprintf() 800 size_t size, unsigned int width) hist_entry__snoop_snprintf() 826 return repsep_snprintf(bf, size, "%-*s", width, out); hist_entry__snoop_snprintf() 900 size_t size, unsigned int width) hist_entry__dcacheline_snprintf() 924 width); hist_entry__dcacheline_snprintf() 946 size_t size, unsigned int width) hist_entry__local_weight_snprintf() 948 return repsep_snprintf(bf, size, "%-*llu", width, he_weight(he)); hist_entry__local_weight_snprintf() 965 size_t size, unsigned int width) hist_entry__global_weight_snprintf() 967 return repsep_snprintf(bf, size, "%-*llu", width, he->stat.weight); hist_entry__global_weight_snprintf() 1037 size_t size, unsigned int width) hist_entry__abort_snprintf() 1048 return repsep_snprintf(bf, size, "%-*s", width, out); hist_entry__abort_snprintf() 1069 size_t size, unsigned int width) hist_entry__in_tx_snprintf() 1080 return repsep_snprintf(bf, size, "%-*s", width, out); hist_entry__in_tx_snprintf() 1132 size_t size, unsigned int width) hist_entry__transaction_snprintf() 1152 return repsep_snprintf(bf, size, "%-*s", width, buf); hist_entry__transaction_snprintf() 1352 hse->hpp.width = __sort__hpp_width; __sort_dimension__alloc_hpp() 69 hist_entry__thread_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) hist_entry__thread_snprintf() argument 108 hist_entry__comm_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) hist_entry__comm_snprintf() argument 151 _hist_entry__dso_snprintf(struct map *map, char *bf, size_t size, unsigned int width) _hist_entry__dso_snprintf() argument 163 hist_entry__dso_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) hist_entry__dso_snprintf() argument 229 _hist_entry__sym_snprintf(struct map *map, struct symbol *sym, u64 ip, char level, char *bf, size_t size, unsigned int width) _hist_entry__sym_snprintf() argument 268 hist_entry__sym_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) hist_entry__sym_snprintf() argument 311 hist_entry__srcline_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) hist_entry__srcline_snprintf() argument 338 hist_entry__parent_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) hist_entry__parent_snprintf() argument 360 hist_entry__cpu_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) hist_entry__cpu_snprintf() argument 385 hist_entry__dso_from_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) hist_entry__dso_from_snprintf() argument 405 hist_entry__dso_to_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) hist_entry__dso_to_snprintf() argument 450 hist_entry__sym_from_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) hist_entry__sym_from_snprintf() argument 463 hist_entry__sym_to_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) hist_entry__sym_to_snprintf() argument 517 hist_entry__mispredict_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) hist_entry__mispredict_snprintf() argument 545 hist_entry__daddr_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) hist_entry__daddr_snprintf() argument 575 hist_entry__dso_daddr_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) hist_entry__dso_daddr_snprintf() argument 605 hist_entry__locked_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) hist_entry__locked_snprintf() argument 654 hist_entry__tlb_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) hist_entry__tlb_snprintf() argument 731 hist_entry__lvl_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) hist_entry__lvl_snprintf() argument 799 hist_entry__snoop_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) hist_entry__snoop_snprintf() argument 899 hist_entry__dcacheline_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) hist_entry__dcacheline_snprintf() argument 945 hist_entry__local_weight_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) hist_entry__local_weight_snprintf() argument 964 hist_entry__global_weight_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) hist_entry__global_weight_snprintf() argument 1036 hist_entry__abort_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) hist_entry__abort_snprintf() argument 1068 hist_entry__in_tx_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) hist_entry__in_tx_snprintf() argument 1131 hist_entry__transaction_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) hist_entry__transaction_snprintf() argument
|
/linux-4.1.27/arch/sh/include/mach-se/mach/ |
H A D | mrshpc.h | 24 /* common mode & bus width 16bit SWAP = 1*/ mrshpc_setup_windows() 27 /* common mode & bus width 16bit SWAP = 0*/ mrshpc_setup_windows() 33 /* attribute mode & bus width 16bit SWAP = 1*/ mrshpc_setup_windows() 36 /* attribute mode & bus width 16bit SWAP = 0*/ mrshpc_setup_windows() 43 __raw_writew(0x0a00, MRSHPC_IOWCR2); /* bus width 16bit SWAP = 1*/ mrshpc_setup_windows() 45 __raw_writew(0x0200, MRSHPC_IOWCR2); /* bus width 16bit SWAP = 0*/ mrshpc_setup_windows()
|
/linux-4.1.27/drivers/media/platform/soc_camera/ |
H A D | soc_scale_crop.c | 29 return r1->width < r2->width || r1->height < r2->height; is_smaller() 36 r1->left + r1->width < r2->left + r2->width || is_inside() 69 if (rect->width < subrect->width) update_subrect() 70 subrect->width = rect->width; update_subrect() 77 else if (rect->left + rect->width > update_subrect() 78 subrect->left + subrect->width) update_subrect() 79 subrect->left = rect->left + rect->width - update_subrect() 80 subrect->width; update_subrect() 104 unsigned int width, height; soc_camera_client_s_crop() local 118 rect->width, rect->height, rect->left, rect->top); soc_camera_client_s_crop() 125 cam_rect->width, cam_rect->height, soc_camera_client_s_crop() 127 rect->width, rect->height, rect->left, rect->top); soc_camera_client_s_crop() 135 soc_camera_limit_side(&rect->left, &rect->width, cap.bounds.left, 2, soc_camera_client_s_crop() 136 cap.bounds.width); soc_camera_client_s_crop() 144 width = max_t(unsigned int, cam_rect->width, 2); soc_camera_client_s_crop() 153 (cap.bounds.width > width || cap.bounds.height > height)) { soc_camera_client_s_crop() 155 width *= 2; soc_camera_client_s_crop() 158 cam_rect->width = width; soc_camera_client_s_crop() 173 if (cam_rect->left + cam_rect->width < rect->left + rect->width) soc_camera_client_s_crop() 174 cam_rect->width = rect->left + rect->width - soc_camera_client_s_crop() 187 cam_rect->width, cam_rect->height, soc_camera_client_s_crop() 201 cam_rect->width, cam_rect->height, soc_camera_client_s_crop() 222 unsigned int width = mf->width, height = mf->height, tmp_w, tmp_h; client_s_fmt() local 233 dev_geo(dev, "camera scaled to %ux%u\n", mf->width, mf->height); client_s_fmt() 235 if (width == mf->width && height == mf->height) { client_s_fmt() 251 if (max_width > cap.bounds.width) client_s_fmt() 252 max_width = cap.bounds.width; client_s_fmt() 257 tmp_w = mf->width; client_s_fmt() 260 /* width <= max_width && height <= max_height - guaranteed by try_fmt */ client_s_fmt() 261 while ((width > tmp_w || height > tmp_h) && client_s_fmt() 265 mf->width = tmp_w; client_s_fmt() 271 mf->width, mf->height); client_s_fmt() 298 * @width - on input: max host input width 299 * on output: user width, mapped back to input 308 unsigned int *width, unsigned int *height, soc_camera_client_scale() 320 ret = client_s_fmt(icd, rect, subrect, *width, *height, soc_camera_client_scale() 326 mf_tmp.width, mf_tmp.height); soc_camera_client_scale() 333 scale_h = soc_camera_calc_scale(rect->width, shift, mf_tmp.width); soc_camera_client_scale() 336 mf->width = mf_tmp.width; soc_camera_client_scale() 344 *width = soc_camera_shift_scale(subrect->width, shift, scale_h); soc_camera_client_scale() 347 dev_geo(dev, "8: new client sub-window %ux%u\n", *width, *height); soc_camera_client_scale() 366 if (subrect->width == rect->width && soc_camera_calc_client_output() 369 mf->width = pix->width; soc_camera_calc_client_output() 377 subrect->width, subrect->height, soc_camera_calc_client_output() 390 scale_h = soc_camera_calc_scale(subrect->width, shift, pix->width); soc_camera_calc_client_output() 399 mf->width = soc_camera_shift_scale(rect->width, shift, scale_h); soc_camera_calc_client_output() 305 soc_camera_client_scale(struct soc_camera_device *icd, struct v4l2_rect *rect, struct v4l2_rect *subrect, struct v4l2_mbus_framefmt *mf, unsigned int *width, unsigned int *height, bool host_can_scale, unsigned int shift) soc_camera_client_scale() argument
|
H A D | soc_camera_platform.c | 44 mf->width = p->format.width; soc_camera_platform_fill_fmt() 83 a->c.width = p->format.width; soc_camera_platform_g_crop() 97 a->bounds.width = p->format.width; soc_camera_platform_cropcap()
|
H A D | mx3_camera.c | 208 ret = soc_mbus_bytes_per_line(fmt->fmt.pix.width, mx3_videobuf_setup() 475 /* Set generic data, platform-biggest bus-width */ mx3_camera_activate() 554 * If requested data width is supported by the platform, use it or any test_platform_param() 589 dev_dbg(icd->parent, "request bus width %d bit: %d\n", depth, ret); mx3_camera_try_bus_param() 725 unsigned int width, unsigned int height, configure_geometry() 733 * the width parameter count the number of samples to configure_geometry() 734 * capture to complete the whole image width. configure_geometry() 739 width = width * num / den; configure_geometry() 743 width_field = width - 1; configure_geometry() 781 * FIXME: learn to use stride != width, then we can keep stride properly aligned 784 static inline void stride_align(__u32 *width) stride_align() argument 786 if (ALIGN(*width, 8) < 4096) stride_align() 787 *width = ALIGN(*width, 8); stride_align() 789 *width = *width & ~7; stride_align() 807 soc_camera_limit_side(&rect->left, &rect->width, 0, 2, 4096); mx3_camera_set_crop() 822 if (mf.width & 7) { mx3_camera_set_crop() 823 /* Ouch! We can only handle 8-byte aligned width... */ mx3_camera_set_crop() 824 stride_align(&mf.width); mx3_camera_set_crop() 830 if (mf.width != icd->user_width || mf.height != icd->user_height) mx3_camera_set_crop() 831 configure_geometry(mx3_cam, mf.width, mf.height, mx3_camera_set_crop() 835 mf.width, mf.height); mx3_camera_set_crop() 837 icd->user_width = mf.width; mx3_camera_set_crop() 861 stride_align(&pix->width); mx3_camera_set_fmt() 862 dev_dbg(icd->parent, "Set format %dx%d\n", pix->width, pix->height); mx3_camera_set_fmt() 870 configure_geometry(mx3_cam, pix->width, pix->height, xlate->host_fmt); mx3_camera_set_fmt() 872 mf.width = pix->width; mx3_camera_set_fmt() 891 pix->width = mf.width; mx3_camera_set_fmt() 898 dev_dbg(icd->parent, "Sensor set %dx%d\n", pix->width, pix->height); mx3_camera_set_fmt() 922 if (pix->width > 4096) mx3_camera_try_fmt() 923 pix->width = 4096; mx3_camera_try_fmt() 926 mf.width = pix->width; mx3_camera_try_fmt() 936 pix->width = mf.width; mx3_camera_try_fmt() 1007 dev_dbg(dev, "requested bus width %d bit: %d\n", buswidth, ret); mx3_camera_set_bus_param() 724 configure_geometry(struct mx3_camera_dev *mx3_cam, unsigned int width, unsigned int height, const struct soc_mbus_pixelfmt *fmt) configure_geometry() argument
|
H A D | sh_mobile_ceu_camera.c | 58 #define CAPWR 0x14 /* Capture interface width register */ 66 #define CDWDR 0x38 /* Capture destination width register */ 141 unsigned int width; member in struct:sh_mobile_ceu_cam 230 ret = soc_mbus_bytes_per_line(fmt->fmt.pix.width, sh_mobile_ceu_videobuf_setup() 680 unsigned int height, width, cdwdr_width, in_width, in_height; sh_mobile_ceu_set_rect() local 692 width = icd->user_width; sh_mobile_ceu_set_rect() 695 in_width = cam->width; sh_mobile_ceu_set_rect() 711 in_width = cam->width * w_factor; sh_mobile_ceu_set_rect() 737 (in_height << 16) | in_width, (height << 16) | width, sh_mobile_ceu_set_rect() 743 ceu_write(pcdev, CFSZR, (height << 16) | width); sh_mobile_ceu_set_rect() 1102 while ((mf.width > pcdev->max_width || sh_mobile_ceu_get_formats() 1105 mf.width = 2560 >> shift; sh_mobile_ceu_get_formats() 1117 mf.width, mf.height); sh_mobile_ceu_get_formats() 1121 dev_geo(dev, "camera fmt %ux%u\n", mf.width, mf.height); sh_mobile_ceu_get_formats() 1131 cam->width = mf.width; sh_mobile_ceu_get_formats() 1224 dev_geo(dev, "S_CROP(%ux%u@%u:%u)\n", rect->width, rect->height, sh_mobile_ceu_set_crop() 1241 cam_rect->width, cam_rect->height, sh_mobile_ceu_set_crop() 1251 if (mf.width > pcdev->max_width || mf.height > pcdev->max_height) sh_mobile_ceu_set_crop() 1255 scale_cam_h = calc_generic_scale(cam_rect->width, mf.width); sh_mobile_ceu_set_crop() 1259 interm_width = scale_down(rect->width, scale_cam_h); sh_mobile_ceu_set_crop() 1265 new_scale_h = calc_generic_scale(rect->width, icd->user_width); sh_mobile_ceu_set_crop() 1267 mf.width = scale_down(cam_rect->width, new_scale_h); sh_mobile_ceu_set_crop() 1285 dev_geo(dev, "New camera output %ux%u\n", mf.width, mf.height); sh_mobile_ceu_set_crop() 1286 scale_cam_h = calc_generic_scale(cam_rect->width, mf.width); sh_mobile_ceu_set_crop() 1288 interm_width = scale_down(rect->width, scale_cam_h); sh_mobile_ceu_set_crop() 1293 cam->width = mf.width; sh_mobile_ceu_set_crop() 1412 pix->width, pix->height); sh_mobile_ceu_set_fmt() 1414 dev_geo(dev, "4: request camera output %ux%u\n", mf.width, mf.height); sh_mobile_ceu_set_fmt() 1426 mf.width, mf.height, pix->width, pix->height); sh_mobile_ceu_set_fmt() 1434 cam->width = mf.width; sh_mobile_ceu_set_fmt() 1440 if (pix->width > ceu_sub_width) sh_mobile_ceu_set_fmt() 1441 ceu_sub_width = pix->width; sh_mobile_ceu_set_fmt() 1449 /* Scale pix->{width x height} down to width x height */ sh_mobile_ceu_set_fmt() 1450 scale_h = calc_scale(ceu_sub_width, &pix->width); sh_mobile_ceu_set_fmt() 1453 pix->width = ceu_sub_width; sh_mobile_ceu_set_fmt() 1467 ceu_sub_width, scale_h, pix->width, sh_mobile_ceu_set_fmt() 1477 pix->width &= ~3; sh_mobile_ceu_set_fmt() 1495 int width, height; sh_mobile_ceu_try_fmt() local 1499 pixfmt, pix->width, pix->height); sh_mobile_ceu_try_fmt() 1511 /* FIXME: calculate using depth and bus width */ sh_mobile_ceu_try_fmt() 1513 /* CFSZR requires height and width to be 4-pixel aligned */ sh_mobile_ceu_try_fmt() 1514 v4l_bound_align_image(&pix->width, 2, pcdev->max_width, 2, sh_mobile_ceu_try_fmt() 1517 width = pix->width; sh_mobile_ceu_try_fmt() 1521 mf.width = pix->width; sh_mobile_ceu_try_fmt() 1532 pix->width = mf.width; sh_mobile_ceu_try_fmt() 1544 if (pix->width < width || pix->height < height) { sh_mobile_ceu_try_fmt() 1550 mf.width = pcdev->max_width; sh_mobile_ceu_try_fmt() 1563 if (mf.width > width) sh_mobile_ceu_try_fmt() 1564 pix->width = width; sh_mobile_ceu_try_fmt() 1568 pix->bytesperline = max(pix->bytesperline, pix->width); sh_mobile_ceu_try_fmt() 1578 pix->width &= ~3; sh_mobile_ceu_try_fmt() 1583 __func__, ret, pix->pixelformat, pix->width, pix->height); sh_mobile_ceu_try_fmt() 1616 .width = out_width, sh_mobile_ceu_set_livecrop() 1624 if (!ret && (out_width != f.fmt.pix.width || sh_mobile_ceu_set_livecrop() 1766 err = of_property_read_u32(pdev->dev.of_node, "renesas,max-width", &v); sh_mobile_ceu_probe()
|
H A D | mx2_camera.c | 918 soc_camera_limit_side(&rect->left, &rect->width, 0, 2, 4096); mx2_camera_set_crop() 931 mf.width, mf.height); mx2_camera_set_crop() 933 icd->user_width = mf.width; mx2_camera_set_crop() 1014 in = mf_in->width; mx2_emmaprp_resize() 1015 out = pix_out->width; mx2_emmaprp_resize() 1106 mf_in->width = pix_out->width; mx2_emmaprp_resize() 1127 dev_dbg(icd->parent, "%s: requested params: width = %d, height = %d\n", mx2_camera_set_fmt() 1128 __func__, pix->width, pix->height); mx2_camera_set_fmt() 1137 mf.width = pix->width; mx2_camera_set_fmt() 1147 /* Store width and height returned by the sensor for resizing */ mx2_camera_set_fmt() 1148 pcdev->s_width = mf.width; mx2_camera_set_fmt() 1150 dev_dbg(icd->parent, "%s: sensor params: width = %d, height = %d\n", mx2_camera_set_fmt() 1157 if ((mf.width != pix->width || mf.height != pix->height) && mx2_camera_set_fmt() 1166 pix->width = mf.width; mx2_camera_set_fmt() 1172 dev_dbg(icd->parent, "%s: returned params: width = %d, height = %d\n", mx2_camera_set_fmt() 1173 __func__, pix->width, pix->height); mx2_camera_set_fmt() 1191 dev_dbg(icd->parent, "%s: requested params: width = %d, height = %d\n", mx2_camera_try_fmt() 1192 __func__, pix->width, pix->height); mx2_camera_try_fmt() 1201 * limit to MX27 hardware capabilities: width must be a multiple of 8 as mx2_camera_try_fmt() 1204 pix->width &= ~0x7; mx2_camera_try_fmt() 1207 mf.width = pix->width; mx2_camera_try_fmt() 1217 dev_dbg(icd->parent, "%s: sensor params: width = %d, height = %d\n", mx2_camera_try_fmt() 1224 if ((mf.width != pix->width || mf.height != pix->height) && mx2_camera_try_fmt() 1243 pix->width = mf.width; mx2_camera_try_fmt() 1248 dev_dbg(icd->parent, "%s: returned params: width = %d, height = %d\n", mx2_camera_try_fmt() 1249 __func__, pix->width, pix->height); mx2_camera_try_fmt()
|
/linux-4.1.27/drivers/media/platform/s5p-tv/ |
H A 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 }, 155 x_center = dst->x_offset + dst->width / 2; mxr_vp_fix_geometry() 159 dst->width = clamp(dst->width, 8U, 16 * src->full_width); mxr_vp_fix_geometry() 163 dst->x_offset = do_center(x_center, dst->width, mxr_vp_fix_geometry() 171 x_center = src->x_offset + src->width / 2; mxr_vp_fix_geometry() 175 src->width = clamp(src->width, round_up(dst->width / 16, 4), mxr_vp_fix_geometry() 176 dst->width * 4); mxr_vp_fix_geometry() 181 src->width = clamp(src->width, 32U, 2047U); mxr_vp_fix_geometry() 185 src->x_offset = do_center(x_center, src->width, mxr_vp_fix_geometry() 191 geo->x_ratio = (src->width << 16) / dst->width; mxr_vp_fix_geometry() 197 ALIGN(src->width + src->x_offset, 8), 8192U); mxr_vp_fix_geometry()
|
H A 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 }, 164 x_center = dst->x_offset + dst->width / 2; mxr_graph_fix_geometry() 168 dst->width = round_down(dst->width, 2); mxr_graph_fix_geometry() 171 dst->width = round_up(dst->width, 2); mxr_graph_fix_geometry() 175 dst->width = min(dst->width, dst->full_width); mxr_graph_fix_geometry() 179 dst->width = min(dst->width, 2 * src->full_width); mxr_graph_fix_geometry() 183 dst->x_offset = do_center(x_center, dst->width, mxr_graph_fix_geometry() 192 x_center = src->x_offset + src->width / 2; mxr_graph_fix_geometry() 195 if (src->full_width < dst->width) mxr_graph_fix_geometry() 196 src->width = dst->width / 2; mxr_graph_fix_geometry() 198 src->width = closest(src->width, dst->width / 2, mxr_graph_fix_geometry() 199 dst->width, flags); mxr_graph_fix_geometry() 201 if (src->width == dst->width) mxr_graph_fix_geometry() 218 src->x_offset = do_center(x_center, src->width, mxr_graph_fix_geometry() 226 src->width + src->x_offset, 32767); mxr_graph_fix_geometry()
|
H A D | mixer_video.c | 179 geo->src.width, geo->src.height); mxr_geometry_dump() 185 geo->dst.width, geo->dst.height); mxr_geometry_dump() 201 layer->geo.dst.full_width = mbus_fmt.width; mxr_layer_default_geo() 203 layer->geo.dst.width = layer->geo.dst.full_width; mxr_layer_default_geo() 207 layer->geo.src.full_width = mbus_fmt.width; mxr_layer_default_geo() 209 layer->geo.src.width = layer->geo.src.full_width; mxr_layer_default_geo() 224 if (layer->geo.dst.full_width == mbus_fmt.width && mxr_layer_update_output() 225 layer->geo.dst.full_height == mbus_fmt.width) mxr_layer_update_output() 228 layer->geo.dst.full_width = mbus_fmt.width; mxr_layer_update_output() 265 unsigned int width, unsigned int height) mxr_get_plane_size() 267 unsigned int bl_width = divup(width, blk->width); mxr_get_plane_size() 274 const struct mxr_format *fmt, u32 width, u32 height) mxr_mplane_fill() 287 u32 bl_width = divup(width, blk->width); mxr_mplane_fill() 305 pix->width = layer->geo.src.full_width; mxr_g_fmt() 310 mxr_mplane_fill(pix->plane_fmt, layer->fmt, pix->width, pix->height); mxr_g_fmt() 335 geo->src.full_width = max(geo->dst.full_width, pix->width); mxr_s_fmt() 340 geo->src.width = pix->width; mxr_s_fmt() 375 s->r.width = geo->src.width; mxr_g_selection() 382 s->r.width = geo->src.full_width; mxr_g_selection() 389 s->r.width = geo->dst.width; mxr_g_selection() 396 s->r.width = geo->dst.full_width; mxr_g_selection() 413 if (a->left + a->width > b->left + b->width) mxr_is_rect_inside() 433 s->r.width, s->r.height, s->r.left, s->r.top); mxr_s_selection() 443 res.width = geo->src.full_width; mxr_s_selection() 450 res.width = geo->dst.full_width; mxr_s_selection() 474 target->width = s->r.width; mxr_s_selection() 482 res.width = target->width; mxr_s_selection() 264 mxr_get_plane_size(const struct mxr_block *blk, unsigned int width, unsigned int height) mxr_get_plane_size() argument 273 mxr_mplane_fill(struct v4l2_plane_pix_format *planes, const struct mxr_format *fmt, u32 width, u32 height) mxr_mplane_fill() argument
|
/linux-4.1.27/sound/core/ |
H A D | pcm_misc.c | 32 unsigned char width; /* bit width */ member in struct:pcm_format_data 33 unsigned char phys; /* physical bit width */ 44 .width = 8, .phys = 8, .le = -1, .signd = 1, 48 .width = 8, .phys = 8, .le = -1, .signd = 0, 52 .width = 16, .phys = 16, .le = 1, .signd = 1, 56 .width = 16, .phys = 16, .le = 0, .signd = 1, 60 .width = 16, .phys = 16, .le = 1, .signd = 0, 64 .width = 16, .phys = 16, .le = 0, .signd = 0, 68 .width = 24, .phys = 32, .le = 1, .signd = 1, 72 .width = 24, .phys = 32, .le = 0, .signd = 1, 76 .width = 24, .phys = 32, .le = 1, .signd = 0, 80 .width = 24, .phys = 32, .le = 0, .signd = 0, 84 .width = 32, .phys = 32, .le = 1, .signd = 1, 88 .width = 32, .phys = 32, .le = 0, .signd = 1, 92 .width = 32, .phys = 32, .le = 1, .signd = 0, 96 .width = 32, .phys = 32, .le = 0, .signd = 0, 100 .width = 32, .phys = 32, .le = 1, .signd = -1, 104 .width = 32, .phys = 32, .le = 0, .signd = -1, 108 .width = 64, .phys = 64, .le = 1, .signd = -1, 112 .width = 64, .phys = 64, .le = 0, .signd = -1, 116 .width = 32, .phys = 32, .le = 1, .signd = -1, 120 .width = 32, .phys = 32, .le = 0, .signd = -1, 124 .width = 8, .phys = 8, .le = -1, .signd = -1, 128 .width = 8, .phys = 8, .le = -1, .signd = -1, 132 .width = 4, .phys = 4, .le = -1, .signd = -1, 136 .width = 3, .phys = 3, .le = -1, .signd = -1, 140 .width = 5, .phys = 5, .le = -1, .signd = -1, 144 .width = 8, .phys = 8, .le = 1, .signd = 0, 148 .width = 16, .phys = 16, .le = 1, .signd = 0, 152 .width = 32, .phys = 32, .le = 1, .signd = 0, 156 .width = 16, .phys = 16, .le = 0, .signd = 0, 160 .width = 32, .phys = 32, .le = 0, .signd = 0, 174 .width = 24, .phys = 24, .le = 1, .signd = 1, 178 .width = 24, .phys = 24, .le = 0, .signd = 1, 182 .width = 24, .phys = 24, .le = 1, .signd = 0, 186 .width = 24, .phys = 24, .le = 0, .signd = 0, 190 .width = 20, .phys = 24, .le = 1, .signd = 1, 194 .width = 20, .phys = 24, .le = 0, .signd = 1, 198 .width = 20, .phys = 24, .le = 1, .signd = 0, 202 .width = 20, .phys = 24, .le = 0, .signd = 0, 206 .width = 18, .phys = 24, .le = 1, .signd = 1, 210 .width = 18, .phys = 24, .le = 0, .signd = 1, 214 .width = 18, .phys = 24, .le = 1, .signd = 0, 218 .width = 18, .phys = 24, .le = 0, .signd = 0, 222 .width = 3, .phys = 8, .le = -1, .signd = -1, 226 .width = 5, .phys = 8, .le = -1, .signd = -1, 322 * snd_pcm_format_width - return the bit-width of the format 325 * Return: The bit-width of the format, or a negative error code 333 if ((val = pcm_formats[(INT)format].width) == 0) snd_pcm_format_width() 341 * snd_pcm_format_physical_width - return the physical bit-width of the format 344 * Return: The physical bit-width of the format, or a negative error code 406 int width; snd_pcm_format_set_silence() local 413 width = pcm_formats[(INT)format].phys; /* physical width */ snd_pcm_format_set_silence() 415 if (! width) snd_pcm_format_set_silence() 418 if (pcm_formats[(INT)format].signd == 1 || width <= 8) { snd_pcm_format_set_silence() 419 unsigned int bytes = samples * width / 8; snd_pcm_format_set_silence() 424 width /= 8; snd_pcm_format_set_silence() 428 memcpy(dst, pat, width); snd_pcm_format_set_silence() 429 dst += width; snd_pcm_format_set_silence() 432 /* a bit optimization for constant width */ snd_pcm_format_set_silence() 433 switch (width) { snd_pcm_format_set_silence()
|
/linux-4.1.27/drivers/video/fbdev/savage/ |
H A D | savagefb_accel.c | 38 if (!region->width || !region->height) savagefb_copyarea() 47 sx += region->width - 1; savagefb_copyarea() 48 dx += region->width - 1; savagefb_copyarea() 62 BCI_SEND(BCI_W_H(region->width, region->height)); savagefb_copyarea() 70 if (!rect->width || !rect->height) savagefb_fillrect() 89 BCI_SEND( BCI_W_H(rect->width, rect->height) ); savagefb_fillrect() 95 int fg, bg, size, i, width; savagefb_imageblit() local 99 if (!image->width || !image->height) savagefb_imageblit() 122 width = (image->width + 31) & ~31; savagefb_imageblit() 123 size = (width * image->height)/8; savagefb_imageblit() 128 BCI_SEND(BCI_CLIP_LR(image->dx, image->dx + image->width - 1)); savagefb_imageblit() 132 BCI_SEND(BCI_W_H(width, image->height)); savagefb_imageblit()
|
/linux-4.1.27/scripts/kconfig/lxdialog/ |
H A D | yesno.c | 27 static void print_buttons(WINDOW * dialog, int height, int width, int selected) print_buttons() argument 29 int x = width / 2 - 10; print_buttons() 42 int dialog_yesno(const char *title, const char *prompt, int height, int width) dialog_yesno() argument 50 if (getmaxx(stdscr) < (width + YESNO_WIDTH_MIN)) dialog_yesno() 54 x = (getmaxx(stdscr) - width) / 2; dialog_yesno() 57 draw_shadow(stdscr, y, x, height, width); dialog_yesno() 59 dialog = newwin(height, width, y, x); dialog_yesno() 62 draw_box(dialog, 0, 0, height, width, dialog_yesno() 66 for (i = 0; i < width - 2; i++) dialog_yesno() 71 print_title(dialog, title, width); dialog_yesno() 74 print_autowrap(dialog, prompt, width - 2, 1, 3); dialog_yesno() 76 print_buttons(dialog, height, width, 0); dialog_yesno() 95 print_buttons(dialog, height, width, button); dialog_yesno()
|
H A D | textbox.c | 25 static void print_page(WINDOW *win, int height, int width, update_text_fn 27 static void print_line(WINDOW *win, int row, int width); 61 int height, width, boxh, boxw; dialog_textbox() local 82 getmaxyx(stdscr, height, width); dialog_textbox() 83 if (height < TEXTBOX_HEIGTH_MIN || width < TEXTBOX_WIDTH_MIN) dialog_textbox() 93 width = initial_width; dialog_textbox() 95 if (width > 5) dialog_textbox() 96 width -= 5; dialog_textbox() 98 width = 0; dialog_textbox() 101 x = (getmaxx(stdscr) - width) / 2; dialog_textbox() 104 draw_shadow(stdscr, y, x, height, width); dialog_textbox() 106 dialog = newwin(height, width, y, x); dialog_textbox() 111 boxw = width - 2; dialog_textbox() 119 draw_box(dialog, 0, 0, height, width, dialog_textbox() 124 for (i = 0; i < width - 2; i++) dialog_textbox() 130 print_title(dialog, title, width); dialog_textbox() 132 print_button(dialog, gettext(" Exit "), height - 2, width / 2 - 4, TRUE); dialog_textbox() 312 static void print_page(WINDOW *win, int height, int width, update_text_fn print_page() argument 329 print_line(win, i, width); print_page() 341 static void print_line(WINDOW * win, int row, int width) print_line() argument 349 waddnstr(win, line, MIN(strlen(line), width - 2)); print_line() 356 for (i = 0; i < width - x; i++) print_line()
|
H A D | inputbox.c | 29 static void print_buttons(WINDOW * dialog, int height, int width, int selected) print_buttons() argument 31 int x = width / 2 - 11; print_buttons() 44 int dialog_inputbox(const char *title, const char *prompt, int height, int width, dialog_inputbox() argument 61 if (getmaxx(stdscr) <= (width - INPUTBOX_WIDTH_MIN)) dialog_inputbox() 65 x = (getmaxx(stdscr) - width) / 2; dialog_inputbox() 68 draw_shadow(stdscr, y, x, height, width); dialog_inputbox() 70 dialog = newwin(height, width, y, x); dialog_inputbox() 73 draw_box(dialog, 0, 0, height, width, dialog_inputbox() 77 for (i = 0; i < width - 2; i++) dialog_inputbox() 82 print_title(dialog, title, width); dialog_inputbox() 85 print_autowrap(dialog, prompt, width - 2, 1, 3); dialog_inputbox() 88 box_width = width - 6; dialog_inputbox() 91 box_x = (width - box_width) / 2; dialog_inputbox() 95 print_buttons(dialog, height, width, 0); dialog_inputbox() 247 print_buttons(dialog, height, width, 1); dialog_inputbox() 251 print_buttons(dialog, height, width, 0); dialog_inputbox() 257 print_buttons(dialog, height, width, 0); dialog_inputbox() 267 print_buttons(dialog, height, width, 0); dialog_inputbox() 271 print_buttons(dialog, height, width, 1); dialog_inputbox() 275 print_buttons(dialog, height, width, 0); dialog_inputbox()
|
H A D | checklist.c | 101 static void print_buttons(WINDOW * dialog, int height, int width, int selected) print_buttons() argument 103 int x = width / 2 - 11; print_buttons() 118 int width, int list_height) dialog_checklist() 137 if (getmaxx(stdscr) < (width + CHECKLIST_WIDTH_MIN)) 143 x = (getmaxx(stdscr) - width) / 2; 146 draw_shadow(stdscr, y, x, height, width); 148 dialog = newwin(height, width, y, x); 151 draw_box(dialog, 0, 0, height, width, 155 for (i = 0; i < width - 2; i++) 160 print_title(dialog, title, width); 163 print_autowrap(dialog, prompt, width - 2, 1, 3); 165 list_width = width - 6; 167 box_x = (width - list_width) / 2 - 1; 202 print_buttons(dialog, height, width, 0); 309 print_buttons(dialog, height, width, button); 117 dialog_checklist(const char *title, const char *prompt, int height, int width, int list_height) dialog_checklist() argument
|
H A D | menubox.c | 155 static void print_buttons(WINDOW * win, int height, int width, int selected) print_buttons() argument 157 int x = width / 2 - 28; print_buttons() 188 int height, width, menu_height; dialog_menu() local 195 width = getmaxx(stdscr); dialog_menu() 196 if (height < MENUBOX_HEIGTH_MIN || width < MENUBOX_WIDTH_MIN) dialog_menu() 200 width -= 5; dialog_menu() 206 x = (getmaxx(stdscr) - width) / 2; dialog_menu() 209 draw_shadow(stdscr, y, x, height, width); dialog_menu() 211 dialog = newwin(height, width, y, x); dialog_menu() 214 draw_box(dialog, 0, 0, height, width, dialog_menu() 218 for (i = 0; i < width - 2; i++) dialog_menu() 224 print_title(dialog, title, width); dialog_menu() 227 print_autowrap(dialog, prompt, width - 2, 1, 3); dialog_menu() 229 menu_width = width - 6; dialog_menu() 231 box_x = (width - menu_width) / 2 - 1; dialog_menu() 278 print_buttons(dialog, height, width, 0); dialog_menu() 380 print_buttons(dialog, height, width, button); dialog_menu()
|
H A D | dialog.h | 221 void attr_clear(WINDOW * win, int height, int width, chtype attr); 223 void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x); 225 void print_title(WINDOW *dialog, const char *title, int width); 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); 233 int width, int pause); 244 int width, int list_height); 246 int width, const char *init);
|
H A D | util.c | 242 void attr_clear(WINDOW * win, int height, int width, chtype attr) attr_clear() argument 249 for (j = 0; j < width; j++) attr_clear() 317 int height, width; init_dialog() local 324 getmaxyx(stdscr, height, width); init_dialog() 325 if (height < WINDOW_HEIGTH_MIN || width < WINDOW_WIDTH_MIN) { init_dialog() 365 void print_title(WINDOW *dialog, const char *title, int width) print_title() argument 368 int tlen = MIN(width - 2, strlen(title)); print_title() 370 mvwaddch(dialog, 0, (width - tlen) / 2 - 1, ' '); print_title() 371 mvwaddnstr(dialog, 0, (width - tlen)/2, title, tlen); print_title() 382 void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x) print_autowrap() argument 392 if (prompt_len <= width - x * 2) { /* If prompt is short */ print_autowrap() 393 wmove(win, y, (width - prompt_len) / 2); print_autowrap() 411 room = width - cur_x; print_autowrap() 477 draw_box(WINDOW * win, int y, int x, int height, int width, draw_box() argument 485 for (j = 0; j < width; j++) draw_box() 490 else if (!i && j == width - 1) draw_box() 492 else if (i == height - 1 && j == width - 1) draw_box() 500 else if (j == width - 1) draw_box() 511 void draw_shadow(WINDOW * win, int y, int x, int height, int width) draw_shadow() argument 518 for (i = 0; i < width; i++) draw_shadow() 521 wmove(win, i, x + width); draw_shadow()
|
/linux-4.1.27/net/wireless/ |
H A D | chan.c | 27 chandef->width = NL80211_CHAN_WIDTH_20_NOHT; cfg80211_chandef_create() 31 chandef->width = NL80211_CHAN_WIDTH_20; cfg80211_chandef_create() 35 chandef->width = NL80211_CHAN_WIDTH_40; cfg80211_chandef_create() 39 chandef->width = NL80211_CHAN_WIDTH_40; cfg80211_chandef_create() 57 switch (chandef->width) { cfg80211_chandef_valid() 122 switch (c->width) { chandef_primary_freqs() 155 int width; cfg80211_chandef_get_width() local 157 switch (c->width) { cfg80211_chandef_get_width() 159 width = 5; cfg80211_chandef_get_width() 162 width = 10; cfg80211_chandef_get_width() 166 width = 20; cfg80211_chandef_get_width() 169 width = 40; cfg80211_chandef_get_width() 173 width = 80; cfg80211_chandef_get_width() 176 width = 160; cfg80211_chandef_get_width() 182 return width; cfg80211_chandef_get_width() 200 * If they have the same width, but aren't identical, cfg80211_chandef_compatible() 203 if (c1->width == c2->width) cfg80211_chandef_compatible() 208 * but they don't have the same width. cfg80211_chandef_compatible() 210 if (c1->width == NL80211_CHAN_WIDTH_5 || cfg80211_chandef_compatible() 211 c1->width == NL80211_CHAN_WIDTH_10 || cfg80211_chandef_compatible() 212 c2->width == NL80211_CHAN_WIDTH_5 || cfg80211_chandef_compatible() 213 c2->width == NL80211_CHAN_WIDTH_10) cfg80211_chandef_compatible() 216 if (c1->width == NL80211_CHAN_WIDTH_20_NOHT || cfg80211_chandef_compatible() 217 c1->width == NL80211_CHAN_WIDTH_20) cfg80211_chandef_compatible() 220 if (c2->width == NL80211_CHAN_WIDTH_20_NOHT || cfg80211_chandef_compatible() 221 c2->width == NL80211_CHAN_WIDTH_20) cfg80211_chandef_compatible() 234 if (c1->width > c2->width) cfg80211_chandef_compatible() 263 int width; cfg80211_set_dfs_state() local 268 width = cfg80211_chandef_get_width(chandef); cfg80211_set_dfs_state() 269 if (width < 0) cfg80211_set_dfs_state() 273 width, dfs_state); cfg80211_set_dfs_state() 278 width, dfs_state); cfg80211_set_dfs_state() 333 int width; cfg80211_chandef_dfs_required() local 344 width = cfg80211_chandef_get_width(chandef); cfg80211_chandef_dfs_required() 345 if (width < 0) cfg80211_chandef_dfs_required() 350 width); cfg80211_chandef_dfs_required() 354 return BIT(chandef->width); cfg80211_chandef_dfs_required() 361 width); cfg80211_chandef_dfs_required() 365 return BIT(chandef->width); cfg80211_chandef_dfs_required() 425 int width; cfg80211_chandef_dfs_usable() local 431 width = cfg80211_chandef_get_width(chandef); cfg80211_chandef_dfs_usable() 432 if (width < 0) cfg80211_chandef_dfs_usable() 436 width); cfg80211_chandef_dfs_usable() 441 switch (chandef->width) { cfg80211_chandef_dfs_usable() 446 width); cfg80211_chandef_dfs_usable() 493 int width; cfg80211_chandef_dfs_available() local 499 width = cfg80211_chandef_get_width(chandef); cfg80211_chandef_dfs_available() 500 if (width < 0) cfg80211_chandef_dfs_available() 504 width); cfg80211_chandef_dfs_available() 510 switch (chandef->width) { cfg80211_chandef_dfs_available() 515 width); cfg80211_chandef_dfs_available() 557 int width; cfg80211_chandef_dfs_cac_time() local 563 width = cfg80211_chandef_get_width(chandef); cfg80211_chandef_dfs_cac_time() 564 if (width < 0) cfg80211_chandef_dfs_cac_time() 569 width); cfg80211_chandef_dfs_cac_time() 576 width); cfg80211_chandef_dfs_cac_time() 606 u32 width, control_freq, cap; cfg80211_chandef_usable() local 616 switch (chandef->width) { cfg80211_chandef_usable() 618 width = 5; cfg80211_chandef_usable() 622 width = 10; cfg80211_chandef_usable() 629 width = 20; cfg80211_chandef_usable() 632 width = 40; cfg80211_chandef_usable() 653 width = 80; cfg80211_chandef_usable() 663 width = 160; cfg80211_chandef_usable() 681 if (width > 20) cfg80211_chandef_usable() 685 if (width < 20) cfg80211_chandef_usable() 690 width, prohibited_flags)) cfg80211_chandef_usable() 696 width, prohibited_flags); cfg80211_chandef_usable() 856 *radar_detect |= BIT(wdev->chandef.width); cfg80211_get_chan_state() 873 *radar_detect |= BIT(wdev->chandef.width); cfg80211_get_chan_state() 883 *radar_detect |= BIT(wdev->chandef.width); cfg80211_get_chan_state() 896 *radar_detect |= BIT(wdev->chandef.width); cfg80211_get_chan_state()
|
/linux-4.1.27/drivers/clk/mxs/ |
H A D | clk-frac.c | 24 * @width: the divider bit width 34 u8 width; member in struct:clk_frac 47 div &= (1 << frac->width) - 1; clk_frac_recalc_rate() 49 return (parent_rate >> frac->width) * div; clk_frac_recalc_rate() 64 tmp <<= frac->width; clk_frac_round_rate() 71 return (parent_rate >> frac->width) * div; clk_frac_round_rate() 86 tmp <<= frac->width; clk_frac_set_rate() 96 val &= ~(((1 << frac->width) - 1) << frac->shift); clk_frac_set_rate() 112 void __iomem *reg, u8 shift, u8 width, u8 busy) mxs_clk_frac() 130 frac->width = width; mxs_clk_frac() 111 mxs_clk_frac(const char *name, const char *parent_name, void __iomem *reg, u8 shift, u8 width, u8 busy) mxs_clk_frac() argument
|
H A D | clk.h | 33 void __iomem *reg, u8 shift, u8 width, u8 busy); 36 void __iomem *reg, u8 shift, u8 width, u8 busy); 52 u8 shift, u8 width, const char **parent_names, int num_parents) mxs_clk_mux() 56 reg, shift, width, 0, &mxs_lock); mxs_clk_mux() 51 mxs_clk_mux(const char *name, void __iomem *reg, u8 shift, u8 width, const char **parent_names, int num_parents) mxs_clk_mux() argument
|
/linux-4.1.27/drivers/media/pci/bt8xx/ |
H A D | btcx-risc.c | 95 clips[n].c.width = -win->left; btcx_screen_clips() 99 if (win->left + win->width > swidth) { btcx_screen_clips() 103 clips[n].c.width = win->width - clips[n].c.left; btcx_screen_clips() 111 clips[n].c.width = win->width; btcx_screen_clips() 119 clips[n].c.width = win->width; btcx_screen_clips() 134 nw = (win->width) & ~mask; btcx_align() 135 if (nx + nw > win->left + win->width) btcx_align() 139 win->width = nw; btcx_align() 142 win->width, win->height, win->left, win->top, dx); btcx_align() 147 nw = (clips[i].c.width) & ~mask; btcx_align() 148 if (nx + nw < clips[i].c.left-dx + clips[i].c.width) btcx_align() 151 clips[i].c.width = nw; btcx_align() 154 clips[i].c.width, clips[i].c.height, btcx_align() 183 btcx_calc_skips(int line, int width, int *maxy, btcx_calc_skips() argument 195 if (clips[clip].c.left + clips[clip].c.width <= 0) btcx_calc_skips() 197 if (clips[clip].c.left > (signed)width) btcx_calc_skips() 217 skips[skip].end = clips[clip].c.left + clips[clip].c.width; btcx_calc_skips() 218 if (skips[skip].end > width) btcx_calc_skips() 219 skips[skip].end = width; btcx_calc_skips() 223 end = clips[clip].c.left + clips[clip].c.width; btcx_calc_skips() 226 if (skips[skip-1].end > width) btcx_calc_skips() 227 skips[skip-1].end = width; btcx_calc_skips()
|
H A D | bttv-risc.c | 293 btcx_calc_skips(line, ov->w.width, &maxy, bttv_risc_overlay() 297 for (start = 0, skip = 0; start < ov->w.width; start = end) { bttv_risc_overlay() 300 end = ov->w.width; bttv_risc_overlay() 316 if (ov->w.width == end) bttv_risc_overlay() 337 int width, int height, int interleaved, bttv_calc_geo_old() 355 xsf = (width*scaledtwidth)/swidth; bttv_calc_geo_old() 358 geo->hdelay = (geo->hdelay*width)/swidth; bttv_calc_geo_old() 362 geo->crop = ((width>>8)&0x03) | ((geo->hdelay>>6)&0x0c) | bttv_calc_geo_old() 366 geo->width = width; bttv_calc_geo_old() 371 geo->vtc = (width < 193) ? 2 : ((width < 385) ? 1 : 0); bttv_calc_geo_old() 372 geo->comb = (width < 769) ? 1 : 0; bttv_calc_geo_old() 382 unsigned int width, bttv_calc_geo() 394 && crop->width == tvnorm->cropcap.defrect.width bttv_calc_geo() 396 && width <= tvnorm->swidth /* see PAL-Nc et al */) bttv_calc_geo() 398 bttv_calc_geo_old(btv, geo, width, height, bttv_calc_geo() 405 c_width = min((unsigned int) crop->width, width * 16); bttv_calc_geo() 408 geo->width = width; bttv_calc_geo() 409 geo->hscale = (c_width * 4096U + (width >> 1)) / width - 4096; bttv_calc_geo() 411 geo->hdelay = ((crop->left * width + c_width) / c_width) & ~1; bttv_calc_geo() 421 geo->crop = (((geo->width >> 8) & 0x03) | bttv_calc_geo() 427 geo->vtc = (width < 193) ? 2 : ((width < 385) ? 1 : 0); bttv_calc_geo() 428 geo->comb = (width < 769) ? 1 : 0; bttv_calc_geo() 450 btwrite(geo->width & 0xff, BT848_E_HACTIVE_LO+off); bttv_apply_geo() 714 buf->fmt->name, buf->vb.width, buf->vb.height); bttv_buffer_risc() 718 int bpl = (buf->fmt->depth >> 3) * buf->vb.width; bttv_buffer_risc() 721 bttv_calc_geo(btv,&buf->geo,buf->vb.width,buf->vb.height, bttv_buffer_risc() 759 uoffset = buf->vb.width * buf->vb.height; bttv_buffer_risc() 760 voffset = buf->vb.width * buf->vb.height; bttv_buffer_risc() 775 bttv_calc_geo(btv,&buf->geo,buf->vb.width, bttv_buffer_risc() 779 0,buf->vb.width,0,buf->vb.height, bttv_buffer_risc() 784 bttv_calc_geo(btv,&buf->geo,buf->vb.width, bttv_buffer_risc() 788 0,buf->vb.width,0,buf->vb.height, bttv_buffer_risc() 793 bttv_calc_geo(btv,&buf->geo,buf->vb.width, bttv_buffer_risc() 797 ypadding = buf->vb.width; bttv_buffer_risc() 798 cpadding = buf->vb.width >> buf->fmt->hshift; bttv_buffer_risc() 801 0,buf->vb.width,ypadding,lines, bttv_buffer_risc() 808 ypadding,buf->vb.width,ypadding,lines, bttv_buffer_risc() 816 bttv_calc_geo(btv,&buf->geo,buf->vb.width, bttv_buffer_risc() 820 ypadding = buf->vb.width; bttv_buffer_risc() 821 cpadding = buf->vb.width >> buf->fmt->hshift; bttv_buffer_risc() 824 0,buf->vb.width,0,lines, bttv_buffer_risc() 832 lines * ypadding,buf->vb.width,0,lines, bttv_buffer_risc() 875 fmt->name, ov->w.width, ov->w.height); bttv_overlay_risc() 878 bttv_calc_geo(btv,&buf->geo,ov->w.width,ov->w.height, bttv_overlay_risc() 336 bttv_calc_geo_old(struct bttv *btv, struct bttv_geometry *geo, int width, int height, int interleaved, const struct bttv_tvnorm *tvnorm) bttv_calc_geo_old() argument 380 bttv_calc_geo(struct bttv * btv, struct bttv_geometry * geo, unsigned int width, unsigned int height, int both_fields, const struct bttv_tvnorm * tvnorm, const struct v4l2_rect * crop) bttv_calc_geo() argument
|
H A D | btcx-risc.h | 24 void btcx_calc_skips(int line, int width, int *maxy,
|
/linux-4.1.27/arch/arm/mach-s3c24xx/ |
H A D | setup-sdhci-gpio.c | 26 void s3c2416_setup_sdhci0_cfg_gpio(struct platform_device *dev, int width) s3c2416_setup_sdhci0_cfg_gpio() argument 28 s3c_gpio_cfgrange_nopull(S3C2410_GPE(5), 2 + width, S3C_GPIO_SFN(2)); s3c2416_setup_sdhci0_cfg_gpio() 31 void s3c2416_setup_sdhci1_cfg_gpio(struct platform_device *dev, int width) s3c2416_setup_sdhci1_cfg_gpio() argument 33 s3c_gpio_cfgrange_nopull(S3C2410_GPL(0), width, S3C_GPIO_SFN(2)); s3c2416_setup_sdhci1_cfg_gpio()
|
/linux-4.1.27/tools/perf/ui/gtk/ |
H A D | browser.c | 23 int width; perf_gtk__resize_window() local 31 width = rect.width * 3 / 4; perf_gtk__resize_window() 34 gtk_window_resize(GTK_WINDOW(window), width, height); perf_gtk__resize_window() local
|
/linux-4.1.27/include/media/ |
H A D | sh_mobile_ceu.h | 4 #define SH_CEU_FLAG_USE_8BIT_BUS (1 << 0) /* use 8bit bus width */ 5 #define SH_CEU_FLAG_USE_16BIT_BUS (1 << 1) /* use 16bit bus width */
|
H A D | mt9t112.h | 15 #define MT9T112_FLAG_DATAWIDTH_8 (1 << 1) /* default width is 10 */
|
H A D | v4l2-mediabus.h | 93 pix_fmt->width = mbus_fmt->width; v4l2_fill_pix_format() 105 mbus_fmt->width = pix_fmt->width; v4l2_fill_mbus_format()
|
/linux-4.1.27/include/video/ |
H A D | omapvrfb.h | 42 extern void omap_vrfb_adjust_size(u16 *width, u16 *height, 44 extern u32 omap_vrfb_min_phys_size(u16 width, u16 height, u8 bytespp); 45 extern u16 omap_vrfb_max_height(u32 phys_size, u16 width, u8 bytespp); 47 u16 width, u16 height, 56 static inline void omap_vrfb_adjust_size(u16 *width, u16 *height, omap_vrfb_adjust_size() argument 58 static inline u32 omap_vrfb_min_phys_size(u16 width, u16 height, u8 bytespp) omap_vrfb_min_phys_size() argument 60 static inline u16 omap_vrfb_max_height(u32 phys_size, u16 width, u8 bytespp) omap_vrfb_max_height() argument 63 u16 width, u16 height, unsigned bytespp, bool yuv_mode) {} omap_vrfb_map_angle() 62 omap_vrfb_setup(struct vrfb *vrfb, unsigned long paddr, u16 width, u16 height, unsigned bytespp, bool yuv_mode) omap_vrfb_setup() argument
|
/linux-4.1.27/arch/arm/mach-s3c64xx/ |
H A D | setup-sdhci-gpio.c | 25 void s3c64xx_setup_sdhci0_cfg_gpio(struct platform_device *dev, int width) s3c64xx_setup_sdhci0_cfg_gpio() argument 30 s3c_gpio_cfgrange_nopull(S3C64XX_GPG(0), 2 + width, S3C_GPIO_SFN(2)); s3c64xx_setup_sdhci0_cfg_gpio() 38 void s3c64xx_setup_sdhci1_cfg_gpio(struct platform_device *dev, int width) s3c64xx_setup_sdhci1_cfg_gpio() argument 43 s3c_gpio_cfgrange_nopull(S3C64XX_GPH(0), 2 + width, S3C_GPIO_SFN(2)); s3c64xx_setup_sdhci1_cfg_gpio() 51 void s3c64xx_setup_sdhci2_cfg_gpio(struct platform_device *dev, int width) s3c64xx_setup_sdhci2_cfg_gpio() argument 54 s3c_gpio_cfgrange_nopull(S3C64XX_GPH(6), width, S3C_GPIO_SFN(3)); s3c64xx_setup_sdhci2_cfg_gpio()
|
/linux-4.1.27/arch/mn10300/proc-mn2ws0050/include/proc/ |
H A D | nand-regs.h | 32 #define FCOMMAND_BW_8BIT 0x00 /* 8bit bus width */ 33 #define FCOMMAND_BW_16BIT 0x40 /* 16bit bus width */ 89 #define FPWS_PWS1W_2CLK 0x00000000 /* write pulse width 1clock */ 90 #define FPWS_PWS1W_3CLK 0x01000000 /* write pulse width 2clock */ 91 #define FPWS_PWS1W_4CLK 0x02000000 /* write pulse width 4clock */ 92 #define FPWS_PWS1W_5CLK 0x03000000 /* write pulse width 5clock */ 93 #define FPWS_PWS1W_6CLK 0x04000000 /* write pulse width 6clock */ 94 #define FPWS_PWS1W_7CLK 0x05000000 /* write pulse width 7clock */ 95 #define FPWS_PWS1W_8CLK 0x06000000 /* write pulse width 8clock */ 96 #define FPWS_PWS1R_3CLK 0x00010000 /* read pulse width 3clock */ 97 #define FPWS_PWS1R_4CLK 0x00020000 /* read pulse width 4clock */ 98 #define FPWS_PWS1R_5CLK 0x00030000 /* read pulse width 5clock */ 99 #define FPWS_PWS1R_6CLK 0x00040000 /* read pulse width 6clock */ 100 #define FPWS_PWS1R_7CLK 0x00050000 /* read pulse width 7clock */ 101 #define FPWS_PWS1R_8CLK 0x00060000 /* read pulse width 8clock */
|
/linux-4.1.27/drivers/video/fbdev/mb862xx/ |
H A D | mb862xxfb_accel.c | 67 cmd[5] = (area->height << 16) | area->width; mb86290fb_copyarea() 76 u16 width, u16 height, u32 fgcolor, mb86290fb_imageblit1() 97 bytes = (image->width + 7) >> 3; mb86290fb_imageblit1() 103 cmd[8] = (height << 16) | width; mb86290fb_imageblit1() 125 u16 width, u16 height, u32 fgcolor, mb86290fb_imageblit8() 136 cmd[2] = (height << 16) | width; mb86290fb_imageblit8() 140 bytes = image->width; mb86290fb_imageblit8() 164 u16 width, u16 height, u32 fgcolor, mb86290fb_imageblit16() 174 bytes = image->width << 1; mb86290fb_imageblit16() 179 cmd[2] = (height << 16) | width; mb86290fb_imageblit16() 199 u16 width = image->width, height = image->height; mb86290fb_imageblit() local 204 x2 = image->dx + image->width; mb86290fb_imageblit() 210 width = x2 - dx; mb86290fb_imageblit() 215 step = (width + 31) >> 5; mb86290fb_imageblit() 232 step = (width + 1) >> 1; mb86290fb_imageblit() 238 step = (width + 1) >> 1; mb86290fb_imageblit() 251 cmdfn(cmd, step, dx, dy, width, height, fgcolor, bgcolor, image, info); mb86290fb_imageblit() 260 u32 x2, y2, vxres, vyres, height, width, fg; mb86290fb_fillrect() local 266 if (!rect->width || !rect->height || rect->dx > vxres mb86290fb_fillrect() 272 x2 = rect->dx + rect->width; mb86290fb_fillrect() 276 width = x2 - rect->dx; mb86290fb_fillrect() 305 cmd[6] = (height << 16) | width; mb86290fb_fillrect() 75 mb86290fb_imageblit1(u32 *cmd, u16 step, u16 dx, u16 dy, u16 width, u16 height, u32 fgcolor, u32 bgcolor, const struct fb_image *image, struct fb_info *info) mb86290fb_imageblit1() argument 124 mb86290fb_imageblit8(u32 *cmd, u16 step, u16 dx, u16 dy, u16 width, u16 height, u32 fgcolor, u32 bgcolor, const struct fb_image *image, struct fb_info *info) mb86290fb_imageblit8() argument 163 mb86290fb_imageblit16(u32 *cmd, u16 step, u16 dx, u16 dy, u16 width, u16 height, u32 fgcolor, u32 bgcolor, const struct fb_image *image, struct fb_info *info) mb86290fb_imageblit16() argument
|
/linux-4.1.27/drivers/video/fbdev/aty/ |
H A D | mach64_accel.c | 186 static inline void draw_rect(s16 x, s16 y, u16 width, u16 height, draw_rect() argument 192 aty_st_le32(DST_HEIGHT_WIDTH, (width << 16) | height, par); draw_rect() 200 u32 sx = area->sx, dx = area->dx, width = area->width, rotation = 0; atyfb_copyarea() local 204 if (!area->width || !area->height) atyfb_copyarea() 216 width *= 3; atyfb_copyarea() 226 dx += width - 1; atyfb_copyarea() 227 sx += width - 1; atyfb_copyarea() 238 aty_st_le32(SRC_HEIGHT1_WIDTH1, (width << 16) | area->height, par); atyfb_copyarea() 240 draw_rect(dx, dy, width, area->height, par); atyfb_copyarea() 246 u32 color, dx = rect->dx, width = rect->width, rotation = 0; atyfb_fillrect() local 250 if (!rect->width || !rect->height) atyfb_fillrect() 267 width *= 3; atyfb_fillrect() 279 draw_rect(dx, rect->dy, width, rect->height, par); atyfb_fillrect() 285 u32 src_bytes, dx = image->dx, dy = image->dy, width = image->width; atyfb_imageblit() local 290 if (!image->width || !image->height) atyfb_imageblit() 336 width *= 3; atyfb_imageblit() 347 if (M64_HAS(HW_TRIPLE) && image->width % 8 == 0) atyfb_imageblit() 380 draw_rect(dx, dy, width, image->height, par); atyfb_imageblit() 381 src_bytes = (((image->width * image->depth) + 7) / 8) * image->height; atyfb_imageblit() 385 int inbit, outbit, mult24, byte_id_in_dword, width; atyfb_imageblit() local 389 for (width = image->width, inbit = 7, mult24 = 0; src_bytes; ) { atyfb_imageblit() 400 width--; atyfb_imageblit() 404 if (inbit < 0 || width == 0) { atyfb_imageblit() 409 if (width == 0) { atyfb_imageblit() 410 width = image->width; atyfb_imageblit()
|
H A D | radeon_accel.c | 64 OUTREG(DST_WIDTH_HEIGHT, (region->width << 16) | region->height); radeonfb_prim_fillrect() 87 if(!modded.width || !modded.height || radeonfb_fillrect() 91 if(modded.dx + modded.width > vxres) modded.width = vxres - modded.dx; radeonfb_fillrect() 103 w = area->width; h = area->height; radeonfb_prim_copyarea() 143 modded.width = area->width; radeonfb_copyarea() 158 if(!modded.width || !modded.height || radeonfb_copyarea() 163 if(modded.sx + modded.width > vxres) modded.width = vxres - modded.sx; radeonfb_copyarea() 164 if(modded.dx + modded.width > vxres) modded.width = vxres - modded.dx; radeonfb_copyarea()
|
H A D | mach64_cursor.c | 147 unsigned int width = (cursor->image.width + 7) >> 3; atyfb_cursor() local 157 offset = align - width*2; atyfb_cursor() 160 for (j = 0; j < width; j++) { atyfb_cursor() 182 if ((j + 1) * 8 > cursor->image.width) { atyfb_cursor() 184 (1 << ((cursor->image.width & 7) * 2)) - 1); atyfb_cursor()
|
/linux-4.1.27/drivers/media/platform/vsp1/ |
H A D | vsp1_rwpf.c | 66 fse->min_width = format->width; vsp1_rwpf_enum_frame_size() 67 fse->max_width = format->width; vsp1_rwpf_enum_frame_size() 124 format->width = clamp_t(unsigned int, fmt->format.width, vsp1_rwpf_set_format() 137 crop->width = fmt->format.width; vsp1_rwpf_set_format() 169 sel->r.width = format->width; vsp1_rwpf_get_selection() 200 sel->r.left = min_t(unsigned int, sel->r.left, format->width - 2); vsp1_rwpf_set_selection() 206 sel->r.width = min_t(unsigned int, sel->r.width, vsp1_rwpf_set_selection() 207 format->width - sel->r.left); vsp1_rwpf_set_selection() 217 format->width = crop->width; vsp1_rwpf_set_selection()
|
H A D | vsp1_sru.c | 148 if (input->width != output->width) sru_s_stream() 218 fse->min_width = format->width; sru_enum_frame_size() 220 if (format->width <= SRU_MAX_SIZE / 2 && sru_enum_frame_size() 222 fse->max_width = format->width * 2; sru_enum_frame_size() 225 fse->max_width = format->width; sru_enum_frame_size() 259 fmt->width = clamp(fmt->width, SRU_MIN_SIZE, SRU_MAX_SIZE); sru_try_format() 275 input_area = format->width * format->height; sru_try_format() 276 output_area = min(fmt->width, SRU_MAX_SIZE) sru_try_format() 279 if (fmt->width <= SRU_MAX_SIZE / 2 && sru_try_format() 282 fmt->width = format->width * 2; sru_try_format() 285 fmt->width = format->width; sru_try_format()
|
H A D | vsp1_uds.c | 88 * uds_passband_width - Return the passband filter width for a scaling ratio 132 hscale = uds_compute_ratio(input->width, output->width); uds_s_stream() 161 (output->width << VI6_UDS_CLIP_SIZE_HSIZE_SHIFT) | uds_s_stream() 222 uds_output_limits(format->width, &fse->min_width, uds_enum_frame_size() 257 fmt->width = clamp(fmt->width, UDS_MIN_SIZE, UDS_MAX_SIZE); uds_try_format() 267 uds_output_limits(format->width, &minimum, &maximum); uds_try_format() 268 fmt->width = clamp(fmt->width, minimum, maximum); uds_try_format()
|
H A D | vsp1_lif.c | 58 obth = min(obth, (format->width + 1) / 2 * format->height - 4); lif_s_stream() 127 fse->min_width = format->width; lif_enum_frame_size() 128 fse->max_width = format->width; lif_enum_frame_size() 170 format->width = clamp_t(unsigned int, fmt->format.width, lif_set_format()
|
/linux-4.1.27/drivers/staging/fsl-mc/bus/ |
H A D | dpmcp-cmd.h | 57 /* cmd, param, offset, width, type, arg_name */ 61 /* cmd, param, offset, width, type, arg_name */ 70 /* cmd, param, offset, width, type, arg_name */ 74 /* cmd, param, offset, width, type, arg_name */ 83 /* cmd, param, offset, width, type, arg_name */ 90 /* cmd, param, offset, width, type, arg_name */ 94 /* cmd, param, offset, width, type, arg_name */ 98 /* cmd, param, offset, width, type, arg_name */ 105 /* cmd, param, offset, width, type, arg_name */ 109 /* cmd, param, offset, width, type, arg_name */ 113 /* cmd, param, offset, width, type, arg_name */ 117 /* cmd, param, offset, width, type, arg_name */ 121 /* cmd, param, offset, width, type, arg_name */ 128 /* cmd, param, offset, width, type, arg_name */
|
/linux-4.1.27/arch/arm/mach-ep93xx/ |
H A D | micro9.c | 38 /* Detect the bus width of the external flash memory */ micro9_detect_bootwidth() 48 unsigned int width; micro9_register_flash() local 51 width = 4; micro9_register_flash() 53 width = micro9_detect_bootwidth(); micro9_register_flash() 55 width = 0; micro9_register_flash() 57 if (width) micro9_register_flash() 58 ep93xx_register_flash(width, EP93XX_CS1_PHYS_BASE, SZ_64M); micro9_register_flash()
|
/linux-4.1.27/drivers/mtd/maps/ |
H A D | scx200_docflash.c | 28 static unsigned width = 8; /* Default to 8 bits wide */ variable 35 module_param(width, int, 0); 36 MODULE_PARM_DESC(width, "Data width of the flash mapping (8/16)"); 117 width = 16; init_scx200_docflash() 119 width = 8; init_scx200_docflash() 137 if (width != 8 && width != 16) { init_scx200_docflash() 138 printk(KERN_ERR NAME ": invalid bus width for flash mapping\n"); init_scx200_docflash() 158 if (width == 8) { init_scx200_docflash() 166 printk(KERN_INFO NAME ": DOCCS mapped at %pR, width %d\n", init_scx200_docflash() 167 &docmem, width); init_scx200_docflash() 170 if (width == 8) init_scx200_docflash()
|
H A D | pismo.c | 25 u8 width; member in struct:pismo_cs_block 42 u8 width; member in struct:pismo_mem 61 static unsigned int pismo_width_to_bytes(unsigned int width) pismo_width_to_bytes() argument 63 width &= 15; pismo_width_to_bytes() 64 if (width > 2) pismo_width_to_bytes() 66 return 1 << width; pismo_width_to_bytes() 137 .width = region->width, pismo_add_nor() 151 .bankwidth = region->width, pismo_add_sram() 166 region.width = pismo_width_to_bytes(cs->width); pismo_add_one() 170 if (region.width == 0) { pismo_add_one() 171 dev_err(dev, "cs%u: bad width: %02x, ignoring\n", i, cs->width); pismo_add_one()
|
/linux-4.1.27/scripts/ |
H A D | decodecode | 42 width=`expr index "$code" ' '` 43 width=$((($width-1)/2)) 44 case $width in 54 if [ $width -eq 2 ]; then
|
H A D | bootgraph.pl | 151 print "<svg width=\"2000\" height=\"100%\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n"; 164 $styles[0] = "fill:rgb(0,0,255);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)"; 165 $styles[1] = "fill:rgb(0,255,0);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)"; 166 $styles[2] = "fill:rgb(255,0,20);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)"; 167 $styles[3] = "fill:rgb(255,255,20);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)"; 168 $styles[4] = "fill:rgb(255,0,255);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)"; 169 $styles[5] = "fill:rgb(0,255,255);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)"; 170 $styles[6] = "fill:rgb(0,128,255);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)"; 171 $styles[7] = "fill:rgb(0,255,128);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)"; 172 $styles[8] = "fill:rgb(255,0,128);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)"; 173 $styles[9] = "fill:rgb(255,255,128);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)"; 174 $styles[10] = "fill:rgb(255,128,255);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)"; 175 $styles[11] = "fill:rgb(128,255,255);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)"; 177 my $style_wait = "fill:rgb(128,128,128);fill-opacity:0.5;stroke-width:0;stroke:rgb(0,0,0)"; 215 print "<rect x=\"$s\" width=\"$w\" y=\"$y\" height=\"115\" style=\"$style_wait\"/>\n"; 217 print "<rect x=\"$s\" width=\"$w\" y=\"$y\" height=\"145\" style=\"$style\"/>\n";
|
/linux-4.1.27/drivers/gpu/drm/ |
H A D | drm_rect.c | 122 * (@src width) / (@dst width). 184 * (@src width) / (@dst width). 300 * @width: Width of the coordinate space 306 * @width and @height combined with @rotation define 309 * @width correcsponds to the horizontal and @height 314 int width, int height, drm_rect_rotate() 323 r->x1 = width - tmp.x2; drm_rect_rotate() 324 r->x2 = width - tmp.x1; drm_rect_rotate() 340 r->y1 = width - tmp.x2; drm_rect_rotate() 341 r->y2 = width - tmp.x1; drm_rect_rotate() 345 r->x1 = width - tmp.x2; drm_rect_rotate() 346 r->x2 = width - tmp.x1; drm_rect_rotate() 366 * @width: Width of the coordinate space 373 * @width and @height combined with @rotation define 376 * @width correcsponds to the horizontal and @height 382 * drm_rotate(&r, width, height, rotation); 383 * drm_rotate_inv(&r, width, height, rotation); 388 int width, int height, drm_rect_rotate_inv() 398 r->x1 = width - tmp.y2; drm_rect_rotate_inv() 399 r->x2 = width - tmp.y1; drm_rect_rotate_inv() 405 r->x1 = width - tmp.x2; drm_rect_rotate_inv() 406 r->x2 = width - tmp.x1; drm_rect_rotate_inv() 425 r->x1 = width - tmp.x2; drm_rect_rotate_inv() 426 r->x2 = width - tmp.x1; drm_rect_rotate_inv() 313 drm_rect_rotate(struct drm_rect *r, int width, int height, unsigned int rotation) drm_rect_rotate() argument 387 drm_rect_rotate_inv(struct drm_rect *r, int width, int height, unsigned int rotation) drm_rect_rotate_inv() argument
|
/linux-4.1.27/drivers/gpu/drm/omapdrm/ |
H A D | tcm.h | 59 u16 width, height; /* container dimensions */ member in struct:tcm 66 to the list. It may also contain copies of width and height to notice 67 any changes to the publicly available width and height fields. */ 71 s32 (*reserve_2d)(struct tcm *tcm, u16 height, u16 width, u8 align, 89 * width and height fits within container 94 struct tcm *sita_init(u16 width, u16 height, struct tcm_pt *attr); 118 * @param width Width(in pages) of area to be reserved. 131 static inline s32 tcm_reserve_2d(struct tcm *tcm, u16 width, u16 height, tcm_reserve_2d() argument 136 (area == NULL || width == 0 || height == 0 || tcm_reserve_2d() 139 (height > tcm->height || width > tcm->width) ? -ENOMEM : 0; tcm_reserve_2d() 143 res = tcm->reserve_2d(tcm, height, width, align, area); tcm_reserve_2d() 169 slots > (tcm->width * (u32) tcm->height) ? -ENOMEM : 0; tcm_reserve_1d() 227 (slice->p0.x || (slice->p1.x != slice->tcm->width - 1))) { tcm_slice() 229 slice->p1.x = slice->tcm->width - 1; tcm_slice() 245 area->p1.x < area->tcm->width && tcm_area_is_valid() 250 area->p0.x < area->tcm->width && tcm_area_is_valid() 251 area->p0.x + area->p0.y * area->tcm->width <= tcm_area_is_valid() 252 area->p1.x + area->p1.y * area->tcm->width) || tcm_area_is_valid() 267 i = p->x + p->y * a->tcm->width; __tcm_is_in() 268 return i >= a->p0.x + a->p0.y * a->tcm->width && __tcm_is_in() 269 i <= a->p1.x + a->p1.y * a->tcm->width; __tcm_is_in() 273 /* calculate area width */ __tcm_area_width() 291 area->tcm->width; __tcm_sizeof() 306 a->p1.x = (a->p0.x + num_pg - 1) % a->tcm->width; tcm_1d_limit() 307 a->p1.y = a->p0.y + ((a->p0.x + num_pg - 1) / a->tcm->width); tcm_1d_limit()
|
H A D | tcm-sita.c | 80 struct tcm *sita_init(u16 width, u16 height, struct tcm_pt *attr) sita_init() argument 87 if (width == 0 || height == 0) sita_init() 100 tcm->width = width; sita_init() 110 pvt->map = kmalloc(sizeof(*pvt->map) * tcm->width, GFP_KERNEL); sita_init() 114 for (i = 0; i < tcm->width; i++) { sita_init() 126 if (attr && attr->x <= tcm->width && attr->y <= tcm->height) { sita_init() 131 /* Defaulting to 3:1 ratio on width for 2D area split */ sita_init() 133 pvt->div_pt.x = (tcm->width * 3) / 4; sita_init() 138 assign(&area, 0, 0, width - 1, height - 1); sita_init() 155 area.p1.x = tcm->width - 1; sita_deinit() 187 assign(&field, tcm->width - 1, tcm->height - 1, 0, 0); sita_reserve_1d() 201 * @param w width 266 * @param w width of desired area 340 * @param w width of desired area 437 * Currently we only support full width 1D scan field, which makes sense scan_r2l_b2t_one_dim() 438 * since 1D slot-ordering spans the full container width. scan_r2l_b2t_one_dim() 440 if (tcm->width != field->p0.x - field->p1.x + 1) scan_r2l_b2t_one_dim() 444 if (num_slots > tcm->width * LEN(field->p0.y, field->p1.y)) scan_r2l_b2t_one_dim() 481 x = (x ? : tcm->width) - 1; scan_r2l_b2t_one_dim() 495 * @param w width of desired area 515 /* expand width and height if needed */ scan_areas_and_find_fit() 517 boundary_x = tcm->width - 1; scan_areas_and_find_fit() 525 if (ret != 0 && (boundary_x != tcm->width - 1 || scan_areas_and_find_fit() 528 assign(&field, 0, 0, tcm->width - 1, tcm->height - 1); scan_areas_and_find_fit() 536 /* expand width and height if needed */ scan_areas_and_find_fit() 537 if (w > (tcm->width - pvt->div_pt.x)) scan_areas_and_find_fit() 542 assign(&field, tcm->width - 1, 0, boundary_x, boundary_y); scan_areas_and_find_fit() 549 assign(&field, tcm->width - 1, 0, 0, tcm->height - 1); scan_areas_and_find_fit() 594 * @param x0, y0, w, h top, left, width, height of candidate area 698 if (area->p1.x == tcm->width - 1) get_neighbor_stats()
|
/linux-4.1.27/drivers/video/fbdev/matrox/ |
H A D | matroxfb_accel.c | 208 int sx, int dy, int dx, int height, int width) matrox_accel_bmove() 223 width--; DBG() 225 end = start+width; DBG() 232 width--; 234 start = end+width; 241 mga_outl(M_FXBNDRY, ((dx+width)<<16) | dx); 250 int width) matrox_accel_bmove_lin() 265 width--; DBG() 267 end = start+width; DBG() 274 width--; 276 start = end+width; 283 mga_outl(M_FXBNDRY, ((dx+width)<<16) | dx); 294 if ((area->sx | area->dx | area->width) & 1) matroxfb_cfb4_copyarea() 297 matrox_accel_bmove_lin(minfo, minfo->fbcon.var.xres_virtual >> 1, area->sy, area->sx >> 1, area->dy, area->dx >> 1, area->height, area->width >> 1); matroxfb_cfb4_copyarea() 303 matrox_accel_bmove(minfo, minfo->fbcon.var.xres_virtual, area->sy, area->sx, area->dy, area->dx, area->height, area->width); matroxfb_copyarea() 307 int sy, int sx, int height, int width) matroxfb_accel_clear() 319 mga_outl(M_FXBNDRY, ((sx + width) << 16) | sx); matroxfb_accel_clear() 331 matroxfb_accel_clear(minfo, ((u_int32_t *)info->pseudo_palette)[rect->color], rect->dy, rect->dx, rect->height, rect->width); matroxfb_fillrect() 337 int sy, int sx, int height, int width) matroxfb_cfb4_clear() 349 if (!width) return; matroxfb_cfb4_clear() 350 width --; matroxfb_cfb4_clear() 353 if (width & 1) { matroxfb_cfb4_clear() 356 width >>= 1; matroxfb_cfb4_clear() 358 if (width) { matroxfb_cfb4_clear() 363 mga_outl(M_FXBNDRY, ((sx + width) << 16) | sx); matroxfb_cfb4_clear() 381 unsigned int uaddr = sy * step + sx + width; matroxfb_cfb4_clear() 399 matroxfb_cfb4_clear(minfo, ((u_int32_t *)info->pseudo_palette)[rect->color], rect->dy, rect->dx, rect->height, rect->width); matroxfb_cfb4_fillrect() 406 int width, int height, int yy, int xx) matroxfb_1bpp_imageblit() 420 step = (width + 7) >> 3; matroxfb_1bpp_imageblit() 424 if (width == step << 3) { matroxfb_1bpp_imageblit() 425 ar0 = height * width - 1; matroxfb_1bpp_imageblit() 428 ar0 = width - 1; matroxfb_1bpp_imageblit() 442 fxbndry = ((xx + width - 1) << 16) | xx; matroxfb_1bpp_imageblit() 508 matroxfb_1bpp_imageblit(minfo, fgx, bgx, image->data, image->width, image->height, image->dy, image->dx); matroxfb_imageblit() 207 matrox_accel_bmove(struct matrox_fb_info *minfo, int vxres, int sy, int sx, int dy, int dx, int height, int width) matrox_accel_bmove() argument 248 matrox_accel_bmove_lin(struct matrox_fb_info *minfo, int vxres, int sy, int sx, int dy, int dx, int height, int width) matrox_accel_bmove_lin() argument 306 matroxfb_accel_clear(struct matrox_fb_info *minfo, u_int32_t color, int sy, int sx, int height, int width) matroxfb_accel_clear() argument 336 matroxfb_cfb4_clear(struct matrox_fb_info *minfo, u_int32_t bgx, int sy, int sx, int height, int width) matroxfb_cfb4_clear() argument 404 matroxfb_1bpp_imageblit(struct matrox_fb_info *minfo, u_int32_t fgx, u_int32_t bgx, const u_int8_t *chardata, int width, int height, int yy, int xx) matroxfb_1bpp_imageblit() argument
|
/linux-4.1.27/arch/arm/include/asm/mach/ |
H A D | flash.h | 19 * width: width of mapped device 30 unsigned int width; member in struct:flash_platform_data
|
/linux-4.1.27/arch/arm/mach-imx/ |
H A D | clk.h | 62 void __iomem *reg, u8 shift, u8 width, 66 u8 width, void __iomem *busy_reg, u8 busy_shift, 70 void __iomem *reg, u8 shift, u8 width, 74 u8 shift, u8 width, const char **parents, 83 void __iomem *reg, u8 shift, u8 width) imx_clk_divider() 86 reg, shift, width, 0, &imx_ccm_lock); imx_clk_divider() 90 const char *parent, void __iomem *reg, u8 shift, u8 width, imx_clk_divider_flags() 94 reg, shift, width, 0, &imx_ccm_lock); imx_clk_divider_flags() 112 u8 shift, u8 width, const char **parents, int num_parents) imx_clk_mux() 116 width, 0, &imx_ccm_lock); imx_clk_mux() 120 void __iomem *reg, u8 shift, u8 width, const char **parents, imx_clk_mux_flags() 124 flags | CLK_SET_RATE_NO_REPARENT, reg, shift, width, 0, imx_clk_mux_flags() 82 imx_clk_divider(const char *name, const char *parent, void __iomem *reg, u8 shift, u8 width) imx_clk_divider() argument 89 imx_clk_divider_flags(const char *name, const char *parent, void __iomem *reg, u8 shift, u8 width, unsigned long flags) imx_clk_divider_flags() argument 111 imx_clk_mux(const char *name, void __iomem *reg, u8 shift, u8 width, const char **parents, int num_parents) imx_clk_mux() argument 119 imx_clk_mux_flags(const char *name, void __iomem *reg, u8 shift, u8 width, const char **parents, int num_parents, unsigned long flags) imx_clk_mux_flags() argument
|
H A D | clk-fixup-div.c | 19 #define div_mask(d) ((1 << (d->width)) - 1) 96 void __iomem *reg, u8 shift, u8 width, imx_clk_fixup_divider() 118 fixup_div->divider.width = width; imx_clk_fixup_divider() 95 imx_clk_fixup_divider(const char *name, const char *parent, void __iomem *reg, u8 shift, u8 width, void (*fixup)(u32 *val)) imx_clk_fixup_divider() argument
|
H A D | clk-busy.c | 82 void __iomem *reg, u8 shift, u8 width, imx_clk_busy_divider() 98 busy->div.width = width; imx_clk_busy_divider() 156 u8 width, void __iomem *busy_reg, u8 busy_shift, imx_clk_busy_mux() 172 busy->mux.mask = BIT(width) - 1; imx_clk_busy_mux() 81 imx_clk_busy_divider(const char *name, const char *parent_name, void __iomem *reg, u8 shift, u8 width, void __iomem *busy_reg, u8 busy_shift) imx_clk_busy_divider() argument 155 imx_clk_busy_mux(const char *name, void __iomem *reg, u8 shift, u8 width, void __iomem *busy_reg, u8 busy_shift, const char **parent_names, int num_parents) imx_clk_busy_mux() argument
|
/linux-4.1.27/drivers/clk/ |
H A D | clk-axm5516.c | 76 * @width: Number of bits in divider value 82 u32 width; member in struct:axxia_divclk 97 div = 1 + ((ctrl >> divclk->shift) & ((1 << divclk->width)-1)); axxia_divclk_recalc_rate() 111 * @width: Number of bits in selection value 117 u32 width; member in struct:axxia_clkmux 131 parent = (ctrl >> mux->shift) & ((1 << mux->width) - 1); axxia_clkmux_get_parent() 220 .width = 4, 234 .width = 4, 248 .width = 4, 262 .width = 4, 276 .width = 4, 290 .width = 4, 304 .width = 4, 319 .width = 4, 334 .width = 4, 355 .width = 2, 372 .width = 2, 389 .width = 2, 406 .width = 2, 423 .width = 2, 440 .width = 2, 457 .width = 2, 472 .width = 1, 487 .width = 1,
|
H A D | clk-divider.c | 33 #define div_mask(width) ((1 << (width)) - 1) 57 static unsigned int _get_maxdiv(const struct clk_div_table *table, u8 width, _get_maxdiv() argument 61 return div_mask(width); _get_maxdiv() 63 return 1 << div_mask(width); _get_maxdiv() 66 return div_mask(width) + 1; _get_maxdiv() 141 val &= div_mask(divider->width); clk_divider_recalc_rate() 276 const struct clk_div_table *table, u8 width, clk_divider_bestdiv() 286 maxdiv = _get_maxdiv(table, width, flags); clk_divider_bestdiv() 325 bestdiv = _get_maxdiv(table, width, flags); clk_divider_bestdiv() 334 u8 width, unsigned long flags) divider_round_rate() 338 div = clk_divider_bestdiv(hw, rate, prate, table, width, flags); divider_round_rate() 353 bestdiv &= div_mask(divider->width); clk_divider_round_rate() 359 divider->width, divider->flags); clk_divider_round_rate() 363 const struct clk_div_table *table, u8 width, divider_get_val() 375 return min_t(unsigned int, value, div_mask(width)); divider_get_val() 388 divider->width, divider->flags); clk_divider_set_rate() 394 val = div_mask(divider->width) << (divider->shift + 16); clk_divider_set_rate() 397 val &= ~(div_mask(divider->width) << divider->shift); clk_divider_set_rate() 417 void __iomem *reg, u8 shift, u8 width, _register_divider() 426 if (width + shift > 16) { _register_divider() 448 div->width = width; _register_divider() 471 * @width: width of the bitfield 477 void __iomem *reg, u8 shift, u8 width, clk_register_divider() 481 width, clk_divider_flags, NULL, lock); clk_register_divider() 494 * @width: width of the bitfield 501 void __iomem *reg, u8 shift, u8 width, clk_register_divider_table() 506 width, clk_divider_flags, table, lock); clk_register_divider_table() 274 clk_divider_bestdiv(struct clk_hw *hw, unsigned long rate, unsigned long *best_parent_rate, const struct clk_div_table *table, u8 width, unsigned long flags) clk_divider_bestdiv() argument 332 divider_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate, const struct clk_div_table *table, u8 width, unsigned long flags) divider_round_rate() argument 362 divider_get_val(unsigned long rate, unsigned long parent_rate, const struct clk_div_table *table, u8 width, unsigned long flags) divider_get_val() argument 415 _register_divider(struct device *dev, const char *name, const char *parent_name, unsigned long flags, void __iomem *reg, u8 shift, u8 width, u8 clk_divider_flags, const struct clk_div_table *table, spinlock_t *lock) _register_divider() argument 475 clk_register_divider(struct device *dev, const char *name, const char *parent_name, unsigned long flags, void __iomem *reg, u8 shift, u8 width, u8 clk_divider_flags, spinlock_t *lock) clk_register_divider() argument 499 clk_register_divider_table(struct device *dev, const char *name, const char *parent_name, unsigned long flags, void __iomem *reg, u8 shift, u8 width, u8 clk_divider_flags, const struct clk_div_table *table, spinlock_t *lock) clk_register_divider_table() argument
|
H A D | clk-mux.c | 124 u8 width = 0; clk_register_mux_table() local 127 width = fls(mask) - ffs(mask) + 1; clk_register_mux_table() 128 if (width + shift > 16) { clk_register_mux_table() 170 void __iomem *reg, u8 shift, u8 width, clk_register_mux() 173 u32 mask = BIT(width) - 1; clk_register_mux() 168 clk_register_mux(struct device *dev, const char *name, const char **parent_names, u8 num_parents, unsigned long flags, void __iomem *reg, u8 shift, u8 width, u8 clk_mux_flags, spinlock_t *lock) clk_register_mux() argument
|
/linux-4.1.27/drivers/dma/ |
H A D | fsldma.h | 222 #define DMA_IN(fsl_chan, addr, width) \ 224 in_be##width(addr) : in_le##width(addr)) 225 #define DMA_OUT(fsl_chan, addr, val, width) \ 227 out_be##width(addr, val) : out_le##width(addr, val)) 229 #define DMA_TO_CPU(fsl_chan, d, width) \ 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) \ 235 (__force v##width)cpu_to_be##width(c) : \ 236 (__force v##width)cpu_to_le##width(c))
|
/linux-4.1.27/drivers/video/fbdev/omap2/ |
H A D | vrfb.c | 105 static u32 get_image_width_roundup(u16 width, u8 bytespp) get_image_width_roundup() argument 107 unsigned long stride = width * bytespp; get_image_width_roundup() 138 void omap_vrfb_adjust_size(u16 *width, u16 *height, omap_vrfb_adjust_size() argument 141 *width = ALIGN(*width * bytespp, VRFB_PAGE_WIDTH) / bytespp; omap_vrfb_adjust_size() 146 u32 omap_vrfb_min_phys_size(u16 width, u16 height, u8 bytespp) omap_vrfb_min_phys_size() argument 148 unsigned long image_width_roundup = get_image_width_roundup(width, omap_vrfb_min_phys_size() 154 return (width * height * bytespp) + get_extra_physical_size( omap_vrfb_min_phys_size() 159 u16 omap_vrfb_max_height(u32 phys_size, u16 width, u8 bytespp) omap_vrfb_max_height() argument 161 unsigned long image_width_roundup = get_image_width_roundup(width, omap_vrfb_max_height() 174 height = (phys_size - extra) / (width * bytespp); omap_vrfb_max_height() 182 u16 width, u16 height, omap_vrfb_setup() 193 width, height, bytespp, yuv_mode); omap_vrfb_setup() 199 width /= 2; omap_vrfb_setup() 211 vrfb_width = ALIGN(width * bytespp, VRFB_PAGE_WIDTH) / bytespp; omap_vrfb_setup() 232 vrfb_width - width, vrfb_height - height); omap_vrfb_setup() 234 vrfb->xres = width; omap_vrfb_setup() 236 vrfb->xoffset = vrfb_width - width; omap_vrfb_setup() 181 omap_vrfb_setup(struct vrfb *vrfb, unsigned long paddr, u16 width, u16 height, unsigned bytespp, bool yuv_mode) omap_vrfb_setup() argument
|
/linux-4.1.27/arch/powerpc/include/asm/ |
H A D | btext.h | 11 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/sis/ |
H A D | sis_accel.c | 118 int src_y, int dst_x, int dst_y, int width, int height) SiS300SubsequentScreenToScreenCopy() 135 src_x += width-1; SiS300SubsequentScreenToScreenCopy() 136 dst_x += width-1; SiS300SubsequentScreenToScreenCopy() 142 SiS300SetupRect(width, height) SiS300SubsequentScreenToScreenCopy() 205 int dst_x, int dst_y, int width, int height) SiS310SubsequentScreenToScreenCopy() 244 SiS310SetupRect(width, height) SiS310SubsequentScreenToScreenCopy() 324 int width, height; fbcon_sis_fillrect() local 335 if(!rect->width || !rect->height || rect->dx >= vxres || rect->dy >= vyres) fbcon_sis_fillrect() 339 width = ((rect->dx + rect->width) > vxres) ? (vxres - rect->dx) : rect->width; fbcon_sis_fillrect() 354 SiS300SubsequentSolidFillRect(ivideo, rect->dx, rect->dy, width, height); fbcon_sis_fillrect() 361 SiS310SubsequentSolidFillRect(ivideo, rect->dx, rect->dy, width, height); fbcon_sis_fillrect() 374 int width = area->width; fbcon_sis_copyarea() local 386 if(!width || !height || fbcon_sis_copyarea() 392 if((area->sx + width) > vxres) width = vxres - area->sx; fbcon_sis_copyarea() 393 if((area->dx + width) > vxres) width = vxres - area->dx; fbcon_sis_copyarea() 409 area->dx, area->dy, width, height); fbcon_sis_copyarea() 417 area->dx, area->dy, width, height); fbcon_sis_copyarea() 117 SiS300SubsequentScreenToScreenCopy(struct sis_video_info *ivideo, int src_x, int src_y, int dst_x, int dst_y, int width, int height) SiS300SubsequentScreenToScreenCopy() argument 204 SiS310SubsequentScreenToScreenCopy(struct sis_video_info *ivideo, int src_x, int src_y, int dst_x, int dst_y, int width, int height) SiS310SubsequentScreenToScreenCopy() argument
|
/linux-4.1.27/drivers/media/platform/vivid/ |
H A D | vivid-vid-common.c | 497 if (dev->src_rect.width != dev->sink_rect.width || vivid_vid_can_loop() 555 mp->width = pix->width; fmt_sp2mp() 583 pix->width = mp->width; fmt_sp2mp_func() 596 /* v4l2_rect helper function: copy the width/height values */ rect_set_size_to() 599 r->width = size->width; rect_set_size_to() 603 /* v4l2_rect helper function: width and height of r should be >= min_size */ rect_set_min_size() 606 if (r->width < min_size->width) rect_set_min_size() 607 r->width = min_size->width; rect_set_min_size() 612 /* v4l2_rect helper function: width and height of r should be <= max_size */ rect_set_max_size() 615 if (r->width > max_size->width) rect_set_max_size() 616 r->width = max_size->width; rect_set_max_size() 629 if (r->left + r->width > boundary->width) rect_map_inside() 630 r->left = boundary->width - r->width; rect_map_inside() 638 return r1->width == r2->width && r1->height == r2->height; rect_same_size() 650 right = min(a->left + a->width, b->left + b->width); rect_intersect() 652 r.width = max(0, right - r.left); rect_intersect() 657 * v4l2_rect helper function: scale rect r by to->width / from->width and 663 if (from->width == 0 || from->height == 0) { rect_scale() 664 r->left = r->top = r->width = r->height = 0; rect_scale() 667 r->left = (((r->left - from->left) * to->width) / from->width) & ~1; rect_scale() 668 r->width = ((r->width * to->width) / from->width) & ~1; rect_scale() 680 if (r1->left >= r2->left + r2->width || rect_overlap() 681 r2->left >= r1->left + r1->width) rect_overlap() 695 unsigned w = r->width; vivid_vid_adjust_sel() 734 (r->width != w || r->height != h)) vivid_vid_adjust_sel() 736 r->width = w; vivid_vid_adjust_sel()
|
H A D | vivid-vid-cap.c | 389 dev->src_rect.width == 720 && dev->src_rect.height <= 576) vivid_get_pixel_aspect() 408 dev->src_rect.width = webcam_sizes[dev->webcam_size_idx].width; vivid_update_format_cap() 417 dev->src_rect.width = 720; vivid_update_format_cap() 430 dev->src_rect.width = bt->width; vivid_update_format_cap() 448 if (bt->width == 720 && bt->height <= 576) vivid_update_format_cap() 461 tpg_reset_source(&dev->tpg, dev->src_rect.width, dev->src_rect.height, dev->field_cap); vivid_update_format_cap() 525 mp->width = dev->fmt_cap_rect.width; vivid_g_fmt_vid_cap() 565 v4l2_find_nearest_format(&webcam_probe, mp->width, mp->height); vivid_try_fmt_vid_cap() 567 w = sz->width; vivid_try_fmt_vid_cap() 573 w = dev->src_rect.width; vivid_try_fmt_vid_cap() 580 mp->width = w; vivid_try_fmt_vid_cap() 583 struct v4l2_rect r = { 0, 0, mp->width, mp->height * factor }; vivid_try_fmt_vid_cap() 596 mp->width = r.width; vivid_try_fmt_vid_cap() 605 bytesperline = (mp->width * fmt->bit_depth[p]) >> 3; vivid_try_fmt_vid_cap() 658 struct v4l2_rect r = { 0, 0, mp->width, mp->height }; vivid_s_fmt_vid_cap() 668 r.width / MAX_ZOOM, vivid_s_fmt_vid_cap() 673 r.width * MAX_ZOOM, vivid_s_fmt_vid_cap() 683 compose->width / MAX_ZOOM, vivid_s_fmt_vid_cap() 688 compose->width * MAX_ZOOM, vivid_s_fmt_vid_cap() 719 if (webcam_sizes[i].width == mp->width && vivid_s_fmt_vid_cap() 727 struct v4l2_rect r = { 0, 0, mp->width, mp->height }; vivid_s_fmt_vid_cap() 734 dev->fmt_cap_rect.width = mp->width; vivid_s_fmt_vid_cap() 889 s->r.width * MAX_ZOOM, vivid_vid_cap_s_selection() 894 s->r.width / MAX_ZOOM, vivid_vid_cap_s_selection() 945 dev->src_rect.width * MAX_ZOOM, vivid_vid_cap_s_selection() 953 s->r.width / MAX_ZOOM, vivid_vid_cap_s_selection() 958 s->r.width * MAX_ZOOM, vivid_vid_cap_s_selection() 979 if (dev->bitmap_cap && (compose->width != s->r.width || vivid_vid_cap_s_selection() 1051 win->w.width = compose->width; vidioc_g_fmt_vid_overlay() 1061 ((compose->width + 7) / 8) * compose->height)) vidioc_g_fmt_vid_overlay() 1084 -dev->fb_cap.fmt.width, dev->fb_cap.fmt.width); vidioc_try_fmt_vid_overlay() 1087 win->w.width = compose->width; vidioc_try_fmt_vid_overlay() 1106 r->left = clamp_t(u32, r->left, 0, dev->fb_cap.fmt.width - 1); vidioc_try_fmt_vid_overlay() 1107 r->width = clamp_t(u32, r->width, 1, dev->fb_cap.fmt.width - r->left); vidioc_try_fmt_vid_overlay() 1137 unsigned bitmap_size = ((compose->width + 7) / 8) * compose->height; vidioc_s_fmt_vid_overlay() 1226 if (a->fmt.width < 48 || a->fmt.height < 32) vivid_vid_cap_s_fbuf() 1231 if (a->fmt.bytesperline < (a->fmt.width * fmt->bit_depth[0]) / 8) vivid_vid_cap_s_fbuf() 1239 -dev->fb_cap.fmt.width, dev->fb_cap.fmt.width); vivid_vid_cap_s_fbuf() 1362 if (dev->src_rect.width == 720 && dev->src_rect.height <= 576) vidioc_s_input() 1581 static void find_aspect_ratio(u32 width, u32 height, find_aspect_ratio() argument 1584 if (!(height % 3) && ((height * 4 / 3) == width)) { find_aspect_ratio() 1587 } else if (!(height % 9) && ((height * 16 / 9) == width)) { find_aspect_ratio() 1590 } else if (!(height % 10) && ((height * 16 / 10) == width)) { find_aspect_ratio() 1593 } else if (!(height % 4) && ((height * 5 / 4) == width)) { find_aspect_ratio() 1596 } else if (!(height % 9) && ((height * 15 / 9) == width)) { find_aspect_ratio() 1630 find_aspect_ratio(bt->width, bt->height, valid_cvt_gtf_timings() 1756 if (fival->width < MIN_WIDTH || fival->width > MAX_WIDTH * MAX_ZOOM) vidioc_enum_frameintervals() 1766 if (fival->width == webcam_sizes[i].width && vidioc_enum_frameintervals()
|
H A D | vivid-tpg.c | 102 tpg->crop.width = tpg->compose.width = w; tpg_init() 373 tpg->scaled_width = (tpg->src_width * tpg->compose.width + tpg_s_crop_compose() 374 tpg->crop.width - 1) / tpg->crop.width; tpg_s_crop_compose() 383 void tpg_reset_source(struct tpg_data *tpg, unsigned width, unsigned height, tpg_reset_source() argument 388 tpg->src_width = width; tpg_reset_source() 394 tpg->scaled_width = width; tpg_reset_source() 396 tpg->crop.width = width; tpg_reset_source() 399 tpg->compose.width = width; tpg_reset_source() 402 tpg->bytesperline[p] = (width * tpg->twopixelsize[p]) / tpg_reset_source() 1206 tpg->square.width = sq_w; tpg_calculate_square_border() 1212 tpg->square.width = ana_sq_w; tpg_calculate_square_border() 1214 tpg->square.left = (w - tpg->square.width) / 2; tpg_calculate_square_border() 1222 tpg->border.width = w; tpg_calculate_square_border() 1230 tpg->border.width = ((4 * h) / 3) & ~1; tpg_calculate_square_border() 1231 if (((w - tpg->border.width) / 2) & ~1) tpg_calculate_square_border() 1232 tpg->border.width -= 2; tpg_calculate_square_border() 1233 tpg->border.left = (w - tpg->border.width) / 2; tpg_calculate_square_border() 1246 tpg->border.width = ((14 * h) / 9) & ~1; tpg_calculate_square_border() 1247 if (((w - tpg->border.width) / 2) & ~1) tpg_calculate_square_border() 1248 tpg->border.width -= 2; tpg_calculate_square_border() 1249 tpg->border.left = (w - tpg->border.width) / 2; tpg_calculate_square_border() 1262 tpg->border.width = ((16 * h) / 9) & ~1; tpg_calculate_square_border() 1263 if (((w - tpg->border.width) / 2) & ~1) tpg_calculate_square_border() 1264 tpg->border.width -= 2; tpg_calculate_square_border() 1265 tpg->border.left = (w - tpg->border.width) / 2; tpg_calculate_square_border() 1412 if (y + 16 >= tpg->compose.height || x + 8 >= tpg->compose.width) tpg_gen_text() 1415 if (len > (tpg->compose.width - x) / 8) tpg_gen_text() 1416 len = (tpg->compose.width - x) / 8; tpg_gen_text() 1420 x = tpg->compose.width - x - 8; tpg_gen_text() 1724 if (params->wss_width > tpg->crop.width) tpg_fill_params_extras() 1725 params->wss_width = tpg->crop.width; tpg_fill_params_extras() 1732 if (left_pillar_width > tpg->crop.width) tpg_fill_params_extras() 1733 left_pillar_width = tpg->crop.width; tpg_fill_params_extras() 1738 if (tpg->crop.left + tpg->crop.width > tpg_fill_params_extras() 1739 tpg->border.left + tpg->border.width) { tpg_fill_params_extras() 1741 tpg->border.left + tpg->border.width - tpg->crop.left; tpg_fill_params_extras() 1787 b->left < c->left + c->width) tpg_fill_plane_extras() 1790 if (b->left + b->width > c->left && tpg_fill_plane_extras() 1791 b->left + b->width <= c->left + c->width) tpg_fill_plane_extras() 1804 sq->left < c->left + c->width && tpg_fill_plane_extras() 1805 sq->left + sq->width >= c->left) { tpg_fill_plane_extras() 1807 unsigned width = sq->width; tpg_fill_plane_extras() local 1810 width -= c->left - left; tpg_fill_plane_extras() 1813 if (c->left + c->width < left + width) tpg_fill_plane_extras() 1814 width -= left + width - c->left - c->width; tpg_fill_plane_extras() 1817 width = tpg_hscale_div(tpg, p, width); tpg_fill_plane_extras() 1818 memcpy(vbuf + left, tpg->contrast_line[p], width); tpg_fill_plane_extras() 1821 unsigned offset = tpg_hdiv(tpg, p, tpg->compose.width / 3); tpg_fill_plane_extras() 1836 unsigned offset = tpg_hdiv(tpg, p, tpg->compose.width * 2 / 3); tpg_fill_plane_extras() 2013 params.img_width = tpg_hdiv(tpg, p, tpg->compose.width); tpg_fill_plane_buffer()
|
H A D | vivid-vid-out.c | 228 dev->sink_rect.width = 720; vivid_update_format_out() 241 dev->sink_rect.width = bt->width; vivid_update_format_out() 252 if (bt->width == 720 && bt->height <= 576) vivid_update_format_out() 271 (dev->sink_rect.width * dev->fmt_out->bit_depth[p]) / 8; vivid_update_format_out() 303 dev->sink_rect.width == 720 && dev->sink_rect.height <= 576) vivid_get_pixel_aspect() 318 mp->width = dev->fmt_out_rect.width; vivid_g_fmt_vid_out() 366 w = dev->sink_rect.width; vivid_try_fmt_vid_out() 372 mp->width = w; vivid_try_fmt_vid_out() 375 struct v4l2_rect r = { 0, 0, mp->width, mp->height * factor }; vivid_try_fmt_vid_out() 388 mp->width = r.width; vivid_try_fmt_vid_out() 395 bytesperline = (mp->width * fmt->bit_depth[0]) >> 3; vivid_try_fmt_vid_out() 418 } else if (bt->width == 720 && bt->height <= 576) { vivid_try_fmt_vid_out() 448 mp->width != dev->fmt_out_rect.width || vivid_s_fmt_vid_out() 469 struct v4l2_rect r = { 0, 0, mp->width, mp->height }; vivid_s_fmt_vid_out() 479 r.width / MAX_ZOOM, vivid_s_fmt_vid_out() 484 r.width * MAX_ZOOM, vivid_s_fmt_vid_out() 494 crop->width / MAX_ZOOM, vivid_s_fmt_vid_out() 499 crop->width * MAX_ZOOM, vivid_s_fmt_vid_out() 528 struct v4l2_rect r = { 0, 0, mp->width, mp->height }; vivid_s_fmt_vid_out() 535 dev->fmt_out_rect.width = mp->width; vivid_s_fmt_vid_out() 687 dev->sink_rect.width * MAX_ZOOM, vivid_vid_out_s_selection() 695 s->r.width / MAX_ZOOM, vivid_vid_out_s_selection() 700 s->r.width * MAX_ZOOM, vivid_vid_out_s_selection() 738 s->r.width * MAX_ZOOM, vivid_vid_out_s_selection() 743 s->r.width / MAX_ZOOM, vivid_vid_out_s_selection() 779 if (dev->bitmap_out && (compose->width != s->r.width || vivid_vid_out_s_selection() 830 win->w.width = compose->width; vidioc_g_fmt_vid_out_overlay() 842 ((dev->compose_out.width + 7) / 8) * dev->compose_out.height)) vidioc_g_fmt_vid_out_overlay() 867 win->w.width = compose->width; vidioc_try_fmt_vid_out_overlay() 888 r->width = clamp_t(u32, r->width, 1, dev->display_width - r->left); vidioc_try_fmt_vid_out_overlay() 918 unsigned bitmap_size = ((compose->width + 7) / 8) * compose->height; vidioc_s_fmt_vid_out_overlay() 972 a->fmt.width = dev->display_width; vivid_vid_out_g_fbuf()
|
H A D | vivid-kthread-cap.c | 75 unsigned stride = (dev->compose_out.width + 7) / 8; copy_pix() 87 fb_x >= r->left && fb_x < r->left + r->width) copy_pix() 112 unsigned width, unsigned pixsize) blend_line() 116 for (x = 0; x < width; x++, vcapbuf += pixsize, vosdbuf += pixsize) { blend_line() 184 dev->compose_out.width, dev->compose_out.height vivid_precalc_copy_rects() 199 dev->loop_vid_copy.width, dev->loop_vid_copy.height, vivid_precalc_copy_rects() 201 dev->loop_vid_out.width, dev->loop_vid_out.height, vivid_precalc_copy_rects() 203 dev->loop_vid_cap.width, dev->loop_vid_cap.height, vivid_precalc_copy_rects() 224 dev->loop_fb_copy.width, dev->loop_fb_copy.height, vivid_precalc_copy_rects() 226 dev->loop_vid_overlay.width, dev->loop_vid_overlay.height, vivid_precalc_copy_rects() 228 dev->loop_vid_overlay_cap.width, dev->loop_vid_overlay_cap.height, vivid_precalc_copy_rects() 254 unsigned img_width = tpg_hdiv(tpg, p, dev->compose_cap.width); vivid_copy_buffer() 297 if (dev->loop_vid_copy.width == 0 || dev->loop_vid_copy.height == 0) { vivid_copy_buffer() 308 dev->loop_vid_overlay.width && dev->loop_vid_overlay.height) { vivid_copy_buffer() 318 vid_cap_right = tpg_hdiv(tpg, p, dev->loop_vid_cap.left + dev->loop_vid_cap.width); vivid_copy_buffer() 320 quick = dev->loop_vid_out.width == dev->loop_vid_cap.width; vivid_copy_buffer() 350 tpg_hdiv(tpg, p, dev->loop_vid_cap.width)); vivid_copy_buffer() 355 tpg_hdiv(tpg, p, dev->loop_vid_cap.width)); vivid_copy_buffer() 360 tpg_hdiv(tpg, p, dev->loop_vid_out.width), vivid_copy_buffer() 361 tpg_hdiv(tpg, p, dev->loop_vid_cap.width), vivid_copy_buffer() 374 dev->loop_vid_out.width, dev->loop_vid_copy.width, vivid_copy_buffer() 380 dev->loop_vid_overlay.width, twopixsize / 2); vivid_copy_buffer() 383 osd, (dev->loop_vid_overlay.width * twopixsize) / 2); vivid_copy_buffer() 385 dev->loop_vid_copy.width, dev->loop_vid_cap.width, vivid_copy_buffer() 390 tpg_hdiv(tpg, p, dev->loop_vid_cap.width)); vivid_copy_buffer() 505 dev->src_rect.width, dev->src_rect.height, dev->input); vivid_fillbuff() 574 unsigned stride = (dev->compose_cap.width + 7) / 8; valid_pix() 588 fb_x >= r->left && fb_x < r->left + r->width) valid_pix() 604 unsigned img_width = dev->compose_cap.width; vivid_overlay() 630 w = dev->fb_cap.fmt.width - x; vivid_overlay() 110 blend_line(struct vivid_dev *dev, unsigned y_offset, unsigned x_offset, u8 *vcapbuf, const u8 *vosdbuf, unsigned width, unsigned pixsize) blend_line() argument
|
/linux-4.1.27/drivers/acpi/acpica/ |
H A D | utprint.c | 66 u8 base, s32 width, s32 precision, u8 type); 230 * width - Field width 243 u8 base, s32 width, s32 precision, u8 type) acpi_ut_format_number() 275 width--; acpi_ut_format_number() 278 width--; acpi_ut_format_number() 281 width--; acpi_ut_format_number() 285 width--; acpi_ut_format_number() 287 width--; acpi_ut_format_number() 302 width -= precision; acpi_ut_format_number() 307 while (--width >= 0) { acpi_ut_format_number() 322 while (--width >= 0) { acpi_ut_format_number() 334 while (--width >= 0) { acpi_ut_format_number() 362 s32 width; acpi_ut_vsnprintf() local 405 /* Process width */ acpi_ut_vsnprintf() 407 width = -1; acpi_ut_vsnprintf() 410 width = (s32) number; acpi_ut_vsnprintf() 413 width = va_arg(args, int); acpi_ut_vsnprintf() 414 if (width < 0) { acpi_ut_vsnprintf() 415 width = -width; acpi_ut_vsnprintf() 459 while (--width > 0) { acpi_ut_vsnprintf() 470 while (--width > 0) { acpi_ut_vsnprintf() 484 while (length < width--) { acpi_ut_vsnprintf() 495 while (length < width--) { acpi_ut_vsnprintf() 526 if (width == -1) { acpi_ut_vsnprintf() 527 width = 2 * sizeof(void *); acpi_ut_vsnprintf() 534 width, precision, type); acpi_ut_vsnprintf() 573 width, precision, type); acpi_ut_vsnprintf() 240 acpi_ut_format_number(char *string, char *end, u64 number, u8 base, s32 width, s32 precision, u8 type) acpi_ut_format_number() argument
|
H A D | exprep.c | 76 * DESCRIPTION: Generate an optimal access width for fields defined with the 82 * of this access width must be deferred until the region length has 120 * Iterative search for the maximum access width that is both aligned acpi_ex_generate_access() 130 * 2) When the Access width is greater than the field_byte_length, we acpi_ex_generate_access() 189 * This width goes beyond the end-of-region, back off to acpi_ex_generate_access() 193 "Backing off to previous optimal access width of %u\n", acpi_ex_generate_access() 201 * just use max access width acpi_ex_generate_access() 204 "Cannot access field in one operation, using width 8\n")); acpi_ex_generate_access() 344 * two pieces of information - the width of each field access and the acpi_ex_prep_common_field_object() 347 * For any_acc, the access_bit_width is the largest width that is both acpi_ex_prep_common_field_object() 363 /* Setup width (access granularity) fields (values are: 1, 2, 4, 8) */ acpi_ex_prep_common_field_object() 370 * region. It is the byte address of the first *datum* (field-width data acpi_ex_prep_common_field_object() 498 /* Maximum byte width supported is 255 */ acpi_ex_prep_field_value() 582 * width of the Data register, as below: acpi_ex_prep_field_value()
|
H A D | hwxface.c | 89 * The ACPI spec requires the reset register width to be 8, so we acpi_reset() 92 * BIOS code with bad register width values to go unnoticed. acpi_reset() 131 u32 width; ACPI_EXPORT_SYMBOL() local 164 width = reg->bit_width; ACPI_EXPORT_SYMBOL() 165 if (width == 64) { ACPI_EXPORT_SYMBOL() 166 width = 32; /* Break into two 32-bit transfers */ ACPI_EXPORT_SYMBOL() 170 address, &value_lo, width); ACPI_EXPORT_SYMBOL() 193 "Read: %8.8X%8.8X width %2d from %8.8X%8.8X (%s)\n", ACPI_EXPORT_SYMBOL() 217 u32 width; ACPI_EXPORT_SYMBOL() local 242 width = reg->bit_width; ACPI_EXPORT_SYMBOL() 243 if (width == 64) { ACPI_EXPORT_SYMBOL() 244 width = 32; /* Break into two 32-bit transfers */ ACPI_EXPORT_SYMBOL() 249 width); ACPI_EXPORT_SYMBOL() 265 "Wrote: %8.8X%8.8X width %2d to %8.8X%8.8X (%s)\n", ACPI_EXPORT_SYMBOL()
|
/linux-4.1.27/drivers/clk/socfpga/ |
H A D | clk.h | 30 #define div_mask(width) ((1 << (width)) - 1) 47 u32 width; /* only valid if div_reg != 0 */ member in struct:socfpga_gate_clk 57 u32 width; /* only valid if div_reg != 0 */ member in struct:socfpga_periph_clk
|
/linux-4.1.27/drivers/clk/qcom/ |
H A D | clk-regmap-divider.c | 31 return divider_round_rate(hw, rate, prate, NULL, divider->width, div_round_rate() 42 div = divider_get_val(rate, parent_rate, NULL, divider->width, div_set_rate() 46 (BIT(divider->width) - 1) << divider->shift, div_set_rate() 59 div &= BIT(divider->width) - 1; div_recalc_rate()
|
H A D | clk-regmap-divider.h | 23 u32 width; member in struct:clk_regmap_div
|
H A D | clk-regmap-mux.h | 23 u32 width; member in struct:clk_regmap_mux
|
H A D | clk-regmap-mux.c | 30 unsigned int mask = GENMASK(mux->width - 1, 0); mux_get_parent() 45 unsigned int mask = GENMASK(mux->width + mux->shift - 1, mux->shift); mux_set_parent()
|
/linux-4.1.27/arch/mips/alchemy/devboards/ |
H A D | platform.h | 18 int __init db1x_register_norflash(unsigned long size, int width,
|
/linux-4.1.27/include/linux/usb/ |
H A D | isp1760.h | 11 unsigned bus_width_16:1; /* 16/32-bit data bus width */
|
/linux-4.1.27/arch/blackfin/mach-bf548/include/mach/ |
H A D | bf54x-lq043.h | 23 int width; member in struct:bfin_bf54xfb_mach_info
|
/linux-4.1.27/arch/mips/lib/ |
H A D | dump_tlb.c | 74 int width = 8; dump_tlb() local 76 int width = 11; dump_tlb() 87 width, (entryhi & ~0x1fffUL), dump_tlb() 90 width, dump_tlb() 96 width, dump_tlb()
|
/linux-4.1.27/tools/perf/ui/browsers/ |
H A D | map.c | 26 int width; map_browser__write() local 33 width = browser->width - ((mb->addrlen * 2) + 4); map_browser__write() 34 if (width > 0) map_browser__write() 35 slsmg_write_nstring(sym->name, width); map_browser__write()
|
H A D | scripts.c | 84 slsmg_write_nstring(sline->line, browser->width); script_browser__write() 165 if (script.b.width < retlen) script_browse() 166 script.b.width = retlen; script_browse() 173 if (script.b.width > AVERAGE_LINE_LEN) script_browse() 174 script.b.width = AVERAGE_LINE_LEN; script_browse()
|
/linux-4.1.27/drivers/pinctrl/ |
H A D | pinctrl-tegra.c | 306 s8 *bank, s16 *reg, s8 *bit, s8 *width) tegra_pinconf_reg() 313 *width = 2; tegra_pinconf_reg() 319 *width = 1; tegra_pinconf_reg() 325 *width = 1; tegra_pinconf_reg() 331 *width = 1; tegra_pinconf_reg() 337 *width = 1; tegra_pinconf_reg() 343 *width = 1; tegra_pinconf_reg() 349 *width = 1; tegra_pinconf_reg() 360 *width = 1; tegra_pinconf_reg() 371 *width = 1; tegra_pinconf_reg() 377 *width = 2; tegra_pinconf_reg() 383 *width = g->drvdn_width; tegra_pinconf_reg() 389 *width = g->drvup_width; tegra_pinconf_reg() 395 *width = g->slwf_width; tegra_pinconf_reg() 401 *width = g->slwr_width; tegra_pinconf_reg() 412 *width = 2; tegra_pinconf_reg() 464 s8 bank, bit, width; tegra_pinconf_group_get() local 471 &width); tegra_pinconf_group_get() 476 mask = (1 << width) - 1; tegra_pinconf_group_get() 493 s8 bank, bit, width; tegra_pinconf_group_set() local 504 &width); tegra_pinconf_group_set() 519 if (width == 1) tegra_pinconf_group_set() 523 mask = (1 << width) - 1; tegra_pinconf_group_set() 527 configs[i], arg, width); tegra_pinconf_group_set() 561 s8 bank, bit, width; tegra_pinconf_group_dbg_show() local 569 &bank, ®, &bit, &width); tegra_pinconf_group_dbg_show() 575 val &= (1 << width) - 1; tegra_pinconf_group_dbg_show() 302 tegra_pinconf_reg(struct tegra_pmx *pmx, const struct tegra_pingroup *g, enum tegra_pinconf_param param, bool report_err, s8 *bank, s16 *reg, s8 *bit, s8 *width) tegra_pinconf_reg() argument
|
/linux-4.1.27/drivers/media/i2c/soc_camera/ |
H A D | tw9910.c | 223 unsigned short width; member in struct:tw9910_scale_ctrl 241 .width = 640, 248 .width = 720, 255 .width = 320, 262 .width = 360, 269 .width = 160, 276 .width = 180, 286 .width = 768, 293 .width = 720, 300 .width = 384, 307 .width = 360, 314 .width = 192, 321 .width = 180, 427 u32 width, u32 height) tw9910_select_norm() 445 tmp = abs(width - scale[i].width) + tw9910_select_norm() 488 priv->scale->width, tw9910_s_stream() 568 static int tw9910_set_frame(struct v4l2_subdev *sd, u32 *width, u32 *height) tw9910_set_frame() argument 578 priv->scale = tw9910_select_norm(priv->norm, *width, *height); tw9910_set_frame() 588 * set bus width tw9910_set_frame() 640 *width = priv->scale->width; tw9910_set_frame() 661 a->c.width = 640; tw9910_g_crop() 664 a->c.width = 768; tw9910_g_crop() 680 a->bounds.width = 640; tw9910_cropcap() 683 a->bounds.width = 768; tw9910_cropcap() 706 mf->width = priv->scale->width; tw9910_g_fmt() 718 u32 width = mf->width, height = mf->height; tw9910_s_fmt() local 732 ret = tw9910_set_frame(sd, &width, &height); tw9910_s_fmt() 734 mf->width = width; tw9910_s_fmt() 760 scale = tw9910_select_norm(priv->norm, mf->width, mf->height); tw9910_try_fmt() 764 mf->width = scale->width; tw9910_try_fmt() 777 * tw9910 only use 8 or 16 bit bus width tw9910_video_probe() 781 dev_err(&client->dev, "bus width error\n"); tw9910_video_probe() 426 tw9910_select_norm(v4l2_std_id norm, u32 width, u32 height) tw9910_select_norm() argument
|
H A D | mt9m111.c | 211 unsigned int width; /* output */ member in struct:mt9m111 320 unsigned int width, unsigned int height) mt9m111_setup_rect_ctx() 323 int ret = mt9m111_reg_write(client, ctx->reducer_xzoom, rect->width); mt9m111_setup_rect_ctx() 327 ret = mt9m111_reg_write(client, ctx->reducer_xsize, width); mt9m111_setup_rect_ctx() 334 int width, int height, u32 code) mt9m111_setup_geometry() 344 ret = reg_write(WINDOW_WIDTH, rect->width); mt9m111_setup_geometry() 352 rect, width, height); mt9m111_setup_geometry() 355 rect, width, height); mt9m111_setup_geometry() 359 __func__, code, rect->width, rect->height, rect->left, rect->top, mt9m111_setup_geometry() 360 width, height, ret); mt9m111_setup_geometry() 390 int width, height; mt9m111_s_crop() local 399 rect.width = ALIGN(rect.width, 2); mt9m111_s_crop() 405 soc_camera_limit_side(&rect.left, &rect.width, mt9m111_s_crop() 411 width = min(mt9m111->width, rect.width); mt9m111_s_crop() 414 ret = mt9m111_setup_geometry(mt9m111, &rect, width, height, mt9m111->fmt->code); mt9m111_s_crop() 417 mt9m111->width = width; mt9m111_s_crop() 441 a->bounds.width = MT9M111_MAX_WIDTH; mt9m111_cropcap() 455 mf->width = mt9m111->width; mt9m111_g_fmt() 553 rect->width = ALIGN(rect->width, 2); mt9m111_try_fmt() 559 mf->width = rect->width; mt9m111_try_fmt() 563 if (mf->width > rect->width) mt9m111_try_fmt() 564 mf->width = rect->width; mt9m111_try_fmt() 570 mf->width, mf->height, fmt->code); mt9m111_try_fmt() 590 ret = mt9m111_setup_geometry(mt9m111, rect, mf->width, mf->height, mf->code); mt9m111_s_fmt() 594 mt9m111->width = mf->width; mt9m111_s_fmt() 744 mt9m111->width, mt9m111->height, mt9m111->fmt->code); mt9m111_restore_state() 984 mt9m111->rect.width = MT9M111_MAX_WIDTH; mt9m111_probe() 318 mt9m111_setup_rect_ctx(struct mt9m111 *mt9m111, struct mt9m111_context *ctx, struct v4l2_rect *rect, unsigned int width, unsigned int height) mt9m111_setup_rect_ctx() argument 333 mt9m111_setup_geometry(struct mt9m111 *mt9m111, struct v4l2_rect *rect, int width, int height, u32 code) mt9m111_setup_geometry() argument
|
H A D | ov5642.c | 740 int width = priv->crop_rect.width; ov5642_set_resolution() local 744 int start_x = (OV5642_SENSOR_SIZE_X - width) / 2; ov5642_set_resolution() 761 ret = reg_write16(client, REG_WINDOW_WIDTH_HIGH, width); ov5642_set_resolution() 766 priv->crop_rect.width = width; ov5642_set_resolution() 770 ret = reg_write16(client, REG_OUT_WIDTH_HIGH, width); ov5642_set_resolution() 774 /* Total width = output size + blanking */ ov5642_set_resolution() 782 ret = reg_write16(client, REG_AVG_WINDOW_END_X_HIGH, width); ov5642_set_resolution() 796 mf->width = priv->crop_rect.width; ov5642_try_fmt() 835 mf->width = priv->crop_rect.width; ov5642_g_fmt() 859 v4l_bound_align_image(&rect.width, 48, OV5642_MAX_WIDTH, 1, ov5642_s_crop() 862 priv->crop_rect.width = rect.width; ov5642_s_crop() 864 priv->total_width = rect.width + BLANKING_EXTRA_WIDTH; ov5642_s_crop() 868 priv->crop_rect.width = rect.width; ov5642_s_crop() 898 a->bounds.width = OV5642_MAX_WIDTH; ov5642_cropcap() 1023 priv->crop_rect.width = OV5642_DEFAULT_WIDTH; ov5642_probe()
|
H A D | ov9740.c | 547 static void ov9740_res_roundup(u32 *width, u32 *height) ov9740_res_roundup() argument 550 *width = ALIGN(*width, 4); ov9740_res_roundup() 553 if (*width > OV9740_MAX_WIDTH) ov9740_res_roundup() 554 *width = OV9740_MAX_WIDTH; ov9740_res_roundup() 561 static int ov9740_set_res(struct i2c_client *client, u32 width, u32 height) ov9740_set_res() argument 572 if ((width != OV9740_MAX_WIDTH) || (height != OV9740_MAX_HEIGHT)) ov9740_set_res() 578 * chosen resolution, we can either use the full width of the sensor, ov9740_set_res() 582 if ((OV9740_MAX_WIDTH * height) > (OV9740_MAX_HEIGHT * width)) { ov9740_set_res() 583 scale_input_x = (OV9740_MAX_HEIGHT * width) / height; ov9740_set_res() 587 scale_input_y = (OV9740_MAX_WIDTH * height) / width; ov9740_set_res() 622 ret = ov9740_reg_write(client, OV9740_X_OUTPUT_SIZE_HI, width >> 8); ov9740_set_res() 625 ret = ov9740_reg_write(client, OV9740_X_OUTPUT_SIZE_LO, width & 0xff); ov9740_set_res() 649 (scale_input_x - width) >> 8); ov9740_set_res() 653 (scale_input_x - width) & 0xff); ov9740_set_res() 680 ov9740_res_roundup(&mf->width, &mf->height); ov9740_s_fmt() 695 ret = ov9740_set_res(client, mf->width, mf->height); ov9740_s_fmt() 710 ov9740_res_roundup(&mf->width, &mf->height); ov9740_try_fmt() 734 a->bounds.width = OV9740_MAX_WIDTH; ov9740_cropcap() 748 a->c.width = OV9740_MAX_WIDTH; ov9740_g_crop()
|
/linux-4.1.27/drivers/gpu/drm/sti/ |
H A D | sti_cursor.c | 46 * @width: cursor width 54 unsigned int width; member in struct:sti_cursor 86 for (j = 0; j < cursor->width; j++) { sti_cursor_argb8888_to_clut8() 121 (cursor->width != layer->src_w) || sti_cursor_prepare_layer() 123 cursor->width = layer->src_w; sti_cursor_prepare_layer() 132 cursor->pixmap.size = cursor->width * cursor->height; sti_cursor_prepare_layer() 176 writel(cursor->width, layer->regs + CUR_PMP); sti_cursor_commit_layer() 177 writel(cursor->height << 16 | cursor->width, layer->regs + CUR_SIZE); sti_cursor_commit_layer()
|
/linux-4.1.27/include/media/davinci/ |
H A D | vpbe_osd.h | 205 * @H_WIDTH_1: horizontal line width is 1 pixel 206 * @H_WIDTH_4: horizontal line width is 4 pixels 207 * @H_WIDTH_8: horizontal line width is 8 pixels 208 * @H_WIDTH_12: horizontal line width is 12 pixels 209 * @H_WIDTH_16: horizontal line width is 16 pixels 210 * @H_WIDTH_20: horizontal line width is 20 pixels 211 * @H_WIDTH_24: horizontal line width is 24 pixels 212 * @H_WIDTH_28: horizontal line width is 28 pixels 227 * @V_WIDTH_1: vertical line width is 1 line 228 * @V_WIDTH_2: vertical line width is 2 lines 229 * @V_WIDTH_4: vertical line width is 4 lines 230 * @V_WIDTH_6: vertical line width is 6 lines 231 * @V_WIDTH_8: vertical line width is 8 lines 232 * @V_WIDTH_10: vertical line width is 10 lines 233 * @V_WIDTH_12: vertical line width is 12 lines 234 * @V_WIDTH_14: vertical line width is 14 lines 254 * @h_width: horizontal line width 255 * @v_width: vertical line width
|
/linux-4.1.27/drivers/gpu/drm/vmwgfx/ |
H A D | svga_overlay.h | 138 uint32 *width, /* IN / OUT */ VMwareVideoGetAttributes() 146 *width = (*width + 1) & ~1; VMwareVideoGetAttributes() 155 *size = (*width + 3) & ~3; VMwareVideoGetAttributes() 167 tmp = ((*width >> 1) + 3) & ~3; VMwareVideoGetAttributes() 185 *size = *width * 2; VMwareVideoGetAttributes() 137 VMwareVideoGetAttributes(const SVGAOverlayFormat format, uint32 *width, uint32 *height, uint32 *size, uint32 *pitches, uint32 *offsets) VMwareVideoGetAttributes() argument
|
/linux-4.1.27/sound/core/oss/ |
H A D | pcm_plugin.c | 52 ssize_t width; snd_pcm_plugin_alloc() local 62 if ((width = snd_pcm_format_physical_width(format->format)) < 0) snd_pcm_plugin_alloc() 63 return width; snd_pcm_plugin_alloc() 64 size = frames * format->channels * width; snd_pcm_plugin_alloc() 84 c->area.first = channel * width; snd_pcm_plugin_alloc() 85 c->area.step = format->channels * width; snd_pcm_plugin_alloc() 97 c->area.step = width; snd_pcm_plugin_alloc() 321 unsigned int width = snd_pcm_format_width(format); snd_pcm_plug_slave_format() local 332 if (w >= width) snd_pcm_plug_slave_format() 333 badness = w - width; snd_pcm_plug_slave_format() 335 badness = width - w + 32; snd_pcm_plug_slave_format() 555 int width, nchannels, channel; snd_pcm_plug_client_channels_buf() local 569 if ((width = snd_pcm_format_physical_width(format->format)) < 0) snd_pcm_plug_client_channels_buf() 570 return width; snd_pcm_plug_client_channels_buf() 580 v->area.first = channel * width; snd_pcm_plug_client_channels_buf() 581 v->area.step = nchannels * width; snd_pcm_plug_client_channels_buf() 655 int width; snd_pcm_area_silence() local 660 width = snd_pcm_format_physical_width(format); snd_pcm_area_silence() 661 if (width <= 0) snd_pcm_area_silence() 663 if (dst_area->step == (unsigned int) width && width >= 8) snd_pcm_area_silence() 669 if (width == 4) { snd_pcm_area_silence() 686 width /= 8; snd_pcm_area_silence() 688 memcpy(dst, silence, width); snd_pcm_area_silence() 701 int width; snd_pcm_area_copy() local 709 width = snd_pcm_format_physical_width(format); snd_pcm_area_copy() 710 if (width <= 0) snd_pcm_area_copy() 712 if (src_area->step == (unsigned int) width && snd_pcm_area_copy() 713 dst_area->step == (unsigned int) width && width >= 8) { snd_pcm_area_copy() 714 size_t bytes = samples * width / 8; snd_pcm_area_copy() 720 if (width == 4) { snd_pcm_area_copy() 750 width /= 8; snd_pcm_area_copy() 752 memcpy(dst, src, width); snd_pcm_area_copy()
|
H A D | copy.c | 68 int width; snd_pcm_plugin_build_copy() local 81 width = snd_pcm_format_physical_width(src_format->format); snd_pcm_plugin_build_copy() 82 if (snd_BUG_ON(width <= 0)) snd_pcm_plugin_build_copy()
|
/linux-4.1.27/drivers/media/pci/solo6x10/ |
H A D | solo6x10-enc.c | 36 unsigned long width; solo_capture_config() local 59 width = solo_dev->video_hsize; solo_capture_config() 62 SOLO_DIM_H_MB_NUM(width / 16) | solo_capture_config() 67 width = solo_dev->video_hsize / 2; solo_capture_config() 70 SOLO_DIM_H_MB_NUM(width / 16) | solo_capture_config() 75 width = solo_dev->video_hsize / 2; solo_capture_config() 78 SOLO_DIM_H_MB_NUM(width / 16) | solo_capture_config() 83 width = solo_dev->video_hsize / 3; solo_capture_config() 86 SOLO_DIM_H_MB_NUM(width / 16) | solo_capture_config() 91 width = solo_dev->video_hsize / 4; solo_capture_config() 94 SOLO_DIM_H_MB_NUM(width / 16) | solo_capture_config() 99 width = VI_PROG_HSIZE; solo_capture_config() 102 SOLO_DIM_H_MB_NUM(width / 16) | solo_capture_config()
|
/linux-4.1.27/drivers/media/platform/exynos4-is/ |
H A D | fimc-is-errno.h | 142 /* invalid width (DRC: 128~8192, FD: 32~8190) */ 146 /* invalid bit-width (DRC: 8~12bits, FD: 8bit) */ 152 /* invalid width (DRC: 128~8192, FD: 32~8190) */ 158 /* invalid bit-width (DRC: 8~12bit, FD: 8bit) */ 166 /* invalid width (DRC: 128~8192) */ 172 /* invalid bit-width (DRC: 8~12bits) */ 176 ERROR_DMA_OUTPUT_WIDTH = 51, /* invalid width */ 179 ERROR_DMA_OUTPUT_BIT_WIDTH = 54, /* invalid bit-width */
|
H A D | fimc-capture.c | 362 wh = pixm->width * pixm->height; queue_setup() 584 u32 *width, u32 *height, fimc_capture_try_format() 620 v4l_bound_align_image(width, max_t(u32, *width, 32), max_w, 4, fimc_capture_try_format() 630 *width = ctx->s_frame.f_width; fimc_capture_try_format() 637 min_w = dst->offs_h + dst->width; fimc_capture_try_format() 647 v4l_bound_align_image(width, min_w, max_w, fimc_capture_try_format() 654 pad, code ? *code : 0, *width, *height, fimc_capture_try_format() 675 r->width = sink->f_width; fimc_capture_try_selection() 683 max_sc_h = min(SCALER_MAX_HRATIO, 1 << (ffs(sink->width) - 3)); fimc_capture_try_selection() 698 * - the sink pad format width/height must be 4 multiple of the fimc_capture_try_selection() 715 v4l_bound_align_image(&r->width, min_w, max_w, ffs(min_sz) - 1, fimc_capture_try_selection() 719 r->left = clamp_t(u32, r->left, 0, sink->f_width - r->width); fimc_capture_try_selection() 724 target, r->left, r->top, r->width, r->height, fimc_capture_try_selection() 845 tfmt->width = mf->width; fimc_pipeline_try_format() 847 ffmt = fimc_capture_try_format(ctx, &tfmt->width, &tfmt->height, fimc_pipeline_try_format() 849 ffmt = fimc_capture_try_format(ctx, &tfmt->width, &tfmt->height, fimc_pipeline_try_format() 853 if (mf->width != tfmt->width || mf->height != tfmt->height) fimc_pipeline_try_format() 933 unsigned int width = 0, height = 0; __video_try_or_set_format() local 938 fimc_capture_try_format(ctx, &pix->width, &pix->height, __video_try_or_set_format() 942 width = pix->width; __video_try_or_set_format() 945 ctx->s_frame.f_width = pix->width; __video_try_or_set_format() 951 *out_fmt = fimc_capture_try_format(ctx, &pix->width, &pix->height, __video_try_or_set_format() 957 /* Restore image width/height for JPEG (no resizing supported). */ __video_try_or_set_format() 959 pix->width = width; __video_try_or_set_format() 971 mf->width = pix->width; __video_try_or_set_format() 981 pix->width = mf->width; __video_try_or_set_format() 985 fimc_adjust_mplane_format(*out_fmt, pix->width, pix->height, pix); __video_try_or_set_format() 1053 set_frame_bounds(ff, pix->width, pix->height); __fimc_capture_set_format() 1056 set_frame_crop(ff, 0, 0, pix->width, pix->height); __fimc_capture_set_format() 1063 set_frame_bounds(&ctx->s_frame, pix->width, pix->height); __fimc_capture_set_format() 1064 set_frame_crop(&ctx->s_frame, 0, 0, pix->width, pix->height); __fimc_capture_set_format() 1151 sink_fmt.format.width = ff->f_width; fimc_pipeline_validate() 1170 if (src_fmt.format.width != sink_fmt.format.width || fimc_pipeline_validate() 1294 s->r.width = f->o_width; fimc_cap_g_selection() 1303 s->r.width = f->width; fimc_cap_g_selection() 1316 if (a->left + a->width > b->left + b->width) enclosed_rectangle() 1355 set_frame_crop(f, s->r.left, s->r.top, s->r.width, fimc_cap_s_selection() 1520 mf->width = ff->width; fimc_subdev_get_fmt() 1550 fmt->pad, mf->code, mf->width, mf->height); fimc_subdev_set_fmt() 1556 ffmt = fimc_capture_try_format(ctx, &mf->width, &mf->height, fimc_subdev_set_fmt() 1577 mf->width = ctx->s_frame.width; fimc_subdev_set_fmt() 1584 set_frame_bounds(ff, mf->width, mf->height); fimc_subdev_set_fmt() 1595 set_frame_crop(ff, 0, 0, mf->width, mf->height); fimc_subdev_set_fmt() 1623 r->width = f->o_width; fimc_subdev_get_selection() 1647 r->width = f->width; fimc_subdev_get_selection() 1652 sel->pad, r->left, r->top, r->width, r->height, fimc_subdev_get_selection() 1693 set_frame_crop(f, r->left, r->top, r->width, r->height); fimc_subdev_set_selection() 1701 r->width, r->height); fimc_subdev_set_selection() 1725 .width = FIMC_DEFAULT_WIDTH, fimc_capture_set_default_format() 1794 vid_cap->ci_fmt.width = FIMC_DEFAULT_WIDTH; fimc_register_capture_device() 1798 ctx->s_frame.width = FIMC_DEFAULT_WIDTH; fimc_register_capture_device() 583 fimc_capture_try_format(struct fimc_ctx *ctx, u32 *width, u32 *height, u32 *code, u32 *fourcc, int pad) fimc_capture_try_format() argument
|
H A D | fimc-is-param.c | 215 mf->width = isp->otf_input.width; __is_get_frame_size() 231 isp->otf_input.width = mf->width; __is_set_frame_size() 233 isp->otf_output.width = mf->width; __is_set_frame_size() 236 drc->otf_input.width = mf->width; __is_set_frame_size() 238 drc->otf_output.width = mf->width; __is_set_frame_size() 241 fd->otf_input.width = mf->width; __is_set_frame_size() 695 isp->otf_input.width = DEFAULT_PREVIEW_STILL_WIDTH; fimc_is_set_initial_params() 710 isp->dma1_input.width = 0; fimc_is_set_initial_params() 717 isp->dma1_input.width = 0; fimc_is_set_initial_params() 722 isp->dma2_input.width = 0; fimc_is_set_initial_params() 729 isp->dma2_input.width = 0; fimc_is_set_initial_params() 774 isp->otf_output.width = DEFAULT_PREVIEW_STILL_WIDTH; fimc_is_set_initial_params() 785 isp->dma1_output.width = 0; fimc_is_set_initial_params() 801 isp->dma2_output.width = 0; fimc_is_set_initial_params() 827 drc->otf_input.width = DEFAULT_PREVIEW_STILL_WIDTH; fimc_is_set_initial_params() 837 drc->dma_input.width = 0; fimc_is_set_initial_params() 844 drc->dma_input.width = 0; fimc_is_set_initial_params() 850 drc->otf_output.width = DEFAULT_PREVIEW_STILL_WIDTH; fimc_is_set_initial_params() 865 fd->otf_input.width = DEFAULT_PREVIEW_STILL_WIDTH; fimc_is_set_initial_params() 876 fd->dma_input.width = 0; fimc_is_set_initial_params() 883 fd->dma_input.width = 0; fimc_is_set_initial_params()
|
H A D | fimc-core.h | 183 * @pre_dst_width: the prescaler's destination width 187 * @real_width: source pixel (width - offset) 235 * @f_width: image full width (virtual screen size) 237 * @o_width: original image width as set by S_FMT 241 * @width: image pixel width 256 u32 width; member in struct:fimc_frame 335 * @scaler_en_w: max input pixel width when the scaler is enabled 336 * @scaler_dis_w: max input pixel width when the scaler is disabled 337 * @in_rot_en_h: max input width with the input rotator is on 338 * @in_rot_dis_w: max input width with the input rotator is off 339 * @out_rot_en_w: max output width with the output rotator on 340 * @out_rot_dis_w: max output width with the output rotator off 510 static inline void set_frame_bounds(struct fimc_frame *f, u32 width, u32 height) set_frame_bounds() argument 512 f->o_width = width; set_frame_bounds() 514 f->f_width = width; set_frame_bounds() 519 u32 left, u32 top, u32 width, u32 height) set_frame_crop() 523 f->width = width; set_frame_crop() 627 void fimc_adjust_mplane_format(struct fimc_fmt *fmt, u32 width, u32 height, 518 set_frame_crop(struct fimc_frame *f, u32 left, u32 top, u32 width, u32 height) set_frame_crop() argument
|
H A D | fimc-m2m.c | 325 v4l_bound_align_image(&pix->width, 16, max_w, mod_x, fimc_try_fmt_mplane() 328 fimc_adjust_mplane_format(fmt, pix->width, pix->height, &f->fmt.pix_mp); fimc_try_fmt_mplane() 349 frame->f_width = pixm->width; __set_frame_format() 351 frame->o_width = pixm->width; __set_frame_format() 353 frame->width = pixm->width; __set_frame_format() 411 cr->bounds.width = frame->o_width; fimc_m2m_cropcap() 429 cr->c.width = frame->width; fimc_m2m_g_crop() 466 v4l_bound_align_image(&cr->c.width, min_size, f->o_width, fimc_m2m_try_crop() 472 if (cr->c.left + cr->c.width > f->o_width) fimc_m2m_try_crop() 473 cr->c.left = f->o_width - cr->c.width; fimc_m2m_try_crop() 481 cr->c.left, cr->c.top, cr->c.width, cr->c.height, fimc_m2m_try_crop() 504 ret = fimc_check_scaler_ratio(ctx, cr.c.width, fimc_m2m_s_crop() 505 cr.c.height, ctx->d_frame.width, fimc_m2m_s_crop() 508 ret = fimc_check_scaler_ratio(ctx, ctx->s_frame.width, fimc_m2m_s_crop() 509 ctx->s_frame.height, cr.c.width, fimc_m2m_s_crop() 519 f->width = cr.c.width; fimc_m2m_s_crop() 585 .width = 800, fimc_m2m_set_default_format()
|
/linux-4.1.27/drivers/clk/mmp/ |
H A D | clk.h | 41 #define MMP_CLK_BITS_MASK(width, shift) \ 42 (((1 << (width)) - 1) << (shift)) 43 #define MMP_CLK_BITS_GET_VAL(data, width, shift) \ 44 ((data & MMP_CLK_BITS_MASK(width, shift)) >> (shift)) 45 #define MMP_CLK_BITS_SET_VAL(val, width, shift) \ 46 (((val) << (shift)) & MMP_CLK_BITS_MASK(width, shift)) 203 u8 width; member in struct:mmp_param_mux_clk 218 u8 width; member in struct:mmp_param_div_clk
|
H A D | clk-mix.c | 138 u8 width, shift; _set_rate() local 156 width = ri->width_div; _set_rate() 158 mux_div &= ~MMP_CLK_BITS_MASK(width, shift); _set_rate() 159 mux_div |= MMP_CLK_BITS_SET_VAL(div_val, width, shift); _set_rate() 163 width = ri->width_mux; _set_rate() 165 mux_div &= ~MMP_CLK_BITS_MASK(width, shift); _set_rate() 166 mux_div |= MMP_CLK_BITS_SET_VAL(mux_val, width, shift); _set_rate() 296 u8 width, shift; mmp_clk_mix_get_parent() local 311 width = mix->reg_info.width_mux; mmp_clk_mix_get_parent() 314 mux_val = MMP_CLK_BITS_GET_VAL(mux_div, width, shift); mmp_clk_mix_get_parent() 326 u8 width, shift; mmp_clk_mix_recalc_rate() local 341 width = mix->reg_info.width_div; mmp_clk_mix_recalc_rate() 344 div = _get_div(mix, MMP_CLK_BITS_GET_VAL(mux_div, width, shift)); mmp_clk_mix_recalc_rate()
|
/linux-4.1.27/sound/soc/codecs/ |
H A D | si476x.c | 162 int rate, width, err; si476x_codec_hw_params() local 172 width = SI476X_PCM_FORMAT_S8; si476x_codec_hw_params() 175 width = SI476X_PCM_FORMAT_S16_LE; si476x_codec_hw_params() 178 width = SI476X_PCM_FORMAT_S20_3LE; si476x_codec_hw_params() 181 width = SI476X_PCM_FORMAT_S24_LE; si476x_codec_hw_params() 198 (width << SI476X_DIGITAL_IO_SLOT_SIZE_SHIFT) | si476x_codec_hw_params() 199 (width << SI476X_DIGITAL_IO_SAMPLE_SIZE_SHIFT)); si476x_codec_hw_params() 201 dev_err(dai->codec->dev, "Failed to set output width\n"); si476x_codec_hw_params()
|
/linux-4.1.27/drivers/clk/ti/ |
H A D | divider.c | 31 #define div_mask(d) ((1 << ((d)->width)) - 1) 258 u8 shift, u8 width, u8 clk_divider_flags, _register_divider() 267 if (width + shift > 16) { _register_divider() 289 div->width = width; _register_divider() 305 _get_div_table_from_setup(struct ti_clk_divider *setup, u8 *width) _get_div_table_from_setup() argument 333 *width = fls(val); _get_div_table_from_setup() 347 *width = 0; _get_div_table_from_setup() 354 *width = i; _get_div_table_from_setup() 357 *width = fls(*width); _get_div_table_from_setup() 384 div->table = _get_div_table_from_setup(setup, &div->width); ti_clk_build_component_div() 396 u8 width; ti_clk_register_divider() local 418 table = _get_div_table_from_setup(div, &width); ti_clk_register_divider() 424 width, div_flags, table, NULL); ti_clk_register_divider() 501 /* Determine bit width for the field */ _get_divider_width() 528 u32 *flags, u8 *div_flags, u8 *width, u8 *shift) ti_clk_divider_populate() 558 *width = _get_divider_width(node, *table, *div_flags); ti_clk_divider_populate() 575 u8 width = 0; of_ti_divider_clk_setup() local 583 &clk_divider_flags, &width, &shift)) of_ti_divider_clk_setup() 587 shift, width, clk_divider_flags, table, of_ti_divider_clk_setup() 611 &div->flags, &div->width, &div->shift) < 0) of_ti_composite_divider_clk_setup() 255 _register_divider(struct device *dev, const char *name, const char *parent_name, unsigned long flags, void __iomem *reg, u8 shift, u8 width, u8 clk_divider_flags, const struct clk_div_table *table, spinlock_t *lock) _register_divider() argument 526 ti_clk_divider_populate(struct device_node *node, void __iomem **reg, const struct clk_div_table **table, u32 *flags, u8 *div_flags, u8 *width, u8 *shift) ti_clk_divider_populate() argument
|
/linux-4.1.27/drivers/media/platform/ |
H A D | sh_vou.c | 189 addr2 = addr1 + vou_dev->pix.width * vou_dev->pix.height; sh_vou_schedule_next() 226 sh_vou_reg_ab_write(vou_dev, VOUAIR, vou_dev->pix.width * row_coeff); sh_vou_stream_start() 247 *size = vou_fmt[vou_dev->pix_idx].bpp * vou_dev->pix.width * sh_vou_buf_setup() 271 int bytes_per_line = vou_fmt[vou_dev->pix_idx].bpp * pix->width / 8; sh_vou_buf_prepare() 276 if (vb->width != pix->width || sh_vou_buf_prepare() 279 vb->width = pix->width; sh_vou_buf_prepare() 487 dsr_h = rect->width + rect->left; sh_vou_configure_geometry() 492 pix->width, frame_in_height, black_left, black_top, sh_vou_configure_geometry() 496 sh_vou_reg_ab_write(vou_dev, VOUISR, (pix->width << 16) | frame_in_height); sh_vou_configure_geometry() 542 /* Image width must be a multiple of 4 */ vou_adjust_input() 549 unsigned int found = geo->output.width * vou_scale_h_den[i] / vou_adjust_input() 625 err = abs(found - geo->output.width); vou_adjust_output() 635 geo->output.width = best; vou_adjust_output() 691 vou_dev->rect.width, vou_dev->rect.height, sh_vou_s_fmt_vid_out() 692 pix->width, pix->height); sh_vou_s_fmt_vid_out() 713 /* Image width must be a multiple of 4 */ sh_vou_s_fmt_vid_out() 714 v4l_bound_align_image(&pix->width, 0, VOU_MAX_IMAGE_WIDTH, 2, sh_vou_s_fmt_vid_out() 717 geo.in_width = pix->width; sh_vou_s_fmt_vid_out() 723 mbfmt.width = geo.output.width; sh_vou_s_fmt_vid_out() 732 geo.output.width, geo.output.height, mbfmt.width, mbfmt.height); sh_vou_s_fmt_vid_out() 735 if ((unsigned)mbfmt.width > VOU_MAX_IMAGE_WIDTH || sh_vou_s_fmt_vid_out() 740 if (mbfmt.width != geo.output.width || sh_vou_s_fmt_vid_out() 742 geo.output.width = mbfmt.width; sh_vou_s_fmt_vid_out() 750 pix->width = geo.in_width; sh_vou_s_fmt_vid_out() 754 pix->width, pix->height); sh_vou_s_fmt_vid_out() 778 v4l_bound_align_image(&pix->width, 0, VOU_MAX_IMAGE_WIDTH, 1, sh_vou_try_fmt_vid_out() 955 rect->width, rect->height, rect->left, rect->top); sh_vou_s_crop() 965 v4l_bound_align_image(&rect->width, 0, VOU_MAX_IMAGE_WIDTH, 1, sh_vou_s_crop() 968 if (rect->width + rect->left > VOU_MAX_IMAGE_WIDTH) sh_vou_s_crop() 969 rect->left = VOU_MAX_IMAGE_WIDTH - rect->width; sh_vou_s_crop() 975 geo.in_width = pix->width; sh_vou_s_crop() 979 sd_crop.c.width = geo.output.width; sh_vou_s_crop() 987 mbfmt.width = geo.output.width; sh_vou_s_crop() 996 if ((unsigned)mbfmt.width > VOU_MAX_IMAGE_WIDTH || sh_vou_s_crop() 1001 geo.output.width = mbfmt.width; sh_vou_s_crop() 1012 pix->width = geo.in_width; sh_vou_s_crop() 1038 a->bounds.width = VOU_MAX_IMAGE_WIDTH; sh_vou_cropcap() 1043 a->defrect.width = VOU_MAX_IMAGE_WIDTH; sh_vou_cropcap() 1330 rect->width = VOU_MAX_IMAGE_WIDTH; sh_vou_probe() 1332 pix->width = VOU_MAX_IMAGE_WIDTH; sh_vou_probe()
|
H A D | vim2m.c | 111 unsigned int width; member in struct:vim2m_q_data 211 int width, height, bytesperline; device_process() local 215 width = q_data->width; device_process() 217 bytesperline = (q_data->width * q_data->fmt->depth) >> 3; device_process() 232 tile_w = (width * (q_data[V4L2_M2M_DST].fmt->depth >> 3)) device_process() 493 f->fmt.pix.width = q_data->width; vidioc_g_fmt() 497 f->fmt.pix.bytesperline = (q_data->width * q_data->fmt->depth) >> 3; vidioc_g_fmt() 525 if (f->fmt.pix.width < MIN_W) vidioc_try_fmt() 526 f->fmt.pix.width = MIN_W; vidioc_try_fmt() 527 else if (f->fmt.pix.width > MAX_W) vidioc_try_fmt() 528 f->fmt.pix.width = MAX_W; vidioc_try_fmt() 530 f->fmt.pix.width &= ~DIM_ALIGN_MASK; vidioc_try_fmt() 531 f->fmt.pix.bytesperline = (f->fmt.pix.width * fmt->depth) >> 3; vidioc_try_fmt() 602 q_data->width = f->fmt.pix.width; vidioc_s_fmt() 604 q_data->sizeimage = q_data->width * q_data->height vidioc_s_fmt() 609 f->type, q_data->width, q_data->height, q_data->fmt->fourcc); vidioc_s_fmt() 725 size = q_data->width * q_data->height * q_data->fmt->depth >> 3; vim2m_queue_setup() 906 ctx->q_data[V4L2_M2M_SRC].width = 640; vim2m_open() 909 ctx->q_data[V4L2_M2M_SRC].width * vim2m_open()
|
H A D | fsl-viu.c | 210 int width, height, sizeimage; member in struct:viu_fh 368 } else if (prev->vb.width == buf->vb.width && restart_video_queue() 407 *size = fh->width * fh->height * fh->fmt->depth >> 3; buffer_setup() 453 reg_val.dma_inc = buf->vb.width * 2; buffer_activate() 457 reg_val.dma_inc = buf->vb.width * 4; buffer_activate() 467 buf->vb.width; buffer_activate() 495 if (fh->width < 48 || fh->width > norm_maxw() || buffer_prepare() 498 buf->vb.size = (fh->width * fh->height * fh->fmt->depth) >> 3; buffer_prepare() 503 buf->vb.width != fh->width || buffer_prepare() 507 buf->vb.width = fh->width; buffer_prepare() 517 buf->vb.width = fh->width; buffer_prepare() 565 if (prev->vb.width == buf->vb.width && buffer_queue() 633 f->fmt.pix.width = fh->width; vidioc_g_fmt_cap() 638 (f->fmt.pix.width * fh->fmt->depth) >> 3; vidioc_g_fmt_cap() 674 if (f->fmt.pix.width < 48) vidioc_try_fmt_cap() 675 f->fmt.pix.width = 48; vidioc_try_fmt_cap() 676 if (f->fmt.pix.width > maxw) vidioc_try_fmt_cap() 677 f->fmt.pix.width = maxw; vidioc_try_fmt_cap() 678 f->fmt.pix.width &= ~0x03; vidioc_try_fmt_cap() 680 (f->fmt.pix.width * fmt->depth) >> 3; vidioc_try_fmt_cap() 696 fh->width = f->fmt.pix.width; vidioc_s_fmt_cap() 723 if (win->w.width < 48 || win->w.height < 32) verify_preview() 727 maxw = dev->crop_current.width; verify_preview() 747 if (win->w.width > maxw) verify_preview() 748 win->w.width = maxw; verify_preview() 768 fh->win.w.width, fh->win.w.height, dev->ovfmt->name); viu_setup_preview() 774 fh->win.w.width; viu_setup_preview() 781 reg_val.dma_inc = fh->win.w.width * 2; viu_setup_preview() 785 reg_val.dma_inc = fh->win.w.width * 4; viu_setup_preview() 884 dev->ovbuf.fmt.width * fmt->depth / 8; vidioc_s_fbuf() 1301 fh->width = norm_maxw(); viu_open() 1303 dev->crop_current.width = fh->width; viu_open()
|
/linux-4.1.27/include/linux/platform_data/ |
H A D | mtd-orion_nand.h | 19 u8 width; /* buswidth */ member in struct:orion_nand_data
|
H A D | mtd-mxc_nand.h | 26 unsigned int width; /* data bus width in bytes */ member in struct:mxc_nand_platform_data
|
H A D | pxa_sdhci.h | 29 * mmp2: each step is roughly 100ps, 5bits width 30 * pxa910: each step is 1ns, 4bits width
|
H A D | simplefb.h | 53 * can pass the width, height, stride and format via this platform-data object. 58 u32 width; member in struct:simplefb_platform_data
|
/linux-4.1.27/include/linux/spi/ |
H A D | spi_oc_tiny.h | 7 * @baudwidth: baud rate divider width of the core.
|
/linux-4.1.27/drivers/gpu/drm/panel/ |
H A D | panel-simple.c | 48 unsigned int width; member in struct:panel_desc::__anon4312 138 connector->display_info.width_mm = panel->desc->size.width; panel_simple_get_fixed_modes() 391 .width = 152, 415 .width = 223, 438 .width = 217, 462 .width = 223, 485 .width = 256, 508 .width = 293, 531 .width = 293, 559 .width = 154, 587 .width = 220, 610 .width = 223, 634 .width = 115, 658 .width = 152, 681 .width = 108, 705 .width = 95, 729 .width = 151, 752 .width = 195, 776 .width = 95, 800 .width = 261, 824 .width = 256, 847 .width = 344, 870 .width = 1024, 893 .width = 272, 916 .width = 56, 940 .width = 1024, 963 .width = 320, 985 .width = 152, 1137 .width = 94, 1165 .width = 62, 1193 .width = 217,
|
/linux-4.1.27/arch/mips/include/asm/mach-jz4740/ |
H A D | jz4740_fb.h | 38 * width: width of the lcd display in mm 47 unsigned int width; member in struct:jz4740_fb_platform_data
|
/linux-4.1.27/Documentation/blackfin/ |
H A D | gptimers-example.c | 21 uint32_t period, width; member in struct:gptimer_data 35 /* read the width/period values that were captured for the waveform */ gptimer_example_irq() 36 data->width = get_gptimer_pwidth(TIMER5_id); gptimer_example_irq()
|
/linux-4.1.27/samples/bpf/ |
H A D | tracex2_user.c | 12 static void stars(char *str, long val, long max, int width) stars() argument 16 for (i = 0; i < (width * val / max) - 1 && i < width - 1; i++) stars()
|
/linux-4.1.27/drivers/staging/sm750fb/ |
H A D | sm750_accel.c | 94 u32 x,u32 y,u32 width,u32 height, hw_fillrect() 124 FIELD_VALUE(0,DE_DIMENSION,X,width)| hw_fillrect() 150 unsigned int width, hw_copyarea() 151 unsigned int height, /* width and height of rectangle in pixel value */ hw_copyarea() 224 sx += width - 1; hw_copyarea() 226 dx += width - 1; hw_copyarea() 254 width *= 3; hw_copyarea() 267 /* Screen Window width in Pixels. hw_copyarea() 289 FIELD_VALUE(0, DE_DIMENSION, X, width) | hw_copyarea() 329 u32 width, hw_imageblit() 330 u32 height, /* width and height of rectange in pixel value */ hw_imageblit() 343 ulBytesPerScan = (width + startBit + 7) / 8; hw_imageblit() 369 width *= 3; hw_imageblit() 384 /* Screen Window width in Pixels. hw_imageblit() 403 FIELD_VALUE(0, DE_DIMENSION, X, width) | hw_imageblit() 92 hw_fillrect(struct lynx_accel * accel, u32 base,u32 pitch,u32 Bpp, u32 x,u32 y,u32 width,u32 height, u32 color,u32 rop) hw_fillrect() argument 139 hw_copyarea( struct lynx_accel * accel, unsigned int sBase, unsigned int sPitch, unsigned int sx, unsigned int sy, unsigned int dBase, unsigned int dPitch, unsigned int Bpp, unsigned int dx, unsigned int dy, unsigned int width, unsigned int height, unsigned int rop2) hw_copyarea() argument 320 hw_imageblit(struct lynx_accel *accel, const char *pSrcbuf, u32 srcDelta, u32 startBit, u32 dBase, u32 dPitch, u32 bytePerPixel, u32 dx, u32 dy, u32 width, u32 height, u32 fColor, u32 bColor, u32 rop2) hw_imageblit() argument
|
/linux-4.1.27/drivers/mtd/nand/ |
H A D | orion_nand.c | 115 "bank-width", &val)) orion_nand_probe() 116 board->width = (u8)val * 8; orion_nand_probe() 118 board->width = 8; orion_nand_probe() 138 WARN(board->width > 16, orion_nand_probe() 139 "%d bit bus width out of range", orion_nand_probe() 140 board->width); orion_nand_probe() 142 if (board->width == 16) orion_nand_probe()
|
/linux-4.1.27/drivers/staging/fbtft/ |
H A D | flexfb.c | 38 static unsigned int width; variable 39 module_param(width, uint, 0); 40 MODULE_PARM_DESC(width, "Display width"); 148 write_reg(par, 0x0020, width - 1 - xs); flexfb_set_addr_win_1() 152 write_reg(par, 0x0020, width - 1 - ys); flexfb_set_addr_win_1() 268 if (!width) flexfb_probe_common() 269 width = 128; flexfb_probe_common() 279 if (!width) flexfb_probe_common() 280 width = 176; flexfb_probe_common() 291 if (!width) flexfb_probe_common() 292 width = 176; flexfb_probe_common() 305 if (!width) flexfb_probe_common() 306 width = 240; flexfb_probe_common() 318 if (!width) flexfb_probe_common() 319 width = 240; flexfb_probe_common() 330 if (!width) flexfb_probe_common() 331 width = 240; flexfb_probe_common() 343 if (!width) flexfb_probe_common() 344 width = 240; flexfb_probe_common() 357 if (!width) flexfb_probe_common() 358 width = 128; flexfb_probe_common() 372 if (width == 0 || height == 0) { flexfb_probe_common() 373 dev_err(dev, "argument(s) missing: width and height has to be set.\n"); flexfb_probe_common() 376 flex_display.width = width; flexfb_probe_common() 378 fbtft_init_dbg(dev, "Display resolution: %dx%d\n", width, height); flexfb_probe_common()
|
/linux-4.1.27/drivers/media/platform/s3c-camif/ |
H A D | camif-capture.c | 61 f->dma_offset.line = f->f_width - (f->rect.left + f->rect.width); camif_prepare_dma_offset() 251 pix_size = frame->rect.width * frame->rect.height; camif_prepare_addr() 458 size = (pix->width * pix->height * fmt->depth) / 8; queue_setup() 722 pix->width = frame->f_width; s3c_camif_vidioc_g_fmt() 751 pix->width, pix->height, crop->width, crop->height, __camif_video_try_format() 754 * Calculate minimum width and height according to the configured __camif_video_try_format() 757 sc_hrmax = min(SCALER_MAX_RATIO, 1 << (ffs(crop->width) - 3)); __camif_video_try_format() 760 wmin = max_t(u32, pix_lim->min_out_width, crop->width / sc_hrmax); __camif_video_try_format() 765 v4l_bound_align_image(&pix->width, wmin, pix_lim->max_sc_out_width, __camif_video_try_format() 769 pix->bytesperline = pix->width * fmt->ybpp; __camif_video_try_format() 770 pix->sizeimage = (pix->width * pix->height * fmt->depth) / 8; __camif_video_try_format() 776 pix->width, pix->height, wmin, hmin, sc_hrmax, sc_vrmax); __camif_video_try_format() 808 out_frame->f_width = pix->width; s3c_camif_vidioc_s_fmt() 812 out_frame->rect.width = pix->width; s3c_camif_vidioc_s_fmt() 822 pix->width * pix->height * fmt->depth, fmt->depth, s3c_camif_vidioc_s_fmt() 846 if (src_fmt.format.width != camif->mbus_fmt.width || camif_pipeline_validate() 1012 sel->r.width = vp->out_frame.f_width; s3c_camif_g_selection() 1058 sel->r.left, sel->r.top, sel->r.width, sel->r.height); s3c_camif_s_selection() 1255 mf->width = camif->camif_crop.width; s3c_camif_subdev_get_fmt() 1284 v4l_bound_align_image(&mf->width, 8, CAMIF_MAX_PIX_WIDTH, __camif_subdev_try_format() 1290 v4l_bound_align_image(&mf->width, 8, crop->width, __camif_subdev_try_format() 1296 v4l2_dbg(1, debug, &camif->subdev, "%ux%u\n", mf->width, mf->height); __camif_subdev_try_format() 1309 fmt->pad, mf->code, mf->width, mf->height); s3c_camif_subdev_set_fmt() 1338 crop->width = mf->width; s3c_camif_subdev_set_fmt() 1349 frame->f_width = mf->width; s3c_camif_subdev_set_fmt() 1357 mf->width = crop->width; s3c_camif_subdev_set_fmt() 1389 sel->r.width = mf->width; s3c_camif_subdev_get_selection() 1398 __func__, crop->left, crop->top, crop->width, s3c_camif_subdev_get_selection() 1399 crop->height, mf->width, mf->height); s3c_camif_subdev_get_selection() 1413 * - r->width + 2 * r->left = mf->width; __camif_try_crop() 1418 v4l_bound_align_image(&r->width, 0, mf->width, __camif_try_crop() 1422 v4l_bound_align_image(&left, 0, mf->width - r->width, __camif_try_crop() 1428 r->width = mf->width - left; __camif_try_crop() 1432 * width and height. Just return current crop rectangle if __camif_try_crop() 1441 if ((or->width > r->width) == (or->height > r->height)) __camif_try_crop() 1450 r->left, r->top, r->width, r->height, mf->width, mf->height); __camif_try_crop() 1490 __func__, crop->left, crop->top, crop->width, crop->height, s3c_camif_subdev_set_selection() 1491 camif->mbus_fmt.width, camif->mbus_fmt.height); s3c_camif_subdev_set_selection() 1651 f->rect.width = CAMIF_DEF_WIDTH; s3c_camif_set_defaults() 1662 camif->mbus_fmt.width = CAMIF_DEF_WIDTH; s3c_camif_set_defaults() 1667 camif->camif_crop.width = CAMIF_DEF_WIDTH; s3c_camif_set_defaults()
|
/linux-4.1.27/drivers/media/usb/go7007/ |
H A D | go7007-v4l2.c | 88 static void get_resolution(struct go7007 *go, int *width, int *height) get_resolution() argument 92 *width = 720; get_resolution() 96 *width = 720; get_resolution() 101 *width = go->board_info->sensor_width; get_resolution() 187 int width, height; set_capture_size() local 195 width = sensor_width; set_capture_size() 198 if (fmt->fmt.pix.width > sensor_width) set_capture_size() 199 width = sensor_width; set_capture_size() 200 else if (fmt->fmt.pix.width < 144) set_capture_size() 201 width = 144; set_capture_size() 203 width = fmt->fmt.pix.width & ~0x0f; set_capture_size() 212 width = fmt->fmt.pix.width; set_capture_size() 214 if (width <= sensor_width / 4) { set_capture_size() 215 width = sensor_width / 4; set_capture_size() 217 } else if (width <= sensor_width / 2) { set_capture_size() 218 width = sensor_width / 2; set_capture_size() 221 width = sensor_width; set_capture_size() 224 width &= ~0xf; set_capture_size() 233 fmt->fmt.pix.width = width; set_capture_size() 247 go->width = width; set_capture_size() 256 mbus_fmt.width = fmt ? fmt->fmt.pix.width : width; set_capture_size() 263 if (width <= sensor_width / 4) { set_capture_size() 267 } else if (width <= sensor_width / 2) { set_capture_size() 339 fmt->fmt.pix.width = go->width; vidioc_g_fmt_vid_cap() 541 int width, height; vidioc_enum_framesizes() local 549 get_resolution(go, &width, &height); vidioc_enum_framesizes() 551 fsize->discrete.width = (width >> fsize->index) & ~0xf; vidioc_enum_framesizes() 560 int width, height; vidioc_enum_frameintervals() local 570 get_resolution(go, &width, &height); vidioc_enum_frameintervals() 572 if (fival->width == ((width >> i) & ~0xf) && vidioc_enum_frameintervals() 849 for (y = 0; y < go->height / 16; y++, mt += go->width / 16) go7007_s_ctrl() 850 memcpy(mt, ctrl->p_new.p_u8 + y * (720 / 16), go->width / 16); go7007_s_ctrl()
|
/linux-4.1.27/drivers/net/ethernet/sfc/ |
H A D | bitfield.h | 51 /* Bit width of the specified field */ 55 /* Mask equal in width to the specified field. 57 * For example, a field with width 5 would have a mask of 0x1f. 59 * The maximum width mask that can be generated is 64 bits. 61 #define EFX_MASK64(width) \ 62 ((width) == 64 ? ~((u64) 0) : \ 63 (((((u64) 1) << (width))) - 1)) 65 /* Mask equal in width to the specified field. 67 * For example, a field with width 5 would have a mask of 0x1f. 69 * The maximum width mask that can be generated is 32 bits. Use 70 * EFX_MASK64 for higher width fields. 72 #define EFX_MASK32(width) \ 73 ((width) == 32 ? ~((u32) 0) : \ 74 (((((u32) 1) << (width))) - 1)) 529 /* Used to avoid compiler warnings about shift range exceeding width 533 #define EFX_DMA_TYPE_WIDTH(width) \ 534 (((width) < DMA_ADDR_T_WIDTH) ? (width) : DMA_ADDR_T_WIDTH)
|
/linux-4.1.27/drivers/video/fbdev/i810/ |
H A D | i810_accel.c | 144 * @dwidth: width of rectangular graphics data 181 * @width: width of destination 195 static inline void color_blit(int width, int height, int pitch, int dest, color_blit() argument 205 PUT_RING(height << 16 | width); color_blit() 215 * @dwidth: width of destination 301 u32 dx, dy, width, height, dest, rop = 0, color = 0; i810fb_fillrect() local 317 width = rect->width * par->depth; i810fb_fillrect() 322 color_blit(width, height, info->fix.line_length, dest, rop, color, i810fb_fillrect() 329 u32 sx, sy, dx, dy, pitch, width, height, src, dest, xdir; i810fb_copyarea() local 339 width = region->width * par->depth; i810fb_copyarea() 349 sx += width - 1; i810fb_copyarea() 350 dx += width - 1; i810fb_copyarea() 363 source_copy_blit(width, height, pitch, xdir, src, dest, i810fb_copyarea() 393 size = (image->width+7)/8 + 1; i810fb_imageblit() 398 mono_src_copy_imm_blit(image->width * par->depth, i810fb_imageblit()
|
/linux-4.1.27/drivers/video/fbdev/core/ |
H A D | cfbimgblt.c | 20 * bytes width. 91 n = image->width; color_imageblit() 147 u32 spitch = (image->width+7)/8; slow_imageblit() 159 j = image->width; slow_imageblit() 211 * image->width is divisible by pixel/dword (ppw); 220 u32 ppw = 32/bpp, spitch = (image->width + 7)/8; fast_imageblit() 249 k = image->width/ppw; fast_imageblit() 269 u32 width = image->width; cfb_imageblit() local 298 ((width & (32/bpp-1)) == 0) && cfb_imageblit()
|
H A D | sysimgblt.c | 65 n = image->width; color_imageblit() 119 u32 spitch = (image->width+7)/8; slow_imageblit() 130 j = image->width; slow_imageblit() 182 * image->width is divisible by pixel/dword (ppw); 190 u32 ppw = 32/bpp, spitch = (image->width + 7)/8; fast_imageblit() 219 k = image->width/ppw; fast_imageblit() 244 u32 width = image->width; sys_imageblit() local 273 ((width & (32/bpp-1)) == 0) && sys_imageblit()
|
/linux-4.1.27/net/mac80211/ |
H A D | spectmgmt.c | 118 /* keep width for 5/10 MHz channels */ ieee80211_parse_ch_switch_ie() 119 switch (sdata->vif.bss_conf.chandef.width) { ieee80211_parse_ch_switch_ie() 122 csa_ie->chandef.width = ieee80211_parse_ch_switch_ie() 123 sdata->vif.bss_conf.chandef.width; ieee80211_parse_ch_switch_ie() 145 new_vht_chandef.width = NL80211_CHAN_WIDTH_80; ieee80211_parse_ch_switch_ie() 148 new_vht_chandef.width = NL80211_CHAN_WIDTH_160; ieee80211_parse_ch_switch_ie() 156 new_vht_chandef.width = NL80211_CHAN_WIDTH_80P80; ieee80211_parse_ch_switch_ie() 160 new_vht_chandef.width == NL80211_CHAN_WIDTH_80P80) ieee80211_parse_ch_switch_ie() 163 new_vht_chandef.width == NL80211_CHAN_WIDTH_160) ieee80211_parse_ch_switch_ie() 166 new_vht_chandef.width > NL80211_CHAN_WIDTH_20) ieee80211_parse_ch_switch_ie()
|
H A D | ibss.c | 175 if (chandef->width != NL80211_CHAN_WIDTH_20_NOHT && ieee80211_ibss_build_presp() 176 chandef->width != NL80211_CHAN_WIDTH_5 && ieee80211_ibss_build_presp() 177 chandef->width != NL80211_CHAN_WIDTH_10 && ieee80211_ibss_build_presp() 194 if (chandef->width != NL80211_CHAN_WIDTH_20 && ieee80211_ibss_build_presp() 195 chandef->width != NL80211_CHAN_WIDTH_40 && ieee80211_ibss_build_presp() 268 if (chandef.width == NL80211_CHAN_WIDTH_5 || __ieee80211_sta_join_ibss() 269 chandef.width == NL80211_CHAN_WIDTH_10 || __ieee80211_sta_join_ibss() 270 chandef.width == NL80211_CHAN_WIDTH_20_NOHT || __ieee80211_sta_join_ibss() 271 chandef.width == NL80211_CHAN_WIDTH_20) { __ieee80211_sta_join_ibss() 276 chandef.width = NL80211_CHAN_WIDTH_20; __ieee80211_sta_join_ibss() 416 switch (sdata->u.ibss.chandef.width) { ieee80211_sta_join_ibss() 427 chandef.width = sdata->u.ibss.chandef.width; ieee80211_sta_join_ibss() 792 switch (ifibss->chandef.width) { ieee80211_ibss_process_chanswitch() 825 switch (ifibss->chandef.width) { ieee80211_ibss_process_chanswitch() 840 if (params.chandef.width != ifibss->chandef.width) { ieee80211_ibss_process_chanswitch() 842 "IBSS %pM received channel switch from incompatible channel width (%d MHz, width:%d, CF1/2: %d/%d MHz), disconnecting\n", ieee80211_ibss_process_chanswitch() 845 params.chandef.width, ieee80211_ibss_process_chanswitch() 860 "IBSS %pM switches to unsupported channel (%d MHz, width:%d, CF1/2: %d/%d MHz), disconnecting\n", ieee80211_ibss_process_chanswitch() 863 params.chandef.width, ieee80211_ibss_process_chanswitch() 1039 sdata->u.ibss.chandef.width != NL80211_CHAN_WIDTH_20_NOHT && ieee80211_update_sta_info() 1040 sdata->u.ibss.chandef.width != NL80211_CHAN_WIDTH_5 && ieee80211_update_sta_info() 1041 sdata->u.ibss.chandef.width != NL80211_CHAN_WIDTH_10) { ieee80211_update_sta_info() 1057 sdata->u.ibss.chandef.width != NL80211_CHAN_WIDTH_20 && ieee80211_update_sta_info() 1058 sdata->u.ibss.chandef.width != NL80211_CHAN_WIDTH_40) { ieee80211_update_sta_info() 1345 u32 center_freq, u32 width) ibss_setup_channels() 1351 if (width <= 20) { ibss_setup_channels() 1355 start_freq = center_freq - width / 2 + 10; ibss_setup_channels() 1356 end_freq = center_freq + width / 2 - 10; ibss_setup_channels() 1380 u32 width, cf1, cf2 = 0; ieee80211_ibss_setup_scan_channels() local 1382 switch (chandef->width) { ieee80211_ibss_setup_scan_channels() 1384 width = 40; ieee80211_ibss_setup_scan_channels() 1390 width = 80; ieee80211_ibss_setup_scan_channels() 1393 width = 160; ieee80211_ibss_setup_scan_channels() 1396 width = 20; ieee80211_ibss_setup_scan_channels() 1402 n_chan = ibss_setup_channels(wiphy, channels, channels_max, cf1, width); ieee80211_ibss_setup_scan_channels() 1407 width); ieee80211_ibss_setup_scan_channels() 1755 radar_detect_width = BIT(params->chandef.width); ieee80211_ibss_join() 1342 ibss_setup_channels(struct wiphy *wiphy, struct ieee80211_channel **channels, unsigned int channels_max, u32 center_freq, u32 width) ibss_setup_channels() argument
|
/linux-4.1.27/include/drm/ |
H A D | drm_fb_helper.h | 49 * @fb_width: fbdev width 51 * @surface_width: scanout buffer width 56 * Note that the scanout surface width/height may be larger than the fbdev 57 * width/height. In case of multiple displays, the scanout surface is sized 58 * according to the largest width/height (so it is large enough for all CRTCs 59 * to scanout). But the fbdev width/height is sized to the minimum width/ 100 bool *enabled, int width, int height); 153 int width, int height); 156 int width, int height);
|
H A D | drm_rect.h | 99 * drm_rect_width - determine the rectangle width 100 * @r: rectangle whose width is returned 103 * The width of the rectangle. 167 int width, int height, 170 int width, int height,
|
/linux-4.1.27/drivers/media/platform/xilinx/ |
H A D | xilinx-vip.c | 98 * Read the xlnx,video-format, xlnx,video-width and xlnx,cfa-pattern properties 103 * format name and width, or ERR_PTR if no corresponding format can be found. 110 u32 width; xvip_of_get_format() local 117 ret = of_property_read_u32(node, "xlnx,video-width", &width); xvip_of_get_format() 127 if (format->vf_code != vf_code || format->width != width) xvip_of_get_format() 146 * Set the media bus frame format size. The width / height from the subdevice 148 * in @format. The width and height are clamped using default min / max values. 153 format->width = clamp_t(unsigned int, fmt->format.width, xvip_set_format_size() 315 fse->min_width = format->width; xvip_enum_frame_size() 316 fse->max_width = format->width; xvip_enum_frame_size()
|
/linux-4.1.27/arch/mips/include/asm/ |
H A D | processor.h | 106 # define FPR_IDX(width, idx) (idx) 108 # define FPR_IDX(width, idx) ((idx) ^ ((64 / (width)) - 1)) 111 #define BUILD_FPR_ACCESS(width) \ 112 static inline u##width get_fpr##width(union fpureg *fpr, unsigned idx) \ 114 return fpr->val##width[FPR_IDX(width, idx)]; \ 117 static inline void set_fpr##width(union fpureg *fpr, unsigned idx, \ 118 u##width val) \ 120 fpr->val##width[FPR_IDX(width, idx)] = val; \ 152 /* The width of watchlo is 32 in a 32 bit kernel and 64 in a
|
/linux-4.1.27/drivers/media/platform/omap3isp/ |
H A D | ispresizer.c | 340 * resizer_set_dst_size - Setup the output height and width 342 * @width: Output width. 354 u32 width, u32 height) resizer_set_output_size() 359 rgval = (width << ISPRSZ_OUT_SIZE_HORZ_SHIFT) resizer_set_output_size() 413 * @width: The range is 0 to 4095 pixels 417 u32 width, u32 height) resizer_set_input_size() 422 rgval = (width << ISPRSZ_IN_SIZE_HORZ_SHIFT) resizer_set_input_size() 494 * max input rate <= max intermediate rate * input width / output width 496 * where the input width and height are the resizer input crop rectangle size. 510 *max_rate = div_u64((u64)clock * res->crop.active.width, ofmt->width); omap3isp_resizer_max_rate() 589 requests_per_frame = DIV_ROUND_UP(res->crop.active.width * 2, 256) resizer_adjust_bandwidth() 700 * iw and ih are the input width and height after cropping. Those equations need 707 * inequality (taking the 4-tap mode width equation as an example) 711 * (where iw is the requested input width) which can be rewritten as 774 * As if the situation wasn't complex enough, the maximum output width depends 778 * width and the horizontal ratio. 795 unsigned int width; resizer_calc_ratios() local 830 min_width = ((input->width - 7) * 256 - 32 - 64 * sph) / 1024 + 1; resizer_calc_ratios() 864 max_width = min(((input->width - 7) * 256 + 255 - 16 - 32 * sph) / 64 resizer_calc_ratios() 868 * The output width must be even, and must be a multiple of 16 bytes resizer_calc_ratios() 869 * when upscaling vertically. Clamp the output width to the valid range. resizer_calc_ratios() 870 * Take the alignment into account (the maximum width in 7-tap mode on resizer_calc_ratios() 875 output->width = clamp(output->width, min_width, resizer_calc_ratios() 877 output->width = ALIGN(output->width, width_alignment); resizer_calc_ratios() 879 ratio->horz = ((input->width - 7) * 256 + 255 - 16 - 32 * sph) resizer_calc_ratios() 880 / (output->width - 1); resizer_calc_ratios() 882 ratio->horz = ((input->width - 7) * 256 + 255 - 32 - 64 * sph) resizer_calc_ratios() 883 / (output->width - 1); resizer_calc_ratios() 888 upscaled_width = (output->width - 1) * ratio->horz resizer_calc_ratios() 890 width = (upscaled_width >> 8) + 7; resizer_calc_ratios() 892 upscaled_width = (output->width - 1) * ratio->horz resizer_calc_ratios() 894 width = (upscaled_width >> 8) + 7; resizer_calc_ratios() 898 input->left += (input->width - width) / 2; resizer_calc_ratios() 900 input->width = width; resizer_calc_ratios() 927 res->crop_offset = (res->crop.active.top * input->width + resizer_set_crop_params() 955 resizer_set_input_size(res, res->crop.active.width, resizer_set_crop_params() 973 resizer_set_input_offset(res, ALIGN(informat->width, 0x10) * 2); resizer_configure() 982 resizer_set_output_offset(res, ALIGN(outformat->width * 2, 32)); resizer_configure() 983 resizer_set_output_size(res, outformat->width, outformat->height); resizer_configure() 1195 ((32 * sph + (source->width - 1) * 64 + 16) >> 8) + 7; resizer_try_crop() 1199 ((64 * sph + (source->width - 1) * 1024 + 32) >> 8) + 7; resizer_try_crop() 1203 crop->width = clamp_t(u32, crop->width, min_width, max_width); resizer_try_crop() 1207 crop->left = clamp_t(u32, crop->left, 0, sink->width - MIN_IN_WIDTH); resizer_try_crop() 1208 crop->width = clamp_t(u32, crop->width, MIN_IN_WIDTH, resizer_try_crop() 1209 sink->width - crop->left); resizer_try_crop() 1246 sel->r.width = INT_MAX; resizer_get_selection() 1300 format_sink->width, format_sink->height, resizer_set_selection() 1301 sel->r.left, sel->r.top, sel->r.width, sel->r.height, resizer_set_selection() 1302 format_source.width, format_source.height); resizer_set_selection() 1318 format_sink->width, format_sink->height, resizer_set_selection() 1319 sel->r.left, sel->r.top, sel->r.width, sel->r.height, resizer_set_selection() 1320 format_source.width, format_source.height); resizer_set_selection() 1391 fmt->width = clamp_t(u32, fmt->width, MIN_IN_WIDTH, resizer_try_format() 1452 format.width = 1; resizer_enum_frame_size() 1455 fse->min_width = format.width; resizer_enum_frame_size() 1462 format.width = -1; resizer_enum_frame_size() 1465 fse->max_width = format.width; resizer_enum_frame_size() 1518 crop->width = fmt->format.width; resizer_set_format() 1574 format.format.width = 4096; resizer_init_formats() 353 resizer_set_output_size(struct isp_res_device *res, u32 width, u32 height) resizer_set_output_size() argument 416 resizer_set_input_size(struct isp_res_device *res, u32 width, u32 height) resizer_set_input_size() argument
|
/linux-4.1.27/drivers/media/i2c/ |
H A D | mt9t001.c | 298 hratio = DIV_ROUND_CLOSEST(crop->width, format->width); mt9t001_s_stream() 317 ret = mt9t001_write(client, MT9T001_WINDOW_WIDTH, crop->width - 1); mt9t001_s_stream() 373 unsigned int width; mt9t001_set_format() local 381 /* Clamp the width and height to avoid dividing by zero. */ mt9t001_set_format() 382 width = clamp_t(unsigned int, ALIGN(format->format.width, 2), mt9t001_set_format() 383 max_t(unsigned int, __crop->width / 8, mt9t001_set_format() 385 __crop->width); mt9t001_set_format() 391 hratio = DIV_ROUND_CLOSEST(__crop->width, width); mt9t001_set_format() 396 __format->width = __crop->width / hratio; mt9t001_set_format() 438 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), mt9t001_set_selection() 445 rect.width = min_t(unsigned int, rect.width, mt9t001_set_selection() 452 if (rect.width != __crop->width || rect.height != __crop->height) { mt9t001_set_selection() 458 __format->width = rect.width; mt9t001_set_selection() 796 crop->width = MT9T001_WINDOW_WIDTH_DEF + 1; mt9t001_open() 801 format->width = MT9T001_WINDOW_WIDTH_DEF + 1; mt9t001_open() 922 mt9t001->crop.width = MT9T001_WINDOW_WIDTH_DEF + 1; mt9t001_probe() 926 mt9t001->format.width = MT9T001_WINDOW_WIDTH_DEF + 1; mt9t001_probe()
|
H A D | mt9v011.c | 54 unsigned width, height; member in struct:mt9v011 202 unsigned height, width, hblank, vblank, speed; calc_fps() local 208 width = mt9v011_read(sd, R04_MT9V011_WIDTH); calc_fps() 213 row_time = (width + 113 + hblank) * (speed + 2); calc_fps() 232 unsigned height, width, hblank, vblank; calc_speed() local 241 width = mt9v011_read(sd, R04_MT9V011_WIDTH); calc_speed() 245 row_time = width + 113 + hblank; calc_speed() 280 * NOTE: datasheet says that width (and height) should be filled with set_res() 281 * width-1. However, this doesn't work, since one pixel per line will set_res() 285 hstart = 20 + (640 - core->width) / 2; set_res() 287 mt9v011_write(sd, R04_MT9V011_WIDTH, core->width); set_res() 288 mt9v011_write(sd, R05_MT9V011_HBLANK, 771 - core->width); set_res() 342 v4l_bound_align_image(&fmt->width, 48, 639, 1, mt9v011_try_mbus_fmt() 397 core->width = fmt->width; mt9v011_s_mbus_fmt() 542 core->width = 640; mt9v011_probe()
|
/linux-4.1.27/include/xen/interface/io/ |
H A D | fbif.h | 48 int32_t width; /* rect width */ member in struct:xenfb_update 60 int32_t width; /* width in pixels */ member in struct:xenfb_resize 112 int32_t width; /* width of the framebuffer (in pixels) */ member in struct:xenfb_page
|
/linux-4.1.27/drivers/media/usb/cpia2/ |
H A D | cpia2_core.c | 622 cam->params.roi.width, cpia2_reset_camera() 802 target_kb = (cam->width * cam->height * 2 / 16384) * cpia2_reset_camera() 951 int width = cam->params.roi.width; set_default_user_mode() local 959 if ((width > STV_IMAGE_QCIF_COLS) set_default_user_mode() 968 if ((width > STV_IMAGE_CIF_COLS) set_default_user_mode() 1012 int cpia2_match_video_size(int width, int height) cpia2_match_video_size() argument 1014 if (width >= STV_IMAGE_VGA_COLS && height >= STV_IMAGE_VGA_ROWS) cpia2_match_video_size() 1017 if (width >= STV_IMAGE_CIF_COLS && height >= STV_IMAGE_CIF_ROWS) cpia2_match_video_size() 1020 if (width >= STV_IMAGE_QVGA_COLS && height >= STV_IMAGE_QVGA_ROWS) cpia2_match_video_size() 1023 if (width >= 288 && height >= 216) cpia2_match_video_size() 1026 if (width >= 256 && height >= 192) cpia2_match_video_size() 1029 if (width >= 224 && height >= 168) cpia2_match_video_size() 1032 if (width >= 192 && height >= 144) cpia2_match_video_size() 1035 if (width >= STV_IMAGE_QCIF_COLS && height >= STV_IMAGE_QCIF_ROWS) cpia2_match_video_size() 1055 cam->params.roi.width = STV_IMAGE_VGA_COLS; set_vw_size() 1057 cam->width = STV_IMAGE_VGA_COLS; set_vw_size() 1062 cam->params.roi.width = STV_IMAGE_CIF_COLS; set_vw_size() 1064 cam->width = STV_IMAGE_CIF_COLS; set_vw_size() 1069 cam->params.roi.width = STV_IMAGE_QVGA_COLS; set_vw_size() 1071 cam->width = STV_IMAGE_QVGA_COLS; set_vw_size() 1075 cam->params.roi.width = 288; set_vw_size() 1077 cam->width = 288; set_vw_size() 1081 cam->width = 256; set_vw_size() 1083 cam->params.roi.width = 256; set_vw_size() 1087 cam->width = 224; set_vw_size() 1089 cam->params.roi.width = 224; set_vw_size() 1093 cam->width = 192; set_vw_size() 1095 cam->params.roi.width = 192; set_vw_size() 1100 cam->params.roi.width = STV_IMAGE_QCIF_COLS; set_vw_size() 1102 cam->width = STV_IMAGE_QCIF_COLS; set_vw_size() 1150 int width = req_width; config_sensor_410() local 1156 if (width > STV_IMAGE_CIF_COLS) config_sensor_410() 1157 width = STV_IMAGE_CIF_COLS; config_sensor_410() 1161 image_size = cpia2_match_video_size(width, height); config_sensor_410() 1163 DBG("Config 410: width = %d, height = %d\n", width, height); config_sensor_410() 1167 width = cam->params.roi.width; config_sensor_410() 1170 DBG("After set_vw_size(), width = %d, height = %d\n", config_sensor_410() 1171 width, height); config_sensor_410() 1172 if (width <= 176 && height <= 144) { config_sensor_410() 1176 else if (width <= 320 && height <= 240) { config_sensor_410() 1269 cmd.buffer.registers[i++].value = cam->params.roi.width / 4; config_sensor_410() 1278 (u8) (((STV_IMAGE_QCIF_COLS / 4) - (width / 4)) / 2); config_sensor_410() 1281 (u8) (((STV_IMAGE_CIF_COLS / 4) - (width / 4)) / 2); config_sensor_410() 1336 int width = req_width; config_sensor_500() local 1340 image_size = cpia2_match_video_size(width, height); config_sensor_500() 1342 if (width > STV_IMAGE_CIF_COLS || height > STV_IMAGE_CIF_ROWS) config_sensor_500() 1344 else if (width > STV_IMAGE_QVGA_COLS || height > STV_IMAGE_QVGA_ROWS) config_sensor_500() 1346 else if (width > STV_IMAGE_QCIF_COLS || height > STV_IMAGE_QCIF_ROWS) config_sensor_500() 1353 width = cam->params.roi.width; config_sensor_500() 1360 DBG("image_size = %d, width = %d, height = %d, type = %d\n", config_sensor_500() 1361 image_size, width, height, image_type); config_sensor_500() 1397 /* Input width from VP */ config_sensor_500() 1406 DBG("Input width = %d\n", cmd.buffer.registers[i-1].value); config_sensor_500() 1442 cmd.buffer.registers[i++].value = width / 4; config_sensor_500() 1454 (u8) (((STV_IMAGE_VGA_COLS / 4) - (width / 4)) / 2); config_sensor_500() 1457 (u8) (((STV_IMAGE_QVGA_COLS / 4) - (width / 4)) / 2); config_sensor_500() 1460 (u8) (((STV_IMAGE_CIF_COLS / 4) - (width / 4)) / 2); config_sensor_500() 1463 (u8) (((STV_IMAGE_QCIF_COLS / 4) - (width / 4)) / 2); config_sensor_500() 2148 cam->params.roi.width = STV_IMAGE_VGA_COLS; reset_camera_struct() 2153 cam->params.roi.width = STV_IMAGE_CIF_COLS; reset_camera_struct() 2157 cam->width = cam->params.roi.width; reset_camera_struct()
|
H A D | cpia2_v4l.c | 363 switch (cpia2_match_video_size(f->fmt.pix.width, f->fmt.pix.height)) { cpia2_try_fmt_vid_cap() 365 f->fmt.pix.width = 640; cpia2_try_fmt_vid_cap() 369 f->fmt.pix.width = 352; cpia2_try_fmt_vid_cap() 373 f->fmt.pix.width = 320; cpia2_try_fmt_vid_cap() 377 f->fmt.pix.width = 288; cpia2_try_fmt_vid_cap() 381 f->fmt.pix.width = 256; cpia2_try_fmt_vid_cap() 385 f->fmt.pix.width = 224; cpia2_try_fmt_vid_cap() 389 f->fmt.pix.width = 192; cpia2_try_fmt_vid_cap() 394 f->fmt.pix.width = 176; cpia2_try_fmt_vid_cap() 430 DBG("Requested width = %d, height = %d\n", cpia2_s_fmt_vid_cap() 431 f->fmt.pix.width, f->fmt.pix.height); cpia2_s_fmt_vid_cap() 432 if (f->fmt.pix.width != cam->width || cpia2_s_fmt_vid_cap() 434 cam->width = f->fmt.pix.width; cpia2_s_fmt_vid_cap() 436 cam->params.roi.width = f->fmt.pix.width; cpia2_s_fmt_vid_cap() 465 f->fmt.pix.width = cam->width; cpia2_g_fmt_vid_cap() 495 c->bounds.width = cam->width; cpia2_cropcap() 499 c->defrect.width = cam->width; cpia2_cropcap() 573 u32 width; member in struct:__anon5792 596 fsize->discrete.width = cpia2_framesizes[fsize->index].width; cpia2_enum_framesizes() 620 if (fival->width == cpia2_framesizes[i].width && cpia2_enum_frameintervals() 1028 cam->width = cam->params.roi.width; reset_camera_struct_v4l()
|
/linux-4.1.27/drivers/gpu/drm/armada/ |
H A D | armada_drm.h | 32 static inline uint32_t armada_pitch(uint32_t width, uint32_t bpp) armada_pitch() argument 34 uint32_t pitch = bpp != 4 ? width * ((bpp + 7) / 8) : width / 2; armada_pitch()
|
/linux-4.1.27/drivers/gpu/drm/qxl/ |
H A D | qxl_dumb.c | 41 pitch = args->width * ((args->bpp + 1) / 8); qxl_mode_dumb_create() 56 surf.width = args->width; qxl_mode_dumb_create()
|
/linux-4.1.27/include/uapi/linux/ |
H A D | v4l2-mediabus.h | 20 * @width: frame width 29 __u32 width; member in struct:v4l2_mbus_framefmt
|
/linux-4.1.27/arch/arm/plat-pxa/include/plat/ |
H A D | dma.h | 49 #define DCMD_WIDTH1 (1 << 14) /* 1 byte width */ 50 #define DCMD_WIDTH2 (2 << 14) /* 2 byte width (HalfWord) */ 51 #define DCMD_WIDTH4 (3 << 14) /* 4 byte width (Word) */
|
/linux-4.1.27/drivers/mmc/core/ |
H A D | sd_ops.h | 15 int mmc_app_set_bus_width(struct mmc_card *card, int width);
|
/linux-4.1.27/drivers/media/usb/gspca/stv06xx/ |
H A D | stv06xx_hdcs.c | 77 int width, height; member in struct:hdcs::__anon5862 289 unsigned int width, unsigned int height) hdcs_set_size() 297 width = (width + 3) & ~0x3; hdcs_set_size() 300 if (width > hdcs->array.width) hdcs_set_size() 301 width = hdcs->array.width; hdcs_set_size() 319 x = hdcs->array.left + (hdcs->array.width - width) / 2; hdcs_set_size() 324 win[3] = (x + width) / 4 - 1; hdcs_set_size() 330 /* Update the current width and height */ hdcs_set_size() 331 hdcs->w = width; hdcs_set_size() 390 hdcs->array.width = HDCS_1X00_DEF_WIDTH; hdcs_probe_1x00() 452 hdcs->array.width = HDCS_1020_DEF_WIDTH; hdcs_probe_1020() 530 return hdcs_set_size(sd, hdcs->array.width, hdcs->array.height); hdcs_init() 288 hdcs_set_size(struct sd *sd, unsigned int width, unsigned int height) hdcs_set_size() argument
|
/linux-4.1.27/drivers/net/wireless/ath/ |
H A D | dfs_pattern_detector.h | 41 * @width: pulse duration in us 47 u8 width; member in struct:pulse_event 54 * @width_min: minimum radar pulse width in [us] 55 * @width_max: maximum radar pulse width in [us]
|
/linux-4.1.27/drivers/gpu/drm/cirrus/ |
H A D | cirrus_fbdev.c | 21 int x, int y, int width, int height) cirrus_dirty_update() 50 x2 = x + width - 1; cirrus_dirty_update() 88 memcpy_toio(bo->kmap.virtual + src_offset, afbdev->sysram + src_offset, width * bpp); cirrus_dirty_update() 102 cirrus_dirty_update(afbdev, rect->dx, rect->dy, rect->width, cirrus_fillrect() 111 cirrus_dirty_update(afbdev, area->dx, area->dy, area->width, cirrus_copyarea() 120 cirrus_dirty_update(afbdev, image->dx, image->dy, image->width, cirrus_imageblit() 150 if (!cirrus_check_framebuffer(cdev, mode_cmd->width, mode_cmd->height, cirrusfb_create_object() 179 mode_cmd.width = sizes->surface_width; cirrusfb_create() 181 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7) / 8); cirrusfb_create() 20 cirrus_dirty_update(struct cirrus_fbdev *afbdev, int x, int y, int width, int height) cirrus_dirty_update() argument
|
/linux-4.1.27/drivers/gpu/drm/udl/ |
H A D | udl_transfer.c | 37 * Sets new front buffer address and width 40 * for back and front buffer ptrs and width 48 const int width = *width_bytes / sizeof(unsigned long); 49 int identical = width; 50 int start = width; 51 int end = width; 56 for (j = 0; j < width; j++) { 63 for (k = width - 1; k > j; k--) { 70 identical = start + (width - end);
|
H A D | udl_fb.c | 144 int width, int height) udl_handle_damage() 176 width = DL_ALIGN_UP(width + (x-aligned_x), sizeof(unsigned long)); udl_handle_damage() 179 if ((width <= 0) || udl_handle_damage() 180 (x + width > fb->base.width) || udl_handle_damage() 189 x2 = x + width - 1; udl_handle_damage() 226 const int dev_byte_offset = (fb->base.width * bpp * i) + (x * bpp); udl_handle_damage() 246 atomic_add(width*height*bpp, &udl->bytes_rendered); udl_handle_damage() 293 udl_handle_damage(&ufbdev->ufb, rect->dx, rect->dy, rect->width, udl_fb_fillrect() 303 udl_handle_damage(&ufbdev->ufb, region->dx, region->dy, region->width, udl_fb_copyarea() 313 udl_handle_damage(&ufbdev->ufb, image->dx, image->dy, image->width, udl_fb_imageblit() 489 mode_cmd.width = sizes->surface_width; udlfb_create() 491 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7) / 8); udlfb_create() 544 fb->width, fb->height, udlfb_create() 143 udl_handle_damage(struct udl_framebuffer *fb, int x, int y, int width, int height) udl_handle_damage() argument
|
/linux-4.1.27/drivers/video/fbdev/via/ |
H A D | accel.c | 53 static int hw_bitblt_1(void __iomem *engine, u8 op, u32 width, u32 height, hw_bitblt_1() argument 69 src_x += width - 1; hw_bitblt_1() 70 dst_x += width - 1; hw_bitblt_1() 116 if ((width - 1) & 0xFFFFF000 || (height - 1) & 0xFFFFF000) { hw_bitblt_1() 117 printk(KERN_WARNING "hw_bitblt_1: Unsupported width/height " hw_bitblt_1() 118 "%d %d\n", width, height); hw_bitblt_1() 121 tmp = (width - 1) | ((height - 1) << 16); hw_bitblt_1() 177 tmp = (width * height * (op == VIA_BITBLT_MONO ? 1 : (dst_bpp >> 3)) + hw_bitblt_1() 186 static int hw_bitblt_2(void __iomem *engine, u8 op, u32 width, u32 height, hw_bitblt_2() argument 202 src_x += width - 1; hw_bitblt_2() 203 dst_x += width - 1; hw_bitblt_2() 242 if ((width - 1) & 0xFFFFF000 || (height - 1) & 0xFFFFF000) { hw_bitblt_2() 243 printk(KERN_WARNING "hw_bitblt_2: Unsupported width/height " hw_bitblt_2() 244 "%d %d\n", width, height); hw_bitblt_2() 247 tmp = (width - 1) | ((height - 1) << 16); hw_bitblt_2() 309 tmp = (width * height * (op == VIA_BITBLT_MONO ? 1 : (dst_bpp >> 3)) + hw_bitblt_2()
|
/linux-4.1.27/drivers/media/common/ |
H A D | btcx-risc.h | 26 void btcx_calc_skips(int line, int width, int *maxy,
|
/linux-4.1.27/include/linux/ |
H A D | rslib.h | 57 /* General purpose RS codec, 8-bit data width, symbol width 1-15 bit */ 68 /* General purpose RS codec, 16-bit data width, symbol width 1-15 bit */
|
H A D | i2c-ocores.h | 16 u32 reg_io_width; /* register io read/write width */
|
/linux-4.1.27/arch/mips/include/asm/txx9/ |
H A D | ndfmc.h | 20 unsigned int spw; /* strobe pulse width in nanosecond */
|
/linux-4.1.27/include/linux/mtd/ |
H A D | latch-addr-flash.h | 17 unsigned int width; member in struct:latch_addr_flash_data
|
H A D | fsmc.h | 145 * @width: bus width 156 unsigned int width; member in struct:fsmc_nand_platform_data 169 unsigned long base, uint32_t bank, uint32_t width); 172 unsigned int width);
|
/linux-4.1.27/drivers/media/pci/cx25821/ |
H A D | cx25821-video.c | 149 unsigned size = (chan->fmt->depth * chan->width * chan->height) >> 3; cx25821_queue_setup() 172 buf->bpl = (chan->fmt->depth * chan->width) >> 3; cx25821_buffer_prepare() 174 buf->bpl = (chan->fmt->depth >> 3) * chan->width; cx25821_buffer_prepare() 234 buf, buf->vb.v4l2_buf.index, chan->width, chan->height, cx25821_buffer_prepare() 338 f->fmt.pix.width = chan->width; cx25821_vidioc_g_fmt_vid_cap() 342 f->fmt.pix.bytesperline = (chan->width * chan->fmt->depth) >> 3; cx25821_vidioc_g_fmt_vid_cap() 364 w = f->fmt.pix.width; cx25821_vidioc_try_fmt_vid_cap() 379 f->fmt.pix.width = w; cx25821_vidioc_try_fmt_vid_cap() 380 f->fmt.pix.bytesperline = (f->fmt.pix.width * fmt->depth) >> 3; cx25821_vidioc_try_fmt_vid_cap() 402 chan->width = f->fmt.pix.width; vidioc_s_fmt_vid_cap() 413 if (chan->width == 320 || chan->width == 352) vidioc_s_fmt_vid_cap() 418 chan->cif_width = chan->width; vidioc_s_fmt_vid_cap() 419 medusa_set_resolution(dev, chan->width, SRAM_CH00); vidioc_s_fmt_vid_cap() 475 chan->width = 720; cx25821_vidioc_s_std() 564 f->fmt.pix.width = 720; cx25821_vidioc_try_fmt_vid_out() 567 f->fmt.pix.bytesperline = (f->fmt.pix.width * fmt->depth) >> 3; cx25821_vidioc_try_fmt_vid_out() 586 chan->width = f->fmt.pix.width; vidioc_s_fmt_vid_out() 728 chan->width = 720; cx25821_video_register()
|
/linux-4.1.27/drivers/staging/media/omap4iss/ |
H A D | iss_ipipe.c | 105 (format->width - 1) & IPIPE_SRC_HSZ_MASK); ipipe_configure() 201 unsigned int width = fmt->width; ipipe_try_format() local 217 fmt->width = clamp_t(u32, width, 1, 8192); ipipe_try_format() 227 fmt->width = clamp_t(u32, width, 32, fmt->width); ipipe_try_format() 281 format.width = 1; ipipe_enum_frame_size() 284 fse->min_width = format.width; ipipe_enum_frame_size() 291 format.width = -1; ipipe_enum_frame_size() 294 fse->max_width = format.width; ipipe_enum_frame_size() 362 if (source_fmt->format.width != sink_fmt->format.width || ipipe_link_validate() 389 format.format.width = 4096; ipipe_init_formats()
|
/linux-4.1.27/drivers/media/platform/davinci/ |
H A D | vpif.c | 54 .width = 720, 71 .width = 720, 88 .width = 1280, 105 .width = 1280, 122 .width = 1920, 142 .width = 1920, 162 .width = 1920, 181 .width = 720, 201 .width = 720, 277 * L5, L7 L9, L11 in VPIF Register , also write width and height 352 /* Set data width */ config_vpif_params()
|
/linux-4.1.27/drivers/media/usb/gspca/m5602/ |
H A D | m5602_po1030.c | 180 int width = cam->cam_mode[sd->gspca_dev.curr_mode].width; po1030_start() local 185 switch (width) { po1030_start() 192 data = ((width + 3) >> 8) & 0xff; po1030_start() 197 data = (width + 3) & 0xff; po1030_start() 211 width -= 1; po1030_start() 220 data = ((width + 7) >> 8) & 0xff; po1030_start() 225 data = (width + 7) & 0xff; po1030_start() 239 width -= 2; po1030_start() 291 err = m5602_write_bridge(sd, M5602_XB_HSYNC_PARA, (width >> 8) & 0xff); po1030_start() 295 err = m5602_write_bridge(sd, M5602_XB_HSYNC_PARA, (width & 0xff)); po1030_start()
|
/linux-4.1.27/drivers/media/platform/exynos-gsc/ |
H A D | gsc-core.c | 229 void gsc_set_frame_size(struct gsc_frame *frame, int width, int height) gsc_set_frame_size() argument 231 frame->f_width = width; gsc_set_frame_size() 233 frame->crop.width = width; gsc_set_frame_size() 291 remainder = s_frame->crop.width % (*wratio * walign); gsc_check_src_scale_info() 293 s_frame->crop.width -= remainder; gsc_check_src_scale_info() 294 gsc_cal_prescaler_ratio(var, s_frame->crop.width, tx, wratio); gsc_check_src_scale_info() 295 pr_info("cropped src width size is recalculated from %d to %d", gsc_check_src_scale_info() 296 s_frame->crop.width + remainder, s_frame->crop.width); gsc_check_src_scale_info() 400 pr_debug("user put w: %d, h: %d", pix_mp->width, pix_mp->height); gsc_try_fmt_mplane() 438 tmp_w = pix_mp->width; gsc_try_fmt_mplane() 441 v4l_bound_align_image(&pix_mp->width, min_w, max_w, mod_x, gsc_try_fmt_mplane() 443 if (tmp_w != pix_mp->width || tmp_h != pix_mp->height) gsc_try_fmt_mplane() 445 tmp_w, tmp_h, pix_mp->width, pix_mp->height); gsc_try_fmt_mplane() 449 if (pix_mp->width >= 1280) /* HD */ gsc_try_fmt_mplane() 456 int bpl = (pix_mp->width * fmt->depth[i]) >> 3; gsc_try_fmt_mplane() 479 pix_mp->width = frame->f_width; gsc_g_fmt_mplane() 531 pr_debug("user put w: %d, h: %d", cr->c.width, cr->c.height); gsc_try_crop() 542 tmp_w = cr->c.width; gsc_try_crop() 568 tmp_h = cr->c.width; gsc_try_crop() 585 &cr->c.width, &cr->c.height); gsc_try_crop() 588 &cr->c.width, &cr->c.height); gsc_try_crop() 603 cr->c.left, cr->c.top, cr->c.width, cr->c.height, max_w, max_h); gsc_try_crop() 645 ret = gsc_check_scaler_ratio(variant, s_frame->crop.width, gsc_set_scaler_info() 646 s_frame->crop.height, d_frame->crop.width, d_frame->crop.height, gsc_set_scaler_info() 655 ty = d_frame->crop.width; gsc_set_scaler_info() 658 tx = d_frame->crop.width; gsc_set_scaler_info() 667 ret = gsc_cal_prescaler_ratio(variant, s_frame->crop.width, gsc_set_scaler_info() 687 sc->main_hratio = (s_frame->crop.width << 16) / tx; gsc_set_scaler_info() 691 s_frame->crop.width, s_frame->crop.height, tx, ty); gsc_set_scaler_info() 722 ctx->s_frame.crop.width, __gsc_s_ctrl() 724 ctx->d_frame.crop.width, __gsc_s_ctrl()
|
/linux-4.1.27/drivers/media/pci/saa7134/ |
H A D | saa7134-video.c | 394 dev->crop_bounds.width = norm->h_stop - norm->h_start +1; set_tvnorm() 395 dev->crop_defrect.width = norm->h_stop - norm->h_start +1; set_tvnorm() 550 int width, int height, int interlace) set_size() 559 h_stop = (dev->crop_current.left + dev->crop_current.width -1); set_size() 571 prescale = dev->crop_current.width / width; set_size() 574 xscale = 1024 * dev->crop_current.width / prescale / width; set_size() 582 saa_writeb(SAA7134_VIDEO_PIXELS1(task), width & 0xff); set_size() 583 saa_writeb(SAA7134_VIDEO_PIXELS2(task), width >> 8); set_size() local 662 col[cols].position = clip_range(clips[i].c.left+clips[i].c.width); setup_clipping() 687 if (win->w.width < 48) verify_preview() 688 win->w.width = 48; verify_preview() 697 maxw = dev->crop_current.width; verify_preview() 716 if (win->w.width > maxw) verify_preview() 717 win->w.width = maxw; verify_preview() 734 dev->win.w.width, dev->win.w.height, start_preview() 739 set_size(dev, TASK_B, dev->win.w.width, dev->win.w.height, start_preview() 798 set_size(dev, TASK_A, dev->width, dev->height, buffer_activate() 809 bpl = dev->width; buffer_activate() 811 bpl = (dev->width * dev->fmt->depth) / 8; buffer_activate() 891 size = (dev->width * dev->height * dev->fmt->depth) >> 3; buffer_prepare() 908 int size = dev->fmt->depth * dev->width * dev->height >> 3; queue_setup() 910 if (dev->width < 48 || queue_setup() 912 dev->width/4 > dev->crop_current.width || queue_setup() 914 dev->width > dev->crop_bounds.width || queue_setup() 1210 f->fmt.pix.width = dev->width; saa7134_g_fmt_vid_cap() 1215 f->fmt.pix.bytesperline = f->fmt.pix.width; saa7134_g_fmt_vid_cap() 1218 (f->fmt.pix.width * dev->fmt->depth) / 8; saa7134_g_fmt_vid_cap() 1220 (f->fmt.pix.height * f->fmt.pix.width * dev->fmt->depth) / 8; saa7134_g_fmt_vid_cap() 1268 maxw = min(dev->crop_current.width*4, dev->crop_bounds.width); saa7134_try_fmt_vid_cap() 1287 if (f->fmt.pix.width < 48) saa7134_try_fmt_vid_cap() 1288 f->fmt.pix.width = 48; saa7134_try_fmt_vid_cap() 1291 if (f->fmt.pix.width > maxw) saa7134_try_fmt_vid_cap() 1292 f->fmt.pix.width = maxw; saa7134_try_fmt_vid_cap() 1295 f->fmt.pix.width &= ~0x03; saa7134_try_fmt_vid_cap() 1297 f->fmt.pix.bytesperline = f->fmt.pix.width; saa7134_try_fmt_vid_cap() 1300 (f->fmt.pix.width * fmt->depth) / 8; saa7134_try_fmt_vid_cap() 1302 (f->fmt.pix.height * f->fmt.pix.width * fmt->depth) / 8; saa7134_try_fmt_vid_cap() 1334 dev->width = f->fmt.pix.width; saa7134_s_fmt_vid_cap() 1640 if (c->left > b->left + b->width) saa7134_s_crop() 1641 c->left = b->left + b->width; saa7134_s_crop() 1642 if (c->width > b->left - c->left + b->width) saa7134_s_crop() 1643 c->width = b->left - c->left + b->width; saa7134_s_crop() 1793 dev->ovbuf.fmt.width*fmt->depth/8; saa7134_s_fbuf() 2067 dev->width = 720; saa7134_video_init1() 2070 dev->win.w.width = dev->width; saa7134_video_init1() 2073 dev->ovbuf.fmt.width = dev->width; saa7134_video_init1() 549 set_size(struct saa7134_dev *dev, int task, int width, int height, int interlace) set_size() argument
|
/linux-4.1.27/drivers/misc/eeprom/ |
H A D | eeprom_93cx6.c | 194 command = (PCI_EEPROM_READ_OPCODE << eeprom->width) | word; eeprom_93cx6_read() 196 PCI_EEPROM_WIDTH_OPCODE + eeprom->width); eeprom_93cx6_read() 260 command = (PCI_EEPROM_READ_OPCODE << (eeprom->width + 1)) | byte; eeprom_93cx6_readb() 262 PCI_EEPROM_WIDTH_OPCODE + eeprom->width + 1); eeprom_93cx6_readb() 315 command <<= (eeprom->width - 2); eeprom_93cx6_wren() 318 PCI_EEPROM_WIDTH_OPCODE + eeprom->width); eeprom_93cx6_wren() 345 command = PCI_EEPROM_WRITE_OPCODE << eeprom->width; eeprom_93cx6_write() 350 PCI_EEPROM_WIDTH_OPCODE + eeprom->width); eeprom_93cx6_write()
|
/linux-4.1.27/drivers/gpu/drm/mgag200/ |
H A D | mgag200_fb.c | 23 int x, int y, int width, int height) mga_dirty_update() 53 x2 = x + width - 1; mga_dirty_update() 105 mga_dirty_update(mfbdev, rect->dx, rect->dy, rect->width, mga_fillrect() 114 mga_dirty_update(mfbdev, area->dx, area->dy, area->width, mga_copyarea() 123 mga_dirty_update(mfbdev, image->dx, image->dy, image->width, mga_imageblit() 175 mode_cmd.width = sizes->surface_width; mgag200fb_create() 177 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7) / 8); mgag200fb_create() 243 fb->width, fb->height); mgag200fb_create() 22 mga_dirty_update(struct mga_fbdev *mfbdev, int x, int y, int width, int height) mga_dirty_update() argument
|
/linux-4.1.27/drivers/gpu/drm/radeon/ |
H A D | r100_track.h | 27 unsigned width; member in struct:r100_cs_cube_info 39 unsigned width; member in struct:r100_cs_track_texture
|
/linux-4.1.27/arch/mips/include/asm/mach-bcm63xx/ |
H A D | bcm63xx_dev_enet.h | 52 /* DMA channel register width */ 90 /* DMA channel register width */
|
/linux-4.1.27/arch/mn10300/unit-asb2303/ |
H A D | flash.c | 48 .width = 2, 71 .width = 4,
|
/linux-4.1.27/arch/avr32/boards/merisc/ |
H A D | flash.c | 73 .width = 2, 78 .width = 2,
|
/linux-4.1.27/arch/cris/include/arch-v32/arch/hwregs/asm/ |
H A D | irq_nmi_defs_asm.h | 32 #define REG_MASK_X_( width, lsb ) (((1 << width)-1) << lsb)
|
/linux-4.1.27/arch/cris/include/arch-v32/arch/hwregs/iop/asm/ |
H A D | iop_version_defs_asm.h | 32 #define REG_MASK_X_( width, lsb ) (((1 << width)-1) << lsb)
|
/linux-4.1.27/arch/cris/include/arch-v32/mach-a3/mach/hwregs/iop/asm/ |
H A D | iop_version_defs_asm.h | 29 #define REG_MASK_X_( width, lsb ) (((1 << width)-1) << lsb)
|
/linux-4.1.27/arch/frv/mb93090-mb00/ |
H A D | flash.c | 38 .width = 2, 61 .width = 2,
|
/linux-4.1.27/arch/arm/plat-pxa/ |
H A D | dma.c | 87 int i, max_show = 20, burst, width; dbg_show_descriptors() local 102 width = (1 << ((dcmd >> 14) & 0x3)) >> 1; dbg_show_descriptors() 109 seq_printf(s, "\tDCMD = %08x (%s%s%s%s%s%s%sburst=%d width=%d len=%d)\n", dbg_show_descriptors() 114 DCMD_STR(ENDIAN), burst, width, dbg_show_descriptors() 135 int burst, width; dbg_show_chan_state() local 141 width = (1 << ((dcmd >> 14) & 0x3)) >> 1; dbg_show_chan_state() 156 seq_printf(s, "\tDCMD = %08x (%s%s%s%s%s%s%sburst=%d width=%d len=%d)\n", dbg_show_chan_state() 161 DCMD_STR(ENDIAN), burst, width, dcmd & DCMD_LENGTH); dbg_show_chan_state()
|
/linux-4.1.27/arch/arm/mach-gemini/ |
H A D | devices.c | 76 pflash_platform_data.width = 2; platform_register_pflash() 78 pflash_platform_data.width = 1; platform_register_pflash()
|
/linux-4.1.27/drivers/clk/tegra/ |
H A D | clk-super.c | 40 #define super_state_to_src_shift(m, s) ((m->width * s)) 41 #define super_state_to_src_mask(m) (((1 << m->width) - 1)) 133 u8 width, u8 pllx_index, u8 div2_index, spinlock_t *lock) tegra_clk_register_super_mux() 155 super->width = width; tegra_clk_register_super_mux() 130 tegra_clk_register_super_mux(const char *name, const char **parent_names, u8 num_parents, unsigned long flags, void __iomem *reg, u8 clk_super_flags, u8 width, u8 pllx_index, u8 div2_index, spinlock_t *lock) tegra_clk_register_super_mux() argument
|
/linux-4.1.27/arch/mips/bcm63xx/ |
H A D | irq.c | 75 #define BUILD_IPIC_INTERNAL(width) \ 76 void __dispatch_internal_##width(int cpu) \ 78 u32 pending[width / 32]; \ 87 for (src = 0, tgt = (width / 32); src < (width / 32); src++) { \ 105 *next = (*next + 1) & (width - 1); \ 113 static void __internal_irq_mask_##width(struct irq_data *d) \ 117 unsigned reg = (irq / 32) ^ (width/32 - 1); \ 134 static void __internal_irq_unmask_##width(struct irq_data *d, \ 139 unsigned reg = (irq / 32) ^ (width/32 - 1); \
|
/linux-4.1.27/sound/soc/pxa/ |
H A D | magician.c | 93 unsigned int acps, acds, width; magician_playback_hw_params() local 97 width = snd_pcm_format_physical_width(params_format(params)); magician_playback_hw_params() 100 * rate = SSPSCLK / (2 * width(16 or 32)) magician_playback_hw_params() 107 switch (width) { magician_playback_hw_params() 119 switch (width) { magician_playback_hw_params() 131 switch (width) { magician_playback_hw_params() 143 switch (width) { magician_playback_hw_params() 155 switch (width) { magician_playback_hw_params() 168 switch (width) { magician_playback_hw_params() 194 ret = snd_soc_dai_set_tdm_slot(cpu_dai, 1, 0, 1, width); magician_playback_hw_params()
|
/linux-4.1.27/drivers/video/fbdev/omap2/dss/ |
H A D | dispc.c | 79 u16 width, u16 height, u16 out_width, u16 out_height, 84 u16 width, u16 height, u16 out_width, u16 out_height, 754 static void dispc_ovl_set_input_size(enum omap_plane plane, int width, dispc_ovl_set_input_size() argument 757 u32 val = FLD_VAL(height - 1, 26, 16) | FLD_VAL(width - 1, 10, 0); dispc_ovl_set_input_size() 765 static void dispc_ovl_set_output_size(enum omap_plane plane, int width, dispc_ovl_set_output_size() argument 772 val = FLD_VAL(height - 1, 26, 16) | FLD_VAL(width - 1, 10, 0); dispc_ovl_set_output_size() 1124 static void dispc_mgr_set_size(enum omap_channel channel, u16 width, dispc_mgr_set_size() argument 1130 FLD_VAL(width - 1, dispc.feat->mgr_width_start, 0); dispc_mgr_set_size() 1809 u16 width, u16 height, calc_vrfb_rotation_offset() 1835 width, height); calc_vrfb_rotation_offset() 1845 * If the pixel format is YUV or UYVY divide the width calc_vrfb_rotation_offset() 1850 width = width >> 1; calc_vrfb_rotation_offset() 1860 (y_predecim * screen_width - x_predecim * width) + calc_vrfb_rotation_offset() 1867 /* If the pixel format is YUV or UYVY divide the width calc_vrfb_rotation_offset() 1872 width = width >> 1; calc_vrfb_rotation_offset() 1881 (y_predecim * screen_width + x_predecim * width) - calc_vrfb_rotation_offset() 1894 u16 width, u16 height, calc_dma_rotation_offset() 1917 width, height); calc_dma_rotation_offset() 1919 /* width & height are overlay sizes, convert to fb sizes */ calc_dma_rotation_offset() 1922 fbw = width; calc_dma_rotation_offset() 1926 fbh = width; calc_dma_rotation_offset() 2048 static void calc_tiler_rotation_offset(u16 screen_width, u16 width, calc_tiler_rotation_offset() argument 2067 DSSDBG("scrw %d, width %d\n", screen_width, width); calc_tiler_rotation_offset() 2078 *row_inc = pixinc(1 + (y_predecim * screen_width - width * x_predecim) + calc_tiler_rotation_offset() 2093 u16 width, u16 height, u16 out_width, u16 out_height, check_horiz_timing_omap3() 2107 if (out_width < width) check_horiz_timing_omap3() 2124 DSSDBG("(nonactive - pos_x) * pcd = %llu max(0, DS - 2) * width = %d\n", check_horiz_timing_omap3() 2125 val, max(0, ds - 2) * width); check_horiz_timing_omap3() 2126 if (val < max(0, ds - 2) * width) check_horiz_timing_omap3() 2135 DSSDBG("nonactive * pcd = %llu, max(0, DS - 1) * width = %d\n", check_horiz_timing_omap3() 2136 val, max(0, ds - 1) * width); check_horiz_timing_omap3() 2137 if (val < max(0, ds - 1) * width) check_horiz_timing_omap3() 2144 const struct omap_video_timings *mgr_timings, u16 width, calc_core_clk_five_taps() 2151 if (height <= out_height && width <= out_width) calc_core_clk_five_taps() 2171 if (width > out_width) { calc_core_clk_five_taps() 2172 tmp = pclk * width; calc_core_clk_five_taps() 2183 static unsigned long calc_core_clk_24xx(unsigned long pclk, u16 width, calc_core_clk_24xx() argument 2186 if (height > out_height && width > out_width) calc_core_clk_24xx() 2192 static unsigned long calc_core_clk_34xx(unsigned long pclk, u16 width, calc_core_clk_34xx() argument 2202 if (width > 3 * out_width) calc_core_clk_34xx() 2204 else if (width > 2 * out_width) calc_core_clk_34xx() 2206 else if (width > out_width) calc_core_clk_34xx() 2218 static unsigned long calc_core_clk_44xx(unsigned long pclk, u16 width, calc_core_clk_44xx() argument 2230 if (width > out_width) calc_core_clk_44xx() 2231 return DIV_ROUND_UP(pclk, out_width) * width; calc_core_clk_44xx() 2238 u16 width, u16 height, u16 out_width, u16 out_height, dispc_ovl_calc_scaling_24xx() 2253 in_width = width / *decim_x; dispc_ovl_calc_scaling_24xx() 2271 DSSERR("Cannot scale max input width exceeded"); dispc_ovl_calc_scaling_24xx() 2279 u16 width, u16 height, u16 out_width, u16 out_height, dispc_ovl_calc_scaling_34xx() 2292 in_width = width / *decim_x; dispc_ovl_calc_scaling_34xx() 2332 if (check_horiz_timing_omap3(pclk, lclk, mgr_timings, pos_x, width, dispc_ovl_calc_scaling_34xx() 2340 DSSERR("width exceeds maximum width possible"); dispc_ovl_calc_scaling_34xx() 2353 u16 width, u16 height, u16 out_width, u16 out_height, dispc_ovl_calc_scaling_44xx() 2372 *decim_x = DIV_ROUND_UP(width, in_width_max); dispc_ovl_calc_scaling_44xx() 2379 in_width = width / *decim_x; dispc_ovl_calc_scaling_44xx() 2384 DSSERR("Cannot scale width exceeds max line width"); dispc_ovl_calc_scaling_44xx() 2396 u16 width, u16 height, u16 out_width, u16 out_height, dispc_ovl_calc_scaling() 2406 if (width == out_width && height == out_height) dispc_ovl_calc_scaling() 2436 decim_x = DIV_ROUND_UP(DIV_ROUND_UP(width, out_width), maxdownscale); dispc_ovl_calc_scaling() 2439 if (decim_x > *x_predecim || out_width > width * 8) dispc_ovl_calc_scaling() 2445 ret = dispc.feat->calc_scaling(pclk, lclk, mgr_timings, width, height, dispc_ovl_calc_scaling() 2477 u16 in_width = oi->width; dispc_ovl_check() 2484 out_width = oi->out_width == 0 ? oi->width : oi->out_width; dispc_ovl_check() 2511 u16 screen_width, int pos_x, int pos_y, u16 width, u16 height, dispc_ovl_setup_common() 2527 u16 in_width = width; dispc_ovl_setup_common() 2536 out_width = out_width == 0 ? width : out_width; dispc_ovl_setup_common() 2678 oi->pos_y, oi->width, oi->height, oi->out_width, oi->out_height, dispc_ovl_setup() 2682 oi->screen_width, oi->pos_x, oi->pos_y, oi->width, oi->height, dispc_ovl_setup() 2708 in_height, wi->width, wi->height, wi->color_mode, wi->rotation, dispc_wb_setup() 2712 wi->buf_width, pos_x, pos_y, in_width, in_height, wi->width, dispc_wb_setup() 2946 static bool _dispc_mgr_size_ok(u16 width, u16 height) _dispc_mgr_size_ok() argument 2948 return width <= dispc.feat->mgr_width_max && _dispc_mgr_size_ok() 1807 calc_vrfb_rotation_offset(u8 rotation, bool mirror, u16 screen_width, u16 width, u16 height, enum omap_color_mode color_mode, bool fieldmode, unsigned int field_offset, unsigned *offset0, unsigned *offset1, s32 *row_inc, s32 *pix_inc, int x_predecim, int y_predecim) calc_vrfb_rotation_offset() argument 1892 calc_dma_rotation_offset(u8 rotation, bool mirror, u16 screen_width, u16 width, u16 height, enum omap_color_mode color_mode, bool fieldmode, unsigned int field_offset, unsigned *offset0, unsigned *offset1, s32 *row_inc, s32 *pix_inc, int x_predecim, int y_predecim) calc_dma_rotation_offset() argument 2091 check_horiz_timing_omap3(unsigned long pclk, unsigned long lclk, const struct omap_video_timings *t, u16 pos_x, u16 width, u16 height, u16 out_width, u16 out_height, bool five_taps) check_horiz_timing_omap3() argument 2143 calc_core_clk_five_taps(unsigned long pclk, const struct omap_video_timings *mgr_timings, u16 width, u16 height, u16 out_width, u16 out_height, enum omap_color_mode color_mode) calc_core_clk_five_taps() argument 2236 dispc_ovl_calc_scaling_24xx(unsigned long pclk, unsigned long lclk, const struct omap_video_timings *mgr_timings, u16 width, u16 height, u16 out_width, u16 out_height, enum omap_color_mode color_mode, bool *five_taps, int *x_predecim, int *y_predecim, int *decim_x, int *decim_y, u16 pos_x, unsigned long *core_clk, bool mem_to_mem) dispc_ovl_calc_scaling_24xx() argument 2277 dispc_ovl_calc_scaling_34xx(unsigned long pclk, unsigned long lclk, const struct omap_video_timings *mgr_timings, u16 width, u16 height, u16 out_width, u16 out_height, enum omap_color_mode color_mode, bool *five_taps, int *x_predecim, int *y_predecim, int *decim_x, int *decim_y, u16 pos_x, unsigned long *core_clk, bool mem_to_mem) dispc_ovl_calc_scaling_34xx() argument 2351 dispc_ovl_calc_scaling_44xx(unsigned long pclk, unsigned long lclk, const struct omap_video_timings *mgr_timings, u16 width, u16 height, u16 out_width, u16 out_height, enum omap_color_mode color_mode, bool *five_taps, int *x_predecim, int *y_predecim, int *decim_x, int *decim_y, u16 pos_x, unsigned long *core_clk, bool mem_to_mem) dispc_ovl_calc_scaling_44xx() argument 2393 dispc_ovl_calc_scaling(unsigned long pclk, unsigned long lclk, enum omap_overlay_caps caps, const struct omap_video_timings *mgr_timings, u16 width, u16 height, u16 out_width, u16 out_height, enum omap_color_mode color_mode, bool *five_taps, int *x_predecim, int *y_predecim, u16 pos_x, enum omap_dss_rotation_type rotation_type, bool mem_to_mem) dispc_ovl_calc_scaling() argument 2509 dispc_ovl_setup_common(enum omap_plane plane, enum omap_overlay_caps caps, u32 paddr, u32 p_uv_addr, u16 screen_width, int pos_x, int pos_y, u16 width, u16 height, u16 out_width, u16 out_height, enum omap_color_mode color_mode, u8 rotation, bool mirror, u8 zorder, u8 pre_mult_alpha, u8 global_alpha, enum omap_dss_rotation_type rotation_type, bool replication, const struct omap_video_timings *mgr_timings, bool mem_to_mem) dispc_ovl_setup_common() argument
|