/linux-4.4.14/drivers/media/platform/vsp1/ |
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_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() 204 if (format->code == MEDIA_BUS_FMT_AYUV8_1X32) { vsp1_rwpf_set_selection() 211 sel->r.left = min_t(unsigned int, sel->r.left, format->width - 2); vsp1_rwpf_set_selection() 212 sel->r.top = min_t(unsigned int, sel->r.top, format->height - 2); vsp1_rwpf_set_selection() 218 format->width - sel->r.left); vsp1_rwpf_set_selection() 220 format->height - sel->r.top); vsp1_rwpf_set_selection() 225 /* Propagate the format to the source pad. */ vsp1_rwpf_set_selection() 226 format = vsp1_entity_get_pad_format(&rwpf->entity, cfg, RWPF_PAD_SOURCE, vsp1_rwpf_set_selection() 228 format->width = crop->width; vsp1_rwpf_set_selection() 229 format->height = crop->height; vsp1_rwpf_set_selection()
|
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 | 178 struct v4l2_mbus_framefmt *format; sru_enum_mbus_code() local 186 /* The SRU can't perform format conversion, the sink format is sru_enum_mbus_code() 187 * always identical to the source format. sru_enum_mbus_code() 192 format = vsp1_entity_get_pad_format(&sru->entity, cfg, sru_enum_mbus_code() 194 code->code = format->code; sru_enum_mbus_code() 205 struct v4l2_mbus_framefmt *format; sru_enum_frame_size() local 207 format = vsp1_entity_get_pad_format(&sru->entity, cfg, sru_enum_frame_size() 210 if (fse->index || fse->code != format->code) sru_enum_frame_size() 219 fse->min_width = format->width; sru_enum_frame_size() 220 fse->min_height = format->height; sru_enum_frame_size() 221 if (format->width <= SRU_MAX_SIZE / 2 && sru_enum_frame_size() 222 format->height <= SRU_MAX_SIZE / 2) { sru_enum_frame_size() 223 fse->max_width = format->width * 2; sru_enum_frame_size() 224 fse->max_height = format->height * 2; sru_enum_frame_size() 226 fse->max_width = format->width; sru_enum_frame_size() 227 fse->max_height = format->height; sru_enum_frame_size() 239 fmt->format = *vsp1_entity_get_pad_format(&sru->entity, cfg, fmt->pad, sru_get_format() 249 struct v4l2_mbus_framefmt *format; sru_try_format() local 255 /* Default to YUV if the requested format is not supported. */ sru_try_format() 265 /* The SRU can't perform format conversion. */ sru_try_format() 266 format = vsp1_entity_get_pad_format(&sru->entity, cfg, sru_try_format() 268 fmt->code = format->code; sru_try_format() 276 input_area = format->width * format->height; sru_try_format() 283 fmt->width = format->width * 2; sru_try_format() 284 fmt->height = format->height * 2; sru_try_format() 286 fmt->width = format->width; sru_try_format() 287 fmt->height = format->height; sru_try_format() 300 struct v4l2_mbus_framefmt *format; sru_set_format() local 302 sru_try_format(sru, cfg, fmt->pad, &fmt->format, fmt->which); sru_set_format() 304 format = vsp1_entity_get_pad_format(&sru->entity, cfg, fmt->pad, sru_set_format() 306 *format = fmt->format; sru_set_format() 309 /* Propagate the format to the source pad. */ sru_set_format() 310 format = vsp1_entity_get_pad_format(&sru->entity, cfg, sru_set_format() 312 *format = fmt->format; sru_set_format() 314 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() 796 const struct v4l2_pix_format_mplane *format; vsp1_video_queue_setup() local 801 /* Make sure the format is valid and adjust the sizeimage field vsp1_video_queue_setup() 807 format = &pix_mp; vsp1_video_queue_setup() 809 format = &video->format; vsp1_video_queue_setup() 812 *nplanes = format->num_planes; vsp1_video_queue_setup() 814 for (i = 0; i < format->num_planes; ++i) { vsp1_video_queue_setup() 815 sizes[i] = format->plane_fmt[i].sizeimage; vsp1_video_queue_setup() 827 const struct v4l2_pix_format_mplane *format = &video->format; vsp1_video_buffer_prepare() local 830 if (vb->num_planes < format->num_planes) vsp1_video_buffer_prepare() 837 if (buf->length[i] < format->plane_fmt[i].sizeimage) vsp1_video_buffer_prepare() 1005 vsp1_video_get_format(struct file *file, void *fh, struct v4l2_format *format) vsp1_video_get_format() argument 1010 if (format->type != video->queue.type) vsp1_video_get_format() 1014 format->fmt.pix_mp = video->format; vsp1_video_get_format() 1021 vsp1_video_try_format(struct file *file, void *fh, struct v4l2_format *format) vsp1_video_try_format() argument 1026 if (format->type != video->queue.type) vsp1_video_try_format() 1029 return __vsp1_video_try_format(video, &format->fmt.pix_mp, NULL); vsp1_video_try_format() 1033 vsp1_video_set_format(struct file *file, void *fh, struct v4l2_format *format) vsp1_video_set_format() argument 1040 if (format->type != video->queue.type) vsp1_video_set_format() 1043 ret = __vsp1_video_try_format(video, &format->fmt.pix_mp, &info); vsp1_video_set_format() 1054 video->format = format->fmt.pix_mp; vsp1_video_set_format() 1088 /* Verify that the configured format matches the output of the connected vsp1_video_streamon() 1231 /* ... and the format ... */ vsp1_video_init() 1233 video->format.pixelformat = video->fmtinfo->fourcc; vsp1_video_init() 1234 video->format.colorspace = V4L2_COLORSPACE_SRGB; vsp1_video_init() 1235 video->format.field = V4L2_FIELD_NONE; vsp1_video_init() 1236 video->format.width = VSP1_VIDEO_DEF_WIDTH; vsp1_video_init() 1237 video->format.height = VSP1_VIDEO_DEF_HEIGHT; vsp1_video_init() 1238 video->format.num_planes = 1; vsp1_video_init() 1239 video->format.plane_fmt[0].bytesperline = vsp1_video_init() 1240 video->format.width * video->fmtinfo->bpp[0] / 8; vsp1_video_init() 1241 video->format.plane_fmt[0].sizeimage = vsp1_video_init() 1242 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 | 93 struct v4l2_subdev_format format; vsp1_entity_init_formats() local 97 memset(&format, 0, sizeof(format)); vsp1_entity_init_formats() 99 format.pad = pad; vsp1_entity_init_formats() 100 format.which = cfg ? V4L2_SUBDEV_FORMAT_TRY vsp1_entity_init_formats() 103 v4l2_subdev_call(subdev, pad, set_fmt, cfg, &format); vsp1_entity_init_formats()
|
/linux-4.4.14/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.4.14/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 | 69 * Reading/parsing the default pmu format definition, which should be 71 * /sys/bus/event_source/devices/<dev>/format as sysfs group attributes. 73 static int pmu_format(const char *name, struct list_head *format) pmu_format() argument 83 "%s" EVENT_SOURCE_DEVICE_PATH "%s/format", sysfs, name); pmu_format() 86 return 0; /* no error if format does not exist */ pmu_format() 88 if (perf_pmu__format_parse(path, format)) pmu_format() 462 LIST_HEAD(format); pmu_lookup() 468 * type value and format definitions. Load both right pmu_lookup() 471 if (pmu_format(name, &format)) pmu_lookup() 486 INIT_LIST_HEAD(&pmu->format); pmu_lookup() 488 list_splice(&format, &pmu->format); pmu_lookup() 532 * the pmu format definitions. perf_pmu__find() 544 struct perf_pmu_format *format; pmu_find_format() local 546 list_for_each_entry(format, formats, list) pmu_find_format() 547 if (!strcmp(format->name, name)) pmu_find_format() 548 return format; pmu_find_format() 555 struct perf_pmu_format *format = pmu_find_format(formats, name); perf_pmu__format_bits() local 559 if (!format) perf_pmu__format_bits() 562 for_each_set_bit(fbit, format->bits, PERF_PMU_FORMAT_BITS) perf_pmu__format_bits() 569 * Sets value based on the format definition (format parameter) 572 static void pmu_format_value(unsigned long *format, __u64 value, __u64 *v, pmu_format_value() argument 579 if (!test_bit(fbit, format)) pmu_format_value() 589 static __u64 pmu_format_max_value(const unsigned long *format) pmu_format_max_value() argument 593 w = bitmap_weight(format, PERF_PMU_FORMAT_BITS); pmu_format_max_value() 604 * - We have a term like "base-or-format-term=param-term", 632 struct perf_pmu_format *format; pmu_formats_string() local 642 list_for_each_entry(format, formats, list) pmu_formats_string() 644 format->name); pmu_formats_string() 662 struct perf_pmu_format *format; pmu_config_term() local 680 format = pmu_find_format(formats, term->config); pmu_config_term() 681 if (!format) { pmu_config_term() 695 switch (format->value) { pmu_config_term() 733 max_val = pmu_format_max_value(format->bits); pmu_config_term() 738 "value too big for format, maximum is %llu", pmu_config_term() 740 err->str = strdup("value too big for format"); pmu_config_term() 749 pmu_format_value(format->bits, val, vp, zero); pmu_config_term() 772 * 2) pmu format definitions - specified by pmu parameter 781 return perf_pmu__config_terms(&pmu->format, attr, head_terms, perf_pmu__config() 797 if (pmu_find_format(&pmu->format, term->config)) pmu_find_alias() 898 struct perf_pmu_format *format; perf_pmu__new_format() local 900 format = zalloc(sizeof(*format)); perf_pmu__new_format() 901 if (!format) perf_pmu__new_format() 904 format->name = strdup(name); perf_pmu__new_format() 905 format->value = config; perf_pmu__new_format() 906 memcpy(format->bits, bits, sizeof(format->bits)); perf_pmu__new_format() 908 list_add_tail(&format->list, list); perf_pmu__new_format()
|
H A D | hist.h | 222 #define perf_hpp__for_each_format(format) \ 223 list_for_each_entry(format, &perf_hpp__list, list) 225 #define perf_hpp__for_each_format_safe(format, tmp) \ 226 list_for_each_entry_safe(format, tmp, &perf_hpp__list, list) 228 #define perf_hpp__for_each_sort_list(format) \ 229 list_for_each_entry(format, &perf_hpp__sort_list, sort_list) 231 #define perf_hpp__for_each_sort_list_safe(format, tmp) \ 232 list_for_each_entry_safe(format, tmp, &perf_hpp__sort_list, sort_list) 251 void perf_hpp__column_register(struct perf_hpp_fmt *format); 252 void perf_hpp__column_unregister(struct perf_hpp_fmt *format); 257 void perf_hpp__register_sort_field(struct perf_hpp_fmt *format); 262 bool perf_hpp__is_sort_entry(struct perf_hpp_fmt *format); 265 static inline bool perf_hpp__should_skip(struct perf_hpp_fmt *format) perf_hpp__should_skip() argument 267 return format->elide; perf_hpp__should_skip()
|
/linux-4.4.14/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.4.14/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.vb2_buf, 0, dma->format.sizeimage); xvip_dma_complete() 320 if (fmt && fmt->fmt.pix.sizeimage < dma->format.sizeimage) xvip_dma_queue_setup() 325 sizes[0] = fmt ? fmt->fmt.pix.sizeimage : dma->format.sizeimage; xvip_dma_queue_setup() 366 dma->sgl[0].size = dma->format.width * dma->fmtinfo->bpp; xvip_dma_buffer_queue() 367 dma->sgl[0].icg = dma->format.bytesperline - dma->sgl[0].size; xvip_dma_buffer_queue() 368 dma->xt.numf = dma->format.height; xvip_dma_buffer_queue() 412 /* Verify that the configured format matches the output of the xvip_dma_start_streaming() 510 * with correct formats, and it results in frames in wrong format. Whether this 523 f->pixelformat = dma->format.pixelformat; xvip_dma_enum_format() 531 xvip_dma_get_format(struct file *file, void *fh, struct v4l2_format *format) xvip_dma_get_format() argument 536 format->fmt.pix = dma->format; xvip_dma_get_format() 554 /* Retrieve format information and select the default format if the __xvip_dma_try_format() 555 * requested format isn't supported. __xvip_dma_try_format() 593 xvip_dma_try_format(struct file *file, void *fh, struct v4l2_format *format) xvip_dma_try_format() argument 598 __xvip_dma_try_format(dma, &format->fmt.pix, NULL); xvip_dma_try_format() 603 xvip_dma_set_format(struct file *file, void *fh, struct v4l2_format *format) xvip_dma_set_format() argument 609 __xvip_dma_try_format(dma, &format->fmt.pix, &info); xvip_dma_set_format() 614 dma->format = format->fmt.pix; xvip_dma_set_format() 670 dma->format.pixelformat = dma->fmtinfo->fourcc; xvip_dma_init() 671 dma->format.colorspace = V4L2_COLORSPACE_SRGB; xvip_dma_init() 672 dma->format.field = V4L2_FIELD_NONE; xvip_dma_init() 673 dma->format.width = XVIP_DMA_DEF_WIDTH; xvip_dma_init() 674 dma->format.height = XVIP_DMA_DEF_HEIGHT; xvip_dma_init() 675 dma->format.bytesperline = dma->format.width * dma->fmtinfo->bpp; xvip_dma_init() 676 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.4.14/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
|
H A D | pcm_iec958.c | 15 * snd_pcm_create_iec958_consumer - create consumer format IEC958 channel status 20 * Create the consumer format channel status data in @cs of maximum size 62 switch (snd_pcm_format_width(runtime->format)) { snd_pcm_create_iec958_consumer()
|
/linux-4.4.14/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.4.14/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() 172 test_format_dir_put(format); test__pmu()
|
/linux-4.4.14/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.4.14/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 */ 126 unsigned int fmt_type; /* USB audio format type (1-3) */ 143 u64 formats; /* format bitmasks (all or'ed) */ 145 struct list_head fmt_list; /* format list */ 165 unsigned int fmt_type; /* USB audio format type (1-3) */
|
/linux-4.4.14/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.4.14/drivers/staging/media/omap4iss/ |
H A D | iss_ipipe.c | 89 struct v4l2_mbus_framefmt *format; ipipe_configure() local 92 format = &ipipe->formats[IPIPE_PAD_SINK]; ipipe_configure() 105 (format->height - 2) & IPIPE_SRC_VSZ_MASK); ipipe_configure() 107 (format->width - 1) & IPIPE_SRC_HSZ_MASK); ipipe_configure() 119 format = &ipipe->formats[IPIPE_PAD_SOURCE_VP]; ipipe_configure() 193 * ipipe_try_format - Try video format on a pad 206 struct v4l2_mbus_framefmt *format; ipipe_try_format() local 229 format = __ipipe_get_format(ipipe, cfg, IPIPE_PAD_SINK, which); ipipe_try_format() 230 memcpy(fmt, format, sizeof(*fmt)); ipipe_try_format() 243 * ipipe_enum_mbus_code - Handle pixel format enumeration 262 /* FIXME: Forced format conversion inside IPIPE ? */ ipipe_enum_mbus_code() 281 struct v4l2_mbus_framefmt format; ipipe_enum_frame_size() local 286 format.code = fse->code; ipipe_enum_frame_size() 287 format.width = 1; ipipe_enum_frame_size() 288 format.height = 1; ipipe_enum_frame_size() 289 ipipe_try_format(ipipe, cfg, fse->pad, &format, fse->which); ipipe_enum_frame_size() 290 fse->min_width = format.width; ipipe_enum_frame_size() 291 fse->min_height = format.height; ipipe_enum_frame_size() 293 if (format.code != fse->code) ipipe_enum_frame_size() 296 format.code = fse->code; ipipe_enum_frame_size() 297 format.width = -1; ipipe_enum_frame_size() 298 format.height = -1; ipipe_enum_frame_size() 299 ipipe_try_format(ipipe, cfg, fse->pad, &format, fse->which); ipipe_enum_frame_size() 300 fse->max_width = format.width; ipipe_enum_frame_size() 301 fse->max_height = format.height; ipipe_enum_frame_size() 307 * ipipe_get_format - Retrieve the video format on a pad 313 * to the format type. 320 struct v4l2_mbus_framefmt *format; ipipe_get_format() local 322 format = __ipipe_get_format(ipipe, cfg, fmt->pad, fmt->which); ipipe_get_format() 323 if (!format) ipipe_get_format() 326 fmt->format = *format; ipipe_get_format() 331 * ipipe_set_format - Set the video format on a pad 337 * to the format type. 344 struct v4l2_mbus_framefmt *format; ipipe_set_format() local 346 format = __ipipe_get_format(ipipe, cfg, fmt->pad, fmt->which); ipipe_set_format() 347 if (!format) ipipe_set_format() 350 ipipe_try_format(ipipe, cfg, fmt->pad, &fmt->format, fmt->which); ipipe_set_format() 351 *format = fmt->format; ipipe_set_format() 353 /* Propagate the format from sink to source */ ipipe_set_format() 355 format = __ipipe_get_format(ipipe, cfg, IPIPE_PAD_SOURCE_VP, ipipe_set_format() 357 *format = fmt->format; ipipe_set_format() 358 ipipe_try_format(ipipe, cfg, IPIPE_PAD_SOURCE_VP, format, ipipe_set_format() 370 if (source_fmt->format.width != sink_fmt->format.width || ipipe_link_validate() 371 source_fmt->format.height != sink_fmt->format.height) ipipe_link_validate() 374 if (source_fmt->format.code != sink_fmt->format.code) ipipe_link_validate() 391 struct v4l2_subdev_format format; ipipe_init_formats() local 393 memset(&format, 0, sizeof(format)); ipipe_init_formats() 394 format.pad = IPIPE_PAD_SINK; ipipe_init_formats() 395 format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE; ipipe_init_formats() 396 format.format.code = MEDIA_BUS_FMT_SGRBG10_1X10; ipipe_init_formats() 397 format.format.width = 4096; ipipe_init_formats() 398 format.format.height = 4096; ipipe_init_formats() 399 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. 526 struct v4l2_mbus_framefmt *format; ipipeif_get_format() local 528 format = __ipipeif_get_format(ipipeif, cfg, fmt->pad, fmt->which); ipipeif_get_format() 529 if (!format) ipipeif_get_format() 532 fmt->format = *format; ipipeif_get_format() 537 * ipipeif_set_format - Set the video format on a pad 543 * to the format type. 550 struct v4l2_mbus_framefmt *format; ipipeif_set_format() local 552 format = __ipipeif_get_format(ipipeif, cfg, fmt->pad, fmt->which); ipipeif_set_format() 553 if (!format) ipipeif_set_format() 556 ipipeif_try_format(ipipeif, cfg, fmt->pad, &fmt->format, fmt->which); ipipeif_set_format() 557 *format = fmt->format; ipipeif_set_format() 559 /* Propagate the format from sink to source */ ipipeif_set_format() 561 format = __ipipeif_get_format(ipipeif, cfg, ipipeif_set_format() 564 *format = fmt->format; ipipeif_set_format() 566 format, fmt->which); ipipeif_set_format() 568 format = __ipipeif_get_format(ipipeif, cfg, ipipeif_set_format() 571 *format = fmt->format; ipipeif_set_format() 572 ipipeif_try_format(ipipeif, cfg, IPIPEIF_PAD_SOURCE_VP, format, ipipeif_set_format() 585 if (source_fmt->format.width != sink_fmt->format.width || ipipeif_link_validate() 586 source_fmt->format.height != sink_fmt->format.height) ipipeif_link_validate() 589 if (source_fmt->format.code != sink_fmt->format.code) ipipeif_link_validate() 607 struct v4l2_subdev_format format; ipipeif_init_formats() local 609 memset(&format, 0, sizeof(format)); ipipeif_init_formats() 610 format.pad = IPIPEIF_PAD_SINK; ipipeif_init_formats() 611 format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE; ipipeif_init_formats() 612 format.format.code = MEDIA_BUS_FMT_SGRBG10_1X10; ipipeif_init_formats() 613 format.format.width = 4096; ipipeif_init_formats() 614 format.format.height = 4096; ipipeif_init_formats() 615 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() 492 * resizer_enum_mbus_code - Handle pixel format enumeration 503 struct v4l2_mbus_framefmt *format; resizer_enum_mbus_code() local 514 format = __resizer_get_format(resizer, cfg, RESIZER_PAD_SINK, resizer_enum_mbus_code() 518 code->code = format->code; resizer_enum_mbus_code() 522 switch (format->code) { resizer_enum_mbus_code() 548 struct v4l2_mbus_framefmt format; resizer_enum_frame_size() local 553 format.code = fse->code; resizer_enum_frame_size() 554 format.width = 1; resizer_enum_frame_size() 555 format.height = 1; resizer_enum_frame_size() 556 resizer_try_format(resizer, cfg, fse->pad, &format, fse->which); resizer_enum_frame_size() 557 fse->min_width = format.width; resizer_enum_frame_size() 558 fse->min_height = format.height; resizer_enum_frame_size() 560 if (format.code != fse->code) resizer_enum_frame_size() 563 format.code = fse->code; resizer_enum_frame_size() 564 format.width = -1; resizer_enum_frame_size() 565 format.height = -1; resizer_enum_frame_size() 566 resizer_try_format(resizer, cfg, fse->pad, &format, fse->which); resizer_enum_frame_size() 567 fse->max_width = format.width; resizer_enum_frame_size() 568 fse->max_height = format.height; resizer_enum_frame_size() 574 * resizer_get_format - Retrieve the video format on a pad 580 * 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) 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. 611 struct v4l2_mbus_framefmt *format; resizer_set_format() local 613 format = __resizer_get_format(resizer, cfg, fmt->pad, fmt->which); resizer_set_format() 614 if (!format) resizer_set_format() 617 resizer_try_format(resizer, cfg, fmt->pad, &fmt->format, fmt->which); resizer_set_format() 618 *format = fmt->format; resizer_set_format() 620 /* Propagate the format from sink to source */ resizer_set_format() 622 format = __resizer_get_format(resizer, cfg, resizer_set_format() 625 *format = fmt->format; resizer_set_format() 626 resizer_try_format(resizer, cfg, RESIZER_PAD_SOURCE_MEM, format, resizer_set_format() 639 if (source_fmt->format.width != sink_fmt->format.width || resizer_link_validate() 640 source_fmt->format.height != sink_fmt->format.height) resizer_link_validate() 643 if (source_fmt->format.code != sink_fmt->format.code) resizer_link_validate() 661 struct v4l2_subdev_format format; resizer_init_formats() local 663 memset(&format, 0, sizeof(format)); resizer_init_formats() 664 format.pad = RESIZER_PAD_SINK; resizer_init_formats() 665 format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE; resizer_init_formats() 666 format.format.code = MEDIA_BUS_FMT_UYVY8_1X16; resizer_init_formats() 667 format.format.width = 4096; resizer_init_formats() 668 format.format.height = 4096; resizer_init_formats() 669 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() 850 struct v4l2_mbus_framefmt *format; csi2_try_format() local 871 /* Source format same as sink format, except for DPCM csi2_try_format() 875 format = __csi2_get_format(csi2, cfg, CSI2_PAD_SINK, which); csi2_try_format() 876 memcpy(fmt, format, sizeof(*fmt)); csi2_try_format() 894 * csi2_enum_mbus_code - Handle pixel format enumeration 905 struct v4l2_mbus_framefmt *format; csi2_enum_mbus_code() local 914 format = __csi2_get_format(csi2, cfg, CSI2_PAD_SINK, csi2_enum_mbus_code() 919 code->code = format->code; csi2_enum_mbus_code() 923 info = omap4iss_video_format_info(format->code); csi2_enum_mbus_code() 924 if (info->uncompressed == format->code) csi2_enum_mbus_code() 942 struct v4l2_mbus_framefmt format; csi2_enum_frame_size() local 947 format.code = fse->code; csi2_enum_frame_size() 948 format.width = 1; csi2_enum_frame_size() 949 format.height = 1; csi2_enum_frame_size() 950 csi2_try_format(csi2, cfg, fse->pad, &format, fse->which); csi2_enum_frame_size() 951 fse->min_width = format.width; csi2_enum_frame_size() 952 fse->min_height = format.height; csi2_enum_frame_size() 954 if (format.code != fse->code) csi2_enum_frame_size() 957 format.code = fse->code; csi2_enum_frame_size() 958 format.width = -1; csi2_enum_frame_size() 959 format.height = -1; csi2_enum_frame_size() 960 csi2_try_format(csi2, cfg, fse->pad, &format, fse->which); csi2_enum_frame_size() 961 fse->max_width = format.width; csi2_enum_frame_size() 962 fse->max_height = format.height; csi2_enum_frame_size() 968 * csi2_get_format - Handle get format by pads subdev method 971 * @fmt: pointer to v4l2 subdev format structure 979 struct v4l2_mbus_framefmt *format; csi2_get_format() local 981 format = __csi2_get_format(csi2, cfg, fmt->pad, fmt->which); csi2_get_format() 982 if (!format) csi2_get_format() 985 fmt->format = *format; csi2_get_format() 990 * csi2_set_format - Handle set format by pads subdev method 993 * @fmt: pointer to v4l2 subdev format structure 1001 struct v4l2_mbus_framefmt *format; csi2_set_format() local 1003 format = __csi2_get_format(csi2, cfg, fmt->pad, fmt->which); csi2_set_format() 1004 if (!format) csi2_set_format() 1007 csi2_try_format(csi2, cfg, fmt->pad, &fmt->format, fmt->which); csi2_set_format() 1008 *format = fmt->format; csi2_set_format() 1010 /* Propagate the format from sink to source */ csi2_set_format() 1012 format = __csi2_get_format(csi2, cfg, CSI2_PAD_SOURCE, csi2_set_format() 1014 *format = fmt->format; csi2_set_format() 1015 csi2_try_format(csi2, cfg, CSI2_PAD_SOURCE, format, fmt->which); csi2_set_format() 1049 struct v4l2_subdev_format format; csi2_init_formats() local 1051 memset(&format, 0, sizeof(format)); csi2_init_formats() 1052 format.pad = CSI2_PAD_SINK; csi2_init_formats() 1053 format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE; csi2_init_formats() 1054 format.format.code = MEDIA_BUS_FMT_SGRBG10_1X10; csi2_init_formats() 1055 format.format.width = 4096; csi2_init_formats() 1056 format.format.height = 4096; csi2_init_formats() 1057 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 | 108 * @mbus: v4l2_mbus_framefmt format (input) 109 * @pix: v4l2_pix_format format (output) 111 * Fill the output pix structure with information from the input mbus format. 113 * per line value in the pix format and information from the video instance. 129 /* Skip the last format in the loop so that it will be selected if no iss_video_mbus_to_pix() 173 /* Skip the last format in the loop so that it will be selected if no iss_video_pix_to_mbus() 235 struct v4l2_mbus_framefmt *format) __iss_video_get_format() 257 *format = fmt.format; __iss_video_get_format() 264 struct v4l2_mbus_framefmt format; iss_video_check_format() local 268 ret = __iss_video_get_format(video, &format); iss_video_check_format() 273 ret = iss_video_mbus_to_pix(video, &format, &pixfmt); iss_video_check_format() 275 if (vfh->format.fmt.pix.pixelformat != pixfmt.pixelformat || iss_video_check_format() 276 vfh->format.fmt.pix.height != pixfmt.height || iss_video_check_format() 277 vfh->format.fmt.pix.width != pixfmt.width || iss_video_check_format() 278 vfh->format.fmt.pix.bytesperline != pixfmt.bytesperline || iss_video_check_format() 279 vfh->format.fmt.pix.sizeimage != pixfmt.sizeimage) iss_video_check_format() 300 sizes[0] = vfh->format.fmt.pix.sizeimage; iss_video_queue_setup() 326 unsigned long size = vfh->format.fmt.pix.sizeimage; iss_video_buf_prepare() 542 struct v4l2_mbus_framefmt format; iss_video_enum_format() local 550 ret = __iss_video_get_format(video, &format); iss_video_enum_format() 557 if (format.code != info->code) iss_video_enum_format() 574 iss_video_get_format(struct file *file, void *fh, struct v4l2_format *format) iss_video_get_format() argument 579 if (format->type != video->type) iss_video_get_format() 583 *format = vfh->format; iss_video_get_format() 590 iss_video_set_format(struct file *file, void *fh, struct v4l2_format *format) iss_video_set_format() argument 596 if (format->type != video->type) iss_video_set_format() 602 * format and back to pixel format. iss_video_set_format() 604 iss_video_pix_to_mbus(&format->fmt.pix, &fmt); iss_video_set_format() 605 iss_video_mbus_to_pix(video, &fmt, &format->fmt.pix); iss_video_set_format() 607 vfh->format = *format; iss_video_set_format() 614 iss_video_try_format(struct file *file, void *fh, struct v4l2_format *format) iss_video_try_format() argument 622 if (format->type != video->type) iss_video_try_format() 629 iss_video_pix_to_mbus(&format->fmt.pix, &fmt.format); iss_video_try_format() 637 iss_video_mbus_to_pix(video, &fmt.format, &format->fmt.pix); iss_video_try_format() 788 /* Verify that the currently configured format matches the output of iss_video_streamon() 796 video->bpl_value = vfh->format.fmt.pix.bytesperline; iss_video_streamon() 1017 memset(&handle->format, 0, sizeof(handle->format)); iss_video_open() 1018 handle->format.type = video->type; iss_video_open() 234 __iss_video_get_format(struct iss_video *video, struct v4l2_mbus_framefmt *format) __iss_video_get_format() argument
|
/linux-4.4.14/drivers/input/serio/ |
H A D | i8042.h | 70 #define dbg(format, arg...) \ 73 printk(KERN_DEBUG KBUILD_MODNAME ": [%d] " format, \ 77 #define filter_dbg(filter, data, format, args...) \ 83 dbg("%02x " format, data, ##args); \ 85 dbg("** " format, ##args); \ 89 #define dbg(format, arg...) \ 92 printk(KERN_DEBUG pr_fmt(format), ##arg); \ 95 #define filter_dbg(filter, data, format, args...) do { } while (0)
|
/linux-4.4.14/arch/cris/boot/dts/include/dt-bindings/input/ |
H A D | input.h | 4 * Most input bindings include key code, matrix key code format. 5 * In most cases, key code and matrix key code format uses
|
/linux-4.4.14/include/dt-bindings/input/ |
H A D | input.h | 4 * Most input bindings include key code, matrix key code format. 5 * In most cases, key code and matrix key code format uses
|
/linux-4.4.14/arch/metag/boot/dts/include/dt-bindings/input/ |
H A D | input.h | 4 * Most input bindings include key code, matrix key code format. 5 * In most cases, key code and matrix key code format uses
|
/linux-4.4.14/arch/mips/boot/dts/include/dt-bindings/input/ |
H A D | input.h | 4 * Most input bindings include key code, matrix key code format. 5 * In most cases, key code and matrix key code format uses
|
/linux-4.4.14/arch/powerpc/boot/dts/include/dt-bindings/input/ |
H A D | input.h | 4 * Most input bindings include key code, matrix key code format. 5 * In most cases, key code and matrix key code format uses
|
/linux-4.4.14/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.4.14/arch/arm64/boot/dts/include/dt-bindings/input/ |
H A D | input.h | 4 * Most input bindings include key code, matrix key code format. 5 * In most cases, key code and matrix key code format uses
|
/linux-4.4.14/arch/arm/boot/dts/include/dt-bindings/input/ |
H A D | input.h | 4 * Most input bindings include key code, matrix key code format. 5 * In most cases, key code and matrix key code format uses
|
/linux-4.4.14/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.4.14/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) 44 * MEDIA_BUS_FMT_ definitions (defined in media-bus-format.h) should be 47 * New defines should only be added to media-bus-format.h. The
|
/linux-4.4.14/tools/virtio/linux/ |
H A D | kernel.h | 40 #define __printf(a,b) __attribute__((format(printf,a,b))) 98 #define pr_err(format, ...) fprintf (stderr, format, ## __VA_ARGS__) 100 #define pr_debug(format, ...) fprintf (stderr, format, ## __VA_ARGS__) 102 #define pr_debug(format, ...) do {} while (0) 104 #define dev_err(dev, format, ...) fprintf (stderr, format, ## __VA_ARGS__) 105 #define dev_warn(dev, format, ...) fprintf (stderr, format, ## __VA_ARGS__)
|
/linux-4.4.14/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() 120 va_start(arg_list, format); ACPI_EXPORT_SYMBOL() 121 acpi_os_vprintf(format, arg_list); ACPI_EXPORT_SYMBOL() 136 * format - Printf format string + additional args ACPI_EXPORT_SYMBOL() 144 acpi_warning(const char *module_name, u32 line_number, const char *format, ...) ACPI_EXPORT_SYMBOL() 151 va_start(arg_list, format); ACPI_EXPORT_SYMBOL() 152 acpi_os_vprintf(format, arg_list); ACPI_EXPORT_SYMBOL() 167 * format - Printf format string + additional args ACPI_EXPORT_SYMBOL() 178 acpi_info(const char *module_name, u32 line_number, const char *format, ...) ACPI_EXPORT_SYMBOL() 185 va_start(arg_list, format); ACPI_EXPORT_SYMBOL() 186 acpi_os_vprintf(format, arg_list); ACPI_EXPORT_SYMBOL() 201 * format - Printf format string + additional args ACPI_EXPORT_SYMBOL() 211 u32 line_number, const char *format, ...) ACPI_EXPORT_SYMBOL() 218 va_start(arg_list, format); ACPI_EXPORT_SYMBOL() 219 acpi_os_vprintf(format, arg_list); ACPI_EXPORT_SYMBOL() 234 * format - Printf format string + additional args ACPI_EXPORT_SYMBOL() 244 u32 line_number, const char *format, ...) ACPI_EXPORT_SYMBOL() 251 va_start(arg_list, format); ACPI_EXPORT_SYMBOL() 252 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 (isdigit((int)*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 (isdigit((int)*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.4.14/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-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() 316 "fail to set stream format: %d\n", err); snd_oxfw_stream_start_simplex() 391 u8 *format; snd_oxfw_stream_get_current_formation() local 396 format = kmalloc(len, GFP_KERNEL); snd_oxfw_stream_get_current_formation() 397 if (format == NULL) snd_oxfw_stream_get_current_formation() 400 err = avc_stream_get_format_single(oxfw->unit, dir, 0, format, &len); snd_oxfw_stream_get_current_formation() 408 err = snd_oxfw_stream_parse_format(format, formation); snd_oxfw_stream_get_current_formation() 410 kfree(format); snd_oxfw_stream_get_current_formation() 420 int snd_oxfw_stream_parse_format(u8 *format, snd_oxfw_stream_parse_format() argument 432 if ((format[0] != 0x90) || (format[1] != 0x40)) snd_oxfw_stream_parse_format() 437 if (format[2] == avc_stream_rate_table[i]) snd_oxfw_stream_parse_format() 445 for (e = 0; e < format[4]; e++) { snd_oxfw_stream_parse_format() 446 channels = format[5 + e * 2]; snd_oxfw_stream_parse_format() 447 type = format[6 + e * 2]; snd_oxfw_stream_parse_format() 505 /* get format at current sampling rate */ assume_stream_formats() 509 "fail to get current stream format for isoc %s plug %d:%d\n", assume_stream_formats() 515 /* parse and set stream format */ assume_stream_formats() 527 /* apply the format for each available sampling rate */ assume_stream_formats() 582 "fail to get stream format %d for isoc %s plug %d:%d\n", fill_stream_formats() 590 /* The format is too short. */ fill_stream_formats() 596 /* parse and set stream format */ fill_stream_formats() 617 "fail to get stream format %d for isoc %s plug %d:%d\n", fill_stream_formats() 633 u8 *format; snd_oxfw_stream_discover() local 656 format = oxfw->tx_stream_formats[i]; snd_oxfw_stream_discover() 657 if (format == NULL) snd_oxfw_stream_discover() 659 err = snd_oxfw_stream_parse_format(format, &formation); snd_oxfw_stream_discover() 678 format = oxfw->rx_stream_formats[i]; snd_oxfw_stream_discover() 679 if (format == NULL) snd_oxfw_stream_discover() 681 err = snd_oxfw_stream_parse_format(format, &formation); snd_oxfw_stream_discover()
|
/linux-4.4.14/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.4.14/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_warn(const char *format, ...) bt_warn() argument 159 va_start(args, format); bt_warn() 161 vaf.fmt = format; bt_warn() 170 void bt_err(const char *format, ...) bt_err() argument 175 va_start(args, format); bt_err() 177 vaf.fmt = format; bt_err() 186 void bt_err_ratelimited(const char *format, ...) bt_err_ratelimited() argument 191 va_start(args, format); bt_err_ratelimited() 193 vaf.fmt = format; bt_err_ratelimited()
|
/linux-4.4.14/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.4.14/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.4.14/drivers/staging/rdma/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.4.14/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.4.14/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.4.14/drivers/pci/hotplug/ |
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 | 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 | 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.4.14/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.4.14/include/linux/ |
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 | 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 | 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 | 42 #define VM_WARN_ONCE(cond, format...) WARN_ONCE(cond, format) 50 #define VM_WARN_ONCE(cond, format...) BUILD_BUG_ON_INVALID(cond)
|
/linux-4.4.14/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.4.14/scripts/gdb/linux/ |
H A D | lists.py | 29 gdb.write("Starting with: {}\n".format(c)) 40 'prev@{p_addr}={p}\n'.format( 49 'current@{current_addr}={current}\n'.format( 58 'next@{n_addr}={n}\n'.format( 67 'current@{current_addr}={current}\n'.format( 75 gdb.write("list is consistent: {} node(s)\n".format(nb))
|
H A D | symbols.py | 45 "'{0}'\n".format(module_name)) 77 gdb.write("scanning for modules in {0}\n".format(path)) 85 module_pattern = ".*/{0}\.ko$".format( 105 args.append(" -s {name} {addr}".format( 119 gdb.write("loading @{addr}: {filename}\n".format( 121 cmdline = "add-symbol-file {filename} {addr}{sections}".format( 129 gdb.write("no module object found for '{0}'\n".format(module_name))
|
/linux-4.4.14/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.4.14/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 137 const struct format *format, int n, int x, int y) get_linear_addr() 142 (x * format->planes[n].stride_bpp) + get_linear_addr() 143 (y * plane->pitch / format->planes[n].sub_y); get_linear_addr() 154 const struct format *format = omap_fb->format; omap_framebuffer_update_scanout() local 158 info->color_mode = format->dss_format; omap_framebuffer_update_scanout() 226 info->paddr = get_linear_addr(plane, format, 0, x, y); omap_framebuffer_update_scanout() 232 info->screen_width /= format->planes[0].stride_bpp; omap_framebuffer_update_scanout() 234 if (format->dss_format == OMAP_DSS_COLOR_NV12) { omap_framebuffer_update_scanout() 242 info->p_uv_addr = get_linear_addr(plane, format, 1, x, y); omap_framebuffer_update_scanout() 393 const struct format *format = NULL; omap_framebuffer_init() local 402 format = &formats[i]; omap_framebuffer_init() 407 if (!format) { omap_framebuffer_init() 408 dev_err(dev->dev, "unsupported pixel format: %4.4s\n", omap_framebuffer_init() 421 omap_fb->format = format; omap_framebuffer_init() 428 if (pitch < (mode_cmd->width * format->planes[i].stride_bpp)) { omap_framebuffer_init() 430 pitch, mode_cmd->width * format->planes[i].stride_bpp); omap_framebuffer_init() 435 if (pitch % format->planes[i].stride_bpp != 0) { omap_framebuffer_init() 438 pitch, format->planes[i].stride_bpp); omap_framebuffer_init() 443 size = pitch * mode_cmd->height / format->planes[i].sub_y; omap_framebuffer_init() 136 get_linear_addr(struct plane *plane, const struct format *format, int n, int x, int y) get_linear_addr() argument
|
/linux-4.4.14/drivers/gpu/drm/vmwgfx/device_include/ |
H A D | svga3d_surfacedefs.h | 108 SVGA3DBLOCKDESC_SRGB = 1 << 12, /* Data is in sRGB format */ 203 SVGA3dSurfaceFormat format; member in struct:svga3d_surface_desc 949 svga3dsurface_get_desc(SVGA3dSurfaceFormat format) svga3dsurface_get_desc() argument 951 if (format < ARRAY_SIZE(svga3d_surface_descs)) svga3dsurface_get_desc() 952 return &svga3d_surface_descs[format]; svga3dsurface_get_desc() 1068 svga3dsurface_get_serialized_size(SVGA3dSurfaceFormat format, svga3dsurface_get_serialized_size() argument 1073 const struct svga3d_surface_desc *desc = svga3dsurface_get_desc(format); svga3dsurface_get_serialized_size() 1096 svga3dsurface_get_pixel_offset(SVGA3dSurfaceFormat format, svga3dsurface_get_pixel_offset() argument 1100 const struct svga3d_surface_desc *desc = svga3dsurface_get_desc(format); svga3dsurface_get_pixel_offset() 1113 svga3dsurface_get_image_offset(SVGA3dSurfaceFormat format, svga3dsurface_get_image_offset() argument 1128 desc = svga3dsurface_get_desc(format); svga3dsurface_get_image_offset() 1147 * svga3dsurface_is_gb_screen_target_format - Is the specified format usable as 1151 * @format: format to queried 1154 * true if queried format is valid for screen targets 1157 svga3dsurface_is_gb_screen_target_format(SVGA3dSurfaceFormat format) svga3dsurface_is_gb_screen_target_format() argument 1159 return (format == SVGA3D_X8R8G8B8 || svga3dsurface_is_gb_screen_target_format() 1160 format == SVGA3D_A8R8G8B8 || svga3dsurface_is_gb_screen_target_format() 1161 format == SVGA3D_R5G6B5 || svga3dsurface_is_gb_screen_target_format() 1162 format == SVGA3D_X1R5G5B5 || svga3dsurface_is_gb_screen_target_format() 1163 format == SVGA3D_A1R5G5B5 || svga3dsurface_is_gb_screen_target_format() 1164 format == SVGA3D_P8); svga3dsurface_is_gb_screen_target_format() 1169 * svga3dsurface_is_dx_screen_target_format - Is the specified format usable as 1173 * @format: format to queried 1176 * true if queried format is valid for screen targets 1179 svga3dsurface_is_dx_screen_target_format(SVGA3dSurfaceFormat format) svga3dsurface_is_dx_screen_target_format() argument 1181 return (format == SVGA3D_R8G8B8A8_UNORM || svga3dsurface_is_dx_screen_target_format() 1182 format == SVGA3D_B8G8R8A8_UNORM || svga3dsurface_is_dx_screen_target_format() 1183 format == SVGA3D_B8G8R8X8_UNORM); svga3dsurface_is_dx_screen_target_format() 1188 * svga3dsurface_is_screen_target_format - Is the specified format usable as a 1192 * @format: format to queried 1195 * true if queried format is valid for screen targets 1198 svga3dsurface_is_screen_target_format(SVGA3dSurfaceFormat format) svga3dsurface_is_screen_target_format() argument 1200 if (svga3dsurface_is_gb_screen_target_format(format)) { svga3dsurface_is_screen_target_format() 1203 return svga3dsurface_is_dx_screen_target_format(format); svga3dsurface_is_screen_target_format()
|
H A D | svga3d_devcaps.h | 414 * SUPPORTED: Can the format be defined? 415 * SHADER_SAMPLE: Can the format be sampled from a shader? 416 * COLOR_RENDERTARGET: Can the format be a color render target? 417 * DEPTH_RENDERTARGET: Can the format be a depth render target? 418 * BLENDABLE: Is the format blendable? 419 * MIPS: Does the format support mip levels? 420 * ARRAY: Does the format support texture arrays? 421 * VOLUME: Does the format support having volume? 422 * MULTISAMPLE_2: Does the format support 2x multisample? 423 * MULTISAMPLE_4: Does the format support 4x multisample? 424 * MULTISAMPLE_8: Does the format support 8x multisample?
|
/linux-4.4.14/drivers/media/platform/soc_camera/ |
H A D | soc_camera_platform.c | 41 struct v4l2_subdev_format *format) soc_camera_platform_fill_fmt() 44 struct v4l2_mbus_framefmt *mf = &format->format; soc_camera_platform_fill_fmt() 46 mf->width = p->format.width; soc_camera_platform_fill_fmt() 47 mf->height = p->format.height; soc_camera_platform_fill_fmt() 48 mf->code = p->format.code; soc_camera_platform_fill_fmt() 49 mf->colorspace = p->format.colorspace; soc_camera_platform_fill_fmt() 50 mf->field = p->format.field; soc_camera_platform_fill_fmt() 75 code->code = p->format.code; soc_camera_platform_enum_mbus_code() 86 a->c.width = p->format.width; soc_camera_platform_g_crop() 87 a->c.height = p->format.height; soc_camera_platform_g_crop() 100 a->bounds.width = p->format.width; soc_camera_platform_cropcap() 101 a->bounds.height = p->format.height; soc_camera_platform_cropcap() 39 soc_camera_platform_fill_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_format *format) soc_camera_platform_fill_fmt() argument
|
/linux-4.4.14/drivers/hwmon/pmbus/ |
H A D | max20751.c | 26 .format[PSC_VOLTAGE_IN] = linear, 27 .format[PSC_VOLTAGE_OUT] = vid, 29 .format[PSC_TEMPERATURE] = linear, 30 .format[PSC_CURRENT_OUT] = linear, 31 .format[PSC_POWER] = linear,
|
H A D | max34440.c | 208 .format[PSC_VOLTAGE_IN] = direct, 209 .format[PSC_VOLTAGE_OUT] = direct, 210 .format[PSC_TEMPERATURE] = direct, 211 .format[PSC_CURRENT_OUT] = direct, 250 .format[PSC_VOLTAGE_IN] = direct, 251 .format[PSC_VOLTAGE_OUT] = direct, 252 .format[PSC_TEMPERATURE] = direct, 253 .format[PSC_CURRENT_OUT] = direct, 254 .format[PSC_FAN] = direct, 293 .format[PSC_VOLTAGE_IN] = direct, 294 .format[PSC_VOLTAGE_OUT] = direct, 295 .format[PSC_TEMPERATURE] = direct, 296 .format[PSC_CURRENT_OUT] = direct, 297 .format[PSC_POWER] = direct, 330 .format[PSC_VOLTAGE_OUT] = direct, 331 .format[PSC_TEMPERATURE] = direct, 361 .format[PSC_VOLTAGE_OUT] = direct, 362 .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,
|
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_common.h | 198 #define hw_dbg(hw, format, arg...) \ 199 netdev_dbg(ixgbe_hw_to_netdev(hw), format, ## arg) 200 #define hw_err(hw, format, arg...) \ 201 netdev_err(ixgbe_hw_to_netdev(hw), format, ## arg) 202 #define e_dev_info(format, arg...) \ 203 dev_info(&adapter->pdev->dev, format, ## arg) 204 #define e_dev_warn(format, arg...) \ 205 dev_warn(&adapter->pdev->dev, format, ## arg) 206 #define e_dev_err(format, arg...) \ 207 dev_err(&adapter->pdev->dev, format, ## arg) 208 #define e_dev_notice(format, arg...) \ 209 dev_notice(&adapter->pdev->dev, format, ## arg) 210 #define e_info(msglvl, format, arg...) \ 211 netif_info(adapter, msglvl, adapter->netdev, format, ## arg) 212 #define e_err(msglvl, format, arg...) \ 213 netif_err(adapter, msglvl, adapter->netdev, format, ## arg) 214 #define e_warn(msglvl, format, arg...) \ 215 netif_warn(adapter, msglvl, adapter->netdev, format, ## arg) 216 #define e_crit(msglvl, format, arg...) \ 217 netif_crit(adapter, msglvl, adapter->netdev, format, ## arg)
|
/linux-4.4.14/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.4.14/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() 368 vfh->format.fmt.pix.sizeimage); isp_video_buffer_prepare() 616 isp_video_get_format(struct file *file, void *fh, struct v4l2_format *format) isp_video_get_format() argument 621 if (format->type != video->type) isp_video_get_format() 625 *format = vfh->format; isp_video_get_format() 632 isp_video_set_format(struct file *file, void *fh, struct v4l2_format *format) isp_video_set_format() argument 638 if (format->type != video->type) isp_video_set_format() 642 switch (format->fmt.pix.field) { isp_video_set_format() 649 format->fmt.pix.field = V4L2_FIELD_NONE; isp_video_set_format() 656 format->fmt.pix.field = V4L2_FIELD_INTERLACED_TB; isp_video_set_format() 662 format->fmt.pix.field = V4L2_FIELD_NONE; isp_video_set_format() 672 format->fmt.pix.field = V4L2_FIELD_NONE; isp_video_set_format() 677 * format and back to pixel format. isp_video_set_format() 679 isp_video_pix_to_mbus(&format->fmt.pix, &fmt); isp_video_set_format() 680 isp_video_mbus_to_pix(video, &fmt, &format->fmt.pix); isp_video_set_format() 683 vfh->format = *format; isp_video_set_format() 690 isp_video_try_format(struct file *file, void *fh, struct v4l2_format *format) isp_video_try_format() argument 698 if (format->type != video->type) isp_video_try_format() 705 isp_video_pix_to_mbus(&format->fmt.pix, &fmt.format); isp_video_try_format() 713 isp_video_mbus_to_pix(video, &fmt.format, &format->fmt.pix); isp_video_try_format() 739 struct v4l2_subdev_format format; isp_video_get_crop() local 748 /* Try the get crop operation first and fallback to get format if not isp_video_get_crop() 755 format.pad = pad; isp_video_get_crop() 756 format.which = V4L2_SUBDEV_FORMAT_ACTIVE; isp_video_get_crop() 757 ret = v4l2_subdev_call(subdev, pad, get_fmt, NULL, &format); isp_video_get_crop() 763 crop->c.width = format.format.width; isp_video_get_crop() 764 crop->c.height = format.format.height; isp_video_get_crop() 937 omap3isp_video_format_info(fmt.format.code)->width; isp_video_check_external_subdevs() 1032 /* Verify that the currently configured format matches the output of isp_video_streamon() 1040 video->bpl_value = vfh->format.fmt.pix.bytesperline; isp_video_streamon() 1072 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 999 * preview_config_input_format - Configure the input format 1001 * @info: Sink pad format information 1067 const struct v4l2_mbus_framefmt *format = &prev->formats[PREV_PAD_SINK]; preview_config_input_size() local 1075 if (format->code != MEDIA_BUS_FMT_Y8_1X8 && preview_config_input_size() 1076 format->code != MEDIA_BUS_FMT_Y10_1X10) { preview_config_input_size() 1318 params->cfa.format = OMAP3ISP_CFAFMT_BAYER; preview_init_params() 1385 struct v4l2_mbus_framefmt *format; preview_configure() local 1397 format = &prev->formats[PREV_PAD_SINK]; preview_configure() 1398 info = omap3isp_video_format_info(format->code); preview_configure() 1408 preview_config_inlineoffset(prev, ALIGN(format->width, 0x20) * preview_configure() 1414 format = &prev->formats[PREV_PAD_SOURCE]; preview_configure() 1432 ALIGN(format->width, 0x10) * 2); preview_configure() 1435 preview_config_ycpos(prev, format->code); preview_configure() 1704 /* previewer format descriptions */ 1724 * preview_try_format - Validate a format 1728 * @fmt: format to be validated 1729 * @which: try/active format selector 1731 * Validate and adjust the given format for the given pad based on the preview 1732 * engine limits and the format and crop rectangles on other pads. 1808 * @sink: format on the sink pad 1838 * format. preview_try_crop() 1861 * preview_enum_mbus_code - Handle pixel format enumeration 1896 struct v4l2_mbus_framefmt format; preview_enum_frame_size() local 1901 format.code = fse->code; preview_enum_frame_size() 1902 format.width = 1; preview_enum_frame_size() 1903 format.height = 1; preview_enum_frame_size() 1904 preview_try_format(prev, cfg, fse->pad, &format, fse->which); preview_enum_frame_size() 1905 fse->min_width = format.width; preview_enum_frame_size() 1906 fse->min_height = format.height; preview_enum_frame_size() 1908 if (format.code != fse->code) preview_enum_frame_size() 1911 format.code = fse->code; preview_enum_frame_size() 1912 format.width = -1; preview_enum_frame_size() 1913 format.height = -1; preview_enum_frame_size() 1914 preview_try_format(prev, cfg, fse->pad, &format, fse->which); preview_enum_frame_size() 1915 fse->max_width = format.width; preview_enum_frame_size() 1916 fse->max_height = format.height; preview_enum_frame_size() 1936 struct v4l2_mbus_framefmt *format; preview_get_selection() local 1948 format = __preview_get_format(prev, cfg, PREV_PAD_SINK, preview_get_selection() 1950 preview_try_crop(prev, format, &sel->r); preview_get_selection() 1979 struct v4l2_mbus_framefmt *format; preview_set_selection() local 1989 /* Modifying the crop rectangle always changes the format on the source preview_set_selection() 1998 format = __preview_get_format(prev, cfg, PREV_PAD_SINK, sel->which); preview_set_selection() 1999 preview_try_crop(prev, format, &sel->r); preview_set_selection() 2002 /* Update the source format. */ preview_set_selection() 2003 format = __preview_get_format(prev, cfg, PREV_PAD_SOURCE, sel->which); preview_set_selection() 2004 preview_try_format(prev, cfg, PREV_PAD_SOURCE, format, sel->which); preview_set_selection() 2010 * preview_get_format - Handle get format by pads subdev method 2013 * @fmt: pointer to v4l2 subdev format structure 2020 struct v4l2_mbus_framefmt *format; preview_get_format() local 2022 format = __preview_get_format(prev, cfg, fmt->pad, fmt->which); preview_get_format() 2023 if (format == NULL) preview_get_format() 2026 fmt->format = *format; preview_get_format() 2031 * preview_set_format - Handle set format by pads subdev method 2034 * @fmt: pointer to v4l2 subdev format structure 2041 struct v4l2_mbus_framefmt *format; preview_set_format() local 2044 format = __preview_get_format(prev, cfg, fmt->pad, fmt->which); preview_set_format() 2045 if (format == NULL) preview_set_format() 2048 preview_try_format(prev, cfg, fmt->pad, &fmt->format, fmt->which); preview_set_format() 2049 *format = fmt->format; preview_set_format() 2051 /* Propagate the format from sink to source */ preview_set_format() 2057 crop->width = fmt->format.width; preview_set_format() 2058 crop->height = fmt->format.height; preview_set_format() 2060 preview_try_crop(prev, &fmt->format, crop); preview_set_format() 2062 /* Update the source format. */ preview_set_format() 2063 format = __preview_get_format(prev, cfg, PREV_PAD_SOURCE, preview_set_format() 2065 preview_try_format(prev, cfg, PREV_PAD_SOURCE, format, preview_set_format() 2084 struct v4l2_subdev_format format; preview_init_formats() local 2086 memset(&format, 0, sizeof(format)); preview_init_formats() 2087 format.pad = PREV_PAD_SINK; preview_init_formats() 2088 format.which = fh ? V4L2_SUBDEV_FORMAT_TRY : V4L2_SUBDEV_FORMAT_ACTIVE; preview_init_formats() 2089 format.format.code = MEDIA_BUS_FMT_SGRBG10_1X10; preview_init_formats() 2090 format.format.width = 4096; preview_init_formats() 2091 format.format.height = 4096; preview_init_formats() 2092 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.4.14/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 554 "resizer validate output: pix format not supported, %d\n", pix); resizer_validate_input_image_format() 815 .raw_flip = 1, /* flip preserve Raw format */ resizer_set_defualt_configuration() 1290 * __resizer_get_format() - helper function for getting resizer format 1294 * @which: wanted subdev format. 1295 * Retun wanted mbus frame format. 1315 * resizer_try_format() - Handle try format by pad subdev method 1319 * @fmt: pointer to v4l2 format structure. 1320 * @which: wanted subdev format. 1389 * resizer_set_format() - Handle set format by pads subdev method 1392 * @fmt: pointer to v4l2 subdev format structure 1399 struct v4l2_mbus_framefmt *format; resizer_set_format() local 1401 format = __resizer_get_format(sd, cfg, fmt->pad, fmt->which); resizer_set_format() 1402 if (format == NULL) resizer_set_format() 1405 resizer_try_format(sd, cfg, fmt->pad, &fmt->format, fmt->which); resizer_set_format() 1406 *format = fmt->format; resizer_set_format() 1413 resizer->crop_resizer.formats[fmt->pad] = fmt->format; resizer_set_format() 1416 resizer->crop_resizer.formats[fmt->pad] = fmt->format; resizer_set_format() 1418 formats[RESIZER_CROP_PAD_SOURCE2] = fmt->format; resizer_set_format() 1421 resizer->crop_resizer.formats[fmt->pad] = fmt->format; resizer_set_format() 1423 formats[RESIZER_CROP_PAD_SOURCE] = fmt->format; resizer_set_format() 1429 resizer->resizer_a.formats[fmt->pad] = fmt->format; resizer_set_format() 1431 resizer->resizer_a.formats[fmt->pad] = fmt->format; resizer_set_format() 1436 resizer->resizer_b.formats[fmt->pad] = fmt->format; resizer_set_format() 1438 resizer->resizer_b.formats[fmt->pad] = fmt->format; resizer_set_format() 1449 * resizer_get_format() - Retrieve the video format on a pad 1452 * @fmt: pointer to v4l2 subdev format structure 1458 struct v4l2_mbus_framefmt *format; resizer_get_format() local 1460 format = __resizer_get_format(sd, cfg, fmt->pad, fmt->which); resizer_get_format() 1461 if (format == NULL) resizer_get_format() 1464 fmt->format = *format; resizer_get_format() 1479 struct v4l2_mbus_framefmt format; resizer_enum_frame_size() local 1484 format.code = fse->code; resizer_enum_frame_size() 1485 format.width = 1; resizer_enum_frame_size() 1486 format.height = 1; resizer_enum_frame_size() 1487 resizer_try_format(sd, cfg, fse->pad, &format, fse->which); resizer_enum_frame_size() 1488 fse->min_width = format.width; resizer_enum_frame_size() 1489 fse->min_height = format.height; resizer_enum_frame_size() 1491 if (format.code != fse->code) resizer_enum_frame_size() 1494 format.code = fse->code; resizer_enum_frame_size() 1495 format.width = -1; resizer_enum_frame_size() 1496 format.height = -1; resizer_enum_frame_size() 1497 resizer_try_format(sd, cfg, fse->pad, &format, fse->which); resizer_enum_frame_size() 1498 fse->max_width = format.width; resizer_enum_frame_size() 1499 fse->max_height = format.height; resizer_enum_frame_size() 1542 struct v4l2_subdev_format format; resizer_init_formats() local 1545 memset(&format, 0, sizeof(format)); resizer_init_formats() 1546 format.pad = RESIZER_CROP_PAD_SINK; resizer_init_formats() 1547 format.which = which; resizer_init_formats() 1548 format.format.code = MEDIA_BUS_FMT_YUYV8_2X8; resizer_init_formats() 1549 format.format.width = MAX_IN_WIDTH; resizer_init_formats() 1550 format.format.height = MAX_IN_HEIGHT; resizer_init_formats() 1551 resizer_set_format(sd, fh->pad, &format); resizer_init_formats() 1553 memset(&format, 0, sizeof(format)); resizer_init_formats() 1554 format.pad = RESIZER_CROP_PAD_SOURCE; resizer_init_formats() 1555 format.which = which; resizer_init_formats() 1556 format.format.code = MEDIA_BUS_FMT_UYVY8_2X8; resizer_init_formats() 1557 format.format.width = MAX_IN_WIDTH; resizer_init_formats() 1558 format.format.height = MAX_IN_WIDTH; resizer_init_formats() 1559 resizer_set_format(sd, fh->pad, &format); resizer_init_formats() 1561 memset(&format, 0, sizeof(format)); resizer_init_formats() 1562 format.pad = RESIZER_CROP_PAD_SOURCE2; resizer_init_formats() 1563 format.which = which; resizer_init_formats() 1564 format.format.code = MEDIA_BUS_FMT_UYVY8_2X8; resizer_init_formats() 1565 format.format.width = MAX_IN_WIDTH; resizer_init_formats() 1566 format.format.height = MAX_IN_WIDTH; resizer_init_formats() 1567 resizer_set_format(sd, fh->pad, &format); resizer_init_formats() 1569 memset(&format, 0, sizeof(format)); resizer_init_formats() 1570 format.pad = RESIZER_PAD_SINK; resizer_init_formats() 1571 format.which = which; resizer_init_formats() 1572 format.format.code = MEDIA_BUS_FMT_YUYV8_2X8; resizer_init_formats() 1573 format.format.width = MAX_IN_WIDTH; resizer_init_formats() 1574 format.format.height = MAX_IN_HEIGHT; resizer_init_formats() 1575 resizer_set_format(sd, fh->pad, &format); resizer_init_formats() 1577 memset(&format, 0, sizeof(format)); resizer_init_formats() 1578 format.pad = RESIZER_PAD_SOURCE; resizer_init_formats() 1579 format.which = which; resizer_init_formats() 1580 format.format.code = MEDIA_BUS_FMT_UYVY8_2X8; resizer_init_formats() 1581 format.format.width = IPIPE_MAX_OUTPUT_WIDTH_A; resizer_init_formats() 1582 format.format.height = IPIPE_MAX_OUTPUT_HEIGHT_A; resizer_init_formats() 1583 resizer_set_format(sd, fh->pad, &format); resizer_init_formats() 1585 memset(&format, 0, sizeof(format)); resizer_init_formats() 1586 format.pad = RESIZER_PAD_SINK; resizer_init_formats() 1587 format.which = which; resizer_init_formats() 1588 format.format.code = MEDIA_BUS_FMT_YUYV8_2X8; resizer_init_formats() 1589 format.format.width = MAX_IN_WIDTH; resizer_init_formats() 1590 format.format.height = MAX_IN_HEIGHT; resizer_init_formats() 1591 resizer_set_format(sd, fh->pad, &format); resizer_init_formats() 1593 memset(&format, 0, sizeof(format)); resizer_init_formats() 1594 format.pad = RESIZER_PAD_SOURCE; resizer_init_formats() 1595 format.which = which; resizer_init_formats() 1596 format.format.code = MEDIA_BUS_FMT_UYVY8_2X8; resizer_init_formats() 1597 format.format.width = IPIPE_MAX_OUTPUT_WIDTH_B; resizer_init_formats() 1598 format.format.height = IPIPE_MAX_OUTPUT_HEIGHT_B; resizer_init_formats() 1599 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.4.14/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.4.14/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.4.14/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.4.14/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()
|
/linux-4.4.14/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.4.14/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.4.14/drivers/ide/ |
H A D | ide-gd.h | 32 /* Current format */ 34 /* Last format capacity descriptor */
|
/linux-4.4.14/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 | 58 fmt = isp->video_capture.format; isp_video_capture_queue_setup() 109 video->buf_count, video->format->memplanes, isp_video_capture_start_streaming() 167 if (video->format == NULL) isp_video_capture_buffer_prepare() 170 for (i = 0; i < video->format->memplanes; i++) { isp_video_capture_buffer_prepare() 211 unsigned int num_planes = video->format->memplanes; isp_video_capture_buffer_queue() 433 dma->format = DMA_OUTPUT_FORMAT_BAYER; isp_video_s_fmt_mplane() 442 isp->video_capture.format = ifmt; isp_video_s_fmt_mplane() 449 * Check for source/sink format differences at each link. 460 /* Retrieve format at the sink pad */ isp_video_pipeline_validate() 470 /* Retrieve format at the source pad */ isp_video_pipeline_validate() 483 if (src_fmt.format.width != sink_fmt.format.width || isp_video_pipeline_validate() 484 src_fmt.format.height != sink_fmt.format.height || isp_video_pipeline_validate() 485 src_fmt.format.code != sink_fmt.format.code) isp_video_pipeline_validate() 588 iv->format = fimc_isp_find_format(NULL, NULL, 0); fimc_isp_video_device_register() 591 iv->pixfmt.pixelformat = iv->format->fourcc; fimc_isp_video_device_register()
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | mlx5_core.h | 46 #define mlx5_core_dbg(__dev, format, ...) \ 47 dev_dbg(&(__dev)->pdev->dev, "%s:%s:%d:(pid %d): " format, \ 51 #define mlx5_core_dbg_mask(__dev, mask, format, ...) \ 54 mlx5_core_dbg(__dev, format, ##__VA_ARGS__); \ 57 #define mlx5_core_err(__dev, format, ...) \ 58 dev_err(&(__dev)->pdev->dev, "%s:%s:%d:(pid %d): " format, \ 62 #define mlx5_core_warn(__dev, format, ...) \ 63 dev_warn(&(__dev)->pdev->dev, "%s:%s:%d:(pid %d): " format, \
|
/linux-4.4.14/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.4.14/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.4.14/drivers/video/fbdev/ |
H A D | simplefb.c | 95 struct simplefb_format *format; member in struct:simplefb_params 103 const char *format; simplefb_parse_dt() local 124 ret = of_property_read_string(np, "format", &format); simplefb_parse_dt() 126 dev_err(&pdev->dev, "Can't parse format property\n"); simplefb_parse_dt() 129 params->format = NULL; simplefb_parse_dt() 131 if (strcmp(format, simplefb_formats[i].name)) simplefb_parse_dt() 133 params->format = &simplefb_formats[i]; simplefb_parse_dt() 136 if (!params->format) { simplefb_parse_dt() 137 dev_err(&pdev->dev, "Invalid format value\n"); simplefb_parse_dt() 154 params->format = NULL; simplefb_parse_pd() 156 if (strcmp(pd->format, simplefb_formats[i].name)) simplefb_parse_pd() 159 params->format = &simplefb_formats[i]; simplefb_parse_pd() 163 if (!params->format) { simplefb_parse_pd() 164 dev_err(&pdev->dev, "Invalid format value\n"); simplefb_parse_pd() 315 info->var.bits_per_pixel = params.format->bits_per_pixel; simplefb_probe() 316 info->var.red = params.format->red; simplefb_probe() 317 info->var.green = params.format->green; simplefb_probe() 318 info->var.blue = params.format->blue; simplefb_probe() 319 info->var.transp = params.format->transp; simplefb_probe() 346 dev_info(&pdev->dev, "format=%s, mode=%dx%dx%d, linelength=%d\n", simplefb_probe() 347 params.format->name, simplefb_probe()
|
/linux-4.4.14/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()
|
H A D | rcar_du_plane.h | 44 * @format: information about the pixel format used by the plane 53 const struct rcar_du_format_info *format; member in struct:rcar_du_plane_state
|
/linux-4.4.14/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.4.14/arch/cris/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.4.14/arch/cris/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/arch/nios2/boot/compressed/ |
H A D | Makefile | 16 LDFLAGS_piggy.o := -r --format binary --oformat elf32-littlenios2 -T
|
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/arch/arm/include/asm/ |
H A D | flat.h | 2 * arch/arm/include/asm/flat.h -- uClinux flat-format executables
|
/linux-4.4.14/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.4.14/drivers/media/i2c/ |
H A D | adv7511.c | 348 /* CE format, not IT */ adv7511_set_IT_content_AVI_InfoFrame() 351 /* IT format */ adv7511_set_IT_content_AVI_InfoFrame() 367 /* CE format, RGB limited range (16-235) */ adv7511_set_rgb_quantization_mode() 370 /* not CE format, RGB full range (0-255) */ adv7511_set_rgb_quantization_mode() 754 if the format is one of the CEA or DMT timings. */ adv7511_s_dv_timings() 945 struct v4l2_mbus_framefmt *format) adv7511_fill_format() 947 memset(format, 0, sizeof(*format)); adv7511_fill_format() 949 format->width = state->dv_timings.bt.width; adv7511_fill_format() 950 format->height = state->dv_timings.bt.height; adv7511_fill_format() 951 format->field = V4L2_FIELD_NONE; adv7511_fill_format() 956 struct v4l2_subdev_format *format) adv7511_get_fmt() 960 if (format->pad != 0) adv7511_get_fmt() 963 adv7511_fill_format(state, &format->format); adv7511_get_fmt() 965 if (format->which == V4L2_SUBDEV_FORMAT_TRY) { adv7511_get_fmt() 968 fmt = v4l2_subdev_get_try_format(sd, cfg, format->pad); adv7511_get_fmt() 969 format->format.code = fmt->code; adv7511_get_fmt() 970 format->format.colorspace = fmt->colorspace; adv7511_get_fmt() 971 format->format.ycbcr_enc = fmt->ycbcr_enc; adv7511_get_fmt() 972 format->format.quantization = fmt->quantization; adv7511_get_fmt() 973 format->format.xfer_func = fmt->xfer_func; adv7511_get_fmt() 975 format->format.code = state->fmt_code; adv7511_get_fmt() 976 format->format.colorspace = state->colorspace; adv7511_get_fmt() 977 format->format.ycbcr_enc = state->ycbcr_enc; adv7511_get_fmt() 978 format->format.quantization = state->quantization; adv7511_get_fmt() 979 format->format.xfer_func = state->xfer_func; adv7511_get_fmt() 987 struct v4l2_subdev_format *format) adv7511_set_fmt() 1006 if (format->pad != 0) adv7511_set_fmt() 1008 switch (format->format.code) { adv7511_set_fmt() 1017 adv7511_fill_format(state, &format->format); adv7511_set_fmt() 1018 if (format->which == V4L2_SUBDEV_FORMAT_TRY) { adv7511_set_fmt() 1021 fmt = v4l2_subdev_get_try_format(sd, cfg, format->pad); adv7511_set_fmt() 1022 fmt->code = format->format.code; adv7511_set_fmt() 1023 fmt->colorspace = format->format.colorspace; adv7511_set_fmt() 1024 fmt->ycbcr_enc = format->format.ycbcr_enc; adv7511_set_fmt() 1025 fmt->quantization = format->format.quantization; adv7511_set_fmt() 1026 fmt->xfer_func = format->format.xfer_func; adv7511_set_fmt() 1030 switch (format->format.code) { adv7511_set_fmt() 1047 state->fmt_code = format->format.code; adv7511_set_fmt() 1048 state->colorspace = format->format.colorspace; adv7511_set_fmt() 1049 state->ycbcr_enc = format->format.ycbcr_enc; adv7511_set_fmt() 1050 state->quantization = format->format.quantization; adv7511_set_fmt() 1051 state->xfer_func = format->format.xfer_func; adv7511_set_fmt() 1053 switch (format->format.colorspace) { adv7511_set_fmt() 1061 if (y && format->format.ycbcr_enc == V4L2_YCBCR_ENC_XV601) { adv7511_set_fmt() 1068 if (y && format->format.ycbcr_enc == V4L2_YCBCR_ENC_XV709) { adv7511_set_fmt() 1080 if (y && format->format.ycbcr_enc == V4L2_YCBCR_ENC_BT2020_CONST_LUM) adv7511_set_fmt() 1102 switch (format->format.quantization) { adv7511_set_fmt() 1224 /* Input format: RGB 4:4:4 */ adv7511_setup() 1226 /* Output format: RGB 4:4:4 */ adv7511_setup() 1234 /* Output format: RGB 4:4:4, Active Format Information is valid, adv7511_setup() 1239 /* Colorimetry, Active format aspect ratio: same as picure. */ adv7511_setup() 944 adv7511_fill_format(struct adv7511_state *state, struct v4l2_mbus_framefmt *format) adv7511_fill_format() argument 954 adv7511_get_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_format *format) adv7511_get_fmt() argument 985 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 | 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 | 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.4.14/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.4.14/drivers/gpu/drm/msm/mdp/mdp4/ |
H A D | mdp4_plane.c | 37 /* MDP format helper functions */ 226 const struct mdp_format *format; mdp4_plane_mode_set() local 249 format = to_mdp_format(msm_framebuffer_format(fb)); mdp4_plane_mode_set() 275 if (MDP_FORMAT_IS_YUV(format)) { mdp4_plane_mode_set() 291 if (MDP_FORMAT_IS_YUV(format)) { mdp4_plane_mode_set() 323 MDP4_PIPE_SRC_FORMAT_A_BPC(format->bpc_a) | mdp4_plane_mode_set() 324 MDP4_PIPE_SRC_FORMAT_R_BPC(format->bpc_r) | mdp4_plane_mode_set() 325 MDP4_PIPE_SRC_FORMAT_G_BPC(format->bpc_g) | mdp4_plane_mode_set() 326 MDP4_PIPE_SRC_FORMAT_B_BPC(format->bpc_b) | mdp4_plane_mode_set() 327 COND(format->alpha_enable, MDP4_PIPE_SRC_FORMAT_ALPHA_ENABLE) | mdp4_plane_mode_set() 328 MDP4_PIPE_SRC_FORMAT_CPP(format->cpp - 1) | mdp4_plane_mode_set() 329 MDP4_PIPE_SRC_FORMAT_UNPACK_COUNT(format->unpack_count - 1) | mdp4_plane_mode_set() 330 MDP4_PIPE_SRC_FORMAT_FETCH_PLANES(format->fetch_type) | mdp4_plane_mode_set() 331 MDP4_PIPE_SRC_FORMAT_CHROMA_SAMP(format->chroma_sample) | mdp4_plane_mode_set() 333 COND(format->unpack_tight, MDP4_PIPE_SRC_FORMAT_UNPACK_TIGHT)); mdp4_plane_mode_set() 336 MDP4_PIPE_SRC_UNPACK_ELEM0(format->unpack[0]) | mdp4_plane_mode_set() 337 MDP4_PIPE_SRC_UNPACK_ELEM1(format->unpack[1]) | mdp4_plane_mode_set() 338 MDP4_PIPE_SRC_UNPACK_ELEM2(format->unpack[2]) | mdp4_plane_mode_set() 339 MDP4_PIPE_SRC_UNPACK_ELEM3(format->unpack[3])); mdp4_plane_mode_set() 341 if (MDP_FORMAT_IS_YUV(format)) { mdp4_plane_mode_set()
|
/linux-4.4.14/fs/f2fs/ |
H A D | f2fs_crypto.h | 42 * Protector format: 43 * 1 byte: Protector format (1 = this version) 51 char format; member in struct:f2fs_encryption_context 136 * of the string in little-endian format. 145 * store a filename of length l in encrypted symlink format.
|
/linux-4.4.14/drivers/gpu/drm/virtio/ |
H A D | virtgpu_fb.c | 233 uint32_t resid, format, size; virtio_gpufb_create() local 244 format = VIRTIO_GPU_FORMAT_X8R8G8B8_UNORM; virtio_gpufb_create() 247 format = VIRTIO_GPU_FORMAT_A8R8G8B8_UNORM; virtio_gpufb_create() 250 format = VIRTIO_GPU_FORMAT_B8G8R8X8_UNORM; virtio_gpufb_create() 253 format = VIRTIO_GPU_FORMAT_B8G8R8A8_UNORM; virtio_gpufb_create() 256 format = VIRTIO_GPU_FORMAT_R8G8B8X8_UNORM; virtio_gpufb_create() 259 format = VIRTIO_GPU_FORMAT_R8G8B8A8_UNORM; virtio_gpufb_create() 262 format = VIRTIO_GPU_FORMAT_X8B8G8R8_UNORM; virtio_gpufb_create() 265 format = VIRTIO_GPU_FORMAT_A8B8G8R8_UNORM; virtio_gpufb_create() 269 format = VIRTIO_GPU_FORMAT_B8G8R8X8_UNORM; virtio_gpufb_create() 272 format = VIRTIO_GPU_FORMAT_B8G8R8A8_UNORM; virtio_gpufb_create() 275 format = VIRTIO_GPU_FORMAT_X8R8G8B8_UNORM; virtio_gpufb_create() 278 format = VIRTIO_GPU_FORMAT_A8R8G8B8_UNORM; virtio_gpufb_create() 281 format = VIRTIO_GPU_FORMAT_X8B8G8R8_UNORM; virtio_gpufb_create() 284 format = VIRTIO_GPU_FORMAT_A8B8G8R8_UNORM; virtio_gpufb_create() 287 format = VIRTIO_GPU_FORMAT_R8G8B8X8_UNORM; virtio_gpufb_create() 290 format = VIRTIO_GPU_FORMAT_R8G8B8A8_UNORM; virtio_gpufb_create() 294 DRM_ERROR("failed to find virtio gpu format for %d\n", virtio_gpufb_create() 305 virtio_gpu_cmd_create_resource(vgdev, resid, format, virtio_gpufb_create()
|
/linux-4.4.14/drivers/gpu/drm/msm/mdp/mdp5/ |
H A D | mdp5_plane.c | 285 const struct mdp_format *format; mdp5_plane_atomic_check() local 292 format = to_mdp_format(msm_framebuffer_format(state->fb)); mdp5_plane_atomic_check() 293 if (MDP_FORMAT_IS_YUV(format) && mdp5_plane_atomic_check() 551 static uint32_t get_scale_config(const struct mdp_format *format, get_scale_config() argument 554 bool scaling = format->is_yuv ? true : (src != dst); get_scale_config() 555 uint32_t sub, pix_fmt = format->base.pixel_format; get_scale_config() 557 bool yuv = format->is_yuv; get_scale_config() 582 static void calc_pixel_ext(const struct mdp_format *format, calc_pixel_ext() argument 587 bool scaling = format->is_yuv ? true : (src != dst); calc_pixel_ext() 605 const struct mdp_format *format, mdp5_write_pixel_ext() 609 uint32_t pix_fmt = format->base.pixel_format; mdp5_write_pixel_ext() 617 if (format->is_yuv && i == COMP_1_2) { mdp5_write_pixel_ext() 676 const struct mdp_format *format; mdp5_plane_mode_set() local 694 format = to_mdp_format(msm_framebuffer_format(fb)); mdp5_plane_mode_set() 695 pix_format = format->base.pixel_format; mdp5_plane_mode_set() 710 mdp5_plane->pipe, format, src_w, false); mdp5_plane_mode_set() 733 calc_pixel_ext(format, src_w, crtc_w, phasex_step, mdp5_plane_mode_set() 735 calc_pixel_ext(format, src_h, crtc_h, phasey_step, mdp5_plane_mode_set() 742 config |= get_scale_config(format, src_w, crtc_w, true); mdp5_plane_mode_set() 743 config |= get_scale_config(format, src_h, crtc_h, false); mdp5_plane_mode_set() 772 MDP5_PIPE_SRC_FORMAT_A_BPC(format->bpc_a) | mdp5_plane_mode_set() 773 MDP5_PIPE_SRC_FORMAT_R_BPC(format->bpc_r) | mdp5_plane_mode_set() 774 MDP5_PIPE_SRC_FORMAT_G_BPC(format->bpc_g) | mdp5_plane_mode_set() 775 MDP5_PIPE_SRC_FORMAT_B_BPC(format->bpc_b) | mdp5_plane_mode_set() 776 COND(format->alpha_enable, MDP5_PIPE_SRC_FORMAT_ALPHA_ENABLE) | mdp5_plane_mode_set() 777 MDP5_PIPE_SRC_FORMAT_CPP(format->cpp - 1) | mdp5_plane_mode_set() 778 MDP5_PIPE_SRC_FORMAT_UNPACK_COUNT(format->unpack_count - 1) | mdp5_plane_mode_set() 779 COND(format->unpack_tight, MDP5_PIPE_SRC_FORMAT_UNPACK_TIGHT) | mdp5_plane_mode_set() 780 MDP5_PIPE_SRC_FORMAT_FETCH_TYPE(format->fetch_type) | mdp5_plane_mode_set() 781 MDP5_PIPE_SRC_FORMAT_CHROMA_SAMP(format->chroma_sample)); mdp5_plane_mode_set() 784 MDP5_PIPE_SRC_UNPACK_ELEM0(format->unpack[0]) | mdp5_plane_mode_set() 785 MDP5_PIPE_SRC_UNPACK_ELEM1(format->unpack[1]) | mdp5_plane_mode_set() 786 MDP5_PIPE_SRC_UNPACK_ELEM2(format->unpack[2]) | mdp5_plane_mode_set() 787 MDP5_PIPE_SRC_UNPACK_ELEM3(format->unpack[3])); mdp5_plane_mode_set() 799 mdp5_write_pixel_ext(mdp5_kms, pipe, format, mdp5_plane_mode_set() 819 if (MDP_FORMAT_IS_YUV(format)) mdp5_plane_mode_set() 604 mdp5_write_pixel_ext(struct mdp5_kms *mdp5_kms, enum mdp5_pipe pipe, const struct mdp_format *format, uint32_t src_w, int pe_left[COMP_MAX], int pe_right[COMP_MAX], uint32_t src_h, int pe_top[COMP_MAX], int pe_bottom[COMP_MAX]) mdp5_write_pixel_ext() argument
|
/linux-4.4.14/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.4.14/arch/mips/include/uapi/asm/ |
H A D | inst.h | 158 * func field of cop1 instructions using d, s or w format. 229 * func field for MSA MI10 format. 237 * MSA 2 bit format fields. 537 __BITFIELD_FIELD(unsigned int opcode : 6, /* Jump format */ 542 struct i_format { /* signed immediate format */ 550 struct u_format { /* unsigned immediate format */ 558 struct c_format { /* Cache (>= R6000) format */ 567 struct r_format { /* Register format */ 577 struct p_format { /* Performance counter format (R10000) */ 587 struct f_format { /* FPU register format */ 598 struct ma_format { /* FPU multiply and add format (MIPS IV) */ 616 struct ps_format { /* MIPS-3D / paired single format */ 626 struct v_format { /* MDMX vector format */ 660 * Parenthesis denote whether the format is a microMIPS instruction or 663 struct fb_format { /* FPU branch format (MIPS32) */ 672 struct fp0_format { /* FPU multiply and add format (MIPS32) */ 682 struct mm_fp0_format { /* FPU multipy and add format (microMIPS) */ 693 struct fp1_format { /* FPU mfc1 and cfc1 format (MIPS32) */ 703 struct mm_fp1_format { /* FPU mfc1 and cfc1 format (microMIPS) */ 713 struct mm_fp2_format { /* FPU movt and movf format (microMIPS) */ 725 struct mm_fp3_format { /* FPU abs and neg format (microMIPS) */ 735 struct mm_fp4_format { /* FPU c.cond format (microMIPS) */ 746 struct mm_fp5_format { /* FPU lwxc1 and swxc1 format (microMIPS) */ 756 struct fp6_format { /* FPU madd and msub format (MIPS IV) */ 766 struct mm_fp6_format { /* FPU madd and msub format (microMIPS) */ 776 struct mm_i_format { /* Immediate format (microMIPS) */ 784 struct mm_m_format { /* Multi-word load/store format (microMIPS) */ 793 struct mm_x_format { /* Scaled indexed load format (microMIPS) */ 805 struct mm_b0_format { /* Unconditional branch format (microMIPS) */ 812 struct mm_b1_format { /* Conditional branch format (microMIPS) */ 820 struct mm16_m_format { /* Multi-word load/store format */ 829 struct mm16_rb_format { /* Signed immediate format */ 838 struct mm16_r3_format { /* Load from global pointer format */ 846 struct mm16_r5_format { /* Load/store from stack pointer format */
|
/linux-4.4.14/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.4.14/drivers/media/pci/saa7134/ |
H A D | saa7134-empress.c | 120 struct v4l2_mbus_framefmt *mbus_fmt = &fmt.format; empress_g_fmt_vid_cap() 136 struct v4l2_subdev_format format = { empress_s_fmt_vid_cap() local 140 v4l2_fill_mbus_format(&format.format, &f->fmt.pix, MEDIA_BUS_FMT_FIXED); empress_s_fmt_vid_cap() 141 saa_call_all(dev, pad, set_fmt, NULL, &format); empress_s_fmt_vid_cap() 142 v4l2_fill_pix_format(&f->fmt.pix, &format.format); empress_s_fmt_vid_cap() 156 struct v4l2_subdev_format format = { empress_try_fmt_vid_cap() local 160 v4l2_fill_mbus_format(&format.format, &f->fmt.pix, MEDIA_BUS_FMT_FIXED); empress_try_fmt_vid_cap() 161 saa_call_all(dev, pad, set_fmt, &pad_cfg, &format); empress_try_fmt_vid_cap() 162 v4l2_fill_pix_format(&f->fmt.pix, &format.format); empress_try_fmt_vid_cap()
|
/linux-4.4.14/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() 572 struct uvc_format *format; uvc_ioctl_enum_fmt() local 583 format = &stream->format[fmt->index]; uvc_ioctl_enum_fmt() 585 if (format->flags & UVC_FMT_FLAG_COMPRESSED) uvc_ioctl_enum_fmt() 587 strlcpy(fmt->description, format->name, sizeof(fmt->description)); uvc_ioctl_enum_fmt() 589 fmt->pixelformat = format->fcc; uvc_ioctl_enum_fmt() 1121 struct uvc_format *format = NULL; uvc_ioctl_enum_framesizes() local 1125 /* Look for the given pixel format */ uvc_ioctl_enum_framesizes() 1127 if (stream->format[i].fcc == fsize->pixel_format) { uvc_ioctl_enum_framesizes() 1128 format = &stream->format[i]; uvc_ioctl_enum_framesizes() 1132 if (format == NULL) uvc_ioctl_enum_framesizes() 1135 if (fsize->index >= format->nframes) uvc_ioctl_enum_framesizes() 1138 frame = &format->frame[fsize->index]; uvc_ioctl_enum_framesizes() 1150 struct uvc_format *format = NULL; uvc_ioctl_enum_frameintervals() local 1154 /* Look for the given pixel format and frame size */ uvc_ioctl_enum_frameintervals() 1156 if (stream->format[i].fcc == fival->pixel_format) { uvc_ioctl_enum_frameintervals() 1157 format = &stream->format[i]; uvc_ioctl_enum_frameintervals() 1161 if (format == NULL) uvc_ioctl_enum_frameintervals() 1164 for (i = 0; i < format->nframes; i++) { uvc_ioctl_enum_frameintervals() 1165 if (format->frame[i].wWidth == fival->width && uvc_ioctl_enum_frameintervals() 1166 format->frame[i].wHeight == fival->height) { uvc_ioctl_enum_frameintervals() 1167 frame = &format->frame[i]; uvc_ioctl_enum_frameintervals()
|
/linux-4.4.14/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.4.14/drivers/media/pci/ivtv/ |
H A D | ivtv-controls.c | 67 struct v4l2_subdev_format format = { ivtv_s_video_encoding() local 72 format.format.width = cxhdl->width / (is_mpeg1 ? 2 : 1); ivtv_s_video_encoding() 73 format.format.height = cxhdl->height; ivtv_s_video_encoding() 74 format.format.code = MEDIA_BUS_FMT_FIXED; ivtv_s_video_encoding() 75 v4l2_subdev_call(itv->sd_video, pad, set_fmt, NULL, &format); ivtv_s_video_encoding()
|
/linux-4.4.14/fs/bfs/ |
H A D | bfs.h | 44 #define printf(format, args...) \ 45 printk(KERN_ERR "BFS-fs: %s(): " format, __func__, ## args)
|
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/kernel/ |
H A D | bounds.c | 4 * to extract and format the required data.
|
/linux-4.4.14/arch/mn10300/boot/compressed/ |
H A D | Makefile | 19 LDFLAGS_piggy.o := -r --format binary --oformat elf32-am33lin -T
|
/linux-4.4.14/arch/avr32/kernel/ |
H A D | asm-offsets.c | 4 * to extract and format the required data.
|
/linux-4.4.14/drivers/base/regmap/ |
H A D | regmap.c | 103 if (map->format.format_write) regmap_readable() 117 if (!map->format.format_write && !regmap_readable(map, reg)) regmap_volatile() 574 map->format.reg_bytes = DIV_ROUND_UP(config->reg_bits, 8); __regmap_init() 575 map->format.pad_bytes = config->pad_bits / 8; __regmap_init() 576 map->format.val_bytes = DIV_ROUND_UP(config->val_bits, 8); __regmap_init() 577 map->format.buf_size = DIV_ROUND_UP(config->reg_bits + __regmap_init() 642 map->format.format_write = regmap_format_2_6_write; __regmap_init() 652 map->format.format_write = regmap_format_4_12_write; __regmap_init() 662 map->format.format_write = regmap_format_7_9_write; __regmap_init() 672 map->format.format_write = regmap_format_10_14_write; __regmap_init() 680 map->format.format_reg = regmap_format_8; __regmap_init() 686 map->format.format_reg = regmap_format_16_be; __regmap_init() 689 map->format.format_reg = regmap_format_16_native; __regmap_init() 699 map->format.format_reg = regmap_format_24; __regmap_init() 705 map->format.format_reg = regmap_format_32_be; __regmap_init() 708 map->format.format_reg = regmap_format_32_native; __regmap_init() 720 map->format.parse_inplace = regmap_parse_inplace_noop; __regmap_init() 724 map->format.format_val = regmap_format_8; __regmap_init() 725 map->format.parse_val = regmap_parse_8; __regmap_init() 726 map->format.parse_inplace = regmap_parse_inplace_noop; __regmap_init() 731 map->format.format_val = regmap_format_16_be; __regmap_init() 732 map->format.parse_val = regmap_parse_16_be; __regmap_init() 733 map->format.parse_inplace = regmap_parse_16_be_inplace; __regmap_init() 736 map->format.format_val = regmap_format_16_le; __regmap_init() 737 map->format.parse_val = regmap_parse_16_le; __regmap_init() 738 map->format.parse_inplace = regmap_parse_16_le_inplace; __regmap_init() 741 map->format.format_val = regmap_format_16_native; __regmap_init() 742 map->format.parse_val = regmap_parse_16_native; __regmap_init() 751 map->format.format_val = regmap_format_24; __regmap_init() 752 map->format.parse_val = regmap_parse_24; __regmap_init() 757 map->format.format_val = regmap_format_32_be; __regmap_init() 758 map->format.parse_val = regmap_parse_32_be; __regmap_init() 759 map->format.parse_inplace = regmap_parse_32_be_inplace; __regmap_init() 762 map->format.format_val = regmap_format_32_le; __regmap_init() 763 map->format.parse_val = regmap_parse_32_le; __regmap_init() 764 map->format.parse_inplace = regmap_parse_32_le_inplace; __regmap_init() 767 map->format.format_val = regmap_format_32_native; __regmap_init() 768 map->format.parse_val = regmap_parse_32_native; __regmap_init() 776 if (map->format.format_write) { __regmap_init() 783 if (!map->format.format_write && __regmap_init() 784 !(map->format.format_reg && map->format.format_val)) __regmap_init() 787 map->work_buf = kzalloc(map->format.buf_size, GFP_KERNEL); __regmap_init() 793 if (map->format.format_write) { __regmap_init() 796 } else if (map->format.format_val) { __regmap_init() 886 kzalloc(map->format.buf_size, GFP_KERNEL); __regmap_init() 1204 void *work_val = map->work_buf + map->format.reg_bytes + _regmap_raw_write() 1205 map->format.pad_bytes; _regmap_raw_write() 1215 for (i = 0; i < val_len / map->format.val_bytes; i++) _regmap_raw_write() 1220 if (!map->cache_bypass && map->format.parse_val) { _regmap_raw_write() 1222 int val_bytes = map->format.val_bytes; _regmap_raw_write() 1224 ival = map->format.parse_val(val + (i * val_bytes)); _regmap_raw_write() 1242 int val_num = val_len / map->format.val_bytes; _regmap_raw_write() 1249 win_residue, val_len / map->format.val_bytes); _regmap_raw_write() 1251 map->format.val_bytes); _regmap_raw_write() 1257 val += win_residue * map->format.val_bytes; _regmap_raw_write() 1258 val_len -= win_residue * map->format.val_bytes; _regmap_raw_write() 1270 map->format.format_reg(map->work_buf, reg, map->reg_shift); _regmap_raw_write() 1279 if (val != work_val && val_len == map->format.val_bytes) { _regmap_raw_write() 1280 memcpy(work_val, val, map->format.val_bytes); _regmap_raw_write() 1302 async->work_buf = kzalloc(map->format.buf_size, _regmap_raw_write() 1313 memcpy(async->work_buf, map->work_buf, map->format.pad_bytes + _regmap_raw_write() 1314 map->format.reg_bytes + map->format.val_bytes); _regmap_raw_write() 1323 map->format.reg_bytes + _regmap_raw_write() 1324 map->format.pad_bytes, _regmap_raw_write() 1329 map->format.reg_bytes + _regmap_raw_write() 1330 map->format.pad_bytes + _regmap_raw_write() 1345 trace_regmap_hw_write_start(map, reg, val_len / map->format.val_bytes); _regmap_raw_write() 1353 map->format.reg_bytes + _regmap_raw_write() 1354 map->format.pad_bytes + _regmap_raw_write() 1358 map->format.reg_bytes + _regmap_raw_write() 1359 map->format.pad_bytes, _regmap_raw_write() 1364 len = map->format.reg_bytes + map->format.pad_bytes + val_len; _regmap_raw_write() 1369 memcpy(buf, map->work_buf, map->format.reg_bytes); _regmap_raw_write() 1370 memcpy(buf + map->format.reg_bytes + map->format.pad_bytes, _regmap_raw_write() 1377 trace_regmap_hw_write_done(map, reg, val_len / map->format.val_bytes); _regmap_raw_write() 1389 return map->bus && map->bus->write && map->format.format_val && regmap_can_raw_write() 1390 map->format.format_reg; regmap_can_raw_write() 1423 WARN_ON(!map->bus || !map->format.format_write); _regmap_bus_formatted_write() 1432 map->format.format_write(map, reg, val); _regmap_bus_formatted_write() 1437 map->format.buf_size); _regmap_bus_formatted_write() 1457 WARN_ON(!map->bus || !map->format.format_val); _regmap_bus_raw_write() 1459 map->format.format_val(map->work_buf + map->format.reg_bytes _regmap_bus_raw_write() 1460 + map->format.pad_bytes, val, 0); _regmap_bus_raw_write() 1463 map->format.reg_bytes + _regmap_bus_raw_write() 1464 map->format.pad_bytes, _regmap_bus_raw_write() 1465 map->format.val_bytes); _regmap_bus_raw_write() 1583 if (val_len % map->format.val_bytes) regmap_raw_write() 1712 size_t val_bytes = map->format.val_bytes; regmap_bulk_write() 1715 if (map->bus && !map->format.parse_inplace) regmap_bulk_write() 1806 map->format.parse_inplace(wval + i); regmap_bulk_write() 1833 size_t val_bytes = map->format.val_bytes; _regmap_raw_multi_reg_write() 1834 size_t reg_bytes = map->format.reg_bytes; _regmap_raw_multi_reg_write() 1835 size_t pad_bytes = map->format.pad_bytes; _regmap_raw_multi_reg_write() 1854 map->format.format_reg(u8, reg, map->reg_shift); _regmap_raw_multi_reg_write() 1856 map->format.format_val(u8, val, 0); _regmap_raw_multi_reg_write() 1978 if (!map->format.parse_inplace) _regmap_multi_reg_write() 2134 if (val_len % map->format.val_bytes) regmap_raw_write_async() 2165 val_len / map->format.val_bytes); _regmap_raw_read() 2170 map->format.format_reg(map->work_buf, reg, map->reg_shift); _regmap_raw_read() 2180 trace_regmap_hw_read_start(map, reg, val_len / map->format.val_bytes); _regmap_raw_read() 2183 map->format.reg_bytes + map->format.pad_bytes, _regmap_raw_read() 2186 trace_regmap_hw_read_done(map, reg, val_len / map->format.val_bytes); _regmap_raw_read() 2205 if (!map->format.parse_val) _regmap_bus_read() 2208 ret = _regmap_raw_read(map, reg, map->work_buf, map->format.val_bytes); _regmap_bus_read() 2210 *val = map->format.parse_val(map->work_buf); _regmap_bus_read() 2290 size_t val_bytes = map->format.val_bytes; regmap_raw_read() 2297 if (val_len % map->format.val_bytes) regmap_raw_read() 2330 map->format.format_val(val + (i * val_bytes), v, 0); regmap_raw_read() 2414 size_t val_bytes = map->format.val_bytes; regmap_bulk_read() 2420 if (map->bus && map->format.parse_inplace && (vol || map->cache_type == REGCACHE_NONE)) { regmap_bulk_read() 2473 map->format.parse_inplace(val + i); regmap_bulk_read() 2482 if (map->format.format_val) { regmap_bulk_read() 2483 map->format.format_val(val + (i * val_bytes), ival, 0); regmap_bulk_read() 2495 switch (map->format.val_bytes) { regmap_bulk_read() 2822 if (map->format.format_write) regmap_get_val_bytes() 2825 return map->format.val_bytes; regmap_get_val_bytes() 2856 if (!map->format.parse_val) regmap_parse_val() 2859 *val = map->format.parse_val(buf); regmap_parse_val()
|
/linux-4.4.14/drivers/scsi/ |
H A D | scsi_common.c | 66 * For a description of the LUN format, post SCSI-3 see the SCSI 120 * descriptor sense data format into a common format. 129 * asc, ascq and additional_length (only for descriptor format). 152 * descriptor format scsi_normalize_sense() 164 * fixed format scsi_normalize_sense() 183 * scsi_sense_desc_find - search for a given descriptor type in descriptor sense data format. 184 * @sense_buffer: byte array of descriptor format sense data 190 * only valid when sense data is in descriptor format 223 * @desc: Sense format (non zero == descriptor format, 224 * 0 == fixed format)
|
/linux-4.4.14/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.4.14/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.4.14/drivers/crypto/caam/ |
H A D | sg_sw_sec4.h | 11 * convert single dma address to h/w link table format 28 * convert scatterlist to h/w link table format 46 * convert scatterlist to h/w link table format
|
/linux-4.4.14/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.4.14/include/scsi/ |
H A D | scsi_common.h | 34 * This is a slightly modified SCSI sense "descriptor" format header. 37 * format into one structure to ease application processing. 50 u8 additional_length; /* always 0 for fixed sense format */
|
/linux-4.4.14/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.4.14/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 141 * of the string in little-endian format. 150 * store a filename of length l in encrypted symlink format.
|
/linux-4.4.14/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.4.14/drivers/net/wireless/realtek/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.4.14/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.4.14/drivers/media/pci/mantis/ |
H A D | mantis_common.h | 39 #define dprintk(y, z, format, arg...) do { \ 42 printk(KERN_ERR "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \ 44 printk(KERN_NOTICE "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \ 46 printk(KERN_INFO "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \ 48 printk(KERN_DEBUG "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \ 50 printk(KERN_DEBUG "%s (%d): " format "\n" , __func__ , mantis->num , ##arg); \ 53 printk(format , ##arg); \
|
/linux-4.4.14/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() 305 size = vip->format.sizeimage; buffer_prepare() 460 vip->format = formats_60[0]; vidioc_s_std() 462 vip->format = formats_50[0]; vidioc_s_std() 469 vip->format = formats_60[0]; vidioc_s_std() 471 vip->format = formats_50[0]; vidioc_s_std() 567 * vidioc_enum_fmt_vid_cap - return video capture format 568 * @f: returned format information 570 * returns name and format of video capture 589 * vidioc_try_fmt_vid_cap - set video capture format 591 * @f: new format 593 * new video format is set which includes width and 600 * -EINVAL, pixel or field format not supported 610 v4l2_warn(&vip->v4l2_dev, "Invalid format, only UYVY supported\n"); vidioc_try_fmt_vid_cap() 636 /* It is the only supported format */ vidioc_try_fmt_vid_cap() 651 * vidioc_s_fmt_vid_cap - set current video format parameters 653 * @f: returned format information 655 * set new capture format 672 /* Can't change format during acquisition */ vidioc_s_fmt_vid_cap() 676 vip->format = f->fmt.pix; vidioc_s_fmt_vid_cap() 677 switch (vip->format.field) { vidioc_s_fmt_vid_cap() 679 t_stop = ((vip->format.height / 2 - 1) << 16) | vidioc_s_fmt_vid_cap() 680 (2 * vip->format.width - 1); vidioc_s_fmt_vid_cap() 682 pitch = 4 * vip->format.width; vidioc_s_fmt_vid_cap() 685 t_stop = ((vip->format.height - 1) << 16) | vidioc_s_fmt_vid_cap() 686 (2 * vip->format.width - 1); vidioc_s_fmt_vid_cap() 687 b_stop = (0 << 16) | (2 * vip->format.width - 1); vidioc_s_fmt_vid_cap() 688 pitch = 2 * vip->format.width; vidioc_s_fmt_vid_cap() 691 t_stop = (0 << 16) | (2 * vip->format.width - 1); vidioc_s_fmt_vid_cap() 692 b_stop = (vip->format.height << 16) | vidioc_s_fmt_vid_cap() 693 (2 * vip->format.width - 1); vidioc_s_fmt_vid_cap() 694 pitch = 2 * vip->format.width; vidioc_s_fmt_vid_cap() 697 v4l2_err(&vip->v4l2_dev, "unknown field format\n"); vidioc_s_fmt_vid_cap() 718 * vidioc_g_fmt_vid_cap - get current video format parameters 720 * @f: contains format information 722 * returns current video format parameters 731 f->fmt.pix = vip->format; vidioc_g_fmt_vid_cap() 1046 vip->format = formats_50[0]; sta2x11_vip_init_one()
|
/linux-4.4.14/drivers/video/fbdev/omap2/dss/ |
H A D | dss.h | 38 #define DSSDBG(format, ...) \ 39 pr_debug(format, ## __VA_ARGS__) 42 #define DSSERR(format, ...) \ 43 printk(KERN_ERR "omapdss " DSS_SUBSYS_NAME " error: " format, \ 46 #define DSSERR(format, ...) \ 47 printk(KERN_ERR "omapdss error: " format, ## __VA_ARGS__) 51 #define DSSINFO(format, ...) \ 52 printk(KERN_INFO "omapdss " DSS_SUBSYS_NAME ": " format, \ 55 #define DSSINFO(format, ...) \ 56 printk(KERN_INFO "omapdss: " format, ## __VA_ARGS__) 60 #define DSSWARN(format, ...) \ 61 printk(KERN_WARNING "omapdss " DSS_SUBSYS_NAME ": " format, \ 64 #define DSSWARN(format, ...) \ 65 printk(KERN_WARNING "omapdss: " format, ## __VA_ARGS__)
|
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/drivers/gpu/drm/nouveau/ |
H A D | nv50_fbcon.c | 157 int ret, format; nv50_fbcon_accel_init() local 161 format = 0xf3; nv50_fbcon_accel_init() 164 format = 0xf8; nv50_fbcon_accel_init() 167 format = 0xe8; nv50_fbcon_accel_init() 173 format = 0xe6; nv50_fbcon_accel_init() 176 format = 0xd1; nv50_fbcon_accel_init() 218 OUT_RING(chan, format); nv50_fbcon_accel_init() 223 OUT_RING(chan, format); nv50_fbcon_accel_init() 238 OUT_RING(chan, format); nv50_fbcon_accel_init() 247 OUT_RING(chan, format); nv50_fbcon_accel_init()
|
H A D | nvc0_fbcon.c | 157 int ret, format; nvc0_fbcon_accel_init() local 166 format = 0xf3; nvc0_fbcon_accel_init() 169 format = 0xf8; nvc0_fbcon_accel_init() 172 format = 0xe8; nvc0_fbcon_accel_init() 178 format = 0xe6; nvc0_fbcon_accel_init() 181 format = 0xd1; nvc0_fbcon_accel_init() 215 OUT_RING (chan, format); nvc0_fbcon_accel_init() 221 OUT_RING (chan, format); nvc0_fbcon_accel_init() 236 OUT_RING (chan, format); nvc0_fbcon_accel_init() 247 OUT_RING (chan, format); nvc0_fbcon_accel_init()
|
/linux-4.4.14/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.4.14/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.4.14/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
|