Lines Matching refs:ventry

246 	struct mlxsw_sp_acl_tcam_ventry *ventry;  member
1127 struct mlxsw_sp_acl_tcam_ventry *ventry, in mlxsw_sp_acl_tcam_entry_create() argument
1137 entry->ventry = ventry; in mlxsw_sp_acl_tcam_entry_create()
1141 entry->priv, ventry->rulei); in mlxsw_sp_acl_tcam_entry_create()
1187 struct mlxsw_sp_acl_tcam_ventry *ventry, in mlxsw_sp_acl_tcam_ventry_add() argument
1199 ventry->vchunk = vchunk; in mlxsw_sp_acl_tcam_ventry_add()
1200 ventry->rulei = rulei; in mlxsw_sp_acl_tcam_ventry_add()
1204 ventry->entry = mlxsw_sp_acl_tcam_entry_create(mlxsw_sp, ventry, in mlxsw_sp_acl_tcam_ventry_add()
1206 if (IS_ERR(ventry->entry)) { in mlxsw_sp_acl_tcam_ventry_add()
1208 err = PTR_ERR(ventry->entry); in mlxsw_sp_acl_tcam_ventry_add()
1212 list_add_tail(&ventry->list, &vchunk->ventry_list); in mlxsw_sp_acl_tcam_ventry_add()
1224 struct mlxsw_sp_acl_tcam_ventry *ventry) in mlxsw_sp_acl_tcam_ventry_del() argument
1226 struct mlxsw_sp_acl_tcam_vchunk *vchunk = ventry->vchunk; in mlxsw_sp_acl_tcam_ventry_del()
1231 list_del(&ventry->list); in mlxsw_sp_acl_tcam_ventry_del()
1232 mlxsw_sp_acl_tcam_entry_destroy(mlxsw_sp, ventry->entry); in mlxsw_sp_acl_tcam_ventry_del()
1239 struct mlxsw_sp_acl_tcam_ventry *ventry, in mlxsw_sp_acl_tcam_ventry_action_replace() argument
1242 struct mlxsw_sp_acl_tcam_vchunk *vchunk = ventry->vchunk; in mlxsw_sp_acl_tcam_ventry_action_replace()
1246 ventry->entry, rulei); in mlxsw_sp_acl_tcam_ventry_action_replace()
1251 struct mlxsw_sp_acl_tcam_ventry *ventry, in mlxsw_sp_acl_tcam_ventry_activity_get() argument
1255 ventry->entry, activity); in mlxsw_sp_acl_tcam_ventry_activity_get()
1260 struct mlxsw_sp_acl_tcam_ventry *ventry, in mlxsw_sp_acl_tcam_ventry_migrate() argument
1267 if (ventry->entry->chunk == chunk) in mlxsw_sp_acl_tcam_ventry_migrate()
1273 new_entry = mlxsw_sp_acl_tcam_entry_create(mlxsw_sp, ventry, chunk); in mlxsw_sp_acl_tcam_ventry_migrate()
1276 mlxsw_sp_acl_tcam_entry_destroy(mlxsw_sp, ventry->entry); in mlxsw_sp_acl_tcam_ventry_migrate()
1277 ventry->entry = new_entry; in mlxsw_sp_acl_tcam_ventry_migrate()
1317 struct mlxsw_sp_acl_tcam_ventry *ventry; in mlxsw_sp_acl_tcam_vchunk_migrate_one() local
1334 ventry = ctx->start_ventry; in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1336 ventry = list_first_entry(&vchunk->ventry_list, in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1337 typeof(*ventry), list); in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1339 list_for_each_entry_from(ventry, &vchunk->ventry_list, list) { in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1343 if (ventry == ctx->stop_ventry) in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1346 err = mlxsw_sp_acl_tcam_ventry_migrate(mlxsw_sp, ventry, in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1353 ctx->start_ventry = ventry; in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1367 ctx->stop_ventry = ventry; in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1374 ctx->start_ventry = ventry; in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1602 struct mlxsw_sp_acl_tcam_ventry ventry; member
1672 &rule->ventry, rulei); in mlxsw_sp_acl_tcam_flower_rule_add()
1680 mlxsw_sp_acl_tcam_ventry_del(mlxsw_sp, &rule->ventry); in mlxsw_sp_acl_tcam_flower_rule_del()
1697 return mlxsw_sp_acl_tcam_ventry_activity_get(mlxsw_sp, &rule->ventry, in mlxsw_sp_acl_tcam_flower_rule_activity_get()
1721 struct mlxsw_sp_acl_tcam_ventry ventry; member
1807 &rule->ventry, rulei); in mlxsw_sp_acl_tcam_mr_rule_add()
1815 mlxsw_sp_acl_tcam_ventry_del(mlxsw_sp, &rule->ventry); in mlxsw_sp_acl_tcam_mr_rule_del()
1825 return mlxsw_sp_acl_tcam_ventry_action_replace(mlxsw_sp, &rule->ventry, in mlxsw_sp_acl_tcam_mr_rule_action_replace()
1835 return mlxsw_sp_acl_tcam_ventry_activity_get(mlxsw_sp, &rule->ventry, in mlxsw_sp_acl_tcam_mr_rule_activity_get()