Home
last modified time | relevance | path

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

123456

/linux/fs/iomap/
A Dswapfile.c15 struct iomap iomap; /* accumulated iomap */ member
32 struct iomap *iomap = &isi->iomap; in iomap_swapfile_add_extent() local
49 next_ppage = ALIGN_DOWN(iomap->addr + iomap->length, PAGE_SIZE) >> in iomap_swapfile_add_extent()
64 if (iomap->offset == 0) in iomap_swapfile_add_extent()
98 struct iomap *iomap, struct iomap_swapfile_info *isi) in iomap_swapfile_iter() argument
100 switch (iomap->type) { in iomap_swapfile_iter()
124 memcpy(&isi->iomap, iomap, sizeof(isi->iomap)); in iomap_swapfile_iter()
125 } else if (isi->iomap.addr + isi->iomap.length == iomap->addr) { in iomap_swapfile_iter()
127 isi->iomap.length += iomap->length; in iomap_swapfile_iter()
133 memcpy(&isi->iomap, iomap, sizeof(isi->iomap)); in iomap_swapfile_iter()
[all …]
A Dfiemap.c12 const struct iomap *iomap, u32 flags) in iomap_to_fiemap() argument
14 switch (iomap->type) { in iomap_to_fiemap()
31 if (iomap->flags & IOMAP_F_MERGED) in iomap_to_fiemap()
33 if (iomap->flags & IOMAP_F_SHARED) in iomap_to_fiemap()
36 return fiemap_fill_next_extent(fi, iomap->offset, in iomap_to_fiemap()
37 iomap->addr != IOMAP_NULL_ADDR ? iomap->addr : 0, in iomap_to_fiemap()
38 iomap->length, flags); in iomap_to_fiemap()
46 if (iter->iomap.type == IOMAP_HOLE) in iomap_fiemap_iter()
50 *prev = iter->iomap; in iomap_fiemap_iter()
70 struct iomap prev = { in iomap_fiemap()
[all …]
A D.built-in.a.cmd1iomap/built-in.a := echo >/dev/null; rm -f fs/iomap/built-in.a; /usr/bin/ccache /home/test/workspa…
A Diter.c13 if (iter->iomap.length) { in iomap_iter_advance()
26 memset(&iter->iomap, 0, sizeof(iter->iomap)); in iomap_iter_advance()
33 WARN_ON_ONCE(iter->iomap.offset > iter->pos); in iomap_iter_done()
34 WARN_ON_ONCE(iter->iomap.length == 0); in iomap_iter_done()
35 WARN_ON_ONCE(iter->iomap.offset + iter->iomap.length <= iter->pos); in iomap_iter_done()
37 trace_iomap_iter_dstmap(iter->inode, &iter->iomap); in iomap_iter_done()
61 if (iter->iomap.length && ops->iomap_end) { in iomap_iter()
64 iter->flags, &iter->iomap); in iomap_iter()
75 &iter->iomap, &iter->srcmap); in iomap_iter()
A Dtrace.h18 #define TRACE_SYSTEM iomap
111 TP_PROTO(struct inode *inode, struct iomap *iomap),
112 TP_ARGS(inode, iomap),
126 __entry->addr = iomap->addr;
127 __entry->offset = iomap->offset;
128 __entry->length = iomap->length;
129 __entry->type = iomap->type;
130 __entry->flags = iomap->flags;
131 __entry->bdev = iomap->bdev ? iomap->bdev->bd_dev : 0;
147 TP_PROTO(struct inode *inode, struct iomap *iomap), \
[all …]
A Dbuffered-io.c220 const struct iomap *iomap = iomap_iter_srcmap(iter); in iomap_read_inline_data() local
259 const struct iomap *iomap = &iter->iomap; in iomap_readpage_iter() local
268 if (iomap->type == IOMAP_INLINE) in iomap_readpage_iter()
537 unsigned plen, const struct iomap *iomap) in iomap_read_page_sync() argument
545 bio_set_dev(&bio, iomap->bdev); in iomap_read_page_sync()
608 BUG_ON(pos + len > iter->iomap.offset + iter->iomap.length); in iomap_write_begin()
609 if (srcmap != &iter->iomap) in iomap_write_begin()
678 const struct iomap *iomap = &iter->iomap; in iomap_write_end_inline() local
822 struct iomap *iomap = &iter->iomap; in iomap_unshare_iter() local
898 struct iomap *iomap = &iter->iomap; in iomap_zero_iter() local
[all …]
A Ddirect-io.c186 bio_set_dev(bio, iter->iomap.bdev); in iomap_dio_zero()
203 const struct iomap *iomap, bool use_fua) in iomap_dio_bio_opflags() argument
212 if (iomap->flags & IOMAP_F_ZONE_APPEND) in iomap_dio_bio_opflags()
228 const struct iomap *iomap = &iter->iomap; in iomap_dio_bio_iter() local
246 if (iomap->type == IOMAP_UNWRITTEN) { in iomap_dio_bio_iter()
251 if (iomap->flags & IOMAP_F_SHARED) in iomap_dio_bio_iter()
254 if (iomap->flags & IOMAP_F_NEW) { in iomap_dio_bio_iter()
256 } else if (iomap->type == IOMAP_MAPPED) { in iomap_dio_bio_iter()
312 bio_set_dev(bio, iomap->bdev); in iomap_dio_bio_iter()
390 const struct iomap *iomap = &iomi->iomap; in iomap_dio_inline_iter() local
[all …]
A DMakefile9 obj-$(CONFIG_FS_IOMAP) += iomap.o
11 iomap-y += trace.o \
17 iomap-$(CONFIG_SWAP) += swapfile.o
/linux/include/linux/
A Dio-mapping.h51 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()
130 if (!iomap->iomem) in io_mapping_init_wc()
137 return iomap; in io_mapping_init_wc()
197 iomap = kmalloc(sizeof(*iomap), GFP_KERNEL); in io_mapping_create_wc()
198 if (!iomap) in io_mapping_create_wc()
202 kfree(iomap); in io_mapping_create_wc()
206 return iomap; in io_mapping_create_wc()
[all …]
A Diomap.h81 struct iomap { struct
96 return (iomap->addr + pos - iomap->offset) >> SECTOR_SHIFT; in iomap_sector()
104 return iomap->inline_data + pos - iomap->offset; in iomap_inline_data()
112 static inline bool iomap_inline_data_valid(const struct iomap *iomap) in iomap_inline_data_valid() argument
114 return iomap->length <= PAGE_SIZE - offset_in_page(iomap->inline_data); in iomap_inline_data_valid()
152 unsigned flags, struct iomap *iomap,
162 ssize_t written, unsigned flags, struct iomap *iomap);
184 struct iomap iomap; member
198 u64 end = iter->iomap.offset + iter->iomap.length; in iomap_length()
218 return &i->iomap; in iomap_iter_srcmap()
[all …]
/linux/drivers/ata/
A Dpata_cs5520.c121 void __iomem *iomap[5]; in cs5520_init_one() local
170 iomap[4] = pcim_iomap(pdev, 2, 0); in cs5520_init_one()
172 if (!iomap[0] || !iomap[1] || !iomap[2] || !iomap[3] || !iomap[4]) in cs5520_init_one()
176 ioaddr->cmd_addr = iomap[0]; in cs5520_init_one()
177 ioaddr->ctl_addr = iomap[1]; in cs5520_init_one()
178 ioaddr->altstatus_addr = iomap[1]; in cs5520_init_one()
179 ioaddr->bmdma_addr = iomap[4]; in cs5520_init_one()
187 ioaddr->cmd_addr = iomap[2]; in cs5520_init_one()
188 ioaddr->ctl_addr = iomap[3]; in cs5520_init_one()
189 ioaddr->altstatus_addr = iomap[3]; in cs5520_init_one()
[all …]
A 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()
A Dsata_sx4.c555 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in __pdc20621_push_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()
1042 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_put_to_dimm()
1088 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_i2c_read()
1147 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_prog_dimm0()
1210 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_prog_dimm_global()
1267 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_dimm_init()
[all …]
/linux/fs/xfs/
A Dxfs_iomap.c55 struct iomap *iomap, in xfs_bmbt_to_iomap() argument
67 iomap->type = IOMAP_HOLE; in xfs_bmbt_to_iomap()
83 iomap->flags = flags; in xfs_bmbt_to_iomap()
94 struct iomap *iomap, in xfs_hole_to_iomap() argument
101 iomap->type = IOMAP_HOLE; in xfs_hole_to_iomap()
722 struct iomap *iomap, in xfs_direct_write_iomap_begin() argument
863 struct iomap *iomap, in xfs_buffered_write_iomap_begin() argument
1085 struct iomap *iomap) in xfs_buffered_write_iomap_end() argument
1151 struct iomap *iomap, in xfs_read_iomap_begin() argument
1193 struct iomap *iomap, in xfs_seek_iomap_begin() argument
[all …]
A Dxfs_aops.c189 if (offset < wpc->iomap.offset || in xfs_imap_valid()
190 offset >= wpc->iomap.offset + wpc->iomap.length) in xfs_imap_valid()
197 if (wpc->iomap.flags & IOMAP_F_SHARED) in xfs_imap_valid()
246 &wpc->iomap, seq); in xfs_convert_blocks()
249 } while (wpc->iomap.offset + wpc->iomap.length <= offset); in xfs_convert_blocks()
362 xfs_bmbt_to_iomap(ip, &wpc->iomap, &imap, 0); in xfs_map_blocks()
389 if (cow_offset < wpc->iomap.offset + wpc->iomap.length) in xfs_map_blocks()
390 wpc->iomap.length = cow_offset - wpc->iomap.offset; in xfs_map_blocks()
393 ASSERT(wpc->iomap.offset <= offset); in xfs_map_blocks()
394 ASSERT(wpc->iomap.offset + wpc->iomap.length > offset); in xfs_map_blocks()
A 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,
/linux/fs/gfs2/
A Dbmap.c586 struct metapath *mp, struct iomap *iomap) in gfs2_hole_size() argument
843 unsigned flags, struct iomap *iomap, in __gfs2_iomap_get() argument
943 iomap->length = size - iomap->offset; in __gfs2_iomap_get()
998 struct iomap *iomap, in gfs2_iomap_begin_write() argument
1046 iomap->length, flags, iomap, mp); in gfs2_iomap_begin_write()
1082 unsigned flags, struct iomap *iomap, in gfs2_iomap_begin() argument
1208 struct iomap iomap = { }; in gfs2_block_map() local
1244 struct iomap iomap = { }; in gfs2_get_extent() local
1265 struct iomap iomap = { }; in gfs2_alloc_extent() local
1397 struct iomap *iomap) in gfs2_iomap_get() argument
[all …]
A Dbmap.h53 struct iomap *iomap);
55 struct iomap *iomap);
/linux/fs/erofs/
A Ddata.c197 unsigned int flags, struct iomap *iomap, struct iomap *srcmap) in erofs_iomap_begin() argument
218 iomap->bdev = mdev.m_bdev; in erofs_iomap_begin()
220 iomap->offset = map.m_la; in erofs_iomap_begin()
222 iomap->flags = 0; in erofs_iomap_begin()
223 iomap->private = NULL; in erofs_iomap_begin()
226 iomap->type = IOMAP_HOLE; in erofs_iomap_begin()
228 if (!iomap->length) in erofs_iomap_begin()
229 iomap->length = length; in erofs_iomap_begin()
243 iomap->private = ipage; in erofs_iomap_begin()
246 iomap->addr = mdev.m_pa; in erofs_iomap_begin()
[all …]
A Dzmap.c701 struct iomap *iomap, struct iomap *srcmap) in z_erofs_iomap_begin_report() argument
712 iomap->bdev = inode->i_sb->s_bdev; in z_erofs_iomap_begin_report()
713 iomap->offset = map.m_la; in z_erofs_iomap_begin_report()
714 iomap->length = map.m_llen; in z_erofs_iomap_begin_report()
716 iomap->type = IOMAP_MAPPED; in z_erofs_iomap_begin_report()
717 iomap->addr = map.m_pa; in z_erofs_iomap_begin_report()
719 iomap->type = IOMAP_HOLE; in z_erofs_iomap_begin_report()
720 iomap->addr = IOMAP_NULL_ADDR; in z_erofs_iomap_begin_report()
726 if (iomap->offset >= inode->i_size) in z_erofs_iomap_begin_report()
727 iomap->length = length + map.m_la - offset; in z_erofs_iomap_begin_report()
[all …]
/linux/fs/nfsd/
A Dblocklayout.c28 struct iomap iomap; in nfsd4_block_proc_layoutget() local
61 switch (iomap.type) { in nfsd4_block_proc_layoutget()
67 bex->soff = iomap.addr; in nfsd4_block_proc_layoutget()
80 bex->soff = iomap.addr; in nfsd4_block_proc_layoutget()
99 bex->foff = iomap.offset; in nfsd4_block_proc_layoutget()
100 bex->len = iomap.length; in nfsd4_block_proc_layoutget()
102 seg->offset = iomap.offset; in nfsd4_block_proc_layoutget()
103 seg->length = iomap.length; in nfsd4_block_proc_layoutget()
118 struct iomap *iomaps, int nr_iomaps) in nfsd4_block_commit_blocks()
179 struct iomap *iomaps; in nfsd4_block_proc_layoutcommit()
[all …]
/linux/fs/
A Ddax.c1008 static sector_t dax_iomap_sector(const struct iomap *iomap, loff_t pos) in dax_iomap_sector() argument
1010 return (iomap->addr + (pos & PAGE_MASK) - iomap->offset) >> 9; in dax_iomap_sector()
1071 const struct iomap *iomap, void **entry) in dax_pmd_load_hole() argument
1123 const struct iomap *iomap, void **entry) in dax_pmd_load_hole() argument
1129 s64 dax_iomap_zero(loff_t pos, u64 length, struct iomap *iomap) in dax_iomap_zero() argument
1169 const struct iomap *iomap = &iomi->iomap; in dax_iomap_iter() local
1184 if (iomap->type == IOMAP_HOLE || iomap->type == IOMAP_UNWRITTEN) in dax_iomap_iter()
1312 struct vm_area_struct *vma, const struct iomap *iomap) in dax_fault_is_synchronous() argument
1346 error = copy_cow_page_dax(iter->iomap.bdev, iter->iomap.dax_dev, in dax_fault_cow_page()
1379 const struct iomap *iomap = &iter->iomap; in dax_fault_iter() local
[all …]
/linux/fs/fuse/
A Ddax.c388 static void fuse_fill_iomap_hole(struct iomap *iomap, loff_t length) in fuse_fill_iomap_hole() argument
396 struct iomap *iomap, struct fuse_dax_mapping *dmap, in fuse_fill_iomap() argument
433 struct iomap *iomap) in fuse_setup_new_dax_mapping() argument
501 struct iomap *iomap) in fuse_upgrade_dax_mapping() argument
562 unsigned int flags, struct iomap *iomap, in fuse_iomap_begin() argument
576 iomap->offset = pos; in fuse_iomap_begin()
577 iomap->flags = 0; in fuse_iomap_begin()
578 iomap->bdev = NULL; in fuse_iomap_begin()
607 flags, iomap); in fuse_iomap_begin()
621 iomap); in fuse_iomap_begin()
[all …]
/linux/fs/hpfs/
A Dfile.c121 unsigned flags, struct iomap *iomap, struct iomap *srcmap) in hpfs_iomap_begin() argument
131 iomap->bdev = inode->i_sb->s_bdev; in hpfs_iomap_begin()
132 iomap->offset = offset; in hpfs_iomap_begin()
143 iomap->type = IOMAP_MAPPED; in hpfs_iomap_begin()
144 iomap->flags = IOMAP_F_MERGED; in hpfs_iomap_begin()
145 iomap->addr = (u64)s << blkbits; in hpfs_iomap_begin()
146 iomap->length = (u64)n_secs << blkbits; in hpfs_iomap_begin()
148 iomap->type = IOMAP_HOLE; in hpfs_iomap_begin()
149 iomap->addr = IOMAP_NULL_ADDR; in hpfs_iomap_begin()
150 iomap->length = 1 << blkbits; in hpfs_iomap_begin()
/linux/fs/zonefs/
A Dtrace.h74 TP_PROTO(struct inode *inode, struct iomap *iomap),
75 TP_ARGS(inode, iomap),
86 __entry->addr = iomap->addr;
87 __entry->offset = iomap->offset;
88 __entry->length = iomap->length;

Completed in 64 milliseconds

123456