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.c170 struct spi_transfer *tfr, in bcm2835_spi_transfer_one_irq() argument
244 struct spi_transfer *tfr, in bcm2835_spi_prepare_sg() argument
259 nents = tfr->tx_sg.nents; in bcm2835_spi_prepare_sg()
260 sgl = tfr->tx_sg.sgl; in bcm2835_spi_prepare_sg()
266 nents = tfr->rx_sg.nents; in bcm2835_spi_prepare_sg()
267 sgl = tfr->rx_sg.sgl; in bcm2835_spi_prepare_sg()
303 struct spi_transfer *tfr, in bcm2835_spi_transfer_one_dma() argument
310 if (bcm2835_check_sg_length(&tfr->tx_sg) || in bcm2835_spi_transfer_one_dma()
311 bcm2835_check_sg_length(&tfr->rx_sg)) { in bcm2835_spi_transfer_one_dma()
314 return bcm2835_spi_transfer_one_irq(master, spi, tfr, cs); in bcm2835_spi_transfer_one_dma()
[all …]
Dspi-sun4i.c210 struct spi_transfer *tfr) in sun4i_spi_transfer_one() argument
220 if (tfr->len > SUN4I_MAX_XFER_SIZE) in sun4i_spi_transfer_one()
223 if (tfr->tx_buf && tfr->len >= SUN4I_MAX_XFER_SIZE) in sun4i_spi_transfer_one()
227 sspi->tx_buf = tfr->tx_buf; in sun4i_spi_transfer_one()
228 sspi->rx_buf = tfr->rx_buf; in sun4i_spi_transfer_one()
229 sspi->len = tfr->len; in sun4i_spi_transfer_one()
274 if (mclk_rate < (2 * tfr->speed_hz)) { in sun4i_spi_transfer_one()
275 clk_set_rate(sspi->mclk, 2 * tfr->speed_hz); in sun4i_spi_transfer_one()
293 div = mclk_rate / (2 * tfr->speed_hz); in sun4i_spi_transfer_one()
300 div = ilog2(mclk_rate) - ilog2(tfr->speed_hz); in sun4i_spi_transfer_one()
[all …]
Dspi-bcm2835aux.c229 struct spi_transfer *tfr) in __bcm2835aux_spi_transfer_one_irq() argument
244 struct spi_transfer *tfr) in bcm2835aux_spi_transfer_one_irq() argument
261 return __bcm2835aux_spi_transfer_one_irq(master, spi, tfr); in bcm2835aux_spi_transfer_one_irq()
266 struct spi_transfer *tfr) in bcm2835aux_spi_transfer_one_poll() argument
292 spi, tfr); in bcm2835aux_spi_transfer_one_poll()
302 struct spi_transfer *tfr) in bcm2835aux_spi_transfer_one() argument
318 spi_hz = tfr->speed_hz; in bcm2835aux_spi_transfer_one()
338 bs->tx_buf = tfr->tx_buf; in bcm2835aux_spi_transfer_one()
339 bs->rx_buf = tfr->rx_buf; in bcm2835aux_spi_transfer_one()
340 bs->tx_len = tfr->len; in bcm2835aux_spi_transfer_one()
[all …]
Dspi-sun6i.c202 struct spi_transfer *tfr) in sun6i_spi_transfer_one() argument
212 if (tfr->len > SUN6I_MAX_XFER_SIZE) in sun6i_spi_transfer_one()
216 sspi->tx_buf = tfr->tx_buf; in sun6i_spi_transfer_one()
217 sspi->rx_buf = tfr->rx_buf; in sun6i_spi_transfer_one()
218 sspi->len = tfr->len; in sun6i_spi_transfer_one()
275 if (mclk_rate < (2 * tfr->speed_hz)) { in sun6i_spi_transfer_one()
276 clk_set_rate(sspi->mclk, 2 * tfr->speed_hz); in sun6i_spi_transfer_one()
294 div = mclk_rate / (2 * tfr->speed_hz); in sun6i_spi_transfer_one()
301 div = ilog2(mclk_rate) - ilog2(tfr->speed_hz); in sun6i_spi_transfer_one()
309 tx_len = tfr->len; in sun6i_spi_transfer_one()
[all …]