| /freebsd-14.2/sys/contrib/ck/include/ |
| H A D | ck_fifo.h | 110 fifo->head = fifo->tail = fifo->head_snapshot = fifo->garbage = stub; in ck_fifo_spsc_init() 118 *garbage = fifo->garbage; in ck_fifo_spsc_deinit() 119 fifo->head = fifo->tail = NULL; in ck_fifo_spsc_deinit() 135 fifo->tail = entry; in ck_fifo_spsc_enqueue() 169 if (fifo->head_snapshot == fifo->garbage) { in ck_fifo_spsc_recycle() 170 fifo->head_snapshot = ck_pr_load_ptr(&fifo->head); in ck_fifo_spsc_recycle() 171 if (fifo->head_snapshot == fifo->garbage) in ck_fifo_spsc_recycle() 175 garbage = fifo->garbage; in ck_fifo_spsc_recycle() 230 fifo->head.pointer = fifo->tail.pointer = stub; in ck_fifo_mpmc_init() 231 fifo->head.generation = fifo->tail.generation = NULL; in ck_fifo_mpmc_init() [all …]
|
| H A D | ck_hp_fifo.h | 63 fifo->head = fifo->tail = stub; in ck_hp_fifo_init() 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() 110 struct ck_hp_fifo *fifo, in ck_hp_fifo_tryenqueue_mpmc() argument 120 tail = ck_pr_load_ptr(&fifo->tail); in ck_hp_fifo_tryenqueue_mpmc() 139 struct ck_hp_fifo *fifo, in ck_hp_fifo_dequeue_mpmc() argument 173 struct ck_hp_fifo *fifo, in ck_hp_fifo_trydequeue_mpmc() argument 178 head = ck_pr_load_ptr(&fifo->head); in ck_hp_fifo_trydequeue_mpmc() [all …]
|
| /freebsd-14.2/usr.sbin/bhyve/amd64/ |
| H A D | ps2mouse.c | 106 struct fifo fifo; member 117 struct fifo *fifo; in fifo_init() local 119 fifo = &sc->fifo; in fifo_init() 126 struct fifo *fifo; in fifo_reset() local 128 fifo = &sc->fifo; in fifo_reset() 136 struct fifo *fifo; in fifo_put() local 138 fifo = &sc->fifo; in fifo_put() 141 fifo->windex = (fifo->windex + 1) % fifo->size; in fifo_put() 149 struct fifo *fifo; in fifo_get() local 151 fifo = &sc->fifo; in fifo_get() [all …]
|
| H A D | ps2kbd.c | 86 struct fifo fifo; member 215 struct fifo *fifo; in fifo_init() local 217 fifo = &sc->fifo; in fifo_init() 224 struct fifo *fifo; in fifo_reset() local 226 fifo = &sc->fifo; in fifo_reset() 234 struct fifo *fifo; in fifo_put() local 236 fifo = &sc->fifo; in fifo_put() 239 fifo->windex = (fifo->windex + 1) % fifo->size; in fifo_put() 247 struct fifo *fifo; in fifo_get() local 249 fifo = &sc->fifo; in fifo_get() [all …]
|
| /freebsd-14.2/usr.sbin/bhyve/ |
| H A D | uart_backend.c | 57 struct fifo { struct 123 struct fifo *fifo; in uart_rxfifo_getchar() local 131 c = fifo->buf[fifo->rindex]; in uart_rxfifo_getchar() 132 fifo->rindex = (fifo->rindex + 1) % fifo->size; in uart_rxfifo_getchar() 133 fifo->num--; in uart_rxfifo_getchar() 154 struct fifo *fifo; in rxfifo_putchar() local 159 if (fifo->num < fifo->size) { in rxfifo_putchar() 160 fifo->buf[fifo->windex] = ch; in rxfifo_putchar() 161 fifo->windex = (fifo->windex + 1) % fifo->size; in rxfifo_putchar() 209 struct fifo *fifo; in uart_rxfifo_reset() local [all …]
|
| /freebsd-14.2/sys/contrib/device-tree/Bindings/net/can/ |
| H A D | xilinx,can.yaml | 37 tx-fifo-depth: 41 rx-fifo-depth: 74 - tx-fifo-depth 75 - rx-fifo-depth 91 - tx-fifo-depth 92 - rx-fifo-depth 110 - rx-fifo-depth 123 tx-fifo-depth = <0x40>; 124 rx-fifo-depth = <0x40>; 135 tx-fifo-depth = <0x40>; [all …]
|
| H A D | xilinx_can.txt | 19 - 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-14.2/sys/netgraph/bluetooth/drivers/ubtbcmfw/ |
| H A D | ubtbcmfw.c | 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 377 ubtbcmfw_stop_write(struct usb_fifo *fifo) in ubtbcmfw_stop_write() argument 389 ubtbcmfw_open(struct usb_fifo *fifo, int fflags) in ubtbcmfw_open() argument 418 ubtbcmfw_close(struct usb_fifo *fifo, int fflags) in ubtbcmfw_close() argument [all …]
|
| /freebsd-14.2/sys/dev/gve/ |
| H A D | gve_tx.c | 40 struct gve_tx_fifo *fifo = &tx->fifo; in gve_tx_fifo_init() local 44 atomic_store_int(&fifo->available, fifo->size); in gve_tx_fifo_init() 45 fifo->head = 0; in gve_tx_fifo_init() 194 struct gve_tx_fifo *fifo = &tx->fifo; in gve_clear_tx_ring() local 200 atomic_store_int(&fifo->available, fifo->size); in gve_clear_tx_ring() 201 fifo->head = 0; in gve_clear_tx_ring() 476 return (fifo->head + bytes < fifo->size) ? 0 : fifo->size - fifo->head; in gve_tx_fifo_pad_alloc_one_frag() 521 if (fifo->head > fifo->size) { in gve_tx_alloc_fifo() 527 overflow = fifo->head - fifo->size; in gve_tx_alloc_fifo() 542 if (fifo->head == fifo->size) in gve_tx_alloc_fifo() [all …]
|
| /freebsd-14.2/sys/contrib/device-tree/Bindings/powerpc/fsl/ |
| H A D | mpc5121-psc.txt | 9 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) 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>; 70 fsl,tx-fifo-size = <16>; [all …]
|
| /freebsd-14.2/usr.sbin/etcupdate/tests/ |
| H A D | tests_test.sh | 670 fifo() function 754 fifo /equal/equal/equal/fifo 799 fifo /second/equal/first/fifo 805 fifo /second/second/equal/fifo 829 fifo /difftype/difftype/equal/fifo 882 fifo /adddir/partial/fifo 909 fifo /dirchange/fromdir/extradir/fifo 948 D /first/equal/second/fifo 952 D /rmdir/partial/subdir/fifo 973 A /second/equal/first/fifo [all …]
|
| H A D | always_test.sh | 128 mkdir $NEW/difftype/first/first/fifo 292 fifo() function 415 Remove mismatch: /difftype/first/first/fifo (fifo file became directory) 433 present /first/difftype/second/fifo 442 fifo /second/second/difftype/dir 452 missing /difftype/first/first/fifo 497 fifo /dirchange/fromdir/extradir/fifo 506 fifo /dirchange/todir/difftype 554 present /first/difftype/second/fifo 573 missing /difftype/first/first/fifo [all …]
|
| /freebsd-14.2/tools/test/stress2/misc/ |
| H A D | fifo.sh | 41 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-14.2/sys/dev/usb/storage/ |
| H A D | urio.c | 357 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 374 urio_start_write(struct usb_fifo *fifo) in urio_start_write() argument 382 urio_stop_write(struct usb_fifo *fifo) in urio_stop_write() argument 391 urio_open(struct usb_fifo *fifo, int fflags) in urio_open() argument 401 if (usb_fifo_alloc_buffer(fifo, in urio_open() 411 if (usb_fifo_alloc_buffer(fifo, in urio_open() 421 urio_close(struct usb_fifo *fifo, int fflags) in urio_close() argument 424 usb_fifo_free_buffer(fifo); in urio_close() [all …]
|
| /freebsd-14.2/sys/contrib/dev/rtw88/ |
| H A D | mac.c | 1119 struct rtw_fifo_conf *fifo = &rtwdev->fifo; in set_trx_fifo_info() local 1127 fifo->rsvd_pg_num = fifo->rsvd_drv_pg_num; in set_trx_fifo_info() 1129 fifo->rsvd_pg_num = fifo->rsvd_drv_pg_num + in set_trx_fifo_info() 1137 if (fifo->rsvd_pg_num > fifo->txff_pg_num) in set_trx_fifo_info() 1140 fifo->acq_pg_num = fifo->txff_pg_num - fifo->rsvd_pg_num; in set_trx_fifo_info() 1141 fifo->rsvd_boundary = fifo->txff_pg_num - fifo->rsvd_pg_num; in set_trx_fifo_info() 1161 if (fifo->rsvd_boundary != fifo->rsvd_drv_addr) { in set_trx_fifo_info() 1174 struct rtw_fifo_conf *fifo = &rtwdev->fifo; in __priority_queue_cfg() local 1205 struct rtw_fifo_conf *fifo = &rtwdev->fifo; in __priority_queue_cfg_legacy() local 1231 struct rtw_fifo_conf *fifo = &rtwdev->fifo; in priority_queue_cfg() local [all …]
|
| /freebsd-14.2/contrib/ntp/sntp/libevent/sample/ |
| H A D | event-read-fifo.c | 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() 157 unlink(fifo); in main()
|
| /freebsd-14.2/contrib/libevent/sample/ |
| H A D | event-read-fifo.c | 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() 157 unlink(fifo); in main()
|
| /freebsd-14.2/sys/dev/usb/input/ |
| H A D | uep.c | 101 struct usb_fifo_sc fifo; member 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() 489 uep_open(struct usb_fifo *fifo, int fflags) in uep_open() argument 492 struct uep_softc *sc = usb_fifo_softc(fifo); in uep_open() 507 uep_close(struct usb_fifo *fifo, int fflags) in uep_close() argument 510 struct uep_softc *sc = usb_fifo_softc(fifo); in uep_close() [all …]
|
| H A D | uhid_snes.c | 218 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 273 usb_fifo_free_buffer(fifo); in uhid_snes_close() 427 uhid_snes_start_read(struct usb_fifo *fifo) in uhid_snes_start_read() argument 435 uhid_snes_stop_read(struct usb_fifo *fifo) in uhid_snes_stop_read() argument 451 if (fifo == NULL) in uhid_snes_read_callback() 469 usb_fifo_put_data(fifo, pc, 0, actual, 1); in uhid_snes_read_callback() [all …]
|
| /freebsd-14.2/sys/contrib/device-tree/src/powerpc/ |
| H A D | mpc5121.dtsi | 353 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-size = <16>; [all …]
|
| /freebsd-14.2/sys/dev/usb/serial/ |
| H A D | ulpt.c | 382 ulpt_start_read(struct usb_fifo *fifo) in ulpt_start_read() argument 390 ulpt_stop_read(struct usb_fifo *fifo) in ulpt_stop_read() argument 398 ulpt_start_write(struct usb_fifo *fifo) in ulpt_start_write() argument 406 ulpt_stop_write(struct usb_fifo *fifo) in ulpt_stop_write() argument 414 ulpt_open(struct usb_fifo *fifo, int fflags) in ulpt_open() argument 425 return (unlpt_open(fifo, fflags)); in ulpt_open() 441 if (usb_fifo_alloc_buffer(fifo, in unlpt_open() 447 sc->sc_fifo_open[USB_FIFO_RX] = fifo; in unlpt_open() 454 if (usb_fifo_alloc_buffer(fifo, in unlpt_open() 460 sc->sc_fifo_open[USB_FIFO_TX] = fifo; in unlpt_open() [all …]
|
| /freebsd-14.2/sys/dev/cyapa/ |
| H A D | cyapa.c | 1675 return (fifo->rindex == fifo->windex); in fifo_empty() 1690 if (n > (size_t)(fifo->windex - fifo->rindex)) in fifo_ready() 1691 n = (size_t)(fifo->windex - fifo->rindex); in fifo_ready() 1712 ptr = fifo->buf + (fifo->rindex & CYAPA_BUFMASK); in fifo_read() 1725 if (fifo->rindex == fifo->windex) { in fifo_read_char() 1729 c = fifo->buf[fifo->rindex & CYAPA_BUFMASK]; in fifo_read_char() 1730 ++fifo->rindex; in fifo_read_char() 1746 if (fifo->windex - fifo->rindex < CYAPA_BUFSIZE) { in fifo_write_char() 1747 fifo->buf[fifo->windex & CYAPA_BUFMASK] = c; in fifo_write_char() 1765 n = (size_t)(CYAPA_BUFSIZE - (fifo->windex - fifo->rindex)); in fifo_space() [all …]
|
| /freebsd-14.2/sys/contrib/device-tree/Bindings/mmc/ |
| H A D | synopsys-dw-mshc-common.yaml | 29 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-14.2/sys/contrib/device-tree/Bindings/sound/ |
| H A D | amlogic,axg-fifo.txt | 12 - 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-14.2/sys/contrib/device-tree/src/arm/ |
| H A D | bcm283x-rpi-usb-otg.dtsi | 4 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>;
|