Home
last modified time | relevance | path

Searched refs:ph (Results 1 – 25 of 127) sorted by relevance

123456

/openbsd-src/sys/arch/i386/pci/
H A Dvia8231reg.h84 #define VIA8231_GET_TRIGGER(ph) \ argument
85 ((pci_conf_read((ph)->ph_pc, (ph)->ph_tag, VIA8231_CFG_PIR) \
87 #define VIA8237_GET_TRIGGER(ph) \ argument
88 ((pci_conf_read((ph)->ph_pc, (ph)->ph_tag, VIA8237_CFG_PIR) \
91 #define VIA8231_SET_TRIGGER(ph, n) \ argument
92 pci_conf_write((ph)->ph_pc, (ph)->ph_tag, VIA8231_CFG_PIR, \
93 (pci_conf_read((ph)->ph_pc, (ph)->ph_tag, VIA8231_CFG_PIR) \
95 #define VIA8237_SET_TRIGGER(ph, n) \ argument
96 pci_conf_write((ph)->ph_pc, (ph)->ph_tag, VIA8237_CFG_PIR, \
97 (pci_conf_read((ph)->ph_pc, (ph)->ph_tag, VIA8237_CFG_PIR) \
[all …]
H A Dpiix.c101 struct piix_handle *ph; in piix_init() local
103 ph = malloc(sizeof(*ph), M_DEVBUF, M_NOWAIT); in piix_init()
104 if (ph == NULL) in piix_init()
107 ph->ph_iot = iot; in piix_init()
108 ph->ph_pc = pc; in piix_init()
109 ph->ph_tag = tag; in piix_init()
112 &ph->ph_elcr_ioh) != 0) { in piix_init()
113 free(ph, M_DEVBUF, sizeof *ph); in piix_init()
118 piix_pir_dump(ph); in piix_init()
121 *phandp = ph; in piix_init()
[all …]
H A Drccosb4.c69 struct osb4_handle *ph; in osb4_init() local
71 ph = malloc(sizeof(*ph), M_DEVBUF, M_NOWAIT); in osb4_init()
72 if (ph == NULL) in osb4_init()
75 ph->piix.ph_iot = iot; in osb4_init()
76 ph->piix.ph_pc = pc; in osb4_init()
77 ph->piix.ph_tag = tag; in osb4_init()
79 if (bus_space_map(iot, OSB4_PIAIR, 2, 0, &ph->osb4_ioh)) { in osb4_init()
80 free(ph, M_DEVBUF, sizeof *ph); in osb4_init()
84 if (bus_space_map(iot, OSB4_REG_ELCR, 2, 0, &ph->piix.ph_elcr_ioh)) { in osb4_init()
85 free(ph, M_DEVBUF, sizeof *ph); in osb4_init()
[all …]
H A Dvia8231.c138 struct via8231_handle *ph; in via8231_init() local
141 ph = malloc(sizeof(*ph), M_DEVBUF, M_NOWAIT); in via8231_init()
142 if (ph == NULL) in via8231_init()
145 ph->ph_iot = iot; in via8231_init()
146 ph->ph_pc = pc; in via8231_init()
147 ph->ph_tag = tag; in via8231_init()
149 ph->flags = PCI_VENDOR(id) == PCI_VENDOR_VIATECH && in via8231_init()
153 *phandp = ph; in via8231_init()
156 via8231_pir_dump("via8231_init", ph); in via8231_init()
165 struct via8231_handle *ph = v; in via8231_getclink() local
[all …]
H A Damd756reg.h55 #define AMD756_GET_EDGESEL(ph) \ argument
56 (pci_conf_read((ph)->ph_pc, (ph)->ph_tag, AMD756_CFG_PIR) & 0xff)
58 #define AMD756_GET_PIIRQSEL(ph) \ argument
59 (pci_conf_read((ph)->ph_pc, (ph)->ph_tag, AMD756_CFG_PIR) >> 16)
61 #define AMD756_SET_EDGESEL(ph, n) \ argument
62 pci_conf_write((ph)->ph_pc, (ph)->ph_tag, AMD756_CFG_PIR, \
63 (pci_conf_read((ph)->ph_pc, (ph)->ph_tag, AMD756_CFG_PIR) \
66 #define AMD756_SET_PIIRQSEL(ph, n) \ argument
67 pci_conf_write((ph)->ph_pc, (ph)->ph_tag, AMD756_CFG_PIR, \
68 (pci_conf_read((ph)->ph_pc, (ph)->ph_tag, AMD756_CFG_PIR) \
H A Dopti82c558.c121 struct opti82c558_handle *ph; in opti82c558_init() local
123 ph = malloc(sizeof(*ph), M_DEVBUF, M_NOWAIT); in opti82c558_init()
124 if (ph == NULL) in opti82c558_init()
127 ph->ph_pc = pc; in opti82c558_init()
128 ph->ph_tag = tag; in opti82c558_init()
131 *phandp = ph; in opti82c558_init()
150 struct opti82c558_handle *ph = v; in opti82c558_get_intr() local
157 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, VIPER_CFG_PIRQ); in opti82c558_get_intr()
167 struct opti82c558_handle *ph = v; in opti82c558_set_intr() local
174 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, VIPER_CFG_PIRQ); in opti82c558_set_intr()
[all …]
H A Damd756.c104 struct viper_handle *ph; in amd756_init() local
106 ph = malloc(sizeof(*ph), M_DEVBUF, M_NOWAIT); in amd756_init()
107 if (ph == NULL) in amd756_init()
110 ph->ph_iot = iot; in amd756_init()
111 ph->ph_pc = pc; in amd756_init()
112 ph->ph_tag = tag; in amd756_init()
115 *phandp = ph; in amd756_init()
118 amd756_pir_dump(ph); in amd756_init()
137 struct viper_handle *ph = v; in amd756_get_intr() local
144 reg = AMD756_GET_PIIRQSEL(ph); in amd756_get_intr()
[all …]
H A Dopti82c700.c109 struct opti82c700_handle *ph; in opti82c700_init() local
111 ph = malloc(sizeof(*ph), M_DEVBUF, M_NOWAIT); in opti82c700_init()
112 if (ph == NULL) in opti82c700_init()
115 ph->ph_pc = pc; in opti82c700_init()
116 ph->ph_tag = tag; in opti82c700_init()
118 opti82c700_pir_dump(ph); in opti82c700_init()
121 *phandp = ph; in opti82c700_init()
192 struct opti82c700_handle *ph = v; in opti82c700_get_intr() local
199 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, addrofs); in opti82c700_get_intr()
211 struct opti82c700_handle *ph = v; in opti82c700_set_intr() local
[all …]
H A Dvia82c586.c150 struct piix_handle *ph = v; in via82c586_get_intr() local
157 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, VP3_CFG_PIRQ_REG); in via82c586_get_intr()
168 struct piix_handle *ph = v; in via82c586_set_intr() local
175 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, VP3_CFG_PIRQ_REG); in via82c586_set_intr()
180 pci_conf_write(ph->ph_pc, ph->ph_tag, VP3_CFG_PIRQ_REG, reg); in via82c586_set_intr()
191 struct piix_handle *ph = v; in via82c586_get_trigger() local
202 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, in via82c586_get_trigger()
222 struct piix_handle *ph = v; in via82c586_set_trigger() local
232 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, in via82c586_set_trigger()
238 pci_conf_write(ph->ph_pc, ph->ph_tag, in via82c586_set_trigger()
H A Dsis85c503.c123 struct piix_handle *ph = v; in sis85c503_get_intr() local
129 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, in sis85c503_get_intr()
144 struct piix_handle *ph = v; in sis85c503_set_intr() local
151 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, in sis85c503_set_intr()
157 pci_conf_write(ph->ph_pc, ph->ph_tag, SIS85C503_CFG_PIRQ_REGOFS(clink), in sis85c503_set_intr()
H A Dali1543.c179 struct piix_handle *ph = v; in ali1543_get_intr() local
186 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, ALI1543_INTR_CFG_REG); in ali1543_get_intr()
200 struct piix_handle *ph = v; in ali1543_set_intr() local
207 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, ALI1543_INTR_CFG_REG); in ali1543_set_intr()
212 pci_conf_write(ph->ph_pc, ph->ph_tag, ALI1543_INTR_CFG_REG, reg); in ali1543_set_intr()
/openbsd-src/gnu/usr.bin/binutils/gdb/
H A Dproc-service.c69 ps_xfer_memory (const struct ps_prochandle *ph, paddr_t addr, in ps_xfer_memory() argument
75 inferior_ptid = pid_to_ptid (ph->pid); in ps_xfer_memory()
91 ps_pstop (gdb_ps_prochandle_t ph) in ps_pstop() argument
100 ps_pcontinue (gdb_ps_prochandle_t ph) in ps_pcontinue() argument
110 ps_lstop (gdb_ps_prochandle_t ph, lwpid_t lwpid) in ps_lstop() argument
120 ps_lcontinue (gdb_ps_prochandle_t ph, lwpid_t lwpid) in ps_lcontinue() argument
132 ps_lgetxregsize (gdb_ps_prochandle_t ph, lwpid_t lwpid, int *xregsize) in ps_lgetxregsize() argument
142 ps_lgetxregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, caddr_t xregset) in ps_lgetxregs() argument
152 ps_lsetxregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, caddr_t xregset) in ps_lsetxregs() argument
174 ps_pglobal_lookup (gdb_ps_prochandle_t ph, const char *obj, in ps_pglobal_lookup() argument
[all …]
/openbsd-src/sys/dev/ic/
H A Dpcdisplayvar.h58 _pcdisplay_6845_read(struct pcdisplay_handle *ph, int reg) in _pcdisplay_6845_read() argument
60 bus_space_write_1(ph->ph_iot, ph->ph_ioh_6845, MC6845_INDEX, reg); in _pcdisplay_6845_read()
61 return (bus_space_read_1(ph->ph_iot, ph->ph_ioh_6845, MC6845_DATA)); in _pcdisplay_6845_read()
65 _pcdisplay_6845_write(struct pcdisplay_handle *ph, int reg, u_int8_t val) in _pcdisplay_6845_write() argument
67 bus_space_write_1(ph->ph_iot, ph->ph_ioh_6845, MC6845_INDEX, reg); in _pcdisplay_6845_write()
68 bus_space_write_1(ph->ph_iot, ph->ph_ioh_6845, MC6845_DATA, val); in _pcdisplay_6845_write()
71 #define pcdisplay_6845_read(ph, reg) \ argument
72 _pcdisplay_6845_read(ph, offsetof(struct reg_mc6845, reg))
73 #define pcdisplay_6845_write(ph, reg, val) \ argument
74 _pcdisplay_6845_write(ph, offsetof(struct reg_mc6845, reg), val)
/openbsd-src/sys/dev/pci/
H A Dpccbb.c93 #define Pcic_read(ph, reg) ((ph)->ph_read((ph), (reg))) argument
94 #define Pcic_write(ph, reg, val) ((ph)->ph_write((ph), (reg), (val))) argument
791 struct pcic_handle *ph = &sc->sc_pcmcia_h; in pccbb_pcmcia_attach_setup() local
795 ph->ph_parent = (struct device *)sc; in pccbb_pcmcia_attach_setup()
796 ph->sock = sc->sc_function; in pccbb_pcmcia_attach_setup()
797 ph->flags = 0; in pccbb_pcmcia_attach_setup()
798 ph->shutdown = 0; in pccbb_pcmcia_attach_setup()
799 ph->ih_irq = sc->sc_intrline; in pccbb_pcmcia_attach_setup()
800 ph->ph_bus_t = sc->sc_base_memt; in pccbb_pcmcia_attach_setup()
801 ph->ph_bus_h = sc->sc_base_memh; in pccbb_pcmcia_attach_setup()
[all …]
/openbsd-src/sys/kern/
H A Dsubr_pool.c137 #define POOL_IMAGIC(ph, pi) ((u_long)(pi) ^ (ph)->ph_magic) argument
154 #define POOL_PHPOISON(ph) ISSET((ph)->ph_magic, POOL_MAGICBIT) argument
299 struct pool_page_header *ph, key; in pr_find_pagehead() local
310 ph = RBT_NFIND(phtree, &pp->pr_phtree, &key); in pr_find_pagehead()
311 if (ph == NULL) in pr_find_pagehead()
314 KASSERT(ph->ph_page <= (caddr_t)v); in pr_find_pagehead()
315 if (ph->ph_page + pp->pr_pgsize <= (caddr_t)v) in pr_find_pagehead()
318 return (ph); in pr_find_pagehead()
492 struct pool_page_header *ph; pool_destroy() local
693 struct pool_page_header *ph; pool_do_get() local
779 struct pool_page_header *ph, *freeph = NULL; pool_put() local
832 struct pool_page_header *ph; pool_do_put() local
886 struct pool_page_header *ph; pool_prime() local
914 struct pool_page_header *ph; pool_p_alloc() local
979 pool_p_free(struct pool * pp,struct pool_page_header * ph) pool_p_free() argument
1017 pool_p_insert(struct pool * pp,struct pool_page_header * ph) pool_p_insert() argument
1038 pool_p_remove(struct pool * pp,struct pool_page_header * ph) pool_p_remove() argument
1124 struct pool_page_header *ph, *phnext; pool_reclaim() local
1192 struct pool_page_header *ph; pool_print_pagelist() local
1211 struct pool_page_header *ph; pool_print1() local
1330 pool_chk_page(struct pool * pp,struct pool_page_header * ph,int expected) pool_chk_page() argument
1403 struct pool_page_header *ph; pool_chk() local
1424 struct pool_page_header *ph; pool_walk() local
1556 struct pool_page_header *ph, *freeph; pool_gc_pages() local
[all...]
H A Dexec_elf.c162 Elf_Phdr *ph, Elf_Addr *addr, Elf_Addr *size, int *prot, int flags) in elf_load_psection() argument
172 if (ph->p_align > 1) { in elf_load_psection()
173 *addr = ELF_TRUNC(*addr, ph->p_align); in elf_load_psection()
174 diff = ph->p_vaddr - ELF_TRUNC(ph->p_vaddr, ph->p_align); in elf_load_psection()
176 base = *addr + trunc_page(ph->p_vaddr) in elf_load_psection()
177 - ELF_TRUNC(ph->p_vaddr, ph->p_align); in elf_load_psection()
180 base = *addr + trunc_page(ph in elf_load_psection()
351 Elf_Phdr *ph = NULL, *syscall_ph = NULL; elf_load_file() local
600 Elf_Phdr *ph, *pp, *base_ph = NULL, *syscall_ph = NULL; exec_elf_makecmds() local
1061 Elf_Phdr *hph, *ph; elf_os_pt_note() local
[all...]
/openbsd-src/sys/arch/powerpc64/dev/
H A Dkexec.c92 Elf_Phdr *ph = NULL; in kexec_kexec() local
113 ph = mallocarray(eh.e_phnum, sizeof(Elf_Phdr), M_TEMP, M_NOWAIT); in kexec_kexec()
114 if (ph == NULL) { in kexec_kexec()
119 error = kexec_read(kargs, ph, phsize, eh.e_phoff); in kexec_kexec()
139 if (ph[i].p_type != PT_LOAD) in kexec_kexec()
141 start = MIN(start, ph[i].p_vaddr); in kexec_kexec()
142 align = MAX(align, ph[i].p_align); in kexec_kexec()
143 end = MAX(end, ph[i].p_vaddr + ph[i].p_memsz); in kexec_kexec()
155 if (ph[i].p_type != PT_LOAD) in kexec_kexec()
158 error = kexec_read(kargs, addr + (ph[i].p_vaddr - start), in kexec_kexec()
[all …]
/openbsd-src/sys/arch/octeon/dev/
H A Doctboot.c94 Elf_Phdr *ph = NULL; in octboot_kexec() local
133 ph = mallocarray(eh.e_phnum, sizeof(Elf_Phdr), M_TEMP, M_NOWAIT); in octboot_kexec()
134 if (ph == NULL) { in octboot_kexec()
139 error = octboot_read(kargs, ph, phsize, eh.e_phoff); in octboot_kexec()
156 if (ph[i].p_type != PT_LOAD && in octboot_kexec()
157 ph[i].p_type != PT_OPENBSD_RANDOMIZE) in octboot_kexec()
159 if (ph[i].p_paddr < CKSEG0_BASE || in octboot_kexec()
160 ph[i].p_paddr + ph[i].p_memsz >= CKSEG0_BASE + CKSEG_SIZE) { in octboot_kexec()
171 if (ph[i].p_type != PT_LOAD) in octboot_kexec()
173 pa = CKSEG0_TO_PHYS(ph[i].p_paddr); in octboot_kexec()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/Mips/
H A DMicroMipsDSPInstrInfo.td14 class ADDQ_PH_MM_ENC : POOL32A_3R_FMT<"addq.ph", 0b00000001101>;
15 class ADDQ_S_PH_MM_ENC : POOL32A_3R_FMT<"addq_s.ph", 0b10000001101>;
17 class ADDQH_PH_MMR2_ENC : POOL32A_3R_FMT<"addqh.ph", 0b00001001101>;
18 class ADDQH_R_PH_MMR2_ENC : POOL32A_3R_FMT<"addqh_r.ph", 0b10001001101>;
21 class ADDU_PH_MMR2_ENC : POOL32A_3R_FMT<"addu.ph", 0b00100001101>;
22 class ADDU_S_PH_MMR2_ENC : POOL32A_3R_FMT<"addu_s.ph", 0b10100001101>;
29 class DPA_W_PH_MMR2_ENC : POOL32A_2RAC_FMT<"dpa.w.ph", 0b00000010>;
30 class DPAQ_S_W_PH_MM_ENC : POOL32A_2RAC_FMT<"dpaq_s.w.ph", 0b00001010>;
32 class DPAQX_S_W_PH_MMR2_ENC : POOL32A_2RAC_FMT<"dpaqx_s.w.ph", 0b10001010>;
33 class DPAQX_SA_W_PH_MMR2_ENC : POOL32A_2RAC_FMT<"dpaqx_sa.w.ph", 0b11001010>;
[all …]
/openbsd-src/gnu/usr.bin/binutils/gdb/gdbserver/
H A Dproc-service.c77 ps_pglobal_lookup (gdb_ps_prochandle_t ph, const char *obj, in ps_pglobal_lookup() argument
93 ps_pdread (gdb_ps_prochandle_t ph, paddr_t addr, in ps_pdread() argument
103 ps_pdwrite (gdb_ps_prochandle_t ph, paddr_t addr, in ps_pdwrite() argument
113 ps_lgetregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, prgregset_t gregset) in ps_lgetregs() argument
140 ps_lsetregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, const prgregset_t gregset) in ps_lsetregs() argument
150 ps_lgetfpregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, in ps_lgetfpregs() argument
161 ps_lsetfpregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, in ps_lsetfpregs() argument
172 ps_getpid (gdb_ps_prochandle_t ph) in ps_getpid() argument
174 return ph->pid; in ps_getpid()
/openbsd-src/gnu/usr.bin/perl/dist/base/t/
H A Dfields-5_8_0.t143 my $ph = fields::phash(a => 1, b => 2, c => 3);
144 print "not " unless fstr($ph) eq 'a:1,b:2,c:3';
147 $ph = fields::phash([qw/a b c/], [1, 2, 3]);
148 print "not " unless fstr($ph) eq 'a:1,b:2,c:3';
151 $ph = fields::phash([qw/a b c/], [1]);
152 print "not " if exists $ph->{b} or exists $ph->{c} or !exists $ph->{a};
/openbsd-src/usr.sbin/tcpdump/
H A Dprint-wb.c381 const struct pkt_hdr *ph; in wb_print() local
383 ph = (const struct pkt_hdr *)hdr; in wb_print()
384 len -= sizeof(*ph); in wb_print()
385 if ((u_char *)(ph + 1) <= snapend) { in wb_print()
386 if (ph->ph_flags) in wb_print()
388 switch (ph->ph_type) { in wb_print()
395 if (wb_id((struct pkt_id *)(ph + 1), len) >= 0) in wb_print()
400 if (wb_rreq((struct pkt_rreq *)(ph + 1), len) >= 0) in wb_print()
405 if (wb_rrep((struct pkt_rrep *)(ph + 1), len) >= 0) in wb_print()
410 if (wb_drawop((struct pkt_dop *)(ph + 1), len) >= 0) in wb_print()
[all …]
/openbsd-src/gnu/usr.bin/perl/h2pl/
H A DREADME2 and .h to .ph where appropriate--law.]
4 This directory contains files to help you convert the *.ph files generated my
6 indirection of the subroutine calls removed. The .ph version will be more
17 the file /usr/local/lib/perl/sys/ioctl.ph, which looks like this
51 to hold. You can try to build a sizeof.ph file with:
53 % ./getioctlsizes | ./mksizes > sizeof.ph
56 probably require customization. Once you have sizeof.ph, install it in the
61 If this works well, now you can try to convert the *.ph files into
64 foreach file ( sysexits.ph sys/{errno.ph,ioctl.ph} )
/openbsd-src/games/cribbage/
H A Dcrib.c440 static CARD ch[CINHAND], ph[CINHAND]; in peg() local
451 ph[i] = phand[i]; in peg()
459 prhand(ph, pnum, Playwin, FALSE); in peg()
469 if (anymove(ph, pnum, sum)) in peg()
504 prhand(ph, pnum, Playwin, FALSE); in peg()
513 if (!anymove(ph, pnum, sum)) { /* can player move? */ in peg()
525 prhand(ph, pnum, Playwin, FALSE); in peg()
537 crd = ph[0]; in peg()
541 prhand(ph, in peg()
543 crd = ph[infrom(ph, in peg()
[all …]
/openbsd-src/usr.sbin/mrouted/
H A Dcfparse.y247 struct phaddr *ph; variable
249 ph = malloc(sizeof(struct phaddr));
250 if (ph == NULL)
253 VAL_TO_MASK(ph->pa_subnetmask, $2.mask);
255 ph->pa_subnetmask = v->uv_subnetmask;
256 ph->pa_subnet = $2.addr & ph->pa_subnetmask;
257 ph->pa_subnetbcast = ph->pa_subnet | ~ph->pa_subnetmask;
258 if ($2.addr & ~ph->pa_subnetmask)
261 ph->pa_next = v->uv_addrs;
262 v->uv_addrs = ph;

123456