Home
last modified time | relevance | path

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

/linux-4.1.27/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,
790 struct radeon_semaphore *semaphore,
810 struct radeon_semaphore *semaphore,
944 struct radeon_semaphore *semaphore,
954 struct radeon_semaphore *semaphore,
960 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_vce.c679 struct radeon_semaphore *semaphore, in radeon_vce_semaphore_emit() argument
682 uint64_t addr = semaphore->gpu_addr; in radeon_vce_semaphore_emit()
Dradeon.h597 struct radeon_semaphore **semaphore);
599 struct radeon_semaphore *semaphore);
601 struct radeon_semaphore *semaphore);
603 struct radeon_semaphore **semaphore,
1742 struct radeon_semaphore *semaphore,
1830 struct radeon_semaphore *semaphore, bool emit_wait);
2907 …semaphore_ring_emit(rdev, r, cp, semaphore, emit_wait) (rdev)->asic->ring[(r)]->emit_semaphore((rd… argument
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.c2878 struct radeon_semaphore *semaphore, in r600_semaphore_ring_emit() argument
2881 uint64_t addr = semaphore->gpu_addr; in r600_semaphore_ring_emit()
Dcik.c4010 struct radeon_semaphore *semaphore, in cik_semaphore_ring_emit() argument
4013 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.1.27/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.h180 struct semaphore irq;
Dsyscalls.h43 struct semaphore;
/linux-4.1.27/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
/linux-4.1.27/drivers/gpu/drm/i915/
Dintel_ringbuffer.c1140 u64 gtt_offset = signaller->semaphore.signal_ggtt[i]; in gen8_rcs_signal()
1181 u64 gtt_offset = signaller->semaphore.signal_ggtt[i]; in gen8_xcs_signal()
1219 u32 mbox_reg = signaller->semaphore.mbox.signal[i]; in gen6_signal()
1250 if (ring->semaphore.signal) in gen6_add_request()
1251 ret = ring->semaphore.signal(ring, 4); in gen6_add_request()
1316 u32 wait_mbox = signaller->semaphore.mbox.wait[waiter->id]; in gen6_ring_sync()
1979 memset(ring->semaphore.sync_seqno, 0, sizeof(ring->semaphore.sync_seqno)); in intel_init_ring_buffer()
2528 ring->semaphore.sync_to = gen8_ring_sync; in intel_init_render_ring_buffer()
2529 ring->semaphore.signal = gen8_rcs_signal; in intel_init_render_ring_buffer()
2543 ring->semaphore.sync_to = gen6_ring_sync; in intel_init_render_ring_buffer()
[all …]
Dintel_ringbuffer.h68 ring->semaphore.signal_ggtt[RCS] = GEN8_SIGNAL_OFFSET(ring, RCS); \
69 ring->semaphore.signal_ggtt[VCS] = GEN8_SIGNAL_OFFSET(ring, VCS); \
70 ring->semaphore.signal_ggtt[BCS] = GEN8_SIGNAL_OFFSET(ring, BCS); \
71 ring->semaphore.signal_ggtt[VECS] = GEN8_SIGNAL_OFFSET(ring, VECS); \
72 ring->semaphore.signal_ggtt[VCS2] = GEN8_SIGNAL_OFFSET(ring, VCS2); \
73 ring->semaphore.signal_ggtt[ring->id] = MI_SEMAPHORE_SYNC_INVALID; \
229 } semaphore; member
Di915_gpu_error.c827 ering->semaphore_seqno[idx] = ring->semaphore.sync_seqno[idx]; in gen8_record_semaphore_state()
837 ering->semaphore_seqno[0] = ring->semaphore.sync_seqno[0]; in gen6_record_semaphore_state()
838 ering->semaphore_seqno[1] = ring->semaphore.sync_seqno[1]; in gen6_record_semaphore_state()
843 ering->semaphore_seqno[2] = ring->semaphore.sync_seqno[2]; in gen6_record_semaphore_state()
Di915_gem.c2277 for (j = 0; j < ARRAY_SIZE(ring->semaphore.sync_seqno); j++) in i915_gem_init_seqno()
2278 ring->semaphore.sync_seqno[j] = 0; in i915_gem_init_seqno()
2915 if (seqno <= from->semaphore.sync_seqno[idx]) in i915_gem_object_sync()
2923 ret = to->semaphore.sync_to(to, from, seqno); in i915_gem_object_sync()
2929 from->semaphore.sync_seqno[idx] = in i915_gem_object_sync()
Di915_irq.c2684 if (offset == signaller->semaphore.signal_ggtt[ring->id]) in semaphore_wait_to_signaller_ring()
2694 if (sync_bits == signaller->semaphore.mbox.wait[ring->id]) in semaphore_wait_to_signaller_ring()
Di915_debugfs.c2764 I915_READ(ring->semaphore.mbox.signal[j])); in i915_semaphore_status()
2771 seq_printf(m, " 0x%08x ", ring->semaphore.sync_seqno[j]); in i915_semaphore_status()
/linux-4.1.27/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.h301 acpi_ex_system_wait_semaphore(acpi_semaphore semaphore, u16 timeout);
/linux-4.1.27/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.1.27/drivers/char/
Dsnsc.h37 struct semaphore sd_rbs; /* semaphore for read buffer */
38 struct semaphore sd_wbs; /* semaphore for write buffer */
/linux-4.1.27/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.h134 u32 _rtw_down_sema(struct semaphore *sema);
/linux-4.1.27/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.1.27/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.h67 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.1.27/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.txt2272 Consider, for example, the R/W semaphore slow path. Here a waiting process is
2273 queued on the semaphore, by virtue of it having a piece of its stack linked to
2274 the semaphore's list of waiting processes:
2294 (3) clear the task pointer to tell the waiter it has been given the semaphore;
2311 Once it has queued itself and dropped the semaphore lock, the waiter does not
2338 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.1.27/drivers/md/bcache/
Dbcache.h314 struct semaphore sb_write_mutex;
349 struct semaphore in_flight;
511 struct semaphore sb_write_mutex;
617 struct semaphore moving_in_flight;
633 struct semaphore uuid_write_mutex;
Dbtree.h140 struct semaphore io_mutex;
/linux-4.1.27/Documentation/networking/
Dnetdevices.txt51 Synchronization: rtnl_lock() semaphore.
55 Synchronization: rtnl_lock() semaphore.
60 Synchronization: rtnl_lock() semaphore.
/linux-4.1.27/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.1.27/drivers/net/wireless/cw1200/
Dscan.h25 struct semaphore lock;
/linux-4.1.27/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.1.27/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_pwrctrl.h152 struct semaphore lock;
Drtw_io.h108 struct semaphore sema;
/linux-4.1.27/drivers/staging/comedi/drivers/
Dquatech_daqp_cs.c59 enum { semaphore, buffer } interrupt_mode; enumerator
170 devpriv->interrupt_mode = semaphore; in daqp_ai_cancel()
197 case semaphore: in daqp_interrupt()
314 devpriv->interrupt_mode = semaphore; in daqp_ai_insn_read()
Dni_usb6501.c169 struct semaphore sem;
Dusbduxfast.c164 struct semaphore sem;
Dvmk80xx.c154 struct semaphore limit_sem;
Ddt9812.c236 struct semaphore sem;
Dusbduxsigma.c175 struct semaphore sem;
Dusbdux.c213 struct semaphore sem;
/linux-4.1.27/drivers/acpi/
Dosl.c1252 struct semaphore *sem = NULL; in acpi_os_create_semaphore()
1254 sem = acpi_os_allocate_zeroed(sizeof(struct semaphore)); in acpi_os_create_semaphore()
1277 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_delete_semaphore()
1297 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_wait_semaphore()
1338 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_signal_semaphore()
/linux-4.1.27/drivers/mmc/card/
Dqueue.h49 struct semaphore thread_sem;
/linux-4.1.27/include/video/
Dudlfb.h29 struct semaphore limit_sem;
/linux-4.1.27/drivers/gpu/host1x/
Dcdma.h70 struct semaphore sem; /* signalled when event occurs */
/linux-4.1.27/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.h936 &ha->reg->u1.isp4022.semaphore); in isp_semaphore()
Dql4_fw.h119 __le32 semaphore; member
/linux-4.1.27/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.1.27/arch/powerpc/kernel/
Deeh_event.c38 static struct semaphore eeh_eventlist_sem;
/linux-4.1.27/drivers/staging/rtl8188eu/os_dep/
Dosdep_service.c66 u32 _rtw_down_sema(struct semaphore *sema) in _rtw_down_sema()
/linux-4.1.27/ipc/
Dsem.c2142 struct sem *semaphore = &sma->sem_base[i]; in exit_sem() local
2144 semaphore->semval += un->semadj[i]; in exit_sem()
2158 if (semaphore->semval < 0) in exit_sem()
2159 semaphore->semval = 0; in exit_sem()
2160 if (semaphore->semval > SEMVMX) in exit_sem()
2161 semaphore->semval = SEMVMX; in exit_sem()
2162 semaphore->sempid = task_tgid_vnr(current); in exit_sem()
/linux-4.1.27/drivers/scsi/megaraid/
Dmegaraid_ioctl.h288 struct semaphore kioc_semaphore;
Dmegaraid_sas.h1712 struct semaphore ioctl_sem;
/linux-4.1.27/drivers/net/irda/
Dsir-dev.h24 struct semaphore sem;
/linux-4.1.27/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.1.27/drivers/staging/gdm72xx/
Dnetlink_k.c40 static struct semaphore netlink_mutex;
/linux-4.1.27/drivers/staging/gdm724x/
Dnetlink_k.c27 static struct semaphore netlink_mutex;
/linux-4.1.27/Documentation/namespaces/
Dcompatibility-list.txt19 object inside the kernel. E.g. semaphore with IPCID or
/linux-4.1.27/arch/powerpc/platforms/powernv/
Dopal-async.c32 static struct semaphore opal_async_sem;
/linux-4.1.27/drivers/gpu/drm/udl/
Dudl_drv.h43 struct semaphore limit_sem;
/linux-4.1.27/Documentation/RCU/
DarrayRCU.txt40 semaphore, message-queue, and shared-memory IDs to the data structure
43 ids->sem semaphore.
/linux-4.1.27/drivers/infiniband/ulp/isert/
Dib_isert.h227 struct semaphore np_sem;
/linux-4.1.27/drivers/block/mtip32xx/
Dmtip32xx.h447 struct semaphore cmd_slot_unal;
/linux-4.1.27/Documentation/vm/
Dunevictable-lru.txt539 try_to_unmap_anon() attempts to acquire in read mode the mmap semaphore of
545 If the mmap semaphore cannot be acquired, we are not sure whether the page
559 mm_struct's mmap semaphore to mlock the page, returning SWAP_MLOCK if this
585 mmap semaphore of the associated mm_struct for read without blocking.
588 try_to_unmap_cluster() will retain the mmap semaphore for the scan;
591 Then, for each page in the cluster, if we're holding the mmap semaphore
624 attempt to acquire the associated mmap semaphore, mlock the page via
629 semaphore, it will return SWAP_AGAIN. This will allow shrink_page_list() to
642 successfully acquire the VMA's mmap semaphore for read and mlock the page.
671 acquire the VMA's mmap semaphore to test the flags and set PageMlocked.
/linux-4.1.27/drivers/staging/unisys/include/
Duisqueue.h138 struct semaphore interrupt_callback_lock;
/linux-4.1.27/arch/mips/include/asm/octeon/
Docteon.h338 extern struct semaphore octeon_bootbus_sem;
/linux-4.1.27/drivers/hv/
Dhv_fcopy.c65 struct semaphore read_sema;
/linux-4.1.27/Documentation/devicetree/bindings/power/
Drenesas,sysc-rmobile.txt20 semaphore.
/linux-4.1.27/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.txt72 termios semaphore so allowed to sleep. Serialized
269 itself by a semaphore. May sleep.
/linux-4.1.27/drivers/infiniband/hw/mthca/
Dmthca_dev.h123 struct semaphore poll_sem;
124 struct semaphore event_sem;
/linux-4.1.27/include/linux/mlx5/
Ddriver.h258 struct semaphore sem;
259 struct semaphore pages_sem;
/linux-4.1.27/net/9p/
Dtrans_rdma.c101 struct semaphore sq_sem;
103 struct semaphore rq_sem;
/linux-4.1.27/drivers/net/wireless/mwifiex/
Dmain.h572 struct semaphore async_sem;
897 struct semaphore *card_sem;
1257 int mwifiex_add_card(void *, struct semaphore *, struct mwifiex_if_ops *, u8);
1258 int mwifiex_remove_card(struct mwifiex_adapter *, struct semaphore *);
Dmain.c453 struct semaphore *sem = adapter->card_sem; in mwifiex_fw_dpc()
1102 mwifiex_add_card(void *card, struct semaphore *sem, in mwifiex_add_card()
1203 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.1.27/fs/xfs/
Dxfs_buf.h152 struct semaphore b_sema; /* semaphore for lockables */
/linux-4.1.27/drivers/staging/rtl8192e/rtl8192e/
Drtl_core.h601 struct semaphore wx_sem;
602 struct semaphore rf_sem;
/linux-4.1.27/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.1.27/drivers/scsi/esas2r/
Desas2r.h948 struct semaphore fm_api_semaphore;
949 struct semaphore fs_api_semaphore;
950 struct semaphore nvram_semaphore;
/linux-4.1.27/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.
1141 before a key is created (add key) or the key semaphore is taken (update or
1214 The key will have its semaphore write-locked before this method is called,
1280 data upon a key being revoked. The caller will have the key semaphore
1284 a deadlock against the key semaphore.
1325 This method will be called with the key's semaphore read-locked. This will
DSmack.txt463 IPC objects, message queues, semaphore sets, and memory segments exist in flat
/linux-4.1.27/drivers/usb/misc/
Dusblcd.c54 struct semaphore limit_sem; /* to stop writes at
Dftdi-elan.c173 struct semaphore sw_lock;
/linux-4.1.27/drivers/staging/rtl8192u/
Dr8192U.h915 struct semaphore wx_sem;
916 struct semaphore rf_sem; /* Used to lock rf write operation */
/linux-4.1.27/drivers/staging/lustre/include/linux/lnet/
Dlib-types.h733 struct semaphore ln_rc_signal;
/linux-4.1.27/arch/arm/mach-vexpress/
Dspc.c109 struct semaphore sem;
/linux-4.1.27/Documentation/locking/
Dlocktorture.txt55 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.1.27/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.1.27/drivers/usb/
Dusb-skeleton.c52 struct semaphore limit_sem; /* limiting the number of writes in progress */
/linux-4.1.27/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()
3161 WRT_REG_WORD(&reg->isp.semaphore, 0); in qla2x00_request_irqs()
Dqla_dbg.c421 WRT_REG_WORD(&reg->semaphore, 0); in qla2xxx_dump_ram()
1000 if (RD_REG_WORD(&reg->semaphore) & BIT_0) { in qla2100_fw_dump()
1007 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.1.27/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
Dcoda.txt373 object in NT and a semaphore in Windows 95.
Dvfs.txt391 This method is called with the directory inode semaphore held
/linux-4.1.27/arch/ia64/kernel/
Dsalinfo.c144 struct semaphore mutex;
/linux-4.1.27/drivers/staging/i2o/
Di2o.h477 struct semaphore lock;
/linux-4.1.27/drivers/infiniband/hw/mlx5/
Dmlx5_ib.h355 struct semaphore sem;
/linux-4.1.27/include/target/
Dtarget_core_base.h786 struct semaphore caw_sem;
/linux-4.1.27/drivers/md/
Ddm-region-hash.c77 struct semaphore recovery_count;
/linux-4.1.27/include/target/iscsi/
Discsi_target_core.h834 struct semaphore np_login_sem;
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Dmlx4.h614 struct semaphore poll_sem;
615 struct semaphore event_sem;
/linux-4.1.27/drivers/scsi/aacraid/
Daacraid.h859 struct semaphore wait_sem; // this is used to wait for the next fib to arrive.
930 struct semaphore event_wait;
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/
Dcmd.c485 struct semaphore *sem; in cmd_work_handler()
1108 struct semaphore *sem; in mlx5_cmd_comp_handler()
/linux-4.1.27/drivers/staging/rtl8192e/
Drtllib.h2221 struct semaphore wx_sem;
2222 struct semaphore scan_sem;
2223 struct semaphore ips_sem;
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
Dcore.h725 struct semaphore sem;
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
Dlloop.c134 struct semaphore lo_sem;
/linux-4.1.27/drivers/net/hamradio/
Dmkiss.c85 struct semaphore dead_sem;
D6pack.c124 struct semaphore dead_sem;
/linux-4.1.27/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.1.27/drivers/net/ppp/
Dppp_async.c73 struct semaphore dead_sem;
/linux-4.1.27/drivers/staging/rtl8192u/ieee80211/
Dieee80211.h1945 struct semaphore wx_sem;
1946 struct semaphore scan_sem;
/linux-4.1.27/drivers/video/fbdev/omap2/dss/
Drfbi.c113 struct semaphore bus_lock;
Ddsi.c334 struct semaphore bus_lock;
/linux-4.1.27/drivers/video/fbdev/omap/
Dhwa742.c116 struct semaphore req_sema;
/linux-4.1.27/drivers/infiniband/core/
Duser_mad.c90 struct semaphore sm_sem;
/linux-4.1.27/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.1.27/drivers/crypto/ux500/hash/
Dhash_core.c83 struct semaphore device_allocation;
/linux-4.1.27/drivers/media/usb/em28xx/
Dem28xx-dvb.c94 struct semaphore pll_mutex;
/linux-4.1.27/drivers/crypto/ux500/cryp/
Dcryp_core.c56 struct semaphore device_allocation;
/linux-4.1.27/Documentation/PCI/
Dpci-error-recovery.txt165 >>> *not* schedule or semaphore in this routine; the current powerpc
/linux-4.1.27/drivers/video/fbdev/
Dsmscufx.c89 struct semaphore limit_sem;
/linux-4.1.27/drivers/net/wan/
Dcosa.c128 struct semaphore wsem;
/linux-4.1.27/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.1.27/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x.h1777 struct semaphore stats_lock;
/linux-4.1.27/Documentation/sysctl/
Dkernel.txt407 object: message, semaphore or shared memory respectively.
/linux-4.1.27/drivers/staging/dgnc/
Ddgnc_tty.c47 struct semaphore name = __SEMAPHORE_INITIALIZER(name, 1)
/linux-4.1.27/drivers/media/dvb-core/
Ddvb_frontend.c107 struct semaphore sem;
/linux-4.1.27/drivers/i2c/busses/
DKconfig479 bool "Intel Baytrail I2C semaphore support"
/linux-4.1.27/fs/btrfs/
Dctree.h1774 struct semaphore uuid_tree_rescan_sem;
/linux-4.1.27/Documentation/filesystems/cifs/
DCHANGES602 creation and file open to such servers. Fix semaphore conflict which causes
/linux-4.1.27/drivers/scsi/aic7xxx/
Daic79xx.reg3792 * Counting semaphore to prevent new select-outs
/linux-4.1.27/drivers/net/ethernet/micrel/
Dksz884x.c1473 struct semaphore proc_sem;
/linux-4.1.27/drivers/net/wireless/
Dairo.c1206 struct semaphore sem;