Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\amd_nb.c Create Date:2022-07-28 08:43:40
Last Modify:2020-03-16 21:36:56 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__amd_smn_rw

Proto:static int __amd_smn_rw(u16 node, unsigned int address, unsigned int *value, bool write)

Type:int

Parameter:

TypeParameterName
u16node
unsigned intaddress
unsigned int *value
boolwrite
129  err = -ENODEV
131  If node >= num Then Go to out
134  root = root
135  If Not root Then Go to 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  If err Then
142  pr_warn("Error programming SMN address 0x%x.\n", address)
143  Go to out_unlock
146  err = If write Then pci_write_config_dword(root, 0x64, * value) Else pci_read_config_dword(root, 0x64, value)
148  If err Then pr_warn("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  Return err
Caller
NameDescribe
amd_smn_read
amd_smn_write