/drivers/media/pci/ivtv/ |
D | ivtv-udma.c | 94 if (itv->udma.SG_handle == 0) { in ivtv_udma_alloc() 96 itv->udma.SG_handle = pci_map_single(itv->pdev, itv->udma.SGarray, in ivtv_udma_alloc() 97 sizeof(itv->udma.SGarray), PCI_DMA_TODEVICE); in ivtv_udma_alloc() 106 struct ivtv_user_dma *dma = &itv->udma; in ivtv_udma_setup() 169 struct ivtv_user_dma *dma = &itv->udma; in ivtv_udma_unmap() 198 if (itv->udma.SG_handle) { in ivtv_udma_free() 199 pci_unmap_single(itv->pdev, itv->udma.SG_handle, in ivtv_udma_free() 200 sizeof(itv->udma.SGarray), PCI_DMA_TODEVICE); in ivtv_udma_free() 204 if (itv->udma.SG_length) { in ivtv_udma_free() 205 pci_unmap_sg(itv->pdev, itv->udma.SGlist, itv->udma.page_count, PCI_DMA_TODEVICE); in ivtv_udma_free() [all …]
|
D | ivtv-udma.h | 38 pci_dma_sync_single_for_device(itv->pdev, itv->udma.SG_handle, in ivtv_udma_sync_for_device() 39 sizeof(itv->udma.SGarray), PCI_DMA_TODEVICE); in ivtv_udma_sync_for_device() 44 pci_dma_sync_single_for_cpu(itv->pdev, itv->udma.SG_handle, in ivtv_udma_sync_for_cpu() 45 sizeof(itv->udma.SGarray), PCI_DMA_TODEVICE); in ivtv_udma_sync_for_cpu()
|
D | ivtv-firmware.c | 291 mutex_lock(&itv->udma.lock); in ivtv_firmware_restart() 295 mutex_unlock(&itv->udma.lock); in ivtv_firmware_restart() 329 mutex_unlock(&itv->udma.lock); in ivtv_firmware_restart()
|
D | Makefile | 4 ivtv-mailbox.o ivtv-queue.o ivtv-streams.o ivtv-udma.o \
|
D | ivtvfb.c | 291 mutex_lock(&itv->udma.lock); in ivtvfb_prep_dec_dma_to_device() 294 mutex_unlock(&itv->udma.lock); in ivtvfb_prep_dec_dma_to_device() 297 size_in_bytes, itv->udma.page_count); in ivtvfb_prep_dec_dma_to_device() 304 size_in_bytes, itv->udma.page_count); in ivtvfb_prep_dec_dma_to_device() 324 mutex_unlock(&itv->udma.lock); in ivtvfb_prep_dec_dma_to_device()
|
/drivers/ata/ |
D | pata_amd.c | 77 if (speed == XFER_UDMA_5 && amd_clock <= 33333) at.udma = 1; in timing_setup() 78 if (speed == XFER_UDMA_6 && amd_clock <= 33333) at.udma = 15; in timing_setup() 99 t = at.udma ? (0xc0 | (clamp_val(at.udma, 2, 5) - 2)) : 0x03; in timing_setup() 103 t = at.udma ? (0xc0 | amd_cyc2udma[clamp_val(at.udma, 2, 10)]) : 0x03; in timing_setup() 107 t = at.udma ? (0xc0 | amd_cyc2udma[clamp_val(at.udma, 1, 10)]) : 0x03; in timing_setup() 111 t = at.udma ? (0xc0 | amd_cyc2udma[clamp_val(at.udma, 1, 15)]) : 0x03; in timing_setup() 119 if (at.udma) in timing_setup() 276 u32 saved_udma, udma; in nv_mode_filter() local 281 udma = saved_udma = (unsigned long)ap->host->private_data; in nv_mode_filter() 284 udma >>= 16; in nv_mode_filter() [all …]
|
D | pata_it821x.c | 96 u16 udma[2]; /* Cached UDMA values (per drive) */ member 233 if (pair && itdev->udma[1-unit] != UDMA_OFF) { in it821x_clock_strategy() 234 it821x_program_udma(ap, pair, itdev->udma[1-unit]); in it821x_clock_strategy() 241 if (itdev->udma[unit] != UDMA_OFF) { in it821x_clock_strategy() 242 it821x_program_udma(ap, adev, itdev->udma[unit]); in it821x_clock_strategy() 290 static const u16 udma[] = { 0x4433, 0x4231, 0x3121, 0x2121, 0x1111, 0x2211, 0x1111 }; in it821x_passthru_set_dmamode() local 305 itdev->udma[unit] = udma[mode_wanted]; in it821x_passthru_set_dmamode() 307 itdev->udma[unit] |= 0x8080; /* UDMA 5/6 select on */ in it821x_passthru_set_dmamode() 317 it821x_program_udma(ap, adev, itdev->udma[unit]); in it821x_passthru_set_dmamode() 324 itdev->udma[unit] = UDMA_OFF; in it821x_passthru_set_dmamode() [all …]
|
D | pata_it8213.c | 159 unsigned int udma = adev->dma_mode - XFER_UDMA_0; in it8213_set_dmamode() local 165 u_speed = min(2 - (udma & 1), udma); in it8213_set_dmamode() 166 if (udma > 4) in it8213_set_dmamode() 168 else if (udma > 2) in it8213_set_dmamode()
|
D | pata_via.c | 298 ut = t.udma ? (0xe0 | (clamp_val(t.udma, 2, 5) - 2)) : 0x03; in via_do_set_mode() 301 ut = t.udma ? (0xe8 | (clamp_val(t.udma, 2, 9) - 2)) : 0x0f; in via_do_set_mode() 304 ut = t.udma ? (0xe0 | (clamp_val(t.udma, 2, 9) - 2)) : 0x07; in via_do_set_mode() 307 ut = t.udma ? (0xe0 | (clamp_val(t.udma, 2, 9) - 2)) : 0x07; in via_do_set_mode() 320 if (t.udma) { in via_do_set_mode()
|
D | pata_rdc.c | 207 unsigned int udma = adev->dma_mode - XFER_UDMA_0; in rdc_set_dmamode() local 219 u_speed = min(2 - (udma & 1), udma); in rdc_set_dmamode() 220 if (udma == 5) in rdc_set_dmamode() 222 else if (udma > 2) in rdc_set_dmamode()
|
D | pata_piccolo.c | 52 int udma = adev->dma_mode - XFER_UDMA_0; in tosh_set_dmamode() local 54 conf |= (udma + 2) << 28; in tosh_set_dmamode() 55 conf |= (2 - udma) * 0x111; /* spread into three nibbles */ in tosh_set_dmamode()
|
D | pata_atiixp.c | 52 u8 udma; in atiixp_cable_detect() local 59 pci_read_config_byte(pdev, ATIIXP_IDE_UDMA_MODE + ap->port_no, &udma); in atiixp_cable_detect() 60 if ((udma & 0x07) >= 0x04 || (udma & 0x70) >= 0x40) in atiixp_cable_detect()
|
D | pata_ali.c | 178 u8 udma; in ali_program_modes() local 193 pci_read_config_byte(pdev, udmat, &udma); in ali_program_modes() 194 udma &= ~(0x0F << shift); in ali_program_modes() 195 udma |= ultra << shift; in ali_program_modes() 196 pci_write_config_byte(pdev, udmat, udma); in ali_program_modes()
|
D | pata_optidma.c | 208 int udma = mode - XFER_UDMA_0; in optiplus_mode_setup() local 219 udslave |= (udma << dev2); in optiplus_mode_setup() 223 udcfg |= (udma << dev2); in optiplus_mode_setup()
|
D | pata_efar.c | 181 unsigned int udma = adev->dma_mode - XFER_UDMA_0; in efar_set_dmamode() local 189 udma_timing |= udma << (4 * devid); in efar_set_dmamode()
|
D | ata_piix.c | 678 unsigned int udma = speed - XFER_UDMA_0; in do_pata_set_dmamode() local 694 u_speed = min(2 - (udma & 1), udma); in do_pata_set_dmamode() 695 if (udma == 5) in do_pata_set_dmamode() 697 else if (udma > 2) in do_pata_set_dmamode()
|
/drivers/ide/ |
D | amd74xx.c | 66 case ATA_UDMA2: t = timing->udma ? (0xc0 | (clamp_val(timing->udma, 2, 5) - 2)) : 0x03; break; in amd_set_speed() 67 …case ATA_UDMA4: t = timing->udma ? (0xc0 | amd_cyc2udma[clamp_val(timing->udma, 2, 10)]) : 0x03; b… in amd_set_speed() 68 …case ATA_UDMA5: t = timing->udma ? (0xc0 | amd_cyc2udma[clamp_val(timing->udma, 1, 10)]) : 0x03; b… in amd_set_speed() 69 …case ATA_UDMA6: t = timing->udma ? (0xc0 | amd_cyc2udma[clamp_val(timing->udma, 1, 15)]) : 0x03; b… in amd_set_speed() 73 if (timing->udma) in amd_set_speed() 101 if (speed == XFER_UDMA_5 && amd_clock <= 33333) t.udma = 1; in amd_set_drive() 102 if (speed == XFER_UDMA_6 && amd_clock <= 33333) t.udma = 15; in amd_set_drive() 200 #define DECLARE_AMD_DEV(swdma, udma) \ argument 210 .udma_mask = udma, \ 213 #define DECLARE_NV_DEV(udma) \ argument [all …]
|
D | it821x.c | 83 u16 udma[2]; /* Cached UDMA values (per drive) */ member 216 if(pair && itdev->udma[1-unit] != UDMA_OFF) { in it821x_clock_strategy() 217 it821x_program_udma(pair, itdev->udma[1-unit]); in it821x_clock_strategy() 224 if(itdev->udma[unit] != UDMA_OFF) { in it821x_clock_strategy() 225 it821x_program_udma(drive, itdev->udma[unit]); in it821x_clock_strategy() 294 itdev->udma[unit] = UDMA_OFF; in it821x_tune_mwdma() 325 static u16 udma[] = { 0x4433, 0x4231, 0x3121, 0x2121, 0x1111, 0x2211, 0x1111 }; in it821x_tune_udma() local 331 itdev->udma[unit] = udma[mode_wanted]; in it821x_tune_udma() 333 itdev->udma[unit] |= 0x8080; /* UDMA 5/6 select on */ in it821x_tune_udma() 344 it821x_program_udma(drive, itdev->udma[unit]); in it821x_tune_udma() [all …]
|
D | via82cxxx.c | 145 case ATA_UDMA2: t = timing->udma ? (0xe0 | (clamp_val(timing->udma, 2, 5) - 2)) : 0x03; break; in via_set_speed() 146 case ATA_UDMA4: t = timing->udma ? (0xe8 | (clamp_val(timing->udma, 2, 9) - 2)) : 0x0f; break; in via_set_speed() 147 case ATA_UDMA5: t = timing->udma ? (0xe0 | (clamp_val(timing->udma, 2, 9) - 2)) : 0x07; break; in via_set_speed() 148 case ATA_UDMA6: t = timing->udma ? (0xe0 | (clamp_val(timing->udma, 2, 9) - 2)) : 0x07; break; in via_set_speed() 160 if (timing->udma) { in via_set_speed()
|
D | piix.c | 159 u8 udma = speed - XFER_UDMA_0; in piix_set_dma_mode() local 161 u_speed = min_t(u8, 2 - (udma & 1), udma) << (drive->dn * 4); in piix_set_dma_mode() 322 #define DECLARE_PIIX_DEV(udma) \ argument 331 .udma_mask = udma, \ 334 #define DECLARE_ICH_DEV(mwdma, udma) \ argument 344 .udma_mask = udma, \
|
D | ide-timings.c | 119 q->udma = EZ(t->udma * 1000, UT); in ide_timing_quantize() 140 m->udma = max(a->udma, b->udma); in ide_timing_merge()
|
D | alim15x3.c | 70 u8 unit = drive->dn & 1, udma; in ali_program_timings() local 74 pci_read_config_byte(dev, udmat, &udma); in ali_program_timings() 75 udma &= ~(0x0F << shift); in ali_program_timings() 76 udma |= ultra << shift; in ali_program_timings() 77 pci_write_config_byte(dev, udmat, udma); in ali_program_timings()
|
D | it8213.c | 103 u8 udma = speed - XFER_UDMA_0; in it8213_set_dma_mode() local 105 u_speed = min_t(u8, 2 - (udma & 1), udma) << (drive->dn * 4); in it8213_set_dma_mode()
|
D | it8172.c | 93 u8 udma = speed - XFER_UDMA_0; in it8172_set_dma_mode() local 94 u_speed = udma << (drive->dn * 4); in it8172_set_dma_mode()
|
D | pdc202xx_old.c | 258 #define DECLARE_PDC2026X_DEV(udma, sectors) \ argument 268 .udma_mask = udma, \
|