Home
last modified time | relevance | path

Searched refs:fifo_depth (Results 1 – 25 of 50) sorted by relevance

12

/openbmc/qemu/hw/ssi/
H A Dmss-spi.c108 s->fifo_depth = 32; in set_fifodepth()
110 s->fifo_depth = 16; in set_fifodepth()
112 s->fifo_depth = 8; in set_fifodepth()
151 s->fifo_depth = 4; in mss_spi_reset()
240 if (fifo32_num_used(&s->rx_fifo) == s->fifo_depth) { in spi_flush_txfifo()
246 if (fifo32_num_used(&s->rx_fifo) == (s->fifo_depth - 1)) { in spi_flush_txfifo()
248 } else if (fifo32_num_used(&s->rx_fifo) == s->fifo_depth) { in spi_flush_txfifo()
279 if (fifo32_num_used(&s->tx_fifo) == s->fifo_depth) { in spi_write()
284 if (fifo32_num_used(&s->tx_fifo) == (s->fifo_depth - 1)) { in spi_write()
286 } else if (fifo32_num_used(&s->tx_fifo) == s->fifo_depth) { in spi_write()
[all …]
/openbmc/u-boot/drivers/mmc/
H A Drockchip_dw_mmc.c31 int fifo_depth; member
69 priv->fifo_depth = dev_read_u32_default(dev, "fifo-depth", 0); in rockchip_dwmmc_ofdata_to_platdata()
71 if (priv->fifo_depth < 0) in rockchip_dwmmc_ofdata_to_platdata()
113 priv->fifo_depth = dtplat->fifo_depth; in rockchip_dwmmc_probe()
127 RX_WMARK(priv->fifo_depth / 2 - 1) | in rockchip_dwmmc_probe()
128 TX_WMARK(priv->fifo_depth / 2); in rockchip_dwmmc_probe()
H A Dsocfpga_dw_mmc.c105 int fifo_depth; in socfpga_dwmmc_ofdata_to_platdata() local
107 fifo_depth = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in socfpga_dwmmc_ofdata_to_platdata()
109 if (fifo_depth < 0) { in socfpga_dwmmc_ofdata_to_platdata()
126 RX_WMARK(fifo_depth / 2 - 1) | TX_WMARK(fifo_depth / 2); in socfpga_dwmmc_ofdata_to_platdata()
/openbmc/qemu/hw/audio/
H A Dpl041.c89 uint32_t fifo_depth; /* FIFO depth in non-compact mode */ member
126 switch (s->fifo_depth) { in pl041_compute_periphid3()
179 if (fifo->level < s->fifo_depth) { in pl041_fifo1_write()
207 if ((fifo->level + 2) < s->fifo_depth) { in pl041_fifo1_write()
242 if (fifo->level >= (s->fifo_depth / 2)) { in pl041_fifo1_write()
246 if (fifo->level >= s->fifo_depth) { in pl041_fifo1_write()
262 if (fifo->level >= (s->fifo_depth / 2)) { in pl041_fifo1_transmit()
292 if (fifo->level <= (s->fifo_depth / 2)) { in pl041_fifo1_transmit()
547 switch (s->fifo_depth) { in pl041_realize()
563 s->fifo_depth); in pl041_realize()
[all …]
/openbmc/linux/drivers/net/can/spi/mcp251xfd/
H A Dmcp251xfd-ram.c17 max = min_t(u8, obj->max, obj->fifo_num * config->fifo_depth); in can_ram_clamp()
38 ret = min_t(u8, coalesce * 2, config->fifo_depth); in can_ram_rounddown_pow_of_two()
47 config->fifo_depth); in can_ram_rounddown_pow_of_two()
119 max = min_t(u8, num_rx / 2, config->fifo_depth); in can_ram_get_layout()
142 max = min_t(u8, num_tx / 2, config->fifo_depth); in can_ram_get_layout()
H A Dmcp251xfd-ram.h39 u8 fifo_depth; member
/openbmc/u-boot/drivers/net/phy/
H A Dti.c112 int fifo_depth; member
249 dp83867->fifo_depth = ofnode_read_u32_default(node, "ti,fifo-depth", in dp83867_of_init()
278 dp83867->fifo_depth = DEFAULT_FIFO_DEPTH; in dp83867_of_init()
321 (dp83867->fifo_depth << DP83867_PHYCR_FIFO_DEPTH_SHIFT)); in dp83867_config()
364 (dp83867->fifo_depth << DP83867_PHYCTRL_RXFIFO_SHIFT) | in dp83867_config()
365 (dp83867->fifo_depth << DP83867_PHYCTRL_TXFIFO_SHIFT)); in dp83867_config()
/openbmc/linux/drivers/i2c/busses/
H A Di2c-cadence.c220 u32 fifo_depth; member
247 (id->curr_recv_count == id->fifo_depth + 1)); in cdns_is_holdquirk()
442 if (id->recv_count <= id->fifo_depth && in cdns_i2c_master_isr()
467 (id->curr_recv_count - id->fifo_depth)) in cdns_i2c_master_isr()
479 id->fifo_depth; in cdns_i2c_master_isr()
482 id->fifo_depth, in cdns_i2c_master_isr()
505 avail_bytes = id->fifo_depth - in cdns_i2c_master_isr()
599 if (id->recv_count > id->fifo_depth) in cdns_i2c_mrecv()
685 if (id->send_count > id->fifo_depth) in cdns_i2c_msend()
698 avail_bytes = id->fifo_depth - in cdns_i2c_msend()
[all …]
H A Di2c-exynos5.c214 unsigned int fifo_depth; member
219 .fifo_depth = 64,
224 .fifo_depth = 16,
229 .fifo_depth = 16,
234 .fifo_depth = 64,
530 len = i2c->variant->fifo_depth - fifo_level; in exynos5_i2c_irq()
671 trig_lvl = (i2c->msg->len > i2c->variant->fifo_depth) ? in exynos5_i2c_message_start()
672 (i2c->variant->fifo_depth * 3 / 4) : i2c->msg->len; in exynos5_i2c_message_start()
680 trig_lvl = (i2c->msg->len > i2c->variant->fifo_depth) ? in exynos5_i2c_message_start()
681 (i2c->variant->fifo_depth * 1 / 4) : i2c->msg->len; in exynos5_i2c_message_start()
/openbmc/linux/drivers/spi/
H A Dspi-sun6i.c94 unsigned long fifo_depth; member
171 cnt = sspi->cfg->fifo_depth - sun6i_spi_get_tx_fifo_count(sspi); in sun6i_spi_fill_fifo()
314 trig_level = sspi->cfg->fifo_depth / 4 * 3; in sun6i_spi_transfer_one()
321 trig_level = sspi->cfg->fifo_depth / 2; in sun6i_spi_transfer_one()
477 if (rx_len > sspi->cfg->fifo_depth) in sun6i_spi_transfer_one()
479 if (tx_len > sspi->cfg->fifo_depth) in sun6i_spi_transfer_one()
625 return xfer->len > sspi->cfg->fifo_depth; in sun6i_spi_can_dma()
780 .fifo_depth = SUN6I_FIFO_DEPTH,
785 .fifo_depth = SUN8I_FIFO_DEPTH,
790 .fifo_depth = SUN8I_FIFO_DEPTH,
H A Dspi-sifive.c94 unsigned int fifo_depth; /* fifo depth in words */ member
205 return 1600000 * spi->fifo_depth <= t->speed_hz * mode; in sifive_spi_prep_transfer()
265 unsigned int n_words = min(remaining_words, spi->fifo_depth); in sifive_spi_transfer_one()
331 &spi->fifo_depth); in sifive_spi_probe()
333 spi->fifo_depth = SIFIVE_SPI_DEFAULT_DEPTH; in sifive_spi_probe()
H A Dspi-omap2-mcspi.c129 int fifo_depth; member
333 mcspi->fifo_depth = max_fifo_depth; in omap2_mcspi_set_fifo()
346 mcspi->fifo_depth = 0; in omap2_mcspi_set_fifo()
459 if (mcspi->fifo_depth == 0) in omap2_mcspi_rx_dma()
479 if ((l & OMAP2_MCSPI_CHCONF_TURBO) && mcspi->fifo_depth == 0) in omap2_mcspi_rx_dma()
528 if (mcspi->fifo_depth > 0) in omap2_mcspi_rx_dma()
654 if (mcspi->fifo_depth > 0) { in omap2_mcspi_txrx_dma()
668 if (mcspi->fifo_depth > 0) { in omap2_mcspi_txrx_dma()
1233 if (mcspi->fifo_depth > 0) in omap2_mcspi_transfer_one()
1256 if (mcspi->fifo_depth > 0 && t) in omap2_mcspi_transfer_one()
/openbmc/linux/sound/soc/fsl/
H A Dfsl_sai.c1189 sai->param.fifo_depth = 1 << in fsl_sai_check_version()
1534 .fifo_depth = 32,
1545 .fifo_depth = 32,
1556 .fifo_depth = 16,
1567 .fifo_depth = 128,
1578 .fifo_depth = 64,
1589 .fifo_depth = 128,
1600 .fifo_depth = 128,
1611 .fifo_depth = 128,
1623 .fifo_depth = 16,
[all …]
H A Dfsl_sai.h236 unsigned int fifo_depth; member
264 u32 fifo_depth; member
/openbmc/linux/drivers/parport/
H A Dparport_ip32.c254 unsigned int fifo_depth; member
1286 count = priv->fifo_depth; in parport_ip32_fwp_wait_polling()
1353 count = priv->fifo_depth; in parport_ip32_fwp_wait_interrupt()
1887 priv->fifo_depth = 0; in parport_ip32_fifo_supported()
1891 priv->fifo_depth = i; in parport_ip32_fifo_supported()
1900 if (!priv->fifo_depth) { in parport_ip32_fifo_supported()
1904 pr_probe(p, "FIFO is %u PWords deep\n", priv->fifo_depth); in parport_ip32_fifo_supported()
1912 for (i = 0; i < priv->fifo_depth; i++) { in parport_ip32_fifo_supported()
1921 if (i + 1 < priv->fifo_depth in parport_ip32_fifo_supported()
1952 for (i = 0; i < priv->fifo_depth; i++) { in parport_ip32_fifo_supported()
[all …]
H A Dparport_pc.c493 const int fifo_depth = priv->fifo_depth; in parport_pc_fifo_write_block_pio() local
556 const int n = left < fifo_depth ? left : fifo_depth; in parport_pc_fifo_write_block_pio()
754 expire = jiffies + (priv->fifo_depth * HZ * 4); in parport_pc_compat_write_block_pio()
769 for (written -= priv->fifo_depth; ; written++) { in parport_pc_compat_write_block_pio()
849 expire = jiffies + (priv->fifo_depth * (HZ * 4)); in parport_pc_ecp_write_block_pio()
1610 priv->fifo_depth = i; in parport_ECP_supported()
1617 for (i = 1; i <= priv->fifo_depth; i++) { in parport_ECP_supported()
1624 if (i <= priv->fifo_depth) { in parport_ECP_supported()
1641 for (i = 1; i <= priv->fifo_depth; i++) { in parport_ECP_supported()
1647 if (i <= priv->fifo_depth) { in parport_ECP_supported()
[all …]
/openbmc/u-boot/drivers/spi/
H A Dspi-sunxi.c117 u32 fifo_depth; member
363 nbytes = min(len, (priv->variant->fifo_depth - 1)); in sun4i_spi_xfer()
590 .fifo_depth = 64,
596 .fifo_depth = 128,
604 .fifo_depth = 64,
H A Dzynq_spi.c68 u8 fifo_depth; member
131 priv->fifo_depth = ZYNQ_SPI_FIFO_DEPTH; in zynq_spi_probe()
236 while ((tx_tvl < priv->fifo_depth) && tx_len) { in zynq_spi_xfer()
H A Dxilinx_spi.c107 unsigned int fifo_depth; member
118 priv->fifo_depth = dev_read_u32_default(bus, "fifo-size", 0); in xilinx_spi_probe()
176 i < priv->fifo_depth) { in xilinx_spi_fill_txfifo()
H A Dpic32_spi.c61 u32 fifo_depth; /* FIFO depth in bytes */ member
192 priv->fifo_n_word = DIV_ROUND_UP(priv->fifo_depth, wordlen / 8); in pic32_spi_set_word_size()
355 priv->fifo_depth = 16; in pic32_spi_hw_init()
/openbmc/qemu/include/hw/ssi/
H A Dmss-spi.h52 int fifo_depth; member
/openbmc/u-boot/doc/driver-model/
H A Dof-plat.txt123 fdt32_t fifo_depth;
133 .fifo_depth = 0x100,
218 int fifo_depth;
229 plat->fifo_depth = fdtdec_get_int(blob, node, "fifo-depth", 0);
243 plat->fifo_depth = dtplat->fifo_depth;
246 writel(plat->fifo_depth, ...)
/openbmc/linux/drivers/gpu/drm/vc4/
H A Dvc4_crtc.c225 u32 fifo_len_bytes = pv_data->fifo_depth; in vc4_get_fifo_full_level()
1150 .fifo_depth = 64,
1165 .fifo_depth = 64,
1180 .fifo_depth = 64,
1195 .fifo_depth = 64,
1210 .fifo_depth = 64,
1225 .fifo_depth = 256,
1239 .fifo_depth = 64,
1253 .fifo_depth = 64,
/openbmc/linux/sound/arm/
H A Daaci.c438 runtime->hw.fifo_size = aaci->fifo_depth * 2; in aaci_pcm_open()
528 aacirun->fifo_bytes = aaci->fifo_depth * 4 / 2; in aaci_pcm_hw_params()
1031 aaci->fifo_depth = aaci_size_fifo(aaci); in aaci_probe()
1032 if (aaci->fifo_depth & 15) { in aaci_probe()
1034 aaci->fifo_depth); in aaci_probe()
1046 dev_info(&dev->dev, "FIFO %u entries\n", aaci->fifo_depth); in aaci_probe()
/openbmc/linux/drivers/mmc/host/
H A Ddw_mmc-pci.c31 .fifo_depth = 32,

12