Lines Matching refs:mall_tc_entry

1356 	struct dsa_mall_tc_entry *mall_tc_entry;  in dsa_user_mall_tc_entry_find()  local
1358 list_for_each_entry(mall_tc_entry, &p->mall_tc_list, list) in dsa_user_mall_tc_entry_find()
1359 if (mall_tc_entry->cookie == cookie) in dsa_user_mall_tc_entry_find()
1360 return mall_tc_entry; in dsa_user_mall_tc_entry_find()
1374 struct dsa_mall_tc_entry *mall_tc_entry; in dsa_user_add_cls_matchall_mirred() local
1403 mall_tc_entry = kzalloc(sizeof(*mall_tc_entry), GFP_KERNEL); in dsa_user_add_cls_matchall_mirred()
1404 if (!mall_tc_entry) in dsa_user_add_cls_matchall_mirred()
1407 mall_tc_entry->cookie = cls->cookie; in dsa_user_add_cls_matchall_mirred()
1408 mall_tc_entry->type = DSA_PORT_MALL_MIRROR; in dsa_user_add_cls_matchall_mirred()
1409 mirror = &mall_tc_entry->mirror; in dsa_user_add_cls_matchall_mirred()
1415 kfree(mall_tc_entry); in dsa_user_add_cls_matchall_mirred()
1419 list_add_tail(&mall_tc_entry->list, &p->mall_tc_list); in dsa_user_add_cls_matchall_mirred()
1433 struct dsa_mall_tc_entry *mall_tc_entry; in dsa_user_add_cls_matchall_police() local
1454 list_for_each_entry(mall_tc_entry, &p->mall_tc_list, list) { in dsa_user_add_cls_matchall_police()
1455 if (mall_tc_entry->type == DSA_PORT_MALL_POLICER) { in dsa_user_add_cls_matchall_police()
1464 mall_tc_entry = kzalloc(sizeof(*mall_tc_entry), GFP_KERNEL); in dsa_user_add_cls_matchall_police()
1465 if (!mall_tc_entry) in dsa_user_add_cls_matchall_police()
1468 mall_tc_entry->cookie = cls->cookie; in dsa_user_add_cls_matchall_police()
1469 mall_tc_entry->type = DSA_PORT_MALL_POLICER; in dsa_user_add_cls_matchall_police()
1470 policer = &mall_tc_entry->policer; in dsa_user_add_cls_matchall_police()
1476 kfree(mall_tc_entry); in dsa_user_add_cls_matchall_police()
1480 list_add_tail(&mall_tc_entry->list, &p->mall_tc_list); in dsa_user_add_cls_matchall_police()
1506 struct dsa_mall_tc_entry *mall_tc_entry; in dsa_user_del_cls_matchall() local
1509 mall_tc_entry = dsa_user_mall_tc_entry_find(dev, cls->cookie); in dsa_user_del_cls_matchall()
1510 if (!mall_tc_entry) in dsa_user_del_cls_matchall()
1513 list_del(&mall_tc_entry->list); in dsa_user_del_cls_matchall()
1515 switch (mall_tc_entry->type) { in dsa_user_del_cls_matchall()
1519 &mall_tc_entry->mirror); in dsa_user_del_cls_matchall()
1529 kfree(mall_tc_entry); in dsa_user_del_cls_matchall()