Lines Matching refs:cnic
3 * cnic modules to create FCoE instances, send/receive non-offloaded
89 static struct bnx2fc_hba *bnx2fc_find_hba_for_cnic(struct cnic_dev *cnic);
1356 * @cnic: pointer to cnic device
1361 static struct bnx2fc_hba *bnx2fc_hba_create(struct cnic_dev *cnic)
1376 hba->cnic = cnic;
1378 hba->max_tasks = cnic->max_fcoe_exchanges;
1388 hba->phys_dev = cnic->netdev;
1731 struct cnic_dev *cnic;
1734 if (!hba->cnic) {
1735 printk(KERN_ERR PFX "cnic is NULL\n");
1738 cnic = hba->cnic;
1739 pdev = hba->pcidev = cnic->pcidev;
1790 * bnx2fc_ulp_get_stats - cnic callback to populate FCoE stats
1797 struct cnic_dev *cnic;
1803 cnic = hba->cnic;
1804 stats_addr = &cnic->stats_addr->fcoe_stat;
1818 * bnx2fc_ulp_start - cnic callback to initialize & start adapter instance
1824 * This bnx2fc - cnic interface api callback is used after following
1917 hba->cnic->netdev->name);
1956 * bnx2fc_ulp_stop - cnic callback to shutdown adapter instance
2035 * @dev : cnic device handle
2037 * enumerated cnic devices. This routine allocates adapter structure
2199 if (!hba->cnic)
2208 if (!hba->cnic->get_fc_npiv_tbl)
2215 if (hba->cnic->get_fc_npiv_tbl(hba->cnic, npiv_tbl))
2472 * bnx2fc_find_hba_for_cnic - maps cnic instance to bnx2fc hba instance
2474 * @cnic: Pointer to cnic device instance
2477 static struct bnx2fc_hba *bnx2fc_find_hba_for_cnic(struct cnic_dev *cnic)
2483 if (hba->cnic == cnic)
2519 * @dev: cnic device handle
2553 /* unregister cnic device */
2555 hba->cnic->unregister_device(hba->cnic, CNIC_ULP_FCOE);
2678 * with cnic module
2764 * NOTE: Since cnic calls register_driver routine rtnl_lock,
2774 /* Unregister with cnic */
2780 /* unregister cnic device */
2783 hba->cnic->unregister_device(hba->cnic,
2983 * bnx2fc_cnic_cb - global template of bnx2fc - cnic driver interface