tag | line | file | source code |
blksize | 150 | drivers/block/loop.c | int real_block, block, offset, len, blksize, size; |
blksize | 163 | drivers/block/loop.c | blksize = BLOCK_SIZE; |
blksize | 165 | drivers/block/loop.c | blksize = blksize_size[MAJOR(lo->lo_device)][MINOR(lo->lo_device)]; |
blksize | 166 | drivers/block/loop.c | if (!blksize) |
blksize | 167 | drivers/block/loop.c | blksize = BLOCK_SIZE; |
blksize | 172 | drivers/block/loop.c | if (blksize < 512) { |
blksize | 173 | drivers/block/loop.c | block = CURRENT->sector * (512/blksize); |
blksize | 176 | drivers/block/loop.c | block = CURRENT->sector / (blksize >> 9); |
blksize | 177 | drivers/block/loop.c | offset = CURRENT->sector % (blksize >> 9); |
blksize | 179 | drivers/block/loop.c | block += lo->lo_offset / blksize; |
blksize | 180 | drivers/block/loop.c | offset += lo->lo_offset % blksize; |
blksize | 181 | drivers/block/loop.c | if (offset > blksize) { |
blksize | 183 | drivers/block/loop.c | offset -= blksize; |
blksize | 202 | drivers/block/loop.c | bh = getblk(lo->lo_device, real_block, blksize); |
blksize | 206 | drivers/block/loop.c | block, blksize); |
blksize | 210 | drivers/block/loop.c | (offset || (len < blksize)))) { |
blksize | 218 | drivers/block/loop.c | size = blksize - offset; |
blksize | 739 | fs/dquot.c | static u_long isize_to_blocks(size_t isize, size_t blksize) |
blksize | 744 | fs/dquot.c | if (!blksize) |
blksize | 745 | fs/dquot.c | blksize = BLOCK_SIZE; |
blksize | 746 | fs/dquot.c | blocks = (isize / blksize) + ((isize % blksize) ? 1 : 0); |
blksize | 86 | fs/fat/inode.c | static int parse_options(char *options,int *fat, int *blksize, int *debug, |
blksize | 170 | fs/fat/inode.c | *blksize = simple_strtoul(value,&value,0); |
blksize | 173 | fs/fat/inode.c | if (*blksize != 512 && *blksize != 1024){ |
blksize | 195 | fs/fat/inode.c | int blksize = 512; |
blksize | 200 | fs/fat/inode.c | blksize = hardsect_size[MAJOR(sb->s_dev)][MINOR(sb->s_dev)]; |
blksize | 201 | fs/fat/inode.c | if (blksize != 512){ |
blksize | 202 | fs/fat/inode.c | printk ("MSDOS: Hardware sector size is %d\n",blksize); |
blksize | 205 | fs/fat/inode.c | if (!parse_options((char *) data, &fat, &blksize, &debug, &opts) |
blksize | 206 | fs/fat/inode.c | || (blksize != 512 && blksize != 1024)) { |
blksize | 226 | fs/fat/inode.c | set_blocksize(sb->s_dev, blksize); |
blksize | 279 | fs/fat/inode.c | sb->s_blocksize = blksize; /* Using this small block size solve the */ |
blksize | 283 | fs/fat/inode.c | sb->s_blocksize_bits = blksize == 512 ? 9 : 10; |
blksize | 298 | fs/fat/inode.c | printk ("Transaction block size = %d\n",blksize); |
blksize | 55 | include/linux/quota.h | #define fs_to_dq_blocks(num, blksize) (((num) * (blksize)) / BLOCK_SIZE) |