Lines Matching defs:hist
214 static int mdp_do_histogram(struct fb_info *info, struct mdp_histogram *hist)
218 if (!hist->frame_cnt || (hist->bin_cnt == 0) ||
219 (hist->bin_cnt > MDP_HIST_MAX_BIN))
224 mdp_hist.bin_cnt = hist->bin_cnt;
225 mdp_hist.r = (hist->r) ? mdp_hist_r : 0;
226 mdp_hist.g = (hist->g) ? mdp_hist_g : 0;
227 mdp_hist.b = (hist->b) ? mdp_hist_b : 0;
230 MDP_OUTP(MDP_BASE + 0x95004, hist->frame_cnt);
233 MDP_OUTP(MDP_BASE + 0x94004, hist->frame_cnt);
238 if (hist->r) {
239 ret = copy_to_user(hist->r, mdp_hist.r, hist->bin_cnt*4);
243 if (hist->g) {
244 ret = copy_to_user(hist->g, mdp_hist.g, hist->bin_cnt*4);
248 if (hist->b) {
249 ret = copy_to_user(hist->b, mdp_hist.b, hist->bin_cnt*4);
256 printk(KERN_ERR "%s: invalid hist buffer\n", __func__);