/linux/arch/arm64/tools/ |
H A D | sysreg | 8 # <field> 12 # Within a Sysreg block, each field can be described as one of: 20 # Field <msb>[:<lsb>] <name> 39 # <field> 61 Field 31:0 DTRRX 66 Field 30 RX 67 Field 29 TX 73 Field 35 EHBWE 74 Field 34 EnSPM 75 Field 33 TTA [all …]
|
/linux/arch/x86/kvm/vmx/ |
H A D | vmcs12.c | 7 #define FIELD(number, name) [ROL16(number, 6)] = VMCS12_OFFSET(name) macro 9 FIELD(number, name), \ 13 FIELD(VIRTUAL_PROCESSOR_ID, virtual_processor_id), 14 FIELD(POSTED_INTR_NV, posted_intr_nv), 15 FIELD(GUEST_ES_SELECTOR, guest_es_selector), 16 FIELD(GUEST_CS_SELECTOR, guest_cs_selector), 17 FIELD(GUEST_SS_SELECTOR, guest_ss_selector), 18 FIELD(GUEST_DS_SELECTOR, guest_ds_selector), 19 FIELD(GUEST_FS_SELECTOR, guest_fs_selector), 20 FIELD(GUEST_GS_SELECTOR, guest_gs_selector), [all …]
|
H A D | tdx.h | 75 void tdh_vp_rd_failed(struct vcpu_tdx *tdx, char *uclass, u32 field, u64 err); 76 void tdh_vp_wr_failed(struct vcpu_tdx *tdx, char *uclass, char *op, u32 field, 79 static __always_inline u64 td_tdcs_exec_read64(struct kvm_tdx *kvm_tdx, u32 field) in td_tdcs_exec_read64() argument 83 err = tdh_mng_rd(&kvm_tdx->td, TDCS_EXEC(field), &data); in td_tdcs_exec_read64() 85 pr_err("TDH_MNG_RD[EXEC.0x%x] failed: 0x%llx\n", field, err); in td_tdcs_exec_read64() 91 static __always_inline void tdvps_vmcs_check(u32 field, u8 bits) in tdvps_vmcs_check() argument 96 #define VMCS_ENC_ACCESS_TYPE(field) ((field) & VMCS_ENC_ACCESS_TYPE_MASK) in tdvps_vmcs_check() argument 98 /* TDX is 64bit only. HIGH field isn't supported. */ in tdvps_vmcs_check() 99 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && in tdvps_vmcs_check() 100 VMCS_ENC_ACCESS_TYPE(field) == VMCS_ENC_ACCESS_TYPE_HIGH, in tdvps_vmcs_check() [all …]
|
H A D | tdx_arch.h | 9 /* TDX control structure (TDR/TDCS/TDVPS) field access codes */ 14 #define __BUILD_TDX_FIELD(non_arch, class, field) \ argument 17 ((u64)(field) & TDX_FIELD_MASK)) 19 #define BUILD_TDX_FIELD(class, field) \ argument 20 __BUILD_TDX_FIELD(false, (class), (field)) 22 #define BUILD_TDX_FIELD_NON_ARCH(class, field) \ argument 23 __BUILD_TDX_FIELD(true, (class), (field)) 51 /* @field is any of enum tdx_tdcs_execution_control */ 52 #define TDCS_EXEC(field) BUILD_TDX_FIELD(TD_CLASS_EXECUTION_CONTROLS, (field)) argument 54 /* @field is the VMCS field encoding */ [all …]
|
/linux/drivers/scsi/aic7xxx/ |
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 …]
|
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 …]
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | sdma_v6_0_0_pkt_open.h | 107 /*define for op field*/ 113 /*define for sub_op field*/ 119 /*define for encrypt field*/ 125 /*define for tmz field*/ 131 /*define for cpv field*/ 137 /*define for backwards field*/ 143 /*define for broadcast field*/ 150 /*define for count field*/ 157 /*define for dst_sw field*/ 163 /*define for dst_cache_policy field*/ [all …]
|
H A D | tonga_sdma_pkt_open.h | 53 /*define for op field*/ 59 /*define for sub_op field*/ 70 /*define for op field*/ 76 /*define for sub_op field*/ 82 /*define for broadcast field*/ 89 /*define for count field*/ 96 /*define for dst_sw field*/ 102 /*define for dst_ha field*/ 108 /*define for src_sw field*/ 114 /*define for src_ha field*/ [all …]
|
H A D | iceland_sdma_pkt_open.h | 53 /*define for op field*/ 59 /*define for sub_op field*/ 70 /*define for op field*/ 76 /*define for sub_op field*/ 82 /*define for broadcast field*/ 89 /*define for count field*/ 96 /*define for dst_sw field*/ 102 /*define for dst_ha field*/ 108 /*define for src_sw field*/ 114 /*define for src_ha field*/ [all …]
|
/linux/Documentation/userspace-api/media/v4l/ |
H A D | field-order.rst | 6 Field Order 13 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 [all …]
|
/linux/arch/arm/mach-sa1100/include/mach/ |
H A D | bitfield.h | 29 * The macro "Fld" encodes a bit field, given its size and its shift value 35 * field's mask is cumbersome and might break the assembler (255-character 39 * Size Size of the bit field, in number of bits. 40 * Shft Shift value of the bit field with respect to bit 0. 43 * Fld Encoded bit field. 55 * bit field. 58 * Field Encoded bit field (using the macro "Fld"). 61 * FSize Size of the bit field, in number of bits. 62 * FShft Shift value of the bit field with respect to bit 0. 63 * FMsk Mask for the bit field. [all …]
|
/linux/arch/s390/include/asm/ |
H A D | scsw.h | 237 * scsw_key - return scsw key field 240 * Return the value of the key field of the specified scsw, regardless of 252 * scsw_eswf - return scsw eswf field 255 * Return the value of the eswf field of the specified scsw, regardless of 267 * scsw_cc - return scsw cc field 270 * Return the value of the cc field of the specified scsw, regardless of 282 * scsw_ectl - return scsw ectl field 285 * Return the value of the ectl field of the specified scsw, regardless of 297 * scsw_pno - return scsw pno field 300 * Return the value of the pno field of the specified scsw, regardless of [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/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() 448 * @entry: The trace entry field from the ring buffer [all …]
|
H A D | trace_events_inject.c | 39 struct ftrace_event_field *field; in parse_field() local 47 /* First find the field to associate to */ in parse_field() 60 field = trace_find_event_field(call, field_name); in parse_field() 62 if (!field) in parse_field() 65 *pf = field; in parse_field() 78 /* Make sure the field is not a string */ in parse_field() 79 if (is_string_field(field)) in parse_field() 94 if (field->is_signed) in parse_field() 107 /* Make sure the field is OK for strings */ in parse_field() 108 if (!is_string_field(field)) in parse_field() [all …]
|
/linux/tools/include/linux/ |
H A D | bitfield.h | 67 _pfx "value too large for the field"); \ 76 * FIELD_MAX() - produce the maximum value representable by a field 77 * @_mask: shifted mask defining the field's length and position 79 * FIELD_MAX() returns the maximum value that can be held in the field 89 * FIELD_FIT() - check if value fits in the field 90 * @_mask: shifted mask defining the field's length and position 91 * @_val: value to test against the field 103 * @_mask: shifted mask defining the field's length and position 104 * @_val: value to put in the field 117 * @_mask: shifted mask defining the field's length and position [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/sound/soc/codecs/ |
H A D | tscs42xx.h | 121 /* Field Offsets */ 124 /* Field Masks */ 127 /* Field Values */ 144 /* Field Offsets */ 147 /* Field Masks */ 150 /* Field Values */ 167 /* Field Offsets */ 170 /* Field Masks */ 173 /* Field Values */ 192 /* Field Offsets */ [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/drivers/acpi/acpica/ |
H A D | exfield.c | 47 * The following macros determine a given offset is a COMD field. 49 * 2-byte COMD field at offset 4 and master subspaces (type 3) contains a 4-byte 50 * COMD field starting at offset 12. 60 * field access attributes 78 "Invalid Field/AccessAs protocol ID: 0x%4.4X", in acpi_ex_get_protocol_buffer_length() 93 * obj_desc - The named field 98 * DESCRIPTION: Read from a named field. Returns either an Integer or a 99 * Buffer, depending on the size of the field and whether if a 100 * field is created by the create_field() operator. 137 (obj_desc->field.region_obj->region.space_id == in acpi_ex_read_data_from_field() [all …]
|
H A D | exprep.c | 4 * Module Name: exprep - ACPI AML field prep utilities 35 * PARAMETERS: field_bit_offset - Start of field within parent region/buffer 36 * field_bit_length - Length of field in bits 39 * RETURN: Field granularity (8, 16, 32 or 64) and 69 /* Round Field start offset and length to "minimal" byte boundaries */ in acpi_ex_generate_access() 122 "Field Start %u, Field End %u -- requires %u accesses\n", in acpi_ex_generate_access() 130 "Entire field can be accessed " in acpi_ex_generate_access() 150 "Field goes beyond end-of-region!\n")); in acpi_ex_generate_access() 152 /* Field does not fit in the region at all */ in acpi_ex_generate_access() 169 * Could not read/write field with one operation, in acpi_ex_generate_access() [all …]
|
/linux/drivers/cdx/controller/ |
H A D | bitfield.h | 17 /* Specified attribute (e.g. LBN) of the specified field */ 18 #define CDX_VAL(field, attribute) field ## _ ## attribute argument 19 /* Low bit number of the specified field */ 20 #define CDX_LOW_BIT(field) CDX_VAL(field, LBN) argument 21 /* Bit width of the specified field */ 22 #define CDX_WIDTH(field) CDX_VAL(field, WIDTH) argument 23 /* High bit number of the specified field */ 24 #define CDX_HIGH_BIT(field) (CDX_LOW_BIT(field) + CDX_WIDTH(field) - 1) argument 36 * Extract bit field portion [low,high) from the 32-bit little-endian 39 #define CDX_DWORD_FIELD(dword, field) \ argument [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/drivers/net/ethernet/sfc/falcon/ |
H A D | bitfield.h | 44 /* Specified attribute (e.g. LBN) of the specified field */ 45 #define EF4_VAL(field, attribute) field ## _ ## attribute argument 46 /* Low bit number of the specified field */ 47 #define EF4_LOW_BIT(field) EF4_VAL(field, LBN) argument 48 /* Bit width of the specified field */ 49 #define EF4_WIDTH(field) EF4_VAL(field, WIDTH) argument 50 /* High bit number of the specified field */ 51 #define EF4_HIGH_BIT(field) (EF4_LOW_BIT(field) + EF4_WIDTH(field) - 1) argument 52 /* Mask equal in width to the specified field. 54 * For example, a field with width 5 would have a mask of 0x1f. [all …]
|