Lines Matching refs:scmdev
183 struct scm_device *scmdev = bdev->gendisk->private_data; in scm_request_prepare() local
197 msb->scm_addr = scmdev->address + ((u64) blk_rq_pos(req) << 9); in scm_request_prepare()
228 aobrq->scmdev = bdev->scmdev; in scm_request_init()
287 struct scm_device *scmdev = hctx->queue->queuedata; in scm_blk_request() local
288 struct scm_blk_dev *bdev = dev_get_drvdata(&scmdev->dev); in scm_blk_request()
387 (unsigned long) bdev->scmdev->address); in scm_blk_handle_error()
403 void scm_blk_irq(struct scm_device *scmdev, void *data, blk_status_t error) in scm_blk_irq() argument
437 int scm_blk_dev_setup(struct scm_blk_dev *bdev, struct scm_device *scmdev) in scm_blk_dev_setup() argument
450 bdev->scmdev = scmdev; in scm_blk_dev_setup()
466 bdev->gendisk = blk_mq_alloc_disk(&bdev->tag_set, scmdev); in scm_blk_dev_setup()
472 nr_max_blk = min(scmdev->nr_max_block, in scm_blk_dev_setup()
481 bdev->gendisk->private_data = scmdev; in scm_blk_dev_setup()
498 set_capacity(bdev->gendisk, scmdev->size >> 9); in scm_blk_dev_setup()
499 device_add_disk(&scmdev->dev, bdev->gendisk, NULL); in scm_blk_dev_setup()
523 (unsigned long) bdev->scmdev->address); in scm_blk_set_available()