/Zephyr-Core-2.7.6/scripts/ |
D | gen_kobject_list.py | 757 def write_gperf_table(fp, syms, objs, little_endian, static_begin, static_end): argument 758 fp.write(header) 760 fp.write("static struct k_mutex kernel_mutexes[%d] = {\n" 763 fp.write("Z_MUTEX_INITIALIZER(kernel_mutexes[%d])" % i) 765 fp.write(", ") 766 fp.write("};\n") 769 fp.write("static struct z_futex_data futex_data[%d] = {\n" 772 fp.write("Z_FUTEX_DATA_INITIALIZER(futex_data[%d])" % i) 774 fp.write(", ") 775 fp.write("};\n") [all …]
|
D | parse_syscalls.py | 79 with open(path, "r", encoding="utf-8") as fp: 80 contents = fp.read() 98 with open(path, 'r') as fp: 99 old = fp.read() 102 with open(path, 'w') as fp: 103 fp.write(new) 105 with open(path, 'w') as fp: 106 fp.write(new)
|
D | gen_gcov_files.py | 21 with open(input_file, 'r') as fp: 22 for line in fp.readlines(): 60 with open(filename, 'wb') as fp: 61 fp.write(bytes.fromhex(hexdump_val))
|
D | gen_syscalls.py | 379 with open(args.syscall_dispatch, "w") as fp: 390 fp.write(table_template % (weak_defines, 401 with open(args.syscall_list, "w") as fp: 402 fp.write(list_template % ids_as_defines) 412 with open(out_fn, "w") as fp: 413 fp.write(header) 419 with open(mrsh_fn, "w") as fp: 420 fp.write("/* auto-generated by gen_syscalls.py, don't edit */\n\n") 421 fp.write(mrsh_includes[fn] + "\n") 422 fp.write("\n") [all …]
|
D | process_gperf.py | 80 def process_line(line, fp): argument 82 fp.write(line) 88 fp.write("static inline " + line) 122 fp.write(" if (str == s)\n") 129 fp.write(line)
|
D | zephyr_module.py | 369 with open(args.kconfig_out, 'w', encoding="utf-8") as fp: 370 fp.write(kconfig) 373 with open(args.cmake_out, 'w', encoding="utf-8") as fp: 374 fp.write(cmake) 377 with open(args.settings_out, 'w', encoding="utf-8") as fp: 378 fp.write('''\ 388 fp.write(settings) 391 with open(args.twister_out, 'w', encoding="utf-8") as fp: 392 fp.write(twister)
|
D | file2hex.py | 65 with open(args.file, "rb") as fp: 66 for chunk in iter(lambda: fp.read(8), b''):
|
/Zephyr-Core-2.7.6/arch/common/ |
D | gen_isr_tables.py | 78 with open(intlist_path, "rb") as fp: 79 intdata = fp.read() 145 def write_source_file(fp, vt, swt, intlist, syms): argument 146 fp.write(source_header) 151 fp.write("uintptr_t __irq_vector_table _irq_vector_table[%d] = {\n" % nv) 153 fp.write("\t{},\n".format(vt[i])) 154 fp.write("};\n") 159 fp.write("struct _isr_table_entry __sw_isr_table _sw_isr_table[%d] = {\n" 173 fp.write("\t/* Level 2 interrupts start here (offset: {}) */\n". 176 fp.write("\t/* Level 3 interrupts start here (offset: {}) */\n". [all …]
|
/Zephyr-Core-2.7.6/subsys/fs/ |
D | littlefs_fs.c | 32 #define LFS_FILEP(fp) (&((struct lfs_file_data *)(fp->filep))->file) argument 189 static void release_file_data(struct fs_file_t *fp) in release_file_data() argument 191 struct lfs_file_data *fdp = fp->filep; in release_file_data() 197 k_mem_slab_free(&file_data_pool, &fp->filep); in release_file_data() 198 fp->filep = NULL; in release_file_data() 216 static int littlefs_open(struct fs_file_t *fp, const char *path, in littlefs_open() argument 219 struct fs_littlefs *fs = fp->mp->fs_data; in littlefs_open() 222 int ret = k_mem_slab_alloc(&file_data_pool, &fp->filep, K_NO_WAIT); in littlefs_open() 228 struct lfs_file_data *fdp = fp->filep; in littlefs_open() 239 path = fs_impl_strip_prefix(path, fp->mp); in littlefs_open() [all …]
|
/Zephyr-Core-2.7.6/arch/sparc/core/ |
D | interrupt_trap.S | 90 sub %fp, ISF_SIZE, %sp 109 mov %sp, %fp 169 sub %fp, (96+8), %sp 253 ld [%fp + ISF_Y_OFFSET], %g1 256 ldd [%fp + ISF_PSR_OFFSET], %l0 /* psr, pc */ 257 ld [%fp + ISF_NPC_OFFSET], %l2 /* npc */ 261 mov %fp, %g1 262 ldd [%fp + ISF_G2_OFFSET], %g2 263 ld [%fp + ISF_G4_OFFSET], %g4 264 add %fp, ISF_SIZE, %fp
|
/Zephyr-Core-2.7.6/scripts/coccinelle/ |
D | reserved_names.cocci | 48 with open("scripts/coccinelle/symbols.txt", "r") as fp: 49 symbols = fp.read().splitlines() 67 with open("scripts/coccinelle/symbols.txt", "r") as fp: 68 symbols = fp.read().splitlines() 89 with open("scripts/coccinelle/symbols.txt", "r") as fp: 90 symbols = fp.read().splitlines()
|
/Zephyr-Core-2.7.6/tests/subsys/fs/littlefs/src/ |
D | testfs_util.h | 112 int testfs_write_constant(struct fs_file_t *fp, 130 int testfs_verify_constant(struct fs_file_t *fp, 146 int testfs_write_incrementing(struct fs_file_t *fp, 164 int testfs_verify_incrementing(struct fs_file_t *fp,
|
D | testfs_util.c | 87 int testfs_write_constant(struct fs_file_t *fp, in testfs_write_constant() argument 103 ssize_t rc = fs_write(fp, buffer, count); in testfs_write_constant() 115 int testfs_verify_constant(struct fs_file_t *fp, in testfs_verify_constant() argument 129 int rc = fs_read(fp, buffer, count); in testfs_verify_constant() 155 int testfs_write_incrementing(struct fs_file_t *fp, in testfs_write_incrementing() argument 173 ssize_t rc = fs_write(fp, buffer, count); in testfs_write_incrementing() 185 int testfs_verify_incrementing(struct fs_file_t *fp, in testfs_verify_incrementing() argument 199 int rc = fs_read(fp, buffer, count); in testfs_verify_incrementing()
|
/Zephyr-Core-2.7.6/arch/x86/ |
D | gen_idt.py | 87 with open(filename, "wb") as fp: 100 fp.write(data) 107 with open(filename, "wb") as fp: 109 fp.write(struct.pack(map_fmt, i)) 286 with open(filename, "wb") as fp: 288 fp.write(struct.pack("<B", char)) 294 with open(args.kernel, "rb") as fp: 295 kernel = ELFFile(fp)
|
/Zephyr-Core-2.7.6/tests/subsys/fs/fat_fs_api/src/ |
D | test_fat_rename.c | 26 struct fs_file_t fp; in create_file() local 29 fs_file_t_init(&fp); in create_file() 31 res = fs_open(&fp, path, FS_O_CREATE | FS_O_RDWR); in create_file() 33 res = fs_close(&fp); in create_file()
|
/Zephyr-Core-2.7.6/tests/bluetooth/bsim_bt/bsim_test_mesh/src/ |
D | settings_test_backend.c | 79 FILE *fp = fopen(SETTINGS_FILE, "r+"); in settings_custom_load() local 81 if (fp == NULL) { in settings_custom_load() 86 if (fseek(fp, 0, SEEK_SET) < 0) { in settings_custom_load() 93 while (fgets(line, sizeof(line), fp) == line) { in settings_custom_load() 120 return fclose(fp); in settings_custom_load()
|
/Zephyr-Core-2.7.6/tests/subsys/fs/fcb/src/ |
D | main.c | 147 const struct flash_parameters *fp; in test_get_flash_erase_value() local 159 fp = flash_get_parameters(dev); in test_get_flash_erase_value() 160 zassert_true(fp != NULL, "Failed to get flash device parameters"); in test_get_flash_erase_value() 162 fcb_test_erase_value = fp->erase_value; in test_get_flash_erase_value()
|
/Zephyr-Core-2.7.6/arch/nios2/core/ |
D | swap.S | 28 stw fp, 4(sp) 34 ldw fp, 4(sp) 129 stw fp, 12(sp) 139 ldw fp, 12(sp)
|
/Zephyr-Core-2.7.6/tests/kernel/fpu_sharing/generic/src/ |
D | float_context.h | 128 uint64_t fp[32]; member 130 uint32_t fp[32];
|
/Zephyr-Core-2.7.6/subsys/modbus/ |
D | modbus_server.c | 378 float fp; in mbs_fc03_hreg_read() local 382 err = ctx->mbs_user_cb->holding_reg_rd_fp(reg_addr, &fp); in mbs_fc03_hreg_read() 384 memcpy(®, &fp, sizeof(reg)); in mbs_fc03_hreg_read() 488 float fp; in mbs_fc04_inreg_read() local 492 err = ctx->mbs_user_cb->input_reg_rd_fp(reg_addr, &fp); in mbs_fc04_inreg_read() 494 memcpy(®, &fp, sizeof(reg)); in mbs_fc04_inreg_read() 906 float fp; in mbs_fc16_hregs_write() local 909 memcpy(&fp, ®_val, sizeof(float)); in mbs_fc16_hregs_write() 911 err = ctx->mbs_user_cb->holding_reg_wr_fp(addr, fp); in mbs_fc16_hregs_write()
|
/Zephyr-Core-2.7.6/scripts/ci/ |
D | guideline_check.py | 88 with open(args.output, "a+") as fp: 89 fp.write("{}:{}\n".format(
|
D | version_mgr.py | 47 with open("versions.json", "r") as fp: 48 data = json.load(fp)
|
/Zephyr-Core-2.7.6/subsys/bluetooth/controller/util/ |
D | mayfly.h | 20 void (*fp)(void *); member
|
D | mayfly.c | 106 m->fp(m->param); in mayfly_enqueue() 138 if (_state && m->fp == mayfly_ut_mfy) { in dequeue() 211 m->fp(m->param); in mayfly_run()
|
/Zephyr-Core-2.7.6/arch/x86/zefi/ |
D | zefi.py | 28 fp = open(elf_file, "rb") 29 ef = elftools.elf.elffile.ELFFile(fp)
|