Lines Matching refs:field
120 #define CGS_REG_FIELD_SHIFT(reg, field) reg##__##field##__SHIFT argument
121 #define CGS_REG_FIELD_MASK(reg, field) reg##__##field##_MASK argument
123 #define CGS_REG_SET_FIELD(orig_val, reg, field, field_val) \ argument
124 (((orig_val) & ~CGS_REG_FIELD_MASK(reg, field)) | \
125 (CGS_REG_FIELD_MASK(reg, field) & ((field_val) << CGS_REG_FIELD_SHIFT(reg, field))))
127 #define CGS_REG_GET_FIELD(value, reg, field) \ argument
128 (((value) & CGS_REG_FIELD_MASK(reg, field)) >> CGS_REG_FIELD_SHIFT(reg, field))
130 #define CGS_WREG32_FIELD(device, reg, field, val) \ argument
131 …egister(device, mm##reg) & ~CGS_REG_FIELD_MASK(reg, field)) | (val) << CGS_REG_FIELD_SHIFT(reg, fi…
133 #define CGS_WREG32_FIELD_IND(device, space, reg, field, val) \ argument
134 …(device, space, ix##reg) & ~CGS_REG_FIELD_MASK(reg, field)) | (val) << CGS_REG_FIELD_SHIFT(reg, fi…