Home
last modified time | relevance | path

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

123456

/linux-6.12.1/drivers/virtio/
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 …]
/linux-6.12.1/drivers/char/hw_random/
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 …]
/linux-6.12.1/drivers/net/
Dvirtio_net.c509 static void virtnet_receive_done(struct virtnet_info *vi, struct receive_queue *rq,
619 static int vq_type(struct virtnet_info *vi, int qid) in vq_type() argument
621 if (qid == vi->max_queue_pairs * 2) in vq_type()
663 static void virtnet_rq_free_buf(struct virtnet_info *vi, in virtnet_rq_free_buf() argument
666 if (vi->mergeable_rx_bufs) in virtnet_rq_free_buf()
668 else if (vi->big_packets) in virtnet_rq_free_buf()
674 static void enable_delayed_refill(struct virtnet_info *vi) in enable_delayed_refill() argument
676 spin_lock_bh(&vi->refill_lock); in enable_delayed_refill()
677 vi->refill_enabled = true; in enable_delayed_refill()
678 spin_unlock_bh(&vi->refill_lock); in enable_delayed_refill()
[all …]
/linux-6.12.1/drivers/parisc/
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 …]
/linux-6.12.1/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-6.12.1/drivers/staging/media/tegra-video/
Dvi.c66 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()
96 return &vi->soc->video_formats[i]; in tegra_get_format_by_fourcc()
[all …]
/linux-6.12.1/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-6.12.1/fs/erofs/
Dzmap.c27 struct erofs_inode *const vi = EROFS_I(inode); in z_erofs_load_full_lcluster() local
29 vi->inode_isize + vi->xattr_isize) + in z_erofs_load_full_lcluster()
43 m->clusterofs = 1 << vi->z_logical_clusterbits; in z_erofs_load_full_lcluster()
46 if (!(vi->z_advise & (Z_EROFS_ADVISE_BIG_PCLUSTER_1 | in z_erofs_load_full_lcluster()
58 if (m->clusterofs >= 1 << vi->z_logical_clusterbits) { in z_erofs_load_full_lcluster()
104 struct erofs_inode *const vi = EROFS_I(m->inode); in unpack_compacted_index() local
105 const unsigned int lclusterbits = vi->z_logical_clusterbits; in unpack_compacted_index()
125 big_pcluster = vi->z_advise & Z_EROFS_ADVISE_BIG_PCLUSTER_1; in unpack_compacted_index()
214 struct erofs_inode *const vi = EROFS_I(inode); in z_erofs_load_compact_lcluster() local
216 ALIGN(erofs_iloc(inode) + vi->inode_isize + vi->xattr_isize, 8); in z_erofs_load_compact_lcluster()
[all …]
Dinode.c13 struct erofs_inode *vi = EROFS_I(inode); in erofs_fill_symlink() local
16 m_pofs += vi->xattr_isize; in erofs_fill_symlink()
18 if (vi->datalayout != EROFS_INODE_FLAT_INLINE || in erofs_fill_symlink()
31 struct erofs_inode *vi = EROFS_I(inode); in erofs_read_inode() local
48 vi->nid, PTR_ERR(kaddr)); in erofs_read_inode()
56 ifmt, vi->nid); in erofs_read_inode()
61 vi->datalayout = erofs_inode_datalayout(ifmt); in erofs_read_inode()
62 if (vi->datalayout >= EROFS_INODE_DATALAYOUT_MAX) { in erofs_read_inode()
64 vi->datalayout, vi->nid); in erofs_read_inode()
71 vi->inode_isize = sizeof(struct erofs_inode_extended); in erofs_read_inode()
[all …]
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 …]
Ddata.c82 struct erofs_inode *vi = EROFS_I(inode); in erofs_map_blocks_flatmode() local
84 bool tailendpacking = (vi->datalayout == EROFS_INODE_FLAT_INLINE); in erofs_map_blocks_flatmode()
89 map->m_pa = erofs_pos(sb, vi->raw_blkaddr) + map->m_la; in erofs_map_blocks_flatmode()
93 map->m_pa = erofs_iloc(inode) + vi->inode_isize + in erofs_map_blocks_flatmode()
94 vi->xattr_isize + erofs_blkoff(sb, map->m_la); in erofs_map_blocks_flatmode()
99 erofs_err(sb, "inline data across blocks @ nid %llu", vi->nid); in erofs_map_blocks_flatmode()
111 struct erofs_inode *vi = EROFS_I(inode); in erofs_map_blocks() local
129 if (vi->datalayout != EROFS_INODE_CHUNK_BASED) { in erofs_map_blocks()
134 if (vi->chunkformat & EROFS_CHUNK_FORMAT_INDEXES) in erofs_map_blocks()
139 chunknr = map->m_la >> vi->chunkbits; in erofs_map_blocks()
[all …]
/linux-6.12.1/drivers/mtd/ubi/
Dgluebi.c279 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()
324 g->mtd.index, vi->ubi_num, vi->vol_id); in gluebi_create()
[all …]
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
359 ret = calc_disk_capacity(vi, &disk_capacity); in ubiblock_create()
366 if (find_dev_nolock(vi->ubi_num, vi->vol_id)) { in ubiblock_create()
379 dev->ubi_num = vi->ubi_num; in ubiblock_create()
[all …]
Dnvmem.c61 static int ubi_nvmem_add(struct ubi_volume_info *vi) in ubi_nvmem_add() argument
63 struct device_node *np = dev_of_node(vi->dev); in ubi_nvmem_add()
74 if (WARN_ON_ONCE(vi->usable_leb_size <= 0) || in ubi_nvmem_add()
75 WARN_ON_ONCE(vi->size <= 0)) in ubi_nvmem_add()
83 config.dev = vi->dev; in ubi_nvmem_add()
84 config.name = dev_name(vi->dev); in ubi_nvmem_add()
88 config.size = vi->usable_leb_size * vi->size; in ubi_nvmem_add()
96 unv->ubi_num = vi->ubi_num; in ubi_nvmem_add()
97 unv->vol_id = vi->vol_id; in ubi_nvmem_add()
98 unv->usable_leb_size = vi->usable_leb_size; in ubi_nvmem_add()
[all …]
Dkapi.c68 struct ubi_volume_info *vi) in ubi_do_get_volume_info() argument
70 vi->vol_id = vol->vol_id; in ubi_do_get_volume_info()
71 vi->ubi_num = ubi->ubi_num; in ubi_do_get_volume_info()
72 vi->size = vol->reserved_pebs; in ubi_do_get_volume_info()
73 vi->used_bytes = vol->used_bytes; in ubi_do_get_volume_info()
74 vi->vol_type = vol->vol_type; in ubi_do_get_volume_info()
75 vi->corrupted = vol->corrupted; in ubi_do_get_volume_info()
76 vi->upd_marker = vol->upd_marker; in ubi_do_get_volume_info()
77 vi->alignment = vol->alignment; in ubi_do_get_volume_info()
78 vi->usable_leb_size = vol->usable_leb_size; in ubi_do_get_volume_info()
[all …]
/linux-6.12.1/fs/verity/
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 …]
Dmeasure.c29 const struct fsverity_info *vi; in fsverity_ioctl_measure() local
33 vi = fsverity_get_info(inode); in fsverity_ioctl_measure()
34 if (!vi) in fsverity_ioctl_measure()
36 hash_alg = vi->tree_params.hash_alg; in fsverity_ioctl_measure()
56 if (copy_to_user(uarg->digest, vi->file_digest, hash_alg->digest_size)) in fsverity_ioctl_measure()
89 const struct fsverity_info *vi; in fsverity_get_digest() local
92 vi = fsverity_get_info(inode); in fsverity_get_digest()
93 if (!vi) in fsverity_get_digest()
96 hash_alg = vi->tree_params.hash_alg; in fsverity_get_digest()
97 memcpy(raw_digest, vi->file_digest, hash_alg->digest_size); in fsverity_get_digest()
[all …]
Dverify.c19 static bool is_hash_block_verified(struct fsverity_info *vi, struct page *hpage, in is_hash_block_verified() argument
34 if (!vi->hash_block_verified) in is_hash_block_verified()
66 return test_bit(hblock_idx, vi->hash_block_verified); in is_hash_block_verified()
68 blocks_per_page = vi->tree_params.blocks_per_page; in is_hash_block_verified()
71 clear_bit(hblock_idx + i, vi->hash_block_verified); 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()
182 if (is_hash_block_verified(vi, hpage, hblock_idx)) { in verify_data_block()
196 want_hash = vi->root_hash; in verify_data_block()
214 if (vi->hash_block_verified) in verify_data_block()
[all …]
/linux-6.12.1/drivers/i2c/busses/
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 …]
/linux-6.12.1/drivers/crypto/virtio/
Dvirtio_crypto_core.c97 static int virtcrypto_find_vqs(struct virtio_crypto *vi) in virtcrypto_find_vqs() argument
103 struct device *dev = &vi->vdev->dev; in virtcrypto_find_vqs()
110 total_vqs = vi->max_data_queues + 1; in virtcrypto_find_vqs()
125 for (i = 0; i < vi->max_data_queues; i++) { in virtcrypto_find_vqs()
127 snprintf(vi->data_vq[i].name, sizeof(vi->data_vq[i].name), in virtcrypto_find_vqs()
129 vqs_info[i].name = vi->data_vq[i].name; in virtcrypto_find_vqs()
132 ret = virtio_find_vqs(vi->vdev, total_vqs, vqs, vqs_info, NULL); in virtcrypto_find_vqs()
136 vi->ctrl_vq = vqs[total_vqs - 1]; in virtcrypto_find_vqs()
138 for (i = 0; i < vi->max_data_queues; i++) { in virtcrypto_find_vqs()
139 spin_lock_init(&vi->data_vq[i].lock); in virtcrypto_find_vqs()
[all …]
/linux-6.12.1/drivers/media/pci/ivtv/
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 …]
/linux-6.12.1/arch/riscv/crypto/
Dsm3-riscv64-zvksh-zvkb.S63 vsm3c.vi STATE, \w0, \i + 0
64 vslidedown.vi VTMP, \w0, 2
65 vsm3c.vi STATE, VTMP, \i + 1
68 vslidedown.vi VTMP, \w0, 4
69 vslideup.vi VTMP, \w1, 4
72 vsm3c.vi STATE, VTMP, \i + 2
73 vslidedown.vi VTMP, VTMP, 2
74 vsm3c.vi STATE, VTMP, \i + 3
Dchacha-riscv64-zvkb.S87 vror.vi \d0, \d0, 32 - 16
88 vror.vi \d1, \d1, 32 - 16
89 vror.vi \d2, \d2, 32 - 16
90 vror.vi \d3, \d3, 32 - 16
101 vror.vi \b0, \b0, 32 - 12
102 vror.vi \b1, \b1, 32 - 12
103 vror.vi \b2, \b2, 32 - 12
104 vror.vi \b3, \b3, 32 - 12
115 vror.vi \d0, \d0, 32 - 8
116 vror.vi \d1, \d1, 32 - 8
[all …]
/linux-6.12.1/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-6.12.1/scripts/dtc/
Dflattree.c238 struct version_info *vi) in flatten_tree() argument
249 if (vi->flags & FTF_FULLPATH) in flatten_tree()
268 if ((vi->flags & FTF_VARALIGN) && (prop->val.len >= 8)) in flatten_tree()
275 if ((vi->flags & FTF_NAMEPROPS) && !seen_name_prop) { in flatten_tree()
280 if ((vi->flags & FTF_VARALIGN) && ((tree->basenamelen+1) >= 8)) in flatten_tree()
288 flatten_tree(child, emit, etarget, strbuf, vi); in flatten_tree()
295 struct version_info *vi) in flatten_reserve_list() argument
315 struct version_info *vi, in make_fdt_header() argument
326 fdt->version = cpu_to_fdt32(vi->version); in make_fdt_header()
327 fdt->last_comp_version = cpu_to_fdt32(vi->last_comp_version); in make_fdt_header()
[all …]

123456