Home
last modified time | relevance | path

Searched refs:pitch (Results 1 – 25 of 243) sorted by relevance

12345678910

/Linux-v4.19/drivers/media/common/saa7146/
Dsaa7146_hlp.c454 vdma2->pitch = 0x00; in calculate_clipping_registers_rect()
511 saa7146_write(dev, PITCH2, vdma2.pitch); in saa7146_set_clipping_rect()
578 vdma1.pitch = 2*b_bpl; in saa7146_set_position()
580 vdma1.base_even = base + (w_y * (vdma1.pitch/2)) + (w_x * (b_depth / 8)); in saa7146_set_position()
581 vdma1.base_odd = vdma1.base_even + (vdma1.pitch / 2); in saa7146_set_position()
582 vdma1.prot_addr = vdma1.base_even + (w_height * (vdma1.pitch / 2)); in saa7146_set_position()
585 vdma1.base_even = base + ((w_y+w_height) * (vdma1.pitch/2)) + (w_x * (b_depth / 8)); in saa7146_set_position()
586 vdma1.base_odd = vdma1.base_even - (vdma1.pitch / 2); in saa7146_set_position()
587 vdma1.prot_addr = vdma1.base_odd - (w_height * (vdma1.pitch / 2)); in saa7146_set_position()
594 vdma1.pitch /= 2; in saa7146_set_position()
[all …]
/Linux-v4.19/drivers/video/fbdev/via/
Dvia_modesetting.c155 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 …]
/Linux-v4.19/drivers/gpu/drm/qxl/
Dqxl_dumb.c40 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()
67 args->pitch = pitch; in qxl_mode_dumb_create()
/Linux-v4.19/drivers/staging/sm750fb/
Dsm750_cursor.c88 int i, j, count, pitch, offset; in sm750_hw_cursor_setData() local
94 pitch = cursor->w >> 3; in sm750_hw_cursor_setData()
97 count = pitch * cursor->h; in sm750_hw_cursor_setData()
125 if ((i + 1) % pitch == 0) { in sm750_hw_cursor_setData()
138 int i, j, count, pitch, offset; in sm750_hw_cursor_setData2() local
144 pitch = cursor->w >> 3; in sm750_hw_cursor_setData2()
147 count = pitch * cursor->h; in sm750_hw_cursor_setData2()
168 if (!(i & (pitch - 1))) { in sm750_hw_cursor_setData2()
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
Dnv10.c30 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()
Dpriv.h22 u32 pitch, u32 flags, struct nvkm_fb_tile *);
42 u32 pitch, u32 flags, struct nvkm_fb_tile *);
48 u32 pitch, u32 flags, struct nvkm_fb_tile *);
54 u32 pitch, u32 flags, struct nvkm_fb_tile *);
66 u32 pitch, u32 flags, struct nvkm_fb_tile *);
Dnv20.c30 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()
Dnv44.c30 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()
Dnv46.c30 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-v4.19/sound/drivers/opl4/
Dopl4_synth.c423 int note, pitch, octave; in snd_opl4_update_pitch() local
430 pitch = ((note - 60) << 7) * voice->sound->key_scaling / 100 + (60 << 7); in snd_opl4_update_pitch()
431 pitch += voice->sound->pitch_offset; in snd_opl4_update_pitch()
433 pitch += chan->gm_rpn_coarse_tuning; in snd_opl4_update_pitch()
434 pitch += chan->gm_rpn_fine_tuning >> 7; in snd_opl4_update_pitch()
435 pitch += chan->midi_pitchbend * chan->gm_rpn_pitch_bend_range / 0x2000; in snd_opl4_update_pitch()
436 if (pitch < 0) in snd_opl4_update_pitch()
437 pitch = 0; in snd_opl4_update_pitch()
438 else if (pitch >= 0x6000) in snd_opl4_update_pitch()
439 pitch = 0x5fff; in snd_opl4_update_pitch()
[all …]
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/engine/gr/
Dnv44.c44 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-v4.19/sound/core/oss/
Drate.c46 unsigned int pitch; member
114 pos += data->pitch; in resample_expand()
174 pos += data->pitch; in resample_shrink()
194 res = (((frames * data->pitch) + (BITS/2)) >> SHIFT); in rate_src_frames()
196 res = (((frames << SHIFT) + (data->pitch / 2)) / data->pitch); in rate_src_frames()
227 res = (((frames << SHIFT) + (data->pitch / 2)) / data->pitch); in rate_dst_frames()
229 res = (((frames * data->pitch) + (BITS/2)) >> SHIFT); in rate_dst_frames()
333 data->pitch = ((src_format->rate << SHIFT) + (dst_format->rate >> 1)) / dst_format->rate; in snd_pcm_plugin_build_rate()
336 data->pitch = ((dst_format->rate << SHIFT) + (src_format->rate >> 1)) / src_format->rate; in snd_pcm_plugin_build_rate()
/Linux-v4.19/sound/pci/ctxfi/
Dctatc.c198 unsigned int pitch; in atc_get_pitch() local
202 pitch = (input_rate / output_rate) << 24; in atc_get_pitch()
218 pitch |= input_rate; in atc_get_pitch()
221 return pitch; in atc_get_pitch()
224 static int select_rom(unsigned int pitch) in select_rom() argument
226 if (pitch > 0x00428f5c && pitch < 0x01b851ec) { in select_rom()
229 } else if (pitch == 0x01d66666 || pitch == 0x01d66667) { in select_rom()
232 } else if (pitch == 0x02000000) { in select_rom()
235 } else if (pitch <= 0x08000000) { in select_rom()
254 unsigned int pitch; in atc_pcm_playback_prepare() local
[all …]
/Linux-v4.19/drivers/gpu/drm/virtio/
Dvirtgpu_gem.c89 uint32_t pitch; in virtio_gpu_mode_dumb_create() local
93 pitch = args->width * ((args->bpp + 1) / 8); in virtio_gpu_mode_dumb_create()
94 args->size = pitch * args->height; in virtio_gpu_mode_dumb_create()
114 args->pitch = pitch; in virtio_gpu_mode_dumb_create()
/Linux-v4.19/arch/powerpc/kernel/
Dbtext.c120 void __init btext_setup_display(int width, int height, int depth, int pitch, in btext_setup_display() argument
129 dispDeviceRowBytes = pitch; in btext_setup_display()
175 unsigned int width, height, depth, pitch; in btext_initialize() local
197 pitch = width * ((depth + 7) / 8); in btext_initialize()
202 pitch = *prop; in btext_initialize()
203 if (pitch == 1) in btext_initialize()
204 pitch = 0x1000; in btext_initialize()
222 dispDeviceRowBytes = pitch; in btext_initialize()
282 int depth, int pitch) in btext_update_display() argument
297 dispDeviceRowBytes = pitch; in btext_update_display()
/Linux-v4.19/drivers/gpu/drm/vkms/
Dvkms_gem.c132 u64 pitch, size; in vkms_dumb_create() local
137 pitch = args->width * DIV_ROUND_UP(args->bpp, 8); in vkms_dumb_create()
138 size = pitch * args->height; in vkms_dumb_create()
148 args->pitch = pitch; in vkms_dumb_create()
/Linux-v4.19/drivers/gpu/drm/mediatek/
Dmtk_drm_plane.c119 unsigned int pitch, format; in mtk_plane_atomic_update() local
128 pitch = fb->pitches[0]; in mtk_plane_atomic_update()
132 addr += (plane->state->src.y1 >> 16) * pitch; in mtk_plane_atomic_update()
135 state->pending.pitch = pitch; in mtk_plane_atomic_update()
/Linux-v4.19/drivers/video/fbdev/core/
Dfbcon_rotate.h23 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()
/Linux-v4.19/arch/sparc/kernel/
Dbtext.c45 unsigned int width, height, depth, pitch; in btext_initialize() local
55 pitch = width * ((depth + 7) / 8); in btext_initialize()
59 pitch = prop; in btext_initialize()
61 if (pitch == 1) in btext_initialize()
62 pitch = 0x1000; in btext_initialize()
78 dispDeviceRowBytes = pitch; in btext_initialize()
/Linux-v4.19/drivers/staging/vboxvideo/
Dvbox_fb.c76 u32 pitch = mode_cmd->pitches[0]; in vboxfb_create_object() local
79 size = pitch * mode_cmd->height; in vboxfb_create_object()
101 u32 pitch; in vboxfb_create() local
105 pitch = mode_cmd.width * ((sizes->surface_bpp + 7) / 8); in vboxfb_create()
108 mode_cmd.pitches[0] = pitch; in vboxfb_create()
110 size = pitch * mode_cmd.height; in vboxfb_create()
/Linux-v4.19/sound/isa/sb/
Demu8000_callback.c386 short pitch; in set_fmmod() local
390 pitch = (char)(vp->reg.parm.fmmod>>8); in set_fmmod()
393 pitch += (MOD_SENSE * modulation) / 1200; in set_fmmod()
394 LIMITVALUE(pitch, -128, 127); in set_fmmod()
395 fmmod = ((unsigned char)pitch<<8) | cutoff; in set_fmmod()
411 short pitch; in set_fm2frq2() local
415 pitch = (char)(vp->reg.parm.fm2frq2>>8); in set_fm2frq2()
418 pitch += (MOD_SENSE * modulation) / 1200; in set_fm2frq2()
419 LIMITVALUE(pitch, -128, 127); in set_fm2frq2()
420 fm2frq2 = ((unsigned char)pitch<<8) | freq; in set_fm2frq2()
/Linux-v4.19/drivers/gpu/drm/i915/selftests/
Di915_gem_object.c356 unsigned int pitch; in igt_partial_tiling() local
404 for (pitch = max_pitch; pitch; pitch >>= 1) { in igt_partial_tiling()
405 tile.stride = tile.width * pitch; in igt_partial_tiling()
412 if (pitch > 2 && INTEL_GEN(i915) >= 4) { in igt_partial_tiling()
413 tile.stride = tile.width * (pitch - 1); in igt_partial_tiling()
421 if (pitch < max_pitch && INTEL_GEN(i915) >= 4) { in igt_partial_tiling()
422 tile.stride = tile.width * (pitch + 1); in igt_partial_tiling()
432 for_each_prime_number(pitch, max_pitch) { in igt_partial_tiling()
433 tile.stride = tile.width * pitch; in igt_partial_tiling()
/Linux-v4.19/drivers/media/pci/saa7164/
Dsaa7164-buffer.c109 buf->actual_size = params->pitch * params->numberoflines; in saa7164_buffer_alloc()
239 saa7164_writel(port->pitch, params->pitch); in saa7164_buffer_cfg_port()
240 saa7164_writel(port->bufsize, params->pitch * params->numberoflines); in saa7164_buffer_cfg_port()
247 dprintk(DBGLVL_BUF, " pitch 0x%x = %d\n", port->pitch, in saa7164_buffer_cfg_port()
248 saa7164_readl(port->pitch)); in saa7164_buffer_cfg_port()
/Linux-v4.19/sound/pci/emu10k1/
Demu10k1_callback.c511 short pitch; in set_fmmod() local
515 pitch = (char)(vp->reg.parm.fmmod>>8); in set_fmmod()
518 pitch += (MOD_SENSE * modulation) / 1200; in set_fmmod()
519 LIMITVALUE(pitch, -128, 127); in set_fmmod()
520 fmmod = ((unsigned char)pitch<<8) | cutoff; in set_fmmod()
529 short pitch; in set_fm2frq2() local
533 pitch = (char)(vp->reg.parm.fm2frq2>>8); in set_fm2frq2()
536 pitch += (MOD_SENSE * modulation) / 1200; in set_fm2frq2()
537 LIMITVALUE(pitch, -128, 127); in set_fm2frq2()
538 fm2frq2 = ((unsigned char)pitch<<8) | freq; in set_fm2frq2()
/Linux-v4.19/arch/powerpc/include/asm/
Dbtext.h13 int depth, int pitch);
14 extern void btext_setup_display(int width, int height, int depth, int pitch,

12345678910