Lines Matching refs:wss_port
35 static long wss_port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; variable
45 module_param_hw_array(wss_port, long, ioport, NULL, 0444);
46 MODULE_PARM_DESC(wss_port, "WSS port # for " CRD_NAME " driver.");
151 static int wss_detect(void __iomem *wss_port) in wss_detect() argument
153 if ((ioread8(wss_port + WSS_PORT_SIGNATURE) & 0x3f) != WSS_SIGNATURE) in wss_detect()
159 static void wss_set_config(void __iomem *wss_port, u8 wss_config) in wss_set_config() argument
161 iowrite8(wss_config, wss_port + WSS_PORT_CONFIG); in wss_set_config()
184 void __iomem *wss_port; member
220 switch (wss_port[n]) { in snd_galaxy_match()
237 dev_err(dev, "invalid WSS port %#lx\n", wss_port[n]); in snd_galaxy_match()
458 err = wss_detect(galaxy->wss_port); in galaxy_wss_config()
462 wss_set_config(galaxy->wss_port, wss_config); in galaxy_wss_config()
475 if (galaxy->wss_port) { in snd_galaxy_free()
476 wss_set_config(galaxy->wss_port, 0); in snd_galaxy_free()
477 ioport_unmap(galaxy->wss_port); in snd_galaxy_free()
536 galaxy->res_wss_port = request_region(wss_port[n], 4, DRV_NAME); in snd_galaxy_probe()
538 dev_err(dev, "could not grab ports %#lx-%#lx\n", wss_port[n], in snd_galaxy_probe()
539 wss_port[n] + 3); in snd_galaxy_probe()
543 galaxy->wss_port = ioport_map(wss_port[n], 4); in snd_galaxy_probe()
554 card->shortname, port[n], wss_port[n], irq[n], dma1[n], in snd_galaxy_probe()
557 err = snd_wss_create(card, wss_port[n] + 4, -1, irq[n], dma1[n], in snd_galaxy_probe()