| /NextBSD/sys/dev/vxge/vxgehal/ |
| HD | vxgehal-fifo.c | 64 __hal_fifo_t *fifo = (__hal_fifo_t *) userdata; in __hal_fifo_mempool_item_alloc() local 66 vxge_assert(fifo != NULL); in __hal_fifo_mempool_item_alloc() 71 __hal_device_t *hldev = (__hal_device_t *) fifo->channel.devh; in __hal_fifo_mempool_item_alloc() 93 for (i = 0; i < fifo->txdl_per_memblock; i++) { in __hal_fifo_mempool_item_alloc() 98 int dtr_index = item_index * fifo->txdl_per_memblock + i; in __hal_fifo_mempool_item_alloc() 101 ((char *) item + i * fifo->txdl_size)); in __hal_fifo_mempool_item_alloc() 105 fifo->channel.dtr_arr[dtr_index].dtr = txdp; in __hal_fifo_mempool_item_alloc() 107 fifo->channel.dtr_arr[dtr_index].uld_priv = (void *) in __hal_fifo_mempool_item_alloc() 108 ((char *) block_priv + fifo->txdl_priv_size * i); in __hal_fifo_mempool_item_alloc() 110 fifo->channel.dtr_arr[dtr_index].hal_priv = (void *) in __hal_fifo_mempool_item_alloc() [all …]
|
| HD | vxgehal-fifo.h | 168 #define VXGE_HAL_FIFO_ULD_PRIV(fifo, txdh) \ argument 169 fifo->channel.dtr_arr[ \ 172 #define VXGE_HAL_FIFO_HAL_PRIV(fifo, txdh) \ argument 173 ((__hal_fifo_txdl_priv_t *)(fifo->channel.dtr_arr[ \ 176 #define VXGE_HAL_FIFO_MAX_FRAG_CNT(fifo) fifo->config->max_frags argument 203 __hal_fifo_t *fifo, 211 __hal_fifo_t *fifo, 216 __hal_fifo_t *fifo,
|
| /NextBSD/sys/dev/nxge/xgehal/ |
| HD | xgehal-fifo.c | 45 xge_hal_fifo_t *fifo = (xge_hal_fifo_t *)userdata; in __hal_fifo_mempool_item_alloc() local 78 if (fifo->config->alignment_size) { in __hal_fifo_mempool_item_alloc() 79 status =__hal_fifo_dtr_align_alloc_map(fifo, txdp); in __hal_fifo_mempool_item_alloc() 84 fifo->align_size, in __hal_fifo_mempool_item_alloc() 93 if (fifo->channel.dtr_init) { in __hal_fifo_mempool_item_alloc() 94 fifo->channel.dtr_init(fifo, (xge_hal_dtr_h)txdp, index, in __hal_fifo_mempool_item_alloc() 95 fifo->channel.userdata, XGE_HAL_CHANNEL_OC_NORMAL); in __hal_fifo_mempool_item_alloc() 115 xge_hal_fifo_t *fifo = (xge_hal_fifo_t *)userdata; in __hal_fifo_mempool_item_free() local 128 if (fifo->config->alignment_size) { in __hal_fifo_mempool_item_free() 130 xge_os_dma_unmap(fifo->channel.pdev, in __hal_fifo_mempool_item_free() [all …]
|
| HD | xgehal-fifo-fp.c | 56 xge_hal_fifo_t *fifo = (xge_hal_fifo_t *)channelh; in __hal_fifo_dtr_post_single() local 57 xge_hal_fifo_hw_pair_t *hw_pair = fifo->hw_pair; in __hal_fifo_dtr_post_single() 73 xge_os_dma_sync(fifo->channel.pdev, in __hal_fifo_dtr_post_single() 81 xge_os_pio_mem_write64(fifo->channel.pdev, in __hal_fifo_dtr_post_single() 82 fifo->channel.regh1, in __hal_fifo_dtr_post_single() 89 ctrl |= fifo->no_snoop_bits; in __hal_fifo_dtr_post_single() 112 xge_os_pio_mem_write64(fifo->channel.pdev, fifo->channel.regh1, in __hal_fifo_dtr_post_single() 127 fifo->channel.stats.total_posts++; in __hal_fifo_dtr_post_single() 128 fifo->channel.usage_cnt++; in __hal_fifo_dtr_post_single() 129 if (fifo->channel.stats.usage_max < fifo->channel.usage_cnt) in __hal_fifo_dtr_post_single() [all …]
|
| /NextBSD/usr.sbin/bhyve/ |
| HD | uart_emul.c | 84 struct fifo { struct 112 struct fifo rxfifo; 171 struct fifo *fifo; in rxfifo_reset() local 175 fifo = &sc->rxfifo; in rxfifo_reset() 176 bzero(fifo, sizeof(struct fifo)); in rxfifo_reset() 177 fifo->size = size; in rxfifo_reset() 201 struct fifo *fifo; in rxfifo_available() local 203 fifo = &sc->rxfifo; in rxfifo_available() 204 return (fifo->num < fifo->size); in rxfifo_available() 210 struct fifo *fifo; in rxfifo_putchar() local [all …]
|
| /NextBSD/sys/netgraph/bluetooth/drivers/ubtbcmfw/ |
| HD | ubtbcmfw.c | 307 struct usb_fifo *fifo = sc->sc_fifo.fp[USB_FIFO_RX]; in ubtbcmfw_read_callback() local 316 usb_fifo_put_data(fifo, pc, 0, actlen, 1); in ubtbcmfw_read_callback() 321 if (usb_fifo_put_bytes_max(fifo) > 0) { in ubtbcmfw_read_callback() 342 ubtbcmfw_start_read(struct usb_fifo *fifo) in ubtbcmfw_start_read() argument 344 struct ubtbcmfw_softc *sc = usb_fifo_softc(fifo); in ubtbcmfw_start_read() 354 ubtbcmfw_stop_read(struct usb_fifo *fifo) in ubtbcmfw_stop_read() argument 356 struct ubtbcmfw_softc *sc = usb_fifo_softc(fifo); in ubtbcmfw_stop_read() 367 ubtbcmfw_start_write(struct usb_fifo *fifo) in ubtbcmfw_start_write() argument 369 struct ubtbcmfw_softc *sc = usb_fifo_softc(fifo); in ubtbcmfw_start_write() 379 ubtbcmfw_stop_write(struct usb_fifo *fifo) in ubtbcmfw_stop_write() argument [all …]
|
| /NextBSD/usr.sbin/etcupdate/tests/ |
| HD | tests_test.sh | 109 mkfifo $i/equal/equal/equal/fifo 118 mkfifo $i/equal/first/first/fifo 127 mkfifo $i/equal/difftype/difftype/fifo 130 echo "bar" > $TEST/equal/difftype/difftype/fifo 150 mkfifo $i/first/equal/second/fifo 163 mkfifo $OLD/first/first/equal/fifo 176 mkfifo $OLD/first/difftype/second/fifo 177 mkdir $TEST/first/difftype/second/fifo 201 mkfifo $NEW/second/equal/first/fifo 217 mkfifo $i/second/second/equal/fifo [all …]
|
| HD | always_test.sh | 97 mkfifo $OLD/first/difftype/second/fifo 98 mkdir $TEST/first/difftype/second/fifo 128 mkfifo $OLD/difftype/first/first/fifo 129 mkdir $NEW/difftype/first/first/fifo 245 mkfifo $TEST/dirchange/fromdir/extradir/fifo 293 fifo() function 404 Modified directory remains: /first/difftype/second/fifo 408 Modified mismatch: /difffiles/difftype/difftype/file (regular file vs fifo file) 414 Modified regular file changed: /difftype/difftype/difftype/one (fifo file became directory) 416 Remove mismatch: /difftype/first/first/fifo (fifo file became directory) [all …]
|
| /NextBSD/sys/dev/cxgb/ulp/iw_cxgb/ |
| HD | iw_cxgb_resource.c | 86 static int __cxio_init_resource_fifo(struct buf_ring **fifo, in __cxio_init_resource_fifo() argument 97 *fifo = buf_ring_alloc(nr, M_DEVBUF, M_NOWAIT, fifo_lock); in __cxio_init_resource_fifo() 98 if (*fifo == NULL) in __cxio_init_resource_fifo() 104 buf_ring_enqueue(*fifo, (uintptr_t) entry); in __cxio_init_resource_fifo() 118 buf_ring_enqueue(*fifo, (void *)(uintptr_t)rarray[idx]); in __cxio_init_resource_fifo() 123 buf_ring_enqueue(*fifo, (void *) (uintptr_t)rarray[i]); in __cxio_init_resource_fifo() 126 buf_ring_enqueue(*fifo, (void *) (uintptr_t)i); in __cxio_init_resource_fifo() 129 buf_ring_dequeue_sc(*fifo); in __cxio_init_resource_fifo() 134 static int cxio_init_resource_fifo(struct buf_ring **fifo, struct mtx * fifo_lock, in cxio_init_resource_fifo() argument 137 return (__cxio_init_resource_fifo(fifo, fifo_lock, nr, skip_low, in cxio_init_resource_fifo() [all …]
|
| /NextBSD/sys/dev/usb/input/ |
| HD | uep.c | 91 struct usb_fifo_sc fifo; member 263 if (usb_fifo_put_bytes_max(sc->fifo.fp[USB_FIFO_RX]) != 0) { in uep_intr_callback() 332 &sc->fifo, device_get_unit(dev), -1, uaa->info.bIfaceIndex, in uep_attach() 355 usb_fifo_detach(&sc->fifo); in uep_detach() 365 uep_start_read(struct usb_fifo *fifo) in uep_start_read() argument 367 struct uep_softc *sc = usb_fifo_softc(fifo); in uep_start_read() 383 uep_stop_read(struct usb_fifo *fifo) in uep_stop_read() argument 385 struct uep_softc *sc = usb_fifo_softc(fifo); in uep_stop_read() 393 usb_fifo_put_data_linear(sc->fifo.fp[USB_FIFO_RX], buf, in uep_put_queue() 398 uep_open(struct usb_fifo *fifo, int fflags) in uep_open() argument [all …]
|
| HD | uhid.c | 399 uhid_start_read(struct usb_fifo *fifo) in uhid_start_read() argument 401 struct uhid_softc *sc = usb_fifo_softc(fifo); in uhid_start_read() 411 uhid_stop_read(struct usb_fifo *fifo) in uhid_stop_read() argument 413 struct uhid_softc *sc = usb_fifo_softc(fifo); in uhid_stop_read() 420 uhid_start_write(struct usb_fifo *fifo) in uhid_start_write() argument 422 struct uhid_softc *sc = usb_fifo_softc(fifo); in uhid_start_write() 433 uhid_stop_write(struct usb_fifo *fifo) in uhid_stop_write() argument 435 struct uhid_softc *sc = usb_fifo_softc(fifo); in uhid_stop_write() 511 uhid_open(struct usb_fifo *fifo, int fflags) in uhid_open() argument 513 struct uhid_softc *sc = usb_fifo_softc(fifo); in uhid_open() [all …]
|
| /NextBSD/sys/dev/cyapa/ |
| HD | cyapa.c | 216 static int fifo_empty(struct cyapa_softc *sc, struct cyapa_fifo *fifo); 217 static size_t fifo_ready(struct cyapa_softc *sc, struct cyapa_fifo *fifo); 218 static char *fifo_read(struct cyapa_softc *sc, struct cyapa_fifo *fifo, 220 static char *fifo_write(struct cyapa_softc *sc, struct cyapa_fifo *fifo, 223 struct cyapa_fifo *fifo); 224 static void fifo_write_char(struct cyapa_softc *sc, struct cyapa_fifo *fifo, 226 static size_t fifo_space(struct cyapa_softc *sc, struct cyapa_fifo *fifo); 227 static void fifo_reset(struct cyapa_softc *sc, struct cyapa_fifo *fifo); 1557 fifo_empty(struct cyapa_softc *sc, struct cyapa_fifo *fifo) in fifo_empty() argument 1562 return (fifo->rindex == fifo->windex); in fifo_empty() [all …]
|
| /NextBSD/sys/dev/usb/storage/ |
| HD | urio.c | 360 urio_start_read(struct usb_fifo *fifo) in urio_start_read() argument 362 struct urio_softc *sc = usb_fifo_softc(fifo); in urio_start_read() 368 urio_stop_read(struct usb_fifo *fifo) in urio_stop_read() argument 370 struct urio_softc *sc = usb_fifo_softc(fifo); in urio_stop_read() 377 urio_start_write(struct usb_fifo *fifo) in urio_start_write() argument 379 struct urio_softc *sc = usb_fifo_softc(fifo); in urio_start_write() 385 urio_stop_write(struct usb_fifo *fifo) in urio_stop_write() argument 387 struct urio_softc *sc = usb_fifo_softc(fifo); in urio_stop_write() 394 urio_open(struct usb_fifo *fifo, int fflags) in urio_open() argument 396 struct urio_softc *sc = usb_fifo_softc(fifo); in urio_open() [all …]
|
| /NextBSD/sys/dev/usb/serial/ |
| HD | ulpt.c | 382 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 …]
|
| /NextBSD/contrib/pjdfstest/tests/mknod/ |
| HD | 00.t | 22 expect fifo,0755 lstat ${n0} type,mode 25 expect fifo,0151 lstat ${n0} type,mode 28 expect fifo,0100 lstat ${n0} type,mode 31 expect fifo,0305 lstat ${n0} type,mode 34 expect fifo,0244 lstat ${n0} type,mode
|
| /NextBSD/contrib/pjdfstest/tests/mkfifo/ |
| HD | 00.t | 22 expect fifo,0755 lstat ${n0} type,mode 25 expect fifo,0151 lstat ${n0} type,mode 28 expect fifo,0100 lstat ${n0} type,mode 31 expect fifo,0305 lstat ${n0} type,mode 34 expect fifo,0244 lstat ${n0} type,mode
|
| /NextBSD/contrib/netbsd-tests/kernel/kqueue/read/ |
| HD | t_fifo.c | 53 ATF_TC(fifo); 54 ATF_TC_HEAD(fifo, tc) in ATF_TC_HEAD() argument 58 ATF_TC_BODY(fifo, tc) in ATF_TC_BODY() argument 95 ATF_TP_ADD_TC(tp, fifo); in ATF_TP_ADD_TCS()
|
| /NextBSD/contrib/netbsd-tests/kernel/kqueue/write/ |
| HD | t_fifo.c | 53 ATF_TC(fifo); 54 ATF_TC_HEAD(fifo, tc) in ATF_TC_HEAD() argument 58 ATF_TC_BODY(fifo, tc) in ATF_TC_BODY() argument 99 ATF_TP_ADD_TC(tp, fifo); in ATF_TP_ADD_TCS()
|
| /NextBSD/sys/dev/usb/ |
| HD | usbdi.h | 97 typedef int (usb_fifo_open_t)(struct usb_fifo *fifo, int fflags); 98 typedef void (usb_fifo_close_t)(struct usb_fifo *fifo, int fflags); 99 typedef int (usb_fifo_ioctl_t)(struct usb_fifo *fifo, u_long cmd, void *addr, int fflags); 100 typedef void (usb_fifo_cmd_t)(struct usb_fifo *fifo); 101 typedef void (usb_fifo_filter_t)(struct usb_fifo *fifo, struct usb_mbuf *m); 635 uint32_t usb_fifo_put_bytes_max(struct usb_fifo *fifo); 636 void usb_fifo_put_data(struct usb_fifo *fifo, struct usb_page_cache *pc, 638 void usb_fifo_put_data_linear(struct usb_fifo *fifo, void *ptr, 641 void usb_fifo_put_data_error(struct usb_fifo *fifo); 642 uint8_t usb_fifo_get_data(struct usb_fifo *fifo, struct usb_page_cache *pc, [all …]
|
| HD | usb_dev.c | 247 ppf = cpd->udev->fifo; in usb_ref_device() 263 ppf = cpd->udev->fifo; in usb_ref_device() 416 f = udev->fifo[cpd->fifo_index + USB_FIFO_TX]; in usb_fifo_create() 422 f = udev->fifo[cpd->fifo_index + USB_FIFO_RX]; in usb_fifo_create() 448 f = udev->fifo[n + USB_FIFO_TX]; in usb_fifo_create() 465 f = udev->fifo[n + USB_FIFO_RX]; in usb_fifo_create() 502 (udev->fifo[n + USB_FIFO_TX] == NULL)) { in usb_fifo_create() 522 udev->fifo[n + USB_FIFO_TX] = f; in usb_fifo_create() 527 (udev->fifo[n + USB_FIFO_RX] == NULL)) { in usb_fifo_create() 548 udev->fifo[n + USB_FIFO_RX] = f; in usb_fifo_create() [all …]
|
| HD | usb_dev.h | 149 int usb_fifo_wait(struct usb_fifo *fifo); 150 void usb_fifo_signal(struct usb_fifo *fifo); 151 uint8_t usb_fifo_opened(struct usb_fifo *fifo);
|
| /NextBSD/sys/dev/usb/misc/ |
| HD | uled.c | 210 uled_open(struct usb_fifo *fifo, int fflags) in uled_open() argument 216 sc = usb_fifo_softc(fifo); in uled_open() 226 uled_close(struct usb_fifo *fifo, int fflags) in uled_close() argument 231 sc = usb_fifo_softc(fifo); in uled_close() 237 uled_ioctl(struct usb_fifo *fifo, u_long cmd, void *addr, int fflags) in uled_ioctl() argument 243 sc = usb_fifo_softc(fifo); in uled_ioctl()
|
| /NextBSD/sys/sys/mach/ |
| HD | policy.h | 229 policy_fifo_base_data_t fifo; member 235 policy_fifo_limit_data_t fifo; member 241 policy_fifo_info_data_t fifo; member
|
| /NextBSD/contrib/pjdfstest/tests/rename/ |
| HD | 10.t | 27 for type in regular fifo block char socket symlink; do 33 for type in regular fifo block char socket symlink; do 51 for type in regular fifo block char socket symlink; do 70 for type in regular fifo block char socket symlink; do 89 for type in regular fifo block char socket symlink; do
|
| /NextBSD/sys/contrib/octeon-sdk/ |
| HD | cvmx-usb.c | 1411 static int __cvmx_usb_fill_tx_hw(cvmx_usb_internal_state_t *usb, cvmx_usb_tx_fifo_t *fifo, int avai… in __cvmx_usb_fill_tx_hw() argument 1415 CVMX_USB_LOG_PARAM("%p", fifo); in __cvmx_usb_fill_tx_hw() 1420 while (available && (fifo->head != fifo->tail)) in __cvmx_usb_fill_tx_hw() 1422 int i = fifo->tail; in __cvmx_usb_fill_tx_hw() 1423 const uint32_t *ptr = cvmx_phys_to_ptr(fifo->entry[i].address); in __cvmx_usb_fill_tx_hw() 1424 uint64_t csr_address = USB_FIFO_ADDRESS(fifo->entry[i].channel, usb->index) ^ 4; in __cvmx_usb_fill_tx_hw() 1428 if (fifo->entry[i].size <= available) in __cvmx_usb_fill_tx_hw() 1430 words = fifo->entry[i].size; in __cvmx_usb_fill_tx_hw() 1431 fifo->tail++; in __cvmx_usb_fill_tx_hw() 1432 if (fifo->tail > MAX_CHANNELS) in __cvmx_usb_fill_tx_hw() [all …]
|