Lines Matching defs:pindesc
192 struct pin_desc *pindesc;
198 pindesc = pin_desc_get(pctldev, pin);
201 return pindesc != NULL;
213 struct pin_desc *pindesc;
215 pindesc = radix_tree_lookup(&pctldev->pin_desc_tree,
217 if (pindesc != NULL) {
220 if (pindesc->dynamic_name)
221 kfree(pindesc->name);
223 kfree(pindesc);
230 struct pin_desc *pindesc;
232 pindesc = pin_desc_get(pctldev, number);
233 if (pindesc != NULL) {
239 pindesc = kzalloc(sizeof(*pindesc), GFP_KERNEL);
240 if (pindesc == NULL) {
246 pindesc->pctldev = pctldev;
250 pindesc->name = name;
252 pindesc->name = kasprintf(GFP_KERNEL, "PIN%u", number);
253 if (pindesc->name == NULL) {
254 kfree(pindesc);
257 pindesc->dynamic_name = true;
260 radix_tree_insert(&pctldev->pin_desc_tree, number, pindesc);
262 number, pindesc->name, pctldev->desc->name);