Lines Matching refs:code
354 static void ov9640_alter_regs(u32 code, in ov9640_alter_regs() argument
357 switch (code) { in ov9640_alter_regs()
379 u32 code, struct ov9640_reg_alt *alts) in ov9640_write_regs() argument
422 if (code == MEDIA_BUS_FMT_UYVY8_2X8) { in ov9640_write_regs()
490 u32 code = mf->code; in ov9640_s_fmt() local
494 ov9640_alter_regs(mf->code, &alts); in ov9640_s_fmt()
502 switch (code) { in ov9640_s_fmt()
508 code = MEDIA_BUS_FMT_UYVY8_2X8; in ov9640_s_fmt()
513 ret = ov9640_write_regs(client, mf->width, code, &alts); in ov9640_s_fmt()
515 mf->code = code; in ov9640_s_fmt()
535 switch (mf->code) { in ov9640_set_fmt()
541 mf->code = MEDIA_BUS_FMT_UYVY8_2X8; in ov9640_set_fmt()
555 struct v4l2_subdev_mbus_code_enum *code) in ov9640_enum_mbus_code() argument
557 if (code->pad || code->index >= ARRAY_SIZE(ov9640_codes)) in ov9640_enum_mbus_code()
560 code->code = ov9640_codes[code->index]; in ov9640_enum_mbus_code()