Home
last modified time | relevance | path

Searched refs:membase (Results 1 – 25 of 26) sorted by relevance

12

/dragonfly/sys/bus/pci/
H A Dpci_pci.c108 return (sc->membase > 0 && sc->membase < sc->memlimit); in pcib_is_nonprefetch_open()
184 sc->membase = PCI_PPBMEMBASE(0, pci_read_config(dev, PCIR_MEMBASE_1, 2)); in pcib_attach_common()
281 (uintmax_t)sc->membase, (uintmax_t)sc->memlimit); in pcib_attach_common()
459 ok = ok || (start >= sc->membase && end <= sc->memlimit); in pcib_alloc_resource()
484 if (start < sc->membase) in pcib_alloc_resource()
485 start = sc->membase; in pcib_alloc_resource()
497 if (start < sc->membase && end > sc->memlimit) { in pcib_alloc_resource()
498 start = sc->membase; in pcib_alloc_resource()
522 (uintmax_t)sc->membase, (uintmax_t)sc->memlimit, in pcib_alloc_resource()
H A Dpcib_private.h57 pci_addr_t membase; /* base address of memory window */ member
H A Dpcivar.h187 uint32_t membase; /* base address of memory window */ member
/dragonfly/sys/kern/
H A Dvfs_journal.c203 rawp = (void *)(jo->fifo.membase + (jo->fifo.rindex & jo->fifo.mask)); in journal_wthread()
263 jo->fifo.membase + in journal_wthread()
370 rawp = (void *)(jo->fifo.membase + (jo->fifo.xindex & jo->fifo.mask)); in journal_rthread()
564 rawp = (void *)(jo->fifo.membase + (jo->fifo.windex & jo->fifo.mask)); in journal_reserve()
568 rawp = (void *)jo->fifo.membase; in journal_reserve()
627 wbase = (char *)rawp - jo->fifo.membase; in journal_extend()
689 (char *)rawp - jo->fifo.membase + osize) in journal_abort()
724 KKASSERT((char *)rawp >= jo->fifo.membase && in journal_commit()
725 (char *)rawp + rawp->recsize <= jo->fifo.membase + jo->fifo.size); in journal_commit()
749 } else if ((jo->fifo.windex & jo->fifo.mask) == (char *)rawp - jo->fifo.membase + osize) { in journal_commit()
H A Dvfs_jops.c310 jo->fifo.membase = kmalloc(jo->fifo.size, M_JFIFO, M_WAITOK|M_ZERO|M_NULLOK); in journal_install_vfs_journal()
311 if (jo->fifo.membase == NULL) in journal_install_vfs_journal()
447 if (jo->fifo.membase) in journal_destroy()
448 kfree(jo->fifo.membase, M_JFIFO); in journal_destroy()
/dragonfly/sys/dev/pccard/pccbb/
H A Dpccbb_pci.c259 u_int32_t membase, irq; in cbb_powerstate_d0() local
263 membase = pci_read_config(dev, CBBR_SOCKBASE, 4); in cbb_powerstate_d0()
273 pci_write_config(dev, CBBR_SOCKBASE, membase, 4); in cbb_powerstate_d0()
/dragonfly/sbin/newfs/
H A Dnewfs.c191 caddr_t membase; /* start address of memory based filesystem */ variable
658 args.base = membase; in main()
694 munmap(membase, fssize * fsize); in mfsintr()
H A Dmkfs.c97 extern caddr_t membase; /* start address of memory based filesystem */
212 membase = mmap(NULL, fssize * sectorsize, in mkfs()
215 if (membase == MAP_FAILED) in mkfs()
219 membase = mmap(NULL, fssize * sectorsize, in mkfs()
222 if (membase == MAP_FAILED) in mkfs()
1217 memmove(bf, membase + bno * sectorsize, size); in rdfs()
1281 memmove(membase + bno * sectorsize, bf, size); in wtfs()
/dragonfly/sys/sys/
H A Dmountctl.h160 char *membase; /* memory buffer representing the FIFO */ member
/dragonfly/sys/dev/netif/pcn/
H A Dif_pcn.c501 u_int32_t iobase, membase, irq; in pcn_attach() local
505 membase = pci_read_config(dev, PCN_PCI_LOMEM, 4); in pcn_attach()
516 pci_write_config(dev, PCN_PCI_LOMEM, membase, 4); in pcn_attach()
/dragonfly/sys/dev/netif/lge/
H A Dif_lge.c442 uint32_t iobase, membase, irq; in lge_attach() local
446 membase = pci_read_config(dev, LGE_PCI_LOMEM, 4); in lge_attach()
457 pci_write_config(dev, LGE_PCI_LOMEM, membase, 4); in lge_attach()
/dragonfly/sys/dev/netif/sf/
H A Dif_sf.c655 u_int32_t iobase, membase, irq; in sf_attach() local
659 membase = pci_read_config(dev, SF_PCI_LOMEM, 4); in sf_attach()
670 pci_write_config(dev, SF_PCI_LOMEM, membase, 4); in sf_attach()
/dragonfly/sys/dev/netif/ste/
H A Dif_ste.c868 u_int32_t iobase, membase, irq; in ste_attach() local
872 membase = pci_read_config(dev, STE_PCI_LOMEM, 4); in ste_attach()
882 pci_write_config(dev, STE_PCI_LOMEM, membase, 4); in ste_attach()
/dragonfly/sys/dev/netif/vr/
H A Dif_vr.c664 uint32_t iobase, membase, irq; in vr_attach() local
668 membase = pci_read_config(dev, VR_PCI_LOMEM, 4); in vr_attach()
678 pci_write_config(dev, VR_PCI_LOMEM, membase, 4); in vr_attach()
/dragonfly/sys/dev/netif/wb/
H A Dif_wb.c721 uint32_t iobase, membase, irq; in wb_attach() local
725 membase = pci_read_config(dev, WB_PCI_LOMEM, 4); in wb_attach()
735 pci_write_config(dev, WB_PCI_LOMEM, membase, 4); in wb_attach()
/dragonfly/sys/dev/netif/bfe/
H A Dif_bfe.c330 uint32_t membase, irq; in bfe_attach() local
333 membase = pci_read_config(dev, BFE_PCI_MEMLO, 4); in bfe_attach()
343 pci_write_config(dev, BFE_PCI_MEMLO, membase, 4); in bfe_attach()
/dragonfly/sys/dev/netif/rl/
H A Dif_rl.c750 uint32_t iobase, membase, irq; in rl_attach() local
754 membase = pci_read_config(dev, RL_PCI_LOMEM, 4); in rl_attach()
764 pci_write_config(dev, RL_PCI_LOMEM, membase, 4); in rl_attach()
/dragonfly/sys/dev/netif/nge/
H A Dif_nge.c741 uint32_t iobase, membase, irq; in nge_attach() local
745 membase = pci_read_config(dev, NGE_PCI_LOMEM, 4); in nge_attach()
756 pci_write_config(dev, NGE_PCI_LOMEM, membase, 4); in nge_attach()
/dragonfly/sys/dev/netif/fxp/
H A Dif_fxp.c365 u_int32_t iobase, membase, irq; in fxp_powerstate_d0() local
370 membase = pci_read_config(dev, FXP_PCI_MMBA, 4); in fxp_powerstate_d0()
381 pci_write_config(dev, FXP_PCI_MMBA, membase, 4); in fxp_powerstate_d0()
/dragonfly/sys/dev/netif/sis/
H A Dif_sis.c950 uint32_t iobase, membase, irq; in sis_attach() local
954 membase = pci_read_config(dev, SIS_PCI_LOMEM, 4); in sis_attach()
965 pci_write_config(dev, SIS_PCI_LOMEM, membase, 4); in sis_attach()
/dragonfly/sys/dev/netif/stge/
H A Dif_stge.c594 uint32_t iobase, membase, irq; in stge_attach() local
598 membase = pci_read_config(dev, STGE_PCIR_LOMEM, 4); in stge_attach()
609 pci_write_config(dev, STGE_PCIR_LOMEM, membase, 4); in stge_attach()
/dragonfly/sys/dev/netif/re/
H A Dif_re.c693 uint32_t membase, irq; in re_attach() local
696 membase = pci_read_config(dev, RE_PCI_LOMEM, 4); in re_attach()
706 pci_write_config(dev, RE_PCI_LOMEM, membase, 4); in re_attach()
/dragonfly/sys/dev/netif/xl/
H A Dif_xl.c1228 u_int32_t iobase, membase, irq; in xl_attach() local
1232 membase = pci_read_config(dev, XL_PCI_LOMEM, 4); in xl_attach()
1243 pci_write_config(dev, XL_PCI_LOMEM, membase, 4); in xl_attach()
/dragonfly/sys/dev/netif/dc/
H A Dif_dc.c1616 uint32_t iobase, membase, irq; in dc_acpi() local
1621 membase = pci_read_config(dev, DC_PCI_CFBMA, 4); in dc_acpi()
1633 pci_write_config(dev, DC_PCI_CFBMA, membase, 4); in dc_acpi()
/dragonfly/sys/dev/netif/sk/
H A Dif_sk.c1345 uint32_t iobase, membase, irq; in skc_attach() local
1349 membase = pci_read_config(dev, SK_PCI_LOMEM, 4); in skc_attach()
1360 pci_write_config(dev, SK_PCI_LOMEM, membase, 4); in skc_attach()

12