Lines Matching refs:ventry

133 	struct mlxsw_sp_acl_tcam_ventry *start_ventry; /* ventry to start
138 struct mlxsw_sp_acl_tcam_ventry *stop_ventry; /* ventry to stop
187 struct mlxsw_sp_acl_tcam_ventry *ventry;
750 * under rehash migration, we have to reset the ventry pointers
1050 struct mlxsw_sp_acl_tcam_ventry *ventry,
1060 entry->ventry = ventry;
1064 entry->priv, ventry->rulei);
1110 struct mlxsw_sp_acl_tcam_ventry *ventry,
1122 ventry->vchunk = vchunk;
1123 ventry->rulei = rulei;
1127 ventry->entry = mlxsw_sp_acl_tcam_entry_create(mlxsw_sp, ventry,
1129 if (IS_ERR(ventry->entry)) {
1131 err = PTR_ERR(ventry->entry);
1135 list_add_tail(&ventry->list, &vchunk->ventry_list);
1147 struct mlxsw_sp_acl_tcam_ventry *ventry)
1149 struct mlxsw_sp_acl_tcam_vchunk *vchunk = ventry->vchunk;
1154 list_del(&ventry->list);
1155 mlxsw_sp_acl_tcam_entry_destroy(mlxsw_sp, ventry->entry);
1162 struct mlxsw_sp_acl_tcam_ventry *ventry,
1165 struct mlxsw_sp_acl_tcam_vchunk *vchunk = ventry->vchunk;
1169 ventry->entry, rulei);
1174 struct mlxsw_sp_acl_tcam_ventry *ventry,
1177 struct mlxsw_sp_acl_tcam_vregion *vregion = ventry->vchunk->vregion;
1181 err = mlxsw_sp_acl_tcam_entry_activity_get(mlxsw_sp, ventry->entry,
1189 struct mlxsw_sp_acl_tcam_ventry *ventry,
1196 if (ventry->entry->chunk == chunk)
1202 new_entry = mlxsw_sp_acl_tcam_entry_create(mlxsw_sp, ventry, chunk);
1205 mlxsw_sp_acl_tcam_entry_destroy(mlxsw_sp, ventry->entry);
1206 ventry->entry = new_entry;
1248 struct mlxsw_sp_acl_tcam_ventry *ventry;
1264 /* If the migration got interrupted, we have the ventry to start from
1268 ventry = ctx->start_ventry;
1270 ventry = list_first_entry(&vchunk->ventry_list,
1271 typeof(*ventry), list);
1273 WARN_ON(ventry->vchunk != vchunk);
1275 list_for_each_entry_from(ventry, &vchunk->ventry_list, list) {
1276 /* During rollback, once we reach the ventry that failed
1279 if (ventry == ctx->stop_ventry)
1282 err = mlxsw_sp_acl_tcam_ventry_migrate(mlxsw_sp, ventry,
1286 /* Save the ventry which we ended with and try
1289 ctx->start_ventry = ventry;
1300 * at the current ventry.
1303 ctx->stop_ventry = ventry;
1307 * will be migrated later. Save the ventry
1310 ctx->start_ventry = ventry;
1684 struct mlxsw_sp_acl_tcam_ventry ventry;
1754 &rule->ventry, rulei);
1762 mlxsw_sp_acl_tcam_ventry_del(mlxsw_sp, &rule->ventry);
1779 return mlxsw_sp_acl_tcam_ventry_activity_get(mlxsw_sp, &rule->ventry,
1803 struct mlxsw_sp_acl_tcam_ventry ventry;
1889 &rule->ventry, rulei);
1897 mlxsw_sp_acl_tcam_ventry_del(mlxsw_sp, &rule->ventry);
1907 return mlxsw_sp_acl_tcam_ventry_action_replace(mlxsw_sp, &rule->ventry,