/linux-2.4.37.9/fs/affs/ |
D | bitmap.c | 99 data = (u32 *)bh->b_data + bit / 32 + 1; in affs_free_block() 108 tmp = be32_to_cpu(*(u32 *)bh->b_data); in affs_free_block() 109 *(u32 *)bh->b_data = cpu_to_be32(tmp - mask); in affs_free_block() 211 data = (u32 *)bh->b_data + bit / 32 + 1; in affs_alloc_block() 212 enddata = (u32 *)((u8 *)bh->b_data + sb->s_blocksize); in affs_alloc_block() 250 tmp = be32_to_cpu(*(u32 *)bh->b_data); in affs_alloc_block() 251 *(u32 *)bh->b_data = cpu_to_be32(tmp + mask); in affs_alloc_block() 302 bmap_blk = (u32 *)AFFS_SB->s_root_bh->b_data; in affs_init_bitmap() 323 bm->bm_free = affs_count_free_bits(sb->s_blocksize - 4, bh->b_data + 4); in affs_init_bitmap() 338 bmap_blk = (u32 *)bmap_bh->b_data; in affs_init_bitmap() [all …]
|
/linux-2.4.37.9/fs/hpfs/ |
D | buffer.c | 131 return bh->b_data; in hpfs_map_sector() 150 return bh->b_data; in hpfs_get_sector() 181 memcpy(data, bh->b_data, 512); in hpfs_map_4sectors() 186 memcpy(data + 512, bh->b_data, 512); in hpfs_map_4sectors() 191 memcpy(data + 2 * 512, bh->b_data, 512); in hpfs_map_4sectors() 196 memcpy(data + 3 * 512, bh->b_data, 512); in hpfs_map_4sectors() 234 memcpy(qbh->data, qbh->bh[0]->b_data, 512); in hpfs_get_4sectors() 235 memcpy(qbh->data + 512, qbh->bh[1]->b_data, 512); in hpfs_get_4sectors() 236 memcpy(qbh->data + 2*512, qbh->bh[2]->b_data, 512); in hpfs_get_4sectors() 237 memcpy(qbh->data + 3*512, qbh->bh[3]->b_data, 512); in hpfs_get_4sectors() [all …]
|
/linux-2.4.37.9/fs/minix/ |
D | bitmap.c | 31 sum += nibblemap[bh->b_data[j] & 0xf] in count_free() 32 + nibblemap[(bh->b_data[j]>>4) & 0xf]; in count_free() 39 sum += nibblemap[bh->b_data[j] & 0xf] in count_free() 40 + nibblemap[(bh->b_data[j]>>4) & 0xf]; in count_free() 45 i = *(__u16 *)(&bh->b_data[j]) | ~((1<<i) - 1); in count_free() 75 if (!minix_test_and_clear_bit(bit,bh->b_data)) in minix_free_block() 97 if ((j = minix_find_first_zero_bit(bh->b_data, 8192)) < 8192) in minix_new_block() 102 if (minix_test_and_set_bit(j,bh->b_data)) { in minix_new_block() 141 p = (void *)(*bh)->b_data; in minix_V1_raw_inode() 166 p = (void *)(*bh)->b_data; in minix_V2_raw_inode() [all …]
|
/linux-2.4.37.9/include/linux/ |
D | amigaffs.h | 53 memset(bh->b_data, 0 , sb->s_blocksize); in affs_getzeroblk() 84 u32 tmp = be32_to_cpu(((u32 *)bh->b_data)[5]); in affs_adjust_checksum() 85 ((u32 *)bh->b_data)[5] = cpu_to_be32(tmp - val); in affs_adjust_checksum() 90 u32 tmp = be32_to_cpu(((u32 *)bh->b_data)[0]); in affs_adjust_bitmapchecksum() 91 ((u32 *)bh->b_data)[0] = cpu_to_be32(tmp - val); in affs_adjust_bitmapchecksum() 160 #define AFFS_HEAD(bh) ((struct affs_head *)(bh)->b_data) 161 #define AFFS_TAIL(sb, bh) ((struct affs_tail *)((bh)->b_data+(sb)->s_blocksize-sizeof(struct affs_t… 162 #define AFFS_ROOT_HEAD(bh) ((struct affs_root_head *)(bh)->b_data) 163 #define AFFS_ROOT_TAIL(sb, bh) ((struct affs_root_tail *)((bh)->b_data+(sb)->s_blocksize-sizeof(str… 164 #define AFFS_DATA_HEAD(bh) ((struct affs_data_head *)(bh)->b_data) [all …]
|
/linux-2.4.37.9/fs/udf/ |
D | truncate.c | 111 memset(bh->b_data, 0x00, udf_file_entry_alloc_offset(inode)); in udf_truncate_extents() 113 memset(bh->b_data, 0x00, sizeof(struct allocExtDesc)); in udf_truncate_extents() 125 struct allocExtDesc *aed = (struct allocExtDesc *)(bh->b_data); in udf_truncate_extents() 128 udf_update_tag(bh->b_data, lenalloc + in udf_truncate_extents() 131 udf_update_tag(bh->b_data, sizeof(struct allocExtDesc)); in udf_truncate_extents() 156 memset(bh->b_data, 0x00, udf_file_entry_alloc_offset(inode)); in udf_truncate_extents() 158 memset(bh->b_data, 0x00, sizeof(struct allocExtDesc)); in udf_truncate_extents() 170 struct allocExtDesc *aed = (struct allocExtDesc *)(bh->b_data); in udf_truncate_extents() 173 udf_update_tag(bh->b_data, lenalloc + in udf_truncate_extents() 176 udf_update_tag(bh->b_data, sizeof(struct allocExtDesc)); in udf_truncate_extents()
|
D | balloc.c | 190 if (udf_set_bit(bit + i, bh->b_data)) in udf_bitmap_free_blocks() 193 udf_debug("byte=%2x\n", ((char *)bh->b_data)[(bit + i) >> 3]); in udf_bitmap_free_blocks() 255 if (!udf_test_bit(bit, bh->b_data)) in udf_bitmap_prealloc_blocks() 259 else if (!udf_clear_bit(bit, bh->b_data)) in udf_bitmap_prealloc_blocks() 311 ptr = memscan((char *)bh->b_data + group_start, 0xFF, sb->s_blocksize - group_start); in udf_bitmap_new_block() 313 if ((ptr - ((char *)bh->b_data)) < sb->s_blocksize) in udf_bitmap_new_block() 317 if (udf_test_bit(bit, bh->b_data)) in udf_bitmap_new_block() 322 bit = udf_find_next_one_bit(bh->b_data, end_goal, bit); in udf_bitmap_new_block() 325 ptr = memscan((char *)bh->b_data + (bit >> 3), 0xFF, sb->s_blocksize - ((bit + 7) >> 3)); in udf_bitmap_new_block() 326 newbit = (ptr - ((char *)bh->b_data)) << 3; in udf_bitmap_new_block() [all …]
|
D | misc.c | 80 fe = (struct fileEntry *)(*bh)->b_data; in udf_add_extendedattr() 88 efe = (struct extendedFileEntry *)(*bh)->b_data; in udf_add_extendedattr() 93 ea = &(*bh)->b_data[offset]; in udf_add_extendedattr() 99 ad = &(*bh)->b_data[offset]; in udf_add_extendedattr() 196 fe = (struct fileEntry *)(*bh)->b_data; in udf_get_extendedattr() 205 efe = (struct extendedFileEntry *)(*bh)->b_data; in udf_get_extendedattr() 278 tag_p = (tag *)(bh->b_data); in udf_read_tagged() 292 checksum += (uint8_t)(bh->b_data[i]); in udf_read_tagged() 294 checksum += (uint8_t)(bh->b_data[i]); in udf_read_tagged() 311 le16_to_cpu(tag_p->descCRC) == udf_crc(bh->b_data + sizeof(tag), in udf_read_tagged()
|
D | inode.c | 195 memcpy(kaddr, bh->b_data + udf_file_entry_alloc_offset(inode), in udf_expand_file_adinicb() 201 memset(bh->b_data + udf_file_entry_alloc_offset(inode), in udf_expand_file_adinicb() 258 memset(dbh->b_data, 0x00, inode->i_sb->s_blocksize); in udf_expand_dir_adinicb() 279 dfi = (struct fileIdentDesc *)(dbh->b_data + dfibh.soffset); in udf_expand_dir_adinicb() 290 memset(sbh->b_data + udf_file_entry_alloc_offset(inode), in udf_expand_dir_adinicb() 386 memset(bh->b_data, 0x00, inode->i_sb->s_blocksize); in udf_getblk() 888 memset(bh->b_data + offset, 0x00, inode->i_sb->s_blocksize - offset); in udf_truncate() 976 fe = (struct fileEntry *)bh->b_data; in __udf_read_inode() 989 ie = (struct indirectEntry *)ibh->b_data; in __udf_read_inode() 1042 fe = (struct fileEntry *)bh->b_data; in udf_fill_inode() [all …]
|
D | partition.c | 86 loc = le32_to_cpu(((uint32_t *)bh->b_data)[index]); in udf_get_pblock_virt15() 114 st = (struct sparingTable *)UDF_SB_TYPESPAR(sb,partition).s_spar_map[i]->b_data; in udf_get_pblock_spar15() 157 st = (struct sparingTable *)sdata->s_spar_map[j]->b_data; in udf_relocate_blocks() 173 st = (struct sparingTable *)sdata->s_spar_map[j]->b_data; in udf_relocate_blocks() 200 st = (struct sparingTable *)sdata->s_spar_map[j]->b_data; in udf_relocate_blocks()
|
/linux-2.4.37.9/fs/ext2/ |
D | balloc.c | 66 sb->u.ext2_sb.s_group_desc[group_desc]->b_data; in ext2_get_group_desc() 317 if (!ext2_clear_bit (bit + i, bh->b_data)) in ext2_free_blocks() 413 if (!ext2_test_bit(j, bh->b_data)) { in ext2_new_block() 427 j = ext2_find_next_zero_bit(bh->b_data, end_goal, j); in ext2_new_block() 443 p = ((char *) bh->b_data) + (j >> 3); in ext2_new_block() 445 k = (r - ((char *) bh->b_data)) << 3; in ext2_new_block() 451 k = ext2_find_next_zero_bit ((unsigned long *) bh->b_data, in ext2_new_block() 483 r = memscan(bh->b_data, 0, EXT2_BLOCKS_PER_GROUP(sb) >> 3); in ext2_new_block() 484 j = (r - bh->b_data) << 3; in ext2_new_block() 488 j = ext2_find_first_zero_bit ((unsigned long *) bh->b_data, in ext2_new_block() [all …]
|
D | bitmap.c | 24 sum += nibblemap[map->b_data[i] & 0xf] + in ext2_count_free() 25 nibblemap[(map->b_data[i] >> 4) & 0xf]; in ext2_count_free()
|
/linux-2.4.37.9/fs/adfs/ |
D | dir_f.c | 89 *(u8 *)(bh[_buf]->b_data + _off); \ 95 *(u32 *)(bh[_buf]->b_data + _off); \ 101 (u8 *)(_bh[_buf]->b_data + _off); \ 279 memcpy(&de, dir->bh[buffer]->b_data + offset, thissize); in __adfs_dir_get() 281 memcpy(((char *)&de) + thissize, dir->bh[buffer + 1]->b_data, in __adfs_dir_get() 312 memcpy(&de, dir->bh[buffer]->b_data + offset, thissize); in __adfs_dir_put() 314 memcpy(((char *)&de) + thissize, dir->bh[buffer + 1]->b_data, in __adfs_dir_put() 325 memcpy(dir->bh[buffer]->b_data + offset, &de, thissize); in __adfs_dir_put() 327 memcpy(dir->bh[buffer + 1]->b_data, ((char *)&de) + thissize, in __adfs_dir_put() 415 dir->bh[0]->b_data[0] += 1; in adfs_f_update() [all …]
|
D | dir_fplus.c | 43 h = (struct adfs_bigdirheader *)dir->bh[0]->b_data; in adfs_fplus_read() 69 t = (struct adfs_bigdirtail *)(dir->bh[size - 1]->b_data + (sb->s_blocksize - 8)); in adfs_fplus_read() 89 struct adfs_bigdirheader *h = (struct adfs_bigdirheader *)dir->bh[0]->b_data; in adfs_fplus_setpos() 112 memcpy(to, dir->bh[buffer]->b_data + offset, len); in dir_memcpy() 118 memcpy(c, dir->bh[buffer]->b_data + offset, partial); in dir_memcpy() 119 memcpy(c + partial, dir->bh[buffer + 1]->b_data, remainder); in dir_memcpy() 126 struct adfs_bigdirheader *h = (struct adfs_bigdirheader *)dir->bh[0]->b_data; in adfs_fplus_getnext()
|
D | super.c | 145 map = dm[i].dm_bh->b_data; in adfs_checkmap() 310 unsigned char *b_data; in adfs_read_super() local 329 b_data = bh->b_data + (ADFS_DISCRECORD % BLOCK_SIZE); in adfs_read_super() 331 if (adfs_checkbblk(b_data)) { in adfs_read_super() 338 dr = (struct adfs_discrecord *)(b_data + ADFS_DR_OFFSET); in adfs_read_super() 364 b_data = bh->b_data + (ADFS_DISCRECORD % sb->s_blocksize); in adfs_read_super() 365 if (adfs_checkbblk(b_data)) { in adfs_read_super() 369 dr = (struct adfs_discrecord *)(b_data + ADFS_DR_OFFSET); in adfs_read_super() 401 dr = (struct adfs_discrecord *)(sb->u.adfs_sb.s_map[0].dm_bh->b_data + 4); in adfs_read_super()
|
/linux-2.4.37.9/drivers/md/ |
D | xor.c | 34 p0 = (unsigned long *) bh_ptr[0]->b_data; in xor_block() 35 p1 = (unsigned long *) bh_ptr[1]->b_data; in xor_block() 41 p2 = (unsigned long *) bh_ptr[2]->b_data; in xor_block() 47 p3 = (unsigned long *) bh_ptr[3]->b_data; in xor_block() 53 p4 = (unsigned long *) bh_ptr[4]->b_data; in xor_block()
|
/linux-2.4.37.9/fs/sysv/ |
D | super.c | 55 sbd1 = sbd2 = (struct xenix_super_block *) bh1->b_data; in detected_xenix() 58 sbd1 = (struct xenix_super_block *) bh1->b_data; in detected_xenix() 59 sbd2 = (struct xenix_super_block *) (bh2->b_data - 512); in detected_xenix() 85 sbd = (struct sysv4_super_block *) (bh1->b_data + BLOCK_SIZE/2); in detected_sysv4() 87 sbd = (struct sysv4_super_block *) bh2->b_data; in detected_sysv4() 113 sbd = (struct sysv2_super_block *) (bh1->b_data + BLOCK_SIZE/2); in detected_sysv2() 115 sbd = (struct sysv2_super_block *) bh2->b_data; in detected_sysv2() 139 sbd = (struct coh_super_block *) bh1->b_data; in detected_coherent() 160 struct v7_super_block *sbd = (struct v7_super_block *)bh2->b_data; in detected_v7() 180 struct xenix_super_block * sbd = (struct xenix_super_block *)bh->b_data; in detect_xenix() [all …]
|
D | balloc.c | 32 char *bh_data = bh->b_data; in get_chunk() 82 memset(bh->b_data, 0, sb->s_blocksize); in sysv_free_block() 83 *(u16*)bh->b_data = cpu_to_fs16(sb, count); in sysv_free_block() 134 count = fs16_to_cpu(sb, *(u16*)bh->b_data); in sysv_new_block() 202 n = fs16_to_cpu(sb, *(u16*)bh->b_data); in sysv_count_free_blocks()
|
/linux-2.4.37.9/fs/jbd/ |
D | recovery.c | 188 tagp = &bh->b_data[sizeof(journal_header_t)]; in count_tags() 190 while ((tagp - bh->b_data + sizeof(journal_block_tag_t)) <= size) { in count_tags() 395 tmp = (journal_header_t *)bh->b_data; in do_one_pass() 433 tagp = &bh->b_data[sizeof(journal_header_t)]; in do_one_pass() 434 while ((tagp - bh->b_data +sizeof(journal_block_tag_t)) in do_one_pass() 484 memcpy(nbh->b_data, obh->b_data, in do_one_pass() 487 *((unsigned int *)bh->b_data) = in do_one_pass() 582 header = (journal_revoke_header_t *) bh->b_data; in scan_revoke_records() 590 blocknr = ntohl(* ((unsigned int *) (bh->b_data+offset))); in scan_revoke_records()
|
/linux-2.4.37.9/fs/freevxfs/ |
D | vxfs_olt.c | 89 if (!bp || !bp->b_data) in vxfs_read_olt() 92 op = (struct vxfs_olt *)bp->b_data; in vxfs_read_olt() 108 oaddr = (char *)bp->b_data + op->olt_size; in vxfs_read_olt() 109 eaddr = (char *)bp->b_data + (infp->vsi_oltsize * sbp->s_blocksize); in vxfs_read_olt()
|
/linux-2.4.37.9/fs/fat/ |
D | cache.c | 72 next = CF_LE_L(((__u32 *) bh->b_data)[(first & in default_fat_access() 81 next = CF_LE_W(((__u16 *) bh->b_data)[(first & in default_fat_access() 85 p_first = &((__u8 *)bh->b_data)[first & (sb->s_blocksize - 1)]; in default_fat_access() 86 p_last = &((__u8 *)bh2->b_data)[(first + 1) & (sb->s_blocksize - 1)]; in default_fat_access() 93 ((__u32 *)bh->b_data)[(first & (sb->s_blocksize - 1)) >> 2] in default_fat_access() 96 ((__u16 *)bh->b_data)[(first & (sb->s_blocksize - 1)) >> 1] in default_fat_access() 120 memcpy(c_bh2->b_data, bh2->b_data, sb->s_blocksize); in default_fat_access() 124 memcpy(c_bh->b_data, bh->b_data, sb->s_blocksize); in default_fat_access()
|
/linux-2.4.37.9/fs/ufs/ |
D | dir.c | 93 de = (struct ufs_dir_entry *)(bh->b_data + i); in ufs_readdir() 113 de = (struct ufs_dir_entry *) (bh->b_data + offset); in ufs_readdir() 242 de = (struct ufs_dir_entry *) bh->b_data; in ufs_find_entry() 243 dlimit = bh->b_data + sb->s_blocksize; in ufs_find_entry() 302 else if (((char *) de - bh->b_data) + rlen > dir->i_sb->s_blocksize) in ufs_check_dir_entry() 325 res = (struct ufs_dir_entry *) bh->b_data; in ufs_dotdot() 391 de = (struct ufs_dir_entry *) bh->b_data; in ufs_add_link() 393 if ((char *)de >= UFS_SECTOR_SIZE + bh->b_data) { in ufs_add_link() 409 de = (struct ufs_dir_entry *) (bh->b_data + fragoff); in ufs_add_link() 416 de = (struct ufs_dir_entry *) bh->b_data; in ufs_add_link() [all …]
|
/linux-2.4.37.9/fs/ext3/ |
D | balloc.c | 69 sb->u.ext3_sb.s_group_desc[group_desc]->b_data; in ext3_get_group_desc() 367 if (!ext3_clear_bit (bit + i, bitmap_bh->b_data)) { in ext3_free_blocks() 446 if (ext3_test_bit(nr, bh->b_data)) in ext3_test_allocatable() 476 here = ext3_find_next_zero_bit(bh->b_data, end_goal, start); in find_next_usable_block() 496 p = ((char *) bh->b_data) + (here >> 3); in find_next_usable_block() 498 next = (r - ((char *) bh->b_data)) << 3; in find_next_usable_block() 508 next = ext3_find_next_zero_bit ((unsigned long *) bh->b_data, in find_next_usable_block() 697 ext3_set_bit(j, bh->b_data); in ext3_new_block() 704 J_ASSERT_BH(bh, !ext3_test_bit(j, bh->b_data)); in ext3_new_block() 706 ext3_set_bit(j, bh->b_data); in ext3_new_block() [all …]
|
D | bitmap.c | 23 sum += nibblemap[map->b_data[i] & 0xf] + in ext3_count_free() 24 nibblemap[(map->b_data[i] >> 4) & 0xf]; in ext3_count_free()
|
/linux-2.4.37.9/fs/reiserfs/ |
D | lbalance.c | 47 records = source->b_data + ih_location(ih) + in leaf_copy_dir_entries() 309 memmove (dest->b_data + last_loc, in leaf_copy_items_entirely() 310 dest->b_data + last_loc + j - last_inserted_loc, in leaf_copy_items_entirely() 314 memcpy (dest->b_data + last_inserted_loc, B_N_PITEM(src,(first + cpy_num - 1)), in leaf_copy_items_entirely() 765 memmove (bh->b_data + last_loc - ih_item_len(inserted_item_ih), in leaf_insert_into_buf() 766 bh->b_data + last_loc, unmoved_loc - last_loc); in leaf_insert_into_buf() 768 to = bh->b_data + unmoved_loc - ih_item_len(inserted_item_ih); in leaf_insert_into_buf() 844 memmove (bh->b_data + last_loc - paste_size, bh->b_data + last_loc, in leaf_paste_in_buffer() 857 memmove (bh->b_data + ih_location(ih) + paste_size, in leaf_paste_in_buffer() 858 bh->b_data + ih_location(ih), ih_item_len(ih)); in leaf_paste_in_buffer() [all …]
|
/linux-2.4.37.9/drivers/scsi/ |
D | st.c | 391 bp = (STp->buffer)->b_data; in st_do_scsi() 512 memset((STp->buffer)->b_data + offset, 0, transfer - offset); in flush_write_buffer() 810 STp->max_block = ((STp->buffer)->b_data[1] << 16) | in check_tape() 811 ((STp->buffer)->b_data[2] << 8) | (STp->buffer)->b_data[3]; in check_tape() 812 STp->min_block = ((STp->buffer)->b_data[4] << 8) | in check_tape() 813 (STp->buffer)->b_data[5]; in check_tape() 845 (STp->buffer)->b_data[0], (STp->buffer)->b_data[1], in check_tape() 846 (STp->buffer)->b_data[2], (STp->buffer)->b_data[3])); in check_tape() 848 if ((STp->buffer)->b_data[3] >= 8) { in check_tape() 849 STp->drv_buffer = ((STp->buffer)->b_data[2] >> 4) & 7; in check_tape() [all …]
|