Lines Matching full:bch
3098 struct dpaa2_channel *bch = (struct dpaa2_channel *)buf->opt; in dpaa2_ni_rx() local
3099 struct dpaa2_ni_softc *sc = device_get_softc(bch->ni_dev); in dpaa2_ni_rx()
3112 KASSERT(bch != NULL, ("%s: buffer channel is NULL", __func__)); in dpaa2_ni_rx()
3140 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()
3192 bch = (struct dpaa2_channel *)buf->opt; 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()
3237 struct dpaa2_channel *bch = (struct dpaa2_channel *)buf->opt; in dpaa2_ni_rx_err() local
3238 struct dpaa2_ni_softc *sc = device_get_softc(bch->ni_dev); in dpaa2_ni_rx_err()
3248 KASSERT(bch != NULL, ("%s: buffer channel is NULL", __func__)); in dpaa2_ni_rx_err()
3282 struct dpaa2_channel *bch = tx->fq->chan; in dpaa2_ni_tx_conf() local
3291 KASSERT(bch != NULL, ("%s: buffer channel is NULL", __func__)); in dpaa2_ni_tx_conf()
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()