| /linux/drivers/md/ |
| H A D | dm-clone-metadata.c | 71 * we use a second set of bitmaps, the dmap (dirty bitmap), which includes two 87 * and dmap. 89 * During a metadata commit we scan dmap->dirty_words and dmap->dirty_regions 93 * We use the helper dmap->dirty_words bitmap, which is smaller than the 107 * swap the currently used dmap with the unused one. This allows the metadata 127 struct dirty_map dmap[2]; member 465 static int __dirty_map_init(struct dirty_map *dmap, unsigned long nr_words, 468 dmap->changed = 0; in __dirty_map_init() argument 470 dmap in __dirty_map_init() 486 __dirty_map_exit(struct dirty_map * dmap) __dirty_map_exit() argument 734 __flush_dmap(struct dm_clone_metadata * cmd,struct dirty_map * dmap) __flush_dmap() argument 771 struct dirty_map *dmap, *next_dmap; dm_clone_metadata_pre_commit() local 836 struct dirty_map *dmap; dm_clone_set_region_hydrated() local 871 struct dirty_map *dmap; dm_clone_cond_set_range() local [all...] |
| /linux/drivers/media/pci/intel/ipu6/ |
| H A D | ipu6-mmu.c | 385 iova = alloc_iova(&mmu->dmap->iovad, n_pages, in l2_map() 386 PHYS_PFN(mmu->dmap->mmu_info->aperture_end), 0); in l2_map() 392 dma = dma_map_page(mmu->dmap->mmu_info->dev, mmu->trash_page, 0, in l2_map() 394 if (dma_mapping_error(mmu->dmap->mmu_info->dev, dma)) { 395 dev_err(mmu->dmap->mmu_info->dev, "Failed to map trash page\n"); in __ipu6_mmu_map() 408 ret = ipu6_mmu_map(mmu->dmap->mmu_info, PFN_PHYS(iova_addr), in __ipu6_mmu_unmap() 425 ipu6_mmu_unmap(mmu->dmap->mmu_info, PFN_PHYS(iova->pfn_lo), in allocate_trash_buffer() 427 dma_unmap_page(mmu->dmap->mmu_info->dev, mmu->pci_trash_page, in allocate_trash_buffer() 430 __free_iova(&mmu->dmap->iovad, iova); in allocate_trash_buffer() 539 struct ipu6_dma_mapping *dmap; in ipu6_mmu_hw_init() 614 struct ipu6_dma_mapping *dmap; alloc_dma_mapping() local 707 struct ipu6_dma_mapping *dmap = mmu->dmap; ipu6_mmu_destroy() local 799 struct ipu6_dma_mapping *dmap = mmu->dmap; ipu6_mmu_cleanup() local [all...] |
| H A D | ipu6-dma.c | 174 iova = alloc_iova(&mmu->dmap->iovad, count, in ipu6_dma_alloc() 175 PHYS_PFN(mmu->dmap->mmu_info->aperture_end), 0); in ipu6_dma_alloc() 196 ret = ipu6_mmu_map(mmu->dmap->mmu_info, in ipu6_dma_alloc() 225 pci_dma_addr = ipu6_mmu_iova_to_phys(mmu->dmap->mmu_info, in ipu6_dma_alloc() 230 ipu6_mmu_unmap(mmu->dmap->mmu_info, ipu6_iova, PAGE_SIZE); in ipu6_dma_alloc() 236 __free_iova(&mmu->dmap->iovad, iova); in ipu6_dma_alloc() 249 struct iova *iova = find_iova(&mmu->dmap->iovad, PHYS_PFN(dma_handle)); in ipu6_dma_free() 278 pci_dma_addr = ipu6_mmu_iova_to_phys(mmu->dmap->mmu_info, in ipu6_dma_free() 284 ipu6_mmu_unmap(mmu->dmap->mmu_info, PFN_PHYS(iova->pfn_lo), in ipu6_dma_free() 291 __free_iova(&mmu->dmap in ipu6_dma_free() [all...] |
| /linux/drivers/staging/media/ipu7/ |
| H A D | ipu7-mmu.c | 407 iova = alloc_iova(&mmu->dmap->iovad, n_pages, in allocate_trash_buffer() 408 PHYS_PFN(mmu->dmap->mmu_info->aperture_end), 0); in allocate_trash_buffer() 414 dma = dma_map_page(mmu->dmap->mmu_info->dev, mmu->trash_page, 0, in allocate_trash_buffer() 416 if (dma_mapping_error(mmu->dmap->mmu_info->dev, dma)) { in allocate_trash_buffer() 417 dev_err(mmu->dmap->mmu_info->dev, "Failed to map trash page\n"); in allocate_trash_buffer() 430 ret = ipu7_mmu_map(mmu->dmap->mmu_info, PFN_PHYS(iova_addr), in allocate_trash_buffer() 447 ipu7_mmu_unmap(mmu->dmap->mmu_info, PFN_PHYS(iova->pfn_lo), in allocate_trash_buffer() 449 dma_unmap_page(mmu->dmap->mmu_info->dev, mmu->pci_trash_page, in allocate_trash_buffer() 452 __free_iova(&mmu->dmap->iovad, iova); in allocate_trash_buffer() 461 mmu_info = mmu->dmap in __mmu_at_init() 654 struct ipu7_dma_mapping *dmap; alloc_dma_mapping() local 752 struct ipu7_dma_mapping *dmap = mmu->dmap; ipu7_mmu_destroy() local 846 struct ipu7_dma_mapping *dmap = mmu->dmap; ipu7_mmu_cleanup() local [all...] |
| H A D | ipu7-dma.c | 174 iova = alloc_iova(&mmu->dmap->iovad, count, in ipu7_dma_alloc() 175 PHYS_PFN(mmu->dmap->mmu_info->aperture_end), 0); in ipu7_dma_alloc() 196 ret = ipu7_mmu_map(mmu->dmap->mmu_info, in ipu7_dma_alloc() 225 pci_dma_addr = ipu7_mmu_iova_to_phys(mmu->dmap->mmu_info, in ipu7_dma_alloc() 230 ipu7_mmu_unmap(mmu->dmap->mmu_info, ipu7_iova, PAGE_SIZE); in ipu7_dma_alloc() 236 __free_iova(&mmu->dmap->iovad, iova); in ipu7_dma_alloc() 249 struct iova *iova = find_iova(&mmu->dmap->iovad, PHYS_PFN(dma_handle)); in ipu7_dma_free() 278 pci_dma_addr = ipu7_mmu_iova_to_phys(mmu->dmap->mmu_info, in ipu7_dma_free() 284 ipu7_mmu_unmap(mmu->dmap->mmu_info, PFN_PHYS(iova->pfn_lo), in ipu7_dma_free() 291 __free_iova(&mmu->dmap->iovad, iova); in ipu7_dma_free() [all …]
|
| /linux/sound/soc/tegra/ |
| H A D | tegra_pcm.c | 80 struct snd_dmaengine_dai_dma_data *dmap; in tegra_pcm_open() local 88 dmap = snd_soc_dai_get_dma_data(cpu_dai, substream); in tegra_pcm_open() 101 chan = dma_request_chan(cpu_dai->dev, dmap->chan_name); in tegra_pcm_open() 105 dmap->chan_name); in tegra_pcm_open() 113 dmap->chan_name); in tegra_pcm_open() 146 struct snd_dmaengine_dai_dma_data *dmap; in tegra_pcm_hw_params() local 154 dmap = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); in tegra_pcm_hw_params() 155 if (!dmap) in tegra_pcm_hw_params() 169 slave_config.dst_addr = dmap->addr; in tegra_pcm_hw_params() 173 slave_config.src_addr = dmap in tegra_pcm_hw_params() [all...] |
| /linux/fs/xfs/ |
| H A D | xfs_reflink.c | 1350 * Remap the given extent into the file. The dmap blockcount will be set to 1356 struct xfs_bmbt_irec *dmap, in xfs_reflink_remap_extent() argument 1367 bool dmap_written = xfs_bmap_is_written_extent(dmap); in xfs_reflink_remap_extent() 1384 * mapping dmap into a sparse part of the file plus the bmbt split. We in xfs_reflink_remap_extent() 1397 rblocks = dmap->br_blockcount; in xfs_reflink_remap_extent() 1399 dblocks = resblks + dmap->br_blockcount; in xfs_reflink_remap_extent() 1415 * dmap to the destination file. in xfs_reflink_remap_extent() 1418 error = xfs_bmapi_read(ip, dmap->br_startoff, dmap->br_blockcount, in xfs_reflink_remap_extent() 1422 ASSERT(nimaps == 1 && smap.br_startoff == dmap in xfs_reflink_remap_extent() [all...] |
| /linux/include/drm/ttm/ |
| H A D | ttm_kmap_iter.h | 32 struct iosys_map *dmap, pgoff_t i); 42 struct iosys_map *dmap);
|
| /linux/drivers/gpu/drm/panthor/ |
| H A D | panthor_gem.c | 300 if (!bo->dmap.sgt) in panthor_gem_dev_map_cleanup_locked() 303 dma_unmap_sgtable(drm_dev_dma_dev(bo->base.dev), bo->dmap.sgt, DMA_BIDIRECTIONAL, 0); in panthor_gem_dev_map_cleanup_locked() 304 sg_free_table(bo->dmap.sgt); in panthor_gem_dev_map_cleanup_locked() 305 kfree(bo->dmap.sgt); in panthor_gem_dev_map_cleanup_locked() 306 bo->dmap.sgt = NULL; in panthor_gem_dev_map_cleanup_locked() 317 if (bo->dmap.sgt) in panthor_gem_dev_map_get_sgt_locked() 318 return bo->dmap.sgt; in panthor_gem_dev_map_get_sgt_locked() 334 bo->dmap.sgt = sgt; in panthor_gem_dev_map_get_sgt_locked() 451 drm_prime_gem_destroy(obj, bo->dmap.sgt); in panthor_gem_free_object() 505 if (bo->dmap in panthor_gem_prime_begin_cpu_access() [all...] |
| H A D | panthor_fw.c | 683 if (drm_WARN_ON_ONCE(&ptdev->base, !bo->dmap.sgt)) in panthor_fw_load_section_entry() 686 dma_sync_sgtable_for_device(ptdev->base.dev, bo->dmap.sgt, DMA_TO_DEVICE); in panthor_fw_load_section_entry() 749 sgt = to_panthor_bo(section->mem->obj)->dmap.sgt; in panthor_reload_fw_sections()
|
| H A D | panthor_mmu.c | 2262 bo->dmap.sgt, op->va.range); in panthor_vm_exec_map_op() 2264 return panthor_vm_map_pages(vm, op->va.addr, prot, bo->dmap.sgt, in panthor_vm_exec_map_op() 2646 if (drm_WARN_ON_ONCE(&vm->ptdev->base, !bo->dmap.sgt)) in panthor_vm_restore_vmas()
|
| /linux/drivers/edac/ |
| H A D | pnd2_edac.c | 417 static struct d_cr_dmap dmap[DNV_NUM_CHANNELS]; variable 473 RD_REGP(&dmap[i], d_cr_dmap, dnv_dports[i]) || in dnv_get_registers() 978 daddr->rank = dnv_get_bit(pmiaddr, dmap[pmiidx].rs0 + 13, 0); in dnv_pmi2mem() 980 daddr->rank |= dnv_get_bit(pmiaddr, dmap[pmiidx].rs1 + 13, 1); in dnv_pmi2mem() 988 daddr->bank = dnv_get_bit(pmiaddr, dmap[pmiidx].ba0 + 6, 0); in dnv_pmi2mem() 989 daddr->bank |= dnv_get_bit(pmiaddr, dmap[pmiidx].ba1 + 6, 1); in dnv_pmi2mem() 990 daddr->bank |= dnv_get_bit(pmiaddr, dmap[pmiidx].bg0 + 6, 2); in dnv_pmi2mem() 992 daddr->bank |= dnv_get_bit(pmiaddr, dmap[pmiidx].bg1 + 6, 3); in dnv_pmi2mem()
|
| /linux/drivers/iommu/ |
| H A D | tegra-smmu.c | 586 dma_addr_t *dmap) in tegra_smmu_pte_lookup() argument 596 *dmap = smmu_pde_to_dma(smmu, as->pd->val[pd_index]); in tegra_smmu_pte_lookup() 602 dma_addr_t *dmap, struct tegra_pt *pt) in as_get_pte() argument 629 *dmap = dma; in as_get_pte() 631 *dmap = smmu_pde_to_dma(smmu, as->pd->val[pde]); in as_get_pte()
|
| /linux/drivers/gpu/drm/ttm/ |
| H A D | ttm_tt.c | 488 struct iosys_map *dmap, in ttm_kmap_iter_tt_map_local() argument 494 iosys_map_set_vaddr(dmap, kmap_local_page_prot(iter_tt->tt->pages[i], in ttm_kmap_iter_tt_map_local()
|
| /linux/drivers/net/ethernet/apple/ |
| H A D | bmac.c | 177 dbdma_continue(volatile struct dbdma_regs __iomem *dmap) in dbdma_continue() argument 179 dbdma_st32(&dmap->control, in dbdma_continue() 185 dbdma_reset(volatile struct dbdma_regs __iomem *dmap) in dbdma_reset() argument 187 dbdma_st32(&dmap->control, in dbdma_reset() 190 while (dbdma_ld32(&dmap->status) & RUN) in dbdma_reset()
|
| /linux/fs/jfs/ |
| H A D | jfs_dmap.h | 147 struct dmap { struct
|
| /linux/fs/ |
| H A D | dax.c | 2191 const struct iomap *dmap = &it_dest->iomap; in dax_range_compare_iter() 2197 len = min(len, min(smap->length, dmap->length)); in dax_range_compare_iter() 2199 if (smap->type == IOMAP_HOLE && dmap->type == IOMAP_HOLE) { in dax_range_compare_iter() 2204 if (smap->type == IOMAP_HOLE || dmap->type == IOMAP_HOLE) { in dax_range_compare_iter() 2216 ret = dax_iomap_direct_access(dmap, pos2, size2, &daddr, NULL); in dax_range_compare_iter() 2190 const struct iomap *dmap = &it_dest->iomap; dax_range_compare_iter() local
|
| /linux/drivers/android/ |
| H A D | binder.c | |
| /linux/drivers/gpu/drm/vmwgfx/device_include/ |
| H A D | svga3d_types.h | 604 uint32 dmap : 1; member
|
| /linux/fs/f2fs/ |
| H A D | segment.c | 2201 unsigned long *dmap = SIT_I(sbi)->tmp_map; in f2fs_release_discard_addrs() 2224 dmap[i] = force ? ~ckpt_map[i] & ~discard_map[i] : in f2fs_clear_prefree_segments() 2229 start = __find_rev_next_bit(dmap, BLKS_PER_SEG(sbi), end + 1); in f2fs_clear_prefree_segments() 2233 end = __find_rev_next_zero_bit(dmap, in f2fs_clear_prefree_segments() 2137 unsigned long *dmap = SIT_I(sbi)->tmp_map; add_discard_addrs() local
|