函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\logic_pio.c Create Date:2022-07-27 07:13:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:unsigned long logic_pio_trans_hwaddr(struct fwnode_handle *fwnode, resource_size_t addr, resource_size_t size)

返回类型:unsigned long

参数:

类型参数名称
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  如果非rangeflags恒等于LOGIC_PIO_CPU_MMIO
196  打印错误信息("IO range not found or invalid\n")
197  返回:0UL的反
199  如果 range size populated 小于size
200  打印错误信息("resource size %pa cannot fit in IO range size %pa\n", & size, & range size populated )
202  返回:0UL的反
204  返回:addrhw_startio_start