Home
last modified time | relevance | path

Searched refs:Giant (Results 1 – 25 of 54) sorted by relevance

123

/freebsd/sys/kern/
H A Dkern_condvar.c140 if (lock == &Giant.lock_object) in _cv_wait()
141 mtx_assert(&Giant, MA_OWNED); in _cv_wait()
145 if (lock != &Giant.lock_object) { in _cv_wait()
160 if (lock != &Giant.lock_object) { in _cv_wait()
183 KASSERT(lock != &Giant.lock_object, in _cv_wait_unlock()
184 ("cv_wait_unlock cannot be used with Giant")); in _cv_wait_unlock()
261 if (lock == &Giant.lock_object) in _cv_wait_sig()
262 mtx_assert(&Giant, MA_OWNED); in _cv_wait_sig()
267 if (lock != &Giant.lock_object) { in _cv_wait_sig()
282 if (lock != &Giant in _cv_wait_sig()
[all...]
H A Dkern_conf.c355 mtx_lock(&Giant); in giant_open()
357 mtx_unlock(&Giant); in giant_open()
371 mtx_lock(&Giant); in giant_fdopen()
373 mtx_unlock(&Giant); in giant_fdopen()
387 mtx_lock(&Giant); in giant_close()
389 mtx_unlock(&Giant); in giant_close()
407 mtx_lock(&Giant); in giant_strategy()
409 mtx_unlock(&Giant); in giant_strategy()
422 mtx_lock(&Giant); in giant_ioctl()
424 mtx_unlock(&Giant); in giant_ioctl()
[all …]
H A Dkern_module.c98 mtx_lock(&Giant); in module_shutdown()
103 mtx_unlock(&Giant); in module_shutdown()
113 mtx_lock(&Giant); in module_register_init()
145 mtx_unlock(&Giant); in module_register_init()
244 mtx_lock(&Giant); in module_quiesce()
246 mtx_unlock(&Giant); in module_quiesce()
257 mtx_lock(&Giant); in module_unload()
259 mtx_unlock(&Giant); in module_unload()
H A Dkern_synch.c148 KASSERT(sbt != 0 || mtx_owned(&Giant) || lock != NULL || in _sleep()
154 KASSERT(lock != NULL && lock != &Giant.lock_object, in _sleep()
155 ("PDROP requires a non-Giant lock")); in _sleep()
183 if (lock == &Giant.lock_object) in _sleep()
184 mtx_assert(&Giant, MA_OWNED); in _sleep()
186 if (lock != NULL && lock != &Giant.lock_object && in _sleep()
229 if (lock != NULL && lock != &Giant.lock_object && !(priority & PDROP)) { in _sleep()
403 KASSERT(lock != &Giant.lock_object,
404 ("%s: cannot use Giant as the interlock", __func__));
481 mtx_assert(&Giant, MA_NOTOWNE
[all...]
H A Dkern_sx.c86 WITNESS_SAVE_DECL(Giant) \
89 if (__predict_false(mtx_owned(&Giant))) { \
91 WITNESS_SAVE(&Giant.lock_object, Giant); \
92 while (mtx_owned(&Giant)) { \
94 mtx_unlock(&Giant); \
101 mtx_assert(&Giant, MA_NOTOWNED); \
103 mtx_lock(&Giant); \
104 WITNESS_RESTORE(&Giant.lock_object, Giant); \
H A Dkern_lock.c100 WITNESS_SAVE_DECL(Giant)
104 mtx_lock(&Giant); \
105 WITNESS_RESTORE(&Giant.lock_object, Giant); \
109 if (__predict_false(mtx_owned(&Giant))) { \
110 WITNESS_SAVE(&Giant.lock_object, Giant); \
111 while (mtx_owned(&Giant)) { \
113 mtx_unlock(&Giant); \
H A Dsubr_witness.c819 mtx_unlock(&Giant); in witness_startup()
820 mtx_assert(&Giant, MA_NOTOWNED); in witness_startup()
877 mtx_lock(&Giant); in witness_startup()
1312 lock == &Giant.lock_object) in witness_checkorder()
1321 lock1->li_lock == &Giant.lock_object) in witness_checkorder()
1340 lock == &Giant.lock_object) in witness_checkorder()
1408 && lock == &Giant.lock_object) in witness_checkorder()
1496 !(plock->li_lock == &Giant.lock_object && in witness_checkorder()
1819 lock1->li_lock == &Giant.lock_object) in witness_warn()
H A Dkern_thread.c941 mtx_assert(&Giant, MA_NOTOWNED); in thread_exit()
1044 mtx_assert(&Giant, MA_NOTOWNED); in thread_wait()
1232 mtx_assert(&Giant, MA_NOTOWNED); in thread_single()
1405 mtx_assert(&Giant, MA_NOTOWNED); in thread_suspend_check()
H A Dkern_timeout.c701 if (c_lock == &Giant.lock_object) { in softclock_call_cc()
1104 if (c->c_lock == &Giant.lock_object) in _callout_stop_safe()
1105 use_lock = mtx_owned(&Giant); in _callout_stop_safe()
1340 c->c_lock = &Giant.lock_object; in callout_init()
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_usb.c218 mtx_lock(&Giant); in usb_linux_probe()
225 mtx_unlock(&Giant); in usb_linux_probe()
242 mtx_lock(&Giant); in usb_linux_get_usb_driver()
244 mtx_unlock(&Giant); in usb_linux_get_usb_driver()
263 mtx_lock(&Giant); in usb_linux_attach()
269 mtx_unlock(&Giant); in usb_linux_attach()
290 mtx_lock(&Giant); in usb_linux_attach()
292 mtx_unlock(&Giant); in usb_linux_attach()
310 mtx_lock(&Giant); in usb_linux_detach()
317 mtx_unlock(&Giant); in usb_linux_detach()
[all …]
/freebsd/sys/dev/sound/pcm/
H A Dsound.h341 if (mtx_owned(&Giant) != 0 && snd_verbose > 3) \
345 if (!((x)->flags & SD_F_MPSAFE) && mtx_owned(&Giant) == 0) \
347 mtx_lock(&Giant); \
362 if (mtx_owned(&Giant) != 0 && snd_verbose > 3) \
368 if (mtx_owned(&Giant) == 0) \
372 mtx_unlock(&Giant); \
424 if (!((x)->flags & SD_F_MPSAFE) && mtx_owned(&Giant) == 0) \
426 mtx_lock(&Giant); \
440 mtx_assert(&Giant, MA_OWNED); \
442 mtx_unlock(&Giant); \
/freebsd/sys/sys/
H A Dmutex.h444 #define GIANT_REQUIRED mtx_assert_(&Giant, MA_OWNED, __FILE__, __LINE__)
487 extern struct mtx Giant;
501 WITNESS_SAVE_DECL(Giant); \
503 if (__predict_false(mtx_owned(&Giant))) { \
504 WITNESS_SAVE(&Giant.lock_object, Giant); \
505 for (_giantcnt = 0; mtx_owned(&Giant) && \
507 mtx_unlock(&Giant); \
511 mtx_assert(&Giant, MA_NOTOWNED); \
514 mtx_lock(&Giant); \
515 WITNESS_RESTORE(&Giant.lock_object, Giant); \
/freebsd/sys/dev/pci/
H A Dpci_iov.c145 mtx_lock(&Giant); in pci_iov_attach_method()
174 mtx_unlock(&Giant); in pci_iov_attach_method()
183 mtx_unlock(&Giant); in pci_iov_attach_method()
194 mtx_lock(&Giant); in pci_iov_detach_method()
199 mtx_unlock(&Giant); in pci_iov_detach_method()
204 mtx_unlock(&Giant); in pci_iov_detach_method()
210 mtx_unlock(&Giant); in pci_iov_detach_method()
223 mtx_unlock(&Giant); in pci_iov_detach_method()
691 mtx_lock(&Giant); in pci_iov_config()
700 mtx_unlock(&Giant); in pci_iov_config()
[all …]
/freebsd/sys/dev/hyperv/input/
H A Dhv_kbd.c79 #define HVKBD_LOCK() HVKBD_MTX_LOCK(&Giant)
80 #define HVKBD_UNLOCK() HVKBD_MTX_UNLOCK(&Giant)
81 #define HVKBD_LOCK_ASSERT() HVKBD_MTX_ASSERT(&Giant, MA_OWNED)
711 mtx_lock(&Giant); in hvkbd_ev_event()
713 mtx_unlock(&Giant); in hvkbd_ev_event()
814 if (evdev_register_mtx(evdev, &Giant)) in hv_kbd_drv_attach()
/freebsd/sys/dev/vt/
H A Dvt_core.c631 mtx_lock(&Giant); in vt_window_switch()
639 mtx_unlock(&Giant); in vt_window_switch()
1023 mtx_lock(&Giant); in vt_kbdevent()
1026 mtx_unlock(&Giant); in vt_kbdevent()
2624 mtx_lock(&Giant); in vtterm_ioctl()
2627 mtx_unlock(&Giant); in vtterm_ioctl()
2642 mtx_lock(&Giant); in vtterm_ioctl()
2645 mtx_unlock(&Giant); in vtterm_ioctl()
2667 mtx_lock(&Giant); in vtterm_ioctl()
2670 mtx_unlock(&Giant); in vtterm_ioctl()
[all …]
/freebsd/sys/dev/usb/input/
H A Dukbd.c234 #define UKBD_LOCK() USB_MTX_LOCK(&Giant)
235 #define UKBD_UNLOCK() USB_MTX_UNLOCK(&Giant)
236 #define UKBD_LOCK_ASSERT() USB_MTX_ASSERT(&Giant, MA_OWNED)
1154 usb_callout_init_mtx(&sc->sc_callout, &Giant, 0); in ukbd_attach()
1159 UKBD_N_TRANSFER, sc, &Giant); in ukbd_attach()
1171 1, sc, &Giant); in ukbd_attach()
1286 if (evdev_register_mtx(evdev, &Giant)) in ukbd_attach()
1408 mtx_lock(&Giant); in ukbd_ev_event()
1410 mtx_unlock(&Giant); in ukbd_ev_event()
1960 if (!mtx_owned(&Giant) && !USB_IN_POLLING_MODE_FUNC()) in ukbd_ioctl()
/freebsd/stand/kshim/
H A Dbsd_kernel.c261 struct mtx Giant; variable
266 mtx_init(&Giant, "Giant", NULL, MTX_DEF | MTX_RECURSE); in mtx_system_init()
490 mtx = &Giant; in callout_init_mtx()
1116 int old_giant = Giant.owned; in usb_idle()
1123 Giant.owned = 0; in usb_idle()
1129 Giant.owned = old_giant; in usb_idle()
H A Dbsd_kernel.h311 extern struct mtx Giant;
486 #define bus_topo_lock(...) mtx_lock(&Giant)
487 #define bus_topo_unlock(...) mtx_unlock(&Giant)
/freebsd/sys/contrib/device-tree/Bindings/clock/
H A Defm32-clock.txt1 * Clock bindings for Energy Micro efm32 Giant Gecko's Clock Management Unit
/freebsd/sys/contrib/device-tree/Bindings/timer/
H A Denergymicro,efm32-timer.txt3 The efm32 Giant Gecko SoCs come with four 16 bit timers. Two counters can be
/freebsd/sys/nfs/
H A Dnfs_nfssvc.c81 KASSERT(!mtx_owned(&Giant), ("nfssvc(): called with Giant")); in sys_nfssvc()
/freebsd/sys/dev/hid/
H A Dhkbd.c232 mtx_lock(&Giant); \
236 mtx_unlock(&Giant); \
240 mtx_assert(&Giant, MA_OWNED); \
1109 mtx_lock(&Giant); in hkbd_ev_event()
1111 mtx_unlock(&Giant); in hkbd_ev_event()
1679 if (!mtx_owned(&Giant) && !HID_IN_POLLING_MODE()) in hkbd_ioctl()
/freebsd/sys/dev/xen/pcifront/
H A Dpcifront.c276 mtx_lock(&Giant); in pcifront_connect()
278 mtx_unlock(&Giant); in pcifront_connect()
/freebsd/sys/dev/evdev/
H A Devdev_private.h170 #define SYSTEM_CONSOLE_LOCK &Giant
/freebsd/sys/dev/dcons/
H A Ddcons_crom.c211 /*lockarg*/&Giant, in dcons_crom_attach()

123