Lines Matching refs:w
2070 unsigned short w; in snd_es1968_ac97_reset() local
2084 pci_read_config_word(chip->pci, 0x58, &w); /* something magical with gpio and bus arb. */ in snd_es1968_ac97_reset()
2086 if (w & 1) in snd_es1968_ac97_reset()
2118 for (w = 0;; w++) { in snd_es1968_ac97_reset()
2133 if (w > 10000) { in snd_es1968_ac97_reset()
2140 for (w = 0; w < 10000; w++) { in snd_es1968_ac97_reset()
2187 u16 w; in snd_es1968_chip_init() local
2202 pci_read_config_word(pci, ESM_CONFIG_A, &w); in snd_es1968_chip_init()
2204 w &= ~DMA_CLEAR; /* Clear DMA bits */ in snd_es1968_chip_init()
2205 w &= ~(PIC_SNOOP1 | PIC_SNOOP2); /* Clear Pic Snoop Mode Bits */ in snd_es1968_chip_init()
2206 w &= ~SAFEGUARD; /* Safeguard off */ in snd_es1968_chip_init()
2207 w |= POST_WRITE; /* Posted write */ in snd_es1968_chip_init()
2208 w |= PCI_TIMING; /* PCI timing on */ in snd_es1968_chip_init()
2210 w &= ~SWAP_LR; /* swap left/right in snd_es1968_chip_init()
2213 w &= ~SUBTR_DECODE; /* Subtractive decode off */ in snd_es1968_chip_init()
2215 pci_write_config_word(pci, ESM_CONFIG_A, w); in snd_es1968_chip_init()
2219 pci_read_config_word(pci, ESM_CONFIG_B, &w); in snd_es1968_chip_init()
2221 w &= ~(1 << 15); /* Turn off internal clock multiplier */ in snd_es1968_chip_init()
2223 w &= ~(1 << 14); /* External clock */ in snd_es1968_chip_init()
2225 w &= ~SPDIF_CONFB; /* disable S/PDIF output */ in snd_es1968_chip_init()
2226 w |= HWV_CONFB; /* HWV on */ in snd_es1968_chip_init()
2227 w |= DEBOUNCE; /* Debounce off: easier to push the HW buttons */ in snd_es1968_chip_init()
2228 w &= ~GPIO_CONFB; /* GPIO 4:5 */ in snd_es1968_chip_init()
2229 w |= CHI_CONFB; /* Disconnect from the CHI. Enabling this made a dell 7500 work. */ in snd_es1968_chip_init()
2230 w &= ~IDMA_CONFB; /* IDMA off (undocumented) */ in snd_es1968_chip_init()
2231 w &= ~MIDI_FIX; /* MIDI fix off (undoc) */ in snd_es1968_chip_init()
2232 w &= ~(1 << 1); /* reserved, always write 0 */ in snd_es1968_chip_init()
2233 w &= ~IRQ_TO_ISA; /* IRQ to ISA off (undoc) */ in snd_es1968_chip_init()
2235 pci_write_config_word(pci, ESM_CONFIG_B, w); in snd_es1968_chip_init()
2239 pci_read_config_word(pci, ESM_DDMA, &w); in snd_es1968_chip_init()
2240 w &= ~(1 << 0); in snd_es1968_chip_init()
2241 pci_write_config_word(pci, ESM_DDMA, w); in snd_es1968_chip_init()
2247 pci_read_config_word(pci, ESM_LEGACY_AUDIO_CONTROL, &w); in snd_es1968_chip_init()
2249 w |= ESS_DISABLE_AUDIO; /* Disable Legacy Audio */ in snd_es1968_chip_init()
2250 w &= ~ESS_ENABLE_SERIAL_IRQ; /* Disable SIRQ */ in snd_es1968_chip_init()
2251 w &= ~(0x1f); /* disable mpu irq/io, game port, fm, SB */ in snd_es1968_chip_init()
2253 pci_write_config_word(pci, ESM_LEGACY_AUDIO_CONTROL, w); in snd_es1968_chip_init()
2256 pci_read_config_word(pci, 0x58, &w); in snd_es1968_chip_init()
2257 w|=1<<2; /* Enable 978. */ in snd_es1968_chip_init()
2258 w|=1<<3; /* Turn on 978 hardware volume control. */ in snd_es1968_chip_init()
2259 w&=~(1<<11); /* Turn on 978 mixer volume control. */ in snd_es1968_chip_init()
2260 pci_write_config_word(pci, 0x58, w); in snd_es1968_chip_init()
2347 w = inw(iobase + WC_CONTROL); in snd_es1968_chip_init()
2349 w &= ~0xFA00; /* Seems to be reserved? I don't know */ in snd_es1968_chip_init()
2350 w |= 0xA000; /* reserved... I don't know */ in snd_es1968_chip_init()
2351 w &= ~0x0200; /* Channels 56,57,58,59 as Extra Play,Rec Channel enable in snd_es1968_chip_init()
2353 w |= 0x0100; /* Wave Cache Operation Enabled */ in snd_es1968_chip_init()
2354 w |= 0x0080; /* Channels 60/61 as Placback/Record enabled */ in snd_es1968_chip_init()
2355 w &= ~0x0060; /* Clear Wavtable Size */ in snd_es1968_chip_init()
2356 w |= 0x0020; /* Wavetable Size : 1MB */ in snd_es1968_chip_init()
2358 w &= ~0x000C; /* DMA Stuff? I don't understand what the datasheet means */ in snd_es1968_chip_init()
2360 w &= ~0x0001; /* Test Mode off */ in snd_es1968_chip_init()
2362 outw(w, iobase + WC_CONTROL); in snd_es1968_chip_init()
2366 for (w = 0; w < NR_APU_REGS; w++) in snd_es1968_chip_init()
2367 apu_set_register(chip, i, w, 0); in snd_es1968_chip_init()
2375 unsigned short w; in snd_es1968_start_irq() local
2376 w = ESM_HIRQ_DSIE | ESM_HIRQ_HW_VOLUME; in snd_es1968_start_irq()
2378 w |= ESM_HIRQ_MPU401; in snd_es1968_start_irq()
2379 outb(w, chip->io_port + 0x1A); in snd_es1968_start_irq()
2380 outw(w, chip->io_port + ESM_PORT_HOST_IRQ); in snd_es1968_start_irq()