Home
last modified time | relevance | path

Searched refs:field (Results 1 – 25 of 1592) sorted by relevance

12345678910>>...64

/Linux-v5.10/drivers/scsi/aic7xxx/
Dqueue.h127 #define SLIST_FOREACH(var, head, field) \ argument
130 (var) = SLIST_NEXT((var), field))
136 #define SLIST_INSERT_AFTER(slistelm, elm, field) do { \ argument
137 SLIST_NEXT((elm), field) = SLIST_NEXT((slistelm), field); \
138 SLIST_NEXT((slistelm), field) = (elm); \
141 #define SLIST_INSERT_HEAD(head, elm, field) do { \ argument
142 SLIST_NEXT((elm), field) = SLIST_FIRST((head)); \
146 #define SLIST_NEXT(elm, field) ((elm)->field.sle_next) argument
148 #define SLIST_REMOVE(head, elm, type, field) do { \ argument
150 SLIST_REMOVE_HEAD((head), field); \
[all …]
Daic79xx.reg102 field DST_MODE 0x70
103 field SRC_MODE 0x07
117 field HWERRINT 0x80
118 field BRKADRINT 0x40
119 field SWTMINT 0x20
120 field PCIINT 0x10
121 field SCSIINT 0x08
122 field SEQINT 0x04
123 field CMDCMPLT 0x02
124 field SPLTINT 0x01
[all …]
Daic7xxx.reg71 field TEMODE 0x80
72 field ENSELO 0x40
73 field ENSELI 0x20
74 field ENRSELI 0x10
75 field ENAUTOATNO 0x08
76 field ENAUTOATNI 0x04
77 field ENAUTOATNP 0x02
78 field SCSIRSTO 0x01
88 field DFON 0x80
89 field DFPEXP 0x40
[all …]
/Linux-v5.10/arch/x86/kvm/vmx/
Dvmx_ops.h15 asmlinkage void vmread_error(unsigned long field, bool fault);
16 __attribute__((regparm(0))) void vmread_error_trampoline(unsigned long field,
18 void vmwrite_error(unsigned long field, unsigned long value);
24 static __always_inline void vmcs_check16(unsigned long field) in vmcs_check16() argument
26 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6001) == 0x2000, in vmcs_check16()
28 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6001) == 0x2001, in vmcs_check16()
30 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6000) == 0x4000, in vmcs_check16()
32 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6000) == 0x6000, in vmcs_check16()
36 static __always_inline void vmcs_check32(unsigned long field) in vmcs_check32() argument
38 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6000) == 0, in vmcs_check32()
[all …]
Devmcs.h78 static __always_inline int get_evmcs_offset(unsigned long field, in get_evmcs_offset() argument
81 unsigned int index = ROL16(field, 6); in get_evmcs_offset()
86 field); in get_evmcs_offset()
100 static inline void evmcs_write64(unsigned long field, u64 value) in evmcs_write64() argument
103 int offset = get_evmcs_offset(field, &clean_field); in evmcs_write64()
113 static inline void evmcs_write32(unsigned long field, u32 value) in evmcs_write32() argument
116 int offset = get_evmcs_offset(field, &clean_field); in evmcs_write32()
125 static inline void evmcs_write16(unsigned long field, u16 value) in evmcs_write16() argument
128 int offset = get_evmcs_offset(field, &clean_field); in evmcs_write16()
137 static inline u64 evmcs_read64(unsigned long field) in evmcs_read64() argument
[all …]
/Linux-v5.10/include/linux/
Dpart_stat.h27 #define part_stat_get_cpu(part, field, cpu) \ argument
28 (per_cpu_ptr((part)->dkstats, (cpu))->field)
30 #define part_stat_get(part, field) \ argument
31 part_stat_get_cpu(part, field, smp_processor_id())
33 #define part_stat_read(part, field) \ argument
35 typeof((part)->dkstats->field) res = 0; \
38 res += per_cpu_ptr((part)->dkstats, _cpu)->field; \
51 #define part_stat_read_accum(part, field) \ argument
52 (part_stat_read(part, field[STAT_READ]) + \
53 part_stat_read(part, field[STAT_WRITE]) + \
[all …]
Dbitfield.h116 static __always_inline u64 field_multiplier(u64 field) in field_multiplier() argument
118 if ((field | (field - 1)) & ((field | (field - 1)) + 1)) in field_multiplier()
120 return field & -field; in field_multiplier()
122 static __always_inline u64 field_mask(u64 field) in field_mask() argument
124 return field / field_multiplier(field); in field_mask()
126 #define field_max(field) ((typeof(field))field_mask(field)) argument
128 static __always_inline __##type type##_encode_bits(base v, base field) \
130 if (__builtin_constant_p(v) && (v & ~field_mask(field))) \
132 return to((v & field_mask(field)) * field_multiplier(field)); \
135 base val, base field) \
[all …]
/Linux-v5.10/include/net/
Dsnmp.h127 #define __SNMP_INC_STATS(mib, field) \ argument
128 __this_cpu_inc(mib->mibs[field])
130 #define SNMP_INC_STATS_ATOMIC_LONG(mib, field) \ argument
131 atomic_long_inc(&mib->mibs[field])
133 #define SNMP_INC_STATS(mib, field) \ argument
134 this_cpu_inc(mib->mibs[field])
136 #define SNMP_DEC_STATS(mib, field) \ argument
137 this_cpu_dec(mib->mibs[field])
139 #define __SNMP_ADD_STATS(mib, field, addend) \ argument
140 __this_cpu_add(mib->mibs[field], addend)
[all …]
/Linux-v5.10/drivers/infiniband/hw/mlx5/
Dcong.c97 static u32 mlx5_get_cc_param_val(void *field, int offset) in mlx5_get_cc_param_val() argument
101 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
104 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
107 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
110 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
113 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
116 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
119 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
122 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
125 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
[all …]
/Linux-v5.10/drivers/xen/xen-pciback/
Dconf_space.c47 const struct config_field *field = entry->field; in DEFINE_PCI_CONFIG() local
51 switch (field->size) { in DEFINE_PCI_CONFIG()
53 if (field->u.b.read) in DEFINE_PCI_CONFIG()
54 ret = field->u.b.read(dev, offset, (u8 *) value, in DEFINE_PCI_CONFIG()
58 if (field->u.w.read) in DEFINE_PCI_CONFIG()
59 ret = field->u.w.read(dev, offset, (u16 *) value, in DEFINE_PCI_CONFIG()
63 if (field->u.dw.read) in DEFINE_PCI_CONFIG()
64 ret = field->u.dw.read(dev, offset, value, entry->data); in DEFINE_PCI_CONFIG()
75 const struct config_field *field = entry->field; in conf_space_write() local
77 switch (field->size) { in conf_space_write()
[all …]
/Linux-v5.10/kernel/trace/
Dtrace_output.c29 struct bputs_entry *field; in trace_print_bputs_msg_only() local
31 trace_assign_type(field, entry); in trace_print_bputs_msg_only()
33 trace_seq_puts(s, field->str); in trace_print_bputs_msg_only()
42 struct bprint_entry *field; in trace_print_bprintk_msg_only() local
44 trace_assign_type(field, entry); in trace_print_bprintk_msg_only()
46 trace_seq_bprintf(s, field->fmt, field->buf); in trace_print_bprintk_msg_only()
55 struct print_entry *field; in trace_print_printk_msg_only() local
57 trace_assign_type(field, entry); in trace_print_printk_msg_only()
59 trace_seq_puts(s, field->buf); in trace_print_printk_msg_only()
834 struct ftrace_entry *field; in trace_fn_trace() local
[all …]
Dtrace_events_inject.c39 struct ftrace_event_field *field; in parse_field() local
60 field = trace_find_event_field(call, field_name); in parse_field()
62 if (!field) in parse_field()
65 *pf = field; in parse_field()
79 if (is_string_field(field)) in parse_field()
94 if (field->is_signed) in parse_field()
108 if (!is_string_field(field)) in parse_field()
140 struct ftrace_event_field *field; in trace_get_entry_size() local
145 list_for_each_entry(field, head, link) { in trace_get_entry_size()
146 if (field->size + field->offset > size) in trace_get_entry_size()
[all …]
/Linux-v5.10/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dsmu_helper.h97 extern uint32_t phm_set_field_to_u32(u32 offset, u32 original_data, u32 field, u32 size);
124 #define PHM_FIELD_SHIFT(reg, field) reg##__##field##__SHIFT argument
125 #define PHM_FIELD_MASK(reg, field) reg##__##field##_MASK argument
127 #define PHM_SET_FIELD(origval, reg, field, fieldval) \ argument
128 (((origval) & ~PHM_FIELD_MASK(reg, field)) | \
129 (PHM_FIELD_MASK(reg, field) & ((fieldval) << PHM_FIELD_SHIFT(reg, field))))
131 #define PHM_GET_FIELD(value, reg, field) \ argument
132 (((value) & PHM_FIELD_MASK(reg, field)) >> \
133 PHM_FIELD_SHIFT(reg, field))
138 #define PHM_READ_FIELD(device, reg, field) \ argument
[all …]
/Linux-v5.10/drivers/clk/st/
Dclkgen.h22 struct clkgen_field *field) in clkgen_read() argument
24 return (readl(base + field->offset) >> field->shift) & field->mask; in clkgen_read()
28 static inline void clkgen_write(void __iomem *base, struct clkgen_field *field, in clkgen_write() argument
31 writel((readl(base + field->offset) & in clkgen_write()
32 ~(field->mask << field->shift)) | (val << field->shift), in clkgen_write()
33 base + field->offset); in clkgen_write()
44 #define CLKGEN_READ(pll, field) clkgen_read(pll->regs_base, \ argument
45 &pll->data->field)
47 #define CLKGEN_WRITE(pll, field, val) clkgen_write(pll->regs_base, \ argument
48 &pll->data->field, val)
/Linux-v5.10/drivers/infiniband/hw/hfi1/
Dexp_rcv.h60 #define EXP_TID_GET(tid, field) \ argument
61 (((tid) >> EXP_TID_TID##field##_SHIFT) & EXP_TID_TID##field##_MASK)
63 #define EXP_TID_SET(field, value) \ argument
64 (((value) & EXP_TID_TID##field##_MASK) << \
65 EXP_TID_TID##field##_SHIFT)
66 #define EXP_TID_CLEAR(tid, field) ({ \ argument
67 (tid) &= ~(EXP_TID_TID##field##_MASK << \
68 EXP_TID_TID##field##_SHIFT); \
70 #define EXP_TID_RESET(tid, field, value) do { \ argument
71 EXP_TID_CLEAR(tid, field); \
[all …]
/Linux-v5.10/drivers/md/
Ddm-init.c112 char *field[4]; in dm_parse_table_entry() local
115 field[0] = str; in dm_parse_table_entry()
117 for (i = 0; i < ARRAY_SIZE(field) - 1; i++) { in dm_parse_table_entry()
118 field[i + 1] = str_field_delimit(&field[i], ' '); in dm_parse_table_entry()
119 if (!field[i + 1]) in dm_parse_table_entry()
123 next = str_field_delimit(&field[i], ','); in dm_parse_table_entry()
131 if (kstrtoull(field[0], 0, &sp->sector_start)) in dm_parse_table_entry()
134 if (kstrtoull(field[1], 0, &sp->length)) in dm_parse_table_entry()
137 strscpy(sp->target_type, field[2], sizeof(sp->target_type)); in dm_parse_table_entry()
143 dev->target_args_array[n] = kstrndup(field[3], DM_MAX_STR_SIZE, in dm_parse_table_entry()
[all …]
/Linux-v5.10/tools/lib/traceevent/Documentation/
Dlibtraceevent-field_find.txt7 Search for a field in an event.
22 These functions search for a field with given name in an event. The field
23 returned can be used to find the field content from within a data record.
25 The _tep_find_common_field()_ function searches for a common field with _name_
28 The _tep_find_field()_ function searches for an event specific field with
31 The _tep_find_any_field()_ function searches for any field with _name_ in the
37 functions return a pointer to the found field, or NULL in case there is no field
48 struct tep_format_field *field;
56 field = tep_find_common_field(event, "common_pid");
57 if (field == NULL) {
[all …]
/Linux-v5.10/Documentation/userspace-api/media/v4l/
Dfield-order.rst13 odd and even field are transmitted, and due to a small delay between
23 object on screen may well move between one field and the next. For
25 which field of a frame is older, the *temporal order*.
27 When the driver provides or accepts images field by field rather than
30 even) fields, the *spatial order*: The first line of the top field is
32 field is the second line of that frame.
35 whether a frame commences with the top or bottom field is pointless. Any
41 Counter to intuition the top field is not necessarily the older field.
42 Whether the older field contains the top or bottom lines is a convention
48 bus in the same order they were captured, so if the top field was
[all …]
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx4/
Dfw.c209 u8 field; in mlx4_QUERY_FUNC() local
235 MLX4_GET(field, outbox, QUERY_FUNC_BUS_OFFSET); in mlx4_QUERY_FUNC()
236 func->bus = field & 0xf; in mlx4_QUERY_FUNC()
237 MLX4_GET(field, outbox, QUERY_FUNC_DEVICE_OFFSET); in mlx4_QUERY_FUNC()
238 func->device = field & 0xf1; in mlx4_QUERY_FUNC()
239 MLX4_GET(field, outbox, QUERY_FUNC_FUNCTION_OFFSET); in mlx4_QUERY_FUNC()
240 func->function = field & 0x7; in mlx4_QUERY_FUNC()
241 MLX4_GET(field, outbox, QUERY_FUNC_PHYSICAL_FUNCTION_OFFSET); in mlx4_QUERY_FUNC()
242 func->physical_function = field & 0xf; in mlx4_QUERY_FUNC()
247 MLX4_GET(field, outbox, QUERY_FUNC_RSVD_UARS_OFFSET); in mlx4_QUERY_FUNC()
[all …]
/Linux-v5.10/tools/lib/traceevent/
Devent-parse.c874 free(arg->field.name); in free_arg()
877 free_arg(arg->flags.field); in free_arg()
882 free_arg(arg->symbol.field); in free_arg()
887 free_arg(arg->hex.field); in free_arg()
891 free_arg(arg->int_array.field); in free_arg()
1352 static int field_is_string(struct tep_format_field *field) in field_is_string() argument
1354 if ((field->flags & TEP_FIELD_IS_ARRAY) && in field_is_string()
1355 (strstr(field->type, "char") || strstr(field->type, "u8") || in field_is_string()
1356 strstr(field->type, "s8"))) in field_is_string()
1362 static int field_is_dynamic(struct tep_format_field *field) in field_is_dynamic() argument
[all …]
/Linux-v5.10/drivers/acpi/acpica/
Dexfield.c137 (obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field()
139 || obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field()
141 || obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field()
164 (acpi_size)ACPI_ROUND_BITS_UP_TO_BYTES(obj_desc->field.bit_length); in acpi_ex_read_data_from_field()
190 (obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field()
198 (obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field()
206 obj_desc->field.bit_length)); in acpi_ex_read_data_from_field()
209 obj_desc->field.region_obj->field.internal_pcc_buffer + in acpi_ex_read_data_from_field()
210 obj_desc->field.base_byte_offset, in acpi_ex_read_data_from_field()
211 (acpi_size)ACPI_ROUND_BITS_UP_TO_BYTES(obj_desc->field. in acpi_ex_read_data_from_field()
[all …]
/Linux-v5.10/drivers/gpu/drm/amd/include/
Dcgs_common.h120 #define CGS_REG_FIELD_SHIFT(reg, field) reg##__##field##__SHIFT argument
121 #define CGS_REG_FIELD_MASK(reg, field) reg##__##field##_MASK argument
123 #define CGS_REG_SET_FIELD(orig_val, reg, field, field_val) \ argument
124 (((orig_val) & ~CGS_REG_FIELD_MASK(reg, field)) | \
125 (CGS_REG_FIELD_MASK(reg, field) & ((field_val) << CGS_REG_FIELD_SHIFT(reg, field))))
127 #define CGS_REG_GET_FIELD(value, reg, field) \ argument
128 (((value) & CGS_REG_FIELD_MASK(reg, field)) >> CGS_REG_FIELD_SHIFT(reg, field))
130 #define CGS_WREG32_FIELD(device, reg, field, val) \ argument
131 …egister(device, mm##reg) & ~CGS_REG_FIELD_MASK(reg, field)) | (val) << CGS_REG_FIELD_SHIFT(reg, fi…
133 #define CGS_WREG32_FIELD_IND(device, space, reg, field, val) \ argument
[all …]
/Linux-v5.10/drivers/hid/
Dhid-dr.c53 drff->report->field[0]->value[0] = 0x51; in drff_play()
54 drff->report->field[0]->value[1] = 0x00; in drff_play()
55 drff->report->field[0]->value[2] = weak; in drff_play()
56 drff->report->field[0]->value[4] = strong; in drff_play()
59 drff->report->field[0]->value[0] = 0xfa; in drff_play()
60 drff->report->field[0]->value[1] = 0xfe; in drff_play()
62 drff->report->field[0]->value[0] = 0xf3; in drff_play()
63 drff->report->field[0]->value[1] = 0x00; in drff_play()
66 drff->report->field[0]->value[2] = 0x00; in drff_play()
67 drff->report->field[0]->value[4] = 0x00; in drff_play()
[all …]
Dhid-gaff.c44 gaff->report->field[0]->value[0] = 0x51; in hid_gaff_play()
45 gaff->report->field[0]->value[1] = 0x0; in hid_gaff_play()
46 gaff->report->field[0]->value[2] = right; in hid_gaff_play()
47 gaff->report->field[0]->value[3] = 0; in hid_gaff_play()
48 gaff->report->field[0]->value[4] = left; in hid_gaff_play()
49 gaff->report->field[0]->value[5] = 0; in hid_gaff_play()
53 gaff->report->field[0]->value[0] = 0xfa; in hid_gaff_play()
54 gaff->report->field[0]->value[1] = 0xfe; in hid_gaff_play()
55 gaff->report->field[0]->value[2] = 0x0; in hid_gaff_play()
56 gaff->report->field[0]->value[4] = 0x0; in hid_gaff_play()
[all …]
Dhid-lg3ff.c60 memset(report->field[0]->value, 0, in hid_lg3ff_play()
61 sizeof(__s32) * report->field[0]->report_count); in hid_lg3ff_play()
73 report->field[0]->value[0] = 0x51; in hid_lg3ff_play()
79 report->field[0]->value[1] = (unsigned char)(-x); in hid_lg3ff_play()
80 report->field[0]->value[31] = (unsigned char)(-y); in hid_lg3ff_play()
98 report->field[0]->value[0] = 0x51; in hid_lg3ff_set_autocenter()
99 report->field[0]->value[1] = 0x00; in hid_lg3ff_set_autocenter()
100 report->field[0]->value[2] = 0x00; in hid_lg3ff_set_autocenter()
101 report->field[0]->value[3] = 0x7F; in hid_lg3ff_set_autocenter()
102 report->field[0]->value[4] = 0x7F; in hid_lg3ff_set_autocenter()
[all …]

12345678910>>...64