/drivers/staging/ramster/ |
H A D | tmem.c | 78 struct tmem_oid *oidp) 87 switch (tmem_oid_compare(oidp, &obj->oid)) { 132 struct tmem_oid *oidp) 143 obj->oid = *oidp; 152 switch (tmem_oid_compare(oidp, &this->oid)) { 535 int tmem_put(struct tmem_pool *pool, struct tmem_oid *oidp, uint32_t index, argument 543 hb = &pool->hashbucket[tmem_oid_hash(oidp)]; 545 obj = objfound = tmem_obj_find(hb, oidp); 552 (*tmem_pamops.free)(pampd, pool, oidp, index, true); 565 tmem_obj_init(obj, hb, pool, oidp); 77 tmem_obj_find(struct tmem_hashbucket *hb, struct tmem_oid *oidp) argument 130 tmem_obj_init(struct tmem_obj *obj, struct tmem_hashbucket *hb, struct tmem_pool *pool, struct tmem_oid *oidp) argument 593 tmem_localify_get_pampd(struct tmem_pool *pool, struct tmem_oid *oidp, uint32_t index, struct tmem_obj **ret_obj, void **saved_hb) argument 628 tmem_repatriate(void **ppampd, struct tmem_hashbucket *hb, struct tmem_pool *pool, struct tmem_oid *oidp, uint32_t index, bool free, char *data) argument 664 tmem_get(struct tmem_pool *pool, struct tmem_oid *oidp, uint32_t index, char *data, size_t *size, bool raw, int get_and_free) argument 736 tmem_flush_page(struct tmem_pool *pool, struct tmem_oid *oidp, uint32_t index) argument 769 tmem_replace(struct tmem_pool *pool, struct tmem_oid *oidp, uint32_t index, void *new_pampd) argument 791 tmem_flush_object(struct tmem_pool *pool, struct tmem_oid *oidp) argument [all...] |
H A D | tmem.h | 103 struct tmem_oid *oidp, 111 xh.oid = *oidp; 116 static inline void tmem_oid_set_invalid(struct tmem_oid *oidp) argument 118 oidp->oid[0] = oidp->oid[1] = oidp->oid[2] = -1UL; 121 static inline bool tmem_oid_valid(struct tmem_oid *oidp) argument 123 return oidp->oid[0] != -1UL || oidp->oid[1] != -1UL || 124 oidp 101 tmem_xhandle_fill(uint16_t client_id, struct tmem_pool *pool, struct tmem_oid *oidp, uint32_t index) argument 151 tmem_oid_hash(struct tmem_oid *oidp) argument [all...] |
H A D | zcache-main.c | 2014 int zcache_localify(int pool_id, struct tmem_oid *oidp, argument 2032 pampd = tmem_localify_get_pampd(pool, oidp, index, &obj, &saved_hb); 2621 int zcache_put(int cli_id, int pool_id, struct tmem_oid *oidp, argument 2634 ret = tmem_put(pool, oidp, index, data, size, raw, ephemeral); 2647 (void)tmem_flush_page(pool, oidp, index); 2654 int zcache_get(int cli_id, int pool_id, struct tmem_oid *oidp, argument 2670 ret = tmem_get(pool, oidp, index, data, sizep, 2686 struct tmem_oid *oidp, uint32_t index) 2698 ret = tmem_flush_page(pool, oidp, index); 2707 int zcache_flush_object(int cli_id, int pool_id, struct tmem_oid *oidp) argument 2685 zcache_flush(int cli_id, int pool_id, struct tmem_oid *oidp, uint32_t index) argument [all...] |
/drivers/staging/zcache/ |
H A D | tmem.c | 77 struct tmem_oid *oidp) 86 switch (tmem_oid_compare(oidp, &obj->oid)) { 131 struct tmem_oid *oidp) 142 obj->oid = *oidp; 151 switch (tmem_oid_compare(oidp, &this->oid)) { 531 int tmem_put(struct tmem_pool *pool, struct tmem_oid *oidp, uint32_t index, argument 539 hb = &pool->hashbucket[tmem_oid_hash(oidp)]; 541 obj = objfound = tmem_obj_find(hb, oidp); 548 (*tmem_pamops.free)(pampd, pool, oidp, index); 561 tmem_obj_init(obj, hb, pool, oidp); 76 tmem_obj_find(struct tmem_hashbucket *hb, struct tmem_oid *oidp) argument 129 tmem_obj_init(struct tmem_obj *obj, struct tmem_hashbucket *hb, struct tmem_pool *pool, struct tmem_oid *oidp) argument 601 tmem_get(struct tmem_pool *pool, struct tmem_oid *oidp, uint32_t index, char *data, size_t *size, bool raw, int get_and_free) argument 655 tmem_flush_page(struct tmem_pool *pool, struct tmem_oid *oidp, uint32_t index) argument 688 tmem_replace(struct tmem_pool *pool, struct tmem_oid *oidp, uint32_t index, void *new_pampd) argument 710 tmem_flush_object(struct tmem_pool *pool, struct tmem_oid *oidp) argument [all...] |
H A D | tmem.h | 92 static inline void tmem_oid_set_invalid(struct tmem_oid *oidp) argument 94 oidp->oid[0] = oidp->oid[1] = oidp->oid[2] = -1UL; 97 static inline bool tmem_oid_valid(struct tmem_oid *oidp) argument 99 return oidp->oid[0] != -1UL || oidp->oid[1] != -1UL || 100 oidp->oid[2] != -1UL; 127 static inline unsigned tmem_oid_hash(struct tmem_oid *oidp) argument 129 return hash_long(oidp [all...] |
H A D | zcache-main.c | 1566 static int zcache_put_page(int cli_id, int pool_id, struct tmem_oid *oidp, argument 1578 ret = tmem_put(pool, oidp, index, (char *)(page), 1592 (void)tmem_flush_page(pool, oidp, index); 1599 static int zcache_get_page(int cli_id, int pool_id, struct tmem_oid *oidp, argument 1611 ret = tmem_get(pool, oidp, index, (char *)(page), 1620 struct tmem_oid *oidp, uint32_t index) 1631 ret = tmem_flush_page(pool, oidp, index); 1641 struct tmem_oid *oidp) 1652 ret = tmem_flush_object(pool, oidp); 1619 zcache_flush_page(int cli_id, int pool_id, struct tmem_oid *oidp, uint32_t index) argument 1640 zcache_flush_object(int cli_id, int pool_id, struct tmem_oid *oidp) argument
|