Home
last modified time | relevance | path

Searched refs:lock (Results 1 – 12 of 12) sorted by relevance

/illumos-kvm-cmd/
H A Dqemu-thread.c32 err = pthread_mutex_init(&mutex->lock, NULL); in qemu_mutex_init()
41 err = pthread_mutex_destroy(&mutex->lock); in qemu_mutex_destroy()
50 err = pthread_mutex_lock(&mutex->lock); in qemu_mutex_lock()
57 return pthread_mutex_trylock(&mutex->lock); in qemu_mutex_trylock()
78 err = pthread_mutex_timedlock(&mutex->lock, &ts); in qemu_mutex_timedlock()
88 err = pthread_mutex_unlock(&mutex->lock); in qemu_mutex_unlock()
133 err = pthread_cond_wait(&cond->cond, &mutex->lock); in qemu_cond_wait()
146 err = pthread_cond_timedwait(&cond->cond, &mutex->lock, &ts); in qemu_cond_timedwait()
H A Dqemu-lock.h218 static inline void spin_lock(spinlock_t *lock) in spin_lock() argument
220 while (testandset(lock)); in spin_lock()
223 static inline void spin_unlock(spinlock_t *lock) in spin_unlock() argument
225 resetlock(lock); in spin_unlock()
228 static inline void spin_lock(spinlock_t *lock) in spin_lock() argument
232 static inline void spin_unlock(spinlock_t *lock) in spin_unlock() argument
H A Dposix-aio-compat.c322 mutex_lock(&lock); in aio_thread()
336 mutex_unlock(&lock); in aio_thread()
355 mutex_lock(&lock); in aio_thread()
358 mutex_unlock(&lock); in aio_thread()
365 mutex_unlock(&lock); in aio_thread()
390 mutex_lock(&lock); in qemu_paio_submit()
394 mutex_unlock(&lock); in qemu_paio_submit()
402 mutex_lock(&lock); in qemu_paio_return()
404 mutex_unlock(&lock); in qemu_paio_return()
538 mutex_lock(&lock); in paio_cancel()
[all …]
H A Dqemu-thread.h7 pthread_mutex_t lock; member
/illumos-kvm-cmd/hw/
H A Dm48t59.c67 uint8_t lock; member
343 if (addr >= 0x20 && addr <= 0x2F && (NVRAM->lock & 1)) in m48t59_write()
345 if (addr >= 0x30 && addr <= 0x3F && (NVRAM->lock & 2)) in m48t59_write()
446 if (addr >= 0x20 && addr <= 0x2F && (NVRAM->lock & 1)) in m48t59_read()
448 if (addr >= 0x30 && addr <= 0x3F && (NVRAM->lock & 2)) in m48t59_read()
469 void m48t59_toggle_lock (void *opaque, int lock) in m48t59_toggle_lock() argument
473 NVRAM->lock ^= 1 << lock; in m48t59_toggle_lock()
592 qemu_put_8s(f, &s->lock); in m48t59_save()
604 qemu_get_8s(f, &s->lock); in m48t59_load()
614 NVRAM->lock = 0; in m48t59_reset_common()
H A Dsd.c541 int erase, lock, clr_pwd, set_pwd, pwd_len; in sd_lock_command() local
543 lock = sd->data[0] & 0x04; in sd_lock_command()
554 set_pwd || clr_pwd || lock || sd->wp_switch || in sd_lock_command()
583 (clr_pwd && (set_pwd || lock)) || in sd_lock_command()
584 (lock && !sd->pwd_len && !set_pwd) || in sd_lock_command()
586 (((sd->card_status & CARD_IS_LOCKED) && lock) || in sd_lock_command()
587 (!(sd->card_status & CARD_IS_LOCKED) && !lock)))) { in sd_lock_command()
601 if (lock) in sd_lock_command()
H A Dnvram.h36 void m48t59_toggle_lock (void *private, int lock);
H A Dfdc.c508 uint8_t lock; member
696 VMSTATE_UINT8(lock, FDCtrl),
1429 fdctrl->lock = (fdctrl->fifo[0] & 0x80) ? 1 : 0; in fdctrl_handle_lock()
1430 fdctrl->fifo[0] = fdctrl->lock << 4; in fdctrl_handle_lock()
1431 fdctrl_set_fifo(fdctrl, 1, fdctrl->lock); in fdctrl_handle_lock()
1452 fdctrl->fifo[7] = (fdctrl->lock << 7) | in fdctrl_handle_dumpreg()
1487 fdctrl->lock = fdctrl->fifo[10] >> 7; in fdctrl_handle_restore()
1515 fdctrl->fifo[9] = (fdctrl->lock << 7) | in fdctrl_handle_save()
/illumos-kvm-cmd/pc-bios/optionrom/
H A Dvapic.S184 lock cmpxchg %ebx, vapic(%edx) ; fixup
280 lock cmpxchg %ebx, vapic ; fixup
/illumos-kvm-cmd/target-alpha/
H A Dop_helper.c1268 env->lock = t1; in helper_ldl_l_raw()
1274 env->lock = t1; in helper_ldq_l_raw()
1312 if (t1 == env->lock) { in helper_stl_c_raw()
1318 env->lock = 1; in helper_stl_c_raw()
1327 if (t1 == env->lock) { in helper_stq_c_raw()
1333 env->lock = 1; in helper_stq_c_raw()
/illumos-kvm-cmd/target-i386/
H A Dhelper.h6 DEF_HELPER_0(lock, void)
/illumos-kvm-cmd/ui/
H A Dcocoa.m491 … if (keycode == 58 || keycode == 69) { // emulate caps lock and num lock keydown and keyup

Completed in 44 milliseconds