tag | line | file | source code |
count | 173 | arch/alpha/boot/main.c | static inline long load(long dev, unsigned long addr, unsigned long count) |
count | 185 | arch/alpha/boot/main.c | return dispatch(CCB_READ, dev, count, addr, BOOT_SIZE/512 + 1); |
count | 157 | arch/alpha/boot/tools/build.c | unsigned long count = (system_start + system_size) - start; |
count | 159 | arch/alpha/boot/tools/build.c | while (count > 0) { |
count | 161 | arch/alpha/boot/tools/build.c | if (i > count) |
count | 162 | arch/alpha/boot/tools/build.c | i = count; |
count | 168 | arch/alpha/boot/tools/build.c | count -= i; |
count | 68 | arch/alpha/kernel/osf_sys.c | int count; |
count | 79 | arch/alpha/kernel/osf_sys.c | if (reclen > buf->count) |
count | 93 | arch/alpha/kernel/osf_sys.c | buf->count -= reclen; |
count | 98 | arch/alpha/kernel/osf_sys.c | unsigned int count, long *basep) |
count | 108 | arch/alpha/kernel/osf_sys.c | error = verify_area(VERIFY_WRITE, dirent, count); |
count | 118 | arch/alpha/kernel/osf_sys.c | buf.count = count; |
count | 123 | arch/alpha/kernel/osf_sys.c | if (count == buf.count) |
count | 125 | arch/alpha/kernel/osf_sys.c | return count - buf.count; |
count | 184 | arch/alpha/kernel/setup.c | unsigned long count, va, pc; |
count | 225 | arch/alpha/kernel/setup.c | unaligned[0].count, unaligned[0].pc, unaligned[0].va, |
count | 226 | arch/alpha/kernel/setup.c | unaligned[1].count, unaligned[1].pc, unaligned[1].va); |
count | 177 | arch/alpha/kernel/traps.c | unsigned long count, va, pc; |
count | 196 | arch/alpha/kernel/traps.c | ++unaligned[0].count; |
count | 301 | arch/alpha/kernel/traps.c | ++unaligned[1].count; |
count | 49 | arch/alpha/lib/checksum.c | int odd, count; |
count | 60 | arch/alpha/lib/checksum.c | count = len >> 1; /* nr of 16-bit words.. */ |
count | 61 | arch/alpha/lib/checksum.c | if (count) { |
count | 64 | arch/alpha/lib/checksum.c | count--; |
count | 68 | arch/alpha/lib/checksum.c | count >>= 1; /* nr of 32-bit words.. */ |
count | 69 | arch/alpha/lib/checksum.c | if (count) { |
count | 72 | arch/alpha/lib/checksum.c | count--; |
count | 76 | arch/alpha/lib/checksum.c | count >>= 1; /* nr of 64-bit words.. */ |
count | 77 | arch/alpha/lib/checksum.c | if (count) { |
count | 81 | arch/alpha/lib/checksum.c | count--; |
count | 86 | arch/alpha/lib/checksum.c | } while (count); |
count | 93 | arch/alpha/lib/io.c | void insb (unsigned long port, void *dst, unsigned long count) |
count | 96 | arch/alpha/lib/io.c | if (!count) |
count | 98 | arch/alpha/lib/io.c | count--; |
count | 103 | arch/alpha/lib/io.c | while (count >= 4) { |
count | 105 | arch/alpha/lib/io.c | count -= 4; |
count | 114 | arch/alpha/lib/io.c | while (count) { |
count | 115 | arch/alpha/lib/io.c | --count; |
count | 129 | arch/alpha/lib/io.c | void insw (unsigned long port, void *dst, unsigned long count) |
count | 135 | arch/alpha/lib/io.c | if (!count) |
count | 137 | arch/alpha/lib/io.c | count--; |
count | 142 | arch/alpha/lib/io.c | while (count >= 2) { |
count | 144 | arch/alpha/lib/io.c | count -= 2; |
count | 151 | arch/alpha/lib/io.c | if (count) { |
count | 164 | arch/alpha/lib/io.c | void insl (unsigned long port, void *dst, unsigned long count) |
count | 170 | arch/alpha/lib/io.c | while (count) { |
count | 171 | arch/alpha/lib/io.c | --count; |
count | 183 | arch/alpha/lib/io.c | void outsb(unsigned long port, const void * src, unsigned long count) |
count | 185 | arch/alpha/lib/io.c | while (count) { |
count | 186 | arch/alpha/lib/io.c | count--; |
count | 198 | arch/alpha/lib/io.c | void outsw (unsigned long port, const void *src, unsigned long count) |
count | 206 | arch/alpha/lib/io.c | --count; |
count | 209 | arch/alpha/lib/io.c | while (count >= 2) { |
count | 211 | arch/alpha/lib/io.c | count -= 2; |
count | 218 | arch/alpha/lib/io.c | if (count) { |
count | 230 | arch/alpha/lib/io.c | void outsl (unsigned long port, const void *src, unsigned long count) |
count | 236 | arch/alpha/lib/io.c | while (count) { |
count | 237 | arch/alpha/lib/io.c | --count; |
count | 248 | arch/alpha/lib/io.c | void _memcpy_fromio(void * to, unsigned long from, unsigned long count) |
count | 250 | arch/alpha/lib/io.c | while (count) { |
count | 251 | arch/alpha/lib/io.c | count--; |
count | 262 | arch/alpha/lib/io.c | void _memcpy_toio(unsigned long to, void * from, unsigned long count) |
count | 264 | arch/alpha/lib/io.c | while (count) { |
count | 265 | arch/alpha/lib/io.c | count--; |
count | 276 | arch/alpha/lib/io.c | void _memset_io(unsigned long dst, int c, unsigned long count) |
count | 278 | arch/alpha/lib/io.c | while (count) { |
count | 279 | arch/alpha/lib/io.c | count--; |
count | 13 | arch/alpha/lib/memset.c | inline void * __constant_c_memset(void * s, unsigned long c, long count) |
count | 21 | arch/alpha/lib/memset.c | while (count > 0 && (xs & 7)) { |
count | 23 | arch/alpha/lib/memset.c | count--; xs++; |
count | 25 | arch/alpha/lib/memset.c | while (count > 7) { |
count | 27 | arch/alpha/lib/memset.c | count -=8; xs += 8; |
count | 29 | arch/alpha/lib/memset.c | while (count > 0) { |
count | 31 | arch/alpha/lib/memset.c | count--; xs++; |
count | 36 | arch/alpha/lib/memset.c | void * __memset(void * s,char c,size_t count) |
count | 38 | arch/alpha/lib/memset.c | __constant_c_memset(s,0x0101010101010101UL * (unsigned char) c, count); |
count | 67 | arch/alpha/mm/init.c | else if (!mem_map[i].count) |
count | 70 | arch/alpha/mm/init.c | shared += mem_map[i].count-1; |
count | 164 | arch/alpha/mm/init.c | mem_map[MAP_NR(tmp)].count = 1; |
count | 185 | arch/alpha/mm/init.c | if (!mem_map[i].count) |
count | 187 | arch/alpha/mm/init.c | val->sharedram += mem_map[i].count-1; |
count | 8 | arch/i386/kernel/hexify.c | int count=0; |
count | 16 | arch/i386/kernel/hexify.c | if(count==8) |
count | 18 | arch/i386/kernel/hexify.c | count=0; |
count | 21 | arch/i386/kernel/hexify.c | if(count==0) |
count | 24 | arch/i386/kernel/hexify.c | count++; |
count | 26 | arch/i386/kernel/hexify.c | if(count) |
count | 154 | arch/i386/kernel/smp.c | int count=sizeof(*mpc); |
count | 156 | arch/i386/kernel/smp.c | unsigned char *mpt=((unsigned char *)mpc)+count; |
count | 192 | arch/i386/kernel/smp.c | while(count<mpc->mpc_length) |
count | 236 | arch/i386/kernel/smp.c | count+=sizeof(*m); |
count | 249 | arch/i386/kernel/smp.c | count+=sizeof(*m); |
count | 265 | arch/i386/kernel/smp.c | count+=sizeof(*m); |
count | 274 | arch/i386/kernel/smp.c | count+=sizeof(*m); |
count | 282 | arch/i386/kernel/smp.c | count+=sizeof(*m); |
count | 122 | arch/i386/kernel/time.c | int count; |
count | 127 | arch/i386/kernel/time.c | count = inb_p(0x40); /* read the latched count */ |
count | 128 | arch/i386/kernel/time.c | count |= inb(0x40) << 8; |
count | 130 | arch/i386/kernel/time.c | if (count > (LATCH - LATCH/100)) { |
count | 136 | arch/i386/kernel/time.c | count = ((LATCH-1) - count) * TICK_SIZE; |
count | 137 | arch/i386/kernel/time.c | count = (count + LATCH/2) / LATCH; |
count | 138 | arch/i386/kernel/time.c | return offset + count; |
count | 89 | arch/i386/mm/init.c | else if (!mem_map[i].count) |
count | 92 | arch/i386/mm/init.c | shared += mem_map[i].count-1; |
count | 253 | arch/i386/mm/init.c | mem_map[MAP_NR(tmp)].count = 1; |
count | 293 | arch/i386/mm/init.c | if (!mem_map[i].count) |
count | 295 | arch/i386/mm/init.c | val->sharedram += mem_map[i].count-1; |
count | 104 | arch/mips/kernel/gdb-stub.c | static unsigned char *mem2hex(char *mem, char *buf, int count, int may_fault); |
count | 142 | arch/mips/kernel/gdb-stub.c | int count; |
count | 154 | arch/mips/kernel/gdb-stub.c | count = 0; |
count | 159 | arch/mips/kernel/gdb-stub.c | while (count < BUFMAX) { |
count | 164 | arch/mips/kernel/gdb-stub.c | buffer[count] = ch; |
count | 165 | arch/mips/kernel/gdb-stub.c | count = count + 1; |
count | 168 | arch/mips/kernel/gdb-stub.c | if (count >= BUFMAX) |
count | 171 | arch/mips/kernel/gdb-stub.c | buffer[count] = 0; |
count | 193 | arch/mips/kernel/gdb-stub.c | count = strlen(buffer); |
count | 194 | arch/mips/kernel/gdb-stub.c | for (i=3; i <= count; i++) |
count | 209 | arch/mips/kernel/gdb-stub.c | int count; |
count | 219 | arch/mips/kernel/gdb-stub.c | count = 0; |
count | 221 | arch/mips/kernel/gdb-stub.c | while ((ch = buffer[count]) != 0) { |
count | 225 | arch/mips/kernel/gdb-stub.c | count += 1; |
count | 250 | arch/mips/kernel/gdb-stub.c | static unsigned char *mem2hex(char *mem, char *buf, int count, int may_fault) |
count | 256 | arch/mips/kernel/gdb-stub.c | while (count-- > 0) { |
count | 275 | arch/mips/kernel/gdb-stub.c | static char *hex2mem(char *buf, char *mem, int count, int may_fault) |
count | 282 | arch/mips/kernel/gdb-stub.c | for (i=0; i<count; i++) |
count | 68 | arch/mips/kernel/jazz-c.c | void jazz_fd_set_dma_count(unsigned int count) |
count | 70 | arch/mips/kernel/jazz-c.c | vdma_set_count(JAZZ_FLOPPY_DMA, count); |
count | 492 | arch/mips/kernel/jazzdma.c | void vdma_set_count(int channel, int count) |
count | 495 | arch/mips/kernel/jazzdma.c | printk("vdma_set_count: channel %d, count %08x\n",channel,(unsigned)count); |
count | 497 | arch/mips/kernel/jazzdma.c | r4030_write_reg32(JAZZ_R4030_CHNL_COUNT+(channel<<5),count); |
count | 52 | arch/mips/kernel/setup.c | void jazz_fd_set_dma_count(unsigned int count); |
count | 139 | arch/mips/kernel/setup.c | void jazz_fd_set_dma_count(unsigned int count); |
count | 22 | arch/mips/kernel/sysmips.c | strnlen_user(const char *s, size_t count) |
count | 24 | arch/mips/kernel/sysmips.c | return strnlen(s, count); |
count | 60 | arch/mips/kernel/time.c | int count; |
count | 65 | arch/mips/kernel/time.c | count = inb_p(0x40); /* read the latched count */ |
count | 66 | arch/mips/kernel/time.c | count |= inb(0x40) << 8; |
count | 68 | arch/mips/kernel/time.c | if (count > (LATCH - LATCH/100)) { |
count | 74 | arch/mips/kernel/time.c | count = ((LATCH-1) - count) * TICK_SIZE; |
count | 75 | arch/mips/kernel/time.c | count = (count + LATCH/2) / LATCH; |
count | 76 | arch/mips/kernel/time.c | return offset + count; |
count | 69 | arch/mips/kernel/tyne-c.c | void deskstation_tyne_fd_set_dma_count(unsigned int count) |
count | 71 | arch/mips/kernel/tyne-c.c | set_dma_count(FLOPPY_DMA, count); |
count | 211 | arch/mips/mm/init.c | else if (!mem_map[i].count) |
count | 214 | arch/mips/mm/init.c | shared += mem_map[i].count-1; |
count | 271 | arch/mips/mm/init.c | mem_map[MAP_NR(tmp)].count = 1; |
count | 297 | arch/mips/mm/init.c | if (!mem_map[i].count) |
count | 299 | arch/mips/mm/init.c | val->sharedram += mem_map[i].count-1; |
count | 138 | arch/ppc/mm/init.c | else if (!mem_map[i].count) |
count | 141 | arch/ppc/mm/init.c | shared += mem_map[i].count-1; |
count | 248 | arch/ppc/mm/init.c | mem_map[MAP_NR(tmp)].count = 1; |
count | 230 | arch/sparc/kernel/sparc-stub.c | int count; |
count | 240 | arch/sparc/kernel/sparc-stub.c | count = 0; |
count | 243 | arch/sparc/kernel/sparc-stub.c | while (count < BUFMAX) { |
count | 248 | arch/sparc/kernel/sparc-stub.c | buffer[count] = ch; |
count | 249 | arch/sparc/kernel/sparc-stub.c | count = count + 1; |
count | 252 | arch/sparc/kernel/sparc-stub.c | if (count >= BUFMAX) |
count | 255 | arch/sparc/kernel/sparc-stub.c | buffer[count] = 0; |
count | 269 | arch/sparc/kernel/sparc-stub.c | count = strlen(buffer); |
count | 270 | arch/sparc/kernel/sparc-stub.c | for (i=3; i <= count; i++) |
count | 284 | arch/sparc/kernel/sparc-stub.c | int count; |
count | 291 | arch/sparc/kernel/sparc-stub.c | count = 0; |
count | 293 | arch/sparc/kernel/sparc-stub.c | while ((ch = buffer[count])) { |
count | 296 | arch/sparc/kernel/sparc-stub.c | count += 1; |
count | 315 | arch/sparc/kernel/sparc-stub.c | mem2hex(char *mem, char *buf, int count) |
count | 319 | arch/sparc/kernel/sparc-stub.c | while (count-- > 0) { |
count | 333 | arch/sparc/kernel/sparc-stub.c | hex2mem(char *buf, char *mem, int count) |
count | 338 | arch/sparc/kernel/sparc-stub.c | for (i=0; i<count; i++) { |
count | 47 | arch/sparc/kernel/sys_sparc.c | asmlinkage int quick_sys_write(unsigned int fd, char *buf, unsigned int count) |
count | 53 | arch/sparc/kernel/sys_sparc.c | error = verify_area(VERIFY_READ, buf, count); |
count | 71 | arch/sparc/kernel/sys_sparc.c | error = file->f_op->write(inode,file,buf,count); |
count | 340 | arch/sparc/kernel/sys_sunos.c | int count; |
count | 355 | arch/sparc/kernel/sys_sunos.c | if (reclen > buf->count) |
count | 369 | arch/sparc/kernel/sys_sunos.c | buf->count -= reclen; |
count | 391 | arch/sparc/kernel/sys_sunos.c | buf.count = cnt; |
count | 400 | arch/sparc/kernel/sys_sunos.c | return cnt - buf.count; |
count | 414 | arch/sparc/kernel/sys_sunos.c | int count; |
count | 426 | arch/sparc/kernel/sys_sunos.c | if (reclen > buf->count) |
count | 438 | arch/sparc/kernel/sys_sunos.c | buf->count -= reclen; |
count | 461 | arch/sparc/kernel/sys_sunos.c | buf.count = cnt; |
count | 470 | arch/sparc/kernel/sys_sunos.c | return cnt - buf.count; |
count | 69 | arch/sparc/mm/init.c | else if (!mem_map[i].count) |
count | 72 | arch/sparc/mm/init.c | shared += mem_map[i].count-1; |
count | 204 | arch/sparc/mm/init.c | mem_map[MAP_NR(addr)].count = 1; |
count | 251 | arch/sparc/mm/init.c | if (!mem_map[i].count) |
count | 253 | arch/sparc/mm/init.c | val->sharedram += mem_map[i].count-1; |
count | 132 | arch/sparc/mm/srmmu.c | { return mem_map[MAP_NR(ptep)].reserved || mem_map[MAP_NR(ptep)].count != 1; } |
count | 138 | arch/sparc/mm/srmmu.c | mem_map[MAP_NR(ptep)].count++; |
count | 149 | arch/sparc/mm/srmmu.c | { return mem_map[MAP_NR(pmdp)].reserved || mem_map[MAP_NR(pmdp)].count != 1; } |
count | 155 | arch/sparc/mm/srmmu.c | mem_map[MAP_NR(pmdp)].count++; |
count | 170 | arch/sparc/mm/srmmu.c | mem_map[MAP_NR(pgdp)].count++; |
count | 1117 | arch/sparc/mm/sun4c.c | static int sun4c_pte_inuse(pte_t *ptep) { return mem_map[MAP_NR(ptep)].reserved || mem_map[MAP_NR(ptep)].count != 1; } |
count | 1122 | arch/sparc/mm/sun4c.c | mem_map[MAP_NR(ptep)].count++; |
count | 1968 | drivers/block/floppy.c | int count,head_shift,track_shift; |
count | 2003 | drivers/block/floppy.c | for (count = 0; count < F_SECT_PER_TRACK; ++count) { |
count | 2004 | drivers/block/floppy.c | here[count].track = format_req.track; |
count | 2005 | drivers/block/floppy.c | here[count].head = format_req.head; |
count | 2006 | drivers/block/floppy.c | here[count].sect = 0; |
count | 2007 | drivers/block/floppy.c | here[count].size = F_SIZECODE; |
count | 2010 | drivers/block/floppy.c | for (count = 1; count <= F_SECT_PER_TRACK; ++count) { |
count | 2011 | drivers/block/floppy.c | here[n].sect = count; |
count | 3357 | drivers/block/floppy.c | char * buf, int count) |
count | 3364 | drivers/block/floppy.c | return block_read(inode, filp, buf, count); |
count | 3368 | drivers/block/floppy.c | const char * buf, int count) |
count | 3381 | drivers/block/floppy.c | block = (filp->f_pos + count) >> 9; |
count | 3383 | drivers/block/floppy.c | ret= block_write(inode, filp, buf, count); |
count | 855 | drivers/block/ide-tape.c | void idetape_create_space_cmd (idetape_packet_command_t *pc,long count,byte cmd); |
count | 878 | drivers/block/ide-tape.c | int idetape_chrdev_read (struct inode *inode, struct file *file, char *buf, int count); |
count | 879 | drivers/block/ide-tape.c | int idetape_chrdev_write (struct inode *inode, struct file *file, const char *buf, int count); |
count | 2656 | drivers/block/ide-tape.c | void idetape_create_space_cmd (idetape_packet_command_t *pc,long count,byte cmd) |
count | 2673 | drivers/block/ide-tape.c | original.all=count; |
count | 3645 | drivers/block/ide-tape.c | int idetape_chrdev_read (struct inode *inode, struct file *file, char *buf, int count) |
count | 3676 | drivers/block/ide-tape.c | if (count==0) |
count | 3686 | drivers/block/ide-tape.c | actually_read=IDETAPE_MIN (tape->merge_buffer_size,count); |
count | 3689 | drivers/block/ide-tape.c | count-=actually_read;tape->merge_buffer_offset+=actually_read; |
count | 3692 | drivers/block/ide-tape.c | while (count >= tape->data_buffer_size) { |
count | 3697 | drivers/block/ide-tape.c | buf_ptr+=bytes_read;count-=bytes_read;actually_read+=bytes_read; |
count | 3700 | drivers/block/ide-tape.c | if (count) { |
count | 3704 | drivers/block/ide-tape.c | temp=IDETAPE_MIN (count,bytes_read); |
count | 3713 | drivers/block/ide-tape.c | int idetape_chrdev_write (struct inode *inode, struct file *file, const char *buf, int count) |
count | 3742 | drivers/block/ide-tape.c | if (count==0) |
count | 3753 | drivers/block/ide-tape.c | actually_written=IDETAPE_MIN (tape->data_buffer_size-tape->merge_buffer_size,count); |
count | 3755 | drivers/block/ide-tape.c | buf_ptr+=actually_written;tape->merge_buffer_size+=actually_written;count-=actually_written; |
count | 3765 | drivers/block/ide-tape.c | while (count >= tape->data_buffer_size) { |
count | 3767 | drivers/block/ide-tape.c | buf_ptr+=tape->data_buffer_size;count-=tape->data_buffer_size; |
count | 3774 | drivers/block/ide-tape.c | if (count) { |
count | 3775 | drivers/block/ide-tape.c | actually_written+=count; |
count | 3776 | drivers/block/ide-tape.c | memcpy_fromfs (tape->merge_buffer,buf_ptr,count); |
count | 3777 | drivers/block/ide-tape.c | tape->merge_buffer_size+=count; |
count | 4007 | drivers/block/ide-tape.c | int retval,count=0,errors; |
count | 4031 | drivers/block/ide-tape.c | count++; |
count | 4033 | drivers/block/ide-tape.c | if (count == mt_count) { |
count | 4057 | drivers/block/ide-tape.c | idetape_create_space_cmd (&pc,mt_count-count,IDETAPE_SPACE_OVER_FILEMARK); |
count | 4062 | drivers/block/ide-tape.c | retval=idetape_mtioctop (drive,MTFSF,mt_count-count); |
count | 4068 | drivers/block/ide-tape.c | idetape_create_space_cmd (&pc,-(mt_count+count),IDETAPE_SPACE_OVER_FILEMARK); |
count | 4073 | drivers/block/ide-tape.c | retval=idetape_mtioctop (drive,MTBSF,mt_count+count); |
count | 278 | drivers/block/ll_rw_blk.c | unsigned int sector, count; |
count | 282 | drivers/block/ll_rw_blk.c | count = bh->b_size >> 9; |
count | 283 | drivers/block/ll_rw_blk.c | sector = bh->b_blocknr * count; |
count | 285 | drivers/block/ll_rw_blk.c | if (blk_size[major][MINOR(bh->b_dev)] < (sector + count)>>1) { |
count | 289 | drivers/block/ll_rw_blk.c | rw, (sector + count)>>1, blk_size[major][MINOR(bh->b_dev)]); |
count | 381 | drivers/block/ll_rw_blk.c | } else if (req->sector - count == sector) { |
count | 385 | drivers/block/ll_rw_blk.c | req->current_nr_sectors = count; |
count | 390 | drivers/block/ll_rw_blk.c | req->nr_sectors += count; |
count | 417 | drivers/block/ll_rw_blk.c | req->nr_sectors = count; |
count | 418 | drivers/block/ll_rw_blk.c | req->current_nr_sectors = count; |
count | 179 | drivers/block/rd.c | int count) |
count | 184 | drivers/block/rd.c | if (count > left) count = left; |
count | 185 | drivers/block/rd.c | if (count <= 0) return 0; |
count | 186 | drivers/block/rd.c | memcpy_tofs(buf,(char *) initrd_start+file->f_pos,count); |
count | 187 | drivers/block/rd.c | file->f_pos += count; |
count | 188 | drivers/block/rd.c | return count; |
count | 184 | drivers/block/triton.c | unsigned int count = 0; |
count | 218 | drivers/block/triton.c | if (++count >= PRD_ENTRIES) { |
count | 232 | drivers/block/triton.c | if (count) { |
count | 212 | drivers/block/xd.c | u_int block,count,retry; |
count | 223 | drivers/block/xd.c | count = CURRENT->nr_sectors; |
count | 229 | drivers/block/xd.c | code = xd_readwrite(CURRENT->cmd,CURRENT_DEV,CURRENT->buffer,block,count); |
count | 334 | drivers/block/xd.c | static int xd_readwrite (u_char operation,u_char drive,char *buffer,u_int block,u_int count) |
count | 341 | drivers/block/xd.c | printk("xd_readwrite: operation = %s, drive = %d, buffer = 0x%X, block = %d, count = %d\n",operation == READ ? "read" : "write",drive,buffer,block,count); |
count | 345 | drivers/block/xd.c | while (count) { |
count | 346 | drivers/block/xd.c | temp = count < xd_maxsectors ? count : xd_maxsectors; |
count | 378 | drivers/block/xd.c | count -= temp, buffer += temp * 0x200, block += temp; |
count | 408 | drivers/block/xd.c | static u_char xd_setup_dma (u_char mode,u_char *buffer,u_int count) |
count | 410 | drivers/block/xd.c | if (buffer < ((u_char *) 0x1000000 - count)) { /* transfer to address < 16M? */ |
count | 411 | drivers/block/xd.c | if (((u_int) buffer & 0xFFFF0000) != (((u_int) buffer + count) & 0xFFFF0000)) { |
count | 421 | drivers/block/xd.c | set_dma_count(xd_dma,count); |
count | 432 | drivers/block/xd.c | static u_char *xd_build (u_char *cmdblk,u_char command,u_char drive,u_char head,u_short cylinder,u_char sector,u_char count,u_char control) |
count | 438 | drivers/block/xd.c | cmdblk[4] = count; |
count | 521 | drivers/block/xd.c | u_char cmdblk[6],i,count = 0; |
count | 526 | drivers/block/xd.c | init_drive(count); |
count | 527 | drivers/block/xd.c | count++; |
count | 530 | drivers/block/xd.c | return (count); |
count | 1540 | drivers/cdrom/aztcd.c | { long int count, max_count; |
count | 1568 | drivers/cdrom/aztcd.c | for (count=0;count<10000;count++); /*delay a bit*/ |
count | 1599 | drivers/cdrom/aztcd.c | for (count=0;count<50;count++) |
count | 1613 | drivers/cdrom/aztcd.c | for (count = 0; count < AZT_TIMEOUT; count++); |
count | 1614 | drivers/cdrom/aztcd.c | { count=count*2; /* delay a bit */ |
count | 1615 | drivers/cdrom/aztcd.c | count=count/2; |
count | 1635 | drivers/cdrom/aztcd.c | for (count=1;count<50;count++) /*Reading version string*/ |
count | 1642 | drivers/cdrom/aztcd.c | result[count]=inb(DATA_PORT); |
count | 1644 | drivers/cdrom/aztcd.c | if (count>30) max_count=30; /*print max.30 chars of the version string*/ |
count | 1645 | drivers/cdrom/aztcd.c | else max_count=count; |
count | 1647 | drivers/cdrom/aztcd.c | for (count=1;count<max_count;count++) printk("%c",result[count]); |
count | 1665 | drivers/cdrom/aztcd.c | for (count=1;count<5;count++) printk("%c",result[count]); |
count | 700 | drivers/cdrom/gscd.c | static void cmd_info_in ( char *pb, int count ) |
count | 715 | drivers/cdrom/gscd.c | if ( count > 0 ) |
count | 719 | drivers/cdrom/gscd.c | count--; |
count | 734 | drivers/cdrom/gscd.c | static void cmd_read_b ( char *pb, int count, int size ) |
count | 768 | drivers/cdrom/gscd.c | count--; |
count | 769 | drivers/cdrom/gscd.c | } while ( count > 0 ); |
count | 811 | drivers/cdrom/gscd.c | static void cmd_read_w ( char *pb, int count, int size ) |
count | 841 | drivers/cdrom/gscd.c | count--; |
count | 842 | drivers/cdrom/gscd.c | } while ( count > 0 ); |
count | 947 | drivers/cdrom/mcd.c | int count= QUICK_LOOP_COUNT; |
count | 948 | drivers/cdrom/mcd.c | while (count--) { |
count | 953 | drivers/cdrom/mcd.c | printk(" %d ",QUICK_LOOP_COUNT-count); |
count | 1167 | drivers/cdrom/mcd.c | int count; |
count | 1198 | drivers/cdrom/mcd.c | for (count = 0; count < 2000000; count++) |
count | 1202 | drivers/cdrom/mcd.c | for (count = 0; count < 2000000; count++) |
count | 1206 | drivers/cdrom/mcd.c | if (count >= 2000000) { |
count | 1212 | drivers/cdrom/mcd.c | count = inb(MCDPORT(0)); /* pick up the status */ |
count | 1215 | drivers/cdrom/mcd.c | for(count=0;count<3;count++) |
count | 1216 | drivers/cdrom/mcd.c | if(getValue(result+count)) { |
count | 1409 | drivers/cdrom/mcd.c | int count; |
count | 1412 | drivers/cdrom/mcd.c | for (count = 0; count < 2000; count++) |
count | 1416 | drivers/cdrom/mcd.c | if (count >= 2000) |
count | 235 | drivers/cdrom/optcd.c | unsigned long count = 0; |
count | 238 | drivers/cdrom/optcd.c | if (++count >= timeout) |
count | 242 | drivers/cdrom/optcd.c | flag, count, flag_high ? " timeout" : "")); |
count | 405 | drivers/cdrom/optcd.c | unsigned long count = 0; |
count | 411 | drivers/cdrom/optcd.c | while (++count < RESET_WAIT) |
count | 414 | drivers/cdrom/optcd.c | count = 0; |
count | 416 | drivers/cdrom/optcd.c | if (++count >= BUSY_TIMEOUT) |
count | 751 | drivers/cdrom/optcd.c | int status, limit, count; |
count | 760 | drivers/cdrom/optcd.c | count = 0; |
count | 775 | drivers/cdrom/optcd.c | count++; |
count | 794 | drivers/cdrom/optcd.c | && toc[QINFO_FIRSTTRACK].cdsc_absaddr.msf.minute + count |
count | 845 | drivers/cdrom/optcd.c | got_info, count)); |
count | 847 | drivers/cdrom/optcd.c | || toc[QINFO_FIRSTTRACK].cdsc_absaddr.msf.minute + count |
count | 862 | drivers/cdrom/optcd.c | int count; |
count | 864 | drivers/cdrom/optcd.c | for (count = 100; count < MAX_TRACKS; count++) |
count | 865 | drivers/cdrom/optcd.c | toc[count].cdsc_ind = 0; |
count | 919 | drivers/cdrom/optcd.c | int status, count; |
count | 927 | drivers/cdrom/optcd.c | for (count = 0; count < MAX_TRACKS; count++) |
count | 928 | drivers/cdrom/optcd.c | toc[count].cdsc_ind = 0; |
count | 1964 | drivers/cdrom/optcd.c | int count, i, ch, status; |
count | 1971 | drivers/cdrom/optcd.c | if ((count = get_data(1)) < 0) { |
count | 1972 | drivers/cdrom/optcd.c | DEBUG((DEBUG_VFS, "get_data(1): %02x", -count)); |
count | 1975 | drivers/cdrom/optcd.c | for (i = 0, ch = -1; count > 0; count--) { |
count | 2571 | drivers/cdrom/sbpcd.c | for (count=D_S[d].first_session;count<zwanzig;count++) |
count | 2576 | drivers/cdrom/sbpcd.c | drvcmd[3]=count; |
count | 2581 | drivers/cdrom/sbpcd.c | D_S[d].msf_multi_n[count]=make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7])); |
count | 2916 | drivers/cdrom/sbpcd.c | static int cc_SubChanInfo(int frame, int count, u_char *buffer) |
count | 2934 | drivers/cdrom/sbpcd.c | drvcmd[5]=(count>>8)&0xFF; |
count | 2935 | drivers/cdrom/sbpcd.c | drvcmd[6]=count&0xFF; |
count | 775 | drivers/char/apm_bios.c | static int do_read(struct inode *inode, struct file *fp, char *buf, int count) |
count | 785 | drivers/char/apm_bios.c | if (count < sizeof(apm_event_t)) |
count | 801 | drivers/char/apm_bios.c | i = count; |
count | 808 | drivers/char/apm_bios.c | if (i < count) |
count | 809 | drivers/char/apm_bios.c | return count - i; |
count | 137 | drivers/char/atixlmouse.c | static int write_mouse(struct inode * inode, struct file * file, const char * buffer, int count) |
count | 142 | drivers/char/atixlmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
count | 146 | drivers/char/atixlmouse.c | if (count < 3) |
count | 163 | drivers/char/atixlmouse.c | for(i = 3; i < count; i++) |
count | 158 | drivers/char/busmouse.c | static int write_mouse(struct inode * inode, struct file * file, const char * buffer, int count) |
count | 167 | drivers/char/busmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
count | 175 | drivers/char/busmouse.c | if (count < 3) |
count | 177 | drivers/char/busmouse.c | if ((r = verify_area(VERIFY_WRITE, buffer, count))) |
count | 211 | drivers/char/busmouse.c | for (r = 3; r < count; r++) |
count | 551 | drivers/char/console.c | int count = (video_num_lines-1)*video_num_columns; |
count | 552 | drivers/char/console.c | while (count) { |
count | 553 | drivers/char/console.c | count--; |
count | 603 | drivers/char/console.c | unsigned int count; |
count | 605 | drivers/char/console.c | count = (video_num_lines-1)*video_num_columns; |
count | 606 | drivers/char/console.c | while (count) { |
count | 607 | drivers/char/console.c | count--; |
count | 610 | drivers/char/console.c | count = video_num_columns; |
count | 611 | drivers/char/console.c | while (count) { |
count | 612 | drivers/char/console.c | count--; |
count | 623 | drivers/char/console.c | unsigned int count; |
count | 626 | drivers/char/console.c | count = video_num_columns; |
count | 627 | drivers/char/console.c | while (count) { |
count | 628 | drivers/char/console.c | count--; |
count | 636 | drivers/char/console.c | unsigned int count = (b-t-1) * video_num_columns; |
count | 638 | drivers/char/console.c | while (count) { |
count | 639 | drivers/char/console.c | count--; |
count | 642 | drivers/char/console.c | count = video_num_columns; |
count | 643 | drivers/char/console.c | while (count) { |
count | 644 | drivers/char/console.c | count--; |
count | 654 | drivers/char/console.c | unsigned int count; |
count | 660 | drivers/char/console.c | count = (b-t-1)*video_num_columns; |
count | 661 | drivers/char/console.c | while (count) { |
count | 662 | drivers/char/console.c | count--; |
count | 665 | drivers/char/console.c | count = video_num_columns; |
count | 666 | drivers/char/console.c | while (count) { |
count | 667 | drivers/char/console.c | count--; |
count | 723 | drivers/char/console.c | unsigned long count; |
count | 728 | drivers/char/console.c | count = (scr_end-pos)>>1; |
count | 732 | drivers/char/console.c | count = ((pos-origin)>>1)+1; |
count | 736 | drivers/char/console.c | count = video_num_columns * video_num_lines; |
count | 742 | drivers/char/console.c | while (count) { |
count | 743 | drivers/char/console.c | count--; |
count | 751 | drivers/char/console.c | unsigned long count; |
count | 756 | drivers/char/console.c | count = video_num_columns-x; |
count | 761 | drivers/char/console.c | count = x+1; |
count | 765 | drivers/char/console.c | count = video_num_columns; |
count | 770 | drivers/char/console.c | while (count) { |
count | 771 | drivers/char/console.c | count--; |
count | 779 | drivers/char/console.c | unsigned long count; |
count | 786 | drivers/char/console.c | count = (vpar > video_num_columns-x) ? (video_num_columns-x) : vpar; |
count | 788 | drivers/char/console.c | while (count) { |
count | 789 | drivers/char/console.c | count--; |
count | 979 | drivers/char/console.c | void invert_screen(int currcons, int offset, int count, int viewed) |
count | 983 | drivers/char/console.c | count /= 2; |
count | 986 | drivers/char/console.c | while (count--) { |
count | 992 | drivers/char/console.c | while (count--) { |
count | 1364 | drivers/char/console.c | const unsigned char *buf, int count) |
count | 1385 | drivers/char/console.c | while (!tty->stopped && count) { |
count | 1388 | drivers/char/console.c | buf++; n++; count--; |
count | 721 | drivers/char/cyclades.c | if (tty->flip.count < TTY_FLIPBUF_SIZE){ |
count | 722 | drivers/char/cyclades.c | tty->flip.count++; |
count | 750 | drivers/char/cyclades.c | if(tty->flip.count < TTY_FLIPBUF_SIZE){ |
count | 751 | drivers/char/cyclades.c | tty->flip.count++; |
count | 785 | drivers/char/cyclades.c | if (tty->flip.count >= TTY_FLIPBUF_SIZE){ |
count | 788 | drivers/char/cyclades.c | tty->flip.count++; |
count | 1618 | drivers/char/cyclades.c | const unsigned char *buf, int count) |
count | 1638 | drivers/char/cyclades.c | c = MIN(count, MIN(SERIAL_XMIT_SIZE - info->xmit_cnt - 1, |
count | 1658 | drivers/char/cyclades.c | count -= c; |
count | 2331 | drivers/char/cyclades.c | printk("cy_close ttyC%d, count = %d\n", info->line, info->count); |
count | 2342 | drivers/char/cyclades.c | if ((tty->count == 1) && (info->count != 1)) { |
count | 2351 | drivers/char/cyclades.c | "info->count is %d\n", info->count); |
count | 2352 | drivers/char/cyclades.c | info->count = 1; |
count | 2355 | drivers/char/cyclades.c | printk("cyc: %d(%d): decrementing count to %d\n", __LINE__, current->pid, info->count - 1); |
count | 2357 | drivers/char/cyclades.c | if (--info->count < 0) { |
count | 2361 | drivers/char/cyclades.c | info->count = 0; |
count | 2363 | drivers/char/cyclades.c | if (info->count) |
count | 2425 | drivers/char/cyclades.c | info->count = 0; |
count | 2511 | drivers/char/cyclades.c | info->line, info->count);/**/ |
count | 2513 | drivers/char/cyclades.c | info->count--; |
count | 2515 | drivers/char/cyclades.c | printk("cyc: %d(%d): decrementing count to %d\n", __LINE__, current->pid, info->count); |
count | 2566 | drivers/char/cyclades.c | info->line, info->count);/**/ |
count | 2573 | drivers/char/cyclades.c | info->count++; |
count | 2575 | drivers/char/cyclades.c | printk("cyc: %d(%d): incrementing count to %d\n", __LINE__, current->pid, info->count); |
count | 2581 | drivers/char/cyclades.c | info->line, info->count);/**/ |
count | 2615 | drivers/char/cyclades.c | printk("cy_open ttyC%d, count = %d\n", info->line, info->count);/**/ |
count | 2617 | drivers/char/cyclades.c | info->count++; |
count | 2619 | drivers/char/cyclades.c | printk("cyc: %d(%d): incrementing count to %d\n", __LINE__, current->pid, info->count); |
count | 2631 | drivers/char/cyclades.c | if ((info->count == 1) && (info->flags & ASYNC_SPLIT_TERMIOS)) { |
count | 2890 | drivers/char/cyclades.c | info->count = 0; |
count | 3155 | drivers/char/cyclades.c | info->close_delay, info->event, info->count); |
count | 37 | drivers/char/ftape/calibr.c | unsigned count; |
count | 43 | drivers/char/ftape/calibr.c | count = inb_p(0x40); /* read the latched count */ |
count | 44 | drivers/char/ftape/calibr.c | count |= inb(0x40) << 8; |
count | 46 | drivers/char/ftape/calibr.c | return (LATCH - count); /* normal: downcounter */ |
count | 73 | drivers/char/ftape/fdc-io.c | void fdc_catch_stray_interrupts(unsigned count) |
count | 79 | drivers/char/ftape/fdc-io.c | if (count == 0) { |
count | 82 | drivers/char/ftape/fdc-io.c | expected_stray_interrupts += count; |
count | 171 | drivers/char/ftape/fdc-io.c | int count = cmd_len; |
count | 181 | drivers/char/ftape/fdc-io.c | while (count) { |
count | 185 | drivers/char/ftape/fdc-io.c | (int) fdc_mode, (int) fdc_status, cmd_len - count); |
count | 195 | drivers/char/ftape/fdc-io.c | --count; |
count | 217 | drivers/char/ftape/fdc-io.c | int count = res_len; |
count | 224 | drivers/char/ftape/fdc-io.c | while (count) { |
count | 231 | drivers/char/ftape/fdc-io.c | (int) fdc_mode, (int) fdc_status, res_len - count); |
count | 241 | drivers/char/ftape/fdc-io.c | --count; |
count | 152 | drivers/char/ftape/fdc-io.h | extern void fdc_catch_stray_interrupts(unsigned count); |
count | 105 | drivers/char/ftape/ftape-bsm.c | size_t count; |
count | 112 | drivers/char/ftape/ftape-bsm.c | count = sizeof(bad_sector_map); |
count | 115 | drivers/char/ftape/ftape-bsm.c | count = sizeof(bad_sector_map) - (offset - 256); |
count | 117 | drivers/char/ftape/ftape-bsm.c | memcpy(buffer + offset, bad_sector_map, count); |
count | 272 | drivers/char/ftape/ftape-bsm.c | int count; |
count | 283 | drivers/char/ftape/ftape-bsm.c | count = 32; |
count | 286 | drivers/char/ftape/ftape-bsm.c | count = 0; |
count | 291 | drivers/char/ftape/ftape-bsm.c | ++count; |
count | 295 | drivers/char/ftape/ftape-bsm.c | return count; |
count | 302 | drivers/char/ftape/ftape-bsm.c | int count; |
count | 310 | drivers/char/ftape/ftape-bsm.c | count = 0; |
count | 320 | drivers/char/ftape/ftape-bsm.c | count = 32; |
count | 324 | drivers/char/ftape/ftape-bsm.c | ++count; |
count | 337 | drivers/char/ftape/ftape-bsm.c | count = 0; |
count | 339 | drivers/char/ftape/ftape-bsm.c | return count; |
count | 345 | drivers/char/ftape/ftape-bsm.c | int count; |
count | 350 | drivers/char/ftape/ftape-bsm.c | count = forward_seek_entry(segment_id, &ptr, &map); |
count | 357 | drivers/char/ftape/ftape-bsm.c | if (count != new_count) { |
count | 365 | drivers/char/ftape/ftape-bsm.c | memmove(ptr + new_count, ptr + count, hi_ptr - (ptr + count)); |
count | 58 | drivers/char/ftape/ftape-bsm.h | extern void clear_bad_sector_map(int count); |
count | 262 | drivers/char/ftape/ftape-eof.c | int ftape_weof(unsigned count, unsigned segment, unsigned sector) |
count | 271 | drivers/char/ftape/ftape-eof.c | segment + count >= ftape_last_segment.id) { |
count | 272 | drivers/char/ftape/ftape-eof.c | TRACEx3(5, "parameter out of range: %d, %d, %d", count, segment, sector); |
count | 275 | drivers/char/ftape/ftape-eof.c | while (count-- > 0) { |
count | 485 | drivers/char/ftape/ftape-eof.c | int ftape_seek_eof(unsigned count) |
count | 500 | drivers/char/ftape/ftape-eof.c | if (result >= 0 && count != 0) { |
count | 504 | drivers/char/ftape/ftape-eof.c | eof_index += count; |
count | 45 | drivers/char/ftape/ftape-eof.h | extern int ftape_weof(unsigned count, unsigned segment, unsigned sector); |
count | 51 | drivers/char/ftape/ftape-eof.h | extern int ftape_seek_eof(unsigned count); |
count | 104 | drivers/char/ftape/ftape-io.c | volatile int count = (1 + (usecs * ftape_udelay_count - 1) / |
count | 108 | drivers/char/ftape/ftape-io.c | while (count-- > 0) { |
count | 493 | drivers/char/ftape/ftape-io.c | int count = 0; |
count | 497 | drivers/char/ftape/ftape-io.c | } while (result < 0 && ++count <= 3); |
count | 183 | drivers/char/ftape/ftape-rw.c | int count = SECTORS_PER_SEGMENT; |
count | 199 | drivers/char/ftape/ftape-rw.c | count -= offset; |
count | 207 | drivers/char/ftape/ftape-rw.c | result = setup_segment(buff, segment_id, offset, count, retry); |
count | 446 | drivers/char/ftape/ftape-rw.c | int fast_seek(int count, int reverse) |
count | 452 | drivers/char/ftape/ftape-rw.c | if (count > 0) { |
count | 471 | drivers/char/ftape/ftape-rw.c | --count; |
count | 481 | drivers/char/ftape/ftape-rw.c | count += 3; /* best guess */ |
count | 485 | drivers/char/ftape/ftape-rw.c | TRACEx1(5, "warning: zero or negative count: %d", count); |
count | 487 | drivers/char/ftape/ftape-rw.c | if (count > 0) { |
count | 489 | drivers/char/ftape/ftape-rw.c | int nibbles = count > 255 ? 3 : 2; |
count | 491 | drivers/char/ftape/ftape-rw.c | if (count > 4095) { |
count | 493 | drivers/char/ftape/ftape-rw.c | count = 4095; |
count | 497 | drivers/char/ftape/ftape-rw.c | TRACEx1(4, "skipping %d segment(s)", count); |
count | 501 | drivers/char/ftape/ftape-rw.c | TRACEx1(4, "backing up %d segment(s)", count); |
count | 508 | drivers/char/ftape/ftape-rw.c | --count; /* 0 means one gap etc. */ |
count | 511 | drivers/char/ftape/ftape-rw.c | result = ftape_parameter(count & 15); |
count | 512 | drivers/char/ftape/ftape-rw.c | count /= 16; |
count | 549 | drivers/char/ftape/ftape-rw.c | int count; |
count | 570 | drivers/char/ftape/ftape-rw.c | count = target - location.segment - overshoot; |
count | 571 | drivers/char/ftape/ftape-rw.c | fast_seeking = (count > min_count + (location.bot ? 1 : 0)); |
count | 573 | drivers/char/ftape/ftape-rw.c | TRACEx1(5, "fast skipping %d segments", count); |
count | 575 | drivers/char/ftape/ftape-rw.c | fast_seek(count, 0); |
count | 646 | drivers/char/ftape/ftape-rw.c | int count; |
count | 673 | drivers/char/ftape/ftape-rw.c | count = location.segment - target - overshoot; |
count | 674 | drivers/char/ftape/ftape-rw.c | short_seek = (count < 1); |
count | 677 | drivers/char/ftape/ftape-rw.c | count = 1; /* do shortest rewind */ |
count | 685 | drivers/char/ftape/ftape-rw.c | fast_seek(count, 1); |
count | 631 | drivers/char/istallion.c | static int stli_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count); |
count | 653 | drivers/char/istallion.c | static int stli_memread(struct inode *ip, struct file *fp, char *buf, int count); |
count | 654 | drivers/char/istallion.c | static int stli_memwrite(struct inode *ip, struct file *fp, const char *buf, int count); |
count | 1437 | drivers/char/istallion.c | static int stli_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count) |
count | 1449 | drivers/char/istallion.c | printk("stli_write(tty=%x,from_user=%d,buf=%x,count=%d)\n", (int) tty, from_user, (int) buf, count); |
count | 1487 | drivers/char/istallion.c | count = MIN(len, count); |
count | 1491 | drivers/char/istallion.c | memcpy_fromfs(stli_tmpwritebuf, chbuf, count); |
count | 1517 | drivers/char/istallion.c | len = MIN(len, count); |
count | 1518 | drivers/char/istallion.c | count = 0; |
count | 1526 | drivers/char/istallion.c | count += stlen; |
count | 1549 | drivers/char/istallion.c | return(count); |
count | 1597 | drivers/char/istallion.c | unsigned int len, stlen, head, tail, size, count, cooksize; |
count | 1648 | drivers/char/istallion.c | count = 0; |
count | 1657 | drivers/char/istallion.c | count += stlen; |
count | 2378 | drivers/char/istallion.c | len = MIN(len, (TTY_FLIPBUF_SIZE - tty->flip.count)); |
count | 2387 | drivers/char/istallion.c | tty->flip.count += stlen; |
count | 2563 | drivers/char/istallion.c | if (tty->flip.count < TTY_FLIPBUF_SIZE) { |
count | 2564 | drivers/char/istallion.c | tty->flip.count++; |
count | 4177 | drivers/char/istallion.c | static int stli_memread(struct inode *ip, struct file *fp, char *buf, int count) |
count | 4185 | drivers/char/istallion.c | printk("stli_memread(ip=%x,fp=%x,buf=%x,count=%d)\n", (int) ip, (int) fp, (int) buf, count); |
count | 4199 | drivers/char/istallion.c | size = MIN(count, (brdp->memsize - fp->f_pos)); |
count | 4215 | drivers/char/istallion.c | return(count); |
count | 4226 | drivers/char/istallion.c | static int stli_memwrite(struct inode *ip, struct file *fp, const char *buf, int count) |
count | 4235 | drivers/char/istallion.c | printk("stli_memwrite(ip=%x,fp=%x,buf=%x,count=%x)\n", (int) ip, (int) fp, (int) buf, count); |
count | 4250 | drivers/char/istallion.c | size = MIN(count, (brdp->memsize - fp->f_pos)); |
count | 4266 | drivers/char/istallion.c | return(count); |
count | 4364 | drivers/char/istallion.c | stli_comstats.rxbuffered = portp->tty->flip.count; |
count | 70 | drivers/char/lp.c | unsigned long count = 0; |
count | 75 | drivers/char/lp.c | count ++; |
count | 78 | drivers/char/lp.c | } while(!LP_READY(minor,status) && count < LP_CHAR(minor)); |
count | 80 | drivers/char/lp.c | if (count == LP_CHAR(minor)) { |
count | 96 | drivers/char/lp.c | if (count > stats->maxwait) { |
count | 98 | drivers/char/lp.c | printk(KERN_DEBUG "lp%d success after %d counts.\n",minor,count); |
count | 100 | drivers/char/lp.c | stats->maxwait = count; |
count | 102 | drivers/char/lp.c | count *= 256; |
count | 103 | drivers/char/lp.c | wait = (count > stats->meanwait)? count - stats->meanwait : |
count | 104 | drivers/char/lp.c | stats->meanwait - count; |
count | 105 | drivers/char/lp.c | stats->meanwait = (255*stats->meanwait + count + 128) / 256; |
count | 114 | drivers/char/lp.c | unsigned long count = 0; |
count | 135 | drivers/char/lp.c | if (count) { |
count | 136 | drivers/char/lp.c | if (count > stats->maxwait) |
count | 137 | drivers/char/lp.c | stats->maxwait = count; |
count | 138 | drivers/char/lp.c | count *= 256; |
count | 139 | drivers/char/lp.c | wait = (count > stats->meanwait)? count - stats->meanwait : |
count | 140 | drivers/char/lp.c | stats->meanwait - count; |
count | 141 | drivers/char/lp.c | stats->meanwait = (255*stats->meanwait + count + 128) / 256; |
count | 146 | drivers/char/lp.c | } while (count++ < LP_CHAR(minor)); |
count | 163 | drivers/char/lp.c | static inline int lp_write_interrupt(unsigned int minor, const char * buf, int count) |
count | 173 | drivers/char/lp.c | copy_size = (count <= LP_BUFFER_SIZE ? count : LP_BUFFER_SIZE); |
count | 225 | drivers/char/lp.c | count -= bytes_written; |
count | 227 | drivers/char/lp.c | } while (count > 0); |
count | 232 | drivers/char/lp.c | static inline int lp_write_polled(unsigned int minor, const char * buf, int count) |
count | 239 | drivers/char/lp.c | while (count > 0) { |
count | 244 | drivers/char/lp.c | count--; temp++; |
count | 298 | drivers/char/lp.c | static int lp_write(struct inode * inode, struct file * file, const char * buf, int count) |
count | 307 | drivers/char/lp.c | return lp_write_interrupt(minor, buf, count); |
count | 309 | drivers/char/lp.c | return lp_write_polled(minor, buf, count); |
count | 604 | drivers/char/lp.c | int count = 0; |
count | 631 | drivers/char/lp.c | count++; |
count | 637 | drivers/char/lp.c | if (count) |
count | 654 | drivers/char/lp.c | count += ret; |
count | 656 | drivers/char/lp.c | if (count == 0) |
count | 33 | drivers/char/mem.c | static int read_ram(struct inode * inode, struct file * file, char * buf, int count) |
count | 38 | drivers/char/mem.c | static int write_ram(struct inode * inode, struct file * file, const char * buf, int count) |
count | 43 | drivers/char/mem.c | static int read_mem(struct inode * inode, struct file * file, char * buf, int count) |
count | 49 | drivers/char/mem.c | if (count < 0) |
count | 53 | drivers/char/mem.c | if (count > high_memory - p) |
count | 54 | drivers/char/mem.c | count = high_memory - p; |
count | 57 | drivers/char/mem.c | while (p < PAGE_OFFSET + PAGE_SIZE && count > 0) { |
count | 61 | drivers/char/mem.c | count--; |
count | 65 | drivers/char/mem.c | memcpy_tofs(buf, (void *) p, count); |
count | 66 | drivers/char/mem.c | read += count; |
count | 71 | drivers/char/mem.c | static int write_mem(struct inode * inode, struct file * file, const char * buf, int count) |
count | 77 | drivers/char/mem.c | if (count < 0) |
count | 81 | drivers/char/mem.c | if (count > high_memory - p) |
count | 82 | drivers/char/mem.c | count = high_memory - p; |
count | 85 | drivers/char/mem.c | while (PAGE_OFFSET + p < PAGE_SIZE && count > 0) { |
count | 89 | drivers/char/mem.c | count--; |
count | 93 | drivers/char/mem.c | memcpy_fromfs((void *) p, buf, count); |
count | 94 | drivers/char/mem.c | written += count; |
count | 96 | drivers/char/mem.c | return count; |
count | 120 | drivers/char/mem.c | static int read_kmem(struct inode *inode, struct file *file, char *buf, int count) |
count | 124 | drivers/char/mem.c | read1 = read_mem(inode, file, buf, count); |
count | 127 | drivers/char/mem.c | read2 = vread(buf + read1, (char *) ((unsigned long) file->f_pos), count - read1); |
count | 134 | drivers/char/mem.c | static int read_port(struct inode * inode, struct file * file,char * buf, int count) |
count | 139 | drivers/char/mem.c | while (count-- > 0 && i < 65536) { |
count | 148 | drivers/char/mem.c | static int write_port(struct inode * inode, struct file * file, const char * buf, int count) |
count | 153 | drivers/char/mem.c | while (count-- > 0 && i < 65536) { |
count | 162 | drivers/char/mem.c | static int read_null(struct inode * node, struct file * file, char * buf, int count) |
count | 167 | drivers/char/mem.c | static int write_null(struct inode * inode, struct file * file, const char * buf, int count) |
count | 169 | drivers/char/mem.c | return count; |
count | 172 | drivers/char/mem.c | static int read_zero(struct inode * node, struct file * file, char * buf, int count) |
count | 176 | drivers/char/mem.c | for (left = count; left > 0; left--) { |
count | 180 | drivers/char/mem.c | return count; |
count | 192 | drivers/char/mem.c | static int read_full(struct inode * node, struct file * file, char * buf,int count) |
count | 194 | drivers/char/mem.c | return count; |
count | 197 | drivers/char/mem.c | static int write_full(struct inode * inode, struct file * file, const char * buf, int count) |
count | 123 | drivers/char/msbusmouse.c | static int write_mouse(struct inode * inode, struct file * file, const char * buffer, int count) |
count | 128 | drivers/char/msbusmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
count | 132 | drivers/char/msbusmouse.c | if (count < 3) |
count | 141 | drivers/char/msbusmouse.c | for (i = 3; i < count; i++) |
count | 536 | drivers/char/n_tty.c | char *fp, int count) |
count | 546 | drivers/char/n_tty.c | i = MIN(count, MIN(N_TTY_BUF_SIZE - tty->read_cnt, |
count | 552 | drivers/char/n_tty.c | count -= i; |
count | 554 | drivers/char/n_tty.c | i = MIN(count, MIN(N_TTY_BUF_SIZE - tty->read_cnt, |
count | 560 | drivers/char/n_tty.c | for (i=count, p = cp, f = fp; i; i--, p++) { |
count | 945 | drivers/char/n_tty.c | if (tty_hung_up_p(file) || (tty->link && !tty->link->count)) { |
count | 238 | drivers/char/pcxx.c | info->count--; |
count | 272 | drivers/char/pcxx.c | info->count++; |
count | 324 | drivers/char/pcxx.c | ch->count++; |
count | 386 | drivers/char/pcxx.c | if((ch->count == 1) && (ch->asyncflags & ASYNC_SPLIT_TERMIOS)) { |
count | 448 | drivers/char/pcxx.c | if (info->count-- > 1) { |
count | 452 | drivers/char/pcxx.c | if (info->count < 0) { |
count | 453 | drivers/char/pcxx.c | info->count = 0; |
count | 515 | drivers/char/pcxx.c | ch->count = 0; |
count | 525 | drivers/char/pcxx.c | static int pcxe_write(struct tty_struct * tty, int from_user, const unsigned char *buf, int count) |
count | 552 | drivers/char/pcxx.c | count = MIN(stlen, count); |
count | 553 | drivers/char/pcxx.c | if (count) { |
count | 554 | drivers/char/pcxx.c | if (verify_area(VERIFY_READ, (char*)buf, count)) |
count | 555 | drivers/char/pcxx.c | count=0; |
count | 556 | drivers/char/pcxx.c | else memcpy_fromfs(ch->tmp_buf, buf, count); |
count | 584 | drivers/char/pcxx.c | count = MIN(remain, count); |
count | 587 | drivers/char/pcxx.c | while (count > 0) { |
count | 588 | drivers/char/pcxx.c | stlen = MIN(count, stlen); |
count | 591 | drivers/char/pcxx.c | count -= stlen; |
count | 1078 | drivers/char/pcxx.c | ch->count = 0; |
count | 1211 | drivers/char/pcxx.c | tty->flip.count++; |
count | 1271 | drivers/char/pcxx.c | long count; |
count | 1301 | drivers/char/pcxx.c | count = FEPTIMEOUT; |
count | 1304 | drivers/char/pcxx.c | count--; |
count | 1305 | drivers/char/pcxx.c | if(count == 0) { |
count | 1505 | drivers/char/pcxx.c | if(tty->flip.count == TTY_FLIPBUF_SIZE) { |
count | 1517 | drivers/char/pcxx.c | rc = tty->flip.count; |
count | 1538 | drivers/char/pcxx.c | tty->flip.count = rc; |
count | 72 | drivers/char/pcxx.h | int count; |
count | 378 | drivers/char/psaux.c | static int write_aux(struct inode * inode, struct file * file, const char * buffer, int count) |
count | 380 | drivers/char/psaux.c | int i = count; |
count | 391 | drivers/char/psaux.c | return count; |
count | 400 | drivers/char/psaux.c | static int write_qp(struct inode * inode, struct file * file, const char * buffer, int count) |
count | 402 | drivers/char/psaux.c | int i = count; |
count | 410 | drivers/char/psaux.c | return count; |
count | 419 | drivers/char/psaux.c | static int read_aux(struct inode * inode, struct file * file, char * buffer, int count) |
count | 422 | drivers/char/psaux.c | int i = count; |
count | 444 | drivers/char/psaux.c | if (count-i) { |
count | 446 | drivers/char/psaux.c | return count-i; |
count | 69 | drivers/char/pty.c | if (tty->count > 1) |
count | 70 | drivers/char/pty.c | printk("master pty_close: count = %d!!\n", tty->count); |
count | 72 | drivers/char/pty.c | if (tty->count > 2) |
count | 115 | drivers/char/pty.c | const unsigned char *buf, int count) |
count | 128 | drivers/char/pty.c | while (count > 0) { |
count | 129 | drivers/char/pty.c | n = MIN(count, PTY_BUF_SIZE); |
count | 137 | drivers/char/pty.c | count -= n; |
count | 141 | drivers/char/pty.c | c = MIN(count, to->ldisc.receive_room(to)); |
count | 216 | drivers/char/pty.c | if (!tty->link->count) |
count | 241 | drivers/char/random.c | const char * buffer, int count); |
count | 651 | drivers/char/random.c | int count = 0; |
count | 676 | drivers/char/random.c | count += n; |
count | 685 | drivers/char/random.c | return (count ? count : retval); |
count | 709 | drivers/char/random.c | const char * buffer, int count) |
count | 714 | drivers/char/random.c | for (i = count, p = (__u32 *)buffer; |
count | 727 | drivers/char/random.c | return count; |
count | 216 | drivers/char/scc.c | int scc_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count); |
count | 1792 | drivers/char/scc.c | while(tty->flip.count < TTY_FLIPBUF_SIZE-4) |
count | 2464 | drivers/char/scc.c | int scc_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count) |
count | 2471 | drivers/char/scc.c | if (!tty) return count; |
count | 2476 | drivers/char/scc.c | if (scc->kiss.tx_inhibit) return count; |
count | 2480 | drivers/char/scc.c | cnt2 = count; |
count | 2522 | drivers/char/scc.c | return count; |
count | 49 | drivers/char/selection.h | extern void invert_screen(int currcons, int offset, int count, int shift); |
count | 179 | drivers/char/selection.h | static inline void memsetw(void * s, unsigned short c, unsigned int count) |
count | 183 | drivers/char/selection.h | count /= 2; |
count | 184 | drivers/char/selection.h | while (count) { |
count | 185 | drivers/char/selection.h | count--; |
count | 191 | drivers/char/selection.h | unsigned int count) |
count | 193 | drivers/char/selection.h | count /= 2; |
count | 194 | drivers/char/selection.h | while (count) { |
count | 195 | drivers/char/selection.h | count--; |
count | 389 | drivers/char/serial.c | if (tty->flip.count >= TTY_FLIPBUF_SIZE) |
count | 391 | drivers/char/serial.c | tty->flip.count++; |
count | 417 | drivers/char/serial.c | int count; |
count | 433 | drivers/char/serial.c | count = info->xmit_fifo_size; |
count | 439 | drivers/char/serial.c | } while (--count > 0); |
count | 1323 | drivers/char/serial.c | const unsigned char *buf, int count) |
count | 1340 | drivers/char/serial.c | c = MIN(count, MIN(SERIAL_XMIT_SIZE - info->xmit_cnt - 1, |
count | 1356 | drivers/char/serial.c | count -= c; |
count | 1539 | drivers/char/serial.c | if ((change_port || change_irq) && (info->count > 1)) |
count | 1683 | drivers/char/serial.c | if (info->count > 1) |
count | 2095 | drivers/char/serial.c | printk("rs_close ttys%d, count = %d\n", info->line, info->count); |
count | 2097 | drivers/char/serial.c | if ((tty->count == 1) && (info->count != 1)) { |
count | 2106 | drivers/char/serial.c | "info->count is %d\n", info->count); |
count | 2107 | drivers/char/serial.c | info->count = 1; |
count | 2109 | drivers/char/serial.c | if (--info->count < 0) { |
count | 2111 | drivers/char/serial.c | info->line, info->count); |
count | 2112 | drivers/char/serial.c | info->count = 0; |
count | 2114 | drivers/char/serial.c | if (info->count) { |
count | 2201 | drivers/char/serial.c | info->count = 0; |
count | 2287 | drivers/char/serial.c | info->line, info->count); |
count | 2291 | drivers/char/serial.c | info->count--; |
count | 2325 | drivers/char/serial.c | info->line, info->count); |
count | 2332 | drivers/char/serial.c | info->count++; |
count | 2336 | drivers/char/serial.c | info->line, info->count); |
count | 2365 | drivers/char/serial.c | info->count); |
count | 2367 | drivers/char/serial.c | info->count++; |
count | 2397 | drivers/char/serial.c | if ((info->count == 1) && (info->flags & ASYNC_SPLIT_TERMIOS)) { |
count | 2746 | drivers/char/serial.c | info->count = 0; |
count | 2814 | drivers/char/serial.c | (rs_table[i].count == 0)) |
count | 2822 | drivers/char/serial.c | if (rs_table[i].count) { |
count | 478 | drivers/char/stallion.c | static int stl_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count); |
count | 937 | drivers/char/stallion.c | static int stl_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count) |
count | 946 | drivers/char/stallion.c | printk("stl_write(tty=%x,from_user=%d,buf=%x,count=%d)\n", (int) tty, from_user, (int) buf, count); |
count | 969 | drivers/char/stallion.c | count = MIN(len, count); |
count | 974 | drivers/char/stallion.c | memcpy_fromfs(stl_tmpwritebuf, chbuf, count); |
count | 990 | drivers/char/stallion.c | len = MIN(len, count); |
count | 991 | drivers/char/stallion.c | count = 0; |
count | 997 | drivers/char/stallion.c | count += stlen; |
count | 1009 | drivers/char/stallion.c | return(count); |
count | 1708 | drivers/char/stallion.c | ((buflen = TTY_FLIPBUF_SIZE - tty->flip.count) == 0)) { |
count | 1721 | drivers/char/stallion.c | tty->flip.count += len; |
count | 1766 | drivers/char/stallion.c | if (tty->flip.count < TTY_FLIPBUF_SIZE) { |
count | 1769 | drivers/char/stallion.c | tty->flip.count++; |
count | 3040 | drivers/char/stallion.c | portp->stats.rxbuffered = portp->tty->flip.count; |
count | 1919 | drivers/char/tpqic02.c | static int qic02_tape_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 1935 | drivers/char/tpqic02.c | MINOR(dev), buf, count, (unsigned long) filp->f_pos, flags); |
count | 1937 | drivers/char/tpqic02.c | if (count % TAPE_BLKSIZE) { /* Only allow mod 512 bytes at a time. */ |
count | 1949 | drivers/char/tpqic02.c | error = verify_area(VERIFY_WRITE, buf, count); |
count | 1956 | drivers/char/tpqic02.c | while (count>=0) { |
count | 1960 | drivers/char/tpqic02.c | if (bytes_todo>count) |
count | 1961 | drivers/char/tpqic02.c | bytes_todo = count; |
count | 2057 | drivers/char/tpqic02.c | count -= bytes_done; |
count | 2094 | drivers/char/tpqic02.c | static int qic02_tape_write(struct inode * inode, struct file * filp, const char * buf, int count) |
count | 2109 | drivers/char/tpqic02.c | MINOR(dev), buf, count, (unsigned long) filp->f_pos, flags); |
count | 2111 | drivers/char/tpqic02.c | if (count % TAPE_BLKSIZE) { /* only allow mod 512 bytes at a time */ |
count | 2131 | drivers/char/tpqic02.c | error = verify_area(VERIFY_READ, buf, count); |
count | 2138 | drivers/char/tpqic02.c | while (count>=0) { |
count | 2142 | drivers/char/tpqic02.c | if (bytes_todo>count) |
count | 2143 | drivers/char/tpqic02.c | bytes_todo = count; |
count | 2224 | drivers/char/tpqic02.c | count -= bytes_done; |
count | 2229 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": status_bytes_wr %x, buf %p, total_bytes_done %lx, count %x\n", status_bytes_wr, buf, total_bytes_done, count); |
count | 177 | drivers/char/tty_io.c | int i, count = 0; |
count | 183 | drivers/char/tty_io.c | count++; |
count | 188 | drivers/char/tty_io.c | tty->link && tty->link->count) |
count | 189 | drivers/char/tty_io.c | count++; |
count | 190 | drivers/char/tty_io.c | if (tty->count != count) { |
count | 192 | drivers/char/tty_io.c | kdevname(tty->device), tty->count, count, routine); |
count | 193 | drivers/char/tty_io.c | return count; |
count | 315 | drivers/char/tty_io.c | static int hung_up_tty_read(struct inode * inode, struct file * file, char * buf, int count) |
count | 320 | drivers/char/tty_io.c | static int hung_up_tty_write(struct inode * inode, struct file * file, const char * buf, int count) |
count | 718 | drivers/char/tty_io.c | static int tty_read(struct inode * inode, struct file * file, char * buf, int count) |
count | 747 | drivers/char/tty_io.c | i = (tty->ldisc.read)(tty,file,(unsigned char *)buf,(unsigned int)count); |
count | 755 | drivers/char/tty_io.c | static int tty_write(struct inode * inode, struct file * file, const char * buf, int count) |
count | 783 | drivers/char/tty_io.c | i = (tty->ldisc.write)(tty,file,(const unsigned char *)buf,(unsigned int)count); |
count | 824 | drivers/char/tty_io.c | *tty_loc && (*tty_loc)->count) |
count | 902 | drivers/char/tty_io.c | (*tty_loc)->count++; |
count | 906 | drivers/char/tty_io.c | (*tty_loc)->count--; |
count | 919 | drivers/char/tty_io.c | (*tty_loc)->count++; |
count | 938 | drivers/char/tty_io.c | (*tty_loc)->count--; |
count | 948 | drivers/char/tty_io.c | (*o_tty_loc)->count++; |
count | 1020 | drivers/char/tty_io.c | tty->count); |
count | 1059 | drivers/char/tty_io.c | if (--tty->link->count < 0) { |
count | 1061 | drivers/char/tty_io.c | tty->count, tty_name(tty)); |
count | 1062 | drivers/char/tty_io.c | tty->link->count = 0; |
count | 1065 | drivers/char/tty_io.c | if (--tty->count < 0) { |
count | 1067 | drivers/char/tty_io.c | tty->count, tty_name(tty)); |
count | 1068 | drivers/char/tty_io.c | tty->count = 0; |
count | 1070 | drivers/char/tty_io.c | if (tty->count) |
count | 1077 | drivers/char/tty_io.c | if (o_tty->count) |
count | 1668 | drivers/char/tty_io.c | int count; |
count | 1687 | drivers/char/tty_io.c | count = tty->flip.count; |
count | 1688 | drivers/char/tty_io.c | tty->flip.count = 0; |
count | 1692 | drivers/char/tty_io.c | if (count > tty->max_flip_cnt) |
count | 1693 | drivers/char/tty_io.c | tty->max_flip_cnt = count; |
count | 1695 | drivers/char/tty_io.c | tty->ldisc.receive_buf(tty, cp, fp, count); |
count | 63 | drivers/char/vc_screen.c | vcs_read(struct inode *inode, struct file *file, char *buf, int count) |
count | 84 | drivers/char/vc_screen.c | if (count < 0 || p > size) |
count | 86 | drivers/char/vc_screen.c | if (count > size - p) |
count | 87 | drivers/char/vc_screen.c | count = size - p; |
count | 92 | drivers/char/vc_screen.c | while (count-- > 0) |
count | 100 | drivers/char/vc_screen.c | while (p < HEADER_SIZE && count-- > 0) |
count | 105 | drivers/char/vc_screen.c | if ((p & 1) && count-- > 0) |
count | 107 | drivers/char/vc_screen.c | while (count > 1) { |
count | 110 | drivers/char/vc_screen.c | count -= 2; |
count | 112 | drivers/char/vc_screen.c | if (count > 0) |
count | 121 | drivers/char/vc_screen.c | vcs_write(struct inode *inode, struct file *file, const char *buf, int count) |
count | 142 | drivers/char/vc_screen.c | if (count < 0 || p > size) |
count | 144 | drivers/char/vc_screen.c | if (count > size - p) |
count | 145 | drivers/char/vc_screen.c | count = size - p; |
count | 150 | drivers/char/vc_screen.c | while (count-- > 0) { |
count | 159 | drivers/char/vc_screen.c | while (p < HEADER_SIZE && count-- > 0) |
count | 166 | drivers/char/vc_screen.c | if ((p & 1) && count-- > 0) { |
count | 171 | drivers/char/vc_screen.c | while (count > 1) { |
count | 174 | drivers/char/vc_screen.c | count -= 2; |
count | 176 | drivers/char/vc_screen.c | if (count > 0) |
count | 35 | drivers/char/vt.c | #define VT_IS_IN_USE(i) (console_driver.table[i] && console_driver.table[i]->count) |
count | 164 | drivers/char/vt.c | unsigned int count = 0; |
count | 167 | drivers/char/vt.c | count = 1193180 / hz; |
count | 171 | drivers/char/vt.c | if (count) { |
count | 177 | drivers/char/vt.c | outb_p(count & 0xff, 0x42); |
count | 178 | drivers/char/vt.c | outb((count >> 8) & 0xff, 0x42); |
count | 232 | drivers/char/vt.c | unsigned int ticks, count; |
count | 239 | drivers/char/vt.c | count = ticks ? (1193180 / (arg & 0xffff)) : 0; |
count | 240 | drivers/char/vt.c | kd_mksound(count, ticks); |
count | 114 | drivers/char/wdt.c | static int wdt_write(struct inode *inode, struct file *file, const char *buf, int count) |
count | 121 | drivers/char/wdt.c | return count; |
count | 128 | drivers/char/wdt.c | static int wdt_read(struct inode *inode, struct file *file, char *buf, int count) |
count | 946 | drivers/isdn/icn/icn.c | int count; |
count | 949 | drivers/isdn/icn/icn.c | for (p = buf, count = 0; count < len; p++, count++) { |
count | 957 | drivers/isdn/icn/icn.c | return count; |
count | 967 | drivers/isdn/icn/icn.c | int count; |
count | 977 | drivers/isdn/icn/icn.c | count = MIN(avail, len); |
count | 979 | drivers/isdn/icn/icn.c | memcpy_fromfs(msg, buf, count); |
count | 981 | drivers/isdn/icn/icn.c | memcpy(msg, buf, count); |
count | 988 | drivers/isdn/icn/icn.c | for (p = msg, pp = cmd_i, i = count; i > 0; i--, p++, pp++) { |
count | 1007 | drivers/isdn/icn/icn.c | cmd_i = (cmd_i + count) & 0xff; |
count | 1011 | drivers/isdn/icn/icn.c | count = 0; |
count | 1017 | drivers/isdn/icn/icn.c | return count; |
count | 588 | drivers/isdn/isdn_common.c | int count; |
count | 609 | drivers/isdn/isdn_common.c | count = 0; |
count | 626 | drivers/isdn/isdn_common.c | count += copy_l; |
count | 645 | drivers/isdn/isdn_common.c | return count; |
count | 723 | drivers/isdn/isdn_common.c | static int isdn_read(struct inode *inode, struct file *file, char *buf, int count) |
count | 739 | drivers/isdn/isdn_common.c | if ((len = strlen(p)) <= count) { |
count | 755 | drivers/isdn/isdn_common.c | len = isdn_readbchan(drvidx, chidx, buf, 0, count, 1); |
count | 767 | drivers/isdn/isdn_common.c | readstat(buf, MIN(count, dev->drv[drvidx]->stavail), 1); |
count | 779 | drivers/isdn/isdn_common.c | return (isdn_ppp_read(minor - ISDN_MINOR_PPP, file, buf, count)); |
count | 789 | drivers/isdn/isdn_common.c | static int isdn_write(struct inode *inode, struct file *file, const char *buf, int count) |
count | 806 | drivers/isdn/isdn_common.c | while (dev->drv[drvidx]->interface->writebuf(drvidx, chidx, buf, count, 1) != count) |
count | 808 | drivers/isdn/isdn_common.c | return count; |
count | 821 | drivers/isdn/isdn_common.c | return (dev->drv[drvidx]->interface->writecmd(buf, count, 1)); |
count | 823 | drivers/isdn/isdn_common.c | return count; |
count | 827 | drivers/isdn/isdn_common.c | return (isdn_ppp_write(minor - ISDN_MINOR_PPP, file, buf, count)); |
count | 2049 | drivers/isdn/isdn_net.c | int count = 0; |
count | 2061 | drivers/isdn/isdn_net.c | count++; |
count | 2065 | drivers/isdn/isdn_net.c | count++; |
count | 2073 | drivers/isdn/isdn_net.c | count += strlen(n->num); |
count | 2078 | drivers/isdn/isdn_net.c | return count; |
count | 451 | drivers/isdn/isdn_ppp.c | int isdn_ppp_read(int minor, struct file *file, char *buf, int count) |
count | 461 | drivers/isdn/isdn_ppp.c | if ((r = verify_area(VERIFY_WRITE, (void *) buf, count))) |
count | 472 | drivers/isdn/isdn_ppp.c | if (b->len < count) |
count | 473 | drivers/isdn/isdn_ppp.c | count = b->len; |
count | 474 | drivers/isdn/isdn_ppp.c | memcpy_tofs(buf, b->buf, count); |
count | 480 | drivers/isdn/isdn_ppp.c | return count; |
count | 487 | drivers/isdn/isdn_ppp.c | int isdn_ppp_write(int minor, struct file *file, const char *buf, int count) |
count | 507 | drivers/isdn/isdn_ppp.c | lp->isdn_device,lp->isdn_channel, buf, count, 1); |
count | 510 | drivers/isdn/isdn_ppp.c | return count; |
count | 64 | drivers/isdn/isdn_tty.c | c = TTY_FLIPBUF_SIZE - tty->flip.count - 1; |
count | 68 | drivers/isdn/isdn_tty.c | tty->flip.count += len; |
count | 105 | drivers/isdn/isdn_tty.c | c = TTY_FLIPBUF_SIZE - tty->flip.count - 1; |
count | 112 | drivers/isdn/isdn_tty.c | tty->flip.count += r; |
count | 355 | drivers/isdn/isdn_tty.c | static int isdn_tty_write(struct tty_struct *tty, int from_user, const u_char * buf, int count) |
count | 369 | drivers/isdn/isdn_tty.c | c = MIN(count, info->xmit_size - info->xmit_count - 1); |
count | 443 | drivers/isdn/isdn_tty.c | count -= c; |
count | 840 | drivers/isdn/isdn_tty.c | info->line, info->count); |
count | 845 | drivers/isdn/isdn_tty.c | info->count--; |
count | 875 | drivers/isdn/isdn_tty.c | info->line, info->count); |
count | 882 | drivers/isdn/isdn_tty.c | info->count++; |
count | 886 | drivers/isdn/isdn_tty.c | info->line, info->count); |
count | 913 | drivers/isdn/isdn_tty.c | info->line, info->count); |
count | 915 | drivers/isdn/isdn_tty.c | info->count++; |
count | 935 | drivers/isdn/isdn_tty.c | if ((info->count == 1) && (info->flags & ISDN_ASYNC_SPLIT_TERMIOS)) { |
count | 972 | drivers/isdn/isdn_tty.c | if ((tty->count == 1) && (info->count != 1)) { |
count | 981 | drivers/isdn/isdn_tty.c | "info->count is %d\n", info->count); |
count | 982 | drivers/isdn/isdn_tty.c | info->count = 1; |
count | 984 | drivers/isdn/isdn_tty.c | if (--info->count < 0) { |
count | 986 | drivers/isdn/isdn_tty.c | info->line, info->count); |
count | 987 | drivers/isdn/isdn_tty.c | info->count = 0; |
count | 989 | drivers/isdn/isdn_tty.c | if (info->count) { |
count | 1075 | drivers/isdn/isdn_tty.c | info->count = 0; |
count | 1189 | drivers/isdn/isdn_tty.c | info->count = 0; |
count | 1345 | drivers/isdn/isdn_tty.c | if (tty->flip.count >= TTY_FLIPBUF_SIZE) |
count | 1386 | drivers/isdn/isdn_tty.c | static void isdn_tty_check_esc(const u_char * p, u_char plus, int count, int *pluscount, |
count | 1393 | drivers/isdn/isdn_tty.c | if (count > 3) { |
count | 1394 | drivers/isdn/isdn_tty.c | p += count - 3; |
count | 1395 | drivers/isdn/isdn_tty.c | count = 3; |
count | 1399 | drivers/isdn/isdn_tty.c | memcpy_fromfs(cbuf, p, count); |
count | 1402 | drivers/isdn/isdn_tty.c | while (count > 0) { |
count | 1413 | drivers/isdn/isdn_tty.c | if ((*pluscount == 3) && (count = 1)) |
count | 1420 | drivers/isdn/isdn_tty.c | count--; |
count | 1874 | drivers/isdn/isdn_tty.c | static int isdn_tty_edit_at(const char *p, int count, modem_info * info, int user) |
count | 1882 | drivers/isdn/isdn_tty.c | for (cnt = count; cnt > 0; p++, cnt--) { |
count | 1266 | drivers/isdn/teles/callc.c | teles_writebuf(int id, int chan, const u_char * buf, int count, int user) |
count | 1278 | drivers/isdn/teles/callc.c | if (count > BUFFER_SIZE(HSCX_SBUF_ORDER, HSCX_SBUF_BPPS)) { |
count | 1291 | drivers/isdn/teles/callc.c | memcpy_fromfs(ptr, buf, count); |
count | 1293 | drivers/isdn/teles/callc.c | memcpy(ptr, buf, count); |
count | 1294 | drivers/isdn/teles/callc.c | ibh->datasize = count + i; |
count | 1301 | drivers/isdn/teles/callc.c | return (count); |
count | 62 | drivers/isdn/teles/card.c | readisac_s(int iobase, byte offset, byte * dest, int count) |
count | 64 | drivers/isdn/teles/card.c | insb(iobase - 0x420 + offset, dest, count); |
count | 68 | drivers/isdn/teles/card.c | writeisac_s(int iobase, byte offset, byte * src, int count) |
count | 70 | drivers/isdn/teles/card.c | outsb(iobase - 0x420 + offset, src, count); |
count | 103 | drivers/isdn/teles/card.c | readhscx_s(int iobase, byte hscx, byte offset, byte * dest, int count) |
count | 105 | drivers/isdn/teles/card.c | insb(iobase - (hscx ? 0x820 : 0xc20) + offset, dest, count); |
count | 109 | drivers/isdn/teles/card.c | writehscx_s(int iobase, byte hscx, byte offset, byte * src, int count) |
count | 111 | drivers/isdn/teles/card.c | outsb(iobase - (hscx ? 0x820 : 0xc20) + offset, src, count); |
count | 306 | drivers/isdn/teles/card.c | hscx_empty_fifo(struct HscxState *hsp, int count) |
count | 314 | drivers/isdn/teles/card.c | if (hsp->rcvptr + count > BUFFER_SIZE(HSCX_RBUF_ORDER, |
count | 324 | drivers/isdn/teles/card.c | hsp->rcvptr += count; |
count | 326 | drivers/isdn/teles/card.c | while (count--) |
count | 330 | drivers/isdn/teles/card.c | readhscx_s(hsp->iobase, hsp->hscx, 0x3e, ptr, count); |
count | 337 | drivers/isdn/teles/card.c | for (i = 0; i < count; i++) |
count | 348 | drivers/isdn/teles/card.c | int more, count; |
count | 358 | drivers/isdn/teles/card.c | count = ibh->datasize - hsp->sendptr; |
count | 359 | drivers/isdn/teles/card.c | if (count <= 0) |
count | 371 | drivers/isdn/teles/card.c | if (count > 32) { |
count | 373 | drivers/isdn/teles/card.c | count = 32; |
count | 377 | drivers/isdn/teles/card.c | hsp->sendptr += count; |
count | 383 | drivers/isdn/teles/card.c | for (i = 0; i < count; i++) |
count | 390 | drivers/isdn/teles/card.c | while (count--) |
count | 395 | drivers/isdn/teles/card.c | writehscx_s(hsp->iobase, hsp->hscx, 0x3e, ptr, count); |
count | 405 | drivers/isdn/teles/card.c | int count; |
count | 440 | drivers/isdn/teles/card.c | count = READHSCX(hsp->membase, sp->iobase, hsp->hscx, |
count | 442 | drivers/isdn/teles/card.c | if (count == 0) |
count | 443 | drivers/isdn/teles/card.c | count = 32; |
count | 444 | drivers/isdn/teles/card.c | hscx_empty_fifo(hsp, count); |
count | 508 | drivers/isdn/teles/card.c | empty_fifo(struct IsdnCardState *sp, int count) |
count | 522 | drivers/isdn/teles/card.c | sp->rcvptr += count; |
count | 527 | drivers/isdn/teles/card.c | while (count--) { |
count | 534 | drivers/isdn/teles/card.c | while (count--) |
count | 542 | drivers/isdn/teles/card.c | readisac_s(sp->iobase, 0x3e, ptr, count); |
count | 543 | drivers/isdn/teles/card.c | for (i = 0; i < count; i++) |
count | 547 | drivers/isdn/teles/card.c | readisac_s(sp->iobase, 0x3e, ptr, count); |
count | 557 | drivers/isdn/teles/card.c | int count, more; |
count | 567 | drivers/isdn/teles/card.c | count = ibh->datasize - sp->sendptr; |
count | 568 | drivers/isdn/teles/card.c | if (count <= 0) |
count | 570 | drivers/isdn/teles/card.c | if (count >= 3072) |
count | 574 | drivers/isdn/teles/card.c | if (count > 32) { |
count | 576 | drivers/isdn/teles/card.c | count = 32; |
count | 580 | drivers/isdn/teles/card.c | sp->sendptr += count; |
count | 585 | drivers/isdn/teles/card.c | while (count--) { |
count | 592 | drivers/isdn/teles/card.c | while (count--) |
count | 599 | drivers/isdn/teles/card.c | writeisac_s(sp->iobase, 0x3e, ptr, count); |
count | 601 | drivers/isdn/teles/card.c | for (i = 0; i < count; i++) |
count | 605 | drivers/isdn/teles/card.c | writeisac_s(sp->iobase, 0x3e, ptr, count); |
count | 675 | drivers/isdn/teles/card.c | unsigned int count; |
count | 756 | drivers/isdn/teles/card.c | count = READISAC(sp->membase, sp->iobase, ISAC_RBCL) & 0x1f; |
count | 757 | drivers/isdn/teles/card.c | if (count == 0) |
count | 758 | drivers/isdn/teles/card.c | count = 32; |
count | 759 | drivers/isdn/teles/card.c | empty_fifo(sp, count); |
count | 22 | drivers/isdn/teles/llglue.c | int count; |
count | 25 | drivers/isdn/teles/llglue.c | for (p = buf, count = 0; count < len; p++, count++) { |
count | 33 | drivers/isdn/teles/llglue.c | return count; |
count | 40 | drivers/isdn/teles/llglue.c | int len, count, i; |
count | 46 | drivers/isdn/teles/llglue.c | count = 0; |
count | 52 | drivers/isdn/teles/llglue.c | count++; |
count | 55 | drivers/isdn/teles/llglue.c | if (count) { |
count | 58 | drivers/isdn/teles/llglue.c | ic.arg = count; |
count | 418 | drivers/isdn/teles/teles.h | int teles_writebuf(int id, int chan, const u_char * buf, int count, int user); |
count | 77 | drivers/net/3c503.c | static void el2_block_output(struct device *dev, int count, |
count | 79 | drivers/net/3c503.c | static void el2_block_input(struct device *dev, int count, struct sk_buff *skb, |
count | 434 | drivers/net/3c503.c | el2_block_output(struct device *dev, int count, |
count | 449 | drivers/net/3c503.c | memcpy_toio(dest_addr, buf, count); |
count | 475 | drivers/net/3c503.c | count = (count + 1) >> 1; |
count | 488 | drivers/net/3c503.c | if(count > WRD_COUNT) |
count | 492 | drivers/net/3c503.c | count -= WRD_COUNT; |
count | 496 | drivers/net/3c503.c | outsw(E33G_FIFOH, wrd, count); |
count | 546 | drivers/net/3c503.c | el2_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset) |
count | 557 | drivers/net/3c503.c | if (dev->mem_start + ring_offset + count > end_of_ring) { |
count | 561 | drivers/net/3c503.c | count -= semi_count; |
count | 562 | drivers/net/3c503.c | memcpy_fromio(skb->data + semi_count, dev->rmem_start, count); |
count | 565 | drivers/net/3c503.c | eth_io_copy_and_sum(skb, dev->mem_start + ring_offset, count, 0); |
count | 591 | drivers/net/3c503.c | count = (count + 1) >> 1; |
count | 604 | drivers/net/3c503.c | if(count > WRD_COUNT) |
count | 608 | drivers/net/3c503.c | count -= WRD_COUNT; |
count | 612 | drivers/net/3c503.c | insw(E33G_FIFOH, buf, count); |
count | 443 | drivers/net/8390.c | pkt_len = rx_frame.count - sizeof(struct e8390_pkt_hdr); |
count | 463 | drivers/net/8390.c | dev->name, rx_frame.count, rx_frame.status, |
count | 490 | drivers/net/8390.c | rx_frame.count); |
count | 24 | drivers/net/8390.h | unsigned short count; /* header + packet length in bytes */ |
count | 75 | drivers/net/ac3200.c | static void ac_block_input(struct device *dev, int count, |
count | 77 | drivers/net/ac3200.c | static void ac_block_output(struct device *dev, const int count, |
count | 269 | drivers/net/ac3200.c | static void ac_block_input(struct device *dev, int count, struct sk_buff *skb, |
count | 274 | drivers/net/ac3200.c | if (xfer_start + count > dev->rmem_end) { |
count | 278 | drivers/net/ac3200.c | count -= semi_count; |
count | 279 | drivers/net/ac3200.c | memcpy_fromio(skb->data + semi_count, dev->rmem_start, count); |
count | 282 | drivers/net/ac3200.c | eth_io_copy_and_sum(skb, xfer_start, count, 0); |
count | 286 | drivers/net/ac3200.c | static void ac_block_output(struct device *dev, int count, |
count | 291 | drivers/net/ac3200.c | memcpy_toio(shmem, buf, count); |
count | 116 | drivers/net/apricot.c | unsigned short count; |
count | 212 | drivers/net/apricot.c | rfd->count = 0; |
count | 339 | drivers/net/apricot.c | int pkt_len = lp->scb.rfd->count & 0x3fff; |
count | 376 | drivers/net/apricot.c | lp->rx_tail->count = 0; |
count | 419 | drivers/net/apricot.c | unsigned short count = *((unsigned short *) (ptr + 1)); |
count | 422 | drivers/net/apricot.c | kfree_s((unsigned char *)ptr, (sizeof (struct i596_cmd) + count + 2)); |
count | 829 | drivers/net/apricot.c | unsigned short count = *((unsigned short *) (ptr + 1)); |
count | 832 | drivers/net/apricot.c | kfree_s((unsigned char *)ptr, (sizeof (struct i596_cmd) + count + 2)); |
count | 736 | drivers/net/arcnet.c | int count,status,delayval,ioaddr,numprint,airq,retval=-ENODEV, |
count | 744 | drivers/net/arcnet.c | for (count=0x200; count<=0x3f0; count+=16) |
count | 745 | drivers/net/arcnet.c | ports[(count-0x200)/16] = count; |
count | 746 | drivers/net/arcnet.c | for (count=0xA0000; count<=0xFF800; count+=2048) |
count | 747 | drivers/net/arcnet.c | shmems[(count-0xA0000)/2048] = count; |
count | 307 | drivers/net/de620.c | de620_write_block(struct device *dev, byte *buffer, int count) |
count | 314 | drivers/net/de620.c | int bytes = count; |
count | 323 | drivers/net/de620.c | for ( ; count > 0; --count, ++buffer) { |
count | 332 | drivers/net/de620.c | for ( ; count > 0; count -=2) { |
count | 343 | drivers/net/de620.c | de620_read_block(struct device *dev, byte *data, int count) |
count | 351 | drivers/net/de620.c | int bytes = count; |
count | 359 | drivers/net/de620.c | while (count-- > 0) { |
count | 368 | drivers/net/de620.c | while (count-- > 0) { |
count | 101 | drivers/net/e2100.c | static void e21_block_input(struct device *dev, int count, |
count | 103 | drivers/net/e2100.c | static void e21_block_output(struct device *dev, int count, |
count | 318 | drivers/net/e2100.c | e21_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset) |
count | 326 | drivers/net/e2100.c | eth_io_copy_and_sum(skb, dev->mem_start + (ring_offset & 0xff), count, 0); |
count | 332 | drivers/net/e2100.c | e21_block_output(struct device *dev, int count, const unsigned char *buf, |
count | 343 | drivers/net/e2100.c | memcpy_toio(shared_mem, buf, count); |
count | 101 | drivers/net/hp-plus.c | static void hpp_mem_block_input(struct device *dev, int count, |
count | 103 | drivers/net/hp-plus.c | static void hpp_mem_block_output(struct device *dev, int count, |
count | 107 | drivers/net/hp-plus.c | static void hpp_io_block_input(struct device *dev, int count, |
count | 109 | drivers/net/hp-plus.c | static void hpp_io_block_output(struct device *dev, int count, |
count | 340 | drivers/net/hp-plus.c | hpp_io_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset) |
count | 346 | drivers/net/hp-plus.c | insw(ioaddr + HP_DATAPORT, buf, count>>1); |
count | 347 | drivers/net/hp-plus.c | if (count & 0x01) |
count | 348 | drivers/net/hp-plus.c | buf[count-1] = inw(ioaddr + HP_DATAPORT); |
count | 363 | drivers/net/hp-plus.c | hdr->count = (hdr->count + 3) & ~3; /* Round up allocation. */ |
count | 367 | drivers/net/hp-plus.c | hpp_mem_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset) |
count | 380 | drivers/net/hp-plus.c | memcpy_fromio(skb->data, dev->mem_start, count); |
count | 387 | drivers/net/hp-plus.c | hpp_io_block_output(struct device *dev, int count, |
count | 392 | drivers/net/hp-plus.c | outsl(ioaddr + HP_DATAPORT, buf, (count+3)>>2); |
count | 397 | drivers/net/hp-plus.c | hpp_mem_block_output(struct device *dev, int count, |
count | 405 | drivers/net/hp-plus.c | memcpy_toio(dev->mem_start, buf, (count + 3) & ~3); |
count | 65 | drivers/net/hp.c | static void hp_block_input(struct device *dev, int count, |
count | 67 | drivers/net/hp.c | static void hp_block_output(struct device *dev, int count, |
count | 276 | drivers/net/hp.c | hp_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset) |
count | 280 | drivers/net/hp.c | int xfer_count = count; |
count | 285 | drivers/net/hp.c | outb_p(count & 0xff, nic_base + EN0_RCNTLO); |
count | 286 | drivers/net/hp.c | outb_p(count >> 8, nic_base + EN0_RCNTHI); |
count | 291 | drivers/net/hp.c | insw(nic_base - NIC_OFFSET + HP_DATAPORT,buf,count>>1); |
count | 292 | drivers/net/hp.c | if (count & 0x01) |
count | 293 | drivers/net/hp.c | buf[count-1] = inb(nic_base - NIC_OFFSET + HP_DATAPORT), xfer_count++; |
count | 295 | drivers/net/hp.c | insb(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count); |
count | 311 | drivers/net/hp.c | hp_block_output(struct device *dev, int count, |
count | 321 | drivers/net/hp.c | if (ei_status.word16 && (count & 0x01)) |
count | 322 | drivers/net/hp.c | count++; |
count | 340 | drivers/net/hp.c | outb_p(count & 0xff, nic_base + EN0_RCNTLO); |
count | 341 | drivers/net/hp.c | outb_p(count >> 8, nic_base + EN0_RCNTHI); |
count | 348 | drivers/net/hp.c | outsw(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count>>1); |
count | 350 | drivers/net/hp.c | outsb(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count); |
count | 360 | drivers/net/hp.c | if ((start_page << 8) + count != addr) |
count | 362 | drivers/net/hp.c | dev->name, (start_page << 8) + count, addr); |
count | 108 | drivers/net/ne.c | static void ne_block_input(struct device *dev, int count, |
count | 110 | drivers/net/ne.c | static void ne_block_output(struct device *dev, const int count, |
count | 498 | drivers/net/ne.c | ne_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset) |
count | 501 | drivers/net/ne.c | int xfer_count = count; |
count | 516 | drivers/net/ne.c | outb_p(count & 0xff, nic_base + EN0_RCNTLO); |
count | 517 | drivers/net/ne.c | outb_p(count >> 8, nic_base + EN0_RCNTHI); |
count | 522 | drivers/net/ne.c | insw(NE_BASE + NE_DATAPORT,buf,count>>1); |
count | 523 | drivers/net/ne.c | if (count & 0x01) { |
count | 524 | drivers/net/ne.c | buf[count-1] = inb(NE_BASE + NE_DATAPORT); |
count | 530 | drivers/net/ne.c | insb(NE_BASE + NE_DATAPORT, buf, count); |
count | 560 | drivers/net/ne.c | ne_block_output(struct device *dev, int count, |
count | 572 | drivers/net/ne.c | if (ei_status.word16 && (count & 0x01)) |
count | 573 | drivers/net/ne.c | count++; |
count | 610 | drivers/net/ne.c | outb_p(count & 0xff, nic_base + EN0_RCNTLO); |
count | 611 | drivers/net/ne.c | outb_p(count >> 8, nic_base + EN0_RCNTHI); |
count | 617 | drivers/net/ne.c | outsw(NE_BASE + NE_DATAPORT, buf, count>>1); |
count | 619 | drivers/net/ne.c | outsb(NE_BASE + NE_DATAPORT, buf, count); |
count | 633 | drivers/net/ne.c | if ((start_page << 8) + count == addr) |
count | 639 | drivers/net/ne.c | dev->name, (start_page << 8) + count, addr); |
count | 151 | drivers/net/ppp.c | #define ins_char(pbuf,c) (buf_base(pbuf) [(pbuf)->count++] = (__u8)(c)) |
count | 203 | drivers/net/ppp.c | char *fp, int count); |
count | 505 | drivers/net/ppp.c | buf->count = 0; |
count | 869 | drivers/net/ppp.c | register int count, actual; |
count | 883 | drivers/net/ppp.c | count = xbuf->count - xbuf->tail; |
count | 885 | drivers/net/ppp.c | buf_base (xbuf) + xbuf->tail, count); |
count | 892 | drivers/net/ppp.c | actual = count; |
count | 899 | drivers/net/ppp.c | if (actual == count) { |
count | 1052 | drivers/net/ppp.c | char *flags, int count) |
count | 1081 | drivers/net/ppp.c | ppp_print_buffer ("receive buffer", data, count); |
count | 1086 | drivers/net/ppp.c | while (count-- > 0) { |
count | 1127 | drivers/net/ppp.c | ppp->stats.ppp_ibytes += ppp->rbuf->count; |
count | 1141 | drivers/net/ppp.c | buf->count = 0; |
count | 1166 | drivers/net/ppp.c | if (buf->count < buf->size) { |
count | 1167 | drivers/net/ppp.c | buf_base (buf)[buf->count++] = chr; |
count | 1187 | drivers/net/ppp.c | ppp_rcv_rx (struct ppp *ppp, __u16 proto, __u8 * data, int count) |
count | 1189 | drivers/net/ppp.c | sk_buff *skb = dev_alloc_skb (count); |
count | 1206 | drivers/net/ppp.c | memcpy (skb_put(skb,count), data, count); /* move data */ |
count | 1221 | drivers/net/ppp.c | rcv_proto_ip (struct ppp *ppp, __u16 proto, __u8 * data, int count) |
count | 1223 | drivers/net/ppp.c | if ((ppp2dev (ppp)->flags & IFF_UP) && (count > 0)) |
count | 1225 | drivers/net/ppp.c | return ppp_rcv_rx (ppp, htons (ETH_P_IP), data, count); |
count | 1234 | drivers/net/ppp.c | rcv_proto_ipx (struct ppp *ppp, __u16 proto, __u8 * data, int count) |
count | 1236 | drivers/net/ppp.c | if (((ppp2dev (ppp)->flags & IFF_UP) != 0) && (count > 0)) |
count | 1237 | drivers/net/ppp.c | return ppp_rcv_rx (ppp, htons (ETH_P_IPX), data, count); |
count | 1247 | drivers/net/ppp.c | __u8 *data, int count) |
count | 1250 | drivers/net/ppp.c | int new_count = slhc_uncompress (ppp->slcomp, data, count); |
count | 1267 | drivers/net/ppp.c | __u8 *data, int count) |
count | 1270 | drivers/net/ppp.c | if (slhc_remember (ppp->slcomp, data, count) > 0) { |
count | 1271 | drivers/net/ppp.c | return rcv_proto_ip (ppp, PPP_IP, data, count); |
count | 1475 | drivers/net/ppp.c | static void ppp_doframe_lower (struct ppp *ppp, __u8 *data, int count) |
count | 1482 | drivers/net/ppp.c | if (count <= 4) |
count | 1489 | drivers/net/ppp.c | ppp_print_buffer ("receive frame", data, count); |
count | 1502 | drivers/net/ppp.c | count - PPP_HARD_HDR_LEN)) |
count | 1503 | drivers/net/ppp.c | ppp->stats.ppp_ioctects += count; |
count | 1515 | drivers/net/ppp.c | int count = ppp->rbuf->count; |
count | 1535 | drivers/net/ppp.c | if (count == 0) |
count | 1540 | drivers/net/ppp.c | if (count < PPP_HARD_HDR_LEN) { |
count | 1543 | drivers/net/ppp.c | "ppp: got runt ppp frame, %d chars\n", count); |
count | 1560 | drivers/net/ppp.c | count -= 2; /* ignore the fcs characters */ |
count | 1569 | drivers/net/ppp.c | count -= 2; |
count | 1577 | drivers/net/ppp.c | --count; |
count | 1588 | drivers/net/ppp.c | count += 3; |
count | 1607 | drivers/net/ppp.c | count); |
count | 1615 | drivers/net/ppp.c | count, |
count | 1652 | drivers/net/ppp.c | count); |
count | 1657 | drivers/net/ppp.c | ppp_doframe_lower (ppp, data, count); |
count | 1837 | drivers/net/ppp.c | if ((buf->count < 0) || (buf->count > 3000)) |
count | 1839 | drivers/net/ppp.c | (unsigned int) buf->count, |
count | 1863 | drivers/net/ppp.c | __u8 *data, int count, int non_ip) |
count | 1871 | drivers/net/ppp.c | buf->count = 0; |
count | 1905 | drivers/net/ppp.c | count -= 4; |
count | 1907 | drivers/net/ppp.c | while (count-- > 0) |
count | 1928 | drivers/net/ppp.c | buf->count); |
count | 1933 | drivers/net/ppp.c | buf->count); |
count | 1938 | drivers/net/ppp.c | ppp->stats.ppp_obytes += buf->count; |
count | 1951 | drivers/net/ppp.c | __u8 *data, int count) |
count | 1961 | drivers/net/ppp.c | ppp_print_buffer ("write frame", data, count); |
count | 1976 | drivers/net/ppp.c | new_data = kmalloc (count, GFP_ATOMIC); |
count | 1987 | drivers/net/ppp.c | count, |
count | 1988 | drivers/net/ppp.c | count); |
count | 2009 | drivers/net/ppp.c | ppp->stats.ppp_ooctects += count; |
count | 2013 | drivers/net/ppp.c | ppp_dev_xmit_lower (ppp, buf, data, count, !!(proto & 0xFF00)); |
count | 2061 | drivers/net/ppp.c | unsigned int count) |
count | 2079 | drivers/net/ppp.c | if (count > PPP_MTU) { |
count | 2083 | drivers/net/ppp.c | "from %u to mtu %d\n", count, PPP_MTU); |
count | 2084 | drivers/net/ppp.c | count = PPP_MTU; |
count | 2089 | drivers/net/ppp.c | new_data = kmalloc (count, GFP_KERNEL); |
count | 2120 | drivers/net/ppp.c | status = verify_area (VERIFY_READ, data, count); |
count | 2127 | drivers/net/ppp.c | memcpy_fromfs (new_data, data, count); |
count | 2131 | drivers/net/ppp.c | count = send_revise_frame (ppp, new_data, count); |
count | 2135 | drivers/net/ppp.c | ppp_dev_xmit_frame (ppp, ppp->tbuf, new_data, count); |
count | 2137 | drivers/net/ppp.c | return (int) count; |
count | 2552 | drivers/net/ppp.c | int count = ppp->ubuf->tail - ppp->ubuf->head; |
count | 2553 | drivers/net/ppp.c | if (count < 0) |
count | 2554 | drivers/net/ppp.c | count += (ppp->ubuf->size + 1); |
count | 2556 | drivers/net/ppp.c | put_user (count, (int *) param3); |
count | 3262 | drivers/net/ppp.c | ppp_print_hex (register __u8 * out, const __u8 * in, int count) |
count | 3267 | drivers/net/ppp.c | while (count-- > 0) { |
count | 3276 | drivers/net/ppp.c | ppp_print_char (register __u8 * out, const __u8 * in, int count) |
count | 3280 | drivers/net/ppp.c | while (count-- > 0) { |
count | 3295 | drivers/net/ppp.c | ppp_print_buffer (const __u8 * name, const __u8 * buf, int count) |
count | 3300 | drivers/net/ppp.c | printk (KERN_DEBUG "ppp: %s, count = %d\n", name, count); |
count | 3302 | drivers/net/ppp.c | while (count > 8) { |
count | 3307 | drivers/net/ppp.c | count -= 8; |
count | 3311 | drivers/net/ppp.c | if (count > 0) { |
count | 3313 | drivers/net/ppp.c | ppp_print_hex (line, buf, count); |
count | 3314 | drivers/net/ppp.c | ppp_print_char (&line[8 * 3], buf, count); |
count | 347 | drivers/net/slip.c | int count; |
count | 349 | drivers/net/slip.c | count = sl->rcount; |
count | 360 | drivers/net/slip.c | if (count + 80 > sl->buffsize) { |
count | 364 | drivers/net/slip.c | count = slhc_uncompress(sl->slcomp, sl->rbuff, count); |
count | 365 | drivers/net/slip.c | if (count <= 0) { |
count | 376 | drivers/net/slip.c | if (slhc_remember(sl->slcomp, sl->rbuff, count) <= 0) { |
count | 383 | drivers/net/slip.c | skb = dev_alloc_skb(count); |
count | 390 | drivers/net/slip.c | memcpy(skb_put(skb,count), sl->rbuff, count); |
count | 405 | drivers/net/slip.c | int actual, count; |
count | 432 | drivers/net/slip.c | count = slip_esc6(p, (unsigned char *) sl->xbuff, len); |
count | 435 | drivers/net/slip.c | count = slip_esc(p, (unsigned char *) sl->xbuff, len); |
count | 446 | drivers/net/slip.c | actual = sl->tty->driver.write(sl->tty, 0, sl->xbuff, count); |
count | 450 | drivers/net/slip.c | sl->xleft = count - actual; |
count | 696 | drivers/net/slip.c | slip_receive_buf(struct tty_struct *tty, const unsigned char *cp, char *fp, int count) |
count | 716 | drivers/net/slip.c | while (count--) { |
count | 72 | drivers/net/smc-ultra.c | static void ultra_block_input(struct device *dev, int count, |
count | 74 | drivers/net/smc-ultra.c | static void ultra_block_output(struct device *dev, int count, |
count | 286 | drivers/net/smc-ultra.c | ultra_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset) |
count | 293 | drivers/net/smc-ultra.c | if (xfer_start + count > dev->rmem_end) { |
count | 297 | drivers/net/smc-ultra.c | count -= semi_count; |
count | 298 | drivers/net/smc-ultra.c | memcpy_fromio(skb->data + semi_count, dev->rmem_start, count); |
count | 301 | drivers/net/smc-ultra.c | eth_io_copy_and_sum(skb, xfer_start, count, 0); |
count | 308 | drivers/net/smc-ultra.c | ultra_block_output(struct device *dev, int count, const unsigned char *buf, |
count | 316 | drivers/net/smc-ultra.c | memcpy_toio(shmem, buf, count); |
count | 335 | drivers/net/smc9194.c | static void smc_setmulticast( int ioaddr, int count, struct dev_mc_list * ); |
count | 464 | drivers/net/smc9194.c | static void smc_setmulticast( int ioaddr, int count, struct dev_mc_list * addrs ) { |
count | 475 | drivers/net/smc9194.c | for ( i = 0; i < count ; i ++, cur_addr = cur_addr->next ) { |
count | 249 | drivers/net/strip.c | __u8 code = Stuff_NoCode, count = 0; |
count | 260 | drivers/net/strip.c | count = *code_ptr & Stuff_CountMask; |
count | 271 | drivers/net/strip.c | count = 0; /* Reset the count (zero means one instance) */ |
count | 293 | drivers/net/strip.c | count++; |
count | 298 | drivers/net/strip.c | StuffData_FinishBlock(Stuff_Zero + count); |
count | 307 | drivers/net/strip.c | count++; |
count | 314 | drivers/net/strip.c | if (count) |
count | 316 | drivers/net/strip.c | StuffData_FinishBlock(Stuff_Same + count); |
count | 329 | drivers/net/strip.c | StuffData_FinishBlock(Stuff_DiffZero + count); |
count | 336 | drivers/net/strip.c | code += count-2; |
count | 345 | drivers/net/strip.c | count = 2; /* 2 means three bytes encoded */ |
count | 352 | drivers/net/strip.c | count++; |
count | 357 | drivers/net/strip.c | if (count == Stuff_MaxCount) |
count | 359 | drivers/net/strip.c | StuffData_FinishBlock(code + count); |
count | 369 | drivers/net/strip.c | StuffData_FinishBlock(code + count); |
count | 400 | drivers/net/strip.c | int count = (*src ^ Stuff_Magic) & Stuff_CountMask; |
count | 404 | drivers/net/strip.c | if (src+1+count >= end) |
count | 410 | drivers/net/strip.c | while(--count >= 0 && dst < dst_end); |
count | 411 | drivers/net/strip.c | if (count < 0) |
count | 415 | drivers/net/strip.c | if (count == 0) |
count | 418 | drivers/net/strip.c | *src = (Stuff_Diff + count) ^ Stuff_Magic; |
count | 422 | drivers/net/strip.c | if (src+1+count >= end) |
count | 428 | drivers/net/strip.c | while(--count >= 0 && dst < dst_end); |
count | 429 | drivers/net/strip.c | if (count < 0) |
count | 432 | drivers/net/strip.c | *src = (Stuff_DiffZero + count) ^ Stuff_Magic; |
count | 441 | drivers/net/strip.c | while(--count >= 0 && dst < dst_end); |
count | 442 | drivers/net/strip.c | if (count < 0) |
count | 445 | drivers/net/strip.c | *src = (Stuff_Same + count) ^ Stuff_Magic; |
count | 452 | drivers/net/strip.c | while(--count >= 0 && dst < dst_end); |
count | 453 | drivers/net/strip.c | if (count < 0) |
count | 456 | drivers/net/strip.c | *src = (Stuff_Zero + count) ^ Stuff_Magic; |
count | 741 | drivers/net/strip.c | int count = sizeof(STRIP_Header) + packetlen; |
count | 742 | drivers/net/strip.c | struct sk_buff *skb = dev_alloc_skb(count); |
count | 751 | drivers/net/strip.c | memcpy(skb_put(skb, count), strip_info->rx_buff, count); |
count | 921 | drivers/net/strip.c | strip_receive_buf(struct tty_struct *tty, const unsigned char *cp, char *fp, int count) |
count | 925 | drivers/net/strip.c | const unsigned char *end = cp + count; |
count | 54 | drivers/net/wd.c | static void wd_block_input(struct device *dev, int count, |
count | 56 | drivers/net/wd.c | static void wd_block_output(struct device *dev, int count, |
count | 376 | drivers/net/wd.c | wd_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset) |
count | 381 | drivers/net/wd.c | if (xfer_start + count > dev->rmem_end) { |
count | 385 | drivers/net/wd.c | count -= semi_count; |
count | 386 | drivers/net/wd.c | memcpy_fromio(skb->data + semi_count, dev->rmem_start, count); |
count | 389 | drivers/net/wd.c | eth_io_copy_and_sum(skb, xfer_start, count, 0); |
count | 398 | drivers/net/wd.c | wd_block_output(struct device *dev, int count, const unsigned char *buf, |
count | 408 | drivers/net/wd.c | memcpy_toio(shmem, buf, count); |
count | 411 | drivers/net/wd.c | memcpy_toio(shmem, buf, count); |
count | 495 | drivers/net/znet.c | int count, status; |
count | 511 | drivers/net/znet.c | count = ((hi_cnt & 0xff) << 8) + (lo_cnt & 0xff); |
count | 517 | drivers/net/znet.c | count, status); |
count | 520 | drivers/net/znet.c | cur_frame_end[-2] = count; |
count | 522 | drivers/net/znet.c | cur_frame_end_offset -= ((count + 1)>>1) + 3; |
count | 268 | drivers/scsi/53c7,8xx.c | static void dump_events (struct Scsi_Host *host, int count); |
count | 1540 | drivers/scsi/53c7,8xx.c | int count; /* Number of boards detected */ |
count | 1548 | drivers/scsi/53c7,8xx.c | for (current_override = count = 0; current_override < OVERRIDE_LIMIT; |
count | 1566 | drivers/scsi/53c7,8xx.c | ++count; |
count | 1579 | drivers/scsi/53c7,8xx.c | ++count; |
count | 1581 | drivers/scsi/53c7,8xx.c | return count; |
count | 3205 | drivers/scsi/53c7,8xx.c | char *buf,int count) { |
count | 3218 | drivers/scsi/53c7,8xx.c | if (error = verify_area(VERIFY_READ,buf,count)) |
count | 3221 | drivers/scsi/53c7,8xx.c | if (count > 80) |
count | 3224 | drivers/scsi/53c7,8xx.c | memcpy_from_fs(input_buf, buf, count); |
count | 3226 | drivers/scsi/53c7,8xx.c | if (input_buf[count - 1] != '\n') |
count | 3229 | drivers/scsi/53c7,8xx.c | input_buf[count - 1]=0; |
count | 3253 | drivers/scsi/53c7,8xx.c | return count; |
count | 3258 | drivers/scsi/53c7,8xx.c | char *buf,int count) { |
count | 3770 | drivers/scsi/53c7,8xx.c | u32 count = cmd->use_sg ? |
count | 3783 | drivers/scsi/53c7,8xx.c | << 24) | count; |
count | 3798 | drivers/scsi/53c7,8xx.c | | count; |
count | 4690 | drivers/scsi/53c7,8xx.c | int count, synchronous, sstat; |
count | 4693 | drivers/scsi/53c7,8xx.c | count = ((NCR53c7x0_read8 (DFIFO_REG) & DFIFO_10_BO_MASK) - |
count | 4700 | drivers/scsi/53c7,8xx.c | count += (NCR53c7x0_read8 ((hostdata->chip / 100) == 8 ? |
count | 4705 | drivers/scsi/53c7,8xx.c | ++count; |
count | 4711 | drivers/scsi/53c7,8xx.c | ++count; |
count | 4713 | drivers/scsi/53c7,8xx.c | ++count; |
count | 4715 | drivers/scsi/53c7,8xx.c | return count; |
count | 6288 | drivers/scsi/53c7,8xx.c | dump_events (struct Scsi_Host *host, int count) { |
count | 6295 | drivers/scsi/53c7,8xx.c | if (count > hostdata->event_size) |
count | 6296 | drivers/scsi/53c7,8xx.c | count = hostdata->event_size; |
count | 6297 | drivers/scsi/53c7,8xx.c | for (i = hostdata->event_index; count > 0; |
count | 6298 | drivers/scsi/53c7,8xx.c | i = (i ? i - 1 : hostdata->event_size -1), --count) { |
count | 6316 | drivers/scsi/53c7,8xx.c | host->host_no, event_name (event.event), count, |
count | 1023 | drivers/scsi/53c7,8xx.h | u32 count; |
count | 402 | drivers/scsi/AM53C974.c | int count = 0; /* number of boards detected */ |
count | 446 | drivers/scsi/AM53C974.c | if (AM53C974_init(tpnt, pci_config)) count++ ; |
count | 448 | drivers/scsi/AM53C974.c | return (count); |
count | 467 | drivers/scsi/AM53C974.c | int count = 0; /* number of boards detected */ |
count | 504 | drivers/scsi/AM53C974.c | if (AM53C974_init(tpnt, pci_config)) count++ ; |
count | 511 | drivers/scsi/AM53C974.c | if (!count) { |
count | 545 | drivers/scsi/AM53C974.c | if (AM53C974_init(tpnt, pci_config)) count++ ; |
count | 551 | drivers/scsi/AM53C974.c | return(count); |
count | 565 | drivers/scsi/AM53C974.c | int count; /* number of boards detected */ |
count | 569 | drivers/scsi/AM53C974.c | count = AM53C974_bios_detect(tpnt); |
count | 572 | drivers/scsi/AM53C974.c | count = AM53C974_nobios_detect(tpnt); |
count | 573 | drivers/scsi/AM53C974.c | return (count); |
count | 1659 | drivers/scsi/NCR5380.c | unsigned char *phase, int *count, unsigned char **data) { |
count | 1662 | drivers/scsi/NCR5380.c | register int c = *count; |
count | 1770 | drivers/scsi/NCR5380.c | *count = c; |
count | 1873 | drivers/scsi/NCR5380.c | unsigned char *phase, int *count, unsigned char **data) { |
count | 1875 | drivers/scsi/NCR5380.c | register int c = *count; |
count | 2038 | drivers/scsi/NCR5380.c | *count -= c; |
count | 2050 | drivers/scsi/NCR5380.c | *count -= 1; |
count | 2060 | drivers/scsi/NCR5380.c | *count -= toPIO - cnt; |
count | 2066 | drivers/scsi/NCR5380.c | *data, *count, *(*data+*count-1), *(*data+*count)); |
count | 2187 | drivers/scsi/NCR5380.c | *count = 0; |
count | 310 | drivers/scsi/NCR5380.h | unsigned char *phase, int *count, unsigned char **data); |
count | 313 | drivers/scsi/NCR5380.h | unsigned char *phase, int *count, unsigned char **data); |
count | 317 | drivers/scsi/NCR5380.h | unsigned char *ptr, unsigned int count, unsigned char mode) { |
count | 321 | drivers/scsi/NCR5380.h | if (count > 65536) |
count | 322 | drivers/scsi/NCR5380.h | count = 65536; |
count | 325 | drivers/scsi/NCR5380.h | if (count > 65536 * 2) |
count | 326 | drivers/scsi/NCR5380.h | count = 65536 * 2; |
count | 330 | drivers/scsi/NCR5380.h | if (count > limit) count = limit; |
count | 332 | drivers/scsi/NCR5380.h | if ((count & 1) || (((unsigned) ptr) & 1)) |
count | 338 | drivers/scsi/NCR5380.h | set_dma_count(instance->dma_channel, count); |
count | 342 | drivers/scsi/NCR5380.h | return count; |
count | 346 | drivers/scsi/NCR5380.h | unsigned char *src, unsigned int count) { |
count | 347 | drivers/scsi/NCR5380.h | return NCR5380_i386_dma_setup (instance, src, count, DMA_MODE_WRITE); |
count | 351 | drivers/scsi/NCR5380.h | unsigned char *src, unsigned int count) { |
count | 352 | drivers/scsi/NCR5380.h | return NCR5380_i386_dma_setup (instance, src, count, DMA_MODE_READ); |
count | 103 | drivers/scsi/NCR53c406a.c | #define LOAD_DMA_COUNT(count) \ |
count | 104 | drivers/scsi/NCR53c406a.c | outb(count & 0xff, TC_LSB); \ |
count | 105 | drivers/scsi/NCR53c406a.c | outb((count >> 8) & 0xff, TC_MSB); \ |
count | 106 | drivers/scsi/NCR53c406a.c | outb((count >> 16) & 0xff, TC_HIGH); |
count | 294 | drivers/scsi/NCR53c406a.c | unsigned int count, |
count | 299 | drivers/scsi/NCR53c406a.c | VDEB(printk("dma: before count=%d ", count)); |
count | 301 | drivers/scsi/NCR53c406a.c | if (count > 65536) |
count | 302 | drivers/scsi/NCR53c406a.c | count = 65536; |
count | 305 | drivers/scsi/NCR53c406a.c | if (count > (65536<<1)) |
count | 306 | drivers/scsi/NCR53c406a.c | count = (65536<<1); |
count | 310 | drivers/scsi/NCR53c406a.c | if (count > limit) count = limit; |
count | 312 | drivers/scsi/NCR53c406a.c | VDEB(printk("after count=%d\n", count)); |
count | 313 | drivers/scsi/NCR53c406a.c | if ((count & 1) || (((unsigned) ptr) & 1)) |
count | 321 | drivers/scsi/NCR53c406a.c | set_dma_count(dma_chan, count); |
count | 326 | drivers/scsi/NCR53c406a.c | return count; |
count | 330 | drivers/scsi/NCR53c406a.c | NCR53c406a_dma_write(unsigned char *src, unsigned int count) { |
count | 331 | drivers/scsi/NCR53c406a.c | return NCR53c406a_dma_setup (src, count, DMA_MODE_WRITE); |
count | 335 | drivers/scsi/NCR53c406a.c | NCR53c406a_dma_read(unsigned char *src, unsigned int count) { |
count | 336 | drivers/scsi/NCR53c406a.c | return NCR53c406a_dma_setup (src, count, DMA_MODE_READ); |
count | 2258 | drivers/scsi/advansys.c | #define ASC_STATS_ADD(counter, count) |
count | 2261 | drivers/scsi/advansys.c | #define ASC_STATS_ADD(counter, count) asc_stats.counter += (count) |
count | 6922 | drivers/scsi/advansys.c | int count = 0; |
count | 6930 | drivers/scsi/advansys.c | if (count++ > 30) { |
count | 7205 | drivers/scsi/advansys.c | int count = 0; |
count | 7222 | drivers/scsi/advansys.c | } while (count++ < 20); |
count | 7233 | drivers/scsi/advansys.c | int count; |
count | 7235 | drivers/scsi/advansys.c | count = 0; |
count | 7245 | drivers/scsi/advansys.c | } while (count++ < 20); |
count | 7266 | drivers/scsi/advansys.c | int count; |
count | 7269 | drivers/scsi/advansys.c | count = 0; |
count | 7278 | drivers/scsi/advansys.c | } while (count++ < 20); |
count | 7288 | drivers/scsi/advansys.c | int count; |
count | 7291 | drivers/scsi/advansys.c | count = 0; |
count | 7300 | drivers/scsi/advansys.c | } while (count++ < 20); |
count | 931 | drivers/scsi/aha1542.c | int count = 0; |
count | 1068 | drivers/scsi/aha1542.c | count++; |
count | 1076 | drivers/scsi/aha1542.c | return count; |
count | 1082 | drivers/scsi/aha1542.c | int count = 0; |
count | 1094 | drivers/scsi/aha1542.c | count++; |
count | 1097 | drivers/scsi/aha1542.c | printk("Potential to restart %d stalled commands...\n", count); |
count | 1100 | drivers/scsi/aha1542.c | if (count) aha1542_out(shost->io_port, &ahacmd, 1); |
count | 186 | drivers/scsi/g_NCR5380.c | int count; |
count | 192 | drivers/scsi/g_NCR5380.c | for (count = 0; current_override < NO_OVERRIDES; ++current_override) { |
count | 238 | drivers/scsi/g_NCR5380.c | ++count; |
count | 240 | drivers/scsi/g_NCR5380.c | return count; |
count | 189 | drivers/scsi/in2000.c | unsigned count, infcnt, txcnt; |
count | 195 | drivers/scsi/in2000.c | count = (infcnt << 3) - 32; /* don't fill completely */ |
count | 196 | drivers/scsi/in2000.c | if ( count > in2000_datalen ) |
count | 197 | drivers/scsi/in2000.c | count = in2000_datalen; /* limit to actual data on hand */ |
count | 198 | drivers/scsi/in2000.c | count >>= 1; /* Words, not bytes */ |
count | 200 | drivers/scsi/in2000.c | if ( count ) { |
count | 201 | drivers/scsi/in2000.c | port_write(INFIFO, in2000_dataptr, count); |
count | 202 | drivers/scsi/in2000.c | in2000_datalen -= (count<<1); |
count | 205 | drivers/scsi/in2000.c | while ( count-- ) |
count | 222 | drivers/scsi/in2000.c | count = 32; /* Always says to use this much flush */ |
count | 223 | drivers/scsi/in2000.c | while ( count-- ) |
count | 231 | drivers/scsi/in2000.c | unsigned fic, count, count2; |
count | 233 | drivers/scsi/in2000.c | count = inb(INFCNT) & 0xe1; |
count | 235 | drivers/scsi/in2000.c | count2 = count; |
count | 236 | drivers/scsi/in2000.c | count = (fic = inb(INFCNT)) & 0xe1; |
count | 237 | drivers/scsi/in2000.c | } while ( count != count2 ); |
count | 243 | drivers/scsi/in2000.c | if(fic > 128) count = 1024; |
count | 244 | drivers/scsi/in2000.c | else if(fic > 64) count = 512; |
count | 245 | drivers/scsi/in2000.c | else if (fic > 32) count = 256; |
count | 247 | drivers/scsi/in2000.c | count = in2000_datalen - count2; /* FIFO has the rest */ |
count | 248 | drivers/scsi/in2000.c | if ( count > in2000_datalen ) /* count2 is lesser of FIFO & rqst */ |
count | 251 | drivers/scsi/in2000.c | count2 = count >> 1; |
count | 252 | drivers/scsi/in2000.c | count >>= 1; /* also to words */ |
count | 253 | drivers/scsi/in2000.c | count -= count2; /* extra left over in FIFO */ |
count | 284 | drivers/scsi/in2000.c | unsigned int count,auxstatus,scsistatus,cmdphase,scsibyte; |
count | 290 | drivers/scsi/in2000.c | if (( (ficmsk & (count = inb(INFCNT))) == 0xfe ) || |
count | 300 | drivers/scsi/in2000.c | DEB(printk("(int2000:%02x %02x %02x %02x %02x)\n",count,auxstatus, |
count | 357 | drivers/scsi/pas16.c | int count; |
count | 361 | drivers/scsi/pas16.c | for (count = 0; current_override < NO_OVERRIDES; ++current_override) { |
count | 434 | drivers/scsi/pas16.c | ++count; |
count | 436 | drivers/scsi/pas16.c | return count; |
count | 654 | drivers/scsi/sd.c | int count, this_count_max; |
count | 660 | drivers/scsi/sd.c | count = 0; |
count | 668 | drivers/scsi/sd.c | if (count < SCpnt->host->sg_tablesize) count++; |
count | 677 | drivers/scsi/sd.c | ((unsigned int) SCpnt->request.bh->b_data-1) == ISA_DMA_THRESHOLD) count--; |
count | 679 | drivers/scsi/sd.c | SCpnt->use_sg = count; /* Number of chains */ |
count | 680 | drivers/scsi/sd.c | count = 512;/* scsi_malloc can only allocate in chunks of 512 bytes */ |
count | 681 | drivers/scsi/sd.c | while( count < (SCpnt->use_sg * sizeof(struct scatterlist))) |
count | 682 | drivers/scsi/sd.c | count = count << 1; |
count | 683 | drivers/scsi/sd.c | SCpnt->sglist_len = count; |
count | 684 | drivers/scsi/sd.c | max_sg = count / sizeof(struct scatterlist); |
count | 687 | drivers/scsi/sd.c | sgpnt = (struct scatterlist * ) scsi_malloc(count); |
count | 694 | drivers/scsi/sd.c | memset(sgpnt, 0, count); /* Zero so it is easy to fill, but only |
count | 699 | drivers/scsi/sd.c | for(count = 0, bh = SCpnt->request.bh, bhp = bh->b_reqnext; |
count | 700 | drivers/scsi/sd.c | count < SCpnt->use_sg && bh; |
count | 701 | drivers/scsi/sd.c | count++, bh = bhp) { |
count | 705 | drivers/scsi/sd.c | if(!sgpnt[count].address) sgpnt[count].address = bh->b_data; |
count | 706 | drivers/scsi/sd.c | sgpnt[count].length += bh->b_size; |
count | 709 | drivers/scsi/sd.c | if (((long) sgpnt[count].address) + sgpnt[count].length - 1 > |
count | 711 | drivers/scsi/sd.c | !sgpnt[count].alt_address) { |
count | 712 | drivers/scsi/sd.c | sgpnt[count].alt_address = sgpnt[count].address; |
count | 717 | drivers/scsi/sd.c | if(dma_free_sectors < (sgpnt[count].length >> 9) + 10) { |
count | 718 | drivers/scsi/sd.c | sgpnt[count].address = NULL; |
count | 720 | drivers/scsi/sd.c | sgpnt[count].address = |
count | 721 | drivers/scsi/sd.c | (char *) scsi_malloc(sgpnt[count].length); |
count | 728 | drivers/scsi/sd.c | if(sgpnt[count].address == NULL){ /* Out of dma memory */ |
count | 732 | drivers/scsi/sd.c | while(--count >= 0){ |
count | 733 | drivers/scsi/sd.c | if(sgpnt[count].alt_address) |
count | 734 | drivers/scsi/sd.c | scsi_free(sgpnt[count].address, |
count | 735 | drivers/scsi/sd.c | sgpnt[count].length); |
count | 742 | drivers/scsi/sd.c | SCpnt->use_sg = count; |
count | 757 | drivers/scsi/sd.c | if (((long) sgpnt[count].address) + sgpnt[count].length + |
count | 760 | drivers/scsi/sd.c | !sgpnt[count].alt_address) continue; |
count | 762 | drivers/scsi/sd.c | if(!sgpnt[count].alt_address) {count--; continue; } |
count | 764 | drivers/scsi/sd.c | tmp = (char *) scsi_malloc(sgpnt[count].length |
count | 771 | drivers/scsi/sd.c | scsi_free(sgpnt[count].address, sgpnt[count].length); |
count | 772 | drivers/scsi/sd.c | sgpnt[count].address = tmp; |
count | 773 | drivers/scsi/sd.c | count--; |
count | 788 | drivers/scsi/sd.c | if(count < SCpnt->use_sg || SCpnt->use_sg |
count | 792 | drivers/scsi/sd.c | SCpnt->use_sg, count, dma_free_sectors); |
count | 800 | drivers/scsi/sd.c | for(count=0; count<SCpnt->use_sg; count++) |
count | 801 | drivers/scsi/sd.c | printk("{%d:%p %p %d} ", count, |
count | 802 | drivers/scsi/sd.c | sgpnt[count].address, |
count | 803 | drivers/scsi/sd.c | sgpnt[count].alt_address, |
count | 804 | drivers/scsi/sd.c | sgpnt[count].length); |
count | 809 | drivers/scsi/sd.c | for(count=0; count<SCpnt->use_sg; count++) |
count | 810 | drivers/scsi/sd.c | if(sgpnt[count].alt_address) |
count | 811 | drivers/scsi/sd.c | memcpy(sgpnt[count].address, sgpnt[count].alt_address, |
count | 812 | drivers/scsi/sd.c | sgpnt[count].length); |
count | 252 | drivers/scsi/seagate.c | register int count = 0, start = jiffies + 1, stop = start + 25; |
count | 255 | drivers/scsi/seagate.c | for (;jiffies < stop; ++count); |
count | 262 | drivers/scsi/seagate.c | borken_calibration = (count * 4) / (SLOW_RATE*1024); |
count | 273 | drivers/scsi/seagate.c | register int count; |
count | 274 | drivers/scsi/seagate.c | for (count = borken_calibration; count && (STATUS & STAT_REQ); |
count | 275 | drivers/scsi/seagate.c | --count); |
count | 277 | drivers/scsi/seagate.c | if (count) |
count | 199 | drivers/scsi/sg.c | static int sg_read(struct inode *inode,struct file *filp,char *buf,int count) |
count | 205 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_WRITE,buf,count))) |
count | 234 | drivers/scsi/sg.c | if (count>=sizeof(struct sg_header)) |
count | 238 | drivers/scsi/sg.c | if (count>device->header.pack_len) |
count | 239 | drivers/scsi/sg.c | count=device->header.pack_len; |
count | 240 | drivers/scsi/sg.c | if (count > sizeof(struct sg_header)) { |
count | 241 | drivers/scsi/sg.c | memcpy_tofs(buf,device->buff,count-sizeof(struct sg_header)); |
count | 245 | drivers/scsi/sg.c | count=0; |
count | 255 | drivers/scsi/sg.c | return count; |
count | 295 | drivers/scsi/sg.c | static int sg_write(struct inode *inode,struct file *filp,const char *buf,int count) |
count | 306 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_READ,buf,count))) |
count | 312 | drivers/scsi/sg.c | if (count<(sizeof(struct sg_header) + 6)) |
count | 339 | drivers/scsi/sg.c | device->header.pack_len=count; |
count | 456 | drivers/scsi/sg.c | return count; |
count | 727 | drivers/scsi/sr.c | int count, this_count_max; |
count | 730 | drivers/scsi/sr.c | count = 0; |
count | 735 | drivers/scsi/sr.c | if(this_count) count++; |
count | 736 | drivers/scsi/sr.c | while(bh && count < SCpnt->host->sg_tablesize) { |
count | 739 | drivers/scsi/sr.c | count++; |
count | 745 | drivers/scsi/sr.c | if (count < SCpnt->host->sg_tablesize) { |
count | 746 | drivers/scsi/sr.c | count++; |
count | 750 | drivers/scsi/sr.c | count--; |
count | 754 | drivers/scsi/sr.c | SCpnt->use_sg = count; /* Number of chains */ |
count | 755 | drivers/scsi/sr.c | count = 512;/* scsi_malloc can only allocate in chunks of 512 bytes*/ |
count | 756 | drivers/scsi/sr.c | while( count < (SCpnt->use_sg * sizeof(struct scatterlist))) |
count | 757 | drivers/scsi/sr.c | count = count << 1; |
count | 758 | drivers/scsi/sr.c | SCpnt->sglist_len = count; |
count | 759 | drivers/scsi/sr.c | sgpnt = (struct scatterlist * ) scsi_malloc(count); |
count | 765 | drivers/scsi/sr.c | count = 0; |
count | 768 | drivers/scsi/sr.c | sgpnt[count].length = (SCpnt->request.sector % 4) << 9; |
count | 769 | drivers/scsi/sr.c | sgpnt[count].address = (char *) scsi_malloc(sgpnt[count].length); |
count | 770 | drivers/scsi/sr.c | if(!sgpnt[count].address) panic("SCSI DMA pool exhausted."); |
count | 771 | drivers/scsi/sr.c | sgpnt[count].alt_address = sgpnt[count].address; /* Flag to delete |
count | 773 | drivers/scsi/sr.c | count++; |
count | 775 | drivers/scsi/sr.c | for(bh = SCpnt->request.bh; count < SCpnt->use_sg; |
count | 776 | drivers/scsi/sr.c | count++, bh = bh->b_reqnext) { |
count | 778 | drivers/scsi/sr.c | sgpnt[count].address = bh->b_data; |
count | 779 | drivers/scsi/sr.c | sgpnt[count].length = bh->b_size; |
count | 780 | drivers/scsi/sr.c | sgpnt[count].alt_address = NULL; |
count | 782 | drivers/scsi/sr.c | sgpnt[count].address = (char *) scsi_malloc(end_rec); |
count | 783 | drivers/scsi/sr.c | if(!sgpnt[count].address) panic("SCSI DMA pool exhausted."); |
count | 784 | drivers/scsi/sr.c | sgpnt[count].length = end_rec; |
count | 785 | drivers/scsi/sr.c | sgpnt[count].alt_address = sgpnt[count].address; |
count | 786 | drivers/scsi/sr.c | if (count+1 != SCpnt->use_sg) panic("Bad sr request list"); |
count | 789 | drivers/scsi/sr.c | if (((long) sgpnt[count].address) + sgpnt[count].length > ISA_DMA_THRESHOLD && |
count | 791 | drivers/scsi/sr.c | sgpnt[count].alt_address = sgpnt[count].address; |
count | 795 | drivers/scsi/sr.c | if(dma_free_sectors < (sgpnt[count].length >> 9) + 5) { |
count | 796 | drivers/scsi/sr.c | sgpnt[count].address = NULL; |
count | 798 | drivers/scsi/sr.c | sgpnt[count].address = (char *) scsi_malloc(sgpnt[count].length); |
count | 804 | drivers/scsi/sr.c | if(sgpnt[count].address == NULL){ /* Out of dma memory */ |
count | 807 | drivers/scsi/sr.c | while(--count >= 0){ |
count | 808 | drivers/scsi/sr.c | if(sgpnt[count].alt_address) |
count | 809 | drivers/scsi/sr.c | scsi_free(sgpnt[count].address, sgpnt[count].length); |
count | 822 | drivers/scsi/sr.c | for(count=0; count<SCpnt->use_sg; count++) |
count | 823 | drivers/scsi/sr.c | printk("SGlist: %d %x %x %x\n", count, |
count | 824 | drivers/scsi/sr.c | sgpnt[count].address, |
count | 825 | drivers/scsi/sr.c | sgpnt[count].alt_address, |
count | 826 | drivers/scsi/sr.c | sgpnt[count].length); |
count | 747 | drivers/scsi/st.c | st_write(struct inode * inode, struct file * filp, const char * buf, int count) |
count | 780 | drivers/scsi/st.c | count > (STp->buffer)->buffer_size && |
count | 781 | drivers/scsi/st.c | !enlarge_buffer(STp->buffer, count, STp->restr_dma)) |
count | 821 | drivers/scsi/st.c | if (STp->block_size != 0 && (count % STp->block_size) != 0) |
count | 830 | drivers/scsi/st.c | total = count; |
count | 839 | drivers/scsi/st.c | while((STp->block_size == 0 && !STp->do_async_writes && count > 0) || |
count | 841 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes + count > write_threshold)) |
count | 845 | drivers/scsi/st.c | do_count = count; |
count | 849 | drivers/scsi/st.c | if (do_count > count) |
count | 850 | drivers/scsi/st.c | do_count = count; |
count | 890 | drivers/scsi/st.c | count -= do_count - transfer; |
count | 923 | drivers/scsi/st.c | if (count < total) |
count | 924 | drivers/scsi/st.c | return total - count; |
count | 930 | drivers/scsi/st.c | count -= do_count; |
count | 940 | drivers/scsi/st.c | if (count != 0) { |
count | 943 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes,b_point,count); |
count | 944 | drivers/scsi/st.c | filp->f_pos += count; |
count | 945 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes += count; |
count | 946 | drivers/scsi/st.c | count = 0; |
count | 1001 | drivers/scsi/st.c | st_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 1021 | drivers/scsi/st.c | count > (STp->buffer)->buffer_size && |
count | 1022 | drivers/scsi/st.c | !enlarge_buffer(STp->buffer, count, STp->restr_dma)) |
count | 1026 | drivers/scsi/st.c | (count % STp->block_size) != 0) |
count | 1053 | drivers/scsi/st.c | for (total = 0; total < count; ) { |
count | 1062 | drivers/scsi/st.c | blks = bytes = count; |
count | 1069 | drivers/scsi/st.c | bytes = count; |
count | 1199 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes, count - total); |
count | 1201 | drivers/scsi/st.c | transfer = (STp->buffer)->buffer_bytes < count - total ? |
count | 1202 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes : count - total; |
count | 1229 | drivers/scsi/st.c | count = total; /* Read only one variable length block */ |
count | 204 | drivers/scsi/t128.c | int sig, count; |
count | 208 | drivers/scsi/t128.c | for (count = 0; current_override < NO_OVERRIDES; ++current_override) { |
count | 275 | drivers/scsi/t128.c | ++count; |
count | 277 | drivers/scsi/t128.c | return count; |
count | 122 | drivers/sound/ad1848.c | static void ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
count | 123 | drivers/sound/ad1848.c | static void ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
count | 838 | drivers/sound/ad1848.c | ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
count | 843 | drivers/sound/ad1848.c | cnt = count; |
count | 875 | drivers/sound/ad1848.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
count | 890 | drivers/sound/ad1848.c | ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
count | 895 | drivers/sound/ad1848.c | cnt = count; |
count | 926 | drivers/sound/ad1848.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
count | 208 | drivers/sound/audio.c | audio_write (int dev, struct fileinfo *file, const char *buf, int count) |
count | 217 | drivers/sound/audio.c | c = count; |
count | 228 | drivers/sound/audio.c | if (!count) /* Flush output */ |
count | 290 | drivers/sound/audio.c | return count; |
count | 294 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, char *buf, int count) |
count | 302 | drivers/sound/audio.c | c = count; |
count | 352 | drivers/sound/audio.c | return count - c; |
count | 1570 | drivers/sound/configure.c | int count; |
count | 1582 | drivers/sound/configure.c | count = read (fd, &c, 1); |
count | 1583 | drivers/sound/configure.c | if (count == 0) |
count | 159 | drivers/sound/dev_table.h | int count, int intrflag, int dma_restart); |
count | 161 | drivers/sound/dev_table.h | int count, int intrflag, int dma_restart); |
count | 203 | drivers/sound/dev_table.h | int offs, int count, int pmgr_flag); |
count | 531 | drivers/sound/dev_table.h | int count, int dma_mode, int autoinit); |
count | 653 | drivers/sound/dmabuf.c | int bytes, count; |
count | 663 | drivers/sound/dmabuf.c | count = (fact >> 16) & 0xffff; |
count | 665 | drivers/sound/dmabuf.c | if (count == 0) |
count | 666 | drivers/sound/dmabuf.c | count = MAX_SUB_BUFFERS; |
count | 671 | drivers/sound/dmabuf.c | if (count < 2) |
count | 680 | drivers/sound/dmabuf.c | dmap->max_fragments = count; |
count | 690 | drivers/sound/dmabuf.c | return snd_ioctl_return ((int *) arg, bytes | (count << 16)); |
count | 1233 | drivers/sound/dmabuf.c | DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode) |
count | 1278 | drivers/sound/dmabuf.c | set_dma_count (chan, count); |
count | 1283 | drivers/sound/dmabuf.c | return count; |
count | 1773 | drivers/sound/dmabuf.c | DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode) |
count | 1512 | drivers/sound/gus_wave.c | int offs, int count, int pmgr_flag) |
count | 1528 | drivers/sound/gus_wave.c | if (count < sizeof_patch) |
count | 1534 | drivers/sound/gus_wave.c | count -= sizeof_patch; |
count | 1557 | drivers/sound/gus_wave.c | if (count < patch.len) |
count | 1560 | drivers/sound/gus_wave.c | count, (int) patch.len); |
count | 1561 | drivers/sound/gus_wave.c | patch.len = count; |
count | 2264 | drivers/sound/gus_wave.c | int this_one, count; |
count | 2272 | drivers/sound/gus_wave.c | count = total_count / gus_sampling_channels; |
count | 2282 | drivers/sound/gus_wave.c | pcm_datasize[this_one] = count; |
count | 2288 | drivers/sound/gus_wave.c | DMAbuf_start_dma (dev, buf + (chn * count), count, DMA_MODE_WRITE); |
count | 2322 | drivers/sound/gus_wave.c | if (!pcm_active && (pcm_qlen > 0 || count < pcm_bsize)) |
count | 2351 | drivers/sound/gus_wave.c | gus_sampling_start_input (int dev, unsigned long buf, int count, |
count | 2360 | drivers/sound/gus_wave.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
count | 56 | drivers/sound/maui.c | int offs, int count, int pmgr_flag) = NULL; |
count | 301 | drivers/sound/maui.c | int offs, int count, int pmgr_flag) |
count | 310 | drivers/sound/maui.c | return orig_load_patch (dev, format, addr, offs, count, pmgr_flag); |
count | 317 | drivers/sound/maui.c | if (count < hdr_size) |
count | 323 | drivers/sound/maui.c | count -= hdr_size; |
count | 332 | drivers/sound/maui.c | if (count < header.len) |
count | 335 | drivers/sound/maui.c | count, (int) header.len); |
count | 336 | drivers/sound/maui.c | header.len = count; |
count | 504 | drivers/sound/midi_synth.c | int offs, int count, int pmgr_flag) |
count | 525 | drivers/sound/midi_synth.c | if (count < hdr_size) |
count | 531 | drivers/sound/midi_synth.c | count -= hdr_size; |
count | 540 | drivers/sound/midi_synth.c | if (count < sysex.len) |
count | 543 | drivers/sound/midi_synth.c | count, (int) sysex.len); |
count | 544 | drivers/sound/midi_synth.c | sysex.len = count; |
count | 11 | drivers/sound/midi_synth.h | int offs, int count, int pmgr_flag); |
count | 342 | drivers/sound/midibuf.c | MIDIbuf_write (int dev, struct fileinfo *file, const char *buf, int count) |
count | 350 | drivers/sound/midibuf.c | if (!count) |
count | 358 | drivers/sound/midibuf.c | while (c < count) |
count | 392 | drivers/sound/midibuf.c | if (n > (count - c)) |
count | 393 | drivers/sound/midibuf.c | n = count - c; |
count | 410 | drivers/sound/midibuf.c | MIDIbuf_read (int dev, struct fileinfo *file, char *buf, int count) |
count | 453 | drivers/sound/midibuf.c | if (n > count) |
count | 454 | drivers/sound/midibuf.c | n = count; |
count | 883 | drivers/sound/opl3.c | int offs, int count, int pmgr_flag) |
count | 887 | drivers/sound/opl3.c | if (count < sizeof (ins)) |
count | 286 | drivers/sound/pas2_pcm.c | pas_pcm_output_block (int dev, unsigned long buf, int count, |
count | 291 | drivers/sound/pas2_pcm.c | TRACE (printk ("pas2_pcm.c: static void pas_pcm_output_block(char *buf = %P, int count = %X)\n", buf, count)); |
count | 293 | drivers/sound/pas2_pcm.c | cnt = count; |
count | 311 | drivers/sound/pas2_pcm.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
count | 314 | drivers/sound/pas2_pcm.c | count >>= 1; |
count | 316 | drivers/sound/pas2_pcm.c | if (count != pcm_count) |
count | 320 | drivers/sound/pas2_pcm.c | pas_write (count & 0xff, SAMPLE_BUFFER_COUNTER); |
count | 321 | drivers/sound/pas2_pcm.c | pas_write ((count >> 8) & 0xff, SAMPLE_BUFFER_COUNTER); |
count | 324 | drivers/sound/pas2_pcm.c | pcm_count = count; |
count | 337 | drivers/sound/pas2_pcm.c | pas_pcm_start_input (int dev, unsigned long buf, int count, |
count | 343 | drivers/sound/pas2_pcm.c | TRACE (printk ("pas2_pcm.c: static void pas_pcm_start_input(char *buf = %P, int count = %X)\n", buf, count)); |
count | 345 | drivers/sound/pas2_pcm.c | cnt = count; |
count | 360 | drivers/sound/pas2_pcm.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
count | 363 | drivers/sound/pas2_pcm.c | count >>= 1; |
count | 365 | drivers/sound/pas2_pcm.c | if (count != pcm_count) |
count | 369 | drivers/sound/pas2_pcm.c | pas_write (count & 0xff, SAMPLE_BUFFER_COUNTER); |
count | 370 | drivers/sound/pas2_pcm.c | pas_write ((count >> 8) & 0xff, SAMPLE_BUFFER_COUNTER); |
count | 373 | drivers/sound/pas2_pcm.c | pcm_count = count; |
count | 96 | drivers/sound/patmgr.c | pmgr_read (int dev, struct fileinfo *file, char *buf, int count) |
count | 101 | drivers/sound/patmgr.c | if (count != sizeof (struct patmgr_info)) |
count | 123 | drivers/sound/patmgr.c | memcpy_tofs (&((buf)[0]), (char *) mbox[dev], count); |
count | 134 | drivers/sound/patmgr.c | return count; |
count | 138 | drivers/sound/patmgr.c | pmgr_write (int dev, struct fileinfo *file, const char *buf, int count) |
count | 142 | drivers/sound/patmgr.c | if (count < 4) |
count | 159 | drivers/sound/patmgr.c | buf, 4, count, 1); |
count | 162 | drivers/sound/patmgr.c | if (count != sizeof (struct patmgr_info)) |
count | 178 | drivers/sound/patmgr.c | memcpy_fromfs (&((char *) mbox[dev])[4], &((buf)[4]), count - 4); |
count | 192 | drivers/sound/patmgr.c | return count; |
count | 242 | drivers/sound/pss.c | int i, limit, val, count; |
count | 260 | drivers/sound/pss.c | count = 1; |
count | 275 | drivers/sound/pss.c | if (count >= size && flags & CPF_LAST) |
count | 280 | drivers/sound/pss.c | count, size); |
count | 286 | drivers/sound/pss.c | count++; |
count | 62 | drivers/sound/sb16_dsp.c | static void sb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
count | 63 | drivers/sound/sb16_dsp.c | static void sb16_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
count | 270 | drivers/sound/sb16_dsp.c | sb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
count | 273 | drivers/sound/sb16_dsp.c | trg_bytes = count; |
count | 280 | drivers/sound/sb16_dsp.c | actually_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
count | 284 | drivers/sound/sb16_dsp.c | cnt = count; |
count | 305 | drivers/sound/sb16_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
count | 323 | drivers/sound/sb16_dsp.c | sb16_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
count | 326 | drivers/sound/sb16_dsp.c | trg_bytes = count; |
count | 333 | drivers/sound/sb16_dsp.c | actually_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
count | 337 | drivers/sound/sb16_dsp.c | cnt = count; |
count | 358 | drivers/sound/sb16_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
count | 478 | drivers/sound/sb_dsp.c | int count = nr_bytes; |
count | 480 | drivers/sound/sb_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
count | 485 | drivers/sound/sb_dsp.c | count >>= 1; |
count | 486 | drivers/sound/sb_dsp.c | count--; |
count | 487 | drivers/sound/sb_dsp.c | dsp_count = count; |
count | 537 | drivers/sound/sb_dsp.c | sb_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, |
count | 546 | drivers/sound/sb_dsp.c | trg_bytes = count; |
count | 557 | drivers/sound/sb_dsp.c | int count = nr_bytes; |
count | 568 | drivers/sound/sb_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
count | 572 | drivers/sound/sb_dsp.c | count >>= 1; |
count | 573 | drivers/sound/sb_dsp.c | count--; |
count | 574 | drivers/sound/sb_dsp.c | dsp_count = count; |
count | 104 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, char *buf, int count) |
count | 106 | drivers/sound/sequencer.c | int c = count, p = 0; |
count | 117 | drivers/sound/sequencer.c | return pmgr_read (dev - 1, file, buf, count); |
count | 167 | drivers/sound/sequencer.c | return count - c; |
count | 265 | drivers/sound/sequencer.c | sequencer_write (int dev, struct fileinfo *file, const char *buf, int count) |
count | 274 | drivers/sound/sequencer.c | DEB (printk ("sequencer_write(dev=%d, count=%d)\n", dev, count)); |
count | 280 | drivers/sound/sequencer.c | return pmgr_write (dev - 1, file, buf, count); |
count | 282 | drivers/sound/sequencer.c | c = count; |
count | 321 | drivers/sound/sequencer.c | return count - c; |
count | 369 | drivers/sound/sequencer.c | int processed = count - c; |
count | 388 | drivers/sound/sequencer.c | return count; /* This will "eat" chunks shorter than 4 bytes (if written |
count | 15 | drivers/sound/sound_calls.h | int DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode); |
count | 28 | drivers/sound/sound_calls.h | int audio_read (int dev, struct fileinfo *file, char *buf, int count); |
count | 29 | drivers/sound/sound_calls.h | int audio_write (int dev, struct fileinfo *file, const char *buf, int count); |
count | 43 | drivers/sound/sound_calls.h | int sequencer_read (int dev, struct fileinfo *file, char *buf, int count); |
count | 44 | drivers/sound/sound_calls.h | int sequencer_write (int dev, struct fileinfo *file, const char *buf, int count); |
count | 63 | drivers/sound/sound_calls.h | int MIDIbuf_read (int dev, struct fileinfo *file, char *buf, int count); |
count | 64 | drivers/sound/sound_calls.h | int MIDIbuf_write (int dev, struct fileinfo *file, const char *buf, int count); |
count | 70 | drivers/sound/sound_calls.h | void MIDIbuf_bytes_received(int dev, unsigned char *buf, int count); |
count | 83 | drivers/sound/sound_calls.h | void request_sound_timer (int count); |
count | 94 | drivers/sound/sound_calls.h | int sound_read_sw (int dev, struct fileinfo *file, char *buf, int count); |
count | 95 | drivers/sound/sound_calls.h | int sound_write_sw (int dev, struct fileinfo *file, const char *buf, int count); |
count | 202 | drivers/sound/sound_calls.h | int pmgr_read (int dev, struct fileinfo *file, char * buf, int count); |
count | 203 | drivers/sound/sound_calls.h | int pmgr_write (int dev, struct fileinfo *file, const char * buf, int count); |
count | 244 | drivers/sound/sound_calls.h | int pss_read (int dev, struct fileinfo *file, char *buf, int count); |
count | 245 | drivers/sound/sound_calls.h | int pss_write (int dev, struct fileinfo *file, char *buf, int count); |
count | 314 | drivers/sound/sound_switch.c | read_status (char *buf, int count) |
count | 321 | drivers/sound/sound_switch.c | l = count; |
count | 336 | drivers/sound/sound_switch.c | sound_read_sw (int dev, struct fileinfo *file, char *buf, int count) |
count | 338 | drivers/sound/sound_switch.c | DEB (printk ("sound_read_sw(dev=%d, count=%d)\n", dev, count)); |
count | 343 | drivers/sound/sound_switch.c | return read_status (buf, count); |
count | 350 | drivers/sound/sound_switch.c | return audio_read (dev, file, buf, count); |
count | 357 | drivers/sound/sound_switch.c | return sequencer_read (dev, file, buf, count); |
count | 363 | drivers/sound/sound_switch.c | return MIDIbuf_read (dev, file, buf, count); |
count | 374 | drivers/sound/sound_switch.c | sound_write_sw (int dev, struct fileinfo *file, const char *buf, int count) |
count | 377 | drivers/sound/sound_switch.c | DEB (printk ("sound_write_sw(dev=%d, count=%d)\n", dev, count)); |
count | 385 | drivers/sound/sound_switch.c | return sequencer_write (dev, file, buf, count); |
count | 393 | drivers/sound/sound_switch.c | return audio_write (dev, file, buf, count); |
count | 399 | drivers/sound/sound_switch.c | return MIDIbuf_write (dev, file, buf, count); |
count | 69 | drivers/sound/soundcard.c | sound_read (inode_handle * inode, file_handle * file, char *buf, int count) |
count | 77 | drivers/sound/soundcard.c | return sound_read_sw (dev, &files[dev], buf, count); |
count | 81 | drivers/sound/soundcard.c | sound_write (inode_handle * inode, file_handle * file, const char *buf, int count) |
count | 89 | drivers/sound/soundcard.c | return sound_write_sw (dev, &files[dev], buf, count); |
count | 576 | drivers/sound/soundcard.c | request_sound_timer (int count) |
count | 580 | drivers/sound/soundcard.c | if (count < 0) |
count | 581 | drivers/sound/soundcard.c | count = jiffies + (-count); |
count | 583 | drivers/sound/soundcard.c | count += seq_time; |
count | 588 | drivers/sound/soundcard.c | seq_timer.expires = ((count - jiffies)) + jiffies; |
count | 167 | drivers/sound/sscape.c | host_write (struct sscape_info *devc, unsigned char *data, int count) |
count | 179 | drivers/sound/sscape.c | for (i = 0; i < count; i++) |
count | 805 | drivers/sound/sscape.c | sscape_audio_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
count | 810 | drivers/sound/sscape.c | sscape_audio_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
count | 90 | drivers/sound/uart6850.c | int count; |
count | 92 | drivers/sound/uart6850.c | count = 10; |
count | 94 | drivers/sound/uart6850.c | while (count) /* |
count | 101 | drivers/sound/uart6850.c | count = 100; |
count | 107 | drivers/sound/uart6850.c | while (!input_avail () && count) |
count | 108 | drivers/sound/uart6850.c | count--; |
count | 23 | fs/block_dev.c | int block_write(struct inode * inode, struct file * filp, const char * buf, int count) |
count | 63 | fs/block_dev.c | while (count>0) { |
count | 67 | fs/block_dev.c | if (chars > count) |
count | 68 | fs/block_dev.c | chars=count; |
count | 122 | fs/block_dev.c | count -= chars; |
count | 160 | fs/block_dev.c | int block_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 205 | fs/block_dev.c | if (left > count) |
count | 206 | fs/block_dev.c | left = count; |
count | 615 | fs/buffer.c | if (mem_map[MAP_NR((unsigned long) bh->b_data)].count != 1 || |
count | 663 | fs/buffer.c | if (mem_map[MAP_NR((unsigned long) bh->b_data)].count != 1) |
count | 689 | fs/buffer.c | if (mem_map[MAP_NR((unsigned long) bh->b_data)].count != 1 || |
count | 815 | fs/buffer.c | else if ((mem_map[MAP_NR((unsigned long) buf->b_data)].count > 1) || buffer_protected(buf)) |
count | 1262 | fs/buffer.c | page->count++; |
count | 1381 | fs/buffer.c | return !mem_map[MAP_NR(page)].count; |
count | 1581 | fs/buffer.c | if (mem_map[MAP_NR(((unsigned long) bh->b_data))].count != 1) |
count | 1618 | fs/buffer.c | if(mem_map[MAP_NR(page)].count != 1) return 0; |
count | 325 | fs/exec.c | char * addr, unsigned long count, int to_kmem) |
count | 352 | fs/exec.c | result = file.f_op->read(inode, &file, addr, count); |
count | 355 | fs/exec.c | result = verify_area(VERIFY_WRITE, addr, count); |
count | 358 | fs/exec.c | result = file.f_op->read(inode, &file, addr, count); |
count | 374 | fs/exec.c | if (current->mm->count > 1) { |
count | 383 | fs/exec.c | mm->count = 1; |
count | 388 | fs/exec.c | current->mm->count--; |
count | 590 | fs/exec.c | if ((bprm.argc = count(argv)) < 0) |
count | 592 | fs/exec.c | if ((bprm.envc = count(envp)) < 0) |
count | 23 | fs/ext/dir.c | static int ext_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 75 | fs/ext/file.c | static int ext_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 99 | fs/ext/file.c | if (left > count) |
count | 100 | fs/ext/file.c | left = count; |
count | 200 | fs/ext/file.c | static int ext_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
count | 224 | fs/ext/file.c | while (written<count) { |
count | 232 | fs/ext/file.c | if (c > count-written) |
count | 233 | fs/ext/file.c | c = count-written; |
count | 61 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_firstfreeblock || efb->count == 254) { |
count | 72 | fs/ext/freelists.c | efb->count = 0; |
count | 75 | fs/ext/freelists.c | efb->free[efb->count++] = block; |
count | 98 | fs/ext/freelists.c | if (efb->count) { |
count | 99 | fs/ext/freelists.c | j = efb->free[--efb->count]; |
count | 145 | fs/ext/freelists.c | unsigned long count, block; |
count | 149 | fs/ext/freelists.c | count = 0; |
count | 152 | fs/ext/freelists.c | count = efb->count + 1; |
count | 160 | fs/ext/freelists.c | count += efb->count + 1; |
count | 167 | fs/ext/freelists.c | sb->u.ext_sb.s_freeblockscount, count); |
count | 169 | fs/ext/freelists.c | return count; |
count | 215 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_firstfreeinodeblock || efi->count == 14) { |
count | 227 | fs/ext/freelists.c | efi->count = 0; |
count | 231 | fs/ext/freelists.c | efi->free[efi->count++] = ino; |
count | 257 | fs/ext/freelists.c | if (efi->count) { |
count | 258 | fs/ext/freelists.c | j = efi->free[--efi->count]; |
count | 305 | fs/ext/freelists.c | unsigned long count, block, ino; |
count | 309 | fs/ext/freelists.c | count = 0; |
count | 313 | fs/ext/freelists.c | count = efi->count + 1; |
count | 328 | fs/ext/freelists.c | count += efi->count + 1; |
count | 335 | fs/ext/freelists.c | sb->u.ext_sb.s_freeinodescount, count); |
count | 337 | fs/ext/freelists.c | return count; |
count | 169 | fs/ext2/balloc.c | unsigned long count) |
count | 189 | fs/ext2/balloc.c | (block + count) > es->s_blocks_count) { |
count | 192 | fs/ext2/balloc.c | "block = %lu, count = %lu", block, count); |
count | 202 | fs/ext2/balloc.c | if (bit + count > EXT2_BLOCKS_PER_GROUP(sb)) |
count | 206 | fs/ext2/balloc.c | block, count); |
count | 212 | fs/ext2/balloc.c | (in_range (gdp->bg_block_bitmap, block, count) || |
count | 213 | fs/ext2/balloc.c | in_range (gdp->bg_inode_bitmap, block, count) || |
count | 216 | fs/ext2/balloc.c | in_range (block + count - 1, gdp->bg_inode_table, |
count | 221 | fs/ext2/balloc.c | block, count); |
count | 223 | fs/ext2/balloc.c | for (i = 0; i < count; i++) { |
count | 27 | fs/ext2/dir.c | char * buf, int count) |
count | 84 | fs/ext2/file.c | const char * buf, int count) |
count | 131 | fs/ext2/file.c | while (count > 0) { |
count | 143 | fs/ext2/file.c | count -= c; |
count | 144 | fs/ext2/file.c | if (count < 0) |
count | 145 | fs/ext2/file.c | c += count; |
count | 106 | fs/fat/cache.c | int count; |
count | 110 | fs/fat/cache.c | for (count = 0; count < FAT_CACHE; count++) { |
count | 111 | fs/fat/cache.c | cache[count].device = 0; |
count | 112 | fs/fat/cache.c | cache[count].next = count == FAT_CACHE-1 ? NULL : |
count | 113 | fs/fat/cache.c | &cache[count+1]; |
count | 227 | fs/fat/cache.c | int nr,count; |
count | 231 | fs/fat/cache.c | count = 0; |
count | 232 | fs/fat/cache.c | for (cache_lookup(inode,cluster,&count,&nr); count < cluster; |
count | 233 | fs/fat/cache.c | count++) { |
count | 32 | fs/fat/dir.c | static int fat_dir_read(struct inode * inode,struct file * filp, char * buf,int count) |
count | 158 | fs/fat/file.c | int count) |
count | 162 | fs/fat/file.c | char *end = buf + count; |
count | 177 | fs/fat/file.c | if (filp->f_pos >= inode->i_size || count <= 0) return 0; |
count | 187 | fs/fat/file.c | PRINTK (("#### ino %ld pos %ld size %ld count %d\n",inode->i_ino,filp->f_pos,inode->i_size,count)); |
count | 193 | fs/fat/file.c | int count_max = (filp->f_pos & (SECTOR_SIZE-1)) + count; |
count | 212 | fs/fat/file.c | PRINTK (("count %d ahead %d nblist %d\n",count,read_ahead[MAJOR(inode->i_dev)],pre.nblist)); |
count | 228 | fs/fat/file.c | PRINTK (("file_read pos %ld nblist %d %d %d\n",filp->f_pos,pre.nblist,pre.fetched,count)); |
count | 257 | fs/fat/file.c | PRINTK (("--- %d -> %d\n",count,(int)(buf-start))); |
count | 272 | fs/fat/file.c | int count) |
count | 298 | fs/fat/file.c | if (count <= 0) return 0; |
count | 300 | fs/fat/file.c | for (start = buf; count || carry; count -= size) { |
count | 308 | fs/fat/file.c | size = MIN(SECTOR_SIZE-offset,MAX(carry,count)); |
count | 336 | fs/fat/file.c | for (size = 0; size < count && left; size++) { |
count | 119 | fs/fat/misc.c | int count,nr,limit,last,curr,sector,last_sector,file_cluster; |
count | 128 | fs/fat/misc.c | for (count = 0; count < limit; count++) { |
count | 129 | fs/fat/misc.c | nr = ((count+MSDOS_SB(inode->i_sb)->prev_free) % limit)+2; |
count | 132 | fs/fat/misc.c | PRINTK (("cnt = %d --",count)); |
count | 136 | fs/fat/misc.c | MSDOS_SB(inode->i_sb)->prev_free = (count+MSDOS_SB(inode->i_sb)-> |
count | 138 | fs/fat/misc.c | if (count >= limit) { |
count | 417 | fs/fat/misc.c | int count,cluster; |
count | 419 | fs/fat/misc.c | for (count = 0; count < MSDOS_SB(sb)->dir_entries/MSDOS_DPS; count++) { |
count | 420 | fs/fat/misc.c | if ((cluster = raw_scan_sector(sb,MSDOS_SB(sb)->dir_start+count, |
count | 436 | fs/fat/misc.c | int count,cluster; |
count | 442 | fs/fat/misc.c | for (count = 0; count < MSDOS_SB(sb)->cluster_size; count++) { |
count | 445 | fs/fat/misc.c | count,name,number,ino,res_bh,res_de,scantype)) >= 0) |
count | 523 | fs/fat/misc.c | int count; |
count | 525 | fs/fat/misc.c | count = 0; |
count | 527 | fs/fat/misc.c | (void) raw_scan_root(dir->i_sb,NULL,&count,NULL,NULL,NULL,SCAN_ANY); |
count | 531 | fs/fat/misc.c | NULL,&count,NULL,NULL,NULL,SCAN_ANY); |
count | 533 | fs/fat/misc.c | return count; |
count | 189 | fs/hpfs/hpfs_fs.c | char *buf, int count); |
count | 820 | fs/hpfs/hpfs_fs.c | unsigned n, count, n_bands; |
count | 837 | fs/hpfs/hpfs_fs.c | count = 0; |
count | 846 | fs/hpfs/hpfs_fs.c | count += count_one_bitmap(s->s_dev, bitmaps[n]); |
count | 849 | fs/hpfs/hpfs_fs.c | return count; |
count | 860 | fs/hpfs/hpfs_fs.c | unsigned i, count; |
count | 866 | fs/hpfs/hpfs_fs.c | count = 0; |
count | 869 | fs/hpfs/hpfs_fs.c | count += (test_bit(i, bits) != 0); |
count | 872 | fs/hpfs/hpfs_fs.c | return count; |
count | 882 | fs/hpfs/hpfs_fs.c | char *buf, int count) |
count | 895 | fs/hpfs/hpfs_fs.c | if (count > inode->i_size - (off_t) filp->f_pos) |
count | 896 | fs/hpfs/hpfs_fs.c | count = inode->i_size - filp->f_pos; |
count | 899 | fs/hpfs/hpfs_fs.c | while (count > 0) { |
count | 911 | fs/hpfs/hpfs_fs.c | if (n > count) |
count | 912 | fs/hpfs/hpfs_fs.c | n = count; |
count | 941 | fs/hpfs/hpfs_fs.c | if (count > inode->i_size - (off_t) filp->f_pos - n + n0) |
count | 942 | fs/hpfs/hpfs_fs.c | count = inode->i_size - filp->f_pos - n + n0; |
count | 952 | fs/hpfs/hpfs_fs.c | count -= n0; |
count | 1583 | fs/hpfs/hpfs_fs.c | char *buf, int count) |
count | 532 | fs/inode.c | inode->i_sem.count = 1; |
count | 17 | fs/minix/dir.c | static int minix_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 69 | fs/minix/file.c | static int minix_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
count | 89 | fs/minix/file.c | while (written < count) { |
count | 97 | fs/minix/file.c | if (c > count-written) |
count | 98 | fs/minix/file.c | c = count-written; |
count | 26 | fs/ncpfs/dir.c | ncp_dir_read(struct inode *inode, struct file *filp, char *buf, int count); |
count | 181 | fs/ncpfs/dir.c | ncp_dir_read(struct inode *inode, struct file *filp, char *buf, int count) |
count | 83 | fs/ncpfs/file.c | ncp_file_read(struct inode *inode, struct file *file, char *buf, int count) |
count | 110 | fs/ncpfs/file.c | if (pos + count > inode->i_size) |
count | 112 | fs/ncpfs/file.c | count = inode->i_size - pos; |
count | 115 | fs/ncpfs/file.c | if (count <= 0) |
count | 130 | fs/ncpfs/file.c | while (already_read < count) |
count | 134 | fs/ncpfs/file.c | count - already_read); |
count | 168 | fs/ncpfs/file.c | int count) |
count | 193 | fs/ncpfs/file.c | if (count <= 0) |
count | 214 | fs/ncpfs/file.c | while (already_written < count) |
count | 218 | fs/ncpfs/file.c | count - already_written); |
count | 69 | fs/ncpfs/mmap.c | int count = PAGE_SIZE - clear; |
count | 72 | fs/ncpfs/mmap.c | while (already_read < count) |
count | 85 | fs/ncpfs/mmap.c | to_read = min(to_read, count - already_read); |
count | 47 | fs/nfs/bio.c | int count = PAGE_SIZE; |
count | 58 | fs/nfs/bio.c | if (count < rsize) |
count | 59 | fs/nfs/bio.c | rsize = count; |
count | 69 | fs/nfs/bio.c | count -= result; |
count | 74 | fs/nfs/bio.c | } while (count); |
count | 76 | fs/nfs/bio.c | memset(buf, 0, count); |
count | 133 | fs/nfs/bio.c | page->count++; |
count | 157 | fs/nfs/bio.c | page->count++; |
count | 22 | fs/nfs/dir.c | int count); |
count | 75 | fs/nfs/dir.c | int count) |
count | 88 | fs/nfs/file.c | char * buf, int count) |
count | 91 | fs/nfs/file.c | return generic_file_read(inode, file, buf, count); |
count | 106 | fs/nfs/file.c | int count) |
count | 121 | fs/nfs/file.c | if (count <= 0) |
count | 130 | fs/nfs/file.c | while (written < count) { |
count | 131 | fs/nfs/file.c | int hunk = count - written; |
count | 374 | fs/nfs/proc.c | int offset, int count, char *data, struct nfs_fattr *fattr) |
count | 381 | fs/nfs/proc.c | PRINTK("NFS call read %d @ %d\n", count, offset); |
count | 388 | fs/nfs/proc.c | *p++ = htonl(count); |
count | 389 | fs/nfs/proc.c | *p++ = htonl(count); /* traditional, could be any value */ |
count | 398 | fs/nfs/proc.c | if (!(p = xdr_decode_data(p, data, &len, count))) { |
count | 422 | fs/nfs/proc.c | unsigned long count, __u32 *buf) |
count | 427 | fs/nfs/proc.c | PRINTK("NFS reqst read %ld @ %ld\n", count, offset); |
count | 434 | fs/nfs/proc.c | *p++ = htonl(count); |
count | 435 | fs/nfs/proc.c | *p++ = htonl(count); /* traditional, could be any value */ |
count | 445 | fs/nfs/proc.c | req->rq_rvec[1].iov_len = count; |
count | 448 | fs/nfs/proc.c | req->rq_rlen = count + NFS_SLACK_SPACE; |
count | 463 | fs/nfs/proc.c | int count; |
count | 471 | fs/nfs/proc.c | count = ntohl(*p++); |
count | 481 | fs/nfs/proc.c | status = count; |
count | 482 | fs/nfs/proc.c | PRINTK("NFS reply read %d\n", count); |
count | 494 | fs/nfs/proc.c | int count, const char *data, struct nfs_fattr *fattr) |
count | 503 | fs/nfs/proc.c | PRINTK("NFS call write %d @ %d\n", count, offset); |
count | 511 | fs/nfs/proc.c | *p++ = htonl(count); /* traditional, could be any value */ |
count | 513 | fs/nfs/proc.c | p = xdr_encode_data(p, data, count); |
count | 521 | fs/nfs/proc.c | update_vm_cache(inode, offset, kdata, count); |
count | 803 | fs/nfs/proc.c | int cookie, int count, struct nfs_entry *entry) |
count | 812 | fs/nfs/proc.c | PRINTK("NFS call readdir %d @ %d\n", count, cookie); |
count | 828 | fs/nfs/proc.c | for (i = 0; i < count && *p++; i++) { |
count | 837 | fs/nfs/proc.c | eof = (i == count && !*p++ && *p++) |
count | 838 | fs/nfs/proc.c | || (i < count && *p++); |
count | 30 | fs/pipe.c | static int pipe_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 53 | fs/pipe.c | while (count>0 && (size = PIPE_SIZE(*inode))) { |
count | 55 | fs/pipe.c | if (chars > count) |
count | 56 | fs/pipe.c | chars = count; |
count | 64 | fs/pipe.c | count -= chars; |
count | 77 | fs/pipe.c | static int pipe_write(struct inode * inode, struct file * filp, const char * buf, int count) |
count | 87 | fs/pipe.c | if (count <= PIPE_BUF) |
count | 88 | fs/pipe.c | free = count; |
count | 91 | fs/pipe.c | while (count>0) { |
count | 104 | fs/pipe.c | while (count>0 && (free = PIPE_FREE(*inode))) { |
count | 106 | fs/pipe.c | if (chars > count) |
count | 107 | fs/pipe.c | chars = count; |
count | 113 | fs/pipe.c | count -= chars; |
count | 129 | fs/pipe.c | static int bad_pipe_r(struct inode * inode, struct file * filp, char * buf, int count) |
count | 134 | fs/pipe.c | static int bad_pipe_w(struct inode * inode, struct file * filp, const char * buf, int count) |
count | 214 | fs/pipe.c | static int connect_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 227 | fs/pipe.c | return pipe_read(inode,filp,buf,count); |
count | 62 | fs/proc/array.c | static int read_core(struct inode * inode, struct file * file,char * buf, int count) |
count | 82 | fs/proc/array.c | if (count < 0) |
count | 87 | fs/proc/array.c | if (count > memsize - p) |
count | 88 | fs/proc/array.c | count = memsize - p; |
count | 91 | fs/proc/array.c | if (p < sizeof(struct user) && count > 0) { |
count | 92 | fs/proc/array.c | count1 = count; |
count | 99 | fs/proc/array.c | count -= count1; |
count | 103 | fs/proc/array.c | while (count > 0 && p < PAGE_SIZE + FIRST_MAPPED) { |
count | 107 | fs/proc/array.c | count--; |
count | 110 | fs/proc/array.c | memcpy_tofs(buf, (void *) (PAGE_OFFSET + p - PAGE_SIZE), count); |
count | 111 | fs/proc/array.c | read += count; |
count | 132 | fs/proc/array.c | static int read_profile(struct inode *inode, struct file *file, char *buf, int count) |
count | 139 | fs/proc/array.c | if (count < 0) |
count | 143 | fs/proc/array.c | if (count > (prof_len+1)*sizeof(unsigned int) - p) |
count | 144 | fs/proc/array.c | count = (prof_len+1)*sizeof(unsigned int) - p; |
count | 147 | fs/proc/array.c | while (p < sizeof(unsigned int) && count > 0) { |
count | 149 | fs/proc/array.c | buf++; p++; count--; read++; |
count | 152 | fs/proc/array.c | memcpy_tofs(buf,(void *)pnt,count); |
count | 153 | fs/proc/array.c | read += count; |
count | 159 | fs/proc/array.c | static int write_profile(struct inode * inode, struct file * file, const char * buf, int count) |
count | 165 | fs/proc/array.c | return count; |
count | 424 | fs/proc/array.c | int count = 0; |
count | 438 | fs/proc/array.c | } while (count++ < 16); |
count | 764 | fs/proc/array.c | if (mem_map[MAP_NR(pte_page(page))].count > 1) |
count | 863 | fs/proc/array.c | static int read_maps (int pid, struct file * file, char * buf, int count) |
count | 875 | fs/proc/array.c | if (!(*p)->mm || (*p)->mm == &init_mm || count == 0) |
count | 925 | fs/proc/array.c | if (i > count) |
count | 926 | fs/proc/array.c | i = count; |
count | 928 | fs/proc/array.c | destptr += i; count -= i; |
count | 937 | fs/proc/array.c | if (count == 0) |
count | 1070 | fs/proc/array.c | static int array_read(struct inode * inode, struct file * file,char * buf, int count) |
count | 1079 | fs/proc/array.c | if (count < 0) |
count | 1081 | fs/proc/array.c | if (count > PROC_BLOCK_SIZE) |
count | 1082 | fs/proc/array.c | count = PROC_BLOCK_SIZE; |
count | 1092 | fs/proc/array.c | count, 0); |
count | 1095 | fs/proc/array.c | &start, file->f_pos, count); |
count | 1104 | fs/proc/array.c | count = length; |
count | 1111 | fs/proc/array.c | if (count + file->f_pos > length) |
count | 1112 | fs/proc/array.c | count = length - file->f_pos; |
count | 1113 | fs/proc/array.c | end = count + file->f_pos; |
count | 1114 | fs/proc/array.c | memcpy_tofs(buf, (char *) page + file->f_pos, count); |
count | 1118 | fs/proc/array.c | return count; |
count | 1154 | fs/proc/array.c | static int arraylong_read (struct inode * inode, struct file * file, char * buf, int count) |
count | 1159 | fs/proc/array.c | if (count < 0) |
count | 1164 | fs/proc/array.c | return read_maps(pid, file, buf, count); |
count | 19 | fs/proc/kmsg.c | asmlinkage int sys_syslog(int type, char * bug, int count); |
count | 31 | fs/proc/kmsg.c | static int kmsg_read(struct inode * inode, struct file * file,char * buf, int count) |
count | 33 | fs/proc/kmsg.c | return sys_syslog(2,buf,count); |
count | 26 | fs/proc/mem.c | static int check_range(struct task_struct * tsk, unsigned long addr, int count) |
count | 38 | fs/proc/mem.c | while ((retval = vma->vm_end - addr) < count) { |
count | 48 | fs/proc/mem.c | if (retval > count) |
count | 49 | fs/proc/mem.c | retval = count; |
count | 53 | fs/proc/mem.c | static int mem_read(struct inode * inode, struct file * file,char * buf, int count) |
count | 64 | fs/proc/mem.c | if (count < 0) |
count | 77 | fs/proc/mem.c | count = check_range(tsk, addr, count); |
count | 78 | fs/proc/mem.c | if (count < 0) |
count | 79 | fs/proc/mem.c | return count; |
count | 81 | fs/proc/mem.c | while (count > 0) { |
count | 105 | fs/proc/mem.c | if (i > count) |
count | 106 | fs/proc/mem.c | i = count; |
count | 110 | fs/proc/mem.c | count -= i; |
count | 118 | fs/proc/mem.c | static int mem_write(struct inode * inode, struct file * file,char * buf, int count) |
count | 129 | fs/proc/mem.c | if (count < 0) |
count | 143 | fs/proc/mem.c | while (count > 0) { |
count | 169 | fs/proc/mem.c | if (i > count) |
count | 170 | fs/proc/mem.c | i = count; |
count | 174 | fs/proc/mem.c | count -= i; |
count | 296 | fs/proc/mem.c | mem_map[MAP_NR(pte_page(*src_table))].count++; |
count | 39 | fs/proc/net.c | char * buf, int count) |
count | 42 | fs/proc/net.c | int bytes=count; |
count | 47 | fs/proc/net.c | if (count < 0) |
count | 33 | fs/proc/scsi.c | char * buf, int count); |
count | 35 | fs/proc/scsi.c | const char * buf, int count); |
count | 105 | fs/proc/scsi.c | char * buf, int count) |
count | 108 | fs/proc/scsi.c | int bytes = count; |
count | 114 | fs/proc/scsi.c | if (count < -1) /* Normally I wouldn't do this, */ |
count | 121 | fs/proc/scsi.c | while(bytes > 0 || count == -1) { |
count | 123 | fs/proc/scsi.c | if(bytes > PROC_BLOCK_SIZE || count == -1) |
count | 147 | fs/proc/scsi.c | if (count != -1) |
count | 164 | fs/proc/scsi.c | const char * buf, int count) |
count | 169 | fs/proc/scsi.c | if(count > PROC_BLOCK_SIZE) { |
count | 176 | fs/proc/scsi.c | memcpy_fromfs(page, buf, count); |
count | 177 | fs/proc/scsi.c | ret = dispatch_scsi_info_ptr(inode->i_ino, page, 0, 0, count, 1); |
count | 103 | fs/read_write.c | asmlinkage int sys_read(unsigned int fd,char * buf,unsigned int count) |
count | 115 | fs/read_write.c | if (!count) |
count | 117 | fs/read_write.c | error = verify_area(VERIFY_WRITE,buf,count); |
count | 120 | fs/read_write.c | return file->f_op->read(inode,file,buf,count); |
count | 123 | fs/read_write.c | asmlinkage int sys_write(unsigned int fd,char * buf,unsigned int count) |
count | 136 | fs/read_write.c | if (!count) |
count | 138 | fs/read_write.c | error = verify_area(VERIFY_READ,buf,count); |
count | 156 | fs/read_write.c | written = file->f_op->write(inode,file,buf,count); |
count | 162 | fs/read_write.c | const struct iovec * iov, long count, long size) |
count | 174 | fs/read_write.c | msg.msg_iovlen = count; |
count | 192 | fs/read_write.c | const struct iovec * vector, unsigned long count) |
count | 203 | fs/read_write.c | if (!count) |
count | 205 | fs/read_write.c | if (count > MAX_IOVEC) |
count | 207 | fs/read_write.c | retval = verify_area(VERIFY_READ, vector, count*sizeof(*vector)); |
count | 210 | fs/read_write.c | memcpy_fromfs(iov, vector, count*sizeof(*vector)); |
count | 212 | fs/read_write.c | for (i = 0 ; i < count ; i++) { |
count | 225 | fs/read_write.c | return sock_readv_writev(type, inode, file, iov, count, tot_len); |
count | 234 | fs/read_write.c | while (count > 0) { |
count | 241 | fs/read_write.c | count--; |
count | 256 | fs/read_write.c | asmlinkage int sys_readv(unsigned long fd, const struct iovec * vector, long count) |
count | 265 | fs/read_write.c | return do_readv_writev(VERIFY_WRITE, inode, file, vector, count); |
count | 268 | fs/read_write.c | asmlinkage int sys_writev(unsigned long fd, const struct iovec * vector, long count) |
count | 279 | fs/read_write.c | error = do_readv_writev(VERIFY_READ, inode, file, vector, count); |
count | 36 | fs/readdir.c | int count; |
count | 44 | fs/readdir.c | if (buf->count) |
count | 46 | fs/readdir.c | buf->count++; |
count | 56 | fs/readdir.c | asmlinkage int old_readdir(unsigned int fd, void * dirent, unsigned int count) |
count | 69 | fs/readdir.c | buf.count = 0; |
count | 74 | fs/readdir.c | return buf.count; |
count | 91 | fs/readdir.c | int count; |
count | 102 | fs/readdir.c | if (reclen > buf->count) |
count | 115 | fs/readdir.c | buf->count -= reclen; |
count | 119 | fs/readdir.c | asmlinkage int sys_getdents(unsigned int fd, void * dirent, unsigned int count) |
count | 130 | fs/readdir.c | error = verify_area(VERIFY_WRITE, dirent, count); |
count | 135 | fs/readdir.c | buf.count = count; |
count | 144 | fs/readdir.c | return count - buf.count; |
count | 88 | fs/select.c | int count; |
count | 119 | fs/select.c | count = 0; |
count | 128 | fs/select.c | count++; |
count | 133 | fs/select.c | count++; |
count | 138 | fs/select.c | count++; |
count | 143 | fs/select.c | if (!count && current->timeout && !(current->signal & ~current->blocked)) { |
count | 150 | fs/select.c | return count; |
count | 22 | fs/smbfs/dir.c | smb_dir_read(struct inode *inode, struct file *filp, char *buf, int count); |
count | 121 | fs/smbfs/dir.c | smb_dir_read(struct inode *inode, struct file *filp, char *buf, int count) |
count | 68 | fs/smbfs/file.c | smb_file_read(struct inode *inode, struct file *file, char *buf, int count) |
count | 92 | fs/smbfs/file.c | if (pos + count > inode->i_size) |
count | 93 | fs/smbfs/file.c | count = inode->i_size - pos; |
count | 95 | fs/smbfs/file.c | if (count <= 0) |
count | 102 | fs/smbfs/file.c | while (already_read < count) { |
count | 108 | fs/smbfs/file.c | to_read = min(65535, count - already_read); |
count | 117 | fs/smbfs/file.c | to_read = min(bufsize, count - already_read); |
count | 145 | fs/smbfs/file.c | smb_file_write(struct inode *inode, struct file *file, const char *buf, int count) |
count | 164 | fs/smbfs/file.c | if (count <= 0) |
count | 183 | fs/smbfs/file.c | while (already_written < count) { |
count | 189 | fs/smbfs/file.c | to_write = min(65535, count - already_written); |
count | 198 | fs/smbfs/file.c | to_write = min(bufsize, count - already_written); |
count | 615 | fs/smbfs/proc.c | off_t offset, long count, char *data, int fs) |
count | 624 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, count); |
count | 653 | fs/smbfs/proc.c | off_t offset, long count, char *data) |
count | 658 | fs/smbfs/proc.c | if ((count <= 0) || (count > 65535)) { |
count | 666 | fs/smbfs/proc.c | WSET(buf, smb_vwv3, count); |
count | 670 | fs/smbfs/proc.c | result = smb_request_read_raw(server, data, count); |
count | 677 | fs/smbfs/proc.c | off_t offset, int count, const char *data) |
count | 683 | fs/smbfs/proc.c | p = smb_setup_header_exclusive(server, SMBwrite, 5, count + 3); |
count | 685 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, count); |
count | 690 | fs/smbfs/proc.c | WSET(p, 0, count); |
count | 691 | fs/smbfs/proc.c | memcpy_fromfs(p+2, data, count); |
count | 705 | fs/smbfs/proc.c | off_t offset, long count, const char *data) |
count | 710 | fs/smbfs/proc.c | if ((count <= 0) || (count > 65535)) { |
count | 717 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, count); |
count | 735 | fs/smbfs/proc.c | result = smb_request_write_raw(server, data, count); |
count | 951 | fs/smbfs/proc.c | word count; |
count | 1007 | fs/smbfs/proc.c | p = smb_decode_word(p, &count); /* vwv[0] = count-returned */ |
count | 1012 | fs/smbfs/proc.c | if (count <= 0) { |
count | 1016 | fs/smbfs/proc.c | if (bcc != count * SMB_DIRINFO_SIZE + 3) { |
count | 1026 | fs/smbfs/proc.c | (count - 1) * SMB_DIRINFO_SIZE, |
count | 1031 | fs/smbfs/proc.c | for (i = 0; i < count; i ++) { |
count | 97 | fs/super.c | lptr->mnt_sem.count = 1; |
count | 228 | fs/sysv/balloc.c | int count, old_count; |
count | 235 | fs/sysv/balloc.c | count = 0; |
count | 244 | fs/sysv/balloc.c | count++; |
count | 296 | fs/sysv/balloc.c | count++; |
count | 310 | fs/sysv/balloc.c | if (count != old_count) { |
count | 311 | fs/sysv/balloc.c | printk("sysv_count_free_blocks: free block count was %d, correcting to %d\n",old_count,count); |
count | 313 | fs/sysv/balloc.c | *sb->sv_sb_total_free_blocks = (sb->sv_convert ? to_coh_ulong(count) : count); |
count | 319 | fs/sysv/balloc.c | return count; |
count | 321 | fs/sysv/balloc.c | int count; |
count | 323 | fs/sysv/balloc.c | count = *sb->sv_sb_total_free_blocks; |
count | 325 | fs/sysv/balloc.c | count = from_coh_ulong(count); |
count | 326 | fs/sysv/balloc.c | return count; |
count | 24 | fs/sysv/dir.c | static int sysv_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 75 | fs/sysv/file.c | int sysv_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 101 | fs/sysv/file.c | if (left > count) |
count | 102 | fs/sysv/file.c | left = count; |
count | 202 | fs/sysv/file.c | static int sysv_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
count | 230 | fs/sysv/file.c | while (written<count) { |
count | 238 | fs/sysv/file.c | if (c > count-written) |
count | 239 | fs/sysv/file.c | c = count-written; |
count | 182 | fs/sysv/ialloc.c | int j,block,count; |
count | 185 | fs/sysv/ialloc.c | count = 0; |
count | 202 | fs/sysv/ialloc.c | count++; |
count | 205 | fs/sysv/ialloc.c | if (count != *sb->sv_sb_total_free_inodes) { |
count | 206 | fs/sysv/ialloc.c | printk("sysv_count_free_inodes: free inode count was %d, correcting to %d\n",(short)(*sb->sv_sb_total_free_inodes),count); |
count | 208 | fs/sysv/ialloc.c | *sb->sv_sb_total_free_inodes = count; |
count | 214 | fs/sysv/ialloc.c | return count; |
count | 31 | fs/umsdos/dir.c | int count) |
count | 39 | fs/umsdos/dir.c | int count; |
count | 56 | fs/umsdos/dir.c | if (d->count == 0){ |
count | 65 | fs/umsdos/dir.c | d->count = 1; |
count | 154 | fs/umsdos/dir.c | bufk.count = 0; |
count | 268 | fs/umsdos/dir.c | int count = 0; |
count | 276 | fs/umsdos/dir.c | bufk.count = 0; |
count | 278 | fs/umsdos/dir.c | if (bufk.count == 0) break; |
count | 279 | fs/umsdos/dir.c | count += bufk.count; |
count | 281 | fs/umsdos/dir.c | PRINTK (("UMSDOS_readdir out %d count %d pos %Ld\n",ret,count |
count | 283 | fs/umsdos/dir.c | return count?:ret; |
count | 30 | fs/umsdos/emd.c | int count) |
count | 35 | fs/umsdos/emd.c | ret = fat_file_read(inode,filp,buf,count); |
count | 46 | fs/umsdos/emd.c | int count) |
count | 51 | fs/umsdos/emd.c | ret = fat_file_write(inode,filp,buf,count); |
count | 67 | fs/umsdos/emd.c | int count) |
count | 71 | fs/umsdos/emd.c | written = umsdos_file_write_kmem (emd_dir,filp,buf,count); |
count | 72 | fs/umsdos/emd.c | return written != count ? -EIO : 0; |
count | 83 | fs/umsdos/emd.c | int count) |
count | 88 | fs/umsdos/emd.c | sizeread = umsdos_file_read_kmem (emd_dir,filp,buf,count); |
count | 89 | fs/umsdos/emd.c | if (sizeread != count){ |
count | 91 | fs/umsdos/emd.c | ,filp->f_pos,sizeread,count); |
count | 31 | fs/umsdos/file.c | int count) |
count | 34 | fs/umsdos/file.c | int ret = fat_file_read(inode,filp,buf,count); |
count | 48 | fs/umsdos/file.c | int count) |
count | 50 | fs/umsdos/file.c | return fat_file_write(inode,filp,buf,count); |
count | 23 | fs/umsdos/ioctl.c | int count; |
count | 39 | fs/umsdos/ioctl.c | if (d->count == 0){ |
count | 45 | fs/umsdos/ioctl.c | d->count = 1; |
count | 121 | fs/umsdos/ioctl.c | bufk.count = 0; |
count | 124 | fs/umsdos/ioctl.c | ret = bufk.count == 1 ? 1 : 0; |
count | 63 | fs/xiafs/dir.c | struct file * filp, char * buf, int count) |
count | 73 | fs/xiafs/file.c | xiafs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 92 | fs/xiafs/file.c | if (left > count) |
count | 93 | fs/xiafs/file.c | left = count; |
count | 193 | fs/xiafs/file.c | xiafs_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
count | 217 | fs/xiafs/file.c | while (written < count) { |
count | 225 | fs/xiafs/file.c | if (c > count-written) |
count | 226 | fs/xiafs/file.c | c = count-written; |
count | 270 | include/asm-alpha/dma.h | static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count) |
count | 272 | include/asm-alpha/dma.h | count--; |
count | 274 | include/asm-alpha/dma.h | dma_outb( count & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); |
count | 275 | include/asm-alpha/dma.h | dma_outb( (count>>8) & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); |
count | 277 | include/asm-alpha/dma.h | dma_outb( (count>>1) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); |
count | 278 | include/asm-alpha/dma.h | dma_outb( (count>>9) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); |
count | 297 | include/asm-alpha/dma.h | unsigned short count; |
count | 299 | include/asm-alpha/dma.h | count = 1 + dma_inb(io_port); |
count | 300 | include/asm-alpha/dma.h | count += dma_inb(io_port) << 8; |
count | 302 | include/asm-alpha/dma.h | return (dmanr<=3)? count : (count<<1); |
count | 25 | include/asm-alpha/floppy.h | #define fd_set_dma_count(count) set_dma_count(FLOPPY_DMA,count) |
count | 88 | include/asm-alpha/hwrpb.h | unsigned long count; |
count | 200 | include/asm-alpha/io.h | extern void insb (unsigned long port, void *dst, unsigned long count); |
count | 201 | include/asm-alpha/io.h | extern void insw (unsigned long port, void *dst, unsigned long count); |
count | 202 | include/asm-alpha/io.h | extern void insl (unsigned long port, void *dst, unsigned long count); |
count | 203 | include/asm-alpha/io.h | extern void outsb (unsigned long port, const void *src, unsigned long count); |
count | 204 | include/asm-alpha/io.h | extern void outsw (unsigned long port, const void *src, unsigned long count); |
count | 205 | include/asm-alpha/io.h | extern void outsl (unsigned long port, const void *src, unsigned long count); |
count | 25 | include/asm-alpha/string.h | #define memset(s, c, count) \ |
count | 27 | include/asm-alpha/string.h | __constant_c_memset((s),(0x0101010101010101UL*(unsigned char)c),(count)) : \ |
count | 28 | include/asm-alpha/string.h | __memset((s),(c),(count))) |
count | 230 | include/asm-i386/dma.h | static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count) |
count | 232 | include/asm-i386/dma.h | count--; |
count | 234 | include/asm-i386/dma.h | dma_outb( count & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); |
count | 235 | include/asm-i386/dma.h | dma_outb( (count>>8) & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); |
count | 237 | include/asm-i386/dma.h | dma_outb( (count>>1) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); |
count | 238 | include/asm-i386/dma.h | dma_outb( (count>>9) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); |
count | 257 | include/asm-i386/dma.h | unsigned short count; |
count | 259 | include/asm-i386/dma.h | count = 1 + dma_inb(io_port); |
count | 260 | include/asm-i386/dma.h | count += dma_inb(io_port) << 8; |
count | 262 | include/asm-i386/dma.h | return (dmanr<=3)? count : (count<<1); |
count | 23 | include/asm-i386/floppy.h | #define fd_set_dma_count(count) set_dma_count(FLOPPY_DMA,count) |
count | 115 | include/asm-i386/io.h | extern inline void ins##s(unsigned short port, void * addr, unsigned long count) \ |
count | 117 | include/asm-i386/io.h | : "=D" (addr), "=c" (count) : "d" (port),"0" (addr),"1" (count)); } |
count | 120 | include/asm-i386/io.h | extern inline void outs##s(unsigned short port, const void * addr, unsigned long count) \ |
count | 122 | include/asm-i386/io.h | : "=S" (addr), "=c" (count) : "d" (port),"0" (addr),"1" (count)); } |
count | 106 | include/asm-i386/pgtable.h | if (current->mm->count == 1) /* just one copy of this mm */ |
count | 118 | include/asm-i386/pgtable.h | if (mm == current->mm && mm->count == 1) |
count | 127 | include/asm-i386/pgtable.h | if (vma->vm_mm == current->mm && current->mm->count == 1) |
count | 39 | include/asm-i386/string-486.h | extern inline char * strncpy(char * dest,const char *src,size_t count) |
count | 43 | include/asm-i386/string-486.h | if (count) { |
count | 59 | include/asm-i386/string-486.h | :"=r" (src), "=r" (tmp), "=q" (dummy), "=r" (count) |
count | 60 | include/asm-i386/string-486.h | :"0" (src), "1" (tmp), "3" (count) |
count | 88 | include/asm-i386/string-486.h | extern inline char * strncat(char * dest,const char * src,size_t count) |
count | 106 | include/asm-i386/string-486.h | :"=q" (dummy), "=r" (tmp), "=r" (src), "=r" (count) |
count | 107 | include/asm-i386/string-486.h | :"1" (tmp), "2" (src), "3" (count) |
count | 137 | include/asm-i386/string-486.h | extern inline int strncmp(const char * cs,const char * ct,size_t count) |
count | 156 | include/asm-i386/string-486.h | :"=q" (__res), "=r" (cs), "=r" (ct), "=r" (count) |
count | 157 | include/asm-i386/string-486.h | :"1" (cs), "2" (ct), "3" (count)); |
count | 329 | include/asm-i386/string-486.h | extern inline size_t strnlen(const char * s, size_t count) |
count | 342 | include/asm-i386/string-486.h | :"=a" (__res):"c" (s),"d" (count)); |
count | 408 | include/asm-i386/string-486.h | #define __memcpy_c(d,s,count) \ |
count | 409 | include/asm-i386/string-486.h | ((count%4==0) ? \ |
count | 410 | include/asm-i386/string-486.h | __memcpy_by4((d),(s),(count)) : \ |
count | 411 | include/asm-i386/string-486.h | ((count%2==0) ? \ |
count | 412 | include/asm-i386/string-486.h | __memcpy_by2((d),(s),(count)) : \ |
count | 413 | include/asm-i386/string-486.h | __memcpy_g((d),(s),(count)))) |
count | 416 | include/asm-i386/string-486.h | #define memcpy(d,s,count) \ |
count | 417 | include/asm-i386/string-486.h | (__builtin_constant_p(count) ? \ |
count | 418 | include/asm-i386/string-486.h | __memcpy_c((d),(s),(count)) : \ |
count | 419 | include/asm-i386/string-486.h | __memcpy_g((d),(s),(count))) |
count | 506 | include/asm-i386/string-486.h | extern inline int memcmp(const void * cs,const void * ct,size_t count) |
count | 517 | include/asm-i386/string-486.h | :"=abd" (__res):"0" (0),"S" (cs),"D" (ct),"c" (count) |
count | 523 | include/asm-i386/string-486.h | extern inline void * memchr(const void * cs,int c,size_t count) |
count | 526 | include/asm-i386/string-486.h | if (!count) |
count | 535 | include/asm-i386/string-486.h | :"=D" (__res):"a" (c),"D" (cs),"c" (count) |
count | 540 | include/asm-i386/string-486.h | #define __memset_cc(s,c,count) \ |
count | 541 | include/asm-i386/string-486.h | ((count%4==0) ? \ |
count | 542 | include/asm-i386/string-486.h | __memset_cc_by4((s),(c),(count)) : \ |
count | 543 | include/asm-i386/string-486.h | ((count%2==0) ? \ |
count | 544 | include/asm-i386/string-486.h | __memset_cc_by2((s),(c),(count)) : \ |
count | 545 | include/asm-i386/string-486.h | __memset_cg((s),(c),(count)))) |
count | 547 | include/asm-i386/string-486.h | #define __memset_gc(s,c,count) \ |
count | 548 | include/asm-i386/string-486.h | ((count%4==0) ? \ |
count | 549 | include/asm-i386/string-486.h | __memset_gc_by4((s),(c),(count)) : \ |
count | 550 | include/asm-i386/string-486.h | ((count%2==0) ? \ |
count | 551 | include/asm-i386/string-486.h | __memset_gc_by2((s),(c),(count)) : \ |
count | 552 | include/asm-i386/string-486.h | __memset_gg((s),(c),(count)))) |
count | 555 | include/asm-i386/string-486.h | #define memset(s,c,count) \ |
count | 557 | include/asm-i386/string-486.h | (__builtin_constant_p(count) ? \ |
count | 558 | include/asm-i386/string-486.h | __memset_cc((s),(c),(count)) : \ |
count | 559 | include/asm-i386/string-486.h | __memset_cg((s),(c),(count))) : \ |
count | 560 | include/asm-i386/string-486.h | (__builtin_constant_p(count) ? \ |
count | 561 | include/asm-i386/string-486.h | __memset_gc((s),(c),(count)) : \ |
count | 562 | include/asm-i386/string-486.h | __memset_gg((s),(c),(count)))) |
count | 564 | include/asm-i386/string-486.h | extern inline void * __memset_cc_by4(void * s, char c, size_t count) |
count | 577 | include/asm-i386/string-486.h | :"q" (0x01010101UL * (unsigned char) c), "0" (tmp), "1" (count/4) |
count | 582 | include/asm-i386/string-486.h | extern inline void * __memset_cc_by2(void * s, char c, size_t count) |
count | 595 | include/asm-i386/string-486.h | :"q" (0x01010101UL * (unsigned char) c), "0" (tmp), "1" (count/2) |
count | 600 | include/asm-i386/string-486.h | extern inline void * __memset_gc_by4(void * s, char c, size_t count) |
count | 614 | include/asm-i386/string-486.h | :"0" ((unsigned) c), "1" (tmp), "2" (count/4) |
count | 619 | include/asm-i386/string-486.h | extern inline void * __memset_gc_by2(void * s, char c, size_t count) |
count | 636 | include/asm-i386/string-486.h | :"0" ((unsigned) c), "1" (tmp), "2" (count/2) |
count | 641 | include/asm-i386/string-486.h | extern inline void * __memset_cg(void * s, char c, size_t count) |
count | 652 | include/asm-i386/string-486.h | :"c" (count),"D" (tmp), "a" (0x0101U * (unsigned char) c) |
count | 657 | include/asm-i386/string-486.h | extern inline void * __memset_gg(void * s,char c,size_t count) |
count | 669 | include/asm-i386/string-486.h | :"c" (count),"D" (tmp), "a" (c) |
count | 44 | include/asm-i386/string.h | extern inline char * strncpy(char * dest,const char *src,size_t count) |
count | 58 | include/asm-i386/string.h | :"S" (src),"D" (dest),"c" (count):"si","di","ax","cx","memory"); |
count | 80 | include/asm-i386/string.h | extern inline char * strncat(char * dest,const char * src,size_t count) |
count | 97 | include/asm-i386/string.h | :"S" (src),"D" (dest),"a" (0),"c" (0xffffffff),"g" (count) |
count | 123 | include/asm-i386/string.h | extern inline int strncmp(const char * cs,const char * ct,size_t count) |
count | 140 | include/asm-i386/string.h | :"=a" (__res):"S" (cs),"D" (ct),"c" (count):"si","di","cx"); |
count | 461 | include/asm-i386/string.h | extern inline void * memchr(const void * cs,int c,size_t count) |
count | 464 | include/asm-i386/string.h | if (!count) |
count | 473 | include/asm-i386/string.h | :"=D" (__res):"a" (c),"D" (cs),"c" (count) |
count | 478 | include/asm-i386/string.h | extern inline void * __memset_generic(void * s, char c,size_t count) |
count | 485 | include/asm-i386/string.h | :"a" (c),"D" (s),"c" (count) |
count | 491 | include/asm-i386/string.h | #define __constant_count_memset(s,c,count) __memset_generic((s),(c),(count)) |
count | 498 | include/asm-i386/string.h | extern inline void * __constant_c_memset(void * s, unsigned long c, size_t count) |
count | 511 | include/asm-i386/string.h | :"a" (c), "q" (count), "c" (count/4), "D" ((long) s) |
count | 518 | include/asm-i386/string.h | extern inline size_t strnlen(const char * s, size_t count) |
count | 531 | include/asm-i386/string.h | :"=a" (__res):"c" (s),"d" (count)); |
count | 540 | include/asm-i386/string.h | extern inline void * __constant_c_and_count_memset(void * s, unsigned long pattern, size_t count) |
count | 542 | include/asm-i386/string.h | switch (count) { |
count | 564 | include/asm-i386/string.h | : "a" (pattern),"c" (count/4),"D" ((long) s) \ |
count | 567 | include/asm-i386/string.h | switch (count % 4) { |
count | 576 | include/asm-i386/string.h | #define __constant_c_x_memset(s, c, count) \ |
count | 577 | include/asm-i386/string.h | (__builtin_constant_p(count) ? \ |
count | 578 | include/asm-i386/string.h | __constant_c_and_count_memset((s),(c),(count)) : \ |
count | 579 | include/asm-i386/string.h | __constant_c_memset((s),(c),(count))) |
count | 581 | include/asm-i386/string.h | #define __memset(s, c, count) \ |
count | 582 | include/asm-i386/string.h | (__builtin_constant_p(count) ? \ |
count | 583 | include/asm-i386/string.h | __constant_count_memset((s),(c),(count)) : \ |
count | 584 | include/asm-i386/string.h | __memset_generic((s),(c),(count))) |
count | 587 | include/asm-i386/string.h | #define memset(s, c, count) \ |
count | 589 | include/asm-i386/string.h | __constant_c_x_memset((s),(0x01010101UL*(unsigned char)c),(count)) : \ |
count | 590 | include/asm-i386/string.h | __memset((s),(c),(count))) |
count | 278 | include/asm-i386/unistd.h | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
count | 59 | include/asm-m68k/string.h | extern inline int strncmp(const char * cs,const char * ct,size_t count) |
count | 63 | include/asm-m68k/string.h | if (!count) |
count | 77 | include/asm-m68k/string.h | : "=a" (cs), "=a" (ct), "=d" (count), "=d" (__res) |
count | 78 | include/asm-m68k/string.h | : "0" (cs), "1" (ct), "2" (count)); |
count | 92 | include/asm-m68k/string.h | extern inline void * memset(void * s,char c,size_t count) |
count | 96 | include/asm-m68k/string.h | if (!count) |
count | 102 | include/asm-m68k/string.h | : "=a" (s), "=d" (count) |
count | 103 | include/asm-m68k/string.h | : "0" (s), "d" (c), "1" (count) |
count | 239 | include/asm-mips/dma.h | static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count) |
count | 241 | include/asm-mips/dma.h | count--; |
count | 243 | include/asm-mips/dma.h | dma_outb( count & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); |
count | 244 | include/asm-mips/dma.h | dma_outb( (count>>8) & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); |
count | 246 | include/asm-mips/dma.h | dma_outb( (count>>1) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); |
count | 247 | include/asm-mips/dma.h | dma_outb( (count>>9) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); |
count | 266 | include/asm-mips/dma.h | unsigned short count; |
count | 268 | include/asm-mips/dma.h | count = 1 + dma_inb(io_port); |
count | 269 | include/asm-mips/dma.h | count += dma_inb(io_port) << 8; |
count | 271 | include/asm-mips/dma.h | return (dmanr<=3)? count : (count<<1); |
count | 29 | include/asm-mips/floppy.h | #define fd_set_dma_count(count) feature->fd_set_dma_count(count) |
count | 128 | include/asm-mips/io.h | extern inline void __ins##s(unsigned int port, void * addr, unsigned long count) { |
count | 144 | include/asm-mips/io.h | : "=r" (addr), "=r" (count) \ |
count | 145 | include/asm-mips/io.h | : "0" (addr), "1" (count), "i" (0), "r" (PORT_BASE+port), "I" (i) \ |
count | 148 | include/asm-mips/io.h | : "=r" (addr), "=r" (count) \ |
count | 149 | include/asm-mips/io.h | : "0" (addr), "1" (count), "ir" (port), "r" (PORT_BASE), "I" (i) \ |
count | 153 | include/asm-mips/io.h | extern inline void __outs##s(unsigned int port, const void * addr, unsigned long count) { |
count | 169 | include/asm-mips/io.h | : "=r" (addr), "=r" (count) \ |
count | 170 | include/asm-mips/io.h | : "0" (addr), "1" (count), "i" (0), "r" (PORT_BASE+port), "I" (i) \ |
count | 173 | include/asm-mips/io.h | : "=r" (addr), "=r" (count) \ |
count | 174 | include/asm-mips/io.h | : "0" (addr), "1" (count), "ir" (port), "r" (PORT_BASE), "I" (i) \ |
count | 259 | include/asm-mips/io.h | #define outsb(port,addr,count) \ |
count | 261 | include/asm-mips/io.h | __outsbc((port),(addr),(count)) : \ |
count | 262 | include/asm-mips/io.h | __outsb ((port),(addr),(count))) |
count | 264 | include/asm-mips/io.h | #define insb(port,addr,count) \ |
count | 266 | include/asm-mips/io.h | __insbc((port),(addr),(count)) : \ |
count | 267 | include/asm-mips/io.h | __insb((port),(addr),(count))) |
count | 269 | include/asm-mips/io.h | #define outsw(port,addr,count) \ |
count | 271 | include/asm-mips/io.h | __outswc((port),(addr),(count)) : \ |
count | 272 | include/asm-mips/io.h | __outsw ((port),(addr),(count))) |
count | 274 | include/asm-mips/io.h | #define insw(port,addr,count) \ |
count | 276 | include/asm-mips/io.h | __inswc((port),(addr),(count)) : \ |
count | 277 | include/asm-mips/io.h | __insw((port),(addr),(count))) |
count | 279 | include/asm-mips/io.h | #define outsl(port,addr,count) \ |
count | 281 | include/asm-mips/io.h | __outslc((port),(addr),(count)) : \ |
count | 282 | include/asm-mips/io.h | __outsl ((port),(addr),(count))) |
count | 284 | include/asm-mips/io.h | #define insl(port,addr,count) \ |
count | 286 | include/asm-mips/io.h | __inslc((port),(addr),(count)) : \ |
count | 287 | include/asm-mips/io.h | __insl((port),(addr),(count))) |
count | 24 | include/asm-mips/jazzdma.h | void vdma_set_count(int channel, int count); |
count | 226 | include/asm-mips/pgtable.h | extern inline int pte_inuse(pte_t *ptep) { return mem_map[MAP_NR(ptep)].reserved || mem_map[MAP_NR(ptep)].count != 1; } |
count | 231 | include/asm-mips/pgtable.h | mem_map[MAP_NR(ptep)].count++; |
count | 94 | include/asm-mips/string.h | extern __inline__ int strncmp(const char * cs, const char * ct, size_t count) |
count | 113 | include/asm-mips/string.h | : "=d" (cs), "=d" (ct), "=d" (count), "=d" (__res) |
count | 114 | include/asm-mips/string.h | : "0" (cs), "1" (ct), "2" (count) |
count | 121 | include/asm-mips/string.h | extern __inline__ void * memset(void * s, int c, size_t count) |
count | 125 | include/asm-mips/string.h | if (!count) |
count | 133 | include/asm-mips/string.h | : "=r" (s), "=r" (count) |
count | 134 | include/asm-mips/string.h | : "0" (s), "r" (c), "1" (s + count - 1) |
count | 1302 | include/asm-mips/unistd.h | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
count | 36 | include/asm-mips/vector.h | void (*fd_set_dma_count)(unsigned int count); |
count | 230 | include/asm-ppc/dma.h | static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count) |
count | 232 | include/asm-ppc/dma.h | count--; |
count | 234 | include/asm-ppc/dma.h | dma_outb( count & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); |
count | 235 | include/asm-ppc/dma.h | dma_outb( (count>>8) & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); |
count | 237 | include/asm-ppc/dma.h | dma_outb( (count>>1) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); |
count | 238 | include/asm-ppc/dma.h | dma_outb( (count>>9) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); |
count | 257 | include/asm-ppc/dma.h | unsigned short count; |
count | 259 | include/asm-ppc/dma.h | count = 1 + dma_inb(io_port); |
count | 260 | include/asm-ppc/dma.h | count += dma_inb(io_port) << 8; |
count | 262 | include/asm-ppc/dma.h | return (dmanr<=3)? count : (count<<1); |
count | 74 | include/asm-ppc/page.h | unsigned count:30, |
count | 207 | include/asm-ppc/pgtable.h | mem_map[MAP_NR(ptep)].count++; |
count | 13 | include/asm-ppc/string.h | extern inline void * memset(void * s,int c,size_t count) |
count | 17 | include/asm-ppc/string.h | while (count--) |
count | 272 | include/asm-ppc/unistd.h | static /*inline*/ _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
count | 27 | include/asm-sparc/checksum.h | int odd, count; |
count | 38 | include/asm-sparc/checksum.h | count = len >> 1; /* nr of 16-bit words.. */ |
count | 39 | include/asm-sparc/checksum.h | if (count) { |
count | 42 | include/asm-sparc/checksum.h | count--; |
count | 46 | include/asm-sparc/checksum.h | count >>= 1; /* nr of 32-bit words.. */ |
count | 47 | include/asm-sparc/checksum.h | if (count) { |
count | 51 | include/asm-sparc/checksum.h | count--; |
count | 57 | include/asm-sparc/checksum.h | } while (count); |
count | 48 | include/asm-sparc/fbio.h | int count; |
count | 63 | include/asm-sparc/floppy.h | #define fd_set_dma_count(count) sun_fd_set_dma_count(count) |
count | 415 | include/asm-sparc/unistd.h | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
count | 45 | include/linux/binfmts.h | char * addr, unsigned long count, int to_kmem); |
count | 90 | include/linux/cyclades.h | int count; /* # of fd on device */ |
count | 26 | include/linux/ext_fs.h | unsigned long count; |
count | 32 | include/linux/ext_fs.h | unsigned long count; |
count | 72 | include/linux/if_pppvar.h | __s32 count; /* Count of characters in bufr */ |
count | 375 | include/linux/isdn.h | int count; /* # of fd on device */ |
count | 118 | include/linux/mm.h | unsigned int count; |
count | 198 | include/linux/mm.h | extern int vread(char *buf, char *addr, int count); |
count | 70 | include/linux/nfs_fs.h | int offset, int count, char *data, |
count | 73 | include/linux/nfs_fs.h | int count, const char *data, struct nfs_fattr *fattr); |
count | 92 | include/linux/nfs_fs.h | int cookie, int count, struct nfs_entry *entry); |
count | 97 | include/linux/nfs_fs.h | unsigned long count, __u32 *buf); |
count | 61 | include/linux/pagemap.h | page->count++; |
count | 116 | include/linux/sched.h | int count; |
count | 131 | include/linux/sched.h | int count; |
count | 143 | include/linux/sched.h | int count; |
count | 167 | include/linux/sched.h | int count; |
count | 489 | include/linux/sched.h | if (sem->count <= 0) |
count | 491 | include/linux/sched.h | sem->count--; |
count | 496 | include/linux/sched.h | sem->count++; |
count | 155 | include/linux/serial.h | int count; /* # of fd on device */ |
count | 104 | include/linux/skbuff.h | int count; /* reference count */ |
count | 129 | include/linux/smb_fs.h | off_t offset, long count, char *data, int fs); |
count | 131 | include/linux/smb_fs.h | off_t offset, long count, char *data); |
count | 133 | include/linux/smb_fs.h | off_t offset, int count, const char *data); |
count | 135 | include/linux/smb_fs.h | off_t offset, long count, const char *data); |
count | 95 | include/linux/tty.h | int count; |
count | 212 | include/linux/tty.h | int count; |
count | 127 | include/linux/tty_driver.h | const unsigned char *buf, int count); |
count | 13 | include/linux/tty_flip.h | if (tty->flip.count++ >= TTY_FLIPBUF_SIZE) |
count | 37 | include/linux/tty_ldisc.h | char *fp, int count); |
count | 17 | include/linux/wait.h | int count; |
count | 38 | include/linux/wrapper.h | #define mem_map_inc_count(p) mem_map[p].count++ |
count | 39 | include/linux/wrapper.h | #define mem_map_dec_count(p) mem_map[p].count-- |
count | 117 | include/linux/xd.h | static int xd_readwrite (u_char operation,u_char drive,char *buffer,u_int block,u_int count); |
count | 121 | include/linux/xd.h | static u_char xd_setup_dma (u_char opcode,u_char *buffer,u_int count); |
count | 122 | include/linux/xd.h | static u_char *xd_build (u_char *cmdblk,u_char command,u_char drive,u_char head,u_short cylinder,u_char sector,u_char count,u_char control); |
count | 77 | include/net/netrom.h | unsigned char count; |
count | 88 | include/net/netrom.h | unsigned short count; |
count | 668 | ipc/shm.c | mem_map[MAP_NR(pte_page(pte))].count++; |
count | 767 | ipc/shm.c | mem_map[MAP_NR(pte_page(pte))].count--; |
count | 777 | ipc/shm.c | if (mem_map[MAP_NR(pte_page(page))].count != 1) |
count | 297 | kernel/exit.c | int err, retval = 0, count = 0; |
count | 305 | kernel/exit.c | ++count; |
count | 310 | kernel/exit.c | return(count ? retval : -ESRCH); |
count | 374 | kernel/exit.c | if (!--files->count) { |
count | 399 | kernel/exit.c | if (!--fs->count) { |
count | 418 | kernel/exit.c | if (!--sig->count) { |
count | 435 | kernel/exit.c | if (!--mm->count) { |
count | 119 | kernel/fork.c | current->mm->count++; |
count | 126 | kernel/fork.c | tsk->mm->count = 1; |
count | 143 | kernel/fork.c | current->fs->count++; |
count | 149 | kernel/fork.c | tsk->fs->count = 1; |
count | 163 | kernel/fork.c | current->files->count++; |
count | 169 | kernel/fork.c | tsk->files->count = 1; |
count | 184 | kernel/fork.c | current->sig->count++; |
count | 190 | kernel/fork.c | tsk->sig->count = 1; |
count | 63 | kernel/printk.c | unsigned long i, j, count; |
count | 116 | kernel/printk.c | count = len; |
count | 117 | kernel/printk.c | if (count > LOG_BUF_LEN) |
count | 118 | kernel/printk.c | count = LOG_BUF_LEN; |
count | 119 | kernel/printk.c | if (count > logged_chars) |
count | 120 | kernel/printk.c | count = logged_chars; |
count | 121 | kernel/printk.c | j = log_start + log_size - count; |
count | 122 | kernel/printk.c | for (i = 0; i < count; i++) { |
count | 479 | kernel/sched.c | while (sem->count <= 0) { |
count | 662 | kernel/sched.c | static int count = LOAD_FREQ; |
count | 664 | kernel/sched.c | count -= ticks; |
count | 665 | kernel/sched.c | if (count < 0) { |
count | 666 | kernel/sched.c | count += LOAD_FREQ; |
count | 49 | kernel/sysctl.c | char * buf, int count); |
count | 51 | kernel/sysctl.c | const char * buf, int count); |
count | 451 | kernel/sysctl.c | char * buf, int count) |
count | 458 | kernel/sysctl.c | error = verify_area(write ? VERIFY_READ : VERIFY_WRITE, buf, count); |
count | 472 | kernel/sysctl.c | res = count; |
count | 480 | kernel/sysctl.c | char * buf, int count) |
count | 482 | kernel/sysctl.c | return do_rw_proc(0, inode, file, buf, count); |
count | 486 | kernel/sysctl.c | const char * buf, int count) |
count | 488 | kernel/sysctl.c | return do_rw_proc(1, inode, file, (char *) buf, count); |
count | 31 | lib/string.c | char * strncpy(char * dest,const char *src,size_t count) |
count | 35 | lib/string.c | while (count-- && (*dest++ = *src++) != '\0') |
count | 57 | lib/string.c | char * strncat(char *dest, const char *src, size_t count) |
count | 61 | lib/string.c | if (count) { |
count | 65 | lib/string.c | if (--count == 0) { |
count | 91 | lib/string.c | int strncmp(const char * cs,const char * ct,size_t count) |
count | 95 | lib/string.c | while (count) { |
count | 98 | lib/string.c | count--; |
count | 127 | lib/string.c | size_t strnlen(const char * s, size_t count) |
count | 131 | lib/string.c | for (sc = s; count-- && *sc != '\0'; ++sc) |
count | 142 | lib/string.c | size_t count = 0; |
count | 150 | lib/string.c | return count; |
count | 151 | lib/string.c | ++count; |
count | 154 | lib/string.c | return count; |
count | 196 | lib/string.c | void * memset(void * s,char c,size_t count) |
count | 200 | lib/string.c | while (count--) |
count | 208 | lib/string.c | char * bcopy(const char * src, char * dest, int count) |
count | 212 | lib/string.c | while (count--) |
count | 220 | lib/string.c | void * memcpy(void * dest,const void *src,size_t count) |
count | 224 | lib/string.c | while (count--) |
count | 232 | lib/string.c | void * memmove(void * dest,const void *src,size_t count) |
count | 239 | lib/string.c | while (count--) |
count | 243 | lib/string.c | tmp = (char *) dest + count; |
count | 244 | lib/string.c | s = (char *) src + count; |
count | 245 | lib/string.c | while (count--) |
count | 254 | lib/string.c | int memcmp(const void * cs,const void * ct,size_t count) |
count | 259 | lib/string.c | for( su1 = cs, su2 = ct; 0 < count; ++su1, ++su2, count--) |
count | 145 | mm/filemap.c | if (page->count > 1) |
count | 149 | mm/filemap.c | else if (page->count) { |
count | 181 | mm/filemap.c | int count = p->count; |
count | 183 | mm/filemap.c | if (count != 2) |
count | 184 | mm/filemap.c | return count; |
count | 186 | mm/filemap.c | return count; |
count | 197 | mm/filemap.c | void update_vm_cache(struct inode * inode, unsigned long pos, const char * buf, int count) |
count | 207 | mm/filemap.c | if (len > count) |
count | 208 | mm/filemap.c | len = count; |
count | 218 | mm/filemap.c | count -= len; |
count | 223 | mm/filemap.c | } while (count); |
count | 246 | mm/filemap.c | page->count--; |
count | 253 | mm/filemap.c | page->count++; |
count | 276 | mm/filemap.c | page->count++; |
count | 285 | mm/filemap.c | page->count--; |
count | 299 | mm/filemap.c | int generic_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 304 | mm/filemap.c | if (count <= 0) |
count | 350 | mm/filemap.c | if (nr > count) |
count | 351 | mm/filemap.c | nr = count; |
count | 363 | mm/filemap.c | max_ahead = count - nr; |
count | 385 | mm/filemap.c | count -= nr; |
count | 386 | mm/filemap.c | if (count) |
count | 398 | mm/filemap.c | page->count++; |
count | 454 | mm/filemap.c | page->count++; |
count | 603 | mm/filemap.c | mem_map[page].count++; |
count | 625 | mm/filemap.c | mem_map[MAP_NR(page)].count++; |
count | 203 | mm/kmalloc.c | static int count = 0; |
count | 204 | mm/kmalloc.c | if (++count < 5) { |
count | 208 | mm/memory.c | mem_map[page_nr].count++; |
count | 551 | mm/memory.c | if (mem_map[MAP_NR(page)].count != 1) |
count | 625 | mm/memory.c | if (mem_map[MAP_NR(old_page)].count != 1) { |
count | 884 | mm/memory.c | if (mem_map[MAP_NR(pte_page(page))].count > 1 && !(vma->vm_flags & VM_SHARED)) |
count | 949 | mm/memory.c | } else if (mem_map[MAP_NR(page)].count > 1 && !(vma->vm_flags & VM_SHARED)) |
count | 289 | mm/mmap.c | static inline void avl_rebalance (struct vm_area_struct *** nodeplaces_ptr, int count) |
count | 291 | mm/mmap.c | for ( ; count > 0 ; count--) { |
count | 134 | mm/page_alloc.c | if (map->count) { |
count | 138 | mm/page_alloc.c | if (!--map->count) { |
count | 143 | mm/page_alloc.c | if (map->count == 1) |
count | 189 | mm/page_alloc.c | map->count = 1; \ |
count | 201 | mm/page_alloc.c | static int count = 0; |
count | 202 | mm/page_alloc.c | if (++count < 5) { |
count | 66 | mm/page_io.c | page->count++; |
count | 327 | mm/vmalloc.c | int vread(char *buf, char *addr, int count) |
count | 336 | mm/vmalloc.c | if (count == 0) |
count | 338 | mm/vmalloc.c | put_user('\0', buf++), addr++, count--; |
count | 344 | mm/vmalloc.c | if (count == 0) |
count | 346 | mm/vmalloc.c | put_user(*addr++, buf++), count--; |
count | 108 | mm/vmscan.c | if (page_map->count != 1) |
count | 123 | mm/vmscan.c | if (page_map->count != 1) { |
count | 724 | net/ax25/af_ax25.c | int count = 0; |
count | 728 | net/ax25/af_ax25.c | count++; |
count | 733 | net/ax25/af_ax25.c | return count; |
count | 123 | net/ax25/ax25_route.c | int count; |
count | 125 | net/ax25/ax25_route.c | count = 0; |
count | 129 | net/ax25/ax25_route.c | if (count == 0 || oldest->stamp.tv_sec == 0 || (ax25_rt->stamp.tv_sec != 0 && ax25_rt->stamp.tv_sec < oldest->stamp.tv_sec)) |
count | 158 | net/ax25/ax25_route.c | count++; |
count | 161 | net/ax25/ax25_route.c | if (count > AX25_ROUTE_MAX) { |
count | 485 | net/ax25/ax25_subr.c | int count = 0; |
count | 501 | net/ax25/ax25_subr.c | count++; |
count | 506 | net/ax25/ax25_subr.c | return count; |
count | 654 | net/core/skbuff.c | static int count = 0; |
count | 655 | net/core/skbuff.c | if (++count < 5) { |
count | 690 | net/core/skbuff.c | skb->count = 1; /* only one reference to this */ |
count | 727 | net/core/skbuff.c | if (--skb->count <= 0) { |
count | 741 | net/core/skbuff.c | if (--skb->count <= 0) { |
count | 767 | net/core/skbuff.c | n->count = 1; |
count | 770 | net/core/skbuff.c | atomic_inc(&skb->count); |
count | 366 | net/ipv4/arp.c | int count = 0; |
count | 377 | net/ipv4/arp.c | count += hh->hh_refcnt-1; |
count | 381 | net/ipv4/arp.c | return count; |
count | 335 | net/ipv4/ip_fragment.c | int count, len; |
count | 360 | net/ipv4/ip_fragment.c | count = 0; |
count | 366 | net/ipv4/ip_fragment.c | if(count+fp->len > skb->len) |
count | 375 | net/ipv4/ip_fragment.c | count += fp->len; |
count | 385 | net/ipv4/ip_fragment.c | iph->tot_len = htons((iph->ihl * 4) + count); |
count | 821 | net/ipv4/tcp.c | static int count = 0; |
count | 822 | net/ipv4/tcp.c | if (++count < 10) { |
count | 70 | net/netlink.c | static int netlink_write(struct inode * inode, struct file * file, const char * buf, int count) |
count | 74 | net/netlink.c | skb=alloc_skb(count, GFP_KERNEL); |
count | 76 | net/netlink.c | memcpy_fromfs(skb_put(skb,count),buf, count); |
count | 84 | net/netlink.c | static int netlink_read(struct inode * inode, struct file * file, char * buf, int count) |
count | 105 | net/netlink.c | if(skb->len<count) |
count | 106 | net/netlink.c | count=skb->len; |
count | 107 | net/netlink.c | memcpy_tofs(buf,skb->data,count); |
count | 109 | net/netlink.c | return count; |
count | 96 | net/netrom/nr_route.c | nr_neigh->count = 0; |
count | 124 | net/netrom/nr_route.c | nr_node->count = 1; |
count | 138 | net/netrom/nr_route.c | nr_neigh->count++; |
count | 143 | net/netrom/nr_route.c | for (found = 0, i = 0; i < nr_node->count; i++) { |
count | 154 | net/netrom/nr_route.c | if (nr_node->count < 3) { |
count | 162 | net/netrom/nr_route.c | nr_node->count++; |
count | 163 | net/netrom/nr_route.c | nr_neigh->count++; |
count | 171 | net/netrom/nr_route.c | nr_neigh->count++; |
count | 177 | net/netrom/nr_route.c | switch (nr_node->count) { |
count | 214 | net/netrom/nr_route.c | for (i = 0; i < nr_node->count; i++) { |
count | 309 | net/netrom/nr_route.c | for (i = 0; i < nr_node->count; i++) { |
count | 311 | net/netrom/nr_route.c | nr_neigh->count--; |
count | 313 | net/netrom/nr_route.c | if (nr_neigh->count == 0 && !nr_neigh->locked) |
count | 316 | net/netrom/nr_route.c | nr_node->count--; |
count | 318 | net/netrom/nr_route.c | if (nr_node->count == 0) { |
count | 362 | net/netrom/nr_route.c | nr_neigh->count = 0; |
count | 393 | net/netrom/nr_route.c | if (nr_neigh->count == 0) |
count | 416 | net/netrom/nr_route.c | for (i = 0; i < s->count; i++) { |
count | 430 | net/netrom/nr_route.c | t->count--; |
count | 432 | net/netrom/nr_route.c | if (t->count == 0 && !t->locked) |
count | 439 | net/netrom/nr_route.c | s->count--; |
count | 458 | net/netrom/nr_route.c | if (s->count <= 0) |
count | 485 | net/netrom/nr_route.c | for (i = 0; i < t->count; i++) { |
count | 487 | net/netrom/nr_route.c | t->count--; |
count | 500 | net/netrom/nr_route.c | if (t->count <= 0) |
count | 640 | net/netrom/nr_route.c | if (nr_node->which >= nr_node->count && nr_node->routes[nr_node->which].neighbour == nr_neigh->number) |
count | 684 | net/netrom/nr_route.c | if (nr_node == NULL || nr_node->which >= nr_node->count) |
count | 728 | net/netrom/nr_route.c | nr_node->count); |
count | 730 | net/netrom/nr_route.c | for (i = 0; i < nr_node->count; i++) { |
count | 779 | net/netrom/nr_route.c | nr_neigh->count); |