Lines Matching refs:madera
525 ret = regmap_read(priv->madera->regmap, reg, &conf[0]); in madera_pin_dbg_show()
529 ret = regmap_read(priv->madera->regmap, reg + 1, &conf[1]); in madera_pin_dbg_show()
615 struct madera *madera = priv->madera; in madera_mux_set_mux() local
644 ret = regmap_update_bits(madera->regmap, reg, in madera_mux_set_mux()
662 ret = regmap_update_bits(madera->regmap, in madera_mux_set_mux()
680 struct madera *madera = priv->madera; in madera_gpio_set_direction() local
690 ret = regmap_update_bits(madera->regmap, reg, MADERA_GP1_DIR_MASK, val); in madera_gpio_set_direction()
702 struct madera *madera = priv->madera; in madera_gpio_request_enable() local
707 ret = regmap_update_bits(madera->regmap, reg, MADERA_GP1_FN_MASK, 1); in madera_gpio_request_enable()
719 struct madera *madera = priv->madera; in madera_gpio_disable_free() local
726 ret = regmap_update_bits(madera->regmap, reg, MADERA_GP1_FN_MASK, 1); in madera_gpio_disable_free()
752 ret = regmap_read(priv->madera->regmap, reg, &conf[0]); in madera_pin_conf_get()
754 ret = regmap_read(priv->madera->regmap, reg + 1, &conf[1]); in madera_pin_conf_get()
928 ret = regmap_update_bits(priv->madera->regmap, reg, mask[0], conf[0]); in madera_pin_conf_set()
933 ret = regmap_update_bits(priv->madera->regmap, reg, mask[1], conf[1]); in madera_pin_conf_set()
1000 struct madera *madera = dev_get_drvdata(pdev->dev.parent); in madera_pin_probe() local
1001 const struct madera_pdata *pdata = &madera->pdata; in madera_pin_probe()
1017 priv->madera = madera; in madera_pin_probe()
1019 switch (madera->type) { in madera_pin_probe()
1091 if (priv->madera->pdata.gpio_configs) in madera_pin_remove()
1092 pinctrl_unregister_mappings(priv->madera->pdata.gpio_configs); in madera_pin_remove()