• Home
  • Raw
  • Download

Lines Matching refs:stats

25 	struct rkisp1_stats *stats = video_get_drvdata(video);  in rkisp1_stats_enum_fmt_meta_cap()  local
30 f->pixelformat = stats->vdev_fmt.fmt.meta.dataformat; in rkisp1_stats_enum_fmt_meta_cap()
38 struct rkisp1_stats *stats = video_get_drvdata(video); in rkisp1_stats_g_fmt_meta_cap() local
45 meta->dataformat = stats->vdev_fmt.fmt.meta.dataformat; in rkisp1_stats_g_fmt_meta_cap()
46 meta->buffersize = stats->vdev_fmt.fmt.meta.buffersize; in rkisp1_stats_g_fmt_meta_cap()
133 struct rkisp1_stats *stats = vq->drv_priv; in rkisp1_stats_vb2_stop_streaming() local
137 spin_lock_irq(&stats->lock); in rkisp1_stats_vb2_stop_streaming()
139 if (list_empty(&stats->stat)) in rkisp1_stats_vb2_stop_streaming()
141 buf = list_first_entry(&stats->stat, in rkisp1_stats_vb2_stop_streaming()
146 spin_unlock_irq(&stats->lock); in rkisp1_stats_vb2_stop_streaming()
159 rkisp1_stats_init_vb2_queue(struct vb2_queue *q, struct rkisp1_stats *stats) in rkisp1_stats_init_vb2_queue() argument
167 q->drv_priv = stats; in rkisp1_stats_init_vb2_queue()
177 static void rkisp1_stats_get_awb_meas_v10(struct rkisp1_stats *stats, in rkisp1_stats_get_awb_meas_v10() argument
181 struct rkisp1_device *rkisp1 = stats->rkisp1; in rkisp1_stats_get_awb_meas_v10()
198 static void rkisp1_stats_get_awb_meas_v12(struct rkisp1_stats *stats, in rkisp1_stats_get_awb_meas_v12() argument
202 struct rkisp1_device *rkisp1 = stats->rkisp1; in rkisp1_stats_get_awb_meas_v12()
219 static void rkisp1_stats_get_aec_meas_v10(struct rkisp1_stats *stats, in rkisp1_stats_get_aec_meas_v10() argument
222 struct rkisp1_device *rkisp1 = stats->rkisp1; in rkisp1_stats_get_aec_meas_v10()
232 static void rkisp1_stats_get_aec_meas_v12(struct rkisp1_stats *stats, in rkisp1_stats_get_aec_meas_v12() argument
235 struct rkisp1_device *rkisp1 = stats->rkisp1; in rkisp1_stats_get_aec_meas_v12()
256 static void rkisp1_stats_get_afc_meas(struct rkisp1_stats *stats, in rkisp1_stats_get_afc_meas() argument
259 struct rkisp1_device *rkisp1 = stats->rkisp1; in rkisp1_stats_get_afc_meas()
273 static void rkisp1_stats_get_hst_meas_v10(struct rkisp1_stats *stats, in rkisp1_stats_get_hst_meas_v10() argument
276 struct rkisp1_device *rkisp1 = stats->rkisp1; in rkisp1_stats_get_hst_meas_v10()
287 static void rkisp1_stats_get_hst_meas_v12(struct rkisp1_stats *stats, in rkisp1_stats_get_hst_meas_v12() argument
290 struct rkisp1_device *rkisp1 = stats->rkisp1; in rkisp1_stats_get_hst_meas_v12()
304 static void rkisp1_stats_get_bls_meas(struct rkisp1_stats *stats, in rkisp1_stats_get_bls_meas() argument
307 struct rkisp1_device *rkisp1 = stats->rkisp1; in rkisp1_stats_get_bls_meas()
364 rkisp1_stats_send_measurement(struct rkisp1_stats *stats, u32 isp_ris) in rkisp1_stats_send_measurement() argument
368 unsigned int frame_sequence = stats->rkisp1->isp.frame_sequence; in rkisp1_stats_send_measurement()
372 if (!list_empty(&stats->stat)) { in rkisp1_stats_send_measurement()
373 cur_buf = list_first_entry(&stats->stat, in rkisp1_stats_send_measurement()
384 stats->ops->get_awb_meas(stats, cur_stat_buf); in rkisp1_stats_send_measurement()
387 rkisp1_stats_get_afc_meas(stats, cur_stat_buf); in rkisp1_stats_send_measurement()
390 stats->ops->get_aec_meas(stats, cur_stat_buf); in rkisp1_stats_send_measurement()
391 rkisp1_stats_get_bls_meas(stats, cur_stat_buf); in rkisp1_stats_send_measurement()
395 stats->ops->get_hst_meas(stats, cur_stat_buf); in rkisp1_stats_send_measurement()
404 void rkisp1_stats_isr(struct rkisp1_stats *stats, u32 isp_ris) in rkisp1_stats_isr() argument
406 struct rkisp1_device *rkisp1 = stats->rkisp1; in rkisp1_stats_isr()
409 spin_lock(&stats->lock); in rkisp1_stats_isr()
418 rkisp1_stats_send_measurement(stats, isp_ris); in rkisp1_stats_isr()
420 spin_unlock(&stats->lock); in rkisp1_stats_isr()
423 static void rkisp1_init_stats(struct rkisp1_stats *stats) in rkisp1_init_stats() argument
425 stats->vdev_fmt.fmt.meta.dataformat = in rkisp1_init_stats()
427 stats->vdev_fmt.fmt.meta.buffersize = in rkisp1_init_stats()
430 if (stats->rkisp1->info->isp_ver == RKISP1_V12) in rkisp1_init_stats()
431 stats->ops = &rkisp1_v12_stats_ops; in rkisp1_init_stats()
433 stats->ops = &rkisp1_v10_stats_ops; in rkisp1_init_stats()
438 struct rkisp1_stats *stats = &rkisp1->stats; in rkisp1_stats_register() local
439 struct rkisp1_vdev_node *node = &stats->vnode; in rkisp1_stats_register()
443 stats->rkisp1 = rkisp1; in rkisp1_stats_register()
445 INIT_LIST_HEAD(&stats->stat); in rkisp1_stats_register()
446 spin_lock_init(&stats->lock); in rkisp1_stats_register()
450 video_set_drvdata(vdev, stats); in rkisp1_stats_register()
459 rkisp1_stats_init_vb2_queue(vdev->queue, stats); in rkisp1_stats_register()
460 rkisp1_init_stats(stats); in rkisp1_stats_register()
461 video_set_drvdata(vdev, stats); in rkisp1_stats_register()
480 stats->rkisp1 = NULL; in rkisp1_stats_register()
486 struct rkisp1_stats *stats = &rkisp1->stats; in rkisp1_stats_unregister() local
487 struct rkisp1_vdev_node *node = &stats->vnode; in rkisp1_stats_unregister()
490 if (!stats->rkisp1) in rkisp1_stats_unregister()