aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/drm_hashtab.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2007-07-11 20:26:44 -0400
committerDave Airlie <airlied@linux.ie>2007-07-11 20:26:44 -0400
commite0be428e6645f2891fab6be92d1b0e9aad972e7d (patch)
treecf071bb45d7f043da0ed28bde707daa3a6dce4f5 /drivers/char/drm/drm_hashtab.h
parent9698b4dba42eb758ad98012c21e5fbdb372fe2d9 (diff)
drm: detypedef the hashtab and more of sman
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drm_hashtab.h')
-rw-r--r--drivers/char/drm/drm_hashtab.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/char/drm/drm_hashtab.h b/drivers/char/drm/drm_hashtab.h
index 613091c970af..0f1376774168 100644
--- a/drivers/char/drm/drm_hashtab.h
+++ b/drivers/char/drm/drm_hashtab.h
@@ -37,31 +37,31 @@
37 37
38#define drm_hash_entry(_ptr, _type, _member) container_of(_ptr, _type, _member) 38#define drm_hash_entry(_ptr, _type, _member) container_of(_ptr, _type, _member)
39 39
40typedef struct drm_hash_item{ 40struct drm_hash_item {
41 struct hlist_node head; 41 struct hlist_node head;
42 unsigned long key; 42 unsigned long key;
43} drm_hash_item_t; 43};
44 44
45typedef struct drm_open_hash{ 45struct drm_open_hash {
46 unsigned int size; 46 unsigned int size;
47 unsigned int order; 47 unsigned int order;
48 unsigned int fill; 48 unsigned int fill;
49 struct hlist_head *table; 49 struct hlist_head *table;
50 int use_vmalloc; 50 int use_vmalloc;
51} drm_open_hash_t; 51};
52 52
53 53
54extern int drm_ht_create(drm_open_hash_t *ht, unsigned int order); 54extern int drm_ht_create(struct drm_open_hash *ht, unsigned int order);
55extern int drm_ht_insert_item(drm_open_hash_t *ht, drm_hash_item_t *item); 55extern int drm_ht_insert_item(struct drm_open_hash *ht, struct drm_hash_item *item);
56extern int drm_ht_just_insert_please(drm_open_hash_t *ht, drm_hash_item_t *item, 56extern int drm_ht_just_insert_please(struct drm_open_hash *ht, struct drm_hash_item *item,
57 unsigned long seed, int bits, int shift, 57 unsigned long seed, int bits, int shift,
58 unsigned long add); 58 unsigned long add);
59extern int drm_ht_find_item(drm_open_hash_t *ht, unsigned long key, drm_hash_item_t **item); 59extern int drm_ht_find_item(struct drm_open_hash *ht, unsigned long key, struct drm_hash_item **item);
60 60
61extern void drm_ht_verbose_list(drm_open_hash_t *ht, unsigned long key); 61extern void drm_ht_verbose_list(struct drm_open_hash *ht, unsigned long key);
62extern int drm_ht_remove_key(drm_open_hash_t *ht, unsigned long key); 62extern int drm_ht_remove_key(struct drm_open_hash *ht, unsigned long key);
63extern int drm_ht_remove_item(drm_open_hash_t *ht, drm_hash_item_t *item); 63extern int drm_ht_remove_item(struct drm_open_hash *ht, struct drm_hash_item *item);
64extern void drm_ht_remove(drm_open_hash_t *ht); 64extern void drm_ht_remove(struct drm_open_hash *ht);
65 65
66 66
67#endif 67#endif