Home
last modified time | relevance | path

Searched refs:stride (Results 1 – 25 of 405) sorted by relevance

12345678910>>...17

/linux/arch/arm64/include/asm/
H A Dtlbflush.h430 #define __flush_tlb_range_op(op, start, pages, stride, \ argument
448 __flush_start += stride; \
449 __flush_pages -= stride >> PAGE_SHIFT; \
467 #define __flush_s2_tlb_range_op(op, start, pages, stride, tlb_level) \ argument
468 __flush_tlb_range_op(op, start, pages, stride, 0, tlb_level, false, kvm_lpa2_is_enabled());
471 unsigned long end, unsigned long pages, unsigned long stride) in __flush_tlb_range_limit_excess() argument
480 (end - start) >= (MAX_DVM_OPS * stride)) || in __flush_tlb_range_limit_excess()
489 unsigned long stride, bool last_level, in __flush_tlb_range_nosync() argument
494 start = round_down(start, stride); in __flush_tlb_range_nosync()
495 end = round_up(end, stride); in __flush_tlb_range_nosync()
[all …]
/linux/arch/riscv/mm/
H A Dtlbflush.c40 unsigned long stride, in local_flush_tlb_range_threshold_asid() argument
43 unsigned long nr_ptes_in_range = DIV_ROUND_UP(size, stride); in local_flush_tlb_range_threshold_asid()
55 start += stride; in local_flush_tlb_range_threshold_asid()
63 start += stride; in local_flush_tlb_range_threshold_asid()
68 unsigned long size, unsigned long stride, unsigned long asid) in local_flush_tlb_range_asid() argument
70 if (size <= stride) in local_flush_tlb_range_asid()
75 local_flush_tlb_range_threshold_asid(start, size, stride, asid); in local_flush_tlb_range_asid()
103 unsigned long stride; member
110 local_flush_tlb_range_asid(d->start, d->size, d->stride, d->asid); in __ipi_flush_tlb_range_asid()
121 unsigned long stride) in __flush_tlb_range() argument
[all …]
/linux/arch/mips/include/asm/
H A Dmips-gic.h50 #define _GIC_ACCESSOR_RO_INTR_REG(sz, off, stride, name) \ argument
53 return mips_gic_base + (off) + (intr * (stride)); \
63 #define _GIC_ACCESSOR_RW_INTR_REG(sz, off, stride, name) \ argument
64 _GIC_ACCESSOR_RO_INTR_REG(sz, off, stride, name) \
73 #define GIC_ACCESSOR_RO_INTR_REG(sz, off, stride, name) \ argument
74 _GIC_ACCESSOR_RO_INTR_REG(sz, off, stride, name) \
75 _GIC_ACCESSOR_RO_INTR_REG(sz, MIPS_GIC_REDIR_OFS + off, stride, redir_##name)
77 #define GIC_ACCESSOR_RW_INTR_REG(sz, off, stride, name) \ argument
78 _GIC_ACCESSOR_RW_INTR_REG(sz, off, stride, name) \
79 _GIC_ACCESSOR_RW_INTR_REG(sz, MIPS_GIC_REDIR_OFS + off, stride, redir_##name)
[all …]
/linux/drivers/staging/media/atomisp/pci/runtime/frame/src/
H A Dframe.c26 unsigned int stride,
425 config->stride = HIVE_ISP_DDR_WORD_BYTES * words_per_line; in ia_css_dma_configure_from_info()
444 unsigned int stride, in frame_init_plane() argument
450 plane->stride = stride; in frame_init_plane()
460 unsigned int stride; in frame_init_single_plane() local
462 stride = subpixels_per_line * bytes_per_pixel; in frame_init_single_plane()
471 frame->data_bytes = stride * round_up(height, 2); in frame_init_single_plane()
472 frame_init_plane(plane, subpixels_per_line, stride, height, 0); in frame_init_single_plane()
482 unsigned int stride; in frame_init_raw_single_plane() local
486 stride = HIVE_ISP_DDR_WORD_BYTES * in frame_init_raw_single_plane()
[all …]
/linux/drivers/hwspinlock/
H A Dqcom_hwspinlock.c24 u32 stride; member
107 .stride = 0x4,
121 .stride = 0x80,
135 .stride = 0x1000,
151 u32 *base, u32 *stride) in qcom_hwspinlock_probe_syscon() argument
172 ret = of_property_read_u32_index(pdev->dev.of_node, "syscon", 2, stride); in qcom_hwspinlock_probe_syscon()
182 u32 *offset, u32 *stride) in qcom_hwspinlock_probe_mmio() argument
193 *stride = data->stride; in qcom_hwspinlock_probe_mmio()
208 u32 stride; in qcom_hwspinlock_probe() local
212 regmap = qcom_hwspinlock_probe_syscon(pdev, &base, &stride); in qcom_hwspinlock_probe()
[all …]
/linux/drivers/media/pci/cx18/
H A Dcx18-alsa-pcm.c64 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/arch/s390/kernel/diag/
H A Ddiag310.c99 static int diag310_get_memtop_stride(unsigned long *stride) in diag310_get_memtop_stride() argument
106 *stride = res.result; in diag310_get_memtop_stride()
176 unsigned long stride; in memtop_get_stride_len() local
179 stride = READ_ONCE(memtop_stride); in memtop_get_stride_len()
180 if (!stride) { in memtop_get_stride_len()
181 rc = diag310_get_memtop_stride(&stride); in memtop_get_stride_len()
184 WRITE_ONCE(memtop_stride, stride); in memtop_get_stride_len()
186 *res = stride; in memtop_get_stride_len()
212 unsigned long stride; in diag310_memtop_stride() local
218 rc = memtop_get_stride_len(&stride); in diag310_memtop_stride()
[all …]
/linux/drivers/gpu/drm/qxl/
H A Dqxl_image.c61 int height, int stride) in qxl_image_alloc_objects() argument
78 ret = qxl_allocate_chunk(qdev, release, image, sizeof(struct qxl_data_chunk) + stride * height); in qxl_image_alloc_objects()
108 int stride) in qxl_image_init_helper() argument
125 chunk_stride = stride; /* TODO: should use linesize, but it renders in qxl_image_init_helper()
142 if (stride == linesize && chunk_stride == stride) { in qxl_image_init_helper()
171 i_data = (void *)data + i * stride; in qxl_image_init_helper()
223 image->u.bitmap.stride = chunk_stride; in qxl_image_init_helper()
237 int depth, int stride) in qxl_image_init() argument
239 data += y * stride + x * (depth / 8); in qxl_image_init()
241 width, height, depth, 0, stride); in qxl_image_init()
/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_bo5039.c52 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/drivers/media/usb/cx231xx/
H A Dcx231xx-audio.c87 unsigned int stride; in cx231xx_audio_isocirq() local
114 stride = runtime->frame_bits >> 3; in cx231xx_audio_isocirq()
119 stride; in cx231xx_audio_isocirq()
131 memcpy(runtime->dma_area + oldptr * stride, cp, in cx231xx_audio_isocirq()
132 cnt * stride); in cx231xx_audio_isocirq()
133 memcpy(runtime->dma_area, cp + cnt * stride, in cx231xx_audio_isocirq()
134 length * stride - cnt * stride); in cx231xx_audio_isocirq()
136 memcpy(runtime->dma_area + oldptr * stride, cp, in cx231xx_audio_isocirq()
137 length * stride); in cx231xx_audio_isocirq()
178 unsigned int stride; in cx231xx_audio_bulkirq() local
[all …]
/linux/drivers/media/pci/cobalt/
H A Dcobalt-alsa-pcm.c105 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()
148 sample_cpy(runtime->dma_area + (oldptr + i) * stride, in cobalt_alsa_announce_pcm_data()
150 stride, is_s32); in cobalt_alsa_announce_pcm_data()
152 sample_cpy(runtime->dma_area + (i - cnt) * stride, in cobalt_alsa_announce_pcm_data()
153 pcm_data + i * skip, stride, is_s32); in cobalt_alsa_announce_pcm_data()
158 sample_cpy(runtime->dma_area + (oldptr + i) * stride, 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
[all …]
H A Dcobalt-omnitek.c151 unsigned size, unsigned width, unsigned stride, in descriptor_list_create() argument
165 WARN_ON(stride & 3); in descriptor_list_create()
166 WARN_ON(stride < width); in descriptor_list_create()
167 if (width >= stride) in descriptor_list_create()
168 copy_bytes = stride = size; in descriptor_list_create()
235 while (copied < stride) { in descriptor_list_create()
237 stride - copied); in descriptor_list_create()
/linux/tools/sched_ext/
H A Dscx_pair.c50 __s32 stride, i, opt, outer_fd; in main() local
63 stride = skel->rodata->nr_cpu_ids / 2; in main()
68 stride = strtoul(optarg, NULL, 0); in main()
80 if (stride <= 0) { in main()
81 fprintf(stderr, "Invalid stride %d, must be positive\n", stride); in main()
97 int j = (i + stride) % skel->rodata->nr_cpu_ids; in main()
104 stride, i); in main()
108 stride, i, j, skel->rodata_pair_cpu->pair_cpu[j]); in main()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bus/
H A Dhwsq.h16 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/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_2/
H A Dia_css_sdis2.host.c36 unsigned int stride = size / IA_CSS_DVS2_NUM_COEF_TYPES / sizeof(short); in ia_css_sdis2_horicoef_vmem_encode() local
46 fill_row(&private[0 * stride], from->hor_coefs.odd_real, width, padding); in ia_css_sdis2_horicoef_vmem_encode()
47 fill_row(&private[1 * stride], from->hor_coefs.odd_imag, width, padding); in ia_css_sdis2_horicoef_vmem_encode()
48 fill_row(&private[2 * stride], from->hor_coefs.even_real, width, padding); in ia_css_sdis2_horicoef_vmem_encode()
49 fill_row(&private[3 * stride], from->hor_coefs.even_imag, width, padding); in ia_css_sdis2_horicoef_vmem_encode()
61 unsigned int stride = size / IA_CSS_DVS2_NUM_COEF_TYPES / sizeof(short); in ia_css_sdis2_vertcoef_vmem_encode() local
71 fill_row(&private[0 * stride], from->ver_coefs.odd_real, height, padding); in ia_css_sdis2_vertcoef_vmem_encode()
72 fill_row(&private[1 * stride], from->ver_coefs.odd_imag, height, padding); in ia_css_sdis2_vertcoef_vmem_encode()
73 fill_row(&private[2 * stride], from->ver_coefs.even_real, height, padding); in ia_css_sdis2_vertcoef_vmem_encode()
74 fill_row(&private[3 * stride], from->ver_coefs.even_imag, height, padding); in ia_css_sdis2_vertcoef_vmem_encode()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
H A Dramfuc.h17 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/drivers/video/fbdev/
H A Dsh7760fb.c202 unsigned long sbase, dstn_off, ldsarl, stride; in sh7760fb_set_par() local
270 stride = (par->rot) ? vtln : hdcn; in sh7760fb_set_par()
272 stride *= (bpp + 7) >> 3; in sh7760fb_set_par()
275 stride >>= 3; in sh7760fb_set_par()
277 stride >>= 2; in sh7760fb_set_par()
279 stride >>= 1; in sh7760fb_set_par()
287 if (stride & bit) in sh7760fb_set_par()
291 if (stride & ~bit) in sh7760fb_set_par()
292 stride = bit << 1; /* not P-o-2, round up */ in sh7760fb_set_par()
294 iowrite16(stride, par->base + LDLAOR); in sh7760fb_set_par()
[all …]
/linux/drivers/fpga/
H A Dxilinx-spi.c28 size_t remaining, stride; in xilinx_spi_write() local
32 stride = min_t(size_t, remaining, SZ_4K); in xilinx_spi_write()
34 ret = spi_write(spi, fw_data, stride); in xilinx_spi_write()
40 fw_data += stride; in xilinx_spi_write()
/linux/drivers/gpu/drm/i915/gt/
H A Dintel_ggtt_fencing.c80 unsigned int stride = fence->stride; in i965_write_fence_reg() local
82 GEM_BUG_ON(!IS_ALIGNED(stride, 128)); in i965_write_fence_reg()
87 val |= (u64)((stride / 128) - 1) << fence_pitch_shift; in i965_write_fence_reg()
121 unsigned int stride = fence->stride; in i915_write_fence_reg() local
126 stride /= 128; in i915_write_fence_reg()
128 stride /= 512; in i915_write_fence_reg()
129 GEM_BUG_ON(!is_power_of_2(stride)); in i915_write_fence_reg()
135 val |= ilog2(stride) << I830_FENCE_PITCH_SHIFT; in i915_write_fence_reg()
155 unsigned int stride = fence->stride; in i830_write_fence_reg() local
161 val |= ilog2(stride / 128) << I830_FENCE_PITCH_SHIFT; in i830_write_fence_reg()
[all …]
/linux/drivers/media/test-drivers/vicodec/
H A Dcodec-fwht.c249 unsigned int stride, in fwht() argument
260 for (i = 0; i < 8; i++, tmp += stride, out += 8) { in fwht()
383 fwht16(const s16 *block, s16 *output_block, int stride, int intra) in fwht16() argument
391 for (i = 0; i < 8; i++, tmp += stride, out += 8) { in fwht16()
578 unsigned int stride, unsigned int input_step) in fill_encoder_block() argument
585 input += stride - 8 * input_step; in fill_encoder_block()
617 unsigned int stride, unsigned int input_step) in decide_blocktype() argument
626 fill_encoder_block(cur, tmp, stride, input_step); in decide_blocktype()
643 static void fill_decoder_block(u8 *dst, const s16 *input, int stride, in fill_decoder_block() argument
657 dst += stride - (8 * dst_step); in fill_decoder_block()
[all …]
/linux/drivers/gpio/
H A Dgpio-idio-16.c73 unsigned int stride; in idio_16_reg_mask_xlate() local
77 stride = offset / IDIO_16_NGPIO_PER_REG; in idio_16_reg_mask_xlate()
78 *reg = IDIO_16_OUT_BASE + stride * IDIO_16_REG_STRIDE; in idio_16_reg_mask_xlate()
80 stride = (offset - 16) / IDIO_16_NGPIO_PER_REG; in idio_16_reg_mask_xlate()
81 *reg = IDIO_16_IN_BASE + stride * IDIO_16_REG_STRIDE; in idio_16_reg_mask_xlate()
H A Dgpio-i8255.c32 const unsigned int stride = offset / I8255_NGPIO_PER_REG; in i8255_direction_mask() local
35 switch (stride) { in i8255_direction_mask()
76 const unsigned int stride = ppi_offset / I8255_NGPIO_PER_REG; in i8255_reg_mask_xlate() local
81 *reg = base + stride + ppi * 4; in i8255_reg_mask_xlate()
/linux/drivers/gpu/drm/i915/gvt/
H A Ddmabuf.c219 unsigned int stride = 0; in vgpu_create_gem() local
227 stride = info->stride; in vgpu_create_gem()
232 stride = info->stride; in vgpu_create_gem()
238 obj->tiling_and_stride = tiling_mode | stride; in vgpu_create_gem()
274 info->stride = p.stride; in vgpu_get_plane_info()
304 info->stride = c.width * (c.bpp / 8); in vgpu_get_plane_info()
322 info->size = info->stride * roundup(info->height, tile_height); in vgpu_get_plane_info()
396 gvt_dmabuf->stride = fb_info->stride; in update_fb_info()
/linux/drivers/staging/media/atomisp/pci/isp/kernels/ipu2_io_ls/yuv444_io_ls/
H A Dia_css_yuv444_io.host.c53 to->stride = config.stride; in ia_css_yuv444_io_config()
82 to->stride = config.stride; in ia_css_yuv444_io_config()
/linux/drivers/staging/media/atomisp/pci/isp/kernels/ipu2_io_ls/bayer_io_ls/
H A Dia_css_bayer_io.host.c51 to->stride = config.stride; in ia_css_bayer_io_config()
79 to->stride = config.stride; in ia_css_bayer_io_config()

12345678910>>...17