Lines Matching refs:val
264 unsigned long val; \
266 ret = queue_var_store(&val, page, count); \
270 val = !val; \
272 if (val) \
339 unsigned long val; in queue_rq_affinity_store() local
341 ret = queue_var_store(&val, page, count); in queue_rq_affinity_store()
345 if (val == 2) { in queue_rq_affinity_store()
348 } else if (val == 1) { in queue_rq_affinity_store()
351 } else if (val == 0) { in queue_rq_affinity_store()
361 int val; in queue_poll_delay_show() local
364 val = BLK_MQ_POLL_CLASSIC; in queue_poll_delay_show()
366 val = q->poll_nsec / 1000; in queue_poll_delay_show()
368 return sprintf(page, "%d\n", val); in queue_poll_delay_show()
374 int err, val; in queue_poll_delay_store() local
379 err = kstrtoint(page, 10, &val); in queue_poll_delay_store()
383 if (val == BLK_MQ_POLL_CLASSIC) in queue_poll_delay_store()
385 else if (val >= 0) in queue_poll_delay_store()
386 q->poll_nsec = val * 1000; in queue_poll_delay_store()
428 unsigned int val; in queue_io_timeout_store() local
431 err = kstrtou32(page, 10, &val); in queue_io_timeout_store()
432 if (err || val == 0) in queue_io_timeout_store()
435 blk_queue_rq_timeout(q, msecs_to_jiffies(val)); in queue_io_timeout_store()
453 s64 val; in queue_wb_lat_store() local
455 ret = queue_var_store64(&val, page); in queue_wb_lat_store()
458 if (val < -1) in queue_wb_lat_store()
468 if (val == -1) in queue_wb_lat_store()
469 val = wbt_default_latency_nsec(q); in queue_wb_lat_store()
470 else if (val >= 0) in queue_wb_lat_store()
471 val *= 1000ULL; in queue_wb_lat_store()
473 if (wbt_get_min_lat(q) == val) in queue_wb_lat_store()
484 wbt_set_min_lat(q, val); in queue_wb_lat_store()