Searched refs:vpmem (Results 1 – 2 of 2) sorted by relevance
/drivers/nvdimm/ |
D | virtio_pmem.c | 18 static int init_vq(struct virtio_pmem *vpmem) in init_vq() argument 21 vpmem->req_vq = virtio_find_single_vq(vpmem->vdev, in init_vq() 23 if (IS_ERR(vpmem->req_vq)) in init_vq() 24 return PTR_ERR(vpmem->req_vq); in init_vq() 26 spin_lock_init(&vpmem->pmem_lock); in init_vq() 27 INIT_LIST_HEAD(&vpmem->req_list); in init_vq() 37 struct virtio_pmem *vpmem; in virtio_pmem_probe() local 47 vpmem = devm_kzalloc(&vdev->dev, sizeof(*vpmem), GFP_KERNEL); in virtio_pmem_probe() 48 if (!vpmem) { in virtio_pmem_probe() 53 vpmem->vdev = vdev; in virtio_pmem_probe() [all …]
|
D | nd_virtio.c | 15 struct virtio_pmem *vpmem = vq->vdev->priv; in virtio_pmem_host_ack() local 20 spin_lock_irqsave(&vpmem->pmem_lock, flags); in virtio_pmem_host_ack() 25 if (!list_empty(&vpmem->req_list)) { in virtio_pmem_host_ack() 26 req_buf = list_first_entry(&vpmem->req_list, in virtio_pmem_host_ack() 33 spin_unlock_irqrestore(&vpmem->pmem_lock, flags); in virtio_pmem_host_ack() 41 struct virtio_pmem *vpmem = vdev->priv; in virtio_pmem_flush() local 62 spin_lock_irqsave(&vpmem->pmem_lock, flags); in virtio_pmem_flush() 69 while ((err = virtqueue_add_sgs(vpmem->req_vq, sgs, 1, 1, req_data, in virtio_pmem_flush() 74 list_add_tail(&req_data->list, &vpmem->req_list); in virtio_pmem_flush() 75 spin_unlock_irqrestore(&vpmem->pmem_lock, flags); in virtio_pmem_flush() [all …]
|