Home
last modified time | relevance | path

Searched full:stride (Results 1 – 25 of 439) sorted by relevance

12345678910>>...18

/linux/arch/riscv/mm/
H A Dtlbflush.c22 unsigned long stride, in local_flush_tlb_range_threshold_asid() argument
25 unsigned long nr_ptes_in_range = DIV_ROUND_UP(size, stride); in local_flush_tlb_range_threshold_asid()
37 start += stride; in local_flush_tlb_range_threshold_asid()
45 start += stride; in local_flush_tlb_range_threshold_asid()
50 unsigned long size, unsigned long stride, unsigned long asid) in local_flush_tlb_range_asid() argument
52 if (size <= stride) in local_flush_tlb_range_asid()
57 local_flush_tlb_range_threshold_asid(start, size, stride, asid); in local_flush_tlb_range_asid()
85 unsigned long stride; member
92 local_flush_tlb_range_asid(d->start, d->size, d->stride, d->asid); in __ipi_flush_tlb_range_asid()
98 unsigned long stride) in __flush_tlb_range() argument
[all …]
/linux/drivers/gpu/drm/sysfb/
H A Ddrm_sysfb_screen_info.c60 s64 stride; in drm_sysfb_get_stride_si() local
65 stride = drm_sysfb_get_validated_size0(dev, "stride", lfb_linelength, in drm_sysfb_get_stride_si()
67 if (stride < INT_MIN || stride > INT_MAX) in drm_sysfb_get_stride_si()
70 return (int)stride; /* stride or negative errno code */ in drm_sysfb_get_stride_si()
75 unsigned int height, unsigned int stride, u64 size) in drm_sysfb_get_visible_size_si() argument
77 u64 vsize = mul_u32_u32(height, stride); in drm_sysfb_get_visible_size_si()
H A Defidrm.c154 int width, height, stride; in efidrm_device_create() local
206 stride = drm_sysfb_get_stride_si(dev, si, format, width, height, resource_size(res)); in efidrm_device_create()
207 if (stride < 0) in efidrm_device_create()
208 return ERR_PTR(stride); in efidrm_device_create()
209 vsize = drm_sysfb_get_visible_size_si(dev, si, height, stride, resource_size(res)); in efidrm_device_create()
213 drm_dbg(dev, "framebuffer format=%p4cc, size=%dx%d, stride=%d bytes\n", in efidrm_device_create()
214 &format->format, width, height, stride); in efidrm_device_create()
222 sysfb->fb_pitch = stride; in efidrm_device_create()
/linux/tools/sched_ext/
H A Dscx_pair.c24 "Usage: %s [-S STRIDE] [-v]\n"
26 " -S STRIDE Override CPU pair stride (default: nr_cpus_ids / 2)\n"
50 __s32 stride, i, opt, outer_fd; in main() local
64 stride = skel->rodata->nr_cpu_ids / 2; in main()
69 stride = strtoul(optarg, NULL, 0); in main()
80 /* Stride must be positive to pair distinct CPUs. */ in main()
81 if (stride <= 0) { in main()
82 fprintf(stderr, "Invalid stride %d, must be positive\n", stride); in main()
106 int j = (i + stride) % skel->rodata->nr_cpu_ids; in main()
112 "Invalid stride %d - CPU%d wants to be its own pair", in main()
[all …]
/linux/arch/arm64/include/asm/
H A Dtlbflush.h333 * __flush_tlb_range(vma, start, end, stride, tlb_level, flags)
337 * determined by 'stride'. tlb_level is the level at
421 * @stride: Flush granularity
427 * entries one by one at the granularity of 'stride'. If the TLB
492 u64 stride, u16 asid, in __flush_tlb_range_op() argument
519 addr += stride; in __flush_tlb_range_op()
523 #define __flush_s1_tlb_range_op(op, start, pages, stride, asid, tlb_level) \ argument
524 __flush_tlb_range_op(op, r##op, start, pages, stride, asid, tlb_level, lpa2_is_enabled())
526 #define __flush_s2_tlb_range_op(op, start, pages, stride, tlb_level) \ argument
527 __flush_tlb_range_op(op, r##op, start, pages, stride, 0, tlb_level, kvm_lpa2_is_enabled())
[all …]
/linux/drivers/gpu/drm/msm/registers/display/
H A Dmdp4.xml155 <array offsets="0x10000,0x18000,0x88000" name="OVLP" length="3" stride="0x8000">
159 <reg32 offset="0x0010" name="STRIDE" type="uint"/>
162 <array offsets="0x0104,0x0124,0x0144,0x0160" name="STAGE" length="4" stride="0x1c">
181 <array offsets="0x1004,0x1404,0x1804,0x1b84" name="STAGE_CO3" length="4" stride="4">
194 <array offset="0x2000" name="CSC" length="1" stride="0x700">
195 <array offset="0x400" name="MV" length="9" stride="4">
198 <array offset="0x500" name="PRE_BV" length="3" stride="4">
201 <array offset="0x580" name="POST_BV" length="3" stride="4">
204 <array offset="0x600" name="PRE_LV" length="6" stride="4">
207 <array offset="0x680" name="POST_LV" length="6" stride="4">
[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()
85 dprintk("stride is zero\n"); 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()
[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/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/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()
213 unsigned long stride; in diag310_memtop_stride() local
219 rc = memtop_get_stride_len(&stride); in diag310_memtop_stride()
[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/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()
128 dprintk("stride is zero\n"); 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()
[all …]
/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/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/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/net/ipa/
H A Dreg.h17 * @stride: Distance between two instances, if parameterized
24 u32 stride; member
34 /* Helper macro for defining parameterized registers, specifying stride */
39 .stride = __stride, \
49 .stride = __stride, \
133 return reg ? reg->offset + n * reg->stride : 0; in reg_n_offset()
/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()
283 /* if rotated, stride must be power of 2 */ 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()
[all …]
/linux/drivers/fpga/
H A Dxilinx-spi.c27 size_t remaining, stride; in xilinx_spi_write() local
31 stride = min_t(size_t, remaining, SZ_4K); in xilinx_spi_write()
33 ret = spi_write(spi, fw_data, stride); in xilinx_spi_write()
39 fw_data += stride; in xilinx_spi_write()
/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/infiniband/hw/mlx5/
H A Dwr.h28 * @idx - Stride index in the SQ buffer.
81 size_t stride; in mlx5r_memcpy_send_wqe() local
87 stride = !n ? ALIGN(copysz, 16) : copysz; in mlx5r_memcpy_send_wqe()
88 *seg += stride; in mlx5r_memcpy_send_wqe()
89 *wqe_sz += stride >> 4; in mlx5r_memcpy_send_wqe()
/linux/Documentation/userspace-api/
H A Ddma-buf-alloc-exchange.rst41 A piece of memory for storing (parts of) pixel data. Has stride and size
79 stride:
84 non-linear formats the stride must be computed in a consistent way, which
88 Synonym for stride.
168 Each plane must also have a ``stride`` in bytes, expressing the offset in memory
172 be described with a width of 1000, however the stride will be ``1024 * bpp``,
251 modifier selected for the buffer, as well as the per-plane offset and stride.
254 the padding expressed through offset, stride, and size.
256 Communicating additional constraints, such as alignment of stride or offset,
266 and stride) to an importing API.
[all …]
/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()
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_main.c101 int stride, unsigned int id) in nfp_net_pf_alloc_vnic() argument
122 nn->stride_rx = stride; in nfp_net_pf_alloc_vnic()
123 nn->stride_tx = stride; in nfp_net_pf_alloc_vnic()
179 void __iomem *qc_bar, int stride) in nfp_net_pf_alloc_vnics() argument
187 stride, i); in nfp_net_pf_alloc_vnics()
296 nfp_net_pf_app_init(struct nfp_pf *pf, u8 __iomem *qc_bar, unsigned int stride) in nfp_net_pf_app_init() argument
324 stride, 0); in nfp_net_pf_app_init()
694 int stride; in nfp_net_pci_probe() local
730 /* Determine stride */ in nfp_net_pci_probe()
732 stride = 2; in nfp_net_pci_probe()
[all …]
/linux/fs/btrfs/
H A Draid-stripe-tree.c47 struct btrfs_raid_stride *stride = &extent->strides[i]; in btrfs_partially_delete_raid_extent() local
51 devid = btrfs_raid_stride_devid(leaf, stride); in btrfs_partially_delete_raid_extent()
53 phys = btrfs_raid_stride_physical(leaf, stride) + frontpad; in btrfs_partially_delete_raid_extent()
215 struct btrfs_raid_stride *stride = &extent->strides[i]; in btrfs_delete_raid_extent() local
218 phys = btrfs_raid_stride_physical(leaf, stride); in btrfs_delete_raid_extent()
220 btrfs_set_raid_stride_physical(leaf, stride, phys); in btrfs_delete_raid_extent()
480 struct btrfs_raid_stride *stride = &stripe_extent->strides[i]; in btrfs_get_raid_extent_offset() local
481 u64 devid = btrfs_raid_stride_devid(leaf, stride); in btrfs_get_raid_extent_offset()
482 u64 physical = btrfs_raid_stride_physical(leaf, stride); in btrfs_get_raid_extent_offset()

12345678910>>...18