Lines Matching refs:cli

38 } cli = {.srcs = &srcs, .ctx.sdu = &sdu};  variable
55 if (!bt_mesh_msg_ack_ctx_match(&cli.ack_ctx, in handle_status()
69 cli.ctx.initialized = true; in handle_status()
73 if (cli.srcs->len < 2) { in handle_status()
75 cli.ctx.initialized = true; in handle_status()
79 addr = net_buf_simple_pull_le16(cli.srcs); in handle_status()
90 cli.ctx.initialized = true; in handle_status()
95 bt_mesh_msg_ack_ctx_rx(&cli.ack_ctx); in handle_status()
118 cli.model = model; in op_agg_cli_init()
119 bt_mesh_msg_ack_ctx_init(&cli.ack_ctx); in op_agg_cli_init()
132 if (cli.ctx.initialized) { in bt_mesh_op_agg_cli_seq_start()
137 cli.ctx.net_idx = net_idx; in bt_mesh_op_agg_cli_seq_start()
138 cli.ctx.app_idx = app_idx; in bt_mesh_op_agg_cli_seq_start()
139 cli.ctx.addr = dst; in bt_mesh_op_agg_cli_seq_start()
140 cli.ctx.initialized = true; in bt_mesh_op_agg_cli_seq_start()
142 net_buf_simple_init(cli.srcs, 0); in bt_mesh_op_agg_cli_seq_start()
143 bt_mesh_model_msg_init(cli.ctx.sdu, OP_OPCODES_AGGREGATOR_SEQUENCE); in bt_mesh_op_agg_cli_seq_start()
144 net_buf_simple_add_le16(cli.ctx.sdu, elem_addr); in bt_mesh_op_agg_cli_seq_start()
152 .net_idx = cli.ctx.net_idx, in bt_mesh_op_agg_cli_seq_send()
153 .app_idx = cli.ctx.app_idx, in bt_mesh_op_agg_cli_seq_send()
154 .addr = cli.ctx.addr, in bt_mesh_op_agg_cli_seq_send()
158 if (!cli.ctx.initialized) { in bt_mesh_op_agg_cli_seq_send()
163 err = bt_mesh_msg_ack_ctx_prepare(&cli.ack_ctx, OP_OPCODES_AGGREGATOR_STATUS, in bt_mesh_op_agg_cli_seq_send()
164 cli.ctx.addr, NULL); in bt_mesh_op_agg_cli_seq_send()
169 cli.ctx.initialized = false; in bt_mesh_op_agg_cli_seq_send()
171 err = bt_mesh_model_send(cli.model, &ctx, cli.ctx.sdu, NULL, NULL); in bt_mesh_op_agg_cli_seq_send()
174 bt_mesh_msg_ack_ctx_clear(&cli.ack_ctx); in bt_mesh_op_agg_cli_seq_send()
178 return bt_mesh_msg_ack_ctx_wait(&cli.ack_ctx, K_MSEC(msg_timeout)); in bt_mesh_op_agg_cli_seq_send()
183 cli.ctx.initialized = false; in bt_mesh_op_agg_cli_seq_abort()
188 return cli.ctx.initialized; in bt_mesh_op_agg_cli_seq_is_started()
193 return net_buf_simple_tailroom(cli.ctx.sdu); in bt_mesh_op_agg_cli_seq_tailroom()
215 return bt_mesh_op_agg_encode_msg(msg, cli.ctx.sdu); in bt_mesh_op_agg_cli_send()
221 return cli.ctx.initialized && (ctx->net_idx == cli.ctx.net_idx) && in bt_mesh_op_agg_cli_accept()
222 (ctx->addr == cli.ctx.addr) && (ctx->app_idx == cli.ctx.app_idx) && in bt_mesh_op_agg_cli_accept()