/linux/Documentation/devicetree/bindings/hwlock/ |
H A 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 …]
|
H A D | ti,omap-hwspinlock.yaml | 4 $id: http://devicetree.org/schemas/hwlock/ti,omap-hwspinlock.yaml# 22 "#hwlock-cells": 25 The OMAP hwspinlock users will use a 0-indexed relative hwlock number as 29 Please look at the generic hwlock binding for usage information for 30 consumers, "Documentation/devicetree/bindings/hwlock/hwlock.txt" 35 - "#hwlock-cells" 45 #hwlock-cells = <1>;
|
H A D | sprd,hwspinlock-r3p0.yaml | 4 $id: http://devicetree.org/schemas/hwlock/sprd,hwspinlock-r3p0.yaml# 27 '#hwlock-cells': 35 - '#hwlock-cells' 43 hwlock@40500000 { 48 #hwlock-cells = <1>;
|
H A D | qcom-hwspinlock.yaml | 4 $id: http://devicetree.org/schemas/hwlock/qcom-hwspinlock.yaml# 38 '#hwlock-cells': 44 - '#hwlock-cells' 50 hwlock@1f40000 { 53 #hwlock-cells = <1>;
|
H A D | allwinner,sun6i-a31-hwspinlock.yaml | 4 $id: http://devicetree.org/schemas/hwlock/allwinner,sun6i-a31-hwspinlock.yaml# 29 '#hwlock-cells': 37 - "#hwlock-cells" 46 hwlock@1c18000 { 51 #hwlock-cells = <1>;
|
H A D | st,stm32-hwspinlock.yaml | 4 $id: http://devicetree.org/schemas/hwlock/st,stm32-hwspinlock.yaml# 13 "#hwlock-cells": 30 - "#hwlock-cells" 43 #hwlock-cells = <1>;
|
/linux/drivers/hwspinlock/ |
H A 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()
|
H A 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()
|
H A 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/drivers/spi/ |
H A 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/drivers/isdn/hardware/mISDN/ |
H A 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 …]
|
H A 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 …]
|
H A D | ipac.h | 19 spinlock_t *hwlock; /* lock HW access */ member 60 spinlock_t *hwlock; /* lock HW access */ member
|
H A D | speedfax.c | 375 card->isac.hwlock = &card->lock; in setup_instance() 376 card->isar.hwlock = &card->lock; in setup_instance()
|
H A D | isar.h | 34 spinlock_t *hwlock; /* lock HW access */ member
|
/linux/drivers/irqchip/ |
H A 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/arch/arm64/boot/dts/sprd/ |
H A D | whale2.dtsi | 177 hwlocks = <&hwlock 0>; 178 hwlock-names = "adi"; 196 hwlock: hwspinlock@40500000 { label 199 #hwlock-cells = <1>;
|
/linux/Documentation/devicetree/bindings/spi/ |
H A D | sprd,spi-adi.yaml | 61 hwlock-names: 97 hwlock-names = "adi";
|
/linux/drivers/iio/adc/ |
H A 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/Documentation/devicetree/bindings/iio/adc/ |
H A D | sprd,sc2720-adc.yaml | 94 hwlocks = <&hwlock 4>;
|
/linux/drivers/mfd/ |
H A D | syscon.c | 90 /* Ignore missing hwlock, it's optional. */ in of_syscon_register() 93 pr_err("Failed to retrieve valid hwlock: %d\n", ret); in of_syscon_register()
|
/linux/arch/arm64/boot/dts/qcom/ |
H A D | sm4450.dtsi | 424 tcsr_mutex: hwlock@1f40000 { 427 #hwlock-cells = <1>;
|
/linux/drivers/net/ethernet/micrel/ |
H A D | ksz884x.c | 1330 * @hwlock: Spinlock to prevent hardware from accessing. 1355 spinlock_t hwlock; member 4371 spin_lock_irq(&hw_priv->hwlock); in transmit_cleanup() 4404 spin_unlock_irq(&hw_priv->hwlock); in transmit_cleanup() 4482 spin_lock_irq(&hw_priv->hwlock); in netdev_tx() 4511 spin_unlock_irq(&hw_priv->hwlock); in netdev_tx() 4808 spin_lock_irq(&hw_priv->hwlock); in rx_proc_task() 4810 spin_unlock_irq(&hw_priv->hwlock); in rx_proc_task() 4827 spin_lock_irq(&hw_priv->hwlock); in tx_proc_task() 4829 spin_unlock_irq(&hw_priv->hwlock); in tx_proc_task() [all …]
|
/linux/arch/arm/boot/dts/qcom/ |
H A D | qcom-apq8084.dtsi | 712 tcsr_mutex: hwlock@fd484000 { 715 #hwlock-cells = <1>;
|
H A D | qcom-sdx65.dtsi | 388 tcsr_mutex: hwlock@1f40000 { 391 #hwlock-cells = <1>;
|