Home
last modified time | relevance | path

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

/linux-4.4.14/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
285 void (*dbg_register_dump)(struct ufs_hba *hba);
538 static inline bool ufshcd_is_clkgating_allowed(struct ufs_hba *hba) in ufshcd_is_clkgating_allowed() argument
540 return hba->caps & UFSHCD_CAP_CLK_GATING; in ufshcd_is_clkgating_allowed()
542 static inline bool ufshcd_can_hibern8_during_gating(struct ufs_hba *hba) in ufshcd_can_hibern8_during_gating() argument
[all …]
Dufs-qcom.c49 static int ufs_qcom_set_dme_vs_core_clk_ctrl_clear_div(struct ufs_hba *hba,
52 static void ufs_qcom_dump_regs(struct ufs_hba *hba, int offset, int len, in ufs_qcom_dump_regs() argument
57 16, 4, (void __force *)hba->mmio_base + offset, in ufs_qcom_dump_regs()
61 static int ufs_qcom_get_connected_tx_lanes(struct ufs_hba *hba, u32 *tx_lanes) in ufs_qcom_get_connected_tx_lanes() argument
65 err = ufshcd_dme_get(hba, in ufs_qcom_get_connected_tx_lanes()
68 dev_err(hba->dev, "%s: couldn't read PA_CONNECTEDTXDATALANES %d\n", in ufs_qcom_get_connected_tx_lanes()
120 struct device *dev = host->hba->dev; in ufs_qcom_enable_lane_clks()
161 struct device *dev = host->hba->dev; in ufs_qcom_init_lane_clks()
185 static int ufs_qcom_link_startup_post_change(struct ufs_hba *hba) in ufs_qcom_link_startup_post_change() argument
187 struct ufs_qcom_host *host = ufshcd_get_variant(hba); in ufs_qcom_link_startup_post_change()
[all …]
Dufs-qcom.h151 ufs_qcom_get_controller_revision(struct ufs_hba *hba, in ufs_qcom_get_controller_revision() argument
154 u32 ver = ufshcd_readl(hba, REG_UFS_HW_VERSION); in ufs_qcom_get_controller_revision()
161 static inline void ufs_qcom_assert_reset(struct ufs_hba *hba) in ufs_qcom_assert_reset() argument
163 ufshcd_rmwl(hba, MASK_UFS_PHY_SOFT_RESET, in ufs_qcom_assert_reset()
173 static inline void ufs_qcom_deassert_reset(struct ufs_hba *hba) in ufs_qcom_deassert_reset() argument
175 ufshcd_rmwl(hba, MASK_UFS_PHY_SOFT_RESET, in ufs_qcom_deassert_reset()
224 struct ufs_hba *hba; member
244 #define ufs_qcom_is_link_off(hba) ufshcd_is_link_off(hba) argument
245 #define ufs_qcom_is_link_active(hba) ufshcd_is_link_active(hba) argument
246 #define ufs_qcom_is_link_hibern8(hba) ufshcd_is_link_hibern8(hba) argument
Dufshcd-pltfrm.c43 static int ufshcd_parse_clock_info(struct ufs_hba *hba) in ufshcd_parse_clock_info() argument
48 struct device *dev = hba->dev; in ufshcd_parse_clock_info()
59 INIT_LIST_HEAD(&hba->clk_list_head); in ufshcd_parse_clock_info()
121 list_add_tail(&clki->list, &hba->clk_list_head); in ufshcd_parse_clock_info()
204 static int ufshcd_parse_regulator_info(struct ufs_hba *hba) in ufshcd_parse_regulator_info() argument
207 struct device *dev = hba->dev; in ufshcd_parse_regulator_info()
208 struct ufs_vreg_info *info = &hba->vreg_info; in ufshcd_parse_regulator_info()
290 struct ufs_hba *hba; in ufshcd_pltfrm_init() local
310 err = ufshcd_alloc_host(dev, &hba); in ufshcd_pltfrm_init()
316 hba->vops = vops; in ufshcd_pltfrm_init()
[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.4.14/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.c366 static struct status_msg *stex_get_status(struct st_hba *hba) in stex_get_status() argument
368 struct status_msg *status = hba->status_buffer + hba->status_tail; in stex_get_status()
370 ++hba->status_tail; in stex_get_status()
371 hba->status_tail %= hba->sts_count+1; in stex_get_status()
387 static struct req_msg *stex_alloc_req(struct st_hba *hba) in stex_alloc_req() argument
389 struct req_msg *req = hba->dma_mem + hba->req_head * hba->rq_size; in stex_alloc_req()
391 ++hba->req_head; in stex_alloc_req()
392 hba->req_head %= hba->rq_count+1; in stex_alloc_req()
397 static struct req_msg *stex_ss_alloc_req(struct st_hba *hba) in stex_ss_alloc_req() argument
399 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.4.14/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.4.14/drivers/target/
Dtarget_core_hba.c124 struct se_hba *hba; in core_alloc_hba() local
127 hba = kzalloc(sizeof(*hba), GFP_KERNEL); in core_alloc_hba()
128 if (!hba) { in core_alloc_hba()
133 spin_lock_init(&hba->device_lock); in core_alloc_hba()
134 mutex_init(&hba->hba_access_mutex); in core_alloc_hba()
136 hba->hba_index = scsi_get_new_index(SCSI_INST_INDEX); in core_alloc_hba()
137 hba->hba_flags |= hba_flags; in core_alloc_hba()
139 hba->backend = core_get_backend(plugin_name); in core_alloc_hba()
140 if (!hba->backend) { in core_alloc_hba()
145 ret = hba->backend->ops->attach_hba(hba, plugin_dep_id); in core_alloc_hba()
[all …]
Dtarget_core_device.c750 struct se_device *target_alloc_device(struct se_hba *hba, const char *name) in target_alloc_device() argument
755 dev = hba->backend->ops->alloc_device(hba, name); in target_alloc_device()
760 dev->se_hba = hba; in target_alloc_device()
761 dev->transport = hba->backend->ops; in target_alloc_device()
763 dev->hba_index = hba->hba_index; in target_alloc_device()
874 struct se_hba *hba = dev->se_hba; in target_configure_device() local
939 spin_lock(&hba->device_lock); in target_configure_device()
940 hba->dev_count++; in target_configure_device()
941 spin_unlock(&hba->device_lock); in target_configure_device()
960 struct se_hba *hba = dev->se_hba; in target_free_device() local
[all …]
Dtarget_core_pscsi.c65 static int pscsi_attach_hba(struct se_hba *hba, u32 host_id) in pscsi_attach_hba() argument
77 hba->hba_ptr = phv; in pscsi_attach_hba()
80 " Generic Target Core Stack %s\n", hba->hba_id, in pscsi_attach_hba()
83 hba->hba_id); in pscsi_attach_hba()
88 static void pscsi_detach_hba(struct se_hba *hba) in pscsi_detach_hba() argument
90 struct pscsi_hba_virt *phv = hba->hba_ptr; in pscsi_detach_hba()
97 " Generic Target Core\n", hba->hba_id, in pscsi_detach_hba()
102 " from Generic Target Core\n", hba->hba_id); in pscsi_detach_hba()
105 hba->hba_ptr = NULL; in pscsi_detach_hba()
108 static int pscsi_pmode_enable_hba(struct se_hba *hba, unsigned long mode_flag) in pscsi_pmode_enable_hba() argument
[all …]
Dtarget_core_configfs.c1734 struct se_hba *hba = dev->se_hba; in target_dev_alias_store() local
1753 config_item_name(&hba->hba_group.cg_item), in target_dev_alias_store()
1774 struct se_hba *hba = dev->se_hba; in target_dev_udev_path_store() local
1794 config_item_name(&hba->hba_group.cg_item), in target_dev_udev_path_store()
1856 struct se_hba *hba = dev->se_hba; in target_dev_alua_lu_gp_store() local
1898 config_item_name(&hba->hba_group.cg_item), in target_dev_alua_lu_gp_store()
1923 config_item_name(&hba->hba_group.cg_item), in target_dev_alua_lu_gp_store()
2182 struct se_hba *hba; in target_lu_gp_members_show() local
2192 hba = dev->se_hba; in target_lu_gp_members_show()
2195 config_item_name(&hba->hba_group.cg_item), in target_lu_gp_members_show()
[all …]
Dtarget_core_rd.c44 static int rd_attach_hba(struct se_hba *hba, u32 host_id) in rd_attach_hba() argument
56 hba->hba_ptr = rd_host; in rd_attach_hba()
59 " Generic Target Core Stack %s\n", hba->hba_id, in rd_attach_hba()
65 static void rd_detach_hba(struct se_hba *hba) in rd_detach_hba() argument
67 struct rd_host *rd_host = hba->hba_ptr; in rd_detach_hba()
70 " Generic Target Core\n", hba->hba_id, rd_host->rd_host_id); in rd_detach_hba()
73 hba->hba_ptr = NULL; in rd_detach_hba()
294 static struct se_device *rd_alloc_device(struct se_hba *hba, const char *name) in rd_alloc_device() argument
297 struct rd_host *rd_host = hba->hba_ptr; in rd_alloc_device()
Dtarget_core_file.c48 static int fd_attach_hba(struct se_hba *hba, u32 host_id) in fd_attach_hba() argument
60 hba->hba_ptr = fd_host; in fd_attach_hba()
63 " Target Core Stack %s\n", hba->hba_id, FD_VERSION, in fd_attach_hba()
66 hba->hba_id, fd_host->fd_host_id); in fd_attach_hba()
71 static void fd_detach_hba(struct se_hba *hba) in fd_detach_hba() argument
73 struct fd_host *fd_host = hba->hba_ptr; in fd_detach_hba()
76 " Target Core\n", hba->hba_id, fd_host->fd_host_id); in fd_detach_hba()
79 hba->hba_ptr = NULL; in fd_detach_hba()
82 static struct se_device *fd_alloc_device(struct se_hba *hba, const char *name) in fd_alloc_device() argument
85 struct fd_host *fd_host = hba->hba_ptr; in fd_alloc_device()
Dtarget_core_user.c83 struct se_hba *hba; member
673 static int tcmu_attach_hba(struct se_hba *hba, u32 host_id) in tcmu_attach_hba() argument
682 hba->hba_ptr = tcmu_hba; in tcmu_attach_hba()
687 static void tcmu_detach_hba(struct se_hba *hba) in tcmu_detach_hba() argument
689 kfree(hba->hba_ptr); in tcmu_detach_hba()
690 hba->hba_ptr = NULL; in tcmu_detach_hba()
693 static struct se_device *tcmu_alloc_device(struct se_hba *hba, const char *name) in tcmu_alloc_device() argument
707 udev->hba = hba; in tcmu_alloc_device()
859 struct tcmu_hba *hba = udev->hba->hba_ptr; in tcmu_configure_device() local
869 size = snprintf(NULL, 0, "tcm-user/%u/%s/%s", hba->host_id, udev->name, in tcmu_configure_device()
[all …]
Dtarget_core_iblock.c55 static int iblock_attach_hba(struct se_hba *hba, u32 host_id) in iblock_attach_hba() argument
58 " Generic Target Core Stack %s\n", hba->hba_id, in iblock_attach_hba()
63 static void iblock_detach_hba(struct se_hba *hba) in iblock_detach_hba() argument
67 static struct se_device *iblock_alloc_device(struct se_hba *hba, const char *name) in iblock_alloc_device() argument
Dtarget_core_stat.c66 struct se_hba *hba = to_stat_dev(item)->se_hba; in target_stat_inst_show() local
68 return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index); in target_stat_inst_show()
116 struct se_hba *hba = to_stat_tgt_dev(item)->se_hba; in target_stat_tgt_inst_show() local
118 return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index); in target_stat_tgt_inst_show()
196 struct se_hba *hba = to_stat_lu_dev(item)->se_hba; in target_stat_lu_inst_show() local
198 return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index); in target_stat_lu_inst_show()
Dtarget_core_internal.h83 struct se_device *target_alloc_device(struct se_hba *hba, const char *name);
/linux-4.4.14/drivers/scsi/bnx2fc/
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_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_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
483 struct bnx2fc_hba *hba; member
493 int bnx2fc_send_fw_fcoe_init_msg(struct bnx2fc_hba *hba);
494 int bnx2fc_send_fw_fcoe_destroy_msg(struct bnx2fc_hba *hba);
[all …]
Dbnx2fc_io.c198 struct bnx2fc_cmd_mgr *bnx2fc_cmd_mgr_alloc(struct bnx2fc_hba *hba) in bnx2fc_cmd_mgr_alloc() argument
211 u16 max_xid = hba->max_xid; in bnx2fc_cmd_mgr_alloc()
246 cmgr->hba = hba; in bnx2fc_cmd_mgr_alloc()
260 num_pri_ios = num_ios - hba->elstm_xids; in bnx2fc_cmd_mgr_alloc()
305 bdt_info->bd_tbl = dma_alloc_coherent(&hba->pcidev->dev, in bnx2fc_cmd_mgr_alloc()
326 struct bnx2fc_hba *hba = cmgr->hba; in bnx2fc_cmd_mgr_free() local
329 u16 max_xid = hba->max_xid; in bnx2fc_cmd_mgr_free()
343 dma_free_coherent(&hba->pcidev->dev, bd_tbl_sz, in bnx2fc_cmd_mgr_free()
385 struct bnx2fc_cmd_mgr *cmd_mgr = interface->hba->cmd_mgr; in bnx2fc_elstm_alloc()
455 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.4.14/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.4.14/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.c157 static ctlr_info_t *hba[MAX_CTLR]; variable
1831 ctlr_info_t *h = hba[c->ctlr]; in cciss_softirq_done()
4419 if (!hba[i]) { in alloc_cciss_hba()
4425 hba[i] = h; in alloc_cciss_hba()
4441 hba[h->ctlr] = NULL; in free_hba()
4967 hba[ctlr] = NULL; in cciss_undo_allocations_after_kdump_soft_reset()
5015 h = hba[i]; in cciss_init_one()
5273 if (hba[i] == NULL) { in cciss_remove_one()
5394 if (hba[i] != NULL) { in cciss_cleanup()
5395 dev_warn(&hba[i]->pdev->dev, in cciss_cleanup()
[all …]
Dcciss_scsi.c737 h = hba[c->ctlr]; in complete_scsi_command()
/linux-4.4.14/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.4.14/arch/parisc/kernel/
Dpci.c270 void pcibios_register_hba(struct pci_hba_data *hba) in pcibios_register_hba() argument
277 parisc_pci_hba[pci_hba_count] = hba; in pcibios_register_hba()
278 hba->hba_num = pci_hba_count++; in pcibios_register_hba()
/linux-4.4.14/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.4.14/Documentation/devicetree/bindings/ufs/
Dufshcd-pltfrm.txt19 - vdd-hba-supply : phandle to UFS host controller supply regulator node
51 vdd-hba-supply = <&xxx_reg0>;
52 vdd-hba-fixed-regulator;
/linux-4.4.14/drivers/scsi/cxgbi/
Dlibcxgbi.c2708 struct cxgbi_hba *hba = NULL; in cxgbi_ep_connect() local
2717 hba = iscsi_host_priv(shost); in cxgbi_ep_connect()
2718 if (!hba) { in cxgbi_ep_connect()
2741 if (!hba) in cxgbi_ep_connect()
2742 hba = csk->cdev->hbas[csk->port_id]; in cxgbi_ep_connect()
2743 else if (hba != csk->cdev->hbas[csk->port_id]) { in cxgbi_ep_connect()
2746 shost->host_no, hba, in cxgbi_ep_connect()
2776 cep->chba = hba; in cxgbi_ep_connect()
2780 ep, cep, csk, hba, hba->ndev->name); in cxgbi_ep_connect()
/linux-4.4.14/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.4.14/drivers/message/fusion/
Dmptsas.c3286 struct mptsas_portinfo *port_info, *hba; in mptsas_probe_hba_phys() local
3289 hba = kzalloc(sizeof(struct mptsas_portinfo), GFP_KERNEL); in mptsas_probe_hba_phys()
3290 if (! hba) in mptsas_probe_hba_phys()
3293 error = mptsas_sas_io_unit_pg0(ioc, hba); in mptsas_probe_hba_phys()
3301 ioc->hba_port_info = port_info = hba; in mptsas_probe_hba_phys()
3305 for (i = 0; i < hba->num_phys; i++) { in mptsas_probe_hba_phys()
3307 hba->phy_info[i].negotiated_link_rate; in mptsas_probe_hba_phys()
3309 hba->phy_info[i].handle; in mptsas_probe_hba_phys()
3311 hba->phy_info[i].port_id; in mptsas_probe_hba_phys()
3313 kfree(hba->phy_info); in mptsas_probe_hba_phys()
[all …]
/linux-4.4.14/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.4.14/drivers/target/loopback/
Dtcm_loop.c40 #define to_tcm_loop_hba(hba) container_of(hba, struct tcm_loop_hba, dev) argument
/linux-4.4.14/mm/
Dmemory.c2452 pgoff_t hba = holebegin >> PAGE_SHIFT; in unmap_mapping_range() local
2460 hlen = ULONG_MAX - hba + 1; in unmap_mapping_range()
2464 details.first_index = hba; in unmap_mapping_range()
2465 details.last_index = hba + hlen - 1; in unmap_mapping_range()
/linux-4.4.14/Documentation/PCI/
Dpci-error-recovery.txt328 + /* Set EEH reset type to fundamental if required by hba */