Lines Matching refs:pin_cap
788 struct lpc18xx_pin_caps *pin_cap) in lpc18xx_pconf_get_pin() argument
820 if (pin_cap->type == TYPE_HD) in lpc18xx_pconf_get_pin()
837 if (pin_cap->type != TYPE_HD) in lpc18xx_pconf_get_pin()
879 struct lpc18xx_pin_caps *pin_cap; in lpc18xx_pconf_get() local
883 pin_cap = lpc18xx_get_pin_caps(pin); in lpc18xx_pconf_get()
884 if (!pin_cap) in lpc18xx_pconf_get()
887 reg = readl(scu->base + pin_cap->offset); in lpc18xx_pconf_get()
889 if (pin_cap->type == TYPE_I2C0) in lpc18xx_pconf_get()
891 else if (pin_cap->type == TYPE_USB1) in lpc18xx_pconf_get()
894 ret = lpc18xx_pconf_get_pin(pctldev, param, &arg, reg, pin, pin_cap); in lpc18xx_pconf_get()
1011 struct lpc18xx_pin_caps *pin_cap) in lpc18xx_pconf_set_pin() argument
1035 if (pin_cap->type == TYPE_HD) { in lpc18xx_pconf_set_pin()
1054 if (pin_cap->type != TYPE_HD) { in lpc18xx_pconf_set_pin()
1091 struct lpc18xx_pin_caps *pin_cap; in lpc18xx_pconf_set() local
1098 pin_cap = lpc18xx_get_pin_caps(pin); in lpc18xx_pconf_set()
1099 if (!pin_cap) in lpc18xx_pconf_set()
1102 reg = readl(scu->base + pin_cap->offset); in lpc18xx_pconf_set()
1108 if (pin_cap->type == TYPE_I2C0) in lpc18xx_pconf_set()
1110 else if (pin_cap->type == TYPE_USB1) in lpc18xx_pconf_set()
1113 ret = lpc18xx_pconf_set_pin(pctldev, param, param_val, ®, pin, pin_cap); in lpc18xx_pconf_set()
1119 writel(reg, scu->base + pin_cap->offset); in lpc18xx_pconf_set()