Lines Matching refs:conn
48 drmModeConnector *conn = drmModeGetConnector(dev_fd, res->connectors[i]); in GetConnector() local
49 if (conn && conn->connector_type == DRM_MODE_CONNECTOR_DSI && conn->count_modes && in GetConnector()
50 conn->connection == DRM_MODE_CONNECTED) { in GetConnector()
51 *connector = conn; in GetConnector()
52 DRM_LOGI("Found connector %d", conn->connector_id); in GetConnector()
60 static bool GetEncoder(int dev_fd, drmModeConnector *conn, drmModeEncoder **encoder) { in GetEncoder() argument
61 for (auto i = 0; i < conn->count_encoders; i++) { in GetEncoder()
62 drmModeEncoder *enc = drmModeGetEncoder(dev_fd, conn->encoders[i]); in GetEncoder()
121 drmModeConnector *conn = nullptr; in Init() local
122 if (!GetConnector(dev_fd, res, &conn)) { in Init()
128 if (!GetEncoder(dev_fd, conn, &enc)) { in Init()
130 drmModeFreeConnector(conn); in Init()
138 drmModeFreeConnector(conn); in Init()
144 conn_ = conn; in Init()