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