bin/csh/sem.c
624
if (pipe(pv) < 0)
bin/ksh/io.c
289
if (pipe(pv) < 0)
bin/pax/ar_io.c
1583
if (pipe(fds) < 0)
bin/sh/cd.c
517
if (pipe(pip) < 0)
bin/sh/eval.c
156
if (pipe(fds))
bin/sh/redir.c
514
if (pipe(pip) < 0)
games/sail/dr_main.c
138
if (pipe(fds)) {
include/unistd.h
130
int pipe(int *);
lib/libc/gen/wordexp.c
114
if (pipe(pdes) < 0) {
lib/libisns/isns.c
73
if ((rval = pipe(cfg_p->pipe_fds)) != 0) {
lib/libpam/modules/pam_ssh/pam_ssh.c
291
if (pipe(agent_pipe) == -1)
lib/libpuffs/puffs.c
447
if (pipe(pu->pu_dpipe) == -1)
lib/librmt/rmtlib.c
333
if (pipe(Ptc[i]) == -1 || pipe(Ctp[i]) == -1)
lib/librumphijack/hijack.c
2240
if (rv == 0 && (rv = pipe(hpipe)) == -1) {
libexec/fingerd/fingerd.c
196
if (pipe(p) < 0)
libexec/ftpd/popen.c
128
if (pipe(pdes) < 0)
libexec/makewhatis/makewhatis.c
808
if (pipe(pipefd) == -1) {
libexec/rexecd/rexecd.c
268
if (pipe(pv) < 0 || (pid = fork()) == -1) {
libexec/rshd/rshd.c
560
if (pipe(pv) < 0)
regress/sys/kern/dislodgefd/dislodgefd.c
62
if (pipe(fds))
regress/sys/kern/latency1/latency1.c
100
if (pipe(fds)) {
regress/sys/kern/select/select.c
189
if (pipe(fds[i])) {
sbin/mount/mount.c
490
if (pipe(pfd) == -1)
share/doc/psd/20.ipctut/pipe.c
1
.\" $NetBSD: pipe.c,v 1.3 2003/08/07 10:30:50 agc Exp $
share/doc/psd/20.ipctut/pipe.c
30
.\" @(#)pipe.c 8.1 (Berkeley) 6/8/93
share/doc/psd/20.ipctut/pipe.c
49
if (pipe(sockets) < 0) {
sys/arch/mips/adm5120/dev/ahci.c
1009
struct usbd_pipe *pipe = xfer->ux_pipe;
sys/arch/mips/adm5120/dev/ahci.c
1026
MS_TO_TICKS(pipe->up_endpoint->ue_edesc->bInterval),
sys/arch/mips/adm5120/dev/ahci.c
1041
struct usbd_pipe *pipe = xfer->ux_pipe;
sys/arch/mips/adm5120/dev/ahci.c
1050
MS_TO_TICKS(pipe->up_endpoint->ue_edesc->bInterval),
sys/arch/mips/adm5120/dev/ahci.c
1054
pid = (UE_GET_DIR(pipe->up_endpoint->ue_edesc->bEndpointAddress) == UE_DIR_IN)
sys/arch/mips/adm5120/dev/ahci.c
1058
r = ahci_transaction(sc, pipe, pid, xfer->ux_length, buf, 0/*toggle*/);
sys/arch/mips/adm5120/dev/ahci.c
1092
ahci_device_intr_close(struct usbd_pipe *pipe)
sys/arch/mips/adm5120/dev/ahci.c
1124
ahci_device_isoc_close(struct usbd_pipe *pipe)
sys/arch/mips/adm5120/dev/ahci.c
1153
struct usbd_pipe *pipe = xfer->ux_pipe;
sys/arch/mips/adm5120/dev/ahci.c
1187
endpt = pipe->up_endpoint->ue_edesc->bEndpointAddress;
sys/arch/mips/adm5120/dev/ahci.c
1188
ep->control = pipe->up_dev->ud_addr | ((endpt & 0xf) << ADMHCD_ED_EPSHIFT)|\
sys/arch/mips/adm5120/dev/ahci.c
1189
((pipe->up_dev->ud_speed==USB_SPEED_FULL)?ADMHCD_ED_SPEED:0) | \
sys/arch/mips/adm5120/dev/ahci.c
1190
((UGETW(pipe->up_endpoint->ue_edesc->wMaxPacketSize))<<ADMHCD_ED_MAXSHIFT);
sys/arch/mips/adm5120/dev/ahci.c
1309
ahci_device_bulk_close(struct usbd_pipe *pipe)
sys/arch/mips/adm5120/dev/ahci.c
1329
ahci_transaction(struct ahci_softc *sc, struct usbd_pipe *pipe,
sys/arch/mips/adm5120/dev/ahci.c
1343
uint8_t devaddr = pipe->up_dev->ud_addr;
sys/arch/mips/adm5120/dev/ahci.c
1344
uint8_t endpointaddr = pipe->up_endpoint->ue_edesc->bEndpointAddress;
sys/arch/mips/adm5120/dev/ahci.c
1370
if ((sc->sc_fullspeed) && pipe->up_dev->ud_speed == USB_SPEED_LOW) {
sys/arch/mips/adm5120/dev/ahci.c
1447
ahci_device_clear_toggle(struct usbd_pipe *pipe)
sys/arch/mips/adm5120/dev/ahci.c
1449
struct ahci_pipe *apipe = (struct ahci_pipe *)pipe;
sys/arch/mips/adm5120/dev/ahci.c
223
struct usbd_pipe pipe;
sys/arch/mips/adm5120/dev/ahci.c
355
ahci_open(struct usbd_pipe *pipe)
sys/arch/mips/adm5120/dev/ahci.c
357
struct usbd_device *dev = pipe->up_dev;
sys/arch/mips/adm5120/dev/ahci.c
358
struct ahci_pipe *apipe = (struct ahci_pipe *)pipe;
sys/arch/mips/adm5120/dev/ahci.c
359
usb_endpoint_descriptor_t *ed = pipe->up_endpoint->ue_edesc;
sys/arch/mips/adm5120/dev/ahci.c
370
pipe->up_methods = &roothub_ctrl_methods;
sys/arch/mips/adm5120/dev/ahci.c
373
pipe->up_methods = &ahci_root_intr_methods;
sys/arch/mips/adm5120/dev/ahci.c
383
pipe->up_methods = &ahci_device_ctrl_methods;
sys/arch/mips/adm5120/dev/ahci.c
387
pipe->up_methods = &ahci_device_intr_methods;
sys/arch/mips/adm5120/dev/ahci.c
391
pipe->up_methods = &ahci_device_isoc_methods;
sys/arch/mips/adm5120/dev/ahci.c
395
pipe->up_methods = &ahci_device_bulk_methods;
sys/arch/mips/adm5120/dev/ahci.c
415
#define AHCI_PIPE2SC(pipe) AHCI_BUS2SC((pipe)->up_dev->ud_bus)
sys/arch/mips/adm5120/dev/ahci.c
417
#define AHCI_APIPE2SC(ap) AHCI_BUS2SC((d)->pipe.up_dev->ud_bus)
sys/arch/mips/adm5120/dev/ahci.c
551
ahci_noop(struct usbd_pipe *pipe)
sys/arch/mips/adm5120/dev/ahci.c
782
ahci_root_intr_close(struct usbd_pipe *pipe)
sys/arch/mips/adm5120/dev/ahci.c
784
struct ahci_softc *sc __diagused = AHCI_PIPE2SC(pipe);
sys/arch/mips/adm5120/dev/ahci.c
832
struct usbd_pipe *pipe = xfer->ux_pipe;
sys/arch/mips/adm5120/dev/ahci.c
869
ep->control = pipe->up_dev->ud_addr | \
sys/arch/mips/adm5120/dev/ahci.c
870
((pipe->up_dev->ud_speed==USB_SPEED_FULL)?ADMHCD_ED_SPEED:0) | \
sys/arch/mips/adm5120/dev/ahci.c
871
((UGETW(pipe->up_endpoint->ue_edesc->wMaxPacketSize))<<ADMHCD_ED_MAXSHIFT);
sys/arch/mips/adm5120/dev/ahci.c
985
ahci_device_ctrl_close(struct usbd_pipe *pipe)
sys/dev/ic/sl811hs.c
1021
slhci_open(struct usbd_pipe *pipe)
sys/dev/ic/sl811hs.c
1031
dev = pipe->up_dev;
sys/dev/ic/sl811hs.c
1032
sc = SLHCI_PIPE2SC(pipe);
sys/dev/ic/sl811hs.c
1033
spipe = SLHCI_PIPE2SPIPE(pipe);
sys/dev/ic/sl811hs.c
1034
ed = pipe->up_endpoint->ue_edesc;
sys/dev/ic/sl811hs.c
1080
pipe->up_interval = 0;
sys/dev/ic/sl811hs.c
1081
pipe->up_methods = &roothub_ctrl_methods;
sys/dev/ic/sl811hs.c
1085
pipe->up_interval = 1;
sys/dev/ic/sl811hs.c
1086
pipe->up_methods = &slhci_root_methods;
sys/dev/ic/sl811hs.c
1098
pipe->up_interval = 0;
sys/dev/ic/sl811hs.c
1102
if (pipe->up_interval == USBD_DEFAULT_INTERVAL)
sys/dev/ic/sl811hs.c
1103
pipe->up_interval = ed->bInterval;
sys/dev/ic/sl811hs.c
1110
pipe->up_interval = 0;
sys/dev/ic/sl811hs.c
1115
pipe->up_interval, 0,0);
sys/dev/ic/sl811hs.c
1117
pipe->up_methods = __UNCONST(&slhci_pipe_methods);
sys/dev/ic/sl811hs.c
1346
slhci_close(struct usbd_pipe *pipe)
sys/dev/ic/sl811hs.c
1352
sc = SLHCI_PIPE2SC(pipe);
sys/dev/ic/sl811hs.c
1353
spipe = SLHCI_PIPE2SPIPE(pipe);
sys/dev/ic/sl811hs.c
1362
slhci_clear_toggle(struct usbd_pipe *pipe)
sys/dev/ic/sl811hs.c
1367
spipe = SLHCI_PIPE2SPIPE(pipe);
sys/dev/ic/sl811hs.c
1377
*)pipe->up_dev->ud_bus;
sys/dev/ic/sl811hs.c
2078
int i = spipe->pipe.up_interval;
sys/dev/ic/sl811hs.c
2162
spipe->pipe.up_interval;
sys/dev/ic/sl811hs.c
2169
spipe->pipe.up_interval;
sys/dev/ic/sl811hs.c
2421
if (spipe->pipe.up_interval)
sys/dev/ic/sl811hs.c
255
struct usbd_pipe pipe;
sys/dev/ic/sl811hs.c
2567
struct usbd_pipe *pipe;
sys/dev/ic/sl811hs.c
2570
pipe = &spipe->pipe;
sys/dev/ic/sl811hs.c
2574
else if (pipe->up_interval && !slhci_reserve_bustime(sc, spipe, 1))
sys/dev/ic/sl811hs.c
2586
struct usbd_pipe *pipe;
sys/dev/ic/sl811hs.c
2588
pipe = &spipe->pipe;
sys/dev/ic/sl811hs.c
2590
if (pipe->up_interval && spipe->ptype != PT_ROOT_INTR)
sys/dev/ic/sl811hs.c
2627
spipe->pipe.up_repeat = 0; /* XXX timeout? */
sys/dev/ic/sl811hs.c
2744
spipe->pipe.up_repeat = 0;
sys/dev/ic/sl811hs.c
2745
spipe->pipe.up_aborting = 1;
sys/dev/ic/sl811hs.c
281
#define SLHCI_PIPE2SC(pipe) SLHCI_BUS2SC((pipe)->up_dev->ud_bus)
sys/dev/ic/sl811hs.c
284
#define SLHCI_PIPE2SPIPE(pipe) ((struct slhci_pipe *)(pipe))
sys/dev/ic/sl811hs.c
2868
spipe->pipe.up_aborting = 0;
sys/dev/ic/sl811hs.c
2967
max_packet = UGETW(spipe->pipe.up_endpoint->ue_edesc->wMaxPacketSize);
sys/dev/ic/sl811hs.c
860
struct usbd_pipe *pipe = xfer->ux_pipe;
sys/dev/ic/sl811hs.c
861
struct slhci_pipe *spipe = SLHCI_PIPE2SPIPE(pipe);
sys/dev/ic/sl811hs.c
863
usb_endpoint_descriptor_t *ed = pipe->up_endpoint->ue_edesc;
sys/dev/ic/sl811hs.c
885
spipe->tregs[DEV] = pipe->up_dev->ud_addr;
sys/dev/ic/sl811hs.c
903
spipe->pipe.up_interval;
sys/dev/ic/sl811hs.c
965
UL_SLASSERT(pipe->up_dev->ud_speed == USB_SPEED_FULL, sc,
sys/dev/pci/auich.c
1053
auich_halt_pipe(struct auich_softc *sc, int pipe)
sys/dev/pci/auich.c
1058
bus_space_write_1(sc->iot, sc->aud_ioh, pipe + ICH_CTRL, 0);
sys/dev/pci/auich.c
1060
status = bus_space_read_4(sc->iot, sc->aud_ioh, pipe + ICH_STS);
sys/dev/pci/auich.c
1065
bus_space_write_1(sc->iot, sc->aud_ioh, pipe + ICH_CTRL, ICH_RR);
sys/dev/pci/auich.c
1324
auich_trigger_pipe(struct auich_softc *sc, int pipe, struct auich_ring *ring)
sys/dev/pci/auich.c
1342
bus_space_write_1(sc->iot, sc->aud_ioh, pipe + ICH_LVI,
sys/dev/pci/auich.c
1344
bus_space_write_1(sc->iot, sc->aud_ioh, pipe + ICH_CTRL,
sys/dev/pci/auich.c
1349
auich_intr_pipe(struct auich_softc *sc, int pipe, struct auich_ring *ring)
sys/dev/pci/auich.c
1356
nqptr = bus_space_read_1(sc->iot, sc->aud_ioh, pipe + ICH_CIV);
sys/dev/pci/auich.c
1377
bus_space_write_1(sc->iot, sc->aud_ioh, pipe + ICH_LVI,
sys/dev/pci/igma/igmafb.c
379
int pipe = cd->use_pipe;
sys/dev/pci/igma/igmafb.c
382
r = co->read_reg(cd, PIPE_HTOTAL(pipe));
sys/dev/pci/igma/igmafb.c
384
r = co->read_reg(cd, PIPE_VTOTAL(pipe));
sys/dev/pci/igma/igmafb.c
392
r = co->read_reg(cd, PF_WINSZ(pipe));
sys/dev/pci/igma/igmafb.c
410
int pipe = cd->use_pipe;
sys/dev/pci/igma/igmafb.c
428
co->write_reg(cd, PF_WINPOS(pipe),
sys/dev/pci/igma/igmafb.c
430
co->write_reg(cd, PF_WINSZ(pipe),
sys/dev/pci/igma/igmafb.c
434
co->write_reg(cd, PIPE_SRCSZ(pipe),
sys/dev/pci/igma/igmafb.c
438
co->write_reg(cd, PIPE_CONF(pipe),
sys/dev/pci/igma/igmafb.c
442
r = co->read_reg(cd, PRI_CTRL(pipe));
sys/dev/pci/igma/igmafb.c
445
co->write_reg(cd, PRI_CTRL(pipe), r | cd->pri_cntrl);
sys/dev/pci/igma/igmafb.c
446
co->write_reg(cd, PRI_LINOFF(pipe), 0);
sys/dev/pci/igma/igmafb.c
447
co->write_reg(cd, PRI_STRIDE(pipe), sc->sc_stride);
sys/dev/pci/igma/igmafb.c
448
co->write_reg(cd, PRI_SURF(pipe), 0);
sys/dev/pci/igma/igmafb.c
449
co->write_reg(cd, PRI_TILEOFF(pipe), 0);
sys/dev/pci/igma/igmafb.c
458
co->write_reg(cd, PRI_CTRL(pipe), 0 | cd->pri_cntrl);
sys/dev/pci/igma/igmafb.c
459
co->write_reg(cd, PRI_LINOFF(pipe), 0);
sys/dev/pci/igma/igmafb.c
460
co->write_reg(cd, PRI_STRIDE(pipe), 2560);
sys/dev/pci/igma/igmafb.c
461
co->write_reg(cd, PRI_SURF(pipe), 0);
sys/dev/pci/igma/igmafb.c
462
co->write_reg(cd, PRI_TILEOFF(pipe), 0);
sys/dev/pci/igma/igmafb.c
465
co->write_reg(cd, PIPE_SRCSZ(pipe),
sys/dev/pci/igma/igmafb.c
469
co->write_reg(cd, PIPE_CONF(pipe), 0);
sys/dev/pci/igma/igmafb.c
472
if ((co->read_reg(cd, PIPE_CONF(pipe)) & PIPE_CONF_STATE) == 0)
sys/dev/pci/igma/igmafb.c
483
co->write_reg(cd, PF_WINPOS(pipe),
sys/dev/pci/igma/igmafb.c
485
co->write_reg(cd, PF_WINSZ(pipe),
sys/dev/pci/igma/igmafb.c
500
co->write_reg(cd, PIPE_CONF(pipe),
sys/dev/pci/igma/igmafb.c
510
int pipe = cd->use_pipe;
sys/dev/pci/igma/igmafb.c
517
cntrl = co->read_reg(cd, CUR_CNTR(pipe));
sys/dev/pci/igma/igmafb.c
518
co->write_reg(cd, CUR_CNTR(pipe), 1<<5 | 0x07);
sys/dev/pci/igma/igmafb.c
523
co->write_reg(cd, CUR_CNTR(pipe), cntrl);
sys/dev/pci/igma/igmafb.c
524
co->write_reg(cd, CUR_BASE(pipe),
sys/dev/pci/igma/igmafb.c
525
co->read_reg(cd, CUR_BASE(pipe)));
sys/dev/sbus/dbri.c
1163
pipe_setup(struct dbri_softc *sc, int pipe, int sdp)
sys/dev/sbus/dbri.c
1165
DPRINTF("pipe setup: %d\n", pipe);
sys/dev/sbus/dbri.c
1166
if (pipe < 0 || pipe >= DBRI_PIPE_MAX) {
sys/dev/sbus/dbri.c
1168
pipe);
sys/dev/sbus/dbri.c
1180
sdp |= DBRI_PIPE(pipe);
sys/dev/sbus/dbri.c
1182
sc->sc_pipe[pipe].sdp = sdp;
sys/dev/sbus/dbri.c
1183
sc->sc_pipe[pipe].desc = -1;
sys/dev/sbus/dbri.c
1185
pipe_reset(sc, pipe);
sys/dev/sbus/dbri.c
1191
pipe_reset(struct dbri_softc *sc, int pipe)
sys/dev/sbus/dbri.c
1198
if (pipe < 0 || pipe >= DBRI_PIPE_MAX) {
sys/dev/sbus/dbri.c
1200
pipe);
sys/dev/sbus/dbri.c
1204
sdp = sc->sc_pipe[pipe].sdp;
sys/dev/sbus/dbri.c
1207
pipe);
sys/dev/sbus/dbri.c
1217
desc = sc->sc_pipe[pipe].desc;
sys/dev/sbus/dbri.c
1228
sc->sc_pipe[pipe].desc = -1;
sys/dev/sbus/dbri.c
1234
pipe_receive_fixed(struct dbri_softc *sc, int pipe, volatile uint32_t *prec)
sys/dev/sbus/dbri.c
1237
if (pipe < DBRI_PIPE_MAX / 2 || pipe >= DBRI_PIPE_MAX) {
sys/dev/sbus/dbri.c
1239
pipe);
sys/dev/sbus/dbri.c
1243
if (DBRI_SDP_MODE(sc->sc_pipe[pipe].sdp) != DBRI_SDP_FIXED) {
sys/dev/sbus/dbri.c
1245
pipe);
sys/dev/sbus/dbri.c
1249
if (sc->sc_pipe[pipe].sdp & DBRI_SDP_TO_SER) {
sys/dev/sbus/dbri.c
1251
pipe);
sys/dev/sbus/dbri.c
1255
sc->sc_pipe[pipe].prec = prec;
sys/dev/sbus/dbri.c
1261
pipe_transmit_fixed(struct dbri_softc *sc, int pipe, uint32_t data)
sys/dev/sbus/dbri.c
1265
if (pipe < DBRI_PIPE_MAX / 2 || pipe >= DBRI_PIPE_MAX) {
sys/dev/sbus/dbri.c
1267
pipe);
sys/dev/sbus/dbri.c
1271
if (DBRI_SDP_MODE(sc->sc_pipe[pipe].sdp) == 0) {
sys/dev/sbus/dbri.c
1273
pipe);
sys/dev/sbus/dbri.c
1277
if (DBRI_SDP_MODE(sc->sc_pipe[pipe].sdp) != DBRI_SDP_FIXED) {
sys/dev/sbus/dbri.c
1279
pipe);
sys/dev/sbus/dbri.c
1283
if (!(sc->sc_pipe[pipe].sdp & DBRI_SDP_TO_SER)) {
sys/dev/sbus/dbri.c
1285
pipe);
sys/dev/sbus/dbri.c
1289
if (sc->sc_pipe[pipe].sdp & DBRI_SDP_MSB)
sys/dev/sbus/dbri.c
1290
data = reverse_bytes(data, sc->sc_pipe[pipe].length);
sys/dev/sbus/dbri.c
1293
*(cmd++) = DBRI_CMD(DBRI_COMMAND_SSP, 0, pipe);
sys/dev/sbus/dbri.c
1302
setup_ring_xmit(struct dbri_softc *sc, int pipe, int which, int num, int blksz,
sys/dev/sbus/dbri.c
1314
switch (pipe) {
sys/dev/sbus/dbri.c
1320
__func__, pipe);
sys/dev/sbus/dbri.c
1329
if (sc->sc_pipe[pipe].sdp == 0) {
sys/dev/sbus/dbri.c
1331
pipe);
sys/dev/sbus/dbri.c
1362
if (pipe_active(sc, pipe)) {
sys/dev/sbus/dbri.c
1366
td_last = sc->sc_pipe[pipe].desc;
sys/dev/sbus/dbri.c
1375
*(cmd++) = DBRI_CMD(DBRI_COMMAND_CDP, 0, pipe);
sys/dev/sbus/dbri.c
1383
sc->sc_pipe[pipe].desc = which;
sys/dev/sbus/dbri.c
1386
sc->sc_pipe[pipe].sdp |
sys/dev/sbus/dbri.c
1399
setup_ring_recv(struct dbri_softc *sc, int pipe, int which, int num, int blksz,
sys/dev/sbus/dbri.c
1410
switch (pipe) {
sys/dev/sbus/dbri.c
1415
__func__, pipe);
sys/dev/sbus/dbri.c
1423
if (sc->sc_pipe[pipe].sdp == 0) {
sys/dev/sbus/dbri.c
1425
pipe);
sys/dev/sbus/dbri.c
1455
if (pipe_active(sc, pipe)) {
sys/dev/sbus/dbri.c
1459
td_last = sc->sc_pipe[pipe].desc;
sys/dev/sbus/dbri.c
1468
*(cmd++) = DBRI_CMD(DBRI_COMMAND_CDP, 0, pipe);
sys/dev/sbus/dbri.c
1476
sc->sc_pipe[pipe].desc = which;
sys/dev/sbus/dbri.c
1479
sc->sc_pipe[pipe].sdp |
sys/dev/sbus/dbri.c
1492
pipe_ts_link(struct dbri_softc *sc, int pipe, enum io dir, int basepipe,
sys/dev/sbus/dbri.c
1499
DPRINTF("%s: %d\n", __func__, pipe);
sys/dev/sbus/dbri.c
1500
if (pipe < 0 || pipe >= DBRI_PIPE_MAX ||
sys/dev/sbus/dbri.c
1503
pipe, basepipe);
sys/dev/sbus/dbri.c
1507
if (sc->sc_pipe[pipe].sdp == 0 || sc->sc_pipe[basepipe].sdp == 0) {
sys/dev/sbus/dbri.c
1509
pipe, basepipe);
sys/dev/sbus/dbri.c
1516
if (basepipe == pipe)
sys/dev/sbus/dbri.c
1517
prevpipe = nextpipe = pipe;
sys/dev/sbus/dbri.c
1539
sc->sc_chi_pipe_in = pipe;
sys/dev/sbus/dbri.c
1541
sc->sc_chi_pipe_out = pipe;
sys/dev/sbus/dbri.c
1544
sc->sc_pipe[prevpipe].next = pipe;
sys/dev/sbus/dbri.c
1546
sc->sc_pipe[pipe].next = nextpipe;
sys/dev/sbus/dbri.c
1547
sc->sc_pipe[pipe].cycle = cycle;
sys/dev/sbus/dbri.c
1548
sc->sc_pipe[pipe].length = len;
sys/dev/sbus/dbri.c
1555
val |= pipe;
sys/dev/sbus/dbri.c
1563
val |= pipe;
sys/dev/sbus/dbri.c
1581
pipe_active(struct dbri_softc *sc, int pipe)
sys/dev/sbus/dbri.c
1584
return (sc->sc_pipe[pipe].desc != -1);
sys/dev/usb/aubtfwl.c
113
struct usbd_pipe *pipe;
sys/dev/usb/aubtfwl.c
146
error = usbd_open_pipe(iface, UE_DIR_OUT|2, USBD_EXCLUSIVE_USE, &pipe);
sys/dev/usb/aubtfwl.c
153
error = usbd_create_xfer(pipe, AR3K_FIRMWARE_CHUNK_SIZE, 0, 0, &xfer);
sys/dev/usb/aubtfwl.c
188
error = usbd_bulk_transfer(xfer, pipe, 0, USBD_DEFAULT_TIMEOUT,
sys/dev/usb/aubtfwl.c
204
usbd_close_pipe(pipe);
sys/dev/usb/ehci.c
141
struct usbd_pipe pipe;
sys/dev/usb/ehci.c
1648
ehci_device_clear_toggle(struct usbd_pipe *pipe)
sys/dev/usb/ehci.c
1650
struct ehci_pipe *epipe = EHCI_PIPE2EPIPE(pipe);
sys/dev/usb/ehci.c
1658
usbd_dump_pipe(pipe);
sys/dev/usb/ehci.c
1664
ehci_noop(struct usbd_pipe *pipe)
sys/dev/usb/ehci.c
1958
ehci_open(struct usbd_pipe *pipe)
sys/dev/usb/ehci.c
1960
struct usbd_device *dev = pipe->up_dev;
sys/dev/usb/ehci.c
1961
ehci_softc_t *sc = EHCI_PIPE2SC(pipe);
sys/dev/usb/ehci.c
1962
usb_endpoint_descriptor_t *ed = pipe->up_endpoint->ue_edesc;
sys/dev/usb/ehci.c
1966
struct ehci_pipe *epipe = EHCI_PIPE2EPIPE(pipe);
sys/dev/usb/ehci.c
1974
DPRINTF("pipe=%#jx, addr=%jd, endpt=%jd (%jd)", (uintptr_t)pipe, addr,
sys/dev/usb/ehci.c
1999
epipe->nexttoggle = pipe->up_endpoint->ue_toggle;
sys/dev/usb/ehci.c
2004
pipe->up_methods = &roothub_ctrl_methods;
sys/dev/usb/ehci.c
2007
pipe->up_methods = &ehci_root_intr_methods;
sys/dev/usb/ehci.c
2099
pipe->up_methods = &ehci_device_ctrl_methods;
sys/dev/usb/ehci.c
2105
pipe->up_methods = &ehci_device_bulk_methods;
sys/dev/usb/ehci.c
2111
pipe->up_methods = &ehci_device_intr_methods;
sys/dev/usb/ehci.c
2112
ival = pipe->up_interval;
sys/dev/usb/ehci.c
2132
pipe->up_serialise = false;
sys/dev/usb/ehci.c
2134
pipe->up_methods = &ehci_device_isoc_methods;
sys/dev/usb/ehci.c
2136
pipe->up_methods = &ehci_device_fs_isoc_methods;
sys/dev/usb/ehci.c
2874
ehci_root_intr_close(struct usbd_pipe *pipe)
sys/dev/usb/ehci.c
2876
ehci_softc_t *sc __diagused = EHCI_PIPE2SC(pipe);
sys/dev/usb/ehci.c
3365
ehci_close_pipe(struct usbd_pipe *pipe, ehci_soft_qh_t *head)
sys/dev/usb/ehci.c
3367
struct ehci_pipe *epipe = EHCI_PIPE2EPIPE(pipe);
sys/dev/usb/ehci.c
3368
ehci_softc_t *sc = EHCI_PIPE2SC(pipe);
sys/dev/usb/ehci.c
3731
len, epipe->pipe.up_dev->ud_addr,
sys/dev/usb/ehci.c
3732
epipe->pipe.up_endpoint->ue_edesc->bEndpointAddress, 0);
sys/dev/usb/ehci.c
3736
KASSERTMSG(EHCI_QH_GET_ADDR(le32toh(sqh->qh->qh_endp)) == epipe->pipe.up_dev->ud_addr,
sys/dev/usb/ehci.c
3739
epipe->pipe.up_dev->ud_addr);
sys/dev/usb/ehci.c
3741
UGETW(epipe->pipe.up_endpoint->ue_edesc->wMaxPacketSize),
sys/dev/usb/ehci.c
3744
UGETW(epipe->pipe.up_endpoint->ue_edesc->wMaxPacketSize));
sys/dev/usb/ehci.c
3847
epipe->pipe.up_dev->ud_addr == 0) {
sys/dev/usb/ehci.c
3907
ehci_device_ctrl_close(struct usbd_pipe *pipe)
sys/dev/usb/ehci.c
3909
ehci_softc_t *sc = EHCI_PIPE2SC(pipe);
sys/dev/usb/ehci.c
3910
struct ehci_pipe * const epipe = EHCI_PIPE2EPIPE(pipe);
sys/dev/usb/ehci.c
3916
DPRINTF("pipe=%#jx", (uintptr_t)pipe, 0, 0, 0);
sys/dev/usb/ehci.c
3918
ehci_close_pipe(pipe, sc->sc_async_head);
sys/dev/usb/ehci.c
4010
endpt = epipe->pipe.up_endpoint->ue_edesc->bEndpointAddress;
sys/dev/usb/ehci.c
4075
ehci_device_bulk_close(struct usbd_pipe *pipe)
sys/dev/usb/ehci.c
4077
ehci_softc_t *sc = EHCI_PIPE2SC(pipe);
sys/dev/usb/ehci.c
4078
struct ehci_pipe *epipe = EHCI_PIPE2EPIPE(pipe);
sys/dev/usb/ehci.c
4084
DPRINTF("pipe=%#jx", (uintptr_t)pipe, 0, 0, 0);
sys/dev/usb/ehci.c
4085
pipe->up_endpoint->ue_toggle = epipe->nexttoggle;
sys/dev/usb/ehci.c
4086
ehci_close_pipe(pipe, sc->sc_async_head);
sys/dev/usb/ehci.c
4094
int endpt = epipe->pipe.up_endpoint->ue_edesc->bEndpointAddress;
sys/dev/usb/ehci.c
4209
endpt = epipe->pipe.up_endpoint->ue_edesc->bEndpointAddress;
sys/dev/usb/ehci.c
4273
ehci_device_intr_close(struct usbd_pipe *pipe)
sys/dev/usb/ehci.c
4275
ehci_softc_t *sc = EHCI_PIPE2SC(pipe);
sys/dev/usb/ehci.c
4276
struct ehci_pipe *epipe = EHCI_PIPE2EPIPE(pipe);
sys/dev/usb/ehci.c
4282
ehci_close_pipe(pipe, isp->sqh);
sys/dev/usb/ehci.c
4300
endpt = epipe->pipe.up_endpoint->ue_edesc->bEndpointAddress;
sys/dev/usb/ehci.c
4336
i = epipe->pipe.up_endpoint->ue_edesc->bInterval;
sys/dev/usb/ehci.c
4366
k = epipe->pipe.up_endpoint->ue_edesc->bEndpointAddress;
sys/dev/usb/ehci.c
4442
if (epipe->pipe.up_endpoint->ue_edesc->bInterval *
sys/dev/usb/ehci.c
4494
k = epipe->pipe.up_endpoint->ue_edesc->bEndpointAddress;
sys/dev/usb/ehci.c
4580
i = epipe->pipe.up_endpoint->ue_edesc->bInterval;
sys/dev/usb/ehci.c
4643
ehci_device_fs_isoc_close(struct usbd_pipe *pipe)
sys/dev/usb/ehci.c
4698
i = epipe->pipe.up_endpoint->ue_edesc->bInterval;
sys/dev/usb/ehci.c
4728
k = epipe->pipe.up_endpoint->ue_edesc->bEndpointAddress;
sys/dev/usb/ehci.c
4731
EHCI_ITD_SET_DADDR(epipe->pipe.up_dev->ud_addr));
sys/dev/usb/ehci.c
4733
k = (UE_GET_DIR(epipe->pipe.up_endpoint->ue_edesc->bEndpointAddress))
sys/dev/usb/ehci.c
4735
j = UGETW(epipe->pipe.up_endpoint->ue_edesc->wMaxPacketSize);
sys/dev/usb/ehci.c
4808
if ((1 << (epipe->pipe.up_endpoint->ue_edesc->bInterval)) *
sys/dev/usb/ehci.c
4828
i = epipe->pipe.up_endpoint->ue_edesc->bInterval;
sys/dev/usb/ehci.c
4916
int k = epipe->pipe.up_endpoint->ue_edesc->bEndpointAddress;
sys/dev/usb/ehci.c
4918
EHCI_ITD_SET_DADDR(epipe->pipe.up_dev->ud_addr));
sys/dev/usb/ehci.c
4920
k = (UE_GET_DIR(epipe->pipe.up_endpoint->ue_edesc->bEndpointAddress))
sys/dev/usb/ehci.c
4922
j = UGETW(epipe->pipe.up_endpoint->ue_edesc->wMaxPacketSize);
sys/dev/usb/ehci.c
4960
i = (1 << (epipe->pipe.up_endpoint->ue_edesc->bInterval - 1));
sys/dev/usb/ehci.c
5028
ehci_device_isoc_close(struct usbd_pipe *pipe)
sys/dev/usb/ehcivar.h
126
#define EHCI_PIPE2SC(pipe) EHCI_BUS2SC((pipe)->up_dev->ud_bus)
sys/dev/usb/ehcivar.h
128
#define EHCI_EPIPE2SC(epipe) EHCI_BUS2SC((epipe)->pipe.up_dev->ud_bus)
sys/dev/usb/ehcivar.h
133
#define EHCI_PIPE2EPIPE(pipe) ((struct ehci_pipe *)(pipe))
sys/dev/usb/if_athn_usb.c
640
struct usbd_pipe *pipe;
sys/dev/usb/if_athn_usb.c
642
CTASSERT(sizeof(pipe) == sizeof(void *));
sys/dev/usb/if_athn_usb.c
643
pipe = atomic_swap_ptr(pipeptr, NULL);
sys/dev/usb/if_athn_usb.c
644
if (pipe != NULL) {
sys/dev/usb/if_athn_usb.c
645
usbd_close_pipe(pipe);
sys/dev/usb/if_urtwn.c
2681
struct usbd_pipe *pipe = sc->tx_pipe[pidx];
sys/dev/usb/if_urtwn.c
2682
usbd_clear_endpoint_stall_async(pipe);
sys/dev/usb/if_urtwn.c
725
struct usbd_pipe *pipe;
sys/dev/usb/if_urtwn.c
731
CTASSERT(sizeof(pipe) == sizeof(void *));
sys/dev/usb/if_urtwn.c
733
pipe = atomic_swap_ptr(&sc->rx_pipe[i], NULL);
sys/dev/usb/if_urtwn.c
734
if (pipe != NULL) {
sys/dev/usb/if_urtwn.c
735
usbd_close_pipe(pipe);
sys/dev/usb/if_urtwn.c
741
pipe = atomic_swap_ptr(&sc->tx_pipe[i], NULL);
sys/dev/usb/if_urtwn.c
742
if (pipe != NULL) {
sys/dev/usb/if_urtwn.c
743
usbd_close_pipe(pipe);
sys/dev/usb/motg.c
1021
struct usbd_pipe *pipe = xfer->ux_pipe;
sys/dev/usb/motg.c
1022
struct motg_softc *sc = MOTG_PIPE2SC(pipe);
sys/dev/usb/motg.c
1043
motg_root_intr_close(struct usbd_pipe *pipe)
sys/dev/usb/motg.c
1045
struct motg_softc *sc __diagused = MOTG_PIPE2SC(pipe);
sys/dev/usb/motg.c
1072
motg_noop(struct usbd_pipe *pipe)
sys/dev/usb/motg.c
1112
struct usbd_pipe *pipe;
sys/dev/usb/motg.c
1121
pipe = xfer->ux_pipe;
sys/dev/usb/motg.c
1122
if (pipe->up_dev == NULL || pipe->up_dev->ud_bus == NULL)
sys/dev/usb/motg.c
1171
struct usbd_device *dev = otgpipe->pipe.up_dev;
sys/dev/usb/motg.c
1305
xfer = SIMPLEQ_FIRST(&otgpipe->pipe.up_queue);
sys/dev/usb/motg.c
152
static void motg_noop(struct usbd_pipe *pipe);
sys/dev/usb/motg.c
1668
motg_device_ctrl_close(struct usbd_pipe *pipe)
sys/dev/usb/motg.c
1670
struct motg_softc *sc __diagused = MOTG_PIPE2SC(pipe);
sys/dev/usb/motg.c
1671
struct motg_pipe *otgpipe = MOTG_PIPE2MPIPE(pipe);
sys/dev/usb/motg.c
1678
otgpipe->hw_ep->xfer->ux_pipe != pipe);
sys/dev/usb/motg.c
1749
xfer = SIMPLEQ_FIRST(&otgpipe->pipe.up_queue);
sys/dev/usb/motg.c
2131
motg_device_data_close(struct usbd_pipe *pipe)
sys/dev/usb/motg.c
2133
struct motg_softc *sc __diagused = MOTG_PIPE2SC(pipe);
sys/dev/usb/motg.c
2134
struct motg_pipe *otgpipe = MOTG_PIPE2MPIPE(pipe);
sys/dev/usb/motg.c
2141
otgpipe->hw_ep->xfer->ux_pipe != pipe);
sys/dev/usb/motg.c
2143
pipe->up_endpoint->ue_toggle = otgpipe->nexttoggle;
sys/dev/usb/motg.c
2167
motg_device_clear_toggle(struct usbd_pipe *pipe)
sys/dev/usb/motg.c
2169
struct motg_pipe *otgpipe = MOTG_PIPE2MPIPE(pipe);
sys/dev/usb/motg.c
480
motg_select_ep(struct motg_softc *sc, struct usbd_pipe *pipe)
sys/dev/usb/motg.c
482
struct motg_pipe *otgpipe = MOTG_PIPE2MPIPE(pipe);
sys/dev/usb/motg.c
483
usb_endpoint_descriptor_t *ed = pipe->up_endpoint->ue_edesc;
sys/dev/usb/motg.c
491
size = UE_GET_SIZE(UGETW(pipe->up_endpoint->ue_edesc->wMaxPacketSize));
sys/dev/usb/motg.c
520
motg_open(struct usbd_pipe *pipe)
sys/dev/usb/motg.c
522
struct motg_softc *sc = MOTG_PIPE2SC(pipe);
sys/dev/usb/motg.c
523
struct motg_pipe *otgpipe = MOTG_PIPE2MPIPE(pipe);
sys/dev/usb/motg.c
524
usb_endpoint_descriptor_t *ed = pipe->up_endpoint->ue_edesc;
sys/dev/usb/motg.c
525
uint8_t rhaddr = pipe->up_dev->ud_bus->ub_rhaddr;
sys/dev/usb/motg.c
529
DPRINTF("pipe=%#jx, addr=%jd, endpt=%jd (%jd)", (uintptr_t)pipe,
sys/dev/usb/motg.c
530
pipe->up_dev->ud_addr, ed->bEndpointAddress, rhaddr);
sys/dev/usb/motg.c
536
otgpipe->nexttoggle = pipe->up_endpoint->ue_toggle;
sys/dev/usb/motg.c
538
if (pipe->up_dev->ud_addr == rhaddr) {
sys/dev/usb/motg.c
541
pipe->up_methods = &roothub_ctrl_methods;
sys/dev/usb/motg.c
544
pipe->up_methods = &motg_root_intr_methods;
sys/dev/usb/motg.c
552
pipe->up_methods = &motg_device_ctrl_methods;
sys/dev/usb/motg.c
566
UE_GET_DIR(pipe->up_endpoint->ue_edesc->bEndpointAddress),
sys/dev/usb/motg.c
567
UGETW(pipe->up_endpoint->ue_edesc->wMaxPacketSize), 0);
sys/dev/usb/motg.c
568
if (motg_select_ep(sc, pipe) != 0)
sys/dev/usb/motg.c
571
pipe->up_methods = &motg_device_data_methods;
sys/dev/usb/motg.c
572
otgpipe->nexttoggle = pipe->up_endpoint->ue_toggle;
sys/dev/usb/motgvar.h
114
#define MOTG_PIPE2SC(pipe) MOTG_BUS2SC((pipe)->up_dev->ud_bus)
sys/dev/usb/motgvar.h
116
#define MOTG_MPIPE2SC(mpipe) MOTG_BUS2SC((mpipe)->pipe.up_dev->ud_bus)
sys/dev/usb/motgvar.h
119
#define MOTG_PIPE2MPIPE(pipe) ((struct motg_pipe *)(pipe))
sys/dev/usb/motgvar.h
37
struct usbd_pipe pipe;
sys/dev/usb/ohci.c
2077
ohci_open(struct usbd_pipe *pipe)
sys/dev/usb/ohci.c
2079
struct usbd_device *dev = pipe->up_dev;
sys/dev/usb/ohci.c
2081
ohci_softc_t *sc = OHCI_PIPE2SC(pipe);
sys/dev/usb/ohci.c
2082
usb_endpoint_descriptor_t *ed = pipe->up_endpoint->ue_edesc;
sys/dev/usb/ohci.c
2083
struct ohci_pipe *opipe = OHCI_PIPE2OPIPE(pipe);
sys/dev/usb/ohci.c
2095
DPRINTFN(1, "pipe=%#jx, addr=%jd, endpt=%jd (%jd)", (uintptr_t)pipe,
sys/dev/usb/ohci.c
2108
pipe->up_methods = &roothub_ctrl_methods;
sys/dev/usb/ohci.c
2111
pipe->up_methods = &ohci_root_intr_methods;
sys/dev/usb/ohci.c
2154
(pipe->up_endpoint->ue_toggle ? OHCI_TOGGLECARRY : 0));
sys/dev/usb/ohci.c
2161
pipe->up_methods = &ohci_device_ctrl_methods;
sys/dev/usb/ohci.c
2172
pipe->up_methods = &ohci_device_intr_methods;
sys/dev/usb/ohci.c
2173
ival = pipe->up_interval;
sys/dev/usb/ohci.c
2181
pipe->up_serialise = false;
sys/dev/usb/ohci.c
2182
pipe->up_methods = &ohci_device_isoc_methods;
sys/dev/usb/ohci.c
2183
return ohci_setup_isoc(pipe);
sys/dev/usb/ohci.c
2185
pipe->up_methods = &ohci_device_bulk_methods;
sys/dev/usb/ohci.c
2210
ohci_close_pipe(struct usbd_pipe *pipe, ohci_soft_ed_t *head)
sys/dev/usb/ohci.c
2212
struct ohci_pipe *opipe = OHCI_PIPE2OPIPE(pipe);
sys/dev/usb/ohci.c
2213
ohci_softc_t *sc = OHCI_PIPE2SC(pipe);
sys/dev/usb/ohci.c
2229
pipe, std);
sys/dev/usb/ohci.c
2231
usbd_dump_pipe(&opipe->pipe);
sys/dev/usb/ohci.c
2245
pipe->up_endpoint->ue_toggle =
sys/dev/usb/ohci.c
260
struct usbd_pipe pipe;
sys/dev/usb/ohci.c
2683
ohci_root_intr_close(struct usbd_pipe *pipe)
sys/dev/usb/ohci.c
2685
ohci_softc_t *sc __diagused = OHCI_PIPE2SC(pipe);
sys/dev/usb/ohci.c
2794
struct usbd_device *dev __diagused = opipe->pipe.up_dev;
sys/dev/usb/ohci.c
2813
dev->ud_addr, opipe->pipe.up_endpoint->ue_edesc->bEndpointAddress);
sys/dev/usb/ohci.c
2844
UGETW(opipe->pipe.up_endpoint->ue_edesc->wMaxPacketSize),
sys/dev/usb/ohci.c
2847
UGETW(opipe->pipe.up_endpoint->ue_edesc->wMaxPacketSize));
sys/dev/usb/ohci.c
2970
ohci_device_ctrl_close(struct usbd_pipe *pipe)
sys/dev/usb/ohci.c
2972
struct ohci_pipe *opipe = OHCI_PIPE2OPIPE(pipe);
sys/dev/usb/ohci.c
2973
ohci_softc_t *sc = OHCI_PIPE2SC(pipe);
sys/dev/usb/ohci.c
2978
DPRINTF("pipe=%#jx", (uintptr_t)pipe, 0, 0, 0);
sys/dev/usb/ohci.c
2979
ohci_close_pipe(pipe, sc->sc_ctrl_head);
sys/dev/usb/ohci.c
2988
ohci_device_clear_toggle(struct usbd_pipe *pipe)
sys/dev/usb/ohci.c
2990
struct ohci_pipe *opipe = OHCI_PIPE2OPIPE(pipe);
sys/dev/usb/ohci.c
2991
ohci_softc_t *sc = OHCI_PIPE2SC(pipe);
sys/dev/usb/ohci.c
3006
ohci_noop(struct usbd_pipe *pipe)
sys/dev/usb/ohci.c
3185
ohci_device_bulk_close(struct usbd_pipe *pipe)
sys/dev/usb/ohci.c
3187
struct ohci_pipe *opipe = OHCI_PIPE2OPIPE(pipe);
sys/dev/usb/ohci.c
3188
ohci_softc_t *sc = OHCI_PIPE2SC(pipe);
sys/dev/usb/ohci.c
3194
DPRINTF("pipe=%#jx", (uintptr_t)pipe, 0, 0, 0);
sys/dev/usb/ohci.c
3195
ohci_close_pipe(pipe, sc->sc_bulk_head);
sys/dev/usb/ohci.c
3363
ohci_device_intr_close(struct usbd_pipe *pipe)
sys/dev/usb/ohci.c
3365
struct ohci_pipe *opipe = OHCI_PIPE2OPIPE(pipe);
sys/dev/usb/ohci.c
3366
ohci_softc_t *sc = OHCI_PIPE2SC(pipe);
sys/dev/usb/ohci.c
3376
DPRINTFN(1, "pipe=%#jx nslots=%jd pos=%jd", (uintptr_t)pipe, nslots,
sys/dev/usb/ohci.c
3816
ohci_setup_isoc(struct usbd_pipe *pipe)
sys/dev/usb/ohci.c
3818
struct ohci_pipe *opipe = OHCI_PIPE2OPIPE(pipe);
sys/dev/usb/ohci.c
3819
ohci_softc_t *sc = OHCI_PIPE2SC(pipe);
sys/dev/usb/ohci.c
3833
ohci_device_isoc_close(struct usbd_pipe *pipe)
sys/dev/usb/ohci.c
3835
struct ohci_pipe *opipe = OHCI_PIPE2OPIPE(pipe);
sys/dev/usb/ohci.c
3836
ohci_softc_t *sc = OHCI_PIPE2SC(pipe);
sys/dev/usb/ohci.c
3841
DPRINTF("pipe=%#jx", (uintptr_t)pipe, 0, 0, 0);
sys/dev/usb/ohci.c
3842
ohci_close_pipe(pipe, sc->sc_isoc_head);
sys/dev/usb/ohcivar.h
168
#define OHCI_PIPE2SC(pipe) OHCI_BUS2SC((pipe)->up_dev->ud_bus)
sys/dev/usb/ohcivar.h
172
#define OHCI_PIPE2OPIPE(pipe) ((struct ohci_pipe *)(pipe))
sys/dev/usb/uaudio.c
167
struct usbd_pipe *pipe;
sys/dev/usb/uaudio.c
3090
if (sc->sc_playchan.pipe != NULL) {
sys/dev/usb/uaudio.c
3115
if (sc->sc_recchan.pipe != NULL) {
sys/dev/usb/uaudio.c
3691
struct usbd_pipe *pipe;
sys/dev/usb/uaudio.c
3719
err = usbd_open_pipe(as->ifaceh, endpt, USBD_MPSAFE, &pipe);
sys/dev/usb/uaudio.c
3722
pipe = atomic_swap_ptr(&ch->pipe, pipe);
sys/dev/usb/uaudio.c
3723
KASSERT(pipe == NULL);
sys/dev/usb/uaudio.c
3729
&pipe);
sys/dev/usb/uaudio.c
3732
pipe = atomic_swap_ptr(&ch->sync_pipe, pipe);
sys/dev/usb/uaudio.c
3733
KASSERT(pipe == NULL);
sys/dev/usb/uaudio.c
3743
struct usbd_pipe *pipe;
sys/dev/usb/uaudio.c
3752
pipe = ch->pipe;
sys/dev/usb/uaudio.c
3753
if (pipe) {
sys/dev/usb/uaudio.c
3754
usbd_abort_pipe(pipe);
sys/dev/usb/uaudio.c
3756
pipe = ch->sync_pipe;
sys/dev/usb/uaudio.c
3757
if (pipe) {
sys/dev/usb/uaudio.c
3758
usbd_abort_pipe(pipe);
sys/dev/usb/uaudio.c
3765
struct usbd_pipe *pipe;
sys/dev/usb/uaudio.c
3767
pipe = atomic_swap_ptr(&ch->pipe, NULL);
sys/dev/usb/uaudio.c
3768
if (pipe) {
sys/dev/usb/uaudio.c
3769
usbd_close_pipe(pipe);
sys/dev/usb/uaudio.c
3771
pipe = atomic_swap_ptr(&ch->sync_pipe, NULL);
sys/dev/usb/uaudio.c
3772
if (pipe) {
sys/dev/usb/uaudio.c
3773
usbd_close_pipe(pipe);
sys/dev/usb/uaudio.c
3786
int err = usbd_create_xfer(ch->pipe, size, 0, ch->nframes,
sys/dev/usb/uhci.c
132
struct usbd_pipe pipe;
sys/dev/usb/uhci.c
2072
struct usbd_pipe *pipe = xfer->ux_pipe;
sys/dev/usb/uhci.c
2088
maxp = UGETW(pipe->up_endpoint->ue_edesc->wMaxPacketSize);
sys/dev/usb/uhci.c
2095
if (pipe->up_dev->ud_speed == USB_SPEED_LOW)
sys/dev/usb/uhci.c
2186
uhci_device_clear_toggle(struct usbd_pipe *pipe)
sys/dev/usb/uhci.c
2188
struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(pipe);
sys/dev/usb/uhci.c
2193
uhci_noop(struct usbd_pipe *pipe)
sys/dev/usb/uhci.c
2280
endpt = upipe->pipe.up_endpoint->ue_edesc->bEndpointAddress;
sys/dev/usb/uhci.c
2388
usb_delay_ms_locked(upipe->pipe.up_dev->ud_bus, 2, &sc->sc_lock);
sys/dev/usb/uhci.c
2400
uhci_device_bulk_close(struct usbd_pipe *pipe)
sys/dev/usb/uhci.c
2402
struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(pipe);
sys/dev/usb/uhci.c
2403
uhci_softc_t *sc = UHCI_PIPE2SC(pipe);
sys/dev/usb/uhci.c
2409
pipe->up_endpoint->ue_toggle = upipe->nexttoggle;
sys/dev/usb/uhci.c
2418
struct usbd_device *dev = upipe->pipe.up_dev;
sys/dev/usb/uhci.c
2428
upipe->pipe.up_endpoint->ue_edesc->bEndpointAddress);
sys/dev/usb/uhci.c
2477
struct usbd_device *dev = upipe->pipe.up_dev;
sys/dev/usb/uhci.c
2479
int endpt = upipe->pipe.up_endpoint->ue_edesc->bEndpointAddress;
sys/dev/usb/uhci.c
2684
endpt = upipe->pipe.up_endpoint->ue_edesc->bEndpointAddress;
sys/dev/usb/uhci.c
2753
uhci_device_ctrl_close(struct usbd_pipe *pipe)
sys/dev/usb/uhci.c
2755
uhci_softc_t *sc = UHCI_PIPE2SC(pipe);
sys/dev/usb/uhci.c
2756
struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(pipe);
sys/dev/usb/uhci.c
2781
uhci_device_intr_close(struct usbd_pipe *pipe)
sys/dev/usb/uhci.c
2783
struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(pipe);
sys/dev/usb/uhci.c
2784
uhci_softc_t *sc = UHCI_PIPE2SC(pipe);
sys/dev/usb/uhci.c
2844
int rd = UE_GET_DIR(upipe->pipe.up_endpoint->ue_edesc->bEndpointAddress) == UE_DIR_IN;
sys/dev/usb/uhci.c
2996
uhci_device_isoc_close(struct usbd_pipe *pipe)
sys/dev/usb/uhci.c
2998
struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(pipe);
sys/dev/usb/uhci.c
2999
uhci_softc_t *sc = UHCI_PIPE2SC(pipe);
sys/dev/usb/uhci.c
3058
uhci_setup_isoc(struct usbd_pipe *pipe)
sys/dev/usb/uhci.c
3060
struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(pipe);
sys/dev/usb/uhci.c
3061
uhci_softc_t *sc = UHCI_PIPE2SC(pipe);
sys/dev/usb/uhci.c
3062
int addr = upipe->pipe.up_dev->ud_addr;
sys/dev/usb/uhci.c
3063
int endpt = upipe->pipe.up_endpoint->ue_edesc->bEndpointAddress;
sys/dev/usb/uhci.c
3135
int rd = UE_GET_DIR(upipe->pipe.up_endpoint->ue_edesc->bEndpointAddress) == UE_DIR_IN;
sys/dev/usb/uhci.c
3194
const int endpt = upipe->pipe.up_endpoint->ue_edesc->bEndpointAddress;
sys/dev/usb/uhci.c
3215
if (upipe->pipe.up_dev->ud_speed == USB_SPEED_LOW)
sys/dev/usb/uhci.c
3382
uhci_open(struct usbd_pipe *pipe)
sys/dev/usb/uhci.c
3384
uhci_softc_t *sc = UHCI_PIPE2SC(pipe);
sys/dev/usb/uhci.c
3385
struct usbd_bus *bus = pipe->up_dev->ud_bus;
sys/dev/usb/uhci.c
3386
struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(pipe);
sys/dev/usb/uhci.c
3387
usb_endpoint_descriptor_t *ed = pipe->up_endpoint->ue_edesc;
sys/dev/usb/uhci.c
3392
(uintptr_t)pipe, pipe->up_dev->ud_addr, ed->bEndpointAddress,
sys/dev/usb/uhci.c
3400
upipe->nexttoggle = pipe->up_endpoint->ue_toggle;
sys/dev/usb/uhci.c
3402
if (pipe->up_dev->ud_addr == bus->ub_rhaddr) {
sys/dev/usb/uhci.c
3405
pipe->up_methods = &roothub_ctrl_methods;
sys/dev/usb/uhci.c
3408
pipe->up_methods = &uhci_root_intr_methods;
sys/dev/usb/uhci.c
3416
pipe->up_methods = &uhci_device_ctrl_methods;
sys/dev/usb/uhci.c
3442
pipe->up_methods = &uhci_device_intr_methods;
sys/dev/usb/uhci.c
3443
ival = pipe->up_interval;
sys/dev/usb/uhci.c
3448
pipe->up_serialise = false;
sys/dev/usb/uhci.c
3449
pipe->up_methods = &uhci_device_isoc_methods;
sys/dev/usb/uhci.c
3450
return uhci_setup_isoc(pipe);
sys/dev/usb/uhci.c
3452
pipe->up_methods = &uhci_device_bulk_methods;
sys/dev/usb/uhci.c
3825
struct usbd_pipe *pipe = xfer->ux_pipe;
sys/dev/usb/uhci.c
3826
uhci_softc_t *sc = UHCI_PIPE2SC(pipe);
sys/dev/usb/uhci.c
3853
uhci_root_intr_close(struct usbd_pipe *pipe)
sys/dev/usb/uhci.c
3855
uhci_softc_t *sc __diagused = UHCI_PIPE2SC(pipe);
sys/dev/usb/uhci.c
942
struct usbd_pipe *pipe;
sys/dev/usb/uhci.c
950
pipe = ux->ux_xfer.ux_pipe;
sys/dev/usb/uhci.c
951
if (pipe == NULL) {
sys/dev/usb/uhci.c
955
if (pipe->up_endpoint == NULL) {
sys/dev/usb/uhci.c
957
ux, ux->ux_isdone, pipe);
sys/dev/usb/uhci.c
960
if (pipe->up_dev == NULL) {
sys/dev/usb/uhci.c
962
ux, ux->ux_isdone, pipe);
sys/dev/usb/uhci.c
965
ed = pipe->up_endpoint->ue_edesc;
sys/dev/usb/uhci.c
966
dev = pipe->up_dev;
sys/dev/usb/uhci.c
971
dev->ud_addr, pipe,
sys/dev/usb/uhcivar.h
92
#define UHCI_PIPE2SC(pipe) UHCI_BUS2SC((pipe)->up_dev->ud_bus)
sys/dev/usb/uhcivar.h
94
#define UHCI_UPIPE2SC(d) UHCI_BUS2SC((d)->pipe.up_dev->ud_bus)
sys/dev/usb/uhcivar.h
97
#define UHCI_PIPE2UPIPE(pipe) ((struct uhci_pipe *)(pipe))
sys/dev/usb/uhso.c
590
struct usbd_pipe *pipe;
sys/dev/usb/uhso.c
602
status = usbd_open_pipe(ifh, ed->bEndpointAddress, 0, &pipe);
sys/dev/usb/uhso.c
606
int error = usbd_create_xfer(pipe, sizeof(cmd), 0, 0, &xfer);
sys/dev/usb/uhso.c
626
usbd_close_pipe(pipe);
sys/dev/usb/uhso.c
732
struct usbd_pipe *pipe;
sys/dev/usb/uhso.c
779
status = usbd_open_pipe_intr(ifh, addr, USBD_SHORT_XFER_OK, &pipe,
sys/dev/usb/uhso.c
805
hp->hp_ipipe = pipe;
sys/dev/usb/uhso.c
837
usbd_abort_pipe(pipe);
sys/dev/usb/uhso.c
838
usbd_close_pipe(pipe);
sys/dev/usb/umass.c
975
umass_setup_transfer(struct umass_softc *sc, struct usbd_pipe *pipe,
sys/dev/usb/umidi.c
1417
usbd_abort_pipe(jack->endpoint->pipe);
sys/dev/usb/umidi.c
168
struct usbd_pipe *pipe;
sys/dev/usb/umidi.c
689
err = usbd_open_pipe(sc->sc_iface, ep->addr, USBD_MPSAFE, &ep->pipe);
sys/dev/usb/umidi.c
692
int error = usbd_create_xfer(ep->pipe, ep->buffer_size,
sys/dev/usb/umidi.c
695
usbd_close_pipe(ep->pipe);
sys/dev/usb/umidi.c
710
usbd_abort_pipe(ep->pipe);
sys/dev/usb/umidi.c
712
usbd_close_pipe(ep->pipe);
sys/dev/usb/umodeswitch.c
104
USBD_EXCLUSIVE_USE, &pipe);
sys/dev/usb/umodeswitch.c
111
int error = usbd_create_xfer(pipe, cmdlen, 0, 0, &xfer);
sys/dev/usb/umodeswitch.c
131
usbd_abort_pipe(pipe);
sys/dev/usb/umodeswitch.c
132
usbd_close_pipe(pipe);
sys/dev/usb/umodeswitch.c
71
struct usbd_pipe *pipe;
sys/dev/usb/usb.c
369
struct usbd_pipe *pipe = (struct usbd_pipe *)(uintptr_t)addr;
sys/dev/usb/usb.c
377
db_printf("usb pipe: %p\n", pipe);
sys/dev/usb/usb.c
379
SIMPLEQ_FOREACH(xfer, &pipe->up_queue, ux_next) {
sys/dev/usb/usb_subr.c
1027
usbd_kill_pipe(struct usbd_pipe *pipe)
sys/dev/usb/usb_subr.c
1030
usbd_abort_pipe(pipe);
sys/dev/usb/usb_subr.c
1031
usbd_close_pipe(pipe);
sys/dev/usb/usb_subr.c
928
struct usbd_endpoint *ep, int ival, struct usbd_pipe **pipe)
sys/dev/usb/usb_subr.c
930
return usbd_setup_pipe_flags(dev, iface, ep, ival, pipe, 0);
sys/dev/usb/usb_subr.c
935
struct usbd_endpoint *ep, int ival, struct usbd_pipe **pipe, uint8_t flags)
sys/dev/usb/usb_subr.c
979
*pipe = p;
sys/dev/usb/usbdi.c
101
SDT_PROBE_DEFINE1(usb, device, pipe, clear__endpoint__toggle,
sys/dev/usb/usbdi.c
1030
usbd_ar_pipe(struct usbd_pipe *pipe)
sys/dev/usb/usbdi.c
1035
USBHIST_CALLARGS(usbdebug, "pipe = %#jx", (uintptr_t)pipe, 0, 0, 0);
sys/dev/usb/usbdi.c
1036
SDT_PROBE1(usb, device, pipe, abort__start, pipe);
sys/dev/usb/usbdi.c
1039
KASSERT(mutex_owned(pipe->up_dev->ud_bus->ub_lock));
sys/dev/usb/usbdi.c
1040
KASSERT(pipe->up_dev->ud_bus->ub_usepolling == 0);
sys/dev/usb/usbdi.c
1048
KASSERTMSG(pipe->up_abortlwp == NULL, "pipe->up_abortlwp=%p",
sys/dev/usb/usbdi.c
1049
pipe->up_abortlwp);
sys/dev/usb/usbdi.c
1050
pipe->up_abortlwp = curlwp;
sys/dev/usb/usbdi.c
1054
usbd_dump_queue(pipe);
sys/dev/usb/usbdi.c
1056
pipe->up_repeat = 0;
sys/dev/usb/usbdi.c
1057
pipe->up_running = 0;
sys/dev/usb/usbdi.c
1058
pipe->up_aborting = 1;
sys/dev/usb/usbdi.c
1059
while ((xfer = SIMPLEQ_FIRST(&pipe->up_queue)) != NULL) {
sys/dev/usb/usbdi.c
1061
"(methods = %#jx)", (uintptr_t)pipe, (uintptr_t)xfer,
sys/dev/usb/usbdi.c
1062
(uintptr_t)pipe->up_methods, 0);
sys/dev/usb/usbdi.c
1068
SIMPLEQ_REMOVE_HEAD(&pipe->up_queue, ux_next);
sys/dev/usb/usbdi.c
1072
pipe->up_methods->upm_abort(xfer);
sys/dev/usb/usbdi.c
1073
while (pipe->up_callingxfer == xfer) {
sys/dev/usb/usbdi.c
1076
(uintptr_t)pipe, (uintptr_t)xfer, 0, 0);
sys/dev/usb/usbdi.c
1077
cv_wait(&pipe->up_callingcv,
sys/dev/usb/usbdi.c
1078
pipe->up_dev->ud_bus->ub_lock);
sys/dev/usb/usbdi.c
1090
while (pipe->up_callingxfer) {
sys/dev/usb/usbdi.c
1093
(uintptr_t)pipe, (uintptr_t)pipe->up_callingxfer, 0, 0);
sys/dev/usb/usbdi.c
1094
cv_wait(&pipe->up_callingcv, pipe->up_dev->ud_bus->ub_lock);
sys/dev/usb/usbdi.c
1097
KASSERT(mutex_owned(pipe->up_dev->ud_bus->ub_lock));
sys/dev/usb/usbdi.c
1098
KASSERTMSG(pipe->up_abortlwp == curlwp, "pipe->up_abortlwp=%p",
sys/dev/usb/usbdi.c
1099
pipe->up_abortlwp);
sys/dev/usb/usbdi.c
1100
pipe->up_abortlwp = NULL;
sys/dev/usb/usbdi.c
1102
SDT_PROBE1(usb, device, pipe, abort__done, pipe);
sys/dev/usb/usbdi.c
1109
struct usbd_pipe *pipe = xfer->ux_pipe;
sys/dev/usb/usbdi.c
1110
struct usbd_bus *bus = pipe->up_dev->ud_bus;
sys/dev/usb/usbdi.c
1114
int repeat = pipe->up_repeat;
sys/dev/usb/usbdi.c
1118
"actlen = %jd", (uintptr_t)pipe, (uintptr_t)xfer, xfer->ux_status,
sys/dev/usb/usbdi.c
1121
KASSERT(polling || mutex_owned(pipe->up_dev->ud_bus->ub_lock));
sys/dev/usb/usbdi.c
1124
KASSERT(pipe != NULL);
sys/dev/usb/usbdi.c
1131
if (pipe->up_dev->ud_quirks &&
sys/dev/usb/usbdi.c
1132
pipe->up_dev->ud_quirks->uq_flags & UQ_MISS_OUT_ACK &&
sys/dev/usb/usbdi.c
1150
KASSERTMSG(!SIMPLEQ_EMPTY(&pipe->up_queue),
sys/dev/usb/usbdi.c
1151
"pipe %p is empty, but xfer %p wants to complete", pipe,
sys/dev/usb/usbdi.c
1153
KASSERTMSG(xfer == SIMPLEQ_FIRST(&pipe->up_queue),
sys/dev/usb/usbdi.c
1155
SIMPLEQ_FIRST(&pipe->up_queue));
sys/dev/usb/usbdi.c
1160
SIMPLEQ_REMOVE_HEAD(&pipe->up_queue, ux_next);
sys/dev/usb/usbdi.c
1163
(uintptr_t)xfer, repeat, (uintptr_t)SIMPLEQ_FIRST(&pipe->up_queue),
sys/dev/usb/usbdi.c
1167
++pipe->up_dev->ud_bus->ub_stats.uds_requests
sys/dev/usb/usbdi.c
1168
[pipe->up_endpoint->ue_edesc->bmAttributes & UE_XFERTYPE];
sys/dev/usb/usbdi.c
1179
(uintptr_t)pipe->up_methods->upm_done, 0, 0);
sys/dev/usb/usbdi.c
1181
pipe->up_methods->upm_done(xfer);
sys/dev/usb/usbdi.c
1198
KASSERT(pipe->up_callingxfer == NULL);
sys/dev/usb/usbdi.c
1199
pipe->up_callingxfer = xfer;
sys/dev/usb/usbdi.c
1200
mutex_exit(pipe->up_dev->ud_bus->ub_lock);
sys/dev/usb/usbdi.c
1201
if (!(pipe->up_flags & USBD_MPSAFE))
sys/dev/usb/usbdi.c
1208
if (!(pipe->up_flags & USBD_MPSAFE))
sys/dev/usb/usbdi.c
1210
mutex_enter(pipe->up_dev->ud_bus->ub_lock);
sys/dev/usb/usbdi.c
1211
KASSERT(pipe->up_callingxfer == xfer);
sys/dev/usb/usbdi.c
1212
pipe->up_callingxfer = NULL;
sys/dev/usb/usbdi.c
1213
cv_broadcast(&pipe->up_callingcv);
sys/dev/usb/usbdi.c
1228
if (erred && pipe->up_iface != NULL) /* not control pipe */
sys/dev/usb/usbdi.c
1229
pipe->up_running = 0;
sys/dev/usb/usbdi.c
1231
if (pipe->up_running && pipe->up_serialise)
sys/dev/usb/usbdi.c
1232
usbd_start_next(pipe);
sys/dev/usb/usbdi.c
1237
usbd_start_next(struct usbd_pipe *pipe)
sys/dev/usb/usbdi.c
1244
KASSERT(pipe != NULL);
sys/dev/usb/usbdi.c
1245
KASSERT(pipe->up_methods != NULL);
sys/dev/usb/usbdi.c
1246
KASSERT(pipe->up_methods->upm_start != NULL);
sys/dev/usb/usbdi.c
1247
KASSERT(pipe->up_serialise == true);
sys/dev/usb/usbdi.c
1249
int polling = pipe->up_dev->ud_bus->ub_usepolling;
sys/dev/usb/usbdi.c
1250
KASSERT(polling || mutex_owned(pipe->up_dev->ud_bus->ub_lock));
sys/dev/usb/usbdi.c
1253
xfer = SIMPLEQ_FIRST(&pipe->up_queue);
sys/dev/usb/usbdi.c
1254
USBHIST_CALLARGS(usbdebug, "pipe = %#jx, xfer = %#jx", (uintptr_t)pipe,
sys/dev/usb/usbdi.c
1257
pipe->up_running = 0;
sys/dev/usb/usbdi.c
1259
SDT_PROBE2(usb, device, pipe, start, pipe, xfer);
sys/dev/usb/usbdi.c
1260
err = pipe->up_methods->upm_start(xfer);
sys/dev/usb/usbdi.c
1264
pipe->up_running = 0;
sys/dev/usb/usbdi.c
1269
KASSERT(polling || mutex_owned(pipe->up_dev->ud_bus->ub_lock));
sys/dev/usb/usbdi.c
197
usbd_dump_queue(struct usbd_pipe *pipe)
sys/dev/usb/usbdi.c
202
USBHIST_CALLARGS(usbdebug, "pipe = %#jx", (uintptr_t)pipe, 0, 0, 0);
sys/dev/usb/usbdi.c
204
SIMPLEQ_FOREACH(xfer, &pipe->up_queue, ux_next) {
sys/dev/usb/usbdi.c
211
usbd_dump_pipe(struct usbd_pipe *pipe)
sys/dev/usb/usbdi.c
214
USBHIST_CALLARGS(usbdebug, "pipe = %#jx", (uintptr_t)pipe, 0, 0, 0);
sys/dev/usb/usbdi.c
216
if (pipe == NULL)
sys/dev/usb/usbdi.c
218
usbd_dump_iface(pipe->up_iface);
sys/dev/usb/usbdi.c
219
usbd_dump_device(pipe->up_dev);
sys/dev/usb/usbdi.c
220
usbd_dump_endpoint(pipe->up_endpoint);
sys/dev/usb/usbdi.c
223
pipe->up_running, pipe->up_aborting, 0, 0);
sys/dev/usb/usbdi.c
225
"interval = %jd", (uintptr_t)pipe->up_intrxfer, pipe->up_repeat,
sys/dev/usb/usbdi.c
226
pipe->up_interval, 0);
sys/dev/usb/usbdi.c
232
uint8_t flags, struct usbd_pipe **pipe)
sys/dev/usb/usbdi.c
234
return (usbd_open_pipe_ival(iface, address, flags, pipe,
sys/dev/usb/usbdi.c
240
uint8_t flags, struct usbd_pipe **pipe, int ival)
sys/dev/usb/usbdi.c
283
*pipe = p;
sys/dev/usb/usbdi.c
286
SDT_PROBE5(usb, device, pipe, open,
sys/dev/usb/usbdi.c
299
uint8_t flags, struct usbd_pipe **pipe,
sys/dev/usb/usbdi.c
324
*pipe = ipipe;
sys/dev/usb/usbdi.c
327
SDT_PROBE7(usb, device, pipe, open__intr,
sys/dev/usb/usbdi.c
342
usbd_close_pipe(struct usbd_pipe *pipe)
sys/dev/usb/usbdi.c
346
KASSERT(pipe != NULL);
sys/dev/usb/usbdi.c
348
usbd_lock_pipe(pipe);
sys/dev/usb/usbdi.c
349
SDT_PROBE1(usb, device, pipe, close, pipe);
sys/dev/usb/usbdi.c
350
if (!SIMPLEQ_EMPTY(&pipe->up_queue)) {
sys/dev/usb/usbdi.c
352
pipe->up_dev->ud_addr);
sys/dev/usb/usbdi.c
353
usbd_ar_pipe(pipe);
sys/dev/usb/usbdi.c
355
KASSERT(SIMPLEQ_EMPTY(&pipe->up_queue));
sys/dev/usb/usbdi.c
356
pipe->up_methods->upm_close(pipe);
sys/dev/usb/usbdi.c
357
usbd_unlock_pipe(pipe);
sys/dev/usb/usbdi.c
359
cv_destroy(&pipe->up_callingcv);
sys/dev/usb/usbdi.c
360
if (pipe->up_intrxfer)
sys/dev/usb/usbdi.c
361
usbd_destroy_xfer(pipe->up_intrxfer);
sys/dev/usb/usbdi.c
362
usb_rem_task_wait(pipe->up_dev, &pipe->up_async_task, USB_TASKQ_DRIVER,
sys/dev/usb/usbdi.c
364
usbd_endpoint_release(pipe->up_dev, pipe->up_endpoint);
sys/dev/usb/usbdi.c
365
if (pipe->up_iface)
sys/dev/usb/usbdi.c
366
usbd_iface_pipeunref(pipe->up_iface);
sys/dev/usb/usbdi.c
367
kmem_free(pipe, pipe->up_dev->ud_bus->ub_pipesize);
sys/dev/usb/usbdi.c
373
struct usbd_pipe *pipe = xfer->ux_pipe;
sys/dev/usb/usbdi.c
379
(uintptr_t)xfer, xfer->ux_flags, (uintptr_t)pipe, pipe->up_running);
sys/dev/usb/usbdi.c
385
usbd_dump_queue(pipe);
sys/dev/usb/usbdi.c
416
if (pipe->up_dev->ud_bus->ub_usepolling == 0)
sys/dev/usb/usbdi.c
417
usbd_lock_pipe(pipe);
sys/dev/usb/usbdi.c
418
if (pipe->up_aborting) {
sys/dev/usb/usbdi.c
424
KASSERT(pipe->up_dev->ud_bus->ub_usepolling == 0);
sys/dev/usb/usbdi.c
425
usbd_unlock_pipe(pipe);
sys/dev/usb/usbdi.c
433
SDT_PROBE2(usb, device, pipe, transfer__start, pipe, xfer);
sys/dev/usb/usbdi.c
438
SIMPLEQ_INSERT_TAIL(&pipe->up_queue, xfer, ux_next);
sys/dev/usb/usbdi.c
439
if (pipe->up_running && pipe->up_serialise) {
sys/dev/usb/usbdi.c
442
pipe->up_running = 1;
sys/dev/usb/usbdi.c
447
err = pipe->up_methods->upm_transfer(xfer);
sys/dev/usb/usbdi.c
449
SDT_PROBE3(usb, device, pipe, transfer__done, pipe, xfer, err);
sys/dev/usb/usbdi.c
451
if (pipe->up_dev->ud_bus->ub_usepolling == 0)
sys/dev/usb/usbdi.c
452
usbd_unlock_pipe(pipe);
sys/dev/usb/usbdi.c
462
if (pipe->up_dev->ud_bus->ub_usepolling == 0)
sys/dev/usb/usbdi.c
463
usbd_lock_pipe(pipe);
sys/dev/usb/usbdi.c
468
SIMPLEQ_REMOVE_HEAD(&pipe->up_queue, ux_next);
sys/dev/usb/usbdi.c
469
if (pipe->up_serialise)
sys/dev/usb/usbdi.c
470
usbd_start_next(pipe);
sys/dev/usb/usbdi.c
471
if (pipe->up_dev->ud_bus->ub_usepolling == 0)
sys/dev/usb/usbdi.c
472
usbd_unlock_pipe(pipe);
sys/dev/usb/usbdi.c
491
if (pipe->up_dev->ud_bus->ub_usepolling == 0)
sys/dev/usb/usbdi.c
492
usbd_lock_pipe(pipe);
sys/dev/usb/usbdi.c
494
if (pipe->up_dev->ud_bus->ub_usepolling)
sys/dev/usb/usbdi.c
501
err = cv_wait_sig(&xfer->ux_cv, pipe->up_dev->ud_bus->ub_lock);
sys/dev/usb/usbdi.c
503
cv_wait(&xfer->ux_cv, pipe->up_dev->ud_bus->ub_lock);
sys/dev/usb/usbdi.c
508
pipe->up_methods->upm_abort(xfer);
sys/dev/usb/usbdi.c
515
if (pipe->up_dev->ud_bus->ub_usepolling == 0)
sys/dev/usb/usbdi.c
516
usbd_unlock_pipe(pipe);
sys/dev/usb/usbdi.c
654
usbd_create_xfer(struct usbd_pipe *pipe, size_t len, unsigned int flags,
sys/dev/usb/usbdi.c
660
struct usbd_xfer *xfer = usbd_alloc_xfer(pipe->up_dev, nframes);
sys/dev/usb/usbdi.c
664
xfer->ux_pipe = pipe;
sys/dev/usb/usbdi.c
667
xfer->ux_methods = pipe->up_methods;
sys/dev/usb/usbdi.c
67
SDT_PROBE_DEFINE5(usb, device, pipe, open,
sys/dev/usb/usbdi.c
687
xfer, pipe, len, flags, nframes);
sys/dev/usb/usbdi.c
74
SDT_PROBE_DEFINE7(usb, device, pipe, open__intr,
sys/dev/usb/usbdi.c
816
usbd_abort_pipe(struct usbd_pipe *pipe)
sys/dev/usb/usbdi.c
819
usbd_suspend_pipe(pipe);
sys/dev/usb/usbdi.c
820
usbd_resume_pipe(pipe);
sys/dev/usb/usbdi.c
824
usbd_suspend_pipe(struct usbd_pipe *pipe)
sys/dev/usb/usbdi.c
827
usbd_lock_pipe(pipe);
sys/dev/usb/usbdi.c
828
usbd_ar_pipe(pipe);
sys/dev/usb/usbdi.c
829
usbd_unlock_pipe(pipe);
sys/dev/usb/usbdi.c
83
SDT_PROBE_DEFINE2(usb, device, pipe, transfer__start,
sys/dev/usb/usbdi.c
833
usbd_resume_pipe(struct usbd_pipe *pipe)
sys/dev/usb/usbdi.c
836
usbd_lock_pipe(pipe);
sys/dev/usb/usbdi.c
837
KASSERT(SIMPLEQ_EMPTY(&pipe->up_queue));
sys/dev/usb/usbdi.c
838
pipe->up_aborting = 0;
sys/dev/usb/usbdi.c
839
usbd_unlock_pipe(pipe);
sys/dev/usb/usbdi.c
843
usbd_clear_endpoint_stall(struct usbd_pipe *pipe)
sys/dev/usb/usbdi.c
845
struct usbd_device *dev = pipe->up_dev;
sys/dev/usb/usbdi.c
849
SDT_PROBE1(usb, device, pipe, clear__endpoint__stall, pipe);
sys/dev/usb/usbdi.c
855
SDT_PROBE1(usb, device, pipe, clear__endpoint__toggle, pipe);
sys/dev/usb/usbdi.c
856
pipe->up_methods->upm_cleartoggle(pipe);
sys/dev/usb/usbdi.c
859
pipe->up_endpoint->ue_edesc->bEndpointAddress, UF_ENDPOINT_HALT);
sys/dev/usb/usbdi.c
86
SDT_PROBE_DEFINE3(usb, device, pipe, transfer__done,
sys/dev/usb/usbdi.c
863
pipe->state = USBD_PIPE_ACTIVE;
sys/dev/usb/usbdi.c
873
struct usbd_pipe *pipe = arg;
sys/dev/usb/usbdi.c
874
struct usbd_device *dev = pipe->up_dev;
sys/dev/usb/usbdi.c
876
SDT_PROBE1(usb, device, pipe, clear__endpoint__stall, pipe);
sys/dev/usb/usbdi.c
877
SDT_PROBE1(usb, device, pipe, clear__endpoint__toggle, pipe);
sys/dev/usb/usbdi.c
878
pipe->up_methods->upm_cleartoggle(pipe);
sys/dev/usb/usbdi.c
881
pipe->up_endpoint->ue_edesc->bEndpointAddress, UF_ENDPOINT_HALT);
sys/dev/usb/usbdi.c
885
usbd_clear_endpoint_stall_async(struct usbd_pipe *pipe)
sys/dev/usb/usbdi.c
887
usb_add_task(pipe->up_dev, &pipe->up_async_task, USB_TASKQ_DRIVER);
sys/dev/usb/usbdi.c
891
usbd_clear_endpoint_toggle(struct usbd_pipe *pipe)
sys/dev/usb/usbdi.c
894
SDT_PROBE1(usb, device, pipe, clear__endpoint__toggle, pipe);
sys/dev/usb/usbdi.c
895
pipe->up_methods->upm_cleartoggle(pipe);
sys/dev/usb/usbdi.c
90
SDT_PROBE_DEFINE2(usb, device, pipe, start,
sys/dev/usb/usbdi.c
94
SDT_PROBE_DEFINE1(usb, device, pipe, close, "struct usbd_pipe *"/*pipe*/);
sys/dev/usb/usbdi.c
940
usbd_pipe2device_handle(struct usbd_pipe *pipe)
sys/dev/usb/usbdi.c
942
KASSERT(pipe != NULL);
sys/dev/usb/usbdi.c
944
return pipe->up_dev;
sys/dev/usb/usbdi.c
95
SDT_PROBE_DEFINE1(usb, device, pipe, abort__start,
sys/dev/usb/usbdi.c
97
SDT_PROBE_DEFINE1(usb, device, pipe, abort__done,
sys/dev/usb/usbdi.c
99
SDT_PROBE_DEFINE1(usb, device, pipe, clear__endpoint__stall,
sys/dev/usb/usbdi_util.c
645
usbd_bulk_transfer(struct usbd_xfer *xfer, struct usbd_pipe *pipe,
sys/dev/usb/usbdi_util.c
659
usbd_clear_endpoint_stall(pipe);
sys/dev/usb/usbdi_util.c
668
usbd_intr_transfer(struct usbd_xfer *xfer, struct usbd_pipe *pipe,
sys/dev/usb/usbdi_util.c
684
usbd_clear_endpoint_stall(pipe);
sys/dev/usb/usbroothub.c
354
struct usbd_pipe *pipe = xfer->ux_pipe;
sys/dev/usb/usbroothub.c
355
struct usbd_bus *bus = pipe->up_dev->ud_bus;
sys/dev/usb/usbroothub.c
605
roothub_ctrl_close(struct usbd_pipe *pipe)
sys/dev/usb/usbroothub.c
619
roothub_noop(struct usbd_pipe *pipe)
sys/dev/usb/usbroothub.c
79
static void roothub_noop(struct usbd_pipe *pipe);
sys/dev/usb/utoppy.c
514
utoppy_bulk_transfer(struct usbd_xfer *xfer, struct usbd_pipe *pipe,
sys/dev/usb/vhci.c
216
struct usbd_pipe pipe;
sys/dev/usb/vhci.c
386
vhci_open(struct usbd_pipe *pipe)
sys/dev/usb/vhci.c
388
struct usbd_device *dev = pipe->up_dev;
sys/dev/usb/vhci.c
390
usb_endpoint_descriptor_t *ed = pipe->up_endpoint->ue_edesc;
sys/dev/usb/vhci.c
404
pipe->up_methods = &roothub_ctrl_methods;
sys/dev/usb/vhci.c
408
pipe->up_methods = &vhci_root_intr_methods;
sys/dev/usb/vhci.c
417
pipe->up_methods = &vhci_device_ctrl_methods;
sys/dev/usb/vhci.c
674
vhci_device_ctrl_close(struct usbd_pipe *pipe)
sys/dev/usb/vhci.c
680
vhci_device_ctrl_cleartoggle(struct usbd_pipe *pipe)
sys/dev/usb/vhci.c
747
vhci_root_intr_close(struct usbd_pipe *pipe)
sys/dev/usb/vhci.c
749
vhci_softc_t *sc __diagused = pipe->up_dev->ud_bus->ub_hcpriv;
sys/dev/usb/vhci.c
763
vhci_root_intr_cleartoggle(struct usbd_pipe *pipe)
sys/dev/usb/xhci.c
1888
xhci_configure_endpoint(struct usbd_pipe *pipe)
sys/dev/usb/xhci.c
1890
struct xhci_softc * const sc = XHCI_PIPE2SC(pipe);
sys/dev/usb/xhci.c
1891
struct xhci_slot * const xs = pipe->up_dev->ud_hcpriv;
sys/dev/usb/xhci.c
1893
const u_int dci = xhci_ep_get_dci(pipe->up_endpoint->ue_edesc);
sys/dev/usb/xhci.c
1900
xs->xs_idx, dci, pipe->up_endpoint->ue_edesc->bEndpointAddress,
sys/dev/usb/xhci.c
1901
pipe->up_endpoint->ue_edesc->bmAttributes);
sys/dev/usb/xhci.c
1908
xhci_setup_ctx(pipe);
sys/dev/usb/xhci.c
1931
xhci_unconfigure_endpoint(struct usbd_pipe *pipe)
sys/dev/usb/xhci.c
1934
struct xhci_slot * const xs = pipe->up_dev->ud_hcpriv;
sys/dev/usb/xhci.c
1946
xhci_reset_endpoint(struct usbd_pipe *pipe)
sys/dev/usb/xhci.c
1948
struct xhci_softc * const sc = XHCI_PIPE2SC(pipe);
sys/dev/usb/xhci.c
1949
struct xhci_slot * const xs = pipe->up_dev->ud_hcpriv;
sys/dev/usb/xhci.c
1950
const u_int dci = xhci_ep_get_dci(pipe->up_endpoint->ue_edesc);
sys/dev/usb/xhci.c
1966
__func__, pipe->up_endpoint->ue_edesc->bEndpointAddress);
sys/dev/usb/xhci.c
2000
xhci_stop_endpoint(struct usbd_pipe *pipe)
sys/dev/usb/xhci.c
2002
struct xhci_softc * const sc = XHCI_PIPE2SC(pipe);
sys/dev/usb/xhci.c
2003
struct xhci_slot * const xs = pipe->up_dev->ud_hcpriv;
sys/dev/usb/xhci.c
2004
const u_int dci = xhci_ep_get_dci(pipe->up_endpoint->ue_edesc);
sys/dev/usb/xhci.c
2023
xhci_set_dequeue(struct usbd_pipe *pipe)
sys/dev/usb/xhci.c
2025
struct xhci_softc * const sc = XHCI_PIPE2SC(pipe);
sys/dev/usb/xhci.c
2026
struct xhci_slot * const xs = pipe->up_dev->ud_hcpriv;
sys/dev/usb/xhci.c
2027
const u_int dci = xhci_ep_get_dci(pipe->up_endpoint->ue_edesc);
sys/dev/usb/xhci.c
2048
__func__, pipe->up_endpoint->ue_edesc->bEndpointAddress);
sys/dev/usb/xhci.c
2058
xhci_open(struct usbd_pipe *pipe)
sys/dev/usb/xhci.c
2060
struct usbd_device * const dev = pipe->up_dev;
sys/dev/usb/xhci.c
2061
struct xhci_pipe * const xpipe = (struct xhci_pipe *)pipe;
sys/dev/usb/xhci.c
2063
struct xhci_slot * const xs = pipe->up_dev->ud_hcpriv;
sys/dev/usb/xhci.c
2064
usb_endpoint_descriptor_t * const ed = pipe->up_endpoint->ue_edesc;
sys/dev/usb/xhci.c
2085
pipe->up_methods = &roothub_ctrl_methods;
sys/dev/usb/xhci.c
2088
pipe->up_methods = &xhci_root_intr_methods;
sys/dev/usb/xhci.c
2091
pipe->up_methods = NULL;
sys/dev/usb/xhci.c
2100
pipe, USB_TASKQ_MPSAFE);
sys/dev/usb/xhci.c
2104
pipe->up_methods = &xhci_device_ctrl_methods;
sys/dev/usb/xhci.c
2107
pipe->up_methods = &xhci_device_isoc_methods;
sys/dev/usb/xhci.c
2108
pipe->up_serialise = false;
sys/dev/usb/xhci.c
2112
pipe->up_methods = &xhci_device_bulk_methods;
sys/dev/usb/xhci.c
2115
pipe->up_methods = &xhci_device_intr_methods;
sys/dev/usb/xhci.c
2134
return xhci_configure_endpoint(pipe);
sys/dev/usb/xhci.c
2145
xhci_close_pipe(struct usbd_pipe *pipe)
sys/dev/usb/xhci.c
2148
container_of(pipe, struct xhci_pipe, xp_pipe);
sys/dev/usb/xhci.c
2149
struct xhci_softc * const sc = XHCI_PIPE2SC(pipe);
sys/dev/usb/xhci.c
2150
struct xhci_slot * const xs = pipe->up_dev->ud_hcpriv;
sys/dev/usb/xhci.c
2151
usb_endpoint_descriptor_t * const ed = pipe->up_endpoint->ue_edesc;
sys/dev/usb/xhci.c
2158
usb_rem_task_wait(pipe->up_dev, &xp->xp_async_task, USB_TASKQ_HC,
sys/dev/usb/xhci.c
2169
(uintptr_t)pipe, xs->xs_idx, dci, 0);
sys/dev/usb/xhci.c
2174
if (pipe->up_dev->ud_depth == 0)
sys/dev/usb/xhci.c
2185
(void)xhci_stop_endpoint(pipe);
sys/dev/usb/xhci.c
2261
xhci_pipe_restart(struct usbd_pipe *pipe)
sys/dev/usb/xhci.c
2263
struct xhci_softc * const sc = XHCI_PIPE2SC(pipe);
sys/dev/usb/xhci.c
2264
struct xhci_slot * const xs = pipe->up_dev->ud_hcpriv;
sys/dev/usb/xhci.c
2265
const u_int dci = xhci_ep_get_dci(pipe->up_endpoint->ue_edesc);
sys/dev/usb/xhci.c
2269
(uintptr_t)pipe, xs->xs_idx, dci, 0);
sys/dev/usb/xhci.c
2283
xhci_reset_endpoint(pipe);
sys/dev/usb/xhci.c
2288
xhci_stop_endpoint(pipe);
sys/dev/usb/xhci.c
2297
pipe->up_endpoint->ue_edesc->bEndpointAddress);
sys/dev/usb/xhci.c
2301
pipe->up_endpoint->ue_edesc->bEndpointAddress);
sys/dev/usb/xhci.c
2304
xhci_set_dequeue(pipe);
sys/dev/usb/xhci.c
2312
struct usbd_pipe * const pipe = cookie;
sys/dev/usb/xhci.c
2313
struct xhci_softc * const sc = XHCI_PIPE2SC(pipe);
sys/dev/usb/xhci.c
2314
struct xhci_slot * const xs = pipe->up_dev->ud_hcpriv;
sys/dev/usb/xhci.c
2315
const u_int dci = xhci_ep_get_dci(pipe->up_endpoint->ue_edesc);
sys/dev/usb/xhci.c
2321
(uintptr_t)sc, (uintptr_t)pipe, 0, 0);
sys/dev/usb/xhci.c
2325
xhci_pipe_restart(pipe);
sys/dev/usb/xhci.c
2332
xfer = SIMPLEQ_FIRST(&pipe->up_queue);
sys/dev/usb/xhci.c
2347
if (pipe->up_methods->upm_start != NULL)
sys/dev/usb/xhci.c
2348
(*pipe->up_methods->upm_start)(xfer);
sys/dev/usb/xhci.c
2359
xhci_pipe_restart_async(struct usbd_pipe *pipe)
sys/dev/usb/xhci.c
2362
container_of(pipe, struct xhci_pipe, xp_pipe);
sys/dev/usb/xhci.c
2363
struct xhci_softc * const sc = XHCI_PIPE2SC(pipe);
sys/dev/usb/xhci.c
2364
struct xhci_slot * const xs = pipe->up_dev->ud_hcpriv;
sys/dev/usb/xhci.c
2365
const u_int dci = xhci_ep_get_dci(pipe->up_endpoint->ue_edesc);
sys/dev/usb/xhci.c
2369
XHCIHIST_CALLARGS("pipe %#jx", (uintptr_t)pipe, 0, 0, 0);
sys/dev/usb/xhci.c
2374
usb_add_task(pipe->up_dev, &xp->xp_async_task, USB_TASKQ_HC);
sys/dev/usb/xhci.c
3609
xhci_setup_ctx(struct usbd_pipe *pipe)
sys/dev/usb/xhci.c
3611
struct xhci_softc * const sc = XHCI_PIPE2SC(pipe);
sys/dev/usb/xhci.c
3612
struct usbd_device *dev = pipe->up_dev;
sys/dev/usb/xhci.c
3614
usb_endpoint_descriptor_t * const ed = pipe->up_endpoint->ue_edesc;
sys/dev/usb/xhci.c
3622
(uintptr_t)pipe, xs->xs_idx, dci, speed);
sys/dev/usb/xhci.c
3639
xhci_setup_route(pipe, cp);
sys/dev/usb/xhci.c
3640
xhci_setup_tthub(pipe, cp);
sys/dev/usb/xhci.c
3663
xhci_setup_maxburst(pipe, cp);
sys/dev/usb/xhci.c
3698
xhci_setup_route(struct usbd_pipe *pipe, uint32_t *cp)
sys/dev/usb/xhci.c
3700
struct xhci_softc * const sc = XHCI_PIPE2SC(pipe);
sys/dev/usb/xhci.c
3701
struct usbd_device *dev = pipe->up_dev;
sys/dev/usb/xhci.c
3770
xhci_setup_tthub(struct usbd_pipe *pipe, uint32_t *cp)
sys/dev/usb/xhci.c
3772
struct usbd_device *dev = pipe->up_dev;
sys/dev/usb/xhci.c
3858
xhci_get_essc_desc(struct usbd_pipe *pipe)
sys/dev/usb/xhci.c
3860
struct usbd_device *dev = pipe->up_dev;
sys/dev/usb/xhci.c
3861
usb_endpoint_descriptor_t * const ed = pipe->up_endpoint->ue_edesc;
sys/dev/usb/xhci.c
3903
xhci_setup_maxburst(struct usbd_pipe *pipe, uint32_t *cp)
sys/dev/usb/xhci.c
3905
struct xhci_pipe * const xpipe = (struct xhci_pipe *)pipe;
sys/dev/usb/xhci.c
3906
struct xhci_softc * const sc = XHCI_PIPE2SC(pipe);
sys/dev/usb/xhci.c
3907
struct usbd_device * const dev = pipe->up_dev;
sys/dev/usb/xhci.c
3908
usb_endpoint_descriptor_t * const ed = pipe->up_endpoint->ue_edesc;
sys/dev/usb/xhci.c
3916
xhci_get_essc_desc(pipe);
sys/dev/usb/xhci.c
3952
if (pipe->up_interval == USBD_DEFAULT_INTERVAL)
sys/dev/usb/xhci.c
3955
ival = pipe->up_interval;
sys/dev/usb/xhci.c
4080
xhci_noop(struct usbd_pipe *pipe)
sys/dev/usb/xhci.c
4427
xhci_root_intr_close(struct usbd_pipe *pipe)
sys/dev/usb/xhci.c
4429
struct xhci_softc * const sc __diagused = XHCI_PIPE2SC(pipe);
sys/dev/usb/xhci.c
4430
const struct usbd_xfer *xfer __diagused = pipe->up_intrxfer;
sys/dev/usb/xhci.c
4585
xhci_device_ctrl_close(struct usbd_pipe *pipe)
sys/dev/usb/xhci.c
4589
xhci_close_pipe(pipe);
sys/dev/usb/xhci.c
4722
xhci_device_isoc_close(struct usbd_pipe *pipe)
sys/dev/usb/xhci.c
4726
xhci_close_pipe(pipe);
sys/dev/usb/xhci.c
4869
xhci_device_bulk_close(struct usbd_pipe *pipe)
sys/dev/usb/xhci.c
4873
xhci_close_pipe(pipe);
sys/dev/usb/xhci.c
4987
xhci_device_intr_close(struct usbd_pipe *pipe)
sys/dev/usb/xhci.c
4992
XHCIHIST_CALLARGS("%#jx", (uintptr_t)pipe, 0, 0, 0);
sys/dev/usb/xhci.c
4994
xhci_close_pipe(pipe);
sys/dev/usb/xhcivar.h
59
#define XHCI_PIPE2SC(pipe) XHCI_BUS2SC((pipe)->up_dev->ud_bus)
sys/kern/sys_pipe.c
1010
SLIST_INIT(&pipe->pipe_sel.sel_klist);
sys/kern/sys_pipe.c
1012
KASSERT((pipe->pipe_state & PIPE_LOCKFL) == 0);
sys/kern/sys_pipe.c
1020
pipe->pipe_pgid = 0;
sys/kern/sys_pipe.c
1021
pipe->pipe_state = PIPE_SIGNALR;
sys/kern/sys_pipe.c
1022
pipe->pipe_peer = NULL;
sys/kern/sys_pipe.c
1023
pipe->pipe_lock = NULL;
sys/kern/sys_pipe.c
1024
pipe_free_kmem(pipe);
sys/kern/sys_pipe.c
1025
if (pipe->pipe_kmem != 0) {
sys/kern/sys_pipe.c
1026
pool_cache_put(pipe_rd_cache, pipe);
sys/kern/sys_pipe.c
1028
pool_cache_put(pipe_wr_cache, pipe);
sys/kern/sys_pipe.c
1035
struct pipe *pipe;
sys/kern/sys_pipe.c
1038
pipe = ((file_t *)kn->kn_obj)->f_pipe;
sys/kern/sys_pipe.c
1039
lock = pipe->pipe_lock;
sys/kern/sys_pipe.c
1046
pipe = pipe->pipe_peer;
sys/kern/sys_pipe.c
1049
if (pipe == NULL) {
sys/kern/sys_pipe.c
1060
KASSERT(kn->kn_hook == pipe);
sys/kern/sys_pipe.c
1061
selremove_knote(&pipe->pipe_sel, kn);
sys/kern/sys_pipe.c
1068
struct pipe *rpipe = ((file_t *)kn->kn_obj)->f_pipe;
sys/kern/sys_pipe.c
1069
struct pipe *wpipe;
sys/kern/sys_pipe.c
1095
struct pipe *rpipe = ((file_t *)kn->kn_obj)->f_pipe;
sys/kern/sys_pipe.c
1096
struct pipe *wpipe;
sys/kern/sys_pipe.c
1136
struct pipe *pipe;
sys/kern/sys_pipe.c
1139
pipe = ((file_t *)kn->kn_obj)->f_pipe;
sys/kern/sys_pipe.c
1140
lock = pipe->pipe_lock;
sys/kern/sys_pipe.c
1150
pipe = pipe->pipe_peer;
sys/kern/sys_pipe.c
1151
if (pipe == NULL) {
sys/kern/sys_pipe.c
1162
kn->kn_hook = pipe;
sys/kern/sys_pipe.c
1163
selrecord_knote(&pipe->pipe_sel, kn);
sys/kern/sys_pipe.c
129
static void pipeclose(struct pipe *);
sys/kern/sys_pipe.c
130
static void pipe_free_kmem(struct pipe *);
sys/kern/sys_pipe.c
131
static int pipe_create(struct pipe **, pool_cache_t, struct timespec *);
sys/kern/sys_pipe.c
132
static int pipelock(struct pipe *, bool);
sys/kern/sys_pipe.c
133
static inline void pipeunlock(struct pipe *);
sys/kern/sys_pipe.c
134
static void pipeselwakeup(struct pipe *, struct pipe *, int);
sys/kern/sys_pipe.c
135
static int pipespace(struct pipe *, int);
sys/kern/sys_pipe.c
147
pipe_wr_cache = pool_cache_init(sizeof(struct pipe), 0, 0, 0, "pipewr",
sys/kern/sys_pipe.c
152
pipe_rd_cache = pool_cache_init(sizeof(struct pipe), 0, 0, 0, "piperd",
sys/kern/sys_pipe.c
160
struct pipe *pipe;
sys/kern/sys_pipe.c
163
pipe = obj;
sys/kern/sys_pipe.c
165
memset(pipe, 0, sizeof(struct pipe));
sys/kern/sys_pipe.c
171
pipe->pipe_kmem = va;
sys/kern/sys_pipe.c
174
cv_init(&pipe->pipe_rcv, "pipe_rd");
sys/kern/sys_pipe.c
175
cv_init(&pipe->pipe_wcv, "pipe_wr");
sys/kern/sys_pipe.c
176
cv_init(&pipe->pipe_draincv, "pipe_drn");
sys/kern/sys_pipe.c
177
cv_init(&pipe->pipe_lkcv, "pipe_lk");
sys/kern/sys_pipe.c
178
selinit(&pipe->pipe_sel);
sys/kern/sys_pipe.c
179
pipe->pipe_state = PIPE_SIGNALR;
sys/kern/sys_pipe.c
187
struct pipe *pipe;
sys/kern/sys_pipe.c
189
pipe = obj;
sys/kern/sys_pipe.c
191
cv_destroy(&pipe->pipe_rcv);
sys/kern/sys_pipe.c
192
cv_destroy(&pipe->pipe_wcv);
sys/kern/sys_pipe.c
193
cv_destroy(&pipe->pipe_draincv);
sys/kern/sys_pipe.c
194
cv_destroy(&pipe->pipe_lkcv);
sys/kern/sys_pipe.c
195
seldestroy(&pipe->pipe_sel);
sys/kern/sys_pipe.c
196
if (pipe->pipe_kmem != 0) {
sys/kern/sys_pipe.c
197
uvm_km_free(kernel_map, pipe->pipe_kmem, PIPE_SIZE,
sys/kern/sys_pipe.c
209
struct pipe *rpipe, *wpipe;
sys/kern/sys_pipe.c
274
pipespace(struct pipe *pipe, int size)
sys/kern/sys_pipe.c
282
if (size == PIPE_SIZE && pipe->pipe_kmem != 0) {
sys/kern/sys_pipe.c
283
buffer = (void *)pipe->pipe_kmem;
sys/kern/sys_pipe.c
293
pipe_free_kmem(pipe);
sys/kern/sys_pipe.c
294
pipe->pipe_buffer.buffer = buffer;
sys/kern/sys_pipe.c
295
pipe->pipe_buffer.size = size;
sys/kern/sys_pipe.c
296
pipe->pipe_buffer.in = 0;
sys/kern/sys_pipe.c
297
pipe->pipe_buffer.out = 0;
sys/kern/sys_pipe.c
298
pipe->pipe_buffer.cnt = 0;
sys/kern/sys_pipe.c
306
pipe_create(struct pipe **pipep, pool_cache_t cache, struct timespec *nt)
sys/kern/sys_pipe.c
308
struct pipe *pipe;
sys/kern/sys_pipe.c
311
pipe = pool_cache_get(cache, PR_WAITOK);
sys/kern/sys_pipe.c
312
KASSERT(pipe != NULL);
sys/kern/sys_pipe.c
313
*pipep = pipe;
sys/kern/sys_pipe.c
315
pipe->pipe_atime = pipe->pipe_mtime = pipe->pipe_btime = *nt;
sys/kern/sys_pipe.c
316
pipe->pipe_lock = NULL;
sys/kern/sys_pipe.c
318
error = pipespace(pipe, PIPE_SIZE);
sys/kern/sys_pipe.c
320
pipe->pipe_buffer.buffer = NULL;
sys/kern/sys_pipe.c
321
pipe->pipe_buffer.size = 0;
sys/kern/sys_pipe.c
322
pipe->pipe_buffer.in = 0;
sys/kern/sys_pipe.c
323
pipe->pipe_buffer.out = 0;
sys/kern/sys_pipe.c
324
pipe->pipe_buffer.cnt = 0;
sys/kern/sys_pipe.c
334
pipelock(struct pipe *pipe, bool catch_p)
sys/kern/sys_pipe.c
338
KASSERT(mutex_owned(pipe->pipe_lock));
sys/kern/sys_pipe.c
340
while (pipe->pipe_state & PIPE_LOCKFL) {
sys/kern/sys_pipe.c
342
error = cv_wait_sig(&pipe->pipe_lkcv, pipe->pipe_lock);
sys/kern/sys_pipe.c
347
cv_wait(&pipe->pipe_lkcv, pipe->pipe_lock);
sys/kern/sys_pipe.c
350
pipe->pipe_state |= PIPE_LOCKFL;
sys/kern/sys_pipe.c
359
pipeunlock(struct pipe *pipe)
sys/kern/sys_pipe.c
362
KASSERT(pipe->pipe_state & PIPE_LOCKFL);
sys/kern/sys_pipe.c
364
pipe->pipe_state &= ~PIPE_LOCKFL;
sys/kern/sys_pipe.c
365
cv_signal(&pipe->pipe_lkcv);
sys/kern/sys_pipe.c
373
pipeselwakeup(struct pipe *selp, struct pipe *sigp, int code)
sys/kern/sys_pipe.c
410
struct pipe *rpipe = fp->f_pipe;
sys/kern/sys_pipe.c
567
struct pipe *wpipe, *rpipe;
sys/kern/sys_pipe.c
758
struct pipe *pipe = fp->f_pipe;
sys/kern/sys_pipe.c
759
kmutex_t *lock = pipe->pipe_lock;
sys/kern/sys_pipe.c
769
pipe->pipe_state |= PIPE_ASYNC;
sys/kern/sys_pipe.c
771
pipe->pipe_state &= ~PIPE_ASYNC;
sys/kern/sys_pipe.c
778
*(int *)data = pipe->pipe_buffer.cnt;
sys/kern/sys_pipe.c
785
pipe = pipe->pipe_peer;
sys/kern/sys_pipe.c
786
if (pipe == NULL)
sys/kern/sys_pipe.c
789
*(int *)data = pipe->pipe_buffer.cnt;
sys/kern/sys_pipe.c
796
pipe = pipe->pipe_peer;
sys/kern/sys_pipe.c
797
if (pipe == NULL)
sys/kern/sys_pipe.c
800
*(int *)data = pipe->pipe_buffer.size -
sys/kern/sys_pipe.c
801
pipe->pipe_buffer.cnt;
sys/kern/sys_pipe.c
807
return fsetown(&pipe->pipe_pgid, cmd, data);
sys/kern/sys_pipe.c
811
return fgetown(pipe->pipe_pgid, cmd, data);
sys/kern/sys_pipe.c
820
struct pipe *rpipe = fp->f_pipe;
sys/kern/sys_pipe.c
821
struct pipe *wpipe;
sys/kern/sys_pipe.c
864
struct pipe *pipe = fp->f_pipe;
sys/kern/sys_pipe.c
866
mutex_enter(pipe->pipe_lock);
sys/kern/sys_pipe.c
869
ub->st_blksize = pipe->pipe_buffer.size;
sys/kern/sys_pipe.c
870
if (ub->st_blksize == 0 && pipe->pipe_peer)
sys/kern/sys_pipe.c
871
ub->st_blksize = pipe->pipe_peer->pipe_buffer.size;
sys/kern/sys_pipe.c
872
ub->st_size = pipe->pipe_buffer.cnt;
sys/kern/sys_pipe.c
874
ub->st_atimespec = pipe->pipe_atime;
sys/kern/sys_pipe.c
875
ub->st_mtimespec = pipe->pipe_mtime;
sys/kern/sys_pipe.c
876
ub->st_ctimespec = ub->st_birthtimespec = pipe->pipe_btime;
sys/kern/sys_pipe.c
884
mutex_exit(pipe->pipe_lock);
sys/kern/sys_pipe.c
891
struct pipe *pipe = fp->f_pipe;
sys/kern/sys_pipe.c
894
pipeclose(pipe);
sys/kern/sys_pipe.c
901
struct pipe *pipe = fp->f_pipe;
sys/kern/sys_pipe.c
908
mutex_enter(pipe->pipe_lock);
sys/kern/sys_pipe.c
909
pipe->pipe_state |= PIPE_RESTART;
sys/kern/sys_pipe.c
912
cv_broadcast(&pipe->pipe_rcv);
sys/kern/sys_pipe.c
913
cv_broadcast(&pipe->pipe_wcv);
sys/kern/sys_pipe.c
914
mutex_exit(pipe->pipe_lock);
sys/kern/sys_pipe.c
938
pipe_free_kmem(struct pipe *pipe)
sys/kern/sys_pipe.c
941
if (pipe->pipe_buffer.buffer != NULL) {
sys/kern/sys_pipe.c
942
if (pipe->pipe_buffer.size > PIPE_SIZE) {
sys/kern/sys_pipe.c
945
if (pipe->pipe_buffer.buffer != (void *)pipe->pipe_kmem) {
sys/kern/sys_pipe.c
947
(vaddr_t)pipe->pipe_buffer.buffer,
sys/kern/sys_pipe.c
948
pipe->pipe_buffer.size, UVM_KMF_PAGEABLE);
sys/kern/sys_pipe.c
950
-pipe->pipe_buffer.size);
sys/kern/sys_pipe.c
952
pipe->pipe_buffer.buffer = NULL;
sys/kern/sys_pipe.c
960
pipeclose(struct pipe *pipe)
sys/kern/sys_pipe.c
963
struct pipe *ppipe;
sys/kern/sys_pipe.c
965
if (pipe == NULL)
sys/kern/sys_pipe.c
968
KASSERT(cv_is_valid(&pipe->pipe_rcv));
sys/kern/sys_pipe.c
969
KASSERT(cv_is_valid(&pipe->pipe_wcv));
sys/kern/sys_pipe.c
970
KASSERT(cv_is_valid(&pipe->pipe_draincv));
sys/kern/sys_pipe.c
971
KASSERT(cv_is_valid(&pipe->pipe_lkcv));
sys/kern/sys_pipe.c
973
lock = pipe->pipe_lock;
sys/kern/sys_pipe.c
979
pipeselwakeup(pipe, pipe, POLL_HUP);
sys/kern/sys_pipe.c
985
pipe->pipe_state |= PIPE_EOF;
sys/kern/sys_pipe.c
986
if (pipe->pipe_busy) {
sys/kern/sys_pipe.c
987
while (pipe->pipe_busy) {
sys/kern/sys_pipe.c
988
cv_broadcast(&pipe->pipe_wcv);
sys/kern/sys_pipe.c
989
cv_wait_sig(&pipe->pipe_draincv, lock);
sys/kern/sys_pipe.c
996
if ((ppipe = pipe->pipe_peer) != NULL) {
sys/rump/dev/lib/libugenhc/ugenhc.c
122
#define UGENHC_PIPE2SC(pipe) UGENHC_BUS2SC((pipe)->up_dev->ud_bus)
sys/rump/dev/lib/libugenhc/ugenhc.c
123
#define UGENHC_XFER2SC(pipe) UGENHC_BUS2SC((xfer)->ux_bus)
sys/rump/dev/lib/libugenhc/ugenhc.c
415
rumpusb_device_ctrl_close(struct usbd_pipe *pipe)
sys/rump/dev/lib/libugenhc/ugenhc.c
421
rumpusb_device_ctrl_cleartoggle(struct usbd_pipe *pipe)
sys/rump/dev/lib/libugenhc/ugenhc.c
546
rumpusb_root_intr_close(struct usbd_pipe *pipe)
sys/rump/dev/lib/libugenhc/ugenhc.c
552
rumpusb_root_intr_cleartoggle(struct usbd_pipe *pipe)
sys/rump/dev/lib/libugenhc/ugenhc.c
679
struct usbd_pipe *pipe = arg;
sys/rump/dev/lib/libugenhc/ugenhc.c
680
struct ugenhc_softc *sc = UGENHC_PIPE2SC(pipe);
sys/rump/dev/lib/libugenhc/ugenhc.c
684
struct usbd_xfer *xfer = SIMPLEQ_FIRST(&pipe->up_queue);
sys/rump/dev/lib/libugenhc/ugenhc.c
686
} while (!SIMPLEQ_EMPTY(&pipe->up_queue));
sys/rump/dev/lib/libugenhc/ugenhc.c
726
rumpusb_device_bulk_close(struct usbd_pipe *pipe)
sys/rump/dev/lib/libugenhc/ugenhc.c
728
struct ugenhc_softc *sc = UGENHC_PIPE2SC(pipe);
sys/rump/dev/lib/libugenhc/ugenhc.c
729
int endpt = pipe->up_endpoint->ue_edesc->bEndpointAddress;
sys/rump/dev/lib/libugenhc/ugenhc.c
736
while ((xfer = SIMPLEQ_FIRST(&pipe->up_queue)) != NULL)
sys/rump/dev/lib/libugenhc/ugenhc.c
745
rumpusb_device_bulk_cleartoggle(struct usbd_pipe *pipe)
sys/rump/dev/lib/libugenhc/ugenhc.c
766
ugenhc_open(struct usbd_pipe *pipe)
sys/rump/dev/lib/libugenhc/ugenhc.c
768
struct usbd_device *dev = pipe->up_dev;
sys/rump/dev/lib/libugenhc/ugenhc.c
769
struct ugenhc_softc *sc = UGENHC_PIPE2SC(pipe);
sys/rump/dev/lib/libugenhc/ugenhc.c
770
usb_endpoint_descriptor_t *ed = pipe->up_endpoint->ue_edesc;
sys/rump/dev/lib/libugenhc/ugenhc.c
781
pipe->up_methods = &roothub_ctrl_methods;
sys/rump/dev/lib/libugenhc/ugenhc.c
784
pipe->up_methods = &rumpusb_root_intr_methods;
sys/rump/dev/lib/libugenhc/ugenhc.c
793
pipe->up_methods = &rumpusb_device_ctrl_methods;
sys/rump/dev/lib/libugenhc/ugenhc.c
798
pipe->up_methods = &rumpusb_device_bulk_methods;
sys/rump/dev/lib/libugenhc/ugenhc.c
799
endpt = pipe->up_endpoint->ue_edesc->bEndpointAddress;
sys/rump/dev/lib/libugenhc/ugenhc.c
885
struct usbd_pipe pipe;
sys/rump/librump/rumpkern/rump_syscalls.c
6703
__weak_alias(pipe,rump_sys_pipe);
sys/rump/net/lib/libvirtif/virtif_user.c
213
if (pipe(viu->viu_pipe) == -1) {
sys/rump/net/lib/libwg/wg_user.c
266
if (pipe(wgu->wgu_pipe) == -1) {
sys/sys/file.h
112
struct pipe *fd_pipe; // DTYPE_PIPE
sys/sys/pipe.h
101
struct pipe *pipe_peer; /* link with other direction */
tests/dev/audio/audiotest.c
4340
r = pipe(pd);
tests/fs/common/fstest_lfs.c
221
FILE *pipe, *err;
tests/fs/common/fstest_lfs.c
230
pipe = popen(cmd, "r");
tests/fs/common/fstest_lfs.c
234
while (fgets(s, MAXPATHLEN, pipe) != NULL) {
tests/fs/common/fstest_lfs.c
249
pclose(pipe);
tests/fs/common/fstest_nfs.c
109
if (pipe(pipes) == -1)
tests/fs/lfs/util.c
142
FILE *pipe;
tests/fs/lfs/util.c
148
pipe = popen(cmd, "r");
tests/fs/lfs/util.c
149
while (fgets(s, MAXLINE, pipe) != NULL) {
tests/fs/lfs/util.c
161
pclose(pipe);
tests/fs/lfs/util.c
174
FILE *pipe;
tests/fs/lfs/util.c
176
pipe = popen("dumplfs -S -s 2 -s 1 -s 0 " IMGNAME, "r");
tests/fs/lfs/util.c
177
while (fgets(s, MAXLINE, pipe) != NULL)
tests/fs/lfs/util.c
179
pclose(pipe);
tests/fs/lfs/util.c
19
FILE *pipe;
tests/fs/lfs/util.c
35
pipe = fopen(LOGFILE, "r");
tests/fs/lfs/util.c
36
if (pipe == NULL)
tests/fs/lfs/util.c
38
while (fgets(buf, MAXLINE, pipe) != NULL) {
tests/fs/lfs/util.c
42
while (fgets(buf, MAXLINE, pipe) != NULL)
tests/fs/lfs/util.c
44
fclose(pipe);
tests/kernel/kqueue/read/t_pipe.c
46
ATF_TC(pipe);
tests/kernel/kqueue/read/t_pipe.c
47
ATF_TC_HEAD(pipe, tc)
tests/kernel/kqueue/read/t_pipe.c
51
ATF_TC_BODY(pipe, tc)
tests/kernel/kqueue/read/t_pipe.c
58
RL(pipe(fds));
tests/kernel/kqueue/read/t_pipe.c
81
ATF_TP_ADD_TC(tp, pipe);
tests/kernel/kqueue/t_scan.c
89
ATF_REQUIRE(pipe(p) == 0);
tests/kernel/kqueue/write/t_pipe.c
127
RL(pipe(fds));
tests/kernel/kqueue/write/t_pipe.c
62
RL(pipe(fds));
tests/kernel/kqueue/write/t_pipe.c
88
RL(pipe(fds));
tests/kernel/t_execregs.c
140
RL(pipe(pipefd));
tests/kernel/t_execregs.c
178
RL(pipe(pipefd));
tests/kernel/t_lockf.c
136
ATF_REQUIRE_MSG(pipe(pipe_fd) == 0, "pipe: %s", strerror(errno));
tests/kernel/t_signal_and_sp.c
88
RL(pipe(fd));
tests/lib/libc/gen/execve/t_execve.c
83
RL(pipe(fd));
tests/lib/libc/gen/posix_spawn/t_spawnattr.c
119
RL(pipe(pfd));
tests/lib/libc/gen/t_arc4random.c
422
RL(pipe(fd));
tests/lib/libc/misc/t_ubsan.c
82
ATF_REQUIRE_EQ(pipe(filedes), 0);
tests/lib/libc/sys/msg.h
47
if (pipe(fds->pfd) == -1)
tests/lib/libc/sys/msg.h
49
if (pipe(fds->cfd) == -1) {
tests/lib/libc/sys/t_fsync.c
71
ATF_REQUIRE(pipe(fd) == 0);
tests/lib/libc/sys/t_pipe.c
95
RL(pipe(pp));
tests/lib/libc/sys/t_poll.c
112
RL(pipe(pf));
tests/lib/libc/sys/t_poll.c
170
RL(pipe(fds));
tests/lib/libc/sys/t_poll.c
990
RL(pipe(p));
tests/lib/libc/sys/t_pollts.c
63
ATF_REQUIRE_EQ(pipe(fds), 0);
tests/lib/libc/sys/t_posix_fadvise.c
99
RL(pipe(pipe_fds));
tests/lib/libc/sys/t_ptrace.c
169
RL(pipe(fds_toparent));
tests/lib/libc/sys/t_ptrace.c
170
RL(pipe(fds_fromparent));
tests/lib/libc/sys/t_ptrace_kill.c
97
SYSCALL(pipe(fdto), 0);
tests/lib/libc/sys/t_ptrace_kill.c
98
SYSCALL(pipe(fdfrom), 0);
tests/lib/libc/sys/t_sendrecv.c
120
error = pipe(fd);
tests/lib/libc/sys/t_write.c
115
ATF_REQUIRE(pipe(fds) == 0);
tests/lib/libc/sys/t_write.c
231
ATF_REQUIRE(pipe(fd) != -1);
tests/lib/libcurses/director/director.c
233
if (pipe(pipe_to_slave) < 0)
tests/lib/libcurses/director/director.c
237
if (pipe(pipe_from_slave) < 0)
tests/lib/libpthread/t_cancellation.c
182
RL(pipe(fd));
tests/lib/libpthread/t_cancellation.c
469
RL(pipe(fd));
tests/lib/libpthread/t_cancellation.c
499
RL(pipe(fd));
tests/lib/libpthread/t_cancellation.c
527
RL(pipe(fd));
tests/lib/libpthread/t_cancellation.c
695
RL(pipe(fd));
tests/lib/libpthread/t_compat_cancel.c
121
RL(pipe(fd));
tests/lib/libpthread/t_compat_cancel.c
188
RL(pipe(fd));
tests/lib/libpthread/t_compat_cancel.c
204
RL(pipe(fd));
tests/lib/libpthread/t_compat_cancel.c
219
RL(pipe(fd));
tests/lib/librumphijack/h_client.c
59
if (pipe(pipefd) == -1)
tests/net/bpfilter/t_bpfilter.c
236
RL(pipe(channel));
tests/net/icmp/t_ping.c
74
RL(pipe(channel));
tests/net/net/t_pktinfo_send.c
607
RL(pipe(channel));
tests/net/net/t_pktinfo_send.c
703
RL(pipe(channel));
tests/rump/rumpkern/t_kern.c
65
RL(pipe(pipetti));
usr.bin/calendar/calendar.c
429
if (pipe(pdes) == -1) {
usr.bin/calendar/calendar.c
575
if (pipe(pdes) == -1)
usr.bin/cksum/md5.c
139
MD5Filter(int pipe)
usr.bin/cksum/md5.c
148
if (pipe && (len != fwrite(buffer, (size_t)1, len, stdout)))
usr.bin/diff/pr.c
57
if (pipe(pfd) == -1)
usr.bin/diff3/diff3.c
959
if (pipe(fd13))
usr.bin/diff3/diff3.c
961
if (pipe(fd23))
usr.bin/fstat/fstat.c
1273
ptrans(struct file *fp, struct pipe *cpipe, int i)
usr.bin/fstat/fstat.c
1275
struct pipe cp;
usr.bin/fstat/fstat.c
1280
if (!KVM_READ(cpipe, &cp, sizeof(struct pipe))) {
usr.bin/fstat/fstat.c
182
static void ptrans(struct file *, struct pipe *, int);
usr.bin/m4/gnum4.c
666
if (pipe(p) == -1)
usr.bin/mail/popen.c
118
fpp->pipe = pipefd;
usr.bin/mail/popen.c
376
if (fp_head->pipe)
usr.bin/mail/popen.c
391
if (fpp->pipe)
usr.bin/mail/popen.c
400
if (fp_head->pipe)
usr.bin/mail/popen.c
416
if (!only_pipes || fpp->pipe)
usr.bin/mail/popen.c
56
int pipe;
usr.bin/mail/popen.c
78
fpp->fp, fpp->pipe, fpp->pid, fpp->link);
usr.bin/make/job.c
649
if (pipe(pipe_fds) == -1)
usr.bin/make/main.c
1771
if (pipe(pipefds) == -1) {
usr.bin/make/meta.c
1755
if (pipe(childPipe) < 0)
usr.bin/progress/progress.c
176
if (pipe(gzippipe) < 0)
usr.bin/progress/progress.c
211
if (pipe(outpipe) < 0)
usr.bin/rdist/server.c
1373
if (pipe(fd) < 0) {
usr.bin/rpcgen/rpc_main.c
377
(void) pipe(pd);
usr.bin/sdiff/sdiff.c
290
if (pipe(fd))
usr.bin/su/su_pam.c
382
if (pipe(fds) == -1) {
usr.bin/tip/cmds.c
208
if (pipe(pdes)) {
usr.bin/tip/cmds.c
864
if (pipe(pivec) < 0) {
usr.bin/tip/tip.c
283
(void)pipe(attndes);
usr.bin/tip/tip.c
284
(void)pipe(fildes);
usr.bin/tip/tip.c
285
(void)pipe(repdes);
usr.bin/vacation/vacation.c
615
if (pipe(pvect) < 0) {
usr.sbin/autofs/popen.c
92
error = pipe(outfds);
usr.sbin/lpr/lpd/printjob.c
1133
pipe(p);
usr.sbin/lpr/lpd/printjob.c
1333
pipe(p);
usr.sbin/lpr/lpd/printjob.c
587
pipe(p);
usr.sbin/rpc.pcnfsd/pcnfsd_misc.c
426
if (pipe(p) < 0) {
usr.sbin/syslogd/syslogd.c
4224
if (pipe(pfd) == -1)