/linux-4.4.14/drivers/media/platform/omap/ |
D | omap_voutlib.c | 46 crop->width = (pix->width < fbuf->fmt.width) ? in omap_vout_default_crop() 47 pix->width : fbuf->fmt.width; in omap_vout_default_crop() 50 crop->width &= ~1; in omap_vout_default_crop() 52 crop->left = ((pix->width - crop->width) >> 1) & ~1; in omap_vout_default_crop() 75 try_win.width += try_win.left; in omap_vout_try_window() 82 try_win.width = (try_win.width < fbuf->fmt.width) ? in omap_vout_try_window() 83 try_win.width : fbuf->fmt.width; in omap_vout_try_window() 86 if (try_win.left + try_win.width > fbuf->fmt.width) in omap_vout_try_window() 87 try_win.width = fbuf->fmt.width - try_win.left; in omap_vout_try_window() 90 try_win.width &= ~1; in omap_vout_try_window() [all …]
|
D | omap_vout_vrfb.c | 212 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.4.14/drivers/media/platform/soc_camera/ |
D | soc_scale_crop.c | 29 return r1->width < r2->width || r1->height < r2->height; in is_smaller() 36 r1->left + r1->width < r2->left + r2->width || in is_inside() 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 …]
|
D | sh_mobile_ceu_camera.c | 141 unsigned int width; member 232 ret = soc_mbus_bytes_per_line(fmt->fmt.pix.width, in sh_mobile_ceu_videobuf_setup() 691 unsigned int height, width, cdwdr_width, in_width, in_height; in sh_mobile_ceu_set_rect() local 703 width = icd->user_width; in sh_mobile_ceu_set_rect() 706 in_width = cam->width; in sh_mobile_ceu_set_rect() 722 in_width = cam->width * w_factor; in sh_mobile_ceu_set_rect() 748 (in_height << 16) | in_width, (height << 16) | width, in sh_mobile_ceu_set_rect() 754 ceu_write(pcdev, CFSZR, (height << 16) | width); in sh_mobile_ceu_set_rect() 1119 while ((mf->width > pcdev->max_width || in sh_mobile_ceu_get_formats() 1122 mf->width = 2560 >> shift; in sh_mobile_ceu_get_formats() [all …]
|
D | rcar_vin.c | 508 unsigned int width; member 552 ret = soc_mbus_bytes_per_line(fmt->fmt.pix.width, in rcar_vin_videobuf_setup() 655 iowrite32(ALIGN(cam->width * cam->height, 0x80), in rcar_vin_setup() 1075 cam->width, cam->height, cam->vin_left, cam->vin_top); in rcar_vin_set_rect() 1077 cam_subrect->width, cam_subrect->height, in rcar_vin_set_rect() 1082 iowrite32((left_offset + cam_subrect->width - 1) << dsize, in rcar_vin_set_rect() 1107 if (cam_subrect->width != cam->out_width) in rcar_vin_set_rect() 1108 value = (4096 * cam_subrect->width) / cam->out_width; in rcar_vin_set_rect() 1379 rect.width = mf->width; in rcar_vin_get_formats() 1390 if (mf->width <= VIN_MAX_WIDTH && in rcar_vin_get_formats() [all …]
|
D | mx3_camera.c | 209 ret = soc_mbus_bytes_per_line(fmt->fmt.pix.width, in mx3_videobuf_setup() 732 unsigned int width, unsigned int height, in configure_geometry() argument 746 width = width * num / den; in configure_geometry() 750 width_field = width - 1; in configure_geometry() 791 static inline void stride_align(__u32 *width) in stride_align() argument 793 if (ALIGN(*width, 8) < 4096) in stride_align() 794 *width = ALIGN(*width, 8); in stride_align() 796 *width = *width & ~7; in stride_align() 817 soc_camera_limit_side(&rect->left, &rect->width, 0, 2, 4096); in mx3_camera_set_crop() 832 if (mf->width & 7) { in mx3_camera_set_crop() [all …]
|
D | soc_camera_platform.c | 46 mf->width = p->format.width; in soc_camera_platform_fill_fmt() 86 a->c.width = p->format.width; in soc_camera_platform_g_crop() 100 a->bounds.width = p->format.width; in soc_camera_platform_cropcap()
|
/linux-4.4.14/sound/core/ |
D | pcm_misc.c | 32 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.4.14/net/wireless/ |
D | chan.c | 27 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.4.14/drivers/video/console/ |
D | fbcon_rotate.h | 40 static inline void rotate_ud(const char *in, char *out, u32 width, u32 height) in rotate_ud() argument 43 int shift = (8 - (width % 8)) & 7; in rotate_ud() 45 width = (width + 7) & ~7; in rotate_ud() 48 for (j = 0; j < width - shift; j++) { in rotate_ud() 49 if (pattern_test_bit(j, i, width, in)) in rotate_ud() 50 pattern_set_bit(width - (1 + j + shift), in rotate_ud() 52 width, out); in rotate_ud() 58 static inline void rotate_cw(const char *in, char *out, u32 width, u32 height) in rotate_cw() argument 60 int i, j, h = height, w = width; in rotate_cw() 63 width = (width + 7) & ~7; in rotate_cw() [all …]
|
D | fbcon_ccw.c | 29 int width = (vc->vc_font.height + 7) >> 3; in ccw_update_attr() local 39 for (i = 0; i < vc->vc_font.width; i++) { in ccw_update_attr() 40 for (j = 0; j < width; j++) { in ccw_update_attr() 44 if (j == width - 1) in ccw_update_attr() 47 if (msk1 && j == width - 2) in ccw_update_attr() 52 *(dst - width) |= c; in ccw_update_attr() 64 int sx, int dy, int dx, int height, int width) in ccw_bmove() argument 71 area.sy = vyres - ((sx + width) * vc->vc_font.width); in ccw_bmove() 73 area.dy = vyres - ((dx + width) * vc->vc_font.width); in ccw_bmove() 74 area.width = height * vc->vc_font.height; in ccw_bmove() [all …]
|
D | fbcon_cw.c | 29 int width = (vc->vc_font.height + 7) >> 3; in cw_update_attr() local 32 for (i = 0; i < vc->vc_font.width; i++) { in cw_update_attr() 33 for (j = 0; j < width; j++) { in cw_update_attr() 38 c |= *(src-width); in cw_update_attr() 49 int sx, int dy, int dx, int height, int width) in cw_bmove() argument 56 area.sy = sx * vc->vc_font.width; in cw_bmove() 58 area.dy = dx * vc->vc_font.width; in cw_bmove() 59 area.width = height * vc->vc_font.height; in cw_bmove() 60 area.height = width * vc->vc_font.width; in cw_bmove() 66 int sx, int height, int width) in cw_clear() argument [all …]
|
D | bitblit.c | 29 int width = DIV_ROUND_UP(vc->vc_font.width, 8); in update_attr() local 30 unsigned int cellsize = vc->vc_font.height * width; in update_attr() 33 offset = cellsize - (offset * width); in update_attr() 47 int sx, int dy, int dx, int height, int width) in bit_bmove() argument 51 area.sx = sx * vc->vc_font.width; in bit_bmove() 53 area.dx = dx * vc->vc_font.width; in bit_bmove() 56 area.width = width * vc->vc_font.width; in bit_bmove() 62 int sx, int height, int width) in bit_clear() argument 68 region.dx = sx * vc->vc_font.width; in bit_clear() 70 region.width = width * vc->vc_font.width; in bit_clear() [all …]
|
D | fbcon_ud.c | 29 int width = (vc->vc_font.width + 7) >> 3; in ud_update_attr() local 30 unsigned int cellsize = vc->vc_font.height * width; in ud_update_attr() 33 offset = offset * width; in ud_update_attr() 49 int sx, int dy, int dx, int height, int width) in ud_bmove() argument 57 area.sx = vxres - ((sx + width) * vc->vc_font.width); in ud_bmove() 59 area.dx = vxres - ((dx + width) * vc->vc_font.width); in ud_bmove() 61 area.width = width * vc->vc_font.width; in ud_bmove() 67 int sx, int height, int width) in ud_clear() argument 77 region.dx = vxres - ((sx + width) * vc->vc_font.width); in ud_clear() 78 region.width = width * vc->vc_font.width; in ud_clear() [all …]
|
D | tileblit.c | 20 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()
|
D | fbcon_rotate.c | 36 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()
|
D | mdacon.c | 431 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 …]
|
D | sticon.c | 186 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.4.14/drivers/media/platform/s5p-tv/ |
D | mixer_grp_layer.c | 26 { .width = 1, .height = 1, .size = 2 }, 38 { .width = 1, .height = 1, .size = 2 }, 50 { .width = 1, .height = 1, .size = 2 }, 62 { .width = 1, .height = 1, .size = 4 }, 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 …]
|
D | mixer_vp_layer.c | 27 { .width = 1, .height = 1, .size = 1 }, 28 { .width = 2, .height = 2, .size = 2 }, 40 { .width = 1, .height = 1, .size = 1 }, 41 { .width = 2, .height = 2, .size = 2 }, 53 { .width = 1, .height = 1, .size = 1 }, 54 { .width = 2, .height = 2, .size = 2 }, 67 { .width = 128, .height = 32, .size = 4096 }, 68 { .width = 128, .height = 32, .size = 2048 }, 156 x_center = dst->x_offset + dst->width / 2; in mxr_vp_fix_geometry() 160 dst->width = clamp(dst->width, 8U, 16 * src->full_width); in mxr_vp_fix_geometry() [all …]
|
D | mixer_video.c | 179 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.4.14/drivers/video/fbdev/ |
D | atafb_iplan2p2.c | 26 int height, int width) in atafb_iplan2p2_copyarea() argument 57 width -= 8; in atafb_iplan2p2_copyarea() 59 w = width >> 4; in atafb_iplan2p2_copyarea() 72 if (width & 15) in atafb_iplan2p2_copyarea() 73 memmove32_col(dst + width / (8 / BPL), src + width / (8 / BPL), in atafb_iplan2p2_copyarea() 76 src = (u8 *)info->screen_base + (sy - 1) * next_line + ((sx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p2_copyarea() 77 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p2_copyarea() 79 if ((sx + width) & 15) { in atafb_iplan2p2_copyarea() 83 width -= 8; in atafb_iplan2p2_copyarea() 85 w = width >> 4; in atafb_iplan2p2_copyarea() [all …]
|
D | atafb_mfb.c | 26 int height, int width) in atafb_mfb_copyarea() argument 31 if (sx == 0 && dx == 0 && width == next_line) { in atafb_mfb_copyarea() 32 src = (u8 *)info->screen_base + sy * (width >> 3); in atafb_mfb_copyarea() 33 dest = (u8 *)info->screen_base + dy * (width >> 3); in atafb_mfb_copyarea() 34 fb_memmove(dest, src, height * (width >> 3)); in atafb_mfb_copyarea() 39 fb_memmove(dest, src, width >> 3); in atafb_mfb_copyarea() 47 fb_memmove(dest, src, width >> 3); in atafb_mfb_copyarea() 55 int sy, int sx, int height, int width) in atafb_mfb_fillrect() argument 62 if (sx == 0 && width == next_line) { in atafb_mfb_fillrect() 64 fb_memset255(dest, height * (width >> 3)); in atafb_mfb_fillrect() [all …]
|
D | atafb_iplan2p4.c | 26 int height, int width) in atafb_iplan2p4_copyarea() argument 57 width -= 8; in atafb_iplan2p4_copyarea() 59 w = width >> 4; in atafb_iplan2p4_copyarea() 72 if (width & 15) in atafb_iplan2p4_copyarea() 73 memmove32_col(dst + width / (8 / BPL), src + width / (8 / BPL), in atafb_iplan2p4_copyarea() 76 src = (u8 *)info->screen_base + (sy - 1) * next_line + ((sx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p4_copyarea() 77 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p4_copyarea() 79 if ((sx + width) & 15) { in atafb_iplan2p4_copyarea() 83 width -= 8; in atafb_iplan2p4_copyarea() 85 w = width >> 4; in atafb_iplan2p4_copyarea() [all …]
|
D | atafb.h | 5 int dx, int height, int width); 7 int sy, int sx, int height, int width); 9 int dy, int dx, u32 width, 13 int dx, int height, int width); 15 int sy, int sx, int height, int width); 17 int dy, int dx, u32 width, 21 int dx, int height, int width); 23 int sy, int sx, int height, int width); 25 int dy, int dx, u32 width, 29 int dx, int height, int width); [all …]
|
D | atafb_iplan2p8.c | 33 int height, int width) in atafb_iplan2p8_copyarea() argument 64 width -= 8; in atafb_iplan2p8_copyarea() 66 w = width >> 4; in atafb_iplan2p8_copyarea() 79 if (width & 15) in atafb_iplan2p8_copyarea() 80 memmove32_col(dst + width / (8 / BPL), src + width / (8 / BPL), in atafb_iplan2p8_copyarea() 83 src = (u8 *)info->screen_base + (sy - 1) * next_line + ((sx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p8_copyarea() 84 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p8_copyarea() 86 if ((sx + width) & 15) { in atafb_iplan2p8_copyarea() 90 width -= 8; in atafb_iplan2p8_copyarea() 92 w = width >> 4; in atafb_iplan2p8_copyarea() [all …]
|
D | tgafb.c | 623 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 …]
|
D | c2p_planar.c | 86 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()
|
D | c2p_iplan2.c | 85 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()
|
D | vga16fb.c | 76 .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 …]
|
D | hitfb.c | 36 .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 …]
|
D | sunxvr2500.c | 24 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()
|
D | pm3fb.c | 216 const u32 width = (info->var.xres_virtual + 7) & ~7; in pm3fb_init_engine() local 272 PM3FBDestReadBufferWidth_Width(width)); in pm3fb_init_engine() 280 PM3FBSourceReadBufferWidth_Width(width)); in pm3fb_init_engine() 326 PM3FBWriteBufferWidth_Width(width)); in pm3fb_init_engine() 402 if (!modded.width || !modded.height || in pm3fb_fillrect() 406 if (modded.dx + modded.width > vxres) in pm3fb_fillrect() 407 modded.width = vxres - modded.dx; in pm3fb_fillrect() 435 PM3Render2D_Width(modded.width) | in pm3fb_fillrect() 459 if (!modded.width || !modded.height || in pm3fb_copyarea() 464 if (modded.sx + modded.width > vxres) in pm3fb_copyarea() [all …]
|
D | ssd1307fb.c | 79 u32 width; member 153 array = ssd1307fb_alloc_array(par->width * par->height / 8, in ssd1307fb_update_display() 188 for (j = 0; j < par->width; j++) { in ssd1307fb_update_display() 189 u32 array_idx = i * par->width + j; in ssd1307fb_update_display() 192 u32 page_length = par->width * i; in ssd1307fb_update_display() 193 u32 index = page_length + (par->width * k + j) / 8; in ssd1307fb_update_display() 202 ssd1307fb_write_array(par->client, array, par->width * par->height / 8); in ssd1307fb_update_display() 415 ret = ssd1307fb_write_cmd(par->client, par->width - 1); in ssd1307fb_init() 563 if (of_property_read_u32(node, "solomon,width", &par->width)) in ssd1307fb_probe() 564 par->width = 96; in ssd1307fb_probe() [all …]
|
D | amba-clcd-versatile.c | 23 .width = -1, 47 .width = -1, 72 .width = -1, 96 .width = -1, 121 .width = -1,
|
/linux-4.4.14/drivers/media/pci/bt8xx/ |
D | btcx-risc.c | 95 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 …]
|
D | bttv-risc.c | 293 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 …]
|
D | bttv-driver.c | 275 .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.4.14/scripts/kconfig/lxdialog/ |
D | yesno.c | 27 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 …]
|
D | textbox.c | 25 static void print_page(WINDOW *win, int height, int width, update_text_fn 27 static void print_line(WINDOW *win, int row, int width); 61 int height, width, boxh, boxw; 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 …]
|
D | inputbox.c | 29 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 …]
|
D | checklist.c | 101 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 …]
|
D | menubox.c | 155 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 …]
|
D | dialog.h | 221 void attr_clear(WINDOW * win, int height, int width, chtype attr); 223 void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x); 225 void print_title(WINDOW *dialog, const char *title, int width); 226 void draw_box(WINDOW * win, int y, int x, int height, int width, chtype box, 228 void draw_shadow(WINDOW * win, int y, int x, int height, int width); 231 int dialog_yesno(const char *title, const char *prompt, int height, int width); 233 int width, int pause); 244 int width, int list_height); 246 int width, const char *init);
|
D | util.c | 242 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.4.14/tools/perf/util/ |
D | values.c | 145 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 …]
|
D | sort.c | 71 size_t size, unsigned int width) in hist_entry__thread_snprintf() argument 75 width = max(7U, width) - 6; in hist_entry__thread_snprintf() 77 width, width, comm ?: ""); in hist_entry__thread_snprintf() 110 size_t size, unsigned int width) in hist_entry__comm_snprintf() argument 112 return repsep_snprintf(bf, size, "%-*.*s", width, width, comm__str(he->comm)); in hist_entry__comm_snprintf() 153 size_t size, unsigned int width) in _hist_entry__dso_snprintf() argument 158 return repsep_snprintf(bf, size, "%-*.*s", width, width, dso_name); in _hist_entry__dso_snprintf() 161 return repsep_snprintf(bf, size, "%-*.*s", width, width, "[unknown]"); in _hist_entry__dso_snprintf() 165 size_t size, unsigned int width) in hist_entry__dso_snprintf() argument 167 return _hist_entry__dso_snprintf(he->ms.map, bf, size, width); in hist_entry__dso_snprintf() [all …]
|
D | svghelper.c | 385 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.4.14/drivers/acpi/acpica/ |
D | utprint.c | 66 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 …]
|
D | hwvalid.c | 220 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()
|
D | hwxface.c | 131 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.4.14/drivers/dma/ |
D | fsldma.h | 222 #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.4.14/drivers/gpu/drm/omapdrm/ |
D | tcm.h | 59 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 …]
|
D | tcm-sita.c | 80 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.4.14/drivers/video/fbdev/aty/ |
D | mach64_accel.c | 186 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 …]
|
D | radeon_accel.c | 64 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()
|
D | mach64_cursor.c | 147 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.4.14/drivers/clk/ |
D | clk-divider.c | 33 #define div_mask(width) ((1 << (width)) - 1) argument 57 static unsigned int _get_maxdiv(const struct clk_div_table *table, u8 width, in _get_maxdiv() argument 61 return div_mask(width); in _get_maxdiv() 63 return 1 << div_mask(width); in _get_maxdiv() 66 return div_mask(width) + 1; in _get_maxdiv() 81 unsigned int val, unsigned long flags, u8 width) in _get_div() argument 88 return val ? val : div_mask(width) + 1; in _get_div() 106 unsigned int div, unsigned long flags, u8 width) in _get_val() argument 113 return (div == div_mask(width) + 1) ? 0 : div; in _get_val() 127 div = _get_div(table, val, flags, divider->width); in divider_recalc_rate() [all …]
|
D | clk-axm5516.c | 82 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 …]
|
D | clk-multiplier.c | 36 val &= GENMASK(mult->width - 1, 0); in clk_multiplier_recalc_rate() 55 u8 width, unsigned long flags) in __bestmult() argument 64 for (i = 1; i < ((1 << width) - 1); i++) { in __bestmult() 94 mult->width, mult->flags); in clk_multiplier_round_rate() 113 val &= ~GENMASK(mult->width + mult->shift - 1, mult->shift); in clk_multiplier_set_rate()
|
/linux-4.4.14/drivers/video/fbdev/matrox/ |
D | matroxfb_accel.c | 208 int sx, int dy, int dx, int height, int width) in matrox_accel_bmove() argument 223 width--; in matrox_accel_bmove() 225 end = start+width; in matrox_accel_bmove() 232 width--; in matrox_accel_bmove() 234 start = end+width; in matrox_accel_bmove() 241 mga_outl(M_FXBNDRY, ((dx+width)<<16) | dx); in matrox_accel_bmove() 250 int width) in matrox_accel_bmove_lin() argument 265 width--; in matrox_accel_bmove_lin() 267 end = start+width; in matrox_accel_bmove_lin() 274 width--; in matrox_accel_bmove_lin() [all …]
|
/linux-4.4.14/drivers/video/fbdev/sis/ |
D | sis_accel.c | 118 int src_y, int dst_x, int dst_y, int width, int height) in SiS300SubsequentScreenToScreenCopy() argument 135 src_x += width-1; in SiS300SubsequentScreenToScreenCopy() 136 dst_x += width-1; in SiS300SubsequentScreenToScreenCopy() 142 SiS300SetupRect(width, height) in SiS300SubsequentScreenToScreenCopy() 205 int dst_x, int dst_y, int width, int height) in SiS310SubsequentScreenToScreenCopy() argument 244 SiS310SetupRect(width, height) in SiS310SubsequentScreenToScreenCopy() 324 int width, height; in fbcon_sis_fillrect() local 335 if(!rect->width || !rect->height || rect->dx >= vxres || rect->dy >= vyres) in fbcon_sis_fillrect() 339 width = ((rect->dx + rect->width) > vxres) ? (vxres - rect->dx) : rect->width; in fbcon_sis_fillrect() 354 SiS300SubsequentSolidFillRect(ivideo, rect->dx, rect->dy, width, height); in fbcon_sis_fillrect() [all …]
|
/linux-4.4.14/drivers/video/fbdev/savage/ |
D | savagefb_accel.c | 38 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.4.14/drivers/video/fbdev/mb862xx/ |
D | mb862xxfb_accel.c | 67 cmd[5] = (area->height << 16) | area->width; in mb86290fb_copyarea() 76 u16 width, u16 height, u32 fgcolor, in mb86290fb_imageblit1() argument 97 bytes = (image->width + 7) >> 3; in mb86290fb_imageblit1() 103 cmd[8] = (height << 16) | width; in mb86290fb_imageblit1() 125 u16 width, u16 height, u32 fgcolor, in mb86290fb_imageblit8() argument 136 cmd[2] = (height << 16) | width; in mb86290fb_imageblit8() 140 bytes = image->width; in mb86290fb_imageblit8() 164 u16 width, u16 height, u32 fgcolor, in mb86290fb_imageblit16() argument 174 bytes = image->width << 1; in mb86290fb_imageblit16() 179 cmd[2] = (height << 16) | width; in mb86290fb_imageblit16() [all …]
|
/linux-4.4.14/drivers/media/platform/vivid/ |
D | vivid-vid-common.c | 520 if (dev->src_rect.width != dev->sink_rect.width || in vivid_vid_can_loop() 578 mp->width = pix->width; in fmt_sp2mp() 607 pix->width = mp->width; in fmt_sp2mp_func() 624 r->width = size->width; in rect_set_size_to() 631 if (r->width < min_size->width) in rect_set_min_size() 632 r->width = min_size->width; in rect_set_min_size() 640 if (r->width > max_size->width) in rect_set_max_size() 641 r->width = max_size->width; in rect_set_max_size() 654 if (r->left + r->width > boundary->width) in rect_map_inside() 655 r->left = boundary->width - r->width; in rect_map_inside() [all …]
|
D | vivid-vid-cap.c | 393 dev->src_rect.width == 720 && dev->src_rect.height <= 576) in vivid_get_pixel_aspect() 412 dev->src_rect.width = webcam_sizes[dev->webcam_size_idx].width; in vivid_update_format_cap() 421 dev->src_rect.width = 720; in vivid_update_format_cap() 434 dev->src_rect.width = bt->width; in vivid_update_format_cap() 452 if (bt->width == 720 && bt->height <= 576) in vivid_update_format_cap() 465 tpg_reset_source(&dev->tpg, dev->src_rect.width, dev->src_rect.height, dev->field_cap); in vivid_update_format_cap() 536 mp->width = dev->fmt_cap_rect.width; in vivid_g_fmt_vid_cap() 577 v4l2_find_nearest_format(&webcam_probe, mp->width, mp->height); in vivid_try_fmt_vid_cap() 579 w = sz->width; in vivid_try_fmt_vid_cap() 585 w = dev->src_rect.width; in vivid_try_fmt_vid_cap() [all …]
|
D | vivid-kthread-cap.c | 75 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 …]
|
D | vivid-vid-out.c | 232 dev->sink_rect.width = 720; in vivid_update_format_out() 245 dev->sink_rect.width = bt->width; in vivid_update_format_out() 256 if (bt->width == 720 && bt->height <= 576) in vivid_update_format_out() 276 (dev->sink_rect.width * dev->fmt_out->bit_depth[p]) / 8; in vivid_update_format_out() 308 dev->sink_rect.width == 720 && dev->sink_rect.height <= 576) in vivid_get_pixel_aspect() 323 mp->width = dev->fmt_out_rect.width; in vivid_g_fmt_vid_out() 372 w = dev->sink_rect.width; in vivid_try_fmt_vid_out() 378 mp->width = w; in vivid_try_fmt_vid_out() 381 struct v4l2_rect r = { 0, 0, mp->width, mp->height * factor }; in vivid_try_fmt_vid_out() 394 mp->width = r.width; in vivid_try_fmt_vid_out() [all …]
|
D | vivid-tpg.c | 102 tpg->crop.width = tpg->compose.width = w; in tpg_init() 394 tpg->scaled_width = (tpg->src_width * tpg->compose.width + in tpg_s_crop_compose() 395 tpg->crop.width - 1) / tpg->crop.width; in tpg_s_crop_compose() 404 void tpg_reset_source(struct tpg_data *tpg, unsigned width, unsigned height, in tpg_reset_source() argument 409 tpg->src_width = width; in tpg_reset_source() 415 tpg->scaled_width = width; in tpg_reset_source() 417 tpg->crop.width = width; in tpg_reset_source() 420 tpg->compose.width = width; in tpg_reset_source() 423 tpg->bytesperline[p] = (width * tpg->twopixelsize[p]) / in tpg_reset_source() 1371 tpg->square.width = sq_w; in tpg_calculate_square_border() [all …]
|
/linux-4.4.14/drivers/clk/meson/ |
D | clkc.h | 21 #define PMASK(width) GENMASK(width - 1, 0) argument 22 #define SETPMASK(width, shift) GENMASK(shift + width - 1, shift) argument 23 #define CLRPMASK(width, shift) (~SETPMASK(width, shift)) argument 25 #define PARM_GET(width, shift, reg) \ argument 26 (((reg) & SETPMASK(width, shift)) >> (shift)) 27 #define PARM_SET(width, shift, reg, val) \ argument 28 (((reg) & CLRPMASK(width, shift)) | (val << (shift))) 30 #define MESON_PARM_APPLICABLE(p) (!!((p)->width)) 35 u8 width; member 41 .width = (_w), \
|
/linux-4.4.14/drivers/staging/fbtft/ |
D | flexfb.c | 33 static unsigned int width; variable 34 module_param(width, uint, 0); 35 MODULE_PARM_DESC(width, "Display width"); 141 unsigned int width; member 152 .width = 120, 159 .width = 176, 166 .width = 176, 174 .width = 176, 182 .width = 176, 190 .width = 240, [all …]
|
/linux-4.4.14/drivers/clk/mxs/ |
D | clk-frac.c | 33 u8 width; member 47 div &= (1 << frac->width) - 1; in clk_frac_recalc_rate() 50 return tmp_rate >> frac->width; in clk_frac_recalc_rate() 65 tmp <<= frac->width; in clk_frac_round_rate() 73 result = tmp_rate >> frac->width; in clk_frac_round_rate() 74 if ((result << frac->width) < tmp_rate) in clk_frac_round_rate() 91 tmp <<= frac->width; in clk_frac_set_rate() 101 val &= ~(((1 << frac->width) - 1) << frac->shift); in clk_frac_set_rate() 117 void __iomem *reg, u8 shift, u8 width, u8 busy) in mxs_clk_frac() argument 135 frac->width = width; in mxs_clk_frac()
|
D | clk.h | 34 void __iomem *reg, u8 shift, u8 width, u8 busy); 37 void __iomem *reg, u8 shift, u8 width, u8 busy); 53 u8 shift, u8 width, const char *const *parent_names, int num_parents) in mxs_clk_mux() argument 57 reg, shift, width, 0, &mxs_lock); in mxs_clk_mux()
|
/linux-4.4.14/drivers/media/platform/vsp1/ |
D | vsp1_rwpf.c | 66 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() 207 sel->r.width = round_down(sel->r.width, 2); in vsp1_rwpf_set_selection() 211 sel->r.left = min_t(unsigned int, sel->r.left, format->width - 2); in vsp1_rwpf_set_selection() 217 sel->r.width = min_t(unsigned int, sel->r.width, in vsp1_rwpf_set_selection() 218 format->width - sel->r.left); in vsp1_rwpf_set_selection() 228 format->width = crop->width; in vsp1_rwpf_set_selection()
|
D | vsp1_sru.c | 148 if (input->width != output->width) in sru_s_stream() 219 fse->min_width = format->width; in sru_enum_frame_size() 221 if (format->width <= SRU_MAX_SIZE / 2 && in sru_enum_frame_size() 223 fse->max_width = format->width * 2; in sru_enum_frame_size() 226 fse->max_width = format->width; in sru_enum_frame_size() 260 fmt->width = clamp(fmt->width, SRU_MIN_SIZE, SRU_MAX_SIZE); in sru_try_format() 276 input_area = format->width * format->height; in sru_try_format() 277 output_area = min(fmt->width, SRU_MAX_SIZE) in sru_try_format() 280 if (fmt->width <= SRU_MAX_SIZE / 2 && in sru_try_format() 283 fmt->width = format->width * 2; in sru_try_format() [all …]
|
D | vsp1_uds.c | 132 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()
|
D | vsp1_bru.c | 104 (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.4.14/arch/arm64/include/asm/ |
D | cpufeature.h | 58 u8 width; member 120 cpuid_feature_extract_field_width(u64 features, int field, int width) in cpuid_feature_extract_field_width() argument 122 return (s64)(features << (64 - width - field)) >> (64 - width); in cpuid_feature_extract_field_width() 132 cpuid_feature_extract_unsigned_field_width(u64 features, int field, int width) in cpuid_feature_extract_unsigned_field_width() argument 134 return (u64)(features << (64 - width - field)) >> (64 - width); in cpuid_feature_extract_unsigned_field_width() 145 return (u64)GENMASK(ftrp->shift + ftrp->width - 1, ftrp->shift); in arm64_ftr_mask() 151 cpuid_feature_extract_field_width(val, ftrp->shift, ftrp->width) : in arm64_ftr_value() 152 cpuid_feature_extract_unsigned_field_width(val, ftrp->shift, ftrp->width); in arm64_ftr_value()
|
/linux-4.4.14/include/video/ |
D | omapvrfb.h | 42 extern void omap_vrfb_adjust_size(u16 *width, u16 *height, 44 extern u32 omap_vrfb_min_phys_size(u16 width, u16 height, u8 bytespp); 45 extern u16 omap_vrfb_max_height(u32 phys_size, u16 width, u8 bytespp); 47 u16 width, u16 height, 56 static inline void omap_vrfb_adjust_size(u16 *width, u16 *height, 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.4.14/drivers/media/i2c/soc_camera/ |
D | tw9910.c | 223 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 …]
|
D | mt9m111.c | 211 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 …]
|
D | ov5642.c | 740 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() 801 mf->width = priv->crop_rect.width; in ov5642_set_fmt() 835 mf->width = priv->crop_rect.width; in ov5642_get_fmt() 860 v4l_bound_align_image(&rect.width, 48, OV5642_MAX_WIDTH, 1, in ov5642_s_crop() 863 priv->crop_rect.width = rect.width; in ov5642_s_crop() [all …]
|
D | ov9740.c | 547 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 …]
|
D | ov2640.c | 277 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() 860 u32 width = SVGA_WIDTH, height = SVGA_HEIGHT; in ov2640_get_fmt() local [all …]
|
D | ov772x.c | 492 .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 …]
|
D | ov6650.c | 457 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() 513 mf->width = priv->rect.width >> priv->half_scale; in ov6650_get_fmt() 522 static bool is_unscaled_ok(int width, int height, struct v4l2_rect *rect) in is_unscaled_ok() argument 524 return width > rect->width >> 1 || height > rect->height >> 1; in is_unscaled_ok() 551 bool half_scale = !is_unscaled_ok(mf->width, mf->height, &priv->rect); in ov6650_s_fmt() 555 .left = priv->rect.left + (priv->rect.width >> 1) - in ov6650_s_fmt() [all …]
|
/linux-4.4.14/drivers/clk/hisilicon/ |
D | clkdivider-hi6220.c | 21 #define div_mask(width) ((1 << (width)) - 1) argument 38 u8 width; member 54 val &= div_mask(dclk->width); in hi6220_clkdiv_recalc_rate() 66 dclk->width, CLK_DIVIDER_ROUND_CLOSEST); in hi6220_clkdiv_round_rate() 78 dclk->width, CLK_DIVIDER_ROUND_CLOSEST); in hi6220_clkdiv_set_rate() 84 data &= ~(div_mask(dclk->width) << dclk->shift); in hi6220_clkdiv_set_rate() 104 u8 shift, u8 width, u32 mask_bit, spinlock_t *lock) in hi6220_register_clkdiv() argument 119 max_div = div_mask(width) + 1; in hi6220_register_clkdiv() 142 div->width = width; in hi6220_register_clkdiv()
|
D | clk.h | 63 u8 width; member 76 u8 width; member 89 u8 width; member 111 u8 shift, u8 width, u32 mask_bit, spinlock_t *lock);
|
/linux-4.4.14/drivers/video/fbdev/omap2/ |
D | vrfb.c | 105 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.4.14/drivers/media/platform/omap3isp/ |
D | ispresizer.c | 354 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.4.14/arch/arm/mach-s3c64xx/ |
D | setup-sdhci-gpio.c | 25 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.4.14/arch/mips/include/asm/ |
D | processor.h | 100 # define FPR_IDX(width, idx) (idx) argument 102 # define FPR_IDX(width, idx) ((idx) ^ ((64 / (width)) - 1)) argument 105 #define BUILD_FPR_ACCESS(width) \ argument 106 static inline u##width get_fpr##width(union fpureg *fpr, unsigned idx) \ 108 return fpr->val##width[FPR_IDX(width, idx)]; \ 111 static inline void set_fpr##width(union fpureg *fpr, unsigned idx, \ 112 u##width val) \ 114 fpr->val##width[FPR_IDX(width, idx)] = val; \
|
/linux-4.4.14/drivers/clk/imx/ |
D | clk.h | 73 void __iomem *reg, u8 shift, u8 width, 77 u8 width, void __iomem *busy_reg, u8 busy_shift, 81 void __iomem *reg, u8 shift, u8 width, 85 u8 shift, u8 width, const char **parents, 94 void __iomem *reg, u8 shift, u8 width) in imx_clk_divider() argument 97 reg, shift, width, 0, &imx_ccm_lock); in imx_clk_divider() 101 const char *parent, void __iomem *reg, u8 shift, u8 width, in imx_clk_divider_flags() argument 105 reg, shift, width, 0, &imx_ccm_lock); in imx_clk_divider_flags() 123 u8 shift, u8 width, const char **parents, int num_parents) in imx_clk_mux() argument 127 width, 0, &imx_ccm_lock); in imx_clk_mux() [all …]
|
/linux-4.4.14/sound/core/oss/ |
D | pcm_plugin.c | 52 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.4.14/drivers/gpu/drm/vmwgfx/device_include/ |
D | svga_overlay.h | 138 uint32 *width, /* IN / OUT */ in VMwareVideoGetAttributes() argument 146 *width = (*width + 1) & ~1; in VMwareVideoGetAttributes() 155 *size = (*width) * (*height); in VMwareVideoGetAttributes() 158 pitches[0] = *width; in VMwareVideoGetAttributes() 165 tmp = *width >> 1; in VMwareVideoGetAttributes() 183 *size = *width * 2; in VMwareVideoGetAttributes()
|
D | svga_reg.h | 1180 uint32 width; member 1209 uint32 width; member 1280 uint32 width; member 1387 uint32 width; member 1411 uint32 width; member 1437 uint32 width; member 1464 uint32 width; member 1496 uint32 width; member 1521 uint32 width; member 1550 uint32 width; member
|
/linux-4.4.14/drivers/mtd/maps/ |
D | scx200_docflash.c | 28 static unsigned width = 8; /* Default to 8 bits wide */ variable 35 module_param(width, int, 0); 36 MODULE_PARM_DESC(width, "Data width of the flash mapping (8/16)"); 117 width = 16; 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()
|
D | pismo.c | 25 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.4.14/arch/powerpc/kernel/ |
D | btext.c | 119 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.4.14/drivers/gpu/drm/panel/ |
D | panel-simple.c | 48 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.4.14/arch/arm/mach-ep93xx/ |
D | micro9.c | 48 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.4.14/arch/arm/boot/dts/ |
D | omap-zoom-common.dtsi | 19 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.4.14/drivers/pinctrl/ |
D | pinctrl-tegra.c | 306 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 …]
|
D | pinctrl-tz1090-pdc.c | 651 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 ®, &width, &mask, &shift, &val); in tz1090_pdc_pinconf_get() 720 u32 reg, width, mask, shift, val, tmp; in tz1090_pdc_pinconf_set() local 733 ®, &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.4.14/drivers/media/pci/solo6x10/ |
D | solo6x10-enc.c | 36 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.4.14/drivers/media/usb/go7007/ |
D | go7007-v4l2.c | 88 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.4.14/drivers/gpu/drm/ |
D | drm_rect.c | 314 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.4.14/drivers/clk/ti/ |
D | divider.c | 31 #define div_mask(d) ((1 << ((d)->width)) - 1) 251 u8 shift, u8 width, u8 clk_divider_flags, in _register_divider() argument 259 if (width + shift > 16) { in _register_divider() 281 div->width = width; in _register_divider() 296 _get_div_table_from_setup(struct ti_clk_divider *setup, u8 *width) in _get_div_table_from_setup() argument 324 *width = fls(val); in _get_div_table_from_setup() 338 *width = 0; in _get_div_table_from_setup() 345 *width = i; in _get_div_table_from_setup() 348 *width = fls(*width); in _get_div_table_from_setup() 375 div->table = _get_div_table_from_setup(setup, &div->width); in ti_clk_build_component_div() [all …]
|
/linux-4.4.14/arch/arm/mach-s3c24xx/ |
D | setup-sdhci-gpio.c | 26 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.4.14/drivers/media/platform/ |
D | sh_vou.c | 206 addr2 = addr1 + vou_dev->pix.width * vou_dev->pix.height; in sh_vou_schedule_next() 242 sh_vou_reg_ab_write(vou_dev, VOUAIR, vou_dev->pix.width * row_coeff); in sh_vou_stream_config() 253 int bytes_per_line = vou_fmt[vou_dev->pix_idx].bpp * pix->width / 8; in sh_vou_queue_setup() 269 unsigned bytes_per_line = vou_fmt[vou_dev->pix_idx].bpp * pix->width / 8; in sh_vou_buf_prepare() 478 dsr_h = rect->width + rect->left; in sh_vou_configure_geometry() 483 pix->width, frame_in_height, black_left, black_top, in sh_vou_configure_geometry() 487 sh_vou_reg_ab_write(vou_dev, VOUISR, (pix->width << 16) | frame_in_height); in sh_vou_configure_geometry() 542 unsigned int found = geo->output.width * vou_scale_h_den[i] / in vou_adjust_input() 618 err = abs(found - geo->output.width); in vou_adjust_output() 628 geo->output.width = best; in vou_adjust_output() [all …]
|
D | fsl-viu.c | 170 int width, height, sizeimage; member 328 } else if (prev->vb.width == buf->vb.width && in restart_video_queue() 367 *size = fh->width * fh->height * fh->fmt->depth >> 3; in buffer_setup() 413 reg_val.dma_inc = buf->vb.width * 2; in buffer_activate() 417 reg_val.dma_inc = buf->vb.width * 4; in buffer_activate() 427 buf->vb.width; in buffer_activate() 455 if (fh->width < 48 || fh->width > norm_maxw() || in buffer_prepare() 458 buf->vb.size = (fh->width * fh->height * fh->fmt->depth) >> 3; in buffer_prepare() 463 buf->vb.width != fh->width || in buffer_prepare() 467 buf->vb.width = fh->width; in buffer_prepare() [all …]
|
D | vim2m.c | 108 unsigned int width; member 208 int width, height, bytesperline; in device_process() local 212 width = q_data->width; in device_process() 214 bytesperline = (q_data->width * q_data->fmt->depth) >> 3; in device_process() 230 tile_w = (width * (q_data[V4L2_M2M_DST].fmt->depth >> 3)) in device_process() 489 f->fmt.pix.width = q_data->width; in vidioc_g_fmt() 493 f->fmt.pix.bytesperline = (q_data->width * q_data->fmt->depth) >> 3; in vidioc_g_fmt() 521 if (f->fmt.pix.width < MIN_W) in vidioc_try_fmt() 522 f->fmt.pix.width = MIN_W; in vidioc_try_fmt() 523 else if (f->fmt.pix.width > MAX_W) in vidioc_try_fmt() [all …]
|
D | arv.c | 119 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.4.14/drivers/media/usb/stk1160/ |
D | stk1160-v4l.c | 374 f->fmt.pix.width = dev->width; in vidioc_g_fmt_vid_cap() 378 f->fmt.pix.bytesperline = dev->width * 2; in vidioc_g_fmt_vid_cap() 388 unsigned int width, height; in stk1160_try_fmt() local 398 width = clamp_t(unsigned int, f->fmt.pix.width, in stk1160_try_fmt() 408 f->fmt.pix.width = base_width; in stk1160_try_fmt() 413 if (width < base_width && width > base_width / 2) { in stk1160_try_fmt() 424 col_n = div_round_integer(width, base_width - width); in stk1160_try_fmt() 428 f->fmt.pix.width = (base_width * col_n) / (col_n + 1); in stk1160_try_fmt() 431 } else if (width <= base_width / 2) { in stk1160_try_fmt() 443 col_n = div_round_integer(base_width, width) - 1; in stk1160_try_fmt() [all …]
|
/linux-4.4.14/arch/sparc/kernel/ |
D | btext.c | 44 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.4.14/drivers/media/platform/exynos4-is/ |
D | fimc-capture.c | 357 wh = pixm->width * pixm->height; in queue_setup() 580 u32 *width, u32 *height, in fimc_capture_try_format() argument 616 v4l_bound_align_image(width, max_t(u32, *width, 32), max_w, 4, in fimc_capture_try_format() 626 *width = ctx->s_frame.f_width; in fimc_capture_try_format() 633 min_w = dst->offs_h + dst->width; in fimc_capture_try_format() 643 v4l_bound_align_image(width, min_w, max_w, in fimc_capture_try_format() 650 pad, code ? *code : 0, *width, *height, in fimc_capture_try_format() 671 r->width = sink->f_width; in fimc_capture_try_selection() 679 max_sc_h = min(SCALER_MAX_HRATIO, 1 << (ffs(sink->width) - 3)); in fimc_capture_try_selection() 711 v4l_bound_align_image(&r->width, min_w, max_w, ffs(min_sz) - 1, in fimc_capture_try_selection() [all …]
|
D | fimc-is-param.c | 215 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 …]
|
D | fimc-m2m.c | 326 v4l_bound_align_image(&pix->width, 16, max_w, mod_x, in fimc_try_fmt_mplane() 329 fimc_adjust_mplane_format(fmt, pix->width, pix->height, &f->fmt.pix_mp); in fimc_try_fmt_mplane() 350 frame->f_width = pixm->width; in __set_frame_format() 352 frame->o_width = pixm->width; in __set_frame_format() 354 frame->width = pixm->width; in __set_frame_format() 412 cr->bounds.width = frame->o_width; in fimc_m2m_cropcap() 430 cr->c.width = frame->width; in fimc_m2m_g_crop() 467 v4l_bound_align_image(&cr->c.width, min_size, f->o_width, in fimc_m2m_try_crop() 473 if (cr->c.left + cr->c.width > f->o_width) in fimc_m2m_try_crop() 474 cr->c.left = f->o_width - cr->c.width; in fimc_m2m_try_crop() [all …]
|
D | fimc-lite.c | 373 wh = pixm->width * pixm->height; in queue_setup() 576 v4l_bound_align_image(&mf->width, 8, dd->max_width, in fimc_lite_subdev_try_fmt() 607 mf->width = rect->width; in fimc_lite_subdev_try_fmt() 614 mf->code, mf->colorspace, mf->width, mf->height); in fimc_lite_subdev_try_fmt() 623 v4l_bound_align_image(&r->width, 0, frame->f_width, 0, in fimc_lite_try_crop() 627 r->left = clamp_t(u32, r->left, 0, frame->f_width - r->width); in fimc_lite_try_crop() 632 r->left, r->top, r->width, r->height, in fimc_lite_try_crop() 643 r->width = crop_rect->width; in fimc_lite_try_compose() 647 r->left = clamp_t(u32, r->left, 0, frame->f_width - r->width); in fimc_lite_try_compose() 652 r->left, r->top, r->width, r->height, in fimc_lite_try_compose() [all …]
|
/linux-4.4.14/drivers/video/fbdev/i810/ |
D | i810_accel.c | 195 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.4.14/drivers/media/usb/gspca/stv06xx/ |
D | stv06xx_hdcs.c | 77 int width, height; member 289 unsigned int width, unsigned int height) in hdcs_set_size() argument 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.4.14/drivers/staging/media/omap4iss/ |
D | iss_ipipe.c | 107 (format->width - 1) & IPIPE_SRC_HSZ_MASK); in ipipe_configure() 207 unsigned int width = fmt->width; in ipipe_try_format() local 223 fmt->width = clamp_t(u32, width, 1, 8192); in ipipe_try_format() 233 fmt->width = clamp_t(u32, width, 32, fmt->width); in ipipe_try_format() 287 format.width = 1; in ipipe_enum_frame_size() 290 fse->min_width = format.width; in ipipe_enum_frame_size() 297 format.width = -1; in ipipe_enum_frame_size() 300 fse->max_width = format.width; in ipipe_enum_frame_size() 370 if (source_fmt->format.width != sink_fmt->format.width || in ipipe_link_validate() 397 format.format.width = 4096; in ipipe_init_formats()
|
D | iss_ipipeif.c | 199 (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 …]
|
D | iss_resizer.c | 223 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() 554 format.width = 1; in resizer_enum_frame_size() 557 fse->min_width = format.width; in resizer_enum_frame_size() 564 format.width = -1; in resizer_enum_frame_size() 567 fse->max_width = format.width; in resizer_enum_frame_size() [all …]
|
/linux-4.4.14/drivers/media/usb/gspca/ |
D | stk1135.c | 313 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 …]
|
D | jpeg.h | 138 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.4.14/sound/soc/codecs/ |
D | si476x.c | 162 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.4.14/drivers/misc/eeprom/ |
D | eeprom_93cx6.c | 194 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.4.14/drivers/media/platform/xilinx/ |
D | xilinx-vip.c | 110 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.4.14/net/mac80211/ |
D | spectmgmt.c | 119 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()
|
/linux-4.4.14/drivers/media/platform/s3c-camif/ |
D | camif-capture.c | 61 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() 455 size = (pix->width * pix->height * fmt->depth) / 8; in queue_setup() 721 pix->width = frame->f_width; in s3c_camif_vidioc_g_fmt() 750 pix->width, pix->height, crop->width, crop->height, in __camif_video_try_format() 756 sc_hrmax = min(SCALER_MAX_RATIO, 1 << (ffs(crop->width) - 3)); in __camif_video_try_format() 759 wmin = max_t(u32, pix_lim->min_out_width, crop->width / sc_hrmax); in __camif_video_try_format() 764 v4l_bound_align_image(&pix->width, wmin, pix_lim->max_sc_out_width, in __camif_video_try_format() 768 pix->bytesperline = pix->width * fmt->ybpp; in __camif_video_try_format() 769 pix->sizeimage = (pix->width * pix->height * fmt->depth) / 8; in __camif_video_try_format() [all …]
|
/linux-4.4.14/drivers/gpu/drm/virtio/ |
D | virtgpu_fb.c | 42 int width, int height) in virtio_gpu_dirty_update() argument 52 if ((width <= 0) || in virtio_gpu_dirty_update() 53 (x + width > fb->base.width) || in virtio_gpu_dirty_update() 56 width, height, x, y, in virtio_gpu_dirty_update() 57 fb->base.width, fb->base.height); in virtio_gpu_dirty_update() 71 x2 = x + width - 1; in virtio_gpu_dirty_update() 135 norect.x2 = vgfb->base.width; in virtio_gpu_surface_dirty() 178 rect->width, rect->height); in virtio_gpu_3d_fillrect() 188 area->width, area->height); in virtio_gpu_3d_copyarea() 198 image->width, image->height); in virtio_gpu_3d_imageblit() [all …]
|
D | virtgpu_display.c | 60 uint32_t width, in virtio_gpu_crtc_cursor_set() argument 311 int count, width, height; in virtio_gpu_conn_get_modes() local 313 width = le32_to_cpu(output->info.r.width); in virtio_gpu_conn_get_modes() 317 if (width == 0 || height == 0) { in virtio_gpu_conn_get_modes() 318 width = XRES_DEF; in virtio_gpu_conn_get_modes() 322 DRM_DEBUG("add mode: %dx%d\n", width, height); in virtio_gpu_conn_get_modes() 323 mode = drm_cvt_mode(connector->dev, width, height, 60, in virtio_gpu_conn_get_modes() 338 int width, height; in virtio_gpu_conn_mode_valid() local 340 width = le32_to_cpu(output->info.r.width); in virtio_gpu_conn_mode_valid() 347 if (mode->hdisplay <= width && mode->hdisplay >= width - 16 && in virtio_gpu_conn_mode_valid() [all …]
|
/linux-4.4.14/Documentation/devicetree/bindings/misc/ |
D | ifm-csi.txt | 12 - 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.4.14/Documentation/video4linux/ |
D | sh_mobile_ceu_camera.txt | 45 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.4.14/drivers/clk/mmp/ |
D | clk.h | 41 #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
|
D | clk-mix.c | 138 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() 295 u8 width, shift; in mmp_clk_mix_get_parent() local 310 width = mix->reg_info.width_mux; in mmp_clk_mix_get_parent() 313 mux_val = MMP_CLK_BITS_GET_VAL(mux_div, width, shift); in mmp_clk_mix_get_parent() [all …]
|
/linux-4.4.14/drivers/media/i2c/ |
D | mt9t001.c | 298 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 …]
|
D | saa6752hs.c | 82 { .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}}}, 569 f->width = v4l2_format_table[h->video_format].fmt.pix.width; in saa6752hs_get_fmt() 590 dist_352 = abs(f->width - 352); in saa6752hs_set_fmt() 591 dist_480 = abs(f->width - 480); in saa6752hs_set_fmt() 592 dist_720 = abs(f->width - 720); in saa6752hs_set_fmt() 594 f->width = 720; in saa6752hs_set_fmt() [all …]
|
D | mt9v011.c | 54 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 …]
|
D | vs6624.c | 66 .width = VGA_WIDTH, 592 if (fmt->width > VGA_WIDTH) in vs6624_set_fmt() 593 fmt->width = VGA_WIDTH; in vs6624_set_fmt() 596 fmt->width = fmt->width & (~3); in vs6624_set_fmt() 625 if ((fmt->width == VGA_WIDTH) && (fmt->height == VGA_HEIGHT)) in vs6624_set_fmt() 627 else if ((fmt->width == QVGA_WIDTH) && (fmt->height == QVGA_HEIGHT)) in vs6624_set_fmt() 629 else if ((fmt->width == QQVGA_WIDTH) && (fmt->height == QQVGA_HEIGHT)) in vs6624_set_fmt() 631 else if ((fmt->width == CIF_WIDTH) && (fmt->height == CIF_HEIGHT)) in vs6624_set_fmt() 633 else if ((fmt->width == QCIF_WIDTH) && (fmt->height == QCIF_HEIGHT)) in vs6624_set_fmt() 635 else if ((fmt->width == QQCIF_WIDTH) && (fmt->height == QQCIF_HEIGHT)) in vs6624_set_fmt() [all …]
|
D | mt9v032.c | 302 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 …]
|
D | mt9p031.c | 408 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 …]
|
D | mt9m032.c | 181 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.4.14/drivers/media/pci/cobalt/ |
D | cobalt-v4l2.c | 99 s->width * s->bpp, s->stride, desc); in cobalt_buf_init() 179 sd_fmt.format.width = bt->width; in cobalt_enable_output() 197 iowrite32(bt->width, &vo->sync_generator_h_active_length); in cobalt_enable_output() 323 iowrite32(bt->width, &cvi->frame_width); in cobalt_start_streaming() 336 iowrite32(bt->width * bt->height, &fw->active_length); in cobalt_start_streaming() 662 s->width = timings->bt.width; in cobalt_s_dv_timings() 664 s->stride = timings->bt.width * s->bpp; in cobalt_s_dv_timings() 735 pix->width = s->width; in cobalt_g_fmt_vid_cap() 763 if ((pix->width < 176) || (pix->height < 144)) { in cobalt_try_fmt_vid_cap() 764 pix->width = 176; in cobalt_try_fmt_vid_cap() [all …]
|
/linux-4.4.14/scripts/ |
D | decodecode | 42 width=`expr index "$code" ' '` 43 width=$((($width-1)/2)) 44 case $width in 54 if [ $width -eq 2 ]; then
|
/linux-4.4.14/Documentation/devicetree/bindings/net/ |
D | gpmc-eth.txt | 18 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.4.14/drivers/video/fbdev/via/ |
D | accel.c | 53 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.4.14/drivers/media/usb/cpia2/ |
D | cpia2_core.c | 622 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 …]
|
D | cpia2_v4l.c | 363 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.4.14/drivers/media/platform/exynos-gsc/ |
D | gsc-core.c | 229 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.4.14/Documentation/devicetree/bindings/i2c/ |
D | i2c-st.txt | 17 - 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.4.14/drivers/gpu/drm/udl/ |
D | udl_transfer.c | 48 const int width = *width_bytes / sizeof(unsigned long); 49 int identical = width; 50 int start = width; 51 int end = width; 56 for (j = 0; j < width; j++) { 63 for (k = width - 1; k > j; k--) { 70 identical = start + (width - end);
|
D | udl_fb.c | 144 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.4.14/drivers/clk/qcom/ |
D | clk-regmap-divider.c | 31 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()
|
D | gcc-msm8660.c | 117 .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 …]
|
/linux-4.4.14/tools/perf/ui/gtk/ |
D | browser.c | 23 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.4.14/drivers/media/pci/saa7134/ |
D | saa7134-video.c | 396 dev->crop_bounds.width = norm->h_stop - norm->h_start +1; in set_tvnorm() 397 dev->crop_defrect.width = norm->h_stop - norm->h_start +1; in set_tvnorm() 552 int width, int height, int interlace) in set_size() argument 561 h_stop = (dev->crop_current.left + dev->crop_current.width -1); in set_size() 573 prescale = dev->crop_current.width / width; in set_size() 576 xscale = 1024 * dev->crop_current.width / prescale / width; in set_size() 585 saa_writeb(SAA7134_VIDEO_PIXELS1(task), width & 0xff); in set_size() 586 saa_writeb(SAA7134_VIDEO_PIXELS2(task), width >> 8); in set_size() 665 col[cols].position = clip_range(clips[i].c.left+clips[i].c.width); in setup_clipping() 690 if (win->w.width < 48) in verify_preview() [all …]
|
/linux-4.4.14/Documentation/devicetree/bindings/mtd/ |
D | mtd-physmap.txt | 12 - 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.4.14/drivers/media/platform/sti/bdisp/ |
D | bdisp-hw.c | 337 src_w = ctx->src.crop.width; in bdisp_hw_get_hv_inc() 339 dst_w = ctx->dst.crop.width; in bdisp_hw_get_hv_inc() 369 if (src->width > MAX_SRC_WIDTH * MAX_VERTICAL_STRIDES) { in bdisp_hw_get_op_cfg() 374 c->wide = src->width > MAX_SRC_WIDTH; in bdisp_hw_get_op_cfg() 473 s32 dst_width = dst->crop.width; in bdisp_hw_build_node() 483 src_rect.width -= src_x_offset; in bdisp_hw_build_node() 484 src_rect.width = min_t(__s32, MAX_SRC_WIDTH, src_rect.width); in bdisp_hw_build_node() 486 dst_x_offset = (src_x_offset * dst_width) / ctx->src.crop.width; in bdisp_hw_build_node() 488 dst_rect.width = (src_rect.width * dst_width) / ctx->src.crop.width; in bdisp_hw_build_node() 545 dst_rect.width /= 2; in bdisp_hw_build_node() [all …]
|
D | bdisp-v4l2.c | 109 .width = BDISP_DEF_WIDTH, 736 pix->width = frame->width; in bdisp_g_fmt() 775 in_w = pix->width; in bdisp_try_fmt() 777 v4l_bound_align_image(&pix->width, in bdisp_try_fmt() 784 if ((pix->width != in_w) || (pix->height != in_h)) in bdisp_try_fmt() 787 in_w, in_h, pix->width, pix->height); in bdisp_try_fmt() 789 pix->bytesperline = (pix->width * format->bpp_plane0) / 8; in bdisp_try_fmt() 790 pix->sizeimage = (pix->width * pix->height * format->bpp) / 8; in bdisp_try_fmt() 829 frame->width = pix->width; in bdisp_s_fmt() 837 frame->crop.width = frame->width; in bdisp_s_fmt() [all …]
|
/linux-4.4.14/include/media/ |
D | v4l2-mediabus.h | 93 pix_fmt->width = mbus_fmt->width; in v4l2_fill_pix_format() 106 mbus_fmt->width = pix_fmt->width; in v4l2_fill_mbus_format()
|
/linux-4.4.14/drivers/media/platform/am437x/ |
D | am437x-vpfe.c | 60 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.4.14/drivers/mtd/devices/ |
D | docg3.h | 347 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.4.14/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_common.c | 39 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.4.14/drivers/media/pci/cx25821/ |
D | cx25821-video.c | 150 unsigned size = (chan->fmt->depth * chan->width * chan->height) >> 3; in cx25821_queue_setup() 174 buf->bpl = (chan->fmt->depth * chan->width) >> 3; in cx25821_buffer_prepare() 176 buf->bpl = (chan->fmt->depth >> 3) * chan->width; in cx25821_buffer_prepare() 236 buf, buf->vb.vb2_buf.index, chan->width, chan->height, in cx25821_buffer_prepare() 342 f->fmt.pix.width = chan->width; in cx25821_vidioc_g_fmt_vid_cap() 346 f->fmt.pix.bytesperline = (chan->width * chan->fmt->depth) >> 3; in cx25821_vidioc_g_fmt_vid_cap() 368 w = f->fmt.pix.width; in cx25821_vidioc_try_fmt_vid_cap() 383 f->fmt.pix.width = w; in cx25821_vidioc_try_fmt_vid_cap() 384 f->fmt.pix.bytesperline = (f->fmt.pix.width * fmt->depth) >> 3; in cx25821_vidioc_try_fmt_vid_cap() 406 chan->width = f->fmt.pix.width; in vidioc_s_fmt_vid_cap() [all …]
|
/linux-4.4.14/drivers/media/i2c/smiapp/ |
D | smiapp-core.c | 468 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.4.14/sound/soc/pxa/ |
D | magician.c | 93 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.4.14/drivers/gpu/drm/nouveau/ |
D | nv04_fbcon.c | 44 OUT_RING(chan, (region->height << 16) | region->width); in nv04_fbcon_copyarea() 71 OUT_RING(chan, (rect->width << 16) | rect->height); in nv04_fbcon_fillrect() 85 uint32_t width; in nv04_fbcon_imageblit() local 96 width = ALIGN(image->width, 8); in nv04_fbcon_imageblit() 97 dsize = ALIGN(width * image->height, 32) >> 5; in nv04_fbcon_imageblit() 111 ((image->dx + image->width) & 0xffff)); in nv04_fbcon_imageblit() 114 OUT_RING(chan, (image->height << 16) | width); in nv04_fbcon_imageblit() 115 OUT_RING(chan, (image->height << 16) | image->width); in nv04_fbcon_imageblit()
|
/linux-4.4.14/drivers/gpu/drm/qxl/ |
D | qxl_image.c | 104 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()
|
/linux-4.4.14/tools/perf/ui/browsers/ |
D | map.c | 25 int width; in map_browser__write() local 32 width = browser->width - ((mb->addrlen * 2) + 4); in map_browser__write() 33 if (width > 0) in map_browser__write() 34 ui_browser__write_nstring(browser, sym->name, width); in map_browser__write()
|
D | scripts.c | 84 ui_browser__write_nstring(browser, 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.4.14/drivers/media/pci/tw68/ |
D | tw68-video.c | 233 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() 387 sizes[0] = (dev->fmt->depth * dev->width * dev->height) >> 3; in tw68_queue_setup() 469 size = (dev->width * dev->height * dev->fmt->depth) >> 3; in tw68_buf_prepare() 474 bpl = (dev->width * dev->fmt->depth) >> 3; in tw68_buf_prepare() 598 f->fmt.pix.width = dev->width; in tw68_g_fmt_vid_cap() [all …]
|
/linux-4.4.14/arch/parisc/kernel/ |
D | perf.c | 65 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); 675 uint32_t width, xbits, i; in perf_rdr_read_ubuf() local 679 if ((width = tentry->width) == 0) in perf_rdr_read_ubuf() 689 if ((xbits = width & 0x03f) != 0) { in perf_rdr_read_ubuf() 700 data = perf_rdr_shift_in_U(rdr_num, width); in perf_rdr_read_ubuf() 702 data = perf_rdr_shift_in_W(rdr_num, width); in perf_rdr_read_ubuf() 729 if (tentry->width == 0) { in perf_rdr_clear() 839 if (tentry->width == 0) { return; } in perf_rdr_write()
|
/linux-4.4.14/drivers/staging/media/davinci_vpfe/ |
D | dm365_resizer.c | 57 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.4.14/Documentation/devicetree/bindings/clock/ |
D | renesas,h8300-div-clock.txt | 13 - renesas,width: bit width of selector 23 renesas,width = <2>;
|
/linux-4.4.14/drivers/media/common/saa7146/ |
D | saa7146_hlp.c | 343 int width = vv->ov.win.w.width; in calculate_clipping_registers_rect() local 367 w[i] = vv->ov.clips[i].c.width; in calculate_clipping_registers_rect() 392 pixel_list[ 2*i ] = min_t(int, l, width); in calculate_clipping_registers_rect() 393 pixel_list[(2*i)+1] = min_t(int, r, width); in calculate_clipping_registers_rect() 523 static void saa7146_set_window(struct saa7146_dev *dev, int width, int height, enum v4l2_field fiel… in saa7146_set_window() argument 541 …calculate_h_scale_registers(dev, vv->standard->h_pixels, width, vv->hflip, &hps_ctrl, &hps_v_gain,… in saa7146_set_window() 652 saa7146_set_window(dev, vv->ov.win.w.width, vv->ov.win.w.height, vv->ov.win.field); in saa7146_enable_overlay() 708 int width = buf->fmt->width; in calculate_video_dma_grab_packed() local 716 width, height, v4l2_field_names[field]); in calculate_video_dma_grab_packed() 721 vdma1.pitch = (width*depth*2)/8; in calculate_video_dma_grab_packed() [all …]
|
/linux-4.4.14/drivers/hwtracing/stm/ |
D | core.c | 214 unsigned int end, unsigned int width) in find_free_channels() argument 219 for (pos = start; pos < end + 1; pos = ALIGN(pos, width)) { in find_free_channels() 221 if (pos + width > end + 1) in find_free_channels() 224 if (pos & (width - 1)) in find_free_channels() 227 for (i = 1; i < width && !test_bit(pos + i, bitmap); i++) in find_free_channels() 229 if (i == width) in find_free_channels() 237 stm_find_master_chan(struct stm_device *stm, unsigned int width, in stm_find_master_chan() argument 258 width); in stm_find_master_chan() 270 static int stm_output_assign(struct stm_device *stm, unsigned int width, in stm_output_assign() argument 277 if (width > stm->data->sw_nchannels) in stm_output_assign() [all …]
|
/linux-4.4.14/arch/mips/boot/dts/netlogic/ |
D | xlp_svp.dts | 24 reg-io-width = <4>; 34 reg-io-width = <4>; 45 reg-io-width = <4>; 56 reg-io-width = <4>; 83 bank-width = <2>;
|
D | xlp_fvp.dts | 24 reg-io-width = <4>; 34 reg-io-width = <4>; 45 reg-io-width = <4>; 56 reg-io-width = <4>; 83 bank-width = <2>;
|
D | xlp_evp.dts | 24 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.4.14/Documentation/devicetree/bindings/timer/ |
D | cadence,ttc-timer.txt | 10 - timer-width: Bit width of the timer, necessary if not 16. 20 timer-width = <32>;
|
/linux-4.4.14/drivers/staging/fsl-mc/include/ |
D | mc-cmd.h | 40 static inline u64 mc_enc(int lsoffset, int width, u64 val) in mc_enc() argument 42 return (u64)(((u64)val & MAKE_UMASK64(width)) << lsoffset); in mc_enc() 45 static inline u64 mc_dec(u64 val, int lsoffset, int width) in mc_dec() argument 47 return (u64)((val >> lsoffset) & MAKE_UMASK64(width)); in mc_dec()
|
/linux-4.4.14/drivers/video/fbdev/core/ |
D | sysimgblt.c | 65 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()
|
D | cfbimgblt.c | 91 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.4.14/drivers/staging/sm750fb/ |
D | sm750_accel.c | 94 u32 x, u32 y, u32 width, u32 height, in hw_fillrect() argument 123 FIELD_VALUE(0, DE_DIMENSION, X, width)| in hw_fillrect() 149 unsigned int width, in hw_copyarea() argument 214 sx += width - 1; in hw_copyarea() 216 dx += width - 1; in hw_copyarea() 267 FIELD_VALUE(0, DE_DIMENSION, X, width) | in hw_copyarea() 307 u32 width, in hw_imageblit() argument 321 ulBytesPerScan = (width + startBit + 7) / 8; in hw_imageblit() 366 FIELD_VALUE(0, DE_DIMENSION, X, width) | in hw_imageblit()
|
/linux-4.4.14/drivers/gpu/drm/cirrus/ |
D | cirrus_fbdev.c | 21 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() 177 mode_cmd.width = sizes->surface_width; in cirrusfb_create() 179 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7) / 8); in cirrusfb_create()
|
/linux-4.4.14/drivers/media/platform/davinci/ |
D | vpif.c | 54 .width = 720, 71 .width = 720, 88 .width = 1280, 105 .width = 1280, 122 .width = 1920, 142 .width = 1920, 162 .width = 1920, 181 .width = 720, 201 .width = 720,
|
/linux-4.4.14/Documentation/devicetree/bindings/spi/ |
D | spi_oc_tiny.txt | 8 - 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.4.14/Documentation/devicetree/bindings/media/ |
D | sh_mobile_ceu.txt | 6 - renesas,max-width: maximum image width, supported on this SoC 16 renesas,max-width = <8188>;
|
/linux-4.4.14/tools/vm/ |
D | slabinfo-gnuplot.sh | 34 width=1500 83 if [ $((width / lines)) -gt $min_slab_name_size ]; then 91 set terminal png enhanced size $width,$height large 133 set terminal png enhanced size $width,$height large 198 width=${array[0]}
|
/linux-4.4.14/drivers/video/fbdev/omap2/dss/ |
D | dispc.c | 80 u16 width, u16 height, u16 out_width, u16 out_height, 85 u16 width, u16 height, u16 out_width, u16 out_height, 758 static void dispc_ovl_set_input_size(enum omap_plane plane, int width, in dispc_ovl_set_input_size() argument 761 u32 val = FLD_VAL(height - 1, 26, 16) | FLD_VAL(width - 1, 10, 0); in dispc_ovl_set_input_size() 769 static void dispc_ovl_set_output_size(enum omap_plane plane, int width, in dispc_ovl_set_output_size() argument 776 val = FLD_VAL(height - 1, 26, 16) | FLD_VAL(width - 1, 10, 0); in dispc_ovl_set_output_size() 1128 static void dispc_mgr_set_size(enum omap_channel channel, u16 width, in dispc_mgr_set_size() argument 1134 FLD_VAL(width - 1, dispc.feat->mgr_width_start, 0); in dispc_mgr_set_size() 1822 u16 width, u16 height, in calc_vrfb_rotation_offset() argument 1848 width, height); in calc_vrfb_rotation_offset() [all …]
|
/linux-4.4.14/drivers/media/usb/gspca/m5602/ |
D | m5602_po1030.c | 180 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.4.14/drivers/clk/h8300/ |
D | clk-div.c | 21 int width; in h8300_div_clk_setup() local 40 of_property_read_u32(node, "renesas,width", &width); in h8300_div_clk_setup() 42 CLK_SET_RATE_GATE, divcr, offset, width, in h8300_div_clk_setup()
|
/linux-4.4.14/drivers/media/platform/s5p-g2d/ |
D | g2d.c | 69 .width = DEFAULT_WIDTH, 329 f->fmt.pix.width = frm->width; in vidioc_g_fmt() 333 f->fmt.pix.bytesperline = (frm->width * frm->fmt->depth) >> 3; in vidioc_g_fmt() 353 if (f->fmt.pix.width > MAX_WIDTH) in vidioc_try_fmt() 354 f->fmt.pix.width = MAX_WIDTH; in vidioc_try_fmt() 358 if (f->fmt.pix.width < 1) in vidioc_try_fmt() 359 f->fmt.pix.width = 1; in vidioc_try_fmt() 363 f->fmt.pix.bytesperline = (f->fmt.pix.width * fmt->depth) >> 3; in vidioc_try_fmt() 393 frm->width = f->fmt.pix.width; in vidioc_s_fmt() 399 frm->c_width = frm->width; in vidioc_s_fmt() [all …]
|
/linux-4.4.14/Documentation/devicetree/bindings/regulator/ |
D | anatop-regulator.txt | 7 - 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 31 anatop-vol-bit-width = <5>; 34 anatop-delay-bit-width = <2>;
|
/linux-4.4.14/drivers/media/pci/dt3155/ |
D | dt3155.c | 141 unsigned size = pd->width * pd->height; in dt3155_queue_setup() 157 vb2_set_plane_payload(vb, 0, pd->width * pd->height); in dt3155_buf_prepare() 170 iowrite32(dma_addr + pd->width, pd->regs + ODD_DMA_START); in dt3155_start_streaming() 171 iowrite32(pd->width, pd->regs + EVEN_DMA_STRIDE); in dt3155_start_streaming() 172 iowrite32(pd->width, pd->regs + ODD_DMA_STRIDE); in dt3155_start_streaming() 284 iowrite32(dma_addr + ipd->width, ipd->regs + ODD_DMA_START); in dt3155_irq_handler_even() 285 iowrite32(ipd->width, ipd->regs + EVEN_DMA_STRIDE); in dt3155_irq_handler_even() 286 iowrite32(ipd->width, ipd->regs + ODD_DMA_STRIDE); in dt3155_irq_handler_even() 335 f->fmt.pix.width = pd->width; in dt3155_fmt_vid_cap() 339 f->fmt.pix.bytesperline = f->fmt.pix.width; in dt3155_fmt_vid_cap() [all …]
|
/linux-4.4.14/drivers/gpu/drm/mgag200/ |
D | mgag200_fb.c | 23 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() 173 mode_cmd.width = sizes->surface_width; in mgag200fb_create() 175 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7) / 8); in mgag200fb_create() 229 fb->width, fb->height); in mgag200fb_create()
|
/linux-4.4.14/drivers/media/usb/au0828/ |
D | au0828-input.c | 129 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.4.14/Documentation/devicetree/bindings/gpio/ |
D | gpio-xilinx.txt | 21 - 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>;
|