Searched refs:file_mode (Results 1 – 8 of 8) sorted by relevance
/sound/core/seq/oss/ |
D | seq_oss_ioctl.c | 84 if (! is_write_mode(dp->file_mode) || dp->writeq == NULL) in snd_seq_oss_ioctl() 99 return snd_seq_oss_midi_open(dp, dev, dp->file_mode); in snd_seq_oss_ioctl() 102 if (dp->readq == NULL || ! is_read_mode(dp->file_mode)) in snd_seq_oss_ioctl() 107 if (! is_write_mode(dp->file_mode) || dp->writeq == NULL) in snd_seq_oss_ioctl() 148 if (! is_write_mode(dp->file_mode)) in snd_seq_oss_ioctl() 160 if (dp->readq == NULL || !is_read_mode(dp->file_mode)) in snd_seq_oss_ioctl() 172 if (! is_write_mode(dp->file_mode)) in snd_seq_oss_ioctl()
|
D | seq_oss_init.c | 228 dp->file_mode = translate_mode(file); in snd_seq_oss_open() 231 if (is_read_mode(dp->file_mode)) { in snd_seq_oss_open() 240 if (is_write_mode(dp->file_mode)) { in snd_seq_oss_open() 262 else if (is_read_mode(dp->file_mode)) in snd_seq_oss_open() 285 int file_mode = 0; in translate_mode() local 287 file_mode |= SNDRV_SEQ_OSS_FILE_WRITE; in translate_mode() 289 file_mode |= SNDRV_SEQ_OSS_FILE_READ; in translate_mode() 291 file_mode |= SNDRV_SEQ_OSS_FILE_NONBLOCK; in translate_mode() 292 return file_mode; in translate_mode() 495 filemode_str(dp->file_mode)); in snd_seq_oss_system_info_read() [all …]
|
D | seq_oss_rw.c | 39 if (readq == NULL || ! is_read_mode(dp->file_mode)) in snd_seq_oss_read() 46 !is_nonblock_mode(dp->file_mode) && result == 0) { in snd_seq_oss_read() 89 if (! is_write_mode(dp->file_mode) || dp->writeq == NULL) in snd_seq_oss_write() 174 !is_nonblock_mode(dp->file_mode)); in insert_queue() 189 if (dp->readq && is_read_mode(dp->file_mode)) { in snd_seq_oss_poll() 195 if (dp->writeq && is_write_mode(dp->file_mode)) { in snd_seq_oss_poll()
|
D | seq_oss_midi.h | 24 int snd_seq_oss_midi_open(struct seq_oss_devinfo *dp, int dev, int file_mode); 25 void snd_seq_oss_midi_open_all(struct seq_oss_devinfo *dp, int file_mode);
|
D | seq_oss_synth.c | 219 info->arg.file_mode = dp->file_mode; in snd_seq_oss_synth_setup() 269 if (snd_seq_oss_midi_open(dp, i, dp->file_mode) < 0) in snd_seq_oss_synth_setup_midi() 272 info->arg.file_mode = dp->file_mode; in snd_seq_oss_synth_setup_midi() 408 dp->file_mode) < 0) { in snd_seq_oss_synth_reset()
|
D | seq_oss_device.h | 80 int file_mode; /* file access */ member
|
D | seq_oss_midi.c | 294 snd_seq_oss_midi_open_all(struct seq_oss_devinfo *dp, int file_mode) in snd_seq_oss_midi_open_all() argument 298 snd_seq_oss_midi_open(dp, i, file_mode); in snd_seq_oss_midi_open_all()
|
D | seq_oss_event.c | 67 if (! is_write_mode(dp->file_mode)) in snd_seq_oss_process_event()
|