Home
last modified time | relevance | path

Searched refs:offsetof (Results 1 – 25 of 137) sorted by relevance

123456

/Zephyr-latest/tests/drivers/rtc/rtc_api_helpers/src/
Dtest_rtc_time_to_tm.c13 zassert_equal(offsetof(struct rtc_time, tm_sec), offsetof(struct tm, tm_sec), in ZTEST()
16 zassert_equal(offsetof(struct rtc_time, tm_min), offsetof(struct tm, tm_min), in ZTEST()
19 zassert_equal(offsetof(struct rtc_time, tm_hour), offsetof(struct tm, tm_hour), in ZTEST()
22 zassert_equal(offsetof(struct rtc_time, tm_mday), offsetof(struct tm, tm_mday), in ZTEST()
25 zassert_equal(offsetof(struct rtc_time, tm_mon), offsetof(struct tm, tm_mon), in ZTEST()
28 zassert_equal(offsetof(struct rtc_time, tm_year), offsetof(struct tm, tm_year), in ZTEST()
31 zassert_equal(offsetof(struct rtc_time, tm_wday), offsetof(struct tm, tm_wday), in ZTEST()
34 zassert_equal(offsetof(struct rtc_time, tm_yday), offsetof(struct tm, tm_yday), in ZTEST()
37 zassert_equal(offsetof(struct rtc_time, tm_isdst), offsetof(struct tm, tm_isdst), in ZTEST()
/Zephyr-latest/tests/posix/headers/src/
Dnetdb_h.c22 zassert_not_equal(-1, offsetof(struct hostent, h_name)); in ZTEST()
23 zassert_not_equal(-1, offsetof(struct hostent, h_aliases)); in ZTEST()
24 zassert_not_equal(-1, offsetof(struct hostent, h_addrtype)); in ZTEST()
25 zassert_not_equal(-1, offsetof(struct hostent, h_length)); in ZTEST()
26 zassert_not_equal(-1, offsetof(struct hostent, h_addr_list)); in ZTEST()
28 zassert_not_equal(-1, offsetof(struct netent, n_name)); in ZTEST()
29 zassert_not_equal(-1, offsetof(struct netent, n_aliases)); in ZTEST()
30 zassert_not_equal(-1, offsetof(struct netent, n_addrtype)); in ZTEST()
31 zassert_not_equal(-1, offsetof(struct netent, n_net)); in ZTEST()
33 zassert_not_equal(-1, offsetof(struct protoent, p_name)); in ZTEST()
[all …]
Dsys_socket_h.c30 zassert_not_equal(-1, offsetof(struct sockaddr, sa_family)); in ZTEST()
38 zassert_not_equal(-1, offsetof(struct sockaddr_storage, ss_family)); in ZTEST()
39 zassert_equal(offsetof(struct sockaddr, sa_family), in ZTEST()
40 offsetof(struct sockaddr_storage, ss_family)); in ZTEST()
42 zassert_not_equal(-1, offsetof(struct msghdr, msg_name)); in ZTEST()
43 zassert_not_equal(-1, offsetof(struct msghdr, msg_namelen)); in ZTEST()
44 zassert_not_equal(-1, offsetof(struct msghdr, msg_iov)); in ZTEST()
45 zassert_not_equal(-1, offsetof(struct msghdr, msg_iovlen)); in ZTEST()
46 zassert_not_equal(-1, offsetof(struct msghdr, msg_control)); in ZTEST()
47 zassert_not_equal(-1, offsetof(struct msghdr, msg_controllen)); in ZTEST()
[all …]
Daio_h.c17 zassert_not_equal(offsetof(struct aiocb, aio_fildes), -1); in ZTEST()
18 zassert_not_equal(offsetof(struct aiocb, aio_offset), -1); in ZTEST()
19 zassert_not_equal(offsetof(struct aiocb, aio_buf), -1); in ZTEST()
20 zassert_not_equal(offsetof(struct aiocb, aio_nbytes), -1); in ZTEST()
21 zassert_not_equal(offsetof(struct aiocb, aio_reqprio), -1); in ZTEST()
22 zassert_not_equal(offsetof(struct aiocb, aio_sigevent), -1); in ZTEST()
23 zassert_not_equal(offsetof(struct aiocb, aio_lio_opcode), -1); in ZTEST()
Dsignal_h.c36 zassert_not_equal(-1, offsetof(struct sigevent, sigev_notify)); in ZTEST()
37 zassert_not_equal(-1, offsetof(struct sigevent, sigev_signo)); in ZTEST()
38 zassert_not_equal(-1, offsetof(struct sigevent, sigev_value)); in ZTEST()
39 zassert_not_equal(-1, offsetof(struct sigevent, sigev_notify_function)); in ZTEST()
40 zassert_not_equal(-1, offsetof(struct sigevent, sigev_notify_attributes)); in ZTEST()
46 zassert_not_equal(-1, offsetof(union sigval, sival_int)); in ZTEST()
47 zassert_not_equal(-1, offsetof(union sigval, sival_ptr)); in ZTEST()
56 zassert_not_equal(-1, offsetof(struct sigaction, sa_handler)); in ZTEST()
57 zassert_not_equal(-1, offsetof(struct sigaction, sa_mask)); in ZTEST()
58 zassert_not_equal(-1, offsetof(struct sigaction, sa_flags)); in ZTEST()
[all …]
Dnetinet_in_h.c27 zexpect_not_equal(-1, offsetof(struct in_addr, s_addr)); in ZTEST()
29 zexpect_not_equal(-1, offsetof(struct sockaddr_in, sin_family)); in ZTEST()
30 zexpect_not_equal(-1, offsetof(struct sockaddr_in, sin_port)); in ZTEST()
31 zexpect_not_equal(-1, offsetof(struct sockaddr_in, sin_addr)); in ZTEST()
33 zexpect_not_equal(-1, offsetof(struct in6_addr, s6_addr)); in ZTEST()
36 zexpect_not_equal(-1, offsetof(struct sockaddr_in6, sin6_family)); in ZTEST()
37 zexpect_not_equal(-1, offsetof(struct sockaddr_in6, sin6_port)); in ZTEST()
40 zexpect_not_equal(-1, offsetof(struct sockaddr_in6, sin6_addr)); in ZTEST()
41 zexpect_not_equal(-1, offsetof(struct sockaddr_in6, sin6_scope_id)); in ZTEST()
65 zexpect_not_equal(-1, offsetof(struct ipv6_mreq, ipv6mr_multiaddr)); in ZTEST()
[all …]
Dmqueue_h.c24 zassert_not_equal(-1, offsetof(struct mq_attr, mq_flags)); in ZTEST()
25 zassert_not_equal(-1, offsetof(struct mq_attr, mq_maxmsg)); in ZTEST()
26 zassert_not_equal(-1, offsetof(struct mq_attr, mq_msgsize)); in ZTEST()
27 zassert_not_equal(-1, offsetof(struct mq_attr, mq_curmsgs)); in ZTEST()
Dpoll_h.c22 zassert_not_equal(-1, offsetof(struct pollfd, fd)); in ZTEST()
23 zassert_not_equal(-1, offsetof(struct pollfd, events)); in ZTEST()
24 zassert_not_equal(-1, offsetof(struct pollfd, revents)); in ZTEST()
Dsys_time_h.c22 zassert_not_equal(-1, offsetof(struct timeval, tv_sec)); in ZTEST()
23 zassert_not_equal(-1, offsetof(struct timeval, tv_usec)); in ZTEST()
Dnet_if_h.c22 zassert_not_equal(-1, offsetof(struct if_nameindex, if_index)); in ZTEST()
23 zassert_not_equal(-1, offsetof(struct if_nameindex, if_name)); in ZTEST()
Ddirent_h.c25 zassert_not_equal(-1, offsetof(struct dirent, d_ino)); in ZTEST()
26 zassert_not_equal(-1, offsetof(struct dirent, d_name)); in ZTEST()
/Zephyr-latest/subsys/debug/
Dthread_info.c46 [THREAD_INFO_OFFSET_K_CURR_THREAD] = offsetof(struct _cpu, current),
47 [THREAD_INFO_OFFSET_K_THREADS] = offsetof(struct z_kernel, threads),
48 [THREAD_INFO_OFFSET_T_ENTRY] = offsetof(struct k_thread, entry),
49 [THREAD_INFO_OFFSET_T_NEXT_THREAD] = offsetof(struct k_thread,
51 [THREAD_INFO_OFFSET_T_STATE] = offsetof(struct _thread_base,
53 [THREAD_INFO_OFFSET_T_USER_OPTIONS] = offsetof(struct _thread_base,
55 [THREAD_INFO_OFFSET_T_PRIO] = offsetof(struct _thread_base, prio),
58 [THREAD_INFO_OFFSET_T_STACK_PTR] = offsetof(struct k_thread,
61 [THREAD_INFO_OFFSET_T_STACK_PTR] = offsetof(struct k_thread,
64 [THREAD_INFO_OFFSET_T_STACK_PTR] = offsetof(struct k_thread,
[all …]
/Zephyr-latest/kernel/include/
Dgen_offset.h85 GEN_ABSOLUTE_SYM(__##S##_##M##_##OFFSET, offsetof(S, M))
88 GEN_ABSOLUTE_SYM(__struct_##S##_##M##_##OFFSET, offsetof(struct S, M))
91 GEN_ABSOLUTE_SYM(__##S##_##N##_##OFFSET, offsetof(S, M))
94 GEN_ABSOLUTE_SYM(__struct_##S##_##N##_##OFFSET, offsetof(struct S, M))
Dkernel_offsets.h79 offsetof(struct device, deps));
84 offsetof(struct device, pm));
90 offsetof(struct pm_device_base, flags));
/Zephyr-latest/modules/trusted-firmware-m/nordic/include/
Dtfm_read_ranges.h18 #define FICR_INFO_ADDR (FICR_BASE + offsetof(NRF_FICR_Type, INFO))
22 #define FICR_NFC_ADDR (FICR_BASE + offsetof(NRF_FICR_Type, NFC))
27 #define FICR_XOSC32MTRIM_ADDR (FICR_BASE + offsetof(NRF_FICR_Type, XOSC32MTRIM))
36 #define FICR_SIPINFO_ADDR (FICR_BASE + offsetof(NRF_FICR_Type, SIPINFO))
/Zephyr-latest/include/zephyr/data/
Djson.h159 .offset = offsetof(struct_, field_name_), \
192 .offset = offsetof(struct_, field_name_), \
214 .offset = offsetof(struct_, len_field_), \
276 .offset = offsetof(struct_, field_name_), \
325 .offset = offsetof(struct_, field_name_), \
384 .offset = offsetof(struct_, field_name_), \
419 .offset = offsetof(struct_, struct_field_name_), \
451 .offset = offsetof(struct_, struct_field_name_), \
474 .offset = offsetof(struct_, struct_field_name_), \
505 .offset = offsetof(struct_, struct_field_name_), \
[all …]
/Zephyr-latest/arch/arm/core/cortex_a_r/
Dsmp.c62 BUILD_ASSERT(offsetof(struct boot_params, mpid) == BOOT_PARAM_MPID_OFFSET);
63 BUILD_ASSERT(offsetof(struct boot_params, irq_sp) == BOOT_PARAM_IRQ_SP_OFFSET);
64 BUILD_ASSERT(offsetof(struct boot_params, fiq_sp) == BOOT_PARAM_FIQ_SP_OFFSET);
65 BUILD_ASSERT(offsetof(struct boot_params, abt_sp) == BOOT_PARAM_ABT_SP_OFFSET);
66 BUILD_ASSERT(offsetof(struct boot_params, udf_sp) == BOOT_PARAM_UDF_SP_OFFSET);
67 BUILD_ASSERT(offsetof(struct boot_params, svc_sp) == BOOT_PARAM_SVC_SP_OFFSET);
68 BUILD_ASSERT(offsetof(struct boot_params, sys_sp) == BOOT_PARAM_SYS_SP_OFFSET);
69 BUILD_ASSERT(offsetof(struct boot_params, voting) == BOOT_PARAM_VOTING_OFFSET);
/Zephyr-latest/subsys/net/lib/ptp/
Dptp.c28 offsetof(struct ptp_port, timers.announce), in ptp_thread()
29 offsetof(struct ptp_port, timers.delay), in ptp_thread()
30 offsetof(struct ptp_port, timers.sync), in ptp_thread()
31 offsetof(struct ptp_port, timers.qualification) in ptp_thread()
/Zephyr-latest/lib/open-amp/
Dresource_table.c44 offsetof(struct fw_resource_table, vdev),
48 offsetof(struct fw_resource_table, cm_trace),
/Zephyr-latest/tests/bluetooth/controller/common/src/
Dhelper_pdu.c52 pdu->len = offsetof(struct pdu_data_llctrl, ping_req) + in helper_pdu_encode_ping_req()
60 pdu->len = offsetof(struct pdu_data_llctrl, ping_rsp) + in helper_pdu_encode_ping_rsp()
70 pdu->len = offsetof(struct pdu_data_llctrl, feature_req) + in helper_pdu_encode_feature_req()
84 pdu->len = offsetof(struct pdu_data_llctrl, feature_req) + in helper_pdu_encode_peripheral_feature_req()
100 pdu->len = offsetof(struct pdu_data_llctrl, feature_rsp) + in helper_pdu_encode_feature_rsp()
115 pdu->len = offsetof(struct pdu_data_llctrl, min_used_chans_ind) + in helper_pdu_encode_min_used_chans_ind()
127 pdu->len = offsetof(struct pdu_data_llctrl, version_ind) + in helper_pdu_encode_version_ind()
141 offsetof(struct pdu_data_llctrl, enc_req) + sizeof(struct pdu_data_llctrl_enc_req); in helper_pdu_encode_enc_req()
155 offsetof(struct pdu_data_llctrl, enc_rsp) + sizeof(struct pdu_data_llctrl_enc_rsp); in helper_pdu_encode_enc_rsp()
164 pdu->len = offsetof(struct pdu_data_llctrl, start_enc_req) + in helper_pdu_encode_start_enc_req()
[all …]
/Zephyr-latest/tests/net/ipv4_fragment/src/
Dmain.c209 zassert_equal(hdr->vhl, orig_hdr[offsetof(struct net_ipv4_hdr, vhl)], in check_ipv4_fragment_header()
211 zassert_equal(hdr->tos, orig_hdr[offsetof(struct net_ipv4_hdr, tos)], in check_ipv4_fragment_header()
213 zassert_equal(hdr->ttl, orig_hdr[offsetof(struct net_ipv4_hdr, ttl)], in check_ipv4_fragment_header()
215 zassert_equal(hdr->proto, orig_hdr[offsetof(struct net_ipv4_hdr, proto)], in check_ipv4_fragment_header()
218 zassert_mem_equal(hdr->src, &orig_hdr[offsetof(struct net_ipv4_hdr, src)], in check_ipv4_fragment_header()
220 zassert_mem_equal(hdr->dst, &orig_hdr[offsetof(struct net_ipv4_hdr, dst)], in check_ipv4_fragment_header()
381 zassert_equal(hdr->vhl, ipv4_udp[offsetof(struct net_ipv4_hdr, vhl)], in udp_data_received()
383 zassert_equal(hdr->tos, ipv4_udp[offsetof(struct net_ipv4_hdr, tos)], in udp_data_received()
385 zassert_equal(hdr->ttl, ipv4_udp[offsetof(struct net_ipv4_hdr, ttl)], in udp_data_received()
387 zassert_equal(hdr->proto, ipv4_udp[offsetof(struct net_ipv4_hdr, proto)], in udp_data_received()
[all …]
/Zephyr-latest/include/zephyr/net/http/
Dserver.h127 BUILD_ASSERT(offsetof(struct http_resource_detail_static, common) == 0);
143 BUILD_ASSERT(offsetof(struct http_resource_detail_static_fs, common) == 0);
247 BUILD_ASSERT(offsetof(struct http_resource_detail_dynamic, common) == 0);
293 BUILD_ASSERT(offsetof(struct http_resource_detail_websocket, common) == 0);
/Zephyr-latest/lib/hash/
Dhash_map_oa_lp.c30 BUILD_ASSERT(offsetof(struct sys_hashmap_oa_lp_data, buckets) ==
31 offsetof(struct sys_hashmap_data, buckets));
32 BUILD_ASSERT(offsetof(struct sys_hashmap_oa_lp_data, n_buckets) ==
33 offsetof(struct sys_hashmap_data, n_buckets));
34 BUILD_ASSERT(offsetof(struct sys_hashmap_oa_lp_data, size) ==
35 offsetof(struct sys_hashmap_data, size));
/Zephyr-latest/include/zephyr/arch/x86/
Darch_inlines.h26 : "i" (offsetof(x86_tss64_t, cpu))); in arch_curr_cpu()
/Zephyr-latest/include/zephyr/net/hdlc_rcp_if/
Dhdlc_rcp_if.h73 BUILD_ASSERT(offsetof(struct hdlc_api, iface_api) == 0);

123456