Lines Matching refs:pud_info
363 const struct palmas_pins_pullup_dn_info *pud_info; member
436 .pud_info = _pud_info, \
772 if (!opt->pud_info) { in palmas_pinconf_get()
778 base = opt->pud_info->pullup_dn_reg_base; in palmas_pinconf_get()
779 add = opt->pud_info->pullup_dn_reg_add; in palmas_pinconf_get()
787 rval = val & opt->pud_info->pullup_dn_mask; in palmas_pinconf_get()
789 if ((opt->pud_info->normal_val >= 0) && in palmas_pinconf_get()
790 (opt->pud_info->normal_val == rval) && in palmas_pinconf_get()
793 else if ((opt->pud_info->pull_up_val >= 0) && in palmas_pinconf_get()
794 (opt->pud_info->pull_up_val == rval) && in palmas_pinconf_get()
797 else if ((opt->pud_info->pull_dn_val >= 0) && in palmas_pinconf_get()
798 (opt->pud_info->pull_dn_val == rval) && in palmas_pinconf_get()
885 if (!opt->pud_info) { in palmas_pinconf_set()
891 base = opt->pud_info->pullup_dn_reg_base; in palmas_pinconf_set()
892 add = opt->pud_info->pullup_dn_reg_add; in palmas_pinconf_set()
893 mask = opt->pud_info->pullup_dn_mask; in palmas_pinconf_set()
896 rval = opt->pud_info->normal_val; in palmas_pinconf_set()
898 rval = opt->pud_info->pull_up_val; in palmas_pinconf_set()
900 rval = opt->pud_info->pull_dn_val; in palmas_pinconf_set()