/block/ |
D | blk-sysfs.c | 287 unsigned long val; \ 289 ret = queue_var_store(&val, page, count); \ 293 val = !val; \ 295 if (val) \ 373 unsigned long val; in queue_rq_affinity_store() local 375 ret = queue_var_store(&val, page, count); in queue_rq_affinity_store() 379 if (val == 2) { in queue_rq_affinity_store() 382 } else if (val == 1) { in queue_rq_affinity_store() 385 } else if (val == 0) { in queue_rq_affinity_store() 395 int val; in queue_poll_delay_show() local [all …]
|
D | ioctl.c | 196 static int put_ushort(unsigned short __user *argp, unsigned short val) in put_ushort() argument 198 return put_user(val, argp); in put_ushort() 201 static int put_int(int __user *argp, int val) in put_int() argument 203 return put_user(val, argp); in put_int() 206 static int put_uint(unsigned int __user *argp, unsigned int val) in put_uint() argument 208 return put_user(val, argp); in put_uint() 211 static int put_long(long __user *argp, long val) in put_long() argument 213 return put_user(val, argp); in put_long() 216 static int put_ulong(unsigned long __user *argp, unsigned long val) in put_ulong() argument 218 return put_user(val, argp); in put_ulong() [all …]
|
D | bsg.c | 108 int val; in bsg_ioctl() local 129 if (get_user(val, intp)) in bsg_ioctl() 131 bd->timeout = clock_t_to_jiffies(val); in bsg_ioctl() 139 if (get_user(val, intp)) in bsg_ioctl() 141 if (val < 0) in bsg_ioctl() 144 min_t(unsigned int, val, queue_max_bytes(q)); in bsg_ioctl()
|
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 | 794 static void iolatency_set_min_lat_nsec(struct blkcg_gq *blkg, u64 val) in iolatency_set_min_lat_nsec() argument 800 iolat->min_lat_nsec = val; in iolatency_set_min_lat_nsec() 801 iolat->cur_win_nsec = max_t(u64, val << 4, BLKIOLATENCY_MIN_WIN_SIZE); in iolatency_set_min_lat_nsec() 805 if (!oldval && val) { in iolatency_set_min_lat_nsec() 809 if (oldval && !val) { in iolatency_set_min_lat_nsec() 856 char val[21]; /* 18446744073709551616 */ in iolatency_set_limit() local 858 if (sscanf(tok, "%15[^=]=%20s", key, val) != 2) in iolatency_set_limit() 864 if (!strcmp(val, "max")) in iolatency_set_limit() 866 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 | 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() 998 unsigned int val = 0; in bfq_io_show_weight_legacy() local 1001 val = bfqgd->weight; in bfq_io_show_weight_legacy() 1003 seq_printf(sf, "%u\n", val); in bfq_io_show_weight_legacy() 1064 u64 val) in bfq_io_set_weight_legacy() argument 1071 if (val < BFQ_MIN_WEIGHT || val > BFQ_MAX_WEIGHT) in bfq_io_set_weight_legacy() 1076 bfqgd->weight = (unsigned short)val; in bfq_io_set_weight_legacy() 1081 bfq_group_set_weight(bfqg, val, 0); in bfq_io_set_weight_legacy()
|
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 | blk-throttle.c | 1682 u64 val = U64_MAX; in tg_set_limit() local 1694 if (!p || (sscanf(p, "%llu", &val) != 1 && strcmp(p, "max"))) in tg_set_limit() 1698 if (!val) in tg_set_limit() 1702 if (!strcmp(tok, "rbps") && val > 1) in tg_set_limit() 1703 v[0] = val; in tg_set_limit() 1704 else if (!strcmp(tok, "wbps") && val > 1) in tg_set_limit() 1705 v[1] = val; in tg_set_limit() 1706 else if (!strcmp(tok, "riops") && val > 1) in tg_set_limit() 1707 v[2] = min_t(u64, val, UINT_MAX); in tg_set_limit() 1708 else if (!strcmp(tok, "wiops") && val > 1) in tg_set_limit() [all …]
|
D | disk-events.c | 417 static int disk_events_set_dfl_poll_msecs(const char *val, in disk_events_set_dfl_poll_msecs() argument 423 ret = param_set_ulong(val, kp); in disk_events_set_dfl_poll_msecs()
|
D | bsg-lib.c | 19 #define uptr64(val) ((void __user *)(uintptr_t)(val)) argument
|
D | blk-wbt.c | 433 void wbt_set_min_lat(struct request_queue *q, u64 val) in wbt_set_min_lat() argument 438 RQWB(rqos)->min_lat_nsec = val; in wbt_set_min_lat()
|
D | blk-settings.c | 114 int blk_sub_page_limit_queues_get(void *data, u64 *val) in blk_sub_page_limit_queues_get() argument 116 *val = READ_ONCE(blk_nr_sub_page_limit_queues); in blk_sub_page_limit_queues_get()
|
D | blk.h | 71 int blk_sub_page_limit_queues_get(void *data, u64 *val);
|
D | blk-cgroup.c | 468 struct cftype *cftype, u64 val) in blkcg_reset_stats() argument
|