Home
last modified time | relevance | path

Searched refs:bakery (Results 1 – 7 of 7) sorted by relevance

/rk3399_ARM-atf/lib/locks/bakery/
H A Dbakery_lock_coherent.c44 static unsigned int bakery_get_ticket(bakery_lock_t *bakery, unsigned int me) in bakery_get_ticket() argument
50 assert(bakery_ticket_number(bakery->lock_data[me]) == 0U); in bakery_get_ticket()
63 bakery->lock_data[me] = make_bakery_data(CHOOSING_TICKET, my_ticket); in bakery_get_ticket()
65 their_ticket = bakery_ticket_number(bakery->lock_data[they]); in bakery_get_ticket()
76 bakery->lock_data[me] = make_bakery_data(CHOSEN_TICKET, my_ticket); in bakery_get_ticket()
93 void bakery_lock_get(bakery_lock_t *bakery) in bakery_lock_get() argument
101 assert_bakery_entry_valid(me, bakery); in bakery_lock_get()
104 my_ticket = bakery_get_ticket(bakery, me); in bakery_lock_get()
118 their_bakery_data = bakery->lock_data[they]; in bakery_lock_get()
137 bakery_ticket_number(bakery->lock_data[they])); in bakery_lock_get()
[all …]
/rk3399_ARM-atf/include/lib/
H A Dbakery_lock.h95 static inline void bakery_lock_init(bakery_lock_t *bakery) {} in bakery_lock_init() argument
96 void bakery_lock_get(bakery_lock_t *bakery);
97 void bakery_lock_release(bakery_lock_t *bakery);
/rk3399_ARM-atf/lib/psci/
H A Dpsci_lib.mk26 PSCI_LIB_SOURCES += lib/locks/bakery/bakery_lock_coherent.c
28 PSCI_LIB_SOURCES += lib/locks/bakery/bakery_lock_normal.c
/rk3399_ARM-atf/plat/nvidia/tegra/scat/
H A Dbl31.scat178 * The compiler will allocate enough memory for one CPU's bakery locks,
193 /* padded memory section to store per cpu bakery locks */
197 /* PLAT_PERCPU_BAKERY_LOCK_SIZE does not match bakery lock requirements */
/rk3399_ARM-atf/docs/design/
H A Dfirmware-design.rst2286 The bakery lock data structure ``bakery_lock_t`` is allocated in coherent memory
2296 * choosing its bakery number.
2297 * Bits[1 - 15] : number. This is the bakery number allocated.
2321 To use bakery locks when ``USE_COHERENT_MEM`` is disabled, the lock data structure
2324 for a single CPU. The macro ``DEFINE_BAKERY_LOCK`` allocates all the bakery locks
2331 The bakery lock data structure ``bakery_info_t`` is defined for use when
2340 * choosing its bakery number.
2341 * Bits[1 - 15] : number. This is the bakery number allocated.
2348 system represents the complete bakery lock. The view in memory for a system
2349 with n bakery locks are:
[all …]
/rk3399_ARM-atf/docs/
H A Dporting-guide.rst2744 accommodate all the bakery locks.
2751 accessing per-cpu bakery lock information.
H A Dchange-log.md10656 - locks: bakery: Use is_dcache_enabled() helper and add a DMB to the
10917 - locks: T589: Fix insufficient ordering guarantees in bakery lock
11561 - Optimized bakery locks when hardware-assisted coherency is enabled using the
12191 - Use spin-locks instead of bakery locks.
12681 - The bakery lock structure for coherent memory has been optimised.
12949 - Removed calling CPU mpidr from the bakery lock API, saving 160 bytes.