/linux-6.3-rc2/drivers/gpu/drm/i915/gem/ |
A D | i915_gem_tiling.c | 65 GEM_BUG_ON(!stride); in i915_gem_fence_size() 68 stride *= i915_gem_tile_height(tiling); in i915_gem_fence_size() 70 return roundup(size, stride); in i915_gem_fence_size() 142 if (stride > 8192) in i915_tiling_ok() 145 if (!is_power_of_2(stride)) in i915_tiling_ok() 155 if (!stride || !IS_ALIGNED(stride, tile_width)) in i915_tiling_ok() 162 int tiling_mode, unsigned int stride) in i915_vma_fence_prepare() argument 300 vma->size, tiling, stride); in i915_gem_object_set_tiling() 307 obj->tiling_and_stride = tiling | stride; in i915_gem_object_set_tiling() 374 args->stride = 0; in i915_gem_set_tiling_ioctl() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/msm/disp/dpu1/ |
A D | msm_media_info.h | 825 unsigned int stride = 0; in VENUS_Y_STRIDE() local 835 stride = MSM_MEDIA_ALIGN(width, 128); in VENUS_Y_STRIDE() 838 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_Y_STRIDE() 839 stride = MSM_MEDIA_ALIGN(stride * 4 / 3, 256); in VENUS_Y_STRIDE() 842 stride = MSM_MEDIA_ALIGN(width * 2, 256); in VENUS_Y_STRIDE() 849 return stride; in VENUS_Y_STRIDE() 861 unsigned int stride = 0; in VENUS_UV_STRIDE() local 871 stride = MSM_MEDIA_ALIGN(width, 128); in VENUS_UV_STRIDE() 874 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_UV_STRIDE() 875 stride = MSM_MEDIA_ALIGN(stride * 4 / 3, 256); in VENUS_UV_STRIDE() [all …]
|
/linux-6.3-rc2/drivers/hwspinlock/ |
A D | qcom_hwspinlock.c | 24 u32 stride; member 74 .stride = 0x4, 87 .stride = 0x80, 101 .stride = 0x1000, 118 u32 *base, u32 *stride) in qcom_hwspinlock_probe_syscon() argument 149 u32 *offset, u32 *stride) in qcom_hwspinlock_probe_mmio() argument 160 *stride = data->stride; in qcom_hwspinlock_probe_mmio() 175 u32 stride; in qcom_hwspinlock_probe() local 179 regmap = qcom_hwspinlock_probe_syscon(pdev, &base, &stride); in qcom_hwspinlock_probe() 181 regmap = qcom_hwspinlock_probe_mmio(pdev, &base, &stride); in qcom_hwspinlock_probe() [all …]
|
/linux-6.3-rc2/drivers/staging/media/atomisp/pci/runtime/frame/src/ |
A D | frame.c | 34 unsigned int stride, 441 unsigned int stride, in frame_init_plane() argument 447 plane->stride = stride; in frame_init_plane() 457 unsigned int stride; in frame_init_single_plane() local 478 unsigned int stride; in frame_init_raw_single_plane() local 482 stride = HIVE_ISP_DDR_WORD_BYTES * in frame_init_raw_single_plane() 485 frame->data_bytes = stride * height; in frame_init_raw_single_plane() 567 stride = width * bytes_per_element; in frame_init_rgb_planes() 568 bytes = stride * height; in frame_init_rgb_planes() 583 stride = width * 2; in frame_init_qplane6_planes() [all …]
|
/linux-6.3-rc2/arch/powerpc/sysdev/ |
A D | dcr.c | 148 unsigned int stride; in of_translate_dcr_address() local 157 stride = (p == NULL) ? 0x10 : *p; in of_translate_dcr_address() 169 ret += (u64)(stride) * (u64)dcr_n; in of_translate_dcr_address() 171 *out_stride = stride; in of_translate_dcr_address() 188 addr = of_translate_dcr_address(dev, dcr_n, &ret.stride); in dcr_map_mmio() 190 (unsigned long long) addr, ret.stride); in dcr_map_mmio() 193 pr_debug("mapping 0x%x bytes\n", dcr_c * ret.stride); in dcr_map_mmio() 194 ret.token = ioremap(addr, dcr_c * ret.stride); in dcr_map_mmio() 198 ret.token, ret.token - dcr_n * ret.stride); in dcr_map_mmio() 199 ret.token -= dcr_n * ret.stride; in dcr_map_mmio() [all …]
|
/linux-6.3-rc2/drivers/media/pci/cx18/ |
A D | cx18-alsa-pcm.c | 64 unsigned int stride; in cx18_alsa_announce_pcm_data() local 83 stride = runtime->frame_bits >> 3; in cx18_alsa_announce_pcm_data() 84 if (stride == 0) { in cx18_alsa_announce_pcm_data() 89 length = num_bytes / stride; in cx18_alsa_announce_pcm_data() 104 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in cx18_alsa_announce_pcm_data() 105 cnt * stride); in cx18_alsa_announce_pcm_data() 106 memcpy(runtime->dma_area, pcm_data + cnt * stride, in cx18_alsa_announce_pcm_data() 107 length * stride - cnt * stride); in cx18_alsa_announce_pcm_data() 109 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in cx18_alsa_announce_pcm_data() 110 length * stride); in cx18_alsa_announce_pcm_data()
|
/linux-6.3-rc2/drivers/gpu/drm/qxl/ |
A D | qxl_image.c | 59 int height, int stride) in qxl_image_alloc_objects() argument 76 ret = qxl_allocate_chunk(qdev, release, image, sizeof(struct qxl_data_chunk) + stride * height); in qxl_image_alloc_objects() 106 int stride) in qxl_image_init_helper() argument 123 chunk_stride = stride; /* TODO: should use linesize, but it renders in qxl_image_init_helper() 140 if (stride == linesize && chunk_stride == stride) { in qxl_image_init_helper() 169 i_data = (void *)data + i * stride; in qxl_image_init_helper() 221 image->u.bitmap.stride = chunk_stride; in qxl_image_init_helper() 235 int depth, int stride) in qxl_image_init() argument 237 data += y * stride + x * (depth / 8); in qxl_image_init() 239 width, height, depth, 0, stride); in qxl_image_init()
|
/linux-6.3-rc2/drivers/media/pci/ivtv/ |
A D | ivtv-alsa-pcm.c | 61 unsigned int stride; in ivtv_alsa_announce_pcm_data() local 80 stride = runtime->frame_bits >> 3; in ivtv_alsa_announce_pcm_data() 81 if (stride == 0) { in ivtv_alsa_announce_pcm_data() 86 length = num_bytes / stride; in ivtv_alsa_announce_pcm_data() 101 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in ivtv_alsa_announce_pcm_data() 102 cnt * stride); in ivtv_alsa_announce_pcm_data() 103 memcpy(runtime->dma_area, pcm_data + cnt * stride, in ivtv_alsa_announce_pcm_data() 104 length * stride - cnt * stride); in ivtv_alsa_announce_pcm_data() 106 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in ivtv_alsa_announce_pcm_data() 107 length * stride); in ivtv_alsa_announce_pcm_data()
|
/linux-6.3-rc2/drivers/gpu/drm/nouveau/ |
A D | nouveau_bo5039.c | 52 u32 amount, stride, height; in nv50_bo_move_m2mf() local 59 stride = 16 * 4; in nv50_bo_move_m2mf() 60 height = amount / stride; in nv50_bo_move_m2mf() 71 SET_SRC_WIDTH, stride, in nv50_bo_move_m2mf() 93 SET_DST_WIDTH, stride, in nv50_bo_move_m2mf() 114 PITCH_IN, stride, in nv50_bo_move_m2mf() 115 PITCH_OUT, stride, in nv50_bo_move_m2mf() 116 LINE_LENGTH_IN, stride, in nv50_bo_move_m2mf()
|
/linux-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/subdev/bus/ |
A D | hwsq.h | 16 u32 stride; /* in bytes */ member 22 hwsq_stride(u32 addr, u32 stride, u32 mask) in hwsq_stride() argument 28 .stride = stride, in hwsq_stride() 41 .stride = addr2 - addr1, in hwsq_reg2() 54 .stride = 0, in hwsq_reg() 106 off += reg->stride; in hwsq_wr32()
|
/linux-6.3-rc2/arch/mips/include/asm/ |
A D | mips-gic.h | 48 #define GIC_ACCESSOR_RO_INTR_REG(sz, off, stride, name) \ argument 51 return mips_gic_base + (off) + (intr * (stride)); \ 61 #define GIC_ACCESSOR_RW_INTR_REG(sz, off, stride, name) \ argument 62 GIC_ACCESSOR_RO_INTR_REG(sz, off, stride, name) \ 72 #define GIC_VX_ACCESSOR_RO_INTR_REG(sz, off, stride, name) \ argument 74 stride, vl_##name) \ 76 stride, vo_##name) 79 #define GIC_VX_ACCESSOR_RW_INTR_REG(sz, off, stride, name) \ argument 81 stride, vl_##name) \ 83 stride, vo_##name)
|
/linux-6.3-rc2/drivers/media/pci/cobalt/ |
A D | cobalt-alsa-pcm.c | 105 unsigned int stride; in cobalt_alsa_announce_pcm_data() local 126 stride = runtime->frame_bits >> 3; in cobalt_alsa_announce_pcm_data() 127 if (stride == 0) { in cobalt_alsa_announce_pcm_data() 150 stride, is_s32); in cobalt_alsa_announce_pcm_data() 153 pcm_data + i * skip, stride, is_s32); in cobalt_alsa_announce_pcm_data() 160 stride, is_s32); in cobalt_alsa_announce_pcm_data() 305 unsigned int stride; in cobalt_alsa_pb_pcm_data() local 325 stride = runtime->frame_bits >> 3; in cobalt_alsa_pb_pcm_data() 326 if (stride == 0) { in cobalt_alsa_pb_pcm_data() 345 stride, is_s32); in cobalt_alsa_pb_pcm_data() [all …]
|
/linux-6.3-rc2/drivers/media/usb/cx231xx/ |
A D | cx231xx-audio.c | 87 unsigned int stride; in cx231xx_audio_isocirq() local 114 stride = runtime->frame_bits >> 3; in cx231xx_audio_isocirq() 119 stride; in cx231xx_audio_isocirq() 132 cnt * stride); in cx231xx_audio_isocirq() 134 length * stride - cnt * stride); in cx231xx_audio_isocirq() 137 length * stride); in cx231xx_audio_isocirq() 178 unsigned int stride; in cx231xx_audio_bulkirq() local 210 stride; in cx231xx_audio_bulkirq() 219 cnt * stride); in cx231xx_audio_bulkirq() 221 length * stride - cnt * stride); in cx231xx_audio_bulkirq() [all …]
|
/linux-6.3-rc2/drivers/media/platform/mediatek/mdp3/ |
A D | mtk-mdp3-regs.c | 551 u32 stride; in mdp_fmt_get_stride() local 556 return stride; in mdp_fmt_get_stride() 559 stride = stride / 2; in mdp_fmt_get_stride() 560 return stride; in mdp_fmt_get_stride() 570 u32 stride = pix_stride; in mdp_fmt_get_stride_contig() local 573 return stride; in mdp_fmt_get_stride_contig() 575 stride = stride >> MDP_COLOR_GET_H_SUBSAMPLE(c); in mdp_fmt_get_stride_contig() 577 stride = stride * 2; in mdp_fmt_get_stride_contig() 578 return stride; in mdp_fmt_get_stride_contig() 615 b->format.plane_fmt[i].stride = stride; in mdp_prepare_buffer() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
A D | ramfuc.h | 17 u32 stride; /* in bytes */ member 23 ramfuc_stride(u32 addr, u32 stride, u32 mask) in ramfuc_stride() argument 28 .stride = stride, in ramfuc_stride() 40 .stride = addr2 - addr1, in ramfuc_reg2() 52 .stride = 0, in ramfuc_reg() 101 off += reg->stride; in ramfuc_wr32()
|
/linux-6.3-rc2/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_2/ |
A D | ia_css_sdis2.host.c | 45 unsigned int stride = size / IA_CSS_DVS2_NUM_COEF_TYPES / sizeof(short); in ia_css_sdis2_horicoef_vmem_encode() local 55 fill_row(&private[0 * stride], from->hor_coefs.odd_real, width, padding); in ia_css_sdis2_horicoef_vmem_encode() 56 fill_row(&private[1 * stride], from->hor_coefs.odd_imag, width, padding); in ia_css_sdis2_horicoef_vmem_encode() 57 fill_row(&private[2 * stride], from->hor_coefs.even_real, width, padding); in ia_css_sdis2_horicoef_vmem_encode() 58 fill_row(&private[3 * stride], from->hor_coefs.even_imag, width, padding); in ia_css_sdis2_horicoef_vmem_encode() 70 unsigned int stride = size / IA_CSS_DVS2_NUM_COEF_TYPES / sizeof(short); in ia_css_sdis2_vertcoef_vmem_encode() local 80 fill_row(&private[0 * stride], from->ver_coefs.odd_real, height, padding); in ia_css_sdis2_vertcoef_vmem_encode() 81 fill_row(&private[1 * stride], from->ver_coefs.odd_imag, height, padding); in ia_css_sdis2_vertcoef_vmem_encode() 82 fill_row(&private[2 * stride], from->ver_coefs.even_real, height, padding); in ia_css_sdis2_vertcoef_vmem_encode() 83 fill_row(&private[3 * stride], from->ver_coefs.even_imag, height, padding); in ia_css_sdis2_vertcoef_vmem_encode()
|
/linux-6.3-rc2/drivers/video/fbdev/ |
A D | sh7760fb.c | 268 stride = (par->rot) ? vtln : hdcn; in sh7760fb_set_par() 270 stride *= (bpp + 7) >> 3; in sh7760fb_set_par() 273 stride >>= 3; in sh7760fb_set_par() 275 stride >>= 2; in sh7760fb_set_par() 277 stride >>= 1; in sh7760fb_set_par() 285 if (stride & bit) in sh7760fb_set_par() 289 if (stride & ~bit) in sh7760fb_set_par() 292 iowrite16(stride, par->base + LDLAOR); in sh7760fb_set_par() 297 sbase += (hdcn - 1) * stride; in sh7760fb_set_par() 311 dstn_off = stride; in sh7760fb_set_par() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/ |
A D | drm_dumb_buffers.c | 64 u32 cpp, stride, size; in drm_mode_create_dumb() local 77 stride = cpp * args->width; in drm_mode_create_dumb() 78 if (args->height > U32_MAX / stride) in drm_mode_create_dumb() 82 size = args->height * stride; in drm_mode_create_dumb()
|
/linux-6.3-rc2/drivers/gpu/drm/i915/gt/ |
A D | intel_ggtt_fencing.c | 78 unsigned int stride = fence->stride; in i965_write_fence_reg() local 80 GEM_BUG_ON(!IS_ALIGNED(stride, 128)); in i965_write_fence_reg() 85 val |= (u64)((stride / 128) - 1) << fence_pitch_shift; in i965_write_fence_reg() 119 unsigned int stride = fence->stride; in i915_write_fence_reg() local 124 stride /= 128; in i915_write_fence_reg() 126 stride /= 512; in i915_write_fence_reg() 127 GEM_BUG_ON(!is_power_of_2(stride)); in i915_write_fence_reg() 133 val |= ilog2(stride) << I830_FENCE_PITCH_SHIFT; in i915_write_fence_reg() 153 unsigned int stride = fence->stride; in i830_write_fence_reg() local 159 val |= ilog2(stride / 128) << I830_FENCE_PITCH_SHIFT; in i830_write_fence_reg() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/i915/gvt/ |
A D | fb_decoder.c | 153 u32 stride = stride_reg; in intel_vgpu_get_stride() local 158 stride = stride_reg * 64; in intel_vgpu_get_stride() 161 stride = stride_reg * 512; in intel_vgpu_get_stride() 164 stride = stride_reg * 128; in intel_vgpu_get_stride() 168 stride = stride_reg * 64; in intel_vgpu_get_stride() 170 stride = stride_reg * 128; in intel_vgpu_get_stride() 180 return stride; in intel_vgpu_get_stride() 259 plane->stride = intel_vgpu_get_stride(vgpu, pipe, plane->tiled, in intel_vgpu_decode_primary_plane() 486 plane->stride = vgpu_vreg_t(vgpu, SPRSTRIDE(pipe)) & in intel_vgpu_decode_sprite_plane()
|
/linux-6.3-rc2/arch/powerpc/include/asm/ |
A D | dcr-mmio.h | 15 unsigned int stride; member 31 return in_be32(host.token + ((host.base + dcr_n) * host.stride)); in dcr_read_mmio() 38 out_be32(host.token + ((host.base + dcr_n) * host.stride), value); in dcr_write_mmio()
|
/linux-6.3-rc2/drivers/staging/media/atomisp/pci/isp/kernels/ipu2_io_ls/yuv444_io_ls/ |
A D | ia_css_yuv444_io.host.c | 60 to->stride = config.stride; in ia_css_yuv444_io_config() 89 to->stride = config.stride; in ia_css_yuv444_io_config()
|
/linux-6.3-rc2/drivers/staging/media/atomisp/pci/isp/kernels/ipu2_io_ls/bayer_io_ls/ |
A D | ia_css_bayer_io.host.c | 59 to->stride = config.stride; in ia_css_bayer_io_config() 87 to->stride = config.stride; in ia_css_bayer_io_config()
|
/linux-6.3-rc2/arch/arm64/include/asm/ |
A D | tlbflush.h | 283 unsigned long stride, bool last_level, in __flush_tlb_range() argument 290 start = round_down(start, stride); in __flush_tlb_range() 291 end = round_up(end, stride); in __flush_tlb_range() 301 (end - start) >= (MAX_TLBI_OPS * stride)) || in __flush_tlb_range() 339 start += stride; in __flush_tlb_range() 340 pages -= stride >> PAGE_SHIFT; in __flush_tlb_range()
|
/linux-6.3-rc2/drivers/media/platform/amphion/ |
A D | vpu_helpers.c | 151 u32 stride, u32 interlaced, u32 *pbl) in get_nv12_plane_size() argument 159 bytesperline = ALIGN(bytesperline, stride); in get_nv12_plane_size() 172 u32 stride, u32 interlaced, u32 *pbl) in get_tiled_8l128_plane_size() argument 188 bytesperline = ALIGN(bytesperline, stride); in get_tiled_8l128_plane_size() 201 u32 stride, u32 interlaced, u32 *pbl) in get_default_plane_size() argument 209 bytesperline = ALIGN(bytesperline, stride); in get_default_plane_size() 219 u32 stride, u32 interlaced, u32 *pbl) in vpu_helper_get_plane_size() argument 224 return get_nv12_plane_size(w, h, plane_no, stride, interlaced, pbl); in vpu_helper_get_plane_size() 229 return get_tiled_8l128_plane_size(fmt, w, h, plane_no, stride, interlaced, pbl); in vpu_helper_get_plane_size() 231 return get_default_plane_size(w, h, plane_no, stride, interlaced, pbl); in vpu_helper_get_plane_size()
|