/drivers/media/common/saa7146/ |
D | saa7146_hlp.c | 457 vdma2->pitch = 0x00; in calculate_clipping_registers_rect() 514 saa7146_write(dev, PITCH2, vdma2.pitch); in saa7146_set_clipping_rect() 581 vdma1.pitch = 2*b_bpl; in saa7146_set_position() 583 vdma1.base_even = base + (w_y * (vdma1.pitch/2)) + (w_x * (b_depth / 8)); in saa7146_set_position() 584 vdma1.base_odd = vdma1.base_even + (vdma1.pitch / 2); in saa7146_set_position() 585 vdma1.prot_addr = vdma1.base_even + (w_height * (vdma1.pitch / 2)); in saa7146_set_position() 588 vdma1.base_even = base + ((w_y+w_height) * (vdma1.pitch/2)) + (w_x * (b_depth / 8)); in saa7146_set_position() 589 vdma1.base_odd = vdma1.base_even - (vdma1.pitch / 2); in saa7146_set_position() 590 vdma1.prot_addr = vdma1.base_odd - (w_height * (vdma1.pitch / 2)); in saa7146_set_position() 597 vdma1.pitch /= 2; in saa7146_set_position() [all …]
|
/drivers/video/via/ |
D | via_modesetting.c | 155 void via_set_primary_pitch(u32 pitch) in via_set_primary_pitch() argument 157 DEBUG_MSG(KERN_DEBUG "via_set_primary_pitch(0x%08X)\n", pitch); in via_set_primary_pitch() 161 pitch = pitch >> 3; in via_set_primary_pitch() 162 via_write_reg(VIACR, 0x13, pitch & 0xFF); in via_set_primary_pitch() 163 via_write_reg_mask(VIACR, 0x35, (pitch >> (8 - 5)) & 0xE0, 0xE0); in via_set_primary_pitch() 166 void via_set_secondary_pitch(u32 pitch) in via_set_secondary_pitch() argument 168 DEBUG_MSG(KERN_DEBUG "via_set_secondary_pitch(0x%08X)\n", pitch); in via_set_secondary_pitch() 169 pitch = pitch >> 3; in via_set_secondary_pitch() 170 via_write_reg(VIACR, 0x66, pitch & 0xFF); in via_set_secondary_pitch() 171 via_write_reg_mask(VIACR, 0x67, (pitch >> 8) & 0x03, 0x03); in via_set_secondary_pitch() [all …]
|
D | via_modesetting.h | 56 void via_set_primary_pitch(u32 pitch); 57 void via_set_secondary_pitch(u32 pitch);
|
/drivers/gpu/drm/qxl/ |
D | qxl_dumb.c | 40 uint32_t pitch, format; in qxl_mode_dumb_create() local 41 pitch = args->width * ((args->bpp + 1) / 8); in qxl_mode_dumb_create() 42 args->size = pitch * args->height; in qxl_mode_dumb_create() 58 surf.stride = pitch; in qxl_mode_dumb_create() 66 args->pitch = pitch; in qxl_mode_dumb_create()
|
/drivers/gpu/drm/nouveau/core/subdev/fb/ |
D | nv10.c | 47 nv10_fb_tile_init(struct nouveau_fb *pfb, int i, u32 addr, u32 size, u32 pitch, in nv10_fb_tile_init() argument 52 tile->pitch = pitch; in nv10_fb_tile_init() 60 tile->pitch = 0; in nv10_fb_tile_fini() 68 nv_wr32(pfb, 0x100248 + (i * 0x10), tile->pitch); in nv10_fb_tile_prog()
|
D | nv20.c | 51 nv20_fb_tile_init(struct nouveau_fb *pfb, int i, u32 addr, u32 size, u32 pitch, in nv20_fb_tile_init() argument 56 tile->pitch = pitch; in nv20_fb_tile_init() 85 tile->pitch = 0; in nv20_fb_tile_fini() 94 nv_wr32(pfb, 0x100248 + (i * 0x10), tile->pitch); in nv20_fb_tile_prog()
|
D | nv44.c | 49 nv44_fb_tile_init(struct nouveau_fb *pfb, int i, u32 addr, u32 size, u32 pitch, in nv44_fb_tile_init() argument 55 tile->pitch = pitch; in nv44_fb_tile_init() 62 nv_wr32(pfb, 0x100608 + (i * 0x10), tile->pitch); in nv44_fb_tile_prog()
|
D | nv46.c | 34 nv46_fb_tile_init(struct nouveau_fb *pfb, int i, u32 addr, u32 size, u32 pitch, in nv46_fb_tile_init() argument 44 tile->pitch = pitch; in nv46_fb_tile_init()
|
D | nv30.c | 34 nv30_fb_tile_init(struct nouveau_fb *pfb, int i, u32 addr, u32 size, u32 pitch, in nv30_fb_tile_init() argument 49 tile->pitch = pitch; in nv30_fb_tile_init()
|
/drivers/gpu/drm/nouveau/core/include/subdev/ |
D | fb.h | 47 u32 pitch; member 89 u32 pitch, u32 flags, struct nouveau_fb_tile *); 141 u32 pitch, u32 flags, struct nouveau_fb_tile *); 147 u32 pitch, u32 flags, struct nouveau_fb_tile *); 153 u32 pitch, u32 flags, struct nouveau_fb_tile *); 167 u32 pitch, u32 flags, struct nouveau_fb_tile *);
|
/drivers/gpu/drm/omapdrm/ |
D | omap_fb.c | 80 uint32_t pitch; member 148 (y * plane->pitch / format->planes[n].sub_y); in get_linear_addr() 219 info->screen_width = plane->pitch; in omap_framebuffer_update_scanout() 365 i, plane->offset, plane->pitch); in omap_framebuffer_describe() 430 int size, pitch = mode_cmd->pitches[i]; in omap_framebuffer_init() local 432 if (pitch < (mode_cmd->width * format->planes[i].stride_bpp)) { in omap_framebuffer_init() 434 pitch, mode_cmd->width * format->planes[i].stride_bpp); in omap_framebuffer_init() 439 size = pitch * mode_cmd->height / format->planes[i].sub_y; in omap_framebuffer_init() 450 plane->pitch = pitch; in omap_framebuffer_init()
|
D | omap_drv.h | 263 static inline int align_pitch(int pitch, int width, int bpp) in align_pitch() argument 267 pitch = max(pitch, width * bytespp); in align_pitch() 271 return ALIGN(pitch, 8 * bytespp); in align_pitch()
|
/drivers/video/console/ |
D | fbcon_rotate.h | 23 static inline int pattern_test_bit(u32 x, u32 y, u32 pitch, const char *pat) in pattern_test_bit() argument 25 u32 tmp = (y * pitch) + x, index = tmp / 8, bit = tmp % 8; in pattern_test_bit() 31 static inline void pattern_set_bit(u32 x, u32 y, u32 pitch, char *pat) in pattern_set_bit() argument 33 u32 tmp = (y * pitch) + x, index = tmp / 8, bit = tmp % 8; in pattern_set_bit()
|
/drivers/gpu/drm/vmwgfx/ |
D | svga3d_surfacedefs.h | 771 u32 pitch; in svga3dsurface_calculate_pitch() local 776 pitch = blocks.width * desc->pitch_bytes_per_block; in svga3dsurface_calculate_pitch() 778 return pitch; in svga3dsurface_calculate_pitch() 806 u32 pitch) in svga3dsurface_get_image_buffer_size() argument 821 if (pitch == 0) in svga3dsurface_get_image_buffer_size() 822 pitch = svga3dsurface_calculate_pitch(desc, size); in svga3dsurface_get_image_buffer_size() 824 slice_size = clamped_umul32(image_blocks.height, pitch); in svga3dsurface_get_image_buffer_size()
|
/drivers/media/pci/saa7164/ |
D | saa7164-buffer.c | 115 buf->actual_size = params->pitch * params->numberoflines; in saa7164_buffer_alloc() 246 saa7164_writel(port->pitch, params->pitch); in saa7164_buffer_cfg_port() 247 saa7164_writel(port->bufsize, params->pitch * params->numberoflines); in saa7164_buffer_cfg_port() 254 dprintk(DBGLVL_BUF, " pitch 0x%x = %d\n", port->pitch, in saa7164_buffer_cfg_port() 255 saa7164_readl(port->pitch)); in saa7164_buffer_cfg_port()
|
/drivers/video/i810/ |
D | i810_accel.c | 195 static inline void color_blit(int width, int height, int pitch, int dest, in color_blit() argument 204 PUT_RING(rop << 16 | pitch | SOLIDPATTERN | DYN_COLOR_EN | blit_bpp); in color_blit() 269 PUT_RING(PARSER | FRONT_BUFFER | ((par->pitch >> 3) << 8)); in load_front() 329 u32 sx, sy, dx, dy, pitch, width, height, src, dest, xdir; in i810fb_copyarea() local 353 pitch = info->fix.line_length; in i810fb_copyarea() 356 pitch = (-(info->fix.line_length)) & 0xFFFF; in i810fb_copyarea() 363 source_copy_blit(width, height, pitch, xdir, src, dest, in i810fb_copyarea()
|
/drivers/video/aty/ |
D | radeon_accel.c | 36 OUTREG(DEFAULT_PITCH_OFFSET, (rinfo->pitch << 0x16) | in radeon_fixup_offset() 38 OUTREG(DST_PITCH_OFFSET, (rinfo->pitch << 0x16) | (rinfo->fb_local_base >> 10)); in radeon_fixup_offset() 39 OUTREG(SRC_PITCH_OFFSET, (rinfo->pitch << 0x16) | (rinfo->fb_local_base >> 10)); in radeon_fixup_offset() 286 OUTREG(DEFAULT_PITCH_OFFSET, (rinfo->pitch << 0x16) | in radeonfb_engine_init() 288 OUTREG(DST_PITCH_OFFSET, (rinfo->pitch << 0x16) | (rinfo->fb_local_base >> 10)); in radeonfb_engine_init() 289 OUTREG(SRC_PITCH_OFFSET, (rinfo->pitch << 0x16) | (rinfo->fb_local_base >> 10)); in radeonfb_engine_init()
|
/drivers/video/ |
D | valkyriefb.c | 257 int pitch; in valkyrie_vram_reqd() local 260 if ((pitch = init->pitch[color_mode]) == 0) in valkyrie_vram_reqd() 261 pitch = 2 * init->pitch[0]; in valkyrie_vram_reqd() 262 return init->vres * pitch; in valkyrie_vram_reqd() 308 || valkyrie_reg_init[default_vmode-1]->pitch[default_cmode] == 0 in valkyrie_choose_mode() 494 if (init->pitch[cmode] == 0) { in valkyrie_var_to_par()
|
D | offb.c | 388 int pitch, unsigned long address, in offb_init_fb() argument 391 unsigned long res_size = pitch * height; in offb_init_fb() 403 width, height, name, address, depth, pitch); in offb_init_fb() 428 fix->line_length = pitch; in offb_init_fb() 431 fix->smem_len = pitch * height; in offb_init_fb() 535 int i, width = 640, height = 480, depth = 8, pitch = 640; in offb_init_nodriver() local 573 pitch = *pp; in offb_init_nodriver() 575 pitch = width * ((depth + 7) / 8); in offb_init_nodriver() 577 rsize = (unsigned long)pitch * (unsigned long)height; in offb_init_nodriver() 634 width, height, depth, pitch, address, in offb_init_nodriver()
|
/drivers/gpu/drm/i810/ |
D | i810_dma.c | 383 dev_priv->pitch = init->pitch; in i810_dma_initialize() 597 int pitch = dev_priv->pitch; in i810_dma_dispatch_clear() local 622 unsigned int start = y * pitch + x * cpp; in i810_dma_dispatch_clear() 632 OUT_RING(BR13_SOLID_PATTERN | (0xF0 << 16) | pitch); in i810_dma_dispatch_clear() 643 OUT_RING(BR13_SOLID_PATTERN | (0xF0 << 16) | pitch); in i810_dma_dispatch_clear() 654 OUT_RING(BR13_SOLID_PATTERN | (0xF0 << 16) | pitch); in i810_dma_dispatch_clear() 670 int pitch = dev_priv->pitch; in i810_dma_dispatch_swap() local 685 unsigned int dst = pbox->x1 * cpp + pbox->y1 * pitch; in i810_dma_dispatch_swap() 695 OUT_RING(pitch | (0xCC << 16)); in i810_dma_dispatch_swap() 701 OUT_RING(pitch); in i810_dma_dispatch_swap() [all …]
|
/drivers/gpu/drm/ |
D | drm_gem_cma_helper.c | 169 if (args->pitch < min_pitch) in drm_gem_cma_dumb_create() 170 args->pitch = min_pitch; in drm_gem_cma_dumb_create() 172 if (args->size < args->pitch * args->height) in drm_gem_cma_dumb_create() 173 args->size = args->pitch * args->height; in drm_gem_cma_dumb_create()
|
/drivers/video/adf/ |
D | adf_fbdev.c | 212 fbdev->info->var.yoffset * fbdev->pitch + in adf_fbdev_post() 215 buf.pitch[0] = fbdev->pitch; in adf_fbdev_post() 256 &fbdev->dma_buf, &fbdev->offset, &fbdev->pitch); in adf_fb_alloc() 268 fbdev->info->fix.line_length = fbdev->pitch; in adf_fb_alloc() 425 u32 pitch = var->xres_virtual * var->bits_per_pixel / 8; in adf_fbdev_check_var() local 453 if (valid_format && pitch > fbdev->pitch) { in adf_fbdev_check_var() 455 __func__, fbdev->pitch, var->xres_virtual, in adf_fbdev_check_var()
|
/drivers/gpu/host1x/drm/ |
D | gem.c | 200 if (args->pitch < min_pitch) in tegra_bo_dumb_create() 201 args->pitch = min_pitch; in tegra_bo_dumb_create() 203 if (args->size < args->pitch * args->height) in tegra_bo_dumb_create() 204 args->size = args->pitch * args->height; in tegra_bo_dumb_create()
|
/drivers/gpu/drm/radeon/ |
D | radeon_object.c | 442 radeon_set_surface_reg(rdev, i, bo->tiling_flags, bo->pitch, in radeon_bo_get_surface_reg() 464 uint32_t tiling_flags, uint32_t pitch) in radeon_bo_set_tiling_flags() argument 518 bo->pitch = pitch; in radeon_bo_set_tiling_flags() 525 uint32_t *pitch) in radeon_bo_get_tiling_flags() argument 530 if (pitch) in radeon_bo_get_tiling_flags() 531 *pitch = bo->pitch; in radeon_bo_get_tiling_flags()
|
D | r100_track.h | 14 unsigned pitch; member 38 unsigned pitch; member
|