Lines Matching refs:ret
270 int ret, val;
277 ret = regmap_read(pci->rk808->regmap, pci->pin_cfg[offset].reg, &val);
278 if (ret) {
280 return ret;
289 int ret;
293 ret = regmap_update_bits(pci->rk808->regmap, pci->pin_cfg[offset].reg, pci->pin_cfg[offset].val_msk,
295 if (ret) {
315 int ret;
322 ret = regmap_read(pci->rk808->regmap, pci->pin_cfg[offset].reg, &val);
323 if (ret) {
325 return ret;
439 int ret;
446 ret = regmap_update_bits(pci->rk808->regmap, pci->pin_cfg[offset].reg, pci->pin_cfg[offset].fun_msk,
448 if (ret) {
450 return ret;
453 ret = regmap_update_bits(pci->rk808->regmap, pci->pin_cfg[offset].reg, pci->pin_cfg[offset].fun_msk, 0);
454 if (ret) {
456 return ret;
469 int ret;
476 ret = regmap_update_bits(pci->rk808->regmap, pci->pin_cfg[offset].reg, pci->pin_cfg[offset].fun_msk, mux);
477 if (ret) {
481 return ret;
508 int ret;
515 ret = regmap_update_bits(pci->rk808->regmap, pci->pin_cfg[offset].reg, pci->pin_cfg[offset].dir_msk,
517 if (ret) {
519 return ret;
522 return ret;
633 int ret;
719 ret = devm_gpiochip_add_data(&pdev->dev, &pci->gpio_chip, pci);
720 if (ret < 0) {
722 return ret;
733 ret = gpiochip_add_pin_range(&pci->gpio_chip, dev_name(&pdev->dev), 0, 0, pci->gpio_chip.ngpio);
734 if (ret < 0) {
736 return ret;