Home
last modified time | relevance | path

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

12

/drivers/mtd/onenand/
Domap2.c59 int dma_channel; member
344 omap_set_dma_transfer_params(c->dma_channel, OMAP_DMA_DATA_TYPE_S32, in omap3_onenand_read_bufferram()
346 omap_set_dma_src_params(c->dma_channel, 0, OMAP_DMA_AMODE_POST_INC, in omap3_onenand_read_bufferram()
348 omap_set_dma_dest_params(c->dma_channel, 0, OMAP_DMA_AMODE_POST_INC, in omap3_onenand_read_bufferram()
352 omap_start_dma(c->dma_channel); in omap3_onenand_read_bufferram()
415 omap_set_dma_transfer_params(c->dma_channel, OMAP_DMA_DATA_TYPE_S32, in omap3_onenand_write_bufferram()
417 omap_set_dma_src_params(c->dma_channel, 0, OMAP_DMA_AMODE_POST_INC, in omap3_onenand_write_bufferram()
419 omap_set_dma_dest_params(c->dma_channel, 0, OMAP_DMA_AMODE_POST_INC, in omap3_onenand_write_bufferram()
423 omap_start_dma(c->dma_channel); in omap3_onenand_write_bufferram()
476 if (1 || (c->dma_channel < 0) || in omap2_onenand_read_bufferram()
[all …]
/drivers/usb/musb/
Dux500_dma.c43 struct dma_channel channel;
65 struct dma_channel *channel = private_data; in ux500_dma_callback()
82 static bool ux500_configure_channel(struct dma_channel *channel, in ux500_configure_channel()
140 static struct dma_channel *ux500_dma_channel_allocate(struct dma_controller *c, in ux500_dma_channel_allocate()
175 static void ux500_dma_channel_release(struct dma_channel *channel) in ux500_dma_channel_release()
189 static int ux500_dma_is_compatible(struct dma_channel *channel, in ux500_dma_is_compatible()
201 static int ux500_dma_channel_program(struct dma_channel *channel, in ux500_dma_channel_program()
219 static int ux500_dma_channel_abort(struct dma_channel *channel) in ux500_dma_channel_abort()
254 struct dma_channel *channel; in ux500_dma_controller_stop()
285 struct dma_channel *dma_channel = NULL; in ux500_dma_controller_start() local
[all …]
Dmusb_dma.h150 struct dma_channel { struct
169 dma_channel_status(struct dma_channel *c) in dma_channel_status() argument
188 struct dma_channel *(*channel_alloc)(struct dma_controller *,
190 void (*channel_release)(struct dma_channel *);
191 int (*channel_program)(struct dma_channel *channel,
195 int (*channel_abort)(struct dma_channel *);
196 int (*is_compatible)(struct dma_channel *channel,
Dmusbhsdma.c40 static void dma_channel_release(struct dma_channel *channel);
45 struct dma_channel *channel; in dma_controller_stop()
64 static struct dma_channel *dma_channel_allocate(struct dma_controller *c, in dma_channel_allocate()
70 struct dma_channel *channel = NULL; in dma_channel_allocate()
95 static void dma_channel_release(struct dma_channel *channel) in dma_channel_release()
109 static void configure_channel(struct dma_channel *channel, in configure_channel()
147 static int dma_channel_program(struct dma_channel *channel, in dma_channel_program()
194 static int dma_channel_abort(struct dma_channel *channel) in dma_channel_abort()
245 struct dma_channel *channel; in dma_controller_irq()
Dtusb6010_omap.c109 struct dma_channel *channel = (struct dma_channel *)data; in tusb_omap_dma_cb()
208 static int tusb_omap_dma_program(struct dma_channel *channel, u16 packet_sz, in tusb_omap_dma_program()
416 static int tusb_omap_dma_abort(struct dma_channel *channel) in tusb_omap_dma_abort()
488 static struct dma_channel *dma_channel_pool[MAX_DMAREQ];
490 static struct dma_channel *
500 struct dma_channel *channel = NULL; in tusb_omap_dma_allocate()
522 struct dma_channel *ch = dma_channel_pool[i]; in tusb_omap_dma_allocate()
596 static void tusb_omap_dma_release(struct dma_channel *channel) in tusb_omap_dma_release()
640 struct dma_channel *ch = dma_channel_pool[i]; in tusb_dma_controller_destroy()
691 struct dma_channel *ch; in tusb_dma_controller_create()
[all …]
Dmusb_host.c618 struct dma_channel *channel = hw_ep->tx_channel; in musb_tx_dma_set_mode_mentor()
660 struct dma_channel *channel = hw_ep->tx_channel; in musb_tx_dma_set_mode_cppi_tusb()
675 struct dma_channel *channel = hw_ep->tx_channel; in musb_tx_dma_program()
721 struct dma_channel *dma_channel; in musb_ep_program() local
752 dma_channel = is_out ? hw_ep->tx_channel : hw_ep->rx_channel; in musb_ep_program()
753 if (!dma_channel) { in musb_ep_program()
754 dma_channel = dma_controller->channel_alloc( in musb_ep_program()
757 hw_ep->tx_channel = dma_channel; in musb_ep_program()
759 hw_ep->rx_channel = dma_channel; in musb_ep_program()
762 dma_channel = NULL; in musb_ep_program()
[all …]
Dmusb_cppi41.c210 struct dma_channel *channel = private_data; in cppi41_dma_callback()
367 static bool cppi41_configure_channel(struct dma_channel *channel, in cppi41_configure_channel()
436 static struct dma_channel *cppi41_dma_channel_allocate(struct dma_controller *c, in cppi41_dma_channel_allocate()
465 static void cppi41_dma_channel_release(struct dma_channel *channel) in cppi41_dma_channel_release()
477 static int cppi41_dma_channel_program(struct dma_channel *channel, in cppi41_dma_channel_program()
508 static int cppi41_is_compatible(struct dma_channel *channel, u16 maxpacket, in cppi41_is_compatible()
527 static int cppi41_dma_channel_abort(struct dma_channel *channel) in cppi41_dma_channel_abort()
630 struct dma_channel *musb_dma; in cppi41_dma_controller_start()
Dcppi_dma.h73 struct dma_channel channel;
128 struct dma_channel channel;
Dmusb_core.h213 int (*adjust_channel_params)(struct dma_channel *channel,
246 struct dma_channel *tx_channel;
247 struct dma_channel *rx_channel;
Dmusb_gadget.h114 struct dma_channel *dma;
Dcppi_dma.c133 static int cppi_channel_abort(struct dma_channel *);
279 static struct dma_channel *
329 static void cppi_channel_release(struct dma_channel *channel) in cppi_channel_release()
947 static int cppi_channel_program(struct dma_channel *ch, in cppi_channel_program()
1372 static int cppi_channel_abort(struct dma_channel *channel) in cppi_channel_abort()
Dmusbhsdma.h143 struct dma_channel channel;
Dmusb_gadget.c439 struct dma_channel *dma; in musb_g_tx()
593 struct dma_channel *channel = musb_ep->dma; in rxstate()
638 struct dma_channel *channel; in rxstate()
715 struct dma_channel *channel; in rxstate()
770 struct dma_channel *channel = musb_ep->dma; in rxstate()
830 struct dma_channel *dma; in musb_g_rx()
/drivers/spi/
Dspi-bfin5xx.c91 int dma_channel; member
485 unsigned short dmastat = get_dma_curr_irqstat(drv_data->dma_channel); in bfin_spi_dma_irq_handler()
501 clear_dma_irqstat(drv_data->dma_channel); in bfin_spi_dma_irq_handler()
546 drv_data->dma_channel); in bfin_spi_dma_irq_handler()
547 dma_disable_irq_nosync(drv_data->dma_channel); in bfin_spi_dma_irq_handler()
682 disable_dma(drv_data->dma_channel); in bfin_spi_pump_transfers()
683 clear_dma_irqstat(drv_data->dma_channel); in bfin_spi_pump_transfers()
687 set_dma_x_count(drv_data->dma_channel, drv_data->len); in bfin_spi_pump_transfers()
689 set_dma_x_modify(drv_data->dma_channel, 2); in bfin_spi_pump_transfers()
692 set_dma_x_modify(drv_data->dma_channel, 1); in bfin_spi_pump_transfers()
[all …]
/drivers/scsi/
Daha1542.c528 sh->dma_channel = 7; in aha1542_getconfig()
531 sh->dma_channel = 6; in aha1542_getconfig()
534 sh->dma_channel = 5; in aha1542_getconfig()
537 sh->dma_channel = 0; in aha1542_getconfig()
542 sh->dma_channel = 0xFF; in aha1542_getconfig()
734 if (sh->dma_channel != 0xFF) in aha1542_hw_init()
735 snprintf(dma_info, sizeof(dma_info), "DMA %d", sh->dma_channel); in aha1542_hw_init()
747 if (sh->dma_channel != 0xFF) { in aha1542_hw_init()
748 if (request_dma(sh->dma_channel, "aha1542")) { in aha1542_hw_init()
752 if (sh->dma_channel == 0 || sh->dma_channel >= 5) { in aha1542_hw_init()
[all …]
Deata.c1076 unsigned char irq, dma_channel, subversion, i, is_pci = 0; in port_detect() local
1181 dma_channel = dma_channel_table[3 - info.drqx]; in port_detect()
1188 dma_channel = NO_DMA; in port_detect()
1226 if (subversion == ISA && request_dma(dma_channel, driver_name)) { in port_detect()
1228 name, dma_channel); in port_detect()
1271 shost->dma_channel = dma_channel; in port_detect()
1294 disable_dma(dma_channel); in port_detect()
1295 clear_dma_ff(dma_channel); in port_detect()
1296 set_dma_mode(dma_channel, DMA_MODE_CASCADE); in port_detect()
1297 enable_dma(dma_channel); in port_detect()
[all …]
Dqlogicfas.c100 hreg->dma_channel = -1; in __qlogicfas_detect()
Dadvansys.c2426 s->dma_channel, s->this_id, s->can_queue); in asc_prt_scsi_host()
2657 boardp->irq, shost->dma_channel); in advansys_info()
8667 static void AscEnableIsaDma(uchar dma_channel) in AscEnableIsaDma() argument
8669 if (dma_channel < 4) { in AscEnableIsaDma()
8670 outp(0x000B, (ushort)(0xC0 | dma_channel)); in AscEnableIsaDma()
8671 outp(0x000A, dma_channel); in AscEnableIsaDma()
8672 } else if (dma_channel < 8) { in AscEnableIsaDma()
8673 outp(0x00D6, (ushort)(0xC0 | (dma_channel - 4))); in AscEnableIsaDma()
8674 outp(0x00D4, (ushort)(dma_channel - 4)); in AscEnableIsaDma()
8719 static ushort AscSetIsaDmaChannel(PortAddr iop_base, ushort dma_channel) in AscSetIsaDmaChannel() argument
[all …]
/drivers/media/pci/cobalt/
Dcobalt-omnitek.c112 iowrite32((u32)((u64)desc->bus >> 32), DESCRIPTOR(s->dma_channel) + 4); in omni_sg_dma_start()
113 iowrite32((u32)desc->bus & NEXT_ADRS_MSK, DESCRIPTOR(s->dma_channel)); in omni_sg_dma_start()
114 iowrite32(ENABLE | SCATTER_GATHER_MODE | START, CS_REG(s->dma_channel)); in omni_sg_dma_start()
121 if (ioread32(CS_REG(s->dma_channel)) & DONE) in is_dma_done()
132 iowrite32(ABORT, CS_REG(s->dma_channel)); in omni_sg_dma_abort_channel()
Dcobalt-driver.c454 s->dma_channel = i + cobalt->first_fifo_channel; in cobalt_stream_struct_init()
464 s->dma_channel = 6 + idx; in cobalt_stream_struct_init()
469 s->dma_channel = 11; in cobalt_stream_struct_init()
475 s->dma_channel = 12; in cobalt_stream_struct_init()
482 s->dma_channel = i - COBALT_NUM_NODES; in cobalt_stream_struct_init()
485 i, s->dma_channel, s->video_channel); in cobalt_stream_struct_init()
/drivers/usb/gadget/udc/
Domap_udc.c208 ep->dma_channel = 0; in omap_ep_enable()
548 w |= UDC_TX_DONE_IE(ep->dma_channel); in next_in_dma()
550 omap_writew(UDC_TXN_START | txdma_ctrl, UDC_TXDMA(ep->dma_channel)); in next_in_dma()
575 w &= ~UDC_TX_DONE_IE(ep->dma_channel); in finish_in_dma()
599 omap_writew(UDC_RXN_STOP | (packets - 1), UDC_RXDMA(ep->dma_channel)); in next_out_dma()
601 w |= UDC_RX_EOT_IE(ep->dma_channel); in next_out_dma()
632 w &= ~UDC_RX_EOT_IE(ep->dma_channel); in finish_out_dma()
705 int dma_channel; in dma_channel_claim() local
714 ep->dma_channel = 0; in dma_channel_claim()
729 ep->dma_channel = channel; in dma_channel_claim()
[all …]
Domap_udc.h152 u8 dma_channel; member
/drivers/net/ethernet/ti/
Dnetcp_core.c1295 if (tx_pipe->dma_channel) { in netcp_txpipe_close()
1296 knav_dma_close_channel(tx_pipe->dma_channel); in netcp_txpipe_close()
1297 tx_pipe->dma_channel = NULL; in netcp_txpipe_close()
1316 tx_pipe->dma_channel = knav_dma_open_channel(dev, in netcp_txpipe_open()
1318 if (IS_ERR_OR_NULL(tx_pipe->dma_channel)) { in netcp_txpipe_open()
1338 if (!IS_ERR_OR_NULL(tx_pipe->dma_channel)) in netcp_txpipe_open()
1339 knav_dma_close_channel(tx_pipe->dma_channel); in netcp_txpipe_open()
1340 tx_pipe->dma_channel = NULL; in netcp_txpipe_open()
Dnetcp.h48 void *dma_channel; member
/drivers/scsi/pcmcia/
Dqlogic_stub.c111 shost->dma_channel = -1; in qlogic_detect()

12