Lines Matching refs:mchandle
366 struct bna_mcam_handle *mchandle; in bna_rxf_mchandle_get() local
368 list_for_each_entry(mchandle, &rxf->mcast_handle_q, qe) in bna_rxf_mchandle_get()
369 if (mchandle->handle == handle) in bna_rxf_mchandle_get()
370 return mchandle; in bna_rxf_mchandle_get()
379 struct bna_mcam_handle *mchandle; in bna_rxf_mchandle_attach() local
382 mchandle = bna_rxf_mchandle_get(rxf, handle); in bna_rxf_mchandle_attach()
383 if (mchandle == NULL) { in bna_rxf_mchandle_attach()
384 mchandle = bna_mcam_mod_handle_get(&rxf->rx->bna->mcam_mod); in bna_rxf_mchandle_attach()
385 mchandle->handle = handle; in bna_rxf_mchandle_attach()
386 mchandle->refcnt = 0; in bna_rxf_mchandle_attach()
387 list_add_tail(&mchandle->qe, &rxf->mcast_handle_q); in bna_rxf_mchandle_attach()
389 mchandle->refcnt++; in bna_rxf_mchandle_attach()
390 mcmac->handle = mchandle; in bna_rxf_mchandle_attach()
397 struct bna_mcam_handle *mchandle; in bna_rxf_mcast_del() local
400 mchandle = mac->handle; in bna_rxf_mcast_del()
401 if (mchandle == NULL) in bna_rxf_mcast_del()
404 mchandle->refcnt--; in bna_rxf_mcast_del()
405 if (mchandle->refcnt == 0) { in bna_rxf_mcast_del()
407 bna_bfi_mcast_del_req(rxf, mchandle->handle); in bna_rxf_mcast_del()
410 list_del(&mchandle->qe); in bna_rxf_mcast_del()
411 bna_mcam_mod_handle_put(&rxf->rx->bna->mcam_mod, mchandle); in bna_rxf_mcast_del()