Home
last modified time | relevance | path

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

12

/illumos-gate/usr/src/uts/common/io/xge/hal/xgehal/
H A Dxgehal-fifo.c40 xge_hal_fifo_t *fifo = (xge_hal_fifo_t *)userdata; in __hal_fifo_mempool_item_alloc() local
73 if (fifo->config->alignment_size) { in __hal_fifo_mempool_item_alloc()
74 status =__hal_fifo_dtr_align_alloc_map(fifo, txdp); in __hal_fifo_mempool_item_alloc()
79 fifo->align_size, in __hal_fifo_mempool_item_alloc()
88 if (fifo->channel.dtr_init) { in __hal_fifo_mempool_item_alloc()
89 fifo->channel.dtr_init(fifo, (xge_hal_dtr_h)txdp, index, in __hal_fifo_mempool_item_alloc()
90 fifo->channel.userdata, XGE_HAL_CHANNEL_OC_NORMAL); in __hal_fifo_mempool_item_alloc()
110 xge_hal_fifo_t *fifo = (xge_hal_fifo_t *)userdata; in __hal_fifo_mempool_item_free() local
123 if (fifo->config->alignment_size) { in __hal_fifo_mempool_item_free()
125 xge_os_dma_unmap(fifo->channel.pdev, in __hal_fifo_mempool_item_free()
[all …]
H A Dxgehal-fifo-fp.c51 xge_hal_fifo_t *fifo = (xge_hal_fifo_t *)channelh; in __hal_fifo_dtr_post_single() local
52 xge_hal_fifo_hw_pair_t *hw_pair = fifo->hw_pair; in __hal_fifo_dtr_post_single()
68 xge_os_dma_sync(fifo->channel.pdev, in __hal_fifo_dtr_post_single()
76 xge_os_pio_mem_write64(fifo->channel.pdev, in __hal_fifo_dtr_post_single()
77 fifo->channel.regh1, in __hal_fifo_dtr_post_single()
84 ctrl |= fifo->no_snoop_bits; in __hal_fifo_dtr_post_single()
107 xge_os_pio_mem_write64(fifo->channel.pdev, fifo->channel.regh1, in __hal_fifo_dtr_post_single()
122 fifo->channel.stats.total_posts++; in __hal_fifo_dtr_post_single()
123 fifo->channel.usage_cnt++; in __hal_fifo_dtr_post_single()
124 if (fifo->channel.stats.usage_max < fifo->channel.usage_cnt) in __hal_fifo_dtr_post_single()
[all …]
H A Dxgehal-mgmtaux.c1562 xge_hal_fifo_queue_t *fifo; in xge_hal_aux_device_config_read() local
1702 dev_config->fifo.max_frags, "%u"); in xge_hal_aux_device_config_read()
1704 dev_config->fifo.reserve_threshold, "%u"); in xge_hal_aux_device_config_read()
1706 dev_config->fifo.memblock_size, "%u"); in xge_hal_aux_device_config_read()
1709 dev_config->fifo.alignment_size, "%u"); in xge_hal_aux_device_config_read()
1713 fifo = &dev_config->fifo.queue[i]; in xge_hal_aux_device_config_read()
1715 if (!fifo->configured) in xge_hal_aux_device_config_read()
1724 __HAL_AUX_ENTRY(key, fifo->initial, "%u"); in xge_hal_aux_device_config_read()
1727 __HAL_AUX_ENTRY(key, fifo->max, "%u"); in xge_hal_aux_device_config_read()
1730 __HAL_AUX_ENTRY(key, fifo->intr, "%u"); in xge_hal_aux_device_config_read()
[all …]
H A Dxgehal-device-fp.c110 xge_hal_fifo_t *fifo = (xge_hal_fifo_t *)channelh; in xge_hal_device_bar1_set() local
113 xge_assert(fifo); in xge_hal_device_bar1_set()
118 fifo->hw_pair = in xge_hal_device_bar1_set()
120 (fifo->channel.post_qid * XGE_HAL_FIFO_HW_PAIR_OFFSET)); in xge_hal_device_bar1_set()
H A Dxgehal-device.c1051 if (!hldev->config.fifo.queue[i].configured) in __hal_device_tti_configure()
1057 if (!hldev->config.fifo.queue[i].tti[j].enabled) in __hal_device_tti_configure()
1064 &hldev->config.fifo.queue[i].tti[j], in __hal_device_tti_configure()
2917 if (!hldev->config.fifo.queue[i].configured) in __hal_device_hw_initialize()
2920 if (hldev->config.fifo.queue[i].tti[j].enabled) in __hal_device_hw_initialize()
2921 hldev->config.fifo.queue[i].tti[j].enabled = 0; in __hal_device_hw_initialize()
5259 if (!device_config->fifo.queue[i].configured) in xge_hal_device_initialize()
6526 int fifo = channel->post_qid; in xge_hal_channel_msi_set() local
6528 " MSI: %d", channel->msi_msg, fifo, msi); in xge_hal_channel_msi_set()
6531 val64 |= XGE_HAL_SET_TX_MAT(fifo, msi); in xge_hal_channel_msi_set()
[all …]
H A Dxgehal-config.c662 if ((status = __hal_fifo_config_check(&new_config->fifo)) != in __hal_device_config_check_common()
/illumos-gate/usr/src/cmd/bhyve/
H A Dps2mouse.c88 struct fifo { struct
104 struct fifo fifo; member
115 struct fifo *fifo; in fifo_init() local
117 fifo = &sc->fifo; in fifo_init()
118 fifo->size = sizeof(((struct fifo *)0)->buf); in fifo_init()
124 struct fifo *fifo; in fifo_reset() local
126 fifo = &sc->fifo; in fifo_reset()
127 bzero(fifo, sizeof(struct fifo)); in fifo_reset()
128 fifo->size = sizeof(((struct fifo *)0)->buf); in fifo_reset()
134 struct fifo *fifo; in fifo_put() local
[all …]
H A Dps2kbd.c71 struct fifo { struct
84 struct fifo fifo; member
213 struct fifo *fifo; in fifo_init() local
215 fifo = &sc->fifo; in fifo_init()
216 fifo->size = sizeof(((struct fifo *)0)->buf); in fifo_init()
222 struct fifo *fifo; in fifo_reset() local
224 fifo = &sc->fifo; in fifo_reset()
225 bzero(fifo, sizeof(struct fifo)); in fifo_reset()
226 fifo->size = sizeof(((struct fifo *)0)->buf); in fifo_reset()
232 struct fifo *fifo; in fifo_put() local
[all …]
H A Duart_emul.c114 struct fifo { struct
142 struct fifo rxfifo;
218 struct fifo *fifo; in rxfifo_reset() local
222 fifo = &sc->rxfifo; in rxfifo_reset()
223 bzero(fifo, sizeof(struct fifo)); in rxfifo_reset()
224 fifo->size = size; in rxfifo_reset()
261 struct fifo *fifo; in rxfifo_available() local
263 fifo = &sc->rxfifo; in rxfifo_available()
264 return (fifo->num < fifo->size); in rxfifo_available()
270 struct fifo *fifo; in rxfifo_putchar() local
[all …]
/illumos-gate/usr/src/cmd/lp/lib/msgs/
H A Dread_fifo.c95 switch (_buffer(fifo)) \
109 switch (_buffer(fifo)) \
126 read_fifo (fifo, buf, size) in read_fifo() argument
127 int fifo; in read_fifo()
145 if (!(fbp=GetFifoBuffer (fifo)))
249 peek3_2 (fifo) in peek3_2() argument
250 int fifo; in peek3_2()
264 if (!(fbp=GetFifoBuffer (fifo)))
299 _buffer(int fifo) in _buffer() argument
319 if (!(fbp = GetFifoBuffer (fifo))) in _buffer()
[all …]
H A Dwrite_fifo.c49 int write_fifo ( int fifo, char * buf, unsigned int size ) in write_fifo() argument
51 int write_fifo (fifo, buf, size) in write_fifo()
52 int fifo; in write_fifo()
86 if ((wbytes = write(fifo, buf, size)) > 0)
/illumos-gate/usr/src/uts/common/io/xge/drv/
H A Dxge.c424 device_config->fifo.queue[index].configured = in xge_fifo_config()
429 if (!device_config->fifo.queue[index].configured) in xge_fifo_config()
433 device_config->fifo.queue[index].no_snoop_bits = 1; in xge_fifo_config()
437 device_config->fifo.queue[index].max = ddi_prop_get_int(DDI_DEV_T_ANY, in xge_fifo_config()
442 device_config->fifo.queue[index].initial = in xge_fifo_config()
447 if (device_config->fifo.queue[index].initial == in xge_fifo_config()
450 device_config->fifo.queue[index].initial = in xge_fifo_config()
451 device_config->fifo.queue[index].max = in xge_fifo_config()
454 device_config->fifo.queue[index].initial = in xge_fifo_config()
455 device_config->fifo.queue[index].max = in xge_fifo_config()
[all …]
H A Dxgell.c1109 if (ncookies + frag_cnt > hldev->config.fifo.max_frags) { in xgell_ring_tx()
1133 hldev->config.fifo.max_frags)) { in xgell_ring_tx()
2831 lldev->tx_copied_max = hldev->config.fifo.max_frags * in xgell_device_register()
2832 hldev->config.fifo.alignment_size * in xgell_device_register()
2833 hldev->config.fifo.max_aligned_frags; in xgell_device_register()
/illumos-gate/usr/src/cmd/tzreload/
H A Dtzreload.c382 char fifo[PATH_MAX + 1]; in send_cron_msg() local
384 if (strlcpy(fifo, zroot, sizeof (fifo)) >= sizeof (fifo) || in send_cron_msg()
385 strlcat(fifo, FIFO, sizeof (fifo)) >= sizeof (fifo)) { in send_cron_msg()
393 if ((msgfd = open(fifo, O_WRONLY|O_NDELAY)) < 0) { in send_cron_msg()
/illumos-gate/usr/src/contrib/bhyve/dev/usb/
H A Dusbdi.h95 typedef int (usb_fifo_open_t)(struct usb_fifo *fifo, int fflags);
96 typedef void (usb_fifo_close_t)(struct usb_fifo *fifo, int fflags);
97 typedef int (usb_fifo_ioctl_t)(struct usb_fifo *fifo, u_long cmd, void *addr, int fflags);
98 typedef void (usb_fifo_cmd_t)(struct usb_fifo *fifo);
99 typedef void (usb_fifo_filter_t)(struct usb_fifo *fifo, struct usb_mbuf *m);
633 uint32_t usb_fifo_put_bytes_max(struct usb_fifo *fifo);
634 void usb_fifo_put_data(struct usb_fifo *fifo, struct usb_page_cache *pc,
636 void usb_fifo_put_data_linear(struct usb_fifo *fifo, void *ptr,
639 void usb_fifo_put_data_error(struct usb_fifo *fifo);
640 uint8_t usb_fifo_get_data(struct usb_fifo *fifo, struct usb_page_cache *pc,
[all …]
/illumos-gate/usr/src/cmd/lp/cmd/lpadmin/
H A Ddo_align.c89 *fifo, local
227 if (!(fifo = makepath(Lp_Temp, rfile, (char *)0))) {
232 addlist (&req.file_list, fifo);
235 Unlink(fifo) == -1
236 || Mknod(fifo, S_IFIFO | 0600, 0) == -1
387 if (!(fifo_fp = fopen(fifo, "w"))) {
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/tests/
H A Dio.sh340 if mkfifo $tmp/fifo 2> /dev/null
341 then (print -n a; sleep 2; print -n bcde) > $tmp/fifo &
345 } 5< $tmp/fifo
352 rm -f $tmp/fifo
354 mkfifo $tmp/fifo 2> /dev/null
355 (print -n a; sleep 2; print -n bcde) > $tmp/fifo &
359 } 5< $tmp/fifo
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dtail.c143 int fifo; member
275 tp->fifo = 0; in init()
323 tp->fifo = 1; in init()
666 else if (fp->fifo || fp->end < st.st_size) in b_tail()
671 z = fp->fifo ? SF_UNBOUND : st.st_size - fp->cur; in b_tail()
H A DRELEASE54 09-08-25 tail.c: initialize Tail_t.fifo=0 !!
55 09-08-15 tail.c: fix fifo logic
/illumos-gate/usr/src/test/zfs-tests/tests/functional/xattr/
H A Dxattr_010_neg.ksh64 log_mustnot runat $TESTDIR/myfile.$$ mknod fifo p
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dargs.c808 shp->fifo = pathtemp(0,0,0,"ksh.fifo",0); in sh_argprocsub()
809 mkfifo(shp->fifo,S_IRUSR|S_IWUSR); in sh_argprocsub()
810 sfputr(shp->stk,shp->fifo,0); in sh_argprocsub()
835 free(shp->fifo); in sh_argprocsub()
836 shp->fifo = 0; in sh_argprocsub()
/illumos-gate/usr/src/uts/common/io/xge/hal/include/
H A Dxgehal-config.h743 xge_hal_fifo_config_t fifo; member
H A Dxgehal-regs.h300 #define XGE_HAL_SET_TX_MAT(fifo, msi) vBIT(msi, (8 * fifo), 8) argument
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/
H A Ddefs.h180 char *fifo; /* fifo name for process sub */ \
/illumos-gate/usr/src/uts/common/io/audio/impl/
H A Daudio_oss.c1544 unsigned samples, fifo; in sndctl_dsp_current_optr() local
1547 auclnt_get_output_qlen(c, &samples, &fifo); in sndctl_dsp_current_optr()
1549 count->fifo_samples = fifo; in sndctl_dsp_current_optr()

12