/linux-master/drivers/media/platform/st/stm32/stm32-dcmipp/ |
H A D | dcmipp-byteproc.c | 111 const struct v4l2_mbus_framefmt *fmt) 117 if (fmt->code == MEDIA_BUS_FMT_JPEG_1X8 || 118 fmt->code == MEDIA_BUS_FMT_SBGGR8_1X8 || 119 fmt->code == MEDIA_BUS_FMT_SGBRG8_1X8 || 120 fmt->code == MEDIA_BUS_FMT_SGRBG8_1X8 || 121 fmt->code == MEDIA_BUS_FMT_SRGGB8_1X8) { 122 r->width = fmt->width; 123 r->height = fmt->height; 128 if (r->height <= (fmt->height / 2)) 129 r->height = fmt 110 dcmipp_byteproc_adjust_compose(struct v4l2_rect *r, const struct v4l2_mbus_framefmt *fmt) argument 142 dcmipp_byteproc_adjust_fmt(struct v4l2_mbus_framefmt *fmt) argument 238 dcmipp_byteproc_set_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_state *sd_state, struct v4l2_subdev_format *fmt) argument [all...] |
H A D | dcmipp-parallel.c | 200 struct v4l2_mbus_framefmt *fmt, __u32 pad) 205 vpix = dcmipp_par_pix_map_by_code(IS_SINK(pad) ? fmt->code : 0, 206 IS_SRC(pad) ? fmt->code : 0); 208 fmt->code = fmt_default.code; 213 fmt->code = fmt_default.code; 215 fmt->width = clamp_t(u32, fmt->width, DCMIPP_FRAME_MIN_WIDTH, 217 fmt->height = clamp_t(u32, fmt->height, DCMIPP_FRAME_MIN_HEIGHT, 220 if (fmt 199 dcmipp_par_adjust_fmt(struct dcmipp_par_device *par, struct v4l2_mbus_framefmt *fmt, __u32 pad) argument 226 dcmipp_par_set_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_state *sd_state, struct v4l2_subdev_format *fmt) argument [all...] |
/linux-master/drivers/media/test-drivers/vimc/ |
H A D | vimc-sensor.c | 97 struct v4l2_subdev_format *fmt) 102 fmt->format = fmt->which == V4L2_SUBDEV_FORMAT_TRY ? 103 *v4l2_subdev_state_get_format(sd_state, fmt->pad) : 127 static void vimc_sensor_adjust_fmt(struct v4l2_mbus_framefmt *fmt) argument 132 vpix = vimc_pix_map_by_code(fmt->code); 134 fmt->code = fmt_default.code; 136 fmt->width = clamp_t(u32, fmt->width, VIMC_FRAME_MIN_WIDTH, 138 fmt 95 vimc_sensor_get_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_state *sd_state, struct v4l2_subdev_format *fmt) argument 148 vimc_sensor_set_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_state *sd_state, struct v4l2_subdev_format *fmt) argument [all...] |
/linux-master/drivers/media/pci/cx23885/ |
H A D | cx23885-vbi.c | 23 #define dprintk(level, fmt, arg...)\ 25 printk(KERN_DEBUG pr_fmt("%s: vbi:" fmt), \ 41 f->fmt.vbi.sampling_rate = 27000000; 42 f->fmt.vbi.samples_per_line = VBI_LINE_LENGTH; 43 f->fmt.vbi.sample_format = V4L2_PIX_FMT_GREY; 44 f->fmt.vbi.offset = 0; 45 f->fmt.vbi.flags = 0; 48 f->fmt.vbi.start[0] = V4L2_VBI_ITU_525_F1_START + 9; 49 f->fmt.vbi.start[1] = V4L2_VBI_ITU_525_F2_START + 9; 50 f->fmt [all...] |
/linux-master/drivers/media/pci/cx88/ |
H A D | cx88-vbi.c | 15 #define dprintk(level, fmt, arg...) do { \ 17 printk(KERN_DEBUG pr_fmt("%s: vbi:" fmt), \ 28 f->fmt.vbi.samples_per_line = VBI_LINE_LENGTH; 29 f->fmt.vbi.sample_format = V4L2_PIX_FMT_GREY; 30 f->fmt.vbi.offset = 244; 34 f->fmt.vbi.sampling_rate = 28636363; 35 f->fmt.vbi.start[0] = 10; 36 f->fmt.vbi.start[1] = 273; 37 f->fmt.vbi.count[0] = VBI_LINE_NTSC_COUNT; 38 f->fmt [all...] |
/linux-master/drivers/media/pci/cx18/ |
H A D | cx18-ioctl.c | 53 struct v4l2_format *fmt) 58 struct v4l2_pix_format *pixfmt = &fmt->fmt.pix; 77 struct v4l2_format *fmt) 81 struct v4l2_pix_format *pixfmt = &fmt->fmt.pix; 122 struct v4l2_format *fmt) 133 ret = cx18_try_fmt_vid_cap(file, fh, fmt); 136 w = fmt->fmt 52 cx18_g_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *fmt) argument 76 cx18_try_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *fmt) argument 121 cx18_s_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *fmt) argument 218 cx18_expand_service_set(struct v4l2_sliced_vbi_format *fmt, int is_pal) argument 234 check_service_set(struct v4l2_sliced_vbi_format *fmt, int is_pal) argument 249 cx18_get_service_set(struct v4l2_sliced_vbi_format *fmt) argument 261 cx18_g_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) argument 280 cx18_g_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) argument 305 cx18_try_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) argument 311 cx18_try_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) argument 330 cx18_s_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) argument 360 cx18_s_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) argument 499 cx18_enum_fmt_vid_cap(struct file *file, void *fh, struct v4l2_fmtdesc *fmt) argument [all...] |
/linux-master/drivers/media/platform/ti/cal/ |
H A D | cal-video.c | 29 static char *fourcc_to_str(u32 fmt) argument 33 code[0] = (unsigned char)(fmt & 0xff); 34 code[1] = (unsigned char)((fmt >> 8) & 0xff); 35 code[2] = (unsigned char)((fmt >> 16) & 0xff); 36 code[3] = (unsigned char)((fmt >> 24) & 0xff); 118 struct v4l2_mbus_framefmt *fmt) 131 *fmt = *mbus_fmt; 134 fmt->width, fmt->height, fmt 117 __subdev_get_format(struct cal_ctx *ctx, struct v4l2_mbus_framefmt *fmt) argument 139 __subdev_set_format(struct cal_ctx *ctx, struct v4l2_mbus_framefmt *fmt) argument [all...] |
/linux-master/include/linux/ |
H A D | suspend.h | 516 #define pr_fmt(fmt) "PM: " fmt 518 #define __pm_pr_dbg(fmt, ...) \ 521 printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__); \ 523 pr_debug(fmt, ##__VA_ARGS__); \ 525 #define __pm_deferred_pr_dbg(fmt, ...) \ 528 printk_deferred(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__); \ 536 #define __pm_pr_dbg(fmt, ...) \ 537 no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) 538 #define __pm_deferred_pr_dbg(fmt, [all...] |
/linux-master/fs/bcachefs/ |
H A D | bcachefs.h | 181 #define pr_fmt(fmt) "bcachefs: %s() " fmt "\n", __func__ 183 #define pr_fmt(fmt) "%s() " fmt "\n", __func__ 249 #define bch2_log_msg(_c, fmt) "bcachefs (%s): " fmt, ((_c)->name) 250 #define bch2_fmt_dev(_ca, fmt) "bcachefs (%s): " fmt "\n", ((_ca)->name) 251 #define bch2_fmt_dev_offset(_ca, _offset, fmt) "bcachefs (%s sector %llu): " fmt "\ [all...] |
/linux-master/drivers/s390/char/ |
H A D | tape_3590.c | 12 #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 969 switch (sense->fmt.f70.emc) { 975 sense->fmt.f70.mp); 982 sense->fmt.f70.mp); 989 sense->fmt.f70.md); 993 sense->fmt.f70.emc); 997 switch (sense->fmt.f70.smc) { 1000 "procedure %i", sense->fmt.f70.md); 1004 sense->fmt [all...] |
/linux-master/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_plane.c | 8 #define pr_fmt(fmt) "[drm:%s:%d] " fmt, __func__, __LINE__ 30 #define DPU_DEBUG_PLANE(pl, fmt, ...) DRM_DEBUG_ATOMIC("plane%d " fmt,\ 33 #define DPU_ERROR_PLANE(pl, fmt, ...) DPU_ERROR("plane%d " fmt,\ 108 * @fmt: Pointer to source buffer format 116 const struct dpu_format *fmt, 140 plane_bit_rate = plane_pixel_rate * fmt->bpp; 191 * @fmt 115 _dpu_plane_calc_bw(const struct dpu_mdss_cfg *catalog, const struct dpu_format *fmt, const struct drm_display_mode *mode, struct dpu_sw_pipe_cfg *pipe_cfg) argument 195 _dpu_plane_calc_fill_level(struct drm_plane *plane, struct dpu_sw_pipe *pipe, enum dpu_qos_lut_usage lut_usage, const struct dpu_format *fmt, u32 src_width) argument 252 _dpu_plane_set_qos_lut(struct drm_plane *plane, struct dpu_sw_pipe *pipe, const struct dpu_format *fmt, struct dpu_sw_pipe_cfg *pipe_cfg) argument 425 _dpu_plane_setup_scaler3(struct dpu_hw_sspp *pipe_hw, uint32_t src_w, uint32_t src_h, uint32_t dst_w, uint32_t dst_h, struct dpu_hw_scaler3_cfg *scale_cfg, const struct dpu_format *fmt, uint32_t chroma_subsmpl_h, uint32_t chroma_subsmpl_v, unsigned int rotation) argument 512 _dpu_plane_get_csc(struct dpu_sw_pipe *pipe, const struct dpu_format *fmt) argument 528 _dpu_plane_setup_scaler(struct dpu_sw_pipe *pipe, const struct dpu_format *fmt, bool color_fill, struct dpu_sw_pipe_cfg *pipe_cfg, unsigned int rotation) argument 576 _dpu_plane_color_fill_pipe(struct dpu_plane_state *pstate, struct dpu_sw_pipe *pipe, struct drm_rect *dst_rect, u32 fill_color, const struct dpu_format *fmt) argument 618 const struct dpu_format *fmt; local 705 dpu_plane_check_inline_rotation(struct dpu_plane *pdpu, const struct dpu_sspp_sub_blks *sblk, struct drm_rect src, const struct dpu_format *fmt) argument 733 dpu_plane_atomic_check_pipe(struct dpu_plane *pdpu, struct dpu_sw_pipe *pipe, struct dpu_sw_pipe_cfg *pipe_cfg, const struct dpu_format *fmt, const struct drm_display_mode *mode) argument 801 const struct dpu_format *fmt; local 1017 dpu_plane_sspp_update_pipe(struct drm_plane *plane, struct dpu_sw_pipe *pipe, struct dpu_sw_pipe_cfg *pipe_cfg, const struct dpu_format *fmt, int frame_rate, struct dpu_hw_fmt_layout *layout) argument 1098 const struct dpu_format *fmt = local [all...] |
H A D | dpu_formats.c | 5 #define pr_fmt(fmt) "[drm:%s:%d] " fmt, __func__, __LINE__ 34 #define INTERLEAVED_RGB_FMT(fmt, a, r, g, b, e0, e1, e2, e3, uc, alpha, \ 37 .base.pixel_format = DRM_FORMAT_ ## fmt, \ 53 #define INTERLEAVED_RGB_FMT_TILED(fmt, a, r, g, b, e0, e1, e2, e3, uc, \ 56 .base.pixel_format = DRM_FORMAT_ ## fmt, \ 73 #define INTERLEAVED_YUV_FMT(fmt, a, r, g, b, e0, e1, e2, e3, \ 76 .base.pixel_format = DRM_FORMAT_ ## fmt, \ 92 #define PSEUDO_YUV_FMT(fmt, a, r, g, b, e0, e1, chroma, flg, fm, np) \ 94 .base.pixel_format = DRM_FORMAT_ ## fmt, \ 596 _dpu_format_get_media_color_ubwc(const struct dpu_format *fmt) argument 632 _dpu_format_get_plane_sizes_ubwc( const struct dpu_format *fmt, const uint32_t width, const uint32_t height, struct dpu_hw_fmt_layout *layout) argument 711 _dpu_format_get_plane_sizes_linear( const struct dpu_format *fmt, const uint32_t width, const uint32_t height, struct dpu_hw_fmt_layout *layout, const uint32_t *pitches) argument 783 dpu_format_get_plane_sizes( const struct dpu_format *fmt, const uint32_t w, const uint32_t h, struct dpu_hw_fmt_layout *layout, const uint32_t *pitches) argument 970 const struct dpu_format *fmt; local 1013 const struct dpu_format *fmt = NULL; local 1063 const struct dpu_format *fmt = dpu_get_dpu_format_ext(format, local [all...] |
/linux-master/drivers/media/platform/st/stm32/dma2d/ |
H A D | dma2d-hw.c | 70 if (frm->fmt->cmode >= CM_MODE_ARGB8888 && 71 frm->fmt->cmode <= CM_MODE_ARGB4444) 73 frm->fmt->cmode); 94 if (frm->fmt->cmode >= CM_MODE_ARGB8888 && 95 frm->fmt->cmode <= CM_MODE_A4) 97 frm->fmt->cmode); 118 if (frm->fmt->cmode >= CM_MODE_ARGB8888 && 119 frm->fmt->cmode <= CM_MODE_A4) 121 frm->fmt->cmode);
|
H A D | dma2d.c | 86 .fmt = (struct dma2d_fmt *)&formats[0], 366 f->fmt.pix.width = frm->width; 367 f->fmt.pix.height = frm->height; 368 f->fmt.pix.field = V4L2_FIELD_NONE; 369 f->fmt.pix.pixelformat = frm->fmt->fourcc; 370 f->fmt.pix.bytesperline = (frm->width * frm->fmt->depth) >> 3; 371 f->fmt.pix.sizeimage = frm->size; 372 f->fmt 383 struct dma2d_fmt *fmt; local 428 struct dma2d_fmt *fmt; local [all...] |
/linux-master/drivers/media/platform/renesas/vsp1/ |
H A D | vsp1_hsit.c | 66 struct v4l2_subdev_format *fmt) 75 state = vsp1_entity_get_state(&hsit->entity, sd_state, fmt->which); 81 format = vsp1_entity_get_pad_format(&hsit->entity, state, fmt->pad); 83 if (fmt->pad == HSIT_PAD_SOURCE) { 88 fmt->format = *format; 94 format->width = clamp_t(unsigned int, fmt->format.width, 96 format->height = clamp_t(unsigned int, fmt->format.height, 101 fmt->format = *format; 106 *format = fmt->format; 64 hsit_set_format(struct v4l2_subdev *subdev, struct v4l2_subdev_state *sd_state, struct v4l2_subdev_format *fmt) argument
|
/linux-master/drivers/gpio/ |
H A D | gpiolib.h | 252 #define gpiod_err(desc, fmt, ...) \ 255 pr_err("gpio-%d (%s): " fmt, desc_to_gpio(desc), \ 260 #define gpiod_warn(desc, fmt, ...) \ 263 pr_warn("gpio-%d (%s): " fmt, desc_to_gpio(desc), \ 268 #define gpiod_dbg(desc, fmt, ...) \ 271 pr_debug("gpio-%d (%s): " fmt, desc_to_gpio(desc), \ 278 #define chip_err(gc, fmt, ...) \ 279 dev_err(&gc->gpiodev->dev, "(%s): " fmt, gc->label, ##__VA_ARGS__) 280 #define chip_warn(gc, fmt, ...) \ 281 dev_warn(&gc->gpiodev->dev, "(%s): " fmt, g [all...] |
/linux-master/drivers/usb/gadget/udc/aspeed-vhub/ |
H A D | vhub.h | 440 #define UDCVDBG(u, fmt...) dev_dbg(&(u)->pdev->dev, fmt) 442 #define EPVDBG(ep, fmt, ...) do { \ 444 "%s:EP%d " fmt, \ 449 #define DVDBG(d, fmt, ...) do { \ 451 "%s " fmt, (d)->name, \ 456 #define UDCVDBG(u, fmt...) do { } while(0) 457 #define EPVDBG(ep, fmt, ...) do { } while(0) 458 #define DVDBG(d, fmt, ...) do { } while(0) 462 #define UDCDBG(u, fmt [all...] |
/linux-master/drivers/scsi/snic/ |
H A D | snic.h | 130 #define SNIC_MAIN_DBG(host, fmt, args...) \ 132 shost_printk(KERN_INFO, host, fmt, ## args);) 134 #define SNIC_SCSI_DBG(host, fmt, args...) \ 136 shost_printk(KERN_INFO, host, fmt, ##args);) 138 #define SNIC_DISC_DBG(host, fmt, args...) \ 140 shost_printk(KERN_INFO, host, fmt, ##args);) 142 #define SNIC_ISR_DBG(host, fmt, args...) \ 144 shost_printk(KERN_INFO, host, fmt, ##args);) 146 #define SNIC_HOST_ERR(host, fmt, args...) \ 147 shost_printk(KERN_ERR, host, fmt, ##arg [all...] |
/linux-master/drivers/media/platform/ti/omap/ |
H A D | omap_voutlib.c | 46 crop->width = (pix->width < fbuf->fmt.width) ? 47 pix->width : fbuf->fmt.width; 48 crop->height = (pix->height < fbuf->fmt.height) ? 49 pix->height : fbuf->fmt.height; 82 try_win.width = (try_win.width < fbuf->fmt.width) ? 83 try_win.width : fbuf->fmt.width; 84 try_win.height = (try_win.height < fbuf->fmt.height) ? 85 try_win.height : fbuf->fmt.height; 86 if (try_win.left + try_win.width > fbuf->fmt.width) 87 try_win.width = fbuf->fmt [all...] |
/linux-master/fs/nilfs2/ |
H A D | nilfs.h | 300 void __nilfs_msg(struct super_block *sb, const char *fmt, ...); 303 const char *fmt, ...); 307 #define nilfs_msg(sb, level, fmt, ...) \ 308 __nilfs_msg(sb, level fmt, ##__VA_ARGS__) 309 #define nilfs_error(sb, fmt, ...) \ 310 __nilfs_error(sb, __func__, fmt, ##__VA_ARGS__) 314 #define nilfs_msg(sb, level, fmt, ...) \ 316 no_printk(level fmt, ##__VA_ARGS__); \ 319 #define nilfs_error(sb, fmt, ...) \ 321 no_printk(fmt, ##__VA_ARGS_ [all...] |
/linux-master/sound/usb/ |
H A D | format.c | 29 * @fmt: the format type descriptor (v1/v2) or AudioStreaming descriptor (v3) 41 struct uac_format_type_i_discrete_descriptor *fmt = _fmt; local 48 sample_width = fmt->bBitResolution; 49 sample_bytes = fmt->bSubframeSize; 55 struct uac_format_type_i_ext_descriptor *fmt = _fmt; local 56 sample_width = fmt->bBitResolution; 57 sample_bytes = fmt->bSubslotSize; 196 * @fmt: the format descriptor 201 unsigned char *fmt, int offset) 203 int nr_rates = fmt[offse 200 parse_audio_format_rates_v1(struct snd_usb_audio *chip, struct audioformat *fp, unsigned char *fmt, int offset) argument 311 unsigned char *fmt; local 659 struct uac_format_type_i_continuous_descriptor *fmt = _fmt; local 703 struct uac_format_type_i_continuous_descriptor *fmt = _fmt; local 758 struct uac_format_type_ii_discrete_descriptor *fmt = _fmt; local 767 struct uac_format_type_ii_ext_descriptor *fmt = _fmt; local 780 snd_usb_parse_audio_format(struct snd_usb_audio *chip, struct audioformat *fp, u64 format, struct uac_format_type_i_continuous_descriptor *fmt, int stream) argument [all...] |
/linux-master/drivers/media/usb/go7007/ |
H A D | go7007-v4l2.c | 176 static int set_capture_size(struct go7007 *go, struct v4l2_format *fmt, int try) argument 181 if (fmt != NULL && !valid_pixelformat(fmt->fmt.pix.pixelformat)) 186 if (fmt == NULL) { 190 if (fmt->fmt.pix.width > sensor_width) 192 else if (fmt->fmt.pix.width < 144) 195 width = fmt 285 vidioc_enum_fmt_vid_cap(struct file *file, void *priv, struct v4l2_fmtdesc *fmt) argument 307 vidioc_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *fmt) argument 324 vidioc_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *fmt) argument 332 vidioc_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *fmt) argument [all...] |
/linux-master/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
H A D | debug.h | 28 void __brcms_info(struct device *dev, const char *fmt, ...); 30 void __brcms_warn(struct device *dev, const char *fmt, ...); 32 void __brcms_err(struct device *dev, const char *fmt, ...); 34 void __brcms_crit(struct device *dev, const char *fmt, ...); 39 const char *fmt, ...); 43 const char *fmt, ...) 42 __brcms_dbg(struct device *dev, u32 level, const char *func, const char *fmt, ...) argument
|
/linux-master/drivers/net/wireless/ath/ath6kl/ |
H A D | debug.h | 53 __printf(2, 3) void ath6kl_printk(const char *level, const char *fmt, ...); 54 __printf(1, 2) void ath6kl_info(const char *fmt, ...); 55 __printf(1, 2) void ath6kl_err(const char *fmt, ...); 56 __printf(1, 2) void ath6kl_warn(const char *fmt, ...); 67 void ath6kl_dbg(enum ATH6K_DEBUG_MASK mask, const char *fmt, ...); 89 const char *fmt, ...) 88 ath6kl_dbg(enum ATH6K_DEBUG_MASK dbg_mask, const char *fmt, ...) argument
|
/linux-master/drivers/net/ethernet/mellanox/mlxfw/ |
H A D | mlxfw.h | 27 #define mlxfw_info(mlxfw_dev, fmt, ...) \ 28 dev_info(mlxfw_dev_dev(mlxfw_dev), MLXFW_PRFX fmt, ## __VA_ARGS__) 29 #define mlxfw_err(mlxfw_dev, fmt, ...) \ 30 dev_err(mlxfw_dev_dev(mlxfw_dev), MLXFW_PRFX fmt, ## __VA_ARGS__) 31 #define mlxfw_dbg(mlxfw_dev, fmt, ...) \ 32 dev_dbg(mlxfw_dev_dev(mlxfw_dev), MLXFW_PRFX fmt, ## __VA_ARGS__)
|