Lines Matching refs:rxp
570 struct bna_rxp *rxp; in bna_rit_init() local
574 list_for_each_entry(rxp, &rx->rxp_q, qe) { in bna_rit_init()
575 rxf->rit[offset] = rxp->cq.ccb->id; in bna_rit_init()
1478 struct bna_rxp *rxp; in bna_rx_sm_started_entry() local
1482 list_for_each_entry(rxp, &rx->rxp_q, qe) in bna_rx_sm_started_entry()
1483 bna_ib_start(rx->bna, &rxp->cq.ib, is_regular); in bna_rx_sm_started_entry()
1624 struct bna_rxp *rxp = NULL; in bna_bfi_rx_enet_start() local
1636 rxp = rxp ? list_next_entry(rxp, qe) in bna_bfi_rx_enet_start()
1638 GET_RXQS(rxp, q0, q1); in bna_bfi_rx_enet_start()
1639 switch (rxp->type) { in bna_bfi_rx_enet_start()
1673 &rxp->cq.qpt); in bna_bfi_rx_enet_start()
1676 rxp->cq.ib.ib_seg_host_addr.lsb; in bna_bfi_rx_enet_start()
1678 rxp->cq.ib.ib_seg_host_addr.msb; in bna_bfi_rx_enet_start()
1680 htons((u16)rxp->cq.ib.intr_vector); in bna_bfi_rx_enet_start()
1687 cfg_req->ib_cfg.msix = (rxp->cq.ib.intr_type == BNA_INTR_T_MSIX) in bna_bfi_rx_enet_start()
1691 htonl((u32)rxp->cq.ib.coalescing_timeo); in bna_bfi_rx_enet_start()
1693 htonl((u32)rxp->cq.ib.interpkt_timeo); in bna_bfi_rx_enet_start()
1694 cfg_req->ib_cfg.inter_pkt_count = (u8)rxp->cq.ib.interpkt_count; in bna_bfi_rx_enet_start()
1696 switch (rxp->type) { in bna_bfi_rx_enet_start()
1739 struct bna_rxp *rxp; in bna_rx_enet_stop() local
1742 list_for_each_entry(rxp, &rx->rxp_q, qe) in bna_rx_enet_stop()
1743 bna_ib_stop(rx->bna, &rxp->cq.ib); in bna_rx_enet_stop()
1791 struct bna_rxp *rxp = NULL; in bna_rxp_get() local
1793 rxp = list_first_entry(&rx_mod->rxp_free_q, struct bna_rxp, qe); in bna_rxp_get()
1794 list_del(&rxp->qe); in bna_rxp_get()
1797 return rxp; in bna_rxp_get()
1801 bna_rxp_put(struct bna_rx_mod *rx_mod, struct bna_rxp *rxp) in bna_rxp_put() argument
1803 list_add_tail(&rxp->qe, &rx_mod->rxp_free_q); in bna_rxp_put()
1839 bna_rxp_add_rxqs(struct bna_rxp *rxp, struct bna_rxq *q0, in bna_rxp_add_rxqs() argument
1842 switch (rxp->type) { in bna_rxp_add_rxqs()
1844 rxp->rxq.single.only = q0; in bna_rxp_add_rxqs()
1845 rxp->rxq.single.reserved = NULL; in bna_rxp_add_rxqs()
1848 rxp->rxq.slr.large = q0; in bna_rxp_add_rxqs()
1849 rxp->rxq.slr.small = q1; in bna_rxp_add_rxqs()
1852 rxp->rxq.hds.data = q0; in bna_rxp_add_rxqs()
1853 rxp->rxq.hds.hdr = q1; in bna_rxp_add_rxqs()
1862 struct bna_rxp *rxp, in bna_rxq_qpt_setup() argument
1900 bna_rxp_cqpt_setup(struct bna_rxp *rxp, in bna_rxp_cqpt_setup() argument
1912 rxp->cq.qpt.hw_qpt_ptr.lsb = qpt_mem->dma.lsb; in bna_rxp_cqpt_setup()
1913 rxp->cq.qpt.hw_qpt_ptr.msb = qpt_mem->dma.msb; in bna_rxp_cqpt_setup()
1914 rxp->cq.qpt.kv_qpt_ptr = qpt_mem->kva; in bna_rxp_cqpt_setup()
1915 rxp->cq.qpt.page_count = page_count; in bna_rxp_cqpt_setup()
1916 rxp->cq.qpt.page_size = page_size; in bna_rxp_cqpt_setup()
1918 rxp->cq.ccb->sw_qpt = (void **) swqpt_mem->kva; in bna_rxp_cqpt_setup()
1919 rxp->cq.ccb->sw_q = page_mem->kva; in bna_rxp_cqpt_setup()
1924 for (i = 0; i < rxp->cq.qpt.page_count; i++) { in bna_rxp_cqpt_setup()
1925 rxp->cq.ccb->sw_qpt[i] = kva; in bna_rxp_cqpt_setup()
1929 ((struct bna_dma_addr *)rxp->cq.qpt.kv_qpt_ptr)[i].lsb = in bna_rxp_cqpt_setup()
1931 ((struct bna_dma_addr *)rxp->cq.qpt.kv_qpt_ptr)[i].msb = in bna_rxp_cqpt_setup()
2044 rx_mod->rxp = (struct bna_rxp *) in bna_rx_mod_init()
2074 rxp_ptr = &rx_mod->rxp[index]; in bna_rx_mod_init()
2097 struct bna_rxp *rxp = NULL; in bna_bfi_rx_enet_start_rsp() local
2106 for (i = 0, rxp = list_first_entry(&rx->rxp_q, struct bna_rxp, qe); in bna_bfi_rx_enet_start_rsp()
2107 i < rx->num_paths; i++, rxp = list_next_entry(rxp, qe)) { in bna_bfi_rx_enet_start_rsp()
2108 GET_RXQS(rxp, q0, q1); in bna_bfi_rx_enet_start_rsp()
2111 rxp->cq.ccb->i_dbell->doorbell_addr = in bna_bfi_rx_enet_start_rsp()
2114 rxp->hw_id = cfg_rsp->q_handles[i].hw_cqid; in bna_bfi_rx_enet_start_rsp()
2127 (*rxp->cq.ccb->hw_producer_index) = 0; in bna_bfi_rx_enet_start_rsp()
2128 rxp->cq.ccb->producer_index = 0; in bna_bfi_rx_enet_start_rsp()
2266 struct bna_rxp *rxp; in bna_rx_create() local
2349 rxp = bna_rxp_get(rx_mod); in bna_rx_create()
2350 list_add_tail(&rxp->qe, &rx->rxp_q); in bna_rx_create()
2351 rxp->type = rx_cfg->rxp_type; in bna_rx_create()
2352 rxp->rx = rx; in bna_rx_create()
2353 rxp->cq.rx = rx; in bna_rx_create()
2362 rxp->vector = intr_info->idl[0].vector; in bna_rx_create()
2364 rxp->vector = intr_info->idl[i].vector; in bna_rx_create()
2368 rxp->cq.ib.ib_seg_host_addr.lsb = in bna_rx_create()
2370 rxp->cq.ib.ib_seg_host_addr.msb = in bna_rx_create()
2372 rxp->cq.ib.ib_seg_host_addr_kva = in bna_rx_create()
2374 rxp->cq.ib.intr_type = intr_info->intr_type; in bna_rx_create()
2376 rxp->cq.ib.intr_vector = rxp->vector; in bna_rx_create()
2378 rxp->cq.ib.intr_vector = BIT(rxp->vector); in bna_rx_create()
2379 rxp->cq.ib.coalescing_timeo = rx_cfg->coalescing_timeo; in bna_rx_create()
2380 rxp->cq.ib.interpkt_count = BFI_RX_INTERPKT_COUNT; in bna_rx_create()
2381 rxp->cq.ib.interpkt_timeo = BFI_RX_INTERPKT_TIMEO; in bna_rx_create()
2383 bna_rxp_add_rxqs(rxp, q0, q1); in bna_rx_create()
2388 q0->rxp = rxp; in bna_rx_create()
2405 bna_rxq_qpt_setup(q0, rxp, dpage_count, PAGE_SIZE, in bna_rx_create()
2415 q1->rxp = rxp; in bna_rx_create()
2434 bna_rxq_qpt_setup(q1, rxp, hpage_count, PAGE_SIZE, in bna_rx_create()
2444 rxp->cq.ccb = (struct bna_ccb *) ccb_mem[i].kva; in bna_rx_create()
2452 rxp->cq.ccb->q_depth = cq_depth; in bna_rx_create()
2453 rxp->cq.ccb->cq = &rxp->cq; in bna_rx_create()
2454 rxp->cq.ccb->rcb[0] = q0->rcb; in bna_rx_create()
2455 q0->rcb->ccb = rxp->cq.ccb; in bna_rx_create()
2457 rxp->cq.ccb->rcb[1] = q1->rcb; in bna_rx_create()
2458 q1->rcb->ccb = rxp->cq.ccb; in bna_rx_create()
2460 rxp->cq.ccb->hw_producer_index = in bna_rx_create()
2461 (u32 *)rxp->cq.ib.ib_seg_host_addr_kva; in bna_rx_create()
2462 rxp->cq.ccb->i_dbell = &rxp->cq.ib.door_bell; in bna_rx_create()
2463 rxp->cq.ccb->intr_type = rxp->cq.ib.intr_type; in bna_rx_create()
2464 rxp->cq.ccb->intr_vector = rxp->cq.ib.intr_vector; in bna_rx_create()
2465 rxp->cq.ccb->rx_coalescing_timeo = in bna_rx_create()
2466 rxp->cq.ib.coalescing_timeo; in bna_rx_create()
2467 rxp->cq.ccb->pkt_rate.small_pkt_cnt = 0; in bna_rx_create()
2468 rxp->cq.ccb->pkt_rate.large_pkt_cnt = 0; in bna_rx_create()
2469 rxp->cq.ccb->bnad = bna->bnad; in bna_rx_create()
2470 rxp->cq.ccb->id = i; in bna_rx_create()
2472 bna_rxp_cqpt_setup(rxp, page_count, PAGE_SIZE, in bna_rx_create()
2476 rx->ccb_setup_cbfn(bnad, rxp->cq.ccb); in bna_rx_create()
2496 struct bna_rxp *rxp; in bna_rx_destroy() local
2502 rxp = list_first_entry(&rx->rxp_q, struct bna_rxp, qe); in bna_rx_destroy()
2503 list_del(&rxp->qe); in bna_rx_destroy()
2504 GET_RXQS(rxp, q0, q1); in bna_rx_destroy()
2508 q0->rxp = NULL; in bna_rx_destroy()
2516 q1->rxp = NULL; in bna_rx_destroy()
2520 rxp->rxq.slr.large = NULL; in bna_rx_destroy()
2521 rxp->rxq.slr.small = NULL; in bna_rx_destroy()
2524 rx->ccb_destroy_cbfn(rx->bna->bnad, rxp->cq.ccb); in bna_rx_destroy()
2525 rxp->cq.ccb = NULL; in bna_rx_destroy()
2526 rxp->rx = NULL; in bna_rx_destroy()
2527 bna_rxp_put(rx_mod, rxp); in bna_rx_destroy()
2684 struct bna_rxp *rxp; in bna_rx_coalescing_timeo_set() local
2686 list_for_each_entry(rxp, &rx->rxp_q, qe) { in bna_rx_coalescing_timeo_set()
2687 rxp->cq.ccb->rx_coalescing_timeo = coalescing_timeo; in bna_rx_coalescing_timeo_set()
2688 bna_ib_coalescing_timeo_set(&rxp->cq.ib, coalescing_timeo); in bna_rx_coalescing_timeo_set()