Home
last modified time | relevance | path

Searched refs:vi (Results 1 – 25 of 105) sorted by relevance

12345

/Linux-v4.19/drivers/virtio/
Dvirtio_input.c21 static void virtinput_queue_evtbuf(struct virtio_input *vi, in virtinput_queue_evtbuf() argument
27 virtqueue_add_inbuf(vi->evt, sg, 1, evtbuf, GFP_ATOMIC); in virtinput_queue_evtbuf()
32 struct virtio_input *vi = vq->vdev->priv; in virtinput_recv_events() local
37 spin_lock_irqsave(&vi->lock, flags); in virtinput_recv_events()
38 if (vi->ready) { in virtinput_recv_events()
39 while ((event = virtqueue_get_buf(vi->evt, &len)) != NULL) { in virtinput_recv_events()
40 spin_unlock_irqrestore(&vi->lock, flags); in virtinput_recv_events()
41 input_event(vi->idev, in virtinput_recv_events()
45 spin_lock_irqsave(&vi->lock, flags); in virtinput_recv_events()
46 virtinput_queue_evtbuf(vi, event); in virtinput_recv_events()
[all …]
/Linux-v4.19/drivers/char/hw_random/
Dvirtio-rng.c44 struct virtrng_info *vi = vq->vdev->priv; in random_recv_done() local
47 if (!virtqueue_get_buf(vi->vq, &vi->data_avail)) in random_recv_done()
50 complete(&vi->have_data); in random_recv_done()
54 static void register_buffer(struct virtrng_info *vi, u8 *buf, size_t size) in register_buffer() argument
61 virtqueue_add_inbuf(vi->vq, &sg, 1, buf, GFP_KERNEL); in register_buffer()
63 virtqueue_kick(vi->vq); in register_buffer()
69 struct virtrng_info *vi = (struct virtrng_info *)rng->priv; in virtio_read() local
71 if (vi->hwrng_removed) in virtio_read()
74 if (!vi->busy) { in virtio_read()
75 vi->busy = true; in virtio_read()
[all …]
/Linux-v4.19/drivers/net/
Dvirtio_net.c333 struct virtnet_info *vi = vq->vdev->priv; in skb_xmit_done() local
334 struct napi_struct *napi = &vi->sq[vq2txq(vq)].napi; in skb_xmit_done()
343 netif_wake_subqueue(vi->dev, vq2txq(vq)); in skb_xmit_done()
364 static struct sk_buff *page_to_skb(struct virtnet_info *vi, in page_to_skb() argument
383 hdr_len = vi->hdr_len; in page_to_skb()
384 if (vi->mergeable_rx_bufs) in page_to_skb()
403 if (vi->mergeable_rx_bufs) { in page_to_skb()
438 static int __virtnet_xdp_xmit_one(struct virtnet_info *vi, in __virtnet_xdp_xmit_one() argument
449 if (unlikely(xdpf->headroom < vi->hdr_len)) in __virtnet_xdp_xmit_one()
453 xdpf->data -= vi->hdr_len; in __virtnet_xdp_xmit_one()
[all …]
/Linux-v4.19/fs/ntfs/
Dinode.c60 int ntfs_test_inode(struct inode *vi, ntfs_attr *na) in ntfs_test_inode() argument
64 if (vi->i_ino != na->mft_no) in ntfs_test_inode()
66 ni = NTFS_I(vi); in ntfs_test_inode()
104 static int ntfs_init_locked_inode(struct inode *vi, ntfs_attr *na) in ntfs_init_locked_inode() argument
106 ntfs_inode *ni = NTFS_I(vi); in ntfs_init_locked_inode()
108 vi->i_ino = na->mft_no; in ntfs_init_locked_inode()
149 static int ntfs_read_locked_inode(struct inode *vi);
150 static int ntfs_read_locked_attr_inode(struct inode *base_vi, struct inode *vi);
152 struct inode *vi);
172 struct inode *vi; in ntfs_iget() local
[all …]
Dbitmap.h32 extern int __ntfs_bitmap_set_bits_in_run(struct inode *vi, const s64 start_bit,
47 static inline int ntfs_bitmap_set_bits_in_run(struct inode *vi, in ntfs_bitmap_set_bits_in_run() argument
50 return __ntfs_bitmap_set_bits_in_run(vi, start_bit, count, value, in ntfs_bitmap_set_bits_in_run()
65 static inline int ntfs_bitmap_set_run(struct inode *vi, const s64 start_bit, in ntfs_bitmap_set_run() argument
68 return ntfs_bitmap_set_bits_in_run(vi, start_bit, count, 1); in ntfs_bitmap_set_run()
82 static inline int ntfs_bitmap_clear_run(struct inode *vi, const s64 start_bit, in ntfs_bitmap_clear_run() argument
85 return ntfs_bitmap_set_bits_in_run(vi, start_bit, count, 0); in ntfs_bitmap_clear_run()
97 static inline int ntfs_bitmap_set_bit(struct inode *vi, const s64 bit) in ntfs_bitmap_set_bit() argument
99 return ntfs_bitmap_set_run(vi, bit, 1); in ntfs_bitmap_set_bit()
111 static inline int ntfs_bitmap_clear_bit(struct inode *vi, const s64 bit) in ntfs_bitmap_clear_bit() argument
[all …]
Dinode.h272 extern int ntfs_test_inode(struct inode *vi, ntfs_attr *na);
282 extern void ntfs_evict_big_inode(struct inode *vi);
286 static inline void ntfs_init_big_inode(struct inode *vi) in ntfs_init_big_inode() argument
288 ntfs_inode *ni = NTFS_I(vi); in ntfs_init_big_inode()
291 __ntfs_init_inode(vi->i_sb, ni); in ntfs_init_big_inode()
292 ni->mft_no = vi->i_ino; in ntfs_init_big_inode()
299 extern int ntfs_read_inode_mount(struct inode *vi);
305 extern int ntfs_truncate(struct inode *vi);
306 extern void ntfs_truncate_vfs(struct inode *vi);
310 extern int __ntfs_write_inode(struct inode *vi, int sync);
[all …]
Dlogfile.c52 static bool ntfs_check_restart_page_header(struct inode *vi, in ntfs_check_restart_page_header() argument
71 ntfs_error(vi->i_sb, "$LogFile uses unsupported page size."); in ntfs_check_restart_page_header()
79 ntfs_error(vi->i_sb, "Found restart area in incorrect " in ntfs_check_restart_page_header()
86 ntfs_error(vi->i_sb, "$LogFile version %i.%i is not " in ntfs_check_restart_page_header()
103 ntfs_error(vi->i_sb, "$LogFile restart page specifies " in ntfs_check_restart_page_header()
112 ntfs_error(vi->i_sb, "$LogFile restart page specifies " in ntfs_check_restart_page_header()
127 ntfs_error(vi->i_sb, "$LogFile restart page specifies " in ntfs_check_restart_page_header()
136 ntfs_error(vi->i_sb, "$LogFile restart page is not modified " in ntfs_check_restart_page_header()
158 static bool ntfs_check_restart_area(struct inode *vi, RESTART_PAGE_HEADER *rp) in ntfs_check_restart_area() argument
175 ntfs_error(vi->i_sb, "$LogFile restart area specifies " in ntfs_check_restart_area()
[all …]
Dbitmap.c47 int __ntfs_bitmap_set_bits_in_run(struct inode *vi, const s64 start_bit, in __ntfs_bitmap_set_bits_in_run() argument
58 BUG_ON(!vi); in __ntfs_bitmap_set_bits_in_run()
60 "value %u.%s", vi->i_ino, (unsigned long long)start_bit, in __ntfs_bitmap_set_bits_in_run()
74 mapping = vi->i_mapping; in __ntfs_bitmap_set_bits_in_run()
78 ntfs_error(vi->i_sb, "Failed to map first page (error " in __ntfs_bitmap_set_bits_in_run()
174 pos = __ntfs_bitmap_set_bits_in_run(vi, start_bit, count - cnt, in __ntfs_bitmap_set_bits_in_run()
180 ntfs_error(vi->i_sb, "Failed to map subsequent page (error " in __ntfs_bitmap_set_bits_in_run()
184 ntfs_error(vi->i_sb, "Failed to map subsequent page (error " in __ntfs_bitmap_set_bits_in_run()
188 NVolSetErrors(NTFS_SB(vi->i_sb)); in __ntfs_bitmap_set_bits_in_run()
Dfile.c62 static int ntfs_file_open(struct inode *vi, struct file *filp) in ntfs_file_open() argument
65 if (i_size_read(vi) > MAX_LFS_FILESIZE) in ntfs_file_open()
68 return generic_file_open(vi, filp); in ntfs_file_open()
115 struct inode *vi = VFS_I(ni); in ntfs_attr_extend_initialized() local
128 old_i_size = i_size_read(vi); in ntfs_attr_extend_initialized()
134 vi->i_ino, (unsigned)le32_to_cpu(ni->type), in ntfs_attr_extend_initialized()
178 i_size_write(vi, new_init_size); in ntfs_attr_extend_initialized()
216 i_size_write(vi, new_init_size); in ntfs_attr_extend_initialized()
222 mapping = vi->i_mapping; in ntfs_attr_extend_initialized()
316 (unsigned long long)new_init_size, i_size_read(vi)); in ntfs_attr_extend_initialized()
[all …]
/Linux-v4.19/drivers/parisc/
Diosapic.c540 static void iosapic_rd_irt_entry(struct vector_info *vi , u32 *dp0, u32 *dp1) in iosapic_rd_irt_entry() argument
542 struct iosapic_info *isp = vi->iosapic; in iosapic_rd_irt_entry()
543 u8 idx = vi->irqline; in iosapic_rd_irt_entry()
550 static void iosapic_wr_irt_entry(struct vector_info *vi, u32 dp0, u32 dp1) in iosapic_wr_irt_entry() argument
552 struct iosapic_info *isp = vi->iosapic; in iosapic_wr_irt_entry()
555 vi->irqline, isp->isi_hpa, dp0, dp1); in iosapic_wr_irt_entry()
557 iosapic_write(isp->addr, IOSAPIC_IRDT_ENTRY(vi->irqline), dp0); in iosapic_wr_irt_entry()
562 iosapic_write(isp->addr, IOSAPIC_IRDT_ENTRY_HI(vi->irqline), dp1); in iosapic_wr_irt_entry()
574 iosapic_set_irt_data( struct vector_info *vi, u32 *dp0, u32 *dp1) in iosapic_set_irt_data() argument
577 struct irt_entry *p = vi->irte; in iosapic_set_irt_data()
[all …]
/Linux-v4.19/drivers/scsi/esas2r/
Desas2r_vda.c66 struct atto_ioctl_vda *vi, in esas2r_process_vda_ioctl() argument
74 vi->status = ATTO_STS_SUCCESS; in esas2r_process_vda_ioctl()
75 vi->vda_status = RS_PENDING; in esas2r_process_vda_ioctl()
77 if (vi->function >= vercnt) { in esas2r_process_vda_ioctl()
78 vi->status = ATTO_STS_INV_FUNC; in esas2r_process_vda_ioctl()
82 if (vi->version > esas2r_vdaioctl_versions[vi->function]) { in esas2r_process_vda_ioctl()
83 vi->status = ATTO_STS_INV_VERSION; in esas2r_process_vda_ioctl()
88 vi->status = ATTO_STS_DEGRADED; in esas2r_process_vda_ioctl()
92 if (vi->function != VDA_FUNC_SCSI) in esas2r_process_vda_ioctl()
95 rq->vrq->scsi.function = vi->function; in esas2r_process_vda_ioctl()
[all …]
/Linux-v4.19/fs/reiserfs/
Ditem_ops.c61 struct virtual_item *vi, in sd_create_vi() argument
64 vi->vi_index = TYPE_STAT_DATA; in sd_create_vi()
68 static int sd_check_left(struct virtual_item *vi, int free, in sd_check_left() argument
75 static int sd_check_right(struct virtual_item *vi, int free) in sd_check_right() argument
80 static int sd_part_size(struct virtual_item *vi, int first, int count) in sd_part_size() argument
86 static int sd_unit_num(struct virtual_item *vi) in sd_unit_num() argument
88 return vi->vi_item_len - IH_SIZE; in sd_unit_num()
91 static void sd_print_vi(struct virtual_item *vi) in sd_print_vi() argument
95 vi->vi_index, vi->vi_type, vi->vi_ih); in sd_print_vi()
151 struct virtual_item *vi, in direct_create_vi() argument
[all …]
/Linux-v4.19/drivers/mtd/ubi/
Dgluebi.c292 struct ubi_volume_info *vi) in gluebi_create() argument
302 mtd->name = kmemdup(vi->name, vi->name_len + 1, GFP_KERNEL); in gluebi_create()
308 gluebi->vol_id = vi->vol_id; in gluebi_create()
309 gluebi->ubi_num = vi->ubi_num; in gluebi_create()
315 mtd->erasesize = vi->usable_leb_size; in gluebi_create()
327 if (vi->vol_type == UBI_DYNAMIC_VOLUME) in gluebi_create()
328 mtd->size = (unsigned long long)vi->usable_leb_size * vi->size; in gluebi_create()
330 mtd->size = vi->used_bytes; in gluebi_create()
334 g = find_gluebi_nolock(vi->ubi_num, vi->vol_id); in gluebi_create()
337 g->mtd.index, vi->ubi_num, vi->vol_id); in gluebi_create()
[all …]
Dblock.c356 int ubiblock_create(struct ubi_volume_info *vi) in ubiblock_create() argument
360 u64 disk_capacity = vi->used_bytes >> 9; in ubiblock_create()
367 if (find_dev_nolock(vi->ubi_num, vi->vol_id)) { in ubiblock_create()
380 dev->ubi_num = vi->ubi_num; in ubiblock_create()
381 dev->vol_id = vi->vol_id; in ubiblock_create()
382 dev->leb_size = vi->usable_leb_size; in ubiblock_create()
446 dev->ubi_num, dev->vol_id, vi->name); in ubiblock_create()
480 int ubiblock_remove(struct ubi_volume_info *vi) in ubiblock_remove() argument
486 dev = find_dev_nolock(vi->ubi_num, vi->vol_id); in ubiblock_remove()
515 static int ubiblock_resize(struct ubi_volume_info *vi) in ubiblock_resize() argument
[all …]
/Linux-v4.19/drivers/staging/erofs/
Dinode.c20 struct erofs_vnode *vi = EROFS_V(inode); in read_inode() local
24 vi->data_mapping_mode = __inode_data_mapping(advise); in read_inode()
26 if (unlikely(vi->data_mapping_mode >= EROFS_INODE_LAYOUT_MAX)) { in read_inode()
28 vi->data_mapping_mode, vi->nid); in read_inode()
36 vi->inode_isize = sizeof(struct erofs_inode_v2); in read_inode()
37 vi->xattr_isize = ondisk_xattr_ibody_size(v2->i_xattr_icount); in read_inode()
42 vi->raw_blkaddr = le32_to_cpu(v2->i_u.raw_blkaddr); in read_inode()
66 vi->inode_isize = sizeof(struct erofs_inode_v1); in read_inode()
67 vi->xattr_isize = ondisk_xattr_ibody_size(v1->i_xattr_icount); in read_inode()
72 vi->raw_blkaddr = le32_to_cpu(v1->i_u.raw_blkaddr); in read_inode()
[all …]
Dxattr.c42 struct erofs_vnode *vi; in init_inode_xattrs() local
48 vi = EROFS_V(inode); in init_inode_xattrs()
49 BUG_ON(!vi->xattr_isize); in init_inode_xattrs()
52 it.blkaddr = erofs_blknr(iloc(sbi, vi->nid) + vi->inode_isize); in init_inode_xattrs()
53 it.ofs = erofs_blkoff(iloc(sbi, vi->nid) + vi->inode_isize); in init_inode_xattrs()
64 vi->xattr_shared_count = ih->h_shared_count; in init_inode_xattrs()
65 vi->xattr_shared_xattrs = (unsigned *)kmalloc_array( in init_inode_xattrs()
66 vi->xattr_shared_count, sizeof(unsigned), in init_inode_xattrs()
72 for (i = 0; i < vi->xattr_shared_count; ++i) { in init_inode_xattrs()
86 vi->xattr_shared_xattrs[i] = in init_inode_xattrs()
[all …]
/Linux-v4.19/drivers/crypto/virtio/
Dvirtio_crypto_core.c60 static int virtcrypto_find_vqs(struct virtio_crypto *vi) in virtcrypto_find_vqs() argument
67 struct device *dev = &vi->vdev->dev; in virtcrypto_find_vqs()
74 total_vqs = vi->max_data_queues + 1; in virtcrypto_find_vqs()
92 for (i = 0; i < vi->max_data_queues; i++) { in virtcrypto_find_vqs()
94 snprintf(vi->data_vq[i].name, sizeof(vi->data_vq[i].name), in virtcrypto_find_vqs()
96 names[i] = vi->data_vq[i].name; in virtcrypto_find_vqs()
99 ret = virtio_find_vqs(vi->vdev, total_vqs, vqs, callbacks, names, NULL); in virtcrypto_find_vqs()
103 vi->ctrl_vq = vqs[total_vqs - 1]; in virtcrypto_find_vqs()
105 for (i = 0; i < vi->max_data_queues; i++) { in virtcrypto_find_vqs()
106 spin_lock_init(&vi->data_vq[i].lock); in virtcrypto_find_vqs()
[all …]
/Linux-v4.19/fs/afs/
Dcallback.c29 struct afs_vol_interest *new_vi, *vi; in afs_create_interest() local
57 vi = hlist_entry(*pp, struct afs_vol_interest, srv_link); in afs_create_interest()
58 if (vi->vid < new_vi->vid) in afs_create_interest()
60 if (vi->vid > new_vi->vid) in afs_create_interest()
62 vi->usage++; in afs_create_interest()
71 vi = new_vi; in afs_create_interest()
75 new->vol_interest = vi; in afs_create_interest()
76 hlist_add_head(&new->cb_vlink, &vi->cb_interests); in afs_create_interest()
179 struct afs_vol_interest *vi; in afs_put_cb_interest() local
186 vi = cbi->vol_interest; in afs_put_cb_interest()
[all …]
/Linux-v4.19/drivers/misc/mic/vop/
Dvop_debugfs.c33 struct vop_info *vi = s->private; in vop_dp_show() local
34 struct vop_device *vpdev = vi->vpdev; in vop_dp_show()
100 schedule_work(&vi->hotplug_work); in vop_dp_show()
124 struct vop_info *vi = s->private; in vop_vdev_info_show() local
129 mutex_lock(&vi->vop_mutex); in vop_vdev_info_show()
130 list_for_each_safe(pos, tmp, &vi->vdev_list) { in vop_vdev_info_show()
192 mutex_unlock(&vi->vop_mutex); in vop_vdev_info_show()
215 void vop_init_debugfs(struct vop_info *vi) in vop_init_debugfs() argument
219 snprintf(name, sizeof(name), "%s%d", KBUILD_MODNAME, vi->vpdev->dnode); in vop_init_debugfs()
220 vi->dbg = debugfs_create_dir(name, NULL); in vop_init_debugfs()
[all …]
Dvop_main.c643 static void vop_scan_devices(struct vop_info *vi, in vop_scan_devices() argument
650 mutex_lock(&vi->vop_mutex); in vop_scan_devices()
652 mutex_unlock(&vi->vop_mutex); in vop_scan_devices()
660 struct vop_info *vi = container_of(work, struct vop_info, in vop_hotplug_devices() local
663 vop_scan_devices(vi, vi->vpdev, !REMOVE_DEVICES); in vop_hotplug_devices()
671 struct vop_info *vi = data; in vop_extint_handler() local
673 struct vop_device *vpdev = vi->vpdev; in vop_extint_handler()
679 schedule_work(&vi->hotplug_work); in vop_extint_handler()
685 struct vop_info *vi; in vop_driver_probe() local
688 vi = kzalloc(sizeof(*vi), GFP_KERNEL); in vop_driver_probe()
[all …]
Dvop_vringh.c127 static void vop_virtio_reset_devices(struct vop_info *vi) in vop_virtio_reset_devices() argument
132 list_for_each_safe(pos, tmp, &vi->vdev_list) { in vop_virtio_reset_devices()
170 struct vop_info *vi = dev_get_drvdata(&vpdev->dev); in vop_virtio_config_change() local
174 mutex_lock(&vi->vop_mutex); in vop_virtio_config_change()
201 mutex_unlock(&vi->vop_mutex); in vop_virtio_config_change()
274 struct vop_info *vi = vdev->vi; in vop_virtio_add_device() local
275 struct vop_device *vpdev = vi->vpdev; in vop_virtio_add_device()
432 struct vop_info *vi = vdev->vi; in vop_virtio_del_device() local
440 vop_dev_remove(vi, vdev->dc, vpdev); in vop_virtio_del_device()
487 struct vop_info *vi = dev_get_drvdata(&vdev->vpdev->dev); in vop_sync_dma() local
[all …]
Dvop_main.h154 struct vop_info *vi; member
166 void vop_init_debugfs(struct vop_info *vi);
167 void vop_exit_debugfs(struct vop_info *vi);
168 int vop_host_init(struct vop_info *vi);
169 void vop_host_uninit(struct vop_info *vi);
/Linux-v4.19/drivers/media/pci/ivtv/
Divtv-vbi.c99 struct vbi_info *vi = &itv->vbi; in ivtv_write_vbi_line() local
118 if (memcmp(&vps, &vi->vps_payload, sizeof(vps))) { in ivtv_write_vbi_line()
119 vi->vps_payload = vps; in ivtv_write_vbi_line()
126 if (vi->wss_payload != wss) { in ivtv_write_vbi_line()
127 vi->wss_payload = wss; in ivtv_write_vbi_line()
135 struct vbi_info *vi = &itv->vbi; in ivtv_write_vbi_cc_lines() local
137 if (vi->cc_payload_idx < ARRAY_SIZE(vi->cc_payload)) { in ivtv_write_vbi_cc_lines()
138 memcpy(&vi->cc_payload[vi->cc_payload_idx], cc, in ivtv_write_vbi_cc_lines()
140 vi->cc_payload_idx++; in ivtv_write_vbi_cc_lines()
476 struct vbi_info *vi = &itv->vbi; in ivtv_vbi_work_handler() local
[all …]
/Linux-v4.19/fs/ubifs/
Dmisc.c17 c->vi.ubi_num, c->vi.vol_id, &vaf); in ubifs_msg()
34 c->vi.ubi_num, c->vi.vol_id, current->pid, in ubifs_err()
53 c->vi.ubi_num, c->vi.vol_id, current->pid, in ubifs_warn()
/Linux-v4.19/scripts/dtc/
Dflattree.c252 struct version_info *vi) in flatten_tree() argument
263 if (vi->flags & FTF_FULLPATH) in flatten_tree()
282 if ((vi->flags & FTF_VARALIGN) && (prop->val.len >= 8)) in flatten_tree()
289 if ((vi->flags & FTF_NAMEPROPS) && !seen_name_prop) { in flatten_tree()
294 if ((vi->flags & FTF_VARALIGN) && ((tree->basenamelen+1) >= 8)) in flatten_tree()
302 flatten_tree(child, emit, etarget, strbuf, vi); in flatten_tree()
309 struct version_info *vi) in flatten_reserve_list() argument
329 struct version_info *vi, in make_fdt_header() argument
340 fdt->version = cpu_to_fdt32(vi->version); in make_fdt_header()
341 fdt->last_comp_version = cpu_to_fdt32(vi->last_comp_version); in make_fdt_header()
[all …]

12345