Lines Matching refs:client
86 struct bt_cap_common_client *client; in bt_cap_common_get_member_conn() local
92 client = bt_cap_common_get_client_by_csis(member->csip); in bt_cap_common_get_member_conn()
93 if (client == NULL) { in bt_cap_common_get_member_conn()
97 return client->conn; in bt_cap_common_get_member_conn()
222 struct bt_cap_common_client *client = bt_cap_common_get_client_by_acl(conn); in bt_cap_common_disconnected() local
224 if (client->conn != NULL) { in bt_cap_common_disconnected()
225 bt_conn_unref(client->conn); in bt_cap_common_disconnected()
227 (void)memset(client, 0, sizeof(*client)); in bt_cap_common_disconnected()
255 struct bt_cap_common_client *client = &bt_cap_common_clients[i]; in bt_cap_common_get_client_by_csis() local
257 if (client->csis_inst == csis_inst) { in bt_cap_common_get_client_by_csis()
258 return client; in bt_cap_common_get_client_by_csis()
269 struct bt_cap_common_client *client; in cap_common_discover_complete() local
271 client = bt_cap_common_get_client_by_acl(conn); in cap_common_discover_complete()
272 if (client != NULL && client->discover_cb_func != NULL) { in cap_common_discover_complete()
273 const bt_cap_common_discover_func_t cb_func = client->discover_cb_func; in cap_common_discover_complete()
275 client->discover_cb_func = NULL; in cap_common_discover_complete()
284 struct bt_cap_common_client *client; in csis_client_discover_cb() local
294 client = bt_cap_common_get_client_by_acl(conn); in csis_client_discover_cb()
295 client->csis_inst = in csis_client_discover_cb()
296 bt_csip_set_coordinator_csis_inst_by_handle(conn, client->csis_start_handle); in csis_client_discover_cb()
298 if (member == NULL || set_count == 0 || client->csis_inst == NULL) { in csis_client_discover_cb()
304 cap_common_discover_complete(conn, 0, member, client->csis_inst); in csis_client_discover_cb()
318 struct bt_cap_common_client *client = in bt_cap_common_discover_included_cb() local
326 client->csis_start_handle = included_service->start_handle; in bt_cap_common_discover_included_cb()
327 client->csis_inst = bt_csip_set_coordinator_csis_inst_by_handle( in bt_cap_common_discover_included_cb()
328 conn, client->csis_start_handle); in bt_cap_common_discover_included_cb()
329 if (client->csis_inst == NULL) { in bt_cap_common_discover_included_cb()
354 cap_common_discover_complete(conn, 0, member, client->csis_inst); in bt_cap_common_discover_included_cb()
368 struct bt_cap_common_client *client = in bt_cap_common_discover_cas_cb() local
372 client->conn = bt_conn_ref(conn); in bt_cap_common_discover_cas_cb()
403 struct bt_cap_common_client *client; in bt_cap_common_discover() local
406 client = bt_cap_common_get_client_by_acl(conn); in bt_cap_common_discover()
407 if (client->discover_cb_func != NULL) { in bt_cap_common_discover()
411 param = &client->param; in bt_cap_common_discover()
418 client->discover_cb_func = func; in bt_cap_common_discover()
422 client->discover_cb_func = NULL; in bt_cap_common_discover()