Home
last modified time | relevance | path

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

/openbmc/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, \
/openbmc/u-boot/drivers/pinctrl/mvebu/
H A Dpinctrl-mvebu.c99 int field_offset; in mvebu_pinctrl_set_state() local
111 field_offset = (BITS_PER_PIN) * (pin & PIN_FIELD_MASK); in mvebu_pinctrl_set_state()
114 PIN_FUNC_MASK << field_offset, in mvebu_pinctrl_set_state()
115 (function & PIN_FUNC_MASK) << field_offset); in mvebu_pinctrl_set_state()
156 int field_offset; in mvebu_pinctrl_set_state_all() local
172 field_offset = (BITS_PER_PIN) * (pin & PIN_FIELD_MASK); in mvebu_pinctrl_set_state_all()
175 PIN_FUNC_MASK << field_offset, in mvebu_pinctrl_set_state_all()
176 (func & PIN_FUNC_MASK) << field_offset); in mvebu_pinctrl_set_state_all()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A 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 …]
/openbmc/u-boot/drivers/pinctrl/broadcom/
H A Dpinctrl-bcm283x.c36 int field_offset; in bcm2835_gpio_set_func_id() local
39 field_offset = BCM2835_GPIO_FSEL_SHIFT(gpio); in bcm2835_gpio_set_func_id()
42 BCM2835_GPIO_FSEL_MASK << field_offset, in bcm2835_gpio_set_func_id()
43 (func & BCM2835_GPIO_FSEL_MASK) << field_offset); in bcm2835_gpio_set_func_id()
/openbmc/linux/arch/x86/xen/
H A 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()
/openbmc/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()
/openbmc/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) + \
/openbmc/linux/drivers/video/fbdev/omap2/omapfb/dss/
H A 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 …]
/openbmc/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()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/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()
H A 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()
H A 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()
/openbmc/linux/drivers/net/phy/
H A 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()
/openbmc/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.c698 unsigned long field_offset, in dwxgmac3_log_error() argument
705 ptr = (unsigned long *)(bptr + field_offset); in dwxgmac3_log_error()
/openbmc/linux/fs/xfs/
H A Dxfs_log.c3625 ptrdiff_t field_offset; in xlog_verify_iclog() local
3662 field_offset = p - base_ptr; in xlog_verify_iclog()
3663 if (field_offset & 0x1ff) { in xlog_verify_iclog()
3681 (unsigned long)field_offset); in xlog_verify_iclog()
3686 field_offset = p - base_ptr; in xlog_verify_iclog()
3687 if (field_offset & 0x1ff) { in xlog_verify_iclog()
/openbmc/linux/drivers/input/misc/
H A 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), \
/openbmc/linux/sound/soc/codecs/
H A Dwm_adsp.c1415 unsigned int field_offset, u32 *data) in wm_adsp_buffer_read() argument
1418 buf->host_buf_ptr + field_offset, data); in wm_adsp_buffer_read()
1422 unsigned int field_offset, u32 data) in wm_adsp_buffer_write() argument
1425 buf->host_buf_ptr + field_offset, in wm_adsp_buffer_write()
/openbmc/linux/drivers/gpu/drm/omapdrm/dss/
H A 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()