/linux-4.1.27/drivers/media/platform/vsp1/ |
H A D | vsp1_rwpf.c | 49 struct v4l2_mbus_framefmt *format; vsp1_rwpf_enum_frame_size() local 51 format = vsp1_entity_get_pad_format(&rwpf->entity, cfg, fse->pad, vsp1_rwpf_enum_frame_size() 54 if (fse->index || fse->code != format->code) vsp1_rwpf_enum_frame_size() 66 fse->min_width = format->width; vsp1_rwpf_enum_frame_size() 67 fse->max_width = format->width; vsp1_rwpf_enum_frame_size() 68 fse->min_height = format->height; vsp1_rwpf_enum_frame_size() 69 fse->max_height = format->height; vsp1_rwpf_enum_frame_size() 93 fmt->format = *vsp1_entity_get_pad_format(&rwpf->entity, cfg, fmt->pad, vsp1_rwpf_get_format() 103 struct v4l2_mbus_framefmt *format; vsp1_rwpf_set_format() local 106 /* Default to YUV if the requested format is not supported. */ vsp1_rwpf_set_format() 107 if (fmt->format.code != MEDIA_BUS_FMT_ARGB8888_1X32 && vsp1_rwpf_set_format() 108 fmt->format.code != MEDIA_BUS_FMT_AYUV8_1X32) vsp1_rwpf_set_format() 109 fmt->format.code = MEDIA_BUS_FMT_AYUV8_1X32; vsp1_rwpf_set_format() 111 format = vsp1_entity_get_pad_format(&rwpf->entity, cfg, fmt->pad, vsp1_rwpf_set_format() 115 /* The RWPF performs format conversion but can't scale, only the vsp1_rwpf_set_format() 116 * format code can be changed on the source pad. vsp1_rwpf_set_format() 118 format->code = fmt->format.code; vsp1_rwpf_set_format() 119 fmt->format = *format; vsp1_rwpf_set_format() 123 format->code = fmt->format.code; vsp1_rwpf_set_format() 124 format->width = clamp_t(unsigned int, fmt->format.width, vsp1_rwpf_set_format() 126 format->height = clamp_t(unsigned int, fmt->format.height, vsp1_rwpf_set_format() 128 format->field = V4L2_FIELD_NONE; vsp1_rwpf_set_format() 129 format->colorspace = V4L2_COLORSPACE_SRGB; vsp1_rwpf_set_format() 131 fmt->format = *format; vsp1_rwpf_set_format() 137 crop->width = fmt->format.width; vsp1_rwpf_set_format() 138 crop->height = fmt->format.height; vsp1_rwpf_set_format() 140 /* Propagate the format to the source pad. */ vsp1_rwpf_set_format() 141 format = vsp1_entity_get_pad_format(&rwpf->entity, cfg, RWPF_PAD_SOURCE, vsp1_rwpf_set_format() 143 *format = fmt->format; vsp1_rwpf_set_format() 153 struct v4l2_mbus_framefmt *format; vsp1_rwpf_get_selection() local 165 format = vsp1_entity_get_pad_format(&rwpf->entity, cfg, vsp1_rwpf_get_selection() 169 sel->r.width = format->width; vsp1_rwpf_get_selection() 170 sel->r.height = format->height; vsp1_rwpf_get_selection() 185 struct v4l2_mbus_framefmt *format; vsp1_rwpf_set_selection() local 198 format = vsp1_entity_get_pad_format(&rwpf->entity, cfg, RWPF_PAD_SINK, vsp1_rwpf_set_selection() 200 sel->r.left = min_t(unsigned int, sel->r.left, format->width - 2); vsp1_rwpf_set_selection() 201 sel->r.top = min_t(unsigned int, sel->r.top, format->height - 2); vsp1_rwpf_set_selection() 207 format->width - sel->r.left); vsp1_rwpf_set_selection() 209 format->height - sel->r.top); vsp1_rwpf_set_selection() 214 /* Propagate the format to the source pad. */ vsp1_rwpf_set_selection() 215 format = vsp1_entity_get_pad_format(&rwpf->entity, cfg, RWPF_PAD_SOURCE, vsp1_rwpf_set_selection() 217 format->width = crop->width; vsp1_rwpf_set_selection() 218 format->height = crop->height; vsp1_rwpf_set_selection()
|
H A D | vsp1_lif.c | 45 const struct v4l2_mbus_framefmt *format; lif_s_stream() local 56 format = &lif->entity.formats[LIF_PAD_SOURCE]; lif_s_stream() 58 obth = min(obth, (format->width + 1) / 2 * format->height - 4); lif_s_stream() 66 (format->code == 0 ? VI6_LIF_CTRL_CFMT : 0) | lif_s_stream() 92 struct v4l2_mbus_framefmt *format; lif_enum_mbus_code() local 94 /* The LIF can't perform format conversion, the sink format is lif_enum_mbus_code() 95 * always identical to the source format. lif_enum_mbus_code() 100 format = vsp1_entity_get_pad_format(&lif->entity, cfg, lif_enum_mbus_code() 102 code->code = format->code; lif_enum_mbus_code() 113 struct v4l2_mbus_framefmt *format; lif_enum_frame_size() local 115 format = vsp1_entity_get_pad_format(&lif->entity, cfg, LIF_PAD_SINK, lif_enum_frame_size() 118 if (fse->index || fse->code != format->code) lif_enum_frame_size() 127 fse->min_width = format->width; lif_enum_frame_size() 128 fse->max_width = format->width; lif_enum_frame_size() 129 fse->min_height = format->height; lif_enum_frame_size() 130 fse->max_height = format->height; lif_enum_frame_size() 141 fmt->format = *vsp1_entity_get_pad_format(&lif->entity, cfg, fmt->pad, lif_get_format() 151 struct v4l2_mbus_framefmt *format; lif_set_format() local 153 /* Default to YUV if the requested format is not supported. */ lif_set_format() 154 if (fmt->format.code != MEDIA_BUS_FMT_ARGB8888_1X32 && lif_set_format() 155 fmt->format.code != MEDIA_BUS_FMT_AYUV8_1X32) lif_set_format() 156 fmt->format.code = MEDIA_BUS_FMT_AYUV8_1X32; lif_set_format() 158 format = vsp1_entity_get_pad_format(&lif->entity, cfg, fmt->pad, lif_set_format() 162 /* The LIF source format is always identical to its sink lif_set_format() 163 * format. lif_set_format() 165 fmt->format = *format; lif_set_format() 169 format->code = fmt->format.code; lif_set_format() 170 format->width = clamp_t(unsigned int, fmt->format.width, lif_set_format() 172 format->height = clamp_t(unsigned int, fmt->format.height, lif_set_format() 174 format->field = V4L2_FIELD_NONE; lif_set_format() 175 format->colorspace = V4L2_COLORSPACE_SRGB; lif_set_format() 177 fmt->format = *format; lif_set_format() 179 /* Propagate the format to the source pad. */ lif_set_format() 180 format = vsp1_entity_get_pad_format(&lif->entity, cfg, LIF_PAD_SOURCE, lif_set_format() 182 *format = fmt->format; lif_set_format()
|
H A D | vsp1_lut.c | 94 struct v4l2_mbus_framefmt *format; lut_enum_mbus_code() local 102 /* The LUT can't perform format conversion, the sink format is lut_enum_mbus_code() 103 * always identical to the source format. lut_enum_mbus_code() 108 format = vsp1_entity_get_pad_format(&lut->entity, cfg, lut_enum_mbus_code() 110 code->code = format->code; lut_enum_mbus_code() 121 struct v4l2_mbus_framefmt *format; lut_enum_frame_size() local 123 format = vsp1_entity_get_pad_format(&lut->entity, cfg, lut_enum_frame_size() 126 if (fse->index || fse->code != format->code) lut_enum_frame_size() 138 fse->min_width = format->width; lut_enum_frame_size() 139 fse->max_width = format->width; lut_enum_frame_size() 140 fse->min_height = format->height; lut_enum_frame_size() 141 fse->max_height = format->height; lut_enum_frame_size() 152 fmt->format = *vsp1_entity_get_pad_format(&lut->entity, cfg, fmt->pad, lut_get_format() 162 struct v4l2_mbus_framefmt *format; lut_set_format() local 164 /* Default to YUV if the requested format is not supported. */ lut_set_format() 165 if (fmt->format.code != MEDIA_BUS_FMT_ARGB8888_1X32 && lut_set_format() 166 fmt->format.code != MEDIA_BUS_FMT_AHSV8888_1X32 && lut_set_format() 167 fmt->format.code != MEDIA_BUS_FMT_AYUV8_1X32) lut_set_format() 168 fmt->format.code = MEDIA_BUS_FMT_AYUV8_1X32; lut_set_format() 170 format = vsp1_entity_get_pad_format(&lut->entity, cfg, fmt->pad, lut_set_format() 174 /* The LUT output format can't be modified. */ lut_set_format() 175 fmt->format = *format; lut_set_format() 179 format->width = clamp_t(unsigned int, fmt->format.width, lut_set_format() 181 format->height = clamp_t(unsigned int, fmt->format.height, lut_set_format() 183 format->field = V4L2_FIELD_NONE; lut_set_format() 184 format->colorspace = V4L2_COLORSPACE_SRGB; lut_set_format() 186 fmt->format = *format; lut_set_format() 188 /* Propagate the format to the source pad. */ lut_set_format() 189 format = vsp1_entity_get_pad_format(&lut->entity, cfg, LUT_PAD_SOURCE, lut_set_format() 191 *format = fmt->format; lut_set_format()
|
H A D | vsp1_hsit.c | 80 struct v4l2_mbus_framefmt *format; hsit_enum_frame_size() local 82 format = vsp1_entity_get_pad_format(&hsit->entity, cfg, fse->pad, hsit_enum_frame_size() 85 if (fse->index || fse->code != format->code) hsit_enum_frame_size() 97 fse->min_width = format->width; hsit_enum_frame_size() 98 fse->max_width = format->width; hsit_enum_frame_size() 99 fse->min_height = format->height; hsit_enum_frame_size() 100 fse->max_height = format->height; hsit_enum_frame_size() 112 fmt->format = *vsp1_entity_get_pad_format(&hsit->entity, cfg, fmt->pad, hsit_get_format() 123 struct v4l2_mbus_framefmt *format; hsit_set_format() local 125 format = vsp1_entity_get_pad_format(&hsit->entity, cfg, fmt->pad, hsit_set_format() 129 /* The HST and HSI output format code and resolution can't be hsit_set_format() 132 fmt->format = *format; hsit_set_format() 136 format->code = hsit->inverse ? MEDIA_BUS_FMT_AHSV8888_1X32 hsit_set_format() 138 format->width = clamp_t(unsigned int, fmt->format.width, hsit_set_format() 140 format->height = clamp_t(unsigned int, fmt->format.height, hsit_set_format() 142 format->field = V4L2_FIELD_NONE; hsit_set_format() 143 format->colorspace = V4L2_COLORSPACE_SRGB; hsit_set_format() 145 fmt->format = *format; hsit_set_format() 147 /* Propagate the format to the source pad. */ hsit_set_format() 148 format = vsp1_entity_get_pad_format(&hsit->entity, cfg, HSIT_PAD_SOURCE, hsit_set_format() 150 *format = fmt->format; hsit_set_format() 151 format->code = hsit->inverse ? MEDIA_BUS_FMT_ARGB8888_1X32 hsit_set_format()
|
H A D | vsp1_sru.c | 177 struct v4l2_mbus_framefmt *format; sru_enum_mbus_code() local 185 /* The SRU can't perform format conversion, the sink format is sru_enum_mbus_code() 186 * always identical to the source format. sru_enum_mbus_code() 191 format = vsp1_entity_get_pad_format(&sru->entity, cfg, sru_enum_mbus_code() 193 code->code = format->code; sru_enum_mbus_code() 204 struct v4l2_mbus_framefmt *format; sru_enum_frame_size() local 206 format = vsp1_entity_get_pad_format(&sru->entity, cfg, sru_enum_frame_size() 209 if (fse->index || fse->code != format->code) sru_enum_frame_size() 218 fse->min_width = format->width; sru_enum_frame_size() 219 fse->min_height = format->height; sru_enum_frame_size() 220 if (format->width <= SRU_MAX_SIZE / 2 && sru_enum_frame_size() 221 format->height <= SRU_MAX_SIZE / 2) { sru_enum_frame_size() 222 fse->max_width = format->width * 2; sru_enum_frame_size() 223 fse->max_height = format->height * 2; sru_enum_frame_size() 225 fse->max_width = format->width; sru_enum_frame_size() 226 fse->max_height = format->height; sru_enum_frame_size() 238 fmt->format = *vsp1_entity_get_pad_format(&sru->entity, cfg, fmt->pad, sru_get_format() 248 struct v4l2_mbus_framefmt *format; sru_try_format() local 254 /* Default to YUV if the requested format is not supported. */ sru_try_format() 264 /* The SRU can't perform format conversion. */ sru_try_format() 265 format = vsp1_entity_get_pad_format(&sru->entity, cfg, sru_try_format() 267 fmt->code = format->code; sru_try_format() 275 input_area = format->width * format->height; sru_try_format() 282 fmt->width = format->width * 2; sru_try_format() 283 fmt->height = format->height * 2; sru_try_format() 285 fmt->width = format->width; sru_try_format() 286 fmt->height = format->height; sru_try_format() 299 struct v4l2_mbus_framefmt *format; sru_set_format() local 301 sru_try_format(sru, cfg, fmt->pad, &fmt->format, fmt->which); sru_set_format() 303 format = vsp1_entity_get_pad_format(&sru->entity, cfg, fmt->pad, sru_set_format() 305 *format = fmt->format; sru_set_format() 308 /* Propagate the format to the source pad. */ sru_set_format() 309 format = vsp1_entity_get_pad_format(&sru->entity, cfg, sru_set_format() 311 *format = fmt->format; sru_set_format() 313 sru_try_format(sru, cfg, SRU_PAD_SOURCE, format, fmt->which); sru_set_format()
|
H A D | vsp1_uds.c | 56 * @ratio: scaling ratio in U4.12 fixed-point format 89 * @ratio: scaling ratio in U4.12 fixed-point format 187 struct v4l2_mbus_framefmt *format; uds_enum_mbus_code() local 189 /* The UDS can't perform format conversion, the sink format is uds_enum_mbus_code() 190 * always identical to the source format. uds_enum_mbus_code() 195 format = vsp1_entity_get_pad_format(&uds->entity, cfg, uds_enum_mbus_code() 197 code->code = format->code; uds_enum_mbus_code() 208 struct v4l2_mbus_framefmt *format; uds_enum_frame_size() local 210 format = vsp1_entity_get_pad_format(&uds->entity, cfg, uds_enum_frame_size() 213 if (fse->index || fse->code != format->code) uds_enum_frame_size() 222 uds_output_limits(format->width, &fse->min_width, uds_enum_frame_size() 224 uds_output_limits(format->height, &fse->min_height, uds_enum_frame_size() 236 fmt->format = *vsp1_entity_get_pad_format(&uds->entity, cfg, fmt->pad, uds_get_format() 246 struct v4l2_mbus_framefmt *format; uds_try_format() local 252 /* Default to YUV if the requested format is not supported. */ uds_try_format() 262 /* The UDS scales but can't perform format conversion. */ uds_try_format() 263 format = vsp1_entity_get_pad_format(&uds->entity, cfg, uds_try_format() 265 fmt->code = format->code; uds_try_format() 267 uds_output_limits(format->width, &minimum, &maximum); uds_try_format() 269 uds_output_limits(format->height, &minimum, &maximum); uds_try_format() 282 struct v4l2_mbus_framefmt *format; uds_set_format() local 284 uds_try_format(uds, cfg, fmt->pad, &fmt->format, fmt->which); uds_set_format() 286 format = vsp1_entity_get_pad_format(&uds->entity, cfg, fmt->pad, uds_set_format() 288 *format = fmt->format; uds_set_format() 291 /* Propagate the format to the source pad. */ uds_set_format() 292 format = vsp1_entity_get_pad_format(&uds->entity, cfg, uds_set_format() 294 *format = fmt->format; uds_set_format() 296 uds_try_format(uds, cfg, UDS_PAD_SOURCE, format, fmt->which); uds_set_format()
|
H A D | vsp1_bru.c | 74 struct v4l2_mbus_framefmt *format; bru_s_stream() local 86 format = &bru->entity.formats[BRU_PAD_SOURCE]; bru_s_stream() 95 * format at the pipeline output is premultiplied. bru_s_stream() 97 flags = pipe->output ? pipe->output->video.format.flags : 0; bru_s_stream() 104 (format->width << VI6_BRU_VIRRPF_SIZE_HSIZE_SHIFT) | bru_s_stream() 105 (format->height << VI6_BRU_VIRRPF_SIZE_VSIZE_SHIFT)); bru_s_stream() 128 premultiplied = bru->inputs[i].rpf->video.format.flags bru_s_stream() 180 * The BRU can't perform format conversion, all sink and source formats must be 181 * identical. We pick the format on the first sink pad (pad 0) and propagate it 194 struct v4l2_mbus_framefmt *format; bru_enum_mbus_code() local 205 format = vsp1_entity_get_pad_format(&bru->entity, cfg, bru_enum_mbus_code() 207 code->code = format->code; bru_enum_mbus_code() 251 fmt->format = *vsp1_entity_get_pad_format(&bru->entity, cfg, fmt->pad, bru_get_format() 261 struct v4l2_mbus_framefmt *format; bru_try_format() local 265 /* Default to YUV if the requested format is not supported. */ bru_try_format() 272 /* The BRU can't perform format conversion. */ bru_try_format() 273 format = vsp1_entity_get_pad_format(&bru->entity, cfg, bru_try_format() 275 fmt->code = format->code; bru_try_format() 289 struct v4l2_mbus_framefmt *format; bru_set_format() local 291 bru_try_format(bru, cfg, fmt->pad, &fmt->format, fmt->which); bru_set_format() 293 format = vsp1_entity_get_pad_format(&bru->entity, cfg, fmt->pad, bru_set_format() 295 *format = fmt->format; bru_set_format() 304 compose->width = format->width; bru_set_format() 305 compose->height = format->height; bru_set_format() 308 /* Propagate the format code to all pads */ bru_set_format() 313 format = vsp1_entity_get_pad_format(&bru->entity, cfg, bru_set_format() 315 format->code = fmt->format.code; bru_set_format() 353 struct v4l2_mbus_framefmt *format; bru_set_selection() local 365 format = vsp1_entity_get_pad_format(&bru->entity, cfg, BRU_PAD_SOURCE, bru_set_selection() 367 sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1); bru_set_selection() 368 sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1); bru_set_selection() 371 * to the sink format size. bru_set_selection() 373 format = vsp1_entity_get_pad_format(&bru->entity, cfg, sel->pad, bru_set_selection() 375 sel->r.width = format->width; bru_set_selection() 376 sel->r.height = format->height; bru_set_selection()
|
H A D | vsp1_video.c | 136 * vsp1_get_format_info - Retrieve format information for a 4CC 137 * @fourcc: the format 4CC 139 * Return a pointer to the format information structure corresponding to the 140 * given V4L2 format 4CC, or NULL if no corresponding format can be found. 188 if (video->fmtinfo->mbus != fmt.format.code || vsp1_video_verify_format() 189 video->format.height != fmt.format.height || vsp1_video_verify_format() 190 video->format.width != fmt.format.width) vsp1_video_verify_format() 213 * equivalent. This selects the format older userspace applications want __vsp1_video_try_format() 214 * while still exposing the new format. __vsp1_video_try_format() 223 /* Retrieve format information and select the default format if the __vsp1_video_try_format() 224 * requested format isn't supported. __vsp1_video_try_format() 279 const struct v4l2_pix_format_mplane *format, vsp1_video_format_adjust() 284 *adjust = *format; vsp1_video_format_adjust() 287 if (format->width != adjust->width || vsp1_video_format_adjust() 288 format->height != adjust->height || vsp1_video_format_adjust() 289 format->pixelformat != adjust->pixelformat || vsp1_video_format_adjust() 290 format->num_planes != adjust->num_planes) vsp1_video_format_adjust() 293 for (i = 0; i < format->num_planes; ++i) { vsp1_video_format_adjust() 294 if (format->plane_fmt[i].bytesperline != vsp1_video_format_adjust() 300 format->plane_fmt[i].sizeimage); vsp1_video_format_adjust() 716 const struct v4l2_pix_format_mplane *format; vsp1_video_queue_setup() local 721 /* Make sure the format is valid and adjust the sizeimage field vsp1_video_queue_setup() 727 format = &pix_mp; vsp1_video_queue_setup() 729 format = &video->format; vsp1_video_queue_setup() 732 *nplanes = format->num_planes; vsp1_video_queue_setup() 734 for (i = 0; i < format->num_planes; ++i) { vsp1_video_queue_setup() 735 sizes[i] = format->plane_fmt[i].sizeimage; vsp1_video_queue_setup() 746 const struct v4l2_pix_format_mplane *format = &video->format; vsp1_video_buffer_prepare() local 749 if (vb->num_planes < format->num_planes) vsp1_video_buffer_prepare() 756 if (buf->length[i] < format->plane_fmt[i].sizeimage) vsp1_video_buffer_prepare() 923 vsp1_video_get_format(struct file *file, void *fh, struct v4l2_format *format) vsp1_video_get_format() argument 928 if (format->type != video->queue.type) vsp1_video_get_format() 932 format->fmt.pix_mp = video->format; vsp1_video_get_format() 939 vsp1_video_try_format(struct file *file, void *fh, struct v4l2_format *format) vsp1_video_try_format() argument 944 if (format->type != video->queue.type) vsp1_video_try_format() 947 return __vsp1_video_try_format(video, &format->fmt.pix_mp, NULL); vsp1_video_try_format() 951 vsp1_video_set_format(struct file *file, void *fh, struct v4l2_format *format) vsp1_video_set_format() argument 958 if (format->type != video->queue.type) vsp1_video_set_format() 961 ret = __vsp1_video_try_format(video, &format->fmt.pix_mp, &info); vsp1_video_set_format() 972 video->format = format->fmt.pix_mp; vsp1_video_set_format() 1006 /* Verify that the configured format matches the output of the connected vsp1_video_streamon() 1149 /* ... and the format ... */ vsp1_video_init() 1151 video->format.pixelformat = video->fmtinfo->fourcc; vsp1_video_init() 1152 video->format.colorspace = V4L2_COLORSPACE_SRGB; vsp1_video_init() 1153 video->format.field = V4L2_FIELD_NONE; vsp1_video_init() 1154 video->format.width = VSP1_VIDEO_DEF_WIDTH; vsp1_video_init() 1155 video->format.height = VSP1_VIDEO_DEF_HEIGHT; vsp1_video_init() 1156 video->format.num_planes = 1; vsp1_video_init() 1157 video->format.plane_fmt[0].bytesperline = vsp1_video_init() 1158 video->format.width * video->fmtinfo->bpp[0] / 8; vsp1_video_init() 1159 video->format.plane_fmt[0].sizeimage = vsp1_video_init() 1160 video->format.plane_fmt[0].bytesperline * video->format.height; vsp1_video_init() 278 vsp1_video_format_adjust(struct vsp1_video *video, const struct v4l2_pix_format_mplane *format, struct v4l2_pix_format_mplane *adjust) vsp1_video_format_adjust() argument
|
H A D | vsp1_video.h | 26 * struct vsp1_format_info - VSP1 video format description 27 * @mbus: media bus format code 28 * @fourcc: V4L2 pixel format FCC identifier 31 * @hwfmt: VSP1 hardware format 125 struct v4l2_pix_format_mplane format; member in struct:vsp1_video
|
H A D | vsp1_entity.c | 91 struct v4l2_subdev_format format; vsp1_entity_init_formats() local 95 memset(&format, 0, sizeof(format)); vsp1_entity_init_formats() 97 format.pad = pad; vsp1_entity_init_formats() 98 format.which = cfg ? V4L2_SUBDEV_FORMAT_TRY vsp1_entity_init_formats() 101 v4l2_subdev_call(subdev, pad, set_fmt, cfg, &format); vsp1_entity_init_formats()
|
/linux-4.1.27/tools/include/asm/ |
H A D | bug.h | 8 #define WARN(condition, format...) ({ \ 11 __WARN_printf(format); \ 15 #define WARN_ONCE(condition, format...) ({ \ 20 if (WARN(!__warned, format)) \
|
/linux-4.1.27/tools/perf/util/ |
H A D | pmu.y | 2 %parse-param {struct list_head *format} 37 format: label 38 format format_term 45 ABORT_ON(perf_pmu__new_format(format, name, 52 ABORT_ON(perf_pmu__new_format(format, name, 59 ABORT_ON(perf_pmu__new_format(format, name,
|
H A D | debug.h | 43 int dump_printf(const char *fmt, ...) __attribute__((format(printf, 1, 2))); 46 int ui__error(const char *format, ...) __attribute__((format(printf, 1, 2))); 47 int ui__warning(const char *format, ...) __attribute__((format(printf, 1, 2))); 51 int eprintf(int level, int var, const char *fmt, ...) __attribute__((format(printf, 3, 4))); 52 int eprintf_time(int level, int var, u64 t, const char *fmt, ...) __attribute__((format(printf, 4, 5)));
|
H A D | pmu.c | 68 * Reading/parsing the default pmu format definition, which should be 70 * /sys/bus/event_source/devices/<dev>/format as sysfs group attributes. 72 static int pmu_format(const char *name, struct list_head *format) pmu_format() argument 82 "%s" EVENT_SOURCE_DEVICE_PATH "%s/format", sysfs, name); pmu_format() 85 return 0; /* no error if format does not exist */ pmu_format() 87 if (perf_pmu__format_parse(path, format)) pmu_format() 442 LIST_HEAD(format); pmu_lookup() 448 * type value and format definitions. Load both right pmu_lookup() 451 if (pmu_format(name, &format)) pmu_lookup() 466 INIT_LIST_HEAD(&pmu->format); pmu_lookup() 468 list_splice(&format, &pmu->format); pmu_lookup() 512 * the pmu format definitions. perf_pmu__find() 524 struct perf_pmu_format *format; pmu_find_format() local 526 list_for_each_entry(format, formats, list) pmu_find_format() 527 if (!strcmp(format->name, name)) pmu_find_format() 528 return format; pmu_find_format() 534 * Sets value based on the format definition (format parameter) 537 static void pmu_format_value(unsigned long *format, __u64 value, __u64 *v, pmu_format_value() argument 544 if (!test_bit(fbit, format)) pmu_format_value() 557 * - We have a term like "base-or-format-term=param-term", 593 struct perf_pmu_format *format; pmu_config_term() local 611 format = pmu_find_format(formats, term->config); pmu_config_term() 612 if (!format) { pmu_config_term() 618 switch (format->value) { pmu_config_term() 651 pmu_format_value(format->bits, val, vp, zero); pmu_config_term() 673 * 2) pmu format definitions - specified by pmu parameter 681 return perf_pmu__config_terms(&pmu->format, attr, head_terms, zero); perf_pmu__config() 696 if (pmu_find_format(&pmu->format, term->config)) pmu_find_alias() 797 struct perf_pmu_format *format; perf_pmu__new_format() local 799 format = zalloc(sizeof(*format)); perf_pmu__new_format() 800 if (!format) perf_pmu__new_format() 803 format->name = strdup(name); perf_pmu__new_format() 804 format->value = config; perf_pmu__new_format() 805 memcpy(format->bits, bits, sizeof(format->bits)); perf_pmu__new_format() 807 list_add_tail(&format->list, list); perf_pmu__new_format()
|
H A D | hist.h | 215 #define perf_hpp__for_each_format(format) \ 216 list_for_each_entry(format, &perf_hpp__list, list) 218 #define perf_hpp__for_each_format_safe(format, tmp) \ 219 list_for_each_entry_safe(format, tmp, &perf_hpp__list, list) 221 #define perf_hpp__for_each_sort_list(format) \ 222 list_for_each_entry(format, &perf_hpp__sort_list, sort_list) 224 #define perf_hpp__for_each_sort_list_safe(format, tmp) \ 225 list_for_each_entry_safe(format, tmp, &perf_hpp__sort_list, sort_list) 244 void perf_hpp__column_register(struct perf_hpp_fmt *format); 245 void perf_hpp__column_unregister(struct perf_hpp_fmt *format); 250 void perf_hpp__register_sort_field(struct perf_hpp_fmt *format); 255 bool perf_hpp__is_sort_entry(struct perf_hpp_fmt *format); 258 static inline bool perf_hpp__should_skip(struct perf_hpp_fmt *format) perf_hpp__should_skip() argument 260 return format->elide; perf_hpp__should_skip()
|
H A D | cache.h | 69 extern char *mkpath(const char *fmt, ...) __attribute__((format (printf, 1, 2))); 70 extern char *perf_path(const char *fmt, ...) __attribute__((format (printf, 1, 2))); 73 __attribute__((format (printf, 1, 2)));
|
/linux-4.1.27/tools/build/feature/ |
H A D | test-libaudit.c | 3 extern int printf(const char *format, ...);
|
H A D | test-cplus-demangle.c | 1 extern int printf(const char *format, ...);
|
H A D | test-libbfd.c | 3 extern int printf(const char *format, ...);
|
/linux-4.1.27/drivers/media/platform/xilinx/ |
H A D | xilinx-vip.c | 49 * xvip_get_format_by_code - Retrieve format information for a media bus code 50 * @code: the format media bus code 52 * Return: a pointer to the format information structure corresponding to the 53 * given V4L2 media bus format @code, or ERR_PTR if no corresponding format can 61 const struct xvip_video_format *format = &xvip_video_formats[i]; xvip_get_format_by_code() local 63 if (format->code == code) xvip_get_format_by_code() 64 return format; xvip_get_format_by_code() 72 * xvip_get_format_by_fourcc - Retrieve format information for a 4CC 73 * @fourcc: the format 4CC 75 * Return: a pointer to the format information structure corresponding to the 76 * given V4L2 format @fourcc, or ERR_PTR if no corresponding format can be 84 const struct xvip_video_format *format = &xvip_video_formats[i]; xvip_get_format_by_fourcc() local 86 if (format->fourcc == fourcc) xvip_get_format_by_fourcc() 87 return format; xvip_get_format_by_fourcc() 95 * xvip_of_get_format - Parse a device tree node and return format information 98 * Read the xlnx,video-format, xlnx,video-width and xlnx,cfa-pattern properties 100 * format information. 102 * Return: a pointer to the format information structure corresponding to the 103 * format name and width, or ERR_PTR if no corresponding format can be found. 113 ret = of_property_read_u32(node, "xlnx,video-format", &vf_code); xvip_of_get_format() 125 const struct xvip_video_format *format = &xvip_video_formats[i]; xvip_of_get_format() local 127 if (format->vf_code != vf_code || format->width != width) xvip_of_get_format() 131 strcmp(pattern, format->pattern)) xvip_of_get_format() 134 return format; xvip_of_get_format() 142 * xvip_set_format_size - Set the media bus frame format size 143 * @format: V4L2 frame format on media bus 144 * @fmt: media bus format 146 * Set the media bus frame format size. The width / height from the subdevice 147 * format are set to the given media bus format. The new format size is stored 148 * in @format. The width and height are clamped using default min / max values. 150 void xvip_set_format_size(struct v4l2_mbus_framefmt *format, xvip_set_format_size() argument 153 format->width = clamp_t(unsigned int, fmt->format.width, xvip_set_format_size() 155 format->height = clamp_t(unsigned int, fmt->format.height, xvip_set_format_size() 238 * xvip_enum_mbus_code - Enumerate the media format code 244 * pad format code. This function only works for subdevices with fixed format 245 * on all pads. Subdevices with multiple format should have their own 248 * Return: 0 if the media bus code is found, or -EINVAL if the format index 255 struct v4l2_mbus_framefmt *format; xvip_enum_mbus_code() local 266 format = v4l2_subdev_get_try_format(subdev, cfg, code->pad); xvip_enum_mbus_code() 268 code->code = format->code; xvip_enum_mbus_code() 282 * pad, and that the format on the source pad is always identical to the 283 * format on the sink pad. Entities with different requirements need to 293 struct v4l2_mbus_framefmt *format; xvip_enum_frame_size() local 301 format = v4l2_subdev_get_try_format(subdev, cfg, fse->pad); xvip_enum_frame_size() 303 if (fse->index || fse->code != format->code) xvip_enum_frame_size() 315 fse->min_width = format->width; xvip_enum_frame_size() 316 fse->max_width = format->width; xvip_enum_frame_size() 317 fse->min_height = format->height; xvip_enum_frame_size() 318 fse->max_height = format->height; xvip_enum_frame_size()
|
H A D | xilinx-dma.c | 77 if (dma->fmtinfo->code != fmt.format.code || xvip_dma_verify_format() 78 dma->format.height != fmt.format.height || xvip_dma_verify_format() 79 dma->format.width != fmt.format.width || xvip_dma_verify_format() 80 dma->format.colorspace != fmt.format.colorspace) xvip_dma_verify_format() 307 vb2_set_plane_payload(&buf->buf, 0, dma->format.sizeimage); xvip_dma_complete() 319 if (fmt && fmt->fmt.pix.sizeimage < dma->format.sizeimage) xvip_dma_queue_setup() 324 sizes[0] = fmt ? fmt->fmt.pix.sizeimage : dma->format.sizeimage; xvip_dma_queue_setup() 363 dma->sgl[0].size = dma->format.width * dma->fmtinfo->bpp; xvip_dma_buffer_queue() 364 dma->sgl[0].icg = dma->format.bytesperline - dma->sgl[0].size; xvip_dma_buffer_queue() 365 dma->xt.numf = dma->format.height; xvip_dma_buffer_queue() 409 /* Verify that the configured format matches the output of the xvip_dma_start_streaming() 507 * with correct formats, and it results in frames in wrong format. Whether this 520 f->pixelformat = dma->format.pixelformat; xvip_dma_enum_format() 528 xvip_dma_get_format(struct file *file, void *fh, struct v4l2_format *format) xvip_dma_get_format() argument 533 format->fmt.pix = dma->format; xvip_dma_get_format() 551 /* Retrieve format information and select the default format if the __xvip_dma_try_format() 552 * requested format isn't supported. __xvip_dma_try_format() 590 xvip_dma_try_format(struct file *file, void *fh, struct v4l2_format *format) xvip_dma_try_format() argument 595 __xvip_dma_try_format(dma, &format->fmt.pix, NULL); xvip_dma_try_format() 600 xvip_dma_set_format(struct file *file, void *fh, struct v4l2_format *format) xvip_dma_set_format() argument 606 __xvip_dma_try_format(dma, &format->fmt.pix, &info); xvip_dma_set_format() 611 dma->format = format->fmt.pix; xvip_dma_set_format() 667 dma->format.pixelformat = dma->fmtinfo->fourcc; xvip_dma_init() 668 dma->format.colorspace = V4L2_COLORSPACE_SRGB; xvip_dma_init() 669 dma->format.field = V4L2_FIELD_NONE; xvip_dma_init() 670 dma->format.width = XVIP_DMA_DEF_WIDTH; xvip_dma_init() 671 dma->format.height = XVIP_DMA_DEF_HEIGHT; xvip_dma_init() 672 dma->format.bytesperline = dma->format.width * dma->fmtinfo->bpp; xvip_dma_init() 673 dma->format.sizeimage = dma->format.bytesperline * dma->format.height; xvip_dma_init()
|
H A D | xilinx-tpg.c | 79 * @formats: active V4L2 media bus format for each pad 80 * @default_format: default V4L2 media bus format 81 * @vip_format: format information corresponding to the active format 82 * @bayer: boolean flag if TPG is set to any bayer format 276 fmt->format = *__xtpg_get_pad_format(xtpg, cfg, fmt->pad, fmt->which); xtpg_get_format() 291 /* In two pads mode the source pad format is always identical to the xtpg_set_format() 292 * sink pad format. xtpg_set_format() 295 fmt->format = *__format; xtpg_set_format() 301 bayer_phase = xtpg_get_bayer_phase(fmt->format.code); xtpg_set_format() 303 __format->code = fmt->format.code; xtpg_set_format() 308 fmt->format = *__format; xtpg_set_format() 310 /* Propagate the format to the source pad. */ xtpg_set_format() 313 *__format = fmt->format; xtpg_set_format() 327 struct v4l2_mbus_framefmt *format; xtpg_enum_frame_size() local 329 format = v4l2_subdev_get_try_format(subdev, cfg, fse->pad); xtpg_enum_frame_size() 331 if (fse->index || fse->code != format->code) xtpg_enum_frame_size() 343 fse->min_width = format->width; xtpg_enum_frame_size() 344 fse->max_width = format->width; xtpg_enum_frame_size() 345 fse->min_height = format->height; xtpg_enum_frame_size() 346 fse->max_height = format->height; xtpg_enum_frame_size() 355 struct v4l2_mbus_framefmt *format; xtpg_open() local 357 format = v4l2_subdev_get_try_format(subdev, fh->pad, 0); xtpg_open() 358 *format = xtpg->default_format; xtpg_open() 361 format = v4l2_subdev_get_try_format(subdev, fh->pad, 1); xtpg_open() 362 *format = xtpg->default_format; xtpg_open() 725 const struct xvip_video_format *format; for_each_child_of_node() local 731 format = xvip_of_get_format(port); for_each_child_of_node() 732 if (IS_ERR(format)) { for_each_child_of_node() 733 dev_err(dev, "invalid format in DT"); for_each_child_of_node() 734 return PTR_ERR(format); for_each_child_of_node() 737 /* Get and check the format description */ for_each_child_of_node() 739 xtpg->vip_format = format; for_each_child_of_node() 740 } else if (xtpg->vip_format != format) { for_each_child_of_node() 741 dev_err(dev, "in/out format mismatch in DT"); for_each_child_of_node() 815 /* Initialize the default format */ xtpg_probe()
|
H A D | xilinx-dma.h | 64 * @lock: protects the @format, @fmtinfo and @queue fields 65 * @format: active V4L2 pixel format 66 * @fmtinfo: format information corresponding to the active @format 87 struct v4l2_pix_format format; member in struct:xvip_dma
|
H A D | xilinx-vip.h | 107 * struct xvip_video_format - Xilinx Video IP video format description 108 * @vf_code: AXI4 video format code 109 * @width: AXI4 format width in bits per component 111 * @code: media bus format code 113 * @fourcc: V4L2 pixel format FCC identifier 114 * @description: format description, suitable for userspace 129 void xvip_set_format_size(struct v4l2_mbus_framefmt *format, 194 const struct v4l2_mbus_framefmt *format) xvip_set_frame_size() 197 (format->height << XVIP_ACTIVE_VSIZE_SHIFT) | xvip_set_frame_size() 198 (format->width << XVIP_ACTIVE_HSIZE_SHIFT)); xvip_set_frame_size() 202 struct v4l2_mbus_framefmt *format) xvip_get_frame_size() 207 format->width = (reg & XVIP_ACTIVE_HSIZE_MASK) >> xvip_get_frame_size() 209 format->height = (reg & XVIP_ACTIVE_VSIZE_MASK) >> xvip_get_frame_size() 193 xvip_set_frame_size(struct xvip_device *xvip, const struct v4l2_mbus_framefmt *format) xvip_set_frame_size() argument 201 xvip_get_frame_size(struct xvip_device *xvip, struct v4l2_mbus_framefmt *format) xvip_get_frame_size() argument
|
/linux-4.1.27/sound/core/ |
H A D | pcm_misc.c | 233 * snd_pcm_format_signed - Check the PCM format is signed linear 234 * @format: the format to check 236 * Return: 1 if the given PCM format is signed linear, 0 if unsigned 239 int snd_pcm_format_signed(snd_pcm_format_t format) snd_pcm_format_signed() argument 242 if ((INT)format < 0 || (INT)format > (INT)SNDRV_PCM_FORMAT_LAST) snd_pcm_format_signed() 244 if ((val = pcm_formats[(INT)format].signd) < 0) snd_pcm_format_signed() 252 * snd_pcm_format_unsigned - Check the PCM format is unsigned linear 253 * @format: the format to check 255 * Return: 1 if the given PCM format is unsigned linear, 0 if signed 258 int snd_pcm_format_unsigned(snd_pcm_format_t format) snd_pcm_format_unsigned() argument 262 val = snd_pcm_format_signed(format); snd_pcm_format_unsigned() 271 * snd_pcm_format_linear - Check the PCM format is linear 272 * @format: the format to check 274 * Return: 1 if the given PCM format is linear, 0 if not. 276 int snd_pcm_format_linear(snd_pcm_format_t format) snd_pcm_format_linear() argument 278 return snd_pcm_format_signed(format) >= 0; snd_pcm_format_linear() 284 * snd_pcm_format_little_endian - Check the PCM format is little-endian 285 * @format: the format to check 287 * Return: 1 if the given PCM format is little-endian, 0 if 290 int snd_pcm_format_little_endian(snd_pcm_format_t format) snd_pcm_format_little_endian() argument 293 if ((INT)format < 0 || (INT)format > (INT)SNDRV_PCM_FORMAT_LAST) snd_pcm_format_little_endian() 295 if ((val = pcm_formats[(INT)format].le) < 0) snd_pcm_format_little_endian() 303 * snd_pcm_format_big_endian - Check the PCM format is big-endian 304 * @format: the format to check 306 * Return: 1 if the given PCM format is big-endian, 0 if 309 int snd_pcm_format_big_endian(snd_pcm_format_t format) snd_pcm_format_big_endian() argument 313 val = snd_pcm_format_little_endian(format); snd_pcm_format_big_endian() 322 * snd_pcm_format_width - return the bit-width of the format 323 * @format: the format to check 325 * Return: The bit-width of the format, or a negative error code 326 * if unknown format. 328 int snd_pcm_format_width(snd_pcm_format_t format) snd_pcm_format_width() argument 331 if ((INT)format < 0 || (INT)format > (INT)SNDRV_PCM_FORMAT_LAST) snd_pcm_format_width() 333 if ((val = pcm_formats[(INT)format].width) == 0) snd_pcm_format_width() 341 * snd_pcm_format_physical_width - return the physical bit-width of the format 342 * @format: the format to check 344 * Return: The physical bit-width of the format, or a negative error code 345 * if unknown format. 347 int snd_pcm_format_physical_width(snd_pcm_format_t format) snd_pcm_format_physical_width() argument 350 if ((INT)format < 0 || (INT)format > (INT)SNDRV_PCM_FORMAT_LAST) snd_pcm_format_physical_width() 352 if ((val = pcm_formats[(INT)format].phys) == 0) snd_pcm_format_physical_width() 360 * snd_pcm_format_size - return the byte size of samples on the given format 361 * @format: the format to check 364 * Return: The byte size of the given samples for the format, or a 365 * negative error code if unknown format. 367 ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples) snd_pcm_format_size() argument 369 int phys_width = snd_pcm_format_physical_width(format); snd_pcm_format_size() 379 * @format: the format to check 381 * Return: The format pattern to fill or %NULL if error. 383 const unsigned char *snd_pcm_format_silence_64(snd_pcm_format_t format) snd_pcm_format_silence_64() argument 385 if ((INT)format < 0 || (INT)format > (INT)SNDRV_PCM_FORMAT_LAST) snd_pcm_format_silence_64() 387 if (! pcm_formats[(INT)format].phys) snd_pcm_format_silence_64() 389 return pcm_formats[(INT)format].silence; snd_pcm_format_silence_64() 396 * @format: the PCM format 404 int snd_pcm_format_set_silence(snd_pcm_format_t format, void *data, unsigned int samples) snd_pcm_format_set_silence() argument 409 if ((INT)format < 0 || (INT)format > (INT)SNDRV_PCM_FORMAT_LAST) snd_pcm_format_set_silence() 413 width = pcm_formats[(INT)format].phys; /* physical width */ snd_pcm_format_set_silence() 414 pat = pcm_formats[(INT)format].silence; snd_pcm_format_set_silence() 418 if (pcm_formats[(INT)format].signd == 1 || width <= 8) { snd_pcm_format_set_silence()
|
H A D | misc.c | 67 const char *format, ...) __snd_printk() 81 va_start(args, format); __snd_printk() 83 vaf.fmt = format; __snd_printk() 86 kern_level = printk_get_level(format); __snd_printk() 88 const char *end_of_header = printk_skip_level(format); __snd_printk() 89 memcpy(verbose_fmt, format, end_of_header - format); __snd_printk() 96 vprintk(format, args); __snd_printk() 66 __snd_printk(unsigned int level, const char *path, int line, const char *format, ...) __snd_printk() argument
|
/linux-4.1.27/tools/perf/ui/ |
H A D | util.c | 8 static int perf_stdio__error(const char *format, va_list args) perf_stdio__error() argument 11 vfprintf(stderr, format, args); perf_stdio__error() 15 static int perf_stdio__warning(const char *format, va_list args) perf_stdio__warning() argument 18 vfprintf(stderr, format, args); perf_stdio__warning() 31 int ui__error(const char *format, ...) ui__error() argument 36 va_start(args, format); ui__error() 37 ret = perf_eops->error(format, args); ui__error() 43 int ui__warning(const char *format, ...) ui__warning() argument 48 va_start(args, format); ui__warning() 49 ret = perf_eops->warning(format, args); ui__warning()
|
H A D | util.h | 14 int (*error)(const char *format, va_list args); 15 int (*warning)(const char *format, va_list args);
|
/linux-4.1.27/tools/virtio/linux/ |
H A D | kernel.h | 39 #define __printf(a,b) __attribute__((format(printf,a,b))) 90 #define pr_err(format, ...) fprintf (stderr, format, ## __VA_ARGS__) 92 #define pr_debug(format, ...) fprintf (stderr, format, ## __VA_ARGS__) 94 #define pr_debug(format, ...) do {} while (0) 96 #define dev_err(dev, format, ...) fprintf (stderr, format, ## __VA_ARGS__) 97 #define dev_warn(dev, format, ...) fprintf (stderr, format, ## __VA_ARGS__)
|
/linux-4.1.27/tools/perf/tests/ |
H A D | pmu.c | 6 /* Simulated format definitions. */ 81 * Prepare format directory data, exported by kernel 82 * at /sys/bus/event_source/devices/<dev>/format. 89 snprintf(dir, PATH_MAX, "/tmp/perf-pmu-test-format-XXXXXX"); test_format_dir_get() 95 struct test_format *format = &test_formats[i]; test_format_dir_get() local 98 snprintf(name, PATH_MAX, "%s/%s", dir, format->name); test_format_dir_get() 104 if (1 != fwrite(format->value, strlen(format->value), 1, file)) test_format_dir_get() 113 /* Cleanup format directory. */ test_format_dir_put() 138 char *format = test_format_dir_get(); test__pmu() local 143 if (!format) test__pmu() 151 ret = perf_pmu__format_parse(format, &formats); test__pmu() 171 test_format_dir_put(format); test__pmu()
|
/linux-4.1.27/net/netfilter/ |
H A D | nf_internals.h | 9 #define NFDEBUG(format, args...) printk(KERN_DEBUG format , ## args) 11 #define NFDEBUG(format, args...)
|
/linux-4.1.27/sound/usb/ |
H A D | format.h | 5 struct audioformat *fp, unsigned int format,
|
H A D | format.c | 33 #include "format.h" 36 * parse the audio format type I descriptor 37 * and returns the corresponding pcm format 41 * @format: the format tag (wFormatTag) 42 * @fmt: the format type descriptor 46 unsigned int format, void *_fmt) parse_audio_format_i_type() 57 format = 1 << format; parse_audio_format_i_type() 66 if (format & UAC2_FORMAT_TYPE_I_RAW_DATA) parse_audio_format_i_type() 69 format <<= 1; parse_audio_format_i_type() 75 (format == 0 || format == (1 << UAC_FORMAT_TYPE_I_UNDEFINED))) { parse_audio_format_i_type() 77 usb_audio_info(chip, "%u:%d : format type 0 is detected, processed as PCM\n", parse_audio_format_i_type() 79 format = 1 << UAC_FORMAT_TYPE_I_PCM; parse_audio_format_i_type() 81 if (format & (1 << UAC_FORMAT_TYPE_I_PCM)) { parse_audio_format_i_type() 93 /* check the format byte size */ parse_audio_format_i_type() 121 if (format & (1 << UAC_FORMAT_TYPE_I_PCM8)) { parse_audio_format_i_type() 122 /* Dallas DS4201 workaround: it advertises U8 format, but really parse_audio_format_i_type() 129 if (format & (1 << UAC_FORMAT_TYPE_I_IEEE_FLOAT)) { parse_audio_format_i_type() 132 if (format & (1 << UAC_FORMAT_TYPE_I_ALAW)) { parse_audio_format_i_type() 135 if (format & (1 << UAC_FORMAT_TYPE_I_MULAW)) { parse_audio_format_i_type() 138 if (format & ~0x3f) { parse_audio_format_i_type() 140 "%u:%d : unsupported format bits %#x\n", parse_audio_format_i_type() 141 fp->iface, fp->altsetting, format); parse_audio_format_i_type() 151 * parse the format descriptor and stores the possible sample rates 156 * @fmt: the format descriptor 213 hwc_debug("All rates were zero. Skipping format!\n"); parse_audio_format_rates_v1() 285 * parse the format descriptor and stores the possible sample rates 370 * parse the format type I and III descriptors 373 struct audioformat *fp, unsigned int format, parse_audio_format_i() 380 /* FIXME: the format type is really IECxxx parse_audio_format_i() 381 * but we give normal PCM format to get the existing parse_audio_format_i() 398 fp->formats = parse_audio_format_i_type(chip, fp, format, fmt); parse_audio_format_i() 431 * parse the format type II descriptor 435 int format, void *_fmt) parse_audio_format_ii() 439 switch (format) { parse_audio_format_ii() 441 /* FIXME: there is no AC3 format defined yet */ parse_audio_format_ii() 450 "%u:%d : unknown format tag %#x is detected. processed as MPEG.\n", parse_audio_format_ii() 451 fp->iface, fp->altsetting, format); parse_audio_format_ii() 464 usb_audio_info(chip, "found format II with max.bitrate = %d, frame size=%d\n", brate, framesize); parse_audio_format_ii() 473 usb_audio_info(chip, "found format II with max.bitrate = %d, frame size=%d\n", brate, framesize); parse_audio_format_ii() 484 struct audioformat *fp, unsigned int format, snd_usb_parse_audio_format() 493 err = parse_audio_format_i(chip, fp, format, fmt); snd_usb_parse_audio_format() 496 err = parse_audio_format_ii(chip, fp, format, fmt); snd_usb_parse_audio_format() 500 "%u:%d : format type %d is not supported yet\n", snd_usb_parse_audio_format() 44 parse_audio_format_i_type(struct snd_usb_audio *chip, struct audioformat *fp, unsigned int format, void *_fmt) parse_audio_format_i_type() argument 372 parse_audio_format_i(struct snd_usb_audio *chip, struct audioformat *fp, unsigned int format, struct uac_format_type_i_continuous_descriptor *fmt) parse_audio_format_i() argument 433 parse_audio_format_ii(struct snd_usb_audio *chip, struct audioformat *fp, int format, void *_fmt) parse_audio_format_ii() argument 483 snd_usb_parse_audio_format(struct snd_usb_audio *chip, struct audioformat *fp, unsigned int format, struct uac_format_type_i_continuous_descriptor *fmt, int stream) snd_usb_parse_audio_format() argument
|
H A D | Makefile | 8 format.o \
|
H A D | card.h | 13 u64 formats; /* ALSA format bits */ 15 unsigned int fmt_type; /* USB audio format type (1-3) */ 83 unsigned int freqn; /* nominal sampling rate in fs/fps in Q16.16 format */ 84 unsigned int freqm; /* momentary sampling rate in fs/fps in Q16.16 format */ 116 snd_pcm_format_t pcm_format; /* current audio format (for hw_params callback) */ 123 unsigned int altset_idx; /* USB data format: index of alternate setting */ 125 unsigned int fmt_type; /* USB audio format type (1-3) */ 142 u64 formats; /* format bitmasks (all or'ed) */ 144 struct list_head fmt_list; /* format list */ 164 unsigned int fmt_type; /* USB audio format type (1-3) */
|
/linux-4.1.27/tools/perf/ui/gtk/ |
H A D | util.c | 30 static int perf_gtk__error(const char *format, va_list args) perf_gtk__error() argument 36 vasprintf(&msg, format, args) < 0) { perf_gtk__error() 38 vfprintf(stderr, format, args); perf_gtk__error() 56 static int perf_gtk__warning_info_bar(const char *format, va_list args) perf_gtk__warning_info_bar() argument 61 vasprintf(&msg, format, args) < 0) { perf_gtk__warning_info_bar() 63 vfprintf(stderr, format, args); perf_gtk__warning_info_bar() 77 static int perf_gtk__warning_statusbar(const char *format, va_list args) perf_gtk__warning_statusbar() argument 82 vasprintf(&msg, format, args) < 0) { perf_gtk__warning_statusbar() 84 vfprintf(stderr, format, args); perf_gtk__warning_statusbar()
|
/linux-4.1.27/drivers/staging/media/omap4iss/ |
H A D | iss_ipipe.c | 87 struct v4l2_mbus_framefmt *format; ipipe_configure() local 90 format = &ipipe->formats[IPIPE_PAD_SINK]; ipipe_configure() 103 (format->height - 2) & IPIPE_SRC_VSZ_MASK); ipipe_configure() 105 (format->width - 1) & IPIPE_SRC_HSZ_MASK); ipipe_configure() 117 format = &ipipe->formats[IPIPE_PAD_SOURCE_VP]; ipipe_configure() 189 * ipipe_try_format - Try video format on a pad 200 struct v4l2_mbus_framefmt *format; ipipe_try_format() local 223 format = __ipipe_get_format(ipipe, cfg, IPIPE_PAD_SINK, which); ipipe_try_format() 224 memcpy(fmt, format, sizeof(*fmt)); ipipe_try_format() 237 * ipipe_enum_mbus_code - Handle pixel format enumeration 256 /* FIXME: Forced format conversion inside IPIPE ? */ ipipe_enum_mbus_code() 275 struct v4l2_mbus_framefmt format; ipipe_enum_frame_size() local 280 format.code = fse->code; ipipe_enum_frame_size() 281 format.width = 1; ipipe_enum_frame_size() 282 format.height = 1; ipipe_enum_frame_size() 283 ipipe_try_format(ipipe, cfg, fse->pad, &format, fse->which); ipipe_enum_frame_size() 284 fse->min_width = format.width; ipipe_enum_frame_size() 285 fse->min_height = format.height; ipipe_enum_frame_size() 287 if (format.code != fse->code) ipipe_enum_frame_size() 290 format.code = fse->code; ipipe_enum_frame_size() 291 format.width = -1; ipipe_enum_frame_size() 292 format.height = -1; ipipe_enum_frame_size() 293 ipipe_try_format(ipipe, cfg, fse->pad, &format, fse->which); ipipe_enum_frame_size() 294 fse->max_width = format.width; ipipe_enum_frame_size() 295 fse->max_height = format.height; ipipe_enum_frame_size() 301 * ipipe_get_format - Retrieve the video format on a pad 307 * to the format type. 313 struct v4l2_mbus_framefmt *format; ipipe_get_format() local 315 format = __ipipe_get_format(ipipe, cfg, fmt->pad, fmt->which); ipipe_get_format() 316 if (format == NULL) ipipe_get_format() 319 fmt->format = *format; ipipe_get_format() 324 * ipipe_set_format - Set the video format on a pad 330 * to the format type. 336 struct v4l2_mbus_framefmt *format; ipipe_set_format() local 338 format = __ipipe_get_format(ipipe, cfg, fmt->pad, fmt->which); ipipe_set_format() 339 if (format == NULL) ipipe_set_format() 342 ipipe_try_format(ipipe, cfg, fmt->pad, &fmt->format, fmt->which); ipipe_set_format() 343 *format = fmt->format; ipipe_set_format() 345 /* Propagate the format from sink to source */ ipipe_set_format() 347 format = __ipipe_get_format(ipipe, cfg, IPIPE_PAD_SOURCE_VP, ipipe_set_format() 349 *format = fmt->format; ipipe_set_format() 350 ipipe_try_format(ipipe, cfg, IPIPE_PAD_SOURCE_VP, format, ipipe_set_format() 362 if (source_fmt->format.width != sink_fmt->format.width || ipipe_link_validate() 363 source_fmt->format.height != sink_fmt->format.height) ipipe_link_validate() 366 if (source_fmt->format.code != sink_fmt->format.code) ipipe_link_validate() 383 struct v4l2_subdev_format format; ipipe_init_formats() local 385 memset(&format, 0, sizeof(format)); ipipe_init_formats() 386 format.pad = IPIPE_PAD_SINK; ipipe_init_formats() 387 format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE; ipipe_init_formats() 388 format.format.code = MEDIA_BUS_FMT_SGRBG10_1X10; ipipe_init_formats() 389 format.format.width = 4096; ipipe_init_formats() 390 format.format.height = 4096; ipipe_init_formats() 391 ipipe_set_format(sd, fh ? fh->pad : NULL, &format); ipipe_init_formats()
|
H A D | iss_ipipeif.c | 129 struct v4l2_mbus_framefmt *format; ipipeif_configure() local 135 format = &ipipeif->formats[IPIPEIF_PAD_SINK]; ipipeif_configure() 141 /* Select ISIF/IPIPEIF input format */ ipipeif_configure() 142 switch (format->code) { ipipeif_configure() 186 info = omap4iss_video_format_info(format->code); ipipeif_configure() 199 (format->width - 1) & ISIF_LNH_MASK); ipipeif_configure() 201 (format->height - 1) & ISIF_LNV_MASK); ipipeif_configure() 205 format->height - 1); ipipeif_configure() 208 format = &ipipeif->formats[IPIPEIF_PAD_SOURCE_ISIF_SF]; ipipeif_configure() 373 * ipipeif_try_format - Try video format on a pad 385 struct v4l2_mbus_framefmt *format; ipipeif_try_format() local 410 format = __ipipeif_get_format(ipipeif, cfg, IPIPEIF_PAD_SINK, ipipeif_try_format() 412 memcpy(fmt, format, sizeof(*fmt)); ipipeif_try_format() 425 format = __ipipeif_get_format(ipipeif, cfg, IPIPEIF_PAD_SINK, ipipeif_try_format() 427 memcpy(fmt, format, sizeof(*fmt)); ipipeif_try_format() 442 * ipipeif_enum_mbus_code - Handle pixel format enumeration 453 struct v4l2_mbus_framefmt *format; ipipeif_enum_mbus_code() local 465 /* No format conversion inside IPIPEIF */ ipipeif_enum_mbus_code() 469 format = __ipipeif_get_format(ipipeif, cfg, IPIPEIF_PAD_SINK, ipipeif_enum_mbus_code() 472 code->code = format->code; ipipeif_enum_mbus_code() 487 struct v4l2_mbus_framefmt format; ipipeif_enum_frame_size() local 492 format.code = fse->code; ipipeif_enum_frame_size() 493 format.width = 1; ipipeif_enum_frame_size() 494 format.height = 1; ipipeif_enum_frame_size() 495 ipipeif_try_format(ipipeif, cfg, fse->pad, &format, fse->which); ipipeif_enum_frame_size() 496 fse->min_width = format.width; ipipeif_enum_frame_size() 497 fse->min_height = format.height; ipipeif_enum_frame_size() 499 if (format.code != fse->code) ipipeif_enum_frame_size() 502 format.code = fse->code; ipipeif_enum_frame_size() 503 format.width = -1; ipipeif_enum_frame_size() 504 format.height = -1; ipipeif_enum_frame_size() 505 ipipeif_try_format(ipipeif, cfg, fse->pad, &format, fse->which); ipipeif_enum_frame_size() 506 fse->max_width = format.width; ipipeif_enum_frame_size() 507 fse->max_height = format.height; ipipeif_enum_frame_size() 513 * ipipeif_get_format - Retrieve the video format on a pad 519 * to the format type. 525 struct v4l2_mbus_framefmt *format; ipipeif_get_format() local 527 format = __ipipeif_get_format(ipipeif, cfg, fmt->pad, fmt->which); ipipeif_get_format() 528 if (format == NULL) ipipeif_get_format() 531 fmt->format = *format; ipipeif_get_format() 536 * ipipeif_set_format - Set the video format on a pad 542 * to the format type. 548 struct v4l2_mbus_framefmt *format; ipipeif_set_format() local 550 format = __ipipeif_get_format(ipipeif, cfg, fmt->pad, fmt->which); ipipeif_set_format() 551 if (format == NULL) ipipeif_set_format() 554 ipipeif_try_format(ipipeif, cfg, fmt->pad, &fmt->format, fmt->which); ipipeif_set_format() 555 *format = fmt->format; ipipeif_set_format() 557 /* Propagate the format from sink to source */ ipipeif_set_format() 559 format = __ipipeif_get_format(ipipeif, cfg, ipipeif_set_format() 562 *format = fmt->format; ipipeif_set_format() 564 format, fmt->which); ipipeif_set_format() 566 format = __ipipeif_get_format(ipipeif, cfg, ipipeif_set_format() 569 *format = fmt->format; ipipeif_set_format() 570 ipipeif_try_format(ipipeif, cfg, IPIPEIF_PAD_SOURCE_VP, format, ipipeif_set_format() 583 if (source_fmt->format.width != sink_fmt->format.width || ipipeif_link_validate() 584 source_fmt->format.height != sink_fmt->format.height) ipipeif_link_validate() 587 if (source_fmt->format.code != sink_fmt->format.code) ipipeif_link_validate() 605 struct v4l2_subdev_format format; ipipeif_init_formats() local 607 memset(&format, 0, sizeof(format)); ipipeif_init_formats() 608 format.pad = IPIPEIF_PAD_SINK; ipipeif_init_formats() 609 format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE; ipipeif_init_formats() 610 format.format.code = MEDIA_BUS_FMT_SGRBG10_1X10; ipipeif_init_formats() 611 format.format.width = 4096; ipipeif_init_formats() 612 format.format.height = 4096; ipipeif_init_formats() 613 ipipeif_set_format(sd, fh ? fh->pad : NULL, &format); ipipeif_init_formats()
|
H A D | iss_resizer.c | 432 * resizer_try_format - Try video format on a pad 445 struct v4l2_mbus_framefmt *format; resizer_try_format() local 468 format = __resizer_get_format(resizer, cfg, RESIZER_PAD_SINK, resizer_try_format() 470 memcpy(fmt, format, sizeof(*fmt)); resizer_try_format() 493 * resizer_enum_mbus_code - Handle pixel format enumeration 504 struct v4l2_mbus_framefmt *format; resizer_enum_mbus_code() local 515 format = __resizer_get_format(resizer, cfg, RESIZER_PAD_SINK, resizer_enum_mbus_code() 519 code->code = format->code; resizer_enum_mbus_code() 523 switch (format->code) { resizer_enum_mbus_code() 549 struct v4l2_mbus_framefmt format; resizer_enum_frame_size() local 554 format.code = fse->code; resizer_enum_frame_size() 555 format.width = 1; resizer_enum_frame_size() 556 format.height = 1; resizer_enum_frame_size() 557 resizer_try_format(resizer, cfg, fse->pad, &format, fse->which); resizer_enum_frame_size() 558 fse->min_width = format.width; resizer_enum_frame_size() 559 fse->min_height = format.height; resizer_enum_frame_size() 561 if (format.code != fse->code) resizer_enum_frame_size() 564 format.code = fse->code; resizer_enum_frame_size() 565 format.width = -1; resizer_enum_frame_size() 566 format.height = -1; resizer_enum_frame_size() 567 resizer_try_format(resizer, cfg, fse->pad, &format, fse->which); resizer_enum_frame_size() 568 fse->max_width = format.width; resizer_enum_frame_size() 569 fse->max_height = format.height; resizer_enum_frame_size() 575 * resizer_get_format - Retrieve the video format on a pad 581 * to the format type. 587 struct v4l2_mbus_framefmt *format; resizer_get_format() local 589 format = __resizer_get_format(resizer, cfg, fmt->pad, fmt->which); resizer_get_format() 590 if (format == NULL) resizer_get_format() 593 fmt->format = *format; resizer_get_format() 598 * resizer_set_format - Set the video format on a pad 604 * to the format type. 610 struct v4l2_mbus_framefmt *format; resizer_set_format() local 612 format = __resizer_get_format(resizer, cfg, fmt->pad, fmt->which); resizer_set_format() 613 if (format == NULL) resizer_set_format() 616 resizer_try_format(resizer, cfg, fmt->pad, &fmt->format, fmt->which); resizer_set_format() 617 *format = fmt->format; resizer_set_format() 619 /* Propagate the format from sink to source */ resizer_set_format() 621 format = __resizer_get_format(resizer, cfg, resizer_set_format() 624 *format = fmt->format; resizer_set_format() 625 resizer_try_format(resizer, cfg, RESIZER_PAD_SOURCE_MEM, format, resizer_set_format() 638 if (source_fmt->format.width != sink_fmt->format.width || resizer_link_validate() 639 source_fmt->format.height != sink_fmt->format.height) resizer_link_validate() 642 if (source_fmt->format.code != sink_fmt->format.code) resizer_link_validate() 660 struct v4l2_subdev_format format; resizer_init_formats() local 662 memset(&format, 0, sizeof(format)); resizer_init_formats() 663 format.pad = RESIZER_PAD_SINK; resizer_init_formats() 664 format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE; resizer_init_formats() 665 format.format.code = MEDIA_BUS_FMT_UYVY8_1X16; resizer_init_formats() 666 format.format.width = 4096; resizer_init_formats() 667 format.format.height = 4096; resizer_init_formats() 668 resizer_set_format(sd, fh ? fh->pad : NULL, &format); resizer_init_formats()
|
H A D | iss_csi2.c | 112 /* To set the format on the CSI2 requires a mapping function that takes 117 * Output should be CSI2 frame format code 118 * Array indices as follows: [format][dest][decompr] 193 * csi2_ctx_map_format - Map CSI2 sink media bus format to CSI2 format ID 196 * Returns CSI2 physical format id 227 WARN(1, KERN_ERR "CSI2: pixel format %08x unsupported!\n", csi2_ctx_map_format() 271 * @format_id: mapped format id 562 * The CSI2 receiver can't do any format conversion except DPCM csi2_configure() 593 /* Set configuration (timings, format and links) */ csi2_configure() 846 struct v4l2_mbus_framefmt *format; csi2_try_format() local 867 /* Source format same as sink format, except for DPCM csi2_try_format() 871 format = __csi2_get_format(csi2, cfg, CSI2_PAD_SINK, which); csi2_try_format() 872 memcpy(fmt, format, sizeof(*fmt)); csi2_try_format() 890 * csi2_enum_mbus_code - Handle pixel format enumeration 901 struct v4l2_mbus_framefmt *format; csi2_enum_mbus_code() local 910 format = __csi2_get_format(csi2, cfg, CSI2_PAD_SINK, csi2_enum_mbus_code() 915 code->code = format->code; csi2_enum_mbus_code() 919 info = omap4iss_video_format_info(format->code); csi2_enum_mbus_code() 920 if (info->uncompressed == format->code) csi2_enum_mbus_code() 938 struct v4l2_mbus_framefmt format; csi2_enum_frame_size() local 943 format.code = fse->code; csi2_enum_frame_size() 944 format.width = 1; csi2_enum_frame_size() 945 format.height = 1; csi2_enum_frame_size() 946 csi2_try_format(csi2, cfg, fse->pad, &format, fse->which); csi2_enum_frame_size() 947 fse->min_width = format.width; csi2_enum_frame_size() 948 fse->min_height = format.height; csi2_enum_frame_size() 950 if (format.code != fse->code) csi2_enum_frame_size() 953 format.code = fse->code; csi2_enum_frame_size() 954 format.width = -1; csi2_enum_frame_size() 955 format.height = -1; csi2_enum_frame_size() 956 csi2_try_format(csi2, cfg, fse->pad, &format, fse->which); csi2_enum_frame_size() 957 fse->max_width = format.width; csi2_enum_frame_size() 958 fse->max_height = format.height; csi2_enum_frame_size() 964 * csi2_get_format - Handle get format by pads subdev method 967 * @fmt: pointer to v4l2 subdev format structure 974 struct v4l2_mbus_framefmt *format; csi2_get_format() local 976 format = __csi2_get_format(csi2, cfg, fmt->pad, fmt->which); csi2_get_format() 977 if (format == NULL) csi2_get_format() 980 fmt->format = *format; csi2_get_format() 985 * csi2_set_format - Handle set format by pads subdev method 988 * @fmt: pointer to v4l2 subdev format structure 995 struct v4l2_mbus_framefmt *format; csi2_set_format() local 997 format = __csi2_get_format(csi2, cfg, fmt->pad, fmt->which); csi2_set_format() 998 if (format == NULL) csi2_set_format() 1001 csi2_try_format(csi2, cfg, fmt->pad, &fmt->format, fmt->which); csi2_set_format() 1002 *format = fmt->format; csi2_set_format() 1004 /* Propagate the format from sink to source */ csi2_set_format() 1006 format = __csi2_get_format(csi2, cfg, CSI2_PAD_SOURCE, csi2_set_format() 1008 *format = fmt->format; csi2_set_format() 1009 csi2_try_format(csi2, cfg, CSI2_PAD_SOURCE, format, fmt->which); csi2_set_format() 1043 struct v4l2_subdev_format format; csi2_init_formats() local 1045 memset(&format, 0, sizeof(format)); csi2_init_formats() 1046 format.pad = CSI2_PAD_SINK; csi2_init_formats() 1047 format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE; csi2_init_formats() 1048 format.format.code = MEDIA_BUS_FMT_SGRBG10_1X10; csi2_init_formats() 1049 format.format.width = 4096; csi2_init_formats() 1050 format.format.height = 4096; csi2_init_formats() 1051 csi2_set_format(sd, fh ? fh->pad : NULL, &format); csi2_init_formats()
|
H A D | iss_video.h | 33 * struct iss_format_info - ISS media bus format information 34 * @code: V4L2 media bus format code 35 * @truncated: V4L2 media bus format code for the same format truncated to 10 36 * bits. Identical to @code if the format is 10 bits wide or less. 37 * @uncompressed: V4L2 media bus format code for the corresponding uncompressed 38 * format. Identical to @code if the format is not DPCM compressed. 39 * @flavor: V4L2 media bus format code for the same pixel layout but 40 * shifted to be 8 bits per pixel. =0 if format is not shiftable. 41 * @pixelformat: V4L2 pixel format FCC identifier 43 * @description: Human-readable format description 151 struct mutex mutex; /* format and crop settings */ 184 struct v4l2_format format; member in struct:iss_video_fh
|
H A D | iss_video.c | 109 * @mbus: v4l2_mbus_framefmt format (input) 110 * @pix: v4l2_pix_format format (output) 112 * Fill the output pix structure with information from the input mbus format. 114 * per line value in the pix format and information from the video instance. 130 /* Skip the last format in the loop so that it will be selected if no iss_video_mbus_to_pix() 174 /* Skip the last format in the loop so that it will be selected if no iss_video_pix_to_mbus() 236 struct v4l2_mbus_framefmt *format) __iss_video_get_format() 258 *format = fmt.format; __iss_video_get_format() 265 struct v4l2_mbus_framefmt format; iss_video_check_format() local 269 ret = __iss_video_get_format(video, &format); iss_video_check_format() 274 ret = iss_video_mbus_to_pix(video, &format, &pixfmt); iss_video_check_format() 276 if (vfh->format.fmt.pix.pixelformat != pixfmt.pixelformat || iss_video_check_format() 277 vfh->format.fmt.pix.height != pixfmt.height || iss_video_check_format() 278 vfh->format.fmt.pix.width != pixfmt.width || iss_video_check_format() 279 vfh->format.fmt.pix.bytesperline != pixfmt.bytesperline || iss_video_check_format() 280 vfh->format.fmt.pix.sizeimage != pixfmt.sizeimage) iss_video_check_format() 301 sizes[0] = vfh->format.fmt.pix.sizeimage; iss_video_queue_setup() 325 unsigned long size = vfh->format.fmt.pix.sizeimage; iss_video_buf_prepare() 543 struct v4l2_mbus_framefmt format; iss_video_enum_format() local 551 ret = __iss_video_get_format(video, &format); iss_video_enum_format() 558 if (format.code != info->code) iss_video_enum_format() 575 iss_video_get_format(struct file *file, void *fh, struct v4l2_format *format) iss_video_get_format() argument 580 if (format->type != video->type) iss_video_get_format() 584 *format = vfh->format; iss_video_get_format() 591 iss_video_set_format(struct file *file, void *fh, struct v4l2_format *format) iss_video_set_format() argument 597 if (format->type != video->type) iss_video_set_format() 603 * format and back to pixel format. iss_video_set_format() 605 iss_video_pix_to_mbus(&format->fmt.pix, &fmt); iss_video_set_format() 606 iss_video_mbus_to_pix(video, &fmt, &format->fmt.pix); iss_video_set_format() 608 vfh->format = *format; iss_video_set_format() 615 iss_video_try_format(struct file *file, void *fh, struct v4l2_format *format) iss_video_try_format() argument 623 if (format->type != video->type) iss_video_try_format() 630 iss_video_pix_to_mbus(&format->fmt.pix, &fmt.format); iss_video_try_format() 638 iss_video_mbus_to_pix(video, &fmt.format, &format->fmt.pix); iss_video_try_format() 664 struct v4l2_subdev_format format; iss_video_get_crop() local 673 /* Try the get crop operation first and fallback to get format if not iss_video_get_crop() 680 format.pad = pad; iss_video_get_crop() 681 format.which = V4L2_SUBDEV_FORMAT_ACTIVE; iss_video_get_crop() 682 ret = v4l2_subdev_call(subdev, pad, get_fmt, NULL, &format); iss_video_get_crop() 688 crop->c.width = format.format.width; iss_video_get_crop() 689 crop->c.height = format.format.height; iss_video_get_crop() 859 /* Verify that the currently configured format matches the output of iss_video_streamon() 867 video->bpl_value = vfh->format.fmt.pix.bytesperline; iss_video_streamon() 1091 memset(&handle->format, 0, sizeof(handle->format)); iss_video_open() 1092 handle->format.type = video->type; iss_video_open() 235 __iss_video_get_format(struct iss_video *video, struct v4l2_mbus_framefmt *format) __iss_video_get_format() argument
|
/linux-4.1.27/arch/powerpc/boot/ |
H A D | stdio.h | 10 extern int printf(const char *fmt, ...) __attribute__((format(printf, 1, 2))); 15 __attribute__((format(printf, 2, 3)));
|
/linux-4.1.27/drivers/usb/atm/ |
H A D | usbatm.h | 43 #define usb_err(instance, format, arg...) \ 44 dev_err(&(instance)->usb_intf->dev , format , ## arg) 45 #define usb_info(instance, format, arg...) \ 46 dev_info(&(instance)->usb_intf->dev , format , ## arg) 47 #define usb_warn(instance, format, arg...) \ 48 dev_warn(&(instance)->usb_intf->dev , format , ## arg) 49 #define usb_dbg(instance, format, arg...) \ 50 dev_dbg(&(instance)->usb_intf->dev , format , ## arg) 53 #define atm_printk(level, instance, format, arg...) \ 54 printk(level "ATM dev %d: " format , \ 57 #define atm_err(instance, format, arg...) \ 58 atm_printk(KERN_ERR, instance , format , ## arg) 59 #define atm_info(instance, format, arg...) \ 60 atm_printk(KERN_INFO, instance , format , ## arg) 61 #define atm_warn(instance, format, arg...) \ 62 atm_printk(KERN_WARNING, instance , format , ## arg) 63 #define atm_dbg(instance, format, ...) \ 64 pr_debug("ATM dev %d: " format, \ 66 #define atm_rldbg(instance, format, ...) \ 67 pr_debug_ratelimited("ATM dev %d: " format, \
|
/linux-4.1.27/include/uapi/linux/ |
H A D | v4l2-subdev.h | 32 * enum v4l2_subdev_format_whence - Media bus format type 33 * @V4L2_SUBDEV_FORMAT_TRY: try format, for negotiation only 34 * @V4L2_SUBDEV_FORMAT_ACTIVE: active format, applied to the device 42 * struct v4l2_subdev_format - Pad-level media bus format 43 * @which: format type (from enum v4l2_subdev_format_whence) 45 * @format: media bus format (format code and frame size) 50 struct v4l2_mbus_framefmt format; member in struct:v4l2_subdev_format 56 * @which: format type (from enum v4l2_subdev_format_whence) 68 * struct v4l2_subdev_mbus_code_enum - Media bus format enumeration 70 * @index: format index during enumeration 71 * @code: format code (MEDIA_BUS_FMT_ definitions) 72 * @which: format type (from enum v4l2_subdev_format_whence) 83 * struct v4l2_subdev_frame_size_enum - Media bus format enumeration 85 * @index: format index during enumeration 86 * @code: format code (MEDIA_BUS_FMT_ definitions) 87 * @which: format type (from enum v4l2_subdev_format_whence) 116 * @code: format code (MEDIA_BUS_FMT_ definitions) 120 * @which: format type (from enum v4l2_subdev_format_whence)
|
H A D | bcm933xx_hcs.h | 2 * Broadcom Cable Modem firmware format
|
H A D | v4l2-mediabus.h | 14 #include <linux/media-bus-format.h> 19 * struct v4l2_mbus_framefmt - frame format on the media bus 22 * @code: data format code (from enum v4l2_mbus_pixelcode) 42 * MEDIA_BUS_FMT_ definitions (defined in media-bus-format.h) should be 45 * New defines should only be added to media-bus-format.h. The
|
/linux-4.1.27/drivers/acpi/acpica/ |
H A D | utxferror.c | 63 * format - Printf format string + additional args 71 acpi_error(const char *module_name, u32 line_number, const char *format, ...) acpi_error() argument 78 va_start(arg_list, format); acpi_error() 79 acpi_os_vprintf(format, arg_list); acpi_error() 95 * format - Printf format string + additional args ACPI_EXPORT_SYMBOL() 105 u32 line_number, acpi_status status, const char *format, ...) ACPI_EXPORT_SYMBOL() 113 va_start(arg_list, format); ACPI_EXPORT_SYMBOL() 114 acpi_os_vprintf(format, arg_list); ACPI_EXPORT_SYMBOL() 129 * format - Printf format string + additional args ACPI_EXPORT_SYMBOL() 137 acpi_warning(const char *module_name, u32 line_number, const char *format, ...) ACPI_EXPORT_SYMBOL() 144 va_start(arg_list, format); ACPI_EXPORT_SYMBOL() 145 acpi_os_vprintf(format, arg_list); ACPI_EXPORT_SYMBOL() 160 * format - Printf format string + additional args ACPI_EXPORT_SYMBOL() 171 acpi_info(const char *module_name, u32 line_number, const char *format, ...) ACPI_EXPORT_SYMBOL() 178 va_start(arg_list, format); ACPI_EXPORT_SYMBOL() 179 acpi_os_vprintf(format, arg_list); ACPI_EXPORT_SYMBOL() 194 * format - Printf format string + additional args ACPI_EXPORT_SYMBOL() 204 u32 line_number, const char *format, ...) ACPI_EXPORT_SYMBOL() 211 va_start(arg_list, format); ACPI_EXPORT_SYMBOL() 212 acpi_os_vprintf(format, arg_list); ACPI_EXPORT_SYMBOL() 227 * format - Printf format string + additional args ACPI_EXPORT_SYMBOL() 237 u32 line_number, const char *format, ...) ACPI_EXPORT_SYMBOL() 244 va_start(arg_list, format); ACPI_EXPORT_SYMBOL() 245 acpi_os_vprintf(format, arg_list); ACPI_EXPORT_SYMBOL()
|
H A D | utprint.c | 347 * format - Standard printf format 358 acpi_size size, const char *format, va_list args) acpi_ut_vsnprintf() 377 for (; *format; ++format) { acpi_ut_vsnprintf() 378 if (*format != '%') { acpi_ut_vsnprintf() 379 pos = acpi_ut_bound_string_output(pos, end, *format); acpi_ut_vsnprintf() 389 ++format; acpi_ut_vsnprintf() 390 if (*format == '#') { acpi_ut_vsnprintf() 392 } else if (*format == '0') { acpi_ut_vsnprintf() 394 } else if (*format == '+') { acpi_ut_vsnprintf() 396 } else if (*format == ' ') { acpi_ut_vsnprintf() 398 } else if (*format == '-') { acpi_ut_vsnprintf() 408 if (ACPI_IS_DIGIT(*format)) { acpi_ut_vsnprintf() 409 format = acpi_ut_scan_number(format, &number); acpi_ut_vsnprintf() 411 } else if (*format == '*') { acpi_ut_vsnprintf() 412 ++format; acpi_ut_vsnprintf() 423 if (*format == '.') { acpi_ut_vsnprintf() 424 ++format; acpi_ut_vsnprintf() 425 if (ACPI_IS_DIGIT(*format)) { acpi_ut_vsnprintf() 426 format = acpi_ut_scan_number(format, &number); acpi_ut_vsnprintf() 428 } else if (*format == '*') { acpi_ut_vsnprintf() 429 ++format; acpi_ut_vsnprintf() 440 if (*format == 'h' || *format == 'l' || *format == 'L') { acpi_ut_vsnprintf() 441 qualifier = *format; acpi_ut_vsnprintf() 442 ++format; acpi_ut_vsnprintf() 444 if (qualifier == 'l' && *format == 'l') { acpi_ut_vsnprintf() 446 ++format; acpi_ut_vsnprintf() 450 switch (*format) { acpi_ut_vsnprintf() 540 if (*format) { acpi_ut_vsnprintf() 543 *format); acpi_ut_vsnprintf() 545 --format; acpi_ut_vsnprintf() 593 * Format, ... - Standard printf format 601 int acpi_ut_snprintf(char *string, acpi_size size, const char *format, ...) acpi_ut_snprintf() argument 606 va_start(args, format); acpi_ut_snprintf() 607 length = acpi_ut_vsnprintf(string, size, format, args); acpi_ut_snprintf() 619 * format - Standard printf format 628 int acpi_ut_file_vprintf(ACPI_FILE file, const char *format, va_list args) acpi_ut_file_vprintf() argument 635 sizeof(acpi_gbl_print_buffer), format, args); acpi_ut_file_vprintf() 648 * Format, ... - Standard printf format 656 int acpi_ut_file_printf(ACPI_FILE file, const char *format, ...) acpi_ut_file_printf() argument 661 va_start(args, format); acpi_ut_file_printf() 662 length = acpi_ut_file_vprintf(file, format, args); acpi_ut_file_printf() 357 acpi_ut_vsnprintf(char *string, acpi_size size, const char *format, va_list args) acpi_ut_vsnprintf() argument
|
H A D | uterror.c | 64 * format - Printf format string + additional args 78 u8 node_flags, const char *format, ...) acpi_ut_predefined_warning() 92 va_start(arg_list, format); acpi_ut_predefined_warning() 93 acpi_os_vprintf(format, arg_list); acpi_ut_predefined_warning() 106 * format - Printf format string + additional args 120 char *pathname, u8 node_flags, const char *format, ...) acpi_ut_predefined_info() 134 va_start(arg_list, format); acpi_ut_predefined_info() 135 acpi_os_vprintf(format, arg_list); acpi_ut_predefined_info() 148 * format - Printf format string + additional args 163 u8 node_flags, const char *format, ...) acpi_ut_predefined_bios_error() 177 va_start(arg_list, format); acpi_ut_predefined_bios_error() 178 acpi_os_vprintf(format, arg_list); acpi_ut_predefined_bios_error() 218 /* Convert path to external format */ acpi_ut_namespace_error() 75 acpi_ut_predefined_warning(const char *module_name, u32 line_number, char *pathname, u8 node_flags, const char *format, ...) acpi_ut_predefined_warning() argument 118 acpi_ut_predefined_info(const char *module_name, u32 line_number, char *pathname, u8 node_flags, const char *format, ...) acpi_ut_predefined_info() argument 160 acpi_ut_predefined_bios_error(const char *module_name, u32 line_number, char *pathname, u8 node_flags, const char *format, ...) acpi_ut_predefined_bios_error() argument
|
/linux-4.1.27/sound/firewire/oxfw/ |
H A D | oxfw-proc.c | 16 u8 *format; proc_read_formation() local 30 format = oxfw->rx_stream_formats[i]; proc_read_formation() 31 if (format == NULL) proc_read_formation() 34 err = snd_oxfw_stream_parse_format(format, &formation); proc_read_formation() 60 format = oxfw->tx_stream_formats[i]; proc_read_formation() 61 if (format == NULL) proc_read_formation() 64 err = snd_oxfw_stream_parse_format(format, &formation); proc_read_formation()
|
H A D | oxfw-midi.c | 148 u8 *format; snd_oxfw_create_midi() local 153 format = oxfw->tx_stream_formats[i]; snd_oxfw_create_midi() 154 if (format != NULL) { snd_oxfw_create_midi() 155 err = snd_oxfw_stream_parse_format(format, &formation); snd_oxfw_create_midi() 160 format = oxfw->rx_stream_formats[i]; snd_oxfw_create_midi() 161 if (format != NULL) { snd_oxfw_create_midi() 162 err = snd_oxfw_stream_parse_format(format, &formation); snd_oxfw_create_midi()
|
H A D | oxfw-stream.c | 75 /* Seek stream format for requirements. */ set_stream_format() 91 /* Calculate format length. */ set_stream_format() 98 /* Some requests just after changing format causes freezing. */ set_stream_format() 132 /* Get stream format */ start_stream() 304 "fail to set stream format: %d\n", err); snd_oxfw_stream_start_simplex() 379 u8 *format; snd_oxfw_stream_get_current_formation() local 384 format = kmalloc(len, GFP_KERNEL); snd_oxfw_stream_get_current_formation() 385 if (format == NULL) snd_oxfw_stream_get_current_formation() 388 err = avc_stream_get_format_single(oxfw->unit, dir, 0, format, &len); snd_oxfw_stream_get_current_formation() 396 err = snd_oxfw_stream_parse_format(format, formation); snd_oxfw_stream_get_current_formation() 398 kfree(format); snd_oxfw_stream_get_current_formation() 408 int snd_oxfw_stream_parse_format(u8 *format, snd_oxfw_stream_parse_format() argument 420 if ((format[0] != 0x90) || (format[1] != 0x40)) snd_oxfw_stream_parse_format() 425 if (format[2] == avc_stream_rate_table[i]) snd_oxfw_stream_parse_format() 433 for (e = 0; e < format[4]; e++) { snd_oxfw_stream_parse_format() 434 channels = format[5 + e * 2]; snd_oxfw_stream_parse_format() 435 type = format[6 + e * 2]; snd_oxfw_stream_parse_format() 493 /* get format at current sampling rate */ assume_stream_formats() 497 "fail to get current stream format for isoc %s plug %d:%d\n", assume_stream_formats() 503 /* parse and set stream format */ assume_stream_formats() 516 /* apply the format for each available sampling rate */ assume_stream_formats() 572 "fail to get stream format %d for isoc %s plug %d:%d\n", fill_stream_formats() 580 /* The format is too short. */ fill_stream_formats() 586 /* parse and set stream format */ fill_stream_formats() 608 "fail to get stream format %d for isoc %s plug %d:%d\n", fill_stream_formats()
|
/linux-4.1.27/tools/virtio/virtio-trace/ |
H A D | trace-agent.h | 67 #define pr_err(format, ...) fprintf(stderr, format, ## __VA_ARGS__) 68 #define pr_info(format, ...) fprintf(stdout, format, ## __VA_ARGS__) 70 #define pr_debug(format, ...) fprintf(stderr, format, ## __VA_ARGS__) 72 #define pr_debug(format, ...) do {} while (0)
|
/linux-4.1.27/sound/core/oss/ |
H A D | route.c | 28 snd_pcm_uframes_t frames, snd_pcm_format_t format) zero_areas() 33 snd_pcm_area_silence(&dvp->area, 0, frames, format); zero_areas() 41 snd_pcm_uframes_t frames, snd_pcm_format_t format) copy_area() 44 snd_pcm_area_copy(&src_channel->area, 0, &dst_channel->area, 0, frames, format); copy_area() 54 snd_pcm_format_t format; route_transfer() local 64 format = plugin->dst_format.format; route_transfer() 69 copy_area(src_channels, dvp, frames, format); route_transfer() 76 copy_area(src_channels, dvp, frames, format); route_transfer() 81 zero_areas(dvp, ndsts - dst, frames, format); route_transfer() 98 if (snd_BUG_ON(src_format->format != dst_format->format)) snd_pcm_plugin_build_route() 27 zero_areas(struct snd_pcm_plugin_channel *dvp, int ndsts, snd_pcm_uframes_t frames, snd_pcm_format_t format) zero_areas() argument 39 copy_area(const struct snd_pcm_plugin_channel *src_channel, struct snd_pcm_plugin_channel *dst_channel, snd_pcm_uframes_t frames, snd_pcm_format_t format) copy_area() argument
|
H A D | pcm_plugin.c | 51 struct snd_pcm_plugin_format *format; snd_pcm_plugin_alloc() local 58 format = &plugin->src_format; snd_pcm_plugin_alloc() 60 format = &plugin->dst_format; snd_pcm_plugin_alloc() 62 if ((width = snd_pcm_format_physical_width(format->format)) < 0) snd_pcm_plugin_alloc() 64 size = frames * format->channels * width; snd_pcm_plugin_alloc() 79 for (channel = 0; channel < format->channels; channel++, c++) { snd_pcm_plugin_alloc() 85 c->area.step = format->channels * width; snd_pcm_plugin_alloc() 88 if (snd_BUG_ON(size % format->channels)) snd_pcm_plugin_alloc() 90 size /= format->channels; snd_pcm_plugin_alloc() 91 for (channel = 0; channel < format->channels; channel++, c++) { snd_pcm_plugin_alloc() 168 plugin->src_width = snd_pcm_format_physical_width(src_format->format); snd_pcm_plugin_build() 171 plugin->dst_width = snd_pcm_format_physical_width(dst_format->format); snd_pcm_plugin_build() 269 static int snd_pcm_plug_formats(struct snd_mask *mask, snd_pcm_format_t format) snd_pcm_plug_formats() argument 287 return snd_mask_test(&formats, (__force int)format); snd_pcm_plug_formats() 311 snd_pcm_format_t snd_pcm_plug_slave_format(snd_pcm_format_t format, snd_pcm_plug_slave_format() argument 316 if (snd_mask_test(format_mask, (__force int)format)) snd_pcm_plug_slave_format() 317 return format; snd_pcm_plug_slave_format() 318 if (!snd_pcm_plug_formats(format_mask, format)) snd_pcm_plug_slave_format() 320 if (snd_pcm_format_linear(format)) { snd_pcm_plug_slave_format() 321 unsigned int width = snd_pcm_format_width(format); snd_pcm_plug_slave_format() 322 int unsignd = snd_pcm_format_unsigned(format) > 0; snd_pcm_plug_slave_format() 323 int big = snd_pcm_format_big_endian(format) > 0; snd_pcm_plug_slave_format() 348 switch (format) { snd_pcm_plug_slave_format() 377 dstformat.format = params_format(slave_params); snd_pcm_plug_format_plugins() 380 srcformat.format = params_format(params); snd_pcm_plug_format_plugins() 388 dstformat.format = params_format(params); snd_pcm_plug_format_plugins() 391 srcformat.format = params_format(slave_params); snd_pcm_plug_format_plugins() 404 pdprintf("srcformat: format=%i, rate=%i, channels=%i\n", snd_pcm_plug_format_plugins() 405 srcformat.format, snd_pcm_plug_format_plugins() 408 pdprintf("dstformat: format=%i, rate=%i, channels=%i\n", snd_pcm_plug_format_plugins() 409 dstformat.format, snd_pcm_plug_format_plugins() 415 ! snd_pcm_format_linear(srcformat.format)) { snd_pcm_plug_format_plugins() 416 if (srcformat.format != SNDRV_PCM_FORMAT_MU_LAW) snd_pcm_plug_format_plugins() 418 tmpformat.format = SNDRV_PCM_FORMAT_S16; snd_pcm_plug_format_plugins() 451 if (srcformat.format != SNDRV_PCM_FORMAT_S16) { snd_pcm_plug_format_plugins() 453 tmpformat.format = SNDRV_PCM_FORMAT_S16; snd_pcm_plug_format_plugins() 483 /* format change */ snd_pcm_plug_format_plugins() 484 if (srcformat.format != dstformat.format) { snd_pcm_plug_format_plugins() 485 tmpformat.format = dstformat.format; snd_pcm_plug_format_plugins() 486 if (srcformat.format == SNDRV_PCM_FORMAT_MU_LAW || snd_pcm_plug_format_plugins() 487 tmpformat.format == SNDRV_PCM_FORMAT_MU_LAW) { snd_pcm_plug_format_plugins() 492 else if (snd_pcm_format_linear(srcformat.format) && snd_pcm_plug_format_plugins() 493 snd_pcm_format_linear(tmpformat.format)) { snd_pcm_plug_format_plugins() 500 pdprintf("format change: src=%i, dst=%i returns %i\n", srcformat.format, tmpformat.format, err); snd_pcm_plug_format_plugins() 554 struct snd_pcm_plugin_format *format; snd_pcm_plug_client_channels_buf() local 562 format = &plugin->src_format; snd_pcm_plug_client_channels_buf() 565 format = &plugin->dst_format; snd_pcm_plug_client_channels_buf() 569 if ((width = snd_pcm_format_physical_width(format->format)) < 0) snd_pcm_plug_client_channels_buf() 571 nchannels = format->channels; snd_pcm_plug_client_channels_buf() 573 format->channels > 1)) snd_pcm_plug_client_channels_buf() 650 size_t samples, snd_pcm_format_t format) snd_pcm_area_silence() 660 width = snd_pcm_format_physical_width(format); snd_pcm_area_silence() 664 return snd_pcm_format_set_silence(format, dst, samples); snd_pcm_area_silence() 665 silence = snd_pcm_format_silence_64(format); snd_pcm_area_silence() 697 size_t samples, snd_pcm_format_t format) snd_pcm_area_copy() 705 return snd_pcm_area_silence(dst_area, dst_offset, samples, format); snd_pcm_area_copy() 709 width = snd_pcm_format_physical_width(format); snd_pcm_area_copy() 649 snd_pcm_area_silence(const struct snd_pcm_channel_area *dst_area, size_t dst_offset, size_t samples, snd_pcm_format_t format) snd_pcm_area_silence() argument 695 snd_pcm_area_copy(const struct snd_pcm_channel_area *src_area, size_t src_offset, const struct snd_pcm_channel_area *dst_area, size_t dst_offset, size_t samples, snd_pcm_format_t format) snd_pcm_area_copy() argument
|
H A D | mulaw.c | 149 unsigned int native_ofs; /* byte offset in native format */ 150 unsigned int copy_ofs; /* byte offset in s16 format */ 151 unsigned int native_bytes; /* byte size of the native format */ 183 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); mulaw_decode() 229 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); mulaw_encode() 277 static void init_data(struct mulaw_priv *data, snd_pcm_format_t format) init_data() argument 280 data->cvt_endian = snd_pcm_format_big_endian(format) > 0; init_data() 282 data->cvt_endian = snd_pcm_format_little_endian(format) > 0; init_data() 284 if (!snd_pcm_format_signed(format)) init_data() 286 data->native_bytes = snd_pcm_format_physical_width(format) / 8; init_data() 288 if (snd_pcm_format_little_endian(format)) { init_data() 294 snd_pcm_format_width(format) / 8; init_data() 306 struct snd_pcm_plugin_format *format; snd_pcm_plugin_build_mulaw() local 318 if (dst_format->format == SNDRV_PCM_FORMAT_MU_LAW) { snd_pcm_plugin_build_mulaw() 319 format = src_format; snd_pcm_plugin_build_mulaw() 322 else if (src_format->format == SNDRV_PCM_FORMAT_MU_LAW) { snd_pcm_plugin_build_mulaw() 323 format = dst_format; snd_pcm_plugin_build_mulaw() 330 if (snd_BUG_ON(!snd_pcm_format_linear(format->format))) snd_pcm_plugin_build_mulaw() 340 init_data(data, format->format); snd_pcm_plugin_build_mulaw()
|
H A D | copy.c | 49 snd_pcm_area_silence(&dst_channels->area, 0, frames, plugin->dst_format.format); copy_transfer() 54 snd_pcm_area_copy(&src_channels->area, 0, &dst_channels->area, 0, frames, plugin->src_format.format); copy_transfer() 74 if (snd_BUG_ON(src_format->format != dst_format->format)) snd_pcm_plugin_build_copy() 81 width = snd_pcm_format_physical_width(src_format->format); snd_pcm_plugin_build_copy()
|
H A D | linear.c | 34 unsigned int src_ofs; /* byte offset in source format */ 35 unsigned int dst_ofs; /* byte soffset in destination format */ 37 unsigned int dst_bytes; /* byte size of destination format */ 70 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); convert() 164 if (snd_BUG_ON(!snd_pcm_format_linear(src_format->format) || snd_pcm_plugin_build_linear() 165 !snd_pcm_format_linear(dst_format->format))) snd_pcm_plugin_build_linear() 168 err = snd_pcm_plugin_build(plug, "linear format conversion", snd_pcm_plugin_build_linear() 174 init_data(data, src_format->format, dst_format->format); snd_pcm_plugin_build_linear()
|
H A D | io.c | 113 struct snd_pcm_plugin_format format; snd_pcm_plugin_build_io() local 121 format.format = params_format(params); snd_pcm_plugin_build_io() 122 format.rate = params_rate(params); snd_pcm_plugin_build_io() 123 format.channels = params_channels(params); snd_pcm_plugin_build_io() 125 &format, &format, snd_pcm_plugin_build_io() 126 sizeof(void *) * format.channels, snd_pcm_plugin_build_io()
|
H A D | pcm_plugin.h | 49 snd_pcm_format_t format; member in struct:snd_pcm_plugin_format 57 struct snd_pcm_plugin_format src_format; /* source format */ 58 struct snd_pcm_plugin_format dst_format; /* destination format */ 128 snd_pcm_format_t snd_pcm_plug_slave_format(snd_pcm_format_t format, 150 size_t samples, snd_pcm_format_t format); 155 size_t samples, snd_pcm_format_t format); 175 static inline int snd_pcm_plug_slave_format(int format, struct snd_mask *format_mask) { return format; } argument
|
/linux-4.1.27/drivers/gpu/drm/shmobile/ |
H A D | shmob_drm_plane.c | 32 const struct shmob_drm_format_info *format; member in struct:shmob_drm_plane 52 bpp = splane->format->yuv ? 8 : splane->format->bpp; shmob_drm_plane_compute_base() 57 if (splane->format->yuv) { shmob_drm_plane_compute_base() 58 bpp = splane->format->bpp - 8; shmob_drm_plane_compute_base() 70 u32 format; __shmob_drm_plane_setup() local 73 format = LDBBSIFR_EN | (splane->alpha << LDBBSIFR_LAY_SHIFT); __shmob_drm_plane_setup() 75 switch (splane->format->fourcc) { __shmob_drm_plane_setup() 80 format |= LDBBSIFR_SWPL | LDBBSIFR_SWPW; __shmob_drm_plane_setup() 86 format |= LDBBSIFR_SWPL | LDBBSIFR_SWPW | LDBBSIFR_SWPB; __shmob_drm_plane_setup() 90 format |= LDBBSIFR_SWPL; __shmob_drm_plane_setup() 94 switch (splane->format->fourcc) { __shmob_drm_plane_setup() 96 format |= LDBBSIFR_AL_1 | LDBBSIFR_RY | LDBBSIFR_RPKF_RGB16; __shmob_drm_plane_setup() 99 format |= LDBBSIFR_AL_1 | LDBBSIFR_RY | LDBBSIFR_RPKF_RGB24; __shmob_drm_plane_setup() 102 format |= LDBBSIFR_AL_PK | LDBBSIFR_RY | LDDFR_PKF_ARGB32; __shmob_drm_plane_setup() 106 format |= LDBBSIFR_AL_1 | LDBBSIFR_CHRR_420; __shmob_drm_plane_setup() 110 format |= LDBBSIFR_AL_1 | LDBBSIFR_CHRR_422; __shmob_drm_plane_setup() 114 format |= LDBBSIFR_AL_1 | LDBBSIFR_CHRR_444; __shmob_drm_plane_setup() 135 lcdc_write(sdev, LDBnBSIFR(splane->index), format); __shmob_drm_plane_setup() 149 if (splane->format->yuv) __shmob_drm_plane_setup() 184 const struct shmob_drm_format_info *format; shmob_drm_plane_update() local 186 format = shmob_drm_format_info(fb->pixel_format); shmob_drm_plane_update() 187 if (format == NULL) { shmob_drm_plane_update() 188 dev_dbg(sdev->dev, "update_plane: unsupported format %08x\n", shmob_drm_plane_update() 198 splane->format = format; shmob_drm_plane_update() 216 splane->format = NULL; shmob_drm_plane_disable()
|
H A D | shmob_drm_kms.c | 109 const struct shmob_drm_format_info *format; shmob_drm_fb_create() local 111 format = shmob_drm_format_info(mode_cmd->pixel_format); shmob_drm_fb_create() 112 if (format == NULL) { shmob_drm_fb_create() 113 dev_dbg(dev->dev, "unsupported pixel format %08x\n", shmob_drm_fb_create() 124 if (format->yuv) { shmob_drm_fb_create() 125 unsigned int chroma_cpp = format->bpp == 24 ? 2 : 1; shmob_drm_fb_create()
|
/linux-4.1.27/drivers/infiniband/hw/ehca/ |
H A D | ehca_tools.h | 69 #define ehca_dbg(ib_dev, format, arg...) \ 73 "PU%04x EHCA_DBG:%s " format "\n", \ 78 #define ehca_info(ib_dev, format, arg...) \ 79 dev_info((ib_dev)->dma_device, "PU%04x EHCA_INFO:%s " format "\n", \ 82 #define ehca_warn(ib_dev, format, arg...) \ 83 dev_warn((ib_dev)->dma_device, "PU%04x EHCA_WARN:%s " format "\n", \ 86 #define ehca_err(ib_dev, format, arg...) \ 87 dev_err((ib_dev)->dma_device, "PU%04x EHCA_ERR:%s " format "\n", \ 91 #define ehca_gen_dbg(format, arg...) \ 94 printk(KERN_DEBUG "PU%04x EHCA_DBG:%s " format "\n", \ 98 #define ehca_gen_warn(format, arg...) \ 99 printk(KERN_INFO "PU%04x EHCA_WARN:%s " format "\n", \ 102 #define ehca_gen_err(format, arg...) \ 103 printk(KERN_ERR "PU%04x EHCA_ERR:%s " format "\n", \ 109 * <format string> adr=X ofs=Y <8 bytes hex> <8 bytes hex> 111 #define ehca_dmp(adr, len, format, args...) \ 117 printk(KERN_INFO "EHCA_DMP:%s " format \
|
/linux-4.1.27/include/asm-generic/ |
H A D | bug.h | 61 * appear at runtime. Use the versions with printk format strings 94 #define WARN(condition, format...) ({ \ 97 __WARN_printf(format); \ 102 #define WARN_TAINT(condition, taint, format...) ({ \ 105 __WARN_printf_taint(taint, format); \ 119 #define WARN_ONCE(condition, format...) ({ \ 124 if (WARN(!__warned, format)) \ 129 #define WARN_TAINT_ONCE(condition, taint, format...) ({ \ 134 if (WARN_TAINT(!__warned, taint, format)) \ 156 #define WARN(condition, format...) ({ \ 158 no_printk(format); \ 164 #define WARN_ONCE(condition, format...) WARN(condition, format) 165 #define WARN_TAINT(condition, taint, format...) WARN(condition, format) 166 #define WARN_TAINT_ONCE(condition, taint, format...) WARN(condition, format)
|
/linux-4.1.27/drivers/staging/lustre/include/linux/libcfs/ |
H A D | libcfs_debug.h | 210 #define __CDEBUG(cdls, mask, format, ...) \ 218 libcfs_debug_msg(&msgdata, format, ## __VA_ARGS__); \ 222 #define CDEBUG(mask, format, ...) __CDEBUG(NULL, mask, format, ## __VA_ARGS__) 224 #define CDEBUG_LIMIT(mask, format, ...) \ 228 __CDEBUG(&cdls, mask, format, ## __VA_ARGS__); \ 231 #define CWARN(format, ...) CDEBUG_LIMIT(D_WARNING, format, ## __VA_ARGS__) 232 #define CERROR(format, ...) CDEBUG_LIMIT(D_ERROR, format, ## __VA_ARGS__) 233 #define CNETERR(format, a...) CDEBUG_LIMIT(D_NETERROR, format, ## a) 234 #define CEMERG(format, ...) CDEBUG_LIMIT(D_EMERG, format, ## __VA_ARGS__) 236 #define LCONSOLE(mask, format, ...) CDEBUG(D_CONSOLE | (mask), format, ## __VA_ARGS__) 237 #define LCONSOLE_INFO(format, ...) CDEBUG_LIMIT(D_CONSOLE, format, ## __VA_ARGS__) 238 #define LCONSOLE_WARN(format, ...) CDEBUG_LIMIT(D_CONSOLE | D_WARNING, format, ## __VA_ARGS__) 239 #define LCONSOLE_ERROR_MSG(errnum, format, ...) CDEBUG_LIMIT(D_CONSOLE | D_ERROR, \ 240 "%x-%x: " format, errnum, LERRCHKSUM(errnum), ## __VA_ARGS__) 241 #define LCONSOLE_ERROR(format, ...) LCONSOLE_ERROR_MSG(0x00, format, ## __VA_ARGS__) 243 #define LCONSOLE_EMERG(format, ...) CDEBUG(D_CONSOLE | D_EMERG, format, ## __VA_ARGS__)
|
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/ |
H A D | bmi.h | 55 * Request format: 57 * Response format: none 63 * Request format: 67 * Response format: 74 * Request format: 79 * Response format: none 85 * Request format: 89 * Response format: 96 * Request format: 99 * Response format: none 105 * Request format: 108 * Response format: 115 * Request format: 120 * Response format: none 127 * Request format: 142 * Request format: 149 * Response format: 157 * Request format: 161 * Response format: none 167 * Request format: 172 * Response format: none 178 * Request format: 183 * Response format: none 208 * Request format: 213 * Response format: none
|
/linux-4.1.27/include/linux/ |
H A D | ratelimit.h | 55 #define WARN_RATELIMIT(condition, format, ...) \ 63 WARN(rtn, format, ##__VA_ARGS__); \ 73 #define WARN_RATELIMIT(condition, format, ...) \ 75 int rtn = WARN(condition, format, ##__VA_ARGS__); \
|
H A D | dqblk_v1.h | 2 * File with in-memory structures of old quota format
|
H A D | dqblk_v2.h | 2 * Definitions for vfsv0 quota format
|
H A D | flat.h | 7 * support uClinux flat-format executables. 20 * DO NOT make changes or enhancements to the old format please, just work 21 * with the format above, except to fix bugs with old format support.
|
H A D | digsig.h | 32 uint8_t version; /* key format version */ 40 uint8_t version; /* signature format version */
|
H A D | acct.h | 38 * 0: old format (until 2.6.7) with 16 bit uid/gid 41 * 3: new binary incompatible format (64 bytes) 42 * 4: new binary incompatible format (128 bytes) 43 * 5: new binary incompatible format (128 bytes, second half)
|
H A D | mmdebug.h | 41 #define VM_WARN_ONCE(cond, format...) WARN_ONCE(cond, format) 49 #define VM_WARN_ONCE(cond, format...) BUILD_BUG_ON_INVALID(cond)
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | mlx5_core.h | 42 #define mlx5_core_dbg(dev, format, ...) \ 43 pr_debug("%s:%s:%d:(pid %d): " format, \ 47 #define mlx5_core_dbg_mask(dev, mask, format, ...) \ 50 mlx5_core_dbg(dev, format, ##__VA_ARGS__); \ 53 #define mlx5_core_err(dev, format, ...) \ 54 pr_err("%s:%s:%d:(pid %d): " format, \ 58 #define mlx5_core_warn(dev, format, ...) \ 59 pr_warn("%s:%s:%d:(pid %d): " format, \
|
/linux-4.1.27/arch/blackfin/include/asm/ |
H A D | bfin-lq035q1.h | 18 #define LQ035_BGR (1 << 11) /* Use BGR format */ 19 #define LQ035_RGB (0 << 11) /* Use RGB format */
|
/linux-4.1.27/sound/oss/ |
H A D | hex2hex.c | 2 * hex2hex reads stdin in Intel HEX format and produces an 29 ABANDON("File format error"); loadhex() 33 ABANDON("File format error"); loadhex() 38 ABANDON("File format error"); loadhex() 47 ABANDON("File format error"); loadhex() 57 ABANDON("File format error"); loadhex()
|
/linux-4.1.27/drivers/media/platform/soc_camera/ |
H A D | soc_camera_platform.c | 44 mf->width = p->format.width; soc_camera_platform_fill_fmt() 45 mf->height = p->format.height; soc_camera_platform_fill_fmt() 46 mf->code = p->format.code; soc_camera_platform_fill_fmt() 47 mf->colorspace = p->format.colorspace; soc_camera_platform_fill_fmt() 48 mf->field = p->format.field; soc_camera_platform_fill_fmt() 72 *code = p->format.code; soc_camera_platform_enum_fmt() 83 a->c.width = p->format.width; soc_camera_platform_g_crop() 84 a->c.height = p->format.height; soc_camera_platform_g_crop() 97 a->bounds.width = p->format.width; soc_camera_platform_cropcap() 98 a->bounds.height = p->format.height; soc_camera_platform_cropcap()
|
/linux-4.1.27/drivers/gpu/drm/omapdrm/ |
H A D | omap_fb.c | 30 /* per-format info: */ 31 struct format { struct 41 static const struct format formats[] = { 90 const struct format *format; member in struct:omap_framebuffer 135 const struct format *format, int n, int x, int y) get_linear_addr() 140 (x * format->planes[n].stride_bpp) + get_linear_addr() 141 (y * plane->pitch / format->planes[n].sub_y); get_linear_addr() 152 const struct format *format = omap_fb->format; omap_framebuffer_update_scanout() local 156 info->color_mode = format->dss_format; omap_framebuffer_update_scanout() 224 info->paddr = get_linear_addr(plane, format, 0, x, y); omap_framebuffer_update_scanout() 230 info->screen_width /= format->planes[0].stride_bpp; omap_framebuffer_update_scanout() 232 if (format->dss_format == OMAP_DSS_COLOR_NV12) { omap_framebuffer_update_scanout() 240 info->p_uv_addr = get_linear_addr(plane, format, 1, x, y); omap_framebuffer_update_scanout() 385 const struct format *format = NULL; omap_framebuffer_init() local 394 format = &formats[i]; omap_framebuffer_init() 399 if (!format) { omap_framebuffer_init() 400 dev_err(dev->dev, "unsupported pixel format: %4.4s\n", omap_framebuffer_init() 413 omap_fb->format = format; omap_framebuffer_init() 419 if (pitch < (mode_cmd->width * format->planes[i].stride_bpp)) { omap_framebuffer_init() 421 pitch, mode_cmd->width * format->planes[i].stride_bpp); omap_framebuffer_init() 426 if (pitch % format->planes[i].stride_bpp != 0) { omap_framebuffer_init() 429 pitch, format->planes[i].stride_bpp); omap_framebuffer_init() 434 size = pitch * mode_cmd->height / format->planes[i].sub_y; omap_framebuffer_init() 134 get_linear_addr(struct plane *plane, const struct format *format, int n, int x, int y) get_linear_addr() argument
|
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_common.h | 190 #define hw_dbg(hw, format, arg...) \ 191 netdev_dbg(ixgbe_hw_to_netdev(hw), format, ## arg) 192 #define hw_err(hw, format, arg...) \ 193 netdev_err(ixgbe_hw_to_netdev(hw), format, ## arg) 194 #define e_dev_info(format, arg...) \ 195 dev_info(&adapter->pdev->dev, format, ## arg) 196 #define e_dev_warn(format, arg...) \ 197 dev_warn(&adapter->pdev->dev, format, ## arg) 198 #define e_dev_err(format, arg...) \ 199 dev_err(&adapter->pdev->dev, format, ## arg) 200 #define e_dev_notice(format, arg...) \ 201 dev_notice(&adapter->pdev->dev, format, ## arg) 202 #define e_info(msglvl, format, arg...) \ 203 netif_info(adapter, msglvl, adapter->netdev, format, ## arg) 204 #define e_err(msglvl, format, arg...) \ 205 netif_err(adapter, msglvl, adapter->netdev, format, ## arg) 206 #define e_warn(msglvl, format, arg...) \ 207 netif_warn(adapter, msglvl, adapter->netdev, format, ## arg) 208 #define e_crit(msglvl, format, arg...) \ 209 netif_crit(adapter, msglvl, adapter->netdev, format, ## arg)
|
/linux-4.1.27/include/linux/platform_data/ |
H A D | simplefb.h | 19 /* format array, use it to initialize a "struct simplefb_format" array */ 53 * can pass the width, height, stride and format via this platform-data object. 55 * @format must be a format as described in "struct simplefb_format" above. 61 const char *format; member in struct:simplefb_platform_data
|
/linux-4.1.27/drivers/media/platform/omap3isp/ |
H A D | ispccp2.c | 289 u32 val, format; ccp2_lcx_config() local 291 switch (config->format) { ccp2_lcx_config() 293 format = ISPCCP2_LCx_CTRL_FORMAT_RAW8_DPCM10_VP; ccp2_lcx_config() 297 format = ISPCCP2_LCx_CTRL_FORMAT_RAW10_VP; /* RAW10+VP */ ccp2_lcx_config() 311 ISPCCP2_LCx_CTRL_FORMAT_MASK_15_0, format); ccp2_lcx_config() 318 ISPCCP2_LCx_CTRL_FORMAT_MASK, format); ccp2_lcx_config() 351 struct v4l2_mbus_framefmt *format; ccp2_if_configure() local 371 format = &ccp2->formats[CCP2_PAD_SINK]; ccp2_if_configure() 375 ccp2->if_cfg.format = format->code; ccp2_if_configure() 376 ccp2->if_cfg.data_size = format->height; ccp2_if_configure() 468 /* source format is RAW8 */ ccp2_mem_configure() 479 /* source format is RAW10 */ ccp2_mem_configure() 612 * __ccp2_get_format - helper function for getting ccp2 format 616 * @which : wanted subdev format 617 * return format structure or NULL on error 630 * ccp2_try_format - Handle try format by pad subdev method 634 * @fmt : pointer to v4l2 mbus format structure 635 * @which : wanted subdev format 642 struct v4l2_mbus_framefmt *format; ccp2_try_format() local 667 /* Source format - copy sink format and change pixel code ccp2_try_format() 672 format = __ccp2_get_format(ccp2, cfg, CCP2_PAD_SINK, which); ccp2_try_format() 673 memcpy(fmt, format, sizeof(*fmt)); ccp2_try_format() 683 * ccp2_enum_mbus_code - Handle pixel format enumeration 694 struct v4l2_mbus_framefmt *format; ccp2_enum_mbus_code() local 705 format = __ccp2_get_format(ccp2, cfg, CCP2_PAD_SINK, ccp2_enum_mbus_code() 707 code->code = format->code; ccp2_enum_mbus_code() 718 struct v4l2_mbus_framefmt format; ccp2_enum_frame_size() local 723 format.code = fse->code; ccp2_enum_frame_size() 724 format.width = 1; ccp2_enum_frame_size() 725 format.height = 1; ccp2_enum_frame_size() 726 ccp2_try_format(ccp2, cfg, fse->pad, &format, fse->which); ccp2_enum_frame_size() 727 fse->min_width = format.width; ccp2_enum_frame_size() 728 fse->min_height = format.height; ccp2_enum_frame_size() 730 if (format.code != fse->code) ccp2_enum_frame_size() 733 format.code = fse->code; ccp2_enum_frame_size() 734 format.width = -1; ccp2_enum_frame_size() 735 format.height = -1; ccp2_enum_frame_size() 736 ccp2_try_format(ccp2, cfg, fse->pad, &format, fse->which); ccp2_enum_frame_size() 737 fse->max_width = format.width; ccp2_enum_frame_size() 738 fse->max_height = format.height; ccp2_enum_frame_size() 744 * ccp2_get_format - Handle get format by pads subdev method 747 * @fmt : pointer to v4l2 subdev format structure 754 struct v4l2_mbus_framefmt *format; ccp2_get_format() local 756 format = __ccp2_get_format(ccp2, cfg, fmt->pad, fmt->which); ccp2_get_format() 757 if (format == NULL) ccp2_get_format() 760 fmt->format = *format; ccp2_get_format() 765 * ccp2_set_format - Handle set format by pads subdev method 768 * @fmt : pointer to v4l2 subdev format structure 775 struct v4l2_mbus_framefmt *format; ccp2_set_format() local 777 format = __ccp2_get_format(ccp2, cfg, fmt->pad, fmt->which); ccp2_set_format() 778 if (format == NULL) ccp2_set_format() 781 ccp2_try_format(ccp2, cfg, fmt->pad, &fmt->format, fmt->which); ccp2_set_format() 782 *format = fmt->format; ccp2_set_format() 784 /* Propagate the format from sink to source */ ccp2_set_format() 786 format = __ccp2_get_format(ccp2, cfg, CCP2_PAD_SOURCE, ccp2_set_format() 788 *format = fmt->format; ccp2_set_format() 789 ccp2_try_format(ccp2, cfg, CCP2_PAD_SOURCE, format, fmt->which); ccp2_set_format() 806 struct v4l2_subdev_format format; ccp2_init_formats() local 808 memset(&format, 0, sizeof(format)); ccp2_init_formats() 809 format.pad = CCP2_PAD_SINK; ccp2_init_formats() 810 format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE; ccp2_init_formats() 811 format.format.code = MEDIA_BUS_FMT_SGRBG10_1X10; ccp2_init_formats() 812 format.format.width = 4096; ccp2_init_formats() 813 format.format.height = 4096; ccp2_init_formats() 814 ccp2_set_format(sd, fh ? fh->pad : NULL, &format); ccp2_init_formats() 860 struct v4l2_mbus_framefmt *format; ccp2_s_stream() local 862 format = &ccp2->formats[CCP2_PAD_SINK]; ccp2_s_stream() 864 ccp2->mem_cfg.hsize_count = format->width; ccp2_s_stream() 865 ccp2->mem_cfg.vsize_count = format->height; ccp2_s_stream() 1087 * input format and width. If strict 128 bits alignment support is ccp2_init_entities()
|
H A D | ispcsi2.c | 92 /* To set the format on the CSI2 requires a mapping function that takes 97 * - 2 isp revisions (certain format must be handled differently on OMAP3630) 98 * Output should be CSI2 frame format code 99 * Array indices as follows: [format][dest][decompr][is_3630] 163 * csi2_ctx_map_format - Map CSI2 sink media bus format to CSI2 format ID 166 * Returns CSI2 physical format id 190 WARN(1, KERN_ERR "CSI2: pixel format %08x unsupported!\n", csi2_ctx_map_format() 236 * @format_id: mapped format id 590 * The CSI2 receiver can't do any format conversion except DPCM csi2_configure() 621 /* Set configuration (timings, format and links) */ csi2_configure() 853 struct v4l2_mbus_framefmt *format; csi2_try_format() local 874 /* Source format same as sink format, except for DPCM csi2_try_format() 878 format = __csi2_get_format(csi2, cfg, CSI2_PAD_SINK, which); csi2_try_format() 879 memcpy(fmt, format, sizeof(*fmt)); csi2_try_format() 897 * csi2_enum_mbus_code - Handle pixel format enumeration 908 struct v4l2_mbus_framefmt *format; csi2_enum_mbus_code() local 917 format = __csi2_get_format(csi2, cfg, CSI2_PAD_SINK, csi2_enum_mbus_code() 922 code->code = format->code; csi2_enum_mbus_code() 926 info = omap3isp_video_format_info(format->code); csi2_enum_mbus_code() 927 if (info->uncompressed == format->code) csi2_enum_mbus_code() 945 struct v4l2_mbus_framefmt format; csi2_enum_frame_size() local 950 format.code = fse->code; csi2_enum_frame_size() 951 format.width = 1; csi2_enum_frame_size() 952 format.height = 1; csi2_enum_frame_size() 953 csi2_try_format(csi2, cfg, fse->pad, &format, fse->which); csi2_enum_frame_size() 954 fse->min_width = format.width; csi2_enum_frame_size() 955 fse->min_height = format.height; csi2_enum_frame_size() 957 if (format.code != fse->code) csi2_enum_frame_size() 960 format.code = fse->code; csi2_enum_frame_size() 961 format.width = -1; csi2_enum_frame_size() 962 format.height = -1; csi2_enum_frame_size() 963 csi2_try_format(csi2, cfg, fse->pad, &format, fse->which); csi2_enum_frame_size() 964 fse->max_width = format.width; csi2_enum_frame_size() 965 fse->max_height = format.height; csi2_enum_frame_size() 971 * csi2_get_format - Handle get format by pads subdev method 974 * @fmt: pointer to v4l2 subdev format structure 981 struct v4l2_mbus_framefmt *format; csi2_get_format() local 983 format = __csi2_get_format(csi2, cfg, fmt->pad, fmt->which); csi2_get_format() 984 if (format == NULL) csi2_get_format() 987 fmt->format = *format; csi2_get_format() 992 * csi2_set_format - Handle set format by pads subdev method 995 * @fmt: pointer to v4l2 subdev format structure 1002 struct v4l2_mbus_framefmt *format; csi2_set_format() local 1004 format = __csi2_get_format(csi2, cfg, fmt->pad, fmt->which); csi2_set_format() 1005 if (format == NULL) csi2_set_format() 1008 csi2_try_format(csi2, cfg, fmt->pad, &fmt->format, fmt->which); csi2_set_format() 1009 *format = fmt->format; csi2_set_format() 1011 /* Propagate the format from sink to source */ csi2_set_format() 1013 format = __csi2_get_format(csi2, cfg, CSI2_PAD_SOURCE, csi2_set_format() 1015 *format = fmt->format; csi2_set_format() 1016 csi2_try_format(csi2, cfg, CSI2_PAD_SOURCE, format, fmt->which); csi2_set_format() 1033 struct v4l2_subdev_format format; csi2_init_formats() local 1035 memset(&format, 0, sizeof(format)); csi2_init_formats() 1036 format.pad = CSI2_PAD_SINK; csi2_init_formats() 1037 format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE; csi2_init_formats() 1038 format.format.code = MEDIA_BUS_FMT_SGRBG10_1X10; csi2_init_formats() 1039 format.format.width = 4096; csi2_init_formats() 1040 format.format.height = 4096; csi2_init_formats() 1041 csi2_set_format(sd, fh ? fh->pad : NULL, &format); csi2_init_formats()
|
H A D | ispvideo.h | 34 * struct isp_format_info - ISP media bus format information 35 * @code: V4L2 media bus format code 36 * @truncated: V4L2 media bus format code for the same format truncated to 10 37 * bits. Identical to @code if the format is 10 bits wide or less. 38 * @uncompressed: V4L2 media bus format code for the corresponding uncompressed 39 * format. Identical to @code if the format is not DPCM compressed. 40 * @flavor: V4L2 media bus format code for the same pixel layout but 41 * shifted to be 8 bits per pixel. =0 if format is not shiftable. 42 * @pixelformat: V4L2 pixel format FCC identifier 156 struct mutex mutex; /* format and crop settings */ 190 struct v4l2_format format; member in struct:isp_video_fh
|
H A D | ispvideo.c | 132 * @mbus: v4l2_mbus_framefmt format (input) 133 * @pix: v4l2_pix_format format (output) 135 * Fill the output pix structure with information from the input mbus format. 137 * per line value in the pix format and information from the video instance. 193 /* Skip the last format in the loop so that it will be selected if no isp_video_pix_to_mbus() 271 __isp_video_get_format(struct isp_video *video, struct v4l2_format *format) __isp_video_get_format() argument 292 format->type = video->type; __isp_video_get_format() 293 return isp_video_mbus_to_pix(video, &fmt.format, &format->fmt.pix); __isp_video_get_format() 299 struct v4l2_format format; isp_video_check_format() local 302 memcpy(&format, &vfh->format, sizeof(format)); isp_video_check_format() 303 ret = __isp_video_get_format(video, &format); isp_video_check_format() 307 if (vfh->format.fmt.pix.pixelformat != format.fmt.pix.pixelformat || isp_video_check_format() 308 vfh->format.fmt.pix.height != format.fmt.pix.height || isp_video_check_format() 309 vfh->format.fmt.pix.width != format.fmt.pix.width || isp_video_check_format() 310 vfh->format.fmt.pix.bytesperline != format.fmt.pix.bytesperline || isp_video_check_format() 311 vfh->format.fmt.pix.sizeimage != format.fmt.pix.sizeimage || isp_video_check_format() 312 vfh->format.fmt.pix.field != format.fmt.pix.field) isp_video_check_format() 332 sizes[0] = vfh->format.fmt.pix.sizeimage; isp_video_queue_setup() 366 vb2_set_plane_payload(&buffer->vb, 0, vfh->format.fmt.pix.sizeimage); isp_video_buffer_prepare() 613 isp_video_get_format(struct file *file, void *fh, struct v4l2_format *format) isp_video_get_format() argument 618 if (format->type != video->type) isp_video_get_format() 622 *format = vfh->format; isp_video_get_format() 629 isp_video_set_format(struct file *file, void *fh, struct v4l2_format *format) isp_video_set_format() argument 635 if (format->type != video->type) isp_video_set_format() 639 switch (format->fmt.pix.field) { isp_video_set_format() 646 format->fmt.pix.field = V4L2_FIELD_NONE; isp_video_set_format() 653 format->fmt.pix.field = V4L2_FIELD_INTERLACED_TB; isp_video_set_format() 659 format->fmt.pix.field = V4L2_FIELD_NONE; isp_video_set_format() 669 format->fmt.pix.field = V4L2_FIELD_NONE; isp_video_set_format() 674 * format and back to pixel format. isp_video_set_format() 676 isp_video_pix_to_mbus(&format->fmt.pix, &fmt); isp_video_set_format() 677 isp_video_mbus_to_pix(video, &fmt, &format->fmt.pix); isp_video_set_format() 680 vfh->format = *format; isp_video_set_format() 687 isp_video_try_format(struct file *file, void *fh, struct v4l2_format *format) isp_video_try_format() argument 695 if (format->type != video->type) isp_video_try_format() 702 isp_video_pix_to_mbus(&format->fmt.pix, &fmt.format); isp_video_try_format() 710 isp_video_mbus_to_pix(video, &fmt.format, &format->fmt.pix); isp_video_try_format() 736 struct v4l2_subdev_format format; isp_video_get_crop() local 745 /* Try the get crop operation first and fallback to get format if not isp_video_get_crop() 752 format.pad = pad; isp_video_get_crop() 753 format.which = V4L2_SUBDEV_FORMAT_ACTIVE; isp_video_get_crop() 754 ret = v4l2_subdev_call(subdev, pad, get_fmt, NULL, &format); isp_video_get_crop() 760 crop->c.width = format.format.width; isp_video_get_crop() 761 crop->c.height = format.format.height; isp_video_get_crop() 934 omap3isp_video_format_info(fmt.format.code)->width; isp_video_check_external_subdevs() 1030 /* Verify that the currently configured format matches the output of isp_video_streamon() 1038 video->bpl_value = vfh->format.fmt.pix.bytesperline; isp_video_streamon() 1070 pipe->field = vfh->format.fmt.pix.field; isp_video_streamon() 1268 memset(&handle->format, 0, sizeof(handle->format)); isp_video_open() 1269 handle->format.type = video->type; isp_video_open()
|
H A D | ispccdc.c | 138 struct v4l2_mbus_framefmt *format; ccdc_lsc_validate_config() local 164 format = __ccdc_get_format(ccdc, NULL, CCDC_PAD_SINK, ccdc_lsc_validate_config() 166 input_width = format->width; ccdc_lsc_validate_config() 167 input_height = format->height; ccdc_lsc_validate_config() 265 const struct v4l2_mbus_framefmt *format = __ccdc_lsc_enable() local 269 if ((format->code != MEDIA_BUS_FMT_SGRBG10_1X10) && __ccdc_lsc_enable() 270 (format->code != MEDIA_BUS_FMT_SRGGB10_1X10) && __ccdc_lsc_enable() 271 (format->code != MEDIA_BUS_FMT_SBGGR10_1X10) && __ccdc_lsc_enable() 272 (format->code != MEDIA_BUS_FMT_SGBRG10_1X10)) __ccdc_lsc_enable() 810 struct v4l2_mbus_framefmt *format; ccdc_config_vp() local 816 format = &ccdc->formats[CCDC_PAD_SOURCE_VP]; ccdc_config_vp() 818 if (!format->code) { ccdc_config_vp() 819 /* Disable the video port when the input format isn't supported. ccdc_config_vp() 827 (format->width << ISPCCDC_FMT_HORZ_FMTLNH_SHIFT), ccdc_config_vp() 830 ((format->height + 1) << ISPCCDC_FMT_VERT_FMTLNV_SHIFT), ccdc_config_vp() 833 isp_reg_writel(isp, (format->width << ISPCCDC_VP_OUT_HORZ_NUM_SHIFT) | ccdc_config_vp() 834 (format->height << ISPCCDC_VP_OUT_VERT_NUM_SHIFT), ccdc_config_vp() 969 const struct v4l2_mbus_framefmt *format; ccdc_config_sync_if() local 972 format = &ccdc->formats[CCDC_PAD_SINK]; ccdc_config_sync_if() 974 if (format->code == MEDIA_BUS_FMT_YUYV8_2X8 || ccdc_config_sync_if() 975 format->code == MEDIA_BUS_FMT_UYVY8_2X8) { ccdc_config_sync_if() 1023 if (format->code == MEDIA_BUS_FMT_UYVY8_2X8) ccdc_config_sync_if() 1120 struct v4l2_mbus_framefmt *format; ccdc_configure() local 1153 format = &ccdc->formats[CCDC_PAD_SINK]; ccdc_configure() 1156 * input format is a non-BT.656 YUV variant. ccdc_configure() 1161 fmt_info = omap3isp_video_format_info(fmt_src.format.code); ccdc_configure() 1165 fmt_info = omap3isp_video_format_info(format->code); ccdc_configure() 1201 switch (format->code) { ccdc_configure() 1224 isp_reg_writel(isp, ((format->height - 2) << ISPCCDC_VDINT_0_SHIFT) | ccdc_configure() 1225 ((format->height * 2 / 3) << ISPCCDC_VDINT_1_SHIFT), ccdc_configure() 1229 format = &ccdc->formats[CCDC_PAD_SOURCE_OF]; ccdc_configure() 1234 * SYNC mode regardless of the format as the bridge is enabled for YUV ccdc_configure() 1256 format->field); ccdc_configure() 1263 (format->field == V4L2_FIELD_INTERLACED_TB || ccdc_configure() 1264 format->field == V4L2_FIELD_INTERLACED_BT)) ccdc_configure() 1270 if (format->code == MEDIA_BUS_FMT_YUYV8_1X16) ccdc_configure() 1281 if (omap3isp_video_format_info(format->code)->width <= 8 || ccdc->bt656) ccdc_configure() 1564 /* The format is interlaced. Make sure we've captured both fields. */ ccdc_has_all_fields() 1958 * ccdc_try_format - Try video format on a pad 2012 /* Use the user requested format if YUV. */ ccdc_try_format() 2030 /* When input format is interlaced with alternating fields the ccdc_try_format() 2072 * @sink: format on the sink pad 2113 * ccdc_enum_mbus_code - Handle pixel format enumeration 2124 struct v4l2_mbus_framefmt *format; ccdc_enum_mbus_code() local 2135 format = __ccdc_get_format(ccdc, cfg, code->pad, ccdc_enum_mbus_code() 2138 if (format->code == MEDIA_BUS_FMT_YUYV8_2X8 || ccdc_enum_mbus_code() 2139 format->code == MEDIA_BUS_FMT_UYVY8_2X8) { ccdc_enum_mbus_code() 2148 /* In raw mode, no configurable format confversion is ccdc_enum_mbus_code() 2152 code->code = format->code; ccdc_enum_mbus_code() 2159 /* The CCDC supports no configurable format conversion ccdc_enum_mbus_code() 2161 * format code. ccdc_enum_mbus_code() 2166 format = __ccdc_get_format(ccdc, cfg, code->pad, ccdc_enum_mbus_code() 2170 * support the input format. Don't enumerate any pixel code. ccdc_enum_mbus_code() 2172 if (format->code == 0) ccdc_enum_mbus_code() 2175 code->code = format->code; ccdc_enum_mbus_code() 2190 struct v4l2_mbus_framefmt format; ccdc_enum_frame_size() local 2195 format.code = fse->code; ccdc_enum_frame_size() 2196 format.width = 1; ccdc_enum_frame_size() 2197 format.height = 1; ccdc_enum_frame_size() 2198 ccdc_try_format(ccdc, cfg, fse->pad, &format, fse->which); ccdc_enum_frame_size() 2199 fse->min_width = format.width; ccdc_enum_frame_size() 2200 fse->min_height = format.height; ccdc_enum_frame_size() 2202 if (format.code != fse->code) ccdc_enum_frame_size() 2205 format.code = fse->code; ccdc_enum_frame_size() 2206 format.width = -1; ccdc_enum_frame_size() 2207 format.height = -1; ccdc_enum_frame_size() 2208 ccdc_try_format(ccdc, cfg, fse->pad, &format, fse->which); ccdc_enum_frame_size() 2209 fse->max_width = format.width; ccdc_enum_frame_size() 2210 fse->max_height = format.height; ccdc_enum_frame_size() 2230 struct v4l2_mbus_framefmt *format; ccdc_get_selection() local 2242 format = __ccdc_get_format(ccdc, cfg, CCDC_PAD_SINK, sel->which); ccdc_get_selection() 2243 ccdc_try_crop(ccdc, format, &sel->r); ccdc_get_selection() 2272 struct v4l2_mbus_framefmt *format; ccdc_set_selection() local 2282 /* Modifying the crop rectangle always changes the format on the source ccdc_set_selection() 2291 format = __ccdc_get_format(ccdc, cfg, CCDC_PAD_SINK, sel->which); ccdc_set_selection() 2292 ccdc_try_crop(ccdc, format, &sel->r); ccdc_set_selection() 2295 /* Update the source format. */ ccdc_set_selection() 2296 format = __ccdc_get_format(ccdc, cfg, CCDC_PAD_SOURCE_OF, sel->which); ccdc_set_selection() 2297 ccdc_try_format(ccdc, cfg, CCDC_PAD_SOURCE_OF, format, sel->which); ccdc_set_selection() 2303 * ccdc_get_format - Retrieve the video format on a pad 2309 * to the format type. 2315 struct v4l2_mbus_framefmt *format; ccdc_get_format() local 2317 format = __ccdc_get_format(ccdc, cfg, fmt->pad, fmt->which); ccdc_get_format() 2318 if (format == NULL) ccdc_get_format() 2321 fmt->format = *format; ccdc_get_format() 2326 * ccdc_set_format - Set the video format on a pad 2332 * to the format type. 2338 struct v4l2_mbus_framefmt *format; ccdc_set_format() local 2341 format = __ccdc_get_format(ccdc, cfg, fmt->pad, fmt->which); ccdc_set_format() 2342 if (format == NULL) ccdc_set_format() 2345 ccdc_try_format(ccdc, cfg, fmt->pad, &fmt->format, fmt->which); ccdc_set_format() 2346 *format = fmt->format; ccdc_set_format() 2348 /* Propagate the format from sink to source */ ccdc_set_format() 2354 crop->width = fmt->format.width; ccdc_set_format() 2355 crop->height = fmt->format.height; ccdc_set_format() 2357 ccdc_try_crop(ccdc, &fmt->format, crop); ccdc_set_format() 2360 format = __ccdc_get_format(ccdc, cfg, CCDC_PAD_SOURCE_OF, ccdc_set_format() 2362 *format = fmt->format; ccdc_set_format() 2363 ccdc_try_format(ccdc, cfg, CCDC_PAD_SOURCE_OF, format, ccdc_set_format() 2366 format = __ccdc_get_format(ccdc, cfg, CCDC_PAD_SOURCE_VP, ccdc_set_format() 2368 *format = fmt->format; ccdc_set_format() 2369 ccdc_try_format(ccdc, cfg, CCDC_PAD_SOURCE_VP, format, ccdc_set_format() 2414 if (source_fmt->format.width != sink_fmt->format.width || ccdc_link_validate() 2415 source_fmt->format.height != sink_fmt->format.height) ccdc_link_validate() 2430 if (!ccdc_is_shiftable(source_fmt->format.code, ccdc_link_validate() 2431 sink_fmt->format.code, parallel_shift)) ccdc_link_validate() 2448 struct v4l2_subdev_format format; ccdc_init_formats() local 2450 memset(&format, 0, sizeof(format)); ccdc_init_formats() 2451 format.pad = CCDC_PAD_SINK; ccdc_init_formats() 2452 format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE; ccdc_init_formats() 2453 format.format.code = MEDIA_BUS_FMT_SGRBG10_1X10; ccdc_init_formats() 2454 format.format.width = 4096; ccdc_init_formats() 2455 format.format.height = 4096; ccdc_init_formats() 2456 ccdc_set_format(sd, fh ? fh->pad : NULL, &format); ccdc_init_formats()
|
H A D | isppreview.c | 73 * which filters are enabled. To avoid format changes when the filters are 76 * during streaming are enabled when computing sink crop and source format 1003 * preview_config_input_format - Configure the input format 1005 * @info: Sink pad format information 1071 const struct v4l2_mbus_framefmt *format = &prev->formats[PREV_PAD_SINK]; preview_config_input_size() local 1079 if (format->code != MEDIA_BUS_FMT_Y8_1X8 && preview_config_input_size() 1080 format->code != MEDIA_BUS_FMT_Y10_1X10) { preview_config_input_size() 1322 params->cfa.format = OMAP3ISP_CFAFMT_BAYER; preview_init_params() 1389 struct v4l2_mbus_framefmt *format; preview_configure() local 1401 format = &prev->formats[PREV_PAD_SINK]; preview_configure() 1402 info = omap3isp_video_format_info(format->code); preview_configure() 1412 preview_config_inlineoffset(prev, ALIGN(format->width, 0x20) * preview_configure() 1418 format = &prev->formats[PREV_PAD_SOURCE]; preview_configure() 1436 ALIGN(format->width, 0x10) * 2); preview_configure() 1439 preview_config_ycpos(prev, format->code); preview_configure() 1708 /* previewer format descriptions */ 1728 * preview_try_format - Validate a format 1732 * @fmt: format to be validated 1733 * @which: try/active format selector 1735 * Validate and adjust the given format for the given pad based on the preview 1736 * engine limits and the format and crop rectangles on other pads. 1812 * @sink: format on the sink pad 1842 * format. preview_try_crop() 1865 * preview_enum_mbus_code - Handle pixel format enumeration 1900 struct v4l2_mbus_framefmt format; preview_enum_frame_size() local 1905 format.code = fse->code; preview_enum_frame_size() 1906 format.width = 1; preview_enum_frame_size() 1907 format.height = 1; preview_enum_frame_size() 1908 preview_try_format(prev, cfg, fse->pad, &format, fse->which); preview_enum_frame_size() 1909 fse->min_width = format.width; preview_enum_frame_size() 1910 fse->min_height = format.height; preview_enum_frame_size() 1912 if (format.code != fse->code) preview_enum_frame_size() 1915 format.code = fse->code; preview_enum_frame_size() 1916 format.width = -1; preview_enum_frame_size() 1917 format.height = -1; preview_enum_frame_size() 1918 preview_try_format(prev, cfg, fse->pad, &format, fse->which); preview_enum_frame_size() 1919 fse->max_width = format.width; preview_enum_frame_size() 1920 fse->max_height = format.height; preview_enum_frame_size() 1940 struct v4l2_mbus_framefmt *format; preview_get_selection() local 1952 format = __preview_get_format(prev, cfg, PREV_PAD_SINK, preview_get_selection() 1954 preview_try_crop(prev, format, &sel->r); preview_get_selection() 1983 struct v4l2_mbus_framefmt *format; preview_set_selection() local 1993 /* Modifying the crop rectangle always changes the format on the source preview_set_selection() 2002 format = __preview_get_format(prev, cfg, PREV_PAD_SINK, sel->which); preview_set_selection() 2003 preview_try_crop(prev, format, &sel->r); preview_set_selection() 2006 /* Update the source format. */ preview_set_selection() 2007 format = __preview_get_format(prev, cfg, PREV_PAD_SOURCE, sel->which); preview_set_selection() 2008 preview_try_format(prev, cfg, PREV_PAD_SOURCE, format, sel->which); preview_set_selection() 2014 * preview_get_format - Handle get format by pads subdev method 2017 * @fmt: pointer to v4l2 subdev format structure 2024 struct v4l2_mbus_framefmt *format; preview_get_format() local 2026 format = __preview_get_format(prev, cfg, fmt->pad, fmt->which); preview_get_format() 2027 if (format == NULL) preview_get_format() 2030 fmt->format = *format; preview_get_format() 2035 * preview_set_format - Handle set format by pads subdev method 2038 * @fmt: pointer to v4l2 subdev format structure 2045 struct v4l2_mbus_framefmt *format; preview_set_format() local 2048 format = __preview_get_format(prev, cfg, fmt->pad, fmt->which); preview_set_format() 2049 if (format == NULL) preview_set_format() 2052 preview_try_format(prev, cfg, fmt->pad, &fmt->format, fmt->which); preview_set_format() 2053 *format = fmt->format; preview_set_format() 2055 /* Propagate the format from sink to source */ preview_set_format() 2061 crop->width = fmt->format.width; preview_set_format() 2062 crop->height = fmt->format.height; preview_set_format() 2064 preview_try_crop(prev, &fmt->format, crop); preview_set_format() 2066 /* Update the source format. */ preview_set_format() 2067 format = __preview_get_format(prev, cfg, PREV_PAD_SOURCE, preview_set_format() 2069 preview_try_format(prev, cfg, PREV_PAD_SOURCE, format, preview_set_format() 2088 struct v4l2_subdev_format format; preview_init_formats() local 2090 memset(&format, 0, sizeof(format)); preview_init_formats() 2091 format.pad = PREV_PAD_SINK; preview_init_formats() 2092 format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE; preview_init_formats() 2093 format.format.code = MEDIA_BUS_FMT_SGRBG10_1X10; preview_init_formats() 2094 format.format.width = 4096; preview_init_formats() 2095 format.format.height = 4096; preview_init_formats() 2096 preview_set_format(sd, fh ? fh->pad : NULL, &format); preview_init_formats()
|
H A D | ispresizer.c | 112 * __resizer_get_format - helper function for getting resizer format 116 * @which : wanted subdev format 449 * @type: Pixel format type. 526 * For live image pipelines, the data rate is set by the frame format, size and 907 * @input : format on sink pad 908 * @output : format on source pad 1307 * application sets the output format, the current crop rectangle is resizer_set_selection() 1328 /* Update the source format, resizing ratios and crop rectangle. If resizer_set_selection() 1369 * resizer_try_format - Handle try format by pad subdev method 1373 * @fmt : pointer to v4l2 format structure 1374 * @which : wanted subdev format 1381 struct v4l2_mbus_framefmt *format; resizer_try_format() local 1398 format = __resizer_get_format(res, cfg, RESZ_PAD_SINK, which); resizer_try_format() 1399 fmt->code = format->code; resizer_try_format() 1411 * resizer_enum_mbus_code - Handle pixel format enumeration 1422 struct v4l2_mbus_framefmt *format; resizer_enum_mbus_code() local 1433 format = __resizer_get_format(res, cfg, RESZ_PAD_SINK, resizer_enum_mbus_code() 1435 code->code = format->code; resizer_enum_mbus_code() 1446 struct v4l2_mbus_framefmt format; resizer_enum_frame_size() local 1451 format.code = fse->code; resizer_enum_frame_size() 1452 format.width = 1; resizer_enum_frame_size() 1453 format.height = 1; resizer_enum_frame_size() 1454 resizer_try_format(res, cfg, fse->pad, &format, fse->which); resizer_enum_frame_size() 1455 fse->min_width = format.width; resizer_enum_frame_size() 1456 fse->min_height = format.height; resizer_enum_frame_size() 1458 if (format.code != fse->code) resizer_enum_frame_size() 1461 format.code = fse->code; resizer_enum_frame_size() 1462 format.width = -1; resizer_enum_frame_size() 1463 format.height = -1; resizer_enum_frame_size() 1464 resizer_try_format(res, cfg, fse->pad, &format, fse->which); resizer_enum_frame_size() 1465 fse->max_width = format.width; resizer_enum_frame_size() 1466 fse->max_height = format.height; resizer_enum_frame_size() 1472 * resizer_get_format - Handle get format by pads subdev method 1475 * @fmt : pointer to v4l2 subdev format structure 1482 struct v4l2_mbus_framefmt *format; resizer_get_format() local 1484 format = __resizer_get_format(res, cfg, fmt->pad, fmt->which); resizer_get_format() 1485 if (format == NULL) resizer_get_format() 1488 fmt->format = *format; resizer_get_format() 1493 * resizer_set_format - Handle set format by pads subdev method 1496 * @fmt : pointer to v4l2 subdev format structure 1503 struct v4l2_mbus_framefmt *format; resizer_set_format() local 1506 format = __resizer_get_format(res, cfg, fmt->pad, fmt->which); resizer_set_format() 1507 if (format == NULL) resizer_set_format() 1510 resizer_try_format(res, cfg, fmt->pad, &fmt->format, fmt->which); resizer_set_format() 1511 *format = fmt->format; resizer_set_format() 1518 crop->width = fmt->format.width; resizer_set_format() 1519 crop->height = fmt->format.height; resizer_set_format() 1521 /* Propagate the format from sink to source */ resizer_set_format() 1522 format = __resizer_get_format(res, cfg, RESZ_PAD_SOURCE, resizer_set_format() 1524 *format = fmt->format; resizer_set_format() 1525 resizer_try_format(res, cfg, RESZ_PAD_SOURCE, format, resizer_set_format() 1531 * ratios. format already points to the source pad active resizer_set_format() 1532 * format. resizer_set_format() 1535 resizer_calc_ratios(res, &res->crop.active, format, resizer_set_format() 1568 struct v4l2_subdev_format format; resizer_init_formats() local 1570 memset(&format, 0, sizeof(format)); resizer_init_formats() 1571 format.pad = RESZ_PAD_SINK; resizer_init_formats() 1572 format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE; resizer_init_formats() 1573 format.format.code = MEDIA_BUS_FMT_YUYV8_1X16; resizer_init_formats() 1574 format.format.width = 4096; resizer_init_formats() 1575 format.format.height = 4096; resizer_init_formats() 1576 resizer_set_format(sd, fh ? fh->pad : NULL, &format); resizer_init_formats()
|
/linux-4.1.27/drivers/staging/media/davinci_vpfe/ |
H A D | dm365_resizer.c | 85 struct v4l2_mbus_framefmt *format, resizer_validate_output_image_format() 88 if (format->code != MEDIA_BUS_FMT_UYVY8_2X8 && resizer_validate_output_image_format() 89 format->code != MEDIA_BUS_FMT_Y8_1X8 && resizer_validate_output_image_format() 90 format->code != MEDIA_BUS_FMT_UV8_1X8 && resizer_validate_output_image_format() 91 format->code != MEDIA_BUS_FMT_YDYUYDYV8_1X16 && resizer_validate_output_image_format() 92 format->code != MEDIA_BUS_FMT_SGRBG12_1X12) { resizer_validate_output_image_format() 93 dev_err(dev, "Invalid Mbus format, %d\n", format->code); resizer_validate_output_image_format() 96 if (!format->width || !format->height) { resizer_validate_output_image_format() 100 resizer_calculate_line_length(format->code, format->width, resizer_validate_output_image_format() 101 format->height, in_line_len, in_line_len_c); resizer_validate_output_image_format() 255 * output format is YUV420SP. It also 553 "resizer validate output: pix format not supported, %d\n", pix); resizer_validate_input_image_format() 814 .raw_flip = 1, /* flip preserve Raw format */ resizer_set_defualt_configuration() 1289 * __resizer_get_format() - helper function for getting resizer format 1293 * @which: wanted subdev format. 1294 * Retun wanted mbus frame format. 1314 * resizer_try_format() - Handle try format by pad subdev method 1318 * @fmt: pointer to v4l2 format structure. 1319 * @which: wanted subdev format. 1388 * resizer_set_format() - Handle set format by pads subdev method 1391 * @fmt: pointer to v4l2 subdev format structure 1398 struct v4l2_mbus_framefmt *format; resizer_set_format() local 1400 format = __resizer_get_format(sd, cfg, fmt->pad, fmt->which); resizer_set_format() 1401 if (format == NULL) resizer_set_format() 1404 resizer_try_format(sd, cfg, fmt->pad, &fmt->format, fmt->which); resizer_set_format() 1405 *format = fmt->format; resizer_set_format() 1412 resizer->crop_resizer.formats[fmt->pad] = fmt->format; resizer_set_format() 1415 resizer->crop_resizer.formats[fmt->pad] = fmt->format; resizer_set_format() 1417 formats[RESIZER_CROP_PAD_SOURCE2] = fmt->format; resizer_set_format() 1420 resizer->crop_resizer.formats[fmt->pad] = fmt->format; resizer_set_format() 1422 formats[RESIZER_CROP_PAD_SOURCE] = fmt->format; resizer_set_format() 1428 resizer->resizer_a.formats[fmt->pad] = fmt->format; resizer_set_format() 1430 resizer->resizer_a.formats[fmt->pad] = fmt->format; resizer_set_format() 1435 resizer->resizer_b.formats[fmt->pad] = fmt->format; resizer_set_format() 1437 resizer->resizer_b.formats[fmt->pad] = fmt->format; resizer_set_format() 1448 * resizer_get_format() - Retrieve the video format on a pad 1451 * @fmt: pointer to v4l2 subdev format structure 1457 struct v4l2_mbus_framefmt *format; resizer_get_format() local 1459 format = __resizer_get_format(sd, cfg, fmt->pad, fmt->which); resizer_get_format() 1460 if (format == NULL) resizer_get_format() 1463 fmt->format = *format; resizer_get_format() 1478 struct v4l2_mbus_framefmt format; resizer_enum_frame_size() local 1483 format.code = fse->code; resizer_enum_frame_size() 1484 format.width = 1; resizer_enum_frame_size() 1485 format.height = 1; resizer_enum_frame_size() 1486 resizer_try_format(sd, cfg, fse->pad, &format, fse->which); resizer_enum_frame_size() 1487 fse->min_width = format.width; resizer_enum_frame_size() 1488 fse->min_height = format.height; resizer_enum_frame_size() 1490 if (format.code != fse->code) resizer_enum_frame_size() 1493 format.code = fse->code; resizer_enum_frame_size() 1494 format.width = -1; resizer_enum_frame_size() 1495 format.height = -1; resizer_enum_frame_size() 1496 resizer_try_format(sd, cfg, fse->pad, &format, fse->which); resizer_enum_frame_size() 1497 fse->max_width = format.width; resizer_enum_frame_size() 1498 fse->max_height = format.height; resizer_enum_frame_size() 1541 struct v4l2_subdev_format format; resizer_init_formats() local 1544 memset(&format, 0, sizeof(format)); resizer_init_formats() 1545 format.pad = RESIZER_CROP_PAD_SINK; resizer_init_formats() 1546 format.which = which; resizer_init_formats() 1547 format.format.code = MEDIA_BUS_FMT_YUYV8_2X8; resizer_init_formats() 1548 format.format.width = MAX_IN_WIDTH; resizer_init_formats() 1549 format.format.height = MAX_IN_HEIGHT; resizer_init_formats() 1550 resizer_set_format(sd, fh->pad, &format); resizer_init_formats() 1552 memset(&format, 0, sizeof(format)); resizer_init_formats() 1553 format.pad = RESIZER_CROP_PAD_SOURCE; resizer_init_formats() 1554 format.which = which; resizer_init_formats() 1555 format.format.code = MEDIA_BUS_FMT_UYVY8_2X8; resizer_init_formats() 1556 format.format.width = MAX_IN_WIDTH; resizer_init_formats() 1557 format.format.height = MAX_IN_WIDTH; resizer_init_formats() 1558 resizer_set_format(sd, fh->pad, &format); resizer_init_formats() 1560 memset(&format, 0, sizeof(format)); resizer_init_formats() 1561 format.pad = RESIZER_CROP_PAD_SOURCE2; resizer_init_formats() 1562 format.which = which; resizer_init_formats() 1563 format.format.code = MEDIA_BUS_FMT_UYVY8_2X8; resizer_init_formats() 1564 format.format.width = MAX_IN_WIDTH; resizer_init_formats() 1565 format.format.height = MAX_IN_WIDTH; resizer_init_formats() 1566 resizer_set_format(sd, fh->pad, &format); resizer_init_formats() 1568 memset(&format, 0, sizeof(format)); resizer_init_formats() 1569 format.pad = RESIZER_PAD_SINK; resizer_init_formats() 1570 format.which = which; resizer_init_formats() 1571 format.format.code = MEDIA_BUS_FMT_YUYV8_2X8; resizer_init_formats() 1572 format.format.width = MAX_IN_WIDTH; resizer_init_formats() 1573 format.format.height = MAX_IN_HEIGHT; resizer_init_formats() 1574 resizer_set_format(sd, fh->pad, &format); resizer_init_formats() 1576 memset(&format, 0, sizeof(format)); resizer_init_formats() 1577 format.pad = RESIZER_PAD_SOURCE; resizer_init_formats() 1578 format.which = which; resizer_init_formats() 1579 format.format.code = MEDIA_BUS_FMT_UYVY8_2X8; resizer_init_formats() 1580 format.format.width = IPIPE_MAX_OUTPUT_WIDTH_A; resizer_init_formats() 1581 format.format.height = IPIPE_MAX_OUTPUT_HEIGHT_A; resizer_init_formats() 1582 resizer_set_format(sd, fh->pad, &format); resizer_init_formats() 1584 memset(&format, 0, sizeof(format)); resizer_init_formats() 1585 format.pad = RESIZER_PAD_SINK; resizer_init_formats() 1586 format.which = which; resizer_init_formats() 1587 format.format.code = MEDIA_BUS_FMT_YUYV8_2X8; resizer_init_formats() 1588 format.format.width = MAX_IN_WIDTH; resizer_init_formats() 1589 format.format.height = MAX_IN_HEIGHT; resizer_init_formats() 1590 resizer_set_format(sd, fh->pad, &format); resizer_init_formats() 1592 memset(&format, 0, sizeof(format)); resizer_init_formats() 1593 format.pad = RESIZER_PAD_SOURCE; resizer_init_formats() 1594 format.which = which; resizer_init_formats() 1595 format.format.code = MEDIA_BUS_FMT_UYVY8_2X8; resizer_init_formats() 1596 format.format.width = IPIPE_MAX_OUTPUT_WIDTH_B; resizer_init_formats() 1597 format.format.height = IPIPE_MAX_OUTPUT_HEIGHT_B; resizer_init_formats() 1598 resizer_set_format(sd, fh->pad, &format); resizer_init_formats() 84 resizer_validate_output_image_format(struct device *dev, struct v4l2_mbus_framefmt *format, int *in_line_len, int *in_line_len_c) resizer_validate_output_image_format() argument
|
H A D | dm365_isif.c | 225 /* configure format in isif hardware */ 231 struct v4l2_pix_format format; isif_config_format() local 234 v4l2_fill_pix_format(&format, &vpfe_dev->vpfe_isif.formats[pad]); isif_config_format() 235 mbus_to_pix(&vpfe_dev->vpfe_isif.formats[pad], &format); isif_config_format() 237 if (isif_set_pixel_format(vpfe_isif, format.pixelformat) < 0) { isif_config_format() 239 "Failed to set pixel format in isif\n"); isif_config_format() 246 vpfe_isif->crop.width = format.width; isif_config_format() 247 vpfe_isif->crop.height = format.height; isif_config_format() 271 /* set the frame format */ isif_config_format() 279 * isif_try_format() - Try video format on a pad 282 * @fmt: pointer to v4l2 subdev format structure 288 unsigned int width = fmt->format.width; isif_try_format() 289 unsigned int height = fmt->format.height; isif_try_format() 293 if (fmt->format.code == isif_fmts[i]) isif_try_format() 299 fmt->format.code = MEDIA_BUS_FMT_YUYV8_2X8; isif_try_format() 302 fmt->format.width = clamp_t(u32, width, 32, MAX_WIDTH); isif_try_format() 303 fmt->format.height = clamp_t(u32, height, 32, MAX_HEIGHT); isif_try_format() 311 fmt->format.width &= ~15; isif_try_format() 1076 struct v4l2_mbus_framefmt *format; isif_config_raw() local 1080 format = &isif->formats[ISIF_PAD_SINK]; isif_config_raw() 1100 pix_fmt = isif_get_pix_fmt(format->code); isif_config_raw() 1111 * Configure frame format(progressive or interlace) isif_config_raw() 1112 * Configure pixel format (Input mode) isif_config_raw() 1128 if (format->code == MEDIA_BUS_FMT_SGRBG12_1X12) isif_config_raw() 1157 if (format->code == MEDIA_BUS_FMT_SGRBG12_1X12) isif_config_raw() 1229 struct v4l2_mbus_framefmt *format; isif_config_ycbcr() local 1234 format = &isif->formats[ISIF_PAD_SINK]; isif_config_ycbcr() 1243 pix_fmt = isif_get_pix_fmt(format->code); isif_config_ycbcr() 1248 /* configure pixel format or input mode */ isif_config_ycbcr() 1256 switch (format->code) { isif_config_ycbcr() 1316 if (format->code == MEDIA_BUS_FMT_YUYV10_1X20 || isif_config_ycbcr() 1317 format->code == MEDIA_BUS_FMT_YUYV8_1X16) isif_config_ycbcr() 1343 struct v4l2_mbus_framefmt *format; isif_configure() local 1345 format = &isif->formats[ISIF_PAD_SINK]; isif_configure() 1347 switch (format->code) { isif_configure() 1394 * __isif_get_format() - helper function for getting isif format 1398 * @which: wanted subdev format. 1416 * isif_set_format() - set format on pad 1419 * @fmt : pointer to v4l2 subdev format structure 1421 * Return 0 on success or -EINVAL if format or pad is invalid 1429 struct v4l2_mbus_framefmt *format; isif_set_format() local 1431 format = __isif_get_format(isif, cfg, fmt->pad, fmt->which); isif_set_format() 1432 if (format == NULL) isif_set_format() 1436 memcpy(format, &fmt->format, sizeof(*format)); isif_set_format() 1448 * isif_get_format() - Retrieve the video format on a pad 1451 * @fmt: pointer to v4l2 subdev format structure 1454 * to the format type. 1461 struct v4l2_mbus_framefmt *format; isif_get_format() local 1463 format = __isif_get_format(vpfe_isif, cfg, fmt->pad, fmt->which); isif_get_format() 1464 if (format == NULL) isif_get_format() 1467 memcpy(&fmt->format, format, sizeof(fmt->format)); isif_get_format() 1483 struct v4l2_subdev_format format; isif_enum_frame_size() local 1488 format.pad = fse->pad; isif_enum_frame_size() 1489 format.format.code = fse->code; isif_enum_frame_size() 1490 format.format.width = 1; isif_enum_frame_size() 1491 format.format.height = 1; isif_enum_frame_size() 1492 format.which = fse->which; isif_enum_frame_size() 1493 isif_try_format(isif, cfg, &format); isif_enum_frame_size() 1494 fse->min_width = format.format.width; isif_enum_frame_size() 1495 fse->min_height = format.format.height; isif_enum_frame_size() 1497 if (format.format.code != fse->code) isif_enum_frame_size() 1500 format.pad = fse->pad; isif_enum_frame_size() 1501 format.format.code = fse->code; isif_enum_frame_size() 1502 format.format.width = -1; isif_enum_frame_size() 1503 format.format.height = -1; isif_enum_frame_size() 1504 format.which = fse->which; isif_enum_frame_size() 1505 isif_try_format(isif, cfg, &format); isif_enum_frame_size() 1506 fse->max_width = format.format.width; isif_enum_frame_size() 1507 fse->max_height = format.format.height; isif_enum_frame_size() 1551 struct v4l2_mbus_framefmt *format; isif_pad_set_selection() local 1557 format = __isif_get_format(vpfe_isif, cfg, sel->pad, sel->which); isif_pad_set_selection() 1558 if (format == NULL) isif_pad_set_selection() 1569 sel->r.width = format->width; isif_pad_set_selection() 1570 sel->r.height = format->height; isif_pad_set_selection() 1629 struct v4l2_subdev_format format; isif_init_formats() local 1632 memset(&format, 0, sizeof(format)); isif_init_formats() 1633 format.pad = ISIF_PAD_SINK; isif_init_formats() 1634 format.which = V4L2_SUBDEV_FORMAT_TRY; isif_init_formats() 1635 format.format.code = MEDIA_BUS_FMT_SGRBG12_1X12; isif_init_formats() 1636 format.format.width = MAX_WIDTH; isif_init_formats() 1637 format.format.height = MAX_HEIGHT; isif_init_formats() 1638 isif_set_format(sd, fh->pad, &format); isif_init_formats() 1640 memset(&format, 0, sizeof(format)); isif_init_formats() 1641 format.pad = ISIF_PAD_SOURCE; isif_init_formats() 1642 format.which = V4L2_SUBDEV_FORMAT_TRY; isif_init_formats() 1643 format.format.code = MEDIA_BUS_FMT_SGRBG12_1X12; isif_init_formats() 1644 format.format.width = MAX_WIDTH; isif_init_formats() 1645 format.format.height = MAX_HEIGHT; isif_init_formats() 1646 isif_set_format(sd, fh->pad, &format); isif_init_formats()
|
H A D | dm365_ipipeif.c | 545 * ipipeif_enum_mbus_code() - Handle pixel format enumeration 578 * ipipeif_get_format() - Handle get format by pads subdev method 581 * @fmt: pointer to v4l2 subdev format structure 590 fmt->format = ipipeif->formats[fmt->pad]; ipipeif_get_format() 592 fmt->format = *(v4l2_subdev_get_try_format(sd, cfg, fmt->pad)); ipipeif_get_format() 601 * ipipeif_try_format() - Handle try format by pad subdev method 605 * @fmt: pointer to v4l2 format structure. 606 * @which : wanted subdev format 648 struct v4l2_mbus_framefmt format; ipipeif_enum_frame_size() local 653 format.code = fse->code; ipipeif_enum_frame_size() 654 format.width = 1; ipipeif_enum_frame_size() 655 format.height = 1; ipipeif_enum_frame_size() 656 ipipeif_try_format(ipipeif, cfg, fse->pad, &format, fse->which); ipipeif_enum_frame_size() 657 fse->min_width = format.width; ipipeif_enum_frame_size() 658 fse->min_height = format.height; ipipeif_enum_frame_size() 660 if (format.code != fse->code) ipipeif_enum_frame_size() 663 format.code = fse->code; ipipeif_enum_frame_size() 664 format.width = -1; ipipeif_enum_frame_size() 665 format.height = -1; ipipeif_enum_frame_size() 666 ipipeif_try_format(ipipeif, cfg, fse->pad, &format, fse->which); ipipeif_enum_frame_size() 667 fse->max_width = format.width; ipipeif_enum_frame_size() 668 fse->max_height = format.height; ipipeif_enum_frame_size() 674 * __ipipeif_get_format() - helper function for getting ipipeif format 678 * @which: wanted subdev format. 693 * ipipeif_set_format() - Handle set format by pads subdev method 696 * @fmt: pointer to v4l2 subdev format structure 704 struct v4l2_mbus_framefmt *format; ipipeif_set_format() local 706 format = __ipipeif_get_format(ipipeif, cfg, fmt->pad, fmt->which); ipipeif_set_format() 707 if (format == NULL) ipipeif_set_format() 710 ipipeif_try_format(ipipeif, cfg, fmt->pad, &fmt->format, fmt->which); ipipeif_set_format() 711 *format = fmt->format; ipipeif_set_format() 718 ipipeif->formats[fmt->pad] = fmt->format; ipipeif_set_format() 721 ipipeif->formats[fmt->pad] = fmt->format; ipipeif_set_format() 764 struct v4l2_subdev_format format; ipipeif_init_formats() local 766 memset(&format, 0, sizeof(format)); ipipeif_init_formats() 767 format.pad = IPIPEIF_PAD_SINK; ipipeif_init_formats() 768 format.which = V4L2_SUBDEV_FORMAT_TRY; ipipeif_init_formats() 769 format.format.code = MEDIA_BUS_FMT_SGRBG12_1X12; ipipeif_init_formats() 770 format.format.width = IPIPE_MAX_OUTPUT_WIDTH_A; ipipeif_init_formats() 771 format.format.height = IPIPE_MAX_OUTPUT_HEIGHT_A; ipipeif_init_formats() 772 ipipeif_set_format(sd, fh->pad, &format); ipipeif_init_formats() 774 memset(&format, 0, sizeof(format)); ipipeif_init_formats() 775 format.pad = IPIPEIF_PAD_SOURCE; ipipeif_init_formats() 776 format.which = V4L2_SUBDEV_FORMAT_TRY; ipipeif_init_formats() 777 format.format.code = MEDIA_BUS_FMT_UYVY8_2X8; ipipeif_init_formats() 778 format.format.width = IPIPE_MAX_OUTPUT_WIDTH_A; ipipeif_init_formats() 779 format.format.height = IPIPE_MAX_OUTPUT_HEIGHT_A; ipipeif_init_formats() 780 ipipeif_set_format(sd, fh->pad, &format); ipipeif_init_formats()
|
H A D | dm365_ipipe.c | 38 /* ipipe input format's */ 46 /* ipipe output format's */ 1414 * __ipipe_get_format() - helper function for getting ipipe format 1418 * @which: wanted subdev format. 1433 * ipipe_try_format() - Handle try format by pad subdev method 1437 * @fmt: pointer to v4l2 format structure. 1438 * @which : wanted subdev format 1476 * ipipe_set_format() - Handle set format by pads subdev method 1479 * @fmt: pointer to v4l2 subdev format structure 1487 struct v4l2_mbus_framefmt *format; ipipe_set_format() local 1489 format = __ipipe_get_format(ipipe, cfg, fmt->pad, fmt->which); ipipe_set_format() 1490 if (format == NULL) ipipe_set_format() 1493 ipipe_try_format(ipipe, cfg, fmt->pad, &fmt->format, fmt->which); ipipe_set_format() 1494 *format = fmt->format; ipipe_set_format() 1502 ipipe->formats[fmt->pad] = fmt->format; ipipe_set_format() 1505 ipipe->formats[fmt->pad] = fmt->format; ipipe_set_format() 1513 * ipipe_get_format() - Handle get format by pads subdev method. 1516 * @fmt: pointer to v4l2 subdev format structure. 1525 fmt->format = ipipe->formats[fmt->pad]; ipipe_get_format() 1527 fmt->format = *(v4l2_subdev_get_try_format(sd, cfg, fmt->pad)); ipipe_get_format() 1543 struct v4l2_mbus_framefmt format; ipipe_enum_frame_size() local 1548 format.code = fse->code; ipipe_enum_frame_size() 1549 format.width = 1; ipipe_enum_frame_size() 1550 format.height = 1; ipipe_enum_frame_size() 1551 ipipe_try_format(ipipe, cfg, fse->pad, &format, fse->which); ipipe_enum_frame_size() 1552 fse->min_width = format.width; ipipe_enum_frame_size() 1553 fse->min_height = format.height; ipipe_enum_frame_size() 1555 if (format.code != fse->code) ipipe_enum_frame_size() 1558 format.code = fse->code; ipipe_enum_frame_size() 1559 format.width = -1; ipipe_enum_frame_size() 1560 format.height = -1; ipipe_enum_frame_size() 1561 ipipe_try_format(ipipe, cfg, fse->pad, &format, fse->which); ipipe_enum_frame_size() 1562 fse->max_width = format.width; ipipe_enum_frame_size() 1563 fse->max_height = format.height; ipipe_enum_frame_size() 1637 struct v4l2_subdev_format format; ipipe_init_formats() local 1639 memset(&format, 0, sizeof(format)); ipipe_init_formats() 1640 format.pad = IPIPE_PAD_SINK; ipipe_init_formats() 1641 format.which = V4L2_SUBDEV_FORMAT_TRY; ipipe_init_formats() 1642 format.format.code = MEDIA_BUS_FMT_SGRBG12_1X12; ipipe_init_formats() 1643 format.format.width = IPIPE_MAX_OUTPUT_WIDTH_A; ipipe_init_formats() 1644 format.format.height = IPIPE_MAX_OUTPUT_HEIGHT_A; ipipe_init_formats() 1645 ipipe_set_format(sd, fh->pad, &format); ipipe_init_formats() 1647 memset(&format, 0, sizeof(format)); ipipe_init_formats() 1648 format.pad = IPIPE_PAD_SOURCE; ipipe_init_formats() 1649 format.which = V4L2_SUBDEV_FORMAT_TRY; ipipe_init_formats() 1650 format.format.code = MEDIA_BUS_FMT_UYVY8_2X8; ipipe_init_formats() 1651 format.format.width = IPIPE_MAX_OUTPUT_WIDTH_A; ipipe_init_formats() 1652 format.format.height = IPIPE_MAX_OUTPUT_HEIGHT_A; ipipe_init_formats() 1653 ipipe_set_format(sd, fh->pad, &format); ipipe_init_formats()
|
H A D | dm365_isif.h | 68 /* v4l2 pixel format */ 70 /* isif pixel format */ 72 /* isif frame format */ 115 /* v4l2 pixel format */ 117 /* isif pixel format */ 119 /* isif frame format */
|
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp4/ |
H A D | mdp4_plane.c | 204 const struct mdp_format *format; mdp4_plane_mode_set() local 224 format = to_mdp_format(msm_framebuffer_format(fb)); mdp4_plane_mode_set() 250 if (MDP_FORMAT_IS_YUV(format)) { mdp4_plane_mode_set() 266 if (MDP_FORMAT_IS_YUV(format)) { mdp4_plane_mode_set() 298 MDP4_PIPE_SRC_FORMAT_A_BPC(format->bpc_a) | mdp4_plane_mode_set() 299 MDP4_PIPE_SRC_FORMAT_R_BPC(format->bpc_r) | mdp4_plane_mode_set() 300 MDP4_PIPE_SRC_FORMAT_G_BPC(format->bpc_g) | mdp4_plane_mode_set() 301 MDP4_PIPE_SRC_FORMAT_B_BPC(format->bpc_b) | mdp4_plane_mode_set() 302 COND(format->alpha_enable, MDP4_PIPE_SRC_FORMAT_ALPHA_ENABLE) | mdp4_plane_mode_set() 303 MDP4_PIPE_SRC_FORMAT_CPP(format->cpp - 1) | mdp4_plane_mode_set() 304 MDP4_PIPE_SRC_FORMAT_UNPACK_COUNT(format->unpack_count - 1) | mdp4_plane_mode_set() 305 MDP4_PIPE_SRC_FORMAT_FETCH_PLANES(format->fetch_type) | mdp4_plane_mode_set() 306 MDP4_PIPE_SRC_FORMAT_CHROMA_SAMP(format->chroma_sample) | mdp4_plane_mode_set() 307 COND(format->unpack_tight, MDP4_PIPE_SRC_FORMAT_UNPACK_TIGHT)); mdp4_plane_mode_set() 310 MDP4_PIPE_SRC_UNPACK_ELEM0(format->unpack[0]) | mdp4_plane_mode_set() 311 MDP4_PIPE_SRC_UNPACK_ELEM1(format->unpack[1]) | mdp4_plane_mode_set() 312 MDP4_PIPE_SRC_UNPACK_ELEM2(format->unpack[2]) | mdp4_plane_mode_set() 313 MDP4_PIPE_SRC_UNPACK_ELEM3(format->unpack[3])); mdp4_plane_mode_set() 315 if (MDP_FORMAT_IS_YUV(format)) { mdp4_plane_mode_set()
|
/linux-4.1.27/drivers/isdn/capi/ |
H A D | kcapi.h | 19 #define DBG(format, arg...) do { \ 20 printk(KERN_DEBUG "%s: " format "\n" , __func__ , ## arg); \ 23 #define DBG(format, arg...) /* */
|
/linux-4.1.27/drivers/input/mouse/ |
H A D | psmouse.h | 172 #define psmouse_dbg(psmouse, format, ...) \ 174 psmouse_fmt(format), ##__VA_ARGS__) 175 #define psmouse_info(psmouse, format, ...) \ 177 psmouse_fmt(format), ##__VA_ARGS__) 178 #define psmouse_warn(psmouse, format, ...) \ 180 psmouse_fmt(format), ##__VA_ARGS__) 181 #define psmouse_err(psmouse, format, ...) \ 183 psmouse_fmt(format), ##__VA_ARGS__) 184 #define psmouse_notice(psmouse, format, ...) \ 186 psmouse_fmt(format), ##__VA_ARGS__) 187 #define psmouse_printk(level, psmouse, format, ...) \ 190 psmouse_fmt(format), ##__VA_ARGS__)
|
/linux-4.1.27/tools/lib/api/fs/ |
H A D | findfs.c | 30 char format[128]; find_mountpoint() local 51 snprintf(format, 128, "%%*s %%%ds %%99s %%*s %%*d %%*d\n", len); find_mountpoint() 53 while (fscanf(fp, format, mountpoint, type) == 2) { find_mountpoint()
|
/linux-4.1.27/include/keys/ |
H A D | encrypted-type.h | 23 char *format; /* datablob: format */ member in struct:encrypted_key_payload 31 unsigned short encrypted_key_format; /* encrypted key format */
|
/linux-4.1.27/sound/soc/codecs/ |
H A D | si476x.c | 79 u16 format = 0; si476x_codec_set_dai_fmt() local 86 format |= SI476X_DAUDIO_MODE_DSP_A; si476x_codec_set_dai_fmt() 89 format |= SI476X_DAUDIO_MODE_DSP_B; si476x_codec_set_dai_fmt() 92 format |= SI476X_DAUDIO_MODE_I2S; si476x_codec_set_dai_fmt() 95 format |= SI476X_DAUDIO_MODE_RIGHT_J; si476x_codec_set_dai_fmt() 98 format |= SI476X_DAUDIO_MODE_LEFT_J; si476x_codec_set_dai_fmt() 111 format |= SI476X_DAUDIO_MODE_IB; si476x_codec_set_dai_fmt() 124 format |= SI476X_DAUDIO_MODE_IB | si476x_codec_set_dai_fmt() 128 format |= SI476X_DAUDIO_MODE_IB; si476x_codec_set_dai_fmt() 131 format |= SI476X_DAUDIO_MODE_IF; si476x_codec_set_dai_fmt() 145 format); si476x_codec_set_dai_fmt() 150 dev_err(codec_dai->codec->dev, "Failed to set output format\n"); si476x_codec_set_dai_fmt()
|
H A D | pcm1792a.c | 75 unsigned int format; member in struct:pcm1792a_private 80 unsigned int format) pcm1792a_set_dai_fmt() 85 priv->format = format; pcm1792a_set_dai_fmt() 114 switch (priv->format & SND_SOC_DAIFMT_FORMAT_MASK) { pcm1792a_hw_params() 142 dev_err(codec->dev, "Invalid DAI format\n"); pcm1792a_hw_params() 79 pcm1792a_set_dai_fmt(struct snd_soc_dai *codec_dai, unsigned int format) pcm1792a_set_dai_fmt() argument
|
/linux-4.1.27/drivers/mtd/ |
H A D | sm_ftl.h | 77 #define sm_printk(format, ...) \ 78 printk(KERN_WARNING "sm_ftl" ": " format "\n", ## __VA_ARGS__) 80 #define dbg(format, ...) \ 82 printk(KERN_DEBUG "sm_ftl" ": " format "\n", ## __VA_ARGS__) 84 #define dbg_verbose(format, ...) \ 86 printk(KERN_DEBUG "sm_ftl" ": " format "\n", ## __VA_ARGS__)
|
/linux-4.1.27/drivers/media/dvb-frontends/ |
H A D | stv6110x_priv.h | 32 #define dprintk(__y, __z, format, arg...) do { \ 35 printk(KERN_ERR "%s: " format "\n", __func__ , ##arg); \ 37 printk(KERN_NOTICE "%s: " format "\n", __func__ , ##arg); \ 39 printk(KERN_INFO "%s: " format "\n", __func__ , ##arg); \ 41 printk(KERN_DEBUG "%s: " format "\n", __func__ , ##arg); \ 44 printk(format, ##arg); \
|
H A D | stv090x_priv.h | 33 #define dprintk(__y, __z, format, arg...) do { \ 36 printk(KERN_ERR "%s: " format "\n", __func__ , ##arg); \ 38 printk(KERN_NOTICE "%s: " format "\n", __func__ , ##arg); \ 40 printk(KERN_INFO "%s: " format "\n", __func__ , ##arg); \ 42 printk(KERN_DEBUG "%s: " format "\n", __func__ , ##arg); \ 45 printk(format, ##arg); \
|
/linux-4.1.27/drivers/hwmon/pmbus/ |
H A D | max34440.c | 207 .format[PSC_VOLTAGE_IN] = direct, 208 .format[PSC_VOLTAGE_OUT] = direct, 209 .format[PSC_TEMPERATURE] = direct, 210 .format[PSC_CURRENT_OUT] = direct, 249 .format[PSC_VOLTAGE_IN] = direct, 250 .format[PSC_VOLTAGE_OUT] = direct, 251 .format[PSC_TEMPERATURE] = direct, 252 .format[PSC_CURRENT_OUT] = direct, 253 .format[PSC_FAN] = direct, 292 .format[PSC_VOLTAGE_IN] = direct, 293 .format[PSC_VOLTAGE_OUT] = direct, 294 .format[PSC_TEMPERATURE] = direct, 295 .format[PSC_CURRENT_OUT] = direct, 296 .format[PSC_POWER] = direct, 329 .format[PSC_VOLTAGE_OUT] = direct, 330 .format[PSC_TEMPERATURE] = direct, 360 .format[PSC_VOLTAGE_OUT] = direct, 361 .format[PSC_TEMPERATURE] = direct,
|
H A D | tps40422.c | 26 .format[PSC_VOLTAGE_IN] = linear, 27 .format[PSC_VOLTAGE_OUT] = linear, 28 .format[PSC_TEMPERATURE] = linear,
|
H A D | max16064.c | 79 .format[PSC_VOLTAGE_IN] = direct, 80 .format[PSC_VOLTAGE_OUT] = direct, 81 .format[PSC_TEMPERATURE] = direct,
|
/linux-4.1.27/drivers/ide/ |
H A D | ide-gd.h | 32 /* Current format */ 34 /* Last format capacity descriptor */
|
H A D | sc1200.c | 66 * Here are the standard PIO mode 0-4 timings for each "format". 85 unsigned int basereg = hwif->channel ? 0x50 : 0x40, format = 0; sc1200_tunepio() local 87 pci_read_config_dword(pdev, basereg + 4, &format); sc1200_tunepio() 88 format = (format >> 31) & 1; sc1200_tunepio() 89 if (format) sc1200_tunepio() 90 format += sc1200_get_pci_clock(); sc1200_tunepio() 92 sc1200_pio_timings[format][pio]); sc1200_tunepio() 160 timings |= reg & 0x80000000; /* preserve PIO format bit */ sc1200_set_dma_mode()
|
/linux-4.1.27/drivers/media/platform/exynos4-is/ |
H A D | fimc-isp.c | 63 * fimc_isp_find_format - lookup color format by fourcc or media bus code 132 struct v4l2_mbus_framefmt *mf = &fmt->format; fimc_isp_subdev_get_fmt() 144 /* ISP OTF input image format */ fimc_isp_subdev_get_fmt() 147 /* ISP OTF output image format */ fimc_isp_subdev_get_fmt() 168 struct v4l2_mbus_framefmt *mf = &fmt->format; __isp_subdev_try_format() 169 struct v4l2_mbus_framefmt *format; __isp_subdev_try_format() local 181 format = v4l2_subdev_get_try_format(&isp->subdev, cfg, __isp_subdev_try_format() 184 format = &isp->sink_fmt; __isp_subdev_try_format() 186 /* Allow changing format only on sink pad */ __isp_subdev_try_format() 187 mf->width = format->width - FIMC_ISP_CAC_MARGIN_WIDTH; __isp_subdev_try_format() 188 mf->height = format->height - FIMC_ISP_CAC_MARGIN_HEIGHT; __isp_subdev_try_format() 194 mf->code = format->code; __isp_subdev_try_format() 205 struct v4l2_mbus_framefmt *mf = &fmt->format; fimc_isp_subdev_set_fmt() 216 *mf = fmt->format; fimc_isp_subdev_set_fmt() 218 /* Propagate format to the source pads */ fimc_isp_subdev_set_fmt() 220 struct v4l2_subdev_format format = *fmt; fimc_isp_subdev_set_fmt() local 225 format.pad = pad; fimc_isp_subdev_set_fmt() 226 __isp_subdev_try_format(isp, cfg, &format); fimc_isp_subdev_set_fmt() 228 *mf = format.format; fimc_isp_subdev_set_fmt() 234 struct v4l2_subdev_format format = *fmt; fimc_isp_subdev_set_fmt() local 238 format.pad = FIMC_ISP_SD_PAD_SRC_DMA; fimc_isp_subdev_set_fmt() 239 __isp_subdev_try_format(isp, cfg, &format); fimc_isp_subdev_set_fmt() 241 isp->src_fmt = format.format; fimc_isp_subdev_set_fmt() 370 struct v4l2_mbus_framefmt *format; fimc_isp_subdev_open() local 372 format = v4l2_subdev_get_try_format(sd, fh->pad, FIMC_ISP_SD_PAD_SINK); fimc_isp_subdev_open() 379 *format = fmt; fimc_isp_subdev_open() 381 format = v4l2_subdev_get_try_format(sd, fh->pad, FIMC_ISP_SD_PAD_SRC_FIFO); fimc_isp_subdev_open() 384 *format = fmt; fimc_isp_subdev_open() 386 format = v4l2_subdev_get_try_format(sd, fh->pad, FIMC_ISP_SD_PAD_SRC_DMA); fimc_isp_subdev_open() 387 *format = fmt; fimc_isp_subdev_open()
|
H A D | fimc-isp-video.c | 57 fmt = isp->video_capture.format; isp_video_capture_queue_setup() 108 video->buf_count, video->format->memplanes, isp_video_capture_start_streaming() 166 if (video->format == NULL) isp_video_capture_buffer_prepare() 169 for (i = 0; i < video->format->memplanes; i++) { isp_video_capture_buffer_prepare() 209 unsigned int num_planes = video->format->memplanes; isp_video_capture_buffer_queue() 431 dma->format = DMA_OUTPUT_FORMAT_BAYER; isp_video_s_fmt_mplane() 440 isp->video_capture.format = ifmt; isp_video_s_fmt_mplane() 447 * Check for source/sink format differences at each link. 458 /* Retrieve format at the sink pad */ isp_video_pipeline_validate() 468 /* Retrieve format at the source pad */ isp_video_pipeline_validate() 481 if (src_fmt.format.width != sink_fmt.format.width || isp_video_pipeline_validate() 482 src_fmt.format.height != sink_fmt.format.height || isp_video_pipeline_validate() 483 src_fmt.format.code != sink_fmt.format.code) isp_video_pipeline_validate() 586 iv->format = fimc_isp_find_format(NULL, NULL, 0); fimc_isp_video_device_register() 589 iv->pixfmt.pixelformat = iv->format->fourcc; fimc_isp_video_device_register()
|
/linux-4.1.27/drivers/pci/hotplug/ |
H A D | rpaphp.h | 50 #define dbg(format, arg...) \ 53 printk(KERN_DEBUG "%s: " format, \ 56 #define err(format, arg...) printk(KERN_ERR "%s: " format, MY_NAME , ## arg) 57 #define info(format, arg...) printk(KERN_INFO "%s: " format, MY_NAME , ## arg) 58 #define warn(format, arg...) printk(KERN_WARNING "%s: " format, MY_NAME , ## arg)
|
H A D | pciehp.h | 47 #define dbg(format, arg...) \ 50 printk(KERN_DEBUG "%s: " format, MY_NAME , ## arg); \ 52 #define err(format, arg...) \ 53 printk(KERN_ERR "%s: " format, MY_NAME , ## arg) 54 #define info(format, arg...) \ 55 printk(KERN_INFO "%s: " format, MY_NAME , ## arg) 56 #define warn(format, arg...) \ 57 printk(KERN_WARNING "%s: " format, MY_NAME , ## arg) 59 #define ctrl_dbg(ctrl, format, arg...) \ 63 format, ## arg); \ 65 #define ctrl_err(ctrl, format, arg...) \ 66 dev_err(&ctrl->pcie->device, format, ## arg) 67 #define ctrl_info(ctrl, format, arg...) \ 68 dev_info(&ctrl->pcie->device, format, ## arg) 69 #define ctrl_warn(ctrl, format, arg...) \ 70 dev_warn(&ctrl->pcie->device, format, ## arg)
|
H A D | shpchp.h | 50 #define dbg(format, arg...) \ 53 printk(KERN_DEBUG "%s: " format, MY_NAME , ## arg); \ 55 #define err(format, arg...) \ 56 printk(KERN_ERR "%s: " format, MY_NAME , ## arg) 57 #define info(format, arg...) \ 58 printk(KERN_INFO "%s: " format, MY_NAME , ## arg) 59 #define warn(format, arg...) \ 60 printk(KERN_WARNING "%s: " format, MY_NAME , ## arg) 62 #define ctrl_dbg(ctrl, format, arg...) \ 66 format, ## arg); \ 68 #define ctrl_err(ctrl, format, arg...) \ 69 dev_err(&ctrl->pci_dev->dev, format, ## arg) 70 #define ctrl_info(ctrl, format, arg...) \ 71 dev_info(&ctrl->pci_dev->dev, format, ## arg) 72 #define ctrl_warn(ctrl, format, arg...) \ 73 dev_warn(&ctrl->pci_dev->dev, format, ## arg)
|
/linux-4.1.27/arch/m68k/math-emu/ |
H A D | fp_trig.h | 25 the arguments to these are in the "internal" extended format, that 26 is, an "exploded" version of the 96-bit extended fp format used by
|
/linux-4.1.27/tools/perf/ui/tui/ |
H A D | helpline.c | 29 static int tui_helpline__show(const char *format, va_list ap) tui_helpline__show() argument 36 sizeof(ui_helpline__last_msg) - backlog, format, ap); tui_helpline__show()
|
H A D | util.c | 226 static int __ui__warning(const char *title, const char *format, va_list args) __ui__warning() argument 230 if (vasprintf(&s, format, args) > 0) { __ui__warning() 239 vfprintf(stderr, format, args); __ui__warning() 243 static int perf_tui__error(const char *format, va_list args) perf_tui__error() argument 245 return __ui__warning("Error:", format, args); perf_tui__error() 248 static int perf_tui__warning(const char *format, va_list args) perf_tui__warning() argument 250 return __ui__warning("Warning:", format, args); perf_tui__warning()
|
/linux-4.1.27/drivers/gpu/drm/rcar-du/ |
H A D | rcar_du_plane.c | 64 if (state->format->planes == 2) rcar_du_plane_setup_fb() 67 mwr = fb->pitches[0] * 8 / state->format->bpp; rcar_du_plane_setup_fb() 69 if (interlaced && state->format->bpp == 32) rcar_du_plane_setup_fb() 88 (!interlaced && state->format->bpp == 32 ? 2 : 1)); rcar_du_plane_setup_fb() 93 if (state->format->planes == 2) { rcar_du_plane_setup_fb() 100 (state->format->bpp == 16 ? 2 : 1) / 2); rcar_du_plane_setup_fb() 126 if (state->format->fourcc != DRM_FORMAT_XRGB1555) rcar_du_plane_setup_mode() 132 pnmr = PnMR_BM_MD | state->format->pnmr; rcar_du_plane_setup_mode() 142 if (state->format->fourcc == DRM_FORMAT_YUYV) rcar_du_plane_setup_mode() 147 switch (state->format->fourcc) { rcar_du_plane_setup_mode() 180 /* Data format __rcar_du_plane_setup() 182 * The data format is selected by the DDDF field in PnMR and the EDF __rcar_du_plane_setup() 187 ddcr4 |= state->format->edf | PnDDCR4_CODE; __rcar_du_plane_setup() 191 if (state->format->planes == 2) { __rcar_du_plane_setup() 193 if (state->format->fourcc == DRM_FORMAT_NV12 || __rcar_du_plane_setup() 194 state->format->fourcc == DRM_FORMAT_NV21) __rcar_du_plane_setup() 197 if (state->format->fourcc == DRM_FORMAT_NV21) __rcar_du_plane_setup() 228 if (state->format->planes == 2) rcar_du_plane_setup() 242 rstate->format = NULL; rcar_du_plane_atomic_check() 252 rstate->format = rcar_du_format_info(state->fb->pixel_format); rcar_du_plane_atomic_check() 253 if (rstate->format == NULL) { rcar_du_plane_atomic_check() 254 dev_dbg(rcdu->dev, "%s: unsupported format %08x\n", __func__, rcar_du_plane_atomic_check() 408 * integer in XRGB8888 format. Bit 24 is used as a flag to disable (0) rcar_du_planes_init()
|
/linux-4.1.27/drivers/video/fbdev/ |
H A D | simplefb.c | 94 struct simplefb_format *format; member in struct:simplefb_params 102 const char *format; simplefb_parse_dt() local 123 ret = of_property_read_string(np, "format", &format); simplefb_parse_dt() 125 dev_err(&pdev->dev, "Can't parse format property\n"); simplefb_parse_dt() 128 params->format = NULL; simplefb_parse_dt() 130 if (strcmp(format, simplefb_formats[i].name)) simplefb_parse_dt() 132 params->format = &simplefb_formats[i]; simplefb_parse_dt() 135 if (!params->format) { simplefb_parse_dt() 136 dev_err(&pdev->dev, "Invalid format value\n"); simplefb_parse_dt() 153 params->format = NULL; simplefb_parse_pd() 155 if (strcmp(pd->format, simplefb_formats[i].name)) simplefb_parse_pd() 158 params->format = &simplefb_formats[i]; simplefb_parse_pd() 162 if (!params->format) { simplefb_parse_pd() 163 dev_err(&pdev->dev, "Invalid format value\n"); simplefb_parse_pd() 314 info->var.bits_per_pixel = params.format->bits_per_pixel; simplefb_probe() 315 info->var.red = params.format->red; simplefb_probe() 316 info->var.green = params.format->green; simplefb_probe() 317 info->var.blue = params.format->blue; simplefb_probe() 318 info->var.transp = params.format->transp; simplefb_probe() 345 dev_info(&pdev->dev, "format=%s, mode=%dx%dx%d, linelength=%d\n", simplefb_probe() 346 params.format->name, simplefb_probe()
|
/linux-4.1.27/drivers/input/serio/ |
H A D | i8042.h | 70 #define dbg(format, arg...) \ 73 printk(KERN_DEBUG KBUILD_MODNAME ": [%d] " format, \ 78 #define dbg(format, arg...) \ 81 printk(KERN_DEBUG pr_fmt(format), ##arg); \
|
/linux-4.1.27/drivers/block/ |
H A D | rbd_types.h | 18 /* For format version 2, rbd image 'foo' consists of objects 24 * Clients do not access header data directly in rbd format 2. 32 * For format version 1, rbd image 'foo' consists of objects 37 * There is no notion of a persistent image id in rbd format 1.
|
/linux-4.1.27/arch/mips/boot/dts/include/dt-bindings/gpio/ |
H A D | gpio.h | 5 * In most cases, the format of the flags cell uses the standard values
|
/linux-4.1.27/arch/mips/boot/dts/include/dt-bindings/interrupt-controller/ |
H A D | irq.h | 5 * In most cases, the format of the flags cell uses the standard values
|
/linux-4.1.27/arch/mips/boot/dts/include/dt-bindings/pwm/ |
H A D | pwm.h | 5 * In most cases, the format of the flags cell uses the standard values
|
/linux-4.1.27/fs/xfs/libxfs/ |
H A D | xfs_cksum.h | 29 * Convert the intermediate checksum to the final ondisk format. 31 * The CRC32c calculation uses LE format even on BE machines, but returns the 32 * result in host endian format. Hence we need to byte swap it back to LE format
|
/linux-4.1.27/arch/s390/include/uapi/asm/ |
H A D | cmb.h | 17 * @device_busy_time: time of device busy (ext. format) 18 * @initial_command_response_time: initial command response time (ext. format) 33 /* basic and exended format: */ 41 /* extended format only: */
|
/linux-4.1.27/arch/nios2/boot/compressed/ |
H A D | Makefile | 16 LDFLAGS_piggy.o := -r --format binary --oformat elf32-littlenios2 -T
|
/linux-4.1.27/arch/powerpc/boot/dts/include/dt-bindings/gpio/ |
H A D | gpio.h | 5 * In most cases, the format of the flags cell uses the standard values
|
/linux-4.1.27/arch/powerpc/boot/dts/include/dt-bindings/interrupt-controller/ |
H A D | irq.h | 5 * In most cases, the format of the flags cell uses the standard values
|
/linux-4.1.27/arch/powerpc/boot/dts/include/dt-bindings/pwm/ |
H A D | pwm.h | 5 * In most cases, the format of the flags cell uses the standard values
|
/linux-4.1.27/arch/arm64/boot/dts/include/dt-bindings/gpio/ |
H A D | gpio.h | 5 * In most cases, the format of the flags cell uses the standard values
|
/linux-4.1.27/arch/arm64/boot/dts/include/dt-bindings/interrupt-controller/ |
H A D | irq.h | 5 * In most cases, the format of the flags cell uses the standard values
|
/linux-4.1.27/arch/arm64/boot/dts/include/dt-bindings/pwm/ |
H A D | pwm.h | 5 * In most cases, the format of the flags cell uses the standard values
|
/linux-4.1.27/arch/m68k/include/asm/ |
H A D | flat.h | 2 * include/asm-m68knommu/flat.h -- uClinux flat-format executables
|
H A D | natfeat.h | 20 __attribute__ ((format (printf, 1, 2)));
|
/linux-4.1.27/arch/m68k/include/uapi/asm/ |
H A D | ptrace.h | 42 unsigned format : 4; /* frame format specifier */ member in struct:pt_regs 49 unsigned format : 4; /* frame format specifier */ member in struct:pt_regs
|
/linux-4.1.27/arch/metag/boot/dts/include/dt-bindings/gpio/ |
H A D | gpio.h | 5 * In most cases, the format of the flags cell uses the standard values
|
/linux-4.1.27/arch/metag/boot/dts/include/dt-bindings/interrupt-controller/ |
H A D | irq.h | 5 * In most cases, the format of the flags cell uses the standard values
|
/linux-4.1.27/arch/metag/boot/dts/include/dt-bindings/pwm/ |
H A D | pwm.h | 5 * In most cases, the format of the flags cell uses the standard values
|
/linux-4.1.27/arch/arm/include/asm/ |
H A D | flat.h | 2 * arch/arm/include/asm/flat.h -- uClinux flat-format executables
|
/linux-4.1.27/arch/arm/boot/dts/include/dt-bindings/gpio/ |
H A D | gpio.h | 5 * In most cases, the format of the flags cell uses the standard values
|
/linux-4.1.27/arch/arm/boot/dts/include/dt-bindings/interrupt-controller/ |
H A D | irq.h | 5 * In most cases, the format of the flags cell uses the standard values
|
/linux-4.1.27/arch/arm/boot/dts/include/dt-bindings/pwm/ |
H A D | pwm.h | 5 * In most cases, the format of the flags cell uses the standard values
|
/linux-4.1.27/lib/xz/ |
H A D | xz_stream.h | 2 * Definitions for handling the .xz file format 21 * See the .xz file format specification at 22 * http://tukaani.org/xz/xz-file-format.txt 23 * to understand the container format.
|
/linux-4.1.27/include/dt-bindings/gpio/ |
H A D | gpio.h | 5 * In most cases, the format of the flags cell uses the standard values
|
/linux-4.1.27/include/dt-bindings/interrupt-controller/ |
H A D | irq.h | 5 * In most cases, the format of the flags cell uses the standard values
|
/linux-4.1.27/include/dt-bindings/pwm/ |
H A D | pwm.h | 5 * In most cases, the format of the flags cell uses the standard values
|
/linux-4.1.27/net/tipc/ |
H A D | eth_media.c | 40 /* Convert Ethernet address (media address format) to string */ tipc_eth_addr2str() 51 /* Convert from media address format to discovery message addr format */ tipc_eth_addr2msg() 60 /* Convert raw mac address format to media addr format */ tipc_eth_raw2addr() 74 /* Convert discovery msg addr format to Ethernet media addr format */ tipc_eth_msg2addr()
|
H A D | ib_media.c | 45 /* convert InfiniBand address (media address format) media address to string */ tipc_ib_addr2str() 57 /* Convert from media address format to discovery message addr format */ tipc_ib_addr2msg() 65 /* Convert raw InfiniBand address format to media addr format */ tipc_ib_raw2addr() 78 /* Convert discovery msg addr format to InfiniBand media addr format */ tipc_ib_msg2addr()
|
/linux-4.1.27/drivers/gpu/drm/qxl/ |
H A D | qxl_dumb.c | 40 uint32_t pitch, format; qxl_mode_dumb_create() local 47 format = SPICE_SURFACE_FMT_16_565; qxl_mode_dumb_create() 50 format = SPICE_SURFACE_FMT_32_xRGB; qxl_mode_dumb_create() 59 surf.format = format; qxl_mode_dumb_create()
|
/linux-4.1.27/drivers/video/fbdev/msm/ |
H A D | mdp_ppp.c | 132 if (req->src.format == req->dst.format) blit_convert() 134 if (IS_RGB(req->src.format) && IS_YCRCB(req->dst.format)) { blit_convert() 136 } else if (IS_YCRCB(req->src.format) && IS_RGB(req->dst.format)) { blit_convert() 138 if (req->dst.format == MDP_RGB_565) blit_convert() 148 if (req->src.format == MDP_RGB_565) { transp_convert() 193 if (HAS_ALPHA(req->src.format)) { blit_blend() 203 regs->op |= bg_op_chroma[req->dst.format]; blit_blend() 388 if (IS_YCRCB(req->src.format)) { get_edge_cond() 396 if (req->src.format == MDP_Y_CBCR_H2V2 || get_edge_cond() 397 req->src.format == MDP_Y_CRCB_H2V2) { get_edge_cond() 522 #define Y_TO_CRCB_RATIO(format) \ 523 ((format == MDP_Y_CBCR_H2V2 || format == MDP_Y_CRCB_H2V2) ? 2 :\ 524 (format == MDP_Y_CBCR_H2V1 || format == MDP_Y_CRCB_H2V1) ? 1 : 1) 530 if (IS_PSEUDOPLNR(img->format)) get_len() 531 *len1 = *len0/Y_TO_CRCB_RATIO(img->format); get_len() 588 uint32_t compress_v = Y_TO_CRCB_RATIO(img->format); get_chroma_addr() 592 if (IS_PSEUDOPLNR(img->format)) { get_chroma_addr() 637 mdp_writel(mdp, src_img_cfg[req->dst.format], PPP_ADDR_BG_CFG); send_blit() 638 mdp_writel(mdp, pack_pattern[req->dst.format], send_blit() 652 if (unlikely(req->src.format >= MDP_IMGTYPE_LIMIT || mdp_ppp_blit() 653 req->dst.format >= MDP_IMGTYPE_LIMIT)) { mdp_ppp_blit() 654 printk(KERN_ERR "mpd_ppp: img is of wrong format\n"); mdp_ppp_blit() 667 regs.src_cfg = src_img_cfg[req->src.format]; mdp_ppp_blit() 671 regs.src_pack = pack_pattern[req->src.format]; mdp_ppp_blit() 674 regs.dst_cfg = dst_img_cfg[req->dst.format] | PPP_DST_OUT_SEL_AXI; mdp_ppp_blit() 676 regs.dst_pack = pack_pattern[req->dst.format]; mdp_ppp_blit() 679 regs.src_bpp = bytes_per_pixel[req->src.format]; mdp_ppp_blit() 688 regs.dst_bpp = bytes_per_pixel[req->dst.format]; mdp_ppp_blit() 716 regs.op |= dst_op_chroma[req->dst.format] | mdp_ppp_blit() 717 src_op_chroma[req->src.format]; mdp_ppp_blit() 720 if (unlikely(req->src.format == MDP_YCRYCB_H2V1)) { mdp_ppp_blit()
|
/linux-4.1.27/drivers/media/i2c/ |
H A D | s5k6a3.c | 55 * @format: media bus format at the sensor's source pad 64 struct v4l2_mbus_framefmt format; member in struct:s5k6a3 132 return &sensor->format; __s5k6a3_get_format() 142 s5k6a3_try_format(&fmt->format); s5k6a3_set_fmt() 148 *mf = fmt->format; s5k6a3_set_fmt() 164 fmt->format = *mf; s5k6a3_get_fmt() 177 struct v4l2_mbus_framefmt *format = v4l2_subdev_get_try_format(sd, fh->pad, 0); s5k6a3_open() local 179 *format = s5k6a3_formats[0]; s5k6a3_open() 180 format->width = S5K6A3_DEFAULT_WIDTH; s5k6a3_open() 181 format->height = S5K6A3_DEFAULT_HEIGHT; s5k6a3_open() 331 sensor->format.code = s5k6a3_formats[0].code; s5k6a3_probe() 332 sensor->format.width = S5K6A3_DEFAULT_WIDTH; s5k6a3_probe() 333 sensor->format.height = S5K6A3_DEFAULT_HEIGHT; s5k6a3_probe()
|
H A D | adv7511.c | 316 /* CE format, not IT */ adv7511_set_IT_content_AVI_InfoFrame() 319 /* IT format */ adv7511_set_IT_content_AVI_InfoFrame() 335 /* CE format, RGB limited range (16-235) */ adv7511_set_rgb_quantization_mode() 338 /* not CE format, RGB full range (0-255) */ adv7511_set_rgb_quantization_mode() 645 if the format is one of the CEA or DMT timings. */ adv7511_s_dv_timings() 836 struct v4l2_mbus_framefmt *format) adv7511_fill_format() 838 memset(format, 0, sizeof(*format)); adv7511_fill_format() 840 format->width = state->dv_timings.bt.width; adv7511_fill_format() 841 format->height = state->dv_timings.bt.height; adv7511_fill_format() 842 format->field = V4L2_FIELD_NONE; adv7511_fill_format() 847 struct v4l2_subdev_format *format) adv7511_get_fmt() 851 if (format->pad != 0) adv7511_get_fmt() 854 adv7511_fill_format(state, &format->format); adv7511_get_fmt() 856 if (format->which == V4L2_SUBDEV_FORMAT_TRY) { adv7511_get_fmt() 859 fmt = v4l2_subdev_get_try_format(sd, cfg, format->pad); adv7511_get_fmt() 860 format->format.code = fmt->code; adv7511_get_fmt() 861 format->format.colorspace = fmt->colorspace; adv7511_get_fmt() 862 format->format.ycbcr_enc = fmt->ycbcr_enc; adv7511_get_fmt() 863 format->format.quantization = fmt->quantization; adv7511_get_fmt() 865 format->format.code = state->fmt_code; adv7511_get_fmt() 866 format->format.colorspace = state->colorspace; adv7511_get_fmt() 867 format->format.ycbcr_enc = state->ycbcr_enc; adv7511_get_fmt() 868 format->format.quantization = state->quantization; adv7511_get_fmt() 876 struct v4l2_subdev_format *format) adv7511_set_fmt() 895 if (format->pad != 0) adv7511_set_fmt() 897 switch (format->format.code) { adv7511_set_fmt() 906 adv7511_fill_format(state, &format->format); adv7511_set_fmt() 907 if (format->which == V4L2_SUBDEV_FORMAT_TRY) { adv7511_set_fmt() 910 fmt = v4l2_subdev_get_try_format(sd, cfg, format->pad); adv7511_set_fmt() 911 fmt->code = format->format.code; adv7511_set_fmt() 912 fmt->colorspace = format->format.colorspace; adv7511_set_fmt() 913 fmt->ycbcr_enc = format->format.ycbcr_enc; adv7511_set_fmt() 914 fmt->quantization = format->format.quantization; adv7511_set_fmt() 918 switch (format->format.code) { adv7511_set_fmt() 935 state->fmt_code = format->format.code; adv7511_set_fmt() 936 state->colorspace = format->format.colorspace; adv7511_set_fmt() 937 state->ycbcr_enc = format->format.ycbcr_enc; adv7511_set_fmt() 938 state->quantization = format->format.quantization; adv7511_set_fmt() 940 switch (format->format.colorspace) { adv7511_set_fmt() 948 if (y && format->format.ycbcr_enc == V4L2_YCBCR_ENC_XV601) { adv7511_set_fmt() 955 if (y && format->format.ycbcr_enc == V4L2_YCBCR_ENC_XV709) { adv7511_set_fmt() 967 if (y && format->format.ycbcr_enc == V4L2_YCBCR_ENC_BT2020_CONST_LUM) adv7511_set_fmt() 989 switch (format->format.quantization) { adv7511_set_fmt() 1111 /* Input format: RGB 4:4:4 */ adv7511_setup() 1113 /* Output format: RGB 4:4:4 */ adv7511_setup() 1121 /* Output format: RGB 4:4:4, Active Format Information is valid, adv7511_setup() 1126 /* Colorimetry, Active format aspect ratio: same as picure. */ adv7511_setup() 835 adv7511_fill_format(struct adv7511_state *state, struct v4l2_mbus_framefmt *format) adv7511_fill_format() argument 845 adv7511_get_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_format *format) adv7511_get_fmt() argument 874 adv7511_set_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_format *format) adv7511_set_fmt() argument
|
H A D | mt9t001.c | 128 struct v4l2_mbus_framefmt format; member in struct:mt9t001 254 return &mt9t001->format; __mt9t001_get_pad_format() 280 struct v4l2_mbus_framefmt *format = &mt9t001->format; mt9t001_s_stream() local 298 hratio = DIV_ROUND_CLOSEST(crop->width, format->width); mt9t001_s_stream() 299 vratio = DIV_ROUND_CLOSEST(crop->height, format->height); mt9t001_s_stream() 357 struct v4l2_subdev_format *format) mt9t001_get_format() 361 format->format = *__mt9t001_get_pad_format(mt9t001, cfg, format->pad, mt9t001_get_format() 362 format->which); mt9t001_get_format() 368 struct v4l2_subdev_format *format) mt9t001_set_format() 378 __crop = __mt9t001_get_pad_crop(mt9t001, cfg, format->pad, mt9t001_set_format() 379 format->which); mt9t001_set_format() 382 width = clamp_t(unsigned int, ALIGN(format->format.width, 2), mt9t001_set_format() 386 height = clamp_t(unsigned int, ALIGN(format->format.height, 2), mt9t001_set_format() 394 __format = __mt9t001_get_pad_format(mt9t001, cfg, format->pad, mt9t001_set_format() 395 format->which); mt9t001_set_format() 399 format->format = *__format; mt9t001_set_format() 790 struct v4l2_mbus_framefmt *format; mt9t001_open() local 799 format = v4l2_subdev_get_try_format(subdev, fh->pad, 0); mt9t001_open() 800 format->code = MEDIA_BUS_FMT_SGRBG10_1X10; mt9t001_open() 801 format->width = MT9T001_WINDOW_WIDTH_DEF + 1; mt9t001_open() 802 format->height = MT9T001_WINDOW_HEIGHT_DEF + 1; mt9t001_open() 803 format->field = V4L2_FIELD_NONE; mt9t001_open() 804 format->colorspace = V4L2_COLORSPACE_SRGB; mt9t001_open() 925 mt9t001->format.code = MEDIA_BUS_FMT_SGRBG10_1X10; mt9t001_probe() 926 mt9t001->format.width = MT9T001_WINDOW_WIDTH_DEF + 1; mt9t001_probe() 927 mt9t001->format.height = MT9T001_WINDOW_HEIGHT_DEF + 1; mt9t001_probe() 928 mt9t001->format.field = V4L2_FIELD_NONE; mt9t001_probe() 929 mt9t001->format.colorspace = V4L2_COLORSPACE_SRGB; mt9t001_probe() 355 mt9t001_get_format(struct v4l2_subdev *subdev, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_format *format) mt9t001_get_format() argument 366 mt9t001_set_format(struct v4l2_subdev *subdev, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_format *format) mt9t001_set_format() argument
|
/linux-4.1.27/drivers/net/wireless/ath/ar5523/ |
H A D | ar5523.h | 137 #define ar5523_dbg(ar, format, arg...) \ 138 dev_dbg(&(ar)->dev->dev, format, ## arg) 144 #define ar5523_err(ar, format, arg...) \ 147 dev_err(&(ar)->dev->dev, format, ## arg); \ 150 #define ar5523_info(ar, format, arg...) \ 151 dev_info(&(ar)->dev->dev, format, ## arg)
|
/linux-4.1.27/net/bluetooth/ |
H A D | lib.c | 138 void bt_info(const char *format, ...) bt_info() argument 143 va_start(args, format); bt_info() 145 vaf.fmt = format; bt_info() 154 void bt_err(const char *format, ...) bt_err() argument 159 va_start(args, format); bt_err() 161 vaf.fmt = format; bt_err()
|
/linux-4.1.27/drivers/media/usb/uvc/ |
H A D | uvc_v4l2.c | 109 * given frame format and size. This should be done by the device as part of 149 struct uvc_format *format = NULL; uvc_v4l2_try_format() local 162 uvc_trace(UVC_TRACE_FORMAT, "Trying format 0x%08x (%c%c%c%c): %ux%u.\n", uvc_v4l2_try_format() 167 /* Check if the hardware supports the requested format, use the default uvc_v4l2_try_format() 168 * format otherwise. uvc_v4l2_try_format() 171 format = &stream->format[i]; uvc_v4l2_try_format() 172 if (format->fcc == fmt->fmt.pix.pixelformat) uvc_v4l2_try_format() 177 format = stream->def_format; uvc_v4l2_try_format() 178 fmt->fmt.pix.pixelformat = format->fcc; uvc_v4l2_try_format() 189 for (i = 0; i < format->nframes; ++i) { uvc_v4l2_try_format() 190 __u16 w = format->frame[i].wWidth; uvc_v4l2_try_format() 191 __u16 h = format->frame[i].wHeight; uvc_v4l2_try_format() 197 frame = &format->frame[i]; uvc_v4l2_try_format() 216 /* Set the format index, frame index and frame interval. */ uvc_v4l2_try_format() 219 probe->bFormatIndex = format->index; uvc_v4l2_try_format() 248 fmt->fmt.pix.bytesperline = format->bpp * frame->wWidth / 8; uvc_v4l2_try_format() 250 fmt->fmt.pix.colorspace = format->colorspace; uvc_v4l2_try_format() 254 *uvc_format = format; uvc_v4l2_try_format() 265 struct uvc_format *format; uvc_v4l2_get_format() local 273 format = stream->cur_format; uvc_v4l2_get_format() 276 if (format == NULL || frame == NULL) { uvc_v4l2_get_format() 281 fmt->fmt.pix.pixelformat = format->fcc; uvc_v4l2_get_format() 285 fmt->fmt.pix.bytesperline = format->bpp * frame->wWidth / 8; uvc_v4l2_get_format() 287 fmt->fmt.pix.colorspace = format->colorspace; uvc_v4l2_get_format() 299 struct uvc_format *format; uvc_v4l2_set_format() local 306 ret = uvc_v4l2_try_format(stream, fmt, &probe, &format, &frame); uvc_v4l2_set_format() 318 stream->cur_format = format; uvc_v4l2_set_format() 575 struct uvc_format *format; uvc_ioctl_enum_fmt() local 586 format = &stream->format[fmt->index]; uvc_ioctl_enum_fmt() 588 if (format->flags & UVC_FMT_FLAG_COMPRESSED) uvc_ioctl_enum_fmt() 590 strlcpy(fmt->description, format->name, sizeof(fmt->description)); uvc_ioctl_enum_fmt() 592 fmt->pixelformat = format->fcc; uvc_ioctl_enum_fmt() 1112 struct uvc_format *format = NULL; uvc_ioctl_enum_framesizes() local 1116 /* Look for the given pixel format */ uvc_ioctl_enum_framesizes() 1118 if (stream->format[i].fcc == fsize->pixel_format) { uvc_ioctl_enum_framesizes() 1119 format = &stream->format[i]; uvc_ioctl_enum_framesizes() 1123 if (format == NULL) uvc_ioctl_enum_framesizes() 1126 if (fsize->index >= format->nframes) uvc_ioctl_enum_framesizes() 1129 frame = &format->frame[fsize->index]; uvc_ioctl_enum_framesizes() 1141 struct uvc_format *format = NULL; uvc_ioctl_enum_frameintervals() local 1145 /* Look for the given pixel format and frame size */ uvc_ioctl_enum_frameintervals() 1147 if (stream->format[i].fcc == fival->pixel_format) { uvc_ioctl_enum_frameintervals() 1148 format = &stream->format[i]; uvc_ioctl_enum_frameintervals() 1152 if (format == NULL) uvc_ioctl_enum_frameintervals() 1155 for (i = 0; i < format->nframes; i++) { uvc_ioctl_enum_frameintervals() 1156 if (format->frame[i].wWidth == fival->width && uvc_ioctl_enum_frameintervals() 1157 format->frame[i].wHeight == fival->height) { uvc_ioctl_enum_frameintervals() 1158 frame = &format->frame[i]; uvc_ioctl_enum_frameintervals()
|
H A D | uvc_driver.c | 331 struct uvc_streaming *streaming, struct uvc_format *format, uvc_parse_format() 344 format->type = buffer[2]; uvc_parse_format() 345 format->index = buffer[3]; uvc_parse_format() 359 /* Find the format descriptor from its GUID. */ uvc_parse_format() 363 strlcpy(format->name, fmtdesc->name, uvc_parse_format() 364 sizeof format->name); uvc_parse_format() 365 format->fcc = fmtdesc->fcc; uvc_parse_format() 367 uvc_printk(KERN_INFO, "Unknown video format %pUl\n", uvc_parse_format() 369 snprintf(format->name, sizeof(format->name), "%pUl\n", uvc_parse_format() 371 format->fcc = 0; uvc_parse_format() 374 format->bpp = buffer[21]; uvc_parse_format() 376 /* Some devices report a format that doesn't match what they uvc_parse_format() 380 if (format->fcc == V4L2_PIX_FMT_YUYV) { uvc_parse_format() 381 strlcpy(format->name, "Greyscale 8-bit (Y8 )", uvc_parse_format() 382 sizeof(format->name)); uvc_parse_format() 383 format->fcc = V4L2_PIX_FMT_GREY; uvc_parse_format() 384 format->bpp = 8; uvc_parse_format() 394 format->flags = UVC_FMT_FLAG_COMPRESSED; uvc_parse_format() 407 strlcpy(format->name, "MJPEG", sizeof format->name); uvc_parse_format() 408 format->fcc = V4L2_PIX_FMT_MJPEG; uvc_parse_format() 409 format->flags = UVC_FMT_FLAG_COMPRESSED; uvc_parse_format() 410 format->bpp = 0; uvc_parse_format() 425 strlcpy(format->name, "SD-DV", sizeof format->name); uvc_parse_format() 428 strlcpy(format->name, "SDL-DV", sizeof format->name); uvc_parse_format() 431 strlcpy(format->name, "HD-DV", sizeof format->name); uvc_parse_format() 435 "interface %d: unknown DV format %u\n", uvc_parse_format() 441 strlcat(format->name, buffer[8] & (1 << 7) ? " 60Hz" : " 50Hz", uvc_parse_format() 442 sizeof format->name); uvc_parse_format() 444 format->fcc = V4L2_PIX_FMT_DV; uvc_parse_format() 445 format->flags = UVC_FMT_FLAG_COMPRESSED | UVC_FMT_FLAG_STREAM; uvc_parse_format() 446 format->bpp = 0; uvc_parse_format() 450 frame = &format->frame[0]; uvc_parse_format() 451 memset(&format->frame[0], 0, sizeof format->frame[0]); uvc_parse_format() 456 format->nframes = 1; uvc_parse_format() 464 "interface %d unsupported format %u\n", uvc_parse_format() 470 uvc_trace(UVC_TRACE_DESCR, "Found format %s.\n", format->name); uvc_parse_format() 480 frame = &format->frame[format->nframes]; uvc_parse_format() 524 if (!(format->flags & UVC_FMT_FLAG_COMPRESSED)) uvc_parse_format() 525 frame->dwMaxVideoFrameBufferSize = format->bpp uvc_parse_format() 558 format->nframes++; uvc_parse_format() 579 format->colorspace = uvc_colorspace(buffer[3]); uvc_parse_format() 592 struct uvc_format *format; uvc_parse_streaming() local 717 /* Count the format and frame descriptors. */ uvc_parse_streaming() 727 /* DV format has no frame descriptor. We will create a uvc_parse_streaming() 768 size = nformats * sizeof *format + nframes * sizeof *frame uvc_parse_streaming() 770 format = kzalloc(size, GFP_KERNEL); uvc_parse_streaming() 771 if (format == NULL) { uvc_parse_streaming() 776 frame = (struct uvc_frame *)&format[nformats]; uvc_parse_streaming() 779 streaming->format = format; uvc_parse_streaming() 782 /* Parse the format descriptors. */ uvc_parse_streaming() 789 format->frame = frame; uvc_parse_streaming() 790 ret = uvc_parse_format(dev, streaming, format, uvc_parse_streaming() 795 frame += format->nframes; uvc_parse_streaming() 796 format++; uvc_parse_streaming() 836 kfree(streaming->format); uvc_parse_streaming() 1681 kfree(streaming->format); uvc_delete() 330 uvc_parse_format(struct uvc_device *dev, struct uvc_streaming *streaming, struct uvc_format *format, __u32 **intervals, unsigned char *buffer, int buflen) uvc_parse_format() argument
|
/linux-4.1.27/drivers/scsi/esas2r/ |
H A D | esas2r_log.c | 105 * the master logging function. this function will format the message as 111 * @param [in] format the formatting string for the message 118 const char *format, esas2r_log_master() 141 * format the level onto the beginning of the string and do esas2r_log_master() 160 retval = vsnprintf(buffer, buflen, format, args); esas2r_log_master() 182 * @param [in] format the formating string for the message 187 int esas2r_log(const long level, const char *format, ...) esas2r_log() argument 192 va_start(args, format); esas2r_log() 194 retval = esas2r_log_master(level, NULL, format, args); esas2r_log() 207 * @param [in] format the formatting string for the message 214 const char *format, esas2r_log_dev() 220 va_start(args, format); esas2r_log_dev() 222 retval = esas2r_log_master(level, dev, format, args); esas2r_log_dev() 116 esas2r_log_master(const long level, const struct device *dev, const char *format, va_list args) esas2r_log_master() argument 212 esas2r_log_dev(const long level, const struct device *dev, const char *format, ...) esas2r_log_dev() argument
|
/linux-4.1.27/security/keys/encrypted-keys/ |
H A D | encrypted.c | 105 * The description of a encrypted key with format 'ecryptfs' must contain 166 * datablob format: 167 * new [<format>] <master-key name> <decrypted data length> 168 * load [<format>] <master-key name> <decrypted data length> 177 static int datablob_parse(char *datablob, const char **format, datablob_parse() argument 194 /* Get optional format: default | ecryptfs */ datablob_parse() 205 *format = p; datablob_parse() 273 * datablob_format - format as an ascii string, before copying to userspace 290 len = sprintf(ascii_buf, "%s %s %s ", epayload->format, datablob_format() 515 digest = epayload->format + epayload->datablob_len; datablob_hmac_append() 517 epayload->format, epayload->datablob_len); datablob_hmac_append() 526 const u8 *format, const u8 *master_key, datablob_hmac_verify() 540 if (!format) { datablob_hmac_verify() 542 len -= strlen(epayload->format) + 1; datablob_hmac_verify() 544 p = epayload->format; datablob_hmac_verify() 549 ret = memcmp(digest, epayload->format + epayload->datablob_len, datablob_hmac_verify() 554 epayload->format + epayload->datablob_len, datablob_hmac_verify() 599 const char *format, encrypted_key_alloc() 616 format_len = (!format) ? strlen(key_format_default) : strlen(format); encrypted_key_alloc() 619 if (format && !strcmp(format, key_format_ecryptfs)) { encrypted_key_alloc() 621 pr_err("encrypted_key: keylen for the ecryptfs format " encrypted_key_alloc() 652 const char *format, const char *hex_encoded_iv) encrypted_key_decrypt() 678 hmac = epayload->format + epayload->datablob_len; encrypted_key_decrypt() 688 ret = datablob_hmac_verify(epayload, format, master_key, master_keylen); encrypted_key_decrypt() 708 const char *format, const char *master_desc, __ekey_init() 713 format_len = (!format) ? strlen(key_format_default) : strlen(format); __ekey_init() 714 epayload->format = epayload->payload_data + epayload->payload_datalen; __ekey_init() 715 epayload->master_desc = epayload->format + format_len + 1; __ekey_init() 721 if (!format) __ekey_init() 722 memcpy(epayload->format, key_format_default, format_len); __ekey_init() 724 if (!strcmp(format, key_format_ecryptfs)) __ekey_init() 728 memcpy(epayload->format, format, format_len); __ekey_init() 742 const char *key_desc, const char *format, encrypted_init() 748 if (format && !strcmp(format, key_format_ecryptfs)) { encrypted_init() 757 __ekey_init(epayload, format, master_desc, datalen); encrypted_init() 764 ret = encrypted_key_decrypt(epayload, format, hex_encoded_iv); encrypted_init() 781 const char *format = NULL; encrypted_instantiate() local 796 ret = datablob_parse(datablob, &format, &master_desc, encrypted_instantiate() 801 epayload = encrypted_key_alloc(key, format, master_desc, encrypted_instantiate() 807 ret = encrypted_init(epayload, key->description, format, master_desc, encrypted_instantiate() 844 const char *format = NULL; encrypted_update() local 859 ret = datablob_parse(buf, &format, &new_master_desc, NULL, NULL); encrypted_update() 867 new_epayload = encrypted_key_alloc(key, epayload->format, encrypted_update() 874 __ekey_init(new_epayload, epayload->format, new_master_desc, encrypted_update() 889 * encrypted_read - format and copy the encrypted data to userspace 891 * The resulting datablob format is: 525 datablob_hmac_verify(struct encrypted_key_payload *epayload, const u8 *format, const u8 *master_key, size_t master_keylen) datablob_hmac_verify() argument 598 encrypted_key_alloc(struct key *key, const char *format, const char *master_desc, const char *datalen) encrypted_key_alloc() argument 651 encrypted_key_decrypt(struct encrypted_key_payload *epayload, const char *format, const char *hex_encoded_iv) encrypted_key_decrypt() argument 707 __ekey_init(struct encrypted_key_payload *epayload, const char *format, const char *master_desc, const char *datalen) __ekey_init() argument 741 encrypted_init(struct encrypted_key_payload *epayload, const char *key_desc, const char *format, const char *master_desc, const char *datalen, const char *hex_encoded_iv) encrypted_init() argument
|
/linux-4.1.27/arch/s390/include/asm/ |
H A D | pci_clp.h | 52 u32 fmt : 4; /* cmd request block format */ 62 u32 fmt : 4; /* cmd request block format */ 76 u32 fmt : 4; /* cmd request block format */ 87 u32 fmt : 4; /* cmd request block format */ 111 u32 fmt : 4; /* cmd request block format */ 123 u32 fmt : 4; /* cmd request block format */ 144 u32 fmt : 4; /* cmd request block format */ 157 u32 fmt : 4; /* cmd request block format */
|
/linux-4.1.27/arch/mips/include/uapi/asm/ |
H A D | inst.h | 158 * func field of cop1 instructions using d, s or w format. 514 __BITFIELD_FIELD(unsigned int opcode : 6, /* Jump format */ 519 struct i_format { /* signed immediate format */ 527 struct u_format { /* unsigned immediate format */ 535 struct c_format { /* Cache (>= R6000) format */ 544 struct r_format { /* Register format */ 554 struct p_format { /* Performance counter format (R10000) */ 564 struct f_format { /* FPU register format */ 575 struct ma_format { /* FPU multiply and add format (MIPS IV) */ 593 struct ps_format { /* MIPS-3D / paired single format */ 603 struct v_format { /* MDMX vector format */ 627 * Parenthesis denote whether the format is a microMIPS instruction or 630 struct fb_format { /* FPU branch format (MIPS32) */ 639 struct fp0_format { /* FPU multiply and add format (MIPS32) */ 649 struct mm_fp0_format { /* FPU multipy and add format (microMIPS) */ 660 struct fp1_format { /* FPU mfc1 and cfc1 format (MIPS32) */ 670 struct mm_fp1_format { /* FPU mfc1 and cfc1 format (microMIPS) */ 680 struct mm_fp2_format { /* FPU movt and movf format (microMIPS) */ 692 struct mm_fp3_format { /* FPU abs and neg format (microMIPS) */ 702 struct mm_fp4_format { /* FPU c.cond format (microMIPS) */ 713 struct mm_fp5_format { /* FPU lwxc1 and swxc1 format (microMIPS) */ 723 struct fp6_format { /* FPU madd and msub format (MIPS IV) */ 733 struct mm_fp6_format { /* FPU madd and msub format (microMIPS) */ 743 struct mm_i_format { /* Immediate format (microMIPS) */ 751 struct mm_m_format { /* Multi-word load/store format (microMIPS) */ 760 struct mm_x_format { /* Scaled indexed load format (microMIPS) */ 772 struct mm_b0_format { /* Unconditional branch format (microMIPS) */ 779 struct mm_b1_format { /* Conditional branch format (microMIPS) */ 787 struct mm16_m_format { /* Multi-word load/store format */ 796 struct mm16_rb_format { /* Signed immediate format */ 805 struct mm16_r3_format { /* Load from global pointer format */ 813 struct mm16_r5_format { /* Load/store from stack pointer format */
|
/linux-4.1.27/arch/powerpc/include/asm/ |
H A D | bootx.h | 13 /* (*) The format of the colormap is 256 * 3 * 2 bytes. Each color index 20 /* BootX passes the device-tree using a format that comes from earlier
|
/linux-4.1.27/arch/m32r/boot/compressed/ |
H A D | Makefile | 39 LDFLAGS_piggy.o := -r --format binary --oformat elf32-m32r-linux -T 41 LDFLAGS_piggy.o := -r --format binary --oformat elf32-m32r -T
|
/linux-4.1.27/fs/bfs/ |
H A D | bfs.h | 44 #define printf(format, args...) \ 45 printk(KERN_ERR "BFS-fs: %s(): " format, __func__, ## args)
|
/linux-4.1.27/drivers/net/ethernet/intel/e1000/ |
H A D | e1000.h | 338 #define e_dbg(format, arg...) \ 339 netdev_dbg(e1000_get_hw_dev(hw), format, ## arg) 340 #define e_err(msglvl, format, arg...) \ 341 netif_err(adapter, msglvl, adapter->netdev, format, ## arg) 342 #define e_info(msglvl, format, arg...) \ 343 netif_info(adapter, msglvl, adapter->netdev, format, ## arg) 344 #define e_warn(msglvl, format, arg...) \ 345 netif_warn(adapter, msglvl, adapter->netdev, format, ## arg) 346 #define e_notice(msglvl, format, arg...) \ 347 netif_notice(adapter, msglvl, adapter->netdev, format, ## arg) 348 #define e_dev_info(format, arg...) \ 349 dev_info(&adapter->pdev->dev, format, ## arg) 350 #define e_dev_warn(format, arg...) \ 351 dev_warn(&adapter->pdev->dev, format, ## arg) 352 #define e_dev_err(format, arg...) \ 353 dev_err(&adapter->pdev->dev, format, ## arg)
|
/linux-4.1.27/kernel/ |
H A D | bounds.c | 4 * to extract and format the required data.
|
/linux-4.1.27/arch/mn10300/boot/compressed/ |
H A D | Makefile | 19 LDFLAGS_piggy.o := -r --format binary --oformat elf32-am33lin -T
|
/linux-4.1.27/arch/avr32/kernel/ |
H A D | asm-offsets.c | 4 * to extract and format the required data.
|
/linux-4.1.27/drivers/isdn/hisax/ |
H A D | hisax_debug.h | 28 #define DBG(level, format, arg...) do { \ 30 printk(KERN_DEBUG "%s: " format "\n" , __func__ , ## arg); \ 74 #define DBG(level, format, arg...) do {} while (0)
|
/linux-4.1.27/drivers/media/platform/s5p-mfc/ |
H A D | s5p_mfc_opr_v5.h | 56 NEW_RC_BIT_RATE = 0x90, /* E, format as RC_BIT_RATE(0xC5A8) 58 NEW_RC_FRAME_RATE = 0x94, /* E, format as RC_FRAME_RATE(0xD0D0) 60 NEW_I_PERIOD = 0x98, /* E, format as I_FRM_CTRL(0xC504)
|
/linux-4.1.27/arch/powerpc/xmon/ |
H A D | nonstdio.c | 111 void xmon_printf(const char *format, ...) xmon_printf() argument 117 va_start(args, format); xmon_printf() 118 n = vsnprintf(xmon_outbuf, sizeof(xmon_outbuf), format, args); xmon_printf()
|
/linux-4.1.27/Documentation/networking/ |
H A D | cxacru-cf.py | 27 # The original binary format is a packed list of le32 values. 40 sys.stderr.write("Error: read {0} not 4 bytes\n".format(len(buf))) 45 sys.stdout.write("{0:x}={1}".format(i, struct.unpack("<I", buf)[0]))
|
/linux-4.1.27/net/dccp/ccids/lib/ |
H A D | tfrc.h | 25 #define tfrc_pr_debug(format, a...) DCCP_PR_DEBUG(tfrc_debug, format, ##a) 27 #define tfrc_pr_debug(format, a...)
|
/linux-4.1.27/drivers/base/regmap/ |
H A D | regmap.c | 99 if (map->format.format_write) regmap_readable() 113 if (!map->format.format_write && !regmap_readable(map, reg)) regmap_volatile() 566 map->format.reg_bytes = DIV_ROUND_UP(config->reg_bits, 8); regmap_init() 567 map->format.pad_bytes = config->pad_bits / 8; regmap_init() 568 map->format.val_bytes = DIV_ROUND_UP(config->val_bits, 8); regmap_init() 569 map->format.buf_size = DIV_ROUND_UP(config->reg_bits + regmap_init() 628 map->format.format_write = regmap_format_2_6_write; regmap_init() 638 map->format.format_write = regmap_format_4_12_write; regmap_init() 648 map->format.format_write = regmap_format_7_9_write; regmap_init() 658 map->format.format_write = regmap_format_10_14_write; regmap_init() 666 map->format.format_reg = regmap_format_8; regmap_init() 672 map->format.format_reg = regmap_format_16_be; regmap_init() 675 map->format.format_reg = regmap_format_16_native; regmap_init() 685 map->format.format_reg = regmap_format_24; regmap_init() 691 map->format.format_reg = regmap_format_32_be; regmap_init() 694 map->format.format_reg = regmap_format_32_native; regmap_init() 706 map->format.parse_inplace = regmap_parse_inplace_noop; regmap_init() 710 map->format.format_val = regmap_format_8; regmap_init() 711 map->format.parse_val = regmap_parse_8; regmap_init() 712 map->format.parse_inplace = regmap_parse_inplace_noop; regmap_init() 717 map->format.format_val = regmap_format_16_be; regmap_init() 718 map->format.parse_val = regmap_parse_16_be; regmap_init() 719 map->format.parse_inplace = regmap_parse_16_be_inplace; regmap_init() 722 map->format.format_val = regmap_format_16_le; regmap_init() 723 map->format.parse_val = regmap_parse_16_le; regmap_init() 724 map->format.parse_inplace = regmap_parse_16_le_inplace; regmap_init() 727 map->format.format_val = regmap_format_16_native; regmap_init() 728 map->format.parse_val = regmap_parse_16_native; regmap_init() 737 map->format.format_val = regmap_format_24; regmap_init() 738 map->format.parse_val = regmap_parse_24; regmap_init() 743 map->format.format_val = regmap_format_32_be; regmap_init() 744 map->format.parse_val = regmap_parse_32_be; regmap_init() 745 map->format.parse_inplace = regmap_parse_32_be_inplace; regmap_init() 748 map->format.format_val = regmap_format_32_le; regmap_init() 749 map->format.parse_val = regmap_parse_32_le; regmap_init() 750 map->format.parse_inplace = regmap_parse_32_le_inplace; regmap_init() 753 map->format.format_val = regmap_format_32_native; regmap_init() 754 map->format.parse_val = regmap_parse_32_native; regmap_init() 762 if (map->format.format_write) { regmap_init() 769 if (!map->format.format_write && regmap_init() 770 !(map->format.format_reg && map->format.format_val)) regmap_init() 773 map->work_buf = kzalloc(map->format.buf_size, GFP_KERNEL); regmap_init() 779 if (map->format.format_write) { regmap_init() 782 } else if (map->format.format_val) { regmap_init() 872 kzalloc(map->format.buf_size, GFP_KERNEL); regmap_init() 1200 void *work_val = map->work_buf + map->format.reg_bytes + _regmap_raw_write() 1201 map->format.pad_bytes; _regmap_raw_write() 1211 for (i = 0; i < val_len / map->format.val_bytes; i++) _regmap_raw_write() 1216 if (!map->cache_bypass && map->format.parse_val) { _regmap_raw_write() 1218 int val_bytes = map->format.val_bytes; _regmap_raw_write() 1220 ival = map->format.parse_val(val + (i * val_bytes)); _regmap_raw_write() 1238 int val_num = val_len / map->format.val_bytes; _regmap_raw_write() 1245 win_residue, val_len / map->format.val_bytes); _regmap_raw_write() 1247 map->format.val_bytes); _regmap_raw_write() 1253 val += win_residue * map->format.val_bytes; _regmap_raw_write() 1254 val_len -= win_residue * map->format.val_bytes; _regmap_raw_write() 1266 map->format.format_reg(map->work_buf, reg, map->reg_shift); _regmap_raw_write() 1275 if (val != work_val && val_len == map->format.val_bytes) { _regmap_raw_write() 1276 memcpy(work_val, val, map->format.val_bytes); _regmap_raw_write() 1298 async->work_buf = kzalloc(map->format.buf_size, _regmap_raw_write() 1309 memcpy(async->work_buf, map->work_buf, map->format.pad_bytes + _regmap_raw_write() 1310 map->format.reg_bytes + map->format.val_bytes); _regmap_raw_write() 1319 map->format.reg_bytes + _regmap_raw_write() 1320 map->format.pad_bytes, _regmap_raw_write() 1325 map->format.reg_bytes + _regmap_raw_write() 1326 map->format.pad_bytes + _regmap_raw_write() 1341 trace_regmap_hw_write_start(map, reg, val_len / map->format.val_bytes); _regmap_raw_write() 1349 map->format.reg_bytes + _regmap_raw_write() 1350 map->format.pad_bytes + _regmap_raw_write() 1354 map->format.reg_bytes + _regmap_raw_write() 1355 map->format.pad_bytes, _regmap_raw_write() 1360 len = map->format.reg_bytes + map->format.pad_bytes + val_len; _regmap_raw_write() 1365 memcpy(buf, map->work_buf, map->format.reg_bytes); _regmap_raw_write() 1366 memcpy(buf + map->format.reg_bytes + map->format.pad_bytes, _regmap_raw_write() 1373 trace_regmap_hw_write_done(map, reg, val_len / map->format.val_bytes); _regmap_raw_write() 1385 return map->bus && map->format.format_val && map->format.format_reg; regmap_can_raw_write() 1396 WARN_ON(!map->bus || !map->format.format_write); _regmap_bus_formatted_write() 1405 map->format.format_write(map, reg, val); _regmap_bus_formatted_write() 1410 map->format.buf_size); _regmap_bus_formatted_write() 1430 WARN_ON(!map->bus || !map->format.format_val); _regmap_bus_raw_write() 1432 map->format.format_val(map->work_buf + map->format.reg_bytes _regmap_bus_raw_write() 1433 + map->format.pad_bytes, val, 0); _regmap_bus_raw_write() 1436 map->format.reg_bytes + _regmap_bus_raw_write() 1437 map->format.pad_bytes, _regmap_bus_raw_write() 1438 map->format.val_bytes); _regmap_bus_raw_write() 1556 if (val_len % map->format.val_bytes) regmap_raw_write() 1671 size_t val_bytes = map->format.val_bytes; regmap_bulk_write() 1673 if (map->bus && !map->format.parse_inplace) regmap_bulk_write() 1726 map->format.parse_inplace(wval + i); regmap_bulk_write() 1753 size_t val_bytes = map->format.val_bytes; _regmap_raw_multi_reg_write() 1754 size_t reg_bytes = map->format.reg_bytes; _regmap_raw_multi_reg_write() 1755 size_t pad_bytes = map->format.pad_bytes; _regmap_raw_multi_reg_write() 1774 map->format.format_reg(u8, reg, map->reg_shift); _regmap_raw_multi_reg_write() 1776 map->format.format_val(u8, val, 0); _regmap_raw_multi_reg_write() 1861 if (!map->format.parse_inplace) _regmap_multi_reg_write() 2013 if (val_len % map->format.val_bytes) regmap_raw_write_async() 2044 val_len / map->format.val_bytes); _regmap_raw_read() 2049 map->format.format_reg(map->work_buf, reg, map->reg_shift); _regmap_raw_read() 2059 trace_regmap_hw_read_start(map, reg, val_len / map->format.val_bytes); _regmap_raw_read() 2062 map->format.reg_bytes + map->format.pad_bytes, _regmap_raw_read() 2065 trace_regmap_hw_read_done(map, reg, val_len / map->format.val_bytes); _regmap_raw_read() 2084 if (!map->format.parse_val) _regmap_bus_read() 2087 ret = _regmap_raw_read(map, reg, map->work_buf, map->format.val_bytes); _regmap_bus_read() 2089 *val = map->format.parse_val(map->work_buf); _regmap_bus_read() 2171 size_t val_bytes = map->format.val_bytes; regmap_raw_read() 2178 if (val_len % map->format.val_bytes) regmap_raw_read() 2200 map->format.format_val(val + (i * val_bytes), v, 0); regmap_raw_read() 2284 size_t val_bytes = map->format.val_bytes; regmap_bulk_read() 2290 if (map->bus && map->format.parse_inplace && (vol || map->cache_type == REGCACHE_NONE)) { regmap_bulk_read() 2312 map->format.parse_inplace(val + i); regmap_bulk_read() 2320 map->format.format_val(val + (i * val_bytes), ival, 0); regmap_bulk_read() 2608 if (map->format.format_write) regmap_get_val_bytes() 2611 return map->format.val_bytes; regmap_get_val_bytes() 2618 if (!map->format.parse_val) regmap_parse_val() 2621 *val = map->format.parse_val(buf); regmap_parse_val()
|
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp5/ |
H A D | mdp5_plane.c | 441 const struct mdp_format *format; mdp5_plane_mode_set() local 456 format = to_mdp_format(msm_framebuffer_format(fb)); mdp5_plane_mode_set() 457 pix_format = format->base.pixel_format; mdp5_plane_mode_set() 485 if ((src_w != crtc_w) || MDP_FORMAT_IS_YUV(format)) { mdp5_plane_mode_set() 496 if ((src_h != crtc_h) || MDP_FORMAT_IS_YUV(format)) { mdp5_plane_mode_set() 530 MDP5_PIPE_SRC_FORMAT_A_BPC(format->bpc_a) | mdp5_plane_mode_set() 531 MDP5_PIPE_SRC_FORMAT_R_BPC(format->bpc_r) | mdp5_plane_mode_set() 532 MDP5_PIPE_SRC_FORMAT_G_BPC(format->bpc_g) | mdp5_plane_mode_set() 533 MDP5_PIPE_SRC_FORMAT_B_BPC(format->bpc_b) | mdp5_plane_mode_set() 534 COND(format->alpha_enable, MDP5_PIPE_SRC_FORMAT_ALPHA_ENABLE) | mdp5_plane_mode_set() 535 MDP5_PIPE_SRC_FORMAT_CPP(format->cpp - 1) | mdp5_plane_mode_set() 536 MDP5_PIPE_SRC_FORMAT_UNPACK_COUNT(format->unpack_count - 1) | mdp5_plane_mode_set() 537 COND(format->unpack_tight, MDP5_PIPE_SRC_FORMAT_UNPACK_TIGHT) | mdp5_plane_mode_set() 538 MDP5_PIPE_SRC_FORMAT_NUM_PLANES(format->fetch_type) | mdp5_plane_mode_set() 539 MDP5_PIPE_SRC_FORMAT_CHROMA_SAMP(format->chroma_sample)); mdp5_plane_mode_set() 542 MDP5_PIPE_SRC_UNPACK_ELEM0(format->unpack[0]) | mdp5_plane_mode_set() 543 MDP5_PIPE_SRC_UNPACK_ELEM1(format->unpack[1]) | mdp5_plane_mode_set() 544 MDP5_PIPE_SRC_UNPACK_ELEM2(format->unpack[2]) | mdp5_plane_mode_set() 545 MDP5_PIPE_SRC_UNPACK_ELEM3(format->unpack[3])); mdp5_plane_mode_set() 566 if (MDP_FORMAT_IS_YUV(format)) mdp5_plane_mode_set()
|
/linux-4.1.27/arch/ia64/sn/kernel/ |
H A D | klconflib.c | 23 * MODULE_FORMAT_BRIEF is the brief 6-character format, including 28 * MODULE_FORMAT_LONG is the hwgraph format, eg. rack/002/bay/15 30 * type does not appear in this format). 81 /* Brief module number format, eg. 002c15 */ format_module_id() 92 /* Fuller hwgraph format, eg. rack/002/bay/15 */ format_module_id()
|
/linux-4.1.27/fs/ext4/ |
H A D | ext4_crypto.h | 40 * Protector format: 41 * 1 byte: Protector format (1 = this version) 49 char format; member in struct:ext4_encryption_context 138 * of the string in little-endian format. 147 * store a filename of length l in encrypted symlink format.
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8723ae/ |
H A D | pwrseq.h | 62 /* format */ 87 /* format */ 101 /* format */ 128 /* format */ 142 /* format */ 163 /* format */ 184 /* format */ 194 /* format */ 201 /* format */ 249 /* format */ \ 291 /* format */
|
/linux-4.1.27/drivers/mtd/nand/ |
H A D | r852.h | 96 /* ECC syndrome format - read from reg #0 will return two copies of these for 151 #define dbg(format, ...) \ 153 printk(KERN_DEBUG DRV_NAME ": " format "\n", ## __VA_ARGS__) 155 #define dbg_verbose(format, ...) \ 157 printk(KERN_DEBUG DRV_NAME ": " format "\n", ## __VA_ARGS__) 160 #define message(format, ...) \ 161 printk(KERN_INFO DRV_NAME ": " format "\n", ## __VA_ARGS__)
|
/linux-4.1.27/drivers/media/pci/mantis/ |
H A D | mantis_common.h | 38 #define dprintk(y, z, format, arg...) do { \ 41 printk(KERN_ERR "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \ 43 printk(KERN_NOTICE "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \ 45 printk(KERN_INFO "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \ 47 printk(KERN_DEBUG "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \ 49 printk(KERN_DEBUG "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \ 52 printk(format , ##arg); \
|
/linux-4.1.27/scripts/gdb/linux/ |
H A D | symbols.py | 46 "'{0}'\n".format(module_name)) 78 gdb.write("scanning for modules in {0}\n".format(path)) 86 module_pattern = ".*/{0}\.ko$".format( 106 args.append(" -s {name} {addr}".format( 120 gdb.write("loading @{addr}: {filename}\n".format( 122 cmdline = "add-symbol-file {filename} {addr}{sections}".format( 130 gdb.write("no module object found for '{0}'\n".format(module_name))
|
H A D | modules.py | 72 "Address{0} Module Size Used by\n".format( 76 gdb.write("{address} {name:<19} {size:>8} {ref}".format( 88 gdb.write("{separator}{name}".format(
|
/linux-4.1.27/drivers/media/pci/sta2x11/ |
H A D | sta2x11_vip.c | 109 * @format: pixel format, fixed UYVY 138 struct v4l2_pix_format format; member in struct:sta2x11_vip 233 if (vip->format.field == V4L2_FIELD_INTERLACED) start_dma() 234 offset = vip->format.width * 2; start_dma() 278 sizes[0] = vip->format.sizeimage; queue_setup() 303 size = vip->format.sizeimage; buffer_prepare() 456 vip->format = formats_60[0]; vidioc_s_std() 458 vip->format = formats_50[0]; vidioc_s_std() 465 vip->format = formats_60[0]; vidioc_s_std() 467 vip->format = formats_50[0]; vidioc_s_std() 563 * vidioc_enum_fmt_vid_cap - return video capture format 564 * @f: returned format information 566 * returns name and format of video capture 585 * vidioc_try_fmt_vid_cap - set video capture format 587 * @f: new format 589 * new video format is set which includes width and 596 * -EINVAL, pixel or field format not supported 606 v4l2_warn(&vip->v4l2_dev, "Invalid format, only UYVY supported\n"); vidioc_try_fmt_vid_cap() 632 /* It is the only supported format */ vidioc_try_fmt_vid_cap() 647 * vidioc_s_fmt_vid_cap - set current video format parameters 649 * @f: returned format information 651 * set new capture format 668 /* Can't change format during acquisition */ vidioc_s_fmt_vid_cap() 672 vip->format = f->fmt.pix; vidioc_s_fmt_vid_cap() 673 switch (vip->format.field) { vidioc_s_fmt_vid_cap() 675 t_stop = ((vip->format.height / 2 - 1) << 16) | vidioc_s_fmt_vid_cap() 676 (2 * vip->format.width - 1); vidioc_s_fmt_vid_cap() 678 pitch = 4 * vip->format.width; vidioc_s_fmt_vid_cap() 681 t_stop = ((vip->format.height - 1) << 16) | vidioc_s_fmt_vid_cap() 682 (2 * vip->format.width - 1); vidioc_s_fmt_vid_cap() 683 b_stop = (0 << 16) | (2 * vip->format.width - 1); vidioc_s_fmt_vid_cap() 684 pitch = 2 * vip->format.width; vidioc_s_fmt_vid_cap() 687 t_stop = (0 << 16) | (2 * vip->format.width - 1); vidioc_s_fmt_vid_cap() 688 b_stop = (vip->format.height << 16) | vidioc_s_fmt_vid_cap() 689 (2 * vip->format.width - 1); vidioc_s_fmt_vid_cap() 690 pitch = 2 * vip->format.width; vidioc_s_fmt_vid_cap() 693 v4l2_err(&vip->v4l2_dev, "unknown field format\n"); vidioc_s_fmt_vid_cap() 714 * vidioc_g_fmt_vid_cap - get current video format parameters 716 * @f: contains format information 718 * returns current video format parameters 727 f->fmt.pix = vip->format; vidioc_g_fmt_vid_cap() 1041 vip->format = formats_50[0]; sta2x11_vip_init_one()
|
/linux-4.1.27/drivers/media/v4l2-core/ |
H A D | v4l2-subdev.c | 130 struct v4l2_subdev_format *format) check_format() 132 if (format->which != V4L2_SUBDEV_FORMAT_TRY && check_format() 133 format->which != V4L2_SUBDEV_FORMAT_ACTIVE) check_format() 136 if (format->pad >= sd->entity.num_pads) check_format() 258 struct v4l2_subdev_format *format = arg; subdev_do_ioctl() local 260 rval = check_format(sd, format); subdev_do_ioctl() 264 return v4l2_subdev_call(sd, pad, get_fmt, subdev_fh->pad, format); subdev_do_ioctl() 268 struct v4l2_subdev_format *format = arg; subdev_do_ioctl() local 270 rval = check_format(sd, format); subdev_do_ioctl() 274 return v4l2_subdev_call(sd, pad, set_fmt, subdev_fh->pad, format); subdev_do_ioctl() 508 if (source_fmt->format.width != sink_fmt->format.width v4l2_subdev_link_validate_default() 509 || source_fmt->format.height != sink_fmt->format.height v4l2_subdev_link_validate_default() 510 || source_fmt->format.code != sink_fmt->format.code) v4l2_subdev_link_validate_default() 517 if (source_fmt->format.field != sink_fmt->format.field && v4l2_subdev_link_validate_default() 518 sink_fmt->format.field != V4L2_FIELD_NONE) v4l2_subdev_link_validate_default() 129 check_format(struct v4l2_subdev *sd, struct v4l2_subdev_format *format) check_format() argument
|
/linux-4.1.27/drivers/memstick/host/ |
H A D | r592.h | 160 #define message(format, ...) \ 161 printk(KERN_INFO DRV_NAME ": " format "\n", ## __VA_ARGS__) 163 #define __dbg(level, format, ...) \ 167 ": " format "\n", ## __VA_ARGS__); \ 171 #define dbg(format, ...) __dbg(1, format, ## __VA_ARGS__) 172 #define dbg_verbose(format, ...) __dbg(2, format, ## __VA_ARGS__) 173 #define dbg_reg(format, ...) __dbg(3, format, ## __VA_ARGS__)
|
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/phy/ |
H A D | phy_qmath.c | 182 /* This table is log2(1+(i/32)) where i=[0:1:31], in q.15 format */ 225 * This routine takes the input number N and its q format qN and compute 227 * mag*(2^x) format. mag is any number in the range 2^30-(2^31 - 1). 236 * qN - q format of N 276 s32log = log_table[s16tableIndex]; /* q.15 format */ qm_log10() 278 /* interpolate using the offset. q.15 format. */ qm_log10() 283 /* q.15 format */ qm_log10() 289 s32log = qm_add32(s32log, ((s32) -qN) << 15); /* q.15 format */ qm_log10() 295 /* q.15+s16norm-16 format */ qm_log10() 304 /* write the q format of the result. */ qm_log10()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/ |
H A D | nv50_fbcon.c | 155 int ret, format; nv50_fbcon_accel_init() local 159 format = 0xf3; nv50_fbcon_accel_init() 162 format = 0xf8; nv50_fbcon_accel_init() 165 format = 0xe8; nv50_fbcon_accel_init() 171 format = 0xe6; nv50_fbcon_accel_init() 174 format = 0xd1; nv50_fbcon_accel_init() 216 OUT_RING(chan, format); nv50_fbcon_accel_init() 221 OUT_RING(chan, format); nv50_fbcon_accel_init() 236 OUT_RING(chan, format); nv50_fbcon_accel_init() 245 OUT_RING(chan, format); nv50_fbcon_accel_init()
|
H A D | nvc0_fbcon.c | 155 int ret, format; nvc0_fbcon_accel_init() local 164 format = 0xf3; nvc0_fbcon_accel_init() 167 format = 0xf8; nvc0_fbcon_accel_init() 170 format = 0xe8; nvc0_fbcon_accel_init() 176 format = 0xe6; nvc0_fbcon_accel_init() 179 format = 0xd1; nvc0_fbcon_accel_init() 213 OUT_RING (chan, format); nvc0_fbcon_accel_init() 219 OUT_RING (chan, format); nvc0_fbcon_accel_init() 234 OUT_RING (chan, format); nvc0_fbcon_accel_init() 245 OUT_RING (chan, format); nvc0_fbcon_accel_init()
|
/linux-4.1.27/drivers/ata/ |
H A D | pata_sc1200.c | 99 u32 format; sc1200_set_piomode() local 103 pci_read_config_dword(pdev, reg + 4, &format); sc1200_set_piomode() 104 format >>= 31; sc1200_set_piomode() 105 format += sc1200_clock(); sc1200_set_piomode() 107 pio_timings[format][mode]); sc1200_set_piomode() 137 u32 format; sc1200_set_dmamode() local 140 format = udma_timing[clock][mode - XFER_UDMA_0]; sc1200_set_dmamode() 142 format = mwdma_timing[clock][mode - XFER_MW_DMA_0]; sc1200_set_dmamode() 149 timings |= format; sc1200_set_dmamode() 152 pci_write_config_dword(pdev, reg + 12, format); sc1200_set_dmamode()
|
/linux-4.1.27/drivers/memstick/core/ |
H A D | ms_block.h | 280 #define __dbg(level, format, ...) \ 283 pr_err(format "\n", ## __VA_ARGS__); \ 287 #define dbg(format, ...) __dbg(1, format, ## __VA_ARGS__) 288 #define dbg_verbose(format, ...) __dbg(2, format, ## __VA_ARGS__)
|
/linux-4.1.27/fs/ntfs/ |
H A D | debug.c | 28 * @fmt: warning string containing format specifications 34 * @fmt and the corresponding @... is printf style format string containing 35 * the warning string and the corresponding format arguments, respectively. 71 * @fmt: error string containing format specifications 77 * @fmt and the corresponding @... is printf style format string containing 78 * the error string and the corresponding format arguments, respectively.
|
H A D | time.h | 37 * that in little endian format. 44 * NTFS uses Microsoft's standard time format which is stored in a s64 and is 59 * get_current_ntfs_time - get the current time in little endian NTFS format 62 * NTFS time and return that in little endian format. 74 * time and return that in cpu format. 81 * NTFS uses Microsoft's standard time format which is stored in a s64 and is
|
/linux-4.1.27/drivers/media/common/b2c2/ |
H A D | flexcop-common.h | 30 #define err(format, arg...) \ 31 printk(KERN_ERR FC_LOG_PREFIX ": " format "\n" , ## arg) 33 #define info(format, arg...) \ 34 printk(KERN_INFO FC_LOG_PREFIX ": " format "\n" , ## arg) 36 #define warn(format, arg...) \ 37 printk(KERN_WARNING FC_LOG_PREFIX ": " format "\n" , ## arg)
|
/linux-4.1.27/drivers/crypto/caam/ |
H A D | sg_sw_sec4.h | 11 * convert single dma address to h/w link table format 29 * convert scatterlist to h/w link table format 47 * convert scatterlist to h/w link table format
|
/linux-4.1.27/include/scsi/ |
H A D | scsi_eh.h | 11 * This is a slightly modified SCSI sense "descriptor" format header. 14 * format into one structure to ease application processing. 27 u8 additional_length; /* always 0 for fixed sense format */
|
/linux-4.1.27/include/sound/ |
H A D | pcm_oss.h | 40 unsigned params: 1, /* format/parameter change */ 45 int format; /* requested OSS format */ member in struct:snd_pcm_oss_runtime
|
/linux-4.1.27/drivers/media/platform/s3c-camif/ |
H A D | camif-core.c | 105 * s3c_camif_find_format() - lookup camif color format by fourcc or an index 201 struct v4l2_subdev_format format; camif_register_sensor() local 229 /* Get initial pixel format and set it at the camif sink pad */ camif_register_sensor() 230 format.pad = 0; camif_register_sensor() 231 format.which = V4L2_SUBDEV_FORMAT_ACTIVE; camif_register_sensor() 232 ret = v4l2_subdev_call(sd, pad, get_fmt, NULL, &format); camif_register_sensor() 237 format.pad = CAMIF_SD_PAD_SINK; camif_register_sensor() 238 v4l2_subdev_call(&camif->subdev, pad, set_fmt, NULL, &format); camif_register_sensor() 240 v4l2_info(sd, "Initial format from sensor: %dx%d, %#x\n", camif_register_sensor() 241 format.format.width, format.format.height, camif_register_sensor() 242 format.format.code); camif_register_sensor() 467 * Set initial pixel format, resolution and crop rectangle. s3c_camif_probe()
|
/linux-4.1.27/block/partitions/ |
H A D | atari.c | 18 /* check if a partition entry looks valid -- Atari format is assumed if at 57 * format partition table (there's no reliable magic or the like atari_partition() 126 if ( part_fmt!=1 ) { /* no extended partitions -> test ICD-format */ atari_partition() 128 /* sanity check: no ICD format if first partition invalid */ atari_partition()
|
/linux-4.1.27/arch/sparc/kernel/ |
H A D | psycho_common.h | 5 * address format:
|
/linux-4.1.27/arch/mips/boot/dts/include/dt-bindings/media/ |
H A D | xilinx-vip.h | 19 * Video format codes as defined in "AXI4-Stream Video IP and System Design
|