Lines Matching refs:q1
1625 struct bna_rxq *q0 = NULL, *q1 = NULL; in bna_bfi_rx_enet_start() local
1638 GET_RXQS(rxp, q0, q1); in bna_bfi_rx_enet_start()
1644 &q1->qpt); in bna_bfi_rx_enet_start()
1646 htons((u16)q1->buffer_size); in bna_bfi_rx_enet_start()
1840 struct bna_rxq *q1) in bna_rxp_add_rxqs() argument
1849 rxp->rxq.slr.small = q1; in bna_rxp_add_rxqs()
1853 rxp->rxq.hds.hdr = q1; in bna_rxp_add_rxqs()
2098 struct bna_rxq *q0 = NULL, *q1 = NULL; in bna_bfi_rx_enet_start_rsp() local
2108 GET_RXQS(rxp, q0, q1); in bna_bfi_rx_enet_start_rsp()
2119 if (q1) { in bna_bfi_rx_enet_start_rsp()
2120 q1->rcb->q_dbell = in bna_bfi_rx_enet_start_rsp()
2123 q1->hw_id = cfg_rsp->q_handles[i].hw_sqid; in bna_bfi_rx_enet_start_rsp()
2130 if (q1) in bna_bfi_rx_enet_start_rsp()
2131 q1->rcb->producer_index = q1->rcb->consumer_index = 0; in bna_bfi_rx_enet_start_rsp()
2268 struct bna_rxq *q1; in bna_rx_create() local
2357 q1 = NULL; in bna_rx_create()
2359 q1 = bna_rxq_get(rx_mod); in bna_rx_create()
2383 bna_rxp_add_rxqs(rxp, q0, q1); in bna_rx_create()
2413 if (q1) { in bna_rx_create()
2414 q1->rx = rx; in bna_rx_create()
2415 q1->rxp = rxp; in bna_rx_create()
2417 q1->rcb = (struct bna_rcb *) rcb_mem[rcb_idx].kva; in bna_rx_create()
2418 q1->rcb->unmap_q = (void *)hqunmap_mem[hq_idx].kva; in bna_rx_create()
2420 q1->rcb->q_depth = rx_cfg->q1_depth; in bna_rx_create()
2421 q1->q_depth = rx_cfg->q1_depth; in bna_rx_create()
2422 q1->multi_buffer = BNA_STATUS_T_DISABLED; in bna_rx_create()
2423 q1->num_vecs = 1; in bna_rx_create()
2424 q1->rcb->rxq = q1; in bna_rx_create()
2425 q1->rcb->bnad = bna->bnad; in bna_rx_create()
2426 q1->rcb->id = 1; in bna_rx_create()
2427 q1->buffer_size = (rx_cfg->rxp_type == BNA_RXP_HDS) ? in bna_rx_create()
2430 q1->rx_packets = q1->rx_bytes = 0; in bna_rx_create()
2431 q1->rx_packets_with_error = q1->rxbuf_alloc_failed = 0; in bna_rx_create()
2432 q1->rxbuf_map_failed = 0; in bna_rx_create()
2434 bna_rxq_qpt_setup(q1, rxp, hpage_count, PAGE_SIZE, in bna_rx_create()
2439 rx->rcb_setup_cbfn(bnad, q1->rcb); in bna_rx_create()
2456 if (q1) { 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()
2495 struct bna_rxq *q1 = NULL; in bna_rx_destroy() local
2504 GET_RXQS(rxp, q0, q1); in bna_rx_destroy()
2512 if (q1) { in bna_rx_destroy()
2514 rx->rcb_destroy_cbfn(rx->bna->bnad, q1->rcb); in bna_rx_destroy()
2515 q1->rcb = NULL; in bna_rx_destroy()
2516 q1->rxp = NULL; in bna_rx_destroy()
2517 q1->rx = NULL; in bna_rx_destroy()
2518 bna_rxq_put(rx_mod, q1); in bna_rx_destroy()