Lines Matching +full:single +full:- +full:core
1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com
7 * Contact: Ohad Ben-Cohen <ohad@wizery.com>
19 * struct hwspinlock_ops - platform-specific hwspinlock handlers
21 * @trylock: make a single attempt to take the lock. returns 0 on
24 * @bust: optional, platform-specific bust handler, called by hwspinlock
25 * core to bust a specific lock.
26 * @relax: optional, platform-specific relax handler, called by hwspinlock
27 * core while spinning on a lock, between two successive
38 * struct hwspinlock - this struct represents a single hwspinlock instance
40 * @lock: initialized and used by hwspinlock core
41 * @priv: private data, owned by the underlying platform-specific hwspinlock drv
50 * struct hwspinlock_device - a device which usually spans numerous hwspinlocks
52 * @ops: platform-specific hwspinlock handlers
67 int local_id = hwlock - &hwlock->bank->lock[0]; in hwlock_to_id()
69 return hwlock->bank->base_id + local_id; in hwlock_to_id()