udma 672 drivers/ata/ata_piix.c unsigned int udma = speed - XFER_UDMA_0; udma 688 drivers/ata/ata_piix.c u_speed = min(2 - (udma & 1), udma); udma 689 drivers/ata/ata_piix.c if (udma == 5) udma 691 drivers/ata/ata_piix.c else if (udma > 2) udma 3235 drivers/ata/libata-core.c q->udma = EZ(t->udma, UT); udma 3249 drivers/ata/libata-core.c if (what & ATA_TIMING_UDMA ) m->udma = max(a->udma, b->udma); udma 3380 drivers/ata/libata-core.c this_cycle = t->udma; udma 147 drivers/ata/pata_acpi.c acpi->gtm.drive[unit].dma = t->udma; udma 178 drivers/ata/pata_ali.c u8 udma; udma 193 drivers/ata/pata_ali.c pci_read_config_byte(pdev, udmat, &udma); udma 194 drivers/ata/pata_ali.c udma &= ~(0x0F << shift); udma 195 drivers/ata/pata_ali.c udma |= ultra << shift; udma 196 drivers/ata/pata_ali.c pci_write_config_byte(pdev, udmat, udma); udma 77 drivers/ata/pata_amd.c if (speed == XFER_UDMA_5 && amd_clock <= 33333) at.udma = 1; udma 78 drivers/ata/pata_amd.c if (speed == XFER_UDMA_6 && amd_clock <= 33333) at.udma = 15; udma 99 drivers/ata/pata_amd.c t = at.udma ? (0xc0 | (clamp_val(at.udma, 2, 5) - 2)) : 0x03; udma 103 drivers/ata/pata_amd.c t = at.udma ? (0xc0 | amd_cyc2udma[clamp_val(at.udma, 2, 10)]) : 0x03; udma 107 drivers/ata/pata_amd.c t = at.udma ? (0xc0 | amd_cyc2udma[clamp_val(at.udma, 1, 10)]) : 0x03; udma 111 drivers/ata/pata_amd.c t = at.udma ? (0xc0 | amd_cyc2udma[clamp_val(at.udma, 1, 15)]) : 0x03; udma 119 drivers/ata/pata_amd.c if (at.udma) udma 276 drivers/ata/pata_amd.c u32 saved_udma, udma; udma 281 drivers/ata/pata_amd.c udma = saved_udma = (unsigned long)ap->host->private_data; udma 284 drivers/ata/pata_amd.c udma >>= 16; udma 286 drivers/ata/pata_amd.c udma >>= 8; udma 288 drivers/ata/pata_amd.c if ((udma & 0xc0) == 0xc0) udma 289 drivers/ata/pata_amd.c bios_limit = ata_pack_xfermask(0, 0, udma_mask_map[udma & 0x7]); udma 385 drivers/ata/pata_amd.c u32 udma = (unsigned long)host->private_data; udma 388 drivers/ata/pata_amd.c pci_write_config_dword(to_pci_dev(host->dev), 0x60, udma); udma 568 drivers/ata/pata_amd.c u32 udma; udma 570 drivers/ata/pata_amd.c pci_read_config_dword(pdev, 0x60, &udma); udma 571 drivers/ata/pata_amd.c hpriv = (void *)(unsigned long)udma; udma 52 drivers/ata/pata_atiixp.c u8 udma; udma 59 drivers/ata/pata_atiixp.c pci_read_config_byte(pdev, ATIIXP_IDE_UDMA_MODE + ap->port_no, &udma); udma 60 drivers/ata/pata_atiixp.c if ((udma & 0x07) >= 0x04 || (udma & 0x70) >= 0x40) udma 181 drivers/ata/pata_efar.c unsigned int udma = adev->dma_mode - XFER_UDMA_0; udma 189 drivers/ata/pata_efar.c udma_timing |= udma << (4 * devid); udma 159 drivers/ata/pata_it8213.c unsigned int udma = adev->dma_mode - XFER_UDMA_0; udma 165 drivers/ata/pata_it8213.c u_speed = min(2 - (udma & 1), udma); udma 166 drivers/ata/pata_it8213.c if (udma > 4) udma 168 drivers/ata/pata_it8213.c else if (udma > 2) udma 95 drivers/ata/pata_it821x.c u16 udma[2]; /* Cached UDMA values (per drive) */ udma 232 drivers/ata/pata_it821x.c if (pair && itdev->udma[1-unit] != UDMA_OFF) { udma 233 drivers/ata/pata_it821x.c it821x_program_udma(ap, pair, itdev->udma[1-unit]); udma 240 drivers/ata/pata_it821x.c if (itdev->udma[unit] != UDMA_OFF) { udma 241 drivers/ata/pata_it821x.c it821x_program_udma(ap, adev, itdev->udma[unit]); udma 289 drivers/ata/pata_it821x.c static const u16 udma[] = { 0x4433, 0x4231, 0x3121, 0x2121, 0x1111, 0x2211, 0x1111 }; udma 304 drivers/ata/pata_it821x.c itdev->udma[unit] = udma[mode_wanted]; udma 306 drivers/ata/pata_it821x.c itdev->udma[unit] |= 0x8080; /* UDMA 5/6 select on */ udma 316 drivers/ata/pata_it821x.c it821x_program_udma(ap, adev, itdev->udma[unit]); udma 323 drivers/ata/pata_it821x.c itdev->udma[unit] = UDMA_OFF; udma 354 drivers/ata/pata_it821x.c else if (itdev->udma[unit] != UDMA_OFF && itdev->timing10) udma 355 drivers/ata/pata_it821x.c it821x_program_udma(ap, adev, itdev->udma[unit]); udma 208 drivers/ata/pata_optidma.c int udma = mode - XFER_UDMA_0; udma 219 drivers/ata/pata_optidma.c udslave |= (udma << dev2); udma 223 drivers/ata/pata_optidma.c udcfg |= (udma << dev2); udma 51 drivers/ata/pata_piccolo.c int udma = adev->dma_mode - XFER_UDMA_0; udma 53 drivers/ata/pata_piccolo.c conf |= (udma + 2) << 28; udma 54 drivers/ata/pata_piccolo.c conf |= (2 - udma) * 0x111; /* spread into three nibbles */ udma 193 drivers/ata/pata_rdc.c unsigned int udma = adev->dma_mode - XFER_UDMA_0; udma 205 drivers/ata/pata_rdc.c u_speed = min(2 - (udma & 1), udma); udma 206 drivers/ata/pata_rdc.c if (udma == 5) udma 208 drivers/ata/pata_rdc.c else if (udma > 2) udma 298 drivers/ata/pata_via.c ut = t.udma ? (0xe0 | (clamp_val(t.udma, 2, 5) - 2)) : 0x03; udma 301 drivers/ata/pata_via.c ut = t.udma ? (0xe8 | (clamp_val(t.udma, 2, 9) - 2)) : 0x0f; udma 304 drivers/ata/pata_via.c ut = t.udma ? (0xe0 | (clamp_val(t.udma, 2, 9) - 2)) : 0x07; udma 307 drivers/ata/pata_via.c ut = t.udma ? (0xe0 | (clamp_val(t.udma, 2, 9) - 2)) : 0x07; udma 320 drivers/ata/pata_via.c if (t.udma) { udma 70 drivers/ide/alim15x3.c u8 unit = drive->dn & 1, udma; udma 74 drivers/ide/alim15x3.c pci_read_config_byte(dev, udmat, &udma); udma 75 drivers/ide/alim15x3.c udma &= ~(0x0F << shift); udma 76 drivers/ide/alim15x3.c udma |= ultra << shift; udma 77 drivers/ide/alim15x3.c pci_write_config_byte(dev, udmat, udma); udma 62 drivers/ide/amd74xx.c case ATA_UDMA2: t = timing->udma ? (0xc0 | (clamp_val(timing->udma, 2, 5) - 2)) : 0x03; break; udma 63 drivers/ide/amd74xx.c case ATA_UDMA4: t = timing->udma ? (0xc0 | amd_cyc2udma[clamp_val(timing->udma, 2, 10)]) : 0x03; break; udma 64 drivers/ide/amd74xx.c case ATA_UDMA5: t = timing->udma ? (0xc0 | amd_cyc2udma[clamp_val(timing->udma, 1, 10)]) : 0x03; break; udma 65 drivers/ide/amd74xx.c case ATA_UDMA6: t = timing->udma ? (0xc0 | amd_cyc2udma[clamp_val(timing->udma, 1, 15)]) : 0x03; break; udma 69 drivers/ide/amd74xx.c if (timing->udma) udma 97 drivers/ide/amd74xx.c if (speed == XFER_UDMA_5 && amd_clock <= 33333) t.udma = 1; udma 98 drivers/ide/amd74xx.c if (speed == XFER_UDMA_6 && amd_clock <= 33333) t.udma = 15; udma 196 drivers/ide/amd74xx.c #define DECLARE_AMD_DEV(swdma, udma) \ udma 206 drivers/ide/amd74xx.c .udma_mask = udma, \ udma 209 drivers/ide/amd74xx.c #define DECLARE_NV_DEV(udma) \ udma 219 drivers/ide/amd74xx.c .udma_mask = udma, \ udma 106 drivers/ide/ide-timings.c q->udma = EZ(t->udma, UT); udma 127 drivers/ide/ide-timings.c m->udma = max(a->udma, b->udma); udma 93 drivers/ide/it8172.c u8 udma = speed - XFER_UDMA_0; udma 94 drivers/ide/it8172.c u_speed = udma << (drive->dn * 4); udma 104 drivers/ide/it8213.c u8 udma = speed - XFER_UDMA_0; udma 106 drivers/ide/it8213.c u_speed = min_t(u8, 2 - (udma & 1), udma) << (drive->dn * 4); udma 83 drivers/ide/it821x.c u16 udma[2]; /* Cached UDMA values (per drive) */ udma 216 drivers/ide/it821x.c if(pair && itdev->udma[1-unit] != UDMA_OFF) { udma 217 drivers/ide/it821x.c it821x_program_udma(pair, itdev->udma[1-unit]); udma 224 drivers/ide/it821x.c if(itdev->udma[unit] != UDMA_OFF) { udma 225 drivers/ide/it821x.c it821x_program_udma(drive, itdev->udma[unit]); udma 294 drivers/ide/it821x.c itdev->udma[unit] = UDMA_OFF; udma 325 drivers/ide/it821x.c static u16 udma[] = { 0x4433, 0x4231, 0x3121, 0x2121, 0x1111, 0x2211, 0x1111 }; udma 331 drivers/ide/it821x.c itdev->udma[unit] = udma[mode_wanted]; udma 333 drivers/ide/it821x.c itdev->udma[unit] |= 0x8080; /* UDMA 5/6 select on */ udma 344 drivers/ide/it821x.c it821x_program_udma(drive, itdev->udma[unit]); udma 369 drivers/ide/it821x.c else if(itdev->udma[unit] != UDMA_OFF && itdev->timing10) udma 370 drivers/ide/it821x.c it821x_program_udma(drive, itdev->udma[unit]); udma 450 drivers/ide/pdc202xx_new.c #define DECLARE_PDCNEW_DEV(udma) \ udma 460 drivers/ide/pdc202xx_new.c .udma_mask = udma, \ udma 259 drivers/ide/pdc202xx_old.c #define DECLARE_PDC2026X_DEV(udma, sectors) \ udma 269 drivers/ide/pdc202xx_old.c .udma_mask = udma, \ udma 159 drivers/ide/piix.c u8 udma = speed - XFER_UDMA_0; udma 161 drivers/ide/piix.c u_speed = min_t(u8, 2 - (udma & 1), udma) << (drive->dn * 4); udma 322 drivers/ide/piix.c #define DECLARE_PIIX_DEV(udma) \ udma 331 drivers/ide/piix.c .udma_mask = udma, \ udma 334 drivers/ide/piix.c #define DECLARE_ICH_DEV(mwdma, udma) \ udma 344 drivers/ide/piix.c .udma_mask = udma, \ udma 610 drivers/ide/pmac.c tr = kauai_lookup_timing(kauai_udma_timings, (int)t->udma); udma 628 drivers/ide/pmac.c tr = kauai_lookup_timing(shasta_udma133_timings, (int)t->udma); udma 141 drivers/ide/via82cxxx.c case ATA_UDMA2: t = timing->udma ? (0xe0 | (clamp_val(timing->udma, 2, 5) - 2)) : 0x03; break; udma 142 drivers/ide/via82cxxx.c case ATA_UDMA4: t = timing->udma ? (0xe8 | (clamp_val(timing->udma, 2, 9) - 2)) : 0x0f; break; udma 143 drivers/ide/via82cxxx.c case ATA_UDMA5: t = timing->udma ? (0xe0 | (clamp_val(timing->udma, 2, 9) - 2)) : 0x07; break; udma 144 drivers/ide/via82cxxx.c case ATA_UDMA6: t = timing->udma ? (0xe0 | (clamp_val(timing->udma, 2, 9) - 2)) : 0x07; break; udma 156 drivers/ide/via82cxxx.c if (timing->udma) { udma 749 drivers/media/pci/ivtv/ivtv-driver.c mutex_init(&itv->udma.lock); udma 786 drivers/media/pci/ivtv/ivtv-driver.c sg_init_table(itv->udma.SGlist, IVTV_DMA_SG_OSD_ENT); udma 695 drivers/media/pci/ivtv/ivtv-driver.h struct ivtv_user_dma udma; /* user based DMA for OSD */ udma 279 drivers/media/pci/ivtv/ivtv-firmware.c mutex_lock(&itv->udma.lock); udma 283 drivers/media/pci/ivtv/ivtv-firmware.c mutex_unlock(&itv->udma.lock); udma 317 drivers/media/pci/ivtv/ivtv-firmware.c mutex_unlock(&itv->udma.lock); udma 82 drivers/media/pci/ivtv/ivtv-udma.c if (itv->udma.SG_handle == 0) { udma 84 drivers/media/pci/ivtv/ivtv-udma.c itv->udma.SG_handle = pci_map_single(itv->pdev, itv->udma.SGarray, udma 85 drivers/media/pci/ivtv/ivtv-udma.c sizeof(itv->udma.SGarray), PCI_DMA_TODEVICE); udma 94 drivers/media/pci/ivtv/ivtv-udma.c struct ivtv_user_dma *dma = &itv->udma; udma 155 drivers/media/pci/ivtv/ivtv-udma.c struct ivtv_user_dma *dma = &itv->udma; udma 184 drivers/media/pci/ivtv/ivtv-udma.c if (itv->udma.SG_handle) { udma 185 drivers/media/pci/ivtv/ivtv-udma.c pci_unmap_single(itv->pdev, itv->udma.SG_handle, udma 186 drivers/media/pci/ivtv/ivtv-udma.c sizeof(itv->udma.SGarray), PCI_DMA_TODEVICE); udma 190 drivers/media/pci/ivtv/ivtv-udma.c if (itv->udma.SG_length) { udma 191 drivers/media/pci/ivtv/ivtv-udma.c pci_unmap_sg(itv->pdev, itv->udma.SGlist, itv->udma.page_count, PCI_DMA_TODEVICE); udma 195 drivers/media/pci/ivtv/ivtv-udma.c if (itv->udma.bouncemap[i]) udma 196 drivers/media/pci/ivtv/ivtv-udma.c __free_page(itv->udma.bouncemap[i]); udma 203 drivers/media/pci/ivtv/ivtv-udma.c write_reg(itv->udma.SG_handle, IVTV_REG_DECDMAADDR); udma 26 drivers/media/pci/ivtv/ivtv-udma.h pci_dma_sync_single_for_device(itv->pdev, itv->udma.SG_handle, udma 27 drivers/media/pci/ivtv/ivtv-udma.h sizeof(itv->udma.SGarray), PCI_DMA_TODEVICE); udma 32 drivers/media/pci/ivtv/ivtv-udma.h pci_dma_sync_single_for_cpu(itv->pdev, itv->udma.SG_handle, udma 33 drivers/media/pci/ivtv/ivtv-udma.h sizeof(itv->udma.SGarray), PCI_DMA_TODEVICE); udma 1070 drivers/media/pci/ivtv/ivtv-yuv.c mutex_lock(&itv->udma.lock); udma 1072 drivers/media/pci/ivtv/ivtv-yuv.c if ((rc = ivtv_yuv_prep_user_dma(itv, &itv->udma, args)) != 0) { udma 1073 drivers/media/pci/ivtv/ivtv-yuv.c mutex_unlock(&itv->udma.lock); udma 1098 drivers/media/pci/ivtv/ivtv-yuv.c mutex_unlock(&itv->udma.lock); udma 1104 drivers/media/pci/ivtv/ivtv-yuv.c mutex_unlock(&itv->udma.lock); udma 280 drivers/media/pci/ivtv/ivtvfb.c mutex_lock(&itv->udma.lock); udma 283 drivers/media/pci/ivtv/ivtvfb.c mutex_unlock(&itv->udma.lock); udma 285 drivers/media/pci/ivtv/ivtvfb.c size_in_bytes, itv->udma.page_count); udma 292 drivers/media/pci/ivtv/ivtvfb.c size_in_bytes, itv->udma.page_count); udma 312 drivers/media/pci/ivtv/ivtvfb.c mutex_unlock(&itv->udma.lock); udma 1535 include/linux/ide.h u16 udma; /* t2CYCTYP/2 */ udma 1016 include/linux/libata.h unsigned short udma; /* t2CYCTYP/2 */