/openbmc/openbmc/poky/meta/recipes-core/musl/bsd-headers/ |
H A D | sys-queue.h | 125 #define SLIST_NEXT(elm, field) ((elm)->field.sle_next) argument 127 #define SLIST_FOREACH(var, head, field) \ argument 130 (var) = (var)->field.sle_next) 132 #define SLIST_FOREACH_SAFE(var, head, field, tvar) \ argument 135 ((tvar) = SLIST_NEXT((var), field), 1); \ 145 #define SLIST_INSERT_AFTER(slistelm, elm, field) do { \ argument 146 (elm)->field.sle_next = (slistelm)->field.sle_next; \ 147 (slistelm)->field.sle_next = (elm); \ 150 #define SLIST_INSERT_HEAD(head, elm, field) do { \ argument 151 (elm)->field.sle_next = (head)->slh_first; \ [all …]
|
H A D | sys-tree.h | 76 #define SPLAY_LEFT(elm, field) (elm)->field.spe_left argument 77 #define SPLAY_RIGHT(elm, field) (elm)->field.spe_right argument 82 #define SPLAY_ROTATE_RIGHT(head, tmp, field) do { \ argument 83 SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(tmp, field); \ 84 SPLAY_RIGHT(tmp, field) = (head)->sph_root; \ 88 #define SPLAY_ROTATE_LEFT(head, tmp, field) do { \ argument 89 SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(tmp, field); \ 90 SPLAY_LEFT(tmp, field) = (head)->sph_root; \ 94 #define SPLAY_LINKLEFT(head, tmp, field) do { \ argument 95 SPLAY_LEFT(tmp, field) = (head)->sph_root; \ [all …]
|
/openbmc/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 …]
|
/openbmc/qemu/include/qemu/ |
H A D | rcu_queue.h | 36 #define QLIST_NEXT_RCU(elm, field) (qatomic_rcu_read(&(elm)->field.le_next)) argument 61 #define QLIST_INSERT_AFTER_RCU(listelm, elm, field) do { \ argument 62 (elm)->field.le_next = (listelm)->field.le_next; \ 63 (elm)->field.le_prev = &(listelm)->field.le_next; \ 64 qatomic_rcu_set(&(listelm)->field.le_next, (elm)); \ 65 if ((elm)->field.le_next != NULL) { \ 66 (elm)->field.le_next->field.le_prev = \ 67 &(elm)->field.le_next; \ 77 #define QLIST_INSERT_BEFORE_RCU(listelm, elm, field) do { \ argument 78 (elm)->field.le_prev = (listelm)->field.le_prev; \ [all …]
|
H A D | queue.h | 105 #define QLIST_SWAP(dstlist, srclist, field) do { \ argument 110 (srclist)->lh_first->field.le_prev = &(srclist)->lh_first; \ 114 (dstlist)->lh_first->field.le_prev = &(dstlist)->lh_first; \ 118 #define QLIST_INSERT_AFTER(listelm, elm, field) do { \ argument 119 if (((elm)->field.le_next = (listelm)->field.le_next) != NULL) \ 120 (listelm)->field.le_next->field.le_prev = \ 121 &(elm)->field.le_next; \ 122 (listelm)->field.le_next = (elm); \ 123 (elm)->field.le_prev = &(listelm)->field.le_next; \ 126 #define QLIST_INSERT_BEFORE(listelm, elm, field) do { \ argument [all …]
|
/openbmc/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 | vmx_onhyperv.h | 25 static __always_inline int get_evmcs_offset(unsigned long field, in get_evmcs_offset() argument 28 int offset = evmcs_field_offset(field, clean_field); in get_evmcs_offset() 30 WARN_ONCE(offset < 0, "accessing unsupported EVMCS field %lx\n", field); in get_evmcs_offset() 34 static __always_inline void evmcs_write64(unsigned long field, u64 value) in evmcs_write64() argument 37 int offset = get_evmcs_offset(field, &clean_field); in evmcs_write64() 47 static __always_inline void evmcs_write32(unsigned long field, u32 value) in evmcs_write32() argument 50 int offset = get_evmcs_offset(field, &clean_field); in evmcs_write32() 59 static __always_inline void evmcs_write16(unsigned long field, u16 value) in evmcs_write16() argument 62 int offset = get_evmcs_offset(field, &clean_field); in evmcs_write16() 71 static __always_inline u64 evmcs_read64(unsigned long field) in evmcs_read64() argument [all …]
|
/openbmc/qemu/include/hw/ |
H A D | registerfields.h | 42 #define FIELD(reg, field, shift, length) \ argument 43 enum { R_ ## reg ## _ ## field ## _SHIFT = (shift)}; \ 44 enum { R_ ## reg ## _ ## field ## _LENGTH = (length)}; \ 45 enum { R_ ## reg ## _ ## field ## _MASK = \ 49 #define FIELD_EX8(storage, reg, field) \ argument 50 extract8((storage), R_ ## reg ## _ ## field ## _SHIFT, \ 51 R_ ## reg ## _ ## field ## _LENGTH) 52 #define FIELD_EX16(storage, reg, field) \ argument 53 extract16((storage), R_ ## reg ## _ ## field ## _SHIFT, \ 54 R_ ## reg ## _ ## field ## _LENGTH) [all …]
|
/openbmc/u-boot/common/eeprom/ |
H A D | eeprom_field.c | 13 static void __eeprom_field_print_bin(const struct eeprom_field *field, in __eeprom_field_print_bin() argument 17 int from = reverse ? field->size - 1 : 0; in __eeprom_field_print_bin() 18 int to = reverse ? 0 : field->size - 1; in __eeprom_field_print_bin() 20 printf(PRINT_FIELD_SEGMENT, field->name); in __eeprom_field_print_bin() 22 printf("%02x%s", field->buf[i], delimiter); in __eeprom_field_print_bin() 24 printf("%02x\n", field->buf[i]); in __eeprom_field_print_bin() 27 static int __eeprom_field_update_bin(struct eeprom_field *field, in __eeprom_field_update_bin() argument 36 if (len > field->size * 2) in __eeprom_field_update_bin() 39 memset(field->buf, 0, field->size); in __eeprom_field_update_bin() 42 for (j = 0; j < field->size; j++) { in __eeprom_field_update_bin() [all …]
|
/openbmc/qemu/migration/ |
H A D | vmstate.c | 32 vmstate_field_exists(const VMStateDescription *vmsd, const VMStateField *field, in vmstate_field_exists() argument 37 if (field->field_exists) { in vmstate_field_exists() 39 result = field->field_exists(opaque, version_id); in vmstate_field_exists() 40 trace_vmstate_field_exists(vmsd->name, field->name, field->version_id, in vmstate_field_exists() 48 result = field->version_id <= version_id; in vmstate_field_exists() 60 vmsd_create_fake_nullptr_field(const VMStateField *field) in vmsd_create_fake_nullptr_field() argument 65 assert(field->flags & VMS_ARRAY_OF_POINTER); in vmsd_create_fake_nullptr_field() 68 fake->name = field->name; in vmsd_create_fake_nullptr_field() 69 fake->version_id = field->version_id; in vmsd_create_fake_nullptr_field() 84 static int vmstate_n_elems(void *opaque, const VMStateField *field) in vmstate_n_elems() argument [all …]
|
H A D | vmstate-types.c | 25 const VMStateField *field) in get_bool() argument 33 const VMStateField *field, JSONWriter *vmdesc) in put_bool() argument 49 const VMStateField *field) in get_int8() argument 57 const VMStateField *field, JSONWriter *vmdesc) in put_int8() argument 73 const VMStateField *field) in get_int16() argument 81 const VMStateField *field, JSONWriter *vmdesc) in put_int16() argument 97 const VMStateField *field) in get_int32() argument 105 const VMStateField *field, JSONWriter *vmdesc) in put_int32() argument 122 const VMStateField *field) in get_int32_equal() argument 132 if (field->err_hint) { in get_int32_equal() [all …]
|
/openbmc/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((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 …]
|
H A D | bitfield.h | 162 static __always_inline u64 field_multiplier(u64 field) in field_multiplier() argument 164 if ((field | (field - 1)) & ((field | (field - 1)) + 1)) in field_multiplier() 166 return field & -field; in field_multiplier() 168 static __always_inline u64 field_mask(u64 field) in field_mask() argument 170 return field / field_multiplier(field); in field_mask() 172 #define field_max(field) ((typeof(field))field_mask(field)) argument 174 static __always_inline __##type type##_encode_bits(base v, base field) \ 176 if (__builtin_constant_p(v) && (v & ~field_mask(field))) \ 178 return to((v & field_mask(field)) * field_multiplier(field)); \ 181 base val, base field) \ [all …]
|
/openbmc/u-boot/tools/ |
H A D | rkmux.py | 76 field = lines[0] 78 if field in ['reserved', 'reserve', 'write_enable', 'write_mask']: 80 if field.endswith('_sel') or field.endswith('_con'): 81 field = field[:-4] 82 elif field.endswith(' iomux'): 83 field = field[:-6] 84 elif field.endswith('_mode') or field.endswith('_mask'): 85 field = field[:-5] 89 field = field.upper() 101 out_enum(field, 'shift', bit_low) [all …]
|
/openbmc/linux/kernel/trace/ |
H A D | trace_output.c | 29 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() 819 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 …]
|
/openbmc/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 …]
|
/openbmc/linux/include/net/ |
H A D | snmp.h | 127 #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 …]
|
/openbmc/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 …]
|
/openbmc/linux/arch/arm64/tools/ |
H A D | gen-sysreg.awk | 52 function define_field(reg, field, msb, lsb) { 53 define(reg "_" field, "GENMASK(" msb ", " lsb ")") 54 define(reg "_" field "_MASK", "GENMASK(" msb ", " lsb ")") 55 define(reg "_" field "_SHIFT", lsb) 56 define(reg "_" field "_WIDTH", msb - lsb + 1) 60 function define_field_sign(reg, field, sign) { 61 define(reg "_" field "_SIGNED", sign) 65 function parse_bitdef(reg, field, bitdef, _bits) 79 fatal(reg "." field " starts at " msb " not " next_bit) 81 fatal(reg "." field " invalid high bit in '" bitdef "'") [all …]
|
/openbmc/linux/tools/include/linux/ |
H A D | bitfield.h | 133 static __always_inline u64 field_multiplier(u64 field) in field_multiplier() argument 135 if ((field | (field - 1)) & ((field | (field - 1)) + 1)) in field_multiplier() 137 return field & -field; in field_multiplier() 139 static __always_inline u64 field_mask(u64 field) in field_mask() argument 141 return field / field_multiplier(field); in field_mask() 143 #define field_max(field) ((typeof(field))field_mask(field)) argument 145 static __always_inline __##type type##_encode_bits(base v, base field) \ 147 if (__builtin_constant_p(v) && (v & ~field_mask(field))) \ 149 return to((v & field_mask(field)) * field_multiplier(field)); \ 152 base val, base field) \ [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|