Home
last modified time | relevance | path

Searched refs:tx_sg (Results 1 – 25 of 41) sorted by relevance

12

/Linux-v6.6/drivers/spi/
Dspi-bcm2835.c493 if (bs->tx_buf && !sg_is_last(&tfr->tx_sg.sgl[0])) in bcm2835_spi_transfer_prologue()
494 bs->tx_prologue = sg_dma_len(&tfr->tx_sg.sgl[0]) & 3; in bcm2835_spi_transfer_prologue()
500 if (!bs->tx_buf || sg_is_last(&tfr->tx_sg.sgl[0])) { in bcm2835_spi_transfer_prologue()
505 !(sg_dma_len(&tfr->tx_sg.sgl[0]) & ~3); in bcm2835_spi_transfer_prologue()
553 sg_dma_address(&tfr->tx_sg.sgl[0]) += bs->tx_prologue; in bcm2835_spi_transfer_prologue()
554 sg_dma_len(&tfr->tx_sg.sgl[0]) -= bs->tx_prologue; in bcm2835_spi_transfer_prologue()
556 sg_dma_len(&tfr->tx_sg.sgl[0]) = 0; in bcm2835_spi_transfer_prologue()
557 sg_dma_address(&tfr->tx_sg.sgl[1]) += 4; in bcm2835_spi_transfer_prologue()
558 sg_dma_len(&tfr->tx_sg.sgl[1]) -= 4; in bcm2835_spi_transfer_prologue()
586 sg_dma_address(&tfr->tx_sg.sgl[0]) -= bs->tx_prologue; in bcm2835_spi_undo_prologue()
[all …]
Dspi-dw-dma.c512 ret = dw_spi_dma_submit_tx(dws, xfer->tx_sg.sgl, xfer->tx_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
583 tx_sg = !tx_sg ? &xfer->tx_sg.sgl[0] : sg_next(tx_sg); in dw_spi_dma_transfer_one()
584 sg_dma_address(&tx_tmp) = sg_dma_address(tx_sg); in dw_spi_dma_transfer_one()
585 tx_len = sg_dma_len(tx_sg); in dw_spi_dma_transfer_one()
643 nents = max(xfer->tx_sg.nents, xfer->rx_sg.nents); in dw_spi_dma_transfer()
Dspi-geni-qcom.c525 tx_desc = dmaengine_prep_slave_sg(mas->tx, xfer->tx_sg.sgl, xfer->tx_sg.nents, in setup_gsi_xfer()
883 if (!xfer->tx_sg.nents && !xfer->rx_sg.nents) in setup_se_xfer()
885 else if (xfer->tx_sg.nents > 1 || xfer->rx_sg.nents > 1) { in setup_se_xfer()
887 xfer->tx_sg.nents, xfer->rx_sg.nents); in setup_se_xfer()
905 geni_se_tx_init_dma(se, sg_dma_address(xfer->tx_sg.sgl), in setup_se_xfer()
906 sg_dma_len(xfer->tx_sg.sgl)); in setup_se_xfer()
Dspi-davinci.c635 t->tx_sg.sgl = t->rx_sg.sgl; in davinci_spi_bufs()
636 t->tx_sg.nents = t->rx_sg.nents; in davinci_spi_bufs()
640 t->tx_sg.sgl, t->tx_sg.nents, DMA_MEM_TO_DEV, in davinci_spi_bufs()
Dspi-pic32.c323 xfer->tx_sg.sgl, in pic32_spi_dma_transfer()
324 xfer->tx_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.c94 sgt = &xfer->tx_sg; in pxa2xx_spi_dma_prepare_one()
Dspi-at91-usart.c238 xfer->tx_sg.sgl, in at91_usart_spi_dma_transfer()
239 xfer->tx_sg.nents, in at91_usart_spi_dma_transfer()
Dspi-pic32-sqi.c280 sgl = xfer->tx_sg.sgl; in pic32_sqi_one_transfer()
281 nents = xfer->tx_sg.nents; in pic32_sqi_one_transfer()
Dspi-img-spfi.c354 txdesc = dmaengine_prep_slave_sg(spfi->tx_ch, xfer->tx_sg.sgl, in img_spfi_start_dma()
355 xfer->tx_sg.nents, in img_spfi_start_dma()
Dspi-sun6i.c251 tfr->tx_sg.sgl, in sun6i_spi_prepare_dma()
252 tfr->tx_sg.nents, in sun6i_spi_prepare_dma()
Dspi-uniphier.c446 t->tx_sg.sgl, t->tx_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.c1139 ret = spi_map_buf_attrs(ctlr, tx_dev, &xfer->tx_sg, in __spi_map_msg()
1153 &xfer->tx_sg, DMA_TO_DEVICE, in __spi_map_msg()
1186 spi_unmap_buf_attrs(ctlr, tx_dev, &xfer->tx_sg, in __spi_unmap_msg()
1204 if (xfer->tx_sg.orig_nents) in spi_dma_sync_for_device()
1205 dma_sync_sgtable_for_device(tx_dev, &xfer->tx_sg, DMA_TO_DEVICE); in spi_dma_sync_for_device()
1221 if (xfer->tx_sg.orig_nents) in spi_dma_sync_for_cpu()
1222 dma_sync_sgtable_for_cpu(tx_dev, &xfer->tx_sg, DMA_TO_DEVICE); in spi_dma_sync_for_cpu()
Dspi-rockchip.c492 xfer->tx_sg.sgl, xfer->tx_sg.nents, in rockchip_spi_prepare_dma()
Dspi-ingenic.c185 &xfer->tx_sg, DMA_MEM_TO_DEV, bits); in spi_ingenic_dma_tx()
Dspi-rspi.c702 return rspi_dma_transfer(rspi, &xfer->tx_sg, in rspi_dma_check_then_transfer()
810 ret = rspi_dma_transfer(rspi, &xfer->tx_sg, NULL); in qspi_transfer_out()
/Linux-v6.6/drivers/crypto/qce/
Ddma.c100 int rx_nents, struct scatterlist *tx_sg, int tx_nents, in qce_dma_prep_sgs() argument
113 return qce_dma_prep_sg(txchan, tx_sg, tx_nents, flags, DMA_DEV_TO_MEM, in qce_dma_prep_sgs()
/Linux-v6.6/drivers/net/wireless/ath/ath10k/
Dhif.h31 int (*tx_sg)(struct ath10k *ar, u8 pipe_id, member
106 return ar->hif.ops->tx_sg(ar, pipe_id, items, n_items); in ath10k_hif_tx_sg()
/Linux-v6.6/drivers/infiniband/ulp/isert/
Dib_isert.c796 send_wr.sg_list = tx_desc->tx_sg; in isert_login_post_send()
818 if (tx_desc->tx_sg[0].lkey != device->pd->local_dma_lkey) { in __isert_create_send_desc()
819 tx_desc->tx_sg[0].lkey = device->pd->local_dma_lkey; in __isert_create_send_desc()
854 tx_desc->tx_sg[0].addr = tx_desc->dma_addr; in isert_init_tx_hdrs()
855 tx_desc->tx_sg[0].length = ISER_HEADERS_LEN; in isert_init_tx_hdrs()
856 tx_desc->tx_sg[0].lkey = device->pd->local_dma_lkey; in isert_init_tx_hdrs()
859 tx_desc->tx_sg[0].addr, tx_desc->tx_sg[0].length, in isert_init_tx_hdrs()
860 tx_desc->tx_sg[0].lkey); in isert_init_tx_hdrs()
881 send_wr->sg_list = &tx_desc->tx_sg[0]; in isert_init_send_wr()
934 struct ib_sge *tx_dsg = &tx_desc->tx_sg[1]; in isert_put_login_tx()
[all …]
Dib_isert.h129 struct ib_sge tx_sg[2]; member
/Linux-v6.6/drivers/infiniband/ulp/rtrs/
Drtrs-srv.h57 struct ib_sge tx_sg; member
/Linux-v6.6/drivers/infiniband/ulp/iser/
Discsi_iser.c215 tx_desc->tx_sg[0].addr = tx_desc->dma_addr; in iser_initialize_task_headers()
216 tx_desc->tx_sg[0].length = ISER_HEADERS_LEN; in iser_initialize_task_headers()
217 tx_desc->tx_sg[0].lkey = device->pd->local_dma_lkey; in iser_initialize_task_headers()
Diser_initiator.c97 struct ib_sge *tx_dsg = &iser_task->desc.tx_sg[1]; in iser_prepare_write_cmd()
447 tx_dsg = &tx_desc->tx_sg[1]; in iser_send_data_out()
492 struct ib_sge *tx_dsg = &mdesc->tx_sg[1]; in iser_send_control()
Discsi_iser.h242 struct ib_sge tx_sg[2]; member
/Linux-v6.6/include/linux/spi/
Dspi.h1045 struct sg_table tx_sg; member

12