| /linux/include/linux/ |
| H A D | pagemap.h | 21 unsigned long invalidate_mapping_pages(struct address_space *mapping, 30 int invalidate_inode_pages2(struct address_space *mapping); 31 int invalidate_inode_pages2_range(struct address_space *mapping, 35 int filemap_invalidate_pages(struct address_space *mapping, 41 int filemap_flush_nr(struct address_space *mapping, long *nr_to_write); 42 int filemap_fdatawait_keep_errors(struct address_space *mapping); 44 int filemap_fdatawait_range_keep_errors(struct address_space *mapping, 49 static inline int filemap_fdatawait(struct address_space *mapping) in filemap_fdatawait() argument 51 return filemap_fdatawait_range(mapping, 0, LLONG_MAX); in filemap_fdatawait() 55 int filemap_write_and_wait_range(struct address_space *mapping, 63 filemap_write_and_wait(struct address_space * mapping) filemap_write_and_wait() argument 82 filemap_set_wb_err(struct address_space * mapping,int err) filemap_set_wb_err() argument 99 filemap_check_wb_err(struct address_space * mapping,errseq_t since) filemap_check_wb_err() argument 112 filemap_sample_wb_err(struct address_space * mapping) filemap_sample_wb_err() argument 140 mapping_empty(const struct address_space * mapping) mapping_empty() argument 166 mapping_shrinkable(const struct address_space * mapping) mapping_shrinkable() argument 238 mapping_set_error(struct address_space * mapping,int error) mapping_set_error() argument 257 mapping_set_unevictable(struct address_space * mapping) mapping_set_unevictable() argument 262 mapping_clear_unevictable(struct address_space * mapping) mapping_clear_unevictable() argument 267 mapping_unevictable(const struct address_space * mapping) mapping_unevictable() argument 272 mapping_set_exiting(struct address_space * mapping) mapping_set_exiting() argument 277 mapping_exiting(const struct address_space * mapping) mapping_exiting() argument 282 mapping_set_no_writeback_tags(struct address_space * mapping) mapping_set_no_writeback_tags() argument 287 mapping_use_writeback_tags(const struct address_space * mapping) mapping_use_writeback_tags() argument 292 mapping_release_always(const struct address_space * mapping) mapping_release_always() argument 297 mapping_set_release_always(struct address_space * mapping) mapping_set_release_always() argument 302 mapping_clear_release_always(struct address_space * mapping) mapping_clear_release_always() argument 307 mapping_stable_writes(const struct address_space * mapping) mapping_stable_writes() argument 312 mapping_set_stable_writes(struct address_space * mapping) mapping_set_stable_writes() argument 317 mapping_clear_stable_writes(struct address_space * mapping) mapping_clear_stable_writes() argument 322 mapping_set_inaccessible(struct address_space * mapping) mapping_set_inaccessible() argument 333 mapping_inaccessible(const struct address_space * mapping) mapping_inaccessible() argument 338 mapping_set_writeback_may_deadlock_on_reclaim(struct address_space * mapping) mapping_set_writeback_may_deadlock_on_reclaim() argument 343 mapping_writeback_may_deadlock_on_reclaim(const struct address_space * mapping) mapping_writeback_may_deadlock_on_reclaim() argument 348 mapping_gfp_mask(const struct address_space * mapping) mapping_gfp_mask() argument 354 mapping_gfp_constraint(const struct address_space * mapping,gfp_t gfp_mask) mapping_gfp_constraint() argument 418 mapping_set_folio_order_range(struct address_space * mapping,unsigned int min,unsigned int max) mapping_set_folio_order_range() argument 438 mapping_set_folio_min_order(struct address_space * mapping,unsigned int min) mapping_set_folio_min_order() argument 455 mapping_set_large_folios(struct address_space * mapping) mapping_set_large_folios() argument 461 mapping_max_folio_order(const struct address_space * mapping) mapping_max_folio_order() argument 469 mapping_min_folio_order(const struct address_space * mapping) mapping_min_folio_order() argument 477 mapping_min_folio_nrpages(const struct address_space * mapping) mapping_min_folio_nrpages() argument 483 mapping_min_folio_nrbytes(const struct address_space * mapping) mapping_min_folio_nrbytes() argument 497 mapping_align_index(const struct address_space * mapping,pgoff_t index) mapping_align_index() argument 507 mapping_large_folio_support(const struct address_space * mapping) mapping_large_folio_support() argument 517 mapping_max_folio_size(const struct address_space * mapping) mapping_max_folio_size() argument 522 filemap_nr_thps(const struct address_space * mapping) filemap_nr_thps() argument 531 filemap_nr_thps_inc(struct address_space * mapping) filemap_nr_thps_inc() argument 541 filemap_nr_thps_dec(struct address_space * mapping) filemap_nr_thps_dec() argument 760 __filemap_get_folio(struct address_space * mapping,pgoff_t index,fgf_t fgf_flags,gfp_t gfp) __filemap_get_folio() argument 780 write_begin_get_folio(const struct kiocb * iocb,struct address_space * mapping,pgoff_t index,size_t len) write_begin_get_folio() argument 804 filemap_get_folio(struct address_space * mapping,pgoff_t index) filemap_get_folio() argument 822 filemap_lock_folio(struct address_space * mapping,pgoff_t index) filemap_lock_folio() argument 840 filemap_grab_folio(struct address_space * mapping,pgoff_t index) filemap_grab_folio() argument 858 find_get_page(struct address_space * mapping,pgoff_t offset) find_get_page() argument 864 find_get_page_flags(struct address_space * mapping,pgoff_t offset,fgf_t fgp_flags) find_get_page_flags() argument 883 find_lock_page(struct address_space * mapping,pgoff_t index) find_lock_page() argument 908 find_or_create_page(struct address_space * mapping,pgoff_t index,gfp_t gfp_mask) find_or_create_page() argument 930 grab_cache_page_nowait(struct address_space * mapping,pgoff_t index) grab_cache_page_nowait() argument 1008 read_mapping_page(struct address_space * mapping,pgoff_t index,struct file * file) read_mapping_page() argument 1014 read_mapping_folio(struct address_space * mapping,pgoff_t index,struct file * file) read_mapping_folio() argument 1319 filemap_range_needs_writeback(struct address_space * mapping,loff_t start_byte,loff_t end_byte) filemap_range_needs_writeback() argument 1349 struct address_space *mapping; global() member 1392 page_cache_sync_readahead(struct address_space * mapping,struct file_ra_state * ra,struct file * file,pgoff_t index,unsigned long req_count) page_cache_sync_readahead() argument 1414 page_cache_async_readahead(struct address_space * mapping,struct file_ra_state * ra,struct file * file,struct folio * folio,unsigned long req_count) page_cache_async_readahead() argument [all...] |
| H A D | io-mapping.h | 17 * The io_mapping mechanism provides an abstraction for mapping 20 * See Documentation/driver-api/io-mapping.rst 35 * For small address space machines, mapping large objects 58 io_mapping_fini(struct io_mapping *mapping) in io_mapping_fini() argument 60 iomap_free(mapping->base, mapping->size); in io_mapping_fini() 65 io_mapping_map_atomic_wc(struct io_mapping *mapping, in io_mapping_map_atomic_wc() argument 70 BUG_ON(offset >= mapping->size); in io_mapping_map_atomic_wc() 71 phys_addr = mapping->base + offset; in io_mapping_map_atomic_wc() 77 return __iomap_local_pfn_prot(PHYS_PFN(phys_addr), mapping->prot); in io_mapping_map_atomic_wc() 92 io_mapping_map_local_wc(struct io_mapping *mapping, unsigned long offset) in io_mapping_map_local_wc() argument [all …]
|
| H A D | tpm_eventlog.h | 141 static inline void TPM_MEMUNMAP(void *mapping, size_t size) in TPM_MEMUNMAP() argument 171 void *mapping = NULL; in __calc_tpm2_event_size() local 191 mapping = TPM_MEMREMAP((unsigned long)marker_start, in __calc_tpm2_event_size() 193 if (!mapping) { in __calc_tpm2_event_size() 198 mapping = marker_start; in __calc_tpm2_event_size() 201 event = (struct tcg_pcr_event2_head *)mapping; in __calc_tpm2_event_size() 238 TPM_MEMUNMAP(mapping, mapping_size); in __calc_tpm2_event_size() 240 mapping = TPM_MEMREMAP((unsigned long)marker, in __calc_tpm2_event_size() 242 if (!mapping) { in __calc_tpm2_event_size() 247 mapping = marker; in __calc_tpm2_event_size() [all …]
|
| /linux/tools/testing/selftests/arm64/mte/ |
| H A D | check_mmap_options.c | 47 int mapping; member 113 static int check_anonymous_memory_mapping(int mem_type, int mode, int mapping, in check_anonymous_memory_mapping() argument 126 map_ptr = (char *)mte_allocate_memory(map_size, mem_type, mapping, false); in check_anonymous_memory_mapping() 148 static int check_file_memory_mapping(int mem_type, int mode, int mapping, in check_file_memory_mapping() argument 166 map_ptr = (char *)mte_allocate_file_memory(map_size, mem_type, mapping, false, fd); in check_file_memory_mapping() 191 static int check_clear_prot_mte_flag(int mem_type, int mode, int mapping, int atag_check) in check_clear_prot_mte_flag() argument 201 ptr = (char *)mte_allocate_memory_tag_range(sizes[run], mem_type, mapping, in check_clear_prot_mte_flag() 222 ptr = (char *)mte_allocate_file_memory_tag_range(sizes[run], mem_type, mapping, in check_clear_prot_mte_flag() 300 switch (tc->mapping) { in format_test_name() 337 "Check %s with %s mapping, %s mode, %s memory and %s (%s)\n", in format_test_name() [all …]
|
| H A D | check_child_memory.c | 84 static int check_child_memory_mapping(int mem_type, int mode, int mapping) in check_child_memory_mapping() argument 93 ptr = (char *)mte_allocate_memory_tag_range(sizes[run], mem_type, mapping, in check_child_memory_mapping() 106 static int check_child_file_mapping(int mem_type, int mode, int mapping) in check_child_file_mapping() argument 119 map_ptr = (char *)mte_allocate_file_memory(map_size, mem_type, mapping, false, fd); in check_child_file_mapping() 170 "Check child anonymous memory with private mapping, precise mode and mmap memory\n"); in main() 172 "Check child anonymous memory with shared mapping, precise mode and mmap memory\n"); in main() 174 "Check child anonymous memory with private mapping, imprecise mode and mmap memory\n"); in main() 176 "Check child anonymous memory with shared mapping, imprecise mode and mmap memory\n"); in main() 178 "Check child anonymous memory with private mapping, precise mode and mmap/mprotect memory\n"); in main() 180 "Check child anonymous memory with shared mapping, precise mode and mmap/mprotect memory\n"); in main() [all …]
|
| H A D | check_hugetlb_options.c | 146 static int check_hugetlb_memory_mapping(int mem_type, int mode, int mapping, int tag_check) in check_hugetlb_memory_mapping() argument 155 map_ptr = (char *)mte_allocate_memory(map_size, mem_type, mapping, false); in check_hugetlb_memory_mapping() 176 static int check_clear_prot_mte_flag(int mem_type, int mode, int mapping) in check_clear_prot_mte_flag() argument 185 map_ptr = (char *)mte_allocate_memory_tag_range(map_size, mem_type, mapping, in check_clear_prot_mte_flag() 205 static int check_child_hugetlb_memory_mapping(int mem_type, int mode, int mapping) in check_child_hugetlb_memory_mapping() argument 214 ptr = (char *)mte_allocate_memory_tag_range(map_size, mem_type, mapping, in check_child_hugetlb_memory_mapping() 263 "Check hugetlb memory with private mapping, sync error mode, mmap memory and tag check off\n"); in main() 267 "Check hugetlb memory with private mapping, no error mode, mmap memory and tag check off\n"); in main() 270 "Check hugetlb memory with private mapping, sync error mode, mmap memory and tag check on\n"); in main() 272 …"Check hugetlb memory with private mapping, sync error mode, mmap/mprotect memory and tag check on… in main() [all …]
|
| /linux/arch/arm/mm/ |
| H A D | dma-mapping.c | 3 * linux/arch/arm/mm/dma-mapping.c 7 * DMA uncached mapping support. 290 * Clear previous low-memory mapping to ensure that the in dma_contiguous_remap() 603 * Free a buffer as defined by the above mapping. 677 * Use the driver DMA support - see dma-mapping.h (dma_sync_*) 752 static int extend_iommu_mapping(struct dma_iommu_mapping *mapping); 754 static inline dma_addr_t __alloc_iova(struct dma_iommu_mapping *mapping, in __alloc_iova() argument 760 size_t mapping_size = mapping->bits << PAGE_SHIFT; in __alloc_iova() 771 spin_lock_irqsave(&mapping->lock, flags); in __alloc_iova() 772 for (i = 0; i < mapping in __alloc_iova() 812 __free_iova(struct dma_iommu_mapping * mapping,dma_addr_t addr,size_t size) __free_iova() argument 963 struct dma_iommu_mapping *mapping = to_dma_iommu_mapping(dev); __iommu_create_mapping() local 1002 struct dma_iommu_mapping *mapping = to_dma_iommu_mapping(dev); __iommu_remove_mapping() local 1187 struct dma_iommu_mapping *mapping = to_dma_iommu_mapping(dev); __map_sg_chunk() local 1368 struct dma_iommu_mapping *mapping = to_dma_iommu_mapping(dev); arm_iommu_map_phys() local 1407 struct dma_iommu_mapping *mapping = to_dma_iommu_mapping(dev); arm_iommu_unmap_phys() local 1429 struct dma_iommu_mapping *mapping = to_dma_iommu_mapping(dev); arm_iommu_sync_single_for_cpu() local 1444 struct dma_iommu_mapping *mapping = to_dma_iommu_mapping(dev); arm_iommu_sync_single_for_device() local 1491 struct dma_iommu_mapping *mapping; arm_iommu_create_mapping() local 1550 struct dma_iommu_mapping *mapping = release_iommu_mapping() local 1560 extend_iommu_mapping(struct dma_iommu_mapping * mapping) extend_iommu_mapping() argument 1578 arm_iommu_release_mapping(struct dma_iommu_mapping * mapping) arm_iommu_release_mapping() argument 1586 __arm_iommu_attach_device(struct device * dev,struct dma_iommu_mapping * mapping) __arm_iommu_attach_device() argument 1615 arm_iommu_attach_device(struct device * dev,struct dma_iommu_mapping * mapping) arm_iommu_attach_device() argument 1637 struct dma_iommu_mapping *mapping; arm_iommu_detach_device() local 1656 struct dma_iommu_mapping *mapping; arm_setup_iommu_dma_ops() local 1682 struct dma_iommu_mapping *mapping = to_dma_iommu_mapping(dev); arm_teardown_iommu_dma_ops() local [all...] |
| H A D | flush.c | 199 void __flush_dcache_folio(struct address_space *mapping, struct folio *folio) in __flush_dcache_folio() argument 202 * Writeback any data associated with the kernel mapping of this in __flush_dcache_folio() 204 * coherent with the kernels mapping. in __flush_dcache_folio() 234 if (mapping && cache_is_vipt_aliasing()) in __flush_dcache_folio() 238 static void __flush_dcache_aliases(struct address_space *mapping, struct folio *folio) in __flush_dcache_aliases() argument 248 * - aliasing VIPT: we only need to find one mapping of this page. in __flush_dcache_aliases() 253 flush_dcache_mmap_lock(mapping); in __flush_dcache_aliases() 254 vma_interval_tree_foreach(vma, &mapping->i_mmap, pgoff, pgoff_end) { in __flush_dcache_aliases() 281 flush_dcache_mmap_unlock(mapping); in __flush_dcache_aliases() 289 struct address_space *mapping; in __sync_icache_dcache() local [all …]
|
| /linux/drivers/media/usb/uvc/ |
| H A D | uvc_ctrl.c | 503 static bool uvc_ctrl_mapping_is_compound(struct uvc_control_mapping *mapping) in uvc_ctrl_set_zoom() 505 return mapping->v4l2_type >= V4L2_CTRL_COMPOUND_TYPES; in uvc_ctrl_set_zoom() 508 static s32 uvc_mapping_get_s32(struct uvc_control_mapping *mapping, in uvc_ctrl_set_zoom() 513 mapping->get(mapping, query, data_in, sizeof(data_out), &data_out); in uvc_ctrl_get_rel_speed() argument 518 static void uvc_mapping_set_s32(struct uvc_control_mapping *mapping, in uvc_ctrl_get_rel_speed() 521 mapping->set(mapping, sizeof(data_in), &data_in, data_out); in uvc_ctrl_get_rel_speed() 527 * device. The custom menu_mapping in the control @mapping is used when in uvc_ctrl_get_rel_speed() 538 static int uvc_mapping_get_menu_value(const struct uvc_control_mapping *mapping, in uvc_ctrl_get_rel_speed() 410 uvc_ctrl_mapping_is_compound(struct uvc_control_mapping * mapping) uvc_ctrl_mapping_is_compound() argument 415 uvc_mapping_get_s32(struct uvc_control_mapping * mapping,u8 query,const void * data_in) uvc_mapping_get_s32() argument 425 uvc_mapping_set_s32(struct uvc_control_mapping * mapping,s32 data_in,void * data_out) uvc_mapping_set_s32() argument 445 uvc_mapping_get_menu_value(const struct uvc_control_mapping * mapping,u32 idx) uvc_mapping_get_menu_value() argument 458 uvc_mapping_get_menu_name(const struct uvc_control_mapping * mapping,u32 idx) uvc_mapping_get_menu_name() argument 469 uvc_ctrl_get_zoom(struct uvc_control_mapping * mapping,u8 query,const void * uvc_in,size_t v4l2_size,void * v4l2_out) uvc_ctrl_get_zoom() argument 496 uvc_ctrl_set_zoom(struct uvc_control_mapping * mapping,size_t v4l2_size,const void * v4l2_in,void * uvc_out) uvc_ctrl_set_zoom() argument 540 uvc_ctrl_set_rel_speed(struct uvc_control_mapping * mapping,size_t v4l2_size,const void * v4l2_in,void * uvc_out) uvc_ctrl_set_rel_speed() argument 646 uvc_get_rect(struct uvc_control_mapping * mapping,u8 query,const void * uvc_in,size_t v4l2_size,void * v4l2_out) uvc_get_rect() argument 667 uvc_set_rect(struct uvc_control_mapping * mapping,size_t v4l2_size,const void * v4l2_in,void * uvc_out) uvc_set_rect() argument 1033 uvc_menu_to_v4l2_menu(struct uvc_control_mapping * mapping,s32 val) uvc_menu_to_v4l2_menu() argument 1058 uvc_get_le_value(struct uvc_control_mapping * mapping,u8 query,const void * uvc_in,size_t v4l2_size,void * v4l2_out) uvc_get_le_value() argument 1113 uvc_set_le_value(struct uvc_control_mapping * mapping,size_t v4l2_size,const void * v4l2_in,void * uvc_out) uvc_set_le_value() argument 1174 __uvc_find_control(struct uvc_entity * entity,u32 v4l2_id,struct uvc_control_mapping ** mapping,struct uvc_control ** control,int next,int next_compound) __uvc_find_control() argument 1208 uvc_find_control(struct uvc_video_chain * chain,u32 v4l2_id,struct uvc_control_mapping ** mapping) uvc_find_control() argument 1330 __uvc_ctrl_get(struct uvc_video_chain * chain,struct uvc_control * ctrl,struct uvc_control_mapping * mapping,s32 * value) __uvc_ctrl_get() argument 1394 uvc_ctrl_is_readable(u32 which,struct uvc_control * ctrl,struct uvc_control_mapping * mapping) uvc_ctrl_is_readable() argument 1440 struct uvc_control_mapping *mapping; uvc_ctrl_is_accessible() local 1512 uvc_get_ctrl_bitmap(struct uvc_control * ctrl,struct uvc_control_mapping * mapping) uvc_get_ctrl_bitmap() argument 1549 __uvc_queryctrl_boundaries(struct uvc_video_chain * chain,struct uvc_control * ctrl,struct uvc_control_mapping * mapping,struct v4l2_query_ext_ctrl * v4l2_ctrl) __uvc_queryctrl_boundaries() argument 1635 uvc_mapping_v4l2_size(struct uvc_control_mapping * mapping) uvc_mapping_v4l2_size() argument 1648 __uvc_query_v4l2_ctrl(struct uvc_video_chain * chain,struct uvc_control * ctrl,struct uvc_control_mapping * mapping,struct v4l2_query_ext_ctrl * v4l2_ctrl) __uvc_query_v4l2_ctrl() argument 1731 struct uvc_control_mapping *mapping; uvc_query_v4l2_ctrl() local 1781 struct uvc_control_mapping *mapping; uvc_query_v4l2_menu() local 1851 uvc_ctrl_fill_event(struct uvc_video_chain * chain,struct v4l2_event * ev,struct uvc_control * ctrl,struct uvc_control_mapping * mapping,s32 value,u32 changes) uvc_ctrl_fill_event() argument 1880 uvc_ctrl_send_event(struct uvc_video_chain * chain,struct uvc_fh * handle,struct uvc_control * ctrl,struct uvc_control_mapping * mapping,s32 value,u32 changes) uvc_ctrl_send_event() argument 1907 struct uvc_control_mapping *mapping = NULL; uvc_ctrl_send_slave_event() local 1971 struct uvc_control_mapping *mapping; uvc_ctrl_status_event() local 2069 struct uvc_control_mapping *mapping; uvc_ctrl_send_events() local 2125 struct uvc_control_mapping *mapping; uvc_ctrl_add_event() local 2303 struct uvc_control_mapping *mapping = NULL; uvc_ctrl_find_ctrl_idx() local 2359 uvc_mapping_get_xctrl_compound(struct uvc_video_chain * chain,struct uvc_control * ctrl,struct uvc_control_mapping * mapping,u32 which,struct v4l2_ext_control * xctrl) uvc_mapping_get_xctrl_compound() argument 2422 uvc_mapping_get_xctrl_std(struct uvc_video_chain * chain,struct uvc_control * ctrl,struct uvc_control_mapping * mapping,u32 which,struct v4l2_ext_control * xctrl) uvc_mapping_get_xctrl_std() argument 2460 uvc_mapping_get_xctrl(struct uvc_video_chain * chain,struct uvc_control * ctrl,struct uvc_control_mapping * mapping,u32 which,struct v4l2_ext_control * xctrl) uvc_mapping_get_xctrl() argument 2473 struct uvc_control_mapping *mapping; uvc_ctrl_get() local 2488 uvc_ctrl_clamp(struct uvc_video_chain * chain,struct uvc_control * ctrl,u32 v4l2_id,struct uvc_control_mapping * mapping,s32 * value_in_out) uvc_ctrl_clamp() argument 2584 uvc_mapping_set_xctrl_compound(struct uvc_control * ctrl,struct uvc_control_mapping * mapping,struct v4l2_ext_control * xctrl) uvc_mapping_set_xctrl_compound() argument 2607 uvc_mapping_set_xctrl(struct uvc_control * ctrl,struct uvc_control_mapping * mapping,struct v4l2_ext_control * xctrl) uvc_mapping_set_xctrl() argument 2621 struct uvc_control_mapping *mapping; uvc_ctrl_set() local 3028 __uvc_ctrl_add_mapping(struct uvc_video_chain * chain,struct uvc_control * ctrl,const struct uvc_control_mapping * mapping) __uvc_ctrl_add_mapping() argument 3111 uvc_ctrl_add_mapping(struct uvc_video_chain * chain,const struct uvc_control_mapping * mapping) uvc_ctrl_add_mapping() argument 3289 const struct uvc_control_mapping *mapping = &uvc_ctrl_mappings[i]; uvc_ctrl_init_ctrl() local 3410 struct uvc_control_mapping *mapping, *nm; uvc_ctrl_cleanup_mappings() local [all...] |
| /linux/drivers/gpu/drm/tegra/ |
| H A D | uapi.c | 17 struct tegra_drm_mapping *mapping = in tegra_drm_mapping_release() local 20 host1x_bo_unpin(mapping->map); in tegra_drm_mapping_release() 21 host1x_bo_put(mapping->bo); in tegra_drm_mapping_release() 23 kfree(mapping); in tegra_drm_mapping_release() 26 void tegra_drm_mapping_put(struct tegra_drm_mapping *mapping) in tegra_drm_mapping_put() argument 28 kref_put(&mapping->ref, tegra_drm_mapping_release); in tegra_drm_mapping_put() 33 struct tegra_drm_mapping *mapping; in tegra_drm_channel_context_close() local 39 xa_for_each(&context->mappings, id, mapping) in tegra_drm_channel_context_close() 40 tegra_drm_mapping_put(mapping); in tegra_drm_channel_context_close() 192 struct tegra_drm_mapping *mapping; in tegra_drm_ioctl_channel_map() local [all …]
|
| /linux/drivers/gpu/drm/etnaviv/ |
| H A D | etnaviv_mmu.c | 6 #include <linux/dma-mapping.h> 55 /* unroll mapping in case something went wrong */ in etnaviv_context_map() 115 struct etnaviv_vram_mapping *mapping) in etnaviv_iommu_remove_mapping() argument 117 struct etnaviv_gem_object *etnaviv_obj = mapping->object; in etnaviv_iommu_remove_mapping() 121 etnaviv_iommu_unmap(context, mapping->vram_node.start, in etnaviv_iommu_remove_mapping() 123 drm_mm_remove_node(&mapping->vram_node); in etnaviv_iommu_remove_mapping() 126 void etnaviv_iommu_reap_mapping(struct etnaviv_vram_mapping *mapping) in etnaviv_iommu_reap_mapping() argument 128 struct etnaviv_iommu_context *context = mapping->context; in etnaviv_iommu_reap_mapping() 131 WARN_ON(mapping->use); in etnaviv_iommu_reap_mapping() 133 etnaviv_iommu_remove_mapping(context, mapping); in etnaviv_iommu_reap_mapping() [all …]
|
| H A D | etnaviv_gem.c | 8 #include <linux/dma-mapping.h> 219 struct etnaviv_vram_mapping *mapping; in etnaviv_gem_get_vram_mapping() local 221 list_for_each_entry(mapping, &obj->vram_list, obj_node) { in etnaviv_gem_get_vram_mapping() 222 if (mapping->context == context) in etnaviv_gem_get_vram_mapping() 223 return mapping; in etnaviv_gem_get_vram_mapping() 229 void etnaviv_gem_mapping_unreference(struct etnaviv_vram_mapping *mapping) in etnaviv_gem_mapping_unreference() argument 231 struct etnaviv_gem_object *etnaviv_obj = mapping->object; in etnaviv_gem_mapping_unreference() 234 WARN_ON(mapping->use == 0); in etnaviv_gem_mapping_unreference() 235 mapping->use -= 1; in etnaviv_gem_mapping_unreference() 246 struct etnaviv_vram_mapping *mapping; in etnaviv_gem_mapping_get() local [all …]
|
| /linux/mm/ |
| H A D | filemap.c | 129 static void page_cache_delete(struct address_space *mapping, in page_cache_delete() argument 132 XA_STATE(xas, &mapping->i_pages, folio->index); in page_cache_delete() 135 mapping_set_update(&xas, mapping); in page_cache_delete() 145 folio->mapping = NULL; in page_cache_delete() 147 mapping->nrpages -= nr; in page_cache_delete() 150 static void filemap_unaccount_folio(struct address_space *mapping, in filemap_unaccount_folio() argument 163 if (mapping_exiting(mapping) && !folio_test_large(folio)) { in filemap_unaccount_folio() 192 filemap_nr_thps_dec(mapping); in filemap_unaccount_folio() 194 if (test_bit(AS_KERNEL_FILE, &folio->mapping->flags)) in filemap_unaccount_folio() 213 mapping_can_writeback(mapping))) in filemap_unaccount_folio() 224 struct address_space *mapping = folio->mapping; __filemap_remove_folio() local 231 filemap_free_folio(const struct address_space * mapping,struct folio * folio) filemap_free_folio() argument 253 struct address_space *mapping = folio->mapping; filemap_remove_folio() local 280 page_cache_delete_batch(struct address_space * mapping,struct folio_batch * fbatch) page_cache_delete_batch() argument 321 delete_from_page_cache_batch(struct address_space * mapping,struct folio_batch * fbatch) delete_from_page_cache_batch() argument 347 filemap_check_errors(struct address_space * mapping) filemap_check_errors() argument 361 filemap_check_and_keep_errors(struct address_space * mapping) filemap_check_and_keep_errors() argument 371 filemap_writeback(struct address_space * mapping,loff_t start,loff_t end,enum writeback_sync_modes sync_mode,long * nr_to_write) filemap_writeback() argument 410 filemap_fdatawrite_range(struct address_space * mapping,loff_t start,loff_t end) filemap_fdatawrite_range() argument 417 filemap_fdatawrite(struct address_space * mapping) filemap_fdatawrite() argument 434 filemap_flush_range(struct address_space * mapping,loff_t start,loff_t end) filemap_flush_range() argument 450 filemap_flush(struct address_space * mapping) filemap_flush() argument 461 filemap_flush_nr(struct address_space * mapping,long * nr_to_write) filemap_flush_nr() argument 480 filemap_range_has_page(struct address_space * mapping,loff_t start_byte,loff_t end_byte) filemap_range_has_page() argument 511 __filemap_fdatawait_range(struct address_space * mapping,loff_t start_byte,loff_t end_byte) __filemap_fdatawait_range() argument 556 filemap_fdatawait_range(struct address_space * mapping,loff_t start_byte,loff_t end_byte) filemap_fdatawait_range() argument 578 filemap_fdatawait_range_keep_errors(struct address_space * mapping,loff_t start_byte,loff_t end_byte) filemap_fdatawait_range_keep_errors() argument 604 struct address_space *mapping = file->f_mapping; file_fdatawait_range() local 625 filemap_fdatawait_keep_errors(struct address_space * mapping) filemap_fdatawait_keep_errors() argument 633 mapping_needs_writeback(struct address_space * mapping) mapping_needs_writeback() argument 638 filemap_range_has_writeback(struct address_space * mapping,loff_t start_byte,loff_t end_byte) filemap_range_has_writeback() argument 676 filemap_write_and_wait_range(struct address_space * mapping,loff_t lstart,loff_t lend) filemap_write_and_wait_range() argument 702 __filemap_set_wb_err(struct address_space * mapping,int err) __filemap_set_wb_err() argument 738 struct address_space *mapping = file->f_mapping; file_check_and_advance_wb_err() local 781 struct address_space *mapping = file->f_mapping; file_write_and_wait_range() local 814 struct address_space *mapping = old->mapping; replace_page_cache_folio() local 849 __filemap_add_folio(struct address_space * mapping,struct folio * folio,pgoff_t index,gfp_t gfp,void ** shadowp) __filemap_add_folio() argument 950 filemap_add_folio(struct address_space * mapping,struct folio * folio,pgoff_t index,gfp_t gfp) filemap_add_folio() argument 1606 struct address_space *mapping = folio->mapping; filemap_end_dropbehind() local 1807 page_cache_next_miss(struct address_space * mapping,pgoff_t index,unsigned long max_scan) page_cache_next_miss() argument 1844 page_cache_prev_miss(struct address_space * mapping,pgoff_t index,unsigned long max_scan) page_cache_prev_miss() argument 1893 filemap_get_entry(struct address_space * mapping,pgoff_t index) filemap_get_entry() argument 1941 __filemap_get_folio_mpol(struct address_space * mapping,pgoff_t index,fgf_t fgp_flags,gfp_t gfp,struct mempolicy * policy) __filemap_get_folio_mpol() argument 2116 find_get_entries(struct address_space * mapping,pgoff_t * start,pgoff_t end,struct folio_batch * fbatch,pgoff_t * indices) find_get_entries() argument 2165 find_lock_entries(struct address_space * mapping,pgoff_t * start,pgoff_t end,struct folio_batch * fbatch,pgoff_t * indices) find_lock_entries() argument 2233 filemap_get_folios(struct address_space * mapping,pgoff_t * start,pgoff_t end,struct folio_batch * fbatch) filemap_get_folios() argument 2255 filemap_get_folios_contig(struct address_space * mapping,pgoff_t * start,pgoff_t end,struct folio_batch * fbatch) filemap_get_folios_contig() argument 2331 filemap_get_folios_tag(struct address_space * mapping,pgoff_t * start,pgoff_t end,xa_mark_t tag,struct folio_batch * fbatch) filemap_get_folios_tag() argument 2386 filemap_get_folios_dirty(struct address_space * mapping,pgoff_t * start,pgoff_t end,struct folio_batch * fbatch) filemap_get_folios_dirty() argument 2456 filemap_get_read_batch(struct address_space * mapping,pgoff_t index,pgoff_t max,struct folio_batch * fbatch) filemap_get_read_batch() argument 2518 filemap_range_uptodate(struct address_space * mapping,loff_t pos,size_t count,struct folio * folio,bool need_uptodate) filemap_range_uptodate() argument 2546 filemap_update_page(struct kiocb * iocb,struct address_space * mapping,size_t count,struct folio * folio,bool need_uptodate) filemap_update_page() argument 2603 struct address_space *mapping = iocb->ki_filp->f_mapping; filemap_create_folio() local 2655 filemap_readahead(struct kiocb * iocb,struct file * file,struct address_space * mapping,struct folio * folio,pgoff_t last_index) filemap_readahead() argument 2672 struct address_space *mapping = filp->f_mapping; filemap_get_pages() local 2774 struct address_space *mapping = filp->f_mapping; filemap_read() local 2886 struct address_space *mapping = iocb->ki_filp->f_mapping; kiocb_write_and_wait() local 2900 filemap_invalidate_pages(struct address_space * mapping,loff_t pos,loff_t end,bool nowait) filemap_invalidate_pages() argument 2927 struct address_space *mapping = iocb->ki_filp->f_mapping; kiocb_invalidate_pages() local 2967 struct address_space *mapping = file->f_mapping; generic_file_read_iter() local 3148 folio_seek_hole_data(struct xa_state * xas,struct address_space * mapping,struct folio * folio,loff_t start,loff_t end,bool seek_data) folio_seek_hole_data() argument 3205 mapping_seek_hole_data(struct address_space * mapping,loff_t start,loff_t end,int whence) mapping_seek_hole_data() argument 3310 struct address_space *mapping = file->f_mapping; do_sync_mmap_readahead() local 3518 struct address_space *mapping = file->f_mapping; filemap_fault() local 3703 next_uptodate_folio(struct xa_state * xas,struct address_space * mapping,pgoff_t end_pgoff) next_uptodate_folio() argument 3753 struct address_space *mapping = folio->mapping; filemap_map_folio_range() local 3877 struct address_space *mapping = file->f_mapping; filemap_map_pages() local 3959 struct address_space *mapping = vmf->vma->vm_file->f_mapping; filemap_page_mkwrite() local 3993 struct address_space *mapping = file->f_mapping; generic_file_mmap() local 4005 struct address_space *mapping = file->f_mapping; generic_file_mmap_prepare() local 4059 do_read_cache_folio(struct address_space * mapping,pgoff_t index,filler_t filler,struct file * file,gfp_t gfp) do_read_cache_folio() argument 4136 read_cache_folio(struct address_space * mapping,pgoff_t index,filler_t filler,struct file * file) read_cache_folio() argument 4161 mapping_read_folio_gfp(struct address_space * mapping,pgoff_t index,gfp_t gfp) mapping_read_folio_gfp() argument 4168 do_read_cache_page(struct address_space * mapping,pgoff_t index,filler_t * filler,struct file * file,gfp_t gfp) do_read_cache_page() argument 4179 read_cache_page(struct address_space * mapping,pgoff_t index,filler_t * filler,struct file * file) read_cache_page() argument 4202 read_cache_page_gfp(struct address_space * mapping,pgoff_t index,gfp_t gfp) read_cache_page_gfp() argument 4232 struct address_space *mapping = iocb->ki_filp->f_mapping; kiocb_invalidate_post_direct_write() local 4244 struct address_space *mapping = iocb->ki_filp->f_mapping; generic_file_direct_write() local 4301 struct address_space *mapping = file->f_mapping; generic_perform_write() local 4415 struct address_space *mapping = file->f_mapping; __generic_file_write_iter() local 4496 struct address_space * const mapping = folio->mapping; filemap_release_folio() local 4526 struct address_space *mapping = inode->i_mapping; filemap_invalidate_inode() local 4569 filemap_cachestat(struct address_space * mapping,pgoff_t first_index,pgoff_t last_index,struct cachestat * cs) filemap_cachestat() argument 4718 struct address_space *mapping; SYSCALL_DEFINE4() local [all...] |
| /linux/Documentation/driver-api/ |
| H A D | io-mapping.rst | 8 The io_mapping functions in linux/io-mapping.h provide an abstraction for 9 efficiently mapping small regions of an I/O device to the CPU. The initial 14 A mapping object is created during driver initialization using:: 20 mappable, while 'size' indicates how large a mapping region to 23 This _wc variant provides a mapping which may only be used with 27 With this mapping object, individual pages can be mapped either temporarily 31 void *io_mapping_map_local_wc(struct io_mapping *mapping, 34 void *io_mapping_map_atomic_wc(struct io_mapping *mapping, 37 'offset' is the offset within the defined mapping region. Accessing 46 Temporary mappings are only valid in the context of the caller. The mapping [all …]
|
| /linux/drivers/gpu/drm/exynos/ |
| H A D | exynos_drm_dma.c | 31 * drm_iommu_attach_device- attach device to iommu mapping 37 * mapping. 54 * Keep the original DMA mapping of the sub-device and in drm_iommu_attach_device() 63 ret = arm_iommu_attach_device(subdrv_dev, priv->mapping); in drm_iommu_attach_device() 65 ret = iommu_attach_device(priv->mapping, subdrv_dev); in drm_iommu_attach_device() 72 * drm_iommu_detach_device -detach device address space mapping from device in drm_iommu_attach_device() 78 * mapping 89 iommu_detach_device(priv->mapping, subdrv_dev); in drm_iommu_detach_device() 99 DRM_INFO("Exynos DRM: using %s device for DMA mapping operations\n", in exynos_drm_register_dma() 106 if (!priv->mapping) { in exynos_drm_register_dma() 110 void *mapping = NULL; exynos_drm_register_dma() local [all...] |
| /linux/Documentation/filesystems/iomap/ |
| H A D | design.rst | 70 of mapping function calls into the filesystem across a larger amount of 78 1. Obtain a space mapping via ``->iomap_begin`` 82 1. Revalidate the mapping and go back to (1) above, if necessary. 89 4. Release the mapping via ``->iomap_end``, if necessary 130 * **filesystem mapping lock**: This synchronization primitive is 131 internal to the filesystem and must protect the file mapping data 132 from updates while a mapping is being sampled. 138 mapping. 154 The filesystem communicates to the iomap iterator the mapping of 176 bytes, covered by this mapping. [all …]
|
| /linux/tools/testing/selftests/mm/ |
| H A D | mremap_dontunmap.c | 59 "unable to unmap destination mapping"); in kernel_support_for_mremap_dontunmap() 63 "unable to unmap source mapping"); in kernel_support_for_mremap_dontunmap() 67 // This helper will just validate that an entire mapping contains the expected 94 // the source mapping mapped. 106 // Try to just move the whole mapping anywhere (not fixed). in mremap_dontunmap_simple() 122 "unable to unmap destination mapping"); in mremap_dontunmap_simple() 124 "unable to unmap source mapping"); in mremap_dontunmap_simple() 128 // This test validates that MREMAP_DONTUNMAP on a shared mapping works as expected. 148 // Try to just move the whole mapping anywhere (not fixed). in mremap_dontunmap_simple_shmem() 155 "unable to unmap source mapping"); in mremap_dontunmap_simple_shmem() [all …]
|
| /linux/tools/testing/selftests/vfio/ |
| H A D | vfio_dma_mapping_test.c | 39 struct iommu_mapping *mapping) in intel_iommu_mapping_get() argument 67 memset(mapping, 0, sizeof(*mapping)); in intel_iommu_mapping_get() 68 parse_next_value(&rest, &mapping->pgd); in intel_iommu_mapping_get() 69 parse_next_value(&rest, &mapping->p4d); in intel_iommu_mapping_get() 70 parse_next_value(&rest, &mapping->pud); in intel_iommu_mapping_get() 71 parse_next_value(&rest, &mapping->pmd); in intel_iommu_mapping_get() 72 parse_next_value(&rest, &mapping->pte); in intel_iommu_mapping_get() 87 struct iommu_mapping *mapping) in iommu_mapping_get() argument 90 return intel_iommu_mapping_get(bdf, iova, mapping); in iommu_mapping_get() 139 struct iommu_mapping mapping; TEST_F() local [all...] |
| /linux/drivers/sh/clk/ |
| H A D | core.c | 340 struct clk_mapping *mapping = clk->mapping; in clk_establish_mapping() local 345 if (!mapping) { in clk_establish_mapping() 349 * dummy mapping for root clocks with no specified ranges in clk_establish_mapping() 352 clk->mapping = &dummy_mapping; in clk_establish_mapping() 357 * If we're on a child clock and it provides no mapping of its in clk_establish_mapping() 358 * own, inherit the mapping from its root clock. in clk_establish_mapping() 361 mapping = clkp->mapping; in clk_establish_mapping() 362 BUG_ON(!mapping); in clk_establish_mapping() 366 * Establish initial mapping. in clk_establish_mapping() 368 if (!mapping->base && mapping->phys) { in clk_establish_mapping() [all …]
|
| /linux/tools/testing/selftests/namespaces/ |
| H A D | file_handle_test.c | 491 /* Disable setgroups to allow gid mapping */ in TEST() 496 char mapping[64]; in TEST() local 497 snprintf(mapping, sizeof(mapping), "0 %d 1", getuid()); in TEST() 498 write(uid_map_fd, mapping, strlen(mapping)); in TEST() 501 snprintf(mapping, sizeof(mapping), "0 %d 1", getgid()); in TEST() 502 write(gid_map_fd, mapping, strlen(mapping)); in TEST() 620 /* Disable setgroups to allow gid mapping */ in TEST() 625 char mapping[64]; in TEST() local 626 snprintf(mapping, sizeof(mapping), "0 %d 1", getuid()); in TEST() 627 write(uid_map_fd, mapping, strlen(mapping)); in TEST() [all …]
|
| /linux/Documentation/mm/ |
| H A D | highmem.rst | 18 The part of (physical) memory not covered by a permanent mapping is what we 64 These mappings are thread-local and CPU-local, meaning that the mapping 66 CPU while the mapping is active. Although preemption is never disabled by 68 CPU-hotplug until the mapping is disposed. 71 in which the local mapping is acquired does not allow it for other reasons. 82 virtual address of the direct mapping. Only real highmem pages are 95 therefore try to design their code to avoid the use of kmap() by mapping 107 NOTE: Conversions to kmap_local_page() must take care to follow the mapping 116 This permits a very short duration mapping of a single page. Since the 117 mapping is restricted to the CPU that issued it, it performs well, but [all …]
|
| /linux/Documentation/arch/riscv/ |
| H A D | boot.rst | 14 mapping is set up. 40 PMPs, in the direct mapping, so the firmware must correctly mark those regions 117 Virtual mapping installation 120 The installation of the virtual mapping is done in 2 steps in the RISC-V kernel: 122 1. ``setup_vm()`` installs a temporary kernel mapping in ``early_pg_dir`` which 124 at this point. When establishing this mapping, no allocation can be done 128 2. ``setup_vm_final()`` creates the final kernel mapping in ``swapper_pg_dir`` 130 mapping. When establishing this mapping, the kernel can allocate memory but 131 cannot access it directly (since the direct mapping is not present yet), so 136 direct mapping addresses to physical addresses, they need to know the start of [all …]
|
| /linux/fs/freevxfs/ |
| H A D | vxfs_subr.c | 34 * @mapping: mapping to read from 44 vxfs_get_page(struct address_space *mapping, u_long n) in vxfs_get_page() argument 48 pp = read_mapping_page(mapping, n, NULL); in vxfs_get_page() 134 * vxfs_bmap - perform logical to physical block mapping 135 * @mapping: logical to physical mapping to use 136 * @block: logical block (relative to @mapping). 140 * @mapping, @block pair. 149 vxfs_bmap(struct address_space *mapping, sector_t block) in vxfs_bmap() argument 151 return generic_block_bmap(mapping, block, vxfs_getblk); in vxfs_bmap()
|
| /linux/Documentation/core-api/ |
| H A D | dma-attributes.rst | 6 defined in linux/dma-mapping.h. 11 DMA_ATTR_WEAK_ORDERING specifies that reads and writes to the mapping 21 DMA_ATTR_WRITE_COMBINE specifies that writes to the mapping may be 32 virtual mapping for the allocated buffer. On some architectures creating 33 such mapping is non-trivial task and consumes very limited resources 52 having a mapping created separately for each device and is usually 67 device domain after releasing a mapping for it. Use this attribute with 73 By default DMA-mapping subsystem is allowed to assemble the buffer 82 This is a hint to the DMA-mapping subsystem that it's probably not worth 84 efficiency (AKA it's not worth trying to build the mapping out of larger [all …]
|
| /linux/drivers/net/wireless/marvell/mwifiex/ |
| H A D | util.h | 57 struct mwifiex_dma_mapping *mapping) in mwifiex_store_mapping() argument 61 memcpy(&cb->dma_mapping, mapping, sizeof(*mapping)); in mwifiex_store_mapping() 65 struct mwifiex_dma_mapping *mapping) in mwifiex_get_mapping() argument 69 memcpy(mapping, &cb->dma_mapping, sizeof(*mapping)); in mwifiex_get_mapping() 74 struct mwifiex_dma_mapping mapping; in MWIFIEX_SKB_DMA_ADDR() local 76 mwifiex_get_mapping(skb, &mapping); in MWIFIEX_SKB_DMA_ADDR() 78 return mapping.addr; in MWIFIEX_SKB_DMA_ADDR()
|