Lines Matching refs:net_idx2

177 		if (brg_tbl[i].net_idx1 == sub->net_idx || brg_tbl[i].net_idx2 == sub->net_idx) {  in brg_tbl_netkey_removed_evt()
231 static bool netkey_check(uint16_t net_idx1, uint16_t net_idx2) in netkey_check() argument
233 return bt_mesh_subnet_get(net_idx1) && bt_mesh_subnet_get(net_idx2); in netkey_check()
236 int bt_mesh_brg_cfg_tbl_add(uint8_t direction, uint16_t net_idx1, uint16_t net_idx2, uint16_t addr1, in bt_mesh_brg_cfg_tbl_add() argument
240 if (!BT_MESH_ADDR_IS_UNICAST(addr1) || net_idx1 == net_idx2 || addr1 == addr2 || in bt_mesh_brg_cfg_tbl_add()
241 net_idx1 > BT_MESH_BRG_CFG_KEY_INDEX_MAX || net_idx2 > BT_MESH_BRG_CFG_KEY_INDEX_MAX) { in bt_mesh_brg_cfg_tbl_add()
255 if (!netkey_check(net_idx1, net_idx2)) { in bt_mesh_brg_cfg_tbl_add()
267 if (brg_tbl[i].net_idx1 == net_idx1 && brg_tbl[i].net_idx2 == net_idx2 && in bt_mesh_brg_cfg_tbl_add()
283 brg_tbl[bt_mesh_brg_cfg_row_cnt].net_idx2 = net_idx2; in bt_mesh_brg_cfg_tbl_add()
306 cb(brg_tbl[i].net_idx2, user_data); in bt_mesh_brg_cfg_tbl_foreach_subnet()
308 brg_tbl[i].net_idx2 == net_idx && brg_tbl[i].addr2 == src && in bt_mesh_brg_cfg_tbl_foreach_subnet()
315 int bt_mesh_brg_cfg_tbl_remove(uint16_t net_idx1, uint16_t net_idx2, uint16_t addr1, uint16_t addr2, in bt_mesh_brg_cfg_tbl_remove() argument
326 if (net_idx1 == net_idx2 || net_idx1 > BT_MESH_BRG_CFG_KEY_INDEX_MAX || in bt_mesh_brg_cfg_tbl_remove()
327 net_idx2 > BT_MESH_BRG_CFG_KEY_INDEX_MAX) { in bt_mesh_brg_cfg_tbl_remove()
331 if (!netkey_check(net_idx1, net_idx2)) { in bt_mesh_brg_cfg_tbl_remove()
346 if (!(brg_tbl[i].net_idx1 == net_idx1 && brg_tbl[i].net_idx2 == net_idx2)) { in bt_mesh_brg_cfg_tbl_remove()