Lines Matching refs:cnic
113 if (tmp_hba->cnic && tmp_hba->cnic->cm_select_dev) {
125 * bnx2i_find_hba_for_cnic - maps cnic device instance to bnx2i adapter instance
126 * @cnic: pointer to cnic device instance
129 struct bnx2i_hba *bnx2i_find_hba_for_cnic(struct cnic_dev *cnic)
135 if (hba->cnic == cnic) {
146 * bnx2i_start - cnic callback to initialize & start adapter instance
151 * This bnx2i - cnic interface api callback is issued after following
170 * bnx2i_stop - cnic callback to shutdown adapter instance
227 * bnx2i_register_device - register bnx2i adapter instance with the cnic driver
230 * registers bnx2i adapter instance with the cnic driver while holding the
242 rc = hba->cnic->register_device(hba->cnic, CNIC_ULP_ISCSI, hba);
250 * bnx2i_reg_dev_all - registers all adapter instances with the cnic driver
252 * registers all bnx2i adapter instances with the cnic driver while holding
267 * bnx2i_unreg_one_device - unregister adapter instance with the cnic driver
270 * registers bnx2i adapter instance with the cnic driver while holding
280 hba->cnic->unregister_device(hba->cnic, CNIC_ULP_ISCSI);
290 * bnx2i_unreg_dev_all - unregisters all bnx2i instances with the cnic driver
292 * unregisters all bnx2i adapter instances with the cnic driver while holding
309 * @cnic: cnic device handle
315 static int bnx2i_init_one(struct bnx2i_hba *hba, struct cnic_dev *cnic)
320 hba->cnic = cnic;
321 rc = cnic->register_device(cnic, CNIC_ULP_ISCSI, hba);
329 "hba=%p, cnic=%p\n", hba, cnic);
345 * @dev: cnic device handle
348 * cnic devices. This routine allocate adapter structure and other
373 * @dev: cnic device handle
391 hba->cnic->unregister_device(hba->cnic, CNIC_ULP_ISCSI);
405 * with the cnic module
428 printk(KERN_ERR "Could not register bnx2i cnic driver.\n");
447 * unregister itself with the cnic module
460 hba->cnic->unregister_device(hba->cnic, CNIC_ULP_ISCSI);