Lines Matching defs:db
2365 do_cea_modes (struct drm_connector *connector, u8 *db, u8 len)
2371 for (mode = db; mode < db + len; mode++) {
2389 cea_db_payload_len(const u8 *db)
2391 return db[0] & 0x1f;
2395 cea_db_tag(const u8 *db)
2397 return db[0] >> 5;
2426 u8 * db, dbl;
2436 db = &cea[i];
2437 dbl = cea_db_payload_len(db);
2439 if (cea_db_tag(db) == VIDEO_BLOCK)
2440 modes += do_cea_modes (connector, db+1, dbl);
2448 parse_hdmi_vsdb(struct drm_connector *connector, const u8 *db)
2450 u8 len = cea_db_payload_len(db);
2453 connector->eld[5] |= (db[6] >> 7) << 1; /* Supports_AI */
2454 connector->dvi_dual = db[6] & 1;
2457 connector->max_tmds_clock = db[7] * 5;
2459 connector->latency_present[0] = db[8] >> 7;
2460 connector->latency_present[1] = (db[8] >> 6) & 1;
2463 connector->video_latency[0] = db[9];
2465 connector->audio_latency[0] = db[10];
2467 connector->video_latency[1] = db[11];
2469 connector->audio_latency[1] = db[12];
2493 static bool cea_db_is_hdmi_vsdb(const u8 *db)
2497 if (cea_db_tag(db) != VENDOR_BLOCK)
2500 if (cea_db_payload_len(db) < 5)
2503 hdmi_id = db[1] | (db[2] << 8) | (db[3] << 16);
2524 u8 *db;
2563 db = &cea[i];
2564 dbl = cea_db_payload_len(db);
2566 switch (cea_db_tag(db)) {
2571 (void) memcpy(eld + 20 + mnl, &db[1], dbl);
2576 eld[7] = db[1];
2580 if (cea_db_is_hdmi_vsdb(db))
2581 parse_hdmi_vsdb(connector, db);
2627 u8 *db = &cea[i];
2629 if (cea_db_tag(db) == AUDIO_BLOCK) {
2631 dbl = cea_db_payload_len(db);
2638 u8 *sad = &db[1 + j * 3];