Home
last modified time | relevance | path

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

/drivers/iio/imu/st_lsm6dsx/
Dst_lsm6dsx_buffer.c341 u16 fifo_len, pattern_len = hw->sip * ST_LSM6DSX_SAMPLE_SIZE; in st_lsm6dsx_read_fifo() local
363 fifo_len = (le16_to_cpu(fifo_status) & fifo_diff_mask) * in st_lsm6dsx_read_fifo()
365 fifo_len = (fifo_len / pattern_len) * pattern_len; in st_lsm6dsx_read_fifo()
370 for (read_len = 0; read_len < fifo_len; read_len += pattern_len) { in st_lsm6dsx_read_fifo()
519 u16 fifo_len, fifo_diff_mask; in st_lsm6dsx_read_tagged_fifo() local
536 fifo_len = (le16_to_cpu(fifo_status) & fifo_diff_mask) * in st_lsm6dsx_read_tagged_fifo()
538 if (!fifo_len) in st_lsm6dsx_read_tagged_fifo()
541 for (read_len = 0; read_len < fifo_len; read_len += pattern_len) { in st_lsm6dsx_read_tagged_fifo()
/drivers/net/wireless/intel/iwlwifi/fw/
Ddbg.c125 u32 fifo_len; in iwl_fwrt_dump_rxf() local
130 fifo_len = size; in iwl_fwrt_dump_rxf()
133 if (fifo_len == 0) in iwl_fwrt_dump_rxf()
138 (*dump_data)->len = cpu_to_le32(fifo_len + sizeof(*fifo_hdr)); in iwl_fwrt_dump_rxf()
166 fifo_len /= sizeof(u32); /* Size in DWORDS */ in iwl_fwrt_dump_rxf()
167 for (i = 0; i < fifo_len; i++) in iwl_fwrt_dump_rxf()
180 u32 fifo_len; in iwl_fwrt_dump_txf() local
185 fifo_len = size; in iwl_fwrt_dump_txf()
188 if (fifo_len == 0) in iwl_fwrt_dump_txf()
193 (*dump_data)->len = cpu_to_le32(fifo_len + sizeof(*fifo_hdr)); in iwl_fwrt_dump_txf()
[all …]
/drivers/gpu/drm/nouveau/dispnv04/
Darb.c117 int fifo_len, min_lwm, max_lwm; in nv10_calc_arb() local
128 fifo_len = arb->two_heads ? 1536 : 1024; /* B */ in nv10_calc_arb()
174 max_burst_o = (1 + fifo_len - extra_lat * drain_rate / (1000 * 1000)) in nv10_calc_arb()
187 max_lwm = fifo_len - fifo->burst in nv10_calc_arb()
/drivers/spi/
Dspi-rockchip.c178 u32 fifo_len; member
269 u32 tx_free = rs->fifo_len - readl_relaxed(rs->regs + ROCKCHIP_SPI_TXFLR); in rockchip_spi_pio_writer()
420 .dst_maxburst = rs->fifo_len / 4, in rockchip_spi_prepare_dma()
516 if (xfer->len < rs->fifo_len) in rockchip_spi_config()
519 writel_relaxed(rs->fifo_len / 2 - 1, rs->regs + ROCKCHIP_SPI_RXFTLR); in rockchip_spi_config()
521 writel_relaxed(rs->fifo_len / 2, rs->regs + ROCKCHIP_SPI_DMATDLR); in rockchip_spi_config()
582 return xfer->len / bytes_per_word >= rs->fifo_len; in rockchip_spi_can_dma()
666 rs->fifo_len = get_fifo_len(rs); in rockchip_spi_probe()
667 if (!rs->fifo_len) { in rockchip_spi_probe()
Dspi-dw.c149 tx_room = dws->fifo_len - dw_readl(dws, DW_SPI_TXFLR); in tx_max()
162 return min3(tx_left, tx_room, (u32) (dws->fifo_len - rxtx_gap)); in tx_max()
360 txlevel = min_t(u16, dws->fifo_len / 2, dws->len / dws->n_bytes); in dw_spi_transfer_one()
448 if (!dws->fifo_len) { in spi_hw_init()
458 dws->fifo_len = (fifo == 1) ? 0 : fifo; in spi_hw_init()
459 dev_dbg(dev, "Detected FIFO size: %u bytes\n", dws->fifo_len); in spi_hw_init()
Dspi-s3c64xx.c637 const unsigned int fifo_len = (FIFO_LVL_MASK(sdd) >> 1) + 1; in s3c64xx_spi_transfer_one() local
660 if (!is_polling(sdd) && (xfer->len > fifo_len) && in s3c64xx_spi_transfer_one()
664 } else if (is_polling(sdd) && xfer->len > fifo_len) { in s3c64xx_spi_transfer_one()
670 if (xfer->len > fifo_len) in s3c64xx_spi_transfer_one()
671 xfer->len = fifo_len; in s3c64xx_spi_transfer_one()
719 if (target_len > fifo_len) in s3c64xx_spi_transfer_one()
720 xfer->len = fifo_len; in s3c64xx_spi_transfer_one()
Dspi-dw.h110 u32 fifo_len; /* depth of the FIFO buffer */ member
Dspi-dw-mid.c115 return xfer->len > dws->fifo_len; in mid_spi_can_dma()
/drivers/media/rc/
Dnuvoton-cir.c216 int fifo_len, duration; in wakeup_data_show() local
223 fifo_len = nvt_cir_wake_reg_read(nvt, CIR_WAKE_FIFO_COUNT); in wakeup_data_show()
224 fifo_len = min(fifo_len, WAKEUP_MAX_SIZE); in wakeup_data_show()
230 for (i = 0; i < fifo_len; i++) { in wakeup_data_show()
325 u8 i, fifo_len; in cir_wake_dump_regs() local
376 fifo_len = nvt_cir_wake_reg_read(nvt, CIR_WAKE_FIFO_COUNT); in cir_wake_dump_regs()
377 pr_info("%s: Dump CIR WAKE FIFO (len %d)\n", NVT_DRIVER_NAME, fifo_len); in cir_wake_dump_regs()
379 for (i = 0; i < fifo_len; i++) in cir_wake_dump_regs()
/drivers/staging/fwserial/
Dfwserial.h42 __be32 fifo_len; member
89 int fifo_len; member
Dfwserial.c1580 size_t fifo_len = port->rx_handler.length - 4; in fill_plug_params() local
1586 params->fifo_len = cpu_to_be32(fifo_len); in fill_plug_params()
1630 peer->fifo_len = be32_to_cpu(params->fifo_len); in fwserial_virt_plug_complete()
1635 port->max_payload = min(peer->max_payload, peer->fifo_len); in fwserial_virt_plug_complete()
/drivers/crypto/bcm/
Dutil.c355 u32 fifo_len; in spu_debugfs_read() local
457 fifo_len = spu_ofifo_ctrl & SPU_FIFO_WATERMARK; in spu_debugfs_read()
461 i, fifo_len); in spu_debugfs_read()
/drivers/net/ethernet/neterion/
Ds2io.h380 u32 fifo_len; /* specifies len of FIFO up to 8192, ie no of TxDLs */ member
651 u32 fifo_len; member
656 u32 fifo_len; member
Ds2io.c583 size += tx_cfg->fifo_len; in init_shared_mem()
596 size = tx_cfg->fifo_len; in init_shared_mem()
614 int fifo_len = tx_cfg->fifo_len; in init_shared_mem() local
615 int list_holder_size = fifo_len * sizeof(struct list_info_hold); in init_shared_mem()
625 int page_num = TXD_MEM_PAGE_CNT(config->tx_cfg[i].fifo_len, in init_shared_mem()
631 fifo->tx_curr_put_info.fifo_len = tx_cfg->fifo_len - 1; in init_shared_mem()
633 fifo->tx_curr_get_info.fifo_len = tx_cfg->fifo_len - 1; in init_shared_mem()
672 if (l == tx_cfg->fifo_len) in init_shared_mem()
687 size = tx_cfg->fifo_len; in init_shared_mem()
898 page_num = TXD_MEM_PAGE_CNT(tx_cfg->fifo_len, lst_per_page); in free_shared_mem()
[all …]
/drivers/crypto/
Dtalitos.h140 unsigned int fifo_len; member
Dtalitos.c306 priv->chan[ch].head = (priv->chan[ch].head + 1) & (priv->fifo_len - 1); in talitos_submit()
383 priv->chan[ch].tail = (tail + 1) & (priv->fifo_len - 1); in flush_channel()
482 iter = (iter + 1) & (priv->fifo_len - 1);
3406 priv->fifo_len = roundup_pow_of_two(priv->chfifo_len); in talitos_probe()
3417 priv->fifo_len, in talitos_probe()
/drivers/media/radio/
Dradio-si476x.c1097 size_t fifo_len; in si476x_radio_fops_read() local
1117 fifo_len = kfifo_len(&radio->core->rds_fifo); in si476x_radio_fops_read()
1120 min(fifo_len, count), in si476x_radio_fops_read()
/drivers/scsi/arm/
Dfas216.c1551 unsigned int fifo_len = fas216_readb(info, REG_CFIS) & CFIS_CF; in fas216_funcdone_intr() local
1561 if (fifo_len != 2) { in fas216_funcdone_intr()
1562 fas216_log(info, 0, "odd number of bytes in FIFO: %d", fifo_len); in fas216_funcdone_intr()
1580 info->scsi.msgin_fifo = fifo_len; in fas216_funcdone_intr()