Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
Damdgpu_semaphore.c35 struct amdgpu_semaphore **semaphore) in amdgpu_semaphore_create() argument
39 *semaphore = kmalloc(sizeof(struct amdgpu_semaphore), GFP_KERNEL); in amdgpu_semaphore_create()
40 if (*semaphore == NULL) { in amdgpu_semaphore_create()
44 &(*semaphore)->sa_bo, 8, 8); in amdgpu_semaphore_create()
46 kfree(*semaphore); in amdgpu_semaphore_create()
47 *semaphore = NULL; in amdgpu_semaphore_create()
50 (*semaphore)->waiters = 0; in amdgpu_semaphore_create()
51 (*semaphore)->gpu_addr = amdgpu_sa_bo_gpu_addr((*semaphore)->sa_bo); in amdgpu_semaphore_create()
53 *((uint64_t *)amdgpu_sa_bo_cpu_addr((*semaphore)->sa_bo)) = 0; in amdgpu_semaphore_create()
59 struct amdgpu_semaphore *semaphore) in amdgpu_semaphore_emit_signal() argument
[all …]
Damdgpu_test.c293 struct amdgpu_semaphore *semaphore = NULL; in amdgpu_test_ring_sync() local
296 r = amdgpu_semaphore_create(adev, &semaphore); in amdgpu_test_ring_sync()
307 amdgpu_semaphore_emit_wait(ringA, semaphore); in amdgpu_test_ring_sync()
319 amdgpu_semaphore_emit_wait(ringA, semaphore); in amdgpu_test_ring_sync()
338 amdgpu_semaphore_emit_signal(ringB, semaphore); in amdgpu_test_ring_sync()
359 amdgpu_semaphore_emit_signal(ringB, semaphore); in amdgpu_test_ring_sync()
369 amdgpu_semaphore_free(adev, &semaphore, NULL); in amdgpu_test_ring_sync()
387 struct amdgpu_semaphore *semaphore = NULL; in amdgpu_test_ring_sync2() local
391 r = amdgpu_semaphore_create(adev, &semaphore); in amdgpu_test_ring_sync2()
402 amdgpu_semaphore_emit_wait(ringA, semaphore); in amdgpu_test_ring_sync2()
[all …]
Damdgpu_sync.c287 struct amdgpu_semaphore *semaphore; in amdgpu_sync_rings() local
320 r = amdgpu_semaphore_create(adev, &semaphore); in amdgpu_sync_rings()
324 sync->semaphores[count++] = semaphore; in amdgpu_sync_rings()
332 if (!amdgpu_semaphore_emit_signal(other, semaphore)) { in amdgpu_sync_rings()
342 if (!amdgpu_semaphore_emit_wait(ring, semaphore)) { in amdgpu_sync_rings()
Damdgpu_vce.h38 struct amdgpu_semaphore *semaphore,
Damdgpu.h336 struct amdgpu_semaphore *semaphore,
649 struct amdgpu_semaphore **semaphore);
651 struct amdgpu_semaphore *semaphore);
653 struct amdgpu_semaphore *semaphore);
655 struct amdgpu_semaphore **semaphore,
2255 #define amdgpu_ring_emit_semaphore(r, semaphore, emit_wait) (r)->funcs->emit_semaphore((r), (semaph… argument
Duvd_v6_0.c495 struct amdgpu_semaphore *semaphore, in uvd_v6_0_ring_emit_semaphore() argument
498 uint64_t addr = semaphore->gpu_addr; in uvd_v6_0_ring_emit_semaphore()
Duvd_v5_0.c495 struct amdgpu_semaphore *semaphore, in uvd_v5_0_ring_emit_semaphore() argument
498 uint64_t addr = semaphore->gpu_addr; in uvd_v5_0_ring_emit_semaphore()
Duvd_v4_2.c451 struct amdgpu_semaphore *semaphore, in uvd_v4_2_ring_emit_semaphore() argument
454 uint64_t addr = semaphore->gpu_addr; in uvd_v4_2_ring_emit_semaphore()
Damdgpu_vce.c755 struct amdgpu_semaphore *semaphore, in amdgpu_vce_ring_emit_semaphore() argument
758 uint64_t addr = semaphore->gpu_addr; in amdgpu_vce_ring_emit_semaphore()
Dcik_sdma.c308 struct amdgpu_semaphore *semaphore, in cik_sdma_ring_emit_semaphore() argument
311 u64 addr = semaphore->gpu_addr; in cik_sdma_ring_emit_semaphore()
Dsdma_v2_4.c348 struct amdgpu_semaphore *semaphore, in sdma_v2_4_ring_emit_semaphore() argument
351 u64 addr = semaphore->gpu_addr; in sdma_v2_4_ring_emit_semaphore()
Dsdma_v3_0.c459 struct amdgpu_semaphore *semaphore, in sdma_v3_0_ring_emit_semaphore() argument
462 u64 addr = semaphore->gpu_addr; in sdma_v3_0_ring_emit_semaphore()
Dgfx_v8_0.c4648 struct amdgpu_semaphore *semaphore, in gfx_v8_0_ring_emit_semaphore() argument
4651 uint64_t addr = semaphore->gpu_addr; in gfx_v8_0_ring_emit_semaphore()
Dgfx_v7_0.c2530 struct amdgpu_semaphore *semaphore, in gfx_v7_0_ring_emit_semaphore() argument
2533 uint64_t addr = semaphore->gpu_addr; in gfx_v7_0_ring_emit_semaphore()
/linux-4.4.14/drivers/gpu/drm/radeon/
Dradeon_semaphore.c35 struct radeon_semaphore **semaphore) in radeon_semaphore_create() argument
39 *semaphore = kmalloc(sizeof(struct radeon_semaphore), GFP_KERNEL); in radeon_semaphore_create()
40 if (*semaphore == NULL) { in radeon_semaphore_create()
44 &(*semaphore)->sa_bo, 8, 8); 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()
53 *((uint64_t *)radeon_sa_bo_cpu_addr((*semaphore)->sa_bo)) = 0; in radeon_semaphore_create()
59 struct radeon_semaphore *semaphore) in radeon_semaphore_emit_signal() argument
[all …]
Dradeon_test.c312 struct radeon_semaphore *semaphore = NULL; in radeon_test_ring_sync() local
315 r = radeon_semaphore_create(rdev, &semaphore); in radeon_test_ring_sync()
326 radeon_semaphore_emit_wait(rdev, ringA->idx, semaphore); in radeon_test_ring_sync()
338 radeon_semaphore_emit_wait(rdev, ringA->idx, semaphore); in radeon_test_ring_sync()
357 radeon_semaphore_emit_signal(rdev, ringB->idx, semaphore); in radeon_test_ring_sync()
378 radeon_semaphore_emit_signal(rdev, ringB->idx, semaphore); in radeon_test_ring_sync()
388 radeon_semaphore_free(rdev, &semaphore, NULL); in radeon_test_ring_sync()
406 struct radeon_semaphore *semaphore = NULL; in radeon_test_ring_sync2() local
410 r = radeon_semaphore_create(rdev, &semaphore); in radeon_test_ring_sync2()
421 radeon_semaphore_emit_wait(rdev, ringA->idx, semaphore); in radeon_test_ring_sync2()
[all …]
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()
Duvd_v3_1.c42 struct radeon_semaphore *semaphore, in uvd_v3_1_semaphore_emit() argument
45 uint64_t addr = semaphore->gpu_addr; in uvd_v3_1_semaphore_emit()
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()
Dradeon_asic.h80 struct radeon_semaphore *semaphore,
326 struct radeon_semaphore *semaphore,
332 struct radeon_semaphore *semaphore,
792 struct radeon_semaphore *semaphore,
812 struct radeon_semaphore *semaphore,
946 struct radeon_semaphore *semaphore,
956 struct radeon_semaphore *semaphore,
962 struct radeon_semaphore *semaphore,
Dr600_dma.c315 struct radeon_semaphore *semaphore, in r600_dma_semaphore_ring_emit() argument
318 u64 addr = semaphore->gpu_addr; in r600_dma_semaphore_ring_emit()
Dradeon.h596 struct radeon_semaphore **semaphore);
598 struct radeon_semaphore *semaphore);
600 struct radeon_semaphore *semaphore);
602 struct radeon_semaphore **semaphore,
1743 struct radeon_semaphore *semaphore,
1831 struct radeon_semaphore *semaphore, bool emit_wait);
2746 …semaphore_ring_emit(rdev, r, cp, semaphore, emit_wait) (rdev)->asic->ring[(r)]->emit_semaphore((rd… argument
Dradeon_vce.c697 struct radeon_semaphore *semaphore, in radeon_vce_semaphore_emit() argument
700 uint64_t addr = semaphore->gpu_addr; in radeon_vce_semaphore_emit()
Duvd_v1_0.c466 struct radeon_semaphore *semaphore, in uvd_v1_0_semaphore_emit() argument
Dcik_sdma.c230 struct radeon_semaphore *semaphore, in cik_sdma_semaphore_ring_emit() argument
233 u64 addr = semaphore->gpu_addr; in cik_sdma_semaphore_ring_emit()
Dr600.c2925 struct radeon_semaphore *semaphore, in r600_semaphore_ring_emit() argument
2928 uint64_t addr = semaphore->gpu_addr; in r600_semaphore_ring_emit()
Dcik.c4035 struct radeon_semaphore *semaphore, in cik_semaphore_ring_emit() argument
4038 uint64_t addr = semaphore->gpu_addr; in cik_semaphore_ring_emit()
Dr100.c874 struct radeon_semaphore *semaphore, in r100_semaphore_ring_emit() argument
/linux-4.4.14/include/linux/
Dsemaphore.h16 struct semaphore { struct
30 struct semaphore name = __SEMAPHORE_INITIALIZER(name, 1) argument
32 static inline void sema_init(struct semaphore *sem, int val) in sema_init()
35 *sem = (struct semaphore) __SEMAPHORE_INITIALIZER(*sem, val); in sema_init()
39 extern void down(struct semaphore *sem);
40 extern int __must_check down_interruptible(struct semaphore *sem);
41 extern int __must_check down_killable(struct semaphore *sem);
42 extern int __must_check down_trylock(struct semaphore *sem);
43 extern int __must_check down_timeout(struct semaphore *sem, long jiffies);
44 extern void up(struct semaphore *sem);
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 */
Dhp_sdc.h71 struct semaphore *semaphore; /* Semaphore to sleep on. */ member
Dnetpoll.h39 struct semaphore dev_lock;
Dhid.h510 struct semaphore driver_lock; /* protects the current driver, except during input */
511 struct semaphore driver_input_lock; /* protects the current driver */
Dparport.h185 struct semaphore irq;
Dsyscalls.h43 struct semaphore;
/linux-4.4.14/kernel/locking/
Dsemaphore.c36 static noinline void __down(struct semaphore *sem);
37 static noinline int __down_interruptible(struct semaphore *sem);
38 static noinline int __down_killable(struct semaphore *sem);
39 static noinline int __down_timeout(struct semaphore *sem, long timeout);
40 static noinline void __up(struct semaphore *sem);
53 void down(struct semaphore *sem) in down()
75 int down_interruptible(struct semaphore *sem) in down_interruptible()
101 int down_killable(struct semaphore *sem) in down_killable()
130 int down_trylock(struct semaphore *sem) in down_trylock()
155 int down_timeout(struct semaphore *sem, long timeout) in down_timeout()
[all …]
DMakefile2 obj-y += mutex.o semaphore.o rwsem.o percpu-rwsem.o
/linux-4.4.14/drivers/staging/wilc1000/
Dwilc_wfi_netdevice.h136 struct semaphore SemHandleUpdateStats;
137 struct semaphore hSemScanReq;
169 struct semaphore txq_add_to_head_cs;
175 struct semaphore cfg_event;
176 struct semaphore sync_event;
177 struct semaphore txq_event;
179 struct semaphore txq_thread_started;
Dhost_interface.h307 struct semaphore gtOsCfgValuesSem;
308 struct semaphore hSemTestKeyBlock;
310 struct semaphore hSemTestDisconnectBlock;
311 struct semaphore hSemGetRSSI;
312 struct semaphore hSemGetLINKSPEED;
313 struct semaphore hSemGetCHNL;
314 struct semaphore hSemInactiveTime;
Dwilc_msgqueue.h23 struct semaphore hSem;
Dlinux_wlan.c95 static struct semaphore close_exit_sync;
344 error = down_timeout((struct semaphore *)vp, msecs_to_jiffies(timeout)); in linux_wlan_lock_timeout()
Dhost_interface.c240 static struct semaphore hif_sema_thread;
241 static struct semaphore hif_sema_driver;
242 static struct semaphore hif_sema_wait_response;
243 static struct semaphore hif_sema_deinit;
/linux-4.4.14/drivers/gpu/drm/i915/
Dintel_ringbuffer.c1245 u64 gtt_offset = signaller->semaphore.signal_ggtt[i]; in gen8_rcs_signal()
1286 u64 gtt_offset = signaller->semaphore.signal_ggtt[i]; in gen8_xcs_signal()
1324 u32 mbox_reg = signaller->semaphore.mbox.signal[i]; in gen6_signal()
1354 if (ring->semaphore.signal) in gen6_add_request()
1355 ret = ring->semaphore.signal(req, 4); in gen6_add_request()
1421 u32 wait_mbox = signaller->semaphore.mbox.wait[waiter->id]; in gen6_ring_sync()
2134 memset(ring->semaphore.sync_seqno, 0, sizeof(ring->semaphore.sync_seqno)); in intel_init_ring_buffer()
2683 ring->semaphore.sync_to = gen8_ring_sync; in intel_init_render_ring_buffer()
2684 ring->semaphore.signal = gen8_rcs_signal; in intel_init_render_ring_buffer()
2699 ring->semaphore.sync_to = gen6_ring_sync; in intel_init_render_ring_buffer()
[all …]
Dintel_ringbuffer.h70 ring->semaphore.signal_ggtt[RCS] = GEN8_SIGNAL_OFFSET(ring, RCS); \
71 ring->semaphore.signal_ggtt[VCS] = GEN8_SIGNAL_OFFSET(ring, VCS); \
72 ring->semaphore.signal_ggtt[BCS] = GEN8_SIGNAL_OFFSET(ring, BCS); \
73 ring->semaphore.signal_ggtt[VECS] = GEN8_SIGNAL_OFFSET(ring, VECS); \
74 ring->semaphore.signal_ggtt[VCS2] = GEN8_SIGNAL_OFFSET(ring, VCS2); \
75 ring->semaphore.signal_ggtt[ring->id] = MI_SEMAPHORE_SYNC_INVALID; \
262 } semaphore; member
Di915_gpu_error.c837 ering->semaphore_seqno[idx] = ring->semaphore.sync_seqno[idx]; in gen8_record_semaphore_state()
847 ering->semaphore_seqno[0] = ring->semaphore.sync_seqno[0]; in gen6_record_semaphore_state()
848 ering->semaphore_seqno[1] = ring->semaphore.sync_seqno[1]; in gen6_record_semaphore_state()
853 ering->semaphore_seqno[2] = ring->semaphore.sync_seqno[2]; in gen6_record_semaphore_state()
Di915_gem.c2483 for (j = 0; j < ARRAY_SIZE(ring->semaphore.sync_seqno); j++) in i915_gem_init_seqno()
2484 ring->semaphore.sync_seqno[j] = 0; in i915_gem_init_seqno()
3153 if (seqno <= from->semaphore.sync_seqno[idx]) in __i915_gem_object_sync()
3163 ret = to->semaphore.sync_to(*to_req, from, seqno); in __i915_gem_object_sync()
3171 from->semaphore.sync_seqno[idx] = in __i915_gem_object_sync()
Di915_irq.c2764 if (offset == signaller->semaphore.signal_ggtt[ring->id]) in semaphore_wait_to_signaller_ring()
2774 if (sync_bits == signaller->semaphore.mbox.wait[ring->id]) in semaphore_wait_to_signaller_ring()
Di915_debugfs.c3054 I915_READ(ring->semaphore.mbox.signal[j])); in i915_semaphore_status()
3061 seq_printf(m, " 0x%08x ", ring->semaphore.sync_seqno[j]); in i915_semaphore_status()
/linux-4.4.14/drivers/acpi/acpica/
Dexsystem.c65 acpi_status acpi_ex_system_wait_semaphore(acpi_semaphore semaphore, u16 timeout) in acpi_ex_system_wait_semaphore() argument
71 status = acpi_os_wait_semaphore(semaphore, 1, ACPI_DO_NOT_WAIT); in acpi_ex_system_wait_semaphore()
82 status = acpi_os_wait_semaphore(semaphore, 1, timeout); in acpi_ex_system_wait_semaphore()
Dacinterp.h323 acpi_ex_system_wait_semaphore(acpi_semaphore semaphore, u16 timeout);
/linux-4.4.14/drivers/input/serio/
Dhp_sdc_mlc.c196 if (priv->trans.act.semaphore != &mlc->csem) in hp_sdc_mlc_cts()
206 priv->trans.act.semaphore = &mlc->csem; in hp_sdc_mlc_cts()
220 priv->trans.act.semaphore = &mlc->osem; in hp_sdc_mlc_cts()
248 priv->trans.act.semaphore = &mlc->osem; in hp_sdc_mlc_out()
289 priv->trans.act.semaphore = &mlc->osem; in hp_sdc_mlc_out()
319 hp_sdc_mlc_priv.trans.act.semaphore = &mlc->osem; in hp_sdc_mlc_init()
Dhp_sdc.c201 if (curr->act.semaphore) in hp_sdc_take()
202 up(curr->act.semaphore); in hp_sdc_take()
331 if (curr->act.semaphore) in hp_sdc_tasklet()
332 up(curr->act.semaphore); in hp_sdc_tasklet()
569 up(curr->act.semaphore); in hp_sdc_put()
836 struct semaphore s_sync; in hp_sdc_init()
906 t_sync.act.semaphore = &s_sync; in hp_sdc_init()
1002 struct semaphore tq_init_sem; in hp_sdc_register()
1047 tq_init.act.semaphore = &tq_init_sem; in hp_sdc_register()
/linux-4.4.14/drivers/char/
Dsnsc.h37 struct semaphore sd_rbs; /* semaphore for read buffer */
38 struct semaphore sd_wbs; /* semaphore for write buffer */
/linux-4.4.14/drivers/staging/rtl8188eu/include/
Drtw_pwrctrl.h100 static inline void _init_pwrlock(struct semaphore *plock) in _init_pwrlock()
105 static inline void _enter_pwrlock(struct semaphore *plock) in _enter_pwrlock()
110 static inline void _exit_pwrlock(struct semaphore *plock) in _exit_pwrlock()
165 struct semaphore lock;
Drtw_xmit.h272 struct semaphore xmit_sema;
273 struct semaphore terminate_xmitthread_sema;
298 struct semaphore tx_retevt;/* all tx return event; */
Drtw_cmd.h47 struct semaphore cmd_queue_sema;
48 struct semaphore terminate_cmdthread_sema;
Dosdep_service.h86 u32 _rtw_down_sema(struct semaphore *sema);
/linux-4.4.14/fs/jffs2/
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-4.4.14/drivers/staging/rtl8712/
Drtl871x_pwrctrl.h90 static inline void _enter_pwrlock(struct semaphore *plock) in _enter_pwrlock()
96 struct semaphore lock;
Dosdep_intf.h39 struct semaphore io_retevt;
Dosdep_service.h63 static inline u32 _down_sema(struct semaphore *sema) in _down_sema()
Drtl871x_cmd.h53 struct semaphore cmd_queue_sema;
54 struct semaphore terminate_cmdthread_sema;
/linux-4.4.14/Documentation/
Dpercpu-rw-semaphore.txt4 Percpu rw semaphores is a new read-write semaphore design that is
8 cores take the lock for reading, the cache line containing the semaphore
D00-INDEX354 percpu-rw-semaphore.txt
355 - RCU based read-write semaphore optimized for locking for reading
Dkprobes.txt132 non-recursive and can never relinquish the CPU (e.g., via a semaphore
564 a semaphore).
Dmemory-barriers.txt2227 Consider, for example, the R/W semaphore slow path. Here a waiting process is
2228 queued on the semaphore, by virtue of it having a piece of its stack linked to
2229 the semaphore's list of waiting processes:
2249 (3) clear the task pointer to tell the waiter it has been given the semaphore;
2266 Once it has queued itself and dropped the semaphore lock, the waiter does not
2293 This could be dealt with using the semaphore lock, but then the down_xxx()
Dkernel-docs.txt356 Keywords: locks, locking, spinlock, semaphore, atomic, race
Ddevices.txt397 179 = /dev/xsvc High-speed shared-mem/semaphore service
/linux-4.4.14/drivers/md/bcache/
Dbcache.h299 struct semaphore sb_write_mutex;
334 struct semaphore in_flight;
494 struct semaphore sb_write_mutex;
600 struct semaphore moving_in_flight;
616 struct semaphore uuid_write_mutex;
Dbtree.h140 struct semaphore io_mutex;
/linux-4.4.14/Documentation/networking/
Dnetdevices.txt51 Synchronization: rtnl_lock() semaphore.
55 Synchronization: rtnl_lock() semaphore.
60 Synchronization: rtnl_lock() semaphore.
/linux-4.4.14/drivers/media/pci/ngene/
Dngene.h717 struct semaphore reslock;
769 struct semaphore cmd_mutex;
770 struct semaphore stream_mutex;
771 struct semaphore pll_mutex;
772 struct semaphore i2c_switch_mutex;
/linux-4.4.14/drivers/net/wireless/cw1200/
Dscan.h25 struct semaphore lock;
/linux-4.4.14/drivers/input/misc/
Dhp_sdc_rtc.c59 static struct semaphore i8042tregs;
86 struct semaphore tsem; in hp_sdc_rtc_do_read_bbrtc()
105 t.act.semaphore = &tsem; in hp_sdc_rtc_do_read_bbrtc()
177 t.act.semaphore = &i8042tregs; in hp_sdc_rtc_read_i8042timer()
/linux-4.4.14/drivers/staging/rtl8723au/include/
Drtw_xmit.h278 struct semaphore xmit_sema;
279 struct semaphore terminate_xmitthread_sema;
313 struct semaphore tx_retevt;/* all tx return event; */
Drtw_io.h108 struct semaphore sema;
Drtw_pwrctrl.h152 struct semaphore lock;
/linux-4.4.14/drivers/acpi/
Dosl.c1241 struct semaphore *sem = NULL; in acpi_os_create_semaphore()
1243 sem = acpi_os_allocate_zeroed(sizeof(struct semaphore)); in acpi_os_create_semaphore()
1266 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_delete_semaphore()
1286 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_wait_semaphore()
1330 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_signal_semaphore()
/linux-4.4.14/drivers/mmc/card/
Dqueue.h50 struct semaphore thread_sem;
/linux-4.4.14/drivers/gpu/host1x/
Dcdma.h70 struct semaphore sem; /* signalled when event occurs */
/linux-4.4.14/include/video/
Dudlfb.h29 struct semaphore limit_sem;
/linux-4.4.14/drivers/scsi/qla4xxx/
Dql4_dbg.c72 (uint8_t) offsetof(struct isp_reg, u1.isp4022.semaphore), in qla4xxx_dump_registers()
73 readw(&ha->reg->u1.isp4022.semaphore)); in qla4xxx_dump_registers()
Dql4_def.h937 &ha->reg->u1.isp4022.semaphore); in isp_semaphore()
Dql4_fw.h119 __le32 semaphore; member
/linux-4.4.14/Documentation/ia64/
Derr_inject.txt388 /* 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);
/linux-4.4.14/arch/powerpc/kernel/
Deeh_event.c38 static struct semaphore eeh_eventlist_sem;
/linux-4.4.14/drivers/staging/rtl8188eu/os_dep/
Dosdep_service.c66 u32 _rtw_down_sema(struct semaphore *sema) in _rtw_down_sema()
/linux-4.4.14/lib/
Dtest_rhashtable.c76 static struct semaphore prestart_sem;
77 static struct semaphore startup_sem = __SEMAPHORE_INITIALIZER(startup_sem, 0);
/linux-4.4.14/ipc/
Dsem.c2144 struct sem *semaphore = &sma->sem_base[i]; in exit_sem() local
2146 semaphore->semval += un->semadj[i]; in exit_sem()
2160 if (semaphore->semval < 0) in exit_sem()
2161 semaphore->semval = 0; in exit_sem()
2162 if (semaphore->semval > SEMVMX) in exit_sem()
2163 semaphore->semval = SEMVMX; in exit_sem()
2164 semaphore->sempid = task_tgid_vnr(current); in exit_sem()
/linux-4.4.14/drivers/scsi/megaraid/
Dmegaraid_ioctl.h288 struct semaphore kioc_semaphore;
Dmegaraid_sas.h1766 struct semaphore ioctl_sem;
/linux-4.4.14/drivers/net/irda/
Dsir-dev.h24 struct semaphore sem;
/linux-4.4.14/fs/affs/
Daffs.h45 struct semaphore i_link_lock; /* Protects internal inode access. */
46 struct semaphore i_ext_lock; /* Protects internal inode access. */
/linux-4.4.14/Documentation/namespaces/
Dcompatibility-list.txt19 object inside the kernel. E.g. semaphore with IPCID or
/linux-4.4.14/arch/powerpc/platforms/powernv/
Dopal-async.c32 static struct semaphore opal_async_sem;
/linux-4.4.14/drivers/staging/gdm72xx/
Dnetlink_k.c40 static struct semaphore netlink_mutex;
/linux-4.4.14/drivers/staging/gdm724x/
Dnetlink_k.c27 static struct semaphore netlink_mutex;
/linux-4.4.14/drivers/gpu/drm/udl/
Dudl_drv.h43 struct semaphore limit_sem;
/linux-4.4.14/Documentation/RCU/
DarrayRCU.txt52 to map from semaphore, message-queue, and shared-memory IDs to the data
55 ids->sem semaphore.
/linux-4.4.14/drivers/staging/rtl8192e/rtl8192e/
Drtl_core.h380 struct semaphore wx_sem;
381 struct semaphore rf_sem;
/linux-4.4.14/drivers/staging/unisys/include/
Dvisorbus.h147 struct semaphore visordriver_callback_lock;
/linux-4.4.14/drivers/infiniband/ulp/isert/
Dib_isert.h220 struct semaphore sem;
/linux-4.4.14/drivers/block/mtip32xx/
Dmtip32xx.h447 struct semaphore cmd_slot_unal;
/linux-4.4.14/arch/mips/include/asm/octeon/
Docteon.h338 extern struct semaphore octeon_bootbus_sem;
/linux-4.4.14/Documentation/devicetree/bindings/power/
Drenesas,sysc-rmobile.txt20 semaphore.
/linux-4.4.14/Documentation/serial/
Ddriver44 There are three locks. A per-port spinlock, a per-port tmpbuf semaphore,
45 and an overall semaphore.
61 The port_sem semaphore is used to protect against ports being added/
63 semaphore has been the 'mutex' member of the tty_port struct, and
Dtty.txt81 termios semaphore so allowed to sleep. Serialized
284 itself by a semaphore. May sleep.
/linux-4.4.14/drivers/infiniband/hw/mthca/
Dmthca_dev.h123 struct semaphore poll_sem;
124 struct semaphore event_sem;
/linux-4.4.14/net/9p/
Dtrans_rdma.c99 struct semaphore sq_sem;
101 struct semaphore rq_sem;
/linux-4.4.14/drivers/net/wireless/mwifiex/
Dmain.h624 struct semaphore async_sem;
973 struct semaphore *card_sem;
1365 int mwifiex_add_card(void *, struct semaphore *, struct mwifiex_if_ops *, u8);
1366 int mwifiex_remove_card(struct mwifiex_adapter *, struct semaphore *);
Dmain.c507 struct semaphore *sem = adapter->card_sem; in mwifiex_fw_dpc()
1315 mwifiex_add_card(void *card, struct semaphore *sem, in mwifiex_add_card()
1416 int mwifiex_remove_card(struct mwifiex_adapter *adapter, struct semaphore *sem) in mwifiex_remove_card()
Dusb.c27 static struct semaphore add_remove_card_sem;
Dsdio.c52 static struct semaphore add_remove_card_sem;
Dpcie.c38 static struct semaphore add_remove_card_sem;
/linux-4.4.14/drivers/staging/lustre/include/linux/lnet/
Dlib-types.h583 struct semaphore ln_rc_signal;
/linux-4.4.14/fs/xfs/
Dxfs_buf.h154 struct semaphore b_sema; /* semaphore for lockables */
/linux-4.4.14/include/linux/mlx5/
Ddriver.h265 struct semaphore sem;
266 struct semaphore pages_sem;
/linux-4.4.14/drivers/staging/rtl8192u/
Dr8192U.h882 struct semaphore wx_sem;
883 struct semaphore rf_sem; /* Used to lock rf write operation */
/linux-4.4.14/drivers/pci/hotplug/
Dibmphp_hpc.c106 static struct semaphore semOperations; // lock all operations and
108 static struct semaphore sem_exit; // make sure polling thread goes away
/linux-4.4.14/drivers/scsi/esas2r/
Desas2r.h948 struct semaphore fm_api_semaphore;
949 struct semaphore fs_api_semaphore;
950 struct semaphore nvram_semaphore;
/linux-4.4.14/Documentation/security/
Dkeys.txt1065 (2) The key's semaphore.
1067 The semaphore could be used to govern access to the payload and to control
1074 RCU must be used when the semaphore isn't already held; if the semaphore
1076 semaphore must still be used to serialise modifications to the key. The
1093 payload just dereferenced if the key's semaphore is not held.
1148 before a key is created (add key) or the key semaphore is taken (update or
1223 The key will have its semaphore write-locked before this method is called,
1289 data upon a key being revoked. The caller will have the key semaphore
1293 a deadlock against the key semaphore.
1334 This method will be called with the key's semaphore read-locked. This will
DSmack.txt498 IPC objects, message queues, semaphore sets, and memory segments exist in flat
/linux-4.4.14/drivers/usb/misc/
Dusblcd.c54 struct semaphore limit_sem; /* to stop writes at
Dftdi-elan.c173 struct semaphore sw_lock;
/linux-4.4.14/arch/arm/mach-vexpress/
Dspc.c109 struct semaphore sem;
/linux-4.4.14/drivers/staging/rtl8192e/
Drtllib.h1654 struct semaphore wx_sem;
1655 struct semaphore scan_sem;
1656 struct semaphore ips_sem;
/linux-4.4.14/Documentation/scsi/
DChangeLog.sym53c8xx_2117 semaphore in order to behave synchronously as required by the eh
DChangeLog.1992-19971753 option for no-multi lun scan. Add semaphore for possible problems
1834 * sr.h: Add needs_sector_size semaphore.
1884 * scsi.c: Add lockable semaphore for removable devices that can have
1895 to lock door for devices that do not have lockable semaphore set.
DChangeLog.lpfc390 waiting on a semaphore and "modprobe -r lpfc" is not always
392 semaphore for the interruptable sleep.
/linux-4.4.14/Documentation/locking/
Dlocktorture.txt58 o "rwsem_lock": read/write down() and up() semaphore pairs.
Dmutex-design.txt148 as large as 'struct semaphore' (24 bytes) and tied, along with rwsems,
/linux-4.4.14/drivers/usb/
Dusb-skeleton.c52 struct semaphore limit_sem; /* limiting the number of writes in progress */
/linux-4.4.14/drivers/scsi/qla2xxx/
Dqla_isr.c79 if (RD_REG_WORD(&reg->semaphore) & BIT_0) { in qla2100_intr_handler()
100 WRT_REG_WORD(&reg->semaphore, 0); in qla2100_intr_handler()
101 RD_REG_WORD(&reg->semaphore); in qla2100_intr_handler()
219 WRT_REG_WORD(&reg->semaphore, 0); in qla2300_intr_handler()
3187 WRT_REG_WORD(&reg->isp.semaphore, 0); in qla2x00_request_irqs()
Dqla_dbg.c421 WRT_REG_WORD(&reg->semaphore, 0); in qla2xxx_dump_ram()
1008 if (RD_REG_WORD(&reg->semaphore) & BIT_0) { in qla2100_fw_dump()
1015 WRT_REG_WORD(&reg->semaphore, 0); in qla2100_fw_dump()
Dqla_def.h450 uint16_t semaphore; /* Semaphore */ member
Dqla_init.c1078 WRT_REG_WORD(&reg->semaphore, 0); in qla2x00_reset_chip()
/linux-4.4.14/Documentation/filesystems/
Dfuse.txt370 | [acquire inode semaphore |
376 | | [acquire inode semaphore
Dxfs-delayed-logging-design.txt649 time will tell if using a read-write semaphore for exclusion will limit
Dvfs.txt391 This method is called with the directory inode semaphore held
Dcoda.txt373 object in NT and a semaphore in Windows 95.
/linux-4.4.14/arch/ia64/kernel/
Dsalinfo.c144 struct semaphore mutex;
/linux-4.4.14/drivers/infiniband/hw/mlx5/
Dmlx5_ib.h358 struct semaphore sem;
/linux-4.4.14/drivers/md/
Ddm-region-hash.c77 struct semaphore recovery_count;
/linux-4.4.14/include/target/
Dtarget_core_base.h792 struct semaphore caw_sem;
/linux-4.4.14/include/target/iscsi/
Discsi_target_core.h823 struct semaphore np_login_sem;
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Dmlx4.h625 struct semaphore poll_sem;
626 struct semaphore event_sem;
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Dlloop.c134 struct semaphore lo_sem;
/linux-4.4.14/drivers/net/hamradio/
Dmkiss.c85 struct semaphore dead_sem;
D6pack.c124 struct semaphore dead_sem;
/linux-4.4.14/drivers/staging/comedi/drivers/
Dvmk80xx.c155 struct semaphore limit_sem;
/linux-4.4.14/drivers/net/wireless/ath/ath6kl/
Dcore.h725 struct semaphore sem;
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/
Dcmd.c625 struct semaphore *sem; in cmd_work_handler()
1265 struct semaphore *sem; in mlx5_cmd_comp_handler()
/linux-4.4.14/drivers/scsi/aacraid/
Daacraid.h864 struct semaphore wait_sem; // this is used to wait for the next fib to arrive.
935 struct semaphore event_wait;
/linux-4.4.14/drivers/scsi/
Dqla1280.h152 uint16_t semaphore; /* Semaphore */ member
Dqla1280.c1467 WRT_REG_WORD(&reg->semaphore, 0); in qla1280_initialize_adapter()
3435 mailbox[0] = RD_REG_WORD_dmasync(&reg->semaphore); in qla1280_isr()
3456 WRT_REG_WORD(&reg->semaphore, 0); in qla1280_isr()
/linux-4.4.14/drivers/net/ppp/
Dppp_async.c73 struct semaphore dead_sem;
/linux-4.4.14/drivers/staging/rtl8192u/ieee80211/
Dieee80211.h1807 struct semaphore wx_sem;
1808 struct semaphore scan_sem;
/linux-4.4.14/drivers/video/fbdev/omap2/dss/
Drfbi.c114 struct semaphore bus_lock;
Ddsi.c335 struct semaphore bus_lock;
/linux-4.4.14/drivers/video/fbdev/omap/
Dhwa742.c116 struct semaphore req_sema;
/linux-4.4.14/drivers/infiniband/core/
Duser_mad.c90 struct semaphore sm_sem;
/linux-4.4.14/Documentation/usb/
Dpower-management.txt475 autoresume -- the device semaphore (udev->dev.sem) will be held when a
484 critical section). Holding the device semaphore will block all
/linux-4.4.14/drivers/crypto/ux500/hash/
Dhash_core.c83 struct semaphore device_allocation;
/linux-4.4.14/drivers/crypto/ux500/cryp/
Dcryp_core.c56 struct semaphore device_allocation;
/linux-4.4.14/drivers/video/fbdev/
Dsmscufx.c89 struct semaphore limit_sem;
/linux-4.4.14/Documentation/PCI/
Dpci-error-recovery.txt165 >>> *not* schedule or semaphore in this routine; the current powerpc
/linux-4.4.14/drivers/media/usb/em28xx/
Dem28xx-dvb.c94 struct semaphore pll_mutex;
/linux-4.4.14/drivers/net/wan/
Dcosa.c128 struct semaphore wsem;
/linux-4.4.14/Documentation/virtual/uml/
DUserModeLinux-HOWTO.txt2505 deadlocked on a semaphore or something similar. In this case, when
3131 #5 0x1006a744 in __down (sem=0x507d241c) at semaphore.c:71
3132 #6 0x1006aa10 in __down_failed () at semaphore.c:157
3197 #5 0x1006a744 in __down (sem=0x507d241c) at semaphore.c:71
3200 #6 0x1006aa10 in __down_failed () at semaphore.c:157
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x.h1806 struct semaphore stats_lock;
/linux-4.4.14/Documentation/sysctl/
Dkernel.txt419 object: message, semaphore or shared memory respectively.
/linux-4.4.14/drivers/media/dvb-core/
Ddvb_frontend.c107 struct semaphore sem;
/linux-4.4.14/drivers/i2c/busses/
DKconfig492 bool "Intel Baytrail I2C semaphore support"
/linux-4.4.14/fs/btrfs/
Dctree.h1800 struct semaphore uuid_tree_rescan_sem;
/linux-4.4.14/Documentation/filesystems/cifs/
DCHANGES602 creation and file open to such servers. Fix semaphore conflict which causes
/linux-4.4.14/drivers/scsi/aic7xxx/
Daic79xx.reg3792 * Counting semaphore to prevent new select-outs
/linux-4.4.14/drivers/net/ethernet/micrel/
Dksz884x.c1473 struct semaphore proc_sem;
/linux-4.4.14/drivers/net/wireless/
Dairo.c1206 struct semaphore sem;