/openbmc/u-boot/drivers/spmi/ |
H A D | spmi-msm.c | 55 static int msm_spmi_write(struct udevice *dev, int usid, int pid, int off, in msm_spmi_write() argument 62 if (usid >= SPMI_MAX_SLAVES) in msm_spmi_write() 67 channel = priv->channel_map[usid][pid]; in msm_spmi_write() 78 reg |= (usid << SPMI_CMD_SLAVE_ID_SHIFT); in msm_spmi_write() 101 static int msm_spmi_read(struct udevice *dev, int usid, int pid, int off) in msm_spmi_read() argument 107 if (usid >= SPMI_MAX_SLAVES) in msm_spmi_read() 112 channel = priv->channel_map[usid][pid]; in msm_spmi_read() 119 reg |= (usid << SPMI_CMD_SLAVE_ID_SHIFT); in msm_spmi_read()
|
H A D | spmi-uclass.c | 14 int spmi_reg_read(struct udevice *dev, int usid, int pid, int reg) in spmi_reg_read() argument 21 return ops->read(dev, usid, pid, reg); in spmi_reg_read() 24 int spmi_reg_write(struct udevice *dev, int usid, int pid, int reg, in spmi_reg_write() argument 32 return ops->write(dev, usid, pid, reg, value); in spmi_reg_write()
|
H A D | spmi-sandbox.c | 44 static bool check_address_valid(int usid, int pid, int off) in check_address_valid() argument 46 if (usid != 0) in check_address_valid() 55 static int sandbox_spmi_write(struct udevice *dev, int usid, int pid, int off, in sandbox_spmi_write() argument 61 if (!check_address_valid(usid, pid, off)) in sandbox_spmi_write() 82 static int sandbox_spmi_read(struct udevice *dev, int usid, int pid, int off) in sandbox_spmi_read() argument 87 if (!check_address_valid(usid, pid, off)) in sandbox_spmi_read()
|
/openbmc/u-boot/include/spmi/ |
H A D | spmi.h | 17 int (*read)(struct udevice *dev, int usid, int pid, int reg); 18 int (*write)(struct udevice *dev, int usid, int pid, int reg, 31 int spmi_reg_read(struct udevice *dev, int usid, int pid, int reg); 43 int spmi_reg_write(struct udevice *dev, int usid, int pid, int reg,
|
/openbmc/u-boot/drivers/power/pmic/ |
H A D | pm8916.c | 17 uint32_t usid; /* Slave ID on SPMI bus */ member 33 return spmi_reg_write(dev->parent, priv->usid, in pm8916_write() 46 val = spmi_reg_read(dev->parent, priv->usid, in pm8916_read() 70 priv->usid = dev_read_addr(dev); in pm8916_probe() 72 if (priv->usid == FDT_ADDR_T_NONE) in pm8916_probe()
|
/openbmc/linux/drivers/spmi/ |
H A D | spmi.c | 67 dev_set_name(&sdev->dev, "%d-%02x", ctrl->nr, sdev->usid); in spmi_device_add() 148 return spmi_read_cmd(sdev->ctrl, SPMI_CMD_READ, sdev->usid, addr, in spmi_register_read() 170 return spmi_read_cmd(sdev->ctrl, SPMI_CMD_EXT_READ, sdev->usid, addr, in spmi_ext_register_read() 192 return spmi_read_cmd(sdev->ctrl, SPMI_CMD_EXT_READL, sdev->usid, addr, in spmi_ext_register_readl() 211 return spmi_write_cmd(sdev->ctrl, SPMI_CMD_WRITE, sdev->usid, addr, in spmi_register_write() 225 return spmi_write_cmd(sdev->ctrl, SPMI_CMD_ZERO_WRITE, sdev->usid, 0, in spmi_register_zero_write() 247 return spmi_write_cmd(sdev->ctrl, SPMI_CMD_EXT_WRITE, sdev->usid, addr, in spmi_ext_register_write() 269 return spmi_write_cmd(sdev->ctrl, SPMI_CMD_EXT_WRITEL, sdev->usid, in spmi_ext_register_writel() 284 return spmi_cmd(sdev->ctrl, SPMI_CMD_RESET, sdev->usid); in spmi_command_reset() 296 return spmi_cmd(sdev->ctrl, SPMI_CMD_SLEEP, sdev->usid); in spmi_command_sleep() [all …]
|
/openbmc/linux/drivers/mfd/ |
H A D | qcom-spmi-pmic.c | 92 if (sdev->usid % ctx->num_usids == 0) { in qcom_pmic_get_base_usid() 97 function_parent_usid = sdev->usid; in qcom_pmic_get_base_usid() 270 if (sdev->usid % ctx->num_usids == 0) { in pmic_spmi_probe()
|
/openbmc/linux/arch/arm64/include/asm/ |
H A D | signal32.h | 65 static inline int compat_setup_frame(int usid, struct ksignal *ksig, in compat_setup_frame() argument
|
/openbmc/linux/drivers/regulator/ |
H A D | mt6315-regulator.c | 237 switch (pdev->usid) { in mt6315_regulator_probe() 284 pdev->usid, ret); in mt6315_regulator_shutdown()
|
/openbmc/linux/include/linux/ |
H A D | spmi.h | 42 u8 usid; member
|
/openbmc/linux/drivers/pinctrl/qcom/ |
H A D | pinctrl-spmi-gpio.c | 182 u8 usid; member 1017 fwspec->param[0] = state->usid; in pmic_gpio_populate_parent_fwspec() 1083 state->usid = parent_spmi_dev->usid; in pmic_gpio_probe()
|