Lines Matching refs:iomux_num
114 int iomux_num = (pin / 8); in rockchip_get_mux() local
120 if (iomux_num > 3) in rockchip_get_mux()
123 if (bank->iomux[iomux_num].type & IOMUX_UNROUTED) { in rockchip_get_mux()
128 if (bank->iomux[iomux_num].type & IOMUX_GPIO_ONLY) in rockchip_get_mux()
131 regmap = (bank->iomux[iomux_num].type & IOMUX_SOURCE_PMU) in rockchip_get_mux()
135 mux_type = bank->iomux[iomux_num].type; in rockchip_get_mux()
136 reg = bank->iomux[iomux_num].offset; in rockchip_get_mux()
160 int iomux_num = (pin / 8); in rockchip_verify_mux() local
162 if (iomux_num > 3) in rockchip_verify_mux()
165 if (bank->iomux[iomux_num].type & IOMUX_UNROUTED) { in rockchip_verify_mux()
170 if (bank->iomux[iomux_num].type & IOMUX_GPIO_ONLY) { in rockchip_verify_mux()
196 int iomux_num = (pin / 8); in rockchip_set_mux() local
206 if (bank->iomux[iomux_num].type & IOMUX_GPIO_ONLY) in rockchip_set_mux()
211 regmap = (bank->iomux[iomux_num].type & IOMUX_SOURCE_PMU) in rockchip_set_mux()
215 mux_type = bank->iomux[iomux_num].type; in rockchip_set_mux()
216 reg = bank->iomux[iomux_num].offset; in rockchip_set_mux()