Home
last modified time | relevance | path

Searched refs:width (Results 1 – 200 of 2177) sorted by relevance

1234567891011

/linux-4.1.27/drivers/media/platform/omap/
Domap_voutlib.c46 crop->width = (pix->width < fbuf->fmt.width) ? in omap_vout_default_crop()
47 pix->width : fbuf->fmt.width; in omap_vout_default_crop()
50 crop->width &= ~1; in omap_vout_default_crop()
52 crop->left = ((pix->width - crop->width) >> 1) & ~1; in omap_vout_default_crop()
75 try_win.width += try_win.left; in omap_vout_try_window()
82 try_win.width = (try_win.width < fbuf->fmt.width) ? in omap_vout_try_window()
83 try_win.width : fbuf->fmt.width; in omap_vout_try_window()
86 if (try_win.left + try_win.width > fbuf->fmt.width) in omap_vout_try_window()
87 try_win.width = fbuf->fmt.width - try_win.left; in omap_vout_try_window()
90 try_win.width &= ~1; in omap_vout_try_window()
[all …]
Domap_vout_vrfb.c212 vout->smsshado_phy_addr[i], vout->pix.width, in omap_vout_vrfb_buffer_setup()
244 (vout->pix.width * vout->bpp)) + 1; in omap_vout_prepare_vrfb()
251 elem_count = vout->pix.width * vout->bpp; in omap_vout_prepare_vrfb()
330 cleft = (pix->width - crop->width) - crop->left; in omap_vout_calculate_vrfb_offset()
332 line_length = pix->width; in omap_vout_calculate_vrfb_offset()
346 ((crop->width / (vr_ps)) - 1) * ps); in omap_vout_calculate_vrfb_offset()
374 (line_length * ((crop->width / vr_ps) - 1) * in omap_vout_calculate_vrfb_offset()
391 ((crop->width / vr_ps) - 1) * ps; in omap_vout_calculate_vrfb_offset()
/linux-4.1.27/drivers/media/platform/soc_camera/
Dsoc_scale_crop.c29 return r1->width < r2->width || r1->height < r2->height; in is_smaller()
36 r1->left + r1->width < r2->left + r2->width || in is_inside()
69 if (rect->width < subrect->width) in update_subrect()
70 subrect->width = rect->width; in update_subrect()
77 else if (rect->left + rect->width > in update_subrect()
78 subrect->left + subrect->width) in update_subrect()
79 subrect->left = rect->left + rect->width - in update_subrect()
80 subrect->width; in update_subrect()
104 unsigned int width, height; in soc_camera_client_s_crop() local
118 rect->width, rect->height, rect->left, rect->top); in soc_camera_client_s_crop()
[all …]
Dsh_mobile_ceu_camera.c141 unsigned int width; member
230 ret = soc_mbus_bytes_per_line(fmt->fmt.pix.width, in sh_mobile_ceu_videobuf_setup()
680 unsigned int height, width, cdwdr_width, in_width, in_height; in sh_mobile_ceu_set_rect() local
692 width = icd->user_width; in sh_mobile_ceu_set_rect()
695 in_width = cam->width; in sh_mobile_ceu_set_rect()
711 in_width = cam->width * w_factor; in sh_mobile_ceu_set_rect()
737 (in_height << 16) | in_width, (height << 16) | width, in sh_mobile_ceu_set_rect()
743 ceu_write(pcdev, CFSZR, (height << 16) | width); in sh_mobile_ceu_set_rect()
1102 while ((mf.width > pcdev->max_width || in sh_mobile_ceu_get_formats()
1105 mf.width = 2560 >> shift; in sh_mobile_ceu_get_formats()
[all …]
Drcar_vin.c507 unsigned int width; member
547 ret = soc_mbus_bytes_per_line(fmt->fmt.pix.width, in rcar_vin_videobuf_setup()
644 iowrite32(ALIGN(cam->width * cam->height, 0x80), in rcar_vin_setup()
1061 cam->width, cam->height, cam->vin_left, cam->vin_top); in rcar_vin_set_rect()
1063 cam_subrect->width, cam_subrect->height, in rcar_vin_set_rect()
1068 iowrite32((left_offset + cam_subrect->width - 1) << dsize, in rcar_vin_set_rect()
1093 if (cam_subrect->width != cam->out_width) in rcar_vin_set_rect()
1094 value = (4096 * cam_subrect->width) / cam->out_width; in rcar_vin_set_rect()
1359 rect.width = mf.width; in rcar_vin_get_formats()
1370 if (mf.width <= VIN_MAX_WIDTH && in rcar_vin_get_formats()
[all …]
Dmx3_camera.c208 ret = soc_mbus_bytes_per_line(fmt->fmt.pix.width, in mx3_videobuf_setup()
725 unsigned int width, unsigned int height, in configure_geometry() argument
739 width = width * num / den; in configure_geometry()
743 width_field = width - 1; in configure_geometry()
784 static inline void stride_align(__u32 *width) in stride_align() argument
786 if (ALIGN(*width, 8) < 4096) in stride_align()
787 *width = ALIGN(*width, 8); in stride_align()
789 *width = *width & ~7; in stride_align()
807 soc_camera_limit_side(&rect->left, &rect->width, 0, 2, 4096); in mx3_camera_set_crop()
822 if (mf.width & 7) { in mx3_camera_set_crop()
[all …]
Dsoc_camera_platform.c44 mf->width = p->format.width; in soc_camera_platform_fill_fmt()
83 a->c.width = p->format.width; in soc_camera_platform_g_crop()
97 a->bounds.width = p->format.width; in soc_camera_platform_cropcap()
/linux-4.1.27/sound/core/
Dpcm_misc.c32 unsigned char width; /* bit width */ member
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,
[all …]
/linux-4.1.27/net/wireless/
Dchan.c27 chandef->width = NL80211_CHAN_WIDTH_20_NOHT; in cfg80211_chandef_create()
31 chandef->width = NL80211_CHAN_WIDTH_20; in cfg80211_chandef_create()
35 chandef->width = NL80211_CHAN_WIDTH_40; in cfg80211_chandef_create()
39 chandef->width = NL80211_CHAN_WIDTH_40; in cfg80211_chandef_create()
57 switch (chandef->width) { in cfg80211_chandef_valid()
122 switch (c->width) { in chandef_primary_freqs()
155 int width; in cfg80211_chandef_get_width() local
157 switch (c->width) { in cfg80211_chandef_get_width()
159 width = 5; in cfg80211_chandef_get_width()
162 width = 10; in cfg80211_chandef_get_width()
[all …]
/linux-4.1.27/drivers/video/console/
Dfbcon_rotate.h40 static inline void rotate_ud(const char *in, char *out, u32 width, u32 height) in rotate_ud() argument
43 int shift = (8 - (width % 8)) & 7; in rotate_ud()
45 width = (width + 7) & ~7; in rotate_ud()
48 for (j = 0; j < width - shift; j++) { in rotate_ud()
49 if (pattern_test_bit(j, i, width, in)) in rotate_ud()
50 pattern_set_bit(width - (1 + j + shift), in rotate_ud()
52 width, out); in rotate_ud()
58 static inline void rotate_cw(const char *in, char *out, u32 width, u32 height) in rotate_cw() argument
60 int i, j, h = height, w = width; in rotate_cw()
63 width = (width + 7) & ~7; in rotate_cw()
[all …]
Dfbcon_ccw.c29 int width = (vc->vc_font.height + 7) >> 3; in ccw_update_attr() local
39 for (i = 0; i < vc->vc_font.width; i++) { in ccw_update_attr()
40 for (j = 0; j < width; j++) { in ccw_update_attr()
44 if (j == width - 1) in ccw_update_attr()
47 if (msk1 && j == width - 2) in ccw_update_attr()
52 *(dst - width) |= c; in ccw_update_attr()
64 int sx, int dy, int dx, int height, int width) in ccw_bmove() argument
71 area.sy = vyres - ((sx + width) * vc->vc_font.width); in ccw_bmove()
73 area.dy = vyres - ((dx + width) * vc->vc_font.width); in ccw_bmove()
74 area.width = height * vc->vc_font.height; in ccw_bmove()
[all …]
Dfbcon_cw.c29 int width = (vc->vc_font.height + 7) >> 3; in cw_update_attr() local
32 for (i = 0; i < vc->vc_font.width; i++) { in cw_update_attr()
33 for (j = 0; j < width; j++) { in cw_update_attr()
38 c |= *(src-width); in cw_update_attr()
49 int sx, int dy, int dx, int height, int width) in cw_bmove() argument
56 area.sy = sx * vc->vc_font.width; in cw_bmove()
58 area.dy = dx * vc->vc_font.width; in cw_bmove()
59 area.width = height * vc->vc_font.height; in cw_bmove()
60 area.height = width * vc->vc_font.width; in cw_bmove()
66 int sx, int height, int width) in cw_clear() argument
[all …]
Dbitblit.c29 int width = DIV_ROUND_UP(vc->vc_font.width, 8); in update_attr() local
30 unsigned int cellsize = vc->vc_font.height * width; in update_attr()
33 offset = cellsize - (offset * width); in update_attr()
47 int sx, int dy, int dx, int height, int width) in bit_bmove() argument
51 area.sx = sx * vc->vc_font.width; in bit_bmove()
53 area.dx = dx * vc->vc_font.width; in bit_bmove()
56 area.width = width * vc->vc_font.width; in bit_bmove()
62 int sx, int height, int width) in bit_clear() argument
68 region.dx = sx * vc->vc_font.width; in bit_clear()
70 region.width = width * vc->vc_font.width; in bit_clear()
[all …]
Dfbcon_ud.c29 int width = (vc->vc_font.width + 7) >> 3; in ud_update_attr() local
30 unsigned int cellsize = vc->vc_font.height * width; in ud_update_attr()
33 offset = offset * width; in ud_update_attr()
49 int sx, int dy, int dx, int height, int width) in ud_bmove() argument
57 area.sx = vxres - ((sx + width) * vc->vc_font.width); in ud_bmove()
59 area.dx = vxres - ((dx + width) * vc->vc_font.width); in ud_bmove()
61 area.width = width * vc->vc_font.width; in ud_bmove()
67 int sx, int height, int width) in ud_clear() argument
77 region.dx = vxres - ((sx + width) * vc->vc_font.width); in ud_clear()
78 region.width = width * vc->vc_font.width; in ud_clear()
[all …]
Dtileblit.c20 int sx, int dy, int dx, int height, int width) in tile_bmove() argument
29 area.width = width; in tile_bmove()
35 int sx, int height, int width) in tile_clear() argument
47 rect.width = width; in tile_clear()
64 blit.width = count; in tile_putcs()
144 map.width = vc->vc_font.width; in fbcon_set_tileops()
Dfbcon_rotate.c36 s_cellsize = ((vc->vc_font.width + 7)/8) * in fbcon_rotate_font()
43 vc->vc_font.width; in fbcon_rotate_font()
67 rotate_ud(src, dst, vc->vc_font.width, in fbcon_rotate_font()
76 rotate_cw(src, dst, vc->vc_font.width, in fbcon_rotate_font()
84 rotate_ccw(src, dst, vc->vc_font.width, in fbcon_rotate_font()
Dmdacon.c431 int height, int width) in mdacon_clear() argument
436 if (width <= 0 || height <= 0) in mdacon_clear()
439 if (x==0 && width==mda_num_columns) { in mdacon_clear()
440 scr_memsetw(dest, eattr, height*width*2); in mdacon_clear()
443 scr_memsetw(dest, eattr, width*2); in mdacon_clear()
448 int dy, int dx, int height, int width) in mdacon_bmove() argument
452 if (width <= 0 || height <= 0) in mdacon_bmove()
455 if (sx==0 && dx==0 && width==mda_num_columns) { in mdacon_bmove()
456 scr_memmovew(MDA_ADDR(0,dy), MDA_ADDR(0,sy), height*width*2); in mdacon_bmove()
463 scr_memmovew(dest, src, width*2); in mdacon_bmove()
[all …]
Dsticon.c186 int dy, int dx, int height, int width) in sticon_bmove() argument
188 if (!width || !height) in sticon_bmove()
192 (sx <= p->cursor_x) && (p->cursor_x < sx+width)) || in sticon_bmove()
194 (dx <= p->cursor_x) && (p->cursor_x < dx+width))) in sticon_bmove()
198 sti_bmove(sticon_sti, sy, sx, dy, dx, height, width); in sticon_bmove()
227 int width) in sticon_clear() argument
229 if (!height || !width) in sticon_clear()
232 sti_clear(sticon_sti, sy, sx, height, width, conp->vc_video_erase_char); in sticon_clear()
/linux-4.1.27/drivers/media/platform/s5p-tv/
Dmixer_grp_layer.c26 { .width = 1, .height = 1, .size = 2 },
38 { .width = 1, .height = 1, .size = 2 },
50 { .width = 1, .height = 1, .size = 2 },
62 { .width = 1, .height = 1, .size = 4 },
164 x_center = dst->x_offset + dst->width / 2; in mxr_graph_fix_geometry()
168 dst->width = round_down(dst->width, 2); in mxr_graph_fix_geometry()
171 dst->width = round_up(dst->width, 2); in mxr_graph_fix_geometry()
175 dst->width = min(dst->width, dst->full_width); in mxr_graph_fix_geometry()
179 dst->width = min(dst->width, 2 * src->full_width); in mxr_graph_fix_geometry()
183 dst->x_offset = do_center(x_center, dst->width, in mxr_graph_fix_geometry()
[all …]
Dmixer_vp_layer.c27 { .width = 1, .height = 1, .size = 1 },
28 { .width = 2, .height = 2, .size = 2 },
40 { .width = 1, .height = 1, .size = 1 },
41 { .width = 2, .height = 2, .size = 2 },
53 { .width = 1, .height = 1, .size = 1 },
54 { .width = 2, .height = 2, .size = 2 },
67 { .width = 128, .height = 32, .size = 4096 },
68 { .width = 128, .height = 32, .size = 2048 },
155 x_center = dst->x_offset + dst->width / 2; in mxr_vp_fix_geometry()
159 dst->width = clamp(dst->width, 8U, 16 * src->full_width); in mxr_vp_fix_geometry()
[all …]
Dmixer_video.c179 geo->src.width, geo->src.height); in mxr_geometry_dump()
185 geo->dst.width, geo->dst.height); in mxr_geometry_dump()
201 layer->geo.dst.full_width = mbus_fmt.width; in mxr_layer_default_geo()
203 layer->geo.dst.width = layer->geo.dst.full_width; in mxr_layer_default_geo()
207 layer->geo.src.full_width = mbus_fmt.width; in mxr_layer_default_geo()
209 layer->geo.src.width = layer->geo.src.full_width; in mxr_layer_default_geo()
224 if (layer->geo.dst.full_width == mbus_fmt.width && in mxr_layer_update_output()
225 layer->geo.dst.full_height == mbus_fmt.width) in mxr_layer_update_output()
228 layer->geo.dst.full_width = mbus_fmt.width; in mxr_layer_update_output()
265 unsigned int width, unsigned int height) in mxr_get_plane_size() argument
[all …]
/linux-4.1.27/drivers/video/fbdev/
Datafb_iplan2p2.c26 int height, int width) in atafb_iplan2p2_copyarea() argument
57 width -= 8; in atafb_iplan2p2_copyarea()
59 w = width >> 4; in atafb_iplan2p2_copyarea()
72 if (width & 15) in atafb_iplan2p2_copyarea()
73 memmove32_col(dst + width / (8 / BPL), src + width / (8 / BPL), in atafb_iplan2p2_copyarea()
76 src = (u8 *)info->screen_base + (sy - 1) * next_line + ((sx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p2_copyarea()
77 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p2_copyarea()
79 if ((sx + width) & 15) { in atafb_iplan2p2_copyarea()
83 width -= 8; in atafb_iplan2p2_copyarea()
85 w = width >> 4; in atafb_iplan2p2_copyarea()
[all …]
Datafb_mfb.c26 int height, int width) in atafb_mfb_copyarea() argument
31 if (sx == 0 && dx == 0 && width == next_line) { in atafb_mfb_copyarea()
32 src = (u8 *)info->screen_base + sy * (width >> 3); in atafb_mfb_copyarea()
33 dest = (u8 *)info->screen_base + dy * (width >> 3); in atafb_mfb_copyarea()
34 fb_memmove(dest, src, height * (width >> 3)); in atafb_mfb_copyarea()
39 fb_memmove(dest, src, width >> 3); in atafb_mfb_copyarea()
47 fb_memmove(dest, src, width >> 3); in atafb_mfb_copyarea()
55 int sy, int sx, int height, int width) in atafb_mfb_fillrect() argument
62 if (sx == 0 && width == next_line) { in atafb_mfb_fillrect()
64 fb_memset255(dest, height * (width >> 3)); in atafb_mfb_fillrect()
[all …]
Datafb_iplan2p4.c26 int height, int width) in atafb_iplan2p4_copyarea() argument
57 width -= 8; in atafb_iplan2p4_copyarea()
59 w = width >> 4; in atafb_iplan2p4_copyarea()
72 if (width & 15) in atafb_iplan2p4_copyarea()
73 memmove32_col(dst + width / (8 / BPL), src + width / (8 / BPL), in atafb_iplan2p4_copyarea()
76 src = (u8 *)info->screen_base + (sy - 1) * next_line + ((sx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p4_copyarea()
77 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p4_copyarea()
79 if ((sx + width) & 15) { in atafb_iplan2p4_copyarea()
83 width -= 8; in atafb_iplan2p4_copyarea()
85 w = width >> 4; in atafb_iplan2p4_copyarea()
[all …]
Datafb.h5 int dx, int height, int width);
7 int sy, int sx, int height, int width);
9 int dy, int dx, u32 width,
13 int dx, int height, int width);
15 int sy, int sx, int height, int width);
17 int dy, int dx, u32 width,
21 int dx, int height, int width);
23 int sy, int sx, int height, int width);
25 int dy, int dx, u32 width,
29 int dx, int height, int width);
[all …]
Datafb_iplan2p8.c33 int height, int width) in atafb_iplan2p8_copyarea() argument
64 width -= 8; in atafb_iplan2p8_copyarea()
66 w = width >> 4; in atafb_iplan2p8_copyarea()
79 if (width & 15) in atafb_iplan2p8_copyarea()
80 memmove32_col(dst + width / (8 / BPL), src + width / (8 / BPL), in atafb_iplan2p8_copyarea()
83 src = (u8 *)info->screen_base + (sy - 1) * next_line + ((sx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p8_copyarea()
84 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p8_copyarea()
86 if ((sx + width) & 15) { in atafb_iplan2p8_copyarea()
90 width -= 8; in atafb_iplan2p8_copyarea()
92 w = width >> 4; in atafb_iplan2p8_copyarea()
[all …]
Dtgafb.c623 u32 fgcolor, bgcolor, dx, dy, width, height, vxres, vyres, pixelmask; local
634 width = image->width;
639 rincr = (width + 7) / 8;
642 if (unlikely(width == 0))
647 if (dx + width > vxres)
648 width = vxres - dx;
695 if (width + shift <= 32) {
702 pixelmask = (2ul << (width - 1)) - 1;
707 bwidth = (width + 7) / 8;
738 bwidth = (width / 8) & -4;
[all …]
Dc2p_iplan2.c85 void c2p_iplan2(void *dst, const void *src, u32 dx, u32 dy, u32 width, in c2p_iplan2() argument
100 last = 0xffffU ^ (0xffffU >> ((dst_idx+width) % 16)); in c2p_iplan2()
105 w = width; in c2p_iplan2()
106 if (dst_idx+width <= 16) { in c2p_iplan2()
110 memcpy(d.pixels+dst_idx, c, width); in c2p_iplan2()
111 c += width; in c2p_iplan2()
117 w = width; in c2p_iplan2()
127 w = width-w; in c2p_iplan2()
Dc2p_planar.c86 void c2p_planar(void *dst, const void *src, u32 dx, u32 dy, u32 width, in c2p_planar() argument
101 last = ~(0xffffffffU >> ((dst_idx+width) % 32)); in c2p_planar()
105 w = width; in c2p_planar()
106 if (dst_idx+width <= 32) { in c2p_planar()
110 memcpy(d.pixels+dst_idx, c, width); in c2p_planar()
111 c += width; in c2p_planar()
118 w = width; in c2p_planar()
129 w = width-w; in c2p_planar()
Dvga16fb.c76 .width = -1,
512 var->width = -1; in vga16fb_check_var()
829 u32 dx = rect->dx, width = rect->width; in vga_8planes_fillrect() local
844 width /= 4; in vga_8planes_fillrect()
845 line_ofs = info->fix.line_length - width; in vga_8planes_fillrect()
854 for (x = width; x > 0; --x) { in vga_8planes_fillrect()
883 int x, x2, y2, vxres, vyres, width, height, line_ofs; in vga16fb_fillrect() local
889 if (!rect->width || !rect->height || rect->dx > vxres || rect->dy > vyres) in vga16fb_fillrect()
895 x2 = rect->dx + rect->width; in vga16fb_fillrect()
899 width = x2 - rect->dx; in vga16fb_fillrect()
[all …]
Dhitfb.c36 .width = -1,
61 u16 width, u16 height) in hitfb_accel_set_dest() argument
67 fb_writew(width-1, HD64461_BBTDWR); in hitfb_accel_set_dest()
76 u16 dy, u16 width, u16 height, u16 rop, in hitfb_accel_bitblt() argument
83 width--; in hitfb_accel_bitblt()
86 saddr = WIDTH * (sy + height) + sx + width; in hitfb_accel_bitblt()
87 daddr = WIDTH * (dy + height) + dx + width; in hitfb_accel_bitblt()
90 maddr = ((width >> 3) + 1) * (height + 1) - 1; in hitfb_accel_bitblt()
93 (((width >> 4) + 1) * (height + 1) - 1) * 2; in hitfb_accel_bitblt()
111 fb_writew(width, HD64461_BBTDWR); in hitfb_accel_bitblt()
[all …]
Dsunxvr2500.c24 unsigned int width; member
34 sp->width = of_getintprop_default(sp->of_node, "width", 0); in s3d_get_props()
38 if (!sp->width || !sp->height) { in s3d_get_props()
95 var->xres = sp->width; in s3d_set_fbinfo()
169 info->fix.line_length = sp->width; in s3d_pci_register()
172 info->fix.line_length = sp->width * 2; in s3d_pci_register()
175 info->fix.line_length = sp->width * 3; in s3d_pci_register()
178 info->fix.line_length = sp->width * 4; in s3d_pci_register()
Dssd1307fb.c57 u32 width; member
131 array = ssd1307fb_alloc_array(par->width * par->height / 8, in ssd1307fb_update_display()
166 for (j = 0; j < par->width; j++) { in ssd1307fb_update_display()
167 u32 array_idx = i * par->width + j; in ssd1307fb_update_display()
170 u32 page_length = par->width * i; in ssd1307fb_update_display()
171 u32 index = page_length + (par->width * k + j) / 8; in ssd1307fb_update_display()
180 ssd1307fb_write_array(par->client, array, par->width * par->height / 8); in ssd1307fb_update_display()
404 ret = ssd1307fb_write_cmd(par->client, par->width - 1); in ssd1307fb_ssd1306_init()
481 if (of_property_read_u32(node, "solomon,width", &par->width)) in ssd1307fb_probe()
482 par->width = 96; in ssd1307fb_probe()
[all …]
Dpm3fb.c223 const u32 width = (info->var.xres_virtual + 7) & ~7; in pm3fb_init_engine() local
279 PM3FBDestReadBufferWidth_Width(width)); in pm3fb_init_engine()
287 PM3FBSourceReadBufferWidth_Width(width)); in pm3fb_init_engine()
333 PM3FBWriteBufferWidth_Width(width)); in pm3fb_init_engine()
409 if (!modded.width || !modded.height || in pm3fb_fillrect()
413 if (modded.dx + modded.width > vxres) in pm3fb_fillrect()
414 modded.width = vxres - modded.dx; in pm3fb_fillrect()
442 PM3Render2D_Width(modded.width) | in pm3fb_fillrect()
466 if (!modded.width || !modded.height || in pm3fb_copyarea()
471 if (modded.sx + modded.width > vxres) in pm3fb_copyarea()
[all …]
Damba-clcd-versatile.c23 .width = -1,
47 .width = -1,
72 .width = -1,
96 .width = -1,
121 .width = -1,
/linux-4.1.27/drivers/media/pci/bt8xx/
Dbtcx-risc.c95 clips[n].c.width = -win->left; in btcx_screen_clips()
99 if (win->left + win->width > swidth) { in btcx_screen_clips()
103 clips[n].c.width = win->width - clips[n].c.left; in btcx_screen_clips()
111 clips[n].c.width = win->width; in btcx_screen_clips()
119 clips[n].c.width = win->width; in btcx_screen_clips()
134 nw = (win->width) & ~mask; in btcx_align()
135 if (nx + nw > win->left + win->width) in btcx_align()
139 win->width = nw; in btcx_align()
142 win->width, win->height, win->left, win->top, dx); in btcx_align()
147 nw = (clips[i].c.width) & ~mask; in btcx_align()
[all …]
Dbttv-risc.c293 btcx_calc_skips(line, ov->w.width, &maxy, in bttv_risc_overlay()
297 for (start = 0, skip = 0; start < ov->w.width; start = end) { in bttv_risc_overlay()
300 end = ov->w.width; in bttv_risc_overlay()
316 if (ov->w.width == end) in bttv_risc_overlay()
337 int width, int height, int interleaved, in bttv_calc_geo_old() argument
355 xsf = (width*scaledtwidth)/swidth; in bttv_calc_geo_old()
358 geo->hdelay = (geo->hdelay*width)/swidth; in bttv_calc_geo_old()
362 geo->crop = ((width>>8)&0x03) | ((geo->hdelay>>6)&0x0c) | in bttv_calc_geo_old()
366 geo->width = width; in bttv_calc_geo_old()
371 geo->vtc = (width < 193) ? 2 : ((width < 385) ? 1 : 0); in bttv_calc_geo_old()
[all …]
Dbttv-driver.c275 .cropcap.bounds.width = (totalwidth) - (minhdelayx1) - 4, \
280 .cropcap.defrect.width = swidth, \
1129 (max_t(unsigned int, 48, c->rect.width >> 4) + 3) & ~3; in bttv_crop_calc_limits()
1134 c->max_scaled_width = c->rect.width & ~3; in bttv_crop_calc_limits()
1562 unsigned int width, unsigned int height, in bttv_prepare_buffer() argument
1575 width = RAW_BPL; in bttv_prepare_buffer()
1577 if (width*height > buf->vb.bsize) in bttv_prepare_buffer()
1597 if (width < c.min_scaled_width || in bttv_prepare_buffer()
1598 width > c.max_scaled_width || in bttv_prepare_buffer()
1618 buf->vb.size = (width * height * fmt->depth) >> 3; in bttv_prepare_buffer()
[all …]
/linux-4.1.27/scripts/kconfig/lxdialog/
Dyesno.c27 static void print_buttons(WINDOW * dialog, int height, int width, int selected) in print_buttons() argument
29 int x = width / 2 - 10; in print_buttons()
42 int dialog_yesno(const char *title, const char *prompt, int height, int width) in dialog_yesno() argument
50 if (getmaxx(stdscr) < (width + YESNO_WIDTH_MIN)) in dialog_yesno()
54 x = (getmaxx(stdscr) - width) / 2; in dialog_yesno()
57 draw_shadow(stdscr, y, x, height, width); in dialog_yesno()
59 dialog = newwin(height, width, y, x); in dialog_yesno()
62 draw_box(dialog, 0, 0, height, width, in dialog_yesno()
66 for (i = 0; i < width - 2; i++) in dialog_yesno()
71 print_title(dialog, title, width); in dialog_yesno()
[all …]
Dtextbox.c25 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; in dialog_textbox() local
82 getmaxyx(stdscr, height, width); in dialog_textbox()
83 if (height < TEXTBOX_HEIGTH_MIN || width < TEXTBOX_WIDTH_MIN) in dialog_textbox()
93 width = initial_width; in dialog_textbox()
95 if (width > 5) in dialog_textbox()
96 width -= 5; in dialog_textbox()
98 width = 0; in dialog_textbox()
101 x = (getmaxx(stdscr) - width) / 2; in dialog_textbox()
[all …]
Dinputbox.c29 static void print_buttons(WINDOW * dialog, int height, int width, int selected) in print_buttons() argument
31 int x = width / 2 - 11; in print_buttons()
44 int dialog_inputbox(const char *title, const char *prompt, int height, int width, in dialog_inputbox() argument
61 if (getmaxx(stdscr) <= (width - INPUTBOX_WIDTH_MIN)) in dialog_inputbox()
65 x = (getmaxx(stdscr) - width) / 2; in dialog_inputbox()
68 draw_shadow(stdscr, y, x, height, width); in dialog_inputbox()
70 dialog = newwin(height, width, y, x); in dialog_inputbox()
73 draw_box(dialog, 0, 0, height, width, in dialog_inputbox()
77 for (i = 0; i < width - 2; i++) in dialog_inputbox()
82 print_title(dialog, title, width); in dialog_inputbox()
[all …]
Dchecklist.c101 static void print_buttons(WINDOW * dialog, int height, int width, int selected) in print_buttons() argument
103 int x = width / 2 - 11; in print_buttons()
118 int width, int list_height) in dialog_checklist() argument
137 if (getmaxx(stdscr) < (width + CHECKLIST_WIDTH_MIN)) in dialog_checklist()
143 x = (getmaxx(stdscr) - width) / 2; in dialog_checklist()
146 draw_shadow(stdscr, y, x, height, width); in dialog_checklist()
148 dialog = newwin(height, width, y, x); in dialog_checklist()
151 draw_box(dialog, 0, 0, height, width, in dialog_checklist()
155 for (i = 0; i < width - 2; i++) in dialog_checklist()
160 print_title(dialog, title, width); in dialog_checklist()
[all …]
Dmenubox.c155 static void print_buttons(WINDOW * win, int height, int width, int selected) in print_buttons() argument
157 int x = width / 2 - 28; in print_buttons()
188 int height, width, menu_height; in dialog_menu() local
195 width = getmaxx(stdscr); in dialog_menu()
196 if (height < MENUBOX_HEIGTH_MIN || width < MENUBOX_WIDTH_MIN) in dialog_menu()
200 width -= 5; in dialog_menu()
206 x = (getmaxx(stdscr) - width) / 2; in dialog_menu()
209 draw_shadow(stdscr, y, x, height, width); in dialog_menu()
211 dialog = newwin(height, width, y, x); in dialog_menu()
214 draw_box(dialog, 0, 0, height, width, in dialog_menu()
[all …]
Ddialog.h221 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);
Dutil.c242 void attr_clear(WINDOW * win, int height, int width, chtype attr) in attr_clear() argument
249 for (j = 0; j < width; j++) in attr_clear()
317 int height, width; in init_dialog() local
324 getmaxyx(stdscr, height, width); in init_dialog()
325 if (height < WINDOW_HEIGTH_MIN || width < WINDOW_WIDTH_MIN) { in init_dialog()
365 void print_title(WINDOW *dialog, const char *title, int width) in print_title() argument
368 int tlen = MIN(width - 2, strlen(title)); in print_title()
370 mvwaddch(dialog, 0, (width - tlen) / 2 - 1, ' '); in print_title()
371 mvwaddnstr(dialog, 0, (width - tlen)/2, title, tlen); in print_title()
382 void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x) in print_autowrap() argument
[all …]
/linux-4.1.27/drivers/acpi/acpica/
Dutprint.c66 u8 base, s32 width, s32 precision, u8 type);
243 u8 base, s32 width, s32 precision, u8 type) in acpi_ut_format_number() argument
275 width--; in acpi_ut_format_number()
278 width--; in acpi_ut_format_number()
281 width--; in acpi_ut_format_number()
285 width--; in acpi_ut_format_number()
287 width--; in acpi_ut_format_number()
302 width -= precision; in acpi_ut_format_number()
307 while (--width >= 0) { in acpi_ut_format_number()
322 while (--width >= 0) { in acpi_ut_format_number()
[all …]
Dhwvalid.c220 acpi_status acpi_hw_read_port(acpi_io_address address, u32 *value, u32 width) in acpi_hw_read_port() argument
234 status = acpi_hw_validate_io_request(address, width); in acpi_hw_read_port()
236 status = acpi_os_read_port(address, value, width); in acpi_hw_read_port()
249 for (i = 0, *value = 0; i < width; i += 8) { in acpi_hw_read_port()
284 acpi_status acpi_hw_write_port(acpi_io_address address, u32 value, u32 width) in acpi_hw_write_port() argument
297 status = acpi_hw_validate_io_request(address, width); in acpi_hw_write_port()
299 status = acpi_os_write_port(address, value, width); in acpi_hw_write_port()
312 for (i = 0; i < width; i += 8) { in acpi_hw_write_port()
Dhwxface.c131 u32 width; in ACPI_EXPORT_SYMBOL() local
164 width = reg->bit_width; in ACPI_EXPORT_SYMBOL()
165 if (width == 64) { in ACPI_EXPORT_SYMBOL()
166 width = 32; /* Break into two 32-bit transfers */ in ACPI_EXPORT_SYMBOL()
170 address, &value_lo, width); in ACPI_EXPORT_SYMBOL()
217 u32 width; in ACPI_EXPORT_SYMBOL() local
242 width = reg->bit_width; in ACPI_EXPORT_SYMBOL()
243 if (width == 64) { in ACPI_EXPORT_SYMBOL()
244 width = 32; /* Break into two 32-bit transfers */ in ACPI_EXPORT_SYMBOL()
249 width); in ACPI_EXPORT_SYMBOL()
/linux-4.1.27/tools/perf/util/
Dvalues.c145 int width; in perf_read_values__display_pretty() local
147 width = snprintf(NULL, 0, "%d", values->pid[i]); in perf_read_values__display_pretty()
148 if (width > pidwidth) in perf_read_values__display_pretty()
149 pidwidth = width; in perf_read_values__display_pretty()
150 width = snprintf(NULL, 0, "%d", values->tid[i]); in perf_read_values__display_pretty()
151 if (width > tidwidth) in perf_read_values__display_pretty()
152 tidwidth = width; in perf_read_values__display_pretty()
154 width = snprintf(NULL, 0, "%" PRIu64, values->value[i][j]); in perf_read_values__display_pretty()
155 if (width > counterwidth[j]) in perf_read_values__display_pretty()
156 counterwidth[j] = width; in perf_read_values__display_pretty()
[all …]
Dsort.c70 size_t size, unsigned int width) in hist_entry__thread_snprintf() argument
74 width = max(7U, width) - 6; in hist_entry__thread_snprintf()
76 width, width, comm ?: ""); in hist_entry__thread_snprintf()
109 size_t size, unsigned int width) in hist_entry__comm_snprintf() argument
111 return repsep_snprintf(bf, size, "%-*.*s", width, width, comm__str(he->comm)); in hist_entry__comm_snprintf()
152 size_t size, unsigned int width) in _hist_entry__dso_snprintf() argument
157 return repsep_snprintf(bf, size, "%-*.*s", width, width, dso_name); in _hist_entry__dso_snprintf()
160 return repsep_snprintf(bf, size, "%-*.*s", width, width, "[unknown]"); in _hist_entry__dso_snprintf()
164 size_t size, unsigned int width) in hist_entry__dso_snprintf() argument
166 return _hist_entry__dso_snprintf(he->ms.map, bf, size, width); in hist_entry__dso_snprintf()
[all …]
Dsvghelper.c385 double width; in svg_process() local
404 width = time2pixels(end)-time2pixels(start); in svg_process()
405 if (width > 6) in svg_process()
406 width = 6; in svg_process()
408 width = round_text_size(width); in svg_process()
410 if (width > MIN_TEXT_SIZE) in svg_process()
412 width, name); in svg_process()
419 double width; in svg_cstate() local
437 width = (time2pixels(end)-time2pixels(start))/2.0; in svg_cstate()
438 if (width > 6) in svg_cstate()
[all …]
/linux-4.1.27/drivers/dma/
Dfsldma.h222 #define DMA_IN(fsl_chan, addr, width) \ argument
224 in_be##width(addr) : in_le##width(addr))
225 #define DMA_OUT(fsl_chan, addr, val, width) \ argument
227 out_be##width(addr, val) : out_le##width(addr, val))
229 #define DMA_TO_CPU(fsl_chan, d, width) \ argument
231 be##width##_to_cpu((__force __be##width)(v##width)d) : \
232 le##width##_to_cpu((__force __le##width)(v##width)d))
233 #define CPU_TO_DMA(fsl_chan, c, width) \ argument
235 (__force v##width)cpu_to_be##width(c) : \
236 (__force v##width)cpu_to_le##width(c))
/linux-4.1.27/drivers/gpu/drm/omapdrm/
Dtcm.h59 u16 width, height; /* container dimensions */ member
71 s32 (*reserve_2d)(struct tcm *tcm, u16 height, u16 width, u8 align,
94 struct tcm *sita_init(u16 width, u16 height, struct tcm_pt *attr);
131 static inline s32 tcm_reserve_2d(struct tcm *tcm, u16 width, u16 height, in tcm_reserve_2d() argument
136 (area == NULL || width == 0 || height == 0 || in tcm_reserve_2d()
139 (height > tcm->height || width > tcm->width) ? -ENOMEM : 0; in tcm_reserve_2d()
143 res = tcm->reserve_2d(tcm, height, width, align, area); in tcm_reserve_2d()
169 slots > (tcm->width * (u32) tcm->height) ? -ENOMEM : 0; in tcm_reserve_1d()
227 (slice->p0.x || (slice->p1.x != slice->tcm->width - 1))) { in tcm_slice()
229 slice->p1.x = slice->tcm->width - 1; in tcm_slice()
[all …]
Dtcm-sita.c80 struct tcm *sita_init(u16 width, u16 height, struct tcm_pt *attr) in sita_init() argument
87 if (width == 0 || height == 0) in sita_init()
100 tcm->width = width; in sita_init()
110 pvt->map = kmalloc(sizeof(*pvt->map) * tcm->width, GFP_KERNEL); in sita_init()
114 for (i = 0; i < tcm->width; i++) { in sita_init()
126 if (attr && attr->x <= tcm->width && attr->y <= tcm->height) { in sita_init()
133 pvt->div_pt.x = (tcm->width * 3) / 4; in sita_init()
138 assign(&area, 0, 0, width - 1, height - 1); in sita_init()
155 area.p1.x = tcm->width - 1; in sita_deinit()
187 assign(&field, tcm->width - 1, tcm->height - 1, 0, 0); in sita_reserve_1d()
[all …]
/linux-4.1.27/drivers/video/fbdev/aty/
Dmach64_accel.c186 static inline void draw_rect(s16 x, s16 y, u16 width, u16 height, in draw_rect() argument
192 aty_st_le32(DST_HEIGHT_WIDTH, (width << 16) | height, par); in draw_rect()
200 u32 sx = area->sx, dx = area->dx, width = area->width, rotation = 0; in atyfb_copyarea() local
204 if (!area->width || !area->height) in atyfb_copyarea()
216 width *= 3; in atyfb_copyarea()
226 dx += width - 1; in atyfb_copyarea()
227 sx += width - 1; in atyfb_copyarea()
238 aty_st_le32(SRC_HEIGHT1_WIDTH1, (width << 16) | area->height, par); in atyfb_copyarea()
240 draw_rect(dx, dy, width, area->height, par); in atyfb_copyarea()
246 u32 color, dx = rect->dx, width = rect->width, rotation = 0; in atyfb_fillrect() local
[all …]
Dradeon_accel.c64 OUTREG(DST_WIDTH_HEIGHT, (region->width << 16) | region->height); in radeonfb_prim_fillrect()
87 if(!modded.width || !modded.height || in radeonfb_fillrect()
91 if(modded.dx + modded.width > vxres) modded.width = vxres - modded.dx; in radeonfb_fillrect()
103 w = area->width; h = area->height; in radeonfb_prim_copyarea()
143 modded.width = area->width; in radeonfb_copyarea()
158 if(!modded.width || !modded.height || in radeonfb_copyarea()
163 if(modded.sx + modded.width > vxres) modded.width = vxres - modded.sx; in radeonfb_copyarea()
164 if(modded.dx + modded.width > vxres) modded.width = vxres - modded.dx; in radeonfb_copyarea()
Dmach64_cursor.c147 unsigned int width = (cursor->image.width + 7) >> 3; in atyfb_cursor() local
157 offset = align - width*2; in atyfb_cursor()
160 for (j = 0; j < width; j++) { in atyfb_cursor()
182 if ((j + 1) * 8 > cursor->image.width) { in atyfb_cursor()
184 (1 << ((cursor->image.width & 7) * 2)) - 1); in atyfb_cursor()
/linux-4.1.27/drivers/video/fbdev/matrox/
Dmatroxfb_accel.c208 int sx, int dy, int dx, int height, int width) in matrox_accel_bmove() argument
223 width--; in matrox_accel_bmove()
225 end = start+width; in matrox_accel_bmove()
232 width--; in matrox_accel_bmove()
234 start = end+width; in matrox_accel_bmove()
241 mga_outl(M_FXBNDRY, ((dx+width)<<16) | dx); in matrox_accel_bmove()
250 int width) in matrox_accel_bmove_lin() argument
265 width--; in matrox_accel_bmove_lin()
267 end = start+width; in matrox_accel_bmove_lin()
274 width--; in matrox_accel_bmove_lin()
[all …]
/linux-4.1.27/drivers/video/fbdev/sis/
Dsis_accel.c118 int src_y, int dst_x, int dst_y, int width, int height) in SiS300SubsequentScreenToScreenCopy() argument
135 src_x += width-1; in SiS300SubsequentScreenToScreenCopy()
136 dst_x += width-1; in SiS300SubsequentScreenToScreenCopy()
142 SiS300SetupRect(width, height) in SiS300SubsequentScreenToScreenCopy()
205 int dst_x, int dst_y, int width, int height) in SiS310SubsequentScreenToScreenCopy() argument
244 SiS310SetupRect(width, height) in SiS310SubsequentScreenToScreenCopy()
324 int width, height; in fbcon_sis_fillrect() local
335 if(!rect->width || !rect->height || rect->dx >= vxres || rect->dy >= vyres) in fbcon_sis_fillrect()
339 width = ((rect->dx + rect->width) > vxres) ? (vxres - rect->dx) : rect->width; in fbcon_sis_fillrect()
354 SiS300SubsequentSolidFillRect(ivideo, rect->dx, rect->dy, width, height); in fbcon_sis_fillrect()
[all …]
/linux-4.1.27/drivers/video/fbdev/savage/
Dsavagefb_accel.c38 if (!region->width || !region->height) in savagefb_copyarea()
47 sx += region->width - 1; in savagefb_copyarea()
48 dx += region->width - 1; in savagefb_copyarea()
62 BCI_SEND(BCI_W_H(region->width, region->height)); in savagefb_copyarea()
70 if (!rect->width || !rect->height) in savagefb_fillrect()
89 BCI_SEND( BCI_W_H(rect->width, rect->height) ); in savagefb_fillrect()
95 int fg, bg, size, i, width; in savagefb_imageblit() local
99 if (!image->width || !image->height) in savagefb_imageblit()
122 width = (image->width + 31) & ~31; in savagefb_imageblit()
123 size = (width * image->height)/8; in savagefb_imageblit()
[all …]
/linux-4.1.27/drivers/staging/fbtft/
Dflexfb.c38 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); in flexfb_set_addr_win_1()
152 write_reg(par, 0x0020, width - 1 - ys); in flexfb_set_addr_win_1()
268 if (!width) in flexfb_probe_common()
269 width = 128; in flexfb_probe_common()
279 if (!width) in flexfb_probe_common()
280 width = 176; in flexfb_probe_common()
291 if (!width) in flexfb_probe_common()
[all …]
/linux-4.1.27/drivers/video/fbdev/mb862xx/
Dmb862xxfb_accel.c67 cmd[5] = (area->height << 16) | area->width; in mb86290fb_copyarea()
76 u16 width, u16 height, u32 fgcolor, in mb86290fb_imageblit1() argument
97 bytes = (image->width + 7) >> 3; in mb86290fb_imageblit1()
103 cmd[8] = (height << 16) | width; in mb86290fb_imageblit1()
125 u16 width, u16 height, u32 fgcolor, in mb86290fb_imageblit8() argument
136 cmd[2] = (height << 16) | width; in mb86290fb_imageblit8()
140 bytes = image->width; in mb86290fb_imageblit8()
164 u16 width, u16 height, u32 fgcolor, in mb86290fb_imageblit16() argument
174 bytes = image->width << 1; in mb86290fb_imageblit16()
179 cmd[2] = (height << 16) | width; in mb86290fb_imageblit16()
[all …]
/linux-4.1.27/drivers/media/platform/vivid/
Dvivid-vid-common.c497 if (dev->src_rect.width != dev->sink_rect.width || in vivid_vid_can_loop()
555 mp->width = pix->width; in fmt_sp2mp()
583 pix->width = mp->width; in fmt_sp2mp_func()
599 r->width = size->width; in rect_set_size_to()
606 if (r->width < min_size->width) in rect_set_min_size()
607 r->width = min_size->width; in rect_set_min_size()
615 if (r->width > max_size->width) in rect_set_max_size()
616 r->width = max_size->width; in rect_set_max_size()
629 if (r->left + r->width > boundary->width) in rect_map_inside()
630 r->left = boundary->width - r->width; in rect_map_inside()
[all …]
Dvivid-vid-cap.c389 dev->src_rect.width == 720 && dev->src_rect.height <= 576) in vivid_get_pixel_aspect()
408 dev->src_rect.width = webcam_sizes[dev->webcam_size_idx].width; in vivid_update_format_cap()
417 dev->src_rect.width = 720; in vivid_update_format_cap()
430 dev->src_rect.width = bt->width; in vivid_update_format_cap()
448 if (bt->width == 720 && bt->height <= 576) in vivid_update_format_cap()
461 tpg_reset_source(&dev->tpg, dev->src_rect.width, dev->src_rect.height, dev->field_cap); in vivid_update_format_cap()
525 mp->width = dev->fmt_cap_rect.width; in vivid_g_fmt_vid_cap()
565 v4l2_find_nearest_format(&webcam_probe, mp->width, mp->height); in vivid_try_fmt_vid_cap()
567 w = sz->width; in vivid_try_fmt_vid_cap()
573 w = dev->src_rect.width; in vivid_try_fmt_vid_cap()
[all …]
Dvivid-kthread-cap.c75 unsigned stride = (dev->compose_out.width + 7) / 8; in copy_pix()
87 fb_x >= r->left && fb_x < r->left + r->width) in copy_pix()
112 unsigned width, unsigned pixsize) in blend_line() argument
116 for (x = 0; x < width; x++, vcapbuf += pixsize, vosdbuf += pixsize) { in blend_line()
184 dev->compose_out.width, dev->compose_out.height in vivid_precalc_copy_rects()
199 dev->loop_vid_copy.width, dev->loop_vid_copy.height, in vivid_precalc_copy_rects()
201 dev->loop_vid_out.width, dev->loop_vid_out.height, in vivid_precalc_copy_rects()
203 dev->loop_vid_cap.width, dev->loop_vid_cap.height, in vivid_precalc_copy_rects()
224 dev->loop_fb_copy.width, dev->loop_fb_copy.height, in vivid_precalc_copy_rects()
226 dev->loop_vid_overlay.width, dev->loop_vid_overlay.height, in vivid_precalc_copy_rects()
[all …]
Dvivid-vid-out.c228 dev->sink_rect.width = 720; in vivid_update_format_out()
241 dev->sink_rect.width = bt->width; in vivid_update_format_out()
252 if (bt->width == 720 && bt->height <= 576) in vivid_update_format_out()
271 (dev->sink_rect.width * dev->fmt_out->bit_depth[p]) / 8; in vivid_update_format_out()
303 dev->sink_rect.width == 720 && dev->sink_rect.height <= 576) in vivid_get_pixel_aspect()
318 mp->width = dev->fmt_out_rect.width; in vivid_g_fmt_vid_out()
366 w = dev->sink_rect.width; in vivid_try_fmt_vid_out()
372 mp->width = w; in vivid_try_fmt_vid_out()
375 struct v4l2_rect r = { 0, 0, mp->width, mp->height * factor }; in vivid_try_fmt_vid_out()
388 mp->width = r.width; in vivid_try_fmt_vid_out()
[all …]
Dvivid-tpg.c102 tpg->crop.width = tpg->compose.width = w; in tpg_init()
373 tpg->scaled_width = (tpg->src_width * tpg->compose.width + in tpg_s_crop_compose()
374 tpg->crop.width - 1) / tpg->crop.width; in tpg_s_crop_compose()
383 void tpg_reset_source(struct tpg_data *tpg, unsigned width, unsigned height, in tpg_reset_source() argument
388 tpg->src_width = width; in tpg_reset_source()
394 tpg->scaled_width = width; in tpg_reset_source()
396 tpg->crop.width = width; in tpg_reset_source()
399 tpg->compose.width = width; in tpg_reset_source()
402 tpg->bytesperline[p] = (width * tpg->twopixelsize[p]) / in tpg_reset_source()
1206 tpg->square.width = sq_w; in tpg_calculate_square_border()
[all …]
/linux-4.1.27/drivers/clk/
Dclk-divider.c33 #define div_mask(width) ((1 << (width)) - 1) argument
57 static unsigned int _get_maxdiv(const struct clk_div_table *table, u8 width, in _get_maxdiv() argument
61 return div_mask(width); in _get_maxdiv()
63 return 1 << div_mask(width); in _get_maxdiv()
66 return div_mask(width) + 1; in _get_maxdiv()
141 val &= div_mask(divider->width); in clk_divider_recalc_rate()
276 const struct clk_div_table *table, u8 width, in clk_divider_bestdiv() argument
286 maxdiv = _get_maxdiv(table, width, flags); in clk_divider_bestdiv()
325 bestdiv = _get_maxdiv(table, width, flags); in clk_divider_bestdiv()
334 u8 width, unsigned long flags) in divider_round_rate() argument
[all …]
Dclk-axm5516.c82 u32 width; member
97 div = 1 + ((ctrl >> divclk->shift) & ((1 << divclk->width)-1)); in axxia_divclk_recalc_rate()
117 u32 width; member
131 parent = (ctrl >> mux->shift) & ((1 << mux->width) - 1); in axxia_clkmux_get_parent()
220 .width = 4,
234 .width = 4,
248 .width = 4,
262 .width = 4,
276 .width = 4,
290 .width = 4,
[all …]
Dclk-mux.c124 u8 width = 0; in clk_register_mux_table() local
127 width = fls(mask) - ffs(mask) + 1; in clk_register_mux_table()
128 if (width + shift > 16) { in clk_register_mux_table()
170 void __iomem *reg, u8 shift, u8 width, in clk_register_mux() argument
173 u32 mask = BIT(width) - 1; in clk_register_mux()
/linux-4.1.27/include/video/
Domapvrfb.h42 extern void omap_vrfb_adjust_size(u16 *width, u16 *height,
44 extern u32 omap_vrfb_min_phys_size(u16 width, u16 height, u8 bytespp);
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, in omap_vrfb_adjust_size() argument
58 static inline u32 omap_vrfb_min_phys_size(u16 width, u16 height, u8 bytespp) in omap_vrfb_min_phys_size() argument
60 static inline u16 omap_vrfb_max_height(u32 phys_size, u16 width, u8 bytespp) in omap_vrfb_max_height() argument
63 u16 width, u16 height, unsigned bytespp, bool yuv_mode) {} in omap_vrfb_setup() argument
/linux-4.1.27/drivers/media/i2c/soc_camera/
Dtw9910.c223 unsigned short width; member
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,
[all …]
Dov5642.c740 int width = priv->crop_rect.width; in ov5642_set_resolution() local
744 int start_x = (OV5642_SENSOR_SIZE_X - width) / 2; in ov5642_set_resolution()
761 ret = reg_write16(client, REG_WINDOW_WIDTH_HIGH, width); in ov5642_set_resolution()
766 priv->crop_rect.width = width; in ov5642_set_resolution()
770 ret = reg_write16(client, REG_OUT_WIDTH_HIGH, width); in ov5642_set_resolution()
782 ret = reg_write16(client, REG_AVG_WINDOW_END_X_HIGH, width); in ov5642_set_resolution()
796 mf->width = priv->crop_rect.width; in ov5642_try_fmt()
835 mf->width = priv->crop_rect.width; in ov5642_g_fmt()
859 v4l_bound_align_image(&rect.width, 48, OV5642_MAX_WIDTH, 1, in ov5642_s_crop()
862 priv->crop_rect.width = rect.width; in ov5642_s_crop()
[all …]
Dmt9m111.c211 unsigned int width; /* output */ member
320 unsigned int width, unsigned int height) in mt9m111_setup_rect_ctx() argument
323 int ret = mt9m111_reg_write(client, ctx->reducer_xzoom, rect->width); in mt9m111_setup_rect_ctx()
327 ret = mt9m111_reg_write(client, ctx->reducer_xsize, width); in mt9m111_setup_rect_ctx()
334 int width, int height, u32 code) in mt9m111_setup_geometry() argument
344 ret = reg_write(WINDOW_WIDTH, rect->width); in mt9m111_setup_geometry()
352 rect, width, height); in mt9m111_setup_geometry()
355 rect, width, height); in mt9m111_setup_geometry()
359 __func__, code, rect->width, rect->height, rect->left, rect->top, in mt9m111_setup_geometry()
360 width, height, ret); in mt9m111_setup_geometry()
[all …]
Dov9740.c547 static void ov9740_res_roundup(u32 *width, u32 *height) in ov9740_res_roundup() argument
550 *width = ALIGN(*width, 4); in ov9740_res_roundup()
553 if (*width > OV9740_MAX_WIDTH) in ov9740_res_roundup()
554 *width = OV9740_MAX_WIDTH; in ov9740_res_roundup()
561 static int ov9740_set_res(struct i2c_client *client, u32 width, u32 height) in ov9740_set_res() argument
572 if ((width != OV9740_MAX_WIDTH) || (height != OV9740_MAX_HEIGHT)) in ov9740_set_res()
582 if ((OV9740_MAX_WIDTH * height) > (OV9740_MAX_HEIGHT * width)) { in ov9740_set_res()
583 scale_input_x = (OV9740_MAX_HEIGHT * width) / height; in ov9740_set_res()
587 scale_input_y = (OV9740_MAX_WIDTH * height) / width; in ov9740_set_res()
622 ret = ov9740_reg_write(client, OV9740_X_OUTPUT_SIZE_HI, width >> 8); in ov9740_set_res()
[all …]
Dov2640.c277 u32 width; member
552 {.name = n, .width = w , .height = h, .regs = r }
754 static const struct ov2640_win_size *ov2640_select_win(u32 *width, u32 *height) in ov2640_select_win() argument
759 if (ov2640_supported_win_sizes[i].width >= *width && in ov2640_select_win()
761 *width = ov2640_supported_win_sizes[i].width; in ov2640_select_win()
767 *width = ov2640_supported_win_sizes[default_size].width; in ov2640_select_win()
772 static int ov2640_set_params(struct i2c_client *client, u32 *width, u32 *height, in ov2640_set_params() argument
780 priv->win = ov2640_select_win(width, height); in ov2640_set_params()
835 *width = priv->win->width; in ov2640_set_params()
855 u32 width = SVGA_WIDTH, height = SVGA_HEIGHT; in ov2640_g_fmt() local
[all …]
Dov772x.c492 .width = VGA_WIDTH,
501 .width = QVGA_WIDTH,
662 static const struct ov772x_win_size *ov772x_select_win(u32 width, u32 height) in ov772x_select_win() argument
669 u32 diff = abs(width - ov772x_win_sizes[i].rect.width) in ov772x_select_win()
697 *win = ov772x_select_win(mf->width, mf->height); in ov772x_select_params()
764 ret = ov772x_write(client, HSIZE, win->rect.width >> 2); in ov772x_set_params()
773 ret = ov772x_write(client, HOUTSIZE, win->rect.width >> 2); in ov772x_set_params()
783 ((win->rect.width & 3) << HREF_HSIZE_SHIFT)); in ov772x_set_params()
788 ((win->rect.width & 3) << EXHCH_HSIZE_SHIFT)); in ov772x_set_params()
858 a->c.width = VGA_WIDTH; in ov772x_g_crop()
[all …]
Dov6650.c457 rect.width = ALIGN(rect.width, 2); in ov6650_s_crop()
460 soc_camera_limit_side(&rect.left, &rect.width, in ov6650_s_crop()
469 (rect.left + rect.width) >> 1); in ov6650_s_crop()
472 priv->rect.width = rect.width; in ov6650_s_crop()
493 a->bounds.width = W_CIF; in ov6650_cropcap()
508 mf->width = priv->rect.width >> priv->half_scale; in ov6650_g_fmt()
517 static bool is_unscaled_ok(int width, int height, struct v4l2_rect *rect) in is_unscaled_ok() argument
519 return width > rect->width >> 1 || height > rect->height >> 1; in is_unscaled_ok()
546 bool half_scale = !is_unscaled_ok(mf->width, mf->height, &priv->rect); in ov6650_s_fmt()
550 .left = priv->rect.left + (priv->rect.width >> 1) - in ov6650_s_fmt()
[all …]
Dmt9m001.c190 rect.width = ALIGN(rect.width, 2); in mt9m001_s_crop()
193 soc_camera_limit_side(&rect.left, &rect.width, in mt9m001_s_crop()
215 ret = reg_write(client, MT9M001_WINDOW_WIDTH, rect.width - 1); in mt9m001_s_crop()
243 a->bounds.width = MT9M001_MAX_WIDTH; in mt9m001_cropcap()
259 mf->width = mt9m001->rect.width; in mt9m001_g_fmt()
277 .width = mf->width, in mt9m001_s_fmt()
286 mf->width = mt9m001->rect.width; in mt9m001_s_fmt()
303 v4l_bound_align_image(&mf->width, MT9M001_MIN_WIDTH, in mt9m001_try_fmt()
684 mt9m001->rect.width = MT9M001_MAX_WIDTH; in mt9m001_probe()
Drj54n1cb0c.c160 unsigned short width; /* Output window */ member
508 u32 width, u32 height) in rj54n1_set_rect() argument
513 ((width >> 4) & 0x70) | in rj54n1_set_rect()
517 ret = reg_write(client, reg_x, width & 0xff); in rj54n1_set_rect()
546 input_w = rect->width, input_h = rect->height; in rj54n1_s_crop()
566 rj54n1->width = output_w; in rj54n1_s_crop()
569 rj54n1->rect.width = input_w; in rj54n1_s_crop()
590 a->bounds.width = RJ54N1_MAX_WIDTH; in rj54n1_cropcap()
609 mf->width = rj54n1->width; in rj54n1_g_fmt()
975 __func__, mf->code, mf->width, mf->height); in rj54n1_try_fmt()
[all …]
/linux-4.1.27/drivers/clk/mxs/
Dclk-frac.c34 u8 width; member
47 div &= (1 << frac->width) - 1; in clk_frac_recalc_rate()
49 return (parent_rate >> frac->width) * div; in clk_frac_recalc_rate()
64 tmp <<= frac->width; in clk_frac_round_rate()
71 return (parent_rate >> frac->width) * div; in clk_frac_round_rate()
86 tmp <<= frac->width; in clk_frac_set_rate()
96 val &= ~(((1 << frac->width) - 1) << frac->shift); in clk_frac_set_rate()
112 void __iomem *reg, u8 shift, u8 width, u8 busy) in mxs_clk_frac() argument
130 frac->width = width; in mxs_clk_frac()
Dclk.h33 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) in mxs_clk_mux() argument
56 reg, shift, width, 0, &mxs_lock); in mxs_clk_mux()
/linux-4.1.27/drivers/video/fbdev/omap2/
Dvrfb.c105 static u32 get_image_width_roundup(u16 width, u8 bytespp) in get_image_width_roundup() argument
107 unsigned long stride = width * bytespp; in get_image_width_roundup()
138 void omap_vrfb_adjust_size(u16 *width, u16 *height, in omap_vrfb_adjust_size() argument
141 *width = ALIGN(*width * bytespp, VRFB_PAGE_WIDTH) / bytespp; in omap_vrfb_adjust_size()
146 u32 omap_vrfb_min_phys_size(u16 width, u16 height, u8 bytespp) in omap_vrfb_min_phys_size() argument
148 unsigned long image_width_roundup = get_image_width_roundup(width, in omap_vrfb_min_phys_size()
154 return (width * height * bytespp) + get_extra_physical_size( in omap_vrfb_min_phys_size()
159 u16 omap_vrfb_max_height(u32 phys_size, u16 width, u8 bytespp) in omap_vrfb_max_height() argument
161 unsigned long image_width_roundup = get_image_width_roundup(width, in omap_vrfb_max_height()
174 height = (phys_size - extra) / (width * bytespp); in omap_vrfb_max_height()
[all …]
/linux-4.1.27/drivers/media/platform/vsp1/
Dvsp1_rwpf.c66 fse->min_width = format->width; in vsp1_rwpf_enum_frame_size()
67 fse->max_width = format->width; in vsp1_rwpf_enum_frame_size()
124 format->width = clamp_t(unsigned int, fmt->format.width, in vsp1_rwpf_set_format()
137 crop->width = fmt->format.width; in vsp1_rwpf_set_format()
169 sel->r.width = format->width; in vsp1_rwpf_get_selection()
200 sel->r.left = min_t(unsigned int, sel->r.left, format->width - 2); in vsp1_rwpf_set_selection()
206 sel->r.width = min_t(unsigned int, sel->r.width, in vsp1_rwpf_set_selection()
207 format->width - sel->r.left); in vsp1_rwpf_set_selection()
217 format->width = crop->width; in vsp1_rwpf_set_selection()
Dvsp1_sru.c148 if (input->width != output->width) in sru_s_stream()
218 fse->min_width = format->width; in sru_enum_frame_size()
220 if (format->width <= SRU_MAX_SIZE / 2 && in sru_enum_frame_size()
222 fse->max_width = format->width * 2; in sru_enum_frame_size()
225 fse->max_width = format->width; in sru_enum_frame_size()
259 fmt->width = clamp(fmt->width, SRU_MIN_SIZE, SRU_MAX_SIZE); in sru_try_format()
275 input_area = format->width * format->height; in sru_try_format()
276 output_area = min(fmt->width, SRU_MAX_SIZE) in sru_try_format()
279 if (fmt->width <= SRU_MAX_SIZE / 2 && in sru_try_format()
282 fmt->width = format->width * 2; in sru_try_format()
[all …]
Dvsp1_uds.c132 hscale = uds_compute_ratio(input->width, output->width); in uds_s_stream()
161 (output->width << VI6_UDS_CLIP_SIZE_HSIZE_SHIFT) | in uds_s_stream()
222 uds_output_limits(format->width, &fse->min_width, in uds_enum_frame_size()
257 fmt->width = clamp(fmt->width, UDS_MIN_SIZE, UDS_MAX_SIZE); in uds_try_format()
267 uds_output_limits(format->width, &minimum, &maximum); in uds_try_format()
268 fmt->width = clamp(fmt->width, minimum, maximum); in uds_try_format()
Dvsp1_bru.c104 (format->width << VI6_BRU_VIRRPF_SIZE_HSIZE_SHIFT) | in bru_s_stream()
279 fmt->width = clamp(fmt->width, BRU_MIN_SIZE, BRU_MAX_SIZE); in bru_try_format()
304 compose->width = format->width; in bru_set_format()
335 sel->r.width = BRU_MAX_SIZE; in bru_get_selection()
367 sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1); in bru_set_selection()
375 sel->r.width = format->width; in bru_set_selection()
/linux-4.1.27/drivers/media/platform/omap3isp/
Dispresizer.c354 u32 width, u32 height) in resizer_set_output_size() argument
359 rgval = (width << ISPRSZ_OUT_SIZE_HORZ_SHIFT) in resizer_set_output_size()
417 u32 width, u32 height) in resizer_set_input_size() argument
422 rgval = (width << ISPRSZ_IN_SIZE_HORZ_SHIFT) in resizer_set_input_size()
510 *max_rate = div_u64((u64)clock * res->crop.active.width, ofmt->width); in omap3isp_resizer_max_rate()
589 requests_per_frame = DIV_ROUND_UP(res->crop.active.width * 2, 256) in resizer_adjust_bandwidth()
795 unsigned int width; in resizer_calc_ratios() local
830 min_width = ((input->width - 7) * 256 - 32 - 64 * sph) / 1024 + 1; in resizer_calc_ratios()
864 max_width = min(((input->width - 7) * 256 + 255 - 16 - 32 * sph) / 64 in resizer_calc_ratios()
875 output->width = clamp(output->width, min_width, in resizer_calc_ratios()
[all …]
/linux-4.1.27/arch/arm/mach-s3c64xx/
Dsetup-sdhci-gpio.c25 void s3c64xx_setup_sdhci0_cfg_gpio(struct platform_device *dev, int width) in s3c64xx_setup_sdhci0_cfg_gpio() argument
30 s3c_gpio_cfgrange_nopull(S3C64XX_GPG(0), 2 + width, S3C_GPIO_SFN(2)); in s3c64xx_setup_sdhci0_cfg_gpio()
38 void s3c64xx_setup_sdhci1_cfg_gpio(struct platform_device *dev, int width) in s3c64xx_setup_sdhci1_cfg_gpio() argument
43 s3c_gpio_cfgrange_nopull(S3C64XX_GPH(0), 2 + width, S3C_GPIO_SFN(2)); in s3c64xx_setup_sdhci1_cfg_gpio()
51 void s3c64xx_setup_sdhci2_cfg_gpio(struct platform_device *dev, int width) in s3c64xx_setup_sdhci2_cfg_gpio() argument
54 s3c_gpio_cfgrange_nopull(S3C64XX_GPH(6), width, S3C_GPIO_SFN(3)); in s3c64xx_setup_sdhci2_cfg_gpio()
/linux-4.1.27/arch/mips/include/asm/
Dprocessor.h106 # define FPR_IDX(width, idx) (idx) argument
108 # define FPR_IDX(width, idx) ((idx) ^ ((64 / (width)) - 1)) argument
111 #define BUILD_FPR_ACCESS(width) \ argument
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; \
/linux-4.1.27/arch/arm/mach-imx/
Dclk.h62 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) in imx_clk_divider() argument
86 reg, shift, width, 0, &imx_ccm_lock); in imx_clk_divider()
90 const char *parent, void __iomem *reg, u8 shift, u8 width, in imx_clk_divider_flags() argument
94 reg, shift, width, 0, &imx_ccm_lock); in imx_clk_divider_flags()
112 u8 shift, u8 width, const char **parents, int num_parents) in imx_clk_mux() argument
116 width, 0, &imx_ccm_lock); in imx_clk_mux()
[all …]
/linux-4.1.27/sound/core/oss/
Dpcm_plugin.c52 ssize_t width; in snd_pcm_plugin_alloc() local
62 if ((width = snd_pcm_format_physical_width(format->format)) < 0) in snd_pcm_plugin_alloc()
63 return width; in snd_pcm_plugin_alloc()
64 size = frames * format->channels * width; in snd_pcm_plugin_alloc()
84 c->area.first = channel * width; in snd_pcm_plugin_alloc()
85 c->area.step = format->channels * width; in snd_pcm_plugin_alloc()
97 c->area.step = width; in snd_pcm_plugin_alloc()
321 unsigned int width = snd_pcm_format_width(format); in snd_pcm_plug_slave_format() local
332 if (w >= width) in snd_pcm_plug_slave_format()
333 badness = w - width; in snd_pcm_plug_slave_format()
[all …]
/linux-4.1.27/drivers/pinctrl/
Dpinctrl-tegra.c306 s8 *bank, s16 *reg, s8 *bit, s8 *width) in tegra_pinconf_reg() argument
313 *width = 2; in tegra_pinconf_reg()
319 *width = 1; in tegra_pinconf_reg()
325 *width = 1; in tegra_pinconf_reg()
331 *width = 1; in tegra_pinconf_reg()
337 *width = 1; in tegra_pinconf_reg()
343 *width = 1; in tegra_pinconf_reg()
349 *width = 1; in tegra_pinconf_reg()
360 *width = 1; in tegra_pinconf_reg()
371 *width = 1; in tegra_pinconf_reg()
[all …]
Dpinctrl-tz1090-pdc.c651 u32 *reg, u32 *width, u32 *mask, u32 *shift, in tz1090_pdc_pinconf_reg() argument
676 *width = 2; in tz1090_pdc_pinconf_reg()
679 *mask = (BIT(*width) - 1) << *shift; in tz1090_pdc_pinconf_reg()
690 u32 reg, width, mask, shift, val, tmp, arg; in tz1090_pdc_pinconf_get() local
694 &reg, &width, &mask, &shift, &val); in tz1090_pdc_pinconf_get()
720 u32 reg, width, mask, shift, val, tmp; in tz1090_pdc_pinconf_set() local
733 &reg, &width, &mask, &shift, &val); in tz1090_pdc_pinconf_set()
772 bool report_err, u32 *reg, u32 *width, in tz1090_pdc_pinconf_group_reg() argument
789 *width = 1; in tz1090_pdc_pinconf_group_reg()
794 *width = 2; in tz1090_pdc_pinconf_group_reg()
[all …]
/linux-4.1.27/drivers/mtd/maps/
Dscx200_docflash.c28 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; in init_scx200_docflash()
119 width = 8; in init_scx200_docflash()
137 if (width != 8 && width != 16) { in init_scx200_docflash()
158 if (width == 8) { in init_scx200_docflash()
167 &docmem, width); in init_scx200_docflash()
170 if (width == 8) in init_scx200_docflash()
Dpismo.c25 u8 width; member
42 u8 width; member
61 static unsigned int pismo_width_to_bytes(unsigned int width) in pismo_width_to_bytes() argument
63 width &= 15; in pismo_width_to_bytes()
64 if (width > 2) in pismo_width_to_bytes()
66 return 1 << width; in pismo_width_to_bytes()
137 .width = region->width, in pismo_add_nor()
151 .bankwidth = region->width, in pismo_add_sram()
166 region.width = pismo_width_to_bytes(cs->width); in pismo_add_one()
170 if (region.width == 0) { in pismo_add_one()
[all …]
/linux-4.1.27/arch/powerpc/kernel/
Dbtext.c119 void __init btext_setup_display(int width, int height, int depth, int pitch, in btext_setup_display() argument
124 g_max_loc_X = width / 8; in btext_setup_display()
131 dispDeviceRect[2] = width; in btext_setup_display()
174 unsigned int width, height, depth, pitch; in btext_initialize() local
183 width = *prop; in btext_initialize()
196 pitch = width * ((depth + 7) / 8); in btext_initialize()
218 g_max_loc_X = width / 8; in btext_initialize()
224 dispDeviceRect[2] = width; in btext_initialize()
280 void btext_update_display(unsigned long phys, int width, int height, in btext_update_display() argument
293 dispDeviceRect[2] = width; in btext_update_display()
[all …]
/linux-4.1.27/arch/arm/mach-ep93xx/
Dmicro9.c48 unsigned int width; in micro9_register_flash() local
51 width = 4; in micro9_register_flash()
53 width = micro9_detect_bootwidth(); in micro9_register_flash()
55 width = 0; in micro9_register_flash()
57 if (width) in micro9_register_flash()
58 ep93xx_register_flash(width, EP93XX_CS1_PHYS_BASE, SZ_64M); in micro9_register_flash()
/linux-4.1.27/arch/arm/boot/dts/
Domap-zoom-common.dtsi19 bank-width = <2>;
21 reg-io-width = <1>;
27 gpmc,device-width = <1>;
55 bank-width = <2>;
57 reg-io-width = <1>;
66 bank-width = <2>;
68 reg-io-width = <1>;
77 bank-width = <2>;
79 reg-io-width = <1>;
/linux-4.1.27/drivers/media/pci/solo6x10/
Dsolo6x10-enc.c36 unsigned long width; in solo_capture_config() local
59 width = solo_dev->video_hsize; in solo_capture_config()
62 SOLO_DIM_H_MB_NUM(width / 16) | in solo_capture_config()
67 width = solo_dev->video_hsize / 2; in solo_capture_config()
70 SOLO_DIM_H_MB_NUM(width / 16) | in solo_capture_config()
75 width = solo_dev->video_hsize / 2; in solo_capture_config()
78 SOLO_DIM_H_MB_NUM(width / 16) | in solo_capture_config()
83 width = solo_dev->video_hsize / 3; in solo_capture_config()
86 SOLO_DIM_H_MB_NUM(width / 16) | in solo_capture_config()
91 width = solo_dev->video_hsize / 4; in solo_capture_config()
[all …]
/linux-4.1.27/drivers/gpu/drm/vmwgfx/
Dsvga_overlay.h138 uint32 *width, /* IN / OUT */ in VMwareVideoGetAttributes() argument
146 *width = (*width + 1) & ~1; in VMwareVideoGetAttributes()
155 *size = (*width + 3) & ~3; in VMwareVideoGetAttributes()
167 tmp = ((*width >> 1) + 3) & ~3; in VMwareVideoGetAttributes()
185 *size = *width * 2; in VMwareVideoGetAttributes()
Dsvga3d_surfacedefs.h745 size.width = max_t(u32, base_level.width >> mip_level, 1); in svga3dsurface_get_mip_size()
756 block_size->width = DIV_ROUND_UP(pixel_size->width, in svga3dsurface_get_size_in_blocks()
757 desc->block_size.width); in svga3dsurface_get_size_in_blocks()
779 pitch = blocks.width * desc->pitch_bytes_per_block; in svga3dsurface_calculate_pitch()
817 total_size = clamped_umul32(image_blocks.width, in svga3dsurface_get_image_buffer_size()
866 u32 width, u32 height, in svga3dsurface_get_pixel_offset() argument
870 const u32 bw = desc->block_size.width, bh = desc->block_size.height; in svga3dsurface_get_pixel_offset()
872 const u32 rowstride = DIV_ROUND_UP(width, bw) * desc->bytes_per_block; in svga3dsurface_get_pixel_offset()
Dsvga_reg.h906 uint32 width; member
985 uint32 width; member
1076 uint32 width; member
1097 uint32 width; member
1120 uint32 width; member
1149 uint32 width; member
1171 uint32 width; member
1197 uint32 width; member
/linux-4.1.27/drivers/media/usb/go7007/
Dgo7007-v4l2.c88 static void get_resolution(struct go7007 *go, int *width, int *height) in get_resolution() argument
92 *width = 720; in get_resolution()
96 *width = 720; in get_resolution()
101 *width = go->board_info->sensor_width; in get_resolution()
187 int width, height; in set_capture_size() local
195 width = sensor_width; in set_capture_size()
198 if (fmt->fmt.pix.width > sensor_width) in set_capture_size()
199 width = sensor_width; in set_capture_size()
200 else if (fmt->fmt.pix.width < 144) in set_capture_size()
201 width = 144; in set_capture_size()
[all …]
/linux-4.1.27/drivers/gpu/drm/
Ddrm_rect.c314 int width, int height, in drm_rect_rotate() argument
323 r->x1 = width - tmp.x2; in drm_rect_rotate()
324 r->x2 = width - tmp.x1; in drm_rect_rotate()
340 r->y1 = width - tmp.x2; in drm_rect_rotate()
341 r->y2 = width - tmp.x1; in drm_rect_rotate()
345 r->x1 = width - tmp.x2; in drm_rect_rotate()
346 r->x2 = width - tmp.x1; in drm_rect_rotate()
388 int width, int height, in drm_rect_rotate_inv() argument
398 r->x1 = width - tmp.y2; in drm_rect_rotate_inv()
399 r->x2 = width - tmp.y1; in drm_rect_rotate_inv()
[all …]
/linux-4.1.27/drivers/gpu/drm/panel/
Dpanel-simple.c48 unsigned int width; member
138 connector->display_info.width_mm = panel->desc->size.width; in 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,
[all …]
/linux-4.1.27/drivers/clk/ti/
Ddivider.c31 #define div_mask(d) ((1 << ((d)->width)) - 1)
258 u8 shift, u8 width, u8 clk_divider_flags, in _register_divider() argument
267 if (width + shift > 16) { in _register_divider()
289 div->width = width; in _register_divider()
305 _get_div_table_from_setup(struct ti_clk_divider *setup, u8 *width) in _get_div_table_from_setup() argument
333 *width = fls(val); in _get_div_table_from_setup()
347 *width = 0; in _get_div_table_from_setup()
354 *width = i; in _get_div_table_from_setup()
357 *width = fls(*width); in _get_div_table_from_setup()
384 div->table = _get_div_table_from_setup(setup, &div->width); in ti_clk_build_component_div()
[all …]
/linux-4.1.27/drivers/media/platform/
Dsh_vou.c189 addr2 = addr1 + vou_dev->pix.width * vou_dev->pix.height; in sh_vou_schedule_next()
226 sh_vou_reg_ab_write(vou_dev, VOUAIR, vou_dev->pix.width * row_coeff); in sh_vou_stream_start()
247 *size = vou_fmt[vou_dev->pix_idx].bpp * vou_dev->pix.width * in sh_vou_buf_setup()
271 int bytes_per_line = vou_fmt[vou_dev->pix_idx].bpp * pix->width / 8; in sh_vou_buf_prepare()
276 if (vb->width != pix->width || in sh_vou_buf_prepare()
279 vb->width = pix->width; in sh_vou_buf_prepare()
487 dsr_h = rect->width + rect->left; in sh_vou_configure_geometry()
492 pix->width, frame_in_height, black_left, black_top, in sh_vou_configure_geometry()
496 sh_vou_reg_ab_write(vou_dev, VOUISR, (pix->width << 16) | frame_in_height); in sh_vou_configure_geometry()
549 unsigned int found = geo->output.width * vou_scale_h_den[i] / in vou_adjust_input()
[all …]
Dfsl-viu.c210 int width, height, sizeimage; member
368 } else if (prev->vb.width == buf->vb.width && in restart_video_queue()
407 *size = fh->width * fh->height * fh->fmt->depth >> 3; in buffer_setup()
453 reg_val.dma_inc = buf->vb.width * 2; in buffer_activate()
457 reg_val.dma_inc = buf->vb.width * 4; in buffer_activate()
467 buf->vb.width; in buffer_activate()
495 if (fh->width < 48 || fh->width > norm_maxw() || in buffer_prepare()
498 buf->vb.size = (fh->width * fh->height * fh->fmt->depth) >> 3; in buffer_prepare()
503 buf->vb.width != fh->width || in buffer_prepare()
507 buf->vb.width = fh->width; in buffer_prepare()
[all …]
Dvim2m.c111 unsigned int width; member
211 int width, height, bytesperline; in device_process() local
215 width = q_data->width; in device_process()
217 bytesperline = (q_data->width * q_data->fmt->depth) >> 3; in device_process()
232 tile_w = (width * (q_data[V4L2_M2M_DST].fmt->depth >> 3)) in device_process()
493 f->fmt.pix.width = q_data->width; in vidioc_g_fmt()
497 f->fmt.pix.bytesperline = (q_data->width * q_data->fmt->depth) >> 3; in vidioc_g_fmt()
525 if (f->fmt.pix.width < MIN_W) in vidioc_try_fmt()
526 f->fmt.pix.width = MIN_W; in vidioc_try_fmt()
527 else if (f->fmt.pix.width > MAX_W) in vidioc_try_fmt()
[all …]
Darv.c119 int width, height; member
441 pix->width = ar->width; in ar_g_fmt_vid_cap()
445 pix->bytesperline = ar->width; in ar_g_fmt_vid_cap()
446 pix->sizeimage = 2 * ar->width * ar->height; in ar_g_fmt_vid_cap()
457 if (pix->height <= AR_HEIGHT_QVGA || pix->width <= AR_WIDTH_QVGA) { in ar_try_fmt_vid_cap()
459 pix->width = AR_WIDTH_QVGA; in ar_try_fmt_vid_cap()
463 pix->width = AR_WIDTH_VGA; in ar_try_fmt_vid_cap()
467 pix->bytesperline = ar->width; in ar_try_fmt_vid_cap()
468 pix->sizeimage = 2 * ar->width * ar->height; in ar_try_fmt_vid_cap()
483 ar->width = pix->width; in ar_s_fmt_vid_cap()
[all …]
/linux-4.1.27/arch/arm/mach-s3c24xx/
Dsetup-sdhci-gpio.c26 void s3c2416_setup_sdhci0_cfg_gpio(struct platform_device *dev, int width) in s3c2416_setup_sdhci0_cfg_gpio() argument
28 s3c_gpio_cfgrange_nopull(S3C2410_GPE(5), 2 + width, S3C_GPIO_SFN(2)); in s3c2416_setup_sdhci0_cfg_gpio()
31 void s3c2416_setup_sdhci1_cfg_gpio(struct platform_device *dev, int width) in s3c2416_setup_sdhci1_cfg_gpio() argument
33 s3c_gpio_cfgrange_nopull(S3C2410_GPL(0), width, S3C_GPIO_SFN(2)); in s3c2416_setup_sdhci1_cfg_gpio()
/linux-4.1.27/arch/mips/lib/
Ddump_tlb.c74 int width = 8; in dump_tlb() local
76 int width = 11; in dump_tlb()
87 width, (entryhi & ~0x1fffUL), in dump_tlb()
90 width, in dump_tlb()
96 width, in dump_tlb()
/linux-4.1.27/arch/sparc/kernel/
Dbtext.c44 unsigned int width, height, depth, pitch; in btext_initialize() local
48 if (prom_getproperty(node, "width", (char *)&width, 4) < 0) in btext_initialize()
54 pitch = width * ((depth + 7) / 8); in btext_initialize()
74 g_max_loc_X = width / 8; in btext_initialize()
80 dispDeviceRect[2] = width; in btext_initialize()
99 unsigned long width = ((dispDeviceRect[2] - dispDeviceRect[0]) * in btext_clearscreen() local
106 for(j=width; j; --j) in btext_clearscreen()
117 unsigned long width = ((dispDeviceRect[2] - dispDeviceRect[0]) * in scrollscreen() local
125 for(j=width; j; --j) in scrollscreen()
133 for(j=width; j; --j) in scrollscreen()
/linux-4.1.27/drivers/media/platform/exynos4-is/
Dfimc-capture.c362 wh = pixm->width * pixm->height; in queue_setup()
584 u32 *width, u32 *height, in fimc_capture_try_format() argument
620 v4l_bound_align_image(width, max_t(u32, *width, 32), max_w, 4, in fimc_capture_try_format()
630 *width = ctx->s_frame.f_width; in fimc_capture_try_format()
637 min_w = dst->offs_h + dst->width; in fimc_capture_try_format()
647 v4l_bound_align_image(width, min_w, max_w, in fimc_capture_try_format()
654 pad, code ? *code : 0, *width, *height, in fimc_capture_try_format()
675 r->width = sink->f_width; in fimc_capture_try_selection()
683 max_sc_h = min(SCALER_MAX_HRATIO, 1 << (ffs(sink->width) - 3)); in fimc_capture_try_selection()
715 v4l_bound_align_image(&r->width, min_w, max_w, ffs(min_sz) - 1, in fimc_capture_try_selection()
[all …]
Dfimc-is-param.c215 mf->width = isp->otf_input.width; in __is_get_frame_size()
231 isp->otf_input.width = mf->width; in __is_set_frame_size()
233 isp->otf_output.width = mf->width; in __is_set_frame_size()
236 drc->otf_input.width = mf->width; in __is_set_frame_size()
238 drc->otf_output.width = mf->width; in __is_set_frame_size()
241 fd->otf_input.width = mf->width; in __is_set_frame_size()
695 isp->otf_input.width = DEFAULT_PREVIEW_STILL_WIDTH; in fimc_is_set_initial_params()
710 isp->dma1_input.width = 0; in fimc_is_set_initial_params()
717 isp->dma1_input.width = 0; in fimc_is_set_initial_params()
722 isp->dma2_input.width = 0; in fimc_is_set_initial_params()
[all …]
Dfimc-m2m.c325 v4l_bound_align_image(&pix->width, 16, max_w, mod_x, in fimc_try_fmt_mplane()
328 fimc_adjust_mplane_format(fmt, pix->width, pix->height, &f->fmt.pix_mp); in fimc_try_fmt_mplane()
349 frame->f_width = pixm->width; in __set_frame_format()
351 frame->o_width = pixm->width; in __set_frame_format()
353 frame->width = pixm->width; in __set_frame_format()
411 cr->bounds.width = frame->o_width; in fimc_m2m_cropcap()
429 cr->c.width = frame->width; in fimc_m2m_g_crop()
466 v4l_bound_align_image(&cr->c.width, min_size, f->o_width, in fimc_m2m_try_crop()
472 if (cr->c.left + cr->c.width > f->o_width) in fimc_m2m_try_crop()
473 cr->c.left = f->o_width - cr->c.width; in fimc_m2m_try_crop()
[all …]
Dfimc-lite.c377 wh = pixm->width * pixm->height; in queue_setup()
579 v4l_bound_align_image(&mf->width, 8, dd->max_width, in fimc_lite_subdev_try_fmt()
610 mf->width = rect->width; in fimc_lite_subdev_try_fmt()
617 mf->code, mf->colorspace, mf->width, mf->height); in fimc_lite_subdev_try_fmt()
626 v4l_bound_align_image(&r->width, 0, frame->f_width, 0, in fimc_lite_try_crop()
630 r->left = clamp_t(u32, r->left, 0, frame->f_width - r->width); in fimc_lite_try_crop()
635 r->left, r->top, r->width, r->height, in fimc_lite_try_crop()
646 r->width = crop_rect->width; in fimc_lite_try_compose()
650 r->left = clamp_t(u32, r->left, 0, frame->f_width - r->width); in fimc_lite_try_compose()
655 r->left, r->top, r->width, r->height, in fimc_lite_try_compose()
[all …]
/linux-4.1.27/drivers/video/fbdev/i810/
Di810_accel.c195 static inline void color_blit(int width, int height, int pitch, int dest, in color_blit() argument
205 PUT_RING(height << 16 | width); in color_blit()
301 u32 dx, dy, width, height, dest, rop = 0, color = 0; in i810fb_fillrect() local
317 width = rect->width * par->depth; in i810fb_fillrect()
322 color_blit(width, height, info->fix.line_length, dest, rop, color, in i810fb_fillrect()
329 u32 sx, sy, dx, dy, pitch, width, height, src, dest, xdir; in i810fb_copyarea() local
339 width = region->width * par->depth; in i810fb_copyarea()
349 sx += width - 1; in i810fb_copyarea()
350 dx += width - 1; in i810fb_copyarea()
363 source_copy_blit(width, height, pitch, xdir, src, dest, in i810fb_copyarea()
[all …]
/linux-4.1.27/drivers/media/usb/gspca/stv06xx/
Dstv06xx_hdcs.c77 int width, height; member
289 unsigned int width, unsigned int height) in hdcs_set_size() argument
297 width = (width + 3) & ~0x3; in hdcs_set_size()
300 if (width > hdcs->array.width) in hdcs_set_size()
301 width = hdcs->array.width; in hdcs_set_size()
319 x = hdcs->array.left + (hdcs->array.width - width) / 2; in hdcs_set_size()
324 win[3] = (x + width) / 4 - 1; in hdcs_set_size()
331 hdcs->w = width; in hdcs_set_size()
390 hdcs->array.width = HDCS_1X00_DEF_WIDTH; in hdcs_probe_1x00()
452 hdcs->array.width = HDCS_1020_DEF_WIDTH; in hdcs_probe_1020()
[all …]
/linux-4.1.27/drivers/staging/media/omap4iss/
Diss_ipipe.c105 (format->width - 1) & IPIPE_SRC_HSZ_MASK); in ipipe_configure()
201 unsigned int width = fmt->width; in ipipe_try_format() local
217 fmt->width = clamp_t(u32, width, 1, 8192); in ipipe_try_format()
227 fmt->width = clamp_t(u32, width, 32, fmt->width); in ipipe_try_format()
281 format.width = 1; in ipipe_enum_frame_size()
284 fse->min_width = format.width; in ipipe_enum_frame_size()
291 format.width = -1; in ipipe_enum_frame_size()
294 fse->max_width = format.width; in ipipe_enum_frame_size()
362 if (source_fmt->format.width != sink_fmt->format.width || in ipipe_link_validate()
389 format.format.width = 4096; in ipipe_init_formats()
Diss_ipipeif.c199 (format->width - 1) & ISIF_LNH_MASK); in ipipeif_configure()
386 unsigned int width = fmt->width; in ipipeif_try_format() local
405 fmt->width = clamp_t(u32, width, 1, 8192); in ipipeif_try_format()
419 fmt->width = clamp_t(u32, width, 32, (fmt->width + 15) & ~15); in ipipeif_try_format()
420 fmt->width &= ~15; in ipipeif_try_format()
429 fmt->width = clamp_t(u32, width, 32, fmt->width); in ipipeif_try_format()
493 format.width = 1; in ipipeif_enum_frame_size()
496 fse->min_width = format.width; in ipipeif_enum_frame_size()
503 format.width = -1; in ipipeif_enum_frame_size()
506 fse->max_width = format.width; in ipipeif_enum_frame_size()
[all …]
Diss_resizer.c223 informat->width - 1); in resizer_configure()
231 outformat->width - 1); in resizer_configure()
446 unsigned int width = fmt->width; in resizer_try_format() local
462 fmt->width = clamp_t(u32, width, 1, 8192); in resizer_try_format()
481 fmt->width = clamp_t(u32, width, 32, (fmt->width + 15) & ~15); in resizer_try_format()
482 fmt->width &= ~15; in resizer_try_format()
555 format.width = 1; in resizer_enum_frame_size()
558 fse->min_width = format.width; in resizer_enum_frame_size()
565 format.width = -1; in resizer_enum_frame_size()
568 fse->max_width = format.width; in resizer_enum_frame_size()
[all …]
/linux-4.1.27/drivers/media/usb/gspca/
Dstk1135.c313 u16 width, height; in stk1135_configure_mt9m112() local
319 width = gspca_dev->pixfmt.width; in stk1135_configure_mt9m112()
321 if (width <= 640 && height <= 512) { /* context A (half readout speed)*/ in stk1135_configure_mt9m112()
322 sensor_write(gspca_dev, 0x1a7, width); in stk1135_configure_mt9m112()
329 sensor_write(gspca_dev, 0x1a1, width); in stk1135_configure_mt9m112()
445 u16 width, height; in sd_start() local
459 width = gspca_dev->pixfmt.width; in sd_start()
461 reg_w(gspca_dev, STK1135_REG_CIEPO + 0, width & 0xff); in sd_start()
462 reg_w(gspca_dev, STK1135_REG_CIEPO + 1, width >> 8); in sd_start()
620 fmt->fmt.pix.width = clamp(fmt->fmt.pix.width, 32U, 1280U); in stk1135_try_fmt()
[all …]
Djpeg.h138 int width, in jpeg_define() argument
145 jpeg_hdr[JPEG_HEIGHT_OFFSET + 2] = width >> 8; in jpeg_define()
146 jpeg_hdr[JPEG_HEIGHT_OFFSET + 3] = width; in jpeg_define()
/linux-4.1.27/drivers/clk/socfpga/
Dclk.h30 #define div_mask(width) ((1 << (width)) - 1) argument
47 u32 width; /* only valid if div_reg != 0 */ member
57 u32 width; /* only valid if div_reg != 0 */ member
/linux-4.1.27/sound/soc/codecs/
Dsi476x.c162 int rate, width, err; in si476x_codec_hw_params() local
172 width = SI476X_PCM_FORMAT_S8; in si476x_codec_hw_params()
175 width = SI476X_PCM_FORMAT_S16_LE; in si476x_codec_hw_params()
178 width = SI476X_PCM_FORMAT_S20_3LE; in si476x_codec_hw_params()
181 width = SI476X_PCM_FORMAT_S24_LE; in si476x_codec_hw_params()
198 (width << SI476X_DIGITAL_IO_SLOT_SIZE_SHIFT) | in si476x_codec_hw_params()
199 (width << SI476X_DIGITAL_IO_SAMPLE_SIZE_SHIFT)); in si476x_codec_hw_params()
/linux-4.1.27/drivers/misc/eeprom/
Deeprom_93cx6.c194 command = (PCI_EEPROM_READ_OPCODE << eeprom->width) | word; in eeprom_93cx6_read()
196 PCI_EEPROM_WIDTH_OPCODE + eeprom->width); in eeprom_93cx6_read()
260 command = (PCI_EEPROM_READ_OPCODE << (eeprom->width + 1)) | byte; in eeprom_93cx6_readb()
262 PCI_EEPROM_WIDTH_OPCODE + eeprom->width + 1); in eeprom_93cx6_readb()
315 command <<= (eeprom->width - 2); in eeprom_93cx6_wren()
318 PCI_EEPROM_WIDTH_OPCODE + eeprom->width); in eeprom_93cx6_wren()
345 command = PCI_EEPROM_WRITE_OPCODE << eeprom->width; in eeprom_93cx6_write()
350 PCI_EEPROM_WIDTH_OPCODE + eeprom->width); in eeprom_93cx6_write()
/linux-4.1.27/drivers/media/platform/xilinx/
Dxilinx-vip.c110 u32 width; in xvip_of_get_format() local
117 ret = of_property_read_u32(node, "xlnx,video-width", &width); in xvip_of_get_format()
127 if (format->vf_code != vf_code || format->width != width) in xvip_of_get_format()
153 format->width = clamp_t(unsigned int, fmt->format.width, in xvip_set_format_size()
315 fse->min_width = format->width; in xvip_enum_frame_size()
316 fse->max_width = format->width; in xvip_enum_frame_size()
/linux-4.1.27/net/mac80211/
Dspectmgmt.c119 switch (sdata->vif.bss_conf.chandef.width) { in ieee80211_parse_ch_switch_ie()
122 csa_ie->chandef.width = in ieee80211_parse_ch_switch_ie()
123 sdata->vif.bss_conf.chandef.width; in ieee80211_parse_ch_switch_ie()
145 new_vht_chandef.width = NL80211_CHAN_WIDTH_80; in ieee80211_parse_ch_switch_ie()
148 new_vht_chandef.width = NL80211_CHAN_WIDTH_160; in ieee80211_parse_ch_switch_ie()
156 new_vht_chandef.width = NL80211_CHAN_WIDTH_80P80; in ieee80211_parse_ch_switch_ie()
160 new_vht_chandef.width == NL80211_CHAN_WIDTH_80P80) in ieee80211_parse_ch_switch_ie()
163 new_vht_chandef.width == NL80211_CHAN_WIDTH_160) in ieee80211_parse_ch_switch_ie()
166 new_vht_chandef.width > NL80211_CHAN_WIDTH_20) in ieee80211_parse_ch_switch_ie()
Dibss.c175 if (chandef->width != NL80211_CHAN_WIDTH_20_NOHT && in ieee80211_ibss_build_presp()
176 chandef->width != NL80211_CHAN_WIDTH_5 && in ieee80211_ibss_build_presp()
177 chandef->width != NL80211_CHAN_WIDTH_10 && in ieee80211_ibss_build_presp()
194 if (chandef->width != NL80211_CHAN_WIDTH_20 && in ieee80211_ibss_build_presp()
195 chandef->width != NL80211_CHAN_WIDTH_40 && in ieee80211_ibss_build_presp()
268 if (chandef.width == NL80211_CHAN_WIDTH_5 || in __ieee80211_sta_join_ibss()
269 chandef.width == NL80211_CHAN_WIDTH_10 || in __ieee80211_sta_join_ibss()
270 chandef.width == NL80211_CHAN_WIDTH_20_NOHT || in __ieee80211_sta_join_ibss()
271 chandef.width == NL80211_CHAN_WIDTH_20) { in __ieee80211_sta_join_ibss()
276 chandef.width = NL80211_CHAN_WIDTH_20; in __ieee80211_sta_join_ibss()
[all …]
/linux-4.1.27/drivers/media/platform/s3c-camif/
Dcamif-capture.c61 f->dma_offset.line = f->f_width - (f->rect.left + f->rect.width); in camif_prepare_dma_offset()
251 pix_size = frame->rect.width * frame->rect.height; in camif_prepare_addr()
458 size = (pix->width * pix->height * fmt->depth) / 8; in queue_setup()
722 pix->width = frame->f_width; in s3c_camif_vidioc_g_fmt()
751 pix->width, pix->height, crop->width, crop->height, in __camif_video_try_format()
757 sc_hrmax = min(SCALER_MAX_RATIO, 1 << (ffs(crop->width) - 3)); in __camif_video_try_format()
760 wmin = max_t(u32, pix_lim->min_out_width, crop->width / sc_hrmax); in __camif_video_try_format()
765 v4l_bound_align_image(&pix->width, wmin, pix_lim->max_sc_out_width, in __camif_video_try_format()
769 pix->bytesperline = pix->width * fmt->ybpp; in __camif_video_try_format()
770 pix->sizeimage = (pix->width * pix->height * fmt->depth) / 8; in __camif_video_try_format()
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/misc/
Difm-csi.txt12 - ifm,csi-addr-bus-width: address bus width (valid values are 16, 24, 25)
13 - ifm,csi-data-bus-width: data bus width (valid values are 8 and 16)
32 ifm,csi-addr-bus-width = <24>;
33 ifm,csi-data-bus-width = <8>;
/linux-4.1.27/Documentation/video4linux/
Dsh_mobile_ceu_camera.txt45 S_CROP(left / top = (5) - (1), width / height = (5') - (5))
46 S_FMT(width / height = (6') - (6))
50 (1) to (1') - whole max width or height
52 (2) to (2') - sensor cropped width or height
55 (4) to (4') - CEU cropped width or height
56 (5) to (5') - reverse sensor scale applied to CEU cropped width or height
87 subdev->video_ops->s_fmt(.width = width_s_out)
103 ceu_crop(.width = width_ceu, .left = left_ceu)
107 scale_ceu = width_ceu / width
/linux-4.1.27/drivers/clk/mmp/
Dclk.h41 #define MMP_CLK_BITS_MASK(width, shift) \ argument
42 (((1 << (width)) - 1) << (shift))
43 #define MMP_CLK_BITS_GET_VAL(data, width, shift) \ argument
44 ((data & MMP_CLK_BITS_MASK(width, shift)) >> (shift))
45 #define MMP_CLK_BITS_SET_VAL(val, width, shift) \ argument
46 (((val) << (shift)) & MMP_CLK_BITS_MASK(width, shift))
203 u8 width; member
218 u8 width; member
Dclk-mix.c138 u8 width, shift; in _set_rate() local
156 width = ri->width_div; in _set_rate()
158 mux_div &= ~MMP_CLK_BITS_MASK(width, shift); in _set_rate()
159 mux_div |= MMP_CLK_BITS_SET_VAL(div_val, width, shift); in _set_rate()
163 width = ri->width_mux; in _set_rate()
165 mux_div &= ~MMP_CLK_BITS_MASK(width, shift); in _set_rate()
166 mux_div |= MMP_CLK_BITS_SET_VAL(mux_val, width, shift); in _set_rate()
296 u8 width, shift; in mmp_clk_mix_get_parent() local
311 width = mix->reg_info.width_mux; in mmp_clk_mix_get_parent()
314 mux_val = MMP_CLK_BITS_GET_VAL(mux_div, width, shift); in mmp_clk_mix_get_parent()
[all …]
/linux-4.1.27/drivers/media/i2c/
Dmt9t001.c298 hratio = DIV_ROUND_CLOSEST(crop->width, format->width); in mt9t001_s_stream()
317 ret = mt9t001_write(client, MT9T001_WINDOW_WIDTH, crop->width - 1); in mt9t001_s_stream()
373 unsigned int width; in mt9t001_set_format() local
382 width = clamp_t(unsigned int, ALIGN(format->format.width, 2), in mt9t001_set_format()
383 max_t(unsigned int, __crop->width / 8, in mt9t001_set_format()
385 __crop->width); in mt9t001_set_format()
391 hratio = DIV_ROUND_CLOSEST(__crop->width, width); in mt9t001_set_format()
396 __format->width = __crop->width / hratio; in mt9t001_set_format()
438 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in mt9t001_set_selection()
445 rect.width = min_t(unsigned int, rect.width, in mt9t001_set_selection()
[all …]
Dvs6624.c66 .width = VGA_WIDTH,
585 if (fmt->width > VGA_WIDTH) in vs6624_try_mbus_fmt()
586 fmt->width = VGA_WIDTH; in vs6624_try_mbus_fmt()
589 fmt->width = fmt->width & (~3); in vs6624_try_mbus_fmt()
625 if ((fmt->width == VGA_WIDTH) && (fmt->height == VGA_HEIGHT)) in vs6624_s_mbus_fmt()
627 else if ((fmt->width == QVGA_WIDTH) && (fmt->height == QVGA_HEIGHT)) in vs6624_s_mbus_fmt()
629 else if ((fmt->width == QQVGA_WIDTH) && (fmt->height == QQVGA_HEIGHT)) in vs6624_s_mbus_fmt()
631 else if ((fmt->width == CIF_WIDTH) && (fmt->height == CIF_HEIGHT)) in vs6624_s_mbus_fmt()
633 else if ((fmt->width == QCIF_WIDTH) && (fmt->height == QCIF_HEIGHT)) in vs6624_s_mbus_fmt()
635 else if ((fmt->width == QQCIF_WIDTH) && (fmt->height == QQCIF_HEIGHT)) in vs6624_s_mbus_fmt()
[all …]
Dsaa6752hs.c82 { .fmt = { .pix = { .width = 720, .height = 576 }}},
84 { .fmt = { .pix = { .width = 480, .height = 576 }}},
86 { .fmt = { .pix = { .width = 352, .height = 576 }}},
88 { .fmt = { .pix = { .width = 352, .height = 288 }}},
90 { .fmt = { .pix = { .width = 0, .height = 0}}},
563 f->width = v4l2_format_table[h->video_format].fmt.pix.width; in saa6752hs_g_mbus_fmt()
577 dist_352 = abs(f->width - 352); in saa6752hs_try_mbus_fmt()
578 dist_480 = abs(f->width - 480); in saa6752hs_try_mbus_fmt()
579 dist_720 = abs(f->width - 720); in saa6752hs_try_mbus_fmt()
581 f->width = 720; in saa6752hs_try_mbus_fmt()
[all …]
Dmt9v011.c54 unsigned width, height; member
202 unsigned height, width, hblank, vblank, speed; in calc_fps() local
208 width = mt9v011_read(sd, R04_MT9V011_WIDTH); in calc_fps()
213 row_time = (width + 113 + hblank) * (speed + 2); in calc_fps()
232 unsigned height, width, hblank, vblank; in calc_speed() local
241 width = mt9v011_read(sd, R04_MT9V011_WIDTH); in calc_speed()
245 row_time = width + 113 + hblank; in calc_speed()
285 hstart = 20 + (640 - core->width) / 2; in set_res()
287 mt9v011_write(sd, R04_MT9V011_WIDTH, core->width); in set_res()
288 mt9v011_write(sd, R05_MT9V011_HBLANK, 771 - core->width); in set_res()
[all …]
Dmt9v032.c302 min_hblank = max_t(int, mt9v032->model->data->min_row_time - crop->width, in mt9v032_update_hblank()
437 ret = regmap_write(map, MT9V032_WINDOW_WIDTH, crop->width); in mt9v032_s_stream()
521 unsigned int width; in mt9v032_set_format() local
530 width = clamp(ALIGN(format->format.width, 2), in mt9v032_set_format()
531 max_t(unsigned int, __crop->width / 4, in mt9v032_set_format()
533 __crop->width); in mt9v032_set_format()
539 hratio = mt9v032_calc_ratio(__crop->width, width); in mt9v032_set_format()
544 __format->width = __crop->width / hratio; in mt9v032_set_format()
592 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in mt9v032_set_selection()
599 rect.width = min_t(unsigned int, in mt9v032_set_selection()
[all …]
Dmt9p031.c408 ret = mt9p031_write(client, MT9P031_WINDOW_WIDTH, crop->width - 1); in mt9p031_set_params()
418 xskip = DIV_ROUND_CLOSEST(crop->width, format->width); in mt9p031_set_params()
553 unsigned int width; in mt9p031_set_format() local
562 width = clamp_t(unsigned int, ALIGN(format->format.width, 2), in mt9p031_set_format()
563 max_t(unsigned int, __crop->width / 7, in mt9p031_set_format()
565 __crop->width); in mt9p031_set_format()
571 hratio = DIV_ROUND_CLOSEST(__crop->width, width); in mt9p031_set_format()
576 __format->width = __crop->width / hratio; in mt9p031_set_format()
616 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in mt9p031_set_selection()
623 rect.width = min_t(unsigned int, rect.width, in mt9p031_set_selection()
[all …]
Dmt9m032.c181 static u32 mt9m032_row_time(struct mt9m032 *sensor, unsigned int width) in mt9m032_row_time() argument
186 effective_width = width + 716; /* empirical value */ in mt9m032_row_time()
204 row_time = mt9m032_row_time(sensor, crop->width); in mt9m032_update_timing()
234 sensor->crop.width - 1); in mt9m032_update_geom_timing()
468 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in mt9m032_set_pad_selection()
473 rect.width = min_t(unsigned int, rect.width, in mt9m032_set_pad_selection()
480 if (rect.width != __crop->width || rect.height != __crop->height) { in mt9m032_set_pad_selection()
485 format->width = rect.width; in mt9m032_set_pad_selection()
763 sensor->crop.width = MT9M032_COLUMN_SIZE_DEF; in mt9m032_probe()
766 sensor->format.width = sensor->crop.width; in mt9m032_probe()
/linux-4.1.27/scripts/
Ddecodecode42 width=`expr index "$code" ' '`
43 width=$((($width-1)/2))
44 case $width in
54 if [ $width -eq 2 ]; then
/linux-4.1.27/Documentation/devicetree/bindings/net/
Dgpmc-eth.txt18 Child nodes need to specify the GPMC bus address width using the "bank-width"
20 specify the I/O registers address width. Even when the GPMC has a maximum 16-bit
21 address width, it supports devices with 32-bit word registers.
23 OMAP2+ board, "bank-width = <2>;" and "reg-io-width = <4>;".
26 - bank-width: Address width of the device in bytes. GPMC supports 8-bit
65 bank-width = <2>;
93 reg-io-width = <4>;
/linux-4.1.27/drivers/video/fbdev/via/
Daccel.c53 static int hw_bitblt_1(void __iomem *engine, u8 op, u32 width, u32 height, in hw_bitblt_1() argument
69 src_x += width - 1; in hw_bitblt_1()
70 dst_x += width - 1; in hw_bitblt_1()
116 if ((width - 1) & 0xFFFFF000 || (height - 1) & 0xFFFFF000) { in hw_bitblt_1()
118 "%d %d\n", width, height); in hw_bitblt_1()
121 tmp = (width - 1) | ((height - 1) << 16); in hw_bitblt_1()
177 tmp = (width * height * (op == VIA_BITBLT_MONO ? 1 : (dst_bpp >> 3)) + in hw_bitblt_1()
186 static int hw_bitblt_2(void __iomem *engine, u8 op, u32 width, u32 height, in hw_bitblt_2() argument
202 src_x += width - 1; in hw_bitblt_2()
203 dst_x += width - 1; in hw_bitblt_2()
[all …]
/linux-4.1.27/drivers/media/usb/cpia2/
Dcpia2_core.c622 cam->params.roi.width, in cpia2_reset_camera()
802 target_kb = (cam->width * cam->height * 2 / 16384) * in cpia2_reset_camera()
951 int width = cam->params.roi.width; in set_default_user_mode() local
959 if ((width > STV_IMAGE_QCIF_COLS) in set_default_user_mode()
968 if ((width > STV_IMAGE_CIF_COLS) in set_default_user_mode()
1012 int cpia2_match_video_size(int width, int height) in cpia2_match_video_size() argument
1014 if (width >= STV_IMAGE_VGA_COLS && height >= STV_IMAGE_VGA_ROWS) in cpia2_match_video_size()
1017 if (width >= STV_IMAGE_CIF_COLS && height >= STV_IMAGE_CIF_ROWS) in cpia2_match_video_size()
1020 if (width >= STV_IMAGE_QVGA_COLS && height >= STV_IMAGE_QVGA_ROWS) in cpia2_match_video_size()
1023 if (width >= 288 && height >= 216) in cpia2_match_video_size()
[all …]
Dcpia2_v4l.c363 switch (cpia2_match_video_size(f->fmt.pix.width, f->fmt.pix.height)) { in cpia2_try_fmt_vid_cap()
365 f->fmt.pix.width = 640; in cpia2_try_fmt_vid_cap()
369 f->fmt.pix.width = 352; in cpia2_try_fmt_vid_cap()
373 f->fmt.pix.width = 320; in cpia2_try_fmt_vid_cap()
377 f->fmt.pix.width = 288; in cpia2_try_fmt_vid_cap()
381 f->fmt.pix.width = 256; in cpia2_try_fmt_vid_cap()
385 f->fmt.pix.width = 224; in cpia2_try_fmt_vid_cap()
389 f->fmt.pix.width = 192; in cpia2_try_fmt_vid_cap()
394 f->fmt.pix.width = 176; in cpia2_try_fmt_vid_cap()
431 f->fmt.pix.width, f->fmt.pix.height); in cpia2_s_fmt_vid_cap()
[all …]
/linux-4.1.27/drivers/media/platform/exynos-gsc/
Dgsc-core.c229 void gsc_set_frame_size(struct gsc_frame *frame, int width, int height) in gsc_set_frame_size() argument
231 frame->f_width = width; in gsc_set_frame_size()
233 frame->crop.width = width; in gsc_set_frame_size()
291 remainder = s_frame->crop.width % (*wratio * walign); in gsc_check_src_scale_info()
293 s_frame->crop.width -= remainder; in gsc_check_src_scale_info()
294 gsc_cal_prescaler_ratio(var, s_frame->crop.width, tx, wratio); in gsc_check_src_scale_info()
296 s_frame->crop.width + remainder, s_frame->crop.width); in gsc_check_src_scale_info()
400 pr_debug("user put w: %d, h: %d", pix_mp->width, pix_mp->height); in gsc_try_fmt_mplane()
438 tmp_w = pix_mp->width; in gsc_try_fmt_mplane()
441 v4l_bound_align_image(&pix_mp->width, min_w, max_w, mod_x, in gsc_try_fmt_mplane()
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/i2c/
Di2c-st.txt17 - st,i2c-min-scl-pulse-width-us : The minimum valid SCL pulse width that is
19 - st,i2c-min-sda-pulse-width-us : The minimum valid SDA pulse width that is
39 st,i2c-min-scl-pulse-width-us = <0>;
40 st,i2c-min-sda-pulse-width-us = <5>;
/linux-4.1.27/drivers/staging/sm750fb/
Dsm750_accel.c94 u32 x,u32 y,u32 width,u32 height, in hw_fillrect() argument
124 FIELD_VALUE(0,DE_DIMENSION,X,width)| in hw_fillrect()
150 unsigned int width, in hw_copyarea() argument
224 sx += width - 1; in hw_copyarea()
226 dx += width - 1; in hw_copyarea()
254 width *= 3; in hw_copyarea()
289 FIELD_VALUE(0, DE_DIMENSION, X, width) | in hw_copyarea()
329 u32 width, in hw_imageblit() argument
343 ulBytesPerScan = (width + startBit + 7) / 8; in hw_imageblit()
369 width *= 3; in hw_imageblit()
[all …]
/linux-4.1.27/drivers/gpu/drm/udl/
Dudl_transfer.c48 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);
Dudl_fb.c144 int width, int height) in udl_handle_damage() argument
176 width = DL_ALIGN_UP(width + (x-aligned_x), sizeof(unsigned long)); in udl_handle_damage()
179 if ((width <= 0) || in udl_handle_damage()
180 (x + width > fb->base.width) || in udl_handle_damage()
189 x2 = x + width - 1; in udl_handle_damage()
226 const int dev_byte_offset = (fb->base.width * bpp * i) + (x * bpp); in udl_handle_damage()
246 atomic_add(width*height*bpp, &udl->bytes_rendered); in udl_handle_damage()
293 udl_handle_damage(&ufbdev->ufb, rect->dx, rect->dy, rect->width, in udl_fb_fillrect()
303 udl_handle_damage(&ufbdev->ufb, region->dx, region->dy, region->width, in udl_fb_copyarea()
313 udl_handle_damage(&ufbdev->ufb, image->dx, image->dy, image->width, in udl_fb_imageblit()
[all …]
/linux-4.1.27/tools/perf/ui/gtk/
Dbrowser.c23 int width; in perf_gtk__resize_window() local
31 width = rect.width * 3 / 4; in perf_gtk__resize_window()
34 gtk_window_resize(GTK_WINDOW(window), width, height); in perf_gtk__resize_window()
/linux-4.1.27/drivers/clk/qcom/
Dclk-regmap-divider.c31 return divider_round_rate(hw, rate, prate, NULL, divider->width, in div_round_rate()
42 div = divider_get_val(rate, parent_rate, NULL, divider->width, in div_set_rate()
46 (BIT(divider->width) - 1) << divider->shift, in div_set_rate()
59 div &= BIT(divider->width) - 1; in div_recalc_rate()
Dgcc-msm8660.c117 .width = 16,
168 .width = 16,
219 .width = 16,
270 .width = 16,
321 .width = 16,
372 .width = 16,
423 .width = 16,
474 .width = 16,
523 .width = 16,
572 .width = 16,
[all …]
Dlcc-ipq806x.c125 .width = 8,
173 .width = 4,
205 .width = 1,
239 .width = 16,
283 .width = 1,
319 .width = 8,
378 .width = 8,
Dlcc-msm8960.c106 .width = 8,
154 .width = 4,
187 .width = 1,
212 .width = 8, \
260 .width = 8, \
293 .width = 1, \
356 .width = 16,
400 .width = 1,
424 .width = 8,
/linux-4.1.27/include/media/
Dv4l2-mediabus.h93 pix_fmt->width = mbus_fmt->width; in v4l2_fill_pix_format()
105 mbus_fmt->width = pix_fmt->width; in v4l2_fill_mbus_format()
/linux-4.1.27/Documentation/devicetree/bindings/mtd/
Dmtd-physmap.txt12 - bank-width : Width (in bytes) of the bank. Equal to the
13 device width times the number of interleaved chips.
14 - device-width : (optional) Width of a single mtd chip. If
15 omitted, assumed to be equal to 'bank-width'.
52 bank-width = <4>;
53 device-width = <1>;
75 bank-width = <2>;
87 bank-width = <2>;
/linux-4.1.27/drivers/media/pci/saa7134/
Dsaa7134-video.c394 dev->crop_bounds.width = norm->h_stop - norm->h_start +1; in set_tvnorm()
395 dev->crop_defrect.width = norm->h_stop - norm->h_start +1; in set_tvnorm()
550 int width, int height, int interlace) in set_size() argument
559 h_stop = (dev->crop_current.left + dev->crop_current.width -1); in set_size()
571 prescale = dev->crop_current.width / width; in set_size()
574 xscale = 1024 * dev->crop_current.width / prescale / width; in set_size()
582 saa_writeb(SAA7134_VIDEO_PIXELS1(task), width & 0xff); in set_size()
583 saa_writeb(SAA7134_VIDEO_PIXELS2(task), width >> 8); in set_size()
662 col[cols].position = clip_range(clips[i].c.left+clips[i].c.width); in setup_clipping()
687 if (win->w.width < 48) in verify_preview()
[all …]
/linux-4.1.27/drivers/media/platform/am437x/
Dam437x-vpfe.c60 unsigned int width; member
72 unsigned int width; member
102 .l.width = 10,
104 .s.width = 8,
111 .l.width = 10,
113 .s.width = 8,
120 .l.width = 10,
122 .s.width = 8,
129 .l.width = 10,
131 .s.width = 8,
[all …]
/linux-4.1.27/arch/mips/boot/dts/netlogic/
Dxlp_svp.dts24 reg-io-width = <4>;
34 reg-io-width = <4>;
45 reg-io-width = <4>;
56 reg-io-width = <4>;
83 bank-width = <2>;
Dxlp_fvp.dts24 reg-io-width = <4>;
34 reg-io-width = <4>;
45 reg-io-width = <4>;
56 reg-io-width = <4>;
83 bank-width = <2>;
Dxlp_evp.dts24 reg-io-width = <4>;
34 reg-io-width = <4>;
45 reg-io-width = <4>;
56 reg-io-width = <4>;
83 bank-width = <2>;
/linux-4.1.27/tools/perf/ui/browsers/
Dmap.c26 int width; in map_browser__write() local
33 width = browser->width - ((mb->addrlen * 2) + 4); in map_browser__write()
34 if (width > 0) in map_browser__write()
35 slsmg_write_nstring(sym->name, width); in map_browser__write()
Dscripts.c84 slsmg_write_nstring(sline->line, browser->width); in script_browser__write()
165 if (script.b.width < retlen) in script_browse()
166 script.b.width = retlen; in script_browse()
173 if (script.b.width > AVERAGE_LINE_LEN) in script_browse()
174 script.b.width = AVERAGE_LINE_LEN; in script_browse()
/linux-4.1.27/drivers/mtd/devices/
Ddocg3.h347 TP_PROTO(int op, int width, u16 reg, int val),
348 TP_ARGS(op, width, reg, val),
351 __field(unsigned char, width)
356 __entry->width = width;
360 __entry->op ? "write" : "read", __entry->width,
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
Dfm10k_common.c39 hw->bus_caps.width = fm10k_bus_width_pcie_x1; in fm10k_get_bus_info_generic()
42 hw->bus_caps.width = fm10k_bus_width_pcie_x2; in fm10k_get_bus_info_generic()
45 hw->bus_caps.width = fm10k_bus_width_pcie_x4; in fm10k_get_bus_info_generic()
48 hw->bus_caps.width = fm10k_bus_width_pcie_x8; in fm10k_get_bus_info_generic()
51 hw->bus_caps.width = fm10k_bus_width_unknown; in fm10k_get_bus_info_generic()
93 hw->bus.width = fm10k_bus_width_pcie_x1; in fm10k_get_bus_info_generic()
96 hw->bus.width = fm10k_bus_width_pcie_x2; in fm10k_get_bus_info_generic()
99 hw->bus.width = fm10k_bus_width_pcie_x4; in fm10k_get_bus_info_generic()
102 hw->bus.width = fm10k_bus_width_pcie_x8; in fm10k_get_bus_info_generic()
105 hw->bus.width = fm10k_bus_width_unknown; in fm10k_get_bus_info_generic()
/linux-4.1.27/drivers/media/pci/cx25821/
Dcx25821-video.c149 unsigned size = (chan->fmt->depth * chan->width * chan->height) >> 3; in cx25821_queue_setup()
172 buf->bpl = (chan->fmt->depth * chan->width) >> 3; in cx25821_buffer_prepare()
174 buf->bpl = (chan->fmt->depth >> 3) * chan->width; in cx25821_buffer_prepare()
234 buf, buf->vb.v4l2_buf.index, chan->width, chan->height, in cx25821_buffer_prepare()
338 f->fmt.pix.width = chan->width; in cx25821_vidioc_g_fmt_vid_cap()
342 f->fmt.pix.bytesperline = (chan->width * chan->fmt->depth) >> 3; in cx25821_vidioc_g_fmt_vid_cap()
364 w = f->fmt.pix.width; in cx25821_vidioc_try_fmt_vid_cap()
379 f->fmt.pix.width = w; in cx25821_vidioc_try_fmt_vid_cap()
380 f->fmt.pix.bytesperline = (f->fmt.pix.width * fmt->depth) >> 3; in cx25821_vidioc_try_fmt_vid_cap()
402 chan->width = f->fmt.pix.width; in vidioc_s_fmt_vid_cap()
[all …]
/linux-4.1.27/drivers/media/i2c/smiapp/
Dsmiapp-core.c468 sensor->pixel_array->crop[SMIAPP_PA_PAD_SRC].width in smiapp_set_ctrl()
618 int max_value = (1 << sensor->csi_format->width) - 1; in smiapp_init_late_controls()
804 if (f->width != fmt >> 8 || f->compressed != (u8)fmt) in smiapp_get_mbus_formats()
856 || f->width > sensor->csi_format->width in smiapp_get_mbus_formats()
857 || (f->width == sensor->csi_format->width in smiapp_get_mbus_formats()
891 sensor->pixel_array->crop[SMIAPP_PA_PAD_SRC].width, in smiapp_update_blanking()
894 sensor->pixel_array->crop[SMIAPP_PA_PAD_SRC].width; in smiapp_update_blanking()
908 sensor->src->crop[SMIAPP_PAD_SRC].width, in smiapp_update_mode()
911 sensor->csi_format->width); in smiapp_update_mode()
950 ((sensor->pixel_array->crop[SMIAPP_PA_PAD_SRC].width in smiapp_update_mode()
[all …]
/linux-4.1.27/sound/soc/pxa/
Dmagician.c93 unsigned int acps, acds, width; in magician_playback_hw_params() local
97 width = snd_pcm_format_physical_width(params_format(params)); in magician_playback_hw_params()
107 switch (width) { in magician_playback_hw_params()
119 switch (width) { in magician_playback_hw_params()
131 switch (width) { in magician_playback_hw_params()
143 switch (width) { in magician_playback_hw_params()
155 switch (width) { in magician_playback_hw_params()
168 switch (width) { in magician_playback_hw_params()
194 ret = snd_soc_dai_set_tdm_slot(cpu_dai, 1, 0, 1, width); in magician_playback_hw_params()
/linux-4.1.27/drivers/gpu/drm/sti/
Dsti_cursor.c54 unsigned int width; member
86 for (j = 0; j < cursor->width; j++) { in sti_cursor_argb8888_to_clut8()
121 (cursor->width != layer->src_w) || in sti_cursor_prepare_layer()
123 cursor->width = layer->src_w; in sti_cursor_prepare_layer()
132 cursor->pixmap.size = cursor->width * cursor->height; in sti_cursor_prepare_layer()
176 writel(cursor->width, layer->regs + CUR_PMP); in sti_cursor_commit_layer()
177 writel(cursor->height << 16 | cursor->width, layer->regs + CUR_SIZE); in sti_cursor_commit_layer()
/linux-4.1.27/drivers/gpu/drm/qxl/
Dqxl_image.c104 int width, int height, in qxl_image_init_helper() argument
113 int linesize = width * depth / 8; in qxl_image_init_helper()
197 image->descriptor.width = width; in qxl_image_init_helper()
216 image->u.bitmap.x = width; in qxl_image_init_helper()
231 int x, int y, int width, int height, in qxl_image_init() argument
236 width, height, depth, 0, stride); in qxl_image_init()
Dqxl_draw.c164 int width = fb_image->width; in qxl_draw_opaque_fb() local
174 stride = depth * width / 8; in qxl_draw_opaque_fb()
198 rect.right = x + width; in qxl_draw_opaque_fb()
210 width, height, depth, stride); in qxl_draw_opaque_fb()
233 drawable->u.copy.src_area.right = width; in qxl_draw_opaque_fb()
282 int width, height; in qxl_draw_dirty_fb() local
313 width = right - left; in qxl_draw_dirty_fb()
347 left, top, width, height, depth, stride); in qxl_draw_dirty_fb()
365 drawable->u.copy.src_area.right = width; in qxl_draw_dirty_fb()
404 u32 width, u32 height, in qxl_draw_copyarea() argument
[all …]
/linux-4.1.27/drivers/media/pci/tw68/
Dtw68-video.c233 dev->width = 720; in set_tvnorm()
269 static int tw68_set_scale(struct tw68_dev *dev, unsigned int width, in tw68_set_scale() argument
284 width, height, V4L2_FIELD_HAS_BOTH(field), in tw68_set_scale()
301 hscale = (hactive * 256) / (width); in tw68_set_scale()
308 width, height, in tw68_set_scale()
344 tw68_set_scale(dev, dev->width, dev->height, dev->field); in tw68_video_start_dma()
386 sizes[0] = (dev->fmt->depth * dev->width * dev->height) >> 3; in tw68_queue_setup()
466 size = (dev->width * dev->height * dev->fmt->depth) >> 3; in tw68_buf_prepare()
471 bpl = (dev->width * dev->fmt->depth) >> 3; in tw68_buf_prepare()
594 f->fmt.pix.width = dev->width; in tw68_g_fmt_vid_cap()
[all …]
/linux-4.1.27/arch/parisc/kernel/
Dperf.c65 uint16_t width; member
210 extern uint64_t perf_rdr_shift_in_W (uint32_t rdr_num, uint16_t width);
211 extern uint64_t perf_rdr_shift_in_U (uint32_t rdr_num, uint16_t width);
674 uint32_t width, xbits, i; in perf_rdr_read_ubuf() local
678 if ((width = tentry->width) == 0) in perf_rdr_read_ubuf()
688 if ((xbits = width & 0x03f) != 0) { in perf_rdr_read_ubuf()
699 data = perf_rdr_shift_in_U(rdr_num, width); in perf_rdr_read_ubuf()
701 data = perf_rdr_shift_in_W(rdr_num, width); in perf_rdr_read_ubuf()
728 if (tentry->width == 0) { in perf_rdr_clear()
838 if (tentry->width == 0) { return; } in perf_rdr_write()
/linux-4.1.27/drivers/staging/media/davinci_vpfe/
Ddm365_resizer.c57 resizer_calculate_line_length(u32 pix, int width, int height, in resizer_calculate_line_length() argument
65 *line_len = width << 1; in resizer_calculate_line_length()
68 *line_len = width; in resizer_calculate_line_length()
69 *line_len_c = width; in resizer_calculate_line_length()
73 *line_len = width; in resizer_calculate_line_length()
74 *line_len_c = width; in resizer_calculate_line_length()
96 if (!format->width || !format->height) { in resizer_validate_output_image_format()
100 resizer_calculate_line_length(format->code, format->width, in resizer_validate_output_image_format()
187 param->rsz_rsc_param[index].o_hsz = outformat->width - 1; in configure_resizer_out_params()
242 ((informat->width) * 256) / (outformat->width); in resizer_calculate_resize_ratios()
[all …]
/linux-4.1.27/drivers/staging/fsl-mc/include/
Dmc-cmd.h40 static inline uint64_t mc_enc(int lsoffset, int width, uint64_t val) in mc_enc() argument
42 return (uint64_t)(((uint64_t)val & MAKE_UMASK64(width)) << lsoffset); in mc_enc()
45 static inline uint64_t mc_dec(uint64_t val, int lsoffset, int width) in mc_dec() argument
47 return (uint64_t)((val >> lsoffset) & MAKE_UMASK64(width)); in mc_dec()
/linux-4.1.27/drivers/media/common/saa7146/
Dsaa7146_hlp.c346 int width = vv->ov.win.w.width; in calculate_clipping_registers_rect() local
370 w[i] = vv->ov.clips[i].c.width; in calculate_clipping_registers_rect()
395 pixel_list[ 2*i ] = min_t(int, l, width); in calculate_clipping_registers_rect()
396 pixel_list[(2*i)+1] = min_t(int, r, width); in calculate_clipping_registers_rect()
526 static void saa7146_set_window(struct saa7146_dev *dev, int width, int height, enum v4l2_field fiel… in saa7146_set_window() argument
544 …calculate_h_scale_registers(dev, vv->standard->h_pixels, width, vv->hflip, &hps_ctrl, &hps_v_gain,… in saa7146_set_window()
655 saa7146_set_window(dev, vv->ov.win.w.width, vv->ov.win.w.height, vv->ov.win.field); in saa7146_enable_overlay()
711 int width = buf->fmt->width; in calculate_video_dma_grab_packed() local
719 width, height, v4l2_field_names[field]); in calculate_video_dma_grab_packed()
724 vdma1.pitch = (width*depth*2)/8; in calculate_video_dma_grab_packed()
[all …]
/linux-4.1.27/drivers/gpu/ipu-v3/
Dipu-cpmem.c347 int ipu_cpmem_set_format_passthrough(struct ipuv3_channel *ch, int width) in ipu_cpmem_set_format_passthrough() argument
351 switch (width) { in ipu_cpmem_set_format_passthrough()
503 #define Y_OFFSET(pix, x, y) ((x) + pix->width * (y))
504 #define U_OFFSET(pix, x, y) ((pix->width * pix->height) + \
505 (pix->width * (y) / 4) + (x) / 2)
506 #define V_OFFSET(pix, x, y) ((pix->width * pix->height) + \
507 (pix->width * pix->height / 4) + \
508 (pix->width * (y) / 4) + (x) / 2)
509 #define U2_OFFSET(pix, x, y) ((pix->width * pix->height) + \
510 (pix->width * (y) / 2) + (x) / 2)
[all …]
/linux-4.1.27/drivers/video/fbdev/core/
Dsysimgblt.c65 n = image->width; in color_imageblit()
119 u32 spitch = (image->width+7)/8; in slow_imageblit()
130 j = image->width; in slow_imageblit()
190 u32 ppw = 32/bpp, spitch = (image->width + 7)/8; in fast_imageblit()
219 k = image->width/ppw; in fast_imageblit()
244 u32 width = image->width; in sys_imageblit() local
273 ((width & (32/bpp-1)) == 0) && in sys_imageblit()
Dcfbimgblt.c91 n = image->width; in color_imageblit()
147 u32 spitch = (image->width+7)/8; in slow_imageblit()
159 j = image->width; in slow_imageblit()
220 u32 ppw = 32/bpp, spitch = (image->width + 7)/8; in fast_imageblit()
249 k = image->width/ppw; in fast_imageblit()
269 u32 width = image->width; in cfb_imageblit() local
298 ((width & (32/bpp-1)) == 0) && in cfb_imageblit()
/linux-4.1.27/Documentation/devicetree/bindings/spi/
Dspi_oc_tiny.txt8 - baud-width: width, in bits, of the programmable divider used to scale
11 The clock-frequency and baud-width properties are needed only if the divider
/linux-4.1.27/Documentation/devicetree/bindings/media/
Dsh_mobile_ceu.txt6 - renesas,max-width: maximum image width, supported on this SoC
16 renesas,max-width = <8188>;
/linux-4.1.27/drivers/media/platform/davinci/
Dvpif.c54 .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,
/linux-4.1.27/drivers/gpu/drm/cirrus/
Dcirrus_fbdev.c21 int x, int y, int width, int height) in cirrus_dirty_update() argument
50 x2 = x + width - 1; in cirrus_dirty_update()
88 memcpy_toio(bo->kmap.virtual + src_offset, afbdev->sysram + src_offset, width * bpp); in cirrus_dirty_update()
102 cirrus_dirty_update(afbdev, rect->dx, rect->dy, rect->width, in cirrus_fillrect()
111 cirrus_dirty_update(afbdev, area->dx, area->dy, area->width, in cirrus_copyarea()
120 cirrus_dirty_update(afbdev, image->dx, image->dy, image->width, in cirrus_imageblit()
150 if (!cirrus_check_framebuffer(cdev, mode_cmd->width, mode_cmd->height, in cirrusfb_create_object()
179 mode_cmd.width = sizes->surface_width; in cirrusfb_create()
181 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7) / 8); in cirrusfb_create()
/linux-4.1.27/drivers/media/usb/gspca/m5602/
Dm5602_po1030.c180 int width = cam->cam_mode[sd->gspca_dev.curr_mode].width; in po1030_start() local
185 switch (width) { in po1030_start()
192 data = ((width + 3) >> 8) & 0xff; in po1030_start()
197 data = (width + 3) & 0xff; in po1030_start()
211 width -= 1; in po1030_start()
220 data = ((width + 7) >> 8) & 0xff; in po1030_start()
225 data = (width + 7) & 0xff; in po1030_start()
239 width -= 2; in po1030_start()
291 err = m5602_write_bridge(sd, M5602_XB_HSYNC_PARA, (width >> 8) & 0xff); in po1030_start()
295 err = m5602_write_bridge(sd, M5602_XB_HSYNC_PARA, (width & 0xff)); in po1030_start()
/linux-4.1.27/Documentation/devicetree/bindings/regulator/
Danatop-regulator.txt7 - anatop-vol-bit-width: Number of bits used in the register
15 - anatop-delay-bit-width: Number of bits used in the step time register
30 anatop-vol-bit-width = <5>;
33 anatop-delay-bit-width = <2>;
/linux-4.1.27/drivers/gpu/drm/mgag200/
Dmgag200_fb.c23 int x, int y, int width, int height) in mga_dirty_update() argument
53 x2 = x + width - 1; in mga_dirty_update()
105 mga_dirty_update(mfbdev, rect->dx, rect->dy, rect->width, in mga_fillrect()
114 mga_dirty_update(mfbdev, area->dx, area->dy, area->width, in mga_copyarea()
123 mga_dirty_update(mfbdev, image->dx, image->dy, image->width, in mga_imageblit()
175 mode_cmd.width = sizes->surface_width; in mgag200fb_create()
177 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7) / 8); in mgag200fb_create()
243 fb->width, fb->height); in mgag200fb_create()
/linux-4.1.27/drivers/media/usb/au0828/
Dau0828-input.c129 int prv_bit, bit, width; in au0828_get_key_au8522() local
160 width = 0; in au0828_get_key_au8522()
165 width++; in au0828_get_key_au8522()
183 if (width > NEC_START_SPACE - 2 && in au0828_get_key_au8522()
184 width < NEC_START_SPACE + 2) { in au0828_get_key_au8522()
202 rawir.duration = AU8522_UNIT * width; in au0828_get_key_au8522()
208 width = 1; in au0828_get_key_au8522()
215 rawir.duration = AU8522_UNIT * width; in au0828_get_key_au8522()
/linux-4.1.27/Documentation/devicetree/bindings/gpio/
Dgpio-xilinx.txt21 - xlnx,gpio-width : gpio width
26 - xlnx,gpio2-width : as above but for the second channel
42 xlnx,gpio-width = <0x2>;
43 xlnx,gpio2-width = <0x2>;
/linux-4.1.27/drivers/clk/tegra/
Dclk-super.c40 #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) in tegra_clk_register_super_mux() argument
155 super->width = width; in tegra_clk_register_super_mux()
/linux-4.1.27/arch/mips/bcm63xx/
Dirq.c75 #define BUILD_IPIC_INTERNAL(width) \ argument
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/drivers/media/usb/pwc/
Dpwc-ctrl.c205 pdev->width = pwc_image_sizes[size][0]; in set_video_mode_Nala()
207 pdev->frame_size = (pdev->width * pdev->height * 3) / 2; in set_video_mode_Nala()
268 pdev->width = pwc_image_sizes[size][0]; in set_video_mode_Timon()
274 pdev->frame_size = (pdev->width * pdev->height * 12) / 8; in set_video_mode_Timon()
318 pdev->width = pwc_image_sizes[size][0]; in set_video_mode_Kiara()
324 pdev->frame_size = (pdev->width * pdev->height * 12) / 8; in set_video_mode_Kiara()
330 int pwc_set_video_mode(struct pwc_device *pdev, int width, int height, in pwc_set_video_mode() argument
336 width, height, frames, pixfmt); in pwc_set_video_mode()
337 size = pwc_get_size(pdev, width, height); in pwc_set_video_mode()
355 PWC_DEBUG_SIZE("Set resolution to %dx%d\n", pdev->width, pdev->height); in pwc_set_video_mode()
/linux-4.1.27/drivers/media/pci/zoran/
Dzoran_driver.c439 int width, in zoran_v4l_set_format() argument
448 if (height < BUZ_MIN_HEIGHT || width < BUZ_MIN_WIDTH || in zoran_v4l_set_format()
449 height > BUZ_MAX_HEIGHT || width > BUZ_MAX_WIDTH) { in zoran_v4l_set_format()
453 ZR_DEVNAME(zr), __func__, width, height); in zoran_v4l_set_format()
460 if (height * width * bpp > fh->buffers.buffer_size) { in zoran_v4l_set_format()
470 if ((bpp == 2 && (width & 1)) || (bpp == 3 && (width & 3))) { in zoran_v4l_set_format()
478 fh->v4l_settings.width = width; in zoran_v4l_set_format()
481 fh->v4l_settings.bytesperline = bpp * fh->v4l_settings.width; in zoran_v4l_set_format()
1061 int width, in setup_fbuffer() argument
1080 bytesperline = width * ((fmt->depth + 7) & ~7) / 8; in setup_fbuffer()
[all …]
/linux-4.1.27/include/acpi/
Dacpiosxf.h279 acpi_status acpi_os_read_port(acpi_io_address address, u32 *value, u32 width);
283 acpi_status acpi_os_write_port(acpi_io_address address, u32 value, u32 width);
291 acpi_os_read_memory(acpi_physical_address address, u64 *value, u32 width);
296 acpi_os_write_memory(acpi_physical_address address, u64 value, u32 width);
307 u32 reg, u64 *value, u32 width);
313 u32 reg, u64 value, u32 width);
/linux-4.1.27/arch/metag/mm/
Dcache.c153 int width, shift, addend; in metag_cache_probe()
165 width = 0; in metag_cache_probe()
167 width++; in metag_cache_probe()
171 shift = 32 - (METAG_TBI_ICACHE_SIZE_S + width); in metag_cache_probe()
183 width = 0; in metag_cache_probe()
185 width++; in metag_cache_probe()
188 shift = 32 - (METAG_TBI_DCACHE_SIZE_S + width); in metag_cache_probe()
/linux-4.1.27/drivers/video/fbdev/nvidia/
Dnv_accel.c311 NVDmaNext(par, (region->height << 16) | region->width); in nvidiafb_copyarea()
342 NVDmaNext(par, (rect->width << 16) | rect->height); in nvidiafb_fillrect()
355 u32 dsize, width, *data = (u32 *) image->data, tmp; in nvidiafb_mono_color_expand() local
358 width = (image->width + 31) & ~31; in nvidiafb_mono_color_expand()
359 dsize = (width * image->height) >> 5; in nvidiafb_mono_color_expand()
372 ((image->dx + image->width) & 0xffff)); in nvidiafb_mono_color_expand()
375 NVDmaNext(par, (image->height << 16) | width); in nvidiafb_mono_color_expand()
376 NVDmaNext(par, (image->height << 16) | width); in nvidiafb_mono_color_expand()
/linux-4.1.27/drivers/video/fbdev/omap2/dss/
Ddispc.c79 u16 width, u16 height, u16 out_width, u16 out_height,
84 u16 width, u16 height, u16 out_width, u16 out_height,
754 static void dispc_ovl_set_input_size(enum omap_plane plane, int width, in dispc_ovl_set_input_size() argument
757 u32 val = FLD_VAL(height - 1, 26, 16) | FLD_VAL(width - 1, 10, 0); in dispc_ovl_set_input_size()
765 static void dispc_ovl_set_output_size(enum omap_plane plane, int width, in dispc_ovl_set_output_size() argument
772 val = FLD_VAL(height - 1, 26, 16) | FLD_VAL(width - 1, 10, 0); in dispc_ovl_set_output_size()
1124 static void dispc_mgr_set_size(enum omap_channel channel, u16 width, in dispc_mgr_set_size() argument
1130 FLD_VAL(width - 1, dispc.feat->mgr_width_start, 0); in dispc_mgr_set_size()
1809 u16 width, u16 height, in calc_vrfb_rotation_offset() argument
1835 width, height); in calc_vrfb_rotation_offset()
[all …]

1234567891011