Searched refs:ctx_lock (Results 1 – 9 of 9) sorted by relevance
/freebsd/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_intf.c | 62 spin_lock_irq(&priv->ctx_lock); in mlx4_add_device() 64 spin_unlock_irq(&priv->ctx_lock); in mlx4_add_device() 80 spin_lock_irq(&priv->ctx_lock); in mlx4_remove_device() 82 spin_unlock_irq(&priv->ctx_lock); in mlx4_remove_device() 158 spin_lock_irqsave(&priv->ctx_lock, flags); in mlx4_do_bond() 165 spin_unlock_irqrestore(&priv->ctx_lock, flags); in mlx4_do_bond() 171 spin_lock_irqsave(&priv->ctx_lock, flags); in mlx4_do_bond() 173 spin_unlock_irqrestore(&priv->ctx_lock, flags); in mlx4_do_bond() 189 spin_lock_irqsave(&priv->ctx_lock, flags); in mlx4_dispatch_event() 195 spin_unlock_irqrestore(&priv->ctx_lock, flags); in mlx4_dispatch_event() [all …]
|
H A D | mlx4.h | 863 spinlock_t ctx_lock; member
|
H A D | mlx4_main.c | 3221 spin_lock_init(&priv->ctx_lock); in mlx4_load_one()
|
/freebsd/sys/dev/ntb/ |
H A D | ntb.c | 55 struct rmlock ctx_lock; member 109 rm_init(&nc->ctx_lock, "ntb ctx"); in ntb_register_device() 161 rm_destroy(&nc->ctx_lock); in ntb_unregister_device() 228 rm_rlock(&nc->ctx_lock, &ctx_tracker); in ntb_link_event() 231 rm_runlock(&nc->ctx_lock, &ctx_tracker); in ntb_link_event() 243 rm_rlock(&nc->ctx_lock, &ctx_tracker); in ntb_db_event() 246 rm_runlock(&nc->ctx_lock, &ctx_tracker); in ntb_db_event() 331 rm_wlock(&nc->ctx_lock); in ntb_set_ctx() 333 rm_wunlock(&nc->ctx_lock); in ntb_set_ctx() 345 rm_wunlock(&nc->ctx_lock); in ntb_set_ctx() [all...] |
/freebsd/lib/libusb/ |
H A D | libusb10.h | 37 #define CTX_LOCK(ctx) pthread_mutex_lock(&(ctx)->ctx_lock) 38 #define CTX_TRYLOCK(ctx) pthread_mutex_trylock(&(ctx)->ctx_lock) 39 #define CTX_UNLOCK(ctx) pthread_mutex_unlock(&(ctx)->ctx_lock) 100 pthread_mutex_t ctx_lock; member
|
H A D | libusb10.c | 202 if (pthread_mutex_init(&ctx->ctx_lock, NULL) != 0) { in libusb_init_context() 207 pthread_mutex_destroy(&ctx->ctx_lock); in libusb_init_context() 212 pthread_mutex_destroy(&ctx->ctx_lock); in libusb_init_context() 218 pthread_mutex_destroy(&ctx->ctx_lock); in libusb_init_context() 225 pthread_mutex_destroy(&ctx->ctx_lock); in libusb_init_context() 238 pthread_mutex_destroy(&ctx->ctx_lock); in libusb_init_context() 293 pthread_mutex_destroy(&ctx->ctx_lock); in libusb_exit()
|
H A D | libusb10_io.c | 321 &ctx->ctx_lock); in libusb_wait_for_event() 342 &ctx->ctx_lock, &ts); in libusb_wait_for_event()
|
/freebsd/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_main.c | 806 spin_lock_irq(&priv->ctx_lock); in mlx5_add_device() 808 spin_unlock_irq(&priv->ctx_lock); in mlx5_add_device() 821 spin_lock_irq(&priv->ctx_lock); in mlx5_remove_device() 823 spin_unlock_irq(&priv->ctx_lock); in mlx5_remove_device() 895 spin_lock_irqsave(&priv->ctx_lock, flags); in mlx5_get_protocol_dev() 904 spin_unlock_irqrestore(&priv->ctx_lock, flags); in mlx5_get_protocol_dev() 1366 spin_lock_irqsave(&priv->ctx_lock, flags); in mlx5_core_event() 1372 spin_unlock_irqrestore(&priv->ctx_lock, flags); in mlx5_core_event() 1677 spin_lock_init(&priv->ctx_lock); in init_one()
|
/freebsd/sys/dev/mlx5/ |
H A D | driver.h | 630 spinlock_t ctx_lock; member
|