tag | line | file | source code |
count | 15 | fs/block_dev.c | int block_write(struct inode * inode, struct file * filp, char * buf, int count) |
count | 31 | fs/block_dev.c | while (count>0) { |
count | 35 | fs/block_dev.c | if (chars > count) |
count | 36 | fs/block_dev.c | chars=count; |
count | 48 | fs/block_dev.c | count -= chars; |
count | 59 | fs/block_dev.c | int block_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 75 | fs/block_dev.c | while (count>0) { |
count | 79 | fs/block_dev.c | if (chars > count) |
count | 80 | fs/block_dev.c | chars = count; |
count | 88 | fs/block_dev.c | count -= chars; |
count | 410 | fs/exec.c | argc = count(argv); |
count | 411 | fs/exec.c | envc = count(envp); |
count | 56 | fs/ext/dir.c | struct dirent * dirent, int count) |
count | 76 | fs/ext/file.c | static int ext_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 95 | fs/ext/file.c | if (left > count) |
count | 96 | fs/ext/file.c | left = count; |
count | 160 | fs/ext/file.c | static int ext_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
count | 184 | fs/ext/file.c | while (written<count) { |
count | 191 | fs/ext/file.c | if (c > count-written) |
count | 192 | fs/ext/file.c | c = count-written; |
count | 74 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_zmap[1] || efb->count == 254) { |
count | 84 | fs/ext/freelists.c | efb->count = 0; |
count | 87 | fs/ext/freelists.c | efb->free[efb->count++] = block; |
count | 109 | fs/ext/freelists.c | if (efb->count) { |
count | 110 | fs/ext/freelists.c | j = efb->free[--efb->count]; |
count | 153 | fs/ext/freelists.c | unsigned long count, block; |
count | 157 | fs/ext/freelists.c | count = 0; |
count | 160 | fs/ext/freelists.c | count = efb->count + 1; |
count | 168 | fs/ext/freelists.c | count += efb->count + 1; |
count | 175 | fs/ext/freelists.c | (unsigned long) sb->u.ext_sb.s_zmap[2], count); |
count | 177 | fs/ext/freelists.c | return count; |
count | 216 | fs/ext/freelists.c | if (!inode->i_sb->u.ext_sb.s_imap[1] || efi->count == 14) { |
count | 228 | fs/ext/freelists.c | efi->count = 0; |
count | 232 | fs/ext/freelists.c | efi->free[efi->count++] = inode->i_ino; |
count | 261 | fs/ext/freelists.c | if (efi->count) { |
count | 262 | fs/ext/freelists.c | j = efi->free[--efi->count]; |
count | 306 | fs/ext/freelists.c | unsigned long count, block, ino; |
count | 310 | fs/ext/freelists.c | count = 0; |
count | 314 | fs/ext/freelists.c | count = efi->count + 1; |
count | 329 | fs/ext/freelists.c | count += efi->count + 1; |
count | 336 | fs/ext/freelists.c | (unsigned long) sb->u.ext_sb.s_imap[2], count); |
count | 338 | fs/ext/freelists.c | return count; |
count | 50 | fs/minix/dir.c | struct dirent * dirent, int count) |
count | 76 | fs/minix/file.c | int minix_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 95 | fs/minix/file.c | if (left > count) |
count | 96 | fs/minix/file.c | left = count; |
count | 160 | fs/minix/file.c | static int minix_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
count | 184 | fs/minix/file.c | while (written<count) { |
count | 191 | fs/minix/file.c | if (c > count-written) |
count | 192 | fs/minix/file.c | c = count-written; |
count | 18 | fs/msdos/dir.c | int count); |
count | 20 | fs/msdos/dir.c | struct dirent *dirent,int count); |
count | 55 | fs/msdos/dir.c | int count) |
count | 68 | fs/msdos/dir.c | struct dirent *dirent,int count) |
count | 104 | fs/msdos/fat.c | int count; |
count | 108 | fs/msdos/fat.c | for (count = 0; count < FAT_CACHE; count++) { |
count | 109 | fs/msdos/fat.c | cache[count].device = 0; |
count | 110 | fs/msdos/fat.c | cache[count].next = count == FAT_CACHE-1 ? NULL : |
count | 111 | fs/msdos/fat.c | &cache[count+1]; |
count | 212 | fs/msdos/fat.c | int this,count; |
count | 216 | fs/msdos/fat.c | count = 0; |
count | 217 | fs/msdos/fat.c | for (cache_lookup(inode,cluster,&count,&this); count < cluster; |
count | 218 | fs/msdos/fat.c | count++) { |
count | 23 | fs/msdos/file.c | int count); |
count | 25 | fs/msdos/file.c | int count); |
count | 77 | fs/msdos/file.c | int count) |
count | 94 | fs/msdos/file.c | if (filp->f_pos >= inode->i_size || count <= 0) return 0; |
count | 96 | fs/msdos/file.c | while (left = MIN(inode->i_size-filp->f_pos,count-(buf-start))) { |
count | 126 | fs/msdos/file.c | int count) |
count | 147 | fs/msdos/file.c | if (count <= 0) return 0; |
count | 149 | fs/msdos/file.c | for (start = buf; count || carry; count -= size) { |
count | 154 | fs/msdos/file.c | size = MIN(SECTOR_SIZE-offset,MAX(carry,count)); |
count | 172 | fs/msdos/file.c | for (size = 0; size < count && left; size++) { |
count | 65 | fs/msdos/misc.c | int count,this,limit,last,current,sector; |
count | 74 | fs/msdos/misc.c | for (count = 0; count < limit; count++) { |
count | 75 | fs/msdos/misc.c | this = ((count+previous) % limit)+2; |
count | 81 | fs/msdos/misc.c | previous = (count+previous+1) % limit; |
count | 82 | fs/msdos/misc.c | if (count >= limit) { |
count | 304 | fs/msdos/misc.c | int count,cluster; |
count | 306 | fs/msdos/misc.c | for (count = 0; count < MSDOS_SB(sb)->dir_entries/MSDOS_DPS; count++) { |
count | 307 | fs/msdos/misc.c | if ((cluster = raw_found(sb,MSDOS_SB(sb)->dir_start+count,name, |
count | 317 | fs/msdos/misc.c | int count,cluster; |
count | 320 | fs/msdos/misc.c | for (count = 0; count < MSDOS_SB(sb)->cluster_size; count++) { |
count | 322 | fs/msdos/misc.c | cluster_size+MSDOS_SB(sb)->data_start+count,name, |
count | 16 | fs/pipe.c | static int pipe_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 29 | fs/pipe.c | while (count>0 && (size = PIPE_SIZE(*inode))) { |
count | 31 | fs/pipe.c | if (chars > count) |
count | 32 | fs/pipe.c | chars = count; |
count | 39 | fs/pipe.c | count -= chars; |
count | 46 | fs/pipe.c | static int pipe_write(struct inode * inode, struct file * filp, char * buf, int count) |
count | 55 | fs/pipe.c | if (count < PAGE_SIZE) |
count | 56 | fs/pipe.c | size = PAGE_SIZE-count; |
count | 59 | fs/pipe.c | while (count>0) { |
count | 72 | fs/pipe.c | while (count>0 && (size = (PAGE_SIZE-1)-PIPE_SIZE(*inode))) { |
count | 74 | fs/pipe.c | if (chars > count) |
count | 75 | fs/pipe.c | chars = count; |
count | 82 | fs/pipe.c | count -= chars; |
count | 96 | fs/pipe.c | static int pipe_readdir(struct inode * inode, struct file * file, struct dirent * de, int count) |
count | 101 | fs/pipe.c | static int bad_pipe_rw(struct inode * inode, struct file * filp, char * buf, int count) |
count | 20 | fs/read_write.c | int sys_readdir(unsigned int fd, struct dirent * dirent, unsigned int count) |
count | 30 | fs/read_write.c | return file->f_op->readdir(inode,file,dirent,count); |
count | 68 | fs/read_write.c | int sys_read(unsigned int fd,char * buf,unsigned int count) |
count | 77 | fs/read_write.c | if (!count) |
count | 79 | fs/read_write.c | verify_area(buf,count); |
count | 81 | fs/read_write.c | return file->f_op->read(inode,file,buf,count); |
count | 85 | fs/read_write.c | int sys_write(unsigned int fd,char * buf,unsigned int count) |
count | 94 | fs/read_write.c | if (!count) |
count | 97 | fs/read_write.c | return file->f_op->write(inode,file,buf,count); |
count | 74 | fs/select.c | int count; |
count | 101 | fs/select.c | count = 0; |
count | 109 | fs/select.c | count++; |
count | 114 | fs/select.c | count++; |
count | 119 | fs/select.c | count++; |
count | 123 | fs/select.c | current->timeout && !count) { |
count | 130 | fs/select.c | return count; |
count | 38 | include/linux/ext_fs.h | unsigned long count; |
count | 44 | include/linux/ext_fs.h | unsigned long count; |
count | 180 | include/linux/fs.h | int (*readdir) (struct inode *, struct file *, struct dirent *, int count); |
count | 8 | include/linux/kernel.h | void verify_area(void * addr,int count); |
count | 31 | include/linux/string.h | extern inline char * strncpy(char * dest,const char *src,size_t count) |
count | 43 | include/linux/string.h | ::"S" (src),"D" (dest),"c" (count):"si","di","ax","cx"); |
count | 61 | include/linux/string.h | extern inline char * strncat(char * dest,const char * src,size_t count) |
count | 76 | include/linux/string.h | ::"S" (src),"D" (dest),"a" (0),"c" (0xffffffff),"g" (count) |
count | 100 | include/linux/string.h | extern inline int strncmp(const char * cs,const char * ct,size_t count) |
count | 117 | include/linux/string.h | :"=a" (__res):"D" (cs),"S" (ct),"c" (count):"si","di","cx"); |
count | 357 | include/linux/string.h | extern inline int memcmp(const void * cs,const void * ct,size_t count) |
count | 368 | include/linux/string.h | :"=a" (__res):"0" (0),"D" (cs),"S" (ct),"c" (count) |
count | 373 | include/linux/string.h | extern inline void * memchr(const void * cs,char c,size_t count) |
count | 376 | include/linux/string.h | if (!count) |
count | 384 | include/linux/string.h | :"=D" (__res):"a" (c),"D" (cs),"c" (count) |
count | 389 | include/linux/string.h | extern inline void * memset(void * s,char c,size_t count) |
count | 394 | include/linux/string.h | ::"a" (c),"D" (s),"c" (count) |
count | 151 | include/linux/tty.h | int count; |
count | 38 | init/main.c | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
count | 345 | kernel/blk_drv/floppy.c | unsigned long addr,count; |
count | 349 | kernel/blk_drv/floppy.c | count = floppy->sect*4; |
count | 353 | kernel/blk_drv/floppy.c | count = 1024; |
count | 358 | kernel/blk_drv/floppy.c | count = floppy->sect*2*512; |
count | 383 | kernel/blk_drv/floppy.c | count--; |
count | 384 | kernel/blk_drv/floppy.c | immoutb_p(count,5); |
count | 385 | kernel/blk_drv/floppy.c | count >>= 8; |
count | 387 | kernel/blk_drv/floppy.c | immoutb_p(count,5); |
count | 395 | kernel/blk_drv/floppy.c | SET_DMA_COUNT(DMA2, count); |
count | 882 | kernel/blk_drv/floppy.c | int count; |
count | 885 | kernel/blk_drv/floppy.c | for (count = 1; count <= floppy->sect; count++) { |
count | 888 | kernel/blk_drv/floppy.c | *here++ = count; |
count | 140 | kernel/blk_drv/ll_rw_blk.c | unsigned int sector, count; |
count | 158 | kernel/blk_drv/ll_rw_blk.c | count = bh->b_size >> 9; |
count | 159 | kernel/blk_drv/ll_rw_blk.c | sector = bh->b_blocknr * count; |
count | 161 | kernel/blk_drv/ll_rw_blk.c | if (blk_size[major][MINOR(bh->b_dev)] < (sector + count)>>1) { |
count | 181 | kernel/blk_drv/ll_rw_blk.c | req->nr_sectors += count; |
count | 216 | kernel/blk_drv/ll_rw_blk.c | req->nr_sectors = count; |
count | 217 | kernel/blk_drv/ll_rw_blk.c | req->current_nr_sectors = count; |
count | 232 | kernel/blk_drv/scsi/fdomain.c | #define insw( buf, count, port ) \ |
count | 234 | kernel/blk_drv/scsi/fdomain.c | ( "cld;rep;insw"::"d" (port),"D" (buf),"c" (count):"cx","di" ) |
count | 236 | kernel/blk_drv/scsi/fdomain.c | #define outsw( buf, count, port) \ |
count | 238 | kernel/blk_drv/scsi/fdomain.c | ("cld;rep;outsw"::"d" (port),"S" (buf),"c" (count):"cx","si") |
count | 124 | kernel/blk_drv/scsi/hosts.c | int i, count; |
count | 128 | kernel/blk_drv/scsi/hosts.c | for (count = i = 0; i < MAX_SCSI_HOSTS; ++i) |
count | 142 | kernel/blk_drv/scsi/hosts.c | count, scsi_hosts[i].name); |
count | 144 | kernel/blk_drv/scsi/hosts.c | ++count; |
count | 147 | kernel/blk_drv/scsi/hosts.c | printk ("scsi : %d hosts. \n\r", count); |
count | 430 | kernel/chr_drv/console.c | unsigned long count; |
count | 435 | kernel/chr_drv/console.c | count = (scr_end-pos)>>1; |
count | 439 | kernel/chr_drv/console.c | count = ((pos-origin)>>1)+1; |
count | 443 | kernel/chr_drv/console.c | count = video_num_columns * video_num_lines; |
count | 452 | kernel/chr_drv/console.c | ::"c" (count), |
count | 460 | kernel/chr_drv/console.c | long count; |
count | 465 | kernel/chr_drv/console.c | count = video_num_columns-x; |
count | 470 | kernel/chr_drv/console.c | count = x+1; |
count | 474 | kernel/chr_drv/console.c | count = video_num_columns; |
count | 482 | kernel/chr_drv/console.c | ::"c" (count), |
count | 1220 | kernel/chr_drv/console.c | void * memsetw(void * s,unsigned short c,int count) |
count | 1225 | kernel/chr_drv/console.c | ::"a" (c),"D" (s),"c" (count) |
count | 29 | kernel/chr_drv/lp.c | unsigned long count = 0; |
count | 35 | kernel/chr_drv/lp.c | count ++; |
count | 36 | kernel/chr_drv/lp.c | } while(!(retval & LP_PBUSY) && count < LP_TIMEOUT); |
count | 37 | kernel/chr_drv/lp.c | if (count == LP_TIMEOUT) { |
count | 49 | kernel/chr_drv/lp.c | static int lp_write(struct inode * inode, struct file * file, char * buf, int count) |
count | 56 | kernel/chr_drv/lp.c | while (count > 0) { |
count | 59 | kernel/chr_drv/lp.c | count--; |
count | 82 | kernel/chr_drv/lp.c | static int lp_read(struct inode * inode, struct file * file, char * buf, int count) |
count | 128 | kernel/chr_drv/lp.c | int count = 0; |
count | 142 | kernel/chr_drv/lp.c | count++; |
count | 145 | kernel/chr_drv/lp.c | if (count == 0) |
count | 17 | kernel/chr_drv/mem.c | static int read_ram(struct inode * inode, struct file * file,char * buf, int count) |
count | 22 | kernel/chr_drv/mem.c | static int write_ram(struct inode * inode, struct file * file,char * buf, int count) |
count | 27 | kernel/chr_drv/mem.c | static int read_mem(struct inode * inode, struct file * file,char * buf, int count) |
count | 34 | kernel/chr_drv/mem.c | if (count < 0) |
count | 38 | kernel/chr_drv/mem.c | while (count > 0) { |
count | 53 | kernel/chr_drv/mem.c | if (i > count) |
count | 54 | kernel/chr_drv/mem.c | i = count; |
count | 58 | kernel/chr_drv/mem.c | count -= i; |
count | 64 | kernel/chr_drv/mem.c | static int write_mem(struct inode * inode, struct file * file,char * buf, int count) |
count | 71 | kernel/chr_drv/mem.c | if (count < 0) |
count | 75 | kernel/chr_drv/mem.c | while (count > 0) { |
count | 94 | kernel/chr_drv/mem.c | if (i > count) |
count | 95 | kernel/chr_drv/mem.c | i = count; |
count | 99 | kernel/chr_drv/mem.c | count -= i; |
count | 109 | kernel/chr_drv/mem.c | static int read_kmem(struct inode * inode, struct file * file,char * buf, int count) |
count | 113 | kernel/chr_drv/mem.c | if (count < 0) |
count | 117 | kernel/chr_drv/mem.c | if (count > high_memory - p) |
count | 118 | kernel/chr_drv/mem.c | count = high_memory - p; |
count | 119 | kernel/chr_drv/mem.c | memcpy_tofs(buf,(void *) p,count); |
count | 120 | kernel/chr_drv/mem.c | file->f_pos += count; |
count | 121 | kernel/chr_drv/mem.c | return count; |
count | 124 | kernel/chr_drv/mem.c | static int write_kmem(struct inode * inode, struct file * file,char * buf, int count) |
count | 128 | kernel/chr_drv/mem.c | if (count < 0) |
count | 132 | kernel/chr_drv/mem.c | if (count > high_memory - p) |
count | 133 | kernel/chr_drv/mem.c | count = high_memory - p; |
count | 134 | kernel/chr_drv/mem.c | memcpy_fromfs((void *) p,buf,count); |
count | 135 | kernel/chr_drv/mem.c | file->f_pos += count; |
count | 136 | kernel/chr_drv/mem.c | return count; |
count | 139 | kernel/chr_drv/mem.c | static int read_port(struct inode * inode,struct file * file,char * buf, int count) |
count | 144 | kernel/chr_drv/mem.c | while (count-- > 0 && i < 65536) { |
count | 153 | kernel/chr_drv/mem.c | static int write_port(struct inode * inode,struct file * file,char * buf, int count) |
count | 158 | kernel/chr_drv/mem.c | while (count-- > 0 && i < 65536) { |
count | 167 | kernel/chr_drv/mem.c | static int read_zero(struct inode *node,struct file *file,char *buf,int count) |
count | 171 | kernel/chr_drv/mem.c | for (left = count; left > 0; left--) { |
count | 175 | kernel/chr_drv/mem.c | return count; |
count | 203 | kernel/chr_drv/mem.c | static int mem_read(struct inode * inode, struct file * file, char * buf, int count) |
count | 207 | kernel/chr_drv/mem.c | return read_ram(inode,file,buf,count); |
count | 209 | kernel/chr_drv/mem.c | return read_mem(inode,file,buf,count); |
count | 211 | kernel/chr_drv/mem.c | return read_kmem(inode,file,buf,count); |
count | 215 | kernel/chr_drv/mem.c | return read_port(inode,file,buf,count); |
count | 217 | kernel/chr_drv/mem.c | return read_zero(inode,file,buf,count); |
count | 223 | kernel/chr_drv/mem.c | static int mem_write(struct inode * inode, struct file * file, char * buf, int count) |
count | 227 | kernel/chr_drv/mem.c | return write_ram(inode,file,buf,count); |
count | 229 | kernel/chr_drv/mem.c | return write_mem(inode,file,buf,count); |
count | 231 | kernel/chr_drv/mem.c | return write_kmem(inode,file,buf,count); |
count | 233 | kernel/chr_drv/mem.c | return count; /* /dev/null */ |
count | 235 | kernel/chr_drv/mem.c | return write_port(inode,file,buf,count); |
count | 237 | kernel/chr_drv/mem.c | return count; /* /dev/zero */ |
count | 97 | kernel/chr_drv/mouse.c | static int write_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
count | 102 | kernel/chr_drv/mouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
count | 106 | kernel/chr_drv/mouse.c | if (count < 3) return -EINVAL; |
count | 123 | kernel/chr_drv/mouse.c | for (i = 3; i < count; i++) |
count | 33 | kernel/chr_drv/pty.c | while (!tty->link->count && !(current->signal & ~current->blocked)) |
count | 35 | kernel/chr_drv/pty.c | if (!tty->link->count) |
count | 287 | kernel/chr_drv/tty_io.c | if (tty->link->count) |
count | 368 | kernel/chr_drv/tty_io.c | if (tty->link && !tty->link->count) |
count | 417 | kernel/chr_drv/tty_io.c | if (tty->link && !tty->link->count) { |
count | 454 | kernel/chr_drv/tty_io.c | if (tty->link && !tty->link->count) |
count | 461 | kernel/chr_drv/tty_io.c | static int tty_read(struct inode * inode, struct file * file, char * buf, int count) |
count | 469 | kernel/chr_drv/tty_io.c | i = read_chan(MINOR(file->f_rdev),file,buf,count); |
count | 475 | kernel/chr_drv/tty_io.c | static int tty_write(struct inode * inode, struct file * file, char * buf, int count) |
count | 483 | kernel/chr_drv/tty_io.c | i = write_chan(MINOR(file->f_rdev),file,buf,count); |
count | 516 | kernel/chr_drv/tty_io.c | if (!tty->count && !(tty->link && tty->link->count)) { |
count | 522 | kernel/chr_drv/tty_io.c | if (tty->count) |
count | 525 | kernel/chr_drv/tty_io.c | tty->link->count++; |
count | 527 | kernel/chr_drv/tty_io.c | tty->count++; |
count | 537 | kernel/chr_drv/tty_io.c | if (IS_A_SERIAL(dev) && tty->count < 2) |
count | 542 | kernel/chr_drv/tty_io.c | tty->count--; |
count | 544 | kernel/chr_drv/tty_io.c | tty->link->count--; |
count | 567 | kernel/chr_drv/tty_io.c | tty->link->count--; |
count | 568 | kernel/chr_drv/tty_io.c | tty->count--; |
count | 569 | kernel/chr_drv/tty_io.c | if (tty->count) |
count | 576 | kernel/chr_drv/tty_io.c | if (!tty->count && (tty == redirect)) |
count | 579 | kernel/chr_drv/tty_io.c | if (!tty->count && (tty == redirect)) |
count | 599 | kernel/chr_drv/tty_io.c | if (tty->link && !tty->link->count) |
count | 609 | kernel/chr_drv/tty_io.c | if (tty->link && !tty->link->count) |
count | 225 | kernel/exit.c | int err, retval = 0, count = 0; |
count | 232 | kernel/exit.c | ++count; |
count | 236 | kernel/exit.c | return(count ? retval : -ESRCH); |
count | 11 | lib/write.c | _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
count | 47 | net/socket.c | struct dirent *dirent, int count); |
count | 263 | net/socket.c | int count) |