diff options
author | Dave Airlie <airlied@linux.ie> | 2007-07-11 20:26:44 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-07-11 20:26:44 -0400 |
commit | e0be428e6645f2891fab6be92d1b0e9aad972e7d (patch) | |
tree | cf071bb45d7f043da0ed28bde707daa3a6dce4f5 /drivers/char/drm/drm_hashtab.h | |
parent | 9698b4dba42eb758ad98012c21e5fbdb372fe2d9 (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.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/char/drm/drm_hashtab.h b/drivers/char/drm/drm_hashtab.h index 613091c970a..0f137677416 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 | ||
40 | typedef struct drm_hash_item{ | 40 | struct 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 | ||
45 | typedef struct drm_open_hash{ | 45 | struct 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 | ||
54 | extern int drm_ht_create(drm_open_hash_t *ht, unsigned int order); | 54 | extern int drm_ht_create(struct drm_open_hash *ht, unsigned int order); |
55 | extern int drm_ht_insert_item(drm_open_hash_t *ht, drm_hash_item_t *item); | 55 | extern int drm_ht_insert_item(struct drm_open_hash *ht, struct drm_hash_item *item); |
56 | extern int drm_ht_just_insert_please(drm_open_hash_t *ht, drm_hash_item_t *item, | 56 | extern 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); |
59 | extern int drm_ht_find_item(drm_open_hash_t *ht, unsigned long key, drm_hash_item_t **item); | 59 | extern int drm_ht_find_item(struct drm_open_hash *ht, unsigned long key, struct drm_hash_item **item); |
60 | 60 | ||
61 | extern void drm_ht_verbose_list(drm_open_hash_t *ht, unsigned long key); | 61 | extern void drm_ht_verbose_list(struct drm_open_hash *ht, unsigned long key); |
62 | extern int drm_ht_remove_key(drm_open_hash_t *ht, unsigned long key); | 62 | extern int drm_ht_remove_key(struct drm_open_hash *ht, unsigned long key); |
63 | extern int drm_ht_remove_item(drm_open_hash_t *ht, drm_hash_item_t *item); | 63 | extern int drm_ht_remove_item(struct drm_open_hash *ht, struct drm_hash_item *item); |
64 | extern void drm_ht_remove(drm_open_hash_t *ht); | 64 | extern void drm_ht_remove(struct drm_open_hash *ht); |
65 | 65 | ||
66 | 66 | ||
67 | #endif | 67 | #endif |