Lines Matching refs:btt_disk
1521 btt->btt_disk = blk_alloc_disk(NUMA_NO_NODE); in btt_blk_init()
1522 if (!btt->btt_disk) in btt_blk_init()
1525 nvdimm_namespace_disk_name(ndns, btt->btt_disk->disk_name); in btt_blk_init()
1526 btt->btt_disk->first_minor = 0; in btt_blk_init()
1527 btt->btt_disk->fops = &btt_fops; in btt_blk_init()
1528 btt->btt_disk->private_data = btt; in btt_blk_init()
1530 blk_queue_logical_block_size(btt->btt_disk->queue, btt->sector_size); in btt_blk_init()
1531 blk_queue_max_hw_sectors(btt->btt_disk->queue, UINT_MAX); in btt_blk_init()
1532 blk_queue_flag_set(QUEUE_FLAG_NONROT, btt->btt_disk->queue); in btt_blk_init()
1535 rc = nd_integrity_init(btt->btt_disk, btt_meta_size(btt)); in btt_blk_init()
1540 set_capacity(btt->btt_disk, btt->nlba * btt->sector_size >> 9); in btt_blk_init()
1541 rc = device_add_disk(&btt->nd_btt->dev, btt->btt_disk, NULL); in btt_blk_init()
1546 nvdimm_check_and_set_ro(btt->btt_disk); in btt_blk_init()
1551 put_disk(btt->btt_disk); in btt_blk_init()
1557 del_gendisk(btt->btt_disk); in btt_blk_cleanup()
1558 put_disk(btt->btt_disk); in btt_blk_cleanup()