Searched refs:mvr (Results 1 - 6 of 6) sorted by relevance

/linux-4.4.14/drivers/misc/mic/host/
H A Dmic_virtio.c81 struct mic_vringh *mvr = &mvdev->mvr[vr_idx]; mic_virtio_copy_to_user() local
94 err = mic_sync_dma(mdev, mvr->buf_da, daddr, mic_virtio_copy_to_user()
99 if (copy_to_user(ubuf, mvr->buf + dma_offset, mic_virtio_copy_to_user()
130 struct mic_vringh *mvr = &mvdev->mvr[vr_idx]; mic_virtio_copy_from_user() local
146 if (copy_from_user(mvr->buf, ubuf, partlen)) { mic_virtio_copy_from_user()
150 err = mic_sync_dma(mdev, daddr, mvr->buf_da, mic_virtio_copy_from_user()
263 struct mic_vringh *mvr = &mvdev->mvr[copy->vr_idx]; _mic_virtio_copy() local
264 struct vringh_kiov *riov = &mvr->riov; _mic_virtio_copy()
265 struct vringh_kiov *wiov = &mvr->wiov; _mic_virtio_copy()
266 struct vringh *vrh = &mvr->vrh; _mic_virtio_copy()
267 u16 *head = &mvr->head; _mic_virtio_copy()
268 struct mic_vring *vr = &mvr->vring; _mic_virtio_copy()
362 struct mic_vringh *mvr = &mvdev->mvr[copy->vr_idx]; mic_virtio_copy_desc() local
368 mutex_lock(&mvr->vr_mutex); mic_virtio_copy_desc()
381 mutex_unlock(&mvr->vr_mutex); mic_virtio_copy_desc()
395 mvdev->mvr[i].vrh.vring.used = mic_virtio_init_post()
418 mutex_lock_nested(&mvdev->mvr[i].vr_mutex, i + 1); mic_virtio_device_reset()
426 struct vringh *vrh = &mvdev->mvr[i].vrh; mic_virtio_device_reset()
427 mvdev->mvr[i].vring.info->avail_idx = 0; mic_virtio_device_reset()
434 mutex_unlock(&mvdev->mvr[i].vr_mutex); mic_virtio_device_reset()
487 mutex_lock_nested(&mvdev->mvr[i].vr_mutex, i + 1); mic_virtio_config_change()
517 mutex_unlock(&mvdev->mvr[i].vr_mutex); mic_virtio_config_change()
646 struct mic_vringh *mvr = &mvdev->mvr[i]; mic_virtio_add_device() local
647 struct mic_vring *vr = &mvdev->mvr[i].vring; mic_virtio_add_device()
649 mutex_init(&mvr->vr_mutex); mic_virtio_add_device()
675 ret = vringh_init_kern(&mvr->vrh, mic_virtio_add_device()
683 vringh_kiov_init(&mvr->riov, NULL, 0); mic_virtio_add_device()
684 vringh_kiov_init(&mvr->wiov, NULL, 0); mic_virtio_add_device()
685 mvr->head = USHRT_MAX; mic_virtio_add_device()
686 mvr->mvdev = mvdev; mic_virtio_add_device()
687 mvr->vrh.notify = mic_notify; mic_virtio_add_device()
691 mvr->buf = (void *)__get_free_pages(GFP_KERNEL, mic_virtio_add_device()
693 mvr->buf_da = mic_map_single(mvdev->mdev, mvr->buf, mic_virtio_add_device()
732 struct mic_vringh *mvr = &mvdev->mvr[j]; mic_virtio_add_device() local
734 mvr->vring.len); mic_virtio_add_device()
735 free_pages((unsigned long)mvr->vring.va, mic_virtio_add_device()
736 get_order(mvr->vring.len)); mic_virtio_add_device()
778 struct mic_vringh *mvr = &mvdev->mvr[i]; mic_virtio_del_device() local
780 mic_unmap_single(mvdev->mdev, mvr->buf_da, mic_virtio_del_device()
782 free_pages((unsigned long)mvr->buf, mic_virtio_del_device()
784 vringh_kiov_cleanup(&mvr->riov); mic_virtio_del_device()
785 vringh_kiov_cleanup(&mvr->wiov); mic_virtio_del_device()
787 mvr->vring.len); mic_virtio_del_device()
788 free_pages((unsigned long)mvr->vring.va, mic_virtio_del_device()
789 get_order(mvr->vring.len)); mic_virtio_del_device()
H A Dmic_fops.c177 struct mic_vringh *mvr = &mvdev->mvr[i]; mic_query_offset() local
179 *pa = virt_to_phys(mvr->vring.va); mic_query_offset()
180 *size = mvr->vring.len; mic_query_offset()
183 start += mvr->vring.len; mic_query_offset()
H A Dmic_debugfs.c217 struct mic_vringh *mvr = &mvdev->mvr[i]; mic_vdev_info_show() local
218 struct vringh *vrh = &mvr->vrh; mic_vdev_info_show()
224 i, mvr->vring.info->avail_idx & (num - 1)); mic_vdev_info_show()
226 i, mvr->vring.info->avail_idx); mic_vdev_info_show()
H A Dmic_virtio.h85 * @mvr - Store per VRING data structures.
104 struct mic_vringh mvr[MIC_MAX_VRINGS]; member in struct:mic_vdev
/linux-4.4.14/drivers/tty/serial/8250/
H A D8250_omap.c506 u32 mvr, scheme; omap_serial_fill_features_erratas() local
509 mvr = uart_read(up, UART_OMAP_MVER); omap_serial_fill_features_erratas()
512 scheme = mvr >> OMAP_UART_MVR_SCHEME_SHIFT; omap_serial_fill_features_erratas()
517 major = (mvr & OMAP_UART_LEGACY_MVR_MAJ_MASK) >> omap_serial_fill_features_erratas()
519 minor = (mvr & OMAP_UART_LEGACY_MVR_MIN_MASK); omap_serial_fill_features_erratas()
524 major = (mvr & OMAP_UART_MVR_MAJ_MASK) >> omap_serial_fill_features_erratas()
526 minor = (mvr & OMAP_UART_MVR_MIN_MASK); omap_serial_fill_features_erratas()
/linux-4.4.14/drivers/tty/serial/
H A Domap-serial.c1482 u32 mvr, scheme; omap_serial_fill_features_erratas() local
1485 mvr = readl(up->port.membase + (UART_OMAP_MVER << up->port.regshift)); omap_serial_fill_features_erratas()
1488 scheme = mvr >> OMAP_UART_MVR_SCHEME_SHIFT; omap_serial_fill_features_erratas()
1493 major = (mvr & OMAP_UART_LEGACY_MVR_MAJ_MASK) >> omap_serial_fill_features_erratas()
1495 minor = (mvr & OMAP_UART_LEGACY_MVR_MIN_MASK); omap_serial_fill_features_erratas()
1500 major = (mvr & OMAP_UART_MVR_MAJ_MASK) >> omap_serial_fill_features_erratas()
1502 minor = (mvr & OMAP_UART_MVR_MIN_MASK); omap_serial_fill_features_erratas()

Completed in 167 milliseconds