| /linux/drivers/media/platform/renesas/vsp1/ |
| H A D | vsp1_rwpf.c | 65 struct v4l2_mbus_framefmt *format; in vsp1_rwpf_set_format() local 76 /* Default to YUV if the requested format is not supported. */ in vsp1_rwpf_set_format() 77 if (fmt->format.code != MEDIA_BUS_FMT_ARGB8888_1X32 && in vsp1_rwpf_set_format() 78 fmt->format.code != MEDIA_BUS_FMT_AHSV8888_1X32 && in vsp1_rwpf_set_format() 79 fmt->format.code != MEDIA_BUS_FMT_AYUV8_1X32) in vsp1_rwpf_set_format() 80 fmt->format.code = MEDIA_BUS_FMT_AYUV8_1X32; in vsp1_rwpf_set_format() 82 format = v4l2_subdev_state_get_format(state, fmt->pad); in vsp1_rwpf_set_format() 87 u16 flags = fmt->format.flags & V4L2_MBUS_FRAMEFMT_SET_CSC; in vsp1_rwpf_set_format() 91 * The RWPF performs format conversion but can't scale, only the in vsp1_rwpf_set_format() 92 * format code, encoding and quantization can be changed on the in vsp1_rwpf_set_format() [all …]
|
| H A D | vsp1_drm.c | 70 struct v4l2_subdev_format format = { in vsp1_du_insert_uif() local 88 format.pad = prev_pad; in vsp1_du_insert_uif() 90 ret = v4l2_subdev_call(&prev->subdev, pad, get_fmt, NULL, &format); in vsp1_du_insert_uif() 94 format.pad = UIF_PAD_SINK; in vsp1_du_insert_uif() 96 ret = v4l2_subdev_call(&uif->subdev, pad, set_fmt, NULL, &format); in vsp1_du_insert_uif() 100 dev_dbg(vsp1->dev, "%s: set format %ux%u (%x) on UIF sink\n", in vsp1_du_insert_uif() 101 __func__, format.format.width, format.format.height, in vsp1_du_insert_uif() 102 format.format.code); in vsp1_du_insert_uif() 105 * The UIF doesn't mangle the format between its sink and source pads, in vsp1_du_insert_uif() 106 * so there is no need to retrieve the format on its source pad. in vsp1_du_insert_uif() [all …]
|
| H A D | vsp1_hsit.c | 71 struct v4l2_mbus_framefmt *format; in hsit_set_format() local 82 format = v4l2_subdev_state_get_format(state, fmt->pad); in hsit_set_format() 86 * The HST and HSI output format code and resolution can't be in hsit_set_format() 89 fmt->format = *format; in hsit_set_format() 93 format->code = hsit->inverse ? MEDIA_BUS_FMT_AHSV8888_1X32 in hsit_set_format() 95 format->width = clamp_t(unsigned int, fmt->format.width, in hsit_set_format() 97 format->height = clamp_t(unsigned int, fmt->format.height, in hsit_set_format() 99 format->field = V4L2_FIELD_NONE; in hsit_set_format() 101 format->colorspace = fmt->format.colorspace; in hsit_set_format() 102 format->xfer_func = fmt->format.xfer_func; in hsit_set_format() [all …]
|
| H A D | vsp1_entity.c | 107 void vsp1_entity_adjust_color_space(struct v4l2_mbus_framefmt *format) in vsp1_entity_adjust_color_space() argument 109 u8 xfer_func = format->xfer_func; in vsp1_entity_adjust_color_space() 110 u8 ycbcr_enc = format->ycbcr_enc; in vsp1_entity_adjust_color_space() 111 u8 quantization = format->quantization; in vsp1_entity_adjust_color_space() 113 vsp1_adjust_color_space(format->code, &format->colorspace, &xfer_func, in vsp1_entity_adjust_color_space() 116 format->xfer_func = xfer_func; in vsp1_entity_adjust_color_space() 117 format->ycbcr_enc = ycbcr_enc; in vsp1_entity_adjust_color_space() 118 format->quantization = quantization; in vsp1_entity_adjust_color_space() 156 * @fmt: V4L2 subdev format 173 fmt->format = *v4l2_subdev_state_get_format(state, fmt->pad); in vsp1_subdev_get_pad_format() [all …]
|
| /linux/tools/power/cpupower/po/ |
| H A D | fr.po | 73 #, c-format 80 #, c-format 87 #, c-format 92 #, c-format 97 #, c-format 102 #, c-format 107 #, c-format 112 #, c-format 117 #, c-format 124 #, c-format [all …]
|
| H A D | pt.po | 71 #, c-format 78 #, c-format 85 #, c-format 90 #, c-format 95 #, c-format 100 #, c-format 105 #, c-format 110 #, c-format 115 #, c-format 122 #, c-format [all …]
|
| H A D | it.po | 73 #, c-format 80 #, c-format 87 #, c-format 92 #, c-format 97 #, c-format 102 #, c-format 107 #, c-format 112 #, c-format 117 #, c-format 124 #, c-format [all …]
|
| H A D | cs.po | 76 #, c-format 83 #, c-format 90 #, c-format 95 #, c-format 100 #, c-format 105 #, c-format 110 #, c-format 115 #, c-format 120 #, c-format 127 #, c-format [all …]
|
| H A D | zh_CN.po | 73 #, c-format 82 #, c-format 91 #, c-format 96 #, c-format 101 #, c-format 106 #, c-format 111 #, c-format 116 #, c-format 121 #, c-format 130 #, c-format [all …]
|
| H A D | de.po | 73 #, c-format 82 #, c-format 91 #, c-format 96 #, c-format 101 #, c-format 106 #, c-format 111 #, c-format 117 #, c-format 123 #, c-format 132 #, c-format [all …]
|
| H A D | ka.po | 75 #, c-format 84 #, c-format 93 #, c-format 98 #, c-format 103 #, c-format 109 #, c-format 114 #, c-format 121 #, c-format 128 #, c-format 137 #, c-format [all …]
|
| /linux/drivers/media/platform/xilinx/ |
| H A D | xilinx-vip.c | 48 * xvip_get_format_by_code - Retrieve format information for a media bus code 49 * @code: the format media bus code 51 * Return: a pointer to the format information structure corresponding to the 52 * given V4L2 media bus format @code, or ERR_PTR if no corresponding format can 60 const struct xvip_video_format *format = &xvip_video_formats[i]; in xvip_get_format_by_code() local 62 if (format->code == code) in xvip_get_format_by_code() 63 return format; in xvip_get_format_by_code() 71 * xvip_get_format_by_fourcc - Retrieve format information for a 4CC 72 * @fourcc: the format 4CC 74 * Return: a pointer to the format information structure corresponding to the [all …]
|
| /linux/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. 59 * struct drm_format_info - information about a DRM format 62 /** @format: 4CC format identifier (DRM_FORMAT_*) */ 63 u32 format; member 84 * describing the pixel format. 108 * generic format table. Drivers could supply accurate 136 /** @has_alpha: Does the format embeds an alpha component? */ 139 /** @is_yuv: Is it a YUV format? */ [all …]
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_fourcc.c | 4 * DRM core format related functions 38 * Computes a drm fourcc pixel format code for the given @bpp/@depth values. 113 * Computes a drm fourcc pixel format code for the given @bpp/@depth values. 147 * Computes a DRM 4CC pixel format code for the given color mode using 148 * drm_driver_color_mode(). The color mode is in the format used and the 172 * Internal function to query information for a given format. See 175 const struct drm_format_info *__drm_format_info(u32 format) in __drm_format_info() argument 178 { .format = DRM_FORMAT_C1, .depth = 1, .num_planes = 1, in __drm_format_info() 180 { .format = DRM_FORMAT_C2, .depth = 2, .num_planes = 1, in __drm_format_info() 182 { .format = DRM_FORMAT_C4, .depth = 4, .num_planes = 1, in __drm_format_info() [all …]
|
| /linux/tools/objtool/include/objtool/ |
| H A D | warn.h | 45 #define ___WARN(severity, extra, format, ...) \ argument 47 "%s%s%s: objtool" extra ": " format "\n", \ 53 #define __WARN(severity, format, ...) \ argument 54 ___WARN(severity, "", format, ##__VA_ARGS__) 56 #define __WARN_LINE(severity, format, ...) \ argument 57 ___WARN(severity, " [%s:%d]", format, __FILE__, __LINE__, ##__VA_ARGS__) 59 #define __WARN_ELF(severity, format, ...) \ argument 60 __WARN_LINE(severity, "%s: " format " failed: %s", __func__, ##__VA_ARGS__, elf_errmsg(-1)) 62 #define __WARN_GLIBC(severity, format, ...) \ argument 63 __WARN_LINE(severity, "%s: " format " failed: %s", __func__, ##__VA_ARGS__, strerror(errno)) [all …]
|
| /linux/sound/core/ |
| H A D | pcm_misc.c | 45 static bool valid_format(snd_pcm_format_t format) in valid_format() argument 47 return (INT)format >= 0 && (INT)format <= (INT)SNDRV_PCM_FORMAT_LAST; in valid_format() 194 /* FIXME: the following format is not defined properly yet */ 258 * snd_pcm_format_signed - Check the PCM format is signed linear 259 * @format: the format to check 261 * Return: 1 if the given PCM format is signed linear, 0 if unsigned 264 int snd_pcm_format_signed(snd_pcm_format_t format) in snd_pcm_format_signed() argument 267 if (!valid_format(format)) in snd_pcm_format_signed() 269 val = pcm_formats[(INT)format].signd; in snd_pcm_format_signed() 277 * snd_pcm_format_unsigned - Check the PCM format is unsigned linear [all …]
|
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | pixfmt-reserved.rst | 6 Reserved Format Identifiers 11 register your own format, send an e-mail to the linux-media mailing list 14 format with other developers add a link to your documentation and send a 16 you think your format should be listed in a standard format section 45 - Compressed format of the ET61X251 driver. 50 - 8 bit RGB format used by the BTTV driver. 55 - YUV format used by the gspca cpia1 driver. 60 - JPEG-Light format (Pegasus Lossless JPEG) used in Divio webcams NW 81 - Compressed GBRG Bayer format used by the gspca driver. 86 - Compressed BGGR Bayer format used by the gspca driver. [all …]
|
| /linux/drivers/gpu/drm/sysfb/ |
| H A D | vesadrm.c | 146 const struct drm_format_info *format) in vesadrm_fill_gamma_lut() argument 151 switch (format->format) { in vesadrm_fill_gamma_lut() 164 drm_warn_once(dev, "Unsupported format %p4cc for gamma correction\n", in vesadrm_fill_gamma_lut() 165 &format->format); in vesadrm_fill_gamma_lut() 171 const struct drm_format_info *format, in vesadrm_load_gamma_lut() argument 177 switch (format->format) { in vesadrm_load_gamma_lut() 190 drm_warn_once(dev, "Unsupported format %p4cc for gamma correction\n", in vesadrm_load_gamma_lut() 191 &format->format); in vesadrm_load_gamma_lut() 197 const struct drm_format_info *format) in vesadrm_fill_palette_lut() argument 202 switch (format->format) { in vesadrm_fill_palette_lut() [all …]
|
| /linux/drivers/gpu/drm/imx/dcss/ |
| H A D | dcss-plane.c | 71 u32 format, in dcss_plane_format_mod_supported() argument 76 switch (format) { in dcss_plane_format_mod_supported() 104 static bool dcss_plane_can_rotate(const struct drm_format_info *format, in dcss_plane_can_rotate() argument 111 if (!format->is_yuv && linear_format) in dcss_plane_can_rotate() 114 else if (!format->is_yuv && in dcss_plane_can_rotate() 119 else if (format->is_yuv && linear_format && in dcss_plane_can_rotate() 120 (format->format == DRM_FORMAT_NV12 || in dcss_plane_can_rotate() 121 format->format == DRM_FORMAT_NV21)) in dcss_plane_can_rotate() 170 fb->format->format)) { in dcss_plane_atomic_check() 187 if (!dcss_plane_can_rotate(fb->format, in dcss_plane_atomic_check() [all …]
|
| /linux/drivers/staging/media/ipu7/ |
| H A D | ipu7-isys-subdev.c | 16 #include <uapi/linux/media-bus-format.h> 103 struct v4l2_subdev_format *format) in ipu7_isys_subdev_set_fmt() argument 114 if ((sd->entity.pads[format->pad].flags & MEDIA_PAD_FL_SOURCE) && in ipu7_isys_subdev_set_fmt() 116 return v4l2_subdev_get_fmt(sd, state, format); in ipu7_isys_subdev_set_fmt() 118 format->format.width = clamp(format->format.width, IPU_ISYS_MIN_WIDTH, in ipu7_isys_subdev_set_fmt() 120 format->format.height = clamp(format->format.height, in ipu7_isys_subdev_set_fmt() 125 if (asd->supported_codes[i] == format->format.code) { in ipu7_isys_subdev_set_fmt() 130 format->format.code = code; in ipu7_isys_subdev_set_fmt() 131 format->format.field = V4L2_FIELD_NONE; in ipu7_isys_subdev_set_fmt() 133 /* Store the format and propagate it to the source pad. */ in ipu7_isys_subdev_set_fmt() [all …]
|
| /linux/drivers/media/pci/intel/ipu6/ |
| H A D | ipu6-isys-subdev.c | 148 struct v4l2_subdev_format *format) in ipu6_isys_subdev_set_fmt() argument 159 if ((sd->entity.pads[format->pad].flags & MEDIA_PAD_FL_SOURCE) && in ipu6_isys_subdev_set_fmt() 161 return v4l2_subdev_get_fmt(sd, state, format); in ipu6_isys_subdev_set_fmt() 163 format->format.width = clamp(format->format.width, IPU6_ISYS_MIN_WIDTH, in ipu6_isys_subdev_set_fmt() 165 format->format.height = clamp(format->format.height, in ipu6_isys_subdev_set_fmt() 170 if (asd->supported_codes[i] == format->format.code) { in ipu6_isys_subdev_set_fmt() 175 format->format.code = code; in ipu6_isys_subdev_set_fmt() 176 format->format.field = V4L2_FIELD_NONE; in ipu6_isys_subdev_set_fmt() 178 /* Store the format and propagate it to the source pad. */ in ipu6_isys_subdev_set_fmt() 179 fmt = v4l2_subdev_state_get_format(state, format->pad, format->stream); in ipu6_isys_subdev_set_fmt() [all …]
|
| /linux/include/net/ |
| H A D | net_debug.h | 12 const char *format, ...); 14 void netdev_emerg(const struct net_device *dev, const char *format, ...); 16 void netdev_alert(const struct net_device *dev, const char *format, ...); 18 void netdev_crit(const struct net_device *dev, const char *format, ...); 20 void netdev_err(const struct net_device *dev, const char *format, ...); 22 void netdev_warn(const struct net_device *dev, const char *format, ...); 24 void netdev_notice(const struct net_device *dev, const char *format, ...); 26 void netdev_info(const struct net_device *dev, const char *format, ...); 55 #define netdev_dbg(__dev, format, args...) \ argument 57 dynamic_netdev_dbg(__dev, format, ##args); \ [all …]
|
| /linux/net/bluetooth/ |
| H A D | lib.c | 244 * @format: Message's format string 246 void bt_info(const char *format, ...) in bt_info() argument 251 va_start(args, format); in bt_info() 253 vaf.fmt = format; in bt_info() 264 * @format: Message's format string 266 void bt_warn(const char *format, ...) in bt_warn() argument 271 va_start(args, format); in bt_warn() 273 vaf.fmt = format; in bt_warn() 284 * @format: Message's format string 286 void bt_err(const char *format, ...) in bt_err() argument [all …]
|
| /linux/drivers/media/test-drivers/vimc/ |
| H A D | vimc-scaler.c | 110 /* We don't support bayer format */ in vimc_scaler_enum_mbus_code() 128 /* Only accept code in the pix map table in non bayer format */ in vimc_scaler_enum_frame_size() 144 struct v4l2_subdev_format *format) in vimc_scaler_set_fmt() argument 149 /* Do not change the active format while stream is on */ in vimc_scaler_set_fmt() 150 if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE && vscaler->src_frame) in vimc_scaler_set_fmt() 153 fmt = v4l2_subdev_state_get_format(sd_state, format->pad); in vimc_scaler_set_fmt() 159 if (format->pad == VIMC_SCALER_SINK) { in vimc_scaler_set_fmt() 162 /* Only accept code in the pix map table in non bayer format. */ in vimc_scaler_set_fmt() 163 vpix = vimc_pix_map_by_code(format->format.code); in vimc_scaler_set_fmt() 165 fmt->code = format->format.code; in vimc_scaler_set_fmt() [all …]
|
| H A D | vimc-capture.c | 19 struct v4l2_pix_format format; member 70 *fmt = vcapture->format; in vimc_capture_get_format() 78 f->fmt.pix = vcapture->format; in vimc_capture_g_fmt_vid_cap() 86 struct v4l2_pix_format *format = &f->fmt.pix; in vimc_capture_try_fmt_vid_cap() local 89 format->width = clamp_t(u32, format->width, VIMC_FRAME_MIN_WIDTH, in vimc_capture_try_fmt_vid_cap() 91 format->height = clamp_t(u32, format->height, VIMC_FRAME_MIN_HEIGHT, in vimc_capture_try_fmt_vid_cap() 95 vpix = vimc_pix_map_by_pixelformat(format->pixelformat); in vimc_capture_try_fmt_vid_cap() 97 format->pixelformat = fmt_default.pixelformat; in vimc_capture_try_fmt_vid_cap() 98 vpix = vimc_pix_map_by_pixelformat(format->pixelformat); in vimc_capture_try_fmt_vid_cap() 101 format->bytesperline = format->width * vpix->bpp; in vimc_capture_try_fmt_vid_cap() [all …]
|