| /linux/drivers/virtio/ |
| H A D | virtio_input.c | 27 static void virtinput_queue_evtbuf(struct virtio_input *vi, in virtinput_queue_evtbuf() argument 33 virtqueue_add_inbuf_cache_clean(vi->evt, sg, 1, evtbuf, GFP_ATOMIC); in virtinput_queue_evtbuf() 38 struct virtio_input *vi = vq->vdev->priv; in virtinput_recv_events() local 43 spin_lock_irqsave(&vi->lock, flags); in virtinput_recv_events() 44 if (vi->ready) { in virtinput_recv_events() 45 while ((event = virtqueue_get_buf(vi->evt, &len)) != NULL) { in virtinput_recv_events() 46 spin_unlock_irqrestore(&vi->lock, flags); in virtinput_recv_events() 47 input_event(vi->idev, in virtinput_recv_events() 51 spin_lock_irqsave(&vi->lock, flags); in virtinput_recv_events() 52 virtinput_queue_evtbuf(vi, event); in virtinput_recv_events() [all …]
|
| /linux/drivers/char/hw_random/ |
| H A D | virtio-rng.c | 43 struct virtrng_info *vi = vq->vdev->priv; in random_recv_done() local 47 if (!virtqueue_get_buf(vi->vq, &len)) in random_recv_done() 50 smp_store_release(&vi->data_avail, len); in random_recv_done() 51 complete(&vi->have_data); in random_recv_done() 54 static void request_entropy(struct virtrng_info *vi) in request_entropy() argument 58 reinit_completion(&vi->have_data); in request_entropy() 59 vi->data_idx = 0; in request_entropy() 61 sg_init_one(&sg, vi->data, sizeof(vi->data)); in request_entropy() 64 virtqueue_add_inbuf(vi->vq, &sg, 1, vi->data, GFP_KERNEL); in request_entropy() 66 virtqueue_kick(vi->vq); in request_entropy() [all …]
|
| /linux/drivers/net/ |
| H A D | virtio_net.c | 512 static void virtnet_receive_done(struct virtnet_info *vi, struct receive_queue *rq, 520 static void free_unused_bufs(struct virtnet_info *vi); 521 static void virtnet_del_vqs(struct virtnet_info *vi); 530 static size_t virtnet_rss_hdr_size(const struct virtnet_info *vi) in virtnet_rss_hdr_size() argument 532 u16 indir_table_size = vi->has_rss ? vi->rss_indir_table_size : 1; in virtnet_rss_hdr_size() 534 return struct_size(vi->rss_hdr, indirection_table, indir_table_size); in virtnet_rss_hdr_size() 537 static size_t virtnet_rss_trailer_size(const struct virtnet_info *vi) in virtnet_rss_trailer_size() argument 539 return struct_size(&vi->rss_trailer, hash_key_data, vi->rss_key_size); in virtnet_rss_trailer_size() 658 static int vq_type(struct virtnet_info *vi, int qid) in vq_type() argument 660 if (qid == vi->max_queue_pairs * 2) in vq_type() [all …]
|
| /linux/fs/erofs/ |
| H A D | zmap.c | 26 struct erofs_inode *const vi = EROFS_I(inode); in z_erofs_load_full_lcluster() local 28 vi->inode_isize + vi->xattr_isize) + in z_erofs_load_full_lcluster() 42 m->clusterofs = 1 << vi->z_lclusterbits; in z_erofs_load_full_lcluster() 45 if (!(vi->z_advise & (Z_EROFS_ADVISE_BIG_PCLUSTER_1 | in z_erofs_load_full_lcluster() 99 struct erofs_inode *const vi = EROFS_I(inode); in z_erofs_load_compact_lcluster() local 101 vi->inode_isize + vi->xattr_isize); in z_erofs_load_compact_lcluster() 102 const unsigned int lclusterbits = vi->z_lclusterbits; in z_erofs_load_compact_lcluster() 106 bool big_pcluster = vi->z_advise & Z_EROFS_ADVISE_BIG_PCLUSTER_1; in z_erofs_load_compact_lcluster() 118 if ((vi->z_advise & Z_EROFS_ADVISE_COMPACTED_2B) && in z_erofs_load_compact_lcluster() 238 struct erofs_inode *vi = EROFS_I(m->inode); in z_erofs_load_lcluster_from_disk() local [all …]
|
| H A D | inode.c | 13 struct erofs_inode *vi = EROFS_I(inode); in erofs_fill_symlink() local 17 ofs += vi->xattr_isize; in erofs_fill_symlink() 19 if (vi->datalayout == EROFS_INODE_FLAT_INLINE && in erofs_fill_symlink() 27 inode->i_size | 0ULL, vi->nid); in erofs_fill_symlink() 45 struct erofs_inode *vi = EROFS_I(inode); in erofs_read_inode() local 56 vi->nid, err); in erofs_read_inode() 64 ifmt, vi->nid); in erofs_read_inode() 69 vi->datalayout = erofs_inode_datalayout(ifmt); in erofs_read_inode() 70 if (vi->datalayout >= EROFS_INODE_DATALAYOUT_MAX) { in erofs_read_inode() 72 vi->datalayout, vi->nid); in erofs_read_inode() [all …]
|
| H A D | ishare.c | 32 struct erofs_inode *vi = EROFS_I(inode); in erofs_ishare_iget5_set() local 34 vi->fingerprint = *(struct erofs_inode_fingerprint *)data; in erofs_ishare_iget5_set() 35 INIT_LIST_HEAD(&vi->ishare_list); in erofs_ishare_iget5_set() 36 spin_lock_init(&vi->ishare_lock); in erofs_ishare_iget5_set() 43 struct erofs_inode *vi = EROFS_I(inode); in erofs_ishare_fill_inode() local 65 sharedinode->i_size = vi->vfs_inode.i_size; in erofs_ishare_fill_inode() 73 if (sharedinode->i_size != vi->vfs_inode.i_size) { in erofs_ishare_fill_inode() 76 vi->vfs_inode.i_size, sharedinode->i_size); in erofs_ishare_fill_inode() 81 vi->sharedinode = sharedinode; in erofs_ishare_fill_inode() 82 INIT_LIST_HEAD(&vi->ishare_list); in erofs_ishare_fill_inode() [all …]
|
| H A D | xattr.c | 33 struct erofs_inode *vi = EROFS_I(inode); in erofs_init_inode_xattrs() local 41 if (!vi->xattr_isize) in erofs_init_inode_xattrs() 45 if (test_bit(EROFS_I_EA_INITED_BIT, &vi->flags)) { in erofs_init_inode_xattrs() 53 if (wait_on_bit_lock(&vi->flags, EROFS_I_BL_XATTR_BIT, TASK_KILLABLE)) in erofs_init_inode_xattrs() 57 if (test_bit(EROFS_I_EA_INITED_BIT, &vi->flags)) in erofs_init_inode_xattrs() 68 if (vi->xattr_isize == sizeof(struct erofs_xattr_ibody_header)) { in erofs_init_inode_xattrs() 70 vi->xattr_isize, vi->nid); in erofs_init_inode_xattrs() 73 } else if (vi->xattr_isize < sizeof(struct erofs_xattr_ibody_header)) { in erofs_init_inode_xattrs() 74 erofs_err(sb, "bogus xattr ibody @ nid %llu", vi->nid); in erofs_init_inode_xattrs() 80 pos = erofs_iloc(inode) + vi->inode_isize; in erofs_init_inode_xattrs() [all …]
|
| /linux/fs/ntfs/ |
| H A D | file.c | 30 * @vi: inode to be opened 46 static int ntfs_file_open(struct inode *vi, struct file *filp) in ntfs_file_open() argument 48 struct ntfs_inode *ni = NTFS_I(vi); in ntfs_file_open() 54 if (i_size_read(vi) > MAX_LFS_FILESIZE) in ntfs_file_open() 60 return generic_file_open(vi, filp); in ntfs_file_open() 77 static int ntfs_trim_prealloc(struct inode *vi) in ntfs_trim_prealloc() argument 79 struct ntfs_inode *ni = NTFS_I(vi); in ntfs_trim_prealloc() 87 inode_lock(vi); in ntfs_trim_prealloc() 123 inode_unlock(vi); in ntfs_trim_prealloc() 128 static int ntfs_file_release(struct inode *vi, struct file *filp) in ntfs_file_release() argument [all …]
|
| H A D | inode.c | 25 * @vi: vfs inode which to test 29 * inode @vi for equality with the ntfs attribute @data. 39 int ntfs_test_inode(struct inode *vi, void *data) in ntfs_test_inode() argument 42 struct ntfs_inode *ni = NTFS_I(vi); in ntfs_test_inode() 44 if (vi->i_ino != na->mft_no) in ntfs_test_inode() 47 /* If !NInoAttr(ni), @vi is a normal file or directory inode. */ in ntfs_test_inode() 71 * @vi: vfs inode to initialize 72 * @data: data which to initialize @vi to 74 * Initialize the vfs inode @vi with the values from the ntfs attribute @data in 87 static int ntfs_init_locked_inode(struct inode *vi, void *data) in ntfs_init_locked_inode() argument [all …]
|
| H A D | namei.c | 406 struct inode *vi; in __ntfs_create() local 413 vi = new_inode(vol->sb); in __ntfs_create() 414 if (!vi) in __ntfs_create() 417 ntfs_init_big_inode(vi); in __ntfs_create() 418 ni = NTFS_I(vi); in __ntfs_create() 447 if (IS_RDONLY(vi)) in __ntfs_create() 450 inode_init_owner(idmap, vi, dir, mode); in __ntfs_create() 452 mode = vi->i_mode; in __ntfs_create() 456 err = ntfs_init_acl(idmap, vi, dir); in __ntfs_create() 462 vi->i_flags |= S_NOSEC; in __ntfs_create() [all …]
|
| H A D | reparse.c | 178 struct inode *vi; in ntfs_reparse_tag_dt_types() local 180 vi = ntfs_iget(vol->sb, mref); in ntfs_reparse_tag_dt_types() 181 if (IS_ERR(vi)) in ntfs_reparse_tag_dt_types() 182 return PTR_ERR(vi); in ntfs_reparse_tag_dt_types() 184 reparse_attr = (struct reparse_point *)ntfs_attr_readall(NTFS_I(vi), in ntfs_reparse_tag_dt_types() 210 iput(vi); in ntfs_reparse_tag_dt_types() 226 indx.header.data.vi.data_offset = in set_reparse_index() 228 indx.header.data.vi.data_length = 0; in set_reparse_index() 229 indx.header.data.vi.reservedV = 0; in set_reparse_index() 287 struct inode *vi, *dir_vi; in open_reparse_index() local [all …]
|
| H A D | logfile.c | 16 * @vi: LogFile inode to which the restart page header belongs 18 * @pos: position in @vi at which the restart page header resides 26 static bool ntfs_check_restart_page_header(struct inode *vi, in ntfs_check_restart_page_header() argument 45 ntfs_error(vi->i_sb, "LogFile uses unsupported page size."); in ntfs_check_restart_page_header() 53 ntfs_error(vi->i_sb, "Found restart area in incorrect position in LogFile."); in ntfs_check_restart_page_header() 59 ntfs_error(vi->i_sb, in ntfs_check_restart_page_header() 76 ntfs_error(vi->i_sb, in ntfs_check_restart_page_header() 85 ntfs_error(vi->i_sb, in ntfs_check_restart_page_header() 100 ntfs_error(vi->i_sb, in ntfs_check_restart_page_header() 109 ntfs_error(vi->i_sb, in ntfs_check_restart_page_header() [all …]
|
| H A D | bitmap.c | 106 * @vi: vfs inode describing the bitmap 113 * vfs inode @vi to @value, where @value is either 0 or 1. 120 int __ntfs_bitmap_set_bits_in_run(struct inode *vi, const s64 start_bit, in __ntfs_bitmap_set_bits_in_run() argument 130 struct ntfs_inode *ni = NTFS_I(vi); in __ntfs_bitmap_set_bits_in_run() 149 mapping = vi->i_mapping; in __ntfs_bitmap_set_bits_in_run() 153 ntfs_error(vi->i_sb, in __ntfs_bitmap_set_bits_in_run() 216 ntfs_error(vi->i_sb, in __ntfs_bitmap_set_bits_in_run() 273 pos = __ntfs_bitmap_set_bits_in_run(vi, start_bit, count - cnt, in __ntfs_bitmap_set_bits_in_run() 279 ntfs_error(vi->i_sb, in __ntfs_bitmap_set_bits_in_run() 284 ntfs_error(vi->i_sb, in __ntfs_bitmap_set_bits_in_run() [all …]
|
| /linux/drivers/parisc/ |
| H A D | iosapic.c | 517 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/drivers/mtd/ubi/ |
| H A D | gluebi.c | 272 * @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 D | nvmem.c | 61 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 …]
|
| H A D | block.c | 328 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 …]
|
| H A D | kapi.c | 65 * @vi: the information is stored here 68 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() [all …]
|
| /linux/drivers/i2c/busses/ |
| H A D | i2c-virtio.c | 137 struct virtio_i2c *vi = i2c_get_adapdata(adap); in virtio_i2c_xfer() local 138 struct virtqueue *vq = vi->vq; in virtio_i2c_xfer() 173 static int virtio_i2c_setup_vqs(struct virtio_i2c *vi) in virtio_i2c_setup_vqs() argument 175 struct virtio_device *vdev = vi->vdev; in virtio_i2c_setup_vqs() 177 vi->vq = virtio_find_single_vq(vdev, virtio_i2c_msg_done, "msg"); in virtio_i2c_setup_vqs() 178 return PTR_ERR_OR_ZERO(vi->vq); in virtio_i2c_setup_vqs() 193 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/fs/verity/ |
| H A D | verify.c | 22 struct fsverity_info *vi; member 40 * @vi: fsverity_info for the inode to be read 51 void fsverity_readahead(struct fsverity_info *vi, pgoff_t index, in fsverity_readahead() argument 54 struct inode *inode = vi->inode; in fsverity_readahead() 55 const struct merkle_tree_params *params = &vi->tree_params; in fsverity_readahead() 86 static bool is_hash_block_verified(struct fsverity_info *vi, struct page *hpage, in is_hash_block_verified() argument 101 if (!vi->hash_block_verified) in is_hash_block_verified() 133 return test_bit(hblock_idx, vi->hash_block_verified); in is_hash_block_verified() 135 blocks_per_page = vi->tree_params.blocks_per_page; in is_hash_block_verified() 138 clear_bit(hblock_idx + i, vi->hash_block_verified); in is_hash_block_verified() [all …]
|
| /linux/lib/raid6/ |
| H A D | rvv.c | 62 "vsra.vi v2, v1, 7\n" in raid6_rvv1_gen_syndrome_real() 63 "vsll.vi v3, v1, 1\n" in raid6_rvv1_gen_syndrome_real() 138 "vsra.vi v2, v1, 7\n" in raid6_rvv1_xor_syndrome_real() 139 "vsll.vi v3, v1, 1\n" in raid6_rvv1_xor_syndrome_real() 162 "vsra.vi v2, v1, 7\n" in raid6_rvv1_xor_syndrome_real() 163 "vsll.vi v3, v1, 1\n" in raid6_rvv1_xor_syndrome_real() 243 "vsra.vi v2, v1, 7\n" in raid6_rvv2_gen_syndrome_real() 244 "vsll.vi v3, v1, 1\n" in raid6_rvv2_gen_syndrome_real() 251 "vsra.vi v6, v5, 7\n" in raid6_rvv2_gen_syndrome_real() 252 "vsll.vi v7, v5, 1\n" in raid6_rvv2_gen_syndrome_real() [all …]
|
| /linux/lib/crypto/riscv/ |
| H A D | chacha-riscv64-zvkb.S | 88 vror.vi \d0, \d0, 32 - 16 89 vror.vi \d1, \d1, 32 - 16 90 vror.vi \d2, \d2, 32 - 16 91 vror.vi \d3, \d3, 32 - 16 102 vror.vi \b0, \b0, 32 - 12 103 vror.vi \b1, \b1, 32 - 12 104 vror.vi \b2, \b2, 32 - 12 105 vror.vi \b3, \b3, 32 - 12 116 vror.vi \d0, \d0, 32 - 8 117 vror.vi \d1, \d1, 32 - 8 [all …]
|
| /linux/fs/ubifs/ |
| H A D | misc.c | 17 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/drivers/staging/media/tegra-video/ |
| H A D | tegra210.c | 8 * VI and CSI SoC specific data, operations and registers accessors. 18 #include "vi.h" 29 /* Tegra210 VI registers */ 40 /* Tegra210 VI CSI registers */ 146 /* Tegra210 VI registers accessors */ 150 writel_relaxed(val, chan->vi->iomem + addr); in tegra_vi_write() 155 return readl_relaxed(chan->vi->iomem + addr); in tegra_vi_read() 164 vi_csi_base = chan->vi->iomem + TEGRA210_VI_CSI_BASE(portno); in vi_csi_write() 174 vi_csi_base = chan->vi->iomem + TEGRA210_VI_CSI_BASE(portno); in vi_csi_read() 180 * Tegra210 VI channel capture operations [all …]
|
| /linux/include/linux/ |
| H A D | fsverity.h | 198 void fsverity_readahead(struct fsverity_info *vi, pgoff_t index, 200 bool fsverity_verify_blocks(struct fsverity_info *vi, struct folio *folio, 202 void fsverity_verify_bio(struct fsverity_info *vi, struct bio *bio); 260 static inline void fsverity_readahead(struct fsverity_info *vi, pgoff_t index, in fsverity_readahead() argument 265 static inline bool fsverity_verify_blocks(struct fsverity_info *vi, in fsverity_verify_blocks() argument 273 static inline void fsverity_verify_bio(struct fsverity_info *vi, in fsverity_verify_bio() argument 286 static inline bool fsverity_verify_folio(struct fsverity_info *vi, in fsverity_verify_folio() argument 289 return fsverity_verify_blocks(vi, folio, folio_size(folio), 0); in fsverity_verify_folio()
|