Lines Matching refs:rxp

562 	struct bna_rxp *rxp;  in bna_rit_init()  local
566 list_for_each_entry(rxp, &rx->rxp_q, qe) { in bna_rit_init()
567 rxf->rit[offset] = rxp->cq.ccb->id; in bna_rit_init()
1470 struct bna_rxp *rxp; in bna_rx_sm_started_entry() local
1474 list_for_each_entry(rxp, &rx->rxp_q, qe) in bna_rx_sm_started_entry()
1475 bna_ib_start(rx->bna, &rxp->cq.ib, is_regular); in bna_rx_sm_started_entry()
1616 struct bna_rxp *rxp = NULL; in bna_bfi_rx_enet_start() local
1628 rxp = rxp ? list_next_entry(rxp, qe) in bna_bfi_rx_enet_start()
1630 GET_RXQS(rxp, q0, q1); in bna_bfi_rx_enet_start()
1631 switch (rxp->type) { in bna_bfi_rx_enet_start()
1665 &rxp->cq.qpt); in bna_bfi_rx_enet_start()
1668 rxp->cq.ib.ib_seg_host_addr.lsb; in bna_bfi_rx_enet_start()
1670 rxp->cq.ib.ib_seg_host_addr.msb; in bna_bfi_rx_enet_start()
1672 htons((u16)rxp->cq.ib.intr_vector); in bna_bfi_rx_enet_start()
1679 cfg_req->ib_cfg.msix = (rxp->cq.ib.intr_type == BNA_INTR_T_MSIX) in bna_bfi_rx_enet_start()
1683 htonl((u32)rxp->cq.ib.coalescing_timeo); in bna_bfi_rx_enet_start()
1685 htonl((u32)rxp->cq.ib.interpkt_timeo); in bna_bfi_rx_enet_start()
1686 cfg_req->ib_cfg.inter_pkt_count = (u8)rxp->cq.ib.interpkt_count; in bna_bfi_rx_enet_start()
1688 switch (rxp->type) { in bna_bfi_rx_enet_start()
1731 struct bna_rxp *rxp; in bna_rx_enet_stop() local
1734 list_for_each_entry(rxp, &rx->rxp_q, qe) in bna_rx_enet_stop()
1735 bna_ib_stop(rx->bna, &rxp->cq.ib); in bna_rx_enet_stop()
1783 struct bna_rxp *rxp = NULL; in bna_rxp_get() local
1785 rxp = list_first_entry(&rx_mod->rxp_free_q, struct bna_rxp, qe); in bna_rxp_get()
1786 list_del(&rxp->qe); in bna_rxp_get()
1789 return rxp; in bna_rxp_get()
1793 bna_rxp_put(struct bna_rx_mod *rx_mod, struct bna_rxp *rxp) in bna_rxp_put() argument
1795 list_add_tail(&rxp->qe, &rx_mod->rxp_free_q); in bna_rxp_put()
1831 bna_rxp_add_rxqs(struct bna_rxp *rxp, struct bna_rxq *q0, in bna_rxp_add_rxqs() argument
1834 switch (rxp->type) { in bna_rxp_add_rxqs()
1836 rxp->rxq.single.only = q0; in bna_rxp_add_rxqs()
1837 rxp->rxq.single.reserved = NULL; in bna_rxp_add_rxqs()
1840 rxp->rxq.slr.large = q0; in bna_rxp_add_rxqs()
1841 rxp->rxq.slr.small = q1; in bna_rxp_add_rxqs()
1844 rxp->rxq.hds.data = q0; in bna_rxp_add_rxqs()
1845 rxp->rxq.hds.hdr = q1; in bna_rxp_add_rxqs()
1854 struct bna_rxp *rxp, in bna_rxq_qpt_setup() argument
1892 bna_rxp_cqpt_setup(struct bna_rxp *rxp, in bna_rxp_cqpt_setup() argument
1904 rxp->cq.qpt.hw_qpt_ptr.lsb = qpt_mem->dma.lsb; in bna_rxp_cqpt_setup()
1905 rxp->cq.qpt.hw_qpt_ptr.msb = qpt_mem->dma.msb; in bna_rxp_cqpt_setup()
1906 rxp->cq.qpt.kv_qpt_ptr = qpt_mem->kva; in bna_rxp_cqpt_setup()
1907 rxp->cq.qpt.page_count = page_count; in bna_rxp_cqpt_setup()
1908 rxp->cq.qpt.page_size = page_size; in bna_rxp_cqpt_setup()
1910 rxp->cq.ccb->sw_qpt = (void **) swqpt_mem->kva; in bna_rxp_cqpt_setup()
1911 rxp->cq.ccb->sw_q = page_mem->kva; in bna_rxp_cqpt_setup()
1916 for (i = 0; i < rxp->cq.qpt.page_count; i++) { in bna_rxp_cqpt_setup()
1917 rxp->cq.ccb->sw_qpt[i] = kva; in bna_rxp_cqpt_setup()
1921 ((struct bna_dma_addr *)rxp->cq.qpt.kv_qpt_ptr)[i].lsb = in bna_rxp_cqpt_setup()
1923 ((struct bna_dma_addr *)rxp->cq.qpt.kv_qpt_ptr)[i].msb = in bna_rxp_cqpt_setup()
2036 rx_mod->rxp = (struct bna_rxp *) in bna_rx_mod_init()
2066 rxp_ptr = &rx_mod->rxp[index]; in bna_rx_mod_init()
2089 struct bna_rxp *rxp = NULL; in bna_bfi_rx_enet_start_rsp() local
2098 for (i = 0, rxp = list_first_entry(&rx->rxp_q, struct bna_rxp, qe); in bna_bfi_rx_enet_start_rsp()
2099 i < rx->num_paths; i++, rxp = list_next_entry(rxp, qe)) { in bna_bfi_rx_enet_start_rsp()
2100 GET_RXQS(rxp, q0, q1); in bna_bfi_rx_enet_start_rsp()
2103 rxp->cq.ccb->i_dbell->doorbell_addr = in bna_bfi_rx_enet_start_rsp()
2106 rxp->hw_id = cfg_rsp->q_handles[i].hw_cqid; in bna_bfi_rx_enet_start_rsp()
2119 (*rxp->cq.ccb->hw_producer_index) = 0; in bna_bfi_rx_enet_start_rsp()
2120 rxp->cq.ccb->producer_index = 0; in bna_bfi_rx_enet_start_rsp()
2258 struct bna_rxp *rxp; in bna_rx_create() local
2341 rxp = bna_rxp_get(rx_mod); in bna_rx_create()
2342 list_add_tail(&rxp->qe, &rx->rxp_q); in bna_rx_create()
2343 rxp->type = rx_cfg->rxp_type; in bna_rx_create()
2344 rxp->rx = rx; in bna_rx_create()
2345 rxp->cq.rx = rx; in bna_rx_create()
2354 rxp->vector = intr_info->idl[0].vector; in bna_rx_create()
2356 rxp->vector = intr_info->idl[i].vector; in bna_rx_create()
2360 rxp->cq.ib.ib_seg_host_addr.lsb = in bna_rx_create()
2362 rxp->cq.ib.ib_seg_host_addr.msb = in bna_rx_create()
2364 rxp->cq.ib.ib_seg_host_addr_kva = in bna_rx_create()
2366 rxp->cq.ib.intr_type = intr_info->intr_type; in bna_rx_create()
2368 rxp->cq.ib.intr_vector = rxp->vector; in bna_rx_create()
2370 rxp->cq.ib.intr_vector = BIT(rxp->vector); in bna_rx_create()
2371 rxp->cq.ib.coalescing_timeo = rx_cfg->coalescing_timeo; in bna_rx_create()
2372 rxp->cq.ib.interpkt_count = BFI_RX_INTERPKT_COUNT; in bna_rx_create()
2373 rxp->cq.ib.interpkt_timeo = BFI_RX_INTERPKT_TIMEO; in bna_rx_create()
2375 bna_rxp_add_rxqs(rxp, q0, q1); in bna_rx_create()
2380 q0->rxp = rxp; in bna_rx_create()
2397 bna_rxq_qpt_setup(q0, rxp, dpage_count, PAGE_SIZE, in bna_rx_create()
2407 q1->rxp = rxp; in bna_rx_create()
2426 bna_rxq_qpt_setup(q1, rxp, hpage_count, PAGE_SIZE, in bna_rx_create()
2436 rxp->cq.ccb = (struct bna_ccb *) ccb_mem[i].kva; in bna_rx_create()
2444 rxp->cq.ccb->q_depth = cq_depth; in bna_rx_create()
2445 rxp->cq.ccb->cq = &rxp->cq; in bna_rx_create()
2446 rxp->cq.ccb->rcb[0] = q0->rcb; in bna_rx_create()
2447 q0->rcb->ccb = rxp->cq.ccb; in bna_rx_create()
2449 rxp->cq.ccb->rcb[1] = q1->rcb; in bna_rx_create()
2450 q1->rcb->ccb = rxp->cq.ccb; in bna_rx_create()
2452 rxp->cq.ccb->hw_producer_index = in bna_rx_create()
2453 (u32 *)rxp->cq.ib.ib_seg_host_addr_kva; in bna_rx_create()
2454 rxp->cq.ccb->i_dbell = &rxp->cq.ib.door_bell; in bna_rx_create()
2455 rxp->cq.ccb->intr_type = rxp->cq.ib.intr_type; in bna_rx_create()
2456 rxp->cq.ccb->intr_vector = rxp->cq.ib.intr_vector; in bna_rx_create()
2457 rxp->cq.ccb->rx_coalescing_timeo = in bna_rx_create()
2458 rxp->cq.ib.coalescing_timeo; in bna_rx_create()
2459 rxp->cq.ccb->pkt_rate.small_pkt_cnt = 0; in bna_rx_create()
2460 rxp->cq.ccb->pkt_rate.large_pkt_cnt = 0; in bna_rx_create()
2461 rxp->cq.ccb->bnad = bna->bnad; in bna_rx_create()
2462 rxp->cq.ccb->id = i; in bna_rx_create()
2464 bna_rxp_cqpt_setup(rxp, page_count, PAGE_SIZE, in bna_rx_create()
2468 rx->ccb_setup_cbfn(bnad, rxp->cq.ccb); in bna_rx_create()
2488 struct bna_rxp *rxp; in bna_rx_destroy() local
2494 rxp = list_first_entry(&rx->rxp_q, struct bna_rxp, qe); in bna_rx_destroy()
2495 list_del(&rxp->qe); in bna_rx_destroy()
2496 GET_RXQS(rxp, q0, q1); in bna_rx_destroy()
2500 q0->rxp = NULL; in bna_rx_destroy()
2508 q1->rxp = NULL; in bna_rx_destroy()
2512 rxp->rxq.slr.large = NULL; in bna_rx_destroy()
2513 rxp->rxq.slr.small = NULL; in bna_rx_destroy()
2516 rx->ccb_destroy_cbfn(rx->bna->bnad, rxp->cq.ccb); in bna_rx_destroy()
2517 rxp->cq.ccb = NULL; in bna_rx_destroy()
2518 rxp->rx = NULL; in bna_rx_destroy()
2519 bna_rxp_put(rx_mod, rxp); in bna_rx_destroy()
2676 struct bna_rxp *rxp; in bna_rx_coalescing_timeo_set() local
2678 list_for_each_entry(rxp, &rx->rxp_q, qe) { in bna_rx_coalescing_timeo_set()
2679 rxp->cq.ccb->rx_coalescing_timeo = coalescing_timeo; in bna_rx_coalescing_timeo_set()
2680 bna_ib_coalescing_timeo_set(&rxp->cq.ib, coalescing_timeo); in bna_rx_coalescing_timeo_set()