Lines Matching refs:cnic
76 * @dev: Corresponding cnic device
119 if (tmp_hba->cnic && tmp_hba->cnic->cm_select_dev) {
131 * bnx2i_find_hba_for_cnic - maps cnic device instance to bnx2i adapter instance
132 * @cnic: pointer to cnic device instance
135 struct bnx2i_hba *bnx2i_find_hba_for_cnic(struct cnic_dev *cnic)
141 if (hba->cnic == cnic) {
152 * bnx2i_start - cnic callback to initialize & start adapter instance
157 * This bnx2i - cnic interface api callback is issued after following
214 * bnx2i_stop - cnic callback to shutdown adapter instance
267 * @cnic: cnic device handle
273 static int bnx2i_init_one(struct bnx2i_hba *hba, struct cnic_dev *cnic)
278 if (!cnic->max_iscsi_conn) {
285 hba->cnic = cnic;
286 rc = cnic->register_device(cnic, CNIC_ULP_ISCSI, hba);
294 "hba=%p, cnic=%p\n", hba, cnic);
311 * @dev: cnic device handle
314 * cnic devices. This routine allocate adapter structure and other
339 * @dev: cnic device handle
357 hba->cnic->unregister_device(hba->cnic, CNIC_ULP_ISCSI);
370 * function callback exported via bnx2i - cnic driver interface to
381 stats = (struct iscsi_stats_info *)hba->cnic->stats_addr;
387 memcpy(stats->mac_add1 + 2, hba->cnic->mac_addr, ETH_ALEN);
464 * with the cnic module
487 printk(KERN_ERR "Could not register bnx2i cnic driver.\n");
521 * unregister itself with the cnic module
535 hba->cnic->unregister_device(hba->cnic, CNIC_ULP_ISCSI);