Lines Matching refs:code
48 * xvip_get_format_by_code - Retrieve format information for a media bus code
49 * @code: the format media bus code
52 * given V4L2 media bus format @code, or ERR_PTR if no corresponding format can
55 const struct xvip_video_format *xvip_get_format_by_code(unsigned int code)
62 if (format->code == code)
235 * xvip_enum_mbus_code - Enumerate the media format code
238 * @code: returning media bus code
240 * Enumerate the media bus code of the subdevice. Return the corresponding
241 * pad format code. This function only works for subdevices with fixed format
245 * Return: 0 if the media bus code is found, or -EINVAL if the format index
250 struct v4l2_subdev_mbus_code_enum *code)
257 if (code->which == V4L2_SUBDEV_FORMAT_ACTIVE)
260 if (code->index)
263 format = v4l2_subdev_state_get_format(sd_state, code->pad);
265 code->code = format->code;
284 * if the index or the code is not valid.
300 if (fse->index || fse->code != format->code)