Lines Matching refs:cli
17 static struct bt_mesh_priv_beacon_cli *cli; variable
39 if (bt_mesh_msg_ack_ctx_match(&cli->ack_ctx, OP_PRIV_BEACON_STATUS, ctx->addr, in handle_beacon_status()
44 bt_mesh_msg_ack_ctx_rx(&cli->ack_ctx); in handle_beacon_status()
47 if (cli->cb && cli->cb->priv_beacon_status) { in handle_beacon_status()
53 cli->cb->priv_beacon_status(cli, ctx->addr, &state); in handle_beacon_status()
75 if (bt_mesh_msg_ack_ctx_match(&cli->ack_ctx, OP_PRIV_GATT_PROXY_STATUS, ctx->addr, in handle_gatt_proxy_status()
79 bt_mesh_msg_ack_ctx_rx(&cli->ack_ctx); in handle_gatt_proxy_status()
82 if (cli->cb && cli->cb->priv_gatt_proxy_status) { in handle_gatt_proxy_status()
83 cli->cb->priv_gatt_proxy_status(cli, ctx->addr, proxy); in handle_gatt_proxy_status()
108 if (bt_mesh_msg_ack_ctx_match(&cli->ack_ctx, OP_PRIV_NODE_ID_STATUS, ctx->addr, in handle_node_id_status()
114 bt_mesh_msg_ack_ctx_rx(&cli->ack_ctx); in handle_node_id_status()
117 if (cli->cb && cli->cb->priv_node_id_status) { in handle_node_id_status()
124 cli->cb->priv_node_id_status(cli, ctx->addr, &state); in handle_node_id_status()
144 cli = model->rt->user_data; in priv_beacon_cli_init()
145 cli->model = model; in priv_beacon_cli_init()
150 bt_mesh_msg_ack_ctx_init(&cli->ack_ctx); in priv_beacon_cli_init()
164 .ack = &cli->ack_ctx, in bt_mesh_priv_beacon_cli_set()
178 return bt_mesh_msg_ackd_send(cli->model, &ctx, &buf, rsp ? &rsp_ctx : NULL); in bt_mesh_priv_beacon_cli_set()
185 .ack = &cli->ack_ctx, in bt_mesh_priv_beacon_cli_get()
194 return bt_mesh_msg_ackd_send(cli->model, &ctx, &buf, val ? &rsp_ctx : NULL); in bt_mesh_priv_beacon_cli_get()
202 .ack = &cli->ack_ctx, in bt_mesh_priv_beacon_cli_gatt_proxy_set()
218 return bt_mesh_msg_ackd_send(cli->model, &ctx, &buf, rsp ? &rsp_ctx : NULL); in bt_mesh_priv_beacon_cli_gatt_proxy_set()
225 .ack = &cli->ack_ctx, in bt_mesh_priv_beacon_cli_gatt_proxy_get()
234 return bt_mesh_msg_ackd_send(cli->model, &ctx, &buf, val ? &rsp_ctx : NULL); in bt_mesh_priv_beacon_cli_gatt_proxy_get()
243 .ack = &cli->ack_ctx, in bt_mesh_priv_beacon_cli_node_id_set()
261 return bt_mesh_msg_ackd_send(cli->model, &ctx, &buf, rsp ? &rsp_ctx : NULL); in bt_mesh_priv_beacon_cli_node_id_set()
269 .ack = &cli->ack_ctx, in bt_mesh_priv_beacon_cli_node_id_get()
280 return bt_mesh_msg_ackd_send(cli->model, &ctx, &buf, val ? &rsp_ctx : NULL); in bt_mesh_priv_beacon_cli_node_id_get()