Lines Matching refs:flood_domain
1208 struct prestera_flood_domain *flood_domain; in prestera_mdb_entry_create() local
1215 flood_domain = prestera_flood_domain_create(sw); in prestera_mdb_entry_create()
1216 if (!flood_domain) in prestera_mdb_entry_create()
1221 mdb_entry->flood_domain = flood_domain; in prestera_mdb_entry_create()
1230 prestera_flood_domain_destroy(flood_domain); in prestera_mdb_entry_create()
1240 prestera_flood_domain_destroy(mdb_entry->flood_domain); in prestera_mdb_entry_destroy()
1265 void prestera_flood_domain_destroy(struct prestera_flood_domain *flood_domain) in prestera_flood_domain_destroy() argument
1267 WARN_ON(!list_empty(&flood_domain->flood_domain_port_list)); in prestera_flood_domain_destroy()
1268 WARN_ON_ONCE(prestera_hw_flood_domain_destroy(flood_domain)); in prestera_flood_domain_destroy()
1269 kfree(flood_domain); in prestera_flood_domain_destroy()
1273 prestera_flood_domain_port_create(struct prestera_flood_domain *flood_domain, in prestera_flood_domain_port_create() argument
1289 if (list_empty(&flood_domain->flood_domain_port_list)) in prestera_flood_domain_port_create()
1293 &flood_domain->flood_domain_port_list); in prestera_flood_domain_port_create()
1295 flood_domain_port->flood_domain = flood_domain; in prestera_flood_domain_port_create()
1299 err = prestera_hw_flood_domain_ports_reset(flood_domain); in prestera_flood_domain_port_create()
1304 err = prestera_hw_flood_domain_ports_set(flood_domain); in prestera_flood_domain_port_create()
1320 struct prestera_flood_domain *flood_domain = port->flood_domain; in prestera_flood_domain_port_destroy() local
1324 WARN_ON_ONCE(prestera_hw_flood_domain_ports_reset(flood_domain)); in prestera_flood_domain_port_destroy()
1326 if (!list_empty(&flood_domain->flood_domain_port_list)) in prestera_flood_domain_port_destroy()
1327 WARN_ON_ONCE(prestera_hw_flood_domain_ports_set(flood_domain)); in prestera_flood_domain_port_destroy()
1333 prestera_flood_domain_port_find(struct prestera_flood_domain *flood_domain, in prestera_flood_domain_port_find() argument
1339 &flood_domain->flood_domain_port_list, in prestera_flood_domain_port_find()