/src/tests/usr.bin/indent/ |
lsym_offsetof.c | 4 * Tests for the token lsym_offsetof, which represents the keyword 'offsetof' 9 size_t offset = offsetof(struct s, member); 18 * applies to 'offsetof' as well, even though it is not really a function. 21 size_t offset = offsetof (struct s, member);
|
opt_pcs.c | 62 * The option '-pcs' also applies to 'sizeof' and 'offsetof', even though 72 int offset = offsetof(struct s, member); 73 int offset = offsetof (struct s, member); 84 int offset = offsetof (struct s, member); 85 int offset = offsetof (struct s, member); 90 * applies to 'sizeof', but not 'offsetof'. 99 int offset = offsetof(struct s, member); 100 int offset = offsetof(struct s, member); 110 int offset = offsetof(struct s, member); 111 int offset = offsetof(struct s, member) [all...] |
opt_bs.c | 65 * The option '-bs' only affects 'sizeof', not 'offsetof', even though these 75 int offset = offsetof(struct s, member); 76 int offset = offsetof (struct s, member); 86 int offset = offsetof (struct s, member); 87 int offset = offsetof (struct s, member); 97 int offset = offsetof(struct s, member); 98 int offset = offsetof(struct s, member);
|
lsym_tag.c | 147 + offsetof(struct s, member) 151 + offsetof(struct s, member)
|
/src/sys/arch/i386/include/ |
reg.h | 54 #define tES (offsetof(struct trapframe, tf_es) / sizeof (int)) 55 #define tDS (offsetof(struct trapframe, tf_ds) / sizeof (int)) 56 #define tEDI (offsetof(struct trapframe, tf_edi) / sizeof (int)) 57 #define tESI (offsetof(struct trapframe, tf_esi) / sizeof (int)) 58 #define tEBP (offsetof(struct trapframe, tf_ebp) / sizeof (int)) 59 #define tEBX (offsetof(struct trapframe, tf_ebx) / sizeof (int)) 60 #define tEDX (offsetof(struct trapframe, tf_edx) / sizeof (int)) 61 #define tECX (offsetof(struct trapframe, tf_ecx) / sizeof (int)) 62 #define tEAX (offsetof(struct trapframe, tf_eax) / sizeof (int)) 64 #define tEIP (offsetof(struct trapframe, tf_eip) / sizeof (int) [all...] |
cpu.h | 64 (*(struct cpu_info * const *)offsetof(struct cpu_info, ci_self))); 76 (*(struct cpu_info * const *)offsetof(struct cpu_info, ci_curlwp)));
|
pcb.h | 108 #include <sys/stddef.h> /* for offsetof() */ 111 __CTASSERT(offsetof(struct pcb, pcb_savefpu) == 128);
|
/src/sys/arch/riscv/riscv/ |
db_machdep.c | 58 { "ra", (void *)offsetof(struct trapframe, tf_ra), db_rw_ddbreg, NULL }, 59 { "sp", (void *)offsetof(struct trapframe, tf_sp), db_rw_ddbreg, NULL }, 60 { "gp", (void *)offsetof(struct trapframe, tf_gp), db_rw_ddbreg, NULL }, 61 { "tp", (void *)offsetof(struct trapframe, tf_tp), db_rw_ddbreg, NULL }, 62 { "s0", (void *)offsetof(struct trapframe, tf_s0), db_rw_ddbreg, NULL }, 63 { "s1", (void *)offsetof(struct trapframe, tf_s1), db_rw_ddbreg, NULL }, 64 { "s2", (void *)offsetof(struct trapframe, tf_s2), db_rw_ddbreg, NULL }, 65 { "s3", (void *)offsetof(struct trapframe, tf_s3), db_rw_ddbreg, NULL }, 66 { "s4", (void *)offsetof(struct trapframe, tf_s4), db_rw_ddbreg, NULL }, 67 { "s5", (void *)offsetof(struct trapframe, tf_s5), db_rw_ddbreg, NULL } [all...] |
/src/tests/include/sys/ |
t_bootblock.c | 48 ATF_CHECK_EQ(MBR_BPB_OFFSET, offsetof(struct mbr_sector, mbr_bpb)); 49 ATF_CHECK_EQ(MBR_BS_OFFSET, offsetof(struct mbr_sector, mbr_bootsel)); 51 ATF_CHECK_EQ(440, offsetof(struct mbr_sector, mbr_dsn)); 54 ATF_CHECK_EQ(MBR_PART_OFFSET, offsetof(struct mbr_sector, mbr_parts)); 57 ATF_CHECK_EQ(MBR_MAGIC_OFFSET, offsetof(struct mbr_sector, mbr_magic));
|
/src/sys/external/bsd/common/include/linux/ |
stddef.h | 35 #define offsetofend(T, F) (offsetof(T, F) + sizeof_field(T, F))
|
/src/sys/sys/ |
container_of.h | 62 offsetof(TYPE, FIELD)))->FIELD)) 65 offsetof(TYPE, FIELD)))->FIELD)) 69 ((TYPE *)(((char *)(PTR)) - offsetof(TYPE, FIELD)) \ 72 ((const TYPE *)(((const char *)(PTR)) - offsetof(TYPE, FIELD)) \
|
stddef.h | 130 * offsetof(type, member-designator) 145 #define offsetof(type, member) __builtin_offsetof(type, member) macro 147 #define offsetof(type, member) ((size_t)(unsigned long)(&((type *)0)->member)) macro 152 #define offsetof(type, member) __offsetof__((reinterpret_cast<size_t> \ macro
|
/src/sys/arch/x68k/stand/libdos/ |
dos_rename.S | 12 Lnamoff = 67 | offsetof(struct dos_nameckbuf, name) 13 Lextoff = 86 | offsetof(struct dos_nameckbuf, ext)
|
/src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/ |
amdgpu_atomfirmware.h | 29 #define get_index_into_master_table(master_table, table_name) (offsetof(struct master_table, table_name) / sizeof(uint16_t))
|
/src/sys/dev/ic/ |
ahavar.h | 95 #define AHA_MBI_OFF(m) (offsetof(struct aha_control, ac_mbx.mbi[0]) + \ 101 #define AHA_MBO_OFF(m) (offsetof(struct aha_control, ac_mbx.mbo[0]) + \ 107 #define AHA_CCB_OFF(c) (offsetof(struct aha_control, ac_ccbs[0]) + \
|
pcdisplayvar.h | 74 _pcdisplay_6845_read(ph, offsetof(struct reg_mc6845, reg)) 76 _pcdisplay_6845_write(ph, offsetof(struct reg_mc6845, reg), val)
|
adv.h | 80 #define ADV_CCB_OFF(c) (offsetof(struct adv_control, ccbs[0]) + \
|
adw.h | 98 #define ADW_CCB_OFF(c) (offsetof(struct adw_control, ccbs[0]) + \
|
/src/sys/net/npf/ |
if_npflog.h | 59 #define NPFLOG_REAL_HDRLEN offsetof(struct npfloghdr, pad)
|
/src/sys/ufs/lfs/ |
lfs_cksum.c | 110 size = (size_t)offsetof(struct dlfs64, dlfs_cksum); 113 size = (size_t)offsetof(struct dlfs64, dlfs_cksum);
|
/src/sys/arch/amd64/include/ |
cpu.h | 67 (*(struct cpu_info * const *)offsetof(struct cpu_info, ci_self))); 79 (*(struct cpu_info * const *)offsetof(struct cpu_info, ci_curlwp)));
|
/src/sys/rump/net/lib/libshmif/ |
shmifvar.h | 51 #define IFMEM_DATA (offsetof(struct shmif_mem, shm_data)) 52 #define IFMEM_WAKEUP (offsetof(struct shmif_mem, shm_version))
|
/src/tests/lib/libc/sys/ |
t_futex_robust.c | 105 d->rhead.futex_offset = offsetof(struct futex_lock_pos, fword) - 106 offsetof(struct futex_lock_pos, list); 137 d->rhead.futex_offset = offsetof(struct futex_lock_neg, fword) - 138 offsetof(struct futex_lock_neg, list); 168 d->rhead.futex_offset = offsetof(struct futex_lock_pos, fword) - 169 offsetof(struct futex_lock_pos, list); 192 d->rhead.futex_offset = offsetof(struct futex_lock_pos, fword) - 193 offsetof(struct futex_lock_pos, list); 224 d->rhead.futex_offset = offsetof(struct futex_lock_pos, fword) - 225 offsetof(struct futex_lock_pos, list) [all...] |
/src/sys/dev/marvell/ |
mvxpsecvar.h | 189 (offsetof(struct mvxpsec_crypt_sram, packet_header)) 191 offsetof(struct mvxpsec_packet_header, desc)) 193 offsetof(struct mvxpsec_packet_header, crp_iv_work)) 195 offsetof(struct mvxpsec_packet_header, crp_iv_ext)) 198 (offsetof(struct mvxpsec_crypt_sram, session_header)) 200 offsetof(struct mvxpsec_session_header, crp_key)) 202 offsetof(struct mvxpsec_session_header, crp_key_d)) 204 offsetof(struct mvxpsec_session_header, miv_in)) 206 offsetof(struct mvxpsec_session_header, miv_out)) 209 (offsetof(struct mvxpsec_crypt_sram, payload) [all...] |
/src/sys/netcan/ |
can_proto.c | 73 .dom_sa_cmpofs = offsetof(struct sockaddr_can, can_ifindex),
|