Lines Matching refs:open

41 			if (chip->open & SB_OPEN_MIDI_INPUT_TRIGGER) {  in snd_sb8dsp_midi_interrupt()
60 if (chip->open & ~valid_open_flags) { in snd_sb8dsp_midi_input_open()
64 chip->open |= SB_OPEN_MIDI_INPUT; in snd_sb8dsp_midi_input_open()
66 if (!(chip->open & SB_OPEN_MIDI_OUTPUT)) { in snd_sb8dsp_midi_input_open()
87 if (chip->open & ~valid_open_flags) { in snd_sb8dsp_midi_output_open()
91 chip->open |= SB_OPEN_MIDI_OUTPUT; in snd_sb8dsp_midi_output_open()
93 if (!(chip->open & SB_OPEN_MIDI_INPUT)) { in snd_sb8dsp_midi_output_open()
111 chip->open &= ~(SB_OPEN_MIDI_INPUT | SB_OPEN_MIDI_INPUT_TRIGGER); in snd_sb8dsp_midi_input_close()
113 if (!(chip->open & SB_OPEN_MIDI_OUTPUT)) { in snd_sb8dsp_midi_input_close()
130 chip->open &= ~(SB_OPEN_MIDI_OUTPUT | SB_OPEN_MIDI_OUTPUT_TRIGGER); in snd_sb8dsp_midi_output_close()
132 if (!(chip->open & SB_OPEN_MIDI_INPUT)) { in snd_sb8dsp_midi_output_close()
149 if (!(chip->open & SB_OPEN_MIDI_INPUT_TRIGGER)) { in snd_sb8dsp_midi_input_trigger()
152 chip->open |= SB_OPEN_MIDI_INPUT_TRIGGER; in snd_sb8dsp_midi_input_trigger()
155 if (chip->open & SB_OPEN_MIDI_INPUT_TRIGGER) { in snd_sb8dsp_midi_input_trigger()
158 chip->open &= ~SB_OPEN_MIDI_INPUT_TRIGGER; in snd_sb8dsp_midi_input_trigger()
176 chip->open &= ~SB_OPEN_MIDI_OUTPUT_TRIGGER; in snd_sb8dsp_midi_output_write()
220 if (!(chip->open & SB_OPEN_MIDI_OUTPUT_TRIGGER)) { in snd_sb8dsp_midi_output_trigger()
222 chip->open |= SB_OPEN_MIDI_OUTPUT_TRIGGER; in snd_sb8dsp_midi_output_trigger()
225 if (chip->open & SB_OPEN_MIDI_OUTPUT_TRIGGER) { in snd_sb8dsp_midi_output_trigger()
226 chip->open &= ~SB_OPEN_MIDI_OUTPUT_TRIGGER; in snd_sb8dsp_midi_output_trigger()
237 .open = snd_sb8dsp_midi_output_open,
244 .open = snd_sb8dsp_midi_input_open,