piobu              61 drivers/gpio/gpio-sama5d2-piobu.c 	struct sama5d2_piobu *piobu = container_of(chip, struct sama5d2_piobu,
piobu              65 drivers/gpio/gpio-sama5d2-piobu.c 	ret = regmap_update_bits(piobu->regmap, PIOBU_BMPR, mask, 0);
piobu              69 drivers/gpio/gpio-sama5d2-piobu.c 	ret = regmap_update_bits(piobu->regmap, PIOBU_NMPR, mask, 0);
piobu              73 drivers/gpio/gpio-sama5d2-piobu.c 	return regmap_update_bits(piobu->regmap, PIOBU_WKPR, mask, 0);
piobu              83 drivers/gpio/gpio-sama5d2-piobu.c 	struct sama5d2_piobu *piobu = container_of(chip, struct sama5d2_piobu,
piobu              88 drivers/gpio/gpio-sama5d2-piobu.c 	return regmap_update_bits(piobu->regmap, reg, mask, value);
piobu              98 drivers/gpio/gpio-sama5d2-piobu.c 	struct sama5d2_piobu *piobu = container_of(chip, struct sama5d2_piobu,
piobu             104 drivers/gpio/gpio-sama5d2-piobu.c 	ret = regmap_read(piobu->regmap, reg, &val);
piobu             184 drivers/gpio/gpio-sama5d2-piobu.c 	struct sama5d2_piobu *piobu;
piobu             187 drivers/gpio/gpio-sama5d2-piobu.c 	piobu = devm_kzalloc(&pdev->dev, sizeof(*piobu), GFP_KERNEL);
piobu             188 drivers/gpio/gpio-sama5d2-piobu.c 	if (!piobu)
piobu             191 drivers/gpio/gpio-sama5d2-piobu.c 	platform_set_drvdata(pdev, piobu);
piobu             192 drivers/gpio/gpio-sama5d2-piobu.c 	piobu->chip.label = pdev->name;
piobu             193 drivers/gpio/gpio-sama5d2-piobu.c 	piobu->chip.parent = &pdev->dev;
piobu             194 drivers/gpio/gpio-sama5d2-piobu.c 	piobu->chip.of_node = pdev->dev.of_node;
piobu             195 drivers/gpio/gpio-sama5d2-piobu.c 	piobu->chip.owner = THIS_MODULE,
piobu             196 drivers/gpio/gpio-sama5d2-piobu.c 	piobu->chip.get_direction = sama5d2_piobu_get_direction,
piobu             197 drivers/gpio/gpio-sama5d2-piobu.c 	piobu->chip.direction_input = sama5d2_piobu_direction_input,
piobu             198 drivers/gpio/gpio-sama5d2-piobu.c 	piobu->chip.direction_output = sama5d2_piobu_direction_output,
piobu             199 drivers/gpio/gpio-sama5d2-piobu.c 	piobu->chip.get = sama5d2_piobu_get,
piobu             200 drivers/gpio/gpio-sama5d2-piobu.c 	piobu->chip.set = sama5d2_piobu_set,
piobu             201 drivers/gpio/gpio-sama5d2-piobu.c 	piobu->chip.base = -1,
piobu             202 drivers/gpio/gpio-sama5d2-piobu.c 	piobu->chip.ngpio = PIOBU_NUM,
piobu             203 drivers/gpio/gpio-sama5d2-piobu.c 	piobu->chip.can_sleep = 0,
piobu             205 drivers/gpio/gpio-sama5d2-piobu.c 	piobu->regmap = syscon_node_to_regmap(pdev->dev.of_node);
piobu             206 drivers/gpio/gpio-sama5d2-piobu.c 	if (IS_ERR(piobu->regmap)) {
piobu             208 drivers/gpio/gpio-sama5d2-piobu.c 			PTR_ERR(piobu->regmap));
piobu             209 drivers/gpio/gpio-sama5d2-piobu.c 		return PTR_ERR(piobu->regmap);
piobu             212 drivers/gpio/gpio-sama5d2-piobu.c 	ret = devm_gpiochip_add_data(&pdev->dev, &piobu->chip, piobu);
piobu             219 drivers/gpio/gpio-sama5d2-piobu.c 		ret = sama5d2_piobu_setup_pin(&piobu->chip, i);