vpmem 15 drivers/nvdimm/nd_virtio.c struct virtio_pmem *vpmem = vq->vdev->priv; vpmem 20 drivers/nvdimm/nd_virtio.c spin_lock_irqsave(&vpmem->pmem_lock, flags); vpmem 25 drivers/nvdimm/nd_virtio.c if (!list_empty(&vpmem->req_list)) { vpmem 26 drivers/nvdimm/nd_virtio.c req_buf = list_first_entry(&vpmem->req_list, vpmem 33 drivers/nvdimm/nd_virtio.c spin_unlock_irqrestore(&vpmem->pmem_lock, flags); vpmem 41 drivers/nvdimm/nd_virtio.c struct virtio_pmem *vpmem = vdev->priv; vpmem 62 drivers/nvdimm/nd_virtio.c spin_lock_irqsave(&vpmem->pmem_lock, flags); vpmem 69 drivers/nvdimm/nd_virtio.c while ((err = virtqueue_add_sgs(vpmem->req_vq, sgs, 1, 1, req_data, vpmem 74 drivers/nvdimm/nd_virtio.c list_add_tail(&req_data->list, &vpmem->req_list); vpmem 75 drivers/nvdimm/nd_virtio.c spin_unlock_irqrestore(&vpmem->pmem_lock, flags); vpmem 79 drivers/nvdimm/nd_virtio.c spin_lock_irqsave(&vpmem->pmem_lock, flags); vpmem 81 drivers/nvdimm/nd_virtio.c err1 = virtqueue_kick(vpmem->req_vq); vpmem 82 drivers/nvdimm/nd_virtio.c spin_unlock_irqrestore(&vpmem->pmem_lock, flags); vpmem 18 drivers/nvdimm/virtio_pmem.c static int init_vq(struct virtio_pmem *vpmem) vpmem 21 drivers/nvdimm/virtio_pmem.c vpmem->req_vq = virtio_find_single_vq(vpmem->vdev, vpmem 23 drivers/nvdimm/virtio_pmem.c if (IS_ERR(vpmem->req_vq)) vpmem 24 drivers/nvdimm/virtio_pmem.c return PTR_ERR(vpmem->req_vq); vpmem 26 drivers/nvdimm/virtio_pmem.c spin_lock_init(&vpmem->pmem_lock); vpmem 27 drivers/nvdimm/virtio_pmem.c INIT_LIST_HEAD(&vpmem->req_list); vpmem 37 drivers/nvdimm/virtio_pmem.c struct virtio_pmem *vpmem; vpmem 47 drivers/nvdimm/virtio_pmem.c vpmem = devm_kzalloc(&vdev->dev, sizeof(*vpmem), GFP_KERNEL); vpmem 48 drivers/nvdimm/virtio_pmem.c if (!vpmem) { vpmem 53 drivers/nvdimm/virtio_pmem.c vpmem->vdev = vdev; vpmem 54 drivers/nvdimm/virtio_pmem.c vdev->priv = vpmem; vpmem 55 drivers/nvdimm/virtio_pmem.c err = init_vq(vpmem); vpmem 61 drivers/nvdimm/virtio_pmem.c virtio_cread(vpmem->vdev, struct virtio_pmem_config, vpmem 62 drivers/nvdimm/virtio_pmem.c start, &vpmem->start); vpmem 63 drivers/nvdimm/virtio_pmem.c virtio_cread(vpmem->vdev, struct virtio_pmem_config, vpmem 64 drivers/nvdimm/virtio_pmem.c size, &vpmem->size); vpmem 66 drivers/nvdimm/virtio_pmem.c res.start = vpmem->start; vpmem 67 drivers/nvdimm/virtio_pmem.c res.end = vpmem->start + vpmem->size - 1; vpmem 68 drivers/nvdimm/virtio_pmem.c vpmem->nd_desc.provider_name = "virtio-pmem"; vpmem 69 drivers/nvdimm/virtio_pmem.c vpmem->nd_desc.module = THIS_MODULE; vpmem 71 drivers/nvdimm/virtio_pmem.c vpmem->nvdimm_bus = nvdimm_bus_register(&vdev->dev, vpmem 72 drivers/nvdimm/virtio_pmem.c &vpmem->nd_desc); vpmem 73 drivers/nvdimm/virtio_pmem.c if (!vpmem->nvdimm_bus) { vpmem 79 drivers/nvdimm/virtio_pmem.c dev_set_drvdata(&vdev->dev, vpmem->nvdimm_bus); vpmem 86 drivers/nvdimm/virtio_pmem.c nd_region = nvdimm_pmem_region_create(vpmem->nvdimm_bus, &ndr_desc); vpmem 95 drivers/nvdimm/virtio_pmem.c nvdimm_bus_unregister(vpmem->nvdimm_bus);