Home
last modified time | relevance | path

Searched refs:semaphore (Results 1 – 25 of 2692) sorted by relevance

12345678910>>...108

/linux/drivers/gpu/drm/radeon/
A Dradeon_semaphore.c40 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 …]
A Dradeon_test.c318 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 …]
A Dradeon_sync.c146 struct radeon_semaphore *semaphore; in radeon_sync_rings() local
165 r = radeon_semaphore_create(rdev, &semaphore); in radeon_sync_rings()
169 sync->semaphores[count++] = semaphore; in radeon_sync_rings()
177 if (!radeon_semaphore_emit_signal(rdev, i, semaphore)) { in radeon_sync_rings()
187 if (!radeon_semaphore_emit_wait(rdev, ring, semaphore)) { in radeon_sync_rings()
A Duvd_v3_1.c41 struct radeon_semaphore *semaphore, in uvd_v3_1_semaphore_emit() argument
44 uint64_t addr = semaphore->gpu_addr; in uvd_v3_1_semaphore_emit()
A Duvd_v2_2.c74 struct radeon_semaphore *semaphore, in uvd_v2_2_semaphore_emit() argument
77 uint64_t addr = semaphore->gpu_addr; in uvd_v2_2_semaphore_emit()
/linux/kernel/locking/
A Dsemaphore.c36 static noinline void __down(struct semaphore *sem);
38 static noinline int __down_killable(struct semaphore *sem);
40 static noinline void __up(struct semaphore *sem);
53 void down(struct semaphore *sem) in down()
76 int down_interruptible(struct semaphore *sem) in down_interruptible()
103 int down_killable(struct semaphore *sem) in down_killable()
133 int down_trylock(struct semaphore *sem) in down_trylock()
158 int down_timeout(struct semaphore *sem, long timeout) in down_timeout()
182 void up(struct semaphore *sem) in up()
239 static noinline void __sched __down(struct semaphore *sem) in __down()
[all …]
A Dbuilt-in.a4 semaphore.o/
/linux/include/linux/
A Dsemaphore.h15 struct semaphore { struct
29 struct semaphore name = __SEMAPHORE_INITIALIZER(name, 1) argument
31 static inline void sema_init(struct semaphore *sem, int val) in sema_init()
34 *sem = (struct semaphore) __SEMAPHORE_INITIALIZER(*sem, val); in sema_init()
38 extern void down(struct semaphore *sem);
39 extern int __must_check down_interruptible(struct semaphore *sem);
40 extern int __must_check down_killable(struct semaphore *sem);
41 extern int __must_check down_trylock(struct semaphore *sem);
42 extern int __must_check down_timeout(struct semaphore *sem, long jiffies);
43 extern void up(struct semaphore *sem);
A Dhil_mlc.h136 struct semaphore csem; /* Raised when loop idle */
139 struct semaphore osem; /* Raised when outpacket dispatched */
143 struct semaphore isem; /* Raised when a packet arrives */
A Dhp_sdc.h71 struct semaphore *semaphore; /* Semaphore to sleep on. */ member
/linux/include/drm/
A Dtask_barrier.h42 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()
/linux/drivers/input/serio/
A Dhp_sdc_mlc.c193 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()
A Dhp_sdc.c201 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()
/linux/drivers/acpi/acpica/
A Dexsystem.c31 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()
/linux/fs/jffs2/
A DREADME.Locking141 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
/linux/drivers/input/misc/
A Dhp_sdc_rtc.c58 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()
/linux/Documentation/networking/
A Dnetdevices.rst213 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.
/linux/Documentation/locking/
A Dpercpu-rw-semaphore.rst5 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
A Dindex.rst24 percpu-rw-semaphore
/linux/net/rxrpc/
A Dcall_object.c43 static struct semaphore rxrpc_call_limiter =
45 static struct semaphore rxrpc_kernel_call_limiter =
219 static struct semaphore *rxrpc_get_call_slot(struct rxrpc_call_params *p, gfp_t gfp) in rxrpc_get_call_slot()
221 struct semaphore *limiter = &rxrpc_call_limiter; in rxrpc_get_call_slot()
237 struct semaphore *limiter = &rxrpc_call_limiter; in rxrpc_put_call_slot()
260 struct semaphore *limiter; in rxrpc_new_client_call()
/linux/drivers/md/bcache/
A Dbcache.h308 struct semaphore sb_write_mutex;
340 struct semaphore in_flight;
530 struct semaphore sb_write_mutex;
656 struct semaphore moving_in_flight;
673 struct semaphore uuid_write_mutex;
/linux/drivers/net/ethernet/huawei/hinic/
A Dhinic_hw_mbox.h92 struct semaphore mbox_send_sem;
93 struct semaphore msg_send_sem;
/linux/drivers/acpi/
A Dosl.c1200 struct semaphore *sem = NULL; in acpi_os_create_semaphore()
1202 sem = acpi_os_allocate_zeroed(sizeof(struct semaphore)); in acpi_os_create_semaphore()
1225 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_delete_semaphore()
1245 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_wait_semaphore()
1289 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_signal_semaphore()
/linux/drivers/gpu/drm/i915/
A Di915_request.c125 i915_sw_fence_fini(&rq->semaphore); in i915_fence_release()
610 i915_sw_fence_signaled(&request->semaphore)) in __i915_request_submit()
762 struct i915_request *rq = container_of(fence, typeof(*rq), semaphore); in semaphore_notify()
831 i915_sw_fence_init(&rq->semaphore, semaphore_notify); in __i915_request_ctor()
924 i915_sw_fence_reinit(&i915_request_get(rq)->semaphore); in __i915_request_create()
1196 wait = &to->semaphore; in emit_semaphore_wait()
1717 i915_sw_fence_commit(&rq->semaphore); in __i915_request_queue_bh()
2027 if (!i915_sw_fence_signaled(&rq->semaphore)) in run_status()
/linux/Documentation/ia64/
A Derr_inject.rst388 /* clear old semaphore */
392 /* get one semaphore */
395 printf("Please remove semaphore with key=0x%lx, then run the tool.\n",
402 /* initialize the semaphore to 1: */
811 /* Create semaphore: If one_lock, one semaphore for all processors.
812 Otherwise, one semaphore for each processor. */
815 printf("Can not create semaphore...exit\n");
823 printf("Can not create semaphore for cpu%d...exit\n",i);

Completed in 44 milliseconds

12345678910>>...108