lochnagar         231 drivers/mfd/lochnagar-i2c.c int lochnagar_update_config(struct lochnagar *lochnagar)
lochnagar         233 drivers/mfd/lochnagar-i2c.c 	struct regmap *regmap = lochnagar->regmap;
lochnagar         239 drivers/mfd/lochnagar-i2c.c 	lockdep_assert_held(&lochnagar->analogue_config_lock);
lochnagar         241 drivers/mfd/lochnagar-i2c.c 	if (lochnagar->type != LOCHNAGAR2)
lochnagar         274 drivers/mfd/lochnagar-i2c.c 	struct lochnagar *lochnagar;
lochnagar         281 drivers/mfd/lochnagar-i2c.c 	lochnagar = devm_kzalloc(dev, sizeof(*lochnagar), GFP_KERNEL);
lochnagar         282 drivers/mfd/lochnagar-i2c.c 	if (!lochnagar)
lochnagar         291 drivers/mfd/lochnagar-i2c.c 	lochnagar->dev = dev;
lochnagar         292 drivers/mfd/lochnagar-i2c.c 	mutex_init(&lochnagar->analogue_config_lock);
lochnagar         294 drivers/mfd/lochnagar-i2c.c 	dev_set_drvdata(dev, lochnagar);
lochnagar         317 drivers/mfd/lochnagar-i2c.c 	lochnagar->type = config->type;
lochnagar         319 drivers/mfd/lochnagar-i2c.c 	lochnagar->regmap = devm_regmap_init_i2c(i2c, config->regmap);
lochnagar         320 drivers/mfd/lochnagar-i2c.c 	if (IS_ERR(lochnagar->regmap)) {
lochnagar         321 drivers/mfd/lochnagar-i2c.c 		ret = PTR_ERR(lochnagar->regmap);
lochnagar         327 drivers/mfd/lochnagar-i2c.c 	ret = lochnagar_wait_for_boot(lochnagar->regmap, &val);
lochnagar         344 drivers/mfd/lochnagar-i2c.c 	ret = regmap_read(lochnagar->regmap, LOCHNAGAR_FIRMWARE_ID1, &val);
lochnagar         352 drivers/mfd/lochnagar-i2c.c 	ret = regmap_read(lochnagar->regmap, LOCHNAGAR_FIRMWARE_ID2, &val);
lochnagar         363 drivers/mfd/lochnagar-i2c.c 	ret = regmap_register_patch(lochnagar->regmap, config->patch,
lochnagar          51 drivers/pinctrl/cirrus/pinctrl-lochnagar.c static const struct lochnagar_pin lochnagar##REV##_##ID##_pin = { \
lochnagar          57 drivers/pinctrl/cirrus/pinctrl-lochnagar.c static const struct lochnagar_pin lochnagar##REV##_##ID##_pin = \
lochnagar          92 drivers/pinctrl/cirrus/pinctrl-lochnagar.c 	.name = lochnagar##REV##_##ID##_pin.name, \
lochnagar          93 drivers/pinctrl/cirrus/pinctrl-lochnagar.c 	.drv_data = (void *)&lochnagar##REV##_##ID##_pin, \
lochnagar         441 drivers/pinctrl/cirrus/pinctrl-lochnagar.c 	LN_FUNC(lochnagar##REV##_##ID##_pin.name, PIN, OP)
lochnagar         447 drivers/pinctrl/cirrus/pinctrl-lochnagar.c 	LN_FUNC(lochnagar##REV##_##ID##_aif.name, AIF, OP)
lochnagar         606 drivers/pinctrl/cirrus/pinctrl-lochnagar.c 	.name = lochnagar##REV##_##ID##_pin.name, \
lochnagar         608 drivers/pinctrl/cirrus/pinctrl-lochnagar.c 	.pins = &lochnagar##REV##_pins[LOCHNAGAR##REV##_PIN_##ID].number, \
lochnagar         610 drivers/pinctrl/cirrus/pinctrl-lochnagar.c 	.priv = &lochnagar##REV##_pins[LOCHNAGAR##REV##_PIN_##ID], \
lochnagar         614 drivers/pinctrl/cirrus/pinctrl-lochnagar.c 	.name = lochnagar##REV##_##ID##_aif.name, \
lochnagar         616 drivers/pinctrl/cirrus/pinctrl-lochnagar.c 	.pins = lochnagar##REV##_##ID##_aif.pins, \
lochnagar         617 drivers/pinctrl/cirrus/pinctrl-lochnagar.c 	.npins = ARRAY_SIZE(lochnagar##REV##_##ID##_aif.pins), \
lochnagar         618 drivers/pinctrl/cirrus/pinctrl-lochnagar.c 	.priv = &lochnagar##REV##_##ID##_aif, \
lochnagar         708 drivers/pinctrl/cirrus/pinctrl-lochnagar.c 	struct lochnagar *lochnagar;
lochnagar         795 drivers/pinctrl/cirrus/pinctrl-lochnagar.c 	struct regmap *regmap = priv->lochnagar->regmap;
lochnagar         837 drivers/pinctrl/cirrus/pinctrl-lochnagar.c 	switch (priv->lochnagar->type) {
lochnagar         854 drivers/pinctrl/cirrus/pinctrl-lochnagar.c 	ret = regmap_write(priv->lochnagar->regmap, pin->reg, op);
lochnagar         866 drivers/pinctrl/cirrus/pinctrl-lochnagar.c 	struct regmap *regmap = priv->lochnagar->regmap;
lochnagar         937 drivers/pinctrl/cirrus/pinctrl-lochnagar.c 	struct lochnagar *lochnagar = priv->lochnagar;
lochnagar         943 drivers/pinctrl/cirrus/pinctrl-lochnagar.c 	if (lochnagar->type == LOCHNAGAR1 || pin->type != LN_PTYPE_MUX)
lochnagar         988 drivers/pinctrl/cirrus/pinctrl-lochnagar.c 	struct regmap *regmap = priv->lochnagar->regmap;
lochnagar        1062 drivers/pinctrl/cirrus/pinctrl-lochnagar.c 	struct lochnagar *lochnagar = priv->lochnagar;
lochnagar        1081 drivers/pinctrl/cirrus/pinctrl-lochnagar.c 		ret = regmap_update_bits(lochnagar->regmap, pin->reg,
lochnagar        1136 drivers/pinctrl/cirrus/pinctrl-lochnagar.c 	struct lochnagar *lochnagar = dev_get_drvdata(pdev->dev.parent);
lochnagar        1148 drivers/pinctrl/cirrus/pinctrl-lochnagar.c 	priv->lochnagar = lochnagar;
lochnagar        1168 drivers/pinctrl/cirrus/pinctrl-lochnagar.c 	switch (lochnagar->type) {
lochnagar        1190 drivers/pinctrl/cirrus/pinctrl-lochnagar.c 		dev_err(dev, "Unknown Lochnagar type: %d\n", lochnagar->type);
lochnagar          46 drivers/regulator/lochnagar-regulator.c 	struct lochnagar *lochnagar = rdev_get_drvdata(rdev);
lochnagar          49 drivers/regulator/lochnagar-regulator.c 	mutex_lock(&lochnagar->analogue_config_lock);
lochnagar          55 drivers/regulator/lochnagar-regulator.c 	ret = lochnagar_update_config(lochnagar);
lochnagar          58 drivers/regulator/lochnagar-regulator.c 	mutex_unlock(&lochnagar->analogue_config_lock);
lochnagar          65 drivers/regulator/lochnagar-regulator.c 	struct lochnagar *lochnagar = rdev_get_drvdata(rdev);
lochnagar          68 drivers/regulator/lochnagar-regulator.c 	mutex_lock(&lochnagar->analogue_config_lock);
lochnagar          74 drivers/regulator/lochnagar-regulator.c 	ret = lochnagar_update_config(lochnagar);
lochnagar          77 drivers/regulator/lochnagar-regulator.c 	mutex_unlock(&lochnagar->analogue_config_lock);
lochnagar         115 drivers/regulator/lochnagar-regulator.c 	struct lochnagar *lochnagar = config->driver_data;
lochnagar         124 drivers/regulator/lochnagar-regulator.c 		mutex_lock(&lochnagar->analogue_config_lock);
lochnagar         125 drivers/regulator/lochnagar-regulator.c 		ret = regmap_update_bits(lochnagar->regmap,
lochnagar         128 drivers/regulator/lochnagar-regulator.c 		mutex_unlock(&lochnagar->analogue_config_lock);
lochnagar         130 drivers/regulator/lochnagar-regulator.c 			dev_err(lochnagar->dev,
lochnagar         243 drivers/regulator/lochnagar-regulator.c 	struct lochnagar *lochnagar = dev_get_drvdata(dev->parent);
lochnagar         251 drivers/regulator/lochnagar-regulator.c 	config.regmap = lochnagar->regmap;
lochnagar         252 drivers/regulator/lochnagar-regulator.c 	config.driver_data = lochnagar;
lochnagar          53 include/linux/mfd/lochnagar.h int lochnagar_update_config(struct lochnagar *lochnagar);