Lines Matching refs:field
97 extern uint32_t phm_set_field_to_u32(u32 offset, u32 original_data, u32 field, u32 size);
137 #define PHM_FIELD_SHIFT(reg, field) reg##__##field##__SHIFT argument
138 #define PHM_FIELD_MASK(reg, field) reg##__##field##_MASK argument
140 #define PHM_SET_FIELD(origval, reg, field, fieldval) \ argument
141 (((origval) & ~PHM_FIELD_MASK(reg, field)) | \
142 (PHM_FIELD_MASK(reg, field) & ((fieldval) << PHM_FIELD_SHIFT(reg, field))))
144 #define PHM_GET_FIELD(value, reg, field) \ argument
145 (((value) & PHM_FIELD_MASK(reg, field)) >> \
146 PHM_FIELD_SHIFT(reg, field))
151 #define PHM_READ_FIELD(device, reg, field) \ argument
152 PHM_GET_FIELD(cgs_read_register(device, mm##reg), reg, field)
154 #define PHM_READ_INDIRECT_FIELD(device, port, reg, field) \ argument
156 reg, field)
158 #define PHM_READ_VFPF_INDIRECT_FIELD(device, port, reg, field) \ argument
160 reg, field)
162 #define PHM_WRITE_FIELD(device, reg, field, fieldval) \ argument
164 cgs_read_register(device, mm##reg), reg, field, fieldval))
166 #define PHM_WRITE_INDIRECT_FIELD(device, port, reg, field, fieldval) \ argument
169 reg, field, fieldval))
171 #define PHM_WRITE_VFPF_INDIRECT_FIELD(device, port, reg, field, fieldval) \ argument
174 reg, field, fieldval))
183 #define PHM_WAIT_INDIRECT_FIELD(hwmgr, port, reg, field, fieldval) \ argument
185 << PHM_FIELD_SHIFT(reg, field), PHM_FIELD_MASK(reg, field))
194 #define PHM_WAIT_INDIRECT_FIELD_UNEQUAL(hwmgr, port, reg, field, fieldval) … argument
196 (fieldval) << PHM_FIELD_SHIFT(reg, field), \
197 PHM_FIELD_MASK(reg, field))
208 #define PHM_WAIT_VFPF_INDIRECT_FIELD_UNEQUAL(hwmgr, port, reg, field, fieldval) \ argument
210 (fieldval) << PHM_FIELD_SHIFT(reg, field), \
211 PHM_FIELD_MASK(reg, field))
222 #define PHM_WAIT_VFPF_INDIRECT_FIELD(hwmgr, port, reg, field, fieldval) \ argument
224 (fieldval) << PHM_FIELD_SHIFT(reg, field), \
225 PHM_FIELD_MASK(reg, field))
236 #define PHM_WAIT_FIELD_UNEQUAL(hwmgr, reg, field, fieldval) \ argument
238 (fieldval) << PHM_FIELD_SHIFT(reg, field), \
239 PHM_FIELD_MASK(reg, field))