Lines Matching refs:w
2053 unsigned short w; in snd_es1968_ac97_reset() local
2067 pci_read_config_word(chip->pci, 0x58, &w); /* something magical with gpio and bus arb. */ in snd_es1968_ac97_reset()
2069 if (w & 1) in snd_es1968_ac97_reset()
2101 for (w = 0;; w++) { in snd_es1968_ac97_reset()
2116 if (w > 10000) { in snd_es1968_ac97_reset()
2123 for (w = 0; w < 10000; w++) { in snd_es1968_ac97_reset()
2170 u16 w; in snd_es1968_chip_init() local
2185 pci_read_config_word(pci, ESM_CONFIG_A, &w); in snd_es1968_chip_init()
2187 w &= ~DMA_CLEAR; /* Clear DMA bits */ in snd_es1968_chip_init()
2188 w &= ~(PIC_SNOOP1 | PIC_SNOOP2); /* Clear Pic Snoop Mode Bits */ in snd_es1968_chip_init()
2189 w &= ~SAFEGUARD; /* Safeguard off */ in snd_es1968_chip_init()
2190 w |= POST_WRITE; /* Posted write */ in snd_es1968_chip_init()
2191 w |= PCI_TIMING; /* PCI timing on */ in snd_es1968_chip_init()
2193 w &= ~SWAP_LR; /* swap left/right in snd_es1968_chip_init()
2196 w &= ~SUBTR_DECODE; /* Subtractive decode off */ in snd_es1968_chip_init()
2198 pci_write_config_word(pci, ESM_CONFIG_A, w); in snd_es1968_chip_init()
2202 pci_read_config_word(pci, ESM_CONFIG_B, &w); in snd_es1968_chip_init()
2204 w &= ~(1 << 15); /* Turn off internal clock multiplier */ in snd_es1968_chip_init()
2206 w &= ~(1 << 14); /* External clock */ in snd_es1968_chip_init()
2208 w &= ~SPDIF_CONFB; /* disable S/PDIF output */ in snd_es1968_chip_init()
2209 w |= HWV_CONFB; /* HWV on */ in snd_es1968_chip_init()
2210 w |= DEBOUNCE; /* Debounce off: easier to push the HW buttons */ in snd_es1968_chip_init()
2211 w &= ~GPIO_CONFB; /* GPIO 4:5 */ in snd_es1968_chip_init()
2212 w |= CHI_CONFB; /* Disconnect from the CHI. Enabling this made a dell 7500 work. */ in snd_es1968_chip_init()
2213 w &= ~IDMA_CONFB; /* IDMA off (undocumented) */ in snd_es1968_chip_init()
2214 w &= ~MIDI_FIX; /* MIDI fix off (undoc) */ in snd_es1968_chip_init()
2215 w &= ~(1 << 1); /* reserved, always write 0 */ in snd_es1968_chip_init()
2216 w &= ~IRQ_TO_ISA; /* IRQ to ISA off (undoc) */ in snd_es1968_chip_init()
2218 pci_write_config_word(pci, ESM_CONFIG_B, w); in snd_es1968_chip_init()
2222 pci_read_config_word(pci, ESM_DDMA, &w); in snd_es1968_chip_init()
2223 w &= ~(1 << 0); in snd_es1968_chip_init()
2224 pci_write_config_word(pci, ESM_DDMA, w); in snd_es1968_chip_init()
2230 pci_read_config_word(pci, ESM_LEGACY_AUDIO_CONTROL, &w); in snd_es1968_chip_init()
2232 w |= ESS_DISABLE_AUDIO; /* Disable Legacy Audio */ in snd_es1968_chip_init()
2233 w &= ~ESS_ENABLE_SERIAL_IRQ; /* Disable SIRQ */ in snd_es1968_chip_init()
2234 w &= ~(0x1f); /* disable mpu irq/io, game port, fm, SB */ in snd_es1968_chip_init()
2236 pci_write_config_word(pci, ESM_LEGACY_AUDIO_CONTROL, w); in snd_es1968_chip_init()
2239 pci_read_config_word(pci, 0x58, &w); in snd_es1968_chip_init()
2240 w|=1<<2; /* Enable 978. */ in snd_es1968_chip_init()
2241 w|=1<<3; /* Turn on 978 hardware volume control. */ in snd_es1968_chip_init()
2242 w&=~(1<<11); /* Turn on 978 mixer volume control. */ in snd_es1968_chip_init()
2243 pci_write_config_word(pci, 0x58, w); in snd_es1968_chip_init()
2330 w = inw(iobase + WC_CONTROL); in snd_es1968_chip_init()
2332 w &= ~0xFA00; /* Seems to be reserved? I don't know */ in snd_es1968_chip_init()
2333 w |= 0xA000; /* reserved... I don't know */ in snd_es1968_chip_init()
2334 w &= ~0x0200; /* Channels 56,57,58,59 as Extra Play,Rec Channel enable in snd_es1968_chip_init()
2336 w |= 0x0100; /* Wave Cache Operation Enabled */ in snd_es1968_chip_init()
2337 w |= 0x0080; /* Channels 60/61 as Placback/Record enabled */ in snd_es1968_chip_init()
2338 w &= ~0x0060; /* Clear Wavtable Size */ in snd_es1968_chip_init()
2339 w |= 0x0020; /* Wavetable Size : 1MB */ in snd_es1968_chip_init()
2341 w &= ~0x000C; /* DMA Stuff? I don't understand what the datasheet means */ in snd_es1968_chip_init()
2343 w &= ~0x0001; /* Test Mode off */ in snd_es1968_chip_init()
2345 outw(w, iobase + WC_CONTROL); in snd_es1968_chip_init()
2349 for (w = 0; w < NR_APU_REGS; w++) in snd_es1968_chip_init()
2350 apu_set_register(chip, i, w, 0); in snd_es1968_chip_init()
2358 unsigned short w; in snd_es1968_start_irq() local
2359 w = ESM_HIRQ_DSIE | ESM_HIRQ_HW_VOLUME; in snd_es1968_start_irq()
2361 w |= ESM_HIRQ_MPU401; in snd_es1968_start_irq()
2362 outb(w, chip->io_port + 0x1A); in snd_es1968_start_irq()
2363 outw(w, chip->io_port + ESM_PORT_HOST_IRQ); in snd_es1968_start_irq()