Home
last modified time | relevance | path

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

1234

/mirbsd/src/sys/arch/i386/pci/
Dpiix.c115 struct piix_handle *ph; local
117 ph = malloc(sizeof(*ph), M_DEVBUF, M_NOWAIT);
118 if (ph == NULL)
121 ph->ph_iot = iot;
122 ph->ph_pc = pc;
123 ph->ph_tag = tag;
126 &ph->ph_elcr_ioh) != 0) {
127 free(ph, M_DEVBUF);
132 piix_pir_dump(ph);
135 *phandp = ph;
[all …]
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) \
Damd756.c118 struct viper_handle *ph; local
120 ph = malloc(sizeof(*ph), M_DEVBUF, M_NOWAIT);
121 if (ph == NULL)
124 ph->ph_iot = iot;
125 ph->ph_pc = pc;
126 ph->ph_tag = tag;
129 *phandp = ph;
132 amd756_pir_dump(ph);
155 struct viper_handle *ph = v; local
162 reg = AMD756_GET_PIIRQSEL(ph);
[all …]
Dopti82c558.c135 struct opti82c558_handle *ph; local
137 ph = malloc(sizeof(*ph), M_DEVBUF, M_NOWAIT);
138 if (ph == NULL)
141 ph->ph_pc = pc;
142 ph->ph_tag = tag;
145 *phandp = ph;
168 struct opti82c558_handle *ph = v; local
175 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, VIPER_CFG_PIRQ);
187 struct opti82c558_handle *ph = v; local
194 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, VIPER_CFG_PIRQ);
[all …]
Dopti82c700.c123 struct opti82c700_handle *ph; local
125 ph = malloc(sizeof(*ph), M_DEVBUF, M_NOWAIT);
126 if (ph == NULL)
129 ph->ph_pc = pc;
130 ph->ph_tag = tag;
132 opti82c700_pir_dump(ph);
135 *phandp = ph;
211 struct opti82c700_handle *ph = v; local
218 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, addrofs);
232 struct opti82c700_handle *ph = v; local
[all …]
Dvia8231.c155 struct via8231_handle *ph; local
157 ph = malloc(sizeof(*ph), M_DEVBUF, M_NOWAIT);
158 if (ph == NULL)
161 ph->ph_iot = iot;
162 ph->ph_pc = pc;
163 ph->ph_tag = tag;
166 *phandp = ph;
169 via8231_pir_dump("via8231_init", ph);
192 struct via8231_handle *ph = v; local
198 reg = VIA8231_GET_ROUTING(ph);
[all …]
Dvia8231reg.h66 #define VIA8231_GET_TRIGGER(ph) \ argument
67 ((pci_conf_read((ph)->ph_pc, (ph)->ph_tag, VIA8231_CFG_PIR) \
70 #define VIA8231_SET_TRIGGER(ph, n) \ argument
71 pci_conf_write((ph)->ph_pc, (ph)->ph_tag, VIA8231_CFG_PIR, \
72 (pci_conf_read((ph)->ph_pc, (ph)->ph_tag, VIA8231_CFG_PIR) \
80 #define VIA8231_GET_ROUTING(ph) \ argument
81 ((pci_conf_read((ph)->ph_pc, (ph)->ph_tag, VIA8231_CFG_PIR) \
84 #define VIA8231_SET_ROUTING(ph, n) \ argument
85 pci_conf_write((ph)->ph_pc, (ph)->ph_tag, VIA8231_CFG_PIR, \
86 (pci_conf_read((ph)->ph_pc, (ph)->ph_tag, VIA8231_CFG_PIR) \
Dvia82c586.c168 struct piix_handle *ph = v; local
175 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, VP3_CFG_PIRQ_REG);
188 struct piix_handle *ph = v; local
195 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, VP3_CFG_PIRQ_REG);
200 pci_conf_write(ph->ph_pc, ph->ph_tag, VP3_CFG_PIRQ_REG, reg);
213 struct piix_handle *ph = v; local
224 reg = pci_conf_read(ph->ph_pc, ph->ph_tag,
246 struct piix_handle *ph = v; local
256 reg = pci_conf_read(ph->ph_pc, ph->ph_tag,
262 pci_conf_write(ph->ph_pc, ph->ph_tag,
Dsis85c503.c141 struct piix_handle *ph = v; local
147 reg = pci_conf_read(ph->ph_pc, ph->ph_tag,
164 struct piix_handle *ph = v; local
171 reg = pci_conf_read(ph->ph_pc, ph->ph_tag,
177 pci_conf_write(ph->ph_pc, ph->ph_tag, SIS85C503_CFG_PIRQ_REGOFS(clink),
Dali1543.c192 struct piix_handle *ph = v; in ali1543_get_intr() local
199 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, ALI1543_INTR_CFG_REG); in ali1543_get_intr()
213 struct piix_handle *ph = v; in ali1543_set_intr() local
220 reg = pci_conf_read(ph->ph_pc, ph->ph_tag, ALI1543_INTR_CFG_REG); in ali1543_set_intr()
225 pci_conf_write(ph->ph_pc, ph->ph_tag, ALI1543_INTR_CFG_REG, reg); in ali1543_set_intr()
/mirbsd/src/gnu/usr.bin/binutils/gdb/
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 …]
Dsol-thread.c941 ps_pstop (gdb_ps_prochandle_t ph) in ps_pstop() argument
949 ps_pcontinue (gdb_ps_prochandle_t ph) in ps_pcontinue() argument
957 ps_lstop (gdb_ps_prochandle_t ph, lwpid_t lwpid) in ps_lstop() argument
965 ps_lcontinue (gdb_ps_prochandle_t ph, lwpid_t lwpid) in ps_lcontinue() argument
973 ps_pglobal_lookup (gdb_ps_prochandle_t ph, const char *ld_object_name, in ps_pglobal_lookup() argument
989 rw_common (int dowrite, const struct ps_prochandle *ph, gdb_ps_addr_t addr, in rw_common() argument
1062 ps_pdread (gdb_ps_prochandle_t ph, gdb_ps_addr_t addr, in ps_pdread() argument
1065 return rw_common (0, ph, addr, buf, size); in ps_pdread()
1071 ps_pdwrite (gdb_ps_prochandle_t ph, gdb_ps_addr_t addr, in ps_pdwrite() argument
1074 return rw_common (1, ph, addr, (char *) buf, size); in ps_pdwrite()
[all …]
/mirbsd/src/sys/dev/ic/
Dpcdisplayvar.h62 static inline u_int8_t _pcdisplay_6845_read(ph, reg) in _pcdisplay_6845_read() argument
63 struct pcdisplay_handle *ph; in _pcdisplay_6845_read()
66 bus_space_write_1(ph->ph_iot, ph->ph_ioh_6845, MC6845_INDEX, reg);
67 return (bus_space_read_1(ph->ph_iot, ph->ph_ioh_6845, MC6845_DATA));
70 static inline void _pcdisplay_6845_write(ph, reg, val) in _pcdisplay_6845_write() argument
71 struct pcdisplay_handle *ph; in _pcdisplay_6845_write()
75 bus_space_write_1(ph->ph_iot, ph->ph_ioh_6845, MC6845_INDEX, reg);
76 bus_space_write_1(ph->ph_iot, ph->ph_ioh_6845, MC6845_DATA, val);
79 #define pcdisplay_6845_read(ph, reg) \ argument
80 _pcdisplay_6845_read(ph, offsetof(struct reg_mc6845, reg))
[all …]
/mirbsd/src/sys/dev/pci/
Dpccbb.c100 #define Pcic_read(ph, reg) ((ph)->ph_read((ph), (reg))) argument
101 #define Pcic_write(ph, reg, val) ((ph)->ph_write((ph), (reg), (val))) argument
872 struct pcic_handle *ph = &sc->sc_pcmcia_h; local
878 ph->ph_parent = (struct device *)sc;
879 ph->sock = sc->sc_function;
880 ph->flags = 0;
881 ph->shutdown = 0;
882 ph->ih_irq = sc->sc_intrline;
883 ph->ph_bus_t = sc->sc_base_memt;
884 ph->ph_bus_h = sc->sc_base_memh;
[all …]
/mirbsd/src/distrib/common/
Delfrdsetroot.c85 Elf_Phdr *ph; in main() local
121 ph = (Elf_Phdr *)malloc(phsize); in main()
123 if (read(fd, (char *)ph, phsize) != phsize) { in main()
129 if (ph[n].p_type == PT_LOAD) in main()
130 found = find_rd_root_image(file, &eh, &ph[n], n); in main()
203 find_rd_root_image(char *file, Elf_Ehdr *eh, Elf_Phdr *ph, int segment) in find_rd_root_image() argument
211 kernel_start = ph->p_paddr; in find_rd_root_image()
212 kernel_size = ph->p_filesz; in find_rd_root_image()
215 rd_root_size_off -= (ph->p_vaddr - ph->p_paddr); in find_rd_root_image()
217 rd_root_image_off -= (ph->p_vaddr - ph->p_paddr); in find_rd_root_image()
[all …]
/mirbsd/src/sys/kern/
Dexec_elf.c244 Elf_Phdr *ph, Elf_Addr *addr, Elf_Addr *size, int *prot, int flags) in ELFNAME()
254 if (ph->p_align > 1) { in ELFNAME()
255 *addr = ELF_TRUNC(*addr, ph->p_align); in ELFNAME()
256 diff = ph->p_vaddr - ELF_TRUNC(ph->p_vaddr, ph->p_align); in ELFNAME()
258 base = *addr + trunc_page(ph->p_vaddr) in ELFNAME()
259 - ELF_TRUNC(ph->p_vaddr, ph->p_align); in ELFNAME()
261 bdiff = ph->p_vaddr - trunc_page(ph->p_vaddr); in ELFNAME()
266 *addr = uaddr = ph->p_vaddr; in ELFNAME()
267 if (ph->p_align > 1) in ELFNAME()
268 *addr = ELF_TRUNC(uaddr, ph->p_align); in ELFNAME()
[all …]
Dsubr_pool.c319 struct pool_item_header *ph, tmp; in pr_find_pagehead() local
325 ph = SPLAY_FIND(phtree, &pp->pr_phtree, &tmp); in pr_find_pagehead()
326 return ph; in pr_find_pagehead()
333 pr_rmpage(struct pool *pp, struct pool_item_header *ph, in pr_rmpage() argument
341 if (ph->ph_nmissing == 0) { in pr_rmpage()
356 LIST_REMOVE(ph, ph_pagelist); in pr_rmpage()
358 LIST_INSERT_HEAD(pq, ph, ph_pagelist); in pr_rmpage()
360 pool_allocator_free(pp, ph->ph_page); in pr_rmpage()
362 SPLAY_REMOVE(phtree, &pp->pr_phtree, ph); in pr_rmpage()
364 pool_put(&phpool, ph); in pr_rmpage()
[all …]
/mirbsd/src/usr.sbin/pppoe/
Ddebug.c48 struct pppoe_header ph; in debug_packet() local
81 if (len < sizeof(ph)) { in debug_packet()
85 memmove(&ph, pkt, sizeof(ph)); in debug_packet()
86 pkt += sizeof(ph); in debug_packet()
87 len -= sizeof(ph); in debug_packet()
88 ph.sessionid = ntohs(ph.sessionid); in debug_packet()
89 ph.len = ntohs(ph.len); in debug_packet()
91 if (ph.len <= len) in debug_packet()
92 len = ph.len; in debug_packet()
94 printf("missing (%d)\n", ph.len - len); in debug_packet()
[all …]
Dserver.c193 struct pppoe_header ph; in getpackets() local
226 memmove(&ph, mpkt, sizeof(struct pppoe_header)); in getpackets()
229 ph.len = ntohs(ph.len); in getpackets()
230 ph.sessionid = ntohs(ph.sessionid); in getpackets()
232 if (PPPOE_VER(ph.vertype) != 1 || in getpackets()
233 PPPOE_TYPE(ph.vertype) != 1) in getpackets()
236 if (len > ph.len) in getpackets()
237 len = ph.len; in getpackets()
241 switch (ph.code) { in getpackets()
243 recv_padi(bpffd, ea, &eh, &ph, len, mpkt); in getpackets()
[all …]
Dclient.c156 struct pppoe_header ph = { in send_padi() local
173 iov[3].iov_base = &ph; in send_padi()
174 iov[3].iov_len = sizeof(ph); in send_padi()
180 ph.len += sizeof(thost.type)+sizeof(thost.len)+sizeof(client_cookie); in send_padi()
190 ph.len += tserv.len + sizeof(tserv.type) + sizeof(tserv.len); in send_padi()
201 ph.len = htons(ph.len); in send_padi()
211 struct pppoe_header *ph, struct tag_list *tl) in send_padr() argument
228 ph->vertype = PPPOE_VERTYPE(1, 1); in send_padr()
229 ph->code = PPPOE_CODE_PADR; in send_padr()
230 ph->len = 0; in send_padr()
[all …]
Dcommon.c139 struct pppoe_header ph; in ppp_to_bpf() local
160 ph.vertype = PPPOE_VERTYPE(1, 1); in ppp_to_bpf()
161 ph.code = PPPOE_CODE_SESSION; in ppp_to_bpf()
162 ph.len = htons(r); in ppp_to_bpf()
163 ph.sessionid = htons(id); in ppp_to_bpf()
169 iov[3].iov_base = &ph; iov[3].iov_len = sizeof(ph); in ppp_to_bpf()
182 struct pppoe_header ph; in send_padt() local
191 iov[3].iov_base = &ph; in send_padt()
192 iov[3].iov_len = sizeof(ph); in send_padt()
194 ph.vertype = PPPOE_VERTYPE(1, 1); in send_padt()
[all …]
/mirbsd/src/usr.bin/elf2aout/
Delf2aout.c95 Elf32_Phdr *ph; in main() local
167 ph = (Elf32_Phdr *) saveRead(infile, ex.e_phoff, in main()
170 ph[i].p_type = ftoh32(ph[i].p_type); in main()
171 ph[i].p_offset = ftoh32(ph[i].p_offset); in main()
172 ph[i].p_vaddr = ftoh32(ph[i].p_vaddr); in main()
173 ph[i].p_paddr = ftoh32(ph[i].p_paddr); in main()
174 ph[i].p_filesz = ftoh32(ph[i].p_filesz); in main()
175 ph[i].p_memsz = ftoh32(ph[i].p_memsz); in main()
176 ph[i].p_flags = ftoh32(ph[i].p_flags); in main()
177 ph[i].p_align = ftoh32(ph[i].p_align); in main()
[all …]
/mirbsd/src/gnu/usr.bin/perl/h2pl/
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} )
/mirbsd/src/usr.sbin/mrouted/
Dcfparse.y243 struct phaddr *ph; variable
245 ph = (struct phaddr *)malloc(sizeof(struct phaddr));
246 if (ph == NULL)
249 VAL_TO_MASK(ph->pa_subnetmask, $2.mask);
251 ph->pa_subnetmask = v->uv_subnetmask;
252 ph->pa_subnet = $2.addr & ph->pa_subnetmask;
253 ph->pa_subnetbcast = ph->pa_subnet | ~ph->pa_subnetmask;
254 if ($2.addr & ~ph->pa_subnetmask)
257 ph->pa_next = v->uv_addrs;
258 v->uv_addrs = ph;
/mirbsd/src/sys/dev/isa/
Di82365_isasubr.c272 struct pcic_handle *ph = &sc->handle[0]; local
288 saved_csc_intr = pcic_read(ph, PCIC_CSC_INTR);
320 pcic_write(ph, PCIC_CSC_INTR,
327 pcic_write(ph, PCIC_CARD_DETECT,
328 pcic_read(ph, PCIC_CARD_DETECT) |
340 pcic_read(ph, PCIC_CSC);
355 pcic_write(ph, PCIC_CSC_INTR, saved_csc_intr);

1234