Searched refs:rsmu (Results 1 – 9 of 9) sorted by relevance
/openbmc/linux/drivers/mfd/ |
H A D | rsmu_i2c.c | 57 static int rsmu_read_device(struct rsmu_ddata *rsmu, u8 reg, u8 *buf, u16 bytes) in rsmu_read_device() argument 59 struct i2c_client *client = to_i2c_client(rsmu->dev); in rsmu_read_device() 76 dev_err(rsmu->dev, "i2c_transfer failed at addr: %04x!", reg); in rsmu_read_device() 79 dev_err(rsmu->dev, in rsmu_read_device() 87 static int rsmu_write_device(struct rsmu_ddata *rsmu, u8 reg, u8 *buf, u16 bytes) in rsmu_write_device() argument 89 struct i2c_client *client = to_i2c_client(rsmu->dev); in rsmu_write_device() 110 static int rsmu_write_page_register(struct rsmu_ddata *rsmu, u32 reg) in rsmu_write_page_register() argument 121 if (rsmu->page == page) in rsmu_write_page_register() 129 err = rsmu_write_device(rsmu, RSMU_CM_PAGE_ADDR, buf, sizeof(buf)); in rsmu_write_page_register() 131 dev_err(rsmu->dev, "Failed to set page offset 0x%x\n", page); in rsmu_write_page_register() [all …]
|
H A D | rsmu_spi.c | 25 static int rsmu_read_device(struct rsmu_ddata *rsmu, u8 reg, u8 *buf, u16 bytes) in rsmu_read_device() argument 27 struct spi_device *client = to_spi_device(rsmu->dev); in rsmu_read_device() 66 static int rsmu_write_device(struct rsmu_ddata *rsmu, u8 reg, u8 *buf, u16 bytes) in rsmu_write_device() argument 68 struct spi_device *client = to_spi_device(rsmu->dev); in rsmu_write_device() 94 static int rsmu_write_page_register(struct rsmu_ddata *rsmu, u32 reg) in rsmu_write_page_register() argument 102 switch (rsmu->type) { in rsmu_write_page_register() 126 dev_err(rsmu->dev, "Unsupported RSMU device type: %d\n", rsmu->type); in rsmu_write_page_register() 131 if (rsmu->page == page) in rsmu_write_page_register() 134 err = rsmu_write_device(rsmu, page_reg, buf, bytes); in rsmu_write_page_register() 136 dev_err(rsmu->dev, "Failed to set page offset 0x%x\n", page); in rsmu_write_page_register() [all …]
|
H A D | rsmu_core.c | 52 int rsmu_core_init(struct rsmu_ddata *rsmu) in rsmu_core_init() argument 57 switch (rsmu->type) { in rsmu_core_init() 68 dev_err(rsmu->dev, "Unsupported RSMU device type: %d\n", rsmu->type); in rsmu_core_init() 72 mutex_init(&rsmu->lock); in rsmu_core_init() 74 ret = devm_mfd_add_devices(rsmu->dev, PLATFORM_DEVID_AUTO, cells, in rsmu_core_init() 77 dev_err(rsmu->dev, "Failed to register sub-devices: %d\n", ret); in rsmu_core_init() 83 void rsmu_core_exit(struct rsmu_ddata *rsmu) in rsmu_core_exit() argument 85 mutex_destroy(&rsmu->lock); in rsmu_core_exit()
|
H A D | rsmu.h | 15 int rsmu_core_init(struct rsmu_ddata *rsmu); 16 void rsmu_core_exit(struct rsmu_ddata *rsmu);
|
/openbmc/linux/ |
H A D | opengrok0.0.log | [all...] |
H A D | opengrok1.0.log | [all...] |
H A D | opengrok2.0.log | [all...] |
/openbmc/ |
D | opengrok1.0.log | [all...] |
D | opengrok2.0.log | [all...] |