/freebsd/tools/test/stress2/misc/ |
H A D | sem_wait.sh | 52 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 D | sem_post.sh | 43 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 D | sem.sh | 112 * Attempt to acquire the semaphore.
|
/freebsd/sys/contrib/vchiq/interface/vchiq_arm/ |
H A D | vchiq_core.h | 268 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 D | vchiq_util.h | 49 struct semaphore pop; 50 struct semaphore push;
|
H A D | vchiq_killable.h | 43 static inline int __must_check down_interruptible_killable(struct semaphore *sem) in down_interruptible_killable()
|
/freebsd/sys/dev/ocs_fc/ |
H A D | ocs_mgmt.c | 627 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 D | ocs_xport.c | 1028 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 D | ocs_mgmt.h | 53 ocs_sem_t semaphore; member
|
H A D | ocs_xport.h | 149 ocs_sem_t semaphore; member
|
/freebsd/sys/contrib/vchiq/interface/compat/ |
H A D | vchi_bsd.h | 231 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 D | vchi_bsd.c | 301 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 D | semaphore.h | 41 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 D | imcsmb_pci.c | 173 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 D | imcsmb_var.h | 71 volatile int semaphore; member
|
/freebsd/contrib/llvm-project/libcxx/modules/std/ |
H A D | semaphore.cppm |
|
/freebsd/sys/contrib/vchiq/interface/vchi/message_drivers/ |
H A D | message.h | 80 struct semaphore sem; 101 struct semaphore *blocking;
|
/freebsd/tools/regression/sysvsem/ |
H A D | README | 4 This regression utility will test the SysV semaphore functionality
|
/freebsd/contrib/llvm-project/libcxx/include/ |
H A D | semaphore | 14 semaphore synopsis 78 It is a typical Dijkstra semaphore algorithm over atomics, wait and notify
|
/freebsd/sys/contrib/device-tree/Bindings/firmware/ |
H A D | nvidia,tegra210-bpmp.txt | 18 2) base address and length to Tegra 'semaphore' hardware
|
/freebsd/sys/dev/hptmv/ |
H A D | mvSata.h | 259 MV_OS_SEMAPHORE semaphore; member 298 MV_OS_SEMAPHORE semaphore; member
|
/freebsd/sys/contrib/vchiq/interface/vchi/connections/ |
H A D | connection.h | 317 struct semaphore sem;
|
/freebsd/sys/contrib/device-tree/Bindings/power/ |
H A D | renesas,sysc-rmobile.txt | 20 semaphore.
|
/freebsd/contrib/llvm-project/libcxx/modules/ |
H A D | std.cppm |
|
/freebsd/sys/dev/qat/qat_api/qat_utils/include/ |
H A D | qat_utils.h | 457 CpaStatus qatUtilsSemaphoreTryWait(struct sema **semaphore);
|