Lines Matching refs:desc

20 	struct gpio_desc **desc = res;  in devm_gpiod_release()  local
22 gpiod_put(*desc); in devm_gpiod_release()
99 struct gpio_desc *desc; in devm_gpiod_get_index() local
101 desc = gpiod_get_index(dev, con_id, idx, flags); in devm_gpiod_get_index()
102 if (IS_ERR(desc)) in devm_gpiod_get_index()
103 return desc; in devm_gpiod_get_index()
113 devm_gpiod_match, &desc); in devm_gpiod_get_index()
115 return desc; in devm_gpiod_get_index()
121 gpiod_put(desc); in devm_gpiod_get_index()
125 *dr = desc; in devm_gpiod_get_index()
128 return desc; in devm_gpiod_get_index()
154 struct gpio_desc *desc; in devm_fwnode_gpiod_get_index() local
161 desc = gpiod_find_and_request(dev, fwnode, con_id, index, flags, label, false); in devm_fwnode_gpiod_get_index()
162 if (IS_ERR(desc)) { in devm_fwnode_gpiod_get_index()
164 return desc; in devm_fwnode_gpiod_get_index()
167 *dr = desc; in devm_fwnode_gpiod_get_index()
170 return desc; in devm_fwnode_gpiod_get_index()
191 struct gpio_desc *desc; in devm_gpiod_get_index_optional() local
193 desc = devm_gpiod_get_index(dev, con_id, index, flags); in devm_gpiod_get_index_optional()
194 if (gpiod_not_found(desc)) in devm_gpiod_get_index_optional()
197 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()
287 void devm_gpiod_unhinge(struct device *dev, struct gpio_desc *desc) in devm_gpiod_unhinge() argument
291 if (IS_ERR_OR_NULL(desc)) in devm_gpiod_unhinge()
294 devm_gpiod_match, &desc); in devm_gpiod_unhinge()