Lines Matching refs:cnic
768 * @cnic: cnic device pointer
773 struct bnx2i_hba *bnx2i_alloc_hba(struct cnic_dev *cnic)
781 shost->dma_boundary = cnic->pcidev->dma_mask;
790 hba->netdev = cnic->netdev;
792 hba->pcidev = cnic->pcidev;
1028 * Allocates buffers and BD tables before shipping requests to cnic
1498 len = sysfs_format_mac(buf, hba->cnic->mac_addr, 6);
1602 struct cnic_dev *cnic = NULL;
1607 if (hba && hba->cnic)
1608 cnic = hba->cnic->cm_select_dev(desti, CNIC_ULP_ISCSI);
1609 if (!cnic) {
1611 "can't connect using cnic\n");
1614 hba = bnx2i_find_hba_for_cnic(cnic);
1646 hba->cnic->cm_destroy(ep->cm_sk);
1708 struct cnic_dev *cnic;
1716 /* Register the device with cnic if not already done so */
1730 cnic = hba->cnic;
1787 rc = cnic->cm_create(cnic, CNIC_ULP_ISCSI, bnx2i_ep->ep_cid,
1815 rc = cnic->cm_connect(bnx2i_ep->cm_sk, &saddr);
1944 struct cnic_dev *cnic;
1954 cnic = hba->cnic;
1955 if (!cnic)
1997 close_ret = cnic->cm_close(bnx2i_ep->cm_sk);
1999 close_ret = cnic->cm_abort(bnx2i_ep->cm_sk);
2094 /* handled by cnic driver */
2095 hba->cnic->iscsi_nl_msg_recv(hba->cnic, ISCSI_UEVENT_PATH_UPDATE, buf,