Lines Matching defs:adap

92 static int drm_dp_cec_adap_enable(struct cec_adapter *adap, bool enable)
94 struct drm_dp_aux *aux = cec_get_drvdata(adap);
102 static int drm_dp_cec_adap_log_addr(struct cec_adapter *adap, u8 addr)
104 struct drm_dp_aux *aux = cec_get_drvdata(adap);
111 la_mask |= adap->log_addrs.log_addr_mask | (1 << addr);
118 static int drm_dp_cec_adap_transmit(struct cec_adapter *adap, u8 attempts,
121 struct drm_dp_aux *aux = cec_get_drvdata(adap);
136 static int drm_dp_cec_adap_monitor_all_enable(struct cec_adapter *adap,
139 struct drm_dp_aux *aux = cec_get_drvdata(adap);
143 if (!(adap->capabilities & CEC_CAP_MONITOR_ALL))
157 static void drm_dp_cec_adap_status(struct cec_adapter *adap,
160 struct drm_dp_aux *aux = cec_get_drvdata(adap);
191 struct cec_adapter *adap = aux->cec.adap;
208 cec_received_msg(adap, &msg);
214 struct cec_adapter *adap = aux->cec.adap;
224 cec_transmit_attempt_done(adap, CEC_TX_STATUS_OK);
226 cec_transmit_attempt_done(adap, CEC_TX_STATUS_ERROR |
230 cec_transmit_attempt_done(adap, CEC_TX_STATUS_NACK |
252 if (!aux->cec.adap)
289 cec_unregister_adapter(aux->cec.adap);
290 aux->cec.adap = NULL;
328 cec_unregister_adapter(aux->cec.adap);
329 aux->cec.adap = NULL;
338 if (aux->cec.adap) {
339 if (aux->cec.adap->capabilities == cec_caps &&
340 aux->cec.adap->available_log_addrs == num_las) {
342 cec_s_phys_addr_from_edid(aux->cec.adap, edid);
349 cec_unregister_adapter(aux->cec.adap);
353 aux->cec.adap = cec_allocate_adapter(&drm_dp_cec_adap_ops,
356 if (IS_ERR(aux->cec.adap)) {
357 aux->cec.adap = NULL;
362 cec_s_conn_info(aux->cec.adap, &conn_info);
364 if (cec_register_adapter(aux->cec.adap, connector->dev->dev)) {
365 cec_delete_adapter(aux->cec.adap);
366 aux->cec.adap = NULL;
373 cec_s_phys_addr_from_edid(aux->cec.adap, edid);
392 if (!aux->cec.adap)
395 cec_phys_addr_invalidate(aux->cec.adap);
430 WARN_ON(aux->cec.adap);
445 if (!aux->cec.adap)
448 cec_unregister_adapter(aux->cec.adap);
449 aux->cec.adap = NULL;