Home
last modified time | relevance | path

Searched full:vi (Results 1 – 25 of 499) sorted by relevance

12345678910>>...20

/openbmc/linux/drivers/virtio/
H A Dvirtio_input.c24 static void virtinput_queue_evtbuf(struct virtio_input *vi, in virtinput_queue_evtbuf() argument
30 virtqueue_add_inbuf(vi->evt, sg, 1, evtbuf, GFP_ATOMIC); in virtinput_queue_evtbuf()
35 struct virtio_input *vi = vq->vdev->priv; in virtinput_recv_events() local
40 spin_lock_irqsave(&vi->lock, flags); in virtinput_recv_events()
41 if (vi->ready) { in virtinput_recv_events()
42 while ((event = virtqueue_get_buf(vi->evt, &len)) != NULL) { in virtinput_recv_events()
43 spin_unlock_irqrestore(&vi->lock, flags); in virtinput_recv_events()
44 input_event(vi->idev, in virtinput_recv_events()
48 spin_lock_irqsave(&vi->lock, flags); in virtinput_recv_events()
49 virtinput_queue_evtbuf(vi, event); in virtinput_recv_events()
[all …]
/openbmc/linux/drivers/char/hw_random/
H A Dvirtio-rng.c40 struct virtrng_info *vi = vq->vdev->priv; in random_recv_done() local
44 if (!virtqueue_get_buf(vi->vq, &len)) in random_recv_done()
47 smp_store_release(&vi->data_avail, len); in random_recv_done()
48 complete(&vi->have_data); in random_recv_done()
51 static void request_entropy(struct virtrng_info *vi) in request_entropy() argument
55 reinit_completion(&vi->have_data); in request_entropy()
56 vi->data_idx = 0; in request_entropy()
58 sg_init_one(&sg, vi->data, sizeof(vi->data)); in request_entropy()
61 virtqueue_add_inbuf(vi->vq, &sg, 1, vi->data, GFP_KERNEL); in request_entropy()
63 virtqueue_kick(vi->vq); in request_entropy()
[all …]
/openbmc/linux/drivers/net/
H A Dvirtio_net.c391 /* Find end of list, sew whole thing into vi->rq.pages. */ in give_pages()
410 static void virtnet_rq_free_buf(struct virtnet_info *vi, in virtnet_rq_free_buf() argument
413 if (vi->mergeable_rx_bufs) in virtnet_rq_free_buf()
415 else if (vi->big_packets) in virtnet_rq_free_buf()
421 static void enable_delayed_refill(struct virtnet_info *vi) in enable_delayed_refill() argument
423 spin_lock_bh(&vi->refill_lock); in enable_delayed_refill()
424 vi->refill_enabled = true; in enable_delayed_refill()
425 spin_unlock_bh(&vi->refill_lock); in enable_delayed_refill()
428 static void disable_delayed_refill(struct virtnet_info *vi) in disable_delayed_refill() argument
430 spin_lock_bh(&vi->refill_lock); in disable_delayed_refill()
[all …]
/openbmc/qemu/contrib/vhost-user-input/
H A Dmain.c39 static void vi_input_send(VuInput *vi, struct virtio_input_event *event) in vi_input_send() argument
41 VuDev *dev = &vi->dev.parent; in vi_input_send()
47 if (vi->qindex == vi->qsize) { in vi_input_send()
48 vi->qsize++; in vi_input_send()
49 vi->queue = g_realloc_n(vi->queue, vi->qsize, sizeof(vi->queue[0])); in vi_input_send()
51 vi->queue[vi->qindex++].event = *event; in vi_input_send()
60 for (i = 0; i < vi->qindex; i++) { in vi_input_send()
64 vu_queue_unpop(dev, vq, vi->queue[i].elem, 0); in vi_input_send()
66 vi->qindex = 0; in vi_input_send()
70 vi->queue[i].elem = elem; in vi_input_send()
[all …]
/openbmc/linux/drivers/scsi/esas2r/
H A 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 …]
/openbmc/qemu/tests/tcg/i386/
H A Dtest-aes.c8 __m128i vi = _mm_loadu_si128((const __m128i_u *)i); in test_SB_SR() local
11 vi = _mm_aesenclast_si128(vi, _mm_setzero_si128()); in test_SB_SR()
13 _mm_storeu_si128((__m128i_u *)o, vi); in test_SB_SR()
24 __m128i vi = _mm_loadu_si128((const __m128i_u *)i); in test_SB_SR_MC_AK() local
27 vi = _mm_aesenc_si128(vi, vk); in test_SB_SR_MC_AK()
29 _mm_storeu_si128((__m128i_u *)o, vi); in test_SB_SR_MC_AK()
35 __m128i vi = _mm_loadu_si128((const __m128i_u *)i); in test_ISB_ISR() local
38 vi = _mm_aesdeclast_si128(vi, _mm_setzero_si128()); in test_ISB_ISR()
40 _mm_storeu_si128((__m128i_u *)o, vi); in test_ISB_ISR()
46 __m128i vi = _mm_loadu_si128((const __m128i_u *)i); in test_IMC() local
[all …]
/openbmc/linux/drivers/staging/media/tegra-video/
H A Dvi.c30 #include "vi.h"
66 static int tegra_get_format_idx_by_code(struct tegra_vi *vi, in tegra_get_format_idx_by_code() argument
72 for (i = offset; i < vi->soc->nformats; ++i) { in tegra_get_format_idx_by_code()
73 if (vi->soc->video_formats[i].code == code) in tegra_get_format_idx_by_code()
80 static u32 tegra_get_format_fourcc_by_idx(struct tegra_vi *vi, in tegra_get_format_fourcc_by_idx() argument
83 if (index >= vi->soc->nformats) in tegra_get_format_fourcc_by_idx()
86 return vi->soc->video_formats[index].fourcc; in tegra_get_format_fourcc_by_idx()
90 tegra_get_format_by_fourcc(struct tegra_vi *vi, u32 fourcc) in tegra_get_format_by_fourcc() argument
94 for (i = 0; i < vi->soc->nformats; ++i) { in tegra_get_format_by_fourcc()
95 if (vi->soc->video_formats[i].fourcc == fourcc) in tegra_get_format_by_fourcc()
[all …]
H A Dvi.h44 * struct tegra_vi_ops - Tegra VI operations
45 * @vi_enable: soc-specific operations needed to enable/disable the VI peripheral
52 * VI for capture and runs capture start and capture finish
58 int (*vi_enable)(struct tegra_vi *vi, bool on);
73 * @ops: vi operations
74 * @hw_revision: VI hw_revision
76 * @vi_max_clk_hz: VI clock max frequency
96 * @clk: main clock for VI block
97 * @vdd: vdd regulator for VI hardware, normally it is avdd_dsi_csi
99 * @ops: vi operations
[all …]
/openbmc/linux/fs/ntfs/
H A Dbitmap.h18 extern int __ntfs_bitmap_set_bits_in_run(struct inode *vi, const s64 start_bit,
23 * @vi: vfs inode describing the bitmap
29 * vfs inode @vi to @value, where @value is either 0 or 1.
33 static inline int ntfs_bitmap_set_bits_in_run(struct inode *vi, in ntfs_bitmap_set_bits_in_run() argument
36 return __ntfs_bitmap_set_bits_in_run(vi, start_bit, count, value, in ntfs_bitmap_set_bits_in_run()
42 * @vi: vfs inode describing the bitmap
47 * vfs inode @vi.
51 static inline int ntfs_bitmap_set_run(struct inode *vi, const s64 start_bit, in ntfs_bitmap_set_run() argument
54 return ntfs_bitmap_set_bits_in_run(vi, start_bit, count, 1); in ntfs_bitmap_set_run()
59 * @vi: vfs inode describing the bitmap
[all …]
H A Dinode.c32 * @vi: vfs inode which to test
36 * inode @vi for equality with the ntfs attribute @data.
46 int ntfs_test_inode(struct inode *vi, void *data) in ntfs_test_inode() argument
51 if (vi->i_ino != na->mft_no) in ntfs_test_inode()
53 ni = NTFS_I(vi); in ntfs_test_inode()
54 /* If !NInoAttr(ni), @vi is a normal file or directory inode. */ in ntfs_test_inode()
75 * @vi: vfs inode to initialize
76 * @data: data which to initialize @vi to
78 * Initialize the vfs inode @vi with the values from the ntfs attribute @data in
91 static int ntfs_init_locked_inode(struct inode *vi, void *data) in ntfs_init_locked_inode() argument
[all …]
H A Dbitmap.c19 * @vi: vfs inode describing the bitmap
26 * vfs inode @vi to @value, where @value is either 0 or 1.
33 int __ntfs_bitmap_set_bits_in_run(struct inode *vi, const s64 start_bit, in __ntfs_bitmap_set_bits_in_run() argument
44 BUG_ON(!vi); in __ntfs_bitmap_set_bits_in_run()
46 "value %u.%s", vi->i_ino, (unsigned long long)start_bit, in __ntfs_bitmap_set_bits_in_run()
60 mapping = vi->i_mapping; in __ntfs_bitmap_set_bits_in_run()
64 ntfs_error(vi->i_sb, "Failed to map first page (error " in __ntfs_bitmap_set_bits_in_run()
160 pos = __ntfs_bitmap_set_bits_in_run(vi, start_bit, count - cnt, in __ntfs_bitmap_set_bits_in_run()
166 ntfs_error(vi->i_sb, "Failed to map subsequent page (error " in __ntfs_bitmap_set_bits_in_run()
170 ntfs_error(vi->i_sb, "Failed to map subsequent page (error " in __ntfs_bitmap_set_bits_in_run()
[all …]
/openbmc/linux/fs/erofs/
H A Dinode.c16 struct erofs_inode *vi = EROFS_I(inode); in erofs_read_inode() local
32 vi->nid, PTR_ERR(kaddr)); in erofs_read_inode()
41 ifmt, vi->nid); in erofs_read_inode()
46 vi->datalayout = erofs_inode_datalayout(ifmt); in erofs_read_inode()
47 if (vi->datalayout >= EROFS_INODE_DATALAYOUT_MAX) { in erofs_read_inode()
49 vi->datalayout, vi->nid); in erofs_read_inode()
56 vi->inode_isize = sizeof(struct erofs_inode_extended); in erofs_read_inode()
58 if (*ofs + vi->inode_isize <= sb->s_blocksize) { in erofs_read_inode()
59 *ofs += vi->inode_isize; in erofs_read_inode()
64 copied = kmalloc(vi->inode_isize, GFP_NOFS); in erofs_read_inode()
[all …]
H A Dzmap.c29 struct erofs_inode *const vi = EROFS_I(inode); in z_erofs_load_full_lcluster() local
31 vi->inode_isize + vi->xattr_isize) + in z_erofs_load_full_lcluster()
50 m->clusterofs = 1 << vi->z_logical_clusterbits; in z_erofs_load_full_lcluster()
53 if (!(vi->z_advise & (Z_EROFS_ADVISE_BIG_PCLUSTER_1 | in z_erofs_load_full_lcluster()
70 if (m->clusterofs >= 1 << vi->z_logical_clusterbits) { in z_erofs_load_full_lcluster()
121 struct erofs_inode *const vi = EROFS_I(m->inode); in unpack_compacted_index() local
122 const unsigned int lclusterbits = vi->z_logical_clusterbits; in unpack_compacted_index()
138 big_pcluster = vi->z_advise & Z_EROFS_ADVISE_BIG_PCLUSTER_1; in unpack_compacted_index()
229 struct erofs_inode *const vi = EROFS_I(inode); in z_erofs_load_compact_lcluster() local
231 ALIGN(erofs_iloc(inode) + vi->inode_isize + vi->xattr_isize, 8); in z_erofs_load_compact_lcluster()
[all …]
H A Dxattr.c30 struct erofs_inode *const vi = EROFS_I(inode); in erofs_init_inode_xattrs() local
38 if (test_bit(EROFS_I_EA_INITED_BIT, &vi->flags)) { in erofs_init_inode_xattrs()
47 if (wait_on_bit_lock(&vi->flags, EROFS_I_BL_XATTR_BIT, TASK_KILLABLE)) in erofs_init_inode_xattrs()
51 if (test_bit(EROFS_I_EA_INITED_BIT, &vi->flags)) in erofs_init_inode_xattrs()
62 if (vi->xattr_isize == sizeof(struct erofs_xattr_ibody_header)) { in erofs_init_inode_xattrs()
65 vi->xattr_isize, vi->nid); in erofs_init_inode_xattrs()
68 } else if (vi->xattr_isize < sizeof(struct erofs_xattr_ibody_header)) { in erofs_init_inode_xattrs()
69 if (vi->xattr_isize) { in erofs_init_inode_xattrs()
70 erofs_err(sb, "bogus xattr ibody @ nid %llu", vi->nid); in erofs_init_inode_xattrs()
81 it.pos = erofs_iloc(inode) + vi->inode_isize; in erofs_init_inode_xattrs()
[all …]
/openbmc/linux/fs/reiserfs/
H A 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 …]
/openbmc/linux/Documentation/devicetree/bindings/display/tegra/
H A Dnvidia,tegra20-vi.yaml4 $id: http://devicetree.org/schemas/display/tegra/nvidia,tegra20-vi.yaml#
15 pattern: "^vi@[0-9a-f]+$"
19 - const: nvidia,tegra20-vi
20 - const: nvidia,tegra30-vi
21 - const: nvidia,tegra114-vi
22 - const: nvidia,tegra124-vi
24 - const: nvidia,tegra132-vi
25 - const: nvidia,tegra124-vi
26 - const: nvidia,tegra210-vi
27 - const: nvidia,tegra186-vi
[all …]
/openbmc/linux/drivers/parisc/
H A Diosapic.c517 static void iosapic_rd_irt_entry(struct vector_info *vi , u32 *dp0, u32 *dp1) in iosapic_rd_irt_entry() argument
519 struct iosapic_info *isp = vi->iosapic; in iosapic_rd_irt_entry()
520 u8 idx = vi->irqline; in iosapic_rd_irt_entry()
527 static void iosapic_wr_irt_entry(struct vector_info *vi, u32 dp0, u32 dp1) in iosapic_wr_irt_entry() argument
529 struct iosapic_info *isp = vi->iosapic; in iosapic_wr_irt_entry()
532 vi->irqline, isp->isi_hpa, dp0, dp1); in iosapic_wr_irt_entry()
534 iosapic_write(isp->addr, IOSAPIC_IRDT_ENTRY(vi->irqline), dp0); in iosapic_wr_irt_entry()
539 iosapic_write(isp->addr, IOSAPIC_IRDT_ENTRY_HI(vi->irqline), dp1); in iosapic_wr_irt_entry()
551 iosapic_set_irt_data( struct vector_info *vi, u32 *dp0, u32 *dp1) in iosapic_set_irt_data() argument
554 struct irt_entry *p = vi->irte; in iosapic_set_irt_data()
[all …]
/openbmc/linux/drivers/i2c/busses/
H A Di2c-virtio.c136 struct virtio_i2c *vi = i2c_get_adapdata(adap); in virtio_i2c_xfer() local
137 struct virtqueue *vq = vi->vq; in virtio_i2c_xfer()
172 static int virtio_i2c_setup_vqs(struct virtio_i2c *vi) in virtio_i2c_setup_vqs() argument
174 struct virtio_device *vdev = vi->vdev; in virtio_i2c_setup_vqs()
176 vi->vq = virtio_find_single_vq(vdev, virtio_i2c_msg_done, "msg"); in virtio_i2c_setup_vqs()
177 return PTR_ERR_OR_ZERO(vi->vq); in virtio_i2c_setup_vqs()
192 struct virtio_i2c *vi; in virtio_i2c_probe() local
200 vi = devm_kzalloc(&vdev->dev, sizeof(*vi), GFP_KERNEL); in virtio_i2c_probe()
201 if (!vi) in virtio_i2c_probe()
204 vdev->priv = vi; in virtio_i2c_probe()
[all …]
/openbmc/linux/drivers/mtd/ubi/
H A Dgluebi.c272 * @vi: UBI volume description object
279 struct ubi_volume_info *vi) in gluebi_create() argument
289 mtd->name = kmemdup(vi->name, vi->name_len + 1, GFP_KERNEL); in gluebi_create()
295 gluebi->vol_id = vi->vol_id; in gluebi_create()
296 gluebi->ubi_num = vi->ubi_num; in gluebi_create()
302 mtd->erasesize = vi->usable_leb_size; in gluebi_create()
314 if (vi->vol_type == UBI_DYNAMIC_VOLUME) in gluebi_create()
315 mtd->size = (unsigned long long)vi->usable_leb_size * vi->size; in gluebi_create()
317 mtd->size = vi->used_bytes; in gluebi_create()
321 g = find_gluebi_nolock(vi->ubi_num, vi->vol_id); in gluebi_create()
[all …]
H A Dblock.c328 static int calc_disk_capacity(struct ubi_volume_info *vi, u64 *disk_capacity) in calc_disk_capacity() argument
330 u64 size = vi->used_bytes >> 9; in calc_disk_capacity()
332 if (vi->used_bytes % 512) { in calc_disk_capacity()
333 if (vi->vol_type == UBI_DYNAMIC_VOLUME) in calc_disk_capacity()
335 vi->used_bytes - (size << 9)); in calc_disk_capacity()
338 vi->used_bytes - (size << 9)); in calc_disk_capacity()
349 int ubiblock_create(struct ubi_volume_info *vi) in ubiblock_create() argument
356 ret = calc_disk_capacity(vi, &disk_capacity); in ubiblock_create()
363 if (find_dev_nolock(vi->ubi_num, vi->vol_id)) { in ubiblock_create()
376 dev->ubi_num = vi->ubi_num; in ubiblock_create()
[all …]
/openbmc/linux/fs/verity/
H A Dopen.c183 struct fsverity_info *vi; in fsverity_create_info() local
186 vi = kmem_cache_zalloc(fsverity_info_cachep, GFP_KERNEL); in fsverity_create_info()
187 if (!vi) in fsverity_create_info()
189 vi->inode = inode; in fsverity_create_info()
191 err = fsverity_init_merkle_tree_params(&vi->tree_params, inode, in fsverity_create_info()
202 memcpy(vi->root_hash, desc->root_hash, vi->tree_params.digest_size); in fsverity_create_info()
204 err = compute_file_digest(vi->tree_params.hash_alg, desc, in fsverity_create_info()
205 vi->file_digest); in fsverity_create_info()
211 err = fsverity_verify_signature(vi, desc->signature, in fsverity_create_info()
216 if (vi->tree_params.block_size != PAGE_SIZE) { in fsverity_create_info()
[all …]
H A Dmeasure.c27 const struct fsverity_info *vi; in fsverity_ioctl_measure() local
31 vi = fsverity_get_info(inode); in fsverity_ioctl_measure()
32 if (!vi) in fsverity_ioctl_measure()
34 hash_alg = vi->tree_params.hash_alg; in fsverity_ioctl_measure()
54 if (copy_to_user(uarg->digest, vi->file_digest, hash_alg->digest_size)) in fsverity_ioctl_measure()
87 const struct fsverity_info *vi; in fsverity_get_digest() local
90 vi = fsverity_get_info(inode); in fsverity_get_digest()
91 if (!vi) in fsverity_get_digest()
94 hash_alg = vi->tree_params.hash_alg; in fsverity_get_digest()
95 memcpy(raw_digest, vi->file_digest, hash_alg->digest_size); in fsverity_get_digest()
H A Dverify.c19 static bool is_hash_block_verified(struct fsverity_info *vi, struct page *hpage, in is_hash_block_verified() argument
35 if (!vi->hash_block_verified) in is_hash_block_verified()
59 return test_bit(hblock_idx, vi->hash_block_verified); in is_hash_block_verified()
61 spin_lock(&vi->hash_page_init_lock); in is_hash_block_verified()
63 verified = test_bit(hblock_idx, vi->hash_block_verified); in is_hash_block_verified()
65 blocks_per_page = vi->tree_params.blocks_per_page; in is_hash_block_verified()
68 clear_bit(hblock_idx + i, vi->hash_block_verified); in is_hash_block_verified()
77 spin_unlock(&vi->hash_page_init_lock); in is_hash_block_verified()
92 verify_data_block(struct inode *inode, struct fsverity_info *vi, in verify_data_block() argument
95 const struct merkle_tree_params *params = &vi->tree_params; in verify_data_block()
[all …]
/openbmc/linux/drivers/crypto/virtio/
H A Dvirtio_crypto_core.c99 static int virtcrypto_find_vqs(struct virtio_crypto *vi) in virtcrypto_find_vqs() argument
106 struct device *dev = &vi->vdev->dev; in virtcrypto_find_vqs()
113 total_vqs = vi->max_data_queues + 1; in virtcrypto_find_vqs()
131 for (i = 0; i < vi->max_data_queues; i++) { in virtcrypto_find_vqs()
133 snprintf(vi->data_vq[i].name, sizeof(vi->data_vq[i].name), in virtcrypto_find_vqs()
135 names[i] = vi->data_vq[i].name; in virtcrypto_find_vqs()
138 ret = virtio_find_vqs(vi->vdev, total_vqs, vqs, callbacks, names, NULL); in virtcrypto_find_vqs()
142 vi->ctrl_vq = vqs[total_vqs - 1]; in virtcrypto_find_vqs()
144 for (i = 0; i < vi->max_data_queues; i++) { in virtcrypto_find_vqs()
145 spin_lock_init(&vi->data_vq[i].lock); in virtcrypto_find_vqs()
[all …]
/openbmc/linux/drivers/media/pci/ivtv/
H A Divtv-vbi.c87 struct vbi_info *vi = &itv->vbi; in ivtv_write_vbi_line() local
106 if (memcmp(&vps, &vi->vps_payload, sizeof(vps))) { in ivtv_write_vbi_line()
107 vi->vps_payload = vps; in ivtv_write_vbi_line()
114 if (vi->wss_payload != wss) { in ivtv_write_vbi_line()
115 vi->wss_payload = wss; in ivtv_write_vbi_line()
123 struct vbi_info *vi = &itv->vbi; in ivtv_write_vbi_cc_lines() local
125 if (vi->cc_payload_idx < ARRAY_SIZE(vi->cc_payload)) { in ivtv_write_vbi_cc_lines()
126 memcpy(&vi->cc_payload[vi->cc_payload_idx], cc, in ivtv_write_vbi_cc_lines()
128 vi->cc_payload_idx++; in ivtv_write_vbi_cc_lines()
464 struct vbi_info *vi = &itv->vbi; in ivtv_vbi_work_handler() local
[all …]

12345678910>>...20