Displaying 7 results from an estimated 7 matches for "cur_idx".
2018 Apr 18
0
[PATCH 2/2] qxl: keep separate release_bo pointer
...se_bo;
+ (*release)->release_bo = bo;
(*release)->release_offset = create_rel->release_offset + 64;
qxl_release_list_add(*release, bo);
@@ -365,6 +366,7 @@ int qxl_alloc_release_reserved(struct qxl_device *qdev, unsigned long size,
bo = qxl_bo_ref(qdev->current_release_bo[cur_idx]);
+ (*release)->release_bo = bo;
(*release)->release_offset = qdev->current_release_bo_offset[cur_idx] * release_size_per_bo[cur_idx];
qdev->current_release_bo_offset[cur_idx]++;
@@ -408,8 +410,7 @@ union qxl_release_info *qxl_release_map(struct qxl_device *qdev,
{
void *ptr...
2007 May 29
0
Fw: [RFC] makedumpfile: xen extraction
...domain);
+ for (i = 0; i < info->num_domain; i++) {
+ MSG(" %u: %x: %lx\n", info->domain_list[i].domain_id,
+ info->domain_list[i].pickled_id,
+ info->domain_list[i].domain_addr);
+ }
+}
+
+int
+allocated_in_map(struct DumpInfo *info, unsigned long pfn)
+{
+ static int cur_idx = -1;
+ static unsigned long cur_word;
+ int idx;
+
+ idx = pfn / PAGES_PER_MAPWORD;
+ if (idx != cur_idx) {
+ if (!readmem_xen(info, info->alloc_bitmap + idx * sizeof(unsigned long),
+ &cur_word, sizeof(cur_word), "Can''t access alloc_bitmap.\n"))
+ return 0;
+ cur_i...
2014 Jul 09
0
[PATCH 10/17] drm/qxl: rework to new fence interface
...@@ int qxl_alloc_release_reserved(struct qxl_device *qdev, unsigned long size,
}
idr_ret = qxl_release_alloc(qdev, type, release);
+ if (idr_ret < 0) {
+ if (rbo)
+ *rbo = NULL;
+ return idr_ret;
+ }
mutex_lock(&qdev->release_mutex);
if (qdev->current_release_bo_offset[cur_idx] + 1 >= releases_per_bo[cur_idx]) {
@@ -319,12 +428,13 @@ void qxl_release_unmap(struct qxl_device *qdev,
void qxl_release_fence_buffer_objects(struct qxl_release *release)
{
- struct ttm_validate_buffer *entry;
struct ttm_buffer_object *bo;
struct ttm_bo_global *glob;
struct ttm_bo_de...
2008 Jan 08
0
9 commits - configure.ac test/custom test/Makefile.am test/swfdec_test_initialize.as test/swfdec_test_initialize.h test/swfdec_test_test.c test/trace
..._return_if_fail (inter != NULL);
-
- g_array_free (inter->commands, TRUE);
- g_free (inter);
-}
-
-void
-swfdec_interaction_reset (SwfdecInteraction *inter)
-{
- g_return_if_fail (inter != NULL);
-
- inter->mouse_x = 0;
- inter->mouse_y = 0;
- inter->mouse_button = 0;
- inter->cur_idx = 0;
- inter->time_elapsed = 0;
-}
-
-static void
-swfdec_interaction_scanner_message (GScanner *scanner, gchar *message, gboolean error)
-{
- if (!error)
- g_printerr ("warning: %s\n", message);
- g_set_error (scanner->user_data, G_FILE_ERROR, G_FILE_ERROR_FAILED, "%s&qu...
2014 May 14
17
[RFC PATCH v1 00/16] Convert all ttm drivers to use the new reservation interface
This series depends on the previously posted reservation api patches.
2 of them are not yet in for-next-fences branch of
git://git.linaro.org/people/sumit.semwal/linux-3.x.git
The missing patches are still in my vmwgfx_wip branch at
git://people.freedesktop.org/~mlankhorst/linux
All ttm drivers are converted to the fence api, fence_lock is removed
and rcu is used in its place.
qxl is the first
2014 Jul 31
19
[PATCH 01/19] fence: add debugging lines to fence_is_signaled for the callback
fence_is_signaled callback should support being run in
atomic context, but not in irq context.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at canonical.com>
---
include/linux/fence.h | 23 +++++++++++++++++++----
1 file changed, 19 insertions(+), 4 deletions(-)
diff --git a/include/linux/fence.h b/include/linux/fence.h
index d174585b874b..c1a4519ba2f5 100644
---
2014 Jul 09
22
[PATCH 00/17] Convert TTM to the new fence interface.
This series applies on top of the driver-core-next branch of
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git
Before converting ttm to the new fence interface I had to fix some
drivers to require a reservation before poking with fence_obj.
After flipping the switch RCU becomes available instead, and
the extra reservations can be dropped again. :-)
I've done at least basic