Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:logic_pio_trans_hwaddr - translate HW address to logical PIO*@fwnode: FW node reference for the host*@addr: Host-relative HW address*@size: size to translate* Returns Logical PIO value if successful, ~0UL otherwise

Proto:unsigned long logic_pio_trans_hwaddr(struct fwnode_handle *fwnode, resource_size_t addr, resource_size_t size)

Type:unsigned long

Parameter:

TypeParameterName
struct fwnode_handle *fwnode
resource_size_taddr
resource_size_tsize
194  range = d_io_range_by_fwnode - find logical PIO range for given FW node*@fwnode: FW node handle associated with logical PIO range* Returns pointer to node on success, NULL otherwise.* Traverse the io_range_list to find the registered node for @fwnode.
195  If Not range || flags == LOGIC_PIO_CPU_MMIO Then
196  pr_err("IO range not found or invalid\n")
197  Return ~0UL
199  If range size populated < size Then
200  pr_err("resource size %pa cannot fit in IO range size %pa\n", & size, & range size populated )
202  Return ~0UL
204  Return addr - hw_start + io_start