Home
last modified time | relevance | path

Searched refs:cur_pos (Results 1 – 6 of 6) sorted by relevance

/drivers/media/pci/b2c2/
Dflexcop-pci.c186 u32 cur_pos = cur_addr - fc_pci->dma[0].dma_addr0; in flexcop_pci_isr() local
187 if (cur_pos > fc_pci->dma[0].size * 2) in flexcop_pci_isr()
193 v.raw, (unsigned long long)cur_addr, cur_pos, in flexcop_pci_isr()
200 if (cur_pos < fc_pci->last_dma1_cur_pos) { in flexcop_pci_isr()
212 if (cur_pos > fc_pci->last_dma1_cur_pos) { in flexcop_pci_isr()
214 cur_pos - fc_pci->last_dma1_cur_pos); in flexcop_pci_isr()
218 cur_pos - fc_pci->last_dma1_cur_pos); in flexcop_pci_isr()
222 fc_pci->last_dma1_cur_pos = cur_pos; in flexcop_pci_isr()
/drivers/spi/
Dspi-tegra114.c178 unsigned cur_pos; member
254 unsigned remain_len = t->len - tspi->cur_pos; in tegra_spi_calculate_curr_xfer_param()
317 if (nbytes > t->len - tspi->cur_pos) in tegra_spi_fill_tx_fifo_from_client_txbuf()
318 nbytes = t->len - tspi->cur_pos; in tegra_spi_fill_tx_fifo_from_client_txbuf()
363 if (len > t->len - tspi->cur_pos) in tegra_spi_read_rx_fifo_to_client_rxbuf()
364 len = t->len - tspi->cur_pos; in tegra_spi_read_rx_fifo_to_client_rxbuf()
389 memcpy(tspi->tx_dma_buf, t->tx_buf + tspi->cur_pos, len); in tegra_spi_copy_client_txbuf_to_spi_txbuf()
398 if (consume > t->len - tspi->cur_pos) in tegra_spi_copy_client_txbuf_to_spi_txbuf()
399 consume = t->len - tspi->cur_pos; in tegra_spi_copy_client_txbuf_to_spi_txbuf()
438 if (consume > t->len - tspi->cur_pos) in tegra_spi_copy_spi_rxbuf_to_client_rxbuf()
[all …]
Dspi-tegra20-sflash.c126 unsigned cur_pos; member
172 unsigned remain_len = t->len - tsd->cur_pos; in tegra_sflash_calculate_curr_xfer_param()
276 tsd->cur_pos = 0; in tegra_sflash_start_transfer_one()
392 tsd->cur_pos = tsd->cur_tx_pos; in handle_cpu_based_xfer()
394 tsd->cur_pos = tsd->cur_rx_pos; in handle_cpu_based_xfer()
396 if (tsd->cur_pos == t->len) { in handle_cpu_based_xfer()
Dspi-tegra20-slink.c176 unsigned cur_pos; member
269 unsigned remain_len = t->len - tspi->cur_pos; in tegra_slink_calculate_curr_xfer_param()
384 memcpy(tspi->tx_dma_buf, t->tx_buf + tspi->cur_pos, len); in tegra_slink_copy_client_txbuf_to_spi_txbuf()
707 tspi->cur_pos = 0; in tegra_slink_start_transfer_one()
875 tspi->cur_pos = tspi->cur_tx_pos; in handle_cpu_based_xfer()
877 tspi->cur_pos = tspi->cur_rx_pos; in handle_cpu_based_xfer()
879 if (tspi->cur_pos == t->len) { in handle_cpu_based_xfer()
949 tspi->cur_pos = tspi->cur_tx_pos; in handle_dma_based_xfer()
951 tspi->cur_pos = tspi->cur_rx_pos; in handle_dma_based_xfer()
953 if (tspi->cur_pos == t->len) { in handle_dma_based_xfer()
/drivers/usb/serial/
Dkobil_sct.c113 int cur_pos; /* index of the next char to send in buf */ member
138 priv->cur_pos = 0; in kobil_port_probe()
339 todo = priv->filled - priv->cur_pos; in kobil_write()
346 priv->buf + priv->cur_pos, length); in kobil_write()
349 priv->cur_pos = priv->cur_pos + length; in kobil_write()
353 todo = priv->filled - priv->cur_pos; in kobil_write()
360 priv->cur_pos = 0; in kobil_write()
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_cmdbuf.c113 size_t cur_pos; member
574 if (man->cur_pos == 0) { in __vmw_cmdbuf_cur_flush()
579 man->cur->cb_header->length = man->cur_pos; in __vmw_cmdbuf_cur_flush()
584 man->cur_pos = 0; in __vmw_cmdbuf_cur_flush()
922 if (cur && (size + man->cur_pos > cur->size || in vmw_cmdbuf_reserve_cur()
946 return (void *) (man->cur->cmd + man->cur_pos); in vmw_cmdbuf_reserve_cur()
964 man->cur_pos += size; in vmw_cmdbuf_commit_cur()
1025 man->cur_pos = size; in vmw_cmdbuf_commit()