Home
last modified time | relevance | path

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

12345678910>>...12

/linux-6.12.1/drivers/media/common/saa7146/
Dsaa7146_hlp.c391 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-6.12.1/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.12.1/drivers/gpu/drm/qxl/
Dqxl_dumb.c41 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-6.12.1/drivers/staging/sm750fb/
Dsm750_cursor.c87 int i, j, count, pitch, offset; in sm750_hw_cursor_setData() local
93 pitch = cursor->w >> 3; in sm750_hw_cursor_setData()
96 count = pitch * cursor->h; in sm750_hw_cursor_setData()
124 if ((i + 1) % pitch == 0) { in sm750_hw_cursor_setData()
137 int i, j, count, pitch, offset; in sm750_hw_cursor_setData2() local
143 pitch = cursor->w >> 3; in sm750_hw_cursor_setData2()
146 count = pitch * cursor->h; in sm750_hw_cursor_setData2()
167 if (!(i & (pitch - 1))) { in sm750_hw_cursor_setData2()
/linux-6.12.1/drivers/gpu/drm/tiny/
Dcirrus.c78 unsigned int pitch; member
310 static void cirrus_pitch_set(struct cirrus_device *cirrus, unsigned int pitch) in cirrus_pitch_set() argument
315 cr13 = pitch / 8; in cirrus_pitch_set()
320 cr1b |= (pitch >> 7) & 0x10; in cirrus_pitch_set()
321 cr1b |= (pitch >> 6) & 0x40; in cirrus_pitch_set()
351 unsigned int pitch; in cirrus_primary_plane_helper_atomic_check() local
365 pitch = cirrus_pitch(fb); in cirrus_primary_plane_helper_atomic_check()
368 if (pitch > CIRRUS_MAX_PITCH) in cirrus_primary_plane_helper_atomic_check()
370 else if (pitch * fb->height > CIRRUS_VRAM_SIZE) in cirrus_primary_plane_helper_atomic_check()
374 new_primary_plane_state->pitch = pitch; in cirrus_primary_plane_helper_atomic_check()
[all …]
/linux-6.12.1/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.12.1/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.h38 u32 pitch, u32 flags, struct nvkm_fb_tile *);
58 u32 pitch, u32 flags, struct nvkm_fb_tile *);
64 u32 pitch, u32 flags, struct nvkm_fb_tile *);
70 u32 pitch, u32 flags, struct nvkm_fb_tile *);
82 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.12.1/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.12.1/sound/pci/ctxfi/
Dctatc.c194 unsigned int pitch; in atc_get_pitch() local
198 pitch = (input_rate / output_rate) << 24; in atc_get_pitch()
214 pitch |= input_rate; in atc_get_pitch()
217 return pitch; in atc_get_pitch()
220 static int select_rom(unsigned int pitch) in select_rom() argument
222 if (pitch > 0x00428f5c && pitch < 0x01b851ec) { in select_rom()
225 } else if (pitch == 0x01d66666 || pitch == 0x01d66667) { in select_rom()
228 } else if (pitch == 0x02000000) { in select_rom()
231 } else if (pitch <= 0x08000000) { in select_rom()
250 unsigned int pitch; in atc_pcm_playback_prepare() local
[all …]
/linux-6.12.1/drivers/gpu/drm/tests/
Ddrm_format_helper_test.c100 unsigned int pitch; member
122 .pitch = 1 * 4,
185 .pitch = 2 * 4,
255 .pitch = 4 * 4,
400 .pitch = 3 * 4,
619 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_gray8()
652 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_rgb332()
685 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_rgb565()
739 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_xrgb1555()
786 .pitches = { params->pitch, 0, 0 }, in drm_test_fb_xrgb8888_to_argb1555()
[all …]
/linux-6.12.1/arch/powerpc/kernel/
Dbtext.c107 void __init btext_setup_display(int width, int height, int depth, int pitch, in btext_setup_display() argument
116 dispDeviceRowBytes = pitch; in btext_setup_display()
162 unsigned int width, height, depth, pitch; in btext_initialize() local
184 pitch = width * ((depth + 7) / 8); in btext_initialize()
189 pitch = *prop; in btext_initialize()
190 if (pitch == 1) in btext_initialize()
191 pitch = 0x1000; in btext_initialize()
209 dispDeviceRowBytes = pitch; in btext_initialize()
263 int depth, int pitch) in btext_update_display() argument
278 dispDeviceRowBytes = pitch; in btext_update_display()
/linux-6.12.1/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.12.1/drivers/gpu/drm/loongson/
Dlsdc_gem.c208 u32 pitch; in lsdc_dumb_create() local
218 pitch = args->width * args->bpp / 8; in lsdc_dumb_create()
219 pitch = ALIGN(pitch, descp->pitch_align); in lsdc_dumb_create()
220 size = pitch * args->height; in lsdc_dumb_create()
242 args->pitch = pitch; in lsdc_dumb_create()
/linux-6.12.1/sound/pci/emu10k1/
Demu10k1_callback.c488 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-6.12.1/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.12.1/arch/sparc/kernel/
Dbtext.c42 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-6.12.1/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()
Demu8000_pcm.c49 unsigned int pitch; member
255 static int calc_pitch_target(int pitch) in calc_pitch_target() argument
257 int ptarget = 1 << (pitch >> 12); in calc_pitch_target()
258 if (pitch & 0x800) ptarget += (ptarget * 0x102e) / 0x2710; in calc_pitch_target()
259 if (pitch & 0x400) ptarget += (ptarget * 0x764) / 0x2710; in calc_pitch_target()
260 if (pitch & 0x200) ptarget += (ptarget * 0x389) / 0x2710; in calc_pitch_target()
282 EMU8000_IP_WRITE(hw, ch, rec->pitch); in setup_voice()
327 int pt = calc_pitch_target(rec->pitch); in start_voice()
568 rec->pitch = 0xe000 + calc_rate_offset(subs->runtime->rate); in emu8k_pcm_prepare()
/linux-6.12.1/drivers/gpu/drm/mediatek/
Dmtk_plane.c139 unsigned int pitch, format; in mtk_plane_update_new_state() local
149 pitch = fb->pitches[0]; in mtk_plane_update_new_state()
161 offset = (new_state->src.y1 >> 16) * pitch; in mtk_plane_update_new_state()
173 pitch = width_in_blocks * AFBC_DATA_BLOCK_WIDTH * in mtk_plane_update_new_state()
188 offset = pitch * y_offset_in_blocks + in mtk_plane_update_new_state()
201 mtk_plane_state->pending.pitch = pitch; in mtk_plane_update_new_state()
/linux-6.12.1/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.12.1/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()

12345678910>>...12