| /linux/drivers/gpu/drm/msm/disp/dpu1/ |
| H A D | msm_media_info.h | 825 unsigned int stride = 0; in VENUS_Y_STRIDE() local 835 stride = MSM_MEDIA_ALIGN(width, 128); in VENUS_Y_STRIDE() 838 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_Y_STRIDE() 839 stride = MSM_MEDIA_ALIGN(stride * 4 / 3, 256); in VENUS_Y_STRIDE() 842 stride = MSM_MEDIA_ALIGN(width * 2, 256); in VENUS_Y_STRIDE() 845 stride = MSM_MEDIA_ALIGN(width * 2, 128); in VENUS_Y_STRIDE() 849 return stride; in VENUS_Y_STRIDE() 861 unsigned int stride = 0; in VENUS_UV_STRIDE() local 871 stride = MSM_MEDIA_ALIGN(width, 128); in VENUS_UV_STRIDE() 874 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_UV_STRIDE() [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/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/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() 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 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() 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/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/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/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 | 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/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/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/gpio/ |
| H A D | gpio-idio-16.c | 73 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 D | gpio-i8255.c | 32 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/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/arm64/include/asm/ |
| 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/net/ethernet/netronome/nfp/ |
| H A D | nfp_netvf_main.c | 91 int stride; in nfp_netvf_pci_probe() local 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/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/drivers/infiniband/hw/bng_re/ |
| H A D | bng_res.c | 133 u32 depth, stride, npbl, npde; in bng_re_alloc_init_hwq() local 145 stride = roundup_pow_of_two(hwq_attr->stride); in bng_re_alloc_init_hwq() 147 npages = (depth * stride) / pg_size; in bng_re_alloc_init_hwq() 148 if ((depth * stride) % pg_size) in bng_re_alloc_init_hwq() 265 hwq->element_size = stride; in bng_re_alloc_init_hwq() 266 hwq->qe_ppg = pg_size / stride; in bng_re_alloc_init_hwq()
|
| /linux/drivers/reset/amlogic/ |
| H A D | reset-meson-common.c | 28 unsigned int stride = regmap_get_reg_stride(data->map); in meson_reset_offset_and_bit() local 30 *offset = (id / (stride * BITS_PER_BYTE)) * stride; in meson_reset_offset_and_bit() 31 *bit = id % (stride * BITS_PER_BYTE); in meson_reset_offset_and_bit()
|