Home
last modified time | relevance | path

Searched refs:conn (Results 1 – 19 of 19) sorted by relevance

/hardware/qcom/display/msm8909/libdrmutils/
Ddrm_res_mgr.cpp48 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()
[all …]
/hardware/qcom/sm8150/display/libdrmutils/
Ddrm_res_mgr.cpp48 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()
[all …]
/hardware/qcom/sm7250/display/libdrmutils/
Ddrm_res_mgr.cpp48 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()
[all …]
/hardware/qcom/display/msm8909w_3100/libdrmutils/
Ddrm_res_mgr.cpp48 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()
[all …]
/hardware/qcom/display/msm8998/libdrmutils/
Ddrm_res_mgr.cpp48 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()
[all …]
/hardware/google/gfxstream/guest/mesa/src/vulkan/device-select-layer/
Ddevice_select_x11.c35 ds_dri3_open(xcb_connection_t *conn, in ds_dri3_open() argument
43 cookie = xcb_dri3_open(conn, in ds_dri3_open()
47 reply = xcb_dri3_open_reply(conn, cookie, NULL); in ds_dri3_open()
56 fd = xcb_dri3_open_reply_fds(conn, reply)[0]; in ds_dri3_open()
68 xcb_connection_t *conn; in device_select_find_xcb_pci_default() local
72 conn = xcb_connect(NULL, &scrn); in device_select_find_xcb_pci_default()
73 if (!conn) in device_select_find_xcb_pci_default()
79 dri3_cookie = xcb_query_extension(conn, 4, "DRI3"); in device_select_find_xcb_pci_default()
80 dri3_reply = xcb_query_extension_reply(conn, dri3_cookie, NULL); in device_select_find_xcb_pci_default()
88 setup = xcb_get_setup(conn); in device_select_find_xcb_pci_default()
[all …]
/hardware/google/gfxstream/guest/mesa/src/vulkan/wsi/
Dwsi_common_x11.c108 wsi_dri3_open(xcb_connection_t *conn, in wsi_dri3_open() argument
116 cookie = xcb_dri3_open(conn, in wsi_dri3_open()
120 reply = xcb_dri3_open_reply(conn, cookie, NULL); in wsi_dri3_open()
130 fd = xcb_dri3_open_reply_fds(conn, reply)[0]; in wsi_dri3_open()
146 xcb_connection_t *conn) in wsi_x11_check_dri3_compatible() argument
149 xcb_setup_roots_iterator(xcb_get_setup(conn)); in wsi_x11_check_dri3_compatible()
155 int dri3_fd = wsi_dri3_open(conn, screen->root, None); in wsi_x11_check_dri3_compatible()
167 wsi_x11_detect_xwayland(xcb_connection_t *conn, in wsi_x11_detect_xwayland() argument
180 xcb_randr_query_version_unchecked(conn, 1, 3); in wsi_x11_detect_xwayland()
182 xcb_randr_query_version_reply(conn, ver_cookie, NULL); in wsi_x11_detect_xwayland()
[all …]
Dwsi_common_display.c536 VK_OUTARRAY_MAKE_TYPED(VkDisplayProperties2KHR, conn, in wsi_GetPhysicalDeviceDisplayProperties2KHR()
541 vk_outarray_append_typed(VkDisplayProperties2KHR, &conn, prop) { in wsi_GetPhysicalDeviceDisplayProperties2KHR()
547 return vk_outarray_status(&conn); in wsi_GetPhysicalDeviceDisplayProperties2KHR()
588 VK_OUTARRAY_MAKE_TYPED(VkDisplayPlanePropertiesKHR, conn, in wsi_GetPhysicalDeviceDisplayPlanePropertiesKHR()
592 vk_outarray_append_typed(VkDisplayPlanePropertiesKHR, &conn, prop) { in wsi_GetPhysicalDeviceDisplayPlanePropertiesKHR()
600 return vk_outarray_status(&conn); in wsi_GetPhysicalDeviceDisplayPlanePropertiesKHR()
622 VK_OUTARRAY_MAKE_TYPED(VkDisplayPlaneProperties2KHR, conn, in wsi_GetPhysicalDeviceDisplayPlaneProperties2KHR()
626 vk_outarray_append_typed(VkDisplayPlaneProperties2KHR, &conn, prop) { in wsi_GetPhysicalDeviceDisplayPlaneProperties2KHR()
630 return vk_outarray_status(&conn); in wsi_GetPhysicalDeviceDisplayPlaneProperties2KHR()
652 VK_OUTARRAY_MAKE_TYPED(VkDisplayKHR, conn, pDisplays, pDisplayCount); in wsi_GetDisplayPlaneSupportedDisplaysKHR()
[all …]
/hardware/google/graphics/common/libhwc2.1/libdrmresource/drm/
Dvsyncworker.cpp117 DrmConnector *conn = mDrmDevice->GetConnectorForDisplay(mDisplay); in SyntheticWaitVBlank() local
118 if (conn && conn->active_mode().te_period() != 0.0f && in SyntheticWaitVBlank()
119 conn->active_mode().v_refresh() != 0.0f) { in SyntheticWaitVBlank()
120 vsyncPeriodNs = static_cast<uint32_t>(conn->active_mode().te_period()); in SyntheticWaitVBlank()
121 refreshRate = static_cast<int32_t>(conn->active_mode().v_refresh()); in SyntheticWaitVBlank()
123 ALOGW("Vsync worker active with conn=%p vsync=%u refresh=%d\n", conn, in SyntheticWaitVBlank()
124 conn ? static_cast<uint32_t>(conn->active_mode().te_period()) : in SyntheticWaitVBlank()
126 conn ? static_cast<int32_t>(conn->active_mode().v_refresh()) : in SyntheticWaitVBlank()
Ddrmdevice.cpp159 std::unique_ptr<DrmConnector> conn( in Init() local
164 ret = conn->Init(); in Init()
170 if (conn->writeback()) in Init()
171 writeback_connectors_.emplace_back(std::move(conn)); in Init()
173 connectors_.emplace_back(std::move(conn)); in Init()
178 for (auto &conn : connectors_) { in Init() local
179 if (conn->internal() && conn->display() < 0) { in Init()
180 conn->set_display(num_displays); in Init()
187 for (auto &conn : connectors_) { in Init() local
188 if (conn->external() && conn->display() < 0) { in Init()
[all …]
/hardware/google/gfxstream/guest/mesa/src/vulkan/overlay-layer/
Dmesa-overlay-control.py73 def __init__(self, conn): argument
83 self.conn = conn
100 self.buffer = self.conn.recv(remaining)
158 conn = Connection(address)
159 msgparser = MsgParser(conn)
188 conn.send(bytearray(':capture=1;', 'utf-8'))
190 conn.send(bytearray(':capture=0;', 'utf-8'))
/hardware/qcom/sm7250/display/sde-drm/
Ddrm_dpps_mgr_imp.cpp64 drmModeConnector *conn = NULL; in GetDrmResources() local
74 conn = drmModeGetConnector(drm_fd_, res->connectors[i]); in GetDrmResources()
75 if (conn && conn->connector_type == DRM_MODE_CONNECTOR_DSI && in GetDrmResources()
76 conn->count_modes && conn->connection == DRM_MODE_CONNECTED) { in GetDrmResources()
77 DRM_LOGI("Found connector %d", conn->connector_id); in GetDrmResources()
78 conn_id_ = conn->connector_id; in GetDrmResources()
81 drmModeFreeConnector(conn); in GetDrmResources()
82 conn = NULL; in GetDrmResources()
84 if (conn_id_ < 0 || !conn) { in GetDrmResources()
90 for (auto i = 0; i < conn->count_encoders; i++) { in GetDrmResources()
[all …]
Ddrm_connector.cpp249 unique_ptr<DRMConnector> conn(new DRMConnector(fd_)); in Init() local
252 conn->InitAndParse(libdrm_conn); in Init()
253 connector_pool_[resource->connectors[i]] = std::move(conn); in Init()
277 for (auto conn = connector_pool_.cbegin(); conn != connector_pool_.cend();) { in Update() local
278 auto drmconn = drm_connectors.find(conn->first); in Update()
281 if (conn->second->GetStatus() == DRMStatus::FREE) { in Update()
282 DRM_LOGD("Removing connector id %u from pool.", conn->first); in Update()
283 conn = connector_pool_.erase(conn); in Update()
288 DRM_LOGW("In-use connector id %u removed by DRM.", conn->first); in Update()
289 conn++; in Update()
[all …]
Ddrm_panel_feature_mgr.cpp78 drmModeConnector *conn = drmModeGetConnector(dev_fd_, res->connectors[i]); in Init() local
79 if (conn) { in Init()
80 int err = InitObjectProps(conn->connector_id, DRM_MODE_OBJECT_CONNECTOR); in Init()
82 DRM_LOGE("Failed to get conn %d properties", conn->connector_id); in Init()
84 drmModeFreeConnector(conn); in Init()
Ddrm_connector.h53 void InitAndParse(drmModeConnector *conn);
/hardware/interfaces/automotive/vehicle/aidl/impl/grpc/
DGRPCVehicleProxyServer.cpp209 auto conn = std::make_shared<ConnectionDescriptor>(stream); in StartPropertyValuesStream() local
212 mValueStreamingConnections.push_back(conn); in StartPropertyValuesStream()
214 conn->Wait(); in StartPropertyValuesStream()
215 LOG(ERROR) << __func__ << ": Stream lost, ID : " << conn->ID(); in StartPropertyValuesStream()
244 [&brokenConn](const auto& conn) { in OnVehiclePropChange() argument
245 return brokenConn.find(conn->ID()) != brokenConn.end(); in OnVehiclePropChange()
266 for (auto& conn : mValueStreamingConnections) { in Shutdown() local
267 conn->Shutdown(); in Shutdown()
/hardware/google/graphics/common/libhwc2.1/libdrmresource/include/
Ddrmdevice.h73 int UpdateConnectorProperty(const DrmConnector &conn, DrmProperty *property);
/hardware/google/graphics/common/libhwc2.1/libdisplayinterface/
DExynosDisplayDrmInterface.cpp710 for (auto &conn: mDrmDevice->connectors()) { in getDrmDisplayId() local
711 if ((((type == HWC_DISPLAY_PRIMARY) && conn->internal()) && (index == conn->display())) || in getDrmDisplayId()
712 ((type == HWC_DISPLAY_EXTERNAL) && conn->external())) in getDrmDisplayId()
713 return conn->display(); in getDrmDisplayId()
/hardware/libhardware/tests/hwc/
Dcnativewindow.c357 static void hwc_hotplug(const struct hwc_procs *procs, int disp, int conn) {} in hwc_hotplug() argument