Lines Matching refs:cp

793 	const struct btp_priv_beacon_get_cmd *cp = cmd;  in priv_beacon_get()  local
798 err = bt_mesh_priv_beacon_cli_get(net.net_idx, cp->dst, &val); in priv_beacon_get()
811 const struct btp_priv_beacon_set_cmd *cp = cmd; in priv_beacon_set() local
815 val.enabled = cp->enabled; in priv_beacon_set()
816 val.rand_interval = cp->rand_interval; in priv_beacon_set()
818 err = bt_mesh_priv_beacon_cli_set(net.net_idx, cp->dst, &val, &val); in priv_beacon_set()
830 const struct btp_priv_gatt_proxy_get_cmd *cp = cmd; in priv_gatt_proxy_get() local
835 err = bt_mesh_priv_beacon_cli_gatt_proxy_get(net.net_idx, cp->dst, &state); in priv_gatt_proxy_get()
848 const struct btp_priv_gatt_proxy_set_cmd *cp = cmd; in priv_gatt_proxy_set() local
853 state = cp->state; in priv_gatt_proxy_set()
855 err = bt_mesh_priv_beacon_cli_gatt_proxy_set(net.net_idx, cp->dst, state, &state); in priv_gatt_proxy_set()
867 const struct btp_priv_node_id_get_cmd *cp = cmd; in priv_node_id_get() local
872 key_net_idx = cp->key_net_idx; in priv_node_id_get()
874 err = bt_mesh_priv_beacon_cli_node_id_get(net.net_idx, cp->dst, key_net_idx, &val); in priv_node_id_get()
887 const struct btp_priv_node_id_set_cmd *cp = cmd; in priv_node_id_set() local
891 val.net_idx = cp->net_idx; in priv_node_id_set()
892 val.state = cp->state; in priv_node_id_set()
894 err = bt_mesh_priv_beacon_cli_node_id_set(net.net_idx, cp->dst, &val, &val); in priv_node_id_set()
931 const struct btp_od_priv_proxy_get_cmd *cp = cmd; in od_priv_proxy_get() local
937 err = bt_mesh_od_priv_proxy_cli_get(net.net_idx, cp->dst, &val_rsp); in od_priv_proxy_get()
951 const struct btp_od_priv_proxy_set_cmd *cp = cmd; in od_priv_proxy_set() local
957 err = bt_mesh_od_priv_proxy_cli_set(net.net_idx, cp->dst, cp->val, &val_rsp); in od_priv_proxy_set()
974 const struct btp_srpl_clear_cmd *cp = cmd; in srpl_clear() local
988 struct bt_mesh_msg_ctx ctx = BT_MESH_MSG_CTX_INIT_APP(app_idx, cp->dst); in srpl_clear()
990 if (cp->acked) { in srpl_clear()
991 err = bt_mesh_sol_pdu_rpl_clear(&ctx, cp->range_start, cp->range_len, &start_rsp, in srpl_clear()
994 err = bt_mesh_sol_pdu_rpl_clear_unack(&ctx, cp->range_start, cp->range_len); in srpl_clear()
1009 const struct btp_proxy_solicit_cmd *cp = cmd; in proxy_solicit() local
1012 err = bt_mesh_proxy_solicit(cp->net_idx); in proxy_solicit()
1377 const struct btp_mesh_config_provisioning_cmd *cp = cmd; in config_prov() local
1382 if (cmd_len != sizeof(*cp) && cmd_len != (sizeof(*cp2))) { in config_prov()
1389 static_auth_size = cp->static_auth_size; in config_prov()
1396 memcpy(dev_uuid, cp->uuid, sizeof(dev_uuid)); in config_prov()
1397 memcpy(static_auth, cp->static_auth, cp->static_auth_size); in config_prov()
1399 prov.output_size = cp->out_size; in config_prov()
1400 prov.output_actions = sys_le16_to_cpu(cp->out_actions); in config_prov()
1401 prov.input_size = cp->in_size; in config_prov()
1402 prov.input_actions = sys_le16_to_cpu(cp->in_actions); in config_prov()
1411 if (cp->auth_method == AUTH_METHOD_OUTPUT) { in config_prov()
1413 } else if (cp->auth_method == AUTH_METHOD_INPUT) { in config_prov()
1415 } else if (cp->auth_method == AUTH_METHOD_STATIC) { in config_prov()
1430 const struct btp_mesh_provision_node_cmd *cp = cmd; in provision_node() local
1435 if (cmd_len != sizeof(*cp) && cmd_len != (sizeof(*cp2))) { in provision_node()
1441 memcpy(dev_key, cp->dev_key, sizeof(dev_key)); in provision_node()
1442 memcpy(net_key, cp->net_key, sizeof(net_key)); in provision_node()
1444 addr = sys_le16_to_cpu(cp->addr); in provision_node()
1445 flags = cp->flags; in provision_node()
1446 iv_index = sys_le32_to_cpu(cp->iv_index); in provision_node()
1447 net_key_idx = sys_le16_to_cpu(cp->net_key_idx); in provision_node()
1478 const struct btp_mesh_provision_adv_cmd *cp = cmd; in provision_adv() local
1483 err = bt_mesh_provision_adv(cp->uuid, sys_le16_to_cpu(cp->net_idx), in provision_adv()
1484 sys_le16_to_cpu(cp->address), in provision_adv()
1485 cp->attention_duration); in provision_adv()
1497 const struct btp_mesh_init_cmd *cp = cmd; in init() local
1500 if (cp->comp == 0) { in init()
1563 const struct btp_mesh_input_number_cmd *cp = cmd; in input_number() local
1567 number = sys_le32_to_cpu(cp->number); in input_number()
1582 const struct btp_mesh_input_string_cmd *cp = cmd; in input_string() local
1588 if (cmd_len < sizeof(*cp) && in input_string()
1589 cmd_len != (sizeof(*cp) + cp->string_len)) { in input_string()
1596 if (cp->string[cp->string_len] != '\0') { in input_string()
1600 if (strlen(cp->string) < input_size) { in input_string()
1605 err = bt_mesh_input_string(cp->string); in input_string()
1616 const struct btp_mesh_ivu_test_mode_cmd *cp = cmd; in ivu_test_mode() local
1618 LOG_DBG("enable 0x%02x", cp->enable); in ivu_test_mode()
1620 bt_mesh_iv_update_test(cp->enable ? true : false); in ivu_test_mode()
1645 const struct btp_mesh_lpn_set_cmd *cp = cmd; in lpn() local
1648 LOG_DBG("enable 0x%02x", cp->enable); in lpn()
1650 err = bt_mesh_lpn_set(cp->enable ? true : false); in lpn()
1678 const struct btp_mesh_net_send_cmd *cp = cmd; in net_send() local
1682 if (cmd_len < sizeof(*cp) && in net_send()
1683 cmd_len != (sizeof(*cp) + cp->payload_len)) { in net_send()
1690 .addr = sys_le16_to_cpu(cp->dst), in net_send()
1691 .send_ttl = cp->ttl, in net_send()
1699 ctx.addr, cp->payload_len); in net_send()
1707 net_buf_simple_add_mem(&msg, cp->payload, cp->payload_len); in net_send()
1721 const struct btp_mesh_va_add_cmd *cp = cmd; in va_add() local
1726 err = bt_mesh_va_add(cp->label_uuid, &va); in va_add()
1741 const struct btp_mesh_va_del_cmd *cp = cmd; in va_del() local
1745 va = bt_mesh_va_find(cp->label_uuid); in va_del()
1801 const struct btp_mesh_model_send_cmd *cp = cmd; in model_send() local
1807 if (cmd_len < sizeof(*cp) && in model_send()
1808 cmd_len != (sizeof(*cp) + cp->payload_len)) { in model_send()
1815 .addr = sys_le16_to_cpu(cp->dst), in model_send()
1816 .send_ttl = cp->ttl, in model_send()
1823 src = sys_le16_to_cpu(cp->src); in model_send()
1841 ctx.addr, model, cp->payload_len); in model_send()
1843 net_buf_simple_add_mem(&msg, cp->payload, cp->payload_len); in model_send()
1859 const struct btp_mesh_lpn_subscribe_cmd *cp = cmd; in lpn_subscribe() local
1860 uint16_t address = sys_le16_to_cpu(cp->address); in lpn_subscribe()
1877 const struct btp_mesh_lpn_unsubscribe_cmd *cp = cmd; in lpn_unsubscribe() local
1878 uint16_t address = sys_le16_to_cpu(cp->address); in lpn_unsubscribe()
1930 const struct btp_proxy_connect_cmd *cp = cmd; in proxy_connect() local
1933 err = bt_mesh_proxy_connect(cp->net_idx); in proxy_connect()
1947 const struct btp_mesh_sar_transmitter_get_cmd *cp = cmd; in sar_transmitter_get() local
1956 net_key_idx, sys_le16_to_cpu(cp->dst), &tx_rsp); in sar_transmitter_get()
1968 const struct btp_mesh_sar_transmitter_set_cmd *cp = cmd; in sar_transmitter_set() local
1976 set.seg_int_step = cp->tx.seg_int_step; in sar_transmitter_set()
1977 set.unicast_retrans_count = cp->tx.unicast_retrans_count; in sar_transmitter_set()
1978 set.unicast_retrans_int_inc = cp->tx.unicast_retrans_int_inc; in sar_transmitter_set()
1979 set.unicast_retrans_int_step = cp->tx.unicast_retrans_int_step; in sar_transmitter_set()
1981 cp->tx.unicast_retrans_without_prog_count; in sar_transmitter_set()
1982 set.multicast_retrans_count = cp->tx.multicast_retrans_count; in sar_transmitter_set()
1983 set.multicast_retrans_int = cp->tx.multicast_retrans_int; in sar_transmitter_set()
1986 sys_le16_to_cpu(cp->dst), in sar_transmitter_set()
1999 const struct btp_mesh_sar_receiver_get_cmd *cp = cmd; in sar_receiver_get() local
2006 sys_le16_to_cpu(cp->dst), &rx_rsp); in sar_receiver_get()
2018 const struct btp_mesh_sar_receiver_set_cmd *cp = cmd; in sar_receiver_set() local
2024 set.ack_delay_inc = cp->rx.ack_delay_inc; in sar_receiver_set()
2025 set.ack_retrans_count = cp->rx.ack_retrans_count; in sar_receiver_set()
2026 set.discard_timeout = cp->rx.discard_timeout; in sar_receiver_set()
2027 set.seg_thresh = cp->rx.seg_thresh; in sar_receiver_set()
2028 set.rx_seg_int_step = cp->rx.rx_seg_int_step; in sar_receiver_set()
2031 sys_le16_to_cpu(cp->dst), &set, in sar_receiver_set()
2046 const struct btp_mesh_large_comp_data_get_cmd *cp = cmd; in large_comp_data_get() local
2057 err = bt_mesh_large_comp_data_get(sys_le16_to_cpu(cp->net_idx), in large_comp_data_get()
2058 sys_le16_to_cpu(cp->addr), cp->page, in large_comp_data_get()
2059 sys_le16_to_cpu(cp->offset), &comp); in large_comp_data_get()
2075 const struct btp_mesh_models_metadata_get_cmd *cp = cmd; in models_metadata_get() local
2086 err = bt_mesh_models_metadata_get(sys_le16_to_cpu(cp->net_idx), in models_metadata_get()
2087 sys_le16_to_cpu(cp->addr), cp->page, in models_metadata_get()
2088 sys_le16_to_cpu(cp->offset), &metadata); in models_metadata_get()
2105 const struct btp_mesh_subnet_bridge_get_cmd *cp = cmd; in subnet_bridge_get() local
2109 err = bt_mesh_brg_cfg_cli_get(net.net_idx, sys_le16_to_cpu(cp->addr), &state); in subnet_bridge_get()
2122 const struct btp_mesh_subnet_bridge_set_cmd *cp = cmd; in subnet_bridge_set() local
2126 state = cp->val; in subnet_bridge_set()
2128 err = bt_mesh_brg_cfg_cli_set(net.net_idx, sys_le16_to_cpu(cp->addr), state, &state); in subnet_bridge_set()
2141 const struct btp_mesh_bridging_table_add_cmd *cp = cmd; in bridging_table_add() local
2148 entry.directions = cp->directions; in bridging_table_add()
2149 entry.net_idx1 = sys_le16_to_cpu(cp->net_idx1); in bridging_table_add()
2150 entry.net_idx2 = sys_le16_to_cpu(cp->net_idx2); in bridging_table_add()
2151 entry.addr1 = sys_le16_to_cpu(cp->addr1); in bridging_table_add()
2152 entry.addr2 = sys_le16_to_cpu(cp->addr2); in bridging_table_add()
2154 err = bt_mesh_brg_cfg_cli_table_add(net_key_idx, sys_le16_to_cpu(cp->addr), &entry, &rp); in bridging_table_add()
2166 const struct btp_mesh_bridging_table_remove_cmd *cp = cmd; in bridging_table_remove() local
2173 net_key_idx, sys_le16_to_cpu(cp->addr), sys_le16_to_cpu(cp->net_idx1), in bridging_table_remove()
2174 sys_le16_to_cpu(cp->net_idx2), sys_le16_to_cpu(cp->addr1), in bridging_table_remove()
2175 sys_le16_to_cpu(cp->addr2), &rp); in bridging_table_remove()
2187 const struct btp_mesh_bridged_subnets_get_cmd *cp = cmd; in bridged_subnets_get() local
2199 filter_net_idx.filter = cp->filter; in bridged_subnets_get()
2200 filter_net_idx.net_idx = sys_le16_to_cpu(cp->net_idx); in bridged_subnets_get()
2202 err = bt_mesh_brg_cfg_cli_subnets_get(net_key_idx, sys_le16_to_cpu(cp->addr), in bridged_subnets_get()
2203 filter_net_idx, cp->start_idx, &rp); in bridged_subnets_get()
2214 const struct btp_mesh_bridging_table_get_cmd *cp = cmd; in bridging_table_get() local
2226 net_key_idx, sys_le16_to_cpu(cp->addr), sys_le16_to_cpu(cp->net_idx1), in bridging_table_get()
2227 sys_le16_to_cpu(cp->net_idx2), sys_le16_to_cpu(cp->start_idx), &rp); in bridging_table_get()
2239 const struct btp_mesh_bridging_table_size_get_cmd *cp = cmd; in bridging_table_size_get() local
2245 err = bt_mesh_brg_cfg_cli_table_size_get(net_key_idx, sys_le16_to_cpu(cp->addr), &size); in bridging_table_size_get()
2258 const struct btp_mesh_comp_data_get_cmd *cp = cmd; in composition_data_get() local
2270 err = bt_mesh_cfg_cli_comp_data_get(sys_le16_to_cpu(cp->net_idx), in composition_data_get()
2271 sys_le16_to_cpu(cp->address), in composition_data_get()
2272 cp->page, &page, comp); in composition_data_get()
2310 const struct btp_mesh_cfg_krp_get_cmd *cp = cmd; in config_krp_get() local
2318 err = bt_mesh_cfg_cli_krp_get(sys_le16_to_cpu(cp->net_idx), in config_krp_get()
2319 sys_le16_to_cpu(cp->address), in config_krp_get()
2320 sys_le16_to_cpu(cp->key_net_idx), in config_krp_get()
2339 const struct btp_mesh_cfg_krp_set_cmd *cp = cmd; in config_krp_set() local
2347 err = bt_mesh_cfg_cli_krp_set(sys_le16_to_cpu(cp->net_idx), in config_krp_set()
2348 sys_le16_to_cpu(cp->address), in config_krp_set()
2349 sys_le16_to_cpu(cp->key_net_idx), in config_krp_set()
2350 cp->transition, &status, &phase); in config_krp_set()
2367 const struct btp_mesh_cfg_beacon_get_cmd *cp = cmd; in config_beacon_get() local
2374 err = bt_mesh_cfg_cli_beacon_get(sys_le16_to_cpu(cp->net_idx), in config_beacon_get()
2375 sys_le16_to_cpu(cp->address), &status); in config_beacon_get()
2390 const struct btp_mesh_cfg_beacon_set_cmd *cp = cmd; in config_beacon_set() local
2397 err = bt_mesh_cfg_cli_beacon_set(sys_le16_to_cpu(cp->net_idx), in config_beacon_set()
2398 sys_le16_to_cpu(cp->address), cp->val, in config_beacon_set()
2414 const struct btp_mesh_cfg_default_ttl_get_cmd *cp = cmd; in config_default_ttl_get() local
2421 err = bt_mesh_cfg_cli_ttl_get(sys_le16_to_cpu(cp->net_idx), in config_default_ttl_get()
2422 sys_le16_to_cpu(cp->address), &status); in config_default_ttl_get()
2438 const struct btp_mesh_cfg_default_ttl_set_cmd *cp = cmd; in config_default_ttl_set() local
2445 err = bt_mesh_cfg_cli_ttl_set(sys_le16_to_cpu(cp->net_idx), in config_default_ttl_set()
2446 sys_le16_to_cpu(cp->address), cp->val, in config_default_ttl_set()
2463 const struct btp_mesh_cfg_gatt_proxy_get_cmd *cp = cmd; in config_gatt_proxy_get() local
2470 err = bt_mesh_cfg_cli_gatt_proxy_get(sys_le16_to_cpu(cp->net_idx), in config_gatt_proxy_get()
2471 sys_le16_to_cpu(cp->address), in config_gatt_proxy_get()
2487 const struct btp_mesh_cfg_gatt_proxy_set_cmd *cp = cmd; in config_gatt_proxy_set() local
2494 err = bt_mesh_cfg_cli_gatt_proxy_set(sys_le16_to_cpu(cp->net_idx), in config_gatt_proxy_set()
2495 sys_le16_to_cpu(cp->address), in config_gatt_proxy_set()
2496 cp->val, &status); in config_gatt_proxy_set()
2511 const struct btp_mesh_cfg_friend_get_cmd *cp = cmd; in config_friend_get() local
2518 err = bt_mesh_cfg_cli_friend_get(sys_le16_to_cpu(cp->net_idx), in config_friend_get()
2519 sys_le16_to_cpu(cp->address), in config_friend_get()
2536 const struct btp_mesh_cfg_friend_set_cmd *cp = cmd; in config_friend_set() local
2543 err = bt_mesh_cfg_cli_friend_set(sys_le16_to_cpu(cp->net_idx), in config_friend_set()
2544 sys_le16_to_cpu(cp->address), in config_friend_set()
2545 cp->val, &status); in config_friend_set()
2561 const struct btp_mesh_cfg_relay_get_cmd *cp = cmd; in config_relay_get() local
2569 err = bt_mesh_cfg_cli_relay_get(sys_le16_to_cpu(cp->net_idx), in config_relay_get()
2570 sys_le16_to_cpu(cp->address), &status, in config_relay_get()
2587 const struct btp_mesh_cfg_relay_set_cmd *cp = cmd; in config_relay_set() local
2595 err = bt_mesh_cfg_cli_relay_set(sys_le16_to_cpu(cp->net_idx), in config_relay_set()
2596 sys_le16_to_cpu(cp->address), in config_relay_set()
2597 cp->new_relay, cp->new_transmit, in config_relay_set()
2614 const struct btp_mesh_cfg_model_pub_get_cmd *cp = cmd; in config_mod_pub_get() local
2622 err = bt_mesh_cfg_cli_mod_pub_get(sys_le16_to_cpu(cp->net_idx), in config_mod_pub_get()
2623 sys_le16_to_cpu(cp->address), in config_mod_pub_get()
2624 sys_le16_to_cpu(cp->elem_address), in config_mod_pub_get()
2625 sys_le16_to_cpu(cp->model_id), in config_mod_pub_get()
2642 const struct btp_mesh_cfg_model_pub_set_cmd *cp = cmd; in config_mod_pub_set() local
2650 pub.addr = sys_le16_to_cpu(cp->pub_addr); in config_mod_pub_set()
2652 pub.app_idx = sys_le16_to_cpu(cp->app_idx); in config_mod_pub_set()
2653 pub.cred_flag = cp->cred_flag; in config_mod_pub_set()
2654 pub.ttl = cp->ttl; in config_mod_pub_set()
2655 pub.period = cp->period; in config_mod_pub_set()
2656 pub.transmit = cp->transmit; in config_mod_pub_set()
2658 err = bt_mesh_cfg_cli_mod_pub_set(sys_le16_to_cpu(cp->net_idx), in config_mod_pub_set()
2659 sys_le16_to_cpu(cp->address), in config_mod_pub_set()
2660 sys_le16_to_cpu(cp->elem_address), in config_mod_pub_set()
2661 sys_le16_to_cpu(cp->model_id), in config_mod_pub_set()
2678 const struct btp_mesh_cfg_model_pub_va_set_cmd *cp = cmd; in config_mod_pub_va_set() local
2686 pub.uuid = cp->uuid; in config_mod_pub_va_set()
2687 pub.app_idx = sys_le16_to_cpu(cp->app_idx); in config_mod_pub_va_set()
2688 pub.cred_flag = cp->cred_flag; in config_mod_pub_va_set()
2689 pub.ttl = cp->ttl; in config_mod_pub_va_set()
2690 pub.period = cp->period; in config_mod_pub_va_set()
2691 pub.transmit = cp->transmit; in config_mod_pub_va_set()
2693 err = bt_mesh_cfg_cli_mod_pub_set(sys_le16_to_cpu(cp->net_idx), in config_mod_pub_va_set()
2694 sys_le16_to_cpu(cp->address), in config_mod_pub_va_set()
2695 sys_le16_to_cpu(cp->elem_address), in config_mod_pub_va_set()
2696 sys_le16_to_cpu(cp->model_id), in config_mod_pub_va_set()
2713 const struct btp_mesh_cfg_model_sub_add_cmd *cp = cmd; in config_mod_sub_add() local
2720 err = bt_mesh_cfg_cli_mod_sub_add(sys_le16_to_cpu(cp->net_idx), in config_mod_sub_add()
2721 sys_le16_to_cpu(cp->address), in config_mod_sub_add()
2722 sys_le16_to_cpu(cp->elem_address), in config_mod_sub_add()
2723 sys_le16_to_cpu(cp->sub_addr), in config_mod_sub_add()
2724 sys_le16_to_cpu(cp->model_id), in config_mod_sub_add()
2741 const struct btp_mesh_cfg_model_sub_ovw_cmd *cp = cmd; in config_mod_sub_ovw() local
2748 err = bt_mesh_cfg_cli_mod_sub_overwrite(sys_le16_to_cpu(cp->net_idx), in config_mod_sub_ovw()
2749 sys_le16_to_cpu(cp->address), in config_mod_sub_ovw()
2750 sys_le16_to_cpu(cp->elem_address), in config_mod_sub_ovw()
2751 sys_le16_to_cpu(cp->sub_addr), in config_mod_sub_ovw()
2752 sys_le16_to_cpu(cp->model_id), in config_mod_sub_ovw()
2768 const struct btp_mesh_cfg_model_sub_del_cmd *cp = cmd; in config_mod_sub_del() local
2775 err = bt_mesh_cfg_cli_mod_sub_del(sys_le16_to_cpu(cp->net_idx), in config_mod_sub_del()
2776 sys_le16_to_cpu(cp->address), in config_mod_sub_del()
2777 sys_le16_to_cpu(cp->elem_address), in config_mod_sub_del()
2778 sys_le16_to_cpu(cp->sub_addr), in config_mod_sub_del()
2779 sys_le16_to_cpu(cp->model_id), in config_mod_sub_del()
2795 const struct btp_mesh_cfg_model_sub_del_all_cmd *cp = cmd; in config_mod_sub_del_all() local
2802 err = bt_mesh_cfg_cli_mod_sub_del_all(sys_le16_to_cpu(cp->net_idx), in config_mod_sub_del_all()
2803 sys_le16_to_cpu(cp->address), in config_mod_sub_del_all()
2804 sys_le16_to_cpu(cp->elem_address), in config_mod_sub_del_all()
2805 sys_le16_to_cpu(cp->model_id), in config_mod_sub_del_all()
2822 const struct btp_mesh_cfg_model_sub_get_cmd *cp = cmd; in config_mod_sub_get() local
2831 err = bt_mesh_cfg_cli_mod_sub_get(sys_le16_to_cpu(cp->net_idx), in config_mod_sub_get()
2832 sys_le16_to_cpu(cp->address), in config_mod_sub_get()
2833 sys_le16_to_cpu(cp->elem_address), in config_mod_sub_get()
2834 sys_le16_to_cpu(cp->model_id), in config_mod_sub_get()
2850 const struct btp_mesh_cfg_model_sub_get_vnd_cmd *cp = cmd; in config_mod_sub_get_vnd() local
2859 err = bt_mesh_cfg_cli_mod_sub_get_vnd(sys_le16_to_cpu(cp->net_idx), in config_mod_sub_get_vnd()
2860 sys_le16_to_cpu(cp->address), in config_mod_sub_get_vnd()
2861 sys_le16_to_cpu(cp->elem_address), in config_mod_sub_get_vnd()
2862 sys_le16_to_cpu(cp->model_id), in config_mod_sub_get_vnd()
2863 sys_le16_to_cpu(cp->cid), in config_mod_sub_get_vnd()
2879 const struct btp_mesh_cfg_model_sub_va_add_cmd *cp = cmd; in config_mod_sub_va_add() local
2887 err = bt_mesh_cfg_cli_mod_sub_va_add(sys_le16_to_cpu(cp->net_idx), in config_mod_sub_va_add()
2888 sys_le16_to_cpu(cp->address), in config_mod_sub_va_add()
2889 sys_le16_to_cpu(cp->elem_address), in config_mod_sub_va_add()
2890 sys_le16_to_cpu(cp->uuid), in config_mod_sub_va_add()
2891 sys_le16_to_cpu(cp->model_id), in config_mod_sub_va_add()
2908 const struct btp_mesh_cfg_model_sub_va_del_cmd *cp = cmd; in config_mod_sub_va_del() local
2916 err = bt_mesh_cfg_cli_mod_sub_va_del(sys_le16_to_cpu(cp->net_idx), in config_mod_sub_va_del()
2917 sys_le16_to_cpu(cp->address), in config_mod_sub_va_del()
2918 sys_le16_to_cpu(cp->elem_address), in config_mod_sub_va_del()
2919 sys_le16_to_cpu(cp->uuid), in config_mod_sub_va_del()
2920 sys_le16_to_cpu(cp->model_id), in config_mod_sub_va_del()
2937 const struct btp_mesh_cfg_model_sub_va_ovw_cmd *cp = cmd; in config_mod_sub_va_ovw() local
2945 err = bt_mesh_cfg_cli_mod_sub_va_overwrite(sys_le16_to_cpu(cp->net_idx), in config_mod_sub_va_ovw()
2946 sys_le16_to_cpu(cp->address), in config_mod_sub_va_ovw()
2947 sys_le16_to_cpu(cp->elem_address), in config_mod_sub_va_ovw()
2948 sys_le16_to_cpu(cp->uuid), in config_mod_sub_va_ovw()
2949 sys_le16_to_cpu(cp->model_id), in config_mod_sub_va_ovw()
2966 const struct btp_mesh_cfg_netkey_add_cmd *cp = cmd; in config_netkey_add() local
2973 err = bt_mesh_cfg_cli_net_key_add(sys_le16_to_cpu(cp->net_idx), in config_netkey_add()
2974 sys_le16_to_cpu(cp->address), in config_netkey_add()
2975 sys_le16_to_cpu(cp->net_key_idx), in config_netkey_add()
2976 cp->net_key, &status); in config_netkey_add()
2992 const struct btp_mesh_cfg_netkey_update_cmd *cp = cmd; in config_netkey_update() local
2999 err = bt_mesh_cfg_cli_net_key_update(sys_le16_to_cpu(cp->net_idx), in config_netkey_update()
3000 sys_le16_to_cpu(cp->address), in config_netkey_update()
3001 sys_le16_to_cpu(cp->net_key_idx), in config_netkey_update()
3002 cp->net_key, in config_netkey_update()
3019 const struct btp_mesh_cfg_netkey_get_cmd *cp = cmd; in config_netkey_get() local
3027 err = bt_mesh_cfg_cli_net_key_get(sys_le16_to_cpu(cp->net_idx), in config_netkey_get()
3028 sys_le16_to_cpu(cp->address), in config_netkey_get()
3045 const struct btp_mesh_cfg_netkey_del_cmd *cp = cmd; in config_netkey_del() local
3052 err = bt_mesh_cfg_cli_net_key_del(sys_le16_to_cpu(cp->net_idx), in config_netkey_del()
3053 sys_le16_to_cpu(cp->address), in config_netkey_del()
3054 sys_le16_to_cpu(cp->net_key_idx), in config_netkey_del()
3071 const struct btp_mesh_cfg_appkey_add_cmd *cp = cmd; in config_appkey_add() local
3078 err = bt_mesh_cfg_cli_app_key_add(sys_le16_to_cpu(cp->net_idx), in config_appkey_add()
3079 sys_le16_to_cpu(cp->address), in config_appkey_add()
3080 sys_le16_to_cpu(cp->net_key_idx), in config_appkey_add()
3081 sys_le16_to_cpu(cp->app_key_idx), in config_appkey_add()
3082 sys_le16_to_cpu(cp->app_key), in config_appkey_add()
3099 const struct btp_mesh_cfg_appkey_update_cmd *cp = cmd; in config_appkey_update() local
3106 err = bt_mesh_cfg_cli_app_key_update(sys_le16_to_cpu(cp->net_idx), in config_appkey_update()
3107 sys_le16_to_cpu(cp->address), in config_appkey_update()
3108 sys_le16_to_cpu(cp->net_key_idx), in config_appkey_update()
3109 sys_le16_to_cpu(cp->app_key_idx), in config_appkey_update()
3110 sys_le16_to_cpu(cp->app_key), in config_appkey_update()
3127 const struct btp_mesh_cfg_appkey_del_cmd *cp = cmd; in config_appkey_del() local
3134 err = bt_mesh_cfg_cli_app_key_del(sys_le16_to_cpu(cp->net_idx), in config_appkey_del()
3135 sys_le16_to_cpu(cp->address), in config_appkey_del()
3136 sys_le16_to_cpu(cp->net_key_idx), in config_appkey_del()
3137 sys_le16_to_cpu(cp->app_key_idx), in config_appkey_del()
3154 const struct btp_mesh_cfg_appkey_get_cmd *cp = cmd; in config_appkey_get() local
3163 err = bt_mesh_cfg_cli_app_key_get(sys_le16_to_cpu(cp->net_idx), in config_appkey_get()
3164 sys_le16_to_cpu(cp->address), in config_appkey_get()
3165 sys_le16_to_cpu(cp->net_key_idx), in config_appkey_get()
3183 const struct btp_mesh_cfg_model_app_bind_cmd *cp = cmd; in config_model_app_bind() local
3192 err = bt_mesh_cfg_cli_mod_app_bind(sys_le16_to_cpu(cp->net_idx), in config_model_app_bind()
3193 sys_le16_to_cpu(cp->address), in config_model_app_bind()
3194 sys_le16_to_cpu(cp->elem_address), in config_model_app_bind()
3195 sys_le16_to_cpu(cp->app_key_idx), in config_model_app_bind()
3196 sys_le16_to_cpu(cp->mod_id), in config_model_app_bind()
3213 const struct btp_mesh_cfg_model_app_bind_vnd_cmd *cp = cmd; in config_model_app_bind_vnd() local
3220 err = bt_mesh_cfg_cli_mod_app_bind_vnd(sys_le16_to_cpu(cp->net_idx), in config_model_app_bind_vnd()
3221 sys_le16_to_cpu(cp->address), in config_model_app_bind_vnd()
3222 sys_le16_to_cpu(cp->elem_address), in config_model_app_bind_vnd()
3223 sys_le16_to_cpu(cp->app_key_idx), in config_model_app_bind_vnd()
3224 sys_le16_to_cpu(cp->mod_id), in config_model_app_bind_vnd()
3225 sys_le16_to_cpu(cp->cid), in config_model_app_bind_vnd()
3242 const struct btp_mesh_cfg_model_app_unbind_cmd *cp = cmd; in config_model_app_unbind() local
3249 err = bt_mesh_cfg_cli_mod_app_unbind(sys_le16_to_cpu(cp->net_idx), in config_model_app_unbind()
3250 sys_le16_to_cpu(cp->address), in config_model_app_unbind()
3251 sys_le16_to_cpu(cp->elem_address), in config_model_app_unbind()
3252 sys_le16_to_cpu(cp->app_key_idx), in config_model_app_unbind()
3253 sys_le16_to_cpu(cp->mod_id), in config_model_app_unbind()
3270 const struct btp_mesh_cfg_model_app_get_cmd *cp = cmd; in config_model_app_get() local
3279 err = bt_mesh_cfg_cli_mod_app_get(sys_le16_to_cpu(cp->net_idx), in config_model_app_get()
3280 sys_le16_to_cpu(cp->address), in config_model_app_get()
3281 sys_le16_to_cpu(cp->elem_address), in config_model_app_get()
3282 sys_le16_to_cpu(cp->mod_id), in config_model_app_get()
3299 const struct btp_mesh_cfg_model_app_vnd_get_cmd *cp = cmd; in config_model_app_vnd_get() local
3308 err = bt_mesh_cfg_cli_mod_app_get_vnd(sys_le16_to_cpu(cp->net_idx), in config_model_app_vnd_get()
3309 sys_le16_to_cpu(cp->address), in config_model_app_vnd_get()
3310 sys_le16_to_cpu(cp->elem_address), in config_model_app_vnd_get()
3311 sys_le16_to_cpu(cp->mod_id), in config_model_app_vnd_get()
3312 sys_le16_to_cpu(cp->cid), in config_model_app_vnd_get()
3328 const struct btp_mesh_cfg_heartbeat_pub_set_cmd *cp = cmd; in config_hb_pub_set() local
3336 pub.net_idx = sys_le16_to_cpu(cp->net_key_idx); in config_hb_pub_set()
3337 pub.dst = sys_le16_to_cpu(cp->destination); in config_hb_pub_set()
3338 pub.count = cp->count_log; in config_hb_pub_set()
3339 pub.period = cp->period_log; in config_hb_pub_set()
3340 pub.ttl = cp->ttl; in config_hb_pub_set()
3341 pub.feat = sys_le16_to_cpu(cp->features); in config_hb_pub_set()
3343 err = bt_mesh_cfg_cli_hb_pub_set(sys_le16_to_cpu(cp->net_idx), in config_hb_pub_set()
3344 sys_le16_to_cpu(cp->address), in config_hb_pub_set()
3361 const struct btp_mesh_cfg_heartbeat_pub_get_cmd *cp = cmd; in config_hb_pub_get() local
3369 err = bt_mesh_cfg_cli_hb_pub_get(sys_le16_to_cpu(cp->net_idx), in config_hb_pub_get()
3370 sys_le16_to_cpu(cp->address), in config_hb_pub_get()
3387 const struct btp_mesh_cfg_heartbeat_sub_set_cmd *cp = cmd; in config_hb_sub_set() local
3395 sub.src = sys_le16_to_cpu(cp->source); in config_hb_sub_set()
3396 sub.dst = sys_le16_to_cpu(cp->destination); in config_hb_sub_set()
3397 sub.period = cp->period_log; in config_hb_sub_set()
3399 err = bt_mesh_cfg_cli_hb_sub_set(sys_le16_to_cpu(cp->net_idx), in config_hb_sub_set()
3400 sys_le16_to_cpu(cp->address), in config_hb_sub_set()
3417 const struct btp_mesh_cfg_heartbeat_sub_get_cmd *cp = cmd; in config_hb_sub_get() local
3425 err = bt_mesh_cfg_cli_hb_sub_get(sys_le16_to_cpu(cp->net_idx), in config_hb_sub_get()
3426 sys_le16_to_cpu(cp->address), in config_hb_sub_get()
3443 const struct btp_mesh_cfg_net_trans_get_cmd *cp = cmd; in config_net_trans_get() local
3450 err = bt_mesh_cfg_cli_net_transmit_get(sys_le16_to_cpu(cp->net_idx), in config_net_trans_get()
3451 sys_le16_to_cpu(cp->address), in config_net_trans_get()
3468 const struct btp_mesh_cfg_net_trans_set_cmd *cp = cmd; in config_net_trans_set() local
3475 err = bt_mesh_cfg_cli_net_transmit_set(sys_le16_to_cpu(cp->net_idx), in config_net_trans_set()
3476 sys_le16_to_cpu(cp->address), in config_net_trans_set()
3477 cp->transmit, &transmit); in config_net_trans_set()
3493 const struct btp_mesh_cfg_node_idt_set_cmd *cp = cmd; in config_node_identity_set() local
3501 err = bt_mesh_cfg_cli_node_identity_set(sys_le16_to_cpu(cp->net_idx), in config_node_identity_set()
3502 sys_le16_to_cpu(cp->address), in config_node_identity_set()
3503 sys_le16_to_cpu(cp->net_key_idx), in config_node_identity_set()
3504 cp->new_identity, in config_node_identity_set()
3522 const struct btp_mesh_cfg_node_idt_get_cmd *cp = cmd; in config_node_identity_get() local
3530 err = bt_mesh_cfg_cli_node_identity_get(sys_le16_to_cpu(cp->net_idx), in config_node_identity_get()
3531 sys_le16_to_cpu(cp->address), in config_node_identity_get()
3532 sys_le16_to_cpu(cp->net_key_idx), in config_node_identity_get()
3550 const struct btp_mesh_cfg_node_reset_cmd *cp = cmd; in config_node_reset() local
3557 err = bt_mesh_cfg_cli_node_reset(sys_le16_to_cpu(cp->net_idx), in config_node_reset()
3558 sys_le16_to_cpu(cp->address), in config_node_reset()
3575 const struct btp_mesh_cfg_lpn_timeout_cmd *cp = cmd; in config_lpn_timeout_get() local
3582 err = bt_mesh_cfg_cli_lpn_timeout_get(sys_le16_to_cpu(cp->net_idx), in config_lpn_timeout_get()
3583 sys_le16_to_cpu(cp->address), in config_lpn_timeout_get()
3584 sys_le16_to_cpu(cp->unicast_addr), in config_lpn_timeout_get()
3601 const struct btp_mesh_health_fault_get_cmd *cp = cmd; in health_fault_get() local
3604 .addr = sys_le16_to_cpu(cp->address), in health_fault_get()
3605 .app_idx = sys_le16_to_cpu(cp->app_idx), in health_fault_get()
3615 sys_le16_to_cpu(cp->cid), &test_id, in health_fault_get()
3629 const struct btp_mesh_health_fault_clear_cmd *cp = cmd; in health_fault_clear() local
3632 .addr = sys_le16_to_cpu(cp->address), in health_fault_clear()
3633 .app_idx = sys_le16_to_cpu(cp->app_idx), in health_fault_clear()
3642 if (cp->ack) { in health_fault_clear()
3644 sys_le16_to_cpu(cp->cid), in health_fault_clear()
3662 sys_le16_to_cpu(cp->cid)); in health_fault_clear()
3670 if (cp->ack) { in health_fault_clear()
3683 const struct btp_mesh_health_fault_test_cmd *cp = cmd; in health_fault_test() local
3686 .addr = sys_le16_to_cpu(cp->address), in health_fault_test()
3687 .app_idx = sys_le16_to_cpu(cp->app_idx), in health_fault_test()
3695 if (cp->ack) { in health_fault_test()
3697 sys_le16_to_cpu(cp->cid), in health_fault_test()
3702 cp->test_id, in health_fault_test()
3720 sys_le16_to_cpu(cp->cid), in health_fault_test()
3721 cp->test_id); in health_fault_test()
3729 if (cp->ack) { in health_fault_test()
3732 rp->test_id = cp->test_id; in health_fault_test()
3733 rp->cid = cp->cid; in health_fault_test()
3745 const struct btp_mesh_health_period_get_cmd *cp = cmd; in health_period_get() local
3748 .addr = sys_le16_to_cpu(cp->address), in health_period_get()
3749 .app_idx = sys_le16_to_cpu(cp->app_idx), in health_period_get()
3769 const struct btp_mesh_health_period_set_cmd *cp = cmd; in health_period_set() local
3772 .addr = sys_le16_to_cpu(cp->address), in health_period_set()
3773 .app_idx = sys_le16_to_cpu(cp->app_idx), in health_period_set()
3780 if (cp->ack) { in health_period_set()
3781 err = bt_mesh_health_cli_period_set(&health_cli, &ctx, cp->divisor, in health_period_set()
3788 err = bt_mesh_health_cli_period_set_unack(&health_cli, &ctx, cp->divisor); in health_period_set()
3796 if (cp->ack) { in health_period_set()
3810 const struct btp_mesh_health_attention_get_cmd *cp = cmd; in health_attention_get() local
3813 .addr = sys_le16_to_cpu(cp->address), in health_attention_get()
3814 .app_idx = sys_le16_to_cpu(cp->app_idx), in health_attention_get()
3834 const struct btp_mesh_health_attention_set_cmd *cp = cmd; in health_attention_set() local
3837 .addr = sys_le16_to_cpu(cp->address), in health_attention_set()
3838 .app_idx = sys_le16_to_cpu(cp->app_idx), in health_attention_set()
3845 if (cp->ack) { in health_attention_set()
3846 err = bt_mesh_health_cli_attention_set(&health_cli, &ctx, cp->attention, in health_attention_set()
3853 err = bt_mesh_health_cli_attention_set_unack(&health_cli, &ctx, cp->attention); in health_attention_set()
3861 if (cp->ack) { in health_attention_set()
3876 const struct btp_mesh_opcodes_aggregator_init_cmd *cp = cmd; in opcodes_aggregator_init() local
3881 err = bt_mesh_op_agg_cli_seq_start(cp->net_idx, cp->app_idx, cp->dst, cp->elem_addr); in opcodes_aggregator_init()
3911 const struct btp_rpr_scan_start_cmd *cp = cmd; in rpr_scan_start() local
3915 .addr = cp->dst, in rpr_scan_start()
3923 memcmp(uuid, cp->uuid, 16) ? cp->uuid : NULL, in rpr_scan_start()
3924 cp->timeout, in rpr_scan_start()
3938 const struct btp_rpr_ext_scan_start_cmd *cp = cmd; in rpr_ext_scan_start() local
3940 .addr = cp->dst, in rpr_ext_scan_start()
3946 err = bt_mesh_rpr_scan_start_ext(&rpr_cli, &srv, cp->uuid, in rpr_ext_scan_start()
3947 cp->timeout, cp->ad_types, in rpr_ext_scan_start()
3948 cp->ad_count); in rpr_ext_scan_start()
3960 const struct btp_rpr_scan_caps_get_cmd *cp = cmd; in rpr_scan_caps_get() local
3963 .addr = cp->dst, in rpr_scan_caps_get()
3987 const struct btp_rpr_scan_get_cmd *cp = cmd; in rpr_scan_get() local
3990 .addr = cp->dst, in rpr_scan_get()
4002 LOG_DBG("Remote Provisioning scan on 0x%04x:", cp->dst); in rpr_scan_get()
4014 const struct btp_rpr_scan_stop_cmd *cp = cmd; in rpr_scan_stop() local
4017 .addr = cp->dst, in rpr_scan_stop()
4038 const struct btp_rpr_link_get_cmd *cp = cmd; in rpr_link_get() local
4041 .addr = cp->dst, in rpr_link_get()
4053 LOG_DBG("Remote Provisioning Link on 0x%04x:", cp->dst); in rpr_link_get()
4063 const struct btp_rpr_link_close_cmd *cp = cmd; in rpr_link_close() local
4066 .addr = cp->dst, in rpr_link_close()
4078 LOG_DBG("Remote Provisioning Link on 0x%04x:", cp->dst); in rpr_link_close()
4088 const struct btp_rpr_prov_remote_cmd *cp = cmd; in rpr_prov_remote() local
4090 .addr = cp->dst, in rpr_prov_remote()
4096 err = bt_mesh_provision_remote(&rpr_cli, &srv, cp->uuid, in rpr_prov_remote()
4097 cp->net_idx, cp->addr); in rpr_prov_remote()
4109 const struct btp_rpr_reprov_remote_cmd *cp = cmd; in rpr_reprov_remote() local
4111 .addr = cp->dst, in rpr_reprov_remote()
4117 if (!BT_MESH_ADDR_IS_UNICAST(cp->addr)) { in rpr_reprov_remote()
4123 err = bt_mesh_reprovision_remote(&rpr_cli, &srv, cp->addr, in rpr_reprov_remote()
4124 cp->comp_change); in rpr_reprov_remote()
4243 const struct btp_mmdl_dfu_info_get_cmd *cp = cmd; in dfu_info_get() local
4262 max_count = cp->limit; in dfu_info_get()
4276 const struct btp_mmdl_dfu_metadata_check_cmd *cp = cmd; in dfu_update_metadata_check() local
4303 img_idx = cp->index; in dfu_update_metadata_check()
4304 slot_idx = cp->slot_idx; in dfu_update_metadata_check()
4305 size = cp->slot_size; in dfu_update_metadata_check()
4306 fwid_len = cp->fwid_len; in dfu_update_metadata_check()
4307 metadata_len = cp->metadata_len; in dfu_update_metadata_check()
4311 memcpy(&metadata, cp->data, metadata_len); in dfu_update_metadata_check()
4406 const struct btp_mmdl_dfu_firmware_update_cmd *cp = cmd; in dfu_firmware_update_start() local
4429 .block_size_log = cp->block_size, in dfu_firmware_update_start()
4430 .chunk_size = cp->chunk_size, in dfu_firmware_update_start()
4433 addr_cnt = cp->addr_cnt; in dfu_firmware_update_start()
4434 slot_idx = cp->slot_idx; in dfu_firmware_update_start()
4435 size = cp->slot_size; in dfu_firmware_update_start()
4436 fwid_len = cp->fwid_len; in dfu_firmware_update_start()
4437 metadata_len = cp->metadata_len; in dfu_firmware_update_start()
4443 memcpy(&metadata, cp->data, metadata_len); in dfu_firmware_update_start()
4457 addr = cp->data[metadata_len + 1 + i * sizeof(uint16_t)] | in dfu_firmware_update_start()
4458 (cp->data[metadata_len + i * sizeof(uint16_t)] << 8); in dfu_firmware_update_start()
4560 const struct btp_mmdl_blob_info_get_cmd *cp = cmd; in blob_info_get() local
4574 for (int i = 0; i < cp->addr_cnt; i++) { in blob_info_get()
4575 addr = cp->addr[1 + i * sizeof(uint16_t)] | in blob_info_get()
4576 (cp->addr[i * sizeof(uint16_t)] << 8); in blob_info_get()
4584 if (cp->addr_cnt > 1) { in blob_info_get()
4609 const struct btp_mmdl_blob_transfer_start_cmd *cp = cmd; in blob_transfer_start() local
4625 blob_cli_xfer.xfer.id = cp->id; in blob_transfer_start()
4626 blob_cli_xfer.xfer.size = cp->size; in blob_transfer_start()
4627 blob_cli_xfer.xfer.block_size_log = cp->block_size; in blob_transfer_start()
4628 blob_cli_xfer.xfer.chunk_size = cp->chunk_size; in blob_transfer_start()
4636 if (cp->timeout) { in blob_transfer_start()
4637 blob_cli_xfer.inputs.timeout_base = cp->timeout; in blob_transfer_start()
4640 if (cp->ttl) { in blob_transfer_start()
4641 blob_cli_xfer.inputs.ttl = cp->ttl; in blob_transfer_start()
4709 const struct btp_mmdl_blob_srv_recv_cmd *cp = cmd; in blob_srv_recv() local
4731 id = cp->id; in blob_srv_recv()
4732 timeout_base = cp->timeout; in blob_srv_recv()
4733 ttl = cp->ttl; in blob_srv_recv()