Home
last modified time | relevance | path

Searched refs:scom_dev (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/fsi/
H A Dfsi-scom.c76 static int __put_scom(struct scom_device *scom_dev, uint64_t value, in __put_scom() argument
83 rc = fsi_device_write(scom_dev->fsi_dev, SCOM_DATA0_REG, &data, in __put_scom()
89 rc = fsi_device_write(scom_dev->fsi_dev, SCOM_DATA1_REG, &data, in __put_scom()
95 rc = fsi_device_write(scom_dev->fsi_dev, SCOM_CMD_REG, &data, in __put_scom()
99 rc = fsi_device_read(scom_dev->fsi_dev, SCOM_STATUS_REG, &raw_status, in __put_scom()
108 static int __get_scom(struct scom_device *scom_dev, uint64_t *value, in __get_scom() argument
117 rc = fsi_device_write(scom_dev->fsi_dev, SCOM_CMD_REG, &data, in __get_scom()
121 rc = fsi_device_read(scom_dev->fsi_dev, SCOM_STATUS_REG, &raw_status, in __get_scom()
130 rc = fsi_device_read(scom_dev->fsi_dev, SCOM_DATA0_REG, &data, in __get_scom()
135 rc = fsi_device_read(scom_dev->fsi_dev, SCOM_DATA1_REG, &data, in __get_scom()