Home
last modified time | relevance | path

Searched refs:mutex (Results 1 – 25 of 29) sorted by relevance

12

/dpdk/drivers/net/nfp/nfpcore/
H A Dnfp_mutex.c128 for (mutex = cpp->mutex_cache; mutex; mutex = mutex->next) { in nfp_cpp_mutex_alloc()
129 if (mutex->target == target && mutex->address == address) in nfp_cpp_mutex_alloc()
133 if (mutex) { in nfp_cpp_mutex_alloc()
154 mutex = calloc(sizeof(*mutex), 1); in nfp_cpp_mutex_alloc()
155 if (!mutex) in nfp_cpp_mutex_alloc()
174 return mutex; in nfp_cpp_mutex_alloc()
239 mutex->next->prev = mutex->prev; in nfp_cpp_mutex_free()
241 mutex->prev->next = mutex->next; in nfp_cpp_mutex_free()
244 if (mutex->cpp && mutex == mutex->cpp->mutex_cache) in nfp_cpp_mutex_free()
245 mutex->cpp->mutex_cache = mutex->next; in nfp_cpp_mutex_free()
[all …]
H A Dnfp_resource.c43 } mutex; member
64 struct nfp_cpp_mutex *mutex; member
95 if (entry.mutex.key != key) in nfp_cpp_resource_find()
99 res->mutex = in nfp_cpp_resource_find()
126 err = nfp_cpp_mutex_trylock(res->mutex); in nfp_resource_try_acquire()
135 nfp_cpp_mutex_free(res->mutex); in nfp_resource_try_acquire()
215 nfp_cpp_mutex_unlock(res->mutex); in nfp_resource_release()
216 nfp_cpp_mutex_free(res->mutex); in nfp_resource_release()
H A Dnfp_cpp.h710 struct nfp_cpp *nfp_cpp_mutex_cpp(struct nfp_cpp_mutex *mutex);
718 uint32_t nfp_cpp_mutex_key(struct nfp_cpp_mutex *mutex);
729 uint16_t nfp_cpp_mutex_owner(struct nfp_cpp_mutex *mutex);
737 int nfp_cpp_mutex_target(struct nfp_cpp_mutex *mutex);
745 uint64_t nfp_cpp_mutex_address(struct nfp_cpp_mutex *mutex);
752 void nfp_cpp_mutex_free(struct nfp_cpp_mutex *mutex);
761 int nfp_cpp_mutex_lock(struct nfp_cpp_mutex *mutex);
770 int nfp_cpp_mutex_unlock(struct nfp_cpp_mutex *mutex);
779 int nfp_cpp_mutex_trylock(struct nfp_cpp_mutex *mutex);
/dpdk/lib/vhost/
H A Dsocket.c76 pthread_mutex_t mutex; member
94 .mutex = PTHREAD_MUTEX_INITIALIZER,
423 pthread_mutex_t mutex; member
583 pthread_mutex_lock(&vhost_user.mutex); in rte_vhost_driver_attach_vdpa_device()
597 pthread_mutex_lock(&vhost_user.mutex); in rte_vhost_driver_detach_vdpa_device()
612 pthread_mutex_lock(&vhost_user.mutex); in rte_vhost_driver_get_vdpa_device()
626 pthread_mutex_lock(&vhost_user.mutex); in rte_vhost_driver_disable_features()
646 pthread_mutex_lock(&vhost_user.mutex); in rte_vhost_driver_enable_features()
669 pthread_mutex_lock(&vhost_user.mutex); in rte_vhost_driver_set_features()
693 pthread_mutex_lock(&vhost_user.mutex); in rte_vhost_driver_get_features()
[all …]
/dpdk/lib/eal/windows/include/
H A Dpthread.h160 pthread_mutex_init(pthread_mutex_t *mutex, in pthread_mutex_init() argument
163 InitializeCriticalSection(mutex); in pthread_mutex_init()
168 pthread_mutex_lock(pthread_mutex_t *mutex) in pthread_mutex_lock() argument
170 EnterCriticalSection(mutex); in pthread_mutex_lock()
175 pthread_mutex_unlock(pthread_mutex_t *mutex) in pthread_mutex_unlock() argument
177 LeaveCriticalSection(mutex); in pthread_mutex_unlock()
182 pthread_mutex_destroy(pthread_mutex_t *mutex) in pthread_mutex_destroy() argument
184 DeleteCriticalSection(mutex); in pthread_mutex_destroy()
/dpdk/drivers/net/e1000/base/
H A De1000_osdep.h52 #define E1000_MUTEX_INIT(mutex) (*(mutex) = 0) argument
53 #define E1000_MUTEX_LOCK(mutex) (*(mutex) = 1) argument
54 #define E1000_MUTEX_UNLOCK(mutex) (*(mutex) = 0) argument
/dpdk/drivers/net/igc/base/
H A Digc_osdep.h62 #define IGC_MUTEX_INIT(mutex) (*(mutex) = 0) argument
63 #define IGC_MUTEX_LOCK(mutex) (*(mutex) = 1) argument
64 #define IGC_MUTEX_UNLOCK(mutex) (*(mutex) = 0) argument
/dpdk/drivers/raw/ifpga/base/
H A Dopae_spi_transaction.c470 pthread_mutex_lock(dev->mutex); in spi_transaction_read()
474 pthread_mutex_unlock(dev->mutex); in spi_transaction_read()
484 pthread_mutex_lock(dev->mutex); in spi_transaction_write()
488 pthread_mutex_unlock(dev->mutex); in spi_transaction_write()
515 if (dev->mutex) { in spi_transaction_init()
517 spi_tran_dev->mutex = dev->mutex; in spi_transaction_init()
520 spi_tran_dev->mutex = &spi_tran_dev->lock; in spi_transaction_init()
H A Dopae_spi.c300 if (spi_dev->mutex) in altera_spi_init()
301 pthread_mutex_lock(spi_dev->mutex); in altera_spi_init()
307 if (spi_dev->mutex) in altera_spi_init()
308 pthread_mutex_unlock(spi_dev->mutex); in altera_spi_init()
H A Dopae_i2c.c33 pthread_mutex_lock(dev->mutex); in i2c_read()
63 pthread_mutex_unlock(dev->mutex); in i2c_read()
75 pthread_mutex_lock(dev->mutex); in i2c_write()
103 pthread_mutex_unlock(dev->mutex); in i2c_write()
499 dev->mutex = &dev->lock; in altera_i2c_probe()
H A Difpga_fme.c956 spi->mutex = &sd->spi_mutex; in init_spi_share_data()
960 spi->mutex = NULL; in init_spi_share_data()
1137 if (spi_master->mutex) in fme_nios_spi_init()
1138 pthread_mutex_lock(spi_master->mutex); in fme_nios_spi_init()
1143 if (spi_master->mutex) in fme_nios_spi_init()
1144 pthread_mutex_unlock(spi_master->mutex); in fme_nios_spi_init()
1154 if (spi_master->mutex) in fme_nios_spi_init()
1155 pthread_mutex_unlock(spi_master->mutex); in fme_nios_spi_init()
1253 i2c_dev->mutex = &sd->i2c_mutex; in init_i2c_mutex()
1256 i2c_dev->mutex = &i2c_dev->lock; in init_i2c_mutex()
H A Dopae_spi.h81 pthread_mutex_t *mutex; /* to be passed to spi_transaction_dev */ member
110 pthread_mutex_t *mutex; /* multi-process mutex from adapter */ member
H A Dopae_i2c.h97 pthread_mutex_t *mutex; /* multi-process mutex from adapter */ member
H A Dopae_hw_api.c312 static void opae_mutex_init(pthread_mutex_t *mutex) in opae_mutex_init() argument
321 pthread_mutex_init(mutex, &mattr); in opae_mutex_init()
/dpdk/drivers/net/virtio/virtio_user/
H A Dvirtio_user_dev.c146 pthread_mutex_lock(&dev->mutex); in virtio_user_dev_set_features()
164 pthread_mutex_unlock(&dev->mutex); in virtio_user_dev_set_features()
188 pthread_mutex_lock(&dev->mutex); in virtio_user_start_device()
209 pthread_mutex_unlock(&dev->mutex); in virtio_user_start_device()
214 pthread_mutex_unlock(&dev->mutex); in virtio_user_start_device()
229 pthread_mutex_lock(&dev->mutex); in virtio_user_stop_device()
252 pthread_mutex_unlock(&dev->mutex); in virtio_user_stop_device()
256 pthread_mutex_unlock(&dev->mutex); in virtio_user_stop_device()
460 pthread_mutex_lock(&dev->mutex); in virtio_user_mem_event_cb()
877 pthread_mutex_lock(&dev->mutex); in virtio_user_dev_set_status()
[all …]
H A Dvirtio_user_dev.h58 pthread_mutex_t mutex; member
/dpdk/drivers/net/ena/base/
H A Dena_plat_dpdk.h148 pthread_mutex_t mutex; member
155 pthread_mutex_init(&_we->mutex, NULL); \
172 pthread_mutex_lock(&_we->mutex); \
175 &_we->mutex, &wait); \
185 pthread_mutex_unlock(&_we->mutex); \
190 pthread_mutex_lock(&_we->mutex); \
193 pthread_mutex_unlock(&_we->mutex); \
/dpdk/kernel/linux/kni/
H A Dkni_dev.h55 struct mutex sync_lock;
H A Dkni_misc.c58 struct mutex kni_kthread_lock;
/dpdk/drivers/net/qede/base/
H A Decore_vf.h29 osal_mutex_t mutex; member
H A Decore_cxt.h321 osal_mutex_t mutex; member
H A Decore_vf.c31 OSAL_MUTEX_ACQUIRE(&p_iov->mutex); in ecore_vf_pf_prep()
63 OSAL_MUTEX_RELEASE(&p_hwfn->vf_iov_info->mutex); in ecore_vf_pf_req_end()
212 OSAL_MUTEX_DEALLOC(&p_iov->mutex); in _ecore_vf_pf_release()
622 if (OSAL_MUTEX_ALLOC(p_hwfn, &p_iov->mutex)) { in ecore_vf_hw_prepare()
627 OSAL_MUTEX_INIT(&p_iov->mutex); in ecore_vf_hw_prepare()
H A Decore_cxt.c1127 if (OSAL_MUTEX_ALLOC(p_hwfn, &p_mngr->mutex)) { in ecore_cxt_mngr_alloc()
1132 OSAL_MUTEX_INIT(&p_mngr->mutex); in ecore_cxt_mngr_alloc()
1196 OSAL_MUTEX_DEALLOC(&p_hwfn->p_cxt_mngr->mutex); in ecore_cxt_mngr_free()
2041 OSAL_MUTEX_ACQUIRE(&p_hwfn->p_cxt_mngr->mutex); in ecore_cxt_dynamic_ilt_alloc()
2087 OSAL_MUTEX_RELEASE(&p_hwfn->p_cxt_mngr->mutex); in ecore_cxt_dynamic_ilt_alloc()
/dpdk/drivers/net/mlx5/
H A Dmlx5_txpp.c912 claim_zero(pthread_mutex_lock(&sh->txpp.mutex)); in mlx5_txpp_start()
926 claim_zero(pthread_mutex_unlock(&sh->txpp.mutex)); in mlx5_txpp_start()
950 claim_zero(pthread_mutex_lock(&sh->txpp.mutex)); in mlx5_txpp_stop()
953 claim_zero(pthread_mutex_unlock(&sh->txpp.mutex)); in mlx5_txpp_stop()
958 claim_zero(pthread_mutex_unlock(&sh->txpp.mutex)); in mlx5_txpp_stop()
/dpdk/app/test/
H A Dtest_link_bonding.c209 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
1197 pthread_mutex_lock(&mutex); in test_bonding_lsc_event_callback()
1201 pthread_mutex_unlock(&mutex); in test_bonding_lsc_event_callback()
1226 pthread_mutex_lock(&mutex); in lsc_timeout()
1228 retval = pthread_cond_timedwait(&cvar, &mutex, &ts); in lsc_timeout()
1230 pthread_mutex_unlock(&mutex); in lsc_timeout()

12