Lines Matching refs:desc
26 struct gpio_desc **desc = res; in devm_gpiod_release() local
28 gpiod_put(*desc); in devm_gpiod_release()
105 struct gpio_desc *desc; in __devm_gpiod_get_index() local
112 desc = gpiod_get_index(dev, con_id, idx, flags); in __devm_gpiod_get_index()
113 if (IS_ERR(desc)) { in __devm_gpiod_get_index()
115 return desc; in __devm_gpiod_get_index()
118 *dr = desc; in __devm_gpiod_get_index()
121 return desc; in __devm_gpiod_get_index()
141 struct gpio_desc *desc; in devm_get_gpiod_from_child() local
157 desc = fwnode_get_named_gpiod(child, prop_name); in devm_get_gpiod_from_child()
158 if (!IS_ERR(desc) || (PTR_ERR(desc) == -EPROBE_DEFER)) in devm_get_gpiod_from_child()
161 if (IS_ERR(desc)) { in devm_get_gpiod_from_child()
163 return desc; in devm_get_gpiod_from_child()
166 *dr = desc; in devm_get_gpiod_from_child()
169 return desc; in devm_get_gpiod_from_child()
190 struct gpio_desc *desc; in __devm_gpiod_get_index_optional() local
192 desc = devm_gpiod_get_index(dev, con_id, index, flags); in __devm_gpiod_get_index_optional()
193 if (IS_ERR(desc)) { in __devm_gpiod_get_index_optional()
194 if (PTR_ERR(desc) == -ENOENT) in __devm_gpiod_get_index_optional()
198 return desc; in __devm_gpiod_get_index_optional()
270 void devm_gpiod_put(struct device *dev, struct gpio_desc *desc) in devm_gpiod_put() argument
273 &desc)); in devm_gpiod_put()