Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/fsi/
Dfsi-scom.c145 static int put_indirect_scom_form0(struct scom_device *scom, uint64_t value, in put_indirect_scom_form0() argument
156 rc = __put_scom(scom, ind_data, ind_addr, status); in put_indirect_scom_form0()
160 rc = __get_scom(scom, &ind_data, addr, status); in put_indirect_scom_form0()
170 static int put_indirect_scom_form1(struct scom_device *scom, uint64_t value, in put_indirect_scom_form1() argument
180 return __put_scom(scom, ind_data, ind_addr, status); in put_indirect_scom_form1()
183 static int get_indirect_scom_form0(struct scom_device *scom, uint64_t *value, in get_indirect_scom_form0() argument
191 rc = __put_scom(scom, ind_data, ind_addr, status); in get_indirect_scom_form0()
195 rc = __get_scom(scom, &ind_data, addr, status); in get_indirect_scom_form0()
206 static int raw_put_scom(struct scom_device *scom, uint64_t value, in raw_put_scom() argument
211 return put_indirect_scom_form1(scom, value, addr, status); in raw_put_scom()
[all …]
Di2cr-scom.c37 struct i2cr_scom *scom = filep->private_data; in i2cr_scom_read() local
44 ret = fsi_master_i2cr_read(scom->i2cr, (u32)*offset, &data); in i2cr_scom_read()
58 struct i2cr_scom *scom = filep->private_data; in i2cr_scom_write() local
69 ret = fsi_master_i2cr_write(scom->i2cr, (u32)*offset, data); in i2cr_scom_write()
87 struct i2cr_scom *scom; in i2cr_scom_probe() local
94 scom = devm_kzalloc(dev, sizeof(*scom), GFP_KERNEL); in i2cr_scom_probe()
95 if (!scom) in i2cr_scom_probe()
98 scom->i2cr = to_fsi_master_i2cr(fsi_dev->slave->master); in i2cr_scom_probe()
99 dev_set_drvdata(dev, scom); in i2cr_scom_probe()
101 scom->dev.type = &fsi_cdev_type; in i2cr_scom_probe()
[all …]
DMakefile9 obj-$(CONFIG_FSI_SCOM) += fsi-scom.o
12 obj-$(CONFIG_I2CR_SCOM) += i2cr-scom.o
/Linux-v6.6/arch/powerpc/platforms/powernv/
Dopal-prd.c273 struct opal_prd_scom scom; in opal_prd_ioctl() local
286 rc = copy_from_user(&scom, (void __user *)param, sizeof(scom)); in opal_prd_ioctl()
290 scom.rc = opal_xscom_read(scom.chip, scom.addr, in opal_prd_ioctl()
291 (__be64 *)&scom.data); in opal_prd_ioctl()
292 scom.data = be64_to_cpu(scom.data); in opal_prd_ioctl()
294 scom.chip, scom.addr, scom.data, scom.rc); in opal_prd_ioctl()
296 rc = copy_to_user((void __user *)param, &scom, sizeof(scom)); in opal_prd_ioctl()
302 rc = copy_from_user(&scom, (void __user *)param, sizeof(scom)); in opal_prd_ioctl()
306 scom.rc = opal_xscom_write(scom.chip, scom.addr, scom.data); in opal_prd_ioctl()
308 scom.chip, scom.addr, scom.data, scom.rc); in opal_prd_ioctl()
[all …]
/Linux-v6.6/arch/arm/boot/dts/aspeed/
Dibm-power10-quad.dtsi19 scom100: scom@1000 {
20 compatible = "ibm,i2cr-scom";
47 scom101: scom@1000 {
48 compatible = "ibm,i2cr-scom";
75 scom110: scom@1000 {
76 compatible = "ibm,i2cr-scom";
103 scom111: scom@1000 {
104 compatible = "ibm,i2cr-scom";
131 scom112: scom@1000 {
132 compatible = "ibm,i2cr-scom";
[all …]
Daspeed-bmc-ibm-everest.dts2514 scom@1000 {
2542 scom500: scom@1000 {
2543 compatible = "ibm,i2cr-scom";
2574 scom501: scom@1000 {
2575 compatible = "ibm,i2cr-scom";
2606 scom510: scom@1000 {
2607 compatible = "ibm,i2cr-scom";
2638 scom511: scom@1000 {
2639 compatible = "ibm,i2cr-scom";
2670 scom512: scom@1000 {
[all …]
Dibm-power9-dual.dtsi11 scom@1000 {
112 scom@1000 {
Dibm-power10-dual.dtsi18 scom@1000 {
183 scom@1000 {
Daspeed-bmc-opp-palmetto.dts360 scom@1000 {
Daspeed-bmc-opp-tacoma.dts205 scom@1000 {
306 scom@1000 {