Lines Matching refs:src
57 if (!rpl->src) { in clear_rpl()
63 snprintk(path, sizeof(path), "bt/mesh/RPL/%x", rpl->src); in clear_rpl()
95 rpl->src = rx->ctx.addr; in bt_mesh_rpl_update()
129 if (!rpl->src) { in bt_mesh_rpl_check()
134 if (rpl->src == rx->ctx.addr) { in bt_mesh_rpl_check()
186 static struct bt_mesh_rpl *bt_mesh_rpl_find(uint16_t src) in bt_mesh_rpl_find() argument
191 if (replay_list[i].src == src) { in bt_mesh_rpl_find()
199 static struct bt_mesh_rpl *bt_mesh_rpl_alloc(uint16_t src) in bt_mesh_rpl_alloc() argument
204 if (!replay_list[i].src) { in bt_mesh_rpl_alloc()
205 replay_list[i].src = src; in bt_mesh_rpl_alloc()
224 if (!rpl->src) { in bt_mesh_rpl_reset()
246 if (rpl->src) { in bt_mesh_rpl_reset()
273 uint16_t src; in rpl_set() local
280 src = strtol(name, NULL, 16); in rpl_set()
281 entry = bt_mesh_rpl_find(src); in rpl_set()
288 LOG_WRN("Unable to find RPL entry for 0x%04x", src); in rpl_set()
295 entry = bt_mesh_rpl_alloc(src); in rpl_set()
297 LOG_ERR("Unable to allocate RPL entry for 0x%04x", src); in rpl_set()
311 LOG_DBG("RPL entry for 0x%04x: Seq 0x%06x old_iv %u", entry->src, entry->seq, in rpl_set()
325 if (!entry->src) { in store_rpl()
329 LOG_DBG("src 0x%04x seq 0x%06x old_iv %u", entry->src, entry->seq, entry->old_iv); in store_rpl()
334 snprintk(path, sizeof(path), "bt/mesh/RPL/%x", entry->src); in store_rpl()
367 if (addr != BT_MESH_ADDR_ALL_NODES && addr != rpl->src) { in bt_mesh_rpl_pending_store()