Home
last modified time | relevance | path

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

123456

/openbsd/sys/arch/i386/pci/
H A Dvia8231reg.h85 ((pci_conf_read((ph)->ph_pc, (ph)->ph_tag, VIA8231_CFG_PIR) \
88 ((pci_conf_read((ph)->ph_pc, (ph)->ph_tag, VIA8237_CFG_PIR) \
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) \
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) \
108 ((pci_conf_read((ph)->ph_pc, (ph)->ph_tag, VIA8231_CFG_PIR) \
115 pci_conf_write((ph)->ph_pc, (ph)->ph_tag, VIA8231_CFG_PIR, \
116 (pci_conf_read((ph)->ph_pc, (ph)->ph_tag, VIA8231_CFG_PIR) \
119 pci_conf_write((ph)->ph_pc, (ph)->ph_tag, VIA8237_CFG_PIR, \
[all …]
H A Dpiix.c103 ph = malloc(sizeof(*ph), M_DEVBUF, M_NOWAIT); in piix_init()
113 free(ph, M_DEVBUF, sizeof *ph); in piix_init()
121 *phandp = ph; in piix_init()
171 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, off); in piix_get_intr()
197 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, off); in piix_set_intr()
201 pci_conf_write(ph->ph_pc, ph->ph_tag, off, reg); in piix_set_intr()
219 elcr = bus_space_read_1(ph->ph_iot, ph->ph_elcr_ioh, off); in piix_get_trigger()
241 elcr = bus_space_read_1(ph->ph_iot, ph->ph_elcr_ioh, off); in piix_set_trigger()
246 bus_space_write_1(ph->ph_iot, ph->ph_elcr_ioh, off, elcr); in piix_set_trigger()
259 elcr[0] = bus_space_read_1(ph->ph_iot, ph->ph_elcr_ioh, 0); in piix_pir_dump()
[all …]
H A Drccosb4.c71 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()
80 free(ph, M_DEVBUF, sizeof *ph); in osb4_init()
85 free(ph, M_DEVBUF, sizeof *ph); in osb4_init()
90 *phandp = ph; in osb4_init()
116 bus_space_write_1(ph->osb4_iot, ph->osb4_ioh, 0, link); in osb4_get_intr()
117 *irqp = bus_space_read_1(ph->osb4_iot, ph->osb4_ioh, 1) & 0xf; in osb4_get_intr()
133 bus_space_write_1(ph->osb4_iot, ph->osb4_ioh, 0, link); in osb4_set_intr()
[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()
153 *phandp = ph; in via8231_init()
165 struct via8231_handle *ph = v; in via8231_getclink() local
216 VIA8231_SET_ROUTING(ph, in via8231_set_intr()
302 a = VIA8231_GET_TRIGGER(ph); in via8231_pir_dump()
[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.c123 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()
157 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, VIPER_CFG_PIRQ); in opti82c558_get_intr()
174 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, VIPER_CFG_PIRQ); in opti82c558_set_intr()
178 pci_conf_write(ph->ph_pc, ph->ph_tag, VIPER_CFG_PIRQ, reg); in opti82c558_set_intr()
195 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, VIPER_CFG_PIRQ); in opti82c558_get_trigger()
216 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, VIPER_CFG_PIRQ); in opti82c558_set_trigger()
[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
155 struct viper_handle *ph = v; in amd756_set_intr() local
[all …]
H A Dopti82c700.c111 ph = malloc(sizeof(*ph), M_DEVBUF, M_NOWAIT); in opti82c700_init()
112 if (ph == NULL) in opti82c700_init()
121 *phandp = ph; in opti82c700_init()
199 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, addrofs); in opti82c700_get_intr()
221 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, addrofs); in opti82c700_set_intr()
224 pci_conf_write(ph->ph_pc, ph->ph_tag, addrofs, reg); in opti82c700_set_intr()
248 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, addrofs); in opti82c700_get_trigger()
264 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, addrofs); in opti82c700_get_trigger()
293 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, addrofs); in opti82c700_set_trigger()
303 pci_conf_write(ph->ph_pc, ph->ph_tag, addrofs, reg); in opti82c700_set_trigger()
[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/gnu/usr.bin/binutils/gdb/
H A Dproc-service.c75 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
192 ps_pdread (gdb_ps_prochandle_t ph, paddr_t addr, in ps_pdread() argument
234 inferior_ptid = BUILD_LWP (lwpid, ph->pid); in ps_lgetregs()
251 inferior_ptid = BUILD_LWP (lwpid, ph->pid); in ps_lsetregs()
270 inferior_ptid = BUILD_LWP (lwpid, ph->pid); in ps_lgetfpregs()
288 inferior_ptid = BUILD_LWP (lwpid, ph->pid); in ps_lsetfpregs()
302 ps_getpid (gdb_ps_prochandle_t ph) in ps_getpid() argument
[all …]
/openbsd/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/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
797 ph->flags = 0; in pccbb_pcmcia_attach_setup()
828 paa->pch = ph; in pccbb_pcmcia_attach_setup()
1008 bus_space_barrier(ph->ph_bus_t, ph->ph_bus_h, in pccbb_pcmcia_read()
1011 return bus_space_read_1(ph->ph_bus_t, ph->ph_bus_h, in pccbb_pcmcia_read()
1018 bus_space_barrier(ph->ph_bus_t, ph->ph_bus_h, in pccbb_pcmcia_write()
1795 win, (long)ph->io[win].addr, (long)ph->io[win].size,
1804 (ph->io[win].addr + ph->io[win].size - 1) & 0xff);
2003 ph->ph_parent->dv_xname, ph->sock,
[all …]
/openbsd/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
318 return (ph); in pr_find_pagehead()
810 freeph = ph; in pool_put()
947 arc4random_buf(&ph->ph_magic, sizeof(ph->ph_magic)); in pool_p_alloc()
979 return (ph); in pool_p_alloc()
1132 for (ph = TAILQ_FIRST(&pp->pr_emptypages); ph != NULL; ph = phnext) { in pool_reclaim()
1201 ph->ph_page, ph->ph_colored, ph->ph_nmissing); in pool_print_pagelist()
1346 pp, pp->pr_wchan, ph->ph_page, ph, page); in pool_chk_page()
1390 pp->pr_wchan, ph->ph_page, n, ph->ph_nmissing, in pool_chk_page()
[all …]
H A Dexec_elf.c174 diff = ph->p_vaddr - ELF_TRUNC(ph->p_vaddr, ph->p_align); in elf_load_psection()
177 - ELF_TRUNC(ph->p_vaddr, ph->p_align); in elf_load_psection()
180 base = *addr + trunc_page(ph->p_vaddr) - ph->p_vaddr; in elf_load_psection()
189 bdiff = ph->p_vaddr - trunc_page(ph->p_vaddr); in elf_load_psection()
403 if ((ph[i].p_align > 1) && !powerof2(ph[i].p_align)) { in elf_load_file()
409 if (ph[i].p_filesz > ph[i].p_memsz || in elf_load_file()
510 ELF_TRUNC(ph[i].p_vaddr,ph[i].p_align); in elf_load_file()
535 ph[i].p_memsz, ph[i].p_vaddr + pos, NULLVP, 0, 0); in elf_load_file()
542 ph[i].p_memsz, ph[i].p_vaddr + pos, NULLVP, 0, 0); in elf_load_file()
1075 for (ph = hph; ph < &hph[eh->e_phnum]; ph++) { in elf_os_pt_note()
[all …]
/openbsd/sys/arch/powerpc64/dev/
H A Dkexec.c92 Elf_Phdr *ph = NULL; in kexec_kexec() local
114 if (ph == NULL) { in kexec_kexec()
139 if (ph[i].p_type != PT_LOAD) in kexec_kexec()
143 end = MAX(end, ph[i].p_vaddr + ph[i].p_memsz); in kexec_kexec()
159 ph[i].p_filesz, ph[i].p_offset); in kexec_kexec()
164 if (ph[i].p_memsz > ph[i].p_filesz) { in kexec_kexec()
165 memset(addr + (ph[i].p_vaddr + ph[i].p_filesz) - start, in kexec_kexec()
166 0, ph[i].p_memsz - ph[i].p_filesz); in kexec_kexec()
176 arc4random_buf(addr + ph[i].p_vaddr - start, ph[i].p_filesz); in kexec_kexec()
247 if (ph) in kexec_kexec()
[all …]
/openbsd/sys/arch/octeon/dev/
H A Doctboot.c94 Elf_Phdr *ph = NULL; in octboot_kexec() local
134 if (ph == NULL) { 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()
189 arc4random_buf((caddr_t)ph[i].p_paddr, ph[i].p_filesz); in octboot_kexec()
193 if (ph[i].p_type != PT_LOAD) in octboot_kexec()
197 ph[i].p_filesz, ph[i].p_offset); in octboot_kexec()
202 if (ph[i].p_memsz > ph[i].p_filesz) { in octboot_kexec()
203 memset((caddr_t)ph[i].p_paddr + ph[i].p_filesz, in octboot_kexec()
204 0, ph[i].p_memsz - ph[i].p_filesz); in octboot_kexec()
[all …]
/openbsd/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>;
21 class ADDU_PH_MMR2_ENC : POOL32A_3R_FMT<"addu.ph", 0b00100001101>;
124 : POOL32A_2RSA5_FMT<"precr_sra.ph.w", 0b01111001101>;
126 : POOL32A_2RSA5_FMT<"precr_sra_r.ph.w", 0b11111001101>;
130 : POOL32A_3RB0_FMT<"precrqu_s.qb.ph", 0b0101101101>;
263 "shllv_s.ph", int_mips_shll_s_ph, NoItinerary, DSPROpnd>,
270 "shrav.ph", int_mips_shra_ph, NoItinerary, DSPROpnd>;
272 "shrav_r.ph", int_mips_shra_r_ph, NoItinerary, DSPROpnd>;
[all …]
/openbsd/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/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/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()
415 if (wb_preq((struct pkt_preq *)(ph + 1), len) >= 0) in wb_print()
[all …]
/openbsd/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/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()
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()
551 cremove(crd, ph, pnum--); in peg()
[all …]
/openbsd/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