Searched refs:enr (Results 1 - 5 of 5) sorted by relevance

/linux-master/include/linux/
H A Dlru_cache.h245 extern struct lc_element *lc_get_cumulative(struct lru_cache *lc, unsigned int enr);
246 extern struct lc_element *lc_try_get(struct lru_cache *lc, unsigned int enr);
247 extern struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr);
248 extern struct lc_element *lc_get(struct lru_cache *lc, unsigned int enr);
292 extern bool lc_is_used(struct lru_cache *lc, unsigned int enr);
/linux-master/drivers/block/drbd/
H A Ddrbd_actlog.c206 static struct bm_extent *find_active_resync_extent(struct drbd_device *device, unsigned int enr) argument
209 tmp = lc_find(device->resync, enr/AL_EXT_PER_BM_SECT);
218 static struct lc_element *_al_get(struct drbd_device *device, unsigned int enr, bool nonblock) argument
225 bm_ext = find_active_resync_extent(device, enr);
234 al_ext = lc_try_get(device->act_log, enr);
236 al_ext = lc_get(device->act_log, enr);
264 unsigned enr; local
270 for (enr = first; enr <= last; enr
493 unsigned enr; local
550 unsigned enr; local
651 update_rs_extent(struct drbd_device *device, unsigned int enr, int count, enum update_sync_bits_mode mode) argument
904 _bme_get(struct drbd_device *device, unsigned int enr) argument
944 _is_in_al(struct drbd_device *device, unsigned int enr) argument
966 unsigned int enr = BM_SECT_TO_EXT(sector); local
1021 unsigned int enr = BM_SECT_TO_EXT(sector); local
1143 unsigned int enr = BM_SECT_TO_EXT(sector); local
[all...]
H A Ddrbd_bitmap.c1659 * enr is bm-extent number, since we chose to name one sector (512 bytes)
1667 int drbd_bm_e_weight(struct drbd_device *device, unsigned long enr) argument
1683 s = S2W(enr);
1684 e = min((size_t)S2W(enr+1), b->bm_words);
H A Ddrbd_int.h1295 extern int drbd_bm_e_weight(struct drbd_device *device, unsigned long enr);
/linux-master/lib/
H A Dlru_cache.c233 static struct hlist_head *lc_hash_slot(struct lru_cache *lc, unsigned int enr) argument
235 return lc->lc_slot + (enr % lc->nr_elements);
239 static struct lc_element *__lc_find(struct lru_cache *lc, unsigned int enr, argument
246 hlist_for_each_entry(e, lc_hash_slot(lc, enr), colision) {
250 if (e->lc_new_number != enr)
262 * @enr: element number
270 struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr) argument
272 return __lc_find(lc, enr, 0);
278 * @enr: element number
285 bool lc_is_used(struct lru_cache *lc, unsigned int enr) argument
351 __lc_get(struct lru_cache *lc, unsigned int enr, unsigned int flags) argument
470 lc_get(struct lru_cache *lc, unsigned int enr) argument
490 lc_get_cumulative(struct lru_cache *lc, unsigned int enr) argument
511 lc_try_get(struct lru_cache *lc, unsigned int enr) argument
[all...]

Completed in 118 milliseconds