Lines Matching +full:reset +full:- +full:controller
1 /* SPDX-License-Identifier: GPL-2.0 */
79 return optional ? 0 : -ENOTSUPP; in __device_reset()
87 return optional ? NULL : ERR_PTR(-ENOTSUPP); in __of_reset_control_get()
95 return optional ? NULL : ERR_PTR(-ENOTSUPP); in __reset_control_get()
103 return optional ? NULL : ERR_PTR(-ENOTSUPP); in __devm_reset_control_get()
109 return optional ? NULL : ERR_PTR(-ENOTSUPP); in devm_reset_control_array_get()
116 return optional ? NULL : ERR_PTR(-ENOTSUPP); in of_reset_control_array_get()
121 return -ENOENT; in reset_control_get_count()
137 * reset_control_get_exclusive - Lookup and obtain an exclusive reference
138 * to a reset controller.
139 * @dev: device to be reset by the controller
140 * @id: reset line name
144 * return -EBUSY.
147 * reset-controls.
158 * reset_control_get_exclusive_released - Lookup and obtain a temoprarily
159 * exclusive reference to a reset
160 * controller.
161 * @dev: device to be reset by the controller
162 * @id: reset line name
165 * reset-controls returned by this function must be acquired via
179 * reset_control_get_shared - Lookup and obtain a shared reference to a
180 * reset controller.
181 * @dev: device to be reset by the controller
182 * @id: reset line name
185 * This function is intended for use with reset-controls which are shared
188 * When a reset-control is shared, the behavior of reset_control_assert /
189 * deassert is changed, the reset-core will keep track of a deassert_count
190 * and only (re-)assert the reset after reset_control_assert has been called
192 * about shared reset-controls in the reset_control_assert docs.
195 * is not allowed on a shared reset control. Calling reset_control_reset is
196 * also not allowed on a shared reset control.
207 * reset_control_get_optional_exclusive - optional reset_control_get_exclusive()
208 * @dev: device to be reset by the controller
209 * @id: reset line name
211 * Optional variant of reset_control_get_exclusive(). If the requested reset
224 * reset_control_get_optional_shared - optional reset_control_get_shared()
225 * @dev: device to be reset by the controller
226 * @id: reset line name
228 * Optional variant of reset_control_get_shared(). If the requested reset
241 * of_reset_control_get_exclusive - Lookup and obtain an exclusive reference
242 * to a reset controller.
243 * @node: device to be reset by the controller
244 * @id: reset line name
257 * of_reset_control_get_shared - Lookup and obtain a shared reference
258 * to a reset controller.
259 * @node: device to be reset by the controller
260 * @id: reset line name
262 * When a reset-control is shared, the behavior of reset_control_assert /
263 * deassert is changed, the reset-core will keep track of a deassert_count
264 * and only (re-)assert the reset after reset_control_assert has been called
266 * about shared reset-controls in the reset_control_assert docs.
269 * is not allowed on a shared reset control. Calling reset_control_reset is
270 * also not allowed on a shared reset control.
282 * of_reset_control_get_exclusive_by_index - Lookup and obtain an exclusive
283 * reference to a reset controller
285 * @node: device to be reset by the controller
286 * @index: index of the reset controller
299 * of_reset_control_get_shared_by_index - Lookup and obtain a shared
300 * reference to a reset controller
302 * @node: device to be reset by the controller
303 * @index: index of the reset controller
305 * When a reset-control is shared, the behavior of reset_control_assert /
306 * deassert is changed, the reset-core will keep track of a deassert_count
307 * and only (re-)assert the reset after reset_control_assert has been called
309 * about shared reset-controls in the reset_control_assert docs.
312 * is not allowed on a shared reset control. Calling reset_control_reset is
313 * also not allowed on a shared reset control.
327 * devm_reset_control_get_exclusive - resource managed
329 * @dev: device to be reset by the controller
330 * @id: reset line name
332 * Managed reset_control_get_exclusive(). For reset controllers returned
346 * devm_reset_control_get_exclusive_released - resource managed
348 * @dev: device to be reset by the controller
349 * @id: reset line name
351 * Managed reset_control_get_exclusive_released(). For reset controllers
365 * devm_reset_control_get_shared - resource managed reset_control_get_shared()
366 * @dev: device to be reset by the controller
367 * @id: reset line name
369 * Managed reset_control_get_shared(). For reset controllers returned from
380 * devm_reset_control_get_optional_exclusive - resource managed
382 * @dev: device to be reset by the controller
383 * @id: reset line name
385 * Managed reset_control_get_optional_exclusive(). For reset controllers
398 * devm_reset_control_get_optional_shared - resource managed
400 * @dev: device to be reset by the controller
401 * @id: reset line name
403 * Managed reset_control_get_optional_shared(). For reset controllers returned
416 * devm_reset_control_get_exclusive_by_index - resource managed
418 * @dev: device to be reset by the controller
419 * @index: index of the reset controller
421 * Managed reset_control_get_exclusive(). For reset controllers returned from
434 * devm_reset_control_get_shared_by_index - resource managed
436 * @dev: device to be reset by the controller
437 * @index: index of the reset controller
439 * Managed reset_control_get_shared(). For reset controllers returned from
489 * APIs to manage a list of reset controllers