• Home
  • Raw
  • Download

Lines Matching refs:buts

516 			      struct blk_user_trace_setup *buts)  in do_blk_trace_setup()  argument
524 if (!buts->buf_size || !buts->buf_nr) in do_blk_trace_setup()
527 strncpy(buts->name, name, BLKTRACE_BDEV_SIZE); in do_blk_trace_setup()
528 buts->name[BLKTRACE_BDEV_SIZE - 1] = '\0'; in do_blk_trace_setup()
534 strreplace(buts->name, '/', '_'); in do_blk_trace_setup()
543 buts->name); in do_blk_trace_setup()
569 bt->dir = dir = debugfs_create_dir(buts->name, blk_debugfs_root); in do_blk_trace_setup()
578 buts->name); in do_blk_trace_setup()
591 bt->rchan = relay_open("trace", dir, buts->buf_size, in do_blk_trace_setup()
592 buts->buf_nr, &blk_relay_callbacks, bt); in do_blk_trace_setup()
596 bt->act_mask = buts->act_mask; in do_blk_trace_setup()
603 if (buts->start_lba) in do_blk_trace_setup()
604 bt->start_lba = buts->start_lba; in do_blk_trace_setup()
605 if (buts->end_lba) in do_blk_trace_setup()
606 bt->end_lba = buts->end_lba; in do_blk_trace_setup()
608 bt->pid = buts->pid; in do_blk_trace_setup()
624 struct blk_user_trace_setup buts; in __blk_trace_setup() local
627 ret = copy_from_user(&buts, arg, sizeof(buts)); in __blk_trace_setup()
631 ret = do_blk_trace_setup(q, name, dev, bdev, &buts); in __blk_trace_setup()
635 if (copy_to_user(arg, &buts, sizeof(buts))) { in __blk_trace_setup()
661 struct blk_user_trace_setup buts; in compat_blk_trace_setup() local
668 buts = (struct blk_user_trace_setup) { in compat_blk_trace_setup()
677 ret = do_blk_trace_setup(q, name, dev, bdev, &buts); in compat_blk_trace_setup()
681 if (copy_to_user(arg, &buts.name, ARRAY_SIZE(buts.name))) { in compat_blk_trace_setup()