Lines Matching refs:filemode
50 unsigned long filemode; /* open status of file */ member
78 if (!test_bit(SERIAL_MODE_OUTPUT_OPEN, &drvdata->filemode)) in snd_serial_generic_tx_work()
109 if (!test_bit(SERIAL_MODE_INPUT_OPEN, &drvdata->filemode)) in snd_serial_generic_receive_buf()
126 if (drvdata->filemode) in snd_serial_generic_ensure_serdev_open()
157 set_bit(SERIAL_MODE_INPUT_OPEN, &drvdata->filemode); in snd_serial_generic_input_open()
169 clear_bit(SERIAL_MODE_INPUT_OPEN, &drvdata->filemode); in snd_serial_generic_input_close()
170 clear_bit(SERIAL_MODE_INPUT_TRIGGERED, &drvdata->filemode); in snd_serial_generic_input_close()
174 if (!drvdata->filemode) in snd_serial_generic_input_close()
185 set_bit(SERIAL_MODE_INPUT_TRIGGERED, &drvdata->filemode); in snd_serial_generic_input_trigger()
187 clear_bit(SERIAL_MODE_INPUT_TRIGGERED, &drvdata->filemode); in snd_serial_generic_input_trigger()
202 set_bit(SERIAL_MODE_OUTPUT_OPEN, &drvdata->filemode); in snd_serial_generic_output_open()
215 clear_bit(SERIAL_MODE_OUTPUT_OPEN, &drvdata->filemode); in snd_serial_generic_output_close()
216 clear_bit(SERIAL_MODE_OUTPUT_TRIGGERED, &drvdata->filemode); in snd_serial_generic_output_close()
218 if (!drvdata->filemode) in snd_serial_generic_output_close()
232 set_bit(SERIAL_MODE_OUTPUT_TRIGGERED, &drvdata->filemode); in snd_serial_generic_output_trigger()
234 clear_bit(SERIAL_MODE_OUTPUT_TRIGGERED, &drvdata->filemode); in snd_serial_generic_output_trigger()