/lib/crc/ |
A D | crc8_sw.c | 11 static const uint8_t crc8_ccitt_small_table[16] = { 16 static const uint8_t crc8_rohc_small_table[16] = { 21 uint8_t crc8_ccitt(uint8_t val, const void *buf, size_t cnt) in crc8_ccitt() 24 const uint8_t *p = buf; in crc8_ccitt() 34 uint8_t crc8_rohc(uint8_t val, const void *buf, size_t cnt) in crc8_rohc() 37 const uint8_t *p = buf; in crc8_rohc() 47 uint8_t crc8(const uint8_t *src, size_t len, uint8_t polynomial, uint8_t initial_value, in crc8() 50 uint8_t crc = initial_value; in crc8()
|
A D | crc4_sw.c | 9 uint8_t crc4(const uint8_t *src, size_t len, uint8_t polynomial, uint8_t initial_value, in crc4() 12 uint8_t crc = initial_value; in crc4() 40 uint8_t crc4_ti(uint8_t seed, const uint8_t *src, size_t len) in crc4_ti() 42 static const uint8_t lookup[8] = { 0x03, 0x65, 0xcf, 0xa9, 0xb8, 0xde, 0x74, 0x12 }; in crc4_ti() 43 uint8_t index; in crc4_ti()
|
A D | crc7_sw.c | 9 uint8_t crc7_be(uint8_t seed, const uint8_t *src, size_t len) in crc7_be() 12 uint8_t e = seed ^ *src++; in crc7_be() 13 uint8_t f = e ^ (e >> 4) ^ (e >> 7); in crc7_be()
|
A D | crc32_sw.c | 9 uint32_t crc32_ieee(const uint8_t *data, size_t len) in crc32_ieee() 14 uint32_t crc32_ieee_update(uint32_t crc, const uint8_t *data, size_t len) in crc32_ieee_update() 27 uint8_t byte = data[i]; in crc32_ieee_update()
|
A D | crc16_sw.c | 9 uint16_t crc16(uint16_t poly, uint16_t seed, const uint8_t *src, size_t len) in crc16() 30 uint16_t crc16_reflect(uint16_t poly, uint16_t seed, const uint8_t *src, size_t len) in crc16_reflect() 52 uint16_t crc16_ccitt(uint16_t seed, const uint8_t *src, size_t len) in crc16_ccitt() 55 uint8_t e, f; in crc16_ccitt() 66 uint16_t crc16_itu_t(uint16_t seed, const uint8_t *src, size_t len) in crc16_itu_t()
|
A D | crc24_sw.c | 14 uint32_t crc24_pgp(const uint8_t *data, size_t len) in crc24_pgp() 20 uint32_t crc24_pgp_update(uint32_t crc, const uint8_t *data, size_t len) in crc24_pgp_update() 85 uint32_t crc24q_rtcm3(const uint8_t *data, size_t len) in crc24q_rtcm3()
|
A D | crc32c_sw.c | 27 uint32_t crc32_c(uint32_t crc, const uint8_t *data, in crc32_c()
|
A D | crc32k_4_2_sw.c | 9 uint32_t crc32_k_4_2_update(uint32_t crc, const uint8_t *const data, const size_t len) in crc32_k_4_2_update()
|
/lib/utils/ |
A D | dec.c | 9 uint8_t u8_to_dec(char *buf, uint8_t buflen, uint8_t value) in u8_to_dec() 11 uint8_t divisor = 100; in u8_to_dec() 12 uint8_t num_digits = 0; in u8_to_dec() 13 uint8_t digit; in u8_to_dec()
|
A D | cobs.c | 13 uint8_t delimiter = COBS_FLAG_CUSTOM_DELIMITER(flags); in cobs_encode() 23 uint8_t *code_ptr = net_buf_add(dst, 1); in cobs_encode() 24 uint8_t code = 1; in cobs_encode() 27 uint8_t data = 0; in cobs_encode() 62 uint8_t delimiter = COBS_FLAG_CUSTOM_DELIMITER(flags); in cobs_decode() 65 uint8_t end_delim = net_buf_remove_u8(src); in cobs_decode() 74 uint8_t offset = net_buf_pull_u8(src); in cobs_decode() 86 for (uint8_t i = 0; i < offset - 1; i++) { in cobs_decode() 87 uint8_t byte = net_buf_pull_u8(src); in cobs_decode()
|
A D | ring_buffer.c | 13 uint8_t **data, uint32_t size) in ring_buf_area_claim() 55 uint8_t *dst; in ring_buf_put() 78 uint32_t ring_buf_get(struct ring_buf *buf, uint8_t *data, uint32_t size) in ring_buf_get() 80 uint8_t *src; in ring_buf_get() 105 uint32_t ring_buf_peek(struct ring_buf *buf, uint8_t *data, uint32_t size) in ring_buf_peek() 107 uint8_t *src; in ring_buf_peek() 144 int ring_buf_item_put(struct ring_buf *buf, uint16_t type, uint8_t value, in ring_buf_item_put() 145 uint32_t *data32, uint8_t size32) in ring_buf_item_put() 147 uint8_t *dst, *data = (uint8_t *)data32; in ring_buf_item_put() 187 uint32_t *data32, uint8_t *size32) in ring_buf_item_get() [all …]
|
A D | hex.c | 12 int char2hex(char c, uint8_t *x) in char2hex() 27 int hex2char(uint8_t x, char *c) in hex2char() 40 size_t bin2hex(const uint8_t *buf, size_t buflen, char *hex, size_t hexlen) in bin2hex() 55 size_t hex2bin(const char *hex, size_t hexlen, uint8_t *buf, size_t buflen) in hex2bin() 57 uint8_t dec; in hex2bin()
|
A D | base64.c | 29 static const uint8_t base64_enc_map[64] = { 39 static const uint8_t base64_dec_map[128] = { 60 int base64_encode(uint8_t *dst, size_t dlen, size_t *olen, const uint8_t *src, in base64_encode() 65 uint8_t *p; in base64_encode() 124 int base64_decode(uint8_t *dst, size_t dlen, size_t *olen, const uint8_t *src, in base64_decode() 129 uint8_t *p; in base64_decode()
|
A D | rb.c | 21 static struct rbnode *get_child(struct rbnode *n, uint8_t side) in get_child() 34 static void set_child(struct rbnode *n, uint8_t side, void *val) in set_child() 69 *p = (*p & ~1UL) | (uint8_t)color; in set_color() 88 uint8_t side = tree->lessthan_fn(node, stack[sz - 1]) ? 0U : 1U; in find_and_stack() 102 struct rbnode *z_rb_get_minmax(struct rbtree *tree, uint8_t side) in z_rb_get_minmax() 136 uint8_t side = get_side(parent, child); in rotate() 179 uint8_t side = get_side(grandparent, parent); in fix_extra_red() 200 uint8_t parent_side = get_side(parent, node); in fix_extra_red() 241 uint8_t side = tree->lessthan_fn(node, parent) ? 0U : 1U; in rb_insert() 277 uint8_t n_side = get_side(parent, n); in fix_missing_black() [all …]
|
/lib/os/ |
A D | cbprintf_packaged.c | 200 uint8_t *buf = packaged; in get_package_len() 201 uint8_t *start = buf; in get_package_len() 770 *(uint8_t *)buf = pos; in cbvprintf_package() 835 uint8_t *buf = packaged; in cbpprintf_external() 858 s_idx = *(uint8_t *)s; in cbpprintf_external() 923 uint8_t *buf = in_packaged; in cbprintf_package_convert() 1044 uint8_t cpy_str_pos[16]; in cbprintf_package_convert() 1046 uint8_t keep_str_pos[16]; in cbprintf_package_convert() 1047 uint8_t scpy_cnt; in cbprintf_package_convert() 1048 uint8_t keep_cnt; in cbprintf_package_convert() [all …]
|
A D | spsc_pbuf.c | 77 static uint8_t *get_data_loc(struct spsc_pbuf *pb, uint32_t flags) in get_data_loc() 143 uint8_t *data_loc = get_data_loc(pb, flags); in spsc_pbuf_alloc() 182 cache_wb(&data_loc[wr_idx], sizeof(uint8_t), flags); in spsc_pbuf_alloc() 211 uint8_t *data_loc = get_data_loc(pb, flags); in spsc_pbuf_commit() 256 uint8_t *data_loc = get_data_loc(pb, flags); in spsc_pbuf_claim() 327 uint8_t *data_loc = get_data_loc(pb, flags); in spsc_pbuf_free() 332 cache_inv(&data_loc[rd_idx], sizeof(uint8_t), flags); in spsc_pbuf_free()
|
A D | thread_entry.c | 44 sys_rand_get((uint8_t *)&stack_guard, sizeof(stack_guard)); in z_thread_entry()
|
/lib/net_buf/ |
A D | buf.c | 67 ptrdiff_t offset = (uint8_t *)buf - (uint8_t *)pool->__bufs; in net_buf_id() 96 static uint8_t *generic_data_ref(struct net_buf *buf, uint8_t *data) in generic_data_ref() 99 uint8_t *ref_count; in generic_data_ref() 112 uint8_t *ref_count; in mem_pool_data_alloc() 138 ref_count = (uint8_t *)b; in mem_pool_data_alloc() 149 uint8_t *ref_count; in mem_pool_data_unref() 193 uint8_t *ref_count; in heap_data_alloc() 208 uint8_t *ref_count; in heap_data_unref() 238 static uint8_t *data_ref(struct net_buf *buf, uint8_t *data) in data_ref() 716 const uint8_t *dptr = data; in net_buf_data_match() [all …]
|
A D | buf_simple.c | 58 uint8_t *tail = net_buf_simple_tail(buf); in net_buf_simple_add() 76 uint8_t *net_buf_simple_add_u8(struct net_buf_simple *buf, uint8_t val) in net_buf_simple_add_u8() 78 uint8_t *u8; in net_buf_simple_add_u8() 182 uint8_t net_buf_simple_remove_u8(struct net_buf_simple *buf) in net_buf_simple_remove_u8() 184 uint8_t val; in net_buf_simple_remove_u8() 188 val = *(uint8_t *)ptr; in net_buf_simple_remove_u8() 370 void net_buf_simple_push_u8(struct net_buf_simple *buf, uint8_t val) in net_buf_simple_push_u8() 372 uint8_t *data = net_buf_simple_push(buf, 1); in net_buf_simple_push_u8() 471 uint8_t net_buf_simple_pull_u8(struct net_buf_simple *buf) in net_buf_simple_pull_u8() 473 uint8_t val; in net_buf_simple_pull_u8()
|
/lib/uuid/ |
A D | uuid.c | 43 static void overwrite_uuid_version_and_variant(uint8_t version, uint8_t variant, struct uuid *out) in overwrite_uuid_version_and_variant() 49 out->val[UUID_POSITION_VERSION] |= (uint8_t)(version << UUID_OFFSET_VERSION); in overwrite_uuid_version_and_variant() 50 out->val[UUID_POSITION_VARIANT] |= (uint8_t)(variant << UUID_OFFSET_VARIANT); in overwrite_uuid_version_and_variant() 93 uint8_t sha_result[sha_1_bytes]; in uuid_generate_v5() 158 int uuid_from_buffer(const uint8_t data[UUID_SIZE], struct uuid *out) in uuid_from_buffer() 208 int uuid_to_buffer(const struct uuid *data, uint8_t out[UUID_SIZE]) in uuid_to_buffer()
|
/lib/posix/options/ |
A D | syslog.c | 15 static uint8_t syslog_mask; 71 uint8_t mask = 0; in vsyslog()
|
A D | posix_internal.h | 36 uint8_t schedpolicy: 2; 71 uint8_t qid;
|
/lib/hash/ |
A D | hash_func32_djb2.c | 38 const uint8_t *d; in sys_hash32_djb2()
|
/lib/mem_blocks/ |
A D | mem_blocks.c | 20 uint8_t *blk; in alloc_blocks() 57 uint8_t *blk = ptr; in free_blocks() 184 offset = ((uint8_t *)in_block - mem_block->buffer) >> in sys_mem_blocks_is_region_free() 208 offset = ((uint8_t *)in_block - mem_block->buffer) >> in sys_mem_blocks_get() 404 uint8_t *start, *end; in sys_multi_mem_blocks_free() 412 if (((uint8_t *)in_blocks[0] >= start) && in sys_multi_mem_blocks_free() 413 ((uint8_t *)in_blocks[0] < end)) { in sys_multi_mem_blocks_free()
|
/lib/heap/ |
A D | heap.c | 27 uint8_t *ret = ((uint8_t *)&buf[c]) + chunk_header_bytes(h); in chunk_mem() 159 uint8_t *mem = p, *base = (uint8_t *)chunk_buf(h); in mem_to_chunkid() 349 uint8_t *mem = chunk_mem(h, c0); in sys_heap_aligned_alloc() 352 mem = (uint8_t *) ROUND_UP(mem + rew, align) - rew; in sys_heap_aligned_alloc() 392 size_t align_gap = (uint8_t *)ptr - (uint8_t *)chunk_mem(h, c); in inplace_realloc() 543 uintptr_t end = ROUND_DOWN((uint8_t *)mem + bytes, CHUNK_UNIT); in sys_heap_init()
|