Home
last modified time | relevance | path

Searched refs:tfr (Results 1 – 5 of 5) sorted by relevance

/drivers/md/
Ddm-log-userspace-transfer.c56 static int dm_ulog_sendto_server(struct dm_ulog_request *tfr) in dm_ulog_sendto_server() argument
66 msg->seq = tfr->seq; in dm_ulog_sendto_server()
67 msg->len = sizeof(struct dm_ulog_request) + tfr->data_size; in dm_ulog_sendto_server()
82 static int fill_pkg(struct cn_msg *msg, struct dm_ulog_request *tfr) in fill_pkg() argument
84 uint32_t rtn_seq = (msg) ? msg->seq : (tfr) ? tfr->seq : 0; in fill_pkg()
110 } else if (tfr->data_size > *(pkg->data_size)) { in fill_pkg()
112 "(%u vs %zu)", tfr->request_type, in fill_pkg()
113 tfr->data_size, *(pkg->data_size)); in fill_pkg()
118 pkg->error = tfr->error; in fill_pkg()
119 memcpy(pkg->data, tfr->data, tfr->data_size); in fill_pkg()
[all …]
/drivers/spi/
Dspi-bcm2835.c122 struct spi_transfer *tfr; member
404 struct spi_transfer *tfr, in bcm2835_spi_transfer_one_irq() argument
478 struct spi_transfer *tfr, in bcm2835_spi_transfer_prologue() argument
484 bs->tfr = tfr; in bcm2835_spi_transfer_prologue()
489 if (bs->tx_buf && !sg_is_last(&tfr->tx_sg.sgl[0])) in bcm2835_spi_transfer_prologue()
490 bs->tx_prologue = sg_dma_len(&tfr->tx_sg.sgl[0]) & 3; in bcm2835_spi_transfer_prologue()
492 if (bs->rx_buf && !sg_is_last(&tfr->rx_sg.sgl[0])) { in bcm2835_spi_transfer_prologue()
493 bs->rx_prologue = sg_dma_len(&tfr->rx_sg.sgl[0]) & 3; in bcm2835_spi_transfer_prologue()
496 if (!bs->tx_buf || sg_is_last(&tfr->tx_sg.sgl[0])) { in bcm2835_spi_transfer_prologue()
501 !(sg_dma_len(&tfr->tx_sg.sgl[0]) & ~3); in bcm2835_spi_transfer_prologue()
[all …]
Dspi-sun6i.c201 struct spi_transfer *tfr) in sun6i_spi_prepare_dma() argument
207 if (tfr->rx_buf) { in sun6i_spi_prepare_dma()
218 tfr->rx_sg.sgl, in sun6i_spi_prepare_dma()
219 tfr->rx_sg.nents, in sun6i_spi_prepare_dma()
229 if (tfr->tx_buf) { in sun6i_spi_prepare_dma()
240 tfr->tx_sg.sgl, in sun6i_spi_prepare_dma()
241 tfr->tx_sg.nents, in sun6i_spi_prepare_dma()
251 if (tfr->rx_buf) { in sun6i_spi_prepare_dma()
256 if (tfr->tx_buf) { in sun6i_spi_prepare_dma()
266 struct spi_transfer *tfr) in sun6i_spi_transfer_one() argument
[all …]
Dspi-sun4i.c206 struct spi_transfer *tfr) in sun4i_spi_transfer_one() argument
216 if (tfr->len > SUN4I_MAX_XFER_SIZE) in sun4i_spi_transfer_one()
219 if (tfr->tx_buf && tfr->len >= SUN4I_MAX_XFER_SIZE) in sun4i_spi_transfer_one()
223 sspi->tx_buf = tfr->tx_buf; in sun4i_spi_transfer_one()
224 sspi->rx_buf = tfr->rx_buf; in sun4i_spi_transfer_one()
225 sspi->len = tfr->len; in sun4i_spi_transfer_one()
270 if (mclk_rate < (2 * tfr->speed_hz)) { in sun4i_spi_transfer_one()
271 clk_set_rate(sspi->mclk, 2 * tfr->speed_hz); in sun4i_spi_transfer_one()
289 div = mclk_rate / (2 * tfr->speed_hz); in sun4i_spi_transfer_one()
296 div = ilog2(mclk_rate) - ilog2(tfr->speed_hz); in sun4i_spi_transfer_one()
[all …]
Dspi-bcm2835aux.c265 struct spi_transfer *tfr) in __bcm2835aux_spi_transfer_one_irq() argument
280 struct spi_transfer *tfr) in bcm2835aux_spi_transfer_one_irq() argument
300 return __bcm2835aux_spi_transfer_one_irq(master, spi, tfr); in bcm2835aux_spi_transfer_one_irq()
305 struct spi_transfer *tfr) in bcm2835aux_spi_transfer_one_poll() argument
335 spi, tfr); in bcm2835aux_spi_transfer_one_poll()
345 struct spi_transfer *tfr) in bcm2835aux_spi_transfer_one() argument
360 spi_hz = tfr->speed_hz; in bcm2835aux_spi_transfer_one()
377 tfr->effective_speed_hz = clk_hz / (2 * (speed + 1)); in bcm2835aux_spi_transfer_one()
380 bs->tx_buf = tfr->tx_buf; in bcm2835aux_spi_transfer_one()
381 bs->rx_buf = tfr->rx_buf; in bcm2835aux_spi_transfer_one()
[all …]