Lines Matching refs:res
206 static bool is_hash_equal(struct bt_mesh_subnet *sub, struct find_net_id *res, uint8_t idx) in is_hash_equal() argument
212 memcpy(&in[8], res->data.priv.rand, 8); in is_hash_equal()
219 if (memcmp(&out[8], res->data.priv.hash, 8)) { in is_hash_equal()
228 struct find_net_id *res = user_data; in has_net_id() local
231 if (res->type == BT_MESH_ID_TYPE_NET) { in has_net_id()
232 net_id = (uint8_t *)res->data.net_id; in has_net_id()
237 if (!(is_hash_equal(sub, res, 0) || in has_net_id()
238 (bt_mesh_subnet_has_new_key(sub) && is_hash_equal(sub, res, 1)))) { in has_net_id()
242 return proxy_srv_check_and_get(sub, net_id, &res->srv); in has_net_id()
249 struct find_net_id res; in handle_net_id() local
252 res.type = type; in handle_net_id()
253 res.srv = NULL; in handle_net_id()
259 res.data.net_id = net_buf_simple_pull_mem(buf, 8); in handle_net_id()
266 res.data.priv.hash = net_buf_simple_pull_mem(buf, 8); in handle_net_id()
267 res.data.priv.rand = net_buf_simple_pull_mem(buf, 8); in handle_net_id()
270 sub = bt_mesh_subnet_find(has_net_id, (void *)&res); in handle_net_id()
271 if (sub && res.srv) { in handle_net_id()
272 err = bt_mesh_gatt_cli_connect(info->addr, &proxy, res.srv); in handle_net_id()