Lines Matching refs:cb
24 int bt_mesh_test_cb_register(struct bt_mesh_test_cb *cb) in bt_mesh_test_cb_register() argument
26 if (sys_slist_find(&cb_slist, &cb->node, NULL)) { in bt_mesh_test_cb_register()
30 sys_slist_append(&cb_slist, &cb->node); in bt_mesh_test_cb_register()
35 void bt_mesh_test_cb_unregister(struct bt_mesh_test_cb *cb) in bt_mesh_test_cb_unregister() argument
37 sys_slist_find_and_remove(&cb_slist, &cb->node); in bt_mesh_test_cb_unregister()
43 struct bt_mesh_test_cb *cb; in bt_mesh_test_net_recv() local
45 SYS_SLIST_FOR_EACH_CONTAINER(&cb_slist, cb, node) { in bt_mesh_test_net_recv()
46 if (cb->net_recv) { in bt_mesh_test_net_recv()
47 cb->net_recv(ttl, ctl, src, dst, payload, payload_len); in bt_mesh_test_net_recv()
54 struct bt_mesh_test_cb *cb; in bt_mesh_test_model_recv() local
56 SYS_SLIST_FOR_EACH_CONTAINER(&cb_slist, cb, node) { in bt_mesh_test_model_recv()
57 if (cb->model_recv) { in bt_mesh_test_model_recv()
58 cb->model_recv(src, dst, payload, payload_len); in bt_mesh_test_model_recv()
65 struct bt_mesh_test_cb *cb; in bt_mesh_test_model_bound() local
67 SYS_SLIST_FOR_EACH_CONTAINER(&cb_slist, cb, node) { in bt_mesh_test_model_bound()
68 if (cb->model_bound) { in bt_mesh_test_model_bound()
69 cb->model_bound(addr, model, key_idx); in bt_mesh_test_model_bound()
76 struct bt_mesh_test_cb *cb; in bt_mesh_test_model_unbound() local
78 SYS_SLIST_FOR_EACH_CONTAINER(&cb_slist, cb, node) { in bt_mesh_test_model_unbound()
79 if (cb->model_unbound) { in bt_mesh_test_model_unbound()
80 cb->model_unbound(addr, model, key_idx); in bt_mesh_test_model_unbound()
87 struct bt_mesh_test_cb *cb; in bt_mesh_test_prov_invalid_bearer() local
89 SYS_SLIST_FOR_EACH_CONTAINER(&cb_slist, cb, node) { in bt_mesh_test_prov_invalid_bearer()
90 if (cb->prov_invalid_bearer) { in bt_mesh_test_prov_invalid_bearer()
91 cb->prov_invalid_bearer(opcode); in bt_mesh_test_prov_invalid_bearer()
98 struct bt_mesh_test_cb *cb; in bt_mesh_test_trans_incomp_timer_exp() local
100 SYS_SLIST_FOR_EACH_CONTAINER(&cb_slist, cb, node) { in bt_mesh_test_trans_incomp_timer_exp()
101 if (cb->trans_incomp_timer_exp) { in bt_mesh_test_trans_incomp_timer_exp()
102 cb->trans_incomp_timer_exp(); in bt_mesh_test_trans_incomp_timer_exp()