Home
last modified time | relevance | path

Searched refs:ioc_regs (Results 1 – 12 of 12) sorted by relevance

/drivers/scsi/bfa/
Dbfa_ioc_ct.c66 bfa_ioc_sem_get(ioc->ioc_regs.ioc_usage_sem_reg); in bfa_ioc_ct_firmware_lock()
67 usecnt = readl(ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_firmware_lock()
73 writel(1, ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_firmware_lock()
74 readl(ioc->ioc_regs.ioc_usage_sem_reg); in bfa_ioc_ct_firmware_lock()
75 writel(1, ioc->ioc_regs.ioc_usage_sem_reg); in bfa_ioc_ct_firmware_lock()
76 writel(0, ioc->ioc_regs.ioc_fail_sync); in bfa_ioc_ct_firmware_lock()
81 ioc_fwstate = readl(ioc->ioc_regs.ioc_fwstate); in bfa_ioc_ct_firmware_lock()
94 readl(ioc->ioc_regs.ioc_usage_sem_reg); in bfa_ioc_ct_firmware_lock()
95 writel(1, ioc->ioc_regs.ioc_usage_sem_reg); in bfa_ioc_ct_firmware_lock()
104 writel(usecnt, ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_firmware_lock()
[all …]
Dbfa_ioc_cb.c121 writel(~0U, ioc->ioc_regs.err_set); in bfa_ioc_cb_notify_fail()
122 readl(ioc->ioc_regs.err_set); in bfa_ioc_cb_notify_fail()
150 ioc->ioc_regs.hfn_mbox = rb + iocreg_fnreg[pcifn].hfn_mbox; in bfa_ioc_cb_reg_init()
151 ioc->ioc_regs.lpu_mbox = rb + iocreg_fnreg[pcifn].lpu_mbox; in bfa_ioc_cb_reg_init()
152 ioc->ioc_regs.host_page_num_fn = rb + iocreg_fnreg[pcifn].hfn_pgn; in bfa_ioc_cb_reg_init()
155 ioc->ioc_regs.heartbeat = rb + BFA_IOC0_HBEAT_REG; in bfa_ioc_cb_reg_init()
156 ioc->ioc_regs.ioc_fwstate = rb + BFA_IOC0_STATE_REG; in bfa_ioc_cb_reg_init()
157 ioc->ioc_regs.alt_ioc_fwstate = rb + BFA_IOC1_STATE_REG; in bfa_ioc_cb_reg_init()
159 ioc->ioc_regs.heartbeat = (rb + BFA_IOC1_HBEAT_REG); in bfa_ioc_cb_reg_init()
160 ioc->ioc_regs.ioc_fwstate = (rb + BFA_IOC1_STATE_REG); in bfa_ioc_cb_reg_init()
[all …]
Dbfa_ioc.c90 readl((__ioc)->ioc_regs.hfn_mbox_cmd))
717 r32 = readl(iocpf->ioc->ioc_regs.ioc_init_sem_reg); in bfa_iocpf_sm_fwcheck_entry()
720 r32 = readl(iocpf->ioc->ioc_regs.ioc_init_sem_reg); in bfa_iocpf_sm_fwcheck_entry()
726 writel(1, iocpf->ioc->ioc_regs.ioc_init_sem_reg); in bfa_iocpf_sm_fwcheck_entry()
733 writel(1, iocpf->ioc->ioc_regs.ioc_init_sem_reg); in bfa_iocpf_sm_fwcheck_entry()
740 pgnum = PSS_SMEM_PGNUM(iocpf->ioc->ioc_regs.smem_pg0, loff); in bfa_iocpf_sm_fwcheck_entry()
742 writel(pgnum, iocpf->ioc->ioc_regs.host_page_num_fn); in bfa_iocpf_sm_fwcheck_entry()
745 bfa_mem_write(iocpf->ioc->ioc_regs.smem_page_start, loff, 0); in bfa_iocpf_sm_fwcheck_entry()
762 writel(1, iocpf->ioc->ioc_regs.ioc_init_sem_reg); in bfa_iocpf_sm_fwcheck_entry()
786 writel(1, ioc->ioc_regs.ioc_sem_reg); in bfa_iocpf_sm_fwcheck()
[all …]
Dbfa_core.c941 curr_value = readl(bfa->ioc.ioc_regs.ll_halt); in bfa_msix_lpu_err()
943 writel(curr_value, bfa->ioc.ioc_regs.ll_halt); in bfa_msix_lpu_err()
953 bfa->ioc.ioc_regs.pss_err_status_reg); in bfa_msix_lpu_err()
955 bfa->ioc.ioc_regs.pss_err_status_reg); in bfa_msix_lpu_err()
Dbfa_ioc.h310 struct bfa_ioc_regs_s ioc_regs; member
/drivers/net/ethernet/brocade/bna/
Dbfa_ioc_ct.c132 bfa_nw_ioc_sem_get(ioc->ioc_regs.ioc_usage_sem_reg); in bfa_ioc_ct_firmware_lock()
133 usecnt = readl(ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_firmware_lock()
139 writel(1, ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_firmware_lock()
140 bfa_nw_ioc_sem_release(ioc->ioc_regs.ioc_usage_sem_reg); in bfa_ioc_ct_firmware_lock()
141 writel(0, ioc->ioc_regs.ioc_fail_sync); in bfa_ioc_ct_firmware_lock()
145 ioc_fwstate = readl(ioc->ioc_regs.ioc_fwstate); in bfa_ioc_ct_firmware_lock()
157 bfa_nw_ioc_sem_release(ioc->ioc_regs.ioc_usage_sem_reg); in bfa_ioc_ct_firmware_lock()
165 writel(usecnt, ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_firmware_lock()
166 bfa_nw_ioc_sem_release(ioc->ioc_regs.ioc_usage_sem_reg); in bfa_ioc_ct_firmware_lock()
185 bfa_nw_ioc_sem_get(ioc->ioc_regs.ioc_usage_sem_reg); in bfa_ioc_ct_firmware_unlock()
[all …]
Dbfa_ioc.c64 readl((__ioc)->ioc_regs.hfn_mbox_cmd))
1157 pgnum = PSS_SMEM_PGNUM(ioc->ioc_regs.smem_pg0, loff); in bfa_ioc_fwver_clear()
1159 writel(pgnum, ioc->ioc_regs.host_page_num_fn); in bfa_ioc_fwver_clear()
1162 writel(0, ioc->ioc_regs.smem_page_start + loff); in bfa_ioc_fwver_clear()
1175 r32 = readl(ioc->ioc_regs.ioc_init_sem_reg); in bfa_ioc_hw_sem_init()
1178 r32 = readl(ioc->ioc_regs.ioc_init_sem_reg); in bfa_ioc_hw_sem_init()
1183 writel(1, ioc->ioc_regs.ioc_init_sem_reg); in bfa_ioc_hw_sem_init()
1190 writel(1, ioc->ioc_regs.ioc_init_sem_reg); in bfa_ioc_hw_sem_init()
1201 readl(ioc->ioc_regs.ioc_sem_reg); in bfa_ioc_hw_sem_init()
1202 writel(1, ioc->ioc_regs.ioc_sem_reg); in bfa_ioc_hw_sem_init()
[all …]
Dbna_hw_defs.h164 init_halt = readl((_bna)->ioceth.ioc.ioc_regs.ll_halt); \
166 writel(init_halt, (_bna)->ioceth.ioc.ioc_regs.ll_halt); \
167 init_halt = readl((_bna)->ioceth.ioc.ioc_regs.ll_halt); \
Dbfa_ioc.h179 struct bfa_ioc_regs ioc_regs; member
/drivers/char/agp/
Dhp-agp.c60 volatile u8 __iomem *ioc_regs; member
89 hp->io_tlb_ps = readq(hp->ioc_regs+HP_ZX1_TCNFG); in hp_zx1_ioc_shared()
105 hp->iova_base = readq(hp->ioc_regs+HP_ZX1_IBASE) & ~0x1; in hp_zx1_ioc_shared()
111 hp->io_pdir = phys_to_virt(readq(hp->ioc_regs+HP_ZX1_PDIR_BASE)); in hp_zx1_ioc_shared()
167 hp->ioc_regs = ioremap(hpa, 1024); in hp_zx1_ioc_init()
168 if (!hp->ioc_regs) in hp_zx1_ioc_init()
175 hp->io_pdir_owner = (readq(hp->ioc_regs+HP_ZX1_IBASE) & 0x1) == 0; in hp_zx1_ioc_init()
250 writel(virt_to_phys(hp->io_pdir), hp->ioc_regs+HP_ZX1_PDIR_BASE); in hp_zx1_configure()
251 readl(hp->ioc_regs+HP_ZX1_PDIR_BASE); in hp_zx1_configure()
252 writel(hp->io_tlb_ps, hp->ioc_regs+HP_ZX1_TCNFG); in hp_zx1_configure()
[all …]
Dparisc-agp.c40 void __iomem *ioc_regs; member
97 writeq(info->gart_base | ilog2(info->gart_size), info->ioc_regs+IOC_PCOM); in parisc_agp_tlbflush()
98 readq(info->ioc_regs+IOC_PCOM); /* flush */ in parisc_agp_tlbflush()
242 agp_ioc_init(void __iomem *ioc_regs) in agp_ioc_init() argument
250 info->ioc_regs = ioc_regs; in agp_ioc_init()
252 io_tlb_ps = readq(info->ioc_regs+IOC_TCNFG); in agp_ioc_init()
268 iova_base = readq(info->ioc_regs+IOC_IBASE) & ~0x1; in agp_ioc_init()
274 io_pdir = phys_to_virt(readq(info->ioc_regs+IOC_PDIR_BASE)); in agp_ioc_init()
/drivers/parisc/
Dccio-dma.c226 struct ioa_registers __iomem *ioc_regs; /* I/O MMU base address */ member
639 WRITE_U32(CMD_TLB_PURGE | iovp, &ioc->ioc_regs->io_command); in ccio_clear_io_tlb()
1320 __func__, ioc->ioc_regs, in ccio_ioc_init()
1363 &ioc->ioc_regs->io_chain_id_mask); in ccio_ioc_init()
1366 &ioc->ioc_regs->io_pdir_base); in ccio_ioc_init()
1371 WRITE_U32(IOA_NORMAL_MODE, &ioc->ioc_regs->io_control); in ccio_ioc_init()
1376 WRITE_U32(0, &ioc->ioc_regs->io_tlb_entry_m); in ccio_ioc_init()
1377 WRITE_U32(0, &ioc->ioc_regs->io_tlb_entry_l); in ccio_ioc_init()
1381 &ioc->ioc_regs->io_command); in ccio_ioc_init()
1425 ccio_init_resource(res, name, &ioc->ioc_regs->io_io_low); in ccio_init_resources()
[all …]