Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
drm_hashtab.h File Reference
#include <linux/list.h>

Go to the source code of this file.

Data Structures

struct  drm_hash_item
 
struct  drm_open_hash
 

Macros

#define drm_hash_entry(_ptr, _type, _member)   container_of(_ptr, _type, _member)
 

Functions

int drm_ht_create (struct drm_open_hash *ht, unsigned int order)
 
int drm_ht_insert_item (struct drm_open_hash *ht, struct drm_hash_item *item)
 
int drm_ht_just_insert_please (struct drm_open_hash *ht, struct drm_hash_item *item, unsigned long seed, int bits, int shift, unsigned long add)
 
int drm_ht_find_item (struct drm_open_hash *ht, unsigned long key, struct drm_hash_item **item)
 
void drm_ht_verbose_list (struct drm_open_hash *ht, unsigned long key)
 
int drm_ht_remove_key (struct drm_open_hash *ht, unsigned long key)
 
int drm_ht_remove_item (struct drm_open_hash *ht, struct drm_hash_item *item)
 
void drm_ht_remove (struct drm_open_hash *ht)
 

Macro Definition Documentation

#define drm_hash_entry (   _ptr,
  _type,
  _member 
)    container_of(_ptr, _type, _member)

Definition at line 40 of file drm_hashtab.h.

Function Documentation

int drm_ht_create ( struct drm_open_hash ht,
unsigned int  order 
)

Definition at line 41 of file drm_hashtab.c.

int drm_ht_find_item ( struct drm_open_hash ht,
unsigned long  key,
struct drm_hash_item **  item 
)

Definition at line 154 of file drm_hashtab.c.

int drm_ht_insert_item ( struct drm_open_hash ht,
struct drm_hash_item item 
)

Definition at line 97 of file drm_hashtab.c.

int drm_ht_just_insert_please ( struct drm_open_hash ht,
struct drm_hash_item item,
unsigned long  seed,
int  bits,
int  shift,
unsigned long  add 
)

Definition at line 129 of file drm_hashtab.c.

void drm_ht_remove ( struct drm_open_hash ht)

Definition at line 187 of file drm_hashtab.c.

int drm_ht_remove_item ( struct drm_open_hash ht,
struct drm_hash_item item 
)

Definition at line 180 of file drm_hashtab.c.

int drm_ht_remove_key ( struct drm_open_hash ht,
unsigned long  key 
)

Definition at line 168 of file drm_hashtab.c.

void drm_ht_verbose_list ( struct drm_open_hash ht,
unsigned long  key 
)

Definition at line 59 of file drm_hashtab.c.