Lines Matching refs:ventry

243 	struct mlxsw_sp_acl_tcam_ventry *ventry;  member
1124 struct mlxsw_sp_acl_tcam_ventry *ventry, in mlxsw_sp_acl_tcam_entry_create() argument
1134 entry->ventry = ventry; in mlxsw_sp_acl_tcam_entry_create()
1138 entry->priv, ventry->rulei); in mlxsw_sp_acl_tcam_entry_create()
1184 struct mlxsw_sp_acl_tcam_ventry *ventry, in mlxsw_sp_acl_tcam_ventry_add() argument
1196 ventry->vchunk = vchunk; in mlxsw_sp_acl_tcam_ventry_add()
1197 ventry->rulei = rulei; in mlxsw_sp_acl_tcam_ventry_add()
1201 ventry->entry = mlxsw_sp_acl_tcam_entry_create(mlxsw_sp, ventry, in mlxsw_sp_acl_tcam_ventry_add()
1203 if (IS_ERR(ventry->entry)) { in mlxsw_sp_acl_tcam_ventry_add()
1205 err = PTR_ERR(ventry->entry); in mlxsw_sp_acl_tcam_ventry_add()
1209 list_add_tail(&ventry->list, &vchunk->ventry_list); in mlxsw_sp_acl_tcam_ventry_add()
1221 struct mlxsw_sp_acl_tcam_ventry *ventry) in mlxsw_sp_acl_tcam_ventry_del() argument
1223 struct mlxsw_sp_acl_tcam_vchunk *vchunk = ventry->vchunk; in mlxsw_sp_acl_tcam_ventry_del()
1228 list_del(&ventry->list); in mlxsw_sp_acl_tcam_ventry_del()
1229 mlxsw_sp_acl_tcam_entry_destroy(mlxsw_sp, ventry->entry); in mlxsw_sp_acl_tcam_ventry_del()
1236 struct mlxsw_sp_acl_tcam_ventry *ventry, in mlxsw_sp_acl_tcam_ventry_action_replace() argument
1239 struct mlxsw_sp_acl_tcam_vchunk *vchunk = ventry->vchunk; in mlxsw_sp_acl_tcam_ventry_action_replace()
1243 ventry->entry, rulei); in mlxsw_sp_acl_tcam_ventry_action_replace()
1248 struct mlxsw_sp_acl_tcam_ventry *ventry, in mlxsw_sp_acl_tcam_ventry_activity_get() argument
1252 ventry->entry, activity); in mlxsw_sp_acl_tcam_ventry_activity_get()
1257 struct mlxsw_sp_acl_tcam_ventry *ventry, in mlxsw_sp_acl_tcam_ventry_migrate() argument
1264 if (ventry->entry->chunk == chunk) in mlxsw_sp_acl_tcam_ventry_migrate()
1270 new_entry = mlxsw_sp_acl_tcam_entry_create(mlxsw_sp, ventry, chunk); in mlxsw_sp_acl_tcam_ventry_migrate()
1273 mlxsw_sp_acl_tcam_entry_destroy(mlxsw_sp, ventry->entry); in mlxsw_sp_acl_tcam_ventry_migrate()
1274 ventry->entry = new_entry; in mlxsw_sp_acl_tcam_ventry_migrate()
1314 struct mlxsw_sp_acl_tcam_ventry *ventry; in mlxsw_sp_acl_tcam_vchunk_migrate_one() local
1331 ventry = ctx->start_ventry; in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1333 ventry = list_first_entry(&vchunk->ventry_list, in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1334 typeof(*ventry), list); in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1336 list_for_each_entry_from(ventry, &vchunk->ventry_list, list) { in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1340 if (ventry == ctx->stop_ventry) in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1343 err = mlxsw_sp_acl_tcam_ventry_migrate(mlxsw_sp, ventry, in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1350 ctx->start_ventry = ventry; in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1364 ctx->stop_ventry = ventry; in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1371 ctx->start_ventry = ventry; in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1599 struct mlxsw_sp_acl_tcam_ventry ventry; member
1669 &rule->ventry, rulei); in mlxsw_sp_acl_tcam_flower_rule_add()
1677 mlxsw_sp_acl_tcam_ventry_del(mlxsw_sp, &rule->ventry); in mlxsw_sp_acl_tcam_flower_rule_del()
1694 return mlxsw_sp_acl_tcam_ventry_activity_get(mlxsw_sp, &rule->ventry, in mlxsw_sp_acl_tcam_flower_rule_activity_get()
1718 struct mlxsw_sp_acl_tcam_ventry ventry; member
1804 &rule->ventry, rulei); in mlxsw_sp_acl_tcam_mr_rule_add()
1812 mlxsw_sp_acl_tcam_ventry_del(mlxsw_sp, &rule->ventry); in mlxsw_sp_acl_tcam_mr_rule_del()
1822 return mlxsw_sp_acl_tcam_ventry_action_replace(mlxsw_sp, &rule->ventry, in mlxsw_sp_acl_tcam_mr_rule_action_replace()