Lines Matching full:scom
37 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()
102 scom->dev.parent = dev; in i2cr_scom_probe()
103 device_initialize(&scom->dev); in i2cr_scom_probe()
105 ret = fsi_get_new_minor(fsi_dev, fsi_dev_scom, &scom->dev.devt, &didx); in i2cr_scom_probe()
109 dev_set_name(&scom->dev, "scom%d", didx); in i2cr_scom_probe()
110 cdev_init(&scom->cdev, &i2cr_scom_fops); in i2cr_scom_probe()
111 ret = cdev_device_add(&scom->cdev, &scom->dev); in i2cr_scom_probe()
113 fsi_free_minor(scom->dev.devt); in i2cr_scom_probe()
120 struct i2cr_scom *scom = dev_get_drvdata(dev); in i2cr_scom_remove() local
122 cdev_device_del(&scom->cdev, &scom->dev); in i2cr_scom_remove()
123 fsi_free_minor(scom->dev.devt); in i2cr_scom_remove()
129 { .compatible = "ibm,i2cr-scom" },
153 MODULE_DESCRIPTION("IBM I2C Responder SCOM driver");