Lines Matching refs:ventry

183 	struct mlxsw_sp_acl_tcam_ventry *ventry;  member
1029 struct mlxsw_sp_acl_tcam_ventry *ventry, in mlxsw_sp_acl_tcam_entry_create() argument
1039 entry->ventry = ventry; in mlxsw_sp_acl_tcam_entry_create()
1043 entry->priv, ventry->rulei); in mlxsw_sp_acl_tcam_entry_create()
1089 struct mlxsw_sp_acl_tcam_ventry *ventry, in mlxsw_sp_acl_tcam_ventry_add() argument
1101 ventry->vchunk = vchunk; in mlxsw_sp_acl_tcam_ventry_add()
1102 ventry->rulei = rulei; in mlxsw_sp_acl_tcam_ventry_add()
1106 ventry->entry = mlxsw_sp_acl_tcam_entry_create(mlxsw_sp, ventry, in mlxsw_sp_acl_tcam_ventry_add()
1108 if (IS_ERR(ventry->entry)) { in mlxsw_sp_acl_tcam_ventry_add()
1110 err = PTR_ERR(ventry->entry); in mlxsw_sp_acl_tcam_ventry_add()
1114 list_add_tail(&ventry->list, &vchunk->ventry_list); in mlxsw_sp_acl_tcam_ventry_add()
1126 struct mlxsw_sp_acl_tcam_ventry *ventry) in mlxsw_sp_acl_tcam_ventry_del() argument
1128 struct mlxsw_sp_acl_tcam_vchunk *vchunk = ventry->vchunk; in mlxsw_sp_acl_tcam_ventry_del()
1133 list_del(&ventry->list); in mlxsw_sp_acl_tcam_ventry_del()
1134 mlxsw_sp_acl_tcam_entry_destroy(mlxsw_sp, ventry->entry); in mlxsw_sp_acl_tcam_ventry_del()
1141 struct mlxsw_sp_acl_tcam_ventry *ventry, in mlxsw_sp_acl_tcam_ventry_action_replace() argument
1144 struct mlxsw_sp_acl_tcam_vchunk *vchunk = ventry->vchunk; in mlxsw_sp_acl_tcam_ventry_action_replace()
1148 ventry->entry, rulei); in mlxsw_sp_acl_tcam_ventry_action_replace()
1153 struct mlxsw_sp_acl_tcam_ventry *ventry, in mlxsw_sp_acl_tcam_ventry_activity_get() argument
1157 ventry->entry, activity); in mlxsw_sp_acl_tcam_ventry_activity_get()
1162 struct mlxsw_sp_acl_tcam_ventry *ventry, in mlxsw_sp_acl_tcam_ventry_migrate() argument
1169 if (ventry->entry->chunk == chunk) in mlxsw_sp_acl_tcam_ventry_migrate()
1175 new_entry = mlxsw_sp_acl_tcam_entry_create(mlxsw_sp, ventry, chunk); in mlxsw_sp_acl_tcam_ventry_migrate()
1178 mlxsw_sp_acl_tcam_entry_destroy(mlxsw_sp, ventry->entry); in mlxsw_sp_acl_tcam_ventry_migrate()
1179 ventry->entry = new_entry; in mlxsw_sp_acl_tcam_ventry_migrate()
1219 struct mlxsw_sp_acl_tcam_ventry *ventry; in mlxsw_sp_acl_tcam_vchunk_migrate_one() local
1236 ventry = ctx->start_ventry; in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1238 ventry = list_first_entry(&vchunk->ventry_list, in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1239 typeof(*ventry), list); in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1241 list_for_each_entry_from(ventry, &vchunk->ventry_list, list) { in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1245 if (ventry == ctx->stop_ventry) in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1248 err = mlxsw_sp_acl_tcam_ventry_migrate(mlxsw_sp, ventry, in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1255 ctx->start_ventry = ventry; in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1269 ctx->stop_ventry = ventry; in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1276 ctx->start_ventry = ventry; in mlxsw_sp_acl_tcam_vchunk_migrate_one()
1653 struct mlxsw_sp_acl_tcam_ventry ventry; member
1723 &rule->ventry, rulei); in mlxsw_sp_acl_tcam_flower_rule_add()
1731 mlxsw_sp_acl_tcam_ventry_del(mlxsw_sp, &rule->ventry); in mlxsw_sp_acl_tcam_flower_rule_del()
1748 return mlxsw_sp_acl_tcam_ventry_activity_get(mlxsw_sp, &rule->ventry, in mlxsw_sp_acl_tcam_flower_rule_activity_get()
1772 struct mlxsw_sp_acl_tcam_ventry ventry; member
1858 &rule->ventry, rulei); in mlxsw_sp_acl_tcam_mr_rule_add()
1866 mlxsw_sp_acl_tcam_ventry_del(mlxsw_sp, &rule->ventry); in mlxsw_sp_acl_tcam_mr_rule_del()
1876 return mlxsw_sp_acl_tcam_ventry_action_replace(mlxsw_sp, &rule->ventry, in mlxsw_sp_acl_tcam_mr_rule_action_replace()