Lines Matching refs:device
73 bool Drm::detect(int device)
78 int outputIndex = getOutputIndex(device);
96 // find connector for the given device
109 if (connector->connector_type != DrmConfig::getDrmConnector(device)) {
115 ITRACE("device %d is not connected", device);
126 ITRACE("Drm connector has encoder attached on device %d", device);
134 ITRACE("getting encoder for device %d", device);
147 if (encoder->encoder_type == DrmConfig::getDrmEncoder(device)) {
162 ITRACE("Drm encoder has crtc attached on device %d", device);
170 ITRACE("getting crtc for device %d", device);
207 ETRACE("failed to get device %d orientation", device);
218 // a fatal failure on primary device
219 // non fatal on secondary device
220 WTRACE("device %d is disabled?", device);
246 bool Drm::setDrmMode(int device, drmModeModeInfo& value)
251 if (device != IDisplayDevice::DEVICE_EXTERNAL) {
252 WTRACE("Setting mode on invalid device %d", device);
256 int outputIndex = getOutputIndex(device);
258 ETRACE("invalid device");
264 ETRACE("device is not connected");
290 bool Drm::setRefreshRate(int device, int hz)
295 if (device != IDisplayDevice::DEVICE_EXTERNAL) {
296 WTRACE("Setting mode on invalid device %d", device);
300 int outputIndex = getOutputIndex(device);
302 ETRACE("invalid device");
308 ETRACE("device is not connected");
415 bool Drm::getModeInfo(int device, drmModeModeInfo& mode)
419 int outputIndex = getOutputIndex(device);
426 ETRACE("device is not connected");
439 bool Drm::getPhysicalSize(int device, uint32_t& width, uint32_t& height)
443 int outputIndex = getOutputIndex(device);
450 ETRACE("device is not connected");
459 bool Drm::isConnected(int device)
463 int output = getOutputIndex(device);
471 bool Drm::setDpmsMode(int device, int mode)
475 int output = getOutputIndex(device);
489 ETRACE("device is not connected");
653 int Drm::getOutputIndex(int device)
655 switch (device) {
661 ETRACE("invalid display device");
668 int Drm::getPanelOrientation(int device)
670 int outputIndex = getOutputIndex(device);
672 ETRACE("invalid device");
678 ETRACE("device is not connected");
688 drmModeModeInfoPtr Drm::detectAllConfigs(int device, int *modeCount)
698 int outputIndex = getOutputIndex(device);
700 ETRACE("invalid device");
706 ETRACE("device is not connected");