/drivers/media/platform/qcom/venus/ |
D | hfi_platform_v6.c | 29 .fmts[0] = {HFI_BUFFER_OUTPUT, HFI_COLOR_FORMAT_NV12_UBWC}, 30 .fmts[1] = {HFI_BUFFER_OUTPUT2, HFI_COLOR_FORMAT_NV12_UBWC}, 31 .fmts[2] = {HFI_BUFFER_OUTPUT2, HFI_COLOR_FORMAT_NV12}, 32 .fmts[3] = {HFI_BUFFER_OUTPUT2, HFI_COLOR_FORMAT_NV21}, 52 .fmts[0] = {HFI_BUFFER_OUTPUT, HFI_COLOR_FORMAT_NV12_UBWC}, 53 .fmts[1] = {HFI_BUFFER_OUTPUT, HFI_COLOR_FORMAT_YUV420_TP10_UBWC}, 54 .fmts[2] = {HFI_BUFFER_OUTPUT2, HFI_COLOR_FORMAT_NV12_UBWC}, 55 .fmts[3] = {HFI_BUFFER_OUTPUT2, HFI_COLOR_FORMAT_NV12}, 56 .fmts[4] = {HFI_BUFFER_OUTPUT2, HFI_COLOR_FORMAT_NV21}, 57 .fmts[5] = {HFI_BUFFER_OUTPUT2, HFI_COLOR_FORMAT_P010}, [all …]
|
D | hfi_platform_v4.c | 29 .fmts[0] = {HFI_BUFFER_OUTPUT, HFI_COLOR_FORMAT_NV12_UBWC}, 30 .fmts[1] = {HFI_BUFFER_OUTPUT2, HFI_COLOR_FORMAT_NV12_UBWC}, 31 .fmts[2] = {HFI_BUFFER_OUTPUT2, HFI_COLOR_FORMAT_NV12}, 32 .fmts[3] = {HFI_BUFFER_OUTPUT2, HFI_COLOR_FORMAT_NV21}, 52 .fmts[0] = {HFI_BUFFER_OUTPUT, HFI_COLOR_FORMAT_NV12_UBWC}, 53 .fmts[1] = {HFI_BUFFER_OUTPUT, HFI_COLOR_FORMAT_YUV420_TP10_UBWC}, 54 .fmts[2] = {HFI_BUFFER_OUTPUT2, HFI_COLOR_FORMAT_NV12_UBWC}, 55 .fmts[3] = {HFI_BUFFER_OUTPUT2, HFI_COLOR_FORMAT_NV12}, 56 .fmts[4] = {HFI_BUFFER_OUTPUT2, HFI_COLOR_FORMAT_NV21}, 57 .fmts[5] = {HFI_BUFFER_OUTPUT2, HFI_COLOR_FORMAT_P010}, [all …]
|
D | hfi_parser.c | 144 static void fill_raw_fmts(struct hfi_plat_caps *cap, const void *fmts, in fill_raw_fmts() argument 147 const struct raw_formats *formats = fmts; in fill_raw_fmts() 152 memcpy(&cap->fmts[cap->num_fmts], formats, num_fmts * sizeof(*formats)); in fill_raw_fmts()
|
D | hfi_platform.h | 37 struct raw_formats fmts[MAX_FMT_ENTRIES]; member
|
D | helpers.c | 1654 if (caps->fmts[i].buftype == buftype && in find_fmt_from_caps() 1655 caps->fmts[i].fmt == fmt) in find_fmt_from_caps()
|
/drivers/media/usb/gspca/ |
D | se401.c | 49 struct v4l2_pix_format fmts[MAX_MODES]; member 256 sd->fmts[i].width = widths[i]; in sd_config() 257 sd->fmts[i].height = heights[i]; in sd_config() 258 sd->fmts[i].field = V4L2_FIELD_NONE; in sd_config() 259 sd->fmts[i].colorspace = V4L2_COLORSPACE_SRGB; in sd_config() 260 sd->fmts[i].priv = 1; in sd_config() 266 sd->fmts[i].priv = 2; in sd_config() 275 sd->fmts[i].priv = 4; in sd_config() 280 if (sd->fmts[i].priv == 1) { in sd_config() 282 sd->fmts[i].pixelformat = V4L2_PIX_FMT_SBGGR8; in sd_config() [all …]
|
/drivers/gpu/drm/arm/display/komeda/ |
D | komeda_format_caps.c | 119 u32 *fmts; in komeda_get_layer_fourcc_list() local 122 fmts = kcalloc(table->n_formats, sizeof(u32), GFP_KERNEL); in komeda_get_layer_fourcc_list() 123 if (!fmts) in komeda_get_layer_fourcc_list() 136 if (fmts[j] == cap->fourcc) in komeda_get_layer_fourcc_list() 140 fmts[n++] = cap->fourcc; in komeda_get_layer_fourcc_list() 146 return fmts; in komeda_get_layer_fourcc_list()
|
/drivers/media/i2c/ |
D | mt9m001.c | 103 const struct mt9m001_datafmt *fmts; member 268 if (mt9m001->fmts == mt9m001_colour_fmts) in mt9m001_set_selection() 396 if (mt9m001->fmts == mt9m001_colour_fmts) in mt9m001_set_fmt() 399 fmt = mt9m001_find_datafmt(mf->code, mt9m001->fmts, in mt9m001_set_fmt() 602 mt9m001->fmts = mt9m001_colour_fmts; in mt9m001_video_probe() 606 mt9m001->fmts = mt9m001_monochrome_fmts; in mt9m001_video_probe() 616 mt9m001->fmt = &mt9m001->fmts[0]; in mt9m001_video_probe() 669 try_fmt->code = mt9m001->fmts[0].code; in mt9m001_init_cfg() 670 try_fmt->colorspace = mt9m001->fmts[0].colorspace; in mt9m001_init_cfg() 689 code->code = mt9m001->fmts[code->index].code; in mt9m001_enum_mbus_code()
|
/drivers/media/platform/rockchip/rkisp1/ |
D | rkisp1-capture.c | 72 const struct rkisp1_capture_fmt_cfg *fmts; member 308 .fmts = rkisp1_mp_fmts, 324 .fmts = rkisp1_sp_fmts, 348 const struct rkisp1_capture_fmt_cfg *fmts = cap->config->fmts; in rkisp1_cap_enum_mbus_codes() local 357 if (fmts[i].mbus == curr_mbus) in rkisp1_cap_enum_mbus_codes() 360 curr_mbus = fmts[i].mbus; in rkisp1_cap_enum_mbus_codes() 1114 if (cap->config->fmts[i].fourcc == pixelfmt) in rkisp1_find_fmt_cfg() 1115 return &cap->config->fmts[i]; in rkisp1_find_fmt_cfg() 1135 fmt = config->fmts; in rkisp1_try_fmt() 1190 fmt = &cap->config->fmts[f->index]; in rkisp1_enum_fmt_vid_cap_mplane() [all …]
|
/drivers/staging/media/ipu3/ |
D | ipu3-v4l2.c | 64 struct v4l2_pix_format_mplane *fmts[IPU3_CSS_QUEUES] = { NULL }; in imgu_subdev_s_stream() local 90 fmts[i] = imgu_pipe->queue_enabled[node] ? in imgu_subdev_s_stream() 110 r = imgu_css_fmt_set(&imgu->css, fmts, rects, pipe); in imgu_subdev_s_stream() 673 struct v4l2_pix_format_mplane *fmts[IPU3_CSS_QUEUES] = { NULL }; in imgu_fmt() local 709 fmts[i] = NULL; in imgu_fmt() 714 fmts[i] = &f->fmt.pix_mp; in imgu_fmt() 719 fmts[i] = kmemdup(&imgu_pipe->nodes[inode].vdev_fmt.fmt.pix_mp, in imgu_fmt() 722 if (!fmts[i]) { in imgu_fmt() 727 fmts[i] = &imgu_pipe->nodes[inode].vdev_fmt.fmt.pix_mp; in imgu_fmt() 746 if (!fmts[css_q]) { in imgu_fmt() [all …]
|
D | ipu3-css.h | 172 struct v4l2_pix_format_mplane *fmts[IPU3_CSS_QUEUES], 176 struct v4l2_pix_format_mplane *fmts[IPU3_CSS_QUEUES],
|
D | ipu3-css.c | 1688 struct v4l2_pix_format_mplane *fmts[IPU3_CSS_QUEUES], in imgu_css_fmt_try() 1729 if (fmts[i]) in imgu_css_fmt_try() 1731 qnames[i], fmts[i]->width, fmts[i]->height, in imgu_css_fmt_try() 1732 fmts[i]->pixelformat); in imgu_css_fmt_try() 1736 if (imgu_css_queue_init(&q[i], fmts[i], in imgu_css_fmt_try() 1815 if (fmts[i]) { in imgu_css_fmt_try() 1823 *fmts[i] = q[i].fmt.mpix; in imgu_css_fmt_try() 1844 struct v4l2_pix_format_mplane *fmts[IPU3_CSS_QUEUES], in imgu_css_fmt_set() 1860 r = imgu_css_fmt_try(css, fmts, all_rects, pipe); in imgu_css_fmt_set() 1865 if (imgu_css_queue_init(&css_pipe->queue[i], fmts[i], in imgu_css_fmt_set()
|
D | ipu3.c | 445 struct v4l2_pix_format_mplane *fmts[IPU3_CSS_QUEUES] = { NULL }; in imgu_video_nodes_init() local 462 fmts[imgu_node_map[i].css_queue] = in imgu_video_nodes_init() 478 imgu_css_fmt_set(&imgu->css, fmts, rects, j); in imgu_video_nodes_init()
|
/drivers/staging/media/meson/vdec/ |
D | vdec.c | 467 find_format(const struct amvdec_format *fmts, u32 size, u32 pixfmt) in find_format() argument 472 if (fmts[i].pixfmt == pixfmt) in find_format() 473 return &fmts[i]; in find_format() 497 const struct amvdec_format *fmts = sess->core->platform->formats; in vdec_try_fmt_common() local 506 fmt_out = find_format(fmts, size, pixmp->pixelformat); in vdec_try_fmt_common() 509 fmt_out = find_format(fmts, size, pixmp->pixelformat); in vdec_try_fmt_common()
|
/drivers/gpu/drm/omapdrm/ |
D | omap_gem.c | 1372 const enum tiler_fmt fmts[] = { in omap_gem_init() enum 1388 for (i = 0; i < ARRAY_SIZE(fmts); i++) { in omap_gem_init() 1391 tiler_align(fmts[i], &w, &h); in omap_gem_init() 1398 usergart[i].stride_pfn = tiler_stride(fmts[i], 0) >> PAGE_SHIFT; in omap_gem_init() 1405 block = tiler_reserve_2d(fmts[i], w, h, PAGE_SIZE); in omap_gem_init()
|
/drivers/media/platform/ |
D | pxa_camera.c | 717 unsigned int i, fmts = 0, raw_fmts = 0; in pxa_mbus_build_fmts_xlate() local 737 fmts += ret; in pxa_mbus_build_fmts_xlate() 740 if (!fmts) in pxa_mbus_build_fmts_xlate() 743 user_formats = kcalloc(fmts + 1, sizeof(*user_formats), GFP_KERNEL); in pxa_mbus_build_fmts_xlate() 748 fmts = 0; in pxa_mbus_build_fmts_xlate() 750 ret = get_formats(v4l2_dev, i, user_formats + fmts); in pxa_mbus_build_fmts_xlate() 753 fmts += ret; in pxa_mbus_build_fmts_xlate() 755 user_formats[fmts].code = 0; in pxa_mbus_build_fmts_xlate()
|
/drivers/gpu/drm/ |
D | drm_connector.c | 802 u32 *fmts = NULL; in drm_display_info_set_bus_formats() local 808 fmts = kmemdup(formats, sizeof(*formats) * num_formats, in drm_display_info_set_bus_formats() 810 if (!fmts) in drm_display_info_set_bus_formats() 815 info->bus_formats = fmts; in drm_display_info_set_bus_formats()
|
/drivers/iommu/ |
D | io-pgtable-arm.c | 1254 static const enum io_pgtable_fmt fmts[] __initconst = { in arm_lpae_run_tests() 1266 for (i = 0; i < ARRAY_SIZE(fmts); ++i) { in arm_lpae_run_tests() 1268 ops = alloc_io_pgtable_ops(fmts[i], cfg, cfg); in arm_lpae_run_tests()
|