vi                 31 drivers/char/hw_random/virtio-rng.c 	struct virtrng_info *vi = vq->vdev->priv;
vi                 34 drivers/char/hw_random/virtio-rng.c 	if (!virtqueue_get_buf(vi->vq, &vi->data_avail))
vi                 37 drivers/char/hw_random/virtio-rng.c 	complete(&vi->have_data);
vi                 41 drivers/char/hw_random/virtio-rng.c static void register_buffer(struct virtrng_info *vi, u8 *buf, size_t size)
vi                 48 drivers/char/hw_random/virtio-rng.c 	virtqueue_add_inbuf(vi->vq, &sg, 1, buf, GFP_KERNEL);
vi                 50 drivers/char/hw_random/virtio-rng.c 	virtqueue_kick(vi->vq);
vi                 56 drivers/char/hw_random/virtio-rng.c 	struct virtrng_info *vi = (struct virtrng_info *)rng->priv;
vi                 58 drivers/char/hw_random/virtio-rng.c 	if (vi->hwrng_removed)
vi                 61 drivers/char/hw_random/virtio-rng.c 	if (!vi->busy) {
vi                 62 drivers/char/hw_random/virtio-rng.c 		vi->busy = true;
vi                 63 drivers/char/hw_random/virtio-rng.c 		reinit_completion(&vi->have_data);
vi                 64 drivers/char/hw_random/virtio-rng.c 		register_buffer(vi, buf, size);
vi                 70 drivers/char/hw_random/virtio-rng.c 	ret = wait_for_completion_killable(&vi->have_data);
vi                 74 drivers/char/hw_random/virtio-rng.c 	vi->busy = false;
vi                 76 drivers/char/hw_random/virtio-rng.c 	return vi->data_avail;
vi                 81 drivers/char/hw_random/virtio-rng.c 	struct virtrng_info *vi = (struct virtrng_info *)rng->priv;
vi                 83 drivers/char/hw_random/virtio-rng.c 	if (vi->busy)
vi                 84 drivers/char/hw_random/virtio-rng.c 		wait_for_completion(&vi->have_data);
vi                 90 drivers/char/hw_random/virtio-rng.c 	struct virtrng_info *vi = NULL;
vi                 92 drivers/char/hw_random/virtio-rng.c 	vi = kzalloc(sizeof(struct virtrng_info), GFP_KERNEL);
vi                 93 drivers/char/hw_random/virtio-rng.c 	if (!vi)
vi                 96 drivers/char/hw_random/virtio-rng.c 	vi->index = index = ida_simple_get(&rng_index_ida, 0, 0, GFP_KERNEL);
vi                101 drivers/char/hw_random/virtio-rng.c 	sprintf(vi->name, "virtio_rng.%d", index);
vi                102 drivers/char/hw_random/virtio-rng.c 	init_completion(&vi->have_data);
vi                104 drivers/char/hw_random/virtio-rng.c 	vi->hwrng = (struct hwrng) {
vi                107 drivers/char/hw_random/virtio-rng.c 		.priv = (unsigned long)vi,
vi                108 drivers/char/hw_random/virtio-rng.c 		.name = vi->name,
vi                111 drivers/char/hw_random/virtio-rng.c 	vdev->priv = vi;
vi                114 drivers/char/hw_random/virtio-rng.c 	vi->vq = virtio_find_single_vq(vdev, random_recv_done, "input");
vi                115 drivers/char/hw_random/virtio-rng.c 	if (IS_ERR(vi->vq)) {
vi                116 drivers/char/hw_random/virtio-rng.c 		err = PTR_ERR(vi->vq);
vi                125 drivers/char/hw_random/virtio-rng.c 	kfree(vi);
vi                131 drivers/char/hw_random/virtio-rng.c 	struct virtrng_info *vi = vdev->priv;
vi                133 drivers/char/hw_random/virtio-rng.c 	vi->hwrng_removed = true;
vi                134 drivers/char/hw_random/virtio-rng.c 	vi->data_avail = 0;
vi                135 drivers/char/hw_random/virtio-rng.c 	complete(&vi->have_data);
vi                137 drivers/char/hw_random/virtio-rng.c 	vi->busy = false;
vi                138 drivers/char/hw_random/virtio-rng.c 	if (vi->hwrng_register_done)
vi                139 drivers/char/hw_random/virtio-rng.c 		hwrng_unregister(&vi->hwrng);
vi                141 drivers/char/hw_random/virtio-rng.c 	ida_simple_remove(&rng_index_ida, vi->index);
vi                142 drivers/char/hw_random/virtio-rng.c 	kfree(vi);
vi                157 drivers/char/hw_random/virtio-rng.c 	struct virtrng_info *vi = vdev->priv;
vi                160 drivers/char/hw_random/virtio-rng.c 	err = hwrng_register(&vi->hwrng);
vi                162 drivers/char/hw_random/virtio-rng.c 		vi->hwrng_register_done = true;
vi                178 drivers/char/hw_random/virtio-rng.c 		struct virtrng_info *vi = vdev->priv;
vi                185 drivers/char/hw_random/virtio-rng.c 		vi->hwrng_removed = true;
vi                186 drivers/char/hw_random/virtio-rng.c 		err = hwrng_register(&vi->hwrng);
vi                188 drivers/char/hw_random/virtio-rng.c 			vi->hwrng_register_done = true;
vi                189 drivers/char/hw_random/virtio-rng.c 			vi->hwrng_removed = false;
vi                 48 drivers/crypto/virtio/virtio_crypto_core.c static int virtcrypto_find_vqs(struct virtio_crypto *vi)
vi                 55 drivers/crypto/virtio/virtio_crypto_core.c 	struct device *dev = &vi->vdev->dev;
vi                 62 drivers/crypto/virtio/virtio_crypto_core.c 	total_vqs = vi->max_data_queues + 1;
vi                 80 drivers/crypto/virtio/virtio_crypto_core.c 	for (i = 0; i < vi->max_data_queues; i++) {
vi                 82 drivers/crypto/virtio/virtio_crypto_core.c 		snprintf(vi->data_vq[i].name, sizeof(vi->data_vq[i].name),
vi                 84 drivers/crypto/virtio/virtio_crypto_core.c 		names[i] = vi->data_vq[i].name;
vi                 87 drivers/crypto/virtio/virtio_crypto_core.c 	ret = virtio_find_vqs(vi->vdev, total_vqs, vqs, callbacks, names, NULL);
vi                 91 drivers/crypto/virtio/virtio_crypto_core.c 	vi->ctrl_vq = vqs[total_vqs - 1];
vi                 93 drivers/crypto/virtio/virtio_crypto_core.c 	for (i = 0; i < vi->max_data_queues; i++) {
vi                 94 drivers/crypto/virtio/virtio_crypto_core.c 		spin_lock_init(&vi->data_vq[i].lock);
vi                 95 drivers/crypto/virtio/virtio_crypto_core.c 		vi->data_vq[i].vq = vqs[i];
vi                 97 drivers/crypto/virtio/virtio_crypto_core.c 		vi->data_vq[i].engine = crypto_engine_alloc_init(dev, 1);
vi                 98 drivers/crypto/virtio/virtio_crypto_core.c 		if (!vi->data_vq[i].engine) {
vi                121 drivers/crypto/virtio/virtio_crypto_core.c static int virtcrypto_alloc_queues(struct virtio_crypto *vi)
vi                123 drivers/crypto/virtio/virtio_crypto_core.c 	vi->data_vq = kcalloc(vi->max_data_queues, sizeof(*vi->data_vq),
vi                125 drivers/crypto/virtio/virtio_crypto_core.c 	if (!vi->data_vq)
vi                131 drivers/crypto/virtio/virtio_crypto_core.c static void virtcrypto_clean_affinity(struct virtio_crypto *vi, long hcpu)
vi                135 drivers/crypto/virtio/virtio_crypto_core.c 	if (vi->affinity_hint_set) {
vi                136 drivers/crypto/virtio/virtio_crypto_core.c 		for (i = 0; i < vi->max_data_queues; i++)
vi                137 drivers/crypto/virtio/virtio_crypto_core.c 			virtqueue_set_affinity(vi->data_vq[i].vq, NULL);
vi                139 drivers/crypto/virtio/virtio_crypto_core.c 		vi->affinity_hint_set = false;
vi                172 drivers/crypto/virtio/virtio_crypto_core.c static void virtcrypto_free_queues(struct virtio_crypto *vi)
vi                174 drivers/crypto/virtio/virtio_crypto_core.c 	kfree(vi->data_vq);
vi                177 drivers/crypto/virtio/virtio_crypto_core.c static int virtcrypto_init_vqs(struct virtio_crypto *vi)
vi                182 drivers/crypto/virtio/virtio_crypto_core.c 	ret = virtcrypto_alloc_queues(vi);
vi                186 drivers/crypto/virtio/virtio_crypto_core.c 	ret = virtcrypto_find_vqs(vi);
vi                191 drivers/crypto/virtio/virtio_crypto_core.c 	virtcrypto_set_affinity(vi);
vi                197 drivers/crypto/virtio/virtio_crypto_core.c 	virtcrypto_free_queues(vi);
vi                 87 drivers/media/pci/ivtv/ivtv-vbi.c 	struct vbi_info *vi = &itv->vbi;
vi                106 drivers/media/pci/ivtv/ivtv-vbi.c 		if (memcmp(&vps, &vi->vps_payload, sizeof(vps))) {
vi                107 drivers/media/pci/ivtv/ivtv-vbi.c 			vi->vps_payload = vps;
vi                114 drivers/media/pci/ivtv/ivtv-vbi.c 		if (vi->wss_payload != wss) {
vi                115 drivers/media/pci/ivtv/ivtv-vbi.c 			vi->wss_payload = wss;
vi                123 drivers/media/pci/ivtv/ivtv-vbi.c 	struct vbi_info *vi = &itv->vbi;
vi                125 drivers/media/pci/ivtv/ivtv-vbi.c 	if (vi->cc_payload_idx < ARRAY_SIZE(vi->cc_payload)) {
vi                126 drivers/media/pci/ivtv/ivtv-vbi.c 		memcpy(&vi->cc_payload[vi->cc_payload_idx], cc,
vi                128 drivers/media/pci/ivtv/ivtv-vbi.c 		vi->cc_payload_idx++;
vi                464 drivers/media/pci/ivtv/ivtv-vbi.c 	struct vbi_info *vi = &itv->vbi;
vi                476 drivers/media/pci/ivtv/ivtv-vbi.c 				vi->wss_missing_cnt = 0;
vi                477 drivers/media/pci/ivtv/ivtv-vbi.c 			} else if (vi->wss_missing_cnt == 4) {
vi                480 drivers/media/pci/ivtv/ivtv-vbi.c 				vi->wss_missing_cnt++;
vi                500 drivers/media/pci/ivtv/ivtv-vbi.c 				vi->cc_missing_cnt = 0;
vi                502 drivers/media/pci/ivtv/ivtv-vbi.c 			} else if (vi->cc_missing_cnt == 4) {
vi                505 drivers/media/pci/ivtv/ivtv-vbi.c 				vi->cc_missing_cnt++;
vi                512 drivers/media/pci/ivtv/ivtv-vbi.c 		ivtv_set_wss(itv, 1, vi->wss_payload & 0xf);
vi                516 drivers/media/pci/ivtv/ivtv-vbi.c 		if (vi->cc_payload_idx == 0) {
vi                520 drivers/media/pci/ivtv/ivtv-vbi.c 		while (vi->cc_payload_idx) {
vi                521 drivers/media/pci/ivtv/ivtv-vbi.c 			cc = vi->cc_payload[0];
vi                523 drivers/media/pci/ivtv/ivtv-vbi.c 			memmove(vi->cc_payload, vi->cc_payload + 1,
vi                524 drivers/media/pci/ivtv/ivtv-vbi.c 					sizeof(vi->cc_payload) - sizeof(vi->cc_payload[0]));
vi                525 drivers/media/pci/ivtv/ivtv-vbi.c 			vi->cc_payload_idx--;
vi                526 drivers/media/pci/ivtv/ivtv-vbi.c 			if (vi->cc_payload_idx && cc.odd[0] == 0x80 && cc.odd[1] == 0x80)
vi                162 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c static int pvr2_enum_input(struct file *file, void *priv, struct v4l2_input *vi)
vi                174 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	tmp.index = vi->index;
vi                175 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	if (vi->index >= fh->input_cnt)
vi                177 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	val = fh->input_map[vi->index];
vi                206 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	*vi = tmp;
vi                480 drivers/media/usb/usbvision/usbvision-video.c 				struct v4l2_input *vi)
vi                485 drivers/media/usb/usbvision/usbvision-video.c 	if (vi->index >= usbvision->video_inputs)
vi                488 drivers/media/usb/usbvision/usbvision-video.c 		chan = vi->index;
vi                490 drivers/media/usb/usbvision/usbvision-video.c 		chan = vi->index + 1; /* skip Television string*/
vi                497 drivers/media/usb/usbvision/usbvision-video.c 			strscpy(vi->name, "White Video Input", sizeof(vi->name));
vi                499 drivers/media/usb/usbvision/usbvision-video.c 			strscpy(vi->name, "Television", sizeof(vi->name));
vi                500 drivers/media/usb/usbvision/usbvision-video.c 			vi->type = V4L2_INPUT_TYPE_TUNER;
vi                501 drivers/media/usb/usbvision/usbvision-video.c 			vi->tuner = chan;
vi                502 drivers/media/usb/usbvision/usbvision-video.c 			vi->std = USBVISION_NORMS;
vi                506 drivers/media/usb/usbvision/usbvision-video.c 		vi->type = V4L2_INPUT_TYPE_CAMERA;
vi                508 drivers/media/usb/usbvision/usbvision-video.c 			strscpy(vi->name, "Green Video Input", sizeof(vi->name));
vi                510 drivers/media/usb/usbvision/usbvision-video.c 			strscpy(vi->name, "Composite Video Input",
vi                511 drivers/media/usb/usbvision/usbvision-video.c 				sizeof(vi->name));
vi                512 drivers/media/usb/usbvision/usbvision-video.c 		vi->std = USBVISION_NORMS;
vi                515 drivers/media/usb/usbvision/usbvision-video.c 		vi->type = V4L2_INPUT_TYPE_CAMERA;
vi                517 drivers/media/usb/usbvision/usbvision-video.c 			strscpy(vi->name, "Yellow Video Input", sizeof(vi->name));
vi                519 drivers/media/usb/usbvision/usbvision-video.c 			strscpy(vi->name, "S-Video Input", sizeof(vi->name));
vi                520 drivers/media/usb/usbvision/usbvision-video.c 		vi->std = USBVISION_NORMS;
vi                523 drivers/media/usb/usbvision/usbvision-video.c 		vi->type = V4L2_INPUT_TYPE_CAMERA;
vi                524 drivers/media/usb/usbvision/usbvision-video.c 		strscpy(vi->name, "Red Video Input", sizeof(vi->name));
vi                525 drivers/media/usb/usbvision/usbvision-video.c 		vi->std = USBVISION_NORMS;
vi                 21 drivers/misc/mic/vop/vop_debugfs.c 	struct vop_info *vi = s->private;
vi                 22 drivers/misc/mic/vop/vop_debugfs.c 	struct vop_device *vpdev = vi->vpdev;
vi                 88 drivers/misc/mic/vop/vop_debugfs.c 	schedule_work(&vi->hotplug_work);
vi                 96 drivers/misc/mic/vop/vop_debugfs.c 	struct vop_info *vi = s->private;
vi                101 drivers/misc/mic/vop/vop_debugfs.c 	mutex_lock(&vi->vop_mutex);
vi                102 drivers/misc/mic/vop/vop_debugfs.c 	list_for_each_safe(pos, tmp, &vi->vdev_list) {
vi                164 drivers/misc/mic/vop/vop_debugfs.c 	mutex_unlock(&vi->vop_mutex);
vi                171 drivers/misc/mic/vop/vop_debugfs.c void vop_init_debugfs(struct vop_info *vi)
vi                175 drivers/misc/mic/vop/vop_debugfs.c 	snprintf(name, sizeof(name), "%s%d", KBUILD_MODNAME, vi->vpdev->dnode);
vi                176 drivers/misc/mic/vop/vop_debugfs.c 	vi->dbg = debugfs_create_dir(name, NULL);
vi                177 drivers/misc/mic/vop/vop_debugfs.c 	debugfs_create_file("dp", 0444, vi->dbg, vi, &vop_dp_fops);
vi                178 drivers/misc/mic/vop/vop_debugfs.c 	debugfs_create_file("vdev_info", 0444, vi->dbg, vi, &vop_vdev_info_fops);
vi                181 drivers/misc/mic/vop/vop_debugfs.c void vop_exit_debugfs(struct vop_info *vi)
vi                183 drivers/misc/mic/vop/vop_debugfs.c 	debugfs_remove_recursive(vi->dbg);
vi                663 drivers/misc/mic/vop/vop_main.c static void vop_scan_devices(struct vop_info *vi,
vi                670 drivers/misc/mic/vop/vop_main.c 	mutex_lock(&vi->vop_mutex);
vi                672 drivers/misc/mic/vop/vop_main.c 	mutex_unlock(&vi->vop_mutex);
vi                680 drivers/misc/mic/vop/vop_main.c 	struct vop_info *vi = container_of(work, struct vop_info,
vi                683 drivers/misc/mic/vop/vop_main.c 	vop_scan_devices(vi, vi->vpdev, !REMOVE_DEVICES);
vi                691 drivers/misc/mic/vop/vop_main.c 	struct vop_info *vi = data;
vi                693 drivers/misc/mic/vop/vop_main.c 	struct vop_device *vpdev = vi->vpdev;
vi                699 drivers/misc/mic/vop/vop_main.c 	schedule_work(&vi->hotplug_work);
vi                705 drivers/misc/mic/vop/vop_main.c 	struct vop_info *vi;
vi                708 drivers/misc/mic/vop/vop_main.c 	vi = kzalloc(sizeof(*vi), GFP_KERNEL);
vi                709 drivers/misc/mic/vop/vop_main.c 	if (!vi) {
vi                713 drivers/misc/mic/vop/vop_main.c 	dev_set_drvdata(&vpdev->dev, vi);
vi                714 drivers/misc/mic/vop/vop_main.c 	vi->vpdev = vpdev;
vi                716 drivers/misc/mic/vop/vop_main.c 	mutex_init(&vi->vop_mutex);
vi                717 drivers/misc/mic/vop/vop_main.c 	INIT_WORK(&vi->hotplug_work, vop_hotplug_devices);
vi                719 drivers/misc/mic/vop/vop_main.c 		rc = vop_host_init(vi);
vi                725 drivers/misc/mic/vop/vop_main.c 		vop_scan_devices(vi, vpdev, !REMOVE_DEVICES);
vi                727 drivers/misc/mic/vop/vop_main.c 		vi->h2c_config_db = vpdev->hw_ops->next_db(vpdev);
vi                728 drivers/misc/mic/vop/vop_main.c 		vi->cookie = vpdev->hw_ops->request_irq(vpdev,
vi                731 drivers/misc/mic/vop/vop_main.c 							vi, vi->h2c_config_db);
vi                732 drivers/misc/mic/vop/vop_main.c 		if (IS_ERR(vi->cookie)) {
vi                733 drivers/misc/mic/vop/vop_main.c 			rc = PTR_ERR(vi->cookie);
vi                737 drivers/misc/mic/vop/vop_main.c 		iowrite8(vi->h2c_config_db, &bootparam->h2c_config_db);
vi                739 drivers/misc/mic/vop/vop_main.c 	vop_init_debugfs(vi);
vi                742 drivers/misc/mic/vop/vop_main.c 	kfree(vi);
vi                749 drivers/misc/mic/vop/vop_main.c 	struct vop_info *vi = dev_get_drvdata(&vpdev->dev);
vi                752 drivers/misc/mic/vop/vop_main.c 		vop_host_uninit(vi);
vi                758 drivers/misc/mic/vop/vop_main.c 		vpdev->hw_ops->free_irq(vpdev, vi->cookie, vi);
vi                759 drivers/misc/mic/vop/vop_main.c 		flush_work(&vi->hotplug_work);
vi                760 drivers/misc/mic/vop/vop_main.c 		vop_scan_devices(vi, vpdev, REMOVE_DEVICES);
vi                762 drivers/misc/mic/vop/vop_main.c 	vop_exit_debugfs(vi);
vi                763 drivers/misc/mic/vop/vop_main.c 	kfree(vi);
vi                142 drivers/misc/mic/vop/vop_main.h 	struct vop_info *vi;
vi                154 drivers/misc/mic/vop/vop_main.h void vop_init_debugfs(struct vop_info *vi);
vi                155 drivers/misc/mic/vop/vop_main.h void vop_exit_debugfs(struct vop_info *vi);
vi                156 drivers/misc/mic/vop/vop_main.h int vop_host_init(struct vop_info *vi);
vi                157 drivers/misc/mic/vop/vop_main.h void vop_host_uninit(struct vop_info *vi);
vi                115 drivers/misc/mic/vop/vop_vringh.c static void vop_virtio_reset_devices(struct vop_info *vi)
vi                120 drivers/misc/mic/vop/vop_vringh.c 	list_for_each_safe(pos, tmp, &vi->vdev_list) {
vi                158 drivers/misc/mic/vop/vop_vringh.c 	struct vop_info *vi = dev_get_drvdata(&vpdev->dev);
vi                162 drivers/misc/mic/vop/vop_vringh.c 	mutex_lock(&vi->vop_mutex);
vi                189 drivers/misc/mic/vop/vop_vringh.c 	mutex_unlock(&vi->vop_mutex);
vi                262 drivers/misc/mic/vop/vop_vringh.c 	struct vop_info *vi = vdev->vi;
vi                263 drivers/misc/mic/vop/vop_vringh.c 	struct vop_device *vpdev = vi->vpdev;
vi                420 drivers/misc/mic/vop/vop_vringh.c 	struct vop_info *vi = vdev->vi;
vi                428 drivers/misc/mic/vop/vop_vringh.c 	vop_dev_remove(vi, vdev->dc, vpdev);
vi                475 drivers/misc/mic/vop/vop_vringh.c 	struct vop_info *vi = dev_get_drvdata(&vdev->vpdev->dev);
vi                476 drivers/misc/mic/vop/vop_vringh.c 	struct dma_chan *vop_ch = vi->dma_ch;
vi                501 drivers/misc/mic/vop/vop_vringh.c 		dev_err(&vi->vpdev->dev, "%s %d err %d\n",
vi                521 drivers/misc/mic/vop/vop_vringh.c 	struct vop_info *vi = dev_get_drvdata(&vpdev->dev);
vi                527 drivers/misc/mic/vop/vop_vringh.c 	if (!VOP_USE_DMA || !vi->dma_ch) {
vi                539 drivers/misc/mic/vop/vop_vringh.c 	dma_alignment = 1 << vi->dma_ch->device->copy_align;
vi                540 drivers/misc/mic/vop/vop_vringh.c 	x200 = is_dma_copy_aligned(vi->dma_ch->device, 1, 1, 1);
vi                599 drivers/misc/mic/vop/vop_vringh.c 	struct vop_info *vi = dev_get_drvdata(&vdev->vpdev->dev);
vi                603 drivers/misc/mic/vop/vop_vringh.c 	bool dma = VOP_USE_DMA && vi->dma_ch;
vi                607 drivers/misc/mic/vop/vop_vringh.c 		dma_alignment = 1 << vi->dma_ch->device->copy_align;
vi                608 drivers/misc/mic/vop/vop_vringh.c 		x200 = is_dma_copy_aligned(vi->dma_ch->device, 1, 1, 1);
vi                874 drivers/misc/mic/vop/vop_vringh.c 	struct vop_info *vi = container_of(f->private_data,
vi                880 drivers/misc/mic/vop/vop_vringh.c 	vdev->vi = vi;
vi                891 drivers/misc/mic/vop/vop_vringh.c 	struct vop_info *vi = vdev->vi;
vi                898 drivers/misc/mic/vop/vop_vringh.c 	mutex_lock(&vi->vop_mutex);
vi                899 drivers/misc/mic/vop/vop_vringh.c 	list_for_each_safe(pos, tmp, &vi->vdev_list) {
vi                908 drivers/misc/mic/vop/vop_vringh.c 	mutex_unlock(&vi->vop_mutex);
vi                921 drivers/misc/mic/vop/vop_vringh.c 	struct vop_info *vi = vdev->vi;
vi                947 drivers/misc/mic/vop/vop_vringh.c 		mutex_lock(&vi->vop_mutex);
vi                951 drivers/misc/mic/vop/vop_vringh.c 		list_add_tail(&vdev->list, &vi->vdev_list);
vi                953 drivers/misc/mic/vop/vop_vringh.c 		mutex_unlock(&vi->vop_mutex);
vi               1116 drivers/misc/mic/vop/vop_vringh.c int vop_host_init(struct vop_info *vi)
vi               1120 drivers/misc/mic/vop/vop_vringh.c 	struct vop_device *vpdev = vi->vpdev;
vi               1122 drivers/misc/mic/vop/vop_vringh.c 	INIT_LIST_HEAD(&vi->vdev_list);
vi               1123 drivers/misc/mic/vop/vop_vringh.c 	vi->dma_ch = vpdev->dma_ch;
vi               1124 drivers/misc/mic/vop/vop_vringh.c 	mdev = &vi->miscdev;
vi               1126 drivers/misc/mic/vop/vop_vringh.c 	snprintf(vi->name, sizeof(vi->name), "vop_virtio%d", vpdev->index);
vi               1127 drivers/misc/mic/vop/vop_vringh.c 	mdev->name = vi->name;
vi               1137 drivers/misc/mic/vop/vop_vringh.c void vop_host_uninit(struct vop_info *vi)
vi               1142 drivers/misc/mic/vop/vop_vringh.c 	mutex_lock(&vi->vop_mutex);
vi               1143 drivers/misc/mic/vop/vop_vringh.c 	vop_virtio_reset_devices(vi);
vi               1144 drivers/misc/mic/vop/vop_vringh.c 	list_for_each_safe(pos, tmp, &vi->vdev_list) {
vi               1148 drivers/misc/mic/vop/vop_vringh.c 		mutex_unlock(&vi->vop_mutex);
vi               1154 drivers/misc/mic/vop/vop_vringh.c 		mutex_lock(&vi->vop_mutex);
vi               1156 drivers/misc/mic/vop/vop_vringh.c 	mutex_unlock(&vi->vop_mutex);
vi               1157 drivers/misc/mic/vop/vop_vringh.c 	misc_deregister(&vi->miscdev);
vi                348 drivers/mtd/ubi/block.c static int calc_disk_capacity(struct ubi_volume_info *vi, u64 *disk_capacity)
vi                350 drivers/mtd/ubi/block.c 	u64 size = vi->used_bytes >> 9;
vi                352 drivers/mtd/ubi/block.c 	if (vi->used_bytes % 512) {
vi                355 drivers/mtd/ubi/block.c 			vi->used_bytes - (size << 9));
vi                366 drivers/mtd/ubi/block.c int ubiblock_create(struct ubi_volume_info *vi)
vi                373 drivers/mtd/ubi/block.c 	ret = calc_disk_capacity(vi, &disk_capacity);
vi                380 drivers/mtd/ubi/block.c 	if (find_dev_nolock(vi->ubi_num, vi->vol_id)) {
vi                393 drivers/mtd/ubi/block.c 	dev->ubi_num = vi->ubi_num;
vi                394 drivers/mtd/ubi/block.c 	dev->vol_id = vi->vol_id;
vi                395 drivers/mtd/ubi/block.c 	dev->leb_size = vi->usable_leb_size;
vi                459 drivers/mtd/ubi/block.c 		 dev->ubi_num, dev->vol_id, vi->name);
vi                493 drivers/mtd/ubi/block.c int ubiblock_remove(struct ubi_volume_info *vi)
vi                499 drivers/mtd/ubi/block.c 	dev = find_dev_nolock(vi->ubi_num, vi->vol_id);
vi                528 drivers/mtd/ubi/block.c static int ubiblock_resize(struct ubi_volume_info *vi)
vi                540 drivers/mtd/ubi/block.c 	dev = find_dev_nolock(vi->ubi_num, vi->vol_id);
vi                546 drivers/mtd/ubi/block.c 	ret = calc_disk_capacity(vi, &disk_capacity);
vi                552 drivers/mtd/ubi/block.c 				 vi->size);
vi                562 drivers/mtd/ubi/block.c 			 vi->used_bytes);
vi                582 drivers/mtd/ubi/block.c 		ubiblock_remove(&nt->vi);
vi                585 drivers/mtd/ubi/block.c 		ubiblock_resize(&nt->vi);
vi                592 drivers/mtd/ubi/block.c 		if (nt->vi.vol_type == UBI_STATIC_VOLUME)
vi                593 drivers/mtd/ubi/block.c 			ubiblock_resize(&nt->vi);
vi                623 drivers/mtd/ubi/block.c 	struct ubi_volume_info vi;
vi                642 drivers/mtd/ubi/block.c 		ubi_get_volume_info(desc, &vi);
vi                645 drivers/mtd/ubi/block.c 		ret = ubiblock_create(&vi);
vi                649 drivers/mtd/ubi/block.c 			       vi.name, p->ubi_num, p->vol_id, ret);
vi                160 drivers/mtd/ubi/build.c 	ubi_do_get_volume_info(ubi, vol, &nt.vi);
vi                203 drivers/mtd/ubi/build.c 		ubi_do_get_volume_info(ubi, ubi->volumes[i], &nt.vi);
vi                562 drivers/mtd/ubi/cdev.c 		struct ubi_volume_info vi;
vi                564 drivers/mtd/ubi/cdev.c 		ubi_get_volume_info(desc, &vi);
vi                565 drivers/mtd/ubi/cdev.c 		err = ubiblock_create(&vi);
vi                572 drivers/mtd/ubi/cdev.c 		struct ubi_volume_info vi;
vi                574 drivers/mtd/ubi/cdev.c 		ubi_get_volume_info(desc, &vi);
vi                575 drivers/mtd/ubi/cdev.c 		err = ubiblock_remove(&vi);
vi                279 drivers/mtd/ubi/gluebi.c 			 struct ubi_volume_info *vi)
vi                289 drivers/mtd/ubi/gluebi.c 	mtd->name = kmemdup(vi->name, vi->name_len + 1, GFP_KERNEL);
vi                295 drivers/mtd/ubi/gluebi.c 	gluebi->vol_id = vi->vol_id;
vi                296 drivers/mtd/ubi/gluebi.c 	gluebi->ubi_num = vi->ubi_num;
vi                302 drivers/mtd/ubi/gluebi.c 	mtd->erasesize  = vi->usable_leb_size;
vi                314 drivers/mtd/ubi/gluebi.c 	if (vi->vol_type == UBI_DYNAMIC_VOLUME)
vi                315 drivers/mtd/ubi/gluebi.c 		mtd->size = (unsigned long long)vi->usable_leb_size * vi->size;
vi                317 drivers/mtd/ubi/gluebi.c 		mtd->size = vi->used_bytes;
vi                321 drivers/mtd/ubi/gluebi.c 	g = find_gluebi_nolock(vi->ubi_num, vi->vol_id);
vi                324 drivers/mtd/ubi/gluebi.c 			g->mtd.index, vi->ubi_num, vi->vol_id);
vi                348 drivers/mtd/ubi/gluebi.c static int gluebi_remove(struct ubi_volume_info *vi)
vi                355 drivers/mtd/ubi/gluebi.c 	gluebi = find_gluebi_nolock(vi->ubi_num, vi->vol_id);
vi                358 drivers/mtd/ubi/gluebi.c 			vi->ubi_num, vi->vol_id);
vi                394 drivers/mtd/ubi/gluebi.c static int gluebi_updated(struct ubi_volume_info *vi)
vi                399 drivers/mtd/ubi/gluebi.c 	gluebi = find_gluebi_nolock(vi->ubi_num, vi->vol_id);
vi                403 drivers/mtd/ubi/gluebi.c 			vi->ubi_num, vi->vol_id);
vi                407 drivers/mtd/ubi/gluebi.c 	if (vi->vol_type == UBI_STATIC_VOLUME)
vi                408 drivers/mtd/ubi/gluebi.c 		gluebi->mtd.size = vi->used_bytes;
vi                421 drivers/mtd/ubi/gluebi.c static int gluebi_resized(struct ubi_volume_info *vi)
vi                426 drivers/mtd/ubi/gluebi.c 	gluebi = find_gluebi_nolock(vi->ubi_num, vi->vol_id);
vi                430 drivers/mtd/ubi/gluebi.c 			vi->ubi_num, vi->vol_id);
vi                433 drivers/mtd/ubi/gluebi.c 	gluebi->mtd.size = vi->used_bytes;
vi                451 drivers/mtd/ubi/gluebi.c 		gluebi_create(&nt->di, &nt->vi);
vi                454 drivers/mtd/ubi/gluebi.c 		gluebi_remove(&nt->vi);
vi                457 drivers/mtd/ubi/gluebi.c 		gluebi_resized(&nt->vi);
vi                460 drivers/mtd/ubi/gluebi.c 		gluebi_updated(&nt->vi);
vi                 68 drivers/mtd/ubi/kapi.c 			    struct ubi_volume_info *vi)
vi                 70 drivers/mtd/ubi/kapi.c 	vi->vol_id = vol->vol_id;
vi                 71 drivers/mtd/ubi/kapi.c 	vi->ubi_num = ubi->ubi_num;
vi                 72 drivers/mtd/ubi/kapi.c 	vi->size = vol->reserved_pebs;
vi                 73 drivers/mtd/ubi/kapi.c 	vi->used_bytes = vol->used_bytes;
vi                 74 drivers/mtd/ubi/kapi.c 	vi->vol_type = vol->vol_type;
vi                 75 drivers/mtd/ubi/kapi.c 	vi->corrupted = vol->corrupted;
vi                 76 drivers/mtd/ubi/kapi.c 	vi->upd_marker = vol->upd_marker;
vi                 77 drivers/mtd/ubi/kapi.c 	vi->alignment = vol->alignment;
vi                 78 drivers/mtd/ubi/kapi.c 	vi->usable_leb_size = vol->usable_leb_size;
vi                 79 drivers/mtd/ubi/kapi.c 	vi->name_len = vol->name_len;
vi                 80 drivers/mtd/ubi/kapi.c 	vi->name = vol->name;
vi                 81 drivers/mtd/ubi/kapi.c 	vi->cdev = vol->cdev.dev;
vi                 90 drivers/mtd/ubi/kapi.c 			 struct ubi_volume_info *vi)
vi                 92 drivers/mtd/ubi/kapi.c 	ubi_do_get_volume_info(desc->vol->ubi, desc->vol, vi);
vi                956 drivers/mtd/ubi/ubi.h 			    struct ubi_volume_info *vi);
vi                979 drivers/mtd/ubi/ubi.h int ubiblock_create(struct ubi_volume_info *vi);
vi                980 drivers/mtd/ubi/ubi.h int ubiblock_remove(struct ubi_volume_info *vi);
vi                984 drivers/mtd/ubi/ubi.h static inline int ubiblock_create(struct ubi_volume_info *vi)
vi                988 drivers/mtd/ubi/ubi.h static inline int ubiblock_remove(struct ubi_volume_info *vi)
vi               1785 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h 		unsigned int vi, unsigned int cmask, unsigned int pmask,
vi               7589 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 		unsigned int vi, unsigned int cmask, unsigned int pmask,
vi               7605 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 				      FW_PFVF_CMD_NVI_V(vi) |
vi               1897 drivers/net/ethernet/emulex/benet/be_main.c 			    struct ifla_vf_info *vi)
vi               1908 drivers/net/ethernet/emulex/benet/be_main.c 	vi->vf = vf;
vi               1909 drivers/net/ethernet/emulex/benet/be_main.c 	vi->max_tx_rate = vf_cfg->tx_rate;
vi               1910 drivers/net/ethernet/emulex/benet/be_main.c 	vi->min_tx_rate = 0;
vi               1911 drivers/net/ethernet/emulex/benet/be_main.c 	vi->vlan = vf_cfg->vlan_tag & VLAN_VID_MASK;
vi               1912 drivers/net/ethernet/emulex/benet/be_main.c 	vi->qos = vf_cfg->vlan_tag >> VLAN_PRIO_SHIFT;
vi               1913 drivers/net/ethernet/emulex/benet/be_main.c 	memcpy(&vi->mac, vf_cfg->mac_addr, ETH_ALEN);
vi               1914 drivers/net/ethernet/emulex/benet/be_main.c 	vi->linkstate = adapter->vf_cfg[vf].plink_tracking;
vi               1915 drivers/net/ethernet/emulex/benet/be_main.c 	vi->spoofchk = adapter->vf_cfg[vf].spoofchk;
vi                339 drivers/net/virtio_net.c 	struct virtnet_info *vi = vq->vdev->priv;
vi                340 drivers/net/virtio_net.c 	struct napi_struct *napi = &vi->sq[vq2txq(vq)].napi;
vi                349 drivers/net/virtio_net.c 		netif_wake_subqueue(vi->dev, vq2txq(vq));
vi                370 drivers/net/virtio_net.c static struct sk_buff *page_to_skb(struct virtnet_info *vi,
vi                390 drivers/net/virtio_net.c 	hdr_len = vi->hdr_len;
vi                391 drivers/net/virtio_net.c 	if (vi->mergeable_rx_bufs)
vi                411 drivers/net/virtio_net.c 	if (vi->mergeable_rx_bufs) {
vi                446 drivers/net/virtio_net.c static int __virtnet_xdp_xmit_one(struct virtnet_info *vi,
vi                457 drivers/net/virtio_net.c 	if (unlikely(xdpf->headroom < vi->hdr_len))
vi                461 drivers/net/virtio_net.c 	xdpf->data -= vi->hdr_len;
vi                464 drivers/net/virtio_net.c 	memset(hdr, 0, vi->hdr_len);
vi                465 drivers/net/virtio_net.c 	xdpf->len   += vi->hdr_len;
vi                477 drivers/net/virtio_net.c static struct send_queue *virtnet_xdp_sq(struct virtnet_info *vi)
vi                481 drivers/net/virtio_net.c 	qp = vi->curr_queue_pairs - vi->xdp_queue_pairs + smp_processor_id();
vi                482 drivers/net/virtio_net.c 	return &vi->sq[qp];
vi                488 drivers/net/virtio_net.c 	struct virtnet_info *vi = netdev_priv(dev);
vi                489 drivers/net/virtio_net.c 	struct receive_queue *rq = vi->rq;
vi                508 drivers/net/virtio_net.c 	sq = virtnet_xdp_sq(vi);
vi                535 drivers/net/virtio_net.c 		err = __virtnet_xdp_xmit_one(vi, sq, xdpf);
vi                559 drivers/net/virtio_net.c static unsigned int virtnet_get_headroom(struct virtnet_info *vi)
vi                561 drivers/net/virtio_net.c 	return vi->xdp_queue_pairs ? VIRTIO_XDP_HEADROOM : 0;
vi                629 drivers/net/virtio_net.c 				     struct virtnet_info *vi,
vi                640 drivers/net/virtio_net.c 	unsigned int headroom = vi->hdr_len + header_offset;
vi                648 drivers/net/virtio_net.c 	len -= vi->hdr_len;
vi                663 drivers/net/virtio_net.c 		if (unlikely(xdp_headroom < virtnet_get_headroom(vi))) {
vi                665 drivers/net/virtio_net.c 			unsigned int tlen = len + vi->hdr_len;
vi                668 drivers/net/virtio_net.c 			xdp_headroom = virtnet_get_headroom(vi);
vi                670 drivers/net/virtio_net.c 			headroom = vi->hdr_len + header_offset;
vi                684 drivers/net/virtio_net.c 		xdp.data_hard_start = buf + VIRTNET_RX_PAD + vi->hdr_len;
vi                706 drivers/net/virtio_net.c 				trace_xdp_exception(vi->dev, xdp_prog, act);
vi                724 drivers/net/virtio_net.c 			trace_xdp_exception(vi->dev, xdp_prog, act);
vi                740 drivers/net/virtio_net.c 		memcpy(skb_vnet_hdr(skb), buf, vi->hdr_len);
vi                756 drivers/net/virtio_net.c 				   struct virtnet_info *vi,
vi                763 drivers/net/virtio_net.c 	struct sk_buff *skb = page_to_skb(vi, rq, page, 0, len,
vi                766 drivers/net/virtio_net.c 	stats->bytes += len - vi->hdr_len;
vi                779 drivers/net/virtio_net.c 					 struct virtnet_info *vi,
vi                788 drivers/net/virtio_net.c 	u16 num_buf = virtio16_to_cpu(vi->vdev, hdr->num_buffers);
vi                798 drivers/net/virtio_net.c 	stats->bytes += len - vi->hdr_len;
vi                823 drivers/net/virtio_net.c 			     headroom < virtnet_get_headroom(vi))) {
vi                840 drivers/net/virtio_net.c 		xdp.data_hard_start = data - VIRTIO_XDP_HEADROOM + vi->hdr_len;
vi                841 drivers/net/virtio_net.c 		xdp.data = data + vi->hdr_len;
vi                843 drivers/net/virtio_net.c 		xdp.data_end = xdp.data + (len - vi->hdr_len);
vi                856 drivers/net/virtio_net.c 					page_address(xdp_page) - vi->hdr_len;
vi                861 drivers/net/virtio_net.c 			len = xdp.data_end - xdp.data + vi->hdr_len;
vi                866 drivers/net/virtio_net.c 				head_skb = page_to_skb(vi, rq, xdp_page,
vi                879 drivers/net/virtio_net.c 				trace_xdp_exception(vi->dev, xdp_prog, act);
vi                906 drivers/net/virtio_net.c 			trace_xdp_exception(vi->dev, xdp_prog, act);
vi                924 drivers/net/virtio_net.c 	head_skb = page_to_skb(vi, rq, page, offset, len, truesize, !xdp_prog);
vi                936 drivers/net/virtio_net.c 				 virtio16_to_cpu(vi->vdev,
vi               1010 drivers/net/virtio_net.c static void receive_buf(struct virtnet_info *vi, struct receive_queue *rq,
vi               1015 drivers/net/virtio_net.c 	struct net_device *dev = vi->dev;
vi               1019 drivers/net/virtio_net.c 	if (unlikely(len < vi->hdr_len + ETH_HLEN)) {
vi               1022 drivers/net/virtio_net.c 		if (vi->mergeable_rx_bufs) {
vi               1024 drivers/net/virtio_net.c 		} else if (vi->big_packets) {
vi               1032 drivers/net/virtio_net.c 	if (vi->mergeable_rx_bufs)
vi               1033 drivers/net/virtio_net.c 		skb = receive_mergeable(dev, vi, rq, buf, ctx, len, xdp_xmit,
vi               1035 drivers/net/virtio_net.c 	else if (vi->big_packets)
vi               1036 drivers/net/virtio_net.c 		skb = receive_big(dev, vi, rq, buf, len, stats);
vi               1038 drivers/net/virtio_net.c 		skb = receive_small(dev, vi, rq, buf, ctx, len, xdp_xmit, stats);
vi               1049 drivers/net/virtio_net.c 				  virtio_is_little_endian(vi->vdev))) {
vi               1074 drivers/net/virtio_net.c static int add_recvbuf_small(struct virtnet_info *vi, struct receive_queue *rq,
vi               1079 drivers/net/virtio_net.c 	unsigned int xdp_headroom = virtnet_get_headroom(vi);
vi               1081 drivers/net/virtio_net.c 	int len = vi->hdr_len + VIRTNET_RX_PAD + GOOD_PACKET_LEN + xdp_headroom;
vi               1093 drivers/net/virtio_net.c 		    vi->hdr_len + GOOD_PACKET_LEN);
vi               1100 drivers/net/virtio_net.c static int add_recvbuf_big(struct virtnet_info *vi, struct receive_queue *rq,
vi               1133 drivers/net/virtio_net.c 	sg_set_buf(&rq->sg[0], p, vi->hdr_len);
vi               1165 drivers/net/virtio_net.c static int add_recvbuf_mergeable(struct virtnet_info *vi,
vi               1169 drivers/net/virtio_net.c 	unsigned int headroom = virtnet_get_headroom(vi);
vi               1215 drivers/net/virtio_net.c static bool try_fill_recv(struct virtnet_info *vi, struct receive_queue *rq,
vi               1222 drivers/net/virtio_net.c 		if (vi->mergeable_rx_bufs)
vi               1223 drivers/net/virtio_net.c 			err = add_recvbuf_mergeable(vi, rq, gfp);
vi               1224 drivers/net/virtio_net.c 		else if (vi->big_packets)
vi               1225 drivers/net/virtio_net.c 			err = add_recvbuf_big(vi, rq, gfp);
vi               1227 drivers/net/virtio_net.c 			err = add_recvbuf_small(vi, rq, gfp);
vi               1246 drivers/net/virtio_net.c 	struct virtnet_info *vi = rvq->vdev->priv;
vi               1247 drivers/net/virtio_net.c 	struct receive_queue *rq = &vi->rq[vq2rxq(rvq)];
vi               1265 drivers/net/virtio_net.c static void virtnet_napi_tx_enable(struct virtnet_info *vi,
vi               1275 drivers/net/virtio_net.c 	if (!vi->affinity_hint_set) {
vi               1291 drivers/net/virtio_net.c 	struct virtnet_info *vi =
vi               1296 drivers/net/virtio_net.c 	for (i = 0; i < vi->curr_queue_pairs; i++) {
vi               1297 drivers/net/virtio_net.c 		struct receive_queue *rq = &vi->rq[i];
vi               1300 drivers/net/virtio_net.c 		still_empty = !try_fill_recv(vi, rq, GFP_KERNEL);
vi               1307 drivers/net/virtio_net.c 			schedule_delayed_work(&vi->refill, HZ/2);
vi               1314 drivers/net/virtio_net.c 	struct virtnet_info *vi = rq->vq->vdev->priv;
vi               1320 drivers/net/virtio_net.c 	if (!vi->big_packets || vi->mergeable_rx_bufs) {
vi               1325 drivers/net/virtio_net.c 			receive_buf(vi, rq, buf, len, ctx, xdp_xmit, &stats);
vi               1331 drivers/net/virtio_net.c 			receive_buf(vi, rq, buf, len, NULL, xdp_xmit, &stats);
vi               1337 drivers/net/virtio_net.c 		if (!try_fill_recv(vi, rq, GFP_ATOMIC))
vi               1338 drivers/net/virtio_net.c 			schedule_delayed_work(&vi->refill, 0);
vi               1390 drivers/net/virtio_net.c static bool is_xdp_raw_buffer_queue(struct virtnet_info *vi, int q)
vi               1392 drivers/net/virtio_net.c 	if (q < (vi->curr_queue_pairs - vi->xdp_queue_pairs))
vi               1394 drivers/net/virtio_net.c 	else if (q < vi->curr_queue_pairs)
vi               1402 drivers/net/virtio_net.c 	struct virtnet_info *vi = rq->vq->vdev->priv;
vi               1404 drivers/net/virtio_net.c 	struct send_queue *sq = &vi->sq[index];
vi               1405 drivers/net/virtio_net.c 	struct netdev_queue *txq = netdev_get_tx_queue(vi->dev, index);
vi               1407 drivers/net/virtio_net.c 	if (!sq->napi.weight || is_xdp_raw_buffer_queue(vi, index))
vi               1423 drivers/net/virtio_net.c 	struct virtnet_info *vi = rq->vq->vdev->priv;
vi               1440 drivers/net/virtio_net.c 		sq = virtnet_xdp_sq(vi);
vi               1453 drivers/net/virtio_net.c 	struct virtnet_info *vi = netdev_priv(dev);
vi               1456 drivers/net/virtio_net.c 	for (i = 0; i < vi->max_queue_pairs; i++) {
vi               1457 drivers/net/virtio_net.c 		if (i < vi->curr_queue_pairs)
vi               1459 drivers/net/virtio_net.c 			if (!try_fill_recv(vi, &vi->rq[i], GFP_KERNEL))
vi               1460 drivers/net/virtio_net.c 				schedule_delayed_work(&vi->refill, 0);
vi               1462 drivers/net/virtio_net.c 		err = xdp_rxq_info_reg(&vi->rq[i].xdp_rxq, dev, i);
vi               1466 drivers/net/virtio_net.c 		err = xdp_rxq_info_reg_mem_model(&vi->rq[i].xdp_rxq,
vi               1469 drivers/net/virtio_net.c 			xdp_rxq_info_unreg(&vi->rq[i].xdp_rxq);
vi               1473 drivers/net/virtio_net.c 		virtnet_napi_enable(vi->rq[i].vq, &vi->rq[i].napi);
vi               1474 drivers/net/virtio_net.c 		virtnet_napi_tx_enable(vi, vi->sq[i].vq, &vi->sq[i].napi);
vi               1483 drivers/net/virtio_net.c 	struct virtnet_info *vi = sq->vq->vdev->priv;
vi               1487 drivers/net/virtio_net.c 	if (unlikely(is_xdp_raw_buffer_queue(vi, index))) {
vi               1493 drivers/net/virtio_net.c 	txq = netdev_get_tx_queue(vi->dev, index);
vi               1510 drivers/net/virtio_net.c 	struct virtnet_info *vi = sq->vq->vdev->priv;
vi               1512 drivers/net/virtio_net.c 	unsigned hdr_len = vi->hdr_len;
vi               1515 drivers/net/virtio_net.c 	pr_debug("%s: xmit %p %pM\n", vi->dev->name, skb, dest);
vi               1517 drivers/net/virtio_net.c 	can_push = vi->any_header_sg &&
vi               1528 drivers/net/virtio_net.c 				    virtio_is_little_endian(vi->vdev), false,
vi               1532 drivers/net/virtio_net.c 	if (vi->mergeable_rx_bufs)
vi               1555 drivers/net/virtio_net.c 	struct virtnet_info *vi = netdev_priv(dev);
vi               1557 drivers/net/virtio_net.c 	struct send_queue *sq = &vi->sq[qnum];
vi               1632 drivers/net/virtio_net.c static bool virtnet_send_command(struct virtnet_info *vi, u8 class, u8 cmd,
vi               1639 drivers/net/virtio_net.c 	BUG_ON(!virtio_has_feature(vi->vdev, VIRTIO_NET_F_CTRL_VQ));
vi               1641 drivers/net/virtio_net.c 	vi->ctrl->status = ~0;
vi               1642 drivers/net/virtio_net.c 	vi->ctrl->hdr.class = class;
vi               1643 drivers/net/virtio_net.c 	vi->ctrl->hdr.cmd = cmd;
vi               1645 drivers/net/virtio_net.c 	sg_init_one(&hdr, &vi->ctrl->hdr, sizeof(vi->ctrl->hdr));
vi               1652 drivers/net/virtio_net.c 	sg_init_one(&stat, &vi->ctrl->status, sizeof(vi->ctrl->status));
vi               1656 drivers/net/virtio_net.c 	virtqueue_add_sgs(vi->cvq, sgs, out_num, 1, vi, GFP_ATOMIC);
vi               1658 drivers/net/virtio_net.c 	if (unlikely(!virtqueue_kick(vi->cvq)))
vi               1659 drivers/net/virtio_net.c 		return vi->ctrl->status == VIRTIO_NET_OK;
vi               1664 drivers/net/virtio_net.c 	while (!virtqueue_get_buf(vi->cvq, &tmp) &&
vi               1665 drivers/net/virtio_net.c 	       !virtqueue_is_broken(vi->cvq))
vi               1668 drivers/net/virtio_net.c 	return vi->ctrl->status == VIRTIO_NET_OK;
vi               1673 drivers/net/virtio_net.c 	struct virtnet_info *vi = netdev_priv(dev);
vi               1674 drivers/net/virtio_net.c 	struct virtio_device *vdev = vi->vdev;
vi               1679 drivers/net/virtio_net.c 	if (virtio_has_feature(vi->vdev, VIRTIO_NET_F_STANDBY))
vi               1692 drivers/net/virtio_net.c 		if (!virtnet_send_command(vi, VIRTIO_NET_CTRL_MAC,
vi               1721 drivers/net/virtio_net.c 	struct virtnet_info *vi = netdev_priv(dev);
vi               1725 drivers/net/virtio_net.c 	for (i = 0; i < vi->max_queue_pairs; i++) {
vi               1727 drivers/net/virtio_net.c 		struct receive_queue *rq = &vi->rq[i];
vi               1728 drivers/net/virtio_net.c 		struct send_queue *sq = &vi->sq[i];
vi               1756 drivers/net/virtio_net.c static void virtnet_ack_link_announce(struct virtnet_info *vi)
vi               1759 drivers/net/virtio_net.c 	if (!virtnet_send_command(vi, VIRTIO_NET_CTRL_ANNOUNCE,
vi               1761 drivers/net/virtio_net.c 		dev_warn(&vi->dev->dev, "Failed to ack link announce.\n");
vi               1765 drivers/net/virtio_net.c static int _virtnet_set_queues(struct virtnet_info *vi, u16 queue_pairs)
vi               1768 drivers/net/virtio_net.c 	struct net_device *dev = vi->dev;
vi               1770 drivers/net/virtio_net.c 	if (!vi->has_cvq || !virtio_has_feature(vi->vdev, VIRTIO_NET_F_MQ))
vi               1773 drivers/net/virtio_net.c 	vi->ctrl->mq.virtqueue_pairs = cpu_to_virtio16(vi->vdev, queue_pairs);
vi               1774 drivers/net/virtio_net.c 	sg_init_one(&sg, &vi->ctrl->mq, sizeof(vi->ctrl->mq));
vi               1776 drivers/net/virtio_net.c 	if (!virtnet_send_command(vi, VIRTIO_NET_CTRL_MQ,
vi               1782 drivers/net/virtio_net.c 		vi->curr_queue_pairs = queue_pairs;
vi               1785 drivers/net/virtio_net.c 			schedule_delayed_work(&vi->refill, 0);
vi               1791 drivers/net/virtio_net.c static int virtnet_set_queues(struct virtnet_info *vi, u16 queue_pairs)
vi               1796 drivers/net/virtio_net.c 	err = _virtnet_set_queues(vi, queue_pairs);
vi               1803 drivers/net/virtio_net.c 	struct virtnet_info *vi = netdev_priv(dev);
vi               1807 drivers/net/virtio_net.c 	cancel_delayed_work_sync(&vi->refill);
vi               1809 drivers/net/virtio_net.c 	for (i = 0; i < vi->max_queue_pairs; i++) {
vi               1810 drivers/net/virtio_net.c 		xdp_rxq_info_unreg(&vi->rq[i].xdp_rxq);
vi               1811 drivers/net/virtio_net.c 		napi_disable(&vi->rq[i].napi);
vi               1812 drivers/net/virtio_net.c 		virtnet_napi_tx_disable(&vi->sq[i].napi);
vi               1820 drivers/net/virtio_net.c 	struct virtnet_info *vi = netdev_priv(dev);
vi               1830 drivers/net/virtio_net.c 	if (!virtio_has_feature(vi->vdev, VIRTIO_NET_F_CTRL_RX))
vi               1833 drivers/net/virtio_net.c 	vi->ctrl->promisc = ((dev->flags & IFF_PROMISC) != 0);
vi               1834 drivers/net/virtio_net.c 	vi->ctrl->allmulti = ((dev->flags & IFF_ALLMULTI) != 0);
vi               1836 drivers/net/virtio_net.c 	sg_init_one(sg, &vi->ctrl->promisc, sizeof(vi->ctrl->promisc));
vi               1838 drivers/net/virtio_net.c 	if (!virtnet_send_command(vi, VIRTIO_NET_CTRL_RX,
vi               1841 drivers/net/virtio_net.c 			 vi->ctrl->promisc ? "en" : "dis");
vi               1843 drivers/net/virtio_net.c 	sg_init_one(sg, &vi->ctrl->allmulti, sizeof(vi->ctrl->allmulti));
vi               1845 drivers/net/virtio_net.c 	if (!virtnet_send_command(vi, VIRTIO_NET_CTRL_RX,
vi               1848 drivers/net/virtio_net.c 			 vi->ctrl->allmulti ? "en" : "dis");
vi               1862 drivers/net/virtio_net.c 	mac_data->entries = cpu_to_virtio32(vi->vdev, uc_count);
vi               1873 drivers/net/virtio_net.c 	mac_data->entries = cpu_to_virtio32(vi->vdev, mc_count);
vi               1881 drivers/net/virtio_net.c 	if (!virtnet_send_command(vi, VIRTIO_NET_CTRL_MAC,
vi               1891 drivers/net/virtio_net.c 	struct virtnet_info *vi = netdev_priv(dev);
vi               1894 drivers/net/virtio_net.c 	vi->ctrl->vid = cpu_to_virtio16(vi->vdev, vid);
vi               1895 drivers/net/virtio_net.c 	sg_init_one(&sg, &vi->ctrl->vid, sizeof(vi->ctrl->vid));
vi               1897 drivers/net/virtio_net.c 	if (!virtnet_send_command(vi, VIRTIO_NET_CTRL_VLAN,
vi               1906 drivers/net/virtio_net.c 	struct virtnet_info *vi = netdev_priv(dev);
vi               1909 drivers/net/virtio_net.c 	vi->ctrl->vid = cpu_to_virtio16(vi->vdev, vid);
vi               1910 drivers/net/virtio_net.c 	sg_init_one(&sg, &vi->ctrl->vid, sizeof(vi->ctrl->vid));
vi               1912 drivers/net/virtio_net.c 	if (!virtnet_send_command(vi, VIRTIO_NET_CTRL_VLAN,
vi               1918 drivers/net/virtio_net.c static void virtnet_clean_affinity(struct virtnet_info *vi)
vi               1922 drivers/net/virtio_net.c 	if (vi->affinity_hint_set) {
vi               1923 drivers/net/virtio_net.c 		for (i = 0; i < vi->max_queue_pairs; i++) {
vi               1924 drivers/net/virtio_net.c 			virtqueue_set_affinity(vi->rq[i].vq, NULL);
vi               1925 drivers/net/virtio_net.c 			virtqueue_set_affinity(vi->sq[i].vq, NULL);
vi               1928 drivers/net/virtio_net.c 		vi->affinity_hint_set = false;
vi               1932 drivers/net/virtio_net.c static void virtnet_set_affinity(struct virtnet_info *vi)
vi               1942 drivers/net/virtio_net.c 		virtnet_clean_affinity(vi);
vi               1947 drivers/net/virtio_net.c 	stride = max_t(int, num_cpu / vi->curr_queue_pairs, 1);
vi               1948 drivers/net/virtio_net.c 	stragglers = num_cpu >= vi->curr_queue_pairs ?
vi               1949 drivers/net/virtio_net.c 			num_cpu % vi->curr_queue_pairs :
vi               1953 drivers/net/virtio_net.c 	for (i = 0; i < vi->curr_queue_pairs; i++) {
vi               1961 drivers/net/virtio_net.c 		virtqueue_set_affinity(vi->rq[i].vq, mask);
vi               1962 drivers/net/virtio_net.c 		virtqueue_set_affinity(vi->sq[i].vq, mask);
vi               1963 drivers/net/virtio_net.c 		__netif_set_xps_queue(vi->dev, cpumask_bits(mask), i, false);
vi               1967 drivers/net/virtio_net.c 	vi->affinity_hint_set = true;
vi               1973 drivers/net/virtio_net.c 	struct virtnet_info *vi = hlist_entry_safe(node, struct virtnet_info,
vi               1975 drivers/net/virtio_net.c 	virtnet_set_affinity(vi);
vi               1981 drivers/net/virtio_net.c 	struct virtnet_info *vi = hlist_entry_safe(node, struct virtnet_info,
vi               1983 drivers/net/virtio_net.c 	virtnet_set_affinity(vi);
vi               1989 drivers/net/virtio_net.c 	struct virtnet_info *vi = hlist_entry_safe(node, struct virtnet_info,
vi               1992 drivers/net/virtio_net.c 	virtnet_clean_affinity(vi);
vi               1998 drivers/net/virtio_net.c static int virtnet_cpu_notif_add(struct virtnet_info *vi)
vi               2002 drivers/net/virtio_net.c 	ret = cpuhp_state_add_instance_nocalls(virtionet_online, &vi->node);
vi               2006 drivers/net/virtio_net.c 					       &vi->node_dead);
vi               2009 drivers/net/virtio_net.c 	cpuhp_state_remove_instance_nocalls(virtionet_online, &vi->node);
vi               2013 drivers/net/virtio_net.c static void virtnet_cpu_notif_remove(struct virtnet_info *vi)
vi               2015 drivers/net/virtio_net.c 	cpuhp_state_remove_instance_nocalls(virtionet_online, &vi->node);
vi               2017 drivers/net/virtio_net.c 					    &vi->node_dead);
vi               2023 drivers/net/virtio_net.c 	struct virtnet_info *vi = netdev_priv(dev);
vi               2025 drivers/net/virtio_net.c 	ring->rx_max_pending = virtqueue_get_vring_size(vi->rq[0].vq);
vi               2026 drivers/net/virtio_net.c 	ring->tx_max_pending = virtqueue_get_vring_size(vi->sq[0].vq);
vi               2035 drivers/net/virtio_net.c 	struct virtnet_info *vi = netdev_priv(dev);
vi               2036 drivers/net/virtio_net.c 	struct virtio_device *vdev = vi->vdev;
vi               2048 drivers/net/virtio_net.c 	struct virtnet_info *vi = netdev_priv(dev);
vi               2058 drivers/net/virtio_net.c 	if (queue_pairs > vi->max_queue_pairs || queue_pairs == 0)
vi               2065 drivers/net/virtio_net.c 	if (vi->rq[0].xdp_prog)
vi               2069 drivers/net/virtio_net.c 	err = _virtnet_set_queues(vi, queue_pairs);
vi               2074 drivers/net/virtio_net.c 		virtnet_set_affinity(vi);
vi               2083 drivers/net/virtio_net.c 	struct virtnet_info *vi = netdev_priv(dev);
vi               2089 drivers/net/virtio_net.c 		for (i = 0; i < vi->curr_queue_pairs; i++) {
vi               2097 drivers/net/virtio_net.c 		for (i = 0; i < vi->curr_queue_pairs; i++) {
vi               2110 drivers/net/virtio_net.c 	struct virtnet_info *vi = netdev_priv(dev);
vi               2114 drivers/net/virtio_net.c 		return vi->curr_queue_pairs * (VIRTNET_RQ_STATS_LEN +
vi               2124 drivers/net/virtio_net.c 	struct virtnet_info *vi = netdev_priv(dev);
vi               2129 drivers/net/virtio_net.c 	for (i = 0; i < vi->curr_queue_pairs; i++) {
vi               2130 drivers/net/virtio_net.c 		struct receive_queue *rq = &vi->rq[i];
vi               2143 drivers/net/virtio_net.c 	for (i = 0; i < vi->curr_queue_pairs; i++) {
vi               2144 drivers/net/virtio_net.c 		struct send_queue *sq = &vi->sq[i];
vi               2161 drivers/net/virtio_net.c 	struct virtnet_info *vi = netdev_priv(dev);
vi               2163 drivers/net/virtio_net.c 	channels->combined_count = vi->curr_queue_pairs;
vi               2164 drivers/net/virtio_net.c 	channels->max_combined = vi->max_queue_pairs;
vi               2200 drivers/net/virtio_net.c 	struct virtnet_info *vi = netdev_priv(dev);
vi               2209 drivers/net/virtio_net.c 	vi->speed = speed;
vi               2210 drivers/net/virtio_net.c 	vi->duplex = cmd->base.duplex;
vi               2218 drivers/net/virtio_net.c 	struct virtnet_info *vi = netdev_priv(dev);
vi               2220 drivers/net/virtio_net.c 	cmd->base.speed = vi->speed;
vi               2221 drivers/net/virtio_net.c 	cmd->base.duplex = vi->duplex;
vi               2234 drivers/net/virtio_net.c 	struct virtnet_info *vi = netdev_priv(dev);
vi               2247 drivers/net/virtio_net.c 	if (napi_weight ^ vi->sq[0].napi.weight) {
vi               2250 drivers/net/virtio_net.c 		for (i = 0; i < vi->max_queue_pairs; i++)
vi               2251 drivers/net/virtio_net.c 			vi->sq[i].napi.weight = napi_weight;
vi               2264 drivers/net/virtio_net.c 	struct virtnet_info *vi = netdev_priv(dev);
vi               2268 drivers/net/virtio_net.c 	if (vi->sq[0].napi.weight)
vi               2276 drivers/net/virtio_net.c 	struct virtnet_info *vi = netdev_priv(dev);
vi               2278 drivers/net/virtio_net.c 	vi->speed = SPEED_UNKNOWN;
vi               2279 drivers/net/virtio_net.c 	vi->duplex = DUPLEX_UNKNOWN;
vi               2282 drivers/net/virtio_net.c static void virtnet_update_settings(struct virtnet_info *vi)
vi               2287 drivers/net/virtio_net.c 	if (!virtio_has_feature(vi->vdev, VIRTIO_NET_F_SPEED_DUPLEX))
vi               2290 drivers/net/virtio_net.c 	speed = virtio_cread32(vi->vdev, offsetof(struct virtio_net_config,
vi               2293 drivers/net/virtio_net.c 		vi->speed = speed;
vi               2294 drivers/net/virtio_net.c 	duplex = virtio_cread8(vi->vdev, offsetof(struct virtio_net_config,
vi               2297 drivers/net/virtio_net.c 		vi->duplex = duplex;
vi               2318 drivers/net/virtio_net.c 	struct virtnet_info *vi = vdev->priv;
vi               2322 drivers/net/virtio_net.c 	flush_work(&vi->config_work);
vi               2324 drivers/net/virtio_net.c 	netif_tx_lock_bh(vi->dev);
vi               2325 drivers/net/virtio_net.c 	netif_device_detach(vi->dev);
vi               2326 drivers/net/virtio_net.c 	netif_tx_unlock_bh(vi->dev);
vi               2327 drivers/net/virtio_net.c 	cancel_delayed_work_sync(&vi->refill);
vi               2329 drivers/net/virtio_net.c 	if (netif_running(vi->dev)) {
vi               2330 drivers/net/virtio_net.c 		for (i = 0; i < vi->max_queue_pairs; i++) {
vi               2331 drivers/net/virtio_net.c 			napi_disable(&vi->rq[i].napi);
vi               2332 drivers/net/virtio_net.c 			virtnet_napi_tx_disable(&vi->sq[i].napi);
vi               2337 drivers/net/virtio_net.c static int init_vqs(struct virtnet_info *vi);
vi               2341 drivers/net/virtio_net.c 	struct virtnet_info *vi = vdev->priv;
vi               2344 drivers/net/virtio_net.c 	err = init_vqs(vi);
vi               2350 drivers/net/virtio_net.c 	if (netif_running(vi->dev)) {
vi               2351 drivers/net/virtio_net.c 		for (i = 0; i < vi->curr_queue_pairs; i++)
vi               2352 drivers/net/virtio_net.c 			if (!try_fill_recv(vi, &vi->rq[i], GFP_KERNEL))
vi               2353 drivers/net/virtio_net.c 				schedule_delayed_work(&vi->refill, 0);
vi               2355 drivers/net/virtio_net.c 		for (i = 0; i < vi->max_queue_pairs; i++) {
vi               2356 drivers/net/virtio_net.c 			virtnet_napi_enable(vi->rq[i].vq, &vi->rq[i].napi);
vi               2357 drivers/net/virtio_net.c 			virtnet_napi_tx_enable(vi, vi->sq[i].vq,
vi               2358 drivers/net/virtio_net.c 					       &vi->sq[i].napi);
vi               2362 drivers/net/virtio_net.c 	netif_tx_lock_bh(vi->dev);
vi               2363 drivers/net/virtio_net.c 	netif_device_attach(vi->dev);
vi               2364 drivers/net/virtio_net.c 	netif_tx_unlock_bh(vi->dev);
vi               2368 drivers/net/virtio_net.c static int virtnet_set_guest_offloads(struct virtnet_info *vi, u64 offloads)
vi               2371 drivers/net/virtio_net.c 	vi->ctrl->offloads = cpu_to_virtio64(vi->vdev, offloads);
vi               2373 drivers/net/virtio_net.c 	sg_init_one(&sg, &vi->ctrl->offloads, sizeof(vi->ctrl->offloads));
vi               2375 drivers/net/virtio_net.c 	if (!virtnet_send_command(vi, VIRTIO_NET_CTRL_GUEST_OFFLOADS,
vi               2377 drivers/net/virtio_net.c 		dev_warn(&vi->dev->dev, "Fail to set guest offload.\n");
vi               2384 drivers/net/virtio_net.c static int virtnet_clear_guest_offloads(struct virtnet_info *vi)
vi               2388 drivers/net/virtio_net.c 	if (!vi->guest_offloads)
vi               2391 drivers/net/virtio_net.c 	return virtnet_set_guest_offloads(vi, offloads);
vi               2394 drivers/net/virtio_net.c static int virtnet_restore_guest_offloads(struct virtnet_info *vi)
vi               2396 drivers/net/virtio_net.c 	u64 offloads = vi->guest_offloads;
vi               2398 drivers/net/virtio_net.c 	if (!vi->guest_offloads)
vi               2401 drivers/net/virtio_net.c 	return virtnet_set_guest_offloads(vi, offloads);
vi               2408 drivers/net/virtio_net.c 	struct virtnet_info *vi = netdev_priv(dev);
vi               2413 drivers/net/virtio_net.c 	if (!virtio_has_feature(vi->vdev, VIRTIO_NET_F_CTRL_GUEST_OFFLOADS)
vi               2414 drivers/net/virtio_net.c 	    && (virtio_has_feature(vi->vdev, VIRTIO_NET_F_GUEST_TSO4) ||
vi               2415 drivers/net/virtio_net.c 	        virtio_has_feature(vi->vdev, VIRTIO_NET_F_GUEST_TSO6) ||
vi               2416 drivers/net/virtio_net.c 	        virtio_has_feature(vi->vdev, VIRTIO_NET_F_GUEST_ECN) ||
vi               2417 drivers/net/virtio_net.c 		virtio_has_feature(vi->vdev, VIRTIO_NET_F_GUEST_UFO) ||
vi               2418 drivers/net/virtio_net.c 		virtio_has_feature(vi->vdev, VIRTIO_NET_F_GUEST_CSUM))) {
vi               2423 drivers/net/virtio_net.c 	if (vi->mergeable_rx_bufs && !vi->any_header_sg) {
vi               2434 drivers/net/virtio_net.c 	curr_qp = vi->curr_queue_pairs - vi->xdp_queue_pairs;
vi               2439 drivers/net/virtio_net.c 	if (curr_qp + xdp_qp > vi->max_queue_pairs) {
vi               2442 drivers/net/virtio_net.c 			    curr_qp + xdp_qp, vi->max_queue_pairs);
vi               2446 drivers/net/virtio_net.c 	old_prog = rtnl_dereference(vi->rq[0].xdp_prog);
vi               2451 drivers/net/virtio_net.c 		prog = bpf_prog_add(prog, vi->max_queue_pairs - 1);
vi               2458 drivers/net/virtio_net.c 		for (i = 0; i < vi->max_queue_pairs; i++) {
vi               2459 drivers/net/virtio_net.c 			napi_disable(&vi->rq[i].napi);
vi               2460 drivers/net/virtio_net.c 			virtnet_napi_tx_disable(&vi->sq[i].napi);
vi               2465 drivers/net/virtio_net.c 		for (i = 0; i < vi->max_queue_pairs; i++) {
vi               2466 drivers/net/virtio_net.c 			rcu_assign_pointer(vi->rq[i].xdp_prog, prog);
vi               2468 drivers/net/virtio_net.c 				virtnet_restore_guest_offloads(vi);
vi               2473 drivers/net/virtio_net.c 	err = _virtnet_set_queues(vi, curr_qp + xdp_qp);
vi               2477 drivers/net/virtio_net.c 	vi->xdp_queue_pairs = xdp_qp;
vi               2480 drivers/net/virtio_net.c 		for (i = 0; i < vi->max_queue_pairs; i++) {
vi               2481 drivers/net/virtio_net.c 			rcu_assign_pointer(vi->rq[i].xdp_prog, prog);
vi               2483 drivers/net/virtio_net.c 				virtnet_clear_guest_offloads(vi);
vi               2487 drivers/net/virtio_net.c 	for (i = 0; i < vi->max_queue_pairs; i++) {
vi               2491 drivers/net/virtio_net.c 			virtnet_napi_enable(vi->rq[i].vq, &vi->rq[i].napi);
vi               2492 drivers/net/virtio_net.c 			virtnet_napi_tx_enable(vi, vi->sq[i].vq,
vi               2493 drivers/net/virtio_net.c 					       &vi->sq[i].napi);
vi               2501 drivers/net/virtio_net.c 		virtnet_clear_guest_offloads(vi);
vi               2502 drivers/net/virtio_net.c 		for (i = 0; i < vi->max_queue_pairs; i++)
vi               2503 drivers/net/virtio_net.c 			rcu_assign_pointer(vi->rq[i].xdp_prog, old_prog);
vi               2507 drivers/net/virtio_net.c 		for (i = 0; i < vi->max_queue_pairs; i++) {
vi               2508 drivers/net/virtio_net.c 			virtnet_napi_enable(vi->rq[i].vq, &vi->rq[i].napi);
vi               2509 drivers/net/virtio_net.c 			virtnet_napi_tx_enable(vi, vi->sq[i].vq,
vi               2510 drivers/net/virtio_net.c 					       &vi->sq[i].napi);
vi               2514 drivers/net/virtio_net.c 		bpf_prog_sub(prog, vi->max_queue_pairs - 1);
vi               2520 drivers/net/virtio_net.c 	struct virtnet_info *vi = netdev_priv(dev);
vi               2524 drivers/net/virtio_net.c 	for (i = 0; i < vi->max_queue_pairs; i++) {
vi               2525 drivers/net/virtio_net.c 		xdp_prog = rtnl_dereference(vi->rq[i].xdp_prog);
vi               2548 drivers/net/virtio_net.c 	struct virtnet_info *vi = netdev_priv(dev);
vi               2551 drivers/net/virtio_net.c 	if (!virtio_has_feature(vi->vdev, VIRTIO_NET_F_STANDBY))
vi               2564 drivers/net/virtio_net.c 	struct virtnet_info *vi = netdev_priv(dev);
vi               2569 drivers/net/virtio_net.c 		if (vi->xdp_queue_pairs)
vi               2573 drivers/net/virtio_net.c 			offloads = vi->guest_offloads_capable;
vi               2577 drivers/net/virtio_net.c 		err = virtnet_set_guest_offloads(vi, offloads);
vi               2580 drivers/net/virtio_net.c 		vi->guest_offloads = offloads;
vi               2605 drivers/net/virtio_net.c 	struct virtnet_info *vi =
vi               2609 drivers/net/virtio_net.c 	if (virtio_cread_feature(vi->vdev, VIRTIO_NET_F_STATUS,
vi               2614 drivers/net/virtio_net.c 		netdev_notify_peers(vi->dev);
vi               2615 drivers/net/virtio_net.c 		virtnet_ack_link_announce(vi);
vi               2621 drivers/net/virtio_net.c 	if (vi->status == v)
vi               2624 drivers/net/virtio_net.c 	vi->status = v;
vi               2626 drivers/net/virtio_net.c 	if (vi->status & VIRTIO_NET_S_LINK_UP) {
vi               2627 drivers/net/virtio_net.c 		virtnet_update_settings(vi);
vi               2628 drivers/net/virtio_net.c 		netif_carrier_on(vi->dev);
vi               2629 drivers/net/virtio_net.c 		netif_tx_wake_all_queues(vi->dev);
vi               2631 drivers/net/virtio_net.c 		netif_carrier_off(vi->dev);
vi               2632 drivers/net/virtio_net.c 		netif_tx_stop_all_queues(vi->dev);
vi               2638 drivers/net/virtio_net.c 	struct virtnet_info *vi = vdev->priv;
vi               2640 drivers/net/virtio_net.c 	schedule_work(&vi->config_work);
vi               2643 drivers/net/virtio_net.c static void virtnet_free_queues(struct virtnet_info *vi)
vi               2647 drivers/net/virtio_net.c 	for (i = 0; i < vi->max_queue_pairs; i++) {
vi               2648 drivers/net/virtio_net.c 		napi_hash_del(&vi->rq[i].napi);
vi               2649 drivers/net/virtio_net.c 		netif_napi_del(&vi->rq[i].napi);
vi               2650 drivers/net/virtio_net.c 		netif_napi_del(&vi->sq[i].napi);
vi               2658 drivers/net/virtio_net.c 	kfree(vi->rq);
vi               2659 drivers/net/virtio_net.c 	kfree(vi->sq);
vi               2660 drivers/net/virtio_net.c 	kfree(vi->ctrl);
vi               2663 drivers/net/virtio_net.c static void _free_receive_bufs(struct virtnet_info *vi)
vi               2668 drivers/net/virtio_net.c 	for (i = 0; i < vi->max_queue_pairs; i++) {
vi               2669 drivers/net/virtio_net.c 		while (vi->rq[i].pages)
vi               2670 drivers/net/virtio_net.c 			__free_pages(get_a_page(&vi->rq[i], GFP_KERNEL), 0);
vi               2672 drivers/net/virtio_net.c 		old_prog = rtnl_dereference(vi->rq[i].xdp_prog);
vi               2673 drivers/net/virtio_net.c 		RCU_INIT_POINTER(vi->rq[i].xdp_prog, NULL);
vi               2679 drivers/net/virtio_net.c static void free_receive_bufs(struct virtnet_info *vi)
vi               2682 drivers/net/virtio_net.c 	_free_receive_bufs(vi);
vi               2686 drivers/net/virtio_net.c static void free_receive_page_frags(struct virtnet_info *vi)
vi               2689 drivers/net/virtio_net.c 	for (i = 0; i < vi->max_queue_pairs; i++)
vi               2690 drivers/net/virtio_net.c 		if (vi->rq[i].alloc_frag.page)
vi               2691 drivers/net/virtio_net.c 			put_page(vi->rq[i].alloc_frag.page);
vi               2694 drivers/net/virtio_net.c static void free_unused_bufs(struct virtnet_info *vi)
vi               2699 drivers/net/virtio_net.c 	for (i = 0; i < vi->max_queue_pairs; i++) {
vi               2700 drivers/net/virtio_net.c 		struct virtqueue *vq = vi->sq[i].vq;
vi               2709 drivers/net/virtio_net.c 	for (i = 0; i < vi->max_queue_pairs; i++) {
vi               2710 drivers/net/virtio_net.c 		struct virtqueue *vq = vi->rq[i].vq;
vi               2713 drivers/net/virtio_net.c 			if (vi->mergeable_rx_bufs) {
vi               2715 drivers/net/virtio_net.c 			} else if (vi->big_packets) {
vi               2716 drivers/net/virtio_net.c 				give_pages(&vi->rq[i], buf);
vi               2724 drivers/net/virtio_net.c static void virtnet_del_vqs(struct virtnet_info *vi)
vi               2726 drivers/net/virtio_net.c 	struct virtio_device *vdev = vi->vdev;
vi               2728 drivers/net/virtio_net.c 	virtnet_clean_affinity(vi);
vi               2732 drivers/net/virtio_net.c 	virtnet_free_queues(vi);
vi               2739 drivers/net/virtio_net.c static unsigned int mergeable_min_buf_len(struct virtnet_info *vi, struct virtqueue *vq)
vi               2743 drivers/net/virtio_net.c 	unsigned int packet_len = vi->big_packets ? IP_MAX_MTU : vi->dev->max_mtu;
vi               2751 drivers/net/virtio_net.c static int virtnet_find_vqs(struct virtnet_info *vi)
vi               2764 drivers/net/virtio_net.c 	total_vqs = vi->max_queue_pairs * 2 +
vi               2765 drivers/net/virtio_net.c 		    virtio_has_feature(vi->vdev, VIRTIO_NET_F_CTRL_VQ);
vi               2777 drivers/net/virtio_net.c 	if (!vi->big_packets || vi->mergeable_rx_bufs) {
vi               2786 drivers/net/virtio_net.c 	if (vi->has_cvq) {
vi               2792 drivers/net/virtio_net.c 	for (i = 0; i < vi->max_queue_pairs; i++) {
vi               2795 drivers/net/virtio_net.c 		sprintf(vi->rq[i].name, "input.%d", i);
vi               2796 drivers/net/virtio_net.c 		sprintf(vi->sq[i].name, "output.%d", i);
vi               2797 drivers/net/virtio_net.c 		names[rxq2vq(i)] = vi->rq[i].name;
vi               2798 drivers/net/virtio_net.c 		names[txq2vq(i)] = vi->sq[i].name;
vi               2803 drivers/net/virtio_net.c 	ret = vi->vdev->config->find_vqs(vi->vdev, total_vqs, vqs, callbacks,
vi               2808 drivers/net/virtio_net.c 	if (vi->has_cvq) {
vi               2809 drivers/net/virtio_net.c 		vi->cvq = vqs[total_vqs - 1];
vi               2810 drivers/net/virtio_net.c 		if (virtio_has_feature(vi->vdev, VIRTIO_NET_F_CTRL_VLAN))
vi               2811 drivers/net/virtio_net.c 			vi->dev->features |= NETIF_F_HW_VLAN_CTAG_FILTER;
vi               2814 drivers/net/virtio_net.c 	for (i = 0; i < vi->max_queue_pairs; i++) {
vi               2815 drivers/net/virtio_net.c 		vi->rq[i].vq = vqs[rxq2vq(i)];
vi               2816 drivers/net/virtio_net.c 		vi->rq[i].min_buf_len = mergeable_min_buf_len(vi, vi->rq[i].vq);
vi               2817 drivers/net/virtio_net.c 		vi->sq[i].vq = vqs[txq2vq(i)];
vi               2835 drivers/net/virtio_net.c static int virtnet_alloc_queues(struct virtnet_info *vi)
vi               2839 drivers/net/virtio_net.c 	vi->ctrl = kzalloc(sizeof(*vi->ctrl), GFP_KERNEL);
vi               2840 drivers/net/virtio_net.c 	if (!vi->ctrl)
vi               2842 drivers/net/virtio_net.c 	vi->sq = kcalloc(vi->max_queue_pairs, sizeof(*vi->sq), GFP_KERNEL);
vi               2843 drivers/net/virtio_net.c 	if (!vi->sq)
vi               2845 drivers/net/virtio_net.c 	vi->rq = kcalloc(vi->max_queue_pairs, sizeof(*vi->rq), GFP_KERNEL);
vi               2846 drivers/net/virtio_net.c 	if (!vi->rq)
vi               2849 drivers/net/virtio_net.c 	INIT_DELAYED_WORK(&vi->refill, refill_work);
vi               2850 drivers/net/virtio_net.c 	for (i = 0; i < vi->max_queue_pairs; i++) {
vi               2851 drivers/net/virtio_net.c 		vi->rq[i].pages = NULL;
vi               2852 drivers/net/virtio_net.c 		netif_napi_add(vi->dev, &vi->rq[i].napi, virtnet_poll,
vi               2854 drivers/net/virtio_net.c 		netif_tx_napi_add(vi->dev, &vi->sq[i].napi, virtnet_poll_tx,
vi               2857 drivers/net/virtio_net.c 		sg_init_table(vi->rq[i].sg, ARRAY_SIZE(vi->rq[i].sg));
vi               2858 drivers/net/virtio_net.c 		ewma_pkt_len_init(&vi->rq[i].mrg_avg_pkt_len);
vi               2859 drivers/net/virtio_net.c 		sg_init_table(vi->sq[i].sg, ARRAY_SIZE(vi->sq[i].sg));
vi               2861 drivers/net/virtio_net.c 		u64_stats_init(&vi->rq[i].stats.syncp);
vi               2862 drivers/net/virtio_net.c 		u64_stats_init(&vi->sq[i].stats.syncp);
vi               2868 drivers/net/virtio_net.c 	kfree(vi->sq);
vi               2870 drivers/net/virtio_net.c 	kfree(vi->ctrl);
vi               2875 drivers/net/virtio_net.c static int init_vqs(struct virtnet_info *vi)
vi               2880 drivers/net/virtio_net.c 	ret = virtnet_alloc_queues(vi);
vi               2884 drivers/net/virtio_net.c 	ret = virtnet_find_vqs(vi);
vi               2889 drivers/net/virtio_net.c 	virtnet_set_affinity(vi);
vi               2895 drivers/net/virtio_net.c 	virtnet_free_queues(vi);
vi               2904 drivers/net/virtio_net.c 	struct virtnet_info *vi = netdev_priv(queue->dev);
vi               2906 drivers/net/virtio_net.c 	unsigned int headroom = virtnet_get_headroom(vi);
vi               2910 drivers/net/virtio_net.c 	BUG_ON(queue_index >= vi->max_queue_pairs);
vi               2911 drivers/net/virtio_net.c 	avg = &vi->rq[queue_index].mrg_avg_pkt_len;
vi               2913 drivers/net/virtio_net.c 		       get_mergeable_buf_len(&vi->rq[queue_index], avg,
vi               2994 drivers/net/virtio_net.c 	struct virtnet_info *vi;
vi               3070 drivers/net/virtio_net.c 	vi = netdev_priv(dev);
vi               3071 drivers/net/virtio_net.c 	vi->dev = dev;
vi               3072 drivers/net/virtio_net.c 	vi->vdev = vdev;
vi               3073 drivers/net/virtio_net.c 	vdev->priv = vi;
vi               3075 drivers/net/virtio_net.c 	INIT_WORK(&vi->config_work, virtnet_config_changed_work);
vi               3082 drivers/net/virtio_net.c 		vi->big_packets = true;
vi               3085 drivers/net/virtio_net.c 		vi->mergeable_rx_bufs = true;
vi               3089 drivers/net/virtio_net.c 		vi->hdr_len = sizeof(struct virtio_net_hdr_mrg_rxbuf);
vi               3091 drivers/net/virtio_net.c 		vi->hdr_len = sizeof(struct virtio_net_hdr);
vi               3095 drivers/net/virtio_net.c 		vi->any_header_sg = true;
vi               3098 drivers/net/virtio_net.c 		vi->has_cvq = true;
vi               3119 drivers/net/virtio_net.c 			vi->big_packets = true;
vi               3122 drivers/net/virtio_net.c 	if (vi->any_header_sg)
vi               3123 drivers/net/virtio_net.c 		dev->needed_headroom = vi->hdr_len;
vi               3127 drivers/net/virtio_net.c 		vi->curr_queue_pairs = max_queue_pairs;
vi               3129 drivers/net/virtio_net.c 		vi->curr_queue_pairs = num_online_cpus();
vi               3130 drivers/net/virtio_net.c 	vi->max_queue_pairs = max_queue_pairs;
vi               3133 drivers/net/virtio_net.c 	err = init_vqs(vi);
vi               3138 drivers/net/virtio_net.c 	if (vi->mergeable_rx_bufs)
vi               3141 drivers/net/virtio_net.c 	netif_set_real_num_tx_queues(dev, vi->curr_queue_pairs);
vi               3142 drivers/net/virtio_net.c 	netif_set_real_num_rx_queues(dev, vi->curr_queue_pairs);
vi               3147 drivers/net/virtio_net.c 		vi->failover = net_failover_create(vi->dev);
vi               3148 drivers/net/virtio_net.c 		if (IS_ERR(vi->failover)) {
vi               3149 drivers/net/virtio_net.c 			err = PTR_ERR(vi->failover);
vi               3162 drivers/net/virtio_net.c 	err = virtnet_cpu_notif_add(vi);
vi               3168 drivers/net/virtio_net.c 	virtnet_set_queues(vi, vi->curr_queue_pairs);
vi               3173 drivers/net/virtio_net.c 	if (virtio_has_feature(vi->vdev, VIRTIO_NET_F_STATUS)) {
vi               3174 drivers/net/virtio_net.c 		schedule_work(&vi->config_work);
vi               3176 drivers/net/virtio_net.c 		vi->status = VIRTIO_NET_S_LINK_UP;
vi               3177 drivers/net/virtio_net.c 		virtnet_update_settings(vi);
vi               3182 drivers/net/virtio_net.c 		if (virtio_has_feature(vi->vdev, guest_offloads[i]))
vi               3183 drivers/net/virtio_net.c 			set_bit(guest_offloads[i], &vi->guest_offloads);
vi               3184 drivers/net/virtio_net.c 	vi->guest_offloads_capable = vi->guest_offloads;
vi               3192 drivers/net/virtio_net.c 	vi->vdev->config->reset(vdev);
vi               3196 drivers/net/virtio_net.c 	net_failover_destroy(vi->failover);
vi               3198 drivers/net/virtio_net.c 	cancel_delayed_work_sync(&vi->refill);
vi               3199 drivers/net/virtio_net.c 	free_receive_page_frags(vi);
vi               3200 drivers/net/virtio_net.c 	virtnet_del_vqs(vi);
vi               3206 drivers/net/virtio_net.c static void remove_vq_common(struct virtnet_info *vi)
vi               3208 drivers/net/virtio_net.c 	vi->vdev->config->reset(vi->vdev);
vi               3211 drivers/net/virtio_net.c 	free_unused_bufs(vi);
vi               3213 drivers/net/virtio_net.c 	free_receive_bufs(vi);
vi               3215 drivers/net/virtio_net.c 	free_receive_page_frags(vi);
vi               3217 drivers/net/virtio_net.c 	virtnet_del_vqs(vi);
vi               3222 drivers/net/virtio_net.c 	struct virtnet_info *vi = vdev->priv;
vi               3224 drivers/net/virtio_net.c 	virtnet_cpu_notif_remove(vi);
vi               3227 drivers/net/virtio_net.c 	flush_work(&vi->config_work);
vi               3229 drivers/net/virtio_net.c 	unregister_netdev(vi->dev);
vi               3231 drivers/net/virtio_net.c 	net_failover_destroy(vi->failover);
vi               3233 drivers/net/virtio_net.c 	remove_vq_common(vi);
vi               3235 drivers/net/virtio_net.c 	free_netdev(vi->dev);
vi               3240 drivers/net/virtio_net.c 	struct virtnet_info *vi = vdev->priv;
vi               3242 drivers/net/virtio_net.c 	virtnet_cpu_notif_remove(vi);
vi               3244 drivers/net/virtio_net.c 	remove_vq_common(vi);
vi               3251 drivers/net/virtio_net.c 	struct virtnet_info *vi = vdev->priv;
vi               3257 drivers/net/virtio_net.c 	virtnet_set_queues(vi, vi->curr_queue_pairs);
vi               3259 drivers/net/virtio_net.c 	err = virtnet_cpu_notif_add(vi);
vi                526 drivers/parisc/iosapic.c static void iosapic_rd_irt_entry(struct vector_info *vi , u32 *dp0, u32 *dp1)
vi                528 drivers/parisc/iosapic.c 	struct iosapic_info *isp = vi->iosapic;
vi                529 drivers/parisc/iosapic.c 	u8 idx = vi->irqline;
vi                536 drivers/parisc/iosapic.c static void iosapic_wr_irt_entry(struct vector_info *vi, u32 dp0, u32 dp1)
vi                538 drivers/parisc/iosapic.c 	struct iosapic_info *isp = vi->iosapic;
vi                541 drivers/parisc/iosapic.c 		vi->irqline, isp->isi_hpa, dp0, dp1);
vi                543 drivers/parisc/iosapic.c 	iosapic_write(isp->addr, IOSAPIC_IRDT_ENTRY(vi->irqline), dp0);
vi                548 drivers/parisc/iosapic.c 	iosapic_write(isp->addr, IOSAPIC_IRDT_ENTRY_HI(vi->irqline), dp1);
vi                560 drivers/parisc/iosapic.c iosapic_set_irt_data( struct vector_info *vi, u32 *dp0, u32 *dp1)
vi                563 drivers/parisc/iosapic.c 	struct irt_entry *p = vi->irte;
vi                576 drivers/parisc/iosapic.c 	*dp0 = mode | (u32) vi->txn_data;
vi                587 drivers/parisc/iosapic.c 		*dp1 = (u32) (vi->txn_addr);
vi                596 drivers/parisc/iosapic.c 		*dp1 = (((u32)vi->txn_addr & 0x0ff00000) >> 4) |
vi                597 drivers/parisc/iosapic.c 			(((u32)vi->txn_addr & 0x000ff000) << 12);
vi                606 drivers/parisc/iosapic.c 	struct vector_info *vi = irq_data_get_irq_chip_data(d);
vi                610 drivers/parisc/iosapic.c 	iosapic_rd_irt_entry(vi, &d0, &d1);
vi                612 drivers/parisc/iosapic.c 	iosapic_wr_irt_entry(vi, d0, d1);
vi                618 drivers/parisc/iosapic.c 	struct vector_info *vi = irq_data_get_irq_chip_data(d);
vi                622 drivers/parisc/iosapic.c 	WARN_ON(vi->txn_irq  == 0);
vi                624 drivers/parisc/iosapic.c 	iosapic_set_irt_data(vi, &d0, &d1);
vi                625 drivers/parisc/iosapic.c 	iosapic_wr_irt_entry(vi, d0, d1);
vi                629 drivers/parisc/iosapic.c 	u32 *t = (u32 *) ((ulong) vi->eoi_addr & ~0xffUL);
vi                630 drivers/parisc/iosapic.c 	printk("iosapic_enable_irq(): regs %p", vi->eoi_addr);
vi                631 drivers/parisc/iosapic.c 	for ( ; t < vi->eoi_addr; t++)
vi                638 drivers/parisc/iosapic.c 	struct iosapic_info *isp = vi->iosapic;
vi                655 drivers/parisc/iosapic.c 			vi->eoi_addr, vi->eoi_data);
vi                656 drivers/parisc/iosapic.c 	iosapic_eoi(vi->eoi_addr, vi->eoi_data);
vi                661 drivers/parisc/iosapic.c 	struct vector_info *vi = irq_data_get_irq_chip_data(d);
vi                663 drivers/parisc/iosapic.c 	iosapic_eoi(vi->eoi_addr, vi->eoi_data);
vi                671 drivers/parisc/iosapic.c 	struct vector_info *vi = irq_data_get_irq_chip_data(d);
vi                681 drivers/parisc/iosapic.c 	vi->txn_addr = txn_affinity_addr(d->irq, dest_cpu);
vi                686 drivers/parisc/iosapic.c 	iosapic_rd_irt_entry(vi, &d0, &d1);
vi                687 drivers/parisc/iosapic.c 	iosapic_set_irt_data(vi, &dummy_d0, &d1);
vi                688 drivers/parisc/iosapic.c 	iosapic_wr_irt_entry(vi, d0, d1);
vi                710 drivers/parisc/iosapic.c 	struct vector_info *vi;
vi                758 drivers/parisc/iosapic.c 	vi = isi->isi_vector + isi_line;
vi                759 drivers/parisc/iosapic.c 	DBG_IRT("iosapic_fixup_irq:  line %d vi 0x%p\n", isi_line, vi);
vi                762 drivers/parisc/iosapic.c 	if (vi->irte)
vi                765 drivers/parisc/iosapic.c 	vi->irte = irte;
vi                776 drivers/parisc/iosapic.c 	vi->txn_irq = txn_alloc_irq(8);
vi                778 drivers/parisc/iosapic.c 	if (vi->txn_irq < 0)
vi                782 drivers/parisc/iosapic.c 	vi->txn_addr = txn_alloc_addr(vi->txn_irq);
vi                783 drivers/parisc/iosapic.c 	vi->txn_data = txn_alloc_data(vi->txn_irq);
vi                785 drivers/parisc/iosapic.c 	vi->eoi_addr = isi->addr + IOSAPIC_REG_EOI;
vi                786 drivers/parisc/iosapic.c 	vi->eoi_data = cpu_to_le32(vi->txn_data);
vi                788 drivers/parisc/iosapic.c 	cpu_claim_irq(vi->txn_irq, &iosapic_interrupt_type, vi);
vi                791 drivers/parisc/iosapic.c 	pcidev->irq = vi->txn_irq;
vi                807 drivers/parisc/iosapic.c 	struct vector_info *vi;
vi                842 drivers/parisc/iosapic.c 	vi = isi->isi_vector + intin;
vi                843 drivers/parisc/iosapic.c 	DBG_IRT("iosapic_serial_irq:  line %d vi 0x%p\n", iosapic_intin, vi);
vi                846 drivers/parisc/iosapic.c 	if (vi->irte)
vi                849 drivers/parisc/iosapic.c 	vi->irte = irte;
vi                860 drivers/parisc/iosapic.c 	vi->txn_irq = txn_alloc_irq(8);
vi                862 drivers/parisc/iosapic.c 	if (vi->txn_irq < 0)
vi                866 drivers/parisc/iosapic.c 	vi->txn_addr = txn_alloc_addr(vi->txn_irq);
vi                867 drivers/parisc/iosapic.c 	vi->txn_data = txn_alloc_data(vi->txn_irq);
vi                869 drivers/parisc/iosapic.c 	vi->eoi_addr = isi->addr + IOSAPIC_REG_EOI;
vi                870 drivers/parisc/iosapic.c 	vi->eoi_data = cpu_to_le32(vi->txn_data);
vi                872 drivers/parisc/iosapic.c 	cpu_claim_irq(vi->txn_irq, &iosapic_interrupt_type, vi);
vi                876 drivers/parisc/iosapic.c 	return vi->txn_irq;
vi                970 drivers/parisc/iosapic.c iosapic_prt_vi(struct vector_info *vi)
vi                972 drivers/parisc/iosapic.c 	printk(KERN_DEBUG MODULE_NAME ": vector_info[%d] is at %p\n", vi->irqline, vi);
vi                973 drivers/parisc/iosapic.c 	printk(KERN_DEBUG "\t\tstatus:	 %.4x\n", vi->status);
vi                974 drivers/parisc/iosapic.c 	printk(KERN_DEBUG "\t\ttxn_irq:  %d\n",  vi->txn_irq);
vi                975 drivers/parisc/iosapic.c 	printk(KERN_DEBUG "\t\ttxn_addr: %lx\n", vi->txn_addr);
vi                976 drivers/parisc/iosapic.c 	printk(KERN_DEBUG "\t\ttxn_data: %lx\n", vi->txn_data);
vi                977 drivers/parisc/iosapic.c 	printk(KERN_DEBUG "\t\teoi_addr: %p\n",  vi->eoi_addr);
vi                978 drivers/parisc/iosapic.c 	printk(KERN_DEBUG "\t\teoi_data: %x\n",  vi->eoi_data);
vi               1536 drivers/pinctrl/tegra/pinctrl-tegra114.c 	FUNCTION(vi),
vi               1701 drivers/pinctrl/tegra/pinctrl-tegra124.c 	FUNCTION(vi),
vi               1960 drivers/pinctrl/tegra/pinctrl-tegra20.c 	FUNCTION(vi),
vi               2096 drivers/pinctrl/tegra/pinctrl-tegra30.c 	FUNCTION(vi),
vi               1137 drivers/scsi/esas2r/esas2r.h 			      struct atto_ioctl_vda *vi,
vi               1832 drivers/scsi/esas2r/esas2r_ioctl.c 		struct atto_ioctl_vda *vi =
vi               1860 drivers/scsi/esas2r/esas2r_ioctl.c 			esas2r_process_vda_ioctl(a, vi, rq, &sgc);
vi                 66 drivers/scsi/esas2r/esas2r_vda.c 			      struct atto_ioctl_vda *vi,
vi                 74 drivers/scsi/esas2r/esas2r_vda.c 	vi->status = ATTO_STS_SUCCESS;
vi                 75 drivers/scsi/esas2r/esas2r_vda.c 	vi->vda_status = RS_PENDING;
vi                 77 drivers/scsi/esas2r/esas2r_vda.c 	if (vi->function >= vercnt) {
vi                 78 drivers/scsi/esas2r/esas2r_vda.c 		vi->status = ATTO_STS_INV_FUNC;
vi                 82 drivers/scsi/esas2r/esas2r_vda.c 	if (vi->version > esas2r_vdaioctl_versions[vi->function]) {
vi                 83 drivers/scsi/esas2r/esas2r_vda.c 		vi->status = ATTO_STS_INV_VERSION;
vi                 88 drivers/scsi/esas2r/esas2r_vda.c 		vi->status = ATTO_STS_DEGRADED;
vi                 92 drivers/scsi/esas2r/esas2r_vda.c 	if (vi->function != VDA_FUNC_SCSI)
vi                 95 drivers/scsi/esas2r/esas2r_vda.c 	rq->vrq->scsi.function = vi->function;
vi                 97 drivers/scsi/esas2r/esas2r_vda.c 	rq->interrupt_cx = vi;
vi                 99 drivers/scsi/esas2r/esas2r_vda.c 	switch (vi->function) {
vi                102 drivers/scsi/esas2r/esas2r_vda.c 		if (vi->cmd.flash.sub_func != VDA_FLASH_FREAD
vi                103 drivers/scsi/esas2r/esas2r_vda.c 		    && vi->cmd.flash.sub_func != VDA_FLASH_FWRITE
vi                104 drivers/scsi/esas2r/esas2r_vda.c 		    && vi->cmd.flash.sub_func != VDA_FLASH_FINFO) {
vi                105 drivers/scsi/esas2r/esas2r_vda.c 			vi->status = ATTO_STS_INV_FUNC;
vi                109 drivers/scsi/esas2r/esas2r_vda.c 		if (vi->cmd.flash.sub_func != VDA_FLASH_FINFO)
vi                110 drivers/scsi/esas2r/esas2r_vda.c 			datalen = vi->data_length;
vi                113 drivers/scsi/esas2r/esas2r_vda.c 		rq->vrq->flash.sub_func = vi->cmd.flash.sub_func;
vi                116 drivers/scsi/esas2r/esas2r_vda.c 		       vi->cmd.flash.data.file.file_name,
vi                117 drivers/scsi/esas2r/esas2r_vda.c 		       sizeof(vi->cmd.flash.data.file.file_name));
vi                124 drivers/scsi/esas2r/esas2r_vda.c 		datalen = vi->data_length;
vi                127 drivers/scsi/esas2r/esas2r_vda.c 			cpu_to_le32(vi->cmd.cli.cmd_rsp_len);
vi                147 drivers/scsi/esas2r/esas2r_vda.c 		if (vi->data_length) {
vi                150 drivers/scsi/esas2r/esas2r_vda.c 			if (vi->cmd.mgt.mgt_func == VDAMGT_DEV_HEALTH_REQ
vi                151 drivers/scsi/esas2r/esas2r_vda.c 			    || vi->cmd.mgt.mgt_func == VDAMGT_DEV_METRICS) {
vi                156 drivers/scsi/esas2r/esas2r_vda.c 				payldlen = vi->data_length;
vi                157 drivers/scsi/esas2r/esas2r_vda.c 				datalen = vi->cmd.mgt.data_length;
vi                158 drivers/scsi/esas2r/esas2r_vda.c 			} else if (vi->cmd.mgt.mgt_func == VDAMGT_DEV_INFO2
vi                159 drivers/scsi/esas2r/esas2r_vda.c 				   || vi->cmd.mgt.mgt_func ==
vi                161 drivers/scsi/esas2r/esas2r_vda.c 				datalen = vi->data_length;
vi                164 drivers/scsi/esas2r/esas2r_vda.c 				vi->status = ATTO_STS_INV_PARAM;
vi                180 drivers/scsi/esas2r/esas2r_vda.c 					vi->status = ATTO_STS_OUT_OF_RSRC;
vi                185 drivers/scsi/esas2r/esas2r_vda.c 			datalen = vi->cmd.mgt.data_length;
vi                198 drivers/scsi/esas2r/esas2r_vda.c 		rq->vrq->mgt.mgt_func = vi->cmd.mgt.mgt_func;
vi                199 drivers/scsi/esas2r/esas2r_vda.c 		rq->vrq->mgt.scan_generation = vi->cmd.mgt.scan_generation;
vi                201 drivers/scsi/esas2r/esas2r_vda.c 			cpu_to_le32(vi->cmd.mgt.dev_index);
vi                203 drivers/scsi/esas2r/esas2r_vda.c 		esas2r_nuxi_mgt_data(rq->vrq->mgt.mgt_func, &vi->cmd.mgt.data);
vi                209 drivers/scsi/esas2r/esas2r_vda.c 		if (vi->data_length
vi                210 drivers/scsi/esas2r/esas2r_vda.c 		    || vi->cmd.cfg.data_length == 0) {
vi                211 drivers/scsi/esas2r/esas2r_vda.c 			vi->status = ATTO_STS_INV_PARAM;
vi                215 drivers/scsi/esas2r/esas2r_vda.c 		if (vi->cmd.cfg.cfg_func == VDA_CFG_INIT) {
vi                216 drivers/scsi/esas2r/esas2r_vda.c 			vi->status = ATTO_STS_INV_FUNC;
vi                220 drivers/scsi/esas2r/esas2r_vda.c 		rq->vrq->cfg.sub_func = vi->cmd.cfg.cfg_func;
vi                221 drivers/scsi/esas2r/esas2r_vda.c 		rq->vrq->cfg.length = cpu_to_le32(vi->cmd.cfg.data_length);
vi                223 drivers/scsi/esas2r/esas2r_vda.c 		if (vi->cmd.cfg.cfg_func == VDA_CFG_GET_INIT) {
vi                225 drivers/scsi/esas2r/esas2r_vda.c 			       &vi->cmd.cfg.data,
vi                226 drivers/scsi/esas2r/esas2r_vda.c 			       vi->cmd.cfg.data_length);
vi                231 drivers/scsi/esas2r/esas2r_vda.c 			vi->status = ATTO_STS_INV_FUNC;
vi                240 drivers/scsi/esas2r/esas2r_vda.c 		vi->cmd.gsv.rsp_len = vercnt;
vi                242 drivers/scsi/esas2r/esas2r_vda.c 		memcpy(vi->cmd.gsv.version_info, esas2r_vdaioctl_versions,
vi                245 drivers/scsi/esas2r/esas2r_vda.c 		vi->vda_status = RS_SUCCESS;
vi                250 drivers/scsi/esas2r/esas2r_vda.c 		vi->status = ATTO_STS_INV_FUNC;
vi                259 drivers/scsi/esas2r/esas2r_vda.c 			vi->status = ATTO_STS_OUT_OF_RSRC;
vi                272 drivers/scsi/esas2r/esas2r_vda.c 	struct atto_ioctl_vda *vi = (struct atto_ioctl_vda *)rq->interrupt_cx;
vi                274 drivers/scsi/esas2r/esas2r_vda.c 	vi->vda_status = rq->req_stat;
vi                276 drivers/scsi/esas2r/esas2r_vda.c 	switch (vi->function) {
vi                279 drivers/scsi/esas2r/esas2r_vda.c 		if (vi->cmd.flash.sub_func == VDA_FLASH_FINFO
vi                280 drivers/scsi/esas2r/esas2r_vda.c 		    || vi->cmd.flash.sub_func == VDA_FLASH_FREAD)
vi                281 drivers/scsi/esas2r/esas2r_vda.c 			vi->cmd.flash.data.file.file_size =
vi                288 drivers/scsi/esas2r/esas2r_vda.c 		vi->cmd.mgt.scan_generation =
vi                290 drivers/scsi/esas2r/esas2r_vda.c 		vi->cmd.mgt.dev_index = le16_to_cpu(
vi                293 drivers/scsi/esas2r/esas2r_vda.c 		if (vi->data_length == 0)
vi                294 drivers/scsi/esas2r/esas2r_vda.c 			vi->cmd.mgt.data_length =
vi                297 drivers/scsi/esas2r/esas2r_vda.c 		esas2r_nuxi_mgt_data(rq->vrq->mgt.mgt_func, &vi->cmd.mgt.data);
vi                302 drivers/scsi/esas2r/esas2r_vda.c 		if (vi->cmd.cfg.cfg_func == VDA_CFG_GET_INIT) {
vi                303 drivers/scsi/esas2r/esas2r_vda.c 			struct atto_ioctl_vda_cfg_cmd *cfg = &vi->cmd.cfg;
vi                328 drivers/scsi/esas2r/esas2r_vda.c 					     &vi->cmd.cfg.data);
vi                335 drivers/scsi/esas2r/esas2r_vda.c 		vi->cmd.cli.cmd_rsp_len =
vi                 22 drivers/virtio/virtio_input.c static void virtinput_queue_evtbuf(struct virtio_input *vi,
vi                 28 drivers/virtio/virtio_input.c 	virtqueue_add_inbuf(vi->evt, sg, 1, evtbuf, GFP_ATOMIC);
vi                 33 drivers/virtio/virtio_input.c 	struct virtio_input *vi = vq->vdev->priv;
vi                 38 drivers/virtio/virtio_input.c 	spin_lock_irqsave(&vi->lock, flags);
vi                 39 drivers/virtio/virtio_input.c 	if (vi->ready) {
vi                 40 drivers/virtio/virtio_input.c 		while ((event = virtqueue_get_buf(vi->evt, &len)) != NULL) {
vi                 41 drivers/virtio/virtio_input.c 			spin_unlock_irqrestore(&vi->lock, flags);
vi                 42 drivers/virtio/virtio_input.c 			input_event(vi->idev,
vi                 46 drivers/virtio/virtio_input.c 			spin_lock_irqsave(&vi->lock, flags);
vi                 47 drivers/virtio/virtio_input.c 			virtinput_queue_evtbuf(vi, event);
vi                 51 drivers/virtio/virtio_input.c 	spin_unlock_irqrestore(&vi->lock, flags);
vi                 58 drivers/virtio/virtio_input.c static int virtinput_send_status(struct virtio_input *vi,
vi                 75 drivers/virtio/virtio_input.c 	spin_lock_irqsave(&vi->lock, flags);
vi                 76 drivers/virtio/virtio_input.c 	if (vi->ready) {
vi                 77 drivers/virtio/virtio_input.c 		rc = virtqueue_add_outbuf(vi->sts, sg, 1, stsbuf, GFP_ATOMIC);
vi                 78 drivers/virtio/virtio_input.c 		virtqueue_kick(vi->sts);
vi                 82 drivers/virtio/virtio_input.c 	spin_unlock_irqrestore(&vi->lock, flags);
vi                 91 drivers/virtio/virtio_input.c 	struct virtio_input *vi = vq->vdev->priv;
vi                 96 drivers/virtio/virtio_input.c 	spin_lock_irqsave(&vi->lock, flags);
vi                 97 drivers/virtio/virtio_input.c 	while ((stsbuf = virtqueue_get_buf(vi->sts, &len)) != NULL)
vi                 99 drivers/virtio/virtio_input.c 	spin_unlock_irqrestore(&vi->lock, flags);
vi                105 drivers/virtio/virtio_input.c 	struct virtio_input *vi = input_get_drvdata(idev);
vi                107 drivers/virtio/virtio_input.c 	return virtinput_send_status(vi, type, code, value);
vi                110 drivers/virtio/virtio_input.c static u8 virtinput_cfg_select(struct virtio_input *vi,
vi                115 drivers/virtio/virtio_input.c 	virtio_cwrite(vi->vdev, struct virtio_input_config, select, &select);
vi                116 drivers/virtio/virtio_input.c 	virtio_cwrite(vi->vdev, struct virtio_input_config, subsel, &subsel);
vi                117 drivers/virtio/virtio_input.c 	virtio_cread(vi->vdev, struct virtio_input_config, size, &size);
vi                121 drivers/virtio/virtio_input.c static void virtinput_cfg_bits(struct virtio_input *vi, int select, int subsel,
vi                128 drivers/virtio/virtio_input.c 	bytes = virtinput_cfg_select(vi, select, subsel);
vi                142 drivers/virtio/virtio_input.c 	virtio_cread_bytes(vi->vdev, offsetof(struct virtio_input_config,
vi                152 drivers/virtio/virtio_input.c 		__set_bit(subsel, vi->idev->evbit);
vi                155 drivers/virtio/virtio_input.c static void virtinput_cfg_abs(struct virtio_input *vi, int abs)
vi                159 drivers/virtio/virtio_input.c 	virtinput_cfg_select(vi, VIRTIO_INPUT_CFG_ABS_INFO, abs);
vi                160 drivers/virtio/virtio_input.c 	virtio_cread(vi->vdev, struct virtio_input_config, u.abs.min, &mi);
vi                161 drivers/virtio/virtio_input.c 	virtio_cread(vi->vdev, struct virtio_input_config, u.abs.max, &ma);
vi                162 drivers/virtio/virtio_input.c 	virtio_cread(vi->vdev, struct virtio_input_config, u.abs.res, &re);
vi                163 drivers/virtio/virtio_input.c 	virtio_cread(vi->vdev, struct virtio_input_config, u.abs.fuzz, &fu);
vi                164 drivers/virtio/virtio_input.c 	virtio_cread(vi->vdev, struct virtio_input_config, u.abs.flat, &fl);
vi                165 drivers/virtio/virtio_input.c 	input_set_abs_params(vi->idev, abs, mi, ma, fu, fl);
vi                166 drivers/virtio/virtio_input.c 	input_abs_set_res(vi->idev, abs, re);
vi                169 drivers/virtio/virtio_input.c static int virtinput_init_vqs(struct virtio_input *vi)
vi                177 drivers/virtio/virtio_input.c 	err = virtio_find_vqs(vi->vdev, 2, vqs, cbs, names, NULL);
vi                180 drivers/virtio/virtio_input.c 	vi->evt = vqs[0];
vi                181 drivers/virtio/virtio_input.c 	vi->sts = vqs[1];
vi                186 drivers/virtio/virtio_input.c static void virtinput_fill_evt(struct virtio_input *vi)
vi                191 drivers/virtio/virtio_input.c 	spin_lock_irqsave(&vi->lock, flags);
vi                192 drivers/virtio/virtio_input.c 	size = virtqueue_get_vring_size(vi->evt);
vi                193 drivers/virtio/virtio_input.c 	if (size > ARRAY_SIZE(vi->evts))
vi                194 drivers/virtio/virtio_input.c 		size = ARRAY_SIZE(vi->evts);
vi                196 drivers/virtio/virtio_input.c 		virtinput_queue_evtbuf(vi, &vi->evts[i]);
vi                197 drivers/virtio/virtio_input.c 	virtqueue_kick(vi->evt);
vi                198 drivers/virtio/virtio_input.c 	spin_unlock_irqrestore(&vi->lock, flags);
vi                203 drivers/virtio/virtio_input.c 	struct virtio_input *vi;
vi                211 drivers/virtio/virtio_input.c 	vi = kzalloc(sizeof(*vi), GFP_KERNEL);
vi                212 drivers/virtio/virtio_input.c 	if (!vi)
vi                215 drivers/virtio/virtio_input.c 	vdev->priv = vi;
vi                216 drivers/virtio/virtio_input.c 	vi->vdev = vdev;
vi                217 drivers/virtio/virtio_input.c 	spin_lock_init(&vi->lock);
vi                219 drivers/virtio/virtio_input.c 	err = virtinput_init_vqs(vi);
vi                223 drivers/virtio/virtio_input.c 	vi->idev = input_allocate_device();
vi                224 drivers/virtio/virtio_input.c 	if (!vi->idev) {
vi                228 drivers/virtio/virtio_input.c 	input_set_drvdata(vi->idev, vi);
vi                230 drivers/virtio/virtio_input.c 	size = virtinput_cfg_select(vi, VIRTIO_INPUT_CFG_ID_NAME, 0);
vi                231 drivers/virtio/virtio_input.c 	virtio_cread_bytes(vi->vdev, offsetof(struct virtio_input_config,
vi                233 drivers/virtio/virtio_input.c 			   vi->name, min(size, sizeof(vi->name)));
vi                234 drivers/virtio/virtio_input.c 	size = virtinput_cfg_select(vi, VIRTIO_INPUT_CFG_ID_SERIAL, 0);
vi                235 drivers/virtio/virtio_input.c 	virtio_cread_bytes(vi->vdev, offsetof(struct virtio_input_config,
vi                237 drivers/virtio/virtio_input.c 			   vi->serial, min(size, sizeof(vi->serial)));
vi                238 drivers/virtio/virtio_input.c 	snprintf(vi->phys, sizeof(vi->phys),
vi                240 drivers/virtio/virtio_input.c 	vi->idev->name = vi->name;
vi                241 drivers/virtio/virtio_input.c 	vi->idev->phys = vi->phys;
vi                242 drivers/virtio/virtio_input.c 	vi->idev->uniq = vi->serial;
vi                244 drivers/virtio/virtio_input.c 	size = virtinput_cfg_select(vi, VIRTIO_INPUT_CFG_ID_DEVIDS, 0);
vi                246 drivers/virtio/virtio_input.c 		virtio_cread(vi->vdev, struct virtio_input_config,
vi                247 drivers/virtio/virtio_input.c 			     u.ids.bustype, &vi->idev->id.bustype);
vi                248 drivers/virtio/virtio_input.c 		virtio_cread(vi->vdev, struct virtio_input_config,
vi                249 drivers/virtio/virtio_input.c 			     u.ids.vendor, &vi->idev->id.vendor);
vi                250 drivers/virtio/virtio_input.c 		virtio_cread(vi->vdev, struct virtio_input_config,
vi                251 drivers/virtio/virtio_input.c 			     u.ids.product, &vi->idev->id.product);
vi                252 drivers/virtio/virtio_input.c 		virtio_cread(vi->vdev, struct virtio_input_config,
vi                253 drivers/virtio/virtio_input.c 			     u.ids.version, &vi->idev->id.version);
vi                255 drivers/virtio/virtio_input.c 		vi->idev->id.bustype = BUS_VIRTUAL;
vi                258 drivers/virtio/virtio_input.c 	virtinput_cfg_bits(vi, VIRTIO_INPUT_CFG_PROP_BITS, 0,
vi                259 drivers/virtio/virtio_input.c 			   vi->idev->propbit, INPUT_PROP_CNT);
vi                260 drivers/virtio/virtio_input.c 	size = virtinput_cfg_select(vi, VIRTIO_INPUT_CFG_EV_BITS, EV_REP);
vi                262 drivers/virtio/virtio_input.c 		__set_bit(EV_REP, vi->idev->evbit);
vi                264 drivers/virtio/virtio_input.c 	vi->idev->dev.parent = &vdev->dev;
vi                265 drivers/virtio/virtio_input.c 	vi->idev->event = virtinput_status;
vi                268 drivers/virtio/virtio_input.c 	virtinput_cfg_bits(vi, VIRTIO_INPUT_CFG_EV_BITS, EV_KEY,
vi                269 drivers/virtio/virtio_input.c 			   vi->idev->keybit, KEY_CNT);
vi                270 drivers/virtio/virtio_input.c 	virtinput_cfg_bits(vi, VIRTIO_INPUT_CFG_EV_BITS, EV_REL,
vi                271 drivers/virtio/virtio_input.c 			   vi->idev->relbit, REL_CNT);
vi                272 drivers/virtio/virtio_input.c 	virtinput_cfg_bits(vi, VIRTIO_INPUT_CFG_EV_BITS, EV_ABS,
vi                273 drivers/virtio/virtio_input.c 			   vi->idev->absbit, ABS_CNT);
vi                274 drivers/virtio/virtio_input.c 	virtinput_cfg_bits(vi, VIRTIO_INPUT_CFG_EV_BITS, EV_MSC,
vi                275 drivers/virtio/virtio_input.c 			   vi->idev->mscbit, MSC_CNT);
vi                276 drivers/virtio/virtio_input.c 	virtinput_cfg_bits(vi, VIRTIO_INPUT_CFG_EV_BITS, EV_SW,
vi                277 drivers/virtio/virtio_input.c 			   vi->idev->swbit,  SW_CNT);
vi                280 drivers/virtio/virtio_input.c 	virtinput_cfg_bits(vi, VIRTIO_INPUT_CFG_EV_BITS, EV_LED,
vi                281 drivers/virtio/virtio_input.c 			   vi->idev->ledbit, LED_CNT);
vi                282 drivers/virtio/virtio_input.c 	virtinput_cfg_bits(vi, VIRTIO_INPUT_CFG_EV_BITS, EV_SND,
vi                283 drivers/virtio/virtio_input.c 			   vi->idev->sndbit, SND_CNT);
vi                285 drivers/virtio/virtio_input.c 	if (test_bit(EV_ABS, vi->idev->evbit)) {
vi                287 drivers/virtio/virtio_input.c 			if (!test_bit(abs, vi->idev->absbit))
vi                289 drivers/virtio/virtio_input.c 			virtinput_cfg_abs(vi, abs);
vi                294 drivers/virtio/virtio_input.c 	vi->ready = true;
vi                295 drivers/virtio/virtio_input.c 	err = input_register_device(vi->idev);
vi                299 drivers/virtio/virtio_input.c 	virtinput_fill_evt(vi);
vi                303 drivers/virtio/virtio_input.c 	spin_lock_irqsave(&vi->lock, flags);
vi                304 drivers/virtio/virtio_input.c 	vi->ready = false;
vi                305 drivers/virtio/virtio_input.c 	spin_unlock_irqrestore(&vi->lock, flags);
vi                306 drivers/virtio/virtio_input.c 	input_free_device(vi->idev);
vi                310 drivers/virtio/virtio_input.c 	kfree(vi);
vi                316 drivers/virtio/virtio_input.c 	struct virtio_input *vi = vdev->priv;
vi                320 drivers/virtio/virtio_input.c 	spin_lock_irqsave(&vi->lock, flags);
vi                321 drivers/virtio/virtio_input.c 	vi->ready = false;
vi                322 drivers/virtio/virtio_input.c 	spin_unlock_irqrestore(&vi->lock, flags);
vi                324 drivers/virtio/virtio_input.c 	input_unregister_device(vi->idev);
vi                326 drivers/virtio/virtio_input.c 	while ((buf = virtqueue_detach_unused_buf(vi->sts)) != NULL)
vi                329 drivers/virtio/virtio_input.c 	kfree(vi);
vi                335 drivers/virtio/virtio_input.c 	struct virtio_input *vi = vdev->priv;
vi                338 drivers/virtio/virtio_input.c 	spin_lock_irqsave(&vi->lock, flags);
vi                339 drivers/virtio/virtio_input.c 	vi->ready = false;
vi                340 drivers/virtio/virtio_input.c 	spin_unlock_irqrestore(&vi->lock, flags);
vi                348 drivers/virtio/virtio_input.c 	struct virtio_input *vi = vdev->priv;
vi                351 drivers/virtio/virtio_input.c 	err = virtinput_init_vqs(vi);
vi                356 drivers/virtio/virtio_input.c 	vi->ready = true;
vi                357 drivers/virtio/virtio_input.c 	virtinput_fill_evt(vi);
vi                 29 fs/afs/callback.c 	struct afs_vol_interest *new_vi, *vi;
vi                 57 fs/afs/callback.c 		vi = hlist_entry(*pp, struct afs_vol_interest, srv_link);
vi                 58 fs/afs/callback.c 		if (vi->vid < new_vi->vid)
vi                 60 fs/afs/callback.c 		if (vi->vid > new_vi->vid)
vi                 62 fs/afs/callback.c 		vi->usage++;
vi                 71 fs/afs/callback.c 	vi = new_vi;
vi                 75 fs/afs/callback.c 	new->vol_interest = vi;
vi                 76 fs/afs/callback.c 	hlist_add_head(&new->cb_vlink, &vi->cb_interests);
vi                181 fs/afs/callback.c 	struct afs_vol_interest *vi;
vi                188 fs/afs/callback.c 			vi = cbi->vol_interest;
vi                190 fs/afs/callback.c 			if (--vi->usage == 0)
vi                191 fs/afs/callback.c 				hlist_del(&vi->srv_link);
vi                193 fs/afs/callback.c 				vi = NULL;
vi                196 fs/afs/callback.c 			if (vi)
vi                197 fs/afs/callback.c 				kfree_rcu(vi, rcu);
vi                249 fs/afs/callback.c 	struct afs_vol_interest *vi;
vi                256 fs/afs/callback.c 	hlist_for_each_entry(vi, &server->cb_volumes, srv_link) {
vi                257 fs/afs/callback.c 		if (vi->vid < fid->vid)
vi                259 fs/afs/callback.c 		if (vi->vid > fid->vid) {
vi                260 fs/afs/callback.c 			vi = NULL;
vi                270 fs/afs/callback.c 	if (!vi)
vi                276 fs/afs/callback.c 	hlist_for_each_entry(cbi, &vi->cb_interests, cb_vlink) {
vi                529 fs/cifs/dfs_cache.c static inline void free_vol(struct dfs_cache_vol_info *vi)
vi                531 fs/cifs/dfs_cache.c 	list_del(&vi->vi_list);
vi                532 fs/cifs/dfs_cache.c 	kfree(vi->vi_fullpath);
vi                533 fs/cifs/dfs_cache.c 	kfree(vi->vi_mntdata);
vi                534 fs/cifs/dfs_cache.c 	cifs_cleanup_volume_info_contents(&vi->vi_vol);
vi                535 fs/cifs/dfs_cache.c 	kfree(vi);
vi                540 fs/cifs/dfs_cache.c 	struct dfs_cache_vol_info *vi, *nvi;
vi                542 fs/cifs/dfs_cache.c 	list_for_each_entry_safe(vi, nvi, &dfs_cache.dc_vol_list, vi_list)
vi                543 fs/cifs/dfs_cache.c 		free_vol(vi);
vi               1153 fs/cifs/dfs_cache.c 	struct dfs_cache_vol_info *vi;
vi               1160 fs/cifs/dfs_cache.c 	vi = kzalloc(sizeof(*vi), GFP_KERNEL);
vi               1161 fs/cifs/dfs_cache.c 	if (!vi)
vi               1164 fs/cifs/dfs_cache.c 	vi->vi_fullpath = kstrndup(fullpath, strlen(fullpath), GFP_KERNEL);
vi               1165 fs/cifs/dfs_cache.c 	if (!vi->vi_fullpath) {
vi               1170 fs/cifs/dfs_cache.c 	rc = dup_vol(vol, &vi->vi_vol);
vi               1174 fs/cifs/dfs_cache.c 	vi->vi_mntdata = mntdata;
vi               1177 fs/cifs/dfs_cache.c 	list_add_tail(&vi->vi_list, &dfs_cache.dc_vol_list);
vi               1182 fs/cifs/dfs_cache.c 	kfree(vi->vi_fullpath);
vi               1184 fs/cifs/dfs_cache.c 	kfree(vi);
vi               1190 fs/cifs/dfs_cache.c 	struct dfs_cache_vol_info *vi;
vi               1192 fs/cifs/dfs_cache.c 	list_for_each_entry(vi, &dfs_cache.dc_vol_list, vi_list) {
vi               1194 fs/cifs/dfs_cache.c 			 vi->vi_fullpath);
vi               1195 fs/cifs/dfs_cache.c 		if (!strcasecmp(vi->vi_fullpath, fullpath))
vi               1196 fs/cifs/dfs_cache.c 			return vi;
vi               1212 fs/cifs/dfs_cache.c 	struct dfs_cache_vol_info *vi;
vi               1221 fs/cifs/dfs_cache.c 	vi = find_vol(fullpath);
vi               1222 fs/cifs/dfs_cache.c 	if (IS_ERR(vi)) {
vi               1223 fs/cifs/dfs_cache.c 		rc = PTR_ERR(vi);
vi               1228 fs/cifs/dfs_cache.c 	memcpy(&vi->vi_vol.dstaddr, &server->dstaddr,
vi               1229 fs/cifs/dfs_cache.c 	       sizeof(vi->vi_vol.dstaddr));
vi               1244 fs/cifs/dfs_cache.c 	struct dfs_cache_vol_info *vi;
vi               1252 fs/cifs/dfs_cache.c 	vi = find_vol(fullpath);
vi               1253 fs/cifs/dfs_cache.c 	if (!IS_ERR(vi))
vi               1254 fs/cifs/dfs_cache.c 		free_vol(vi);
vi               1313 fs/cifs/dfs_cache.c static struct cifs_ses *find_root_ses(struct dfs_cache_vol_info *vi,
vi               1336 fs/cifs/dfs_cache.c 	mdata = cifs_compose_mount_options(vi->vi_mntdata, rpath, &ref,
vi               1376 fs/cifs/dfs_cache.c static void do_refresh_tcon(struct dfs_cache *dc, struct dfs_cache_vol_info *vi,
vi               1410 fs/cifs/dfs_cache.c 		ses = root_ses = find_root_ses(vi, tcon, npath);
vi               1453 fs/cifs/dfs_cache.c 	struct dfs_cache_vol_info *vi;
vi               1460 fs/cifs/dfs_cache.c 	list_for_each_entry(vi, &dc->dc_vol_list, vi_list) {
vi               1461 fs/cifs/dfs_cache.c 		server = cifs_find_tcp_session(&vi->vi_vol);
vi               1468 fs/cifs/dfs_cache.c 			do_refresh_tcon(dc, vi, tcon);
vi                487 fs/coda/upcall.c         if (data->vi.in_size > VC_MAXDATASIZE) {
vi                492 fs/coda/upcall.c         if (data->vi.out_size > VC_MAXDATASIZE) {
vi                507 fs/coda/upcall.c         inp->coda_ioctl.len = data->vi.in_size;
vi                512 fs/coda/upcall.c 			   data->vi.in, data->vi.in_size)) {
vi                517 fs/coda/upcall.c 	error = coda_upcall(coda_vcp(sb), SIZE(ioctl) + data->vi.in_size,
vi                532 fs/coda/upcall.c         if (outp->coda_ioctl.len > data->vi.out_size) {
vi                538 fs/coda/upcall.c 	if (copy_to_user(data->vi.out,
vi                 55 fs/erofs/data.c 	struct erofs_inode *vi = EROFS_I(inode);
vi                 56 fs/erofs/data.c 	bool tailendpacking = (vi->datalayout == EROFS_INODE_FLAT_INLINE);
vi                 74 fs/erofs/data.c 		map->m_pa = blknr_to_addr(vi->raw_blkaddr) + map->m_la;
vi                 80 fs/erofs/data.c 		map->m_pa = iloc(sbi, vi->nid) + vi->inode_isize +
vi                 81 fs/erofs/data.c 			vi->xattr_isize + erofs_blkoff(map->m_la);
vi                 88 fs/erofs/data.c 				  vi->nid);
vi                 98 fs/erofs/data.c 			  vi->nid, inode->i_size, map->m_la);
vi                 14 fs/erofs/inode.c 	struct erofs_inode *vi = EROFS_I(inode);
vi                 22 fs/erofs/inode.c 	vi->datalayout = erofs_inode_datalayout(ifmt);
vi                 24 fs/erofs/inode.c 	if (vi->datalayout >= EROFS_INODE_DATALAYOUT_MAX) {
vi                 26 fs/erofs/inode.c 			  vi->datalayout, vi->nid);
vi                 35 fs/erofs/inode.c 		vi->inode_isize = sizeof(struct erofs_inode_extended);
vi                 36 fs/erofs/inode.c 		vi->xattr_isize = erofs_xattr_ibody_size(die->i_xattr_icount);
vi                 43 fs/erofs/inode.c 			vi->raw_blkaddr = le32_to_cpu(die->i_u.raw_blkaddr);
vi                 70 fs/erofs/inode.c 		if (erofs_inode_is_data_compressed(vi->datalayout))
vi                 74 fs/erofs/inode.c 		vi->inode_isize = sizeof(struct erofs_inode_compact);
vi                 75 fs/erofs/inode.c 		vi->xattr_isize = erofs_xattr_ibody_size(dic->i_xattr_icount);
vi                 82 fs/erofs/inode.c 			vi->raw_blkaddr = le32_to_cpu(dic->i_u.raw_blkaddr);
vi                107 fs/erofs/inode.c 		if (erofs_inode_is_data_compressed(vi->datalayout))
vi                113 fs/erofs/inode.c 			  erofs_inode_version(ifmt), vi->nid);
vi                127 fs/erofs/inode.c 		  inode->i_mode, vi->nid);
vi                135 fs/erofs/inode.c 	struct erofs_inode *vi = EROFS_I(inode);
vi                139 fs/erofs/inode.c 	if (vi->datalayout != EROFS_INODE_FLAT_INLINE ||
vi                149 fs/erofs/inode.c 	m_pofs += vi->inode_isize + vi->xattr_isize;
vi                155 fs/erofs/inode.c 			  vi->nid);
vi                171 fs/erofs/inode.c 	struct erofs_inode *vi = EROFS_I(inode);
vi                180 fs/erofs/inode.c 	inode_loc = iloc(EROFS_SB(sb), vi->nid);
vi                185 fs/erofs/inode.c 		  __func__, vi->nid, ofs, blkaddr);
vi                191 fs/erofs/inode.c 			  vi->nid, PTR_ERR(page));
vi                230 fs/erofs/inode.c 	if (erofs_inode_is_data_compressed(vi->datalayout)) {
vi                281 fs/erofs/inode.c 		struct erofs_inode *vi = EROFS_I(inode);
vi                283 fs/erofs/inode.c 		vi->nid = nid;
vi                 51 fs/erofs/super.c 	struct erofs_inode *vi = ptr;
vi                 53 fs/erofs/super.c 	inode_init_once(&vi->vfs_inode);
vi                 58 fs/erofs/super.c 	struct erofs_inode *vi =
vi                 61 fs/erofs/super.c 	if (!vi)
vi                 65 fs/erofs/super.c 	memset(vi, 0, offsetof(struct erofs_inode, vfs_inode));
vi                 66 fs/erofs/super.c 	return &vi->vfs_inode;
vi                 71 fs/erofs/super.c 	struct erofs_inode *vi = EROFS_I(inode);
vi                 76 fs/erofs/super.c 	kfree(vi->xattr_shared_xattrs);
vi                 78 fs/erofs/super.c 	kmem_cache_free(erofs_inode_cachep, vi);
vi                 41 fs/erofs/xattr.c 	struct erofs_inode *const vi = EROFS_I(inode);
vi                 51 fs/erofs/xattr.c 	if (test_bit(EROFS_I_EA_INITED_BIT, &vi->flags))
vi                 54 fs/erofs/xattr.c 	if (wait_on_bit_lock(&vi->flags, EROFS_I_BL_XATTR_BIT, TASK_KILLABLE))
vi                 58 fs/erofs/xattr.c 	if (test_bit(EROFS_I_EA_INITED_BIT, &vi->flags))
vi                 69 fs/erofs/xattr.c 	if (vi->xattr_isize == sizeof(struct erofs_xattr_ibody_header)) {
vi                 72 fs/erofs/xattr.c 			  vi->xattr_isize, vi->nid);
vi                 75 fs/erofs/xattr.c 	} else if (vi->xattr_isize < sizeof(struct erofs_xattr_ibody_header)) {
vi                 76 fs/erofs/xattr.c 		if (vi->xattr_isize) {
vi                 78 fs/erofs/xattr.c 				  "bogus xattr ibody @ nid %llu", vi->nid);
vi                 89 fs/erofs/xattr.c 	it.blkaddr = erofs_blknr(iloc(sbi, vi->nid) + vi->inode_isize);
vi                 90 fs/erofs/xattr.c 	it.ofs = erofs_blkoff(iloc(sbi, vi->nid) + vi->inode_isize);
vi                104 fs/erofs/xattr.c 	vi->xattr_shared_count = ih->h_shared_count;
vi                105 fs/erofs/xattr.c 	vi->xattr_shared_xattrs = kmalloc_array(vi->xattr_shared_count,
vi                107 fs/erofs/xattr.c 	if (!vi->xattr_shared_xattrs) {
vi                116 fs/erofs/xattr.c 	for (i = 0; i < vi->xattr_shared_count; ++i) {
vi                124 fs/erofs/xattr.c 				kfree(vi->xattr_shared_xattrs);
vi                125 fs/erofs/xattr.c 				vi->xattr_shared_xattrs = NULL;
vi                134 fs/erofs/xattr.c 		vi->xattr_shared_xattrs[i] =
vi                140 fs/erofs/xattr.c 	set_bit(EROFS_I_EA_INITED_BIT, &vi->flags);
vi                143 fs/erofs/xattr.c 	clear_and_wake_up_bit(EROFS_I_BL_XATTR_BIT, &vi->flags);
vi                188 fs/erofs/xattr.c 	struct erofs_inode *const vi = EROFS_I(inode);
vi                193 fs/erofs/xattr.c 	if (xattr_header_sz >= vi->xattr_isize) {
vi                194 fs/erofs/xattr.c 		DBG_BUGON(xattr_header_sz > vi->xattr_isize);
vi                198 fs/erofs/xattr.c 	inline_xattr_ofs = vi->inode_isize + xattr_header_sz;
vi                200 fs/erofs/xattr.c 	it->blkaddr = erofs_blknr(iloc(sbi, vi->nid) + inline_xattr_ofs);
vi                201 fs/erofs/xattr.c 	it->ofs = erofs_blkoff(iloc(sbi, vi->nid) + inline_xattr_ofs);
vi                208 fs/erofs/xattr.c 	return vi->xattr_isize - xattr_header_sz;
vi                389 fs/erofs/xattr.c 	struct erofs_inode *const vi = EROFS_I(inode);
vi                395 fs/erofs/xattr.c 	for (i = 0; i < vi->xattr_shared_count; ++i) {
vi                397 fs/erofs/xattr.c 			xattrblock_addr(sbi, vi->xattr_shared_xattrs[i]);
vi                399 fs/erofs/xattr.c 		it->it.ofs = xattrblock_offset(sbi, vi->xattr_shared_xattrs[i]);
vi                417 fs/erofs/xattr.c 	if (vi->xattr_shared_count)
vi                612 fs/erofs/xattr.c 	struct erofs_inode *const vi = EROFS_I(inode);
vi                618 fs/erofs/xattr.c 	for (i = 0; i < vi->xattr_shared_count; ++i) {
vi                620 fs/erofs/xattr.c 			xattrblock_addr(sbi, vi->xattr_shared_xattrs[i]);
vi                622 fs/erofs/xattr.c 		it->it.ofs = xattrblock_offset(sbi, vi->xattr_shared_xattrs[i]);
vi                639 fs/erofs/xattr.c 	if (vi->xattr_shared_count)
vi                 13 fs/erofs/zmap.c 	struct erofs_inode *const vi = EROFS_I(inode);
vi                 15 fs/erofs/zmap.c 	if (vi->datalayout == EROFS_INODE_FLAT_COMPRESSION_LEGACY) {
vi                 16 fs/erofs/zmap.c 		vi->z_advise = 0;
vi                 17 fs/erofs/zmap.c 		vi->z_algorithmtype[0] = 0;
vi                 18 fs/erofs/zmap.c 		vi->z_algorithmtype[1] = 0;
vi                 19 fs/erofs/zmap.c 		vi->z_logical_clusterbits = LOG_BLOCK_SIZE;
vi                 20 fs/erofs/zmap.c 		vi->z_physical_clusterbits[0] = vi->z_logical_clusterbits;
vi                 21 fs/erofs/zmap.c 		vi->z_physical_clusterbits[1] = vi->z_logical_clusterbits;
vi                 22 fs/erofs/zmap.c 		set_bit(EROFS_I_Z_INITED_BIT, &vi->flags);
vi                 31 fs/erofs/zmap.c 	struct erofs_inode *const vi = EROFS_I(inode);
vi                 39 fs/erofs/zmap.c 	if (test_bit(EROFS_I_Z_INITED_BIT, &vi->flags))
vi                 42 fs/erofs/zmap.c 	if (wait_on_bit_lock(&vi->flags, EROFS_I_BL_Z_BIT, TASK_KILLABLE))
vi                 46 fs/erofs/zmap.c 	if (test_bit(EROFS_I_Z_INITED_BIT, &vi->flags))
vi                 49 fs/erofs/zmap.c 	DBG_BUGON(vi->datalayout == EROFS_INODE_FLAT_COMPRESSION_LEGACY);
vi                 51 fs/erofs/zmap.c 	pos = ALIGN(iloc(EROFS_SB(sb), vi->nid) + vi->inode_isize +
vi                 52 fs/erofs/zmap.c 		    vi->xattr_isize, 8);
vi                 62 fs/erofs/zmap.c 	vi->z_advise = le16_to_cpu(h->h_advise);
vi                 63 fs/erofs/zmap.c 	vi->z_algorithmtype[0] = h->h_algorithmtype & 15;
vi                 64 fs/erofs/zmap.c 	vi->z_algorithmtype[1] = h->h_algorithmtype >> 4;
vi                 66 fs/erofs/zmap.c 	if (vi->z_algorithmtype[0] >= Z_EROFS_COMPRESSION_MAX) {
vi                 68 fs/erofs/zmap.c 			  vi->z_algorithmtype[0], vi->nid);
vi                 73 fs/erofs/zmap.c 	vi->z_logical_clusterbits = LOG_BLOCK_SIZE + (h->h_clusterbits & 7);
vi                 74 fs/erofs/zmap.c 	vi->z_physical_clusterbits[0] = vi->z_logical_clusterbits +
vi                 77 fs/erofs/zmap.c 	if (vi->z_physical_clusterbits[0] != LOG_BLOCK_SIZE) {
vi                 79 fs/erofs/zmap.c 			  vi->z_physical_clusterbits[0], vi->nid);
vi                 84 fs/erofs/zmap.c 	vi->z_physical_clusterbits[1] = vi->z_logical_clusterbits +
vi                 86 fs/erofs/zmap.c 	set_bit(EROFS_I_Z_INITED_BIT, &vi->flags);
vi                 92 fs/erofs/zmap.c 	clear_and_wake_up_bit(EROFS_I_BL_Z_BIT, &vi->flags);
vi                145 fs/erofs/zmap.c 	struct erofs_inode *const vi = EROFS_I(inode);
vi                146 fs/erofs/zmap.c 	const erofs_off_t ibase = iloc(EROFS_I_SB(inode), vi->nid);
vi                148 fs/erofs/zmap.c 		Z_EROFS_VLE_LEGACY_INDEX_ALIGN(ibase + vi->inode_isize +
vi                149 fs/erofs/zmap.c 					       vi->xattr_isize) +
vi                167 fs/erofs/zmap.c 		m->clusterofs = 1 << vi->z_logical_clusterbits;
vi                199 fs/erofs/zmap.c 	struct erofs_inode *const vi = EROFS_I(m->inode);
vi                200 fs/erofs/zmap.c 	const unsigned int lclusterbits = vi->z_logical_clusterbits;
vi                263 fs/erofs/zmap.c 	struct erofs_inode *const vi = EROFS_I(inode);
vi                264 fs/erofs/zmap.c 	const unsigned int lclusterbits = vi->z_logical_clusterbits;
vi                265 fs/erofs/zmap.c 	const erofs_off_t ebase = ALIGN(iloc(EROFS_I_SB(inode), vi->nid) +
vi                266 fs/erofs/zmap.c 					vi->inode_isize + vi->xattr_isize, 8) +
vi                286 fs/erofs/zmap.c 	if (vi->z_advise & Z_EROFS_ADVISE_COMPACTED_2B)
vi                331 fs/erofs/zmap.c 	struct erofs_inode *const vi = EROFS_I(m->inode);
vi                333 fs/erofs/zmap.c 	const unsigned int lclusterbits = vi->z_logical_clusterbits;
vi                339 fs/erofs/zmap.c 			  "bogus lookback distance @ nid %llu", vi->nid);
vi                355 fs/erofs/zmap.c 				  vi->nid);
vi                369 fs/erofs/zmap.c 			  m->type, lcn, vi->nid);
vi                380 fs/erofs/zmap.c 	struct erofs_inode *const vi = EROFS_I(inode);
vi                403 fs/erofs/zmap.c 	lclusterbits = vi->z_logical_clusterbits;
vi                429 fs/erofs/zmap.c 				  vi->nid);
vi                446 fs/erofs/zmap.c 			  m.type, ofs, vi->nid);
vi                125 fs/freevxfs/vxfs_super.c 	struct vxfs_inode_info *vi;
vi                127 fs/freevxfs/vxfs_super.c 	vi = kmem_cache_alloc(vxfs_inode_cachep, GFP_KERNEL);
vi                128 fs/freevxfs/vxfs_super.c 	if (!vi)
vi                130 fs/freevxfs/vxfs_super.c 	inode_init_once(&vi->vfs_inode);
vi                131 fs/freevxfs/vxfs_super.c 	return &vi->vfs_inode;
vi                 50 fs/ntfs/aops.c 	struct inode *vi;
vi                 55 fs/ntfs/aops.c 	vi = page->mapping->host;
vi                 56 fs/ntfs/aops.c 	ni = NTFS_I(vi);
vi                 68 fs/ntfs/aops.c 		i_size = i_size_read(vi);
vi                173 fs/ntfs/aops.c 	struct inode *vi;
vi                184 fs/ntfs/aops.c 	vi = page->mapping->host;
vi                185 fs/ntfs/aops.c 	ni = NTFS_I(vi);
vi                219 fs/ntfs/aops.c 	i_size = i_size_read(vi);
vi                384 fs/ntfs/aops.c 	struct inode *vi;
vi                395 fs/ntfs/aops.c 	vi = page->mapping->host;
vi                396 fs/ntfs/aops.c 	i_size = i_size_read(vi);
vi                412 fs/ntfs/aops.c 	ni = NTFS_I(vi);
vi                483 fs/ntfs/aops.c 	i_size = i_size_read(vi);
vi                540 fs/ntfs/aops.c 	struct inode *vi;
vi                551 fs/ntfs/aops.c 	vi = page->mapping->host;
vi                552 fs/ntfs/aops.c 	ni = NTFS_I(vi);
vi                588 fs/ntfs/aops.c 	i_size = i_size_read(vi);
vi                906 fs/ntfs/aops.c 	struct inode *vi = page->mapping->host;
vi                907 fs/ntfs/aops.c 	ntfs_inode *ni = NTFS_I(vi);
vi                924 fs/ntfs/aops.c 			"0x%lx.", vi->i_ino, ni->type, page->index);
vi                927 fs/ntfs/aops.c 	is_mft = (S_ISREG(vi->i_mode) && !vi->i_ino);
vi                934 fs/ntfs/aops.c 	BUG_ON(!(is_mft || S_ISDIR(vi->i_mode) ||
vi                959 fs/ntfs/aops.c 	dblock = (i_size_read(vi) + bh_size - 1) >> bh_size_bits;
vi               1160 fs/ntfs/aops.c 					"  Unmount and run chkdsk.", vi->i_ino,
vi               1208 fs/ntfs/aops.c 					"and run chkdsk.", vi->i_ino, ni->type,
vi               1342 fs/ntfs/aops.c 	struct inode *vi = page->mapping->host;
vi               1343 fs/ntfs/aops.c 	ntfs_inode *base_ni = NULL, *ni = NTFS_I(vi);
vi               1352 fs/ntfs/aops.c 	i_size = i_size_read(vi);
vi               1388 fs/ntfs/aops.c 			ntfs_error(vi->i_sb, "Writing to compressed files is "
vi               1395 fs/ntfs/aops.c 			ntfs_error(vi->i_sb, "Writing to sparse files is not "
vi               1425 fs/ntfs/aops.c 		ntfs_error(vi->i_sb, "BUG()! page->index (0x%lx) > 0.  "
vi               1470 fs/ntfs/aops.c 	i_size = i_size_read(vi);
vi               1502 fs/ntfs/aops.c 		ntfs_warning(vi->i_sb, "Error allocating memory. Redirtying "
vi               1511 fs/ntfs/aops.c 		ntfs_error(vi->i_sb, "Resident attribute write failed with "
vi               1524 fs/ntfs/attrib.c 	struct inode *vi = VFS_I(ni);
vi               1566 fs/ntfs/attrib.c 		page = find_or_create_page(vi->i_mapping, 0,
vi               1567 fs/ntfs/attrib.c 				mapping_gfp_mask(vi->i_mapping));
vi               1717 fs/ntfs/attrib.c 		vi->i_blocks = ni->itype.compressed.size >> 9;
vi               1719 fs/ntfs/attrib.c 		vi->i_blocks = ni->allocated_size >> 9;
vi               1775 fs/ntfs/attrib.c 					vi->i_ino,
vi               1782 fs/ntfs/attrib.c 			i_size_write(vi, attr_size);
vi               1895 fs/ntfs/attrib.c 	struct inode *vi = VFS_I(ni);
vi               1914 fs/ntfs/attrib.c 			"data_start 0x%llx.", vi->i_ino,
vi               1948 fs/ntfs/attrib.c 						vi->i_ino, (unsigned)
vi               1958 fs/ntfs/attrib.c 						vi->i_ino, (unsigned)
vi               2085 fs/ntfs/attrib.c 					"with error code %i.", vi->i_ino,
vi               2179 fs/ntfs/attrib.c 						"code %i.", vi->i_ino,
vi               2215 fs/ntfs/attrib.c 					"failed with error code %i.", vi->i_ino,
vi               2228 fs/ntfs/attrib.c 					"with error code %i.", vi->i_ino,
vi               2261 fs/ntfs/attrib.c 					"%i.", vi->i_ino,
vi               2296 fs/ntfs/attrib.c 					"failed with error code %i.", vi->i_ino,
vi               2340 fs/ntfs/attrib.c 		vi->i_blocks = ni->itype.compressed.size >> 9;
vi               2342 fs/ntfs/attrib.c 		vi->i_blocks = new_alloc_size >> 9;
vi               2366 fs/ntfs/attrib.c 				"error code %i.", vi->i_ino,
vi               2387 fs/ntfs/attrib.c 			vi->i_blocks = ni->itype.compressed.size >> 9;
vi               2389 fs/ntfs/attrib.c 			vi->i_blocks = new_alloc_size >> 9;
vi                 33 fs/ntfs/bitmap.c int __ntfs_bitmap_set_bits_in_run(struct inode *vi, const s64 start_bit,
vi                 44 fs/ntfs/bitmap.c 	BUG_ON(!vi);
vi                 46 fs/ntfs/bitmap.c 			"value %u.%s", vi->i_ino, (unsigned long long)start_bit,
vi                 60 fs/ntfs/bitmap.c 	mapping = vi->i_mapping;
vi                 64 fs/ntfs/bitmap.c 			ntfs_error(vi->i_sb, "Failed to map first page (error "
vi                160 fs/ntfs/bitmap.c 		pos = __ntfs_bitmap_set_bits_in_run(vi, start_bit, count - cnt,
vi                166 fs/ntfs/bitmap.c 		ntfs_error(vi->i_sb, "Failed to map subsequent page (error "
vi                170 fs/ntfs/bitmap.c 		ntfs_error(vi->i_sb, "Failed to map subsequent page (error "
vi                174 fs/ntfs/bitmap.c 		NVolSetErrors(NTFS_SB(vi->i_sb));
vi                 18 fs/ntfs/bitmap.h extern int __ntfs_bitmap_set_bits_in_run(struct inode *vi, const s64 start_bit,
vi                 33 fs/ntfs/bitmap.h static inline int ntfs_bitmap_set_bits_in_run(struct inode *vi,
vi                 36 fs/ntfs/bitmap.h 	return __ntfs_bitmap_set_bits_in_run(vi, start_bit, count, value,
vi                 51 fs/ntfs/bitmap.h static inline int ntfs_bitmap_set_run(struct inode *vi, const s64 start_bit,
vi                 54 fs/ntfs/bitmap.h 	return ntfs_bitmap_set_bits_in_run(vi, start_bit, count, 1);
vi                 68 fs/ntfs/bitmap.h static inline int ntfs_bitmap_clear_run(struct inode *vi, const s64 start_bit,
vi                 71 fs/ntfs/bitmap.h 	return ntfs_bitmap_set_bits_in_run(vi, start_bit, count, 0);
vi                 83 fs/ntfs/bitmap.h static inline int ntfs_bitmap_set_bit(struct inode *vi, const s64 bit)
vi                 85 fs/ntfs/bitmap.h 	return ntfs_bitmap_set_run(vi, bit, 1);
vi                 97 fs/ntfs/bitmap.h static inline int ntfs_bitmap_clear_bit(struct inode *vi, const s64 bit)
vi                 99 fs/ntfs/bitmap.h 	return ntfs_bitmap_clear_run(vi, bit, 1);
vi               1450 fs/ntfs/dir.c  static int ntfs_dir_open(struct inode *vi, struct file *filp)
vi               1453 fs/ntfs/dir.c  		if (i_size_read(vi) > MAX_LFS_FILESIZE)
vi               1489 fs/ntfs/dir.c  	struct inode *bmp_vi, *vi = filp->f_mapping->host;
vi               1493 fs/ntfs/dir.c  	ntfs_debug("Entering for inode 0x%lx.", vi->i_ino);
vi               1498 fs/ntfs/dir.c  	inode_lock(vi);
vi               1500 fs/ntfs/dir.c  	BUG_ON(!S_ISDIR(vi->i_mode));
vi               1502 fs/ntfs/dir.c  	na.mft_no = vi->i_ino;
vi               1506 fs/ntfs/dir.c  	bmp_vi = ilookup5(vi->i_sb, vi->i_ino, (test_t)ntfs_test_inode, &na);
vi               1511 fs/ntfs/dir.c  	ret = __ntfs_write_inode(vi, 1);
vi               1512 fs/ntfs/dir.c  	write_inode_now(vi, !datasync);
vi               1513 fs/ntfs/dir.c  	err = sync_blockdev(vi->i_sb->s_bdev);
vi               1519 fs/ntfs/dir.c  		ntfs_warning(vi->i_sb, "Failed to f%ssync inode 0x%lx.  Error "
vi               1520 fs/ntfs/dir.c  				"%u.", datasync ? "data" : "", vi->i_ino, -ret);
vi               1521 fs/ntfs/dir.c  	inode_unlock(vi);
vi                 48 fs/ntfs/file.c static int ntfs_file_open(struct inode *vi, struct file *filp)
vi                 51 fs/ntfs/file.c 		if (i_size_read(vi) > MAX_LFS_FILESIZE)
vi                 54 fs/ntfs/file.c 	return generic_file_open(vi, filp);
vi                101 fs/ntfs/file.c 	struct inode *vi = VFS_I(ni);
vi                114 fs/ntfs/file.c 	old_i_size = i_size_read(vi);
vi                120 fs/ntfs/file.c 			vi->i_ino, (unsigned)le32_to_cpu(ni->type),
vi                164 fs/ntfs/file.c 	i_size_write(vi, new_init_size);
vi                202 fs/ntfs/file.c 		i_size_write(vi, new_init_size);
vi                208 fs/ntfs/file.c 	mapping = vi->i_mapping;
vi                302 fs/ntfs/file.c 			(unsigned long long)new_init_size, i_size_read(vi));
vi                325 fs/ntfs/file.c 	struct inode *vi = file_inode(file);
vi                326 fs/ntfs/file.c 	ntfs_inode *base_ni, *ni = NTFS_I(vi);
vi                330 fs/ntfs/file.c 			"0x%llx, count 0x%zx.", vi->i_ino,
vi                363 fs/ntfs/file.c 		ntfs_error(vi->i_sb, "Writing to compressed files is not "
vi                407 fs/ntfs/file.c 						vi->i_ino, (unsigned)
vi                422 fs/ntfs/file.c 						vi->i_ino, (unsigned)
vi                428 fs/ntfs/file.c 					ntfs_error(vi->i_sb, "Cannot perform "
vi                435 fs/ntfs/file.c 							vi->i_ino, (unsigned)
vi                444 fs/ntfs/file.c 							vi->i_ino, (unsigned)
vi                465 fs/ntfs/file.c 		inode_dio_wait(vi);
vi                468 fs/ntfs/file.c 			ntfs_error(vi->i_sb, "Cannot perform write to inode "
vi                471 fs/ntfs/file.c 					"failed (error %d).", vi->i_ino,
vi                578 fs/ntfs/file.c 	struct inode *vi;
vi                602 fs/ntfs/file.c 	vi = pages[0]->mapping->host;
vi                603 fs/ntfs/file.c 	ni = NTFS_I(vi);
vi                607 fs/ntfs/file.c 			vi->i_ino, ni->type, pages[0]->index, nr_pages,
vi               1109 fs/ntfs/file.c 					"code %i.", vi->i_ino,
vi               1389 fs/ntfs/file.c 	struct inode *vi;
vi               1399 fs/ntfs/file.c 	vi = pages[0]->mapping->host;
vi               1400 fs/ntfs/file.c 	ni = NTFS_I(vi);
vi               1401 fs/ntfs/file.c 	blocksize = vi->i_sb->s_blocksize;
vi               1478 fs/ntfs/file.c 	if (end > i_size_read(vi)) {
vi               1479 fs/ntfs/file.c 		i_size_write(vi, end);
vi               1496 fs/ntfs/file.c 	ntfs_error(vi->i_sb, "Failed to update initialized_size/i_size (error "
vi               1544 fs/ntfs/file.c 	struct inode *vi;
vi               1559 fs/ntfs/file.c 	vi = page->mapping->host;
vi               1560 fs/ntfs/file.c 	ni = NTFS_I(vi);
vi               1563 fs/ntfs/file.c 			vi->i_ino, ni->type, page->index, nr_pages,
vi               1602 fs/ntfs/file.c 	i_size = i_size_read(vi);
vi               1641 fs/ntfs/file.c 		i_size_write(vi, end);
vi               1653 fs/ntfs/file.c 		ntfs_warning(vi->i_sb, "Error allocating memory required to "
vi               1656 fs/ntfs/file.c 			ntfs_warning(vi->i_sb, "Page is uptodate, setting "
vi               1666 fs/ntfs/file.c 			ntfs_error(vi->i_sb, "Page is not uptodate.  Written "
vi               1669 fs/ntfs/file.c 		ntfs_error(vi->i_sb, "Resident attribute commit write failed "
vi               1734 fs/ntfs/file.c 	struct inode *vi = mapping->host;
vi               1735 fs/ntfs/file.c 	ntfs_inode *ni = NTFS_I(vi);
vi               1746 fs/ntfs/file.c 			"0x%llx, count 0x%lx.", vi->i_ino,
vi               1757 fs/ntfs/file.c 		inode_dio_wait(vi);
vi               1758 fs/ntfs/file.c 		err = ntfs_truncate(vi);
vi               1765 fs/ntfs/file.c 					"%i).", vi->i_ino,
vi               1812 fs/ntfs/file.c 							vi->i_ino, (unsigned)
vi               1928 fs/ntfs/file.c 	struct inode *vi = file_inode(file);
vi               1932 fs/ntfs/file.c 	inode_lock(vi);
vi               1934 fs/ntfs/file.c 	current->backing_dev_info = inode_to_bdi(vi);
vi               1939 fs/ntfs/file.c 	inode_unlock(vi);
vi               1973 fs/ntfs/file.c 	struct inode *vi = filp->f_mapping->host;
vi               1976 fs/ntfs/file.c 	ntfs_debug("Entering for inode 0x%lx.", vi->i_ino);
vi               1981 fs/ntfs/file.c 	inode_lock(vi);
vi               1983 fs/ntfs/file.c 	BUG_ON(S_ISDIR(vi->i_mode));
vi               1984 fs/ntfs/file.c 	if (!datasync || !NInoNonResident(NTFS_I(vi)))
vi               1985 fs/ntfs/file.c 		ret = __ntfs_write_inode(vi, 1);
vi               1986 fs/ntfs/file.c 	write_inode_now(vi, !datasync);
vi               1992 fs/ntfs/file.c 	err = sync_blockdev(vi->i_sb->s_bdev);
vi               1998 fs/ntfs/file.c 		ntfs_warning(vi->i_sb, "Failed to f%ssync inode 0x%lx.  Error "
vi               1999 fs/ntfs/file.c 				"%u.", datasync ? "data" : "", vi->i_ino, -ret);
vi               2000 fs/ntfs/file.c 	inode_unlock(vi);
vi                186 fs/ntfs/index.c 				le16_to_cpu(ie->data.vi.data_offset) ||
vi                187 fs/ntfs/index.c 				(u32)le16_to_cpu(ie->data.vi.data_offset) +
vi                188 fs/ntfs/index.c 				le16_to_cpu(ie->data.vi.data_length) >
vi                204 fs/ntfs/index.c 					le16_to_cpu(ie->data.vi.data_offset);
vi                205 fs/ntfs/index.c 			ictx->data_len = le16_to_cpu(ie->data.vi.data_length);
vi                353 fs/ntfs/index.c 				le16_to_cpu(ie->data.vi.data_offset) ||
vi                354 fs/ntfs/index.c 				(u32)le16_to_cpu(ie->data.vi.data_offset) +
vi                355 fs/ntfs/index.c 				le16_to_cpu(ie->data.vi.data_length) >
vi                 46 fs/ntfs/inode.c int ntfs_test_inode(struct inode *vi, ntfs_attr *na)
vi                 50 fs/ntfs/inode.c 	if (vi->i_ino != na->mft_no)
vi                 52 fs/ntfs/inode.c 	ni = NTFS_I(vi);
vi                 90 fs/ntfs/inode.c static int ntfs_init_locked_inode(struct inode *vi, ntfs_attr *na)
vi                 92 fs/ntfs/inode.c 	ntfs_inode *ni = NTFS_I(vi);
vi                 94 fs/ntfs/inode.c 	vi->i_ino = na->mft_no;
vi                135 fs/ntfs/inode.c static int ntfs_read_locked_inode(struct inode *vi);
vi                136 fs/ntfs/inode.c static int ntfs_read_locked_attr_inode(struct inode *base_vi, struct inode *vi);
vi                138 fs/ntfs/inode.c 		struct inode *vi);
vi                158 fs/ntfs/inode.c 	struct inode *vi;
vi                167 fs/ntfs/inode.c 	vi = iget5_locked(sb, mft_no, (test_t)ntfs_test_inode,
vi                169 fs/ntfs/inode.c 	if (unlikely(!vi))
vi                175 fs/ntfs/inode.c 	if (vi->i_state & I_NEW) {
vi                176 fs/ntfs/inode.c 		err = ntfs_read_locked_inode(vi);
vi                177 fs/ntfs/inode.c 		unlock_new_inode(vi);
vi                184 fs/ntfs/inode.c 		iput(vi);
vi                185 fs/ntfs/inode.c 		vi = ERR_PTR(err);
vi                187 fs/ntfs/inode.c 	return vi;
vi                216 fs/ntfs/inode.c 	struct inode *vi;
vi                228 fs/ntfs/inode.c 	vi = iget5_locked(base_vi->i_sb, na.mft_no, (test_t)ntfs_test_inode,
vi                230 fs/ntfs/inode.c 	if (unlikely(!vi))
vi                236 fs/ntfs/inode.c 	if (vi->i_state & I_NEW) {
vi                237 fs/ntfs/inode.c 		err = ntfs_read_locked_attr_inode(base_vi, vi);
vi                238 fs/ntfs/inode.c 		unlock_new_inode(vi);
vi                246 fs/ntfs/inode.c 		iput(vi);
vi                247 fs/ntfs/inode.c 		vi = ERR_PTR(err);
vi                249 fs/ntfs/inode.c 	return vi;
vi                274 fs/ntfs/inode.c 	struct inode *vi;
vi                283 fs/ntfs/inode.c 	vi = iget5_locked(base_vi->i_sb, na.mft_no, (test_t)ntfs_test_inode,
vi                285 fs/ntfs/inode.c 	if (unlikely(!vi))
vi                291 fs/ntfs/inode.c 	if (vi->i_state & I_NEW) {
vi                292 fs/ntfs/inode.c 		err = ntfs_read_locked_index_inode(base_vi, vi);
vi                293 fs/ntfs/inode.c 		unlock_new_inode(vi);
vi                301 fs/ntfs/inode.c 		iput(vi);
vi                302 fs/ntfs/inode.c 		vi = ERR_PTR(err);
vi                304 fs/ntfs/inode.c 	return vi;
vi                523 fs/ntfs/inode.c static int ntfs_read_locked_inode(struct inode *vi)
vi                525 fs/ntfs/inode.c 	ntfs_volume *vol = NTFS_SB(vi->i_sb);
vi                534 fs/ntfs/inode.c 	ntfs_debug("Entering for i_ino 0x%lx.", vi->i_ino);
vi                537 fs/ntfs/inode.c 	vi->i_uid = vol->uid;
vi                538 fs/ntfs/inode.c 	vi->i_gid = vol->gid;
vi                539 fs/ntfs/inode.c 	vi->i_mode = 0;
vi                545 fs/ntfs/inode.c 	if (vi->i_ino != FILE_MFT)
vi                546 fs/ntfs/inode.c 		ntfs_init_big_inode(vi);
vi                547 fs/ntfs/inode.c 	ni = NTFS_I(vi);
vi                561 fs/ntfs/inode.c 		ntfs_error(vi->i_sb, "Inode is not in use!");
vi                565 fs/ntfs/inode.c 		ntfs_error(vi->i_sb, "Inode is an extent inode!");
vi                570 fs/ntfs/inode.c 	vi->i_generation = ni->seq_no = le16_to_cpu(m->sequence_number);
vi                581 fs/ntfs/inode.c 	set_nlink(vi, le16_to_cpu(m->link_count));
vi                590 fs/ntfs/inode.c 	vi->i_mode |= S_IRWXUGO;
vi                592 fs/ntfs/inode.c 	if (IS_RDONLY(vi))
vi                593 fs/ntfs/inode.c 		vi->i_mode &= ~S_IWUGO;
vi                595 fs/ntfs/inode.c 		vi->i_mode |= S_IFDIR;
vi                600 fs/ntfs/inode.c 		vi->i_mode &= ~vol->dmask;
vi                602 fs/ntfs/inode.c 		if (vi->i_nlink > 1)
vi                603 fs/ntfs/inode.c 			set_nlink(vi, 1);
vi                605 fs/ntfs/inode.c 		vi->i_mode |= S_IFREG;
vi                607 fs/ntfs/inode.c 		vi->i_mode &= ~vol->fmask;
vi                624 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "$STANDARD_INFORMATION attribute "
vi                644 fs/ntfs/inode.c 	vi->i_mtime = ntfs2utc(si->last_data_change_time);
vi                650 fs/ntfs/inode.c 	vi->i_ctime = ntfs2utc(si->last_mft_change_time);
vi                655 fs/ntfs/inode.c 	vi->i_atime = ntfs2utc(si->last_access_time);
vi                662 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "Failed to lookup attribute list "
vi                667 fs/ntfs/inode.c 		if (vi->i_ino == FILE_MFT)
vi                669 fs/ntfs/inode.c 		ntfs_debug("Attribute list found in inode 0x%lx.", vi->i_ino);
vi                673 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "Attribute list attribute is "
vi                680 fs/ntfs/inode.c 				ntfs_error(vi->i_sb, "Non-resident attribute "
vi                685 fs/ntfs/inode.c 			ntfs_warning(vi->i_sb, "Resident attribute list "
vi                692 fs/ntfs/inode.c 					vi->i_ino);
vi                698 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "Not enough memory to allocate "
vi                706 fs/ntfs/inode.c 				ntfs_error(vi->i_sb, "Attribute list has non "
vi                719 fs/ntfs/inode.c 				ntfs_error(vi->i_sb, "Mapping pairs "
vi                728 fs/ntfs/inode.c 				ntfs_error(vi->i_sb, "Failed to load "
vi                737 fs/ntfs/inode.c 				ntfs_error(vi->i_sb, "Corrupt attribute list "
vi                753 fs/ntfs/inode.c 	if (S_ISDIR(vi->i_mode)) {
vi                768 fs/ntfs/inode.c 				ntfs_error(vi->i_sb, "$INDEX_ROOT attribute "
vi                797 fs/ntfs/inode.c 				ntfs_error(vi->i_sb, "Found encrypted and "
vi                809 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "$INDEX_ROOT attribute is "
vi                816 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "Directory index is corrupt.");
vi                820 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "Indexed attribute is not "
vi                825 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "Index collation rule is not "
vi                833 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "Index block size (%u) is not a "
vi                839 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "Index block size (%u) > "
vi                848 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "Index block size (%u) < "
vi                875 fs/ntfs/inode.c 			vi->i_size = ni->initialized_size =
vi                891 fs/ntfs/inode.c 				ntfs_error(vi->i_sb, "$INDEX_ALLOCATION "
vi                895 fs/ntfs/inode.c 				ntfs_error(vi->i_sb, "Failed to lookup "
vi                902 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "$INDEX_ALLOCATION attribute "
vi                919 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "$INDEX_ALLOCATION attribute "
vi                924 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "$INDEX_ALLOCATION attribute "
vi                929 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "$INDEX_ALLOCATION attribute "
vi                934 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "First extent of "
vi                939 fs/ntfs/inode.c 		vi->i_size = sle64_to_cpu(a->data.non_resident.data_size);
vi                953 fs/ntfs/inode.c 		bvi = ntfs_attr_iget(vi, AT_BITMAP, I30, 4);
vi                955 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "Failed to get bitmap attribute.");
vi                962 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "$BITMAP attribute is compressed "
vi                968 fs/ntfs/inode.c 		if ((bvi_size << 3) < (vi->i_size >>
vi                970 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "Index bitmap too small (0x%llx) "
vi                972 fs/ntfs/inode.c 					bvi_size << 3, vi->i_size);
vi                979 fs/ntfs/inode.c 		vi->i_op = &ntfs_dir_inode_ops;
vi                980 fs/ntfs/inode.c 		vi->i_fop = &ntfs_dir_ops;
vi                981 fs/ntfs/inode.c 		vi->i_mapping->a_ops = &ntfs_mst_aops;
vi                994 fs/ntfs/inode.c 			vi->i_size = ni->initialized_size =
vi                997 fs/ntfs/inode.c 				ntfs_error(vi->i_sb, "Failed to lookup $DATA "
vi               1005 fs/ntfs/inode.c 			if (vi->i_ino == FILE_Secure)
vi               1020 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "$DATA attribute is missing.");
vi               1029 fs/ntfs/inode.c 					ntfs_error(vi->i_sb, "Found "
vi               1040 fs/ntfs/inode.c 					ntfs_error(vi->i_sb, "Found unknown "
vi               1051 fs/ntfs/inode.c 				ntfs_error(vi->i_sb, "Found encrypted and "
vi               1062 fs/ntfs/inode.c 					ntfs_error(vi->i_sb, "Found "
vi               1097 fs/ntfs/inode.c 				ntfs_error(vi->i_sb, "First extent of $DATA "
vi               1102 fs/ntfs/inode.c 			vi->i_size = sle64_to_cpu(
vi               1109 fs/ntfs/inode.c 			vi->i_size = ni->initialized_size = le32_to_cpu(
vi               1114 fs/ntfs/inode.c 			if (vi->i_size > ni->allocated_size) {
vi               1115 fs/ntfs/inode.c 				ntfs_error(vi->i_sb, "Resident data attribute "
vi               1128 fs/ntfs/inode.c 		vi->i_op = &ntfs_file_inode_ops;
vi               1129 fs/ntfs/inode.c 		vi->i_fop = &ntfs_file_ops;
vi               1130 fs/ntfs/inode.c 		vi->i_mapping->a_ops = &ntfs_normal_aops;
vi               1132 fs/ntfs/inode.c 			vi->i_mapping->a_ops = &ntfs_mst_aops;
vi               1134 fs/ntfs/inode.c 			vi->i_mapping->a_ops = &ntfs_compressed_aops;
vi               1147 fs/ntfs/inode.c 	if (S_ISREG(vi->i_mode) && (NInoCompressed(ni) || NInoSparse(ni)))
vi               1148 fs/ntfs/inode.c 		vi->i_blocks = ni->itype.compressed.size >> 9;
vi               1150 fs/ntfs/inode.c 		vi->i_blocks = ni->allocated_size >> 9;
vi               1164 fs/ntfs/inode.c 			"inode 0x%lx as bad.  Run chkdsk.", err, vi->i_ino);
vi               1165 fs/ntfs/inode.c 	make_bad_inode(vi);
vi               1193 fs/ntfs/inode.c static int ntfs_read_locked_attr_inode(struct inode *base_vi, struct inode *vi)
vi               1195 fs/ntfs/inode.c 	ntfs_volume *vol = NTFS_SB(vi->i_sb);
vi               1202 fs/ntfs/inode.c 	ntfs_debug("Entering for i_ino 0x%lx.", vi->i_ino);
vi               1204 fs/ntfs/inode.c 	ntfs_init_big_inode(vi);
vi               1206 fs/ntfs/inode.c 	ni	= NTFS_I(vi);
vi               1210 fs/ntfs/inode.c 	vi->i_uid	= base_vi->i_uid;
vi               1211 fs/ntfs/inode.c 	vi->i_gid	= base_vi->i_gid;
vi               1212 fs/ntfs/inode.c 	set_nlink(vi, base_vi->i_nlink);
vi               1213 fs/ntfs/inode.c 	vi->i_mtime	= base_vi->i_mtime;
vi               1214 fs/ntfs/inode.c 	vi->i_ctime	= base_vi->i_ctime;
vi               1215 fs/ntfs/inode.c 	vi->i_atime	= base_vi->i_atime;
vi               1216 fs/ntfs/inode.c 	vi->i_generation = ni->seq_no = base_ni->seq_no;
vi               1219 fs/ntfs/inode.c 	vi->i_mode	= base_vi->i_mode & ~S_IFMT;
vi               1242 fs/ntfs/inode.c 				ntfs_error(vi->i_sb, "Found compressed "
vi               1251 fs/ntfs/inode.c 				ntfs_error(vi->i_sb, "Found compressed "
vi               1260 fs/ntfs/inode.c 				ntfs_error(vi->i_sb, "Found unknown "
vi               1270 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "Found mst protected attribute "
vi               1283 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "Found encrypted and compressed "
vi               1292 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "Found mst protected attribute "
vi               1300 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "Found encrypted non-data "
vi               1315 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "Found mst protected attribute "
vi               1321 fs/ntfs/inode.c 		vi->i_size = ni->initialized_size = le32_to_cpu(
vi               1325 fs/ntfs/inode.c 		if (vi->i_size > ni->allocated_size) {
vi               1326 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "Resident attribute is corrupt "
vi               1346 fs/ntfs/inode.c 				ntfs_error(vi->i_sb, "Found non-standard "
vi               1374 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "First extent of attribute has "
vi               1378 fs/ntfs/inode.c 		vi->i_size = sle64_to_cpu(a->data.non_resident.data_size);
vi               1384 fs/ntfs/inode.c 	vi->i_mapping->a_ops = &ntfs_normal_aops;
vi               1386 fs/ntfs/inode.c 		vi->i_mapping->a_ops = &ntfs_mst_aops;
vi               1388 fs/ntfs/inode.c 		vi->i_mapping->a_ops = &ntfs_compressed_aops;
vi               1390 fs/ntfs/inode.c 		vi->i_blocks = ni->itype.compressed.size >> 9;
vi               1392 fs/ntfs/inode.c 		vi->i_blocks = ni->allocated_size >> 9;
vi               1417 fs/ntfs/inode.c 			"Run chkdsk.", err, vi->i_ino, ni->type, ni->name_len,
vi               1419 fs/ntfs/inode.c 	make_bad_inode(vi);
vi               1458 fs/ntfs/inode.c static int ntfs_read_locked_index_inode(struct inode *base_vi, struct inode *vi)
vi               1461 fs/ntfs/inode.c 	ntfs_volume *vol = NTFS_SB(vi->i_sb);
vi               1471 fs/ntfs/inode.c 	ntfs_debug("Entering for i_ino 0x%lx.", vi->i_ino);
vi               1472 fs/ntfs/inode.c 	ntfs_init_big_inode(vi);
vi               1473 fs/ntfs/inode.c 	ni	= NTFS_I(vi);
vi               1476 fs/ntfs/inode.c 	vi->i_uid	= base_vi->i_uid;
vi               1477 fs/ntfs/inode.c 	vi->i_gid	= base_vi->i_gid;
vi               1478 fs/ntfs/inode.c 	set_nlink(vi, base_vi->i_nlink);
vi               1479 fs/ntfs/inode.c 	vi->i_mtime	= base_vi->i_mtime;
vi               1480 fs/ntfs/inode.c 	vi->i_ctime	= base_vi->i_ctime;
vi               1481 fs/ntfs/inode.c 	vi->i_atime	= base_vi->i_atime;
vi               1482 fs/ntfs/inode.c 	vi->i_generation = ni->seq_no = base_ni->seq_no;
vi               1484 fs/ntfs/inode.c 	vi->i_mode	= base_vi->i_mode & ~S_IFMT;
vi               1501 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "$INDEX_ROOT attribute is "
vi               1524 fs/ntfs/inode.c 		ntfs_error(vi->i_sb, "Found compressed/encrypted/sparse index "
vi               1531 fs/ntfs/inode.c 		ntfs_error(vi->i_sb, "$INDEX_ROOT attribute is corrupt.");
vi               1536 fs/ntfs/inode.c 		ntfs_error(vi->i_sb, "Index is corrupt.");
vi               1540 fs/ntfs/inode.c 		ntfs_error(vi->i_sb, "Index type is not 0 (type is 0x%x).",
vi               1549 fs/ntfs/inode.c 		ntfs_error(vi->i_sb, "Index block size (%u) is not a power of "
vi               1554 fs/ntfs/inode.c 		ntfs_error(vi->i_sb, "Index block size (%u) > PAGE_SIZE "
vi               1561 fs/ntfs/inode.c 		ntfs_error(vi->i_sb, "Index block size (%u) < NTFS_BLOCK_SIZE "
vi               1579 fs/ntfs/inode.c 		vi->i_size = ni->initialized_size = ni->allocated_size = 0;
vi               1594 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "$INDEX_ALLOCATION attribute is "
vi               1598 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "Failed to lookup "
vi               1604 fs/ntfs/inode.c 		ntfs_error(vi->i_sb, "$INDEX_ALLOCATION attribute is "
vi               1619 fs/ntfs/inode.c 		ntfs_error(vi->i_sb, "$INDEX_ALLOCATION attribute is "
vi               1624 fs/ntfs/inode.c 		ntfs_error(vi->i_sb, "$INDEX_ALLOCATION attribute is sparse.");
vi               1628 fs/ntfs/inode.c 		ntfs_error(vi->i_sb, "$INDEX_ALLOCATION attribute is "
vi               1633 fs/ntfs/inode.c 		ntfs_error(vi->i_sb, "First extent of $INDEX_ALLOCATION "
vi               1637 fs/ntfs/inode.c 	vi->i_size = sle64_to_cpu(a->data.non_resident.data_size);
vi               1652 fs/ntfs/inode.c 		ntfs_error(vi->i_sb, "Failed to get bitmap attribute.");
vi               1659 fs/ntfs/inode.c 		ntfs_error(vi->i_sb, "$BITMAP attribute is compressed and/or "
vi               1665 fs/ntfs/inode.c 	if ((bvi_size << 3) < (vi->i_size >> ni->itype.index.block_size_bits)) {
vi               1666 fs/ntfs/inode.c 		ntfs_error(vi->i_sb, "Index bitmap too small (0x%llx) for "
vi               1668 fs/ntfs/inode.c 				vi->i_size);
vi               1674 fs/ntfs/inode.c 	vi->i_mapping->a_ops = &ntfs_mst_aops;
vi               1675 fs/ntfs/inode.c 	vi->i_blocks = ni->allocated_size >> 9;
vi               1696 fs/ntfs/inode.c 	ntfs_error(vi->i_sb, "Failed with error code %i while reading index "
vi               1697 fs/ntfs/inode.c 			"inode (mft_no 0x%lx, name_len %i.", err, vi->i_ino,
vi               1699 fs/ntfs/inode.c 	make_bad_inode(vi);
vi               1740 fs/ntfs/inode.c int ntfs_read_inode_mount(struct inode *vi)
vi               1744 fs/ntfs/inode.c 	struct super_block *sb = vi->i_sb;
vi               1757 fs/ntfs/inode.c 	ntfs_init_big_inode(vi);
vi               1759 fs/ntfs/inode.c 	ni = NTFS_I(vi);
vi               1776 fs/ntfs/inode.c 	vol->mft_ino = vi;
vi               1820 fs/ntfs/inode.c 	vi->i_generation = ni->seq_no = le16_to_cpu(m->sequence_number);
vi               1823 fs/ntfs/inode.c 	vi->i_mapping->a_ops = &ntfs_mst_aops;
vi               1962 fs/ntfs/inode.c 			if (MREF_LE(al_entry->mft_reference) != vi->i_ino) {
vi               2040 fs/ntfs/inode.c 			vi->i_size = sle64_to_cpu(
vi               2050 fs/ntfs/inode.c 			if ((vi->i_size >> vol->mft_record_size_bits) >=
vi               2074 fs/ntfs/inode.c 			ntfs_read_locked_inode(vi);
vi               2075 fs/ntfs/inode.c 			if (is_bad_inode(vi)) {
vi               2093 fs/ntfs/inode.c 			vi->i_uid = GLOBAL_ROOT_UID;
vi               2094 fs/ntfs/inode.c 			vi->i_gid = GLOBAL_ROOT_GID;
vi               2096 fs/ntfs/inode.c 			vi->i_mode = S_IFREG;
vi               2098 fs/ntfs/inode.c 			vi->i_op = &ntfs_empty_inode_ops;
vi               2099 fs/ntfs/inode.c 			vi->i_fop = &ntfs_empty_file_ops;
vi               2157 fs/ntfs/inode.c 	make_bad_inode(vi);
vi               2223 fs/ntfs/inode.c void ntfs_evict_big_inode(struct inode *vi)
vi               2225 fs/ntfs/inode.c 	ntfs_inode *ni = NTFS_I(vi);
vi               2227 fs/ntfs/inode.c 	truncate_inode_pages_final(&vi->i_data);
vi               2228 fs/ntfs/inode.c 	clear_inode(vi);
vi               2232 fs/ntfs/inode.c 		bool was_bad = (is_bad_inode(vi));
vi               2235 fs/ntfs/inode.c 		ntfs_commit_inode(vi);
vi               2237 fs/ntfs/inode.c 		if (!was_bad && (is_bad_inode(vi) || NInoDirty(ni))) {
vi               2238 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "Failed to commit dirty inode "
vi               2239 fs/ntfs/inode.c 					"0x%lx.  Losing data!", vi->i_ino);
vi               2331 fs/ntfs/inode.c int ntfs_truncate(struct inode *vi)
vi               2336 fs/ntfs/inode.c 	ntfs_inode *base_ni, *ni = NTFS_I(vi);
vi               2345 fs/ntfs/inode.c 	ntfs_debug("Entering for inode 0x%lx.", vi->i_ino);
vi               2347 fs/ntfs/inode.c 	BUG_ON(S_ISDIR(vi->i_mode));
vi               2363 fs/ntfs/inode.c 		ntfs_error(vi->i_sb, "Failed to map mft record for inode 0x%lx "
vi               2364 fs/ntfs/inode.c 				"(error code %d).%s", vi->i_ino, err, te);
vi               2371 fs/ntfs/inode.c 		ntfs_error(vi->i_sb, "Failed to allocate a search context for "
vi               2373 fs/ntfs/inode.c 				vi->i_ino, te);
vi               2381 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "Open attribute is missing from "
vi               2383 fs/ntfs/inode.c 					"Run chkdsk.%s", vi->i_ino, te);
vi               2386 fs/ntfs/inode.c 			ntfs_error(vi->i_sb, "Failed to lookup attribute in "
vi               2388 fs/ntfs/inode.c 					vi->i_ino, err, te);
vi               2396 fs/ntfs/inode.c 	new_size = i_size_read(vi);
vi               2441 fs/ntfs/inode.c 						vi->i_ino,
vi               2450 fs/ntfs/inode.c 						vi->i_ino,
vi               2455 fs/ntfs/inode.c 			i_size_write(vi, old_size);
vi               2460 fs/ntfs/inode.c 		ntfs_warning(vi->i_sb, "Changes in inode size are not "
vi               2542 fs/ntfs/inode.c 				"with error code %i.", vi->i_ino,
vi               2603 fs/ntfs/inode.c 					vi->i_ino,
vi               2707 fs/ntfs/inode.c 				"code %i.%s", vi->i_ino,
vi               2731 fs/ntfs/inode.c 				vi->i_ino, (unsigned)le32_to_cpu(ni->type),
vi               2749 fs/ntfs/inode.c 			vi->i_blocks = ni->itype.compressed.size >> 9;
vi               2752 fs/ntfs/inode.c 		vi->i_blocks = new_alloc_size >> 9;
vi               2810 fs/ntfs/inode.c 		i_size_write(vi, old_size);
vi               2826 fs/ntfs/inode.c 		i_size_write(vi, old_size);
vi               2839 fs/ntfs/inode.c void ntfs_truncate_vfs(struct inode *vi) {
vi               2840 fs/ntfs/inode.c 	ntfs_truncate(vi);
vi               2860 fs/ntfs/inode.c 	struct inode *vi = d_inode(dentry);
vi               2869 fs/ntfs/inode.c 		ntfs_warning(vi->i_sb, "Changes in user/group/mode are not "
vi               2875 fs/ntfs/inode.c 		if (attr->ia_size != i_size_read(vi)) {
vi               2876 fs/ntfs/inode.c 			ntfs_inode *ni = NTFS_I(vi);
vi               2882 fs/ntfs/inode.c 				ntfs_warning(vi->i_sb, "Changes in inode size "
vi               2889 fs/ntfs/inode.c 				truncate_setsize(vi, attr->ia_size);
vi               2890 fs/ntfs/inode.c 				ntfs_truncate_vfs(vi);
vi               2903 fs/ntfs/inode.c 		vi->i_atime = attr->ia_atime;
vi               2905 fs/ntfs/inode.c 		vi->i_mtime = attr->ia_mtime;
vi               2907 fs/ntfs/inode.c 		vi->i_ctime = attr->ia_ctime;
vi               2908 fs/ntfs/inode.c 	mark_inode_dirty(vi);
vi               2931 fs/ntfs/inode.c int __ntfs_write_inode(struct inode *vi, int sync)
vi               2934 fs/ntfs/inode.c 	ntfs_inode *ni = NTFS_I(vi);
vi               2942 fs/ntfs/inode.c 			vi->i_ino);
vi               2974 fs/ntfs/inode.c 	nt = utc2ntfs(vi->i_mtime);
vi               2977 fs/ntfs/inode.c 				"new = 0x%llx", vi->i_ino, (long long)
vi               2983 fs/ntfs/inode.c 	nt = utc2ntfs(vi->i_ctime);
vi               2986 fs/ntfs/inode.c 				"new = 0x%llx", vi->i_ino, (long long)
vi               2992 fs/ntfs/inode.c 	nt = utc2ntfs(vi->i_atime);
vi               2995 fs/ntfs/inode.c 				"new = 0x%llx", vi->i_ino,
vi               3065 fs/ntfs/inode.c 		ntfs_warning(vi->i_sb, "Not enough memory to write inode.  "
vi               3068 fs/ntfs/inode.c 		mark_inode_dirty(vi);
vi               3070 fs/ntfs/inode.c 		ntfs_error(vi->i_sb, "Failed (error %i):  Run chkdsk.", -err);
vi                258 fs/ntfs/inode.h extern int ntfs_test_inode(struct inode *vi, ntfs_attr *na);
vi                268 fs/ntfs/inode.h extern void ntfs_evict_big_inode(struct inode *vi);
vi                272 fs/ntfs/inode.h static inline void ntfs_init_big_inode(struct inode *vi)
vi                274 fs/ntfs/inode.h 	ntfs_inode *ni = NTFS_I(vi);
vi                277 fs/ntfs/inode.h 	__ntfs_init_inode(vi->i_sb, ni);
vi                278 fs/ntfs/inode.h 	ni->mft_no = vi->i_ino;
vi                285 fs/ntfs/inode.h extern int ntfs_read_inode_mount(struct inode *vi);
vi                291 fs/ntfs/inode.h extern int ntfs_truncate(struct inode *vi);
vi                292 fs/ntfs/inode.h extern void ntfs_truncate_vfs(struct inode *vi);
vi                296 fs/ntfs/inode.h extern int __ntfs_write_inode(struct inode *vi, int sync);
vi                298 fs/ntfs/inode.h static inline void ntfs_commit_inode(struct inode *vi)
vi                300 fs/ntfs/inode.h 	if (!is_bad_inode(vi))
vi                301 fs/ntfs/inode.h 		__ntfs_write_inode(vi, 1);
vi                307 fs/ntfs/inode.h static inline void ntfs_truncate_vfs(struct inode *vi) {}
vi               2197 fs/ntfs/layout.h 		} __attribute__ ((__packed__)) vi;
vi               2232 fs/ntfs/layout.h 		} __attribute__ ((__packed__)) vi;
vi                 38 fs/ntfs/logfile.c static bool ntfs_check_restart_page_header(struct inode *vi,
vi                 57 fs/ntfs/logfile.c 		ntfs_error(vi->i_sb, "$LogFile uses unsupported page size.");
vi                 65 fs/ntfs/logfile.c 		ntfs_error(vi->i_sb, "Found restart area in incorrect "
vi                 72 fs/ntfs/logfile.c 		ntfs_error(vi->i_sb, "$LogFile version %i.%i is not "
vi                 89 fs/ntfs/logfile.c 		ntfs_error(vi->i_sb, "$LogFile restart page specifies "
vi                 98 fs/ntfs/logfile.c 		ntfs_error(vi->i_sb, "$LogFile restart page specifies "
vi                113 fs/ntfs/logfile.c 		ntfs_error(vi->i_sb, "$LogFile restart page specifies "
vi                122 fs/ntfs/logfile.c 		ntfs_error(vi->i_sb, "$LogFile restart page is not modified "
vi                144 fs/ntfs/logfile.c static bool ntfs_check_restart_area(struct inode *vi, RESTART_PAGE_HEADER *rp)
vi                161 fs/ntfs/logfile.c 		ntfs_error(vi->i_sb, "$LogFile restart area specifies "
vi                175 fs/ntfs/logfile.c 		ntfs_error(vi->i_sb, "$LogFile restart area specifies "
vi                190 fs/ntfs/logfile.c 		ntfs_error(vi->i_sb, "$LogFile restart area is out of bounds "
vi                207 fs/ntfs/logfile.c 		ntfs_error(vi->i_sb, "$LogFile restart area specifies "
vi                222 fs/ntfs/logfile.c 		ntfs_error(vi->i_sb, "$LogFile restart area specifies "
vi                229 fs/ntfs/logfile.c 		ntfs_error(vi->i_sb, "$LogFile restart area specifies "
vi                236 fs/ntfs/logfile.c 		ntfs_error(vi->i_sb, "$LogFile restart area specifies "
vi                259 fs/ntfs/logfile.c static bool ntfs_check_log_client_array(struct inode *vi,
vi                305 fs/ntfs/logfile.c 	ntfs_error(vi->i_sb, "$LogFile log client array is corrupt.");
vi                336 fs/ntfs/logfile.c static int ntfs_check_and_load_restart_page(struct inode *vi,
vi                346 fs/ntfs/logfile.c 	if (!ntfs_check_restart_page_header(vi, rp, pos)) {
vi                351 fs/ntfs/logfile.c 	if (!ntfs_check_restart_area(vi, rp)) {
vi                362 fs/ntfs/logfile.c 		ntfs_error(vi->i_sb, "Failed to allocate memory for $LogFile "
vi                387 fs/ntfs/logfile.c 			page = ntfs_map_page(vi->i_mapping, idx);
vi                389 fs/ntfs/logfile.c 				ntfs_error(vi->i_sb, "Error mapping $LogFile "
vi                419 fs/ntfs/logfile.c 			ntfs_error(vi->i_sb, "Multi sector transfer error "
vi                433 fs/ntfs/logfile.c 		if (!ntfs_check_log_client_array(vi, trp)) {
vi                925 fs/ntfs/mft.c  	struct inode *vi;
vi                951 fs/ntfs/mft.c  		vi = igrab(mft_vi);
vi                952 fs/ntfs/mft.c  		BUG_ON(vi != mft_vi);
vi                961 fs/ntfs/mft.c  		vi = ilookup5_nowait(sb, mft_no, (test_t)ntfs_test_inode, &na);
vi                963 fs/ntfs/mft.c  	if (vi) {
vi                966 fs/ntfs/mft.c  		ni = NTFS_I(vi);
vi                974 fs/ntfs/mft.c  			iput(vi);
vi                983 fs/ntfs/mft.c  			iput(vi);
vi               1019 fs/ntfs/mft.c  		vi = igrab(mft_vi);
vi               1020 fs/ntfs/mft.c  		BUG_ON(vi != mft_vi);
vi               1022 fs/ntfs/mft.c  		vi = ilookup5_nowait(sb, na.mft_no, (test_t)ntfs_test_inode,
vi               1024 fs/ntfs/mft.c  	if (!vi) {
vi               1038 fs/ntfs/mft.c  	ni = NTFS_I(vi);
vi               1046 fs/ntfs/mft.c  		iput(vi);
vi               1069 fs/ntfs/mft.c  		iput(vi);
vi               1086 fs/ntfs/mft.c  		iput(vi);
vi               2243 fs/ntfs/mft.c  	struct inode *vi;
vi               2624 fs/ntfs/mft.c  		vi = new_inode(vol->sb);
vi               2625 fs/ntfs/mft.c  		if (unlikely(!vi)) {
vi               2637 fs/ntfs/mft.c  		vi->i_ino = bit;
vi               2640 fs/ntfs/mft.c  		vi->i_uid = vol->uid;
vi               2641 fs/ntfs/mft.c  		vi->i_gid = vol->gid;
vi               2644 fs/ntfs/mft.c  		ntfs_init_big_inode(vi);
vi               2645 fs/ntfs/mft.c  		ni = NTFS_I(vi);
vi               2651 fs/ntfs/mft.c  			vi->i_mode = S_IFDIR | S_IRWXUGO;
vi               2652 fs/ntfs/mft.c  			vi->i_mode &= ~vol->dmask;
vi               2672 fs/ntfs/mft.c  			vi->i_mode = S_IFREG | S_IRWXUGO;
vi               2673 fs/ntfs/mft.c  			vi->i_mode &= ~vol->fmask;
vi               2679 fs/ntfs/mft.c  		if (IS_RDONLY(vi))
vi               2680 fs/ntfs/mft.c  			vi->i_mode &= ~S_IWUGO;
vi               2683 fs/ntfs/mft.c  		vi->i_atime = vi->i_mtime = vi->i_ctime =
vi               2684 fs/ntfs/mft.c  			current_time(vi);
vi               2689 fs/ntfs/mft.c  		vi->i_size = 0;
vi               2690 fs/ntfs/mft.c  		vi->i_blocks = 0;
vi               2693 fs/ntfs/mft.c  		vi->i_generation = ni->seq_no = le16_to_cpu(m->sequence_number);
vi               2716 fs/ntfs/mft.c  		insert_inode_hash(vi);
vi                288 fs/ntfs/namei.c 	struct inode *vi = d_inode(child_dent);
vi                289 fs/ntfs/namei.c 	ntfs_inode *ni = NTFS_I(vi);
vi                297 fs/ntfs/namei.c 	ntfs_debug("Entering for inode 0x%lx.", vi->i_ino);
vi                315 fs/ntfs/namei.c 			ntfs_error(vi->i_sb, "Inode 0x%lx does not have a "
vi                317 fs/ntfs/namei.c 					vi->i_ino);
vi                334 fs/ntfs/namei.c 	return d_obtain_alias(ntfs_iget(vi->i_sb, parent_ino));
vi                365 fs/ntfs/super.c 	VOLUME_INFORMATION *vi;
vi                388 fs/ntfs/super.c 	vi = (VOLUME_INFORMATION*)((u8*)ctx->attr +
vi                390 fs/ntfs/super.c 	vol->vol_flags = vi->flags = flags;
vi               1255 fs/ntfs/super.c 	struct inode *vi;
vi               1293 fs/ntfs/super.c 	vi = ntfs_iget(vol->sb, MREF(mref));
vi               1294 fs/ntfs/super.c 	if (IS_ERR(vi) || is_bad_inode(vi)) {
vi               1295 fs/ntfs/super.c 		if (!IS_ERR(vi))
vi               1296 fs/ntfs/super.c 			iput(vi);
vi               1298 fs/ntfs/super.c 		return IS_ERR(vi) ? PTR_ERR(vi) : -EIO;
vi               1300 fs/ntfs/super.c 	if (unlikely(i_size_read(vi) < NTFS_HIBERFIL_HEADER_SIZE)) {
vi               1303 fs/ntfs/super.c 				"is not the system volume.", i_size_read(vi));
vi               1306 fs/ntfs/super.c 	page = ntfs_map_page(vi->i_mapping, 0);
vi               1327 fs/ntfs/super.c 					"system volume.", i_size_read(vi));
vi               1338 fs/ntfs/super.c 	iput(vi);
vi               1762 fs/ntfs/super.c 	VOLUME_INFORMATION *vi;
vi               1873 fs/ntfs/super.c 	vi = (VOLUME_INFORMATION*)((char*)ctx->attr +
vi               1876 fs/ntfs/super.c 	if ((u8*)vi < (u8*)ctx->attr || (u8*)vi +
vi               1881 fs/ntfs/super.c 	vol->vol_flags = vi->flags;
vi               1882 fs/ntfs/super.c 	vol->major_ver = vi->major_ver;
vi               1883 fs/ntfs/super.c 	vol->minor_ver = vi->minor_ver;
vi               2654 fs/ntfs/super.c static int ntfs_write_inode(struct inode *vi, struct writeback_control *wbc)
vi               2656 fs/ntfs/super.c 	return __ntfs_write_inode(vi, wbc->sync_mode == WB_SYNC_ALL);
vi                 94 fs/reiserfs/fix_node.c 		struct virtual_item *vi = vn->vn_vi + new_num;
vi                105 fs/reiserfs/fix_node.c 		vi->vi_item_len += ih_item_len(ih + j) + IH_SIZE;
vi                106 fs/reiserfs/fix_node.c 		vi->vi_ih = ih + j;
vi                107 fs/reiserfs/fix_node.c 		vi->vi_item = ih_item_body(Sh, ih + j);
vi                108 fs/reiserfs/fix_node.c 		vi->vi_uarea = vn->vn_free_ptr;
vi                115 fs/reiserfs/fix_node.c 		    op_create_vi(vn, vi, is_affected, tb->insert_size[0]);
vi                127 fs/reiserfs/fix_node.c 			vi->vi_new_data = vn->vn_data;
vi                133 fs/reiserfs/fix_node.c 		struct virtual_item *vi = vn->vn_vi + vn->vn_affected_item_num;
vi                137 fs/reiserfs/fix_node.c 		vi->vi_item_len = tb->insert_size[0];
vi                138 fs/reiserfs/fix_node.c 		vi->vi_ih = vn->vn_ins_ih;
vi                139 fs/reiserfs/fix_node.c 		vi->vi_item = vn->vn_data;
vi                140 fs/reiserfs/fix_node.c 		vi->vi_uarea = vn->vn_free_ptr;
vi                142 fs/reiserfs/fix_node.c 		op_create_vi(vn, vi, 0 /*not pasted or cut */ ,
vi                198 fs/reiserfs/fix_node.c 	struct virtual_item *vi;
vi                221 fs/reiserfs/fix_node.c 	vi = vn->vn_vi;
vi                224 fs/reiserfs/fix_node.c 	     ((vi->vi_type & VI_TYPE_LEFT_MERGEABLE) ? IH_SIZE : 0))) {
vi                238 fs/reiserfs/fix_node.c 	if (vi->vi_type & VI_TYPE_LEFT_MERGEABLE)
vi                243 fs/reiserfs/fix_node.c 	     i++, ih_size = IH_SIZE, d_size = 0, vi++) {
vi                244 fs/reiserfs/fix_node.c 		d_size += vi->vi_item_len;
vi                265 fs/reiserfs/fix_node.c 		tb->lbytes = op_check_left(vi, cur_free, 0, 0);
vi                284 fs/reiserfs/fix_node.c 	struct virtual_item *vi;
vi                307 fs/reiserfs/fix_node.c 	vi = vn->vn_vi + vn->vn_nr_item - 1;
vi                310 fs/reiserfs/fix_node.c 	     ((vi->vi_type & VI_TYPE_RIGHT_MERGEABLE) ? IH_SIZE : 0))) {
vi                324 fs/reiserfs/fix_node.c 	if (vi->vi_type & VI_TYPE_RIGHT_MERGEABLE)
vi                329 fs/reiserfs/fix_node.c 	     i--, d_size = 0, ih_size = IH_SIZE, vi--) {
vi                330 fs/reiserfs/fix_node.c 		d_size += vi->vi_item_len;
vi                355 fs/reiserfs/fix_node.c 		tb->rbytes = op_check_right(vi, cur_free);
vi                458 fs/reiserfs/fix_node.c 		struct virtual_item *vi = vn->vn_vi + i;
vi                464 fs/reiserfs/fix_node.c 		current_item_size = vi->vi_item_len;
vi                471 fs/reiserfs/fix_node.c 		    op_part_size(vi, 0 /*from start */ , start_bytes);
vi                475 fs/reiserfs/fix_node.c 		    op_part_size(vi, 1 /*from end */ , skip_from_end);
vi                490 fs/reiserfs/fix_node.c 			RFALSE(is_direct_le_ih(vi->vi_ih),
vi                515 fs/reiserfs/fix_node.c 			    op_check_left(vi, free_space, start_bytes,
vi                 61 fs/reiserfs/item_ops.c 			struct virtual_item *vi,
vi                 64 fs/reiserfs/item_ops.c 	vi->vi_index = TYPE_STAT_DATA;
vi                 68 fs/reiserfs/item_ops.c static int sd_check_left(struct virtual_item *vi, int free,
vi                 75 fs/reiserfs/item_ops.c static int sd_check_right(struct virtual_item *vi, int free)
vi                 80 fs/reiserfs/item_ops.c static int sd_part_size(struct virtual_item *vi, int first, int count)
vi                 86 fs/reiserfs/item_ops.c static int sd_unit_num(struct virtual_item *vi)
vi                 88 fs/reiserfs/item_ops.c 	return vi->vi_item_len - IH_SIZE;
vi                 91 fs/reiserfs/item_ops.c static void sd_print_vi(struct virtual_item *vi)
vi                 95 fs/reiserfs/item_ops.c 			 vi->vi_index, vi->vi_type, vi->vi_ih);
vi                151 fs/reiserfs/item_ops.c 			    struct virtual_item *vi,
vi                154 fs/reiserfs/item_ops.c 	vi->vi_index = TYPE_DIRECT;
vi                158 fs/reiserfs/item_ops.c static int direct_check_left(struct virtual_item *vi, int free,
vi                167 fs/reiserfs/item_ops.c static int direct_check_right(struct virtual_item *vi, int free)
vi                169 fs/reiserfs/item_ops.c 	return direct_check_left(vi, free, 0, 0);
vi                172 fs/reiserfs/item_ops.c static int direct_part_size(struct virtual_item *vi, int first, int count)
vi                177 fs/reiserfs/item_ops.c static int direct_unit_num(struct virtual_item *vi)
vi                179 fs/reiserfs/item_ops.c 	return vi->vi_item_len - IH_SIZE;
vi                182 fs/reiserfs/item_ops.c static void direct_print_vi(struct virtual_item *vi)
vi                186 fs/reiserfs/item_ops.c 			 vi->vi_index, vi->vi_type, vi->vi_ih);
vi                289 fs/reiserfs/item_ops.c 			      struct virtual_item *vi,
vi                292 fs/reiserfs/item_ops.c 	vi->vi_index = TYPE_INDIRECT;
vi                296 fs/reiserfs/item_ops.c static int indirect_check_left(struct virtual_item *vi, int free,
vi                305 fs/reiserfs/item_ops.c static int indirect_check_right(struct virtual_item *vi, int free)
vi                307 fs/reiserfs/item_ops.c 	return indirect_check_left(vi, free, 0, 0);
vi                314 fs/reiserfs/item_ops.c static int indirect_part_size(struct virtual_item *vi, int first, int units)
vi                320 fs/reiserfs/item_ops.c static int indirect_unit_num(struct virtual_item *vi)
vi                323 fs/reiserfs/item_ops.c 	return vi->vi_item_len - IH_SIZE;
vi                326 fs/reiserfs/item_ops.c static void indirect_print_vi(struct virtual_item *vi)
vi                330 fs/reiserfs/item_ops.c 			 vi->vi_index, vi->vi_type, vi->vi_ih);
vi                459 fs/reiserfs/item_ops.c 			      struct virtual_item *vi,
vi                462 fs/reiserfs/item_ops.c 	struct direntry_uarea *dir_u = vi->vi_uarea;
vi                467 fs/reiserfs/item_ops.c 	vi->vi_index = TYPE_DIRENTRY;
vi                469 fs/reiserfs/item_ops.c 	BUG_ON(!(vi->vi_ih) || !vi->vi_item);
vi                472 fs/reiserfs/item_ops.c 	if (le_ih_k_offset(vi->vi_ih) == DOT_OFFSET)
vi                475 fs/reiserfs/item_ops.c 	deh = (struct reiserfs_de_head *)(vi->vi_item);
vi                478 fs/reiserfs/item_ops.c 	dir_u->entry_count = ih_entry_count(vi->vi_ih) +
vi                486 fs/reiserfs/item_ops.c 		    (j ? deh_location(&deh[j - 1]) : ih_item_len(vi->vi_ih)) -
vi                505 fs/reiserfs/item_ops.c 		if (l + IH_SIZE != vi->vi_item_len +
vi                525 fs/reiserfs/item_ops.c static int direntry_check_left(struct virtual_item *vi, int free,
vi                530 fs/reiserfs/item_ops.c 	struct direntry_uarea *dir_u = vi->vi_uarea;
vi                555 fs/reiserfs/item_ops.c static int direntry_check_right(struct virtual_item *vi, int free)
vi                559 fs/reiserfs/item_ops.c 	struct direntry_uarea *dir_u = vi->vi_uarea;
vi                580 fs/reiserfs/item_ops.c static int direntry_part_size(struct virtual_item *vi, int first, int count)
vi                584 fs/reiserfs/item_ops.c 	struct direntry_uarea *dir_u = vi->vi_uarea;
vi                599 fs/reiserfs/item_ops.c static int direntry_unit_num(struct virtual_item *vi)
vi                601 fs/reiserfs/item_ops.c 	struct direntry_uarea *dir_u = vi->vi_uarea;
vi                606 fs/reiserfs/item_ops.c static void direntry_print_vi(struct virtual_item *vi)
vi                609 fs/reiserfs/item_ops.c 	struct direntry_uarea *dir_u = vi->vi_uarea;
vi                613 fs/reiserfs/item_ops.c 			 vi->vi_index, vi->vi_type, vi->vi_ih, dir_u->flags);
vi                670 fs/reiserfs/item_ops.c 			      struct virtual_item *vi,
vi                683 fs/reiserfs/item_ops.c static int errcatch_check_left(struct virtual_item *vi, int free,
vi                691 fs/reiserfs/item_ops.c static int errcatch_check_right(struct virtual_item *vi, int free)
vi                698 fs/reiserfs/item_ops.c static int errcatch_part_size(struct virtual_item *vi, int first, int count)
vi                705 fs/reiserfs/item_ops.c static int errcatch_unit_num(struct virtual_item *vi)
vi                712 fs/reiserfs/item_ops.c static void errcatch_print_vi(struct virtual_item *vi)
vi               2636 fs/reiserfs/reiserfs.h 	int (*create_vi) (struct virtual_node * vn, struct virtual_item * vi,
vi               2638 fs/reiserfs/reiserfs.h 	int (*check_left) (struct virtual_item * vi, int free,
vi               2640 fs/reiserfs/reiserfs.h 	int (*check_right) (struct virtual_item * vi, int free);
vi               2641 fs/reiserfs/reiserfs.h 	int (*part_size) (struct virtual_item * vi, int from, int to);
vi               2642 fs/reiserfs/reiserfs.h 	int (*unit_num) (struct virtual_item * vi);
vi               2643 fs/reiserfs/reiserfs.h 	void (*print_vi) (struct virtual_item * vi);
vi               2652 fs/reiserfs/reiserfs.h #define op_create_vi(vn,vi,is_affected,insert_size)  item_ops[le_ih_k_type ((vi)->vi_ih)]->create_vi (vn,vi,is_affected,insert_size)
vi               2653 fs/reiserfs/reiserfs.h #define op_check_left(vi,free,start_skip,end_skip) item_ops[(vi)->vi_index]->check_left (vi, free, start_skip, end_skip)
vi               2654 fs/reiserfs/reiserfs.h #define op_check_right(vi,free)                      item_ops[(vi)->vi_index]->check_right (vi, free)
vi               2655 fs/reiserfs/reiserfs.h #define op_part_size(vi,from,to)                     item_ops[(vi)->vi_index]->part_size (vi, from, to)
vi               2656 fs/reiserfs/reiserfs.h #define op_unit_num(vi)				     item_ops[(vi)->vi_index]->unit_num (vi)
vi               2657 fs/reiserfs/reiserfs.h #define op_print_vi(vi)                              item_ops[(vi)->vi_index]->print_vi (vi)
vi               2817 fs/ubifs/debug.c 		     c->vi.ubi_num, c->vi.vol_id);
vi                 17 fs/ubifs/misc.c 		  c->vi.ubi_num, c->vi.vol_id, &vaf);
vi                 34 fs/ubifs/misc.c 	       c->vi.ubi_num, c->vi.vol_id, current->pid,
vi                 53 fs/ubifs/misc.c 		c->vi.ubi_num, c->vi.vol_id, current->pid,
vi                421 fs/ubifs/sb.c  	if (c->leb_cnt < min_leb_cnt || c->leb_cnt > c->vi.size) {
vi                423 fs/ubifs/sb.c  			  c->leb_cnt, c->vi.size, min_leb_cnt);
vi                756 fs/ubifs/sb.c  	if (c->leb_cnt < c->vi.size && c->leb_cnt < c->max_leb_cnt) {
vi                759 fs/ubifs/sb.c  		c->leb_cnt = min_t(int, c->max_leb_cnt, c->vi.size);
vi                443 fs/ubifs/super.c 	seq_printf(s, ",ubi=%d,vol=%d", c->vi.ubi_num, c->vi.vol_id);
vi                482 fs/ubifs/super.c 	return ubi_sync(c->vi.ubi_num);
vi                496 fs/ubifs/super.c 	if (c->vi.corrupted) {
vi                506 fs/ubifs/super.c 	if (c->vi.vol_type == UBI_STATIC_VOLUME) {
vi                511 fs/ubifs/super.c 	c->leb_cnt = c->vi.size;
vi                512 fs/ubifs/super.c 	c->leb_size = c->vi.usable_leb_size;
vi               1328 fs/ubifs/super.c 	sprintf(c->bgt_name, BGT_NAME_PATTERN, c->vi.ubi_num, c->vi.vol_id);
vi               1510 fs/ubifs/super.c 		  c->vi.ubi_num, c->vi.vol_id, c->vi.name,
vi               1618 fs/ubifs/super.c 	dbg_gen("un-mounting UBI device %d, volume %d", c->vi.ubi_num,
vi               1619 fs/ubifs/super.c 		c->vi.vol_id);
vi               1881 fs/ubifs/super.c 	ubifs_msg(c, "un-mount UBI device %d", c->vi.ubi_num);
vi               2124 fs/ubifs/super.c 		ubi_get_volume_info(ubi, &c->vi);
vi               2125 fs/ubifs/super.c 		ubi_get_device_info(c->vi.ubi_num, &c->di);
vi               2138 fs/ubifs/super.c 	c->ubi = ubi_open_volume(c->vi.ubi_num, c->vi.vol_id, UBI_READWRITE);
vi               2158 fs/ubifs/super.c 	err = super_setup_bdi_name(sb, "ubifs_%d_%d", c->vi.ubi_num,
vi               2159 fs/ubifs/super.c 				   c->vi.vol_id);
vi               2214 fs/ubifs/super.c 	return c->vi.cdev == c1->vi.cdev;
vi               2252 fs/ubifs/super.c 	dbg_gen("opened ubi%d_%d", c->vi.ubi_num, c->vi.vol_id);
vi               1383 fs/ubifs/ubifs.h 	struct ubi_volume_info vi;
vi               2451 fs/unicode/mkutf8data.c 		unsigned int vi = (si % nc) / tc;
vi               2456 fs/unicode/mkutf8data.c 		mapping[i++] = vb + vi;
vi               2666 fs/unicode/mkutf8data.c 	unsigned int	vi;
vi               2673 fs/unicode/mkutf8data.c 	vi = (si % NC) / TC;
vi               2686 fs/unicode/mkutf8data.c 	h += utf8encode((char *)h, vi + VB);
vi                279 fs/unicode/utf8-norm.c 	unsigned int	vi;
vi                286 fs/unicode/utf8-norm.c 	vi = (si % NC) / TC;
vi                299 fs/unicode/utf8-norm.c 	h += utf8encode3((char *)h, vi + VB);
vi                165 fs/verity/enable.c 	struct fsverity_info *vi;
vi                245 fs/verity/enable.c 	vi = fsverity_create_info(inode, desc, desc_size);
vi                246 fs/verity/enable.c 	if (IS_ERR(vi)) {
vi                247 fs/verity/enable.c 		err = PTR_ERR(vi);
vi                265 fs/verity/enable.c 		fsverity_free_info(vi);
vi                268 fs/verity/enable.c 		fsverity_free_info(vi);
vi                277 fs/verity/enable.c 		fsverity_set_info(inode, vi);
vi                150 fs/verity/fsverity_private.h void fsverity_set_info(struct inode *inode, struct fsverity_info *vi);
vi                152 fs/verity/fsverity_private.h void fsverity_free_info(struct fsverity_info *vi);
vi                160 fs/verity/fsverity_private.h int fsverity_verify_signature(const struct fsverity_info *vi,
vi                167 fs/verity/fsverity_private.h fsverity_verify_signature(const struct fsverity_info *vi,
vi                 25 fs/verity/measure.c 	const struct fsverity_info *vi;
vi                 29 fs/verity/measure.c 	vi = fsverity_get_info(inode);
vi                 30 fs/verity/measure.c 	if (!vi)
vi                 32 fs/verity/measure.c 	hash_alg = vi->tree_params.hash_alg;
vi                 52 fs/verity/measure.c 	if (copy_to_user(uarg->digest, vi->measurement, hash_alg->digest_size))
vi                151 fs/verity/open.c 	struct fsverity_info *vi;
vi                183 fs/verity/open.c 	vi = kmem_cache_zalloc(fsverity_info_cachep, GFP_KERNEL);
vi                184 fs/verity/open.c 	if (!vi)
vi                186 fs/verity/open.c 	vi->inode = inode;
vi                188 fs/verity/open.c 	err = fsverity_init_merkle_tree_params(&vi->tree_params, inode,
vi                199 fs/verity/open.c 	memcpy(vi->root_hash, desc->root_hash, vi->tree_params.digest_size);
vi                201 fs/verity/open.c 	err = compute_file_measurement(vi->tree_params.hash_alg, desc,
vi                202 fs/verity/open.c 				       vi->measurement);
vi                208 fs/verity/open.c 		 vi->tree_params.hash_alg->name,
vi                209 fs/verity/open.c 		 vi->tree_params.digest_size, vi->measurement);
vi                211 fs/verity/open.c 	err = fsverity_verify_signature(vi, desc, desc_size);
vi                214 fs/verity/open.c 		fsverity_free_info(vi);
vi                215 fs/verity/open.c 		vi = ERR_PTR(err);
vi                217 fs/verity/open.c 	return vi;
vi                220 fs/verity/open.c void fsverity_set_info(struct inode *inode, struct fsverity_info *vi)
vi                226 fs/verity/open.c 	if (cmpxchg(&inode->i_verity_info, NULL, vi) != NULL)
vi                227 fs/verity/open.c 		fsverity_free_info(vi);
vi                230 fs/verity/open.c void fsverity_free_info(struct fsverity_info *vi)
vi                232 fs/verity/open.c 	if (!vi)
vi                234 fs/verity/open.c 	kfree(vi->tree_params.hashstate);
vi                235 fs/verity/open.c 	kmem_cache_free(fsverity_info_cachep, vi);
vi                241 fs/verity/open.c 	struct fsverity_info *vi = fsverity_get_info(inode);
vi                245 fs/verity/open.c 	if (vi)
vi                268 fs/verity/open.c 	vi = fsverity_create_info(inode, desc, res);
vi                269 fs/verity/open.c 	if (IS_ERR(vi)) {
vi                270 fs/verity/open.c 		res = PTR_ERR(vi);
vi                274 fs/verity/open.c 	fsverity_set_info(inode, vi);
vi                 37 fs/verity/signature.c int fsverity_verify_signature(const struct fsverity_info *vi,
vi                 41 fs/verity/signature.c 	const struct inode *inode = vi->inode;
vi                 42 fs/verity/signature.c 	const struct fsverity_hash_alg *hash_alg = vi->tree_params.hash_alg;
vi                 67 fs/verity/signature.c 	memcpy(d->digest, vi->measurement, hash_alg->digest_size);
vi                 91 fs/verity/signature.c 		 hash_alg->name, hash_alg->digest_size, vi->measurement);
vi                 52 fs/verity/verify.c static inline int cmp_hashes(const struct fsverity_info *vi,
vi                 56 fs/verity/verify.c 	const unsigned int hsize = vi->tree_params.digest_size;
vi                 61 fs/verity/verify.c 	fsverity_err(vi->inode,
vi                 64 fs/verity/verify.c 		     vi->tree_params.hash_alg->name, hsize, want_hash,
vi                 65 fs/verity/verify.c 		     vi->tree_params.hash_alg->name, hsize, real_hash);
vi                 86 fs/verity/verify.c static bool verify_page(struct inode *inode, const struct fsverity_info *vi,
vi                 89 fs/verity/verify.c 	const struct merkle_tree_params *params = &vi->tree_params;
vi                144 fs/verity/verify.c 	want_hash = vi->root_hash;
vi                156 fs/verity/verify.c 		err = cmp_hashes(vi, want_hash, real_hash, index, level - 1);
vi                171 fs/verity/verify.c 	err = cmp_hashes(vi, want_hash, real_hash, index, -1);
vi                190 fs/verity/verify.c 	const struct fsverity_info *vi = inode->i_verity_info;
vi                194 fs/verity/verify.c 	req = ahash_request_alloc(vi->tree_params.hash_alg->tfm, GFP_NOFS);
vi                198 fs/verity/verify.c 	valid = verify_page(inode, vi, req, page);
vi                224 fs/verity/verify.c 	const struct fsverity_info *vi = inode->i_verity_info;
vi                229 fs/verity/verify.c 	req = ahash_request_alloc(vi->tree_params.hash_alg->tfm, GFP_NOFS);
vi                239 fs/verity/verify.c 		if (!PageError(page) && !verify_page(inode, vi, req, page))
vi                218 include/linux/mtd/ubi.h 	struct ubi_volume_info vi;
vi                226 include/linux/mtd/ubi.h 			 struct ubi_volume_info *vi);
vi                745 include/uapi/linux/coda.h         struct ViceIoctl vi;
vi                237 scripts/dtc/flattree.c 			 struct version_info *vi)
vi                248 scripts/dtc/flattree.c 	if (vi->flags & FTF_FULLPATH)
vi                267 scripts/dtc/flattree.c 		if ((vi->flags & FTF_VARALIGN) && (prop->val.len >= 8))
vi                274 scripts/dtc/flattree.c 	if ((vi->flags & FTF_NAMEPROPS) && !seen_name_prop) {
vi                279 scripts/dtc/flattree.c 		if ((vi->flags & FTF_VARALIGN) && ((tree->basenamelen+1) >= 8))
vi                287 scripts/dtc/flattree.c 		flatten_tree(child, emit, etarget, strbuf, vi);
vi                294 scripts/dtc/flattree.c 				 struct version_info *vi)
vi                314 scripts/dtc/flattree.c 			    struct version_info *vi,
vi                325 scripts/dtc/flattree.c 	fdt->version = cpu_to_fdt32(vi->version);
vi                326 scripts/dtc/flattree.c 	fdt->last_comp_version = cpu_to_fdt32(vi->last_comp_version);
vi                329 scripts/dtc/flattree.c 	reserve_off = ALIGN(vi->hdr_size, 8);
vi                337 scripts/dtc/flattree.c 	if (vi->flags & FTF_BOOTCPUID)
vi                339 scripts/dtc/flattree.c 	if (vi->flags & FTF_STRTABSIZE)
vi                341 scripts/dtc/flattree.c 	if (vi->flags & FTF_STRUCTSIZE)
vi                347 scripts/dtc/flattree.c 	struct version_info *vi = NULL;
vi                358 scripts/dtc/flattree.c 			vi = &version_table[i];
vi                360 scripts/dtc/flattree.c 	if (!vi)
vi                363 scripts/dtc/flattree.c 	flatten_tree(dti->dt, &bin_emitter, &dtbuf, &strbuf, vi);
vi                366 scripts/dtc/flattree.c 	reservebuf = flatten_reserve_list(dti->reservelist, vi);
vi                369 scripts/dtc/flattree.c 	make_fdt_header(&fdt, vi, reservebuf.len, dtbuf.len, strbuf.len,
vi                404 scripts/dtc/flattree.c 	blob = data_append_data(blob, &fdt, vi->hdr_size);
vi                448 scripts/dtc/flattree.c 	struct version_info *vi = NULL;
vi                456 scripts/dtc/flattree.c 			vi = &version_table[i];
vi                458 scripts/dtc/flattree.c 	if (!vi)
vi                480 scripts/dtc/flattree.c 	asm_emit_cell(f, vi->version);
vi                482 scripts/dtc/flattree.c 	asm_emit_cell(f, vi->last_comp_version);
vi                484 scripts/dtc/flattree.c 	if (vi->flags & FTF_BOOTCPUID) {
vi                489 scripts/dtc/flattree.c 	if (vi->flags & FTF_STRTABSIZE) {
vi                495 scripts/dtc/flattree.c 	if (vi->flags & FTF_STRUCTSIZE) {
vi                536 scripts/dtc/flattree.c 	flatten_tree(dti->dt, &asm_emitter, f, &strbuf, vi);
vi               1078 tools/lib/bpf/libbpf.c 	const struct btf_var_secinfo *vi;
vi               1085 tools/lib/bpf/libbpf.c 	vi = btf_var_secinfos(sec) + var_idx;
vi               1086 tools/lib/bpf/libbpf.c 	var = btf__type_by_id(obj->btf, vi->type);
vi               1095 tools/lib/bpf/libbpf.c 	if ((__u64)vi->offset + vi->size > data->d_size) {
vi               1117 tools/lib/bpf/libbpf.c 	if (def->size > vi->size) {
vi               1133 tools/lib/bpf/libbpf.c 	map->sec_offset = vi->offset;