Home
last modified time | relevance | path

Searched refs:iomap (Results 1 – 25 of 106) sorted by relevance

12345

/kernel/linux/linux-5.10/fs/iomap/
Dswapfile.c15 struct iomap iomap; /* accumulated iomap */ member
31 struct iomap *iomap = &isi->iomap; in iomap_swapfile_add_extent() local
47 first_ppage = ALIGN(iomap->addr, PAGE_SIZE) >> PAGE_SHIFT; in iomap_swapfile_add_extent()
48 next_ppage = ALIGN_DOWN(iomap->addr + iomap->length, PAGE_SIZE) >> in iomap_swapfile_add_extent()
63 if (iomap->offset == 0) in iomap_swapfile_add_extent()
85 loff_t count, void *data, struct iomap *iomap, in iomap_swapfile_activate_actor() argument
86 struct iomap *srcmap) in iomap_swapfile_activate_actor()
91 switch (iomap->type) { in iomap_swapfile_activate_actor()
106 if (iomap->flags & IOMAP_F_DIRTY) { in iomap_swapfile_activate_actor()
110 if (iomap->flags & IOMAP_F_SHARED) { in iomap_swapfile_activate_actor()
[all …]
Dfiemap.c13 struct iomap prev;
17 struct iomap *iomap, u32 flags) in iomap_to_fiemap() argument
19 switch (iomap->type) { in iomap_to_fiemap()
36 if (iomap->flags & IOMAP_F_MERGED) in iomap_to_fiemap()
38 if (iomap->flags & IOMAP_F_SHARED) in iomap_to_fiemap()
41 return fiemap_fill_next_extent(fi, iomap->offset, in iomap_to_fiemap()
42 iomap->addr != IOMAP_NULL_ADDR ? iomap->addr : 0, in iomap_to_fiemap()
43 iomap->length, flags); in iomap_to_fiemap()
48 struct iomap *iomap, struct iomap *srcmap) in iomap_fiemap_actor() argument
53 if (iomap->type == IOMAP_HOLE) in iomap_fiemap_actor()
[all …]
Dapply.c27 struct iomap iomap = { .type = IOMAP_HOLE }; in iomap_apply() local
28 struct iomap srcmap = { .type = IOMAP_HOLE }; in iomap_apply()
46 ret = ops->iomap_begin(inode, pos, length, flags, &iomap, &srcmap); in iomap_apply()
49 if (WARN_ON(iomap.offset > pos)) { in iomap_apply()
53 if (WARN_ON(iomap.length == 0)) { in iomap_apply()
58 trace_iomap_apply_dstmap(inode, &iomap); in iomap_apply()
66 end = iomap.offset + iomap.length; in iomap_apply()
84 written = actor(inode, pos, length, data, &iomap, in iomap_apply()
85 srcmap.type != IOMAP_HOLE ? &srcmap : &iomap); in iomap_apply()
95 flags, &iomap); in iomap_apply()
Ddirect-io.c62 static void iomap_dio_submit_bio(struct iomap_dio *dio, struct iomap *iomap, in iomap_dio_submit_bio() argument
70 dio->submit.last_queue = bdev_get_queue(iomap->bdev); in iomap_dio_submit_bio()
74 iomap, bio, pos); in iomap_dio_submit_bio()
185 iomap_dio_zero(struct iomap_dio *dio, struct iomap *iomap, loff_t pos, in iomap_dio_zero() argument
193 bio_set_dev(bio, iomap->bdev); in iomap_dio_zero()
194 bio->bi_iter.bi_sector = iomap_sector(iomap, pos); in iomap_dio_zero()
201 iomap_dio_submit_bio(dio, iomap, bio, pos); in iomap_dio_zero()
206 struct iomap_dio *dio, struct iomap *iomap) in iomap_dio_bio_actor() argument
208 unsigned int blkbits = blksize_bits(bdev_logical_block_size(iomap->bdev)); in iomap_dio_bio_actor()
221 if (iomap->type == IOMAP_UNWRITTEN) { in iomap_dio_bio_actor()
[all …]
Dbuffered-io.c210 struct iomap *iomap) in iomap_read_inline_data() argument
219 BUG_ON(size > PAGE_SIZE - offset_in_page(iomap->inline_data)); in iomap_read_inline_data()
222 memcpy(addr, iomap->inline_data, size); in iomap_read_inline_data()
229 struct iomap *iomap, loff_t pos) in iomap_block_needs_zeroing() argument
231 return iomap->type != IOMAP_MAPPED || in iomap_block_needs_zeroing()
232 (iomap->flags & IOMAP_F_NEW) || in iomap_block_needs_zeroing()
238 struct iomap *iomap, struct iomap *srcmap) in iomap_readpage_actor() argument
248 if (iomap->type == IOMAP_INLINE) { in iomap_readpage_actor()
250 iomap_read_inline_data(inode, page, iomap); in iomap_readpage_actor()
259 if (iomap_block_needs_zeroing(inode, iomap, pos)) { in iomap_readpage_actor()
[all …]
Dtrace.h9 #define TRACE_SYSTEM iomap
103 TP_PROTO(struct inode *inode, struct iomap *iomap),
104 TP_ARGS(inode, iomap),
118 __entry->addr = iomap->addr;
119 __entry->offset = iomap->offset;
120 __entry->length = iomap->length;
121 __entry->type = iomap->type;
122 __entry->flags = iomap->flags;
123 __entry->bdev = iomap->bdev ? iomap->bdev->bd_dev : 0;
139 TP_PROTO(struct inode *inode, struct iomap *iomap), \
[all …]
Dseek.c122 void *data, struct iomap *iomap, struct iomap *srcmap) in iomap_seek_hole_actor() argument
124 switch (iomap->type) { in iomap_seek_hole_actor()
165 void *data, struct iomap *iomap, struct iomap *srcmap) in iomap_seek_data_actor() argument
167 switch (iomap->type) { in iomap_seek_data_actor()
DMakefile9 obj-$(CONFIG_FS_IOMAP) += iomap.o
11 iomap-y += trace.o \
17 iomap-$(CONFIG_SWAP) += swapfile.o
/kernel/linux/linux-5.10/include/linux/
Dio-mapping.h42 io_mapping_init_wc(struct io_mapping *iomap, in io_mapping_init_wc() argument
51 iomap->base = base; in io_mapping_init_wc()
52 iomap->size = size; in io_mapping_init_wc()
53 iomap->prot = prot; in io_mapping_init_wc()
54 return iomap; in io_mapping_init_wc()
106 io_mapping_init_wc(struct io_mapping *iomap, in io_mapping_init_wc() argument
110 iomap->iomem = ioremap_wc(base, size); in io_mapping_init_wc()
111 if (!iomap->iomem) in io_mapping_init_wc()
114 iomap->base = base; in io_mapping_init_wc()
115 iomap->size = size; in io_mapping_init_wc()
[all …]
Diomap.h80 struct iomap { struct
94 iomap_sector(struct iomap *iomap, loff_t pos) in iomap_sector() argument
96 return (iomap->addr + pos - iomap->offset) >> SECTOR_SHIFT; in iomap_sector()
111 struct iomap *iomap);
113 struct page *page, struct iomap *iomap);
133 unsigned flags, struct iomap *iomap,
134 struct iomap *srcmap);
143 ssize_t written, unsigned flags, struct iomap *iomap);
150 void *data, struct iomap *iomap, struct iomap *srcmap);
228 struct iomap iomap; member
[all …]
Dexportfs.h10 struct iomap;
212 u64 len, struct iomap *iomap,
214 int (*commit_blocks)(struct inode *inode, struct iomap *iomaps,
/kernel/linux/linux-5.10/drivers/ata/
Dpata_cs5520.c119 void __iomem *iomap[5]; in cs5520_init_one() local
164 iomap[0] = devm_ioport_map(&pdev->dev, cmd_port[0], 8); in cs5520_init_one()
165 iomap[1] = devm_ioport_map(&pdev->dev, ctl_port[0], 1); in cs5520_init_one()
166 iomap[2] = devm_ioport_map(&pdev->dev, cmd_port[1], 8); in cs5520_init_one()
167 iomap[3] = devm_ioport_map(&pdev->dev, ctl_port[1], 1); in cs5520_init_one()
168 iomap[4] = pcim_iomap(pdev, 2, 0); in cs5520_init_one()
170 if (!iomap[0] || !iomap[1] || !iomap[2] || !iomap[3] || !iomap[4]) in cs5520_init_one()
174 ioaddr->cmd_addr = iomap[0]; in cs5520_init_one()
175 ioaddr->ctl_addr = iomap[1]; in cs5520_init_one()
176 ioaddr->altstatus_addr = iomap[1]; in cs5520_init_one()
[all …]
Dsata_uli.c135 void __iomem * const *iomap; in uli_init_one() local
166 iomap = host->iomap; in uli_init_one()
177 ioaddr->cmd_addr = iomap[0] + 8; in uli_init_one()
180 ((unsigned long)iomap[1] | ATA_PCI_CTL_OFS) + 4; in uli_init_one()
181 ioaddr->bmdma_addr = iomap[4] + 16; in uli_init_one()
192 ioaddr->cmd_addr = iomap[2] + 8; in uli_init_one()
195 ((unsigned long)iomap[3] | ATA_PCI_CTL_OFS) + 4; in uli_init_one()
196 ioaddr->bmdma_addr = iomap[4] + 24; in uli_init_one()
Dsata_sx4.c442 void __iomem *mmio = ap->host->iomap[PDC_MMIO_BAR]; in pdc20621_dma_prep()
443 void __iomem *dimm_mmio = ap->host->iomap[PDC_DIMM_BAR]; in pdc20621_dma_prep()
502 void __iomem *mmio = ap->host->iomap[PDC_MMIO_BAR]; in pdc20621_nodata_prep()
503 void __iomem *dimm_mmio = ap->host->iomap[PDC_DIMM_BAR]; in pdc20621_nodata_prep()
555 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in __pdc20621_push_hdma()
609 void __iomem *dimm_mmio = ap->host->iomap[PDC_DIMM_BAR]; in pdc20621_dump_hdma()
628 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_packet_start()
786 if (!host || !host->iomap[PDC_MMIO_BAR]) { in pdc20621_interrupt()
791 mmio_base = host->iomap[PDC_MMIO_BAR]; in pdc20621_interrupt()
990 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_get_from_dimm()
[all …]
Dsata_vsc.c108 mask_addr = ap->host->iomap[VSC_MMIO_BAR] + in vsc_freeze()
119 mask_addr = ap->host->iomap[VSC_MMIO_BAR] + in vsc_thaw()
131 mask_addr = ap->host->iomap[VSC_MMIO_BAR] + in vsc_intr_mask_update()
255 status = readl(host->iomap[VSC_MMIO_BAR] + VSC_SATA_INT_STAT_OFFSET); in vsc_sata_interrupt()
357 host->iomap = pcim_iomap_table(pdev); in vsc_sata_init_one()
359 mmio_base = host->iomap[VSC_MMIO_BAR]; in vsc_sata_init_one()
/kernel/linux/linux-5.10/fs/xfs/
Dxfs_iomap.c55 struct iomap *iomap, in xfs_bmbt_to_iomap() argument
66 iomap->addr = IOMAP_NULL_ADDR; in xfs_bmbt_to_iomap()
67 iomap->type = IOMAP_HOLE; in xfs_bmbt_to_iomap()
70 iomap->addr = IOMAP_NULL_ADDR; in xfs_bmbt_to_iomap()
71 iomap->type = IOMAP_DELALLOC; in xfs_bmbt_to_iomap()
73 iomap->addr = BBTOB(xfs_fsb_to_db(ip, imap->br_startblock)); in xfs_bmbt_to_iomap()
75 iomap->type = IOMAP_UNWRITTEN; in xfs_bmbt_to_iomap()
77 iomap->type = IOMAP_MAPPED; in xfs_bmbt_to_iomap()
79 iomap->offset = XFS_FSB_TO_B(mp, imap->br_startoff); in xfs_bmbt_to_iomap()
80 iomap->length = XFS_FSB_TO_B(mp, imap->br_blockcount); in xfs_bmbt_to_iomap()
[all …]
Dxfs_aops.c251 if (offset < wpc->iomap.offset || in xfs_imap_valid()
252 offset >= wpc->iomap.offset + wpc->iomap.length) in xfs_imap_valid()
259 if (wpc->iomap.flags & IOMAP_F_SHARED) in xfs_imap_valid()
308 &wpc->iomap, seq); in xfs_convert_blocks()
311 } while (wpc->iomap.offset + wpc->iomap.length <= offset); in xfs_convert_blocks()
425 xfs_bmbt_to_iomap(ip, &wpc->iomap, &imap, 0); in xfs_map_blocks()
452 if (cow_offset < wpc->iomap.offset + wpc->iomap.length) in xfs_map_blocks()
453 wpc->iomap.length = cow_offset - wpc->iomap.offset; in xfs_map_blocks()
456 ASSERT(wpc->iomap.offset <= offset); in xfs_map_blocks()
457 ASSERT(wpc->iomap.offset + wpc->iomap.length > offset); in xfs_map_blocks()
Dxfs_pnfs.h8 struct iomap *iomap, bool write, u32 *device_generation);
9 int xfs_fs_commit_blocks(struct inode *inode, struct iomap *maps, int nr_maps,
/kernel/linux/linux-5.10/fs/gfs2/
Dbmap.c583 struct metapath *mp, struct iomap *iomap) in gfs2_hole_size() argument
598 iomap->length = hole_size << inode->i_blkbits; in gfs2_hole_size()
660 static int gfs2_iomap_alloc(struct inode *inode, struct iomap *iomap, in gfs2_iomap_alloc() argument
668 size_t dblks = iomap->length >> inode->i_blkbits; in gfs2_iomap_alloc()
764 iomap->addr = bn << inode->i_blkbits; in gfs2_iomap_alloc()
765 iomap->flags |= IOMAP_F_MERGED | IOMAP_F_NEW; in gfs2_iomap_alloc()
770 } while (iomap->addr == IOMAP_NULL_ADDR); in gfs2_iomap_alloc()
772 iomap->type = IOMAP_MAPPED; in gfs2_iomap_alloc()
773 iomap->length = (u64)dblks << inode->i_blkbits; in gfs2_iomap_alloc()
840 unsigned flags, struct iomap *iomap, in gfs2_iomap_get() argument
[all …]
/kernel/linux/linux-5.10/fs/
Ddax.c1009 static sector_t dax_iomap_sector(struct iomap *iomap, loff_t pos) in dax_iomap_sector() argument
1011 return (iomap->addr + (pos & PAGE_MASK) - iomap->offset) >> 9; in dax_iomap_sector()
1014 static int dax_iomap_pfn(struct iomap *iomap, loff_t pos, size_t size, in dax_iomap_pfn() argument
1017 const sector_t sector = dax_iomap_sector(iomap, pos); in dax_iomap_pfn()
1022 rc = bdev_dax_pgoff(iomap->bdev, sector, size, &pgoff); in dax_iomap_pfn()
1026 length = dax_direct_access(iomap->dax_dev, pgoff, PHYS_PFN(size), in dax_iomap_pfn()
1070 s64 dax_iomap_zero(loff_t pos, u64 length, struct iomap *iomap) in dax_iomap_zero() argument
1072 sector_t sector = iomap_sector(iomap, pos & PAGE_MASK); in dax_iomap_zero()
1084 rc = bdev_dax_pgoff(iomap->bdev, sector, PAGE_SIZE, &pgoff); in dax_iomap_zero()
1091 rc = dax_zero_page_range(iomap->dax_dev, pgoff, 1); in dax_iomap_zero()
[all …]
/kernel/linux/linux-5.10/fs/nfsd/
Dblocklayout.c31 struct iomap iomap; in nfsd4_block_proc_layoutget() local
51 &iomap, seg->iomode != IOMODE_READ, in nfsd4_block_proc_layoutget()
59 if (iomap.length < args->lg_minlength) { in nfsd4_block_proc_layoutget()
64 switch (iomap.type) { in nfsd4_block_proc_layoutget()
70 bex->soff = iomap.addr; in nfsd4_block_proc_layoutget()
83 bex->soff = iomap.addr; in nfsd4_block_proc_layoutget()
95 WARN(1, "pnfsd: filesystem returned %d extent\n", iomap.type); in nfsd4_block_proc_layoutget()
102 bex->foff = iomap.offset; in nfsd4_block_proc_layoutget()
103 bex->len = iomap.length; in nfsd4_block_proc_layoutget()
105 seg->offset = iomap.offset; in nfsd4_block_proc_layoutget()
[all …]
Dblocklayoutxdr.h8 struct iomap;
57 int nfsd4_block_decode_layoutupdate(__be32 *p, u32 len, struct iomap **iomapp,
59 int nfsd4_scsi_decode_layoutupdate(__be32 *p, u32 len, struct iomap **iomapp,
/kernel/linux/linux-5.10/fs/fuse/
Ddax.c387 static void fuse_fill_iomap_hole(struct iomap *iomap, loff_t length) in fuse_fill_iomap_hole() argument
389 iomap->addr = IOMAP_NULL_ADDR; in fuse_fill_iomap_hole()
390 iomap->length = length; in fuse_fill_iomap_hole()
391 iomap->type = IOMAP_HOLE; in fuse_fill_iomap_hole()
395 struct iomap *iomap, struct fuse_dax_mapping *dmap, in fuse_fill_iomap() argument
409 iomap->addr = dmap->window_offset + offset; in fuse_fill_iomap()
410 iomap->length = len; in fuse_fill_iomap()
412 iomap->length = ALIGN(len, PAGE_SIZE); in fuse_fill_iomap()
413 iomap->type = IOMAP_MAPPED; in fuse_fill_iomap()
422 WARN_ON_ONCE(iomap->private); in fuse_fill_iomap()
[all …]
/kernel/linux/linux-5.10/lib/
Ddevres.c413 void __iomem * const *iomap; in pcim_iomap_regions() local
416 iomap = pcim_iomap_table(pdev); in pcim_iomap_regions()
417 if (!iomap) in pcim_iomap_regions()
448 pcim_iounmap(pdev, iomap[i]); in pcim_iomap_regions()
490 void __iomem * const *iomap; in pcim_iounmap_regions() local
493 iomap = pcim_iomap_table(pdev); in pcim_iounmap_regions()
494 if (!iomap) in pcim_iounmap_regions()
501 pcim_iounmap(pdev, iomap[i]); in pcim_iounmap_regions()
/kernel/linux/linux-5.10/fs/zonefs/
Dsuper.c73 struct iomap *iomap, struct iomap *srcmap) in zonefs_read_iomap_begin() argument
84 iomap->bdev = inode->i_sb->s_bdev; in zonefs_read_iomap_begin()
85 iomap->offset = ALIGN_DOWN(offset, sb->s_blocksize); in zonefs_read_iomap_begin()
87 if (iomap->offset >= isize) { in zonefs_read_iomap_begin()
88 iomap->type = IOMAP_HOLE; in zonefs_read_iomap_begin()
89 iomap->addr = IOMAP_NULL_ADDR; in zonefs_read_iomap_begin()
90 iomap->length = length; in zonefs_read_iomap_begin()
92 iomap->type = IOMAP_MAPPED; in zonefs_read_iomap_begin()
93 iomap->addr = (zi->i_zsector << SECTOR_SHIFT) + iomap->offset; in zonefs_read_iomap_begin()
94 iomap->length = isize - iomap->offset; in zonefs_read_iomap_begin()
[all …]

12345