| /OK3568_Linux_fs/kernel/drivers/scsi/ufs/ |
| H A D | ufshcd.c | 103 int ufshcd_dump_regs(struct ufs_hba *hba, size_t offset, size_t len, in ufshcd_dump_regs() argument 121 regs[pos / 4] = ufshcd_readl(hba, offset + pos); in ufshcd_dump_regs() 230 static irqreturn_t ufshcd_tmc_handler(struct ufs_hba *hba); 232 static int ufshcd_reset_and_restore(struct ufs_hba *hba); 234 static int ufshcd_clear_tm_cmd(struct ufs_hba *hba, int tag); 235 static void ufshcd_hba_exit(struct ufs_hba *hba); 236 static int ufshcd_probe_hba(struct ufs_hba *hba, bool async); 237 static int ufshcd_setup_clocks(struct ufs_hba *hba, bool on); 238 static inline void ufshcd_add_delay_before_dme_cmd(struct ufs_hba *hba); 239 static int ufshcd_host_reset_and_restore(struct ufs_hba *hba); [all …]
|
| H A D | ufshcd.h | 122 #define ufshcd_is_link_off(hba) ((hba)->uic_link_state == UIC_LINK_OFF_STATE) argument 123 #define ufshcd_is_link_active(hba) ((hba)->uic_link_state == \ argument 125 #define ufshcd_is_link_hibern8(hba) ((hba)->uic_link_state == \ argument 127 #define ufshcd_is_link_broken(hba) ((hba)->uic_link_state == \ argument 129 #define ufshcd_set_link_off(hba) ((hba)->uic_link_state = UIC_LINK_OFF_STATE) argument 130 #define ufshcd_set_link_active(hba) ((hba)->uic_link_state = \ argument 132 #define ufshcd_set_link_hibern8(hba) ((hba)->uic_link_state = \ argument 134 #define ufshcd_set_link_broken(hba) ((hba)->uic_link_state = \ argument 345 int (*apply_dev_quirks)(struct ufs_hba *hba); 346 void (*fixup_dev_quirks)(struct ufs_hba *hba); [all …]
|
| H A D | ufs-mediatek.c | 59 static bool ufs_mtk_is_boost_crypt_enabled(struct ufs_hba *hba) in ufs_mtk_is_boost_crypt_enabled() argument 61 struct ufs_mtk_host *host = ufshcd_get_variant(hba); in ufs_mtk_is_boost_crypt_enabled() 66 static bool ufs_mtk_is_va09_supported(struct ufs_hba *hba) in ufs_mtk_is_va09_supported() argument 68 struct ufs_mtk_host *host = ufshcd_get_variant(hba); in ufs_mtk_is_va09_supported() 73 static bool ufs_mtk_is_broken_vcc(struct ufs_hba *hba) in ufs_mtk_is_broken_vcc() argument 75 struct ufs_mtk_host *host = ufshcd_get_variant(hba); in ufs_mtk_is_broken_vcc() 80 static void ufs_mtk_cfg_unipro_cg(struct ufs_hba *hba, bool enable) in ufs_mtk_cfg_unipro_cg() argument 85 ufshcd_dme_get(hba, in ufs_mtk_cfg_unipro_cg() 91 ufshcd_dme_set(hba, in ufs_mtk_cfg_unipro_cg() 94 ufshcd_dme_get(hba, in ufs_mtk_cfg_unipro_cg() [all …]
|
| H A D | ufs-hisi.c | 23 static int ufs_hisi_check_hibern8(struct ufs_hba *hba) in ufs_hisi_check_hibern8() argument 31 err = ufshcd_dme_get(hba, UIC_ARG_MIB_SEL(MPHY_TX_FSM_STATE, 0), in ufs_hisi_check_hibern8() 33 err |= ufshcd_dme_get(hba, in ufs_hisi_check_hibern8() 48 err = ufshcd_dme_get(hba, UIC_ARG_MIB_SEL(MPHY_TX_FSM_STATE, 0), in ufs_hisi_check_hibern8() 50 err |= ufshcd_dme_get(hba, in ufs_hisi_check_hibern8() 55 dev_err(hba->dev, "%s: unable to get TX_FSM_STATE, err %d\n", in ufs_hisi_check_hibern8() 60 dev_err(hba->dev, "%s: invalid TX_FSM_STATE, lane0 = %d, lane1 = %d\n", in ufs_hisi_check_hibern8() 67 static void ufs_hisi_clk_init(struct ufs_hba *hba) in ufs_hisi_clk_init() argument 69 struct ufs_hisi_host *host = ufshcd_get_variant(hba); in ufs_hisi_clk_init() 81 static void ufs_hisi_soc_init(struct ufs_hba *hba) in ufs_hisi_soc_init() argument [all …]
|
| H A D | ufshcd-crypto.c | 23 static int ufshcd_program_key(struct ufs_hba *hba, in ufshcd_program_key() argument 27 u32 slot_offset = hba->crypto_cfg_register + slot * sizeof(*cfg); in ufshcd_program_key() 30 ufshcd_hold(hba, false); in ufshcd_program_key() 32 if (hba->vops && hba->vops->program_key) { in ufshcd_program_key() 33 err = hba->vops->program_key(hba, cfg, slot); in ufshcd_program_key() 38 ufshcd_writel(hba, 0, slot_offset + 16 * sizeof(cfg->reg_val[0])); in ufshcd_program_key() 40 ufshcd_writel(hba, le32_to_cpu(cfg->reg_val[i]), in ufshcd_program_key() 44 ufshcd_writel(hba, le32_to_cpu(cfg->reg_val[17]), in ufshcd_program_key() 47 ufshcd_writel(hba, le32_to_cpu(cfg->reg_val[16]), in ufshcd_program_key() 50 ufshcd_release(hba); in ufshcd_program_key() [all …]
|
| H A D | ufs-qcom.c | 43 static int ufs_qcom_set_dme_vs_core_clk_ctrl_clear_div(struct ufs_hba *hba, 51 static void ufs_qcom_dump_regs_wrapper(struct ufs_hba *hba, int offset, int len, in ufs_qcom_dump_regs_wrapper() argument 54 ufshcd_dump_regs(hba, offset, len * 4, prefix); in ufs_qcom_dump_regs_wrapper() 57 static int ufs_qcom_get_connected_tx_lanes(struct ufs_hba *hba, u32 *tx_lanes) in ufs_qcom_get_connected_tx_lanes() argument 61 err = ufshcd_dme_get(hba, in ufs_qcom_get_connected_tx_lanes() 64 dev_err(hba->dev, "%s: couldn't read PA_CONNECTEDTXDATALANES %d\n", in ufs_qcom_get_connected_tx_lanes() 123 struct device *dev = host->hba->dev; in ufs_qcom_enable_lane_clks() 164 struct device *dev = host->hba->dev; in ufs_qcom_init_lane_clks() 180 if (host->hba->lanes_per_direction > 1) { in ufs_qcom_init_lane_clks() 193 static int ufs_qcom_link_startup_post_change(struct ufs_hba *hba) in ufs_qcom_link_startup_post_change() argument [all …]
|
| H A D | cdns-pltfrm.c | 36 static void cdns_ufs_get_l4_attr(struct ufs_hba *hba) in cdns_ufs_get_l4_attr() argument 38 struct cdns_ufs_host *host = ufshcd_get_variant(hba); in cdns_ufs_get_l4_attr() 40 ufshcd_dme_get(hba, UIC_ARG_MIB(T_PEERDEVICEID), in cdns_ufs_get_l4_attr() 42 ufshcd_dme_get(hba, UIC_ARG_MIB(T_PEERCPORTID), in cdns_ufs_get_l4_attr() 44 ufshcd_dme_get(hba, UIC_ARG_MIB(T_TRAFFICCLASS), in cdns_ufs_get_l4_attr() 46 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() 50 ufshcd_dme_get(hba, UIC_ARG_MIB(T_TXTOKENVALUE), in cdns_ufs_get_l4_attr() 52 ufshcd_dme_get(hba, UIC_ARG_MIB(T_RXTOKENVALUE), in cdns_ufs_get_l4_attr() 54 ufshcd_dme_get(hba, UIC_ARG_MIB(T_LOCALBUFFERSPACE), in cdns_ufs_get_l4_attr() [all …]
|
| H A D | ufshcd-pci.c | 25 static int ufs_intel_disable_lcc(struct ufs_hba *hba) in ufs_intel_disable_lcc() argument 30 ufshcd_dme_get(hba, attr, &lcc_enable); in ufs_intel_disable_lcc() 32 ufshcd_disable_host_tx_lcc(hba); in ufs_intel_disable_lcc() 37 static int ufs_intel_link_startup_notify(struct ufs_hba *hba, in ufs_intel_link_startup_notify() argument 44 err = ufs_intel_disable_lcc(hba); in ufs_intel_link_startup_notify() 64 static void intel_cache_ltr(struct ufs_hba *hba) in intel_cache_ltr() argument 66 struct intel_host *host = ufshcd_get_variant(hba); in intel_cache_ltr() 68 host->active_ltr = readl(hba->mmio_base + INTEL_ACTIVELTR); in intel_cache_ltr() 69 host->idle_ltr = readl(hba->mmio_base + INTEL_IDLELTR); in intel_cache_ltr() 74 struct ufs_hba *hba = dev_get_drvdata(dev); in intel_ltr_set() local [all …]
|
| H A D | ufs-exynos.c | 153 struct ufs_hba *hba = ufs->hba; in exynos7_ufs_pre_link() local 157 exynos_ufs_enable_ov_tm(hba); in exynos7_ufs_pre_link() 159 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x297, i), 0x17); in exynos7_ufs_pre_link() 161 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x362, i), 0xff); in exynos7_ufs_pre_link() 162 ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(0x363, i), 0x00); in exynos7_ufs_pre_link() 164 exynos_ufs_disable_ov_tm(hba); in exynos7_ufs_pre_link() 167 ufshcd_dme_set(hba, in exynos7_ufs_pre_link() 169 ufshcd_dme_set(hba, UIC_ARG_MIB(PA_DBG_TXPHY_CFGUPDT), 0x1); in exynos7_ufs_pre_link() 171 ufshcd_dme_set(hba, UIC_ARG_MIB(PA_DBG_OPTION_SUITE), val | (1 << 12)); in exynos7_ufs_pre_link() 172 ufshcd_dme_set(hba, UIC_ARG_MIB(PA_DBG_SKIP_RESET_PHY), 0x1); in exynos7_ufs_pre_link() [all …]
|
| H A D | ufs-sysfs.c | 42 struct ufs_hba *hba = dev_get_drvdata(dev); in ufs_sysfs_pm_lvl_store() local 51 spin_lock_irqsave(hba->host->host_lock, flags); in ufs_sysfs_pm_lvl_store() 53 hba->rpm_lvl = value; in ufs_sysfs_pm_lvl_store() 55 hba->spm_lvl = value; in ufs_sysfs_pm_lvl_store() 56 spin_unlock_irqrestore(hba->host->host_lock, flags); in ufs_sysfs_pm_lvl_store() 63 struct ufs_hba *hba = dev_get_drvdata(dev); in rpm_lvl_show() local 65 return sysfs_emit(buf, "%d\n", hba->rpm_lvl); in rpm_lvl_show() 77 struct ufs_hba *hba = dev_get_drvdata(dev); in rpm_target_dev_state_show() local 80 ufs_pm_lvl_states[hba->rpm_lvl].dev_state)); in rpm_target_dev_state_show() 86 struct ufs_hba *hba = dev_get_drvdata(dev); in rpm_target_link_state_show() local [all …]
|
| H A D | ufs_bsg.c | 9 static int ufs_bsg_get_query_desc_size(struct ufs_hba *hba, int *desc_len, in ufs_bsg_get_query_desc_size() argument 18 ufshcd_map_desc_id_to_length(hba, desc_id, desc_len); in ufs_bsg_get_query_desc_size() 27 static int ufs_bsg_verify_query_size(struct ufs_hba *hba, in ufs_bsg_verify_query_size() argument 35 dev_err(hba->dev, "not enough space assigned\n"); in ufs_bsg_verify_query_size() 42 static int ufs_bsg_alloc_desc_buffer(struct ufs_hba *hba, struct bsg_job *job, in ufs_bsg_alloc_desc_buffer() argument 55 if (ufs_bsg_get_query_desc_size(hba, desc_len, qr)) { in ufs_bsg_alloc_desc_buffer() 56 dev_err(hba->dev, "Illegal desc size\n"); in ufs_bsg_alloc_desc_buffer() 61 dev_err(hba->dev, "Illegal desc size\n"); in ufs_bsg_alloc_desc_buffer() 84 struct ufs_hba *hba = shost_priv(dev_to_shost(job->dev->parent)); in ufs_bsg_request() local 94 ret = ufs_bsg_verify_query_size(hba, req_len, reply_len); in ufs_bsg_request() [all …]
|
| H A D | ufshpb.h | 290 static int ufshpb_prep(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) { return 0; } in ufshpb_prep() argument 291 static void ufshpb_rsp_upiu(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) {} in ufshpb_rsp_upiu() argument 292 static void ufshpb_resume(struct ufs_hba *hba) {} in ufshpb_resume() argument 293 static void ufshpb_suspend(struct ufs_hba *hba) {} in ufshpb_suspend() argument 294 static void ufshpb_reset(struct ufs_hba *hba) {} in ufshpb_reset() argument 295 static void ufshpb_reset_host(struct ufs_hba *hba) {} in ufshpb_reset_host() argument 296 static void ufshpb_init(struct ufs_hba *hba) {} in ufshpb_init() argument 297 static void ufshpb_init_hpb_lu(struct ufs_hba *hba, struct scsi_device *sdev) {} in ufshpb_init_hpb_lu() argument 298 static void ufshpb_destroy_lu(struct ufs_hba *hba, struct scsi_device *sdev) {} in ufshpb_destroy_lu() argument 299 static void ufshpb_remove(struct ufs_hba *hba) {} in ufshpb_remove() argument [all …]
|
| H A D | ufshcd-dwc.c | 16 int ufshcd_dwc_dme_set_attrs(struct ufs_hba *hba, in ufshcd_dwc_dme_set_attrs() argument 23 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() 54 static int ufshcd_dwc_link_is_up(struct ufs_hba *hba) in ufshcd_dwc_link_is_up() argument 58 ufshcd_dme_get(hba, UIC_ARG_MIB(VS_POWERSTATE), &dme_result); in ufshcd_dwc_link_is_up() 61 ufshcd_set_link_active(hba); in ufshcd_dwc_link_is_up() 81 static int ufshcd_dwc_connection_setup(struct ufs_hba *hba) in ufshcd_dwc_connection_setup() argument 104 return ufshcd_dwc_dme_set_attrs(hba, setup_attrs, ARRAY_SIZE(setup_attrs)); in ufshcd_dwc_connection_setup() 115 int ufshcd_dwc_link_startup_notify(struct ufs_hba *hba, in ufshcd_dwc_link_startup_notify() argument [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/ufs/ |
| H A D | ufs.c | 58 static inline bool ufshcd_is_hba_active(struct ufs_hba *hba); 59 static inline void ufshcd_hba_stop(struct ufs_hba *hba); 60 static int ufshcd_hba_enable(struct ufs_hba *hba); 65 static int ufshcd_wait_for_register(struct ufs_hba *hba, u32 reg, u32 mask, in ufshcd_wait_for_register() argument 74 while ((ufshcd_readl(hba, reg) & mask) != val) { in ufshcd_wait_for_register() 76 if ((ufshcd_readl(hba, reg) & mask) != val) in ufshcd_wait_for_register() 89 static void ufshcd_init_pwr_info(struct ufs_hba *hba) in ufshcd_init_pwr_info() argument 91 hba->pwr_info.gear_rx = UFS_PWM_G1; in ufshcd_init_pwr_info() 92 hba->pwr_info.gear_tx = UFS_PWM_G1; in ufshcd_init_pwr_info() 93 hba->pwr_info.lane_rx = 1; in ufshcd_init_pwr_info() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/scsi/ |
| H A D | hptiop.c | 39 static int iop_send_sync_msg(struct hptiop_hba *hba, u32 msg, u32 millisec); 40 static void hptiop_finish_scsi_req(struct hptiop_hba *hba, u32 tag, 42 static void hptiop_host_request_callback_itl(struct hptiop_hba *hba, u32 tag); 43 static void hptiop_iop_request_callback_itl(struct hptiop_hba *hba, u32 tag); 44 static void hptiop_message_callback(struct hptiop_hba *hba, u32 msg); 46 static int iop_wait_ready_itl(struct hptiop_hba *hba, u32 millisec) in iop_wait_ready_itl() argument 52 req = readl(&hba->u.itl.iop->inbound_queue); in iop_wait_ready_itl() 59 writel(req, &hba->u.itl.iop->outbound_queue); in iop_wait_ready_itl() 60 readl(&hba->u.itl.iop->outbound_intstatus); in iop_wait_ready_itl() 67 static int iop_wait_ready_mv(struct hptiop_hba *hba, u32 millisec) in iop_wait_ready_mv() argument [all …]
|
| H A D | stex.c | 388 static struct status_msg *stex_get_status(struct st_hba *hba) in stex_get_status() argument 390 struct status_msg *status = hba->status_buffer + hba->status_tail; in stex_get_status() 392 ++hba->status_tail; in stex_get_status() 393 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 …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/drivers/scsi/bnx2fc/ |
| H A D | bnx2fc_fcoe.c | 76 static int bnx2fc_em_config(struct fc_lport *lport, struct bnx2fc_hba *hba); 77 static int bnx2fc_bind_adapter_devices(struct bnx2fc_hba *hba); 78 static void bnx2fc_unbind_adapter_devices(struct bnx2fc_hba *hba); 79 static int bnx2fc_bind_pcidev(struct bnx2fc_hba *hba); 80 static void bnx2fc_unbind_pcidev(struct bnx2fc_hba *hba); 91 static int bnx2fc_fw_init(struct bnx2fc_hba *hba); 92 static void bnx2fc_fw_destroy(struct bnx2fc_hba *hba); 191 struct bnx2fc_hba *hba = interface->hba; in bnx2fc_cleanup() local 196 mutex_lock(&hba->hba_mutex); in bnx2fc_cleanup() 197 spin_lock_bh(&hba->hba_lock); in bnx2fc_cleanup() [all …]
|
| 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() 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/target/ |
| H A D | target_core_hba.c | 111 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() 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 …]
|
| /OK3568_Linux_fs/kernel/include/trace/hooks/ |
| H A D | ufshcd.h | 29 TP_PROTO(struct ufs_hba *hba, struct ufshcd_lrb *lrbp, 31 TP_ARGS(hba, lrbp, segments, err)); 34 TP_PROTO(struct ufs_hba *hba), 35 TP_ARGS(hba), 1); 38 TP_PROTO(struct ufs_hba *hba, int *err), 39 TP_ARGS(hba, err), 1); 42 TP_PROTO(struct ufs_hba *hba, struct request *rq, 44 TP_ARGS(hba, rq, lrbp, err)); 47 TP_PROTO(struct ufs_hba *hba), 48 TP_ARGS(hba)); [all …]
|