Lines Matching refs:srv
34 } srv = {.ctx.sdu = &sdu}; variable
49 bt_mesh_model_msg_init(srv.ctx.sdu, OP_OPCODES_AGGREGATOR_STATUS); in handle_sequence()
50 status = net_buf_simple_add_u8(srv.ctx.sdu, 0); in handle_sequence()
51 net_buf_simple_add_le16(srv.ctx.sdu, elem); in handle_sequence()
53 srv.ctx.net_idx = ctx->net_idx; in handle_sequence()
54 srv.ctx.app_idx = ctx->app_idx; in handle_sequence()
55 srv.ctx.addr = ctx->addr; in handle_sequence()
56 srv.ctx.initialized = true; in handle_sequence()
82 srv.ack = false; in handle_sequence()
83 srv.rsp_err = 0; in handle_sequence()
86 if (srv.rsp_err) { in handle_sequence()
87 *status = srv.rsp_err; in handle_sequence()
96 if (!srv.ack) { in handle_sequence()
97 net_buf_simple_add_u8(srv.ctx.sdu, 0); in handle_sequence()
102 srv.ctx.initialized = false; in handle_sequence()
103 err = bt_mesh_model_send(model, ctx, srv.ctx.sdu, NULL, NULL); in handle_sequence()
129 srv.model = model; in op_agg_srv_init()
139 srv.ack = true; in bt_mesh_op_agg_srv_send()
141 err = bt_mesh_op_agg_encode_msg(msg, srv.ctx.sdu); in bt_mesh_op_agg_srv_send()
143 srv.rsp_err = ACCESS_STATUS_RESPONSE_OVERFLOW; in bt_mesh_op_agg_srv_send()
152 return srv.ctx.initialized && (ctx->net_idx == srv.ctx.net_idx) && in bt_mesh_op_agg_srv_accept()
153 (ctx->addr == srv.ctx.addr) && (ctx->app_idx == srv.ctx.app_idx) && in bt_mesh_op_agg_srv_accept()