Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\iomem.c Create Date:2022-07-28 13:50:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:memremap() - remap an iomem_resource as cacheable memory*@offset: iomem resource start address*@size: size of remap*@flags: any of MEMREMAP_WB, MEMREMAP_WT, MEMREMAP_WC,* MEMREMAP_ENC, MEMREMAP_DEC* memremap() is "ioremap" for cases where it is known that

Proto:void *memremap(resource_size_t offset, size_t size, unsigned long flags)

Type:void

Parameter:

TypeParameterName
resource_size_toffset
size_tsize
unsigned longflags
73  is_ram = gion_intersects() - determine intersection of region with known resources*@start: region start address*@size: size of region*@flags: flags of resource (in iomem_resource)*@desc: descriptor of resource (in iomem_resource) or IORES_DESC_NONE* Check if the
75  void * addr = NULL
77  If Not flags Then Return NULL
80  If is_ram == REGION_MIXED Then
81  WARN_ONCE(1, "memremap attempted on mixed range %pa size: %#lx\n", & offset, (unsignedlong)size)
83  Return NULL
87  If flags & MEMREMAP_WB Then
94  If is_ram == REGION_INTERSECTS Then addr = try_ram_remap(offset, size, flags)
96  If Not addr Then addr = arch_memremap_wb(offset, size)
106  If Not addr && is_ram == REGION_INTERSECTS && flags != MEMREMAP_WB Then
107  WARN_ONCE(1, "memremap attempted on ram %pa size: %#lx\n", & offset, (unsignedlong)size)
109  Return NULL
112  If Not addr && flags & MEMREMAP_WT Then addr = ioremap_wt(offset, size)
115  If Not addr && flags & MEMREMAP_WC Then addr = ioremap_wc(offset, size)
118  Return addr
Caller
NameDescribe
get_setup_data_size
type_show
setup_data_data_read
get_setup_data_total_num
devm_memremap
dma_init_coherent_memory