/block/ |
D | blk-sysfs.c | 272 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 …]
|
D | ioctl.c | 189 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 …]
|
D | blk-timeout.c | 52 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()
|
D | blk-cgroup-rwstat.h | 62 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()
|
D | blk-iolatency.c | 790 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()
|
D | blk-wbt.h | 96 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
|
D | blk-integrity.c | 271 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()
|
D | bfq-cgroup.c | 44 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()
|
D | blk-throttle.c | 1676 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 …]
|
D | bsg-lib.c | 18 #define uptr64(val) ((void __user *)(uintptr_t)(val)) argument
|
D | bsg.c | 56 #define uptr64(val) ((void __user *)(uintptr_t)(val)) argument
|
D | blk-wbt.c | 430 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()
|
D | scsi_ioctl.c | 82 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()
|
D | genhd.c | 2270 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()
|
D | blk-cgroup.c | 442 struct cftype *cftype, u64 val) in blkcg_reset_stats() argument
|