Home
last modified time | relevance | path

Searched refs:iop (Results 1 – 25 of 34) sorted by relevance

12

/freebsd/usr.sbin/bhyve/amd64/
H A Dinout.c86 struct inout_port iop; in register_default_iohandler() local
90 bzero(&iop, sizeof(iop)); in register_default_iohandler()
91 iop.name = "default"; in register_default_iohandler()
92 iop.port = start; in register_default_iohandler()
93 iop.size = size; in register_default_iohandler()
94 iop.flags = IOPORT_F_INOUT | IOPORT_F_DEFAULT; in register_default_iohandler()
95 iop.handler = default_inout; in register_default_iohandler()
97 register_inout(&iop); in register_default_iohandler()
237 struct inout_port **iopp, *iop; in init_inout() local
248 iop = *iopp; in init_inout()
[all …]
H A Dfwctl.c554 struct inout_port iop; in fwctl_init() local
557 bzero(&iop, sizeof(iop)); in fwctl_init()
558 iop.name = "fwctl_wreg"; in fwctl_init()
559 iop.port = FWCTL_OUT; in fwctl_init()
560 iop.size = 1; in fwctl_init()
561 iop.flags = IOPORT_F_INOUT; in fwctl_init()
562 iop.handler = fwctl_handler; in fwctl_init()
564 error = register_inout(&iop); in fwctl_init()
567 bzero(&iop, sizeof(iop)); in fwctl_init()
568 iop.name = "fwctl_rreg"; in fwctl_init()
[all …]
H A Datkbdc.c514 struct inout_port iop; in atkbdc_init() local
523 bzero(&iop, sizeof(struct inout_port)); in atkbdc_init()
524 iop.name = "atkdbc"; in atkbdc_init()
525 iop.port = KBD_STS_CTL_PORT; in atkbdc_init()
526 iop.size = 1; in atkbdc_init()
527 iop.flags = IOPORT_F_INOUT; in atkbdc_init()
528 iop.handler = atkbdc_sts_ctl_handler; in atkbdc_init()
529 iop.arg = sc; in atkbdc_init()
531 error = register_inout(&iop); in atkbdc_init()
534 bzero(&iop, sizeof(struct inout_port)); in atkbdc_init()
[all …]
H A Dpci_lpc.c248 struct inout_port iop; in lpc_init() local
278 bzero(&iop, sizeof(struct inout_port)); in lpc_init()
279 iop.name = name; in lpc_init()
280 iop.port = sc->iobase; in lpc_init()
281 iop.size = UART_NS16550_IO_BAR_SIZE; in lpc_init()
282 iop.flags = IOPORT_F_INOUT; in lpc_init()
283 iop.handler = lpc_uart_io_handler; in lpc_init()
284 iop.arg = sc; in lpc_init()
286 error = register_inout(&iop); in lpc_init()
H A Dinout.h75 int register_inout(struct inout_port *iop);
76 int unregister_inout(struct inout_port *iop);
H A Dvga.c1268 struct inout_port iop; in vga_init() local
1274 bzero(&iop, sizeof(struct inout_port)); in vga_init()
1275 iop.name = "VGA"; in vga_init()
1277 iop.port = port; in vga_init()
1278 iop.size = 1; in vga_init()
1279 iop.flags = IOPORT_F_INOUT; in vga_init()
1280 iop.handler = vga_port_handler; in vga_init()
1281 iop.arg = sc; in vga_init()
1283 error = register_inout(&iop); in vga_init()
/freebsd/lib/libc/stdio/
H A Dprintfcommon.h73 io_init(struct io_state *iop, FILE *fp) in io_init() argument
76 iop->uio.uio_iov = iop->iov; in io_init()
77 iop->uio.uio_resid = 0; in io_init()
78 iop->uio.uio_iovcnt = 0; in io_init()
79 iop->fp = fp; in io_init()
87 io_print(struct io_state *iop, const CHAR * __restrict ptr, int len, locale_t locale) in io_print() argument
90 iop->iov[iop->uio.uio_iovcnt].iov_base = (char *)ptr; in io_print()
91 iop->iov[iop->uio.uio_iovcnt].iov_len = len; in io_print()
92 iop->uio.uio_resid += len; in io_print()
93 if (++iop->uio.uio_iovcnt >= NIOV) in io_print()
[all …]
H A Dfsetpos.c42 fsetpos(FILE *iop, const fpos_t *pos) in fsetpos() argument
44 return (fseeko(iop, (off_t)*pos, SEEK_SET)); in fsetpos()
H A Dvfprintf.c122 grouping_print(struct grouping_state *gs, struct io_state *iop, in grouping_print() argument
127 if (io_printandpad(iop, cp, ep, gs->lead, zeroes, locale)) in grouping_print()
137 if (io_print(iop, gs->thousands_sep, gs->thousep_len, locale)) in grouping_print()
139 if (io_printandpad(iop, cp, ep, *gs->grouping, zeroes, locale)) in grouping_print()
/freebsd/sys/dev/pst/
H A Dpst-raid.c54 #include "dev/pst/pst-iop.h"
59 struct iop_softc *iop; member
100 psc->iop = sc; in pst_add_raid()
122 if (!(reply = iop_get_util_params(psc->iop, psc->lct->local_tid, in pst_attach()
135 if (!(reply = iop_get_util_params(psc->iop, psc->lct->local_tid, in pst_attach()
172 device_get_nameunit(psc->iop->dev)); in pst_attach()
188 psc->iop->reg->oqueue_intr_mask = 0xffffffff; in pst_shutdown_post_sync()
191 mfa = iop_get_mfa(psc->iop); in pst_shutdown_post_sync()
192 msg = (struct i2o_bsa_cache_flush_message *)(psc->iop->ibase + mfa); in pst_shutdown_post_sync()
201 if (iop_queue_wait_msg(psc->iop, mf in pst_shutdown_post_sync()
[all...]
/freebsd/lib/libc/gen/
H A Dpopen.c67 FILE *iop; in popen() local
97 iop = fdopen(pdes[0], type); in popen()
100 iop = fdopen(pdes[1], type); in popen()
103 if (iop == NULL) { in popen()
126 (void)fclose(iop); in popen()
166 cur->fp = iop; in popen()
178 (void)_fcntl(fileno(iop), F_SETFD, 0); in popen()
180 return (iop); in popen()
189 pclose(FILE *iop) in pclose() argument
200 if (cur->fp == iop) in pclose()
[all …]
/freebsd/libexec/ftpd/
H A Dpopen.c67 FILE *iop; in ftpd_popen() local
110 iop = NULL; in ftpd_popen()
156 iop = fdopen(pdes[0], type); in ftpd_popen()
159 iop = fdopen(pdes[1], type); in ftpd_popen()
162 pids[fileno(iop)] = pid; in ftpd_popen()
167 return (iop); in ftpd_popen()
171 ftpd_pclose(FILE *iop) in ftpd_pclose() argument
180 if (pids == NULL || pids[fdes = fileno(iop)] == 0) in ftpd_pclose()
182 (void)fclose(iop); in ftpd_pclose()
H A Dftpcmd.y1157 get_line(char *s, int n, FILE *iop)
1181 while ((c = getc(iop)) != EOF) {
1184 if ((c = getc(iop)) == EOF)
1190 if ((c = getc(iop)) == EOF)
1197 if ((c = getc(iop)) == EOF)
1216 while (c != '\n' && (c = getc(iop)) != EOF)
/freebsd/crypto/heimdal/appl/ftp/ftpd/
H A Dpopen.c104 FILE *iop; in ftpd_popen() local
162 iop = NULL; in ftpd_popen()
192 iop = fdopen(pdes[0], type); in ftpd_popen()
195 iop = fdopen(pdes[1], type); in ftpd_popen()
198 pids[fileno(iop)] = pid; in ftpd_popen()
205 return (iop); in ftpd_popen()
209 ftpd_pclose(FILE *iop) in ftpd_pclose() argument
219 if (pids == 0 || pids[fdes = fileno(iop)] == 0) in ftpd_pclose()
221 fclose(iop); in ftpd_pclose()
/freebsd/usr.sbin/cron/cron/
H A Dpopen.c51 FILE *iop; in cron_popen() local
101 iop = NULL; in cron_popen()
194 iop = fdopen(pdes[0], type); in cron_popen()
197 iop = fdopen(pdes[1], type); in cron_popen()
200 pids[fileno(iop)] = pid; in cron_popen()
212 return (iop); in cron_popen()
216 cron_pclose(FILE *iop) in cron_pclose() argument
227 if (pids == 0 || pids[fdes = fileno(iop)] == 0) in cron_pclose()
229 (void)fclose(iop); in cron_pclose()
/freebsd/contrib/blocklist/port/
H A Dpopenve.c156 FILE *iop; in pdes_parent() local
160 iop = fdopen(pdes[0], type); in pdes_parent()
166 iop = fdopen(pdes[1], type); in pdes_parent()
174 cur->fp = iop; in pdes_parent()
233 pcloseve(FILE *iop) in pcloseve() argument
245 if (cur->fp == iop) in pcloseve()
255 (void)fclose(iop); in pcloseve()
/freebsd/usr.sbin/bhyve/
H A Dqemu_fwcfg.c305 struct inout_port iop; in qemu_fwcfg_register_port() local
307 bzero(&iop, sizeof(iop)); in qemu_fwcfg_register_port()
308 iop.name = name; in qemu_fwcfg_register_port()
309 iop.port = port; in qemu_fwcfg_register_port()
310 iop.size = size; in qemu_fwcfg_register_port()
311 iop.flags = flags; in qemu_fwcfg_register_port()
312 iop.handler = handler; in qemu_fwcfg_register_port()
314 return (register_inout(&iop)); in qemu_fwcfg_register_port()
H A Dpci_emul.c648 struct inout_port iop; in modify_bar_registration() local
650 bzero(&iop, sizeof(struct inout_port)); in modify_bar_registration()
651 iop.name = pi->pi_name; in modify_bar_registration()
652 iop.port = pi->pi_bar[idx].addr; in modify_bar_registration()
653 iop.size = pi->pi_bar[idx].size; in modify_bar_registration()
655 iop.flags = IOPORT_F_INOUT; in modify_bar_registration()
656 iop.handler = pci_emul_io_handler; in modify_bar_registration()
657 iop.arg = pi; in modify_bar_registration()
658 error = register_inout(&iop); in modify_bar_registration()
660 error = unregister_inout(&iop); in modify_bar_registration()
/freebsd/sys/cam/
H A Dcam_iosched.c1936 cam_iosched_devctl_outlier(struct iop_stats *iop, sbintime_t sim_latency, in cam_iosched_devctl_outlier() argument
1940 daddr_t cnt = bp->bio_bcount / iop->softc->disk->d_sectorsize; in cam_iosched_devctl_outlier()
1950 iop->softc->periph->periph_name, in cam_iosched_devctl_outlier()
1951 iop->softc->periph->unit_number, in cam_iosched_devctl_outlier()
1960 cam_iosched_update(struct iop_stats *iop, sbintime_t sim_latency, in cam_iosched_update() argument
1970 if (sim_latency > iop->bad_latency) { in cam_iosched_update()
1971 cam_iosched_devctl_outlier(iop, sim_latency, bp); in cam_iosched_update()
1972 iop->too_long++; in cam_iosched_update()
1981 iop->latencies[i]++; in cam_iosched_update()
1986 iop->latencies[i]++; /* Put all > 8192ms values into the last bucket. */ in cam_iosched_update()
[all …]
/freebsd/usr.sbin/autofs/
H A Dpopen.c146 auto_pclose(FILE *iop) in auto_pclose() argument
156 if (cur->outfp == iop) in auto_pclose()
H A Dcommon.h104 int auto_pclose(FILE *iop);
/freebsd/contrib/mandoc/
H A Dterm_ascii.c162 ascii_setwidth(struct termp *p, int iop, int width) in ascii_setwidth() argument
167 if (iop > 0) in ascii_setwidth()
169 else if (iop == 0) in ascii_setwidth()
H A Dterm.c929 int iop, width; in term_setwidth() local
931 iop = 0; in term_setwidth()
936 iop = 1; in term_setwidth()
940 iop = -1; in term_setwidth()
949 iop = 0; in term_setwidth()
951 (*p->setwidth)(p, iop, width); in term_setwidth()
/freebsd/tools/tools/indent_wrapper/
H A Dindent_wrapper.c264 cmd_popen(char *command, FILE **iop) in cmd_popen() argument
300 iop[0] = fdopen(pdes[3], "w"); in cmd_popen()
301 iop[1] = fdopen(pdes[0], "r"); in cmd_popen()
306 iop[0] = iop[1] = NULL; in cmd_popen()
/freebsd/sys/modules/pst/
H A DMakefile4 SRCS= pst-pci.c pst-iop.c pst-raid.c

12