| /linux/drivers/media/common/saa7146/ |
| H A D | saa7146_hlp.c | 391 saa7146_write(dev, where+0x0c, vdma->pitch); in saa7146_write_out_dma() 425 vdma1.pitch = bytesperline*2; in calculate_video_dma_grab_packed() 427 vdma1.pitch = (width*depth*2)/8; in calculate_video_dma_grab_packed() 434 vdma1.base_even = buf->pt[0].offset+(vdma1.pitch/2)*height; in calculate_video_dma_grab_packed() 435 vdma1.base_odd = vdma1.base_even - (vdma1.pitch/2); in calculate_video_dma_grab_packed() 438 vdma1.base_odd = vdma1.base_even + (vdma1.pitch/2); in calculate_video_dma_grab_packed() 439 vdma1.prot_addr = buf->pt[0].offset+(vdma1.pitch/2)*height; in calculate_video_dma_grab_packed() 447 vdma1.pitch /= 2; in calculate_video_dma_grab_packed() 451 vdma1.pitch /= 2; in calculate_video_dma_grab_packed() 455 vdma1.pitch /= 2; in calculate_video_dma_grab_packed() [all …]
|
| /linux/drivers/video/fbdev/via/ |
| H A D | via_modesetting.c | 140 void via_set_primary_pitch(u32 pitch) in via_set_primary_pitch() argument 142 DEBUG_MSG(KERN_DEBUG "via_set_primary_pitch(0x%08X)\n", pitch); in via_set_primary_pitch() 146 pitch = pitch >> 3; in via_set_primary_pitch() 147 via_write_reg(VIACR, 0x13, pitch & 0xFF); in via_set_primary_pitch() 148 via_write_reg_mask(VIACR, 0x35, (pitch >> (8 - 5)) & 0xE0, 0xE0); in via_set_primary_pitch() 151 void via_set_secondary_pitch(u32 pitch) in via_set_secondary_pitch() argument 153 DEBUG_MSG(KERN_DEBUG "via_set_secondary_pitch(0x%08X)\n", pitch); in via_set_secondary_pitch() 154 pitch = pitch >> 3; in via_set_secondary_pitch() 155 via_write_reg(VIACR, 0x66, pitch & 0xFF); in via_set_secondary_pitch() 156 via_write_reg_mask(VIACR, 0x67, (pitch >> 8) & 0x03, 0x03); in via_set_secondary_pitch() [all …]
|
| /linux/drivers/gpu/drm/qxl/ |
| H A D | qxl_dumb.c | 41 uint32_t pitch, format; in qxl_mode_dumb_create() local 43 pitch = args->width * ((args->bpp + 1) / 8); in qxl_mode_dumb_create() 44 args->size = pitch * args->height; in qxl_mode_dumb_create() 60 surf.stride = pitch; in qxl_mode_dumb_create() 73 args->pitch = pitch; in qxl_mode_dumb_create()
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
| H A D | nv10.c | 30 nv10_fb_tile_init(struct nvkm_fb *fb, int i, u32 addr, u32 size, u32 pitch, in nv10_fb_tile_init() argument 35 tile->pitch = pitch; in nv10_fb_tile_init() 43 tile->pitch = 0; in nv10_fb_tile_fini() 52 nvkm_wr32(device, 0x100248 + (i * 0x10), tile->pitch); in nv10_fb_tile_prog()
|
| H A D | nv20.c | 30 nv20_fb_tile_init(struct nvkm_fb *fb, int i, u32 addr, u32 size, u32 pitch, in nv20_fb_tile_init() argument 35 tile->pitch = pitch; in nv20_fb_tile_init() 64 tile->pitch = 0; in nv20_fb_tile_fini() 74 nvkm_wr32(device, 0x100248 + (i * 0x10), tile->pitch); in nv20_fb_tile_prog()
|
| H A D | nv44.c | 30 nv44_fb_tile_init(struct nvkm_fb *fb, int i, u32 addr, u32 size, u32 pitch, in nv44_fb_tile_init() argument 36 tile->pitch = pitch; in nv44_fb_tile_init() 44 nvkm_wr32(device, 0x100608 + (i * 0x10), tile->pitch); in nv44_fb_tile_prog()
|
| H A D | nv46.c | 30 nv46_fb_tile_init(struct nvkm_fb *fb, int i, u32 addr, u32 size, u32 pitch, in nv46_fb_tile_init() argument 40 tile->pitch = pitch; in nv46_fb_tile_init()
|
| /linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
| H A D | nv44.c | 44 nvkm_wr32(device, NV20_PGRAPH_TSIZE(i), tile->pitch); in nv44_gr_tile() 53 nvkm_wr32(device, NV47_PGRAPH_TSIZE(i), tile->pitch); in nv44_gr_tile() 56 nvkm_wr32(device, NV40_PGRAPH_TSIZE1(i), tile->pitch); in nv44_gr_tile() 61 nvkm_wr32(device, NV20_PGRAPH_TSIZE(i), tile->pitch); in nv44_gr_tile() 64 nvkm_wr32(device, NV40_PGRAPH_TSIZE1(i), tile->pitch); in nv44_gr_tile()
|
| /linux/drivers/gpu/drm/tests/ |
| H A D | drm_format_helper_test.c | 105 unsigned int pitch; member 128 .pitch = 1 * 4, 195 .pitch = 2 * 4, 269 .pitch = 4 * 4, 423 .pitch = 3 * 4, 653 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_gray8() 686 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_rgb332() 719 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_rgb565() 768 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_xrgb1555() 809 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_argb1555() [all …]
|
| /linux/sound/pci/ctxfi/ |
| H A D | ctatc.c | 200 unsigned int pitch; in atc_get_pitch() local 204 pitch = (input_rate / output_rate) << 24; in atc_get_pitch() 220 pitch |= input_rate; in atc_get_pitch() 223 return pitch; in atc_get_pitch() 226 static int select_rom(unsigned int pitch) in select_rom() argument 228 if (pitch > 0x00428f5c && pitch < 0x01b851ec) { in select_rom() 231 } else if (pitch == 0x01d66666 || pitch == 0x01d66667) { in select_rom() 234 } else if (pitch == 0x02000000) { in select_rom() 237 } else if (pitch <= 0x08000000) { in select_rom() 256 unsigned int pitch; in atc_pcm_playback_prepare() local [all …]
|
| /linux/arch/powerpc/kernel/ |
| H A D | btext.c | 109 void __init btext_setup_display(int width, int height, int depth, int pitch, in btext_setup_display() argument 118 dispDeviceRowBytes = pitch; in btext_setup_display() 164 unsigned int width, height, depth, pitch; in btext_initialize() local 186 pitch = width * ((depth + 7) / 8); in btext_initialize() 191 pitch = *prop; in btext_initialize() 192 if (pitch == 1) in btext_initialize() 193 pitch = 0x1000; in btext_initialize() 211 dispDeviceRowBytes = pitch; in btext_initialize() 265 int depth, int pitch) in btext_update_display() argument 280 dispDeviceRowBytes = pitch; in btext_update_display()
|
| /linux/sound/core/oss/ |
| H A D | rate.c | 31 unsigned int pitch; member 99 pos += data->pitch; in resample_expand() 159 pos += data->pitch; in resample_shrink() 179 res = (((frames * data->pitch) + (BITS/2)) >> SHIFT); in rate_src_frames() 181 res = DIV_ROUND_CLOSEST(frames << SHIFT, data->pitch); in rate_src_frames() 212 res = DIV_ROUND_CLOSEST(frames << SHIFT, data->pitch); in rate_dst_frames() 214 res = (((frames * data->pitch) + (BITS/2)) >> SHIFT); in rate_dst_frames() 318 data->pitch = ((src_format->rate << SHIFT) + (dst_format->rate >> 1)) / dst_format->rate; in snd_pcm_plugin_build_rate() 321 data->pitch = ((dst_format->rate << SHIFT) + (src_format->rate >> 1)) / src_format->rate; in snd_pcm_plugin_build_rate()
|
| /linux/sound/pci/emu10k1/ |
| H A D | emu10k1_callback.c | 488 short pitch; in make_fmmod() local 492 pitch = (char)(vp->reg.parm.fmmod>>8); in make_fmmod() 495 pitch += (MOD_SENSE * modulation) / 1200; in make_fmmod() 496 LIMITVALUE(pitch, -128, 127); in make_fmmod() 497 return ((unsigned char)pitch << 8) | cutoff; in make_fmmod() 504 short pitch; in make_fm2frq2() local 508 pitch = (char)(vp->reg.parm.fm2frq2>>8); in make_fm2frq2() 511 pitch += (MOD_SENSE * modulation) / 1200; in make_fm2frq2() 512 LIMITVALUE(pitch, -128, 127); in make_fm2frq2() 513 return ((unsigned char)pitch << 8) | freq; in make_fm2frq2()
|
| /linux/arch/sparc/kernel/ |
| H A D | btext.c | 42 unsigned int width, height, depth, pitch; in btext_initialize() local 52 pitch = width * ((depth + 7) / 8); in btext_initialize() 56 pitch = prop; in btext_initialize() 58 if (pitch == 1) in btext_initialize() 59 pitch = 0x1000; in btext_initialize() 75 dispDeviceRowBytes = pitch; in btext_initialize()
|
| /linux/sound/isa/sb/ |
| H A D | emu8000_callback.c | 373 short pitch; in set_fmmod() local 377 pitch = (char)(vp->reg.parm.fmmod>>8); in set_fmmod() 380 pitch += (MOD_SENSE * modulation) / 1200; in set_fmmod() 381 LIMITVALUE(pitch, -128, 127); in set_fmmod() 382 fmmod = ((unsigned char)pitch<<8) | cutoff; in set_fmmod() 398 short pitch; in set_fm2frq2() local 402 pitch = (char)(vp->reg.parm.fm2frq2>>8); in set_fm2frq2() 405 pitch += (MOD_SENSE * modulation) / 1200; in set_fm2frq2() 406 LIMITVALUE(pitch, -128, 127); in set_fm2frq2() 407 fm2frq2 = ((unsigned char)pitch<<8) | freq; in set_fm2frq2()
|
| H A D | emu8000_pcm.c | 49 unsigned int pitch; member 257 static int calc_pitch_target(int pitch) in calc_pitch_target() argument 259 int ptarget = 1 << (pitch >> 12); in calc_pitch_target() 260 if (pitch & 0x800) ptarget += (ptarget * 0x102e) / 0x2710; in calc_pitch_target() 261 if (pitch & 0x400) ptarget += (ptarget * 0x764) / 0x2710; in calc_pitch_target() 262 if (pitch & 0x200) ptarget += (ptarget * 0x389) / 0x2710; in calc_pitch_target() 284 EMU8000_IP_WRITE(hw, ch, rec->pitch); in setup_voice() 328 int pt = calc_pitch_target(rec->pitch); in start_voice() 566 rec->pitch = 0xe000 + calc_rate_offset(subs->runtime->rate); in emu8k_pcm_prepare()
|
| /linux/drivers/media/pci/saa7164/ |
| H A D | saa7164-buffer.c | 79 buf->actual_size = params->pitch * params->numberoflines; in saa7164_buffer_alloc() 211 saa7164_writel(port->pitch, params->pitch); in saa7164_buffer_cfg_port() 212 saa7164_writel(port->bufsize, params->pitch * params->numberoflines); in saa7164_buffer_cfg_port() 219 dprintk(DBGLVL_BUF, " pitch 0x%x = %d\n", port->pitch, in saa7164_buffer_cfg_port() 220 saa7164_readl(port->pitch)); in saa7164_buffer_cfg_port()
|
| /linux/drivers/gpu/drm/tiny/ |
| H A D | sharp-memory.c | 75 u32 pitch; member 120 u32 pitch) in sharp_memory_set_tx_buffer_addresses() argument 123 buffer[line * pitch] = line + 1; in sharp_memory_set_tx_buffer_addresses() 130 u32 pitch, in sharp_memory_set_tx_buffer_data() argument 142 drm_fb_xrgb8888_to_mono(&dst, &pitch, vmap, fb, &clip, fmtcnv_state); in sharp_memory_set_tx_buffer_data() 154 u32 pitch = smd->pitch; in sharp_memory_update_display() local 164 sharp_memory_set_tx_buffer_addresses(&tx_buffer[1], clip, pitch); in sharp_memory_update_display() 165 sharp_memory_set_tx_buffer_data(&tx_buffer[2], fb, vmap, clip, pitch, fmtcnv_state); in sharp_memory_update_display() 561 smd->pitch = (SHARP_ADDR_PERIOD + smd->mode->hdisplay + SHARP_DUMMY_PERIOD) / 8; in sharp_memory_probe()
|
| /linux/drivers/video/fbdev/aty/ |
| H A D | radeon_accel.c | 37 OUTREG(DEFAULT_PITCH_OFFSET, (rinfo->pitch << 0x16) | in radeon_fixup_offset() 39 OUTREG(DST_PITCH_OFFSET, (rinfo->pitch << 0x16) | (rinfo->fb_local_base >> 10)); in radeon_fixup_offset() 40 OUTREG(SRC_PITCH_OFFSET, (rinfo->pitch << 0x16) | (rinfo->fb_local_base >> 10)); in radeon_fixup_offset() 287 OUTREG(DEFAULT_PITCH_OFFSET, (rinfo->pitch << 0x16) | in radeonfb_engine_init() 289 OUTREG(DST_PITCH_OFFSET, (rinfo->pitch << 0x16) | (rinfo->fb_local_base >> 10)); in radeonfb_engine_init() 290 OUTREG(SRC_PITCH_OFFSET, (rinfo->pitch << 0x16) | (rinfo->fb_local_base >> 10)); in radeonfb_engine_init()
|
| /linux/drivers/video/fbdev/i810/ |
| H A 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()
|
| /linux/drivers/video/fbdev/ |
| H A D | valkyriefb.c | 243 int pitch; in valkyrie_vram_reqd() local 246 if ((pitch = init->pitch[color_mode]) == 0) in valkyrie_vram_reqd() 247 pitch = 2 * init->pitch[0]; in valkyrie_vram_reqd() 248 return init->vres * pitch; in valkyrie_vram_reqd() 291 || valkyrie_reg_init[default_vmode-1]->pitch[default_cmode] == 0 in valkyrie_choose_mode() 482 if (init->pitch[cmode] == 0) { in valkyrie_var_to_par()
|
| /linux/arch/powerpc/include/asm/ |
| H A D | btext.h | 13 int depth, int pitch); 14 extern void btext_setup_display(int width, int height, int depth, int pitch,
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | vmw_surface_cache.h | 98 u32 pitch; in vmw_surface_calculate_pitch() local 103 pitch = blocks.width * desc->pitchBytesPerBlock; in vmw_surface_calculate_pitch() 105 return pitch; in vmw_surface_calculate_pitch() 122 u32 pitch) in vmw_surface_get_image_buffer_size() argument 137 if (pitch == 0) in vmw_surface_get_image_buffer_size() 138 pitch = vmw_surface_calculate_pitch(desc, size); in vmw_surface_get_image_buffer_size() 140 slice_size = clamped_umul32(image_blocks.height, pitch); in vmw_surface_get_image_buffer_size()
|
| /linux/drivers/media/platform/sunxi/sun8i-rotate/ |
| H A D | sun8i_rotate.c | 43 dma_addr_t *addr, u32 *pitch) in rotate_calc_addr_pitch() argument 49 pitch[i] = bytesperline; in rotate_calc_addr_pitch() 52 pitch[i] /= fmt->hsub / fmt->bpp[i]; in rotate_calc_addr_pitch() 53 size = pitch[i] * height; in rotate_calc_addr_pitch() 67 u32 val, pitch[3]; in rotate_device_run() local 94 fmt, addr, pitch); in rotate_device_run() 99 rotate_write(dev, ROTATE_IN_PITCH0, pitch[0]); in rotate_device_run() 100 rotate_write(dev, ROTATE_IN_PITCH1, pitch[1]); in rotate_device_run() 101 rotate_write(dev, ROTATE_IN_PITCH2, pitch[2]); in rotate_device_run() 117 fmt, addr, pitch); in rotate_device_run() [all …]
|
| /linux/drivers/gpu/drm/virtio/ |
| H A D | virtgpu_gem.c | 69 uint32_t pitch; in virtio_gpu_mode_dumb_create() local 74 pitch = args->width * 4; in virtio_gpu_mode_dumb_create() 75 args->size = pitch * args->height; in virtio_gpu_mode_dumb_create() 95 args->pitch = pitch; in virtio_gpu_mode_dumb_create()
|