Lines Matching refs:txq

3145 	struct bna_txq *txq;
3150 txq = (struct bna_txq *)qe;
3151 txq->tcb->priority = txq->priority;
3153 bna_ib_start(tx->bna, &txq->ib, is_regular);
3373 struct bna_txq *txq = NULL;
3386 txq = (struct bna_txq *)qe;
3388 bfi_enet_datapath_q_init(&cfg_req->q_cfg[i].q.q, &txq->qpt);
3389 cfg_req->q_cfg[i].q.priority = txq->priority;
3392 txq->ib.ib_seg_host_addr.lsb;
3394 txq->ib.ib_seg_host_addr.msb;
3396 htons((u16)txq->ib.intr_vector);
3403 cfg_req->ib_cfg.msix = (txq->ib.intr_type == BNA_INTR_T_MSIX)
3406 htonl((u32)txq->ib.coalescing_timeo);
3408 htonl((u32)txq->ib.interpkt_timeo);
3409 cfg_req->ib_cfg.inter_pkt_count = (u8)txq->ib.interpkt_count;
3438 struct bna_txq *txq;
3443 txq = (struct bna_txq *)qe;
3444 bna_ib_stop(tx->bna, &txq->ib);
3451 bna_txq_qpt_setup(struct bna_txq *txq, int page_count, int page_size,
3461 txq->qpt.hw_qpt_ptr.lsb = qpt_mem->dma.lsb;
3462 txq->qpt.hw_qpt_ptr.msb = qpt_mem->dma.msb;
3463 txq->qpt.kv_qpt_ptr = qpt_mem->kva;
3464 txq->qpt.page_count = page_count;
3465 txq->qpt.page_size = page_size;
3467 txq->tcb->sw_qpt = (void **) swqpt_mem->kva;
3468 txq->tcb->sw_q = page_mem->kva;
3474 txq->tcb->sw_qpt[i] = kva;
3478 ((struct bna_dma_addr *)txq->qpt.kv_qpt_ptr)[i].lsb =
3480 ((struct bna_dma_addr *)txq->qpt.kv_qpt_ptr)[i].msb =
3510 struct bna_txq *txq;
3515 bfa_q_deq(&tx->txq_q, &txq);
3516 bfa_q_qe_init(&txq->qe);
3517 txq->tcb = NULL;
3518 txq->tx = NULL;
3519 list_add_tail(&txq->qe, &tx_mod->txq_free_q);
3586 struct bna_txq *txq = NULL;
3597 txq = (struct bna_txq *)qe;
3600 txq->tcb->i_dbell->doorbell_addr =
3603 txq->tcb->q_dbell =
3606 txq->hw_id = cfg_rsp->q_handles[i].hw_qid;
3609 (*txq->tcb->hw_consumer_index) = 0;
3610 txq->tcb->producer_index = txq->tcb->consumer_index = 0;
3690 struct bna_txq *txq;
3721 bfa_q_deq(&tx_mod->txq_free_q, &txq);
3722 bfa_q_qe_init(&txq->qe);
3723 list_add_tail(&txq->qe, &tx->txq_q);
3724 txq->tx = tx;
3763 txq = (struct bna_txq *)qe;
3764 txq->tcb = (struct bna_tcb *)
3766 txq->tx_packets = 0;
3767 txq->tx_bytes = 0;
3770 txq->ib.ib_seg_host_addr.lsb =
3772 txq->ib.ib_seg_host_addr.msb =
3774 txq->ib.ib_seg_host_addr_kva =
3776 txq->ib.intr_type = intr_info->intr_type;
3777 txq->ib.intr_vector = (intr_info->num == 1) ?
3781 txq->ib.intr_vector = (1 << txq->ib.intr_vector);
3782 txq->ib.coalescing_timeo = tx_cfg->coalescing_timeo;
3783 txq->ib.interpkt_timeo = BFI_TX_INTERPKT_TIMEO;
3784 txq->ib.interpkt_count = BFI_TX_INTERPKT_COUNT;
3788 txq->tcb->q_depth = tx_cfg->txq_depth;
3789 txq->tcb->unmap_q = (void *)
3791 txq->tcb->hw_consumer_index =
3792 (u32 *)txq->ib.ib_seg_host_addr_kva;
3793 txq->tcb->i_dbell = &txq->ib.door_bell;
3794 txq->tcb->intr_type = txq->ib.intr_type;
3795 txq->tcb->intr_vector = txq->ib.intr_vector;
3796 txq->tcb->txq = txq;
3797 txq->tcb->bnad = bnad;
3798 txq->tcb->id = i;
3801 bna_txq_qpt_setup(txq, page_count, PAGE_SIZE,
3809 (tx->tcb_setup_cbfn)(bna->bnad, txq->tcb);
3812 txq->priority = txq->tcb->id;
3814 txq->priority = tx_mod->default_prio;
3835 struct bna_txq *txq;
3839 txq = (struct bna_txq *)qe;
3841 (tx->tcb_destroy_cbfn)(tx->bna->bnad, txq->tcb);
3912 tx_mod->txq = (struct bna_txq *)
3924 bfa_q_qe_init(&tx_mod->txq[i].qe);
3925 list_add_tail(&tx_mod->txq[i].qe, &tx_mod->txq_free_q);
4010 struct bna_txq *txq;
4014 txq = (struct bna_txq *)qe;
4015 bna_ib_coalescing_timeo_set(&txq->ib, coalescing_timeo);