/Zephyr-latest/drivers/misc/ft8xx/ |
D | ft8xx_copro.c | 56 while (ram_cmd_freespace() < sizeof(cmd)) { in ft8xx_copro_cmd() 61 increase_reg_cmd_write(sizeof(cmd)); in ft8xx_copro_cmd() 84 const uint16_t cmd_size = sizeof(CMD_TEXT) + in ft8xx_copro_cmd_text() 85 sizeof(x) + in ft8xx_copro_cmd_text() 86 sizeof(y) + in ft8xx_copro_cmd_text() 87 sizeof(font) + in ft8xx_copro_cmd_text() 88 sizeof(options) + in ft8xx_copro_cmd_text() 97 increase_reg_cmd_write(sizeof(CMD_TEXT)); in ft8xx_copro_cmd_text() 100 increase_reg_cmd_write(sizeof(x)); in ft8xx_copro_cmd_text() 103 increase_reg_cmd_write(sizeof(y)); in ft8xx_copro_cmd_text() [all …]
|
/Zephyr-latest/tests/lib/net_buf/buf_simple/src/ |
D | main.c | 53 net_buf_simple_add_mem(&buf, &le16, sizeof(le16)); in ZTEST() 61 net_buf_simple_add_mem(&buf, &be16, sizeof(be16)); in ZTEST() 71 zassert_mem_equal(le16, net_buf_simple_pull_mem(&buf, sizeof(le16)), in ZTEST() 72 sizeof(le16), "Invalid 16 bits byte order"); in ZTEST() 79 zassert_mem_equal(be16, net_buf_simple_pull_mem(&buf, sizeof(be16)), in ZTEST() 80 sizeof(be16), "Invalid 16 bits byte order"); in ZTEST() 85 net_buf_simple_add_mem(&buf, &le24, sizeof(le24)); in ZTEST() 93 net_buf_simple_add_mem(&buf, &be24, sizeof(be24)); in ZTEST() 103 zassert_mem_equal(le24, net_buf_simple_pull_mem(&buf, sizeof(le24)), in ZTEST() 104 sizeof(le24), "Invalid 24 bits byte order"); in ZTEST() [all …]
|
/Zephyr-latest/tests/boot/mcuboot_data_sharing/src/ |
D | main.c | 29 memset(var, 0xff, sizeof(var)); in ZTEST() 30 rc = settings_runtime_get("blinfo/mode", var, sizeof(var)); in ZTEST() 31 zassert_equal(rc, sizeof(var), "Expected data length mismatch"); in ZTEST() 40 memset(var, 0xff, sizeof(var)); in ZTEST() 41 rc = settings_runtime_get("blinfo/signature_type", var, sizeof(var)); in ZTEST() 42 zassert_equal(rc, sizeof(var), "Expected data length mismatch"); in ZTEST() 51 memset(var, 0xff, sizeof(var)); in ZTEST() 52 rc = settings_runtime_get("blinfo/recovery", var, sizeof(var)); in ZTEST() 53 zassert_equal(rc, sizeof(var), "Expected data length mismatch"); in ZTEST() 62 memset(var, 0xff, sizeof(var)); in ZTEST() [all …]
|
/Zephyr-latest/tests/subsys/secure_storage/psa/crypto/src/ |
D | main.c | 41 uint8_t its_data[sizeof(data)]; in ZTEST() 42 uint8_t ps_data[sizeof(data)]; in ZTEST() 44 fill_data(its_data, sizeof(its_data)); in ZTEST() 45 fill_data(ps_data, sizeof(ps_data)); in ZTEST() 46 zassert_true(memcmp(its_data, ps_data, sizeof(data))); in ZTEST() 47 ret = psa_its_set(ID, sizeof(its_data), its_data, PSA_STORAGE_FLAG_NONE); in ZTEST() 49 ret = psa_ps_set(ID, sizeof(ps_data), ps_data, PSA_STORAGE_FLAG_NONE); in ZTEST() 59 ret = psa_its_get(ID, 0, sizeof(data), data, &data_length); in ZTEST() 61 zassert_equal(data_length, sizeof(data)); in ZTEST() 62 zassert_mem_equal(data, its_data, sizeof(data)); in ZTEST() [all …]
|
/Zephyr-latest/scripts/coccinelle/ |
D | array_size.cocci | 1 /// Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element 4 //# where there is a division of sizeof the array by the sizeof its first 32 * (sizeof(E)/sizeof(*E)) 34 * (sizeof(E)/sizeof(E[...])) 36 * (sizeof(E)/sizeof(T)) 48 - (sizeof(E)/sizeof(*E)) 51 - (sizeof(E)/sizeof(E[...])) 54 - (sizeof(E)/sizeof(T)) 68 (sizeof(E)@p /sizeof(*E)) 70 (sizeof(E)@p /sizeof(E[...])) [all …]
|
D | noderef.cocci | 1 /// sizeof when applied to a pointer typed expression gives the size of 24 x = <+... sizeof( 29 f(...,(T)(x),...,sizeof( 34 f(...,sizeof( 39 f(...,(T)(x),...,i*sizeof( 44 f(...,i*sizeof( 59 *x = <+... sizeof@p(x) ...+> 61 *f(...,(T)(x),...,sizeof@p(x),...) 63 *f(...,sizeof@p(x),...,(T)(x),...) 65 *f(...,(T)(x),...,i*sizeof@p(x),...) [all …]
|
/Zephyr-latest/lib/posix/options/ |
D | uname.c | 40 BUILD_ASSERT(sizeof(z_name.sysname) >= sizeof("Zephyr")); 41 BUILD_ASSERT(sizeof(z_name.release) >= sizeof(KERNEL_VERSION_STRING)); 42 BUILD_ASSERT(sizeof(z_name.version) >= sizeof(UTSNAME_VERSION(VERSION_BUILD))); 43 BUILD_ASSERT(sizeof(z_name.machine) >= sizeof(CONFIG_ARCH)); 47 memcpy(name, &z_name, sizeof(*name)); in uname() 49 strncpy(name->nodename, net_hostname_get(), sizeof(name->nodename)); in uname() 50 name->nodename[sizeof(name->nodename) - 1] = '\0'; in uname()
|
/Zephyr-latest/tests/net/socket/af_packet/src/ |
D | main.c | 57 if (memcmp(pkt->frags->data, lladdr1, sizeof(lladdr1)) == 0) { in eth_fake_send() 120 memset(&addr, 0, sizeof(addr)); in bind_socket() 125 return zsock_bind(sock, (struct sockaddr *)&addr, sizeof(addr)); in bind_socket() 143 if (memcmp(link_addr->addr, lladdr1, sizeof(lladdr1)) != 0 && in iface_cb() 144 memcmp(link_addr->addr, lladdr2, sizeof(lladdr2)) != 0) { in iface_cb() 188 ret = zsock_bind(sock, (struct sockaddr *) sockaddr, sizeof(*sockaddr)); in prepare_udp_socket() 223 uint8_t data_to_receive[sizeof(data_to_send) + HDR_SIZE]; in ZTEST() 244 sent = zsock_sendto(sock4, data_to_send, sizeof(data_to_send), in ZTEST() 245 0, (struct sockaddr *)&sockaddr, sizeof(sockaddr)); in ZTEST() 246 zassert_equal(sent, sizeof(data_to_send), "sendto failed"); in ZTEST() [all …]
|
/Zephyr-latest/tests/unit/crc/ |
D | main.c | 23 zassert_equal(crc32_c(0, test1, sizeof(test1), true, true), in ZTEST() 25 zassert_equal(crc32_c(0, test2, sizeof(test2), true, true), in ZTEST() 27 zassert_equal(crc32_c(0, test3, sizeof(test3), true, true), in ZTEST() 35 zassert_equal(crc32_c(0, test1, sizeof(test1), true, false), in ZTEST() 37 zassert_equal(crc32_c(0x1E923211, test2, sizeof(test2), false, false), in ZTEST() 39 zassert_equal(crc32_c(0xB2983B83, test3, sizeof(test3), false, true), in ZTEST() 49 zassert_equal(crc32_ieee(test1, sizeof(test1)), 0xD3D99E8B); in ZTEST() 50 zassert_equal(crc32_ieee(test2, sizeof(test2)), 0xCBF43926); in ZTEST() 51 zassert_equal(crc32_ieee(test3, sizeof(test3)), 0x20089AA4); in ZTEST() 60 zassert_equal(crc24_pgp(test1, sizeof(test1)), 0x00FE86FA); in ZTEST() [all …]
|
/Zephyr-latest/tests/net/socket/websocket/src/ |
D | main.c | 26 static uint8_t recv_buf[MAX(sizeof(lorem_ipsum), MAX_RECV_BUF_LEN)]; 101 #define FRAME1_HDR_SIZE (sizeof(frame1) - (sizeof(frame1_msg) - 1)) 111 memset(&ctx, 0, sizeof(ctx)); in test_recv() 114 ctx.recv_buf.size = sizeof(temp_recv_buf); in test_recv() 117 memcpy(feed_buf, &frame1, sizeof(frame1)); in test_recv() 120 sizeof(frame1), FRAME1_HDR_SIZE); in test_recv() 123 for (i = 0; i < sizeof(frame1) / count; i++) { in test_recv() 127 sizeof(recv_buf) - total_read); in test_recv() 138 left = sizeof(frame1) % count; in test_recv() 141 ret = test_recv_buf(&feed_buf[sizeof(frame1) - left], left, in test_recv() [all …]
|
/Zephyr-latest/include/zephyr/sys/ |
D | cbprintf_internal.h | 137 long : sizeof(long) <= 4, \ 138 unsigned long : sizeof(long) <= 4, \ 216 ((sizeof(fmt) >= 2 && fmt[0] == '%' && fmt[1] == 'p') ? 1 : 0) + \ 217 ((sizeof(fmt) >= 3 && fmt[0] != '%' && fmt[1] == '%' && fmt[2] == 'p') ? 1 : 0) + \ 218 ((sizeof(fmt) >= 4 && fmt[1] != '%' && fmt[2] == '%' && fmt[3] == 'p') ? 1 : 0) + \ 219 ((sizeof(fmt) >= 5 && fmt[2] != '%' && fmt[3] == '%' && fmt[4] == 'p') ? 1 : 0) + \ 220 ((sizeof(fmt) >= 6 && fmt[3] != '%' && fmt[4] == '%' && fmt[5] == 'p') ? 1 : 0) + \ 221 ((sizeof(fmt) >= 7 && fmt[4] != '%' && fmt[5] == '%' && fmt[6] == 'p') ? 1 : 0) + \ 222 ((sizeof(fmt) >= 8 && fmt[5] != '%' && fmt[6] == '%' && fmt[7] == 'p') ? 1 : 0) + \ 223 ((sizeof(fmt) >= 9 && fmt[6] != '%' && fmt[7] == '%' && fmt[8] == 'p') ? 1 : 0) + \ [all …]
|
/Zephyr-latest/tests/net/socket/getnameinfo/src/ |
D | main.c | 22 memset(&saddr, 0, sizeof(saddr)); in ZTEST_USER() 25 ret = zsock_getnameinfo((struct sockaddr *)&saddr, sizeof(saddr), in ZTEST_USER() 26 host, sizeof(host), serv, sizeof(serv), 0); in ZTEST_USER() 36 ret = zsock_getnameinfo((struct sockaddr *)&saddr, sizeof(saddr), in ZTEST_USER() 37 host, sizeof(host), serv, sizeof(serv), 0); in ZTEST_USER() 52 memset(&saddr, 0, sizeof(saddr)); in ZTEST_USER() 55 ret = zsock_getnameinfo((struct sockaddr *)&saddr, sizeof(saddr), in ZTEST_USER() 56 host, sizeof(host), serv, sizeof(serv), 0); in ZTEST_USER() 68 ret = zsock_getnameinfo((struct sockaddr *)&saddr, sizeof(saddr), in ZTEST_USER() 69 host, sizeof(host), serv, sizeof(serv), 0); in ZTEST_USER()
|
/Zephyr-latest/tests/arch/common/semihost/src/ |
D | main.c | 24 zassert_equal(semihost_write(fd, w_buffer, sizeof(w_buffer)), 0, "Write failed"); in ZTEST() 25 zassert_equal(semihost_flen(fd), sizeof(w_buffer), "Size not updated"); in ZTEST() 26 zassert_equal(semihost_write(fd, w_buffer, sizeof(w_buffer)), 0, "Write failed"); in ZTEST() 27 zassert_equal(semihost_flen(fd), 2 * sizeof(w_buffer), "Size not updated"); in ZTEST() 30 read = semihost_read(fd, r_buffer, sizeof(r_buffer)); in ZTEST() 39 zassert_equal(semihost_flen(fd), 2 * sizeof(w_buffer), "Data not preserved"); in ZTEST() 42 read = semihost_read(fd, r_buffer, sizeof(r_buffer)); in ZTEST() 43 zassert_equal(read, sizeof(r_buffer), "Read failed %d", read); in ZTEST() 44 zassert_mem_equal(r_buffer, w_buffer, sizeof(r_buffer), "Data not read"); in ZTEST() 45 read = semihost_read(fd, r_buffer, sizeof(r_buffer)); in ZTEST() [all …]
|
/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/ |
D | storage.c | 17 settings_save_one("ps/rc", &reset_counter, sizeof(reset_counter)); in save_reset_counter() 22 settings_save_one("ps/gdtt", &ctl->tt, sizeof(ctl->tt)); in save_gen_def_trans_time_state() 27 settings_save_one("ps/gpo", &ctl->onpowerup, sizeof(ctl->onpowerup)); in save_gen_onpowerup_state() 36 settings_save_one("ps/ld", &ctl->light->def, sizeof(ctl->light->def)); in save_def_states() 37 settings_save_one("ps/td", &ctl->temp->def, sizeof(ctl->temp->def)); in save_def_states() 38 settings_save_one("ps/dd", &ctl->duv->def, sizeof(ctl->duv->def)); in save_def_states() 43 settings_save_one("ps/ll", &ctl->light->last, sizeof(ctl->light->last)); in save_lightness_last_state() 51 sizeof(ctl->light->target)); in save_last_target_states() 54 sizeof(ctl->temp->target)); in save_last_target_states() 57 sizeof(ctl->duv->target)); in save_last_target_states() [all …]
|
/Zephyr-latest/samples/net/lwm2m_client/src/ |
D | lwm2m-client.c | 55 (sizeof(CONFIG_LWM2M_APP_ID) > 1 ? CONFIG_LWM2M_APP_ID : CONFIG_BOARD); 58 BUILD_ASSERT(sizeof(endpoint) <= CONFIG_LWM2M_SECURITY_KEY_SIZE, 98 sizeof(min_range)}, in lwm2m_setup() 100 sizeof(max_range)}, in lwm2m_setup() 102 sizeof(TEMP_SENSOR_UNITS)} in lwm2m_setup() 114 if (sizeof(CONFIG_LWM2M_APP_PSK) > 1) { in lwm2m_setup() 115 char psk[1 + sizeof(CONFIG_LWM2M_APP_PSK) / 2]; in lwm2m_setup() 117 size_t len = hex2bin(CONFIG_LWM2M_APP_PSK, sizeof(CONFIG_LWM2M_APP_PSK) - 1, psk, in lwm2m_setup() 118 sizeof(psk)); in lwm2m_setup() 141 lwm2m_set_res_buf(&LWM2M_OBJ(3, 0, 0), CLIENT_MANUFACTURER, sizeof(CLIENT_MANUFACTURER), in lwm2m_setup() [all …]
|
/Zephyr-latest/tests/net/lib/lwm2m/interop/src/ |
D | lwm2m-client.c | 71 sizeof(cid)); in set_socketoptions() 84 sizeof(min)); in set_socketoptions() 86 sizeof(max)); in set_socketoptions() 97 lwm2m_set_res_buf(&LWM2M_OBJ(19, 0, 0, 0), data, sizeof(data), 0, 0); in create_appdata() 98 lwm2m_set_res_buf(&LWM2M_OBJ(19, 0, 3), description, sizeof(description), 0, 0); in create_appdata() 107 lwm2m_set_res_buf(&LWM2M_OBJ(3, 0, 0), NAME, sizeof(NAME), in lwm2m_setup() 108 sizeof(NAME), LWM2M_RES_DATA_FLAG_RO); in lwm2m_setup() 109 lwm2m_set_res_buf(&LWM2M_OBJ(3, 0, 1), MODEL, sizeof(MODEL), in lwm2m_setup() 110 sizeof(MODEL), LWM2M_RES_DATA_FLAG_RO); in lwm2m_setup() 111 lwm2m_set_res_buf(&LWM2M_OBJ(3, 0, 2), SERIAL, sizeof(SERIAL), in lwm2m_setup() [all …]
|
/Zephyr-latest/tests/subsys/modem/modem_cmux/src/ |
D | main.c | 200 .get_size = sizeof(cmux_frame_control_cld_cmd), 202 .put_size = sizeof(cmux_frame_control_cld_ack) 207 .get_size = sizeof(cmux_frame_control_sabm_cmd), 209 .put_size = sizeof(cmux_frame_control_sabm_ack) 214 .get_size = sizeof(cmux_frame_dlci1_disc_cmd), 216 .put_size = sizeof(cmux_frame_dlci1_ua_ack) 221 .get_size = sizeof(cmux_frame_dlci2_disc_cmd), 223 .put_size = sizeof(cmux_frame_dlci2_ua_ack) 228 .get_size = sizeof(cmux_frame_dlci1_sabm_cmd), 230 .put_size = sizeof(cmux_frame_dlci1_ua_ack) [all …]
|
/Zephyr-latest/tests/net/socket/udp/src/ |
D | main.c | 30 #define BUF_AND_SIZE(buf) buf, sizeof(buf) - 1 31 #define STRLEN(buf) (sizeof(buf) - 1) 92 addrlen = sizeof(addr); in comm_sendto_recvfrom() 94 recved = zsock_recvfrom(server_sock, rx_buf, sizeof(rx_buf), in comm_sendto_recvfrom() 103 addrlen = sizeof(addr); in comm_sendto_recvfrom() 105 recved = zsock_recvfrom(server_sock, rx_buf, sizeof(rx_buf), in comm_sendto_recvfrom() 124 sent = zsock_sendto(server_sock, TEST_STR2, sizeof(TEST_STR2) - 1, in comm_sendto_recvfrom() 129 addrlen2 = sizeof(addr); in comm_sendto_recvfrom() 131 recved = zsock_recvfrom(client_sock, rx_buf, sizeof(rx_buf), in comm_sendto_recvfrom() 147 sent = zsock_sendto(server_sock, TEST_STR2, sizeof(TEST_STR2) - 1, in comm_sendto_recvfrom() [all …]
|
/Zephyr-latest/tests/net/socket/tls/src/ |
D | main.c | 69 psk, sizeof(psk)), in test_config_psk() 77 sec_tag_list, sizeof(sec_tag_list)), in test_config_psk() 83 sec_tag_list, sizeof(sec_tag_list)), in test_config_psk() 190 recved = zsock_recv(sock, rx_buf, sizeof(rx_buf), 0); in test_eof() 194 recved = zsock_recv(sock, rx_buf, sizeof(rx_buf), ZSOCK_MSG_DONTWAIT); in test_eof() 199 recved = zsock_recv(sock, rx_buf, sizeof(rx_buf), ZSOCK_MSG_DONTWAIT); in test_eof() 209 socklen_t optlen = sizeof(optval); in ZTEST() 217 zassert_equal(optlen, sizeof(optval), "getsockopt got invalid size"); in ZTEST() 222 zassert_equal(optlen, sizeof(optval), "getsockopt got invalid size"); in ZTEST() 234 socklen_t optlen = sizeof(optval); in ZTEST() [all …]
|
/Zephyr-latest/tests/drivers/eeprom/api/src/ |
D | main.c | 32 rc = eeprom_write(eeprom, size - 1, data, sizeof(data)); in ZTEST_USER() 40 const uint8_t wr_buf2[sizeof(wr_buf1)] = { 0xAA, 0xBB, 0xCC, 0xDD }; in ZTEST_USER() 41 uint8_t rd_buf[sizeof(wr_buf1)]; in ZTEST_USER() 50 rc = eeprom_write(eeprom, address, wr_buf1, sizeof(wr_buf1)); in ZTEST_USER() 53 rc = eeprom_read(eeprom, address, rd_buf, sizeof(rd_buf)); in ZTEST_USER() 56 rc = memcmp(wr_buf1, rd_buf, sizeof(wr_buf1)); in ZTEST_USER() 59 address += sizeof(wr_buf1); in ZTEST_USER() 64 rc = eeprom_write(eeprom, address, wr_buf2, sizeof(wr_buf2)); in ZTEST_USER() 67 rc = eeprom_read(eeprom, address, rd_buf, sizeof(rd_buf)); in ZTEST_USER() 70 rc = memcmp(wr_buf2, rd_buf, sizeof(wr_buf2)); in ZTEST_USER() [all …]
|
/Zephyr-latest/tests/subsys/fs/zms/src/ |
D | main.c | 114 len = zms_read(fs, id, rd_buf, sizeof(rd_buf)); in execute_long_pattern_write() 117 BUILD_ASSERT((sizeof(wr_buf) % sizeof(pattern)) == 0); in execute_long_pattern_write() 118 for (int i = 0; i < sizeof(wr_buf); i += sizeof(pattern)) { in execute_long_pattern_write() 119 memcpy(wr_buf + i, pattern, sizeof(pattern)); in execute_long_pattern_write() 122 len = zms_write(fs, id, wr_buf, sizeof(wr_buf)); in execute_long_pattern_write() 123 zassert_true(len == sizeof(wr_buf), "zms_write failed: %d", len); in execute_long_pattern_write() 125 len = zms_read(fs, id, rd_buf, sizeof(rd_buf)); in execute_long_pattern_write() 126 zassert_true(len == sizeof(rd_buf), "zms_read unexpected failure: %d", len); in execute_long_pattern_write() 127 zassert_mem_equal(wr_buf, rd_buf, sizeof(rd_buf), "RD buff should be equal to the WR buff"); in execute_long_pattern_write() 177 err = zms_read(&fixture->fs, TEST_DATA_ID, rd_buf, sizeof(rd_buf)); in ZTEST_F() [all …]
|
/Zephyr-latest/tests/subsys/dfu/mcuboot/src/ |
D | main.c | 39 for (offs = 0; offs < fa->fa_size; offs += sizeof(temp)) { in ZTEST() 40 ret = flash_area_read(fa, offs, &temp, sizeof(temp)); in ZTEST() 43 ret = flash_area_write(fa, offs, &temp2, sizeof(temp)); in ZTEST() 51 for (offs = 0; offs < fa->fa_size; offs += sizeof(temp)) { in ZTEST() 52 ret = flash_area_read(fa, offs, &temp, sizeof(temp)); in ZTEST() 80 ret = flash_area_read(fa, fa->fa_size - sizeof(expectation), in ZTEST() 81 &readout, sizeof(readout)); in ZTEST() 84 zassert(memcmp(expectation, readout, sizeof(expectation)) == 0, in ZTEST() 92 ret = flash_area_read(fa, fa->fa_size - sizeof(expectation), in ZTEST() 93 &readout, sizeof(readout)); in ZTEST() [all …]
|
/Zephyr-latest/tests/net/socket/tcp/src/ |
D | main.c | 108 recved = zsock_recv(sock, rx_buf, sizeof(rx_buf), flags); in test_recv() 125 recved = zsock_recvfrom(sock, rx_buf, sizeof(rx_buf), flags, addr, addrlen); in test_recvfrom() 172 recved = zsock_recv(sock, rx_buf, sizeof(rx_buf), 0); in test_eof() 176 recved = zsock_recv(sock, rx_buf, sizeof(rx_buf), 0); in test_eof() 181 recved = zsock_recv(sock, rx_buf, sizeof(rx_buf), 0); in test_eof() 239 socklen_t addrlen = sizeof(addr); in ZTEST_USER() 244 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER() 247 test_connect(c_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER() 251 zassert_equal(addrlen, sizeof(struct sockaddr_in), "wrong addrlen"); in ZTEST_USER() 274 socklen_t addrlen = sizeof(addr); in ZTEST_USER() [all …]
|
/Zephyr-latest/samples/bluetooth/encrypted_advertising/peripheral/src/ |
D | data.h | 21 BUILD_ASSERT(sizeof(ad_data_0) == AD_DATA_0_SIZE); 25 BUILD_ASSERT(sizeof(ad_data_1) == AD_DATA_1_SIZE); 29 BUILD_ASSERT(sizeof(ad_data_2) == AD_DATA_2_SIZE); 33 BUILD_ASSERT(sizeof(ad_data_3) == AD_DATA_3_SIZE); 37 BUILD_ASSERT(sizeof(ad_data_4) == AD_DATA_4_SIZE); 40 BT_DATA(BT_DATA_NAME_COMPLETE, ad_data_0, sizeof(ad_data_0)), 41 BT_DATA(BT_DATA_MANUFACTURER_DATA, ad_data_1, sizeof(ad_data_1)), 42 BT_DATA(BT_DATA_MANUFACTURER_DATA, ad_data_2, sizeof(ad_data_2)), 43 BT_DATA(BT_DATA_MANUFACTURER_DATA, ad_data_3, sizeof(ad_data_3)), 44 BT_DATA(BT_DATA_MANUFACTURER_DATA, ad_data_4, sizeof(ad_data_4)),
|
/Zephyr-latest/tests/net/socket/can/src/ |
D | main.c | 27 sframe.len = sizeof(data); in ZTEST() 28 memcpy(sframe.data, data, sizeof(sframe.data)); in ZTEST() 32 expected.dlc = can_bytes_to_dlc(sizeof(data)); in ZTEST() 33 memcpy(expected.data, data, sizeof(data)); in ZTEST() 37 LOG_HEXDUMP_DBG((const uint8_t *)&sframe, sizeof(sframe), "sframe"); in ZTEST() 38 LOG_HEXDUMP_DBG((const uint8_t *)&zframe, sizeof(zframe), "zframe"); in ZTEST() 39 LOG_HEXDUMP_DBG((const uint8_t *)&expected, sizeof(expected), "expected"); in ZTEST() 69 expected.len = sizeof(data); in ZTEST() 70 memcpy(expected.data, data, sizeof(expected.data)); in ZTEST() 74 zframe.dlc = can_bytes_to_dlc(sizeof(data)); in ZTEST() [all …]
|