Lines Matching refs:edid
656 char *edid;
661 edid = kmem_zalloc(EDID_BLOCK_SIZE, KM_SLEEP);
665 if (!sunxi_hdmi_read_edid_block(sc, edid, 0))
669 device_printf(sc->sc_dev, "failed to read EDID\n");
671 if (edid_parse(edid, eip) != 0) {
672 device_printf(sc->sc_dev, "failed to parse EDID\n");
714 kmem_free(edid, EDID_BLOCK_SIZE);
722 char *edid;
725 edid = kmem_zalloc(EDID_BLOCK_SIZE, KM_SLEEP);
733 if (sunxi_hdmi_read_edid_block(sc, edid, n)) {
736 "Failed to read EDID block %d\n", n);
742 device_printf(sc->sc_dev, "EDID block #%d:\n", n);
745 const uint8_t tag = edid[0];
746 const uint8_t rev = edid[1];
747 const uint8_t off = edid[2];
752 device_printf(sc->sc_dev, " Flags: 0x%02x\n", edid[3]);
767 const uint8_t btag = (edid[p] >> 5) & 0x7;
768 const uint8_t blen = edid[p] & 0x1f;
788 edid[p + 1], edid[p + 2], edid[p + 3]);
792 if (memcmp(&edid[p + 1], "\x03\x0c\x00", 3) == 0)
800 kmem_free(edid, EDID_BLOCK_SIZE);