/Zephyr-latest/lib/utils/ |
D | hex.c | 40 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/ |
D | gdbstub.c | 148 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/ |
D | gdbstub.c | 161 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/ |
D | dfd.c | 321 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/ |
D | gdbstub.h | 84 char *hex, size_t hexlen);
|
/Zephyr-latest/tests/crypto/tinycrypt/src/ |
D | test_ecc_utils.c | 76 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/ |
D | arch_interface.h | 1008 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/ |
D | gdbstub.c | 687 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/ |
D | util.h | 564 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/ |
D | gdbstub.c | 152 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()
|