Searched refs:frnd (Results 1 – 10 of 10) sorted by relevance
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | friend.c | 88 static bool friend_is_allocated(const struct bt_mesh_friend *frnd) in friend_is_allocated() argument 90 return frnd->subnet != NULL; in friend_is_allocated() 93 static bool is_lpn_unicast(struct bt_mesh_friend *frnd, uint16_t addr) in is_lpn_unicast() argument 95 if (frnd->lpn == BT_MESH_ADDR_UNASSIGNED) { in is_lpn_unicast() 99 return (addr >= frnd->lpn && addr < (frnd->lpn + frnd->num_elem)); in is_lpn_unicast() 109 for (i = 0; i < ARRAY_SIZE(bt_mesh.frnd); i++) { in bt_mesh_friend_find() 110 struct bt_mesh_friend *frnd = &bt_mesh.frnd[i]; in bt_mesh_friend_find() local 112 if (valid && !friend_is_allocated(frnd)) { in bt_mesh_friend_find() 116 if (established && !frnd->established) { in bt_mesh_friend_find() 121 (!frnd->subnet || frnd->subnet->net_idx != net_idx)) { in bt_mesh_friend_find() [all …]
|
D | lpn.c | 214 .addr = bt_mesh.lpn.frnd, in send_friend_clear() 238 uint16_t frnd = lpn->frnd; in clear_friendship() local 264 lpn->old_friend = lpn->frnd; in clear_friendship() 273 lpn->frnd = BT_MESH_ADDR_UNASSIGNED; in clear_friendship() 309 cb->terminated(net_idx, frnd); in clear_friendship() 437 cb->polled(lpn->sub->net_idx, lpn->frnd, retry); in req_send_end() 463 .addr = bt_mesh.lpn.frnd, in send_friend_poll() 621 lpn->frnd, lpn->lpn_counter, in friend_cred_create() 654 lpn->frnd = rx->ctx.addr; in bt_mesh_lpn_friend_offer() 666 lpn->frnd = BT_MESH_ADDR_UNASSIGNED; in bt_mesh_lpn_friend_offer() [all …]
|
D | net.h | 97 uint16_t frnd; /* Previous Friend's address */ member 131 uint16_t frnd; member 219 struct bt_mesh_friend frnd[CONFIG_BT_MESH_FRIEND_LPN_COUNT]; member
|
D | lpn.h | 29 return (addr == bt_mesh.lpn.frnd); in bt_mesh_lpn_match()
|
D | cfg.c | 32 uint8_t frnd; member 447 bt_mesh_friend_set(cfg.frnd); in cfg_set() 479 val.frnd = bt_mesh_friend_get(); in store_pending_cfg()
|
D | subnet.c | 919 for (i = 0; i < ARRAY_SIZE(bt_mesh.frnd); i++) { in bt_mesh_net_cred_find() 920 struct bt_mesh_friend *frnd = &bt_mesh.frnd[i]; in bt_mesh_net_cred_find() local 922 if (!frnd->subnet) { in bt_mesh_net_cred_find() 926 rx->sub = frnd->subnet; in bt_mesh_net_cred_find() 928 for (j = 0; j < ARRAY_SIZE(frnd->cred); j++) { in bt_mesh_net_cred_find() 933 if (cb(rx, in, out, &frnd->cred[j])) { in bt_mesh_net_cred_find()
|
D | cfg_srv.c | 2121 struct bt_mesh_friend *frnd; in lpn_timeout_get() local 2143 frnd = bt_mesh_friend_find(BT_MESH_KEY_ANY, lpn_addr, true, true); in lpn_timeout_get() 2144 if (!frnd) { in lpn_timeout_get() 2150 timeout_steps = frnd->poll_to / 100; in lpn_timeout_get()
|
D | net.c | 438 if (tx->friend_cred && bt_mesh.lpn.frnd) { in net_tx_cred_get()
|
D | transport.c | 999 if (rx->ctx.addr == bt_mesh.lpn.frnd) { in ctl_recv()
|
/Zephyr-latest/subsys/bluetooth/mesh/shell/ |
D | cfg.c | 362 uint8_t frnd; in cmd_friend() local 367 bt_mesh_shell_target_ctx.dst, &frnd); in cmd_friend() 377 bt_mesh_shell_target_ctx.dst, val, &frnd); in cmd_friend() 385 shell_print(sh, "Friend is set to 0x%02x", frnd); in cmd_friend()
|