Lines Matching refs:w
2067 unsigned short w; in snd_es1968_ac97_reset() local
2081 pci_read_config_word(chip->pci, 0x58, &w); /* something magical with gpio and bus arb. */ in snd_es1968_ac97_reset()
2083 if (w & 1) in snd_es1968_ac97_reset()
2115 for (w = 0;; w++) { in snd_es1968_ac97_reset()
2130 if (w > 10000) { in snd_es1968_ac97_reset()
2137 for (w = 0; w < 10000; w++) { in snd_es1968_ac97_reset()
2184 u16 w; in snd_es1968_chip_init() local
2199 pci_read_config_word(pci, ESM_CONFIG_A, &w); in snd_es1968_chip_init()
2201 w &= ~DMA_CLEAR; /* Clear DMA bits */ in snd_es1968_chip_init()
2202 w &= ~(PIC_SNOOP1 | PIC_SNOOP2); /* Clear Pic Snoop Mode Bits */ in snd_es1968_chip_init()
2203 w &= ~SAFEGUARD; /* Safeguard off */ in snd_es1968_chip_init()
2204 w |= POST_WRITE; /* Posted write */ in snd_es1968_chip_init()
2205 w |= PCI_TIMING; /* PCI timing on */ in snd_es1968_chip_init()
2207 w &= ~SWAP_LR; /* swap left/right in snd_es1968_chip_init()
2210 w &= ~SUBTR_DECODE; /* Subtractive decode off */ in snd_es1968_chip_init()
2212 pci_write_config_word(pci, ESM_CONFIG_A, w); in snd_es1968_chip_init()
2216 pci_read_config_word(pci, ESM_CONFIG_B, &w); in snd_es1968_chip_init()
2218 w &= ~(1 << 15); /* Turn off internal clock multiplier */ in snd_es1968_chip_init()
2220 w &= ~(1 << 14); /* External clock */ in snd_es1968_chip_init()
2222 w &= ~SPDIF_CONFB; /* disable S/PDIF output */ in snd_es1968_chip_init()
2223 w |= HWV_CONFB; /* HWV on */ in snd_es1968_chip_init()
2224 w |= DEBOUNCE; /* Debounce off: easier to push the HW buttons */ in snd_es1968_chip_init()
2225 w &= ~GPIO_CONFB; /* GPIO 4:5 */ in snd_es1968_chip_init()
2226 w |= CHI_CONFB; /* Disconnect from the CHI. Enabling this made a dell 7500 work. */ in snd_es1968_chip_init()
2227 w &= ~IDMA_CONFB; /* IDMA off (undocumented) */ in snd_es1968_chip_init()
2228 w &= ~MIDI_FIX; /* MIDI fix off (undoc) */ in snd_es1968_chip_init()
2229 w &= ~(1 << 1); /* reserved, always write 0 */ in snd_es1968_chip_init()
2230 w &= ~IRQ_TO_ISA; /* IRQ to ISA off (undoc) */ in snd_es1968_chip_init()
2232 pci_write_config_word(pci, ESM_CONFIG_B, w); in snd_es1968_chip_init()
2236 pci_read_config_word(pci, ESM_DDMA, &w); in snd_es1968_chip_init()
2237 w &= ~(1 << 0); in snd_es1968_chip_init()
2238 pci_write_config_word(pci, ESM_DDMA, w); in snd_es1968_chip_init()
2244 pci_read_config_word(pci, ESM_LEGACY_AUDIO_CONTROL, &w); in snd_es1968_chip_init()
2246 w |= ESS_DISABLE_AUDIO; /* Disable Legacy Audio */ in snd_es1968_chip_init()
2247 w &= ~ESS_ENABLE_SERIAL_IRQ; /* Disable SIRQ */ in snd_es1968_chip_init()
2248 w &= ~(0x1f); /* disable mpu irq/io, game port, fm, SB */ in snd_es1968_chip_init()
2250 pci_write_config_word(pci, ESM_LEGACY_AUDIO_CONTROL, w); in snd_es1968_chip_init()
2253 pci_read_config_word(pci, 0x58, &w); in snd_es1968_chip_init()
2254 w|=1<<2; /* Enable 978. */ in snd_es1968_chip_init()
2255 w|=1<<3; /* Turn on 978 hardware volume control. */ in snd_es1968_chip_init()
2256 w&=~(1<<11); /* Turn on 978 mixer volume control. */ in snd_es1968_chip_init()
2257 pci_write_config_word(pci, 0x58, w); in snd_es1968_chip_init()
2344 w = inw(iobase + WC_CONTROL); in snd_es1968_chip_init()
2346 w &= ~0xFA00; /* Seems to be reserved? I don't know */ in snd_es1968_chip_init()
2347 w |= 0xA000; /* reserved... I don't know */ in snd_es1968_chip_init()
2348 w &= ~0x0200; /* Channels 56,57,58,59 as Extra Play,Rec Channel enable in snd_es1968_chip_init()
2350 w |= 0x0100; /* Wave Cache Operation Enabled */ in snd_es1968_chip_init()
2351 w |= 0x0080; /* Channels 60/61 as Placback/Record enabled */ in snd_es1968_chip_init()
2352 w &= ~0x0060; /* Clear Wavtable Size */ in snd_es1968_chip_init()
2353 w |= 0x0020; /* Wavetable Size : 1MB */ in snd_es1968_chip_init()
2355 w &= ~0x000C; /* DMA Stuff? I don't understand what the datasheet means */ in snd_es1968_chip_init()
2357 w &= ~0x0001; /* Test Mode off */ in snd_es1968_chip_init()
2359 outw(w, iobase + WC_CONTROL); in snd_es1968_chip_init()
2363 for (w = 0; w < NR_APU_REGS; w++) in snd_es1968_chip_init()
2364 apu_set_register(chip, i, w, 0); in snd_es1968_chip_init()
2372 unsigned short w; in snd_es1968_start_irq() local
2373 w = ESM_HIRQ_DSIE | ESM_HIRQ_HW_VOLUME; in snd_es1968_start_irq()
2375 w |= ESM_HIRQ_MPU401; in snd_es1968_start_irq()
2376 outb(w, chip->io_port + 0x1A); in snd_es1968_start_irq()
2377 outw(w, chip->io_port + ESM_PORT_HOST_IRQ); in snd_es1968_start_irq()