Home
last modified time | relevance | path

Searched refs:file_mode (Results 1 – 22 of 22) sorted by relevance

/Linux-v5.4/sound/core/seq/oss/
Dseq_oss_ioctl.c84 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()
Dseq_oss_init.c228 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 …]
Dseq_oss_rw.c39 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()
Dseq_oss_midi.h24 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);
Dseq_oss_synth.c219 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()
Dseq_oss_device.h80 int file_mode; /* file access */ member
Dseq_oss_midi.c290 snd_seq_oss_midi_open_all(struct seq_oss_devinfo *dp, int file_mode) in snd_seq_oss_midi_open_all() argument
294 snd_seq_oss_midi_open(dp, i, file_mode); in snd_seq_oss_midi_open_all()
Dseq_oss_event.c67 if (! is_write_mode(dp->file_mode)) in snd_seq_oss_process_event()
/Linux-v5.4/tools/power/acpi/tools/ec/
Dec_access.c208 int file_mode = O_RDONLY; in main() local
214 file_mode = O_WRONLY; in main()
216 file_mode = O_RDONLY; in main()
220 fd = open(SYSFS_PATH, file_mode); in main()
/Linux-v5.4/kernel/
Dkexec_core.c653 if (image->file_mode) in kimage_free()
785 if (image->file_mode) in kimage_load_normal_segment()
821 if (image->file_mode) in kimage_load_normal_segment()
832 if (image->file_mode) in kimage_load_normal_segment()
858 if (image->file_mode) in kimage_load_crash_segment()
887 if (image->file_mode) in kimage_load_crash_segment()
900 if (image->file_mode) in kimage_load_crash_segment()
Dkexec_file.c326 image->file_mode = 1; in kimage_file_alloc_init()
668 if (!kbuf->image->file_mode) in kexec_add_buffer()
/Linux-v5.4/include/sound/
Dseq_oss.h20 int file_mode; /* file mode - see below */ member
/Linux-v5.4/include/linux/mtd/
Dblktrans.h37 fmode_t file_mode; member
/Linux-v5.4/arch/parisc/kernel/
Dkexec.c45 if (kimage->file_mode) { in kexec_image_info()
/Linux-v5.4/include/linux/
Dkexec.h270 unsigned int file_mode:1; member
/Linux-v5.4/Documentation/sound/designs/
Dseq-oss.rst223 int file_mode;
230 The first three fields, ``app_index``, ``file_mode`` and ``seq_mode``
233 ``file_mode`` is bit-flags indicating the file operation mode. See
/Linux-v5.4/drivers/mtd/
Dmtdblock.c286 if (mbd->file_mode & FMODE_WRITE) in mtdblock_release()
Dmtd_blkdevs.c233 dev->file_mode = mode; in blktrans_open()
/Linux-v5.4/arch/x86/kernel/
Dmachine_kexec_64.c307 if (!image->file_mode) in arch_update_purgatory()
/Linux-v5.4/fs/cifs/
Dconnect.c1653 vol->dir_mode = vol->file_mode = S_IRUGO | S_IXUGO | S_IWUSR; in cifs_parse_mount_options()
1825 if (vol->file_mode == in cifs_parse_mount_options()
1827 vol->file_mode = S_IALLUGO; in cifs_parse_mount_options()
2020 vol->file_mode = option; in cifs_parse_mount_options()
4060 cifs_sb->mnt_file_mode = pvolume_info->file_mode; in cifs_setup_cifs_sb()
Dcifsglob.h542 umode_t file_mode; member
/Linux-v5.4/Documentation/admin-guide/cifs/
Dusage.rst318 can be enabled by specifying file_mode and dir_mode on
337 file_mode