Lines Matching refs:cnic
3 * cnic modules to create FCoE instances, send/receive non-offloaded
91 static struct bnx2fc_hba *bnx2fc_find_hba_for_cnic(struct cnic_dev *cnic);
1348 * @cnic: pointer to cnic device
1353 static struct bnx2fc_hba *bnx2fc_hba_create(struct cnic_dev *cnic)
1368 hba->cnic = cnic;
1370 hba->max_tasks = cnic->max_fcoe_exchanges;
1380 hba->phys_dev = cnic->netdev;
1723 struct cnic_dev *cnic;
1726 if (!hba->cnic) {
1727 printk(KERN_ERR PFX "cnic is NULL\n");
1730 cnic = hba->cnic;
1731 pdev = hba->pcidev = cnic->pcidev;
1782 * bnx2fc_ulp_get_stats - cnic callback to populate FCoE stats
1789 struct cnic_dev *cnic;
1795 cnic = hba->cnic;
1796 stats_addr = &cnic->stats_addr->fcoe_stat;
1810 * bnx2fc_ulp_start - cnic callback to initialize & start adapter instance
1816 * This bnx2fc - cnic interface api callback is used after following
1909 hba->cnic->netdev->name);
1948 * bnx2fc_ulp_stop - cnic callback to shutdown adapter instance
2027 * @dev : cnic device handle
2029 * enumerated cnic devices. This routine allocates adapter structure
2191 if (!hba->cnic)
2200 if (!hba->cnic->get_fc_npiv_tbl)
2207 if (hba->cnic->get_fc_npiv_tbl(hba->cnic, npiv_tbl))
2464 * bnx2fc_find_hba_for_cnic - maps cnic instance to bnx2fc hba instance
2466 * @cnic: Pointer to cnic device instance
2469 static struct bnx2fc_hba *bnx2fc_find_hba_for_cnic(struct cnic_dev *cnic)
2475 if (hba->cnic == cnic)
2511 * @dev: cnic device handle
2545 /* unregister cnic device */
2547 hba->cnic->unregister_device(hba->cnic, CNIC_ULP_FCOE);
2670 * with cnic module
2755 * NOTE: Since cnic calls register_driver routine rtnl_lock,
2765 /* Unregister with cnic */
2771 /* unregister cnic device */
2774 hba->cnic->unregister_device(hba->cnic,
2977 * bnx2fc_cnic_cb - global template of bnx2fc - cnic driver interface