ubh 761 fs/ufs/balloc.c struct ufs_buffer_head *ubh, ubh 777 fs/ufs/balloc.c cp = ubh->bh[begin]->b_data + offset; ubh 980 fs/ufs/inode.c struct ufs_buffer_head *ubh = ubh_bread(sb, ind_block, uspi->s_bsize); ubh 983 fs/ufs/inode.c if (!ubh) ubh 988 fs/ufs/inode.c void *p = ubh_get_data_ptr(uspi, ubh, i); ubh 997 fs/ufs/inode.c void *p = ubh_get_data_ptr(uspi, ubh, i); ubh 1005 fs/ufs/inode.c ubh_bforget(ubh); ubh 1009 fs/ufs/inode.c static void free_branch_tail(struct inode *inode, unsigned from, struct ufs_buffer_head *ubh, int depth) ubh 1017 fs/ufs/inode.c void *p = ubh_get_data_ptr(uspi, ubh, i); ubh 1023 fs/ufs/inode.c ubh_mark_buffer_dirty(ubh); ubh 1031 fs/ufs/inode.c void *p = ubh_get_data_ptr(uspi, ubh, i); ubh 1037 fs/ufs/inode.c ubh_mark_buffer_dirty(ubh); ubh 1043 fs/ufs/inode.c if (IS_SYNC(inode) && ubh_buffer_dirty(ubh)) ubh 1044 fs/ufs/inode.c ubh_sync_block(ubh); ubh 1045 fs/ufs/inode.c ubh_brelse(ubh); ubh 1126 fs/ufs/inode.c struct ufs_buffer_head *ubh[3]; ubh 1154 fs/ufs/inode.c ubh[i] = ubh_bread(sb, block, uspi->s_bsize); ubh 1155 fs/ufs/inode.c if (!ubh[i]) { ubh 1161 fs/ufs/inode.c p = ubh_get_data_ptr(uspi, ubh[i], offsets[i + 1]++); ubh 1164 fs/ufs/inode.c free_branch_tail(inode, offsets[i + 1], ubh[i], depth - i - 1); ubh 508 fs/ufs/super.c struct ufs_buffer_head * ubh; ubh 529 fs/ufs/super.c ubh = ubh_bread(sb, uspi->s_csaddr + i, size); ubh 531 fs/ufs/super.c if (!ubh) ubh 534 fs/ufs/super.c ubh_ubhcpymem (space, ubh, size); ubh 537 fs/ufs/super.c ubh_brelse (ubh); ubh 538 fs/ufs/super.c ubh = NULL; ubh 648 fs/ufs/super.c struct ufs_buffer_head * ubh; ubh 664 fs/ufs/super.c ubh = ubh_bread(sb, uspi->s_csaddr + i, size); ubh 666 fs/ufs/super.c ubh_memcpyubh (ubh, space, size); ubh 668 fs/ufs/super.c ubh_mark_buffer_uptodate (ubh, 1); ubh 669 fs/ufs/super.c ubh_mark_buffer_dirty (ubh); ubh 670 fs/ufs/super.c ubh_brelse (ubh); ubh 785 fs/ufs/super.c struct ufs_buffer_head * ubh; ubh 794 fs/ufs/super.c ubh = NULL; ubh 1001 fs/ufs/super.c ubh = ubh_bread_uspi(uspi, sb, uspi->s_sbbase + super_block_offset/block_size, super_block_size); ubh 1003 fs/ufs/super.c if (!ubh) ubh 1054 fs/ufs/super.c ubh = NULL; ubh 1104 fs/ufs/super.c ubh = NULL; ubh 1295 fs/ufs/super.c if (ubh) ubh 22 fs/ufs/util.c struct ufs_buffer_head * ubh; ubh 30 fs/ufs/util.c ubh = kmalloc (sizeof (struct ufs_buffer_head), GFP_NOFS); ubh 31 fs/ufs/util.c if (!ubh) ubh 33 fs/ufs/util.c ubh->fragment = fragment; ubh 34 fs/ufs/util.c ubh->count = count; ubh 36 fs/ufs/util.c if (!(ubh->bh[i] = sb_bread(sb, fragment + i))) ubh 39 fs/ufs/util.c ubh->bh[i] = NULL; ubh 40 fs/ufs/util.c return ubh; ubh 43 fs/ufs/util.c brelse (ubh->bh[j]); ubh 44 fs/ufs/util.c kfree(ubh); ubh 72 fs/ufs/util.c void ubh_brelse (struct ufs_buffer_head * ubh) ubh 75 fs/ufs/util.c if (!ubh) ubh 77 fs/ufs/util.c for (i = 0; i < ubh->count; i++) ubh 78 fs/ufs/util.c brelse (ubh->bh[i]); ubh 79 fs/ufs/util.c kfree (ubh); ubh 93 fs/ufs/util.c void ubh_mark_buffer_dirty (struct ufs_buffer_head * ubh) ubh 96 fs/ufs/util.c if (!ubh) ubh 98 fs/ufs/util.c for ( i = 0; i < ubh->count; i++ ) ubh 99 fs/ufs/util.c mark_buffer_dirty (ubh->bh[i]); ubh 102 fs/ufs/util.c void ubh_mark_buffer_uptodate (struct ufs_buffer_head * ubh, int flag) ubh 105 fs/ufs/util.c if (!ubh) ubh 108 fs/ufs/util.c for ( i = 0; i < ubh->count; i++ ) ubh 109 fs/ufs/util.c set_buffer_uptodate (ubh->bh[i]); ubh 111 fs/ufs/util.c for ( i = 0; i < ubh->count; i++ ) ubh 112 fs/ufs/util.c clear_buffer_uptodate (ubh->bh[i]); ubh 116 fs/ufs/util.c void ubh_sync_block(struct ufs_buffer_head *ubh) ubh 118 fs/ufs/util.c if (ubh) { ubh 121 fs/ufs/util.c for (i = 0; i < ubh->count; i++) ubh 122 fs/ufs/util.c write_dirty_buffer(ubh->bh[i], 0); ubh 124 fs/ufs/util.c for (i = 0; i < ubh->count; i++) ubh 125 fs/ufs/util.c wait_on_buffer(ubh->bh[i]); ubh 129 fs/ufs/util.c void ubh_bforget (struct ufs_buffer_head * ubh) ubh 132 fs/ufs/util.c if (!ubh) ubh 134 fs/ufs/util.c for ( i = 0; i < ubh->count; i++ ) if ( ubh->bh[i] ) ubh 135 fs/ufs/util.c bforget (ubh->bh[i]); ubh 138 fs/ufs/util.c int ubh_buffer_dirty (struct ufs_buffer_head * ubh) ubh 142 fs/ufs/util.c if (!ubh) ubh 144 fs/ufs/util.c for ( i = 0; i < ubh->count; i++ ) ubh 145 fs/ufs/util.c result |= buffer_dirty(ubh->bh[i]); ubh 150 fs/ufs/util.c unsigned char * mem, struct ufs_buffer_head * ubh, unsigned size) ubh 153 fs/ufs/util.c if (size > (ubh->count << uspi->s_fshift)) ubh 154 fs/ufs/util.c size = ubh->count << uspi->s_fshift; ubh 158 fs/ufs/util.c memcpy (mem, ubh->bh[bhno]->b_data, len); ubh 166 fs/ufs/util.c struct ufs_buffer_head * ubh, unsigned char * mem, unsigned size) ubh 169 fs/ufs/util.c if (size > (ubh->count << uspi->s_fshift)) ubh 170 fs/ufs/util.c size = ubh->count << uspi->s_fshift; ubh 174 fs/ufs/util.c memcpy (ubh->bh[bhno]->b_data, mem, len); ubh 276 fs/ufs/util.h #define ubh_ubhcpymem(mem,ubh,size) _ubh_ubhcpymem_(uspi,mem,ubh,size) ubh 278 fs/ufs/util.h #define ubh_memcpyubh(ubh,mem,size) _ubh_memcpyubh_(uspi,ubh,mem,size) ubh 315 fs/ufs/util.h #define ubh_get_ucg(ubh) \ ubh 316 fs/ufs/util.h ((struct ufs_cylinder_group *)((ubh)->bh[0]->b_data)) ubh 323 fs/ufs/util.h #define ubh_get_addr8(ubh,begin) \ ubh 324 fs/ufs/util.h ((u8*)(ubh)->bh[(begin) >> uspi->s_fshift]->b_data + \ ubh 327 fs/ufs/util.h #define ubh_get_addr16(ubh,begin) \ ubh 328 fs/ufs/util.h (((__fs16*)((ubh)->bh[(begin) >> (uspi->s_fshift-1)]->b_data)) + \ ubh 331 fs/ufs/util.h #define ubh_get_addr32(ubh,begin) \ ubh 332 fs/ufs/util.h (((__fs32*)((ubh)->bh[(begin) >> (uspi->s_fshift-2)]->b_data)) + \ ubh 335 fs/ufs/util.h #define ubh_get_addr64(ubh,begin) \ ubh 336 fs/ufs/util.h (((__fs64*)((ubh)->bh[(begin) >> (uspi->s_fshift-3)]->b_data)) + \ ubh 342 fs/ufs/util.h struct ufs_buffer_head *ubh, ubh 346 fs/ufs/util.h return ubh_get_addr64(ubh, blk); ubh 348 fs/ufs/util.h return ubh_get_addr32(ubh, blk); ubh 351 fs/ufs/util.h #define ubh_blkmap(ubh,begin,bit) \ ubh 352 fs/ufs/util.h ((*ubh_get_addr(ubh, (begin) + ((bit) >> 3)) >> ((bit) & 7)) & (0xff >> (UFS_MAXFRAG - uspi->s_fpb))) ubh 379 fs/ufs/util.h #define ubh_setbit(ubh,begin,bit) \ ubh 380 fs/ufs/util.h (*ubh_get_addr(ubh, (begin) + ((bit) >> 3)) |= (1 << ((bit) & 7))) ubh 382 fs/ufs/util.h #define ubh_clrbit(ubh,begin,bit) \ ubh 383 fs/ufs/util.h (*ubh_get_addr (ubh, (begin) + ((bit) >> 3)) &= ~(1 << ((bit) & 7))) ubh 385 fs/ufs/util.h #define ubh_isset(ubh,begin,bit) \ ubh 386 fs/ufs/util.h (*ubh_get_addr (ubh, (begin) + ((bit) >> 3)) & (1 << ((bit) & 7))) ubh 388 fs/ufs/util.h #define ubh_isclr(ubh,begin,bit) (!ubh_isset(ubh,begin,bit)) ubh 390 fs/ufs/util.h #define ubh_find_first_zero_bit(ubh,begin,size) _ubh_find_next_zero_bit_(uspi,ubh,begin,size,0) ubh 392 fs/ufs/util.h #define ubh_find_next_zero_bit(ubh,begin,size,offset) _ubh_find_next_zero_bit_(uspi,ubh,begin,size,offset) ubh 394 fs/ufs/util.h struct ufs_sb_private_info * uspi, struct ufs_buffer_head * ubh, ubh 407 fs/ufs/util.h pos = find_next_zero_bit_le(ubh->bh[base]->b_data, count, offset); ubh 439 fs/ufs/util.h #define ubh_find_last_zero_bit(ubh,begin,size,offset) _ubh_find_last_zero_bit_(uspi,ubh,begin,size,offset) ubh 441 fs/ufs/util.h struct ufs_sb_private_info * uspi, struct ufs_buffer_head * ubh, ubh 456 fs/ufs/util.h pos = find_last_zero_bit (ubh->bh[base]->b_data, ubh 466 fs/ufs/util.h #define ubh_isblockclear(ubh,begin,block) (!_ubh_isblockset_(uspi,ubh,begin,block)) ubh 468 fs/ufs/util.h #define ubh_isblockset(ubh,begin,block) _ubh_isblockset_(uspi,ubh,begin,block) ubh 470 fs/ufs/util.h struct ufs_buffer_head * ubh, unsigned begin, unsigned block) ubh 475 fs/ufs/util.h return (*ubh_get_addr (ubh, begin + block) == 0xff); ubh 478 fs/ufs/util.h return (*ubh_get_addr (ubh, begin + (block >> 1)) & mask) == mask; ubh 481 fs/ufs/util.h return (*ubh_get_addr (ubh, begin + (block >> 2)) & mask) == mask; ubh 484 fs/ufs/util.h return (*ubh_get_addr (ubh, begin + (block >> 3)) & mask) == mask; ubh 489 fs/ufs/util.h #define ubh_clrblock(ubh,begin,block) _ubh_clrblock_(uspi,ubh,begin,block) ubh 491 fs/ufs/util.h struct ufs_buffer_head * ubh, unsigned begin, unsigned block) ubh 495 fs/ufs/util.h *ubh_get_addr (ubh, begin + block) = 0x00; ubh 498 fs/ufs/util.h *ubh_get_addr (ubh, begin + (block >> 1)) &= ~(0x0f << ((block & 0x01) << 2)); ubh 501 fs/ufs/util.h *ubh_get_addr (ubh, begin + (block >> 2)) &= ~(0x03 << ((block & 0x03) << 1)); ubh 504 fs/ufs/util.h *ubh_get_addr (ubh, begin + (block >> 3)) &= ~(0x01 << ((block & 0x07))); ubh 509 fs/ufs/util.h #define ubh_setblock(ubh,begin,block) _ubh_setblock_(uspi,ubh,begin,block) ubh 511 fs/ufs/util.h struct ufs_buffer_head * ubh, unsigned begin, unsigned block) ubh 515 fs/ufs/util.h *ubh_get_addr(ubh, begin + block) = 0xff; ubh 518 fs/ufs/util.h *ubh_get_addr(ubh, begin + (block >> 1)) |= (0x0f << ((block & 0x01) << 2)); ubh 521 fs/ufs/util.h *ubh_get_addr(ubh, begin + (block >> 2)) |= (0x03 << ((block & 0x03) << 1)); ubh 524 fs/ufs/util.h *ubh_get_addr(ubh, begin + (block >> 3)) |= (0x01 << ((block & 0x07)));