Home
last modified time | relevance | path

Searched refs:ctx_lock (Results 1 – 9 of 9) sorted by relevance

/freebsd/sys/dev/mlx4/mlx4_core/
H A Dmlx4_intf.c62 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 Dmlx4.h863 spinlock_t ctx_lock; member
H A Dmlx4_main.c3221 spin_lock_init(&priv->ctx_lock); in mlx4_load_one()
/freebsd/sys/dev/ntb/
H A Dntb.c55 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 Dlibusb10.h37 #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 Dlibusb10.c202 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 Dlibusb10_io.c321 &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 Dmlx5_main.c806 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 Ddriver.h630 spinlock_t ctx_lock; member