Home
last modified time | relevance | path

Searched refs:kregbase (Results 1 – 11 of 11) sorted by relevance

/linux-6.6.21/drivers/infiniband/hw/qib/
Dqib_7220.h123 if (!dd->kregbase || !(dd->flags & QIB_PRESENT)) in qib_read_kreg32()
125 return readl((u32 __iomem *)&dd->kregbase[regno]); in qib_read_kreg32()
131 if (!dd->kregbase || !(dd->flags & QIB_PRESENT)) in qib_read_kreg64()
134 return readq(&dd->kregbase[regno]); in qib_read_kreg64()
140 if (dd->kregbase) in qib_write_kreg()
141 writeq(value, &dd->kregbase[regno]); in qib_write_kreg()
Dqib_pcie.c133 dd->kregbase = ioremap(addr, len); in qib_pcie_ddinit()
134 if (!dd->kregbase) in qib_pcie_ddinit()
137 dd->kregend = (u64 __iomem *)((void __iomem *) dd->kregbase + len); in qib_pcie_ddinit()
159 u64 __iomem *base = (void __iomem *) dd->kregbase; in qib_pcie_ddcleanup()
161 dd->kregbase = NULL; in qib_pcie_ddcleanup()
Dqib_iba6120.c309 if (!dd->kregbase || !(dd->flags & QIB_PRESENT)) in qib_read_ureg32()
319 (char __iomem *)dd->kregbase + in qib_read_ureg32()
344 (char __iomem *) dd->kregbase + in qib_write_ureg()
347 if (dd->kregbase && (dd->flags & QIB_PRESENT)) in qib_write_ureg()
354 if (!dd->kregbase || !(dd->flags & QIB_PRESENT)) in qib_read_kreg32()
356 return readl((u32 __iomem *)&dd->kregbase[regno]); in qib_read_kreg32()
362 if (!dd->kregbase || !(dd->flags & QIB_PRESENT)) in qib_read_kreg64()
365 return readq(&dd->kregbase[regno]); in qib_read_kreg64()
371 if (dd->kregbase && (dd->flags & QIB_PRESENT)) in qib_write_kreg()
372 writeq(value, &dd->kregbase[regno]); in qib_write_kreg()
[all …]
Dqib_diag.c239 u32 __iomem *krb32 = (u32 __iomem *)dd->kregbase; in qib_remap_ioaddr32()
245 kreglen = (dd->kregend - dd->kregbase) * sizeof(u64); in qib_remap_ioaddr32()
520 !dd->kregbase) { in qib_diag_open()
569 if (!dd || !(dd->flags & QIB_PRESENT) || !dd->kregbase) { in qib_diagpkt_write()
Dqib_driver.c103 if (!(dd->flags & QIB_PRESENT) || !dd->kregbase) in qib_count_active_units()
134 if ((dd->flags & QIB_PRESENT) && dd->kregbase) in qib_count_units()
754 if (!dd->kregbase || !(dd->flags & QIB_PRESENT)) { in qib_reset_device()
Dqib_iba7220.c233 if (!dd->kregbase || !(dd->flags & QIB_PRESENT)) in qib_read_ureg32()
243 (char __iomem *)dd->kregbase + in qib_read_ureg32()
268 (char __iomem *) dd->kregbase + in qib_write_ureg()
271 if (dd->kregbase && (dd->flags & QIB_PRESENT)) in qib_write_ureg()
2095 writeq(val, &dd->kregbase[kr_control]); in qib_setup_7220_reset()
2112 val = readq(&dd->kregbase[kr_revision]); in qib_setup_7220_reset()
2198 if (!dd->kregbase || !rcd) in qib_7220_clear_tids()
2205 ((char __iomem *)(dd->kregbase) + in qib_7220_clear_tids()
2214 ((char __iomem *)(dd->kregbase) + in qib_7220_clear_tids()
3814 ((char __iomem *) dd->kregbase + dd->pio2k_bufbase); in get_7220_chip_params()
[all …]
Dqib_iba7322.c785 if (!dd->kregbase || !(dd->flags & QIB_PRESENT)) in qib_read_ureg32()
790 (char __iomem *)dd->kregbase + dd->uregbase))); in qib_read_ureg32()
814 (char __iomem *) dd->kregbase + in qib_write_ureg()
817 if (dd->kregbase && (dd->flags & QIB_PRESENT)) in qib_write_ureg()
824 if (!dd->kregbase || !(dd->flags & QIB_PRESENT)) in qib_read_kreg32()
826 return readl((u32 __iomem *) &dd->kregbase[regno]); in qib_read_kreg32()
832 if (!dd->kregbase || !(dd->flags & QIB_PRESENT)) in qib_read_kreg64()
834 return readq(&dd->kregbase[regno]); in qib_read_kreg64()
840 if (dd->kregbase && (dd->flags & QIB_PRESENT)) in qib_write_kreg()
841 writeq(value, &dd->kregbase[regno]); in qib_write_kreg()
[all …]
Dqib_init.c1672 dd->kregbase + in qib_setup_eagerbufs()
1720 iounmap(dd->kregbase); in init_chip_wc_pat()
1721 dd->kregbase = NULL; in init_chip_wc_pat()
1763 dd->kregbase = qib_kregbase; in init_chip_wc_pat()
Dqib_file_ops.c340 tidbase = (u64 __iomem *) (((char __iomem *) dd->kregbase) + in qib_tid_update()
514 tidbase = (u64 __iomem *) ((char __iomem *)(dd->kregbase) + in qib_tid_free()
1345 return dd && (dd->flags & QIB_PRESENT) && dd->kregbase && ppd->lid && in usable()
1486 if (!(dd && (dd->flags & QIB_PRESENT) && dd->kregbase)) in find_shared_ctxt()
1850 if (dd->kregbase) { in qib_close()
Dqib_sd7220.c1050 taddr = dd->kregbase + kr_serdes_maptable; in qib_sd_setvals()
1051 iaddr = dd->kregbase + kr_serdes_ddsrxeq0; in qib_sd_setvals()
Dqib.h720 u64 __iomem *kregbase; member