Lines Matching refs:field
17 /* Specified attribute (e.g. LBN) of the specified field */
18 #define CDX_VAL(field, attribute) field ## _ ## attribute
19 /* Low bit number of the specified field */
20 #define CDX_LOW_BIT(field) CDX_VAL(field, LBN)
21 /* Bit width of the specified field */
22 #define CDX_WIDTH(field) CDX_VAL(field, WIDTH)
23 /* High bit number of the specified field */
24 #define CDX_HIGH_BIT(field) (CDX_LOW_BIT(field) + CDX_WIDTH(field) - 1)
36 * Extract bit field portion [low,high) from the 32-bit little-endian
39 #define CDX_DWORD_FIELD(dword, field) \
40 (FIELD_GET(GENMASK(CDX_HIGH_BIT(field), CDX_LOW_BIT(field)), \
44 * Creates the portion of the named bit field that lies within the
47 #define CDX_INSERT_FIELD(field, value) \
48 (FIELD_PREP(GENMASK(CDX_HIGH_BIT(field), \
49 CDX_LOW_BIT(field)), value))
73 /* Populate a dword field with various numbers of arguments */