Home
last modified time | relevance | path

Searched refs:stride (Results 1 – 25 of 297) sorted by relevance

12345678910>>...12

/drivers/gpu/drm/i915/gem/
Di915_gem_tiling.c54 u32 size, unsigned int tiling, unsigned int stride) in i915_gem_fence_size() argument
63 GEM_BUG_ON(!stride); in i915_gem_fence_size()
66 stride *= i915_gem_tile_height(tiling); in i915_gem_fence_size()
67 GEM_BUG_ON(!IS_ALIGNED(stride, I965_FENCE_PAGE)); in i915_gem_fence_size()
68 return roundup(size, stride); in i915_gem_fence_size()
94 unsigned int tiling, unsigned int stride) in i915_gem_fence_alignment() argument
112 return i915_gem_fence_size(i915, size, tiling, stride); in i915_gem_fence_alignment()
118 unsigned int tiling, unsigned int stride) in i915_tiling_ok() argument
134 if (stride / 128 > GEN7_FENCE_MAX_PITCH_VAL) in i915_tiling_ok()
137 if (stride / 128 > I965_FENCE_MAX_PITCH_VAL) in i915_tiling_ok()
[all …]
/drivers/gpu/drm/msm/disp/dpu1/
Dmsm_media_info.h825 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 …]
/drivers/staging/media/atomisp/pci/runtime/frame/src/
Dframe.c34 unsigned int stride,
609 config->stride = HIVE_ISP_DDR_WORD_BYTES * words_per_line; in ia_css_dma_configure_from_info()
622 unsigned int stride, in frame_init_plane() argument
628 plane->stride = stride; in frame_init_plane()
638 unsigned int stride; in frame_init_single_plane() local
640 stride = subpixels_per_line * bytes_per_pixel; in frame_init_single_plane()
647 frame->data_bytes = stride * CEIL_MUL2(height, 2); in frame_init_single_plane()
648 frame_init_plane(plane, subpixels_per_line, stride, height, 0); in frame_init_single_plane()
659 unsigned int stride; in frame_init_raw_single_plane() local
663 stride = HIVE_ISP_DDR_WORD_BYTES * in frame_init_raw_single_plane()
[all …]
/drivers/media/pci/cx18/
Dcx18-alsa-pcm.c64 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()
/drivers/media/pci/ivtv/
Divtv-alsa-pcm.c61 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()
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()
107 length * stride); in ivtv_alsa_announce_pcm_data()
/drivers/gpu/drm/qxl/
Dqxl_image.c59 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()
/drivers/media/usb/tm6000/
Dtm6000-alsa.c171 unsigned int stride, buf_pos; in tm6000_fillbuf() local
189 stride = runtime->frame_bits >> 3; in tm6000_fillbuf()
191 if (stride == 0) { in tm6000_fillbuf()
196 length = size / stride; in tm6000_fillbuf()
204 (unsigned int)runtime->buffer_size, stride); in tm6000_fillbuf()
208 memcpy(runtime->dma_area + buf_pos * stride, buf, cnt * stride); in tm6000_fillbuf()
209 memcpy(runtime->dma_area, buf + cnt * stride, in tm6000_fillbuf()
210 length * stride - cnt * stride); in tm6000_fillbuf()
212 memcpy(runtime->dma_area + buf_pos * stride, buf, in tm6000_fillbuf()
213 length * stride); in tm6000_fillbuf()
/drivers/media/usb/cx231xx/
Dcx231xx-audio.c87 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 …]
/drivers/hwspinlock/
Dqcom_hwspinlock.c74 u32 *base, u32 *stride) in qcom_hwspinlock_probe_syscon() argument
95 ret = of_property_read_u32_index(pdev->dev.of_node, "syscon", 2, stride); in qcom_hwspinlock_probe_syscon()
113 u32 *offset, u32 *stride) in qcom_hwspinlock_probe_mmio() argument
120 *stride = 0x1000; in qcom_hwspinlock_probe_mmio()
135 u32 stride; in qcom_hwspinlock_probe() local
139 regmap = qcom_hwspinlock_probe_syscon(pdev, &base, &stride); in qcom_hwspinlock_probe()
141 regmap = qcom_hwspinlock_probe_mmio(pdev, &base, &stride); in qcom_hwspinlock_probe()
154 field.reg = base + i * stride; in qcom_hwspinlock_probe()
/drivers/gpu/drm/nouveau/
Dnouveau_bo5039.c52 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()
/drivers/media/pci/cobalt/
Dcobalt-alsa-pcm.c105 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 …]
/drivers/gpu/drm/nouveau/nvkm/subdev/bus/
Dhwsq.h16 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()
/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_2/
Dia_css_sdis2.host.c45 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()
/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
Dramfuc.h17 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()
/drivers/video/fbdev/
Dsh7760fb.c200 unsigned long sbase, dstn_off, ldsarl, stride; in sh7760fb_set_par() local
268 stride = (par->rot) ? vtln : hdcn; in sh7760fb_set_par()
270 stride *= (bpp + 7) >> 3; in sh7760fb_set_par()
273 stride >>= 3; in sh7760fb_set_par()
275 stride >>= 2; in sh7760fb_set_par()
277 stride >>= 1; in sh7760fb_set_par()
285 if (stride & bit) in sh7760fb_set_par()
289 if (stride & ~bit) in sh7760fb_set_par()
290 stride = bit << 1; /* not P-o-2, round up */ in sh7760fb_set_par()
292 iowrite16(stride, par->base + LDLAOR); in sh7760fb_set_par()
[all …]
/drivers/gpu/drm/i915/gt/
Dintel_ggtt_fencing.c72 unsigned int stride = fence->stride; in i965_write_fence_reg() local
74 GEM_BUG_ON(!IS_ALIGNED(stride, 128)); in i965_write_fence_reg()
79 val |= (u64)((stride / 128) - 1) << fence_pitch_shift; in i965_write_fence_reg()
113 unsigned int stride = fence->stride; in i915_write_fence_reg() local
118 stride /= 128; in i915_write_fence_reg()
120 stride /= 512; in i915_write_fence_reg()
121 GEM_BUG_ON(!is_power_of_2(stride)); in i915_write_fence_reg()
127 val |= ilog2(stride) << I830_FENCE_PITCH_SHIFT; in i915_write_fence_reg()
147 unsigned int stride = fence->stride; in i830_write_fence_reg() local
153 val |= ilog2(stride / 128) << I830_FENCE_PITCH_SHIFT; in i830_write_fence_reg()
[all …]
/drivers/media/test-drivers/vicodec/
Dcodec-fwht.c249 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 …]
/drivers/gpu/drm/i915/gvt/
Dfb_decoder.c152 u32 stride = stride_reg; in intel_vgpu_get_stride() local
157 stride = stride_reg * 64; in intel_vgpu_get_stride()
160 stride = stride_reg * 512; in intel_vgpu_get_stride()
163 stride = stride_reg * 128; in intel_vgpu_get_stride()
167 stride = stride_reg * 64; in intel_vgpu_get_stride()
169 stride = stride_reg * 128; in intel_vgpu_get_stride()
179 return stride; in intel_vgpu_get_stride()
258 plane->stride = intel_vgpu_get_stride(vgpu, pipe, plane->tiled, in intel_vgpu_decode_primary_plane()
485 plane->stride = vgpu_vreg_t(vgpu, SPRSTRIDE(pipe)) & in intel_vgpu_decode_sprite_plane()
Ddmabuf.c228 unsigned int stride = 0; in vgpu_create_gem() local
236 stride = info->stride; in vgpu_create_gem()
241 stride = info->stride; in vgpu_create_gem()
247 obj->tiling_and_stride = tiling_mode | stride; in vgpu_create_gem()
283 info->stride = p.stride; in vgpu_get_plane_info()
313 info->stride = c.width * (c.bpp / 8); in vgpu_get_plane_info()
331 info->size = info->stride * roundup(info->height, tile_height); in vgpu_get_plane_info()
411 gvt_dmabuf->stride = fb_info->stride; in update_fb_info()
/drivers/gpu/drm/
Ddrm_dumb_buffers.c64 u32 cpp, stride, size; in drm_mode_create_dumb() local
77 stride = cpp * args->width; in drm_mode_create_dumb()
78 if (args->height > U32_MAX / stride) in drm_mode_create_dumb()
82 size = args->height * stride; in drm_mode_create_dumb()
/drivers/net/ethernet/netronome/nfp/
Dnfp_netvf_main.c78 int stride; in nfp_netvf_pci_probe() local
128 stride = 2; in nfp_netvf_pci_probe()
135 stride = 4; in nfp_netvf_pci_probe()
152 tx_bar_sz = NFP_QCP_QUEUE_ADDR_SZ * max_tx_rings * stride; in nfp_netvf_pci_probe()
153 rx_bar_sz = NFP_QCP_QUEUE_ADDR_SZ * max_rx_rings * stride; in nfp_netvf_pci_probe()
184 nn->stride_tx = stride; in nfp_netvf_pci_probe()
185 nn->stride_rx = stride; in nfp_netvf_pci_probe()
/drivers/staging/media/atomisp/pci/isp/kernels/ipu2_io_ls/bayer_io_ls/
Dia_css_bayer_io.host.c60 to->stride = config.stride; in ia_css_bayer_io_config()
86 to->stride = config.stride; in ia_css_bayer_io_config()
/drivers/staging/media/atomisp/pci/isp/kernels/ipu2_io_ls/yuv444_io_ls/
Dia_css_yuv444_io.host.c60 to->stride = config.stride; in ia_css_yuv444_io_config()
86 to->stride = config.stride; in ia_css_yuv444_io_config()
/drivers/gpu/drm/tiny/
Dsimpledrm.c116 return simplefb_get_validated_int(dev, "stride", pd->stride); in simplefb_get_stride_pd()
175 u32 stride; in simplefb_get_stride_of() local
176 int ret = simplefb_read_u32_of(dev, of_node, "stride", &stride); in simplefb_get_stride_of()
180 return simplefb_get_validated_int(dev, "stride", stride); in simplefb_get_stride_of()
469 int width, height, stride; in simpledrm_device_init_fb() local
483 stride = simplefb_get_stride_pd(dev, pd); in simpledrm_device_init_fb()
484 if (stride < 0) in simpledrm_device_init_fb()
485 return stride; in simpledrm_device_init_fb()
496 stride = simplefb_get_stride_of(dev, of_node); in simpledrm_device_init_fb()
497 if (stride < 0) in simpledrm_device_init_fb()
[all …]
/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_mman.c23 unsigned int stride; member
41 y = div64_u64_rem(v, tile->stride, &x); in tiled_offset()
42 v = div64_u64_rem(y, tile->height, &y) * tile->stride * tile->height; in tiled_offset()
97 err = i915_gem_object_set_tiling(obj, tile->tiling, tile->stride); in check_partial_mapping()
100 tile->tiling, tile->stride, err); in check_partial_mapping()
105 GEM_BUG_ON(i915_gem_object_get_stride(obj) != tile->stride); in check_partial_mapping()
156 vma->fence ? vma->fence->id : -1, tile->tiling, tile->stride, in check_partial_mapping()
182 err = i915_gem_object_set_tiling(obj, tile->tiling, tile->stride); in check_partial_mappings()
185 tile->tiling, tile->stride, err); in check_partial_mappings()
190 GEM_BUG_ON(i915_gem_object_get_stride(obj) != tile->stride); in check_partial_mappings()
[all …]

12345678910>>...12