Home
last modified time | relevance | path

Searched full:fifo (Results 1 – 25 of 1202) sorted by relevance

12345678910>>...49

/freebsd-src/sys/contrib/ck/include/
H A Dck_fifo.h57 ck_fifo_spsc_enqueue_trylock(struct ck_fifo_spsc *fifo) in ck_fifo_spsc_enqueue_trylock() argument
60 return ck_spinlock_trylock(&fifo->m_tail); in ck_fifo_spsc_enqueue_trylock()
64 ck_fifo_spsc_enqueue_lock(struct ck_fifo_spsc *fifo) in ck_fifo_spsc_enqueue_lock() argument
67 ck_spinlock_lock(&fifo->m_tail); in ck_fifo_spsc_enqueue_lock()
72 ck_fifo_spsc_enqueue_unlock(struct ck_fifo_spsc *fifo) in ck_fifo_spsc_enqueue_unlock() argument
75 ck_spinlock_unlock(&fifo->m_tail); in ck_fifo_spsc_enqueue_unlock()
80 ck_fifo_spsc_dequeue_trylock(struct ck_fifo_spsc *fifo) in ck_fifo_spsc_dequeue_trylock() argument
83 return ck_spinlock_trylock(&fifo->m_head); in ck_fifo_spsc_dequeue_trylock()
87 ck_fifo_spsc_dequeue_lock(struct ck_fifo_spsc *fifo) in ck_fifo_spsc_dequeue_lock() argument
90 ck_spinlock_lock(&fifo->m_head); in ck_fifo_spsc_dequeue_lock()
[all …]
H A Dck_hp_fifo.h60 ck_hp_fifo_init(struct ck_hp_fifo *fifo, struct ck_hp_fifo_entry *stub) in ck_hp_fifo_init() argument
63 fifo->head = fifo->tail = stub; in ck_hp_fifo_init()
69 ck_hp_fifo_deinit(struct ck_hp_fifo *fifo, struct ck_hp_fifo_entry **stub) in ck_hp_fifo_deinit() argument
72 *stub = fifo->head; in ck_hp_fifo_deinit()
73 fifo->head = fifo->tail = NULL; in ck_hp_fifo_deinit()
79 struct ck_hp_fifo *fifo, in ck_hp_fifo_enqueue_mpmc() argument
90 tail = ck_pr_load_ptr(&fifo->tail); in ck_hp_fifo_enqueue_mpmc()
92 if (tail != ck_pr_load_ptr(&fifo->tail)) in ck_hp_fifo_enqueue_mpmc()
97 ck_pr_cas_ptr(&fifo->tail, tail, next); in ck_hp_fifo_enqueue_mpmc()
99 } else if (ck_pr_cas_ptr(&fifo->tail->next, next, entry) == true) in ck_hp_fifo_enqueue_mpmc()
[all …]
/freebsd-src/usr.sbin/bhyve/amd64/
H A Dps2mouse.c89 struct fifo { struct
93 int num; /* number of bytes in the fifo */ argument
94 int size; /* size of the fifo */ argument
105 struct fifo fifo; member
116 struct fifo *fifo; in fifo_init() local
118 fifo = &sc->fifo; in fifo_init()
119 fifo->size = sizeof(((struct fifo *)0)->buf); in fifo_init()
125 struct fifo *fifo; in fifo_reset() local
127 fifo = &sc->fifo; in fifo_reset()
128 bzero(fifo, sizeof(struct fifo)); in fifo_reset()
[all …]
H A Dps2kbd.c73 struct fifo { struct
77 int num; /* number of bytes in the fifo */ argument
78 int size; /* size of the fifo */ argument
86 struct fifo fifo; member
215 struct fifo *fifo; in fifo_init() local
217 fifo = &sc->fifo; in fifo_init()
218 fifo->size = sizeof(((struct fifo *)0)->buf); in fifo_init()
224 struct fifo *fifo; in fifo_reset() local
226 fifo = &sc->fifo; in fifo_reset()
227 bzero(fifo, sizeof(struct fifo)); in fifo_reset()
[all …]
/freebsd-src/sys/contrib/device-tree/Bindings/powerpc/fsl/
H A Dmpc5121-psc.txt8 fsl,mpc5121-immr SoC node. Additionally the PSC FIFO
9 Controller node fsl,mpc5121-psc-fifo is required there:
19 PSC FIFO Controller and b is a field that represents an
23 - fsl,rx-fifo-size : the size of the RX fifo slice (a multiple of 4)
24 - fsl,tx-fifo-size : the size of the TX fifo slice (a multiple of 4)
30 for that is fsl,mpc5121-psc-spi. It requires a fsl,mpc5121-psc-fifo as well.
35 fsl,mpc512x-psc-fifo node
39 - compatible : Should be "fsl,<soc>-psc-fifo"
42 FIFO Controller
44 PSC FIFO Controller and b is a field that represents an
[all …]
/freebsd-src/usr.sbin/bhyve/
H A Duart_backend.c64 struct fifo {
68 int num; /* number of characters in the fifo */
69 int size; /* size of the fifo */
74 struct fifo rxfifo;
141 struct fifo *fifo; in uart_rxfifo_getchar()
145 fifo = &sc->rxfifo; in uart_rxfifo_getchar()
146 if (fifo->num > 0) {
149 c = fifo->buf[fifo in uart_rxfifo_numchars()
58 struct fifo { global() struct
62 numfifo global() argument
63 sizefifo global() argument
125 struct fifo *fifo; uart_rxfifo_getchar() local
156 struct fifo *fifo; rxfifo_putchar() local
211 struct fifo *fifo; uart_rxfifo_reset() local
[all...]
/freebsd-src/tools/regression/poll/n/
H A Dpipeselect.out10 ok 9 FIFO state 0: expected clear; got clear
11 ok 10 FIFO state 1: expected clear; got clear
12 ok 11 FIFO state 2: expected set; got set
13 ok 12 FIFO state 2a: expected clear; got clear
14 ok 13 FIFO state 3: expected set; got set
15 ok 14 FIFO state 4: expected clear; got clear
16 ok 15 FIFO state 5: expected set; got set
17 ok 16 FIFO state 6: expected set; got set
18 ok 17 FIFO state 6a: expected set; got set
19 ok 18 FIFO state 6b: expected clear; got clear
[all …]
H A Dpipepoll.out10 ok 9 FIFO state 0: expected 0; got 0
11 ok 10 FIFO state 1: expected 0; got 0
12 ok 11 FIFO state 2: expected POLLIN; got POLLIN
13 ok 12 FIFO state 2a: expected 0; got 0
14 ok 13 FIFO state 3: expected POLLHUP; got POLLHUP
15 ok 14 FIFO state 4: expected 0; got 0
16 ok 15 FIFO state 5: expected POLLIN; got POLLIN
17 ok 16 FIFO state 6: expected POLLIN | POLLHUP; got POLLIN | POLLHUP
18 ok 17 FIFO state 6a: expected POLLHUP; got POLLHUP
19 ok 18 FIFO state 6b: expected 0; got 0
[all …]
/freebsd-src/tools/regression/poll/m/
H A Dpipepoll.out10 ok 9 FIFO state 0: expected 0; got 0
11 ok 10 FIFO state 1: expected 0; got 0
12 ok 11 FIFO state 2: expected POLLIN; got POLLIN
13 ok 12 FIFO state 2a: expected 0; got 0
14 ok 13 FIFO state 3: expected POLLHUP; got POLLHUP
15 ok 14 FIFO state 4: expected 0; got 0
16 ok 15 FIFO state 5: expected POLLIN; got POLLIN
17 ok 16 FIFO state 6: expected POLLIN | POLLHUP; got POLLIN | POLLHUP
18 ok 17 FIFO state 6a: expected POLLHUP; got POLLHUP
19 ok 18 FIFO state 6b: expected POLLHUP; got POLLHUP
[all …]
H A Dpipeselect.out10 not ok 9 FIFO state 0: expected set; got clear
11 ok 10 FIFO state 1: expected clear; got clear
12 ok 11 FIFO state 2: expected set; got set
13 ok 12 FIFO state 2a: expected clear; got clear
14 ok 13 FIFO state 3: expected set; got set
15 ok 14 FIFO state 4: expected clear; got clear
16 ok 15 FIFO state 5: expected set; got set
17 ok 16 FIFO state 6: expected set; got set
18 ok 17 FIFO state 6a: expected set; got set
19 ok 18 FIFO state 6b: expected set; got set
[all …]
/freebsd-src/tools/regression/poll/l/
H A Dpipeselect.out10 not ok 9 FIFO state 0: expected set; got clear
11 ok 10 FIFO state 1: expected clear; got clear
12 ok 11 FIFO state 2: expected set; got set
13 ok 12 FIFO state 2a: expected clear; got clear
14 ok 13 FIFO state 3: expected set; got set
15 ok 14 FIFO state 4: expected clear; got clear
16 ok 15 FIFO state 5: expected set; got set
17 ok 16 FIFO state 6: expected set; got set
18 ok 17 FIFO state 6a: expected set; got set
19 not ok 18 FIFO state 6b: expected set; got clear
[all …]
H A Dpipepoll.out10 ok 9 FIFO state 0: expected 0; got 0
11 ok 10 FIFO state 1: expected 0; got 0
12 ok 11 FIFO state 2: expected POLLIN; got POLLIN
13 ok 12 FIFO state 2a: expected 0; got 0
14 ok 13 FIFO state 3: expected POLLHUP; got POLLHUP
15 ok 14 FIFO state 4: expected 0; got 0
16 ok 15 FIFO state 5: expected POLLIN; got POLLIN
17 ok 16 FIFO state 6: expected POLLIN | POLLHUP; got POLLIN | POLLHUP
18 ok 17 FIFO state 6a: expected POLLHUP; got POLLHUP
19 not ok 18 FIFO state 6b: expected POLLHUP; got 0
[all …]
/freebsd-src/tools/regression/poll/4/
H A Dpipeselect.out10 not ok 9 FIFO state 0: expected clear; got set
11 ok 10 FIFO state 1: expected clear; got clear
12 ok 11 FIFO state 2: expected set; got set
13 ok 12 FIFO state 2a: expected clear; got clear
14 ok 13 FIFO state 3: expected set; got set
15 ok 14 FIFO state 4: expected clear; got clear
16 ok 15 FIFO state 5: expected set; got set
17 ok 16 FIFO state 6: expected set; got set
18 ok 17 FIFO state 6a: expected set; got set
19 not ok 18 FIFO state 6b: expected clear; got set
[all …]
H A Dpipepoll.out10 not ok 9 FIFO state 0: expected 0; got POLLIN
11 ok 10 FIFO state 1: expected 0; got 0
12 ok 11 FIFO state 2: expected POLLIN; got POLLIN
13 ok 12 FIFO state 2a: expected 0; got 0
14 not ok 13 FIFO state 3: expected POLLHUP; got POLLIN
15 ok 14 FIFO state 4: expected 0; got 0
16 ok 15 FIFO state 5: expected POLLIN; got POLLIN
17 not ok 16 FIFO state 6: expected POLLIN | POLLHUP; got POLLIN
18 not ok 17 FIFO state 6a: expected POLLHUP; got POLLIN
19 not ok 18 FIFO state 6b: expected 0; got POLLIN
[all …]
/freebsd-src/tools/regression/poll/7/
H A Dpipeselect.out10 ok 9 FIFO state 0: expected clear; got clear
11 ok 10 FIFO state 1: expected clear; got clear
12 ok 11 FIFO state 2: expected set; got set
13 ok 12 FIFO state 2a: expected clear; got clear
14 not ok 13 FIFO state 3: expected set; got clear
15 ok 14 FIFO state 4: expected clear; got clear
16 ok 15 FIFO state 5: expected set; got set
17 ok 16 FIFO state 6: expected set; got set
18 not ok 17 FIFO state 6a: expected set; got clear
19 ok 18 FIFO state 6b: expected clear; got clear
[all …]
H A Dpipepoll.out10 ok 9 FIFO state 0: expected 0; got 0
11 ok 10 FIFO state 1: expected 0; got 0
12 ok 11 FIFO state 2: expected POLLIN; got POLLIN
13 ok 12 FIFO state 2a: expected 0; got 0
14 not ok 13 FIFO state 3: expected POLLHUP; got 0
15 ok 14 FIFO state 4: expected 0; got 0
16 ok 15 FIFO state 5: expected POLLIN; got POLLIN
17 not ok 16 FIFO state 6: expected POLLIN | POLLHUP; got POLLIN
18 not ok 17 FIFO state 6a: expected POLLHUP; got 0
19 ok 18 FIFO state 6b: expected 0; got 0
[all …]
/freebsd-src/sys/dev/gve/
H A Dgve_tx.c41 struct gve_tx_fifo *fifo = &tx->fifo; in gve_tx_fifo_init()
43 fifo->size = qpl->num_pages * PAGE_SIZE; in gve_tx_fifo_init()
44 fifo->base = qpl->kva; in gve_tx_fifo_init()
45 atomic_store_int(&fifo->available, fifo->size); in gve_tx_fifo_init()
46 fifo->head = 0; in gve_tx_fifo_init()
230 struct gve_tx_fifo *fifo = &tx->fifo; in gve_create_tx_rings()
236 atomic_store_int(&fifo in gve_create_tx_rings()
40 struct gve_tx_fifo *fifo = &tx->fifo; gve_tx_fifo_init() local
194 struct gve_tx_fifo *fifo = &tx->fifo; gve_clear_tx_ring() local
327 gve_tx_free_fifo(struct gve_tx_fifo * fifo,size_t bytes) gve_tx_free_fifo() argument
461 gve_tx_fifo_can_alloc(struct gve_tx_fifo * fifo,size_t bytes) gve_tx_fifo_can_alloc() argument
474 gve_tx_fifo_pad_alloc_one_frag(struct gve_tx_fifo * fifo,size_t bytes) gve_tx_fifo_pad_alloc_one_frag() argument
495 gve_tx_alloc_fifo(struct gve_tx_fifo * fifo,size_t bytes,struct gve_tx_iovec iov[2]) gve_tx_alloc_fifo() argument
[all...]
/freebsd-src/sys/contrib/device-tree/Bindings/net/can/
H A Dxilinx,can.yaml37 tx-fifo-depth:
39 description: CAN Tx fifo depth (Zynq, Axi CAN).
41 rx-fifo-depth:
43 description: CAN Rx fifo depth (Zynq, Axi CAN, CAN FD in sequential Rx mode)
81 - tx-fifo-depth
82 - rx-fifo-depth
98 - tx-fifo-depth
99 - rx-fifo-depth
117 - rx-fifo-depth
130 tx-fifo
[all...]
/freebsd-src/sys/dev/ath/
H A Dif_ath_tx_edma.c160 * XXX TODO: push an aggregate as a single FIFO slot, even though
163 * The TX completion code handles a TX FIFO slot having multiple frames,
182 "%s: called; TXQ=%d, fifo.depth=%d, axq_q empty=%d\n", in ath_tx_edma_push_staging_list()
223 * as one FIFO entry. in ath_tx_edma_push_staging_list()
267 * of the FIFO queue. We don't adjust the aggregate in ath_tx_edma_push_staging_list()
272 TAILQ_CONCAT(&txq->fifo.axq_q, &sq, bf_list); in ath_tx_edma_push_staging_list()
273 /* Bump total queue tracking in FIFO queue */ in ath_tx_edma_push_staging_list()
274 txq->fifo.axq_depth += sqdepth; in ath_tx_edma_push_staging_list()
276 /* Bump FIFO queue */ in ath_tx_edma_push_staging_list()
279 "%s: queued %d packets; depth=%d, fifo depth=%d\n", in ath_tx_edma_push_staging_list()
[all …]
/freebsd-src/sys/netgraph/bluetooth/drivers/ubtbcmfw/
H A Dubtbcmfw.c232 device_printf(dev, "could not attach fifo. %s\n", in ubtbcmfw_attach()
305 struct usb_fifo *fifo = sc->sc_fifo.fp[USB_FIFO_RX]; in ubtbcmfw_read_callback() local
314 usb_fifo_put_data(fifo, pc, 0, actlen, 1); in ubtbcmfw_read_callback()
319 if (usb_fifo_put_bytes_max(fifo) > 0) { in ubtbcmfw_read_callback()
340 ubtbcmfw_start_read(struct usb_fifo *fifo) in ubtbcmfw_start_read() argument
342 struct ubtbcmfw_softc *sc = usb_fifo_softc(fifo); in ubtbcmfw_start_read()
348 * Called when we about to stop reading (i.e. closing fifo)
352 ubtbcmfw_stop_read(struct usb_fifo *fifo) in ubtbcmfw_stop_read() argument
354 struct ubtbcmfw_softc *sc = usb_fifo_softc(fifo); in ubtbcmfw_stop_read()
361 * for write or flushing fifo
[all …]
/freebsd-src/sys/contrib/alpine-hal/
H A Dal_hal_udma_regs_s2m.h127 /* [0x28] S2M stream data FIFO status */
129 /* [0x2c] S2M stream header FIFO status */
131 /* [0x30] S2M AXI data FIFO status */
133 /* [0x34] S2M unack FIFO status */
138 * [0x3c] S2M prefetch FIFO status.
143 * [0x40] S2M completion FIFO status.
147 /* [0x44] S2M state machine and FIFO clear control */
151 /* [0x4c] S2M FIFO enable control, internal */
169 /* [0x0] Stream data FIFO configuration */
270 * (Before the coalescing FIFO)
[all …]
/freebsd-src/lib/libsys/
H A Dmkfifo.234 .Nd make a fifo file
48 creates a new fifo file with name
57 The fifo's owner ID is set to the process's effective user ID.
58 The fifo's group ID is set to that of the parent directory in
68 In this case the newly created FIFO is created relative to the
87 will fail and no fifo will be created if:
90 The kernel has not been configured to support fifo's.
100 is denied on the parent directory of the fifo to be created.
112 The directory in which the entry for the new fifo is being placed
117 fifo is being created.
[all …]
/freebsd-src/sys/contrib/device-tree/Bindings/mmc/
H A Dsynopsys-dw-mshc-common.yaml29 fifo-depth:
31 The maximum size of the tx/rx fifo's. If this property is not
32 specified, the default value of the fifo size is determined from the
45 Override fifo address with value provided by DT. The default FIFO reg
48 this property to set fifo address in device tree.
51 fifo-watermark-aligned:
54 watermark in PIO mode. But fifo watermark is requested to be aligned
57 force fifo watermark setting accordingly.
/freebsd-src/tools/test/stress2/misc/
H A Dfifo.sh41 sed '1,/^EOF/d' < $odir/$0 > fifo.c
42 rm -f /tmp/fifo
43 mycc -o fifo -Wall -Wextra -O2 -g fifo.c || exit 1
44 rm -f fifo.c
54 (cd $mntpoint; /tmp/fifo)
61 rm -f /tmp/fifo
78 if (mkfifo("fifo", 0644) == -1)
81 (void)open("fifo", O_RDWR | O_SHLOCK | O_EXLOCK);
82 (void)open("fifo", 0x60e9f2, 0xc74c65b1db4be370, 0xb64a34df72368759);
/freebsd-src/contrib/libevent/sample/
H A Devent-read-fifo.c8 * cc -I/usr/local/include -o event-read-fifo event-read-fifo.c \
74 /* On Unix, cleanup event.fifo if SIGINT is received. */
106 const char *fifo = "event.fifo"; in main() local
109 if (lstat(fifo, &st) == 0) { in main()
117 unlink(fifo); in main()
118 if (mkfifo(fifo, 0600) == -1) { in main()
123 socket = open(fifo, O_RDONLY | O_NONBLOCK, 0); in main()
130 fprintf(stderr, "Write data to %s\n", fifo); in main()
140 /* catch SIGINT so that event.fifo can be cleaned up */ in main()
157 unlink(fifo); in main()

12345678910>>...49