Home
last modified time | relevance | path

Searched refs:fmts (Results 1 – 25 of 27) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/gpu/drm/arm/display/komeda/
Dkomeda_format_caps.c119 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()
/kernel/linux/linux-5.10/drivers/media/usb/gspca/
Dse401.c49 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 …]
/kernel/linux/linux-5.10/scripts/gdb/linux/
Dtimerlist.py81 fmts = [(" .{} : {} nsecs", 'expires_next'),
87 text += "\n".join([s.format(f, cpu_base[f]) for s, f in fmts])
91 fmts = [(" .{} : {}", 'nohz_mode'),
105 text += "\n".join([s.format(f, ts[f]) for s, f in fmts])
/kernel/linux/linux-5.10/drivers/media/i2c/
Dmt9m001.c103 const struct mt9m001_datafmt *fmts; member
267 if (mt9m001->fmts == mt9m001_colour_fmts) in mt9m001_set_selection()
395 if (mt9m001->fmts == mt9m001_colour_fmts) in mt9m001_set_fmt()
398 fmt = mt9m001_find_datafmt(mf->code, mt9m001->fmts, in mt9m001_set_fmt()
601 mt9m001->fmts = mt9m001_colour_fmts; in mt9m001_video_probe()
605 mt9m001->fmts = mt9m001_monochrome_fmts; in mt9m001_video_probe()
615 mt9m001->fmt = &mt9m001->fmts[0]; in mt9m001_video_probe()
668 try_fmt->code = mt9m001->fmts[0].code; in mt9m001_init_cfg()
669 try_fmt->colorspace = mt9m001->fmts[0].colorspace; in mt9m001_init_cfg()
688 code->code = mt9m001->fmts[code->index].code; in mt9m001_enum_mbus_code()
/kernel/linux/linux-5.10/sound/soc/codecs/
Dak4613.c140 #define AUDIO_IFACE_TO_VAL(fmts) ((fmts - ak4613_iface) << 3) argument
348 const struct ak4613_formats *fmts; in ak4613_dai_fmt_matching() local
350 fmts = (is_play) ? &iface->playback : &iface->capture; in ak4613_dai_fmt_matching()
352 if (fmts->fmt != fmt) in ak4613_dai_fmt_matching()
355 if (fmts->width != width) in ak4613_dai_fmt_matching()
/kernel/linux/linux-5.10/drivers/staging/media/rkisp1/
Drkisp1-capture.c72 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()
1103 if (cap->config->fmts[i].fourcc == pixelfmt) in rkisp1_find_fmt_cfg()
1104 return &cap->config->fmts[i]; in rkisp1_find_fmt_cfg()
1124 fmt = config->fmts; in rkisp1_try_fmt()
1178 fmt = &cap->config->fmts[f->index]; in rkisp1_enum_fmt_vid_cap_mplane()
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/ipu3/
Dipu3-v4l2.c64 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()
665 struct v4l2_pix_format_mplane *fmts[IPU3_CSS_QUEUES] = { NULL }; in imgu_fmt() local
701 fmts[i] = NULL; in imgu_fmt()
706 fmts[i] = &f->fmt.pix_mp; in imgu_fmt()
711 fmts[i] = kmemdup(&imgu_pipe->nodes[inode].vdev_fmt.fmt.pix_mp, in imgu_fmt()
714 if (!fmts[i]) { in imgu_fmt()
719 fmts[i] = &imgu_pipe->nodes[inode].vdev_fmt.fmt.pix_mp; in imgu_fmt()
738 if (!fmts[css_q]) { in imgu_fmt()
[all …]
Dipu3-css.h172 struct v4l2_pix_format_mplane *fmts[IPU3_CSS_QUEUES],
176 struct v4l2_pix_format_mplane *fmts[IPU3_CSS_QUEUES],
Dipu3-css.c1688 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()
Dipu3.c446 struct v4l2_pix_format_mplane *fmts[IPU3_CSS_QUEUES] = { NULL }; in imgu_video_nodes_init() local
463 fmts[imgu_node_map[i].css_queue] = in imgu_video_nodes_init()
479 imgu_css_fmt_set(&imgu->css, fmts, rects, j); in imgu_video_nodes_init()
/kernel/linux/linux-5.10/drivers/media/platform/qcom/venus/
Dhfi_parser.c135 static void fill_raw_fmts(struct venus_caps *cap, const void *fmts, in fill_raw_fmts() argument
138 const struct raw_formats *formats = fmts; in fill_raw_fmts()
140 memcpy(&cap->fmts[cap->num_fmts], formats, num_fmts * sizeof(*formats)); in fill_raw_fmts()
Dcore.h114 struct raw_formats fmts[MAX_FMT_ENTRIES]; member
Dhelpers.c1547 if (caps->fmts[i].buftype == buftype && in find_fmt_from_caps()
1548 caps->fmts[i].fmt == fmt) in find_fmt_from_caps()
/kernel/linux/linux-5.10/tools/perf/util/
Dblock-info.h47 struct block_fmt fmts[PERF_HPP_REPORT__BLOCK_MAX_INDEX]; member
Dblock-info.c415 init_block_hist(bh, block_report->fmts, block_hpps, nr_hpps); in process_block_report()
425 block_report->fmts[i].total_cycles = total_cycles; in process_block_report()
426 block_report->fmts[i].block_cycles = block_report->cycles; in process_block_report()
/kernel/linux/linux-5.10/lib/zlib_dfltcc/
Ddfltcc.h27 char fmts[2]; member
Ddfltcc_inflate.c31 is_bit_set(dfltcc_state->af.fmts, DFLTCC_FMT0); in dfltcc_can_inflate()
Ddfltcc_deflate.c33 !is_bit_set(dfltcc_state->af.fmts, DFLTCC_FMT0)) in dfltcc_can_deflate()
/kernel/linux/linux-5.10/drivers/staging/media/meson/vdec/
Dvdec.c467 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()
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/
Domap_gem.c1359 const enum tiler_fmt fmts[] = { in omap_gem_init() enum
1375 for (i = 0; i < ARRAY_SIZE(fmts); i++) { in omap_gem_init()
1378 tiler_align(fmts[i], &w, &h); in omap_gem_init()
1385 usergart[i].stride_pfn = tiler_stride(fmts[i], 0) >> PAGE_SHIFT; in omap_gem_init()
1392 block = tiler_reserve_2d(fmts[i], w, h, PAGE_SIZE); in omap_gem_init()
/kernel/linux/linux-5.10/drivers/media/platform/
Dpxa_camera.c721 unsigned int i, fmts = 0, raw_fmts = 0; in pxa_mbus_build_fmts_xlate() local
741 fmts += ret; in pxa_mbus_build_fmts_xlate()
744 if (!fmts) in pxa_mbus_build_fmts_xlate()
747 user_formats = kcalloc(fmts + 1, sizeof(*user_formats), GFP_KERNEL); in pxa_mbus_build_fmts_xlate()
752 fmts = 0; in pxa_mbus_build_fmts_xlate()
754 ret = get_formats(v4l2_dev, i, user_formats + fmts); in pxa_mbus_build_fmts_xlate()
757 fmts += ret; in pxa_mbus_build_fmts_xlate()
759 user_formats[fmts].code = 0; in pxa_mbus_build_fmts_xlate()
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_connector.c799 u32 *fmts = NULL; in drm_display_info_set_bus_formats() local
805 fmts = kmemdup(formats, sizeof(*formats) * num_formats, in drm_display_info_set_bus_formats()
807 if (!fmts) in drm_display_info_set_bus_formats()
812 info->bus_formats = fmts; in drm_display_info_set_bus_formats()
/kernel/linux/linux-5.10/drivers/iommu/
Dio-pgtable-arm.c1117 static const enum io_pgtable_fmt fmts[] __initconst = { in arm_lpae_run_tests()
1129 for (i = 0; i < ARRAY_SIZE(fmts); ++i) { in arm_lpae_run_tests()
1131 ops = alloc_io_pgtable_ops(fmts[i], cfg, cfg); in arm_lpae_run_tests()
/kernel/linux/linux-5.10/tools/perf/
Dbuiltin-trace.c1162 static struct syscall_fmt *__syscall_fmt__find(struct syscall_fmt *fmts, const int nmemb, const cha… in __syscall_fmt__find() argument
1164 return bsearch(name, fmts, nmemb, sizeof(struct syscall_fmt), syscall_fmt__cmp); in __syscall_fmt__find()
1173 static struct syscall_fmt *__syscall_fmt__find_by_alias(struct syscall_fmt *fmts, const int nmemb, … in __syscall_fmt__find_by_alias() argument
1178 if (fmts[i].alias && strcmp(fmts[i].alias, alias) == 0) in __syscall_fmt__find_by_alias()
1179 return &fmts[i]; in __syscall_fmt__find_by_alias()
1674 __syscall_arg_fmt__find_by_name(struct syscall_arg_fmt *fmts, const int nmemb, const char *name) in __syscall_arg_fmt__find_by_name() argument
1676 return bsearch(name, fmts, nmemb, sizeof(struct syscall_arg_fmt), syscall_arg_fmt__cmp); in __syscall_arg_fmt__find_by_name()
/kernel/linux/linux-5.10/sound/usb/
Dpcm.c994 struct snd_mask *fmts = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); in hw_check_valid_format() local
1003 snd_mask_intersect(&check_fmts, fmts); in hw_check_valid_format()

12