/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/ |
D | item.h | 258 #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 …]
|
/linux-6.6.21/kernel/trace/ |
D | trace_export.c | 89 #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 …]
|
/linux-6.6.21/include/trace/stages/ |
D | stage4_event_fields.h | 8 #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 …]
|
/linux-6.6.21/include/linux/ |
D | cleanup.h | 37 #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 …]
|
D | generic-radix-tree.h | 71 #define GENRADIX(_type) \ argument 74 _type type[0] __aligned(1); \ 77 #define DEFINE_GENRADIX(_name, _type) \ argument 78 GENRADIX(_type) _name = __GENRADIX_INITIALIZER
|
/linux-6.6.21/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_blit.c | 36 #define VMW_FIND_FIRST_DIFF(_type) \ argument 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) \ argument 58 static ssize_t vmw_find_last_diff_ ## _type( \ 59 const _type * dst, const _type * src, size_t size) \ 65 size -= sizeof(_type); \ 93 #define SPILL(_var, _type) ((unsigned long) _var & (sizeof(_type) - 1)) argument 103 #define VMW_TRY_FIND_FIRST_DIFF(_type) \ argument [all …]
|
/linux-6.6.21/include/rdma/ |
D | uverbs_std_types.h | 24 #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 …]
|
/linux-6.6.21/include/drm/ |
D | drm_kunit_helpers.h | 42 #define drm_kunit_helper_alloc_drm_device_with_driver(_test, _dev, _type, _member, _drv) \ argument 43 ((_type *)__drm_kunit_helper_alloc_drm_device_with_driver(_test, _dev, \ 44 sizeof(_type), \ 45 offsetof(_type, _member), \ 87 #define drm_kunit_helper_alloc_drm_device(_test, _dev, _type, _member, _feat) \ argument 88 ((_type *)__drm_kunit_helper_alloc_drm_device(_test, _dev, \ 89 sizeof(_type), \ 90 offsetof(_type, _member), \
|
/linux-6.6.21/arch/x86/include/asm/ |
D | percpu.h | 425 #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 …]
|
/linux-6.6.21/tools/perf/ui/ |
D | hist.c | 343 #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 …]
|
/linux-6.6.21/arch/mips/include/asm/ |
D | sync.h | 177 # 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
|
/linux-6.6.21/drivers/regulator/ |
D | max77826-regulator.c | 113 #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), \
|
/linux-6.6.21/drivers/iio/adc/ |
D | da9150-gpadc.c | 250 #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, \
|
D | max77541-adc.c | 100 #define MAX77541_ADC_CHANNEL_V(_channel, _name, _type, _reg) \ argument 102 .type = _type, \ 111 #define MAX77541_ADC_CHANNEL_TEMP(_channel, _name, _type, _reg) \ argument 113 .type = _type, \
|
/linux-6.6.21/scripts/gdb/linux/ |
D | utils.py | 19 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
|
/linux-6.6.21/drivers/hwmon/ |
D | bt1-pvt.h | 160 #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, \
|
/linux-6.6.21/arch/arm/include/asm/mach/ |
D | arch.h | 78 #define MACHINE_START(_type,_name) \ argument 79 static const struct machine_desc __mach_desc_##_type \ 82 .nr = MACH_TYPE_##_type, \
|
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | netif_receive_skb.c | 52 #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__, \
|
/linux-6.6.21/arch/s390/include/asm/ |
D | asm-extable.h | 26 #define __EX_TABLE(_section, _fault, _target, _type) \ argument 31 stringify_in_c(.short (_type);) \ 35 #define __EX_TABLE_UA(_section, _fault, _target, _type, _regerr, _regaddr, _len)\ argument 40 stringify_in_c(.short (_type);) \
|
/linux-6.6.21/drivers/gpu/drm/msm/adreno/ |
D | a6xx_gpu_state.h | 129 #define CLUSTER_DBGAHB(_id, _base, _type, _reg) \ argument 130 { .name = #_id, .statetype = _type, .base = _base, \ 178 #define HLSQ_DBG_REGS(_base, _type, _array) \ argument 179 { .val0 = _base, .val1 = _type, .registers = _array, \ 188 #define SHADER(_type, _size) \ argument 189 { .type = _type, .name = #_type, .size = _size }
|
/linux-6.6.21/drivers/clk/pistachio/ |
D | clk.h | 119 #define PLL(_id, _name, _pname, _type, _reg, _rates) \ argument 123 .type = _type, \ 130 #define PLL_FIXED(_id, _name, _pname, _type, _reg) \ argument 134 .type = _type, \
|
/linux-6.6.21/drivers/clk/renesas/ |
D | renesas-cpg-mssr.h | 44 #define DEF_TYPE(_name, _id, _type...) \ argument 45 { .name = _name, .id = _id, .type = _type } 46 #define DEF_BASE(_name, _id, _type, _parent...) \ argument 47 DEF_TYPE(_name, _id, _type, .parent = _parent)
|
/linux-6.6.21/arch/arc/include/asm/ |
D | mach_desc.h | 54 #define MACHINE_START(_type, _name) \ argument 55 static const struct machine_desc __mach_desc_##_type \
|
/linux-6.6.21/drivers/net/ethernet/broadcom/ |
D | cnic.h | 342 #define CDU_VALID_DATA(_cid, _region, _type) \ argument 343 (((_cid) << 8) | (((_region)&0xf)<<4) | (((_type)&0xf))) 345 #define CDU_CRC8(_cid, _region, _type) \ argument 346 (calc_crc8(CDU_VALID_DATA(_cid, _region, _type), 0xff)) 348 #define CDU_RSRVD_VALUE_TYPE_A(_cid, _region, _type) \ argument 349 (0x80 | ((CDU_CRC8(_cid, _region, _type)) & 0x7f))
|
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | btf_dump.c | 307 #define TEST_BTF_DUMP_DATA(_b, _d, _prefix, _str, _type, _flags, \ argument 310 char __ptrtype[64] = #_type; \ 312 _type _ptrdata = __VA_ARGS__; \ 316 _ptr, sizeof(_type), _str, \ 321 #define TEST_BTF_DUMP_DATA_C(_b, _d, _prefix, _str, _type, _flags, \ argument 323 TEST_BTF_DUMP_DATA(_b, _d, _prefix, _str, _type, _flags, \ 324 "(" #_type ")" #__VA_ARGS__, __VA_ARGS__) 327 #define TEST_BTF_DUMP_DATA_OVER(_b, _d, _prefix, _str, _type, _type_sz, \ argument 330 char __ptrtype[64] = #_type; \ 332 _type _ptrdata = __VA_ARGS__; \ [all …]
|