Home
last modified time | relevance | path

Searched refs:histo (Results 1 - 18 of 18) sorted by relevance

/kernel/linux/linux-5.10/drivers/media/platform/vsp1/
H A Dvsp1_histo.c36 vsp1_histogram_buffer_get(struct vsp1_histogram *histo) in vsp1_histogram_buffer_get() argument
41 spin_lock_irqsave(&histo->irqlock, flags); in vsp1_histogram_buffer_get()
43 if (list_empty(&histo->irqqueue)) in vsp1_histogram_buffer_get()
46 buf = list_first_entry(&histo->irqqueue, struct vsp1_histogram_buffer, in vsp1_histogram_buffer_get()
49 histo->readout = true; in vsp1_histogram_buffer_get()
52 spin_unlock_irqrestore(&histo->irqlock, flags); in vsp1_histogram_buffer_get()
56 void vsp1_histogram_buffer_complete(struct vsp1_histogram *histo, in vsp1_histogram_buffer_complete() argument
60 struct vsp1_pipeline *pipe = histo->entity.pipe; in vsp1_histogram_buffer_complete()
73 spin_lock_irqsave(&histo->irqlock, flags); in vsp1_histogram_buffer_complete()
74 histo in vsp1_histogram_buffer_complete()
87 struct vsp1_histogram *histo = vb2_get_drv_priv(vq); histo_queue_setup() local
108 struct vsp1_histogram *histo = vb2_get_drv_priv(vb->vb2_queue); histo_buffer_prepare() local
125 struct vsp1_histogram *histo = vb2_get_drv_priv(vb->vb2_queue); histo_buffer_queue() local
141 struct vsp1_histogram *histo = vb2_get_drv_priv(vq); histo_stop_streaming() local
176 struct vsp1_histogram *histo = subdev_to_histo(subdev); histo_enum_mbus_code() local
203 struct vsp1_histogram *histo = subdev_to_histo(subdev); histo_get_selection() local
262 struct vsp1_histogram *histo = subdev_to_histo(subdev); histo_set_crop() local
293 struct vsp1_histogram *histo = subdev_to_histo(subdev); histo_set_compose() local
344 struct vsp1_histogram *histo = subdev_to_histo(subdev); histo_set_selection() local
391 struct vsp1_histogram *histo = subdev_to_histo(subdev); histo_set_format() local
423 struct vsp1_histogram *histo = vdev_to_histo(vfh->vdev); histo_v4l2_querycap() local
442 struct vsp1_histogram *histo = vdev_to_histo(vfh->vdev); histo_v4l2_enum_format() local
456 struct vsp1_histogram *histo = vdev_to_histo(vfh->vdev); histo_v4l2_get_format() local
499 vsp1_histogram_cleanup(struct vsp1_histogram *histo) vsp1_histogram_cleanup() argument
509 struct vsp1_histogram *histo = subdev_to_histo(&entity->subdev); vsp1_histogram_destroy() local
514 vsp1_histogram_init(struct vsp1_device *vsp1, struct vsp1_histogram *histo, enum vsp1_entity_type type, const char *name, const struct vsp1_entity_operations *ops, const unsigned int *formats, unsigned int num_formats, size_t data_size, u32 meta_format) vsp1_histogram_init() argument
[all...]
H A Dvsp1_hgt.c28 return vsp1_read(hgt->histo.entity.vsp1, reg); in vsp1_hgt_read()
49 buf = vsp1_histogram_buffer_get(&hgt->histo); in vsp1_hgt_frame_end()
62 vsp1_histogram_buffer_complete(&hgt->histo, buf, HGT_DATA_SIZE); in vsp1_hgt_frame_end()
200 hgt->histo.entity.subdev.ctrl_handler = &hgt->ctrls; in vsp1_hgt_create()
203 ret = vsp1_histogram_init(vsp1, &hgt->histo, VSP1_ENTITY_HGT, "hgt", in vsp1_hgt_create()
208 vsp1_entity_destroy(&hgt->histo.entity); in vsp1_hgt_create()
H A Dvsp1_hgo.c28 return vsp1_read(hgo->histo.entity.vsp1, reg); in vsp1_hgo_read()
49 buf = vsp1_histogram_buffer_get(&hgo->histo); in vsp1_hgo_frame_end()
60 vsp1_write(hgo->histo.entity.vsp1, in vsp1_hgo_frame_end()
92 vsp1_histogram_buffer_complete(&hgo->histo, buf, size); in vsp1_hgo_frame_end()
210 hgo->histo.entity.subdev.ctrl_handler = &hgo->ctrls.handler; in vsp1_hgo_create()
213 ret = vsp1_histogram_init(vsp1, &hgo->histo, VSP1_ENTITY_HGO, "hgo", in vsp1_hgo_create()
218 vsp1_entity_destroy(&hgo->histo.entity); in vsp1_hgo_create()
H A Dvsp1_histo.h64 int vsp1_histogram_init(struct vsp1_device *vsp1, struct vsp1_histogram *histo,
72 vsp1_histogram_buffer_get(struct vsp1_histogram *histo);
73 void vsp1_histogram_buffer_complete(struct vsp1_histogram *histo,
H A Dvsp1_hgo.h21 struct vsp1_histogram histo; member
35 return container_of(subdev, struct vsp1_hgo, histo.entity.subdev); in to_hgo()
H A Dvsp1_hgt.h23 struct vsp1_histogram histo; member
32 return container_of(subdev, struct vsp1_hgt, histo.entity.subdev); in to_hgt()
H A Dvsp1_drv.c149 ret = media_create_pad_link(&vsp1->hgo->histo.entity.subdev.entity, in vsp1_uapi_create_links()
151 &vsp1->hgo->histo.video.entity, 0, in vsp1_uapi_create_links()
159 ret = media_create_pad_link(&vsp1->hgt->histo.entity.subdev.entity, in vsp1_uapi_create_links()
161 &vsp1->hgt->histo.video.entity, 0, in vsp1_uapi_create_links()
321 list_add_tail(&vsp1->hgo->histo.entity.list_dev, in vsp1_create_entities()
332 list_add_tail(&vsp1->hgt->histo.entity.list_dev, in vsp1_create_entities()
/kernel/linux/linux-6.6/drivers/media/platform/renesas/vsp1/
H A Dvsp1_histo.c36 vsp1_histogram_buffer_get(struct vsp1_histogram *histo) in vsp1_histogram_buffer_get() argument
41 spin_lock_irqsave(&histo->irqlock, flags); in vsp1_histogram_buffer_get()
43 if (list_empty(&histo->irqqueue)) in vsp1_histogram_buffer_get()
46 buf = list_first_entry(&histo->irqqueue, struct vsp1_histogram_buffer, in vsp1_histogram_buffer_get()
49 histo->readout = true; in vsp1_histogram_buffer_get()
52 spin_unlock_irqrestore(&histo->irqlock, flags); in vsp1_histogram_buffer_get()
56 void vsp1_histogram_buffer_complete(struct vsp1_histogram *histo, in vsp1_histogram_buffer_complete() argument
60 struct vsp1_pipeline *pipe = histo->entity.pipe; in vsp1_histogram_buffer_complete()
73 spin_lock_irqsave(&histo->irqlock, flags); in vsp1_histogram_buffer_complete()
74 histo in vsp1_histogram_buffer_complete()
87 struct vsp1_histogram *histo = vb2_get_drv_priv(vq); histo_queue_setup() local
108 struct vsp1_histogram *histo = vb2_get_drv_priv(vb->vb2_queue); histo_buffer_prepare() local
125 struct vsp1_histogram *histo = vb2_get_drv_priv(vb->vb2_queue); histo_buffer_queue() local
141 struct vsp1_histogram *histo = vb2_get_drv_priv(vq); histo_stop_streaming() local
176 struct vsp1_histogram *histo = subdev_to_histo(subdev); histo_enum_mbus_code() local
205 struct vsp1_histogram *histo = subdev_to_histo(subdev); histo_get_selection() local
265 struct vsp1_histogram *histo = subdev_to_histo(subdev); histo_set_crop() local
296 struct vsp1_histogram *histo = subdev_to_histo(subdev); histo_set_compose() local
348 struct vsp1_histogram *histo = subdev_to_histo(subdev); histo_set_selection() local
396 struct vsp1_histogram *histo = subdev_to_histo(subdev); histo_set_format() local
428 struct vsp1_histogram *histo = vdev_to_histo(vfh->vdev); histo_v4l2_querycap() local
445 struct vsp1_histogram *histo = vdev_to_histo(vfh->vdev); histo_v4l2_enum_format() local
459 struct vsp1_histogram *histo = vdev_to_histo(vfh->vdev); histo_v4l2_get_format() local
502 vsp1_histogram_cleanup(struct vsp1_histogram *histo) vsp1_histogram_cleanup() argument
512 struct vsp1_histogram *histo = subdev_to_histo(&entity->subdev); vsp1_histogram_destroy() local
517 vsp1_histogram_init(struct vsp1_device *vsp1, struct vsp1_histogram *histo, enum vsp1_entity_type type, const char *name, const struct vsp1_entity_operations *ops, const unsigned int *formats, unsigned int num_formats, size_t data_size, u32 meta_format) vsp1_histogram_init() argument
[all...]
H A Dvsp1_hgt.c28 return vsp1_read(hgt->histo.entity.vsp1, reg); in vsp1_hgt_read()
49 buf = vsp1_histogram_buffer_get(&hgt->histo); in vsp1_hgt_frame_end()
62 vsp1_histogram_buffer_complete(&hgt->histo, buf, HGT_DATA_SIZE); in vsp1_hgt_frame_end()
200 hgt->histo.entity.subdev.ctrl_handler = &hgt->ctrls; in vsp1_hgt_create()
203 ret = vsp1_histogram_init(vsp1, &hgt->histo, VSP1_ENTITY_HGT, "hgt", in vsp1_hgt_create()
208 vsp1_entity_destroy(&hgt->histo.entity); in vsp1_hgt_create()
H A Dvsp1_hgo.c28 return vsp1_read(hgo->histo.entity.vsp1, reg); in vsp1_hgo_read()
49 buf = vsp1_histogram_buffer_get(&hgo->histo); in vsp1_hgo_frame_end()
60 vsp1_write(hgo->histo.entity.vsp1, in vsp1_hgo_frame_end()
92 vsp1_histogram_buffer_complete(&hgo->histo, buf, size); in vsp1_hgo_frame_end()
210 hgo->histo.entity.subdev.ctrl_handler = &hgo->ctrls.handler; in vsp1_hgo_create()
213 ret = vsp1_histogram_init(vsp1, &hgo->histo, VSP1_ENTITY_HGO, "hgo", in vsp1_hgo_create()
218 vsp1_entity_destroy(&hgo->histo.entity); in vsp1_hgo_create()
H A Dvsp1_histo.h64 int vsp1_histogram_init(struct vsp1_device *vsp1, struct vsp1_histogram *histo,
72 vsp1_histogram_buffer_get(struct vsp1_histogram *histo);
73 void vsp1_histogram_buffer_complete(struct vsp1_histogram *histo,
H A Dvsp1_hgo.h21 struct vsp1_histogram histo; member
35 return container_of(subdev, struct vsp1_hgo, histo.entity.subdev); in to_hgo()
H A Dvsp1_hgt.h23 struct vsp1_histogram histo; member
32 return container_of(subdev, struct vsp1_hgt, histo.entity.subdev); in to_hgt()
H A Dvsp1_drv.c158 ret = media_create_pad_link(&vsp1->hgo->histo.entity.subdev.entity, in vsp1_uapi_create_links()
160 &vsp1->hgo->histo.video.entity, 0, in vsp1_uapi_create_links()
168 ret = media_create_pad_link(&vsp1->hgt->histo.entity.subdev.entity, in vsp1_uapi_create_links()
170 &vsp1->hgt->histo.video.entity, 0, in vsp1_uapi_create_links()
328 list_add_tail(&vsp1->hgo->histo.entity.list_dev, in vsp1_create_entities()
339 list_add_tail(&vsp1->hgt->histo.entity.list_dev, in vsp1_create_entities()
/kernel/linux/linux-5.10/fs/jffs2/
H A Dcompr_rubin.c309 unsigned char histo[256]; in jffs2_dynrubin_compress() local
320 memset(histo, 0, 256); in jffs2_dynrubin_compress()
322 histo[data_in[i]]++; in jffs2_dynrubin_compress()
326 bits[7] += histo[i]; in jffs2_dynrubin_compress()
328 bits[6] += histo[i]; in jffs2_dynrubin_compress()
330 bits[5] += histo[i]; in jffs2_dynrubin_compress()
332 bits[4] += histo[i]; in jffs2_dynrubin_compress()
334 bits[3] += histo[i]; in jffs2_dynrubin_compress()
336 bits[2] += histo[i]; in jffs2_dynrubin_compress()
338 bits[1] += histo[ in jffs2_dynrubin_compress()
[all...]
/kernel/linux/linux-6.6/fs/jffs2/
H A Dcompr_rubin.c309 unsigned char histo[256]; in jffs2_dynrubin_compress() local
320 memset(histo, 0, 256); in jffs2_dynrubin_compress()
322 histo[data_in[i]]++; in jffs2_dynrubin_compress()
326 bits[7] += histo[i]; in jffs2_dynrubin_compress()
328 bits[6] += histo[i]; in jffs2_dynrubin_compress()
330 bits[5] += histo[i]; in jffs2_dynrubin_compress()
332 bits[4] += histo[i]; in jffs2_dynrubin_compress()
334 bits[3] += histo[i]; in jffs2_dynrubin_compress()
336 bits[2] += histo[i]; in jffs2_dynrubin_compress()
338 bits[1] += histo[ in jffs2_dynrubin_compress()
[all...]
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/runtime/binary/src/
H A Dbinary.c390 binary_init_pc_histogram(struct sh_css_pc_histogram *histo) in binary_init_pc_histogram() argument
392 assert(histo); in binary_init_pc_histogram()
394 histo->length = 0; in binary_init_pc_histogram()
395 histo->run = NULL; in binary_init_pc_histogram()
396 histo->stall = NULL; in binary_init_pc_histogram()
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/runtime/binary/src/
H A Dbinary.c818 binary_init_pc_histogram(struct sh_css_pc_histogram *histo) in binary_init_pc_histogram() argument
820 assert(histo); in binary_init_pc_histogram()
822 histo->length = 0; in binary_init_pc_histogram()
823 histo->run = NULL; in binary_init_pc_histogram()
824 histo->stall = NULL; in binary_init_pc_histogram()

Completed in 11 milliseconds