Home
last modified time | relevance | path

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

/Linux-v6.6/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.h34 struct spmi_device;
616 struct regmap *__regmap_init_spmi_base(struct spmi_device *dev,
620 struct regmap *__regmap_init_spmi_ext(struct spmi_device *dev,
676 struct regmap *__devm_regmap_init_spmi_base(struct spmi_device *dev,
680 struct regmap *__devm_regmap_init_spmi_ext(struct spmi_device *dev,
/Linux-v6.6/drivers/spmi/
Dspmi.c25 struct spmi_device *sdev = to_spmi_device(dev); in spmi_dev_release()
62 int spmi_device_add(struct spmi_device *sdev) in spmi_device_add()
87 void spmi_device_remove(struct spmi_device *sdev) in spmi_device_remove()
142 int spmi_register_read(struct spmi_device *sdev, u8 addr, u8 *buf) in spmi_register_read()
163 int spmi_ext_register_read(struct spmi_device *sdev, u8 addr, u8 *buf, in spmi_ext_register_read()
185 int spmi_ext_register_readl(struct spmi_device *sdev, u16 addr, u8 *buf, in spmi_ext_register_readl()
205 int spmi_register_write(struct spmi_device *sdev, u8 addr, u8 data) in spmi_register_write()
223 int spmi_register_zero_write(struct spmi_device *sdev, u8 data) in spmi_register_zero_write()
240 int spmi_ext_register_write(struct spmi_device *sdev, u8 addr, const u8 *buf, in spmi_ext_register_write()
262 int spmi_ext_register_writel(struct spmi_device *sdev, u16 addr, const u8 *buf, in spmi_ext_register_writel()
[all …]
/Linux-v6.6/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()
/Linux-v6.6/drivers/mfd/
Dqcom-spmi-pmic.c79 static struct spmi_device *qcom_pmic_get_base_usid(struct device *dev) in qcom_pmic_get_base_usid()
81 struct spmi_device *sdev; in qcom_pmic_get_base_usid()
198 struct spmi_device *sdev; in qcom_pmic_get()
225 static int pmic_spmi_probe(struct spmi_device *sdev) in pmic_spmi_probe()
Dhi6421-spmi-pmic.c29 static int hi6421_spmi_pmic_probe(struct spmi_device *sdev) in hi6421_spmi_pmic_probe()
/Linux-v6.6/drivers/regulator/
Dmt6315-regulator.c215 static int mt6315_regulator_probe(struct spmi_device *pdev) in mt6315_regulator_probe()
272 static void mt6315_regulator_shutdown(struct spmi_device *pdev) in mt6315_regulator_shutdown()
/Linux-v6.6/drivers/pinctrl/qcom/
Dpinctrl-spmi-gpio.c1062 const struct spmi_device *parent_spmi_dev; in pmic_gpio_probe()