Home
last modified time | relevance | path

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

/Linux-v6.6/include/rdma/
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-v6.6/tools/testing/selftests/bpf/prog_tests/
Dctx_rewrite.c35 int field_offset; member
63 .field_offset = offsetof(type, field), \
296 int btf_id, field_offset; in find_field_offset() local
316 field_offset = find_field_offset_aux(btf, btf_id, field_str, 0); in find_field_offset()
317 if (field_offset < 0) { in find_field_offset()
322 return field_offset; in find_field_offset()
534 int field_offset; in match_pattern() local
558 field_offset = find_field_offset(btf, pattern, matches); in match_pattern()
559 if (field_offset < 0) in match_pattern()
563 acc_offset += field_offset; in match_pattern()
[all …]
/Linux-v6.6/arch/x86/xen/
Dpmu.c30 #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()
366 counter_regs = field_offset(ctxt, counters); in xen_amd_read_pmc()
392 fixed_counters = field_offset(ctxt, fixed_counters); in xen_intel_read_pmc()
396 arch_cntr_pair = field_offset(ctxt, arch_counters); in xen_intel_read_pmc()
/Linux-v6.6/drivers/acpi/acpica/
Dexfldio.c654 u32 field_offset = 0; in acpi_ex_extract_from_field() local
721 acpi_ex_field_datum_io(obj_desc, field_offset, &raw_datum, in acpi_ex_extract_from_field()
735 field_offset += obj_desc->common_field.access_byte_width; in acpi_ex_extract_from_field()
737 acpi_ex_field_datum_io(obj_desc, field_offset, &raw_datum, in acpi_ex_extract_from_field()
815 u32 field_offset = 0; in acpi_ex_insert_into_field() local
900 field_offset); in acpi_ex_insert_into_field()
905 field_offset += obj_desc->common_field.access_byte_width; in acpi_ex_insert_into_field()
958 field_offset); in acpi_ex_insert_into_field()
/Linux-v6.6/drivers/input/mouse/
Dtrackpoint.c97 size_t field_offset; member
109 u8 value = *(u8 *)((void *)tp + attr->field_offset); in trackpoint_show_int_attr()
122 u8 *field = (void *)tp + attr->field_offset; in trackpoint_set_int_attr()
138 .field_offset = offsetof(struct trackpoint_data, _name), \
151 bool *field = (void *)tp + attr->field_offset; in trackpoint_set_bit_attr()
174 .field_offset = offsetof(struct trackpoint_data, \
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-v6.6/drivers/video/fbdev/omap2/omapfb/dss/
Ddispc.c1822 unsigned int field_offset, in calc_vrfb_rotation_offset() argument
1866 if (field_offset) in calc_vrfb_rotation_offset()
1867 *offset0 = field_offset * screen_width * ps; in calc_vrfb_rotation_offset()
1889 if (field_offset) in calc_vrfb_rotation_offset()
1890 *offset0 = field_offset * screen_width * ps; in calc_vrfb_rotation_offset()
1909 unsigned int field_offset, in calc_dma_rotation_offset() argument
1949 if (field_offset) in calc_dma_rotation_offset()
1950 *offset0 = *offset1 + field_offset * screen_width * ps; in calc_dma_rotation_offset()
1964 if (field_offset) in calc_dma_rotation_offset()
1965 *offset0 = *offset1 + field_offset * ps; in calc_dma_rotation_offset()
[all …]
/Linux-v6.6/drivers/input/touchscreen/
Dhycon-hy46xx.c148 size_t field_offset; member
159 .field_offset = offsetof(struct hycon_hy46xx_data, _field), \
170 .field_offset = offsetof(struct hycon_hy46xx_data, _field), \
183 u8 *field = (u8 *)tsdata + attr->field_offset; in hycon_hy46xx_setting_show()
220 u8 *field = (u8 *)tsdata + attr->field_offset; in hycon_hy46xx_setting_store()
Dedt-ft5x06.c352 size_t field_offset; member
366 .field_offset = offsetof(struct edt_ft5x06_ts_data, _field), \
382 u8 *field = (u8 *)tsdata + attr->field_offset; in edt_ft5x06_setting_show()
448 u8 *field = (u8 *)tsdata + attr->field_offset; in edt_ft5x06_setting_store()
Delants_i2c.c1255 size_t field_offset; member
1268 .field_offset = offsetof(struct elants_data, _field), \
1280 u8 *field = (u8 *)((char *)ts + attr->field_offset); in elants_version_attribute_show()
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dcn30/
Ddcn30_cm_common.h34 type field_offset
Ddcn30_dwb_cm.c54 reg->shifts.field_offset = dwbc30->dwbc_shift->DWB_OGAM_RAMA_OFFSET_B; in dwb3_get_reg_field_ogam()
55 reg->masks.field_offset = dwbc30->dwbc_mask->DWB_OGAM_RAMA_OFFSET_B; in dwb3_get_reg_field_ogam()
Ddcn30_dpp_cm.c178 reg->shifts.field_offset = dpp->tf_shift->CM_GAMCOR_RAMA_OFFSET_B; in dpp3_gamcor_reg_field()
179 reg->masks.field_offset = dpp->tf_mask->CM_GAMCOR_RAMA_OFFSET_B; in dpp3_gamcor_reg_field()
Ddcn30_mpc.c181 reg->shifts.field_offset = mpc30->mpc_shift->MPCC_OGAM_RAMA_OFFSET_B; in mpc3_ogam_get_reg_field()
182 reg->masks.field_offset = mpc30->mpc_mask->MPCC_OGAM_RAMA_OFFSET_B; in mpc3_ogam_get_reg_field()
/Linux-v6.6/drivers/net/phy/
Dmdio_bus.c201 unsigned int field_offset; member
242 val = mdio_bus_get_global_stat(bus, sattr->field_offset); in mdio_bus_stat_field_show()
245 sattr->field_offset); in mdio_bus_stat_field_show()
264 val = mdio_bus_get_stat(&bus->stats[addr], sattr->field_offset); in mdio_bus_device_stat_field_show()
/Linux-v6.6/drivers/net/ethernet/stmicro/stmmac/
Ddwmac5.c23 unsigned long field_offset, struct stmmac_safety_stats *stats) in dwmac5_log_error() argument
29 ptr = (unsigned long *)(bptr + field_offset); in dwmac5_log_error()
Ddwxgmac2_core.c682 unsigned long field_offset, in dwxgmac3_log_error() argument
689 ptr = (unsigned long *)(bptr + field_offset); in dwxgmac3_log_error()
/Linux-v6.6/fs/xfs/
Dxfs_log.c3623 ptrdiff_t field_offset; in xlog_verify_iclog() local
3660 field_offset = p - base_ptr; in xlog_verify_iclog()
3661 if (field_offset & 0x1ff) { in xlog_verify_iclog()
3679 (unsigned long)field_offset); in xlog_verify_iclog()
3684 field_offset = p - base_ptr; in xlog_verify_iclog()
3685 if (field_offset & 0x1ff) { in xlog_verify_iclog()
/Linux-v6.6/drivers/input/misc/
Dims-pcu.c1039 size_t field_offset; member
1051 char *field = (char *)pcu + attr->field_offset; in ims_pcu_attribute_show()
1065 char *field = (char *)pcu + attr->field_offset; in ims_pcu_attribute_store()
1101 .field_offset = offsetof(struct ims_pcu, _field), \
/Linux-v6.6/sound/soc/codecs/
Dwm_adsp.c1419 unsigned int field_offset, u32 *data) in wm_adsp_buffer_read() argument
1422 buf->host_buf_ptr + field_offset, data); in wm_adsp_buffer_read()
1426 unsigned int field_offset, u32 data) in wm_adsp_buffer_write() argument
1429 buf->host_buf_ptr + field_offset, in wm_adsp_buffer_write()
/Linux-v6.6/drivers/gpu/drm/omapdrm/dss/
Ddispc.c2095 u32 fourcc, bool fieldmode, unsigned int field_offset, in calc_offset() argument
2124 *offset0 = field_offset * screen_width * ps; in calc_offset()
2632 unsigned int field_offset = 0; in dispc_ovl_setup_common() local
2710 field_offset = 0; in dispc_ovl_setup_common()
2712 field_offset = in_height / out_height / 2; in dispc_ovl_setup_common()
2717 field_offset = 1; in dispc_ovl_setup_common()
2730 fourcc, fieldmode, field_offset, in dispc_ovl_setup_common()