/linux-master/drivers/media/platform/nxp/imx8-isi/ |
H A D | imx8-isi-crossbar.c | 221 const struct v4l2_mbus_framefmt *format; local 230 format = v4l2_subdev_state_get_opposite_stream_format(state, 233 if (!format) 236 code->code = format->code; 263 * The source pad format is always identical to the sink pad format and 269 /* Validate the requested format. */ 270 if (!mxc_isi_bus_format_by_code(fmt->format.code, MXC_ISI_PIPE_PAD_SINK)) 271 fmt->format.code = MXC_ISI_DEF_MBUS_CODE_SINK; 273 fmt->format [all...] |
H A D | imx8-isi-pipe.c | 400 const struct v4l2_mbus_framefmt *format; local 402 format = mxc_isi_pipe_get_pad_format(pipe, state, 404 info = mxc_isi_bus_format_by_code(format->code, 418 * For RGB or YUV formats, the ISI supports format 455 struct v4l2_mbus_framefmt *mf = &fmt->format; 457 struct v4l2_mbus_framefmt *format; local 485 /* Propagate the format to the source pad. */ 498 format = mxc_isi_pipe_get_pad_format(pipe, state, 500 format->code = info->output; 501 format 550 const struct v4l2_mbus_framefmt *format; local 609 struct v4l2_mbus_framefmt *format; local [all...] |
/linux-master/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_formats.c | 20 * struct dpu_media_color_map - maps drm format to media format 21 * @format: DRM base pixel format 22 * @color: Media API color related to DRM format 25 uint32_t format; member in struct:dpu_media_color_map 89 if (fmt->pixel_format == dpu_media_ubwc_map[i].format) { 107 layout->format = fmt; 114 DRM_ERROR("UBWC format not supported for fmt: %p4cc\n", 119 if (MSM_FORMAT_IS_YUV(layout->format)) { [all...] |
/linux-master/drivers/media/platform/qcom/camss/ |
H A D | camss-vfe.c | 128 * vfe_get_bpp - map media bus format to bits per pixel 131 * @code: media bus format code 144 WARN(1, "Unknown format\n"); 852 * __vfe_get_format - Get pointer to format structure 855 * @pad: pad from which format is requested 856 * @which: TRY or ACTIVE format 858 * Return pointer to TRY or ACTIVE format structure 876 * @which: TRY or ACTIVE format 896 * @which: TRY or ACTIVE format 912 * vfe_try_format - Handle try format b 1101 struct v4l2_mbus_framefmt format; local 1139 struct v4l2_mbus_framefmt *format; local 1167 struct v4l2_mbus_framefmt *format; local 1350 struct v4l2_subdev_format format = { local [all...] |
H A D | camss-ispif.c | 717 * @code: media bus format code 867 * __ispif_get_format - Get pointer to format structure 870 * @pad: pad from which format is requested 871 * @which: TRY or ACTIVE format 873 * Return pointer to TRY or ACTIVE format structure 888 * ispif_try_format - Handle try format by pad subdev method 891 * @pad: pad on which format is requested 892 * @fmt: pointer to v4l2 format structure 893 * @which: wanted subdev format 905 /* Set format o 947 struct v4l2_mbus_framefmt *format; local 980 struct v4l2_mbus_framefmt format; local 1018 struct v4l2_mbus_framefmt *format; local 1042 struct v4l2_mbus_framefmt *format; local 1075 struct v4l2_subdev_format format = { local [all...] |
/linux-master/drivers/gpu/drm/tiny/ |
H A D | simpledrm.c | 74 drm_err(dev, "simplefb: missing framebuffer format\n"); 88 drm_err(dev, "simplefb: unknown framebuffer format %s\n", 119 return simplefb_get_validated_format(dev, pd->format); 182 const char *format; local 183 int ret = simplefb_read_string_of(dev, of_node, "format", &format); 187 return simplefb_get_validated_format(dev, format); 241 const struct drm_format_info *format; member in struct:simpledrm_device 608 if (new_fb->format != sdev->format) { 786 const struct drm_format_info *format; local [all...] |
/linux-master/drivers/media/platform/renesas/vsp1/ |
H A D | vsp1_histo.c | 207 struct v4l2_mbus_framefmt *format; local 236 format = vsp1_entity_get_pad_format(&histo->entity, state, 240 sel->r.width = format->width; 241 sel->r.height = format->height; 265 struct v4l2_mbus_framefmt *format; local 269 format = vsp1_entity_get_pad_format(&histo->entity, sd_state, 271 sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1); 272 sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1); 274 format->width - sel->r.left); 276 format 453 histo_v4l2_get_format(struct file *file, void *fh, struct v4l2_format *format) argument [all...] |
H A D | vsp1_wpf.c | 257 const struct v4l2_pix_format_mplane *format = &wpf->format; local 274 format->plane_fmt[0].bytesperline); 275 if (format->num_planes > 1) 277 format->plane_fmt[1].bytesperline); 377 const struct v4l2_pix_format_mplane *format = &wpf->format; local 435 offset = format->width - left - width; 437 offset = format->height - left - width; 441 for (i = 0; i < format [all...] |
/linux-master/drivers/media/platform/cadence/ |
H A D | cdns-csi2rx.c | 182 fmt = csi2rx_get_fmt_by_code(sd_fmt.format.code); 412 struct v4l2_subdev_format *format) 418 if (format->pad != CSI2RX_PAD_SINK) 419 return v4l2_subdev_get_fmt(subdev, state, format); 421 if (!csi2rx_get_fmt_by_code(format->format.code)) 422 format->format.code = formats[0].code; 424 format->format 410 csi2rx_set_fmt(struct v4l2_subdev *subdev, struct v4l2_subdev_state *state, struct v4l2_subdev_format *format) argument 442 struct v4l2_subdev_format format = { local [all...] |
/linux-master/drivers/media/platform/xilinx/ |
H A D | xilinx-vip.h | 105 * struct xvip_video_format - Xilinx Video IP video format description 106 * @vf_code: AXI4 video format code 107 * @width: AXI4 format width in bits per component 109 * @code: media bus format code 111 * @fourcc: V4L2 pixel format FCC identifier 125 void xvip_set_format_size(struct v4l2_mbus_framefmt *format, 190 const struct v4l2_mbus_framefmt *format) 193 (format->height << XVIP_ACTIVE_VSIZE_SHIFT) | 194 (format->width << XVIP_ACTIVE_HSIZE_SHIFT)); 198 struct v4l2_mbus_framefmt *format) 189 xvip_set_frame_size(struct xvip_device *xvip, const struct v4l2_mbus_framefmt *format) argument 197 xvip_get_frame_size(struct xvip_device *xvip, struct v4l2_mbus_framefmt *format) argument [all...] |
/linux-master/tools/perf/ui/tui/ |
H A D | util.c | 244 static int __ui__warning(const char *title, const char *format, va_list args) argument 248 if (vasprintf(&s, format, args) > 0) { 257 vfprintf(stderr, format, args); 261 static int perf_tui__error(const char *format, va_list args) argument 263 return __ui__warning("Error:", format, args); 266 static int perf_tui__warning(const char *format, va_list args) argument 268 return __ui__warning("Warning:", format, args);
|
/linux-master/drivers/media/pci/zoran/ |
H A D | zoran.h | 138 const struct zoran_format *format; /* capture format */ member in struct:zoran_v4l_settings 317 #define zrdev_dbg(zr, format, args...) \ 318 pci_dbg((zr)->pci_dev, format, ##args) \ 320 #define zrdev_err(zr, format, args...) \ 321 pci_err((zr)->pci_dev, format, ##args) \ 323 #define zrdev_info(zr, format, args...) \ 324 pci_info((zr)->pci_dev, format, ##args) \
|
/linux-master/drivers/media/i2c/ |
H A D | ov7740.c | 87 struct v4l2_mbus_framefmt format; member in struct:ov7740 88 const struct ov7740_pixfmt *fmt; /* Current format */ 735 /* default to first format */ 763 ov7740->format = *fmt; 770 struct v4l2_subdev_format *format) 779 if (format->pad) { 784 if (format->which == V4L2_SUBDEV_FORMAT_TRY) { 785 ret = ov7740_try_fmt_internal(sd, &format->format, NULL, NULL); 789 mbus_fmt = v4l2_subdev_state_get_format(sd_state, format 768 ov7740_set_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_state *sd_state, struct v4l2_subdev_format *format) argument 810 ov7740_get_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_state *sd_state, struct v4l2_subdev_format *format) argument 857 ov7740_get_default_format(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt *format) argument 872 struct v4l2_mbus_framefmt *format = local [all...] |
H A D | mt9p031.c | 124 struct v4l2_mbus_framefmt format; member in struct:mt9p031 400 struct v4l2_mbus_framefmt *format = &mt9p031->format; local 432 xskip = DIV_ROUND_CLOSEST(crop->width, format->width); 433 yskip = DIV_ROUND_CLOSEST(crop->height, format->height); 523 code->code = mt9p031->format.code; 533 if (fse->index >= 8 || fse->code != mt9p031->format.code) 554 return &mt9p031->format; 581 fmt->format = *__mt9p031_get_pad_format(mt9p031, sd_state, fmt->pad, 588 struct v4l2_subdev_format *format) 586 mt9p031_set_format(struct v4l2_subdev *subdev, struct v4l2_subdev_state *sd_state, struct v4l2_subdev_format *format) argument 703 struct v4l2_mbus_framefmt *format; local [all...] |
H A D | adv7170.c | 265 struct v4l2_subdev_format *format) 267 struct v4l2_mbus_framefmt *mf = &format->format; 270 if (format->pad) 288 struct v4l2_subdev_format *format) 290 struct v4l2_mbus_framefmt *mf = &format->format; 293 if (format->pad) 311 if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE) 263 adv7170_get_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_state *sd_state, struct v4l2_subdev_format *format) argument 286 adv7170_set_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_state *sd_state, struct v4l2_subdev_format *format) argument
|
/linux-master/drivers/media/platform/sunxi/sun6i-csi/ |
H A D | sun6i_csi_capture.c | 29 *width = csi_dev->capture.format.fmt.pix.width; 31 *height = csi_dev->capture.format.fmt.pix.height; 38 *pixelformat = csi_dev->capture.format.fmt.pix.pixelformat; 41 *field = csi_dev->capture.format.fmt.pix.field; 376 const struct sun6i_csi_capture_format *format; local 386 format = sun6i_csi_capture_format_find(pixelformat); 387 if (WARN_ON(!format)) 397 if (format->hsize_len_factor) 398 hsize_len *= format->hsize_len_factor; 558 unsigned int size = csi_dev->capture.format 666 sun6i_csi_capture_format_prepare(struct v4l2_format *format) argument 743 sun6i_csi_capture_g_fmt(struct file *file, void *private, struct v4l2_format *format) argument 753 sun6i_csi_capture_s_fmt(struct file *file, void *private, struct v4l2_format *format) argument 769 sun6i_csi_capture_try_fmt(struct file *file, void *private, struct v4l2_format *format) argument 979 struct v4l2_format *format = &csi_dev->capture.format; local [all...] |
/linux-master/drivers/media/platform/renesas/rzg2l-cru/ |
H A D | rzg2l-video.c | 150 return sizes[0] < cru->format.sizeimage ? -EINVAL : 0; 153 sizes[0] = cru->format.sizeimage; 161 unsigned long size = cru->format.sizeimage; 199 switch (fmt.format.code) { 206 switch (fmt.format.field) { 220 if (fmt.format.width != cru->format.width || 221 fmt.format.height != cru->format.height) 325 /* Output format */ 785 rzg2l_cru_format_from_pixel(u32 format) argument [all...] |
/linux-master/arch/powerpc/xmon/ |
H A D | nonstdio.c | 167 void xmon_printf(const char *format, ...) argument 173 va_start(args, format); 174 n = vsnprintf(xmon_outbuf, sizeof(xmon_outbuf), format, args);
|
/linux-master/drivers/gpu/drm/tilcdc/ |
H A D | tilcdc_plane.c | 61 new_state->fb->format->cpp[0]; 68 if (old_state->fb && new_state->fb->format != old_state->fb->format) { 70 "%s(): pixel format change requires mode_change\n",
|
/linux-master/scripts/gdb/linux/ |
H A D | modules.py | 72 "Address{0} Module Size Used by\n".format( 83 gdb.write("{address} {name:<19} {size:>8} {ref}".format( 93 gdb.write("{separator}{name}".format(
|
/linux-master/include/drm/ |
H A D | drm_fourcc.h | 30 * DRM_FORMAT_MAX_PLANES - maximum number of planes a DRM format can have 39 * case the format can't be specified otherwise, so we don't end up 40 * with two values describing the same format. 60 * struct drm_format_info - information about a DRM format 63 /** @format: 4CC format identifier (DRM_FORMAT_*) */ 64 u32 format; member in struct:drm_format_info 85 * describing the pixel format. 109 * generic format table. Drivers could supply accurate 137 /** @has_alpha: Does the format embed [all...] |
/linux-master/drivers/media/platform/rockchip/rkisp1/ |
H A D | rkisp1-csi.c | 63 const struct rkisp1_mbus_info *format) 85 RKISP1_CIF_MIPI_DATA_SEL_DT(format->mipi_dt) | 151 const struct rkisp1_mbus_info *format) 159 ret = rkisp1_csi_config(csi, sensor, format); 169 phy_mipi_dphy_get_default_config(pixel_clock, format->bus_width, 313 /* The format on the source pad always matches the sink pad. */ 319 sink_fmt->code = fmt->format.code; 327 sink_fmt->width = clamp_t(u32, fmt->format.width, 330 sink_fmt->height = clamp_t(u32, fmt->format.height, 334 fmt->format 61 rkisp1_csi_config(struct rkisp1_csi *csi, const struct rkisp1_sensor_async *sensor, const struct rkisp1_mbus_info *format) argument 149 rkisp1_csi_start(struct rkisp1_csi *csi, const struct rkisp1_sensor_async *sensor, const struct rkisp1_mbus_info *format) argument 352 const struct rkisp1_mbus_info *format; local [all...] |
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | bpf_verif_scale.c | 5 const char *format, va_list args) 8 vprintf(format, args); 12 if (!strstr(format, "verifier log")) 4 libbpf_debug_print(enum libbpf_print_level level, const char *format, va_list args) argument
|
/linux-master/drivers/firmware/google/ |
H A D | framebuffer-coreboot.c | 36 .format = NULL, 50 pdata.format = formats[i].name; 52 if (!pdata.format)
|
/linux-master/drivers/staging/media/atomisp/pci/ |
H A D | ia_css_stream_public.h | 64 enum atomisp_input_format format; /** Format of input stream. This data member in struct:ia_css_stream_isys_stream_config 65 format will be mapped to MIPI data 79 enum atomisp_input_format format; /** Format of input stream. This data member in struct:ia_css_stream_input_config 80 format will be mapped to MIPI data 242 /* @brief Returns stream format 244 * @return format of the string 246 * This function will return the stream format. 365 * only. This uses the channel ID and input format as set by the user with 431 * @param[in] format Format of the embedded data. 446 enum atomisp_input_format format, [all...] |