/linux-4.4.14/drivers/hwspinlock/ |
D | hwspinlock_core.c | 89 int __hwspin_trylock(struct hwspinlock *hwlock, int mode, unsigned long *flags) in __hwspin_trylock() argument 93 BUG_ON(!hwlock); in __hwspin_trylock() 110 ret = spin_trylock_irqsave(&hwlock->lock, *flags); in __hwspin_trylock() 112 ret = spin_trylock_irq(&hwlock->lock); in __hwspin_trylock() 114 ret = spin_trylock(&hwlock->lock); in __hwspin_trylock() 121 ret = hwlock->bank->ops->trylock(hwlock); in __hwspin_trylock() 126 spin_unlock_irqrestore(&hwlock->lock, *flags); in __hwspin_trylock() 128 spin_unlock_irq(&hwlock->lock); in __hwspin_trylock() 130 spin_unlock(&hwlock->lock); in __hwspin_trylock() 178 int __hwspin_lock_timeout(struct hwspinlock *hwlock, unsigned int to, in __hwspin_lock_timeout() argument [all …]
|
D | hwspinlock_internal.h | 70 static inline int hwlock_to_id(struct hwspinlock *hwlock) in hwlock_to_id() argument 72 int local_id = hwlock - &hwlock->bank->lock[0]; in hwlock_to_id() 74 return hwlock->bank->base_id + local_id; in hwlock_to_id()
|
D | u8500_hsem.c | 98 struct hwspinlock *hwlock; in u8500_hsem_probe() local 122 bank = kzalloc(sizeof(*bank) + num_locks * sizeof(*hwlock), GFP_KERNEL); in u8500_hsem_probe() 130 for (i = 0, hwlock = &bank->lock[0]; i < num_locks; i++, hwlock++) in u8500_hsem_probe() 131 hwlock->priv = io_base + HSEM_REGISTER_OFFSET + sizeof(u32) * i; in u8500_hsem_probe()
|
D | omap_hwspinlock.c | 86 struct hwspinlock *hwlock; in omap_hwspinlock_probe() local 135 bank = kzalloc(sizeof(*bank) + num_locks * sizeof(*hwlock), GFP_KERNEL); in omap_hwspinlock_probe() 143 for (i = 0, hwlock = &bank->lock[0]; i < num_locks; i++, hwlock++) in omap_hwspinlock_probe() 144 hwlock->priv = io_base + LOCK_BASE_OFFSET + sizeof(u32) * i; in omap_hwspinlock_probe()
|
D | sirf_hwspinlock.c | 59 struct hwspinlock *hwlock; in sirf_hwspinlock_probe() local 66 sizeof(*hwlock) * HW_SPINLOCK_NUMBER, GFP_KERNEL); in sirf_hwspinlock_probe() 76 hwlock = &hwspin->bank.lock[idx]; in sirf_hwspinlock_probe() 77 hwlock->priv = hwspin->io_base + HW_SPINLOCK_OFFSET(idx); in sirf_hwspinlock_probe()
|
/linux-4.4.14/include/linux/ |
D | hwspinlock.h | 69 int hwspin_lock_free(struct hwspinlock *hwlock); 71 int hwspin_lock_get_id(struct hwspinlock *hwlock); 102 static inline int hwspin_lock_free(struct hwspinlock *hwlock) in hwspin_lock_free() argument 108 int __hwspin_lock_timeout(struct hwspinlock *hwlock, unsigned int to, in __hwspin_lock_timeout() argument 115 int __hwspin_trylock(struct hwspinlock *hwlock, int mode, unsigned long *flags) in __hwspin_trylock() argument 121 void __hwspin_unlock(struct hwspinlock *hwlock, int mode, unsigned long *flags) in __hwspin_unlock() argument 130 static inline int hwspin_lock_get_id(struct hwspinlock *hwlock) in hwspin_lock_get_id() argument 154 int hwspin_trylock_irqsave(struct hwspinlock *hwlock, unsigned long *flags) in hwspin_trylock_irqsave() argument 156 return __hwspin_trylock(hwlock, HWLOCK_IRQSTATE, flags); in hwspin_trylock_irqsave() 173 static inline int hwspin_trylock_irq(struct hwspinlock *hwlock) in hwspin_trylock_irq() argument [all …]
|
/linux-4.4.14/Documentation/devicetree/bindings/hwlock/ |
D | hwlock.txt | 1 Generic hwlock bindings 4 Generic bindings that are common to all the hwlock platform specific driver 7 Please also look through the individual platform specific hwlock binding 11 hwlock providers: 15 - #hwlock-cells: Specifies the number of cells needed to represent a 18 hwlock users: 21 Consumers that require specific hwlock(s) should specify them using the 22 property "hwlocks", and an optional "hwlock-names" property. 25 - hwlocks: List of phandle to a hwlock provider node and an 26 associated hwlock args specifier as indicated by [all …]
|
D | sirf,hwspinlock.txt | 10 - #hwlock-cells : hwlock users only use the hwlock id to represent a specific 11 hwlock, so the number of cells should be <1> here. 13 Please look at the generic hwlock binding for usage information for consumers, 14 "Documentation/devicetree/bindings/hwlock/hwlock.txt" 16 Example of hwlock provider: 17 hwlock { 20 #hwlock-cells = <1>; 23 Example of hwlock users: 26 hwlocks = <&hwlock 2>;
|
D | omap-hwspinlock.txt | 10 - #hwlock-cells: Should be 1. The OMAP hwspinlock users will use a 11 0-indexed relative hwlock number as the argument 15 Please look at the generic hwlock binding for usage information for consumers, 16 "Documentation/devicetree/bindings/hwlock/hwlock.txt" 25 #hwlock-cells = <1>;
|
D | qcom-hwspinlock.txt | 21 - #hwlock-cells: 25 (hwlock standard property, see hwlock.txt) 34 hwlock@fd484000 { 38 #hwlock-cells = <1>;
|
/linux-4.4.14/Documentation/ |
D | hwspinlock.txt | 61 int hwspin_lock_free(struct hwspinlock *hwlock); 67 int hwspin_lock_timeout(struct hwspinlock *hwlock, unsigned int timeout); 79 int hwspin_lock_timeout_irq(struct hwspinlock *hwlock, unsigned int timeout); 90 int hwspin_lock_timeout_irqsave(struct hwspinlock *hwlock, unsigned int to, 103 int hwspin_trylock(struct hwspinlock *hwlock); 114 int hwspin_trylock_irq(struct hwspinlock *hwlock); 124 int hwspin_trylock_irqsave(struct hwspinlock *hwlock, unsigned long *flags); 135 void hwspin_unlock(struct hwspinlock *hwlock); 141 void hwspin_unlock_irq(struct hwspinlock *hwlock); 149 hwspin_unlock_irqrestore(struct hwspinlock *hwlock, unsigned long *flags); [all …]
|
/linux-4.4.14/drivers/soc/qcom/ |
D | smem.c | 239 struct hwspinlock *hwlock; member 404 ret = hwspin_lock_timeout_irqsave(__smem->hwlock, in qcom_smem_alloc() 415 hwspin_unlock_irqrestore(__smem->hwlock, &flags); in qcom_smem_alloc() 506 ret = hwspin_lock_timeout_irqsave(__smem->hwlock, in qcom_smem_get() 517 hwspin_unlock_irqrestore(__smem->hwlock, &flags); in qcom_smem_get() 748 smem->hwlock = hwspin_lock_request_specific(hwlock_id); in qcom_smem_probe() 749 if (!smem->hwlock) in qcom_smem_probe() 759 hwspin_lock_free(__smem->hwlock); in qcom_smem_remove()
|
/linux-4.4.14/drivers/isdn/hardware/mISDN/ |
D | mISDNisar.c | 213 spin_lock_irqsave(isar->hwlock, flags); in load_firmware() 215 spin_unlock_irqrestore(isar->hwlock, flags); in load_firmware() 230 spin_lock_irqsave(isar->hwlock, flags); in load_firmware() 242 spin_unlock_irqrestore(isar->hwlock, flags); in load_firmware() 271 spin_lock_irqsave(isar->hwlock, flags); in load_firmware() 282 spin_unlock_irqrestore(isar->hwlock, flags); in load_firmware() 302 spin_lock_irqsave(isar->hwlock, flags); in load_firmware() 324 spin_unlock_irqrestore(isar->hwlock, flags); in load_firmware() 342 spin_lock_irqsave(isar->hwlock, flags); in load_firmware() 348 spin_unlock_irqrestore(isar->hwlock, flags); in load_firmware() [all …]
|
D | mISDNipac.c | 580 spin_lock_irqsave(isac->hwlock, flags); in isac_l1hw() 586 spin_unlock_irqrestore(isac->hwlock, flags); in isac_l1hw() 589 spin_unlock_irqrestore(isac->hwlock, flags); in isac_l1hw() 614 spin_lock_irqsave(isac->hwlock, flags); in isac_ctrl() 628 spin_unlock_irqrestore(isac->hwlock, flags); in isac_ctrl() 650 spin_lock_irqsave(isac->hwlock, flags); in isac_l1cmd() 652 spin_unlock_irqrestore(isac->hwlock, flags); in isac_l1cmd() 655 spin_lock_irqsave(isac->hwlock, flags); in isac_l1cmd() 657 spin_unlock_irqrestore(isac->hwlock, flags); in isac_l1cmd() 660 spin_lock_irqsave(isac->hwlock, flags); in isac_l1cmd() [all …]
|
D | ipac.h | 32 spinlock_t *hwlock; /* lock HW access */ member 73 spinlock_t *hwlock; /* lock HW access */ member
|
D | isar.h | 47 spinlock_t *hwlock; /* lock HW access */ member
|
D | speedfax.c | 387 card->isac.hwlock = &card->lock; in setup_instance() 388 card->isar.hwlock = &card->lock; in setup_instance()
|
D | mISDNinfineon.c | 916 card->ipac.isac.hwlock = &card->lock; in setup_instance() 917 card->ipac.hwlock = &card->lock; in setup_instance()
|
D | avmfritz.c | 1052 card->isac.hwlock = &card->lock; in setup_instance()
|
D | netjet.c | 1025 card->isac.hwlock = &card->lock; in setup_instance()
|
/linux-4.4.14/drivers/net/ethernet/micrel/ |
D | ksz884x.c | 1430 spinlock_t hwlock; member 4755 spin_lock_irq(&hw_priv->hwlock); in transmit_cleanup() 4789 spin_unlock_irq(&hw_priv->hwlock); in transmit_cleanup() 4867 spin_lock_irq(&hw_priv->hwlock); in netdev_tx() 4896 spin_unlock_irq(&hw_priv->hwlock); in netdev_tx() 5195 spin_lock_irq(&hw_priv->hwlock); in rx_proc_task() 5197 spin_unlock_irq(&hw_priv->hwlock); in rx_proc_task() 5214 spin_lock_irq(&hw_priv->hwlock); in tx_proc_task() 5216 spin_unlock_irq(&hw_priv->hwlock); in tx_proc_task() 5253 spin_lock(&hw_priv->hwlock); in netdev_intr() [all …]
|
/linux-4.4.14/arch/arm/boot/dts/ |
D | qcom-msm8974.dtsi | 266 #hwlock-cells = <1>;
|
D | am33xx.dtsi | 361 #hwlock-cells = <1>;
|
D | omap4.dtsi | 401 #hwlock-cells = <1>;
|
D | am4372.dtsi | 449 #hwlock-cells = <1>;
|
D | omap5.dtsi | 450 #hwlock-cells = <1>;
|
D | dra7.dtsi | 813 #hwlock-cells = <1>;
|