/linux-6.12.1/drivers/hwspinlock/ |
D | hwspinlock_core.c | 92 int __hwspin_trylock(struct hwspinlock *hwlock, int mode, unsigned long *flags) in __hwspin_trylock() argument 96 if (WARN_ON(!hwlock || (!flags && mode == HWLOCK_IRQSTATE))) in __hwspin_trylock() 114 ret = spin_trylock_irqsave(&hwlock->lock, *flags); in __hwspin_trylock() 117 ret = spin_trylock_irq(&hwlock->lock); in __hwspin_trylock() 124 ret = spin_trylock(&hwlock->lock); in __hwspin_trylock() 133 ret = hwlock->bank->ops->trylock(hwlock); in __hwspin_trylock() 139 spin_unlock_irqrestore(&hwlock->lock, *flags); in __hwspin_trylock() 142 spin_unlock_irq(&hwlock->lock); in __hwspin_trylock() 149 spin_unlock(&hwlock->lock); in __hwspin_trylock() 209 int __hwspin_lock_timeout(struct hwspinlock *hwlock, unsigned int to, in __hwspin_lock_timeout() argument [all …]
|
D | hwspinlock_internal.h | 65 static inline int hwlock_to_id(struct hwspinlock *hwlock) in hwlock_to_id() argument 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()
|
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 | 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-6.12.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 hwspin_lock_bust(struct hwspinlock *hwlock, unsigned int id); 72 int devm_hwspin_lock_free(struct device *dev, struct hwspinlock *hwlock); 108 static inline int hwspin_lock_free(struct hwspinlock *hwlock) in hwspin_lock_free() argument 114 int __hwspin_lock_timeout(struct hwspinlock *hwlock, unsigned int to, in __hwspin_lock_timeout() argument 121 int __hwspin_trylock(struct hwspinlock *hwlock, int mode, unsigned long *flags) in __hwspin_trylock() argument 127 void __hwspin_unlock(struct hwspinlock *hwlock, int mode, unsigned long *flags) in __hwspin_unlock() argument 131 static inline int hwspin_lock_bust(struct hwspinlock *hwlock, unsigned int id) in hwspin_lock_bust() argument 141 static inline int hwspin_lock_get_id(struct hwspinlock *hwlock) in hwspin_lock_get_id() argument [all …]
|
/linux-6.12.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 …]
|
/linux-6.12.1/Documentation/locking/ |
D | hwspinlock.rst | 80 int hwspin_lock_free(struct hwspinlock *hwlock); 90 int hwspin_lock_bust(struct hwspinlock *hwlock, unsigned int id); 101 int hwspin_lock_timeout(struct hwspinlock *hwlock, unsigned int timeout); 117 int hwspin_lock_timeout_irq(struct hwspinlock *hwlock, unsigned int timeout); 132 int hwspin_lock_timeout_irqsave(struct hwspinlock *hwlock, unsigned int to, 150 int hwspin_lock_timeout_raw(struct hwspinlock *hwlock, unsigned int timeout); 167 int hwspin_lock_timeout_in_atomic(struct hwspinlock *hwlock, unsigned int to); 183 int hwspin_trylock(struct hwspinlock *hwlock); 200 int hwspin_trylock_irq(struct hwspinlock *hwlock); 217 int hwspin_trylock_irqsave(struct hwspinlock *hwlock, unsigned long *flags); [all …]
|
/linux-6.12.1/drivers/spi/ |
D | spi-sprd-adi.c | 149 struct hwspinlock *hwlock; member 224 if (sadi->hwlock) { in sprd_adi_read() 225 ret = hwspin_lock_timeout_irqsave(sadi->hwlock, in sprd_adi_read() 279 if (sadi->hwlock) in sprd_adi_read() 280 hwspin_unlock_irqrestore(sadi->hwlock, &flags); in sprd_adi_read() 290 if (sadi->hwlock) { in sprd_adi_write() 291 ret = hwspin_lock_timeout_irqsave(sadi->hwlock, in sprd_adi_write() 328 if (sadi->hwlock) in sprd_adi_write() 329 hwspin_unlock_irqrestore(sadi->hwlock, &flags); in sprd_adi_write() 552 sadi->hwlock = in sprd_adi_probe() [all …]
|
/linux-6.12.1/drivers/nvmem/ |
D | sc27xx-efuse.c | 64 struct hwspinlock *hwlock; member 89 ret = hwspin_lock_timeout_raw(efuse->hwlock, in sc27xx_efuse_lock() 102 hwspin_unlock_raw(efuse->hwlock); in sc27xx_efuse_unlock() 232 efuse->hwlock = devm_hwspin_lock_request_specific(&pdev->dev, ret); in sc27xx_efuse_probe() 233 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-6.12.1/drivers/isdn/hardware/mISDN/ |
D | mISDNisar.c | 200 spin_lock_irqsave(isar->hwlock, flags); in load_firmware() 202 spin_unlock_irqrestore(isar->hwlock, flags); in load_firmware() 217 spin_lock_irqsave(isar->hwlock, flags); in load_firmware() 229 spin_unlock_irqrestore(isar->hwlock, flags); in load_firmware() 258 spin_lock_irqsave(isar->hwlock, flags); in load_firmware() 269 spin_unlock_irqrestore(isar->hwlock, flags); in load_firmware() 289 spin_lock_irqsave(isar->hwlock, flags); in load_firmware() 311 spin_unlock_irqrestore(isar->hwlock, flags); in load_firmware() 329 spin_lock_irqsave(isar->hwlock, flags); in load_firmware() 335 spin_unlock_irqrestore(isar->hwlock, flags); in load_firmware() [all …]
|
D | mISDNipac.c | 565 spin_lock_irqsave(isac->hwlock, flags); in isac_l1hw() 571 spin_unlock_irqrestore(isac->hwlock, flags); in isac_l1hw() 574 spin_unlock_irqrestore(isac->hwlock, flags); in isac_l1hw() 599 spin_lock_irqsave(isac->hwlock, flags); in isac_ctrl() 613 spin_unlock_irqrestore(isac->hwlock, flags); in isac_ctrl() 635 spin_lock_irqsave(isac->hwlock, flags); in isac_l1cmd() 637 spin_unlock_irqrestore(isac->hwlock, flags); in isac_l1cmd() 640 spin_lock_irqsave(isac->hwlock, flags); in isac_l1cmd() 642 spin_unlock_irqrestore(isac->hwlock, flags); in isac_l1cmd() 645 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
|
D | speedfax.c | 375 card->isac.hwlock = &card->lock; in setup_instance() 376 card->isar.hwlock = &card->lock; in setup_instance()
|
/linux-6.12.1/drivers/pinctrl/stm32/ |
D | pinctrl-stm32.c | 116 struct hwspinlock *hwlock; member 433 if (pctl->hwlock) { in stm32_gpio_domain_activate() 434 ret = hwspin_lock_timeout_in_atomic(pctl->hwlock, in stm32_gpio_domain_activate() 444 if (pctl->hwlock) in stm32_gpio_domain_activate() 445 hwspin_unlock_in_atomic(pctl->hwlock); in stm32_gpio_domain_activate() 767 if (pctl->hwlock) { in stm32_pmx_set_mode() 768 err = hwspin_lock_timeout_in_atomic(pctl->hwlock, in stm32_pmx_set_mode() 786 if (pctl->hwlock) in stm32_pmx_set_mode() 787 hwspin_unlock_in_atomic(pctl->hwlock); in stm32_pmx_set_mode() 900 if (pctl->hwlock) { in stm32_pconf_set_driving() [all …]
|
/linux-6.12.1/drivers/irqchip/ |
D | irq-stm32mp-exti.c | 74 struct hwspinlock *hwlock; member 372 struct hwspinlock *hwlock = chip_data->host_data->hwlock; in stm32mp_exti_set_type() local 379 if (hwlock) { in stm32mp_exti_set_type() 380 err = hwspin_lock_timeout_in_atomic(hwlock, HWSPNLCK_TIMEOUT); in stm32mp_exti_set_type() 396 if (hwlock) in stm32mp_exti_set_type() 397 hwspin_unlock_in_atomic(hwlock); in stm32mp_exti_set_type() 645 host_data->hwlock = devm_hwspin_lock_request_specific(dev, ret); in stm32mp_exti_probe() 646 if (!host_data->hwlock) { in stm32mp_exti_probe()
|
/linux-6.12.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-6.12.1/drivers/soc/qcom/ |
D | smem.c | 279 struct hwspinlock *hwlock; member 384 return hwspin_lock_bust(__smem->hwlock, SMEM_HOST_ID_TO_HWSPINLOCK_ID(host)); in qcom_smem_bust_hwspin_lock_by_host() 521 ret = hwspin_lock_timeout_irqsave(__smem->hwlock, in qcom_smem_alloc() 537 hwspin_unlock_irqrestore(__smem->hwlock, &flags); in qcom_smem_alloc() 1189 smem->hwlock = hwspin_lock_request_specific(hwlock_id); in qcom_smem_probe() 1190 if (!smem->hwlock) in qcom_smem_probe() 1193 ret = hwspin_lock_timeout_irqsave(smem->hwlock, HWSPINLOCK_TIMEOUT, &flags); in qcom_smem_probe() 1197 hwspin_unlock_irqrestore(smem->hwlock, &flags); in qcom_smem_probe() 1242 hwspin_lock_free(__smem->hwlock); in qcom_smem_remove()
|
/linux-6.12.1/arch/arm64/boot/dts/sprd/ |
D | whale2.dtsi | 177 hwlocks = <&hwlock 0>; 178 hwlock-names = "adi"; 196 hwlock: hwspinlock@40500000 { label 199 #hwlock-cells = <1>;
|
D | sc2731.dtsi | 70 hwlocks = <&hwlock 12>; 92 hwlocks = <&hwlock 4>;
|
/linux-6.12.1/drivers/iio/adc/ |
D | sc27xx_adc.c | 92 struct hwspinlock *hwlock; member 490 ret = hwspin_lock_timeout_raw(data->hwlock, SC27XX_ADC_HWLOCK_TIMEOUT); in sc27xx_adc_read() 576 hwspin_unlock_raw(data->hwlock); in sc27xx_adc_read() 903 sc27xx_data->hwlock = devm_hwspin_lock_request_specific(dev, ret); in sc27xx_adc_probe() 904 if (!sc27xx_data->hwlock) { in sc27xx_adc_probe()
|
/linux-6.12.1/drivers/base/regmap/ |
D | regmap.c | 398 hwspin_lock_timeout(map->hwlock, UINT_MAX); in regmap_lock_hwlock() 405 hwspin_lock_timeout_irq(map->hwlock, UINT_MAX); in regmap_lock_hwlock_irq() 412 hwspin_lock_timeout_irqsave(map->hwlock, UINT_MAX, in regmap_lock_hwlock_irqsave() 420 hwspin_unlock(map->hwlock); in regmap_unlock_hwlock() 427 hwspin_unlock_irq(map->hwlock); in regmap_unlock_hwlock_irq() 434 hwspin_unlock_irqrestore(map->hwlock, &map->spinlock_flags); in regmap_unlock_hwlock_irqrestore() 701 map->hwlock = hwspin_lock_request_specific(config->hwlock_id); in __regmap_init() 702 if (!map->hwlock) { in __regmap_init() 1158 if (map->hwlock) in __regmap_init() 1159 hwspin_lock_free(map->hwlock); in __regmap_init() [all …]
|
/linux-6.12.1/arch/arm64/boot/dts/qcom/ |
D | ipq5018.dtsi | 184 tcsr_mutex: hwlock@1905000 { 187 #hwlock-cells = <1>;
|