Home
last modified time | relevance | path

Searched refs:field_offset (Results 1 – 14 of 14) sorted by relevance

/linux/include/rdma/
H A Diba.h56 #define _IBA_SET(field_struct, field_offset, field_mask, num_bits, ptr, value) \ argument
59 _iba_set##num_bits((void *)_ptr + (field_offset), field_mask, \
64 #define _IBA_GET_MEM_PTR(field_struct, field_offset, type, num_bits, ptr) \ argument
67 (type *)((void *)_ptr + (field_offset)); \
72 #define _IBA_SET_MEM(field_struct, field_offset, type, num_bits, ptr, in, \ argument
78 memcpy(_IBA_GET_MEM_PTR(field_struct, field_offset, \
84 #define _IBA_GET(field_struct, field_offset, field_mask, num_bits, ptr) \ argument
89 (field_offset))); \
93 #define _IBA_GET_MEM(field_struct, field_offset, type, num_bits, ptr, out, \ argument
100 _IBA_GET_MEM_PTR(field_struct, field_offset, \
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dctx_rewrite.c36 int field_offset; member
45 /* Pattern for BPF_LDX_MEM(field_sz, dst, ctx, field_offset) */
47 /* Pattern for BPF_STX_MEM(field_sz, ctx, src, field_offset) and
48 * BPF_ST_MEM (field_sz, ctx, src, field_offset)
51 /* Pattern for BPF_ST_MEM(field_sz, ctx, src, field_offset),
55 /* Pattern for BPF_STX_MEM (field_sz, ctx, src, field_offset),
64 .field_offset = offsetof(type, field), \
298 int btf_id, field_offset; in find_field_offset()
320 field_offset = find_field_offset_aux(btf, btf_id, field_str, 0); in find_field_offset()
321 if (field_offset < in find_field_offset()
299 int btf_id, field_offset; find_field_offset() local
539 int field_offset; match_pattern() local
586 int field_offset; match_pattern() local
[all...]
/linux/arch/x86/xen/
H A Dpmu.c31 #define field_offset(ctxt, field) ((void *)((uintptr_t)ctxt + \ macro
230 fix_counters = field_offset(ctxt, fixed_counters); in xen_intel_pmu_emulate()
234 arch_cntr_pair = field_offset(ctxt, arch_counters); in xen_intel_pmu_emulate()
238 arch_cntr_pair = field_offset(ctxt, arch_counters); in xen_intel_pmu_emulate()
280 ctrl_regs = field_offset(ctxt, ctrls); in xen_amd_pmu_emulate()
284 counter_regs = field_offset(ctxt, counters); in xen_amd_pmu_emulate()
332 counter_regs = field_offset(ctxt, counters); in xen_amd_read_pmc()
359 fixed_counters = field_offset(ctxt, fixed_counters); in xen_intel_read_pmc()
363 arch_cntr_pair = field_offset(ctxt, arch_counters); in xen_intel_read_pmc()
/linux/drivers/net/pse-pd/
H A Dtps23881.c93 * @param field_offset: The base bit offset to apply (e.g., 0 or 4).
97 static u16 tps23881_calc_val(u16 reg_val, u8 chan, u8 field_offset, in tps23881_calc_val() argument
103 return (reg_val >> field_offset) & field_mask; in tps23881_calc_val()
113 * @param field_offset: The base bit offset to apply (e.g., 0 or 4).
119 static u16 tps23881_set_val(u16 reg_val, u8 chan, u8 field_offset, in tps23881_set_val() argument
125 reg_val &= ~(field_mask << field_offset); in tps23881_set_val()
126 reg_val |= (field_val << field_offset); in tps23881_set_val()
128 reg_val &= ~(field_mask << (field_offset + 8)); in tps23881_set_val()
129 reg_val |= (field_val << (field_offset + 8)); in tps23881_set_val()
1132 static u8 tps23881_irq_export_chans_helper(u16 reg_val, u8 field_offset) in tps23881_irq_export_chans_helper() argument
[all...]
/linux/drivers/input/mouse/
H A Delantech.c1264 size_t field_offset; member
1276 unsigned char *reg = (unsigned char *) etd + attr->field_offset; in elantech_show_int_attr()
1293 unsigned char *reg = (unsigned char *) etd + attr->field_offset; in elantech_set_int_attr()
1319 .field_offset = offsetof(struct elantech_data, _name), \
1329 .field_offset = offsetof(struct elantech_data, info) + \
/linux/drivers/input/touchscreen/
H A Dedt-ft5x06.c353 size_t field_offset; member
367 .field_offset = offsetof(struct edt_ft5x06_ts_data, _field), \
383 u8 *field = (u8 *)tsdata + attr->field_offset; in edt_ft5x06_setting_show()
442 u8 *field = (u8 *)tsdata + attr->field_offset; in edt_ft5x06_setting_store()
H A Delants_i2c.c1242 size_t field_offset; member
1255 .field_offset = offsetof(struct elants_data, _field), \
1267 u8 *field = (u8 *)((char *)ts + attr->field_offset); in elants_version_attribute_show()
/linux/fs/xfs/
H A Dxfs_log.c3326 ptrdiff_t field_offset;
3360 field_offset = p - base_ptr; in xlog_force_shutdown()
3361 if (field_offset & 0x1ff) { in xlog_force_shutdown()
3371 (unsigned long)field_offset); in xlog_force_shutdown()
3376 field_offset = p - base_ptr; in xlog_force_shutdown()
3377 if (field_offset & 0x1ff) { in xlog_force_shutdown()
3260 ptrdiff_t field_offset; xlog_verify_iclog() local
/linux/drivers/input/misc/
H A Dims-pcu.c1092 size_t field_offset; member
1104 char *field = (char *)pcu + attr->field_offset; in ims_pcu_attribute_show()
1118 char *field = (char *)pcu + attr->field_offset; in ims_pcu_attribute_store()
1153 .field_offset = offsetof(struct ims_pcu, _field), \
/linux/sound/soc/codecs/
H A Dwm_adsp.c1440 unsigned int field_offset, u32 *data) in wm_adsp_buffer_write()
1443 buf->host_buf_ptr + field_offset, data);
1447 unsigned int field_offset, u32 data) in wm_adsp_buffer_populate()
1450 buf->host_buf_ptr + field_offset, in wm_adsp_buffer_populate()
1430 wm_adsp_buffer_read(struct wm_adsp_compr_buf * buf,unsigned int field_offset,u32 * data) wm_adsp_buffer_read() argument
1437 wm_adsp_buffer_write(struct wm_adsp_compr_buf * buf,unsigned int field_offset,u32 data) wm_adsp_buffer_write() argument
/linux/rust/zerocopy/src/
H A Dlayout.rs3003 let field_offset = align;
3004 let size_base = field_offset + trailing_base;
3012 offset: field_offset + trailing_field_offset,
4035 let field_offset = round_up(prefix_size, field_align)?;
4037 SizeInfo::Sized { size } => SizeInfo::Sized { size: field_offset.checked_add(size)? },
4039 offset: field_offset.checked_add(trailing.offset)?,
4040 size_base: field_offset.checked_add(trailing.size_base)?,
4049 && field_offset == prefix_size,
/linux/drivers/android/binder/
H A Dthread.rs787 let field_offset = offset + FD_FIELD_OFFSET; in translate_object()
788 crate::trace::trace_transaction_fd_send(view.alloc.debug_id, fd, field_offset); in translate_object()
790 view.alloc.info_add_fd(file, field_offset, false)?; in translate_object()
754 let field_offset = offset + FD_FIELD_OFFSET; translate_object() localVariable
/linux/drivers/gpu/drm/omapdrm/dss/
H A Ddispc.c2055 u32 fourcc, bool fieldmode, unsigned int field_offset, in calc_offset() argument
2084 *offset0 = field_offset * screen_width * ps; in calc_offset()
2592 unsigned int field_offset = 0; in dispc_ovl_setup_common() local
2670 field_offset = 0; in dispc_ovl_setup_common()
2672 field_offset = in_height / out_height / 2; in dispc_ovl_setup_common()
2677 field_offset = 1; in dispc_ovl_setup_common()
2690 fourcc, fieldmode, field_offset, in dispc_ovl_setup_common()
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Ddwxgmac2_core.c628 unsigned long field_offset, in dwxgmac3_log_error() argument
635 ptr = (unsigned long *)(bptr + field_offset); in dwxgmac3_log_error()