Lines Matching refs:cp

451 	const struct btp_gap_oob_sc_set_remote_data_cmd *cp = cmd;  in set_oob_sc_remote_data()  local
459 memcpy(&oob_sc_remote.le_sc_data.r[0], cp->rand, in set_oob_sc_remote_data()
461 memcpy(&oob_sc_remote.le_sc_data.c[0], cp->conf, in set_oob_sc_remote_data()
471 const struct btp_gap_set_powered_cmd *cp = cmd; in set_powered() local
475 if (cp->powered) { in set_powered()
502 const struct btp_gap_set_connectable_cmd *cp = cmd; in set_connectable() local
505 if (cp->connectable) { in set_connectable()
568 const struct btp_gap_set_discoverable_cmd *cp = cmd; in set_discoverable() local
571 switch (cp->discoverable) { in set_discoverable()
599 const struct btp_gap_set_bondable_cmd *cp = cmd; in set_bondable() local
602 LOG_DBG("bondable: %d", cp->bondable); in set_bondable()
604 if (cp->bondable) { in set_bondable()
610 bt_set_bondable(cp->bondable); in set_bondable()
693 const struct btp_gap_start_advertising_cmd *cp = cmd; local
708 if ((cmd_len < sizeof(*cp)) ||
709 (cmd_len != sizeof(*cp) + cp->adv_data_len + cp->scan_rsp_len +
715 duration = sys_get_le32(cp->adv_sr_data + cp->adv_data_len + cp->scan_rsp_len);
717 own_addr_type = cp->adv_sr_data[cp->adv_data_len + cp->scan_rsp_len + sizeof(duration)];
719 for (i = 0, adv_len = 1U; i < cp->adv_data_len; adv_len++) {
725 ad[adv_len].type = cp->adv_sr_data[i++];
726 ad[adv_len].data_len = cp->adv_sr_data[i++];
727 ad[adv_len].data = &cp->adv_sr_data[i];
731 for (sd_len = 0U; i < cp->adv_data_len + cp->scan_rsp_len; sd_len++) {
737 sd[sd_len].type = cp->adv_sr_data[i++];
738 sd[sd_len].data_len = cp->adv_sr_data[i++];
739 sd[sd_len].data = &cp->adv_sr_data[i];
775 const struct btp_gap_start_directed_adv_cmd *cp = cmd; local
778 uint16_t options = sys_le16_to_cpu(cp->options);
780 adv_param = *BT_LE_ADV_CONN_DIR(&cp->address);
792 if (bt_addr_le_eq(&cp->address, &cars[i].addr)) {
963 const struct btp_gap_start_discovery_cmd *cp = cmd; local
966 if (cp->flags & BTP_GAP_DISCOVERY_FLAG_BREDR) {
971 if (bt_le_scan_start(cp->flags & BTP_GAP_DISCOVERY_FLAG_LE_ACTIVE_SCAN ?
979 discovery_flags = cp->flags;
1008 const struct btp_gap_connect_cmd *cp = cmd; local
1011 if (!bt_addr_le_eq(&cp->address, BT_ADDR_LE_ANY)) {
1014 err = bt_conn_le_create(&cp->address, BT_CONN_LE_CREATE_CONN, conn_param, &conn);
1035 const struct btp_gap_disconnect_cmd *cp = cmd; local
1039 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address);
1145 const struct btp_gap_set_io_cap_cmd *cp = cmd; local
1151 LOG_DBG("io_cap: %d", cp->io_cap);
1153 switch (cp->io_cap) {
1177 LOG_WRN("Unhandled io_cap: 0x%x", cp->io_cap);
1193 const struct btp_gap_pair_cmd *cp = cmd; local
1197 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address);
1217 const struct btp_gap_unpair_cmd *cp = cmd; local
1221 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address);
1236 err = bt_unpair(BT_ID_DEFAULT, &cp->address);
1247 const struct btp_gap_passkey_entry_cmd *cp = cmd; local
1251 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address);
1257 err = bt_conn_auth_passkey_entry(conn, sys_le32_to_cpu(cp->passkey));
1271 const struct btp_gap_passkey_confirm_cmd *cp = cmd; local
1275 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address);
1281 if (cp->match) {
1305 const struct btp_gap_conn_param_update_cmd *cp = cmd; local
1307 .interval_min = sys_le16_to_cpu(cp->interval_min),
1308 .interval_max = sys_le16_to_cpu(cp->interval_max),
1309 .latency = sys_le16_to_cpu(cp->latency),
1310 .timeout = sys_le16_to_cpu(cp->timeout),
1315 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address);
1343 const struct btp_gap_oob_legacy_set_data_cmd *cp = cmd; local
1345 memcpy(oob_legacy_tk, cp->oob_data, 16);
1356 const struct btp_gap_set_filter_list *cp = cmd; local
1359 if ((cmd_len < sizeof(*cp)) ||
1360 (cmd_len != sizeof(*cp) + (cp->cnt * sizeof(cp->addr[0])))) {
1366 for (int i = 0; i < cp->cnt; i++) {
1367 err = bt_le_filter_accept_list_add(&cp->addr[i]);
1373 filter_list_in_use = cp->cnt != 0;
1381 const struct btp_gap_set_extended_advertising_cmd *cp = cmd; local
1384 LOG_DBG("ext adv settings: %u", cp->settings);
1386 if (cp->settings != 0) {
1482 const struct btp_gap_padv_configure_cmd *cp = cmd; local
1485 if (cp->flags & BTP_GAP_PADV_INCLUDE_TX_POWER) {
1489 err = tester_gap_padv_configure(BT_LE_PER_ADV_PARAM(sys_le16_to_cpu(cp->interval_min),
1490 sys_le16_to_cpu(cp->interval_max),
1605 const struct btp_gap_padv_set_data_cmd *cp = cmd; local
1607 for (uint8_t i = 0; i < cp->data_len; padv_len++) {
1613 padv[padv_len].data_len = cp->data[i++] - 1;
1614 padv[padv_len].type = cp->data[i++];
1615 padv[padv_len].data = &cp->data[i];
1661 const struct btp_gap_padv_create_sync_cmd *cp = cmd; local
1664 bt_addr_le_copy(&create_params.addr, &cp->address);
1666 create_params.sid = cp->advertiser_sid;
1667 create_params.skip = sys_le16_to_cpu(cp->skip);
1668 create_params.timeout = sys_le16_to_cpu(cp->sync_timeout);
1670 if (cp->flags & BTP_GAP_PADV_CREATE_SYNC_FLAG_REPORTS_DISABLED) {
1674 if (cp->flags & BTP_GAP_PADV_CREATE_SYNC_FLAG_FILTER_DUPLICATES) {
1686 const struct btp_gap_padv_sync_transfer_set_info_cmd *cp = cmd; local
1687 (void)cp;
1697 const struct btp_gap_padv_sync_transfer_start_cmd *cp = cmd; local
1698 (void)cp;
1708 const struct btp_gap_padv_sync_transfer_recv_cmd *cp = cmd; local
1709 (void)cp;