Lines Matching refs:qe

450 	struct list_head *qe;  in bna_rxf_mcmac_get()  local
452 list_for_each(qe, &rxf->mcast_active_q) { in bna_rxf_mcmac_get()
453 mac = (struct bna_mac *)qe; in bna_rxf_mcmac_get()
458 list_for_each(qe, &rxf->mcast_pending_del_q) { in bna_rxf_mcmac_get()
459 mac = (struct bna_mac *)qe; in bna_rxf_mcmac_get()
471 struct list_head *qe; in bna_rxf_mchandle_get() local
473 list_for_each(qe, &rxf->mcast_handle_q) { in bna_rxf_mchandle_get()
474 mchandle = (struct bna_mcam_handle *)qe; in bna_rxf_mchandle_get()
494 list_add_tail(&mchandle->qe, &rxf->mcast_handle_q); in bna_rxf_mchandle_attach()
517 list_del(&mchandle->qe); in bna_rxf_mcast_del()
518 bfa_q_qe_init(&mchandle->qe); in bna_rxf_mcast_del()
530 struct list_head *qe; in bna_rxf_mcast_cfg_apply() local
535 bfa_q_deq(&rxf->mcast_pending_del_q, &qe); in bna_rxf_mcast_cfg_apply()
536 bfa_q_qe_init(qe); in bna_rxf_mcast_cfg_apply()
537 mac = (struct bna_mac *)qe; in bna_rxf_mcast_cfg_apply()
546 bfa_q_deq(&rxf->mcast_pending_add_q, &qe); in bna_rxf_mcast_cfg_apply()
547 bfa_q_qe_init(qe); in bna_rxf_mcast_cfg_apply()
548 mac = (struct bna_mac *)qe; in bna_rxf_mcast_cfg_apply()
549 list_add_tail(&mac->qe, &rxf->mcast_active_q); in bna_rxf_mcast_cfg_apply()
580 struct list_head *qe; in bna_rxf_mcast_cfg_reset() local
586 bfa_q_deq(&rxf->mcast_pending_del_q, &qe); in bna_rxf_mcast_cfg_reset()
587 bfa_q_qe_init(qe); in bna_rxf_mcast_cfg_reset()
588 mac = (struct bna_mac *)qe; in bna_rxf_mcast_cfg_reset()
597 bfa_q_deq(&rxf->mcast_active_q, &qe); in bna_rxf_mcast_cfg_reset()
598 bfa_q_qe_init(qe); in bna_rxf_mcast_cfg_reset()
599 list_add_tail(qe, &rxf->mcast_pending_add_q); in bna_rxf_mcast_cfg_reset()
600 mac = (struct bna_mac *)qe; in bna_rxf_mcast_cfg_reset()
696 struct list_head *qe; in bna_rit_init() local
700 list_for_each(qe, &rx->rxp_q) { in bna_rit_init()
701 rxp = (struct bna_rxp *)qe; in bna_rit_init()
799 bfa_q_qe_init(&mac->qe); in bna_rxf_uninit()
804 bfa_q_qe_init(&rxf->ucast_pending_mac->qe); in bna_rxf_uninit()
812 bfa_q_qe_init(&mac->qe); in bna_rxf_uninit()
876 bfa_q_qe_init(&rxf->ucast_pending_mac->qe); in bna_rx_ucast_set()
907 bfa_q_qe_init(&mac->qe); in bna_rx_mcast_add()
909 list_add_tail(&mac->qe, &rxf->mcast_pending_add_q); in bna_rx_mcast_add()
926 struct list_head *qe; in bna_rx_ucast_listset() local
933 bfa_q_deq(&rxf->ucast_pending_add_q, &qe); in bna_rx_ucast_listset()
934 bfa_q_qe_init(qe); in bna_rx_ucast_listset()
935 mac = (struct bna_mac *)qe; in bna_rx_ucast_listset()
941 bfa_q_deq(&rxf->ucast_active_q, &qe); in bna_rx_ucast_listset()
942 mac = (struct bna_mac *)qe; in bna_rx_ucast_listset()
943 bfa_q_qe_init(&mac->qe); in bna_rx_ucast_listset()
947 list_add_tail(&del_mac->qe, &rxf->ucast_pending_del_q); in bna_rx_ucast_listset()
957 bfa_q_qe_init(&mac->qe); in bna_rx_ucast_listset()
959 list_add_tail(&mac->qe, &list_head); in bna_rx_ucast_listset()
965 bfa_q_deq(&list_head, &qe); in bna_rx_ucast_listset()
966 mac = (struct bna_mac *)qe; in bna_rx_ucast_listset()
967 bfa_q_qe_init(&mac->qe); in bna_rx_ucast_listset()
968 list_add_tail(&mac->qe, &rxf->ucast_pending_add_q); in bna_rx_ucast_listset()
979 bfa_q_deq(&list_head, &qe); in bna_rx_ucast_listset()
980 mac = (struct bna_mac *)qe; in bna_rx_ucast_listset()
981 bfa_q_qe_init(&mac->qe); in bna_rx_ucast_listset()
995 struct list_head *qe; in bna_rx_mcast_listset() local
1002 bfa_q_deq(&rxf->mcast_pending_add_q, &qe); in bna_rx_mcast_listset()
1003 bfa_q_qe_init(qe); in bna_rx_mcast_listset()
1004 mac = (struct bna_mac *)qe; in bna_rx_mcast_listset()
1010 bfa_q_deq(&rxf->mcast_active_q, &qe); in bna_rx_mcast_listset()
1011 mac = (struct bna_mac *)qe; in bna_rx_mcast_listset()
1012 bfa_q_qe_init(&mac->qe); in bna_rx_mcast_listset()
1017 list_add_tail(&del_mac->qe, &rxf->mcast_pending_del_q); in bna_rx_mcast_listset()
1028 bfa_q_qe_init(&mac->qe); in bna_rx_mcast_listset()
1030 list_add_tail(&mac->qe, &list_head); in bna_rx_mcast_listset()
1037 bfa_q_deq(&list_head, &qe); in bna_rx_mcast_listset()
1038 mac = (struct bna_mac *)qe; in bna_rx_mcast_listset()
1039 bfa_q_qe_init(&mac->qe); in bna_rx_mcast_listset()
1040 list_add_tail(&mac->qe, &rxf->mcast_pending_add_q); in bna_rx_mcast_listset()
1051 bfa_q_deq(&list_head, &qe); in bna_rx_mcast_listset()
1052 mac = (struct bna_mac *)qe; in bna_rx_mcast_listset()
1053 bfa_q_qe_init(&mac->qe); in bna_rx_mcast_listset()
1065 struct list_head *qe; in bna_rx_mcast_delall() local
1071 bfa_q_deq(&rxf->mcast_pending_add_q, &qe); in bna_rx_mcast_delall()
1072 mac = (struct bna_mac *)qe; in bna_rx_mcast_delall()
1073 bfa_q_qe_init(&mac->qe); in bna_rx_mcast_delall()
1079 bfa_q_deq(&rxf->mcast_active_q, &qe); in bna_rx_mcast_delall()
1080 mac = (struct bna_mac *)qe; in bna_rx_mcast_delall()
1081 bfa_q_qe_init(&mac->qe); in bna_rx_mcast_delall()
1086 list_add_tail(&del_mac->qe, &rxf->mcast_pending_del_q); in bna_rx_mcast_delall()
1137 struct list_head *qe; in bna_rxf_ucast_cfg_apply() local
1141 bfa_q_deq(&rxf->ucast_pending_del_q, &qe); in bna_rxf_ucast_cfg_apply()
1142 bfa_q_qe_init(qe); in bna_rxf_ucast_cfg_apply()
1143 mac = (struct bna_mac *)qe; in bna_rxf_ucast_cfg_apply()
1162 bfa_q_deq(&rxf->ucast_pending_add_q, &qe); in bna_rxf_ucast_cfg_apply()
1163 bfa_q_qe_init(qe); in bna_rxf_ucast_cfg_apply()
1164 mac = (struct bna_mac *)qe; in bna_rxf_ucast_cfg_apply()
1165 list_add_tail(&mac->qe, &rxf->ucast_active_q); in bna_rxf_ucast_cfg_apply()
1176 struct list_head *qe; in bna_rxf_ucast_cfg_reset() local
1181 bfa_q_deq(&rxf->ucast_pending_del_q, &qe); in bna_rxf_ucast_cfg_reset()
1182 bfa_q_qe_init(qe); in bna_rxf_ucast_cfg_reset()
1183 mac = (struct bna_mac *)qe; in bna_rxf_ucast_cfg_reset()
1198 bfa_q_deq(&rxf->ucast_active_q, &qe); in bna_rxf_ucast_cfg_reset()
1199 bfa_q_qe_init(qe); in bna_rxf_ucast_cfg_reset()
1200 list_add_tail(qe, &rxf->ucast_pending_add_q); in bna_rxf_ucast_cfg_reset()
1202 mac = (struct bna_mac *)qe; in bna_rxf_ucast_cfg_reset()
1960 struct list_head *qe = NULL; in bna_rxq_get() local
1962 bfa_q_deq(&rx_mod->rxq_free_q, &qe); in bna_rxq_get()
1964 rxq = (struct bna_rxq *)qe; in bna_rxq_get()
1965 bfa_q_qe_init(&rxq->qe); in bna_rxq_get()
1973 bfa_q_qe_init(&rxq->qe); in bna_rxq_put()
1974 list_add_tail(&rxq->qe, &rx_mod->rxq_free_q); in bna_rxq_put()
1981 struct list_head *qe = NULL; in bna_rxp_get() local
1984 bfa_q_deq(&rx_mod->rxp_free_q, &qe); in bna_rxp_get()
1986 rxp = (struct bna_rxp *)qe; in bna_rxp_get()
1987 bfa_q_qe_init(&rxp->qe); in bna_rxp_get()
1995 bfa_q_qe_init(&rxp->qe); in bna_rxp_put()
1996 list_add_tail(&rxp->qe, &rx_mod->rxp_free_q); in bna_rxp_put()
2003 struct list_head *qe = NULL; in bna_rx_get() local
2007 bfa_q_deq(&rx_mod->rx_free_q, &qe); in bna_rx_get()
2009 bfa_q_deq_tail(&rx_mod->rx_free_q, &qe); in bna_rx_get()
2012 rx = (struct bna_rx *)qe; in bna_rx_get()
2013 bfa_q_qe_init(&rx->qe); in bna_rx_get()
2014 list_add_tail(&rx->qe, &rx_mod->rx_active_q); in bna_rx_get()
2024 struct list_head *qe; in bna_rx_put() local
2026 bfa_q_qe_init(&rx->qe); in bna_rx_put()
2028 list_for_each(qe, &rx_mod->rx_free_q) { in bna_rx_put()
2029 if (((struct bna_rx *)qe)->rid < rx->rid) in bna_rx_put()
2030 prev_qe = qe; in bna_rx_put()
2037 bfa_q_enq_head(&rx_mod->rx_free_q, &rx->qe); in bna_rx_put()
2040 list_add_tail(&rx->qe, &rx_mod->rx_free_q); in bna_rx_put()
2043 bfa_q_next(&rx->qe) = bfa_q_next(prev_qe); in bna_rx_put()
2044 bfa_q_prev(&rx->qe) = prev_qe; in bna_rx_put()
2045 bfa_q_next(prev_qe) = &rx->qe; in bna_rx_put()
2046 bfa_q_prev(bfa_q_next(&rx->qe)) = &rx->qe; in bna_rx_put()
2202 struct list_head *qe; in bna_rx_mod_start() local
2208 list_for_each(qe, &rx_mod->rx_active_q) { in bna_rx_mod_start()
2209 rx = (struct bna_rx *)qe; in bna_rx_mod_start()
2219 struct list_head *qe; in bna_rx_mod_stop() local
2228 list_for_each(qe, &rx_mod->rx_active_q) { in bna_rx_mod_stop()
2229 rx = (struct bna_rx *)qe; in bna_rx_mod_stop()
2243 struct list_head *qe; in bna_rx_mod_fail() local
2248 list_for_each(qe, &rx_mod->rx_active_q) { in bna_rx_mod_fail()
2249 rx = (struct bna_rx *)qe; in bna_rx_mod_fail()
2285 bfa_q_qe_init(&rx_ptr->qe); in bna_rx_mod_init()
2292 list_add_tail(&rx_ptr->qe, &rx_mod->rx_free_q); in bna_rx_mod_init()
2299 bfa_q_qe_init(&rxp_ptr->qe); in bna_rx_mod_init()
2300 list_add_tail(&rxp_ptr->qe, &rx_mod->rxp_free_q); in bna_rx_mod_init()
2307 bfa_q_qe_init(&rxq_ptr->qe); in bna_rx_mod_init()
2308 list_add_tail(&rxq_ptr->qe, &rx_mod->rxq_free_q); in bna_rx_mod_init()
2316 struct list_head *qe; in bna_rx_mod_uninit() local
2320 list_for_each(qe, &rx_mod->rx_free_q) in bna_rx_mod_uninit()
2324 list_for_each(qe, &rx_mod->rxp_free_q) in bna_rx_mod_uninit()
2328 list_for_each(qe, &rx_mod->rxq_free_q) in bna_rx_mod_uninit()
2595 list_add_tail(&rxp->qe, &rx->rxp_q); in bna_rx_create()
2740 struct list_head *qe; in bna_rx_destroy() local
2772 list_for_each(qe, &rx_mod->rx_active_q) { in bna_rx_destroy()
2773 if (qe == &rx->qe) { in bna_rx_destroy()
2774 list_del(&rx->qe); in bna_rx_destroy()
2775 bfa_q_qe_init(&rx->qe); in bna_rx_destroy()
2931 struct list_head *qe; in bna_rx_coalescing_timeo_set() local
2933 list_for_each(qe, &rx->rxp_q) { in bna_rx_coalescing_timeo_set()
2934 rxp = (struct bna_rxp *)qe; in bna_rx_coalescing_timeo_set()
3147 struct list_head *qe; in bna_tx_sm_started_entry() local
3150 list_for_each(qe, &tx->txq_q) { in bna_tx_sm_started_entry()
3151 txq = (struct bna_txq *)qe; in bna_tx_sm_started_entry()
3375 struct list_head *qe; in bna_bfi_tx_enet_start() local
3384 for (i = 0, qe = bfa_q_first(&tx->txq_q); in bna_bfi_tx_enet_start()
3386 i++, qe = bfa_q_next(qe)) { in bna_bfi_tx_enet_start()
3387 txq = (struct bna_txq *)qe; in bna_bfi_tx_enet_start()
3440 struct list_head *qe; in bna_tx_enet_stop() local
3443 list_for_each(qe, &tx->txq_q) { in bna_tx_enet_stop()
3444 txq = (struct bna_txq *)qe; in bna_tx_enet_stop()
3490 struct list_head *qe = NULL; in bna_tx_get() local
3496 bfa_q_deq(&tx_mod->tx_free_q, &qe); in bna_tx_get()
3498 bfa_q_deq_tail(&tx_mod->tx_free_q, &qe); in bna_tx_get()
3500 tx = (struct bna_tx *)qe; in bna_tx_get()
3501 bfa_q_qe_init(&tx->qe); in bna_tx_get()
3513 struct list_head *qe; in bna_tx_free() local
3517 bfa_q_qe_init(&txq->qe); in bna_tx_free()
3520 list_add_tail(&txq->qe, &tx_mod->txq_free_q); in bna_tx_free()
3523 list_for_each(qe, &tx_mod->tx_active_q) { in bna_tx_free()
3524 if (qe == &tx->qe) { in bna_tx_free()
3525 list_del(&tx->qe); in bna_tx_free()
3526 bfa_q_qe_init(&tx->qe); in bna_tx_free()
3535 list_for_each(qe, &tx_mod->tx_free_q) { in bna_tx_free()
3536 if (((struct bna_tx *)qe)->rid < tx->rid) in bna_tx_free()
3537 prev_qe = qe; in bna_tx_free()
3545 bfa_q_enq_head(&tx_mod->tx_free_q, &tx->qe); in bna_tx_free()
3548 list_add_tail(&tx->qe, &tx_mod->tx_free_q); in bna_tx_free()
3551 bfa_q_next(&tx->qe) = bfa_q_next(prev_qe); in bna_tx_free()
3552 bfa_q_prev(&tx->qe) = prev_qe; in bna_tx_free()
3553 bfa_q_next(prev_qe) = &tx->qe; in bna_tx_free()
3554 bfa_q_prev(bfa_q_next(&tx->qe)) = &tx->qe; in bna_tx_free()
3588 struct list_head *qe; in bna_bfi_tx_enet_start_rsp() local
3596 for (i = 0, qe = bfa_q_first(&tx->txq_q); in bna_bfi_tx_enet_start_rsp()
3597 i < tx->num_txq; i++, qe = bfa_q_next(qe)) { in bna_bfi_tx_enet_start_rsp()
3598 txq = (struct bna_txq *)qe; in bna_bfi_tx_enet_start_rsp()
3627 struct list_head *qe; in bna_bfi_bw_update_aen() local
3629 list_for_each(qe, &tx_mod->tx_active_q) { in bna_bfi_bw_update_aen()
3630 tx = (struct bna_tx *)qe; in bna_bfi_bw_update_aen()
3692 struct list_head *qe; in bna_tx_create() local
3723 bfa_q_qe_init(&txq->qe); in bna_tx_create()
3724 list_add_tail(&txq->qe, &tx->txq_q); in bna_tx_create()
3741 list_add_tail(&tx->qe, &tx_mod->tx_active_q); in bna_tx_create()
3763 list_for_each(qe, &tx->txq_q) { in bna_tx_create()
3764 txq = (struct bna_txq *)qe; in bna_tx_create()
3837 struct list_head *qe; in bna_tx_destroy() local
3839 list_for_each(qe, &tx->txq_q) { in bna_tx_destroy()
3840 txq = (struct bna_txq *)qe; in bna_tx_destroy()
3923 bfa_q_qe_init(&tx_mod->tx[i].qe); in bna_tx_mod_init()
3924 list_add_tail(&tx_mod->tx[i].qe, &tx_mod->tx_free_q); in bna_tx_mod_init()
3925 bfa_q_qe_init(&tx_mod->txq[i].qe); in bna_tx_mod_init()
3926 list_add_tail(&tx_mod->txq[i].qe, &tx_mod->txq_free_q); in bna_tx_mod_init()
3938 struct list_head *qe; in bna_tx_mod_uninit() local
3942 list_for_each(qe, &tx_mod->tx_free_q) in bna_tx_mod_uninit()
3946 list_for_each(qe, &tx_mod->txq_free_q) in bna_tx_mod_uninit()
3956 struct list_head *qe; in bna_tx_mod_start() local
3962 list_for_each(qe, &tx_mod->tx_active_q) { in bna_tx_mod_start()
3963 tx = (struct bna_tx *)qe; in bna_tx_mod_start()
3973 struct list_head *qe; in bna_tx_mod_stop() local
3982 list_for_each(qe, &tx_mod->tx_active_q) { in bna_tx_mod_stop()
3983 tx = (struct bna_tx *)qe; in bna_tx_mod_stop()
3997 struct list_head *qe; in bna_tx_mod_fail() local
4002 list_for_each(qe, &tx_mod->tx_active_q) { in bna_tx_mod_fail()
4003 tx = (struct bna_tx *)qe; in bna_tx_mod_fail()
4012 struct list_head *qe; in bna_tx_coalescing_timeo_set() local
4014 list_for_each(qe, &tx->txq_q) { in bna_tx_coalescing_timeo_set()
4015 txq = (struct bna_txq *)qe; in bna_tx_coalescing_timeo_set()