Searched refs:au1000 (Results 1 - 52 of 52) sorted by relevance

/linux-4.1.27/arch/mips/boot/compressed/
H A Duart-alchemy.c1 #include <asm/mach-au1x00/au1000.h>
/linux-4.1.27/sound/mips/
H A Dau1x00.c32 * au1000.c OSS driver.
48 #include <asm/mach-au1x00/au1000.h>
107 au1000_set_ac97_xmit_slots(struct snd_au1000 *au1000, long xmit_slots) au1000_set_ac97_xmit_slots() argument
111 spin_lock(&au1000->ac97_lock); au1000_set_ac97_xmit_slots()
112 ac97_config = au1000->ac97_ioport->config; au1000_set_ac97_xmit_slots()
115 au1000->ac97_ioport->config = ac97_config; au1000_set_ac97_xmit_slots()
116 spin_unlock(&au1000->ac97_lock); au1000_set_ac97_xmit_slots()
120 au1000_set_ac97_recv_slots(struct snd_au1000 *au1000, long recv_slots) au1000_set_ac97_recv_slots() argument
124 spin_lock(&au1000->ac97_lock); au1000_set_ac97_recv_slots()
125 ac97_config = au1000->ac97_ioport->config; au1000_set_ac97_recv_slots()
128 au1000->ac97_ioport->config = ac97_config; au1000_set_ac97_recv_slots()
129 spin_unlock(&au1000->ac97_lock); au1000_set_ac97_recv_slots()
291 struct snd_au1000 *au1000 = substream->pcm->private_data; snd_au1000_playback_open() local
293 au1000->stream[PLAYBACK]->substream = substream; snd_au1000_playback_open()
294 au1000->stream[PLAYBACK]->buffer = NULL; snd_au1000_playback_open()
295 substream->private_data = au1000->stream[PLAYBACK]; snd_au1000_playback_open()
304 struct snd_au1000 *au1000 = substream->pcm->private_data; snd_au1000_capture_open() local
306 au1000->stream[CAPTURE]->substream = substream; snd_au1000_capture_open()
307 au1000->stream[CAPTURE]->buffer = NULL; snd_au1000_capture_open()
308 substream->private_data = au1000->stream[CAPTURE]; snd_au1000_capture_open()
317 struct snd_au1000 *au1000 = substream->pcm->private_data; snd_au1000_playback_close() local
319 au1000->stream[PLAYBACK]->substream = NULL; snd_au1000_playback_close()
326 struct snd_au1000 *au1000 = substream->pcm->private_data; snd_au1000_capture_close() local
328 au1000->stream[CAPTURE]->substream = NULL; snd_au1000_capture_close()
359 struct snd_au1000 *au1000 = substream->pcm->private_data; snd_au1000_playback_prepare() local
363 au1000_set_ac97_xmit_slots(au1000, AC97_SLOT_4); snd_au1000_playback_prepare()
365 au1000_set_ac97_xmit_slots(au1000, AC97_SLOT_3 | AC97_SLOT_4); snd_au1000_playback_prepare()
366 snd_ac97_set_rate(au1000->ac97, AC97_PCM_FRONT_DAC_RATE, runtime->rate); snd_au1000_playback_prepare()
373 struct snd_au1000 *au1000 = substream->pcm->private_data; snd_au1000_capture_prepare() local
377 au1000_set_ac97_recv_slots(au1000, AC97_SLOT_4); snd_au1000_capture_prepare()
379 au1000_set_ac97_recv_slots(au1000, AC97_SLOT_3 | AC97_SLOT_4); snd_au1000_capture_prepare()
380 snd_ac97_set_rate(au1000->ac97, AC97_PCM_LR_ADC_RATE, runtime->rate); snd_au1000_capture_prepare()
445 snd_au1000_pcm_new(struct snd_au1000 *au1000) snd_au1000_pcm_new() argument
451 if ((err = snd_pcm_new(au1000->card, "AU1000 AC97 PCM", 0, 1, 1, &pcm)) < 0) snd_au1000_pcm_new()
462 pcm->private_data = au1000; snd_au1000_pcm_new()
466 spin_lock_init(&au1000->stream[PLAYBACK]->dma_lock); snd_au1000_pcm_new()
467 spin_lock_init(&au1000->stream[CAPTURE]->dma_lock); snd_au1000_pcm_new()
470 au1000->stream[PLAYBACK]->dma = request_au1000_dma(au1000->dmaid[0], snd_au1000_pcm_new()
472 au1000->stream[PLAYBACK]); snd_au1000_pcm_new()
473 if (au1000->stream[PLAYBACK]->dma < 0) { snd_au1000_pcm_new()
477 au1000->stream[CAPTURE]->dma = request_au1000_dma(au1000->dmaid[1], snd_au1000_pcm_new()
479 au1000->stream[CAPTURE]); snd_au1000_pcm_new()
480 if (au1000->stream[CAPTURE]->dma < 0){ snd_au1000_pcm_new()
485 set_dma_mode(au1000->stream[PLAYBACK]->dma, snd_au1000_pcm_new()
486 get_dma_mode(au1000->stream[PLAYBACK]->dma) & ~DMA_NC); snd_au1000_pcm_new()
487 set_dma_mode(au1000->stream[CAPTURE]->dma, snd_au1000_pcm_new()
488 get_dma_mode(au1000->stream[CAPTURE]->dma) & ~DMA_NC); snd_au1000_pcm_new()
490 au1000->pcm = pcm; snd_au1000_pcm_new()
500 struct snd_au1000 *au1000 = ac97->private_data; snd_au1000_ac97_read() local
505 spin_lock(&au1000->ac97_lock); snd_au1000_ac97_read()
509 if (!(au1000->ac97_ioport->status & AC97C_CP)) snd_au1000_ac97_read()
512 printk(KERN_ERR "au1000 AC97: AC97 command read timeout\n"); snd_au1000_ac97_read()
516 au1000->ac97_ioport->cmd = cmd; snd_au1000_ac97_read()
520 if (!(au1000->ac97_ioport->status & AC97C_CP)) snd_au1000_ac97_read()
523 printk(KERN_ERR "au1000 AC97: AC97 command read timeout\n"); snd_au1000_ac97_read()
524 spin_unlock(&au1000->ac97_lock); snd_au1000_ac97_read()
528 data = au1000->ac97_ioport->cmd & 0xffff; snd_au1000_ac97_read()
529 spin_unlock(&au1000->ac97_lock); snd_au1000_ac97_read()
539 struct snd_au1000 *au1000 = ac97->private_data; snd_au1000_ac97_write() local
543 spin_lock(&au1000->ac97_lock); snd_au1000_ac97_write()
547 if (!(au1000->ac97_ioport->status & AC97C_CP)) snd_au1000_ac97_write()
550 printk(KERN_ERR "au1000 AC97: AC97 command write timeout\n"); snd_au1000_ac97_write()
555 au1000->ac97_ioport->cmd = cmd; snd_au1000_ac97_write()
556 spin_unlock(&au1000->ac97_lock); snd_au1000_ac97_write()
563 struct snd_au1000 *au1000 = card->private_data; snd_au1000_free() local
565 if (au1000->stream[PLAYBACK]) { snd_au1000_free()
566 if (au1000->stream[PLAYBACK]->dma >= 0) snd_au1000_free()
567 free_au1000_dma(au1000->stream[PLAYBACK]->dma); snd_au1000_free()
568 kfree(au1000->stream[PLAYBACK]); snd_au1000_free()
571 if (au1000->stream[CAPTURE]) { snd_au1000_free()
572 if (au1000->stream[CAPTURE]->dma >= 0) snd_au1000_free()
573 free_au1000_dma(au1000->stream[CAPTURE]->dma); snd_au1000_free()
574 kfree(au1000->stream[CAPTURE]); snd_au1000_free()
577 if (au1000->ac97_res_port) { snd_au1000_free()
579 if (au1000->ac97_ioport) { snd_au1000_free()
580 au1000->ac97_ioport->cntrl = AC97C_RS; snd_au1000_free()
581 iounmap(au1000->ac97_ioport); snd_au1000_free()
582 au1000->ac97_ioport = NULL; snd_au1000_free()
584 release_and_free_resource(au1000->ac97_res_port); snd_au1000_free()
585 au1000->ac97_res_port = NULL; snd_au1000_free()
600 struct snd_au1000 *au1000; au1000_ac97_probe() local
609 au1000 = card->private_data; au1000_ac97_probe()
610 au1000->card = card; au1000_ac97_probe()
611 spin_lock_init(&au1000->ac97_lock); au1000_ac97_probe()
623 au1000->dmaid[0] = r->start; au1000_ac97_probe()
632 au1000->dmaid[1] = r->start; au1000_ac97_probe()
634 au1000->stream[PLAYBACK] = kmalloc(sizeof(struct audio_stream), au1000_ac97_probe()
636 if (!au1000->stream[PLAYBACK]) { au1000_ac97_probe()
640 au1000->stream[PLAYBACK]->dma = -1; au1000_ac97_probe()
642 au1000->stream[CAPTURE] = kmalloc(sizeof(struct audio_stream), au1000_ac97_probe()
644 if (!au1000->stream[CAPTURE]) { au1000_ac97_probe()
648 au1000->stream[CAPTURE]->dma = -1; au1000_ac97_probe()
657 au1000->ac97_res_port = request_mem_region(r->start, resource_size(r), au1000_ac97_probe()
659 if (!au1000->ac97_res_port) { au1000_ac97_probe()
668 au1000->ac97_ioport = (struct au1000_ac97_reg *)io; au1000_ac97_probe()
675 au1000->ac97_ioport->cntrl = AC97C_RS | AC97C_CE; au1000_ac97_probe()
677 au1000->ac97_ioport->cntrl = AC97C_CE; au1000_ac97_probe()
681 au1000->ac97_ioport->config = AC97C_RESET; au1000_ac97_probe()
683 au1000->ac97_ioport->config = 0x0; au1000_ac97_probe()
687 err = snd_ac97_bus(au1000->card, 0, &ops, au1000, &pbus); au1000_ac97_probe()
692 ac97.private_data = au1000; au1000_ac97_probe()
693 err = snd_ac97_mixer(pbus, &ac97, &au1000->ac97); au1000_ac97_probe()
697 err = snd_au1000_pcm_new(au1000); au1000_ac97_probe()
727 .name = "au1000-ac97c",
/linux-4.1.27/sound/soc/au1x/
H A Ddb1000.c16 #include <asm/mach-au1x00/au1000.h>
H A Ddb1200.c16 #include <asm/mach-au1x00/au1000.h>
H A Dac97c.c22 #include <asm/mach-au1x00/au1000.h>
H A Ddbdma2.c27 #include <asm/mach-au1x00/au1000.h>
H A Ddma.c19 #include <asm/mach-au1x00/au1000.h>
H A Di2sc.c17 #include <asm/mach-au1x00/au1000.h>
H A Dpsc-ac97.c26 #include <asm/mach-au1x00/au1000.h>
H A Dpsc-i2s.c24 #include <asm/mach-au1x00/au1000.h>
/linux-4.1.27/arch/mips/include/asm/mach-au1x00/
H A Dgpio.h13 #include <asm/mach-au1x00/au1000.h>
14 #include <asm/mach-au1x00/gpio-au1000.h>
H A Dgpio-au1300.h12 #include <asm/mach-au1x00/au1000.h>
H A Dau1000_dma.h117 /* These are in arch/mips/au1000/common/dma.c */
H A Dgpio-au1000.h12 #include <asm/mach-au1x00/au1000.h>
H A Dau1000.h105 * 0..au1000 1..au1500 2..au1100 3..au1550 4..au1200 5..au1300
/linux-4.1.27/arch/mips/alchemy/common/
H A Dvss.c11 #include <asm/mach-au1x00/au1000.h>
H A Dgpiolib.c28 * au1000 SoC have only one GPIO block : GPIO1
38 #include <asm/mach-au1x00/gpio-au1000.h>
H A Dplatform.c24 #include <asm/mach-au1x00/au1000.h>
338 .name = "au1000-eth",
370 .name = "au1000-eth",
H A Dsetup.c34 #include <au1000.h>
H A Dpower.c37 #include <asm/mach-au1x00/au1000.h>
H A Dtime.c42 #include <asm/mach-au1x00/au1000.h>
H A Ddma.c40 #include <asm/mach-au1x00/au1000.h>
H A Dusb.c19 #include <asm/mach-au1x00/au1000.h>
H A Dclock.c43 #include <asm/mach-au1x00/au1000.h>
H A Dirq.c35 #include <asm/mach-au1x00/au1000.h>
H A Ddbdma.c40 #include <asm/mach-au1x00/au1000.h>
/linux-4.1.27/arch/mips/alchemy/devboards/
H A Ddb1xxx.c5 #include <asm/mach-au1x00/au1000.h>
H A Dplatform.c16 #include <asm/mach-au1x00/au1000.h>
H A Dpm.c11 #include <asm/mach-au1x00/au1000.h>
H A Ddb1000.c35 #include <asm/mach-au1x00/au1000.h>
431 .name = "au1000-irda",
H A Ddb1550.c22 #include <asm/mach-au1x00/au1000.h>
H A Ddb1300.c26 #include <asm/mach-au1x00/au1000.h>
H A Ddb1200.c40 #include <asm/mach-au1x00/au1000.h>
/linux-4.1.27/arch/mips/txx9/jmr3927/
H A Dprom.c10 * Based on arch/mips/au1000/common/prom.c
/linux-4.1.27/drivers/rtc/
H A Drtc-au1xxx.c26 #include <asm/mach-au1x00/au1000.h>
/linux-4.1.27/arch/mips/alchemy/
H A Dboard-xxs1500.c32 #include <asm/mach-au1x00/au1000.h>
H A Dboard-gpr.c36 #include <asm/mach-au1x00/au1000.h>
H A Dboard-mtx1.c34 #include <asm/mach-au1x00/au1000.h>
/linux-4.1.27/drivers/watchdog/
H A Dmtx-1_wdt.c53 #include <asm/mach-au1x00/au1000.h>
/linux-4.1.27/drivers/pcmcia/
H A Ddb1xxx_ss.c36 #include <asm/mach-au1x00/au1000.h>
452 * we require the real 36bit addresses (see the au1000.h db1x_pcmcia_socket_probe()
H A Dxxs1500_ss.c24 #include <asm/mach-au1x00/au1000.h>
/linux-4.1.27/drivers/video/fbdev/
H A Dau1100fb.h33 #include <asm/mach-au1x00/au1000.h>
H A Dau1100fb.c58 #include <asm/mach-au1x00/au1000.h>
H A Dau1200fb.c47 #include <asm/mach-au1x00/au1000.h>
/linux-4.1.27/drivers/net/irda/
H A Dau1k_ir.c34 #include <asm/mach-au1x00/au1000.h>
988 .name = "au1000-irda",
/linux-4.1.27/drivers/i2c/busses/
H A Di2c-au1550.c34 #include <asm/mach-au1x00/au1000.h>
/linux-4.1.27/drivers/net/ethernet/amd/
H A Dau1000_eth.c66 #include <au1000.h>
1463 .name = "au1000-eth",
1469 MODULE_ALIAS("platform:au1000-eth");
/linux-4.1.27/drivers/ide/
H A Dau1xxx-ide.c39 #include <asm/mach-au1x00/au1000.h>
/linux-4.1.27/drivers/mtd/nand/
H A Dau1550nd.c21 #include <asm/mach-au1x00/au1000.h>
/linux-4.1.27/arch/mips/pci/
H A Dpci-alchemy.c21 #include <asm/mach-au1x00/au1000.h>
/linux-4.1.27/drivers/spi/
H A Dspi-au1550.c4 * will not work on au1000, au1100 and au1500 (no full spi controller there)
32 #include <asm/mach-au1x00/au1000.h>
/linux-4.1.27/drivers/mmc/host/
H A Dau1xmmc.c48 #include <asm/mach-au1x00/au1000.h>

Completed in 898 milliseconds