rep_write_and_or
rep_write_and_or(sd, 0x77, 0xd3, 0x20);
rep_write_and_or(sd, 0x7f, 0x7f, 0x00);
rep_write_and_or(sd, 0x77, 0xef, 0x10);
rep_write_and_or(sd, 0x7f, 0x7f, 0x80);
rep_write_and_or(sd, 0x77, 0xf3, 0x00);
rep_write_and_or(sd, 0x77, 0xef, i >= 256 ? 0x10 : 0x00);
rep_write_and_or(sd, 0x77, 0xbf, (spa_loc >> 2) & 0x40);
rep_write_and_or(sd, 0x77, 0xf3, state->hdmi_edid.present);