/drivers/mtd/onenand/ |
D | omap2.c | 63 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/ |
D | musb_dma.h | 125 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,
|
D | ux500_dma.c | 37 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 …]
|
D | musbhsdma.c | 46 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()
|
D | tusb6010_omap.c | 126 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 …]
|
D | musb_host.c | 612 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 …]
|
D | musb_core.h | 229 int (*adjust_channel_params)(struct dma_channel *channel, 259 struct dma_channel *tx_channel; 260 struct dma_channel *rx_channel;
|
D | musb_gadget.h | 82 struct dma_channel *dma;
|
D | cppi_dma.h | 80 struct dma_channel channel;
|
D | cppi_dma.c | 131 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()
|
D | musbhsdma.h | 147 struct dma_channel channel;
|
D | musb_gadget.c | 493 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/ |
D | pata_pxa.c | 42 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/ |
D | NCR5380.h | 350 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()
|
D | ultrastor.c | 233 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 …]
|
D | u14-34f.c | 799 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 …]
|
D | qlogicfas.c | 100 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()
|
D | eata.c | 1079 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 …]
|
D | pas16.c | 609 if (shost->dma_channel != 0xff) in pas16_release() 610 free_dma(shost->dma_channel); in pas16_release()
|
D | advansys.c | 2538 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/ |
D | spi-bfin5xx.c | 92 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/ |
D | omap_udc.c | 209 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 …]
|
D | omap_udc.h | 153 u8 dma_channel; member
|
/drivers/staging/comedi/drivers/ |
D | ni_660x.c | 343 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/ |
D | qlogic_stub.c | 112 shost->dma_channel = -1; in qlogic_detect()
|