Lines Matching refs:scmdev
182 struct scm_device *scmdev = bdev->gendisk->private_data; in scm_request_prepare() local
196 msb->scm_addr = scmdev->address + ((u64) blk_rq_pos(req) << 9); in scm_request_prepare()
227 aobrq->scmdev = bdev->scmdev; in scm_request_init()
286 struct scm_device *scmdev = hctx->queue->queuedata; in scm_blk_request() local
287 struct scm_blk_dev *bdev = dev_get_drvdata(&scmdev->dev); in scm_blk_request()
386 (unsigned long) bdev->scmdev->address); in scm_blk_handle_error()
402 void scm_blk_irq(struct scm_device *scmdev, void *data, blk_status_t error) in scm_blk_irq() argument
436 int scm_blk_dev_setup(struct scm_blk_dev *bdev, struct scm_device *scmdev) in scm_blk_dev_setup() argument
444 lim.max_segments = min(scmdev->nr_max_block, in scm_blk_dev_setup()
455 bdev->scmdev = scmdev; in scm_blk_dev_setup()
471 bdev->gendisk = blk_mq_alloc_disk(&bdev->tag_set, &lim, scmdev); in scm_blk_dev_setup()
476 bdev->gendisk->private_data = scmdev; in scm_blk_dev_setup()
493 set_capacity(bdev->gendisk, scmdev->size >> 9); in scm_blk_dev_setup()
494 ret = device_add_disk(&scmdev->dev, bdev->gendisk, NULL); in scm_blk_dev_setup()
523 (unsigned long) bdev->scmdev->address); in scm_blk_set_available()