Home
last modified time | relevance | path

Searched refs:fifo (Results 1 – 25 of 432) sorted by relevance

12345678910>>...18

/freebsd/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/usr.sbin/bhyve/amd64/
H A Dps2mouse.c89 struct fifo { struct
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()
129 fifo->size = sizeof(((struct fifo *)0)->buf); in fifo_reset()
135 struct fifo *fifo; in fifo_put() local
[all …]
H A Dps2kbd.c73 struct fifo { struct
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()
228 fifo->size = sizeof(((struct fifo *)0)->buf); in fifo_reset()
234 struct fifo *fifo; in fifo_put() local
[all …]
/freebsd/usr.sbin/bhyve/
H A Duart_backend.c64 struct fifo { struct
74 struct fifo rxfifo;
141 struct fifo *fifo; in uart_rxfifo_getchar() local
145 fifo = &sc->rxfifo; in uart_rxfifo_getchar()
146 if (fifo->num > 0) { in uart_rxfifo_getchar()
149 c = fifo->buf[fifo->rindex]; in uart_rxfifo_getchar()
150 fifo->rindex = (fifo->rindex + 1) % fifo->size; in uart_rxfifo_getchar()
151 fifo->num--; in uart_rxfifo_getchar()
172 struct fifo *fifo; in rxfifo_putchar() local
175 fifo = &sc->rxfifo; in rxfifo_putchar()
[all …]
/freebsd/sys/netgraph/bluetooth/drivers/ubtbcmfw/
H A Dubtbcmfw.c305 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()
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()
365 ubtbcmfw_start_write(struct usb_fifo *fifo) in ubtbcmfw_start_write() argument
367 struct ubtbcmfw_softc *sc = usb_fifo_softc(fifo); in ubtbcmfw_start_write()
377 ubtbcmfw_stop_write(struct usb_fifo *fifo) in ubtbcmfw_stop_write() argument
[all …]
/freebsd/usr.sbin/etcupdate/tests/
H A Dtests_test.sh108 mkfifo $i/equal/equal/equal/fifo
117 mkfifo $i/equal/first/first/fifo
126 mkfifo $i/equal/difftype/difftype/fifo
129 echo "bar" > $TEST/equal/difftype/difftype/fifo
149 mkfifo $i/first/equal/second/fifo
162 mkfifo $OLD/first/first/equal/fifo
175 mkfifo $OLD/first/difftype/second/fifo
176 mkdir $TEST/first/difftype/second/fifo
200 mkfifo $NEW/second/equal/first/fifo
216 mkfifo $i/second/second/equal/fifo
[all …]
H A Dalways_test.sh96 mkfifo $OLD/first/difftype/second/fifo
97 mkdir $TEST/first/difftype/second/fifo
127 mkfifo $OLD/difftype/first/first/fifo
128 mkdir $NEW/difftype/first/first/fifo
244 mkfifo $TEST/dirchange/fromdir/extradir/fifo
292 fifo() function
403 Modified directory remains: /first/difftype/second/fifo
407 Modified mismatch: /difffiles/difftype/difftype/file (regular file vs fifo file)
413 Modified regular file changed: /difftype/difftype/difftype/one (fifo file became directory)
415 Remove mismatch: /difftype/first/first/fifo (fifo file became directory)
[all …]
/freebsd/sys/contrib/device-tree/Bindings/powerpc/fsl/
H A Dmpc5121-psc.txt9 Controller node fsl,mpc5121-psc-fifo is required there:
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"
48 - clocks : specifies the clock needed to operate the fifo controller
59 fsl,rx-fifo-size = <16>;
60 fsl,tx-fifo-size = <16>;
69 fsl,rx-fifo-size = <16>;
[all …]
/freebsd/sys/dev/gve/
H A Dgve_tx.c41 struct gve_tx_fifo *fifo = &tx->fifo; in gve_tx_fifo_init() local
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_clear_tx_ring() local
236 atomic_store_int(&fifo->available, fifo->size); in gve_clear_tx_ring()
237 fifo->head = 0; in gve_clear_tx_ring()
373 gve_tx_free_fifo(struct gve_tx_fifo *fifo, size_t bytes) in gve_tx_free_fifo() argument
375 atomic_add_int(&fifo->available, bytes); in gve_tx_free_fifo()
[all …]
/freebsd/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
/freebsd/sys/contrib/dev/rtw88/
H A Dmac.c1000 const struct rtw_rqpn *rqpn = rtwdev->fifo.rqpn; in get_priority_queues()
1071 if (queues == BIT(rtwdev->hw->queues) - 1 || !rtwdev->fifo.rqpn) in txdma_queue_mapping()
1106 rtwdev->fifo.rqpn = rqpn; in txdma_queue_mapping()
1133 struct rtw_fifo_conf *fifo = &rtwdev->fifo; in set_trx_fifo_info()
1138 fifo->rsvd_drv_pg_num = chip->rsvd_drv_pg_num; in set_trx_fifo_info()
1139 fifo->txff_pg_num = chip->txff_size >> 7; in set_trx_fifo_info()
1141 fifo->rsvd_pg_num = fifo->rsvd_drv_pg_num; in set_trx_fifo_info()
1143 fifo in set_trx_fifo_info()
1119 struct rtw_fifo_conf *fifo = &rtwdev->fifo; set_trx_fifo_info() local
1174 struct rtw_fifo_conf *fifo = &rtwdev->fifo; __priority_queue_cfg() local
1205 struct rtw_fifo_conf *fifo = &rtwdev->fifo; __priority_queue_cfg_legacy() local
1231 struct rtw_fifo_conf *fifo = &rtwdev->fifo; priority_queue_cfg() local
1271 struct rtw_fifo_conf *fifo = &rtwdev->fifo; init_h2c() local
[all...]
/freebsd/sys/dev/usb/storage/
H A Durio.c357 urio_start_read(struct usb_fifo *fifo) in urio_start_read() argument
359 struct urio_softc *sc = usb_fifo_softc(fifo); in urio_start_read()
365 urio_stop_read(struct usb_fifo *fifo) in urio_stop_read() argument
367 struct urio_softc *sc = usb_fifo_softc(fifo); in urio_stop_read()
374 urio_start_write(struct usb_fifo *fifo) in urio_start_write() argument
376 struct urio_softc *sc = usb_fifo_softc(fifo); in urio_start_write()
382 urio_stop_write(struct usb_fifo *fifo) in urio_stop_write() argument
384 struct urio_softc *sc = usb_fifo_softc(fifo); in urio_stop_write()
391 urio_open(struct usb_fifo *fifo, int fflags) in urio_open() argument
393 struct urio_softc *sc = usb_fifo_softc(fifo); in urio_open()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/net/can/
H A Dxilinx_can.txt19 - tx-fifo-depth : Can Tx fifo depth (Zynq, Axi CAN).
20 - rx-fifo-depth : Can Rx fifo depth (Zynq, Axi CAN, CAN FD in
37 tx-fifo-depth = <0x40>;
38 rx-fifo-depth = <0x40>;
48 tx-fifo-depth = <0x40>;
49 rx-fifo-depth = <0x40>;
60 rx-fifo-depth = <0x20>;
/freebsd/sys/dev/usb/input/
H A Duep.c101 struct usb_fifo_sc fifo; member
301 if (usb_fifo_put_bytes_max(sc->fifo.fp[USB_FIFO_RX]) == 0) in uep_intr_callback()
392 &sc->fifo, device_get_unit(dev), -1, uaa->info.bIfaceIndex, in uep_attach()
419 usb_fifo_detach(&sc->fifo); in uep_detach()
456 uep_start_read(struct usb_fifo *fifo) in uep_start_read() argument
458 struct uep_softc *sc = usb_fifo_softc(fifo); in uep_start_read()
474 uep_stop_read(struct usb_fifo *fifo) in uep_stop_read() argument
476 struct uep_softc *sc = usb_fifo_softc(fifo); in uep_stop_read()
484 usb_fifo_put_data_linear(sc->fifo.fp[USB_FIFO_RX], buf, in uep_put_queue()
489 uep_open(struct usb_fifo *fifo, int fflags) in uep_open() argument
[all …]
H A Duhid_snes.c218 uhid_snes_open(struct usb_fifo *fifo, int fflags) in uhid_snes_open() argument
220 struct uhid_snes_softc *sc = usb_fifo_softc(fifo); in uhid_snes_open()
232 error = usb_fifo_alloc_buffer(fifo, in uhid_snes_open()
238 sc->sc_fifo_open[USB_FIFO_RX] = fifo; in uhid_snes_open()
268 uhid_snes_close(struct usb_fifo *fifo, int fflags) in uhid_snes_close() argument
270 struct uhid_snes_softc *sc = usb_fifo_softc(fifo); in uhid_snes_close()
273 usb_fifo_free_buffer(fifo); in uhid_snes_close()
277 uhid_snes_ioctl(struct usb_fifo *fifo, u_long cmd, void *data, int fflags) in uhid_snes_ioctl() argument
279 struct uhid_snes_softc *sc = usb_fifo_softc(fifo); in uhid_snes_ioctl()
427 uhid_snes_start_read(struct usb_fifo *fifo) in uhid_snes_start_read() argument
[all …]
/freebsd/sys/contrib/device-tree/src/powerpc/
H A Dmpc5121.dtsi353 fsl,rx-fifo-size = <16>;
354 fsl,tx-fifo-size = <16>;
365 fsl,rx-fifo-size = <16>;
366 fsl,tx-fifo-size = <16>;
377 fsl,rx-fifo-size = <16>;
378 fsl,tx-fifo-size = <16>;
389 fsl,rx-fifo-size = <16>;
390 fsl,tx-fifo-size = <16>;
401 fsl,rx-fifo-size = <16>;
402 fsl,tx-fifo
[all...]
/freebsd/contrib/ntp/sntp/libevent/sample/
H A Devent-read-fifo.c106 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()
157 unlink(fifo); in main()
/freebsd/contrib/libevent/sample/
H A Devent-read-fifo.c106 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()
157 unlink(fifo); in main()
/freebsd/sys/dev/usb/serial/
H A Dulpt.c382 ulpt_start_read(struct usb_fifo *fifo) in ulpt_start_read() argument
384 struct ulpt_softc *sc = usb_fifo_softc(fifo); in ulpt_start_read()
390 ulpt_stop_read(struct usb_fifo *fifo) in ulpt_stop_read() argument
392 struct ulpt_softc *sc = usb_fifo_softc(fifo); in ulpt_stop_read()
398 ulpt_start_write(struct usb_fifo *fifo) in ulpt_start_write() argument
400 struct ulpt_softc *sc = usb_fifo_softc(fifo); in ulpt_start_write()
406 ulpt_stop_write(struct usb_fifo *fifo) in ulpt_stop_write() argument
408 struct ulpt_softc *sc = usb_fifo_softc(fifo); in ulpt_stop_write()
414 ulpt_open(struct usb_fifo *fifo, int fflags) in ulpt_open() argument
416 struct ulpt_softc *sc = usb_fifo_softc(fifo); in ulpt_open()
[all …]
/freebsd/sys/dev/cyapa/
H A Dcyapa.c224 static int fifo_empty(struct cyapa_softc *sc, struct cyapa_fifo *fifo);
225 static size_t fifo_ready(struct cyapa_softc *sc, struct cyapa_fifo *fifo);
226 static char *fifo_read(struct cyapa_softc *sc, struct cyapa_fifo *fifo,
228 static char *fifo_write(struct cyapa_softc *sc, struct cyapa_fifo *fifo,
231 struct cyapa_fifo *fifo);
232 static void fifo_write_char(struct cyapa_softc *sc, struct cyapa_fifo *fifo,
234 static size_t fifo_space(struct cyapa_softc *sc, struct cyapa_fifo *fifo);
235 static void fifo_reset(struct cyapa_softc *sc, struct cyapa_fifo *fifo);
1670 fifo_empty(struct cyapa_softc *sc, struct cyapa_fifo *fifo) in fifo_empty() argument
1675 return (fifo->rindex == fifo->windex); in fifo_empty()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/sound/
H A Damlogic,axg-fifo.txt12 - interrupts: interrupt specifier for the fifo.
13 - clocks: phandle to the fifo peripheral clock provided by the audio
20 - amlogic,fifo-depth: The size of the controller's fifo in bytes. This
22 as the flush threshold of the fifo
33 fifo-depth = <512>;
/freebsd/sys/contrib/device-tree/src/arm/broadcom/
H A Dbcm283x-rpi-usb-otg.dtsi4 g-rx-fifo-size = <256>;
5 g-np-tx-fifo-size = <32>;
8 * fifo sizes shouldn't exceed 3776 bytes.
10 g-tx-fifo-size = <256 256 512 512 512 768 768>;
/freebsd/bin/dd/tests/
H A Ddd2_test.sh57 atf_check mkfifo fifo
59 dd if=fifo of=/dev/null 2>stderr &
77 atf_check mkfifo fifo
78 (sleep 30 >fifo &) # ensures that dd does not block on open
80 dd if=fifo of=/dev/null 2>stderr &
/freebsd/sys/contrib/device-tree/Bindings/net/
H A Dibm,emac.txt32 - rx-fifo-size : 1 cell, Rx fifo size in bytes for 10 and 100 Mb/sec
35 - tx-fifo-size : 1 cell, Tx fifo size in bytes for 10 and 100 Mb/sec
38 - fifo-entry-size : 1 cell, size of a fifo entry (used to calculate
76 - rx-fifo-size-gige : 1 cell, Rx fifo size in bytes for 1000 Mb/sec
78 rx-fifo-size). For Axon, either absent or 2048.
79 - tx-fifo-size-gige : 1 cell, Tx fifo size in bytes for 1000 Mb/sec
81 tx-fifo-size). For Axon, either absent or 2048.
115 rx-fifo-size = <1000>;
116 tx-fifo-size = <800>;
140 rx-fifo-size = <16384>;
[all …]

12345678910>>...18