/Linux-v4.19/drivers/scsi/ufs/ |
D | ufshcd.c | 109 int ufshcd_dump_regs(struct ufs_hba *hba, size_t offset, size_t len, in ufshcd_dump_regs() argument 118 memcpy_fromio(regs, hba->mmio_base + offset, len); in ufshcd_dump_regs() 237 static void ufshcd_tmc_handler(struct ufs_hba *hba); 239 static int ufshcd_reset_and_restore(struct ufs_hba *hba); 241 static int ufshcd_clear_tm_cmd(struct ufs_hba *hba, int tag); 242 static void ufshcd_hba_exit(struct ufs_hba *hba); 243 static int ufshcd_probe_hba(struct ufs_hba *hba); 244 static int __ufshcd_setup_clocks(struct ufs_hba *hba, bool on, 246 static int ufshcd_setup_clocks(struct ufs_hba *hba, bool on); 247 static int ufshcd_set_vccq_rail_unused(struct ufs_hba *hba, bool unused); [all …]
|
D | ufshcd.h | 120 #define ufshcd_is_link_off(hba) ((hba)->uic_link_state == UIC_LINK_OFF_STATE) argument 121 #define ufshcd_is_link_active(hba) ((hba)->uic_link_state == \ argument 123 #define ufshcd_is_link_hibern8(hba) ((hba)->uic_link_state == \ argument 125 #define ufshcd_set_link_off(hba) ((hba)->uic_link_state = UIC_LINK_OFF_STATE) argument 126 #define ufshcd_set_link_active(hba) ((hba)->uic_link_state = \ argument 128 #define ufshcd_set_link_hibern8(hba) ((hba)->uic_link_state = \ argument 327 void (*dbg_register_dump)(struct ufs_hba *hba); 708 static inline bool ufshcd_is_clkgating_allowed(struct ufs_hba *hba) in ufshcd_is_clkgating_allowed() argument 710 return hba->caps & UFSHCD_CAP_CLK_GATING; in ufshcd_is_clkgating_allowed() 712 static inline bool ufshcd_can_hibern8_during_gating(struct ufs_hba *hba) in ufshcd_can_hibern8_during_gating() argument [all …]
|
D | ufs-hisi.c | 24 static int ufs_hisi_check_hibern8(struct ufs_hba *hba) in ufs_hisi_check_hibern8() argument 32 err = ufshcd_dme_get(hba, UIC_ARG_MIB_SEL(MPHY_TX_FSM_STATE, 0), in ufs_hisi_check_hibern8() 34 err |= ufshcd_dme_get(hba, in ufs_hisi_check_hibern8() 49 err = ufshcd_dme_get(hba, UIC_ARG_MIB_SEL(MPHY_TX_FSM_STATE, 0), in ufs_hisi_check_hibern8() 51 err |= ufshcd_dme_get(hba, in ufs_hisi_check_hibern8() 56 dev_err(hba->dev, "%s: unable to get TX_FSM_STATE, err %d\n", in ufs_hisi_check_hibern8() 61 dev_err(hba->dev, "%s: invalid TX_FSM_STATE, lane0 = %d, lane1 = %d\n", in ufs_hisi_check_hibern8() 68 static void ufs_hi3660_clk_init(struct ufs_hba *hba) in ufs_hi3660_clk_init() argument 70 struct ufs_hisi_host *host = ufshcd_get_variant(hba); in ufs_hi3660_clk_init() 82 static void ufs_hi3660_soc_init(struct ufs_hba *hba) in ufs_hi3660_soc_init() argument [all …]
|
D | ufs-qcom.c | 50 static int ufs_qcom_set_dme_vs_core_clk_ctrl_clear_div(struct ufs_hba *hba, 53 static void ufs_qcom_dump_regs_wrapper(struct ufs_hba *hba, int offset, int len, in ufs_qcom_dump_regs_wrapper() argument 56 ufshcd_dump_regs(hba, offset, len * 4, prefix); in ufs_qcom_dump_regs_wrapper() 59 static int ufs_qcom_get_connected_tx_lanes(struct ufs_hba *hba, u32 *tx_lanes) in ufs_qcom_get_connected_tx_lanes() argument 63 err = ufshcd_dme_get(hba, in ufs_qcom_get_connected_tx_lanes() 66 dev_err(hba->dev, "%s: couldn't read PA_CONNECTEDTXDATALANES %d\n", in ufs_qcom_get_connected_tx_lanes() 107 if (host->hba->lanes_per_direction > 1) in ufs_qcom_disable_lane_clks() 110 if (host->hba->lanes_per_direction > 1) in ufs_qcom_disable_lane_clks() 120 struct device *dev = host->hba->dev; in ufs_qcom_enable_lane_clks() 135 if (host->hba->lanes_per_direction > 1) { in ufs_qcom_enable_lane_clks() [all …]
|
D | ufshcd-dwc.c | 19 int ufshcd_dwc_dme_set_attrs(struct ufs_hba *hba, in ufshcd_dwc_dme_set_attrs() argument 26 ret = ufshcd_dme_set_attr(hba, v[attr_node].attr_sel, in ufshcd_dwc_dme_set_attrs() 45 static void ufshcd_dwc_program_clk_div(struct ufs_hba *hba, u32 divider_val) in ufshcd_dwc_program_clk_div() argument 47 ufshcd_writel(hba, divider_val, DWC_UFS_REG_HCLKDIV); in ufshcd_dwc_program_clk_div() 57 static int ufshcd_dwc_link_is_up(struct ufs_hba *hba) in ufshcd_dwc_link_is_up() argument 61 ufshcd_dme_get(hba, UIC_ARG_MIB(VS_POWERSTATE), &dme_result); in ufshcd_dwc_link_is_up() 64 ufshcd_set_link_active(hba); in ufshcd_dwc_link_is_up() 84 static int ufshcd_dwc_connection_setup(struct ufs_hba *hba) in ufshcd_dwc_connection_setup() argument 107 return ufshcd_dwc_dme_set_attrs(hba, setup_attrs, ARRAY_SIZE(setup_attrs)); in ufshcd_dwc_connection_setup() 118 int ufshcd_dwc_link_startup_notify(struct ufs_hba *hba, in ufshcd_dwc_link_startup_notify() argument [all …]
|
D | tc-dwc-g210.c | 27 static int tc_dwc_g210_setup_40bit_rmmi(struct ufs_hba *hba) in tc_dwc_g210_setup_40bit_rmmi() argument 80 return ufshcd_dwc_dme_set_attrs(hba, setup_attrs, in tc_dwc_g210_setup_40bit_rmmi() 91 static int tc_dwc_g210_setup_20bit_rmmi_lane0(struct ufs_hba *hba) in tc_dwc_g210_setup_20bit_rmmi_lane0() argument 133 return ufshcd_dwc_dme_set_attrs(hba, setup_attrs, in tc_dwc_g210_setup_20bit_rmmi_lane0() 144 static int tc_dwc_g210_setup_20bit_rmmi_lane1(struct ufs_hba *hba) in tc_dwc_g210_setup_20bit_rmmi_lane1() argument 191 ufshcd_dme_get(hba, UIC_ARG_MIB(PA_AVAILRXDATALANES), in tc_dwc_g210_setup_20bit_rmmi_lane1() 193 ufshcd_dme_get(hba, UIC_ARG_MIB(PA_AVAILTXDATALANES), in tc_dwc_g210_setup_20bit_rmmi_lane1() 198 ret = ufshcd_dwc_dme_set_attrs(hba, setup_tx_attrs, in tc_dwc_g210_setup_20bit_rmmi_lane1() 206 ret = ufshcd_dwc_dme_set_attrs(hba, setup_rx_attrs, in tc_dwc_g210_setup_20bit_rmmi_lane1() 221 static int tc_dwc_g210_setup_20bit_rmmi(struct ufs_hba *hba) in tc_dwc_g210_setup_20bit_rmmi() argument [all …]
|
D | ufshcd-pci.c | 40 static int ufs_intel_disable_lcc(struct ufs_hba *hba) in ufs_intel_disable_lcc() argument 45 ufshcd_dme_get(hba, attr, &lcc_enable); in ufs_intel_disable_lcc() 47 ufshcd_dme_set(hba, attr, 0); in ufs_intel_disable_lcc() 52 static int ufs_intel_link_startup_notify(struct ufs_hba *hba, in ufs_intel_link_startup_notify() argument 59 err = ufs_intel_disable_lcc(hba); in ufs_intel_link_startup_notify() 132 struct ufs_hba *hba = pci_get_drvdata(pdev); in ufshcd_pci_remove() local 136 ufshcd_remove(hba); in ufshcd_pci_remove() 137 ufshcd_dealloc_host(hba); in ufshcd_pci_remove() 150 struct ufs_hba *hba; in ufshcd_pci_probe() local 170 err = ufshcd_alloc_host(&pdev->dev, &hba); in ufshcd_pci_probe() [all …]
|
D | ufshcd-pltfrm.c | 45 static int ufshcd_parse_clock_info(struct ufs_hba *hba) in ufshcd_parse_clock_info() argument 50 struct device *dev = hba->dev; in ufshcd_parse_clock_info() 121 list_add_tail(&clki->list, &hba->clk_list_head); in ufshcd_parse_clock_info() 201 static int ufshcd_parse_regulator_info(struct ufs_hba *hba) in ufshcd_parse_regulator_info() argument 204 struct device *dev = hba->dev; in ufshcd_parse_regulator_info() 205 struct ufs_vreg_info *info = &hba->vreg_info; in ufshcd_parse_regulator_info() 277 static void ufshcd_init_lanes_per_dir(struct ufs_hba *hba) in ufshcd_init_lanes_per_dir() argument 279 struct device *dev = hba->dev; in ufshcd_init_lanes_per_dir() 283 &hba->lanes_per_direction); in ufshcd_init_lanes_per_dir() 285 dev_dbg(hba->dev, in ufshcd_init_lanes_per_dir() [all …]
|
D | ufs-sysfs.c | 39 struct ufs_hba *hba = dev_get_drvdata(dev); in ufs_sysfs_pm_lvl_store() local 48 spin_lock_irqsave(hba->host->host_lock, flags); in ufs_sysfs_pm_lvl_store() 50 hba->rpm_lvl = value; in ufs_sysfs_pm_lvl_store() 52 hba->spm_lvl = value; in ufs_sysfs_pm_lvl_store() 53 spin_unlock_irqrestore(hba->host->host_lock, flags); in ufs_sysfs_pm_lvl_store() 60 struct ufs_hba *hba = dev_get_drvdata(dev); in rpm_lvl_show() local 62 return sprintf(buf, "%d\n", hba->rpm_lvl); in rpm_lvl_show() 74 struct ufs_hba *hba = dev_get_drvdata(dev); in rpm_target_dev_state_show() local 77 ufs_pm_lvl_states[hba->rpm_lvl].dev_state)); in rpm_target_dev_state_show() 83 struct ufs_hba *hba = dev_get_drvdata(dev); in rpm_target_link_state_show() local [all …]
|
D | ufs-qcom.h | 154 ufs_qcom_get_controller_revision(struct ufs_hba *hba, in ufs_qcom_get_controller_revision() argument 157 u32 ver = ufshcd_readl(hba, REG_UFS_HW_VERSION); in ufs_qcom_get_controller_revision() 164 static inline void ufs_qcom_assert_reset(struct ufs_hba *hba) in ufs_qcom_assert_reset() argument 166 ufshcd_rmwl(hba, MASK_UFS_PHY_SOFT_RESET, in ufs_qcom_assert_reset() 176 static inline void ufs_qcom_deassert_reset(struct ufs_hba *hba) in ufs_qcom_deassert_reset() argument 178 ufshcd_rmwl(hba, MASK_UFS_PHY_SOFT_RESET, in ufs_qcom_deassert_reset() 227 struct ufs_hba *hba; member 256 #define ufs_qcom_is_link_off(hba) ufshcd_is_link_off(hba) argument 257 #define ufs_qcom_is_link_active(hba) ufshcd_is_link_active(hba) argument 258 #define ufs_qcom_is_link_hibern8(hba) ufshcd_is_link_hibern8(hba) argument
|
/Linux-v4.19/drivers/scsi/ |
D | hptiop.c | 47 static int iop_send_sync_msg(struct hptiop_hba *hba, u32 msg, u32 millisec); 48 static void hptiop_finish_scsi_req(struct hptiop_hba *hba, u32 tag, 50 static void hptiop_host_request_callback_itl(struct hptiop_hba *hba, u32 tag); 51 static void hptiop_iop_request_callback_itl(struct hptiop_hba *hba, u32 tag); 52 static void hptiop_message_callback(struct hptiop_hba *hba, u32 msg); 54 static int iop_wait_ready_itl(struct hptiop_hba *hba, u32 millisec) in iop_wait_ready_itl() argument 60 req = readl(&hba->u.itl.iop->inbound_queue); in iop_wait_ready_itl() 67 writel(req, &hba->u.itl.iop->outbound_queue); in iop_wait_ready_itl() 68 readl(&hba->u.itl.iop->outbound_intstatus); in iop_wait_ready_itl() 75 static int iop_wait_ready_mv(struct hptiop_hba *hba, u32 millisec) in iop_wait_ready_mv() argument [all …]
|
D | stex.c | 393 static struct status_msg *stex_get_status(struct st_hba *hba) in stex_get_status() argument 395 struct status_msg *status = hba->status_buffer + hba->status_tail; in stex_get_status() 397 ++hba->status_tail; in stex_get_status() 398 hba->status_tail %= hba->sts_count+1; in stex_get_status() 414 static struct req_msg *stex_alloc_req(struct st_hba *hba) in stex_alloc_req() argument 416 struct req_msg *req = hba->dma_mem + hba->req_head * hba->rq_size; in stex_alloc_req() 418 ++hba->req_head; in stex_alloc_req() 419 hba->req_head %= hba->rq_count+1; in stex_alloc_req() 424 static struct req_msg *stex_ss_alloc_req(struct st_hba *hba) in stex_ss_alloc_req() argument 426 return (struct req_msg *)(hba->dma_mem + in stex_ss_alloc_req() [all …]
|
D | hptiop.h | 341 struct hptiop_hba * hba; member 354 int (*iop_wait_ready)(struct hptiop_hba *hba, u32 millisec); 355 int (*internal_memalloc)(struct hptiop_hba *hba); 356 int (*internal_memfree)(struct hptiop_hba *hba); 357 int (*map_pci_bar)(struct hptiop_hba *hba); 358 void (*unmap_pci_bar)(struct hptiop_hba *hba); 359 void (*enable_intr)(struct hptiop_hba *hba); 360 void (*disable_intr)(struct hptiop_hba *hba); 361 int (*get_config)(struct hptiop_hba *hba, 363 int (*set_config)(struct hptiop_hba *hba, [all …]
|
/Linux-v4.19/drivers/scsi/bnx2i/ |
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 …]
|
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 …]
|
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 …]
|
D | bnx2i_sysfs.c | 41 struct bnx2i_hba *hba = bnx2i_dev_to_hba(dev); in bnx2i_show_sq_info() local 43 return sprintf(buf, "0x%x\n", hba->max_sqes); in bnx2i_show_sq_info() 61 struct bnx2i_hba *hba = bnx2i_dev_to_hba(dev); in bnx2i_set_sq_info() local 65 if (hba->ofld_conns_active) in bnx2i_set_sq_info() 68 if (test_bit(BNX2I_NX2_DEV_57710, &hba->cnic_dev_type)) in bnx2i_set_sq_info() 76 hba->max_sqes = val; in bnx2i_set_sq_info() 97 struct bnx2i_hba *hba = bnx2i_dev_to_hba(dev); in bnx2i_show_ccell_info() local 99 return sprintf(buf, "0x%x\n", hba->num_ccell); in bnx2i_show_ccell_info() 116 struct bnx2i_hba *hba = bnx2i_dev_to_hba(dev); in bnx2i_set_ccell_info() local 118 if (hba->ofld_conns_active) in bnx2i_set_ccell_info() [all …]
|
/Linux-v4.19/drivers/target/ |
D | target_core_hba.c | 124 struct se_hba *hba; in core_alloc_hba() local 127 hba = kzalloc(sizeof(*hba), GFP_KERNEL); in core_alloc_hba() 128 if (!hba) { in core_alloc_hba() 133 spin_lock_init(&hba->device_lock); in core_alloc_hba() 134 mutex_init(&hba->hba_access_mutex); in core_alloc_hba() 136 hba->hba_index = scsi_get_new_index(SCSI_INST_INDEX); in core_alloc_hba() 137 hba->hba_flags |= hba_flags; in core_alloc_hba() 139 hba->backend = core_get_backend(plugin_name); in core_alloc_hba() 140 if (!hba->backend) { in core_alloc_hba() 145 ret = hba->backend->ops->attach_hba(hba, plugin_dep_id); in core_alloc_hba() [all …]
|
/Linux-v4.19/drivers/parisc/ |
D | lba_pci.c | 194 u8 first_bus = d->hba.hba_bus->busn_res.start; in lba_device_present() 195 u8 last_sub_bus = d->hba.hba_bus->busn_res.end; in lba_device_present() 210 error_config = READ_REG32(d->hba.base_addr + LBA_ERROR_CONFIG); \ 213 status_control = READ_REG32(d->hba.base_addr + LBA_STAT_CTL); \ 219 arb_mask = READ_REG32(d->hba.base_addr + LBA_ARB_MASK); \ 225 WRITE_REG32(0x1, d->hba.base_addr + LBA_ARB_MASK); \ 231 WRITE_REG32(error_config | LBA_SMART_MODE, d->hba.base_addr + LBA_ERROR_CONFIG); \ 240 WRITE_REG32(tok | PCI_VENDOR_ID, (d)->hba.base_addr + LBA_PCI_CFG_ADDR);\ 245 lba_t32 = READ_REG32((d)->hba.base_addr + LBA_PCI_CFG_ADDR); \ 250 WRITE_REG32(~0, (d)->hba.base_addr + LBA_PCI_CFG_DATA); \ [all …]
|
D | dino.c | 145 struct pci_hba_data hba; /* 'C' inheritance - must be first */ member 182 void __iomem *base_addr = d->hba.base_addr; in dino_cfg_read() 217 void __iomem *base_addr = d->hba.base_addr; in dino_cfg_write() 310 __raw_writel(dino_dev->imr, dino_dev->hba.base_addr+DINO_IMR); in dino_mask_irq() 327 __raw_readl(dino_dev->hba.base_addr+DINO_IPR); in dino_unmask_irq() 331 __raw_writel( dino_dev->imr, dino_dev->hba.base_addr+DINO_IMR); in dino_unmask_irq() 342 tmp = __raw_readl(dino_dev->hba.base_addr+DINO_ILR); in dino_unmask_irq() 373 mask = __raw_readl(dino_dev->hba.base_addr+DINO_IRR0) & DINO_IRR_MASK; in dino_isr() 395 mask = __raw_readl(dino_dev->hba.base_addr+DINO_ILR) & dino_dev->imr; in dino_isr() 400 dino_dev->hba.base_addr, mask); in dino_isr() [all …]
|
D | eisa.c | 65 struct pci_hba_data hba; member 311 eisa_dev.hba.dev = dev; in eisa_probe() 312 eisa_dev.hba.iommu = ccio_get_iommu(dev); in eisa_probe() 314 eisa_dev.hba.lmmio_space.name = "EISA"; in eisa_probe() 315 eisa_dev.hba.lmmio_space.start = F_EXTEND(0xfc000000); in eisa_probe() 316 eisa_dev.hba.lmmio_space.end = F_EXTEND(0xffbfffff); in eisa_probe() 317 eisa_dev.hba.lmmio_space.flags = IORESOURCE_MEM; in eisa_probe() 318 result = ccio_request_resource(dev, &eisa_dev.hba.lmmio_space); in eisa_probe() 323 eisa_dev.hba.io_space.name = "EISA"; in eisa_probe() 324 eisa_dev.hba.io_space.start = 0; in eisa_probe() [all …]
|
/Linux-v4.19/drivers/scsi/bnx2fc/ |
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); 195 struct bnx2fc_hba *hba = interface->hba; in bnx2fc_cleanup() local 200 mutex_lock(&hba->hba_mutex); in bnx2fc_cleanup() 201 spin_lock_bh(&hba->hba_lock); in bnx2fc_cleanup() [all …]
|
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 …]
|
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 …]
|
/Linux-v4.19/arch/parisc/include/asm/ |
D | pci.h | 113 u8 (*inb) (struct pci_hba_data *hba, u16 port); 114 u16 (*inw) (struct pci_hba_data *hba, u16 port); 115 u32 (*inl) (struct pci_hba_data *hba, u16 port); 116 void (*outb) (struct pci_hba_data *hba, u16 port, u8 data); 117 void (*outw) (struct pci_hba_data *hba, u16 port, u16 data); 118 void (*outl) (struct pci_hba_data *hba, u16 port, u32 data);
|