Home
last modified time | relevance | path

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

123

/freebsd/tools/test/stress2/misc/
H A Dsem_wait.sh52 static sem_t *semaphore;
60 if (sem_wait(semaphore) == -1)
62 if (sem_post(semaphore) == -1)
76 if ((semaphore = mmap(NULL, len, PROT_READ | PROT_WRITE,
80 // initialize semaphore and set value to 1
81 if (sem_init(semaphore, 1, 1) == -1)
93 if (sem_wait(semaphore) == -1)
95 if (sem_post(semaphore) == -1)
H A Dsem_post.sh43 static sem_t semaphore;
50 if (sem_wait(&semaphore) == -1)
55 if (sem_post(&semaphore) == -1)
68 // initialize semaphore and set value to 1
69 if (sem_init(&semaphore, 0, 1) == -1)
81 if (sem_wait(&semaphore) == -1)
86 if (sem_post(&semaphore) == -1)
H A Dsem.sh112 * Attempt to acquire the semaphore.
/freebsd/sys/contrib/vchiq/interface/vchiq_arm/
H A Dvchiq_core.h268 struct semaphore *event;
312 struct semaphore remove_event;
313 struct semaphore bulk_remove_event;
342 struct semaphore quota_event;
416 struct semaphore connect;
432 struct semaphore trigger_event;
435 struct semaphore recycle_event;
438 struct semaphore sync_trigger_event;
441 struct semaphore sync_release_event;
487 struct semaphore slot_available_event;
[all …]
H A Dvchiq_util.h49 struct semaphore pop;
50 struct semaphore push;
H A Dvchiq_killable.h43 static inline int __must_check down_interruptible_killable(struct semaphore *sem) in down_interruptible_killable()
/freebsd/sys/dev/ocs_fc/
H A Docs_mgmt.c627 ocs_sem_init(&(result.semaphore), 0, "fw_write"); in ocs_mgmt_firmware_write()
661 if (ocs_sem_p(&(result.semaphore), OCS_SEM_FOREVER) != 0) { in ocs_mgmt_firmware_write()
715 ocs_sem_v(&(result->semaphore)); in ocs_mgmt_fw_write_cb()
719 ocs_sem_t semaphore; member
746 ocs_sem_v(&(result->semaphore)); in ocs_mgmt_sfp_cb()
756 ocs_sem_init(&(result->semaphore), 0, "get_sfp"); in ocs_mgmt_get_sfp()
763 if (ocs_sem_p(&(result->semaphore), 5 * 1000 * 1000) != 0) { in ocs_mgmt_get_sfp()
1412 ocs_sem_t semaphore; member
1607 ocs_sem_init(&cb_arg.semaphore, 0, "mgmt_linkcfg"); in set_linkcfg()
1620 if (ocs_sem_p(&cb_arg.semaphore, OCS_SEM_FOREVER)) { in set_linkcfg()
[all …]
H A Docs_xport.c1028 ocs_sem_init(&(result->stats.semaphore), 0, "fc_stats_reset"); in ocs_xport_status()
1038 if (ocs_sem_p(&(result->stats.semaphore), OCS_SEM_FOREVER) != 0) { in ocs_xport_status()
1052 if (ocs_sem_p(&(result->stats.semaphore), OCS_SEM_FOREVER) != 0) { in ocs_xport_status()
1085 ocs_sem_v(&(result->stats.semaphore)); in ocs_xport_link_stats_cb()
1098 ocs_sem_v(&(result->stats.semaphore)); in ocs_xport_host_stats_cb()
H A Docs_mgmt.h53 ocs_sem_t semaphore; member
H A Docs_xport.h149 ocs_sem_t semaphore; member
/freebsd/sys/contrib/vchiq/interface/compat/
H A Dvchi_bsd.h231 struct semaphore { struct
239 struct semaphore name; \ argument
246 void _sema_init(struct semaphore *s, int value);
247 void _sema_destroy(struct semaphore *s);
248 void down(struct semaphore *s);
249 int down_interruptible(struct semaphore *s);
250 int down_trylock(struct semaphore *s);
251 void up(struct semaphore *s);
H A Dvchi_bsd.c301 struct semaphore *s = arg; in sema_sysinit()
307 _sema_init(struct semaphore *s, int value) in _sema_init()
317 _sema_destroy(struct semaphore *s) in _sema_destroy()
324 down(struct semaphore *s) in down()
339 down_interruptible(struct semaphore *s) in down_interruptible()
368 down_trylock(struct semaphore *s) in down_trylock()
390 up(struct semaphore *s) in up()
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dsemaphore.h41 struct semaphore { struct
51 linux_sema_init(struct semaphore *sem, int val) in linux_sema_init() argument
59 init_MUTEX(struct semaphore *sem) in init_MUTEX()
/freebsd/sys/dev/imcsmb/
H A Dimcsmb_pci.c173 sc->semaphore = 0; in imcsmb_pci_attach()
261 * Invoked via smbus_callback() -> imcsmb_callback(); clear the semaphore, and
282 atomic_store_rel_int(&sc->semaphore, 0); in imcsmb_pci_release_bus()
286 * Invoked via smbus_callback() -> imcsmb_callback(); set the semaphore, and
304 /* We don't want to block. Use a simple test-and-set semaphore to in imcsmb_pci_request_bus()
307 if (atomic_cmpset_acq_int(&sc->semaphore, 0, 1) == 0) { in imcsmb_pci_request_bus()
H A Dimcsmb_var.h71 volatile int semaphore; member
/freebsd/contrib/llvm-project/libcxx/modules/std/
H A Dsemaphore.cppm
/freebsd/sys/contrib/vchiq/interface/vchi/message_drivers/
H A Dmessage.h80 struct semaphore sem;
101 struct semaphore *blocking;
/freebsd/tools/regression/sysvsem/
H A DREADME4 This regression utility will test the SysV semaphore functionality
/freebsd/contrib/llvm-project/libcxx/include/
H A Dsemaphore14 semaphore synopsis
78 It is a typical Dijkstra semaphore algorithm over atomics, wait and notify
/freebsd/sys/contrib/device-tree/Bindings/firmware/
H A Dnvidia,tegra210-bpmp.txt18 2) base address and length to Tegra 'semaphore' hardware
/freebsd/sys/dev/hptmv/
H A DmvSata.h259 MV_OS_SEMAPHORE semaphore; member
298 MV_OS_SEMAPHORE semaphore; member
/freebsd/sys/contrib/vchiq/interface/vchi/connections/
H A Dconnection.h317 struct semaphore sem;
/freebsd/sys/contrib/device-tree/Bindings/power/
H A Drenesas,sysc-rmobile.txt20 semaphore.
/freebsd/contrib/llvm-project/libcxx/modules/
H A Dstd.cppm
/freebsd/sys/dev/qat/qat_api/qat_utils/include/
H A Dqat_utils.h457 CpaStatus qatUtilsSemaphoreTryWait(struct sema **semaphore);

123