tag | line | file | source code |
blocks | 1304 | drivers/block/amiflop.c | if ((int)block > floppy->blocks) { |
blocks | 1449 | drivers/block/amiflop.c | getprm.size=unit[drive].blocks; |
blocks | 1457 | drivers/block/amiflop.c | put_fs_long(unit[drive].blocks,(long *)param); |
blocks | 1570 | drivers/block/amiflop.c | unit[drive].blocks=unit[drive].type->heads*unit[drive].type->tracks* |
blocks | 1573 | drivers/block/amiflop.c | floppy_sizes[MINOR(dev)] = unit[drive].blocks >> 1; |
blocks | 1637 | drivers/block/amiflop.c | unit[drive].blocks=unit[drive].type->heads*unit[drive].type->tracks* |
blocks | 96 | drivers/block/ataflop.c | unsigned blocks; /* total number of blocks */ |
blocks | 664 | drivers/block/ataflop.c | if (!UDT || desc->track >= UDT->blocks/UDT->spt/2 || desc->head >= 2) { |
blocks | 1070 | drivers/block/ataflop.c | floppy_sizes[SelectedDrive] = SUDT->blocks >> 1; |
blocks | 1082 | drivers/block/ataflop.c | floppy_sizes[SelectedDrive] = SUDT->blocks >> 1; |
blocks | 1457 | drivers/block/ataflop.c | floppy_sizes[drive] = UDT->blocks >> 1; |
blocks | 1475 | drivers/block/ataflop.c | floppy_sizes[drive] = UDT->blocks >> 1; |
blocks | 1479 | drivers/block/ataflop.c | if (CURRENT->sector + 1 > UDT->blocks) { |
blocks | 1571 | drivers/block/ataflop.c | getprm.size = dtp->blocks; |
blocks | 1574 | drivers/block/ataflop.c | getprm.track = dtp->blocks/dtp->spt/2; |
blocks | 1888 | drivers/block/ataflop.c | floppy_sizes[i] = disk_type[type].blocks >> 1; |
blocks | 909 | drivers/block/ide-tape.c | int idetape_add_chrdev_read_request (ide_drive_t *drive,int blocks,char *buffer); |
blocks | 916 | drivers/block/ide-tape.c | int idetape_add_chrdev_write_request (ide_drive_t *drive,int blocks,char *buffer); |
blocks | 924 | drivers/block/ide-tape.c | int idetape_queue_rw_tail (ide_drive_t *drive,int cmd,int blocks,char *buffer); |
blocks | 3170 | drivers/block/ide-tape.c | int idetape_queue_rw_tail (ide_drive_t *drive,int cmd,int blocks,char *buffer) |
blocks | 3190 | drivers/block/ide-tape.c | rq.nr_sectors = rq.current_nr_sectors = blocks; |
blocks | 3193 | drivers/block/ide-tape.c | return (tape->tape_block_size*(blocks-rq.current_nr_sectors)); |
blocks | 3201 | drivers/block/ide-tape.c | int idetape_add_chrdev_read_request (ide_drive_t *drive,int blocks,char *buffer) |
blocks | 3217 | drivers/block/ide-tape.c | rq.nr_sectors = rq.current_nr_sectors = blocks; |
blocks | 3239 | drivers/block/ide-tape.c | return (idetape_queue_rw_tail (drive,IDETAPE_READ_REQUEST,blocks,buffer)); |
blocks | 3254 | drivers/block/ide-tape.c | if (bytes_read > blocks*tape->tape_block_size) { |
blocks | 3256 | drivers/block/ide-tape.c | bytes_read=blocks*tape->tape_block_size; |
blocks | 3274 | drivers/block/ide-tape.c | int idetape_add_chrdev_write_request (ide_drive_t *drive,int blocks,char *buffer) |
blocks | 3310 | drivers/block/ide-tape.c | return (idetape_queue_rw_tail (drive,IDETAPE_WRITE_REQUEST,blocks,buffer)); |
blocks | 3319 | drivers/block/ide-tape.c | rq->nr_sectors = blocks; |
blocks | 3320 | drivers/block/ide-tape.c | rq->current_nr_sectors = blocks; |
blocks | 3345 | drivers/block/ide-tape.c | return (blocks); |
blocks | 3415 | drivers/block/ide-tape.c | int blocks; |
blocks | 3429 | drivers/block/ide-tape.c | blocks=tape->merge_buffer_size/tape->tape_block_size; |
blocks | 3431 | drivers/block/ide-tape.c | blocks++; |
blocks | 3434 | drivers/block/ide-tape.c | (void) idetape_add_chrdev_write_request (drive,blocks,tape->merge_buffer); |
blocks | 761 | drivers/char/ftape/ecc.c | parity_bytes = &mseg->data[(mseg->blocks - 3) * SECTOR_SIZE]; |
blocks | 763 | drivers/char/ftape/ecc.c | set_parity((unsigned long *) &mseg->data[i], mseg->blocks - 3, |
blocks | 767 | drivers/char/ftape/ecc.c | if (!sanity_check((unsigned long *) &mseg->data[i], mseg->blocks)) { |
blocks | 796 | drivers/char/ftape/ecc.c | mseg->blocks, ss)) { |
blocks | 808 | drivers/char/ftape/ecc.c | for (i = 0; i < mseg->blocks; i++) { |
blocks | 850 | drivers/char/ftape/ecc.c | mseg->blocks, |
blocks | 854 | drivers/char/ftape/ecc.c | result = correct_block(&mseg->data[col + i], mseg->blocks, |
blocks | 870 | drivers/char/ftape/ecc.c | if (!sanity_check((unsigned long *) &mseg->data[col], mseg->blocks)) { |
blocks | 879 | drivers/char/ftape/ecc.c | mseg->blocks, ss)) { |
blocks | 67 | drivers/char/ftape/ecc.h | int blocks; |
blocks | 118 | drivers/char/ftape/ftape-read.c | mseg.blocks = buffer[tail].bytes / SECTOR_SIZE; |
blocks | 122 | drivers/char/ftape/ftape-read.c | if (mseg.blocks <= 3) { |
blocks | 139 | drivers/char/ftape/ftape-read.c | memcpy(destination, mseg.data, (mseg.blocks - 3) * SECTOR_SIZE); |
blocks | 145 | drivers/char/ftape/ftape-read.c | return (mseg.blocks - 3) * SECTOR_SIZE; |
blocks | 85 | drivers/char/ftape/ftape-write.c | mseg.blocks = 0; /* skip entire segment */ |
blocks | 88 | drivers/char/ftape/ftape-write.c | mseg.blocks = SECTORS_PER_SEGMENT - bads; |
blocks | 90 | drivers/char/ftape/ftape-write.c | memcpy(mseg.data, source, (mseg.blocks - 3) * SECTOR_SIZE); |
blocks | 95 | drivers/char/ftape/ftape-write.c | result = (mseg.blocks - 3) * SECTOR_SIZE; |
blocks | 1099 | drivers/scsi/fdomain.c | unsigned long blocks, size, capacity; |
blocks | 1101 | drivers/scsi/fdomain.c | blocks = (buf[0] << 24) | (buf[1] << 16) |
blocks | 1104 | drivers/scsi/fdomain.c | capacity = +( +(blocks / 1024L) * +(size * 10L)) / 1024L; |
blocks | 331 | drivers/scsi/g_NCR5380.c | int blocks = len / 128; |
blocks | 340 | drivers/scsi/g_NCR5380.c | printk("53C400r: About to read %d blocks for %d bytes\n", blocks, len); |
blocks | 344 | drivers/scsi/g_NCR5380.c | NCR5380_write(C400_BLOCK_COUNTER_REG, blocks); |
blocks | 348 | drivers/scsi/g_NCR5380.c | printk("53C400r: %d blocks left\n", blocks); |
blocks | 353 | drivers/scsi/g_NCR5380.c | if (blocks) |
blocks | 354 | drivers/scsi/g_NCR5380.c | printk("53C400r: blocks still == %d\n", blocks); |
blocks | 363 | drivers/scsi/g_NCR5380.c | printk("53C400r: Got 53C80_IRQ start=%d, blocks=%d\n", start, blocks); |
blocks | 386 | drivers/scsi/g_NCR5380.c | blocks--; |
blocks | 406 | drivers/scsi/g_NCR5380.c | blocks--; |
blocks | 409 | drivers/scsi/g_NCR5380.c | printk("53C400r: Final values: blocks=%d start=%d\n", blocks, start); |
blocks | 439 | drivers/scsi/g_NCR5380.c | int blocks = len / 128; |
blocks | 448 | drivers/scsi/g_NCR5380.c | printk("53C400w: About to write %d blocks for %d bytes\n", blocks, len); |
blocks | 452 | drivers/scsi/g_NCR5380.c | NCR5380_write(C400_BLOCK_COUNTER_REG, blocks); |
blocks | 455 | drivers/scsi/g_NCR5380.c | printk("53C400w: Got 53C80_IRQ start=%d, blocks=%d\n", start, blocks); |
blocks | 461 | drivers/scsi/g_NCR5380.c | if (blocks) |
blocks | 462 | drivers/scsi/g_NCR5380.c | printk("53C400w: exiting loop, blocks still == %d\n", blocks); |
blocks | 470 | drivers/scsi/g_NCR5380.c | printk("53C400w: %d blocks left\n", blocks); |
blocks | 488 | drivers/scsi/g_NCR5380.c | blocks--; |
blocks | 490 | drivers/scsi/g_NCR5380.c | if (blocks) { |
blocks | 508 | drivers/scsi/g_NCR5380.c | blocks--; |
blocks | 516 | drivers/scsi/g_NCR5380.c | printk("53C400w: Final values: blocks=%d start=%d\n", blocks, start); |
blocks | 936 | drivers/sound/dmabuf.c | info.blocks = audio_devs[dev]->dmap_in->qlen; |
blocks | 956 | drivers/sound/dmabuf.c | info.blocks = audio_devs[dev]->dmap_out->qlen; |
blocks | 124 | fs/affs/amigaffs.h | ULONG blocks[0]; |
blocks | 26 | fs/block_dev.c | int block, blocks; |
blocks | 90 | fs/block_dev.c | blocks = read_ahead[MAJOR(dev)] / (blocksize >> 9) / 2; |
blocks | 91 | fs/block_dev.c | if (block + blocks > size) blocks = size - block; |
blocks | 92 | fs/block_dev.c | if (blocks > NBUF) blocks=NBUF; |
blocks | 93 | fs/block_dev.c | excess = (block + blocks) % blocks_per_cluster; |
blocks | 94 | fs/block_dev.c | if ( blocks > excess ) |
blocks | 95 | fs/block_dev.c | blocks -= excess; |
blocks | 97 | fs/block_dev.c | for(i=1; i<blocks; i++){ |
blocks | 108 | fs/block_dev.c | ll_rw_block(READ, blocks, bhlist); |
blocks | 109 | fs/block_dev.c | for(i=1; i<blocks; i++) brelse(bhlist[i]); |
blocks | 166 | fs/block_dev.c | unsigned int blocks, rblocks, left; |
blocks | 213 | fs/block_dev.c | rblocks = blocks = (left + offset + blocksize - 1) >> blocksize_bits; |
blocks | 216 | fs/block_dev.c | if (blocks < read_ahead[MAJOR(dev)] / (blocksize >> 9)) |
blocks | 217 | fs/block_dev.c | blocks = read_ahead[MAJOR(dev)] / (blocksize >> 9); |
blocks | 218 | fs/block_dev.c | excess = (block + blocks) % blocks_per_cluster; |
blocks | 219 | fs/block_dev.c | if ( blocks > excess ) |
blocks | 220 | fs/block_dev.c | blocks -= excess; |
blocks | 221 | fs/block_dev.c | if (rblocks > blocks) |
blocks | 222 | fs/block_dev.c | blocks = rblocks; |
blocks | 225 | fs/block_dev.c | if (block + blocks > size) |
blocks | 226 | fs/block_dev.c | blocks = size - block; |
blocks | 241 | fs/block_dev.c | while (blocks) { |
blocks | 242 | fs/block_dev.c | --blocks; |
blocks | 908 | fs/buffer.c | unsigned int blocks; |
blocks | 924 | fs/buffer.c | blocks = ((filesize & (bufsize - 1)) - (pos & (bufsize - 1))) >> (9+index); |
blocks | 926 | fs/buffer.c | if (blocks > (read_ahead[MAJOR(dev)] >> index)) |
blocks | 927 | fs/buffer.c | blocks = read_ahead[MAJOR(dev)] >> index; |
blocks | 928 | fs/buffer.c | if (blocks > NBUF) |
blocks | 929 | fs/buffer.c | blocks = NBUF; |
blocks | 933 | fs/buffer.c | for(i=1; i<blocks; i++) { |
blocks | 412 | fs/dquot.c | static int check_bdq(struct dquot *dquot, short type, u_long blocks) |
blocks | 414 | fs/dquot.c | if (blocks <= 0 || dquot->dq_flags & DQ_FAKE) |
blocks | 417 | fs/dquot.c | (dquot->dq_curblocks + blocks) > dquot->dq_bhardlimit && !fsuser()) { |
blocks | 428 | fs/dquot.c | (dquot->dq_curblocks + blocks) > dquot->dq_bsoftlimit && |
blocks | 438 | fs/dquot.c | (dquot->dq_curblocks + blocks) > dquot->dq_bsoftlimit && |
blocks | 741 | fs/dquot.c | u_long blocks; |
blocks | 746 | fs/dquot.c | blocks = (isize / blksize) + ((isize % blksize) ? 1 : 0); |
blocks | 747 | fs/dquot.c | if (blocks > 10) { |
blocks | 748 | fs/dquot.c | indirect = ((blocks - 11) >> 8) + 1; /* single indirect blocks */ |
blocks | 749 | fs/dquot.c | if (blocks > (10 + 256)) { |
blocks | 750 | fs/dquot.c | indirect += ((blocks - 267) >> 16) + 1; /* double indirect blocks */ |
blocks | 751 | fs/dquot.c | if (blocks > (10 + 256 + (256 << 8))) |
blocks | 754 | fs/dquot.c | blocks += indirect; |
blocks | 756 | fs/dquot.c | return(blocks); |
blocks | 825 | fs/dquot.c | unsigned long blocks; |
blocks | 834 | fs/dquot.c | blocks = isize_to_blocks(inode->i_size, BLOCK_SIZE); |
blocks | 836 | fs/dquot.c | blocks = (inode->i_blocks / 2); |
blocks | 865 | fs/dquot.c | check_bdq(transfer_to[cnt], cnt, blocks) == NO_QUOTA) { |
blocks | 887 | fs/dquot.c | dquot_decr_blocks(transfer_from[cnt], blocks); |
blocks | 891 | fs/dquot.c | dquot_incr_blocks(transfer_to[cnt], blocks); |
blocks | 78 | fs/ext/file.c | int block, blocks, offset; |
blocks | 107 | fs/ext/file.c | blocks = (left + offset + BLOCK_SIZE - 1) >> BLOCK_SIZE_BITS; |
blocks | 110 | fs/ext/file.c | if(blocks < read_ahead[MAJOR(inode->i_dev)] / (BLOCK_SIZE >> 9)) |
blocks | 111 | fs/ext/file.c | blocks = read_ahead[MAJOR(inode->i_dev)] / (BLOCK_SIZE >> 9); |
blocks | 112 | fs/ext/file.c | if (block + blocks > size) |
blocks | 113 | fs/ext/file.c | blocks = size - block; |
blocks | 129 | fs/ext/file.c | while (blocks) { |
blocks | 130 | fs/ext/file.c | --blocks; |
blocks | 189 | fs/ext2/inode.c | int blocks = inode->i_sb->s_blocksize / 512; |
blocks | 240 | fs/ext2/inode.c | inode->i_blocks += blocks; |
blocks | 256 | fs/ext2/inode.c | int blocks = inode->i_sb->s_blocksize / 512; |
blocks | 317 | fs/ext2/inode.c | inode->i_blocks += blocks; |
blocks | 67 | fs/ext2/truncate.c | int blocks = inode->i_sb->s_blocksize / 512; |
blocks | 90 | fs/ext2/truncate.c | inode->i_blocks -= blocks; |
blocks | 120 | fs/ext2/truncate.c | int blocks = inode->i_sb->s_blocksize / 512; |
blocks | 171 | fs/ext2/truncate.c | inode->i_blocks -= blocks; |
blocks | 186 | fs/ext2/truncate.c | inode->i_blocks -= blocks; |
blocks | 206 | fs/ext2/truncate.c | int blocks = inode->i_sb->s_blocksize / 512; |
blocks | 246 | fs/ext2/truncate.c | inode->i_blocks -= blocks; |
blocks | 265 | fs/ext2/truncate.c | int blocks = inode->i_sb->s_blocksize / 512; |
blocks | 305 | fs/ext2/truncate.c | inode->i_blocks -= blocks; |
blocks | 678 | fs/nfs/dir.c | inode->i_blocks = fattr->blocks; |
blocks | 219 | fs/nfs/inode.c | res.bsize = res.blocks = res.bfree = res.bavail = 0; |
blocks | 223 | fs/nfs/inode.c | tmp.f_blocks = res.blocks; |
blocks | 174 | fs/nfs/proc.c | fattr->blocks = ntohl(*p++); |
blocks | 213 | fs/nfs/proc.c | res->blocks = ntohl(*p++); |
blocks | 50 | fs/stat.c | unsigned int blocks, indirect; |
blocks | 85 | fs/stat.c | blocks = (tmp.st_size + BLOCK_SIZE - 1) / BLOCK_SIZE; |
blocks | 86 | fs/stat.c | if (blocks > D_B) { |
blocks | 87 | fs/stat.c | indirect = (blocks - D_B + I_B - 1) / I_B; |
blocks | 88 | fs/stat.c | blocks += indirect; |
blocks | 91 | fs/stat.c | blocks += indirect; |
blocks | 93 | fs/stat.c | blocks++; |
blocks | 96 | fs/stat.c | tmp.st_blocks = (BLOCK_SIZE / 512) * blocks; |
blocks | 80 | fs/sysv/file.c | int blocks, offset; |
blocks | 109 | fs/sysv/file.c | blocks = (left + offset + sb->sv_block_size_1) >> sb->sv_block_size_bits; |
blocks | 112 | fs/sysv/file.c | blocks += read_ahead[MAJOR(inode->i_dev)] >> (sb->sv_block_size_bits - 9); |
blocks | 113 | fs/sysv/file.c | if (block + blocks > size) |
blocks | 114 | fs/sysv/file.c | blocks = size - block; |
blocks | 131 | fs/sysv/file.c | while (blocks) { |
blocks | 132 | fs/sysv/file.c | --blocks; |
blocks | 23 | fs/xiafs/xiafs_mac.h | #define XIAFS_GET_BLOCKS(row_ip, blocks) \ |
blocks | 24 | fs/xiafs/xiafs_mac.h | blocks=((((row_ip)->i_zone[0] >> 24) & 0xff )|\ |
blocks | 29 | fs/xiafs/xiafs_mac.h | #define XIAFS_PUT_BLOCKS(row_ip, blocks) \ |
blocks | 30 | fs/xiafs/xiafs_mac.h | (row_ip)->i_zone[2]=((blocks)<< 8) & 0xff000000;\ |
blocks | 31 | fs/xiafs/xiafs_mac.h | (row_ip)->i_zone[1]=((blocks)<<16) & 0xff000000;\ |
blocks | 32 | fs/xiafs/xiafs_mac.h | (row_ip)->i_zone[0]=((blocks)<<24) & 0xff000000 |
blocks | 47 | include/asm-m68k/amifd.h | int blocks; /* total # blocks on disk */ |
blocks | 138 | include/linux/nfs.h | u_int blocks; |
blocks | 165 | include/linux/nfs.h | u_int blocks; |
blocks | 610 | include/linux/soundcard.h | int blocks; /* # of fragment transitions since last time */ |