Home
last modified time | relevance | path

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

12345

/Linux-v5.4/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-v5.4/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.c340 int speed = adev->dma_mode - XFER_MW_DMA_0; in sis_old_set_dmamode()
349 if (adev->dma_mode < XFER_UDMA_0) { in sis_old_set_dmamode()
356 speed = adev->dma_mode - XFER_UDMA_0; in sis_old_set_dmamode()
379 int speed = adev->dma_mode - XFER_MW_DMA_0; in sis_66_set_dmamode()
389 if (adev->dma_mode < XFER_UDMA_0) { in sis_66_set_dmamode()
396 speed = adev->dma_mode - XFER_UDMA_0; in sis_66_set_dmamode()
418 int speed = adev->dma_mode - XFER_MW_DMA_0; in sis_100_set_dmamode()
426 if (adev->dma_mode < XFER_UDMA_0) { in sis_100_set_dmamode()
430 speed = adev->dma_mode - XFER_UDMA_0; in sis_100_set_dmamode()
452 int speed = adev->dma_mode - XFER_MW_DMA_0; in sis_133_early_set_dmamode()
[all …]
Dpata_pdc2027x.c273 if (strstr(model_num, "Maxtor") == NULL && pair->dma_mode == XFER_UDMA_6) in pdc2027x_mode_filter()
335 unsigned int dma_mode = adev->dma_mode; in pdc2027x_set_dmamode() local
338 if ((dma_mode >= XFER_UDMA_0) && in pdc2027x_set_dmamode()
339 (dma_mode <= XFER_UDMA_6)) { in pdc2027x_set_dmamode()
341 unsigned int udma_mode = dma_mode & 0x07; in pdc2027x_set_dmamode()
343 if (dma_mode == XFER_UDMA_2) { in pdc2027x_set_dmamode()
366 } else if ((dma_mode >= XFER_MW_DMA_0) && in pdc2027x_set_dmamode()
367 (dma_mode <= XFER_MW_DMA_2)) { in pdc2027x_set_dmamode()
369 unsigned int mdma_mode = dma_mode & 0x07; in pdc2027x_set_dmamode()
383 printk(KERN_ERR DRV_NAME ": Unknown dma mode [%u] ignored\n", dma_mode); in pdc2027x_set_dmamode()
Dpata_optidma.c120 int dma = adev->dma_mode - XFER_MW_DMA_0; in optidma_mode_setup()
156 if (pair->dma_mode) 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()
304 if (adev->dma_mode) in optidma_make_bits43()
305 return adev->dma_mode - XFER_MW_DMA_0; in optidma_make_bits43()
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) { in radisys_qc_issue()
176 if (adev->dma_mode) in radisys_qc_issue()
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()
220 b = ioread8(dp->dma_mode); in atp867x_set_piomode()
225 iowrite8(b, dp->dma_mode); in atp867x_set_piomode()
329 (unsigned long long)dp->dma_mode, in atp867x_check_ports()
348 dp->dma_mode = ATP867X_IO_DMAMODE(ap, port); in atp867x_set_priv()
Dpata_atiixp.c154 int dma = adev->dma_mode; in atiixp_set_dmamode()
161 if (adev->dma_mode >= XFER_UDMA_0) { in atiixp_set_dmamode()
187 if (adev->dma_mode >= XFER_MW_DMA_2) in atiixp_set_dmamode()
189 else if (adev->dma_mode == XFER_MW_DMA_1) in atiixp_set_dmamode()
191 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_ali.c218 if (pair->dma_mode) { in ali_set_piomode()
219 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()
267 if (pair->dma_mode) { in ali_set_dmamode()
268 ata_timing_compute(pair, pair->dma_mode, &p, T, 1); in ali_set_dmamode()
Dpata_amd.c69 if (peer->dma_mode) { in timing_setup()
70 ata_timing_compute(peer, peer->dma_mode, &apeer, T, UT); in timing_setup()
244 timing_setup(ap, adev, 0x40, adev->dma_mode, 1); in amd33_set_dmamode()
249 timing_setup(ap, adev, 0x40, adev->dma_mode, 2); in amd66_set_dmamode()
254 timing_setup(ap, adev, 0x40, adev->dma_mode, 3); in amd100_set_dmamode()
259 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_pdc202xx_old.c151 if (adev->dma_mode >= XFER_UDMA_0) { in pdc202xx_set_dmamode()
152 int speed = adev->dma_mode - XFER_UDMA_0; in pdc202xx_set_dmamode()
157 int speed = adev->dma_mode - XFER_MW_DMA_0; in pdc202xx_set_dmamode()
191 if (adev->dma_mode > XFER_UDMA_2) in pdc2026x_bmdma_start()
245 if (adev->dma_mode > XFER_UDMA_2) in pdc2026x_bmdma_stop()
Dpata_mpc52xx.c257 u8 dma_mode; /* ATA + 0x7d ATA Host DMA Mode configuration */ member
413 if (adev->dma_mode >= XFER_UDMA_0) { in mpc52xx_ata_set_dmamode()
414 int dma = adev->dma_mode - XFER_UDMA_0; in mpc52xx_ata_set_dmamode()
417 int dma = adev->dma_mode - XFER_MW_DMA_0; in mpc52xx_ata_set_dmamode()
424 adev->dma_mode); in mpc52xx_ata_set_dmamode()
506 u8 dma_mode; in mpc52xx_bmdma_setup() local
518 dma_mode = MPC52xx_ATA_DMAMODE_IE | MPC52xx_ATA_DMAMODE_READ | in mpc52xx_bmdma_setup()
530 out_8(&regs->dma_mode, MPC52xx_ATA_DMAMODE_FR); in mpc52xx_bmdma_setup()
533 dma_mode = MPC52xx_ATA_DMAMODE_IE | MPC52xx_ATA_DMAMODE_WRITE; in mpc52xx_bmdma_setup()
546 dma_mode |= MPC52xx_ATA_DMAMODE_UDMA; in mpc52xx_bmdma_setup()
[all …]
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_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_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_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()
/Linux-v5.4/drivers/ide/
Dalim15x3.c116 if (pair->dma_mode) { in ali_set_pio_mode()
117 ide_timing_compute(pair, pair->dma_mode, &p, T, 1); in ali_set_pio_mode()
171 const u8 speed = drive->dma_mode; in ali_set_dma_mode()
176 ide_timing_compute(drive, drive->dma_mode, &t, T, 1); in ali_set_dma_mode()
183 if (pair->dma_mode) { in ali_set_dma_mode()
184 ide_timing_compute(pair, pair->dma_mode, in ali_set_dma_mode()
Dtriflex.c34 switch (drive->dma_mode) { in triflex_set_mode()
74 drive->dma_mode = drive->pio_mode; in triflex_set_pio_mode()
Dicside.c242 const u8 xfer_mode = drive->dma_mode; in icside_set_dma_mode()
314 unsigned int dma_mode; in icside_dma_setup() local
317 dma_mode = DMA_MODE_WRITE; in icside_dma_setup()
319 dma_mode = DMA_MODE_READ; in icside_dma_setup()
346 set_dma_mode(ec->dma, dma_mode); in icside_dma_setup()
/Linux-v5.4/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-v5.4/drivers/crypto/ccree/
Dcc_hw_queue_defs.h239 enum cc_dma_mode dma_mode, dma_addr_t addr, in set_din_type() argument
246 pdesc->word[1] |= FIELD_PREP(WORD1_DIN_DMA_MODE, dma_mode) | in set_din_type()
336 enum cc_dma_mode dma_mode, dma_addr_t addr, in set_dout_type() argument
343 pdesc->word[3] |= FIELD_PREP(WORD3_DOUT_DMA_MODE, dma_mode) | in set_dout_type()

12345