| /linux/drivers/scsi/aic7xxx/ |
| H A D | queue.h | 127 #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 D | aic79xx.reg | 102 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 D | aic7xxx.reg | 71 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 D | vmx_ops.h | 13 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 D | tdx.h | 79 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 …]
|
| H A D | vmx_onhyperv.h | 26 static __always_inline int get_evmcs_offset(unsigned long field, in get_evmcs_offset() argument 29 int offset = evmcs_field_offset(field, clean_field); in get_evmcs_offset() 31 WARN_ONCE(offset < 0, "accessing unsupported EVMCS field %lx\n", field); in get_evmcs_offset() 35 static __always_inline void evmcs_write64(unsigned long field, u64 value) in evmcs_write64() argument 38 int offset = get_evmcs_offset(field, &clean_field); in evmcs_write64() 48 static __always_inline void evmcs_write32(unsigned long field, u32 value) in evmcs_write32() argument 51 int offset = get_evmcs_offset(field, &clean_field); in evmcs_write32() 60 static __always_inline void evmcs_write16(unsigned long field, u16 value) in evmcs_write16() argument 63 int offset = get_evmcs_offset(field, &clean_field); in evmcs_write16() 72 static __always_inline u64 evmcs_read64(unsigned long field) in evmcs_read64() argument [all …]
|
| /linux/tools/net/sunrpc/xdrgen/generators/ |
| H A D | pointer.py | 26 environment: Environment, field: _XdrDeclaration 29 if isinstance(field, _XdrBasic): 30 template = get_jinja2_template(environment, "definition", field.template) 33 name=field.name, 34 type=kernel_c_type(field.spec), 35 classifier=field.spec.c_classifier, 38 elif isinstance(field, _XdrFixedLengthOpaque): 39 template = get_jinja2_template(environment, "definition", field.template) 42 name=field.name, 43 size=field.size, [all …]
|
| H A D | struct.py | 26 environment: Environment, field: _XdrDeclaration 29 if isinstance(field, _XdrBasic): 30 template = get_jinja2_template(environment, "definition", field.template) 33 name=field.name, 34 type=kernel_c_type(field.spec), 35 classifier=field.spec.c_classifier, 38 elif isinstance(field, _XdrFixedLengthOpaque): 39 template = get_jinja2_template(environment, "definition", field.template) 42 name=field.name, 43 size=field.size, [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/inc/ |
| H A D | dml2_debug.h | 14 #define _BOOL_FORMAT(field) "%s", field ? "true" : "false" argument 15 #define _UINT_FORMAT(field) "%u", field argument 16 #define _INT_FORMAT(field) "%d", field argument 17 #define _DOUBLE_FORMAT(field) "%lf", field argument 27 #define _LOG_SCALAR(field, format) do { \ argument 28 DML_LOG_INTERNAL(#field" = "format(field)); \ 31 #define _LOG_ARRAY(field, size, format) do { \ argument 32 DML_LOG_INTERNAL(#field " = ["); \ 34 DML_LOG_INTERNAL(format(field[_i])); \ 40 #define _LOG_2D_ARRAY(field, size0, size1, format) do { \ argument [all …]
|
| /linux/rust/syn/gen/ |
| H A D | debug.rs | 13 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 D | part_stat.h | 28 #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 D | trace_output.c | 34 struct bputs_entry *field; in trace_print_bputs_msg_only() local 36 trace_assign_type(field, entry); in trace_print_bputs_msg_only() 38 trace_seq_puts(s, field->str); in trace_print_bputs_msg_only() 47 struct bprint_entry *field; in trace_print_bprintk_msg_only() local 49 trace_assign_type(field, entry); in trace_print_bprintk_msg_only() 51 trace_seq_bprintf(s, field->fmt, field->buf); in trace_print_bprintk_msg_only() 60 struct print_entry *field; in trace_print_printk_msg_only() local 62 trace_assign_type(field, entry); in trace_print_printk_msg_only() 64 trace_seq_puts(s, field->buf); in trace_print_printk_msg_only() 941 struct ftrace_event_field *field) in print_array() argument [all …]
|
| H A D | trace_events_inject.c | 39 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/infiniband/hw/mlx5/ |
| H A D | cong.c | 104 static u32 mlx5_get_cc_param_val(void *field, int offset) in mlx5_get_cc_param_val() argument 108 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 111 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 114 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 117 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 120 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 123 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 126 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 129 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 132 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() [all …]
|
| /linux/include/net/ |
| H A D | snmp.h | 122 #define __SNMP_INC_STATS(mib, field) \ argument 123 __this_cpu_inc(mib->mibs[field]) 125 #define SNMP_INC_STATS_ATOMIC_LONG(mib, field) \ argument 126 atomic_long_inc(&mib->mibs[field]) 128 #define SNMP_INC_STATS(mib, field) \ argument 129 this_cpu_inc(mib->mibs[field]) 131 #define SNMP_DEC_STATS(mib, field) \ argument 132 this_cpu_dec(mib->mibs[field]) 134 #define __SNMP_ADD_STATS(mib, field, addend) \ argument 135 __this_cpu_add(mib->mibs[field], addend) [all …]
|
| /linux/include/trace/stages/ |
| H A D | stage3_trace_output.h | 6 #define __entry field 12 #define __get_dynamic_array(field) \ argument 13 ((void *)__entry + (__entry->__data_loc_##field & 0xffff)) 16 #define __get_dynamic_array_len(field) \ argument 17 ((__entry->__data_loc_##field >> 16) & 0xffff) 20 #define __get_str(field) ((char *)__get_dynamic_array(field)) argument 23 #define __get_rel_dynamic_array(field) \ argument 25 offsetof(typeof(*__entry), __rel_loc_##field) + \ 26 sizeof(__entry->__rel_loc_##field) + \ 27 (__entry->__rel_loc_##field & 0xffff)) [all …]
|
| /linux/drivers/gpu/nova-core/ |
| H A D | bitfield.rs | 120 $($hi:tt:$lo:tt $field:ident as $type:tt 130 $hi:$lo $field as $type 137 bitfield!(@debug $name { $($field;)* }); 138 bitfield!(@default $name { $($field;)* }); 144 $($hi:tt:$lo:tt $field:ident as $type:tt 153 bitfield!(@check_field_bounds $hi:$lo $field as $type); 159 bitfield!(@field_accessor $vis $name $storage, $hi:$lo $field as $type 170 (@check_field_bounds $hi:tt:$lo:tt $field:ident as bool) => { 175 concat!("boolean field `", stringify!($field), "` covers more than one bit") 181 (@check_field_bounds $hi:tt:$lo:tt $field:ident as $type:tt) => { [all …]
|
| /linux/drivers/xen/xen-pciback/ |
| H A D | conf_space.c | 47 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 D | bitfield.h | 134 static __always_inline u64 field_multiplier(u64 field) in field_multiplier() argument 136 if ((field | (field - 1)) & ((field | (field - 1)) + 1)) in field_multiplier() 138 return field & -field; in field_multiplier() 140 static __always_inline u64 field_mask(u64 field) in field_mask() argument 142 return field / field_multiplier(field); in field_mask() 144 #define field_max(field) ((typeof(field))field_mask(field)) argument 146 static __always_inline __##type type##_encode_bits(base v, base field) \ 148 if (__builtin_constant_p(v) && (v & ~field_mask(field))) \ 150 return to((v & field_mask(field)) * field_multiplier(field)); \ 153 base val, base field) \ [all …]
|
| /linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
| H A D | smu_helper.h | 97 extern uint32_t phm_set_field_to_u32(u32 offset, u32 original_data, u32 field, u32 size); 137 #define PHM_FIELD_SHIFT(reg, field) reg##__##field##__SHIFT argument 138 #define PHM_FIELD_MASK(reg, field) reg##__##field##_MASK argument 140 #define PHM_SET_FIELD(origval, reg, field, fieldval) \ argument 141 (((origval) & ~PHM_FIELD_MASK(reg, field)) | \ 142 (PHM_FIELD_MASK(reg, field) & ((fieldval) << PHM_FIELD_SHIFT(reg, field)))) 144 #define PHM_GET_FIELD(value, reg, field) \ argument 145 (((value) & PHM_FIELD_MASK(reg, field)) >> \ 146 PHM_FIELD_SHIFT(reg, field)) 151 #define PHM_READ_FIELD(device, reg, field) \ argument [all …]
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_panel_backlight_quirks.c | 12 enum dmi_field field; member 26 .dmi_match.field = DMI_BOARD_VENDOR, 34 .dmi_match.field = DMI_BOARD_VENDOR, 42 .dmi_match.field = DMI_BOARD_VENDOR, 50 .dmi_match.field = DMI_SYS_VENDOR, 52 .dmi_match_other.field = DMI_PRODUCT_NAME, 57 .dmi_match.field = DMI_SYS_VENDOR, 59 .dmi_match_other.field = DMI_PRODUCT_NAME, 65 .dmi_match.field = DMI_SYS_VENDOR, 67 .dmi_match_other.field = DMI_PRODUCT_NAME, [all …]
|
| /linux/arch/arm64/tools/ |
| H A D | gen-sysreg.awk | 57 function define_field(prefix, reg, field, msb, lsb) { 58 define(prefix, reg "_" field, "GENMASK(" msb ", " lsb ")") 59 define(prefix, reg "_" field "_MASK", "GENMASK(" msb ", " lsb ")") 60 define(prefix, reg "_" field "_SHIFT", lsb) 61 define(prefix, reg "_" field "_WIDTH", msb - lsb + 1) 65 function define_field_sign(prefix, reg, field, sign) { 66 define(prefix, reg "_" field "_SIGNED", sign) 82 function parse_bitdef(reg, field, bitdef, _bits) 96 fatal(reg "." field " starts at " msb " not " next_bit) 98 fatal(reg "." field " invalid high bit in '" bitdef "'") [all …]
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | exp_rcv.h | 18 #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/net/ethernet/mellanox/mlx4/ |
| H A D | fw.c | 209 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/Documentation/userspace-api/media/v4l/ |
| H A D | field-order.rst | 14 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 …]
|