• Home
  • Raw
  • Download

Lines Matching refs:endpoint

43 static void cras_bt_endpoint_suspend(struct cras_bt_endpoint *endpoint)  in cras_bt_endpoint_suspend()  argument
47 if (!endpoint->transport) in cras_bt_endpoint_suspend()
50 endpoint->suspend(endpoint, endpoint->transport); in cras_bt_endpoint_suspend()
52 transport = endpoint->transport; in cras_bt_endpoint_suspend()
54 endpoint->transport = NULL; in cras_bt_endpoint_suspend()
71 struct cras_bt_endpoint *endpoint; in cras_bt_endpoint_set_configuration() local
79 endpoint = cras_bt_endpoint_get(endpoint_path); in cras_bt_endpoint_set_configuration()
80 if (!endpoint) in cras_bt_endpoint_set_configuration()
115 cras_bt_transport_set_endpoint(transport, endpoint); in cras_bt_endpoint_set_configuration()
116 endpoint->transport = transport; in cras_bt_endpoint_set_configuration()
117 endpoint->set_configuration(endpoint, transport); in cras_bt_endpoint_set_configuration()
135 struct cras_bt_endpoint *endpoint; in cras_bt_endpoint_select_configuration() local
145 endpoint = cras_bt_endpoint_get(endpoint_path); in cras_bt_endpoint_select_configuration()
146 if (!endpoint) in cras_bt_endpoint_select_configuration()
161 endpoint->select_configuration(endpoint, capabilities, len, in cras_bt_endpoint_select_configuration()
194 struct cras_bt_endpoint *endpoint; in cras_bt_endpoint_clear_configuration() local
202 endpoint = cras_bt_endpoint_get(endpoint_path); in cras_bt_endpoint_clear_configuration()
203 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()
235 struct cras_bt_endpoint *endpoint; in cras_bt_endpoint_release() local
241 endpoint = cras_bt_endpoint_get(endpoint_path); in cras_bt_endpoint_release()
242 if (!endpoint) in cras_bt_endpoint_release()
245 cras_bt_endpoint_suspend(endpoint); in cras_bt_endpoint_release()
333 struct cras_bt_endpoint *endpoint) in cras_bt_register_endpoint() argument
346 error = endpoint->get_capabilities(endpoint, capabilities, &len); in cras_bt_register_endpoint()
360 &endpoint->object_path); in cras_bt_register_endpoint()
380 &endpoint->uuid); in cras_bt_register_endpoint()
396 &endpoint->codec); in cras_bt_register_endpoint()
463 struct cras_bt_endpoint *endpoint) in cras_bt_unregister_endpoint() argument
478 &endpoint->object_path, in cras_bt_unregister_endpoint()
508 struct cras_bt_endpoint *endpoint; in cras_bt_register_endpoints() local
510 DL_FOREACH (endpoints, endpoint) in cras_bt_register_endpoints()
511 cras_bt_register_endpoint(conn, adapter, endpoint); in cras_bt_register_endpoints()
517 struct cras_bt_endpoint *endpoint) in cras_bt_endpoint_add() argument
527 DL_APPEND(endpoints, endpoint); in cras_bt_endpoint_add()
531 if (!dbus_connection_register_object_path(conn, endpoint->object_path, in cras_bt_endpoint_add()
536 endpoint->object_path, dbus_error.message); in cras_bt_endpoint_add()
543 cras_bt_register_endpoint(conn, adapters[i], endpoint); in cras_bt_endpoint_add()
550 struct cras_bt_endpoint *endpoint) in cras_bt_endpoint_rm() argument
557 cras_bt_unregister_endpoint(conn, adapters[i], endpoint); in cras_bt_endpoint_rm()
560 dbus_connection_unregister_object_path(conn, endpoint->object_path); in cras_bt_endpoint_rm()
562 DL_DELETE(endpoints, endpoint); in cras_bt_endpoint_rm()
567 struct cras_bt_endpoint *endpoint; in cras_bt_endpoint_reset() local
569 DL_FOREACH (endpoints, endpoint) in cras_bt_endpoint_reset()
570 cras_bt_endpoint_suspend(endpoint); in cras_bt_endpoint_reset()
575 struct cras_bt_endpoint *endpoint; in cras_bt_endpoint_get() local
577 DL_FOREACH (endpoints, endpoint) { in cras_bt_endpoint_get()
578 if (strcmp(endpoint->object_path, object_path) == 0) in cras_bt_endpoint_get()
579 return endpoint; in cras_bt_endpoint_get()