Lines Matching refs:res_info
1610 bnad_tx_res_free(struct bnad *bnad, struct bna_res_info *res_info) in bnad_tx_res_free() argument
1615 if (res_info[i].res_type == BNA_RES_T_MEM) in bnad_tx_res_free()
1616 bnad_mem_free(bnad, &res_info[i].res_u.mem_info); in bnad_tx_res_free()
1617 else if (res_info[i].res_type == BNA_RES_T_INTR) in bnad_tx_res_free()
1618 bnad_txrx_irq_free(bnad, &res_info[i].res_u.intr_info); in bnad_tx_res_free()
1624 bnad_tx_res_alloc(struct bnad *bnad, struct bna_res_info *res_info, in bnad_tx_res_alloc() argument
1630 if (res_info[i].res_type == BNA_RES_T_MEM) in bnad_tx_res_alloc()
1632 &res_info[i].res_u.mem_info); in bnad_tx_res_alloc()
1633 else if (res_info[i].res_type == BNA_RES_T_INTR) in bnad_tx_res_alloc()
1635 &res_info[i].res_u.intr_info); in bnad_tx_res_alloc()
1642 bnad_tx_res_free(bnad, res_info); in bnad_tx_res_alloc()
1648 bnad_rx_res_free(struct bnad *bnad, struct bna_res_info *res_info) in bnad_rx_res_free() argument
1653 if (res_info[i].res_type == BNA_RES_T_MEM) in bnad_rx_res_free()
1654 bnad_mem_free(bnad, &res_info[i].res_u.mem_info); in bnad_rx_res_free()
1655 else if (res_info[i].res_type == BNA_RES_T_INTR) in bnad_rx_res_free()
1656 bnad_txrx_irq_free(bnad, &res_info[i].res_u.intr_info); in bnad_rx_res_free()
1662 bnad_rx_res_alloc(struct bnad *bnad, struct bna_res_info *res_info, in bnad_rx_res_alloc() argument
1669 if (res_info[i].res_type == BNA_RES_T_MEM) in bnad_rx_res_alloc()
1671 &res_info[i].res_u.mem_info); in bnad_rx_res_alloc()
1672 else if (res_info[i].res_type == BNA_RES_T_INTR) in bnad_rx_res_alloc()
1674 &res_info[i].res_u.intr_info); in bnad_rx_res_alloc()
1681 bnad_rx_res_free(bnad, res_info); in bnad_rx_res_alloc()
1914 struct bna_res_info *res_info = &bnad->tx_res_info[tx_id].res_info[0]; in bnad_destroy_tx() local
1937 bnad_tx_res_free(bnad, res_info); in bnad_destroy_tx()
1946 struct bna_res_info *res_info = &bnad->tx_res_info[tx_id].res_info[0]; in bnad_setup_tx() local
1948 &res_info[BNA_TX_RES_INTR_T_TXCMPL].res_u.intr_info; in bnad_setup_tx()
1972 bnad->txq_depth, res_info); in bnad_setup_tx()
1976 BNAD_FILL_UNMAPQ_MEM_REQ(&res_info[BNA_TX_RES_MEM_T_UNMAPQ], in bnad_setup_tx()
1981 err = bnad_tx_res_alloc(bnad, res_info, tx_id); in bnad_setup_tx()
1987 tx = bna_tx_create(&bnad->bna, bnad, tx_config, &tx_cbfn, res_info, in bnad_setup_tx()
2020 bnad_tx_res_free(bnad, res_info); in bnad_setup_tx()
2148 struct bna_res_info *res_info = &bnad->rx_res_info[rx_id].res_info[0]; in bnad_destroy_rx() local
2185 bnad_rx_res_free(bnad, res_info); in bnad_destroy_rx()
2194 struct bna_res_info *res_info = &bnad->rx_res_info[rx_id].res_info[0]; in bnad_setup_rx() local
2196 &res_info[BNA_RX_RES_T_INTR].res_u.intr_info; in bnad_setup_rx()
2217 bna_rx_res_req(rx_config, res_info); in bnad_setup_rx()
2221 BNAD_FILL_UNMAPQ_MEM_REQ(&res_info[BNA_RX_RES_MEM_T_UNMAPDQ], in bnad_setup_rx()
2228 BNAD_FILL_UNMAPQ_MEM_REQ(&res_info[BNA_RX_RES_MEM_T_UNMAPHQ], in bnad_setup_rx()
2235 err = bnad_rx_res_alloc(bnad, res_info, rx_id); in bnad_setup_rx()
2243 rx = bna_rx_create(&bnad->bna, bnad, rx_config, &rx_cbfn, res_info, in bnad_setup_rx()
2602 bnad_res_free(struct bnad *bnad, struct bna_res_info *res_info, in bnad_res_free() argument
2608 bnad_mem_free(bnad, &res_info[i].res_u.mem_info); in bnad_res_free()
2613 bnad_res_alloc(struct bnad *bnad, struct bna_res_info *res_info, in bnad_res_alloc() argument
2619 err = bnad_mem_alloc(bnad, &res_info[i].res_u.mem_info); in bnad_res_alloc()
2626 bnad_res_free(bnad, res_info, res_val_max); in bnad_res_alloc()
3657 bna_res_req(&bnad->res_info[0]); in bnad_pci_probe()
3661 err = bnad_res_alloc(bnad, &bnad->res_info[0], BNA_RES_T_MAX); in bnad_pci_probe()
3674 bna_init(bna, bnad, &pcidev_info, &bnad->res_info[0]); in bnad_pci_probe()
3765 bnad_res_free(bnad, &bnad->res_info[0], BNA_RES_T_MAX); in bnad_pci_probe()
3807 bnad_res_free(bnad, &bnad->res_info[0], BNA_RES_T_MAX); in bnad_pci_remove()