Home
last modified time | relevance | path

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

1234

/linux-6.3-rc2/drivers/ufs/core/
A Dufshcd-priv.h111 if (hba->vops && hba->vops->exit) in ufshcd_vops_exit()
112 return hba->vops->exit(hba); in ufshcd_vops_exit()
201 hba->vops->fixup_dev_quirks(hba); in ufshcd_vops_fixup_dev_quirks()
207 if (hba->vops && hba->vops->suspend) in ufshcd_vops_suspend()
215 if (hba->vops && hba->vops->resume) in ufshcd_vops_resume()
216 return hba->vops->resume(hba, op); in ufshcd_vops_resume()
224 hba->vops->dbg_register_dump(hba); in ufshcd_vops_dbg_register_dump()
230 return hba->vops->device_reset(hba); in ufshcd_vops_device_reset()
246 hba->vops->reinit_notify(hba); in ufshcd_vops_reinit_notify()
260 return hba->vops->get_hba_mac(hba); in ufshcd_mcq_vops_get_hba_mac()
[all …]
A Dufshcd.c600 hba->saved_err, hba->saved_uic_err); in ufshcd_print_host_state()
616 hba->eh_flags, hba->req_abort_count); in ufshcd_print_host_state()
618 hba->ufs_version, hba->capabilities, hba->caps); in ufshcd_print_host_state()
2314 hba->reserved_slot = hba->nutrs - 1; in ufshcd_hba_capabilities()
3801 hba->lrb = devm_kcalloc(hba->dev, in ufshcd_memory_alloc()
6253 (!(hba->saved_err || hba->saved_uic_err || hba->force_reset || in ufshcd_err_handling_should_stop()
6362 hba->is_powered, hba->shutting_down, hba->saved_err, in ufshcd_err_handler()
6663 hba->saved_err |= hba->errors; in ufshcd_check_errors()
8424 devm_kfree(hba->dev, hba->lrb); in ufshcd_release_sdb_queue()
9385 hba->rpm_lvl : hba->spm_lvl; in __ufshcd_wl_suspend()
[all …]
A Dufs-mcq.c201 hwq = &hba->uhq[i]; in ufshcd_mcq_memory_alloc()
230 (hba->mcq_opr[(p)].offset + hba->mcq_opr[(p)].stride * (i))
266 hba->ucdl_dma_addr; in ufshcd_mcq_get_tag()
318 hwq = &hba->uhq[i]; in ufshcd_mcq_make_queues_operational()
358 if (i < hba->nr_hw_queues - hba->nr_queues[HCTX_TYPE_POLL]) in ufshcd_mcq_make_queues_operational()
377 ufshcd_writel(hba, ufshcd_readl(hba, REG_UFS_MEM_CFG) | 0x2, in ufshcd_mcq_enable_esi()
409 hba->uhq = devm_kzalloc(hba->dev, in ufshcd_mcq_init()
412 if (!hba->uhq) { in ufshcd_mcq_init()
418 hwq = &hba->uhq[i]; in ufshcd_mcq_init()
419 hwq->max_entries = hba->nutrs; in ufshcd_mcq_init()
[all …]
A Dufs-debugfs.c64 *val = hba->ee_usr_mask; in ee_usr_mask_get()
69 __acquires(&hba->host_sem) in ufs_debugfs_get_user_access()
71 down(&hba->host_sem); in ufs_debugfs_get_user_access()
73 up(&hba->host_sem); in ufs_debugfs_get_user_access()
76 ufshcd_rpm_get_sync(hba); in ufs_debugfs_get_user_access()
81 __releases(&hba->host_sem) in ufs_debugfs_put_user_access()
84 up(&hba->host_sem); in ufs_debugfs_put_user_access()
114 ee_ctrl_mask = hba->ee_drv_mask | (hba->ee_usr_mask & ~status); in ufs_debugfs_exception_event()
135 if (!hba->ee_usr_mask || pm_runtime_suspended(hba->dev) || in ufs_debugfs_restart_ee()
149 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-hwmon.c14 struct ufs_hba *hba; member
54 struct ufs_hba *hba = data->hba; in ufs_hwmon_read() local
57 down(&hba->host_sem); in ufs_hwmon_read()
60 up(&hba->host_sem); in ufs_hwmon_read()
64 ufshcd_rpm_get_sync(hba); in ufs_hwmon_read()
91 up(&hba->host_sem); in ufs_hwmon_read()
100 struct ufs_hba *hba = data->hba; in ufs_hwmon_write() local
109 down(&hba->host_sem); in ufs_hwmon_write()
112 up(&hba->host_sem); in ufs_hwmon_write()
125 up(&hba->host_sem); in ufs_hwmon_write()
[all …]
A Dufs-sysfs.c59 hba->rpm_lvl = value; in ufs_sysfs_pm_lvl_store()
61 hba->spm_lvl = value; in ufs_sysfs_pm_lvl_store()
164 down(&hba->host_sem); in auto_hibern8_show()
173 ufshcd_release(hba); in auto_hibern8_show()
179 up(&hba->host_sem); in auto_hibern8_show()
209 up(&hba->host_sem); in auto_hibern8_store()
228 if (!ufshcd_is_wb_allowed(hba) || (ufshcd_is_clkscaling_supported(hba) in wb_on_store()
254 up(&hba->host_sem); in wb_on_store()
297 up(&hba->host_sem); in enable_wb_buf_flush_store()
386 memset(&hba->monitor, 0, sizeof(hba->monitor)); in monitor_enable_store()
[all …]
A Dufs_bsg.c43 dev_err(hba->dev, "Illegal desc size\n"); in ufs_bsg_alloc_desc_buffer()
48 dev_err(hba->dev, "Illegal desc size\n"); in ufs_bsg_alloc_desc_buffer()
79 if (hba->ufs_version < ufshci_version(4, 0) || !hba->dev_info.b_advanced_rpmb_en || in ufs_bsg_exec_advanced_rpmb_req()
148 ufshcd_rpm_get_sync(hba); in ufs_bsg_request()
174 ret = ufshcd_send_uic_cmd(hba, &uc); in ufs_bsg_request()
195 ufshcd_rpm_put_sync(hba); in ufs_bsg_request()
216 if (!hba->bsg_queue) in ufs_bsg_remove()
219 bsg_remove_queue(hba->bsg_queue); in ufs_bsg_remove()
236 int ufs_bsg_probe(struct ufs_hba *hba) in ufs_bsg_probe() argument
239 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
290 static void ufshpb_suspend(struct ufs_hba *hba) {} in ufshpb_suspend() argument
292 static void ufshpb_init(struct ufs_hba *hba) {} in ufshpb_init() argument
295 static void ufshpb_remove(struct ufs_hba *hba) {} in ufshpb_remove() argument
303 void ufshpb_resume(struct ufs_hba *hba);
304 void ufshpb_suspend(struct ufs_hba *hba);
306 void ufshpb_init(struct ufs_hba *hba);
309 void ufshpb_remove(struct ufs_hba *hba);
310 bool ufshpb_is_allowed(struct ufs_hba *hba);
311 void ufshpb_get_geo_info(struct ufs_hba *hba, u8 *geo_buf);
[all …]
/linux-6.3-rc2/drivers/ufs/host/
A Dufs-mediatek.c120 ufshcd_dme_get(hba, in ufs_mtk_cfg_unipro_cg()
126 ufshcd_dme_set(hba, in ufs_mtk_cfg_unipro_cg()
129 ufshcd_dme_get(hba, in ufs_mtk_cfg_unipro_cg()
132 ufshcd_dme_set(hba, in ufs_mtk_cfg_unipro_cg()
135 ufshcd_dme_get(hba, in ufs_mtk_cfg_unipro_cg()
222 hba->ahit = 0; in ufs_mtk_hce_enable_notify()
229 ufshcd_writel(hba, in ufs_mtk_hce_enable_notify()
870 host->hba = hba; in ufs_mtk_init()
1089 if (ufshcd_is_auto_hibern8_supported(hba) && hba->ahit) in ufs_mtk_setup_clk_gating()
1227 if (!hba->vreg_info.vccq && !hba->vreg_info.vccq2) in ufs_mtk_dev_vreg_set_lpm()
[all …]
A Dufs-hisi.c35 err |= ufshcd_dme_get(hba, in ufs_hisi_check_hibern8()
52 err |= ufshcd_dme_get(hba, in ufs_hisi_check_hibern8()
222 dev_info(hba->dev, in ufs_hisi_link_startup_pre_change()
372 dev_err(hba->dev, in ufs_hisi_pwr_change_notify()
384 dev_err(hba->dev, in ufs_hisi_pwr_change_notify()
479 host->hba = hba; in ufs_hisi_init_common()
513 ufs_hisi_clk_init(hba); in ufs_hi3660_init()
515 ufs_hisi_soc_init(hba); in ufs_hi3660_init()
532 ufs_hisi_clk_init(hba); in ufs_hi3670_init()
534 ufs_hisi_soc_init(hba); in ufs_hi3670_init()
[all …]
A Dufs-qcom.c250 disable_irq(hba->irq); in ufs_qcom_host_reset()
275 enable_irq(hba->irq); in ufs_qcom_host_reset()
353 ufshcd_writel(hba, in ufs_qcom_enable_hw_clk_gating()
469 dev_err(hba->dev, in ufs_qcom_cfg_timers()
478 dev_err(hba->dev, in ufs_qcom_cfg_timers()
494 dev_err(hba->dev, in ufs_qcom_cfg_timers()
965 host->hba = hba; in ufs_qcom_init()
1435 res = &hba->res[i]; in ufs_qcom_mcq_config_resource()
1580 nr_irqs = hba->nr_hw_queues - hba->nr_queues[HCTX_TYPE_POLL]; in ufs_qcom_config_esi()
1606 devm_free_irq(hba->dev, desc->irq, hba); in ufs_qcom_config_esi()
[all …]
A Dufshcd-pci.c165 (hba->pwr_info.lane_rx != 2 || hba->pwr_info.lane_tx != 2)) in ufs_intel_lkf_pwr_change_notify()
272 intel_cache_ltr(hba); in intel_ltr_set()
294 intel_cache_ltr(hba); in intel_add_debugfs()
371 intel_add_debugfs(hba); in ufs_intel_common_init()
377 intel_remove_debugfs(hba); in ufs_intel_common_exit()
378 intel_ltr_hide(hba->dev); in ufs_intel_common_exit()
501 ufshcd_set_link_off(hba); in ufshcd_pci_restore()
527 ufshcd_remove(hba); in ufshcd_pci_remove()
528 ufshcd_dealloc_host(hba); in ufshcd_pci_remove()
542 struct ufs_hba *hba; in ufshcd_pci_probe() local
[all …]
A Dufs-exynos.c214 struct ufs_hba *hba = ufs->hba; in exynosauto_ufs_post_hce_enable() local
228 struct ufs_hba *hba = ufs->hba; in exynosauto_ufs_pre_link() local
283 struct ufs_hba *hba = ufs->hba; in exynosauto_ufs_pre_pwr_change() local
296 struct ufs_hba *hba = ufs->hba; in exynosauto_ufs_post_pwr_change() local
309 struct ufs_hba *hba = ufs->hba; in exynos7_ufs_pre_link() local
339 struct ufs_hba *hba = ufs->hba; in exynos7_ufs_post_link() local
369 struct ufs_hba *hba = ufs->hba; in exynos7_ufs_post_pwr_change() local
415 struct ufs_hba *hba = ufs->hba; in exynos_ufs_get_clk_info() local
482 struct ufs_hba *hba = ufs->hba; in exynos_ufs_set_pwm_clk_div() local
491 struct ufs_hba *hba = ufs->hba; in exynos_ufs_calc_pwm_clk_div() local
[all …]
A Dcdns-pltfrm.c47 ufshcd_dme_get(hba, UIC_ARG_MIB(T_PROTOCOLID), in cdns_ufs_get_l4_attr()
49 ufshcd_dme_get(hba, UIC_ARG_MIB(T_CPORTFLAGS), in cdns_ufs_get_l4_attr()
61 ufshcd_dme_get(hba, UIC_ARG_MIB(T_CPORTMODE), in cdns_ufs_get_l4_attr()
159 return cdns_ufs_set_hclkdiv(hba); in cdns_ufs_hce_enable_notify()
174 cdns_ufs_get_l4_attr(hba); in cdns_ufs_hibern8_notify()
176 cdns_ufs_set_l4_attr(hba); in cdns_ufs_hibern8_notify()
200 ufshcd_disable_host_tx_lcc(hba); in cdns_ufs_link_startup_notify()
206 hba->ahit = 0; in cdns_ufs_link_startup_notify()
221 struct device *dev = hba->dev; in cdns_ufs_init()
227 ufshcd_set_variant(hba, host); in cdns_ufs_init()
[all …]
A Dufs-sprd.c134 struct device *dev = hba->dev; in ufs_sprd_common_init()
149 host->hba = hba; in ufs_sprd_common_init()
150 ufshcd_set_variant(hba, host); in ufs_sprd_common_init()
230 ufs_sprd_n6_host_reset(hba); in ufs_sprd_n6_key_acc_enable()
248 hba->caps &= ~UFSHCD_CAP_CRYPTO; in ufs_sprd_n6_key_acc_enable()
256 ret = ufs_sprd_common_init(hba); in ufs_sprd_n6_init()
267 ufs_sprd_n6_key_acc_enable(hba); in ufs_sprd_n6_init()
334 ufs_sprd_n6_host_reset(hba); in sprd_ufs_n6_hce_enable_notify()
341 err = ufs_sprd_n6_phy_init(hba); in sprd_ufs_n6_hce_enable_notify()
347 ufs_sprd_get_unipro_ver(hba); in sprd_ufs_n6_hce_enable_notify()
[all …]
/linux-6.3-rc2/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()
1050 hba->ops->post_req(hba, _req); in hptiop_queuecommand_lck()
1487 hba->ops->unmap_pci_bar(hba); in hptiop_probe()
1515 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()
697 req = hba->alloc_rq(hba); in stex_queuecommand_lck()
716 if (!hba->map_sg(hba, req, &hba->ccb[tag])) { in stex_queuecommand_lck()
721 hba->send(hba, req, tag); in stex_queuecommand_lck()
1071 status_phys = hba->dma_handle + (hba->rq_count+1) * hba->rq_size; in stex_common_handshake()
1260 hba->wait_ccb = &hba->ccb[tag]; in stex_abort()
1867 req = hba->alloc_rq(hba); in stex_hba_stop()
[all …]
/linux-6.3-rc2/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 …]
/linux-6.3-rc2/include/ufs/
A Dufshcd.h97 #define ufshcd_is_link_active(hba) ((hba)->uic_link_state == \ argument
99 #define ufshcd_is_link_hibern8(hba) ((hba)->uic_link_state == \ argument
101 #define ufshcd_is_link_broken(hba) ((hba)->uic_link_state == \ argument
104 #define ufshcd_set_link_active(hba) ((hba)->uic_link_state = \ argument
106 #define ufshcd_set_link_hibern8(hba) ((hba)->uic_link_state = \ argument
108 #define ufshcd_set_link_broken(hba) ((hba)->uic_link_state = \ argument
1261 BUG_ON(!hba); in ufshcd_set_variant()
1397 if (hba->vops && hba->vops->init) in ufshcd_vops_init()
1398 return hba->vops->init(hba); in ufshcd_vops_init()
1405 if (hba->vops && hba->vops->phy_initialization) in ufshcd_vops_phy_initialization()
[all …]
/linux-6.3-rc2/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 …]
/linux-6.3-rc2/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 …]
/linux-6.3-rc2/drivers/scsi/bnx2fc/
A Dbnx2fc_fcoe.c193 struct bnx2fc_hba *hba = interface->hba; in bnx2fc_cleanup() local
284 hba = interface->hba; in bnx2fc_xmit()
807 hba = interface->hba; in bnx2fc_net_config()
902 if (interface->hba == hba && in bnx2fc_indicate_netevent()
916 if (interface->hba != hba) in bnx2fc_indicate_netevent()
1376 hba->max_xid = (hba->max_tasks - 1); in bnx2fc_hba_create()
1455 interface->hba = hba; in bnx2fc_interface_create()
1840 if (interface->hba == hba) { in bnx2fc_ulp_start()
1969 if (interface->hba == hba) in bnx2fc_ulp_stop()
2188 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 …]

Completed in 103 milliseconds

1234