Lines Matching defs:header
50 struct occ_poll_response_header *header;
58 header = (struct occ_poll_response_header *)occ->resp.data;
62 val = !!(header->status & OCC_STAT_MASTER);
68 val = !!(header->ext_status & OCC_EXT_STAT_DVFS_OT);
71 val = !!(header->ext_status & OCC_EXT_STAT_DVFS_POWER);
74 val = !!(header->ext_status &
78 val = !!(header->ext_status & OCC_EXT_STAT_QUICK_DROP);
81 val = header->occ_state;
84 if (header->status & OCC_STAT_MASTER)
85 val = hweight8(header->occs_present);
90 val = header->ips_status;
93 val = header->mode;
96 val = !!(header->ext_status & OCC_EXT_STAT_DVFS_VDD);
99 val = header->ext_status & OCC_EXT_STAT_GPU_THROTTLE;
165 struct occ_poll_response_header *header =
175 if ((header->status & OCC_STAT_MASTER) !=
181 if ((header->ext_status & OCC_EXT_STAT_DVFS_OT) !=
187 if ((header->ext_status & OCC_EXT_STAT_DVFS_POWER) !=
193 if ((header->ext_status & OCC_EXT_STAT_MEM_THROTTLE) !=
199 if ((header->ext_status & OCC_EXT_STAT_QUICK_DROP) !=
205 if ((header->ext_status & OCC_EXT_STAT_DVFS_VDD) !=
211 if ((header->ext_status & OCC_EXT_STAT_GPU_THROTTLE) !=
217 if ((header->status & OCC_STAT_MASTER) &&
218 header->occs_present != occ->prev_occs_present) {
223 if (header->ips_status != occ->prev_ips_status) {
228 if (header->mode != occ->prev_mode) {
242 occ->prev_stat = header->status;
243 occ->prev_ext_stat = header->ext_status;
244 occ->prev_occs_present = header->occs_present;
245 occ->prev_ips_status = header->ips_status;
246 occ->prev_mode = header->mode;