函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\amd_nb.c Create Date:2022-07-27 09:42:48
Last Modify:2020-03-16 21:36:56 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__amd_smn_rw

函数原型:static int __amd_smn_rw(u16 node, unsigned int address, unsigned int *value, bool write)

返回类型:int

参数:

类型参数名称
u16node
unsigned intaddress
unsigned int *value
boolwrite
129  err等于负ENODEV
131  如果node大于等于num则转到:out
134  root等于root
135  如果非root则转到:out
138  mutex_lock( & Protect the PCI config register pairs used for SMN and DF indirect access. )
140  err等于pci_write_config_dword(root, 0x60, address)
141  如果err
142  打印警告信息("Error programming SMN address 0x%x.\n", address)
143  转到:out_unlock
146  err等于如果writepci_write_config_dword(root, 0x64, * value)否则pci_read_config_dword(root, 0x64, value)
148  如果err打印警告信息("Error %s SMN address 0x%x.\n", (write ? "writing to" : "reading from"), address)
152  out_unlock :
153  mutex_unlock( & Protect the PCI config register pairs used for SMN and DF indirect access. )
155  out :
156  返回:err
调用者
名称描述
amd_smn_read
amd_smn_write