/linux/drivers/media/common/saa7146/ |
H A D | saa7146_hlp.c | 391 saa7146_write(dev, where+0x0c, vdma->pitch); in saa7146_write_out_dma() 402 printk("vdma%d.pitch: 0x%08x\n", which,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() [all …]
|
/linux/drivers/staging/sm750fb/ |
H A D | sm750_cursor.c | 87 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() 123 /* assume pitch is 1,2,4,8,...*/ 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() 166 /* assume pitch is 1,2,4,8,...*/ in sm750_hw_cursor_setData2() 167 if (!(i & (pitch - 1))) { in sm750_hw_cursor_setData2()
|
H A D | sm750_accel.c | 88 u32 base, u32 pitch, u32 Bpp, in sm750_hw_fillrect() argument 105 ((pitch / Bpp << DE_PITCH_DESTINATION_SHIFT) & in sm750_hw_fillrect() 107 (pitch / Bpp & DE_PITCH_SOURCE_MASK)); /* dpr10 */ in sm750_hw_fillrect() 110 ((pitch / Bpp << DE_WINDOW_WIDTH_DST_SHIFT) & in sm750_hw_fillrect() 112 (pitch / Bpp & DE_WINDOW_WIDTH_SRC_MASK)); /* dpr44 */ in sm750_hw_fillrect() 136 * @sPitch: Pitch value of source surface in BYTE 140 * @dPitch: Pitch value of destination surface in BYTE 247 * Program pitch (distance between the 1st points of two adjacent lines). in sm750_hw_copyarea() 248 * Note that input pitch is BYTE value, but the 2D Pitch register uses in sm750_hw_copyarea() 303 * @srcDelta: Pitch value (in bytes) of the source buffer, +ive means top down [all …]
|
/linux/drivers/gpu/drm/tiny/ |
H A D | cirrus.c | 78 unsigned int pitch; member 310 static void cirrus_pitch_set(struct cirrus_device *cirrus, unsigned int pitch) in cirrus_pitch_set() argument 314 /* Program the pitch */ in cirrus_pitch_set() 315 cr13 = pitch / 8; in cirrus_pitch_set() 318 /* Enable extended blanking and pitch bits, and enable full memory */ 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() [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/sound/pci/ctxfi/ |
H A D | ctatc.c | 194 unsigned int pitch; in atc_get_pitch() local 197 /* get pitch and convert to fixed-point 8.24 format. */ in atc_get_pitch() 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() 223 /* 0.26 <= pitch <= 1.72 */ in select_rom() 225 } else if (pitch == 0x01d66666 || pitch == 0x01d66667) { in select_rom() 226 /* pitch == 1.8375 */ in select_rom() [all …]
|
/linux/sound/isa/sb/ |
H A D | emu8000_callback.c | 240 /* set pitch offset */ in start_voice() 262 /* lfo1 pitch & cutoff shift */ in start_voice() 266 /* lfo2 pitch & freq */ in start_voice() 309 /* set reverb and pitch target */ in trigger_voice() 333 * Set the pitch of a possibly playing note. 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() [all …]
|
H A D | emu8000_pcm.c | 49 unsigned int pitch; member 253 * calculate pitch target 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() 281 /* pitch offset */ in setup_voice() 282 EMU8000_IP_WRITE(hw, ch, rec->pitch); in setup_voice() 296 /* lfo1 pitch & cutoff shift */ in setup_voice() [all …]
|
/linux/sound/pci/emu10k1/ |
H A D | emu10k1_callback.c | 389 /* set pitch offset */ in start_voice() 411 /* lfo1 pitch & cutoff shift */ in start_voice() 415 /* lfo2 pitch & freq */ in start_voice() 470 /* set pitch target and pan (volume) */ in trigger_voice() 473 /* current pitch and fractional address */ in trigger_voice() 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() [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/include/media/ |
H A D | vsp1.h | 48 * @pitch: line pitch in bytes for the first plane 58 unsigned int pitch; member 92 * @pitch: line pitch in bytes for the first plane 97 unsigned int pitch; member
|
/linux/drivers/gpu/drm/tests/ |
H A D | drm_format_helper_test.c | 100 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/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 | priv.h | 38 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 *);
|
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()
|
/linux/sound/core/oss/ |
H A D | rate.c | 46 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/drivers/gpu/drm/loongson/ |
H A D | lsdc_gem.c | 208 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/drivers/gpu/drm/mediatek/ |
H A D | mtk_plane.c | 139 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() 194 * for example: addr += 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/drivers/accessibility/speakup/ |
H A D | speakup_dummy.c | 39 [PITCH_ID] = { PITCH, .u.n = {"PITCH %d\n", 8, 0, 16, 0, 0, NULL } }, 56 __ATTR(pitch, 0644, spk_var_show, spk_var_store); 146 module_param_named(pitch, vars[PITCH_ID].u.n.default_val, int, 0444); 160 MODULE_PARM_DESC(pitch, "Set the pitch variable on load.");
|
H A D | speakup_bns.c | 32 [PITCH_ID] = { PITCH, .u.n = {"\x05%dP", 8, 0, 16, 0, 0, NULL } }, 47 __ATTR(pitch, 0644, spk_var_show, spk_var_store); 126 module_param_named(pitch, vars[PITCH_ID].u.n.default_val, int, 0444); 136 MODULE_PARM_DESC(pitch, "Set the pitch variable on load.");
|
H A D | speakup_txprt.c | 38 [PITCH_ID] = { PITCH, .u.n = {"\x05P%d", 5, 0, 9, 0, 0, NULL } }, 52 __ATTR(pitch, 0644, spk_var_show, spk_var_store); 131 module_param_named(pitch, vars[PITCH_ID].u.n.default_val, int, 0444); 142 MODULE_PARM_DESC(pitch, "Set the pitch variable on load.");
|
/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/include/uapi/sound/ |
H A D | sfnt_info.h | 88 unsigned short pefe; /* modulation pitch & cutoff (0x0000) */ 89 unsigned short fmmod; /* LFO1 pitch & cutoff (0x0000) */ 91 unsigned short fm2frq2; /* LFO2 pitch & freq (0x0000) */ 106 short rate_offset; /* sample rate pitch offset */ 115 short tune; /* pitch tuning (in cents) */ 123 short scaleTuning; /* pitch scale tuning(%), normally 100 */
|
/linux/include/video/ |
H A D | mmp_disp.h | 82 * pitch[0]: graphics/video layer line length or y pitch 83 * pitch[1]/pitch[2]: video u/v pitch if non-zero 85 u32 pitch[3]; member
|