Home
last modified time | relevance | path

Searched refs:offsetof (Results 1 – 200 of 912) sorted by relevance

12345

/linux-4.4.14/arch/ia64/kernel/
Dasm-offsets.c38 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); in foo()
39 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); in foo()
40 DEFINE(TI_PRE_COUNT, offsetof(struct thread_info, preempt_count)); in foo()
42 DEFINE(TI_AC_STAMP, offsetof(struct thread_info, ac_stamp)); in foo()
43 DEFINE(TI_AC_LEAVE, offsetof(struct thread_info, ac_leave)); in foo()
44 DEFINE(TI_AC_STIME, offsetof(struct thread_info, ac_stime)); in foo()
45 DEFINE(TI_AC_UTIME, offsetof(struct thread_info, ac_utime)); in foo()
50 DEFINE(IA64_TASK_BLOCKED_OFFSET,offsetof (struct task_struct, blocked)); in foo()
51 DEFINE(IA64_TASK_CLEAR_CHILD_TID_OFFSET,offsetof (struct task_struct, clear_child_tid)); in foo()
52 DEFINE(IA64_TASK_GROUP_LEADER_OFFSET, offsetof (struct task_struct, group_leader)); in foo()
[all …]
Dunwind.c154 offsetof(struct unw_frame_info, pri_unat_loc)/8, /* PRI_UNAT_GR */
155 offsetof(struct unw_frame_info, pri_unat_loc)/8, /* PRI_UNAT_MEM */
156 offsetof(struct unw_frame_info, bsp_loc)/8,
157 offsetof(struct unw_frame_info, bspstore_loc)/8,
158 offsetof(struct unw_frame_info, pfs_loc)/8,
159 offsetof(struct unw_frame_info, rnat_loc)/8,
160 offsetof(struct unw_frame_info, psp)/8,
161 offsetof(struct unw_frame_info, rp_loc)/8,
162 offsetof(struct unw_frame_info, r4)/8,
163 offsetof(struct unw_frame_info, r5)/8,
[all …]
/linux-4.4.14/drivers/staging/lustre/lustre/ptlrpc/
Dwiretest.c394 LASSERTF((int)offsetof(struct lu_seq_range, lsr_start) == 0, "found %lld\n", in lustre_assert_wire_constants()
395 (long long)(int)offsetof(struct lu_seq_range, lsr_start)); in lustre_assert_wire_constants()
398 LASSERTF((int)offsetof(struct lu_seq_range, lsr_end) == 8, "found %lld\n", in lustre_assert_wire_constants()
399 (long long)(int)offsetof(struct lu_seq_range, lsr_end)); in lustre_assert_wire_constants()
402 LASSERTF((int)offsetof(struct lu_seq_range, lsr_index) == 16, "found %lld\n", in lustre_assert_wire_constants()
403 (long long)(int)offsetof(struct lu_seq_range, lsr_index)); in lustre_assert_wire_constants()
406 LASSERTF((int)offsetof(struct lu_seq_range, lsr_flags) == 20, "found %lld\n", in lustre_assert_wire_constants()
407 (long long)(int)offsetof(struct lu_seq_range, lsr_flags)); in lustre_assert_wire_constants()
418 LASSERTF((int)offsetof(struct lustre_mdt_attrs, lma_compat) == 0, "found %lld\n", in lustre_assert_wire_constants()
419 (long long)(int)offsetof(struct lustre_mdt_attrs, lma_compat)); in lustre_assert_wire_constants()
[all …]
Dpack_generic.c59 return cfs_size_round(offsetof(struct lustre_msg_v2, in lustre_msg_hdr_size_v2()
521 CLASSERT(offsetof(typeof(*m), lm_padding_2) != 0); in lustre_unpack_msg_v2()
522 CLASSERT(offsetof(typeof(*m), lm_padding_3) != 0); in lustre_unpack_msg_v2()
560 required_len = offsetof(struct lustre_msg, lm_magic) + in __lustre_unpack_msg()
1486 CLASSERT(offsetof(typeof(*b), pb_padding) != 0); in lustre_swab_ptlrpc_body()
1492 CLASSERT(offsetof(typeof(*b), pb_jobid) != 0); in lustre_swab_ptlrpc_body()
1520 CLASSERT(offsetof(typeof(*ocd), padding1) != 0); in lustre_swab_connect()
1521 CLASSERT(offsetof(typeof(*ocd), padding2) != 0); in lustre_swab_connect()
1522 CLASSERT(offsetof(typeof(*ocd), padding3) != 0); in lustre_swab_connect()
1523 CLASSERT(offsetof(typeof(*ocd), padding4) != 0); in lustre_swab_connect()
[all …]
/linux-4.4.14/arch/powerpc/kernel/
Dasm-offsets.c73 DEFINE(THREAD, offsetof(struct task_struct, thread)); in main()
74 DEFINE(MM, offsetof(struct task_struct, mm)); in main()
75 DEFINE(MMCONTEXTID, offsetof(struct mm_struct, context.id)); in main()
77 DEFINE(AUDITCONTEXT, offsetof(struct task_struct, audit_context)); in main()
80 DEFINE(THREAD_DSCR, offsetof(struct thread_struct, dscr)); in main()
81 DEFINE(THREAD_DSCR_INHERIT, offsetof(struct thread_struct, dscr_inherit)); in main()
82 DEFINE(TASKTHREADPPR, offsetof(struct task_struct, thread.ppr)); in main()
84 DEFINE(THREAD_INFO, offsetof(struct task_struct, stack)); in main()
86 DEFINE(KSP_LIMIT, offsetof(struct thread_struct, ksp_limit)); in main()
89 DEFINE(KSP, offsetof(struct thread_struct, ksp)); in main()
[all …]
Dkgdb.c274 { "r0", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[0]) },
275 { "r1", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[1]) },
276 { "r2", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[2]) },
277 { "r3", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[3]) },
278 { "r4", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[4]) },
279 { "r5", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[5]) },
280 { "r6", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[6]) },
281 { "r7", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[7]) },
282 { "r8", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[8]) },
283 { "r9", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[9]) },
[all …]
Dptrace.c61 #define REG_OFFSET_NAME(r) {.name = #r, .offset = offsetof(struct pt_regs, r)}
63 {.name = STR(gpr##num), .offset = offsetof(struct pt_regs, gpr[num])}
281 0, offsetof(struct pt_regs, msr)); in gpr_get()
285 offsetof(struct pt_regs, msr), in gpr_get()
286 offsetof(struct pt_regs, msr) + in gpr_get()
290 BUILD_BUG_ON(offsetof(struct pt_regs, orig_gpr3) != in gpr_get()
291 offsetof(struct pt_regs, msr) + sizeof(long)); in gpr_get()
296 offsetof(struct pt_regs, orig_gpr3), in gpr_get()
329 BUILD_BUG_ON(offsetof(struct pt_regs, orig_gpr3) != in gpr_set()
330 offsetof(struct pt_regs, msr) + sizeof(long)); in gpr_set()
[all …]
/linux-4.4.14/arch/parisc/kernel/
Dasm-offsets.c57 DEFINE(TASK_THREAD_INFO, offsetof(struct task_struct, stack)); in main()
58 DEFINE(TASK_STATE, offsetof(struct task_struct, state)); in main()
59 DEFINE(TASK_FLAGS, offsetof(struct task_struct, flags)); in main()
60 DEFINE(TASK_SIGPENDING, offsetof(struct task_struct, pending)); in main()
61 DEFINE(TASK_PTRACE, offsetof(struct task_struct, ptrace)); in main()
62 DEFINE(TASK_MM, offsetof(struct task_struct, mm)); in main()
63 DEFINE(TASK_PERSONALITY, offsetof(struct task_struct, personality)); in main()
64 DEFINE(TASK_PID, offsetof(struct task_struct, pid)); in main()
66 DEFINE(TASK_REGS, offsetof(struct task_struct, thread.regs)); in main()
67 DEFINE(TASK_PT_PSW, offsetof(struct task_struct, thread.regs.gr[ 0])); in main()
[all …]
/linux-4.4.14/arch/blackfin/kernel/
Dasm-offsets.c22 DEFINE(TASK_STATE, offsetof(struct task_struct, state)); in main()
23 DEFINE(TASK_FLAGS, offsetof(struct task_struct, flags)); in main()
24 DEFINE(TASK_PTRACE, offsetof(struct task_struct, ptrace)); in main()
25 DEFINE(TASK_BLOCKED, offsetof(struct task_struct, blocked)); in main()
26 DEFINE(TASK_THREAD, offsetof(struct task_struct, thread)); in main()
27 DEFINE(TASK_THREAD_INFO, offsetof(struct task_struct, stack)); in main()
28 DEFINE(TASK_MM, offsetof(struct task_struct, mm)); in main()
29 DEFINE(TASK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); in main()
30 DEFINE(TASK_SIGPENDING, offsetof(struct task_struct, pending)); in main()
34 offsetof(irq_cpustat_t, __softirq_pending)); in main()
[all …]
/linux-4.4.14/arch/arm64/kernel/
Dasm-offsets.c34 DEFINE(TSK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); in main()
36 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); in main()
37 DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); in main()
38 DEFINE(TI_ADDR_LIMIT, offsetof(struct thread_info, addr_limit)); in main()
39 DEFINE(TI_TASK, offsetof(struct thread_info, task)); in main()
40 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); in main()
42 DEFINE(THREAD_CPU_CONTEXT, offsetof(struct task_struct, thread.cpu_context)); in main()
44 DEFINE(S_X0, offsetof(struct pt_regs, regs[0])); in main()
45 DEFINE(S_X1, offsetof(struct pt_regs, regs[1])); in main()
46 DEFINE(S_X2, offsetof(struct pt_regs, regs[2])); in main()
[all …]
Dkgdb.c28 { "x0", 8, offsetof(struct pt_regs, regs[0])},
29 { "x1", 8, offsetof(struct pt_regs, regs[1])},
30 { "x2", 8, offsetof(struct pt_regs, regs[2])},
31 { "x3", 8, offsetof(struct pt_regs, regs[3])},
32 { "x4", 8, offsetof(struct pt_regs, regs[4])},
33 { "x5", 8, offsetof(struct pt_regs, regs[5])},
34 { "x6", 8, offsetof(struct pt_regs, regs[6])},
35 { "x7", 8, offsetof(struct pt_regs, regs[7])},
36 { "x8", 8, offsetof(struct pt_regs, regs[8])},
37 { "x9", 8, offsetof(struct pt_regs, regs[9])},
[all …]
/linux-4.4.14/arch/microblaze/kernel/
Dasm-offsets.c25 DEFINE(PT_MSR, offsetof(struct pt_regs, msr)); in main()
26 DEFINE(PT_EAR, offsetof(struct pt_regs, ear)); in main()
27 DEFINE(PT_ESR, offsetof(struct pt_regs, esr)); in main()
28 DEFINE(PT_FSR, offsetof(struct pt_regs, fsr)); in main()
29 DEFINE(PT_PC, offsetof(struct pt_regs, pc)); in main()
30 DEFINE(PT_R0, offsetof(struct pt_regs, r0)); in main()
31 DEFINE(PT_R1, offsetof(struct pt_regs, r1)); in main()
32 DEFINE(PT_R2, offsetof(struct pt_regs, r2)); in main()
33 DEFINE(PT_R3, offsetof(struct pt_regs, r3)); in main()
34 DEFINE(PT_R4, offsetof(struct pt_regs, r4)); in main()
[all …]
/linux-4.4.14/arch/arm/kernel/
Dasm-offsets.c61 DEFINE(TSK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); in main()
63 DEFINE(TSK_STACK_CANARY, offsetof(struct task_struct, stack_canary)); in main()
66 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); in main()
67 DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); in main()
68 DEFINE(TI_ADDR_LIMIT, offsetof(struct thread_info, addr_limit)); in main()
69 DEFINE(TI_TASK, offsetof(struct thread_info, task)); in main()
70 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); in main()
71 DEFINE(TI_CPU_DOMAIN, offsetof(struct thread_info, cpu_domain)); in main()
72 DEFINE(TI_CPU_SAVE, offsetof(struct thread_info, cpu_context)); in main()
73 DEFINE(TI_USED_CP, offsetof(struct thread_info, used_cp)); in main()
[all …]
Dkgdb.c22 { "r0", 4, offsetof(struct pt_regs, ARM_r0)},
23 { "r1", 4, offsetof(struct pt_regs, ARM_r1)},
24 { "r2", 4, offsetof(struct pt_regs, ARM_r2)},
25 { "r3", 4, offsetof(struct pt_regs, ARM_r3)},
26 { "r4", 4, offsetof(struct pt_regs, ARM_r4)},
27 { "r5", 4, offsetof(struct pt_regs, ARM_r5)},
28 { "r6", 4, offsetof(struct pt_regs, ARM_r6)},
29 { "r7", 4, offsetof(struct pt_regs, ARM_r7)},
30 { "r8", 4, offsetof(struct pt_regs, ARM_r8)},
31 { "r9", 4, offsetof(struct pt_regs, ARM_r9)},
[all …]
Dptrace.c68 {.name = #r, .offset = offsetof(struct pt_regs, ARM_##r)}
673 const size_t user_fpregs_offset = offsetof(struct user_vfp, fpregs); in vfp_get()
674 const size_t user_fpscr_offset = offsetof(struct user_vfp, fpscr); in vfp_get()
710 const size_t user_fpregs_offset = offsetof(struct user_vfp, fpregs); in vfp_set()
711 const size_t user_fpscr_offset = offsetof(struct user_vfp, fpscr); in vfp_set()
/linux-4.4.14/arch/xtensa/kernel/
Dasm-offsets.c31 DEFINE(PT_PC, offsetof (struct pt_regs, pc)); in main()
32 DEFINE(PT_PS, offsetof (struct pt_regs, ps)); in main()
33 DEFINE(PT_DEPC, offsetof (struct pt_regs, depc)); in main()
34 DEFINE(PT_EXCCAUSE, offsetof (struct pt_regs, exccause)); in main()
35 DEFINE(PT_EXCVADDR, offsetof (struct pt_regs, excvaddr)); in main()
36 DEFINE(PT_DEBUGCAUSE, offsetof (struct pt_regs, debugcause)); in main()
37 DEFINE(PT_WMASK, offsetof (struct pt_regs, wmask)); in main()
38 DEFINE(PT_LBEG, offsetof (struct pt_regs, lbeg)); in main()
39 DEFINE(PT_LEND, offsetof (struct pt_regs, lend)); in main()
40 DEFINE(PT_LCOUNT, offsetof (struct pt_regs, lcount)); in main()
[all …]
/linux-4.4.14/arch/unicore32/kernel/
Dasm-offsets.c39 DEFINE(TSK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); in main()
41 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); in main()
42 DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); in main()
43 DEFINE(TI_ADDR_LIMIT, offsetof(struct thread_info, addr_limit)); in main()
44 DEFINE(TI_TASK, offsetof(struct thread_info, task)); in main()
45 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); in main()
46 DEFINE(TI_CPU_SAVE, offsetof(struct thread_info, cpu_context)); in main()
47 DEFINE(TI_USED_CP, offsetof(struct thread_info, used_cp)); in main()
49 DEFINE(TI_FPSTATE, offsetof(struct thread_info, fpstate)); in main()
52 DEFINE(S_R0, offsetof(struct pt_regs, UCreg_00)); in main()
[all …]
Dsetup.c125 "I" (offsetof(struct stack, irq[0])), in cpu_init()
127 "I" (offsetof(struct stack, abt[0])), in cpu_init()
129 "I" (offsetof(struct stack, und[0])), in cpu_init()
/linux-4.4.14/arch/m68k/kernel/
Dasm-offsets.c25 DEFINE(TASK_THREAD, offsetof(struct task_struct, thread)); in main()
26 DEFINE(TASK_MM, offsetof(struct task_struct, mm)); in main()
27 DEFINE(TASK_STACK, offsetof(struct task_struct, stack)); in main()
30 DEFINE(THREAD_KSP, offsetof(struct thread_struct, ksp)); in main()
31 DEFINE(THREAD_USP, offsetof(struct thread_struct, usp)); in main()
32 DEFINE(THREAD_SR, offsetof(struct thread_struct, sr)); in main()
33 DEFINE(THREAD_FS, offsetof(struct thread_struct, fs)); in main()
34 DEFINE(THREAD_CRP, offsetof(struct thread_struct, crp)); in main()
35 DEFINE(THREAD_ESP0, offsetof(struct thread_struct, esp0)); in main()
36 DEFINE(THREAD_FPREG, offsetof(struct thread_struct, fp)); in main()
[all …]
/linux-4.4.14/arch/hexagon/kernel/
Dkgdb.c32 { " r0", GDB_SIZEOF_REG, offsetof(struct pt_regs, r00)},
33 { " r1", GDB_SIZEOF_REG, offsetof(struct pt_regs, r01)},
34 { " r2", GDB_SIZEOF_REG, offsetof(struct pt_regs, r02)},
35 { " r3", GDB_SIZEOF_REG, offsetof(struct pt_regs, r03)},
36 { " r4", GDB_SIZEOF_REG, offsetof(struct pt_regs, r04)},
37 { " r5", GDB_SIZEOF_REG, offsetof(struct pt_regs, r05)},
38 { " r6", GDB_SIZEOF_REG, offsetof(struct pt_regs, r06)},
39 { " r7", GDB_SIZEOF_REG, offsetof(struct pt_regs, r07)},
40 { " r8", GDB_SIZEOF_REG, offsetof(struct pt_regs, r08)},
41 { " r9", GDB_SIZEOF_REG, offsetof(struct pt_regs, r09)},
[all …]
Dptrace.c75 KPT_REG, offsetof(struct user_regs_struct, USR_REG), \ in genregs_get()
76 offsetof(struct user_regs_struct, USR_REG) + \ in genregs_get()
102 offsetof(struct user_regs_struct, pad1), -1); in genregs_get()
124 KPT_REG, offsetof(struct user_regs_struct, USR_REG), \ in genregs_set()
125 offsetof(struct user_regs_struct, USR_REG) + \ in genregs_set()
153 offsetof(struct user_regs_struct, pad1), -1); in genregs_set()
/linux-4.4.14/arch/sh/kernel/
Dasm-offsets.c23 DEFINE(TI_TASK, offsetof(struct thread_info, task)); in main()
24 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); in main()
25 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); in main()
26 DEFINE(TI_PRE_COUNT, offsetof(struct thread_info, preempt_count)); in main()
30 DEFINE(PBE_ADDRESS, offsetof(struct pbe, address)); in main()
31 DEFINE(PBE_ORIG_ADDRESS, offsetof(struct pbe, orig_address)); in main()
32 DEFINE(PBE_NEXT, offsetof(struct pbe, next)); in main()
36 DEFINE(SH_SLEEP_MODE, offsetof(struct sh_sleep_data, mode)); in main()
37 DEFINE(SH_SLEEP_SF_PRE, offsetof(struct sh_sleep_data, sf_pre)); in main()
38 DEFINE(SH_SLEEP_SF_POST, offsetof(struct sh_sleep_data, sf_post)); in main()
[all …]
Dkgdb.c169 { "r0", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[0]) },
170 { "r1", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[1]) },
171 { "r2", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[2]) },
172 { "r3", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[3]) },
173 { "r4", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[4]) },
174 { "r5", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[5]) },
175 { "r6", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[6]) },
176 { "r7", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[7]) },
177 { "r8", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[8]) },
178 { "r9", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[9]) },
[all …]
Dptrace_64.c75 if (addr == offsetof(struct user_fpu_struct, fpscr)) { in get_fpu_long()
165 offsetof(struct pt_regs, regs[0]), in genregs_get()
171 offsetof(struct pt_regs, tregs[0]), in genregs_get()
198 offsetof(struct pt_regs, regs[0]), in genregs_set()
205 offsetof(struct pt_regs, tregs[0]), in genregs_set()
403 else if ((addr >= offsetof(struct user, fpu)) && in arch_ptrace()
404 (addr < offsetof(struct user, u_fpvalid))) { in arch_ptrace()
409 index = addr - offsetof(struct user, fpu); in arch_ptrace()
411 } else if (addr == offsetof(struct user, u_fpvalid)) { in arch_ptrace()
431 if (addr == offsetof (struct pt_regs, sr)+4) in arch_ptrace()
[all …]
Dptrace_32.c116 unsigned long pc = get_stack_long(child, offsetof(struct pt_regs, pc)); in user_enable_single_step()
153 offsetof(struct pt_regs, pc), in genregs_get()
176 offsetof(struct pt_regs, pc), in genregs_set()
388 else if (addr >= offsetof(struct user, fpu) && in arch_ptrace()
389 addr < offsetof(struct user, u_fpvalid)) { in arch_ptrace()
391 if (addr == offsetof(struct user, fpu.fpscr)) in arch_ptrace()
400 index = addr - offsetof(struct user, fpu); in arch_ptrace()
404 } else if (addr == offsetof(struct user, u_fpvalid)) in arch_ptrace()
428 else if (addr >= offsetof(struct user, fpu) && in arch_ptrace()
429 addr < offsetof(struct user, u_fpvalid)) { in arch_ptrace()
[all …]
/linux-4.4.14/arch/arc/kernel/
Dasm-offsets.c20 DEFINE(TASK_THREAD, offsetof(struct task_struct, thread)); in main()
21 DEFINE(TASK_THREAD_INFO, offsetof(struct task_struct, stack)); in main()
25 DEFINE(THREAD_KSP, offsetof(struct thread_struct, ksp)); in main()
26 DEFINE(THREAD_CALLEE_REG, offsetof(struct thread_struct, callee_reg)); in main()
28 offsetof(struct thread_struct, fault_address)); in main()
32 DEFINE(THREAD_INFO_FLAGS, offsetof(struct thread_info, flags)); in main()
34 offsetof(struct thread_info, preempt_count)); in main()
38 DEFINE(TASK_ACT_MM, offsetof(struct task_struct, active_mm)); in main()
39 DEFINE(TASK_TGID, offsetof(struct task_struct, tgid)); in main()
40 DEFINE(TASK_PID, offsetof(struct task_struct, pid)); in main()
[all …]
Dptrace.c34 offsetof(struct user_regs_struct, START), \ in genregs_get()
35 offsetof(struct user_regs_struct, END)); in genregs_get()
40 offsetof(struct user_regs_struct, LOC), \ in genregs_get()
41 offsetof(struct user_regs_struct, LOC) + 4); in genregs_get()
46 offsetof(struct user_regs_struct, LOC), \ in genregs_get()
47 offsetof(struct user_regs_struct, LOC) + 4); in genregs_get()
120 offsetof(struct user_regs_struct, FIRST), \ in genregs_set()
121 offsetof(struct user_regs_struct, NEXT)); in genregs_set()
127 offsetof(struct user_regs_struct, LOC), \ in genregs_set()
128 offsetof(struct user_regs_struct, LOC) + 4); in genregs_set()
[all …]
/linux-4.4.14/arch/tile/kernel/
Dkgdb.c29 { "r0", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[0])},
30 { "r1", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[1])},
31 { "r2", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[2])},
32 { "r3", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[3])},
33 { "r4", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[4])},
34 { "r5", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[5])},
35 { "r6", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[6])},
36 { "r7", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[7])},
37 { "r8", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[8])},
38 { "r9", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[9])},
[all …]
Dasm-offsets.c41 offsetof(struct single_step_state, buffer)); in foo()
43 offsetof(struct single_step_state, flags)); in foo()
45 offsetof(struct single_step_state, orig_pc)); in foo()
47 offsetof(struct single_step_state, next_pc)); in foo()
49 offsetof(struct single_step_state, branch_next_pc)); in foo()
51 offsetof(struct single_step_state, update_value)); in foo()
54 offsetof(struct thread_info, task)); in foo()
56 offsetof(struct thread_info, flags)); in foo()
58 offsetof(struct thread_info, status)); in foo()
60 offsetof(struct thread_info, homecache_cpu)); in foo()
[all …]
/linux-4.4.14/drivers/pci/hotplug/
Dcpqphp.h62 SMBIOS_SLOT_GENERIC_TYPE = offsetof(struct smbios_system_slot, type),
63 SMBIOS_SLOT_GENERIC_LENGTH = offsetof(struct smbios_system_slot, length),
64 SMBIOS_SLOT_GENERIC_HANDLE = offsetof(struct smbios_system_slot, handle),
65 SMBIOS_SLOT_NAME_STRING_NUM = offsetof(struct smbios_system_slot, name_string_num),
66 SMBIOS_SLOT_TYPE = offsetof(struct smbios_system_slot, slot_type),
67 SMBIOS_SLOT_WIDTH = offsetof(struct smbios_system_slot, slot_width),
68 SMBIOS_SLOT_CURRENT_USAGE = offsetof(struct smbios_system_slot, slot_current_usage),
69 SMBIOS_SLOT_LENGTH = offsetof(struct smbios_system_slot, slot_length),
70 SMBIOS_SLOT_NUMBER = offsetof(struct smbios_system_slot, slot_number),
71 SMBIOS_SLOT_PROPERTIES1 = offsetof(struct smbios_system_slot, properties1),
[all …]
Dshpchp.h219 BASE_OFFSET = offsetof(struct ctrl_reg, base_offset),
220 SLOT_AVAIL1 = offsetof(struct ctrl_reg, slot_avail1),
221 SLOT_AVAIL2 = offsetof(struct ctrl_reg, slot_avail2),
222 SLOT_CONFIG = offsetof(struct ctrl_reg, slot_config),
223 SEC_BUS_CONFIG = offsetof(struct ctrl_reg, sec_bus_config),
224 MSI_CTRL = offsetof(struct ctrl_reg, msi_ctrl),
225 PROG_INTERFACE = offsetof(struct ctrl_reg, prog_interface),
226 CMD = offsetof(struct ctrl_reg, cmd),
227 CMD_STATUS = offsetof(struct ctrl_reg, cmd_status),
228 INTR_LOC = offsetof(struct ctrl_reg, intr_loc),
[all …]
/linux-4.4.14/arch/mips/kernel/
Dkgdb.c56 { "zero", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[0]) },
57 { "at", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[1]) },
58 { "v0", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[2]) },
59 { "v1", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[3]) },
60 { "a0", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[4]) },
61 { "a1", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[5]) },
62 { "a2", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[6]) },
63 { "a3", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[7]) },
64 { "t0", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[8]) },
65 { "t1", GDB_SIZEOF_REG, offsetof(struct pt_regs, regs[9]) },
[all …]
Dsignal_n32.c155 .off_sc_fpregs = offsetof(struct sigcontext, sc_fpregs),
156 .off_sc_fpc_csr = offsetof(struct sigcontext, sc_fpc_csr),
157 .off_sc_used_math = offsetof(struct sigcontext, sc_used_math),
Dsignal.c272 + offsetof(struct extcontext, size))); in restore_extcontext()
761 .off_sc_fpregs = offsetof(struct sigcontext, sc_fpregs),
762 .off_sc_fpc_csr = offsetof(struct sigcontext, sc_fpc_csr),
763 .off_sc_used_math = offsetof(struct sigcontext, sc_used_math),
891 BUILD_BUG_ON((offsetof(struct sigframe, sf_extcontext) - in signal_setup()
892 offsetof(struct sigframe, sf_sc)) != in signal_setup()
893 (offsetof(struct rt_sigframe, rs_uc.uc_extcontext) - in signal_setup()
894 offsetof(struct rt_sigframe, rs_uc.uc_mcontext))); in signal_setup()
/linux-4.4.14/arch/nios2/kernel/
Dkgdb.c34 { "at", GDB_SIZEOF_REG, offsetof(struct pt_regs, r1) },
35 { "r2", GDB_SIZEOF_REG, offsetof(struct pt_regs, r2) },
36 { "r3", GDB_SIZEOF_REG, offsetof(struct pt_regs, r3) },
37 { "r4", GDB_SIZEOF_REG, offsetof(struct pt_regs, r4) },
38 { "r5", GDB_SIZEOF_REG, offsetof(struct pt_regs, r5) },
39 { "r6", GDB_SIZEOF_REG, offsetof(struct pt_regs, r6) },
40 { "r7", GDB_SIZEOF_REG, offsetof(struct pt_regs, r7) },
41 { "r8", GDB_SIZEOF_REG, offsetof(struct pt_regs, r8) },
42 { "r9", GDB_SIZEOF_REG, offsetof(struct pt_regs, r9) },
43 { "r10", GDB_SIZEOF_REG, offsetof(struct pt_regs, r10) },
[all …]
/linux-4.4.14/arch/alpha/kernel/
Dasm-offsets.c16 DEFINE(TI_TASK, offsetof(struct thread_info, task)); in foo()
17 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); in foo()
18 DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); in foo()
21 DEFINE(TASK_BLOCKED, offsetof(struct task_struct, blocked)); in foo()
22 DEFINE(TASK_CRED, offsetof(struct task_struct, cred)); in foo()
23 DEFINE(TASK_REAL_PARENT, offsetof(struct task_struct, real_parent)); in foo()
24 DEFINE(TASK_GROUP_LEADER, offsetof(struct task_struct, group_leader)); in foo()
25 DEFINE(TASK_TGID, offsetof(struct task_struct, tgid)); in foo()
28 DEFINE(CRED_UID, offsetof(struct cred, uid)); in foo()
29 DEFINE(CRED_EUID, offsetof(struct cred, euid)); in foo()
[all …]
/linux-4.4.14/arch/h8300/kernel/
Dasm-offsets.c33 DEFINE(CPUSTAT_SOFTIRQ_PENDING, offsetof(irq_cpustat_t, in main()
42 DEFINE(LER0, offsetof(struct pt_regs, er0) - sizeof(long)); in main()
43 DEFINE(LER1, offsetof(struct pt_regs, er1) - sizeof(long)); in main()
44 DEFINE(LER2, offsetof(struct pt_regs, er2) - sizeof(long)); in main()
45 DEFINE(LER3, offsetof(struct pt_regs, er3) - sizeof(long)); in main()
46 DEFINE(LER4, offsetof(struct pt_regs, er4) - sizeof(long)); in main()
47 DEFINE(LER5, offsetof(struct pt_regs, er5) - sizeof(long)); in main()
48 DEFINE(LER6, offsetof(struct pt_regs, er6) - sizeof(long)); in main()
49 DEFINE(LORIG, offsetof(struct pt_regs, orig_er0) - sizeof(long)); in main()
50 DEFINE(LSP, offsetof(struct pt_regs, sp) - sizeof(long)); in main()
[all …]
/linux-4.4.14/arch/openrisc/kernel/
Dasm-offsets.c45 DEFINE(TASK_STATE, offsetof(struct task_struct, state)); in main()
46 DEFINE(TASK_FLAGS, offsetof(struct task_struct, flags)); in main()
47 DEFINE(TASK_PTRACE, offsetof(struct task_struct, ptrace)); in main()
48 DEFINE(TASK_THREAD, offsetof(struct task_struct, thread)); in main()
49 DEFINE(TASK_MM, offsetof(struct task_struct, mm)); in main()
50 DEFINE(TASK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); in main()
53 DEFINE(TI_TASK, offsetof(struct thread_info, task)); in main()
54 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); in main()
55 DEFINE(TI_PREEMPT, offsetof(struct thread_info, preempt_count)); in main()
56 DEFINE(TI_KSP, offsetof(struct thread_info, ksp)); in main()
/linux-4.4.14/drivers/scsi/qla4xxx/
Dql4_dbg.c46 (uint8_t) offsetof(struct isp_reg, mailbox[i]), i, in qla4xxx_dump_registers()
51 (uint8_t) offsetof(struct isp_reg, flash_address), in qla4xxx_dump_registers()
54 (uint8_t) offsetof(struct isp_reg, flash_data), in qla4xxx_dump_registers()
57 (uint8_t) offsetof(struct isp_reg, ctrl_status), in qla4xxx_dump_registers()
62 (uint8_t) offsetof(struct isp_reg, u1.isp4010.nvram), in qla4xxx_dump_registers()
66 (uint8_t) offsetof(struct isp_reg, u1.isp4022.intr_mask), in qla4xxx_dump_registers()
69 (uint8_t) offsetof(struct isp_reg, u1.isp4022.nvram), in qla4xxx_dump_registers()
72 (uint8_t) offsetof(struct isp_reg, u1.isp4022.semaphore), in qla4xxx_dump_registers()
76 (uint8_t) offsetof(struct isp_reg, req_q_in), in qla4xxx_dump_registers()
79 (uint8_t) offsetof(struct isp_reg, rsp_q_out), in qla4xxx_dump_registers()
[all …]
/linux-4.4.14/arch/x86/kernel/
Dptrace.c59 #define REG_OFFSET_NAME(r) {.name = #r, .offset = offsetof(struct pt_regs, r)}
129 [0] = offsetof(struct pt_regs, ax),
130 [1] = offsetof(struct pt_regs, dx),
131 [2] = offsetof(struct pt_regs, cx)
133 [0] = offsetof(struct pt_regs, di),
134 [1] = offsetof(struct pt_regs, si),
135 [2] = offsetof(struct pt_regs, dx),
136 [3] = offsetof(struct pt_regs, cx),
137 [4] = offsetof(struct pt_regs, r8),
138 [5] = offsetof(struct pt_regs, r9)
[all …]
Dkgdb.c56 { "ax", 4, offsetof(struct pt_regs, ax) },
57 { "cx", 4, offsetof(struct pt_regs, cx) },
58 { "dx", 4, offsetof(struct pt_regs, dx) },
59 { "bx", 4, offsetof(struct pt_regs, bx) },
60 { "sp", 4, offsetof(struct pt_regs, sp) },
61 { "bp", 4, offsetof(struct pt_regs, bp) },
62 { "si", 4, offsetof(struct pt_regs, si) },
63 { "di", 4, offsetof(struct pt_regs, di) },
64 { "ip", 4, offsetof(struct pt_regs, ip) },
65 { "flags", 4, offsetof(struct pt_regs, flags) },
[all …]
/linux-4.4.14/drivers/media/pci/cx18/
Dcx18-scb.c77 cx18_writel(cx, SCB_OFFSET + offsetof(struct cx18_scb, apu2cpu_mb), in cx18_init_scb()
79 cx18_writel(cx, SCB_OFFSET + offsetof(struct cx18_scb, hpu2cpu_mb), in cx18_init_scb()
81 cx18_writel(cx, SCB_OFFSET + offsetof(struct cx18_scb, ppu2cpu_mb), in cx18_init_scb()
83 cx18_writel(cx, SCB_OFFSET + offsetof(struct cx18_scb, epu2cpu_mb), in cx18_init_scb()
85 cx18_writel(cx, SCB_OFFSET + offsetof(struct cx18_scb, cpu2apu_mb), in cx18_init_scb()
87 cx18_writel(cx, SCB_OFFSET + offsetof(struct cx18_scb, hpu2apu_mb), in cx18_init_scb()
89 cx18_writel(cx, SCB_OFFSET + offsetof(struct cx18_scb, ppu2apu_mb), in cx18_init_scb()
91 cx18_writel(cx, SCB_OFFSET + offsetof(struct cx18_scb, epu2apu_mb), in cx18_init_scb()
93 cx18_writel(cx, SCB_OFFSET + offsetof(struct cx18_scb, cpu2hpu_mb), in cx18_init_scb()
95 cx18_writel(cx, SCB_OFFSET + offsetof(struct cx18_scb, apu2hpu_mb), in cx18_init_scb()
[all …]
/linux-4.4.14/drivers/isdn/capi/
Dcapiutil.c46 {_CDWORD, offsetof(_cmsg, adr.adrController)},
48 {_CMSTRUCT, offsetof(_cmsg, AdditionalInfo)},
50 {_CSTRUCT, offsetof(_cmsg, B1configuration)},
52 {_CWORD, offsetof(_cmsg, B1protocol)},
54 {_CSTRUCT, offsetof(_cmsg, B2configuration)},
56 {_CWORD, offsetof(_cmsg, B2protocol)},
58 {_CSTRUCT, offsetof(_cmsg, B3configuration)},
60 {_CWORD, offsetof(_cmsg, B3protocol)},
62 {_CSTRUCT, offsetof(_cmsg, BC)},
64 {_CSTRUCT, offsetof(_cmsg, BChannelinformation)},
[all …]
/linux-4.4.14/arch/x86/math-emu/
Dget_address.c32 offsetof(struct pt_regs, ax),
33 offsetof(struct pt_regs, cx),
34 offsetof(struct pt_regs, dx),
35 offsetof(struct pt_regs, bx),
36 offsetof(struct pt_regs, sp),
37 offsetof(struct pt_regs, bp),
38 offsetof(struct pt_regs, si),
39 offsetof(struct pt_regs, di)
45 offsetof(struct pt_regs, cs),
46 offsetof(struct kernel_vm86_regs, ds),
[all …]
/linux-4.4.14/drivers/scsi/sym53c8xx_2/
Dsym_fw2.h290 SCR_SEL_TBL_ATN ^ offsetof (struct sym_dsb, select),
318 offsetof (struct sym_ccb, phys.head.status),
344 offsetof(struct sym_dsb, select.sel_scntl3),
352 offsetof (struct sym_dsb, smsg),
377 offsetof (struct sym_dsb, cmd),
468 offsetof (struct sym_ccb, phys.head.lastp),
527 offsetof (struct sym_ccb, phys.head.lastp),
559 offsetof (struct sym_ccb, phys.head.lastp),
575 offsetof (struct sym_ccb, phys.head.lastp),
667 offsetof (struct sym_ccb, phys.head.status),
[all …]
Dsym_fw.c45 #define SYM_GEN_A(s, label) ((short) offsetof(s, label)),
46 #define SYM_GEN_B(s, label) ((short) offsetof(s, label)),
47 #define SYM_GEN_Z(s, label) ((short) offsetof(s, label)),
230 offsetof(struct sym_fw2a_scr, pm0_data)); in sym_fw2_patch()
233 offsetof(struct sym_fw2a_scr, pm1_data)); in sym_fw2_patch()
247 *in++ = offsetof (struct sym_dsb, data[i]); in sym_fw_fill_data()
249 *out++ = offsetof (struct sym_dsb, data[i]); in sym_fw_fill_data()
Dsym_fw.h194 #define HADDR_1(label) (RELOC_SOFTC | offsetof(struct sym_hcb, label))
196 (offsetof(struct sym_hcb, label)+(ofs)))
200 #define SYM_GEN_PADDR_A(s, label) (RELOC_LABEL_A | offsetof(s, label))
201 #define SYM_GEN_PADDR_B(s, label) (RELOC_LABEL_B | offsetof(s, label))
Dsym_fw1.h315 SCR_SEL_TBL_ATN ^ offsetof (struct sym_dsb, select),
367 offsetof (struct sym_dsb, smsg),
392 offsetof (struct sym_dsb, cmd),
1212 offsetof (struct sym_ccb, phys.pm0.sg),
1232 offsetof (struct sym_ccb, phys.pm0.sg),
1248 SCR_REG_REG (scratcha, SCR_ADD, offsetof (struct sym_ccb,phys.pm0.ret)),
1288 offsetof (struct sym_ccb, phys.pm1.sg),
1308 offsetof (struct sym_ccb, phys.pm1.sg),
1324 SCR_REG_REG (scratcha, SCR_ADD, offsetof (struct sym_ccb,phys.pm1.ret)),
1354 SCR_SEL_TBL_ATN ^ offsetof (struct sym_hcb, abrt_sel),
[all …]
Dsym_hipd.h205 #define INB(np, r) INB_OFF(np, offsetof(struct sym_reg, r))
206 #define INW(np, r) INW_OFF(np, offsetof(struct sym_reg, r))
207 #define INL(np, r) INL_OFF(np, offsetof(struct sym_reg, r))
209 #define OUTB(np, r, v) OUTB_OFF(np, offsetof(struct sym_reg, r), (v))
210 #define OUTW(np, r, v) OUTW_OFF(np, offsetof(struct sym_reg, r), (v))
211 #define OUTL(np, r, v) OUTL_OFF(np, offsetof(struct sym_reg, r), (v))
803 #define CCB_BA(cp,lbl) cpu_to_scr(cp->ccb_ba + offsetof(struct sym_ccb, lbl))
1042 #define HCB_BA(np, lbl) (np->hcb_ba + offsetof(struct sym_hcb, lbl))
/linux-4.4.14/drivers/virtio/
Dvirtio_pci_modern.c78 pci_read_config_byte(dev, off + offsetof(struct virtio_pci_cap, in map_capability()
81 pci_read_config_dword(dev, off + offsetof(struct virtio_pci_cap, offset), in map_capability()
83 pci_read_config_dword(dev, off + offsetof(struct virtio_pci_cap, length), in map_capability()
515 pci_read_config_byte(dev, pos + offsetof(struct virtio_pci_cap, in virtio_pci_find_capability()
518 pci_read_config_byte(dev, pos + offsetof(struct virtio_pci_cap, in virtio_pci_find_capability()
542 offsetof(struct virtio_pci_cap, cap_vndr)); in check_offsets()
544 offsetof(struct virtio_pci_cap, cap_next)); in check_offsets()
546 offsetof(struct virtio_pci_cap, cap_len)); in check_offsets()
548 offsetof(struct virtio_pci_cap, cfg_type)); in check_offsets()
550 offsetof(struct virtio_pci_cap, bar)); in check_offsets()
[all …]
/linux-4.4.14/drivers/net/wireless/ath/wil6210/
Dinterrupt.c79 wil_w(wil, RGF_DMA_EP_TX_ICR + offsetof(struct RGF_ICR, IMS), in wil6210_mask_irq_tx()
85 wil_w(wil, RGF_DMA_EP_RX_ICR + offsetof(struct RGF_ICR, IMS), in wil6210_mask_irq_rx()
91 wil_w(wil, RGF_DMA_EP_MISC_ICR + offsetof(struct RGF_ICR, IMS), in wil6210_mask_irq_misc()
106 wil_w(wil, RGF_DMA_EP_TX_ICR + offsetof(struct RGF_ICR, IMC), in wil6210_unmask_irq_tx()
112 wil_w(wil, RGF_DMA_EP_RX_ICR + offsetof(struct RGF_ICR, IMC), in wil6210_unmask_irq_rx()
118 wil_w(wil, RGF_DMA_EP_MISC_ICR + offsetof(struct RGF_ICR, IMC), in wil6210_unmask_irq_misc()
145 wil_w(wil, RGF_DMA_EP_RX_ICR + offsetof(struct RGF_ICR, ICC), in wil_unmask_irq()
147 wil_w(wil, RGF_DMA_EP_TX_ICR + offsetof(struct RGF_ICR, ICC), in wil_unmask_irq()
149 wil_w(wil, RGF_DMA_EP_MISC_ICR + offsetof(struct RGF_ICR, ICC), in wil_unmask_irq()
210 offsetof(struct RGF_ICR, ICR)); in wil6210_irq_rx()
[all …]
Dmain.c561 offsetof(struct bl_dedicated_registers_v0, boot_loader_ready), 0); in wil_target_reset()
605 offsetof(struct bl_dedicated_registers_v0, in wil_target_reset()
700 offsetof(struct bl_dedicated_registers_v0, in wil_bl_crash_info()
707 offsetof(struct bl_dedicated_registers_v1, in wil_bl_crash_info()
710 offsetof(struct bl_dedicated_registers_v1, in wil_bl_crash_info()
713 offsetof(struct bl_dedicated_registers_v1, in wil_bl_crash_info()
830 wil_s(wil, RGF_CAF_ICR + offsetof(struct RGF_ICR, ICR), 0); in wil_reset()
831 wil_w(wil, RGF_CAF_ICR + offsetof(struct RGF_ICR, IMV), ~0); in wil_reset()
Dwmi.c232 offsetof(struct wil6210_mbox_ctl, tx.tail)); in __wmi_send()
257 wil_w(wil, r->head + offsetof(struct wil6210_mbox_ring_desc, sync), 1); in __wmi_send()
259 wil_w(wil, RGF_MBOX + offsetof(struct wil6210_mbox_ctl, tx.head), in __wmi_send()
265 wil_w(wil, RGF_USER_USER_ICR + offsetof(struct RGF_ICR, ICS), in __wmi_send()
309 int flen = len - offsetof(struct wmi_rx_mgmt_packet_event, payload); in wmi_evt_rx_mgmt()
359 size_t ie_len = d_len - offsetof(struct ieee80211_mgmt, in wmi_evt_rx_mgmt()
387 int flen = len - offsetof(struct wmi_tx_mgmt_packet_event, payload); in wmi_evt_tx_mgmt()
737 offsetof(struct wil6210_mbox_ctl, rx.head)); in wmi_recv_cmd()
765 evt = kmalloc(ALIGN(offsetof(struct pending_wmi_event, in wmi_recv_cmd()
776 offsetof(struct wil6210_mbox_ring_desc, sync), 0); in wmi_recv_cmd()
[all …]
Ddebugfs.c245 offsetof(struct wil6210_mbox_ctl, tx)); in wil_mbox_debugfs_show()
247 offsetof(struct wil6210_mbox_ctl, rx)); in wil_mbox_debugfs_show()
359 {"ICC", S_IRUGO | S_IWUSR, offsetof(struct RGF_ICR, ICC), doff_io32},
360 {"ICR", S_IRUGO | S_IWUSR, offsetof(struct RGF_ICR, ICR), doff_io32},
361 {"ICM", S_IRUGO | S_IWUSR, offsetof(struct RGF_ICR, ICM), doff_io32},
362 {"ICS", S_IWUSR, offsetof(struct RGF_ICR, ICS), doff_io32},
363 {"IMV", S_IRUGO | S_IWUSR, offsetof(struct RGF_ICR, IMV), doff_io32},
364 {"IMS", S_IWUSR, offsetof(struct RGF_ICR, IMS), doff_io32},
365 {"IMC", S_IWUSR, offsetof(struct RGF_ICR, IMC), doff_io32},
1486 offsetof(struct wil6210_priv, name), type}
/linux-4.4.14/drivers/scsi/aic94xx/
Daic94xx_dev.c55 #define INIT_CONN_TAG offsetof(struct asd_ddb_ssp_smp_target_port, init_conn_tag)
56 #define DEST_SAS_ADDR offsetof(struct asd_ddb_ssp_smp_target_port, dest_sas_addr)
57 #define SEND_QUEUE_HEAD offsetof(struct asd_ddb_ssp_smp_target_port, send_queue_head)
58 #define DDB_TYPE offsetof(struct asd_ddb_ssp_smp_target_port, ddb_type)
59 #define CONN_MASK offsetof(struct asd_ddb_ssp_smp_target_port, conn_mask)
60 #define DDB_TARG_FLAGS offsetof(struct asd_ddb_ssp_smp_target_port, flags)
61 #define DDB_TARG_FLAGS2 offsetof(struct asd_ddb_stp_sata_target_port, flags2)
62 #define EXEC_QUEUE_TAIL offsetof(struct asd_ddb_ssp_smp_target_port, exec_queue_tail)
63 #define SEND_QUEUE_TAIL offsetof(struct asd_ddb_ssp_smp_target_port, send_queue_tail)
64 #define SISTER_DDB offsetof(struct asd_ddb_ssp_smp_target_port, sister_ddb)
[all …]
Daic94xx_seq.c893 offsetof(struct scb_header, opcode), in asd_init_scb_sites()
1128 offsetof(struct asd_ddb_seq_shared, q_free_ddb_head), 0); in asd_init_ddb_0()
1130 offsetof(struct asd_ddb_seq_shared, q_free_ddb_tail), in asd_init_ddb_0()
1133 offsetof(struct asd_ddb_seq_shared, q_free_ddb_cnt), 0); in asd_init_ddb_0()
1135 offsetof(struct asd_ddb_seq_shared, q_used_ddb_head), 0xFFFF); in asd_init_ddb_0()
1137 offsetof(struct asd_ddb_seq_shared, q_used_ddb_tail), 0xFFFF); in asd_init_ddb_0()
1139 offsetof(struct asd_ddb_seq_shared, shared_mem_lock), 0); in asd_init_ddb_0()
1141 offsetof(struct asd_ddb_seq_shared, smp_conn_tag), 0); in asd_init_ddb_0()
1143 offsetof(struct asd_ddb_seq_shared, est_nexus_buf_cnt), 0); in asd_init_ddb_0()
1145 offsetof(struct asd_ddb_seq_shared, est_nexus_buf_thresh), in asd_init_ddb_0()
[all …]
Daic94xx_dump.c755 offsetof(struct asd_ddb_ssp_smp_target_port, __name))
758 offsetof(struct asd_ddb_stp_sata_target_port, __name))
761 offsetof(struct asd_ddb_ssp_smp_target_port, __name))
765 offsetof(struct asd_ddb_ssp_smp_target_port, __name))
797 offsetof(struct asd_ddb_seq_shared, __name))
800 offsetof(struct asd_ddb_seq_shared, __name))
804 offsetof(struct asd_ddb_seq_shared, __name))
808 offsetof(struct asd_ddb_seq_shared, __name)+_o)
841 + offsetof(struct initiate_ssp_task, __name))
844 + offsetof(struct initiate_ssp_task, __name))
[all …]
/linux-4.4.14/drivers/net/vmxnet3/
Dvmxnet3_ethtool.c41 { " TSO pkts tx", offsetof(struct UPT1_TxStats, TSOPktsTxOK) },
42 { " TSO bytes tx", offsetof(struct UPT1_TxStats, TSOBytesTxOK) },
43 { " ucast pkts tx", offsetof(struct UPT1_TxStats, ucastPktsTxOK) },
44 { " ucast bytes tx", offsetof(struct UPT1_TxStats, ucastBytesTxOK) },
45 { " mcast pkts tx", offsetof(struct UPT1_TxStats, mcastPktsTxOK) },
46 { " mcast bytes tx", offsetof(struct UPT1_TxStats, mcastBytesTxOK) },
47 { " bcast pkts tx", offsetof(struct UPT1_TxStats, bcastPktsTxOK) },
48 { " bcast bytes tx", offsetof(struct UPT1_TxStats, bcastBytesTxOK) },
49 { " pkts tx err", offsetof(struct UPT1_TxStats, pktsTxError) },
50 { " pkts tx discard", offsetof(struct UPT1_TxStats, pktsTxDiscard) },
[all …]
/linux-4.4.14/samples/bpf/
Dsockex2_kern.c47 return load_half(ctx, nhoff + offsetof(struct iphdr, frag_off)) in ip_is_fragment()
69 *ip_proto = load_byte(skb, nhoff + offsetof(struct iphdr, protocol)); in parse_ip()
72 flow->src = load_word(skb, nhoff + offsetof(struct iphdr, saddr)); in parse_ip()
73 flow->dst = load_word(skb, nhoff + offsetof(struct iphdr, daddr)); in parse_ip()
89 nhoff + offsetof(struct ipv6hdr, nexthdr)); in parse_ipv6()
91 nhoff + offsetof(struct ipv6hdr, saddr)); in parse_ipv6()
93 nhoff + offsetof(struct ipv6hdr, daddr)); in parse_ipv6()
107 proto = load_half(skb, nhoff + offsetof(struct vlan_hdr, in flow_dissector()
113 proto = load_half(skb, nhoff + offsetof(struct vlan_hdr, in flow_dissector()
133 nhoff + offsetof(struct gre_hdr, flags)); in flow_dissector()
[all …]
Dtcbpf1_kern.c19 #define IP_CSUM_OFF (ETH_HLEN + offsetof(struct iphdr, check))
20 #define TOS_OFF (ETH_HLEN + offsetof(struct iphdr, tos))
30 #define TCP_CSUM_OFF (ETH_HLEN + sizeof(struct iphdr) + offsetof(struct tcphdr, check))
31 #define IP_SRC_OFF (ETH_HLEN + offsetof(struct iphdr, saddr))
44 #define TCP_DPORT_OFF (ETH_HLEN + sizeof(struct iphdr) + offsetof(struct tcphdr, dest))
56 __u8 proto = load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)); in bpf_prog1()
Dsockex3_kern.c76 return load_half(ctx, nhoff + offsetof(struct iphdr, frag_off)) in ip_is_fragment()
152 nhoff + offsetof(struct gre_hdr, flags)); in parse_ip_proto()
154 nhoff + offsetof(struct gre_hdr, proto)); in parse_ip_proto()
202 ip_proto = load_byte(skb, nhoff + offsetof(struct iphdr, protocol)); in PROG()
205 g->flow.src = load_word(skb, nhoff + offsetof(struct iphdr, saddr)); in PROG()
206 g->flow.dst = load_word(skb, nhoff + offsetof(struct iphdr, daddr)); in PROG()
228 nhoff + offsetof(struct ipv6hdr, nexthdr)); in PROG()
230 nhoff + offsetof(struct ipv6hdr, saddr)); in PROG()
232 nhoff + offsetof(struct ipv6hdr, daddr)); in PROG()
246 proto = load_half(skb, nhoff + offsetof(struct vlan_hdr, in PROG()
Dtest_verifier.c675 offsetof(struct __sk_buff, len)),
678 offsetof(struct __sk_buff, mark)),
681 offsetof(struct __sk_buff, pkt_type)),
684 offsetof(struct __sk_buff, queue_mapping)),
687 offsetof(struct __sk_buff, protocol)),
690 offsetof(struct __sk_buff, vlan_present)),
693 offsetof(struct __sk_buff, vlan_tci)),
721 offsetof(struct __sk_buff, pkt_type)),
734 offsetof(struct __sk_buff, pkt_type)),
756 offsetof(struct __sk_buff, len)),
[all …]
Dsockex1_kern.c17 int index = load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)); in bpf_prog1()
/linux-4.4.14/drivers/lguest/x86/
Dcore.c188 case offsetof(struct pt_regs, bx): in lguest_arch_regptr()
190 case offsetof(struct pt_regs, cx): in lguest_arch_regptr()
192 case offsetof(struct pt_regs, dx): in lguest_arch_regptr()
194 case offsetof(struct pt_regs, si): in lguest_arch_regptr()
196 case offsetof(struct pt_regs, di): in lguest_arch_regptr()
198 case offsetof(struct pt_regs, bp): in lguest_arch_regptr()
200 case offsetof(struct pt_regs, ax): in lguest_arch_regptr()
202 case offsetof(struct pt_regs, ip): in lguest_arch_regptr()
204 case offsetof(struct pt_regs, sp): in lguest_arch_regptr()
211 case offsetof(struct pt_regs, ds): in lguest_arch_regptr()
[all …]
/linux-4.4.14/fs/ocfs2/
Docfs2_fs.h417 #define OCFS2_DIR_MEMBER_LEN offsetof(struct ocfs2_dir_entry, name)
1284 offsetof(struct ocfs2_dinode, id2.i_symlink); in ocfs2_fast_symlink_chars()
1294 offsetof(struct ocfs2_dinode, id2.i_data.id_data) - in ocfs2_max_inline_data_with_xattr()
1298 offsetof(struct ocfs2_dinode, id2.i_data.id_data); in ocfs2_max_inline_data_with_xattr()
1306 offsetof(struct ocfs2_dinode, id2.i_list.l_recs); in ocfs2_extent_recs_per_inode()
1320 offsetof(struct ocfs2_dinode, id2.i_list.l_recs) - in ocfs2_extent_recs_per_inode_with_xattr()
1324 offsetof(struct ocfs2_dinode, id2.i_list.l_recs); in ocfs2_extent_recs_per_inode_with_xattr()
1334 offsetof(struct ocfs2_dx_root_block, dr_list.l_recs); in ocfs2_extent_recs_per_dx_root()
1344 offsetof(struct ocfs2_dinode, id2.i_chain.cl_recs); in ocfs2_chain_recs_per_inode()
1354 offsetof(struct ocfs2_extent_block, h_list.l_recs); in ocfs2_extent_recs_per_eb()
[all …]
/linux-4.4.14/drivers/acpi/
Dbattery.c347 {offsetof(struct acpi_battery, state), 0},
348 {offsetof(struct acpi_battery, rate_now), 0},
349 {offsetof(struct acpi_battery, capacity_now), 0},
350 {offsetof(struct acpi_battery, voltage_now), 0},
354 {offsetof(struct acpi_battery, power_unit), 0},
355 {offsetof(struct acpi_battery, design_capacity), 0},
356 {offsetof(struct acpi_battery, full_charge_capacity), 0},
357 {offsetof(struct acpi_battery, technology), 0},
358 {offsetof(struct acpi_battery, design_voltage), 0},
359 {offsetof(struct acpi_battery, design_capacity_warning), 0},
[all …]
Dsbs.c322 {0x01, SMBUS_READ_WORD, offsetof(struct acpi_battery, alarm_capacity)},
323 {0x03, SMBUS_READ_WORD, offsetof(struct acpi_battery, mode)},
324 {0x10, SMBUS_READ_WORD, offsetof(struct acpi_battery, full_charge_capacity)},
325 {0x17, SMBUS_READ_WORD, offsetof(struct acpi_battery, cycle_count)},
326 {0x18, SMBUS_READ_WORD, offsetof(struct acpi_battery, design_capacity)},
327 {0x19, SMBUS_READ_WORD, offsetof(struct acpi_battery, design_voltage)},
328 {0x1a, SMBUS_READ_WORD, offsetof(struct acpi_battery, spec)},
329 {0x1c, SMBUS_READ_WORD, offsetof(struct acpi_battery, serial_number)},
330 {0x20, SMBUS_READ_BLOCK, offsetof(struct acpi_battery, manufacturer_name)},
331 {0x21, SMBUS_READ_BLOCK, offsetof(struct acpi_battery, device_name)},
[all …]
/linux-4.4.14/net/core/
Dfilter.c162 offsetof(struct sk_buff, mark)); in convert_skb_access()
177 offsetof(struct sk_buff, queue_mapping)); in convert_skb_access()
187 offsetof(struct sk_buff, vlan_tci)); in convert_skb_access()
215 offsetof(struct sk_buff, protocol)); in convert_bpf_extensions()
233 offsetof(struct sk_buff, dev)); in convert_bpf_extensions()
239 offsetof(struct net_device, ifindex)); in convert_bpf_extensions()
242 offsetof(struct net_device, type)); in convert_bpf_extensions()
254 offsetof(struct sk_buff, hash)); in convert_bpf_extensions()
279 offsetof(struct sk_buff, vlan_proto)); in convert_bpf_extensions()
572 offsetof(struct sk_buff, len)); in bpf_convert_filter()
[all …]
Dflow_dissector.c528 BUILD_BUG_ON(offsetof(typeof(*flow), addrs) != in flow_keys_hash_length()
841 .offset = offsetof(struct flow_keys, control),
845 .offset = offsetof(struct flow_keys, basic),
849 .offset = offsetof(struct flow_keys, addrs.v4addrs),
853 .offset = offsetof(struct flow_keys, addrs.v6addrs),
857 .offset = offsetof(struct flow_keys, addrs.tipcaddrs),
861 .offset = offsetof(struct flow_keys, ports),
865 .offset = offsetof(struct flow_keys, tags),
869 .offset = offsetof(struct flow_keys, tags),
873 .offset = offsetof(struct flow_keys, keyid),
[all …]
Dethtool.c138 sizeaddr = useraddr + offsetof(struct ethtool_gfeatures, size); in ethtool_get_features()
486 useraddr += offsetof(struct ethtool_sset_info, data); in ethtool_get_sset_info()
512 info_size = (offsetof(struct ethtool_rxnfc, data) + in ethtool_set_rxnfc()
546 info_size = (offsetof(struct ethtool_rxnfc, data) + in ethtool_get_rxnfc()
571 useraddr += offsetof(struct ethtool_rxnfc, rule_locs); in ethtool_get_rxnfc()
626 useraddr + offsetof(struct ethtool_rxfh_indir, size), in ethtool_get_rxfh_indir()
630 if (copy_to_user(useraddr + offsetof(struct ethtool_rxfh_indir, size), in ethtool_get_rxfh_indir()
650 offsetof(struct ethtool_rxfh_indir, ring_index[0]), in ethtool_get_rxfh_indir()
667 u32 ringidx_offset = offsetof(struct ethtool_rxfh_indir, ring_index[0]); in ethtool_set_rxfh_indir()
678 useraddr + offsetof(struct ethtool_rxfh_indir, size), in ethtool_set_rxfh_indir()
[all …]
/linux-4.4.14/include/linux/
Dstddef.h14 #undef offsetof
16 #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER) macro
18 #define offsetof(TYPE, MEMBER) ((size_t)&((TYPE *)0)->MEMBER) macro
28 (offsetof(TYPE, MEMBER) + sizeof(((TYPE *)0)->MEMBER))
Dvirtio_config.h255 offsetof(structname, member)); \
259 offsetof(structname, member)); \
263 offsetof(structname, member)); \
267 offsetof(structname, member)); \
284 offsetof(structname, member), \
289 offsetof(structname, member), \
294 offsetof(structname, member), \
299 offsetof(structname, member), \
Dwireless.h30 #define IW_EV_COMPAT_LCP_LEN offsetof(struct __compat_iw_event, pointer)
31 #define IW_EV_COMPAT_POINT_OFF offsetof(struct compat_iw_point, length)
Dkbuild.h10 DEFINE(sym, offsetof(struct str, mem))
Dspinlock_types.h69 # define LOCK_PADSIZE (offsetof(struct raw_spinlock, dep_map))
/linux-4.4.14/arch/sparc/kernel/
Dtraps_32.c434 if (TI_UWINMASK != offsetof(struct thread_info, uwinmask) ||
435 TI_TASK != offsetof(struct thread_info, task) ||
436 TI_FLAGS != offsetof(struct thread_info, flags) ||
437 TI_CPU != offsetof(struct thread_info, cpu) ||
438 TI_PREEMPT != offsetof(struct thread_info, preempt_count) ||
439 TI_SOFTIRQ != offsetof(struct thread_info, softirq_count) ||
440 TI_HARDIRQ != offsetof(struct thread_info, hardirq_count) ||
441 TI_KSP != offsetof(struct thread_info, ksp) ||
442 TI_KPC != offsetof(struct thread_info, kpc) ||
443 TI_KPSR != offsetof(struct thread_info, kpsr) ||
[all …]
Dasm-offsets.c23 offsetof(struct thread_struct, fork_kpsr)); in sparc32_foo()
49 DEFINE(AOFF_task_thread, offsetof(struct task_struct, thread)); in foo()
51 DEFINE(AOFF_mm_context, offsetof(struct mm_struct, context)); in foo()
53 DEFINE(VMA_VM_MM, offsetof(struct vm_area_struct, vm_mm)); in foo()
Dtraps_64.c2685 BUILD_BUG_ON(TI_TASK != offsetof(struct thread_info, task) || in trap_init()
2686 TI_FLAGS != offsetof(struct thread_info, flags) || in trap_init()
2687 TI_CPU != offsetof(struct thread_info, cpu) || in trap_init()
2688 TI_FPSAVED != offsetof(struct thread_info, fpsaved) || in trap_init()
2689 TI_KSP != offsetof(struct thread_info, ksp) || in trap_init()
2690 TI_FAULT_ADDR != offsetof(struct thread_info, in trap_init()
2692 TI_KREGS != offsetof(struct thread_info, kregs) || in trap_init()
2693 TI_UTRAPS != offsetof(struct thread_info, utraps) || in trap_init()
2694 TI_REG_WINDOW != offsetof(struct thread_info, in trap_init()
2696 TI_RWIN_SPTRS != offsetof(struct thread_info, in trap_init()
[all …]
/linux-4.4.14/arch/x86/include/asm/
Dswitch_to.h20 , [task_canary] "i" (offsetof(struct task_struct, stack_canary))
96 , [task_canary] "i" (offsetof(struct task_struct, stack_canary))
123 [threadrsp] "i" (offsetof(struct task_struct, thread.sp)), \
124 [ti_flags] "i" (offsetof(struct thread_info, flags)), \
126 [thread_info] "i" (offsetof(struct task_struct, stack)), \
Dptrace.h161 #define MAX_REG_OFFSET (offsetof(struct pt_regs, ss))
182 if (offset == offsetof(struct pt_regs, sp) && in regs_get_register()
Dstackprotector.h66 BUILD_BUG_ON(offsetof(union irq_stack_union, stack_canary) != 40); in boot_init_stack_canary()
/linux-4.4.14/net/netfilter/
Dnf_conntrack_h323_types.c10 offsetof(TransportAddress_ipAddress, ip), NULL},
40 offsetof(TransportAddress_ip6Address, ip), NULL},
64 offsetof(TransportAddress, ipAddress), _TransportAddress_ipAddress},
70 offsetof(TransportAddress, ip6Address),
489 offsetof(DataApplicationCapability_application, t120),
514 offsetof(DataApplicationCapability, application),
532 {FNAME("data") SEQ, 0, 2, 2, DECODE | EXT, offsetof(DataType, data),
631 offsetof(UnicastAddress_iPAddress, network), NULL},
643 offsetof(UnicastAddress_iP6Address, network), NULL},
667 offsetof(UnicastAddress, iPAddress), _UnicastAddress_iPAddress},
[all …]
Dxt_repldata.h25 size_t term_offset = (offsetof(typeof(*tbl), entries[nhooks]) + \
/linux-4.4.14/drivers/staging/unisys/visorbus/
Dcontrolvmchannel.h440 offsetof(struct spar_controlvm_channel_protocol, request_queue)
442 offsetof(struct spar_controlvm_channel_protocol, response_queue)
444 offsetof(struct spar_controlvm_channel_protocol, event_queue)
446 offsetof(struct spar_controlvm_channel_protocol, event_ack_queue)
448 offsetof(struct spar_controlvm_channel_protocol, request_msg)
450 offsetof(struct spar_controlvm_channel_protocol, response_msg)
452 offsetof(struct spar_controlvm_channel_protocol, event_msg)
454 offsetof(struct spar_controlvm_channel_protocol, event_ack_msg)
456 offsetof(struct spar_controlvm_channel_protocol, saved_crash_msg)
Dvisorchipset.c540 offsetof(struct spar_controlvm_channel_protocol, in toolaction_show()
556 offsetof(struct spar_controlvm_channel_protocol, in toolaction_store()
572 offsetof(struct spar_controlvm_channel_protocol, in boottotool_show()
591 offsetof(struct spar_controlvm_channel_protocol, in boottotool_store()
606 offsetof(struct spar_controlvm_channel_protocol, in error_show()
622 offsetof(struct spar_controlvm_channel_protocol, in error_store()
636 offsetof(struct spar_controlvm_channel_protocol, in textid_show()
652 offsetof(struct spar_controlvm_channel_protocol, in textid_store()
666 offsetof(struct spar_controlvm_channel_protocol, in remaining_steps_show()
683 offsetof(struct spar_controlvm_channel_protocol, in remaining_steps_store()
[all …]
/linux-4.4.14/arch/x86/mm/
Dmpx.c74 offsetof(struct pt_regs, ax), in get_reg_offset()
75 offsetof(struct pt_regs, cx), in get_reg_offset()
76 offsetof(struct pt_regs, dx), in get_reg_offset()
77 offsetof(struct pt_regs, bx), in get_reg_offset()
78 offsetof(struct pt_regs, sp), in get_reg_offset()
79 offsetof(struct pt_regs, bp), in get_reg_offset()
80 offsetof(struct pt_regs, si), in get_reg_offset()
81 offsetof(struct pt_regs, di), in get_reg_offset()
83 offsetof(struct pt_regs, r8), in get_reg_offset()
84 offsetof(struct pt_regs, r9), in get_reg_offset()
[all …]
/linux-4.4.14/arch/cris/kernel/
Dasm-offsets.c17 #define ENTRY(entry) DEFINE(PT_ ## entry, offsetof(struct pt_regs, entry)) in main()
37 #define ENTRY(entry) DEFINE(TI_ ## entry, offsetof(struct thread_info, entry)) in main()
43 #define ENTRY(entry) DEFINE(THREAD_ ## entry, offsetof(struct thread_struct, entry)) in main()
53 #define ENTRY(entry) DEFINE(TASK_ ## entry, offsetof(struct task_struct, entry)) in main()
/linux-4.4.14/drivers/staging/lustre/lnet/lnet/
Dapi-ni.c191 CLASSERT((int)offsetof(lnet_handle_wire_t, wh_interface_cookie) == 0); in lnet_assert_wire_constants()
193 CLASSERT((int)offsetof(lnet_handle_wire_t, wh_object_cookie) == 8); in lnet_assert_wire_constants()
198 CLASSERT((int)offsetof(lnet_magicversion_t, magic) == 0); in lnet_assert_wire_constants()
200 CLASSERT((int)offsetof(lnet_magicversion_t, version_major) == 4); in lnet_assert_wire_constants()
202 CLASSERT((int)offsetof(lnet_magicversion_t, version_minor) == 6); in lnet_assert_wire_constants()
207 CLASSERT((int)offsetof(lnet_hdr_t, dest_nid) == 0); in lnet_assert_wire_constants()
209 CLASSERT((int)offsetof(lnet_hdr_t, src_nid) == 8); in lnet_assert_wire_constants()
211 CLASSERT((int)offsetof(lnet_hdr_t, dest_pid) == 16); in lnet_assert_wire_constants()
213 CLASSERT((int)offsetof(lnet_hdr_t, src_pid) == 20); in lnet_assert_wire_constants()
215 CLASSERT((int)offsetof(lnet_hdr_t, type) == 24); in lnet_assert_wire_constants()
[all …]
/linux-4.4.14/drivers/net/wireless/cw1200/
Dhwio.h58 (DOWNLOAD_CTRL_OFFSET + offsetof(struct download_cntl_t, image_size))
60 (DOWNLOAD_CTRL_OFFSET + offsetof(struct download_cntl_t, flags))
62 (DOWNLOAD_CTRL_OFFSET + offsetof(struct download_cntl_t, put))
64 (DOWNLOAD_CTRL_OFFSET + offsetof(struct download_cntl_t, trace_pc))
66 (DOWNLOAD_CTRL_OFFSET + offsetof(struct download_cntl_t, get))
68 (DOWNLOAD_CTRL_OFFSET + offsetof(struct download_cntl_t, status))
70 (DOWNLOAD_CTRL_OFFSET + offsetof(struct download_cntl_t, debug_data))
/linux-4.4.14/drivers/staging/media/davinci_vpfe/
Ddm365_ipipe.c1153 offsetof(struct ipipe_module_params, input_config),
1155 offsetof(struct vpfe_ipipe_config, input_config),
1159 offsetof(struct ipipe_module_params, lutdpc),
1161 offsetof(struct vpfe_ipipe_config, lutdpc),
1165 offsetof(struct ipipe_module_params, otfdpc),
1167 offsetof(struct vpfe_ipipe_config, otfdpc),
1171 offsetof(struct ipipe_module_params, nf1),
1173 offsetof(struct vpfe_ipipe_config, nf1),
1177 offsetof(struct ipipe_module_params, nf2),
1179 offsetof(struct vpfe_ipipe_config, nf2),
[all …]
/linux-4.4.14/arch/x86/um/
Dptrace_64.c121 else if ((addr >= offsetof(struct user, u_debugreg[0])) && in poke_user()
122 (addr <= offsetof(struct user, u_debugreg[7]))) { in poke_user()
123 addr -= offsetof(struct user, u_debugreg[0]); in poke_user()
188 else if ((addr >= offsetof(struct user, u_debugreg[0])) && in peek_user()
189 (addr <= offsetof(struct user, u_debugreg[7]))) { in peek_user()
190 addr -= offsetof(struct user, u_debugreg[0]); in peek_user()
Dptrace_32.c128 else if ((addr >= offsetof(struct user, u_debugreg[0])) && in poke_user()
129 (addr <= offsetof(struct user, u_debugreg[7]))) { in poke_user()
130 addr -= offsetof(struct user, u_debugreg[0]); in poke_user()
185 else if ((addr >= offsetof(struct user, u_debugreg[0])) && in peek_user()
186 (addr <= offsetof(struct user, u_debugreg[7]))) { in peek_user()
187 addr -= offsetof(struct user, u_debugreg[0]); in peek_user()
/linux-4.4.14/net/ipv4/netfilter/
Dnf_nat_pptp.c135 cid_off = offsetof(union pptp_ctrl_union, ocreq.callID); in pptp_outbound_pkt()
152 cid_off = offsetof(union pptp_ctrl_union, icack.callID); in pptp_outbound_pkt()
155 cid_off = offsetof(union pptp_ctrl_union, clrreq.callID); in pptp_outbound_pkt()
235 pcid_off = offsetof(union pptp_ctrl_union, ocack.peersCallID); in pptp_inbound_pkt()
238 pcid_off = offsetof(union pptp_ctrl_union, iccon.peersCallID); in pptp_inbound_pkt()
244 pcid_off = offsetof(union pptp_ctrl_union, wanerr.peersCallID); in pptp_inbound_pkt()
247 pcid_off = offsetof(union pptp_ctrl_union, disc.callID); in pptp_inbound_pkt()
250 pcid_off = offsetof(union pptp_ctrl_union, setlink.peersCallID); in pptp_inbound_pkt()
/linux-4.4.14/drivers/uwb/
Dest.c69 .offset = 1 + offsetof(struct uwb_rc_evt_ie_rcv, wIELength),
73 .offset = 1 + offsetof(struct uwb_rc_evt_beacon, wBeaconInfoLength),
80 .offset = 1 + offsetof(struct uwb_rc_evt_bpoie_change,
88 .offset = 1 + offsetof(struct uwb_rc_evt_bp_switch_ie_rcv, wIELength),
98 .offset = 1 + offsetof(struct uwb_rc_evt_drp, ie_length),
105 .offset = 1 + offsetof(struct uwb_rc_evt_cmd_frame_rcv, dataLength),
109 .offset = 1 + offsetof(struct uwb_rc_evt_channel_change_ie_rcv, wIELength),
118 .offset = 1 + offsetof(struct uwb_rc_evt_get_ie, wIELength),
/linux-4.4.14/drivers/input/misc/
Dyealink.h214 _PIC('.', offsetof(struct yld_status, led) , 0x01, "LED" ),
215 _PIC('.', offsetof(struct yld_status, dialtone) , 0x01, "DIALTONE" ),
216 _PIC('.', offsetof(struct yld_status, ringtone) , 0x24, "RINGTONE" ),
/linux-4.4.14/drivers/i2c/busses/
Di2c-hydra.c116 if (!request_mem_region(base+offsetof(struct Hydra, CachePD), 4, in hydra_probe()
122 release_mem_region(base+offsetof(struct Hydra, CachePD), 4); in hydra_probe()
131 release_mem_region(base+offsetof(struct Hydra, CachePD), 4); in hydra_probe()
143 offsetof(struct Hydra, CachePD), 4); in hydra_remove()
/linux-4.4.14/drivers/net/ethernet/cavium/liquidio/
Docteon_console.c170 offsetof(struct cvmx_bootmem_desc, field), \
189 offsetof(struct cvmx_bootmem_named_block_desc, field), \
236 addr += offsetof(struct cvmx_bootmem_named_block_desc, name); in CVMX_BOOTMEM_NAMED_GET_NAME()
566 addr + offsetof(struct octeon_pci_console_desc, in octeon_init_consoles()
594 offsetof(struct octeon_pci_console_desc, in octeon_add_console()
597 coreaddr = console->addr + offsetof(struct octeon_pci_console, in octeon_add_console()
600 coreaddr = console->addr + offsetof(struct octeon_pci_console, in octeon_add_console()
604 coreaddr = console->addr + offsetof(struct octeon_pci_console, in octeon_add_console()
697 offsetof(struct octeon_pci_console, output_read_index)); in octeon_console_read()
699 offsetof(struct octeon_pci_console, output_write_index)); in octeon_console_read()
[all …]
/linux-4.4.14/arch/powerpc/net/
Dbpf_jit_comp.c66 PPC_LWZ_OFFS(r_scratch1, r_skb, offsetof(struct sk_buff, in bpf_jit_build_prologue()
68 PPC_LWZ_OFFS(r_HL, r_skb, offsetof(struct sk_buff, len)); in bpf_jit_build_prologue()
70 PPC_LL_OFFS(r_D, r_skb, offsetof(struct sk_buff, data)); in bpf_jit_build_prologue()
330 PPC_LWZ_OFFS(r_A, r_skb, offsetof(struct sk_buff, len)); in bpf_jit_build_body()
333 PPC_LWZ_OFFS(r_X, r_skb, offsetof(struct sk_buff, len)); in bpf_jit_build_body()
340 PPC_NTOHS_OFFS(r_A, r_skb, offsetof(struct sk_buff, in bpf_jit_build_body()
349 PPC_LL_OFFS(r_scratch1, r_skb, offsetof(struct sk_buff, in bpf_jit_build_body()
362 offsetof(struct net_device, ifindex)); in bpf_jit_build_body()
365 offsetof(struct net_device, type)); in bpf_jit_build_body()
371 PPC_LWZ_OFFS(r_A, r_skb, offsetof(struct sk_buff, in bpf_jit_build_body()
[all …]
/linux-4.4.14/arch/mips/kvm/
Ddyntrans.c90 offsetof(struct mips_coproc, in kvm_mips_trans_mfc0()
91 reg[rd][sel]) + offsetof(struct kvm_mips_commpage, in kvm_mips_trans_mfc0()
127 offsetof(struct mips_coproc, in kvm_mips_trans_mtc0()
128 reg[rd][sel]) + offsetof(struct kvm_mips_commpage, cop0); in kvm_mips_trans_mtc0()
/linux-4.4.14/arch/x86/xen/
Dvga.c27 if (size < offsetof(struct dom0_vga_console_info, u.text_mode_3) in xen_init_vga()
40 if (size < offsetof(struct dom0_vga_console_info, in xen_init_vga()
64 if (size >= offsetof(struct dom0_vga_console_info, in xen_init_vga()
68 if (size >= offsetof(struct dom0_vga_console_info, in xen_init_vga()
/linux-4.4.14/drivers/gpu/drm/vmwgfx/
Dvmwgfx_so.c290 size_t size = offsetof(struct vmw_view, cmd) + view->cmd_size; in vmw_view_res_free()
346 size = offsetof(struct vmw_view, cmd) + cmd_size; in vmw_view_add()
549 BUILD_BUG_ON(offsetof(struct vmw_view_define, sid) != in vmw_so_build_asserts()
550 offsetof(SVGA3dCmdDXDefineShaderResourceView, sid)); in vmw_so_build_asserts()
551 BUILD_BUG_ON(offsetof(struct vmw_view_define, sid) != in vmw_so_build_asserts()
552 offsetof(SVGA3dCmdDXDefineRenderTargetView, sid)); in vmw_so_build_asserts()
553 BUILD_BUG_ON(offsetof(struct vmw_view_define, sid) != in vmw_so_build_asserts()
554 offsetof(SVGA3dCmdDXDefineDepthStencilView, sid)); in vmw_so_build_asserts()
Dvmwgfx_binding.c151 offsetof(struct vmw_ctx_binding_state, per_shader[0].shader),
152 offsetof(struct vmw_ctx_binding_state, per_shader[1].shader),
153 offsetof(struct vmw_ctx_binding_state, per_shader[2].shader),
156 offsetof(struct vmw_ctx_binding_state, render_targets),
159 offsetof(struct vmw_ctx_binding_state, texture_units),
162 offsetof(struct vmw_ctx_binding_state, per_shader[0].const_buffers),
163 offsetof(struct vmw_ctx_binding_state, per_shader[1].const_buffers),
164 offsetof(struct vmw_ctx_binding_state, per_shader[2].const_buffers),
167 offsetof(struct vmw_ctx_binding_state, ds_view),
170 offsetof(struct vmw_ctx_binding_state, per_shader[0].shader_res),
[all …]
/linux-4.4.14/arch/frv/kernel/
Dptrace.c70 if (pos < offsetof(struct user_int_regs, psr) + sizeof(long) && in genregs_set()
71 pos + count > offsetof(struct user_int_regs, psr)) in genregs_set()
74 if (pos < offsetof(struct user_int_regs, __status) + sizeof(long) && in genregs_set()
75 pos + count > offsetof(struct user_int_regs, __status)) in genregs_set()
79 offs_gr0 = offsetof(struct user_int_regs, gr[0]); in genregs_set()
80 offs_gr1 = offsetof(struct user_int_regs, gr[1]); in genregs_set()
Dasm-offsets.c19 : : "i" (offsetof(struct pt_regs, reg)))
23 : : "i" (offsetof(struct user_context, reg)))
27 : : "i" (offsetof(struct user_context, reg)))
31 : : "i" (offsetof(struct frv_frame0, reg)))
/linux-4.4.14/drivers/scsi/esas2r/
Desas2r_vda.c136 - offsetof(struct atto_ioctl_vda, data) in esas2r_process_vda_ioctl()
137 + offsetof(struct atto_ioctl_vda, cmd) in esas2r_process_vda_ioctl()
138 + offsetof(struct atto_ioctl_vda_mgt_cmd, in esas2r_process_vda_ioctl()
153 (u8)offsetof(struct atto_vda_mgmt_req, in esas2r_process_vda_ioctl()
362 vrq->sg_list_offset = (u8)offsetof(struct atto_vda_flash_req, in esas2r_build_flash_req()
393 vrq->sg_list_offset = (u8)offsetof( in esas2r_build_mgt_req()
401 vrq->sg_list_offset = (u8)offsetof( in esas2r_build_mgt_req()
432 (u8)offsetof(struct atto_vda_ae_req, sge); in esas2r_build_ae_req()
438 vrq->sg_list_offset = (u8)offsetof(struct atto_vda_ae_req, in esas2r_build_ae_req()
461 vrq->sg_list_offset = (u8)offsetof(struct atto_vda_cli_req, sge); in esas2r_build_cli_req()
[all …]
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/
Dlibcfs_mem.c61 LIBCFS_FREE(arr, offsetof(struct cfs_var_array, in cfs_percpt_free()
86 LIBCFS_ALLOC(arr, offsetof(struct cfs_var_array, va_ptrs[count])); in cfs_percpt_alloc()
168 LIBCFS_FREE(arr, offsetof(struct cfs_var_array, in cfs_array_free()
184 LIBCFS_ALLOC(arr, offsetof(struct cfs_var_array, va_ptrs[count])); in cfs_array_alloc()
/linux-4.4.14/arch/sh/include/asm/
Dptrace.h31 #define REG_OFFSET_NAME(r) {.name = #r, .offset = offsetof(struct pt_regs, r)}
33 {.name = __stringify(r##num), .offset = offsetof(struct pt_regs, regs[num])}
35 {.name = __stringify(tr##num), .offset = offsetof(struct pt_regs, tregs[num])}
Dptrace_32.h7 #define MAX_REG_OFFSET offsetof(struct pt_regs, tra)
Dptrace_64.h7 #define MAX_REG_OFFSET offsetof(struct pt_regs, tregs[7])
/linux-4.4.14/tools/lguest/
Dlguest.c1518 #define getreg(name) getreg_off(offsetof(struct user_regs_struct, name))
1520 setreg_off(offsetof(struct user_regs_struct, name), (val))
1785 size_t off = offsetof(struct virtio_pci_common_cfg, queue_size); in restore_vq_config()
1883 case offsetof(struct virtio_pci_mmio, cfg.device_feature_select): in emulate_mmio_write()
1898 case offsetof(struct virtio_pci_mmio, cfg.guest_feature_select): in emulate_mmio_write()
1902 case offsetof(struct virtio_pci_mmio, cfg.guest_feature): in emulate_mmio_write()
1921 case offsetof(struct virtio_pci_mmio, cfg.device_status): { in emulate_mmio_write()
2011 case offsetof(struct virtio_pci_mmio, cfg.queue_select): in emulate_mmio_write()
2030 case offsetof(struct virtio_pci_mmio, cfg.queue_size): in emulate_mmio_write()
2042 case offsetof(struct virtio_pci_mmio, cfg.queue_msix_vector): in emulate_mmio_write()
[all …]
/linux-4.4.14/arch/mips/sgi-ip32/
Dip32-platform.c18 #define MACEISA_SERIAL1_OFFS offsetof(struct sgi_mace, isa.serial1)
19 #define MACEISA_SERIAL2_OFFS offsetof(struct sgi_mace, isa.serial2)
95 #define MACE_RTC_RES_START (MACE_BASE + offsetof(struct sgi_mace, isa.rtc))
/linux-4.4.14/drivers/edac/
Dcell_edac.c256 BUILD_BUG_ON(offsetof(struct cbe_mic_tm_regs, in cell_edac_init()
258 BUILD_BUG_ON(offsetof(struct cbe_mic_tm_regs, in cell_edac_init()
260 BUILD_BUG_ON(offsetof(struct cbe_mic_tm_regs, in cell_edac_init()
262 BUILD_BUG_ON(offsetof(struct cbe_mic_tm_regs, in cell_edac_init()
264 BUILD_BUG_ON(offsetof(struct cbe_mic_tm_regs, in cell_edac_init()
266 BUILD_BUG_ON(offsetof(struct cbe_mic_tm_regs, in cell_edac_init()
/linux-4.4.14/kernel/trace/
Dtrace_export.c77 offsetof(typeof(field), item), \
86 offsetof(typeof(field), \
99 offsetof(typeof(field), item), \
110 offsetof(typeof(field), \
120 offsetof(typeof(field), item), \
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ring.c521 static int amdgpu_gfx_index = offsetof(struct amdgpu_device, gfx.gfx_ring[0]);
522 static int cayman_cp1_index = offsetof(struct amdgpu_device, gfx.compute_ring[0]);
523 static int cayman_cp2_index = offsetof(struct amdgpu_device, gfx.compute_ring[1]);
524 static int amdgpu_dma1_index = offsetof(struct amdgpu_device, sdma.instance[0].ring);
525 static int amdgpu_dma2_index = offsetof(struct amdgpu_device, sdma.instance[1].ring);
526 static int r600_uvd_index = offsetof(struct amdgpu_device, uvd.ring);
527 static int si_vce1_index = offsetof(struct amdgpu_device, vce.ring[0]);
528 static int si_vce2_index = offsetof(struct amdgpu_device, vce.ring[1]);
Dkv_dpm.c594 offsetof(SMU7_Firmware_Header, DpmTable), in kv_process_firmware_header()
601 offsetof(SMU7_Firmware_Header, SoftRegisters), in kv_process_firmware_header()
619 offsetof(SMU7_Fusion_DpmTable, GraphicsVoltageChangeEnable), in kv_enable_dpm_voltage_scaling()
635 offsetof(SMU7_Fusion_DpmTable, GraphicsInterval), in kv_set_dpm_interval()
649 offsetof(SMU7_Fusion_DpmTable, GraphicsBootLevel), in kv_set_dpm_boot_state()
796 offsetof(SMU7_Fusion_DpmTable, LowSclkInterruptT), in kv_update_sclk_t()
845 offsetof(SMU7_Fusion_DpmTable, GraphicsThermThrottleEnable), in kv_enable_auto_thermal_throttling()
859 offsetof(SMU7_Fusion_DpmTable, GraphicsLevel), in kv_upload_dpm_settings()
869 offsetof(SMU7_Fusion_DpmTable, GraphicsDpmLevelCount), in kv_upload_dpm_settings()
950 offsetof(SMU7_Fusion_DpmTable, UvdLevelCount), in kv_populate_uvd_table()
[all …]
/linux-4.4.14/fs/hfsplus/
Dxattr.c369 offsetof(struct hfsplus_cat_folder, flags)); in __hfsplus_setxattr()
374 offsetof(struct hfsplus_cat_folder, flags), in __hfsplus_setxattr()
380 offsetof(struct hfsplus_cat_file, flags)); in __hfsplus_setxattr()
385 offsetof(struct hfsplus_cat_file, flags), in __hfsplus_setxattr()
475 offsetof(struct hfsplus_cat_folder, user_info), in hfsplus_getxattr_finder_info()
482 offsetof(struct hfsplus_cat_file, user_info), in hfsplus_getxattr_finder_info()
547 offsetof(struct hfsplus_attr_inline_data, in __hfsplus_getxattr()
567 offsetof(struct hfsplus_attr_inline_data, in __hfsplus_getxattr()
646 offsetof(struct hfsplus_cat_folder, user_info), in hfsplus_listxattr_finder_info()
653 offsetof(struct hfsplus_cat_file, user_info), in hfsplus_listxattr_finder_info()
[all …]
Dattributes.c76 cpu_to_be16(offsetof(struct hfsplus_attr_key, key_name) + in hfsplus_attr_build_key()
128 return offsetof(struct hfsplus_attr_inline_data, raw_bytes) + in hfsplus_attr_build_record()
268 offsetof(struct hfsplus_attr_key, cnid), in __hfsplus_delete_attr()
/linux-4.4.14/scripts/kconfig/
Dlist.h8 #undef offsetof
9 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) macro
20 (type *)( (char *)__mptr - offsetof(type,member) );})
/linux-4.4.14/tools/include/linux/
Dkernel.h14 #ifndef offsetof
15 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) macro
28 (type *)((char *)__mptr - offsetof(type, member)); })
/linux-4.4.14/arch/score/kernel/
Dptrace.c47 0, offsetof(struct pt_regs, regs)); in genregs_get()
52 offsetof(struct pt_regs, regs), in genregs_get()
53 offsetof(struct pt_regs, cp0_condition)); in genregs_get()
75 0, offsetof(struct pt_regs, regs)); in genregs_set()
80 offsetof(struct pt_regs, regs), in genregs_set()
81 offsetof(struct pt_regs, cp0_condition)); in genregs_set()
/linux-4.4.14/drivers/net/ethernet/altera/
Daltera_msgdmahw.h149 #define msgdma_respoffs(a) (offsetof(struct msgdma_response, a))
150 #define msgdma_csroffs(a) (offsetof(struct msgdma_csr, a))
151 #define msgdma_descroffs(a) (offsetof(struct msgdma_extended_desc, a))
Daltera_sgdmahw.h105 #define sgdma_csroffs(a) (offsetof(struct sgdma_csr, a))
106 #define sgdma_descroffs(a) (offsetof(struct sgdma_descrip, a))
/linux-4.4.14/drivers/net/ethernet/ibm/ehea/
Dehea_hw.h37 #define QPTEMM_OFFSET(x) offsetof(struct ehea_qptemm, x)
99 #define MRMWMM_OFFSET(x) offsetof(struct ehea_mrmwmm, x)
114 #define QPEDMM_OFFSET(x) offsetof(struct ehea_qpedmm, x)
155 #define CQTEMM_OFFSET(x) offsetof(struct ehea_cqtemm, x)
174 #define EQTEMM_OFFSET(x) offsetof(struct ehea_eqtemm, x)
/linux-4.4.14/fs/xfs/libxfs/
Dxfs_da_format.h91 #define XFS_DA3_NODE_CRC_OFF (offsetof(struct xfs_da3_node_hdr, info.crc))
370 #define XFS_DIR3_DATA_CRC_OFF offsetof(struct xfs_dir3_data_hdr, hdr.crc)
504 #define XFS_DIR3_LEAF_CRC_OFF offsetof(struct xfs_dir3_leaf_hdr, info.crc)
552 #define XFS_DIR3_FREE_CRC_OFF offsetof(struct xfs_dir3_free, hdr.hdr.crc)
710 #define XFS_ATTR3_LEAF_CRC_OFF (offsetof(struct xfs_attr3_leaf_hdr, info.crc))
874 #define XFS_ATTR3_RMT_CRC_OFF offsetof(struct xfs_attr3_rmt_hdr, rm_crc)
Dxfs_format.h190 #define XFS_SB_CRC_OFF offsetof(struct xfs_sb, sb_crc)
652 #define XFS_AGF_CRC_OFF offsetof(struct xfs_agf, agf_crc)
734 #define XFS_AGI_CRC_OFF offsetof(struct xfs_agi, agi_crc)
791 #define XFS_AGFL_CRC_OFF offsetof(struct xfs_agfl, agfl_crc)
885 #define XFS_DINODE_CRC_OFF offsetof(struct xfs_dinode, di_crc)
897 return offsetof(struct xfs_dinode, di_crc); in xfs_dinode_size()
1154 #define XFS_DQUOT_CRC_OFF offsetof(struct xfs_dqblk, dd_crc)
1172 #define XFS_SYMLINK_CRC_OFF offsetof(struct xfs_dsymlink_hdr, sl_crc)
1468 offsetof(struct xfs_btree_block, bb_u.s.bb_crc)
1470 offsetof(struct xfs_btree_block, bb_u.l.bb_crc)
Dxfs_btree.c1381 offsetof(struct xfs_btree_block, bb_magic), in xfs_btree_log_block()
1382 offsetof(struct xfs_btree_block, bb_level), in xfs_btree_log_block()
1383 offsetof(struct xfs_btree_block, bb_numrecs), in xfs_btree_log_block()
1384 offsetof(struct xfs_btree_block, bb_u.s.bb_leftsib), in xfs_btree_log_block()
1385 offsetof(struct xfs_btree_block, bb_u.s.bb_rightsib), in xfs_btree_log_block()
1386 offsetof(struct xfs_btree_block, bb_u.s.bb_blkno), in xfs_btree_log_block()
1387 offsetof(struct xfs_btree_block, bb_u.s.bb_lsn), in xfs_btree_log_block()
1388 offsetof(struct xfs_btree_block, bb_u.s.bb_uuid), in xfs_btree_log_block()
1389 offsetof(struct xfs_btree_block, bb_u.s.bb_owner), in xfs_btree_log_block()
1390 offsetof(struct xfs_btree_block, bb_u.s.bb_crc), in xfs_btree_log_block()
[all …]
Dxfs_ialloc.c2436 offsetof(xfs_agi_t, agi_magicnum), in xfs_ialloc_log_agi()
2437 offsetof(xfs_agi_t, agi_versionnum), in xfs_ialloc_log_agi()
2438 offsetof(xfs_agi_t, agi_seqno), in xfs_ialloc_log_agi()
2439 offsetof(xfs_agi_t, agi_length), in xfs_ialloc_log_agi()
2440 offsetof(xfs_agi_t, agi_count), in xfs_ialloc_log_agi()
2441 offsetof(xfs_agi_t, agi_root), in xfs_ialloc_log_agi()
2442 offsetof(xfs_agi_t, agi_level), in xfs_ialloc_log_agi()
2443 offsetof(xfs_agi_t, agi_freecount), in xfs_ialloc_log_agi()
2444 offsetof(xfs_agi_t, agi_newino), in xfs_ialloc_log_agi()
2445 offsetof(xfs_agi_t, agi_dirino), in xfs_ialloc_log_agi()
[all …]
/linux-4.4.14/net/ipv4/
Dinet_diag.c321 BUILD_BUG_ON(offsetof(struct inet_request_sock, ir_cookie) != in inet_req_diag_fill()
322 offsetof(struct sock, sk_cookie)); in inet_req_diag_fill()
709 BUILD_BUG_ON(offsetof(struct inet_timewait_sock, tw_family) != in twsk_build_assert()
710 offsetof(struct sock, sk_family)); in twsk_build_assert()
712 BUILD_BUG_ON(offsetof(struct inet_timewait_sock, tw_num) != in twsk_build_assert()
713 offsetof(struct inet_sock, inet_num)); in twsk_build_assert()
715 BUILD_BUG_ON(offsetof(struct inet_timewait_sock, tw_dport) != in twsk_build_assert()
716 offsetof(struct inet_sock, inet_dport)); in twsk_build_assert()
718 BUILD_BUG_ON(offsetof(struct inet_timewait_sock, tw_rcv_saddr) != in twsk_build_assert()
719 offsetof(struct inet_sock, inet_rcv_saddr)); in twsk_build_assert()
[all …]
Dxfrm4_mode_transport.c28 offsetof(struct iphdr, protocol); in xfrm4_transport_output()
/linux-4.4.14/samples/seccomp/
Ddropper.c32 (offsetof(struct seccomp_data, arch))), in install_filter()
35 (offsetof(struct seccomp_data, nr))), in install_filter()
Dbpf-helper.h65 #define LO_ARG(idx) offsetof(struct seccomp_data, args[(idx)])
67 #define LO_ARG(idx) offsetof(struct seccomp_data, args[(idx)]) + sizeof(__u32)
89 #define HI_ARG(idx) offsetof(struct seccomp_data, args[(idx)]) + sizeof(__u32)
92 #define HI_ARG(idx) offsetof(struct seccomp_data, args[(idx)])
241 offsetof(struct seccomp_data, nr))
Dbpf-direct.c30 #define syscall_arg(_n) (offsetof(struct seccomp_data, args[_n]))
31 #define syscall_nr (offsetof(struct seccomp_data, nr))
/linux-4.4.14/drivers/scsi/be2iscsi/
Dbe_mgmt.c1584 params->dw[offsetof(struct amap_beiscsi_offload_params, in beiscsi_offload_cxn_v0()
1591 params->dw[offsetof(struct amap_beiscsi_offload_params, in beiscsi_offload_cxn_v0()
1594 (params->dw[offsetof(struct amap_beiscsi_offload_params, in beiscsi_offload_cxn_v0()
1597 (params->dw[offsetof(struct amap_beiscsi_offload_params, in beiscsi_offload_cxn_v0()
1600 (params->dw[offsetof(struct amap_beiscsi_offload_params, in beiscsi_offload_cxn_v0()
1603 (params->dw[offsetof(struct amap_beiscsi_offload_params, in beiscsi_offload_cxn_v0()
1606 (params->dw[offsetof(struct amap_beiscsi_offload_params, in beiscsi_offload_cxn_v0()
1610 (params->dw[offsetof(struct amap_beiscsi_offload_params, in beiscsi_offload_cxn_v0()
1616 max_burst_length, pwrb, params->dw[offsetof in beiscsi_offload_cxn_v0()
1656 max_burst_length, pwrb, params->dw[offsetof in beiscsi_offload_cxn_v2()
[all …]
Dbe.h180 offsetof(_struct, field)/32, \
193 offsetof(_struct, field)/32, \
/linux-4.4.14/drivers/vhost/
Dvringh.c668 BUILD_BUG_ON(offsetof(struct vringh_kiov, iov) != in vringh_getdesc_user()
669 offsetof(struct vringh_iov, iov)); in vringh_getdesc_user()
670 BUILD_BUG_ON(offsetof(struct vringh_kiov, i) != in vringh_getdesc_user()
671 offsetof(struct vringh_iov, i)); in vringh_getdesc_user()
672 BUILD_BUG_ON(offsetof(struct vringh_kiov, used) != in vringh_getdesc_user()
673 offsetof(struct vringh_iov, used)); in vringh_getdesc_user()
674 BUILD_BUG_ON(offsetof(struct vringh_kiov, max_num) != in vringh_getdesc_user()
675 offsetof(struct vringh_iov, max_num)); in vringh_getdesc_user()
677 BUILD_BUG_ON(offsetof(struct iovec, iov_base) != in vringh_getdesc_user()
678 offsetof(struct kvec, iov_base)); in vringh_getdesc_user()
[all …]
/linux-4.4.14/drivers/staging/rdma/ehca/
Dhipz_hw.h168 #define QPTEMM_OFFSET(x) offsetof(struct hipz_qptemm, x)
190 #define MRMWMM_OFFSET(x) offsetof(struct hipz_mrmwmm, x)
241 #define QPEDMM_OFFSET(x) offsetof(struct hipz_qpedmm, x)
271 #define CQTEMM_OFFSET(x) offsetof(struct hipz_cqtemm, x)
296 #define EQTEMM_OFFSET(x) offsetof(struct hipz_eqtemm, x)
/linux-4.4.14/drivers/media/platform/omap3isp/
Disppreview.c758 offsetof(struct prev_params, luma),
760 offsetof(struct omap3isp_prev_update_config, luma),
767 offsetof(struct prev_params, hmed),
769 offsetof(struct omap3isp_prev_update_config, hmed),
773 offsetof(struct prev_params, cfa),
775 offsetof(struct omap3isp_prev_update_config, cfa),
779 offsetof(struct prev_params, csup),
781 offsetof(struct omap3isp_prev_update_config, csup),
785 offsetof(struct prev_params, wbal),
787 offsetof(struct omap3isp_prev_update_config, wbal),
[all …]
/linux-4.4.14/drivers/atm/
Dambassador.c582 wr_mem (dev, offsetof(amb_mem, mb.adapter.cmd_address), virt_to_bus (ptrs->in)); in command_do()
645 wr_mem (dev, offsetof(amb_mem, mb.adapter.tx_address), virt_to_bus (txq->in.ptr)); in tx_give()
646 wr_mem (dev, offsetof(amb_mem, doorbell), TX_FRAME); in tx_give()
702 wr_mem (dev, offsetof(amb_mem, mb.adapter.rx_address[pool]), virt_to_bus (rxq->in.ptr)); in rx_give()
831 wr_plain (dev, offsetof(amb_mem, interrupt_control), in interrupts_on()
832 rd_plain (dev, offsetof(amb_mem, interrupt_control)) in interrupts_on()
839 wr_plain (dev, offsetof(amb_mem, interrupt_control), in interrupts_off()
840 rd_plain (dev, offsetof(amb_mem, interrupt_control)) in interrupts_off()
852 u32 interrupt = rd_plain (dev, offsetof(amb_mem, interrupt)); in interrupt_handler()
862 wr_plain (dev, offsetof(amb_mem, interrupt), -1); in interrupt_handler()
[all …]
/linux-4.4.14/drivers/macintosh/
Drack-meter.c177 offsetof(struct rackmeter_dma, mark)); in rackmeter_setup_dbdma()
179 offsetof(struct rackmeter_dma, buf1)); in rackmeter_setup_dbdma()
181 offsetof(struct rackmeter_dma, buf2)); in rackmeter_setup_dbdma()
188 offsetof(struct rackmeter_dma, mark)); in rackmeter_setup_dbdma()
195 offsetof(struct rackmeter_dma, buf1)); in rackmeter_setup_dbdma()
201 offsetof(struct rackmeter_dma, mark)); in rackmeter_setup_dbdma()
208 offsetof(struct rackmeter_dma, buf2)); in rackmeter_setup_dbdma()
/linux-4.4.14/drivers/parisc/
Dhppb.c37 #define IO_IO_LOW offsetof(struct bc_module, io_io_low)
38 #define IO_IO_HIGH offsetof(struct bc_module, io_io_high)
/linux-4.4.14/drivers/net/ethernet/cisco/enic/
Dvnic_vic.c58 if (ntohl(vp->length) + offsetof(struct vic_provinfo_tlv, value) + in vic_provinfo_add_tlv()
71 offsetof(struct vic_provinfo_tlv, value) + length); in vic_provinfo_add_tlv()
/linux-4.4.14/arch/arm/net/
Dbpf_jit_32.c216 off = offsetof(struct sk_buff, data); in build_prologue()
219 off = offsetof(struct sk_buff, len); in build_prologue()
221 off = offsetof(struct sk_buff, data_len); in build_prologue()
541 offsetof(struct sk_buff, len)), ctx); in build_body()
625 offsetof(struct sk_buff, len)), ctx); in build_body()
861 off = offsetof(struct sk_buff, protocol); in build_body()
870 off = offsetof(struct thread_info, cpu); in build_body()
878 off = offsetof(struct sk_buff, dev); in build_body()
890 off = offsetof(struct net_device, ifindex); in build_body()
900 off = offsetof(struct net_device, type); in build_body()
[all …]
/linux-4.4.14/arch/x86/lguest/
Dboot.c1211 cfg_offset + offsetof(struct virtio_pci_cap, bar), in set_cfg_window()
1214 cfg_offset + offsetof(struct virtio_pci_cap, length), in set_cfg_window()
1217 cfg_offset + offsetof(struct virtio_pci_cap, offset), in set_cfg_window()
1264 cap + offsetof(struct virtio_pci_cap, cfg_type)); in probe_pci_console()
1266 cap + offsetof(struct virtio_pci_cap, bar)); in probe_pci_console()
1268 cap + offsetof(struct virtio_pci_cap, offset)); in probe_pci_console()
1270 cap + offsetof(struct virtio_pci_cap, length)); in probe_pci_console()
1300 if (device_len < (offsetof(struct virtio_console_config, emerg_wr) in probe_pci_console()
1330 + offsetof(struct virtio_console_config, emerg_wr), in early_put_chars()
/linux-4.4.14/drivers/staging/lustre/lnet/klnds/socklnd/
Dsocklnd_proto.c285 nob = offsetof(ksock_msg_t, ksm_u); in ksocknal_match_tx()
323 nob = offsetof(ksock_msg_t, ksm_u); in ksocknal_match_tx_v3()
461 CLASSERT(sizeof(lnet_magicversion_t) == offsetof(lnet_hdr_t, src_nid)); in ksocknal_send_hello_v1()
545 rc = lnet_sock_write(sock, hello, offsetof(ksock_hello_msg_t, kshm_ips), in ksocknal_send_hello_v2()
584 sizeof(*hdr) - offsetof(lnet_hdr_t, src_nid), in ksocknal_recv_hello_v1()
657 offsetof(ksock_hello_msg_t, kshm_ips) - in ksocknal_recv_hello_v2()
658 offsetof(ksock_hello_msg_t, kshm_src_nid), in ksocknal_recv_hello_v2()
737 tx->tx_iov[0].iov_len = offsetof(ksock_msg_t, ksm_u.lnetmsg.ksnm_hdr); in ksocknal_pack_msg_v2()
738 tx->tx_resid = tx->tx_nob = offsetof(ksock_msg_t, ksm_u.lnetmsg.ksnm_hdr); in ksocknal_pack_msg_v2()
/linux-4.4.14/drivers/net/wireless/mwifiex/
Dutil.h40 #define item_addr(n) (offsetof(struct mwifiex_debug_info, n))
44 #define adapter_item_addr(n) (offsetof(struct mwifiex_adapter, n))
/linux-4.4.14/tools/perf/arch/x86/util/
Ddwarf-regs.c59 # define REG_OFFSET_NAME_64(n, r) {.name = n, .offset = offsetof(struct pt_regs, r)}
63 # define REG_OFFSET_NAME_32(n, r) {.name = n, .offset = offsetof(struct pt_regs, r)}
/linux-4.4.14/arch/mips/net/
Dbpf_jit.c615 emit_load(r_skb_len, r_skb, offsetof(struct sk_buff, len), in build_prologue()
617 emit_load(r_tmp, r_skb, offsetof(struct sk_buff, data_len), in build_prologue()
621 offsetof(struct sk_buff, data), ctx); in build_prologue()
682 off = offsetof(struct sk_buff, len); in build_body()
749 off = offsetof(struct sk_buff, len); in build_body()
1085 off = offsetof(struct sk_buff, protocol); in build_body()
1110 off = offsetof(struct thread_info, cpu); in build_body()
1117 off = offsetof(struct sk_buff, dev); in build_body()
1126 off = offsetof(struct net_device, ifindex); in build_body()
1132 off = offsetof(struct sk_buff, mark); in build_body()
[all …]
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x.h199 offsetof(struct shmem_region, field))
204 offsetof(struct shmem2_region, field))
208 offsetof(struct mf_cfg, field))
210 offsetof(struct mf2_cfg, field))
219 offsetof(struct shmem2_region, field)))
500 (offsetof(struct bnx2x_eth_q_stats, stat_name) / 4)
882 #define SKB_CS_OFF(skb) (offsetof(struct tcphdr, check) - \
924 offsetof(struct cstorm_status_block_u, func)
926 offsetof(struct cstorm_status_block_c, func)
1133 (offsetof(struct bnx2x_eth_stats, stat_name) / 4)
[all …]
Dbnx2x_stats.c63 res = offsetof(struct host_port_stats, not_used) + 4; in bnx2x_get_port_stats_dma_len()
67 res += offsetof(struct host_port_stats, in bnx2x_get_port_stats_dma_len()
69 offsetof(struct host_port_stats, in bnx2x_get_port_stats_dma_len()
342 offsetof(struct emac_stats, rx_stat_falsecarriererrors)); in bnx2x_port_stats_init()
344 offsetof(struct emac_stats, rx_stat_falsecarriererrors)); in bnx2x_port_stats_init()
357 offsetof(struct emac_stats, tx_stat_ifhcoutoctets)); in bnx2x_port_stats_init()
359 offsetof(struct emac_stats, tx_stat_ifhcoutoctets)); in bnx2x_port_stats_init()
447 offsetof(struct nig_stats, egress_mac_pkt0_lo)); in bnx2x_port_stats_init()
449 offsetof(struct nig_stats, egress_mac_pkt0_lo)); in bnx2x_port_stats_init()
461 offsetof(struct nig_stats, egress_mac_pkt1_lo)); in bnx2x_port_stats_init()
[all …]
Dbnx2x_link.c261 offsetof(struct shmem_lfa, additional_config)); in bnx2x_check_lfa()
269 offsetof(struct shmem_lfa, additional_config), in bnx2x_check_lfa()
276 offsetof(struct shmem_region, in bnx2x_check_lfa()
305 offsetof(struct shmem_lfa, req_duplex)); in bnx2x_check_lfa()
314 offsetof(struct shmem_lfa, req_flow_ctrl)); in bnx2x_check_lfa()
323 offsetof(struct shmem_lfa, req_line_speed)); in bnx2x_check_lfa()
333 offsetof(struct shmem_lfa, in bnx2x_check_lfa()
346 offsetof(struct shmem_lfa, additional_config)) & in bnx2x_check_lfa()
356 offsetof(struct shmem2_region, in bnx2x_check_lfa()
2114 offsetof(struct shmem_region, in bnx2x_update_mng()
[all …]
/linux-4.4.14/tools/usb/usbip/libsrc/
Dlist.h123 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) macro
134 (type *)( (char *)__mptr - offsetof(type,member) );})
/linux-4.4.14/arch/powerpc/include/asm/
Dhw_irq.h51 : "i" (offsetof(struct paca_struct, soft_enabled))); in arch_local_save_flags()
63 : "i" (offsetof(struct paca_struct, soft_enabled)) in arch_local_irq_disable()
Dcurrent.h24 : "i" (offsetof(struct paca_struct, __current))); in get_current()
/linux-4.4.14/arch/arm64/crypto/
Dsha1-ce-glue.c56 offsetof(struct sha1_ce_state, sst.count)); in sha1_ce_finup()
58 offsetof(struct sha1_ce_state, finalize)); in sha1_ce_finup()
Dsha2-ce-glue.c56 offsetof(struct sha256_ce_state, sst.count)); in sha256_ce_finup()
58 offsetof(struct sha256_ce_state, finalize)); in sha256_ce_finup()
/linux-4.4.14/net/mac80211/
Dkey.c907 BUILD_BUG_ON(offsetof(typeof(*seq), ccmp) != in ieee80211_get_key_tx_seq()
908 offsetof(typeof(*seq), aes_cmac)); in ieee80211_get_key_tx_seq()
911 BUILD_BUG_ON(offsetof(typeof(*seq), ccmp) != in ieee80211_get_key_tx_seq()
912 offsetof(typeof(*seq), aes_gmac)); in ieee80211_get_key_tx_seq()
915 BUILD_BUG_ON(offsetof(typeof(*seq), ccmp) != in ieee80211_get_key_tx_seq()
916 offsetof(typeof(*seq), gcmp)); in ieee80211_get_key_tx_seq()
1001 BUILD_BUG_ON(offsetof(typeof(*seq), ccmp) != in ieee80211_set_key_tx_seq()
1002 offsetof(typeof(*seq), aes_cmac)); in ieee80211_set_key_tx_seq()
1005 BUILD_BUG_ON(offsetof(typeof(*seq), ccmp) != in ieee80211_set_key_tx_seq()
1006 offsetof(typeof(*seq), aes_gmac)); in ieee80211_set_key_tx_seq()
[all …]
/linux-4.4.14/drivers/bluetooth/
Dbtwilink.c129 .offset_len_in_hdr = offsetof(struct hci_event_hdr, plen),
136 .offset_len_in_hdr = offsetof(struct hci_acl_hdr, dlen),
143 .offset_len_in_hdr = offsetof(struct hci_sco_hdr, dlen),
/linux-4.4.14/drivers/net/ethernet/broadcom/
Dcnic.h386 offsetof(struct shmem_region, field))
389 offsetof(struct shmem2_region, field))
394 offsetof(struct shmem2_region, field)))
397 ((base) + offsetof(struct mf_cfg, field))
Dbcmsysport.h580 .stat_offset = offsetof(struct net_device_stats, m), \
587 .stat_offset = offsetof(struct bcm_sysport_priv, m), \
599 .stat_offset = offsetof(struct bcm_sysport_priv, m), \
607 .stat_offset = offsetof(struct bcm_sysport_priv, m), \
/linux-4.4.14/drivers/gpu/drm/radeon/
Dkv_dpm.c461 offsetof(SMU7_Firmware_Header, DpmTable), in kv_process_firmware_header()
468 offsetof(SMU7_Firmware_Header, SoftRegisters), in kv_process_firmware_header()
486 offsetof(SMU7_Fusion_DpmTable, GraphicsVoltageChangeEnable), in kv_enable_dpm_voltage_scaling()
502 offsetof(SMU7_Fusion_DpmTable, GraphicsInterval), in kv_set_dpm_interval()
516 offsetof(SMU7_Fusion_DpmTable, GraphicsBootLevel), in kv_set_dpm_boot_state()
707 offsetof(SMU7_Fusion_DpmTable, LowSclkInterruptT), in kv_update_sclk_t()
756 offsetof(SMU7_Fusion_DpmTable, GraphicsThermThrottleEnable), in kv_enable_auto_thermal_throttling()
770 offsetof(SMU7_Fusion_DpmTable, GraphicsLevel), in kv_upload_dpm_settings()
780 offsetof(SMU7_Fusion_DpmTable, GraphicsDpmLevelCount), in kv_upload_dpm_settings()
861 offsetof(SMU7_Fusion_DpmTable, UvdLevelCount), in kv_populate_uvd_table()
[all …]
/linux-4.4.14/drivers/net/ethernet/amd/
Dariadne.c132 offsetof(struct lancedata, tx_buff[i])); in ariadne_init_ring()
134 offsetof(struct lancedata, tx_buff[i])) | in ariadne_init_ring()
148 offsetof(struct lancedata, rx_buff[i])); in ariadne_init_ring()
150 offsetof(struct lancedata, rx_buff[i])) | in ariadne_init_ring()
456 lance->RDP = swloww(ARIADNE_RAM + offsetof(struct lancedata, tx_ring)); in ariadne_open()
458 lance->RDP = swhighw(ARIADNE_RAM + offsetof(struct lancedata, tx_ring)); in ariadne_open()
462 lance->RDP = swloww(ARIADNE_RAM + offsetof(struct lancedata, rx_ring)); in ariadne_open()
464 lance->RDP = swhighw(ARIADNE_RAM + offsetof(struct lancedata, rx_ring)); in ariadne_open()
/linux-4.4.14/fs/logfs/
Dlogfs_abi.h371 (offsetof(struct logfs_disk_inode, di_data) / sizeof(__be64))
373 (offsetof(struct logfs_disk_inode, di_used_bytes) / sizeof(__be64))
375 (offsetof(struct logfs_disk_inode, di_size) / sizeof(__be64))
/linux-4.4.14/tools/testing/selftests/breakpoints/
Dbreakpoint_test.c44 offsetof(struct user, u_debugreg[n]), addr); in set_breakpoint_addr()
87 offsetof(struct user, u_debugreg[7]), 0); in toggle_breakpoint()
107 offsetof(struct user, u_debugreg[7]), dr7); in toggle_breakpoint()
/linux-4.4.14/drivers/scsi/
Dncr53c8xx.h430 #define INB(r) INB_OFF (offsetof(struct ncr_reg,r))
431 #define INW(r) INW_OFF (offsetof(struct ncr_reg,r))
432 #define INL(r) INL_OFF (offsetof(struct ncr_reg,r))
434 #define OUTB(r, val) OUTB_OFF (offsetof(struct ncr_reg,r), (val))
435 #define OUTW(r, val) OUTW_OFF (offsetof(struct ncr_reg,r), (val))
436 #define OUTL(r, val) OUTL_OFF (offsetof(struct ncr_reg,r), (val))
910 #define REGJ(p,r) (offsetof(struct ncr_reg, p ## r))
/linux-4.4.14/fs/quota/
Dcompat.c88 offsetof(struct compat_fs_quota_stat, qs_uquota))) in sys32_quotactl()
108 offsetof(struct compat_fs_quota_stat, qs_incoredqs)) || in sys32_quotactl()
/linux-4.4.14/drivers/net/can/cc770/
Dcc770.h149 priv->read_reg(priv, offsetof(struct cc770_regs, member))
152 priv->write_reg(priv, offsetof(struct cc770_regs, member), value)
/linux-4.4.14/drivers/net/ethernet/qlogic/qed/
Dqed_mcp.c36 offsetof(struct public_drv_mb, _field), _val)
40 offsetof(struct public_drv_mb, _field))
380 offsetof(struct public_port, link_status)); in qed_mcp_handle_link_change()
385 offsetof(struct public_port, in qed_mcp_handle_link_change()
520 offsetof(struct public_drv_mb, union_data) + i, in qed_mcp_set_link()
631 offsetof(struct public_global, mfw_ver)); in qed_mcp_get_mfw_ver()
656 offsetof(struct public_port, media_type)); in qed_mcp_get_media_type()
Dqed_dev.c1091 offsetof(struct nvm_cfg1, glob) + in qed_hw_get_nvm_info()
1092 offsetof(struct nvm_cfg1_glob, pci_id); in qed_hw_get_nvm_info()
1097 offsetof(struct nvm_cfg1, glob) + in qed_hw_get_nvm_info()
1098 offsetof(struct nvm_cfg1_glob, core_cfg); in qed_hw_get_nvm_info()
1138 offsetof(struct nvm_cfg1, func[MCP_PF_ID(p_hwfn)]) + in qed_hw_get_nvm_info()
1139 offsetof(struct nvm_cfg1_func, device_id); in qed_hw_get_nvm_info()
1155 offsetof(struct nvm_cfg1, port[MFW_PORT(p_hwfn)]); in qed_hw_get_nvm_info()
1158 offsetof(struct nvm_cfg1_port, speed_cap_mask)); in qed_hw_get_nvm_info()
1167 offsetof(struct nvm_cfg1_port, link_settings)); in qed_hw_get_nvm_info()
1213 offsetof(struct nvm_cfg1, glob) + in qed_hw_get_nvm_info()
[all …]
/linux-4.4.14/net/rds/
Dbind.c46 .key_offset = offsetof(struct rds_sock, rs_bound_key),
47 .head_offset = offsetof(struct rds_sock, rs_bound_node),
/linux-4.4.14/arch/x86/um/shared/sysdep/
Dkernel-offsets.h13 DEFINE(sym, offsetof(struct str, mem));
/linux-4.4.14/net/xfrm/
Dxfrm_input.c136 offset = offsetof(struct ip_auth_hdr, spi); in xfrm_parse_spi()
137 offset_seq = offsetof(struct ip_auth_hdr, seq_no); in xfrm_parse_spi()
141 offset = offsetof(struct ip_esp_hdr, spi); in xfrm_parse_spi()
142 offset_seq = offsetof(struct ip_esp_hdr, seq_no); in xfrm_parse_spi()
/linux-4.4.14/net/ipv6/
Doutput_core.c51 offsetof(struct ipv6hdr, saddr), in ipv6_proxy_select_ident()
149 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr); in __ip6_local_out()
Dexthdrs_core.c90 start+offsetof(struct frag_hdr, in ipv6_skip_exthdr()
244 start+offsetof(struct frag_hdr, in ipv6_find_hdr()
/linux-4.4.14/include/scsi/
Dosd_sense.h251 #define OSD_CDB_OFFSET(F) offsetof(struct osd_cdb_head, F)
259 offsetof(struct osd_capability_head,
/linux-4.4.14/net/ipv6/netfilter/
Dip6t_NPT.c90 offsetof(struct ipv6hdr, saddr)); in ip6t_snpt_tg()
103 offsetof(struct ipv6hdr, daddr)); in ip6t_dnpt_tg()
/linux-4.4.14/drivers/video/fbdev/matrox/
Dmatroxfb_g450.c38 }, offsetof(struct matrox_fb_info, altout.tvo_params.brightness) },
43 }, offsetof(struct matrox_fb_info, altout.tvo_params.contrast) },
48 }, offsetof(struct matrox_fb_info, altout.tvo_params.saturation) },
53 }, offsetof(struct matrox_fb_info, altout.tvo_params.hue) },
58 }, offsetof(struct matrox_fb_info, altout.tvo_params.testout) },
Dmatroxfb_maven.c72 }, offsetof(struct matrox_fb_info, altout.tvo_params.brightness) },
77 }, offsetof(struct matrox_fb_info, altout.tvo_params.contrast) },
82 }, offsetof(struct matrox_fb_info, altout.tvo_params.saturation) },
87 }, offsetof(struct matrox_fb_info, altout.tvo_params.hue) },
92 }, offsetof(struct matrox_fb_info, altout.tvo_params.gamma) },
97 }, offsetof(struct matrox_fb_info, altout.tvo_params.testout) },
102 }, offsetof(struct matrox_fb_info, altout.tvo_params.deflicker) },
/linux-4.4.14/drivers/net/ethernet/nuvoton/
Dw90p910_ether.c309 offset = offsetof(struct tran_pdesc, desclist[0]); in w90p910_init_desc()
311 offset = offsetof(struct tran_pdesc, desclist[i + 1]); in w90p910_init_desc()
315 offsetof(struct tran_pdesc, tran_buf[i]); in w90p910_init_desc()
328 offset = offsetof(struct recv_pdesc, desclist[0]); in w90p910_init_desc()
330 offset = offsetof(struct recv_pdesc, desclist[i + 1]); in w90p910_init_desc()
335 offsetof(struct recv_pdesc, recv_buf[i]); in w90p910_init_desc()
665 offsetof(struct tran_pdesc, desclist[ether->finish_tx]); in w90p910_tx_interrupt()
687 offsetof(struct tran_pdesc, desclist[ether->finish_tx]); in w90p910_tx_interrupt()
721 offsetof(struct recv_pdesc, desclist[ether->cur_rx]); in netdev_rx()
/linux-4.4.14/tools/testing/selftests/seccomp/
Dseccomp_bpf.c91 #define syscall_arg(_n) (offsetof(struct seccomp_data, args[_n]))
93 #define syscall_arg(_n) (offsetof(struct seccomp_data, args[_n]) + sizeof(__u32))
410 offsetof(struct seccomp_data, nr)), in TEST_SIGNAL()
438 offsetof(struct seccomp_data, nr)), in TEST_SIGNAL()
478 offsetof(struct seccomp_data, nr)), in TEST_SIGNAL()
548 offsetof(struct seccomp_data, nr)), in TEST()
575 offsetof(struct seccomp_data, nr)), in TEST()
602 offsetof(struct seccomp_data, nr)), in TEST()
633 offsetof(struct seccomp_data, nr)), in FIXTURE_SETUP()
751 offsetof(struct seccomp_data, nr)), in FIXTURE_SETUP()
[all …]
/linux-4.4.14/arch/arm/probes/kprobes/
Dcore.c573 "J" (offsetof(struct pt_regs, ARM_sp)), in jprobe_return()
574 "J" (offsetof(struct pt_regs, ARM_pc)), in jprobe_return()
575 "J" (offsetof(struct pt_regs, ARM_cpsr)), in jprobe_return()
576 "J" (offsetof(struct pt_regs, ARM_lr)) in jprobe_return()
/linux-4.4.14/fs/freevxfs/
Dvxfs_dir.h83 #define VXFS_NAMEMIN offsetof(struct vxfs_direct, d_name)
/linux-4.4.14/drivers/net/ethernet/freescale/
Dfsl_pq_mdio.c329 .mii_offset = offsetof(struct fsl_pq_mdio, mii),
336 .mii_offset = offsetof(struct fsl_pq_mdio, mii),
343 .mii_offset = offsetof(struct fsl_pq_mdio, mii),
/linux-4.4.14/drivers/net/xen-netback/
Dinterface.c313 offsetof(struct xenvif_stats, rx_gso_checksum_fixup)
320 offsetof(struct xenvif_stats, tx_zerocopy_sent),
324 offsetof(struct xenvif_stats, tx_zerocopy_success),
328 offsetof(struct xenvif_stats, tx_zerocopy_fail)
335 offsetof(struct xenvif_stats, tx_frag_overflow)
/linux-4.4.14/drivers/s390/char/
Dsclp_diag.h27 (offsetof(struct sclp_diag_evbuf, mdd) + \
/linux-4.4.14/arch/mips/pci/
Dops-tx4927.c450 if (i == offsetof(struct tx4927_pcic_reg, g2pintack) in tx4927_dump_pcic_settings1()
451 || i == offsetof(struct tx4927_pcic_reg, g2pspc) in tx4927_dump_pcic_settings1()
452 || i == offsetof(struct tx4927_pcic_reg, g2pcfgadrs) in tx4927_dump_pcic_settings1()
453 || i == offsetof(struct tx4927_pcic_reg, g2pcfgdata)) { in tx4927_dump_pcic_settings1()
/linux-4.4.14/arch/powerpc/perf/
Dcallchain.c210 if (nip == fp + offsetof(struct signal_frame_64, tramp)) in is_sigreturn_64_address()
369 if (nip == fp + offsetof(struct signal_frame_32, mctx.mc_pad)) in is_sigreturn_32_address()
379 if (nip == fp + offsetof(struct rt_signal_frame_32, in is_rt_sigreturn_32_address()
/linux-4.4.14/arch/um/include/shared/
Dcommon-offsets.h20 DEFINE(crypto_tfm_ctx_offset, offsetof(struct crypto_tfm, __crt_ctx));
/linux-4.4.14/fs/cifs/
Dcifssmb.c826 param_offset = offsetof(struct smb_com_transaction2_spi_req, in CIFSPOSIXDelFile()
1042 param_offset = offsetof(struct smb_com_transaction2_spi_req, in CIFSPOSIXCreate()
1841 cpu_to_le16(offsetof(struct smb_com_write_req, Data) - 4); in CIFSSMBWrite()
2136 cpu_to_le16(offsetof(struct smb_com_write_req, Data) - 4); in cifs_async_writev()
2230 cpu_to_le16(offsetof(struct smb_com_write_req, Data) - 4); in CIFSSMBWrite2()
2429 param_offset = offsetof(struct smb_com_transaction2_sfi_req, Fid) - 4; in CIFSSMBPosixLock()
2681 param_offset = offsetof(struct smb_com_transaction2_sfi_req, Fid) - 4; in CIFSSMBRenameOpenFile()
2845 param_offset = offsetof(struct smb_com_transaction2_spi_req, in CIFSUnixCreateSymLink()
2933 param_offset = offsetof(struct smb_com_transaction2_spi_req, in CIFSUnixCreateHardLink()
3099 pSMB->ParameterOffset = cpu_to_le16(offsetof( in CIFSSMBUnixQuerySymLink()
[all …]
/linux-4.4.14/tools/lib/lockdep/uinclude/linux/
Dkernel.h13 (type *)((char *)__mptr - offsetof(type, member)); })
/linux-4.4.14/arch/arm/kvm/
Dguest.c32 #define VM_STAT(x) { #x, offsetof(struct kvm, stat.x), KVM_STAT_VM }
33 #define VCPU_STAT(x) { #x, offsetof(struct kvm_vcpu, stat.x), KVM_STAT_VCPU }
/linux-4.4.14/include/trace/
Dtrace_events.h360 offsetof(typeof(field), item), \
369 offsetof(typeof(field), item), \
387 offsetof(typeof(field), item), \
397 offsetof(typeof(field), __data_loc_##item), \
455 offsetof(typeof(*entry), __data); \
/linux-4.4.14/drivers/uwb/i1480/
Di1480-est.c43 .offset = 1 + offsetof(struct i1480_rceb, wParamLength),
/linux-4.4.14/arch/mips/math-emu/
Dme-debugfs.c42 offsetof(struct mips_fpu_emulator_stats, m) in debugfs_fpuemu()
/linux-4.4.14/arch/arm/crypto/
Dsha1_glue.c37 BUILD_BUG_ON(offsetof(struct sha1_state, state) != 0); in sha1_update_arm()
/linux-4.4.14/fs/btrfs/
Dctree.h392 (offsetof(struct btrfs_file_extent_item, disk_bytenr))
2306 offsetof(type, member), \
2312 offsetof(type, member), \
2342 return btrfs_get_##bits(eb, s, offsetof(type, member)); \
2348 btrfs_set_##bits(eb, s, offsetof(type, member), val); \
2354 return btrfs_get_token_##bits(eb, s, offsetof(type, member), token); \
2361 btrfs_set_token_##bits(eb, s, offsetof(type, member), val, token); \
2425 return (unsigned long)d + offsetof(struct btrfs_dev_item, uuid); in btrfs_device_uuid()
2430 return (unsigned long)d + offsetof(struct btrfs_dev_item, fsid); in btrfs_device_fsid()
2447 return (char *)s + offsetof(struct btrfs_stripe, dev_uuid); in btrfs_stripe_dev_uuid()
[all …]
/linux-4.4.14/drivers/dma/bestcomm/
Dfec.c128 offsetof(struct mpc52xx_sdma, tcr[tsk->tasknum]); in bcom_fec_rx_reset()
229 offsetof(struct mpc52xx_sdma, tcr[tsk->tasknum]); in bcom_fec_tx_reset()
/linux-4.4.14/drivers/gpu/drm/qxl/
Dqxl_image.c150 size = PAGE_SIZE - offsetof(struct qxl_data_chunk, data); in qxl_image_init_helper()
169 out_offset = offsetof(struct qxl_data_chunk, data) + i * chunk_stride; in qxl_image_init_helper()
/linux-4.4.14/drivers/net/ethernet/qlogic/qede/
Dqede_ethtool.c18 #define QEDE_STAT_OFFSET(stat_name) (offsetof(struct qede_stats, stat_name))
26 (offsetof(struct qede_rx_queue, stat_name))
114 (*((u64 *)(((char *)(dev)) + offsetof(struct qede_dev, stats) \
/linux-4.4.14/arch/x86/net/
Dbpf_jit_comp.c270 offsetof(struct bpf_array, map.max_entries)); in emit_bpf_tail_call()
289 offsetof(struct bpf_array, ptrs)); in emit_bpf_tail_call()
302 offsetof(struct bpf_prog, bpf_func)); in emit_bpf_tail_call()
328 EMIT3_off32(0x44, 0x8b, 0x8f, offsetof(struct sk_buff, len)); in emit_load_skb_data_hlen()
331 EMIT3_off32(0x44, 0x2b, 0x8f, offsetof(struct sk_buff, data_len)); in emit_load_skb_data_hlen()
334 EMIT3_off32(0x4c, 0x8b, 0x97, offsetof(struct sk_buff, data)); in emit_load_skb_data_hlen()
/linux-4.4.14/net/caif/
Dcfdbgl.c25 caif_assert(offsetof(struct cfsrvl, layer) == 0); in cfdbgl_create()

12345