tag | line | file | source code |
size | 827 | drivers/block/cdu31a.c | size_to_buf(unsigned int size, |
size | 830 | drivers/block/cdu31a.c | buf[0] = size / 65536; |
size | 831 | drivers/block/cdu31a.c | size = size % 65536; |
size | 832 | drivers/block/cdu31a.c | buf[1] = size / 256; |
size | 833 | drivers/block/cdu31a.c | buf[2] = size % 256; |
size | 688 | drivers/block/floppy.c | floppy_sizes[drive] = floppy->size >> 1; |
size | 1045 | drivers/block/floppy.c | if (block+2 > floppy->size) { |
size | 1199 | drivers/block/floppy.c | floppy_sizes[drive] = user_params[drive].size >> 1; |
size | 700 | drivers/char/tpqic02.c | static int send_qic02_data(char sb[], unsigned size, int ignore_ex) |
size | 704 | drivers/char/tpqic02.c | for (i=0; i<size; i++) { |
size | 765 | drivers/char/tpqic02.c | static int rdstatus(char *stp, unsigned size, char qcmd) |
size | 799 | drivers/char/tpqic02.c | for (q=stp; q<stp+size; q++) |
size | 2503 | drivers/char/tpqic02.c | static inline unsigned long const align_buffer(unsigned long a, unsigned size) |
size | 2505 | drivers/char/tpqic02.c | if (a & (size-1)) /* if not aligned */ |
size | 2506 | drivers/char/tpqic02.c | return (a | (size-1)) + 1; |
size | 57 | drivers/net/3c501.c | #define alloc_skb(size, priority) (struct sk_buff *) kmalloc(size,priority) |
size | 58 | drivers/net/3c501.c | #define kfree_skbmem(addr, size) kfree_s(addr,size); |
size | 59 | drivers/net/3c507.c | #define alloc_skb(size, priority) (struct sk_buff *) kmalloc(size,priority) |
size | 60 | drivers/net/3c507.c | #define kfree_skbmem(addr, size) kfree_s(addr,size); |
size | 363 | drivers/net/3c507.c | int size; |
size | 366 | drivers/net/3c507.c | size = 64*1024; |
size | 370 | drivers/net/3c507.c | size = ((mem_config & 3) + 1) << 14; |
size | 373 | drivers/net/3c507.c | if (size != 0x10000) |
size | 377 | drivers/net/3c507.c | dev->mem_end = base + size; |
size | 47 | drivers/net/3c509.c | #define alloc_skb(size, priority) (struct sk_buff *) kmalloc(size,priority) |
size | 64 | drivers/net/8390.c | #define alloc_skb(size, priority) (struct sk_buff *) kmalloc(size,priority) |
size | 65 | drivers/net/8390.c | #define kfree_skbmem(addr, size) kfree_s(addr,size) |
size | 56 | drivers/net/at1700.c | #define alloc_skb(size, priority) (struct sk_buff *) kmalloc(size,priority) |
size | 57 | drivers/net/at1700.c | #define kfree_skbmem(addr, size) kfree_s(addr,size); |
size | 93 | drivers/net/d_link.c | #define alloc_skb(size,pri) (struct sk_buff *)kmalloc(size,pri) |
size | 561 | drivers/net/d_link.c | int size; |
size | 567 | drivers/net/d_link.c | size = d_link_read_byte(RX_LEN, dev); /* low byte */ |
size | 568 | drivers/net/d_link.c | size += (d_link_read_byte(RX_LEN, dev) << 8); /* high byte */ |
size | 569 | drivers/net/d_link.c | size -= 4; /* Ignore trailing 4 CRC-bytes */ |
size | 577 | drivers/net/d_link.c | if ((size < 32) || (size > 1535)) |
size | 578 | drivers/net/d_link.c | printk("%s: Bogus packet size %d.\n", dev->name, size); |
size | 580 | drivers/net/d_link.c | sksize = sizeof(struct sk_buff) + size; |
size | 598 | drivers/net/d_link.c | for (i = size; i > 0; --i, ++buffer) |
size | 603 | drivers/net/d_link.c | if (dev_rint((unsigned char *)skb, size, IN_SKBUFF, dev)) |
size | 59 | drivers/net/eexpress.c | #define alloc_skb(size, priority) (struct sk_buff *) kmalloc(size,priority) |
size | 39 | drivers/net/lance.c | #define check_region(addr, size) 0 |
size | 40 | drivers/net/lance.c | #define snarf_region(addr, size) do ; while(0) |
size | 44 | drivers/net/lance.c | #define alloc_skb(size, priority) (struct sk_buff *) kmalloc(size,priority) |
size | 45 | drivers/net/lance.c | #define kfree_skbmem(buff, size) kfree_s(buff,size) |
size | 75 | drivers/net/skeleton.c | #define alloc_skb(size, priority) (struct sk_buff *) kmalloc(size,priority) |
size | 76 | drivers/net/skeleton.c | #define kfree_skbmem(addr, size) kfree_s(addr,size); |
size | 80 | drivers/net/skeleton.c | #define check_region(ioaddr, size) 0 |
size | 81 | drivers/net/skeleton.c | #define snarf_region(ioaddr, size); do ; while (0) |
size | 32 | drivers/net/smc-ultra.c | #define check_region(ioaddr, size) 0 |
size | 33 | drivers/net/smc-ultra.c | #define snarf_region(ioaddr, size); do ; while (0) |
size | 33 | drivers/net/wd.c | #define check_region(ioaddr, size) 0 |
size | 34 | drivers/net/wd.c | #define snarf_region(ioaddr, size); do ; while (0) |
size | 974 | drivers/scsi/aha152x.c | int aha152x_biosparam( int size, int dev, int *info_array ) |
size | 985 | drivers/scsi/aha152x.c | printk("dev=%x, size=%d, ", dev, size); |
size | 992 | drivers/scsi/aha152x.c | info_array[2]=size>>11; |
size | 850 | drivers/scsi/aha1542.c | int aha1542_biosparam(int size, int dev, int * ip) |
size | 854 | drivers/scsi/aha1542.c | ip[2] = size >> 11; |
size | 494 | drivers/scsi/aha1740.c | int aha1740_biosparam(int size, int dev, int* ip) |
size | 499 | drivers/scsi/aha1740.c | ip[2] = size >> 11; |
size | 663 | drivers/scsi/fdomain.c | unsigned long blocks, size, capacity; |
size | 667 | drivers/scsi/fdomain.c | size = (buf[4] << 24) | (buf[5] << 16) | (buf[6] << 8) | buf[7]; |
size | 668 | drivers/scsi/fdomain.c | capacity = +( +(blocks / 1024L) * +(size * 10L)) / 1024L; |
size | 671 | drivers/scsi/fdomain.c | ((capacity + 5L) / 10L), size ); |
size | 1429 | drivers/scsi/fdomain.c | int fdomain_16x0_biosparam( int size, int dev, int *info_array ) |
size | 396 | drivers/scsi/pas16.c | int pas16_biosparam(int size, int dev, int * ip) |
size | 400 | drivers/scsi/pas16.c | ip[2] = size >> 11; |
size | 482 | drivers/scsi/scsi_debug.c | int scsi_debug_biosparam(int size, int* info){ |
size | 485 | drivers/scsi/scsi_debug.c | info[2] = (size + 2047) >> 11; |
size | 1603 | drivers/scsi/seagate.c | int seagate_st0x_biosparam(int size, int dev, int* ip) { |
size | 120 | drivers/scsi/sg.c | static char *sg_malloc(int size) |
size | 122 | drivers/scsi/sg.c | if (size<=4096) |
size | 123 | drivers/scsi/sg.c | return (char *) scsi_malloc(size); |
size | 125 | drivers/scsi/sg.c | if (size<SG_BIG_BUFF) |
size | 140 | drivers/scsi/sg.c | static void sg_free(char *buff,int size) |
size | 150 | drivers/scsi/sg.c | scsi_free(buff,size); |
size | 211 | drivers/scsi/sg.c | int bsize,size,amt,i; |
size | 264 | drivers/scsi/sg.c | size=COMMAND_SIZE(get_fs_byte(buf)); |
size | 265 | drivers/scsi/sg.c | memcpy_fromfs(cmnd,buf,size); |
size | 266 | drivers/scsi/sg.c | buf+=size; |
size | 267 | drivers/scsi/sg.c | memcpy_fromfs(device->buff,buf,device->header.pack_len-size-sizeof(struct sg_header)); |
size | 295 | drivers/scsi/t128.c | int t128_biosparam(int size, int dev, int * ip) |
size | 299 | drivers/scsi/t128.c | ip[2] = size >> 11; |
size | 987 | drivers/scsi/ultrastor.c | int ultrastor_biosparam(int size, int dev, int * dkinfo) |
size | 993 | drivers/scsi/ultrastor.c | dkinfo[2] = size / s; /* Ignore partial cylinders */ |
size | 609 | drivers/scsi/wd7000.c | int wd7000_biosparam(int size, int dev, int* ip) |
size | 617 | drivers/scsi/wd7000.c | ip[2] = size >> 11; |
size | 476 | drivers/sound/dmabuf.c | DMAbuf_getwrbuffer (int dev, char **buf, int *size) |
size | 539 | drivers/sound/dmabuf.c | *size = dev_buffsize[dev]; |
size | 814 | drivers/sound/dmabuf.c | DMAbuf_getwrbuffer (int dev, char **buf, int *size) |
size | 8 | drivers/sound/sound_calls.h | int DMAbuf_getwrbuffer(int dev, char **buf, int *size); |
size | 24 | fs/block_dev.c | unsigned int size; |
size | 45 | fs/block_dev.c | size = (blk_size[MAJOR(dev)][MINOR(dev)] << BLOCK_SIZE_BITS) >> blocksize_bits; |
size | 47 | fs/block_dev.c | size = INT_MAX; |
size | 49 | fs/block_dev.c | if (block >= size) |
size | 91 | fs/block_dev.c | unsigned int size; |
size | 108 | fs/block_dev.c | size = blk_size[MAJOR(dev)][MINOR(dev)] << BLOCK_SIZE_BITS; |
size | 110 | fs/block_dev.c | size = INT_MAX; |
size | 112 | fs/block_dev.c | if (offset > size) |
size | 115 | fs/block_dev.c | left = size - offset; |
size | 123 | fs/block_dev.c | size >>= blocksize_bits; |
size | 128 | fs/block_dev.c | if (block + blocks > size) |
size | 129 | fs/block_dev.c | blocks = size - block; |
size | 49 | fs/buffer.c | static int grow_buffers(int pri, int size); |
size | 357 | fs/buffer.c | static struct buffer_head * find_buffer(dev_t dev, int block, int size) |
size | 363 | fs/buffer.c | if (tmp->b_size == size) |
size | 380 | fs/buffer.c | struct buffer_head * get_hash_table(dev_t dev, int block, int size) |
size | 385 | fs/buffer.c | if (!(bh=find_buffer(dev,block,size))) |
size | 389 | fs/buffer.c | if (bh->b_dev == dev && bh->b_blocknr == block && bh->b_size == size) |
size | 395 | fs/buffer.c | void set_blocksize(dev_t dev, int size) |
size | 403 | fs/buffer.c | switch(size) { |
size | 408 | fs/buffer.c | if (blksize_size[MAJOR(dev)][MINOR(dev)] == 0 && size == BLOCK_SIZE) { |
size | 409 | fs/buffer.c | blksize_size[MAJOR(dev)][MINOR(dev)] = size; |
size | 412 | fs/buffer.c | if (blksize_size[MAJOR(dev)][MINOR(dev)] == size) |
size | 415 | fs/buffer.c | blksize_size[MAJOR(dev)][MINOR(dev)] = size; |
size | 425 | fs/buffer.c | if (bh->b_size == size) |
size | 429 | fs/buffer.c | if (bh->b_dev == dev && bh->b_size != size) |
size | 447 | fs/buffer.c | struct buffer_head * getblk(dev_t dev, int block, int size) |
size | 454 | fs/buffer.c | bh = get_hash_table(dev, block, size); |
size | 460 | fs/buffer.c | grow_size -= size; |
size | 462 | fs/buffer.c | if (grow_buffers(GFP_BUFFER, size)) |
size | 469 | fs/buffer.c | if (tmp->b_count || tmp->b_size != size) |
size | 488 | fs/buffer.c | if (grow_buffers(GFP_BUFFER, size)) |
size | 494 | fs/buffer.c | if (!grow_buffers(GFP_ATOMIC, size)) |
size | 499 | fs/buffer.c | if (bh->b_count || bh->b_size != size) |
size | 507 | fs/buffer.c | if (find_buffer(dev,block,size)) |
size | 540 | fs/buffer.c | struct buffer_head * bread(dev_t dev, int block, int size) |
size | 544 | fs/buffer.c | if (!(bh = getblk(dev, block, size))) { |
size | 652 | fs/buffer.c | static struct buffer_head * create_buffers(unsigned long page, unsigned long size) |
size | 659 | fs/buffer.c | while ((offset -= size) < PAGE_SIZE) { |
size | 666 | fs/buffer.c | bh->b_size = size; |
size | 702 | fs/buffer.c | dev_t dev, int *b, int size) |
size | 718 | fs/buffer.c | for (offset = size ; offset < PAGE_SIZE ; offset += size) { |
size | 722 | fs/buffer.c | first = get_hash_table(dev, block, size); |
size | 743 | fs/buffer.c | dev_t dev, int b[], int size) |
size | 750 | fs/buffer.c | bh = create_buffers(address, size); |
size | 754 | fs/buffer.c | for (offset = 0 ; offset < PAGE_SIZE ; offset += size) { |
size | 758 | fs/buffer.c | tmp = get_hash_table(dev, block, size); |
size | 809 | fs/buffer.c | dev_t dev, int *b, int size) |
size | 817 | fs/buffer.c | bh = get_hash_table(dev, block, size); |
size | 819 | fs/buffer.c | return check_aligned(bh, address, dev, b, size); |
size | 820 | fs/buffer.c | return try_to_load_aligned(address, dev, b, size); |
size | 823 | fs/buffer.c | #define COPYBLK(size,from,to) \ |
size | 825 | fs/buffer.c | :"c" (((unsigned long) size) >> 2),"S" (from),"D" (to) \ |
size | 835 | fs/buffer.c | unsigned long bread_page(unsigned long address, dev_t dev, int b[], int size, int prot) |
size | 842 | fs/buffer.c | where = try_to_share_buffers(address,dev,b,size); |
size | 847 | fs/buffer.c | for (i=0, j=0; j<PAGE_SIZE ; i++, j+= size) { |
size | 850 | fs/buffer.c | bh[i] = getblk(dev, b[i], size); |
size | 854 | fs/buffer.c | for (i=0, j=0; j<PAGE_SIZE ; i++, j += size,address += size) { |
size | 857 | fs/buffer.c | COPYBLK(size, (unsigned long) bh[i]->b_data,address); |
size | 868 | fs/buffer.c | static int grow_buffers(int pri, int size) |
size | 873 | fs/buffer.c | if ((size & 511) || (size > PAGE_SIZE)) { |
size | 874 | fs/buffer.c | printk("VFS: grow_buffers: size = %d\n",size); |
size | 879 | fs/buffer.c | bh = create_buffers(page, size); |
size | 80 | fs/ext/file.c | unsigned int size; |
size | 91 | fs/ext/file.c | size = inode->i_size; |
size | 92 | fs/ext/file.c | if (offset > size) |
size | 95 | fs/ext/file.c | left = size - offset; |
size | 103 | fs/ext/file.c | size = (size + (BLOCK_SIZE-1)) >> BLOCK_SIZE_BITS; |
size | 108 | fs/ext/file.c | if (block + blocks > size) |
size | 109 | fs/ext/file.c | blocks = size - block; |
size | 34 | fs/ext2/balloc.c | #define clear_block(addr,size) \ |
size | 39 | fs/ext2/balloc.c | :"a" (0), "c" (size / 4), "D" ((long) (addr)) \ |
size | 42 | fs/ext2/balloc.c | static inline int find_first_zero_bit (unsigned long * addr, unsigned size) |
size | 46 | fs/ext2/balloc.c | if (!size) |
size | 63 | fs/ext2/balloc.c | :"c" ((size + 31) >> 5), "D" (addr), "b" (addr) |
size | 68 | fs/ext2/balloc.c | static inline int find_next_zero_bit (unsigned long * addr, int size, |
size | 89 | fs/ext2/balloc.c | res = find_first_zero_bit (p, size - 32 * (p - addr)); |
size | 93 | fs/ext2/balloc.c | static inline char * find_first_zero_byte (char * addr, int size) |
size | 97 | fs/ext2/balloc.c | if (!size) |
size | 107 | fs/ext2/balloc.c | : "0" (addr), "c" (size) |
size | 83 | fs/ext2/file.c | unsigned int size; |
size | 97 | fs/ext2/file.c | size = inode->i_size; |
size | 98 | fs/ext2/file.c | if (offset > size) |
size | 101 | fs/ext2/file.c | left = size - offset; |
size | 109 | fs/ext2/file.c | size = (size + sb->s_blocksize - 1) >> EXT2_BLOCK_SIZE_BITS(sb); |
size | 115 | fs/ext2/file.c | if (block + blocks > size) |
size | 116 | fs/ext2/file.c | blocks = size - block; |
size | 36 | fs/ext2/ialloc.c | static inline int find_first_zero_bit (unsigned long * addr, unsigned size) |
size | 40 | fs/ext2/ialloc.c | if (!size) |
size | 57 | fs/ext2/ialloc.c | : "c" ((size + 31) >> 5), "D" (addr), "b" (addr) |
size | 21 | fs/ext2/truncate.c | #define clear_block(addr,size,value) \ |
size | 26 | fs/ext2/truncate.c | :"a" (value), "c" (size / 4), "D" ((long) (addr)) \ |
size | 374 | fs/isofs/inode.c | inode->i_size = isonum_733 (raw_inode->size); |
size | 635 | fs/isofs/inode.c | void * leak_check_malloc(unsigned int size){ |
size | 638 | fs/isofs/inode.c | tmp = kmalloc(size, GFP_KERNEL); |
size | 642 | fs/isofs/inode.c | void leak_check_free_s(void * obj, int size){ |
size | 644 | fs/isofs/inode.c | return kfree_s(obj, size); |
size | 647 | fs/isofs/inode.c | struct buffer_head * leak_check_bread(int dev, int block, int size){ |
size | 649 | fs/isofs/inode.c | return bread(dev, block, size); |
size | 45 | fs/isofs/rock.c | cont_size = isonum_733(rr->u.CE.size);} |
size | 14 | fs/isofs/rock.h | char size[8]; |
size | 74 | fs/minix/file.c | unsigned int size; |
size | 85 | fs/minix/file.c | size = inode->i_size; |
size | 86 | fs/minix/file.c | if (offset > size) |
size | 89 | fs/minix/file.c | left = size - offset; |
size | 97 | fs/minix/file.c | size = (size + (BLOCK_SIZE-1)) >> BLOCK_SIZE_BITS; |
size | 102 | fs/minix/file.c | if (block + blocks > size) |
size | 103 | fs/minix/file.c | blocks = size - block; |
size | 84 | fs/msdos/file.c | int left,offset,size,sector,cnt; |
size | 105 | fs/msdos/file.c | filp->f_pos += (size = MIN(SECTOR_SIZE-offset,left)); |
size | 107 | fs/msdos/file.c | memcpy_tofs(buf,data+offset,size); |
size | 108 | fs/msdos/file.c | buf += size; |
size | 110 | fs/msdos/file.c | else for (cnt = size; cnt; cnt--) { |
size | 112 | fs/msdos/file.c | size--; |
size | 138 | fs/msdos/file.c | int sector,offset,size,left,written; |
size | 159 | fs/msdos/file.c | for (start = buf; count || carry; count -= size) { |
size | 167 | fs/msdos/file.c | size = MIN(SECTOR_SIZE-offset,MAX(carry,count)); |
size | 174 | fs/msdos/file.c | buf,written = size); |
size | 175 | fs/msdos/file.c | buf += size; |
size | 185 | fs/msdos/file.c | for (size = 0; size < count && left; size++) { |
size | 375 | fs/msdos/inode.c | inode->i_size = CF_LE_L(raw_entry->size); |
size | 406 | fs/msdos/inode.c | raw_entry->size = 0; |
size | 410 | fs/msdos/inode.c | raw_entry->size = CT_LE_L(inode->i_size); |
size | 183 | fs/msdos/namei.c | de->size = 0; |
size | 230 | fs/nfs/dir.c | if (fattr->size == -1 || fattr->uid == -1 || fattr->gid == -1 |
size | 347 | fs/nfs/dir.c | sattr.uid = sattr.gid = sattr.size = (unsigned) -1; |
size | 383 | fs/nfs/dir.c | sattr.size = rdev; /* get out your barf bag */ |
size | 385 | fs/nfs/dir.c | sattr.size = (unsigned) -1; |
size | 412 | fs/nfs/dir.c | sattr.uid = sattr.gid = sattr.size = (unsigned) -1; |
size | 482 | fs/nfs/dir.c | sattr.uid = sattr.gid = sattr.size = (unsigned) -1; |
size | 578 | fs/nfs/dir.c | inode->i_size = fattr->size; |
size | 213 | fs/nfs/inode.c | sattr.size = S_ISREG(inode->i_mode) ? inode->i_size : -1; |
size | 215 | fs/nfs/inode.c | sattr.size = (unsigned) -1; |
size | 121 | fs/nfs/proc.c | fattr->size = ntohl(*p++); |
size | 141 | fs/nfs/proc.c | *p++ = htonl(sattr->size); |
size | 536 | fs/nfs/proc.c | int size; |
size | 540 | fs/nfs/proc.c | size = server->rsize; |
size | 544 | fs/nfs/proc.c | *p++ = htonl(size); |
size | 26 | fs/pipe.c | int chars = 0, size = 0, read = 0; |
size | 47 | fs/pipe.c | while (count>0 && (size = PIPE_SIZE(*inode))) { |
size | 51 | fs/pipe.c | if (chars > size) |
size | 52 | fs/pipe.c | chars = size; |
size | 157 | fs/proc/array.c | int size = 0, result = 0; |
size | 169 | fs/proc/array.c | result = size; |
size | 170 | fs/proc/array.c | if (size < PAGE_SIZE) |
size | 171 | fs/proc/array.c | buffer[size++] = c; |
size | 309 | fs/proc/array.c | int size=0, resident=0, share=0, trs=0, lrs=0, drs=0, dt=0; |
size | 325 | fs/proc/array.c | ++size; |
size | 349 | fs/proc/array.c | size, resident, share, trs, lrs, drs, dt); |
size | 103 | include/asm/system.h | #define set_ldt_desc(n,addr,size) \ |
size | 104 | include/asm/system.h | _set_tssldt_desc(((char *) (n)),((int)(addr)),((size << 3) - 1),"0x82") |
size | 27 | include/linux/fd.h | unsigned int size, /* nr of 512-byte sectors total */ |
size | 377 | include/linux/fs.h | extern struct buffer_head * get_hash_table(dev_t dev, int block, int size); |
size | 378 | include/linux/fs.h | extern struct buffer_head * getblk(dev_t dev, int block, int size); |
size | 383 | include/linux/fs.h | extern void set_blocksize(dev_t dev, int size); |
size | 384 | include/linux/fs.h | extern struct buffer_head * bread(dev_t dev, int block, int size); |
size | 385 | include/linux/fs.h | extern unsigned long bread_page(unsigned long addr,dev_t dev,int b[],int size,int prot); |
size | 110 | include/linux/iso_fs.h | char size [ISODCL (11, 18)]; /* 733 */ |
size | 209 | include/linux/iso_fs.h | extern void * leak_check_malloc(unsigned int size); |
size | 210 | include/linux/iso_fs.h | extern void leak_check_free_s(void * obj, int size); |
size | 211 | include/linux/iso_fs.h | extern struct buffer_head * leak_check_bread(int dev, int block, int size); |
size | 10 | include/linux/malloc.h | void *deb_kmalloc(const char *deb_file, unsigned short deb_line,unsigned int size, int priority); |
size | 11 | include/linux/malloc.h | void deb_kfree_s (const char *deb_file, unsigned short deb_line,void * obj, int size); |
size | 12 | include/linux/malloc.h | void deb_kcheck_s(const char *deb_file, unsigned short deb_line,void * obj, int size); |
size | 20 | include/linux/malloc.h | void * kmalloc(unsigned int size, int priority); |
size | 21 | include/linux/malloc.h | void kfree_s(void * obj, int size); |
size | 97 | include/linux/mm.h | extern int unmap_page_range(unsigned long from, unsigned long size); |
size | 98 | include/linux/mm.h | extern int remap_page_range(unsigned long from, unsigned long to, unsigned long size, int mask); |
size | 99 | include/linux/mm.h | extern int zeromap_page_range(unsigned long from, unsigned long size, int mask); |
size | 115 | include/linux/mm.h | extern void * vmalloc(unsigned long size); |
size | 23 | include/linux/module.h | int size; /* size of module in pages */ |
size | 88 | include/linux/msdos_fs.h | unsigned long size; /* file size (in bytes) */ |
size | 99 | include/linux/net.h | int (*read) (struct socket *sock, char *ubuf, int size, |
size | 101 | include/linux/net.h | int (*write) (struct socket *sock, char *ubuf, int size, |
size | 134 | include/linux/nfs.h | u_int size; |
size | 149 | include/linux/nfs.h | u_int size; |
size | 58 | ipc/sem.c | int size; |
size | 71 | ipc/sem.c | size = sizeof (*sma) + nsems * sizeof (struct sem); |
size | 73 | ipc/sem.c | sma = (struct semid_ds *) kmalloc (size, GFP_KERNEL); |
size | 81 | ipc/sem.c | memset (sma, 0, size); |
size | 19 | ipc/shm.c | static int newseg (key_t key, int shmflg, int size); |
size | 66 | ipc/shm.c | static int newseg (key_t key, int shmflg, int size) |
size | 69 | ipc/shm.c | int numpages = (size + PAGE_SIZE -1) >> PAGE_SHIFT; |
size | 72 | ipc/shm.c | if (size < SHMMIN) |
size | 108 | ipc/shm.c | shp->shm_segsz = size; |
size | 125 | ipc/shm.c | int sys_shmget (key_t key, int size, int shmflg) |
size | 130 | ipc/shm.c | if (size < 0 || size > SHMMAX) |
size | 133 | ipc/shm.c | return newseg(key, shmflg, size); |
size | 137 | ipc/shm.c | return newseg(key, shmflg, size); |
size | 144 | ipc/shm.c | if (size > shp->shm_segsz) |
size | 31 | ipc/util.c | extern int sys_shmget (key_t key, int size, int flag); |
size | 19 | kernel/ldt.c | unsigned long size; |
size | 23 | kernel/ldt.c | size = PAGE_SIZE; |
size | 26 | kernel/ldt.c | size = sizeof(default_ldt); |
size | 28 | kernel/ldt.c | if (size > bytecount) |
size | 29 | kernel/ldt.c | size = bytecount; |
size | 30 | kernel/ldt.c | error = verify_area(VERIFY_WRITE, ptr, size); |
size | 33 | kernel/ldt.c | memcpy_tofs(ptr, address, size); |
size | 34 | kernel/ldt.c | return size; |
size | 21 | kernel/module.c | sys_create_module(char *module_name, unsigned long size) |
size | 33 | kernel/module.c | if (module_name == NULL || size == 0) |
size | 48 | kernel/module.c | npages = (size + sizeof (int) + 4095) / 4096; |
size | 55 | kernel/module.c | mp->size = npages; |
size | 63 | kernel/module.c | mp->name, (unsigned long) mp->size, (unsigned long) mp->addr); |
size | 95 | kernel/module.c | if ((codesize + sizeof (int) + 4095) / 4096 > mp->size) |
size | 99 | kernel/module.c | mp->size * 4096 - (codesize + sizeof (int))); |
size | 241 | kernel/module.c | char size[32]; |
size | 253 | kernel/module.c | sprintf(size, "%d", mp->size); |
size | 254 | kernel/module.c | i -= strlen(size); |
size | 259 | kernel/module.c | q = size; |
size | 67 | kernel/vsprintf.c | static char * number(char * str, int num, int base, int size, int precision |
size | 84 | kernel/vsprintf.c | if (sign) size--; |
size | 86 | kernel/vsprintf.c | if (base==16) size -= 2; |
size | 87 | kernel/vsprintf.c | else if (base==8) size--; |
size | 94 | kernel/vsprintf.c | size -= precision; |
size | 96 | kernel/vsprintf.c | while(size-->0) |
size | 108 | kernel/vsprintf.c | while(size-->0) |
size | 114 | kernel/vsprintf.c | while(size-->0) |
size | 80 | lib/malloc.c | unsigned int size; |
size | 91 | lib/malloc.c | unsigned short size; |
size | 191 | lib/malloc.c | for (bdir = bucket_dir ; bdir->size < len ; bdir++) { |
size | 192 | lib/malloc.c | if (!bdir->size) |
size | 237 | lib/malloc.c | bdesc->bucket_size = bdir->size; |
size | 241 | lib/malloc.c | for (i=PAGE_SIZE/bdir->size; i > 0 ; i--) { |
size | 246 | lib/malloc.c | he = (struct hdr_end *)(page+(bdir->size-sizeof(struct hdr_end))); |
size | 250 | lib/malloc.c | hd->size = bdir->size-sizeof(struct hdr_start)-sizeof(struct hdr_end); |
size | 253 | lib/malloc.c | memset(hd+1,0xF8,hd->size); |
size | 255 | lib/malloc.c | *((void **) (hd+1)) = (i==1) ? NULL : (void *)(page + bdir->size); |
size | 257 | lib/malloc.c | *((void **) page) = (i==1) ? NULL : (void *)(page + bdir->size); |
size | 259 | lib/malloc.c | page += bdir->size; |
size | 292 | lib/malloc.c | if(len > hd->size || len > bdir->size-sizeof(struct hdr_start)-sizeof(struct hdr_end)) { |
size | 294 | lib/malloc.c | hd->size,bdir->size,len,hd->file,hd->line,deb_file,deb_line); |
size | 301 | lib/malloc.c | while(pos < hd->size) { |
size | 304 | lib/malloc.c | retval,pos,hd->size,hd->file,hd->line); |
size | 310 | lib/malloc.c | he = (struct hdr_end *)(((char *)retval)+hd->size); |
size | 312 | lib/malloc.c | printk("DEB_MALLOC overran 0x%x:%d while free, from %s:%d\n",retval,hd->size,hd->file,hd->line); |
size | 318 | lib/malloc.c | hd->size = len; |
size | 333 | lib/malloc.c | void *obj, int size) |
size | 352 | lib/malloc.c | if(hd->size != size) { |
size | 353 | lib/malloc.c | if(size != 0) { |
size | 355 | lib/malloc.c | obj,size,hd->size,deb_file,deb_line,hd->ok_file,hd->ok_line); |
size | 357 | lib/malloc.c | size = hd->size; |
size | 359 | lib/malloc.c | he = (struct hdr_end *)(((char *)obj)+size); |
size | 362 | lib/malloc.c | obj,hd->size,deb_file,deb_line,hd->ok_file,hd->ok_line); |
size | 380 | lib/malloc.c | void *obj, int size) |
size | 382 | lib/malloc.c | void kfree_s(void *obj, int size) |
size | 404 | lib/malloc.c | if(hd->size != size) { |
size | 405 | lib/malloc.c | if(size != 0) { |
size | 408 | lib/malloc.c | obj,size,hd->size,deb_file,deb_line,hd->ok_file,hd->ok_line); |
size | 410 | lib/malloc.c | size = hd->size; |
size | 412 | lib/malloc.c | he = (struct hdr_end *)(((char *)obj)+size); |
size | 416 | lib/malloc.c | obj,hd->size,deb_file,deb_line,hd->file,hd->line,hd->ok_file,hd->ok_line); |
size | 418 | lib/malloc.c | size += sizeof(struct hdr_start)+sizeof(struct hdr_end); |
size | 426 | lib/malloc.c | for (bdir = bucket_dir; bdir->size; bdir++) { |
size | 429 | lib/malloc.c | if (bdir->size >= size) { |
size | 446 | lib/malloc.c | printk("Bad address passed to kernel kfree_s(%p, %d)\n",obj, size); |
size | 467 | lib/malloc.c | hd->size = bdir->size-sizeof(struct hdr_start)-sizeof(struct hdr_end); |
size | 468 | lib/malloc.c | he = (struct hdr_end *)(((char *)obj)+hd->size); |
size | 469 | lib/malloc.c | memset(obj, 0xf8, hd->size); |
size | 517 | lib/malloc.c | for (bdir = bucket_dir; bdir->size; bdir++) { |
size | 520 | lib/malloc.c | for (i=PAGE_SIZE/bdir->size; i > 0 ; i--) { |
size | 530 | lib/malloc.c | (long)(page+sizeof(struct hdr_start)),hd->size,hd->file,hd->line,hd->ok_file,hd->ok_line); |
size | 532 | lib/malloc.c | page += bdir->size; |
size | 82 | mm/kmalloc.c | int size; |
size | 106 | mm/kmalloc.c | #define BLOCKSIZE(order) (sizes[order].size) |
size | 136 | mm/kmalloc.c | int get_order (int size) |
size | 141 | mm/kmalloc.c | size += sizeof (struct block_header); |
size | 143 | mm/kmalloc.c | if (size <= BLOCKSIZE (order)) |
size | 148 | mm/kmalloc.c | void * kmalloc (size_t size, int priority) |
size | 156 | mm/kmalloc.c | if (size > MAX_KMALLOC_K * 1024) |
size | 159 | mm/kmalloc.c | size,MAX_KMALLOC_K*1024); |
size | 163 | mm/kmalloc.c | order = get_order (size); |
size | 166 | mm/kmalloc.c | printk ("kmalloc of too large a block (%d bytes).\n",size); |
size | 194 | mm/kmalloc.c | sizes [order].nbytesmalloced += size; |
size | 196 | mm/kmalloc.c | p->bh_length = size; |
size | 259 | mm/kmalloc.c | size); |
size | 264 | mm/kmalloc.c | void kfree_s (void *ptr,int size) |
size | 282 | mm/kmalloc.c | if (size && |
size | 283 | mm/kmalloc.c | size != p->bh_length) |
size | 286 | mm/kmalloc.c | p,size,p->bh_length); |
size | 289 | mm/kmalloc.c | size = p->bh_length; |
size | 337 | mm/kmalloc.c | sizes[order].nbytesmalloced -= size; |
size | 272 | mm/memory.c | int unmap_page_range(unsigned long from, unsigned long size) |
size | 282 | mm/memory.c | size = (size + ~PAGE_MASK) >> PAGE_SHIFT; |
size | 285 | mm/memory.c | if ((pcnt = PTRS_PER_PAGE - poff) > size) |
size | 286 | mm/memory.c | pcnt = size; |
size | 288 | mm/memory.c | for ( ; size > 0; ++dir, size -= pcnt, |
size | 289 | mm/memory.c | pcnt = (size > PTRS_PER_PAGE ? PTRS_PER_PAGE : size)) { |
size | 324 | mm/memory.c | int zeromap_page_range(unsigned long from, unsigned long size, int mask) |
size | 342 | mm/memory.c | size = (size + ~PAGE_MASK) >> PAGE_SHIFT; |
size | 344 | mm/memory.c | if ((pcnt = PTRS_PER_PAGE - poff) > size) |
size | 345 | mm/memory.c | pcnt = size; |
size | 347 | mm/memory.c | while (size > 0) { |
size | 363 | mm/memory.c | for (size -= pcnt; pcnt-- ;) { |
size | 376 | mm/memory.c | pcnt = (size > PTRS_PER_PAGE ? PTRS_PER_PAGE : size); |
size | 387 | mm/memory.c | int remap_page_range(unsigned long from, unsigned long to, unsigned long size, int mask) |
size | 404 | mm/memory.c | size = (size + ~PAGE_MASK) >> PAGE_SHIFT; |
size | 406 | mm/memory.c | if ((pcnt = PTRS_PER_PAGE - poff) > size) |
size | 407 | mm/memory.c | pcnt = size; |
size | 409 | mm/memory.c | while (size > 0) { |
size | 425 | mm/memory.c | for (size -= pcnt; pcnt-- ;) { |
size | 458 | mm/memory.c | pcnt = (size > PTRS_PER_PAGE ? PTRS_PER_PAGE : size); |
size | 652 | mm/memory.c | int verify_area(int type, void * addr, unsigned long size) |
size | 659 | mm/memory.c | if (size > TASK_SIZE - start) |
size | 661 | mm/memory.c | if (wp_works_ok || type == VERIFY_READ || !size) |
size | 663 | mm/memory.c | if (!size) |
size | 665 | mm/memory.c | size--; |
size | 666 | mm/memory.c | size += start & ~PAGE_MASK; |
size | 667 | mm/memory.c | size >>= PAGE_SHIFT; |
size | 672 | mm/memory.c | } while (size--); |
size | 22 | mm/vmalloc.c | unsigned long size; |
size | 103 | mm/vmalloc.c | static int do_area(void * addr, unsigned long size, |
size | 108 | mm/vmalloc.c | nr = size >> PAGE_SHIFT; |
size | 138 | mm/vmalloc.c | do_area(tmp->addr, tmp->size, free_area_pages); |
size | 146 | mm/vmalloc.c | void * vmalloc(unsigned long size) |
size | 151 | mm/vmalloc.c | size = PAGE_ALIGN(size); |
size | 152 | mm/vmalloc.c | if (!size || size > high_memory) |
size | 158 | mm/vmalloc.c | area->size = size + PAGE_SIZE; |
size | 161 | mm/vmalloc.c | if (size + (unsigned long) addr <= (unsigned long) tmp->addr) |
size | 163 | mm/vmalloc.c | addr = (void *) (tmp->size + (unsigned long) tmp->addr); |
size | 168 | mm/vmalloc.c | if (do_area(addr, size, alloc_area_pages)) { |
size | 188 | mm/vmalloc.c | n = tmp->size - PAGE_SIZE; |
size | 157 | net/inet/datagram.c | void skb_copy_datagram(struct sk_buff *skb, int offset, char *to, int size) |
size | 161 | net/inet/datagram.c | memcpy_tofs(to,skb->h.raw+offset,size); |
size | 242 | net/inet/icmp.c | int size, offset; |
size | 244 | net/inet/icmp.c | size = sizeof(struct sk_buff) + dev->hard_header_len + 64 + len; |
size | 245 | net/inet/icmp.c | skb2 = alloc_skb(size, GFP_ATOMIC); |
size | 253 | net/inet/icmp.c | skb2->mem_len = size; |
size | 306 | net/inet/icmp.c | int size, offset; |
size | 308 | net/inet/icmp.c | size = sizeof(struct sk_buff) + dev->hard_header_len + 64 + len; |
size | 309 | net/inet/icmp.c | skb2 = alloc_skb(size, GFP_ATOMIC); |
size | 317 | net/inet/icmp.c | skb2->mem_len = size; |
size | 420 | net/inet/skbuff.c | struct sk_buff *alloc_skb(unsigned int size,int priority) |
size | 422 | net/inet/skbuff.c | struct sk_buff *skb=(struct sk_buff *)kmalloc(size,priority); |
size | 427 | net/inet/skbuff.c | skb->truesize=size; |
size | 428 | net/inet/skbuff.c | skb->mem_len=size; |
size | 431 | net/inet/skbuff.c | net_memory+=size; |
size | 442 | net/inet/skbuff.c | void kfree_skbmem(void *mem,unsigned size) |
size | 449 | net/inet/skbuff.c | kfree_s(mem,size); |
size | 451 | net/inet/skbuff.c | net_memory-=size; |
size | 97 | net/inet/skbuff.h | extern struct sk_buff * alloc_skb(unsigned int size, int priority); |
size | 98 | net/inet/skbuff.h | extern void kfree_skbmem(void *mem, unsigned size); |
size | 105 | net/inet/skbuff.h | extern void skb_copy_datagram(struct sk_buff *from, int offset, char *to,int size); |
size | 173 | net/inet/sock.c | int size = 32767; /* a big num. */ |
size | 195 | net/inet/sock.c | if (j < size) { |
size | 197 | net/inet/sock.c | size = j; |
size | 1222 | net/inet/sock.c | inet_read(struct socket *sock, char *ubuf, int size, int noblock) |
size | 1239 | net/inet/sock.c | return(sk->prot->read(sk, (unsigned char *) ubuf, size, noblock,0)); |
size | 1244 | net/inet/sock.c | inet_recv(struct socket *sock, void *ubuf, int size, int noblock, |
size | 1262 | net/inet/sock.c | return(sk->prot->read(sk, (unsigned char *) ubuf, size, noblock, flags)); |
size | 1267 | net/inet/sock.c | inet_write(struct socket *sock, char *ubuf, int size, int noblock) |
size | 1289 | net/inet/sock.c | return(sk->prot->write(sk, (unsigned char *) ubuf, size, noblock, 0)); |
size | 1294 | net/inet/sock.c | inet_send(struct socket *sock, void *ubuf, int size, int noblock, |
size | 1317 | net/inet/sock.c | return(sk->prot->write(sk, (unsigned char *) ubuf, size, noblock, flags)); |
size | 1322 | net/inet/sock.c | inet_sendto(struct socket *sock, void *ubuf, int size, int noblock, |
size | 1347 | net/inet/sock.c | return(sk->prot->sendto(sk, (unsigned char *) ubuf, size, noblock, flags, |
size | 1353 | net/inet/sock.c | inet_recvfrom(struct socket *sock, void *ubuf, int size, int noblock, |
size | 1374 | net/inet/sock.c | return(sk->prot->recvfrom(sk, (unsigned char *) ubuf, size, noblock, flags, |
size | 1507 | net/inet/sock.c | sock_wmalloc(struct sock *sk, unsigned long size, int force, |
size | 1511 | net/inet/sock.c | if (sk->wmem_alloc + size < sk->sndbuf || force) { |
size | 1513 | net/inet/sock.c | sk->wmem_alloc+= size; |
size | 1515 | net/inet/sock.c | return(alloc_skb(size, priority)); |
size | 1518 | net/inet/sock.c | sk, size, force, priority)); |
size | 1521 | net/inet/sock.c | return(alloc_skb(size, priority)); |
size | 1526 | net/inet/sock.c | sock_rmalloc(struct sock *sk, unsigned long size, int force, int priority) |
size | 1529 | net/inet/sock.c | if (sk->rmem_alloc + size < sk->rcvbuf || force) { |
size | 1530 | net/inet/sock.c | void *c = alloc_skb(size, priority); |
size | 1532 | net/inet/sock.c | if (c) sk->rmem_alloc += size; |
size | 1537 | net/inet/sock.c | sk,size,force, priority)); |
size | 1540 | net/inet/sock.c | return(alloc_skb(size, priority)); |
size | 1572 | net/inet/sock.c | sock_wfree(struct sock *sk, void *mem, unsigned long size) |
size | 1574 | net/inet/sock.c | DPRINTF((DBG_INET, "sock_wfree(sk=%X, mem=%X, size=%d)\n", sk, mem, size)); |
size | 1577 | net/inet/sock.c | kfree_skbmem(mem, size); |
size | 1579 | net/inet/sock.c | sk->wmem_alloc -= size; |
size | 1593 | net/inet/sock.c | sock_rfree(struct sock *sk, void *mem, unsigned long size) |
size | 1595 | net/inet/sock.c | DPRINTF((DBG_INET, "sock_rfree(sk=%X, mem=%X, size=%d)\n", sk, mem, size)); |
size | 1597 | net/inet/sock.c | kfree_skbmem(mem, size); |
size | 1599 | net/inet/sock.c | sk->rmem_alloc -= size; |
size | 152 | net/inet/sock.h | unsigned long size, int force, |
size | 155 | net/inet/sock.h | unsigned long size, int force, |
size | 158 | net/inet/sock.h | unsigned long size); |
size | 160 | net/inet/sock.h | unsigned long size); |
size | 229 | net/inet/sock.h | unsigned long size, int force, |
size | 232 | net/inet/sock.h | unsigned long size, int force, |
size | 235 | net/inet/sock.h | unsigned long size); |
size | 237 | net/inet/sock.h | unsigned long size); |
size | 223 | net/inet/udp.c | int size, tmp; |
size | 235 | net/inet/udp.c | size = sizeof(struct sk_buff) + sk->prot->max_header + len; |
size | 236 | net/inet/udp.c | skb = (struct sk_buff *) sk->prot->wmalloc(sk, size, 0, GFP_KERNEL); |
size | 240 | net/inet/udp.c | skb->mem_len = size; |
size | 50 | net/socket.c | int size); |
size | 52 | net/socket.c | int size); |
size | 271 | net/socket.c | sock_read(struct inode *inode, struct file *file, char *ubuf, int size) |
size | 275 | net/socket.c | DPRINTF((net_debug, "NET: sock_read: buf=0x%x, size=%d\n", ubuf, size)); |
size | 281 | net/socket.c | return(sock->ops->read(sock, ubuf, size, (file->f_flags & O_NONBLOCK))); |
size | 286 | net/socket.c | sock_write(struct inode *inode, struct file *file, char *ubuf, int size) |
size | 290 | net/socket.c | DPRINTF((net_debug, "NET: sock_write: buf=0x%x, size=%d\n", ubuf, size)); |
size | 296 | net/socket.c | return(sock->ops->write(sock, ubuf, size,(file->f_flags & O_NONBLOCK))); |
size | 69 | net/unix/sock.c | static int unix_proto_read(struct socket *sock, char *ubuf, int size, |
size | 71 | net/unix/sock.c | static int unix_proto_write(struct socket *sock, char *ubuf, int size, |
size | 575 | net/unix/sock.c | unix_proto_read(struct socket *sock, char *ubuf, int size, int nonblock) |
size | 581 | net/unix/sock.c | if ((todo = size) <= 0) return(0); |
size | 623 | net/unix/sock.c | return(size - todo); |
size | 633 | net/unix/sock.c | unix_proto_write(struct socket *sock, char *ubuf, int size, int nonblock) |
size | 639 | net/unix/sock.c | if ((todo = size) <= 0) return(0); |
size | 700 | net/unix/sock.c | return(size - todo); |
size | 83 | zBoot/gzip.h | # define DECLARE(type, array, size) type * near array |
size | 84 | zBoot/gzip.h | # define ALLOC(type, array, size) { \ |
size | 85 | zBoot/gzip.h | array = (type*)fcalloc((unsigned)(((size)+1L)/2), 2*sizeof(type)); \ |
size | 91 | zBoot/gzip.h | # define DECLARE(type, array, size) type array[size] |
size | 92 | zBoot/gzip.h | # define ALLOC(type, array, size) |
size | 238 | zBoot/gzip.h | extern int file_read OF((char *buf, unsigned size)); |
size | 265 | zBoot/gzip.h | extern int (*read_buf) OF((char *buf, unsigned size)); |
size | 281 | zBoot/gzip.h | extern voidp xmalloc OF((unsigned int size)); |
size | 81 | zBoot/misc.c | void *malloc(int size) |
size | 85 | zBoot/misc.c | if (size <0) error("Malloc error\n"); |
size | 92 | zBoot/misc.c | free_mem_ptr += size; |