/openbmc/linux/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_tiling.c | 50 * @stride: tiling stride 56 u32 size, unsigned int tiling, unsigned int stride) in i915_gem_fence_size() argument 65 GEM_BUG_ON(!stride); in i915_gem_fence_size() 68 stride *= i915_gem_tile_height(tiling); in i915_gem_fence_size() 69 GEM_BUG_ON(!IS_ALIGNED(stride, I965_FENCE_PAGE)); in i915_gem_fence_size() 70 return roundup(size, stride); in i915_gem_fence_size() 90 * @stride: tiling stride 96 unsigned int tiling, unsigned int stride) in i915_gem_fence_alignment() argument 114 return i915_gem_fence_size(i915, size, tiling, stride); in i915_gem_fence_alignment() 120 unsigned int tiling, unsigned int stride) in i915_tiling_ok() argument [all …]
|
/openbmc/linux/arch/ia64/lib/ |
H A D | flush.S | 8 * 05/28/05 Zoltan Menyhart Dynamic stride size 32 ld8 r20=[r3] // r20: stride shift 35 shr.u r23=in0,r20 // start / (stride size) 36 shr.u r22=r22,r20 // (last byte address) / (stride size) 37 shl r21=r21,r20 // r21: stride size of the i-cache(s) 41 // "start" rounded down to stride boundary 53 add r24=r21,r24 // we flush "stride size" bytes per iteration 86 ld8 r20=[r3] // r20: stride shift 89 shr.u r23=in0,r20 // start / (stride size) 90 shr.u r22=r22,r20 // (last byte address) / (stride size) [all …]
|
/openbmc/linux/arch/riscv/mm/ |
H A D | tlbflush.c | 17 unsigned long stride, in local_flush_tlb_range_threshold_asid() argument 20 unsigned long nr_ptes_in_range = DIV_ROUND_UP(size, stride); in local_flush_tlb_range_threshold_asid() 30 start += stride; in local_flush_tlb_range_threshold_asid() 35 unsigned long size, unsigned long stride, unsigned long asid) in local_flush_tlb_range_asid() argument 37 if (size <= stride) in local_flush_tlb_range_asid() 42 local_flush_tlb_range_threshold_asid(start, size, stride, asid); in local_flush_tlb_range_asid() 68 unsigned long stride; member 75 local_flush_tlb_range_asid(d->start, d->size, d->stride, d->asid); in __ipi_flush_tlb_range_asid() 79 unsigned long size, unsigned long stride) in __flush_tlb_range() argument 109 ftd.stride = stride; in __flush_tlb_range() [all …]
|
/openbmc/linux/arch/powerpc/sysdev/ |
H A D | dcr.c | 148 unsigned int stride; in of_translate_dcr_address() local 155 /* Stride is not properly defined yet, default to 0x10 for Axon */ in of_translate_dcr_address() 156 p = of_get_property(dp, "dcr-mmio-stride", NULL); in of_translate_dcr_address() 157 stride = (p == NULL) ? 0x10 : *p; in of_translate_dcr_address() 169 ret += (u64)(stride) * (u64)dcr_n; in of_translate_dcr_address() 171 *out_stride = stride; in of_translate_dcr_address() 182 dcr_host_mmio_t ret = { .token = NULL, .stride = 0, .base = dcr_n }; in dcr_map_mmio() 188 addr = of_translate_dcr_address(dev, dcr_n, &ret.stride); in dcr_map_mmio() 189 pr_debug("translates to addr: 0x%llx, stride: 0x%x\n", in dcr_map_mmio() 190 (unsigned long long) addr, ret.stride); in dcr_map_mmio() [all …]
|
/openbmc/linux/drivers/hwspinlock/ |
H A D | qcom_hwspinlock.c | 24 u32 stride; member 82 .stride = 0x4, 96 .stride = 0x80, 110 .stride = 0x1000, 127 u32 *base, u32 *stride) in qcom_hwspinlock_probe_syscon() argument 148 ret = of_property_read_u32_index(pdev->dev.of_node, "syscon", 2, stride); in qcom_hwspinlock_probe_syscon() 150 dev_err(&pdev->dev, "no stride syscon\n"); in qcom_hwspinlock_probe_syscon() 158 u32 *offset, u32 *stride) in qcom_hwspinlock_probe_mmio() argument 169 *stride = data->stride; in qcom_hwspinlock_probe_mmio() 184 u32 stride; in qcom_hwspinlock_probe() local [all …]
|
/openbmc/qemu/tests/tcg/hexagon/ |
H A D | hvx_histogram.c | 26 const int stride = (width + vector_len - 1) & -vector_len; variable 30 static uint8_t input[height][stride] __attribute__((aligned(128))) = { 50 static void ref_histogram(uint8_t *src, int stride, int width, int height, in ref_histogram() argument 59 hist[src[i * stride + j]]++; in ref_histogram() 64 static void hvx_histogram(uint8_t *src, int stride, int width, int height, in hvx_histogram() argument 75 hvx_histogram_row(src, stride, width, k, hist); in hvx_histogram() 76 src += n * stride; in hvx_histogram() 82 ref_histogram(&input[0][0], stride, width, height, expect); in main() 83 hvx_histogram(&input[0][0], stride, width, height, result); in main()
|
/openbmc/qemu/hw/display/ |
H A D | ramfb.c | 28 uint32_t stride; member 49 hwaddr stride, hwaddr addr) in ramfb_create_display_surface() argument 61 if (stride == 0) { in ramfb_create_display_surface() 62 stride = linesize; in ramfb_create_display_surface() 65 mapsize = size = stride * (height - 1) + linesize; in ramfb_create_display_surface() 73 format, stride, data); in ramfb_create_display_surface() 85 hwaddr stride, addr; in ramfb_fw_cfg_write() local 89 stride = be32_to_cpu(s->cfg.stride); in ramfb_fw_cfg_write() 95 format, stride, addr); in ramfb_fw_cfg_write()
|
/openbmc/linux/drivers/media/platform/mediatek/mdp3/ |
H A D | mtk-mdp3-regs.c | 307 /* Stride that is accepted by MDP HW */ 312 u32 stride; in mdp_fmt_get_stride() local 314 stride = (bytesperline * MDP_COLOR_BITS_PER_PIXEL(c)) in mdp_fmt_get_stride() 317 return stride; in mdp_fmt_get_stride() 320 stride = stride / 2; in mdp_fmt_get_stride() 321 return stride; in mdp_fmt_get_stride() 326 /* Stride that is accepted by MDP HW of format with contiguous planes */ 331 u32 stride = pix_stride; in mdp_fmt_get_stride_contig() local 334 return stride; in mdp_fmt_get_stride_contig() 336 stride = stride >> MDP_COLOR_GET_H_SUBSAMPLE(c); in mdp_fmt_get_stride_contig() [all …]
|
/openbmc/qemu/include/ui/ |
H A D | pixman-minimal.h | 102 int stride; member 121 int stride = 0; in create_bits() local 127 * stride = ((width * bpp + 0x1f) >> 5) * sizeof(uint32_t); in create_bits() 130 if (unlikely(__builtin_mul_overflow(width, bpp, &stride))) { in create_bits() 134 if (unlikely(__builtin_add_overflow(stride, 0x1f, &stride))) { in create_bits() 138 stride >>= 5; in create_bits() 140 stride *= sizeof(uint32_t); in create_bits() 143 (size_t) stride, in create_bits() 149 *rowstride_bytes = stride; in create_bits() 175 i->stride = rowstride_bytes ? rowstride_bytes : in pixman_image_create_bits() [all …]
|
/openbmc/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 …]
|
/openbmc/linux/drivers/media/pci/ivtv/ |
H A D | ivtv-alsa-pcm.c | 61 unsigned int stride; in ivtv_alsa_announce_pcm_data() local 80 stride = runtime->frame_bits >> 3; in ivtv_alsa_announce_pcm_data() 81 if (stride == 0) { in ivtv_alsa_announce_pcm_data() 82 dprintk("stride is zero\n"); in ivtv_alsa_announce_pcm_data() 86 length = num_bytes / stride; in ivtv_alsa_announce_pcm_data() 101 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in ivtv_alsa_announce_pcm_data() 102 cnt * stride); in ivtv_alsa_announce_pcm_data() 103 memcpy(runtime->dma_area, pcm_data + cnt * stride, in ivtv_alsa_announce_pcm_data() 104 length * stride - cnt * stride); in ivtv_alsa_announce_pcm_data() 106 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in ivtv_alsa_announce_pcm_data() [all …]
|
/openbmc/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()
|
/openbmc/linux/drivers/staging/media/atomisp/pci/runtime/frame/src/ |
H A D | frame.c | 34 unsigned int stride, 433 config->stride = HIVE_ISP_DDR_WORD_BYTES * words_per_line; in ia_css_dma_configure_from_info() 452 unsigned int stride, in frame_init_plane() argument 458 plane->stride = stride; in frame_init_plane() 468 unsigned int stride; in frame_init_single_plane() local 470 stride = subpixels_per_line * bytes_per_pixel; in frame_init_single_plane() 477 frame->data_bytes = stride * CEIL_MUL2(height, 2); in frame_init_single_plane() 478 frame_init_plane(plane, subpixels_per_line, stride, height, 0); in frame_init_single_plane() 489 unsigned int stride; in frame_init_raw_single_plane() local 493 stride = HIVE_ISP_DDR_WORD_BYTES * in frame_init_raw_single_plane() [all …]
|
/openbmc/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()
|
/openbmc/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 …]
|
/openbmc/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()
|
/openbmc/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 …]
|
/openbmc/linux/arch/arm64/include/asm/ |
H A D | hugetlb.h | 69 unsigned long stride = huge_page_size(hstate_vma(vma)); in flush_hugetlb_tlb_range() local 71 if (stride == PMD_SIZE) in flush_hugetlb_tlb_range() 72 __flush_tlb_range(vma, start, end, stride, false, 2); in flush_hugetlb_tlb_range() 73 else if (stride == PUD_SIZE) in flush_hugetlb_tlb_range() 74 __flush_tlb_range(vma, start, end, stride, false, 1); in flush_hugetlb_tlb_range()
|
H A D | tlbflush.h | 225 * __flush_tlb_range(vma, start, end, stride, last_level) 229 * determined by 'stride' and only affect any walk-cache entries 350 * @stride: Flush granularity 357 * entries one by one at the granularity of 'stride'. If the TLB 369 #define __flush_tlb_range_op(op, start, pages, stride, \ argument 383 start += stride; \ 384 pages -= stride >> PAGE_SHIFT; \ 402 #define __flush_s2_tlb_range_op(op, start, pages, stride, tlb_level) \ argument 403 __flush_tlb_range_op(op, start, pages, stride, 0, tlb_level, false) 407 unsigned long stride, bool last_level, in __flush_tlb_range() argument [all …]
|
/openbmc/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()
|
/openbmc/linux/drivers/gpu/drm/tiny/ |
H A D | simpledrm.c | 110 return simplefb_get_validated_int(dev, "stride", pd->stride); in simplefb_get_stride_pd() 169 u32 stride; in simplefb_get_stride_of() local 170 int ret = simplefb_read_u32_of(dev, of_node, "stride", &stride); in simplefb_get_stride_of() 174 return simplefb_get_validated_int(dev, "stride", stride); in simplefb_get_stride_of() 627 int width, height, stride; in simpledrm_device_create() local 664 stride = simplefb_get_stride_pd(dev, pd); in simpledrm_device_create() 665 if (stride < 0) in simpledrm_device_create() 666 return ERR_PTR(stride); in simpledrm_device_create() 677 stride = simplefb_get_stride_of(dev, of_node); in simpledrm_device_create() 678 if (stride < 0) in simpledrm_device_create() [all …]
|
/openbmc/linux/drivers/net/ipa/ |
H A D | reg.h | 15 * @stride: Distance between two instances, if parameterized 22 u32 stride; member 32 /* Helper macro for defining parameterized registers, specifying stride */ 37 .stride = __stride, \ 47 .stride = __stride, \ 131 return reg ? reg->offset + n * reg->stride : 0; in reg_n_offset()
|
/openbmc/qemu/contrib/vhost-user-gpu/ |
H A D | vugbm.c | 17 buf->stride = buf->width * 4; in mem_alloc_bo() 81 buf->stride = buf->width * 4; in udmabuf_alloc_bo() 144 buf->stride = gbm_bo_get_stride(buf->bo); in alloc_bo() 160 uint32_t stride; in map_bo() local 163 GBM_BO_TRANSFER_READ_WRITE, &stride, in map_bo() 166 assert(stride == buf->stride); in map_bo() 300 buffer->stride = 0; /* modified during alloc */ in vugbm_buffer_create()
|
/openbmc/linux/drivers/gpu/drm/ci/ |
H A D | testlist.txt | 220 kms_big_fb@linear-max-hw-stride-32bpp-rotate-0 221 kms_big_fb@linear-max-hw-stride-32bpp-rotate-180 222 kms_big_fb@linear-max-hw-stride-64bpp-rotate-0 223 kms_big_fb@linear-max-hw-stride-64bpp-rotate-180 224 kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-0 225 kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-0-async-flip 226 kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-180 227 kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-180-async-flip 228 kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-0 229 kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-0-async-flip [all …]
|
/openbmc/linux/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_2/ |
H A D | ia_css_sdis2.host.c | 45 unsigned int stride = size / IA_CSS_DVS2_NUM_COEF_TYPES / sizeof(short); in ia_css_sdis2_horicoef_vmem_encode() local 55 fill_row(&private[0 * stride], from->hor_coefs.odd_real, width, padding); in ia_css_sdis2_horicoef_vmem_encode() 56 fill_row(&private[1 * stride], from->hor_coefs.odd_imag, width, padding); in ia_css_sdis2_horicoef_vmem_encode() 57 fill_row(&private[2 * stride], from->hor_coefs.even_real, width, padding); in ia_css_sdis2_horicoef_vmem_encode() 58 fill_row(&private[3 * stride], from->hor_coefs.even_imag, width, padding); in ia_css_sdis2_horicoef_vmem_encode() 70 unsigned int stride = size / IA_CSS_DVS2_NUM_COEF_TYPES / sizeof(short); in ia_css_sdis2_vertcoef_vmem_encode() local 80 fill_row(&private[0 * stride], from->ver_coefs.odd_real, height, padding); in ia_css_sdis2_vertcoef_vmem_encode() 81 fill_row(&private[1 * stride], from->ver_coefs.odd_imag, height, padding); in ia_css_sdis2_vertcoef_vmem_encode() 82 fill_row(&private[2 * stride], from->ver_coefs.even_real, height, padding); in ia_css_sdis2_vertcoef_vmem_encode() 83 fill_row(&private[3 * stride], from->ver_coefs.even_imag, height, padding); in ia_css_sdis2_vertcoef_vmem_encode()
|