Home
last modified time | relevance | path

Searched refs:dma_cmd (Results 1 – 21 of 21) sorted by relevance

/openbmc/u-boot/board/micronas/vct/
H A Dscc.c440 dma_state->dma_cmd = cmd; in dma_state_process()
444 u32 dma_cmd) in dma_state_process_dma_command() argument
446 dma_state->dma_cmd = dma_cmd; in dma_state_process_dma_command()
447 switch (dma_cmd) { in dma_state_process_dma_command()
462 union scc_cmd dma_cmd; in scc_takeover_dma() local
464 dma_cmd.reg = 0; in scc_takeover_dma()
467 dma_cmd.bits.action = DMA_TAKEOVER; in scc_takeover_dma()
468 dma_cmd.bits.id = dma_id; in scc_takeover_dma()
469 dma_cmd.bits.rid = TO_DMA_CFG; /* this is DMA_CFG register takeover */ in scc_takeover_dma()
471 dma_cmd.bits.drs = DMA_WRITE; in scc_takeover_dma()
[all …]
H A Dscc.h87 u32 dma_cmd:4; /* last executed command on this DMA */ member
/openbmc/linux/drivers/media/pci/tw686x/
H A Dtw686x-core.c96 u32 dma_cmd = reg_read(dev, DMA_CMD); in tw686x_disable_channel() local
99 dma_cmd &= ~BIT(channel); in tw686x_disable_channel()
107 dma_cmd = 0; in tw686x_disable_channel()
109 reg_write(dev, DMA_CMD, dma_cmd); in tw686x_disable_channel()
115 u32 dma_cmd = reg_read(dev, DMA_CMD); in tw686x_enable_channel() local
118 dev->pending_dma_cmd |= dma_cmd | DMA_CMD_ENABLE | BIT(channel); in tw686x_enable_channel()
143 u32 dma_en, dma_cmd; in tw686x_reset_channels() local
146 dma_cmd = reg_read(dev, DMA_CMD); in tw686x_reset_channels()
153 dev->pending_dma_cmd |= dma_cmd; in tw686x_reset_channels()
160 dma_cmd &= ~DMA_CMD_ENABLE; in tw686x_reset_channels()
[all …]
H A Dtw686x-audio.c347 u32 dma_cmd; in tw686x_audio_free() local
350 dma_cmd = reg_read(dev, DMA_CMD); in tw686x_audio_free()
352 reg_write(dev, DMA_CMD, dma_cmd & ~0xff00); in tw686x_audio_free()
/openbmc/linux/sound/isa/gus/
H A Dgus_dma.c30 unsigned char dma_cmd; in snd_gf1_dma_program() local
50 dma_cmd = SNDRV_GF1_DMA_ENABLE | (unsigned short) cmd; in snd_gf1_dma_program()
52 dma_cmd |= 0x08; in snd_gf1_dma_program()
54 if (dma_cmd & SNDRV_GF1_DMA_16BIT) { in snd_gf1_dma_program()
59 dma_cmd |= SNDRV_GF1_DMA_WIDTH16; in snd_gf1_dma_program()
64 …snd_dma_program(gus->gf1.dma1, buf_addr, count, dma_cmd & SNDRV_GF1_DMA_READ ? DMA_MODE_READ : DMA… in snd_gf1_dma_program()
67 address << 1, count, dma_cmd); in snd_gf1_dma_program()
76 snd_gf1_write8(gus, SNDRV_GF1_GB_DRAM_DMA_CONTROL, dma_cmd); in snd_gf1_dma_program()
/openbmc/qemu/hw/ide/
H A Dide-internal.h323 ((s)->dma_cmd == IDE_DMA_READ)
357 static inline uint8_t ide_dma_cmd_to_retry(uint8_t dma_cmd) in ide_dma_cmd_to_retry() argument
359 switch (dma_cmd) { in ide_dma_cmd_to_retry()
H A Dmacio.c180 switch (s->dma_cmd) { in pmac_ide_transfer_cb()
202 if (s->dma_cmd == IDE_DMA_READ || s->dma_cmd == IDE_DMA_WRITE) { in pmac_ide_transfer_cb()
229 switch (s->dma_cmd) { in pmac_ide_transfer()
H A Dcore.c894 if (ide_handle_rw_error(s, -ret, ide_dma_cmd_to_retry(s->dma_cmd))) { in ide_dma_cb()
951 trace_ide_dma_cb(s, sector_num, n, IDE_DMA_CMD_str(s->dma_cmd)); in ide_dma_cb()
953 if ((s->dma_cmd == IDE_DMA_READ || s->dma_cmd == IDE_DMA_WRITE) && in ide_dma_cb()
961 switch (s->dma_cmd) { in ide_dma_cb()
982 if (s->dma_cmd == IDE_DMA_READ || s->dma_cmd == IDE_DMA_WRITE) { in ide_dma_cb()
988 static void ide_sector_start_dma(IDEState *s, enum ide_dma_cmd dma_cmd) in ide_sector_start_dma() argument
992 s->dma_cmd = dma_cmd; in ide_sector_start_dma()
994 switch (dma_cmd) { in ide_sector_start_dma()
1803 s->dma_cmd = IDE_DMA_ATAPI; in cmd_packet()
2712 static void ide_restart_dma(IDEState *s, enum ide_dma_cmd dma_cmd) in ide_restart_dma() argument
[all …]
H A Dpci.c465 ide_dma_cmd_to_retry(bmdma_active_if(bm)->dma_cmd); in ide_bmdma_pre_save()
H A Datapi.c354 if (ide_handle_rw_error(s, -ret, ide_dma_cmd_to_retry(s->dma_cmd))) { in ide_atapi_cmd_read_dma_cb()
/openbmc/linux/drivers/scsi/
H A Dmac53c94.c360 int i, dma_cmd, total, nseg; in set_dma_cmds() local
371 dma_cmd = cmd->sc_data_direction == DMA_TO_DEVICE ? in set_dma_cmds()
383 dcmds->command = cpu_to_le16(dma_cmd); in set_dma_cmds()
389 dma_cmd += OUTPUT_LAST - OUTPUT_MORE; in set_dma_cmds()
390 dcmds[-1].command = cpu_to_le16(dma_cmd); in set_dma_cmds()
H A Dam53c974.c196 u8 dma_cmd = pci_esp_read8(esp, ESP_DMA_CMD); in pci_esp_dma_error() local
198 if ((dma_cmd & ESP_DMA_CMD_MASK) == ESP_DMA_CMD_START) in pci_esp_dma_error()
H A Dmesh.c1256 int i, dma_cmd, total, off, dtot; in set_dma_cmds() local
1260 dma_cmd = ms->tgts[ms->conn_tgt].data_goes_out? in set_dma_cmds()
1288 dcmds->command = cpu_to_le16(dma_cmd); in set_dma_cmds()
1308 dma_cmd += OUTPUT_LAST - OUTPUT_MORE; in set_dma_cmds()
1309 dcmds[-1].command = cpu_to_le16(dma_cmd); in set_dma_cmds()
/openbmc/linux/drivers/net/wireless/microchip/wilc1000/
H A Dspi.c124 } __packed dma_cmd; member
669 c->u.dma_cmd.addr[0] = adr >> 16; in wilc_spi_dma_rw()
670 c->u.dma_cmd.addr[1] = adr >> 8; in wilc_spi_dma_rw()
671 c->u.dma_cmd.addr[2] = adr; in wilc_spi_dma_rw()
672 c->u.dma_cmd.size[0] = sz >> 8; in wilc_spi_dma_rw()
673 c->u.dma_cmd.size[1] = sz; in wilc_spi_dma_rw()
674 cmd_len = offsetof(struct wilc_spi_cmd, u.dma_cmd.crc); in wilc_spi_dma_rw()
676 c->u.dma_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_dma_rw()
/openbmc/linux/drivers/block/
H A Dswim3.c194 struct dbdma_cmd *dma_cmd; member
435 struct dbdma_cmd *cp = fs->dma_cmd; in setup_transfer()
732 cp = fs->dma_cmd; in swim3_interrupt()
1158 fs->dma_cmd = (struct dbdma_cmd *) DBDMA_ALIGN(fs->dbdma_cmd_space); in swim3_add_device()
1159 memset(fs->dma_cmd, 0, 2 * sizeof(struct dbdma_cmd)); in swim3_add_device()
1160 fs->dma_cmd[1].command = cpu_to_le16(DBDMA_STOP); in swim3_add_device()
/openbmc/linux/drivers/ata/
H A Dpata_hpt37x.c483 u8 dma_cmd; in hpt370_bmdma_stop() local
494 dma_cmd = ioread8(bmdma + ATA_DMA_CMD); in hpt370_bmdma_stop()
495 iowrite8(dma_cmd & ~ATA_DMA_START, bmdma + ATA_DMA_CMD); in hpt370_bmdma_stop()
/openbmc/qemu/include/hw/ide/
H A Dide-dev.h134 enum ide_dma_cmd dma_cmd; member
/openbmc/linux/drivers/mtd/nand/raw/brcmnand/
H A Dbrcmnand.c259 u8 *oob, u32 len, u8 dma_cmd);
2062 dma_addr_t buf, u32 len, u8 dma_cmd, in brcmnand_fill_dma_desc() argument
2070 desc->cmd_irq = (dma_cmd << 24) | in brcmnand_fill_dma_desc()
2119 u8 *oob, u32 len, u8 dma_cmd) in brcmnand_dma_trans() argument
2123 int dir = dma_cmd == CMD_PAGE_READ ? DMA_FROM_DEVICE : DMA_TO_DEVICE; in brcmnand_dma_trans()
2132 dma_cmd, true, true, 0); in brcmnand_dma_trans()
/openbmc/qemu/hw/audio/
H A Dsb16.c301 static void dma_cmd (SB16State *s, uint8_t cmd, uint8_t d0, int dma_len) in dma_cmd() function
705 dma_cmd (s, s->cmd, d0, d1 + (d2 << 8)); in complete()
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/sec/fuc/
H A Dg98.fuc0s225 bra nc #dma_cmd
236 dma_cmd:
/openbmc/linux/drivers/staging/media/ipu3/
H A Dipu3-css.c533 struct imgu_abi_bl_dma_cmd_entry dma_cmd = { in imgu_css_hw_start() local
541 writes(&dma_cmd, sizeof(dma_cmd), in imgu_css_hw_start()
542 base + IMGU_REG_ISP_DMEM_BASE + i * sizeof(dma_cmd) + in imgu_css_hw_start()