max77686          104 drivers/clk/clk-max77686.c 	struct max77686_clk_init_data *max77686 = to_max77686_clk_init_data(hw);
max77686          106 drivers/clk/clk-max77686.c 	return regmap_update_bits(max77686->regmap, max77686->clk_info->clk_reg,
max77686          107 drivers/clk/clk-max77686.c 				  max77686->clk_info->clk_enable_mask,
max77686          108 drivers/clk/clk-max77686.c 				  max77686->clk_info->clk_enable_mask);
max77686          113 drivers/clk/clk-max77686.c 	struct max77686_clk_init_data *max77686 = to_max77686_clk_init_data(hw);
max77686          115 drivers/clk/clk-max77686.c 	regmap_update_bits(max77686->regmap, max77686->clk_info->clk_reg,
max77686          116 drivers/clk/clk-max77686.c 			   max77686->clk_info->clk_enable_mask,
max77686          117 drivers/clk/clk-max77686.c 			   ~max77686->clk_info->clk_enable_mask);
max77686          122 drivers/clk/clk-max77686.c 	struct max77686_clk_init_data *max77686 = to_max77686_clk_init_data(hw);
max77686          126 drivers/clk/clk-max77686.c 	ret = regmap_read(max77686->regmap, max77686->clk_info->clk_reg, &val);
max77686          131 drivers/clk/clk-max77686.c 	return val & max77686->clk_info->clk_enable_mask;
max77686          163 drivers/mfd/max77686.c 	struct max77686_dev *max77686 = NULL;
max77686          171 drivers/mfd/max77686.c 	max77686 = devm_kzalloc(&i2c->dev,
max77686          173 drivers/mfd/max77686.c 	if (!max77686)
max77686          176 drivers/mfd/max77686.c 	i2c_set_clientdata(i2c, max77686);
max77686          177 drivers/mfd/max77686.c 	max77686->type = (unsigned long)of_device_get_match_data(&i2c->dev);
max77686          178 drivers/mfd/max77686.c 	max77686->dev = &i2c->dev;
max77686          179 drivers/mfd/max77686.c 	max77686->i2c = i2c;
max77686          181 drivers/mfd/max77686.c 	max77686->irq = i2c->irq;
max77686          183 drivers/mfd/max77686.c 	if (max77686->type == TYPE_MAX77686) {
max77686          195 drivers/mfd/max77686.c 	max77686->regmap = devm_regmap_init_i2c(i2c, config);
max77686          196 drivers/mfd/max77686.c 	if (IS_ERR(max77686->regmap)) {
max77686          197 drivers/mfd/max77686.c 		ret = PTR_ERR(max77686->regmap);
max77686          198 drivers/mfd/max77686.c 		dev_err(max77686->dev, "Failed to allocate register map: %d\n",
max77686          203 drivers/mfd/max77686.c 	ret = regmap_read(max77686->regmap, MAX77686_REG_DEVICE_ID, &data);
max77686          205 drivers/mfd/max77686.c 		dev_err(max77686->dev,
max77686          210 drivers/mfd/max77686.c 	ret = devm_regmap_add_irq_chip(&i2c->dev, max77686->regmap,
max77686          211 drivers/mfd/max77686.c 				       max77686->irq,
max77686          214 drivers/mfd/max77686.c 				       &max77686->irq_data);
max77686          220 drivers/mfd/max77686.c 	ret = devm_mfd_add_devices(max77686->dev, -1, cells, n_devs, NULL,
max77686          234 drivers/mfd/max77686.c 	struct max77686_dev *max77686 = i2c_get_clientdata(i2c);
max77686          237 drivers/mfd/max77686.c 		enable_irq_wake(max77686->irq);
max77686          248 drivers/mfd/max77686.c 	disable_irq(max77686->irq);
max77686          256 drivers/mfd/max77686.c 	struct max77686_dev *max77686 = i2c_get_clientdata(i2c);
max77686          259 drivers/mfd/max77686.c 		disable_irq_wake(max77686->irq);
max77686          261 drivers/mfd/max77686.c 	enable_irq(max77686->irq);
max77686          105 drivers/regulator/max77686-regulator.c static unsigned int max77686_map_normal_mode(struct max77686_data *max77686,
max77686          112 drivers/regulator/max77686-regulator.c 		if (test_bit(id, max77686->gpio_enabled))
max77686          123 drivers/regulator/max77686-regulator.c 	struct max77686_data *max77686 = rdev_get_drvdata(rdev);
max77686          134 drivers/regulator/max77686-regulator.c 	max77686->opmode[id] = val;
max77686          142 drivers/regulator/max77686-regulator.c 	struct max77686_data *max77686 = rdev_get_drvdata(rdev);
max77686          155 drivers/regulator/max77686-regulator.c 		val = max77686_map_normal_mode(max77686, id);
max77686          169 drivers/regulator/max77686-regulator.c 	max77686->opmode[id] = val;
max77686          178 drivers/regulator/max77686-regulator.c 	struct max77686_data *max77686 = rdev_get_drvdata(rdev);
max77686          189 drivers/regulator/max77686-regulator.c 		val = max77686_map_normal_mode(max77686, id);
max77686          203 drivers/regulator/max77686-regulator.c 	max77686->opmode[id] = val;
max77686          209 drivers/regulator/max77686-regulator.c 	struct max77686_data *max77686 = rdev_get_drvdata(rdev);
max77686          215 drivers/regulator/max77686-regulator.c 	if (max77686->opmode[id] == MAX77686_OFF_PWRREQ)
max77686          216 drivers/regulator/max77686-regulator.c 		max77686->opmode[id] = max77686_map_normal_mode(max77686, id);
max77686          220 drivers/regulator/max77686-regulator.c 				  max77686->opmode[id] << shift);
max77686          252 drivers/regulator/max77686-regulator.c 	struct max77686_data *max77686 = config->driver_data;
max77686          272 drivers/regulator/max77686-regulator.c 		set_bit(desc->id, max77686->gpio_enabled);
max77686          507 drivers/regulator/max77686-regulator.c 	struct max77686_data *max77686;
max77686          513 drivers/regulator/max77686-regulator.c 	max77686 = devm_kzalloc(&pdev->dev, sizeof(struct max77686_data),
max77686          515 drivers/regulator/max77686-regulator.c 	if (!max77686)
max77686          518 drivers/regulator/max77686-regulator.c 	max77686->dev = &pdev->dev;
max77686          521 drivers/regulator/max77686-regulator.c 	config.driver_data = max77686;
max77686          522 drivers/regulator/max77686-regulator.c 	platform_set_drvdata(pdev, max77686);
max77686          528 drivers/regulator/max77686-regulator.c 		max77686->opmode[id] = MAX77686_NORMAL;
max77686          444 include/linux/mfd/max77686-private.h extern int max77686_irq_init(struct max77686_dev *max77686);
max77686          445 include/linux/mfd/max77686-private.h extern void max77686_irq_exit(struct max77686_dev *max77686);
max77686          446 include/linux/mfd/max77686-private.h extern int max77686_irq_resume(struct max77686_dev *max77686);