Home
last modified time | relevance | path

Searched refs:_type (Results 1 - 25 of 293) sorted by relevance

12345678910>>...12

/kernel/liteos_a/kernel/common/
H A Dlos_init_info.h59 #define INIT_SECTION(_type, _level, _hook) __attribute__((section(".rodata.init."#_type"."#_level"."#_hook)))
89 * @param _type [IN] Type name of startup framework.
98 #define OS_INIT_HOOK_REG(_type, _hook, _level) \
100 USED INIT_SECTION(_type, _level, _hook) INIT_ALIGN = { \
105 #define EXTERN_LABEL(_type, _level) extern struct ModuleInitInfo __##_type##_init_level_##_level;
106 #define GET_LABEL(_type, _level) &__##_type##_init_level_##_level,
108 #define INIT_LABEL_REG_0(_op, _type) \
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
H A Ditem.h258 #define __ITEM_NAME(_type, _cname, _iname) \
259 mlxsw_##_type##_##_cname##_##_iname##_item
261 /* _type: cmd_mbox, reg, etc.
266 #define MLXSW_ITEM8(_type, _cname, _iname, _offset, _shift, _sizebits) \
267 static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
271 .name = #_type "_" #_cname "_" #_iname, \
273 static inline u8 mlxsw_##_type##_##_cname##_##_iname##_get(const char *buf) \
275 return __mlxsw_item_get8(buf, &__ITEM_NAME(_type, _cname, _iname), 0); \
277 static inline void mlxsw_##_type##_##_cname##_##_iname##_set(char *buf, u8 val)\
279 __mlxsw_item_set8(buf, &__ITEM_NAME(_type, _cnam
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/
H A Ditem.h258 #define __ITEM_NAME(_type, _cname, _iname) \
259 mlxsw_##_type##_##_cname##_##_iname##_item
261 /* _type: cmd_mbox, reg, etc.
266 #define MLXSW_ITEM8(_type, _cname, _iname, _offset, _shift, _sizebits) \
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, _cnam
[all...]
/kernel/linux/linux-6.6/kernel/trace/
H A Dtrace_export.c89 #define __field_ext(_type, _item, _filter_type) { \
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) { \
97 .type = #_type, .name = #_item, \
98 .size = sizeof(_type), .align = 1, \
99 is_signed_type(_type), .filter_type = _filter_type },
102 #define __field(_type, _ite
[all...]
/kernel/linux/linux-5.10/kernel/trace/
H A Dtrace_export.c86 #define __field_ext(_type, _item, _filter_type) { \
87 .type = #_type, .name = #_item, \
88 .size = sizeof(_type), .align = __alignof__(_type), \
89 is_signed_type(_type), .filter_type = _filter_type },
93 #define __field_ext_packed(_type, _item, _filter_type) { \
94 .type = #_type, .name = #_item, \
95 .size = sizeof(_type), .align = 1, \
96 is_signed_type(_type), .filter_type = _filter_type },
99 #define __field(_type, _ite
[all...]
/kernel/linux/linux-6.6/include/trace/stages/
H A Dstage4_event_fields.h8 #define __field_ext(_type, _item, _filter_type) { \
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) { \
15 .type = #_type, .name = #_item, \
16 .size = sizeof(_type), .align = ALIGN_STRUCTFIELD(_type), \
26 #define __array(_type, _ite
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dcleanup.h37 #define DEFINE_FREE(_name, _type, _free) \
38 static inline void __free_##_name(void *p) { _type _T = *(_type *)p; _free; }
71 #define DEFINE_CLASS(_name, _type, _exit, _init, _init_args...) \
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, _loc
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_blit.c36 #define VMW_FIND_FIRST_DIFF(_type) \
37 static size_t vmw_find_first_diff_ ## _type \
38 (const _type * dst, const _type * src, size_t size)\
42 for (i = 0; i < size; i += sizeof(_type)) { \
57 #define VMW_FIND_LAST_DIFF(_type) \
58 static ssize_t vmw_find_last_diff_ ## _type( \
59 const _type * dst, const _type * src, size_t size) \
65 size -= sizeof(_type); \
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_blit.c36 #define VMW_FIND_FIRST_DIFF(_type) \
37 static size_t vmw_find_first_diff_ ## _type \
38 (const _type * dst, const _type * src, size_t size)\
42 for (i = 0; i < size; i += sizeof(_type)) { \
57 #define VMW_FIND_LAST_DIFF(_type) \
58 static ssize_t vmw_find_last_diff_ ## _type( \
59 const _type * dst, const _type * src, size_t size) \
65 size -= sizeof(_type); \
[all...]
/kernel/linux/linux-5.10/include/rdma/
H A Duverbs_std_types.h24 #define uobj_get_read(_type, _id, _attrs) \
25 rdma_lookup_get_uobject(uobj_get_type(_attrs, _type), (_attrs)->ufile, \
29 #define ufd_get_read(_type, _fdnum, _attrs) \
30 rdma_lookup_get_uobject(uobj_get_type(_attrs, _type), (_attrs)->ufile, \
40 #define uobj_get_obj_read(_object, _type, _id, _attrs) \
42 uobj_get_read(_type, _id, _attrs)))
44 #define uobj_get_write(_type, _id, _attrs) \
45 rdma_lookup_get_uobject(uobj_get_type(_attrs, _type), (_attrs)->ufile, \
51 #define uobj_perform_destroy(_type, _id, _attrs) \
52 __uobj_perform_destroy(uobj_get_type(_attrs, _type), \
[all...]
/kernel/linux/linux-6.6/include/rdma/
H A Duverbs_std_types.h24 #define uobj_get_read(_type, _id, _attrs) \
25 rdma_lookup_get_uobject(uobj_get_type(_attrs, _type), (_attrs)->ufile, \
29 #define ufd_get_read(_type, _fdnum, _attrs) \
30 rdma_lookup_get_uobject(uobj_get_type(_attrs, _type), (_attrs)->ufile, \
40 #define uobj_get_obj_read(_object, _type, _id, _attrs) \
42 uobj_get_read(_type, _id, _attrs)))
44 #define uobj_get_write(_type, _id, _attrs) \
45 rdma_lookup_get_uobject(uobj_get_type(_attrs, _type), (_attrs)->ufile, \
51 #define uobj_perform_destroy(_type, _id, _attrs) \
52 __uobj_perform_destroy(uobj_get_type(_attrs, _type), \
[all...]
/kernel/linux/linux-6.6/include/drm/
H A Ddrm_kunit_helpers.h28 * @_type: the type of the struct which contains struct &drm_device
29 * @_member: the name of the &drm_device within @_type.
44 #define drm_kunit_helper_alloc_drm_device_with_driver(_test, _dev, _type, _member, _drv) \
45 ((_type *)__drm_kunit_helper_alloc_drm_device_with_driver(_test, _dev, \
46 sizeof(_type), \
47 offsetof(_type, _member), \
72 * @_type: the type of the struct which contains struct &drm_device
73 * @_member: the name of the &drm_device within @_type.
89 #define drm_kunit_helper_alloc_drm_device(_test, _dev, _type, _member, _feat) \
90 ((_type *)__drm_kunit_helper_alloc_drm_devic
[all...]
/kernel/linux/linux-5.10/arch/x86/include/asm/
H A Dpercpu.h405 #define DEFINE_EARLY_PER_CPU(_type, _name, _initvalue) \
406 DEFINE_PER_CPU(_type, _name) = _initvalue; \
407 __typeof__(_type) _name##_early_map[NR_CPUS] __initdata = \
409 __typeof__(_type) *_name##_early_ptr __refdata = _name##_early_map
411 #define DEFINE_EARLY_PER_CPU_READ_MOSTLY(_type, _name, _initvalue) \
412 DEFINE_PER_CPU_READ_MOSTLY(_type, _name) = _initvalue; \
413 __typeof__(_type) _name##_early_map[NR_CPUS] __initdata = \
415 __typeof__(_type) *_name##_early_ptr __refdata = _name##_early_map
420 #define DECLARE_EARLY_PER_CPU(_type, _name) \
421 DECLARE_PER_CPU(_type, _nam
[all...]
/kernel/linux/linux-6.6/arch/x86/include/asm/
H A Dpercpu.h425 #define DEFINE_EARLY_PER_CPU(_type, _name, _initvalue) \
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) \
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) \
441 DECLARE_PER_CPU(_type, _nam
[all...]
/kernel/linux/linux-5.10/arch/mips/include/asm/
H A Dsync.h177 # define ____SYNC(_type, _reason, _else) \
178 .if (( _type ) != -1) && ( _reason ); \
181 .rept __SYNC_rpt(_type); \
182 sync _type; \
189 # define ____SYNC(_type, _reason, _else)
/kernel/linux/linux-6.6/arch/mips/include/asm/
H A Dsync.h177 # define ____SYNC(_type, _reason, _else) \
178 .if (( _type ) != -1) && ( _reason ); \
181 .rept __SYNC_rpt(_type); \
182 sync _type; \
189 # define ____SYNC(_type, _reason, _else)
/kernel/linux/linux-5.10/tools/perf/ui/
H A Dhist.c340 #define __HPP_COLOR_PERCENT_FN(_type, _field) \
346 static int hpp__color_##_type(struct perf_hpp_fmt *fmt, \
353 #define __HPP_ENTRY_PERCENT_FN(_type, _field) \
354 static int hpp__entry_##_type(struct perf_hpp_fmt *fmt, \
361 #define __HPP_SORT_FN(_type, _field) \
362 static int64_t hpp__sort_##_type(struct perf_hpp_fmt *fmt __maybe_unused, \
368 #define __HPP_COLOR_ACC_PERCENT_FN(_type, _field) \
374 static int hpp__color_##_type(struct perf_hpp_fmt *fmt, \
381 #define __HPP_ENTRY_ACC_PERCENT_FN(_type, _field) \
382 static int hpp__entry_##_type(struc
[all...]
/kernel/linux/linux-6.6/tools/perf/ui/
H A Dhist.c343 #define __HPP_COLOR_PERCENT_FN(_type, _field) \
349 static int hpp__color_##_type(struct perf_hpp_fmt *fmt, \
356 #define __HPP_ENTRY_PERCENT_FN(_type, _field) \
357 static int hpp__entry_##_type(struct perf_hpp_fmt *fmt, \
364 #define __HPP_SORT_FN(_type, _field) \
365 static int64_t hpp__sort_##_type(struct perf_hpp_fmt *fmt __maybe_unused, \
371 #define __HPP_COLOR_ACC_PERCENT_FN(_type, _field) \
377 static int hpp__color_##_type(struct perf_hpp_fmt *fmt, \
384 #define __HPP_ENTRY_ACC_PERCENT_FN(_type, _field) \
385 static int hpp__entry_##_type(struc
[all...]
/kernel/linux/linux-5.10/drivers/regulator/
H A Dmax77826-regulator.c114 #define MAX77826_VOLT_RANGE(_type) \
115 ((MAX77826_ ## _type ## _VOLT_MAX - \
116 MAX77826_ ## _type ## _VOLT_MIN) / \
117 MAX77826_ ## _type ## _VOLT_STEP + 1)
119 #define MAX77826_LDO(_id, _type) \
126 .min_uV = MAX77826_ ## _type ## _LDO_VOLT_MIN, \
127 .uV_step = MAX77826_ ## _type ## _LDO_VOLT_STEP, \
128 .n_voltages = MAX77826_VOLT_RANGE(_type ## _LDO), \
/kernel/linux/linux-6.6/drivers/regulator/
H A Dmax77826-regulator.c113 #define MAX77826_VOLT_RANGE(_type) \
114 ((MAX77826_ ## _type ## _VOLT_MAX - \
115 MAX77826_ ## _type ## _VOLT_MIN) / \
116 MAX77826_ ## _type ## _VOLT_STEP + 1)
118 #define MAX77826_LDO(_id, _type) \
125 .min_uV = MAX77826_ ## _type ## _LDO_VOLT_MIN, \
126 .uV_step = MAX77826_ ## _type ## _LDO_VOLT_STEP, \
127 .n_voltages = MAX77826_VOLT_RANGE(_type ## _LDO), \
/kernel/linux/linux-5.10/include/trace/
H A Dtrace_events.h406 #define __field_ext(_type, _item, _filter_type) { \
407 .type = #_type, .name = #_item, \
408 .size = sizeof(_type), .align = ALIGN_STRUCTFIELD(_type), \
409 .is_signed = is_signed_type(_type), .filter_type = _filter_type },
412 #define __field_struct_ext(_type, _item, _filter_type) { \
413 .type = #_type, .name = #_item, \
414 .size = sizeof(_type), .align = ALIGN_STRUCTFIELD(_type), \
424 #define __array(_type, _ite
[all...]
/kernel/linux/linux-5.10/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
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dnetif_receive_skb.c52 #define TEST_BTF(_str, _type, _flags, _expected, ...) \
56 static const char _ptrtype[64] = #_type; \
58 static _type _ptrdata = __VA_ARGS__; \
67 _ptr.type_id = bpf_core_type_id_kernel(_type); \
88 #define TEST_BTF_C(_str, _type, _flags, ...) \
89 TEST_BTF(_str, _type, _flags, "(" #_type ")" #__VA_ARGS__, \
/kernel/linux/linux-5.10/drivers/iio/adc/
H A Dda9150-gpadc.c250 #define DA9150_GPADC_CHANNEL(_id, _hw_id, _type, chan_info, \
252 .type = _type, \
261 #define DA9150_GPADC_CHANNEL_RAW(_id, _hw_id, _type, _ext_name) \
262 DA9150_GPADC_CHANNEL(_id, _hw_id, _type, \
265 #define DA9150_GPADC_CHANNEL_SCALED(_id, _hw_id, _type, _ext_name) \
266 DA9150_GPADC_CHANNEL(_id, _hw_id, _type, \
272 #define DA9150_GPADC_CHANNEL_PROCESSED(_id, _hw_id, _type, _ext_name) \
273 DA9150_GPADC_CHANNEL(_id, _hw_id, _type, \
/kernel/linux/linux-6.6/drivers/iio/adc/
H A Dda9150-gpadc.c250 #define DA9150_GPADC_CHANNEL(_id, _hw_id, _type, chan_info, \
252 .type = _type, \
261 #define DA9150_GPADC_CHANNEL_RAW(_id, _hw_id, _type, _ext_name) \
262 DA9150_GPADC_CHANNEL(_id, _hw_id, _type, \
265 #define DA9150_GPADC_CHANNEL_SCALED(_id, _hw_id, _type, _ext_name) \
266 DA9150_GPADC_CHANNEL(_id, _hw_id, _type, \
272 #define DA9150_GPADC_CHANNEL_PROCESSED(_id, _hw_id, _type, _ext_name) \
273 DA9150_GPADC_CHANNEL(_id, _hw_id, _type, \

Completed in 27 milliseconds

12345678910>>...12