Home
last modified time | relevance | path

Searched refs:block (Results 1 – 25 of 391) sorted by relevance

12345678910>>...16

/linux-2.4.37.9/fs/lockd/
Dsvclock.c42 static void nlmsvc_insert_block(struct nlm_block *block, unsigned long);
43 static int nlmsvc_remove_block(struct nlm_block *block);
56 nlmsvc_insert_block(struct nlm_block *block, unsigned long when) in nlmsvc_insert_block() argument
60 dprintk("lockd: nlmsvc_insert_block(%p, %ld)\n", block, when); in nlmsvc_insert_block()
61 if (block->b_queued) in nlmsvc_insert_block()
62 nlmsvc_remove_block(block); in nlmsvc_insert_block()
73 block->b_queued = 1; in nlmsvc_insert_block()
74 block->b_when = when; in nlmsvc_insert_block()
75 block->b_next = b; in nlmsvc_insert_block()
76 *bp = block; in nlmsvc_insert_block()
[all …]
Dclntlock.c53 struct nlm_wait block, **head; in nlmclnt_block() local
57 block.b_host = host; in nlmclnt_block()
58 block.b_lock = fl; in nlmclnt_block()
59 init_waitqueue_head(&block.b_wait); in nlmclnt_block()
60 block.b_status = NLM_LCK_BLOCKED; in nlmclnt_block()
61 block.b_next = nlm_blocked; in nlmclnt_block()
62 nlm_blocked = █ in nlmclnt_block()
75 sleep_on_timeout(&block.b_wait, 30*HZ); in nlmclnt_block()
78 if (*head == &block) { in nlmclnt_block()
79 *head = block.b_next; in nlmclnt_block()
[all …]
/linux-2.4.37.9/crypto/
Dcast6.c430 static inline void Q (u32 * block, u8 * Kr, u32 * Km) { in Q() argument
432 block[2] ^= F1(block[3], Kr[0], Km[0]); in Q()
433 block[1] ^= F2(block[2], Kr[1], Km[1]); in Q()
434 block[0] ^= F3(block[1], Kr[2], Km[2]); in Q()
435 block[3] ^= F1(block[0], Kr[3], Km[3]); in Q()
439 static inline void QBAR (u32 * block, u8 * Kr, u32 * Km) { in QBAR() argument
441 block[3] ^= F1(block[0], Kr[3], Km[3]); in QBAR()
442 block[0] ^= F3(block[1], Kr[2], Km[2]); in QBAR()
443 block[1] ^= F2(block[2], Kr[1], Km[1]); in QBAR()
444 block[2] ^= F1(block[3], Kr[0], Km[0]); in QBAR()
[all …]
Dmd4.c36 u32 block[MD4_BLOCK_WORDS]; member
150 le32_to_cpu_array(ctx->block, sizeof(ctx->block) / sizeof(u32)); in md4_transform_helper()
151 md4_transform(ctx->hash, ctx->block); in md4_transform_helper()
168 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in md4_update()
173 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in md4_update()
178 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in md4_update()
185 while (len >= sizeof(mctx->block)) { in md4_update()
186 memcpy(mctx->block, data, sizeof(mctx->block)); in md4_update()
188 data += sizeof(mctx->block); in md4_update()
189 len -= sizeof(mctx->block); in md4_update()
[all …]
/linux-2.4.37.9/drivers/mtd/
Dnftlmount.c54 unsigned int block, boot_record_count = 0; in find_boot_record() local
69 for (block = 0; block < nftl->nb_blocks; block++) { in find_boot_record()
74 if ((ret = MTD_READ(nftl->mtd, block * nftl->EraseSize, SECTORSIZE, &retlen, buf))) { in find_boot_record()
79 block * nftl->EraseSize, nftl->mtd->index, ret); in find_boot_record()
90 block * nftl->EraseSize, nftl->mtd->index); in find_boot_record()
96 if ((ret = MTD_READOOB(nftl->mtd, block * nftl->EraseSize + SECTORSIZE + 8, in find_boot_record()
99 block * nftl->EraseSize, nftl->mtd->index, ret); in find_boot_record()
109 block * nftl->EraseSize, nftl->mtd->index, in find_boot_record()
115 if ((ret = MTD_READECC(nftl->mtd, block * nftl->EraseSize, SECTORSIZE, in find_boot_record()
118 block * nftl->EraseSize, nftl->mtd->index, ret); in find_boot_record()
[all …]
Dnftlcore.c278 int block; in NFTL_foldchain() local
305 for (block = 0; block < nftl->EraseSize / 512; block ++) { in NFTL_foldchain()
307 (thisEUN * nftl->EraseSize) + (block * 512), in NFTL_foldchain()
309 if (block == 2) { in NFTL_foldchain()
323 BlockLastState[block] = status; in NFTL_foldchain()
327 BlockFreeFound[block] = 1; in NFTL_foldchain()
331 if (!BlockFreeFound[block]) in NFTL_foldchain()
332 BlockMap[block] = thisEUN; in NFTL_foldchain()
337 thisVUC, block); in NFTL_foldchain()
340 if (!BlockFreeFound[block]) in NFTL_foldchain()
[all …]
/linux-2.4.37.9/fs/minix/
Ditree_v2.c25 static int block_to_path(struct inode * inode, long block, int offsets[DEPTH]) in block_to_path() argument
29 if (block < 0) { in block_to_path()
31 } else if (block >= (inode->i_sb->u.minix_sb.s_max_size/BLOCK_SIZE)) { in block_to_path()
33 } else if (block < 7) { in block_to_path()
34 offsets[n++] = block; in block_to_path()
35 } else if ((block -= 7) < 256) { in block_to_path()
37 offsets[n++] = block; in block_to_path()
38 } else if ((block -= 256) < 256*256) { in block_to_path()
40 offsets[n++] = block>>8; in block_to_path()
41 offsets[n++] = block & 255; in block_to_path()
[all …]
Ditree_v1.c25 static int block_to_path(struct inode * inode, long block, int offsets[DEPTH]) in block_to_path() argument
29 if (block < 0) { in block_to_path()
31 } else if (block >= (inode->i_sb->u.minix_sb.s_max_size/BLOCK_SIZE)) { in block_to_path()
33 } else if (block < 7) { in block_to_path()
34 offsets[n++] = block; in block_to_path()
35 } else if ((block -= 7) < 512) { in block_to_path()
37 offsets[n++] = block; in block_to_path()
39 block -= 512; in block_to_path()
41 offsets[n++] = block>>9; in block_to_path()
42 offsets[n++] = block & 511; in block_to_path()
[all …]
/linux-2.4.37.9/fs/sysv/
Dballoc.c47 unsigned block = fs32_to_cpu(sb, nr); in sysv_free_block() local
57 if (block < sb->sv_firstdatazone || block >= sb->sv_nzones) { in sysv_free_block()
75 block += sb->sv_block_base; in sysv_free_block()
76 bh = sb_getblk(sb, block); in sysv_free_block()
100 unsigned int block; in sysv_new_block() local
114 block = fs32_to_cpu(sb, nr); in sysv_new_block()
118 if (block < sb->sv_firstdatazone || block >= sb->sv_nzones) { in sysv_new_block()
120 block); in sysv_new_block()
127 block += sb->sv_block_base; in sysv_new_block()
128 if (!(bh = sb_bread(sb, block))) { in sysv_new_block()
[all …]
DINTRO18 * Size of a block or zone (data allocation unit on disk)
24 * General layout: all have one boot block, one super block and
27 all the block numbers (including the super block) are offset by one track.
56 There is a cache of a certain number of free inodes in the super-block.
59 * Free block management:
63 since it is not true that every free block contains a pointer to
64 the next free block. Rather, the free blocks are organized in chunks
65 of limited size, and every now and then a free block contains pointers
67 contains pointers and so on. The list terminates with a "block number"
68 0 on Xenix FS and SystemV FS, with a block zeroed out on Coherent FS.
[all …]
/linux-2.4.37.9/fs/xfs/
Dxfs_dir2_block.c84 xfs_dir2_block_t *block; /* directory block structure */ in xfs_dir2_block_addname() local
121 block = bp->data; in xfs_dir2_block_addname()
125 if (unlikely(INT_GET(block->hdr.magic, ARCH_CONVERT) in xfs_dir2_block_addname()
128 XFS_ERRLEVEL_LOW, mp, block); in xfs_dir2_block_addname()
136 bf = block->hdr.bestfree; in xfs_dir2_block_addname()
137 btp = XFS_DIR2_BLOCK_TAIL_P(mp, block); in xfs_dir2_block_addname()
150 enddup = (xfs_dir2_data_unused_t *)((char *)block + INT_GET(*tagp, ARCH_CONVERT)); in xfs_dir2_block_addname()
163 ((char *)block + INT_GET(bf[0].offset, ARCH_CONVERT)); in xfs_dir2_block_addname()
176 ((char *)block + in xfs_dir2_block_addname()
199 ((char *)block + INT_GET(bf[0].offset, ARCH_CONVERT)); in xfs_dir2_block_addname()
[all …]
Dxfs_btree.c86 xfs_btree_block_t *block);/* generic btree block pointer */
98 xfs_btree_block_t *block) /* generic btree block pointer */ in xfs_btree_maxrecs() argument
103 return (int)XFS_ALLOC_BLOCK_MAXRECS(INT_GET(block->bb_h.bb_level, ARCH_CONVERT), cur); in xfs_btree_maxrecs()
105 return (int)XFS_BMAP_BLOCK_IMAXRECS(INT_GET(block->bb_h.bb_level, ARCH_CONVERT), cur); in xfs_btree_maxrecs()
107 return (int)XFS_INOBT_BLOCK_MAXRECS(INT_GET(block->bb_h.bb_level, ARCH_CONVERT), cur); in xfs_btree_maxrecs()
125 xfs_btree_block_t *block, /* generic btree block pointer */ in xfs_btree_check_block() argument
130 xfs_btree_check_lblock(cur, (xfs_btree_lblock_t *)block, level, in xfs_btree_check_block()
133 xfs_btree_check_sblock(cur, (xfs_btree_sblock_t *)block, level, in xfs_btree_check_block()
198 xfs_btree_lblock_t *block, /* btree long form block pointer */ in xfs_btree_check_lblock() argument
207 INT_GET(block->bb_magic, ARCH_CONVERT) == xfs_magics[cur->bc_btnum] && in xfs_btree_check_lblock()
[all …]
Dxfs_alloc_btree.c88 xfs_alloc_block_t *block; /* btree block record/key lives in */ in xfs_alloc_delrec() local
124 block = XFS_BUF_TO_ALLOC_BLOCK(bp); in xfs_alloc_delrec()
126 if ((error = xfs_btree_check_sblock(cur, block, level, bp))) in xfs_alloc_delrec()
132 if (ptr > INT_GET(block->bb_numrecs, ARCH_CONVERT)) { in xfs_alloc_delrec()
143 lkp = XFS_ALLOC_KEY_ADDR(block, 1, cur); in xfs_alloc_delrec()
144 lpp = XFS_ALLOC_PTR_ADDR(block, 1, cur); in xfs_alloc_delrec()
146 for (i = ptr; i < INT_GET(block->bb_numrecs, ARCH_CONVERT); i++) { in xfs_alloc_delrec()
151 if (ptr < INT_GET(block->bb_numrecs, ARCH_CONVERT)) { in xfs_alloc_delrec()
153 (INT_GET(block->bb_numrecs, ARCH_CONVERT) - ptr) * sizeof(*lkp)); /* INT_: mem copy */ in xfs_alloc_delrec()
155 (INT_GET(block->bb_numrecs, ARCH_CONVERT) - ptr) * sizeof(*lpp)); /* INT_: mem copy */ in xfs_alloc_delrec()
[all …]
Dxfs_ialloc_btree.c91 xfs_inobt_block_t *block; /* btree block record/key lives in */ in xfs_inobt_delrec() local
133 block = XFS_BUF_TO_INOBT_BLOCK(bp); in xfs_inobt_delrec()
135 if ((error = xfs_btree_check_sblock(cur, block, level, bp))) in xfs_inobt_delrec()
142 numrecs = INT_GET(block->bb_numrecs, ARCH_CONVERT); in xfs_inobt_delrec()
153 kp = XFS_INOBT_KEY_ADDR(block, 1, cur); in xfs_inobt_delrec()
154 pp = XFS_INOBT_PTR_ADDR(block, 1, cur); in xfs_inobt_delrec()
175 rp = XFS_INOBT_REC_ADDR(block, 1, cur); in xfs_inobt_delrec()
194 INT_SET(block->bb_numrecs, ARCH_CONVERT, numrecs); in xfs_inobt_delrec()
258 rbno = INT_GET(block->bb_rightsib, ARCH_CONVERT); in xfs_inobt_delrec()
259 lbno = INT_GET(block->bb_leftsib, ARCH_CONVERT); in xfs_inobt_delrec()
[all …]
/linux-2.4.37.9/fs/befs/
Dio.c30 befs_blocknr_t block = 0; in befs_bread_iaddr() local
44 block = iaddr2blockno(sb, &iaddr); in befs_bread_iaddr()
45 vfs_block = (vfs_blocknr_t) block; in befs_bread_iaddr()
47 if (vfs_block != block) { in befs_bread_iaddr()
49 "is larger than the host can use", block); in befs_bread_iaddr()
53 befs_debug(sb, "befs_read_iaddr: offset = %lu", block); in befs_bread_iaddr()
58 befs_error(sb, "Failed to read block %lu", block); in befs_bread_iaddr()
71 befs_bread(struct super_block *sb, befs_blocknr_t block) in befs_bread() argument
75 vfs_blocknr_t vfs_block = (vfs_blocknr_t) block; in befs_bread()
77 befs_debug(sb, "---> Enter befs_read() %Lu", block); in befs_bread()
[all …]
/linux-2.4.37.9/drivers/sound/dmasound/
Dtas3001c.c119 tumbler_set_register(uint reg, uint size, char *block) in tumbler_set_register() argument
121 if (i2c_smbus_write_block_data(tumbler_client, reg, size, block) < 0) { in tumbler_set_register()
174 char block; in tumbler_set_bass() local
187 block = (bass >> 0) & 0xff; in tumbler_set_bass()
189 if (tumbler_set_register(TAS_SET_BASS, &block) < 0) { in tumbler_set_bass()
201 char block; in tumbler_set_treble() local
214 block = (treble >> 0) & 0xff; in tumbler_set_treble()
216 if (tumbler_set_register(TAS_SET_TREBLE, &block) < 0) { in tumbler_set_treble()
228 unsigned char block[3]; in tumbler_set_pcm_lvl() local
243 block[0] = (pcm_lvl >> 16) & 0xff; in tumbler_set_pcm_lvl()
[all …]
/linux-2.4.37.9/include/linux/
Damigaffs.h30 affs_bread(struct super_block *sb, int block) in affs_bread() argument
32 pr_debug(KERN_DEBUG "affs_bread: %d\n", block); in affs_bread()
33 if (block >= AFFS_SB->s_reserved && block < AFFS_SB->s_partition_size) in affs_bread()
34 return sb_bread(sb, block); in affs_bread()
38 affs_getblk(struct super_block *sb, int block) in affs_getblk() argument
40 pr_debug(KERN_DEBUG "affs_getblk: %d\n", block); in affs_getblk()
41 if (block >= AFFS_SB->s_reserved && block < AFFS_SB->s_partition_size) in affs_getblk()
42 return sb_getblk(sb, block); in affs_getblk()
46 affs_getzeroblk(struct super_block *sb, int block) in affs_getzeroblk() argument
49 pr_debug(KERN_DEBUG "affs_getzeroblk: %d\n", block); in affs_getzeroblk()
[all …]
/linux-2.4.37.9/fs/udf/
Dpartition.c35 inline uint32_t udf_get_pblock(struct super_block *sb, uint32_t block, uint16_t partition, uint32_t… in udf_get_pblock() argument
40 block, partition, offset); in udf_get_pblock()
44 return UDF_SB_PARTFUNC(sb, partition)(sb, block, partition, offset); in udf_get_pblock()
46 return UDF_SB_PARTROOT(sb, partition) + block + offset; in udf_get_pblock()
49 uint32_t udf_get_pblock_virt15(struct super_block *sb, uint32_t block, uint16_t partition, uint32_t… in udf_get_pblock_virt15() argument
58 if (block > UDF_SB_TYPEVIRT(sb,partition).s_num_entries) in udf_get_pblock_virt15()
61 block, UDF_SB_TYPEVIRT(sb,partition).s_num_entries); in udf_get_pblock_virt15()
65 if (block >= index) in udf_get_pblock_virt15()
67 block -= index; in udf_get_pblock_virt15()
68 newblock = 1 + (block / (sb->s_blocksize / sizeof(uint32_t))); in udf_get_pblock_virt15()
[all …]
/linux-2.4.37.9/fs/efs/
Ddir.c27 efs_block_t block; in efs_readdir() local
35 block = filp->f_pos >> EFS_DIRBSIZE_BITS; in efs_readdir()
41 while (block < inode->i_blocks) { in efs_readdir()
43 bh = sb_bread(inode->i_sb, efs_bmap(inode, block)); in efs_readdir()
46 printk(KERN_ERR "EFS: readdir(): failed to read dir block %d\n", block); in efs_readdir()
71 …FS: readdir(): block %d slot %d/%d: inode %u, name \"%s\", namelen %u\n", block, slot, dirblock->s… in efs_readdir()
75 filp->f_pos = (block << EFS_DIRBSIZE_BITS) | slot; in efs_readdir()
90 block++; in efs_readdir()
93 filp->f_pos = (block << EFS_DIRBSIZE_BITS) | slot; in efs_readdir()
101 block++; in efs_readdir()
[all …]
Dinode.c20 static int _efs_bmap(struct address_space *mapping, long block) in _efs_bmap() argument
22 return generic_block_bmap(mapping,block,efs_get_block); in _efs_bmap()
54 efs_block_t block, offset; in efs_read_inode() local
72 block = sb->fs_start + sb->first_block + in efs_read_inode()
80 bh = sb_bread(inode->i_sb, block); in efs_read_inode()
82 printk(KERN_WARNING "EFS: bread() failed at block %d\n", block); in efs_read_inode()
174 efs_extent_check(efs_extent *ptr, efs_block_t block, struct efs_sb_info *sb) { in efs_extent_check() argument
187 if ((block >= offset) && (block < offset+length)) { in efs_extent_check()
188 return(sb->fs_start + start + block - offset); in efs_extent_check()
194 efs_block_t efs_map_block(struct inode *inode, efs_block_t block) { in efs_map_block() argument
[all …]
/linux-2.4.37.9/fs/hfs/
Dextent.c36 const struct hfs_fork *fork, hfs_u16 block) in build_key() argument
41 hfs_put_hs(block, key->FABN); in build_key()
103 to->block[0] = hfs_get_hs(from->block1); in read_extent()
105 to->block[1] = hfs_get_hs(from->block2); in read_extent()
107 to->block[2] = hfs_get_hs(from->block3); in read_extent()
124 hfs_put_hs(from->block[0], to->block1); in write_extent()
126 hfs_put_hs(from->block[1], to->block2); in write_extent()
128 hfs_put_hs(from->block[2], to->block3); in write_extent()
141 static int decode_extent(const struct hfs_extent * extent, int block) in decode_extent() argument
143 if (!extent || (block < extent->start) || (block > extent->end) || in decode_extent()
[all …]
/linux-2.4.37.9/fs/qnx4/
Dbitmap.c87 int qnx4_is_free(struct super_block *sb, long block) in qnx4_is_free() argument
95 start += block / (QNX4_BLOCK_SIZE * 8); in qnx4_is_free()
97 (unsigned long) block, (unsigned long) start)); in qnx4_is_free()
103 g = bh->b_data + (block % QNX4_BLOCK_SIZE); in qnx4_is_free()
104 if (((*g) & (1 << (block % 8))) == 0) { in qnx4_is_free()
116 int qnx4_set_bitmap(struct super_block *sb, long block, int busy) in qnx4_set_bitmap() argument
123 start += block / (QNX4_BLOCK_SIZE * 8); in qnx4_set_bitmap()
125 (unsigned long) block, (unsigned long) start)); in qnx4_set_bitmap()
131 g = bh->b_data + (block % QNX4_BLOCK_SIZE); in qnx4_set_bitmap()
133 (*g) &= ~(1 << (block % 8)); in qnx4_set_bitmap()
[all …]
/linux-2.4.37.9/Documentation/filesystems/devfs/
DToDo17 - Amiga floppy driver (drivers/block/amiflop.c)
19 - Atari floppy driver (drivers/block/ataflop.c)
21 - SWIM3 (Super Woz Integrated Machine 3) floppy driver (drivers/block/swim3.c)
23 - Amiga ZorroII ramdisc driver (drivers/block/z2ram.c)
25 - Parallel port ATAPI CD-ROM (drivers/block/paride/pcd.c)
27 - Parallel port ATAPI floppy (drivers/block/paride/pf.c)
29 - AP1000 block driver (drivers/ap1000/ap.c, drivers/ap1000/ddv.c)
31 - Archimedes floppy (drivers/acorn/block/fd1772.c)
33 - MFM hard drive (drivers/acorn/block/mfmhd.c)
35 - I2O block device (drivers/message/i2o/i2o_block.c)
/linux-2.4.37.9/fs/ufs/
Dutil.h418 #define ubh_isblockclear(ubh,begin,block) (!_ubh_isblockset_(uspi,ubh,begin,block)) argument
420 #define ubh_isblockset(ubh,begin,block) _ubh_isblockset_(uspi,ubh,begin,block) argument
422 struct ufs_buffer_head * ubh, unsigned begin, unsigned block) in _ubh_isblockset_() argument
426 return (*ubh_get_addr (ubh, begin + block) == 0xff); in _ubh_isblockset_()
428 return (*ubh_get_addr (ubh, begin + (block >> 1)) == (0x0f << ((block & 0x01) << 2))); in _ubh_isblockset_()
430 return (*ubh_get_addr (ubh, begin + (block >> 2)) == (0x03 << ((block & 0x03) << 1))); in _ubh_isblockset_()
432 return (*ubh_get_addr (ubh, begin + (block >> 3)) == (0x01 << (block & 0x07))); in _ubh_isblockset_()
437 #define ubh_clrblock(ubh,begin,block) _ubh_clrblock_(uspi,ubh,begin,block) argument
439 struct ufs_buffer_head * ubh, unsigned begin, unsigned block) in _ubh_clrblock_() argument
443 *ubh_get_addr (ubh, begin + block) = 0x00; in _ubh_clrblock_()
[all …]
/linux-2.4.37.9/arch/s390/boot/
Diplfba.S2 # Ipl block for fba devices
12 # byte block to location 0-511 (the reading starts again at block 0, byte 0).
30 l %r3,0(%r12) # get first block number
31 l %r4,4(%r12) # get first block count
37 lr %r5,%r4 # block count
41 l %r3,0(%r12) # get next block number
42 icm %r4,15,4(%r12) # get next block count
53 # subroutine for loading a sequence of block from fba
55 # %r3: number of first block (unsigned long)
61 sth %r4,2(%r5) # initialize block count
[all …]

12345678910>>...16