Home
last modified time | relevance | path

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

/linux-4.4.14/sound/core/seq/oss/
Dseq_oss_ioctl.c97 if (! is_write_mode(dp->file_mode) || dp->writeq == NULL) in snd_seq_oss_ioctl()
112 return snd_seq_oss_midi_open(dp, dev, dp->file_mode); in snd_seq_oss_ioctl()
115 if (dp->readq == NULL || ! is_read_mode(dp->file_mode)) in snd_seq_oss_ioctl()
120 if (! is_write_mode(dp->file_mode) || dp->writeq == NULL) in snd_seq_oss_ioctl()
161 if (! is_write_mode(dp->file_mode)) in snd_seq_oss_ioctl()
173 if (dp->readq == NULL || !is_read_mode(dp->file_mode)) in snd_seq_oss_ioctl()
185 if (! is_write_mode(dp->file_mode)) in snd_seq_oss_ioctl()
Dseq_oss_init.c241 dp->file_mode = translate_mode(file); in snd_seq_oss_open()
244 if (is_read_mode(dp->file_mode)) { in snd_seq_oss_open()
253 if (is_write_mode(dp->file_mode)) { in snd_seq_oss_open()
275 else if (is_read_mode(dp->file_mode)) in snd_seq_oss_open()
298 int file_mode = 0; in translate_mode() local
300 file_mode |= SNDRV_SEQ_OSS_FILE_WRITE; in translate_mode()
302 file_mode |= SNDRV_SEQ_OSS_FILE_READ; in translate_mode()
304 file_mode |= SNDRV_SEQ_OSS_FILE_NONBLOCK; in translate_mode()
305 return file_mode; in translate_mode()
508 filemode_str(dp->file_mode)); in snd_seq_oss_system_info_read()
[all …]
Dseq_oss_rw.c52 if (readq == NULL || ! is_read_mode(dp->file_mode)) in snd_seq_oss_read()
59 !is_nonblock_mode(dp->file_mode) && result == 0) { in snd_seq_oss_read()
102 if (! is_write_mode(dp->file_mode) || dp->writeq == NULL) in snd_seq_oss_write()
186 if (is_nonblock_mode(dp->file_mode)) in insert_queue()
205 if (dp->readq && is_read_mode(dp->file_mode)) { in snd_seq_oss_poll()
211 if (dp->writeq && is_write_mode(dp->file_mode)) { in snd_seq_oss_poll()
Dseq_oss_midi.h37 int snd_seq_oss_midi_open(struct seq_oss_devinfo *dp, int dev, int file_mode);
38 void snd_seq_oss_midi_open_all(struct seq_oss_devinfo *dp, int file_mode);
Dseq_oss_synth.c231 info->arg.file_mode = dp->file_mode; in snd_seq_oss_synth_setup()
281 if (snd_seq_oss_midi_open(dp, i, dp->file_mode) < 0) in snd_seq_oss_synth_setup_midi()
284 info->arg.file_mode = dp->file_mode; in snd_seq_oss_synth_setup_midi()
420 dp->file_mode) < 0) { in snd_seq_oss_synth_reset()
Dseq_oss_device.h92 int file_mode; /* file access */ member
Dseq_oss_midi.c302 snd_seq_oss_midi_open_all(struct seq_oss_devinfo *dp, int file_mode) in snd_seq_oss_midi_open_all() argument
306 snd_seq_oss_midi_open(dp, i, file_mode); in snd_seq_oss_midi_open_all()
Dseq_oss_event.c79 if (! is_write_mode(dp->file_mode)) in snd_seq_oss_process_event()
/linux-4.4.14/tools/power/acpi/tools/ec/
Dec_access.c209 int file_mode = O_RDONLY; in main() local
215 file_mode = O_WRONLY; in main()
217 file_mode = O_RDONLY; in main()
221 fd = open(SYSFS_PATH, file_mode); in main()
/linux-4.4.14/include/uapi/linux/
Dncp_mount.h40 __kernel_mode_t file_mode; member
65 unsigned long file_mode; member
/linux-4.4.14/fs/ncpfs/
Dinode.c175 inode->i_mode = server->m.file_mode; in ncp_update_attrs()
344 tmp = server->m.file_mode & S_IALLUGO; in ncp_show_options()
395 data->file_mode = NCP_DEFAULT_FILE_MODE; in ncp_parse_options()
427 data->file_mode = optint; in ncp_parse_options()
504 data.file_mode = md->file_mode; in ncp_fill_super()
523 data.file_mode = md->file_mode; in ncp_fill_super()
606 server->m.file_mode = (server->m.file_mode & S_IRWXUGO) | S_IFREG; in ncp_fill_super()
919 if (newmode & ~server->m.file_mode & S_IXUGO) in ncp_notify_change()
922 else if (newmode & ~server->m.file_mode & S_IRUGO) in ncp_notify_change()
926 newmode &= server->m.file_mode; in ncp_notify_change()
Dncp_fs_sb.h35 umode_t file_mode; member
/linux-4.4.14/include/sound/
Dseq_oss.h33 int file_mode; /* file mode - see below */ member
/linux-4.4.14/kernel/
Dkexec_core.c582 if (image->file_mode) in kimage_free()
714 if (image->file_mode) in kimage_load_normal_segment()
750 if (image->file_mode) in kimage_load_normal_segment()
761 if (image->file_mode) in kimage_load_normal_segment()
785 if (image->file_mode) in kimage_load_crash_segment()
813 if (image->file_mode) in kimage_load_crash_segment()
825 if (image->file_mode) in kimage_load_crash_segment()
Dkexec_file.c265 image->file_mode = 1; in kimage_file_alloc_init()
493 if (!image->file_mode) in kexec_add_buffer()
/linux-4.4.14/include/linux/mtd/
Dblktrans.h52 fmode_t file_mode; member
/linux-4.4.14/fs/
Dcompat.c666 compat_mode_t file_mode; member
680 compat_ulong_t file_mode; member
693 n->file_mode = c_n->file_mode; in do_ncp_super_data_conv()
704 n->file_mode = c_n->file_mode; in do_ncp_super_data_conv()
/linux-4.4.14/include/linux/
Dkexec.h158 unsigned int file_mode:1; member
/linux-4.4.14/drivers/mtd/
Dmtdblock.c321 if (mbd->file_mode & FMODE_WRITE) in mtdblock_release()
Dmtd_blkdevs.c216 dev->file_mode = mode; in blktrans_open()
/linux-4.4.14/arch/x86/kernel/
Dmachine_kexec_64.c192 if (!image->file_mode) in arch_update_purgatory()
/linux-4.4.14/fs/cifs/
Dconnect.c1262 vol->dir_mode = vol->file_mode = S_IRUGO | S_IXUGO | S_IWUSR; in cifs_parse_mount_options()
1412 if (vol->file_mode == in cifs_parse_mount_options()
1414 vol->file_mode = S_IALLUGO; in cifs_parse_mount_options()
1580 vol->file_mode = option; in cifs_parse_mount_options()
3272 cifs_sb->mnt_file_mode = pvolume_info->file_mode; in cifs_setup_cifs_sb()
Dcifsglob.h458 umode_t file_mode; member
/linux-4.4.14/Documentation/filesystems/cifs/
DREADME288 can be enabled by specifying file_mode and dir_mode on
302 file_mode If CIFS Unix extensions are not supported by the server
DCHANGES587 Allow file_mode and dir_mode (specified at mount time) to be enforced