/Linux-v6.1/drivers/hwspinlock/ |
D | hwspinlock_core.c | 91 int __hwspin_trylock(struct hwspinlock *hwlock, int mode, unsigned long *flags) in __hwspin_trylock() argument 95 if (WARN_ON(!hwlock || (!flags && mode == HWLOCK_IRQSTATE))) in __hwspin_trylock() 113 ret = spin_trylock_irqsave(&hwlock->lock, *flags); in __hwspin_trylock() 116 ret = spin_trylock_irq(&hwlock->lock); in __hwspin_trylock() 123 ret = spin_trylock(&hwlock->lock); in __hwspin_trylock() 132 ret = hwlock->bank->ops->trylock(hwlock); in __hwspin_trylock() 138 spin_unlock_irqrestore(&hwlock->lock, *flags); in __hwspin_trylock() 141 spin_unlock_irq(&hwlock->lock); in __hwspin_trylock() 148 spin_unlock(&hwlock->lock); in __hwspin_trylock() 206 int __hwspin_lock_timeout(struct hwspinlock *hwlock, unsigned int to, in __hwspin_lock_timeout() argument [all …]
|
D | hwspinlock_internal.h | 62 static inline int hwlock_to_id(struct hwspinlock *hwlock) in hwlock_to_id() argument 64 int local_id = hwlock - &hwlock->bank->lock[0]; in hwlock_to_id() 66 return hwlock->bank->base_id + local_id; in hwlock_to_id()
|
D | u8500_hsem.c | 89 struct hwspinlock *hwlock; in u8500_hsem_probe() local 115 for (i = 0, hwlock = &bank->lock[0]; i < num_locks; i++, hwlock++) in u8500_hsem_probe() 116 hwlock->priv = io_base + HSEM_REGISTER_OFFSET + sizeof(u32) * i; in u8500_hsem_probe()
|
D | omap_hwspinlock.c | 79 struct hwspinlock *hwlock; in omap_hwspinlock_probe() local 130 for (i = 0, hwlock = &bank->lock[0]; i < num_locks; i++, hwlock++) in omap_hwspinlock_probe() 131 hwlock->priv = io_base + LOCK_BASE_OFFSET + sizeof(u32) * i; in omap_hwspinlock_probe()
|
D | sun6i_hwspinlock.c | 94 struct hwspinlock *hwlock; in sun6i_hwspinlock_probe() local 165 hwlock = &priv->bank->lock[i]; in sun6i_hwspinlock_probe() 166 hwlock->priv = io_base + SPINLOCK_LOCK_REGN + sizeof(u32) * i; in sun6i_hwspinlock_probe()
|
/Linux-v6.1/include/linux/ |
D | hwspinlock.h | 63 int hwspin_lock_free(struct hwspinlock *hwlock); 65 int hwspin_lock_get_id(struct hwspinlock *hwlock); 71 int devm_hwspin_lock_free(struct device *dev, struct hwspinlock *hwlock); 107 static inline int hwspin_lock_free(struct hwspinlock *hwlock) in hwspin_lock_free() argument 113 int __hwspin_lock_timeout(struct hwspinlock *hwlock, unsigned int to, in __hwspin_lock_timeout() argument 120 int __hwspin_trylock(struct hwspinlock *hwlock, int mode, unsigned long *flags) in __hwspin_trylock() argument 126 void __hwspin_unlock(struct hwspinlock *hwlock, int mode, unsigned long *flags) in __hwspin_unlock() argument 135 static inline int hwspin_lock_get_id(struct hwspinlock *hwlock) in hwspin_lock_get_id() argument 147 int devm_hwspin_lock_free(struct device *dev, struct hwspinlock *hwlock) in devm_hwspin_lock_free() argument 183 int hwspin_trylock_irqsave(struct hwspinlock *hwlock, unsigned long *flags) in hwspin_trylock_irqsave() argument [all …]
|
/Linux-v6.1/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 | sprd-hwspinlock.txt | 7 - #hwlock-cells : hwlock users only use the hwlock id to represent a specific 8 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: 20 #hwlock-cells = <1>;
|
/Linux-v6.1/Documentation/locking/ |
D | hwspinlock.rst | 80 int hwspin_lock_free(struct hwspinlock *hwlock); 90 int hwspin_lock_timeout(struct hwspinlock *hwlock, unsigned int timeout); 106 int hwspin_lock_timeout_irq(struct hwspinlock *hwlock, unsigned int timeout); 121 int hwspin_lock_timeout_irqsave(struct hwspinlock *hwlock, unsigned int to, 139 int hwspin_lock_timeout_raw(struct hwspinlock *hwlock, unsigned int timeout); 156 int hwspin_lock_timeout_in_atomic(struct hwspinlock *hwlock, unsigned int to); 172 int hwspin_trylock(struct hwspinlock *hwlock); 189 int hwspin_trylock_irq(struct hwspinlock *hwlock); 206 int hwspin_trylock_irqsave(struct hwspinlock *hwlock, unsigned long *flags); 222 int hwspin_trylock_raw(struct hwspinlock *hwlock); [all …]
|
/Linux-v6.1/drivers/spi/ |
D | spi-sprd-adi.c | 151 struct hwspinlock *hwlock; member 227 if (sadi->hwlock) { in sprd_adi_read() 228 ret = hwspin_lock_timeout_irqsave(sadi->hwlock, in sprd_adi_read() 282 if (sadi->hwlock) in sprd_adi_read() 283 hwspin_unlock_irqrestore(sadi->hwlock, &flags); in sprd_adi_read() 293 if (sadi->hwlock) { in sprd_adi_write() 294 ret = hwspin_lock_timeout_irqsave(sadi->hwlock, in sprd_adi_write() 331 if (sadi->hwlock) in sprd_adi_write() 332 hwspin_unlock_irqrestore(sadi->hwlock, &flags); in sprd_adi_write() 559 sadi->hwlock = in sprd_adi_probe() [all …]
|
/Linux-v6.1/drivers/irqchip/ |
D | irq-stm32-exti.c | 62 struct hwspinlock *hwlock; member 347 struct hwspinlock *hwlock = chip_data->host_data->hwlock; in stm32_irq_set_type() local 353 if (hwlock) { in stm32_irq_set_type() 354 err = hwspin_lock_timeout_in_atomic(hwlock, HWSPNLCK_TIMEOUT); in stm32_irq_set_type() 372 if (hwlock) in stm32_irq_set_type() 373 hwspin_unlock_in_atomic(hwlock); in stm32_irq_set_type() 549 struct hwspinlock *hwlock = chip_data->host_data->hwlock; in stm32_exti_h_set_type() local 556 if (hwlock) { in stm32_exti_h_set_type() 557 err = hwspin_lock_timeout_in_atomic(hwlock, HWSPNLCK_TIMEOUT); in stm32_exti_h_set_type() 575 if (hwlock) in stm32_exti_h_set_type() [all …]
|
/Linux-v6.1/drivers/nvmem/ |
D | sc27xx-efuse.c | 65 struct hwspinlock *hwlock; member 90 ret = hwspin_lock_timeout_raw(efuse->hwlock, in sc27xx_efuse_lock() 103 hwspin_unlock_raw(efuse->hwlock); in sc27xx_efuse_unlock() 233 efuse->hwlock = devm_hwspin_lock_request_specific(&pdev->dev, ret); in sc27xx_efuse_probe() 234 if (!efuse->hwlock) { in sc27xx_efuse_probe()
|
D | sprd-efuse.c | 66 struct hwspinlock *hwlock; member 89 ret = hwspin_lock_timeout_raw(efuse->hwlock, in sprd_efuse_lock() 102 hwspin_unlock_raw(efuse->hwlock); in sprd_efuse_unlock() 390 efuse->hwlock = devm_hwspin_lock_request_specific(&pdev->dev, ret); in sprd_efuse_probe() 391 if (!efuse->hwlock) { in sprd_efuse_probe()
|
/Linux-v6.1/drivers/isdn/hardware/mISDN/ |
D | mISDNisar.c | 199 spin_lock_irqsave(isar->hwlock, flags); in load_firmware() 201 spin_unlock_irqrestore(isar->hwlock, flags); in load_firmware() 216 spin_lock_irqsave(isar->hwlock, flags); in load_firmware() 228 spin_unlock_irqrestore(isar->hwlock, flags); in load_firmware() 257 spin_lock_irqsave(isar->hwlock, flags); in load_firmware() 268 spin_unlock_irqrestore(isar->hwlock, flags); in load_firmware() 288 spin_lock_irqsave(isar->hwlock, flags); in load_firmware() 310 spin_unlock_irqrestore(isar->hwlock, flags); in load_firmware() 328 spin_lock_irqsave(isar->hwlock, flags); in load_firmware() 334 spin_unlock_irqrestore(isar->hwlock, flags); in load_firmware() [all …]
|
D | mISDNipac.c | 564 spin_lock_irqsave(isac->hwlock, flags); in isac_l1hw() 570 spin_unlock_irqrestore(isac->hwlock, flags); in isac_l1hw() 573 spin_unlock_irqrestore(isac->hwlock, flags); in isac_l1hw() 598 spin_lock_irqsave(isac->hwlock, flags); in isac_ctrl() 612 spin_unlock_irqrestore(isac->hwlock, flags); in isac_ctrl() 634 spin_lock_irqsave(isac->hwlock, flags); in isac_l1cmd() 636 spin_unlock_irqrestore(isac->hwlock, flags); in isac_l1cmd() 639 spin_lock_irqsave(isac->hwlock, flags); in isac_l1cmd() 641 spin_unlock_irqrestore(isac->hwlock, flags); in isac_l1cmd() 644 spin_lock_irqsave(isac->hwlock, flags); in isac_l1cmd() [all …]
|
D | ipac.h | 19 spinlock_t *hwlock; /* lock HW access */ member 60 spinlock_t *hwlock; /* lock HW access */ member
|
D | isar.h | 34 spinlock_t *hwlock; /* lock HW access */ member
|
/Linux-v6.1/drivers/pinctrl/stm32/ |
D | pinctrl-stm32.c | 115 struct hwspinlock *hwlock; member 443 if (pctl->hwlock) { in stm32_gpio_domain_activate() 444 ret = hwspin_lock_timeout_in_atomic(pctl->hwlock, in stm32_gpio_domain_activate() 454 if (pctl->hwlock) in stm32_gpio_domain_activate() 455 hwspin_unlock_in_atomic(pctl->hwlock); in stm32_gpio_domain_activate() 779 if (pctl->hwlock) { in stm32_pmx_set_mode() 780 err = hwspin_lock_timeout_in_atomic(pctl->hwlock, in stm32_pmx_set_mode() 798 if (pctl->hwlock) in stm32_pmx_set_mode() 799 hwspin_unlock_in_atomic(pctl->hwlock); in stm32_pmx_set_mode() 912 if (pctl->hwlock) { in stm32_pconf_set_driving() [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/nvmem/ |
D | sprd-efuse.txt | 8 - hwlocks: Reference to a phandle of a hwlock provider node. 20 hwlocks = <&hwlock 8>;
|
D | sc27xx-efuse.txt | 11 - hwlocks: Reference to a phandle of a hwlock provider node. 34 hwlocks = <&hwlock 12>;
|
/Linux-v6.1/drivers/soc/qcom/ |
D | smem.c | 278 struct hwspinlock *hwlock; member 483 ret = hwspin_lock_timeout_irqsave(__smem->hwlock, in qcom_smem_alloc() 499 hwspin_unlock_irqrestore(__smem->hwlock, &flags); in qcom_smem_alloc() 656 ret = hwspin_lock_timeout_irqsave(__smem->hwlock, in qcom_smem_get() 672 hwspin_unlock_irqrestore(__smem->hwlock, &flags); in qcom_smem_get() 1108 smem->hwlock = hwspin_lock_request_specific(hwlock_id); in qcom_smem_probe() 1109 if (!smem->hwlock) in qcom_smem_probe() 1112 ret = hwspin_lock_timeout_irqsave(smem->hwlock, HWSPINLOCK_TIMEOUT, &flags); in qcom_smem_probe() 1116 hwspin_unlock_irqrestore(smem->hwlock, &flags); in qcom_smem_probe() 1161 hwspin_lock_free(__smem->hwlock); in qcom_smem_remove()
|
/Linux-v6.1/arch/arm64/boot/dts/sprd/ |
D | whale2.dtsi | 174 hwlocks = <&hwlock 0>; 175 hwlock-names = "adi"; 193 hwlock: hwspinlock@40500000 { label 196 #hwlock-cells = <1>;
|
D | sc2731.dtsi | 71 hwlocks = <&hwlock 12>; 93 hwlocks = <&hwlock 4>;
|
/Linux-v6.1/drivers/iio/adc/ |
D | sc27xx_adc.c | 90 struct hwspinlock *hwlock; member 488 ret = hwspin_lock_timeout_raw(data->hwlock, SC27XX_ADC_HWLOCK_TIMEOUT); in sc27xx_adc_read() 574 hwspin_unlock_raw(data->hwlock); in sc27xx_adc_read() 902 sc27xx_data->hwlock = devm_hwspin_lock_request_specific(dev, ret); in sc27xx_adc_probe() 903 if (!sc27xx_data->hwlock) { in sc27xx_adc_probe()
|
/Linux-v6.1/drivers/base/regmap/ |
D | regmap.c | 452 hwspin_lock_timeout(map->hwlock, UINT_MAX); in regmap_lock_hwlock() 459 hwspin_lock_timeout_irq(map->hwlock, UINT_MAX); in regmap_lock_hwlock_irq() 466 hwspin_lock_timeout_irqsave(map->hwlock, UINT_MAX, in regmap_lock_hwlock_irqsave() 474 hwspin_unlock(map->hwlock); in regmap_unlock_hwlock() 481 hwspin_unlock_irq(map->hwlock); in regmap_unlock_hwlock_irq() 488 hwspin_unlock_irqrestore(map->hwlock, &map->spinlock_flags); in regmap_unlock_hwlock_irqrestore() 755 map->hwlock = hwspin_lock_request_specific(config->hwlock_id); in __regmap_init() 756 if (!map->hwlock) { in __regmap_init() 1251 if (map->hwlock) in __regmap_init() 1252 hwspin_lock_free(map->hwlock); in __regmap_init() [all …]
|