Lines Matching refs:pin_cap
786 struct lpc18xx_pin_caps *pin_cap) in lpc18xx_pconf_get_pin() argument
818 if (pin_cap->type == TYPE_HD) in lpc18xx_pconf_get_pin()
835 if (pin_cap->type != TYPE_HD) in lpc18xx_pconf_get_pin()
877 struct lpc18xx_pin_caps *pin_cap; in lpc18xx_pconf_get() local
881 pin_cap = lpc18xx_get_pin_caps(pin); in lpc18xx_pconf_get()
882 if (!pin_cap) in lpc18xx_pconf_get()
885 reg = readl(scu->base + pin_cap->offset); in lpc18xx_pconf_get()
887 if (pin_cap->type == TYPE_I2C0) in lpc18xx_pconf_get()
889 else if (pin_cap->type == TYPE_USB1) in lpc18xx_pconf_get()
892 ret = lpc18xx_pconf_get_pin(pctldev, param, &arg, reg, pin, pin_cap); in lpc18xx_pconf_get()
1009 struct lpc18xx_pin_caps *pin_cap) in lpc18xx_pconf_set_pin() argument
1033 if (pin_cap->type == TYPE_HD) { in lpc18xx_pconf_set_pin()
1052 if (pin_cap->type != TYPE_HD) { in lpc18xx_pconf_set_pin()
1089 struct lpc18xx_pin_caps *pin_cap; in lpc18xx_pconf_set() local
1096 pin_cap = lpc18xx_get_pin_caps(pin); in lpc18xx_pconf_set()
1097 if (!pin_cap) in lpc18xx_pconf_set()
1100 reg = readl(scu->base + pin_cap->offset); in lpc18xx_pconf_set()
1106 if (pin_cap->type == TYPE_I2C0) in lpc18xx_pconf_set()
1108 else if (pin_cap->type == TYPE_USB1) in lpc18xx_pconf_set()
1111 ret = lpc18xx_pconf_set_pin(pctldev, param, param_val, ®, pin, pin_cap); in lpc18xx_pconf_set()
1117 writel(reg, scu->base + pin_cap->offset); in lpc18xx_pconf_set()