| /src/libexec/ld.elf_so/arch/arm/ |
| find_exidx.c | 68 const Elf_Phdr *ph = obj->phdr; local 69 const Elf_Phdr * const phlimit = ph + obj->phsize / sizeof(*ph); 70 for (; ph < phlimit; ph++) { 71 if (ph->p_type == PT_LOAD 72 && ph->p_vaddr <= va 73 && va < ph->p_vaddr + ph->p_memsz) {
|
| /src/sys/arch/i386/pci/ |
| sis85c503.c | 128 struct piix_handle *ph = v; local 134 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, 149 struct piix_handle *ph = v; local 156 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, 162 pci_conf_write(ph->ph_pc, ph->ph_tag, SIS85C503_CFG_PIRQ_REGOFS(clink),
|
| opti82c558.c | 126 struct opti82c558_handle *ph; local 128 ph = malloc(sizeof(*ph), M_DEVBUF, M_NOWAIT); 129 if (ph == NULL) 132 ph->ph_pc = pc; 133 ph->ph_tag = tag; 136 *phandp = ph; 155 struct opti82c558_handle *ph = v; local 162 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, VIPER_CFG_PIRQ) 173 struct opti82c558_handle *ph = v; local 192 struct opti82c558_handle *ph = v; local 213 struct opti82c558_handle *ph = v; local [all...] |
| amd756.c | 109 struct amd756_handle *ph; local 111 ph = malloc(sizeof(*ph), M_DEVBUF, M_NOWAIT); 112 if (ph == NULL) 115 ph->ph_iot = iot; 116 ph->ph_pc = pc; 117 ph->ph_tag = tag; 120 *phandp = ph; 123 amd756_pir_dump(ph); 143 struct amd756_handle *ph = v local 161 struct amd756_handle *ph = v; local 180 struct amd756_handle *ph = v; local 205 struct amd756_handle *ph = v; local [all...] |
| ali1543.c | 183 struct piix_handle *ph = v; local 190 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, ALI1543_INTR_CFG_REG); 204 struct piix_handle *ph = v; local 211 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, ALI1543_INTR_CFG_REG); 216 pci_conf_write(ph->ph_pc, ph->ph_tag, ALI1543_INTR_CFG_REG, reg);
|
| opti82c700.c | 114 struct opti82c700_handle *ph; local 116 ph = malloc(sizeof(*ph), M_DEVBUF, M_NOWAIT); 117 if (ph == NULL) 120 ph->ph_pc = pc; 121 ph->ph_tag = tag; 123 opti82c700_pir_dump(ph); 126 *phandp = ph; 197 struct opti82c700_handle *ph = v; local 204 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, addrofs) 216 struct opti82c700_handle *ph = v; local 237 struct opti82c700_handle *ph = v; local 283 struct opti82c700_handle *ph = v; local [all...] |
| piix.c | 124 struct piix_handle *ph; local 126 ph = malloc(sizeof(*ph), M_DEVBUF, M_NOWAIT); 127 if (ph == NULL) 130 ph->ph_iot = iot; 131 ph->ph_pc = pc; 132 ph->ph_tag = tag; 135 &ph->ph_elcr_ioh) != 0) { 136 free(ph, M_DEVBUF); 141 piix_pir_dump(ph); 151 struct piix_handle *ph = v; local 233 struct piix_handle *ph = v; local 257 struct piix_handle *ph = v; local 280 struct piix_handle *ph = v; local 302 struct piix_handle *ph = v; local [all...] |
| via82c586.c | 155 struct piix_handle *ph = v; local 162 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, VP3_CFG_PIRQ_REG); 173 struct piix_handle *ph = v; local 180 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, VP3_CFG_PIRQ_REG); 185 pci_conf_write(ph->ph_pc, ph->ph_tag, VP3_CFG_PIRQ_REG, reg); 196 struct piix_handle *ph = v; local 207 reg = pci_conf_read(ph->ph_pc, ph->ph_tag 227 struct piix_handle *ph = v; local [all...] |
| via8231.c | 143 struct via8231_handle *ph; local 146 ph = malloc(sizeof(*ph), M_DEVBUF, M_NOWAIT); 147 if (ph == NULL) 150 ph->ph_iot = iot; 151 ph->ph_pc = pc; 152 ph->ph_tag = tag; 154 ph->flags = PCI_VENDOR(id) == PCI_VENDOR_VIATECH && 158 *phandp = ph; 161 via8231_pir_dump("via8231_init", ph); 170 struct via8231_handle *ph = v; local 185 struct via8231_handle *ph = v; local 208 struct via8231_handle *ph = v; local 235 struct via8231_handle *ph = v; local 260 struct via8231_handle *ph = v; local [all...] |
| /src/usr.sbin/btpand/ |
| packet.c | 88 pkthdr_t *ph; local 90 ph = malloc(sizeof(pkthdr_t)); 91 if (ph == NULL) { 96 ph->data = pkt; 99 return ph; 103 pkthdr_free(pkthdr_t *ph) 106 packet_free(ph->data); 107 free(ph);
|
| channel.c | 115 pkthdr_t *ph; local 128 while ((ph = STAILQ_FIRST(&chan->pktlist)) != NULL) { 130 pkthdr_free(ph); 158 pkthdr_t *ph; local 163 ph = STAILQ_FIRST(&chan->pktlist); 166 if (chan->send(chan, ph->data) == false) { 175 pkthdr_free(ph); 262 pkthdr_t *ph; local 264 ph = pkthdr_alloc(pkt); 265 if (ph == NULL [all...] |
| /src/sys/arch/powerpc/ibm4xx/dev/ |
| ibm405gp.c | 154 paddr_t la, lm, pl, ph; local 163 ph = bus_space_read_4(pcicfg_iot, pcicfg_ioh, PCIL_PMM0PCIHA); 164 printf("0: %08lx,%08lx -> %08lx%08lx %sprefetchable, %s\n", la, lm, ph, pl, 170 ph = bus_space_read_4(pcicfg_iot, pcicfg_ioh, PCIL_PMM1PCIHA); 171 printf("1: %08lx,%08lx -> %08lx%08lx %sprefetchable, %s\n", la, lm, ph, pl, 177 ph = bus_space_read_4(pcicfg_iot, pcicfg_ioh, PCIL_PMM2PCIHA); 178 printf("2: %08lx,%08lx -> %08lx%08lx %sprefetchable, %s\n", la, lm, ph, pl,
|
| /src/sys/external/isc/libsodium/dist/src/libsodium/crypto_sign/ed25519/ |
| sign_ed25519.c | 80 unsigned char ph[crypto_hash_sha512_BYTES]; local 82 crypto_hash_sha512_final(&state->hs, ph); 84 return _crypto_sign_ed25519_detached(sig, siglen_p, ph, sizeof ph, sk, 1); 92 unsigned char ph[crypto_hash_sha512_BYTES]; local 94 crypto_hash_sha512_final(&state->hs, ph); 96 return _crypto_sign_ed25519_verify_detached(sig, ph, sizeof ph, pk, 1);
|
| /src/sys/compat/linux/arch/amd64/ |
| linux_exec_machdep.c | 132 Elf_Phdr *ph; local 156 ph = (Elf_Phdr *)kmem_alloc(phsize, KM_SLEEP); 157 error = exec_read(l, pack->ep_vp, eh->e_phoff, ph, phsize, 0); 160 if (ph[i].p_type == PT_PHDR) { 161 phdr = ph[i].p_vaddr; 166 kmem_free(ph, phsize);
|
| /src/sys/arch/hpc/stand/hpcboot/ |
| load_elf.cpp | 105 Elf_Phdr *ph = _ph; local 110 for (i = 0; i < _eh.e_phnum; i++, ph++) { 111 if (ph->p_type == PT_LOAD) { 112 size_t filesz = ph->p_filesz; 119 if (filesz < ph->p_memsz) 152 Elf_Phdr *ph; local 158 for (i = 0, ph = _ph; i < _eh.e_phnum; i++, ph++) { 159 if (ph->p_type == PT_LOAD) { 160 size_t filesz = ph->p_filesz [all...] |
| /src/sys/arch/prep/stand/installboot/ |
| installboot.c | 78 Elf32_Phdr ph; local 113 (void)lseek(fd, be32toh(eh.e_phoff) + sizeof(ph) * i, SEEK_SET); 114 if (read(fd, &ph, sizeof(ph)) != sizeof(ph)) { 115 warn("read: ph: %s", boot); 119 if ((be32toh(ph.p_type) != PT_LOAD) || 120 !(be32toh(ph.p_flags) & PF_X)) 123 imgsz = st.st_size - be32toh(ph.p_offset); 124 lseek(fd, be32toh(ph.p_offset), SEEK_SET) [all...] |
| /src/sys/arch/x68k/stand/common/ |
| exec_sub.c | 121 Elf32_Phdr *ph; local 132 ph = (void *) (top + hdr->e_phoff); 133 xarg->load_addr = ph->p_vaddr; 136 sec->sec_image = top + ph->p_offset; 137 sec->sec_size = ph->p_filesz; 140 sec->sec_pad = ph[1].p_vaddr - (ph->p_vaddr + ph->p_filesz); 143 ph++; 144 sec->sec_image = top + ph->p_offset [all...] |
| /src/games/cribbage/ |
| crib.c | 474 static CARD ch[CINHAND], ph[CINHAND]; local 485 ph[i] = phand[i]; 493 prhand(ph, pnum, Playwin, FALSE); 503 if (anymove(ph, pnum, sum)) 544 if (!anymove(ph, pnum, sum)) { /* can player move? */ 565 crd = ph[0]; 569 prhand(ph, 571 crd = ph[infrom(ph, 579 cremove(crd, ph, pnum--) [all...] |
| /src/sys/compat/linux/common/ |
| linux_exec_elf32.c | 370 Elf_Phdr *ph; local 380 ph = (Elf_Phdr *)malloc(phsize, M_TEMP, M_WAITOK); 381 error = exec_read(l, epp->ep_vp, eh->e_phoff, ph, phsize, 387 Elf_Phdr *ephp = &ph[i]; 439 free(ph, M_TEMP);
|
| /src/sys/dev/isa/ |
| pcdisplay.c | 185 struct pcdisplay_handle *ph = &dc->dc_ph; local 188 ph->ph_iot = iot; 189 ph->ph_memt = memt; 193 BUS_SPACE_MAP_CACHEABLE, &ph->ph_memh)) 196 0, &ph->ph_ioh_6845)) 202 dc->pcs.hdl = ph; 207 cpos = pcdisplay_6845_read(ph, cursorh) << 8; 208 cpos |= pcdisplay_6845_read(ph, cursorl);
|
| /src/libexec/ld.elf_so/ |
| headers.c | 538 const Elf_Phdr *ph; local 545 for (ph = phdr; ph < phlimit; ++ph) { 546 if (ph->p_type != PT_PHDR) 549 obj->relocbase = (caddr_t)((uintptr_t)phdr - (uintptr_t)ph->p_vaddr); 551 obj->phsize = ph->p_memsz; 557 for (ph = phdr; ph < phlimit; ++ph) { [all...] |
| /src/sys/arch/arm/at91/ |
| at91cf.c | 139 struct at91cf_handle *ph; local 177 ph = kmem_zalloc(sizeof(*ph), KM_SLEEP); 178 sc->sc_ph = ph; 179 ph->ph_sc = sc; 180 ph->ph_space[IO].base = sa->sa_addr + IO_BASE; 181 ph->ph_space[IO].size = IO_SIZE; 182 ph->ph_space[COMMON].base = sa->sa_addr + COMMON_BASE; 183 ph->ph_space[COMMON].size = COMMON_SIZE; 184 ph->ph_space[ATTRIBUTE].base = sa->sa_addr + MEMORY_BASE 245 struct at91cf_handle *ph = arg; local 264 struct at91cf_handle *ph = arg; local 289 struct at91cf_handle *ph = arg; local 299 struct at91cf_handle *ph = arg; local 320 struct at91cf_handle *ph = (struct at91cf_handle *)pch; local 340 struct at91cf_handle *ph = (struct at91cf_handle *)pch; local 376 struct at91cf_handle *ph = (struct at91cf_handle *)pch; local 388 struct at91cf_handle *ph = (struct at91cf_handle *)pch; local 404 struct at91cf_handle *ph = (struct at91cf_handle *)pch; local 416 struct at91cf_handle *ph = (struct at91cf_handle *)pch; local 448 struct at91cf_handle *ph = (struct at91cf_handle *)pch; local 467 struct at91cf_handle *ph = (struct at91cf_handle *)pch; local 482 struct at91cf_handle *ph = arg; local 503 struct at91cf_handle *ph = (struct at91cf_handle *)pch; local 517 struct at91cf_handle *ph = (struct at91cf_handle *)pch; local 531 struct at91cf_handle *ph = (struct at91cf_handle *)pch; local [all...] |
| /src/sys/arch/hppa/stand/xxboot/ |
| main.c | 350 Elf32_Phdr *ph; local 353 ph = (void *) (top + hdr->e_phoff); 354 inf->sec_image = top + ph->p_offset; 355 inf->sec_size = ph->p_filesz; 357 inf->sec_pad = ph->p_memsz - ph->p_filesz; 360 inf->entry_offset = hdr->e_entry - ph->p_vaddr; 367 Elf64_Phdr *ph; local 374 ph = (void *) (top + (unsigned) hdr->e_phoff); 375 inf->sec_image = top + (unsigned) ph->p_offset [all...] |
| /src/sys/arch/powerpc/powerpc/ |
| rtas.c | 102 int ph = ca->ca_node; local 113 sc->ra_phandle = ph; 114 if (OF_getprop(ph, "rtas-version", buf, sizeof buf) != sizeof buf) 117 if (OF_getprop(ph, "rtas-size", buf, sizeof buf) != sizeof buf) 152 if (OF_getprop(ph, rtas_function_lookup[i].name, buf,
|
| /src/sys/arch/vax/boot/xxboot/ |
| bootxx.c | 147 Elf32_Phdr ph; local 160 read(io, &ph, sizeof(ph)); 161 off += sizeof(ph); 162 if (ph.p_type != PT_LOAD) 165 while (off < ph.p_offset) { 170 read(io, (void *) hdr.elf.e_entry, ph.p_filesz); 171 memset((void *) (hdr.elf.e_entry + ph.p_filesz), 0, 172 ph.p_memsz - ph.p_filesz) [all...] |