/openbmc/linux/fs/xfs/scrub/ |
H A D | bmap.c | 161 irec->br_startoff); in xchk_bmap_get_rmap() 189 irec->br_startoff); in xchk_bmap_xref_rmap() 194 irec->br_startoff); in xchk_bmap_xref_rmap() 199 irec->br_startoff); in xchk_bmap_xref_rmap() 202 if (rmap_end != irec->br_startoff + irec->br_blockcount) in xchk_bmap_xref_rmap() 204 irec->br_startoff); in xchk_bmap_xref_rmap() 382 off = irec->br_startoff + irec->br_blockcount - 1; in xchk_bmap_dirattr_extent() 405 if (!xfs_verify_fileext(mp, irec->br_startoff, irec->br_blockcount)) in xchk_bmap_iextent() 413 !xfs_verify_rtext(mp, irec->br_startblock, irec->br_blockcount)) in xchk_bmap_iextent() 417 !xfs_verify_fsbext(mp, irec->br_startblock, irec->br_blockcount)) in xchk_bmap_iextent() [all …]
|
H A D | ialloc.c | 67 struct xfs_inobt_rec_incore *irec, in xchk_inobt_xref_finobt() argument 108 if (irec->ir_free == 0) in xchk_inobt_xref_finobt() 134 struct xfs_inobt_rec_incore *irec, in xchk_inobt_chunk_xref_finobt() argument 175 struct xfs_inobt_rec_incore irec; in xchk_finobt_xref_inobt() local 255 struct xfs_inobt_rec_incore *irec, in xchk_iallocbt_chunk() argument 302 struct xfs_inobt_rec_incore *irec, in xchk_iallocbt_check_cluster_ifree() argument 522 if (irec->ir_startino & imask) in xchk_iallocbt_rec_alignment() 593 agino = irec.ir_startino; in xchk_iallocbt_rec() 599 iabt->inodes += irec.ir_count; in xchk_iallocbt_rec() 613 holemask = irec.ir_holemask; in xchk_iallocbt_rec() [all …]
|
H A D | rmap.c | 72 struct xfs_rmap_irec *irec) in xchk_rmapbt_xref_refc() argument 103 struct xfs_rmap_irec *irec) in xchk_rmapbt_xref() argument 118 irec->rm_blockcount); in xchk_rmapbt_xref() 120 xchk_rmapbt_xref_refc(sc, irec); in xchk_rmapbt_xref() 178 const struct xfs_rmap_irec *irec) in xchk_rmapbt_is_shareable() argument 195 const struct xfs_rmap_irec *irec) in xchk_rmapbt_check_overlapping() argument 217 inext = irec->rm_startblock + irec->rm_blockcount; in xchk_rmapbt_check_overlapping() 296 switch (irec->rm_owner) { in xchk_rmapbt_mark_bitmap() 338 return xagb_bitmap_clear(bmp, irec->rm_startblock, irec->rm_blockcount); in xchk_rmapbt_mark_bitmap() 348 struct xfs_rmap_irec irec; in xchk_rmapbt_rec() local [all …]
|
H A D | refcount.c | 279 .bno = irec->rc_startblock, in xchk_refcountbt_xref_rmap() 280 .len = irec->rc_blockcount, in xchk_refcountbt_xref_rmap() 281 .refcount = irec->rc_refcount, in xchk_refcountbt_xref_rmap() 297 high.rm_startblock = irec->rc_startblock + irec->rc_blockcount - 1; in xchk_refcountbt_xref_rmap() 327 xchk_xref_is_used_space(sc, irec->rc_startblock, irec->rc_blockcount); in xchk_refcountbt_xref() 329 irec->rc_blockcount); in xchk_refcountbt_xref() 330 xchk_refcountbt_xref_rmap(sc, irec); in xchk_refcountbt_xref() 440 struct xfs_refcount_irec irec; in xchk_refcountbt_rec() local 456 rrc->prev_domain = irec.rc_domain; in xchk_refcountbt_rec() 459 xchk_refcountbt_xref(bs->sc, &irec); in xchk_refcountbt_rec() [all …]
|
H A D | alloc.c | 87 const struct xfs_alloc_rec_incore *irec) in xchk_allocbt_xref() argument 89 xfs_agblock_t agbno = irec->ar_startblock; in xchk_allocbt_xref() 90 xfs_extlen_t len = irec->ar_blockcount; in xchk_allocbt_xref() 107 const struct xfs_alloc_rec_incore *irec) in xchk_allocbt_mergeable() argument 114 ca->prev.ar_blockcount + irec->ar_blockcount < (uint32_t)~0U) in xchk_allocbt_mergeable() 117 memcpy(&ca->prev, irec, sizeof(*irec)); in xchk_allocbt_mergeable() 126 struct xfs_alloc_rec_incore irec; in xchk_allocbt_rec() local 129 xfs_alloc_btrec_to_irec(rec, &irec); in xchk_allocbt_rec() 130 if (xfs_alloc_check_irec(bs->cur, &irec) != NULL) { in xchk_allocbt_rec() 135 xchk_allocbt_mergeable(bs, ca, &irec); in xchk_allocbt_rec() [all …]
|
H A D | quota.c | 181 struct xfs_bmbt_irec irec = { 0 }; in xchk_quota_data_fork() local 196 for_each_xfs_iext(ifp, &icur, &irec) { in xchk_quota_data_fork() 204 if (!xfs_bmap_is_written_extent(&irec) || in xchk_quota_data_fork() 205 irec.br_startoff > max_dqid_off || in xchk_quota_data_fork() 206 irec.br_startoff + irec.br_blockcount - 1 > max_dqid_off) { in xchk_quota_data_fork() 208 irec.br_startoff); in xchk_quota_data_fork()
|
/openbmc/linux/fs/xfs/libxfs/ |
H A D | xfs_refcount.h | 23 struct xfs_refcount_irec *irec, int *stat); 62 const struct xfs_refcount_irec *irec) in xfs_refcount_check_domain() argument 64 if (irec->rc_domain == XFS_REFC_DOMAIN_COW && irec->rc_refcount != 1) in xfs_refcount_check_domain() 66 if (irec->rc_domain == XFS_REFC_DOMAIN_SHARED && irec->rc_refcount < 2) in xfs_refcount_check_domain() 75 struct xfs_bmbt_irec *irec); 77 struct xfs_bmbt_irec *irec); 119 struct xfs_refcount_irec *irec); 121 const struct xfs_refcount_irec *irec); 123 struct xfs_refcount_irec *irec, int *stat);
|
H A D | xfs_rmap.h | 51 const struct xfs_rmap_irec *irec) in xfs_rmap_irec_offset_pack() argument 55 x = XFS_RMAP_OFF(irec->rm_offset); in xfs_rmap_irec_offset_pack() 56 if (irec->rm_flags & XFS_RMAP_ATTR_FORK) in xfs_rmap_irec_offset_pack() 68 struct xfs_rmap_irec *irec) in xfs_rmap_irec_offset_unpack() argument 73 irec->rm_offset = XFS_RMAP_OFF(offset); in xfs_rmap_irec_offset_unpack() 74 irec->rm_flags = 0; in xfs_rmap_irec_offset_unpack() 76 irec->rm_flags |= XFS_RMAP_ATTR_FORK; in xfs_rmap_irec_offset_unpack() 78 irec->rm_flags |= XFS_RMAP_BMBT_BLOCK; in xfs_rmap_irec_offset_unpack() 80 irec->rm_flags |= XFS_RMAP_UNWRITTEN; in xfs_rmap_irec_offset_unpack() 197 struct xfs_rmap_irec *irec); [all …]
|
H A D | xfs_bmap.h | 148 static inline bool xfs_bmap_is_real_extent(const struct xfs_bmbt_irec *irec) in xfs_bmap_is_real_extent() argument 150 return irec->br_startblock != HOLESTARTBLOCK && in xfs_bmap_is_real_extent() 151 irec->br_startblock != DELAYSTARTBLOCK && in xfs_bmap_is_real_extent() 152 !isnullstartblock(irec->br_startblock); in xfs_bmap_is_real_extent() 159 static inline bool xfs_bmap_is_written_extent(struct xfs_bmbt_irec *irec) in xfs_bmap_is_written_extent() argument 161 return xfs_bmap_is_real_extent(irec) && in xfs_bmap_is_written_extent() 162 irec->br_state != XFS_EXT_UNWRITTEN; in xfs_bmap_is_written_extent() 174 void xfs_trim_extent(struct xfs_bmbt_irec *irec, xfs_fileoff_t bno, 267 struct xfs_bmbt_irec *irec); 269 xfs_failaddr_t fa, const struct xfs_bmbt_irec *irec);
|
H A D | xfs_rmap.c | 101 irec->rm_startblock, irec->rm_blockcount, in xfs_rmap_update() 102 irec->rm_owner, irec->rm_offset, irec->rm_flags); in xfs_rmap_update() 205 irec); in xfs_rmap_btrec_to_irec() 259 !xfs_verify_fileext(mp, irec->rm_offset, irec->rm_blockcount)) in xfs_rmap_check_irec() 278 irec->rm_owner, irec->rm_flags, irec->rm_startblock, in xfs_rmap_complain_bad_rec() 372 info.irec = irec; in xfs_rmap_find_left_neighbor() 408 irec->rm_blockcount, irec->rm_owner, irec->rm_offset, in xfs_rmap_find_left_neighbor() 409 irec->rm_flags); in xfs_rmap_find_left_neighbor() 468 info.irec = irec; in xfs_rmap_lookup_le_range() 504 irec->rm_blockcount, irec->rm_owner, irec->rm_offset, in xfs_rmap_lookup_le_range() [all …]
|
H A D | xfs_refcount.c | 106 struct xfs_refcount_irec *irec) in xfs_refcount_btrec_to_irec() argument 118 irec->rc_startblock = start; in xfs_refcount_btrec_to_irec() 131 if (irec->rc_blockcount == 0 || irec->rc_blockcount > MAXREFCEXTLEN) in xfs_refcount_check_irec() 138 if (!xfs_verify_agbext(pag, irec->rc_startblock, irec->rc_blockcount)) in xfs_refcount_check_irec() 141 if (irec->rc_refcount == 0 || irec->rc_refcount > MAXREFCOUNT) in xfs_refcount_check_irec() 160 irec->rc_startblock, irec->rc_blockcount, irec->rc_refcount); in xfs_refcount_complain_bad_rec() 170 struct xfs_refcount_irec *irec, in xfs_refcount_get_rec() argument 198 struct xfs_refcount_irec *irec) in xfs_refcount_update() argument 207 irec->rc_domain); in xfs_refcount_update() 265 struct xfs_refcount_irec irec; in xfs_refcount_delete() local [all …]
|
H A D | xfs_iext_tree.c | 55 struct xfs_bmbt_irec *irec) in xfs_iext_set() argument 61 rec->lo = irec->br_startoff & XFS_IEXT_STARTOFF_MASK; in xfs_iext_set() 64 rec->lo |= (irec->br_startblock << 54); in xfs_iext_set() 67 if (irec->br_state == XFS_EXT_UNWRITTEN) in xfs_iext_set() 73 struct xfs_bmbt_irec *irec, in xfs_iext_get() argument 79 irec->br_startblock = rec->lo >> 54; in xfs_iext_get() 83 irec->br_state = XFS_EXT_UNWRITTEN; in xfs_iext_get() 85 irec->br_state = XFS_EXT_NORM; in xfs_iext_get() 628 struct xfs_bmbt_irec *irec, in xfs_iext_insert() argument 632 xfs_fileoff_t offset = irec->br_startoff; in xfs_iext_insert() [all …]
|
H A D | xfs_ialloc.c | 78 struct xfs_inobt_rec_incore *irec) in xfs_inobt_btrec_to_irec() argument 92 irec->ir_freecount = in xfs_inobt_btrec_to_irec() 120 realfree = irec->ir_free; in xfs_inobt_check_irec() 122 realfree = irec->ir_free & xfs_inobt_irec_to_allocmask(irec); in xfs_inobt_check_irec() 143 irec->ir_startino, irec->ir_count, irec->ir_freecount, in xfs_inobt_complain_bad_rec() 144 irec->ir_free, irec->ir_holemask); in xfs_inobt_complain_bad_rec() 154 struct xfs_inobt_rec_incore *irec, in xfs_inobt_get_rec() argument 167 fa = xfs_inobt_check_irec(cur, irec); in xfs_inobt_get_rec() 2658 struct xfs_inobt_rec_incore irec; in xfs_ialloc_count_ondisk() local 2673 if (irec.ir_startino > high) in xfs_ialloc_count_ondisk() [all …]
|
H A D | xfs_refcount_btree.c | 159 const struct xfs_refcount_irec *irec = &cur->bc_rec.rc; in xfs_refcountbt_init_rec_from_cur() local 162 start = xfs_refcount_encode_startblock(irec->rc_startblock, in xfs_refcountbt_init_rec_from_cur() 163 irec->rc_domain); in xfs_refcountbt_init_rec_from_cur() 187 const struct xfs_refcount_irec *irec = &cur->bc_rec.rc; in xfs_refcountbt_key_diff() local 190 start = xfs_refcount_encode_startblock(irec->rc_startblock, in xfs_refcountbt_key_diff() 191 irec->rc_domain); in xfs_refcountbt_key_diff()
|
H A D | xfs_ialloc.h | 95 struct xfs_inobt_rec_incore *irec); 97 const struct xfs_inobt_rec_incore *irec);
|
H A 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()
|
H A D | xfs_alloc.c | 240 struct xfs_alloc_rec_incore *irec) in xfs_alloc_btrec_to_irec() argument 254 if (irec->ar_blockcount == 0) in xfs_alloc_check_irec() 258 if (!xfs_verify_agbext(pag, irec->ar_startblock, irec->ar_blockcount)) in xfs_alloc_check_irec() 278 irec->ar_blockcount); in xfs_alloc_complain_bad_rec() 292 struct xfs_alloc_rec_incore irec; in xfs_alloc_get_rec() local 301 xfs_alloc_btrec_to_irec(rec, &irec); in xfs_alloc_get_rec() 302 fa = xfs_alloc_check_irec(cur, &irec); in xfs_alloc_get_rec() 306 *bno = irec.ar_startblock; in xfs_alloc_get_rec() 307 *len = irec.ar_blockcount; in xfs_alloc_get_rec() 3847 struct xfs_alloc_rec_incore irec; in xfs_alloc_query_range_helper() local [all …]
|
H A D | xfs_bmap.c | 108 struct xfs_bmbt_irec *irec, in xfs_bmbt_lookup_eq() argument 111 cur->bc_rec.b = *irec; in xfs_bmbt_lookup_eq() 157 struct xfs_bmbt_irec *irec) in xfs_bmbt_update() argument 1113 irec->br_startoff, irec->br_startblock, irec->br_blockcount, in xfs_bmap_complain_bad_rec() 1114 irec->br_state); in xfs_bmap_complain_bad_rec() 3736 struct xfs_bmbt_irec *irec, in xfs_trim_extent() argument 3743 if (irec->br_startoff + irec->br_blockcount <= bno || in xfs_trim_extent() 3745 irec->br_blockcount = 0; in xfs_trim_extent() 3760 if (end < irec->br_startoff + irec->br_blockcount) { in xfs_trim_extent() 3761 distance = irec->br_startoff + irec->br_blockcount - end; in xfs_trim_extent() [all …]
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_iwalk.c | 99 struct xfs_inobt_rec_incore *irec) in xfs_iwalk_ichunk_ra() argument 113 if (imask & ~irec->ir_free) { in xfs_iwalk_ichunk_ra() 136 idx = agino - irec->ir_startino; in xfs_iwalk_adjust_start() 145 irec->ir_freecount++; in xfs_iwalk_adjust_start() 219 irec->ir_startino + j); in xfs_iwalk_ag_recs() 273 struct xfs_inobt_rec_incore *irec; in xfs_iwalk_ag_start() local 305 irec = &iwag->recs[iwag->nr_recs]; in xfs_iwalk_ag_start() 358 struct xfs_inobt_rec_incore *irec; in xfs_iwalk_run_callbacks() local 420 struct xfs_inobt_rec_incore *irec; in xfs_iwalk_ag() local 428 irec = &iwag->recs[iwag->nr_recs]; in xfs_iwalk_ag() [all …]
|
H A D | xfs_fsmap.c | 400 struct xfs_rmap_irec irec; in xfs_getfsmap_datadev_bnobt_helper() local 409 irec.rm_offset = 0; in xfs_getfsmap_datadev_bnobt_helper() 410 irec.rm_flags = 0; in xfs_getfsmap_datadev_bnobt_helper() 418 struct xfs_rmap_irec *irec, in xfs_getfsmap_set_irec_flags() argument 421 irec->rm_flags = 0; in xfs_getfsmap_set_irec_flags() 423 irec->rm_flags |= XFS_RMAP_ATTR_FORK; in xfs_getfsmap_set_irec_flags() 482 struct xfs_rmap_irec irec; in xfs_getfsmap_rtdev_rtbitmap_helper() local 488 irec.rm_startblock = rtbno; in xfs_getfsmap_rtdev_rtbitmap_helper() 492 irec.rm_blockcount = rtbno; in xfs_getfsmap_rtdev_rtbitmap_helper() 495 irec.rm_offset = 0; in xfs_getfsmap_rtdev_rtbitmap_helper() [all …]
|
H A D | xfs_itable.c | 391 const struct xfs_inobt_rec_incore *irec, in xfs_inumbers_walk() argument 395 .xi_startino = XFS_AGINO_TO_INO(mp, agno, irec->ir_startino), in xfs_inumbers_walk() 396 .xi_alloccount = irec->ir_count - irec->ir_freecount, in xfs_inumbers_walk() 397 .xi_allocmask = ~irec->ir_free, in xfs_inumbers_walk() 407 ic->breq->startino = XFS_AGINO_TO_INO(mp, agno, irec->ir_startino) + in xfs_inumbers_walk()
|
H A D | xfs_refcount_item.c | 567 struct xfs_bmbt_irec irec = { in xfs_cui_item_recover() local 574 xfs_refcount_increase_extent(tp, &irec); in xfs_cui_item_recover() 577 xfs_refcount_decrease_extent(tp, &irec); in xfs_cui_item_recover() 581 irec.br_startblock, in xfs_cui_item_recover() 582 irec.br_blockcount); in xfs_cui_item_recover() 586 irec.br_startblock, in xfs_cui_item_recover() 587 irec.br_blockcount); in xfs_cui_item_recover()
|
H A D | xfs_iwalk.h | 36 const struct xfs_inobt_rec_incore *irec,
|
/openbmc/linux/drivers/media/platform/st/sti/c8sectpfe/ |
H A D | c8sectpfe-core.c | 75 if (channel->irec && readl(channel->irec + DMA_PRDS_TPENABLE)) in c8sectpfe_timer_interrupt() 91 if (unlikely(!channel || !channel->irec)) in channel_swdemux_tsklet() 96 wp = readl(channel->irec + DMA_PRDS_BUSWP_TP(0)); in channel_swdemux_tsklet() 97 rp = readl(channel->irec + DMA_PRDS_BUSRP_TP(0)); in channel_swdemux_tsklet() 134 writel(wp, channel->irec + DMA_PRDS_BUSRP_TP(0)); in channel_swdemux_tsklet() 243 writel(0x1, channel->irec + DMA_PRDS_TPENABLE); in c8sectpfe_start_feed() 305 writel(0, channel->irec + DMA_PRDS_TPENABLE); in c8sectpfe_stop_feed() 327 channel->irec + DMA_PRDS_BUSBASE_TP(0)); in c8sectpfe_stop_feed() 333 channel->irec + DMA_PRDS_BUSWP_TP(0)); in c8sectpfe_stop_feed() 614 tsin->irec += (tsin->tsin_id * DMA_PRDS_SIZE); in configure_memdma_and_inputblock() [all …]
|
/openbmc/linux/fs/ext4/ |
H A D | fsmap.c | 193 struct ext4_fsmap irec; in ext4_getfsmap_datadev_helper() local 238 irec.fmr_device = 0; in ext4_getfsmap_datadev_helper() 239 irec.fmr_physical = fsb; in ext4_getfsmap_datadev_helper() 240 irec.fmr_length = fslen; in ext4_getfsmap_datadev_helper() 241 irec.fmr_owner = EXT4_FMR_OWN_FREE; in ext4_getfsmap_datadev_helper() 242 irec.fmr_flags = 0; in ext4_getfsmap_datadev_helper() 245 if (ext4_fsmap_next_pblk(&irec) == in ext4_getfsmap_datadev_helper() 247 info->gfi_lastfree = irec; in ext4_getfsmap_datadev_helper() 260 struct ext4_fsmap irec; in ext4_getfsmap_logdev() local 284 irec.fmr_owner = EXT4_FMR_OWN_LOG; in ext4_getfsmap_logdev() [all …]
|