/linux-2.4.37.9/fs/jfs/ |
D | jfs_dmap.c | 37 #define DBALLOC(dbmap,mapsize,blkno,nblocks) \ argument 38 DBAlloc(dbmap,mapsize,blkno,nblocks) 39 #define DBFREE(dbmap,mapsize,blkno,nblocks) \ argument 40 DBFree(dbmap,mapsize,blkno,nblocks) 41 #define DBALLOCCK(dbmap,mapsize,blkno,nblocks) \ argument 42 DBAllocCK(dbmap,mapsize,blkno,nblocks) 43 #define DBFREECK(dbmap,mapsize,blkno,nblocks) \ argument 44 DBFreeCK(dbmap,mapsize,blkno,nblocks) 53 #define DBALLOC(dbmap, mapsize, blkno, nblocks) argument 54 #define DBFREE(dbmap, mapsize, blkno, nblocks) argument [all …]
|
D | jfs_dmap.h | 161 s32 nblocks; /* 4: num blks covered by this dmap */ member 280 extern int dbFree(struct inode *ipbmap, s64 blkno, s64 nblocks); 283 int free, s64 blkno, s64 nblocks, struct tblock * tblk); 287 extern int dbAlloc(struct inode *ipbmap, s64 hint, s64 nblocks, s64 * results); 290 s64 blkno, s64 nblocks, s64 addnblocks, s64 * results); 293 extern int dbAllocBottomUp(struct inode *ip, s64 blkno, s64 nblocks); 294 extern int dbExtendFS(struct inode *ipbmap, s64 blkno, s64 nblocks);
|
D | resize.c | 76 s64 XAddress, XSize, nblocks, xoff, xaddr, t64; in jfs_extendfs() local 324 nblocks = min(t64 - mapSize, XSize); in jfs_extendfs() 333 if ((rc = dbExtendFS(ipbmap, XAddress, nblocks))) in jfs_extendfs() 340 XSize -= nblocks; in jfs_extendfs() 383 xlen = min(xlen, (int) nblocks) & ~(sbi->nbperpage - 1); in jfs_extendfs() 388 if ((rc = xtAppend(tid, ipbmap, 0, xoff, nblocks, &xlen, &xaddr, 0))) { in jfs_extendfs()
|
D | xattr.c | 234 int nblocks; in ea_write() local 252 nblocks = (size + (sb->s_blocksize - 1)) >> sb->s_blocksize_bits; in ea_write() 254 rc = dbAlloc(ip, INOHINT(ip), nblocks, &blkno); in ea_write() 265 for (i = 0; i < nblocks; i += sbi->nbperpage) { in ea_write() 308 DXDlength(ea, nblocks); in ea_write() 318 dbFree(ip, blkno, nblocks); in ea_write() 372 int nblocks; in ea_read() local 394 nblocks = lengthDXD(&ji->ea) << sbi->l2nbperpage; in ea_read() 402 for (i = 0; i < nblocks; i += sbi->nbperpage) { in ea_read()
|
D | jfs_extent.c | 515 extBalloc(struct inode *ip, s64 hint, s64 * nblocks, s64 * blkno) in extBalloc() argument 531 if (*nblocks >= max && *nblocks > nbperpage) in extBalloc() 534 nb = nblks = *nblocks; in extBalloc() 552 *nblocks = nb; in extBalloc()
|
D | jfs_xtree.c | 2411 int nsplit, nblocks, xlen; in xtAppend() local 2461 nblocks = JFS_SBI(ip->i_sb)->nbperpage; in xtAppend() 2462 for (; nsplit > 0; nsplit--, pxd++, xaddr += nblocks, maxblocks -= nblocks) { in xtAppend() 2463 if ((rc = dbAllocBottomUp(ip, xaddr, (s64) nblocks)) == 0) { in xtAppend() 2465 PXDlength(pxd, nblocks); in xtAppend()
|
/linux-2.4.37.9/include/linux/ |
D | ext3_jbd.h | 197 static inline handle_t *ext3_journal_start(struct inode *inode, int nblocks) in ext3_journal_start() argument 214 return journal_start(journal, nblocks); in ext3_journal_start() 218 ext3_journal_try_start(struct inode *inode, int nblocks) in ext3_journal_try_start() argument 222 return journal_try_start(EXT3_JOURNAL(inode), nblocks); in ext3_journal_try_start() 263 static inline int ext3_journal_extend(handle_t *handle, int nblocks) in ext3_journal_extend() argument 265 return journal_extend(handle, nblocks); in ext3_journal_extend() 268 static inline int ext3_journal_restart(handle_t *handle, int nblocks) in ext3_journal_restart() argument 270 return journal_restart(handle, nblocks); in ext3_journal_restart()
|
D | jbd.h | 766 extern handle_t *journal_start(journal_t *, int nblocks); 767 extern handle_t *journal_try_start(journal_t *, int nblocks); 768 extern int journal_restart (handle_t *, int nblocks); 769 extern int journal_extend (handle_t *, int nblocks); 854 extern void log_wait_for_space(journal_t *, int nblocks);
|
/linux-2.4.37.9/init/ |
D | do_mounts.c | 499 int nblocks = -1; in identify_ramdisk_image() local 525 nblocks = 0; in identify_ramdisk_image() 535 nblocks = (ntohl(romfsb->size)+BLOCK_SIZE-1)>>BLOCK_SIZE_BITS; in identify_ramdisk_image() 543 nblocks = (cramfsb->size + BLOCK_SIZE - 1) >> BLOCK_SIZE_BITS; in identify_ramdisk_image() 559 nblocks = minixsb->s_nzones << minixsb->s_log_zone_size; in identify_ramdisk_image() 568 nblocks = le32_to_cpu(ext2sb->s_blocks_count); in identify_ramdisk_image() 579 return nblocks; in identify_ramdisk_image() 590 int nblocks, i; in rd_load_image() local 605 nblocks = identify_ramdisk_image(in_fd, rd_image_start); in rd_load_image() 606 if (nblocks < 0) in rd_load_image() [all …]
|
/linux-2.4.37.9/fs/jbd/ |
D | transaction.c | 95 int nblocks = handle->h_buffer_credits; in start_this_handle() local 97 if (nblocks > journal->j_max_transaction_buffers) { in start_this_handle() 99 current->comm, nblocks, in start_this_handle() 147 needed = transaction->t_outstanding_credits + nblocks; in start_this_handle() 202 transaction->t_outstanding_credits += nblocks; in start_this_handle() 206 handle, nblocks, transaction->t_outstanding_credits, in start_this_handle() 215 static handle_t *new_handle(int nblocks) in new_handle() argument 221 handle->h_buffer_credits = nblocks; in new_handle() 242 handle_t *journal_start(journal_t *journal, int nblocks) in journal_start() argument 256 handle = new_handle(nblocks); in journal_start() [all …]
|
D | checkpoint.c | 80 void log_wait_for_space(journal_t *journal, int nblocks) in log_wait_for_space() argument 82 while (log_space_left(journal) < nblocks) { in log_wait_for_space() 91 if (log_space_left(journal) < nblocks) { in log_wait_for_space() 92 log_do_checkpoint(journal, nblocks); in log_wait_for_space() 264 int log_do_checkpoint (journal_t *journal, int nblocks) in log_do_checkpoint() argument
|
/linux-2.4.37.9/drivers/char/ftape/lowlevel/ |
D | ftape-ecc.c | 464 int nblocks, in set_parity() argument 470 end = data + nblocks * (FT_SECTOR_SIZE / sizeof(long)); in set_parity() 552 static int compute_syndromes(unsigned long *data, int nblocks, unsigned long *s) in compute_syndromes() argument 556 set_parity(data, nblocks, p, 1); in compute_syndromes() 569 -nblocks); in compute_syndromes() 577 nblocks); in compute_syndromes() 592 static inline int correct_block(__u8 *data, int nblocks, in correct_block() argument 614 if ((bad_loc[nbad++] = gflog[t1]) >= nblocks) { in correct_block() 635 >= nblocks) { in correct_block() 699 static int sanity_check(unsigned long *data, int nblocks) in sanity_check() argument [all …]
|
/linux-2.4.37.9/fs/freevxfs/ |
D | vxfs_lookup.c | 116 u_long npages, page, nblocks, pblocks, block; in vxfs_find_entry() local 122 nblocks = dir_blocks(ip); in vxfs_find_entry() 134 for (block = 0; block <= nblocks && block <= pblocks; block++) { in vxfs_find_entry() 243 u_long page, npages, block, pblocks, nblocks, offset; in vxfs_readdir() local 265 nblocks = dir_blocks(ip); in vxfs_readdir() 281 for (; block <= nblocks && block <= pblocks; block++) { in vxfs_readdir()
|
/linux-2.4.37.9/fs/xfs/linux-2.4/ |
D | xfs_aops.c | 405 unsigned long nblocks = 0; in xfs_map_unwritten() local 445 nblocks++; in xfs_map_unwritten() 448 atomic_add(nblocks, &pb->pb_io_remaining); in xfs_map_unwritten() 469 nblocks += bs; in xfs_map_unwritten() 476 if (nblocks >= ((ULONG_MAX - PAGE_SIZE) >> block_bits)) in xfs_map_unwritten() 486 nblocks += bs; in xfs_map_unwritten() 490 if (nblocks >= ((ULONG_MAX - PAGE_SIZE) >> block_bits)) in xfs_map_unwritten() 497 size = nblocks; /* NB: using 64bit number here */ in xfs_map_unwritten()
|
/linux-2.4.37.9/drivers/ieee1394/ |
D | ohci1394.c | 1137 unsigned int nblocks; member 1203 recv->nblocks = iso->buf_size/PAGE_SIZE - 1; in ohci_iso_recv_init() 1204 if (recv->nblocks < 3) { in ohci_iso_recv_init() 1211 recv->block_irq_interval = iso->irq_interval / recv->nblocks; in ohci_iso_recv_init() 1212 if (recv->block_irq_interval*4 > recv->nblocks) in ohci_iso_recv_init() 1213 recv->block_irq_interval = recv->nblocks/4; in ohci_iso_recv_init() 1220 recv->nblocks = iso->buf_packets; in ohci_iso_recv_init() 1246 sizeof(struct dma_cmd) * recv->nblocks, in ohci_iso_recv_init() 1283 recv->nblocks, recv->buf_stride, recv->block_irq_interval); in ohci_iso_recv_init() 1327 for (blk = 0; blk < recv->nblocks; blk++) { in ohci_iso_recv_program() [all …]
|
/linux-2.4.37.9/fs/ext3/ |
D | namei.c | 120 int nblocks, i, err; in ext3_find_entry() local 126 nblocks = dir->i_size >> EXT3_BLOCK_SIZE_BITS(sb); in ext3_find_entry() 128 if (start >= nblocks) in ext3_find_entry() 146 if (b >= nblocks || (num && block == start)) { in ext3_find_entry() 177 if (++block >= nblocks) in ext3_find_entry() 185 block = nblocks; in ext3_find_entry() 186 nblocks = dir->i_size >> EXT3_BLOCK_SIZE_BITS(sb); in ext3_find_entry() 187 if (block < nblocks) { in ext3_find_entry()
|
D | super.c | 1809 int nblocks, ret; in ext3_write_dquot() local 1816 nblocks = EXT3_OLD_QFMT_BLOCKS; in ext3_write_dquot() 1819 nblocks = EXT3_V0_QFMT_BLOCKS; in ext3_write_dquot() 1822 nblocks = EXT3_MAX_TRANS_DATA; in ext3_write_dquot() 1826 handle = ext3_journal_start(qinode, nblocks); in ext3_write_dquot()
|
/linux-2.4.37.9/fs/reiserfs/ |
D | journal.c | 93 …al_end(struct reiserfs_transaction_handle *,struct super_block *,unsigned long nblocks,int flags) ; 98 …al_join(struct reiserfs_transaction_handle *th, struct super_block *p_s_sb, unsigned long nblocks); 2283 …ruct reiserfs_transaction_handle *th, struct super_block * p_s_sb,unsigned long nblocks,int join) { in do_journal_begin_r() argument 2313 ( !join && (SB_JOURNAL(p_s_sb)->j_len_alloc + nblocks + 2) >= SB_JOURNAL_MAX_BATCH(p_s_sb)) || in do_journal_begin_r() 2349 SB_JOURNAL(p_s_sb)->j_len_alloc += nblocks ; in do_journal_begin_r() 2351 th->t_blocks_allocated = nblocks ; in do_journal_begin_r() 2361 …l_join(struct reiserfs_transaction_handle *th, struct super_block *p_s_sb, unsigned long nblocks) { in journal_join() argument 2362 return do_journal_begin_r(th, p_s_sb, nblocks, 1) ; in journal_join() 2365 …egin(struct reiserfs_transaction_handle *th, struct super_block * p_s_sb, unsigned long nblocks) { in journal_begin() argument 2366 return do_journal_begin_r(th, p_s_sb, nblocks, 0) ; in journal_begin() [all …]
|
/linux-2.4.37.9/drivers/mtd/ |
D | ftl.c | 960 u_long sector, u_long nblocks) in ftl_read() argument 968 part, sector, nblocks); in ftl_read() 975 for (i = 0; i < nblocks; i++) { in ftl_read() 1074 u_long sector, u_long nblocks) in ftl_write() argument 1082 part, sector, nblocks); in ftl_write() 1088 while (part->FreeTotal < nblocks) { in ftl_write() 1097 for (i = 0; i < nblocks; i++) { in ftl_write()
|
/linux-2.4.37.9/drivers/s390/char/ |
D | tapechar.c | 248 int nblocks, i, rc; in tape_write() local 271 nblocks = 1; in tape_write() 274 nblocks = count / (ti->block_size); in tape_write() 280 debug_int_event (tape_debug_area,6,nblocks); in tape_write() 282 for (i = 0; i < nblocks; i++) { in tape_write()
|
/linux-2.4.37.9/drivers/cdrom/ |
D | cdu31a.c | 1291 unsigned int nblocks, unsigned int offset, unsigned int skip) in input_data() argument 1329 sony_blocks_left -= nblocks; in input_data() 1330 sony_next_block += nblocks; in input_data() 1348 unsigned int nblocks, in read_data_block() argument 1365 if (nblocks > 4) nblocks = 4; in read_data_block() 1366 bytesleft = nblocks * 512; in read_data_block() 1401 sony_blocks_left -= nblocks; in read_data_block() 1402 sony_next_block += nblocks; in read_data_block() 1457 input_data(buffer, bytesleft, nblocks, offset, skip); in read_data_block()
|
D | cdrom.c | 1408 int blocksize, int nblocks) in cdrom_read_cd() argument 1418 cgc->cmd[6] = (nblocks >> 16) & 0xff; in cdrom_read_cd() 1419 cgc->cmd[7] = (nblocks >> 8) & 0xff; in cdrom_read_cd() 1420 cgc->cmd[8] = nblocks & 0xff; in cdrom_read_cd() 1421 cgc->buflen = blocksize * nblocks; in cdrom_read_cd() 1428 int lba, int nblocks, int format, int blksize) in cdrom_read_block() argument 1442 cgc->cmd[6] = (nblocks >> 16) & 0xff; in cdrom_read_block() 1443 cgc->cmd[7] = (nblocks >> 8) & 0xff; in cdrom_read_block() 1444 cgc->cmd[8] = nblocks & 0xff; in cdrom_read_block() 1445 cgc->buflen = blksize * nblocks; in cdrom_read_block()
|
/linux-2.4.37.9/fs/cramfs/ |
D | README | 41 nblocks * <block_pointer> 42 (where nblocks = (st_size - 1) / blksize + 1) 43 nblocks * <block>
|
/linux-2.4.37.9/fs/isofs/ |
D | inode.c | 864 struct buffer_head **bh_result, unsigned long nblocks) in isofs_get_blocks() argument 888 while ( nblocks ) { in isofs_get_blocks() 937 nblocks--; in isofs_get_blocks()
|
/linux-2.4.37.9/fs/xfs/ |
D | xfs_rtalloc.c | 115 xfs_extlen_t nblocks, /* new count of blocks */ in xfs_growfs_rt_alloc() argument 136 while (oblocks < nblocks) { in xfs_growfs_rt_alloc() 138 resblks = XFS_GROWFSRT_SPACE_RES(mp, nblocks - oblocks); in xfs_growfs_rt_alloc() 160 error = xfs_bmapi(tp, ip, oblocks, nblocks - oblocks, in xfs_growfs_rt_alloc()
|