Home
last modified time | relevance | path

Searched refs:hexlen (Results 1 – 10 of 10) sorted by relevance

/Zephyr-latest/lib/utils/
Dhex.c40 size_t bin2hex(const uint8_t *buf, size_t buflen, char *hex, size_t hexlen) in bin2hex() argument
42 if (hexlen < ((buflen * 2U) + 1U)) { in bin2hex()
59 size_t hex2bin(const char *hex, size_t hexlen, uint8_t *buf, size_t buflen) in hex2bin() argument
63 if (buflen < (hexlen / 2U + hexlen % 2U)) { in hex2bin()
68 if ((hexlen % 2U) != 0) { in hex2bin()
78 for (size_t i = 0; i < (hexlen / 2U); i++) { in hex2bin()
90 return hexlen / 2U + hexlen % 2U; in hex2bin()
/Zephyr-latest/arch/x86/core/ia32/
Dgdbstub.c148 size_t arch_gdb_reg_writeall(struct gdb_ctx *ctx, uint8_t *hex, size_t hexlen) in arch_gdb_reg_writeall() argument
152 if (hexlen != (sizeof(ctx->registers) * 2)) { in arch_gdb_reg_writeall()
155 ret = hex2bin(hex, hexlen, in arch_gdb_reg_writeall()
188 size_t arch_gdb_reg_writeone(struct gdb_ctx *ctx, uint8_t *hex, size_t hexlen, in arch_gdb_reg_writeone() argument
200 ret = hexlen; in arch_gdb_reg_writeone()
203 } else if (hexlen != (sizeof(unsigned int) * 2)) { in arch_gdb_reg_writeone()
207 ret = hex2bin(hex, hexlen, in arch_gdb_reg_writeone()
/Zephyr-latest/arch/arm/core/
Dgdbstub.c161 size_t arch_gdb_reg_writeall(struct gdb_ctx *c, uint8_t *hex, size_t hexlen) in arch_gdb_reg_writeall() argument
165 for (unsigned int i = 0; i < hexlen; i += 8) { in arch_gdb_reg_writeall()
205 size_t arch_gdb_reg_writeone(struct gdb_ctx *c, uint8_t *hex, size_t hexlen, uint32_t regno) in arch_gdb_reg_writeone() argument
209 if (hexlen != 8) { in arch_gdb_reg_writeone()
217 ret = hex2bin(hex, hexlen, (uint8_t *)(c->registers + i), 4); in arch_gdb_reg_writeone()
222 ret = hex2bin(hex, hexlen, (uint8_t *)(c->registers + GDB_NUM_REGS - 1), 4); in arch_gdb_reg_writeone()
/Zephyr-latest/subsys/bluetooth/mesh/shell/
Ddfd.c321 size_t hexlen = strlen(argv[1]); in cmd_dfd_fw_get() local
322 size_t fwid_len = hex2bin(argv[1], hexlen, fwid, CONFIG_BT_MESH_DFU_FWID_MAXLEN); in cmd_dfd_fw_get()
324 if (fwid_len != ((hexlen + 1) / 2)) { in cmd_dfd_fw_get()
370 size_t hexlen = strlen(argv[1]); in cmd_dfd_fw_delete() local
371 size_t fwid_len = hex2bin(argv[1], hexlen, fwid_buf, CONFIG_BT_MESH_DFU_FWID_MAXLEN); in cmd_dfd_fw_delete()
373 if (fwid_len != ((hexlen + 1) / 2)) { in cmd_dfd_fw_delete()
/Zephyr-latest/include/zephyr/debug/
Dgdbstub.h84 char *hex, size_t hexlen);
/Zephyr-latest/tests/crypto/tinycrypt/src/
Dtest_ecc_utils.c76 size_t hexlen = strlen(str); in string2scalar() local
89 if (hex2bin(str, hexlen, tmp + padding / 2, num_bytes) == 0) { in string2scalar()
/Zephyr-latest/include/zephyr/arch/
Darch_interface.h1008 size_t arch_gdb_reg_writeall(struct gdb_ctx *ctx, uint8_t *hex, size_t hexlen);
1041 size_t arch_gdb_reg_writeone(struct gdb_ctx *ctx, uint8_t *hex, size_t hexlen,
/Zephyr-latest/arch/xtensa/core/
Dgdbstub.c687 size_t arch_gdb_reg_writeall(struct gdb_ctx *ctx, uint8_t *hex, size_t hexlen) in arch_gdb_reg_writeall() argument
696 ARG_UNUSED(hexlen); in arch_gdb_reg_writeall()
753 size_t arch_gdb_reg_writeone(struct gdb_ctx *ctx, uint8_t *hex, size_t hexlen, in arch_gdb_reg_writeone() argument
773 if (hexlen < (reg->byte_size * 2)) { in arch_gdb_reg_writeone()
782 ret = hex2bin(hex, hexlen, in arch_gdb_reg_writeone()
/Zephyr-latest/include/zephyr/sys/
Dutil.h564 size_t bin2hex(const uint8_t *buf, size_t buflen, char *hex, size_t hexlen);
576 size_t hex2bin(const char *hex, size_t hexlen, uint8_t *buf, size_t buflen);
/Zephyr-latest/subsys/debug/gdbstub/
Dgdbstub.c152 size_t gdb_bin2hex(const uint8_t *buf, size_t buflen, char *hex, size_t hexlen) in gdb_bin2hex() argument
154 if ((hexlen + 1) < buflen * 2) { in gdb_bin2hex()