Lines Matching refs:q0
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()
1652 &q0->qpt); in bna_bfi_rx_enet_start()
1653 if (q0->multi_buffer) in bna_bfi_rx_enet_start()
1662 q0->buffer_size = in bna_bfi_rx_enet_start()
1665 htons((u16)q0->buffer_size); in bna_bfi_rx_enet_start()
1839 bna_rxp_add_rxqs(struct bna_rxp *rxp, struct bna_rxq *q0, in bna_rxp_add_rxqs() argument
1844 rxp->rxq.single.only = q0; in bna_rxp_add_rxqs()
1848 rxp->rxq.slr.large = q0; in bna_rxp_add_rxqs()
1852 rxp->rxq.hds.data = q0; 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()
2115 q0->rcb->q_dbell = in bna_bfi_rx_enet_start_rsp()
2118 q0->hw_id = cfg_rsp->q_handles[i].hw_lqid; in bna_bfi_rx_enet_start_rsp()
2129 q0->rcb->producer_index = q0->rcb->consumer_index = 0; in bna_bfi_rx_enet_start_rsp()
2267 struct bna_rxq *q0; in bna_rx_create() local
2355 q0 = bna_rxq_get(rx_mod); in bna_rx_create()
2383 bna_rxp_add_rxqs(rxp, q0, q1); in bna_rx_create()
2387 q0->rx = rx; in bna_rx_create()
2388 q0->rxp = rxp; in bna_rx_create()
2390 q0->rcb = (struct bna_rcb *) rcb_mem[rcb_idx].kva; in bna_rx_create()
2391 q0->rcb->unmap_q = (void *)dqunmap_mem[dq_idx].kva; in bna_rx_create()
2393 q0->rcb->q_depth = rx_cfg->q0_depth; in bna_rx_create()
2394 q0->q_depth = rx_cfg->q0_depth; in bna_rx_create()
2395 q0->multi_buffer = rx_cfg->q0_multi_buf; in bna_rx_create()
2396 q0->buffer_size = rx_cfg->q0_buf_size; in bna_rx_create()
2397 q0->num_vecs = rx_cfg->q0_num_vecs; in bna_rx_create()
2398 q0->rcb->rxq = q0; in bna_rx_create()
2399 q0->rcb->bnad = bna->bnad; in bna_rx_create()
2400 q0->rcb->id = 0; in bna_rx_create()
2401 q0->rx_packets = q0->rx_bytes = 0; in bna_rx_create()
2402 q0->rx_packets_with_error = q0->rxbuf_alloc_failed = 0; in bna_rx_create()
2403 q0->rxbuf_map_failed = 0; in bna_rx_create()
2405 bna_rxq_qpt_setup(q0, rxp, dpage_count, PAGE_SIZE, in bna_rx_create()
2409 rx->rcb_setup_cbfn(bnad, q0->rcb); 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()
2494 struct bna_rxq *q0 = NULL; in bna_rx_destroy() local
2504 GET_RXQS(rxp, q0, q1); in bna_rx_destroy()
2506 rx->rcb_destroy_cbfn(rx->bna->bnad, q0->rcb); in bna_rx_destroy()
2507 q0->rcb = NULL; in bna_rx_destroy()
2508 q0->rxp = NULL; in bna_rx_destroy()
2509 q0->rx = NULL; in bna_rx_destroy()
2510 bna_rxq_put(rx_mod, q0); in bna_rx_destroy()