Home
last modified time | relevance | path

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

12345678910>>...52

/linux/drivers/scsi/aic7xxx/
H A 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 …]
H A 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 …]
H A 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/arch/x86/kvm/vmx/
H A Dvmx_ops.h13 void vmread_error(unsigned long field);
14 void vmwrite_error(unsigned long field, unsigned long value);
39 void vmread_error_trampoline2(unsigned long field, bool fault);
43 static __always_inline void vmcs_check16(unsigned long field) in vmcs_check16() argument
45 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6001) == 0x2000, in vmcs_check16()
47 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6001) == 0x2001, in vmcs_check16()
49 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6000) == 0x4000, in vmcs_check16()
51 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6000) == 0x6000, in vmcs_check16()
55 static __always_inline void vmcs_check32(unsigned long field) in vmcs_check32() argument
57 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6000) == 0, in vmcs_check32()
[all …]
H A Dtdx.h79 void tdh_vp_rd_failed(struct vcpu_tdx *tdx, char *uclass, u32 field, u64 err);
80 void tdh_vp_wr_failed(struct vcpu_tdx *tdx, char *uclass, char *op, u32 field,
83 static __always_inline u64 td_tdcs_exec_read64(struct kvm_tdx *kvm_tdx, u32 field) in td_tdcs_exec_read64() argument
87 err = tdh_mng_rd(&kvm_tdx->td, TDCS_EXEC(field), &data); in td_tdcs_exec_read64()
89 pr_err("TDH_MNG_RD[EXEC.0x%x] failed: 0x%llx\n", field, err); in td_tdcs_exec_read64()
95 static __always_inline void tdvps_vmcs_check(u32 field, u8 bits) in tdvps_vmcs_check() argument
100 #define VMCS_ENC_ACCESS_TYPE(field) ((field) & VMCS_ENC_ACCESS_TYPE_MASK) in tdvps_vmcs_check() argument
103 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && in tdvps_vmcs_check()
104 VMCS_ENC_ACCESS_TYPE(field) == VMCS_ENC_ACCESS_TYPE_HIGH, in tdvps_vmcs_check()
114 #define VMCS_ENC_WIDTH(field) ((field) & VMCS_ENC_WIDTH_MASK) in tdvps_vmcs_check() argument
[all …]
/linux/rust/syn/gen/
H A Ddebug.rs13 formatter.field("extern_token", &self.extern_token); in fmt()
14 formatter.field("name", &self.name); in fmt()
29 formatter.field("colon2_token", &self.colon2_token); in debug()
30 formatter.field("lt_token", &self.lt_token); in debug()
31 formatter.field("args", &self.args); in debug()
32 formatter.field("gt_token", &self.gt_token); in debug()
41 formatter.field("attrs", &self.attrs); in fmt()
42 formatter.field("pat", &self.pat); in fmt()
43 formatter.field("guard", &self.guard); in fmt()
44 formatter.field("fat_arrow_token", &self.fat_arrow_token); in fmt()
[all …]
/linux/include/linux/
H A Dpart_stat.h28 #define part_stat_get_cpu(part, field, cpu) \ argument
29 (per_cpu_ptr((part)->bd_stats, (cpu))->field)
31 #define part_stat_get(part, field) \ argument
32 part_stat_get_cpu(part, field, smp_processor_id())
34 #define part_stat_read(part, field) \ argument
36 TYPEOF_UNQUAL((part)->bd_stats->field) res = 0; \
39 res += per_cpu_ptr((part)->bd_stats, _cpu)->field; \
52 #define part_stat_read_accum(part, field) \ argument
53 (part_stat_read(part, field[STAT_READ]) + \
54 part_stat_read(part, field[STAT_WRITE]) + \
[all …]
/linux/kernel/trace/
H A 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/drivers/gpu/drm/
H A Ddrm_panel_backlight_quirks.c11 enum dmi_field field; member
25 .dmi_match.field = DMI_SYS_VENDOR,
27 .dmi_match_other.field = DMI_PRODUCT_VERSION,
34 .dmi_match.field = DMI_BOARD_VENDOR,
42 .dmi_match.field = DMI_BOARD_VENDOR,
50 .dmi_match.field = DMI_BOARD_VENDOR,
58 .dmi_match.field = DMI_SYS_VENDOR,
60 .dmi_match_other.field = DMI_PRODUCT_NAME,
65 .dmi_match.field = DMI_SYS_VENDOR,
67 .dmi_match_other.field = DMI_PRODUCT_NAME,
[all …]
/linux/drivers/xen/xen-pciback/
H A 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/tools/include/linux/
H A Dbitfield.h68 _pfx "value too large for the field"); \
77 * FIELD_MAX() - produce the maximum value representable by a field
78 * @_mask: shifted mask defining the field's length and position
80 * FIELD_MAX() returns the maximum value that can be held in the field
90 * FIELD_FIT() - check if value fits in the field
91 * @_mask: shifted mask defining the field's length and position
92 * @_val: value to test against the field
104 * @_mask: shifted mask defining the field's length and position
105 * @_val: value to put in the field
118 * @_mask: shifted mask defining the field'
134 field_multiplier(u64 field) field_multiplier() argument
140 field_mask(u64 field) field_mask() argument
144 field_max(field) global() argument
[all...]
/linux/drivers/infiniband/hw/hfi1/
H A Dexp_rcv.h18 #define EXP_TID_GET(tid, field) \ argument
19 (((tid) >> EXP_TID_TID##field##_SHIFT) & EXP_TID_TID##field##_MASK)
21 #define EXP_TID_SET(field, value) \ argument
22 (((value) & EXP_TID_TID##field##_MASK) << \
23 EXP_TID_TID##field##_SHIFT)
24 #define EXP_TID_CLEAR(tid, field) ({ \ argument
25 (tid) &= ~(EXP_TID_TID##field##_MASK << \
26 EXP_TID_TID##field##_SHIFT); \
28 #define EXP_TID_RESET(tid, field, value) do { \ argument
29 EXP_TID_CLEAR(tid, field); \
[all …]
/linux/drivers/clk/st/
H A 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/Documentation/userspace-api/media/v4l/
H A Dfield-order.rst14 odd and even field are transmitted, and due to a small delay between
24 object on screen may well move between one field and the next. For
26 which field of a frame is older, the *temporal order*.
28 When the driver provides or accepts images field by field rather than
31 even) fields, the *spatial order*: The first line of the top field is
33 field is the second line of that frame.
36 whether a frame commences with the top or bottom field is pointless. Any
42 Counter to intuition the top field is not necessarily the older field.
43 Whether the older field contains the top or bottom lines is a convention
49 bus in the same order they were captured, so if the top field was
[all …]
/linux/drivers/net/ethernet/mellanox/mlx4/
H A 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/include/linux/cdx/
H A Dbitfield.h18 #define CDX_VAL(field, attribute) field ## _ ## attribute argument
20 #define CDX_LOW_BIT(field) CDX_VAL(field, LBN) argument
22 #define CDX_WIDTH(field) CDX_VAL(field, WIDTH) argument
24 #define CDX_HIGH_BIT(field) (CDX_LOW_BIT(field) + CDX_WIDTH(field) - 1) argument
39 #define CDX_DWORD_FIELD(dword, field) \ argument
40 (FIELD_GET(GENMASK(CDX_HIGH_BIT(field), CDX_LOW_BIT(field)), \
47 #define CDX_INSERT_FIELD(field, value) \ argument
48 (FIELD_PREP(GENMASK(CDX_HIGH_BIT(field), \
49 CDX_LOW_BIT(field)), value))
/linux/drivers/gpu/drm/amd/include/
H A 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/drivers/hid/
H A Dhid-lg3ff.c56 memset(report->field[0]->value, 0, in hid_lg3ff_play()
57 sizeof(__s32) * report->field[0]->report_count); in hid_lg3ff_play()
69 report->field[0]->value[0] = 0x51; in hid_lg3ff_play()
75 report->field[0]->value[1] = (unsigned char)(-x); in hid_lg3ff_play()
76 report->field[0]->value[31] = (unsigned char)(-y); in hid_lg3ff_play()
94 report->field[0]->value[0] = 0x51; in hid_lg3ff_set_autocenter()
95 report->field[0]->value[1] = 0x00; in hid_lg3ff_set_autocenter()
96 report->field[0]->value[2] = 0x00; in hid_lg3ff_set_autocenter()
97 report->field[0]->value[3] = 0x7F; in hid_lg3ff_set_autocenter()
98 report->field[0]->value[4] = 0x7F; in hid_lg3ff_set_autocenter()
[all …]
H A Dhid-lg2ff.c36 lg2ff->report->field[0]->value[0] = 0x51; in play_effect()
37 lg2ff->report->field[0]->value[2] = weak; in play_effect()
38 lg2ff->report->field[0]->value[4] = strong; in play_effect()
40 lg2ff->report->field[0]->value[0] = 0xf3; in play_effect()
41 lg2ff->report->field[0]->value[2] = 0x00; in play_effect()
42 lg2ff->report->field[0]->value[4] = 0x00; in play_effect()
82 report->field[0]->value[0] = 0xf3; in lg2ff_init()
83 report->field[0]->value[1] = 0x00; in lg2ff_init()
84 report->field[0]->value[2] = 0x00; in lg2ff_init()
85 report->field[0]->value[3] = 0x00; in lg2ff_init()
[all …]
H A Dhid-core.c121 * Register a new field for this report.
126 struct hid_field *field; in hid_register_field() local
133 field = kvzalloc((sizeof(struct hid_field) + in hid_register_field()
136 if (!field) in hid_register_field()
139 field->index = report->maxfield++; in hid_register_field()
140 report->field[field->index] = field; in hid_register_field()
141 field->usage = (struct hid_usage *)(field in hid_register_field()
293 struct hid_field *field; hid_add_field() local
1129 hid_apply_multiplier_to_field(struct hid_device * hid,struct hid_field * field,struct hid_collection * multiplier_collection,int effective_multiplier) hid_apply_multiplier_to_field() argument
1163 struct hid_field *field; hid_apply_multiplier() local
1562 hid_process_event(struct hid_device * hid,struct hid_field * field,struct hid_usage * usage,__s32 value,int interrupt) hid_process_event() argument
1590 hid_array_value_is_valid(struct hid_field * field,__s32 value) hid_array_value_is_valid() argument
1610 hid_input_fetch_field(struct hid_device * hid,struct hid_field * field,__u8 * data) hid_input_fetch_field() argument
1646 hid_input_var_field(struct hid_device * hid,struct hid_field * field,int interrupt) hid_input_var_field() argument
1669 hid_input_array_field(struct hid_device * hid,struct hid_field * field,int interrupt) hid_input_array_field() argument
1716 struct hid_field *field; hid_process_report() local
1770 __hid_insert_field_entry(struct hid_device * hid,struct hid_report * report,struct hid_field_entry * entry,struct hid_field * field,unsigned int usage_index) __hid_insert_field_entry() argument
1800 struct hid_field *field; hid_report_process_ordering() local
1862 hid_output_field(const struct hid_device * hid,struct hid_field * field,__u8 * data) hid_output_field() argument
1933 hid_set_field(struct hid_field * field,unsigned offset,__s32 value) hid_set_field() argument
1973 struct hid_field *field = report->field[i]; hid_find_field() local
[all...]
H A Dhid-sensor-hub.c86 s32 index, s32 report_id, struct hid_field *field) in sensor_hub_fill_attr_info() argument
90 info->units = field->unit; in sensor_hub_fill_attr_info()
91 info->unit_expo = field->unit_exponent; in sensor_hub_fill_attr_info()
92 info->size = (field->report_size * field->report_count)/8; in sensor_hub_fill_attr_info()
93 info->logical_minimum = field->logical_minimum; in sensor_hub_fill_attr_info()
94 info->logical_maximum = field->logical_maximum; in sensor_hub_fill_attr_info()
212 ret = hid_set_field(report->field[field_index], i, in sensor_hub_set_feature()
223 ret = hid_set_field(report->field[field_index], i, in sensor_hub_set_feature()
242 struct hid_field *field; in sensor_hub_get_feature() local
259 report->field[field_index]->report_count < 1) { in sensor_hub_get_feature()
[all …]
/linux/drivers/net/ethernet/sfc/falcon/
H A Dbitfield.h45 #define EF4_VAL(field, attribute) field ## _ ## attribute argument
47 #define EF4_LOW_BIT(field) EF4_VAL(field, LBN) argument
49 #define EF4_WIDTH(field) EF4_VAL(field, WIDTH) argument
51 #define EF4_HIGH_BIT(field) (EF4_LOW_BIT(field) + EF4_WIDTH(field) - 1) argument
168 #define EF4_OWORD_FIELD64(oword, field) \ argument
169 EF4_EXTRACT_OWORD64(oword, EF4_LOW_BIT(field), \
170 EF4_HIGH_BIT(field))
172 #define EF4_QWORD_FIELD64(qword, field) \ argument
173 EF4_EXTRACT_QWORD64(qword, EF4_LOW_BIT(field), \
174 EF4_HIGH_BIT(field))
[all …]
/linux/rust/pin-init/src/
H A Dmacros.rs
/linux/drivers/clk/sophgo/
H A Dclk-cv18xx-common.c14 struct cv1800_clk_regbit *field) in cv1800_clk_setbit() argument
16 u32 mask = BIT(field->shift); in cv1800_clk_setbit()
22 value = readl(common->base + field->reg); in cv1800_clk_setbit()
23 writel(value | mask, common->base + field->reg); in cv1800_clk_setbit()
31 struct cv1800_clk_regbit *field) in cv1800_clk_clearbit() argument
33 u32 mask = BIT(field->shift); in cv1800_clk_clearbit()
39 value = readl(common->base + field->reg); in cv1800_clk_clearbit()
40 writel(value & ~mask, common->base + field->reg); in cv1800_clk_clearbit()
48 struct cv1800_clk_regbit *field) in cv1800_clk_checkbit() argument
50 return readl(common->base + field->reg) & BIT(field->shift); in cv1800_clk_checkbit()
/linux/scripts/gendwarfksyms/
H A Dkabi.c209 const char *field; in kabi_read_rules() local
213 field = get_rule_field(&rule_str, &left); in kabi_read_rules()
215 if (strcmp(field, KABI_RULE_VERSION)) in kabi_read_rules()
216 error("unsupported kABI rule version: '%s'", field); in kabi_read_rules()
219 field = get_rule_field(&rule_str, &left); in kabi_read_rules()
222 if (!strcmp(field, rule_types[i].tag)) { in kabi_read_rules()
229 error("unsupported kABI rule type: '%s'", field); in kabi_read_rules()
239 debug("kABI rule: type: '%s', target: '%s', value: '%s'", field, in kabi_read_rules()
249 static char *get_enumerator_target(const char *fqn, const char *field) in get_enumerator_target() argument
253 if (asprintf(&target, "%s %s", fqn, field) < 0) in get_enumerator_target()
[all …]

12345678910>>...52