/linux-master/drivers/gpu/drm/vmwgfx/ |
H A D | vmw_surface_cache.h | 92 u32 pitch; local 97 pitch = blocks.width * desc->pitchBytesPerBlock; 99 return pitch; 106 * surface, optionally using the specified pitch. 108 * If pitch is zero, it is assumed that rows are tightly packed. 116 u32 pitch) 131 if (pitch == 0) 132 pitch = vmw_surface_calculate_pitch(desc, size); 134 slice_size = clamped_umul32(image_blocks.height, pitch); 114 vmw_surface_get_image_buffer_size(const SVGA3dSurfaceDesc *desc, const struct drm_vmw_size *size, u32 pitch) argument
|
/linux-master/sound/isa/sb/ |
H A D | emu8000_callback.c | 240 /* set pitch offset */ 262 /* lfo1 pitch & cutoff shift */ 266 /* lfo2 pitch & freq */ 309 /* set reverb and pitch target */ 333 * Set the pitch of a possibly playing note. 373 short pitch; local 377 pitch = (char)(vp->reg.parm.fmmod>>8); 380 pitch += (MOD_SENSE * modulation) / 1200; 381 LIMITVALUE(pitch, -128, 127); 382 fmmod = ((unsigned char)pitch<< 398 short pitch; local [all...] |
H A D | emu8000_pcm.c | 49 unsigned int pitch; member in struct:snd_emu8k_pcm 253 * calculate pitch target 255 static int calc_pitch_target(int pitch) argument 257 int ptarget = 1 << (pitch >> 12); 258 if (pitch & 0x800) ptarget += (ptarget * 0x102e) / 0x2710; 259 if (pitch & 0x400) ptarget += (ptarget * 0x764) / 0x2710; 260 if (pitch & 0x200) ptarget += (ptarget * 0x389) / 0x2710; 281 /* pitch offset */ 282 EMU8000_IP_WRITE(hw, ch, rec->pitch); 296 /* lfo1 pitch [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
H A D | gk20a.c | 37 gk20a_gr_av_to_init_(struct nvkm_blob *blob, u8 count, u32 pitch, struct gf100_gr_pack **ppack) argument 59 ent->pitch = pitch; 102 ent->pitch = 1; 148 init->pitch = 1;
|
/linux-master/drivers/gpu/drm/xe/ |
H A D | xe_migrate.c | 591 unsigned int pitch) 597 xe_gt_assert(gt, size / pitch <= S16_MAX); 598 xe_gt_assert(gt, pitch / 4 <= S16_MAX); 599 xe_gt_assert(gt, pitch <= U16_MAX); 608 bb->cs[bb->len++] = XY_FAST_COPY_BLT_DEPTH_32 | pitch | tile_y | mocs; 610 bb->cs[bb->len++] = (size / pitch) << 16 | pitch / 4; 614 bb->cs[bb->len++] = pitch | mocs; 865 u32 size, u32 pitch) 872 *cs++ = pitch 589 emit_copy(struct xe_gt *gt, struct xe_bb *bb, u64 src_ofs, u64 dst_ofs, unsigned int size, unsigned int pitch) argument 864 emit_clear_link_copy(struct xe_gt *gt, struct xe_bb *bb, u64 src_ofs, u32 size, u32 pitch) argument 887 emit_clear_main_copy(struct xe_gt *gt, struct xe_bb *bb, u64 src_ofs, u32 size, u32 pitch, bool is_vram) argument 950 emit_clear(struct xe_gt *gt, struct xe_bb *bb, u64 src_ofs, u32 size, u32 pitch, bool is_vram) argument [all...] |
/linux-master/drivers/gpu/drm/gud/ |
H A D | gud_pipe.c | 162 size_t pitch, len; local 164 pitch = drm_format_info_min_pitch(format, 0, drm_rect_width(rect)); 165 len = pitch * drm_rect_height(rect); 200 } else if (compression && cached_reads && pitch == fb->pitches[0]) { 202 buf = vaddr + rect->y1 * pitch; 327 size_t pitch; local 335 pitch = drm_format_info_min_pitch(format, 0, drm_rect_width(damage)); 338 if (gdrm->bulk_len < lines * pitch) 339 lines = gdrm->bulk_len / pitch;
|
/linux-master/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_create.c | 192 /* have to work out size/pitch and return them */ 193 args->pitch = ALIGN(args->width * cpp, 64); 196 if (args->pitch > intel_plane_fb_max_stride(to_i915(dev), format, 198 args->pitch = ALIGN(args->pitch, 4096); 200 if (args->pitch < args->width) 203 args->size = mul_u32_u32(args->pitch, args->height);
|
/linux-master/drivers/media/platform/sunxi/sun8i-rotate/ |
H A D | sun8i_rotate.c | 44 dma_addr_t *addr, u32 *pitch) 50 pitch[i] = bytesperline; 53 pitch[i] /= fmt->hsub / fmt->bpp[i]; 54 size = pitch[i] * height; 68 u32 val, pitch[3]; local 95 fmt, addr, pitch); local 100 rotate_write(dev, ROTATE_IN_PITCH0, pitch[0]); 101 rotate_write(dev, ROTATE_IN_PITCH1, pitch[1]); 102 rotate_write(dev, ROTATE_IN_PITCH2, pitch[2]); 118 fmt, addr, pitch); local 41 rotate_calc_addr_pitch(dma_addr_t buffer, u32 bytesperline, u32 height, const struct rotate_format *fmt, dma_addr_t *addr, u32 *pitch) argument [all...] |
/linux-master/drivers/gpu/drm/radeon/ |
H A D | radeon_object.h | 158 u32 tiling_flags, u32 pitch); 160 u32 *tiling_flags, u32 *pitch);
|
H A D | radeon_object.c | 588 radeon_set_surface_reg(rdev, i, bo->tiling_flags, bo->pitch, 610 uint32_t tiling_flags, uint32_t pitch) 664 bo->pitch = pitch; 671 uint32_t *pitch) 677 if (pitch) 678 *pitch = bo->pitch; 609 radeon_bo_set_tiling_flags(struct radeon_bo *bo, uint32_t tiling_flags, uint32_t pitch) argument 669 radeon_bo_get_tiling_flags(struct radeon_bo *bo, uint32_t *tiling_flags, uint32_t *pitch) argument
|
/linux-master/drivers/video/fbdev/ |
H A D | valkyriefb.c | 243 int pitch; local 246 if ((pitch = init->pitch[color_mode]) == 0) 247 pitch = 2 * init->pitch[0]; 248 return init->vres * pitch; 291 || valkyrie_reg_init[default_vmode-1]->pitch[default_cmode] == 0 480 if (init->pitch[cmode] == 0) {
|
/linux-master/drivers/gpu/drm/vboxvideo/ |
H A D | vboxvideo_guest.h | 54 u32 pitch, u32 width, u32 height,
|
/linux-master/drivers/gpu/drm/ |
H A D | drm_dumb_buffers.c | 87 * handle, pitch and size are output parameters. Zero them out to 93 args->pitch = 0;
|
H A D | drm_gem_shmem_helper.c | 478 * This function computes the pitch of the dumb buffer and rounds it up to an 480 * any additional restrictions on the pitch can directly use this function as 494 if (!args->pitch || !args->size) { 495 args->pitch = min_pitch; 496 args->size = PAGE_ALIGN(args->pitch * args->height); 499 if (args->pitch < min_pitch) 500 args->pitch = min_pitch; 501 if (args->size < args->pitch * args->height) 502 args->size = PAGE_ALIGN(args->pitch * args->height);
|
/linux-master/include/drm/ |
H A D | drm_client.h | 138 * @pitch: Buffer pitch 140 u32 pitch; member in struct:drm_client_buffer
|
/linux-master/drivers/video/console/ |
H A D | sticon.c | 164 int size, i, bpc, pitch; local 172 pitch = ALIGN(w, 8) / 8; 173 bpc = pitch * h; 204 data += pitch*32;
|
/linux-master/drivers/gpu/drm/hyperv/ |
H A D | hyperv_drm_modeset.c | 90 u32 pitch = w * (hv->screen_depth / 8); local 93 pitch = fb->pitches[0]; 95 if (pitch * h > hv->fb_size) 127 drm_err(&hv->dev, "fb size requested by %s for %dX%d (pitch %d) greater than %ld\n",
|
/linux-master/drivers/accessibility/speakup/ |
H A D | speakup_ltlk.c | 56 __ATTR(pitch, 0644, spk_var_show, spk_var_store); 175 module_param_named(pitch, vars[PITCH_ID].u.n.default_val, int, 0444); 190 MODULE_PARM_DESC(pitch, "Set the pitch variable on load.");
|
H A D | speakup_decext.c | 71 __ATTR(pitch, 0644, spk_var_show, spk_var_store); 238 module_param_named(pitch, vars[PITCH_ID].u.n.default_val, int, 0444); 250 MODULE_PARM_DESC(pitch, "Set the pitch variable on load.");
|
H A D | speakup_apollo.c | 62 __ATTR(pitch, 0644, spk_var_show, spk_var_store); 210 module_param_named(pitch, vars[PITCH_ID].u.n.default_val, int, 0444); 221 MODULE_PARM_DESC(pitch, "Set the pitch variable on load.");
|
H A D | speakup_audptr.c | 51 __ATTR(pitch, 0644, spk_var_show, spk_var_store); 171 module_param_named(pitch, vars[PITCH_ID].u.n.default_val, int, 0444); 183 MODULE_PARM_DESC(pitch, "Set the pitch variable on load.");
|
/linux-master/drivers/gpu/drm/msm/ |
H A D | msm_fbdev.c | 78 int ret, pitch; local 86 pitch = align_pitch(sizes->surface_width, sizes->surface_bpp); 88 sizes->surface_height, pitch, format);
|
/linux-master/sound/drivers/opl4/ |
H A D | opl4_synth.c | 423 int note, pitch, octave; local 427 * pitch is in 100/128 cents, so 0x80 is one semitone and 430 pitch = ((note - 60) << 7) * voice->sound->key_scaling / 100 + (60 << 7); 431 pitch += voice->sound->pitch_offset; 433 pitch += chan->gm_rpn_coarse_tuning; 434 pitch += chan->gm_rpn_fine_tuning >> 7; 435 pitch += chan->midi_pitchbend * chan->gm_rpn_pitch_bend_range / 0x2000; 436 if (pitch < 0) 437 pitch = 0; 438 else if (pitch > [all...] |
/linux-master/drivers/gpu/drm/omapdrm/ |
H A D | omap_fb.c | 329 seq_printf(m, " %d: offset=%d pitch=%d, obj: ", 373 unsigned int pitch = mode_cmd->pitches[0]; local 409 if (format->num_planes == 2 && pitch != mode_cmd->pitches[1]) { 415 if (pitch % format->cpp[0]) { 417 "buffer pitch (%u bytes) is not a multiple of pixel size (%u bytes)\n", 418 pitch, format->cpp[0]); 428 size = pitch * mode_cmd->height / vsub;
|
/linux-master/drivers/gpu/drm/mediatek/ |
H A D | mtk_disp_ovl.c | 405 unsigned int pitch = pending->pitch; local 417 u32 pitch; member in union:overlay_pitch 420 overlay_pitch.pitch = pitch; 433 addr += (pending->height - 1) * pending->pitch; 438 addr += pending->pitch - 1;
|