Home
last modified time | relevance | path

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

1234567891011

/linux-6.1.9/drivers/staging/media/deprecated/saa7146/common/
Dsaa7146_hlp.c455 vdma2->pitch = 0x00; in calculate_clipping_registers_rect()
512 saa7146_write(dev, PITCH2, vdma2.pitch); in saa7146_set_clipping_rect()
579 vdma1.pitch = 2*b_bpl; in saa7146_set_position()
581 vdma1.base_even = base + (w_y * (vdma1.pitch/2)) + (w_x * (b_depth / 8)); in saa7146_set_position()
582 vdma1.base_odd = vdma1.base_even + (vdma1.pitch / 2); in saa7146_set_position()
583 vdma1.prot_addr = vdma1.base_even + (w_height * (vdma1.pitch / 2)); in saa7146_set_position()
586 vdma1.base_even = base + ((w_y+w_height) * (vdma1.pitch/2)) + (w_x * (b_depth / 8)); in saa7146_set_position()
587 vdma1.base_odd = vdma1.base_even - (vdma1.pitch / 2); in saa7146_set_position()
588 vdma1.prot_addr = vdma1.base_odd - (w_height * (vdma1.pitch / 2)); in saa7146_set_position()
595 vdma1.pitch /= 2; in saa7146_set_position()
[all …]
/linux-6.1.9/drivers/video/fbdev/via/
Dvia_modesetting.c140 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-6.1.9/drivers/gpu/drm/qxl/
Dqxl_dumb.c40 uint32_t pitch, format; in qxl_mode_dumb_create() local
42 pitch = args->width * ((args->bpp + 1) / 8); in qxl_mode_dumb_create()
43 args->size = pitch * args->height; in qxl_mode_dumb_create()
59 surf.stride = pitch; in qxl_mode_dumb_create()
70 args->pitch = pitch; in qxl_mode_dumb_create()
/linux-6.1.9/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-6.1.9/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-6.1.9/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()
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()
Dpriv.h27 u32 pitch, u32 flags, struct nvkm_fb_tile *);
47 u32 pitch, u32 flags, struct nvkm_fb_tile *);
53 u32 pitch, u32 flags, struct nvkm_fb_tile *);
59 u32 pitch, u32 flags, struct nvkm_fb_tile *);
71 u32 pitch, u32 flags, struct nvkm_fb_tile *);
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-6.1.9/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-6.1.9/drivers/gpu/drm/tests/
Ddrm_format_helper_test.c47 unsigned int pitch; member
60 .pitch = 1 * 4,
87 .pitch = 2 * 4,
121 .pitch = 4 * 4,
185 .pitch = 3 * 4,
302 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_gray8()
332 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_rgb332()
362 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_rgb565()
395 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_rgb888()
425 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_xrgb2101010()
/linux-6.1.9/sound/pci/ctxfi/
Dctatc.c197 unsigned int pitch; in atc_get_pitch() local
201 pitch = (input_rate / output_rate) << 24; in atc_get_pitch()
217 pitch |= input_rate; in atc_get_pitch()
220 return pitch; in atc_get_pitch()
223 static int select_rom(unsigned int pitch) in select_rom() argument
225 if (pitch > 0x00428f5c && pitch < 0x01b851ec) { in select_rom()
228 } else if (pitch == 0x01d66666 || pitch == 0x01d66667) { in select_rom()
231 } else if (pitch == 0x02000000) { in select_rom()
234 } else if (pitch <= 0x08000000) { in select_rom()
253 unsigned int pitch; in atc_pcm_playback_prepare() local
[all …]
/linux-6.1.9/drivers/gpu/drm/tiny/
Dcirrus.c62 unsigned int pitch; member
291 cirrus->pitch = cirrus_pitch(fb); in cirrus_mode_set()
292 tmp = cirrus->pitch / 8; in cirrus_mode_set()
297 tmp |= (cirrus->pitch >> 7) & 0x10; in cirrus_mode_set()
298 tmp |= (cirrus->pitch >> 6) & 0x40; in cirrus_mode_set()
336 iosys_map_incr(&dst, drm_fb_clip_offset(cirrus->pitch, fb->format, rect)); in cirrus_fb_blit_rect()
337 drm_fb_xrgb8888_to_rgb565(&dst, &cirrus->pitch, vmap, fb, rect, false); in cirrus_fb_blit_rect()
340 iosys_map_incr(&dst, drm_fb_clip_offset(cirrus->pitch, fb->format, rect)); in cirrus_fb_blit_rect()
341 drm_fb_xrgb8888_to_rgb888(&dst, &cirrus->pitch, vmap, fb, rect); in cirrus_fb_blit_rect()
367 int pitch = width * 2; in cirrus_check_size() local
[all …]
/linux-6.1.9/arch/powerpc/kernel/
Dbtext.c110 void __init btext_setup_display(int width, int height, int depth, int pitch, in btext_setup_display() argument
119 dispDeviceRowBytes = pitch; in btext_setup_display()
165 unsigned int width, height, depth, pitch; in btext_initialize() local
187 pitch = width * ((depth + 7) / 8); in btext_initialize()
192 pitch = *prop; in btext_initialize()
193 if (pitch == 1) in btext_initialize()
194 pitch = 0x1000; in btext_initialize()
212 dispDeviceRowBytes = pitch; in btext_initialize()
266 int depth, int pitch) in btext_update_display() argument
281 dispDeviceRowBytes = pitch; in btext_update_display()
/linux-6.1.9/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 = DIV_ROUND_CLOSEST(frames << SHIFT, data->pitch); in rate_src_frames()
227 res = DIV_ROUND_CLOSEST(frames << SHIFT, 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-6.1.9/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-6.1.9/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-6.1.9/sound/isa/sb/
Demu8000_callback.c373 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()
/linux-6.1.9/drivers/gpu/drm/gma500/
Dgem.c202 size_t pitch, size; in psb_gem_dumb_create() local
208 pitch = args->width * DIV_ROUND_UP(args->bpp, 8); in psb_gem_dumb_create()
209 pitch = ALIGN(pitch, 64); in psb_gem_dumb_create()
211 size = pitch * args->height; in psb_gem_dumb_create()
227 args->pitch = pitch; in psb_gem_dumb_create()
/linux-6.1.9/sound/pci/emu10k1/
Demu10k1_callback.c499 short pitch; in set_fmmod() local
503 pitch = (char)(vp->reg.parm.fmmod>>8); in set_fmmod()
506 pitch += (MOD_SENSE * modulation) / 1200; in set_fmmod()
507 LIMITVALUE(pitch, -128, 127); in set_fmmod()
508 fmmod = ((unsigned char)pitch<<8) | cutoff; in set_fmmod()
517 short pitch; in set_fm2frq2() local
521 pitch = (char)(vp->reg.parm.fm2frq2>>8); in set_fm2frq2()
524 pitch += (MOD_SENSE * modulation) / 1200; in set_fm2frq2()
525 LIMITVALUE(pitch, -128, 127); in set_fm2frq2()
526 fm2frq2 = ((unsigned char)pitch<<8) | freq; in set_fm2frq2()
/linux-6.1.9/drivers/media/pci/saa7164/
Dsaa7164-buffer.c99 buf->actual_size = params->pitch * params->numberoflines; in saa7164_buffer_alloc()
231 saa7164_writel(port->pitch, params->pitch); in saa7164_buffer_cfg_port()
232 saa7164_writel(port->bufsize, params->pitch * params->numberoflines); in saa7164_buffer_cfg_port()
239 dprintk(DBGLVL_BUF, " pitch 0x%x = %d\n", port->pitch, in saa7164_buffer_cfg_port()
240 saa7164_readl(port->pitch)); in saa7164_buffer_cfg_port()
/linux-6.1.9/drivers/video/fbdev/aty/
Dradeon_accel.c37 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-6.1.9/drivers/video/fbdev/i810/
Di810_accel.c195 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-6.1.9/drivers/gpu/drm/vmwgfx/
Dvmw_surface_cache.h92 u32 pitch; in vmw_surface_calculate_pitch() local
97 pitch = blocks.width * desc->pitchBytesPerBlock; in vmw_surface_calculate_pitch()
99 return pitch; in vmw_surface_calculate_pitch()
116 u32 pitch) in vmw_surface_get_image_buffer_size() argument
131 if (pitch == 0) in vmw_surface_get_image_buffer_size()
132 pitch = vmw_surface_calculate_pitch(desc, size); in vmw_surface_get_image_buffer_size()
134 slice_size = clamped_umul32(image_blocks.height, pitch); in vmw_surface_get_image_buffer_size()

1234567891011