Lines Matching refs:acard

738 static int snd_als4000_create_gameport(struct snd_card_als4000 *acard, int dev)  in snd_als4000_create_gameport()  argument
749 r = devm_request_region(&acard->pci->dev, io_port, 8, in snd_als4000_create_gameport()
756 r = devm_request_region(&acard->pci->dev, io_port, 8, in snd_als4000_create_gameport()
761 dev_warn(&acard->pci->dev, "cannot reserve joystick ports\n"); in snd_als4000_create_gameport()
765 acard->gameport = gp = gameport_allocate_port(); in snd_als4000_create_gameport()
767 dev_err(&acard->pci->dev, "cannot allocate memory for gameport\n"); in snd_als4000_create_gameport()
772 gameport_set_phys(gp, "pci%s/gameport0", pci_name(acard->pci)); in snd_als4000_create_gameport()
773 gameport_set_dev_parent(gp, &acard->pci->dev); in snd_als4000_create_gameport()
777 snd_als4000_set_addr(acard->iobase, 0, 0, 0, 1); in snd_als4000_create_gameport()
779 gameport_register_port(acard->gameport); in snd_als4000_create_gameport()
784 static void snd_als4000_free_gameport(struct snd_card_als4000 *acard) in snd_als4000_free_gameport() argument
786 if (acard->gameport) { in snd_als4000_free_gameport()
787 gameport_unregister_port(acard->gameport); in snd_als4000_free_gameport()
788 acard->gameport = NULL; in snd_als4000_free_gameport()
791 snd_als4000_set_addr(acard->iobase, 0, 0, 0, 0); in snd_als4000_free_gameport()
795 static inline int snd_als4000_create_gameport(struct snd_card_als4000 *acard, int dev) { return -EN… in snd_als4000_create_gameport() argument
796 static inline void snd_als4000_free_gameport(struct snd_card_als4000 *acard) { } in snd_als4000_free_gameport() argument
801 struct snd_card_als4000 *acard = card->private_data; in snd_card_als4000_free() local
804 snd_als4k_gcr_write_addr(acard->iobase, ALS4K_GCR8C_MISC_CTRL, 0); in snd_card_als4000_free()
806 snd_als4000_free_gameport(acard); in snd_card_als4000_free()
814 struct snd_card_als4000 *acard; in __snd_card_als4000_probe() local
849 sizeof(*acard) /* private_data: acard */, in __snd_card_als4000_probe()
854 acard = card->private_data; in __snd_card_als4000_probe()
855 acard->pci = pci; in __snd_card_als4000_probe()
856 acard->iobase = iobase; in __snd_card_als4000_probe()
860 snd_als4000_set_addr(acard->iobase, 0, 0, 0, 0); in __snd_card_als4000_probe()
873 acard->chip = chip; in __snd_card_als4000_probe()
922 snd_als4000_create_gameport(acard, dev); in __snd_card_als4000_probe()
943 struct snd_card_als4000 *acard = card->private_data; in snd_als4000_suspend() local
944 struct snd_sb *chip = acard->chip; in snd_als4000_suspend()
955 struct snd_card_als4000 *acard = card->private_data; in snd_als4000_resume() local
956 struct snd_sb *chip = acard->chip; in snd_als4000_resume()
963 if (acard->gameport) in snd_als4000_resume()
964 snd_als4000_set_addr(acard->iobase, 0, 0, 0, 1); in snd_als4000_resume()