Lines Matching refs:channel
61 unsigned channel; in msm_spmi_write() local
69 channel = priv->channel_map[usid][pid]; in msm_spmi_write()
72 writel(0x0, priv->spmi_core + SPMI_CH_OFFSET(channel) + in msm_spmi_write()
76 writel(val, priv->spmi_core + SPMI_CH_OFFSET(channel) + SPMI_REG_WDATA); in msm_spmi_write()
86 writel(reg, priv->spmi_core + SPMI_CH_OFFSET(channel) + SPMI_REG_CMD0); in msm_spmi_write()
91 reg = readl(priv->spmi_core + SPMI_CH_OFFSET(channel) + in msm_spmi_write()
106 unsigned channel; in msm_spmi_read() local
114 channel = priv->channel_map[usid][pid]; in msm_spmi_read()
117 writel(0x0, priv->spmi_obs + SPMI_CH_OFFSET(channel) + SPMI_REG_CONFIG); in msm_spmi_read()
127 writel(reg, priv->spmi_obs + SPMI_CH_OFFSET(channel) + SPMI_REG_CMD0); in msm_spmi_read()
132 reg = readl(priv->spmi_obs + SPMI_CH_OFFSET(channel) + in msm_spmi_read()
142 return readl(priv->spmi_obs + SPMI_CH_OFFSET(channel) + in msm_spmi_read()