| /Linux-v4.19/fs/xfs/scrub/ |
| D | rmap.c | 45 struct xfs_rmap_irec *irec) in xchk_rmapbt_xref_refc() argument 58 non_inode = XFS_RMAP_NON_INODE_OWNER(irec->rm_owner); in xchk_rmapbt_xref_refc() 59 is_bmbt = irec->rm_flags & XFS_RMAP_BMBT_BLOCK; in xchk_rmapbt_xref_refc() 60 is_attr = irec->rm_flags & XFS_RMAP_ATTR_FORK; in xchk_rmapbt_xref_refc() 61 is_unwritten = irec->rm_flags & XFS_RMAP_UNWRITTEN; in xchk_rmapbt_xref_refc() 64 error = xfs_refcount_find_shared(sc->sa.refc_cur, irec->rm_startblock, in xchk_rmapbt_xref_refc() 65 irec->rm_blockcount, &fbno, &flen, false); in xchk_rmapbt_xref_refc() 76 struct xfs_rmap_irec *irec) in xchk_rmapbt_xref() argument 78 xfs_agblock_t agbno = irec->rm_startblock; in xchk_rmapbt_xref() 79 xfs_extlen_t len = irec->rm_blockcount; in xchk_rmapbt_xref() [all …]
|
| D | bmap.c | 93 struct xfs_bmbt_irec *irec, in xchk_bmap_get_rmap() argument 113 offset = irec->br_startoff; in xchk_bmap_get_rmap() 148 irec->br_startoff); in xchk_bmap_get_rmap() 156 struct xfs_bmbt_irec *irec, in xchk_bmap_xref_rmap() argument 172 if (!xchk_bmap_get_rmap(info, irec, agbno, owner, &rmap)) in xchk_bmap_xref_rmap() 178 agbno + irec->br_blockcount > rmap_end) in xchk_bmap_xref_rmap() 180 irec->br_startoff); in xchk_bmap_xref_rmap() 190 if (rmap.rm_offset > irec->br_startoff || in xchk_bmap_xref_rmap() 191 irec->br_startoff + irec->br_blockcount > rmap_end) in xchk_bmap_xref_rmap() 193 info->whichfork, irec->br_startoff); in xchk_bmap_xref_rmap() [all …]
|
| D | ialloc.c | 55 struct xfs_inobt_rec_incore *irec, in xchk_iallocbt_chunk_xref_other() argument 71 if (((irec->ir_freecount > 0 && !has_irec) || in xchk_iallocbt_chunk_xref_other() 72 (irec->ir_freecount == 0 && has_irec))) in xchk_iallocbt_chunk_xref_other() 80 struct xfs_inobt_rec_incore *irec, in xchk_iallocbt_chunk_xref() argument 91 xchk_iallocbt_chunk_xref_other(sc, irec, agino); in xchk_iallocbt_chunk_xref() 101 struct xfs_inobt_rec_incore *irec, in xchk_iallocbt_chunk() argument 115 xchk_iallocbt_chunk_xref(bs->sc, irec, agino, bno, len); in xchk_iallocbt_chunk() 136 struct xfs_inobt_rec_incore *irec, in xchk_iallocbt_check_cluster_freemask() argument 157 if (irec->ir_free & XFS_INOBT_MASK(chunkino + clusterino)) in xchk_iallocbt_check_cluster_freemask() 187 struct xfs_inobt_rec_incore *irec) in xchk_iallocbt_check_freemask() argument [all …]
|
| D | quota.c | 200 struct xfs_bmbt_irec irec = { 0 }; in xchk_quota_data_fork() local 215 for_each_xfs_iext(ifp, &icur, &irec) { in xchk_quota_data_fork() 222 if (isnullstartblock(irec.br_startblock) || in xchk_quota_data_fork() 223 irec.br_startoff > max_dqid_off || in xchk_quota_data_fork() 224 irec.br_startoff + irec.br_blockcount - 1 > max_dqid_off) { in xchk_quota_data_fork() 226 irec.br_startoff); in xchk_quota_data_fork()
|
| D | trace.h | 561 struct xfs_refcount_irec *irec), 562 TP_ARGS(mp, agno, irec), 573 __entry->startblock = irec->rc_startblock; 574 __entry->blockcount = irec->rc_blockcount; 575 __entry->refcount = irec->rc_refcount;
|
| /Linux-v4.19/fs/xfs/libxfs/ |
| D | xfs_rmap.h | 73 const struct xfs_rmap_irec *irec) in xfs_rmap_irec_offset_pack() argument 77 x = XFS_RMAP_OFF(irec->rm_offset); in xfs_rmap_irec_offset_pack() 78 if (irec->rm_flags & XFS_RMAP_ATTR_FORK) in xfs_rmap_irec_offset_pack() 80 if (irec->rm_flags & XFS_RMAP_BMBT_BLOCK) in xfs_rmap_irec_offset_pack() 82 if (irec->rm_flags & XFS_RMAP_UNWRITTEN) in xfs_rmap_irec_offset_pack() 90 struct xfs_rmap_irec *irec) in xfs_rmap_irec_offset_unpack() argument 94 irec->rm_offset = XFS_RMAP_OFF(offset); in xfs_rmap_irec_offset_unpack() 96 irec->rm_flags |= XFS_RMAP_ATTR_FORK; in xfs_rmap_irec_offset_unpack() 98 irec->rm_flags |= XFS_RMAP_BMBT_BLOCK; in xfs_rmap_irec_offset_unpack() 100 irec->rm_flags |= XFS_RMAP_UNWRITTEN; in xfs_rmap_irec_offset_unpack() [all …]
|
| D | xfs_rmap.c | 84 struct xfs_rmap_irec *irec) in xfs_rmap_update() argument 90 irec->rm_startblock, irec->rm_blockcount, in xfs_rmap_update() 91 irec->rm_owner, irec->rm_offset, irec->rm_flags); in xfs_rmap_update() 93 rec.rmap.rm_startblock = cpu_to_be32(irec->rm_startblock); in xfs_rmap_update() 94 rec.rmap.rm_blockcount = cpu_to_be32(irec->rm_blockcount); in xfs_rmap_update() 95 rec.rmap.rm_owner = cpu_to_be64(irec->rm_owner); in xfs_rmap_update() 97 xfs_rmap_irec_offset_pack(irec)); in xfs_rmap_update() 176 struct xfs_rmap_irec *irec) in xfs_rmap_btrec_to_irec() argument 178 irec->rm_flags = 0; in xfs_rmap_btrec_to_irec() 179 irec->rm_startblock = be32_to_cpu(rec->rmap.rm_startblock); in xfs_rmap_btrec_to_irec() [all …]
|
| D | xfs_refcount.h | 16 struct xfs_refcount_irec *irec, int *stat); 33 struct xfs_bmbt_irec *irec); 35 struct xfs_bmbt_irec *irec); 75 struct xfs_refcount_irec *irec); 77 struct xfs_refcount_irec *irec, int *stat);
|
| D | xfs_refcount.c | 96 struct xfs_refcount_irec *irec) in xfs_refcount_btrec_to_irec() argument 98 irec->rc_startblock = be32_to_cpu(rec->refc.rc_startblock); in xfs_refcount_btrec_to_irec() 99 irec->rc_blockcount = be32_to_cpu(rec->refc.rc_blockcount); in xfs_refcount_btrec_to_irec() 100 irec->rc_refcount = be32_to_cpu(rec->refc.rc_refcount); in xfs_refcount_btrec_to_irec() 109 struct xfs_refcount_irec *irec, in xfs_refcount_get_rec() argument 122 xfs_refcount_btrec_to_irec(rec, irec); in xfs_refcount_get_rec() 125 if (irec->rc_blockcount == 0 || irec->rc_blockcount > MAXREFCEXTLEN) in xfs_refcount_get_rec() 129 realstart = irec->rc_startblock; in xfs_refcount_get_rec() 131 if (irec->rc_refcount != 1) in xfs_refcount_get_rec() 134 } else if (irec->rc_refcount < 2) { in xfs_refcount_get_rec() [all …]
|
| D | xfs_bmap.h | 174 static inline bool xfs_bmap_is_real_extent(struct xfs_bmbt_irec *irec) in xfs_bmap_is_real_extent() argument 176 return irec->br_state != XFS_EXT_UNWRITTEN && in xfs_bmap_is_real_extent() 177 irec->br_startblock != HOLESTARTBLOCK && in xfs_bmap_is_real_extent() 178 irec->br_startblock != DELAYSTARTBLOCK && in xfs_bmap_is_real_extent() 179 !isnullstartblock(irec->br_startblock); in xfs_bmap_is_real_extent() 182 void xfs_trim_extent(struct xfs_bmbt_irec *irec, xfs_fileoff_t bno, 276 struct xfs_bmbt_irec *irec);
|
| D | xfs_iext_tree.c | 59 struct xfs_bmbt_irec *irec) in xfs_iext_set() argument 61 ASSERT((irec->br_startoff & ~XFS_IEXT_STARTOFF_MASK) == 0); in xfs_iext_set() 62 ASSERT((irec->br_blockcount & ~XFS_IEXT_LENGTH_MASK) == 0); in xfs_iext_set() 63 ASSERT((irec->br_startblock & ~XFS_IEXT_STARTBLOCK_MASK) == 0); in xfs_iext_set() 65 rec->lo = irec->br_startoff & XFS_IEXT_STARTOFF_MASK; in xfs_iext_set() 66 rec->hi = irec->br_blockcount & XFS_IEXT_LENGTH_MASK; in xfs_iext_set() 68 rec->lo |= (irec->br_startblock << 54); in xfs_iext_set() 69 rec->hi |= ((irec->br_startblock & ~xfs_mask64lo(10)) << (22 - 10)); in xfs_iext_set() 71 if (irec->br_state == XFS_EXT_UNWRITTEN) in xfs_iext_set() 77 struct xfs_bmbt_irec *irec, in xfs_iext_get() argument [all …]
|
| D | xfs_ialloc.c | 73 xfs_inobt_rec_incore_t *irec) /* btree record */ in xfs_inobt_update() argument 77 rec.inobt.ir_startino = cpu_to_be32(irec->ir_startino); in xfs_inobt_update() 79 rec.inobt.ir_u.sp.ir_holemask = cpu_to_be16(irec->ir_holemask); in xfs_inobt_update() 80 rec.inobt.ir_u.sp.ir_count = irec->ir_count; in xfs_inobt_update() 81 rec.inobt.ir_u.sp.ir_freecount = irec->ir_freecount; in xfs_inobt_update() 84 rec.inobt.ir_u.f.ir_freecount = cpu_to_be32(irec->ir_freecount); in xfs_inobt_update() 86 rec.inobt.ir_free = cpu_to_be64(irec->ir_free); in xfs_inobt_update() 95 struct xfs_inobt_rec_incore *irec) in xfs_inobt_btrec_to_irec() argument 97 irec->ir_startino = be32_to_cpu(rec->inobt.ir_startino); in xfs_inobt_btrec_to_irec() 99 irec->ir_holemask = be16_to_cpu(rec->inobt.ir_u.sp.ir_holemask); in xfs_inobt_btrec_to_irec() [all …]
|
| D | xfs_bmap_btree.c | 65 struct xfs_bmbt_irec *irec) in xfs_bmbt_disk_get_all() argument 70 irec->br_startoff = (l0 & xfs_mask64lo(64 - BMBT_EXNTFLAG_BITLEN)) >> 9; in xfs_bmbt_disk_get_all() 71 irec->br_startblock = ((l0 & xfs_mask64lo(9)) << 43) | (l1 >> 21); in xfs_bmbt_disk_get_all() 72 irec->br_blockcount = l1 & xfs_mask64lo(21); in xfs_bmbt_disk_get_all() 74 irec->br_state = XFS_EXT_UNWRITTEN; in xfs_bmbt_disk_get_all() 76 irec->br_state = XFS_EXT_NORM; in xfs_bmbt_disk_get_all()
|
| D | xfs_bmap.c | 104 struct xfs_bmbt_irec *irec, in xfs_bmbt_lookup_eq() argument 107 cur->bc_rec.b = *irec; in xfs_bmbt_lookup_eq() 151 struct xfs_bmbt_irec *irec) in xfs_bmbt_update() argument 155 xfs_bmbt_disk_set_all(&rec.bmbt, irec); in xfs_bmbt_update() 3644 struct xfs_bmbt_irec *irec, in xfs_trim_extent() argument 3651 if (irec->br_startoff + irec->br_blockcount <= bno || in xfs_trim_extent() 3652 irec->br_startoff >= end) { in xfs_trim_extent() 3653 irec->br_blockcount = 0; in xfs_trim_extent() 3657 if (irec->br_startoff < bno) { in xfs_trim_extent() 3658 distance = bno - irec->br_startoff; in xfs_trim_extent() [all …]
|
| D | xfs_ialloc.h | 159 struct xfs_inobt_rec_incore *irec);
|
| /Linux-v4.19/drivers/media/platform/sti/c8sectpfe/ |
| D | c8sectpfe-core.c | 72 if (channel->irec && readl(channel->irec + DMA_PRDS_TPENABLE)) in c8sectpfe_timer_interrupt() 88 if (unlikely(!channel || !channel->irec)) in channel_swdemux_tsklet() 93 wp = readl(channel->irec + DMA_PRDS_BUSWP_TP(0)); in channel_swdemux_tsklet() 94 rp = readl(channel->irec + DMA_PRDS_BUSRP_TP(0)); in channel_swdemux_tsklet() 128 writel(channel->back_buffer_busaddr, channel->irec + in channel_swdemux_tsklet() 131 writel(wp, channel->irec + DMA_PRDS_BUSRP_TP(0)); in channel_swdemux_tsklet() 227 writel(channel->back_buffer_busaddr, channel->irec + in c8sectpfe_start_feed() 231 writel(tmp, channel->irec + DMA_PRDS_BUSTOP_TP(0)); in c8sectpfe_start_feed() 233 writel(channel->back_buffer_busaddr, channel->irec + in c8sectpfe_start_feed() 241 writel(0x1, channel->irec + DMA_PRDS_TPENABLE); in c8sectpfe_start_feed() [all …]
|
| /Linux-v4.19/fs/xfs/ |
| D | xfs_refcount_item.c | 398 struct xfs_bmbt_irec irec; in xfs_cui_recover() local 489 irec.br_startblock = new_fsb; in xfs_cui_recover() 490 irec.br_blockcount = new_len; in xfs_cui_recover() 493 error = xfs_refcount_increase_extent(tp, &irec); in xfs_cui_recover() 496 error = xfs_refcount_decrease_extent(tp, &irec); in xfs_cui_recover() 500 irec.br_startblock, in xfs_cui_recover() 501 irec.br_blockcount); in xfs_cui_recover() 505 irec.br_startblock, in xfs_cui_recover() 506 irec.br_blockcount); in xfs_cui_recover()
|
| D | xfs_itable.c | 166 struct xfs_inobt_rec_incore *irec) in xfs_bulkstat_ichunk_ra() argument 174 agbno = XFS_AGINO_TO_AGBNO(mp, irec->ir_startino); in xfs_bulkstat_ichunk_ra() 181 if (xfs_inobt_maskn(i, inodes_per_cluster) & ~irec->ir_free) { in xfs_bulkstat_ichunk_ra() 200 struct xfs_inobt_rec_incore *irec) /* btree record */ in xfs_bulkstat_grab_ichunk() argument 216 error = xfs_inobt_get_rec(cur, irec, &stat); in xfs_bulkstat_grab_ichunk() 222 if (irec->ir_startino + XFS_INODES_PER_CHUNK <= agino) { in xfs_bulkstat_grab_ichunk() 227 idx = agino - irec->ir_startino + 1; in xfs_bulkstat_grab_ichunk() 229 (xfs_inobt_maskn(idx, XFS_INODES_PER_CHUNK - idx) & ~irec->ir_free)) { in xfs_bulkstat_grab_ichunk() 237 if (XFS_INOBT_MASK(i) & ~irec->ir_free) in xfs_bulkstat_grab_ichunk() 238 irec->ir_freecount++; in xfs_bulkstat_grab_ichunk() [all …]
|
| D | xfs_fsmap.c | 365 struct xfs_rmap_irec irec; in xfs_getfsmap_datadev_bnobt_helper() local 371 irec.rm_startblock = rec->ar_startblock; in xfs_getfsmap_datadev_bnobt_helper() 372 irec.rm_blockcount = rec->ar_blockcount; in xfs_getfsmap_datadev_bnobt_helper() 373 irec.rm_owner = XFS_RMAP_OWN_NULL; /* "free" */ in xfs_getfsmap_datadev_bnobt_helper() 374 irec.rm_offset = 0; in xfs_getfsmap_datadev_bnobt_helper() 375 irec.rm_flags = 0; in xfs_getfsmap_datadev_bnobt_helper() 377 return xfs_getfsmap_helper(cur->bc_tp, info, &irec, rec_daddr); in xfs_getfsmap_datadev_bnobt_helper() 383 struct xfs_rmap_irec *irec, in xfs_getfsmap_set_irec_flags() argument 386 irec->rm_flags = 0; in xfs_getfsmap_set_irec_flags() 388 irec->rm_flags |= XFS_RMAP_ATTR_FORK; in xfs_getfsmap_set_irec_flags() [all …]
|
| D | xfs_reflink.c | 184 struct xfs_bmbt_irec *irec, in xfs_reflink_trim_around_shared() argument 196 if (!xfs_is_reflink_inode(ip) || !xfs_bmap_is_real_extent(irec)) { in xfs_reflink_trim_around_shared() 201 trace_xfs_reflink_trim_around_shared(ip, irec); in xfs_reflink_trim_around_shared() 203 agno = XFS_FSB_TO_AGNO(ip->i_mount, irec->br_startblock); in xfs_reflink_trim_around_shared() 204 agbno = XFS_FSB_TO_AGBNO(ip->i_mount, irec->br_startblock); in xfs_reflink_trim_around_shared() 205 aglen = irec->br_blockcount; in xfs_reflink_trim_around_shared() 223 irec->br_blockcount = flen; in xfs_reflink_trim_around_shared() 235 irec->br_blockcount = fbno - agbno; in xfs_reflink_trim_around_shared() 1000 struct xfs_bmbt_irec *irec, in xfs_reflink_remap_extent() argument 1005 bool real_extent = xfs_bmap_is_real_extent(irec); in xfs_reflink_remap_extent() [all …]
|
| D | xfs_bmap_item.c | 394 struct xfs_bmbt_irec irec; in xfs_bui_recover() local 485 irec.br_startblock = bmap->me_startblock; in xfs_bui_recover() 486 irec.br_blockcount = count; in xfs_bui_recover() 487 irec.br_startoff = bmap->me_startoff; in xfs_bui_recover() 488 irec.br_state = state; in xfs_bui_recover() 489 error = xfs_bmap_unmap_extent(tp, ip, &irec); in xfs_bui_recover()
|
| D | xfs_trace.h | 1210 int type, struct xfs_bmbt_irec *irec), 1211 TP_ARGS(ip, offset, count, type, irec), 1230 __entry->startoff = irec ? irec->br_startoff : 0; 1231 __entry->startblock = irec ? irec->br_startblock : 0; 1232 __entry->blockcount = irec ? irec->br_blockcount : 0; 1250 int type, struct xfs_bmbt_irec *irec), \ 1251 TP_ARGS(ip, offset, count, type, irec)) 2647 struct xfs_refcount_irec *irec), 2648 TP_ARGS(mp, agno, irec), 2659 __entry->startblock = irec->rc_startblock; [all …]
|
| D | xfs_reflink.h | 13 struct xfs_bmbt_irec *irec, bool *shared, bool *trimmed);
|
| D | xfs_bmap_util.c | 1533 struct xfs_bmbt_irec irec; in xfs_swap_extent_rmap() local 1580 tirec.br_blockcount, &irec, in xfs_swap_extent_rmap() 1585 ASSERT(tirec.br_startoff == irec.br_startoff); in xfs_swap_extent_rmap() 1586 trace_xfs_swap_extent_rmap_remap_piece(ip, &irec); in xfs_swap_extent_rmap() 1592 irec.br_blockcount); in xfs_swap_extent_rmap() 1601 error = xfs_bmap_unmap_extent(tp, ip, &irec); in xfs_swap_extent_rmap() 1611 error = xfs_bmap_map_extent(tp, tip, &irec); in xfs_swap_extent_rmap()
|
| /Linux-v4.19/fs/ext4/ |
| D | fsmap.c | 190 struct ext4_fsmap irec; in ext4_getfsmap_datadev_helper() local 235 irec.fmr_device = 0; in ext4_getfsmap_datadev_helper() 236 irec.fmr_physical = fsb; in ext4_getfsmap_datadev_helper() 237 irec.fmr_length = fslen; in ext4_getfsmap_datadev_helper() 238 irec.fmr_owner = EXT4_FMR_OWN_FREE; in ext4_getfsmap_datadev_helper() 239 irec.fmr_flags = 0; in ext4_getfsmap_datadev_helper() 242 if (ext4_fsmap_next_pblk(&irec) == in ext4_getfsmap_datadev_helper() 244 info->gfi_lastfree = irec; in ext4_getfsmap_datadev_helper() 249 return ext4_getfsmap_helper(sb, info, &irec); in ext4_getfsmap_datadev_helper() 257 struct ext4_fsmap irec; in ext4_getfsmap_logdev() local [all …]
|