Lines Matching defs:action
705 void (*action)(void *);
713 return devres->action == target->action &&
721 devres->action(devres->data);
725 * __devm_add_action() - add a custom action to list of managed resources
726 * @dev: Device that owns the action
727 * @action: Function that should be called
728 * @data: Pointer to data passed to @action implementation
731 * This adds a custom action to the list of managed resources so that
734 int __devm_add_action(struct device *dev, void (*action)(void *), void *data, const char *name)
744 devres->action = action;
752 * devm_remove_action() - removes previously added custom action
753 * @dev: Device that owns the action
754 * @action: Function implementing the action
755 * @data: Pointer to data passed to @action implementation
757 * Removes instance of @action previously added by devm_add_action().
758 * Both action and data should match one of the existing entries.
760 void devm_remove_action(struct device *dev, void (*action)(void *), void *data)
764 .action = action,
773 * devm_release_action() - release previously added custom action
774 * @dev: Device that owns the action
775 * @action: Function implementing the action
776 * @data: Pointer to data passed to @action implementation
778 * Releases and removes instance of @action previously added by
779 * devm_add_action(). Both action and data should match one of the
782 void devm_release_action(struct device *dev, void (*action)(void *), void *data)
786 .action = action,