Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/include/linux/
Dspmi.h39 struct spmi_device { struct
45 static inline struct spmi_device *to_spmi_device(struct device *d) in to_spmi_device() argument
47 return container_of(d, struct spmi_device, dev); in to_spmi_device()
50 static inline void *spmi_device_get_drvdata(const struct spmi_device *sdev) in spmi_device_get_drvdata()
55 static inline void spmi_device_set_drvdata(struct spmi_device *sdev, void *data) in spmi_device_set_drvdata()
60 struct spmi_device *spmi_device_alloc(struct spmi_controller *ctrl);
62 static inline void spmi_device_put(struct spmi_device *sdev) in spmi_device_put()
68 int spmi_device_add(struct spmi_device *sdev);
70 void spmi_device_remove(struct spmi_device *sdev);
139 int (*probe)(struct spmi_device *sdev);
[all …]
Dregmap.h32 struct spmi_device;
548 struct regmap *__regmap_init_spmi_base(struct spmi_device *dev,
552 struct regmap *__regmap_init_spmi_ext(struct spmi_device *dev,
596 struct regmap *__devm_regmap_init_spmi_base(struct spmi_device *dev,
600 struct regmap *__devm_regmap_init_spmi_ext(struct spmi_device *dev,
/kernel/linux/linux-5.10/drivers/spmi/
Dspmi.c25 struct spmi_device *sdev = to_spmi_device(dev); in spmi_dev_release()
60 int spmi_device_add(struct spmi_device *sdev) in spmi_device_add()
85 void spmi_device_remove(struct spmi_device *sdev) in spmi_device_remove()
140 int spmi_register_read(struct spmi_device *sdev, u8 addr, u8 *buf) in spmi_register_read()
161 int spmi_ext_register_read(struct spmi_device *sdev, u8 addr, u8 *buf, in spmi_ext_register_read()
183 int spmi_ext_register_readl(struct spmi_device *sdev, u16 addr, u8 *buf, in spmi_ext_register_readl()
203 int spmi_register_write(struct spmi_device *sdev, u8 addr, u8 data) in spmi_register_write()
221 int spmi_register_zero_write(struct spmi_device *sdev, u8 data) in spmi_register_zero_write()
238 int spmi_ext_register_write(struct spmi_device *sdev, u8 addr, const u8 *buf, in spmi_ext_register_write()
260 int spmi_ext_register_writel(struct spmi_device *sdev, u16 addr, const u8 *buf, in spmi_ext_register_writel()
[all …]
/kernel/linux/linux-5.10/drivers/base/regmap/
Dregmap-spmi.c85 struct regmap *__regmap_init_spmi_base(struct spmi_device *sdev, in __regmap_init_spmi_base()
95 struct regmap *__devm_regmap_init_spmi_base(struct spmi_device *sdev, in __devm_regmap_init_spmi_base()
205 struct regmap *__regmap_init_spmi_ext(struct spmi_device *sdev, in __regmap_init_spmi_ext()
215 struct regmap *__devm_regmap_init_spmi_ext(struct spmi_device *sdev, in __devm_regmap_init_spmi_ext()
/kernel/linux/linux-5.10/drivers/staging/hikey9xx/
Dhi6421-spmi-pmic.c69 struct spmi_device *pdev; in hi6421_spmi_pmic_read()
90 struct spmi_device *pdev; in hi6421_spmi_pmic_write()
231 static int hi6421_spmi_pmic_probe(struct spmi_device *pdev) in hi6421_spmi_pmic_probe()
320 static void hi6421_spmi_pmic_remove(struct spmi_device *pdev) in hi6421_spmi_pmic_remove()
/kernel/linux/linux-5.10/drivers/mfd/
Dqcom-spmi-pmic.c123 static int pmic_spmi_probe(struct spmi_device *sdev) in pmic_spmi_probe()