Lines Matching refs:rx_cfg
1735 cfg_req->rx_cfg.rxq_type = BFI_ENET_RXQ_LARGE_SMALL; in bna_bfi_rx_enet_start()
1739 cfg_req->rx_cfg.rxq_type = BFI_ENET_RXQ_HDS; in bna_bfi_rx_enet_start()
1740 cfg_req->rx_cfg.hds.type = rx->hds_cfg.hdr_type; in bna_bfi_rx_enet_start()
1741 cfg_req->rx_cfg.hds.force_offset = rx->hds_cfg.forced_offset; in bna_bfi_rx_enet_start()
1742 cfg_req->rx_cfg.hds.max_header_size = rx->hds_cfg.forced_offset; in bna_bfi_rx_enet_start()
1746 cfg_req->rx_cfg.rxq_type = BFI_ENET_RXQ_SINGLE; in bna_bfi_rx_enet_start()
1752 cfg_req->rx_cfg.strip_vlan = rx->rxf.vlan_strip_status; in bna_bfi_rx_enet_start()
1789 bna_rx_res_check(struct bna_rx_mod *rx_mod, struct bna_rx_config *rx_cfg) in bna_rx_res_check() argument
1796 if (rx_cfg->rxp_type == BNA_RXP_SINGLE) { in bna_rx_res_check()
1797 if ((rx_mod->rxp_free_count < rx_cfg->num_paths) || in bna_rx_res_check()
1798 (rx_mod->rxq_free_count < rx_cfg->num_paths)) in bna_rx_res_check()
1801 if ((rx_mod->rxp_free_count < rx_cfg->num_paths) || in bna_rx_res_check()
1802 (rx_mod->rxq_free_count < (2 * rx_cfg->num_paths))) in bna_rx_res_check()
2357 struct bna_rx_config *rx_cfg, in bna_rx_create() argument
2384 if (!bna_rx_res_check(rx_mod, rx_cfg)) in bna_rx_create()
2410 rx = bna_rx_get(rx_mod, rx_cfg->rx_type); in bna_rx_create()
2441 rx->num_paths = rx_cfg->num_paths; in bna_rx_create()
2445 rxp->type = rx_cfg->rxp_type; in bna_rx_create()
2450 if (BNA_RXP_SINGLE == rx_cfg->rxp_type) in bna_rx_create()
2473 rxp->cq.ib.coalescing_timeo = rx_cfg->coalescing_timeo; in bna_rx_create()
2487 q0->rcb->q_depth = rx_cfg->q_depth; in bna_rx_create()
2509 q1->rcb->q_depth = rx_cfg->q_depth; in bna_rx_create()
2513 q1->buffer_size = (rx_cfg->rxp_type == BNA_RXP_HDS) ? in bna_rx_create()
2514 rx_cfg->hds_config.forced_offset in bna_rx_create()
2515 : rx_cfg->small_buff_size; in bna_rx_create()
2530 rxp->cq.ccb->q_depth = rx_cfg->q_depth + in bna_rx_create()
2531 ((rx_cfg->rxp_type == BNA_RXP_SINGLE) ? in bna_rx_create()
2532 0 : rx_cfg->q_depth); in bna_rx_create()
2559 rx->hds_cfg = rx_cfg->hds_config; in bna_rx_create()
2561 bna_rxf_init(&rx->rxf, rx, rx_cfg, res_info); in bna_rx_create()