Home
last modified time | relevance | path

Searched refs:hwspinlock (Results 1 – 25 of 48) sorted by relevance

12

/OK3568_Linux_fs/kernel/include/linux/
H A Dhwspinlock.h24 struct hwspinlock;
61 struct hwspinlock *hwspin_lock_request(void);
62 struct hwspinlock *hwspin_lock_request_specific(unsigned int id);
63 int hwspin_lock_free(struct hwspinlock *hwlock);
65 int hwspin_lock_get_id(struct hwspinlock *hwlock);
66 int __hwspin_lock_timeout(struct hwspinlock *, unsigned int, int,
68 int __hwspin_trylock(struct hwspinlock *, int, unsigned long *);
69 void __hwspin_unlock(struct hwspinlock *, int, unsigned long *);
71 int devm_hwspin_lock_free(struct device *dev, struct hwspinlock *hwlock);
72 struct hwspinlock *devm_hwspin_lock_request(struct device *dev);
[all …]
/OK3568_Linux_fs/kernel/Documentation/locking/
H A Dhwspinlock.rst17 A generic hwspinlock framework allows platform-independent drivers to use
18 the hwspinlock device in order to access data structures that are shared
31 the remote processors, and access to it is synchronized using the hwspinlock
35 A common hwspinlock interface makes it possible to have generic, platform-
43 struct hwspinlock *hwspin_lock_request(void);
45 Dynamically assign an hwspinlock and return its address, or NULL
46 in case an unused hwspinlock isn't available. Users of this
54 struct hwspinlock *hwspin_lock_request_specific(unsigned int id);
56 Assign a specific hwspinlock id and return its address, or NULL
57 if that hwspinlock is already in use. Usually board code will
[all …]
H A Dindex.rst23 hwspinlock
/OK3568_Linux_fs/kernel/drivers/hwspinlock/
H A Dhwspinlock_core.c91 int __hwspin_trylock(struct hwspinlock *hwlock, int mode, unsigned long *flags) in __hwspin_trylock()
206 int __hwspin_lock_timeout(struct hwspinlock *hwlock, unsigned int to, in __hwspin_lock_timeout()
265 void __hwspin_unlock(struct hwspinlock *hwlock, int mode, unsigned long *flags) in __hwspin_unlock()
342 struct hwspinlock *hwlock; in of_hwspin_lock_get_id()
421 static int hwspin_lock_register_single(struct hwspinlock *hwlock, int id) in hwspin_lock_register_single()
423 struct hwspinlock *tmp; in hwspin_lock_register_single()
446 static struct hwspinlock *hwspin_lock_unregister_single(unsigned int id) in hwspin_lock_unregister_single()
448 struct hwspinlock *hwlock = NULL; in hwspin_lock_unregister_single()
489 struct hwspinlock *hwlock; in hwspin_lock_register()
536 struct hwspinlock *hwlock, *tmp; in hwspin_lock_unregister()
[all …]
H A Dhwspinlock_internal.h29 int (*trylock)(struct hwspinlock *lock);
30 void (*unlock)(struct hwspinlock *lock);
31 void (*relax)(struct hwspinlock *lock);
40 struct hwspinlock { struct
59 struct hwspinlock lock[];
62 static inline int hwlock_to_id(struct hwspinlock *hwlock) in hwlock_to_id()
H A Du8500_hsem.c50 static int u8500_hsem_trylock(struct hwspinlock *lock) in u8500_hsem_trylock()
63 static void u8500_hsem_unlock(struct hwspinlock *lock) in u8500_hsem_unlock()
74 static void u8500_hsem_relax(struct hwspinlock *lock) in u8500_hsem_relax()
89 struct hwspinlock *hwlock; in u8500_hsem_probe()
H A Dsprd_hwspinlock.c42 static int sprd_hwspinlock_trylock(struct hwspinlock *lock) in sprd_hwspinlock_trylock()
62 static void sprd_hwspinlock_unlock(struct hwspinlock *lock) in sprd_hwspinlock_unlock()
70 static void sprd_hwspinlock_relax(struct hwspinlock *lock) in sprd_hwspinlock_relax()
91 struct hwspinlock *lock; in sprd_hwspinlock_probe()
H A Dstm32_hwspinlock.c28 static int stm32_hwspinlock_trylock(struct hwspinlock *lock) in stm32_hwspinlock_trylock()
39 static void stm32_hwspinlock_unlock(struct hwspinlock *lock) in stm32_hwspinlock_unlock()
46 static void stm32_hwspinlock_relax(struct hwspinlock *lock) in stm32_hwspinlock_relax()
68 array_size = STM32_MUTEX_NUM_LOCKS * sizeof(struct hwspinlock); in stm32_hwspinlock_probe()
H A Domap_hwspinlock.c37 static int omap_hwspinlock_trylock(struct hwspinlock *lock) in omap_hwspinlock_trylock()
45 static void omap_hwspinlock_unlock(struct hwspinlock *lock) in omap_hwspinlock_unlock()
63 static void omap_hwspinlock_relax(struct hwspinlock *lock) in omap_hwspinlock_relax()
78 struct hwspinlock *hwlock; in omap_hwspinlock_probe()
H A Dsirf_hwspinlock.c33 static int sirf_hwspinlock_trylock(struct hwspinlock *lock) in sirf_hwspinlock_trylock()
41 static void sirf_hwspinlock_unlock(struct hwspinlock *lock) in sirf_hwspinlock_unlock()
57 struct hwspinlock *hwlock; in sirf_hwspinlock_probe()
H A Drockchip_hwspinlock.c28 static int rockchip_hwspinlock_trylock(struct hwspinlock *lock) in rockchip_hwspinlock_trylock()
42 static void rockchip_hwspinlock_unlock(struct hwspinlock *lock) in rockchip_hwspinlock_unlock()
58 struct hwspinlock *hwlock; in rockchip_hwspinlock_probe()
H A Dqcom_hwspinlock.c22 static int qcom_hwspinlock_trylock(struct hwspinlock *lock) in qcom_hwspinlock_trylock()
39 static void qcom_hwspinlock_unlock(struct hwspinlock *lock) in qcom_hwspinlock_unlock()
146 array_size = QCOM_MUTEX_NUM_LOCKS * sizeof(struct hwspinlock); in qcom_hwspinlock_probe()
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/hwlock/
H A Drockchip-hwspinlock.txt6 "rockchip,hwspinlock"
8 - reg : the register address of hwspinlock
17 hwlock: hwspinlock@ff040000 {
18 compatible = "rockchip,hwspinlock";
H A Dsprd-hwspinlock.txt5 - compatible : should be "sprd,hwspinlock-r3p0".
6 - reg : the register address of hwspinlock.
17 hwspinlock@40500000 {
18 compatible = "sprd,hwspinlock-r3p0";
H A Dsirf,hwspinlock.txt6 "sirf,hwspinlock"
8 - reg : the register address of hwspinlock
18 compatible = "sirf,hwspinlock";
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/sprd/
H A Dwhale2.dtsi191 hwlock: hwspinlock@40500000 {
192 compatible = "sprd,hwspinlock-r3p0";
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/soc/qcom/
H A Dqcom,smem.txt25 Definition: reference to a hwspinlock used to protect allocations from
/OK3568_Linux_fs/kernel/drivers/irqchip/
H A Dirq-stm32-exti.c68 struct hwspinlock *hwlock;
304 struct hwspinlock *hwlock = chip_data->host_data->hwlock; in stm32_irq_set_type()
506 struct hwspinlock *hwlock = chip_data->host_data->hwlock; in stm32_exti_h_set_type()
/OK3568_Linux_fs/kernel/drivers/nvmem/
H A Dsc27xx-efuse.c65 struct hwspinlock *hwlock;
H A Dsprd-efuse.c66 struct hwspinlock *hwlock;
/OK3568_Linux_fs/kernel/drivers/base/regmap/
H A Dinternal.h163 struct hwspinlock *hwlock;
/OK3568_Linux_fs/kernel/drivers/
H A DMakefile156 obj-$(CONFIG_HWSPINLOCK) += hwspinlock/
H A DKconfig157 source "drivers/hwspinlock/Kconfig"
/OK3568_Linux_fs/kernel/drivers/iio/adc/
H A Dsc27xx_adc.c77 struct hwspinlock *hwlock;
/OK3568_Linux_fs/u-boot/arch/arm/dts/
H A Dam33xx.dtsi343 hwspinlock: spinlock@480ca000 { label
344 compatible = "ti,omap4-hwspinlock";

12