Home
last modified time | relevance | path

Searched refs:cnt (Results 1 – 8 of 8) sorted by relevance

/include/linux/
Dres_counter.h125 static inline bool res_counter_limit_check_locked(struct res_counter *cnt) in res_counter_limit_check_locked() argument
127 if (cnt->usage < cnt->limit) in res_counter_limit_check_locked()
137 static inline bool res_counter_check_under_limit(struct res_counter *cnt) in res_counter_check_under_limit() argument
142 spin_lock_irqsave(&cnt->lock, flags); in res_counter_check_under_limit()
143 ret = res_counter_limit_check_locked(cnt); in res_counter_check_under_limit()
144 spin_unlock_irqrestore(&cnt->lock, flags); in res_counter_check_under_limit()
148 static inline void res_counter_reset_max(struct res_counter *cnt) in res_counter_reset_max() argument
152 spin_lock_irqsave(&cnt->lock, flags); in res_counter_reset_max()
153 cnt->max_usage = cnt->usage; in res_counter_reset_max()
154 spin_unlock_irqrestore(&cnt->lock, flags); in res_counter_reset_max()
[all …]
Drmap.h86 int page_referenced(struct page *, int is_locked, struct mem_cgroup *cnt);
127 #define page_referenced(page,l,cnt) TestClearPageReferenced(page) argument
Dlmb.h27 unsigned long cnt; member
Dbio.h352 atomic_t cnt; member
/include/asm-h8300/
Dtimer.h11 #define calc_param(cnt, div, rate, limit) \ argument
13 cnt = TIMER_FREQ / HZ; \
17 if ((cnt / rate[div]) > limit) \
22 cnt /= divide_rate[div]; \
/include/linux/netfilter/
Dx_tables.h481 u_int32_t cnt[4]; member
483 u_int64_t cnt[2];
/include/linux/mlx4/
Ddevice.h445 int mlx4_qp_reserve_range(struct mlx4_dev *dev, int cnt, int align, int *base);
446 void mlx4_qp_release_range(struct mlx4_dev *dev, int base_qpn, int cnt);
/include/scsi/
Dlibfc.h288 u16 cnt; /* frames sent so far on sequence */ member