vde 270 arch/m68k/include/asm/atarihw.h u_short vde; vde 257 drivers/gpu/drm/ast/ast_drv.h u32 vde; vde 198 drivers/gpu/drm/ast/ast_mode.c adjusted_mode->crtc_vblank_start = vbios_mode->enh_table->vde + vborder; vde 200 drivers/gpu/drm/ast/ast_mode.c adjusted_mode->crtc_vsync_start = vbios_mode->enh_table->vde + vborder + vde 202 drivers/gpu/drm/ast/ast_mode.c adjusted_mode->crtc_vsync_end = (vbios_mode->enh_table->vde + vborder + vde 258 drivers/gpu/drm/ingenic/ingenic-drm.c unsigned int vpe, vds, vde, vt, hpe, hds, hde, ht; vde 262 drivers/gpu/drm/ingenic/ingenic-drm.c vde = vds + mode->vdisplay; vde 263 drivers/gpu/drm/ingenic/ingenic-drm.c vt = vde + mode->vsync_start - mode->vdisplay; vde 287 drivers/gpu/drm/ingenic/ingenic-drm.c vde << JZ_LCD_DAV_VDE_OFFSET); vde 22 drivers/staging/media/tegra-vde/dmabuf-cache.c struct tegra_vde *vde; vde 35 drivers/staging/media/tegra-vde/dmabuf-cache.c if (entry->vde->domain) vde 36 drivers/staging/media/tegra-vde/dmabuf-cache.c tegra_vde_iommu_unmap(entry->vde, entry->iova); vde 49 drivers/staging/media/tegra-vde/dmabuf-cache.c struct tegra_vde *vde; vde 53 drivers/staging/media/tegra-vde/dmabuf-cache.c vde = entry->vde; vde 55 drivers/staging/media/tegra-vde/dmabuf-cache.c mutex_lock(&vde->map_lock); vde 57 drivers/staging/media/tegra-vde/dmabuf-cache.c mutex_unlock(&vde->map_lock); vde 60 drivers/staging/media/tegra-vde/dmabuf-cache.c int tegra_vde_dmabuf_cache_map(struct tegra_vde *vde, vde 66 drivers/staging/media/tegra-vde/dmabuf-cache.c struct device *dev = vde->miscdev.parent; vde 73 drivers/staging/media/tegra-vde/dmabuf-cache.c mutex_lock(&vde->map_lock); vde 75 drivers/staging/media/tegra-vde/dmabuf-cache.c list_for_each_entry(entry, &vde->map_list, list) { vde 87 drivers/staging/media/tegra-vde/dmabuf-cache.c if (vde->domain) vde 88 drivers/staging/media/tegra-vde/dmabuf-cache.c *addrp = iova_dma_addr(&vde->iova, entry->iova); vde 109 drivers/staging/media/tegra-vde/dmabuf-cache.c if (!vde->domain && sgt->nents > 1) { vde 121 drivers/staging/media/tegra-vde/dmabuf-cache.c if (vde->domain) { vde 122 drivers/staging/media/tegra-vde/dmabuf-cache.c err = tegra_vde_iommu_map(vde, sgt, &iova, dmabuf->size); vde 126 drivers/staging/media/tegra-vde/dmabuf-cache.c *addrp = iova_dma_addr(&vde->iova, iova); vde 133 drivers/staging/media/tegra-vde/dmabuf-cache.c list_add(&entry->list, &vde->map_list); vde 137 drivers/staging/media/tegra-vde/dmabuf-cache.c entry->vde = vde; vde 145 drivers/staging/media/tegra-vde/dmabuf-cache.c mutex_unlock(&vde->map_lock); vde 156 drivers/staging/media/tegra-vde/dmabuf-cache.c mutex_unlock(&vde->map_lock); vde 161 drivers/staging/media/tegra-vde/dmabuf-cache.c void tegra_vde_dmabuf_cache_unmap(struct tegra_vde *vde, vde 167 drivers/staging/media/tegra-vde/dmabuf-cache.c mutex_lock(&vde->map_lock); vde 169 drivers/staging/media/tegra-vde/dmabuf-cache.c list_for_each_entry(entry, &vde->map_list, list) { vde 184 drivers/staging/media/tegra-vde/dmabuf-cache.c mutex_unlock(&vde->map_lock); vde 187 drivers/staging/media/tegra-vde/dmabuf-cache.c void tegra_vde_dmabuf_cache_unmap_sync(struct tegra_vde *vde) vde 191 drivers/staging/media/tegra-vde/dmabuf-cache.c mutex_lock(&vde->map_lock); vde 193 drivers/staging/media/tegra-vde/dmabuf-cache.c list_for_each_entry_safe(entry, tmp, &vde->map_list, list) { vde 203 drivers/staging/media/tegra-vde/dmabuf-cache.c mutex_unlock(&vde->map_lock); vde 206 drivers/staging/media/tegra-vde/dmabuf-cache.c void tegra_vde_dmabuf_cache_unmap_all(struct tegra_vde *vde) vde 210 drivers/staging/media/tegra-vde/dmabuf-cache.c mutex_lock(&vde->map_lock); vde 212 drivers/staging/media/tegra-vde/dmabuf-cache.c while (!list_empty(&vde->map_list)) { vde 213 drivers/staging/media/tegra-vde/dmabuf-cache.c list_for_each_entry_safe(entry, tmp, &vde->map_list, list) { vde 220 drivers/staging/media/tegra-vde/dmabuf-cache.c mutex_unlock(&vde->map_lock); vde 222 drivers/staging/media/tegra-vde/dmabuf-cache.c mutex_lock(&vde->map_lock); vde 225 drivers/staging/media/tegra-vde/dmabuf-cache.c mutex_unlock(&vde->map_lock); vde 19 drivers/staging/media/tegra-vde/iommu.c int tegra_vde_iommu_map(struct tegra_vde *vde, vde 29 drivers/staging/media/tegra-vde/iommu.c end = vde->domain->geometry.aperture_end; vde 30 drivers/staging/media/tegra-vde/iommu.c size = iova_align(&vde->iova, size); vde 31 drivers/staging/media/tegra-vde/iommu.c shift = iova_shift(&vde->iova); vde 33 drivers/staging/media/tegra-vde/iommu.c iova = alloc_iova(&vde->iova, size >> shift, end >> shift, true); vde 37 drivers/staging/media/tegra-vde/iommu.c addr = iova_dma_addr(&vde->iova, iova); vde 39 drivers/staging/media/tegra-vde/iommu.c size = iommu_map_sg(vde->domain, addr, sgt->sgl, sgt->nents, vde 42 drivers/staging/media/tegra-vde/iommu.c __free_iova(&vde->iova, iova); vde 51 drivers/staging/media/tegra-vde/iommu.c void tegra_vde_iommu_unmap(struct tegra_vde *vde, struct iova *iova) vde 53 drivers/staging/media/tegra-vde/iommu.c unsigned long shift = iova_shift(&vde->iova); vde 55 drivers/staging/media/tegra-vde/iommu.c dma_addr_t addr = iova_dma_addr(&vde->iova, iova); vde 57 drivers/staging/media/tegra-vde/iommu.c iommu_unmap(vde->domain, addr, size); vde 58 drivers/staging/media/tegra-vde/iommu.c __free_iova(&vde->iova, iova); vde 61 drivers/staging/media/tegra-vde/iommu.c int tegra_vde_iommu_init(struct tegra_vde *vde) vde 63 drivers/staging/media/tegra-vde/iommu.c struct device *dev = vde->miscdev.parent; vde 69 drivers/staging/media/tegra-vde/iommu.c vde->group = iommu_group_get(dev); vde 70 drivers/staging/media/tegra-vde/iommu.c if (!vde->group) vde 81 drivers/staging/media/tegra-vde/iommu.c vde->domain = iommu_domain_alloc(&platform_bus_type); vde 82 drivers/staging/media/tegra-vde/iommu.c if (!vde->domain) { vde 91 drivers/staging/media/tegra-vde/iommu.c order = __ffs(vde->domain->pgsize_bitmap); vde 92 drivers/staging/media/tegra-vde/iommu.c init_iova_domain(&vde->iova, 1UL << order, 0); vde 94 drivers/staging/media/tegra-vde/iommu.c err = iommu_attach_group(vde->domain, vde->group); vde 102 drivers/staging/media/tegra-vde/iommu.c shift = iova_shift(&vde->iova); vde 103 drivers/staging/media/tegra-vde/iommu.c iova = reserve_iova(&vde->iova, 0x60000000 >> shift, vde 110 drivers/staging/media/tegra-vde/iommu.c vde->iova_resv_static_addresses = iova; vde 118 drivers/staging/media/tegra-vde/iommu.c iova = reserve_iova(&vde->iova, 0xffffffff >> shift, vde 125 drivers/staging/media/tegra-vde/iommu.c vde->iova_resv_last_page = iova; vde 130 drivers/staging/media/tegra-vde/iommu.c __free_iova(&vde->iova, vde->iova_resv_static_addresses); vde 132 drivers/staging/media/tegra-vde/iommu.c iommu_detach_group(vde->domain, vde->group); vde 134 drivers/staging/media/tegra-vde/iommu.c put_iova_domain(&vde->iova); vde 137 drivers/staging/media/tegra-vde/iommu.c iommu_domain_free(vde->domain); vde 139 drivers/staging/media/tegra-vde/iommu.c iommu_group_put(vde->group); vde 144 drivers/staging/media/tegra-vde/iommu.c void tegra_vde_iommu_deinit(struct tegra_vde *vde) vde 146 drivers/staging/media/tegra-vde/iommu.c if (vde->domain) { vde 147 drivers/staging/media/tegra-vde/iommu.c __free_iova(&vde->iova, vde->iova_resv_last_page); vde 148 drivers/staging/media/tegra-vde/iommu.c __free_iova(&vde->iova, vde->iova_resv_static_addresses); vde 149 drivers/staging/media/tegra-vde/iommu.c iommu_detach_group(vde->domain, vde->group); vde 150 drivers/staging/media/tegra-vde/iommu.c put_iova_domain(&vde->iova); vde 152 drivers/staging/media/tegra-vde/iommu.c iommu_domain_free(vde->domain); vde 153 drivers/staging/media/tegra-vde/iommu.c iommu_group_put(vde->group); vde 155 drivers/staging/media/tegra-vde/iommu.c vde->domain = NULL; vde 14 drivers/staging/media/tegra-vde/trace.h TP_PROTO(struct tegra_vde *vde, void __iomem *base, vde 16 drivers/staging/media/tegra-vde/trace.h TP_ARGS(vde, base, offset, value), vde 18 drivers/staging/media/tegra-vde/trace.h __string(hw_name, tegra_vde_reg_base_name(vde, base)) vde 23 drivers/staging/media/tegra-vde/trace.h __assign_str(hw_name, tegra_vde_reg_base_name(vde, base)); vde 32 drivers/staging/media/tegra-vde/trace.h TP_PROTO(struct tegra_vde *vde, void __iomem *base, vde 34 drivers/staging/media/tegra-vde/trace.h TP_ARGS(vde, base, offset, value)); vde 36 drivers/staging/media/tegra-vde/trace.h TP_PROTO(struct tegra_vde *vde, void __iomem *base, vde 38 drivers/staging/media/tegra-vde/trace.h TP_ARGS(vde, base, offset, value)); vde 93 drivers/staging/media/tegra-vde/trace.h #define TRACE_INCLUDE_PATH ../../drivers/staging/media/tegra-vde vde 53 drivers/staging/media/tegra-vde/vde.c static void tegra_vde_writel(struct tegra_vde *vde, vde 56 drivers/staging/media/tegra-vde/vde.c trace_vde_writel(vde, base, offset, value); vde 61 drivers/staging/media/tegra-vde/vde.c static u32 tegra_vde_readl(struct tegra_vde *vde, vde 66 drivers/staging/media/tegra-vde/vde.c trace_vde_readl(vde, base, offset, value); vde 71 drivers/staging/media/tegra-vde/vde.c static void tegra_vde_set_bits(struct tegra_vde *vde, vde 74 drivers/staging/media/tegra-vde/vde.c u32 value = tegra_vde_readl(vde, base, offset); vde 76 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, value | mask, base, offset); vde 79 drivers/staging/media/tegra-vde/vde.c static int tegra_vde_wait_mbe(struct tegra_vde *vde) vde 83 drivers/staging/media/tegra-vde/vde.c return readl_relaxed_poll_timeout(vde->mbe + 0x8C, tmp, vde 87 drivers/staging/media/tegra-vde/vde.c static int tegra_vde_setup_mbe_frame_idx(struct tegra_vde *vde, vde 97 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0xD0000000 | (0 << 23), vde->mbe, 0x80); vde 98 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0xD0200000 | (0 << 23), vde->mbe, 0x80); vde 100 drivers/staging/media/tegra-vde/vde.c err = tegra_vde_wait_mbe(vde); vde 108 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0xD0000000 | (frame_idx << 23), vde 109 drivers/staging/media/tegra-vde/vde.c vde->mbe, 0x80); vde 110 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0xD0200000 | (frame_idx << 23), vde 111 drivers/staging/media/tegra-vde/vde.c vde->mbe, 0x80); vde 120 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, value, vde->mbe, 0x80); vde 122 drivers/staging/media/tegra-vde/vde.c err = tegra_vde_wait_mbe(vde); vde 133 drivers/staging/media/tegra-vde/vde.c static void tegra_vde_mbe_set_0xa_reg(struct tegra_vde *vde, int reg, u32 val) vde 135 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0xA0000000 | (reg << 24) | (val & 0xFFFF), vde 136 drivers/staging/media/tegra-vde/vde.c vde->mbe, 0x80); vde 137 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0xA0000000 | ((reg + 1) << 24) | (val >> 16), vde 138 drivers/staging/media/tegra-vde/vde.c vde->mbe, 0x80); vde 141 drivers/staging/media/tegra-vde/vde.c static int tegra_vde_wait_bsev(struct tegra_vde *vde, bool wait_dma) vde 143 drivers/staging/media/tegra-vde/vde.c struct device *dev = vde->miscdev.parent; vde 147 drivers/staging/media/tegra-vde/vde.c err = readl_relaxed_poll_timeout(vde->bsev + INTR_STATUS, value, vde 154 drivers/staging/media/tegra-vde/vde.c err = readl_relaxed_poll_timeout(vde->bsev + INTR_STATUS, value, vde 164 drivers/staging/media/tegra-vde/vde.c err = readl_relaxed_poll_timeout(vde->bsev + INTR_STATUS, value, vde 174 drivers/staging/media/tegra-vde/vde.c static int tegra_vde_push_to_bsev_icmdqueue(struct tegra_vde *vde, vde 177 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, value, vde->bsev, ICMDQUE_WR); vde 179 drivers/staging/media/tegra-vde/vde.c return tegra_vde_wait_bsev(vde, wait_dma); vde 182 drivers/staging/media/tegra-vde/vde.c static void tegra_vde_setup_frameid(struct tegra_vde *vde, vde 193 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, y_addr >> 8, vde->frameid, 0x000 + frameid * 4); vde 194 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, cb_addr >> 8, vde->frameid, 0x100 + frameid * 4); vde 195 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, cr_addr >> 8, vde->frameid, 0x180 + frameid * 4); vde 196 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, value1, vde->frameid, 0x080 + frameid * 4); vde 197 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, value2, vde->frameid, 0x280 + frameid * 4); vde 200 drivers/staging/media/tegra-vde/vde.c static void tegra_setup_frameidx(struct tegra_vde *vde, vde 208 drivers/staging/media/tegra-vde/vde.c tegra_vde_setup_frameid(vde, &frames[idx], idx, vde 212 drivers/staging/media/tegra-vde/vde.c tegra_vde_setup_frameid(vde, NULL, idx, 0, 0); vde 215 drivers/staging/media/tegra-vde/vde.c static void tegra_vde_setup_iram_entry(struct tegra_vde *vde, vde 220 drivers/staging/media/tegra-vde/vde.c u32 *iram_tables = vde->iram; vde 228 drivers/staging/media/tegra-vde/vde.c static void tegra_vde_setup_iram_tables(struct tegra_vde *vde, vde 255 drivers/staging/media/tegra-vde/vde.c tegra_vde_setup_iram_entry(vde, 0, i, value, aux_addr); vde 256 drivers/staging/media/tegra-vde/vde.c tegra_vde_setup_iram_entry(vde, 1, i, value, aux_addr); vde 257 drivers/staging/media/tegra-vde/vde.c tegra_vde_setup_iram_entry(vde, 2, i, value, aux_addr); vde 258 drivers/staging/media/tegra-vde/vde.c tegra_vde_setup_iram_entry(vde, 3, i, value, aux_addr); vde 281 drivers/staging/media/tegra-vde/vde.c tegra_vde_setup_iram_entry(vde, 2, i, value, aux_addr); vde 294 drivers/staging/media/tegra-vde/vde.c tegra_vde_setup_iram_entry(vde, 2, i, value, aux_addr); vde 298 drivers/staging/media/tegra-vde/vde.c static int tegra_vde_setup_hw_context(struct tegra_vde *vde, vde 305 drivers/staging/media/tegra-vde/vde.c struct device *dev = vde->miscdev.parent; vde 309 drivers/staging/media/tegra-vde/vde.c tegra_vde_set_bits(vde, 0x000A, vde->sxe, 0xF0); vde 310 drivers/staging/media/tegra-vde/vde.c tegra_vde_set_bits(vde, 0x000B, vde->bsev, CMDQUE_CONTROL); vde 311 drivers/staging/media/tegra-vde/vde.c tegra_vde_set_bits(vde, 0x8002, vde->mbe, 0x50); vde 312 drivers/staging/media/tegra-vde/vde.c tegra_vde_set_bits(vde, 0x000A, vde->mbe, 0xA0); vde 313 drivers/staging/media/tegra-vde/vde.c tegra_vde_set_bits(vde, 0x000A, vde->ppe, 0x14); vde 314 drivers/staging/media/tegra-vde/vde.c tegra_vde_set_bits(vde, 0x000A, vde->ppe, 0x28); vde 315 drivers/staging/media/tegra-vde/vde.c tegra_vde_set_bits(vde, 0x0A00, vde->mce, 0x08); vde 316 drivers/staging/media/tegra-vde/vde.c tegra_vde_set_bits(vde, 0x000A, vde->tfe, 0x00); vde 317 drivers/staging/media/tegra-vde/vde.c tegra_vde_set_bits(vde, 0x0005, vde->vdma, 0x04); vde 319 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0x00000000, vde->vdma, 0x1C); vde 320 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0x00000000, vde->vdma, 0x00); vde 321 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0x00000007, vde->vdma, 0x04); vde 322 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0x00000007, vde->frameid, 0x200); vde 323 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0x00000005, vde->tfe, 0x04); vde 324 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0x00000000, vde->mbe, 0x84); vde 325 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0x00000010, vde->sxe, 0x08); vde 326 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0x00000150, vde->sxe, 0x54); vde 327 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0x0000054C, vde->sxe, 0x58); vde 328 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0x00000E34, vde->sxe, 0x5C); vde 329 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0x063C063C, vde->mce, 0x10); vde 330 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0x0003FC00, vde->bsev, INTR_STATUS); vde 331 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0x0000150D, vde->bsev, BSE_CONFIG); vde 332 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0x00000100, vde->bsev, BSE_INT_ENB); vde 333 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0x00000000, vde->bsev, 0x98); vde 334 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0x00000060, vde->bsev, 0x9C); vde 336 drivers/staging/media/tegra-vde/vde.c memset(vde->iram + 128, 0, macroblocks_nb / 2); vde 338 drivers/staging/media/tegra-vde/vde.c tegra_setup_frameidx(vde, dpb_frames, ctx->dpb_frames_nb, vde 341 drivers/staging/media/tegra-vde/vde.c tegra_vde_setup_iram_tables(vde, dpb_frames, vde 351 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0x00000000, vde->bsev, 0x8C); vde 352 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, bitstream_data_addr + bitstream_data_size, vde 353 drivers/staging/media/tegra-vde/vde.c vde->bsev, 0x54); vde 357 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, value, vde->bsev, 0x88); vde 359 drivers/staging/media/tegra-vde/vde.c err = tegra_vde_wait_bsev(vde, false); vde 363 drivers/staging/media/tegra-vde/vde.c err = tegra_vde_push_to_bsev_icmdqueue(vde, 0x800003FC, false); vde 368 drivers/staging/media/tegra-vde/vde.c value |= ((vde->iram_lists_addr + 512) >> 2) & 0xFFFF; vde 370 drivers/staging/media/tegra-vde/vde.c err = tegra_vde_push_to_bsev_icmdqueue(vde, value, true); vde 374 drivers/staging/media/tegra-vde/vde.c err = tegra_vde_push_to_bsev_icmdqueue(vde, 0x840F054C, false); vde 378 drivers/staging/media/tegra-vde/vde.c err = tegra_vde_push_to_bsev_icmdqueue(vde, 0x80000080, false); vde 382 drivers/staging/media/tegra-vde/vde.c value = 0x0E340000 | ((vde->iram_lists_addr >> 2) & 0xFFFF); vde 384 drivers/staging/media/tegra-vde/vde.c err = tegra_vde_push_to_bsev_icmdqueue(vde, value, true); vde 392 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, value, vde->sxe, 0x10); vde 400 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, value, vde->sxe, 0x40); vde 406 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, value, vde->sxe, 0x44); vde 413 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, value, vde->sxe, 0x48); vde 418 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, value, vde->sxe, 0x4C); vde 423 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, value, vde->sxe, 0x68); vde 425 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, bitstream_data_addr, vde->sxe, 0x6C); vde 431 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, value, vde->mbe, 0x80); vde 438 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, value, vde->mbe, 0x80); vde 440 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0xF4000001, vde->mbe, 0x80); vde 441 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0x20000000, vde->mbe, 0x80); vde 442 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0xF4000101, vde->mbe, 0x80); vde 447 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, value, vde->mbe, 0x80); vde 449 drivers/staging/media/tegra-vde/vde.c err = tegra_vde_setup_mbe_frame_idx(vde, vde 457 drivers/staging/media/tegra-vde/vde.c tegra_vde_mbe_set_0xa_reg(vde, 0, 0x000009FC); vde 458 drivers/staging/media/tegra-vde/vde.c tegra_vde_mbe_set_0xa_reg(vde, 2, 0x61DEAD00); vde 459 drivers/staging/media/tegra-vde/vde.c tegra_vde_mbe_set_0xa_reg(vde, 4, 0x62DEAD00); vde 460 drivers/staging/media/tegra-vde/vde.c tegra_vde_mbe_set_0xa_reg(vde, 6, 0x63DEAD00); vde 461 drivers/staging/media/tegra-vde/vde.c tegra_vde_mbe_set_0xa_reg(vde, 8, dpb_frames[0].aux_addr); vde 469 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, value, vde->mbe, 0x80); vde 471 drivers/staging/media/tegra-vde/vde.c err = tegra_vde_wait_mbe(vde); vde 480 drivers/staging/media/tegra-vde/vde.c static void tegra_vde_decode_frame(struct tegra_vde *vde, vde 483 drivers/staging/media/tegra-vde/vde.c reinit_completion(&vde->decode_completion); vde 485 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0x00000001, vde->bsev, 0x8C); vde 486 drivers/staging/media/tegra-vde/vde.c tegra_vde_writel(vde, 0x20000000 | (macroblocks_nb - 1), vde 487 drivers/staging/media/tegra-vde/vde.c vde->sxe, 0x00); vde 490 drivers/staging/media/tegra-vde/vde.c static int tegra_vde_attach_dmabuf(struct tegra_vde *vde, vde 500 drivers/staging/media/tegra-vde/vde.c struct device *dev = vde->miscdev.parent; vde 522 drivers/staging/media/tegra-vde/vde.c err = tegra_vde_dmabuf_cache_map(vde, dmabuf, dma_dir, a, addrp); vde 539 drivers/staging/media/tegra-vde/vde.c static int tegra_vde_attach_dmabufs_to_frame(struct tegra_vde *vde, vde 548 drivers/staging/media/tegra-vde/vde.c err = tegra_vde_attach_dmabuf(vde, src->y_fd, vde 556 drivers/staging/media/tegra-vde/vde.c err = tegra_vde_attach_dmabuf(vde, src->cb_fd, vde 564 drivers/staging/media/tegra-vde/vde.c err = tegra_vde_attach_dmabuf(vde, src->cr_fd, vde 577 drivers/staging/media/tegra-vde/vde.c err = tegra_vde_attach_dmabuf(vde, src->aux_fd, vde 588 drivers/staging/media/tegra-vde/vde.c tegra_vde_dmabuf_cache_unmap(vde, frame->cr_dmabuf_attachment, true); vde 590 drivers/staging/media/tegra-vde/vde.c tegra_vde_dmabuf_cache_unmap(vde, frame->cb_dmabuf_attachment, true); vde 592 drivers/staging/media/tegra-vde/vde.c tegra_vde_dmabuf_cache_unmap(vde, frame->y_dmabuf_attachment, true); vde 597 drivers/staging/media/tegra-vde/vde.c static void tegra_vde_release_frame_dmabufs(struct tegra_vde *vde, vde 604 drivers/staging/media/tegra-vde/vde.c tegra_vde_dmabuf_cache_unmap(vde, frame->aux_dmabuf_attachment, vde 607 drivers/staging/media/tegra-vde/vde.c tegra_vde_dmabuf_cache_unmap(vde, frame->cr_dmabuf_attachment, release); vde 608 drivers/staging/media/tegra-vde/vde.c tegra_vde_dmabuf_cache_unmap(vde, frame->cb_dmabuf_attachment, release); vde 609 drivers/staging/media/tegra-vde/vde.c tegra_vde_dmabuf_cache_unmap(vde, frame->y_dmabuf_attachment, release); vde 692 drivers/staging/media/tegra-vde/vde.c static int tegra_vde_ioctl_decode_h264(struct tegra_vde *vde, vde 695 drivers/staging/media/tegra-vde/vde.c struct device *dev = vde->miscdev.parent; vde 720 drivers/staging/media/tegra-vde/vde.c ret = tegra_vde_attach_dmabuf(vde, ctx.bitstream_data_fd, vde 766 drivers/staging/media/tegra-vde/vde.c ret = tegra_vde_attach_dmabufs_to_frame(vde, &dpb_frames[i], vde 774 drivers/staging/media/tegra-vde/vde.c ret = mutex_lock_interruptible(&vde->lock); vde 786 drivers/staging/media/tegra-vde/vde.c ret = reset_control_assert(vde->rst_mc); vde 793 drivers/staging/media/tegra-vde/vde.c ret = reset_control_reset(vde->rst); vde 799 drivers/staging/media/tegra-vde/vde.c ret = reset_control_deassert(vde->rst_mc); vde 806 drivers/staging/media/tegra-vde/vde.c ret = tegra_vde_setup_hw_context(vde, &ctx, dpb_frames, vde 813 drivers/staging/media/tegra-vde/vde.c tegra_vde_decode_frame(vde, macroblocks_nb); vde 816 drivers/staging/media/tegra-vde/vde.c &vde->decode_completion, msecs_to_jiffies(1000)); vde 818 drivers/staging/media/tegra-vde/vde.c bsev_ptr = tegra_vde_readl(vde, vde->bsev, 0x10); vde 819 drivers/staging/media/tegra-vde/vde.c macroblocks_nb = tegra_vde_readl(vde, vde->sxe, 0xC8) & 0x1FFF; vde 835 drivers/staging/media/tegra-vde/vde.c err = reset_control_assert(vde->rst_mc); vde 839 drivers/staging/media/tegra-vde/vde.c err = reset_control_assert(vde->rst); vde 848 drivers/staging/media/tegra-vde/vde.c mutex_unlock(&vde->lock); vde 854 drivers/staging/media/tegra-vde/vde.c tegra_vde_release_frame_dmabufs(vde, &dpb_frames[i], dma_dir, vde 865 drivers/staging/media/tegra-vde/vde.c tegra_vde_dmabuf_cache_unmap(vde, bitstream_data_dmabuf_attachment, vde 875 drivers/staging/media/tegra-vde/vde.c struct tegra_vde *vde = container_of(miscdev, struct tegra_vde, vde 880 drivers/staging/media/tegra-vde/vde.c return tegra_vde_ioctl_decode_h264(vde, arg); vde 891 drivers/staging/media/tegra-vde/vde.c struct tegra_vde *vde = container_of(miscdev, struct tegra_vde, vde 894 drivers/staging/media/tegra-vde/vde.c tegra_vde_dmabuf_cache_unmap_sync(vde); vde 907 drivers/staging/media/tegra-vde/vde.c struct tegra_vde *vde = data; vde 909 drivers/staging/media/tegra-vde/vde.c if (completion_done(&vde->decode_completion)) vde 912 drivers/staging/media/tegra-vde/vde.c tegra_vde_set_bits(vde, 0, vde->frameid, 0x208); vde 913 drivers/staging/media/tegra-vde/vde.c complete(&vde->decode_completion); vde 920 drivers/staging/media/tegra-vde/vde.c struct tegra_vde *vde = dev_get_drvdata(dev); vde 929 drivers/staging/media/tegra-vde/vde.c clk_disable_unprepare(vde->clk); vde 936 drivers/staging/media/tegra-vde/vde.c struct tegra_vde *vde = dev_get_drvdata(dev); vde 940 drivers/staging/media/tegra-vde/vde.c vde->clk, vde->rst); vde 953 drivers/staging/media/tegra-vde/vde.c struct tegra_vde *vde; vde 956 drivers/staging/media/tegra-vde/vde.c vde = devm_kzalloc(dev, sizeof(*vde), GFP_KERNEL); vde 957 drivers/staging/media/tegra-vde/vde.c if (!vde) vde 960 drivers/staging/media/tegra-vde/vde.c platform_set_drvdata(pdev, vde); vde 966 drivers/staging/media/tegra-vde/vde.c vde->sxe = devm_ioremap_resource(dev, regs); vde 967 drivers/staging/media/tegra-vde/vde.c if (IS_ERR(vde->sxe)) vde 968 drivers/staging/media/tegra-vde/vde.c return PTR_ERR(vde->sxe); vde 974 drivers/staging/media/tegra-vde/vde.c vde->bsev = devm_ioremap_resource(dev, regs); vde 975 drivers/staging/media/tegra-vde/vde.c if (IS_ERR(vde->bsev)) vde 976 drivers/staging/media/tegra-vde/vde.c return PTR_ERR(vde->bsev); vde 982 drivers/staging/media/tegra-vde/vde.c vde->mbe = devm_ioremap_resource(dev, regs); vde 983 drivers/staging/media/tegra-vde/vde.c if (IS_ERR(vde->mbe)) vde 984 drivers/staging/media/tegra-vde/vde.c return PTR_ERR(vde->mbe); vde 990 drivers/staging/media/tegra-vde/vde.c vde->ppe = devm_ioremap_resource(dev, regs); vde 991 drivers/staging/media/tegra-vde/vde.c if (IS_ERR(vde->ppe)) vde 992 drivers/staging/media/tegra-vde/vde.c return PTR_ERR(vde->ppe); vde 998 drivers/staging/media/tegra-vde/vde.c vde->mce = devm_ioremap_resource(dev, regs); vde 999 drivers/staging/media/tegra-vde/vde.c if (IS_ERR(vde->mce)) vde 1000 drivers/staging/media/tegra-vde/vde.c return PTR_ERR(vde->mce); vde 1006 drivers/staging/media/tegra-vde/vde.c vde->tfe = devm_ioremap_resource(dev, regs); vde 1007 drivers/staging/media/tegra-vde/vde.c if (IS_ERR(vde->tfe)) vde 1008 drivers/staging/media/tegra-vde/vde.c return PTR_ERR(vde->tfe); vde 1014 drivers/staging/media/tegra-vde/vde.c vde->ppb = devm_ioremap_resource(dev, regs); vde 1015 drivers/staging/media/tegra-vde/vde.c if (IS_ERR(vde->ppb)) vde 1016 drivers/staging/media/tegra-vde/vde.c return PTR_ERR(vde->ppb); vde 1022 drivers/staging/media/tegra-vde/vde.c vde->vdma = devm_ioremap_resource(dev, regs); vde 1023 drivers/staging/media/tegra-vde/vde.c if (IS_ERR(vde->vdma)) vde 1024 drivers/staging/media/tegra-vde/vde.c return PTR_ERR(vde->vdma); vde 1030 drivers/staging/media/tegra-vde/vde.c vde->frameid = devm_ioremap_resource(dev, regs); vde 1031 drivers/staging/media/tegra-vde/vde.c if (IS_ERR(vde->frameid)) vde 1032 drivers/staging/media/tegra-vde/vde.c return PTR_ERR(vde->frameid); vde 1034 drivers/staging/media/tegra-vde/vde.c vde->clk = devm_clk_get(dev, NULL); vde 1035 drivers/staging/media/tegra-vde/vde.c if (IS_ERR(vde->clk)) { vde 1036 drivers/staging/media/tegra-vde/vde.c err = PTR_ERR(vde->clk); vde 1041 drivers/staging/media/tegra-vde/vde.c vde->rst = devm_reset_control_get(dev, NULL); vde 1042 drivers/staging/media/tegra-vde/vde.c if (IS_ERR(vde->rst)) { vde 1043 drivers/staging/media/tegra-vde/vde.c err = PTR_ERR(vde->rst); vde 1048 drivers/staging/media/tegra-vde/vde.c vde->rst_mc = devm_reset_control_get_optional(dev, "mc"); vde 1049 drivers/staging/media/tegra-vde/vde.c if (IS_ERR(vde->rst_mc)) { vde 1050 drivers/staging/media/tegra-vde/vde.c err = PTR_ERR(vde->rst_mc); vde 1060 drivers/staging/media/tegra-vde/vde.c dev_name(dev), vde); vde 1066 drivers/staging/media/tegra-vde/vde.c vde->iram_pool = of_gen_pool_get(dev->of_node, "iram", 0); vde 1067 drivers/staging/media/tegra-vde/vde.c if (!vde->iram_pool) { vde 1072 drivers/staging/media/tegra-vde/vde.c vde->iram = gen_pool_dma_alloc(vde->iram_pool, vde 1073 drivers/staging/media/tegra-vde/vde.c gen_pool_size(vde->iram_pool), vde 1074 drivers/staging/media/tegra-vde/vde.c &vde->iram_lists_addr); vde 1075 drivers/staging/media/tegra-vde/vde.c if (!vde->iram) { vde 1080 drivers/staging/media/tegra-vde/vde.c INIT_LIST_HEAD(&vde->map_list); vde 1081 drivers/staging/media/tegra-vde/vde.c mutex_init(&vde->map_lock); vde 1082 drivers/staging/media/tegra-vde/vde.c mutex_init(&vde->lock); vde 1083 drivers/staging/media/tegra-vde/vde.c init_completion(&vde->decode_completion); vde 1085 drivers/staging/media/tegra-vde/vde.c vde->miscdev.minor = MISC_DYNAMIC_MINOR; vde 1086 drivers/staging/media/tegra-vde/vde.c vde->miscdev.name = "tegra_vde"; vde 1087 drivers/staging/media/tegra-vde/vde.c vde->miscdev.fops = &tegra_vde_fops; vde 1088 drivers/staging/media/tegra-vde/vde.c vde->miscdev.parent = dev; vde 1090 drivers/staging/media/tegra-vde/vde.c err = tegra_vde_iommu_init(vde); vde 1096 drivers/staging/media/tegra-vde/vde.c err = misc_register(&vde->miscdev); vde 1115 drivers/staging/media/tegra-vde/vde.c misc_deregister(&vde->miscdev); vde 1118 drivers/staging/media/tegra-vde/vde.c tegra_vde_iommu_deinit(vde); vde 1121 drivers/staging/media/tegra-vde/vde.c gen_pool_free(vde->iram_pool, (unsigned long)vde->iram, vde 1122 drivers/staging/media/tegra-vde/vde.c gen_pool_size(vde->iram_pool)); vde 1129 drivers/staging/media/tegra-vde/vde.c struct tegra_vde *vde = platform_get_drvdata(pdev); vde 1142 drivers/staging/media/tegra-vde/vde.c misc_deregister(&vde->miscdev); vde 1144 drivers/staging/media/tegra-vde/vde.c tegra_vde_dmabuf_cache_unmap_all(vde); vde 1145 drivers/staging/media/tegra-vde/vde.c tegra_vde_iommu_deinit(vde); vde 1147 drivers/staging/media/tegra-vde/vde.c gen_pool_free(vde->iram_pool, (unsigned long)vde->iram, vde 1148 drivers/staging/media/tegra-vde/vde.c gen_pool_size(vde->iram_pool)); vde 1156 drivers/staging/media/tegra-vde/vde.c struct tegra_vde *vde = dev_get_drvdata(dev); vde 1159 drivers/staging/media/tegra-vde/vde.c mutex_lock(&vde->lock); vde 1170 drivers/staging/media/tegra-vde/vde.c struct tegra_vde *vde = dev_get_drvdata(dev); vde 1177 drivers/staging/media/tegra-vde/vde.c mutex_unlock(&vde->lock); vde 55 drivers/staging/media/tegra-vde/vde.h int tegra_vde_iommu_init(struct tegra_vde *vde); vde 56 drivers/staging/media/tegra-vde/vde.h void tegra_vde_iommu_deinit(struct tegra_vde *vde); vde 57 drivers/staging/media/tegra-vde/vde.h int tegra_vde_iommu_map(struct tegra_vde *vde, vde 61 drivers/staging/media/tegra-vde/vde.h void tegra_vde_iommu_unmap(struct tegra_vde *vde, struct iova *iova); vde 63 drivers/staging/media/tegra-vde/vde.h int tegra_vde_dmabuf_cache_map(struct tegra_vde *vde, vde 68 drivers/staging/media/tegra-vde/vde.h void tegra_vde_dmabuf_cache_unmap(struct tegra_vde *vde, vde 71 drivers/staging/media/tegra-vde/vde.h void tegra_vde_dmabuf_cache_unmap_sync(struct tegra_vde *vde); vde 72 drivers/staging/media/tegra-vde/vde.h void tegra_vde_dmabuf_cache_unmap_all(struct tegra_vde *vde); vde 75 drivers/staging/media/tegra-vde/vde.h tegra_vde_reg_base_name(struct tegra_vde *vde, void __iomem *base) vde 77 drivers/staging/media/tegra-vde/vde.h if (vde->sxe == base) vde 80 drivers/staging/media/tegra-vde/vde.h if (vde->bsev == base) vde 83 drivers/staging/media/tegra-vde/vde.h if (vde->mbe == base) vde 86 drivers/staging/media/tegra-vde/vde.h if (vde->ppe == base) vde 89 drivers/staging/media/tegra-vde/vde.h if (vde->mce == base) vde 92 drivers/staging/media/tegra-vde/vde.h if (vde->tfe == base) vde 95 drivers/staging/media/tegra-vde/vde.h if (vde->ppb == base) vde 98 drivers/staging/media/tegra-vde/vde.h if (vde->vdma == base) vde 101 drivers/staging/media/tegra-vde/vde.h if (vde->frameid == base) vde 1134 drivers/usb/misc/sisusbvga/sisusb_con.c unsigned char ovr, vde, fsr; vde 1148 drivers/usb/misc/sisusbvga/sisusb_con.c vde = maxscan & 0xff; vde 1153 drivers/usb/misc/sisusbvga/sisusb_con.c sisusb_setidxreg(sisusb, SISCR, 0x12, vde); vde 1226 drivers/video/console/vgacon.c unsigned char ovr, vde, fsr; vde 1249 drivers/video/console/vgacon.c vde = maxscan & 0xff; /* Vertical display end reg */ vde 1260 drivers/video/console/vgacon.c outb_p(vde, vga_video_port_val); vde 124 drivers/video/fbdev/atafb.c short vft, vbb, vbe, vdb, vde, vss; vde 152 drivers/video/fbdev/atafb.c #define VDE hw.falcon.vde vde 1403 drivers/video/fbdev/atafb.c var->yres = hw->vde - hw->vdb; vde 1502 drivers/video/fbdev/atafb.c var->lower_margin = (hw->vft + 1 - hw->vde + 1) / 2; /* round up */ vde 1558 drivers/video/fbdev/atafb.c hw->vde = videl.vde; vde 1620 drivers/video/fbdev/atafb.c videl.vde = hw->vde;