Lines Matching refs:val
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
398 val = BLK_MQ_POLL_CLASSIC; in queue_poll_delay_show()
400 val = q->poll_nsec / 1000; in queue_poll_delay_show()
402 return sprintf(page, "%d\n", val); in queue_poll_delay_show()
408 int err, val; in queue_poll_delay_store() local
413 err = kstrtoint(page, 10, &val); in queue_poll_delay_store()
417 if (val == BLK_MQ_POLL_CLASSIC) in queue_poll_delay_store()
419 else if (val >= 0) in queue_poll_delay_store()
420 q->poll_nsec = val * 1000; in queue_poll_delay_store()
465 unsigned int val; in queue_io_timeout_store() local
468 err = kstrtou32(page, 10, &val); in queue_io_timeout_store()
469 if (err || val == 0) in queue_io_timeout_store()
472 blk_queue_rq_timeout(q, msecs_to_jiffies(val)); in queue_io_timeout_store()
490 s64 val; in queue_wb_lat_store() local
492 ret = queue_var_store64(&val, page); in queue_wb_lat_store()
495 if (val < -1) in queue_wb_lat_store()
505 if (val == -1) in queue_wb_lat_store()
506 val = wbt_default_latency_nsec(q); in queue_wb_lat_store()
507 else if (val >= 0) in queue_wb_lat_store()
508 val *= 1000ULL; in queue_wb_lat_store()
510 if (wbt_get_min_lat(q) == val) in queue_wb_lat_store()
521 wbt_set_min_lat(q, val); in queue_wb_lat_store()