chn              1156 include/linux/soundcard.h 					_seqbuf[_seqbufptr+3] = (chn);\
chn              1164 include/linux/soundcard.h 		_CHN_VOICE(dev, MIDI_NOTEON, chn, note, vol)
chn              1167 include/linux/soundcard.h 		_CHN_VOICE(dev, MIDI_NOTEOFF, chn, note, vol)
chn              1170 include/linux/soundcard.h 		_CHN_VOICE(dev, MIDI_KEY_PRESSURE, chn, note, pressure)
chn              1181 include/linux/soundcard.h 					_seqbuf[_seqbufptr+3] = (chn);\
chn              1215 include/linux/soundcard.h 		_CHN_COMMON(dev, MIDI_CHN_PRESSURE, chn, pressure, 0, 0)
chn              1220 include/linux/soundcard.h 		{OSS_patch_caching(dev, chn, patch, seqfd, _seqbuf, _seqbuflen); \
chn              1221 include/linux/soundcard.h 		 _CHN_COMMON(dev, MIDI_PGM_CHANGE, chn, patch, 0, 0);}
chn              1224 include/linux/soundcard.h 		_CHN_COMMON(dev, MIDI_PGM_CHANGE, chn, patch, 0, 0)
chn              1228 include/linux/soundcard.h 		_CHN_COMMON(dev, MIDI_CTL_CHANGE, chn, controller, 0, value)
chn              1231 include/linux/soundcard.h 		_CHN_COMMON(dev, MIDI_PITCH_BEND, chn, 0, 0, value)
chn                77 include/linux/ultrasound.h 					_seqbuf[_seqbufptr+1] = (chn); _seqbuf[_seqbufptr+2] = cmd;\
chn                83 include/linux/ultrasound.h #define GUS_NUMVOICES(chn, p1)			_GUS_CMD(chn, 0, _GUS_NUMVOICES, (p1), 0)
chn                84 include/linux/ultrasound.h #define GUS_VOICESAMPLE(chn, voice, p1)		_GUS_CMD(chn, voice, _GUS_VOICESAMPLE, (p1), 0)	/* OBSOLETE */
chn                85 include/linux/ultrasound.h #define GUS_VOICEON(chn, voice, p1)		_GUS_CMD(chn, voice, _GUS_VOICEON, (p1), 0)
chn                86 include/linux/ultrasound.h #define GUS_VOICEOFF(chn, voice)		_GUS_CMD(chn, voice, _GUS_VOICEOFF, 0, 0)
chn                87 include/linux/ultrasound.h #define GUS_VOICEFADE(chn, voice)		_GUS_CMD(chn, voice, _GUS_VOICEFADE, 0, 0)
chn                88 include/linux/ultrasound.h #define GUS_VOICEMODE(chn, voice, p1)		_GUS_CMD(chn, voice, _GUS_VOICEMODE, (p1), 0)
chn                89 include/linux/ultrasound.h #define GUS_VOICEBALA(chn, voice, p1)		_GUS_CMD(chn, voice, _GUS_VOICEBALA, (p1), 0)
chn                90 include/linux/ultrasound.h #define GUS_VOICEFREQ(chn, voice, p)		_GUS_CMD(chn, voice, _GUS_VOICEFREQ, \
chn                92 include/linux/ultrasound.h #define GUS_VOICEVOL(chn, voice, p1)		_GUS_CMD(chn, voice, _GUS_VOICEVOL, (p1), 0)
chn                93 include/linux/ultrasound.h #define GUS_VOICEVOL2(chn, voice, p1)		_GUS_CMD(chn, voice, _GUS_VOICEVOL2, (p1), 0)
chn                94 include/linux/ultrasound.h #define GUS_RAMPRANGE(chn, voice, low, high)	_GUS_CMD(chn, voice, _GUS_RAMPRANGE, (low), (high))
chn                95 include/linux/ultrasound.h #define GUS_RAMPRATE(chn, voice, p1, p2)	_GUS_CMD(chn, voice, _GUS_RAMPRATE, (p1), (p2))
chn                96 include/linux/ultrasound.h #define GUS_RAMPMODE(chn, voice, p1)		_GUS_CMD(chn, voice, _GUS_RAMPMODE, (p1), 0)
chn                97 include/linux/ultrasound.h #define GUS_RAMPON(chn, voice, p1)		_GUS_CMD(chn, voice, _GUS_RAMPON, (p1), 0)
chn                98 include/linux/ultrasound.h #define GUS_RAMPOFF(chn, voice)			_GUS_CMD(chn, voice, _GUS_RAMPOFF, 0, 0)
chn                99 include/linux/ultrasound.h #define GUS_VOLUME_SCALE(chn, voice, p1, p2)	_GUS_CMD(chn, voice, _GUS_VOLUME_SCALE, (p1), (p2))
chn               100 include/linux/ultrasound.h #define GUS_VOICE_POS(chn, voice, p)		_GUS_CMD(chn, voice, _GUS_VOICE_POS, \
chn                35 include/sound/mixer_oss.h 			  struct snd_mixer_oss_slot *chn,
chn                38 include/sound/mixer_oss.h 			  struct snd_mixer_oss_slot *chn,
chn                41 include/sound/mixer_oss.h 			  struct snd_mixer_oss_slot *chn,
chn                44 include/sound/mixer_oss.h 			  struct snd_mixer_oss_slot *chn,
chn               429 include/sound/wavefront.h  (samp)->Unused1 = chn & 0x1; \
chn               430 include/sound/wavefront.h  (samp)->Unused2 = chn & 0x2; \
chn               431 include/sound/wavefront.h  (samp)->Unused3 = chn & 0x4 
chn                99 net/bluetooth/rfcomm/core.c #define __dlci(dir, chn)       (((chn & 0x1f) << 1) | dir)
chn               131 sound/core/oss/mixer_oss.c 	int result = 0, chn;
chn               135 sound/core/oss/mixer_oss.c 	for (chn = 0; chn < 31; chn++) {
chn               136 sound/core/oss/mixer_oss.c 		pslot = &mixer->slots[chn];
chn               138 sound/core/oss/mixer_oss.c 			result |= 1 << chn;
chn               147 sound/core/oss/mixer_oss.c 	int result = 0, chn;
chn               151 sound/core/oss/mixer_oss.c 	for (chn = 0; chn < 31; chn++) {
chn               152 sound/core/oss/mixer_oss.c 		pslot = &mixer->slots[chn];
chn               154 sound/core/oss/mixer_oss.c 			result |= 1 << chn;
chn               170 sound/core/oss/mixer_oss.c 		int chn;
chn               171 sound/core/oss/mixer_oss.c 		for (chn = 0; chn < 31; chn++) {
chn               172 sound/core/oss/mixer_oss.c 			pslot = &mixer->slots[chn];
chn               174 sound/core/oss/mixer_oss.c 				result |= 1 << chn;
chn               194 sound/core/oss/mixer_oss.c 		int chn;
chn               195 sound/core/oss/mixer_oss.c 		for (chn = 0; chn < 31; chn++) {
chn               196 sound/core/oss/mixer_oss.c 			pslot = &mixer->slots[chn];
chn               201 sound/core/oss/mixer_oss.c 					result |= 1 << chn;
chn               212 sound/core/oss/mixer_oss.c 	int chn, active;
chn               224 sound/core/oss/mixer_oss.c 	for (chn = 0; chn < 31; chn++) {
chn               225 sound/core/oss/mixer_oss.c 		pslot = &mixer->slots[chn];
chn               227 sound/core/oss/mixer_oss.c 			active = (recsrc & (1 << chn)) ? 1 : 0;
chn               232 sound/core/oss/mixer_oss.c 		for (chn = 0; chn < 31; chn++) {
chn               233 sound/core/oss/mixer_oss.c 			pslot = &mixer->slots[chn];
chn               238 sound/core/oss/mixer_oss.c 					result |= 1 << chn;
chn               912 sound/core/oss/mixer_oss.c 	struct slot *p = (struct slot *)chn->private_data;
chn              1298 sound/core/oss/mixer_oss.c 		struct snd_mixer_oss_slot *chn = &mixer->slots[idx];
chn              1299 sound/core/oss/mixer_oss.c 		if (chn->private_free)
chn              1300 sound/core/oss/mixer_oss.c 			chn->private_free(chn);
chn               111 sound/core/seq/oss/seq_oss_event.c 		return note_off_event(dp, 0, q->n.chn, q->n.note, q->n.vel, ev);
chn               114 sound/core/seq/oss/seq_oss_event.c 		return note_on_event(dp, 0, q->n.chn, q->n.note, q->n.vel, ev);
chn               122 sound/core/seq/oss/seq_oss_event.c 					 q->n.chn, 0, q->n.note, ev);
chn               139 sound/core/seq/oss/seq_oss_event.c 		return note_off_event(dp, q->e.dev, q->e.chn, q->e.p1, q->e.p2, ev);
chn               142 sound/core/seq/oss/seq_oss_event.c 		return note_on_event(dp, q->e.dev, q->e.chn, q->e.p1, q->e.p2, ev);
chn               146 sound/core/seq/oss/seq_oss_event.c 					 q->e.chn, 0, q->e.p1, ev);
chn               150 sound/core/seq/oss/seq_oss_event.c 					 q->e.chn, 0, q->e.p1, ev);
chn               157 sound/core/seq/oss/seq_oss_event.c 					 q->e.chn, CTL_PAN, val, ev);
chn               166 sound/core/seq/oss/seq_oss_event.c 						 q->e.chn, 0, val, ev);
chn               171 sound/core/seq/oss/seq_oss_event.c 						 q->e.chn, 0, val*128/100, ev);
chn               175 sound/core/seq/oss/seq_oss_event.c 						  q->e.chn, q->e.p1, val, ev);
chn               189 sound/core/seq/oss/seq_oss_event.c 	if (q->v.chn >= 32)
chn               193 sound/core/seq/oss/seq_oss_event.c 		return note_on_event(dp, q->v.dev, q->v.chn, q->v.note, q->v.parm, ev);
chn               196 sound/core/seq/oss/seq_oss_event.c 		return note_off_event(dp, q->v.dev, q->v.chn, q->v.note, q->v.parm, ev);
chn               200 sound/core/seq/oss/seq_oss_event.c 				       q->v.chn, q->v.note, q->v.parm, ev);
chn               210 sound/core/seq/oss/seq_oss_event.c 	if (q->l.chn >= 32)
chn               215 sound/core/seq/oss/seq_oss_event.c 					  q->l.chn, 0, q->l.p1, ev);
chn               219 sound/core/seq/oss/seq_oss_event.c 					  q->l.chn, q->l.p1, q->l.val, ev);
chn               224 sound/core/seq/oss/seq_oss_event.c 					  q->l.chn, 0, q->l.val - 8192, ev);
chn               228 sound/core/seq/oss/seq_oss_event.c 					  q->l.chn, 0, q->l.val, ev);
chn                42 sound/core/seq/oss/seq_oss_event.h 	unsigned char chn;
chn                60 sound/core/seq/oss/seq_oss_event.h 	unsigned char chn;
chn                69 sound/core/seq/oss/seq_oss_event.h 	unsigned char chn;
chn                79 sound/core/seq/oss/seq_oss_event.h 	unsigned char chn;
chn               582 sound/core/seq/oss/seq_oss_midi.c 		ossev.v.chn = ev->data.note.channel;
chn               590 sound/core/seq/oss/seq_oss_midi.c 		ossev.l.chn = ev->data.control.channel;
chn               595 sound/core/seq/oss/seq_oss_midi.c 		ossev.l.chn = ev->data.control.channel;
chn               469 sound/oss/ad1848.c 	set_mute_bit = (newval == 0) ^ devc->mix_devices[dev][chn].mutepol;
chn               471 sound/oss/ad1848.c 	if (devc->mix_devices[dev][chn].polarity == 1)	/* Reverse */
chn               474 sound/oss/ad1848.c 	mask = (1 << devc->mix_devices[dev][chn].nbits) - 1;
chn               475 sound/oss/ad1848.c 	shift = devc->mix_devices[dev][chn].bitpos;
chn               477 sound/oss/ad1848.c 	if (devc->mix_devices[dev][chn].mutepos == 8)
chn               484 sound/oss/ad1848.c 		mute = (set_mute_bit << devc->mix_devices[dev][chn].mutepos);
chn               485 sound/oss/ad1848.c 		mutemask = ~(1 << devc->mix_devices[dev][chn].mutepos);
chn               279 sound/oss/dev_table.h 	void (*bender) (int dev, int chn, int value);
chn               280 sound/oss/dev_table.h 	int (*alloc_voice) (int dev, int chn, int note, struct voice_alloc_info *alloc);
chn               281 sound/oss/dev_table.h 	void (*setup_voice) (int dev, int voice, int chn);
chn               286 sound/oss/midi_synth.c 	int             msg, chn;
chn               300 sound/oss/midi_synth.c 	chn = prev_out_status[orig_dev] & 0x0f;
chn               302 sound/oss/midi_synth.c 	if (chn == channel && ((msg == 0x90 && velocity == 64) || msg == 0x80))
chn               376 sound/oss/midi_synth.c 	int             msg, chn;
chn               390 sound/oss/midi_synth.c 	chn = prev_out_status[orig_dev] & 0x0f;
chn               392 sound/oss/midi_synth.c 	if (chn == channel && msg == 0x90)
chn               564 sound/oss/midi_synth.c 	int             msg, chn;
chn               574 sound/oss/midi_synth.c 	chn = prev_out_status[orig_dev] & 0x0f;
chn               576 sound/oss/midi_synth.c 	if (msg != 0xd0 || chn != channel)	/*
chn               596 sound/oss/midi_synth.c 	int             chn, msg;
chn               606 sound/oss/midi_synth.c 	chn = prev_out_status[orig_dev] & 0x0f;
chn               608 sound/oss/midi_synth.c 	if (msg != 0xb0 || chn != channel)
chn              1007 sound/oss/opl3.c 	if (chn < 0 || chn > 15)
chn              1010 sound/oss/opl3.c 		instr_no = devc->chn_info[chn].pgm_num;
chn              1069 sound/oss/opl3.c 	&synth_devs[dev]->chn_info[chn];
chn               238 sound/oss/sb_mixer.c 	mask = (1 << (*devc->iomap)[dev][chn].nbits) - 1;
chn               241 sound/oss/sb_mixer.c 	shift = (*devc->iomap)[dev][chn].bitoffs - (*devc->iomap)[dev][LEFT_CHN].nbits + 1;
chn               423 sound/oss/sequencer.c 	key = (chn << 8) | (note + 1);
chn               435 sound/oss/sequencer.c 	key = (chn << 8) | (note + 1);
chn               437 sound/oss/sequencer.c 	voice = synth_devs[dev]->alloc_voice(dev, chn, note,
chn               465 sound/oss/sequencer.c 			voice = find_voice(dev, chn, note);
chn               483 sound/oss/sequencer.c 				voice = alloc_voice(dev, chn, note);
chn               486 sound/oss/sequencer.c 				voice = chn;
chn               495 sound/oss/sequencer.c 				if (chn == 9)
chn               498 sound/oss/sequencer.c 					synth_devs[dev]->chn_info[chn].pgm_num = 128 + note;
chn               500 sound/oss/sequencer.c 				synth_devs[dev]->setup_voice(dev, voice, chn);
chn               507 sound/oss/sequencer.c 				voice = chn;
chn               513 sound/oss/sequencer.c 				voice = chn;
chn               531 sound/oss/sequencer.c 	unsigned char chn = event_rec[3];
chn               549 sound/oss/sequencer.c 				synth_devs[dev]->chn_info[chn].pgm_num = p1;
chn               551 sound/oss/sequencer.c 					synth_devs[dev]->set_instr(dev, chn, p1);
chn               554 sound/oss/sequencer.c 				synth_devs[dev]->set_instr(dev, chn, p1);
chn               561 sound/oss/sequencer.c 				if (chn > 15 || p1 > 127)
chn               564 sound/oss/sequencer.c 				synth_devs[dev]->chn_info[chn].controllers[p1] = w14 & 0x7f;
chn               567 sound/oss/sequencer.c 					synth_devs[dev]->chn_info[chn].controllers[p1 + 32] = 0;
chn               577 sound/oss/sequencer.c 							chn_info[chn].controllers[p1 & ~32] & 0x7f) << 7)
chn               579 sound/oss/sequencer.c 							chn_info[chn].controllers[p1 | 32] & 0x7f);
chn               584 sound/oss/sequencer.c 					key = ((int) chn << 8);
chn               591 sound/oss/sequencer.c 					synth_devs[dev]->controller(dev, chn, p1, w14);
chn               594 sound/oss/sequencer.c 				synth_devs[dev]->controller(dev, chn, p1, w14);
chn               600 sound/oss/sequencer.c 				synth_devs[dev]->chn_info[chn].bender_value = w14;
chn               607 sound/oss/sequencer.c 					key = (chn << 8);
chn               614 sound/oss/sequencer.c 					synth_devs[dev]->bender(dev, chn, w14);
chn               617 sound/oss/sequencer.c 				synth_devs[dev]->bender(dev, chn, w14);
chn               926 sound/oss/sequencer.c 		int chn;
chn               931 sound/oss/sequencer.c 		for (chn = 0; chn < 16; chn++)
chn               933 sound/oss/sequencer.c 			synth_devs[dev]->chn_info[chn].pgm_num = 0;
chn               935 sound/oss/sequencer.c 				synth_devs[dev]->chn_info[chn].controllers,0);
chn               936 sound/oss/sequencer.c 			synth_devs[dev]->chn_info[chn].bender_value = (1 << 7);	/* Neutral */
chn               937 sound/oss/sequencer.c 			synth_devs[dev]->chn_info[chn].bender_range = 200;
chn              1235 sound/oss/sequencer.c 	int chn;
chn              1254 sound/oss/sequencer.c 		for (chn = 0; chn < 16; chn++)
chn              1259 sound/oss/sequencer.c 						synth_devs[i]->controller(i, chn, 123, 0);	/* All notes off */
chn              1260 sound/oss/sequencer.c 						synth_devs[i]->controller(i, chn, 121, 0);	/* Reset all ctl */
chn              1261 sound/oss/sequencer.c 						synth_devs[i]->bender(i, chn, 1 << 13);	/* Bender off */
chn              1278 sound/oss/sequencer.c 				for (chn = 0; chn < 16; chn++)
chn              1280 sound/oss/sequencer.c 					midi_outc(i, (unsigned char) (0xb0 + (chn & 0x0f)));		/* control change */
chn               625 sound/oss/soundcard.c 	if ((err = request_dma(chn, deviceID)) != 0)
chn               628 sound/oss/soundcard.c 	dma_alloc_map[chn] = DMA_MAP_FREE;
chn               636 sound/oss/soundcard.c 	if (!valid_dma(chn)) {
chn               637 sound/oss/soundcard.c 		printk(KERN_ERR "sound_open_dma: Invalid DMA channel %d\n", chn);
chn               641 sound/oss/soundcard.c 	if (dma_alloc_map[chn] != DMA_MAP_FREE) {
chn               642 sound/oss/soundcard.c 		printk("sound_open_dma: DMA channel %d busy or not allocated (%d)\n", chn, dma_alloc_map[chn]);
chn               645 sound/oss/soundcard.c 	dma_alloc_map[chn] = DMA_MAP_BUSY;
chn               652 sound/oss/soundcard.c 	if (dma_alloc_map[chn] == DMA_MAP_UNAVAIL) {
chn               656 sound/oss/soundcard.c 	free_dma(chn);
chn               657 sound/oss/soundcard.c 	dma_alloc_map[chn] = DMA_MAP_UNAVAIL;
chn               663 sound/oss/soundcard.c 	if (dma_alloc_map[chn] != DMA_MAP_BUSY) {
chn               664 sound/oss/soundcard.c 		printk(KERN_ERR "sound_close_dma: Bad access to DMA channel %d\n", chn);
chn               667 sound/oss/soundcard.c 	dma_alloc_map[chn] = DMA_MAP_FREE;
chn               329 sound/pci/ca0106/ca0106_main.c 	regptr = (reg << 16) | chn;
chn               346 sound/pci/ca0106/ca0106_main.c 	regptr = (reg << 16) | chn;
chn               302 sound/pci/emu10k1/emu10k1x.c 	regptr = (reg << 16) | chn;
chn               319 sound/pci/emu10k1/emu10k1x.c 	regptr = (reg << 16) | chn;
chn               470 sound/pci/emu10k1/emuproc.c 	regptr = (reg << 16) | chn;
chn               488 sound/pci/emu10k1/emuproc.c 	regptr = (reg << 16) | chn;
chn                41 sound/pci/emu10k1/io.c 	regptr = ((reg << 16) & mask) | (chn & PTR_CHANNELNUM_MASK);
chn                79 sound/pci/emu10k1/io.c 	regptr = ((reg << 16) & mask) | (chn & PTR_CHANNELNUM_MASK);
chn               111 sound/pci/emu10k1/io.c 	regptr = (reg << 16) | chn;
chn               128 sound/pci/emu10k1/io.c 	regptr = (reg << 16) | chn;
chn                94 sound/pci/ice1712/hoontech.c 	if (chn == 3)
chn               107 sound/pci/ice1712/hoontech.c 	if (chn == 3) {
chn               111 sound/pci/ice1712/hoontech.c 		switch (chn) {
chn               173 sound/pci/ice1712/hoontech.c 	int box, chn;
chn               242 sound/pci/ice1712/hoontech.c 		for (chn = 0; chn < 4; chn++)
chn               243 sound/pci/ice1712/hoontech.c 			snd_ice1712_stdsp24_box_channel(ice, box, chn,
chn               244 sound/pci/ice1712/hoontech.c 				(spec->boxconfig[box] & (1 << chn)) ? 1 : 0);
chn               614 sound/pci/ice1712/ice1712.c 	u32 period_size, buf_size, rate, tmp, chn;
chn               628 sound/pci/ice1712/ice1712.c 	chn = substream->number * 2;
chn               630 sound/pci/ice1712/ice1712.c 	snd_ice1712_ds_write(ice, chn, ICE1712_DSC_ADDR0, runtime->dma_addr);
chn               631 sound/pci/ice1712/ice1712.c 	snd_ice1712_ds_write(ice, chn, ICE1712_DSC_COUNT0, period_size);
chn               632 sound/pci/ice1712/ice1712.c 	snd_ice1712_ds_write(ice, chn, ICE1712_DSC_ADDR1, runtime->dma_addr + (runtime->periods > 1 ? period_size + 1 : 0));
chn               633 sound/pci/ice1712/ice1712.c 	snd_ice1712_ds_write(ice, chn, ICE1712_DSC_COUNT1, period_size);
chn               634 sound/pci/ice1712/ice1712.c 	snd_ice1712_ds_write(ice, chn, ICE1712_DSC_RATE, rate);
chn               635 sound/pci/ice1712/ice1712.c 	snd_ice1712_ds_write(ice, chn, ICE1712_DSC_VOLUME, 0);
chn               636 sound/pci/ice1712/ice1712.c 	snd_ice1712_ds_write(ice, chn, ICE1712_DSC_CONTROL, tmp);
chn               638 sound/pci/ice1712/ice1712.c 		snd_ice1712_ds_write(ice, chn + 1, ICE1712_DSC_RATE, rate);
chn               639 sound/pci/ice1712/ice1712.c 		snd_ice1712_ds_write(ice, chn + 1, ICE1712_DSC_VOLUME, 0);
chn              1301 sound/pci/rme9652/rme9652.c 	unsigned int chn;
chn              1307 sound/pci/rme9652/rme9652.c 	for (chn = 0; chn < rme9652->ss_channels; ++chn) {
chn              1308 sound/pci/rme9652/rme9652.c 		if (ucontrol->value.integer.value[chn])
chn              1309 sound/pci/rme9652/rme9652.c 			thru_bits |= 1 << chn;
chn              1315 sound/pci/rme9652/rme9652.c 		for (chn = 0; chn < rme9652->ss_channels; ++chn) {
chn              1316 sound/pci/rme9652/rme9652.c 			if (!(change & (1 << chn)))
chn              1318 sound/pci/rme9652/rme9652.c 			rme9652_set_thru(rme9652,chn,thru_bits&(1<<chn));
chn              2058 sound/pci/rme9652/rme9652.c 	int chn;
chn              2063 sound/pci/rme9652/rme9652.c 	if ((chn = rme9652->channel_map[info->channel]) < 0) {
chn              2067 sound/pci/rme9652/rme9652.c 	info->offset = chn * RME9652_CHANNEL_BUFFER_BYTES;