Lines Matching +full:reg +full:- +full:offset
32 * enum cgs_ind_reg - Indirect register spaces
45 * enum cgs_ucode_id - Firmware types for different IPs
65 * struct cgs_firmware_info - Firmware information
84 * cgs_read_register() - Read an MMIO register
86 * @offset: register offset
90 typedef uint32_t (*cgs_read_register_t)(struct cgs_device *cgs_device, unsigned offset);
93 * cgs_write_register() - Write an MMIO register
95 * @offset: register offset
98 typedef void (*cgs_write_register_t)(struct cgs_device *cgs_device, unsigned offset,
102 * cgs_read_ind_register() - Read an indirect register
104 * @offset: register offset
112 * cgs_write_ind_register() - Write an indirect register
114 * @offset: register offset
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 …register(device, mm##reg, (cgs_read_register(device, mm##reg) & ~CGS_REG_FIELD_MASK(reg, field)) |…
133 #define CGS_WREG32_FIELD_IND(device, space, reg, field, val) \ argument
134 …ice, space, ix##reg, (cgs_read_ind_register(device, space, ix##reg) & ~CGS_REG_FIELD_MASK(reg, fie…
150 struct cgs_os_ops; /* To be define in OS-specific CGS header */
161 (((struct cgs_device *)dev)->ops->func(dev, ##__VA_ARGS__))
163 (((struct cgs_device *)dev)->os_ops->func(dev, ##__VA_ARGS__))
165 #define cgs_read_register(dev,offset) \ argument
166 CGS_CALL(read_register,dev,offset)
167 #define cgs_write_register(dev,offset,value) \ argument
168 CGS_CALL(write_register,dev,offset,value)