Home
last modified time | relevance | path

Searched refs:lock (Results 1 – 25 of 39) sorted by relevance

12

/trusted-firmware-a/drivers/arm/css/scmi/
A Dscmi_common.c16 #define scmi_lock_init(lock) argument
17 #define scmi_lock_get(lock) spin_lock(lock) argument
18 #define scmi_lock_release(lock) spin_unlock(lock) argument
20 #define scmi_lock_init(lock) bakery_lock_init(lock) argument
21 #define scmi_lock_get(lock) bakery_lock_get(lock) argument
22 #define scmi_lock_release(lock) bakery_lock_release(lock) argument
31 assert(ch->lock); in scmi_get_channel()
32 scmi_lock_get(ch->lock); in scmi_get_channel()
83 assert(ch->lock); in scmi_put_channel()
168 assert(ch->lock); in scmi_init()
[all …]
/trusted-firmware-a/lib/locks/bakery/
A Dbakery_lock_normal.c61 bakery_lock_t *lock) in get_bakery_info() argument
63 return (bakery_info_t *)((uintptr_t)lock + in get_bakery_info()
101 static unsigned int bakery_get_ticket(bakery_lock_t *lock, in bakery_get_ticket() argument
112 my_bakery_info = get_bakery_info(me, lock); in bakery_get_ticket()
139 their_bakery_info = get_bakery_info(they, lock); in bakery_get_ticket()
165 void bakery_lock_get(bakery_lock_t *lock) in bakery_lock_get() argument
177 my_ticket = bakery_get_ticket(lock, me, is_cached); in bakery_lock_get()
192 their_bakery_info = get_bakery_info(they, lock); in bakery_lock_get()
229 void bakery_lock_release(bakery_lock_t *lock) in bakery_lock_release() argument
234 my_bakery_info = get_bakery_info(plat_my_core_pos(), lock); in bakery_lock_release()
/trusted-firmware-a/include/lib/
A Dspinlock.h15 volatile uint32_t lock; member
18 void spin_lock(spinlock_t *lock);
19 void spin_unlock(spinlock_t *lock);
/trusted-firmware-a/services/std_svc/spmd/
A Dspmd_pm.c19 spinlock_t lock; member
44 spin_lock(&g_spmd_pm.lock); in spmd_pm_secondary_ep_register()
68 spin_unlock(&g_spmd_pm.lock); in spmd_pm_secondary_ep_register()
90 spin_lock(&g_spmd_pm.lock); in spmd_cpu_on_finish_handler()
109 spin_unlock(&g_spmd_pm.lock); in spmd_cpu_on_finish_handler()
/trusted-firmware-a/drivers/st/i2c/
A Dstm32_i2c.c65 hi2c->lock = 1; in i2c_config_analog_filter()
83 hi2c->lock = 0; in i2c_config_analog_filter()
156 hi2c->lock = 0; in stm32_i2c_init()
277 hi2c->lock = 0; in i2c_wait_flag()
324 hi2c->lock = 0; in i2c_ack_failed()
553 hi2c->lock = 1; in i2c_write()
650 hi2c->lock = 0; in i2c_write()
734 hi2c->lock = 1; in i2c_read()
819 hi2c->lock = 0; in i2c_read()
887 hi2c->lock = 1; in stm32_i2c_is_device_ready()
[all …]
/trusted-firmware-a/plat/mediatek/mt8192/drivers/emi_mpu/
A Demi_mpu.h63 #define SET_ACCESS_PERMISSION(apc_ary, lock, d7, d6, d5, d4, d3, d2, d1, d0) \ argument
71 | (((unsigned int) lock) << 31); \
74 #define SET_ACCESS_PERMISSION(apc_ary, lock, d15, d14, d13, d12, d11, d10, \ argument
87 | (((unsigned int) lock) << 31); \
/trusted-firmware-a/plat/mediatek/mt8195/drivers/emi_mpu/
A Demi_mpu.h61 #define SET_ACCESS_PERMISSION(apc_ary, lock, d7, d6, d5, d4, d3, d2, d1, d0) \ argument
69 ((unsigned int) lock << 31); \
72 #define SET_ACCESS_PERMISSION(apc_ary, lock, d15, d14, d13, d12, d11, d10, \ argument
85 ((unsigned int) lock << 31); \
/trusted-firmware-a/lib/cpus/
A Derrata_report.c37 int errata_needs_reporting(spinlock_t *lock, uint32_t *reported) in errata_needs_reporting() argument
49 spin_lock(lock); in errata_needs_reporting()
53 spin_unlock(lock); in errata_needs_reporting()
/trusted-firmware-a/plat/qti/qtiseclib/inc/
A Dqtiseclib_cb_interface.h30 void qtiseclib_cb_spin_lock(qtiseclib_cb_spinlock_t *lock);
31 void qtiseclib_cb_spin_unlock(qtiseclib_cb_spinlock_t *lock);
A Dqtiseclib_defs.h37 volatile uint32_t lock; member
/trusted-firmware-a/plat/qti/qtiseclib/src/
A Dqtiseclib_cb_interface.c69 void qtiseclib_cb_spin_lock(qtiseclib_cb_spinlock_t *lock) in qtiseclib_cb_spin_lock() argument
71 spin_lock((spinlock_t *) lock); in qtiseclib_cb_spin_lock()
74 void qtiseclib_cb_spin_unlock(qtiseclib_cb_spinlock_t *lock) in qtiseclib_cb_spin_unlock() argument
76 spin_unlock((spinlock_t *) lock); in qtiseclib_cb_spin_unlock()
/trusted-firmware-a/include/lib/cpus/
A Derrata_report.h24 int errata_needs_reporting(spinlock_t *lock, uint32_t *reported);
/trusted-firmware-a/plat/nvidia/tegra/scat/
A Dbl31.scat176 * Each lock's data is spread across multiple cache lines, one per CPU,
197 /* PLAT_PERCPU_BAKERY_LOCK_SIZE does not match bakery lock requirements */
252 * Each lock's data is contiguous and fully allocated by the compiler
/trusted-firmware-a/services/std_svc/sdei/
A Dsdei_private.h219 spin_lock(&map->lock); in sdei_map_lock()
224 spin_unlock(&map->lock); in sdei_map_unlock()
/trusted-firmware-a/docs/build/TF-A_2.5/_sources/perf/
A Dpsci-performance-juno.rst.txt105 observed due to TF PSCI lock contention. In the worst case, CPU 3 has to wait
107 the lock before proceeding.
136 There is no lock contention in TF generic code at power level 0 but the large
137 variance in ``PSCI_ENTRY`` times across CPUs is due to lock contention in Juno
138 platform code. The platform lock is used to mediate access to a single SCP
/trusted-firmware-a/docs/perf/
A Dpsci-performance-juno.rst105 observed due to TF PSCI lock contention. In the worst case, CPU 3 has to wait
107 the lock before proceeding.
136 There is no lock contention in TF generic code at power level 0 but the large
137 variance in ``PSCI_ENTRY`` times across CPUs is due to lock contention in Juno
138 platform code. The platform lock is used to mediate access to a single SCP
/trusted-firmware-a/plat/imx/common/include/sci/svc/timer/
A Dsci_timer_api.h108 sc_err_t sc_timer_start_wdog(sc_ipc_t ipc, sc_bool_t lock);
/trusted-firmware-a/include/services/
A Dsdei.h117 spinlock_t lock; /* Per-event lock */ member
/trusted-firmware-a/include/drivers/arm/css/
A Dscmi.h141 scmi_lock_t *lock; member
/trusted-firmware-a/lib/debugfs/
A Ddebugfs_smc.c206 debugfs_access_lock.lock = 0; in debugfs_smc_setup()
/trusted-firmware-a/plat/socionext/synquacer/drivers/scp/
A Dsq_scmi.c222 channel.lock = SQ_SCMI_LOCK_GET_INSTANCE; in plat_sq_pwrc_setup()
/trusted-firmware-a/plat/imx/common/sci/svc/timer/
A Dtimer_rpc_clnt.c66 sc_err_t sc_timer_start_wdog(sc_ipc_t ipc, sc_bool_t lock) in sc_timer_start_wdog() argument
74 RPC_U8(&msg, 0U) = (uint8_t)lock; in sc_timer_start_wdog()
/trusted-firmware-a/include/drivers/st/
A Dstm32_i2c.h237 uint8_t lock; /* Locking object */ member
/trusted-firmware-a/drivers/arm/css/scp/
A Dcss_pm_scmi.c363 scmi_channels[idx].lock = ARM_SCMI_LOCK_GET_INSTANCE; in plat_arm_pwrc_setup()
/trusted-firmware-a/drivers/st/clk/
A Dstm32mp1_clk.c641 static void stm32mp1_clk_lock(struct spinlock *lock) in stm32mp1_clk_lock() argument
645 spin_lock(lock); in stm32mp1_clk_lock()
649 static void stm32mp1_clk_unlock(struct spinlock *lock) in stm32mp1_clk_unlock() argument
652 spin_unlock(lock); in stm32mp1_clk_unlock()

Completed in 30 milliseconds

12