/openbmc/linux/drivers/scsi/bnx2i/ |
H A D | bnx2i_hwi.c | 632 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 …]
|
H A D | bnx2i_sysfs.c | 42 struct bnx2i_hba *hba = bnx2i_dev_to_hba(dev); in bnx2i_show_sq_info() local 44 return sprintf(buf, "0x%x\n", hba->max_sqes); in bnx2i_show_sq_info() 63 struct bnx2i_hba *hba = bnx2i_dev_to_hba(dev); in bnx2i_set_sq_info() local 67 if (hba->ofld_conns_active) in bnx2i_set_sq_info() 70 if (test_bit(BNX2I_NX2_DEV_57710, &hba->cnic_dev_type)) in bnx2i_set_sq_info() 78 hba->max_sqes = val; in bnx2i_set_sq_info() 100 struct bnx2i_hba *hba = bnx2i_dev_to_hba(dev); in bnx2i_show_ccell_info() local 102 return sprintf(buf, "0x%x\n", hba->num_ccell); in bnx2i_show_ccell_info() 120 struct bnx2i_hba *hba = bnx2i_dev_to_hba(dev); in bnx2i_set_ccell_info() local 122 if (hba->ofld_conns_active) in bnx2i_set_ccell_info() [all …]
|
H A D | bnx2i.h | 285 struct bnx2i_hba *hba; member 750 struct bnx2i_hba *hba; member 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, 854 extern int bnx2i_send_conn_destroy(struct bnx2i_hba *hba, 857 extern int bnx2i_alloc_qp_resc(struct bnx2i_hba *hba, 859 extern void bnx2i_free_qp_resc(struct bnx2i_hba *hba, 863 struct bnx2i_hba *hba, u32 iscsi_cid); [all …]
|
/openbmc/linux/drivers/scsi/bnx2fc/ |
H A D | bnx2fc_tgt.c | 86 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 …]
|
H A D | bnx2fc.h | 152 #define BNX2FC_STATS(hba, stat, cnt) \ argument 157 if (hba->prev_stats.stat.cnt <= val) \ 158 val -= hba->prev_stats.stat.cnt; \ 160 val += (0xfffffff - hba->prev_stats.stat.cnt); \ 161 hba->bfw_stats.cnt += val; \ 255 struct bnx2fc_hba *hba; member 279 struct bnx2fc_hba *hba; member 490 struct bnx2fc_hba *hba; member 522 int bnx2fc_setup_fw_resc(struct bnx2fc_hba *hba); 523 void bnx2fc_free_fw_resc(struct bnx2fc_hba *hba); [all …]
|
H A D | bnx2fc_io.c | 224 u16 max_xid = hba->max_xid; in bnx2fc_cmd_mgr_alloc() 243 cmgr->hba = hba; in bnx2fc_cmd_mgr_alloc() 339 struct bnx2fc_hba *hba = cmgr->hba; in bnx2fc_cmd_mgr_free() local 342 u16 max_xid = hba->max_xid; in bnx2fc_cmd_mgr_free() 548 struct bnx2fc_hba *hba = interface->hba; in bnx2fc_free_mp_resc() local 585 struct bnx2fc_hba *hba = interface->hba; in bnx2fc_init_mp_req() local 762 interface->hba->task_ctx[task_idx]; in bnx2fc_initiate_tmf() 900 interface->hba->task_ctx[task_idx]; in bnx2fc_initiate_abts() 1648 struct bnx2fc_hba *hba = interface->hba; in bnx2fc_map_sg() local 1725 struct bnx2fc_hba *hba = interface->hba; in bnx2fc_unmap_sg_list() local [all …]
|
/openbmc/linux/drivers/parisc/ |
H A D | dino.c | 155 return container_of(hba, struct dino_device, hba); in DINO_DEV() 516 res = &dino_dev->hba.lmmio_space; in dino_card_setup() 783 res = &dino_dev->hba.lmmio_space; in dino_bridge_init() 816 res = &dino_dev->hba.lmmio_space; in dino_bridge_init() 839 pcibios_register_hba(&dino_dev->hba); in dino_common_init() 890 res = &dino_dev->hba.io_space; in dino_common_init() 903 dino_dev->hba.base_addr); in dino_common_init() 999 dino_dev->hba.dev = dev; in dino_probe() 1018 if (dino_dev->hba.lmmio_space.flags) in dino_probe() 1024 if (dino_dev->hba.gmmio_space.flags) in dino_probe() [all …]
|
H A D | eisa.c | 62 struct pci_hba_data hba; member 303 eisa_dev.hba.dev = dev; in eisa_probe() 304 eisa_dev.hba.iommu = ccio_get_iommu(dev); in eisa_probe() 306 eisa_dev.hba.lmmio_space.name = "EISA"; in eisa_probe() 315 eisa_dev.hba.io_space.name = "EISA"; in eisa_probe() 316 eisa_dev.hba.io_space.start = 0; in eisa_probe() 317 eisa_dev.hba.io_space.end = 0xffff; in eisa_probe() 324 pcibios_register_hba(&eisa_dev.hba); in eisa_probe() 360 &eisa_dev.hba.lmmio_space); in eisa_probe() 368 eisa_dev.root.res = &eisa_dev.hba.io_space; in eisa_probe() [all …]
|
/openbmc/linux/drivers/ufs/host/ |
H A D | tc-dwc-g210.c | 78 return ufshcd_dwc_dme_set_attrs(hba, setup_attrs, in tc_dwc_g210_setup_40bit_rmmi() 130 return ufshcd_dwc_dme_set_attrs(hba, setup_attrs, in tc_dwc_g210_setup_20bit_rmmi_lane0() 230 ret = ufshcd_dwc_dme_set_attrs(hba, setup_attrs, in tc_dwc_g210_setup_20bit_rmmi() 236 ret = tc_dwc_g210_setup_20bit_rmmi_lane0(hba); in tc_dwc_g210_setup_20bit_rmmi() 241 ret = tc_dwc_g210_setup_20bit_rmmi_lane1(hba); in tc_dwc_g210_setup_20bit_rmmi() 255 int tc_dwc_g210_config_40_bit(struct ufs_hba *hba) in tc_dwc_g210_config_40_bit() argument 260 ret = tc_dwc_g210_setup_40bit_rmmi(hba); in tc_dwc_g210_config_40_bit() 262 dev_err(hba->dev, "Configuration failed\n"); in tc_dwc_g210_config_40_bit() 285 int tc_dwc_g210_config_20_bit(struct ufs_hba *hba) in tc_dwc_g210_config_20_bit() argument 290 ret = tc_dwc_g210_setup_20bit_rmmi(hba); in tc_dwc_g210_config_20_bit() [all …]
|
H A D | ufs-qcom.h | 136 ufs_qcom_get_controller_revision(struct ufs_hba *hba, in ufs_qcom_get_controller_revision() argument 139 u32 ver = ufshcd_readl(hba, REG_UFS_HW_VERSION); in ufs_qcom_get_controller_revision() 146 static inline void ufs_qcom_assert_reset(struct ufs_hba *hba) in ufs_qcom_assert_reset() argument 148 ufshcd_rmwl(hba, UFS_PHY_SOFT_RESET, FIELD_PREP(UFS_PHY_SOFT_RESET, UFS_PHY_RESET_ENABLE), in ufs_qcom_assert_reset() 155 ufshcd_readl(hba, REG_UFS_CFG1); in ufs_qcom_assert_reset() 158 static inline void ufs_qcom_deassert_reset(struct ufs_hba *hba) in ufs_qcom_deassert_reset() argument 167 ufshcd_readl(hba, REG_UFS_CFG1); in ufs_qcom_deassert_reset() 201 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 [all …]
|
H A D | ufs-renesas.c | 277 ufshcd_dump_regs(hba, 0xc0, 0x40, "regs: 0xc0 + "); in ufs_renesas_dbg_register_dump() 291 ufshcd_writel(hba, save[p->index], p->reg); in ufs_renesas_reg_control() 315 ufshcd_writel(hba, p->u.val, p->reg); in ufs_renesas_reg_control() 328 ufs_renesas_reg_control(hba, &p[i]); in ufs_renesas_pre_init() 340 ufs_renesas_pre_init(hba); in ufs_renesas_hce_enable_notify() 351 pm_runtime_get_sync(hba->dev); in ufs_renesas_setup_clocks() 353 pm_runtime_put(hba->dev); in ufs_renesas_setup_clocks() 358 static int ufs_renesas_init(struct ufs_hba *hba) in ufs_renesas_init() argument 365 ufshcd_set_variant(hba, priv); in ufs_renesas_init() 393 struct ufs_hba *hba = platform_get_drvdata(pdev); in ufs_renesas_remove() local [all …]
|
H A D | ufshcd-pltfrm.c | 27 struct device *dev = hba->dev; in ufshcd_parse_clock_info() 175 struct device *dev = hba->dev; in ufshcd_parse_regulator_info() 197 struct device *dev = hba->dev; in ufshcd_init_lanes_per_dir() 201 &hba->lanes_per_direction); in ufshcd_init_lanes_per_dir() 203 dev_dbg(hba->dev, in ufshcd_init_lanes_per_dir() 336 struct ufs_hba *hba; in ufshcd_pltfrm_init() local 353 err = ufshcd_alloc_host(dev, &hba); in ufshcd_pltfrm_init() 359 hba->vops = vops; in ufshcd_pltfrm_init() 361 err = ufshcd_parse_clock_info(hba); in ufshcd_pltfrm_init() 374 ufshcd_init_lanes_per_dir(hba); in ufshcd_pltfrm_init() [all …]
|
H A D | tc-dwc-g210-pci.c | 42 struct ufs_hba *hba = pci_get_drvdata(pdev); in tc_dwc_g210_pci_remove() local 46 ufshcd_remove(hba); in tc_dwc_g210_pci_remove() 59 struct ufs_hba *hba; in tc_dwc_g210_pci_probe() local 91 err = ufshcd_alloc_host(&pdev->dev, &hba); in tc_dwc_g210_pci_probe() 97 hba->vops = &tc_dwc_g210_pci_hba_vops; in tc_dwc_g210_pci_probe() 99 err = ufshcd_init(hba, mmio_base, pdev->irq); in tc_dwc_g210_pci_probe()
|
H A D | ufs-exynos.h | 194 struct ufs_hba *hba; member 250 static inline void exynos_ufs_enable_ov_tm(struct ufs_hba *hba) in exynos_ufs_enable_ov_tm() argument 252 ufshcd_dme_set(hba, UIC_ARG_MIB(PA_DBG_OV_TM), true); in exynos_ufs_enable_ov_tm() 255 static inline void exynos_ufs_disable_ov_tm(struct ufs_hba *hba) in exynos_ufs_disable_ov_tm() argument 257 ufshcd_dme_set(hba, UIC_ARG_MIB(PA_DBG_OV_TM), false); in exynos_ufs_disable_ov_tm() 260 static inline void exynos_ufs_enable_dbg_mode(struct ufs_hba *hba) in exynos_ufs_enable_dbg_mode() argument 262 ufshcd_dme_set(hba, UIC_ARG_MIB(PA_DBG_MODE), true); in exynos_ufs_enable_dbg_mode() 265 static inline void exynos_ufs_disable_dbg_mode(struct ufs_hba *hba) in exynos_ufs_disable_dbg_mode() argument 267 ufshcd_dme_set(hba, UIC_ARG_MIB(PA_DBG_MODE), false); in exynos_ufs_disable_dbg_mode()
|
H A D | tc-dwc-g210.h | 15 int tc_dwc_g210_config_40_bit(struct ufs_hba *hba); 16 int tc_dwc_g210_config_20_bit(struct ufs_hba *hba);
|
H A D | ufshcd-dwc.h | 21 int ufshcd_dwc_link_startup_notify(struct ufs_hba *hba, 23 int ufshcd_dwc_dme_set_attrs(struct ufs_hba *hba,
|
/openbmc/linux/drivers/ufs/core/ |
H A D | ufshcd-crypto.h | 40 bool ufshcd_crypto_enable(struct ufs_hba *hba); 42 int ufshcd_hba_init_crypto_capabilities(struct ufs_hba *hba); 44 void ufshcd_init_crypto(struct ufs_hba *hba); 46 void ufshcd_crypto_register(struct ufs_hba *hba, struct request_queue *q); 57 static inline bool ufshcd_crypto_enable(struct ufs_hba *hba) in ufshcd_crypto_enable() argument 62 static inline int ufshcd_hba_init_crypto_capabilities(struct ufs_hba *hba) in ufshcd_hba_init_crypto_capabilities() argument 67 static inline void ufshcd_init_crypto(struct ufs_hba *hba) { } in ufshcd_init_crypto() argument 69 static inline void ufshcd_crypto_register(struct ufs_hba *hba, in ufshcd_crypto_register() argument
|
H A D | ufs-debugfs.h | 13 void ufs_debugfs_hba_init(struct ufs_hba *hba); 14 void ufs_debugfs_hba_exit(struct ufs_hba *hba); 15 void ufs_debugfs_exception_event(struct ufs_hba *hba, u16 status); 19 static inline void ufs_debugfs_hba_init(struct ufs_hba *hba) {} in ufs_debugfs_hba_init() argument 20 static inline void ufs_debugfs_hba_exit(struct ufs_hba *hba) {} in ufs_debugfs_hba_exit() argument 21 static inline void ufs_debugfs_exception_event(struct ufs_hba *hba, u16 status) {} in ufs_debugfs_exception_event() argument
|
H A D | ufs_bsg.h | 11 void ufs_bsg_remove(struct ufs_hba *hba); 12 int ufs_bsg_probe(struct ufs_hba *hba); 14 static inline void ufs_bsg_remove(struct ufs_hba *hba) {} in ufs_bsg_remove() argument 15 static inline int ufs_bsg_probe(struct ufs_hba *hba) {return 0; } in ufs_bsg_probe() argument
|
/openbmc/linux/drivers/scsi/ |
H A D | hptiop.h | 333 struct hptiop_hba * hba; member 347 int (*internal_memalloc)(struct hptiop_hba *hba); 348 int (*internal_memfree)(struct hptiop_hba *hba); 349 int (*map_pci_bar)(struct hptiop_hba *hba); 350 void (*unmap_pci_bar)(struct hptiop_hba *hba); 351 void (*enable_intr)(struct hptiop_hba *hba); 352 void (*disable_intr)(struct hptiop_hba *hba); 353 int (*get_config)(struct hptiop_hba *hba, 355 int (*set_config)(struct hptiop_hba *hba, 357 int (*iop_intr)(struct hptiop_hba *hba); [all …]
|
/openbmc/linux/arch/parisc/include/asm/ |
H A D | pci.h | 111 u8 (*inb) (struct pci_hba_data *hba, u16 port); 112 u16 (*inw) (struct pci_hba_data *hba, u16 port); 113 u32 (*inl) (struct pci_hba_data *hba, u16 port); 114 void (*outb) (struct pci_hba_data *hba, u16 port, u8 data); 115 void (*outw) (struct pci_hba_data *hba, u16 port, u16 data); 116 void (*outl) (struct pci_hba_data *hba, u16 port, u32 data);
|
/openbmc/linux/drivers/target/ |
H A D | target_core_device.c | 689 dev = hba->backend->ops->alloc_device(hba, name); in target_alloc_device() 711 dev->se_hba = hba; in target_alloc_device() 959 hba->dev_count++; in target_configure_device() 991 hba->dev_count--; in target_free_device() 1009 struct se_hba *hba; in core_dev_setup_virtual_lun0() local 1015 if (IS_ERR(hba)) in core_dev_setup_virtual_lun0() 1016 return PTR_ERR(hba); in core_dev_setup_virtual_lun0() 1030 lun0_hba = hba; in core_dev_setup_virtual_lun0() 1037 core_delete_hba(hba); in core_dev_setup_virtual_lun0() 1046 if (!hba) in core_dev_release_virtual_lun0() [all …]
|
H A D | target_core_pscsi.c | 61 hba->hba_ptr = phv; in pscsi_attach_hba() 67 hba->hba_id); in pscsi_attach_hba() 74 struct pscsi_hba_virt *phv = hba->hba_ptr; in pscsi_detach_hba() 81 " Generic Target Core\n", hba->hba_id, in pscsi_detach_hba() 89 hba->hba_ptr = NULL; in pscsi_detach_hba() 94 struct pscsi_hba_virt *phv = hba->hba_ptr; in pscsi_pmode_enable_hba() 107 " %s\n", hba->hba_id, (sh->hostt->name) ? in pscsi_pmode_enable_hba() 423 struct se_hba *hba = dev->se_hba; in pscsi_configure_device() local 464 if (hba->dev_count) { in pscsi_configure_device() 518 pscsi_pmode_enable_hba(hba, 0); in pscsi_configure_device() [all …]
|
H A D | target_core_configfs.c | 2726 struct se_hba *hba; in target_lu_gp_members_show() local 2734 hba = dev->se_hba; in target_lu_gp_members_show() 3398 struct se_hba *hba; in target_core_drop_subdev() local 3443 hba->hba_id, hba->backend->ops->name, in target_hba_info_show() 3474 if (hba->dev_count) { in target_hba_mode_store() 3479 ret = hba->backend->ops->pmode_enable_hba(hba, mode_flag); in target_hba_mode_store() 3497 core_delete_hba(hba); in target_core_hba_release() 3522 struct se_hba *hba; in target_core_call_addhbatotarget() local 3567 if (IS_ERR(hba)) in target_core_call_addhbatotarget() 3568 return ERR_CAST(hba); in target_core_call_addhbatotarget() [all …]
|
/openbmc/qemu/hw/ide/ |
H A D | ahci.c | 614 check_cmd(ad->hba, ad->port_no); in ahci_check_cmd_bh() 734 map_page(ad->hba->as, &ad->res_fis, in ahci_map_fis_address() 752 dma_memory_unmap(ad->hba->as, ad->res_fis, 256, in ahci_unmap_fis_address() 761 map_page(ad->hba->as, &ad->lst, in ahci_map_clb_address() 779 dma_memory_unmap(ad->hba->as, ad->lst, 1024, in ahci_unmap_clb_address() 995 ad->hba->as); in ahci_populate_sglist() 1008 dma_memory_unmap(ad->hba->as, prdt, prdt_len, in ahci_populate_sglist() 1466 trace_ahci_start_dma(ad->hba, ad->port_no); in ahci_start_dma() 1547 trace_ahci_dma_rw_buf(ad->hba, ad->port_no, l); in ahci_dma_rw_buf() 1567 trace_ahci_cmd_done(ad->hba, ad->port_no); in ahci_cmd_done() [all …]
|