Lines Matching refs:rxp
695 struct bna_rxp *rxp; in bna_rit_init() local
701 rxp = (struct bna_rxp *)qe; in bna_rit_init()
702 rxf->rit[offset] = rxp->cq.ccb->id; in bna_rit_init()
1656 struct bna_rxp *rxp; in bna_rx_sm_started_entry() local
1662 rxp = (struct bna_rxp *)qe_rxp; in bna_rx_sm_started_entry()
1663 bna_ib_start(rx->bna, &rxp->cq.ib, is_regular); in bna_rx_sm_started_entry()
1805 struct bna_rxp *rxp = NULL; in bna_bfi_rx_enet_start() local
1820 rxp = (struct bna_rxp *)rxp_qe; in bna_bfi_rx_enet_start()
1822 GET_RXQS(rxp, q0, q1); in bna_bfi_rx_enet_start()
1823 switch (rxp->type) { in bna_bfi_rx_enet_start()
1857 &rxp->cq.qpt); in bna_bfi_rx_enet_start()
1860 rxp->cq.ib.ib_seg_host_addr.lsb; in bna_bfi_rx_enet_start()
1862 rxp->cq.ib.ib_seg_host_addr.msb; in bna_bfi_rx_enet_start()
1864 htons((u16)rxp->cq.ib.intr_vector); in bna_bfi_rx_enet_start()
1871 cfg_req->ib_cfg.msix = (rxp->cq.ib.intr_type == BNA_INTR_T_MSIX) in bna_bfi_rx_enet_start()
1875 htonl((u32)rxp->cq.ib.coalescing_timeo); in bna_bfi_rx_enet_start()
1877 htonl((u32)rxp->cq.ib.interpkt_timeo); in bna_bfi_rx_enet_start()
1878 cfg_req->ib_cfg.inter_pkt_count = (u8)rxp->cq.ib.interpkt_count; in bna_bfi_rx_enet_start()
1880 switch (rxp->type) { in bna_bfi_rx_enet_start()
1923 struct bna_rxp *rxp; in bna_rx_enet_stop() local
1928 rxp = (struct bna_rxp *)qe_rxp; in bna_rx_enet_stop()
1929 bna_ib_stop(rx->bna, &rxp->cq.ib); in bna_rx_enet_stop()
1982 struct bna_rxp *rxp = NULL; in bna_rxp_get() local
1986 rxp = (struct bna_rxp *)qe; in bna_rxp_get()
1987 bfa_q_qe_init(&rxp->qe); in bna_rxp_get()
1989 return rxp; in bna_rxp_get()
1993 bna_rxp_put(struct bna_rx_mod *rx_mod, struct bna_rxp *rxp) in bna_rxp_put() argument
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()
2053 bna_rxp_add_rxqs(struct bna_rxp *rxp, struct bna_rxq *q0, in bna_rxp_add_rxqs() argument
2056 switch (rxp->type) { in bna_rxp_add_rxqs()
2058 rxp->rxq.single.only = q0; in bna_rxp_add_rxqs()
2059 rxp->rxq.single.reserved = NULL; in bna_rxp_add_rxqs()
2062 rxp->rxq.slr.large = q0; in bna_rxp_add_rxqs()
2063 rxp->rxq.slr.small = q1; in bna_rxp_add_rxqs()
2066 rxp->rxq.hds.data = q0; in bna_rxp_add_rxqs()
2067 rxp->rxq.hds.hdr = q1; in bna_rxp_add_rxqs()
2076 struct bna_rxp *rxp, in bna_rxq_qpt_setup() argument
2114 bna_rxp_cqpt_setup(struct bna_rxp *rxp, in bna_rxp_cqpt_setup() argument
2126 rxp->cq.qpt.hw_qpt_ptr.lsb = qpt_mem->dma.lsb; in bna_rxp_cqpt_setup()
2127 rxp->cq.qpt.hw_qpt_ptr.msb = qpt_mem->dma.msb; in bna_rxp_cqpt_setup()
2128 rxp->cq.qpt.kv_qpt_ptr = qpt_mem->kva; in bna_rxp_cqpt_setup()
2129 rxp->cq.qpt.page_count = page_count; in bna_rxp_cqpt_setup()
2130 rxp->cq.qpt.page_size = page_size; in bna_rxp_cqpt_setup()
2132 rxp->cq.ccb->sw_qpt = (void **) swqpt_mem->kva; in bna_rxp_cqpt_setup()
2133 rxp->cq.ccb->sw_q = page_mem->kva; in bna_rxp_cqpt_setup()
2138 for (i = 0; i < rxp->cq.qpt.page_count; i++) { in bna_rxp_cqpt_setup()
2139 rxp->cq.ccb->sw_qpt[i] = kva; in bna_rxp_cqpt_setup()
2143 ((struct bna_dma_addr *)rxp->cq.qpt.kv_qpt_ptr)[i].lsb = in bna_rxp_cqpt_setup()
2145 ((struct bna_dma_addr *)rxp->cq.qpt.kv_qpt_ptr)[i].msb = in bna_rxp_cqpt_setup()
2267 rx_mod->rxp = (struct bna_rxp *) in bna_rx_mod_init()
2298 rxp_ptr = &rx_mod->rxp[index]; in bna_rx_mod_init()
2338 struct bna_rxp *rxp = NULL; in bna_bfi_rx_enet_start_rsp() local
2351 rxp = (struct bna_rxp *)rxp_qe; in bna_bfi_rx_enet_start_rsp()
2352 GET_RXQS(rxp, q0, q1); in bna_bfi_rx_enet_start_rsp()
2355 rxp->cq.ccb->i_dbell->doorbell_addr = in bna_bfi_rx_enet_start_rsp()
2358 rxp->hw_id = cfg_rsp->q_handles[i].hw_cqid; in bna_bfi_rx_enet_start_rsp()
2371 (*rxp->cq.ccb->hw_producer_index) = 0; in bna_bfi_rx_enet_start_rsp()
2372 rxp->cq.ccb->producer_index = 0; in bna_bfi_rx_enet_start_rsp()
2511 struct bna_rxp *rxp; in bna_rx_create() local
2594 rxp = bna_rxp_get(rx_mod); in bna_rx_create()
2595 list_add_tail(&rxp->qe, &rx->rxp_q); in bna_rx_create()
2596 rxp->type = rx_cfg->rxp_type; in bna_rx_create()
2597 rxp->rx = rx; in bna_rx_create()
2598 rxp->cq.rx = rx; in bna_rx_create()
2607 rxp->vector = intr_info->idl[0].vector; in bna_rx_create()
2609 rxp->vector = intr_info->idl[i].vector; in bna_rx_create()
2613 rxp->cq.ib.ib_seg_host_addr.lsb = in bna_rx_create()
2615 rxp->cq.ib.ib_seg_host_addr.msb = in bna_rx_create()
2617 rxp->cq.ib.ib_seg_host_addr_kva = in bna_rx_create()
2619 rxp->cq.ib.intr_type = intr_info->intr_type; in bna_rx_create()
2621 rxp->cq.ib.intr_vector = rxp->vector; in bna_rx_create()
2623 rxp->cq.ib.intr_vector = (1 << rxp->vector); in bna_rx_create()
2624 rxp->cq.ib.coalescing_timeo = rx_cfg->coalescing_timeo; in bna_rx_create()
2625 rxp->cq.ib.interpkt_count = BFI_RX_INTERPKT_COUNT; in bna_rx_create()
2626 rxp->cq.ib.interpkt_timeo = BFI_RX_INTERPKT_TIMEO; in bna_rx_create()
2628 bna_rxp_add_rxqs(rxp, q0, q1); in bna_rx_create()
2633 q0->rxp = rxp; in bna_rx_create()
2649 bna_rxq_qpt_setup(q0, rxp, dpage_count, PAGE_SIZE, in bna_rx_create()
2659 q1->rxp = rxp; in bna_rx_create()
2677 bna_rxq_qpt_setup(q1, rxp, hpage_count, PAGE_SIZE, in bna_rx_create()
2687 rxp->cq.ccb = (struct bna_ccb *) ccb_mem[i].kva; in bna_rx_create()
2695 rxp->cq.ccb->q_depth = cq_depth; in bna_rx_create()
2696 rxp->cq.ccb->cq = &rxp->cq; in bna_rx_create()
2697 rxp->cq.ccb->rcb[0] = q0->rcb; in bna_rx_create()
2698 q0->rcb->ccb = rxp->cq.ccb; in bna_rx_create()
2700 rxp->cq.ccb->rcb[1] = q1->rcb; in bna_rx_create()
2701 q1->rcb->ccb = rxp->cq.ccb; in bna_rx_create()
2703 rxp->cq.ccb->hw_producer_index = in bna_rx_create()
2704 (u32 *)rxp->cq.ib.ib_seg_host_addr_kva; in bna_rx_create()
2705 rxp->cq.ccb->i_dbell = &rxp->cq.ib.door_bell; in bna_rx_create()
2706 rxp->cq.ccb->intr_type = rxp->cq.ib.intr_type; in bna_rx_create()
2707 rxp->cq.ccb->intr_vector = rxp->cq.ib.intr_vector; in bna_rx_create()
2708 rxp->cq.ccb->rx_coalescing_timeo = in bna_rx_create()
2709 rxp->cq.ib.coalescing_timeo; in bna_rx_create()
2710 rxp->cq.ccb->pkt_rate.small_pkt_cnt = 0; in bna_rx_create()
2711 rxp->cq.ccb->pkt_rate.large_pkt_cnt = 0; in bna_rx_create()
2712 rxp->cq.ccb->bnad = bna->bnad; in bna_rx_create()
2713 rxp->cq.ccb->id = i; in bna_rx_create()
2715 bna_rxp_cqpt_setup(rxp, page_count, PAGE_SIZE, in bna_rx_create()
2719 rx->ccb_setup_cbfn(bnad, rxp->cq.ccb); in bna_rx_create()
2739 struct bna_rxp *rxp; in bna_rx_destroy() local
2745 bfa_q_deq(&rx->rxp_q, &rxp); in bna_rx_destroy()
2746 GET_RXQS(rxp, q0, q1); in bna_rx_destroy()
2750 q0->rxp = NULL; in bna_rx_destroy()
2758 q1->rxp = NULL; in bna_rx_destroy()
2762 rxp->rxq.slr.large = NULL; in bna_rx_destroy()
2763 rxp->rxq.slr.small = NULL; in bna_rx_destroy()
2766 rx->ccb_destroy_cbfn(rx->bna->bnad, rxp->cq.ccb); in bna_rx_destroy()
2767 rxp->cq.ccb = NULL; in bna_rx_destroy()
2768 rxp->rx = NULL; in bna_rx_destroy()
2769 bna_rxp_put(rx_mod, rxp); in bna_rx_destroy()
2930 struct bna_rxp *rxp; in bna_rx_coalescing_timeo_set() local
2934 rxp = (struct bna_rxp *)qe; in bna_rx_coalescing_timeo_set()
2935 rxp->cq.ccb->rx_coalescing_timeo = coalescing_timeo; in bna_rx_coalescing_timeo_set()
2936 bna_ib_coalescing_timeo_set(&rxp->cq.ib, coalescing_timeo); in bna_rx_coalescing_timeo_set()