Lines Matching defs:code
192 u32 code;
283 /* Find a data format by a pixel code */
285 u32 code)
289 if (mt9m111_colour_fmts[i].code == code)
398 int width, int height, u32 code)
412 if (code != MEDIA_BUS_FMT_SBGGR10_2X8_PADHI_LE) {
423 __func__, code, rect->width, rect->height, rect->left, rect->top,
464 if (mt9m111->fmt->code == MEDIA_BUS_FMT_SBGGR8_1X8 ||
465 mt9m111->fmt->code == MEDIA_BUS_FMT_SBGGR10_2X8_PADHI_LE) {
484 ret = mt9m111_setup_geometry(mt9m111, &rect, width, height, mt9m111->fmt->code);
541 mf->code = mt9m111->fmt->code;
552 u32 code)
563 switch (code) {
608 dev_err(&client->dev, "Pixel format not handled: %x\n", code);
643 fmt = mt9m111_find_datafmt(mt9m111, mf->code);
645 bayer = fmt->code == MEDIA_BUS_FMT_SBGGR8_1X8 ||
646 fmt->code == MEDIA_BUS_FMT_SBGGR10_2X8_PADHI_LE;
657 if (fmt->code == MEDIA_BUS_FMT_SBGGR10_2X8_PADHI_LE) {
669 dev_dbg(&client->dev, "%s(): %ux%u, code=%x\n", __func__,
670 mf->width, mf->height, fmt->code);
672 mf->code = fmt->code;
684 ret = mt9m111_setup_geometry(mt9m111, rect, mf->width, mf->height, mf->code);
686 ret = mt9m111_set_pixfmt(mt9m111, mf->code);
939 mt9m111_set_pixfmt(mt9m111, mt9m111->fmt->code);
941 mt9m111->width, mt9m111->height, mt9m111->fmt->code);
1103 struct v4l2_subdev_mbus_code_enum *code)
1105 if (code->pad || code->index >= ARRAY_SIZE(mt9m111_colour_fmts))
1108 code->code = mt9m111_colour_fmts[code->index].code;
1129 format->code = mt9m111_colour_fmts[0].code;