Home
last modified time | relevance | path

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

12

/Zephyr-Core-2.7.6/scripts/
Dgen_kobject_list.py757 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 …]
Dparse_syscalls.py79 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)
Dgen_gcov_files.py21 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))
Dgen_syscalls.py379 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 …]
Dprocess_gperf.py80 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)
Dzephyr_module.py369 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)
Dfile2hex.py65 with open(args.file, "rb") as fp:
66 for chunk in iter(lambda: fp.read(8), b''):
/Zephyr-Core-2.7.6/arch/common/
Dgen_isr_tables.py78 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/
Dlittlefs_fs.c32 #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/
Dinterrupt_trap.S90 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/
Dreserved_names.cocci48 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/
Dtestfs_util.h112 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,
Dtestfs_util.c87 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/
Dgen_idt.py87 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/
Dtest_fat_rename.c26 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/
Dsettings_test_backend.c79 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/
Dmain.c147 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/
Dswap.S28 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/
Dfloat_context.h128 uint64_t fp[32]; member
130 uint32_t fp[32];
/Zephyr-Core-2.7.6/subsys/modbus/
Dmodbus_server.c378 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(&reg, &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(&reg, &fp, sizeof(reg)); in mbs_fc04_inreg_read()
906 float fp; in mbs_fc16_hregs_write() local
909 memcpy(&fp, &reg_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/
Dguideline_check.py88 with open(args.output, "a+") as fp:
89 fp.write("{}:{}\n".format(
Dversion_mgr.py47 with open("versions.json", "r") as fp:
48 data = json.load(fp)
/Zephyr-Core-2.7.6/subsys/bluetooth/controller/util/
Dmayfly.h20 void (*fp)(void *); member
Dmayfly.c106 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/
Dzefi.py28 fp = open(elf_file, "rb")
29 ef = elftools.elf.elffile.ELFFile(fp)

12