Home
last modified time | relevance | path

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

123

/linux/drivers/scsi/ufs/
A Dufshcd.c542 hba->saved_err, hba->saved_uic_err); in ufshcd_print_host_state()
558 hba->eh_flags, hba->req_abort_count); in ufshcd_print_host_state()
560 hba->ufs_version, hba->capabilities, hba->caps); in ufshcd_print_host_state()
3638 hba->lrb = devm_kcalloc(hba->dev, in ufshcd_memory_alloc()
3709 ufshcd_init_lrb(hba, &hba->lrb[i], i); in ufshcd_host_memory_configure()
6008 (!(hba->saved_err || hba->saved_uic_err || hba->force_reset || in ufshcd_err_handling_should_stop()
6088 hba->is_powered, hba->shutting_down, hba->saved_err, in ufshcd_err_handler()
6412 hba->saved_err |= hba->errors; in ufshcd_check_errors()
6413 hba->saved_uic_err |= hba->uic_error; in ufshcd_check_errors()
8812 hba->rpm_lvl : hba->spm_lvl; in __ufshcd_wl_suspend()
[all …]
A Dufshcd.h1226 if (hba->vops && hba->vops->init) in ufshcd_vops_init()
1227 return hba->vops->init(hba); in ufshcd_vops_init()
1234 if (hba->vops && hba->vops->exit) in ufshcd_vops_exit()
1235 return hba->vops->exit(hba); in ufshcd_vops_exit()
1258 if (hba->vops && hba->vops->event_notify) in ufshcd_vops_event_notify()
1332 hba->vops->fixup_dev_quirks(hba); in ufshcd_vops_fixup_dev_quirks()
1338 if (hba->vops && hba->vops->suspend) in ufshcd_vops_suspend()
1346 if (hba->vops && hba->vops->resume) in ufshcd_vops_resume()
1347 return hba->vops->resume(hba, op); in ufshcd_vops_resume()
1355 hba->vops->dbg_register_dump(hba); in ufshcd_vops_dbg_register_dump()
[all …]
A Dufs-mediatek.c86 ufshcd_dme_get(hba, in ufs_mtk_cfg_unipro_cg()
92 ufshcd_dme_set(hba, in ufs_mtk_cfg_unipro_cg()
95 ufshcd_dme_get(hba, in ufs_mtk_cfg_unipro_cg()
98 ufshcd_dme_set(hba, in ufs_mtk_cfg_unipro_cg()
101 ufshcd_dme_get(hba, in ufs_mtk_cfg_unipro_cg()
106 ufshcd_dme_set(hba, in ufs_mtk_cfg_unipro_cg()
193 hba->ahit = 0; in ufs_mtk_hce_enable_notify()
703 host->hba = hba; in ufs_mtk_init()
867 if (ufshcd_is_auto_hibern8_supported(hba) && hba->ahit) in ufs_mtk_setup_clk_gating()
982 if (!hba->vreg_info.vccq2 || !hba->vreg_info.vcc) in ufs_mtk_vreg_set_lpm()
[all …]
A Dufs-hisi.c33 err |= ufshcd_dme_get(hba, in ufs_hisi_check_hibern8()
50 err |= ufshcd_dme_get(hba, in ufs_hisi_check_hibern8()
220 dev_info(hba->dev, in ufs_hisi_link_startup_pre_change()
370 dev_err(hba->dev, in ufs_hisi_pwr_change_notify()
382 dev_err(hba->dev, in ufs_hisi_pwr_change_notify()
471 host->hba = hba; in ufs_hisi_init_common()
505 ufs_hisi_clk_init(hba); in ufs_hi3660_init()
507 ufs_hisi_soc_init(hba); in ufs_hi3660_init()
524 ufs_hisi_clk_init(hba); in ufs_hi3670_init()
526 ufs_hisi_soc_init(hba); in ufs_hi3670_init()
[all …]
A Dufs-qcom.c61 err = ufshcd_dme_get(hba, in ufs_qcom_get_connected_tx_lanes()
264 disable_irq(hba->irq); in ufs_qcom_host_reset()
289 enable_irq(hba->irq); in ufs_qcom_host_reset()
350 ufshcd_writel(hba, in ufs_qcom_enable_hw_clk_gating()
467 dev_err(hba->dev, in ufs_qcom_cfg_timers()
476 dev_err(hba->dev, in ufs_qcom_cfg_timers()
492 dev_err(hba->dev, in ufs_qcom_cfg_timers()
1002 host->hba = hba; in ufs_qcom_init()
1092 ufs_qcom_set_caps(hba); in ufs_qcom_init()
1260 if (unlikely(!hba)) { in ufs_qcom_print_hw_debug_reg_all()
[all …]
A Dufshcd-pci.c155 (hba->pwr_info.lane_rx != 2 || hba->pwr_info.lane_tx != 2)) in ufs_intel_lkf_pwr_change_notify()
262 intel_cache_ltr(hba); in intel_ltr_set()
284 intel_cache_ltr(hba); in intel_add_debugfs()
361 intel_add_debugfs(hba); in ufs_intel_common_init()
367 intel_remove_debugfs(hba); in ufs_intel_common_exit()
368 intel_ltr_hide(hba->dev); in ufs_intel_common_exit()
474 ufshcd_set_link_off(hba); in ufshcd_pci_restore()
500 ufshcd_remove(hba); in ufshcd_pci_remove()
501 ufshcd_dealloc_host(hba); in ufshcd_pci_remove()
515 struct ufs_hba *hba; in ufshcd_pci_probe() local
[all …]
A Dufs-debugfs.c63 *val = hba->ee_usr_mask; in ee_usr_mask_get()
68 __acquires(&hba->host_sem) in ufs_debugfs_get_user_access()
70 down(&hba->host_sem); in ufs_debugfs_get_user_access()
72 up(&hba->host_sem); in ufs_debugfs_get_user_access()
75 ufshcd_rpm_get_sync(hba); in ufs_debugfs_get_user_access()
80 __releases(&hba->host_sem) in ufs_debugfs_put_user_access()
83 up(&hba->host_sem); in ufs_debugfs_put_user_access()
113 ee_ctrl_mask = hba->ee_drv_mask | (hba->ee_usr_mask & ~status); in ufs_debugfs_exception_event()
134 if (!hba->ee_usr_mask || pm_runtime_suspended(hba->dev) || in ufs_debugfs_restart_ee()
148 p = &hba->saved_err; in ufs_saved_err_show()
[all …]
A Dufshcd-crypto.c27 ufshcd_hold(hba, false); in ufshcd_program_key()
29 if (hba->vops && hba->vops->program_key) { in ufshcd_program_key()
30 err = hba->vops->program_key(hba, cfg, slot); in ufshcd_program_key()
47 ufshcd_release(hba); in ufshcd_program_key()
55 struct ufs_hba *hba = in ufshcd_crypto_keyslot_program() local
113 struct ufs_hba *hba = in ufshcd_crypto_keyslot_evict() local
173 hba->crypto_cfg_register = in ufshcd_hba_init_crypto_capabilities()
175 hba->crypto_cap_array = in ufshcd_hba_init_crypto_capabilities()
176 devm_kcalloc(hba->dev, hba->crypto_capabilities.num_crypto_cap, in ufshcd_hba_init_crypto_capabilities()
185 hba->dev, &hba->crypto_profile, in ufshcd_hba_init_crypto_capabilities()
[all …]
A Dufs-exynos.c219 struct ufs_hba *hba = ufs->hba; in exynosauto_ufs_post_hce_enable() local
233 struct ufs_hba *hba = ufs->hba; in exynosauto_ufs_pre_link() local
288 struct ufs_hba *hba = ufs->hba; in exynosauto_ufs_pre_pwr_change() local
301 struct ufs_hba *hba = ufs->hba; in exynosauto_ufs_post_pwr_change() local
314 struct ufs_hba *hba = ufs->hba; in exynos7_ufs_pre_link() local
344 struct ufs_hba *hba = ufs->hba; in exynos7_ufs_post_link() local
374 struct ufs_hba *hba = ufs->hba; in exynos7_ufs_post_pwr_change() local
420 struct ufs_hba *hba = ufs->hba; in exynos_ufs_get_clk_info() local
487 struct ufs_hba *hba = ufs->hba; in exynos_ufs_set_pwm_clk_div() local
496 struct ufs_hba *hba = ufs->hba; in exynos_ufs_calc_pwm_clk_div() local
[all …]
A Dcdns-pltfrm.c46 ufshcd_dme_get(hba, UIC_ARG_MIB(T_PROTOCOLID), in cdns_ufs_get_l4_attr()
48 ufshcd_dme_get(hba, UIC_ARG_MIB(T_CPORTFLAGS), in cdns_ufs_get_l4_attr()
60 ufshcd_dme_get(hba, UIC_ARG_MIB(T_CPORTMODE), in cdns_ufs_get_l4_attr()
158 return cdns_ufs_set_hclkdiv(hba); in cdns_ufs_hce_enable_notify()
173 cdns_ufs_get_l4_attr(hba); in cdns_ufs_hibern8_notify()
175 cdns_ufs_set_l4_attr(hba); in cdns_ufs_hibern8_notify()
199 ufshcd_disable_host_tx_lcc(hba); in cdns_ufs_link_startup_notify()
205 hba->ahit = 0; in cdns_ufs_link_startup_notify()
220 struct device *dev = hba->dev; in cdns_ufs_init()
226 ufshcd_set_variant(hba, host); in cdns_ufs_init()
[all …]
A Dufs-hwmon.c13 struct ufs_hba *hba; member
53 struct ufs_hba *hba = data->hba; in ufs_hwmon_read() local
56 down(&hba->host_sem); in ufs_hwmon_read()
59 up(&hba->host_sem); in ufs_hwmon_read()
63 ufshcd_rpm_get_sync(hba); in ufs_hwmon_read()
90 up(&hba->host_sem); in ufs_hwmon_read()
99 struct ufs_hba *hba = data->hba; in ufs_hwmon_write() local
108 down(&hba->host_sem); in ufs_hwmon_write()
111 up(&hba->host_sem); in ufs_hwmon_write()
124 up(&hba->host_sem); in ufs_hwmon_write()
[all …]
A Dufs-sysfs.c58 hba->rpm_lvl = value; in ufs_sysfs_pm_lvl_store()
60 hba->spm_lvl = value; in ufs_sysfs_pm_lvl_store()
163 down(&hba->host_sem); in auto_hibern8_show()
172 ufshcd_release(hba); in auto_hibern8_show()
178 up(&hba->host_sem); in auto_hibern8_show()
199 down(&hba->host_sem); in auto_hibern8_store()
208 up(&hba->host_sem); in auto_hibern8_store()
227 if (!ufshcd_is_wb_allowed(hba) || ufshcd_is_clkscaling_supported(hba)) { in wb_on_store()
252 up(&hba->host_sem); in wb_on_store()
305 memset(&hba->monitor, 0, sizeof(hba->monitor)); in monitor_enable_store()
[all …]
A Dufs_bsg.c100 ufshcd_rpm_get_sync(hba); in ufs_bsg_request()
109 ufshcd_rpm_put_sync(hba); in ufs_bsg_request()
120 dev_err(hba->dev, in ufs_bsg_request()
126 ret = ufshcd_send_uic_cmd(hba, &uc); in ufs_bsg_request()
128 dev_err(hba->dev, in ufs_bsg_request()
141 ufshcd_rpm_put_sync(hba); in ufs_bsg_request()
174 if (!hba->bsg_queue) in ufs_bsg_remove()
177 bsg_remove_queue(hba->bsg_queue); in ufs_bsg_remove()
194 int ufs_bsg_probe(struct ufs_hba *hba) in ufs_bsg_probe() argument
197 struct Scsi_Host *shost = hba->host; in ufs_bsg_probe()
[all …]
A Dufshpb.h289 static void ufshpb_resume(struct ufs_hba *hba) {} in ufshpb_resume() argument
291 static void ufshpb_reset(struct ufs_hba *hba) {} in ufshpb_reset() argument
293 static void ufshpb_init(struct ufs_hba *hba) {} in ufshpb_init() argument
304 void ufshpb_resume(struct ufs_hba *hba);
305 void ufshpb_suspend(struct ufs_hba *hba);
306 void ufshpb_reset(struct ufs_hba *hba);
307 void ufshpb_reset_host(struct ufs_hba *hba);
308 void ufshpb_init(struct ufs_hba *hba);
311 void ufshpb_remove(struct ufs_hba *hba);
312 bool ufshpb_is_allowed(struct ufs_hba *hba);
[all …]
/linux/drivers/scsi/
A Dhptiop.c349 hba->ops->post_req(hba, &(hba->u.mvfrey.internal_req)); in iop_send_sync_request_mvfrey()
384 hba->ops->disable_intr(hba); in iop_send_sync_msg()
385 hba->ops->post_msg(hba, msg); in iop_send_sync_msg()
389 hba->ops->iop_intr(hba); in iop_send_sync_msg()
396 hba->ops->enable_intr(hba); in iop_send_sync_msg()
571 hba->ops->enable_intr(hba); in hptiop_initialize_iop()
773 free_req(hba, &hba->reqs[tag]); in hptiop_finish_scsi_req()
1053 hba->ops->post_req(hba, _req); in hptiop_queuecommand_lck()
1489 hba->ops->unmap_pci_bar(hba); in hptiop_probe()
1517 hba->ops->disable_intr(hba); in hptiop_shutdown()
[all …]
A Dstex.c408 struct req_msg *req = hba->dma_mem + hba->req_head * hba->rq_size; in stex_alloc_req()
411 hba->req_head %= hba->rq_count+1; in stex_alloc_req()
545 addr = hba->dma_handle + hba->req_head * hba->rq_size; in stex_ss_send_cmd()
550 hba->req_head %= hba->rq_count+1; in stex_ss_send_cmd()
696 req = hba->alloc_rq(hba); in stex_queuecommand_lck()
715 if (!hba->map_sg(hba, req, &hba->ccb[tag])) { in stex_queuecommand_lck()
720 hba->send(hba, req, tag); in stex_queuecommand_lck()
1070 status_phys = hba->dma_handle + (hba->rq_count+1) * hba->rq_size; in stex_common_handshake()
1259 hba->wait_ccb = &hba->ccb[tag]; in stex_abort()
1866 req = hba->alloc_rq(hba); in stex_hba_stop()
[all …]
/linux/drivers/scsi/bnx2i/
A Dbnx2i_init.c101 hba->pci_did); in bnx2i_identify_device()
120 hba = tmp_hba; in get_adapter_list_head()
126 return hba; in get_adapter_list_head()
143 return hba; in bnx2i_find_hba_for_cnic()
285 hba->cnic = cnic; in bnx2i_init_one()
288 hba->age++; in bnx2i_init_one()
323 if (!hba) { in bnx2i_ulp_init()
347 if (!hba) { in bnx2i_ulp_exit()
357 hba->cnic->unregister_device(hba->cnic, CNIC_ULP_ISCSI); in bnx2i_ulp_exit()
378 if (!hba) in bnx2i_get_stats()
[all …]
A Dbnx2i_iscsi.c398 bnx2i_ep->hba = hba; in bnx2i_alloc_ep()
543 hba->mp_bd_tbl, hba->mp_bd_dma); in bnx2i_setup_mp_bdt()
571 hba->mp_bd_tbl, hba->mp_bd_dma); in bnx2i_free_mp_bdt()
805 hba->pci_did = hba->pcidev->device; in bnx2i_alloc_hba()
806 hba->pci_vid = hba->pcidev->vendor; in bnx2i_alloc_hba()
863 hba->num_ccell = hba->max_sqes / 2; in bnx2i_alloc_hba()
1371 bnx2i_conn->hba = hba; in bnx2i_conn_create()
1441 if (bnx2i_ep->hba != hba) { in bnx2i_conn_bind()
1531 struct bnx2i_hba *hba = bnx2i_ep->hba; in bnx2i_ep_get_param() local
1676 if (hba && hba->cnic) in bnx2i_check_route()
[all …]
A Dbnx2i_hwi.c632 struct bnx2i_hba *hba = bnx2i_conn->hba; in bnx2i_update_iscsi_conn() local
674 if (hba->cnic && hba->cnic->submit_kwqes) in bnx2i_update_iscsi_conn()
771 if (hba->cnic && hba->cnic->submit_kwqes) in bnx2i_send_conn_destroy()
831 if (hba->cnic && hba->cnic->submit_kwqes) in bnx2i_570x_send_conn_ofld_req()
900 if (hba->cnic && hba->cnic->submit_kwqes) in bnx2i_5771x_send_conn_ofld_req()
1047 ep->hba = hba; in bnx2i_alloc_qp_resc()
1271 hba->num_ccell = hba->max_sqes >> 1; in bnx2i_send_fw_iscsi_init_msg()
1341 struct bnx2i_hba *hba = bnx2i_conn->hba; in bnx2i_process_scsi_cmd_resp() local
1959 struct bnx2i_hba *hba = bnx2i_conn->hba; in bnx2i_process_new_cqes() local
2400 if (hba != ep->hba) { in bnx2i_process_conn_destroy_cmpl()
[all …]
/linux/drivers/parisc/
A Dlba_pci.c113 return container_of(hba, struct lba_device, hba); in LBA_DEV()
739 ldev->hba.io_space.name, in lba_fixup_bus()
740 ldev->hba.io_space.start, ldev->hba.io_space.end, in lba_fixup_bus()
741 ldev->hba.io_space.flags); in lba_fixup_bus()
743 ldev->hba.lmmio_space.name, in lba_fixup_bus()
744 ldev->hba.lmmio_space.start, ldev->hba.lmmio_space.end, in lba_fixup_bus()
1141 r = &lba_dev->hba.io_space; in lba_pat_resources()
1187 r = &(lba_dev->hba.bus_num); in lba_legacy_resources()
1327 r = &(lba_dev->hba.io_space); in lba_legacy_resources()
1362 d->hba.base_addr, in lba_hw_init()
[all …]
A Ddino.c156 return container_of(hba, struct dino_device, hba); in DINO_DEV()
488 res = &dino_dev->hba.lmmio_space; in dino_card_setup()
755 res = &dino_dev->hba.lmmio_space; in dino_bridge_init()
788 res = &dino_dev->hba.lmmio_space; in dino_bridge_init()
812 pcibios_register_hba(&dino_dev->hba); in dino_common_init()
865 res = &dino_dev->hba.io_space; in dino_common_init()
878 dino_dev->hba.base_addr); in dino_common_init()
976 dino_dev->hba.dev = dev; in dino_probe()
995 if (dino_dev->hba.lmmio_space.flags) in dino_probe()
1001 if (dino_dev->hba.gmmio_space.flags) in dino_probe()
[all …]
/linux/drivers/scsi/bnx2fc/
A Dbnx2fc_fcoe.c193 struct bnx2fc_hba *hba = interface->hba; in bnx2fc_cleanup() local
285 hba = interface->hba; in bnx2fc_xmit()
810 hba = interface->hba; in bnx2fc_net_config()
905 if (interface->hba == hba && in bnx2fc_indicate_netevent()
922 if (interface->hba != hba) in bnx2fc_indicate_netevent()
1384 hba->max_xid = (hba->max_tasks - 1); in bnx2fc_hba_create()
1463 interface->hba = hba; in bnx2fc_interface_create()
1852 if (interface->hba == hba) { in bnx2fc_ulp_start()
1981 if (interface->hba == hba) in bnx2fc_ulp_stop()
2200 hba = interface->hba; in __bnx2fc_enable()
[all …]
A Dbnx2fc_hwi.c47 if (hba->cnic && hba->cnic->submit_kwqes) in bnx2fc_send_stat_req()
141 if (hba->cnic && hba->cnic->submit_kwqes) in bnx2fc_send_fw_fcoe_init_msg()
160 if (hba->cnic && hba->cnic->submit_kwqes) in bnx2fc_send_fw_fcoe_destroy_msg()
177 struct bnx2fc_hba *hba = interface->hba; in bnx2fc_send_session_ofld_req() local
344 if (hba->cnic && hba->cnic->submit_kwqes) in bnx2fc_send_session_ofld_req()
362 struct bnx2fc_hba *hba = interface->hba; in bnx2fc_send_session_enable_req() local
431 struct bnx2fc_hba *hba = interface->hba; in bnx2fc_send_session_disable_req() local
542 hba = unsol_els->hba; in bnx2fc_unsol_els_work()
615 unsol_els->hba = interface->hba; in bnx2fc_process_l2_frame_compl()
1171 if (hba != interface->hba) { in bnx2fc_process_ofld_cmpl()
[all …]
A Dbnx2fc_tgt.c86 struct bnx2fc_hba *hba = interface->hba; in bnx2fc_offload_session() local
295 struct bnx2fc_hba *hba = interface->hba; in bnx2fc_upload_session() local
357 struct bnx2fc_hba *hba = interface->hba; in bnx2fc_init_tgt() local
445 struct bnx2fc_hba *hba = interface->hba; in bnx2fc_rport_event_handler() local
505 hba->num_ofld_sess); in bnx2fc_rport_event_handler()
511 hba->num_ofld_sess++; in bnx2fc_rport_event_handler()
552 hba->num_ofld_sess--; in bnx2fc_rport_event_handler()
554 hba->num_ofld_sess); in bnx2fc_rport_event_handler()
582 struct bnx2fc_hba *hba = interface->hba; in bnx2fc_tgt_lookup() local
629 next = hba->next_conn_id; in bnx2fc_alloc_conn_id()
[all …]
/linux/drivers/target/
A Dtarget_core_hba.c111 struct se_hba *hba; in core_alloc_hba() local
114 hba = kzalloc(sizeof(*hba), GFP_KERNEL); in core_alloc_hba()
115 if (!hba) { in core_alloc_hba()
127 if (!hba->backend) { in core_alloc_hba()
132 ret = hba->backend->ops->attach_hba(hba, plugin_dep_id); in core_alloc_hba()
144 return hba; in core_alloc_hba()
148 hba->backend = NULL; in core_alloc_hba()
150 kfree(hba); in core_alloc_hba()
159 hba->backend->ops->detach_hba(hba); in core_delete_hba()
170 hba->backend = NULL; in core_delete_hba()
[all …]

Completed in 133 milliseconds

123