Searched refs:cnic (Results 1 - 16 of 16) sorted by relevance

/linux-4.1.27/drivers/scsi/bnx2i/
H A Dbnx2i_init.c84 * @cnic: Corresponding cnic device
127 if (tmp_hba->cnic && tmp_hba->cnic->cm_select_dev) { get_adapter_list_head()
139 * bnx2i_find_hba_for_cnic - maps cnic device instance to bnx2i adapter instance
140 * @cnic: pointer to cnic device instance
143 struct bnx2i_hba *bnx2i_find_hba_for_cnic(struct cnic_dev *cnic) bnx2i_find_hba_for_cnic() argument
149 if (hba->cnic == cnic) { bnx2i_find_hba_for_cnic()
160 * bnx2i_start - cnic callback to initialize & start adapter instance
165 * This bnx2i - cnic interface api callback is issued after following
222 * bnx2i_stop - cnic callback to shutdown adapter instance
275 * @cnic: cnic device handle
281 static int bnx2i_init_one(struct bnx2i_hba *hba, struct cnic_dev *cnic) bnx2i_init_one() argument
286 if (!cnic->max_iscsi_conn) { bnx2i_init_one()
293 hba->cnic = cnic; bnx2i_init_one()
294 rc = cnic->register_device(cnic, CNIC_ULP_ISCSI, hba); bnx2i_init_one()
302 "hba=%p, cnic=%p\n", hba, cnic); bnx2i_init_one()
319 * @dev: cnic device handle
322 * cnic devices. This routine allocate adapter structure and other
347 * @dev: cnic device handle
365 hba->cnic->unregister_device(hba->cnic, CNIC_ULP_ISCSI); bnx2i_ulp_exit()
378 * function callback exported via bnx2i - cnic driver interface to
389 stats = (struct iscsi_stats_info *)hba->cnic->stats_addr; bnx2i_get_stats()
395 memcpy(stats->mac_add1 + 2, hba->cnic->mac_addr, ETH_ALEN); bnx2i_get_stats()
505 * with the cnic module
530 printk(KERN_ERR "Could not register bnx2i cnic driver.\n"); bnx2i_mod_init()
567 * unregister itself with the cnic module
582 hba->cnic->unregister_device(hba->cnic, CNIC_ULP_ISCSI); bnx2i_mod_exit()
H A Dbnx2i_iscsi.c781 * @cnic: cnic device pointer
786 struct bnx2i_hba *bnx2i_alloc_hba(struct cnic_dev *cnic) bnx2i_alloc_hba() argument
794 shost->dma_boundary = cnic->pcidev->dma_mask; bnx2i_alloc_hba()
803 hba->netdev = cnic->netdev; bnx2i_alloc_hba()
805 hba->pcidev = cnic->pcidev; bnx2i_alloc_hba()
814 bnx2i_identify_device(hba, cnic); bnx2i_alloc_hba()
1046 * Allocates buffers and BD tables before shipping requests to cnic
1563 len = sysfs_format_mac(buf, hba->cnic->mac_addr, 6); bnx2i_host_get_param()
1666 struct cnic_dev *cnic = NULL; bnx2i_check_route() local
1669 if (hba && hba->cnic) bnx2i_check_route()
1670 cnic = hba->cnic->cm_select_dev(desti, CNIC_ULP_ISCSI); bnx2i_check_route()
1671 if (!cnic) { bnx2i_check_route()
1673 "can't connect using cnic\n"); bnx2i_check_route()
1676 hba = bnx2i_find_hba_for_cnic(cnic); bnx2i_check_route()
1708 hba->cnic->cm_destroy(ep->cm_sk); bnx2i_tear_down_conn()
1780 struct cnic_dev *cnic; bnx2i_ep_connect() local
1805 cnic = hba->cnic; bnx2i_ep_connect()
1875 rc = cnic->cm_create(cnic, CNIC_ULP_ISCSI, bnx2i_ep->ep_cid, bnx2i_ep_connect()
1904 rc = cnic->cm_connect(bnx2i_ep->cm_sk, &saddr); bnx2i_ep_connect()
2028 struct cnic_dev *cnic; bnx2i_hw_ep_disconnect() local
2038 cnic = hba->cnic; bnx2i_hw_ep_disconnect()
2039 if (!cnic) bnx2i_hw_ep_disconnect()
2086 close_ret = cnic->cm_close(bnx2i_ep->cm_sk); bnx2i_hw_ep_disconnect()
2088 close_ret = cnic->cm_abort(bnx2i_ep->cm_sk); bnx2i_hw_ep_disconnect()
2186 /* handled by cnic driver */ bnx2i_nl_set_path()
2187 hba->cnic->iscsi_nl_msg_recv(hba->cnic, ISCSI_UEVENT_PATH_UPDATE, buf, bnx2i_nl_set_path()
H A Dbnx2i_hwi.c690 if (hba->cnic && hba->cnic->submit_kwqes) bnx2i_update_iscsi_conn()
691 hba->cnic->submit_kwqes(hba->cnic, kwqe_arr, 1); bnx2i_update_iscsi_conn()
786 if (hba->cnic && hba->cnic->submit_kwqes) bnx2i_send_conn_destroy()
787 rc = hba->cnic->submit_kwqes(hba->cnic, kwqe_arr, 1); bnx2i_send_conn_destroy()
846 if (hba->cnic && hba->cnic->submit_kwqes) bnx2i_570x_send_conn_ofld_req()
847 rc = hba->cnic->submit_kwqes(hba->cnic, kwqe_arr, num_kwqes); bnx2i_570x_send_conn_ofld_req()
915 if (hba->cnic && hba->cnic->submit_kwqes) bnx2i_5771x_send_conn_ofld_req()
916 rc = hba->cnic->submit_kwqes(hba->cnic, kwqe_arr, num_kwqes); bnx2i_5771x_send_conn_ofld_req()
1339 if (hba->cnic && hba->cnic->submit_kwqes) bnx2i_send_fw_iscsi_init_msg()
1340 rc = hba->cnic->submit_kwqes(hba->cnic, kwqe_arr, 2); bnx2i_send_fw_iscsi_init_msg()
2589 * @cm_sk: cnic sock structure pointer
2591 * function callback exported via bnx2i - cnic driver interface to
2611 * @cm_sk: cnic sock structure pointer
2613 * function callback exported via bnx2i - cnic driver interface to
2627 * @cm_sk: cnic sock structure pointer
2629 * function callback exported via bnx2i - cnic driver interface to
2646 * function callback exported via bnx2i - cnic driver interface to indicate
2663 * function callback exported via bnx2i - cnic driver interface to
2699 * bnx2i_cnic_cb - global template of bnx2i - cnic driver interface structure
H A Dbnx2i.h345 * @cnic: pointer to cnic device
350 * @cnic_dev_type: cnic device type, 5706/5708/5709/57710
401 struct cnic_dev *cnic; member in struct:bnx2i_hba
732 * @cm_sk: cnic sock struct
734 * after HBA reset is completed by bnx2i/cnic/bnx2
823 struct bnx2i_hba *bnx2i_find_hba_for_cnic(struct cnic_dev *cnic);
825 struct bnx2i_hba *bnx2i_alloc_hba(struct cnic_dev *cnic);
/linux-4.1.27/drivers/scsi/bnx2fc/
H A Dbnx2fc_fcoe.c3 * cnic modules to create FCoE instances, send/receive non-offloaded
88 static struct bnx2fc_hba *bnx2fc_find_hba_for_cnic(struct cnic_dev *cnic);
1288 * @cnic: pointer to cnic device
1293 static struct bnx2fc_hba *bnx2fc_hba_create(struct cnic_dev *cnic) bnx2fc_hba_create() argument
1307 hba->cnic = cnic; bnx2fc_hba_create()
1309 hba->max_tasks = cnic->max_fcoe_exchanges; bnx2fc_hba_create()
1319 hba->phys_dev = cnic->netdev; bnx2fc_hba_create()
1663 struct cnic_dev *cnic; bnx2fc_bind_pcidev() local
1666 if (!hba->cnic) { bnx2fc_bind_pcidev()
1667 printk(KERN_ERR PFX "cnic is NULL\n"); bnx2fc_bind_pcidev()
1670 cnic = hba->cnic; bnx2fc_bind_pcidev()
1671 pdev = hba->pcidev = cnic->pcidev; bnx2fc_bind_pcidev()
1722 * bnx2fc_ulp_get_stats - cnic callback to populate FCoE stats
1729 struct cnic_dev *cnic; bnx2fc_ulp_get_stats() local
1735 cnic = hba->cnic; bnx2fc_ulp_get_stats()
1736 stats_addr = &cnic->stats_addr->fcoe_stat; bnx2fc_ulp_get_stats()
1750 * bnx2fc_ulp_start - cnic callback to initialize & start adapter instance
1756 * This bnx2fc - cnic interface api callback is used after following
1849 hba->cnic->netdev->name); bnx2fc_fw_init()
1889 * bnx2fc_ulp_stop - cnic callback to shutdown adapter instance
1968 * @dev : cnic device handle
1970 * enumerated cnic devices. This routine allocates adapter structure
2316 * bnx2fc_find_hba_for_cnic - maps cnic instance to bnx2fc hba instance
2318 * @cnic: Pointer to cnic device instance
2321 static struct bnx2fc_hba *bnx2fc_find_hba_for_cnic(struct cnic_dev *cnic) bnx2fc_find_hba_for_cnic() argument
2327 if (hba->cnic == cnic) bnx2fc_find_hba_for_cnic()
2363 * @dev cnic device handle
2400 /* unregister cnic device */ bnx2fc_ulp_exit()
2402 hba->cnic->unregister_device(hba->cnic, CNIC_ULP_FCOE); bnx2fc_ulp_exit()
2540 * with cnic module
2631 * NOTE: Since cnic calls register_driver routine rtnl_lock, bnx2fc_mod_exit()
2642 /* Unregister with cnic */ bnx2fc_mod_exit()
2648 /* unregister cnic device */ bnx2fc_mod_exit()
2651 hba->cnic->unregister_device(hba->cnic, bnx2fc_mod_exit()
2814 * bnx2fc_cnic_cb - global template of bnx2fc - cnic driver interface
H A Dbnx2fc_hwi.c46 if (hba->cnic && hba->cnic->submit_kwqes) bnx2fc_send_stat_req()
47 rc = hba->cnic->submit_kwqes(hba->cnic, kwqe_arr, num_kwqes); bnx2fc_send_stat_req()
70 if (!hba->cnic) { bnx2fc_send_fw_fcoe_init_msg()
71 printk(KERN_ERR PFX "hba->cnic NULL during fcoe fw init\n"); bnx2fc_send_fw_fcoe_init_msg()
140 if (hba->cnic && hba->cnic->submit_kwqes) bnx2fc_send_fw_fcoe_init_msg()
141 rc = hba->cnic->submit_kwqes(hba->cnic, kwqe_arr, num_kwqes); bnx2fc_send_fw_fcoe_init_msg()
159 if (hba->cnic && hba->cnic->submit_kwqes) bnx2fc_send_fw_fcoe_destroy_msg()
160 rc = hba->cnic->submit_kwqes(hba->cnic, kwqe_arr, num_kwqes); bnx2fc_send_fw_fcoe_destroy_msg()
343 if (hba->cnic && hba->cnic->submit_kwqes) bnx2fc_send_session_ofld_req()
344 rc = hba->cnic->submit_kwqes(hba->cnic, kwqe_arr, num_kwqes); bnx2fc_send_session_ofld_req()
414 if (hba->cnic && hba->cnic->submit_kwqes) bnx2fc_send_session_enable_req()
415 rc = hba->cnic->submit_kwqes(hba->cnic, kwqe_arr, num_kwqes); bnx2fc_send_session_enable_req()
478 if (hba->cnic && hba->cnic->submit_kwqes) bnx2fc_send_session_disable_req()
479 rc = hba->cnic->submit_kwqes(hba->cnic, kwqe_arr, num_kwqes); bnx2fc_send_session_disable_req()
508 if (hba->cnic && hba->cnic->submit_kwqes) bnx2fc_send_session_destroy_req()
509 rc = hba->cnic->submit_kwqes(hba->cnic, kwqe_arr, num_kwqes); bnx2fc_send_session_destroy_req()
1145 * cnic has allocated a context_id for this session; use this bnx2fc_process_ofld_cmpl()
H A Dbnx2fc.h186 struct cnic_dev *cnic; member in struct:bnx2fc_hba
/linux-4.1.27/drivers/net/ethernet/broadcom/
H A Dcnic_if.h1 /* cnic_if.h: QLogic cnic core network driver.
28 /* Use CPU native page size up to 16K for cnic ring sizes. */
H A Dcnic.h0 /* cnic.h: QLogic CNIC core network driver.
H A Dcnic.c0 /* cnic.c: QLogic CNIC core network driver.
55 #include "cnic.h"
58 #define CNIC_MODULE_NAME "cnic"
65 MODULE_DESCRIPTION("QLogic cnic Driver");
4424 err = request_irq(ethdev->irq_arr[0].vector, cnic_irq, 0, "cnic", dev); cnic_request_irq()
H A Dcnic_defs.h2 /* cnic.c: QLogic CNIC core network driver.
H A Dbnx2.c7346 /* Let cnic know about the new status block. */ bnx2_change_ring_size()
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_cmn.h250 * bnx2x_cnic_notify - send command to cnic driver
258 * bnx2x_setup_cnic_irq_info - provides cnic with IRQ information
265 * bnx2x_setup_cnic_info - provides cnic with updated info
290 * bnx2x_nic_init_cnic - init driver internals for cnic.
327 * bnx2x_alloc_mem_cnic - allocate driver's memory for cnic.
340 * bnx2x_free_mem_cnic - release driver's memory for cnic.
1125 /* the 'first' id is allocated for the cnic */ bnx2x_cnic_fw_sb_id()
H A Dbnx2x_cmn.c2506 BNX2X_ERR("Unable to allocate bp memory for cnic\n"); bnx2x_load_cnic()
2513 BNX2X_ERR("Unable to allocate memory for cnic fps\n"); bnx2x_load_cnic()
2517 /* Update the number of queues with the cnic queues */ bnx2x_load_cnic()
2520 BNX2X_ERR("Unable to set real_num_queues including cnic\n"); bnx2x_load_cnic()
2526 DP(NETIF_MSG_IFUP, "cnic napi added\n"); bnx2x_load_cnic()
2539 /* setup cnic queues */ for_each_cnic_queue()
2571 /* Update the number of queues without the cnic queues */
2573 BNX2X_ERR("Unable to set real_num_queues not including cnic\n");
2657 * come after it. At this stage cnic queues are not counted. bnx2x_nic_load()
H A Dbnx2x.h264 * nibble as 8, so when cnic needs to come up with a CID for UIO to use to
1047 * chip is E1x (where MIC_MODE register is not applicable), or if cnic already
1049 * 2. During cnic-related load, to know if offload mode is already configured in
H A Dbnx2x_main.c3686 /* Try getting storage driver version via cnic */ bnx2x_update_mng_version()
12174 else /* PF w/o cnic */ bnx2x_init_bp()

Completed in 678 milliseconds