Searched refs:udma (Results 1 - 25 of 33) sorted by relevance

12

/drivers/media/video/ivtv/
H A Divtv-udma.h38 pci_dma_sync_single_for_device(itv->pdev, itv->udma.SG_handle,
39 sizeof(itv->udma.SGarray), PCI_DMA_TODEVICE);
44 pci_dma_sync_single_for_cpu(itv->pdev, itv->udma.SG_handle,
45 sizeof(itv->udma.SGarray), PCI_DMA_TODEVICE);
H A Divtv-udma.c24 #include "ivtv-udma.h"
94 if (itv->udma.SG_handle == 0) {
96 itv->udma.SG_handle = pci_map_single(itv->pdev, itv->udma.SGarray,
97 sizeof(itv->udma.SGarray), PCI_DMA_TODEVICE);
106 struct ivtv_user_dma *dma = &itv->udma;
169 struct ivtv_user_dma *dma = &itv->udma;
198 if (itv->udma.SG_handle) {
199 pci_unmap_single(itv->pdev, itv->udma.SG_handle,
200 sizeof(itv->udma
[all...]
H A DMakefile4 ivtv-mailbox.o ivtv-queue.o ivtv-streams.o ivtv-udma.o \
H A Divtv-firmware.c291 mutex_lock(&itv->udma.lock);
295 mutex_unlock(&itv->udma.lock);
329 mutex_unlock(&itv->udma.lock);
H A Divtvfb.c54 #include "ivtv-udma.h"
291 mutex_lock(&itv->udma.lock);
294 mutex_unlock(&itv->udma.lock);
297 size_in_bytes, itv->udma.page_count);
304 size_in_bytes, itv->udma.page_count);
324 mutex_unlock(&itv->udma.lock);
/drivers/ide/
H A Damd74xx.c66 case ATA_UDMA2: t = timing->udma ? (0xc0 | (clamp_val(timing->udma, 2, 5) - 2)) : 0x03; break;
67 case ATA_UDMA4: t = timing->udma ? (0xc0 | amd_cyc2udma[clamp_val(timing->udma, 2, 10)]) : 0x03; break;
68 case ATA_UDMA5: t = timing->udma ? (0xc0 | amd_cyc2udma[clamp_val(timing->udma, 1, 10)]) : 0x03; break;
69 case ATA_UDMA6: t = timing->udma ? (0xc0 | amd_cyc2udma[clamp_val(timing->udma, 1, 15)]) : 0x03; break;
73 if (timing->udma)
101 if (speed == XFER_UDMA_5 && amd_clock <= 33333) t.udma
[all...]
H A Dit821x.c83 u16 udma[2]; /* Cached UDMA values (per drive) */ member in struct:it821x_dev
216 if(pair && itdev->udma[1-unit] != UDMA_OFF) {
217 it821x_program_udma(pair, itdev->udma[1-unit]);
224 if(itdev->udma[unit] != UDMA_OFF) {
225 it821x_program_udma(drive, itdev->udma[unit]);
294 itdev->udma[unit] = UDMA_OFF;
325 static u16 udma[] = { 0x4433, 0x4231, 0x3121, 0x2121, 0x1111, 0x2211, 0x1111 }; local
331 itdev->udma[unit] = udma[mode_wanted];
333 itdev->udma[uni
[all...]
H A Dvia82cxxx.c145 case ATA_UDMA2: t = timing->udma ? (0xe0 | (clamp_val(timing->udma, 2, 5) - 2)) : 0x03; break;
146 case ATA_UDMA4: t = timing->udma ? (0xe8 | (clamp_val(timing->udma, 2, 9) - 2)) : 0x0f; break;
147 case ATA_UDMA5: t = timing->udma ? (0xe0 | (clamp_val(timing->udma, 2, 9) - 2)) : 0x07; break;
148 case ATA_UDMA6: t = timing->udma ? (0xe0 | (clamp_val(timing->udma, 2, 9) - 2)) : 0x07; break;
160 if (timing->udma) {
H A Dide-timings.c119 q->udma = EZ(t->udma * 1000, UT);
140 m->udma = max(a->udma, b->udma);
H A Dpiix.c159 u8 udma = speed - XFER_UDMA_0; local
161 u_speed = min_t(u8, 2 - (udma & 1), udma) << (drive->dn * 4);
322 #define DECLARE_PIIX_DEV(udma) \
331 .udma_mask = udma, \
334 #define DECLARE_ICH_DEV(mwdma, udma) \
344 .udma_mask = udma, \
361 DECLARE_PIIX_DEV(0x00), /* no udma */
H A Dit8172.c93 u8 udma = speed - XFER_UDMA_0; local
94 u_speed = udma << (drive->dn * 4);
H A Dit8213.c103 u8 udma = speed - XFER_UDMA_0; local
105 u_speed = min_t(u8, 2 - (udma & 1), udma) << (drive->dn * 4);
H A Dalim15x3.c70 u8 unit = drive->dn & 1, udma; local
74 pci_read_config_byte(dev, udmat, &udma);
75 udma &= ~(0x0F << shift);
76 udma |= ultra << shift;
77 pci_write_config_byte(dev, udmat, udma);
263 * Note 2: if no udma 66 device, the detection may "error".
H A Dpdc202xx_old.c259 #define DECLARE_PDC2026X_DEV(udma, sectors) \
269 .udma_mask = udma, \
H A Dpdc202xx_new.c455 #define DECLARE_PDCNEW_DEV(udma) \
465 .udma_mask = udma, \
/drivers/ata/
H A Dpata_amd.c77 if (speed == XFER_UDMA_5 && amd_clock <= 33333) at.udma = 1;
78 if (speed == XFER_UDMA_6 && amd_clock <= 33333) at.udma = 15;
99 t = at.udma ? (0xc0 | (clamp_val(at.udma, 2, 5) - 2)) : 0x03;
103 t = at.udma ? (0xc0 | amd_cyc2udma[clamp_val(at.udma, 2, 10)]) : 0x03;
107 t = at.udma ? (0xc0 | amd_cyc2udma[clamp_val(at.udma, 1, 10)]) : 0x03;
111 t = at.udma ? (0xc0 | amd_cyc2udma[clamp_val(at.udma,
276 u32 saved_udma, udma; local
385 u32 udma = (unsigned long)host->private_data; local
568 u32 udma; local
[all...]
H A Dpata_piccolo.c52 int udma = adev->dma_mode - XFER_UDMA_0; local
54 conf |= (udma + 2) << 28;
55 conf |= (2 - udma) * 0x111; /* spread into three nibbles */
H A Dpata_it821x.c96 u16 udma[2]; /* Cached UDMA values (per drive) */ member in struct:it821x_dev
233 if (pair && itdev->udma[1-unit] != UDMA_OFF) {
234 it821x_program_udma(ap, pair, itdev->udma[1-unit]);
241 if (itdev->udma[unit] != UDMA_OFF) {
242 it821x_program_udma(ap, adev, itdev->udma[unit]);
290 static const u16 udma[] = { 0x4433, 0x4231, 0x3121, 0x2121, 0x1111, 0x2211, 0x1111 }; local
305 itdev->udma[unit] = udma[mode_wanted];
307 itdev->udma[unit] |= 0x8080; /* UDMA 5/6 select on */
317 it821x_program_udma(ap, adev, itdev->udma[uni
[all...]
H A Dpata_it8213.c159 unsigned int udma = adev->dma_mode - XFER_UDMA_0; local
165 u_speed = min(2 - (udma & 1), udma);
166 if (udma > 4)
168 else if (udma > 2)
H A Dpata_atiixp.c39 u8 udma; local
43 pci_read_config_byte(pdev, ATIIXP_IDE_UDMA_MODE + ap->port_no, &udma);
44 if ((udma & 0x07) >= 0x04 || (udma & 0x70) >= 0x40)
H A Dpata_rdc.c207 unsigned int udma = adev->dma_mode - XFER_UDMA_0; local
219 u_speed = min(2 - (udma & 1), udma);
220 if (udma == 5)
222 else if (udma > 2)
H A Dpata_via.c298 ut = t.udma ? (0xe0 | (clamp_val(t.udma, 2, 5) - 2)) : 0x03;
301 ut = t.udma ? (0xe8 | (clamp_val(t.udma, 2, 9) - 2)) : 0x0f;
304 ut = t.udma ? (0xe0 | (clamp_val(t.udma, 2, 9) - 2)) : 0x07;
307 ut = t.udma ? (0xe0 | (clamp_val(t.udma, 2, 9) - 2)) : 0x07;
320 if (t.udma) {
H A Dpata_ali.c178 u8 udma; local
193 pci_read_config_byte(pdev, udmat, &udma);
194 udma &= ~(0x0F << shift);
195 udma |= ultra << shift;
196 pci_write_config_byte(pdev, udmat, udma);
H A Dpata_optidma.c208 int udma = mode - XFER_UDMA_0; local
219 udslave |= (udma << dev2);
223 udcfg |= (udma << dev2);
H A Dpata_efar.c181 unsigned int udma = adev->dma_mode - XFER_UDMA_0; local
189 udma_timing |= udma << (4 * devid);

Completed in 218 milliseconds

12