Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/scsi/bfa/
Dbfa_ioc_ct.c59 bfa_ioc_sem_get(ioc->ioc_regs.ioc_usage_sem_reg); in bfa_ioc_ct_firmware_lock()
60 usecnt = readl(ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_firmware_lock()
66 writel(1, ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_firmware_lock()
67 readl(ioc->ioc_regs.ioc_usage_sem_reg); in bfa_ioc_ct_firmware_lock()
68 writel(1, ioc->ioc_regs.ioc_usage_sem_reg); in bfa_ioc_ct_firmware_lock()
69 writel(0, ioc->ioc_regs.ioc_fail_sync); in bfa_ioc_ct_firmware_lock()
74 ioc_fwstate = readl(ioc->ioc_regs.ioc_fwstate); in bfa_ioc_ct_firmware_lock()
87 readl(ioc->ioc_regs.ioc_usage_sem_reg); in bfa_ioc_ct_firmware_lock()
88 writel(1, ioc->ioc_regs.ioc_usage_sem_reg); in bfa_ioc_ct_firmware_lock()
97 writel(usecnt, ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_firmware_lock()
[all …]
Dbfa_ioc_cb.c114 writel(~0U, ioc->ioc_regs.err_set); in bfa_ioc_cb_notify_fail()
115 readl(ioc->ioc_regs.err_set); in bfa_ioc_cb_notify_fail()
143 ioc->ioc_regs.hfn_mbox = rb + iocreg_fnreg[pcifn].hfn_mbox; in bfa_ioc_cb_reg_init()
144 ioc->ioc_regs.lpu_mbox = rb + iocreg_fnreg[pcifn].lpu_mbox; in bfa_ioc_cb_reg_init()
145 ioc->ioc_regs.host_page_num_fn = rb + iocreg_fnreg[pcifn].hfn_pgn; in bfa_ioc_cb_reg_init()
148 ioc->ioc_regs.heartbeat = rb + BFA_IOC0_HBEAT_REG; in bfa_ioc_cb_reg_init()
149 ioc->ioc_regs.ioc_fwstate = rb + BFA_IOC0_STATE_REG; in bfa_ioc_cb_reg_init()
150 ioc->ioc_regs.alt_ioc_fwstate = rb + BFA_IOC1_STATE_REG; in bfa_ioc_cb_reg_init()
152 ioc->ioc_regs.heartbeat = (rb + BFA_IOC1_HBEAT_REG); in bfa_ioc_cb_reg_init()
153 ioc->ioc_regs.ioc_fwstate = (rb + BFA_IOC1_STATE_REG); in bfa_ioc_cb_reg_init()
[all …]
Dbfa_ioc.c83 readl((__ioc)->ioc_regs.hfn_mbox_cmd))
710 r32 = readl(iocpf->ioc->ioc_regs.ioc_init_sem_reg); in bfa_iocpf_sm_fwcheck_entry()
713 r32 = readl(iocpf->ioc->ioc_regs.ioc_init_sem_reg); in bfa_iocpf_sm_fwcheck_entry()
719 writel(1, 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 pgnum = PSS_SMEM_PGNUM(iocpf->ioc->ioc_regs.smem_pg0, loff); in bfa_iocpf_sm_fwcheck_entry()
734 writel(pgnum, iocpf->ioc->ioc_regs.host_page_num_fn); in bfa_iocpf_sm_fwcheck_entry()
737 bfa_mem_write(iocpf->ioc->ioc_regs.smem_page_start, loff, 0); in bfa_iocpf_sm_fwcheck_entry()
754 writel(1, iocpf->ioc->ioc_regs.ioc_init_sem_reg); in bfa_iocpf_sm_fwcheck_entry()
778 writel(1, ioc->ioc_regs.ioc_sem_reg); in bfa_iocpf_sm_fwcheck()
[all …]
Dbfa_core.c937 curr_value = readl(bfa->ioc.ioc_regs.ll_halt); in bfa_msix_lpu_err()
939 writel(curr_value, bfa->ioc.ioc_regs.ll_halt); in bfa_msix_lpu_err()
949 bfa->ioc.ioc_regs.pss_err_status_reg); in bfa_msix_lpu_err()
951 bfa->ioc.ioc_regs.pss_err_status_reg); in bfa_msix_lpu_err()
Dbfa_ioc.h307 struct bfa_ioc_regs_s ioc_regs; member
/Linux-v6.1/drivers/net/ethernet/brocade/bna/
Dbfa_ioc_ct.c124 bfa_nw_ioc_sem_get(ioc->ioc_regs.ioc_usage_sem_reg); in bfa_ioc_ct_firmware_lock()
125 usecnt = readl(ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_firmware_lock()
131 writel(1, ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_firmware_lock()
132 bfa_nw_ioc_sem_release(ioc->ioc_regs.ioc_usage_sem_reg); in bfa_ioc_ct_firmware_lock()
133 writel(0, ioc->ioc_regs.ioc_fail_sync); in bfa_ioc_ct_firmware_lock()
137 ioc_fwstate = readl(ioc->ioc_regs.ioc_fwstate); in bfa_ioc_ct_firmware_lock()
149 bfa_nw_ioc_sem_release(ioc->ioc_regs.ioc_usage_sem_reg); in bfa_ioc_ct_firmware_lock()
157 writel(usecnt, ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_firmware_lock()
158 bfa_nw_ioc_sem_release(ioc->ioc_regs.ioc_usage_sem_reg); in bfa_ioc_ct_firmware_lock()
177 bfa_nw_ioc_sem_get(ioc->ioc_regs.ioc_usage_sem_reg); in bfa_ioc_ct_firmware_unlock()
[all …]
Dbfa_ioc.c1131 pgnum = PSS_SMEM_PGNUM(ioc->ioc_regs.smem_pg0, loff); in bfa_ioc_fwver_clear()
1132 writel(pgnum, ioc->ioc_regs.host_page_num_fn); in bfa_ioc_fwver_clear()
1135 writel(0, ioc->ioc_regs.smem_page_start + loff); in bfa_ioc_fwver_clear()
1148 r32 = readl(ioc->ioc_regs.ioc_init_sem_reg); in bfa_ioc_hw_sem_init()
1151 r32 = readl(ioc->ioc_regs.ioc_init_sem_reg); in bfa_ioc_hw_sem_init()
1156 writel(1, ioc->ioc_regs.ioc_init_sem_reg); in bfa_ioc_hw_sem_init()
1163 writel(1, ioc->ioc_regs.ioc_init_sem_reg); in bfa_ioc_hw_sem_init()
1174 readl(ioc->ioc_regs.ioc_sem_reg); in bfa_ioc_hw_sem_init()
1175 writel(1, ioc->ioc_regs.ioc_sem_reg); in bfa_ioc_hw_sem_init()
1178 writel(1, ioc->ioc_regs.ioc_init_sem_reg); in bfa_ioc_hw_sem_init()
[all …]
Dbna_hw_defs.h157 init_halt = readl((_bna)->ioceth.ioc.ioc_regs.ll_halt); \
159 writel(init_halt, (_bna)->ioceth.ioc.ioc_regs.ll_halt); \
160 init_halt = readl((_bna)->ioceth.ioc.ioc_regs.ll_halt); \
Dbfa_ioc.h172 struct bfa_ioc_regs ioc_regs; member
/Linux-v6.1/drivers/char/agp/
Dhp-agp.c57 volatile u8 __iomem *ioc_regs; member
86 hp->io_tlb_ps = readq(hp->ioc_regs+HP_ZX1_TCNFG); in hp_zx1_ioc_shared()
102 hp->iova_base = readq(hp->ioc_regs+HP_ZX1_IBASE) & ~0x1; in hp_zx1_ioc_shared()
108 hp->io_pdir = phys_to_virt(readq(hp->ioc_regs+HP_ZX1_PDIR_BASE)); in hp_zx1_ioc_shared()
164 hp->ioc_regs = ioremap(hpa, 1024); in hp_zx1_ioc_init()
165 if (!hp->ioc_regs) in hp_zx1_ioc_init()
172 hp->io_pdir_owner = (readq(hp->ioc_regs+HP_ZX1_IBASE) & 0x1) == 0; in hp_zx1_ioc_init()
247 writel(virt_to_phys(hp->io_pdir), hp->ioc_regs+HP_ZX1_PDIR_BASE); in hp_zx1_configure()
248 readl(hp->ioc_regs+HP_ZX1_PDIR_BASE); in hp_zx1_configure()
249 writel(hp->io_tlb_ps, hp->ioc_regs+HP_ZX1_TCNFG); in hp_zx1_configure()
[all …]
Dparisc-agp.c36 void __iomem *ioc_regs; member
93 writeq(info->gart_base | ilog2(info->gart_size), info->ioc_regs+IOC_PCOM); in parisc_agp_tlbflush()
94 readq(info->ioc_regs+IOC_PCOM); /* flush */ in parisc_agp_tlbflush()
238 agp_ioc_init(void __iomem *ioc_regs) in agp_ioc_init() argument
246 info->ioc_regs = ioc_regs; in agp_ioc_init()
248 io_tlb_ps = readq(info->ioc_regs+IOC_TCNFG); in agp_ioc_init()
264 iova_base = readq(info->ioc_regs+IOC_IBASE) & ~0x1; in agp_ioc_init()
270 io_pdir = phys_to_virt(readq(info->ioc_regs+IOC_PDIR_BASE)); in agp_ioc_init()
/Linux-v6.1/drivers/parisc/
Dccio-dma.c226 struct ioa_registers __iomem *ioc_regs; /* I/O MMU base address */ member
635 WRITE_U32(CMD_TLB_PURGE | iovp, &ioc->ioc_regs->io_command); in ccio_clear_io_tlb()
1285 __func__, ioc->ioc_regs, in ccio_ioc_init()
1328 &ioc->ioc_regs->io_chain_id_mask); in ccio_ioc_init()
1331 &ioc->ioc_regs->io_pdir_base); in ccio_ioc_init()
1336 WRITE_U32(IOA_NORMAL_MODE, &ioc->ioc_regs->io_control); in ccio_ioc_init()
1341 WRITE_U32(0, &ioc->ioc_regs->io_tlb_entry_m); in ccio_ioc_init()
1342 WRITE_U32(0, &ioc->ioc_regs->io_tlb_entry_l); in ccio_ioc_init()
1346 &ioc->ioc_regs->io_command); in ccio_ioc_init()
1391 ccio_init_resource(res, name, &ioc->ioc_regs->io_io_low); in ccio_init_resources()
[all …]