Home
last modified time | relevance | path

Searched refs:use_dma (Results 1 – 25 of 44) sorted by relevance

12

/linux/tools/testing/selftests/pci_endpoint/
H A Dpci_endpoint_test.c190 bool use_dma; in TEST_F()
195 .use_dma = false, in TEST_F()
200 .use_dma = true, in TEST_F()
208 if (variant->use_dma) in TEST_F()
227 if (variant->use_dma) in TEST_F()
246 if (variant->use_dma) in FIXTURE_SETUP()
167 bool use_dma; FIXTURE_VARIANT() local
/linux/drivers/memstick/host/
H A Dtifm_ms.c76 use_dma:1; member
262 host->use_dma = !no_dma; in tifm_ms_issue_cmd()
267 host->use_dma = 0; in tifm_ms_issue_cmd()
270 host->use_dma = 0; in tifm_ms_issue_cmd()
278 if (host->use_dma) { in tifm_ms_issue_cmd()
318 if (host->use_dma) in tifm_ms_issue_cmd()
349 if (host->use_dma) { in tifm_ms_complete_cmd()
395 if (host->use_dma && (fifo_status & 1)) { in tifm_ms_data_event()
399 if (!host->use_dma && (fifo_status & TIFM_FIFO_MORE)) { in tifm_ms_data_event()
606 if (host->use_dma) in tifm_ms_remove()
/linux/drivers/net/ethernet/cirrus/
H A Dcs89x0.c153 int use_dma; /* Flag: we're using dma */ member
375 if (lp->use_dma) { in set_dma_cfg()
394 if (lp->use_dma) in dma_bufcfg()
405 if (lp->use_dma) { in dma_busctl()
785 if (lp->use_dma && (status & RX_DMA)) { in net_interrupt()
886 if (lp->use_dma && (lp->isa_config & ANY_ISA_DMA)) { in net_open()
1104 if (lp->use_dma && lp->dma) { in net_close()
1326 lp->use_dma = 1; in cs89x0_probe1()
1556 if (lp->use_dma) { in cs89x0_probe1()
1700 static int use_dma; /* These generate unused var warnings if ALLOW_DMA = 0 */ variable
[all …]
/linux/drivers/mtd/nand/raw/
H A Dlpc32xx_mlc.c229 static int use_dma; variable
475 if (use_dma) { in lpc32xx_read_page()
494 if (use_dma && !dma_mapped) in lpc32xx_read_page()
511 if (use_dma && (void *)buf >= high_memory) { in lpc32xx_write_page_lowlevel()
523 if (use_dma) { in lpc32xx_write_page_lowlevel()
768 if (use_dma) { in lpc32xx_nand_probe()
818 if (use_dma) in lpc32xx_nand_probe()
845 if (use_dma) in lpc32xx_nand_remove()
/linux/drivers/misc/
H A Datmel-ssc.c85 .use_dma = 0,
90 .use_dma = 0,
95 .use_dma = 1,
/linux/drivers/usb/musb/
H A Dmusb_gadget.c231 int use_dma = 0; in txstate() local
280 use_dma = (request->dma != DMA_ADDR_INVALID && request_size); in txstate()
290 use_dma = use_dma && c->channel_program( in txstate()
294 if (use_dma) { in txstate()
358 use_dma = use_dma && c->channel_program( in txstate()
363 if (!use_dma) { in txstate()
371 use_dma = use_dma && c->channel_program( in txstate()
379 if (!use_dma) { in txstate()
396 musb_ep->end_point.name, use_dma ? "dma" : "pio", in txstate()
605 int use_dma = 0; in rxstate() local
[all …]
/linux/drivers/i2c/busses/
H A Di2c-stm32f7.c355 bool use_dma; member
817 if (i2c_dev->use_dma) in stm32f7_i2c_reload()
935 i2c_dev->use_dma = false; in stm32f7_i2c_xfer_msg()
950 i2c_dev->use_dma = true; in stm32f7_i2c_xfer_msg()
955 if (!i2c_dev->use_dma) { in stm32f7_i2c_xfer_msg()
1112 i2c_dev->use_dma = false; in stm32f7_i2c_smbus_xfer_msg()
1120 i2c_dev->use_dma = true; in stm32f7_i2c_smbus_xfer_msg()
1125 if (!i2c_dev->use_dma) { in stm32f7_i2c_smbus_xfer_msg()
1204 i2c_dev->use_dma = false; in stm32f7_i2c_smbus_rep_start()
1215 i2c_dev->use_dma = true; in stm32f7_i2c_smbus_rep_start()
[all …]
H A Di2c-at91-master.c570 if (dev->use_dma && (dev->buf_len > AT91_I2C_DMA_THRESHOLD)) { in at91_do_twi_transfer()
580 if (dev->use_dma && (dev->buf_len > AT91_I2C_DMA_THRESHOLD)) { in at91_do_twi_transfer()
706 if (dev->use_dma) { in at91_twi_xfer()
810 dev->use_dma = true; in at91_twi_configure_dma()
H A Di2c-imx.c1220 struct i2c_msg *msgs, bool use_dma) in i2c_imx_prepare_read() argument
1227 result = i2c_imx_trx_complete(i2c_imx, !use_dma); in i2c_imx_prepare_read()
1246 if (use_dma) in i2c_imx_prepare_read()
1551 int use_dma = 0; in i2c_imx_xfer_common() local
1605 use_dma = i2c_imx->dma && msgs[i].len >= DMA_THRESHOLD && in i2c_imx_xfer_common()
1612 else if (use_dma && !block_data) in i2c_imx_xfer_common()
1619 else if (use_dma) in i2c_imx_xfer_common()
/linux/sound/soc/fsl/
H A Dfsl_ssi.c216 * @use_dma: DMA is used or FIQ with stream filter
259 bool use_dma; member
449 if (ssi->use_dma && tx) { in fsl_ssi_config_enable()
606 if (ssi->use_dma) { in fsl_ssi_setup_regvals()
1147 if (ssi->soc->imx && ssi->use_dma) in fsl_ssi_dai_probe()
1389 if (!ssi->use_dma) { in fsl_ssi_imx_probe()
1421 if (!ssi->use_dma) in fsl_ssi_imx_clean()
1465 ssi->use_dma = !of_property_read_bool(np, "fsl,fiq-stream-filter"); in fsl_ssi_probe_from_dt()
1476 if (ssi->use_dma && !ret && dmas[2] == IMX_DMATYPE_SSI_DUAL) in fsl_ssi_probe_from_dt()
1479 if (ssi->use_dma in fsl_ssi_probe_from_dt()
[all...]
/linux/drivers/spi/
H A Dspi-topcliff-pch.c103 static int use_dma = 1; variable
186 int use_dma; member
369 if (data->use_dma) in pch_spi_handler()
875 data->use_dma = 0; in pch_spi_request_dma()
1150 if (data->use_dma) in pch_spi_process_messages()
1181 if (data->use_dma) { in pch_spi_process_messages()
1233 if (data->use_dma) in pch_spi_process_messages()
1346 data->use_dma = use_dma; in pch_spi_pd_probe()
1370 if (use_dma) { in pch_spi_pd_probe()
1436 if (use_dma) in pch_spi_pd_remove()
[all …]
H A Dspi-rockchip.c531 bool use_dma, bool target_mode) in rockchip_spi_config() argument
555 else if (use_dma) in rockchip_spi_config()
581 if (use_dma) { in rockchip_spi_config()
678 bool use_dma; in rockchip_spi_transfer_one() local
701 use_dma = ctlr->can_dma ? ctlr->can_dma(ctlr, spi, xfer) : false; in rockchip_spi_transfer_one()
703 ret = rockchip_spi_config(rs, spi, xfer, use_dma, ctlr->target); in rockchip_spi_transfer_one()
707 if (use_dma) in rockchip_spi_transfer_one()
H A Dspi-atcspi200.c122 bool use_dma; member
264 if (spi->use_dma && op->data.nbytes >= ATCSPI_DMA_THRESHOLD) in atcspi_adjust_op_size()
375 if (spi->use_dma && op->data.nbytes >= ATCSPI_DMA_THRESHOLD) in atcspi_exec_mem_op()
584 spi->use_dma = false; in atcspi_probe()
591 spi->use_dma = true; in atcspi_probe()
H A Dspi-rockchip-sfc.c184 bool use_dma; member
550 if (likely(sfc->use_dma) && len >= SFC_DMA_TRANS_THRETHOLD && !(len & 0x3)) { in rockchip_sfc_exec_mem_op()
658 sfc->use_dma = !of_property_read_bool(sfc->dev->of_node, "rockchip,sfc-no-dma"); in rockchip_sfc_probe()
699 if (sfc->use_dma) { in rockchip_sfc_probe()
/linux/drivers/usb/gadget/udc/
H A Damd5536udc_pci.c162 if (use_dma) { in udc_pci_probe()
179 if (use_dma) in udc_pci_probe()
H A Damd5536udc.h599 static bool use_dma = 1; variable
608 module_param(use_dma, bool, S_IRUGO);
609 MODULE_PARM_DESC(use_dma, "true for DMA");
H A Domap_udc.c98 static bool use_dma = 1; variable
103 module_param(use_dma, bool, 0);
104 MODULE_PARM_DESC(use_dma, "enable/disable DMA");
108 #define use_dma 0 macro
218 if (use_dma && desc->bmAttributes == USB_ENDPOINT_XFER_BULK) in omap_ep_enable()
302 if (use_dma && ep->has_dma) in done()
888 if (use_dma in omap_ep_queue()
901 if (use_dma && ep->has_dma) in omap_ep_queue()
1024 if (use_dma && ep->dma_channel && ep->queue.next == &req->queue) { in omap_ep_dequeue()
1076 if (use_dma && ep->dma_channel in omap_ep_set_halt()
[all …]
H A Dm66592-udc.c211 if (ep->use_dma) in pipe_change()
310 if (ep->use_dma) { in pipe_initialize()
331 ep->use_dma = 1; in m66592_ep_setting()
338 ep->use_dma = 1; in m66592_ep_setting()
344 ep->use_dma = 0; in m66592_ep_setting()
351 ep->use_dma = 0; in m66592_ep_setting()
374 if (ep->use_dma) in m66592_ep_release()
378 ep->use_dma = 0; in m66592_ep_release()
542 if (ep->use_dma) { in start_packet_read()
H A Dr8a66597-udc.c300 if (ep->use_dma) in pipe_change()
307 if (r8a66597_is_sudmac(r8a66597) && ep->use_dma) in pipe_change()
312 if (ep->use_dma) in pipe_change()
400 if (ep->use_dma) { in pipe_initialize()
414 ep->use_dma = 0; in r8a66597_ep_setting()
443 if (ep->use_dma) in r8a66597_ep_release()
447 ep->use_dma = 0; in r8a66597_ep_release()
656 ep->use_dma = 1; in sudmac_alloc_channel()
679 ep->use_dma = 0; in sudmac_free_channel()
921 if (ep->use_dma) in transfer_complete()
H A Dgoku_udc.c67 static unsigned use_dma = 1; variable
76 module_param(use_dma, uint, S_IRUGO);
150 ep->dma = (use_dma != 0) && (ep->num == UDC_MSTRD_ENDPOINT); in goku_ep_enable()
152 ep->dma = (use_dma == 2) && (ep->num == UDC_MSTWR_ENDPOINT); in goku_ep_enable()
1045 if (use_dma == 0) in dmastr()
1047 else if (use_dma == 2) in dmastr()
1812 if (use_dma) in goku_probe()
/linux/drivers/leds/
H A Dleds-sun50i-a100.c147 bool use_dma = false; in sun50i_a100_ledc_start_xfer() local
157 use_dma = true; in sun50i_a100_ledc_start_xfer()
161 control = FIELD_PREP(LEDC_DMA_CTRL_REG_DMA_EN, use_dma) | in sun50i_a100_ledc_start_xfer()
170 if (!use_dma) { in sun50i_a100_ledc_start_xfer()
/linux/include/linux/spi/
H A Dspi_bitbang.h12 u8 use_dma; member
/linux/drivers/ntb/test/
H A Dntb_perf.c121 static bool use_dma; /* default to 0 */ variable
122 module_param(use_dma, bool, 0644);
123 MODULE_PARM_DESC(use_dma, "Use DMA engine to measure performance");
797 if (!use_dma) { in perf_copy_chunk()
882 if (!use_dma) in perf_init_test()
968 if (!use_dma) in perf_sync_test()
997 if (!use_dma) in perf_clear_test()
1375 debugfs_create_bool("use_dma", 0500, perf->dbgfs_dir, &use_dma); in perf_setup_dbgfs()
/linux/drivers/tty/serial/
H A Dpch_uart.c223 unsigned int use_dma; member
1030 if (priv->use_dma) { in pch_uart_interrupt()
1049 if (priv->use_dma) in pch_uart_interrupt()
1147 if (priv->use_dma) { in pch_uart_start_tx()
1254 if (priv->use_dma) in pch_uart_startup()
1406 priv->use_dma = 0; in pch_uart_verify_port()
1414 if (!priv->use_dma) { in pch_uart_verify_port()
1417 priv->use_dma = 1; in pch_uart_verify_port()
1420 priv->use_dma ? in pch_uart_verify_port()
/linux/drivers/mmc/host/
H A Dbcm2835.c191 bool use_dma; member
1204 if (host->use_dma && mrq->data && (mrq->data->blocks > PIO_THRESHOLD)) in bcm2835_request()
1284 host->use_dma = false; in bcm2835_add_host()
1286 host->use_dma = true; in bcm2835_add_host()
1304 host->use_dma = false; in bcm2835_add_host()
1339 if (host->use_dma && (PIO_THRESHOLD > 0)) in bcm2835_add_host()
1342 host->use_dma ? "enabled" : "disabled", pio_limit_string); in bcm2835_add_host()

12