/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/arch/arm64/include/asm/ |
H A D | tlbflush.h | 241 * __flush_tlb_range(vma, start, end, stride, last_level, tlb_level) 245 * determined by 'stride' and only affect any walk-cache entries 352 * @stride: Flush granularity 360 * entries one by one at the granularity of 'stride'. If the TLB 379 #define __flush_tlb_range_op(op, start, pages, stride, \ argument 397 __flush_start += stride; \ 398 __flush_pages -= stride >> PAGE_SHIFT; \ 416 #define __flush_s2_tlb_range_op(op, start, pages, stride, tlb_level) \ argument 417 __flush_tlb_range_op(op, start, pages, stride, 0, tlb_level, false, kvm_lpa2_is_enabled()); 420 unsigned long end, unsigned long pages, unsigned long stride) in __flush_tlb_range_limit_excess() argument [all …]
|
H A D | hugetlb.h | 75 unsigned long stride, in __flush_hugetlb_tlb_range() argument 78 switch (stride) { in __flush_hugetlb_tlb_range() 101 unsigned long stride = huge_page_size(hstate_vma(vma)); in flush_hugetlb_tlb_range() local 103 __flush_hugetlb_tlb_range(vma, start, end, stride, false); in flush_hugetlb_tlb_range()
|
/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/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/drivers/gpu/drm/qxl/ |
H 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/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 …]
|
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/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/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()
|
H A D | nfp_net_main.c | 101 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() 297 nfp_net_pf_app_init(struct nfp_pf *pf, u8 __iomem *qc_bar, unsigned int stride) in nfp_net_pf_app_init() argument 325 stride, 0); in nfp_net_pf_app_init() 695 int stride; in nfp_net_pci_probe() local 731 /* Determine stride */ in nfp_net_pci_probe() 733 stride = 2; in nfp_net_pci_probe() [all …]
|
/linux/drivers/infiniband/hw/mlx5/ |
H A D | wr.h | 28 * @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 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/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/drivers/gpio/ |
H A D | gpio-idio-16.c | 72 unsigned int stride; in idio_16_reg_mask_xlate() local 76 stride = offset / IDIO_16_NGPIO_PER_REG; in idio_16_reg_mask_xlate() 77 *reg = IDIO_16_OUT_BASE + stride * IDIO_16_REG_STRIDE; in idio_16_reg_mask_xlate() 79 stride = (offset - 16) / IDIO_16_NGPIO_PER_REG; in idio_16_reg_mask_xlate() 80 *reg = IDIO_16_IN_BASE + stride * IDIO_16_REG_STRIDE; in idio_16_reg_mask_xlate()
|
/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/sound/soc/fsl/ |
H A D | fsl_dma.h | 28 __be32 ssr; /* Source stride register */ 29 __be32 dsr; /* Destination stride register */ 105 __be32 source; /* Source stride */ 106 __be32 dest; /* Destination stride */
|