| /linux/drivers/ufs/host/ |
| H A D | ufs-renesas.c | 29 void (*pre_init)(struct ufs_hba *hba); 37 static void ufs_renesas_dbg_register_dump(struct ufs_hba *hba) in ufs_renesas_dbg_register_dump() argument 39 ufshcd_dump_regs(hba, 0xc0, 0x40, "regs: 0xc0 + "); in ufs_renesas_dbg_register_dump() 42 static void ufs_renesas_poll(struct ufs_hba *hba, u32 reg, u32 expected, u32 mask) in ufs_renesas_poll() argument 47 ret = readl_poll_timeout_atomic(hba->mmio_base + reg, in ufs_renesas_poll() 51 dev_err(hba->dev, "%s: poll failed %d (%08x, %08x, %08x)\n", in ufs_renesas_poll() 55 static u32 ufs_renesas_read(struct ufs_hba *hba, u32 reg) in ufs_renesas_read() argument 57 return ufshcd_readl(hba, reg); in ufs_renesas_read() 60 static void ufs_renesas_write(struct ufs_hba *hba, u32 reg, u32 value) in ufs_renesas_write() argument 62 ufshcd_writel(hba, value, reg); in ufs_renesas_write() [all …]
|
| H A D | cdns-pltfrm.c | 37 static void cdns_ufs_get_l4_attr(struct ufs_hba *hba) in cdns_ufs_get_l4_attr() argument 39 struct cdns_ufs_host *host = ufshcd_get_variant(hba); in cdns_ufs_get_l4_attr() 41 ufshcd_dme_get(hba, UIC_ARG_MIB(T_PEERDEVICEID), in cdns_ufs_get_l4_attr() 43 ufshcd_dme_get(hba, UIC_ARG_MIB(T_PEERCPORTID), in cdns_ufs_get_l4_attr() 45 ufshcd_dme_get(hba, UIC_ARG_MIB(T_TRAFFICCLASS), in cdns_ufs_get_l4_attr() 47 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() 51 ufshcd_dme_get(hba, UIC_ARG_MIB(T_TXTOKENVALUE), in cdns_ufs_get_l4_attr() 53 ufshcd_dme_get(hba, UIC_ARG_MIB(T_RXTOKENVALUE), in cdns_ufs_get_l4_attr() 55 ufshcd_dme_get(hba, UIC_ARG_MIB(T_LOCALBUFFERSPACE), in cdns_ufs_get_l4_attr() [all …]
|
| H A D | ufshcd-dwc.c | 18 int ufshcd_dwc_dme_set_attrs(struct ufs_hba *hba, in ufshcd_dwc_dme_set_attrs() argument 25 ret = ufshcd_dme_set_attr(hba, v[attr_node].attr_sel, in ufshcd_dwc_dme_set_attrs() 42 static void ufshcd_dwc_program_clk_div(struct ufs_hba *hba, u32 divider_val) in ufshcd_dwc_program_clk_div() argument 44 ufshcd_writel(hba, divider_val, DWC_UFS_REG_HCLKDIV); in ufshcd_dwc_program_clk_div() 53 static int ufshcd_dwc_link_is_up(struct ufs_hba *hba) in ufshcd_dwc_link_is_up() argument 57 ufshcd_dme_get(hba, UIC_ARG_MIB(VS_POWERSTATE), &dme_result); in ufshcd_dwc_link_is_up() 60 ufshcd_set_link_active(hba); in ufshcd_dwc_link_is_up() 80 static int ufshcd_dwc_connection_setup(struct ufs_hba *hba) in ufshcd_dwc_connection_setup() argument 103 return ufshcd_dwc_dme_set_attrs(hba, setup_attrs, ARRAY_SIZE(setup_attrs)); in ufshcd_dwc_connection_setup() 113 int ufshcd_dwc_link_startup_notify(struct ufs_hba *hba, in ufshcd_dwc_link_startup_notify() argument [all …]
|
| H A D | tc-dwc-g210.c | 25 static int tc_dwc_g210_setup_40bit_rmmi(struct ufs_hba *hba) in tc_dwc_g210_setup_40bit_rmmi() argument 78 return ufshcd_dwc_dme_set_attrs(hba, setup_attrs, in tc_dwc_g210_setup_40bit_rmmi() 88 static int tc_dwc_g210_setup_20bit_rmmi_lane0(struct ufs_hba *hba) in tc_dwc_g210_setup_20bit_rmmi_lane0() argument 130 return ufshcd_dwc_dme_set_attrs(hba, setup_attrs, in tc_dwc_g210_setup_20bit_rmmi_lane0() 140 static int tc_dwc_g210_setup_20bit_rmmi_lane1(struct ufs_hba *hba) in tc_dwc_g210_setup_20bit_rmmi_lane1() argument 187 ufshcd_dme_get(hba, UIC_ARG_MIB(PA_AVAILRXDATALANES), in tc_dwc_g210_setup_20bit_rmmi_lane1() 189 ufshcd_dme_get(hba, UIC_ARG_MIB(PA_AVAILTXDATALANES), in tc_dwc_g210_setup_20bit_rmmi_lane1() 194 ret = ufshcd_dwc_dme_set_attrs(hba, setup_tx_attrs, in tc_dwc_g210_setup_20bit_rmmi_lane1() 202 ret = ufshcd_dwc_dme_set_attrs(hba, setup_rx_attrs, in tc_dwc_g210_setup_20bit_rmmi_lane1() 216 static int tc_dwc_g210_setup_20bit_rmmi(struct ufs_hba *hba) in tc_dwc_g210_setup_20bit_rmmi() argument [all …]
|
| H A D | ufs-exynos.h | 214 struct ufs_hba *hba; member 274 static inline void exynos_ufs_enable_ov_tm(struct ufs_hba *hba) in exynos_ufs_enable_ov_tm() argument 276 ufshcd_dme_set(hba, UIC_ARG_MIB(PA_DBG_OV_TM), true); in exynos_ufs_enable_ov_tm() 279 static inline void exynos_ufs_disable_ov_tm(struct ufs_hba *hba) in exynos_ufs_disable_ov_tm() argument 281 ufshcd_dme_set(hba, UIC_ARG_MIB(PA_DBG_OV_TM), false); in exynos_ufs_disable_ov_tm() 284 static inline void exynos_ufs_enable_dbg_mode(struct ufs_hba *hba) in exynos_ufs_enable_dbg_mode() argument 286 ufshcd_dme_set(hba, UIC_ARG_MIB(PA_DBG_MODE), true); in exynos_ufs_enable_dbg_mode() 289 static inline void exynos_ufs_disable_dbg_mode(struct ufs_hba *hba) in exynos_ufs_disable_dbg_mode() argument 291 ufshcd_dme_set(hba, UIC_ARG_MIB(PA_DBG_MODE), false); in exynos_ufs_disable_dbg_mode()
|
| /linux/drivers/scsi/ |
| H A D | stex.c | 391 static struct status_msg *stex_get_status(struct st_hba *hba) in stex_get_status() argument 393 struct status_msg *status = hba->status_buffer + hba->status_tail; in stex_get_status() 395 ++hba->status_tail; in stex_get_status() 396 hba->status_tail %= hba->sts_count+1; in stex_get_status() 409 static struct req_msg *stex_alloc_req(struct st_hba *hba) in stex_alloc_req() argument 411 struct req_msg *req = hba->dma_mem + hba->req_head * hba->rq_size; in stex_alloc_req() 413 ++hba->req_head; in stex_alloc_req() 414 hba->req_head %= hba->rq_count+1; in stex_alloc_req() 419 static struct req_msg *stex_ss_alloc_req(struct st_hba *hba) in stex_ss_alloc_req() argument 421 return (struct req_msg *)(hba->dma_mem + in stex_ss_alloc_req() [all …]
|
| H A D | hptiop.h | 333 struct hptiop_hba * hba; member 346 int (*iop_wait_ready)(struct hptiop_hba *hba, u32 millisec); 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, [all …]
|
| /linux/drivers/scsi/bnx2i/ |
| H A D | bnx2i_init.c | 82 void bnx2i_identify_device(struct bnx2i_hba *hba, struct cnic_dev *dev) in bnx2i_identify_device() argument 84 hba->cnic_dev_type = 0; in bnx2i_identify_device() 86 if (hba->pci_did == PCI_DEVICE_ID_NX2_5706 || in bnx2i_identify_device() 87 hba->pci_did == PCI_DEVICE_ID_NX2_5706S) { in bnx2i_identify_device() 88 set_bit(BNX2I_NX2_DEV_5706, &hba->cnic_dev_type); in bnx2i_identify_device() 89 } else if (hba->pci_did == PCI_DEVICE_ID_NX2_5708 || in bnx2i_identify_device() 90 hba->pci_did == PCI_DEVICE_ID_NX2_5708S) { in bnx2i_identify_device() 91 set_bit(BNX2I_NX2_DEV_5708, &hba->cnic_dev_type); in bnx2i_identify_device() 92 } else if (hba->pci_did == PCI_DEVICE_ID_NX2_5709 || in bnx2i_identify_device() 93 hba->pci_did == PCI_DEVICE_ID_NX2_5709S) { in bnx2i_identify_device() [all …]
|
| H A D | bnx2i_iscsi.c | 34 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 …]
|
| H A D | bnx2i_hwi.c | 34 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 …]
|
| 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 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, 821 void bnx2i_free_hba(struct bnx2i_hba *hba); 830 extern int bnx2i_send_fw_iscsi_init_msg(struct bnx2i_hba *hba); 844 extern void bnx2i_send_cmd_cleanup_req(struct bnx2i_hba *hba, 846 extern int bnx2i_send_conn_ofld_req(struct bnx2i_hba *hba, 849 extern int bnx2i_send_conn_destroy(struct bnx2i_hba *hba, 852 extern int bnx2i_alloc_qp_resc(struct bnx2i_hba *hba, [all …]
|
| /linux/drivers/ufs/core/ |
| H A D | ufshcd-crypto.c | 20 static void ufshcd_program_key(struct ufs_hba *hba, in ufshcd_program_key() argument 24 u32 slot_offset = hba->crypto_cfg_register + slot * sizeof(*cfg); in ufshcd_program_key() 26 ufshcd_hold(hba); in ufshcd_program_key() 29 ufshcd_writel(hba, 0, slot_offset + 16 * sizeof(cfg->reg_val[0])); in ufshcd_program_key() 31 ufshcd_writel(hba, le32_to_cpu(cfg->reg_val[i]), in ufshcd_program_key() 35 ufshcd_writel(hba, le32_to_cpu(cfg->reg_val[17]), in ufshcd_program_key() 38 ufshcd_writel(hba, le32_to_cpu(cfg->reg_val[16]), in ufshcd_program_key() 40 ufshcd_release(hba); in ufshcd_program_key() 47 struct ufs_hba *hba = ufs_hba_from_crypto_profile(profile); in ufshcd_crypto_keyslot_program() local 48 const union ufs_crypto_cap_entry *ccap_array = hba->crypto_cap_array; in ufshcd_crypto_keyslot_program() [all …]
|
| H A D | ufs-hwmon.c | 14 struct ufs_hba *hba; member 18 static int ufs_read_temp_enable(struct ufs_hba *hba, u8 mask, long *val) in ufs_read_temp_enable() argument 23 err = ufshcd_query_attr(hba, UPIU_QUERY_OPCODE_READ_ATTR, QUERY_ATTR_IDN_EE_CONTROL, 0, 0, in ufs_read_temp_enable() 33 static int ufs_get_temp(struct ufs_hba *hba, enum attr_idn idn, long *val) in ufs_get_temp() argument 38 err = ufshcd_query_attr(hba, UPIU_QUERY_OPCODE_READ_ATTR, idn, 0, 0, &value); in ufs_get_temp() 54 struct ufs_hba *hba = data->hba; in ufs_hwmon_read() local 57 down(&hba->host_sem); in ufs_hwmon_read() 59 if (!ufshcd_is_user_access_allowed(hba)) { in ufs_hwmon_read() 60 up(&hba->host_sem); in ufs_hwmon_read() 64 ufshcd_rpm_get_sync(hba); in ufs_hwmon_read() [all …]
|
| H A D | ufs_trace.h | 86 TP_PROTO(struct ufs_hba *hba, int state), 88 TP_ARGS(hba, state), 91 __field(struct ufs_hba *, hba) 92 __string(dev_name, dev_name(hba->dev)) 98 __entry->hba = hba; 109 TP_PROTO(struct ufs_hba *hba, const char *state, const char *clk, 112 TP_ARGS(hba, state, clk, prev_state, curr_state), 115 __field(struct ufs_hba *, hba) 116 __string(dev_name, dev_name(hba->dev)) 124 __entry->hba = hba; [all …]
|
| H A D | ufs-fault-injection.c | 64 void ufs_fault_inject_hba_init(struct ufs_hba *hba) in ufs_fault_inject_hba_init() argument 66 hba->trigger_eh_attr = ufs_trigger_eh_attr; in ufs_fault_inject_hba_init() 67 hba->timeout_attr = ufs_timeout_attr; in ufs_fault_inject_hba_init() 69 fault_create_debugfs_attr("trigger_eh_inject", hba->debugfs_root, &hba->trigger_eh_attr); in ufs_fault_inject_hba_init() 70 fault_create_debugfs_attr("timeout_inject", hba->debugfs_root, &hba->timeout_attr); in ufs_fault_inject_hba_init() 74 bool ufs_trigger_eh(struct ufs_hba *hba) in ufs_trigger_eh() argument 76 return should_fail(&hba->trigger_eh_attr, 1); in ufs_trigger_eh() 79 bool ufs_fail_completion(struct ufs_hba *hba) in ufs_fail_completion() argument 81 return should_fail(&hba->timeout_attr, 1); in ufs_fail_completion()
|
| 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
|
| /linux/drivers/target/ |
| H A D | target_core_hba.c | 111 struct se_hba *hba; in core_alloc_hba() local 114 hba = kzalloc_obj(*hba); in core_alloc_hba() 115 if (!hba) { in core_alloc_hba() 120 spin_lock_init(&hba->device_lock); in core_alloc_hba() 121 mutex_init(&hba->hba_access_mutex); in core_alloc_hba() 123 hba->hba_index = scsi_get_new_index(SCSI_INST_INDEX); in core_alloc_hba() 124 hba->hba_flags |= hba_flags; in core_alloc_hba() 126 hba->backend = core_get_backend(plugin_name); 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() [all …]
|
| H A D | target_core_pscsi.c | 50 static int pscsi_attach_hba(struct se_hba *hba, u32 host_id) in pscsi_attach_hba() argument 62 hba->hba_ptr = phv; in pscsi_attach_hba() 65 " Generic Target Core Stack %s\n", hba->hba_id, in pscsi_attach_hba() 68 hba->hba_id); in pscsi_attach_hba() 73 static void pscsi_detach_hba(struct se_hba *hba) in pscsi_detach_hba() argument 75 struct pscsi_hba_virt *phv = hba->hba_ptr; in pscsi_detach_hba() 82 " Generic Target Core\n", hba->hba_id, in pscsi_detach_hba() 87 " from Generic Target Core\n", hba->hba_id); in pscsi_detach_hba() 90 hba->hba_ptr = NULL; in pscsi_detach_hba() 93 static int pscsi_pmode_enable_hba(struct se_hba *hba, unsigned long mode_flag) in pscsi_pmode_enable_hba() argument [all …]
|
| /linux/drivers/scsi/bnx2fc/ |
| H A D | bnx2fc_hwi.c | 20 static void bnx2fc_fastpath_notification(struct bnx2fc_hba *hba, 22 static void bnx2fc_process_ofld_cmpl(struct bnx2fc_hba *hba, 24 static void bnx2fc_process_enable_conn_cmpl(struct bnx2fc_hba *hba, 26 static void bnx2fc_init_failure(struct bnx2fc_hba *hba, u32 err_code); 27 static void bnx2fc_process_conn_destroy_cmpl(struct bnx2fc_hba *hba, 30 int bnx2fc_send_stat_req(struct bnx2fc_hba *hba) in bnx2fc_send_stat_req() argument 42 stat_req.stat_params_addr_lo = (u32) hba->stats_buf_dma; in bnx2fc_send_stat_req() 43 stat_req.stat_params_addr_hi = (u32) ((u64)hba->stats_buf_dma >> 32); in bnx2fc_send_stat_req() 47 if (hba->cnic && hba->cnic->submit_kwqes) in bnx2fc_send_stat_req() 48 rc = hba->cnic->submit_kwqes(hba->cnic, kwqe_arr, num_kwqes); in bnx2fc_send_stat_req() [all …]
|
| H A D | bnx2fc_tgt.c | 22 static u32 bnx2fc_alloc_conn_id(struct bnx2fc_hba *hba, 24 static int bnx2fc_alloc_session_resc(struct bnx2fc_hba *hba, 26 static void bnx2fc_free_session_resc(struct bnx2fc_hba *hba, 28 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() 157 bnx2fc_free_session_resc(hba, tgt); in bnx2fc_offload_session() 160 bnx2fc_free_conn_id(hba, tgt->fcoe_conn_id); in bnx2fc_offload_session() 293 struct bnx2fc_hba *hba = interface->hba; in bnx2fc_upload_session() local 324 bnx2fc_send_session_destroy_req(hba, tgt); in bnx2fc_upload_session() [all …]
|
| H A D | bnx2fc_io.c | 211 struct bnx2fc_cmd_mgr *bnx2fc_cmd_mgr_alloc(struct bnx2fc_hba *hba) in bnx2fc_cmd_mgr_alloc() argument 224 u16 max_xid = hba->max_xid; in bnx2fc_cmd_mgr_alloc() 243 cmgr->hba = hba; in bnx2fc_cmd_mgr_alloc() 271 num_pri_ios = num_ios - hba->elstm_xids; in bnx2fc_cmd_mgr_alloc() 316 bdt_info->bd_tbl = dma_alloc_coherent(&hba->pcidev->dev, in bnx2fc_cmd_mgr_alloc() 337 struct bnx2fc_hba *hba = cmgr->hba; in bnx2fc_cmd_mgr_free() local 340 u16 max_xid = hba->max_xid; in bnx2fc_cmd_mgr_free() 354 dma_free_coherent(&hba->pcidev->dev, bd_tbl_sz, in bnx2fc_cmd_mgr_free() 396 struct bnx2fc_cmd_mgr *cmd_mgr = interface->hba->cmd_mgr; in bnx2fc_elstm_alloc() 466 struct bnx2fc_cmd_mgr *cmd_mgr = interface->hba->cmd_mgr; in bnx2fc_cmd_alloc() [all …]
|
| /linux/drivers/parisc/ |
| H A D | lba_pci.c | 111 static inline struct lba_device *LBA_DEV(struct pci_hba_data *hba) in LBA_DEV() argument 113 return container_of(hba, struct lba_device, hba); in LBA_DEV() 191 u8 first_bus = d->hba.hba_bus->busn_res.start; in lba_device_present() 192 u8 last_sub_bus = d->hba.hba_bus->busn_res.end; in lba_device_present() 207 error_config = READ_REG32(d->hba.base_addr + LBA_ERROR_CONFIG); \ 210 status_control = READ_REG32(d->hba.base_addr + LBA_STAT_CTL); \ 216 arb_mask = READ_REG32(d->hba.base_addr + LBA_ARB_MASK); \ 222 WRITE_REG32(0x1, d->hba.base_addr + LBA_ARB_MASK); \ 228 WRITE_REG32(error_config | LBA_SMART_MODE, d->hba.base_addr + LBA_ERROR_CONFIG); \ 237 WRITE_REG32(tok | PCI_VENDOR_ID, (d)->hba.base_addr + LBA_PCI_CFG_ADDR);\ [all …]
|
| H A D | dino.c | 143 struct pci_hba_data hba; /* 'C' inheritance - must be first */ member 153 static inline struct dino_device *DINO_DEV(struct pci_hba_data *hba) in DINO_DEV() argument 155 return container_of(hba, struct dino_device, hba); in DINO_DEV() 177 void __iomem *base_addr = d->hba.base_addr; in dino_cfg_read() 212 void __iomem *base_addr = d->hba.base_addr; in dino_cfg_write() 305 __raw_writel(dino_dev->imr, dino_dev->hba.base_addr+DINO_IMR); in dino_mask_irq() 322 __raw_readl(dino_dev->hba.base_addr+DINO_IPR); in dino_unmask_irq() 326 __raw_writel( dino_dev->imr, dino_dev->hba.base_addr+DINO_IMR); in dino_unmask_irq() 337 tmp = __raw_readl(dino_dev->hba.base_addr+DINO_ILR); in dino_unmask_irq() 363 __raw_writel(eim, dino_dev->hba.base_addr+DINO_IAR0); in dino_set_affinity_irq() [all …]
|
| /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);
|