Searched refs:semaphore (Results 1 - 25 of 158) sorted by relevance

1234567

/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/linux/
H A Dsemaphore.h7 * Please see kernel/semaphore.c for documentation of these functions
16 struct semaphore { struct
30 struct semaphore name = __SEMAPHORE_INITIALIZER(name, 1)
33 struct semaphore name = __SEMAPHORE_INITIALIZER(name, 1)
35 static inline void sema_init(struct semaphore *sem, int val)
38 *sem = (struct semaphore) __SEMAPHORE_INITIALIZER(*sem, val);
39 lockdep_init_map(&sem->lock.dep_map, "semaphore->lock", &__key, 0);
45 extern void down(struct semaphore *sem);
46 extern int __must_check down_interruptible(struct semaphore *sem);
47 extern int __must_check down_killable(struct semaphore *se
[all...]
H A Dhil_mlc.h37 #include <linux/semaphore.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 Dsmb_fs_sb.h61 struct semaphore sem;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/kernel/
H A Dsemaphore.c8 * A counting semaphore may be acquired 'n' times before sleeping.
16 * The spinlock controls access to the other members of the semaphore.
19 * parts of the kernel expect to be able to use down() on a semaphore in
25 * semaphore. If it's zero, there may be tasks waiting on the wait_list.
32 #include <linux/semaphore.h>
36 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 jiffies);
40 static noinline void __up(struct semaphore *se
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/char/
H A Dsnsc.h25 #include <linux/semaphore.h>
38 struct semaphore sd_rbs; /* semaphore for read buffer */
39 struct semaphore sd_wbs; /* semaphore for write buffer */
H A Dtty_mutex.c7 #include <linux/semaphore.h>
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openvpn-2.3.1/src/openvpn/
H A Dwin32.h224 struct semaphore struct
231 void semaphore_clear (struct semaphore *s);
232 void semaphore_open (struct semaphore *s, const char *name);
233 bool semaphore_lock (struct semaphore *s, int timeout_milliseconds);
234 void semaphore_release (struct semaphore *s);
235 void semaphore_close (struct semaphore *s);
238 * Special global semaphore used to protect network
245 extern struct semaphore netcmd_semaphore;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/acpi/acpica/
H A Dexsystem.c61 * DESCRIPTION: Implements a semaphore wait with a check to see if the
62 * semaphore is available immediately. If it is not, the
66 acpi_status acpi_ex_system_wait_semaphore(acpi_semaphore semaphore, u16 timeout) argument
72 status = acpi_os_wait_semaphore(semaphore, 1, ACPI_DO_NOT_WAIT);
83 status = acpi_os_wait_semaphore(semaphore, 1, timeout);
300 * We are going to simply delete the existing semaphore and
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mmc/card/
H A Dqueue.h10 struct semaphore thread_sem;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/rt2860/
H A Drtmp_os.h73 struct semaphore taskSema;
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/docs/latex/wx/
H A Dsemaphor.tex2 %% Name: semaphore.tex
16 specified during the semaphore creation. When the counter is strictly greater
19 \helpref{Wait}{wxsemaphorewait} block and only return when the semaphore
25 example, when modeling a hotel reservation system a semaphore with the counter
27 is reserved, the semaphore should be acquired by calling
46 there is no upper limit. If maxcount is $1$, the semaphore behaves exactly as a
49 {\it initialcount} is the initial value of the semaphore which must be between
62 Increments the semaphore count and signals one of the waiting
102 Wait indefinitely until the semaphore count becomes strictly positive
132 \twocolitem{{\bf wxSEMA\_TIMEOUT}}{Timeout occurred without receiving semaphore
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/compat/
H A Dw32pthreads.h132 HANDLE semaphore; member in struct:win32_cond_t
150 win32_cond->semaphore = CreateSemaphore(NULL, 0, 0x7fffffff, NULL);
151 if (!win32_cond->semaphore)
170 CloseHandle(win32_cond->semaphore);
199 ReleaseSemaphore(win32_cond->semaphore, win32_cond->waiter_count, NULL);
227 WaitForSingleObject(win32_cond->semaphore, INFINITE);
258 ReleaseSemaphore(win32_cond->semaphore, 1, NULL);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libav-0.8.8/libavcodec/
H A Dw32pthreads.h121 HANDLE semaphore; member in struct:__anon2041
139 win32_cond->semaphore = CreateSemaphore(NULL, 0, 0x7fffffff, NULL);
140 if (!win32_cond->semaphore)
158 CloseHandle(win32_cond->semaphore);
187 ReleaseSemaphore(win32_cond->semaphore, win32_cond->waiter_count, NULL);
215 WaitForSingleObject(win32_cond->semaphore, INFINITE);
246 ReleaseSemaphore(win32_cond->semaphore, 1, NULL);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/cxt1e1/
H A Dpmcc4_private.h23 #include <linux/semaphore.h>
132 struct semaphore sr_sem_busy; /* service request exclusion
133 * semaphore */
134 struct semaphore sr_sem_wait; /* service request handshake
135 * semaphore */
177 struct semaphore sem_wdbusy;/* watchdog exclusion semaphore */
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/msm/
H A Dmddihost_e.c36 extern struct semaphore mddi_host_mutex;
H A Dmsm_fb.h47 #include <linux/semaphore.h>
109 struct semaphore sem;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/input/serio/
H A Dhp_sdc_mlc.c43 #include <linux/semaphore.h>
150 /* Try to down the semaphore */
196 if (priv->trans.act.semaphore != &mlc->csem)
206 priv->trans.act.semaphore = &mlc->csem;
220 priv->trans.act.semaphore = &mlc->osem;
231 /* Try to down the semaphore -- it should be up. */
248 priv->trans.act.semaphore = &mlc->osem;
289 priv->trans.act.semaphore = &mlc->osem;
318 hp_sdc_mlc_priv.trans.act.semaphore = &mlc->osem;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/arm/plat-stmp3xxx/include/mach/
H A Ddma.h90 void stmp3xxx_dma_continue(int channel, u32 semaphore);
92 u32 semaphore);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/spectra/
H A Dffsport.h31 #include <linux/semaphore.h>
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/lib/
H A Dkernel_lock.c10 #include <linux/semaphore.h>
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/acpi/
H A Dosl.c45 #include <linux/semaphore.h>
803 struct semaphore *sem = NULL;
805 sem = acpi_os_allocate(sizeof(struct semaphore));
808 memset(sem, 0, sizeof(struct semaphore));
814 ACPI_DEBUG_PRINT((ACPI_DB_MUTEX, "Creating semaphore[%p|%d].\n",
829 struct semaphore *sem = (struct semaphore *)handle;
834 ACPI_DEBUG_PRINT((ACPI_DB_MUTEX, "Deleting semaphore[%p].\n", handle));
849 struct semaphore *sem = (struct semaphore *)handl
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/megaraid/
H A Dmegaraid_ioctl.h21 #include <linux/semaphore.h>
288 struct semaphore kioc_semaphore;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/linux/mfd/
H A Ducb1x00.h15 #include <linux/semaphore.h>
117 struct semaphore adc_sem;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/tidspbridge/include/dspbridge/
H A Dhost_os.h22 #include <linux/semaphore.h>
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/udlfb/
H A Dudlfb.h28 struct semaphore limit_sem;

Completed in 123 milliseconds

1234567