Lines Matching refs:model

39 static int health_fault_status(const struct bt_mesh_model *model,  in health_fault_status()  argument
43 struct bt_mesh_health_cli *cli = model->rt->user_data; in health_fault_status()
92 static int health_current_status(const struct bt_mesh_model *model, in health_current_status() argument
96 struct bt_mesh_health_cli *cli = model->rt->user_data; in health_current_status()
120 static int health_period_status(const struct bt_mesh_model *model, in health_period_status() argument
124 struct bt_mesh_health_cli *cli = model->rt->user_data; in health_period_status()
154 static int health_attention_status(const struct bt_mesh_model *model, in health_attention_status() argument
158 struct bt_mesh_health_cli *cli = model->rt->user_data; in health_attention_status()
207 return bt_mesh_msg_ackd_send(cli->model, ctx, &msg, attention ? &rsp : NULL); in bt_mesh_health_cli_attention_get()
228 return bt_mesh_msg_ackd_send(cli->model, ctx, &msg, updated_attention ? &rsp : NULL); in bt_mesh_health_cli_attention_set()
239 return bt_mesh_msg_send(cli->model, ctx, &msg); in bt_mesh_health_cli_attention_set_unack()
259 return bt_mesh_msg_ackd_send(cli->model, ctx, &msg, divisor ? &rsp : NULL); in bt_mesh_health_cli_period_get()
280 return bt_mesh_msg_ackd_send(cli->model, ctx, &msg, updated_divisor ? &rsp : NULL); in bt_mesh_health_cli_period_set()
291 return bt_mesh_msg_send(cli->model, ctx, &msg); in bt_mesh_health_cli_period_set_unack()
317 return bt_mesh_msg_ackd_send(cli->model, ctx, &msg, &rsp); in bt_mesh_health_cli_fault_test()
329 return bt_mesh_msg_send(cli->model, ctx, &msg); in bt_mesh_health_cli_fault_test_unack()
354 return bt_mesh_msg_ackd_send(cli->model, ctx, &msg, in bt_mesh_health_cli_fault_clear()
366 return bt_mesh_msg_send(cli->model, ctx, &msg); in bt_mesh_health_cli_fault_clear_unack()
391 return bt_mesh_msg_ackd_send(cli->model, ctx, &msg, in bt_mesh_health_cli_fault_get()
405 static int update_callback(const struct bt_mesh_model *model) in update_callback() argument
407 struct bt_mesh_health_cli *cli = model->rt->user_data; in update_callback()
416 static int health_cli_init(const struct bt_mesh_model *model) in health_cli_init() argument
418 struct bt_mesh_health_cli *cli = model->rt->user_data; in health_cli_init()
420 LOG_DBG("primary %u", bt_mesh_model_in_primary(model)); in health_cli_init()
427 cli->model = model; in health_cli_init()
438 static void health_cli_reset(const struct bt_mesh_model *model) in health_cli_reset() argument
440 struct bt_mesh_health_cli *cli = model->rt->user_data; in health_cli_reset()