Home
last modified time | relevance | path

Searched full:write (Results 1 – 25 of 2093) sorted by relevance

12345678910>>...84

/Zephyr-latest/scripts/utils/
Dgen_util_macros.py24 file.write("/**\n")
25 file.write(" * @cond INTERNAL_HIDDEN\n")
26 file.write(" */\n")
30 file.write("/**\n")
31 file.write(" * INTERNAL_HIDDEN @endcond\n")
32 file.write(" */\n")
38 file.write("\n")
39 file.write("#ifndef ZEPHYR_INCLUDE_SYS_UTIL_LOOPS_H_\n")
40 …file.write("#error \"This header should not be used directly, please include util_loops.h instead\…
41 file.write("#endif /* ZEPHYR_INCLUDE_SYS_UTIL_LOOPS_H_ */\n")
[all …]
/Zephyr-latest/samples/drivers/soc_flash_nrf/
DREADME.rst16 Within the sample, user may observe how read/write/erase operations
46 Test 2: Flash write (word array 1)
47 Attempted to write 1122 at 0x82000
51 Attempted to write aabb at 0x82004
55 Attempted to write abcd at 0x82008
59 Attempted to write 1234 at 0x8200c
67 Test 4: Flash write (word array 2)
68 Attempted to write 1234 at 0x82000
72 Attempted to write aabb at 0x82004
76 Attempted to write abcd at 0x82008
[all …]
/Zephyr-latest/scripts/west_commands/zspdx/
Dwriter.py29 …f.write(f"Relationship: {_normalize_spdx_name(rln.refA)} {rln.rlnType} {_normalize_spdx_name(rln.r…
38 f.write(f"""FileName: ./{bf.relpath}
43 f.write(f"FileChecksum: SHA256: {bf.sha256}\n")
45 f.write(f"FileChecksum: MD5: {bf.md5}\n")
46 f.write(f"LicenseConcluded: {bf.concludedLicense}\n")
48 f.write(f"LicenseInfoInFile: NONE\n")
51 f.write(f"LicenseInfoInFile: {licInfoInFile}\n")
52 f.write(f"FileCopyrightText: {bf.copyrightText}\n\n")
54 # write file relationships
58 f.write("\n")
[all …]
/Zephyr-latest/include/zephyr/storage/
Dstream_flash.h36 * @brief Signature for callback invoked after flash write completes.
39 * data read back from the flash after a flash write has completed.
41 * instance by using a SHA function). The write buffer 'buf' provided in
57 uint8_t *buf; /* Write buffer */
58 size_t buf_len; /* Length of write buffer */
59 size_t buf_bytes; /* Number of bytes currently stored in write buf */
62 size_t offset; /* Offset from base of flash device to write area */
63 size_t available; /* Available bytes in write area */
65 stream_flash_callback_t callback; /* Callback invoked after write op */
70 size_t write_block_size; /* Offset/size device write alignment */
[all …]
/Zephyr-latest/include/zephyr/sd/
Dsdio.h28 * and write data from the card.
78 * @brief Write byte to SDIO register
81 * @param func: function to write to
82 * @param reg: register address to write to
83 * @param write_val: value to write to register
84 * @retval 0 write succeeded
86 * @retval -ETIMEDOUT: card write timed out
92 * @brief Write byte to SDIO register, and read result
94 * Writes byte to SDIO register, and reads the register after write
95 * @param func: function to write to
[all …]
Dmmc.h24 * @brief Write blocks to MMC card from buffer
28 * @param card MMC card to write from
29 * @param wbuf write buffer
30 * @param start_block first block to write to
31 * @param num_blocks number of blocks to write
32 * @retval 0 write succeeded
34 * @retval -ETIMEDOUT: card write timed out
Dsdmmc.h24 * @brief Write blocks to SD card from buffer
28 * @param card SD card to write from
29 * @param wbuf write buffer
30 * @param start_block first block to write to
31 * @param num_blocks number of blocks to write
32 * @retval 0 write succeeded
34 * @retval -ETIMEDOUT: card write timed out
/Zephyr-latest/include/zephyr/drivers/misc/ft8xx/
Dft8xx_common.h22 * @brief FT8xx functions to write and read memory
29 * @brief Write 1 byte (8 bits) to FT8xx memory
31 * @param address Memory address to write to
32 * @param data Byte to write
37 * @brief Write 2 bytes (16 bits) to FT8xx memory
39 * @param address Memory address to write to
40 * @param data Value to write
45 * @brief Write 4 bytes (32 bits) to FT8xx memory
47 * @param address Memory address to write to
48 * @param data Value to write
/Zephyr-latest/subsys/logging/
DKconfig.filtering22 - 0 OFF, do not write by default
23 - 1 ERROR, default to only write LOG_LEVEL_ERR
24 - 2 WARNING, default to write LOG_LEVEL_WRN
25 - 3 INFO, default to write LOG_LEVEL_INFO
26 - 4 DEBUG, default to write LOG_LEVEL_DBG
40 - 1 ERROR, override to write LOG_LEVEL_ERR
41 - 2 WARNING, override to write LOG_LEVEL_WRN
42 - 3 INFO, override to write LOG_LEVEL_INFO
43 - 4 DEBUG, override to write LOG_LEVEL_DBG
/Zephyr-latest/scripts/ci/coverage/
Dcoverage_analysis.py300 outfile.write(json_object)
350 worksheet.write(row,col,"Components",header_format)
351 worksheet.write(row,col+1,"TestSuites",header_format)
352 worksheet.write(row,col+2,"Runnable",header_format)
353 worksheet.write(row,col+3,"Build only",header_format)
354 worksheet.write(row,col+4,"Simulators only",header_format)
355 worksheet.write(row,col+5,"Hardware only",header_format)
356 worksheet.write(row,col+6,"Mixed",header_format)
357 worksheet.write(row,col+7,"Coverage [%]",header_format)
358 worksheet.write(row,col+8,"Total Functions",header_format)
[all …]
/Zephyr-latest/tests/drivers/smbus/smbus_api/src/
Dtest_smbus_qemu.c11 * @brief TestPurpose: verify SMBUS can read and write
45 /* Test SMBus Read / Write Byte Data */ in ZTEST_USER()
53 zassert_ok(ret, "SMBUS write byte data failed, ret %d", ret); in ZTEST_USER()
62 /* Test SMBus Read / Write Word Data */ in ZTEST_USER()
69 zassert_ok(ret, "SMBUS write word data failed, ret %d", ret); in ZTEST_USER()
78 /* Test SMBus Read / Write Byte on special Qemu SMBus peripheral */ in ZTEST_USER()
84 /* Write byte data to EEPROM device */ in ZTEST_USER()
87 zassert_ok(ret, "SMBUS write byte data failed, ret %d", ret); in ZTEST_USER()
91 * operations: write, which sets offset, followed by read, which in ZTEST_USER()
96 zassert_ok(ret, "SMBUS write byte failed, ret %d", ret); in ZTEST_USER()
[all …]
/Zephyr-latest/drivers/flash/
DKconfig23 Device does not do erase-on-write (erase-on-program, auto-erase
24 on write) and requires explicit erase procedure to be programmed
29 been separated from write, EEPROM has erase-on-write, giving
30 it advantage of higher write speeds at a cost of larger erase block.
32 write without erase is not allowed, taking the above restrictions,
33 it only states that write of a random information will require
51 Note that the device may have erase-on-write (auto-erase),
65 can change storage bits, by write, from any value to opposite
104 write, read and erase.
109 bool "Flash read/write/erase test commands"
[all …]
/Zephyr-latest/samples/net/cloud/aws_iot_mqtt/src/creds/
Dconvert_keys.py15 f.write("#include <stdint.h>\n")
16 f.write(f"const uint8_t {name}[] = {{")
18 f.write("\n\t")
19 f.write(", ".join(f"0x{b:02x}" for b in data[i:i+16]))
20 f.write(",")
21 f.write("\n};\n")
22 f.write(f"const uint32_t {name}_len = sizeof({name});\n")
/Zephyr-latest/arch/xtensa/core/
Dgen_zsr.py88 f.write("/* Generated File, see gen_zsr.py */\n")
89 f.write("#ifndef ZEPHYR_ZSR_H\n")
90 f.write("#define ZEPHYR_ZSR_H\n")
92 f.write(f"# define ZSR_{need} {regs[i]}\n")
93 f.write(f"# define ZSR_{need}_STR \"{regs[i]}\"\n")
97 f.write(f"# define ZSR_EXTRA{i - len(NEEDED)} {regs[i]}\n")
98 f.write(f"# define ZSR_EXTRA{i - len(NEEDED)}_STR \"{regs[i]}\"\n")
101 f.write(f"# define ZSR_RFI_LEVEL {maxint}\n")
102 f.write(f"# define ZSR_EPC EPC{maxint}\n")
103 f.write(f"# define ZSR_EPS EPS{maxint}\n")
[all …]
/Zephyr-latest/include/zephyr/drivers/misc/coresight/
Dstmesp.h92 /** @brief Write flag to STMESP
97 * @param guaranteed If true guaranteed write and invariant if false.
116 /** @brief Write 8 bit data to STMESP
119 * @param data Byte to write.
121 * @param marked If true marked write.
122 * @param guaranteed If true guaranteed write and invariant if false.
130 /** @brief Write 16 bit data to STMESP
133 * @param data Half word to write.
135 * @param marked If true marked write.
136 * @param guaranteed If true guaranteed write and invariant if false.
[all …]
/Zephyr-latest/tests/boards/altera_max10/i2c_master/src/
Di2c_master.c36 /* write to HPD control registers */ in powerup_adv7513()
39 TC_PRINT("i2c write fail\n"); in powerup_adv7513()
49 /* write to power control registers */ in powerup_adv7513()
52 TC_PRINT("i2c write fail\n"); in powerup_adv7513()
87 TC_PRINT("*** Running i2c read/write tests ***\n"); in test_i2c_adv7513()
102 /* Test i2c byte write */ in test_i2c_adv7513()
106 TC_PRINT("i2c write fail\n"); in test_i2c_adv7513()
116 TC_PRINT("i2c write test failed 0x%x\n", data); in test_i2c_adv7513()
119 TC_PRINT("i2c write & verify test passed\n"); in test_i2c_adv7513()
/Zephyr-latest/tests/bsim/bluetooth/ll/throughput/src/
Dmain.c19 #define COUNT 5000 /* Arbitrary GATT Write Cmd iterations used */
21 /* Write Throughput calculation:
33 * GATT Write data length = 244 bytes
36 #define WRITE_RATE 780800 /* GATT Write bps recorded in this test */
61 printk("%s: Write Rate = %u bps\n", __func__, write_rate); in test_central_main()
80 printk("%s: Write Rate = %u bps\n", __func__, write_rate); in test_peripheral_main()
97 bs_trace_error_line("Test GATT Write finished.\n"); in test_gatt_write_tick()
103 .test_descr = "Central GATT Write",
110 .test_descr = "Peripheral GATT Write",
/Zephyr-latest/doc/services/storage/stream/
Dstream_flash.rst11 One typical use of a stream write operation is when receiving a new firmware
17 other operations, such as radio RX and TX. Also, fewer write operations result
20 Persistent stream write progress
22 Some stream write operations, such as DFU operations, may run for a long time.
24 the stream write progress to persistent storage so that the operation can resume
28 write progress to persistent storage using the :ref:`Settings <settings_api>`
/Zephyr-latest/tests/net/socket/socketpair/src/
Dblock.c11 bool write; member
30 if (ctx.write) { in work_handler()
40 LOG_DBG("ready to write!"); in work_handler()
45 LOG_DBG("%sing 1 byte %s fd %d", ctx.write ? "read" : "writ", in work_handler()
46 ctx.write ? "from" : "to", ctx.fd); in work_handler()
47 if (ctx.write) { in work_handler()
53 LOG_DBG("%s() failed: %d", ctx.write ? "recv" : "send", errno); in work_handler()
55 LOG_DBG("%s 1 byte", ctx.write ? "read" : "wrote"); in work_handler()
69 ctx.write = true; in ZTEST_F()
89 /* try to write one more byte */ in ZTEST_F()
[all …]
/Zephyr-latest/samples/drivers/flash_shell/
DREADME.rst37 uart:~$ flash write 0x1000 0x12345678 0x9abcdef0
38 Write OK.
40 uart:~$ flash write 0x1000 0x11111111
41 Write internal ERROR!
45 uart:~$ flash write 0x101c 0xabcd1234
46 Write OK.
/Zephyr-latest/samples/drivers/mspi/mspi_flash/src/
Dmain.c28 /* Write protection needs to be disabled before each write or in single_sector_test()
29 * erase, since the flash component turns on write protection in single_sector_test()
30 * automatically after completion of write and erase in single_sector_test()
46 printf("\nTest 2: Flash write\n"); in single_sector_test()
48 printf("Attempting to write %zu bytes\n", len); in single_sector_test()
51 printf("Flash write failed! %d\n", rc); in single_sector_test()
91 /* Write protection needs to be disabled before each write or in multi_sector_test()
92 * erase, since the flash component turns on write protection in multi_sector_test()
93 * automatically after completion of write and erase in multi_sector_test()
126 printf("\nTest 2: Flash write\n"); in multi_sector_test()
[all …]
/Zephyr-latest/soc/intel/intel_ish/utils/
Dbuild_ish_firmware.py69 f.write(gen_manifest(b'ISHM', b'ISH_KERN', HEADER_SIZE, kern_rdup_pg_size))
75 f.write(gen_manifest(b'ISHM', b'AON_TASK',
80 f.write(gen_manifest(b'ISHE', b'', 0, 0))
84 f.write(b'\x00' * (HEADER_SIZE - (MANIFEST_ENTRY_SIZE * 3)))
86 f.write(b'\x00' * (HEADER_SIZE - (MANIFEST_ENTRY_SIZE * 2)))
90 f.write(in_file.read())
92 f.write(b'\x00' * (kern_rdup_pg_size * PAGE_SIZE - kernel_size))
97 f.write(in_file.read())
99 f.write(b'\x00' * (aon_rdup_pg_size * PAGE_SIZE - aon_size))
/Zephyr-latest/subsys/net/
DKconfig.template.log_config.default.net20 Do not write to log.
25 Only write to log when NET_ERR or LOG_ERR is used.
30 Write to log with NET_WARN or LOG_WRN in addition to previous level.
35 Write to log with NET_INFO or LOG_INF in addition to previous levels.
40 Write to log with NET_DBG or LOG_DBG in addition to previous levels.
/Zephyr-latest/arch/x86/zefi/
Dzefi.py75 cf.write("/* GENERATED CODE. DO NOT EDIT. */\n\n")
77 cf.write("/* Sizes and offsets specified in 4-byte units.\n")
78 cf.write(" * All addresses 4-byte aligned.\n")
79 cf.write(" */\n")
81 cf.write("struct data_seg { uint64_t addr; uint32_t sz; uint32_t off; };\n\n")
83 cf.write("static struct data_seg zefi_dsegs[] = {\n")
85 cf.write(" { 0x%x, %d, %d },\n"
87 cf.write("};\n\n")
89 cf.write("struct zero_seg { uint64_t addr; uint32_t sz; };\n\n")
91 cf.write("static struct zero_seg zefi_zsegs[] = {\n")
[all …]
/Zephyr-latest/scripts/ruff/
Dgen_format_exclude.py13 sys.stdout.write("[format]\n")
14 sys.stdout.write("exclude = [\n")
17 sys.stdout.write(f' "./{line[16:-1]}",\n')
18 sys.stdout.write("]\n")

12345678910>>...84