Searched refs:file_mode (Results 1 - 24 of 24) sorted by relevance

/linux-4.4.14/sound/core/seq/oss/
H A Dseq_oss_ioctl.c97 if (! is_write_mode(dp->file_mode) || dp->writeq == NULL) snd_seq_oss_ioctl()
112 return snd_seq_oss_midi_open(dp, dev, dp->file_mode); snd_seq_oss_ioctl()
115 if (dp->readq == NULL || ! is_read_mode(dp->file_mode)) snd_seq_oss_ioctl()
120 if (! is_write_mode(dp->file_mode) || dp->writeq == NULL) snd_seq_oss_ioctl()
161 if (! is_write_mode(dp->file_mode)) snd_seq_oss_ioctl()
173 if (dp->readq == NULL || !is_read_mode(dp->file_mode)) snd_seq_oss_ioctl()
185 if (! is_write_mode(dp->file_mode)) snd_seq_oss_ioctl()
H A Dseq_oss_rw.c52 if (readq == NULL || ! is_read_mode(dp->file_mode)) snd_seq_oss_read()
59 !is_nonblock_mode(dp->file_mode) && result == 0) { snd_seq_oss_read()
102 if (! is_write_mode(dp->file_mode) || dp->writeq == NULL) snd_seq_oss_write()
186 if (is_nonblock_mode(dp->file_mode)) insert_queue()
205 if (dp->readq && is_read_mode(dp->file_mode)) { snd_seq_oss_poll()
211 if (dp->writeq && is_write_mode(dp->file_mode)) { snd_seq_oss_poll()
H A Dseq_oss_init.c241 dp->file_mode = translate_mode(file); snd_seq_oss_open()
244 if (is_read_mode(dp->file_mode)) { snd_seq_oss_open()
253 if (is_write_mode(dp->file_mode)) { snd_seq_oss_open()
275 else if (is_read_mode(dp->file_mode)) snd_seq_oss_open()
298 int file_mode = 0; translate_mode() local
300 file_mode |= SNDRV_SEQ_OSS_FILE_WRITE; translate_mode()
302 file_mode |= SNDRV_SEQ_OSS_FILE_READ; translate_mode()
304 file_mode |= SNDRV_SEQ_OSS_FILE_NONBLOCK; translate_mode()
305 return file_mode; translate_mode()
508 filemode_str(dp->file_mode)); snd_seq_oss_system_info_read()
513 if (is_read_mode(dp->file_mode) && dp->readq) snd_seq_oss_system_info_read()
H A 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);
H A Dseq_oss_synth.c231 info->arg.file_mode = dp->file_mode; snd_seq_oss_synth_setup()
281 if (snd_seq_oss_midi_open(dp, i, dp->file_mode) < 0) snd_seq_oss_synth_setup_midi()
284 info->arg.file_mode = dp->file_mode; snd_seq_oss_synth_setup_midi()
420 dp->file_mode) < 0) { snd_seq_oss_synth_reset()
H A Dseq_oss_device.h92 int file_mode; /* file access */ member in struct:seq_oss_devinfo
H A Dseq_oss_midi.c302 snd_seq_oss_midi_open_all(struct seq_oss_devinfo *dp, int file_mode) snd_seq_oss_midi_open_all() argument
306 snd_seq_oss_midi_open(dp, i, file_mode); snd_seq_oss_midi_open_all()
H A Dseq_oss_event.c79 if (! is_write_mode(dp->file_mode)) snd_seq_oss_process_event()
/linux-4.4.14/include/uapi/linux/
H A Dncp_mount.h40 __kernel_mode_t file_mode; member in struct:ncp_mount_data
65 unsigned long file_mode; member in struct:ncp_mount_data_v4
/linux-4.4.14/tools/power/acpi/tools/ec/
H A Dec_access.c209 int file_mode = O_RDONLY; main() local
215 file_mode = O_WRONLY; main()
217 file_mode = O_RDONLY; main()
221 fd = open(SYSFS_PATH, file_mode); main()
/linux-4.4.14/include/sound/
H A Dseq_oss.h33 int file_mode; /* file mode - see below */ member in struct:snd_seq_oss_arg
60 /* flag: file_mode */
/linux-4.4.14/fs/ncpfs/
H A Dinode.c175 inode->i_mode = server->m.file_mode; ncp_update_attrs()
344 tmp = server->m.file_mode & S_IALLUGO; ncp_show_options()
395 data->file_mode = NCP_DEFAULT_FILE_MODE; ncp_parse_options()
427 data->file_mode = optint; ncp_parse_options()
504 data.file_mode = md->file_mode; ncp_fill_super()
523 data.file_mode = md->file_mode; ncp_fill_super()
606 server->m.file_mode = (server->m.file_mode & S_IRWXUGO) | S_IFREG; ncp_fill_super()
919 if (newmode & ~server->m.file_mode & S_IXUGO) ncp_notify_change()
921 /* read for group/world and not in default file_mode */ ncp_notify_change()
922 else if (newmode & ~server->m.file_mode & S_IRUGO) ncp_notify_change()
926 newmode &= server->m.file_mode; ncp_notify_change()
H A Dncp_fs_sb.h35 umode_t file_mode; member in struct:ncp_mount_data_kernel
/linux-4.4.14/include/linux/mtd/
H A Dblktrans.h52 fmode_t file_mode; member in struct:mtd_blktrans_dev
/linux-4.4.14/kernel/
H A Dkexec_core.c582 if (image->file_mode)
714 if (image->file_mode) kimage_load_normal_segment()
750 if (image->file_mode) kimage_load_normal_segment()
761 if (image->file_mode) kimage_load_normal_segment()
785 if (image->file_mode) kimage_load_crash_segment()
813 if (image->file_mode) kimage_load_crash_segment()
825 if (image->file_mode) kimage_load_crash_segment()
H A Dkexec_file.c265 image->file_mode = 1; kimage_file_alloc_init()
493 if (!image->file_mode) kexec_add_buffer()
/linux-4.4.14/fs/
H A Dcompat.c666 compat_mode_t file_mode; member in struct:compat_ncp_mount_data
680 compat_ulong_t file_mode; member in struct:compat_ncp_mount_data_v4
693 n->file_mode = c_n->file_mode; do_ncp_super_data_conv()
704 n->file_mode = c_n->file_mode; do_ncp_super_data_conv()
/linux-4.4.14/drivers/mtd/
H A Dmtdblock.c321 if (mbd->file_mode & FMODE_WRITE) mtdblock_release()
H A Dmtd_blkdevs.c216 dev->file_mode = mode; blktrans_open()
/linux-4.4.14/include/linux/
H A Dkexec.h158 unsigned int file_mode:1; member in struct:kimage
/linux-4.4.14/arch/x86/kernel/
H A Dmachine_kexec_64.c192 if (!image->file_mode) arch_update_purgatory()
/linux-4.4.14/fs/cifs/
H A Dconnect.c184 { Opt_file_mode, "file_mode=%s" },
1262 vol->dir_mode = vol->file_mode = S_IRUGO | S_IXUGO | S_IWUSR; cifs_parse_mount_options()
1412 if (vol->file_mode == cifs_parse_mount_options()
1414 vol->file_mode = S_IALLUGO; cifs_parse_mount_options()
1576 cifs_dbg(VFS, "%s: Invalid file_mode value\n", cifs_parse_mount_options()
1580 vol->file_mode = option; cifs_parse_mount_options()
3272 cifs_sb->mnt_file_mode = pvolume_info->file_mode; cifs_setup_cifs_sb()
H A Dcifsfs.c445 seq_printf(s, ",file_mode=0%ho,dir_mode=0%ho", cifs_show_options()
H A Dcifsglob.h458 umode_t file_mode; member in struct:smb_vol

Completed in 422 milliseconds