/netbsd-6-1-5-RELEASE/sys/arch/arc/jazz/ |
H A D | jazzdmatlb.c | 147 paddr_t pa; local 153 (void)pmap_extract(vm_map_pmap(&vm->vm_map), va, &pa); 155 pa = kvtophys(va); 157 pa &= JAZZ_DMA_PAGE_NUM; 158 dma_pte->lo_addr = pa; 171 jazz_dmatlb_map_pa(paddr_t pa, psize_t size, jazz_dma_pte_t *dma_pte) argument 174 size = jazz_dma_page_round(size + jazz_dma_page_offs(pa)); 175 pa &= JAZZ_DMA_PAGE_NUM; 177 dma_pte->lo_addr = pa; 180 pa [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/powerpc/powerpc/ |
H A D | pmap_subr.c | 278 pmap_zero_page(paddr_t pa) argument 289 struct vm_page *pg = PHYS_TO_VM_PAGE(pa); 306 vzeropage(pa); 315 if (pa >= SEGMENT_LENGTH) { 329 long *dp = (long *)pa; 338 __asm ("dcbz %0,%1" :: "b"(pa), "r"(i)); i += linewidth; 339 __asm ("dcbz %0,%1" :: "b"(pa), "r"(i)); i += linewidth; 347 if (pa >= SEGMENT_LENGTH) 426 pmap_syncicache(paddr_t pa, psize_t len) argument 429 __syncicache((void *)pa, le 484 pmap_pageidlezero(paddr_t pa) argument [all...] |
/netbsd-6-1-5-RELEASE/sys/dev/pci/ |
H A D | rccide.c | 88 struct pci_attach_args *pa = aux; local 90 if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_SERVERWORKS && 91 PCI_CLASS(pa->pa_class) == PCI_CLASS_MASS_STORAGE && 92 PCI_SUBCLASS(pa->pa_class) == PCI_SUBCLASS_MASS_STORAGE_IDE) { 93 if (pciide_lookup_product(pa->pa_id, 103 struct pci_attach_args *pa = aux; local 108 pciide_common_attach(sc, pa, 109 pciide_lookup_product(pa->pa_id, pciide_serverworks_products)); 113 serverworks_chip_map(struct pciide_softc *sc, const struct pci_attach_args *pa) argument 116 pcireg_t interface = PCI_INTERFACE(pa [all...] |
H A D | ahd_pci.c | 299 struct pci_attach_args *pa = aux; local 303 subid = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_SUBSYS_ID_REG); 304 entry = ahd_find_pci_device(pa->pa_id, subid); 311 struct pci_attach_args *pa = aux; local 330 ahd->parent_dmat = pa->pa_dmat; 332 command = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG); 333 subid = pci_conf_read(pa->pa_pc, pa 1092 ahd_aic7901_setup(struct ahd_softc *ahd, struct pci_attach_args *pa) argument 1101 ahd_aic7901A_setup(struct ahd_softc *ahd, struct pci_attach_args *pa) argument 1110 ahd_aic7902_setup(struct ahd_softc *ahd, struct pci_attach_args *pa) argument 1119 ahd_aic790X_setup(struct ahd_softc *ahd, struct pci_attach_args *pa) argument [all...] |
H A D | if_bwi_pci.c | 80 struct pci_attach_args *pa = aux; local 82 if (PCI_VENDOR(pa->pa_id) != PCI_VENDOR_BROADCOM) 85 switch (PCI_PRODUCT(pa->pa_id)) { 108 struct pci_attach_args *pa = aux; local 119 sc->sc_dmat = pa->pa_dmat; 120 psc->psc_pc = pa->pa_pc; 121 psc->psc_pcitag = pa->pa_tag; 124 memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, BWI_PCI_BAR0); 134 if (pci_mapreg_map(pa, BWI_PCI_BAR [all...] |
H A D | njs_pci.c | 92 njs_pci_lookup(const struct pci_attach_args *pa) argument 98 if (PCI_VENDOR(pa->pa_id) == p->p_vendor && 99 PCI_PRODUCT(pa->pa_id) == p->p_product) 109 struct pci_attach_args *pa = aux; local 111 if (njs_pci_lookup(pa)) 120 struct pci_attach_args *pa = aux; local 125 pci_chipset_tag_t pc = pa->pa_pc; 130 if ((prod = njs_pci_lookup(pa)) == NULL) 141 reg = pci_conf_read(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG); 144 pci_conf_write(pc, pa [all...] |
H A D | ohci_pci.c | 71 struct pci_attach_args *pa = (struct pci_attach_args *) aux; local 73 if (PCI_CLASS(pa->pa_class) == PCI_CLASS_SERIALBUS && 74 PCI_SUBCLASS(pa->pa_class) == PCI_SUBCLASS_SERIALBUS_USB && 75 PCI_INTERFACE(pa->pa_class) == PCI_INTERFACE_OHCI) 85 struct pci_attach_args *pa = (struct pci_attach_args *)aux; local 86 pci_chipset_tag_t pc = pa->pa_pc; 87 pcitag_t tag = pa->pa_tag; 97 pci_aprint_devinfo(pa, "USB Controller"); 110 if (pci_mapreg_map(pa, PCI_CBMEM, PCI_MAPREG_TYPE_MEM, 0, 123 sc->sc.sc_bus.dmatag = pa [all...] |
H A D | uhci_pci.c | 73 struct pci_attach_args *pa = (struct pci_attach_args *) aux; local 75 if (PCI_CLASS(pa->pa_class) == PCI_CLASS_SERIALBUS && 76 PCI_SUBCLASS(pa->pa_class) == PCI_SUBCLASS_SERIALBUS_USB && 77 PCI_INTERFACE(pa->pa_class) == PCI_INTERFACE_UHCI) 87 struct pci_attach_args *pa = (struct pci_attach_args *)aux; local 88 pci_chipset_tag_t pc = pa->pa_pc; 89 pcitag_t tag = pa->pa_tag; 100 pci_aprint_devinfo(pa, NULL); 103 if (pci_mapreg_map(pa, PCI_CBIO, PCI_MAPREG_TYPE_IO, 0, 119 sc->sc.sc_bus.dmatag = pa [all...] |
H A D | viaide.c | 380 const struct pci_attach_args *pa = aux; local 382 if (viaide_lookup(pa->pa_id) != NULL) 390 const struct pci_attach_args *pa = aux; local 396 pp = viaide_lookup(pa->pa_id); 399 pciide_common_attach(sc, pa, pp); 406 via_pcib_match(const struct pci_attach_args *pa) argument 408 if (PCI_CLASS(pa->pa_class) == PCI_CLASS_BRIDGE && 409 PCI_SUBCLASS(pa->pa_class) == PCI_SUBCLASS_BRIDGE_ISA && 410 PCI_VENDOR(pa->pa_id) == PCI_VENDOR_VIATECH) 449 via_chip_map(struct pciide_softc *sc, const struct pci_attach_args *pa) argument 650 via_mapchan(const struct pci_attach_args *pa, struct pciide_channel *cp, pcireg_t interface, int (*pci_intr)(void *)) argument 685 via_mapregs_compat_native(const struct pci_attach_args *pa, struct pciide_channel *cp) argument 870 struct pci_attach_args pac, *pa = &pac; local 942 via_sata_chip_map(struct pciide_softc *sc, const struct pci_attach_args *pa, int satareg_shift) argument 1002 via_sata_chip_map_6(struct pciide_softc *sc, const struct pci_attach_args *pa) argument 1008 via_sata_chip_map_7(struct pciide_softc *sc, const struct pci_attach_args *pa) argument 1014 via_vt6421_mapreg_dma(struct pciide_softc *sc, const struct pci_attach_args *pa) argument 1084 via_sata_chip_map_new(struct pciide_softc *sc, const struct pci_attach_args *pa) argument [all...] |
H A D | siside.c | 85 struct pci_attach_args *pa = aux; local 87 if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_SIS) { 88 if (pciide_lookup_product(pa->pa_id, pciide_sis_products)) 97 struct pci_attach_args *pa = aux; local 99 pci_chipset_tag_t pc = pa->pa_pc; 100 pcitag_t tag = pa->pa_tag; 105 pciide_common_attach(sc, pa, 106 pciide_lookup_product(pa->pa_id, pciide_sis_products)); 181 sis_hostbr_match(const struct pci_attach_args *pa) argument 186 id = pa 214 sis_south_match(const struct pci_attach_args *pa) argument 223 sis_chip_map(struct pciide_softc *sc, const struct pci_attach_args *pa) argument 510 sis_sata_chip_map(struct pciide_softc *sc, const struct pci_attach_args *pa) argument [all...] |
H A D | optiide.c | 79 struct pci_attach_args *pa = aux; local 81 if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_OPTI && 82 PCI_CLASS(pa->pa_class) == PCI_CLASS_MASS_STORAGE && 83 PCI_SUBCLASS(pa->pa_class) == PCI_SUBCLASS_MASS_STORAGE_IDE) { 84 if (pciide_lookup_product(pa->pa_id, pciide_opti_products)) 93 struct pci_attach_args *pa = aux; local 98 pciide_common_attach(sc, pa, 99 pciide_lookup_product(pa->pa_id, pciide_opti_products)); 104 opti_chip_map(struct pciide_softc *sc, const struct pci_attach_args *pa) argument 111 if (pciide_chipen(sc, pa) [all...] |
H A D | if_wi_pci.c | 188 wi_pci_lookup(struct pci_attach_args *pa) argument 193 if (PCI_VENDOR(pa->pa_id) == wpp->wpp_vendor && 194 PCI_PRODUCT(pa->pa_id) == wpp->wpp_product) 203 struct pci_attach_args *pa = aux; local 205 if (wi_pci_lookup(pa) != NULL) 215 struct pci_attach_args *pa = aux; local 216 pci_chipset_tag_t pc = pa->pa_pc; 225 psc->psc_pcitag = pa->pa_tag; 227 wpp = wi_pci_lookup(pa); 239 if (pci_mapreg_map(pa, WI_PCI_LOME [all...] |
H A D | nca_pci.c | 65 struct pci_attach_args *pa = aux; local 66 if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_DOMEX && 67 PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_DOMEX_PCISCSI) 76 struct pci_attach_args *pa = aux; local 80 pci_aprint_devinfo(pa, "SCSI controller"); 82 if (pci_mapreg_map(pa, 0x10, PCI_MAPREG_TYPE_IO, 0,
|
/netbsd-6-1-5-RELEASE/crypto/dist/ipsec-tools/src/racoon/ |
H A D | isakmp_ident.c | 258 struct isakmp_parse_t *pa; local 282 pa = (struct isakmp_parse_t *)pbuf->v; 285 if (pa->type != ISAKMP_NPTYPE_SA) { 289 pa->type, ISAKMP_NPTYPE_SA); 292 if (isakmp_p2ph(&satmp, pa->ptr) < 0) 294 pa++; 297 pa->type != ISAKMP_NPTYPE_NONE; 298 pa++) { 300 switch (pa->type) { 302 handle_vendorid(iph1, pa 427 struct isakmp_parse_t *pa; local 669 struct isakmp_parse_t *pa; local 856 struct isakmp_parse_t *pa; local 1115 struct isakmp_parse_t *pa; local 1334 struct isakmp_parse_t *pa; local [all...] |
H A D | isakmp_agg.c | 328 struct isakmp_parse_t *pa; local 362 pa = (struct isakmp_parse_t *)pbuf->v; 367 if (pa->type != ISAKMP_NPTYPE_SA) { 371 pa->type, ISAKMP_NPTYPE_SA); 375 if (isakmp_p2ph(&satmp, pa->ptr) < 0) 377 pa++; 380 pa->type != ISAKMP_NPTYPE_NONE; 381 pa++) { 383 switch (pa->type) { 385 if (isakmp_p2ph(&iph1->dhpub_p, pa 765 struct isakmp_parse_t *pa; local 1288 struct isakmp_parse_t *pa; local [all...] |
H A D | isakmp_base.c | 297 struct isakmp_parse_t *pa; local 316 pa = (struct isakmp_parse_t *)pbuf->v; 319 if (pa->type != ISAKMP_NPTYPE_SA) { 323 pa->type, ISAKMP_NPTYPE_SA); 326 if (isakmp_p2ph(&satmp, pa->ptr) < 0) 328 pa++; 331 pa->type != ISAKMP_NPTYPE_NONE; 332 pa++) { 334 switch (pa->type) { 336 if (isakmp_p2ph(&iph1->nonce_p, pa 587 struct isakmp_parse_t *pa; local 787 struct isakmp_parse_t *pa; local 1068 struct isakmp_parse_t *pa; local [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/sparc/stand/common/ |
H A D | mmu.c | 46 static int pmap_map4(vaddr_t va, paddr_t pa, psize_t size); 48 static int pmap_map_srmmu(vaddr_t va, paddr_t pa, psize_t size); 51 int (*pmap_map)(vaddr_t va, paddr_t pa, psize_t size); 97 int pmap_map4(vaddr_t va, paddr_t pa, psize_t size) argument 106 printf("Mapping %lx -> %lx (%d pages)\n", va, pa, n); 109 pte = PG_S | PG_V | PG_W | PG_NC | ((pa >> PGSHIFT) & PG_PFNUM); 112 pa += NBPG; 142 int pmap_map_srmmu(vaddr_t va, paddr_t pa, psize_t size) argument 146 sprintf(buf, "%lx %x %lx %lx map-pages", pa, obmem, va, size);
|
/netbsd-6-1-5-RELEASE/sys/arch/sgimips/sgimips/ |
H A D | autoconf.c | 174 #define BUILTIN_AHC_P(pa) \ 175 (((pa)->pa_bus == 0 && (pa)->pa_device == 1 && (pa)->pa_function == 0) || \ 176 ((pa)->pa_bus == 0 && (pa)->pa_device == 2 && (pa)->pa_function == 0)) 186 struct pci_attach_args *pa = aux; local 188 if (BUILTIN_AHC_P(pa)) {
|
/netbsd-6-1-5-RELEASE/sys/arch/mvme68k/dev/ |
H A D | zs_pcc.c | 86 struct pcc_attach_args *pa = aux; local 88 if (strcmp(pa->pa_name, zsc_cd.cd_name)) 91 pa->pa_ipl = cf->pcccf_ipl; 92 if (pa->pa_ipl == -1) 93 pa->pa_ipl = ZSHARD_PRI; 107 struct pcc_attach_args *pa = aux; local 116 bus_space_map(pa->pa_bust, pa->pa_offset, 4, 0, &bush); 118 zs_level = pa->pa_ipl;
|
H A D | zs_pcctwo.c | 89 struct pcctwo_attach_args *pa = aux; local 91 if (strcmp(pa->pa_name, zsc_cd.cd_name) || 95 pa->pa_ipl = cf->pcctwocf_ipl; 96 if (pa->pa_ipl == -1) 97 pa->pa_ipl = ZSHARD_PRI; 108 struct pcctwo_attach_args *pa = aux; local 117 bus_space_map(pa->pa_bust, pa->pa_offset, 8, 0, &bush); 119 zs_level = pa->pa_ipl;
|
/netbsd-6-1-5-RELEASE/lib/libkvm/ |
H A D | kvm_arm.c | 76 _kvm_kvatop(kvm_t * kd, vaddr_t va, paddr_t *pa) argument 120 *pa = (pde & L1_S_FRAME) | (va & L1_S_OFFSET); 145 *pa = (pte & L2_L_FRAME) | (va & L2_L_OFFSET); 148 *pa = (pte & L2_S_FRAME) | (va & L2_S_OFFSET); 151 *pa = (pte & L2_T_FRAME) | (va & L2_T_OFFSET); 163 _kvm_pa2off(kvm_t * kd, u_long pa) argument 175 if (pa >= ramsegs[i].start && 176 (pa - ramsegs[i].start) < ramsegs[i].size) { 177 off += (pa - ramsegs[i].start);
|
H A D | kvm_x86_64.c | 94 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa) argument 110 * Find and read all entries to get to the pa. 142 *pa = (pde & PG_1GFRAME) + page_off; 161 *pa = (pde & PG_2MFRAME) + page_off; 182 *pa = (pte & PG_FRAME) + page_off; 186 *pa = (u_long)~0L; 194 _kvm_pa2off(kvm_t *kd, paddr_t pa) argument 206 if (pa >= ramsegs[i].start && 207 (pa - ramsegs[i].start) < ramsegs[i].size) { 208 off += (pa [all...] |
H A D | kvm_powerpc.c | 117 _kvm_match_601bat(kvm_t *kd, vaddr_t va, paddr_t *pa, int *off) argument 132 *pa = (cpu_kh->dbatl[i] & BAT601_PBN) + pgoff; 145 _kvm_match_bat(kvm_t *kd, vaddr_t va, paddr_t *pa, int *off) argument 162 *pa = (cpu_kh->dbatl[i] & BAT_RPN) + pgoff; 200 _kvm_match_sr(kvm_t *kd, vaddr_t va, paddr_t *pa, int *off) argument 238 *pa = (pte->pte_lo & PTE_RPGN) | pgoff; 256 *pa = (pte->pte_lo & PTE_RPGN) | pgoff; 268 _kvm_kvatop(kvm_t *kd, vaddr_t va, paddr_t *pa) argument 288 if (_kvm_match_601bat(kd, va, pa, &offs)) { 293 if (_kvm_match_sr(kd, va, pa, 333 _kvm_pa2off(kvm_t *kd, paddr_t pa) argument [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/powerpc/ibm4xx/ |
H A D | pmap.c | 198 pa_to_pv(paddr_t pa) argument 202 bank = vm_physseg_find(atop(pa), &pg); 209 pa_to_attr(paddr_t pa) argument 213 bank = vm_physseg_find(atop(pa), &pg); 594 printf("pa = %llx\n", (unsigned long long)VM_PAGE_TO_PHYS(pg)); 682 pmap_zero_page(paddr_t pa) argument 686 memset((void *)pa, 0, PAGE_SIZE); 691 __asm volatile ("dcbz 0,%0" :: "r"(pa)); 692 pa += CACHELINESIZE; 712 pmap_enter_pv(struct pmap *pm, vaddr_t va, paddr_t pa, in argument 756 pmap_remove_pv(struct pmap *pm, vaddr_t va, paddr_t pa) argument 800 pmap_enter(struct pmap *pm, vaddr_t va, paddr_t pa, vm_prot_t prot, u_int flags) argument 895 paddr_t pa; local 921 pmap_kenter_pa(vaddr_t va, paddr_t pa, vm_prot_t prot, u_int flags) argument 989 paddr_t pa; local 1016 u_int pa = 0; local 1067 paddr_t pa; local 1099 paddr_t pa = VM_PAGE_TO_PHYS(pg); local 1293 paddr_t pa; local 1390 paddr_t pa; local 1427 ppc4xx_tlb_reserve(paddr_t pa, vaddr_t va, size_t size, int flags) argument 1633 paddr_t pa; local 1642 pmap_extract(pmap_kernel(), va, &pa); local 1647 pmap_enter(pmap_kernel(), va, pa, VM_PROT_ALL, 0); local [all...] |
/netbsd-6-1-5-RELEASE/sys/dev/if_ndis/ |
H A D | if_ndis_pci.c | 150 struct pci_attach_args *pa = aux; local 151 int vendor = PCI_VENDOR(pa->pa_id); 152 int product = PCI_PRODUCT(pa->pa_id); 191 struct pci_attach_args *pa = aux; local 214 sc->ndis_res_pc = pa->pa_pc; 215 sc->ndis_res_pctag = pa->pa_tag; 216 /* TODO: is this correct? All are just pa->pa_dmat? */ 217 sc->ndis_mtag = pa->pa_dmat; 218 sc->ndis_ttag = pa->pa_dmat; 219 sc->ndis_parent_tag = pa [all...] |