rx_mod 200 drivers/net/ethernet/brocade/bna/bna.h #define bna_rx_rid_mask(_bna) ((_bna)->rx_mod.rid_mask) rx_mod 217 drivers/net/ethernet/brocade/bna/bna.h struct bna_rx_mod *__rx_mod = &(_bna)->rx_mod; \ rx_mod 333 drivers/net/ethernet/brocade/bna/bna.h void bna_rx_mod_init(struct bna_rx_mod *rx_mod, struct bna *bna, rx_mod 335 drivers/net/ethernet/brocade/bna/bna.h void bna_rx_mod_uninit(struct bna_rx_mod *rx_mod); rx_mod 338 drivers/net/ethernet/brocade/bna/bna.h void bna_rx_mod_start(struct bna_rx_mod *rx_mod, enum bna_rx_type type); rx_mod 339 drivers/net/ethernet/brocade/bna/bna.h void bna_rx_mod_stop(struct bna_rx_mod *rx_mod, enum bna_rx_type type); rx_mod 340 drivers/net/ethernet/brocade/bna/bna.h void bna_rx_mod_fail(struct bna_rx_mod *rx_mod); rx_mod 819 drivers/net/ethernet/brocade/bna/bna_enet.c bna_rx_mod_start(&(enet)->bna->rx_mod, rx_type); \ rx_mod 836 drivers/net/ethernet/brocade/bna/bna_enet.c bna_rx_mod_stop(&(enet)->bna->rx_mod, rx_type); \ rx_mod 844 drivers/net/ethernet/brocade/bna/bna_enet.c bna_rx_mod_fail(&(enet)->bna->rx_mod); \ rx_mod 852 drivers/net/ethernet/brocade/bna/bna_enet.c bna_rx_mod_start(&(enet)->bna->rx_mod, rx_type); \ rx_mod 862 drivers/net/ethernet/brocade/bna/bna_enet.c bna_rx_mod_stop(&(enet)->bna->rx_mod, rx_type); \ rx_mod 1852 drivers/net/ethernet/brocade/bna/bna_enet.c stats_req->rx_enet_mask = htonl(bna->rx_mod.rid_mask); rx_mod 1993 drivers/net/ethernet/brocade/bna/bna_enet.c bna_rx_mod_init(&bna->rx_mod, bna, res_info); rx_mod 2011 drivers/net/ethernet/brocade/bna/bna_enet.c bna_rx_mod_uninit(&bna->rx_mod); rx_mod 1741 drivers/net/ethernet/brocade/bna/bna_tx_rx.c bna_rx_res_check(struct bna_rx_mod *rx_mod, struct bna_rx_config *rx_cfg) rx_mod 1743 drivers/net/ethernet/brocade/bna/bna_tx_rx.c if ((rx_mod->rx_free_count == 0) || rx_mod 1744 drivers/net/ethernet/brocade/bna/bna_tx_rx.c (rx_mod->rxp_free_count == 0) || rx_mod 1745 drivers/net/ethernet/brocade/bna/bna_tx_rx.c (rx_mod->rxq_free_count == 0)) rx_mod 1749 drivers/net/ethernet/brocade/bna/bna_tx_rx.c if ((rx_mod->rxp_free_count < rx_cfg->num_paths) || rx_mod 1750 drivers/net/ethernet/brocade/bna/bna_tx_rx.c (rx_mod->rxq_free_count < rx_cfg->num_paths)) rx_mod 1753 drivers/net/ethernet/brocade/bna/bna_tx_rx.c if ((rx_mod->rxp_free_count < rx_cfg->num_paths) || rx_mod 1754 drivers/net/ethernet/brocade/bna/bna_tx_rx.c (rx_mod->rxq_free_count < (2 * rx_cfg->num_paths))) rx_mod 1762 drivers/net/ethernet/brocade/bna/bna_tx_rx.c bna_rxq_get(struct bna_rx_mod *rx_mod) rx_mod 1766 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rxq = list_first_entry(&rx_mod->rxq_free_q, struct bna_rxq, qe); rx_mod 1768 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->rxq_free_count--; rx_mod 1774 drivers/net/ethernet/brocade/bna/bna_tx_rx.c bna_rxq_put(struct bna_rx_mod *rx_mod, struct bna_rxq *rxq) rx_mod 1776 drivers/net/ethernet/brocade/bna/bna_tx_rx.c list_add_tail(&rxq->qe, &rx_mod->rxq_free_q); rx_mod 1777 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->rxq_free_count++; rx_mod 1781 drivers/net/ethernet/brocade/bna/bna_tx_rx.c bna_rxp_get(struct bna_rx_mod *rx_mod) rx_mod 1785 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rxp = list_first_entry(&rx_mod->rxp_free_q, struct bna_rxp, qe); rx_mod 1787 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->rxp_free_count--; rx_mod 1793 drivers/net/ethernet/brocade/bna/bna_tx_rx.c bna_rxp_put(struct bna_rx_mod *rx_mod, struct bna_rxp *rxp) rx_mod 1795 drivers/net/ethernet/brocade/bna/bna_tx_rx.c list_add_tail(&rxp->qe, &rx_mod->rxp_free_q); rx_mod 1796 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->rxp_free_count++; rx_mod 1800 drivers/net/ethernet/brocade/bna/bna_tx_rx.c bna_rx_get(struct bna_rx_mod *rx_mod, enum bna_rx_type type) rx_mod 1804 drivers/net/ethernet/brocade/bna/bna_tx_rx.c BUG_ON(list_empty(&rx_mod->rx_free_q)); rx_mod 1806 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx = list_first_entry(&rx_mod->rx_free_q, struct bna_rx, qe); rx_mod 1808 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx = list_last_entry(&rx_mod->rx_free_q, struct bna_rx, qe); rx_mod 1810 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->rx_free_count--; rx_mod 1811 drivers/net/ethernet/brocade/bna/bna_tx_rx.c list_move_tail(&rx->qe, &rx_mod->rx_active_q); rx_mod 1818 drivers/net/ethernet/brocade/bna/bna_tx_rx.c bna_rx_put(struct bna_rx_mod *rx_mod, struct bna_rx *rx) rx_mod 1822 drivers/net/ethernet/brocade/bna/bna_tx_rx.c list_for_each_prev(qe, &rx_mod->rx_free_q) rx_mod 1827 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->rx_free_count++; rx_mod 1932 drivers/net/ethernet/brocade/bna/bna_tx_rx.c struct bna_rx_mod *rx_mod = (struct bna_rx_mod *)arg; rx_mod 1934 drivers/net/ethernet/brocade/bna/bna_tx_rx.c bfa_wc_down(&rx_mod->rx_stop_wc); rx_mod 1940 drivers/net/ethernet/brocade/bna/bna_tx_rx.c struct bna_rx_mod *rx_mod = (struct bna_rx_mod *)arg; rx_mod 1942 drivers/net/ethernet/brocade/bna/bna_tx_rx.c if (rx_mod->stop_cbfn) rx_mod 1943 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->stop_cbfn(&rx_mod->bna->enet); rx_mod 1944 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->stop_cbfn = NULL; rx_mod 1960 drivers/net/ethernet/brocade/bna/bna_tx_rx.c bna_rx_mod_cb_rx_stopped(&rx->bna->rx_mod, rx); rx_mod 1963 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx->stop_cbarg = &rx->bna->rx_mod; rx_mod 1977 drivers/net/ethernet/brocade/bna/bna_tx_rx.c bna_rx_mod_start(struct bna_rx_mod *rx_mod, enum bna_rx_type type) rx_mod 1981 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->flags |= BNA_RX_MOD_F_ENET_STARTED; rx_mod 1983 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->flags |= BNA_RX_MOD_F_ENET_LOOPBACK; rx_mod 1985 drivers/net/ethernet/brocade/bna/bna_tx_rx.c list_for_each_entry(rx, &rx_mod->rx_active_q, qe) rx_mod 1991 drivers/net/ethernet/brocade/bna/bna_tx_rx.c bna_rx_mod_stop(struct bna_rx_mod *rx_mod, enum bna_rx_type type) rx_mod 1995 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->flags &= ~BNA_RX_MOD_F_ENET_STARTED; rx_mod 1996 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->flags &= ~BNA_RX_MOD_F_ENET_LOOPBACK; rx_mod 1998 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->stop_cbfn = bna_enet_cb_rx_stopped; rx_mod 2000 drivers/net/ethernet/brocade/bna/bna_tx_rx.c bfa_wc_init(&rx_mod->rx_stop_wc, bna_rx_mod_cb_rx_stopped_all, rx_mod); rx_mod 2002 drivers/net/ethernet/brocade/bna/bna_tx_rx.c list_for_each_entry(rx, &rx_mod->rx_active_q, qe) rx_mod 2004 drivers/net/ethernet/brocade/bna/bna_tx_rx.c bfa_wc_up(&rx_mod->rx_stop_wc); rx_mod 2008 drivers/net/ethernet/brocade/bna/bna_tx_rx.c bfa_wc_wait(&rx_mod->rx_stop_wc); rx_mod 2012 drivers/net/ethernet/brocade/bna/bna_tx_rx.c bna_rx_mod_fail(struct bna_rx_mod *rx_mod) rx_mod 2016 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->flags &= ~BNA_RX_MOD_F_ENET_STARTED; rx_mod 2017 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->flags &= ~BNA_RX_MOD_F_ENET_LOOPBACK; rx_mod 2019 drivers/net/ethernet/brocade/bna/bna_tx_rx.c list_for_each_entry(rx, &rx_mod->rx_active_q, qe) rx_mod 2023 drivers/net/ethernet/brocade/bna/bna_tx_rx.c void bna_rx_mod_init(struct bna_rx_mod *rx_mod, struct bna *bna, rx_mod 2031 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->bna = bna; rx_mod 2032 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->flags = 0; rx_mod 2034 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->rx = (struct bna_rx *) rx_mod 2036 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->rxp = (struct bna_rxp *) rx_mod 2038 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->rxq = (struct bna_rxq *) rx_mod 2042 drivers/net/ethernet/brocade/bna/bna_tx_rx.c INIT_LIST_HEAD(&rx_mod->rx_free_q); rx_mod 2043 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->rx_free_count = 0; rx_mod 2044 drivers/net/ethernet/brocade/bna/bna_tx_rx.c INIT_LIST_HEAD(&rx_mod->rxq_free_q); rx_mod 2045 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->rxq_free_count = 0; rx_mod 2046 drivers/net/ethernet/brocade/bna/bna_tx_rx.c INIT_LIST_HEAD(&rx_mod->rxp_free_q); rx_mod 2047 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->rxp_free_count = 0; rx_mod 2048 drivers/net/ethernet/brocade/bna/bna_tx_rx.c INIT_LIST_HEAD(&rx_mod->rx_active_q); rx_mod 2052 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_ptr = &rx_mod->rx[index]; rx_mod 2060 drivers/net/ethernet/brocade/bna/bna_tx_rx.c list_add_tail(&rx_ptr->qe, &rx_mod->rx_free_q); rx_mod 2061 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->rx_free_count++; rx_mod 2066 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rxp_ptr = &rx_mod->rxp[index]; rx_mod 2067 drivers/net/ethernet/brocade/bna/bna_tx_rx.c list_add_tail(&rxp_ptr->qe, &rx_mod->rxp_free_q); rx_mod 2068 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->rxp_free_count++; rx_mod 2073 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rxq_ptr = &rx_mod->rxq[index]; rx_mod 2074 drivers/net/ethernet/brocade/bna/bna_tx_rx.c list_add_tail(&rxq_ptr->qe, &rx_mod->rxq_free_q); rx_mod 2075 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->rxq_free_count++; rx_mod 2080 drivers/net/ethernet/brocade/bna/bna_tx_rx.c bna_rx_mod_uninit(struct bna_rx_mod *rx_mod) rx_mod 2082 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->bna = NULL; rx_mod 2256 drivers/net/ethernet/brocade/bna/bna_tx_rx.c struct bna_rx_mod *rx_mod = &bna->rx_mod; rx_mod 2280 drivers/net/ethernet/brocade/bna/bna_tx_rx.c if (!bna_rx_res_check(rx_mod, rx_cfg)) rx_mod 2307 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx = bna_rx_get(rx_mod, rx_cfg->rx_type); rx_mod 2324 drivers/net/ethernet/brocade/bna/bna_tx_rx.c if (rx->bna->rx_mod.flags & BNA_RX_MOD_F_ENET_STARTED) { rx_mod 2327 drivers/net/ethernet/brocade/bna/bna_tx_rx.c if (!(rx->bna->rx_mod.flags & rx_mod 2332 drivers/net/ethernet/brocade/bna/bna_tx_rx.c if (rx->bna->rx_mod.flags & BNA_RX_MOD_F_ENET_LOOPBACK) rx_mod 2341 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rxp = bna_rxp_get(rx_mod); rx_mod 2347 drivers/net/ethernet/brocade/bna/bna_tx_rx.c q0 = bna_rxq_get(rx_mod); rx_mod 2351 drivers/net/ethernet/brocade/bna/bna_tx_rx.c q1 = bna_rxq_get(rx_mod); rx_mod 2477 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->rid_mask |= BIT(rx->rid); rx_mod 2485 drivers/net/ethernet/brocade/bna/bna_tx_rx.c struct bna_rx_mod *rx_mod = &rx->bna->rx_mod; rx_mod 2502 drivers/net/ethernet/brocade/bna/bna_tx_rx.c bna_rxq_put(rx_mod, q0); rx_mod 2510 drivers/net/ethernet/brocade/bna/bna_tx_rx.c bna_rxq_put(rx_mod, q1); rx_mod 2519 drivers/net/ethernet/brocade/bna/bna_tx_rx.c bna_rxp_put(rx_mod, rxp); rx_mod 2522 drivers/net/ethernet/brocade/bna/bna_tx_rx.c list_for_each(qe, &rx_mod->rx_active_q) rx_mod 2528 drivers/net/ethernet/brocade/bna/bna_tx_rx.c rx_mod->rid_mask &= ~BIT(rx->rid); rx_mod 2532 drivers/net/ethernet/brocade/bna/bna_tx_rx.c bna_rx_put(rx_mod, rx); rx_mod 2691 drivers/net/ethernet/brocade/bna/bna_tx_rx.c bna->rx_mod.dim_vector[i][j] = vector[i][j]; rx_mod 2738 drivers/net/ethernet/brocade/bna/bna_tx_rx.c coalescing_timeo = bna->rx_mod.dim_vector[load][bias]; rx_mod 920 drivers/net/ethernet/brocade/bna/bna_types.h struct bna_rx_mod rx_mod;