Lines Matching refs:cli
49 static struct bt_mesh_cfg_cli *cli; variable
66 if (bt_mesh_msg_ack_ctx_match(&cli->ack_ctx, OP_DEV_COMP_DATA_STATUS, ctx->addr, in comp_data_status()
77 bt_mesh_msg_ack_ctx_rx(&cli->ack_ctx); in comp_data_status()
81 if (cli->cb && cli->cb->comp_data) { in comp_data_status()
82 cli->cb->comp_data(cli, ctx->addr, page, buf); in comp_data_status()
101 if (bt_mesh_msg_ack_ctx_match(&cli->ack_ctx, expect_status, ctx->addr, in state_status_u8()
108 bt_mesh_msg_ack_ctx_rx(&cli->ack_ctx); in state_status_u8()
122 if (cli->cb && cli->cb->beacon_status) { in beacon_status()
123 cli->cb->beacon_status(cli, ctx->addr, status); in beacon_status()
137 if (cli->cb && cli->cb->ttl_status) { in ttl_status()
138 cli->cb->ttl_status(cli, ctx->addr, status); in ttl_status()
152 if (cli->cb && cli->cb->friend_status) { in friend_status()
153 cli->cb->friend_status(cli, ctx->addr, status); in friend_status()
168 if (cli->cb && cli->cb->gatt_proxy_status) { in gatt_proxy_status()
169 cli->cb->gatt_proxy_status(cli, ctx->addr, status); in gatt_proxy_status()
196 if (bt_mesh_msg_ack_ctx_match(&cli->ack_ctx, OP_KRP_STATUS, ctx->addr, (void **)¶m)) { in krp_status()
210 bt_mesh_msg_ack_ctx_rx(&cli->ack_ctx); in krp_status()
214 if (cli->cb && cli->cb->krp_status) { in krp_status()
215 cli->cb->krp_status(cli, ctx->addr, status, net_idx, phase); in krp_status()
240 if (bt_mesh_msg_ack_ctx_match(&cli->ack_ctx, OP_RELAY_STATUS, ctx->addr, in relay_status()
250 bt_mesh_msg_ack_ctx_rx(&cli->ack_ctx); in relay_status()
253 if (cli->cb && cli->cb->relay_status) { in relay_status()
254 cli->cb->relay_status(cli, ctx->addr, status, transmit); in relay_status()
268 if (cli->cb && cli->cb->network_transmit_status) { in net_transmit_status()
269 cli->cb->network_transmit_status(cli, ctx->addr, status); in net_transmit_status()
295 if (bt_mesh_msg_ack_ctx_match(&cli->ack_ctx, OP_NET_KEY_STATUS, ctx->addr, in net_key_status()
308 bt_mesh_msg_ack_ctx_rx(&cli->ack_ctx); in net_key_status()
314 if (cli->cb && cli->cb->net_key_status) { in net_key_status()
315 cli->cb->net_key_status(cli, ctx->addr, status, net_idx); in net_key_status()
360 if (bt_mesh_msg_ack_ctx_match(&cli->ack_ctx, OP_NET_KEY_LIST, ctx->addr, (void **)¶m)) { in net_key_list()
372 bt_mesh_msg_ack_ctx_rx(&cli->ack_ctx); in net_key_list()
377 if (cli->cb && cli->cb->net_key_list) { in net_key_list()
378 cli->cb->net_key_list(cli, ctx->addr, buf); in net_key_list()
392 if (bt_mesh_msg_ack_ctx_match(&cli->ack_ctx, OP_NODE_RESET_STATUS, in node_reset_status()
399 bt_mesh_msg_ack_ctx_rx(&cli->ack_ctx); in node_reset_status()
402 if (cli->cb && cli->cb->node_reset_status) { in node_reset_status()
403 cli->cb->node_reset_status(cli, ctx->addr); in node_reset_status()
430 if (bt_mesh_msg_ack_ctx_match(&cli->ack_ctx, OP_APP_KEY_STATUS, ctx->addr, in app_key_status()
443 bt_mesh_msg_ack_ctx_rx(&cli->ack_ctx); in app_key_status()
449 if (cli->cb && cli->cb->app_key_status) { in app_key_status()
450 cli->cb->app_key_status(cli, ctx->addr, status, net_idx, in app_key_status()
481 if (bt_mesh_msg_ack_ctx_match(&cli->ack_ctx, OP_APP_KEY_LIST, ctx->addr, in app_key_list()
504 bt_mesh_msg_ack_ctx_rx(&cli->ack_ctx); in app_key_list()
509 if (cli->cb && cli->cb->app_key_list) { in app_key_list()
510 cli->cb->app_key_list(cli, ctx->addr, status, net_idx, buf); in app_key_list()
553 if (bt_mesh_msg_ack_ctx_match(&cli->ack_ctx, OP_MOD_APP_STATUS, ctx->addr, in mod_app_status()
568 bt_mesh_msg_ack_ctx_rx(&cli->ack_ctx); in mod_app_status()
574 if (cli->cb && cli->cb->mod_app_status) { in mod_app_status()
575 cli->cb->mod_app_status(cli, ctx->addr, status, elem_addr, in mod_app_status()
611 if (bt_mesh_msg_ack_ctx_match(&cli->ack_ctx, op, ctx->addr, (void **)¶m)) { in mod_sub_list_handle()
634 bt_mesh_msg_ack_ctx_rx(&cli->ack_ctx); in mod_sub_list_handle()
639 if (cli->cb && cli->cb->mod_sub_list) { in mod_sub_list_handle()
640 cli->cb->mod_sub_list(cli, ctx->addr, status, elem_addr, mod_id, cid, buf); in mod_sub_list_handle()
663 if (bt_mesh_msg_ack_ctx_match(&cli->ack_ctx, op, ctx->addr, (void **)¶m)) { in mod_app_list_handle()
686 bt_mesh_msg_ack_ctx_rx(&cli->ack_ctx); in mod_app_list_handle()
691 if (cli->cb && cli->cb->mod_app_list) { in mod_app_list_handle()
692 cli->cb->mod_app_list(cli, ctx->addr, status, elem_addr, mod_id, cid, buf); in mod_app_list_handle()
763 if (bt_mesh_msg_ack_ctx_match(&cli->ack_ctx, OP_MOD_PUB_STATUS, ctx->addr, in mod_pub_status()
790 bt_mesh_msg_ack_ctx_rx(&cli->ack_ctx); in mod_pub_status()
794 if (cli->cb && cli->cb->mod_pub_status) { in mod_pub_status()
795 cli->cb->mod_pub_status(cli, ctx->addr, status, elem_addr, mod_id, cid, &pub); in mod_pub_status()
839 if (bt_mesh_msg_ack_ctx_match(&cli->ack_ctx, OP_MOD_SUB_STATUS, in mod_sub_status()
857 bt_mesh_msg_ack_ctx_rx(&cli->ack_ctx); in mod_sub_status()
861 if (cli->cb && cli->cb->mod_sub_status) { in mod_sub_status()
862 cli->cb->mod_sub_status(cli, ctx->addr, status, elem_addr, in mod_sub_status()
912 if (bt_mesh_msg_ack_ctx_match(&cli->ack_ctx, OP_HEARTBEAT_SUB_STATUS, in hb_sub_status()
922 bt_mesh_msg_ack_ctx_rx(&cli->ack_ctx); in hb_sub_status()
925 if (cli->cb && cli->cb->hb_sub_status) { in hb_sub_status()
926 cli->cb->hb_sub_status(cli, ctx->addr, status, &sub); in hb_sub_status()
956 if (bt_mesh_msg_ack_ctx_match(&cli->ack_ctx, OP_HEARTBEAT_PUB_STATUS, in hb_pub_status()
966 bt_mesh_msg_ack_ctx_rx(&cli->ack_ctx); in hb_pub_status()
969 if (cli->cb && cli->cb->hb_pub_status) { in hb_pub_status()
970 cli->cb->hb_pub_status(cli, ctx->addr, status, &pub); in hb_pub_status()
997 if (bt_mesh_msg_ack_ctx_match(&cli->ack_ctx, OP_NODE_IDENTITY_STATUS, ctx->addr, in node_identity_status()
1007 bt_mesh_msg_ack_ctx_rx(&cli->ack_ctx); in node_identity_status()
1010 if (cli->cb && cli->cb->node_identity_status) { in node_identity_status()
1011 cli->cb->node_identity_status(cli, ctx->addr, status, in node_identity_status()
1037 if (bt_mesh_msg_ack_ctx_match(&cli->ack_ctx, OP_LPN_TIMEOUT_STATUS, ctx->addr, in lpn_timeout_status()
1048 bt_mesh_msg_ack_ctx_rx(&cli->ack_ctx); in lpn_timeout_status()
1054 if (cli->cb && cli->cb->lpn_timeout_status) { in lpn_timeout_status()
1055 cli->cb->lpn_timeout_status(cli, ctx->addr, unicast_addr, in lpn_timeout_status()
1102 cli = model->rt->user_data; in cfg_cli_init()
1103 cli->model = model; in cfg_cli_init()
1113 bt_mesh_msg_ack_ctx_init(&cli->ack_ctx); in cfg_cli_init()
1132 .ack = &cli->ack_ctx, in bt_mesh_cfg_cli_comp_data_get()
1141 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !rsp && !comp ? NULL : &rsp_ctx); in bt_mesh_cfg_cli_comp_data_get()
1149 .ack = &cli->ack_ctx, in get_state_u8()
1156 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !val ? NULL : &rsp_ctx); in get_state_u8()
1165 .ack = &cli->ack_ctx, in set_state_u8()
1174 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !val ? NULL : &rsp_ctx); in set_state_u8()
1193 .ack = &cli->ack_ctx, in bt_mesh_cfg_cli_krp_get()
1202 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !status && !phase ? NULL : &rsp); in bt_mesh_cfg_cli_krp_get()
1216 .ack = &cli->ack_ctx, in bt_mesh_cfg_cli_krp_set()
1226 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !status && !phase ? NULL : &rsp); in bt_mesh_cfg_cli_krp_set()
1285 .ack = &cli->ack_ctx, in bt_mesh_cfg_cli_relay_get()
1293 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !status && !transmit ? NULL : &rsp); in bt_mesh_cfg_cli_relay_get()
1306 .ack = &cli->ack_ctx, in bt_mesh_cfg_cli_relay_set()
1316 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !status && !transmit ? NULL : &rsp); in bt_mesh_cfg_cli_relay_set()
1329 .ack = &cli->ack_ctx, in bt_mesh_cfg_cli_net_key_add()
1339 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !status ? NULL : &rsp); in bt_mesh_cfg_cli_net_key_add()
1352 .ack = &cli->ack_ctx, in bt_mesh_cfg_cli_net_key_update()
1362 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !status ? NULL : &rsp); in bt_mesh_cfg_cli_net_key_update()
1374 .ack = &cli->ack_ctx, in bt_mesh_cfg_cli_net_key_get()
1382 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !keys && !key_cnt ? NULL : &rsp); in bt_mesh_cfg_cli_net_key_get()
1395 .ack = &cli->ack_ctx, in bt_mesh_cfg_cli_net_key_del()
1404 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !status ? NULL : &rsp); in bt_mesh_cfg_cli_net_key_del()
1418 .ack = &cli->ack_ctx, in bt_mesh_cfg_cli_app_key_add()
1428 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !status ? NULL : &rsp); in bt_mesh_cfg_cli_app_key_add()
1442 .ack = &cli->ack_ctx, in bt_mesh_cfg_cli_app_key_update()
1452 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !status ? NULL : &rsp); in bt_mesh_cfg_cli_app_key_update()
1465 .ack = &cli->ack_ctx, in bt_mesh_cfg_cli_node_reset()
1473 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !status ? NULL : &rsp); in bt_mesh_cfg_cli_node_reset()
1488 .ack = &cli->ack_ctx, in bt_mesh_cfg_cli_app_key_get()
1497 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, in bt_mesh_cfg_cli_app_key_get()
1512 .ack = &cli->ack_ctx, in bt_mesh_cfg_cli_app_key_del()
1521 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !status ? NULL : &rsp); in bt_mesh_cfg_cli_app_key_del()
1537 .ack = &cli->ack_ctx, in mod_app_bind()
1553 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !status ? NULL : &rsp); in mod_app_bind()
1586 .ack = &cli->ack_ctx, in mod_app_unbind()
1602 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !status ? NULL : &rsp); in mod_app_unbind()
1637 .ack = &cli->ack_ctx, in mod_member_list_get()
1655 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, in mod_member_list_get()
1691 .ack = &cli->ack_ctx, in mod_sub()
1710 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !status ? NULL : &rsp); in mod_sub()
1815 .ack = &cli->ack_ctx, in mod_sub_va()
1835 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !status && !virt_addr ? NULL : &rsp); in mod_sub_va()
1930 .ack = &cli->ack_ctx, in mod_pub_get()
1946 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !status && !pub ? NULL : &rsp); in mod_pub_get()
1980 .ack = &cli->ack_ctx, in mod_pub_set()
2001 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !status ? NULL : &rsp); in mod_pub_set()
2017 .ack = &cli->ack_ctx, in mod_pub_va_set()
2039 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !status ? NULL : &rsp); in mod_pub_va_set()
2091 .ack = &cli->ack_ctx, in bt_mesh_cfg_cli_hb_sub_set()
2102 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !status ? NULL : &rsp); in bt_mesh_cfg_cli_hb_sub_set()
2115 .ack = &cli->ack_ctx, in bt_mesh_cfg_cli_hb_sub_get()
2123 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !status && !sub ? NULL : &rsp); in bt_mesh_cfg_cli_hb_sub_get()
2140 .ack = &cli->ack_ctx, in bt_mesh_cfg_cli_hb_pub_set()
2154 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !status ? NULL : &rsp); in bt_mesh_cfg_cli_hb_pub_set()
2167 .ack = &cli->ack_ctx, in bt_mesh_cfg_cli_hb_pub_get()
2175 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !status && !pub ? NULL : &rsp); in bt_mesh_cfg_cli_hb_pub_get()
2189 .ack = &cli->ack_ctx, in bt_mesh_cfg_cli_node_identity_set()
2199 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !status && !identity ? NULL : &rsp); in bt_mesh_cfg_cli_node_identity_set()
2213 .ack = &cli->ack_ctx, in bt_mesh_cfg_cli_node_identity_get()
2222 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !status && !identity ? NULL : &rsp); in bt_mesh_cfg_cli_node_identity_get()
2235 .ack = &cli->ack_ctx, in bt_mesh_cfg_cli_lpn_timeout_get()
2244 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !polltimeout ? NULL : &rsp); in bt_mesh_cfg_cli_lpn_timeout_get()