Home
last modified time | relevance | path

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

/device/linaro/bootloader/arm-trusted-firmware/lib/locks/bakery/
Dbakery_lock_coherent.c37 #define assert_bakery_entry_valid(entry, bakery) do { \ argument
38 assert(bakery); \
43 static unsigned int bakery_get_ticket(bakery_lock_t *bakery, unsigned int me) in bakery_get_ticket() argument
49 assert(!bakery_ticket_number(bakery->lock_data[me])); in bakery_get_ticket()
62 bakery->lock_data[me] = make_bakery_data(CHOOSING_TICKET, my_ticket); in bakery_get_ticket()
64 their_ticket = bakery_ticket_number(bakery->lock_data[they]); in bakery_get_ticket()
74 bakery->lock_data[me] = make_bakery_data(CHOSEN_TICKET, my_ticket); in bakery_get_ticket()
91 void bakery_lock_get(bakery_lock_t *bakery) in bakery_lock_get() argument
99 assert_bakery_entry_valid(me, bakery); in bakery_lock_get()
102 my_ticket = bakery_get_ticket(bakery, me); in bakery_lock_get()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/include/lib/
Dbakery_lock.h75 static inline void bakery_lock_init(bakery_lock_t *bakery) {} in bakery_lock_init() argument
76 void bakery_lock_get(bakery_lock_t *bakery);
77 void bakery_lock_release(bakery_lock_t *bakery);
/device/linaro/bootloader/arm-trusted-firmware/lib/psci/
Dpsci_lib.mk28 PSCI_LIB_SOURCES += lib/locks/bakery/bakery_lock_coherent.c
30 PSCI_LIB_SOURCES += lib/locks/bakery/bakery_lock_normal.c
/device/linaro/bootloader/arm-trusted-firmware/docs/
Dfirmware-design.rst2043 The bakery lock data structure ``bakery_lock_t`` is allocated in coherent memory
2053 * choosing its bakery number.
2054 * Bits[1 - 15] : number. This is the bakery number allocated.
2078 To use bakery locks when ``USE_COHERENT_MEM`` is disabled, the lock data structure
2080 algorithm mentioned earlier. The bakery\_lock structure only allocates the memory
2081 for a single CPU. The macro ``DEFINE_BAKERY_LOCK`` allocates all the bakery locks
2083 for other cores by using the total size allocated for the bakery\_lock section
2088 The bakery lock data structure ``bakery_info_t`` is defined for use when
2097 * choosing its bakery number.
2098 * Bits[1 - 15] : number. This is the bakery number allocated.
[all …]
Dchange-log.rst20 - Use spin-locks instead of bakery locks.
559 - The bakery lock structure for coherent memory has been optimised.
871 - Removed calling CPU mpidr from the bakery lock API, saving 160 bytes.
Dpsci-lib-integration-guide.rst305 functions like bakery locks and spin locks are also included in the library.
Dporting-guide.rst1893 accommodate all the bakery locks.
1900 accessing per-cpu bakery lock information.