Searched refs:tfr (Results 1 – 6 of 6) sorted by relevance
| /drivers/md/ |
| A D | dm-log-userspace-transfer.c | 67 msg->seq = tfr->seq; in dm_ulog_sendto_server() 85 uint32_t rtn_seq = (msg) ? msg->seq : (tfr) ? tfr->seq : 0; in fill_pkg() 113 tfr->request_type, 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() 147 fill_pkg(NULL, tfr); in cn_ulog_callback() 203 tfr->luid = luid; in dm_consult_userspace() 204 tfr->seq = dm_ulog_seq++; in dm_consult_userspace() 213 tfr->data_size = data_size; in dm_consult_userspace() 219 pkg.seq = tfr->seq; in dm_consult_userspace() [all …]
|
| /drivers/spi/ |
| A D | spi-bcm2835.c | 126 struct spi_transfer *tfr; member 492 bs->tfr = tfr; in bcm2835_spi_transfer_prologue() 576 struct spi_transfer *tfr = bs->tfr; in bcm2835_spi_undo_prologue() local 689 nents = tfr->tx_sg.nents; in bcm2835_spi_prepare_sg() 690 sgl = tfr->tx_sg.sgl; in bcm2835_spi_prepare_sg() 696 sgl = tfr->rx_sg.sgl; in bcm2835_spi_prepare_sg() 1063 spi_hz = tfr->speed_hz; in bcm2835_spi_transfer_one() 1085 bs->tx_buf = tfr->tx_buf; in bcm2835_spi_transfer_one() 1086 bs->rx_buf = tfr->rx_buf; in bcm2835_spi_transfer_one() 1087 bs->tx_len = tfr->len; in bcm2835_spi_transfer_one() [all …]
|
| A D | spi-sun6i.c | 218 if (tfr->rx_buf) { in sun6i_spi_prepare_dma() 229 tfr->rx_sg.sgl, in sun6i_spi_prepare_dma() 240 if (tfr->tx_buf) { in sun6i_spi_prepare_dma() 251 tfr->tx_sg.sgl, in sun6i_spi_prepare_dma() 262 if (tfr->rx_buf) { in sun6i_spi_prepare_dma() 267 if (tfr->tx_buf) { in sun6i_spi_prepare_dma() 324 if (tfr->tx_buf) in sun6i_spi_transfer_one() 326 if (tfr->rx_buf) in sun6i_spi_transfer_one() 362 rx_len = tfr->len; in sun6i_spi_transfer_one() 438 tx_len = tfr->len; in sun6i_spi_transfer_one() [all …]
|
| A D | spi-sun4i.c | 206 struct spi_transfer *tfr) in sun4i_spi_transfer_one() argument 217 if (tfr->len > SUN4I_MAX_XFER_SIZE) in sun4i_spi_transfer_one() 220 if (tfr->tx_buf && tfr->len >= SUN4I_MAX_XFER_SIZE) in sun4i_spi_transfer_one() 224 sspi->tx_buf = tfr->tx_buf; in sun4i_spi_transfer_one() 225 sspi->rx_buf = tfr->rx_buf; in sun4i_spi_transfer_one() 226 sspi->len = tfr->len; in sun4i_spi_transfer_one() 274 if (mclk_rate < (2 * tfr->speed_hz)) { in sun4i_spi_transfer_one() 293 div = mclk_rate / (2 * tfr->speed_hz); in sun4i_spi_transfer_one() 308 tx_len = tfr->len; in sun4i_spi_transfer_one() 332 tx_time = max(tfr->len * 8 * 2 / (tfr->speed_hz / 1000), 100U); in sun4i_spi_transfer_one() [all …]
|
| A D | spi-bcm2835aux.c | 262 struct spi_transfer *tfr) in __bcm2835aux_spi_transfer_one_irq() argument 277 struct spi_transfer *tfr) in bcm2835aux_spi_transfer_one_irq() argument 302 struct spi_transfer *tfr) in bcm2835aux_spi_transfer_one_poll() argument 332 spi, tfr); in bcm2835aux_spi_transfer_one_poll() 342 struct spi_transfer *tfr) in bcm2835aux_spi_transfer_one() argument 357 spi_hz = tfr->speed_hz; in bcm2835aux_spi_transfer_one() 377 bs->tx_buf = tfr->tx_buf; in bcm2835aux_spi_transfer_one() 378 bs->rx_buf = tfr->rx_buf; in bcm2835aux_spi_transfer_one() 379 bs->tx_len = tfr->len; in bcm2835aux_spi_transfer_one() 380 bs->rx_len = tfr->len; in bcm2835aux_spi_transfer_one() [all …]
|
| A D | spi-cs42l43.c | 143 struct spi_transfer *tfr) in cs42l43_transfer_one() argument 149 if (CS42L43_SPI_ROOT_HZ / cs42l43_clock_divs[i] <= tfr->speed_hz) in cs42l43_transfer_one() 158 if (tfr->tx_buf) { in cs42l43_transfer_one() 160 regmap_write(priv->regmap, CS42L43_TRAN_CONFIG4, tfr->len - 1); in cs42l43_transfer_one() 161 } else if (tfr->rx_buf) { in cs42l43_transfer_one() 163 regmap_write(priv->regmap, CS42L43_TRAN_CONFIG5, tfr->len - 1); in cs42l43_transfer_one() 168 if (tfr->tx_buf) in cs42l43_transfer_one() 169 ret = cs42l43_spi_tx(priv->regmap, (const u8 *)tfr->tx_buf, tfr->len); in cs42l43_transfer_one() 170 else if (tfr->rx_buf) in cs42l43_transfer_one() 171 ret = cs42l43_spi_rx(priv->regmap, (u8 *)tfr->rx_buf, tfr->len); in cs42l43_transfer_one()
|
Completed in 20 milliseconds