Home
last modified time | relevance | path

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

123

/freebsd-head/tools/test/stress2/misc/
HDsem_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)
HDsem_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)
HDsem.sh112 * Attempt to acquire the semaphore.
/freebsd-head/sys/contrib/vchiq/interface/vchiq_arm/
HDvchiq_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 …]
HDvchiq_util.h49 struct semaphore pop;
50 struct semaphore push;
HDvchiq_killable.h43 static inline int __must_check down_interruptible_killable(struct semaphore *sem) in down_interruptible_killable()
/freebsd-head/sys/dev/ocs_fc/
HDocs_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 …]
HDocs_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()
HDocs_mgmt.h53 ocs_sem_t semaphore; member
HDocs_xport.h149 ocs_sem_t semaphore; member
/freebsd-head/sys/contrib/vchiq/interface/compat/
HDvchi_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);
HDvchi_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-head/sys/compat/linuxkpi/common/include/linux/
HDsemaphore.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-head/sys/dev/imcsmb/
HDimcsmb_pci.c172 sc->semaphore = 0; in imcsmb_pci_attach()
255 atomic_store_rel_int(&sc->semaphore, 0); in imcsmb_pci_release_bus()
280 if (atomic_cmpset_acq_int(&sc->semaphore, 0, 1) == 0) { in imcsmb_pci_request_bus()
HDimcsmb_var.h71 volatile int semaphore; member
/freebsd-head/sys/contrib/vchiq/interface/vchi/message_drivers/
HDmessage.h80 struct semaphore sem;
101 struct semaphore *blocking;
/freebsd-head/tools/regression/sysvsem/
HDREADME4 This regression utility will test the SysV semaphore functionality
/freebsd-head/contrib/llvm-project/libcxx/include/
HDsemaphore14 semaphore synopsis
78 It is a typical Dijkstra semaphore algorithm over atomics, wait and notify
/freebsd-head/sys/contrib/device-tree/Bindings/firmware/
Dnvidia,tegra210-bpmp.txt18 2) base address and length to Tegra 'semaphore' hardware
/freebsd-head/sys/dev/hptmv/
HDmvSata.h259 MV_OS_SEMAPHORE semaphore; member
298 MV_OS_SEMAPHORE semaphore; member
/freebsd-head/sys/contrib/vchiq/interface/vchi/connections/
HDconnection.h317 struct semaphore sem;
/freebsd-head/sys/contrib/device-tree/Bindings/power/
Drenesas,sysc-rmobile.txt20 semaphore.
/freebsd-head/sys/dev/qat/qat_api/qat_utils/include/
HDqat_utils.h457 CpaStatus qatUtilsSemaphoreTryWait(struct sema **semaphore);
/freebsd-head/sys/dev/mthca/
HDmthca_dev.h125 struct semaphore poll_sem;
126 struct semaphore event_sem;
/freebsd-head/sys/dev/bnxt/bnxt_re/
HDqplib_rcfw.h301 struct semaphore rcfw_inflight;

123