Home
last modified time | relevance | path

Searched refs:buf (Results 1 – 25 of 1841) sorted by relevance

12345678910>>...74

/Zephyr-latest/lib/net_buf/
Dbuf_simple.c32 void net_buf_simple_init_with_data(struct net_buf_simple *buf, in net_buf_simple_init_with_data() argument
35 buf->__buf = data; in net_buf_simple_init_with_data()
36 buf->data = data; in net_buf_simple_init_with_data()
37 buf->size = size; in net_buf_simple_init_with_data()
38 buf->len = size; in net_buf_simple_init_with_data()
41 void net_buf_simple_reserve(struct net_buf_simple *buf, size_t reserve) in net_buf_simple_reserve() argument
43 __ASSERT_NO_MSG(buf); in net_buf_simple_reserve()
44 __ASSERT_NO_MSG(buf->len == 0U); in net_buf_simple_reserve()
45 NET_BUF_SIMPLE_DBG("buf %p reserve %zu", buf, reserve); in net_buf_simple_reserve()
47 buf->data = buf->__buf + reserve; in net_buf_simple_reserve()
[all …]
Dbuf.c62 int net_buf_id(const struct net_buf *buf) in net_buf_id() argument
64 struct net_buf_pool *pool = net_buf_pool_get(buf->pool_id); in net_buf_id()
67 ptrdiff_t offset = (uint8_t *)buf - (uint8_t *)pool->__bufs; in net_buf_id()
78 struct net_buf *buf; in pool_get_uninit() local
80 buf = (struct net_buf *)(((uint8_t *)pool->__bufs) + byte_offset); in pool_get_uninit()
82 buf->pool_id = pool_id(pool); in pool_get_uninit()
83 buf->user_data_size = pool->user_data_size; in pool_get_uninit()
85 return buf; in pool_get_uninit()
88 void net_buf_reset(struct net_buf *buf) in net_buf_reset() argument
90 __ASSERT_NO_MSG(buf->flags == 0U); in net_buf_reset()
[all …]
/Zephyr-latest/subsys/net/lib/mqtt_sn/
Dmqtt_sn_decoder.c36 static ssize_t decode_payload_length(struct net_buf_simple *buf) in decode_payload_length() argument
40 size_t buflen = buf->len; in decode_payload_length()
51 length = net_buf_simple_pull_u8(buf); in decode_payload_length()
53 length = net_buf_simple_pull_be16(buf); in decode_payload_length()
71 static void decode_flags(struct net_buf_simple *buf, struct mqtt_sn_flags *flags) in decode_flags() argument
73 uint8_t b = net_buf_simple_pull_u8(buf); in decode_flags()
86 static void decode_data(struct net_buf_simple *buf, struct mqtt_sn_data *dest) in decode_data() argument
88 dest->size = buf->len; in decode_data()
89 dest->data = net_buf_simple_pull_mem(buf, buf->len); in decode_data()
92 static int decode_empty_message(struct net_buf_simple *buf) in decode_empty_message() argument
[all …]
Dmqtt_sn_encoder.c27 static int prepare_message(struct net_buf_simple *buf, size_t sz, enum mqtt_sn_msg_type type) in prepare_message() argument
34 size_t maxlen = net_buf_simple_max_len(buf); in prepare_message()
50 net_buf_simple_add_u8(buf, (uint8_t)sz); in prepare_message()
52 net_buf_simple_add_u8(buf, MQTT_SN_LENGTH_FIELD_EXTENDED_PREFIX); in prepare_message()
53 net_buf_simple_add_be16(buf, (uint16_t)sz); in prepare_message()
56 net_buf_simple_add_u8(buf, (uint8_t)type); in prepare_message()
61 static void encode_flags(struct net_buf_simple *buf, struct mqtt_sn_flags *flags) in encode_flags() argument
77 net_buf_simple_add_u8(buf, b); in encode_flags()
80 static int mqtt_sn_encode_msg_searchgw(struct net_buf_simple *buf, in mqtt_sn_encode_msg_searchgw() argument
86 err = prepare_message(buf, msgsz, MQTT_SN_MSG_TYPE_SEARCHGW); in mqtt_sn_encode_msg_searchgw()
[all …]
/Zephyr-latest/tests/lib/net_buf/buf_simple/src/
Dmain.c14 NET_BUF_SIMPLE_DEFINE_STATIC(buf, 16);
36 net_buf_simple_reset(&buf); in net_buf_simple_test_suite_before()
46 net_buf_simple_clone(&buf, &clone); in ZTEST()
48 zassert_equal(buf.data, clone.data, "Incorrect clone data pointer"); in ZTEST()
53 net_buf_simple_add_mem(&buf, &le16, sizeof(le16)); in ZTEST()
55 zassert_equal(u16, net_buf_simple_pull_le16(&buf), in ZTEST()
61 net_buf_simple_add_mem(&buf, &be16, sizeof(be16)); in ZTEST()
63 zassert_equal(u16, net_buf_simple_pull_be16(&buf), in ZTEST()
69 net_buf_simple_add_le16(&buf, u16); in ZTEST()
71 zassert_mem_equal(le16, net_buf_simple_pull_mem(&buf, sizeof(le16)), in ZTEST()
[all …]
/Zephyr-latest/include/zephyr/
Dnet_buf.h127 struct net_buf_simple buf; \
130 .buf.size = _size, \
142 static inline void net_buf_simple_init(struct net_buf_simple *buf, in net_buf_simple_init() argument
145 if (!buf->__buf) { in net_buf_simple_init()
146 buf->__buf = (uint8_t *)buf + sizeof(*buf); in net_buf_simple_init()
149 buf->data = buf->__buf + reserve_head; in net_buf_simple_init()
150 buf->len = 0U; in net_buf_simple_init()
162 void net_buf_simple_init_with_data(struct net_buf_simple *buf,
172 static inline void net_buf_simple_reset(struct net_buf_simple *buf) in net_buf_simple_reset() argument
174 buf->len = 0U; in net_buf_simple_reset()
[all …]
/Zephyr-latest/tests/lib/net_buf/buf/src/
Dmain.c67 static void buf_destroy(struct net_buf *buf);
68 static void fixed_destroy(struct net_buf *buf);
69 static void var_destroy(struct net_buf *buf);
75 static void buf_destroy(struct net_buf *buf) in buf_destroy() argument
77 struct net_buf_pool *pool = net_buf_pool_get(buf->pool_id); in buf_destroy()
81 net_buf_destroy(buf); in buf_destroy()
84 static void fixed_destroy(struct net_buf *buf) in fixed_destroy() argument
86 struct net_buf_pool *pool = net_buf_pool_get(buf->pool_id); in fixed_destroy()
90 net_buf_destroy(buf); in fixed_destroy()
93 static void var_destroy(struct net_buf *buf) in var_destroy() argument
[all …]
/Zephyr-latest/include/zephyr/sys/
Dring_buffer.h60 uint32_t ring_buf_area_claim(struct ring_buf *buf, struct ring_buf_index *ring,
62 int ring_buf_area_finish(struct ring_buf *buf, struct ring_buf_index *ring,
70 static inline void ring_buf_internal_reset(struct ring_buf *buf, ring_buf_idx_t value) in ring_buf_internal_reset() argument
72 buf->put.head = buf->put.tail = buf->put.base = value; in ring_buf_internal_reset()
73 buf->get.head = buf->get.tail = buf->get.base = value; in ring_buf_internal_reset()
78 #define RING_BUF_INIT(buf, size8) \ argument
80 .buffer = buf, \
173 static inline void ring_buf_init(struct ring_buf *buf, in ring_buf_init() argument
179 buf->size = size; in ring_buf_init()
180 buf->buffer = data; in ring_buf_init()
[all …]
/Zephyr-latest/drivers/watchdog/
Dwdt_npm6001.c53 uint8_t buf[4] = {NPM6001_WDARMEDVALUE, 1U, NPM6001_WDARMEDSTROBE, 1U}; in wdt_npm6001_disable() local
55 return i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_disable()
63 uint8_t buf[2]; in wdt_npm6001_install_timeout() local
80 buf[0] = NPM6001_WDPWRUPVALUE; in wdt_npm6001_install_timeout()
81 buf[1] = NPM6001_WDPWRUPVALUE_OSC_ENABLE | in wdt_npm6001_install_timeout()
84 ret = i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_install_timeout()
89 buf[0] = NPM6001_WDPWRUPSTROBE; in wdt_npm6001_install_timeout()
90 buf[1] = 1U; in wdt_npm6001_install_timeout()
91 ret = i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_install_timeout()
97 buf[0] = NPM6001_WDTRIGGERVALUE0; in wdt_npm6001_install_timeout()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/att/sequential/tester/src/
Dmain.c67 struct net_buf *buf; in bt_hci_cmd_create() local
71 buf = net_buf_alloc(&hci_cmd_pool, K_FOREVER); in bt_hci_cmd_create()
72 TEST_ASSERT(buf, "failed allocation"); in bt_hci_cmd_create()
74 LOG_DBG("buf %p", buf); in bt_hci_cmd_create()
76 net_buf_reserve(buf, BT_BUF_RESERVE); in bt_hci_cmd_create()
78 bt_buf_set_type(buf, BT_BUF_CMD); in bt_hci_cmd_create()
80 hdr = net_buf_add(buf, sizeof(*hdr)); in bt_hci_cmd_create()
84 return buf; in bt_hci_cmd_create()
87 static void handle_cmd_complete(struct net_buf *buf) in handle_cmd_complete() argument
94 net_buf_simple_save(&buf->b, &state); in handle_cmd_complete()
[all …]
/Zephyr-latest/subsys/net/lib/mqtt/
Dmqtt_encoder.c46 static int pack_uint8(uint8_t val, struct buf_ctx *buf) in pack_uint8() argument
48 uint8_t *cur = buf->cur; in pack_uint8()
49 uint8_t *end = buf->end; in pack_uint8()
59 buf->cur = (cur + sizeof(uint8_t)); in pack_uint8()
74 static int pack_uint16(uint16_t val, struct buf_ctx *buf) in pack_uint16() argument
76 uint8_t *cur = buf->cur; in pack_uint16()
77 uint8_t *end = buf->end; in pack_uint16()
87 buf->cur = (cur + sizeof(uint16_t)); in pack_uint16()
102 static int pack_utf8_str(const struct mqtt_utf8 *str, struct buf_ctx *buf) in pack_utf8_str() argument
104 if ((buf->end - buf->cur) < GET_UT8STR_BUFFER_SIZE(str)) { in pack_utf8_str()
[all …]
Dmqtt_decoder.c30 static int unpack_uint8(struct buf_ctx *buf, uint8_t *val) in unpack_uint8() argument
32 uint8_t *cur = buf->cur; in unpack_uint8()
33 uint8_t *end = buf->end; in unpack_uint8()
42 buf->cur = (cur + sizeof(uint8_t)); in unpack_uint8()
60 static int unpack_uint16(struct buf_ctx *buf, uint16_t *val) in unpack_uint16() argument
62 uint8_t *cur = buf->cur; in unpack_uint16()
63 uint8_t *end = buf->end; in unpack_uint16()
72 buf->cur = (cur + sizeof(uint16_t)); in unpack_uint16()
90 static int unpack_utf8_str(struct buf_ctx *buf, struct mqtt_utf8 *str) in unpack_utf8_str() argument
95 NET_DBG(">> cur:%p, end:%p", (void *)buf->cur, (void *)buf->end); in unpack_utf8_str()
[all …]
/Zephyr-latest/subsys/bluetooth/mesh/
Ddfu_metadata.c15 int bt_mesh_dfu_metadata_decode(struct net_buf_simple *buf, in bt_mesh_dfu_metadata_decode() argument
18 if (buf->len < 12) { in bt_mesh_dfu_metadata_decode()
22 metadata->fw_ver.major = net_buf_simple_pull_u8(buf); in bt_mesh_dfu_metadata_decode()
23 metadata->fw_ver.minor = net_buf_simple_pull_u8(buf); in bt_mesh_dfu_metadata_decode()
24 metadata->fw_ver.revision = net_buf_simple_pull_le16(buf); in bt_mesh_dfu_metadata_decode()
25 metadata->fw_ver.build_num = net_buf_simple_pull_le32(buf); in bt_mesh_dfu_metadata_decode()
26 metadata->fw_size = net_buf_simple_pull_le24(buf); in bt_mesh_dfu_metadata_decode()
27 metadata->fw_core_type = net_buf_simple_pull_u8(buf); in bt_mesh_dfu_metadata_decode()
30 if (buf->len < 6) { in bt_mesh_dfu_metadata_decode()
34 metadata->comp_hash = net_buf_simple_pull_le32(buf); in bt_mesh_dfu_metadata_decode()
[all …]
Dop_agg.c16 #define IS_LENGTH_LONG(buf) ((buf)->data[0] & 1) argument
19 int bt_mesh_op_agg_encode_msg(struct net_buf_simple *msg, struct net_buf_simple *buf) in bt_mesh_op_agg_encode_msg() argument
22 if (net_buf_simple_tailroom(buf) < (msg->len + 2)) { in bt_mesh_op_agg_encode_msg()
26 net_buf_simple_add_le16(buf, (msg->len << 1) | 1); in bt_mesh_op_agg_encode_msg()
28 if (net_buf_simple_tailroom(buf) < (msg->len + 1)) { in bt_mesh_op_agg_encode_msg()
32 net_buf_simple_add_u8(buf, msg->len << 1); in bt_mesh_op_agg_encode_msg()
34 net_buf_simple_add_mem(buf, msg->data, msg->len); in bt_mesh_op_agg_encode_msg()
40 struct net_buf_simple *buf) in bt_mesh_op_agg_decode_msg() argument
44 if (IS_LENGTH_LONG(buf)) { in bt_mesh_op_agg_decode_msg()
45 if (buf->len < 2) { in bt_mesh_op_agg_decode_msg()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/att/pipeline/tester/src/
Dmain.c53 typedef void (*att_handler_t)(struct net_buf *buf);
72 struct net_buf *buf; in bt_hci_cmd_create() local
76 buf = net_buf_alloc(&hci_cmd_pool, K_FOREVER); in bt_hci_cmd_create()
77 TEST_ASSERT(buf, "failed allocation"); in bt_hci_cmd_create()
79 LOG_DBG("buf %p", buf); in bt_hci_cmd_create()
81 net_buf_reserve(buf, BT_BUF_RESERVE); in bt_hci_cmd_create()
83 bt_buf_set_type(buf, BT_BUF_CMD); in bt_hci_cmd_create()
85 hdr = net_buf_add(buf, sizeof(*hdr)); in bt_hci_cmd_create()
89 return buf; in bt_hci_cmd_create()
92 static void handle_cmd_complete(struct net_buf *buf) in handle_cmd_complete() argument
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/reassembly/peer/src/
Dpeer.c63 struct net_buf *buf; in bt_hci_cmd_create() local
67 buf = net_buf_alloc(&hci_cmd_pool, K_FOREVER); in bt_hci_cmd_create()
68 TEST_ASSERT(buf, "failed allocation"); in bt_hci_cmd_create()
70 LOG_DBG("buf %p", buf); in bt_hci_cmd_create()
72 net_buf_reserve(buf, BT_BUF_RESERVE); in bt_hci_cmd_create()
74 bt_buf_set_type(buf, BT_BUF_CMD); in bt_hci_cmd_create()
76 hdr = net_buf_add(buf, sizeof(*hdr)); in bt_hci_cmd_create()
80 return buf; in bt_hci_cmd_create()
83 static void handle_cmd_complete(struct net_buf *buf) in handle_cmd_complete() argument
90 net_buf_simple_save(&buf->b, &state); in handle_cmd_complete()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/misc/disconnect/tester/src/
Dmain.c64 struct net_buf *buf; in bt_hci_cmd_create() local
68 buf = net_buf_alloc(&hci_cmd_pool, K_FOREVER); in bt_hci_cmd_create()
69 TEST_ASSERT(buf, "failed allocation"); in bt_hci_cmd_create()
71 LOG_DBG("buf %p", buf); in bt_hci_cmd_create()
73 net_buf_reserve(buf, BT_BUF_RESERVE); in bt_hci_cmd_create()
75 bt_buf_set_type(buf, BT_BUF_CMD); in bt_hci_cmd_create()
77 hdr = net_buf_add(buf, sizeof(*hdr)); in bt_hci_cmd_create()
81 return buf; in bt_hci_cmd_create()
84 static void handle_cmd_complete(struct net_buf *buf) in handle_cmd_complete() argument
91 net_buf_simple_save(&buf->b, &state); in handle_cmd_complete()
[all …]
/Zephyr-latest/samples/bluetooth/hci_ipc/src/
Dmain.c60 struct net_buf *buf; in hci_ipc_cmd_recv() local
67 buf = bt_buf_get_tx(BT_BUF_CMD, K_NO_WAIT, hdr, sizeof(*hdr)); in hci_ipc_cmd_recv()
68 if (buf) { in hci_ipc_cmd_recv()
78 net_buf_unref(buf); in hci_ipc_cmd_recv()
82 if (remaining > net_buf_tailroom(buf)) { in hci_ipc_cmd_recv()
84 net_buf_unref(buf); in hci_ipc_cmd_recv()
89 net_buf_add_mem(buf, data, remaining); in hci_ipc_cmd_recv()
91 return buf; in hci_ipc_cmd_recv()
97 struct net_buf *buf; in hci_ipc_acl_recv() local
104 buf = bt_buf_get_tx(BT_BUF_ACL_OUT, K_NO_WAIT, hdr, sizeof(*hdr)); in hci_ipc_acl_recv()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/split/tester/src/
Dmain.c55 struct net_buf *buf; in bt_hci_cmd_create() local
59 buf = net_buf_alloc(&hci_cmd_pool, K_FOREVER); in bt_hci_cmd_create()
60 __ASSERT_NO_MSG(buf); in bt_hci_cmd_create()
62 LOG_DBG("buf %p", buf); in bt_hci_cmd_create()
64 net_buf_reserve(buf, BT_BUF_RESERVE); in bt_hci_cmd_create()
66 bt_buf_set_type(buf, BT_BUF_CMD); in bt_hci_cmd_create()
68 hdr = net_buf_add(buf, sizeof(*hdr)); in bt_hci_cmd_create()
72 return buf; in bt_hci_cmd_create()
75 static void handle_cmd_complete(struct net_buf *buf) in handle_cmd_complete() argument
83 net_buf_simple_save(&buf->b, &state); in handle_cmd_complete()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/misc/hfc_multilink/tester/src/
Dtester.c56 struct net_buf *buf; in bt_hci_cmd_create() local
60 buf = net_buf_alloc(&hci_cmd_pool, K_FOREVER); in bt_hci_cmd_create()
61 __ASSERT_NO_MSG(buf); in bt_hci_cmd_create()
63 LOG_DBG("buf %p", buf); in bt_hci_cmd_create()
65 net_buf_reserve(buf, BT_BUF_RESERVE); in bt_hci_cmd_create()
67 bt_buf_set_type(buf, BT_BUF_CMD); in bt_hci_cmd_create()
69 hdr = net_buf_add(buf, sizeof(*hdr)); in bt_hci_cmd_create()
73 return buf; in bt_hci_cmd_create()
76 static void handle_cmd_complete(struct net_buf *buf) in handle_cmd_complete() argument
84 net_buf_simple_save(&buf->b, &state); in handle_cmd_complete()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/
Dgatt_common.c11 void bt_mesh_test_parse_mesh_gatt_preamble(struct net_buf_simple *buf) in bt_mesh_test_parse_mesh_gatt_preamble() argument
13 ASSERT_EQUAL(0x0201, net_buf_simple_pull_be16(buf)); in bt_mesh_test_parse_mesh_gatt_preamble()
15 (void)net_buf_simple_pull_u8(buf); in bt_mesh_test_parse_mesh_gatt_preamble()
16 ASSERT_EQUAL(0x0303, net_buf_simple_pull_be16(buf)); in bt_mesh_test_parse_mesh_gatt_preamble()
19 void bt_mesh_test_parse_mesh_pb_gatt_service(struct net_buf_simple *buf) in bt_mesh_test_parse_mesh_pb_gatt_service() argument
23 ASSERT_EQUAL(0x2718, net_buf_simple_pull_be16(buf)); in bt_mesh_test_parse_mesh_pb_gatt_service()
24 ASSERT_EQUAL(0x1516, net_buf_simple_pull_be16(buf)); in bt_mesh_test_parse_mesh_pb_gatt_service()
26 ASSERT_EQUAL(0x2718, net_buf_simple_pull_be16(buf)); in bt_mesh_test_parse_mesh_pb_gatt_service()
29 void bt_mesh_test_parse_mesh_proxy_service(struct net_buf_simple *buf) in bt_mesh_test_parse_mesh_proxy_service() argument
33 ASSERT_EQUAL(0x2818, net_buf_simple_pull_be16(buf)); in bt_mesh_test_parse_mesh_proxy_service()
[all …]
/Zephyr-latest/tests/posix/single_process/src/
Dconfstr.c15 char buf[1]; in ZTEST() local
21 char *buf; in ZTEST() member
27 {-1, NULL, sizeof(buf)}, in ZTEST()
28 {-1, buf, 0}, in ZTEST()
29 {-1, buf, sizeof(buf)}, in ZTEST()
34 {_CS_PATH, buf, 0}, in ZTEST()
38 {_CS_PATH, NULL, sizeof(buf)}, in ZTEST()
43 zassert_equal(0, confstr(arg->name, arg->buf, arg->len)); in ZTEST()
49 buf[0] = 0xff; in ZTEST()
50 zassert_true(confstr(arg->name, arg->buf, arg->len) > 0); in ZTEST()
[all …]
/Zephyr-latest/subsys/bluetooth/host/
Dhci_raw.c41 static void hci_rx_buf_destroy(struct net_buf *buf) in hci_rx_buf_destroy() argument
43 net_buf_destroy(buf); in hci_rx_buf_destroy()
86 struct net_buf *buf; in bt_buf_get_rx() local
98 buf = net_buf_alloc(&hci_rx_pool, timeout); in bt_buf_get_rx()
99 if (!buf) { in bt_buf_get_rx()
100 return buf; in bt_buf_get_rx()
103 net_buf_reserve(buf, BT_BUF_RESERVE); in bt_buf_get_rx()
104 bt_buf_set_type(buf, type); in bt_buf_get_rx()
106 return buf; in bt_buf_get_rx()
118 struct net_buf *buf; in bt_buf_get_tx() local
[all …]
/Zephyr-latest/tests/bluetooth/audio/ascs/src/
Dtest_ase_control_params.c107 uint8_t buf[] = {}; in ZTEST_F() local
110 ret = fixture->ase_cp->write(&fixture->conn, fixture->ase_cp, (void *)buf, 0, 0, 0); in ZTEST_F()
118 const uint8_t buf[] = { in test_expect_unsupported_opcode() local
131 fixture->ase_cp->write(&fixture->conn, fixture->ase_cp, (void *)buf, sizeof(buf), 0, 0); in test_expect_unsupported_opcode()
148 struct test_ase_control_params_fixture *fixture, const uint8_t *buf, size_t len) in test_codec_configure_expect_invalid_length() argument
158 fixture->ase_cp->write(&fixture->conn, fixture->ase_cp, buf, len, 0, 0); in test_codec_configure_expect_invalid_length()
181 const uint8_t buf[] = { in ZTEST_F() local
193 test_codec_configure_expect_invalid_length(fixture, buf, sizeof(buf)); in ZTEST_F()
206 const uint8_t buf[] = { in ZTEST_F() local
218 test_codec_configure_expect_invalid_length(fixture, buf, sizeof(buf)); in ZTEST_F()
[all …]
/Zephyr-latest/tests/kernel/common/src/
Dbyteorder.c80 uint8_t buf[] = { in ZTEST() local
84 tmp = sys_get_be64(buf); in ZTEST()
99 uint8_t buf[] = { in ZTEST() local
106 zassert_mem_equal(tmp, buf, sizeof(uint64_t), "sys_put_be64() failed"); in ZTEST()
119 uint8_t buf[] = {0xf0, 0xe1, 0xd2, 0xc3, 0xb4}; in ZTEST() local
121 tmp = sys_get_be40(buf); in ZTEST()
136 uint8_t buf[] = {0xf0, 0xe1, 0xd2, 0xc3, 0xb4}; in ZTEST() local
137 uint8_t tmp[sizeof(buf)]; in ZTEST()
140 zassert_mem_equal(tmp, buf, sizeof(buf), "sys_put_be40() failed"); in ZTEST()
153 uint8_t buf[] = { in ZTEST() local
[all …]

12345678910>>...74