Lines Matching refs:_field
210 #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)))
224 #define MCDI_SET_DWORD(_buf, _field, _value) \ argument
225 CDX_POPULATE_DWORD_1(*_MCDI_DWORD(_buf, _field), CDX_DWORD, _value)
226 #define MCDI_DWORD(_buf, _field) \ argument
227 CDX_DWORD_FIELD(*_MCDI_DWORD(_buf, _field), CDX_DWORD)
228 #define MCDI_POPULATE_DWORD_1(_buf, _field, _name1, _value1) \ argument
229 CDX_POPULATE_DWORD_1(*_MCDI_DWORD(_buf, _field), \
231 #define MCDI_SET_QWORD(_buf, _field, _value) \ argument
233 CDX_POPULATE_DWORD_1(_MCDI_DWORD(_buf, _field)[0], \
235 CDX_POPULATE_DWORD_1(_MCDI_DWORD(_buf, _field)[1], \
238 #define MCDI_QWORD(_buf, _field) \ argument
239 (CDX_DWORD_FIELD(_MCDI_DWORD(_buf, _field)[0], CDX_DWORD) | \
240 (u64)CDX_DWORD_FIELD(_MCDI_DWORD(_buf, _field)[1], CDX_DWORD) << 32)