Lines Matching refs:FLD
33 #define REG_FLD(REG, FLD) \ argument
34 (REG##_##FLD##_MASK)
35 #define REG_FLD_NUM(REG, FLD, num) \ argument
36 FIELD_PREP(REG##_##FLD##_MASK, num)
37 #define REG_GET_FLD(REG, FLD, val) \ argument
38 FIELD_GET(REG##_##FLD##_MASK, val)
39 #define REG_CLR_FLD(REG, FLD, val) \ argument
40 ((val) & ~(REG##_##FLD##_MASK))
41 #define REG_SET_FLD(REG, FLD, val) \ argument
42 ((val) | (REG##_##FLD##_MASK))
43 #define REG_SET_FLD_NUM(REG, FLD, num, val) \ argument
44 (((val) & ~(REG##_##FLD##_MASK)) | FIELD_PREP(REG##_##FLD##_MASK, num))
45 #define REG_TEST_FLD(REG, FLD, val) \ argument
46 ((REG##_##FLD##_MASK) == ((val) & (REG##_##FLD##_MASK)))
47 #define REG_TEST_FLD_NUM(REG, FLD, num, val) \ argument
48 ((num) == FIELD_GET(REG##_##FLD##_MASK, val))