Lines Matching refs:pindesc
190 struct pin_desc *pindesc; in pinctrl_free_pindescs() local
192 pindesc = radix_tree_lookup(&pctldev->pin_desc_tree, in pinctrl_free_pindescs()
194 if (pindesc) { in pinctrl_free_pindescs()
197 if (pindesc->dynamic_name) in pinctrl_free_pindescs()
198 kfree(pindesc->name); in pinctrl_free_pindescs()
200 kfree(pindesc); in pinctrl_free_pindescs()
207 struct pin_desc *pindesc; in pinctrl_register_one_pin() local
209 pindesc = pin_desc_get(pctldev, pin->number); in pinctrl_register_one_pin()
210 if (pindesc) { in pinctrl_register_one_pin()
216 pindesc = kzalloc(sizeof(*pindesc), GFP_KERNEL); in pinctrl_register_one_pin()
217 if (!pindesc) in pinctrl_register_one_pin()
221 pindesc->pctldev = pctldev; in pinctrl_register_one_pin()
225 pindesc->name = pin->name; in pinctrl_register_one_pin()
227 pindesc->name = kasprintf(GFP_KERNEL, "PIN%u", pin->number); in pinctrl_register_one_pin()
228 if (!pindesc->name) { in pinctrl_register_one_pin()
229 kfree(pindesc); in pinctrl_register_one_pin()
232 pindesc->dynamic_name = true; in pinctrl_register_one_pin()
235 pindesc->drv_data = pin->drv_data; in pinctrl_register_one_pin()
237 radix_tree_insert(&pctldev->pin_desc_tree, pin->number, pindesc); in pinctrl_register_one_pin()
239 pin->number, pindesc->name, pctldev->desc->name); in pinctrl_register_one_pin()