Searched refs:adev (Results 26 - 50 of 92) sorted by relevance

1234

/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/ata/
H A Dpata_pdc202xx_old.c50 * @adev: ATA device
58 static void pdc202xx_configure_piomode(struct ata_port *ap, struct ata_device *adev, int pio) argument
61 int port = 0x60 + 8 * ap->port_no + 4 * adev->devno;
74 if (ata_pio_need_iordy(adev))
76 if (adev->class == ATA_DEV_ATA)
85 * @adev: ATA device
91 static void pdc202xx_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
93 pdc202xx_configure_piomode(ap, adev, adev->pio_mode - XFER_PIO_0);
99 * @adev
105 pdc202xx_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
159 struct ata_device *adev = qc->dev; local
207 struct ata_device *adev = qc->dev; local
237 pdc2026x_dev_config(struct ata_device *adev) argument
[all...]
H A Dpata_legacy.c262 static void pdc20230_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
265 int pio = adev->pio_mode - XFER_PIO_0;
290 rt &= 0x07 << (3 * adev->devno);
292 rt |= (1 + 3 * pio) << (3 * adev->devno);
356 static void ht6560a_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
362 ata_timing_compute(adev, adev->pio_mode, &t, 20000, 1000);
382 static void ht6560b_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
388 ata_timing_compute(adev, adev
446 opti82c611a_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
522 opti82c46x_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
595 struct ata_device *adev = qc->dev; local
612 qdi6500_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
645 qdi6580dp_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
682 qdi6580_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
718 struct ata_device *adev = qc->dev; local
731 vlb32_data_xfer(struct ata_device *adev, unsigned char *buf, unsigned int buflen, int rw) argument
812 winbond_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
[all...]
H A Dpata_sch.c54 static void sch_set_piomode(struct ata_port *ap, struct ata_device *adev);
55 static void sch_set_dmamode(struct ata_port *ap, struct ata_device *adev);
102 * @adev: ATA device
110 static void sch_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
112 unsigned int pio = adev->pio_mode - XFER_PIO_0;
114 unsigned int port = adev->devno ? D1TIM : D0TIM;
123 if (adev->class == ATA_DEV_ATA)
131 * @adev: ATA device
139 static void sch_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
141 unsigned int dma_mode = adev
[all...]
H A Dpata_cs5530.c49 * @adev: device on the interface
55 static void cs5530_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
70 if (adev->devno)
73 iowrite32(cs5530_pio_timings[format][adev->pio_mode - XFER_PIO_0], base);
79 * @adev: Device being configured
86 static void cs5530_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
95 switch(adev->dma_mode) {
113 if (adev->devno == 0) /* Master */
126 reg |= (1 << (5 + adev->devno));
131 ap->private_data = adev;
147 struct ata_device *adev = qc->dev; local
[all...]
H A Dpata_hpt366.c168 * @adev: ATA device
173 static unsigned long hpt366_filter(struct ata_device *adev, unsigned long mask) argument
175 if (adev->class == ATA_DEV_ATA) {
176 if (hpt_dma_blacklisted(adev, "UDMA", bad_ata33))
178 if (hpt_dma_blacklisted(adev, "UDMA3", bad_ata66_3))
180 if (hpt_dma_blacklisted(adev, "UDMA4", bad_ata66_4))
182 } else if (adev->class == ATA_DEV_ATAPI)
203 static void hpt366_set_mode(struct ata_port *ap, struct ata_device *adev, argument
208 u32 addr = 0x40 + 4 * adev->devno;
240 * @adev
245 hpt366_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
259 hpt366_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
[all...]
H A Dpata_piccolo.c32 static void tosh_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
41 conf |= pio[adev->pio_mode - XFER_PIO_0];
45 static void tosh_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
51 if (adev->dma_mode >= XFER_UDMA_0) {
52 int udma = adev->dma_mode - XFER_UDMA_0;
60 conf |= mwdma[adev->dma_mode - XFER_MW_DMA_0];
H A Dpata_serverworks.c189 * @adev: ATA device
197 static unsigned long serverworks_osb4_filter(struct ata_device *adev, unsigned long mask) argument
199 if (adev->class == ATA_DEV_ATA)
207 * @adev: ATA device
213 static unsigned long serverworks_csb_filter(struct ata_device *adev, unsigned long mask) argument
220 if (adev->class != ATA_DEV_ATA)
224 ata_id_c_string(adev->id, model_num, ATA_ID_PROD, sizeof(model_num));
236 * @adev: ATA device
241 static void serverworks_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
244 int offset = 1 + 2 * ap->port_no - adev
271 serverworks_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
[all...]
H A Dpata_efar.c76 * @adev: um
84 static void efar_set_piomode (struct ata_port *ap, struct ata_device *adev) argument
86 unsigned int pio = adev->pio_mode - XFER_PIO_0;
108 if (ata_pio_need_iordy(adev)) /* PIO 3/4 require IORDY */
111 if (adev->class == ATA_DEV_ATA)
119 if (adev->devno == 0) {
142 udma_enable &= ~(1 << (2 * ap->port_no + adev->devno));
150 * @adev: Device to program
158 static void efar_set_dmamode (struct ata_port *ap, struct ata_device *adev) argument
163 u8 speed = adev
[all...]
H A Dpata_rdc.c92 * @adev: um
100 static void rdc_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
102 unsigned int pio = adev->pio_mode - XFER_PIO_0;
104 unsigned int is_slave = (adev->devno != 0);
121 if (ata_pio_need_iordy(adev))
124 if (adev->class == ATA_DEV_ATA)
162 udma_enable &= ~(1 << (2 * ap->port_no + adev->devno));
169 * @adev: Drive in question
177 static void rdc_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
182 u8 speed = adev
[all...]
H A Dpata_sc1200.c81 * @adev: device on the interface
86 static void sc1200_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
98 int mode = adev->pio_mode - XFER_PIO_0;
103 pci_write_config_dword(pdev, reg + 8 * adev->devno,
110 * @adev: Device being configured
116 static void sc1200_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
133 int mode = adev->dma_mode;
141 if (adev->devno == 0) {
165 struct ata_device *adev = qc->dev; local
169 if (ata_dma_enabled(adev)
[all...]
H A Dpata_it8213.c67 * @adev: Device whose timings we are configuring
75 static void it8213_set_piomode (struct ata_port *ap, struct ata_device *adev) argument
77 unsigned int pio = adev->pio_mode - XFER_PIO_0;
97 if (ata_pio_need_iordy(adev)) /* PIO 3/4 require IORDY */
100 if (adev->class != ATA_DEV_ATA)
106 if (adev->devno == 0) {
131 * @adev: Device to program
140 static void it8213_set_dmamode (struct ata_port *ap, struct ata_device *adev) argument
144 u8 speed = adev->dma_mode;
145 int devid = adev
[all...]
H A Dpata_qdi.c52 static void qdi6500_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
60 ata_timing_compute(adev, adev->pio_mode, &t, 30303, 1000);
71 qdi->clock[adev->devno] = timing;
76 static void qdi6580_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
84 ata_timing_compute(adev, adev->pio_mode, &t, 30303, 1000);
95 qdi->clock[adev->devno] = timing;
100 if (adev->class != ATA_DEV_ATA)
115 struct ata_device *adev local
[all...]
H A Dpata_cmd640.c47 * @adev: ATA device
52 static void cmd640_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
60 int arttim = ARTIM0 + 2 * adev->devno;
61 struct ata_device *pair = ata_dev_pair(adev);
63 if (ata_timing_compute(adev, adev->pio_mode, &t, T, 0) < 0) {
116 timing->reg58[adev->devno] = (t.active << 4) | t.recover;
132 struct ata_device *adev = qc->dev; local
136 if (ap->port_no != 0 && adev->devno != timing->last) {
137 pci_write_config_byte(pdev, DRWTIM23, timing->reg58[adev
[all...]
H A Dpata_cypress.c47 * @adev: ATA device
52 static void cy82c693_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
60 if (ata_timing_compute(adev, adev->pio_mode, &t, T, 1) < 0) {
70 if (adev->devno == 0) {
96 * @adev: ATA device
101 static void cy82c693_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
107 outb(adev->dma_mode - XFER_MW_DMA_0, 0x23);
H A Dpata_ninja32.c53 * @adev: ATA device
59 static void ninja32_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
64 iowrite8(pio_timing[adev->pio_mode - XFER_PIO_0],
66 ap->private_data = adev;
72 struct ata_device *adev = &ap->link.device[device]; local
73 if (ap->private_data != adev) {
76 ninja32_set_piomode(ap, adev);
H A Dpata_pdc2027x.c67 static void pdc2027x_set_piomode(struct ata_port *ap, struct ata_device *adev);
68 static void pdc2027x_set_dmamode(struct ata_port *ap, struct ata_device *adev);
70 static unsigned long pdc2027x_mode_filter(struct ata_device *adev, unsigned long mask);
190 * @adev: device
193 static inline void __iomem *dev_mmio(struct ata_port *ap, struct ata_device *adev, unsigned int offset) argument
195 u8 adj = (adev->devno) ? 0x08 : 0x00;
256 * @adev: ATA device
262 static unsigned long pdc2027x_mode_filter(struct ata_device *adev, unsigned long mask) argument
265 struct ata_device *pair = ata_dev_pair(adev);
267 if (adev
291 pdc2027x_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
334 pdc2027x_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
[all...]
H A Dpata_sil680.c67 static unsigned long sil680_seldev(struct ata_port *ap, struct ata_device *adev, int r) argument
71 base |= adev->devno ? 2 : 0;
98 * @adev: ATA device
105 static void sil680_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
111 unsigned long addr = sil680_seldev(ap, adev, 0x04);
114 int pio = adev->pio_mode - XFER_PIO_0;
116 int port_shift = 4 * adev->devno;
120 struct ata_device *pair = ata_dev_pair(adev);
122 if (pair != NULL && adev->pio_mode > pair->pio_mode)
134 if (ata_pio_need_iordy(adev)) {
152 sil680_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
[all...]
H A Dpata_hpt37x.c272 * @adev: ATA device
277 static unsigned long hpt370_filter(struct ata_device *adev, unsigned long mask) argument
279 if (adev->class == ATA_DEV_ATA) {
280 if (hpt_dma_blacklisted(adev, "UDMA", bad_ata33))
282 if (hpt_dma_blacklisted(adev, "UDMA100", bad_ata100_5))
290 * @adev: ATA device
295 static unsigned long hpt370a_filter(struct ata_device *adev, unsigned long mask) argument
297 if (adev->class == ATA_DEV_ATA) {
298 if (hpt_dma_blacklisted(adev, "UDMA100", bad_ata100_5))
386 static void hpt370_set_mode(struct ata_port *ap, struct ata_device *adev, argument
425 hpt370_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
438 hpt370_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
474 hpt372_set_mode(struct ata_port *ap, struct ata_device *adev, u8 mode) argument
513 hpt372_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
526 hpt372_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
[all...]
H A Dpata_cs5536.c105 * @adev: device on the interface
108 static void cs5536_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
123 struct ata_device *pair = ata_dev_pair(adev);
124 int mode = adev->pio_mode - XFER_PIO_0;
126 int dshift = adev->devno ? IDE_D1_SHIFT : IDE_D0_SHIFT;
127 int cshift = adev->devno ? IDE_CAST_D1_SHIFT : IDE_CAST_D0_SHIFT;
157 * @adev: Device being configured
161 static void cs5536_set_dmamode(struct ata_port *ap, struct ata_device *adev) argument
173 int mode = adev->dma_mode;
174 int dshift = adev
[all...]
H A Dpata_ns87415.c42 * @adev: Device whose timings we are configuring
53 static void ns87415_set_mode(struct ata_port *ap, struct ata_device *adev, u8 mode) argument
56 int unit = 2 * ap->port_no + adev->devno;
67 ata_timing_compute(adev, adev->pio_mode, &t, T, 0);
78 if (mode >= XFER_MW_DMA_0 || !ata_pio_need_iordy(adev))
100 * @adev: Device to program
108 static void ns87415_set_piomode(struct ata_port *ap, struct ata_device *adev) argument
110 ns87415_set_mode(ap, adev, adev
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/oss/
H A Dvidc.c341 struct audio_operations *adev = audio_devs[dev]; local
344 adev->dmap_out->flags |= DMA_NODMA;
364 struct audio_operations *adev = audio_devs[dev]; local
367 if (!(adev->dmap_out->flags & DMA_ACTIVE)) {
373 adev->dmap_out->flags |= DMA_ACTIVE;
443 int i, adev; local
449 adev = sound_install_audiodrv(AUDIO_DRIVER_VERSION, name,
454 if (adev < 0)
460 audio_devs[adev]->min_fragment = 10;
461 audio_devs[adev]
521 int i, adev = vidc_adev; local
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/rtc/
H A Drtc-pl031.c347 static int pl031_remove(struct amba_device *adev) argument
349 struct pl031_local *ldata = dev_get_drvdata(&adev->dev);
351 amba_set_drvdata(adev, NULL);
352 free_irq(adev->irq[0], ldata->rtc);
356 amba_release_regions(adev);
361 static int pl031_probe(struct amba_device *adev, struct amba_id *id) argument
367 ret = amba_request_regions(adev, NULL);
377 ldata->base = ioremap(adev->res.start, resource_size(&adev->res));
384 amba_set_drvdata(adev, ldat
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/dma/ppc4xx/
H A Dadma.c66 [PPC_ADMA_INIT_ALLOC] = "failed to allocate memory for adev "
4153 static void ppc440spe_adma_init_capabilities(struct ppc440spe_adma_device *adev) argument
4155 switch (adev->id) {
4158 dma_cap_set(DMA_MEMCPY, adev->common.cap_mask);
4159 dma_cap_set(DMA_INTERRUPT, adev->common.cap_mask);
4160 dma_cap_set(DMA_MEMSET, adev->common.cap_mask);
4161 dma_cap_set(DMA_PQ, adev->common.cap_mask);
4162 dma_cap_set(DMA_PQ_VAL, adev->common.cap_mask);
4163 dma_cap_set(DMA_XOR_VAL, adev->common.cap_mask);
4166 dma_cap_set(DMA_XOR, adev
4256 ppc440spe_adma_setup_irqs(struct ppc440spe_adma_device *adev, struct ppc440spe_adma_chan *chan, int *initcode) argument
4363 ppc440spe_adma_release_irqs(struct ppc440spe_adma_device *adev, struct ppc440spe_adma_chan *chan) argument
4401 struct ppc440spe_adma_device *adev; local
4630 struct ppc440spe_adma_device *adev = dev_get_drvdata(&ofdev->dev); local
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/virt/kvm/
H A Dassigned-dev.c628 struct kvm_assigned_dev_kernel *adev; local
632 adev = kvm_find_assigned_dev(&kvm->arch.assigned_dev_head,
634 if (!adev) {
639 if (adev->entries_nr == 0) {
640 adev->entries_nr = entry_nr->entry_nr;
641 if (adev->entries_nr == 0 ||
642 adev->entries_nr >= KVM_MAX_MSIX_PER_DEV) {
647 adev->host_msix_entries = kzalloc(sizeof(struct msix_entry) *
650 if (!adev->host_msix_entries) {
654 adev
673 struct kvm_assigned_dev_kernel *adev; local
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/spi/
H A Damba-pl022.c334 * @adev: AMBA device model hookup
358 struct amba_device *adev; member in struct:pl022
504 amba_pclk_disable(pl022->adev);
515 dev_dbg(&pl022->adev->dev, "flush\n");
655 dev_dbg(&pl022->adev->dev,
781 dev_err(&pl022->adev->dev,
799 dev_err(&pl022->adev->dev,
802 dev_err(&pl022->adev->dev,
805 dev_err(&pl022->adev->dev,
845 dev_warn(&pl022->adev
1719 pl022_probe(struct amba_device *adev, struct amba_id *id) argument
1834 pl022_remove(struct amba_device *adev) argument
1863 pl022_suspend(struct amba_device *adev, pm_message_t state) argument
1881 pl022_resume(struct amba_device *adev) argument
[all...]

Completed in 99 milliseconds

1234