Lines Matching refs:bucket
71 size_t i, bucket; in bcm_aggregate() local
76 for (bucket = 0; bucket < QCOM_ICC_NUM_BUCKETS; bucket++) { in bcm_aggregate()
79 temp = bcm_div(node->sum_avg[bucket] * bcm->aux_data.width, in bcm_aggregate()
81 agg_avg[bucket] = max(agg_avg[bucket], temp); in bcm_aggregate()
83 temp = bcm_div(node->max_peak[bucket] * bcm->aux_data.width, in bcm_aggregate()
85 agg_peak[bucket] = max(agg_peak[bucket], temp); in bcm_aggregate()
88 temp = agg_avg[bucket] * bcm->vote_scale; in bcm_aggregate()
89 bcm->vote_x[bucket] = bcm_div(temp, bcm->aux_data.unit); in bcm_aggregate()
91 temp = agg_peak[bucket] * bcm->vote_scale; in bcm_aggregate()
92 bcm->vote_y[bucket] = bcm_div(temp, bcm->aux_data.unit); in bcm_aggregate()
133 static void tcs_list_gen(struct bcm_voter *voter, int bucket, in tcs_list_gen() argument
153 wait = commit && (voter->tcs_wait & BIT(bucket)); in tcs_list_gen()
155 tcs_cmd_gen(&tcs_list[idx], bcm->vote_x[bucket], in tcs_list_gen()
156 bcm->vote_y[bucket], bcm->addr, commit, wait); in tcs_list_gen()