Lines Matching refs:ccp

942 			   const struct bt_tbs_call_cp_acc *ccp)  in accept_call()  argument
944 struct bt_tbs_call *call = lookup_call_in_inst(inst, ccp->call_index); in accept_call()
953 hold_other_calls(inst, 1, &ccp->call_index); in accept_call()
962 const struct bt_tbs_call_cp_term *ccp, in terminate_call() argument
965 struct bt_tbs_call *call = lookup_call_in_inst(inst, ccp->call_index); in terminate_call()
972 tbs_set_terminate_reason(inst, ccp->call_index, reason); in terminate_call()
978 const struct bt_tbs_call_cp_hold *ccp) in tbs_hold_call() argument
980 struct bt_tbs_call *call = lookup_call_in_inst(inst, ccp->call_index); in tbs_hold_call()
1004 const struct bt_tbs_call_cp_retrieve *ccp) in retrieve_call() argument
1006 struct bt_tbs_call *call = lookup_call_in_inst(inst, ccp->call_index); in retrieve_call()
1024 hold_other_calls(inst, 1, &ccp->call_index); in retrieve_call()
1030 const struct bt_tbs_call_cp_originate *ccp, in originate_call() argument
1065 (void)memcpy(call->remote_uri, ccp->uri, uri_len); in originate_call()
1095 const struct bt_tbs_call_cp_join *ccp, in join_calls() argument
1113 if (ccp->call_indexes[i] == ccp->call_indexes[j]) { in join_calls()
1122 ccp->call_indexes[i]); in join_calls()
1156 hold_other_calls(inst, call_index_cnt, ccp->call_indexes); in join_calls()
1162 const union bt_tbs_call_cp_t *ccp, uint8_t status, uint8_t call_index) in notify_app() argument
1168 switch (ccp->opcode) { in notify_app()
1193 const uint16_t uri_len = len - sizeof(ccp->originate); in notify_app()
1204 (void)memcpy(uri, ccp->originate.uri, uri_len); in notify_app()
1230 const uint16_t call_index_cnt = len - sizeof(ccp->join); in notify_app()
1235 ccp->join.call_indexes); in notify_app()
1257 const union bt_tbs_call_cp_t *ccp = (union bt_tbs_call_cp_t *)buf; in write_call_cp() local
1270 if (len < sizeof(ccp->opcode)) { in write_call_cp()
1275 LOG_DBG("GTBS: Processing the %s opcode", bt_tbs_opcode_str(ccp->opcode)); in write_call_cp()
1280 bt_tbs_opcode_str(ccp->opcode)); in write_call_cp()
1283 switch (ccp->opcode) { in write_call_cp()
1285 if (len != sizeof(ccp->accept)) { in write_call_cp()
1289 call_index = ccp->accept.call_index; in write_call_cp()
1299 status = accept_call(inst, &ccp->accept); in write_call_cp()
1302 if (len != sizeof(ccp->terminate)) { in write_call_cp()
1306 call_index = ccp->terminate.call_index; in write_call_cp()
1316 status = terminate_call(inst, &ccp->terminate, in write_call_cp()
1320 if (len != sizeof(ccp->hold)) { in write_call_cp()
1324 call_index = ccp->hold.call_index; in write_call_cp()
1334 status = tbs_hold_call(inst, &ccp->hold); in write_call_cp()
1337 if (len != sizeof(ccp->retrieve)) { in write_call_cp()
1341 call_index = ccp->retrieve.call_index; in write_call_cp()
1351 status = retrieve_call(inst, &ccp->retrieve); in write_call_cp()
1355 const uint16_t uri_len = len - sizeof(ccp->originate); in write_call_cp()
1357 if (len < sizeof(ccp->originate) + BT_TBS_MIN_URI_LEN) { in write_call_cp()
1362 inst = lookup_inst_by_uri_scheme(ccp->originate.uri, in write_call_cp()
1374 status = originate_call(inst, &ccp->originate, uri_len, in write_call_cp()
1380 const uint16_t call_index_cnt = len - sizeof(ccp->join); in write_call_cp()
1382 if (len < sizeof(ccp->join) + 1) { /* at least 1 call index */ in write_call_cp()
1386 call_index = ccp->join.call_indexes[0]; in write_call_cp()
1396 status = join_calls(inst, &ccp->join, call_index_cnt); in write_call_cp()
1409 bt_tbs_opcode_str(ccp->opcode), in write_call_cp()
1416 bt_tbs_opcode_str(ccp->opcode), in write_call_cp()
1438 notify_ccp(conn, attr, call_index, ccp->opcode, status); in write_call_cp()
1443 notify_app(conn, inst, len, ccp, status, call_index); in write_call_cp()
1807 const struct bt_tbs_call_cp_acc ccp = { in bt_tbs_accept() local
1813 status = accept_call(inst, &ccp); in bt_tbs_accept()
1827 const struct bt_tbs_call_cp_hold ccp = { in bt_tbs_hold() local
1833 status = tbs_hold_call(inst, &ccp); in bt_tbs_hold()
1843 const struct bt_tbs_call_cp_retrieve ccp = { in bt_tbs_retrieve() local
1849 status = retrieve_call(inst, &ccp); in bt_tbs_retrieve()
1859 const struct bt_tbs_call_cp_term ccp = { in bt_tbs_terminate() local
1865 status = terminate_call(inst, &ccp, in bt_tbs_terminate()
1878 struct bt_tbs_call_cp_originate *ccp = in bt_tbs_originate() local
1893 ccp->opcode = BT_TBS_CALL_OPCODE_ORIGINATE; in bt_tbs_originate()
1894 (void)memcpy(ccp->uri, remote_uri, uri_len); in bt_tbs_originate()
1896 return originate_call(inst, ccp, uri_len, call_index); in bt_tbs_originate()
1904 struct bt_tbs_call_cp_join *ccp = (struct bt_tbs_call_cp_join *)buf; in bt_tbs_join() local
1914 ccp->opcode = BT_TBS_CALL_OPCODE_JOIN; in bt_tbs_join()
1915 (void)memcpy(ccp->call_indexes, call_indexes, in bt_tbs_join()
1918 status = join_calls(inst, ccp, call_index_cnt); in bt_tbs_join()
2018 const struct bt_tbs_call_cp_term ccp = { in bt_tbs_remote_terminate() local
2024 status = terminate_call(inst, &ccp, in bt_tbs_remote_terminate()