Lines Matching refs:srv

37 	struct bt_mesh_health_srv *srv = mod->rt->user_data;  in health_get_registered()  local
47 if (srv->cb && srv->cb->fault_get_reg) { in health_get_registered()
51 err = srv->cb->fault_get_reg(mod, company_id, test_id, in health_get_registered()
69 struct bt_mesh_health_srv *srv = mod->rt->user_data; in health_get_current() local
81 if (srv->cb && srv->cb->fault_get_cur) { in health_get_current()
85 err = srv->cb->fault_get_cur(mod, test_id, &company_id, in health_get_current()
131 struct bt_mesh_health_srv *srv = model->rt->user_data; in health_fault_clear_unrel() local
138 if (srv->cb && srv->cb->fault_clear) { in health_fault_clear_unrel()
139 return srv->cb->fault_clear(model, company_id); in health_fault_clear_unrel()
150 struct bt_mesh_health_srv *srv = model->rt->user_data; in health_fault_clear() local
157 if (srv->cb && srv->cb->fault_clear) { in health_fault_clear()
160 err = srv->cb->fault_clear(model, company_id); in health_fault_clear()
179 struct bt_mesh_health_srv *srv = model->rt->user_data; in health_fault_test_unrel() local
188 if (srv->cb && srv->cb->fault_test) { in health_fault_test_unrel()
189 return srv->cb->fault_test(model, test_id, company_id); in health_fault_test_unrel()
200 struct bt_mesh_health_srv *srv = model->rt->user_data; in health_fault_test() local
211 if (srv->cb && srv->cb->fault_test) { in health_fault_test()
214 err = srv->cb->fault_test(model, test_id, company_id); in health_fault_test()
235 struct bt_mesh_health_srv *srv = model->rt->user_data; in send_attention_status() local
239 k_work_delayable_remaining_get(&srv->attn_timer)) / 1000U; in send_attention_status()
410 struct bt_mesh_health_srv *srv = CONTAINER_OF(dwork, in attention_off() local
415 if (srv->cb && srv->cb->attn_off) { in attention_off()
416 srv->cb->attn_off(srv->model); in attention_off()
422 struct bt_mesh_health_srv *srv = model->rt->user_data; in health_srv_init() local
424 if (!srv) { in health_srv_init()
436 k_work_init_delayable(&srv->attn_timer, attention_off); in health_srv_init()
438 srv->model = model; in health_srv_init()
441 health_srv = srv; in health_srv_init()
453 struct bt_mesh_health_srv *srv; in bt_mesh_attention() local
456 srv = health_srv; in bt_mesh_attention()
457 if (!srv) { in bt_mesh_attention()
462 model = srv->model; in bt_mesh_attention()
464 srv = model->rt->user_data; in bt_mesh_attention()
467 if ((time > 0) && srv->cb && srv->cb->attn_on) { in bt_mesh_attention()
468 srv->cb->attn_on(model); in bt_mesh_attention()
471 k_work_reschedule(&srv->attn_timer, K_SECONDS(time)); in bt_mesh_attention()