Home
last modified time | relevance | path

Searched refs:dma_mode (Results 1 – 25 of 92) sorted by relevance

1234

/linux-6.1.9/drivers/media/pci/tw686x/
Dtw686x-core.c57 static unsigned int dma_mode = TW686X_DMA_MODE_MEMCPY; variable
74 return sprintf(buffer, "%s", dma_mode_name(dma_mode)); in tw686x_dma_mode_get()
80 dma_mode = TW686X_DMA_MODE_MEMCPY; in tw686x_dma_mode_set()
82 dma_mode = TW686X_DMA_MODE_CONTIG; in tw686x_dma_mode_set()
84 dma_mode = TW686X_DMA_MODE_SG; in tw686x_dma_mode_set()
89 module_param_call(dma_mode, tw686x_dma_mode_set, tw686x_dma_mode_get,
90 &dma_mode, S_IRUGO|S_IWUSR);
91 MODULE_PARM_DESC(dma_mode, "DMA operation mode (memcpy/contig/sg, default=memcpy)");
250 dev->dma_mode = dma_mode; in tw686x_probe()
270 dma_mode_name(dma_mode)); in tw686x_probe()
/linux-6.1.9/drivers/ata/
Dpata_sch.c127 unsigned int dma_mode = adev->dma_mode; in sch_set_dmamode() local
134 if (dma_mode >= XFER_UDMA_0) { in sch_set_dmamode()
138 data |= (dma_mode - XFER_UDMA_0) << 16; in sch_set_dmamode()
141 data |= (dma_mode - XFER_MW_DMA_0) << 8; in sch_set_dmamode()
Dpata_sis.c339 int speed = adev->dma_mode - XFER_MW_DMA_0; in sis_old_set_dmamode()
348 if (adev->dma_mode < XFER_UDMA_0) { in sis_old_set_dmamode()
355 speed = adev->dma_mode - XFER_UDMA_0; in sis_old_set_dmamode()
378 int speed = adev->dma_mode - XFER_MW_DMA_0; in sis_66_set_dmamode()
388 if (adev->dma_mode < XFER_UDMA_0) { in sis_66_set_dmamode()
395 speed = adev->dma_mode - XFER_UDMA_0; in sis_66_set_dmamode()
417 int speed = adev->dma_mode - XFER_MW_DMA_0; in sis_100_set_dmamode()
425 if (adev->dma_mode < XFER_UDMA_0) { in sis_100_set_dmamode()
429 speed = adev->dma_mode - XFER_UDMA_0; in sis_100_set_dmamode()
451 int speed = adev->dma_mode - XFER_MW_DMA_0; in sis_133_early_set_dmamode()
[all …]
Dpata_pdc2027x.c266 if (strstr(model_num, "Maxtor") == NULL && pair->dma_mode == XFER_UDMA_6) in pdc2027x_mode_filter()
326 unsigned int dma_mode = adev->dma_mode; in pdc2027x_set_dmamode() local
329 if ((dma_mode >= XFER_UDMA_0) && in pdc2027x_set_dmamode()
330 (dma_mode <= XFER_UDMA_6)) { in pdc2027x_set_dmamode()
332 unsigned int udma_mode = dma_mode & 0x07; in pdc2027x_set_dmamode()
334 if (dma_mode == XFER_UDMA_2) { in pdc2027x_set_dmamode()
355 } else if ((dma_mode >= XFER_MW_DMA_0) && in pdc2027x_set_dmamode()
356 (dma_mode <= XFER_MW_DMA_2)) { in pdc2027x_set_dmamode()
358 unsigned int mdma_mode = dma_mode & 0x07; in pdc2027x_set_dmamode()
371 ata_port_err(ap, "Unknown dma mode [%u] ignored\n", dma_mode); in pdc2027x_set_dmamode()
Dpata_artop.c211 if (adev->dma_mode == XFER_MW_DMA_0) in artop6210_set_dmamode()
223 if (adev->dma_mode >= XFER_UDMA_0) { in artop6210_set_dmamode()
224 u8 mode = (adev->dma_mode - XFER_UDMA_0) + 1 - clock; in artop6210_set_dmamode()
250 if (adev->dma_mode == XFER_MW_DMA_0) in artop6260_set_dmamode()
261 if (adev->dma_mode >= XFER_UDMA_0) { in artop6260_set_dmamode()
262 u8 mode = adev->dma_mode - XFER_UDMA_0 + 1 - clock; in artop6260_set_dmamode()
Dpata_atp867x.c100 void __iomem *dma_mode; member
111 u8 speed = adev->dma_mode; in atp867x_set_dmamode()
127 b = ioread8(dp->dma_mode); in atp867x_set_dmamode()
135 iowrite8(b, dp->dma_mode); in atp867x_set_dmamode()
221 b = ioread8(dp->dma_mode); in atp867x_set_piomode()
226 iowrite8(b, dp->dma_mode); in atp867x_set_piomode()
329 (unsigned long)dp->dma_mode, in atp867x_check_ports()
347 dp->dma_mode = ATP867X_IO_DMAMODE(ap, port); in atp867x_set_priv()
Dpata_atiixp.c155 int dma = adev->dma_mode; in atiixp_set_dmamode()
162 if (adev->dma_mode >= XFER_UDMA_0) { in atiixp_set_dmamode()
188 if (adev->dma_mode >= XFER_MW_DMA_2) in atiixp_set_dmamode()
190 else if (adev->dma_mode == XFER_MW_DMA_1) in atiixp_set_dmamode()
192 else if (adev->dma_mode == XFER_MW_DMA_0) in atiixp_set_dmamode()
Dpata_piccolo.c50 if (adev->dma_mode >= XFER_UDMA_0) { in tosh_set_dmamode()
51 int udma = adev->dma_mode - XFER_UDMA_0; in tosh_set_dmamode()
59 conf |= mwdma[adev->dma_mode - XFER_MW_DMA_0]; in tosh_set_dmamode()
Dpata_optidma.c120 int dma = adev->dma_mode - XFER_MW_DMA_0; in optidma_mode_setup()
213 optidma_mode_setup(ap, adev, adev->dma_mode); in optiplus_mode_setup()
256 optidma_mode_setup(ap, adev, adev->dma_mode); in optidma_set_dma_mode()
286 optiplus_mode_setup(ap, adev, adev->dma_mode); in optiplus_set_dma_mode()
305 return adev->dma_mode - XFER_MW_DMA_0; in optidma_make_bits43()
Dpata_pdc202xx_old.c149 if (adev->dma_mode >= XFER_UDMA_0) { in pdc202xx_set_dmamode()
150 int speed = adev->dma_mode - XFER_UDMA_0; in pdc202xx_set_dmamode()
155 int speed = adev->dma_mode - XFER_MW_DMA_0; in pdc202xx_set_dmamode()
189 if (adev->dma_mode > XFER_UDMA_2) in pdc2026x_bmdma_start()
243 if (adev->dma_mode > XFER_UDMA_2) in pdc2026x_bmdma_stop()
Dpata_mpc52xx.c258 u8 dma_mode; /* ATA + 0x7d ATA Host DMA Mode configuration */ member
414 if (adev->dma_mode >= XFER_UDMA_0) { in mpc52xx_ata_set_dmamode()
415 int dma = adev->dma_mode - XFER_UDMA_0; in mpc52xx_ata_set_dmamode()
418 int dma = adev->dma_mode - XFER_MW_DMA_0; in mpc52xx_ata_set_dmamode()
425 adev->dma_mode); in mpc52xx_ata_set_dmamode()
507 u8 dma_mode; in mpc52xx_bmdma_setup() local
519 dma_mode = MPC52xx_ATA_DMAMODE_IE | MPC52xx_ATA_DMAMODE_READ | in mpc52xx_bmdma_setup()
531 out_8(&regs->dma_mode, MPC52xx_ATA_DMAMODE_FR); in mpc52xx_bmdma_setup()
534 dma_mode = MPC52xx_ATA_DMAMODE_IE | MPC52xx_ATA_DMAMODE_WRITE; in mpc52xx_bmdma_setup()
547 dma_mode |= MPC52xx_ATA_DMAMODE_UDMA; in mpc52xx_bmdma_setup()
[all …]
Dpata_radisys.c112 if (adev->dma_mode < XFER_UDMA_0) { in radisys_set_dmamode()
113 unsigned int mwdma = adev->dma_mode - XFER_MW_DMA_0; in radisys_set_dmamode()
175 if (adev->dma_mode < XFER_UDMA_0 || !ata_dma_enabled(adev)) { in radisys_qc_issue()
Dpata_serverworks.c229 static const u8 dma_mode[] = { 0x77, 0x21, 0x20 }; in serverworks_set_dmamode() local
240 if (adev->dma_mode >= XFER_UDMA_0) { in serverworks_set_dmamode()
243 ultra |= (adev->dma_mode - XFER_UDMA_0) in serverworks_set_dmamode()
248 dma_mode[adev->dma_mode - XFER_MW_DMA_0]); in serverworks_set_dmamode()
Dpata_amd.c70 ata_timing_compute(peer, peer->dma_mode, &apeer, T, UT); in timing_setup()
243 timing_setup(ap, adev, 0x40, adev->dma_mode, 1); in amd33_set_dmamode()
248 timing_setup(ap, adev, 0x40, adev->dma_mode, 2); in amd66_set_dmamode()
253 timing_setup(ap, adev, 0x40, adev->dma_mode, 3); in amd100_set_dmamode()
258 timing_setup(ap, adev, 0x40, adev->dma_mode, 4); in amd133_set_dmamode()
375 timing_setup(ap, adev, 0x50, adev->dma_mode, 3); in nv100_set_dmamode()
380 timing_setup(ap, adev, 0x50, adev->dma_mode, 4); in nv133_set_dmamode()
Dpata_ali.c219 ata_timing_compute(pair, pair->dma_mode, &p, T, 1); in ali_set_piomode()
253 if (adev->dma_mode >= XFER_UDMA_0) { in ali_set_dmamode()
254 ali_program_modes(ap, adev, NULL, udma_timing[adev->dma_mode - XFER_UDMA_0]); in ali_set_dmamode()
255 if (adev->dma_mode >= XFER_UDMA_3) { in ali_set_dmamode()
262 ata_timing_compute(adev, adev->dma_mode, &t, T, 1); in ali_set_dmamode()
268 ata_timing_compute(pair, pair->dma_mode, &p, T, 1); in ali_set_dmamode()
Dpata_efar.c163 u8 speed = adev->dma_mode; in efar_set_dmamode()
181 unsigned int udma = adev->dma_mode - XFER_UDMA_0; in efar_set_dmamode()
197 unsigned int mwdma = adev->dma_mode - XFER_MW_DMA_0; in efar_set_dmamode()
Dpata_it8213.c144 u8 speed = adev->dma_mode; in it8213_set_dmamode()
159 unsigned int udma = adev->dma_mode - XFER_UDMA_0; in it8213_set_dmamode()
192 unsigned int mwdma = adev->dma_mode - XFER_MW_DMA_0; in it8213_set_dmamode()
Dpata_rdc.c176 u8 speed = adev->dma_mode; in rdc_set_dmamode()
193 unsigned int udma = adev->dma_mode - XFER_UDMA_0; in rdc_set_dmamode()
232 unsigned int mwdma = adev->dma_mode - XFER_MW_DMA_0; in rdc_set_dmamode()
Dpata_cmd64x.c214 if (adev->dma_mode >= XFER_UDMA_0) { in cmd64x_set_dmamode()
216 regU |= udma_data[adev->dma_mode - XFER_UDMA_0] << shift; in cmd64x_set_dmamode()
219 if (adev->dma_mode > XFER_UDMA_2) /* 15nS timing */ in cmd64x_set_dmamode()
223 cmd64x_set_timing(ap, adev, adev->dma_mode); in cmd64x_set_dmamode()
Dpata_arasan_cf.c753 u32 opmode, tmcfg, dma_mode = adev->dma_mode; in arasan_cf_set_dmamode() local
761 if ((dma_mode >= XFER_UDMA_0) && (dma_mode <= XFER_UDMA_6)) { in arasan_cf_set_dmamode()
764 tmcfg |= (dma_mode - XFER_UDMA_0) << ULTRA_DMA_TIMING_SHIFT; in arasan_cf_set_dmamode()
765 } else if ((dma_mode >= XFER_MW_DMA_0) && (dma_mode <= XFER_MW_DMA_4)) { in arasan_cf_set_dmamode()
768 tmcfg |= (dma_mode - XFER_MW_DMA_0) << in arasan_cf_set_dmamode()
/linux-6.1.9/drivers/crypto/cavium/cpt/
Dcptvf_algs.h19 #define DMA_MODE_FLAG(dma_mode) \ argument
20 (((dma_mode) == DMA_GATHER_SCATTER) ? (1 << 7) : 0)
Drequest_manager.h26 u32 dma_mode:2; /* DMA mode */ member
30 u32 dma_mode:2; /* DMA mode */
/linux-6.1.9/drivers/i2c/busses/
Di2c-tegra.c293 bool dma_mode; member
911 if (!i2c_dev->dma_mode) { in tegra_i2c_isr()
946 if (i2c_dev->dma_mode) in tegra_i2c_isr()
976 if (i2c_dev->dma_mode) { in tegra_i2c_isr()
1003 if (i2c_dev->dma_mode) { in tegra_i2c_config_fifo_trig()
1044 i2c_dev->dma_mode = false; in tegra_i2c_config_fifo_trig()
1167 if (i2c_dev->dma_mode && !i2c_dev->msg_read) in tegra_i2c_push_packet_header()
1174 if (i2c_dev->dma_mode && !i2c_dev->msg_read) in tegra_i2c_push_packet_header()
1199 if (i2c_dev->dma_mode && !i2c_dev->msg_read) in tegra_i2c_push_packet_header()
1262 i2c_dev->dma_mode = xfer_size > I2C_PIO_MODE_PREFERRED_LEN && in tegra_i2c_xfer_msg()
[all …]
/linux-6.1.9/drivers/crypto/ccree/
Dcc_hw_queue_defs.h237 enum cc_dma_mode dma_mode, dma_addr_t addr, in set_din_type() argument
244 pdesc->word[1] |= FIELD_PREP(WORD1_DIN_DMA_MODE, dma_mode) | in set_din_type()
330 enum cc_dma_mode dma_mode, dma_addr_t addr, in set_dout_type() argument
337 pdesc->word[3] |= FIELD_PREP(WORD3_DOUT_DMA_MODE, dma_mode) | in set_dout_type()
/linux-6.1.9/arch/arm/mach-footbridge/
Ddma-isa.c68 mode = (chan & 3) | dma->dma_mode; in isa_enable_dma()
69 switch (dma->dma_mode & DMA_MODE_MASK) { in isa_enable_dma()

1234