tfr 3939 arch/mips/include/asm/octeon/cvmx-mio-defs.h uint64_t tfr:8; tfr 3941 arch/mips/include/asm/octeon/cvmx-mio-defs.h uint64_t tfr:8; tfr 4354 arch/mips/include/asm/octeon/cvmx-mio-defs.h uint64_t tfr:8; tfr 4356 arch/mips/include/asm/octeon/cvmx-mio-defs.h uint64_t tfr:8; tfr 56 drivers/md/dm-log-userspace-transfer.c static int dm_ulog_sendto_server(struct dm_ulog_request *tfr) tfr 66 drivers/md/dm-log-userspace-transfer.c msg->seq = tfr->seq; tfr 67 drivers/md/dm-log-userspace-transfer.c msg->len = sizeof(struct dm_ulog_request) + tfr->data_size; tfr 82 drivers/md/dm-log-userspace-transfer.c static int fill_pkg(struct cn_msg *msg, struct dm_ulog_request *tfr) tfr 84 drivers/md/dm-log-userspace-transfer.c uint32_t rtn_seq = (msg) ? msg->seq : (tfr) ? tfr->seq : 0; tfr 110 drivers/md/dm-log-userspace-transfer.c } else if (tfr->data_size > *(pkg->data_size)) { tfr 112 drivers/md/dm-log-userspace-transfer.c "(%u vs %zu)", tfr->request_type, tfr 113 drivers/md/dm-log-userspace-transfer.c tfr->data_size, *(pkg->data_size)); tfr 118 drivers/md/dm-log-userspace-transfer.c pkg->error = tfr->error; tfr 119 drivers/md/dm-log-userspace-transfer.c memcpy(pkg->data, tfr->data, tfr->data_size); tfr 120 drivers/md/dm-log-userspace-transfer.c *(pkg->data_size) = tfr->data_size; tfr 135 drivers/md/dm-log-userspace-transfer.c struct dm_ulog_request *tfr = (struct dm_ulog_request *)(msg + 1); tfr 143 drivers/md/dm-log-userspace-transfer.c else if (msg->len < sizeof(*tfr)) tfr 145 drivers/md/dm-log-userspace-transfer.c (unsigned)sizeof(*tfr), msg->len, msg->seq); tfr 147 drivers/md/dm-log-userspace-transfer.c fill_pkg(NULL, tfr); tfr 178 drivers/md/dm-log-userspace-transfer.c struct dm_ulog_request *tfr = prealloced_ulog_tfr; tfr 200 drivers/md/dm-log-userspace-transfer.c memset(tfr, 0, DM_ULOG_PREALLOCED_SIZE - sizeof(struct cn_msg)); tfr 201 drivers/md/dm-log-userspace-transfer.c memcpy(tfr->uuid, uuid, DM_UUID_LEN); tfr 202 drivers/md/dm-log-userspace-transfer.c tfr->version = DM_ULOG_REQUEST_VERSION; tfr 203 drivers/md/dm-log-userspace-transfer.c tfr->luid = luid; tfr 204 drivers/md/dm-log-userspace-transfer.c tfr->seq = dm_ulog_seq++; tfr 211 drivers/md/dm-log-userspace-transfer.c tfr->request_type = request_type & DM_ULOG_REQUEST_MASK; tfr 213 drivers/md/dm-log-userspace-transfer.c tfr->data_size = data_size; tfr 215 drivers/md/dm-log-userspace-transfer.c memcpy(tfr->data, data, data_size); tfr 219 drivers/md/dm-log-userspace-transfer.c pkg.seq = tfr->seq; tfr 226 drivers/md/dm-log-userspace-transfer.c r = dm_ulog_sendto_server(tfr); tfr 127 drivers/spi/spi-bcm2835.c struct spi_transfer *tfr; tfr 399 drivers/spi/spi-bcm2835.c struct spi_transfer *tfr, tfr 473 drivers/spi/spi-bcm2835.c struct spi_transfer *tfr, tfr 479 drivers/spi/spi-bcm2835.c bs->tfr = tfr; tfr 484 drivers/spi/spi-bcm2835.c if (bs->tx_buf && !sg_is_last(&tfr->tx_sg.sgl[0])) tfr 485 drivers/spi/spi-bcm2835.c bs->tx_prologue = sg_dma_len(&tfr->tx_sg.sgl[0]) & 3; tfr 487 drivers/spi/spi-bcm2835.c if (bs->rx_buf && !sg_is_last(&tfr->rx_sg.sgl[0])) { tfr 488 drivers/spi/spi-bcm2835.c bs->rx_prologue = sg_dma_len(&tfr->rx_sg.sgl[0]) & 3; tfr 491 drivers/spi/spi-bcm2835.c if (!bs->tx_buf || sg_is_last(&tfr->tx_sg.sgl[0])) { tfr 496 drivers/spi/spi-bcm2835.c !(sg_dma_len(&tfr->tx_sg.sgl[0]) & ~3); tfr 518 drivers/spi/spi-bcm2835.c sg_dma_address(&tfr->rx_sg.sgl[0]), tfr 521 drivers/spi/spi-bcm2835.c sg_dma_address(&tfr->rx_sg.sgl[0]) += bs->rx_prologue; tfr 522 drivers/spi/spi-bcm2835.c sg_dma_len(&tfr->rx_sg.sgl[0]) -= bs->rx_prologue; tfr 544 drivers/spi/spi-bcm2835.c sg_dma_address(&tfr->tx_sg.sgl[0]) += bs->tx_prologue; tfr 545 drivers/spi/spi-bcm2835.c sg_dma_len(&tfr->tx_sg.sgl[0]) -= bs->tx_prologue; tfr 547 drivers/spi/spi-bcm2835.c sg_dma_len(&tfr->tx_sg.sgl[0]) = 0; tfr 548 drivers/spi/spi-bcm2835.c sg_dma_address(&tfr->tx_sg.sgl[1]) += 4; tfr 549 drivers/spi/spi-bcm2835.c sg_dma_len(&tfr->tx_sg.sgl[1]) -= 4; tfr 563 drivers/spi/spi-bcm2835.c struct spi_transfer *tfr = bs->tfr; tfr 569 drivers/spi/spi-bcm2835.c sg_dma_address(&tfr->rx_sg.sgl[0]) -= bs->rx_prologue; tfr 570 drivers/spi/spi-bcm2835.c sg_dma_len(&tfr->rx_sg.sgl[0]) += bs->rx_prologue; tfr 577 drivers/spi/spi-bcm2835.c sg_dma_address(&tfr->tx_sg.sgl[0]) -= bs->tx_prologue; tfr 578 drivers/spi/spi-bcm2835.c sg_dma_len(&tfr->tx_sg.sgl[0]) += bs->tx_prologue; tfr 580 drivers/spi/spi-bcm2835.c sg_dma_len(&tfr->tx_sg.sgl[0]) = bs->tx_prologue - 4; tfr 581 drivers/spi/spi-bcm2835.c sg_dma_address(&tfr->tx_sg.sgl[1]) -= 4; tfr 582 drivers/spi/spi-bcm2835.c sg_dma_len(&tfr->tx_sg.sgl[1]) += 4; tfr 661 drivers/spi/spi-bcm2835.c struct spi_transfer *tfr, tfr 677 drivers/spi/spi-bcm2835.c nents = tfr->tx_sg.nents; tfr 678 drivers/spi/spi-bcm2835.c sgl = tfr->tx_sg.sgl; tfr 679 drivers/spi/spi-bcm2835.c flags = tfr->rx_buf ? 0 : DMA_PREP_INTERRUPT; tfr 683 drivers/spi/spi-bcm2835.c nents = tfr->rx_sg.nents; tfr 684 drivers/spi/spi-bcm2835.c sgl = tfr->rx_sg.sgl; tfr 699 drivers/spi/spi-bcm2835.c } else if (!tfr->rx_buf) { tfr 760 drivers/spi/spi-bcm2835.c struct spi_transfer *tfr, tfr 774 drivers/spi/spi-bcm2835.c bcm2835_spi_transfer_prologue(ctlr, tfr, bs, cs); tfr 778 drivers/spi/spi-bcm2835.c ret = bcm2835_spi_prepare_sg(ctlr, spi, tfr, bs, true); tfr 804 drivers/spi/spi-bcm2835.c ret = bcm2835_spi_prepare_sg(ctlr, spi, tfr, bs, false); tfr 842 drivers/spi/spi-bcm2835.c struct spi_transfer *tfr) tfr 845 drivers/spi/spi-bcm2835.c if (tfr->len < BCM2835_SPI_DMA_MIN_LENGTH) tfr 1013 drivers/spi/spi-bcm2835.c struct spi_transfer *tfr, tfr 1056 drivers/spi/spi-bcm2835.c tfr, cs, false); tfr 1068 drivers/spi/spi-bcm2835.c struct spi_transfer *tfr) tfr 1076 drivers/spi/spi-bcm2835.c spi_hz = tfr->speed_hz; tfr 1095 drivers/spi/spi-bcm2835.c if (spi->mode & SPI_3WIRE && tfr->rx_buf) tfr 1099 drivers/spi/spi-bcm2835.c bs->tx_buf = tfr->tx_buf; tfr 1100 drivers/spi/spi-bcm2835.c bs->rx_buf = tfr->rx_buf; tfr 1101 drivers/spi/spi-bcm2835.c bs->tx_len = tfr->len; tfr 1102 drivers/spi/spi-bcm2835.c bs->rx_len = tfr->len; tfr 1114 drivers/spi/spi-bcm2835.c if (tfr->len < byte_limit) tfr 1115 drivers/spi/spi-bcm2835.c return bcm2835_spi_transfer_one_poll(ctlr, spi, tfr, cs); tfr 1121 drivers/spi/spi-bcm2835.c if (ctlr->can_dma && bcm2835_spi_can_dma(ctlr, spi, tfr)) tfr 1122 drivers/spi/spi-bcm2835.c return bcm2835_spi_transfer_one_dma(ctlr, spi, tfr, cs); tfr 1125 drivers/spi/spi-bcm2835.c return bcm2835_spi_transfer_one_irq(ctlr, spi, tfr, cs, true); tfr 265 drivers/spi/spi-bcm2835aux.c struct spi_transfer *tfr) tfr 280 drivers/spi/spi-bcm2835aux.c struct spi_transfer *tfr) tfr 300 drivers/spi/spi-bcm2835aux.c return __bcm2835aux_spi_transfer_one_irq(master, spi, tfr); tfr 305 drivers/spi/spi-bcm2835aux.c struct spi_transfer *tfr) tfr 335 drivers/spi/spi-bcm2835aux.c spi, tfr); tfr 345 drivers/spi/spi-bcm2835aux.c struct spi_transfer *tfr) tfr 360 drivers/spi/spi-bcm2835aux.c spi_hz = tfr->speed_hz; tfr 380 drivers/spi/spi-bcm2835aux.c bs->tx_buf = tfr->tx_buf; tfr 381 drivers/spi/spi-bcm2835aux.c bs->rx_buf = tfr->rx_buf; tfr 382 drivers/spi/spi-bcm2835aux.c bs->tx_len = tfr->len; tfr 383 drivers/spi/spi-bcm2835aux.c bs->rx_len = tfr->len; tfr 397 drivers/spi/spi-bcm2835aux.c if (tfr->len < byte_limit) tfr 398 drivers/spi/spi-bcm2835aux.c return bcm2835aux_spi_transfer_one_poll(master, spi, tfr); tfr 401 drivers/spi/spi-bcm2835aux.c return bcm2835aux_spi_transfer_one_irq(master, spi, tfr); tfr 206 drivers/spi/spi-sun4i.c struct spi_transfer *tfr) tfr 216 drivers/spi/spi-sun4i.c if (tfr->len > SUN4I_MAX_XFER_SIZE) tfr 219 drivers/spi/spi-sun4i.c if (tfr->tx_buf && tfr->len >= SUN4I_MAX_XFER_SIZE) tfr 223 drivers/spi/spi-sun4i.c sspi->tx_buf = tfr->tx_buf; tfr 224 drivers/spi/spi-sun4i.c sspi->rx_buf = tfr->rx_buf; tfr 225 drivers/spi/spi-sun4i.c sspi->len = tfr->len; tfr 270 drivers/spi/spi-sun4i.c if (mclk_rate < (2 * tfr->speed_hz)) { tfr 271 drivers/spi/spi-sun4i.c clk_set_rate(sspi->mclk, 2 * tfr->speed_hz); tfr 289 drivers/spi/spi-sun4i.c div = mclk_rate / (2 * tfr->speed_hz); tfr 296 drivers/spi/spi-sun4i.c div = ilog2(mclk_rate) - ilog2(tfr->speed_hz); tfr 304 drivers/spi/spi-sun4i.c tx_len = tfr->len; tfr 307 drivers/spi/spi-sun4i.c sun4i_spi_write(sspi, SUN4I_BURST_CNT_REG, SUN4I_BURST_CNT(tfr->len)); tfr 328 drivers/spi/spi-sun4i.c tx_time = max(tfr->len * 8 * 2 / (tfr->speed_hz / 1000), 100U); tfr 336 drivers/spi/spi-sun4i.c dev_name(&spi->dev), tfr->len, tfr->speed_hz, tfr 198 drivers/spi/spi-sun6i.c struct spi_transfer *tfr) tfr 208 drivers/spi/spi-sun6i.c if (tfr->len > SUN6I_MAX_XFER_SIZE) tfr 212 drivers/spi/spi-sun6i.c sspi->tx_buf = tfr->tx_buf; tfr 213 drivers/spi/spi-sun6i.c sspi->rx_buf = tfr->rx_buf; tfr 214 drivers/spi/spi-sun6i.c sspi->len = tfr->len; tfr 271 drivers/spi/spi-sun6i.c if (mclk_rate < (2 * tfr->speed_hz)) { tfr 272 drivers/spi/spi-sun6i.c clk_set_rate(sspi->mclk, 2 * tfr->speed_hz); tfr 290 drivers/spi/spi-sun6i.c div = mclk_rate / (2 * tfr->speed_hz); tfr 297 drivers/spi/spi-sun6i.c div = ilog2(mclk_rate) - ilog2(tfr->speed_hz); tfr 305 drivers/spi/spi-sun6i.c tx_len = tfr->len; tfr 308 drivers/spi/spi-sun6i.c sun6i_spi_write(sspi, SUN6I_BURST_CNT_REG, SUN6I_BURST_CNT(tfr->len)); tfr 327 drivers/spi/spi-sun6i.c tx_time = max(tfr->len * 8 * 2 / (tfr->speed_hz / 1000), 100U); tfr 335 drivers/spi/spi-sun6i.c dev_name(&spi->dev), tfr->len, tfr->speed_hz,