Lines Matching +full:device +full:- +full:specific
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>
14 #include <linux/device.h>
19 * struct hwspinlock_ops - platform-specific hwspinlock handlers
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
38 * struct hwspinlock - this struct represents a single hwspinlock instance
41 * @priv: private data, owned by the underlying platform-specific hwspinlock drv
50 * struct hwspinlock_device - a device which usually spans numerous hwspinlocks
51 * @dev: underlying device, will be used to invoke runtime PM api
52 * @ops: platform-specific hwspinlock handlers
53 * @base_id: id index of the first lock in this device
54 * @num_locks: number of locks in this device
58 struct device *dev;
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()