Lines Matching refs:token
220 int DRMManager::RegisterDisplay(DRMDisplayType disp_type, DRMDisplayToken *token) { in RegisterDisplay() argument
221 int ret = conn_mgr_->Reserve(disp_type, token); in RegisterDisplay()
233 ret = conn_mgr_->GetPossibleEncoders(token->conn_id, &possible_encoders); in RegisterDisplay()
240 ret = encoder_mgr_->Reserve(possible_encoders, token); in RegisterDisplay()
244 conn_mgr_->Free(token); in RegisterDisplay()
249 ret = encoder_mgr_->GetPossibleCrtcIndices(token->encoder_id, &possible_crtc_indices); in RegisterDisplay()
256 ret = crtc_mgr_->Reserve(possible_crtc_indices, token); in RegisterDisplay()
260 encoder_mgr_->Free(token); in RegisterDisplay()
261 conn_mgr_->Free(token); in RegisterDisplay()
268 int DRMManager::RegisterDisplay(int32_t display_id, DRMDisplayToken *token) { in RegisterDisplay() argument
269 int ret = conn_mgr_->Reserve(display_id, token); in RegisterDisplay()
276 ret = conn_mgr_->GetPossibleEncoders(token->conn_id, &possible_encoders); in RegisterDisplay()
283 ret = encoder_mgr_->Reserve(possible_encoders, token); in RegisterDisplay()
291 ret = encoder_mgr_->GetPossibleCrtcIndices(token->encoder_id, &possible_crtc_indices); in RegisterDisplay()
295 encoder_mgr_->Free(token); in RegisterDisplay()
296 conn_mgr_->Free(token); in RegisterDisplay()
300 ret = crtc_mgr_->Reserve(possible_crtc_indices, token); in RegisterDisplay()
304 encoder_mgr_->Free(token); in RegisterDisplay()
305 conn_mgr_->Free(token); in RegisterDisplay()
312 void DRMManager::UnregisterDisplay(DRMDisplayToken *token) { in UnregisterDisplay() argument
313 conn_mgr_->Free(token); in UnregisterDisplay()
314 encoder_mgr_->Free(token); in UnregisterDisplay()
315 crtc_mgr_->Free(token); in UnregisterDisplay()
341 int DRMManager::CreateAtomicReq(const DRMDisplayToken &token, DRMAtomicReqInterface **intf) { in CreateAtomicReq() argument
343 int ret = req ? req->Init(token) : -ENOMEM; in CreateAtomicReq()