/src/libexec/ld.elf_so/arch/arm/ |
find_exidx.c | 68 const Elf_Phdr *ph = obj->phdr; local in function:__gnu_Unwind_Find_exidx 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 in function:sis85c503_get_intr 134 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, 149 struct piix_handle *ph = v; local in function:sis85c503_set_intr 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 in function:opti82c558_init 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 in function:opti82c558_get_intr 162 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, VIPER_CFG_PIRQ) 173 struct opti82c558_handle *ph = v; local in function:opti82c558_set_intr 192 struct opti82c558_handle *ph = v; local in function:opti82c558_get_trigger 213 struct opti82c558_handle *ph = v; local in function:opti82c558_set_trigger [all...] |
amd756.c | 109 struct amd756_handle *ph; local in function:amd756_init 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 in function:amd756_get_intr 161 struct amd756_handle *ph = v; local in function:amd756_set_intr 180 struct amd756_handle *ph = v; local in function:amd756_get_trigger 205 struct amd756_handle *ph = v; local in function:amd756_set_trigger [all...] |
opti82c700.c | 114 struct opti82c700_handle *ph; local in function:opti82c700_init 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 in function:opti82c700_get_intr 204 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, addrofs) 216 struct opti82c700_handle *ph = v; local in function:opti82c700_set_intr 237 struct opti82c700_handle *ph = v; local in function:opti82c700_get_trigger 283 struct opti82c700_handle *ph = v; local in function:opti82c700_set_trigger [all...] |
piix.c | 124 struct piix_handle *ph; local in function:piix_init 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 in function:piix_uninit 233 struct piix_handle *ph = v; local in function:piix_get_intr 257 struct piix_handle *ph = v; local in function:piix_set_intr 280 struct piix_handle *ph = v; local in function:piix_get_trigger 302 struct piix_handle *ph = v; local in function:piix_set_trigger [all...] |
via82c586.c | 155 struct piix_handle *ph = v; local in function:via82c586_get_intr 162 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, VP3_CFG_PIRQ_REG); 173 struct piix_handle *ph = v; local in function:via82c586_set_intr 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 in function:via82c586_get_trigger 207 reg = pci_conf_read(ph->ph_pc, ph->ph_tag 227 struct piix_handle *ph = v; local in function:via82c586_set_trigger [all...] |
ali1543.c | 183 struct piix_handle *ph = v; local in function:ali1543_get_intr 190 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, ALI1543_INTR_CFG_REG); 204 struct piix_handle *ph = v; local in function:ali1543_set_intr 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);
|
via8231.c | 143 struct via8231_handle *ph; local in function:via8231_init 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 in function:via8231_getclink 185 struct via8231_handle *ph = v; local in function:via8231_get_intr 208 struct via8231_handle *ph = v; local in function:via8231_set_intr 235 struct via8231_handle *ph = v; local in function:via8231_get_trigger 260 struct via8231_handle *ph = v; local in function:via8231_set_trigger [all...] |
/src/usr.sbin/btpand/ |
packet.c | 88 pkthdr_t *ph; local in function:pkthdr_alloc 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 in function:channel_close 128 while ((ph = STAILQ_FIRST(&chan->pktlist)) != NULL) { 130 pkthdr_free(ph); 158 pkthdr_t *ph; local in function:channel_start 163 ph = STAILQ_FIRST(&chan->pktlist); 166 if (chan->send(chan, ph->data) == false) { 175 pkthdr_free(ph); 262 pkthdr_t *ph; local in function:channel_put 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 in function:ibm4xx_show_pci_map 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 in function:crypto_sign_ed25519ph_final_create 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 in function:crypto_sign_ed25519ph_final_verify 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 in function:ELFNAME2 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 in function:ElfLoader::memorySize 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 in function:ElfLoader::load 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 in function:load_boot 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 in function:xk_elf 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/sys/compat/linux/common/ |
linux_exec_elf32.c | 370 Elf_Phdr *ph; local in function:ELFNAME2 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 in function:pcdisplay_init 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/games/cribbage/ |
crib.c | 474 static CARD ch[CINHAND], ph[CINHAND]; local in function:peg 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/libexec/ld.elf_so/ |
headers.c | 523 const Elf_Phdr *ph; local in function:_rtld_digest_phdr 530 for (ph = phdr; ph < phlimit; ++ph) { 531 if (ph->p_type != PT_PHDR) 534 obj->relocbase = (caddr_t)((uintptr_t)phdr - (uintptr_t)ph->p_vaddr); 536 obj->phsize = ph->p_memsz; 542 for (ph = phdr; ph < phlimit; ++ph) { [all...] |
/src/sys/arch/hppa/stand/xxboot/ |
main.c | 350 Elf32_Phdr *ph; local in function:xi_elf32 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 in function:xi_elf64 374 ph = (void *) (top + (unsigned) hdr->e_phoff); 375 inf->sec_image = top + (unsigned) ph->p_offset [all...] |
/src/sys/arch/vax/boot/xxboot/ |
bootxx.c | 147 Elf32_Phdr ph; local in function:Xmain 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...] |
/src/sys/net/ |
pfil.c | 117 pfil_head_t *ph; local in function:pfil_head_create 122 ph = kmem_zalloc(sizeof(pfil_head_t), KM_SLEEP); 123 ph->ph_type = type; 124 ph->ph_key = key; 126 pfil_listset_init(&ph->ph_in); 127 pfil_listset_init(&ph->ph_out); 128 pfil_listset_init(&ph->ph_ifaddr); 129 pfil_listset_init(&ph->ph_ifevent); 131 LIST_INSERT_HEAD(&pfil_head_list, ph, ph_list); 132 return ph; 157 pfil_head_t *ph; local in function:pfil_head_get [all...] |
/src/sys/arch/arm/at91/ |
at91cf.c | 139 struct at91cf_handle *ph; local in function:at91cf_attach_common 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 in function:at91cf_create_event_thread 264 struct at91cf_handle *ph = arg; local in function:at91cf_event_thread 289 struct at91cf_handle *ph = arg; local in function:at91cf_shutdown 299 struct at91cf_handle *ph = arg; local in function:at91cf_intr_carddetect 320 struct at91cf_handle *ph = (struct at91cf_handle *)pch; local in function:at91cf_mem_alloc 340 struct at91cf_handle *ph = (struct at91cf_handle *)pch; local in function:at91cf_mem_map 376 struct at91cf_handle *ph = (struct at91cf_handle *)pch; local in function:at91cf_mem_unmap 388 struct at91cf_handle *ph = (struct at91cf_handle *)pch; local in function:at91cf_io_alloc 404 struct at91cf_handle *ph = (struct at91cf_handle *)pch; local in function:at91cf_io_free 416 struct at91cf_handle *ph = (struct at91cf_handle *)pch; local in function:at91cf_io_map 448 struct at91cf_handle *ph = (struct at91cf_handle *)pch; local in function:at91cf_intr_establish 467 struct at91cf_handle *ph = (struct at91cf_handle *)pch; local in function:at91cf_intr_disestablish 482 struct at91cf_handle *ph = arg; local in function:at91cf_intr_socket 503 struct at91cf_handle *ph = (struct at91cf_handle *)pch; local in function:at91cf_socket_enable 517 struct at91cf_handle *ph = (struct at91cf_handle *)pch; local in function:at91cf_socket_disable 531 struct at91cf_handle *ph = (struct at91cf_handle *)pch; local in function:at91cf_socket_settype [all...] |