/Linux-v6.1/drivers/gpu/drm/i915/gem/ |
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 …]
|
/Linux-v6.1/arch/ia64/lib/ |
D | flush.S | 8 * 05/28/05 Zoltan Menyhart Dynamic stride size 33 ld8 r20=[r3] // r20: stride shift 36 shr.u r23=in0,r20 // start / (stride size) 37 shr.u r22=r22,r20 // (last byte address) / (stride size) 38 shl r21=r21,r20 // r21: stride size of the i-cache(s) 42 // "start" rounded down to stride boundary 54 add r24=r21,r24 // we flush "stride size" bytes per iteration 87 ld8 r20=[r3] // r20: stride shift 90 shr.u r23=in0,r20 // start / (stride size) 91 shr.u r22=r22,r20 // (last byte address) / (stride size) [all …]
|
/Linux-v6.1/arch/powerpc/sysdev/ |
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 …]
|
/Linux-v6.1/drivers/fpga/ |
D | intel-m10-bmc-sec-update.c | 41 unsigned int stride; in show_root_entry_hash() local 44 stride = regmap_get_reg_stride(sec->m10bmc->regmap); in show_root_entry_hash() 53 if ((sha_num_bytes % stride) || in show_root_entry_hash() 62 hash, sha_num_bytes / stride); in show_root_entry_hash() 65 reh_addr, sha_num_bytes / stride, ret); in show_root_entry_hash() 93 unsigned int i, stride, size = CSK_32ARRAY_SIZE * sizeof(u32); in show_canceled_csk() local 100 stride = regmap_get_reg_stride(sec->m10bmc->regmap); in show_canceled_csk() 101 if (size % stride) { in show_canceled_csk() 103 "CSK vector size (0x%x) not aligned to stride (0x%x)\n", in show_canceled_csk() 104 size, stride); in show_canceled_csk() [all …]
|
/Linux-v6.1/drivers/hwspinlock/ |
D | qcom_hwspinlock.c | 24 u32 stride; member 74 .stride = 0x4, 87 .stride = 0x80, 101 .stride = 0x1000, 118 u32 *base, u32 *stride) in qcom_hwspinlock_probe_syscon() argument 139 ret = of_property_read_u32_index(pdev->dev.of_node, "syscon", 2, stride); in qcom_hwspinlock_probe_syscon() 141 dev_err(&pdev->dev, "no stride syscon\n"); in qcom_hwspinlock_probe_syscon() 149 u32 *offset, u32 *stride) in qcom_hwspinlock_probe_mmio() argument 160 *stride = data->stride; in qcom_hwspinlock_probe_mmio() 175 u32 stride; in qcom_hwspinlock_probe() local [all …]
|
/Linux-v6.1/drivers/media/pci/ivtv/ |
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 …]
|
/Linux-v6.1/drivers/media/pci/cx18/ |
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-v6.1/drivers/gpu/drm/qxl/ |
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-v6.1/drivers/media/platform/mediatek/mdp3/ |
D | mtk-mdp3-regs.c | 546 /* Stride that is accepted by MDP HW */ 551 u32 stride; in mdp_fmt_get_stride() local 553 stride = (bytesperline * MDP_COLOR_BITS_PER_PIXEL(c)) in mdp_fmt_get_stride() 556 return stride; in mdp_fmt_get_stride() 559 stride = stride / 2; in mdp_fmt_get_stride() 560 return stride; in mdp_fmt_get_stride() 565 /* Stride that is accepted by MDP HW of format with contiguous planes */ 570 u32 stride = pix_stride; in mdp_fmt_get_stride_contig() local 573 return stride; in mdp_fmt_get_stride_contig() 575 stride = stride >> MDP_COLOR_GET_H_SUBSAMPLE(c); in mdp_fmt_get_stride_contig() [all …]
|
/Linux-v6.1/drivers/staging/media/atomisp/pci/runtime/frame/src/ |
D | frame.c | 34 unsigned int stride, 543 config->stride = HIVE_ISP_DDR_WORD_BYTES * words_per_line; in ia_css_dma_configure_from_info() 562 unsigned int stride, in frame_init_plane() argument 568 plane->stride = stride; in frame_init_plane() 578 unsigned int stride; in frame_init_single_plane() local 580 stride = subpixels_per_line * bytes_per_pixel; in frame_init_single_plane() 587 frame->data_bytes = stride * CEIL_MUL2(height, 2); in frame_init_single_plane() 588 frame_init_plane(plane, subpixels_per_line, stride, height, 0); in frame_init_single_plane() 599 unsigned int stride; in frame_init_raw_single_plane() local 603 stride = HIVE_ISP_DDR_WORD_BYTES * in frame_init_raw_single_plane() [all …]
|
/Linux-v6.1/drivers/media/pci/cobalt/ |
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-v6.1/drivers/gpu/drm/nouveau/nvkm/subdev/bus/ |
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-v6.1/drivers/gpu/drm/nouveau/ |
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-v6.1/drivers/media/usb/cx231xx/ |
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-v6.1/drivers/gpu/drm/tiny/ |
D | simpledrm.c | 108 return simplefb_get_validated_int(dev, "stride", pd->stride); in simplefb_get_stride_pd() 167 u32 stride; in simplefb_get_stride_of() local 168 int ret = simplefb_read_u32_of(dev, of_node, "stride", &stride); in simplefb_get_stride_of() 172 return simplefb_get_validated_int(dev, "stride", stride); in simplefb_get_stride_of() 636 int width, height, stride; in simpledrm_device_create() local 672 stride = simplefb_get_stride_pd(dev, pd); in simpledrm_device_create() 673 if (stride < 0) in simpledrm_device_create() 674 return ERR_PTR(stride); in simpledrm_device_create() 685 stride = simplefb_get_stride_of(dev, of_node); in simpledrm_device_create() 686 if (stride < 0) in simpledrm_device_create() [all …]
|
/Linux-v6.1/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
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-v6.1/drivers/staging/media/deprecated/tm6000/ |
D | tm6000-alsa.c | 171 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() 192 dprintk(1, "stride is zero\n"); 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() [all …]
|
/Linux-v6.1/drivers/video/fbdev/ |
D | sh7760fb.c | 200 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() 281 /* if rotated, stride must be power of 2 */ 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() [all …]
|
/Linux-v6.1/drivers/media/platform/amphion/ |
D | vpu_helpers.c | 121 u32 stride, u32 interlaced, u32 *pbl) in get_nv12_plane_size() argument 126 bytesperline = ALIGN(width, stride); in get_nv12_plane_size() 141 u32 stride, u32 interlaced, u32 *pbl) in get_tiled_8l128_plane_size() argument 155 bytesperline = ALIGN(bytesperline, stride); in get_tiled_8l128_plane_size() 170 u32 stride, u32 interlaced, u32 *pbl) in get_default_plane_size() argument 175 bytesperline = ALIGN(width, stride); in get_default_plane_size() 187 u32 stride, u32 interlaced, u32 *pbl) in vpu_helper_get_plane_size() argument 191 return get_nv12_plane_size(w, h, plane_no, stride, interlaced, pbl); in vpu_helper_get_plane_size() 194 return get_tiled_8l128_plane_size(fmt, w, h, plane_no, stride, interlaced, pbl); in vpu_helper_get_plane_size() 196 return get_default_plane_size(w, h, plane_no, stride, interlaced, pbl); in vpu_helper_get_plane_size()
|
/Linux-v6.1/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_2/ |
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()
|
/Linux-v6.1/arch/mips/include/asm/ |
D | mips-gic.h | 48 #define GIC_ACCESSOR_RO_INTR_REG(sz, off, stride, name) \ argument 51 return mips_gic_base + (off) + (intr * (stride)); \ 61 #define GIC_ACCESSOR_RW_INTR_REG(sz, off, stride, name) \ argument 62 GIC_ACCESSOR_RO_INTR_REG(sz, off, stride, name) \ 72 #define GIC_VX_ACCESSOR_RO_INTR_REG(sz, off, stride, name) \ argument 74 stride, vl_##name) \ 76 stride, vo_##name) 79 #define GIC_VX_ACCESSOR_RW_INTR_REG(sz, off, stride, name) \ argument 81 stride, vl_##name) \ 83 stride, vo_##name)
|
/Linux-v6.1/drivers/net/ethernet/netronome/nfp/ |
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-v6.1/drivers/gpu/drm/i915/display/ |
D | intel_fbc.c | 123 /* plane stride in pixels */ 127 unsigned int stride; in intel_fbc_plane_stride() local 129 stride = plane_state->view.color_plane[0].mapping_stride; in intel_fbc_plane_stride() 131 stride /= fb->format->cpp[0]; in intel_fbc_plane_stride() 133 return stride; in intel_fbc_plane_stride() 136 /* plane stride based cfb stride in bytes, assuming 1:1 compression limit */ 144 /* minimum acceptable cfb stride in bytes, assuming 1:1 compression limit */ 152 unsigned int stride; in skl_fbc_min_cfb_stride() local 154 /* minimum segment stride we can use */ in skl_fbc_min_cfb_stride() 155 stride = width * cpp * height / limit; in skl_fbc_min_cfb_stride() [all …]
|
/Linux-v6.1/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
D | hw_atl_llh_internal.h | 47 * parameter: semaphore {s} | stride size 0x4 | range [0, 15] 183 * parameter: descriptor {d} | stride size 0x20 | range [0, 31] 203 * parameter: dca {d} | stride size 0x4 | range [0, 31] 222 * parameter: descriptor {d} | stride size 0x20 | range [0, 31] 241 * parameter: descriptor {d} | stride size 0x20 | range [0, 31] 261 * parameter: descriptor {d} | stride size 0x20 | range [0, 31] 281 * parameter: descriptor {d} | stride size 0x20 | range [0, 31] 298 * parameter: descriptor {d} | stride size 0x20 | range [0, 31] 317 * parameter: descriptor {d} | stride size 0x20 | range [0, 31] 391 * parameter: dca {d} | stride size 0x4 | range [0, 31] [all …]
|
/Linux-v6.1/drivers/gpu/drm/i915/gvt/ |
D | dmabuf.c | 214 unsigned int stride = 0; in vgpu_create_gem() local 222 stride = info->stride; in vgpu_create_gem() 227 stride = info->stride; in vgpu_create_gem() 233 obj->tiling_and_stride = tiling_mode | stride; in vgpu_create_gem() 269 info->stride = p.stride; in vgpu_get_plane_info() 299 info->stride = c.width * (c.bpp / 8); in vgpu_get_plane_info() 317 info->size = info->stride * roundup(info->height, tile_height); in vgpu_get_plane_info() 391 gvt_dmabuf->stride = fb_info->stride; in update_fb_info()
|