Home
last modified time | relevance | path

Searched refs:rx_sg (Results 1 – 25 of 34) sorted by relevance

12

/linux-6.12.1/drivers/spi/
Dspi-dw-dma.c518 ret = dw_spi_dma_submit_rx(dws, xfer->rx_sg.sgl, in dw_spi_dma_transfer_all()
519 xfer->rx_sg.nents); in dw_spi_dma_transfer_all()
572 struct scatterlist *tx_sg = NULL, *rx_sg = NULL, tx_tmp, rx_tmp; in dw_spi_dma_transfer_one() local
590 rx_sg = !rx_sg ? &xfer->rx_sg.sgl[0] : sg_next(rx_sg); in dw_spi_dma_transfer_one()
591 sg_dma_address(&rx_tmp) = sg_dma_address(rx_sg); in dw_spi_dma_transfer_one()
592 rx_len = sg_dma_len(rx_sg); in dw_spi_dma_transfer_one()
643 nents = max(xfer->tx_sg.nents, xfer->rx_sg.nents); in dw_spi_dma_transfer()
Dspi-bcm2835.c500 if (bs->rx_buf && !sg_is_last(&tfr->rx_sg.sgl[0])) { in bcm2835_spi_transfer_prologue()
501 bs->rx_prologue = sg_dma_len(&tfr->rx_sg.sgl[0]) & 3; in bcm2835_spi_transfer_prologue()
531 sg_dma_address(&tfr->rx_sg.sgl[0]), in bcm2835_spi_transfer_prologue()
534 sg_dma_address(&tfr->rx_sg.sgl[0]) += bs->rx_prologue; in bcm2835_spi_transfer_prologue()
535 sg_dma_len(&tfr->rx_sg.sgl[0]) -= bs->rx_prologue; in bcm2835_spi_transfer_prologue()
582 sg_dma_address(&tfr->rx_sg.sgl[0]) -= bs->rx_prologue; in bcm2835_spi_undo_prologue()
583 sg_dma_len(&tfr->rx_sg.sgl[0]) += bs->rx_prologue; in bcm2835_spi_undo_prologue()
695 nents = tfr->rx_sg.nents; in bcm2835_spi_prepare_sg()
696 sgl = tfr->rx_sg.sgl; in bcm2835_spi_prepare_sg()
Dspi-geni-qcom.c512 rx_desc = dmaengine_prep_slave_sg(mas->rx, xfer->rx_sg.sgl, xfer->rx_sg.nents, in setup_gsi_xfer()
891 if (!xfer->tx_sg.nents && !xfer->rx_sg.nents) in setup_se_xfer()
893 else if (xfer->tx_sg.nents > 1 || xfer->rx_sg.nents > 1) { in setup_se_xfer()
895 xfer->tx_sg.nents, xfer->rx_sg.nents); in setup_se_xfer()
910 geni_se_rx_init_dma(se, sg_dma_address(xfer->rx_sg.sgl), in setup_se_xfer()
911 sg_dma_len(xfer->rx_sg.sgl)); in setup_se_xfer()
Dspi-davinci.c625 t->rx_sg.sgl, t->rx_sg.nents, DMA_DEV_TO_MEM, in davinci_spi_bufs()
636 t->tx_sg.sgl = t->rx_sg.sgl; in davinci_spi_bufs()
637 t->tx_sg.nents = t->rx_sg.nents; in davinci_spi_bufs()
Dspi-pic32.c313 xfer->rx_sg.sgl, in pic32_spi_dma_transfer()
314 xfer->rx_sg.nents, in pic32_spi_dma_transfer()
524 if (transfer->rx_sg.nents && transfer->tx_sg.nents) { in pic32_spi_one_transfer()
Dspi-pxa2xx-dma.c104 sgt = &xfer->rx_sg; in pxa2xx_spi_dma_prepare_one()
Dspi-ti-qspi.c507 static int ti_qspi_dma_xfer_sg(struct ti_qspi *qspi, struct sg_table rx_sg, in ti_qspi_dma_xfer_sg() argument
515 for_each_sg(rx_sg.sgl, sg, rx_sg.nents, i) { in ti_qspi_dma_xfer_sg()
Dspi-pic32-sqi.c276 sgl = xfer->rx_sg.sgl; in pic32_sqi_one_transfer()
277 nents = xfer->rx_sg.nents; in pic32_sqi_one_transfer()
Dspi-at91-usart.c215 xfer->rx_sg.sgl, in at91_usart_spi_dma_transfer()
216 xfer->rx_sg.nents, in at91_usart_spi_dma_transfer()
Dspi-img-spfi.c330 rxdesc = dmaengine_prep_slave_sg(spfi->rx_ch, xfer->rx_sg.sgl, in img_spfi_start_dma()
331 xfer->rx_sg.nents, in img_spfi_start_dma()
Dspi-sun6i.c229 tfr->rx_sg.sgl, in sun6i_spi_prepare_dma()
230 tfr->rx_sg.nents, in sun6i_spi_prepare_dma()
Dspi-uniphier.c419 t->rx_sg.sgl, t->rx_sg.nents, in uniphier_spi_transfer_one_dma()
Dspi-qcom-qspi.c352 sgt = (ctrl->xfer.dir == QSPI_READ) ? &xfer->rx_sg : &xfer->tx_sg; in qcom_qspi_setup_dma_desc()
449 if (xfer->rx_sg.nents || xfer->tx_sg.nents) { in qcom_qspi_transfer_one()
Dspi-rockchip.c461 xfer->rx_sg.sgl, xfer->rx_sg.nents, in rockchip_spi_prepare_dma()
Dspi-ingenic.c181 &xfer->rx_sg, DMA_DEV_TO_MEM, bits); in spi_ingenic_dma_tx()
Dspi-rspi.c702 xfer->rx_buf ? &xfer->rx_sg : NULL); in rspi_dma_check_then_transfer()
841 ret = rspi_dma_transfer(rspi, NULL, &xfer->rx_sg); in qspi_transfer_in()
Dspi-omap2-mcspi.c509 ret = sg_split(xfer->rx_sg.sgl, xfer->rx_sg.nents, 0, nb_sizes, in omap2_mcspi_rx_dma()
Dspi-atmel.c802 xfer->rx_sg.sgl, in atmel_spi_next_xfer_dma_submit()
803 xfer->rx_sg.nents, in atmel_spi_next_xfer_dma_submit()
/linux-6.12.1/drivers/crypto/qce/
Ddma.c99 int qce_dma_prep_sgs(struct qce_dma_data *dma, struct scatterlist *rx_sg, in qce_dma_prep_sgs() argument
108 ret = qce_dma_prep_sg(rxchan, rx_sg, rx_nents, flags, DMA_MEM_TO_DEV, in qce_dma_prep_sgs()
/linux-6.12.1/drivers/infiniband/ulp/iser/
Diser_initiator.c229 struct ib_sge *rx_sg; in iser_alloc_rx_descriptors() local
259 rx_sg = &rx_desc->rx_sg; in iser_alloc_rx_descriptors()
260 rx_sg->addr = rx_desc->dma_addr; in iser_alloc_rx_descriptors()
261 rx_sg->length = ISER_RX_PAYLOAD_SIZE; in iser_alloc_rx_descriptors()
262 rx_sg->lkey = device->pd->local_dma_lkey; in iser_alloc_rx_descriptors()
Discsi_iser.h270 struct ib_sge rx_sg; member
Diser_verbs.c838 wr.sg_list = &rx_desc->rx_sg; in iser_post_recvm()
/linux-6.12.1/drivers/infiniband/ulp/isert/
Dib_isert.h91 struct ib_sge rx_sg; member
Dib_isert.c151 struct ib_sge *rx_sg; in isert_alloc_rx_descriptors() local
171 rx_sg = &rx_desc->rx_sg; in isert_alloc_rx_descriptors()
172 rx_sg->addr = rx_desc->dma_addr + isert_get_hdr_offset(rx_desc); in isert_alloc_rx_descriptors()
173 rx_sg->length = ISER_RX_PAYLOAD_SIZE; in isert_alloc_rx_descriptors()
174 rx_sg->lkey = device->pd->local_dma_lkey; in isert_alloc_rx_descriptors()
737 rx_wr->sg_list = &rx_desc->rx_sg; in isert_post_recvm()
768 rx_wr.sg_list = &rx_desc->rx_sg; in isert_post_recv()
/linux-6.12.1/include/linux/spi/
Dspi.h1094 struct sg_table rx_sg; member

12