Lines Matching refs:mod
33 static void health_get_registered(const struct bt_mesh_model *mod, in health_get_registered() argument
37 struct bt_mesh_health_srv *srv = mod->rt->user_data; in health_get_registered()
51 err = srv->cb->fault_get_reg(mod, company_id, test_id, in health_get_registered()
66 static size_t health_get_current(const struct bt_mesh_model *mod, in health_get_current() argument
69 struct bt_mesh_health_srv *srv = mod->rt->user_data; in health_get_current()
85 err = srv->cb->fault_get_cur(mod, test_id, &company_id, in health_get_current()
369 static int health_pub_update(const struct bt_mesh_model *mod) in health_pub_update() argument
371 struct bt_mesh_model_pub *pub = mod->pub; in health_pub_update()
376 count = health_get_current(mod, pub->msg); in health_pub_update()
388 const struct bt_mesh_model *mod; in bt_mesh_health_srv_fault_update() local
390 mod = bt_mesh_model_find(elem, BT_MESH_MODEL_ID_HEALTH_SRV); in bt_mesh_health_srv_fault_update()
391 if (!mod) { in bt_mesh_health_srv_fault_update()
398 if (bt_mesh_model_pub_period_get(mod) > 0) { in bt_mesh_health_srv_fault_update()
402 health_pub_update(mod); in bt_mesh_health_srv_fault_update()
404 return bt_mesh_model_publish(mod); in bt_mesh_health_srv_fault_update()