Lines Matching refs:lpn_addr
102 struct bt_mesh_friend *bt_mesh_friend_find(uint16_t net_idx, uint16_t lpn_addr, in bt_mesh_friend_find() argument
107 LOG_DBG("net_idx 0x%04x lpn_addr 0x%04x", net_idx, lpn_addr); in bt_mesh_friend_find()
125 if (is_lpn_unicast(frnd, lpn_addr)) { in bt_mesh_friend_find()
253 uint16_t lpn_addr, lpn_counter; in bt_mesh_friend_clear() local
267 lpn_addr = sys_be16_to_cpu(msg->lpn_addr); in bt_mesh_friend_clear()
270 LOG_DBG("LPN addr 0x%04x counter 0x%04x", lpn_addr, lpn_counter); in bt_mesh_friend_clear()
272 frnd = bt_mesh_friend_find(rx->sub->net_idx, lpn_addr, false, false); in bt_mesh_friend_clear()
274 LOG_WRN("No matching LPN addr 0x%04x", lpn_addr); in bt_mesh_friend_clear()
291 cfm.lpn_addr = msg->lpn_addr; in bt_mesh_friend_clear()
824 .lpn_addr = sys_cpu_to_be16(frnd->lpn), in send_friend_clear()
873 uint16_t lpn_addr, lpn_counter; in bt_mesh_friend_clear_cfm() local
888 lpn_addr = sys_be16_to_cpu(msg->lpn_addr); in bt_mesh_friend_clear_cfm()
889 if (lpn_addr != frnd->lpn) { in bt_mesh_friend_clear_cfm()
890 LOG_WRN("LPN address mismatch (0x%04x != 0x%04x)", lpn_addr, frnd->lpn); in bt_mesh_friend_clear_cfm()
1776 int bt_mesh_friend_terminate(uint16_t lpn_addr) in bt_mesh_friend_terminate() argument
1780 frnd = bt_mesh_friend_find(BT_MESH_KEY_ANY, lpn_addr, false, false); in bt_mesh_friend_terminate()