Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\devres.c Create Date:2022-07-28 06:48:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__devm_ioremap

Proto:static void __iomem *__devm_ioremap(struct device *dev, resource_size_t offset, resource_size_t size, enum devm_ioremap_type type)

Type:void

Parameter:

TypeParameterName
struct device *dev
resource_size_toffset
resource_size_tsize
enum devm_ioremap_typetype
30  void __iomem * * ptr, * addr = NULL
32  ptr = devres_alloc(devm_ioremap_release, size of ptr , GFP_KERNEL)
33  If Not ptr Then Return NULL
37  Case type == DEVM_IOREMAP
38  addr = remap - map bus memory into CPU space*@offset: bus address of the memory*@size: size of the resource to map* ioremap performs a platform specific sequence of operations to* make bus memory CPU accessible via the readb/readw/readl/writeb/
39  Break
40  Case type == DEVM_IOREMAP_NC
41  addr = ioremap_nocache(offset, size)
42  Break
43  Case type == DEVM_IOREMAP_UC
44  addr = The default ioremap() behavior is non-cached; if you need something* else, you probably want one of the following.
45  Break
46  Case type == DEVM_IOREMAP_WC
47  addr = ioremap_wc(offset, size)
48  Break
51  If addr Then
52  ptr = addr
53  devres_add(dev, ptr)
54  Else devres_free(ptr)
57  Return addr
Caller
NameDescribe
devm_ioremapdevm_ioremap - Managed ioremap()*@dev: Generic device to remap IO address for*@offset: Resource address to map*@size: Size of map* Managed ioremap(). Map is automatically unmapped on driver detach.
devm_ioremap_ucdevm_ioremap_uc - Managed ioremap_uc()*@dev: Generic device to remap IO address for*@offset: Resource address to map*@size: Size of map* Managed ioremap_uc(). Map is automatically unmapped on driver detach.
devm_ioremap_nocachedevm_ioremap_nocache - Managed ioremap_nocache()*@dev: Generic device to remap IO address for*@offset: Resource address to map*@size: Size of map* Managed ioremap_nocache(). Map is automatically unmapped on driver* detach.
devm_ioremap_wcdevm_ioremap_wc - Managed ioremap_wc()*@dev: Generic device to remap IO address for*@offset: Resource address to map*@size: Size of map* Managed ioremap_wc(). Map is automatically unmapped on driver detach.
__devm_ioremap_resource