Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/gpu/drm/nouveau/dispnv04/
Darb.c119 int fifo_len, min_lwm, max_lwm; in nv10_calc_arb() local
130 fifo_len = arb->two_heads ? 1536 : 1024; /* B */ in nv10_calc_arb()
176 max_burst_o = (1 + fifo_len - extra_lat * drain_rate / (1000 * 1000)) in nv10_calc_arb()
189 max_lwm = fifo_len - fifo->burst in nv10_calc_arb()
/linux-4.1.27/drivers/spi/
Dspi-dw.c160 tx_room = dws->fifo_len - dw_readl(dws, DW_SPI_TXFLR); in tx_max()
173 return min3(tx_left, tx_room, (u32) (dws->fifo_len - rxtx_gap)); in tx_max()
377 txlevel = min_t(u16, dws->fifo_len / 2, dws->len / dws->n_bytes); in dw_spi_transfer_one()
498 if (!dws->fifo_len) { in spi_hw_init()
508 dws->fifo_len = (fifo == 1) ? 0 : fifo; in spi_hw_init()
509 dev_dbg(dev, "Detected FIFO size: %u bytes\n", dws->fifo_len); in spi_hw_init()
Dspi-rockchip.c172 u32 fifo_len; member
252 tx_room = rs->fifo_len - readl_relaxed(rs->regs + ROCKCHIP_SPI_TXFLR); in tx_max()
550 writel_relaxed(rs->fifo_len / 2 - 1, rs->regs + ROCKCHIP_SPI_TXFTLR); in rockchip_spi_config()
551 writel_relaxed(rs->fifo_len / 2 - 1, rs->regs + ROCKCHIP_SPI_RXFTLR); in rockchip_spi_config()
630 return (xfer->len > rs->fifo_len); in rockchip_spi_can_dma()
695 rs->fifo_len = get_fifo_len(rs); in rockchip_spi_probe()
696 if (!rs->fifo_len) { in rockchip_spi_probe()
Dspi-dw.h109 u32 fifo_len; /* depth of the FIFO buffer */ member
Dspi-dw-mid.c123 return xfer->len > dws->fifo_len; in mid_spi_can_dma()
/linux-4.1.27/drivers/staging/fwserial/
Dfwserial.h41 __be32 fifo_len; member
88 int fifo_len; member
Dfwserial.c1639 size_t fifo_len = port->rx_handler.length - 4; in fill_plug_params() local
1645 params->fifo_len = cpu_to_be32(fifo_len); in fill_plug_params()
1695 peer->fifo_len = be32_to_cpu(params->fifo_len); in fwserial_virt_plug_complete()
1700 port->max_payload = min(peer->max_payload, peer->fifo_len); in fwserial_virt_plug_complete()
/linux-4.1.27/arch/cris/include/uapi/arch-v10/arch/
Dsvinto.h37 unsigned char fifo_len; /* 15 */ member
/linux-4.1.27/drivers/media/rc/
Dnuvoton-cir.c167 u8 i, fifo_len; in cir_wake_dump_regs() local
218 fifo_len = nvt_cir_wake_reg_read(nvt, CIR_WAKE_FIFO_COUNT); in cir_wake_dump_regs()
219 pr_info("%s: Dump CIR WAKE FIFO (len %d)\n", NVT_DRIVER_NAME, fifo_len); in cir_wake_dump_regs()
221 for (i = 0; i < fifo_len; i++) in cir_wake_dump_regs()
/linux-4.1.27/drivers/crypto/
Dtalitos.h119 unsigned int fifo_len; member
Dtalitos.c226 priv->chan[ch].head = (priv->chan[ch].head + 1) & (priv->fifo_len - 1); in talitos_submit()
284 priv->chan[ch].tail = (tail + 1) & (priv->fifo_len - 1); in flush_channel()
356 iter = (iter + 1) & (priv->fifo_len - 1); in DEF_TALITOS_DONE()
2709 priv->fifo_len = roundup_pow_of_two(priv->chfifo_len); in talitos_probe()
2720 priv->fifo_len, GFP_KERNEL); in talitos_probe()
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Dmac80211.c886 u32 fifo_len; in iwl_mvm_dump_fifos() local
903 fifo_len = mvm->shared_mem_cfg.rxfifo_size[i]; in iwl_mvm_dump_fifos()
906 if (fifo_len == 0) in iwl_mvm_dump_fifos()
911 (*dump_data)->len = cpu_to_le32(fifo_len + sizeof(*fifo_hdr)); in iwl_mvm_dump_fifos()
947 fifo_len /= sizeof(u32); /* Size in DWORDS */ in iwl_mvm_dump_fifos()
948 for (j = 0; j < fifo_len; j++) in iwl_mvm_dump_fifos()
962 fifo_len = mvm->shared_mem_cfg.txfifo_size[i]; in iwl_mvm_dump_fifos()
965 if (fifo_len == 0) in iwl_mvm_dump_fifos()
970 (*dump_data)->len = cpu_to_le32(fifo_len + sizeof(*fifo_hdr)); in iwl_mvm_dump_fifos()
997 fifo_len /= sizeof(u32); /* Size in DWORDS */ in iwl_mvm_dump_fifos()
[all …]
/linux-4.1.27/drivers/net/ethernet/neterion/
Ds2io.h379 u32 fifo_len; /* specifies len of FIFO up to 8192, ie no of TxDLs */ member
650 u32 fifo_len; member
655 u32 fifo_len; member
Ds2io.c591 size += tx_cfg->fifo_len; in init_shared_mem()
604 size = tx_cfg->fifo_len; in init_shared_mem()
622 int fifo_len = tx_cfg->fifo_len; in init_shared_mem() local
623 int list_holder_size = fifo_len * sizeof(struct list_info_hold); in init_shared_mem()
633 int page_num = TXD_MEM_PAGE_CNT(config->tx_cfg[i].fifo_len, in init_shared_mem()
639 fifo->tx_curr_put_info.fifo_len = tx_cfg->fifo_len - 1; in init_shared_mem()
641 fifo->tx_curr_get_info.fifo_len = tx_cfg->fifo_len - 1; in init_shared_mem()
680 if (l == tx_cfg->fifo_len) in init_shared_mem()
695 size = tx_cfg->fifo_len; in init_shared_mem()
907 page_num = TXD_MEM_PAGE_CNT(tx_cfg->fifo_len, lst_per_page); in free_shared_mem()
[all …]
/linux-4.1.27/drivers/media/radio/
Dradio-si476x.c1117 size_t fifo_len; in si476x_radio_fops_read() local
1137 fifo_len = kfifo_len(&radio->core->rds_fifo); in si476x_radio_fops_read()
1140 min(fifo_len, count), in si476x_radio_fops_read()
/linux-4.1.27/drivers/scsi/arm/
Dfas216.c1546 unsigned int fifo_len = fas216_readb(info, REG_CFIS) & CFIS_CF; in fas216_funcdone_intr() local
1556 if (fifo_len != 2) { in fas216_funcdone_intr()
1557 fas216_log(info, 0, "odd number of bytes in FIFO: %d", fifo_len); in fas216_funcdone_intr()
1575 info->scsi.msgin_fifo = fifo_len; in fas216_funcdone_intr()
/linux-4.1.27/arch/cris/arch-v10/drivers/
Dsync_serial.c1251 port->in_descr[i].fifo_len = 0; in start_dma_in()