Home
last modified time | relevance | path

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

12

/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
64 .field_offset = offsetof(type, field), \
299 int btf_id, field_offset; in find_field_offset() local
319 field_offset = find_field_offset_aux(btf, btf_id, field_str, 0); in find_field_offset()
320 if (field_offset < 0) { in find_field_offset()
325 return field_offset; in find_field_offset()
537 int field_offset; in match_pattern() local
561 field_offset = find_field_offset(btf, pattern, matches); in match_pattern()
562 if (field_offset < 0) in match_pattern()
566 acc_offset += field_offset; in match_pattern()
[all …]
/linux/arch/x86/xen/
H A Dpmu.c29 #define field_offset(ctxt, field) ((void *)((uintptr_t)ctxt + \ macro
229 fix_counters = field_offset(ctxt, fixed_counters); in xen_intel_pmu_emulate()
233 arch_cntr_pair = field_offset(ctxt, arch_counters); in xen_intel_pmu_emulate()
237 arch_cntr_pair = field_offset(ctxt, arch_counters); in xen_intel_pmu_emulate()
279 ctrl_regs = field_offset(ctxt, ctrls); in xen_amd_pmu_emulate()
283 counter_regs = field_offset(ctxt, counters); in xen_amd_pmu_emulate()
365 counter_regs = field_offset(ctxt, counters); in xen_amd_read_pmc()
391 fixed_counters = field_offset(ctxt, fixed_counters); in xen_intel_read_pmc()
395 arch_cntr_pair = field_offset(ctxt, arch_counters); in xen_intel_read_pmc()
/linux/fs/bcachefs/
H A Dbkey.c160 u64 v = 0, offset = le64_to_cpu(state->format->field_offset[field]); in get_inc_field()
205 u64 offset = le64_to_cpu(state->format->field_offset[field]); in set_inc_field()
386 u64 offset = le64_to_cpu(state->format->field_offset[field]); in set_inc_field_lossy()
449 u64 field_offset = le64_to_cpu(f->field_offset[i]); in bkey_format_has_too_big_fields() local
451 if (packed_max + field_offset < packed_max || in bkey_format_has_too_big_fields()
452 packed_max + field_offset > unpacked_max) in bkey_format_has_too_big_fields()
490 le64_to_cpu(f->field_offset[BKEY_FIELD_SNAPSHOT]))) { in bch2_bkey_pack_pos_lossy()
499 le64_to_cpu(f->field_offset[BKEY_FIELD_OFFSET]))) { in bch2_bkey_pack_pos_lossy()
508 le64_to_cpu(f->field_offset[BKEY_FIELD_INODE]))) in bch2_bkey_pack_pos_lossy()
585 f->field_offset[i] = cpu_to_le64(offset); in set_format_field()
[all …]
H A Dbkey.h486 ? (le64_to_cpu(f->field_offset[nr]) + in bkey_field_max()
584 u64 field_offset = le64_to_cpu(f->field_offset[i]); in bch2_bkey_format_field_overflows() local
589 if ((f_bits == unpacked_bits) && field_offset) in bch2_bkey_format_field_overflows()
596 if (((field_offset + f_mask) & unpacked_mask) < field_offset) in bch2_bkey_format_field_overflows()
H A Dbtree_io.h167 swap(f->field_offset[BKEY_FIELD_INODE], in compat_bformat()
168 f->field_offset[BKEY_FIELD_OFFSET]); in compat_bformat()
176 f->field_offset[BKEY_FIELD_SNAPSHOT] = write in compat_bformat()
H A Dbkey_methods.c424 swap(tmp.field_offset[BKEY_FIELD_INODE], in __bch2_bkey_compat()
425 tmp.field_offset[BKEY_FIELD_OFFSET]); in __bch2_bkey_compat()
445 u64 min_packed = le64_to_cpu(f->field_offset[BKEY_FIELD_SNAPSHOT]); in __bch2_bkey_compat()
/linux/drivers/acpi/acpica/
H A 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/drivers/input/mouse/
H A 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, \
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 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()
H A 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()
H A 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/drivers/net/pse-pd/
H A Dtps23881.c79 static u16 tps23881_calc_val(u16 reg_val, u8 chan, u8 field_offset, in tps23881_calc_val() argument
85 return (reg_val >> field_offset) & field_mask; in tps23881_calc_val()
101 static u16 tps23881_set_val(u16 reg_val, u8 chan, u8 field_offset, in tps23881_set_val() argument
107 reg_val &= ~(field_mask << field_offset); in tps23881_set_val()
108 reg_val |= (field_val << field_offset); in tps23881_set_val()
110 reg_val &= ~(field_mask << (field_offset + 8)); in tps23881_set_val()
111 reg_val |= (field_val << (field_offset + 8)); in tps23881_set_val()
/linux/drivers/gpu/drm/amd/display/dc/dwb/dcn30/
H A Ddcn30_cm_common.h34 type field_offset
H A 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()
/linux/drivers/net/phy/
H A Dmdio_bus.c203 unsigned int field_offset; member
244 val = mdio_bus_get_global_stat(bus, sattr->field_offset); in mdio_bus_stat_field_show()
247 sattr->field_offset); in mdio_bus_stat_field_show()
266 val = mdio_bus_get_stat(&bus->stats[addr], sattr->field_offset); in mdio_bus_device_stat_field_show()
/linux/drivers/net/ethernet/stmicro/stmmac/
H A 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()
H A Ddwxgmac2_core.c699 unsigned long field_offset, in dwxgmac3_log_error() argument
706 ptr = (unsigned long *)(bptr + field_offset); in dwxgmac3_log_error()
/linux/drivers/gpu/drm/amd/display/dc/dpp/dcn30/
H A Ddcn30_dpp_cm.c175 reg->shifts.field_offset = dpp->tf_shift->CM_GAMCOR_RAMA_OFFSET_B; in dpp3_gamcor_reg_field()
176 reg->masks.field_offset = dpp->tf_mask->CM_GAMCOR_RAMA_OFFSET_B; in dpp3_gamcor_reg_field()
/linux/fs/xfs/
H A Dxfs_log.c3348 ptrdiff_t field_offset; in xlog_verify_iclog() local
3385 field_offset = p - base_ptr; in xlog_verify_iclog()
3386 if (field_offset & 0x1ff) { in xlog_verify_iclog()
3404 (unsigned long)field_offset); in xlog_verify_iclog()
3409 field_offset = p - base_ptr; in xlog_verify_iclog()
3410 if (field_offset & 0x1ff) { in xlog_verify_iclog()
/linux/drivers/input/misc/
H A Dims-pcu.c1033 size_t field_offset; member
1045 char *field = (char *)pcu + attr->field_offset; in ims_pcu_attribute_show()
1059 char *field = (char *)pcu + attr->field_offset; in ims_pcu_attribute_store()
1094 .field_offset = offsetof(struct ims_pcu, _field), \
/linux/sound/soc/codecs/
H A Dwm_adsp.c1412 unsigned int field_offset, u32 *data) in wm_adsp_buffer_read() argument
1415 buf->host_buf_ptr + field_offset, data); in wm_adsp_buffer_read()
1419 unsigned int field_offset, u32 data) in wm_adsp_buffer_write() argument
1422 buf->host_buf_ptr + field_offset, in wm_adsp_buffer_write()
/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/gpu/drm/amd/display/dc/mpc/dcn30/
H A Ddcn30_mpc.c209 reg->shifts.field_offset = mpc30->mpc_shift->MPCC_OGAM_RAMA_OFFSET_B; in mpc3_ogam_get_reg_field()
210 reg->masks.field_offset = mpc30->mpc_mask->MPCC_OGAM_RAMA_OFFSET_B; in mpc3_ogam_get_reg_field()

12