| /linux/arch/riscv/mm/ |
| H A D | tlbflush.c | 22 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/arch/arm64/include/asm/ |
| H A D | tlbflush.h | 496 u64 stride, u16 asid, in __flush_tlb_range_op() argument 523 addr += stride; in __flush_tlb_range_op() 527 #define __flush_s1_tlb_range_op(op, start, pages, stride, asid, tlb_level) \ argument 528 __flush_tlb_range_op(op, r##op, start, pages, stride, asid, tlb_level, lpa2_is_enabled()) 530 #define __flush_s2_tlb_range_op(op, start, pages, stride, tlb_level) \ argument 531 __flush_tlb_range_op(op, r##op, start, pages, stride, 0, tlb_level, kvm_lpa2_is_enabled()) 534 unsigned long stride) in __flush_tlb_range_limit_excess() argument 545 return pages >= (MAX_DVM_OPS * stride) >> PAGE_SHIFT; in __flush_tlb_range_limit_excess() 567 unsigned long stride, int tlb_level, in __do_flush_tlb_range() argument 575 if (__flush_tlb_range_limit_excess(pages, stride)) { in __do_flush_tlb_range() [all …]
|
| /linux/arch/mips/include/asm/ |
| H A D | mips-gic.h | 50 #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 D | frame.c | 26 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/media/pci/cx18/ |
| H 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/arch/s390/kernel/diag/ |
| H A D | diag310.c | 99 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/drivers/gpu/drm/sysfb/ |
| H A D | drm_sysfb_screen_info.c | 60 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()
|
| /linux/drivers/gpu/drm/qxl/ |
| H A D | qxl_image.c | 61 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 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/drivers/media/pci/cobalt/ |
| H 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() 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 D | cobalt-omnitek.c | 151 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/drivers/gpu/drm/nouveau/nvkm/subdev/bus/ |
| H 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/tools/sched_ext/ |
| H A D | scx_pair.c | 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() 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() 113 stride, i); in main() 117 stride, i, j, skel->rodata_pair_cpu->pair_cpu[j]); in main()
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
| H 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/drivers/fpga/ |
| H A D | xilinx-spi.c | 27 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/video/fbdev/ |
| H A D | sh7760fb.c | 202 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/gpu/drm/msm/disp/dpu1/ |
| H A D | dpu_formats.c | 64 unsigned int stride, y_sclines, uv_sclines; in _dpu_format_populate_plane_sizes_ubwc() local 72 stride = roundup(fb->width, 192); in _dpu_format_populate_plane_sizes_ubwc() 73 stride = round_up(stride * 4 / 3, 256); in _dpu_format_populate_plane_sizes_ubwc() 76 stride = round_up(fb->width * 2, 256); in _dpu_format_populate_plane_sizes_ubwc() 84 stride = round_up(fb->width, 128); in _dpu_format_populate_plane_sizes_ubwc() 92 layout->plane_pitch[0] = stride; in _dpu_format_populate_plane_sizes_ubwc() 96 layout->plane_pitch[1] = stride; in _dpu_format_populate_plane_sizes_ubwc()
|
| /linux/drivers/media/test-drivers/vicodec/ |
| H A D | codec-fwht.c | 249 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/staging/media/atomisp/pci/isp/kernels/ipu2_io_ls/yuv444_io_ls/ |
| H A D | ia_css_yuv444_io.host.c | 53 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 D | ia_css_bayer_io.host.c | 51 to->stride = config.stride; in ia_css_bayer_io_config() 79 to->stride = config.stride; in ia_css_bayer_io_config()
|
| /linux/arch/x86/include/asm/ |
| H A D | tlb.h | 83 enum addr_stride stride, u8 flags) in __invlpgb() argument 86 u32 ecx = (stride << 31) | (nr_pages - 1); in __invlpgb() 131 u16 nr, bool stride) in invlpgb_flush_user_nr_nosync() argument 133 enum addr_stride str = stride ? PMD_STRIDE : PTE_STRIDE; in invlpgb_flush_user_nr_nosync()
|
| /linux/drivers/gpu/drm/i915/gvt/ |
| H A D | dmabuf.c | 219 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 D | wr.h | 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/drivers/net/ipa/ |
| H A D | reg.h | 24 u32 stride; member 39 .stride = __stride, \ 49 .stride = __stride, \ 133 return reg ? reg->offset + n * reg->stride : 0; in reg_n_offset()
|
| /linux/fs/btrfs/ |
| H A D | raid-stripe-tree.c | 47 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() 487 struct btrfs_raid_stride *stride = &stripe_extent->strides[i]; in btrfs_get_raid_extent_offset() local 488 u64 devid = btrfs_raid_stride_devid(leaf, stride); in btrfs_get_raid_extent_offset() 489 u64 physical = btrfs_raid_stride_physical(leaf, stride); in btrfs_get_raid_extent_offset()
|