Home
last modified time | relevance | path

Searched refs:_field (Results 1 – 25 of 38) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
Dmcdi.h202 #define MCDI_PTR(_buf, _field) \ argument
203 _MCDI_PTR(_buf, MC_CMD_ ## _field ## _OFST)
206 #define _MCDI_DWORD(_buf, _field) \ argument
207 ((_buf) + (_MCDI_CHECK_ALIGN(MC_CMD_ ## _field ## _OFST, 4) >> 2))
209 #define MCDI_BYTE(_buf, _field) \ argument
210 ((void)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 1), \
211 *MCDI_PTR(_buf, _field))
212 #define MCDI_WORD(_buf, _field) \ argument
213 ((u16)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 2) + \
214 le16_to_cpu(*(__force const __le16 *)MCDI_PTR(_buf, _field)))
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/xgbe/
Dxgbe-common.h1435 #define XGMAC_GET_BITS(_var, _prefix, _field) \ argument
1437 _prefix##_##_field##_INDEX, \
1438 _prefix##_##_field##_WIDTH)
1440 #define XGMAC_SET_BITS(_var, _prefix, _field, _val) \ argument
1442 _prefix##_##_field##_INDEX, \
1443 _prefix##_##_field##_WIDTH, (_val))
1445 #define XGMAC_GET_BITS_LE(_var, _prefix, _field) \ argument
1447 _prefix##_##_field##_INDEX, \
1448 _prefix##_##_field##_WIDTH)
1450 #define XGMAC_SET_BITS_LE(_var, _prefix, _field, _val) \ argument
[all …]
/kernel/linux/linux-5.10/tools/perf/ui/
Dhist.c340 #define __HPP_COLOR_PERCENT_FN(_type, _field) \ argument
341 static u64 he_get_##_field(struct hist_entry *he) \
343 return he->stat._field; \
349 return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \
353 #define __HPP_ENTRY_PERCENT_FN(_type, _field) \ argument
357 return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \
361 #define __HPP_SORT_FN(_type, _field) \ argument
365 return __hpp__sort(a, b, he_get_##_field); \
368 #define __HPP_COLOR_ACC_PERCENT_FN(_type, _field) \ argument
369 static u64 he_get_acc_##_field(struct hist_entry *he) \
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/fw/api/
Dcoex.h193 #define BT_MBOX_MSG(_notif, _num, _field) \ argument
194 ((le32_to_cpu((_notif)->mbox_msg[(_num)]) & BT_MBOX##_num##_##_field)\
195 >> BT_MBOX##_num##_##_field##_POS)
197 #define BT_MBOX_PRINT(_num, _field, _end) \ argument
200 #_field, \
201 BT_MBOX_MSG(notif, _num, _field), \
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/spufs/
Dspu_utils.h50 #define LSCSA_BYTE_OFFSET(_field) \ argument
51 ((char *)(&(dummy->_field)) - (char *)(&(dummy->gprs[0].slot[0])))
52 #define LSCSA_QW_OFFSET(_field) (LSCSA_BYTE_OFFSET(_field) >> 4) argument
/kernel/linux/linux-5.10/arch/mips/ath25/
Ddevices.h7 #define ATH25_REG_MS(_val, _field) (((_val) & _field##_M) >> _field##_S) argument
/kernel/linux/linux-5.10/drivers/net/ethernet/atheros/alx/
Dhw.h456 #define ALX_GET_FIELD(_data, _field) \ argument
457 (((_data) >> _field ## _SHIFT) & _field ## _MASK)
459 #define ALX_SET_FIELD(_data, _field, _value) do { \ argument
460 (_data) &= ~(_field ## _MASK << _field ## _SHIFT); \
461 (_data) |= ((_value) & _field ## _MASK) << _field ## _SHIFT;\
/kernel/linux/linux-5.10/drivers/bcma/
Dsprom.c185 #define SPEX(_field, _offset, _mask, _shift) \ argument
186 bus->sprom._field = ((sprom[SPOFF(_offset)] & (_mask)) >> (_shift))
188 #define SPEX32(_field, _offset, _mask, _shift) \ argument
189 bus->sprom._field = ((((u32)sprom[SPOFF((_offset)+2)] << 16 | \
192 #define SPEX_ARRAY8(_field, _offset, _mask, _shift) \ argument
194 SPEX(_field[0], _offset + 0, _mask, _shift); \
195 SPEX(_field[1], _offset + 2, _mask, _shift); \
196 SPEX(_field[2], _offset + 4, _mask, _shift); \
197 SPEX(_field[3], _offset + 6, _mask, _shift); \
198 SPEX(_field[4], _offset + 8, _mask, _shift); \
[all …]
/kernel/linux/linux-5.10/drivers/firmware/
Ddmi-id.c33 #define DMI_ATTR(_name, _mode, _show, _field) \ argument
35 .field = _field }
37 #define DEFINE_DMI_ATTR_WITH_SHOW(_name, _mode, _field) \ argument
39 DMI_ATTR(_name, _mode, sys_dmi_field_show, _field);
177 #define ADD_DMI_ATTR(_name, _field) \ argument
178 if (dmi_get_system_info(_field)) \
Ddmi-sysfs.c268 #define DMI_SYSFS_SEL_FIELD(_field) \ argument
269 static ssize_t dmi_sysfs_sel_##_field(struct dmi_sysfs_entry *entry, \
277 return sprintf(buf, "%u\n", sel._field); \
279 static DMI_SYSFS_MAPPED_ATTR(sel, _field)
/kernel/linux/linux-5.10/arch/x86/platform/ts5500/
Dts5500.c177 #define TS5500_ATTR_BOOL(_field) \ argument
178 static ssize_t _field##_show(struct device *dev, \
183 return sprintf(buf, "%d\n", sbc->_field); \
185 static DEVICE_ATTR_RO(_field)
/kernel/linux/linux-5.10/tools/perf/ui/gtk/
Dhists.c43 #define __HPP_COLOR_PERCENT_FN(_type, _field) \ argument
44 static u64 he_get_##_field(struct hist_entry *he) \
46 return he->stat._field; \
53 return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \
57 #define __HPP_COLOR_ACC_PERCENT_FN(_type, _field) \ argument
58 static u64 he_get_acc_##_field(struct hist_entry *he) \
60 return he->stat_acc->_field; \
67 return hpp__fmt_acc(fmt, hpp, he, he_get_acc_##_field, " %*.2f%%", \
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl.c527 #define MLXSW_SP_ACL_MANGLE_ACTION(_htype, _offset, _mask, _shift, _field) \ argument
533 .field = MLXSW_SP_ACL_MANGLE_FIELD_##_field, \
536 #define MLXSW_SP_ACL_MANGLE_ACTION_IP4(_offset, _mask, _shift, _field) \ argument
538 _offset, _mask, _shift, _field)
540 #define MLXSW_SP_ACL_MANGLE_ACTION_IP6(_offset, _mask, _shift, _field) \ argument
542 _offset, _mask, _shift, _field)
544 #define MLXSW_SP_ACL_MANGLE_ACTION_TCP(_offset, _mask, _shift, _field) \ argument
545 MLXSW_SP_ACL_MANGLE_ACTION(FLOW_ACT_MANGLE_HDR_TYPE_TCP, _offset, _mask, _shift, _field)
547 #define MLXSW_SP_ACL_MANGLE_ACTION_UDP(_offset, _mask, _shift, _field) \ argument
548 MLXSW_SP_ACL_MANGLE_ACTION(FLOW_ACT_MANGLE_HDR_TYPE_UDP, _offset, _mask, _shift, _field)
/kernel/linux/linux-5.10/drivers/iio/health/
Dafe440x.h145 #define AFE440X_ATTR(_name, _field, _table) \ argument
150 .field = _field, \
/kernel/linux/linux-5.10/drivers/input/touchscreen/
Delants_i2c.c1149 #define __ELANTS_FIELD_SIZE(_field) \ argument
1150 sizeof(((struct elants_data *)NULL)->_field)
1151 #define __ELANTS_VERIFY_SIZE(_field) \ argument
1152 (BUILD_BUG_ON_ZERO(__ELANTS_FIELD_SIZE(_field) > 2) + \
1153 __ELANTS_FIELD_SIZE(_field))
1154 #define ELANTS_VERSION_ATTR(_field) \ argument
1155 struct elants_version_attribute elants_ver_attr_##_field = { \
1156 .dattr = __ATTR(_field, S_IRUGO, \
1158 .field_offset = offsetof(struct elants_data, _field), \
1159 .field_size = __ELANTS_VERIFY_SIZE(_field), \
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt7601u/
Dmt7601u.h297 #define mt76_rmw_field(_dev, _reg, _field, _val) \ argument
298 mt76_rmw(_dev, _reg, _field, FIELD_PREP(_field, _val))
/kernel/linux/linux-5.10/drivers/ssb/
Dpci.c179 #define SPEX_ARRAY8(_field, _offset, _mask, _shift) \ argument
181 SPEX(_field[0], _offset + 0, _mask, _shift); \
182 SPEX(_field[1], _offset + 2, _mask, _shift); \
183 SPEX(_field[2], _offset + 4, _mask, _shift); \
184 SPEX(_field[3], _offset + 6, _mask, _shift); \
185 SPEX(_field[4], _offset + 8, _mask, _shift); \
186 SPEX(_field[5], _offset + 10, _mask, _shift); \
187 SPEX(_field[6], _offset + 12, _mask, _shift); \
188 SPEX(_field[7], _offset + 14, _mask, _shift); \
/kernel/linux/linux-5.10/include/linux/
Dide.h941 #define ide_devset_rw_field(_name, _field) \ argument
942 ide_devset_get(_name, _field); \
943 ide_devset_set(_name, _field); \
946 #define ide_devset_ro_field(_name, _field) \ argument
947 ide_devset_get(_name, _field); \
950 #define ide_devset_rw_flag(_name, _field) \ argument
951 ide_devset_get_flag(_name, _field); \
952 ide_devset_set_flag(_name, _field); \
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/
Dmt76.h703 #define mt76_get_field(_dev, _reg, _field) \ argument
704 FIELD_GET(_field, mt76_rr(dev, _reg))
706 #define mt76_rmw_field(_dev, _reg, _field, _val) \ argument
707 mt76_rmw(_dev, _reg, _field, FIELD_PREP(_field, _val))
709 #define __mt76_rmw_field(_dev, _reg, _field, _val) \ argument
710 __mt76_rmw(_dev, _reg, _field, FIELD_PREP(_field, _val))
/kernel/linux/linux-5.10/drivers/input/misc/
Dims-pcu.c1096 #define IMS_PCU_ATTR(_field, _mode) \ argument
1097 struct ims_pcu_attribute ims_pcu_attr_##_field = { \
1098 .dattr = __ATTR(_field, _mode, \
1101 .field_offset = offsetof(struct ims_pcu, _field), \
1102 .field_length = sizeof(((struct ims_pcu *)NULL)->_field), \
1105 #define IMS_PCU_RO_ATTR(_field) \ argument
1106 IMS_PCU_ATTR(_field, S_IRUGO)
1107 #define IMS_PCU_RW_ATTR(_field) \ argument
1108 IMS_PCU_ATTR(_field, S_IRUGO | S_IWUSR)
1439 #define IMS_PCU_OFN_BIT_ATTR(_field, _addr, _nr) \ argument
[all …]
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/genwqe/
Dgenwqe_card.h210 #define ATS_SET_FLAGS(_struct, _field, _flags) \ argument
211 (((_flags) & 0xf) << (44 - (4 * (offsetof(_struct, _field) / 8))))
/kernel/linux/linux-5.10/include/uapi/linux/genwqe/
Dgenwqe_card.h391 #define ATS_SET_FLAGS(_struct, _field, _flags) \ argument
392 (((_flags) & 0xf) << (44 - (4 * (offsetof(_struct, _field) / 8))))
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/genwqe/
Dgenwqe_card.h223 #define ATS_SET_FLAGS(_struct,_field,_flags) (((_flags) & 0xf) << (44 - (4 * (offsetof(_struct, _fi… argument
/kernel/linux/linux-5.10/drivers/edac/
Dthunderx_edac.c228 #define DEBUGFS_FIELD_ATTR(_type, _field) \ argument
229 static ssize_t thunderx_##_type##_##_field##_read(struct file *file, \
236 snprintf(buf, count, "0x%016llx", pdata->_field); \
241 static ssize_t thunderx_##_type##_##_field##_write(struct file *file, \
248 res = kstrtoull_from_user(data, count, 0, &pdata->_field); \
253 DEBUGFS_STRUCT(_field, 0600, \
254 thunderx_##_type##_##_field##_write, \
255 thunderx_##_type##_##_field##_read) \
292 #define LMC_DEBUGFS_ENT(_field) DEBUGFS_FIELD_ATTR(lmc, _field) argument
/kernel/linux/linux-5.10/arch/arm64/kernel/
Dcpuinfo.c242 #define CPUREGS_ATTR_RO(_name, _field) \ argument
249 return sprintf(buf, "0x%016x\n", info->reg_##_field); \

12