Home
last modified time | relevance | path

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

12

/drivers/mtd/onenand/
Domap2.c63 int dma_channel; member
347 omap_set_dma_transfer_params(c->dma_channel, OMAP_DMA_DATA_TYPE_S32, in omap3_onenand_read_bufferram()
349 omap_set_dma_src_params(c->dma_channel, 0, OMAP_DMA_AMODE_POST_INC, in omap3_onenand_read_bufferram()
351 omap_set_dma_dest_params(c->dma_channel, 0, OMAP_DMA_AMODE_POST_INC, in omap3_onenand_read_bufferram()
355 omap_start_dma(c->dma_channel); in omap3_onenand_read_bufferram()
418 omap_set_dma_transfer_params(c->dma_channel, OMAP_DMA_DATA_TYPE_S32, in omap3_onenand_write_bufferram()
420 omap_set_dma_src_params(c->dma_channel, 0, OMAP_DMA_AMODE_POST_INC, in omap3_onenand_write_bufferram()
422 omap_set_dma_dest_params(c->dma_channel, 0, OMAP_DMA_AMODE_POST_INC, in omap3_onenand_write_bufferram()
426 omap_start_dma(c->dma_channel); in omap3_onenand_write_bufferram()
473 if (1 || (c->dma_channel < 0) || in omap2_onenand_read_bufferram()
[all …]
/drivers/usb/musb/
Dmusb_dma.h125 struct dma_channel { struct
143 dma_channel_status(struct dma_channel *c) in dma_channel_status() argument
164 struct dma_channel *(*channel_alloc)(struct dma_controller *,
166 void (*channel_release)(struct dma_channel *);
167 int (*channel_program)(struct dma_channel *channel,
171 int (*channel_abort)(struct dma_channel *);
172 int (*is_compatible)(struct dma_channel *channel,
Dux500_dma.c37 struct dma_channel channel;
61 struct dma_channel *channel = private_data; in ux500_dma_callback()
79 static bool ux500_configure_channel(struct dma_channel *channel, in ux500_configure_channel()
137 static struct dma_channel *ux500_dma_channel_allocate(struct dma_controller *c, in ux500_dma_channel_allocate()
176 static void ux500_dma_channel_release(struct dma_channel *channel) in ux500_dma_channel_release()
190 static int ux500_dma_is_compatible(struct dma_channel *channel, in ux500_dma_is_compatible()
202 static int ux500_dma_channel_program(struct dma_channel *channel, in ux500_dma_channel_program()
223 static int ux500_dma_channel_abort(struct dma_channel *channel) in ux500_dma_channel_abort()
262 struct dma_channel *channel; in ux500_dma_controller_stop()
297 struct dma_channel *dma_channel = NULL; in ux500_dma_controller_start() local
[all …]
Dmusbhsdma.c46 static void dma_channel_release(struct dma_channel *channel);
53 struct dma_channel *channel; in dma_controller_stop()
74 static struct dma_channel *dma_channel_allocate(struct dma_controller *c, in dma_channel_allocate()
80 struct dma_channel *channel = NULL; in dma_channel_allocate()
105 static void dma_channel_release(struct dma_channel *channel) in dma_channel_release()
119 static void configure_channel(struct dma_channel *channel, in configure_channel()
157 static int dma_channel_program(struct dma_channel *channel, in dma_channel_program()
204 static int dma_channel_abort(struct dma_channel *channel) in dma_channel_abort()
254 struct dma_channel *channel; in dma_controller_irq()
Dtusb6010_omap.c126 struct dma_channel *channel = (struct dma_channel *)data; in tusb_omap_dma_cb()
225 static int tusb_omap_dma_program(struct dma_channel *channel, u16 packet_sz, in tusb_omap_dma_program()
428 static int tusb_omap_dma_abort(struct dma_channel *channel) in tusb_omap_dma_abort()
500 static struct dma_channel *dma_channel_pool[MAX_DMAREQ];
502 static struct dma_channel *
512 struct dma_channel *channel = NULL; in tusb_omap_dma_allocate()
534 struct dma_channel *ch = dma_channel_pool[i]; in tusb_omap_dma_allocate()
608 static void tusb_omap_dma_release(struct dma_channel *channel) in tusb_omap_dma_release()
652 struct dma_channel *ch = dma_channel_pool[i]; in dma_controller_destroy()
704 struct dma_channel *ch; in dma_controller_create()
[all …]
Dmusb_host.c612 struct dma_channel *channel = hw_ep->tx_channel; in musb_tx_dma_program()
679 struct dma_channel *dma_channel; in musb_ep_program() local
700 dma_channel = is_out ? hw_ep->tx_channel : hw_ep->rx_channel; in musb_ep_program()
701 if (!dma_channel) { in musb_ep_program()
702 dma_channel = dma_controller->channel_alloc( in musb_ep_program()
705 hw_ep->tx_channel = dma_channel; in musb_ep_program()
707 hw_ep->rx_channel = dma_channel; in musb_ep_program()
710 dma_channel = NULL; in musb_ep_program()
799 if (dma_channel && musb_tx_dma_program(dma_controller, in musb_ep_program()
843 if ((is_cppi_enabled() || tusb_dma_omap()) && dma_channel) { in musb_ep_program()
[all …]
Dmusb_core.h229 int (*adjust_channel_params)(struct dma_channel *channel,
259 struct dma_channel *tx_channel;
260 struct dma_channel *rx_channel;
Dmusb_gadget.h82 struct dma_channel *dma;
Dcppi_dma.h80 struct dma_channel channel;
Dcppi_dma.c131 static int cppi_channel_abort(struct dma_channel *);
286 static struct dma_channel *
336 static void cppi_channel_release(struct dma_channel *channel) in cppi_channel_release()
967 static int cppi_channel_program(struct dma_channel *ch, in cppi_channel_program()
1389 static int cppi_channel_abort(struct dma_channel *channel) in cppi_channel_abort()
Dmusbhsdma.h147 struct dma_channel channel;
Dmusb_gadget.c493 struct dma_channel *dma; in musb_g_tx()
667 struct dma_channel *channel = musb_ep->dma; in rxstate()
710 struct dma_channel *channel; in rxstate()
790 struct dma_channel *channel; in rxstate()
845 struct dma_channel *channel = musb_ep->dma; in rxstate()
905 struct dma_channel *dma; in musb_g_rx()
/drivers/ata/
Dpata_pxa.c42 uint32_t dma_channel; member
117 DCSR(pd->dma_channel) = 0; in pxa_qc_prep()
128 DDADR(pd->dma_channel) = pd->dma_desc_addr; in pxa_qc_prep()
129 DRCMR(pd->dma_dreq) = DRCMR_MAPVLD | pd->dma_channel; in pxa_qc_prep()
149 DCSR(pd->dma_channel) = DCSR_RUN; in pxa_bmdma_start()
159 if ((DCSR(pd->dma_channel) & DCSR_RUN) && in pxa_bmdma_stop()
163 DCSR(pd->dma_channel) = 0; in pxa_bmdma_stop()
351 data->dma_channel = pxa_request_dma(DRV_NAME, DMA_PRIO_LOW, in pxa_ata_probe()
353 if (data->dma_channel < 0) in pxa_ata_probe()
359 DCSR(data->dma_channel) = 0; in pxa_ata_probe()
[all …]
/drivers/scsi/
DNCR5380.h350 if (instance->dma_channel <= 3) { in NCR5380_pc_dma_setup()
367 disable_dma(instance->dma_channel); in NCR5380_pc_dma_setup()
368 clear_dma_ff(instance->dma_channel); in NCR5380_pc_dma_setup()
369 set_dma_addr(instance->dma_channel, bus_addr); in NCR5380_pc_dma_setup()
370 set_dma_count(instance->dma_channel, count); in NCR5380_pc_dma_setup()
371 set_dma_mode(instance->dma_channel, mode); in NCR5380_pc_dma_setup()
372 enable_dma(instance->dma_channel); in NCR5380_pc_dma_setup()
427 clear_dma_ff(instance->dma_channel); in NCR5380_pc_dma_residual()
428 tmp = get_dma_residue(instance->dma_channel); in NCR5380_pc_dma_residual()
Dultrastor.c233 unsigned char dma_channel: 3; member
361 unsigned char dma_channel: 2; in ultrastor_14f_detect() member
467 config.dma_channel = 0; in ultrastor_14f_detect()
469 config.dma_channel = dma_channel_table_14f[config_1.dma_channel]; in ultrastor_14f_detect()
480 if (!config.dma_channel || !(config_2.tfr_port & 0x2)) { in ultrastor_14f_detect()
501 config.dma_channel, config.ha_scsi_id, config.subversion); in ultrastor_14f_detect()
519 if (config.dma_channel && request_dma(config.dma_channel,"Ultrastor")) { in ultrastor_14f_detect()
521 config.dma_channel); in ultrastor_14f_detect()
626 shpnt->dma_channel = config.dma_channel; in ultrastor_24f_detect()
657 if (shost->dma_channel != 0xff) in ultrastor_release()
[all …]
Du14-34f.c799 unsigned char irq, dma_channel, subversion, i; in port_detect() local
827 unsigned char dma_channel: 2, interrupt:2, in port_detect() member
831 interrupt: 2, dma_channel: 2; in port_detect()
871 dma_channel = dma_channel_table[config_1.dma_channel]; in port_detect()
882 if (subversion == ISA && request_dma(dma_channel, driver_name)) { in port_detect()
884 name, dma_channel); in port_detect()
936 sh[j]->dma_channel = NO_DMA; in port_detect()
945 disable_dma(dma_channel); in port_detect()
946 clear_dma_ff(dma_channel); in port_detect()
947 set_dma_mode(dma_channel, DMA_MODE_CASCADE); in port_detect()
[all …]
Dqlogicfas.c100 hreg->dma_channel = -1; in __qlogicfas_detect()
174 if (shost->dma_channel != 0xff) in qlogicfas_release()
175 free_dma(shost->dma_channel); in qlogicfas_release()
Deata.c1079 unsigned char irq, dma_channel, subversion, i, is_pci = 0; in port_detect() local
1186 dma_channel = dma_channel_table[3 - info.drqx]; in port_detect()
1193 dma_channel = NO_DMA; in port_detect()
1231 if (subversion == ISA && request_dma(dma_channel, driver_name)) { in port_detect()
1233 name, dma_channel); in port_detect()
1280 shost->dma_channel = dma_channel; in port_detect()
1303 disable_dma(dma_channel); in port_detect()
1304 clear_dma_ff(dma_channel); in port_detect()
1305 set_dma_mode(dma_channel, DMA_MODE_CASCADE); in port_detect()
1306 enable_dma(dma_channel); in port_detect()
[all …]
Dpas16.c609 if (shost->dma_channel != 0xff) in pas16_release()
610 free_dma(shost->dma_channel); in pas16_release()
Dadvansys.c2538 s->dma_channel, s->this_id, s->can_queue); in asc_prt_scsi_host()
2827 boardp->irq, shost->dma_channel); in advansys_info()
9611 static void __devinit AscEnableIsaDma(uchar dma_channel) in AscEnableIsaDma() argument
9613 if (dma_channel < 4) { in AscEnableIsaDma()
9614 outp(0x000B, (ushort)(0xC0 | dma_channel)); in AscEnableIsaDma()
9615 outp(0x000A, dma_channel); in AscEnableIsaDma()
9616 } else if (dma_channel < 8) { in AscEnableIsaDma()
9617 outp(0x00D6, (ushort)(0xC0 | (dma_channel - 4))); in AscEnableIsaDma()
9618 outp(0x00D4, (ushort)(dma_channel - 4)); in AscEnableIsaDma()
9663 static ushort __devinit AscSetIsaDmaChannel(PortAddr iop_base, ushort dma_channel) in AscSetIsaDmaChannel() argument
[all …]
/drivers/spi/
Dspi-bfin5xx.c92 int dma_channel; member
490 unsigned short dmastat = get_dma_curr_irqstat(drv_data->dma_channel); in bfin_spi_dma_irq_handler()
506 clear_dma_irqstat(drv_data->dma_channel); in bfin_spi_dma_irq_handler()
551 drv_data->dma_channel); in bfin_spi_dma_irq_handler()
552 dma_disable_irq_nosync(drv_data->dma_channel); in bfin_spi_dma_irq_handler()
698 disable_dma(drv_data->dma_channel); in bfin_spi_pump_transfers()
699 clear_dma_irqstat(drv_data->dma_channel); in bfin_spi_pump_transfers()
703 set_dma_x_count(drv_data->dma_channel, drv_data->len); in bfin_spi_pump_transfers()
705 set_dma_x_modify(drv_data->dma_channel, 2); in bfin_spi_pump_transfers()
708 set_dma_x_modify(drv_data->dma_channel, 1); in bfin_spi_pump_transfers()
[all …]
/drivers/usb/gadget/
Domap_udc.c209 ep->dma_channel = 0; in omap_ep_enable()
541 dma_trigger = OMAP24XX_DMA(USB_W2FC_TX0, ep->dma_channel); in next_in_dma()
566 w |= UDC_TX_DONE_IE(ep->dma_channel); in next_in_dma()
568 omap_writew(UDC_TXN_START | txdma_ctrl, UDC_TXDMA(ep->dma_channel)); in next_in_dma()
593 w &= ~UDC_TX_DONE_IE(ep->dma_channel); in finish_in_dma()
605 dma_trigger = OMAP24XX_DMA(USB_W2FC_RX0, ep->dma_channel); in next_out_dma()
631 omap_writew(UDC_RXN_STOP | (packets - 1), UDC_RXDMA(ep->dma_channel)); in next_out_dma()
633 w |= UDC_RX_EOT_IE(ep->dma_channel); in next_out_dma()
664 w &= ~UDC_RX_EOT_IE(ep->dma_channel); in finish_out_dma()
737 int dma_channel; in dma_channel_claim() local
[all …]
Domap_udc.h153 u8 dma_channel; member
/drivers/staging/comedi/drivers/
Dni_660x.c343 static inline unsigned dma_select_mask(unsigned dma_channel) in dma_select_mask() argument
345 BUG_ON(dma_channel >= MAX_DMA_CHANNEL); in dma_select_mask()
346 return 0x1f << (8 * dma_channel); in dma_select_mask()
358 static inline unsigned dma_select_bits(unsigned dma_channel, unsigned selection) in dma_select_bits() argument
360 BUG_ON(dma_channel >= MAX_DMA_CHANNEL); in dma_select_bits()
361 return (selection << (8 * dma_channel)) & dma_select_mask(dma_channel); in dma_select_bits()
364 static inline unsigned dma_reset_bit(unsigned dma_channel) in dma_reset_bit() argument
366 BUG_ON(dma_channel >= MAX_DMA_CHANNEL); in dma_reset_bit()
367 return 0x80 << (8 * dma_channel); in dma_reset_bit()
/drivers/scsi/pcmcia/
Dqlogic_stub.c112 shost->dma_channel = -1; in qlogic_detect()

12