Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/sound/core/seq/oss/
H A 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 …]
H A 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()
H A 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()
H A 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);
H A 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()
H A Dseq_oss_device.h80 int file_mode; /* file access */ member
H A Dseq_oss_midi.c292 snd_seq_oss_midi_open_all(struct seq_oss_devinfo *dp, int file_mode) in snd_seq_oss_midi_open_all() argument
296 snd_seq_oss_midi_open(dp, i, file_mode); in snd_seq_oss_midi_open_all()
H A Dseq_oss_event.c67 if (! is_write_mode(dp->file_mode)) in snd_seq_oss_process_event()
/OK3568_Linux_fs/kernel/tools/power/acpi/tools/ec/
H A 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()
/OK3568_Linux_fs/yocto/poky/bitbake/lib/bb/compress/
H A D_pipecompress.py53 file_mode = mode.replace("t", "")
55 binary_file = cls(filename, file_mode, **kwargs)
57 binary_file = cls(None, file_mode, fileobj=filename, **kwargs)
/OK3568_Linux_fs/kernel/kernel/
H A Dkexec_core.c659 if (image->file_mode) in kimage_free()
791 if (image->file_mode) in kimage_load_normal_segment()
827 if (image->file_mode) in kimage_load_normal_segment()
838 if (image->file_mode) in kimage_load_normal_segment()
864 if (image->file_mode) in kimage_load_crash_segment()
893 if (image->file_mode) in kimage_load_crash_segment()
906 if (image->file_mode) in kimage_load_crash_segment()
H A Dkexec_file.c285 image->file_mode = 1; in kimage_file_alloc_init()
648 if (!kbuf->image->file_mode) in kexec_add_buffer()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/
H A Ddhd_fwtrace.c328 uint32 file_mode; in fwtrace_open_file() local
338 file_mode = O_CREAT | O_WRONLY | O_SYNC; in fwtrace_open_file()
351 filp_open(fwtrace_info->trace_file, file_mode, 0664); in fwtrace_open_file()
H A Ddhd_pktlog.c1197 uint32 file_mode; in dhd_pktlog_dump_write_file() local
1205 file_mode = O_CREAT | O_WRONLY; in dhd_pktlog_dump_write_file()
1207 w_pcap_fp = filp_open(pktlogdump_path, file_mode, 0664); in dhd_pktlog_dump_write_file()
/OK3568_Linux_fs/kernel/include/sound/
H A Dseq_oss.h20 int file_mode; /* file mode - see below */ member
/OK3568_Linux_fs/kernel/include/linux/mtd/
H A Dblktrans.h37 fmode_t file_mode; member
/OK3568_Linux_fs/yocto/poky/meta/recipes-gnome/gnome/gconf/
H A Dcreate_config_directory.patch22 file_mode = dir_mode & (~0111);
/OK3568_Linux_fs/kernel/arch/parisc/kernel/
H A Dkexec.c45 if (kimage->file_mode) { in kexec_image_info()
/OK3568_Linux_fs/kernel/Documentation/sound/designs/
H A 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
/OK3568_Linux_fs/kernel/include/linux/
H A Dkexec.h307 unsigned int file_mode:1; member
/OK3568_Linux_fs/kernel/drivers/mtd/
H A Dmtdblock.c289 if (mbd->file_mode & FMODE_WRITE) in mtdblock_release()
H A Dmtd_blkdevs.c233 dev->file_mode = mode; in blktrans_open()
/OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/
H A Ddhd_pktlog.c1197 uint32 file_mode; in dhd_pktlog_dump_write_file() local
1205 file_mode = O_CREAT | O_WRONLY; in dhd_pktlog_dump_write_file()
1207 w_pcap_fp = dhd_filp_open(pktlogdump_path, file_mode, 0664); in dhd_pktlog_dump_write_file()
/OK3568_Linux_fs/kernel/fs/cifs/
H A Dconnect.c1442 vol->dir_mode = vol->file_mode = S_IRUGO | S_IXUGO | S_IWUSR; in cifs_parse_mount_options()
1621 if (vol->file_mode == in cifs_parse_mount_options()
1623 vol->file_mode = S_IALLUGO; in cifs_parse_mount_options()
1826 vol->file_mode = option; in cifs_parse_mount_options()
3934 cifs_sb->mnt_file_mode = pvolume_info->file_mode; in cifs_setup_cifs_sb()
/OK3568_Linux_fs/external/rkwifibt/drivers/infineon/
H A Ddhd_linux.c16203 uint32 file_mode; local
16214 file_mode = O_CREAT | O_WRONLY | O_SYNC;
16218 file_mode = O_CREAT | O_WRONLY | O_SYNC;
16222 file_mode = O_CREAT | O_WRONLY;
16227 file_mode = O_CREAT | O_WRONLY | O_SYNC;
16237 file_mode = O_CREAT | O_WRONLY | O_SYNC;
16239 struct file *fp = filp_open(memdump_path, file_mode, 0664);
16253 file_mode = O_CREAT | O_WRONLY;
16264 ret = write_file(memdump_path, file_mode, buf, size);
17483 uint32 file_mode = O_RDONLY; local
[all …]

12