Lines Matching refs:mcast
168 static u16 nix_alloc_mce_list(struct nix_mcast *mcast, int count) in nix_alloc_mce_list() argument
172 if (!mcast) in nix_alloc_mce_list()
175 idx = mcast->next_free_mce; in nix_alloc_mce_list()
176 mcast->next_free_mce += count; in nix_alloc_mce_list()
926 if (!nix_hw->mcast.mce_ctx || in rvu_nix_blk_aq_enq_inst()
3036 struct nix_mcast *mcast; in nix_update_mce_list() local
3058 mcast = &nix_hw->mcast; in nix_update_mce_list()
3059 mutex_lock(&mcast->mce_lock); in nix_update_mce_list()
3090 mutex_unlock(&mcast->mce_lock); in nix_update_mce_list()
3165 struct nix_mcast *mcast = &nix_hw->mcast; in nix_setup_mce_tables() local
3187 pfvf->bcast_mce_idx = nix_alloc_mce_list(mcast, numvfs + 1); in nix_setup_mce_tables()
3191 pfvf->mcast_mce_idx = nix_alloc_mce_list(mcast, numvfs + 1); in nix_setup_mce_tables()
3195 pfvf->promisc_mce_idx = nix_alloc_mce_list(mcast, numvfs + 1); in nix_setup_mce_tables()
3236 struct nix_mcast *mcast = &nix_hw->mcast; in nix_setup_mcast() local
3244 err = qmem_alloc(rvu->dev, &mcast->mce_ctx, in nix_setup_mcast()
3250 (u64)mcast->mce_ctx->iova); in nix_setup_mcast()
3258 err = qmem_alloc(rvu->dev, &mcast->mcast_buf, in nix_setup_mcast()
3264 (u64)mcast->mcast_buf->iova); in nix_setup_mcast()
3267 mcast->replay_pkind = rvu_alloc_rsrc(&hw->pkind.rsrc); in nix_setup_mcast()
3270 BIT_ULL(63) | (mcast->replay_pkind << 24) | in nix_setup_mcast()
3273 mutex_init(&mcast->mce_lock); in nix_setup_mcast()
4655 struct nix_mcast *mcast; in rvu_nix_block_freemem() local
4680 mcast = &nix_hw->mcast; in rvu_nix_block_freemem()
4681 qmem_free(rvu->dev, mcast->mce_ctx); in rvu_nix_block_freemem()
4682 qmem_free(rvu->dev, mcast->mcast_buf); in rvu_nix_block_freemem()
4683 mutex_destroy(&mcast->mce_lock); in rvu_nix_block_freemem()