/linux-2.4.37.9/fs/ |
D | quota_v2.c | 146 static ssize_t read_blk(struct file *filp, uint blk, dqbuf_t buf) in read_blk() argument 150 loff_t offset = blk<<V2_DQBLKSIZE_BITS; in read_blk() 160 static ssize_t write_blk(struct file *filp, uint blk, dqbuf_t buf) in write_blk() argument 164 loff_t offset = blk<<V2_DQBLKSIZE_BITS; in write_blk() 179 int ret, blk; in get_free_dqblk() local 184 blk = info->u.v2_i.dqi_free_blk; in get_free_dqblk() 185 if ((ret = read_blk(filp, blk, buf)) < 0) in get_free_dqblk() 193 blk = info->u.v2_i.dqi_blocks++; in get_free_dqblk() 196 ret = blk; in get_free_dqblk() 203 static int put_free_dqblk(struct file *filp, struct mem_dqinfo *info, dqbuf_t buf, uint blk) in put_free_dqblk() argument [all …]
|
/linux-2.4.37.9/fs/partitions/ |
D | amiga.c | 41 int start_sect, nr_sects, blk, part, res = 0; in amiga_partition() local 44 for (blk = 0; ; blk++, put_dev_sector(sect)) { in amiga_partition() 45 if (blk == RDB_ALLOCATION_LIMIT) in amiga_partition() 47 data = read_dev_sector(bdev, blk, §); in amiga_partition() 51 bdevname(dev), blk); in amiga_partition() 67 "ignored in checksum calculation\n",blk); in amiga_partition() 72 bdevname(dev),blk); in amiga_partition() 76 blk = be32_to_cpu(rdb->rdb_PartitionList); in amiga_partition() 78 for (part = 1; blk>0 && part<=16; part++, put_dev_sector(sect)) { in amiga_partition() 79 data = read_dev_sector(bdev, blk, §); in amiga_partition() [all …]
|
D | mac.c | 32 int blk, blocks_in_map; in mac_partition() local 57 for (blk = 1; blk <= blocks_in_map; ++blk) { in mac_partition() 58 int pos = blk * secsize; in mac_partition()
|
D | ibm.c | 167 unsigned int blk; in ibm_partition() local 173 blk = cchhb2blk(&vlabel->vtoc, geo) + 1; in ibm_partition() 175 while ((data = read_dev_sector(bdev, blk*(blocksize/512), in ibm_partition() 186 blk++; in ibm_partition() 204 blk++; in ibm_partition()
|
/linux-2.4.37.9/fs/affs/ |
D | bitmap.c | 73 u32 blk, bmap, bit, mask, tmp; in affs_free_block() local 81 blk = block - AFFS_SB->s_reserved; in affs_free_block() 82 bmap = blk / AFFS_SB->s_bmap_bits; in affs_free_block() 83 bit = blk % AFFS_SB->s_bmap_bits; in affs_free_block() 151 u32 blk, bmap, bit, mask, mask2, tmp; in affs_alloc_block() local 172 blk = goal - AFFS_SB->s_reserved; in affs_alloc_block() 173 bmap = blk / AFFS_SB->s_bmap_bits; in affs_alloc_block() 195 blk = bmap * AFFS_SB->s_bmap_bits; in affs_alloc_block() 210 bit = blk % AFFS_SB->s_bmap_bits; in affs_alloc_block() 214 blk &= ~31UL; in affs_alloc_block() [all …]
|
D | file.c | 820 u32 last_blk, blkcnt, blk; in affs_truncate() local 879 blk = last_blk; in affs_truncate() 882 blk++; in affs_truncate() 886 if (size > blkcnt - blk + i) in affs_truncate() 887 size = blkcnt - blk + i; in affs_truncate() 888 for (; i < size; i++, blk++) { in affs_truncate() 923 if (size > blkcnt - blk) in affs_truncate() 924 size = blkcnt - blk; in affs_truncate() 925 for (i = 0; i < size; i++, blk++) in affs_truncate()
|
/linux-2.4.37.9/fs/xfs/ |
D | xfs_da_btree.c | 174 ASSERT(state->path.blk[max].magic == XFS_ATTR_LEAF_MAGIC || in xfs_da_split() 175 state->path.blk[max].magic == XFS_DIRX_LEAF_MAGIC(state->mp)); in xfs_da_split() 177 addblk = &state->path.blk[max]; /* initial dummy value */ in xfs_da_split() 179 oldblk = &state->path.blk[i]; in xfs_da_split() 180 newblk = &state->altpath.blk[i]; in xfs_da_split() 292 oldblk = &state->path.blk[0]; in xfs_da_split() 686 drop_blk = &state->path.blk[ state->path.active-1 ]; in xfs_da_join() 687 save_blk = &state->altpath.blk[ state->path.active-1 ]; in xfs_da_join() 688 ASSERT(state->path.blk[0].magic == XFS_DA_NODE_MAGIC); in xfs_da_join() 770 error = xfs_da_root_join(state, &state->path.blk[0]); in xfs_da_join() [all …]
|
D | xfs_attr.c | 1179 xfs_da_state_blk_t *blk; in xfs_attr_node_addname() local 1203 blk = &state->path.blk[ state->path.active-1 ]; in xfs_attr_node_addname() 1204 ASSERT(blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_attr_node_addname() 1219 retval = xfs_attr_leaf_add(blk->bp, state->args); in xfs_attr_node_addname() 1371 blk = &state->path.blk[ state->path.active-1 ]; in xfs_attr_node_addname() 1372 ASSERT(blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_attr_node_addname() 1373 error = xfs_attr_leaf_remove(blk->bp, args); in xfs_attr_node_addname() 1441 xfs_da_state_blk_t *blk; in xfs_attr_node_removename() local 1471 blk = &state->path.blk[ state->path.active-1 ]; in xfs_attr_node_removename() 1472 ASSERT(blk->bp != NULL); in xfs_attr_node_removename() [all …]
|
D | xfs_dir.c | 745 xfs_da_state_blk_t *blk; in xfs_dir_node_addname() local 766 blk = &state->path.blk[ state->path.active-1 ]; in xfs_dir_node_addname() 767 ASSERT(blk->magic == XFS_DIR_LEAF_MAGIC); in xfs_dir_node_addname() 768 retval = xfs_dir_leaf_add(blk->bp, args, blk->index); in xfs_dir_node_addname() 802 xfs_da_state_blk_t *blk; in xfs_dir_node_removename() local 825 blk = &state->path.blk[ state->path.active-1 ]; in xfs_dir_node_removename() 826 ASSERT(blk->magic == XFS_DIR_LEAF_MAGIC); in xfs_dir_node_removename() 827 retval = xfs_dir_leaf_remove(args->trans, blk->bp, blk->index); in xfs_dir_node_removename() 873 xfs_da_brelse(args->trans, state->path.blk[i].bp); in xfs_dir_node_lookup() 874 state->path.blk[i].bp = NULL; in xfs_dir_node_lookup() [all …]
|
D | xfs_dir2_node.c | 1144 xfs_da_state_blk_t *blk; /* leaf block */ in xfs_dir2_leafn_toosmall() local 1161 blk = &state->path.blk[state->path.active - 1]; in xfs_dir2_leafn_toosmall() 1162 info = blk->bp->data; in xfs_dir2_leafn_toosmall() 1249 if (blkno < blk->blkno) in xfs_dir2_leafn_toosmall() 1312 xfs_da_state_blk_t *blk; /* leaf block for insert */ in xfs_dir2_node_addname() local 1345 blk = &state->path.blk[state->path.active - 1]; in xfs_dir2_node_addname() 1346 ASSERT(blk->magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_node_addname() 1350 rval = xfs_dir2_leafn_add(blk->bp, args, blk->index); in xfs_dir2_node_addname() 1794 xfs_da_brelse(args->trans, state->path.blk[i].bp); in xfs_dir2_node_lookup() 1795 state->path.blk[i].bp = NULL; in xfs_dir2_node_lookup() [all …]
|
/linux-2.4.37.9/fs/adfs/ |
D | dir_fplus.c | 27 unsigned int blk, size; in adfs_fplus_read() local 56 for (blk = 1; blk < size; blk++) { in adfs_fplus_read() 57 block = __adfs_block_map(sb, id, blk); in adfs_fplus_read() 59 adfs_error(sb, "dir object %X has a hole at offset %d", id, blk); in adfs_fplus_read() 63 dir->bh[blk] = sb_bread(sb, block); in adfs_fplus_read() 64 if (!dir->bh[blk]) in adfs_fplus_read() 66 dir->nr_buffers = blk; in adfs_fplus_read()
|
D | dir_f.c | 172 int blk = 0; in adfs_dir_read() local 186 for (blk = 0; blk < size; blk++) { in adfs_dir_read() 189 phys = __adfs_block_map(sb, object_id, blk); in adfs_dir_read() 192 object_id, blk); in adfs_dir_read() 196 dir->bh[blk] = sb_bread(sb, phys); in adfs_dir_read() 197 if (!dir->bh[blk]) in adfs_dir_read() 215 dir->nr_buffers = blk; in adfs_dir_read() 223 for (blk -= 1; blk >= 0; blk -= 1) in adfs_dir_read() 224 brelse(dir->bh[blk]); in adfs_dir_read()
|
/linux-2.4.37.9/fs/hfsplus/ |
D | extents.c | 182 int size, blk, off; in hfsplus_free_blocks() local 187 blk = (start >> sb->s_blocksize_bits) / 8; in hfsplus_free_blocks() 195 bh = hfsplus_getblk(anode, blk); in hfsplus_free_blocks() 217 if (++blk >= anode->i_blocks) in hfsplus_free_blocks() 311 u32 blk, blk1, ablock, block_count; in hfsplus_extend_file() local 319 blk = blk1 = (HFSPLUS_SB(sb).next_alloc >> sb->s_blocksize_bits) / 8; in hfsplus_extend_file() 325 bh = hfsplus_getblk(anode, blk); in hfsplus_extend_file() 326 if (blk == anode->i_blocks - 1) in hfsplus_extend_file() 341 ablock = (blk << sb->s_blocksize_bits) * 8 + in hfsplus_extend_file() 358 if (++blk >= anode->i_blocks) in hfsplus_extend_file() [all …]
|
/linux-2.4.37.9/drivers/mtd/ |
D | ftl.c | 830 u_int32_t blk; in find_free() local 864 for (blk = 0; blk < part->BlocksPerUnit; blk++) in find_free() 865 if (BLOCK_FREE(le32_to_cpu(part->bam_cache[blk]))) break; in find_free() 866 if (blk == part->BlocksPerUnit) { in find_free() 875 DEBUG(2, "ftl_cs: found free block at %d in %d\n", blk, eun); in find_free() 876 return blk; in find_free() 1008 u_int32_t bsize, blk, le_virt_addr; in set_bam_entry() local 1020 blk = (log_addr % bsize) / SECTOR_SIZE; in set_bam_entry() 1021 offset = (part->EUNInfo[eun].Offset + blk * sizeof(u_int32_t) + in set_bam_entry() 1048 if (le32_to_cpu(part->bam_cache[blk]) != old_addr) { in set_bam_entry() [all …]
|
/linux-2.4.37.9/fs/ext3/ |
D | dir.c | 72 unsigned long offset, blk; in ext3_readdir() local 88 blk = (filp->f_pos) >> EXT3_BLOCK_SIZE_BITS(sb); in ext3_readdir() 89 bh = ext3_bread (0, inode, blk, 0, &err); in ext3_readdir() 107 tmp = ext3_getblk (NULL, inode, ++blk, 0, &err); in ext3_readdir()
|
/linux-2.4.37.9/drivers/block/ |
D | ida_ioctl.h | 66 __u32 blk; member 110 __u32 blk; member
|
D | cpqarray.c | 157 unsigned int blk, 1029 c->req.hdr.blk = hba[h->ctlr]->hd[MINOR(creq->rq_dev)].start_sect in do_ida_request() 1133 cmd->req.hdr.blk, cmd->req.hdr.blk_cnt, in complete_command() 1435 c->req.hdr.blk = io->blk; in ida_ctlr_ioctl() 1453 c->req.hdr.blk = pci_map_single(h->pci_dev, &(io->c), in ida_ctlr_ioctl() 1523 pci_unmap_single(h->pci_dev, c->req.hdr.blk, in ida_ctlr_ioctl() 1585 c->req.hdr.blk = io->blk; in ida_ctlr_big_ioctl() 1615 c->req.hdr.blk = pci_map_single(h->pci_dev, scsi_param, in ida_ctlr_big_ioctl() 1692 pci_unmap_single(h->pci_dev, c->req.hdr.blk, in ida_ctlr_big_ioctl() 1706 pci_unmap_single(h->pci_dev, c->req.hdr.blk, in ida_ctlr_big_ioctl() [all …]
|
/linux-2.4.37.9/arch/ppc/platforms/ |
D | pmac_setup.c | 516 check_bootable_part(kdev_t dev, int blk, struct mac_partition *part) in check_bootable_part() argument 549 ROOT_DEV = MKDEV(MAJOR(dev), MINOR(dev) + blk); in check_bootable_part() 560 unsigned secsize, blocks_in_map, blk; in check_bootable_disk() local 582 for (blk = 1; blk <= blocks_in_map; ++blk) { in check_bootable_disk() 583 int pos = blk * secsize; in check_bootable_disk() 591 check_bootable_part(dev, blk, part); in check_bootable_disk()
|
/linux-2.4.37.9/crypto/ |
D | sha1.c | 39 #define blk(i) (block32[i&15] = rol(block32[(i+13)&15]^block32[(i+8)&15] \ macro 45 #define R1(v,w,x,y,z,i) z+=((w&(x^y))^y)+blk(i)+0x5A827999+rol(v,5); \ 47 #define R2(v,w,x,y,z,i) z+=(w^x^y)+blk(i)+0x6ED9EBA1+rol(v,5);w=rol(w,30); 48 #define R3(v,w,x,y,z,i) z+=(((w|x)&y)|(w&x))+blk(i)+0x8F1BBCDC+rol(v,5); \ 50 #define R4(v,w,x,y,z,i) z+=(w^x^y)+blk(i)+0xCA62C1D6+rol(v,5);w=rol(w,30);
|
/linux-2.4.37.9/scripts/ |
D | checkpatch.pl | 406 my $blk = ''; 433 $blk .= $lines[$line] . "\n"; 434 $len = length($blk); 445 $c = substr($blk, $off, 1); 446 $remainder = substr($blk, $off); 511 my $statement = substr($blk, $soff, $off - $soff + 1); 512 my $condition = substr($blk, $soff, $coff - $soff + 1); 599 my $blk = ''; 610 $blk .= $rawlines[$line];
|
/linux-2.4.37.9/arch/s390/boot/ |
D | ipleckd.S | 165 ar %r4,%r2 # r4 (clear): ebl = blk + nbl 166 bctr %r4,0 # decrement r4 ( last blk touched 167 srda %r2,32 # trk = blk / bpt, bot = blk % bpt
|
/linux-2.4.37.9/arch/s390x/boot/ |
D | ipleckd.S | 165 ar %r4,%r2 # r4 (clear): ebl = blk + nbl 166 bctr %r4,0 # decrement r4 ( last blk touched 167 srda %r2,32 # trk = blk / bpt, bot = blk % bpt
|
/linux-2.4.37.9/include/linux/ |
D | amigaffs.h | 21 #define AFFS_BLOCK(sb, bh, blk) (AFFS_HEAD(bh)->table[(sb)->u.affs_sb.s_hashsize-1-(blk)]) argument
|
D | ufs_fs.h | 214 #define ufs_lblktosize(blk) ((blk) << uspi->s_bshift) argument
|
/linux-2.4.37.9/fs/ufs/ |
D | dir.c | 57 unsigned long offset, lblk, blk; in ufs_readdir() local 76 blk = ufs_frag_map(inode, lblk); in ufs_readdir() 77 if (!blk || !(bh = sb_bread(sb, blk))) { in ufs_readdir()
|