/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 | 133 static __always_inline u64 field_multiplier(u64 field) in field_multiplier() argument 135 if ((field | (field - 1)) & ((field | (field - 1)) + 1)) in field_multiplier() 137 return field & -field; in field_multiplier() 139 static __always_inline u64 field_mask(u64 field) in field_mask() argument 141 return field / field_multiplier(field); in field_mask() 143 #define field_max(field) ((typeof(field))field_mask(field)) argument 145 static __always_inline __##type type##_encode_bits(base v, base field) \ 147 if (__builtin_constant_p(v) && (v & ~field_mask(field))) \ 149 return to((v & field_mask(field)) * field_multiplier(field)); \ 152 base val, base field) \ [all …]
|
D | crash_core.h | 59 #define VMCOREINFO_OFFSET(name, field) \ argument 60 vmcoreinfo_append_str("OFFSET(%s.%s)=%lu\n", #name, #field, \ 61 (unsigned long)offsetof(struct name, field)) 62 #define VMCOREINFO_TYPE_OFFSET(name, field) \ argument 63 vmcoreinfo_append_str("OFFSET(%s.%s)=%lu\n", #name, #field, \ 64 (unsigned long)offsetof(name, field))
|
D | regmap.h | 176 #define regmap_field_read_poll_timeout(field, val, cond, sleep_us, timeout_us) \ argument 180 sleep_us, timeout_us, false, (field), &(val)); \ 1280 void regmap_field_free(struct regmap_field *field); 1284 void devm_regmap_field_free(struct device *dev, struct regmap_field *field); 1290 void regmap_field_bulk_free(struct regmap_field *field); 1292 struct regmap_field **field, 1296 struct regmap_field *field); 1298 int regmap_field_read(struct regmap_field *field, unsigned int *val); 1299 int regmap_field_update_bits_base(struct regmap_field *field, 1302 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/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 | 207 #define _DEVINC(net, statname, mod, idev, field) \ argument 211 mod##SNMP_INC_STATS64((_idev)->stats.statname, (field));\ 212 mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\ 216 #define _DEVINCATOMIC(net, statname, mod, idev, field) \ argument 220 SNMP_INC_STATS_ATOMIC_LONG((_idev)->stats.statname##dev, (field)); \ 221 mod##SNMP_INC_STATS((net)->mib.statname##_statistics, (field));\ 225 #define _DEVINC_ATOMIC_ATOMIC(net, statname, idev, field) \ argument 229 SNMP_INC_STATS_ATOMIC_LONG((_idev)->stats.statname##dev, (field)); \ 230 SNMP_INC_STATS_ATOMIC_LONG((net)->mib.statname##_statistics, (field));\ 233 #define _DEVADD(net, statname, mod, idev, field, val) \ argument [all …]
|
D | udp.h | 411 #define UDP_INC_STATS(net, field, is_udplite) do { \ argument 412 if (is_udplite) SNMP_INC_STATS((net)->mib.udplite_statistics, field); \ 413 else SNMP_INC_STATS((net)->mib.udp_statistics, field); } while(0) 414 #define __UDP_INC_STATS(net, field, is_udplite) do { \ argument 415 if (is_udplite) __SNMP_INC_STATS((net)->mib.udplite_statistics, field); \ 416 else __SNMP_INC_STATS((net)->mib.udp_statistics, field); } while(0) 418 #define __UDP6_INC_STATS(net, field, is_udplite) do { \ argument 419 if (is_udplite) __SNMP_INC_STATS((net)->mib.udplite_stats_in6, field);\ 420 else __SNMP_INC_STATS((net)->mib.udp_stats_in6, field); \ 422 #define UDP6_INC_STATS(net, field, __lite) do { \ argument [all …]
|
D | ip.h | 287 #define IP_INC_STATS(net, field) SNMP_INC_STATS64((net)->mib.ip_statistics, field) argument 288 #define __IP_INC_STATS(net, field) __SNMP_INC_STATS64((net)->mib.ip_statistics, field) argument 289 #define IP_ADD_STATS(net, field, val) SNMP_ADD_STATS64((net)->mib.ip_statistics, field, val) argument 290 #define __IP_ADD_STATS(net, field, val) __SNMP_ADD_STATS64((net)->mib.ip_statistics, field, val) argument 291 #define IP_UPD_PO_STATS(net, field, val) SNMP_UPD_PO_STATS64((net)->mib.ip_statistics, field, val) argument 292 #define __IP_UPD_PO_STATS(net, field, val) __SNMP_UPD_PO_STATS64((net)->mib.ip_statistics, field, v… argument 293 #define NET_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.net_statistics, field) argument 294 #define __NET_INC_STATS(net, field) __SNMP_INC_STATS((net)->mib.net_statistics, field) argument 295 #define NET_ADD_STATS(net, field, adnd) SNMP_ADD_STATS((net)->mib.net_statistics, field, adnd) argument 296 #define __NET_ADD_STATS(net, field, adnd) __SNMP_ADD_STATS((net)->mib.net_statistics, field, adnd) argument
|
/include/trace/ |
D | perf.h | 11 #define __get_dynamic_array(field) \ argument 12 ((void *)__entry + (__entry->__data_loc_##field & 0xffff)) 15 #define __get_dynamic_array_len(field) \ argument 16 ((__entry->__data_loc_##field >> 16) & 0xffff) 19 #define __get_str(field) ((char *)__get_dynamic_array(field)) argument 22 #define __get_bitmask(field) (char *)__get_dynamic_array(field) argument 25 #define __get_sockaddr(field) ((struct sockaddr *)__get_dynamic_array(field)) argument 28 #define __get_rel_dynamic_array(field) \ argument 30 offsetof(typeof(*__entry), __rel_loc_##field) + \ 31 sizeof(__entry->__rel_loc_##field) + \ [all …]
|
D | bpf_probe.h | 11 #define __get_dynamic_array(field) \ argument 12 ((void *)__entry + (__entry->__data_loc_##field & 0xffff)) 15 #define __get_dynamic_array_len(field) \ argument 16 ((__entry->__data_loc_##field >> 16) & 0xffff) 19 #define __get_str(field) ((char *)__get_dynamic_array(field)) argument 22 #define __get_bitmask(field) (char *)__get_dynamic_array(field) argument 25 #define __get_sockaddr(field) ((struct sockaddr *)__get_dynamic_array(field)) argument 28 #define __get_rel_dynamic_array(field) \ argument 29 ((void *)(&__entry->__rel_loc_##field) + \ 30 sizeof(__entry->__rel_loc_##field) + \ [all …]
|
D | trace_events.h | 112 #define __sockaddr(field, len) __dynamic_array(u8, field, len) argument 127 #define __rel_sockaddr(field, len) __rel_dynamic_array(u8, field, len) argument 228 #define __sockaddr(field, len) __dynamic_array(u8, field, len) argument 243 #define __rel_sockaddr(field, len) __rel_dynamic_array(u8, field, len) argument 316 #define __entry field 322 #define __get_dynamic_array(field) \ argument 323 ((void *)__entry + (__entry->__data_loc_##field & 0xffff)) 326 #define __get_dynamic_array_len(field) \ argument 327 ((__entry->__data_loc_##field >> 16) & 0xffff) 330 #define __get_str(field) ((char *)__get_dynamic_array(field)) argument [all …]
|
/include/linux/mdio/ |
D | mdio-xgene.h | 104 #define SET_VAL(field, val) \ argument 105 xgene_enet_set_field_value(field ## _POS, field ## _LEN, val) 107 #define SET_BIT(field) \ argument 108 xgene_enet_set_field_value(field ## _POS, 1, 1) 118 #define GET_VAL(field, src) \ argument 119 xgene_enet_get_field_value(field ## _POS, field ## _LEN, src) 121 #define GET_BIT(field, src) \ argument 122 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 | 142 pix_fmt->field = mbus_fmt->field; in v4l2_fill_pix_format() 164 mbus_fmt->field = pix_fmt->field; in v4l2_fill_mbus_format() 185 pix_mp_fmt->field = mbus_fmt->field; in v4l2_fill_pix_format_mplane() 205 mbus_fmt->field = pix_mp_fmt->field; in v4l2_fill_mbus_format_mplane()
|
D | videobuf-core.h | 72 enum v4l2_field field; member 107 enum v4l2_field field); 142 enum v4l2_field field; member 190 enum v4l2_field field,
|
D | videobuf-dma-contig.h | 21 enum v4l2_field field,
|
/include/media/davinci/ |
D | vpbe_display.h | 34 #define VPBE_DISPLAY_VALID_FIELD(field) ((V4L2_FIELD_NONE == field) || \ argument 35 (V4L2_FIELD_ANY == field) || (V4L2_FIELD_INTERLACED == field))
|
/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)
|
/include/uapi/drm/ |
D | drm_fourcc.h | 1365 #define AMD_FMT_MOD_SET(field, value) \ argument 1366 ((__u64)(value) << AMD_FMT_MOD_##field##_SHIFT) 1367 #define AMD_FMT_MOD_GET(field, value) \ argument 1368 (((value) >> AMD_FMT_MOD_##field##_SHIFT) & AMD_FMT_MOD_##field##_MASK) 1369 #define AMD_FMT_MOD_CLEAR(field) \ argument 1370 (~((__u64)AMD_FMT_MOD_##field##_MASK << AMD_FMT_MOD_##field##_SHIFT))
|