/include/linux/ |
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 …]
|
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 …]
|
D | crash_core.h | 61 #define VMCOREINFO_OFFSET(name, field) \ argument 62 vmcoreinfo_append_str("OFFSET(%s.%s)=%lu\n", #name, #field, \ 63 (unsigned long)offsetof(struct name, field)) 64 #define VMCOREINFO_TYPE_OFFSET(name, field) \ argument 65 vmcoreinfo_append_str("OFFSET(%s.%s)=%lu\n", #name, #field, \ 66 (unsigned long)offsetof(name, field))
|
D | build_bug.h | 84 #define ASSERT_STRUCT_OFFSET(type, field, expected_offset) \ argument 85 BUILD_BUG_ON_MSG(offsetof(type, field) != (expected_offset), \ 86 "Offset of " #field " in " #type " has changed.")
|
D | regmap.h | 193 #define regmap_field_read_poll_timeout(field, val, cond, sleep_us, timeout_us) \ argument 197 sleep_us, timeout_us, false, (field), &(val)); \ 1366 void regmap_field_free(struct regmap_field *field); 1370 void devm_regmap_field_free(struct device *dev, struct regmap_field *field); 1376 void regmap_field_bulk_free(struct regmap_field *field); 1378 struct regmap_field **field, 1382 struct regmap_field *field); 1384 int regmap_field_read(struct regmap_field *field, unsigned int *val); 1385 int regmap_field_update_bits_base(struct regmap_field *field, 1388 int regmap_fields_read(struct regmap_field *field, unsigned int id, [all …]
|
D | hiddev.h | 43 void hiddev_hid_event(struct hid_device *hid, struct hid_field *field, 51 static inline void hiddev_hid_event(struct hid_device *hid, struct hid_field *field, in hiddev_hid_event() argument
|
D | dmi.h | 102 extern const char * dmi_get_system_info(int field); 106 extern bool dmi_get_date(int field, int *yearp, int *monthp, int *dayp); 122 static inline const char * dmi_get_system_info(int field) { return NULL; } in dmi_get_system_info() argument 126 static inline bool dmi_get_date(int field, int *yearp, int *monthp, int *dayp) in dmi_get_date() argument
|
/include/trace/stages/ |
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 …]
|
D | stage6_event_callback.h | 57 #define __get_bitmask(field) (char *)__get_dynamic_array(field) argument 67 #define __get_cpumask(field) (char *)__get_dynamic_array(field) argument 74 #define __sockaddr(field, len) __dynamic_array(u8, field, len) argument 77 #define __get_sockaddr(field) ((struct sockaddr *)__get_dynamic_array(field)) argument 108 #define __get_rel_bitmask(field) (char *)__get_rel_dynamic_array(field) argument 118 #define __get_rel_cpumask(field) (char *)__get_rel_dynamic_array(field) argument 125 #define __rel_sockaddr(field, len) __rel_dynamic_array(u8, field, len) argument 128 #define __get_rel_sockaddr(field) ((struct sockaddr *)__get_rel_dynamic_array(field)) argument
|
D | stage2_data_offsets.h | 45 #define __sockaddr(field, len) __dynamic_array(u8, field, len) argument 63 #define __rel_sockaddr(field, len) __rel_dynamic_array(u8, field, len) argument
|
D | stage1_struct_define.h | 39 #define __sockaddr(field, len) __dynamic_array(u8, field, len) argument 57 #define __rel_sockaddr(field, len) __rel_dynamic_array(u8, field, len) argument
|
D | stage5_get_offsets.h | 109 #define __sockaddr(field, len) __dynamic_array(u8, field, len) argument 112 #define __rel_sockaddr(field, len) __rel_dynamic_array(u8, field, len) argument
|
D | stage4_event_fields.h | 57 #define __sockaddr(field, len) __dynamic_array(u8, field, len) argument 81 #define __rel_sockaddr(field, len) __rel_dynamic_array(u8, field, len) argument
|
/include/net/ |
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 …]
|
D | icmp.h | 29 #define ICMP_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.icmp_statistics, field) argument 30 #define __ICMP_INC_STATS(net, field) __SNMP_INC_STATS((net)->mib.icmp_statistics, field) argument 31 #define ICMPMSGOUT_INC_STATS(net, field) SNMP_INC_STATS_ATOMIC_LONG((net)->mib.icmpmsg_statistics, … argument 32 #define ICMPMSGIN_INC_STATS(net, field) SNMP_INC_STATS_ATOMIC_LONG((net)->mib.icmpmsg_statistics, … argument
|
D | ipv6.h | 220 #define _DEVINC(net, statname, mod, idev, field) \ argument 224 mod##SNMP_INC_STATS64((_idev)->stats.statname, (field));\ 225 mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\ 229 #define _DEVINCATOMIC(net, statname, mod, idev, field) \ argument 233 SNMP_INC_STATS_ATOMIC_LONG((_idev)->stats.statname##dev, (field)); \ 234 mod##SNMP_INC_STATS((net)->mib.statname##_statistics, (field));\ 238 #define _DEVINC_ATOMIC_ATOMIC(net, statname, idev, field) \ argument 242 SNMP_INC_STATS_ATOMIC_LONG((_idev)->stats.statname##dev, (field)); \ 243 SNMP_INC_STATS_ATOMIC_LONG((net)->mib.statname##_statistics, (field));\ 246 #define _DEVADD(net, statname, mod, idev, field, val) \ argument [all …]
|
D | udp.h | 395 #define UDP_INC_STATS(net, field, is_udplite) do { \ argument 396 if (is_udplite) SNMP_INC_STATS((net)->mib.udplite_statistics, field); \ 397 else SNMP_INC_STATS((net)->mib.udp_statistics, field); } while(0) 398 #define __UDP_INC_STATS(net, field, is_udplite) do { \ argument 399 if (is_udplite) __SNMP_INC_STATS((net)->mib.udplite_statistics, field); \ 400 else __SNMP_INC_STATS((net)->mib.udp_statistics, field); } while(0) 402 #define __UDP6_INC_STATS(net, field, is_udplite) do { \ argument 403 if (is_udplite) __SNMP_INC_STATS((net)->mib.udplite_stats_in6, field);\ 404 else __SNMP_INC_STATS((net)->mib.udp_stats_in6, field); \ 406 #define UDP6_INC_STATS(net, field, __lite) do { \ argument [all …]
|
D | ip.h | 296 #define IP_INC_STATS(net, field) SNMP_INC_STATS64((net)->mib.ip_statistics, field) argument 297 #define __IP_INC_STATS(net, field) __SNMP_INC_STATS64((net)->mib.ip_statistics, field) argument 298 #define IP_ADD_STATS(net, field, val) SNMP_ADD_STATS64((net)->mib.ip_statistics, field, val) argument 299 #define __IP_ADD_STATS(net, field, val) __SNMP_ADD_STATS64((net)->mib.ip_statistics, field, val) argument 300 #define IP_UPD_PO_STATS(net, field, val) SNMP_UPD_PO_STATS64((net)->mib.ip_statistics, field, val) argument 301 #define __IP_UPD_PO_STATS(net, field, val) __SNMP_UPD_PO_STATS64((net)->mib.ip_statistics, field, v… argument 302 #define NET_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.net_statistics, field) argument 303 #define __NET_INC_STATS(net, field) __SNMP_INC_STATS((net)->mib.net_statistics, field) argument 304 #define NET_ADD_STATS(net, field, adnd) SNMP_ADD_STATS((net)->mib.net_statistics, field, adnd) argument 305 #define __NET_ADD_STATS(net, field, adnd) __SNMP_ADD_STATS((net)->mib.net_statistics, field, adnd) argument
|
/include/linux/mdio/ |
D | mdio-xgene.h | 108 #define SET_VAL(field, val) \ argument 109 xgene_enet_set_field_value(field ## _POS, field ## _LEN, val) 111 #define SET_BIT(field) \ argument 112 xgene_enet_set_field_value(field ## _POS, 1, 1) 122 #define GET_VAL(field, src) \ argument 123 xgene_enet_get_field_value(field ## _POS, field ## _LEN, src) 125 #define GET_BIT(field, src) \ argument 126 xgene_enet_get_field_value(field ## _POS, 1, src)
|
/include/rdma/ |
D | iba.h | 62 #define IBA_SET(field, ptr, value) _IBA_SET(field, ptr, value) argument 69 #define IBA_GET_MEM_PTR(field, ptr) _IBA_GET_MEM_PTR(field, ptr) argument 82 #define IBA_SET_MEM(field, ptr, in, bytes) _IBA_SET_MEM(field, ptr, in, bytes) argument 91 #define IBA_GET(field, ptr) _IBA_GET(field, ptr) argument 104 #define IBA_GET_MEM(field, ptr, out, bytes) _IBA_GET_MEM(field, ptr, out, bytes) argument
|
/include/media/ |
D | v4l2-mediabus.h | 185 pix_fmt->field = mbus_fmt->field; in v4l2_fill_pix_format() 207 mbus_fmt->field = pix_fmt->field; in v4l2_fill_mbus_format() 228 pix_mp_fmt->field = mbus_fmt->field; in v4l2_fill_pix_format_mplane() 248 mbus_fmt->field = pix_mp_fmt->field; in v4l2_fill_mbus_format_mplane()
|
/include/trace/events/ |
D | v4l2.h | 38 #define show_field(field) \ argument 39 __print_symbolic(field, SHOW_FIELD) 111 __field(u32, field) 132 __entry->field = buf->field; 155 show_field(__entry->field), 188 __field(u32, field) 209 __entry->field = vbuf->field; 229 show_field(__entry->field),
|
/include/uapi/linux/ |
D | videodev2.h | 109 #define V4L2_FIELD_HAS_TOP(field) \ argument 110 ((field) == V4L2_FIELD_TOP ||\ 111 (field) == V4L2_FIELD_INTERLACED ||\ 112 (field) == V4L2_FIELD_INTERLACED_TB ||\ 113 (field) == V4L2_FIELD_INTERLACED_BT ||\ 114 (field) == V4L2_FIELD_SEQ_TB ||\ 115 (field) == V4L2_FIELD_SEQ_BT) 116 #define V4L2_FIELD_HAS_BOTTOM(field) \ argument 117 ((field) == V4L2_FIELD_BOTTOM ||\ 118 (field) == V4L2_FIELD_INTERLACED ||\ [all …]
|
/include/linux/spi/ |
D | mxs-spi.h | 111 #define BF_SSP(value, field) (((value) << BP_SSP_##field) & BM_SSP_##field) argument
|
/include/video/ |
D | gbe.h | 88 #define GET_GBE_FIELD(reg, field, v) \ argument 89 GET((v), GBE_##reg##_##field##_MSB, GBE_##reg##_##field##_LSB) 90 #define SET_GBE_FIELD(reg, field, v, f) \ argument 91 SET((v), (f), GBE_##reg##_##field##_MSB, GBE_##reg##_##field##_LSB)
|