Home
last modified time | relevance | path

Searched refs:_type (Results 1 – 25 of 203) sorted by relevance

123456789

/openbmc/u-boot/include/
H A Dlinker_lists.h29 #define llsym(_type, _name, _list) \ argument
30 ((_type *)&_u_boot_list_2_##_list##_2_##_name)
70 #define ll_entry_declare(_type, _name, _list) \ argument
71 _type _u_boot_list_2_##_list##_2_##_name __aligned(4) \
93 #define ll_entry_declare_list(_type, _name, _list) \ argument
94 _type _u_boot_list_2_##_list##_2_##_name[] __aligned(4) \
125 #define ll_entry_start(_type, _list) \ argument
129 (_type *)&start; \
151 #define ll_entry_end(_type, _list) \ argument
155 (_type *)&end; \
[all …]
H A Dbinman_sym.h35 #define binman_sym_declare(_type, _entry_name, _prop_name) \ argument
36 _type binman_symname(_entry_name, _prop_name) \
46 #define binman_sym_extern(_type, _entry_name, _prop_name) \ argument
47 extern _type binman_symname(_entry_name, _prop_name) \
60 #define binman_sym_declare_optional(_type, _entry_name, _prop_name) \ argument
61 _type binman_symname(_entry_name, _prop_name) \
77 #define binman_sym(_type, _entry_name, _prop_name) \ argument
78 (*(_type *)&binman_symname(_entry_name, _prop_name))
82 #define binman_sym_declare(_type, _entry_name, _prop_name) argument
84 #define binman_sym_declare_optional(_type, _entry_name, _prop_name) argument
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Ditem.h258 #define __ITEM_NAME(_type, _cname, _iname) \ argument
259 mlxsw_##_type##_##_cname##_##_iname##_item
266 #define MLXSW_ITEM8(_type, _cname, _iname, _offset, _shift, _sizebits) \ argument
267 static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
271 .name = #_type "_" #_cname "_" #_iname, \
274 mlxsw_##_type##_##_cname##_##_iname##_get(const char *buf) \
276 return __mlxsw_item_get8(buf, &__ITEM_NAME(_type, _cname, _iname), 0); \
279 mlxsw_##_type##_##_cname##_##_iname##_set(char *buf, u8 val) \
281 __mlxsw_item_set8(buf, &__ITEM_NAME(_type, _cname, _iname), 0, val); \
284 #define MLXSW_ITEM8_INDEXED(_type, _cname, _iname, _offset, _shift, _sizebits, \ argument
[all …]
/openbmc/linux/kernel/trace/
H A Dtrace_export.c89 #define __field_ext(_type, _item, _filter_type) { \ argument
90 .type = #_type, .name = #_item, \
91 .size = sizeof(_type), .align = __alignof__(_type), \
92 is_signed_type(_type), .filter_type = _filter_type },
96 #define __field_ext_packed(_type, _item, _filter_type) { \ argument
97 .type = #_type, .name = #_item, \
98 .size = sizeof(_type), .align = 1, \
99 is_signed_type(_type), .filter_type = _filter_type },
102 #define __field(_type, _item) __field_ext(_type, _item, FILTER_OTHER) argument
105 #define __field_fn(_type, _item) __field_ext(_type, _item, FILTER_TRACE_FN) argument
[all …]
/openbmc/linux/include/trace/stages/
H A Dstage4_event_fields.h8 #define __field_ext(_type, _item, _filter_type) { \ argument
9 .type = #_type, .name = #_item, \
10 .size = sizeof(_type), .align = ALIGN_STRUCTFIELD(_type), \
11 .is_signed = is_signed_type(_type), .filter_type = _filter_type },
14 #define __field_struct_ext(_type, _item, _filter_type) { \ argument
15 .type = #_type, .name = #_item, \
16 .size = sizeof(_type), .align = ALIGN_STRUCTFIELD(_type), \
26 #define __array(_type, _item, _len) { \ argument
27 .type = #_type"["__stringify(_len)"]", .name = #_item, \
28 .size = sizeof(_type[_len]), .align = ALIGN_STRUCTFIELD(_type), \
[all …]
/openbmc/qemu/include/migration/
H A Dvmstate.h267 #define vmstate_offset_value(_state, _field, _type) \ argument
269 type_check(_type, typeof_field(_state, _field)))
271 #define vmstate_offset_pointer(_state, _field, _type) \ argument
273 type_check_pointer(_type, typeof_field(_state, _field)))
275 #define vmstate_offset_array(_state, _field, _type, _num) \ argument
277 type_check_array(_type, typeof_field(_state, _field), _num))
279 #define vmstate_offset_2darray(_state, _field, _type, _n1, _n2) \ argument
281 type_check_2darray(_type, typeof_field(_state, _field), _n1, _n2))
283 #define vmstate_offset_sub_array(_state, _field, _type, _start) \ argument
284 vmstate_offset_value(_state, _field[_start], _type)
[all …]
/openbmc/linux/include/linux/
H A Dcleanup.h37 #define DEFINE_FREE(_name, _type, _free) \ argument
38 static inline void __free_##_name(void *p) { _type _T = *(_type *)p; _free; }
71 #define DEFINE_CLASS(_name, _type, _exit, _init, _init_args...) \ argument
72 typedef _type class_##_name##_t; \
73 static inline void class_##_name##_destructor(_type *p) \
74 { _type _T = *p; _exit; } \
75 static inline _type class_##_name##_constructor(_init_args) \
76 { _type t = _init; return t; }
105 #define DEFINE_GUARD(_name, _type, _lock, _unlock) \ argument
106 DEFINE_CLASS(_name, _type, _unlock, ({ _lock; _T; }), _type _T)
[all …]
/openbmc/linux/include/rdma/
H A Duverbs_std_types.h24 #define uobj_get_read(_type, _id, _attrs) \ argument
25 rdma_lookup_get_uobject(uobj_get_type(_attrs, _type), (_attrs)->ufile, \
29 #define ufd_get_read(_type, _fdnum, _attrs) \ argument
30 rdma_lookup_get_uobject(uobj_get_type(_attrs, _type), (_attrs)->ufile, \
40 #define uobj_get_obj_read(_object, _type, _id, _attrs) \ argument
42 uobj_get_read(_type, _id, _attrs)))
44 #define uobj_get_write(_type, _id, _attrs) \ argument
45 rdma_lookup_get_uobject(uobj_get_type(_attrs, _type), (_attrs)->ufile, \
51 #define uobj_perform_destroy(_type, _id, _attrs) \ argument
52 __uobj_perform_destroy(uobj_get_type(_attrs, _type), \
[all …]
/openbmc/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_blit.c38 #define VMW_FIND_FIRST_DIFF(_type) \ argument
39 static size_t vmw_find_first_diff_ ## _type \
40 (const _type * dst, const _type * src, size_t size)\
44 for (i = 0; i < size; i += sizeof(_type)) { \
59 #define VMW_FIND_LAST_DIFF(_type) \ argument
60 static ssize_t vmw_find_last_diff_ ## _type( \
61 const _type * dst, const _type * src, size_t size) \
67 size -= sizeof(_type); \
95 #define SPILL(_var, _type) ((unsigned long) _var & (sizeof(_type) - 1)) argument
105 #define VMW_TRY_FIND_FIRST_DIFF(_type) \ argument
[all …]
/openbmc/linux/include/drm/
H A Ddrm_kunit_helpers.h44 #define drm_kunit_helper_alloc_drm_device_with_driver(_test, _dev, _type, _member, _drv) \ argument
45 ((_type *)__drm_kunit_helper_alloc_drm_device_with_driver(_test, _dev, \
46 sizeof(_type), \
47 offsetof(_type, _member), \
89 #define drm_kunit_helper_alloc_drm_device(_test, _dev, _type, _member, _feat) \ argument
90 ((_type *)__drm_kunit_helper_alloc_drm_device(_test, _dev, \
91 sizeof(_type), \
92 offsetof(_type, _member), \
/openbmc/qemu/include/hw/
H A Dqdev-properties.h67 #define DEFINE_PROP(_name, _state, _field, _prop, _type, ...) { \ argument
71 + type_check(_type, typeof_field(_state, _field)), \
75 #define DEFINE_PROP_SIGNED(_name, _state, _field, _defval, _prop, _type) \ argument
76 DEFINE_PROP(_name, _state, _field, _prop, _type, \
78 .defval.i = (_type)_defval)
80 #define DEFINE_PROP_SIGNED_NODEFAULT(_name, _state, _field, _prop, _type) \ argument
81 DEFINE_PROP(_name, _state, _field, _prop, _type)
89 #define DEFINE_PROP_UNSIGNED(_name, _state, _field, _defval, _prop, _type) \ argument
90 DEFINE_PROP(_name, _state, _field, _prop, _type, \
92 .defval.u = (_type)_defval)
[all …]
/openbmc/linux/arch/x86/include/asm/
H A Dpercpu.h425 #define DEFINE_EARLY_PER_CPU(_type, _name, _initvalue) \ argument
426 DEFINE_PER_CPU(_type, _name) = _initvalue; \
427 __typeof__(_type) _name##_early_map[NR_CPUS] __initdata = \
429 __typeof__(_type) *_name##_early_ptr __refdata = _name##_early_map
431 #define DEFINE_EARLY_PER_CPU_READ_MOSTLY(_type, _name, _initvalue) \ argument
432 DEFINE_PER_CPU_READ_MOSTLY(_type, _name) = _initvalue; \
433 __typeof__(_type) _name##_early_map[NR_CPUS] __initdata = \
435 __typeof__(_type) *_name##_early_ptr __refdata = _name##_early_map
440 #define DECLARE_EARLY_PER_CPU(_type, _name) \ argument
441 DECLARE_PER_CPU(_type, _name); \
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/pysh/
H A Dpyshlex.py552 self._type = TK_TOKEN
614 self._type = TK_NEWLINE
622 self._type = TK_OP
636 self._type = TK_COMMENT
718 heredoc.pendings[:0] = [(self._token, self._type, heredoc.name)]
721 self._type = type
731 if self._type!=TK_TOKEN:
734 self._type = TK_HERENAME
737 if self._type==TK_NEWLINE:
741 self._heredoc.pendings.append((self._token, self._type, delim))
[all …]
/openbmc/linux/tools/perf/ui/
H A Dhist.c343 #define __HPP_COLOR_PERCENT_FN(_type, _field) \ argument
349 static int hpp__color_##_type(struct perf_hpp_fmt *fmt, \
356 #define __HPP_ENTRY_PERCENT_FN(_type, _field) \ argument
357 static int hpp__entry_##_type(struct perf_hpp_fmt *fmt, \
364 #define __HPP_SORT_FN(_type, _field) \ argument
365 static int64_t hpp__sort_##_type(struct perf_hpp_fmt *fmt __maybe_unused, \
371 #define __HPP_COLOR_ACC_PERCENT_FN(_type, _field) \ argument
377 static int hpp__color_##_type(struct perf_hpp_fmt *fmt, \
384 #define __HPP_ENTRY_ACC_PERCENT_FN(_type, _field) \ argument
385 static int hpp__entry_##_type(struct perf_hpp_fmt *fmt, \
[all …]
/openbmc/linux/arch/mips/include/asm/
H A Dsync.h177 # define ____SYNC(_type, _reason, _else) \ argument
178 .if (( _type ) != -1) && ( _reason ); \
181 .rept __SYNC_rpt(_type); \
182 sync _type; \
189 # define ____SYNC(_type, _reason, _else) argument
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Dmru.cpp32 pel >> _type >> _size >> _flags >> _reserved4B; in MRU()
45 sizeof(_type) + sizeof(_size) + sizeof(_flags) + sizeof(_reserved4B) + in MRU()
72 _type = substructureType; in MRU()
73 _size = sizeof(_type) + sizeof(_size) + sizeof(_flags) + in MRU()
81 pel << _type << _size << _flags << _reserved4B; in flatten()
H A Dfru_identity.cpp56 pel >> _type >> _size >> _flags; in FRUIdentity()
76 size_t size = sizeof(_type) + sizeof(_size) + sizeof(_flags); in flattenedSize()
99 _type = substructureType; in FRUIdentity()
111 _type = substructureType; in FRUIdentity()
122 _type = substructureType; in FRUIdentity()
190 pel << _type << _size << _flags; in flatten()
/openbmc/linux/drivers/regulator/
H A Dmax77826-regulator.c113 #define MAX77826_VOLT_RANGE(_type) \ argument
114 ((MAX77826_ ## _type ## _VOLT_MAX - \
115 MAX77826_ ## _type ## _VOLT_MIN) / \
116 MAX77826_ ## _type ## _VOLT_STEP + 1)
118 #define MAX77826_LDO(_id, _type) \ argument
125 .min_uV = MAX77826_ ## _type ## _LDO_VOLT_MIN, \
126 .uV_step = MAX77826_ ## _type ## _LDO_VOLT_STEP, \
127 .n_voltages = MAX77826_VOLT_RANGE(_type ## _LDO), \
/openbmc/u-boot/include/fsl-mc/
H A Dfsl_mc_cmd.h80 #define MC_PREP_OP(_ext, _param, _offset, _width, _type, _arg) \ argument
83 #define MC_EXT_OP(_ext, _param, _offset, _width, _type, _arg) \ argument
84 (_arg = (_type)mc_dec(cpu_to_le64(_ext[_param]), (_offset), (_width)))
86 #define MC_CMD_OP(_cmd, _param, _offset, _width, _type, _arg) \ argument
89 #define MC_RSP_OP(_cmd, _param, _offset, _width, _type, _arg) \ argument
90 (_arg = (_type)mc_dec(_cmd.params[_param], (_offset), (_width)))
/openbmc/linux/drivers/iio/adc/
H A Dda9150-gpadc.c250 #define DA9150_GPADC_CHANNEL(_id, _hw_id, _type, chan_info, \ argument
252 .type = _type, \
261 #define DA9150_GPADC_CHANNEL_RAW(_id, _hw_id, _type, _ext_name) \ argument
262 DA9150_GPADC_CHANNEL(_id, _hw_id, _type, \
265 #define DA9150_GPADC_CHANNEL_SCALED(_id, _hw_id, _type, _ext_name) \ argument
266 DA9150_GPADC_CHANNEL(_id, _hw_id, _type, \
272 #define DA9150_GPADC_CHANNEL_PROCESSED(_id, _hw_id, _type, _ext_name) \ argument
273 DA9150_GPADC_CHANNEL(_id, _hw_id, _type, \
/openbmc/linux/scripts/gdb/linux/
H A Dutils.py19 self._type = None
23 self._type = None
27 if self._type is None:
28 self._type = gdb.lookup_type(self._name)
29 if self._type is None:
34 return self._type
/openbmc/u-boot/drivers/clk/renesas/
H A Drenesas-cpg-mssr.h65 #define DEF_TYPE(_name, _id, _type...) \ argument
66 { .name = _name, .id = _id, .type = _type }
67 #define DEF_BASE(_name, _id, _type, _parent...) \ argument
68 DEF_TYPE(_name, _id, _type, .parent = _parent)
/openbmc/linux/drivers/hwmon/
H A Dbt1-pvt.h160 #define PVT_SENSOR_INFO(_ch, _label, _type, _mode, _thres) \ argument
168 .type = _type, \
169 .attr_min_alarm = _type## _min, \
170 .attr_max_alarm = _type## _max, \
/openbmc/phosphor-hwmon/test/
H A Dhwmonio_default_unittest.cpp25 const std::string _type = "fan"; member in hwmonio::__anon58fc77ce0111::HwmonIOTest
38 EXPECT_THAT(_hwmonio.read(_type, _id, _sensor, _retries, _delay), _value); in TEST_F()
52 EXPECT_THAT(_hwmonio.read(_type, _id, _sensor, _retries, _delay), _value); in TEST_F()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dnetif_receive_skb.c52 #define TEST_BTF(_str, _type, _flags, _expected, ...) \ argument
57 static _type _ptrdata = __VA_ARGS__; \
66 _ptr.type_id = bpf_core_type_id_kernel(_type); \
87 #define TEST_BTF_C(_str, _type, _flags, ...) \ argument
88 TEST_BTF(_str, _type, _flags, "(" #_type ")" #__VA_ARGS__, \

123456789