Home
last modified time | relevance | path

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

12345678910>>...34

/external/u-boot/arch/arm/lib/
Dasm-offsets.c40 DEFINE(CCM_CCTL, offsetof(struct ccm_regs, cctl)); in main()
41 DEFINE(CCM_CGCR0, offsetof(struct ccm_regs, cgr0)); in main()
42 DEFINE(CCM_CGCR1, offsetof(struct ccm_regs, cgr1)); in main()
43 DEFINE(CCM_CGCR2, offsetof(struct ccm_regs, cgr2)); in main()
44 DEFINE(CCM_PCDR2, offsetof(struct ccm_regs, pcdr[2])); in main()
45 DEFINE(CCM_MCR, offsetof(struct ccm_regs, mcr)); in main()
48 DEFINE(ESDRAMC_ESDCTL0, offsetof(struct esdramc_regs, ctl0)); in main()
49 DEFINE(ESDRAMC_ESDCFG0, offsetof(struct esdramc_regs, cfg0)); in main()
50 DEFINE(ESDRAMC_ESDMISC, offsetof(struct esdramc_regs, misc)); in main()
53 DEFINE(MAX_MPR0, offsetof(struct max_regs, mpr0)); in main()
[all …]
/external/python/cpython3/Objects/
Dtypeslots.inc4 offsetof(PyHeapTypeObject, as_mapping.mp_ass_subscript),
5 offsetof(PyHeapTypeObject, as_mapping.mp_length),
6 offsetof(PyHeapTypeObject, as_mapping.mp_subscript),
7 offsetof(PyHeapTypeObject, as_number.nb_absolute),
8 offsetof(PyHeapTypeObject, as_number.nb_add),
9 offsetof(PyHeapTypeObject, as_number.nb_and),
10 offsetof(PyHeapTypeObject, as_number.nb_bool),
11 offsetof(PyHeapTypeObject, as_number.nb_divmod),
12 offsetof(PyHeapTypeObject, as_number.nb_float),
13 offsetof(PyHeapTypeObject, as_number.nb_floor_divide),
[all …]
/external/strace/
Dbpf_attr_check.c13 …static_assert(offsetof(struct BPF_MAP_CREATE_struct, map_type) == offsetof(union bpf_attr, map_typ…
20 …static_assert(offsetof(struct BPF_MAP_CREATE_struct, key_size) == offsetof(union bpf_attr, key_siz…
27 …static_assert(offsetof(struct BPF_MAP_CREATE_struct, value_size) == offsetof(union bpf_attr, value…
34 …static_assert(offsetof(struct BPF_MAP_CREATE_struct, max_entries) == offsetof(union bpf_attr, max_…
41 …static_assert(offsetof(struct BPF_MAP_CREATE_struct, map_flags) == offsetof(union bpf_attr, map_fl…
48 …static_assert(offsetof(struct BPF_MAP_CREATE_struct, inner_map_fd) == offsetof(union bpf_attr, inn…
55 …static_assert(offsetof(struct BPF_MAP_CREATE_struct, numa_node) == offsetof(union bpf_attr, numa_n…
62 …static_assert(offsetof(struct BPF_MAP_CREATE_struct, map_name) == offsetof(union bpf_attr, map_nam…
69 …static_assert(offsetof(struct BPF_MAP_CREATE_struct, map_ifindex) == offsetof(union bpf_attr, map_…
79 …static_assert(offsetof(struct BPF_MAP_LOOKUP_ELEM_struct, map_fd) == offsetof(union bpf_attr, map_…
[all …]
/external/google-breakpad/src/common/android/
Dbreakpad_getcontext_unittest.cc55 offsetof(ucontext_t,uc_mcontext.arm_r0)); in TEST()
60 offsetof(ucontext_t,uc_mcontext.regs[0])); in TEST()
62 offsetof(ucontext_t,uc_mcontext.sp)); in TEST()
64 offsetof(ucontext_t,uc_mcontext.pc)); in TEST()
66 offsetof(ucontext_t,uc_mcontext.pstate)); in TEST()
68 offsetof(ucontext_t,uc_mcontext.__reserved)); in TEST()
71 offsetof(ucontext_t,uc_mcontext.gregs)); in TEST()
74 offsetof(ucontext_t,uc_mcontext.gregs[REG_##x])) in TEST()
96 offsetof(ucontext_t,uc_mcontext.fpregs)); in TEST()
99 offsetof(ucontext_t,__fpregs_mem)); in TEST()
[all …]
/external/libunwind/src/ia64/
Dmk_Gcursor_i.c30 #ifdef offsetof
31 # undef offsetof
34 #define offsetof(type,field) ((char *) &((type *) 0)->field - (char *) 0) macro
42 OFFSET("IP_OFF", offsetof (struct cursor, ip)); in main()
43 OFFSET("PR_OFF", offsetof (struct cursor, pr)); in main()
44 OFFSET("BSP_OFF", offsetof (struct cursor, bsp)); in main()
45 OFFSET("PSP_OFF", offsetof (struct cursor, psp)); in main()
46 OFFSET("PFS_LOC_OFF", offsetof (struct cursor, loc[IA64_REG_PFS])); in main()
47 OFFSET("RNAT_LOC_OFF", offsetof (struct cursor, loc[IA64_REG_RNAT])); in main()
48 OFFSET("UNAT_LOC_OFF", offsetof (struct cursor, loc[IA64_REG_UNAT])); in main()
[all …]
/external/clang/test/CodeGenCXX/
Daarch64-aapcs-zerolength-bitfield.cpp14 static_assert(offsetof(struct t1, bar) == 1);
23 static_assert(offsetof(struct t2, bar) == 2);
32 static_assert(offsetof(struct t3, bar) == 4);
41 static_assert(offsetof(struct t4, bar) == 8);
50 static_assert(offsetof(struct t5, bar) == 8);
60 static_assert(offsetof(struct t6, bar2) == 2);
70 static_assert(offsetof(struct t7, bar2) == 3);
80 static_assert(offsetof(struct t8, bar2) == 5);
90 static_assert(offsetof(struct t9, bar2) == 9);
100 static_assert(offsetof(struct t10, bar2) == 9);
[all …]
/external/clang/test/CodeGen/
Darm-apcs-zerolength-bitfield.c17 static int arr1_offset[(offsetof(struct t1, bar) == 4) ? 0 : -1];
26 static int arr2_offset[(offsetof(struct t2, bar) == 4) ? 0 : -1];
35 static int arr3_offset[(offsetof(struct t3, bar) == 4) ? 0 : -1];
44 static int arr4_offset[(offsetof(struct t4, bar) == 4) ? 0 : -1];
53 static int arr5_offset[(offsetof(struct t5, bar) == 4) ? 0 : -1];
63 static int arr6_offset[(offsetof(struct t6, bar2) == 5) ? 0 : -1];
73 static int arr7_offset[(offsetof(struct t7, bar2) == 5) ? 0 : -1];
83 static int arr8_offset[(offsetof(struct t8, bar2) == 5) ? 0 : -1];
93 static int arr9_offset[(offsetof(struct t9, bar2) == 5) ? 0 : -1];
103 static int arr10_offset[(offsetof(struct t10, bar2) == 5) ? 0 : -1];
[all …]
Darm-aapcs-zerolength-bitfield.c13 static int arr1_offset[(offsetof(struct t1, bar) == 1) ? 0 : -1];
22 static int arr2_offset[(offsetof(struct t2, bar) == 2) ? 0 : -1];
31 static int arr3_offset[(offsetof(struct t3, bar) == 4) ? 0 : -1];
40 static int arr4_offset[(offsetof(struct t4, bar) == 4) ? 0 : -1];
49 static int arr5_offset[(offsetof(struct t5, bar) == 8) ? 0 : -1];
59 static int arr6_offset[(offsetof(struct t6, bar2) == 2) ? 0 : -1];
69 static int arr7_offset[(offsetof(struct t7, bar2) == 3) ? 0 : -1];
79 static int arr8_offset[(offsetof(struct t8, bar2) == 5) ? 0 : -1];
89 static int arr9_offset[(offsetof(struct t9, bar2) == 5) ? 0 : -1];
99 static int arr10_offset[(offsetof(struct t10, bar2) == 9) ? 0 : -1];
[all …]
/external/libunwind/src/coredump/
D_UCD_access_reg_linux.c91 [UNW_X86_EAX] = offsetof(struct user_regs_struct, eax) / sizeof(long), in _UCD_access_reg()
92 [UNW_X86_EDX] = offsetof(struct user_regs_struct, edx) / sizeof(long), in _UCD_access_reg()
93 [UNW_X86_ECX] = offsetof(struct user_regs_struct, ecx) / sizeof(long), in _UCD_access_reg()
94 [UNW_X86_EBX] = offsetof(struct user_regs_struct, ebx) / sizeof(long), in _UCD_access_reg()
95 [UNW_X86_ESI] = offsetof(struct user_regs_struct, esi) / sizeof(long), in _UCD_access_reg()
96 [UNW_X86_EDI] = offsetof(struct user_regs_struct, edi) / sizeof(long), in _UCD_access_reg()
97 [UNW_X86_EBP] = offsetof(struct user_regs_struct, ebp) / sizeof(long), in _UCD_access_reg()
98 [UNW_X86_ESP] = offsetof(struct user_regs_struct, esp) / sizeof(long), in _UCD_access_reg()
99 [UNW_X86_EIP] = offsetof(struct user_regs_struct, eip) / sizeof(long), in _UCD_access_reg()
100 [UNW_X86_EFLAGS] = offsetof(struct user_regs_struct, eflags) / sizeof(long), in _UCD_access_reg()
[all …]
/external/strace/tests-mx32/
Dioctl_dm.c54 ALIGNED_SIZE(offsetof(t_, m_), t_)
70 offsetof(struct dm_ioctl, data);
192 tail_alloc(offsetof(struct dm_ioctl, data)); in main()
361 init_s(&s.ioc, sizeof(s), offsetof(struct s, u)); in main()
410 init_s(&dm_arg_open1->ioc, offsetof(struct dm_table_open_test, target1), in main()
411 offsetof(struct dm_table_open_test, target1)); in main()
425 offsetof(struct dm_table_open_test, target1) in main()
428 offsetof(struct dm_table_open_test, target1) in main()
433 init_s(&dm_arg_open2->ioc, offsetof(struct dm_table_open_test, param1), in main()
434 offsetof(struct dm_table_open_test, target1)); in main()
[all …]
Dbpf-obj_get_info_by_fd.c98 if (size > offsetof(struct BPF_MAP_CREATE_struct, map_flags)) in print_map_create()
100 if (size > offsetof(struct BPF_MAP_CREATE_struct, inner_map_fd)) in print_map_create()
102 if (size > offsetof(struct BPF_MAP_CREATE_struct, map_name)) in print_map_create()
104 if (size > offsetof(struct BPF_MAP_CREATE_struct, map_ifindex)) in print_map_create()
195 if (size > offsetof(struct BPF_PROG_LOAD_struct, license)) in print_prog_load()
197 if (size > offsetof(struct BPF_PROG_LOAD_struct, log_buf)) in print_prog_load()
200 if (size > offsetof(struct BPF_PROG_LOAD_struct, kern_version)) in print_prog_load()
202 if (size > offsetof(struct BPF_PROG_LOAD_struct, prog_flags)) in print_prog_load()
204 if (size > offsetof(struct BPF_PROG_LOAD_struct, prog_name)) in print_prog_load()
206 if (size > offsetof(struct BPF_PROG_LOAD_struct, prog_ifindex)) in print_prog_load()
[all …]
/external/strace/tests-m32/
Dioctl_dm.c54 ALIGNED_SIZE(offsetof(t_, m_), t_)
70 offsetof(struct dm_ioctl, data);
192 tail_alloc(offsetof(struct dm_ioctl, data)); in main()
361 init_s(&s.ioc, sizeof(s), offsetof(struct s, u)); in main()
410 init_s(&dm_arg_open1->ioc, offsetof(struct dm_table_open_test, target1), in main()
411 offsetof(struct dm_table_open_test, target1)); in main()
425 offsetof(struct dm_table_open_test, target1) in main()
428 offsetof(struct dm_table_open_test, target1) in main()
433 init_s(&dm_arg_open2->ioc, offsetof(struct dm_table_open_test, param1), in main()
434 offsetof(struct dm_table_open_test, target1)); in main()
[all …]
Dbpf-obj_get_info_by_fd.c98 if (size > offsetof(struct BPF_MAP_CREATE_struct, map_flags)) in print_map_create()
100 if (size > offsetof(struct BPF_MAP_CREATE_struct, inner_map_fd)) in print_map_create()
102 if (size > offsetof(struct BPF_MAP_CREATE_struct, map_name)) in print_map_create()
104 if (size > offsetof(struct BPF_MAP_CREATE_struct, map_ifindex)) in print_map_create()
195 if (size > offsetof(struct BPF_PROG_LOAD_struct, license)) in print_prog_load()
197 if (size > offsetof(struct BPF_PROG_LOAD_struct, log_buf)) in print_prog_load()
200 if (size > offsetof(struct BPF_PROG_LOAD_struct, kern_version)) in print_prog_load()
202 if (size > offsetof(struct BPF_PROG_LOAD_struct, prog_flags)) in print_prog_load()
204 if (size > offsetof(struct BPF_PROG_LOAD_struct, prog_name)) in print_prog_load()
206 if (size > offsetof(struct BPF_PROG_LOAD_struct, prog_ifindex)) in print_prog_load()
[all …]
/external/strace/tests/
Dioctl_dm.c54 ALIGNED_SIZE(offsetof(t_, m_), t_)
70 offsetof(struct dm_ioctl, data);
192 tail_alloc(offsetof(struct dm_ioctl, data)); in main()
361 init_s(&s.ioc, sizeof(s), offsetof(struct s, u)); in main()
410 init_s(&dm_arg_open1->ioc, offsetof(struct dm_table_open_test, target1), in main()
411 offsetof(struct dm_table_open_test, target1)); in main()
425 offsetof(struct dm_table_open_test, target1) in main()
428 offsetof(struct dm_table_open_test, target1) in main()
433 init_s(&dm_arg_open2->ioc, offsetof(struct dm_table_open_test, param1), in main()
434 offsetof(struct dm_table_open_test, target1)); in main()
[all …]
Dbpf-obj_get_info_by_fd.c98 if (size > offsetof(struct BPF_MAP_CREATE_struct, map_flags)) in print_map_create()
100 if (size > offsetof(struct BPF_MAP_CREATE_struct, inner_map_fd)) in print_map_create()
102 if (size > offsetof(struct BPF_MAP_CREATE_struct, map_name)) in print_map_create()
104 if (size > offsetof(struct BPF_MAP_CREATE_struct, map_ifindex)) in print_map_create()
195 if (size > offsetof(struct BPF_PROG_LOAD_struct, license)) in print_prog_load()
197 if (size > offsetof(struct BPF_PROG_LOAD_struct, log_buf)) in print_prog_load()
200 if (size > offsetof(struct BPF_PROG_LOAD_struct, kern_version)) in print_prog_load()
202 if (size > offsetof(struct BPF_PROG_LOAD_struct, prog_flags)) in print_prog_load()
204 if (size > offsetof(struct BPF_PROG_LOAD_struct, prog_name)) in print_prog_load()
206 if (size > offsetof(struct BPF_PROG_LOAD_struct, prog_ifindex)) in print_prog_load()
[all …]
/external/capstone/tests/
Dtest_skipdata.c151 #define offsetof(st, m) __builtin_offsetof(st, m) in main()
155 printf("@id: %lu\n", offsetof(cs_insn, id)); in main()
156 printf("@address: %lu\n", offsetof(cs_insn, address)); in main()
157 printf("@size: %lu\n", offsetof(cs_insn, size)); in main()
158 printf("@bytes: %lu\n", offsetof(cs_insn, bytes)); in main()
159 printf("@mnemonic: %lu\n", offsetof(cs_insn, mnemonic)); in main()
160 printf("@op_str: %lu\n", offsetof(cs_insn, op_str)); in main()
161 printf("@regs_read: %lu\n", offsetof(cs_insn, regs_read)); in main()
162 printf("@regs_read_count: %lu\n", offsetof(cs_insn, regs_read_count)); in main()
163 printf("@regs_write: %lu\n", offsetof(cs_insn, regs_write)); in main()
[all …]
Dtest_basic.c275 #define offsetof(st, m) __builtin_offsetof(st, m) in main()
279 printf("@id: %lu\n", offsetof(cs_insn, id)); in main()
280 printf("@address: %lu\n", offsetof(cs_insn, address)); in main()
281 printf("@size: %lu\n", offsetof(cs_insn, size)); in main()
282 printf("@bytes: %lu\n", offsetof(cs_insn, bytes)); in main()
283 printf("@mnemonic: %lu\n", offsetof(cs_insn, mnemonic)); in main()
284 printf("@op_str: %lu\n", offsetof(cs_insn, op_str)); in main()
285 printf("@regs_read: %lu\n", offsetof(cs_insn, regs_read)); in main()
286 printf("@regs_read_count: %lu\n", offsetof(cs_insn, regs_read_count)); in main()
287 printf("@regs_write: %lu\n", offsetof(cs_insn, regs_write)); in main()
[all …]
/external/u-boot/examples/standalone/
Dstubs.c5 #define FO(x) offsetof(struct jt_funcs, x)
39 : : "i"(offsetof(gd_t, jt)), "i"(FO(x)) : "r11");
53 : : "i"(offsetof(gd_t, jt)), "i"(FO(x)) : "x9");
65 : : "i"(offsetof(gd_t, jt)), "i"(FO(x)) : "ip");
83 : : "i"(offsetof(gd_t, jt)), "i"(FO(x)) : "t9");
99 : : "i"(offsetof(gd_t, jt)), "i"(FO(x)) : "t9");
115 : : "i"(offsetof(gd_t, jt)), "i"(FO(x)) : "gp");
131 : : "i"(offsetof(gd_t, jt)), "i"(FO(x)) : "a0");
143 : : "i"(offsetof(gd_t, jt)), "i"(FO(x)) : "r5");
161 : : "i"(offsetof(gd_t, jt)), "i"(FO(x)) : "r1", "r2");
[all …]
/external/u-boot/arch/arm/mach-socfpga/
Dclock_manager_arria10.c83 { "vco0-psrc", offsetof(struct mainpll_cfg, vco0_psrc) },
84 { "vco1-denom", offsetof(struct mainpll_cfg, vco1_denom) },
85 { "vco1-numer", offsetof(struct mainpll_cfg, vco1_numer) },
86 { "mpuclk-cnt", offsetof(struct mainpll_cfg, mpuclk_cnt) },
87 { "mpuclk-src", offsetof(struct mainpll_cfg, mpuclk_src) },
88 { "nocclk-cnt", offsetof(struct mainpll_cfg, nocclk_cnt) },
89 { "nocclk-src", offsetof(struct mainpll_cfg, nocclk_src) },
90 { "cntr2clk-cnt", offsetof(struct mainpll_cfg, cntr2clk_cnt) },
91 { "cntr3clk-cnt", offsetof(struct mainpll_cfg, cntr3clk_cnt) },
92 { "cntr4clk-cnt", offsetof(struct mainpll_cfg, cntr4clk_cnt) },
[all …]
/external/u-boot/arch/powerpc/include/asm/
Dfsl_liodn.h20 .reg_offset[0] = offsetof(ccsr_gur_t, rio##port##liodnr) \
26 .reg_offset[0] = offsetof(ccsr_gur_t, rio##port##liodnr) \
28 .reg_offset[1] = offsetof(ccsr_gur_t, rio##port##maintliodnr) \
34 .reg_offset[0] = offsetof(struct ccsr_rio, liodn) \
93 offsetof(ccsr_gur_t, name) + CONFIG_SYS_MPC85xx_GUTS_OFFSET, \
110 offsetof(ccsr_pcix_t, liodn_base) + CONFIG_SYS_MPC85xx_PCIE##pciNum##_OFFSET,\
132 offsetof(struct ccsr_qman, liodnr) + \
138 offsetof(struct ccsr_bman, liodnr) + \
143 SET_LIODN_ENTRY_1("fsl,pme", liodn, offsetof(ccsr_pme_t, liodnr) + \
149 offsetof(struct ccsr_pman, ppa1) + \
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_verifier.c970 offsetof(struct __sk_buff, mark)),
1345 offsetof(struct __sk_buff, len)),
1348 offsetof(struct __sk_buff, mark)),
1351 offsetof(struct __sk_buff, pkt_type)),
1354 offsetof(struct __sk_buff, queue_mapping)),
1357 offsetof(struct __sk_buff, protocol)),
1360 offsetof(struct __sk_buff, vlan_present)),
1363 offsetof(struct __sk_buff, vlan_tci)),
1366 offsetof(struct __sk_buff, napi_id)),
1395 offsetof(struct __sk_buff, pkt_type)),
[all …]
/external/clang/test/Sema/
Dpragma-align-mac68k.c18 extern int a1_0[offsetof(struct s1, f0) == 0 ? 1 : -1];
19 extern int a1_1[offsetof(struct s1, f1) == 2 ? 1 : -1];
27 extern int a2_0[offsetof(struct s2, f0) == 0 ? 1 : -1];
28 extern int a2_1[offsetof(struct s2, f1) == 2 ? 1 : -1];
36 extern int a3_0[offsetof(struct s3, f0) == 0 ? 1 : -1];
37 extern int a3_1[offsetof(struct s3, f1) == 2 ? 1 : -1];
45 extern int a4_0[offsetof(struct s4, f0) == 0 ? 1 : -1];
46 extern int a4_1[offsetof(struct s4, f1) == 1 ? 1 : -1];
96 extern int a11_0[offsetof(struct s11, f0) == 0 ? 1 : -1];
97 extern int a11_1[offsetof(struct s11, f1) == 2 ? 1 : -1];
Dpragma-pack-2.c13 extern int a0[offsetof(struct s0, f1) == 4 ? 1 : -1];
20 extern int a1[offsetof(struct s1, f1) == 2 ? 1 : -1];
33 extern int a3_0[offsetof(struct s3_0, f1) == 1 ? 1 : -1];
34 extern int a3_1[offsetof(struct s3_1, f1) == 4 ? 1 : -1];
47 extern int a4_0[offsetof(struct s4_0, f1) == 1 ? 1 : -1];
48 extern int a4_1[offsetof(struct s4_1, f1) == 4 ? 1 : -1];
59 extern int s5_0[offsetof(struct s5_0, f1) == 2 ? 1 : -1]; in f()
/external/u-boot/cmd/
Dethsw.c138 .cmd_func_offset = offsetof(struct ethsw_command_func,
146 .cmd_func_offset = offsetof(struct ethsw_command_func,
154 .cmd_func_offset = offsetof(struct ethsw_command_func,
170 .cmd_func_offset = offsetof(struct ethsw_command_func,
179 .cmd_func_offset = offsetof(struct ethsw_command_func,
203 .cmd_func_offset = offsetof(struct ethsw_command_func,
212 .cmd_func_offset = offsetof(struct ethsw_command_func,
221 .cmd_func_offset = offsetof(struct ethsw_command_func,
245 .cmd_func_offset = offsetof(struct ethsw_command_func,
254 .cmd_func_offset = offsetof(struct ethsw_command_func,
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DAMDHSAKernelDescriptor.h23 #ifndef offsetof
24 #define offsetof(TYPE, MEMBER) ((size_t)&((TYPE*)0)->MEMBER) macro
155 offsetof(kernel_descriptor_t, group_segment_fixed_size) == 0,
158 offsetof(kernel_descriptor_t, private_segment_fixed_size) == 4,
161 offsetof(kernel_descriptor_t, reserved0) == 8,
164 offsetof(kernel_descriptor_t, kernel_code_entry_byte_offset) == 16,
167 offsetof(kernel_descriptor_t, reserved1) == 24,
170 offsetof(kernel_descriptor_t, compute_pgm_rsrc1) == 48,
173 offsetof(kernel_descriptor_t, compute_pgm_rsrc2) == 52,
176 offsetof(kernel_descriptor_t, kernel_code_properties) == 56,
[all …]

12345678910>>...34