Lines Matching refs:bna

190 	bfa_msgq_cmd_post(&rxf->rx->bna->msgq, &rxf->msgq_cmd);  in bna_bfi_ucast_req()
206 bfa_msgq_cmd_post(&rxf->rx->bna->msgq, &rxf->msgq_cmd); in bna_bfi_mcast_add_req()
222 bfa_msgq_cmd_post(&rxf->rx->bna->msgq, &rxf->msgq_cmd); in bna_bfi_mcast_del_req()
237 bfa_msgq_cmd_post(&rxf->rx->bna->msgq, &rxf->msgq_cmd); in bna_bfi_mcast_filter_req()
252 bfa_msgq_cmd_post(&rxf->rx->bna->msgq, &rxf->msgq_cmd); in bna_bfi_rx_promisc_req()
277 bfa_msgq_cmd_post(&rxf->rx->bna->msgq, &rxf->msgq_cmd); in bna_bfi_rx_vlan_filter_set()
292 bfa_msgq_cmd_post(&rxf->rx->bna->msgq, &rxf->msgq_cmd); in bna_bfi_vlan_strip_enable()
308 bfa_msgq_cmd_post(&rxf->rx->bna->msgq, &rxf->msgq_cmd); in bna_bfi_rit_cfg()
328 bfa_msgq_cmd_post(&rxf->rx->bna->msgq, &rxf->msgq_cmd); in bna_bfi_rss_cfg()
343 bfa_msgq_cmd_post(&rxf->rx->bna->msgq, &rxf->msgq_cmd); in bna_bfi_rss_enable()
384 mchandle = bna_mcam_mod_handle_get(&rxf->rx->bna->mcam_mod); in bna_rxf_mchandle_attach()
411 bna_mcam_mod_handle_put(&rxf->rx->bna->mcam_mod, mchandle); in bna_rxf_mcast_del()
429 list_move_tail(&mac->qe, bna_mcam_mod_del_q(rxf->rx->bna)); in bna_rxf_mcast_cfg_apply()
477 list_move_tail(&mac->qe, bna_mcam_mod_del_q(rxf->rx->bna)); in bna_rxf_mcast_cfg_reset()
661 list_move_tail(&mac->qe, bna_ucam_mod_free_q(rxf->rx->bna)); in bna_rxf_uninit()
666 bna_ucam_mod_free_q(rxf->rx->bna)); in bna_rxf_uninit()
673 list_move_tail(&mac->qe, bna_mcam_mod_free_q(rxf->rx->bna)); in bna_rxf_uninit()
678 if (rxf->rx->bna->promisc_rid == rxf->rx->rid) in bna_rxf_uninit()
679 rxf->rx->bna->promisc_rid = BFI_INVALID_RID; in bna_rxf_uninit()
680 if (rxf->rx->bna->default_mode_rid == rxf->rx->rid) in bna_rxf_uninit()
681 rxf->rx->bna->default_mode_rid = BFI_INVALID_RID; in bna_rxf_uninit()
730 bna_cam_mod_mac_get(bna_ucam_mod_free_q(rxf->rx->bna)); in bna_rx_ucast_set()
738 rxf->cam_fltr_cbarg = rx->bna->bnad; in bna_rx_ucast_set()
756 cbfn(rx->bna->bnad, rx); in bna_rx_mcast_add()
760 mac = bna_cam_mod_mac_get(bna_mcam_mod_free_q(rxf->rx->bna)); in bna_rx_mcast_add()
767 rxf->cam_fltr_cbarg = rx->bna->bnad; in bna_rx_mcast_add()
777 struct bna_ucam_mod *ucam_mod = &rx->bna->ucam_mod; in bna_rx_ucast_listset()
835 struct bna_mcam_mod *mcam_mod = &rx->bna->mcam_mod; in bna_rx_mcast_listset()
903 list_move_tail(&mac->qe, bna_mcam_mod_free_q(rxf->rx->bna)); in bna_rx_mcast_delall()
911 del_mac = bna_cam_mod_mac_get(bna_mcam_mod_del_q(rxf->rx->bna)); in bna_rx_mcast_delall()
915 list_add_tail(&mac->qe, bna_mcam_mod_free_q(rxf->rx->bna)); in bna_rx_mcast_delall()
963 list_move_tail(&mac->qe, bna_ucam_mod_del_q(rxf->rx->bna)); in bna_rxf_ucast_cfg_apply()
1001 bna_ucam_mod_del_q(rxf->rx->bna)); in bna_rxf_ucast_cfg_reset()
1006 bna_ucam_mod_del_q(rxf->rx->bna)); in bna_rxf_ucast_cfg_reset()
1039 struct bna *bna = rxf->rx->bna; in bna_rxf_promisc_cfg_apply() local
1056 bna->promisc_rid = BFI_INVALID_RID; in bna_rxf_promisc_cfg_apply()
1067 struct bna *bna = rxf->rx->bna; in bna_rxf_promisc_cfg_reset() local
1075 bna->promisc_rid = BFI_INVALID_RID; in bna_rxf_promisc_cfg_reset()
1153 struct bna *bna = rxf->rx->bna; in bna_rxf_promisc_enable() local
1169 bna->promisc_rid = rxf->rx->rid; in bna_rxf_promisc_enable()
1179 struct bna *bna = rxf->rx->bna; in bna_rxf_promisc_disable() local
1191 bna->promisc_rid = BFI_INVALID_RID; in bna_rxf_promisc_disable()
1286 (rx)->rx_stall_cbfn((rx)->bna->bnad, (rx)); \
1370 rx->rx_cleanup_cbfn(rx->bna->bnad, rx); in bna_rx_sm_stop_wait()
1407 rx->rx_post_cbfn(rx->bna->bnad, rx); in bna_rx_sm_rxf_start_wait_entry()
1424 rx->rx_cleanup_cbfn(rx->bna->bnad, rx); in bna_rx_sm_rxf_stop_wait()
1475 bna_ib_start(rx->bna, &rxp->cq.ib, is_regular); in bna_rx_sm_started_entry()
1477 bna_ethport_cb_rx_started(&rx->bna->ethport); in bna_rx_sm_started_entry()
1486 bna_ethport_cb_rx_stopped(&rx->bna->ethport); in bna_rx_sm_started()
1492 bna_ethport_cb_rx_stopped(&rx->bna->ethport); in bna_rx_sm_started()
1495 rx->rx_cleanup_cbfn(rx->bna->bnad, rx); in bna_rx_sm_started()
1516 rx->rx_cleanup_cbfn(rx->bna->bnad, rx); in bna_rx_sm_rxf_start_wait()
1625 cfg_req->rx_cfg.frame_size = bna_enet_mtu_get(&rx->bna->enet); in bna_bfi_rx_enet_start()
1655 bna_enet_mtu_get(&rx->bna->enet); in bna_bfi_rx_enet_start()
1711 bfa_msgq_cmd_post(&rx->bna->msgq, &rx->msgq_cmd); in bna_bfi_rx_enet_start()
1725 bfa_msgq_cmd_post(&rx->bna->msgq, &rx->msgq_cmd); in bna_bfi_rx_enet_stop()
1735 bna_ib_stop(rx->bna, &rxp->cq.ib); in bna_rx_enet_stop()
1943 rx_mod->stop_cbfn(&rx_mod->bna->enet); in bna_rx_mod_cb_rx_stopped_all()
1960 bna_rx_mod_cb_rx_stopped(&rx->bna->rx_mod, rx); in bna_rx_stop()
1963 rx->stop_cbarg = &rx->bna->rx_mod; in bna_rx_stop()
2023 void bna_rx_mod_init(struct bna_rx_mod *rx_mod, struct bna *bna, in bna_rx_mod_init() argument
2031 rx_mod->bna = bna; in bna_rx_mod_init()
2051 for (index = 0; index < bna->ioceth.attr.num_rxp; index++) { in bna_rx_mod_init()
2055 rx_ptr->bna = NULL; in bna_rx_mod_init()
2065 for (index = 0; index < bna->ioceth.attr.num_rxp; index++) { in bna_rx_mod_init()
2072 for (index = 0; index < (bna->ioceth.attr.num_rxp * 2); index++) { in bna_rx_mod_init()
2082 rx_mod->bna = NULL; in bna_rx_mod_uninit()
2093 bfa_msgq_rsp_copy(&rx->bna->msgq, (u8 *)cfg_rsp, in bna_bfi_rx_enet_start_rsp()
2104 rx->bna->pcidev.pci_bar_kva in bna_bfi_rx_enet_start_rsp()
2108 rx->bna->pcidev.pci_bar_kva in bna_bfi_rx_enet_start_rsp()
2113 rx->bna->pcidev.pci_bar_kva in bna_bfi_rx_enet_start_rsp()
2250 bna_rx_create(struct bna *bna, struct bnad *bnad, in bna_rx_create() argument
2256 struct bna_rx_mod *rx_mod = &bna->rx_mod; in bna_rx_create()
2308 rx->bna = bna; in bna_rx_create()
2324 if (rx->bna->rx_mod.flags & BNA_RX_MOD_F_ENET_STARTED) { in bna_rx_create()
2327 if (!(rx->bna->rx_mod.flags & in bna_rx_create()
2332 if (rx->bna->rx_mod.flags & BNA_RX_MOD_F_ENET_LOOPBACK) in bna_rx_create()
2391 q0->rcb->bnad = bna->bnad; in bna_rx_create()
2417 q1->rcb->bnad = bna->bnad; in bna_rx_create()
2461 rxp->cq.ccb->bnad = bna->bnad; in bna_rx_create()
2485 struct bna_rx_mod *rx_mod = &rx->bna->rx_mod; in bna_rx_destroy()
2498 rx->rcb_destroy_cbfn(rx->bna->bnad, q0->rcb); in bna_rx_destroy()
2506 rx->rcb_destroy_cbfn(rx->bna->bnad, q1->rcb); in bna_rx_destroy()
2516 rx->ccb_destroy_cbfn(rx->bna->bnad, rxp->cq.ccb); in bna_rx_destroy()
2530 rx->bna = NULL; in bna_rx_destroy()
2552 (*cbfn)(rx->bna->bnad, rx); in bna_rx_disable()
2555 rx->stop_cbarg = rx->bna->bnad; in bna_rx_disable()
2604 if ((rx->bna->promisc_rid != BFI_INVALID_RID) && in bna_rx_mode_set()
2605 (rx->bna->promisc_rid != rxf->rx->rid)) in bna_rx_mode_set()
2609 if (rx->bna->default_mode_rid != BFI_INVALID_RID) in bna_rx_mode_set()
2619 if ((rx->bna->default_mode_rid != BFI_INVALID_RID) && in bna_rx_mode_set()
2620 (rx->bna->default_mode_rid != rxf->rx->rid)) { in bna_rx_mode_set()
2625 if (rx->bna->promisc_rid != BFI_INVALID_RID) in bna_rx_mode_set()
2651 rxf->cam_fltr_cbarg = rx->bna->bnad; in bna_rx_mode_set()
2685 bna_rx_dim_reconfig(struct bna *bna, const u32 vector[][BNA_BIAS_T_MAX]) in bna_rx_dim_reconfig() argument
2691 bna->rx_mod.dim_vector[i][j] = vector[i][j]; in bna_rx_dim_reconfig()
2697 struct bna *bna = ccb->cq->rx->bna; in bna_rx_dim_update() local
2738 coalescing_timeo = bna->rx_mod.dim_vector[load][bias]; in bna_rx_dim_update()
2876 bna_ib_start(tx->bna, &txq->ib, is_regular); in bna_tx_sm_started_entry()
2878 tx->tx_resume_cbfn(tx->bna->bnad, tx); in bna_tx_sm_started_entry()
2887 tx->tx_stall_cbfn(tx->bna->bnad, tx); in bna_tx_sm_started()
2893 tx->tx_stall_cbfn(tx->bna->bnad, tx); in bna_tx_sm_started()
2894 tx->tx_cleanup_cbfn(tx->bna->bnad, tx); in bna_tx_sm_started()
2918 tx->tx_cleanup_cbfn(tx->bna->bnad, tx); in bna_tx_sm_stop_wait()
2964 tx->tx_stall_cbfn(tx->bna->bnad, tx); in bna_tx_sm_prio_stop_wait_entry()
2978 tx->tx_cleanup_cbfn(tx->bna->bnad, tx); in bna_tx_sm_prio_stop_wait()
2997 tx->tx_cleanup_cbfn(tx->bna->bnad, tx); in bna_tx_sm_prio_cleanup_wait_entry()
3131 bfa_msgq_cmd_post(&tx->bna->msgq, &tx->msgq_cmd); in bna_bfi_tx_enet_start()
3145 bfa_msgq_cmd_post(&tx->bna->msgq, &tx->msgq_cmd); in bna_bfi_tx_enet_stop()
3155 bna_ib_stop(tx->bna, &txq->ib); in bna_tx_enet_stop()
3216 struct bna_tx_mod *tx_mod = &tx->bna->tx_mod; in bna_tx_free()
3234 tx->bna = NULL; in bna_tx_free()
3256 tx->stop_cbarg = &tx->bna->tx_mod; in bna_tx_stop()
3276 bfa_msgq_rsp_copy(&tx->bna->msgq, (u8 *)cfg_rsp, in bna_bfi_tx_enet_start_rsp()
3285 tx->bna->pcidev.pci_bar_kva in bna_bfi_tx_enet_start_rsp()
3288 tx->bna->pcidev.pci_bar_kva in bna_bfi_tx_enet_start_rsp()
3363 bna_tx_create(struct bna *bna, struct bnad *bnad, in bna_tx_create() argument
3369 struct bna_tx_mod *tx_mod = &bna->tx_mod; in bna_tx_create()
3391 tx->bna = bna; in bna_tx_create()
3424 if (tx->bna->tx_mod.flags & BNA_TX_MOD_F_ENET_STARTED) { in bna_tx_create()
3427 if (!(tx->bna->tx_mod.flags & in bna_tx_create()
3432 if (tx->bna->tx_mod.flags & BNA_TX_MOD_F_ENET_LOOPBACK) in bna_tx_create()
3487 (tx->tcb_setup_cbfn)(bna->bnad, txq->tcb); in bna_tx_create()
3517 (tx->tcb_destroy_cbfn)(tx->bna->bnad, txq->tcb); in bna_tx_destroy()
3519 tx->bna->tx_mod.rid_mask &= ~BIT(tx->rid); in bna_tx_destroy()
3540 (*cbfn)(tx->bna->bnad, tx); in bna_tx_disable()
3545 tx->stop_cbarg = tx->bna->bnad; in bna_tx_disable()
3572 tx_mod->stop_cbfn(&tx_mod->bna->enet); in bna_tx_mod_cb_tx_stopped_all()
3577 bna_tx_mod_init(struct bna_tx_mod *tx_mod, struct bna *bna, in bna_tx_mod_init() argument
3582 tx_mod->bna = bna; in bna_tx_mod_init()
3595 for (i = 0; i < bna->ioceth.attr.num_txq; i++) { in bna_tx_mod_init()
3610 tx_mod->bna = NULL; in bna_tx_mod_uninit()