/linux-master/arch/mips/include/uapi/asm/ |
H A D | bitfield.h | 16 #define __BITFIELD_FIELD(field, more) \ 17 field; \ 22 #define __BITFIELD_FIELD(field, more) \ 24 field;
|
/linux-master/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); 31 * void vmread_error_trampoline(unsigned long field, bool fault); 39 void vmread_error_trampoline2(unsigned long field, bool fault); 43 static __always_inline void vmcs_check16(unsigned long field) argument 45 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) & 0x6001) == 0x2000, 46 "16-bit accessor invalid for 64-bit field"); 47 BUILD_BUG_ON_MSG(__builtin_constant_p(field) && ((field) 55 vmcs_check32(unsigned long field) argument 67 vmcs_check64(unsigned long field) argument 79 vmcs_checkl(unsigned long field) argument 91 __vmcs_readl(unsigned long field) argument 153 vmcs_read16(unsigned long field) argument 161 vmcs_read32(unsigned long field) argument 169 vmcs_read64(unsigned long field) argument 181 vmcs_readl(unsigned long field) argument 223 __vmcs_writel(unsigned long field, unsigned long value) argument 228 vmcs_write16(unsigned long field, u16 value) argument 237 vmcs_write32(unsigned long field, u32 value) argument 246 vmcs_write64(unsigned long field, u64 value) argument 258 vmcs_writel(unsigned long field, unsigned long value) argument 267 vmcs_clear_bits(unsigned long field, u32 mask) argument 277 vmcs_set_bits(unsigned long field, u32 mask) argument [all...] |
H A D | vmx_onhyperv.h | 26 static __always_inline int get_evmcs_offset(unsigned long field, argument 29 int offset = evmcs_field_offset(field, clean_field); 31 WARN_ONCE(offset < 0, "accessing unsupported EVMCS field %lx\n", field); 35 static __always_inline void evmcs_write64(unsigned long field, u64 value) 38 int offset = get_evmcs_offset(field, &clean_field); 48 static __always_inline void evmcs_write32(unsigned long field, u32 value) 51 int offset = get_evmcs_offset(field, &clean_field); 60 static __always_inline void evmcs_write16(unsigned long field, u16 value) 63 int offset = get_evmcs_offset(field, [all...] |
H A D | vmx_onhyperv.c | 12 * feature which has no corresponding eVMCS field, this likely means that KVM 15 #define evmcs_check_vmcs_conf(field, ctrl) \ 17 typeof(vmcs_conf->field) unsupported; \ 19 unsupported = vmcs_conf->field & ~EVMCS1_SUPPORTED_ ## ctrl; \ 21 pr_warn_once(#field " unsupported with eVMCS: 0x%llx\n",\ 23 vmcs_conf->field &= EVMCS1_SUPPORTED_ ## ctrl; \
|
/linux-master/drivers/scsi/aic7xxx/ |
H A D | queue.h | 127 #define SLIST_FOREACH(var, head, field) \ 130 (var) = SLIST_NEXT((var), field)) 136 #define SLIST_INSERT_AFTER(slistelm, elm, field) do { \ 137 SLIST_NEXT((elm), field) = SLIST_NEXT((slistelm), field); \ 138 SLIST_NEXT((slistelm), field) = (elm); \ 141 #define SLIST_INSERT_HEAD(head, elm, field) do { \ 142 SLIST_NEXT((elm), field) = SLIST_FIRST((head)); \ 146 #define SLIST_NEXT(elm, field) ((elm)->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 SPLTIN [all...] |
/linux-master/include/linux/ |
H A D | part_stat.h | 28 #define part_stat_get_cpu(part, field, cpu) \ 29 (per_cpu_ptr((part)->bd_stats, (cpu))->field) 31 #define part_stat_get(part, field) \ 32 part_stat_get_cpu(part, field, smp_processor_id()) 34 #define part_stat_read(part, field) \ 36 typeof((part)->bd_stats->field) res = 0; \ 39 res += per_cpu_ptr((part)->bd_stats, _cpu)->field; \ 52 #define part_stat_read_accum(part, field) \ 53 (part_stat_read(part, field[STAT_READ]) + \ 54 part_stat_read(part, field[STAT_WRIT [all...] |
H A D | bitfield.h | 71 _pfx "value too large for the field"); \ 80 * FIELD_MAX() - produce the maximum value representable by a field 81 * @_mask: shifted mask defining the field's length and position 83 * FIELD_MAX() returns the maximum value that can be held in the field 93 * FIELD_FIT() - check if value fits in the field 94 * @_mask: shifted mask defining the field's length and position 95 * @_val: value to test against the field 107 * @_mask: shifted mask defining the field's length and position 108 * @_val: value to put in the field 123 * @_mask: shifted mask defining the field' 163 field_multiplier(u64 field) argument 169 field_mask(u64 field) argument [all...] |
/linux-master/drivers/clk/st/ |
H A D | clkgen.h | 22 struct clkgen_field *field) 24 return (readl(base + field->offset) >> field->shift) & field->mask; 28 static inline void clkgen_write(void __iomem *base, struct clkgen_field *field, argument 31 writel((readl(base + field->offset) & 32 ~(field->mask << field->shift)) | (val << field->shift), 33 base + field 21 clkgen_read(void __iomem *base, struct clkgen_field *field) argument [all...] |
/linux-master/scripts/ |
H A D | makelst | 15 # awk style field access 16 field() { function 22 t2=`field 6 $t1` 27 t4=`field 1 $t3` 28 t5=`field 1 $t1`
|
/linux-master/drivers/gpu/drm/amd/display/dmub/src/ |
H A D | dmub_dcn302.c | 48 #define DMUB_SF(reg, field) FD_MASK(reg, field), 52 #define DMUB_SF(reg, field) FD_SHIFT(reg, field),
|
H A D | dmub_dcn301.c | 48 #define DMUB_SF(reg, field) FD_MASK(reg, field), 52 #define DMUB_SF(reg, field) FD_SHIFT(reg, field),
|
H A D | dmub_dcn21.c | 48 #define DMUB_SF(reg, field) FD_MASK(reg, field), 52 #define DMUB_SF(reg, field) FD_SHIFT(reg, field),
|
H A D | dmub_dcn303.c | 49 #define DMUB_SF(reg, field) FD_MASK(reg, field), 53 #define DMUB_SF(reg, field) FD_SHIFT(reg, field),
|
H A D | dmub_dcn351.c | 26 #define DMUB_SF(reg, field) REG_STRUCT->mask.reg##__##field = FD_MASK(reg, field); 30 #define DMUB_SF(reg, field) REG_STRUCT->shift.reg##__##field = FD_SHIFT(reg, field);
|
H A D | dmub_dcn315.c | 55 #define DMUB_SF(reg, field) FD_MASK(reg, field), 59 #define DMUB_SF(reg, field) FD_SHIFT(reg, field),
|
H A D | dmub_dcn316.c | 55 #define DMUB_SF(reg, field) FD_MASK(reg, field), 59 #define DMUB_SF(reg, field) FD_SHIFT(reg, field),
|
/linux-master/include/net/ |
H A D | snmp.h | 52 /* mibs[] must be first field of struct ipstats_mib */ 127 #define __SNMP_INC_STATS(mib, field) \ 128 __this_cpu_inc(mib->mibs[field]) 130 #define SNMP_INC_STATS_ATOMIC_LONG(mib, field) \ 131 atomic_long_inc(&mib->mibs[field]) 133 #define SNMP_INC_STATS(mib, field) \ 134 this_cpu_inc(mib->mibs[field]) 136 #define SNMP_DEC_STATS(mib, field) \ 137 this_cpu_dec(mib->mibs[field]) 139 #define __SNMP_ADD_STATS(mib, field, adden [all...] |
/linux-master/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 19 /* Low bit number of the specified field */ 20 #define CDX_LOW_BIT(field) CDX_VAL(field, LBN) 21 /* Bit width of the specified field */ 22 #define CDX_WIDTH(field) CDX_VAL(field, WIDTH) 23 /* High bit number of the specified field */ [all...] |
/linux-master/include/trace/stages/ |
H A D | stage3_trace_output.h | 6 #define __entry field 12 #define __get_dynamic_array(field) \ 13 ((void *)__entry + (__entry->__data_loc_##field & 0xffff)) 16 #define __get_dynamic_array_len(field) \ 17 ((__entry->__data_loc_##field >> 16) & 0xffff) 20 #define __get_str(field) ((char *)__get_dynamic_array(field)) 23 #define __get_rel_dynamic_array(field) \ 25 offsetof(typeof(*__entry), __rel_loc_##field) + \ 26 sizeof(__entry->__rel_loc_##field) [all...] |
/linux-master/drivers/clk/sophgo/ |
H A D | clk-cv18xx-common.c | 14 struct cv1800_clk_regbit *field) 16 u32 mask = BIT(field->shift); 22 value = readl(common->base + field->reg); 23 writel(value | mask, common->base + field->reg); 31 struct cv1800_clk_regbit *field) 33 u32 mask = BIT(field->shift); 39 value = readl(common->base + field->reg); 40 writel(value & ~mask, common->base + field->reg); 48 struct cv1800_clk_regbit *field) 50 return readl(common->base + field 13 cv1800_clk_setbit(struct cv1800_clk_common *common, struct cv1800_clk_regbit *field) argument 30 cv1800_clk_clearbit(struct cv1800_clk_common *common, struct cv1800_clk_regbit *field) argument 47 cv1800_clk_checkbit(struct cv1800_clk_common *common, struct cv1800_clk_regbit *field) argument [all...] |
/linux-master/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' 133 field_multiplier(u64 field) argument 139 field_mask(u64 field) argument [all...] |
/linux-master/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpmac-cmd.h | 32 #define DPMAC_MASK(field) \ 33 GENMASK(DPMAC_##field##_SHIFT + DPMAC_##field##_SIZE - 1, \ 34 DPMAC_##field##_SHIFT) 36 #define dpmac_set_field(var, field, val) \ 37 ((var) |= (((val) << DPMAC_##field##_SHIFT) & DPMAC_MASK(field))) 38 #define dpmac_get_field(var, field) \ 39 (((var) & DPMAC_MASK(field)) >> DPMAC_##field##_SHIF [all...] |
/linux-master/arch/x86/tools/ |
H A D | objdump_reformat.awk | 25 if (split($0, field, /: |\t/) < 3) { 27 prev_hex = prev_hex field[2] 39 prev_addr = field[1] 40 prev_hex = field[2] 41 prev_mnemonic = field[3]
|
/linux-master/sound/pci/ctxfi/ |
H A D | cthardware.c | 64 unsigned int get_field(unsigned int data, unsigned int field) argument 68 if (WARN_ON(!field)) 70 /* @field should always be greater than 0 */ 71 for (i = 0; !(field & (1 << i)); ) 74 return (data & field) >> i; 77 void set_field(unsigned int *data, unsigned int field, unsigned int value) argument 81 if (WARN_ON(!field)) 83 /* @field should always be greater than 0 */ 84 for (i = 0; !(field & (1 << i)); ) 87 *data = (*data & (~field)) | ((valu [all...] |