| /linux/tools/sched_ext/ |
| H A D | scx_pair.c | 24 "Usage: %s [-S STRIDE]\n" 26 " -S STRIDE Override CPU pair stride (default: nr_cpus_ids / 2)\n" 50 __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() 79 /* Stride must be positive to pair distinct CPUs. */ 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() 103 "Invalid stride %d - CPU%d wants to be its own pair", in main() [all …]
|
| /linux/arch/riscv/mm/ |
| H A D | tlbflush.c | 40 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/drivers/hwspinlock/ |
| H A D | qcom_hwspinlock.c | 24 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() 174 dev_err(&pdev->dev, "no stride syscon\n"); 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 [all …]
|
| /linux/drivers/gpu/drm/msm/registers/display/ |
| H A D | mdp4.xml | 155 <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/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() 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/arch/arm64/include/asm/ |
| H A D | tlbflush.h | 261 * __flush_tlb_range(vma, start, end, stride, last_level, tlb_level) 265 * determined by 'stride' and only affect any walk-cache entries 403 * @stride: Flush granularity 411 * entries one by one at the granularity of 'stride'. If the TLB 430 #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 [all …]
|
| /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() 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 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/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/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() 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/hv/ |
| H A D | mshv_regions.c | 23 * mshv_chunk_stride - Compute stride for mapping guest memory 28 * Determines the appropriate stride (in pages) for mapping guest memory. 29 * Uses huge page stride if the backing page is huge and the guest mapping 30 * is properly aligned; otherwise falls back to single page stride. 32 * Return: Stride in pages, or -EINVAL if page order is unsupported. 40 * Use single page stride by default. For huge page stride, the in mshv_chunk_stride() 89 int stride, ret; in mshv_region_process_chunk() local 95 stride = mshv_chunk_stride(page, gfn, page_count); in mshv_region_process_chunk() 96 if (stride < 0) in mshv_region_process_chunk() 97 return stride; in mshv_region_process_chunk() [all …]
|
| /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/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/usb/cx231xx/ |
| H 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() 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/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/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() 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/staging/media/atomisp/pci/isp/kernels/sdis/sdis_2/ |
| H A D | ia_css_sdis2.host.c | 36 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/msm/registers/adreno/ |
| H A D | a6xx.xml | 184 <array offset="0x082a" name="CP_SCRATCH_GLOBAL" stride="1" length="4" variants="A8XX-"> 187 <array offset="0x0830" name="CP_SCRATCH_PIPE" stride="1" length="5" variants="A8XX-"> 285 <array offset="0x0883" name="CP_SCRATCH" stride="1" length="8" variants="A6XX-A7XX"> 288 <array offset="0x0850" name="CP_PROTECT" stride="1" length="32" variants="A6XX-A7XX"> 291 <array offset="0x0850" name="CP_PROTECT_GLOBAL" stride="1" length="64" variants="A8XX-"> 294 <array offset="0x08a0" name="CP_PROTECT_PIPE" stride="1" length="16" variants="A8XX-"> 320 <array offset="0x08d0" name="CP_PERFCTR_CP_SEL" stride="1" length="14" variants="A6XX-A7XX"/> 321 <array offset="0x08d0" name="CP_PERFCTR_CP_SEL" stride="1" length="21" variants="A8XX-"/> 322 <array offset="0x08e0" name="CP_BV_PERFCTR_CP_SEL" stride="1" length="7" variants="A7XX"/> 458 <array offset="0x0a9c" name="CP_RESERVED_REG" stride="1" length="4" variants="A7XX"/> [all …]
|
| /linux/drivers/net/ipa/ |
| H A D | reg.h | 17 * @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/net/ethernet/netronome/nfp/ |
| H A D | nfp_netvf_main.c | 91 int stride; in nfp_netvf_pci_probe() local 142 /* Determine stride */ in nfp_netvf_pci_probe() 144 stride = 2; in nfp_netvf_pci_probe() 151 stride = 4; in nfp_netvf_pci_probe() 168 tx_bar_sz = NFP_QCP_QUEUE_ADDR_SZ * max_tx_rings * stride; in nfp_netvf_pci_probe() 169 rx_bar_sz = NFP_QCP_QUEUE_ADDR_SZ * max_rx_rings * stride; in nfp_netvf_pci_probe() 200 nn->stride_tx = stride; in nfp_netvf_pci_probe() 201 nn->stride_rx = stride; in nfp_netvf_pci_probe()
|
| /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/fpga/ |
| H A D | xilinx-spi.c | 28 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/Documentation/userspace-api/ |
| H A D | dma-buf-alloc-exchange.rst | 41 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/gpu/drm/i915/display/ |
| H A D | intel_fbc.c | 143 /* plane stride in pixels */ 147 unsigned int stride; in intel_fbc_plane_stride() local 149 stride = plane_state->view.color_plane[0].mapping_stride; in intel_fbc_plane_stride() 151 stride /= fb->format->cpp[0]; in intel_fbc_plane_stride() 153 return stride; in intel_fbc_plane_stride() 164 /* plane stride based cfb stride in bytes, assuming 1:1 compression limit */ 172 /* minimum acceptable cfb stride in bytes, assuming 1:1 compression limit */ 178 unsigned int stride; in skl_fbc_min_cfb_stride() local 180 /* minimum segment stride we can use */ in skl_fbc_min_cfb_stride() 181 stride = width * cpp * height / limit; in skl_fbc_min_cfb_stride() [all …]
|