| /linux/include/rdma/ |
| H A D | iba.h | 56 #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 D | ctx_rewrite.c | 36 int field_offset; member 64 .field_offset = offsetof(type, field), \ 299 int btf_id, field_offset; in find_field_offset() local 321 field_offset = find_field_offset_aux(btf, btf_id, field_str, 0); in find_field_offset() 322 if (field_offset < 0) { in find_field_offset() 327 return field_offset; in find_field_offset() 539 int field_offset; in match_pattern() local 563 field_offset = find_field_offset(btf, pattern, matches); in match_pattern() 564 if (field_offset < 0) in match_pattern() 568 acc_offset += field_offset; in match_pattern() [all …]
|
| /linux/drivers/acpi/acpica/ |
| H A D | exfldio.c | 654 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/net/pse-pd/ |
| H A D | tps23881.c | 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() 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 1136 val = (reg_val >> (4 + field_offset) & 0xf0) | in tps23881_irq_export_chans_helper() 1137 (reg_val >> field_offset & 0x0f); in tps23881_irq_export_chans_helper()
|
| /linux/drivers/gpu/drm/amd/display/dc/dwb/dcn30/ |
| H A D | dcn30_cm_common.h | 34 type field_offset
|
| H A D | dcn30_dwb_cm.c | 54 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/input/mouse/ |
| H A D | elantech.c | 1264 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/fs/xfs/ |
| H A D | xfs_log.c | 3234 ptrdiff_t field_offset; in xlog_verify_iclog() local 3268 field_offset = p - base_ptr; in xlog_verify_iclog() 3269 if (field_offset & 0x1ff) { in xlog_verify_iclog() 3279 (unsigned long)field_offset); in xlog_verify_iclog() 3284 field_offset = p - base_ptr; in xlog_verify_iclog() 3285 if (field_offset & 0x1ff) { in xlog_verify_iclog()
|
| /linux/sound/soc/codecs/ |
| H A D | wm_adsp.c | 1440 unsigned int field_offset, u32 *data) in wm_adsp_buffer_populate() 1443 buf->host_buf_ptr + field_offset, data); in wm_adsp_buffer_populate() 1447 unsigned int field_offset, u32 data) in wm_adsp_buffer_populate() 1450 buf->host_buf_ptr + field_offset, in wm_adsp_buffer_populate() 1412 wm_adsp_buffer_read(struct wm_adsp_compr_buf * buf,unsigned int field_offset,u32 * data) wm_adsp_buffer_read() argument 1419 wm_adsp_buffer_write(struct wm_adsp_compr_buf * buf,unsigned int field_offset,u32 data) wm_adsp_buffer_write() argument
|
| /linux/drivers/android/binder/ |
| H A D | thread.rs | 714 let field_offset = offset + FD_FIELD_OFFSET; in translate_object() localVariable 715 crate::trace::trace_transaction_fd_send(view.alloc.debug_id, fd, field_offset); in translate_object() 717 view.alloc.info_add_fd(file, field_offset, false)?; in translate_object()
|
| /linux/drivers/gpu/drm/omapdrm/dss/ |
| H A D | dispc.c | 2055 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()
|