Searched refs:mvdev (Results 1 – 5 of 5) sorted by relevance
/drivers/misc/mic/host/ |
D | mic_virtio.c | 76 static int mic_virtio_copy_to_user(struct mic_vdev *mvdev, void __user *ubuf, in mic_virtio_copy_to_user() argument 80 struct mic_device *mdev = mvdev->mdev; in mic_virtio_copy_to_user() 82 struct mic_vringh *mvr = &mvdev->mvr[vr_idx]; in mic_virtio_copy_to_user() 108 mvdev->in_bytes_dma += partlen; in mic_virtio_copy_to_user() 109 mvdev->in_bytes += partlen; in mic_virtio_copy_to_user() 115 dev_err(mic_dev(mvdev), "%s %d err %d\n", __func__, __LINE__, err); in mic_virtio_copy_to_user() 125 static int mic_virtio_copy_from_user(struct mic_vdev *mvdev, void __user *ubuf, in mic_virtio_copy_from_user() argument 129 struct mic_device *mdev = mvdev->mdev; in mic_virtio_copy_from_user() 131 struct mic_vringh *mvr = &mvdev->mvr[vr_idx]; in mic_virtio_copy_from_user() 137 mvdev->tx_dst_unaligned += len; in mic_virtio_copy_from_user() [all …]
|
D | mic_fops.c | 32 struct mic_vdev *mvdev; in mic_open() local 36 mvdev = kzalloc(sizeof(*mvdev), GFP_KERNEL); in mic_open() 37 if (!mvdev) in mic_open() 40 init_waitqueue_head(&mvdev->waitq); in mic_open() 41 INIT_LIST_HEAD(&mvdev->list); in mic_open() 42 mvdev->mdev = mdev; in mic_open() 43 mvdev->virtio_id = -1; in mic_open() 45 f->private_data = mvdev; in mic_open() 51 struct mic_vdev *mvdev = (struct mic_vdev *)f->private_data; in mic_release() local 53 if (-1 != mvdev->virtio_id) in mic_release() [all …]
|
D | mic_virtio.h | 64 struct mic_vdev *mvdev; member 114 int mic_virtio_add_device(struct mic_vdev *mvdev, 116 void mic_virtio_del_device(struct mic_vdev *mvdev); 117 int mic_virtio_config_change(struct mic_vdev *mvdev, 119 int mic_virtio_copy_desc(struct mic_vdev *mvdev, 125 static inline struct device *mic_dev(struct mic_vdev *mvdev) in mic_dev() argument 127 return mvdev->mdev->sdev->parent; in mic_dev() 131 static inline int mic_vdev_inited(struct mic_vdev *mvdev) in mic_vdev_inited() argument 134 if (!mvdev->dd || !mvdev->dd->type) { in mic_vdev_inited() 135 dev_err(mic_dev(mvdev), "%s %d err %d\n", in mic_vdev_inited() [all …]
|
D | mic_debugfs.c | 290 struct mic_vdev *mvdev; in mic_vdev_info_show() local 295 mvdev = list_entry(pos, struct mic_vdev, list); in mic_vdev_info_show() 297 mvdev->virtio_id, in mic_vdev_info_show() 298 mic_vdevup(mvdev) ? "UP" : "DOWN", in mic_vdev_info_show() 299 mvdev->in_bytes, in mic_vdev_info_show() 300 mvdev->out_bytes); in mic_vdev_info_show() 305 struct mic_vringh *mvr = &mvdev->mvr[i]; in mic_vdev_info_show()
|
/drivers/misc/mic/card/ |
D | mic_virtio.c | 65 static inline struct device *mic_dev(struct mic_vdev *mvdev) in mic_dev() argument 67 return mvdev->vdev.dev.parent; in mic_dev() 145 struct mic_vdev *mvdev = to_micvdev(vdev); in mic_set_status() local 148 iowrite8(status, &mvdev->desc->status); in mic_set_status() 149 mic_send_intr(mvdev->mdev, mvdev->c2h_vdev_db); in mic_set_status() 155 struct mic_vdev *mvdev = to_micvdev(vdev); in mic_reset_inform_host() local 156 struct mic_device_ctrl __iomem *dc = mvdev->dc; in mic_reset_inform_host() 161 mic_send_intr(mvdev->mdev, mvdev->c2h_vdev_db); in mic_reset_inform_host() 170 dev_dbg(mic_dev(mvdev), "%s: retry: %d\n", __func__, retry); in mic_reset_inform_host() 173 iowrite8(0, &mvdev->desc->status); in mic_reset_inform_host() [all …]
|