Home
last modified time | relevance | path

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

12

/drivers/net/ethernet/sfc/
Dmcdi.h202 #define MCDI_PTR(_buf, _field) \ argument
203 _MCDI_PTR(_buf, MC_CMD_ ## _field ## _OFST)
208 #define MCDI_STRUCT_PTR(_buf, _field) \ argument
209 _MCDI_PTR(_buf, _field ## _OFST)
212 #define _MCDI_DWORD(_buf, _field) \ argument
213 ((_buf) + (_MCDI_CHECK_ALIGN(MC_CMD_ ## _field ## _OFST, 4) >> 2))
214 #define _MCDI_STRUCT_DWORD(_buf, _field) \ argument
215 ((_buf) + (_MCDI_CHECK_ALIGN(_field ## _OFST, 4) >> 2))
217 #define MCDI_STRUCT_SET_BYTE(_buf, _field, _value) do { \ argument
218 BUILD_BUG_ON(_field ## _LEN != 1); \
[all …]
Dmae.c635 #define CHECK(_mcdi, _field) ({ \ argument
636 enum mask_type typ = classify_mask((const u8 *)&mask->_field, \
637 sizeof(mask->_field)); \
644 mask_type_name(typ), #_field); \
648 #define CHECK_BIT(_mcdi, _field) ({ \ argument
649 enum mask_type typ = mask->_field ? MASK_ONES : MASK_ZEROES; \
656 mask_type_name(typ), #_field); \
732 #define UNSUPPORTED(_field) ({ \ argument
733 enum mask_type typ = classify_mask((const u8 *)&mask->_field, \
734 sizeof(mask->_field)); \
[all …]
Dtc.c225 #define _MAP_KEY_AND_MASK(_name, _type, _tcget, _tcfield, _field) \ argument
230 match->value._field = fm.key->_tcfield; \
231 match->mask._field = fm.mask->_tcfield; \
233 #define MAP_KEY_AND_MASK(_name, _type, _tcfield, _field) \ argument
234 _MAP_KEY_AND_MASK(_name, _type, _type, _tcfield, _field)
235 #define MAP_ENC_KEY_AND_MASK(_name, _type, _tcget, _tcfield, _field) \ argument
236 _MAP_KEY_AND_MASK(ENC_##_name, _type, _tcget, _tcfield, _field)
/drivers/net/ethernet/sfc/siena/
Dmcdi.h204 #define MCDI_PTR(_buf, _field) \ argument
205 _MCDI_PTR(_buf, MC_CMD_ ## _field ## _OFST)
208 #define _MCDI_DWORD(_buf, _field) \ argument
209 ((_buf) + (_MCDI_CHECK_ALIGN(MC_CMD_ ## _field ## _OFST, 4) >> 2))
211 #define MCDI_BYTE(_buf, _field) \ argument
212 ((void)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 1), \
213 *MCDI_PTR(_buf, _field))
214 #define MCDI_WORD(_buf, _field) \ argument
215 ((u16)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 2) + \
216 le16_to_cpu(*(__force const __le16 *)MCDI_PTR(_buf, _field)))
[all …]
/drivers/cdx/controller/
Dmcdi.h210 #define MCDI_PTR(_buf, _field) \ argument
211 _MCDI_PTR(_buf, MC_CMD_ ## _field ## _OFST)
215 #define _MCDI_DWORD(_buf, _field) \ argument
216 ((_buf) + (_MCDI_CHECK_ALIGN(MC_CMD_ ## _field ## _OFST, 4) >> 2))
218 #define MCDI_BYTE(_buf, _field) \ argument
219 ((void)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 1), \
220 *MCDI_PTR(_buf, _field))
221 #define MCDI_WORD(_buf, _field) \ argument
222 ((void)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 2), \
223 le16_to_cpu(*(__force const __le16 *)MCDI_PTR(_buf, _field)))
[all …]
/drivers/net/ethernet/amd/xgbe/
Dxgbe-common.h1475 #define XGMAC_GET_BITS(_var, _prefix, _field) \ argument
1477 _prefix##_##_field##_INDEX, \
1478 _prefix##_##_field##_WIDTH)
1480 #define XGMAC_SET_BITS(_var, _prefix, _field, _val) \ argument
1482 _prefix##_##_field##_INDEX, \
1483 _prefix##_##_field##_WIDTH, (_val))
1485 #define XGMAC_GET_BITS_LE(_var, _prefix, _field) \ argument
1487 _prefix##_##_field##_INDEX, \
1488 _prefix##_##_field##_WIDTH)
1490 #define XGMAC_SET_BITS_LE(_var, _prefix, _field, _val) \ argument
[all …]
/drivers/net/wireless/intel/iwlwifi/fw/api/
Dcoex.h136 #define BT_MBOX_MSG(_notif, _num, _field) \ argument
137 ((le32_to_cpu((_notif)->mbox_msg[(_num)]) & BT_MBOX##_num##_##_field)\
138 >> BT_MBOX##_num##_##_field##_POS)
140 #define BT_MBOX_PRINT(_num, _field, _end) \ argument
143 #_field, \
144 BT_MBOX_MSG(notif, _num, _field), \
/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 …]
/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;\
/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);
187 #define ADD_DMI_ATTR(_name, _field) \ argument
188 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)
/drivers/input/touchscreen/
Dhycon-hy46xx.c154 #define HYCON_ATTR_U8(_field, _mode, _address, _limit_low, _limit_high) \ argument
155 struct hycon_hy46xx_attribute hycon_hy46xx_attr_##_field = { \
156 .dattr = __ATTR(_field, _mode, \
159 .field_offset = offsetof(struct hycon_hy46xx_data, _field), \
165 #define HYCON_ATTR_BOOL(_field, _mode, _address) \ argument
166 struct hycon_hy46xx_attribute hycon_hy46xx_attr_##_field = { \
167 .dattr = __ATTR(_field, _mode, \
170 .field_offset = offsetof(struct hycon_hy46xx_data, _field), \
Delants_i2c.c1259 #define __ELANTS_FIELD_SIZE(_field) \ argument
1260 sizeof(((struct elants_data *)NULL)->_field)
1261 #define __ELANTS_VERIFY_SIZE(_field) \ argument
1262 (BUILD_BUG_ON_ZERO(__ELANTS_FIELD_SIZE(_field) > 2) + \
1263 __ELANTS_FIELD_SIZE(_field))
1264 #define ELANTS_VERSION_ATTR(_field) \ argument
1265 struct elants_version_attribute elants_ver_attr_##_field = { \
1266 .dattr = __ATTR(_field, S_IRUGO, \
1268 .field_offset = offsetof(struct elants_data, _field), \
1269 .field_size = __ELANTS_VERIFY_SIZE(_field), \
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl.c532 #define MLXSW_SP_ACL_MANGLE_ACTION(_htype, _offset, _mask, _shift, _field) \ argument
538 .field = MLXSW_SP_ACL_MANGLE_FIELD_##_field, \
541 #define MLXSW_SP_ACL_MANGLE_ACTION_IP4(_offset, _mask, _shift, _field) \ argument
543 _offset, _mask, _shift, _field)
545 #define MLXSW_SP_ACL_MANGLE_ACTION_IP6(_offset, _mask, _shift, _field) \ argument
547 _offset, _mask, _shift, _field)
549 #define MLXSW_SP_ACL_MANGLE_ACTION_TCP(_offset, _mask, _shift, _field) \ argument
550 MLXSW_SP_ACL_MANGLE_ACTION(FLOW_ACT_MANGLE_HDR_TYPE_TCP, _offset, _mask, _shift, _field)
552 #define MLXSW_SP_ACL_MANGLE_ACTION_UDP(_offset, _mask, _shift, _field) \ argument
553 MLXSW_SP_ACL_MANGLE_ACTION(FLOW_ACT_MANGLE_HDR_TYPE_UDP, _offset, _mask, _shift, _field)
/drivers/net/wireless/mediatek/mt76/
Ddma.c12 #define Q_READ(_dev, _q, _field) ({ \ argument
13 u32 _offset = offsetof(struct mt76_queue_regs, _field); \
20 _val = readl(&(_q)->regs->_field); \
24 #define Q_WRITE(_dev, _q, _field, _val) do { \ argument
25 u32 _offset = offsetof(struct mt76_queue_regs, _field); \
31 writel(_val, &(_q)->regs->_field); \
36 #define Q_READ(_dev, _q, _field) readl(&(_q)->regs->_field) argument
37 #define Q_WRITE(_dev, _q, _field, _val) writel(_val, &(_q)->regs->_field) argument
Dmt76.h1023 #define mt76_get_field(_dev, _reg, _field) \ argument
1024 FIELD_GET(_field, mt76_rr(dev, _reg))
1026 #define mt76_rmw_field(_dev, _reg, _field, _val) \ argument
1027 mt76_rmw(_dev, _reg, _field, FIELD_PREP(_field, _val))
1029 #define __mt76_rmw_field(_dev, _reg, _field, _val) \ argument
1030 __mt76_rmw(_dev, _reg, _field, FIELD_PREP(_field, _val))
/drivers/iio/health/
Dafe440x.h145 #define AFE440X_ATTR(_name, _field, _table) \ argument
150 .field = _field, \
/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); \
/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))
/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 …]
/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
/drivers/pinctrl/cirrus/
Dpinctrl-cs42l43.c46 #define CS42L43_PIN(_number, _name, _reg, _field) { \ argument
50 .shift = CS42L43_##_field##_DRV_SHIFT, \
51 .mask = CS42L43_##_field##_DRV_MASK, \
/drivers/misc/bcm-vk/
Dbcm_vk.h428 #define BCM_VK_EXTRACT_FIELD(_field, _reg, _mask, _shift) \ argument
429 (_field = (((_reg) >> (_shift)) & (_mask)))
/drivers/iio/accel/
Dmsa311.c338 typeof(&(msa311_reg_fields)[0]) _field; \
339 _field = &msa311_reg_fields[(field)]; \
340 GENMASK(_field->msb, _field->lsb); \
/drivers/mailbox/
Darm_mhuv2.c242 #define readl_relaxed_bitfield(_regptr, _type, _field) \ argument
246 (*(_type *)(&_regval))._field; \
250 #define writel_relaxed_bitfield(_value, _regptr, _type, _field) \ argument
254 (*(_type *)(&_regval))._field = _value; \

12