tag | line | file | source code |
chn | 350 | drivers/sound/ad1848.c | change_bits (unsigned char *regval, int dev, int chn, int newval) |
chn | 355 | drivers/sound/ad1848.c | if (mix_devices[dev][chn].polarity == 1) /* Reverse */ |
chn | 358 | drivers/sound/ad1848.c | mask = (1 << mix_devices[dev][chn].nbits) - 1; |
chn | 359 | drivers/sound/ad1848.c | shift = mix_devices[dev][chn].bitpos; |
chn | 209 | drivers/sound/dev_table.h | void (*bender) (int dev, int chn, int value); |
chn | 210 | drivers/sound/dev_table.h | int (*alloc_voice) (int dev, int chn, int note, struct voice_alloc_info *alloc); |
chn | 211 | drivers/sound/dev_table.h | void (*setup_voice) (int dev, int voice, int chn); |
chn | 2133 | drivers/sound/gus_wave.c | int this_one, is16bits, chn; |
chn | 2142 | drivers/sound/gus_wave.c | for (chn = 0; chn < gus_sampling_channels; chn++) |
chn | 2144 | drivers/sound/gus_wave.c | mode[chn] = 0x00; |
chn | 2145 | drivers/sound/gus_wave.c | ramp_mode[chn] = 0x03; /* Ramping and rollover off */ |
chn | 2147 | drivers/sound/gus_wave.c | if (chn == 0) |
chn | 2149 | drivers/sound/gus_wave.c | mode[chn] |= 0x20; /* Loop IRQ */ |
chn | 2150 | drivers/sound/gus_wave.c | voices[chn].loop_irq_mode = LMODE_PCM; |
chn | 2156 | drivers/sound/gus_wave.c | mode[chn] |= 0x04; /* 16 bit data */ |
chn | 2162 | drivers/sound/gus_wave.c | dram_loc += chn * pcm_banksize; |
chn | 2166 | drivers/sound/gus_wave.c | mode[chn] |= 0x08; /* Enable loop */ |
chn | 2167 | drivers/sound/gus_wave.c | ramp_mode[chn] = 0x03; /* Disable rollover bit */ |
chn | 2171 | drivers/sound/gus_wave.c | if (chn == 0) |
chn | 2172 | drivers/sound/gus_wave.c | ramp_mode[chn] = 0x04; /* Enable rollover bit */ |
chn | 2177 | drivers/sound/gus_wave.c | gus_select_voice (chn); |
chn | 2182 | drivers/sound/gus_wave.c | else if (chn == 0) |
chn | 2202 | drivers/sound/gus_wave.c | gus_write_addr (0x02, chn * pcm_banksize, is16bits); /* Loop start */ |
chn | 2204 | drivers/sound/gus_wave.c | if (chn != 0) |
chn | 2209 | drivers/sound/gus_wave.c | if (chn == 0) |
chn | 2213 | drivers/sound/gus_wave.c | mode[chn] |= 0x08; /* Enable looping */ |
chn | 2220 | drivers/sound/gus_wave.c | if (chn == 0) |
chn | 2222 | drivers/sound/gus_wave.c | mode[chn] &= ~0x08; /* Disable looping */ |
chn | 2223 | drivers/sound/gus_wave.c | mode[chn] |= 0x20; /* Enable IRQ at the end */ |
chn | 2225 | drivers/sound/gus_wave.c | ramp_mode[chn] = 0x03; /* No rollover bit */ |
chn | 2231 | drivers/sound/gus_wave.c | mode[chn] &= ~0x08; /* Disable looping */ |
chn | 2238 | drivers/sound/gus_wave.c | for (chn = 0; chn < gus_sampling_channels; chn++) |
chn | 2242 | drivers/sound/gus_wave.c | gus_select_voice (chn); |
chn | 2243 | drivers/sound/gus_wave.c | gus_write8 (0x0d, ramp_mode[chn]); |
chn | 2244 | drivers/sound/gus_wave.c | gus_voice_on (mode[chn]); |
chn | 2253 | drivers/sound/gus_wave.c | int total_count, int intrflag, int chn) |
chn | 2274 | drivers/sound/gus_wave.c | if (chn == 0) |
chn | 2288 | drivers/sound/gus_wave.c | DMAbuf_start_dma (dev, buf + (chn * count), count, DMA_MODE_WRITE); |
chn | 2291 | drivers/sound/gus_wave.c | address += chn * pcm_banksize; |
chn | 2315 | drivers/sound/gus_wave.c | if (chn == (gus_sampling_channels - 1)) /* Last channel */ |
chn | 2501 | drivers/sound/gus_wave.c | guswave_setup_voice (int dev, int voice, int chn) |
chn | 2504 | drivers/sound/gus_wave.c | &synth_devs[dev]->chn_info[chn]; |
chn | 2719 | drivers/sound/gus_wave.c | guswave_alloc (int dev, int chn, int note, struct voice_alloc_info *alloc) |
chn | 80 | drivers/sound/ics2101.c | write_mix (int dev, int chn, int vol) |
chn | 89 | drivers/sound/ics2101.c | if (chn == CHN_LEFT) |
chn | 312 | drivers/sound/midi_synth.c | int msg, chn; |
chn | 326 | drivers/sound/midi_synth.c | chn = prev_out_status[orig_dev] & 0x0f; |
chn | 328 | drivers/sound/midi_synth.c | if (chn == channel && ((msg == 0x90 && velocity == 64) || msg == 0x80)) |
chn | 402 | drivers/sound/midi_synth.c | int msg, chn; |
chn | 416 | drivers/sound/midi_synth.c | chn = prev_out_status[orig_dev] & 0x0f; |
chn | 418 | drivers/sound/midi_synth.c | if (chn == channel && msg == 0x90) |
chn | 611 | drivers/sound/midi_synth.c | int msg, chn; |
chn | 621 | drivers/sound/midi_synth.c | chn = prev_out_status[orig_dev] & 0x0f; |
chn | 623 | drivers/sound/midi_synth.c | if (msg != 0xd0 || chn != channel) /* |
chn | 643 | drivers/sound/midi_synth.c | int chn, msg; |
chn | 653 | drivers/sound/midi_synth.c | chn = prev_out_status[orig_dev] & 0x0f; |
chn | 655 | drivers/sound/midi_synth.c | if (msg != 0xb0 || chn != channel) |
chn | 16 | drivers/sound/midi_synth.h | void midi_synth_bender (int dev, int chn, int value); |
chn | 17 | drivers/sound/midi_synth.h | void midi_synth_setup_voice (int dev, int voice, int chn); |
chn | 1071 | drivers/sound/opl3.c | opl3_alloc_voice (int dev, int chn, int note, struct voice_alloc_info *alloc) |
chn | 1078 | drivers/sound/opl3.c | if (chn < 0 || chn > 15) |
chn | 1081 | drivers/sound/opl3.c | instr_no = devc->chn_info[chn].pgm_num; |
chn | 1138 | drivers/sound/opl3.c | opl3_setup_voice (int dev, int voice, int chn) |
chn | 1141 | drivers/sound/opl3.c | &synth_devs[dev]->chn_info[chn]; |
chn | 46 | drivers/sound/os.h | extern int sound_alloc_dma(int chn, char *deviceID); |
chn | 47 | drivers/sound/os.h | extern int sound_open_dma(int chn, char *deviceID); |
chn | 48 | drivers/sound/os.h | extern void sound_free_dma(int chn); |
chn | 49 | drivers/sound/os.h | extern void sound_close_dma(int chn); |
chn | 180 | drivers/sound/sb_mixer.c | change_bits (unsigned char *regval, int dev, int chn, int newval) |
chn | 185 | drivers/sound/sb_mixer.c | mask = (1 << (*iomap)[dev][chn].nbits) - 1; |
chn | 190 | drivers/sound/sb_mixer.c | shift = (*iomap)[dev][chn].bitoffs - (*iomap)[dev][LEFT_CHN].nbits + 1; |
chn | 485 | drivers/sound/sequencer.c | find_voice (int dev, int chn, int note) |
chn | 490 | drivers/sound/sequencer.c | key = (chn << 8) | (note + 1); |
chn | 500 | drivers/sound/sequencer.c | alloc_voice (int dev, int chn, int note) |
chn | 505 | drivers/sound/sequencer.c | key = (chn << 8) | (note + 1); |
chn | 507 | drivers/sound/sequencer.c | voice = synth_devs[dev]->alloc_voice (dev, chn, note, |
chn | 520 | drivers/sound/sequencer.c | unsigned char chn = event_rec[3]; |
chn | 535 | drivers/sound/sequencer.c | voice = find_voice (dev, chn, note); |
chn | 552 | drivers/sound/sequencer.c | voice = alloc_voice (dev, chn, note); |
chn | 556 | drivers/sound/sequencer.c | voice = chn; |
chn | 565 | drivers/sound/sequencer.c | if (chn == 9) |
chn | 575 | drivers/sound/sequencer.c | synth_devs[dev]->setup_voice (dev, voice, chn); |
chn | 583 | drivers/sound/sequencer.c | voice = chn; |
chn | 589 | drivers/sound/sequencer.c | voice = chn; |
chn | 602 | drivers/sound/sequencer.c | unsigned char chn = event_rec[3]; |
chn | 620 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].pgm_num = p1; |
chn | 622 | drivers/sound/sequencer.c | synth_devs[dev]->set_instr (dev, chn, p1); |
chn | 625 | drivers/sound/sequencer.c | synth_devs[dev]->set_instr (dev, chn, p1); |
chn | 632 | drivers/sound/sequencer.c | if (chn > 15 || p1 > 127) |
chn | 635 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].controllers[p1] = w14 & 0x7f; |
chn | 638 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].controllers[p1 + 32] = 0; |
chn | 648 | drivers/sound/sequencer.c | chn_info[chn].controllers[p1 & ~32] & 0x7f) << 7) |
chn | 650 | drivers/sound/sequencer.c | chn_info[chn].controllers[p1 | 32] & 0x7f); |
chn | 656 | drivers/sound/sequencer.c | key = ((int) chn << 8); |
chn | 663 | drivers/sound/sequencer.c | synth_devs[dev]->controller (dev, chn, p1, w14); |
chn | 666 | drivers/sound/sequencer.c | synth_devs[dev]->controller (dev, chn, p1, w14); |
chn | 672 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].bender_value = w14; |
chn | 678 | drivers/sound/sequencer.c | key = (chn << 8); |
chn | 685 | drivers/sound/sequencer.c | synth_devs[dev]->bender (dev, chn, w14); |
chn | 688 | drivers/sound/sequencer.c | synth_devs[dev]->bender (dev, chn, w14); |
chn | 1062 | drivers/sound/sequencer.c | int chn; |
chn | 1064 | drivers/sound/sequencer.c | for (chn = 0; chn < 16; chn++) |
chn | 1066 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].pgm_num = 0; |
chn | 1068 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].controllers, |
chn | 1070 | drivers/sound/sequencer.c | synth_devs[dev]->chn_info[chn].bender_value = (1 << 7); /* Neutral */ |
chn | 1429 | drivers/sound/sequencer.c | int chn; |
chn | 1448 | drivers/sound/sequencer.c | for (chn = 0; chn < 16; chn++) |
chn | 1453 | drivers/sound/sequencer.c | synth_devs[i]->controller (i, chn, 123, 0); /* All notes off */ |
chn | 1454 | drivers/sound/sequencer.c | synth_devs[i]->controller (i, chn, 121, 0); /* Reset all ctl */ |
chn | 1455 | drivers/sound/sequencer.c | synth_devs[i]->bender (i, chn, 1 << 13); /* Bender off */ |
chn | 1474 | drivers/sound/sequencer.c | for (chn = 0; chn < 16; chn++) |
chn | 1477 | drivers/sound/sequencer.c | (unsigned char) (0xb0 + (chn & 0x0f))); /* control change */ |
chn | 507 | drivers/sound/soundcard.c | sound_alloc_dma (int chn, char *deviceID) |
chn | 511 | drivers/sound/soundcard.c | if ((err = request_dma (chn, deviceID)) != 0) |
chn | 514 | drivers/sound/soundcard.c | dma_alloc_map[chn] = DMA_MAP_FREE; |
chn | 520 | drivers/sound/soundcard.c | sound_open_dma (int chn, char *deviceID) |
chn | 527 | drivers/sound/soundcard.c | if (dma_alloc_map[chn] != DMA_MAP_FREE) |
chn | 529 | drivers/sound/soundcard.c | printk ("sound_open_dma: DMA channel %d busy or not allocated\n", chn); |
chn | 534 | drivers/sound/soundcard.c | dma_alloc_map[chn] = DMA_MAP_BUSY; |
chn | 540 | drivers/sound/soundcard.c | sound_free_dma (int chn) |
chn | 542 | drivers/sound/soundcard.c | if (dma_alloc_map[chn] != DMA_MAP_FREE) |
chn | 547 | drivers/sound/soundcard.c | free_dma (chn); |
chn | 548 | drivers/sound/soundcard.c | dma_alloc_map[chn] = DMA_MAP_UNAVAIL; |
chn | 552 | drivers/sound/soundcard.c | sound_close_dma (int chn) |
chn | 559 | drivers/sound/soundcard.c | if (dma_alloc_map[chn] != DMA_MAP_BUSY) |
chn | 561 | drivers/sound/soundcard.c | printk ("sound_close_dma: Bad access to DMA channel %d\n", chn); |
chn | 565 | drivers/sound/soundcard.c | dma_alloc_map[chn] = DMA_MAP_FREE; |
chn | 988 | include/linux/soundcard.h | #define _CHN_VOICE(dev, event, chn, note, parm) \ |
chn | 993 | include/linux/soundcard.h | _seqbuf[_seqbufptr+3] = (chn);\ |
chn | 1000 | include/linux/soundcard.h | #define SEQ_START_NOTE(dev, chn, note, vol) \ |
chn | 1001 | include/linux/soundcard.h | _CHN_VOICE(dev, MIDI_NOTEON, chn, note, vol) |
chn | 1003 | include/linux/soundcard.h | #define SEQ_STOP_NOTE(dev, chn, note, vol) \ |
chn | 1004 | include/linux/soundcard.h | _CHN_VOICE(dev, MIDI_NOTEOFF, chn, note, vol) |
chn | 1006 | include/linux/soundcard.h | #define SEQ_KEY_PRESSURE(dev, chn, note, pressure) \ |
chn | 1007 | include/linux/soundcard.h | _CHN_VOICE(dev, MIDI_KEY_PRESSURE, chn, note, pressure) |
chn | 1013 | include/linux/soundcard.h | #define _CHN_COMMON(dev, event, chn, p1, p2, w14) \ |
chn | 1018 | include/linux/soundcard.h | _seqbuf[_seqbufptr+3] = (chn);\ |
chn | 1046 | include/linux/soundcard.h | #define SEQ_CHN_PRESSURE(dev, chn, pressure) \ |
chn | 1047 | include/linux/soundcard.h | _CHN_COMMON(dev, MIDI_CHN_PRESSURE, chn, pressure, 0, 0) |
chn | 1049 | include/linux/soundcard.h | #define SEQ_SET_PATCH(dev, chn, patch) \ |
chn | 1050 | include/linux/soundcard.h | _CHN_COMMON(dev, MIDI_PGM_CHANGE, chn, patch, 0, 0) |
chn | 1052 | include/linux/soundcard.h | #define SEQ_CONTROL(dev, chn, controller, value) \ |
chn | 1053 | include/linux/soundcard.h | _CHN_COMMON(dev, MIDI_CTL_CHANGE, chn, controller, 0, value) |
chn | 1055 | include/linux/soundcard.h | #define SEQ_BENDER(dev, chn, value) \ |
chn | 1056 | include/linux/soundcard.h | _CHN_COMMON(dev, MIDI_PITCH_BEND, chn, 0, 0, value) |
chn | 91 | include/linux/ultrasound.h | #define _GUS_CMD(chn, voice, cmd, p1, p2) \ |
chn | 93 | include/linux/ultrasound.h | _seqbuf[_seqbufptr+1] = (chn); _seqbuf[_seqbufptr+2] = cmd;\ |
chn | 99 | include/linux/ultrasound.h | #define GUS_NUMVOICES(chn, p1) _GUS_CMD(chn, 0, _GUS_NUMVOICES, (p1), 0) |
chn | 100 | include/linux/ultrasound.h | #define GUS_VOICESAMPLE(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICESAMPLE, (p1), 0) /* OBSOLETE */ |
chn | 101 | include/linux/ultrasound.h | #define GUS_VOICEON(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEON, (p1), 0) |
chn | 102 | include/linux/ultrasound.h | #define GUS_VOICEOFF(chn, voice) _GUS_CMD(chn, voice, _GUS_VOICEOFF, 0, 0) |
chn | 103 | include/linux/ultrasound.h | #define GUS_VOICEFADE(chn, voice) _GUS_CMD(chn, voice, _GUS_VOICEFADE, 0, 0) |
chn | 104 | include/linux/ultrasound.h | #define GUS_VOICEMODE(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEMODE, (p1), 0) |
chn | 105 | include/linux/ultrasound.h | #define GUS_VOICEBALA(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEBALA, (p1), 0) |
chn | 106 | include/linux/ultrasound.h | #define GUS_VOICEFREQ(chn, voice, p) _GUS_CMD(chn, voice, _GUS_VOICEFREQ, \ |
chn | 108 | include/linux/ultrasound.h | #define GUS_VOICEVOL(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEVOL, (p1), 0) |
chn | 109 | include/linux/ultrasound.h | #define GUS_VOICEVOL2(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEVOL2, (p1), 0) |
chn | 110 | include/linux/ultrasound.h | #define GUS_RAMPRANGE(chn, voice, low, high) _GUS_CMD(chn, voice, _GUS_RAMPRANGE, (low), (high)) |
chn | 111 | include/linux/ultrasound.h | #define GUS_RAMPRATE(chn, voice, p1, p2) _GUS_CMD(chn, voice, _GUS_RAMPRATE, (p1), (p2)) |
chn | 112 | include/linux/ultrasound.h | #define GUS_RAMPMODE(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_RAMPMODE, (p1), 0) |
chn | 113 | include/linux/ultrasound.h | #define GUS_RAMPON(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_RAMPON, (p1), 0) |
chn | 114 | include/linux/ultrasound.h | #define GUS_RAMPOFF(chn, voice) _GUS_CMD(chn, voice, _GUS_RAMPOFF, 0, 0) |
chn | 115 | include/linux/ultrasound.h | #define GUS_VOLUME_SCALE(chn, voice, p1, p2) _GUS_CMD(chn, voice, _GUS_VOLUME_SCALE, (p1), (p2)) |
chn | 116 | include/linux/ultrasound.h | #define GUS_VOICE_POS(chn, voice, p) _GUS_CMD(chn, voice, _GUS_VOICE_POS, \ |
chn | 1142 | net/ipv4/ip_fw.c | int chn; |
chn | 1148 | net/ipv4/ip_fw.c | for (chn = 0; chn < IP_FW_CHAINS; chn++) |
chn | 1149 | net/ipv4/ip_fw.c | for (fw = *chains[chn]; fw; fw = fw->fw_next) |
chn | 1154 | net/ipv4/ip_fw.c | for (chn = 0; chn < IP_FW_CHAINS; chn++) |
chn | 1155 | net/ipv4/ip_fw.c | for (fw = *chains[chn]; fw; fw = fw->fw_next) |