Lines Matching refs:endpoint
44 static void cras_bt_endpoint_suspend(struct cras_bt_endpoint *endpoint) in cras_bt_endpoint_suspend() argument
46 if (!endpoint->transport) in cras_bt_endpoint_suspend()
49 endpoint->suspend(endpoint, endpoint->transport); in cras_bt_endpoint_suspend()
51 cras_bt_transport_set_endpoint(endpoint->transport, NULL); in cras_bt_endpoint_suspend()
52 endpoint->transport = NULL; in cras_bt_endpoint_suspend()
62 struct cras_bt_endpoint *endpoint; in cras_bt_endpoint_set_configuration() local
70 endpoint = cras_bt_endpoint_get(endpoint_path); in cras_bt_endpoint_set_configuration()
71 if (!endpoint) in cras_bt_endpoint_set_configuration()
109 cras_bt_transport_set_endpoint(transport, endpoint); in cras_bt_endpoint_set_configuration()
110 endpoint->transport = transport; in cras_bt_endpoint_set_configuration()
111 endpoint->set_configuration(endpoint, transport); in cras_bt_endpoint_set_configuration()
130 struct cras_bt_endpoint *endpoint; in cras_bt_endpoint_select_configuration() local
140 endpoint = cras_bt_endpoint_get(endpoint_path); in cras_bt_endpoint_select_configuration()
141 if (!endpoint) in cras_bt_endpoint_select_configuration()
157 endpoint->select_configuration(endpoint, capabilities, len, in cras_bt_endpoint_select_configuration()
193 struct cras_bt_endpoint *endpoint; in cras_bt_endpoint_clear_configuration() local
201 endpoint = cras_bt_endpoint_get(endpoint_path); in cras_bt_endpoint_clear_configuration()
202 if (!endpoint) in cras_bt_endpoint_clear_configuration()
218 if (transport == endpoint->transport) in cras_bt_endpoint_clear_configuration()
219 cras_bt_endpoint_suspend(endpoint); in cras_bt_endpoint_clear_configuration()
236 struct cras_bt_endpoint *endpoint; in cras_bt_endpoint_release() local
243 endpoint = cras_bt_endpoint_get(endpoint_path); in cras_bt_endpoint_release()
244 if (!endpoint) in cras_bt_endpoint_release()
247 cras_bt_endpoint_suspend(endpoint); in cras_bt_endpoint_release()
338 struct cras_bt_endpoint *endpoint) in cras_bt_register_endpoint() argument
351 error = endpoint->get_capabilities(endpoint, capabilities, &len); in cras_bt_register_endpoint()
367 &endpoint->object_path); in cras_bt_register_endpoint()
388 &endpoint->uuid); in cras_bt_register_endpoint()
404 &endpoint->codec); in cras_bt_register_endpoint()
474 struct cras_bt_endpoint *endpoint) in cras_bt_unregister_endpoint() argument
491 &endpoint->object_path, in cras_bt_unregister_endpoint()
523 struct cras_bt_endpoint *endpoint; in cras_bt_register_endpoints() local
525 DL_FOREACH(endpoints, endpoint) in cras_bt_register_endpoints()
526 cras_bt_register_endpoint(conn, adapter, endpoint); in cras_bt_register_endpoints()
532 struct cras_bt_endpoint *endpoint) in cras_bt_endpoint_add() argument
542 DL_APPEND(endpoints, endpoint); in cras_bt_endpoint_add()
547 endpoint->object_path, in cras_bt_endpoint_add()
552 endpoint->object_path, dbus_error.message); in cras_bt_endpoint_add()
559 cras_bt_register_endpoint(conn, adapters[i], endpoint); in cras_bt_endpoint_add()
566 struct cras_bt_endpoint *endpoint) in cras_bt_endpoint_rm() argument
573 cras_bt_unregister_endpoint(conn, adapters[i], endpoint); in cras_bt_endpoint_rm()
576 dbus_connection_unregister_object_path(conn, endpoint->object_path); in cras_bt_endpoint_rm()
578 DL_DELETE(endpoints, endpoint); in cras_bt_endpoint_rm()
583 struct cras_bt_endpoint *endpoint; in cras_bt_endpoint_reset() local
585 DL_FOREACH(endpoints, endpoint) in cras_bt_endpoint_reset()
586 cras_bt_endpoint_suspend(endpoint); in cras_bt_endpoint_reset()
591 struct cras_bt_endpoint *endpoint; in cras_bt_endpoint_get() local
593 DL_FOREACH(endpoints, endpoint) { in cras_bt_endpoint_get()
594 if (strcmp(endpoint->object_path, object_path) == 0) in cras_bt_endpoint_get()
595 return endpoint; in cras_bt_endpoint_get()