Home
last modified time | relevance | path

Searched refs:fifo_len (Results 1 – 25 of 36) sorted by relevance

12

/openbmc/qemu/hw/char/
H A Dmcf_uart.c33 int fifo_len; member
95 if (s->fifo_len == 0) in mcf_uart_read()
99 s->fifo_len--; in mcf_uart_read()
103 if (s->fifo_len == 0) in mcf_uart_read()
150 s->fifo_len = 0; in mcf_do_command()
237 s->fifo_len = 0; in mcf_uart_reset()
250 if (s->fifo_len == 4) in mcf_uart_push_byte()
251 s->fifo_len--; in mcf_uart_push_byte()
253 s->fifo[s->fifo_len] = data; in mcf_uart_push_byte()
254 s->fifo_len++; in mcf_uart_push_byte()
[all …]
/openbmc/qemu/hw/sd/
H A Dpl181.c48 int32_t fifo_len; member
80 VMSTATE_INT32(fifo_len, PL181State),
147 if (s->fifo_len == PL181_FIFO_LEN) { in pl181_fifo_push()
152 s->fifo_len++; in pl181_fifo_push()
161 if (s->fifo_len == 0) { in pl181_fifo_pop()
166 s->fifo_len--; in pl181_fifo_pop()
266 if (s->fifo_len == 0) { in pl181_fifo_run()
273 if (s->fifo_len == 16) { in pl181_fifo_run()
277 if (s->fifo_len <= 8) { in pl181_fifo_run()
280 if (s->fifo_len >= 8) { in pl181_fifo_run()
[all …]
H A Domap_mmc.c52 int fifo_len; member
78 if (!host->transfer && !host->fifo_len) { in omap_mmc_fifolevel_update()
143 host->fifo_len = 0; in omap_mmc_command()
254 host->fifo_len ++; in omap_mmc_transfer()
256 if (!host->fifo_len) in omap_mmc_transfer()
268 host->fifo_len --; in omap_mmc_transfer()
297 host->fifo_len = 0; in omap_mmc_pseudo_reset()
372 if (s->fifo_len == 0) { in omap_mmc_read()
377 s->fifo_len --; in omap_mmc_read()
505 if (s->fifo_len == 32) in omap_mmc_write()
[all …]
H A Dbcm2835_sdhost.c159 if (s->fifo_len == BCM2835_SDHOST_FIFO_LEN) { in bcm2835_sdhost_fifo_push()
163 n = (s->fifo_pos + s->fifo_len) & (BCM2835_SDHOST_FIFO_LEN - 1); in bcm2835_sdhost_fifo_push()
164 s->fifo_len++; in bcm2835_sdhost_fifo_push()
172 if (s->fifo_len == 0) { in bcm2835_sdhost_fifo_pop()
177 s->fifo_len--; in bcm2835_sdhost_fifo_pop()
194 while (s->datacnt && s->fifo_len < BCM2835_SDHOST_FIFO_LEN) { in bcm2835_sdhost_fifo_run()
217 while (s->datacnt > 0 && (s->fifo_len > 0 || n > 0)) { in bcm2835_sdhost_fifo_run()
254 s->edm |= ((s->fifo_len & 0x1f) << 4); in bcm2835_sdhost_fifo_run()
395 VMSTATE_INT32(fifo_len, BCM2835SDHostState),
428 s->fifo_len = 0; in bcm2835_sdhost_reset()
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Drpm.c464 u32 fifo_len; in rpm_get_lmac_fifo_len() local
466 fifo_len = rpm->mac_ops->fifo_len; in rpm_get_lmac_fifo_len()
471 return fifo_len; in rpm_get_lmac_fifo_len()
473 return fifo_len / 2; in rpm_get_lmac_fifo_len()
480 return fifo_len / 4; in rpm_get_lmac_fifo_len()
483 return fifo_len / 4; in rpm_get_lmac_fifo_len()
508 u32 fifo_len; in rpm2_get_lmac_fifo_len() local
519 fifo_len = rpm->mac_ops->fifo_len / 2; in rpm2_get_lmac_fifo_len()
521 fifo_len = rpm->mac_ops->fifo_len; in rpm2_get_lmac_fifo_len()
534 return fifo_len; in rpm2_get_lmac_fifo_len()
[all …]
H A Dcgx.c500 u32 fifo_len; in cgx_get_lmac_fifo_len() local
502 fifo_len = cgx->mac_ops->fifo_len; in cgx_get_lmac_fifo_len()
507 return fifo_len; in cgx_get_lmac_fifo_len()
509 return fifo_len / 2; in cgx_get_lmac_fifo_len()
513 return fifo_len / 2; in cgx_get_lmac_fifo_len()
514 return fifo_len / 4; in cgx_get_lmac_fifo_len()
517 return fifo_len / 4; in cgx_get_lmac_fifo_len()
1743 cgx->mac_ops->fifo_len = FIELD_GET(CGX_CONST_RXFIFO_SIZE, cfg); in cgx_populate_features()
H A Dlmac_common.h75 u32 fifo_len; member
/openbmc/linux/drivers/mailbox/
H A Dsprd-mailbox.c84 u32 fifo_len; in sprd_mbox_get_fifo_len() local
92 fifo_len = priv->outbox_fifo_depth; in sprd_mbox_get_fifo_len()
94 fifo_len = 0; in sprd_mbox_get_fifo_len()
96 fifo_len = wr_pos - rd_pos; in sprd_mbox_get_fifo_len()
98 fifo_len = priv->outbox_fifo_depth - rd_pos + wr_pos; in sprd_mbox_get_fifo_len()
101 return fifo_len; in sprd_mbox_get_fifo_len()
107 u32 fifo_sts, fifo_len, msg[2]; in do_outbox_isr() local
112 fifo_len = sprd_mbox_get_fifo_len(priv, fifo_sts); in do_outbox_isr()
113 if (!fifo_len) { in do_outbox_isr()
118 for (i = 0; i < fifo_len; i++) { in do_outbox_isr()
/openbmc/linux/drivers/tty/serial/8250/
H A D8250_dfl.c55 u64 fifo_len, clk_freq, reg_layout; in dfl_uart_get_params() local
65 ret = dfh_get_u64_param_val(dfl_dev, DFHv1_PARAM_ID_FIFO_LEN, &fifo_len); in dfl_uart_get_params()
69 switch (fifo_len) { in dfl_uart_get_params()
83 return dev_err_probe(dev, -EINVAL, "unsupported FIFO_LEN %llu\n", fifo_len); in dfl_uart_get_params()
/openbmc/linux/drivers/iio/imu/st_lsm6dsx/
H A Dst_lsm6dsx_buffer.c355 u16 fifo_len, pattern_len = hw->sip * ST_LSM6DSX_SAMPLE_SIZE; in st_lsm6dsx_read_fifo() local
373 fifo_len = (le16_to_cpu(fifo_status) & fifo_diff_mask) * in st_lsm6dsx_read_fifo()
375 fifo_len = (fifo_len / pattern_len) * pattern_len; in st_lsm6dsx_read_fifo()
382 for (read_len = 0; read_len < fifo_len; read_len += pattern_len) { in st_lsm6dsx_read_fifo()
575 u16 fifo_len, fifo_diff_mask; in st_lsm6dsx_read_tagged_fifo() local
599 fifo_len = (le16_to_cpu(fifo_status) & fifo_diff_mask) * in st_lsm6dsx_read_tagged_fifo()
601 if (!fifo_len) in st_lsm6dsx_read_tagged_fifo()
604 for (read_len = 0; read_len < fifo_len; read_len += pattern_len) { in st_lsm6dsx_read_tagged_fifo()
/openbmc/linux/drivers/gpu/drm/nouveau/dispnv04/
H A Darb.c115 int fifo_len, min_lwm, max_lwm; in nv10_calc_arb() local
126 fifo_len = arb->two_heads ? 1536 : 1024; /* B */ in nv10_calc_arb()
172 max_burst_o = (1 + fifo_len - extra_lat * drain_rate / (1000 * 1000)) in nv10_calc_arb()
185 max_lwm = fifo_len - fifo->burst in nv10_calc_arb()
/openbmc/u-boot/drivers/spi/
H A Ddesignware_spi.c110 u32 fifo_len; /* depth of the FIFO buffer */ member
188 if (!priv->fifo_len) { in spi_hw_init()
197 priv->fifo_len = (fifo == 1) ? 0 : fifo; in spi_hw_init()
200 debug("%s: fifo_len=%d\n", __func__, priv->fifo_len); in spi_hw_init()
299 tx_room = priv->fifo_len - dw_read(priv, DW_SPI_TXFLR); in tx_max()
312 return min3(tx_left, tx_room, (u32)(priv->fifo_len - rxtx_gap)); in tx_max()
/openbmc/linux/drivers/spi/
H A Dspi-dw-core.c112 tx_room = dws->fifo_len - dw_readl(dws, DW_SPI_TXFLR); in dw_spi_tx_max()
122 rxtx_gap = dws->fifo_len - (dws->rx_len - dws->tx_len); in dw_spi_tx_max()
364 level = min_t(unsigned int, dws->fifo_len / 2, dws->tx_len); in dw_spi_irq_setup()
563 len = min(dws->fifo_len, dws->tx_len); in dw_spi_write_then_read()
582 room = min(dws->fifo_len - entries, len); in dw_spi_write_then_read()
843 if (!dws->fifo_len) { in dw_spi_hw_init()
853 dws->fifo_len = (fifo == 1) ? 0 : fifo; in dw_spi_hw_init()
854 dev_dbg(dev, "Detected FIFO size: %u bytes\n", dws->fifo_len); in dw_spi_hw_init()
H A Dspi-rockchip.c188 u32 fifo_len; member
298 u32 tx_free = rs->fifo_len - readl_relaxed(rs->regs + ROCKCHIP_SPI_TXFLR); in rockchip_spi_pio_writer()
485 .dst_maxburst = rs->fifo_len / 4, in rockchip_spi_prepare_dma()
592 if ((xfer->len / rs->n_bytes) < rs->fifo_len) in rockchip_spi_config()
595 writel_relaxed(rs->fifo_len / 2 - 1, rs->regs + ROCKCHIP_SPI_RXFTLR); in rockchip_spi_config()
597 writel_relaxed(rs->fifo_len / 2 - 1, rs->regs + ROCKCHIP_SPI_DMATDLR); in rockchip_spi_config()
721 return xfer->len / bytes_per_word >= rs->fifo_len; in rockchip_spi_can_dma()
842 rs->fifo_len = get_fifo_len(rs); in rockchip_spi_probe()
843 if (!rs->fifo_len) { in rockchip_spi_probe()
H A Dspi-hisi-kunpeng.c129 u32 fifo_len; /* depth of the FIFO buffer */ member
226 u32 max = min_t(u32, hs->rx_len, hs->fifo_len); in hisi_spi_reader()
252 u32 max = min_t(u32, hs->tx_len, hs->fifo_len); in hisi_spi_writer()
332 hs->fifo_len = 256; in hisi_spi_hw_init()
H A Dspi-s3c64xx.c758 const unsigned int fifo_len = sdd->fifo_depth; in s3c64xx_spi_transfer_one() local
786 if (!is_polling(sdd) && xfer->len >= fifo_len && in s3c64xx_spi_transfer_one()
789 } else if (xfer->len >= fifo_len) { in s3c64xx_spi_transfer_one()
794 xfer->len = fifo_len - 1; in s3c64xx_spi_transfer_one()
812 if (fifo_len == 128) in s3c64xx_spi_transfer_one()
814 else if (fifo_len == 256) in s3c64xx_spi_transfer_one()
889 if (target_len >= fifo_len) in s3c64xx_spi_transfer_one()
890 xfer->len = fifo_len - 1; in s3c64xx_spi_transfer_one()
H A Dspi-dw-mmio.c252 dwsmmio->dws.fifo_len = 31; in dw_spi_mountevans_imc_init()
267 dwsmmio->dws.fifo_len = 31; in dw_spi_canaan_k210_init()
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/fw/
H A Ddbg.c67 u32 fifo_len; in iwl_fwrt_dump_rxf() local
72 fifo_len = size; in iwl_fwrt_dump_rxf()
75 if (fifo_len == 0) in iwl_fwrt_dump_rxf()
122 u32 fifo_len; in iwl_fwrt_dump_txf() local
127 fifo_len = size; in iwl_fwrt_dump_txf()
130 if (fifo_len == 0) in iwl_fwrt_dump_txf()
208 u32 fifo_len; in iwl_fw_dump_txf() local
679 u32 fifo_len = 0; in iwl_fw_rxf_len() local
695 return fifo_len; in iwl_fw_rxf_len()
731 return fifo_len; in iwl_fw_txf_len()
[all …]
/openbmc/linux/drivers/media/rc/
H A Dnuvoton-cir.c209 int fifo_len, duration; in wakeup_data_show() local
216 fifo_len = nvt_cir_wake_reg_read(nvt, CIR_WAKE_FIFO_COUNT); in wakeup_data_show()
217 fifo_len = min(fifo_len, WAKEUP_MAX_SIZE); in wakeup_data_show()
223 for (i = 0; i < fifo_len; i++) { in wakeup_data_show()
318 u8 i, fifo_len; in cir_wake_dump_regs() local
369 fifo_len = nvt_cir_wake_reg_read(nvt, CIR_WAKE_FIFO_COUNT); in cir_wake_dump_regs()
370 pr_info("%s: Dump CIR WAKE FIFO (len %d)\n", NVT_DRIVER_NAME, fifo_len); in cir_wake_dump_regs()
372 for (i = 0; i < fifo_len; i++) in cir_wake_dump_regs()
/openbmc/qemu/include/hw/sd/
H A Dbcm2835_sdhost.h41 int32_t fifo_len; member
/openbmc/linux/drivers/crypto/bcm/
H A Dutil.c357 u32 fifo_len; in spu_debugfs_read() local
459 fifo_len = spu_ofifo_ctrl & SPU_FIFO_WATERMARK; in spu_debugfs_read()
463 i, fifo_len); in spu_debugfs_read()
/openbmc/qemu/hw/arm/
H A Dpxa2xx.c1580 i2s->fifo_len = 0; in pxa2xx_i2s_reset()
1598 tfs = (i2s->tx_len || i2s->fifo_len < SACR_TFTH(i2s->control[0])) && in pxa2xx_i2s_update()
1605 if (i2s->fifo_len < 16 || !i2s->enable) in pxa2xx_i2s_update()
1616 i2s->status |= i2s->fifo_len << 8; /* TFL */ in pxa2xx_i2s_update()
1676 for (sample = s->fifo; s->fifo_len > 0; s->fifo_len --, sample ++) in pxa2xx_i2s_write()
1690 s->fifo_len = 0; in pxa2xx_i2s_write()
1709 } else if (s->fifo_len < 16) { in pxa2xx_i2s_write()
1710 s->fifo[s->fifo_len ++] = value; in pxa2xx_i2s_write()
1739 VMSTATE_INT32(fifo_len, PXA2xxI2SState),
1757 s->tx_len = tx - s->fifo_len; in pxa2xx_i2s_data_req()
[all …]
/openbmc/qemu/hw/net/
H A Dlan9118.c540 int fifo_len; in lan9118_receive() local
569 fifo_len = (size + n + 3) >> 2; in lan9118_receive()
571 fifo_len++; in lan9118_receive()
572 if (s->rx_fifo_size - s->rx_fifo_used < fifo_len) { in lan9118_receive()
577 (int)size, fifo_len, filter ? "pass" : "fail"); in lan9118_receive()
602 s->rx_packet_size[s->rx_packet_size_tail] = fifo_len; in lan9118_receive()
/openbmc/u-boot/include/faraday/
H A Dftsdc010.h53 unsigned int fifo_len; /* bytes */ member
/openbmc/qemu/include/hw/arm/
H A Dpxa.h188 int fifo_len; member

12