Home
last modified time | relevance | path

Searched refs:dma_mtx (Results 1 – 6 of 6) sorted by relevance

/freebsd/sys/dev/dpaa2/
H A Ddpaa2_buf.c54 int size, struct mtx *dma_mtx) in dpaa2_buf_seed_pool() argument
67 if (dma_mtx != NULL) { in dpaa2_buf_seed_pool()
68 mtx_assert(dma_mtx, MA_OWNED); in dpaa2_buf_seed_pool()
100 error = dpaa2_buf_seed_rxb(dev, buf, size, dma_mtx); in dpaa2_buf_seed_pool()
129 struct mtx *dma_mtx) in dpaa2_buf_seed_rxb() argument
139 if (dma_mtx != NULL) { in dpaa2_buf_seed_rxb()
140 mtx_assert(dma_mtx, MA_OWNED); in dpaa2_buf_seed_rxb()
H A Ddpaa2_channel.c377 mtx_init(&ch->dma_mtx, "dpaa2_ch_dma_mtx", NULL, MTX_DEF); in dpaa2_chan_setup_dma()
440 mtx_destroy(&ch->dma_mtx); in dpaa2_chan_setup_dma()
542 mtx_assert(&ch->dma_mtx, MA_NOTOWNED); in dpaa2_chan_bp_task()
543 mtx_lock(&ch->dma_mtx); in dpaa2_chan_bp_task()
545 DPAA2_RX_BUF_SIZE, &ch->dma_mtx); in dpaa2_chan_bp_task()
546 mtx_unlock(&ch->dma_mtx); in dpaa2_chan_bp_task()
H A Ddpaa2_channel.h63 struct mtx dma_mtx; member
H A Ddpaa2_ni.c3140 mtx_assert(&bch->dma_mtx, MA_NOTOWNED); in dpaa2_ni_rx()
3141 mtx_lock(&bch->dma_mtx); in dpaa2_ni_rx()
3156 mtx_unlock(&bch->dma_mtx); in dpaa2_ni_rx()
3194 mtx_assert(&bch->dma_mtx, MA_NOTOWNED); in dpaa2_ni_rx()
3195 mtx_lock(&bch->dma_mtx); in dpaa2_ni_rx()
3197 DPAA2_RX_BUF_SIZE, &bch->dma_mtx); in dpaa2_ni_rx()
3198 mtx_unlock(&bch->dma_mtx); in dpaa2_ni_rx()
3298 mtx_assert(&bch->dma_mtx, MA_NOTOWNED); in dpaa2_ni_tx_conf()
3299 mtx_lock(&bch->dma_mtx); in dpaa2_ni_tx_conf()
3311 mtx_unlock(&bch->dma_mtx); in dpaa2_ni_tx_conf()
/freebsd/sys/dev/mlx5/
H A Ddriver.h319 struct mtx dma_mtx; member
320 #define MLX5_DMA_OWNED(dev) mtx_owned(&(dev)->cmd.dma_mtx)
321 #define MLX5_DMA_LOCK(dev) mtx_lock(&(dev)->cmd.dma_mtx)
322 #define MLX5_DMA_UNLOCK(dev) mtx_unlock(&(dev)->cmd.dma_mtx)
325 #define MLX5_DMA_WAIT(dev) cv_wait(&(dev)->cmd.dma_cv, &(dev)->cmd.dma_mtx)
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dmlx5_cmd.c1490 mtx_init(&cmd->dma_mtx, "MLX5-DMA-MTX", NULL, MTX_DEF); in alloc_cmd_page()
1528 mtx_destroy(&cmd->dma_mtx); in alloc_cmd_page()
1540 mtx_destroy(&cmd->dma_mtx); in free_cmd_page()