Lines Matching refs:ventry

187 	struct mlxsw_sp_acl_tcam_ventry *ventry;  member
1050 struct mlxsw_sp_acl_tcam_ventry *ventry, in mlxsw_sp_acl_tcam_entry_create() argument
1060 entry->ventry = ventry; in mlxsw_sp_acl_tcam_entry_create()
1064 entry->priv, ventry->rulei); in mlxsw_sp_acl_tcam_entry_create()
1110 struct mlxsw_sp_acl_tcam_ventry *ventry, in mlxsw_sp_acl_tcam_ventry_add() argument
1122 ventry->vchunk = vchunk; in mlxsw_sp_acl_tcam_ventry_add()
1123 ventry->rulei = rulei; in mlxsw_sp_acl_tcam_ventry_add()
1127 ventry->entry = mlxsw_sp_acl_tcam_entry_create(mlxsw_sp, ventry, in mlxsw_sp_acl_tcam_ventry_add()
1129 if (IS_ERR(ventry->entry)) { in mlxsw_sp_acl_tcam_ventry_add()
1131 err = PTR_ERR(ventry->entry); in mlxsw_sp_acl_tcam_ventry_add()
1135 list_add_tail(&ventry->list, &vchunk->ventry_list); in mlxsw_sp_acl_tcam_ventry_add()
1147 struct mlxsw_sp_acl_tcam_ventry *ventry) in mlxsw_sp_acl_tcam_ventry_del() argument
1149 struct mlxsw_sp_acl_tcam_vchunk *vchunk = ventry->vchunk; in mlxsw_sp_acl_tcam_ventry_del()
1154 list_del(&ventry->list); in mlxsw_sp_acl_tcam_ventry_del()
1155 mlxsw_sp_acl_tcam_entry_destroy(mlxsw_sp, ventry->entry); in mlxsw_sp_acl_tcam_ventry_del()
1162 struct mlxsw_sp_acl_tcam_ventry *ventry, in mlxsw_sp_acl_tcam_ventry_action_replace() argument
1165 struct mlxsw_sp_acl_tcam_vchunk *vchunk = ventry->vchunk; in mlxsw_sp_acl_tcam_ventry_action_replace()
1169 ventry->entry, rulei); in mlxsw_sp_acl_tcam_ventry_action_replace()
1174 struct mlxsw_sp_acl_tcam_ventry *ventry, in mlxsw_sp_acl_tcam_ventry_activity_get() argument
1177 struct mlxsw_sp_acl_tcam_vregion *vregion = ventry->vchunk->vregion; in mlxsw_sp_acl_tcam_ventry_activity_get()
1181 err = mlxsw_sp_acl_tcam_entry_activity_get(mlxsw_sp, ventry->entry, in mlxsw_sp_acl_tcam_ventry_activity_get()
1189 struct mlxsw_sp_acl_tcam_ventry *ventry, in mlxsw_sp_acl_tcam_ventry_migrate() argument
1196 if (ventry->entry->chunk == chunk) in mlxsw_sp_acl_tcam_ventry_migrate()
1202 new_entry = mlxsw_sp_acl_tcam_entry_create(mlxsw_sp, ventry, chunk); in mlxsw_sp_acl_tcam_ventry_migrate()
1205 mlxsw_sp_acl_tcam_entry_destroy(mlxsw_sp, ventry->entry); in mlxsw_sp_acl_tcam_ventry_migrate()
1206 ventry->entry = new_entry; in mlxsw_sp_acl_tcam_ventry_migrate()
1248 struct mlxsw_sp_acl_tcam_ventry *ventry; in mlxsw_sp_acl_tcam_vchunk_migrate_one() local
1268 ventry = ctx->start_ventry; in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1270 ventry = list_first_entry(&vchunk->ventry_list, in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1271 typeof(*ventry), list); in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1273 WARN_ON(ventry->vchunk != vchunk); in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1275 list_for_each_entry_from(ventry, &vchunk->ventry_list, list) { in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1279 if (ventry == ctx->stop_ventry) in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1282 err = mlxsw_sp_acl_tcam_ventry_migrate(mlxsw_sp, ventry, in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1289 ctx->start_ventry = ventry; in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1303 ctx->stop_ventry = ventry; in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1310 ctx->start_ventry = ventry; in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1683 struct mlxsw_sp_acl_tcam_ventry ventry; member
1753 &rule->ventry, rulei); in mlxsw_sp_acl_tcam_flower_rule_add()
1761 mlxsw_sp_acl_tcam_ventry_del(mlxsw_sp, &rule->ventry); in mlxsw_sp_acl_tcam_flower_rule_del()
1778 return mlxsw_sp_acl_tcam_ventry_activity_get(mlxsw_sp, &rule->ventry, in mlxsw_sp_acl_tcam_flower_rule_activity_get()
1802 struct mlxsw_sp_acl_tcam_ventry ventry; member
1888 &rule->ventry, rulei); in mlxsw_sp_acl_tcam_mr_rule_add()
1896 mlxsw_sp_acl_tcam_ventry_del(mlxsw_sp, &rule->ventry); in mlxsw_sp_acl_tcam_mr_rule_del()
1906 return mlxsw_sp_acl_tcam_ventry_action_replace(mlxsw_sp, &rule->ventry, in mlxsw_sp_acl_tcam_mr_rule_action_replace()