/openbmc/qemu/hw/ssi/ |
H A D | mss-spi.c | 108 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 D | rockchip_dw_mmc.c | 31 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 D | socfpga_dw_mmc.c | 105 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 D | pl041.c | 89 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 D | mcp251xfd-ram.c | 17 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 D | mcp251xfd-ram.h | 39 u8 fifo_depth; member
|
/openbmc/u-boot/drivers/net/phy/ |
H A D | ti.c | 112 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 D | i2c-cadence.c | 220 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() 474 if (((int)(id->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() 623 if (!id->bus_hold_flag && id->recv_count <= id->fifo_depth) { in cdns_i2c_mrecv() [all …]
|
H A D | i2c-exynos5.c | 214 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 D | spi-sun6i.c | 94 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 D | spi-sifive.c | 94 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 D | spi-omap2-mcspi.c | 129 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 > in omap2_mcspi_transfer_one() [all...] |
/openbmc/linux/sound/soc/fsl/ |
H A D | fsl_sai.c | 662 watermark = tx ? (sai->soc_data->fifo_depth - dma_params->maxburst) : in fsl_sai_hw_params() 665 FSL_SAI_CR1_RFW_MASK(sai->soc_data->fifo_depth), in fsl_sai_hw_params() 897 FSL_SAI_CR1_RFW_MASK(sai->soc_data->fifo_depth), in fsl_sai_dai_probe() 898 sai->soc_data->fifo_depth - sai->dma_params_tx.maxburst); in fsl_sai_dai_probe() 900 FSL_SAI_CR1_RFW_MASK(sai->soc_data->fifo_depth), in fsl_sai_dai_probe() 1192 sai->param.fifo_depth = 1 << in fsl_sai_check_version() 1537 .fifo_depth = 32, 1548 .fifo_depth = 32, 1559 .fifo_depth = 16, 1570 .fifo_depth = 128, [all …]
|
H A D | fsl_sai.h | 237 unsigned int fifo_depth; member 265 u32 fifo_depth; member
|
/openbmc/linux/drivers/parport/ |
H A D | parport_ip32.c | 254 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() 1563 for (residue = priv->fifo_depth; residue > 0; residue--) { in parport_ip32_get_fifo_residue() 1656 parport_ip32_drain_fifo(p, physport->cad->timeout * priv->fifo_depth); in parport_ip32_compat_write_data() 1737 parport_ip32_drain_fifo(p, physport->cad->timeout * priv->fifo_depth); in parport_ip32_ecp_write_data() 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() [all …]
|
H A D | parport_pc.c | 493 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() 864 for (written -= priv->fifo_depth; ; written++) { 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() [all …]
|
/openbmc/u-boot/drivers/spi/ |
H A D | spi-sunxi.c | 117 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 D | zynq_spi.c | 68 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 D | xilinx_spi.c | 107 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 D | pic32_spi.c | 61 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/linux/drivers/gpu/drm/vc4/ |
H A D | vc4_crtc.c | 225 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/u-boot/doc/driver-model/ |
H A D | of-plat.txt | 123 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/qemu/include/hw/ssi/ |
H A D | mss-spi.h | 52 int fifo_depth; member
|
/openbmc/qemu/rust/hw/char/pl011/src/ |
H A D | device.rs | 197 self.read_pos = (self.read_pos + 1) & (self.fifo_depth() - 1); in read() 452 self.read_count < self.fifo_depth() in can_receive() 473 pub fn fifo_depth(&self) -> usize { in fifo_depth() method 482 let depth = self.fifo_depth(); in put_fifo()
|
/openbmc/linux/sound/arm/ |
H A D | aaci.c | 438 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()
|