Home
last modified time | relevance | path

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

123456789

/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Ditem.h262 #define __ITEM_NAME(_type, _cname, _iname) \ argument
263 mlxsw_##_type##_##_cname##_##_iname##_item
270 #define MLXSW_ITEM8(_type, _cname, _iname, _offset, _shift, _sizebits) \ argument
271 static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = { \
275 .name = #_type "_" #_cname "_" #_iname, \
278 mlxsw_##_type##_##_cname##_##_iname##_get(const char *buf) \
280 return __mlxsw_item_get8(buf, &__ITEM_NAME(_type, _cname, _iname), 0); \
283 mlxsw_##_type##_##_cname##_##_iname##_set(char *buf, u8 val) \
285 __mlxsw_item_set8(buf, &__ITEM_NAME(_type, _cname, _iname), 0, val); \
288 #define MLXSW_ITEM8_INDEXED(_type, _cname, _iname, _offset, _shift, _sizebits, \ argument
[all …]
/linux/kernel/trace/
H A Dtrace_export.c92 #define __field_ext(_type, _item, _filter_type) { \ argument
93 .type = #_type, .name = #_item, \
94 .size = sizeof(_type), .align = __alignof__(_type), \
95 is_signed_type(_type), .filter_type = _filter_type },
99 #define __field_ext_packed(_type, _item, _filter_type) { \ argument
100 .type = #_type, .name = #_item, \
101 .size = sizeof(_type), .align = 1, \
102 is_signed_type(_type), .filter_type = _filter_type },
105 #define __field(_type, _item) __field_ext(_type, _item, FILTER_OTHER) argument
108 #define __field_fn(_type, _item) __field_ext(_type, _item, FILTER_TRACE_FN) argument
[all …]
/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 …]
/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 …]
/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 …]
/linux/include/linux/
H A Dcleanup.h210 #define DEFINE_FREE(_name, _type, _free) \ argument
211 static __always_inline void __free_##_name(void *p) { _type _T = *(_type *)p; _free; }
279 #define DEFINE_CLASS(_name, _type, _exit, _init, _init_args...) \ argument
280 typedef _type class_##_name##_t; \
281 typedef _type lock_##_name##_t; \
282 static __always_inline void class_##_name##_destructor(_type *p) \
284 { _type _T = *p; _exit; } \
285 static __always_inline _type class_##_name##_constructor(_init_args) \
287 { _type
391 DEFINE_GUARD(_name,_type,_lock,_unlock) global() argument
476 __DEFINE_UNLOCK_GUARD(_name,_type,_unlock,...) global() argument
489 __DEFINE_LOCK_GUARD_1(_name,_type,_lock) global() argument
506 DEFINE_LOCK_GUARD_1(_name,_type,_lock,_unlock,...) global() argument
[all...]
/linux/tools/perf/ui/
H A Dhist.c503 #define __HPP_COLOR_PERCENT_FN(_type, _field, _fmttype) \ argument
509 static int hpp__color_##_type(struct perf_hpp_fmt *fmt, \
516 #define __HPP_ENTRY_PERCENT_FN(_type, _field, _fmttype) \ argument
517 static int hpp__entry_##_type(struct perf_hpp_fmt *fmt, \
524 #define __HPP_SORT_FN(_type, _field) \ argument
525 static int64_t hpp__sort_##_type(struct perf_hpp_fmt *fmt __maybe_unused, \
531 #define __HPP_COLOR_ACC_PERCENT_FN(_type, _field, _fmttype) \ argument
537 static int hpp__color_##_type(struct perf_hpp_fmt *fmt, \
544 #define __HPP_ENTRY_ACC_PERCENT_FN(_type, _field, _fmttype) \ argument
545 static int hpp__entry_##_type(struct perf_hpp_fmt *fmt, \
[all …]
/linux/include/drm/
H A Ddrm_kunit_helpers.h49 #define drm_kunit_helper_alloc_drm_device_with_driver(_test, _dev, _type, _member, _drv) \ argument
50 ((_type *)__drm_kunit_helper_alloc_drm_device_with_driver(_test, _dev, \
51 sizeof(_type), \
52 offsetof(_type, _member), \
94 #define drm_kunit_helper_alloc_drm_device(_test, _dev, _type, _member, _feat) \ argument
95 ((_type *)__drm_kunit_helper_alloc_drm_device(_test, _dev, \
96 sizeof(_type), \
97 offsetof(_type, _member), \
/linux/arch/x86/include/asm/
H A Dpercpu.h613 #define DEFINE_EARLY_PER_CPU(_type, _name, _initvalue) \ argument
614 DEFINE_PER_CPU(_type, _name) = _initvalue; \
615 __typeof__(_type) _name##_early_map[NR_CPUS] __initdata = \
617 __typeof__(_type) *_name##_early_ptr __refdata = _name##_early_map
619 #define DEFINE_EARLY_PER_CPU_READ_MOSTLY(_type, _name, _initvalue) \ argument
620 DEFINE_PER_CPU_READ_MOSTLY(_type, _name) = _initvalue; \
621 __typeof__(_type) _name##_early_map[NR_CPUS] __initdata = \
623 __typeof__(_type) *_name##_early_ptr __refdata = _name##_early_map
628 #define DECLARE_EARLY_PER_CPU(_type, _name) \ argument
629 DECLARE_PER_CPU(_type, _name); \
[all …]
/linux/drivers/pinctrl/sophgo/
H A Dpinctrl-cv18xx.h72 #define CV1800_FUNC_PIN(_id, _power_domain, _type, \ argument
77 .flags = CV1800_PIN_FLAG_IO_TYPE(_type), \
87 #define CV1800_GENERAL_PIN(_id, _power_domain, _type, \ argument
93 .flags = CV1800_PIN_FLAG_IO_TYPE(_type), \
107 #define CV1800_GENERATE_PIN_MUX2(_id, _power_domain, _type, \ argument
115 .flags = CV1800_PIN_FLAG_IO_TYPE(_type) | \
/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
/linux/drivers/platform/chrome/
H A Dchromeos_of_hw_prober.c46 #define DEFINE_CHROMEOS_I2C_PROBE_CFG_SIMPLE_BY_TYPE(_type) \ argument
47 static const struct i2c_of_probe_cfg chromeos_i2c_probe_simple_ ## _type ## _cfg = { \
48 .type = #_type, \
52 #define DEFINE_CHROMEOS_I2C_PROBE_DATA_DUMB_BY_TYPE(_type) \ argument
53 static const struct chromeos_i2c_probe_data chromeos_i2c_probe_dumb_ ## _type = { \
55 .type = #_type, \
/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), \
/linux/tools/lib/perf/include/perf/
H A Devent.h500 #define CPU_FIELD(_type, _name, _desc, _format, _is_pct, _pct_of, _ver) _type _name argument
506 #define CPU_FIELD(_type, _name, _desc, _format, _is_pct, _pct_of, _ver) _type _name argument
512 #define CPU_FIELD(_type, _name, _desc, _format, _is_pct, _pct_of, _ver) _type _name argument
532 #define DOMAIN_FIELD(_type, _name, _desc, _format, _is_jiffies, _ver) _type _name argument
538 #define DOMAIN_FIELD(_type, _name, _desc, _format, _is_jiffies, _ver) _type _name argument
544 #define DOMAIN_FIELD(_type, _name, _desc, _format, _is_jiffies, _ver) _type _name argument
/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, \
H A Dmax77541-adc.c100 #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/tools/testing/selftests/vfio/lib/include/libvfio/
H A Dvfio_pci_device.h49 #define vfio_pci_config_read(_device, _offset, _type) ({ \ argument
50 _type __data; \
59 #define vfio_pci_config_write(_device, _offset, _value, _type) do { \ argument
60 _type __data = (_value); \
61 vfio_pci_config_access((_device), true, _offset, sizeof(_type), &__data); \
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_tl_debugfs.h85 #define ADF_TL_COUNTER(_name, _type, _offset) \ argument
87 .type = _type, \
91 #define ADF_TL_COUNTER_LATENCY(_name, _type, _offset1, _offset2) \ argument
93 .type = _type, \
/linux/scripts/gdb/linux/
H A Dutils.py24 self._type = None
28 self._type = None
32 if self._type is None:
33 self._type = gdb.lookup_type(self._name)
34 if self._type is None:
39 return self._type
/linux/tools/testing/selftests/bpf/progs/
H A Dnetif_receive_skb.c49 #define TEST_BTF(_str, _type, _flags, _expected, ...) \ argument
54 static _type _ptrdata = __VA_ARGS__; \
63 _ptr.type_id = bpf_core_type_id_kernel(_type); \
84 #define TEST_BTF_C(_str, _type, _flags, ...) \ argument
85 TEST_BTF(_str, _type, _flags, "(" #_type ")" #__VA_ARGS__, \
/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, \
/linux/arch/arm/include/asm/mach/
H A Darch.h78 #define MACHINE_START(_type,_name) \ argument
79 static const struct machine_desc __mach_desc_##_type \
82 .nr = MACH_TYPE_##_type, \
/linux/drivers/clk/pistachio/
H A Dclk.h119 #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/fs/ceph/
H A Dxattr.c372 #define CEPH_XATTR_NAME(_type, _name) XATTR_CEPH_PREFIX #_type "." #_name argument
373 #define CEPH_XATTR_NAME2(_type, _name, _name2) \ argument
374 XATTR_CEPH_PREFIX #_type "." #_name "." #_name2
376 #define XATTR_NAME_CEPH(_type, _name, _flags) \ argument
378 .name = CEPH_XATTR_NAME(_type, _name), \
379 .name_size = sizeof (CEPH_XATTR_NAME(_type, _name)), \
380 .getxattr_cb = ceph_vxattrcb_ ## _type ## _ ## _name, \
384 #define XATTR_RSTAT_FIELD(_type, _name) \ argument
385 XATTR_NAME_CEPH(_type, _name, VXATTR_FLAG_RSTAT)
386 #define XATTR_RSTAT_FIELD_UPDATABLE(_type, _name) \ argument
[all …]
/linux/drivers/net/ethernet/broadcom/
H A Dcnic.h343 #define CDU_VALID_DATA(_cid, _region, _type) \ argument
344 (((_cid) << 8) | (((_region)&0xf)<<4) | (((_type)&0xf)))
346 #define CDU_CRC8(_cid, _region, _type) \ argument
347 (calc_crc8(CDU_VALID_DATA(_cid, _region, _type), 0xff))
349 #define CDU_RSRVD_VALUE_TYPE_A(_cid, _region, _type) \ argument
350 (0x80 | ((CDU_CRC8(_cid, _region, _type)) & 0x7f))

123456789