Lines Matching refs:adap

93 static int drm_dp_cec_adap_enable(struct cec_adapter *adap, bool enable)
95 struct drm_dp_aux *aux = cec_get_drvdata(adap);
103 static int drm_dp_cec_adap_log_addr(struct cec_adapter *adap, u8 addr)
105 struct drm_dp_aux *aux = cec_get_drvdata(adap);
112 la_mask |= adap->log_addrs.log_addr_mask | (1 << addr);
119 static int drm_dp_cec_adap_transmit(struct cec_adapter *adap, u8 attempts,
122 struct drm_dp_aux *aux = cec_get_drvdata(adap);
137 static int drm_dp_cec_adap_monitor_all_enable(struct cec_adapter *adap,
140 struct drm_dp_aux *aux = cec_get_drvdata(adap);
144 if (!(adap->capabilities & CEC_CAP_MONITOR_ALL))
158 static void drm_dp_cec_adap_status(struct cec_adapter *adap,
161 struct drm_dp_aux *aux = cec_get_drvdata(adap);
192 struct cec_adapter *adap = aux->cec.adap;
209 cec_received_msg(adap, &msg);
215 struct cec_adapter *adap = aux->cec.adap;
225 cec_transmit_attempt_done(adap, CEC_TX_STATUS_OK);
227 cec_transmit_attempt_done(adap, CEC_TX_STATUS_ERROR |
231 cec_transmit_attempt_done(adap, CEC_TX_STATUS_NACK |
253 if (!aux->cec.adap)
290 cec_unregister_adapter(aux->cec.adap);
291 aux->cec.adap = NULL;
329 cec_unregister_adapter(aux->cec.adap);
330 aux->cec.adap = NULL;
339 if (aux->cec.adap) {
340 if (aux->cec.adap->capabilities == cec_caps &&
341 aux->cec.adap->available_log_addrs == num_las) {
343 cec_s_phys_addr(aux->cec.adap, source_physical_address, false);
350 cec_unregister_adapter(aux->cec.adap);
354 aux->cec.adap = cec_allocate_adapter(&drm_dp_cec_adap_ops,
357 if (IS_ERR(aux->cec.adap)) {
358 aux->cec.adap = NULL;
363 cec_s_conn_info(aux->cec.adap, &conn_info);
365 if (cec_register_adapter(aux->cec.adap, connector->dev->dev)) {
366 cec_delete_adapter(aux->cec.adap);
367 aux->cec.adap = NULL;
374 cec_s_phys_addr(aux->cec.adap, source_physical_address, false);
409 if (!aux->cec.adap)
412 cec_phys_addr_invalidate(aux->cec.adap);
447 WARN_ON(aux->cec.adap);
462 if (!aux->cec.adap)
465 cec_unregister_adapter(aux->cec.adap);
466 aux->cec.adap = NULL;