Home
last modified time | relevance | path

Searched refs:hba (Results 1 – 53 of 53) sorted by relevance

/linux-4.1.27/drivers/scsi/ufs/
Dufshcd.c175 static void ufshcd_tmc_handler(struct ufs_hba *hba);
177 static int ufshcd_reset_and_restore(struct ufs_hba *hba);
178 static int ufshcd_clear_tm_cmd(struct ufs_hba *hba, int tag);
179 static void ufshcd_hba_exit(struct ufs_hba *hba);
180 static int ufshcd_probe_hba(struct ufs_hba *hba);
181 static int __ufshcd_setup_clocks(struct ufs_hba *hba, bool on,
183 static int ufshcd_setup_clocks(struct ufs_hba *hba, bool on);
184 static int ufshcd_uic_hibern8_exit(struct ufs_hba *hba);
185 static int ufshcd_uic_hibern8_enter(struct ufs_hba *hba);
186 static inline void ufshcd_add_delay_before_dme_cmd(struct ufs_hba *hba);
[all …]
Dufshcd.h117 #define ufshcd_is_link_off(hba) ((hba)->uic_link_state == UIC_LINK_OFF_STATE) argument
118 #define ufshcd_is_link_active(hba) ((hba)->uic_link_state == \ argument
120 #define ufshcd_is_link_hibern8(hba) ((hba)->uic_link_state == \ argument
122 #define ufshcd_set_link_off(hba) ((hba)->uic_link_state = UIC_LINK_OFF_STATE) argument
123 #define ufshcd_set_link_active(hba) ((hba)->uic_link_state = \ argument
125 #define ufshcd_set_link_hibern8(hba) ((hba)->uic_link_state = \ argument
488 static inline bool ufshcd_is_clkgating_allowed(struct ufs_hba *hba) in ufshcd_is_clkgating_allowed() argument
490 return hba->caps & UFSHCD_CAP_CLK_GATING; in ufshcd_is_clkgating_allowed()
492 static inline bool ufshcd_can_hibern8_during_gating(struct ufs_hba *hba) in ufshcd_can_hibern8_during_gating() argument
494 return hba->caps & UFSHCD_CAP_HIBERN8_WITH_CLK_GATING; in ufshcd_can_hibern8_during_gating()
[all …]
Dufs-qcom.c33 static int ufs_qcom_get_connected_tx_lanes(struct ufs_hba *hba, u32 *tx_lanes) in ufs_qcom_get_connected_tx_lanes() argument
37 err = ufshcd_dme_get(hba, in ufs_qcom_get_connected_tx_lanes()
40 dev_err(hba->dev, "%s: couldn't read PA_CONNECTEDTXDATALANES %d\n", in ufs_qcom_get_connected_tx_lanes()
92 struct device *dev = host->hba->dev; in ufs_qcom_enable_lane_clks()
133 struct device *dev = host->hba->dev; in ufs_qcom_init_lane_clks()
156 static int ufs_qcom_link_startup_post_change(struct ufs_hba *hba) in ufs_qcom_link_startup_post_change() argument
158 struct ufs_qcom_host *host = hba->priv; in ufs_qcom_link_startup_post_change()
163 err = ufs_qcom_get_connected_tx_lanes(hba, &tx_lanes); in ufs_qcom_link_startup_post_change()
169 dev_err(hba->dev, "%s: ufs_qcom_phy_set_tx_lane_enable failed\n", in ufs_qcom_link_startup_post_change()
176 static int ufs_qcom_check_hibern8(struct ufs_hba *hba) in ufs_qcom_check_hibern8() argument
[all …]
Dufs-qcom.h110 ufs_qcom_get_controller_revision(struct ufs_hba *hba, in ufs_qcom_get_controller_revision() argument
113 u32 ver = ufshcd_readl(hba, REG_UFS_HW_VERSION); in ufs_qcom_get_controller_revision()
120 static inline void ufs_qcom_assert_reset(struct ufs_hba *hba) in ufs_qcom_assert_reset() argument
122 ufshcd_rmwl(hba, MASK_UFS_PHY_SOFT_RESET, in ufs_qcom_assert_reset()
132 static inline void ufs_qcom_deassert_reset(struct ufs_hba *hba) in ufs_qcom_deassert_reset() argument
134 ufshcd_rmwl(hba, MASK_UFS_PHY_SOFT_RESET, in ufs_qcom_deassert_reset()
172 struct ufs_hba *hba; member
184 #define ufs_qcom_is_link_off(hba) ufshcd_is_link_off(hba) argument
185 #define ufs_qcom_is_link_active(hba) ufshcd_is_link_active(hba) argument
186 #define ufs_qcom_is_link_hibern8(hba) ufshcd_is_link_hibern8(hba) argument
Dufshcd-pltfrm.c56 static int ufshcd_parse_clock_info(struct ufs_hba *hba) in ufshcd_parse_clock_info() argument
61 struct device *dev = hba->dev; in ufshcd_parse_clock_info()
72 INIT_LIST_HEAD(&hba->clk_list_head); in ufshcd_parse_clock_info()
134 list_add_tail(&clki->list, &hba->clk_list_head); in ufshcd_parse_clock_info()
217 static int ufshcd_parse_regulator_info(struct ufs_hba *hba) in ufshcd_parse_regulator_info() argument
220 struct device *dev = hba->dev; in ufshcd_parse_regulator_info()
221 struct ufs_vreg_info *info = &hba->vreg_info; in ufshcd_parse_regulator_info()
298 struct ufs_hba *hba; in ufshcd_pltfrm_probe() local
318 err = ufshcd_alloc_host(dev, &hba); in ufshcd_pltfrm_probe()
324 hba->vops = get_variant_ops(&pdev->dev); in ufshcd_pltfrm_probe()
[all …]
Dufshcd-pci.c102 struct ufs_hba *hba = pci_get_drvdata(pdev); in ufshcd_pci_remove() local
106 ufshcd_remove(hba); in ufshcd_pci_remove()
119 struct ufs_hba *hba; in ufshcd_pci_probe() local
139 err = ufshcd_alloc_host(&pdev->dev, &hba); in ufshcd_pci_probe()
145 INIT_LIST_HEAD(&hba->clk_list_head); in ufshcd_pci_probe()
147 err = ufshcd_init(hba, mmio_base, pdev->irq); in ufshcd_pci_probe()
153 pci_set_drvdata(pdev, hba); in ufshcd_pci_probe()
/linux-4.1.27/drivers/scsi/
Dhptiop.c47 static int iop_send_sync_msg(struct hptiop_hba *hba, u32 msg, u32 millisec);
48 static void hptiop_finish_scsi_req(struct hptiop_hba *hba, u32 tag,
50 static void hptiop_host_request_callback_itl(struct hptiop_hba *hba, u32 tag);
51 static void hptiop_iop_request_callback_itl(struct hptiop_hba *hba, u32 tag);
52 static void hptiop_message_callback(struct hptiop_hba *hba, u32 msg);
54 static int iop_wait_ready_itl(struct hptiop_hba *hba, u32 millisec) in iop_wait_ready_itl() argument
60 req = readl(&hba->u.itl.iop->inbound_queue); in iop_wait_ready_itl()
67 writel(req, &hba->u.itl.iop->outbound_queue); in iop_wait_ready_itl()
68 readl(&hba->u.itl.iop->outbound_intstatus); in iop_wait_ready_itl()
75 static int iop_wait_ready_mv(struct hptiop_hba *hba, u32 millisec) in iop_wait_ready_mv() argument
[all …]
Dstex.c373 static struct status_msg *stex_get_status(struct st_hba *hba) in stex_get_status() argument
375 struct status_msg *status = hba->status_buffer + hba->status_tail; in stex_get_status()
377 ++hba->status_tail; in stex_get_status()
378 hba->status_tail %= hba->sts_count+1; in stex_get_status()
394 static struct req_msg *stex_alloc_req(struct st_hba *hba) in stex_alloc_req() argument
396 struct req_msg *req = hba->dma_mem + hba->req_head * hba->rq_size; in stex_alloc_req()
398 ++hba->req_head; in stex_alloc_req()
399 hba->req_head %= hba->rq_count+1; in stex_alloc_req()
404 static struct req_msg *stex_ss_alloc_req(struct st_hba *hba) in stex_ss_alloc_req() argument
406 return (struct req_msg *)(hba->dma_mem + in stex_ss_alloc_req()
[all …]
Dhptiop.h341 struct hptiop_hba * hba; member
354 int (*iop_wait_ready)(struct hptiop_hba *hba, u32 millisec);
355 int (*internal_memalloc)(struct hptiop_hba *hba);
356 int (*internal_memfree)(struct hptiop_hba *hba);
357 int (*map_pci_bar)(struct hptiop_hba *hba);
358 void (*unmap_pci_bar)(struct hptiop_hba *hba);
359 void (*enable_intr)(struct hptiop_hba *hba);
360 void (*disable_intr)(struct hptiop_hba *hba);
361 int (*get_config)(struct hptiop_hba *hba,
363 int (*set_config)(struct hptiop_hba *hba,
[all …]
Dmegaraid.c122 #define IS_RAID_CH(hba, ch) (((hba)->mega_ch_class >> (ch)) & 0x01) argument
/linux-4.1.27/drivers/scsi/bnx2i/
Dbnx2i_init.c90 void bnx2i_identify_device(struct bnx2i_hba *hba, struct cnic_dev *dev) in bnx2i_identify_device() argument
92 hba->cnic_dev_type = 0; in bnx2i_identify_device()
94 if (hba->pci_did == PCI_DEVICE_ID_NX2_5706 || in bnx2i_identify_device()
95 hba->pci_did == PCI_DEVICE_ID_NX2_5706S) { in bnx2i_identify_device()
96 set_bit(BNX2I_NX2_DEV_5706, &hba->cnic_dev_type); in bnx2i_identify_device()
97 } else if (hba->pci_did == PCI_DEVICE_ID_NX2_5708 || in bnx2i_identify_device()
98 hba->pci_did == PCI_DEVICE_ID_NX2_5708S) { in bnx2i_identify_device()
99 set_bit(BNX2I_NX2_DEV_5708, &hba->cnic_dev_type); in bnx2i_identify_device()
100 } else if (hba->pci_did == PCI_DEVICE_ID_NX2_5709 || in bnx2i_identify_device()
101 hba->pci_did == PCI_DEVICE_ID_NX2_5709S) { in bnx2i_identify_device()
[all …]
Dbnx2i_iscsi.c34 static int bnx2i_adapter_ready(struct bnx2i_hba *hba) in bnx2i_adapter_ready() argument
38 if (!hba || !test_bit(ADAPTER_STATE_UP, &hba->adapter_state) || in bnx2i_adapter_ready()
39 test_bit(ADAPTER_STATE_GOING_DOWN, &hba->adapter_state) || in bnx2i_adapter_ready()
40 test_bit(ADAPTER_STATE_LINK_DOWN, &hba->adapter_state)) in bnx2i_adapter_ready()
143 static int bnx2i_map_scsi_sg(struct bnx2i_hba *hba, struct bnx2i_cmd *cmd) in bnx2i_map_scsi_sg() argument
190 bd_count = bnx2i_map_scsi_sg(cmd->conn->hba, cmd); in bnx2i_iscsi_map_sg_list()
238 static int bnx2i_bind_conn_to_iscsi_cid(struct bnx2i_hba *hba, in bnx2i_bind_conn_to_iscsi_cid() argument
242 if (hba && hba->cid_que.conn_cid_tbl[iscsi_cid]) { in bnx2i_bind_conn_to_iscsi_cid()
248 hba->cid_que.conn_cid_tbl[iscsi_cid] = bnx2i_conn; in bnx2i_bind_conn_to_iscsi_cid()
258 struct bnx2i_conn *bnx2i_get_conn_from_id(struct bnx2i_hba *hba, in bnx2i_get_conn_from_id() argument
[all …]
Dbnx2i_hwi.c34 if (test_bit(BNX2I_NX2_DEV_57710, &ep->hba->cnic_dev_type)) in bnx2i_get_cid_num()
48 static void bnx2i_adjust_qp_size(struct bnx2i_hba *hba) in bnx2i_adjust_qp_size() argument
52 if (test_bit(BNX2I_NX2_DEV_5706, &hba->cnic_dev_type) || in bnx2i_adjust_qp_size()
53 test_bit(BNX2I_NX2_DEV_5708, &hba->cnic_dev_type) || in bnx2i_adjust_qp_size()
54 test_bit(BNX2I_NX2_DEV_5709, &hba->cnic_dev_type)) { in bnx2i_adjust_qp_size()
55 if (!is_power_of_2(hba->max_sqes)) in bnx2i_adjust_qp_size()
56 hba->max_sqes = rounddown_pow_of_two(hba->max_sqes); in bnx2i_adjust_qp_size()
58 if (!is_power_of_2(hba->max_rqes)) in bnx2i_adjust_qp_size()
59 hba->max_rqes = rounddown_pow_of_two(hba->max_rqes); in bnx2i_adjust_qp_size()
67 if (hba->max_sqes < num_elements_per_pg) in bnx2i_adjust_qp_size()
[all …]
Dbnx2i_sysfs.c41 struct bnx2i_hba *hba = bnx2i_dev_to_hba(dev); in bnx2i_show_sq_info() local
43 return sprintf(buf, "0x%x\n", hba->max_sqes); in bnx2i_show_sq_info()
61 struct bnx2i_hba *hba = bnx2i_dev_to_hba(dev); in bnx2i_set_sq_info() local
65 if (hba->ofld_conns_active) in bnx2i_set_sq_info()
68 if (test_bit(BNX2I_NX2_DEV_57710, &hba->cnic_dev_type)) in bnx2i_set_sq_info()
76 hba->max_sqes = val; in bnx2i_set_sq_info()
97 struct bnx2i_hba *hba = bnx2i_dev_to_hba(dev); in bnx2i_show_ccell_info() local
99 return sprintf(buf, "0x%x\n", hba->num_ccell); in bnx2i_show_ccell_info()
116 struct bnx2i_hba *hba = bnx2i_dev_to_hba(dev); in bnx2i_set_ccell_info() local
118 if (hba->ofld_conns_active) in bnx2i_set_ccell_info()
[all …]
Dbnx2i.h285 struct bnx2i_hba *hba; member
750 struct bnx2i_hba *hba; member
805 extern void bnx2i_identify_device(struct bnx2i_hba *hba, struct cnic_dev *dev);
815 struct bnx2i_conn *bnx2i_get_conn_from_id(struct bnx2i_hba *hba,
820 struct bnx2i_endpoint *bnx2i_ep_ofld_list_next(struct bnx2i_hba *hba);
821 struct bnx2i_endpoint *bnx2i_ep_destroy_list_next(struct bnx2i_hba *hba);
826 void bnx2i_free_hba(struct bnx2i_hba *hba);
835 extern int bnx2i_send_fw_iscsi_init_msg(struct bnx2i_hba *hba);
849 extern void bnx2i_send_cmd_cleanup_req(struct bnx2i_hba *hba,
851 extern int bnx2i_send_conn_ofld_req(struct bnx2i_hba *hba,
[all …]
/linux-4.1.27/drivers/target/
Dtarget_core_hba.c105 struct se_hba *hba; in core_alloc_hba() local
108 hba = kzalloc(sizeof(*hba), GFP_KERNEL); in core_alloc_hba()
109 if (!hba) { in core_alloc_hba()
114 spin_lock_init(&hba->device_lock); in core_alloc_hba()
115 mutex_init(&hba->hba_access_mutex); in core_alloc_hba()
117 hba->hba_index = scsi_get_new_index(SCSI_INST_INDEX); in core_alloc_hba()
118 hba->hba_flags |= hba_flags; in core_alloc_hba()
120 hba->transport = core_get_backend(plugin_name); in core_alloc_hba()
121 if (!hba->transport) { in core_alloc_hba()
126 ret = hba->transport->attach_hba(hba, plugin_dep_id); in core_alloc_hba()
[all …]
Dtarget_core_pscsi.c69 static int pscsi_attach_hba(struct se_hba *hba, u32 host_id) in pscsi_attach_hba() argument
81 hba->hba_ptr = phv; in pscsi_attach_hba()
84 " Generic Target Core Stack %s\n", hba->hba_id, in pscsi_attach_hba()
87 hba->hba_id); in pscsi_attach_hba()
92 static void pscsi_detach_hba(struct se_hba *hba) in pscsi_detach_hba() argument
94 struct pscsi_hba_virt *phv = hba->hba_ptr; in pscsi_detach_hba()
101 " Generic Target Core\n", hba->hba_id, in pscsi_detach_hba()
106 " from Generic Target Core\n", hba->hba_id); in pscsi_detach_hba()
109 hba->hba_ptr = NULL; in pscsi_detach_hba()
112 static int pscsi_pmode_enable_hba(struct se_hba *hba, unsigned long mode_flag) in pscsi_pmode_enable_hba() argument
[all …]
Dtarget_core_device.c579 struct se_hba *hba = dev->se_hba; in core_dev_export() local
588 spin_lock(&hba->device_lock); in core_dev_export()
590 spin_unlock(&hba->device_lock); in core_dev_export()
601 struct se_hba *hba = dev->se_hba; in core_dev_unexport() local
615 spin_lock(&hba->device_lock); in core_dev_unexport()
617 spin_unlock(&hba->device_lock); in core_dev_unexport()
1471 struct se_device *target_alloc_device(struct se_hba *hba, const char *name) in target_alloc_device() argument
1476 dev = hba->transport->alloc_device(hba, name); in target_alloc_device()
1481 dev->se_hba = hba; in target_alloc_device()
1482 dev->transport = hba->transport; in target_alloc_device()
[all …]
Dtarget_core_configfs.c1279 struct se_hba *hba = dev->se_hba; in target_core_store_dev_alias() local
1298 config_item_name(&hba->hba_group.cg_item), in target_core_store_dev_alias()
1329 struct se_hba *hba = dev->se_hba; in target_core_store_dev_udev_path() local
1349 config_item_name(&hba->hba_group.cg_item), in target_core_store_dev_udev_path()
1431 struct se_hba *hba = dev->se_hba; in target_core_store_alua_lu_gp() local
1473 config_item_name(&hba->hba_group.cg_item), in target_core_store_alua_lu_gp()
1498 config_item_name(&hba->hba_group.cg_item), in target_core_store_alua_lu_gp()
1820 struct se_hba *hba; in target_core_alua_lu_gp_show_attr_members() local
1830 hba = dev->se_hba; in target_core_alua_lu_gp_show_attr_members()
1833 config_item_name(&hba->hba_group.cg_item), in target_core_alua_lu_gp_show_attr_members()
[all …]
Dtarget_core_rd.c50 static int rd_attach_hba(struct se_hba *hba, u32 host_id) in rd_attach_hba() argument
62 hba->hba_ptr = rd_host; in rd_attach_hba()
65 " Generic Target Core Stack %s\n", hba->hba_id, in rd_attach_hba()
71 static void rd_detach_hba(struct se_hba *hba) in rd_detach_hba() argument
73 struct rd_host *rd_host = hba->hba_ptr; in rd_detach_hba()
76 " Generic Target Core\n", hba->hba_id, rd_host->rd_host_id); in rd_detach_hba()
79 hba->hba_ptr = NULL; in rd_detach_hba()
308 static struct se_device *rd_alloc_device(struct se_hba *hba, const char *name) in rd_alloc_device() argument
311 struct rd_host *rd_host = hba->hba_ptr; in rd_alloc_device()
Dtarget_core_user.c80 struct se_hba *hba; member
633 static int tcmu_attach_hba(struct se_hba *hba, u32 host_id) in tcmu_attach_hba() argument
642 hba->hba_ptr = tcmu_hba; in tcmu_attach_hba()
647 static void tcmu_detach_hba(struct se_hba *hba) in tcmu_detach_hba() argument
649 kfree(hba->hba_ptr); in tcmu_detach_hba()
650 hba->hba_ptr = NULL; in tcmu_detach_hba()
653 static struct se_device *tcmu_alloc_device(struct se_hba *hba, const char *name) in tcmu_alloc_device() argument
667 udev->hba = hba; in tcmu_alloc_device()
819 struct tcmu_hba *hba = udev->hba->hba_ptr; in tcmu_configure_device() local
829 size = snprintf(NULL, 0, "tcm-user/%u/%s/%s", hba->host_id, udev->name, in tcmu_configure_device()
[all …]
Dtarget_core_file.c53 static int fd_attach_hba(struct se_hba *hba, u32 host_id) in fd_attach_hba() argument
65 hba->hba_ptr = fd_host; in fd_attach_hba()
68 " Target Core Stack %s\n", hba->hba_id, FD_VERSION, in fd_attach_hba()
71 hba->hba_id, fd_host->fd_host_id); in fd_attach_hba()
76 static void fd_detach_hba(struct se_hba *hba) in fd_detach_hba() argument
78 struct fd_host *fd_host = hba->hba_ptr; in fd_detach_hba()
81 " Target Core\n", hba->hba_id, fd_host->fd_host_id); in fd_detach_hba()
84 hba->hba_ptr = NULL; in fd_detach_hba()
87 static struct se_device *fd_alloc_device(struct se_hba *hba, const char *name) in fd_alloc_device() argument
90 struct fd_host *fd_host = hba->hba_ptr; in fd_alloc_device()
Dtarget_core_stat.c81 struct se_hba *hba = dev->se_hba; in target_stat_scsi_dev_show_attr_inst() local
83 return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index); in target_stat_scsi_dev_show_attr_inst()
158 struct se_hba *hba = dev->se_hba; in target_stat_scsi_tgt_dev_show_attr_inst() local
160 return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index); in target_stat_scsi_tgt_dev_show_attr_inst()
266 struct se_hba *hba = dev->se_hba; in target_stat_scsi_lu_show_attr_inst() local
268 return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index); in target_stat_scsi_lu_show_attr_inst()
548 struct se_hba *hba; in target_stat_scsi_port_show_attr_inst() local
557 hba = dev->se_hba; in target_stat_scsi_port_show_attr_inst()
558 ret = snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index); in target_stat_scsi_port_show_attr_inst()
691 struct se_hba *hba; in target_stat_scsi_tgt_port_show_attr_inst() local
[all …]
Dtarget_core_internal.h37 struct se_device *target_alloc_device(struct se_hba *hba, const char *name);
Dtarget_core_iblock.c63 static int iblock_attach_hba(struct se_hba *hba, u32 host_id) in iblock_attach_hba() argument
66 " Generic Target Core Stack %s\n", hba->hba_id, in iblock_attach_hba()
71 static void iblock_detach_hba(struct se_hba *hba) in iblock_detach_hba() argument
75 static struct se_device *iblock_alloc_device(struct se_hba *hba, const char *name) in iblock_alloc_device() argument
/linux-4.1.27/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c75 static int bnx2fc_em_config(struct fc_lport *lport, struct bnx2fc_hba *hba);
76 static int bnx2fc_bind_adapter_devices(struct bnx2fc_hba *hba);
77 static void bnx2fc_unbind_adapter_devices(struct bnx2fc_hba *hba);
78 static int bnx2fc_bind_pcidev(struct bnx2fc_hba *hba);
79 static void bnx2fc_unbind_pcidev(struct bnx2fc_hba *hba);
90 static int bnx2fc_fw_init(struct bnx2fc_hba *hba);
91 static void bnx2fc_fw_destroy(struct bnx2fc_hba *hba);
172 struct bnx2fc_hba *hba = interface->hba; in bnx2fc_cleanup() local
177 mutex_lock(&hba->hba_mutex); in bnx2fc_cleanup()
178 spin_lock_bh(&hba->hba_lock); in bnx2fc_cleanup()
[all …]
Dbnx2fc_hwi.c19 static void bnx2fc_fastpath_notification(struct bnx2fc_hba *hba,
21 static void bnx2fc_process_ofld_cmpl(struct bnx2fc_hba *hba,
23 static void bnx2fc_process_enable_conn_cmpl(struct bnx2fc_hba *hba,
25 static void bnx2fc_init_failure(struct bnx2fc_hba *hba, u32 err_code);
26 static void bnx2fc_process_conn_destroy_cmpl(struct bnx2fc_hba *hba,
29 int bnx2fc_send_stat_req(struct bnx2fc_hba *hba) in bnx2fc_send_stat_req() argument
41 stat_req.stat_params_addr_lo = (u32) hba->stats_buf_dma; in bnx2fc_send_stat_req()
42 stat_req.stat_params_addr_hi = (u32) ((u64)hba->stats_buf_dma >> 32); in bnx2fc_send_stat_req()
46 if (hba->cnic && hba->cnic->submit_kwqes) in bnx2fc_send_stat_req()
47 rc = hba->cnic->submit_kwqes(hba->cnic, kwqe_arr, num_kwqes); in bnx2fc_send_stat_req()
[all …]
Dbnx2fc_tgt.c21 static u32 bnx2fc_alloc_conn_id(struct bnx2fc_hba *hba,
23 static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba,
25 static void bnx2fc_free_session_resc(struct bnx2fc_hba *hba,
27 static void bnx2fc_free_conn_id(struct bnx2fc_hba *hba, u32 conn_id);
86 struct bnx2fc_hba *hba = interface->hba; in bnx2fc_offload_session() local
100 rval = bnx2fc_alloc_session_resc(hba, tgt); in bnx2fc_offload_session()
159 bnx2fc_free_session_resc(hba, tgt); in bnx2fc_offload_session()
162 bnx2fc_free_conn_id(hba, tgt->fcoe_conn_id); in bnx2fc_offload_session()
295 struct bnx2fc_hba *hba = interface->hba; in bnx2fc_upload_session() local
326 bnx2fc_send_session_destroy_req(hba, tgt); in bnx2fc_upload_session()
[all …]
Dbnx2fc.h153 #define BNX2FC_STATS(hba, stat, cnt) \ argument
158 if (hba->prev_stats.stat.cnt <= val) \
159 val -= hba->prev_stats.stat.cnt; \
161 val += (0xfffffff - hba->prev_stats.stat.cnt); \
162 hba->bfw_stats.cnt += val; \
255 struct bnx2fc_hba *hba; member
278 struct bnx2fc_hba *hba; member
484 struct bnx2fc_hba *hba; member
494 int bnx2fc_send_fw_fcoe_init_msg(struct bnx2fc_hba *hba);
495 int bnx2fc_send_fw_fcoe_destroy_msg(struct bnx2fc_hba *hba);
[all …]
Dbnx2fc_io.c243 struct bnx2fc_cmd_mgr *bnx2fc_cmd_mgr_alloc(struct bnx2fc_hba *hba) in bnx2fc_cmd_mgr_alloc() argument
256 u16 max_xid = hba->max_xid; in bnx2fc_cmd_mgr_alloc()
291 cmgr->hba = hba; in bnx2fc_cmd_mgr_alloc()
305 num_pri_ios = num_ios - hba->elstm_xids; in bnx2fc_cmd_mgr_alloc()
350 bdt_info->bd_tbl = dma_alloc_coherent(&hba->pcidev->dev, in bnx2fc_cmd_mgr_alloc()
371 struct bnx2fc_hba *hba = cmgr->hba; in bnx2fc_cmd_mgr_free() local
374 u16 max_xid = hba->max_xid; in bnx2fc_cmd_mgr_free()
388 dma_free_coherent(&hba->pcidev->dev, bd_tbl_sz, in bnx2fc_cmd_mgr_free()
430 struct bnx2fc_cmd_mgr *cmd_mgr = interface->hba->cmd_mgr; in bnx2fc_elstm_alloc()
500 struct bnx2fc_cmd_mgr *cmd_mgr = interface->hba->cmd_mgr; in bnx2fc_cmd_alloc()
[all …]
Dbnx2fc_els.c767 interface->hba->task_ctx[task_idx]; in bnx2fc_initiate_els()
/linux-4.1.27/drivers/parisc/
Dlba_pci.c192 u8 first_bus = d->hba.hba_bus->busn_res.start; in lba_device_present()
193 u8 last_sub_bus = d->hba.hba_bus->busn_res.end; in lba_device_present()
208 error_config = READ_REG32(d->hba.base_addr + LBA_ERROR_CONFIG); \
211 status_control = READ_REG32(d->hba.base_addr + LBA_STAT_CTL); \
217 arb_mask = READ_REG32(d->hba.base_addr + LBA_ARB_MASK); \
223 WRITE_REG32(0x1, d->hba.base_addr + LBA_ARB_MASK); \
229 WRITE_REG32(error_config | LBA_SMART_MODE, d->hba.base_addr + LBA_ERROR_CONFIG); \
238 WRITE_REG32(tok | PCI_VENDOR_ID, (d)->hba.base_addr + LBA_PCI_CFG_ADDR);\
243 lba_t32 = READ_REG32((d)->hba.base_addr + LBA_PCI_CFG_ADDR); \
248 WRITE_REG32(~0, (d)->hba.base_addr + LBA_PCI_CFG_DATA); \
[all …]
Ddino.c145 struct pci_hba_data hba; /* 'C' inheritance - must be first */ member
179 void __iomem *base_addr = d->hba.base_addr; in dino_cfg_read()
214 void __iomem *base_addr = d->hba.base_addr; in dino_cfg_write()
307 __raw_writel(dino_dev->imr, dino_dev->hba.base_addr+DINO_IMR); in dino_mask_irq()
324 __raw_readl(dino_dev->hba.base_addr+DINO_IPR); in dino_unmask_irq()
328 __raw_writel( dino_dev->imr, dino_dev->hba.base_addr+DINO_IMR); in dino_unmask_irq()
339 tmp = __raw_readl(dino_dev->hba.base_addr+DINO_ILR); in dino_unmask_irq()
370 mask = __raw_readl(dino_dev->hba.base_addr+DINO_IRR0) & DINO_IRR_MASK; in dino_isr()
392 mask = __raw_readl(dino_dev->hba.base_addr+DINO_ILR) & dino_dev->imr; in dino_isr()
397 dino_dev->hba.base_addr, mask); in dino_isr()
[all …]
Deisa.c65 struct pci_hba_data hba; member
311 eisa_dev.hba.dev = dev; in eisa_probe()
312 eisa_dev.hba.iommu = ccio_get_iommu(dev); in eisa_probe()
314 eisa_dev.hba.lmmio_space.name = "EISA"; in eisa_probe()
315 eisa_dev.hba.lmmio_space.start = F_EXTEND(0xfc000000); in eisa_probe()
316 eisa_dev.hba.lmmio_space.end = F_EXTEND(0xffbfffff); in eisa_probe()
317 eisa_dev.hba.lmmio_space.flags = IORESOURCE_MEM; in eisa_probe()
318 result = ccio_request_resource(dev, &eisa_dev.hba.lmmio_space); in eisa_probe()
323 eisa_dev.hba.io_space.name = "EISA"; in eisa_probe()
324 eisa_dev.hba.io_space.start = 0; in eisa_probe()
[all …]
/linux-4.1.27/drivers/block/
Dcpqarray.c73 static ctlr_info_t *hba[MAX_CTLR]; variable
224 proc_create_data(hba[i]->devname, 0, proc_array, &ida_proc_fops, hba[i]); in ida_procinit()
336 free_irq(hba[i]->intr, hba[i]); in cpqarray_remove_one()
337 iounmap(hba[i]->vaddr); in cpqarray_remove_one()
338 unregister_blkdev(COMPAQ_SMART2_MAJOR+i, hba[i]->devname); in cpqarray_remove_one()
339 del_timer(&hba[i]->timer); in cpqarray_remove_one()
340 remove_proc_entry(hba[i]->devname, proc_array); in cpqarray_remove_one()
341 pci_free_consistent(hba[i]->pci_dev, in cpqarray_remove_one()
342 NR_CMDS * sizeof(cmdlist_t), (hba[i]->cmd_pool), in cpqarray_remove_one()
343 hba[i]->cmd_pool_dhandle); in cpqarray_remove_one()
[all …]
Dcpqarray.h122 #define IDA_LOCK(i) (&hba[i]->lock)
Dcciss.c159 static ctlr_info_t *hba[MAX_CTLR]; variable
1815 ctlr_info_t *h = hba[c->ctlr]; in cciss_softirq_done()
4403 if (!hba[i]) { in alloc_cciss_hba()
4409 hba[i] = h; in alloc_cciss_hba()
4425 hba[h->ctlr] = NULL; in free_hba()
4952 hba[ctlr] = NULL; in cciss_undo_allocations_after_kdump_soft_reset()
5000 h = hba[i]; in cciss_init_one()
5258 if (hba[i] == NULL) { in cciss_remove_one()
5379 if (hba[i] != NULL) { in cciss_cleanup()
5380 dev_warn(&hba[i]->pdev->dev, in cciss_cleanup()
[all …]
Dcciss_scsi.c738 h = hba[c->ctlr]; in complete_scsi_command()
/linux-4.1.27/arch/parisc/include/asm/
Dpci.h142 u8 (*inb) (struct pci_hba_data *hba, u16 port);
143 u16 (*inw) (struct pci_hba_data *hba, u16 port);
144 u32 (*inl) (struct pci_hba_data *hba, u16 port);
145 void (*outb) (struct pci_hba_data *hba, u16 port, u8 data);
146 void (*outw) (struct pci_hba_data *hba, u16 port, u16 data);
147 void (*outl) (struct pci_hba_data *hba, u16 port, u32 data);
Dropes.h207 struct pci_hba_data hba; member
/linux-4.1.27/arch/parisc/kernel/
Dpci.c288 void pcibios_register_hba(struct pci_hba_data *hba) in pcibios_register_hba() argument
295 parisc_pci_hba[pci_hba_count] = hba; in pcibios_register_hba()
296 hba->hba_num = pci_hba_count++; in pcibios_register_hba()
/linux-4.1.27/Documentation/devicetree/bindings/ufs/
Dufshcd-pltfrm.txt12 - vdd-hba-supply : phandle to UFS host controller supply regulator node
44 vdd-hba-supply = <&xxx_reg0>;
45 vdd-hba-fixed-regulator;
/linux-4.1.27/drivers/s390/scsi/
Dzfcp_dbf.c100 debug_event(dbf->hba, 1, rec, sizeof(*rec)); in zfcp_dbf_hba_fsf_res()
143 debug_event(dbf->hba, 2, rec, sizeof(*rec)); in zfcp_dbf_hba_fsf_uss()
170 debug_event(dbf->hba, 1, rec, sizeof(*rec)); in zfcp_dbf_hba_bit_err()
226 debug_event(dbf->hba, 1, rec, sizeof(*rec)); in zfcp_dbf_hba_basic()
470 debug_unregister(dbf->hba); in zfcp_dbf_unregister()
504 dbf->hba = zfcp_dbf_reg(name, dbfsize, sizeof(struct zfcp_dbf_hba)); in zfcp_dbf_adapter_register()
505 if (!dbf->hba) in zfcp_dbf_adapter_register()
Dzfcp_dbf.h263 debug_info_t *hba; member
281 if (debug_level_enabled(req->adapter->dbf->hba, level)) in zfcp_dbf_hba_fsf_resp()
/linux-4.1.27/drivers/scsi/cxgbi/
Dlibcxgbi.c2704 struct cxgbi_hba *hba = NULL; in cxgbi_ep_connect() local
2713 hba = iscsi_host_priv(shost); in cxgbi_ep_connect()
2714 if (!hba) { in cxgbi_ep_connect()
2737 if (!hba) in cxgbi_ep_connect()
2738 hba = csk->cdev->hbas[csk->port_id]; in cxgbi_ep_connect()
2739 else if (hba != csk->cdev->hbas[csk->port_id]) { in cxgbi_ep_connect()
2742 shost->host_no, hba, in cxgbi_ep_connect()
2772 cep->chba = hba; in cxgbi_ep_connect()
2776 ep, cep, csk, hba, hba->ndev->name); in cxgbi_ep_connect()
/linux-4.1.27/Documentation/scsi/
Dmegaraid.txt53 module acts as a registry for low level hba drivers. The low level drivers
Ddpti.txt55 * Enabled hba reset from ioctls (allows a FW flash to reboot and use the new
DChangeLog.lpfc243 * Add entries to hba structure to delegate some functionality from
875 embedded into the hba struct. lpfc_config_setup() has been
1553 associated with that hba.
/linux-4.1.27/drivers/message/fusion/
Dmptsas.c3287 struct mptsas_portinfo *port_info, *hba; in mptsas_probe_hba_phys() local
3290 hba = kzalloc(sizeof(struct mptsas_portinfo), GFP_KERNEL); in mptsas_probe_hba_phys()
3291 if (! hba) in mptsas_probe_hba_phys()
3294 error = mptsas_sas_io_unit_pg0(ioc, hba); in mptsas_probe_hba_phys()
3302 ioc->hba_port_info = port_info = hba; in mptsas_probe_hba_phys()
3306 for (i = 0; i < hba->num_phys; i++) { in mptsas_probe_hba_phys()
3308 hba->phy_info[i].negotiated_link_rate; in mptsas_probe_hba_phys()
3310 hba->phy_info[i].handle; in mptsas_probe_hba_phys()
3312 hba->phy_info[i].port_id; in mptsas_probe_hba_phys()
3314 kfree(hba->phy_info); in mptsas_probe_hba_phys()
[all …]
/linux-4.1.27/drivers/char/agp/
Dparisc-agp.c415 parisc_agp_setup(sba_list->ioc[0].ioc_hpa, lbadev->hba.base_addr); in parisc_agp_init()
/linux-4.1.27/drivers/target/loopback/
Dtcm_loop.c42 #define to_tcm_loop_hba(hba) container_of(hba, struct tcm_loop_hba, dev) argument
/linux-4.1.27/mm/
Dmemory.c2410 pgoff_t hba = holebegin >> PAGE_SHIFT; in unmap_mapping_range() local
2418 hlen = ULONG_MAX - hba + 1; in unmap_mapping_range()
2422 details.first_index = hba; in unmap_mapping_range()
2423 details.last_index = hba + hlen - 1; in unmap_mapping_range()
/linux-4.1.27/Documentation/PCI/
Dpci-error-recovery.txt328 + /* Set EEH reset type to fundamental if required by hba */