/external/igt-gpu-tools/tests/i915/ |
D | i915_pm_rps.c | 63 FILE *filp; member 75 static int readval(FILE *filp) in readval() argument 80 rewind(filp); in readval() 81 scanned = fscanf(filp, "%d", &val); in readval() 92 freqs[i] = readval(sysfs_files[i].filp); in read_freqs() 127 static int do_writeval(FILE *filp, int val, int lerrno, bool readback_check) in do_writeval() argument 131 orig = readval(filp); in do_writeval() 132 rewind(filp); in do_writeval() 133 ret = fprintf(filp, "%d", val); in do_writeval() 139 igt_assert_eq(readval(filp), orig); in do_writeval() [all …]
|
/external/ltp/testcases/kernel/device-drivers/drm/kernel_space/ |
D | str_drm.h | 34 extern int tdrm_test_interface(struct inode *inode, struct file *filp, 36 extern int tdrm_test_stub_register(struct inode *inode,struct file *filp, 38 extern int tdrm_test_stub_unregister(struct inode *inode,struct file *filp, 40 extern int tdrm_test_uninit_agp(struct inode *inode,struct file *filp, 42 extern int tdrm_test_init_agp(struct inode *inode,struct file *filp, 44 extern int tdrm_test_add_magic(struct inode *inode,struct file *filp, 46 extern int tdrm_test_remove_magic(struct inode *inode,struct file *filp, 48 extern int tdrm_test_ctxbitmap_init(struct inode *inode,struct file *filp, 50 extern int tdrm_test_ctxbitmap_cleanup(struct inode *inode,struct file *filp, 52 extern int tdrm_test_alloc_pages(struct inode *inode,struct file *filp, [all …]
|
D | tdrm.c | 81 int tdrm_test_stub_register(struct inode *inode, struct file *filp, in tdrm_test_stub_register() argument 84 drm_file_t *priv = filp->private_data; in tdrm_test_stub_register() 92 int tdrm_test_stub_unregister(struct inode *inode, struct file *filp, in tdrm_test_stub_unregister() argument 99 int tdrm_test_uninit_agp(struct inode *inode, struct file *filp, in tdrm_test_uninit_agp() argument 106 int tdrm_test_init_agp(struct inode *inode, struct file *filp, in tdrm_test_init_agp() argument 113 int tdrm_test_add_magic(struct inode *inode, struct file *filp, in tdrm_test_add_magic() argument 116 drm_file_t *priv = filp->private_data; in tdrm_test_add_magic() 122 int tdrm_test_remove_magic(struct inode *inode, struct file *filp, in tdrm_test_remove_magic() argument 125 drm_file_t *priv = filp->private_data; in tdrm_test_remove_magic() 131 int tdrm_test_ctxbitmap_init(struct inode *inode, struct file *filp, in tdrm_test_ctxbitmap_init() argument [all …]
|
/external/mesa3d/src/amd/common/ |
D | sid_tables.py | 66 def emit(self, filp, name, static=True): argument 79 filp.write('%sconst char %s[] =\n%s;\n' % ( 118 def emit(self, filp, name, static=True): argument 134 filp.write('%sconst %s %s[] = {\n%s\n};\n' % ( 208 def emit(self, filp, string_table, idx_table): argument 216 filp.write('static const struct si_field sid_fields_table[] = {\n') 219 filp.write('\t/* %s */\n' % (start)) 221 filp.write('\t%s,\n' % (field.format(string_table, idx_table))) 223 filp.write('};\n') 226 def parse_packet3(filp): argument [all …]
|
D | gfx10_format_table.py | 258 with open(sys.argv[2], 'r') as filp: 259 db = RegisterDatabase.from_json(json.load(filp))
|
/external/igt-gpu-tools/tools/ |
D | intel_gpu_frequency.c | 50 FILE *filp; member 81 if (freq_info->filp) in initialize_freq_info() 86 freq_info->filp = fopen(freq_info->path, freq_info->mode); in initialize_freq_info() 87 assert(freq_info->filp); in initialize_freq_info() 103 rewind(freq_info->filp); in set_frequency() 104 assert(fprintf(freq_info->filp, "%d", val) > 0); in set_frequency() 114 rewind(freq_info->filp); in get_frequency() 115 assert(fscanf(freq_info->filp, "%d", &val)==1); in get_frequency() 329 if (info[i].filp) { in main() 330 fclose(info[i].filp); in main()
|
/external/selinux/libselinux/src/ |
D | label_db.c | 241 FILE *filp; in db_init() local 280 if ((filp = fopen(path, "rb")) == NULL) { in db_init() 284 if (fstat(fileno(filp), &sb) < 0) { in db_init() 286 fclose(filp); in db_init() 291 fclose(filp); in db_init() 300 while (getline(&line_buf, &line_len, filp) > 0) { in db_init() 327 if (digest_add_specfile(rec->digest, filp, NULL, sb.st_size, path) < 0) in db_init() 332 fclose(filp); in db_init() 345 fclose(filp); in db_init()
|
/external/mesa3d/src/amd/registers/ |
D | makeregheader.py | 259 def print(self, filp, sort='address'): argument 289 print('/* Automatically generated by amd/registers/makeregheader.py */\n', file=filp) 290 print(file=filp) 291 print(COPYRIGHT.strip(), file=filp) 292 print(file=filp) 295 print('#ifndef {self.guard}'.format(**locals()), file=filp) 296 print('#define {self.guard}\n'.format(**locals()), file=filp) 306 print('#define {define_name} 0x{address}{comment}'.format(**locals()), file=filp) 325 .format(**locals()), file=filp) 327 .format(**locals()), file=filp) [all …]
|
D | mergedbs.py | 43 with open(filename, 'r') as filp: 44 regdb.update(RegisterDatabase.from_json(json.load(filp)))
|
D | canonicalize.py | 71 def json_canonicalize(filp, chips = None): argument 72 regdb = RegisterDatabase.from_json(json.load(filp))
|
D | parseheader.py | 82 def parse_header(self, filp): argument 91 for line in filp:
|
/external/mesa3d/src/gallium/drivers/r600/ |
D | egd_tables.py | 56 def emit(self, filp, name, static=True): argument 69 filp.write('%sconst char %s[] =\n%s;\n' % ( 108 def emit(self, filp, name, static=True): argument 124 filp.write('%sconst %s %s[] = {\n%s\n};\n' % (
|
/external/u-boot/drivers/usb/gadget/ |
D | storage_common.c | 295 #define fsg_lun_is_open(curlun) ((curlun)->filp != NULL)
|