/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_semaphore.c | 40 if (*semaphore == NULL) { in radeon_semaphore_create() 46 kfree(*semaphore); in radeon_semaphore_create() 47 *semaphore = NULL; in radeon_semaphore_create() 50 (*semaphore)->waiters = 0; in radeon_semaphore_create() 51 (*semaphore)->gpu_addr = radeon_sa_bo_gpu_addr((*semaphore)->sa_bo); in radeon_semaphore_create() 66 --semaphore->waiters; in radeon_semaphore_emit_signal() 83 ++semaphore->waiters; in radeon_semaphore_emit_wait() 96 if (semaphore == NULL || *semaphore == NULL) { in radeon_semaphore_free() 99 if ((*semaphore)->waiters > 0) { in radeon_semaphore_free() 104 kfree(*semaphore); in radeon_semaphore_free() [all …]
|
H A D | radeon_test.c | 318 struct radeon_semaphore *semaphore = NULL; in radeon_test_ring_sync() local 321 r = radeon_semaphore_create(rdev, &semaphore); in radeon_test_ring_sync() 332 radeon_semaphore_emit_wait(rdev, ringA->idx, semaphore); in radeon_test_ring_sync() 344 radeon_semaphore_emit_wait(rdev, ringA->idx, semaphore); in radeon_test_ring_sync() 363 radeon_semaphore_emit_signal(rdev, ringB->idx, semaphore); in radeon_test_ring_sync() 394 radeon_semaphore_free(rdev, &semaphore, NULL); in radeon_test_ring_sync() 412 struct radeon_semaphore *semaphore = NULL; in radeon_test_ring_sync2() local 416 r = radeon_semaphore_create(rdev, &semaphore); in radeon_test_ring_sync2() 427 radeon_semaphore_emit_wait(rdev, ringA->idx, semaphore); in radeon_test_ring_sync2() 439 radeon_semaphore_emit_wait(rdev, ringB->idx, semaphore); in radeon_test_ring_sync2() [all …]
|
H A D | radeon_sync.c | 130 struct radeon_semaphore *semaphore; in radeon_sync_rings() local 149 r = radeon_semaphore_create(rdev, &semaphore); in radeon_sync_rings() 153 sync->semaphores[count++] = semaphore; in radeon_sync_rings() 161 if (!radeon_semaphore_emit_signal(rdev, i, semaphore)) { in radeon_sync_rings() 171 if (!radeon_semaphore_emit_wait(rdev, ring, semaphore)) { in radeon_sync_rings()
|
H A D | uvd_v3_1.c | 41 struct radeon_semaphore *semaphore, in uvd_v3_1_semaphore_emit() argument 44 uint64_t addr = semaphore->gpu_addr; in uvd_v3_1_semaphore_emit()
|
H A D | uvd_v2_2.c | 74 struct radeon_semaphore *semaphore, in uvd_v2_2_semaphore_emit() argument 77 uint64_t addr = semaphore->gpu_addr; in uvd_v2_2_semaphore_emit()
|
/openbmc/linux/include/linux/ |
H A D | semaphore.h | 15 struct semaphore { struct 35 struct semaphore _name = __SEMAPHORE_INITIALIZER(_name, _n) argument 37 static inline void sema_init(struct semaphore *sem, int val) in sema_init() 40 *sem = (struct semaphore) __SEMAPHORE_INITIALIZER(*sem, val); in sema_init() 44 extern void down(struct semaphore *sem); 45 extern int __must_check down_interruptible(struct semaphore *sem); 46 extern int __must_check down_killable(struct semaphore *sem); 47 extern int __must_check down_trylock(struct semaphore *sem); 48 extern int __must_check down_timeout(struct semaphore *sem, long jiffies); 49 extern void up(struct semaphore *sem);
|
H A D | hil_mlc.h | 136 struct semaphore csem; /* Raised when loop idle */ 139 struct semaphore osem; /* Raised when outpacket dispatched */ 143 struct semaphore isem; /* Raised when a packet arrives */
|
H A D | hp_sdc.h | 71 struct semaphore *semaphore; /* Semaphore to sleep on. */ member
|
/openbmc/linux/kernel/locking/ |
H A D | semaphore.c | 37 static noinline void __down(struct semaphore *sem); 38 static noinline int __down_interruptible(struct semaphore *sem); 39 static noinline int __down_killable(struct semaphore *sem); 41 static noinline void __up(struct semaphore *sem); 54 void __sched down(struct semaphore *sem) in down() 77 int __sched down_interruptible(struct semaphore *sem) in down_interruptible() 104 int __sched down_killable(struct semaphore *sem) in down_killable() 134 int __sched down_trylock(struct semaphore *sem) in down_trylock() 183 void __sched up(struct semaphore *sem) in up() 252 static noinline void __sched __down(struct semaphore *sem) in __down() [all …]
|
/openbmc/linux/include/drm/ |
H A D | task_barrier.h | 42 struct semaphore enter_turnstile; 43 struct semaphore exit_turnstile; 46 static inline void task_barrier_signal_turnstile(struct semaphore *turnstile, in task_barrier_signal_turnstile()
|
/openbmc/linux/drivers/input/serio/ |
H A D | hp_sdc_mlc.c | 193 if (priv->trans.act.semaphore != &mlc->csem) in hp_sdc_mlc_cts() 203 priv->trans.act.semaphore = &mlc->csem; in hp_sdc_mlc_cts() 217 priv->trans.act.semaphore = &mlc->osem; in hp_sdc_mlc_cts() 245 priv->trans.act.semaphore = &mlc->osem; in hp_sdc_mlc_out() 286 priv->trans.act.semaphore = &mlc->osem; in hp_sdc_mlc_out() 316 hp_sdc_mlc_priv.trans.act.semaphore = &mlc->osem; in hp_sdc_mlc_init()
|
H A D | hp_sdc.c | 201 if (curr->act.semaphore) in hp_sdc_take() 202 up(curr->act.semaphore); in hp_sdc_take() 328 if (curr->act.semaphore) in hp_sdc_tasklet() 329 up(curr->act.semaphore); in hp_sdc_tasklet() 566 up(curr->act.semaphore); in hp_sdc_put() 833 struct semaphore s_sync; in hp_sdc_init() 903 t_sync.act.semaphore = &s_sync; in hp_sdc_init() 998 struct semaphore tq_init_sem; in hp_sdc_register() 1039 tq_init.act.semaphore = &tq_init_sem; in hp_sdc_register()
|
/openbmc/linux/drivers/acpi/acpica/ |
H A D | exsystem.c | 31 acpi_status acpi_ex_system_wait_semaphore(acpi_semaphore semaphore, u16 timeout) in acpi_ex_system_wait_semaphore() argument 37 status = acpi_os_wait_semaphore(semaphore, 1, ACPI_DO_NOT_WAIT); in acpi_ex_system_wait_semaphore() 47 status = acpi_os_wait_semaphore(semaphore, 1, timeout); in acpi_ex_system_wait_semaphore()
|
/openbmc/linux/fs/jffs2/ |
H A D | README.Locking | 141 This read/write semaphore protects against concurrent access to the 154 This read/write semaphore protects against concurrent access to the 156 In read-only path, write-semaphore is too much exclusion. It's enough 157 by read-semaphore. But you must hold write-semaphore when updating, 162 when updating such a object is necessary under holding read semaphore. 163 For example, do_jffs2_getxattr() holds read-semaphore to scan xref and 164 xdatum at first. But it retries this process with holding write-semaphore 165 after release read-semaphore, if it's necessary to load name/value pair
|
/openbmc/linux/drivers/input/misc/ |
H A D | hp_sdc_rtc.c | 58 static struct semaphore i8042tregs; 68 struct semaphore tsem; in hp_sdc_rtc_do_read_bbrtc() 87 t.act.semaphore = &tsem; in hp_sdc_rtc_do_read_bbrtc() 159 t.act.semaphore = &i8042tregs; in hp_sdc_rtc_read_i8042timer()
|
/openbmc/openbmc/poky/meta/lib/oeqa/core/utils/ |
H A D | concurrencytest.py | 53 … def __init__(self, target, semaphore, threadnum, totalinprocess, totaltests, output, finalresult): argument 54 super(BBThreadsafeForwardingResult, self).__init__(target, semaphore) 65 self.semaphore.acquire() 81 self.semaphore.release() 208 semaphore = threading.Semaphore(1) 214 semaphore, i, testnum, totaltests, output, result)
|
/openbmc/linux/Documentation/networking/ |
H A D | netdevices.rst | 213 Synchronization: rtnl_lock() semaphore. 217 Synchronization: rtnl_lock() semaphore. 222 Synchronization: rtnl_lock() semaphore. 230 Synchronization: rtnl_lock() semaphore. 237 Synchronization: rtnl_lock() semaphore. 244 Synchronization: rtnl_lock() semaphore. 251 Synchronization: rtnl_lock() semaphore. 255 Synchronization: rtnl_lock() semaphore, dev_base_lock rwlock, or RCU.
|
/openbmc/linux/Documentation/locking/ |
H A D | percpu-rw-semaphore.rst | 5 Percpu rw semaphores is a new read-write semaphore design that is 9 cores take the lock for reading, the cache line containing the semaphore
|
H A D | index.rst | 24 percpu-rw-semaphore
|
/openbmc/linux/Documentation/driver-api/serial/ |
H A D | driver.rst | 44 There are two locks. A per-port spinlock, and an overall semaphore. 57 The port_sem semaphore is used to protect against ports being added/ 59 semaphore has been the 'mutex' member of the tty_port struct, and
|
/openbmc/linux/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_hw_mbox.h | 92 struct semaphore mbox_send_sem; 93 struct semaphore msg_send_sem;
|
/openbmc/linux/drivers/md/bcache/ |
H A D | bcache.h | 309 struct semaphore sb_write_mutex; 341 struct semaphore in_flight; 538 struct semaphore sb_write_mutex; 664 struct semaphore moving_in_flight; 681 struct semaphore uuid_write_mutex;
|
/openbmc/linux/Documentation/accel/qaic/ |
H A D | aic100.rst | 347 semaphore command. 349 * Bit(31) indicates this semaphore command is enabled. 355 * Bits(26:24) are the semaphore command. 0 is NOP. 1 is init with the 357 until the semaphore is equal to the specified value. 5 is wait 358 until the semaphore is greater or equal to the specified value. 359 6 is "P", wait until semaphore is greater than 0, then 363 semaphore operation is done after the DMA transfer. 1 is 367 * Bits(20:16) is the index of the semaphore to operate on. 369 * Bits(11:0) are the semaphore value to use in operations. 373 1. If specified, the presync semaphore condition must be true [all …]
|
/openbmc/linux/drivers/net/wireless/st/cw1200/ |
H A D | scan.h | 22 struct semaphore lock;
|
/openbmc/linux/Documentation/translations/zh_CN/locking/ |
H A D | index.rst | 34 * percpu-rw-semaphore
|