Lines Matching refs:txq
3146 struct bna_txq *txq; in bna_tx_sm_started_entry() local
3151 txq = (struct bna_txq *)qe; in bna_tx_sm_started_entry()
3152 txq->tcb->priority = txq->priority; in bna_tx_sm_started_entry()
3154 bna_ib_start(tx->bna, &txq->ib, is_regular); in bna_tx_sm_started_entry()
3374 struct bna_txq *txq = NULL; in bna_bfi_tx_enet_start() local
3387 txq = (struct bna_txq *)qe; in bna_bfi_tx_enet_start()
3389 bfi_enet_datapath_q_init(&cfg_req->q_cfg[i].q.q, &txq->qpt); in bna_bfi_tx_enet_start()
3390 cfg_req->q_cfg[i].q.priority = txq->priority; in bna_bfi_tx_enet_start()
3393 txq->ib.ib_seg_host_addr.lsb; in bna_bfi_tx_enet_start()
3395 txq->ib.ib_seg_host_addr.msb; in bna_bfi_tx_enet_start()
3397 htons((u16)txq->ib.intr_vector); in bna_bfi_tx_enet_start()
3404 cfg_req->ib_cfg.msix = (txq->ib.intr_type == BNA_INTR_T_MSIX) in bna_bfi_tx_enet_start()
3407 htonl((u32)txq->ib.coalescing_timeo); in bna_bfi_tx_enet_start()
3409 htonl((u32)txq->ib.interpkt_timeo); in bna_bfi_tx_enet_start()
3410 cfg_req->ib_cfg.inter_pkt_count = (u8)txq->ib.interpkt_count; in bna_bfi_tx_enet_start()
3439 struct bna_txq *txq; in bna_tx_enet_stop() local
3444 txq = (struct bna_txq *)qe; in bna_tx_enet_stop()
3445 bna_ib_stop(tx->bna, &txq->ib); in bna_tx_enet_stop()
3452 bna_txq_qpt_setup(struct bna_txq *txq, int page_count, int page_size, in bna_txq_qpt_setup() argument
3462 txq->qpt.hw_qpt_ptr.lsb = qpt_mem->dma.lsb; in bna_txq_qpt_setup()
3463 txq->qpt.hw_qpt_ptr.msb = qpt_mem->dma.msb; in bna_txq_qpt_setup()
3464 txq->qpt.kv_qpt_ptr = qpt_mem->kva; in bna_txq_qpt_setup()
3465 txq->qpt.page_count = page_count; in bna_txq_qpt_setup()
3466 txq->qpt.page_size = page_size; in bna_txq_qpt_setup()
3468 txq->tcb->sw_qpt = (void **) swqpt_mem->kva; in bna_txq_qpt_setup()
3469 txq->tcb->sw_q = page_mem->kva; in bna_txq_qpt_setup()
3475 txq->tcb->sw_qpt[i] = kva; in bna_txq_qpt_setup()
3479 ((struct bna_dma_addr *)txq->qpt.kv_qpt_ptr)[i].lsb = in bna_txq_qpt_setup()
3481 ((struct bna_dma_addr *)txq->qpt.kv_qpt_ptr)[i].msb = in bna_txq_qpt_setup()
3511 struct bna_txq *txq; in bna_tx_free() local
3516 bfa_q_deq(&tx->txq_q, &txq); in bna_tx_free()
3517 bfa_q_qe_init(&txq->qe); in bna_tx_free()
3518 txq->tcb = NULL; in bna_tx_free()
3519 txq->tx = NULL; in bna_tx_free()
3520 list_add_tail(&txq->qe, &tx_mod->txq_free_q); in bna_tx_free()
3587 struct bna_txq *txq = NULL; in bna_bfi_tx_enet_start_rsp() local
3598 txq = (struct bna_txq *)qe; in bna_bfi_tx_enet_start_rsp()
3601 txq->tcb->i_dbell->doorbell_addr = in bna_bfi_tx_enet_start_rsp()
3604 txq->tcb->q_dbell = in bna_bfi_tx_enet_start_rsp()
3607 txq->hw_id = cfg_rsp->q_handles[i].hw_qid; in bna_bfi_tx_enet_start_rsp()
3610 (*txq->tcb->hw_consumer_index) = 0; in bna_bfi_tx_enet_start_rsp()
3611 txq->tcb->producer_index = txq->tcb->consumer_index = 0; in bna_bfi_tx_enet_start_rsp()
3691 struct bna_txq *txq; in bna_tx_create() local
3722 bfa_q_deq(&tx_mod->txq_free_q, &txq); in bna_tx_create()
3723 bfa_q_qe_init(&txq->qe); in bna_tx_create()
3724 list_add_tail(&txq->qe, &tx->txq_q); in bna_tx_create()
3725 txq->tx = tx; in bna_tx_create()
3764 txq = (struct bna_txq *)qe; in bna_tx_create()
3765 txq->tcb = (struct bna_tcb *) in bna_tx_create()
3767 txq->tx_packets = 0; in bna_tx_create()
3768 txq->tx_bytes = 0; in bna_tx_create()
3771 txq->ib.ib_seg_host_addr.lsb = in bna_tx_create()
3773 txq->ib.ib_seg_host_addr.msb = in bna_tx_create()
3775 txq->ib.ib_seg_host_addr_kva = in bna_tx_create()
3777 txq->ib.intr_type = intr_info->intr_type; in bna_tx_create()
3778 txq->ib.intr_vector = (intr_info->num == 1) ? in bna_tx_create()
3782 txq->ib.intr_vector = (1 << txq->ib.intr_vector); in bna_tx_create()
3783 txq->ib.coalescing_timeo = tx_cfg->coalescing_timeo; in bna_tx_create()
3784 txq->ib.interpkt_timeo = BFI_TX_INTERPKT_TIMEO; in bna_tx_create()
3785 txq->ib.interpkt_count = BFI_TX_INTERPKT_COUNT; in bna_tx_create()
3789 txq->tcb->q_depth = tx_cfg->txq_depth; in bna_tx_create()
3790 txq->tcb->unmap_q = (void *) in bna_tx_create()
3792 txq->tcb->hw_consumer_index = in bna_tx_create()
3793 (u32 *)txq->ib.ib_seg_host_addr_kva; in bna_tx_create()
3794 txq->tcb->i_dbell = &txq->ib.door_bell; in bna_tx_create()
3795 txq->tcb->intr_type = txq->ib.intr_type; in bna_tx_create()
3796 txq->tcb->intr_vector = txq->ib.intr_vector; in bna_tx_create()
3797 txq->tcb->txq = txq; in bna_tx_create()
3798 txq->tcb->bnad = bnad; in bna_tx_create()
3799 txq->tcb->id = i; in bna_tx_create()
3802 bna_txq_qpt_setup(txq, page_count, PAGE_SIZE, in bna_tx_create()
3810 (tx->tcb_setup_cbfn)(bna->bnad, txq->tcb); in bna_tx_create()
3813 txq->priority = txq->tcb->id; in bna_tx_create()
3815 txq->priority = tx_mod->default_prio; in bna_tx_create()
3836 struct bna_txq *txq; in bna_tx_destroy() local
3840 txq = (struct bna_txq *)qe; in bna_tx_destroy()
3842 (tx->tcb_destroy_cbfn)(tx->bna->bnad, txq->tcb); in bna_tx_destroy()
3913 tx_mod->txq = (struct bna_txq *) 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()
4011 struct bna_txq *txq; in bna_tx_coalescing_timeo_set() local
4015 txq = (struct bna_txq *)qe; in bna_tx_coalescing_timeo_set()
4016 bna_ib_coalescing_timeo_set(&txq->ib, coalescing_timeo); in bna_tx_coalescing_timeo_set()