Home
last modified time | relevance | path

Searched refs:val (Results 1 – 15 of 15) sorted by relevance

/block/
Dblk-sysfs.c272 unsigned long val; \
274 ret = queue_var_store(&val, page, count); \
278 val = !val; \
280 if (val) \
358 unsigned long val; in queue_rq_affinity_store() local
360 ret = queue_var_store(&val, page, count); in queue_rq_affinity_store()
364 if (val == 2) { in queue_rq_affinity_store()
367 } else if (val == 1) { in queue_rq_affinity_store()
370 } else if (val == 0) { in queue_rq_affinity_store()
380 int val; in queue_poll_delay_show() local
[all …]
Dioctl.c189 static int put_ushort(unsigned short __user *argp, unsigned short val) in put_ushort() argument
191 return put_user(val, argp); in put_ushort()
194 static int put_int(int __user *argp, int val) in put_int() argument
196 return put_user(val, argp); in put_int()
199 static int put_uint(unsigned int __user *argp, unsigned int val) in put_uint() argument
201 return put_user(val, argp); in put_uint()
204 static int put_long(long __user *argp, long val) in put_long() argument
206 return put_user(val, argp); in put_long()
209 static int put_ulong(unsigned long __user *argp, unsigned long val) in put_ulong() argument
211 return put_user(val, argp); in put_ulong()
[all …]
Dblk-timeout.c52 int val; in part_timeout_store() local
58 val = simple_strtoul(p, &p, 10); in part_timeout_store()
59 if (val) in part_timeout_store()
Dblk-cgroup-rwstat.h62 unsigned int op, uint64_t val) in blkg_rwstat_add() argument
73 percpu_counter_add_batch(cnt, val, BLKG_STAT_CPU_BATCH); in blkg_rwstat_add()
80 percpu_counter_add_batch(cnt, val, BLKG_STAT_CPU_BATCH); in blkg_rwstat_add()
Dblk-iolatency.c790 static void iolatency_set_min_lat_nsec(struct blkcg_gq *blkg, u64 val) in iolatency_set_min_lat_nsec() argument
796 iolat->min_lat_nsec = val; in iolatency_set_min_lat_nsec()
797 iolat->cur_win_nsec = max_t(u64, val << 4, BLKIOLATENCY_MIN_WIN_SIZE); in iolatency_set_min_lat_nsec()
801 if (!oldval && val) { in iolatency_set_min_lat_nsec()
805 if (oldval && !val) { in iolatency_set_min_lat_nsec()
852 char val[21]; /* 18446744073709551616 */ in iolatency_set_limit() local
854 if (sscanf(tok, "%15[^=]=%20s", key, val) != 2) in iolatency_set_limit()
860 if (!strcmp(val, "max")) in iolatency_set_limit()
862 else if (sscanf(val, "%llu", &v) == 1) in iolatency_set_limit()
Dblk-wbt.h96 void wbt_set_min_lat(struct request_queue *q, u64 val);
124 static inline void wbt_set_min_lat(struct request_queue *q, u64 val) in wbt_set_min_lat() argument
Dblk-integrity.c271 unsigned long val = simple_strtoul(p, &p, 10); in integrity_verify_store() local
273 if (val) in integrity_verify_store()
290 unsigned long val = simple_strtoul(p, &p, 10); in integrity_generate_store() local
292 if (val) in integrity_generate_store()
Dbfq-cgroup.c44 static inline void bfq_stat_add(struct bfq_stat *stat, uint64_t val) in bfq_stat_add() argument
46 percpu_counter_add_batch(&stat->cpu_cnt, val, BLKG_STAT_CPU_BATCH); in bfq_stat_add()
988 unsigned int val = 0; in bfq_io_show_weight_legacy() local
991 val = bfqgd->weight; in bfq_io_show_weight_legacy()
993 seq_printf(sf, "%u\n", val); in bfq_io_show_weight_legacy()
1054 u64 val) in bfq_io_set_weight_legacy() argument
1061 if (val < BFQ_MIN_WEIGHT || val > BFQ_MAX_WEIGHT) in bfq_io_set_weight_legacy()
1066 bfqgd->weight = (unsigned short)val; in bfq_io_set_weight_legacy()
1071 bfq_group_set_weight(bfqg, val, 0); in bfq_io_set_weight_legacy()
Dblk-throttle.c1676 u64 val = U64_MAX; in tg_set_limit() local
1688 if (!p || (sscanf(p, "%llu", &val) != 1 && strcmp(p, "max"))) in tg_set_limit()
1692 if (!val) in tg_set_limit()
1696 if (!strcmp(tok, "rbps") && val > 1) in tg_set_limit()
1697 v[0] = val; in tg_set_limit()
1698 else if (!strcmp(tok, "wbps") && val > 1) in tg_set_limit()
1699 v[1] = val; in tg_set_limit()
1700 else if (!strcmp(tok, "riops") && val > 1) in tg_set_limit()
1701 v[2] = min_t(u64, val, UINT_MAX); in tg_set_limit()
1702 else if (!strcmp(tok, "wiops") && val > 1) in tg_set_limit()
[all …]
Dbsg-lib.c18 #define uptr64(val) ((void __user *)(uintptr_t)(val)) argument
Dbsg.c56 #define uptr64(val) ((void __user *)(uintptr_t)(val)) argument
Dblk-wbt.c430 void wbt_set_min_lat(struct request_queue *q, u64 val) in wbt_set_min_lat() argument
435 RQWB(rqos)->min_lat_nsec = val; in wbt_set_min_lat()
Dscsi_ioctl.c82 int val = min_t(int, q->sg_reserved_size, max_sectors_bytes(q)); in sg_get_reserved_size() local
84 return put_user(val, p); in sg_get_reserved_size()
Dgenhd.c2270 static int disk_events_set_dfl_poll_msecs(const char *val, in disk_events_set_dfl_poll_msecs() argument
2276 ret = param_set_ulong(val, kp); in disk_events_set_dfl_poll_msecs()
Dblk-cgroup.c442 struct cftype *cftype, u64 val) in blkcg_reset_stats() argument