Lines Matching defs:to

37  * A radix tree is used to maintain the available hwspinlock instances.
39 * and provides easy-to-use API which makes the hwspinlock core code simple
40 * and easy to read.
48 * framework uses to mark unused hwspinlock instances (see the
50 * tree, looking for an unused hwspinlock instance, is now reduced to a
56 * Synchronization of access to the tree is achieved using this mutex,
64 * __hwspin_trylock() - attempt to lock a specific hwspinlock
65 * @hwlock: an hwspinlock which we want to trylock
70 * This function attempts to lock an hwspinlock, and will immediately
74 * interrupts) is disabled, so the caller must not sleep, and is advised to
75 * release the hwspinlock as soon as possible. This is required in order to
79 * whether he wants their previous state to be saved. It is up to the user
80 * to choose the appropriate @mode of operation, exactly the same way users
98 * 1. Disable preemption, in order to minimize the period of time
100 * to minimize the possible polling on the hardware interconnect
119 /* try to take the hwspinlock device */
136 * are observable to us only _after_ we successfully take
152 * @hwlock: the hwspinlock to be locked
155 * @flags: a pointer to where the caller's interrupt state will be saved at (if
159 * is already taken, the function will busy loop waiting for it to
164 * and is advised to release the hwspinlock as soon as possible.
165 * This is required in order to minimize remote cores polling on the
169 * whether he wants their previous state to be saved. It is up to the user
170 * to choose the appropriate @mode of operation, exactly the same way users
177 int __hwspin_lock_timeout(struct hwspinlock *hwlock, unsigned int to,
183 expire = msecs_to_jiffies(to) + jiffies;
186 /* Try to take the hwspinlock */
193 * us to try again
199 * Allow platform-specific relax handlers to prevent
212 * @hwlock: a previously-acquired hwspinlock which we want to unlock
213 * @mode: controls whether local interrupts needs to be restored or not
214 * @flags: previous caller's interrupt state to restore (if requested)
219 * to call unlock on a @hwlock that is already unlocked.
222 * if yes, whether he wants their previous state to be restored. It is up
223 * to the user to choose the appropriate @mode of operation, exactly the
242 * late; the other core is going to access memory soon after it will
243 * take the hwspinlock, and by then we want to be sure our memory
301 pr_err("failed to delete hwspinlock %d\n", id);
319 * implementation, to register a new hwspinlock device instance.
367 * implementation, to unregister an existing (and unused) hwspinlock.
397 * before it is given to the user. The function assumes that
400 * Returns 0 or positive to indicate success, and a negative value to
453 * in order to dynamically assign them an unused hwspinlock.
454 * Usually the user of this lock will then have to communicate the lock's id
455 * to the remote core before it can be used for synchronization (to get the
497 * in order to assign them a specific hwspinlock.
498 * Usually early board code will be calling this function in order to
543 * @hwlock: the specific hwspinlock to free
547 * an earlier call to omap_hwspin_lock_request{_specific}.