| /linux-6.15/fs/xfs/ |
| H A D | xfs_aops.c | 242 struct iomap_writepage_ctx *wpc, in xfs_imap_valid() argument 247 offset >= wpc->iomap.offset + wpc->iomap.length) in xfs_imap_valid() 390 xfs_bmbt_to_iomap(ip, &wpc->iomap, &imap, 0, 0, XFS_WPC(wpc)->data_seq); in xfs_map_blocks() 401 seq = &XFS_WPC(wpc)->cow_seq; in xfs_map_blocks() 403 seq = &XFS_WPC(wpc)->data_seq; in xfs_map_blocks() 406 &wpc->iomap, seq); in xfs_map_blocks() 429 if (cow_offset < wpc->iomap.offset + wpc->iomap.length) in xfs_map_blocks() 430 wpc->iomap.length = cow_offset - wpc->iomap.offset; in xfs_map_blocks() 434 ASSERT(wpc->iomap.offset + wpc->iomap.length > offset); in xfs_map_blocks() 585 wpc->iomap.offset = offset; in xfs_zoned_map_blocks() [all …]
|
| /linux-6.15/fs/iomap/ |
| H A D | buffered-io.c | 1585 if (!wpc->ioend) in iomap_submit_ioend() 1595 error = wpc->ops->submit_ioend(wpc, error); in iomap_submit_ioend() 1608 wpc->ioend = NULL; in iomap_submit_ioend() 1637 if (pos != wpc->ioend->io_offset + wpc->ioend->io_size) in iomap_can_add_to_ioend() 1686 wpc->ioend = iomap_alloc_ioend(wpc, wbc, inode, pos, in iomap_add_to_ioend() 1738 if (wpc->ioend->io_offset + wpc->ioend->io_size > end_pos) in iomap_add_to_ioend() 1739 wpc->ioend->io_size = end_pos - wpc->ioend->io_offset; in iomap_add_to_ioend() 1755 error = wpc->ops->map_blocks(wpc, inode, pos, dirty_len); in iomap_writepage_map_blocks() 1761 wpc->iomap.offset + wpc->iomap.length - pos); in iomap_writepage_map_blocks() 1913 wpc->nr_folios++; in iomap_writepage_map() [all …]
|
| /linux-6.15/fs/zonefs/ |
| H A D | file.c | 127 static int zonefs_write_map_blocks(struct iomap_writepage_ctx *wpc, in zonefs_write_map_blocks() argument 139 if (offset >= wpc->iomap.offset && in zonefs_write_map_blocks() 140 offset < wpc->iomap.offset + wpc->iomap.length) in zonefs_write_map_blocks() 145 IOMAP_WRITE, &wpc->iomap, NULL); in zonefs_write_map_blocks() 155 struct iomap_writepage_ctx wpc = { }; in zonefs_writepages() local 157 return iomap_writepages(mapping, wbc, &wpc, &zonefs_writeback_ops); in zonefs_writepages()
|
| /linux-6.15/block/ |
| H A D | fops.c | 516 static int blkdev_map_blocks(struct iomap_writepage_ctx *wpc, in blkdev_map_blocks() argument 523 if (offset >= wpc->iomap.offset && in blkdev_map_blocks() 524 offset < wpc->iomap.offset + wpc->iomap.length) in blkdev_map_blocks() 527 IOMAP_WRITE, &wpc->iomap, NULL); in blkdev_map_blocks() 537 struct iomap_writepage_ctx wpc = { }; in blkdev_writepages() local 539 return iomap_writepages(mapping, wbc, &wpc, &blkdev_writeback_ops); in blkdev_writepages()
|
| /linux-6.15/include/linux/ |
| H A D | iomap.h | 426 int (*map_blocks)(struct iomap_writepage_ctx *wpc, struct inode *inode, 437 int (*submit_ioend)(struct iomap_writepage_ctx *wpc, int status); 462 struct writeback_control *wbc, struct iomap_writepage_ctx *wpc,
|
| /linux-6.15/drivers/staging/most/dim2/ |
| H A D | hal.c | 70 u16 wpc; member 389 g.atx_dbr.wpc = g.atx_dbr.rpc; in dbrcnt_init() 395 g.atx_dbr.sz_queue[norm_pc(g.atx_dbr.wpc)] = buf_sz; in dbrcnt_enq() 396 g.atx_dbr.wpc++; in dbrcnt_enq() 414 if ((u16)(dbr->wpc - dbr->rpc) >= CDT0_RPC_MASK) in dim_dbr_space()
|
| /linux-6.15/fs/gfs2/ |
| H A D | aops.c | 152 struct iomap_writepage_ctx wpc = { }; in gfs2_writepages() local 161 ret = iomap_writepages(mapping, wbc, &wpc, &gfs2_writeback_ops); in gfs2_writepages()
|
| H A D | bmap.c | 2469 static int gfs2_map_blocks(struct iomap_writepage_ctx *wpc, struct inode *inode, in gfs2_map_blocks() argument 2477 if (offset >= wpc->iomap.offset && in gfs2_map_blocks() 2478 offset < wpc->iomap.offset + wpc->iomap.length) in gfs2_map_blocks() 2481 memset(&wpc->iomap, 0, sizeof(wpc->iomap)); in gfs2_map_blocks() 2482 ret = gfs2_iomap_get(inode, offset, INT_MAX, &wpc->iomap); in gfs2_map_blocks()
|
| /linux-6.15/Documentation/filesystems/iomap/ |
| H A D | operations.rst | 266 The ``wpc`` pointer should be allocated by the filesystem and must 286 int (*map_blocks)(struct iomap_writepage_ctx *wpc, struct inode *inode, 288 int (*submit_ioend)(struct iomap_writepage_ctx *wpc, int status); 294 - ``map_blocks``: Sets ``wpc->iomap`` to the space mapping of the file
|
| /linux-6.15/drivers/gpu/drm/vc4/ |
| H A D | vc4_plane.c | 750 unsigned int components, words, wpc; in vc4_lbm_channel_size() local 764 wpc = vc4_lbm_words_per_component(state, channel); in vc4_lbm_channel_size() 765 if (!wpc) in vc4_lbm_channel_size() 775 words = width * wpc * components; in vc4_lbm_channel_size()
|
| /linux-6.15/drivers/net/ieee802154/ |
| H A D | ca8210.c | 661 struct work_priv_container *wpc = container_of( in ca8210_mlme_reset_worker() local 666 struct ca8210_priv *priv = wpc->priv; in ca8210_mlme_reset_worker() 669 kfree(wpc); in ca8210_mlme_reset_worker()
|