/kernel/linux/linux-5.10/drivers/media/pci/tw686x/ |
H A D | tw686x-core.c | 22 * Therefore, driver implements a dma_mode called 'memcpy' which 57 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 in tw686x_probe() [all...] |
/kernel/linux/linux-6.6/drivers/media/pci/tw686x/ |
H A D | tw686x-core.c | 22 * Therefore, driver implements a dma_mode called 'memcpy' which 57 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 in tw686x_probe() [all...] |
/kernel/linux/linux-5.10/drivers/ata/ |
H A D | pata_sch.c | 127 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()
|
H A D | pata_sis.c | 340 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 in sis_133_early_set_dmamode() [all...] |
H A D | pata_pdc2027x.c | 273 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 in pdc2027x_set_dmamode() [all...] |
H A D | pata_optidma.c | 120 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()
|
H A D | pata_radisys.c | 112 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()
|
H A D | pata_artop.c | 211 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()
|
H A D | pata_amd.c | 69 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()
|
H A D | pata_ali.c | 218 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()
|
H A D | pata_atp867x.c | 100 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() 307 " dp->dma_mode =0x%llx\n" in atp867x_check_ports() 329 (unsigned long long)dp->dma_mode, in atp867x_check_ports() 348 dp->dma_mode = ATP867X_IO_DMAMODE(ap, port); in atp867x_set_priv()
|
H A D | pata_piccolo.c | 50 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()
|
H A D | pata_mpc52xx.c | 257 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(®s->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 | in mpc52xx_bmdma_setup() [all...] |
H A D | pata_pdc202xx_old.c | 151 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()
|
H A D | pata_atiixp.c | 154 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()
|
H A D | pata_serverworks.c | 229 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()
|
/kernel/linux/linux-6.6/drivers/ata/ |
H A D | pata_sch.c | 127 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()
|
H A D | pata_sis.c | 339 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 in sis_133_early_set_dmamode() [all...] |
H A D | pata_pdc2027x.c | 266 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 in pdc2027x_set_dmamode() [all...] |
H A D | pata_artop.c | 211 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()
|
H A D | pata_atp867x.c | 100 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() 307 " dp->dma_mode =0x%lx\n" in atp867x_check_ports() 329 (unsigned long)dp->dma_mode, in atp867x_check_ports() 347 dp->dma_mode = ATP867X_IO_DMAMODE(ap, port); in atp867x_set_priv()
|
H A D | pata_piccolo.c | 50 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()
|
H A D | pata_mpc52xx.c | 259 u8 dma_mode; /* ATA + 0x7d ATA Host DMA Mode configuration */ member 415 if (adev->dma_mode >= XFER_UDMA_0) { in mpc52xx_ata_set_dmamode() 416 int dma = adev->dma_mode - XFER_UDMA_0; in mpc52xx_ata_set_dmamode() 419 int dma = adev->dma_mode - XFER_MW_DMA_0; in mpc52xx_ata_set_dmamode() 426 adev->dma_mode); in mpc52xx_ata_set_dmamode() 508 u8 dma_mode; in mpc52xx_bmdma_setup() local 520 dma_mode = MPC52xx_ATA_DMAMODE_IE | MPC52xx_ATA_DMAMODE_READ | in mpc52xx_bmdma_setup() 532 out_8(®s->dma_mode, MPC52xx_ATA_DMAMODE_FR); in mpc52xx_bmdma_setup() 535 dma_mode = MPC52xx_ATA_DMAMODE_IE | MPC52xx_ATA_DMAMODE_WRITE; in mpc52xx_bmdma_setup() 548 dma_mode | in mpc52xx_bmdma_setup() [all...] |
H A D | pata_atiixp.c | 155 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()
|
H A D | pata_optidma.c | 120 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()
|