tag | line | file | source code |
count | 172 | arch/alpha/boot/main.c | static inline long load(long dev, unsigned long addr, unsigned long count) |
count | 184 | 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 | 67 | arch/alpha/kernel/osf_sys.c | int count; |
count | 78 | arch/alpha/kernel/osf_sys.c | if (reclen > buf->count) |
count | 92 | arch/alpha/kernel/osf_sys.c | buf->count -= reclen; |
count | 97 | arch/alpha/kernel/osf_sys.c | unsigned int count, long *basep) |
count | 107 | arch/alpha/kernel/osf_sys.c | error = verify_area(VERIFY_WRITE, dirent, count); |
count | 117 | arch/alpha/kernel/osf_sys.c | buf.count = count; |
count | 122 | arch/alpha/kernel/osf_sys.c | if (count == buf.count) |
count | 124 | arch/alpha/kernel/osf_sys.c | return count - buf.count; |
count | 144 | arch/alpha/kernel/setup.c | unsigned long count, va, pc; |
count | 185 | arch/alpha/kernel/setup.c | unaligned[0].count, unaligned[0].pc, unaligned[0].va, |
count | 186 | arch/alpha/kernel/setup.c | unaligned[1].count, unaligned[1].pc, unaligned[1].va); |
count | 141 | arch/alpha/kernel/traps.c | unsigned long count, va, pc; |
count | 160 | arch/alpha/kernel/traps.c | ++unaligned[0].count; |
count | 221 | 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 | 72 | arch/alpha/mm/init.c | else if (!mem_map[i].count) |
count | 75 | arch/alpha/mm/init.c | shared += mem_map[i].count-1; |
count | 172 | arch/alpha/mm/init.c | mem_map[MAP_NR(tmp)].count = 1; |
count | 193 | arch/alpha/mm/init.c | if (!mem_map[i].count) |
count | 195 | 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 | 111 | arch/i386/kernel/smp.c | int count=sizeof(*mpc); |
count | 113 | arch/i386/kernel/smp.c | unsigned char *mpt=((unsigned char *)mpc)+count; |
count | 146 | arch/i386/kernel/smp.c | while(count<mpc->mpc_length) |
count | 186 | arch/i386/kernel/smp.c | count+=sizeof(*m); |
count | 199 | arch/i386/kernel/smp.c | count+=sizeof(*m); |
count | 215 | arch/i386/kernel/smp.c | count+=sizeof(*m); |
count | 224 | arch/i386/kernel/smp.c | count+=sizeof(*m); |
count | 232 | arch/i386/kernel/smp.c | count+=sizeof(*m); |
count | 119 | arch/i386/kernel/time.c | int count; |
count | 124 | arch/i386/kernel/time.c | count = inb_p(0x40); /* read the latched count */ |
count | 125 | arch/i386/kernel/time.c | count |= inb(0x40) << 8; |
count | 127 | arch/i386/kernel/time.c | if (count > (LATCH - LATCH/100)) { |
count | 133 | arch/i386/kernel/time.c | count = ((LATCH-1) - count) * TICK_SIZE; |
count | 134 | arch/i386/kernel/time.c | count = (count + LATCH/2) / LATCH; |
count | 135 | arch/i386/kernel/time.c | return offset + count; |
count | 85 | arch/i386/mm/init.c | else if (!mem_map[i].count) |
count | 88 | arch/i386/mm/init.c | shared += mem_map[i].count-1; |
count | 248 | arch/i386/mm/init.c | mem_map[MAP_NR(tmp)].count = 1; |
count | 284 | arch/i386/mm/init.c | if (!mem_map[i].count) |
count | 286 | arch/i386/mm/init.c | val->sharedram += mem_map[i].count-1; |
count | 140 | arch/ppc/mm/init.c | else if (!mem_map[i].count) |
count | 143 | arch/ppc/mm/init.c | shared += mem_map[i].count-1; |
count | 253 | 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 | 339 | arch/sparc/kernel/sys_sunos.c | int count; |
count | 354 | arch/sparc/kernel/sys_sunos.c | if (reclen > buf->count) |
count | 368 | arch/sparc/kernel/sys_sunos.c | buf->count -= reclen; |
count | 390 | arch/sparc/kernel/sys_sunos.c | buf.count = cnt; |
count | 399 | arch/sparc/kernel/sys_sunos.c | return cnt - buf.count; |
count | 74 | arch/sparc/mm/init.c | else if (!mem_map[i].count) |
count | 77 | arch/sparc/mm/init.c | shared += mem_map[i].count-1; |
count | 181 | arch/sparc/mm/init.c | mem_map[MAP_NR(addr)].count = 1; |
count | 223 | arch/sparc/mm/init.c | if (!mem_map[i].count) |
count | 225 | arch/sparc/mm/init.c | val->sharedram += mem_map[i].count-1; |
count | 59 | arch/sparc/mm/srmmu.c | int srmmu_pte_inuse(pte_t *ptep) { return mem_map[MAP_NR(ptep)].reserved || mem_map[MAP_NR(ptep)].count != 1; } |
count | 64 | arch/sparc/mm/srmmu.c | mem_map[MAP_NR(ptep)].count++; |
count | 75 | arch/sparc/mm/srmmu.c | int srmmu_pmd_inuse(pmd_t *pmdp) { return mem_map[MAP_NR(pmdp)].reserved || mem_map[MAP_NR(pmdp)].count != 1; } |
count | 80 | arch/sparc/mm/srmmu.c | mem_map[MAP_NR(pmdp)].count++; |
count | 95 | arch/sparc/mm/srmmu.c | mem_map[MAP_NR(pgdp)].count++; |
count | 68 | arch/sparc/mm/sun4c.c | int sun4c_pte_inuse(pte_t *ptep) { return mem_map[MAP_NR(ptep)].reserved || mem_map[MAP_NR(ptep)].count != 1; } |
count | 73 | arch/sparc/mm/sun4c.c | mem_map[MAP_NR(ptep)].count++; |
count | 1973 | drivers/block/floppy.c | int count,head_shift,track_shift; |
count | 2008 | drivers/block/floppy.c | for (count = 0; count < F_SECT_PER_TRACK; ++count) { |
count | 2009 | drivers/block/floppy.c | here[count].track = format_req.track; |
count | 2010 | drivers/block/floppy.c | here[count].head = format_req.head; |
count | 2011 | drivers/block/floppy.c | here[count].sect = 0; |
count | 2012 | drivers/block/floppy.c | here[count].size = F_SIZECODE; |
count | 2015 | drivers/block/floppy.c | for (count = 1; count <= F_SECT_PER_TRACK; ++count) { |
count | 2016 | drivers/block/floppy.c | here[n].sect = count; |
count | 3363 | drivers/block/floppy.c | char * buf, int count) |
count | 3370 | drivers/block/floppy.c | return block_read(inode, filp, buf, count); |
count | 3374 | drivers/block/floppy.c | const char * buf, int count) |
count | 3387 | drivers/block/floppy.c | block = (filp->f_pos + count) >> 9; |
count | 3389 | drivers/block/floppy.c | ret= block_write(inode, filp, buf, count); |
count | 301 | drivers/block/ll_rw_blk.c | unsigned int sector, count; |
count | 320 | drivers/block/ll_rw_blk.c | count = bh->b_size >> 9; |
count | 321 | drivers/block/ll_rw_blk.c | sector = bh->b_blocknr * count; |
count | 323 | drivers/block/ll_rw_blk.c | if (blk_size[major][MINOR(bh->b_dev)] < (sector + count)>>1) { |
count | 375 | drivers/block/ll_rw_blk.c | req->nr_sectors += count; |
count | 384 | drivers/block/ll_rw_blk.c | req->sector - count == sector && |
count | 387 | drivers/block/ll_rw_blk.c | req->nr_sectors += count; |
count | 390 | drivers/block/ll_rw_blk.c | req->current_nr_sectors = count; |
count | 419 | drivers/block/ll_rw_blk.c | req->nr_sectors = count; |
count | 420 | drivers/block/ll_rw_blk.c | req->current_nr_sectors = count; |
count | 163 | drivers/block/triton.c | unsigned int count = 0; |
count | 192 | drivers/block/triton.c | if (++count >= PRD_ENTRIES) { |
count | 206 | 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 | 1524 | drivers/cdrom/aztcd.c | { long int count, max_count; |
count | 1552 | drivers/cdrom/aztcd.c | for (count=0;count<10000;count++); /*delay a bit*/ |
count | 1583 | drivers/cdrom/aztcd.c | for (count=0;count<50;count++) |
count | 1597 | drivers/cdrom/aztcd.c | for (count = 0; count < AZT_TIMEOUT; count++); |
count | 1598 | drivers/cdrom/aztcd.c | { count=count*2; /* delay a bit */ |
count | 1599 | drivers/cdrom/aztcd.c | count=count/2; |
count | 1619 | drivers/cdrom/aztcd.c | for (count=1;count<50;count++) /*Reading version string*/ |
count | 1626 | drivers/cdrom/aztcd.c | result[count]=inb(DATA_PORT); |
count | 1628 | drivers/cdrom/aztcd.c | if (count>30) max_count=30; /*print max.30 chars of the version string*/ |
count | 1629 | drivers/cdrom/aztcd.c | else max_count=count; |
count | 1631 | drivers/cdrom/aztcd.c | for (count=1;count<max_count;count++) printk("%c",result[count]); |
count | 1649 | 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 | 945 | drivers/cdrom/mcd.c | int count= QUICK_LOOP_COUNT; |
count | 946 | drivers/cdrom/mcd.c | while (count--) { |
count | 951 | drivers/cdrom/mcd.c | printk(" %d ",QUICK_LOOP_COUNT-count); |
count | 1165 | drivers/cdrom/mcd.c | int count; |
count | 1194 | drivers/cdrom/mcd.c | for (count = 0; count < 2000000; count++) |
count | 1198 | drivers/cdrom/mcd.c | for (count = 0; count < 2000000; count++) |
count | 1202 | drivers/cdrom/mcd.c | if (count >= 2000000) { |
count | 1207 | drivers/cdrom/mcd.c | count = inb(MCDPORT(0)); /* pick up the status */ |
count | 1210 | drivers/cdrom/mcd.c | for(count=0;count<3;count++) |
count | 1211 | drivers/cdrom/mcd.c | if(getValue(result+count)) { |
count | 1400 | drivers/cdrom/mcd.c | int count; |
count | 1403 | drivers/cdrom/mcd.c | for (count = 0; count < 2000; count++) |
count | 1407 | drivers/cdrom/mcd.c | if (count >= 2000) |
count | 134 | drivers/cdrom/optcd.c | unsigned long count = 0; |
count | 136 | drivers/cdrom/optcd.c | if (++count >= BUSY_TIMEOUT) |
count | 142 | drivers/cdrom/optcd.c | printk("optcd: STEN low after %ld\n", count); |
count | 150 | drivers/cdrom/optcd.c | unsigned long count = 0; |
count | 152 | drivers/cdrom/optcd.c | if (++count >= BUSY_TIMEOUT) |
count | 158 | drivers/cdrom/optcd.c | printk("optcd: DTEN low after %ld\n", count); |
count | 334 | drivers/cdrom/optcd.c | unsigned long count = 0; |
count | 340 | drivers/cdrom/optcd.c | while (++count < RESET_WAIT) |
count | 342 | drivers/cdrom/optcd.c | count = 0; |
count | 344 | drivers/cdrom/optcd.c | if (++count >= BUSY_TIMEOUT) |
count | 571 | drivers/cdrom/optcd.c | int st, count, px, limit; |
count | 577 | drivers/cdrom/optcd.c | for (count = 0; count < MAX_TRACKS; count++) |
count | 578 | drivers/cdrom/optcd.c | Toc[count].pointIndex = 0; |
count | 582 | drivers/cdrom/optcd.c | count = DiskInfo.last + 3; |
count | 583 | drivers/cdrom/optcd.c | for (limit = 300; (limit > 0) && (count > 0); limit--) { |
count | 590 | drivers/cdrom/optcd.c | count--; |
count | 621 | drivers/cdrom/optcd.c | return count ? -ERR_TOC_MISSINGENTRY : 0; |
count | 1346 | drivers/cdrom/optcd.c | int count, i, ch; |
count | 1350 | drivers/cdrom/optcd.c | if ((count = optGetData()) < 0) |
count | 1352 | drivers/cdrom/optcd.c | for (i = 0, ch = -1; count > 0; count--) { |
count | 2488 | drivers/cdrom/sbpcd.c | for (count=D_S[d].first_session;count<zwanzig;count++) |
count | 2493 | drivers/cdrom/sbpcd.c | drvcmd[3]=count; |
count | 2498 | drivers/cdrom/sbpcd.c | D_S[d].msf_multi_n[count]=make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7])); |
count | 2825 | drivers/cdrom/sbpcd.c | static int cc_SubChanInfo(int frame, int count, u_char *buffer) |
count | 2843 | drivers/cdrom/sbpcd.c | drvcmd[5]=(count>>8)&0xFF; |
count | 2844 | drivers/cdrom/sbpcd.c | drvcmd[6]=count&0xFF; |
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 | 157 | drivers/char/busmouse.c | static int write_mouse(struct inode * inode, struct file * file, const char * buffer, int count) |
count | 166 | drivers/char/busmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
count | 173 | drivers/char/busmouse.c | if (count < 3) |
count | 175 | drivers/char/busmouse.c | if ((r = verify_area(VERIFY_WRITE, buffer, count))) |
count | 207 | drivers/char/busmouse.c | for (r = 3; r < count; r++) |
count | 526 | drivers/char/console.c | int count ; |
count | 533 | drivers/char/console.c | count = (video_num_lines-1)*video_num_columns; |
count | 534 | drivers/char/console.c | while (count) { |
count | 535 | drivers/char/console.c | count--; |
count | 594 | drivers/char/console.c | unsigned int count; |
count | 596 | drivers/char/console.c | count = (video_num_lines-1)*video_num_columns; |
count | 597 | drivers/char/console.c | while (count) { |
count | 598 | drivers/char/console.c | count--; |
count | 601 | drivers/char/console.c | count = video_num_columns; |
count | 602 | drivers/char/console.c | while (count) { |
count | 603 | drivers/char/console.c | count--; |
count | 614 | drivers/char/console.c | unsigned int count; |
count | 617 | drivers/char/console.c | count = video_num_columns; |
count | 618 | drivers/char/console.c | while (count) { |
count | 619 | drivers/char/console.c | count--; |
count | 629 | drivers/char/console.c | unsigned int count = (b-t-1) * video_num_columns; |
count | 631 | drivers/char/console.c | while (count) { |
count | 632 | drivers/char/console.c | count--; |
count | 635 | drivers/char/console.c | count = video_num_columns; |
count | 636 | drivers/char/console.c | while (count) { |
count | 637 | drivers/char/console.c | count--; |
count | 647 | drivers/char/console.c | unsigned int count; |
count | 653 | drivers/char/console.c | count = (b-t-1)*video_num_columns; |
count | 654 | drivers/char/console.c | while (count) { |
count | 655 | drivers/char/console.c | count--; |
count | 658 | drivers/char/console.c | count = video_num_columns; |
count | 659 | drivers/char/console.c | while (count) { |
count | 660 | drivers/char/console.c | count--; |
count | 716 | drivers/char/console.c | unsigned long count; |
count | 721 | drivers/char/console.c | count = (scr_end-pos)>>1; |
count | 725 | drivers/char/console.c | count = ((pos-origin)>>1)+1; |
count | 729 | drivers/char/console.c | count = video_num_columns * video_num_lines; |
count | 735 | drivers/char/console.c | while (count) { |
count | 736 | drivers/char/console.c | count--; |
count | 744 | drivers/char/console.c | unsigned long count; |
count | 749 | drivers/char/console.c | count = video_num_columns-x; |
count | 754 | drivers/char/console.c | count = x+1; |
count | 758 | drivers/char/console.c | count = video_num_columns; |
count | 763 | drivers/char/console.c | while (count) { |
count | 764 | drivers/char/console.c | count--; |
count | 772 | drivers/char/console.c | unsigned long count; |
count | 779 | drivers/char/console.c | count = (vpar > video_num_columns-x) ? (video_num_columns-x) : vpar; |
count | 781 | drivers/char/console.c | while (count) { |
count | 782 | drivers/char/console.c | count--; |
count | 972 | drivers/char/console.c | void invert_screen(int currcons, int offset, int count, int viewed) |
count | 976 | drivers/char/console.c | count /= 2; |
count | 979 | drivers/char/console.c | while (count--) { |
count | 985 | drivers/char/console.c | while (count--) { |
count | 1358 | drivers/char/console.c | const unsigned char *buf, int count) |
count | 1379 | drivers/char/console.c | while (!tty->stopped && count) { |
count | 1381 | drivers/char/console.c | buf++; n++; count--; |
count | 715 | drivers/char/cyclades.c | if (tty->flip.count < TTY_FLIPBUF_SIZE){ |
count | 716 | drivers/char/cyclades.c | tty->flip.count++; |
count | 744 | drivers/char/cyclades.c | if(tty->flip.count < TTY_FLIPBUF_SIZE){ |
count | 745 | drivers/char/cyclades.c | tty->flip.count++; |
count | 779 | drivers/char/cyclades.c | if (tty->flip.count >= TTY_FLIPBUF_SIZE){ |
count | 782 | drivers/char/cyclades.c | tty->flip.count++; |
count | 1612 | drivers/char/cyclades.c | const unsigned char *buf, int count) |
count | 1632 | drivers/char/cyclades.c | c = MIN(count, MIN(SERIAL_XMIT_SIZE - info->xmit_cnt - 1, |
count | 1652 | drivers/char/cyclades.c | count -= c; |
count | 2325 | drivers/char/cyclades.c | printk("cy_close ttyC%d, count = %d\n", info->line, info->count); |
count | 2336 | drivers/char/cyclades.c | if ((tty->count == 1) && (info->count != 1)) { |
count | 2345 | drivers/char/cyclades.c | "info->count is %d\n", info->count); |
count | 2346 | drivers/char/cyclades.c | info->count = 1; |
count | 2349 | drivers/char/cyclades.c | printk("cyc: %d(%d): decrementing count to %d\n", __LINE__, current->pid, info->count - 1); |
count | 2351 | drivers/char/cyclades.c | if (--info->count < 0) { |
count | 2355 | drivers/char/cyclades.c | info->count = 0; |
count | 2357 | drivers/char/cyclades.c | if (info->count) |
count | 2419 | drivers/char/cyclades.c | info->count = 0; |
count | 2505 | drivers/char/cyclades.c | info->line, info->count);/**/ |
count | 2507 | drivers/char/cyclades.c | info->count--; |
count | 2509 | drivers/char/cyclades.c | printk("cyc: %d(%d): decrementing count to %d\n", __LINE__, current->pid, info->count); |
count | 2560 | drivers/char/cyclades.c | info->line, info->count);/**/ |
count | 2567 | drivers/char/cyclades.c | info->count++; |
count | 2569 | drivers/char/cyclades.c | printk("cyc: %d(%d): incrementing count to %d\n", __LINE__, current->pid, info->count); |
count | 2575 | drivers/char/cyclades.c | info->line, info->count);/**/ |
count | 2609 | drivers/char/cyclades.c | printk("cy_open ttyC%d, count = %d\n", info->line, info->count);/**/ |
count | 2611 | drivers/char/cyclades.c | info->count++; |
count | 2613 | drivers/char/cyclades.c | printk("cyc: %d(%d): incrementing count to %d\n", __LINE__, current->pid, info->count); |
count | 2625 | drivers/char/cyclades.c | if ((info->count == 1) && (info->flags & ASYNC_SPLIT_TERMIOS)) { |
count | 2885 | drivers/char/cyclades.c | info->count = 0; |
count | 3150 | drivers/char/cyclades.c | info->close_delay, info->event, info->count); |
count | 584 | drivers/char/istallion.c | static int stli_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count); |
count | 603 | drivers/char/istallion.c | static int stli_memread(struct inode *ip, struct file *fp, char *buf, int count); |
count | 604 | drivers/char/istallion.c | static int stli_memwrite(struct inode *ip, struct file *fp, const char *buf, int count); |
count | 1379 | drivers/char/istallion.c | static int stli_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count) |
count | 1391 | 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 | 1427 | drivers/char/istallion.c | count = MIN(len, count); |
count | 1431 | drivers/char/istallion.c | memcpy_fromfs(stli_tmpwritebuf, chbuf, count); |
count | 1457 | drivers/char/istallion.c | len = MIN(len, count); |
count | 1458 | drivers/char/istallion.c | count = 0; |
count | 1466 | drivers/char/istallion.c | count += stlen; |
count | 1489 | drivers/char/istallion.c | return(count); |
count | 1537 | drivers/char/istallion.c | unsigned int len, stlen, head, tail, size, count, cooksize; |
count | 1586 | drivers/char/istallion.c | count = 0; |
count | 1595 | drivers/char/istallion.c | count += stlen; |
count | 2275 | drivers/char/istallion.c | len = MIN(len, (TTY_FLIPBUF_SIZE - tty->flip.count)); |
count | 2284 | drivers/char/istallion.c | tty->flip.count += stlen; |
count | 2460 | drivers/char/istallion.c | if (tty->flip.count < TTY_FLIPBUF_SIZE) { |
count | 2461 | drivers/char/istallion.c | tty->flip.count++; |
count | 3832 | drivers/char/istallion.c | static int stli_memread(struct inode *ip, struct file *fp, char *buf, int count) |
count | 3840 | drivers/char/istallion.c | printk("stli_memread(ip=%x,fp=%x,buf=%x,count=%d)\n", (int) ip, (int) fp, (int) buf, count); |
count | 3852 | drivers/char/istallion.c | size = MIN(count, (brdp->memsize - fp->f_pos)); |
count | 3868 | drivers/char/istallion.c | return(count); |
count | 3879 | drivers/char/istallion.c | static int stli_memwrite(struct inode *ip, struct file *fp, const char *buf, int count) |
count | 3888 | drivers/char/istallion.c | printk("stli_memwrite(ip=%x,fp=%x,buf=%x,count=%x)\n", (int) ip, (int) fp, (int) buf, count); |
count | 3901 | drivers/char/istallion.c | size = MIN(count, (brdp->memsize - fp->f_pos)); |
count | 3917 | drivers/char/istallion.c | return(count); |
count | 69 | drivers/char/lp.c | unsigned long count = 0; |
count | 74 | drivers/char/lp.c | count ++; |
count | 77 | drivers/char/lp.c | } while(!LP_READY(minor,status) && count < LP_CHAR(minor)); |
count | 79 | drivers/char/lp.c | if (count == LP_CHAR(minor)) { |
count | 95 | drivers/char/lp.c | if (count > stats->maxwait) { |
count | 97 | drivers/char/lp.c | printk(KERN_DEBUG "lp%d success after %d counts.\n",minor,count); |
count | 99 | drivers/char/lp.c | stats->maxwait = count; |
count | 101 | drivers/char/lp.c | count *= 256; |
count | 102 | drivers/char/lp.c | wait = (count > stats->meanwait)? count - stats->meanwait : |
count | 103 | drivers/char/lp.c | stats->meanwait - count; |
count | 104 | drivers/char/lp.c | stats->meanwait = (255*stats->meanwait + count + 128) / 256; |
count | 113 | drivers/char/lp.c | unsigned long count = 0; |
count | 134 | drivers/char/lp.c | if (count) { |
count | 135 | drivers/char/lp.c | if (count > stats->maxwait) |
count | 136 | drivers/char/lp.c | stats->maxwait = count; |
count | 137 | drivers/char/lp.c | count *= 256; |
count | 138 | drivers/char/lp.c | wait = (count > stats->meanwait)? count - stats->meanwait : |
count | 139 | drivers/char/lp.c | stats->meanwait - count; |
count | 140 | drivers/char/lp.c | stats->meanwait = (255*stats->meanwait + count + 128) / 256; |
count | 145 | drivers/char/lp.c | } while (count++ < LP_CHAR(minor)); |
count | 162 | drivers/char/lp.c | static inline int lp_write_interrupt(unsigned int minor, const char * buf, int count) |
count | 172 | drivers/char/lp.c | copy_size = (count <= LP_BUFFER_SIZE ? count : LP_BUFFER_SIZE); |
count | 224 | drivers/char/lp.c | count -= bytes_written; |
count | 226 | drivers/char/lp.c | } while (count > 0); |
count | 231 | drivers/char/lp.c | static inline int lp_write_polled(unsigned int minor, const char * buf, int count) |
count | 238 | drivers/char/lp.c | while (count > 0) { |
count | 243 | drivers/char/lp.c | count--; temp++; |
count | 297 | drivers/char/lp.c | static int lp_write(struct inode * inode, struct file * file, const char * buf, int count) |
count | 306 | drivers/char/lp.c | return lp_write_interrupt(minor, buf, count); |
count | 308 | drivers/char/lp.c | return lp_write_polled(minor, buf, count); |
count | 562 | drivers/char/lp.c | int count = 0; |
count | 586 | drivers/char/lp.c | count++; |
count | 589 | drivers/char/lp.c | if (count) |
count | 597 | drivers/char/lp.c | count += ret; |
count | 599 | drivers/char/lp.c | if (count == 0) |
count | 29 | drivers/char/mem.c | static int read_ram(struct inode * inode, struct file * file, char * buf, int count) |
count | 34 | drivers/char/mem.c | static int write_ram(struct inode * inode, struct file * file, const char * buf, int count) |
count | 39 | drivers/char/mem.c | static int read_mem(struct inode * inode, struct file * file, char * buf, int count) |
count | 45 | drivers/char/mem.c | if (count < 0) |
count | 49 | drivers/char/mem.c | if (count > high_memory - p) |
count | 50 | drivers/char/mem.c | count = high_memory - p; |
count | 53 | drivers/char/mem.c | while (p < PAGE_OFFSET + PAGE_SIZE && count > 0) { |
count | 57 | drivers/char/mem.c | count--; |
count | 61 | drivers/char/mem.c | memcpy_tofs(buf, (void *) p, count); |
count | 62 | drivers/char/mem.c | read += count; |
count | 67 | drivers/char/mem.c | static int write_mem(struct inode * inode, struct file * file, const char * buf, int count) |
count | 73 | drivers/char/mem.c | if (count < 0) |
count | 77 | drivers/char/mem.c | if (count > high_memory - p) |
count | 78 | drivers/char/mem.c | count = high_memory - p; |
count | 81 | drivers/char/mem.c | while (PAGE_OFFSET + p < PAGE_SIZE && count > 0) { |
count | 85 | drivers/char/mem.c | count--; |
count | 89 | drivers/char/mem.c | memcpy_fromfs((void *) p, buf, count); |
count | 90 | drivers/char/mem.c | written += count; |
count | 92 | drivers/char/mem.c | return count; |
count | 116 | drivers/char/mem.c | static int read_kmem(struct inode *inode, struct file *file, char *buf, int count) |
count | 120 | drivers/char/mem.c | read1 = read_mem(inode, file, buf, count); |
count | 123 | drivers/char/mem.c | read2 = vread(buf + read1, (char *) ((unsigned long) file->f_pos), count - read1); |
count | 130 | drivers/char/mem.c | static int read_port(struct inode * inode, struct file * file,char * buf, int count) |
count | 135 | drivers/char/mem.c | while (count-- > 0 && i < 65536) { |
count | 144 | drivers/char/mem.c | static int write_port(struct inode * inode, struct file * file, const char * buf, int count) |
count | 149 | drivers/char/mem.c | while (count-- > 0 && i < 65536) { |
count | 158 | drivers/char/mem.c | static int read_null(struct inode * node, struct file * file, char * buf, int count) |
count | 163 | drivers/char/mem.c | static int write_null(struct inode * inode, struct file * file, const char * buf, int count) |
count | 165 | drivers/char/mem.c | return count; |
count | 168 | drivers/char/mem.c | static int read_zero(struct inode * node, struct file * file, char * buf, int count) |
count | 172 | drivers/char/mem.c | for (left = count; left > 0; left--) { |
count | 176 | drivers/char/mem.c | return count; |
count | 188 | drivers/char/mem.c | static int read_full(struct inode * node, struct file * file, char * buf,int count) |
count | 190 | drivers/char/mem.c | return count; |
count | 193 | 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 | 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 | 212 | drivers/char/pty.c | if (!tty->link->count) |
count | 241 | drivers/char/random.c | const char * buffer, int count); |
count | 645 | drivers/char/random.c | int count = 0; |
count | 670 | drivers/char/random.c | count += n; |
count | 679 | drivers/char/random.c | return (count ? count : retval); |
count | 703 | drivers/char/random.c | const char * buffer, int count) |
count | 708 | drivers/char/random.c | for (i = count, p = (__u32 *)buffer; |
count | 721 | drivers/char/random.c | return count; |
count | 161 | drivers/char/scc.c | int scc_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count); |
count | 1556 | drivers/char/scc.c | while(tty->flip.count < TTY_FLIPBUF_SIZE-3) |
count | 2140 | drivers/char/scc.c | int scc_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count) |
count | 2146 | drivers/char/scc.c | if (!tty) return count; |
count | 2151 | drivers/char/scc.c | if (scc->kiss.tx_inhibit) return count; |
count | 2155 | drivers/char/scc.c | cnt2 = count; |
count | 2180 | 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 | 181 | drivers/char/selection.h | static inline void memsetw(void * s, unsigned short c, unsigned int count) |
count | 185 | drivers/char/selection.h | count /= 2; |
count | 186 | drivers/char/selection.h | while (count) { |
count | 187 | drivers/char/selection.h | count--; |
count | 193 | drivers/char/selection.h | unsigned int count) |
count | 195 | drivers/char/selection.h | count /= 2; |
count | 196 | drivers/char/selection.h | while (count) { |
count | 197 | drivers/char/selection.h | count--; |
count | 385 | drivers/char/serial.c | if (tty->flip.count >= TTY_FLIPBUF_SIZE) |
count | 387 | drivers/char/serial.c | tty->flip.count++; |
count | 413 | drivers/char/serial.c | int count; |
count | 429 | drivers/char/serial.c | count = info->xmit_fifo_size; |
count | 435 | drivers/char/serial.c | } while (--count > 0); |
count | 1295 | drivers/char/serial.c | const unsigned char *buf, int count) |
count | 1310 | drivers/char/serial.c | c = MIN(count, MIN(SERIAL_XMIT_SIZE - info->xmit_cnt - 1, |
count | 1328 | drivers/char/serial.c | count -= c; |
count | 1509 | drivers/char/serial.c | if ((change_port || change_irq) && (info->count > 1)) |
count | 1653 | drivers/char/serial.c | if (info->count > 1) |
count | 2013 | drivers/char/serial.c | printk("rs_close ttys%d, count = %d\n", info->line, info->count); |
count | 2015 | drivers/char/serial.c | if ((tty->count == 1) && (info->count != 1)) { |
count | 2024 | drivers/char/serial.c | "info->count is %d\n", info->count); |
count | 2025 | drivers/char/serial.c | info->count = 1; |
count | 2027 | drivers/char/serial.c | if (--info->count < 0) { |
count | 2029 | drivers/char/serial.c | info->line, info->count); |
count | 2030 | drivers/char/serial.c | info->count = 0; |
count | 2032 | drivers/char/serial.c | if (info->count) { |
count | 2119 | drivers/char/serial.c | info->count = 0; |
count | 2203 | drivers/char/serial.c | info->line, info->count); |
count | 2205 | drivers/char/serial.c | info->count--; |
count | 2238 | drivers/char/serial.c | info->line, info->count); |
count | 2245 | drivers/char/serial.c | info->count++; |
count | 2249 | drivers/char/serial.c | info->line, info->count); |
count | 2277 | drivers/char/serial.c | info->count); |
count | 2279 | drivers/char/serial.c | info->count++; |
count | 2305 | drivers/char/serial.c | if ((info->count == 1) && (info->flags & ASYNC_SPLIT_TERMIOS)) { |
count | 2655 | drivers/char/serial.c | info->count = 0; |
count | 2720 | drivers/char/serial.c | (rs_table[i].count == 0)) |
count | 2728 | drivers/char/serial.c | if (rs_table[i].count) { |
count | 460 | drivers/char/stallion.c | static int stl_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count); |
count | 894 | drivers/char/stallion.c | static int stl_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count) |
count | 903 | 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 | 926 | drivers/char/stallion.c | count = MIN(len, count); |
count | 931 | drivers/char/stallion.c | memcpy_fromfs(stl_tmpwritebuf, chbuf, count); |
count | 947 | drivers/char/stallion.c | len = MIN(len, count); |
count | 948 | drivers/char/stallion.c | count = 0; |
count | 954 | drivers/char/stallion.c | count += stlen; |
count | 966 | drivers/char/stallion.c | return(count); |
count | 1651 | drivers/char/stallion.c | ((buflen = TTY_FLIPBUF_SIZE - tty->flip.count) == 0)) { |
count | 1662 | drivers/char/stallion.c | tty->flip.count += len; |
count | 1691 | drivers/char/stallion.c | if (tty->flip.count < TTY_FLIPBUF_SIZE) { |
count | 1694 | drivers/char/stallion.c | tty->flip.count++; |
count | 1921 | drivers/char/tpqic02.c | static int qic02_tape_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 1937 | drivers/char/tpqic02.c | MINOR(dev), buf, count, (unsigned long) filp->f_pos, flags); |
count | 1939 | drivers/char/tpqic02.c | if (count % TAPE_BLKSIZE) { /* Only allow mod 512 bytes at a time. */ |
count | 1951 | drivers/char/tpqic02.c | error = verify_area(VERIFY_WRITE, buf, count); |
count | 1958 | drivers/char/tpqic02.c | while (count>=0) { |
count | 1962 | drivers/char/tpqic02.c | if (bytes_todo>count) |
count | 1963 | drivers/char/tpqic02.c | bytes_todo = count; |
count | 2059 | drivers/char/tpqic02.c | count -= bytes_done; |
count | 2096 | drivers/char/tpqic02.c | static int qic02_tape_write(struct inode * inode, struct file * filp, const char * buf, int count) |
count | 2111 | drivers/char/tpqic02.c | MINOR(dev), buf, count, (unsigned long) filp->f_pos, flags); |
count | 2113 | drivers/char/tpqic02.c | if (count % TAPE_BLKSIZE) { /* only allow mod 512 bytes at a time */ |
count | 2133 | drivers/char/tpqic02.c | error = verify_area(VERIFY_READ, buf, count); |
count | 2140 | drivers/char/tpqic02.c | while (count>=0) { |
count | 2144 | drivers/char/tpqic02.c | if (bytes_todo>count) |
count | 2145 | drivers/char/tpqic02.c | bytes_todo = count; |
count | 2226 | drivers/char/tpqic02.c | count -= bytes_done; |
count | 2231 | 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 | 167 | drivers/char/tty_io.c | int i, count = 0; |
count | 173 | drivers/char/tty_io.c | count++; |
count | 178 | drivers/char/tty_io.c | tty->link && tty->link->count) |
count | 179 | drivers/char/tty_io.c | count++; |
count | 180 | drivers/char/tty_io.c | if (tty->count != count) { |
count | 182 | drivers/char/tty_io.c | kdevname(tty->device), tty->count, count, routine); |
count | 183 | drivers/char/tty_io.c | return count; |
count | 296 | drivers/char/tty_io.c | static int hung_up_tty_read(struct inode * inode, struct file * file, char * buf, int count) |
count | 301 | drivers/char/tty_io.c | static int hung_up_tty_write(struct inode * inode, struct file * file, const char * buf, int count) |
count | 699 | drivers/char/tty_io.c | static int tty_read(struct inode * inode, struct file * file, char * buf, int count) |
count | 728 | drivers/char/tty_io.c | i = (tty->ldisc.read)(tty,file,(unsigned char *)buf,(unsigned int)count); |
count | 736 | drivers/char/tty_io.c | static int tty_write(struct inode * inode, struct file * file, const char * buf, int count) |
count | 764 | drivers/char/tty_io.c | i = (tty->ldisc.write)(tty,file,(const unsigned char *)buf,(unsigned int)count); |
count | 805 | drivers/char/tty_io.c | *tty_loc && (*tty_loc)->count) |
count | 883 | drivers/char/tty_io.c | (*tty_loc)->count++; |
count | 887 | drivers/char/tty_io.c | (*tty_loc)->count--; |
count | 900 | drivers/char/tty_io.c | (*tty_loc)->count++; |
count | 919 | drivers/char/tty_io.c | (*tty_loc)->count--; |
count | 929 | drivers/char/tty_io.c | (*o_tty_loc)->count++; |
count | 1001 | drivers/char/tty_io.c | tty->count); |
count | 1040 | drivers/char/tty_io.c | if (--tty->link->count < 0) { |
count | 1042 | drivers/char/tty_io.c | tty->count, tty_name(tty)); |
count | 1043 | drivers/char/tty_io.c | tty->link->count = 0; |
count | 1046 | drivers/char/tty_io.c | if (--tty->count < 0) { |
count | 1048 | drivers/char/tty_io.c | tty->count, tty_name(tty)); |
count | 1049 | drivers/char/tty_io.c | tty->count = 0; |
count | 1051 | drivers/char/tty_io.c | if (tty->count) |
count | 1058 | drivers/char/tty_io.c | if (o_tty->count) |
count | 1649 | drivers/char/tty_io.c | int count; |
count | 1668 | drivers/char/tty_io.c | count = tty->flip.count; |
count | 1669 | drivers/char/tty_io.c | tty->flip.count = 0; |
count | 1673 | drivers/char/tty_io.c | if (count > tty->max_flip_cnt) |
count | 1674 | drivers/char/tty_io.c | tty->max_flip_cnt = count; |
count | 1676 | 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 | 33 | drivers/char/vt.c | #define VT_IS_IN_USE(i) (console_driver.table[i] && console_driver.table[i]->count) |
count | 156 | drivers/char/vt.c | kd_mksound(unsigned int count, unsigned int ticks) |
count | 162 | drivers/char/vt.c | if (count) { |
count | 168 | drivers/char/vt.c | outb_p(count & 0xff, 0x42); |
count | 169 | drivers/char/vt.c | outb((count >> 8) & 0xff, 0x42); |
count | 33 | drivers/char/vt_kern.h | void kd_mksound(unsigned int count, unsigned int ticks); |
count | 75 | drivers/net/3c503.c | static void el2_block_output(struct device *dev, int count, |
count | 77 | drivers/net/3c503.c | static void el2_block_input(struct device *dev, int count, struct sk_buff *skb, |
count | 428 | drivers/net/3c503.c | el2_block_output(struct device *dev, int count, |
count | 442 | drivers/net/3c503.c | memcpy_toio(dest_addr, buf, count); |
count | 456 | drivers/net/3c503.c | for(i = 0; i < count; i++) { |
count | 461 | drivers/net/3c503.c | dev->name, i, count, boguscount); |
count | 499 | drivers/net/3c503.c | el2_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset) |
count | 508 | drivers/net/3c503.c | if (dev->mem_start + ring_offset + count > end_of_ring) { |
count | 512 | drivers/net/3c503.c | count -= semi_count; |
count | 513 | drivers/net/3c503.c | memcpy_fromio(skb->data + semi_count, dev->rmem_start, count); |
count | 516 | drivers/net/3c503.c | eth_io_copy_and_sum(skb, dev->mem_start + ring_offset, count, 0); |
count | 528 | drivers/net/3c503.c | for(i = 0; i < count; i++) { |
count | 533 | drivers/net/3c503.c | dev->name, i, count, boguscount); |
count | 445 | drivers/net/8390.c | pkt_len = rx_frame.count - sizeof(struct e8390_pkt_hdr); |
count | 465 | drivers/net/8390.c | dev->name, rx_frame.count, rx_frame.status, |
count | 492 | 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 | 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 | 313 | drivers/net/e2100.c | e21_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset) |
count | 321 | drivers/net/e2100.c | eth_io_copy_and_sum(skb, dev->mem_start + (ring_offset & 0xff), count, 0); |
count | 327 | drivers/net/e2100.c | e21_block_output(struct device *dev, int count, const unsigned char *buf, |
count | 338 | 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 | 102 | drivers/net/ne.c | static void ne_block_input(struct device *dev, int count, |
count | 104 | drivers/net/ne.c | static void ne_block_output(struct device *dev, const int count, |
count | 448 | drivers/net/ne.c | ne_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset) |
count | 451 | drivers/net/ne.c | int xfer_count = count; |
count | 466 | drivers/net/ne.c | outb_p(count & 0xff, nic_base + EN0_RCNTLO); |
count | 467 | drivers/net/ne.c | outb_p(count >> 8, nic_base + EN0_RCNTHI); |
count | 472 | drivers/net/ne.c | insw(NE_BASE + NE_DATAPORT,buf,count>>1); |
count | 473 | drivers/net/ne.c | if (count & 0x01) { |
count | 474 | drivers/net/ne.c | buf[count-1] = inb(NE_BASE + NE_DATAPORT); |
count | 480 | drivers/net/ne.c | insb(NE_BASE + NE_DATAPORT, buf, count); |
count | 510 | drivers/net/ne.c | ne_block_output(struct device *dev, int count, |
count | 522 | drivers/net/ne.c | if (ei_status.word16 && (count & 0x01)) |
count | 523 | drivers/net/ne.c | count++; |
count | 560 | drivers/net/ne.c | outb_p(count & 0xff, nic_base + EN0_RCNTLO); |
count | 561 | drivers/net/ne.c | outb_p(count >> 8, nic_base + EN0_RCNTHI); |
count | 567 | drivers/net/ne.c | outsw(NE_BASE + NE_DATAPORT, buf, count>>1); |
count | 569 | drivers/net/ne.c | outsb(NE_BASE + NE_DATAPORT, buf, count); |
count | 583 | drivers/net/ne.c | if ((start_page << 8) + count == addr) |
count | 589 | drivers/net/ne.c | dev->name, (start_page << 8) + count, addr); |
count | 160 | drivers/net/ppp.c | #define ins_char(pbuf,c) (buf_base(pbuf) [(pbuf)->count++] = (u_char)(c)) |
count | 194 | drivers/net/ppp.c | #define dev_alloc_skb(count) alloc_skb(count, GFP_ATOMIC) |
count | 195 | drivers/net/ppp.c | #define skb_put(skb,count) skb_data(skb) |
count | 243 | drivers/net/ppp.c | char *fp, int count); |
count | 589 | drivers/net/ppp.c | buf->count = 0; |
count | 933 | drivers/net/ppp.c | register int count, actual; |
count | 947 | drivers/net/ppp.c | count = xbuf->count - xbuf->tail; |
count | 949 | drivers/net/ppp.c | buf_base (xbuf) + xbuf->tail, count); |
count | 956 | drivers/net/ppp.c | actual = count; |
count | 963 | drivers/net/ppp.c | if (actual == count) { |
count | 1116 | drivers/net/ppp.c | char *flags, int count) |
count | 1145 | drivers/net/ppp.c | ppp_print_buffer ("receive buffer", data, count); |
count | 1150 | drivers/net/ppp.c | while (count-- > 0) { |
count | 1191 | drivers/net/ppp.c | ppp->stats.ppp_ibytes += ppp->rbuf->count; |
count | 1205 | drivers/net/ppp.c | buf->count = 0; |
count | 1230 | drivers/net/ppp.c | if (buf->count < buf->size) { |
count | 1231 | drivers/net/ppp.c | buf_base (buf)[buf->count++] = chr; |
count | 1251 | drivers/net/ppp.c | ppp_rcv_rx (struct ppp *ppp, unsigned short proto, u_char * data, int count) |
count | 1253 | drivers/net/ppp.c | sk_buff *skb = dev_alloc_skb (count); |
count | 1269 | drivers/net/ppp.c | skb->len = count; |
count | 1274 | drivers/net/ppp.c | memcpy (skb_put(skb,count), data, count); /* move data */ |
count | 1289 | drivers/net/ppp.c | rcv_proto_ip (struct ppp *ppp, unsigned short proto, u_char * data, int count) |
count | 1292 | drivers/net/ppp.c | if (count > 0) |
count | 1293 | drivers/net/ppp.c | return ppp_rcv_rx (ppp, htons (ETH_P_IP), data, count); |
count | 1303 | drivers/net/ppp.c | rcv_proto_ipx (struct ppp *ppp, unsigned short proto, u_char * data, int count) |
count | 1307 | drivers/net/ppp.c | if (count > 0) |
count | 1308 | drivers/net/ppp.c | return ppp_rcv_rx (ppp, htons (ETH_P_IPX), data, count); |
count | 1320 | drivers/net/ppp.c | u_char *data, int count) |
count | 1323 | drivers/net/ppp.c | int new_count = slhc_uncompress (ppp->slcomp, data, count); |
count | 1340 | drivers/net/ppp.c | u_char *data, int count) |
count | 1343 | drivers/net/ppp.c | if (slhc_remember (ppp->slcomp, data, count) > 0) { |
count | 1344 | drivers/net/ppp.c | return rcv_proto_ip (ppp, PPP_IP, data, count); |
count | 1573 | drivers/net/ppp.c | static void ppp_doframe_lower (struct ppp *ppp, u_char *data, int count) |
count | 1580 | drivers/net/ppp.c | if (count <= 4) |
count | 1587 | drivers/net/ppp.c | ppp_print_buffer ("receive frame", data, count); |
count | 1600 | drivers/net/ppp.c | count - PPP_HARD_HDR_LEN)) |
count | 1601 | drivers/net/ppp.c | ppp->stats.ppp_ioctects += count; |
count | 1613 | drivers/net/ppp.c | int count = ppp->rbuf->count; |
count | 1633 | drivers/net/ppp.c | if (count == 0) |
count | 1638 | drivers/net/ppp.c | if (count < PPP_HARD_HDR_LEN) { |
count | 1641 | drivers/net/ppp.c | "ppp: got runt ppp frame, %d chars\n", count); |
count | 1658 | drivers/net/ppp.c | count -= 2; /* ignore the fcs characters */ |
count | 1667 | drivers/net/ppp.c | count -= 2; |
count | 1675 | drivers/net/ppp.c | --count; |
count | 1686 | drivers/net/ppp.c | count += 3; |
count | 1705 | drivers/net/ppp.c | count); |
count | 1713 | drivers/net/ppp.c | count, |
count | 1750 | drivers/net/ppp.c | count); |
count | 1755 | drivers/net/ppp.c | ppp_doframe_lower (ppp, data, count); |
count | 1937 | drivers/net/ppp.c | if ((buf->count < 0) || (buf->count > 3000)) |
count | 1939 | drivers/net/ppp.c | (unsigned int) buf->count, |
count | 1963 | drivers/net/ppp.c | u_char *data, int count, int non_ip) |
count | 1971 | drivers/net/ppp.c | buf->count = 0; |
count | 2005 | drivers/net/ppp.c | count -= 4; |
count | 2007 | drivers/net/ppp.c | while (count-- > 0) |
count | 2028 | drivers/net/ppp.c | buf->count); |
count | 2033 | drivers/net/ppp.c | buf->count); |
count | 2038 | drivers/net/ppp.c | ppp->stats.ppp_obytes += buf->count; |
count | 2051 | drivers/net/ppp.c | u_char *data, int count) |
count | 2061 | drivers/net/ppp.c | ppp_print_buffer ("write frame", data, count); |
count | 2076 | drivers/net/ppp.c | new_data = kmalloc (count, GFP_ATOMIC); |
count | 2087 | drivers/net/ppp.c | count, |
count | 2088 | drivers/net/ppp.c | count); |
count | 2109 | drivers/net/ppp.c | ppp->stats.ppp_ooctects += count; |
count | 2113 | drivers/net/ppp.c | ppp_dev_xmit_lower (ppp, buf, data, count, !!(proto & 0xFF00)); |
count | 2163 | drivers/net/ppp.c | unsigned int count) |
count | 2181 | drivers/net/ppp.c | if (count > PPP_MTU) { |
count | 2185 | drivers/net/ppp.c | "from %u to mtu %d\n", count, PPP_MTU); |
count | 2186 | drivers/net/ppp.c | count = PPP_MTU; |
count | 2191 | drivers/net/ppp.c | new_data = kmalloc (count, GFP_KERNEL); |
count | 2222 | drivers/net/ppp.c | status = verify_area (VERIFY_READ, data, count); |
count | 2229 | drivers/net/ppp.c | memcpy_fromfs (new_data, data, count); |
count | 2233 | drivers/net/ppp.c | count = send_revise_frame (ppp, new_data, count); |
count | 2237 | drivers/net/ppp.c | ppp_dev_xmit_frame (ppp, ppp->tbuf, new_data, count); |
count | 2239 | drivers/net/ppp.c | return (int) count; |
count | 3379 | drivers/net/ppp.c | ppp_print_hex (register u_char * out, const u_char * in, int count) |
count | 3384 | drivers/net/ppp.c | while (count-- > 0) { |
count | 3393 | drivers/net/ppp.c | ppp_print_char (register u_char * out, const u_char * in, int count) |
count | 3397 | drivers/net/ppp.c | while (count-- > 0) { |
count | 3412 | drivers/net/ppp.c | ppp_print_buffer (const u_char * name, const u_char * buf, int count) |
count | 3417 | drivers/net/ppp.c | printk (KERN_DEBUG "ppp: %s, count = %d\n", name, count); |
count | 3419 | drivers/net/ppp.c | while (count > 8) { |
count | 3424 | drivers/net/ppp.c | count -= 8; |
count | 3428 | drivers/net/ppp.c | if (count > 0) { |
count | 3430 | drivers/net/ppp.c | ppp_print_hex (line, buf, count); |
count | 3431 | drivers/net/ppp.c | ppp_print_char (&line[8 * 3], buf, count); |
count | 340 | drivers/net/slip.c | int count; |
count | 342 | drivers/net/slip.c | count = sl->rcount; |
count | 353 | drivers/net/slip.c | if (count + 80 > sl->buffsize) { |
count | 357 | drivers/net/slip.c | count = slhc_uncompress(sl->slcomp, sl->rbuff, count); |
count | 358 | drivers/net/slip.c | if (count <= 0) { |
count | 369 | drivers/net/slip.c | if (slhc_remember(sl->slcomp, sl->rbuff, count) <= 0) { |
count | 376 | drivers/net/slip.c | skb = dev_alloc_skb(count); |
count | 383 | drivers/net/slip.c | memcpy(skb_put(skb,count), sl->rbuff, count); |
count | 398 | drivers/net/slip.c | int actual, count; |
count | 425 | drivers/net/slip.c | count = slip_esc6(p, (unsigned char *) sl->xbuff, len); |
count | 428 | drivers/net/slip.c | count = slip_esc(p, (unsigned char *) sl->xbuff, len); |
count | 439 | drivers/net/slip.c | actual = sl->tty->driver.write(sl->tty, 0, sl->xbuff, count); |
count | 443 | drivers/net/slip.c | sl->xleft = count - actual; |
count | 679 | drivers/net/slip.c | slip_receive_buf(struct tty_struct *tty, const unsigned char *cp, char *fp, int count) |
count | 699 | 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 | 281 | drivers/net/smc-ultra.c | ultra_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset) |
count | 288 | drivers/net/smc-ultra.c | if (xfer_start + count > dev->rmem_end) { |
count | 292 | drivers/net/smc-ultra.c | count -= semi_count; |
count | 293 | drivers/net/smc-ultra.c | memcpy_fromio(skb->data + semi_count, dev->rmem_start, count); |
count | 296 | drivers/net/smc-ultra.c | eth_io_copy_and_sum(skb, xfer_start, count, 0); |
count | 303 | drivers/net/smc-ultra.c | ultra_block_output(struct device *dev, int count, const unsigned char *buf, |
count | 311 | drivers/net/smc-ultra.c | memcpy_toio(shmem, buf, 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 | 364 | drivers/net/wd.c | wd_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset) |
count | 369 | drivers/net/wd.c | if (xfer_start + count > dev->rmem_end) { |
count | 373 | drivers/net/wd.c | count -= semi_count; |
count | 374 | drivers/net/wd.c | memcpy_fromio(skb->data + semi_count, dev->rmem_start, count); |
count | 377 | drivers/net/wd.c | eth_io_copy_and_sum(skb, xfer_start, count, 0); |
count | 386 | drivers/net/wd.c | wd_block_output(struct device *dev, int count, const unsigned char *buf, |
count | 396 | drivers/net/wd.c | memcpy_toio(shmem, buf, count); |
count | 399 | 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 | 991 | drivers/scsi/53c7,8xx.c | int count; /* Number of boards detected */ |
count | 997 | drivers/scsi/53c7,8xx.c | for (current_override = count = 0; current_override < OVERRIDE_LIMIT; |
count | 1015 | drivers/scsi/53c7,8xx.c | ++count; |
count | 1027 | drivers/scsi/53c7,8xx.c | ++count, ++pci_index); |
count | 1029 | drivers/scsi/53c7,8xx.c | return count; |
count | 2155 | drivers/scsi/53c7,8xx.c | char *buf,int count) { |
count | 2168 | drivers/scsi/53c7,8xx.c | if (error = verify_area(VERIFY_READ,buf,count)) |
count | 2171 | drivers/scsi/53c7,8xx.c | if (count > 80) |
count | 2174 | drivers/scsi/53c7,8xx.c | memcpy_from_fs(input_buf, buf, count); |
count | 2176 | drivers/scsi/53c7,8xx.c | if (input_buf[count - 1] != '\n') |
count | 2179 | drivers/scsi/53c7,8xx.c | input_buf[count - 1]=0; |
count | 2203 | drivers/scsi/53c7,8xx.c | return count; |
count | 2207 | drivers/scsi/53c7,8xx.c | char *buf,int count) { |
count | 2605 | drivers/scsi/53c7,8xx.c | u32 count = cmd->use_sg ? |
count | 2611 | drivers/scsi/53c7,8xx.c | << 24) | count; |
count | 2625 | drivers/scsi/53c7,8xx.c | | count; |
count | 957 | drivers/scsi/53c7,8xx.h | u32 count; |
count | 1466 | drivers/scsi/NCR5380.c | unsigned char *phase, int *count, unsigned char **data) { |
count | 1469 | drivers/scsi/NCR5380.c | register int c = *count; |
count | 1570 | drivers/scsi/NCR5380.c | *count = c; |
count | 1606 | drivers/scsi/NCR5380.c | unsigned char *phase, int *count, unsigned char **data) { |
count | 1608 | drivers/scsi/NCR5380.c | register int c = *count; |
count | 1765 | drivers/scsi/NCR5380.c | *count -= c; |
count | 1777 | drivers/scsi/NCR5380.c | *count -= 1; |
count | 1787 | drivers/scsi/NCR5380.c | *count -= toPIO - cnt; |
count | 1793 | drivers/scsi/NCR5380.c | *data, *count, *(*data+*count-1), *(*data+*count)); |
count | 1883 | drivers/scsi/NCR5380.c | *count = 0; |
count | 296 | drivers/scsi/NCR5380.h | unsigned char *phase, int *count, unsigned char **data); |
count | 299 | drivers/scsi/NCR5380.h | unsigned char *phase, int *count, unsigned char **data); |
count | 303 | drivers/scsi/NCR5380.h | unsigned char *ptr, unsigned int count, unsigned char mode) { |
count | 307 | drivers/scsi/NCR5380.h | if (count > 65536) |
count | 308 | drivers/scsi/NCR5380.h | count = 65536; |
count | 311 | drivers/scsi/NCR5380.h | if (count > 65536 * 2) |
count | 312 | drivers/scsi/NCR5380.h | count = 65536 * 2; |
count | 316 | drivers/scsi/NCR5380.h | if (count > limit) count = limit; |
count | 318 | drivers/scsi/NCR5380.h | if ((count & 1) || (((unsigned) ptr) & 1)) |
count | 324 | drivers/scsi/NCR5380.h | set_dma_count(instance->dma_channel, count); |
count | 328 | drivers/scsi/NCR5380.h | return count; |
count | 332 | drivers/scsi/NCR5380.h | unsigned char *src, unsigned int count) { |
count | 333 | drivers/scsi/NCR5380.h | return NCR5380_i386_dma_setup (instance, src, count, DMA_MODE_WRITE); |
count | 337 | drivers/scsi/NCR5380.h | unsigned char *src, unsigned int count) { |
count | 338 | drivers/scsi/NCR5380.h | return NCR5380_i386_dma_setup (instance, src, count, DMA_MODE_READ); |
count | 101 | drivers/scsi/NCR53c406a.c | #define LOAD_DMA_COUNT(count) \ |
count | 102 | drivers/scsi/NCR53c406a.c | outb(count & 0xff, TC_LSB); \ |
count | 103 | drivers/scsi/NCR53c406a.c | outb((count >> 8) & 0xff, TC_MSB); \ |
count | 104 | drivers/scsi/NCR53c406a.c | outb((count >> 16) & 0xff, TC_HIGH); |
count | 288 | drivers/scsi/NCR53c406a.c | unsigned int count, |
count | 293 | drivers/scsi/NCR53c406a.c | VDEB(printk("dma: before count=%d ", count)); |
count | 295 | drivers/scsi/NCR53c406a.c | if (count > 65536) |
count | 296 | drivers/scsi/NCR53c406a.c | count = 65536; |
count | 299 | drivers/scsi/NCR53c406a.c | if (count > (65536<<1)) |
count | 300 | drivers/scsi/NCR53c406a.c | count = (65536<<1); |
count | 304 | drivers/scsi/NCR53c406a.c | if (count > limit) count = limit; |
count | 306 | drivers/scsi/NCR53c406a.c | VDEB(printk("after count=%d\n", count)); |
count | 307 | drivers/scsi/NCR53c406a.c | if ((count & 1) || (((unsigned) ptr) & 1)) |
count | 315 | drivers/scsi/NCR53c406a.c | set_dma_count(dma_chan, count); |
count | 320 | drivers/scsi/NCR53c406a.c | return count; |
count | 324 | drivers/scsi/NCR53c406a.c | NCR53c406a_dma_write(unsigned char *src, unsigned int count) { |
count | 325 | drivers/scsi/NCR53c406a.c | return NCR53c406a_dma_setup (src, count, DMA_MODE_WRITE); |
count | 329 | drivers/scsi/NCR53c406a.c | NCR53c406a_dma_read(unsigned char *src, unsigned int count) { |
count | 330 | drivers/scsi/NCR53c406a.c | return NCR53c406a_dma_setup (src, count, DMA_MODE_READ); |
count | 934 | drivers/scsi/aha1542.c | int count = 0; |
count | 1071 | drivers/scsi/aha1542.c | count++; |
count | 1079 | drivers/scsi/aha1542.c | return count; |
count | 1085 | drivers/scsi/aha1542.c | int count = 0; |
count | 1097 | drivers/scsi/aha1542.c | count++; |
count | 1100 | drivers/scsi/aha1542.c | printk("Potential to restart %d stalled commands...\n", count); |
count | 1103 | drivers/scsi/aha1542.c | if (count) aha1542_out(shost->io_port, &ahacmd, 1); |
count | 127 | drivers/scsi/g_NCR5380.c | int count; |
count | 132 | drivers/scsi/g_NCR5380.c | for (count = 0; current_override < NO_OVERRIDES; ++current_override) { |
count | 169 | drivers/scsi/g_NCR5380.c | ++count; |
count | 171 | 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 | 298 | drivers/scsi/sg.c | static int sg_write(struct inode *inode,struct file *filp,const char *buf,int count) |
count | 309 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_READ,buf,count))) |
count | 315 | drivers/scsi/sg.c | if (count<(sizeof(struct sg_header) + 6)) |
count | 345 | drivers/scsi/sg.c | device->header.pack_len=count; |
count | 423 | drivers/scsi/sg.c | if( count < (sizeof(struct sg_header) + size) ) |
count | 467 | drivers/scsi/sg.c | return count; |
count | 723 | drivers/scsi/sr.c | int count, this_count_max; |
count | 726 | drivers/scsi/sr.c | count = 0; |
count | 731 | drivers/scsi/sr.c | if(this_count) count++; |
count | 732 | drivers/scsi/sr.c | while(bh && count < SCpnt->host->sg_tablesize) { |
count | 735 | drivers/scsi/sr.c | count++; |
count | 741 | drivers/scsi/sr.c | if (count < SCpnt->host->sg_tablesize) { |
count | 742 | drivers/scsi/sr.c | count++; |
count | 746 | drivers/scsi/sr.c | count--; |
count | 750 | drivers/scsi/sr.c | SCpnt->use_sg = count; /* Number of chains */ |
count | 751 | drivers/scsi/sr.c | count = 512;/* scsi_malloc can only allocate in chunks of 512 bytes*/ |
count | 752 | drivers/scsi/sr.c | while( count < (SCpnt->use_sg * sizeof(struct scatterlist))) |
count | 753 | drivers/scsi/sr.c | count = count << 1; |
count | 754 | drivers/scsi/sr.c | SCpnt->sglist_len = count; |
count | 755 | drivers/scsi/sr.c | sgpnt = (struct scatterlist * ) scsi_malloc(count); |
count | 761 | drivers/scsi/sr.c | count = 0; |
count | 764 | drivers/scsi/sr.c | sgpnt[count].length = (SCpnt->request.sector % 4) << 9; |
count | 765 | drivers/scsi/sr.c | sgpnt[count].address = (char *) scsi_malloc(sgpnt[count].length); |
count | 766 | drivers/scsi/sr.c | if(!sgpnt[count].address) panic("SCSI DMA pool exhausted."); |
count | 767 | drivers/scsi/sr.c | sgpnt[count].alt_address = sgpnt[count].address; /* Flag to delete |
count | 769 | drivers/scsi/sr.c | count++; |
count | 771 | drivers/scsi/sr.c | for(bh = SCpnt->request.bh; count < SCpnt->use_sg; |
count | 772 | drivers/scsi/sr.c | count++, bh = bh->b_reqnext) { |
count | 774 | drivers/scsi/sr.c | sgpnt[count].address = bh->b_data; |
count | 775 | drivers/scsi/sr.c | sgpnt[count].length = bh->b_size; |
count | 776 | drivers/scsi/sr.c | sgpnt[count].alt_address = NULL; |
count | 778 | drivers/scsi/sr.c | sgpnt[count].address = (char *) scsi_malloc(end_rec); |
count | 779 | drivers/scsi/sr.c | if(!sgpnt[count].address) panic("SCSI DMA pool exhausted."); |
count | 780 | drivers/scsi/sr.c | sgpnt[count].length = end_rec; |
count | 781 | drivers/scsi/sr.c | sgpnt[count].alt_address = sgpnt[count].address; |
count | 782 | drivers/scsi/sr.c | if (count+1 != SCpnt->use_sg) panic("Bad sr request list"); |
count | 785 | drivers/scsi/sr.c | if (((long) sgpnt[count].address) + sgpnt[count].length > ISA_DMA_THRESHOLD && |
count | 787 | drivers/scsi/sr.c | sgpnt[count].alt_address = sgpnt[count].address; |
count | 791 | drivers/scsi/sr.c | if(dma_free_sectors < (sgpnt[count].length >> 9) + 5) { |
count | 792 | drivers/scsi/sr.c | sgpnt[count].address = NULL; |
count | 794 | drivers/scsi/sr.c | sgpnt[count].address = (char *) scsi_malloc(sgpnt[count].length); |
count | 800 | drivers/scsi/sr.c | if(sgpnt[count].address == NULL){ /* Out of dma memory */ |
count | 803 | drivers/scsi/sr.c | while(--count >= 0){ |
count | 804 | drivers/scsi/sr.c | if(sgpnt[count].alt_address) |
count | 805 | drivers/scsi/sr.c | scsi_free(sgpnt[count].address, sgpnt[count].length); |
count | 818 | drivers/scsi/sr.c | for(count=0; count<SCpnt->use_sg; count++) |
count | 819 | drivers/scsi/sr.c | printk("SGlist: %d %x %x %x\n", count, |
count | 820 | drivers/scsi/sr.c | sgpnt[count].address, |
count | 821 | drivers/scsi/sr.c | sgpnt[count].alt_address, |
count | 822 | drivers/scsi/sr.c | sgpnt[count].length); |
count | 728 | drivers/scsi/st.c | st_write(struct inode * inode, struct file * filp, const char * buf, int count) |
count | 761 | drivers/scsi/st.c | count > (STp->buffer)->buffer_size && |
count | 762 | drivers/scsi/st.c | !enlarge_buffer(STp->buffer, count)) |
count | 803 | drivers/scsi/st.c | if (STp->block_size != 0 && (count % STp->block_size) != 0) |
count | 812 | drivers/scsi/st.c | total = count; |
count | 821 | drivers/scsi/st.c | while((STp->block_size == 0 && !STp->do_async_writes && count > 0) || |
count | 823 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes + count > write_threshold)) |
count | 827 | drivers/scsi/st.c | do_count = count; |
count | 831 | drivers/scsi/st.c | if (do_count > count) |
count | 832 | drivers/scsi/st.c | do_count = count; |
count | 872 | drivers/scsi/st.c | count -= do_count - transfer; |
count | 905 | drivers/scsi/st.c | if (count < total) |
count | 906 | drivers/scsi/st.c | return total - count; |
count | 912 | drivers/scsi/st.c | count -= do_count; |
count | 922 | drivers/scsi/st.c | if (count != 0) { |
count | 925 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes,b_point,count); |
count | 926 | drivers/scsi/st.c | filp->f_pos += count; |
count | 927 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes += count; |
count | 928 | drivers/scsi/st.c | count = 0; |
count | 983 | drivers/scsi/st.c | st_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 1003 | drivers/scsi/st.c | count > (STp->buffer)->buffer_size && |
count | 1004 | drivers/scsi/st.c | !enlarge_buffer(STp->buffer, count)) |
count | 1008 | drivers/scsi/st.c | (count % STp->block_size) != 0) |
count | 1035 | drivers/scsi/st.c | for (total = 0; total < count; ) { |
count | 1044 | drivers/scsi/st.c | blks = bytes = count; |
count | 1051 | drivers/scsi/st.c | bytes = count; |
count | 1179 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes, count - total); |
count | 1181 | drivers/scsi/st.c | transfer = (STp->buffer)->buffer_bytes < count - total ? |
count | 1182 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes : count - total; |
count | 1209 | drivers/scsi/st.c | count = total; /* Read only one variable length block */ |
count | 203 | drivers/scsi/t128.c | int sig, count; |
count | 207 | drivers/scsi/t128.c | for (count = 0; current_override < NO_OVERRIDES; ++current_override) { |
count | 274 | drivers/scsi/t128.c | ++count; |
count | 276 | drivers/scsi/t128.c | return count; |
count | 119 | drivers/sound/ad1848.c | static void ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
count | 120 | drivers/sound/ad1848.c | static void ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
count | 819 | drivers/sound/ad1848.c | ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
count | 824 | drivers/sound/ad1848.c | cnt = count; |
count | 855 | drivers/sound/ad1848.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
count | 871 | drivers/sound/ad1848.c | ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
count | 876 | drivers/sound/ad1848.c | cnt = count; |
count | 906 | drivers/sound/ad1848.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
count | 189 | drivers/sound/audio.c | audio_write (int dev, struct fileinfo *file, const snd_rw_buf * buf, int count) |
count | 197 | drivers/sound/audio.c | c = count; |
count | 209 | drivers/sound/audio.c | if (!count) /* |
count | 286 | drivers/sound/audio.c | return count; |
count | 290 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
count | 298 | drivers/sound/audio.c | c = count; |
count | 354 | drivers/sound/audio.c | return count - c; |
count | 1740 | drivers/sound/configure.c | int count; |
count | 1752 | drivers/sound/configure.c | count = read (fd, &c, 1); |
count | 1753 | drivers/sound/configure.c | if (count == 0) |
count | 151 | drivers/sound/dev_table.h | int count, int intrflag, int dma_restart); |
count | 153 | drivers/sound/dev_table.h | int count, int intrflag, int dma_restart); |
count | 195 | drivers/sound/dev_table.h | int offs, int count, int pmgr_flag); |
count | 509 | drivers/sound/dev_table.h | int count, int dma_mode, int autoinit); |
count | 605 | drivers/sound/dmabuf.c | int bytes, count; |
count | 615 | drivers/sound/dmabuf.c | count = (fact >> 16) & 0xffff; |
count | 617 | drivers/sound/dmabuf.c | if (count == 0) |
count | 618 | drivers/sound/dmabuf.c | count = MAX_SUB_BUFFERS; |
count | 623 | drivers/sound/dmabuf.c | if (count < 2) |
count | 627 | drivers/sound/dmabuf.c | dmap->max_fragments = count; |
count | 637 | drivers/sound/dmabuf.c | return snd_ioctl_return ((int *) arg, bytes | (count << 16)); |
count | 1075 | drivers/sound/dmabuf.c | DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode) |
count | 1120 | drivers/sound/dmabuf.c | set_dma_count (chan, count); |
count | 1125 | drivers/sound/dmabuf.c | return count; |
count | 1482 | drivers/sound/dmabuf.c | DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode) |
count | 1509 | drivers/sound/gus_wave.c | int offs, int count, int pmgr_flag) |
count | 1525 | drivers/sound/gus_wave.c | if (count < sizeof_patch) |
count | 1531 | drivers/sound/gus_wave.c | count -= sizeof_patch; |
count | 1554 | drivers/sound/gus_wave.c | if (count < patch.len) |
count | 1557 | drivers/sound/gus_wave.c | count, (int) patch.len); |
count | 1558 | drivers/sound/gus_wave.c | patch.len = count; |
count | 2260 | drivers/sound/gus_wave.c | int this_one, count; |
count | 2268 | drivers/sound/gus_wave.c | count = total_count / gus_sampling_channels; |
count | 2278 | drivers/sound/gus_wave.c | pcm_datasize[this_one] = count; |
count | 2284 | drivers/sound/gus_wave.c | DMAbuf_start_dma (dev, buf + (chn * count), count, DMA_MODE_WRITE); |
count | 2318 | drivers/sound/gus_wave.c | if (!pcm_active && (pcm_qlen > 0 || count < pcm_bsize)) |
count | 2347 | drivers/sound/gus_wave.c | gus_sampling_start_input (int dev, unsigned long buf, int count, |
count | 2356 | drivers/sound/gus_wave.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
count | 54 | drivers/sound/maui.c | int offs, int count, int pmgr_flag) = NULL; |
count | 102 | drivers/sound/maui.c | int offs, int count, int pmgr_flag) |
count | 111 | drivers/sound/maui.c | return orig_load_patch (dev, format, addr, offs, count, pmgr_flag); |
count | 118 | drivers/sound/maui.c | if (count < hdr_size) |
count | 124 | drivers/sound/maui.c | count -= hdr_size; |
count | 133 | drivers/sound/maui.c | if (count < header.len) |
count | 136 | drivers/sound/maui.c | count, (int) header.len); |
count | 137 | drivers/sound/maui.c | header.len = count; |
count | 500 | drivers/sound/midi_synth.c | int offs, int count, int pmgr_flag) |
count | 521 | drivers/sound/midi_synth.c | if (count < hdr_size) |
count | 527 | drivers/sound/midi_synth.c | count -= hdr_size; |
count | 536 | drivers/sound/midi_synth.c | if (count < sysex.len) |
count | 539 | drivers/sound/midi_synth.c | count, (int) sysex.len); |
count | 540 | drivers/sound/midi_synth.c | sysex.len = count; |
count | 11 | drivers/sound/midi_synth.h | int offs, int count, int pmgr_flag); |
count | 339 | drivers/sound/midibuf.c | MIDIbuf_write (int dev, struct fileinfo *file, const snd_rw_buf * buf, int count) |
count | 347 | drivers/sound/midibuf.c | if (!count) |
count | 355 | drivers/sound/midibuf.c | while (c < count) |
count | 389 | drivers/sound/midibuf.c | if (n > (count - c)) |
count | 390 | drivers/sound/midibuf.c | n = count - c; |
count | 407 | drivers/sound/midibuf.c | MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
count | 450 | drivers/sound/midibuf.c | if (n > count) |
count | 451 | drivers/sound/midibuf.c | n = count; |
count | 880 | drivers/sound/opl3.c | int offs, int count, int pmgr_flag) |
count | 884 | drivers/sound/opl3.c | if (count < sizeof (ins)) |
count | 265 | drivers/sound/pas2_pcm.c | pas_pcm_output_block (int dev, unsigned long buf, int count, |
count | 270 | 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 | 272 | drivers/sound/pas2_pcm.c | cnt = count; |
count | 290 | drivers/sound/pas2_pcm.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
count | 293 | drivers/sound/pas2_pcm.c | count >>= 1; |
count | 295 | drivers/sound/pas2_pcm.c | if (count != pcm_count) |
count | 299 | drivers/sound/pas2_pcm.c | pas_write (count & 0xff, SAMPLE_BUFFER_COUNTER); |
count | 300 | drivers/sound/pas2_pcm.c | pas_write ((count >> 8) & 0xff, SAMPLE_BUFFER_COUNTER); |
count | 303 | drivers/sound/pas2_pcm.c | pcm_count = count; |
count | 314 | drivers/sound/pas2_pcm.c | pas_pcm_start_input (int dev, unsigned long buf, int count, |
count | 320 | 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 | 322 | drivers/sound/pas2_pcm.c | cnt = count; |
count | 337 | drivers/sound/pas2_pcm.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
count | 340 | drivers/sound/pas2_pcm.c | count >>= 1; |
count | 342 | drivers/sound/pas2_pcm.c | if (count != pcm_count) |
count | 346 | drivers/sound/pas2_pcm.c | pas_write (count & 0xff, SAMPLE_BUFFER_COUNTER); |
count | 347 | drivers/sound/pas2_pcm.c | pas_write ((count >> 8) & 0xff, SAMPLE_BUFFER_COUNTER); |
count | 350 | drivers/sound/pas2_pcm.c | pcm_count = count; |
count | 94 | drivers/sound/patmgr.c | pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
count | 99 | drivers/sound/patmgr.c | if (count != sizeof (struct patmgr_info)) |
count | 134 | drivers/sound/patmgr.c | memcpy_tofs (&((buf)[0]), (char *) mbox[dev], count); |
count | 145 | drivers/sound/patmgr.c | return count; |
count | 149 | drivers/sound/patmgr.c | pmgr_write (int dev, struct fileinfo *file, const snd_rw_buf * buf, int count) |
count | 153 | drivers/sound/patmgr.c | if (count < 4) |
count | 170 | drivers/sound/patmgr.c | buf, 4, count, 1); |
count | 173 | drivers/sound/patmgr.c | if (count != sizeof (struct patmgr_info)) |
count | 189 | drivers/sound/patmgr.c | memcpy_fromfs (&((char *) mbox[dev])[4], &((buf)[4]), count - 4); |
count | 203 | drivers/sound/patmgr.c | return count; |
count | 247 | drivers/sound/pss.c | int i, limit, val, count; |
count | 265 | drivers/sound/pss.c | count = 1; |
count | 280 | drivers/sound/pss.c | if (count >= size && flags & CPF_LAST) |
count | 285 | drivers/sound/pss.c | count, size); |
count | 291 | 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 | 264 | drivers/sound/sb16_dsp.c | sb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
count | 268 | drivers/sound/sb16_dsp.c | cnt = count; |
count | 274 | drivers/sound/sb16_dsp.c | printk ("output_block: %x %d %d\n", buf, count, intrflag); |
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 | 327 | drivers/sound/sb16_dsp.c | cnt = count; |
count | 333 | drivers/sound/sb16_dsp.c | printk ("start_input: %x %d %d\n", buf, count, intrflag); |
count | 364 | drivers/sound/sb16_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
count | 396 | drivers/sound/sb_dsp.c | sb_dsp_output_block (int dev, unsigned long buf, int count, |
count | 404 | drivers/sound/sb_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
count | 409 | drivers/sound/sb_dsp.c | count >>= 1; |
count | 410 | drivers/sound/sb_dsp.c | count--; |
count | 411 | drivers/sound/sb_dsp.c | dsp_count = count; |
count | 451 | drivers/sound/sb_dsp.c | sb_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, |
count | 469 | drivers/sound/sb_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
count | 473 | drivers/sound/sb_dsp.c | count >>= 1; |
count | 474 | drivers/sound/sb_dsp.c | count--; |
count | 475 | drivers/sound/sb_dsp.c | dsp_count = count; |
count | 104 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, snd_rw_buf * 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 snd_rw_buf * buf, int count) |
count | 274 | drivers/sound/sequencer.c | DEB (printk ("sequencer_write(dev=%d, count=%d)\n", dev, count)); |
count | 282 | drivers/sound/sequencer.c | return pmgr_write (dev - 1, file, buf, count); |
count | 284 | drivers/sound/sequencer.c | c = count; |
count | 323 | drivers/sound/sequencer.c | return count - c; |
count | 371 | drivers/sound/sequencer.c | int processed = count - c; |
count | 390 | drivers/sound/sequencer.c | return count; /* This will "eat" chunks shorter than 4 bytes (if written |
count | 13 | drivers/sound/sound_calls.h | int DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode); |
count | 26 | drivers/sound/sound_calls.h | int audio_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
count | 27 | drivers/sound/sound_calls.h | int audio_write (int dev, struct fileinfo *file, const snd_rw_buf *buf, int count); |
count | 41 | drivers/sound/sound_calls.h | int sequencer_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
count | 42 | drivers/sound/sound_calls.h | int sequencer_write (int dev, struct fileinfo *file, const snd_rw_buf *buf, int count); |
count | 61 | drivers/sound/sound_calls.h | int MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
count | 62 | drivers/sound/sound_calls.h | int MIDIbuf_write (int dev, struct fileinfo *file, const snd_rw_buf *buf, int count); |
count | 68 | drivers/sound/sound_calls.h | void MIDIbuf_bytes_received(int dev, unsigned char *buf, int count); |
count | 81 | drivers/sound/sound_calls.h | void request_sound_timer (int count); |
count | 90 | drivers/sound/sound_calls.h | int sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
count | 91 | drivers/sound/sound_calls.h | int sound_write_sw (int dev, struct fileinfo *file, const snd_rw_buf *buf, int count); |
count | 197 | drivers/sound/sound_calls.h | int pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count); |
count | 198 | drivers/sound/sound_calls.h | int pmgr_write (int dev, struct fileinfo *file, const snd_rw_buf * buf, int count); |
count | 239 | drivers/sound/sound_calls.h | int pss_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
count | 240 | drivers/sound/sound_calls.h | int pss_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
count | 310 | drivers/sound/sound_switch.c | read_status (snd_rw_buf * buf, int count) |
count | 317 | drivers/sound/sound_switch.c | l = count; |
count | 332 | drivers/sound/sound_switch.c | sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
count | 334 | drivers/sound/sound_switch.c | DEB (printk ("sound_read_sw(dev=%d, count=%d)\n", dev, count)); |
count | 339 | drivers/sound/sound_switch.c | return read_status (buf, count); |
count | 346 | drivers/sound/sound_switch.c | return audio_read (dev, file, buf, count); |
count | 353 | drivers/sound/sound_switch.c | return sequencer_read (dev, file, buf, count); |
count | 359 | drivers/sound/sound_switch.c | return MIDIbuf_read (dev, file, buf, count); |
count | 370 | drivers/sound/sound_switch.c | sound_write_sw (int dev, struct fileinfo *file, const snd_rw_buf * buf, int count) |
count | 373 | drivers/sound/sound_switch.c | DEB (printk ("sound_write_sw(dev=%d, count=%d)\n", dev, count)); |
count | 381 | drivers/sound/sound_switch.c | return sequencer_write (dev, file, buf, count); |
count | 389 | drivers/sound/sound_switch.c | return audio_write (dev, file, buf, count); |
count | 395 | drivers/sound/sound_switch.c | return MIDIbuf_write (dev, file, buf, count); |
count | 402 | drivers/sound/sound_switch.c | return count; |
count | 77 | drivers/sound/soundcard.c | sound_read (struct inode *inode, struct file *file, char *buf, int count) |
count | 85 | drivers/sound/soundcard.c | return sound_read_sw (dev, &files[dev], buf, count); |
count | 89 | drivers/sound/soundcard.c | sound_write (struct inode *inode, struct file *file, const char *buf, int count) |
count | 97 | drivers/sound/soundcard.c | return sound_write_sw (dev, &files[dev], buf, count); |
count | 502 | drivers/sound/soundcard.c | request_sound_timer (int count) |
count | 506 | drivers/sound/soundcard.c | if (count < 0) |
count | 507 | drivers/sound/soundcard.c | count = jiffies + (-count); |
count | 509 | drivers/sound/soundcard.c | count += seq_time; |
count | 513 | drivers/sound/soundcard.c | seq_timer.expires = ((count - jiffies)) + jiffies; |
count | 165 | drivers/sound/sscape.c | host_write (struct sscape_info *devc, unsigned char *data, int count) |
count | 177 | drivers/sound/sscape.c | for (i = 0; i < count; i++) |
count | 823 | drivers/sound/sscape.c | sscape_audio_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
count | 828 | drivers/sound/sscape.c | sscape_audio_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
count | 81 | drivers/sound/uart6850.c | int count; |
count | 83 | drivers/sound/uart6850.c | count = 10; |
count | 85 | drivers/sound/uart6850.c | while (count) /* |
count | 92 | drivers/sound/uart6850.c | count = 100; |
count | 98 | drivers/sound/uart6850.c | while (!input_avail () && count) |
count | 99 | 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 | 583 | fs/buffer.c | if (mem_map[MAP_NR((unsigned long) bh->b_data)].count != 1 || |
count | 631 | fs/buffer.c | if (mem_map[MAP_NR((unsigned long) bh->b_data)].count != 1) |
count | 655 | fs/buffer.c | if (mem_map[MAP_NR((unsigned long) bh->b_data)].count != 1 || |
count | 781 | fs/buffer.c | else if (mem_map[MAP_NR((unsigned long) buf->b_data)].count > 1) |
count | 835 | fs/buffer.c | if (mem_map[MAP_NR(buf->b_data)].count != 1) { |
count | 1078 | fs/buffer.c | mem_map[MAP_NR(page)].count++; |
count | 1135 | fs/buffer.c | mem_map[MAP_NR(address)].count++; |
count | 1340 | fs/buffer.c | return !mem_map[MAP_NR(page)].count; |
count | 1548 | fs/buffer.c | if(mem_map[MAP_NR(((unsigned long) bh->b_data))].count !=1) shared++; |
count | 1582 | fs/buffer.c | if(mem_map[MAP_NR(page)].count != 1) return 0; |
count | 488 | fs/exec.c | char * addr, unsigned long count, int to_kmem) |
count | 515 | fs/exec.c | result = file.f_op->read(inode, &file, addr, count); |
count | 518 | fs/exec.c | result = verify_area(VERIFY_WRITE, addr, count); |
count | 521 | fs/exec.c | result = file.f_op->read(inode, &file, addr, count); |
count | 537 | fs/exec.c | if (current->mm->count > 1) { |
count | 546 | fs/exec.c | mm->count = 1; |
count | 551 | fs/exec.c | current->mm->count--; |
count | 630 | fs/exec.c | if ((bprm.argc = count(argv)) < 0) |
count | 632 | 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 | 72 | fs/ext/file.c | static int ext_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 96 | fs/ext/file.c | if (left > count) |
count | 97 | fs/ext/file.c | left = count; |
count | 197 | fs/ext/file.c | static int ext_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
count | 221 | fs/ext/file.c | while (written<count) { |
count | 229 | fs/ext/file.c | if (c > count-written) |
count | 230 | 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 | 187 | fs/ext2/balloc.c | (block + count) > es->s_blocks_count) { |
count | 190 | fs/ext2/balloc.c | "block = %lu, count = %lu", block, count); |
count | 200 | fs/ext2/balloc.c | if (bit + count > EXT2_BLOCKS_PER_GROUP(sb)) |
count | 204 | fs/ext2/balloc.c | block, count); |
count | 210 | fs/ext2/balloc.c | (in_range (gdp->bg_block_bitmap, block, count) || |
count | 211 | fs/ext2/balloc.c | in_range (gdp->bg_inode_bitmap, block, count) || |
count | 214 | fs/ext2/balloc.c | in_range (block + count - 1, gdp->bg_inode_table, |
count | 219 | fs/ext2/balloc.c | block, count); |
count | 221 | fs/ext2/balloc.c | for (i = 0; i < count; i++) { |
count | 27 | fs/ext2/dir.c | char * buf, int count) |
count | 81 | fs/ext2/file.c | char * buf, int count) |
count | 110 | fs/ext2/file.c | if (left > count) |
count | 111 | fs/ext2/file.c | left = count; |
count | 232 | fs/ext2/file.c | const char * buf, int count) |
count | 279 | fs/ext2/file.c | while (count > 0) { |
count | 291 | fs/ext2/file.c | count -= c; |
count | 292 | fs/ext2/file.c | if (count < 0) |
count | 293 | fs/ext2/file.c | c += count; |
count | 187 | fs/hpfs/hpfs_fs.c | char *buf, int count); |
count | 811 | fs/hpfs/hpfs_fs.c | unsigned n, count, n_bands; |
count | 828 | fs/hpfs/hpfs_fs.c | count = 0; |
count | 837 | fs/hpfs/hpfs_fs.c | count += count_one_bitmap(s->s_dev, bitmaps[n]); |
count | 840 | fs/hpfs/hpfs_fs.c | return count; |
count | 851 | fs/hpfs/hpfs_fs.c | unsigned i, count; |
count | 857 | fs/hpfs/hpfs_fs.c | count = 0; |
count | 860 | fs/hpfs/hpfs_fs.c | count += (test_bit(i, bits) != 0); |
count | 863 | fs/hpfs/hpfs_fs.c | return count; |
count | 873 | fs/hpfs/hpfs_fs.c | char *buf, int count) |
count | 886 | fs/hpfs/hpfs_fs.c | if (count > inode->i_size - (off_t) filp->f_pos) |
count | 887 | fs/hpfs/hpfs_fs.c | count = inode->i_size - filp->f_pos; |
count | 890 | fs/hpfs/hpfs_fs.c | while (count > 0) { |
count | 902 | fs/hpfs/hpfs_fs.c | if (n > count) |
count | 903 | fs/hpfs/hpfs_fs.c | n = count; |
count | 932 | fs/hpfs/hpfs_fs.c | if (count > inode->i_size - (off_t) filp->f_pos - n + n0) |
count | 933 | fs/hpfs/hpfs_fs.c | count = inode->i_size - filp->f_pos - n + n0; |
count | 943 | fs/hpfs/hpfs_fs.c | count -= n0; |
count | 1574 | fs/hpfs/hpfs_fs.c | char *buf, int count) |
count | 464 | fs/inode.c | inode->i_sem.count = 1; |
count | 117 | fs/isofs/file.c | static int isofs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 141 | fs/isofs/file.c | if (left > count) |
count | 142 | fs/isofs/file.c | left = count; |
count | 17 | fs/minix/dir.c | static int minix_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 66 | fs/minix/file.c | static int minix_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 90 | fs/minix/file.c | if (left > count) |
count | 91 | fs/minix/file.c | left = count; |
count | 189 | fs/minix/file.c | static int minix_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
count | 209 | fs/minix/file.c | while (written < count) { |
count | 217 | fs/minix/file.c | if (c > count-written) |
count | 218 | fs/minix/file.c | c = count-written; |
count | 23 | fs/msdos/dir.c | static int msdos_dir_read(struct inode * inode,struct file * filp, char * buf,int count) |
count | 106 | fs/msdos/fat.c | int count; |
count | 110 | fs/msdos/fat.c | for (count = 0; count < FAT_CACHE; count++) { |
count | 111 | fs/msdos/fat.c | cache[count].device = 0; |
count | 112 | fs/msdos/fat.c | cache[count].next = count == FAT_CACHE-1 ? NULL : |
count | 113 | fs/msdos/fat.c | &cache[count+1]; |
count | 227 | fs/msdos/fat.c | int nr,count; |
count | 231 | fs/msdos/fat.c | count = 0; |
count | 232 | fs/msdos/fat.c | for (cache_lookup(inode,cluster,&count,&nr); count < cluster; |
count | 233 | fs/msdos/fat.c | count++) { |
count | 153 | fs/msdos/file.c | int count) |
count | 157 | fs/msdos/file.c | char *end = buf + count; |
count | 172 | fs/msdos/file.c | if (filp->f_pos >= inode->i_size || count <= 0) return 0; |
count | 182 | fs/msdos/file.c | PRINTK (("#### ino %ld pos %ld size %ld count %d\n",inode->i_ino,filp->f_pos,inode->i_size,count)); |
count | 188 | fs/msdos/file.c | int count_max = (filp->f_pos & (SECTOR_SIZE-1)) + count; |
count | 207 | fs/msdos/file.c | PRINTK (("count %d ahead %d nblist %d\n",count,read_ahead[MAJOR(inode->i_dev)],pre.nblist)); |
count | 223 | fs/msdos/file.c | PRINTK (("file_read pos %ld nblist %d %d %d\n",filp->f_pos,pre.nblist,pre.fetched,count)); |
count | 252 | fs/msdos/file.c | PRINTK (("--- %d -> %d\n",count,(int)(buf-start))); |
count | 267 | fs/msdos/file.c | int count) |
count | 293 | fs/msdos/file.c | if (count <= 0) return 0; |
count | 295 | fs/msdos/file.c | for (start = buf; count || carry; count -= size) { |
count | 303 | fs/msdos/file.c | size = MIN(SECTOR_SIZE-offset,MAX(carry,count)); |
count | 331 | fs/msdos/file.c | for (size = 0; size < count && left; size++) { |
count | 119 | fs/msdos/misc.c | int count,nr,limit,last,curr,sector,last_sector,file_cluster; |
count | 128 | fs/msdos/misc.c | for (count = 0; count < limit; count++) { |
count | 129 | fs/msdos/misc.c | nr = ((count+MSDOS_SB(inode->i_sb)->prev_free) % limit)+2; |
count | 132 | fs/msdos/misc.c | PRINTK (("cnt = %d --",count)); |
count | 136 | fs/msdos/misc.c | MSDOS_SB(inode->i_sb)->prev_free = (count+MSDOS_SB(inode->i_sb)-> |
count | 138 | fs/msdos/misc.c | if (count >= limit) { |
count | 417 | fs/msdos/misc.c | int count,cluster; |
count | 419 | fs/msdos/misc.c | for (count = 0; count < MSDOS_SB(sb)->dir_entries/MSDOS_DPS; count++) { |
count | 420 | fs/msdos/misc.c | if ((cluster = raw_scan_sector(sb,MSDOS_SB(sb)->dir_start+count, |
count | 436 | fs/msdos/misc.c | int count,cluster; |
count | 442 | fs/msdos/misc.c | for (count = 0; count < MSDOS_SB(sb)->cluster_size; count++) { |
count | 445 | fs/msdos/misc.c | count,name,number,ino,res_bh,res_de,scantype)) >= 0) |
count | 523 | fs/msdos/misc.c | int count; |
count | 525 | fs/msdos/misc.c | count = 0; |
count | 527 | fs/msdos/misc.c | (void) raw_scan_root(dir->i_sb,NULL,&count,NULL,NULL,NULL,SCAN_ANY); |
count | 531 | fs/msdos/misc.c | NULL,&count,NULL,NULL,NULL,SCAN_ANY); |
count | 533 | fs/msdos/misc.c | return count; |
count | 22 | fs/nfs/dir.c | int count); |
count | 73 | fs/nfs/dir.c | int count) |
count | 95 | fs/nfs/file.c | int count) |
count | 112 | fs/nfs/file.c | if (pos + count > inode->i_size) |
count | 113 | fs/nfs/file.c | count = inode->i_size - pos; |
count | 114 | fs/nfs/file.c | if (count <= 0) |
count | 121 | fs/nfs/file.c | && (cache[i].file_pos + cache[i].len >= pos + count) |
count | 128 | fs/nfs/file.c | memcpy_tofs(buf, cache[i].buf + pos - cache[i].file_pos, count); |
count | 130 | fs/nfs/file.c | file->f_pos += count; |
count | 131 | fs/nfs/file.c | return count; |
count | 135 | fs/nfs/file.c | for (i = 0; i < count - n; i += n) { |
count | 160 | fs/nfs/file.c | hunk = count - i; |
count | 190 | fs/nfs/file.c | int count) |
count | 204 | fs/nfs/file.c | if (count <= 0) |
count | 218 | fs/nfs/file.c | for (i = 0; i < count; i += n) { |
count | 219 | fs/nfs/file.c | hunk = count - i; |
count | 727 | fs/nfs/nfsroot.c | if (current->files->count > 0) |
count | 728 | fs/nfs/nfsroot.c | current->files->count--; |
count | 376 | fs/nfs/proc.c | int offset, int count, char *data, struct nfs_fattr *fattr, int fs) |
count | 383 | fs/nfs/proc.c | PRINTK("NFS call read %d @ %d\n", count, offset); |
count | 390 | fs/nfs/proc.c | *p++ = htonl(count); |
count | 391 | fs/nfs/proc.c | *p++ = htonl(count); /* traditional, could be any value */ |
count | 400 | fs/nfs/proc.c | if (!(p = xdr_decode_data(p, data, &len, count, fs))) { |
count | 422 | fs/nfs/proc.c | int offset, int count, const char *data, struct nfs_fattr *fattr) |
count | 428 | fs/nfs/proc.c | PRINTK("NFS call write %d @ %d\n", count, offset); |
count | 436 | fs/nfs/proc.c | *p++ = htonl(count); /* traditional, could be any value */ |
count | 437 | fs/nfs/proc.c | p = xdr_encode_data(p, data, count); |
count | 726 | fs/nfs/proc.c | int cookie, int count, struct nfs_entry *entry) |
count | 735 | fs/nfs/proc.c | PRINTK("NFS call readdir %d @ %d\n", count, cookie); |
count | 751 | fs/nfs/proc.c | for (i = 0; i < count && *p++; i++) { |
count | 760 | fs/nfs/proc.c | eof = (i == count && !*p++ && *p++) |
count | 761 | fs/nfs/proc.c | || (i < count && *p++); |
count | 25 | fs/pipe.c | static int pipe_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 48 | fs/pipe.c | while (count>0 && (size = PIPE_SIZE(*inode))) { |
count | 50 | fs/pipe.c | if (chars > count) |
count | 51 | fs/pipe.c | chars = count; |
count | 59 | fs/pipe.c | count -= chars; |
count | 72 | fs/pipe.c | static int pipe_write(struct inode * inode, struct file * filp, const char * buf, int count) |
count | 82 | fs/pipe.c | if (count <= PIPE_BUF) |
count | 83 | fs/pipe.c | free = count; |
count | 86 | fs/pipe.c | while (count>0) { |
count | 99 | fs/pipe.c | while (count>0 && (free = PIPE_FREE(*inode))) { |
count | 101 | fs/pipe.c | if (chars > count) |
count | 102 | fs/pipe.c | chars = count; |
count | 108 | fs/pipe.c | count -= chars; |
count | 124 | fs/pipe.c | static int bad_pipe_r(struct inode * inode, struct file * filp, char * buf, int count) |
count | 129 | fs/pipe.c | static int bad_pipe_w(struct inode * inode, struct file * filp, const char * buf, int count) |
count | 203 | fs/pipe.c | static int connect_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 216 | fs/pipe.c | return pipe_read(inode,filp,buf,count); |
count | 57 | fs/proc/array.c | static int read_core(struct inode * inode, struct file * file,char * buf, int count) |
count | 77 | fs/proc/array.c | if (count < 0) |
count | 82 | fs/proc/array.c | if (count > memsize - p) |
count | 83 | fs/proc/array.c | count = memsize - p; |
count | 86 | fs/proc/array.c | if (p < sizeof(struct user) && count > 0) { |
count | 87 | fs/proc/array.c | count1 = count; |
count | 94 | fs/proc/array.c | count -= count1; |
count | 98 | fs/proc/array.c | while (count > 0 && p < PAGE_SIZE + FIRST_MAPPED) { |
count | 102 | fs/proc/array.c | count--; |
count | 105 | fs/proc/array.c | memcpy_tofs(buf, (void *) (PAGE_OFFSET + p - PAGE_SIZE), count); |
count | 106 | fs/proc/array.c | read += count; |
count | 130 | fs/proc/array.c | static int read_profile(struct inode *inode, struct file *file, char *buf, int count) |
count | 137 | fs/proc/array.c | if (count < 0) |
count | 141 | fs/proc/array.c | if (count > (prof_len+1)*sizeof(unsigned long) - p) |
count | 142 | fs/proc/array.c | count = (prof_len+1)*sizeof(unsigned long) - p; |
count | 145 | fs/proc/array.c | while (p < sizeof(unsigned long) && count > 0) { |
count | 147 | fs/proc/array.c | buf++; p++; count--; read++; |
count | 150 | fs/proc/array.c | memcpy_tofs(buf,(void *)pnt,count); |
count | 151 | fs/proc/array.c | read += count; |
count | 157 | fs/proc/array.c | static int write_profile(struct inode * inode, struct file * file, const char * buf, int count) |
count | 163 | fs/proc/array.c | return count; |
count | 392 | fs/proc/array.c | int count = 0; |
count | 406 | fs/proc/array.c | } while (count++ < 16); |
count | 574 | fs/proc/array.c | if (mem_map[MAP_NR(pte_page(page))].count > 1) |
count | 673 | fs/proc/array.c | static int read_maps (int pid, struct file * file, char * buf, int count) |
count | 685 | fs/proc/array.c | if (!(*p)->mm || count == 0) |
count | 735 | fs/proc/array.c | if (i > count) |
count | 736 | fs/proc/array.c | i = count; |
count | 738 | fs/proc/array.c | destptr += i; count -= i; |
count | 747 | fs/proc/array.c | if (count == 0) |
count | 852 | fs/proc/array.c | static int array_read(struct inode * inode, struct file * file,char * buf, int count) |
count | 860 | fs/proc/array.c | if (count < 0) |
count | 862 | fs/proc/array.c | if (count > PROC_BLOCK_SIZE) |
count | 863 | fs/proc/array.c | count = PROC_BLOCK_SIZE; |
count | 871 | fs/proc/array.c | &start, file->f_pos, count); |
count | 880 | fs/proc/array.c | count = length; |
count | 887 | fs/proc/array.c | if (count + file->f_pos > length) |
count | 888 | fs/proc/array.c | count = length - file->f_pos; |
count | 889 | fs/proc/array.c | end = count + file->f_pos; |
count | 890 | fs/proc/array.c | memcpy_tofs(buf, (char *) page + file->f_pos, count); |
count | 894 | fs/proc/array.c | return count; |
count | 928 | fs/proc/array.c | static int arraylong_read (struct inode * inode, struct file * file, char * buf, int count) |
count | 933 | fs/proc/array.c | if (count < 0) |
count | 938 | 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 | 294 | fs/proc/mem.c | mem_map[MAP_NR(pte_page(*src_table))].count++; |
count | 41 | fs/proc/net.c | char * buf, int count) |
count | 44 | fs/proc/net.c | int bytes=count; |
count | 49 | 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 | 103 | fs/proc/scsi.c | char * buf, int count) |
count | 106 | fs/proc/scsi.c | int bytes = count; |
count | 112 | fs/proc/scsi.c | if (count < -1) /* Normally I wouldn't do this, */ |
count | 119 | fs/proc/scsi.c | while(bytes > 0 || count == -1) { |
count | 121 | fs/proc/scsi.c | if(bytes > PROC_BLOCK_SIZE || count == -1) |
count | 145 | fs/proc/scsi.c | if (count != -1) |
count | 162 | fs/proc/scsi.c | const char * buf, int count) |
count | 167 | fs/proc/scsi.c | if(count > PROC_BLOCK_SIZE) { |
count | 174 | fs/proc/scsi.c | memcpy_fromfs(page, buf, count); |
count | 175 | 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 | 142 | fs/read_write.c | written = file->f_op->write(inode,file,buf,count); |
count | 158 | fs/read_write.c | const struct iovec * iov, long count, long size) |
count | 170 | fs/read_write.c | msg.msg_iovlen = count; |
count | 188 | fs/read_write.c | const struct iovec * vector, unsigned long count) |
count | 199 | fs/read_write.c | if (!count) |
count | 201 | fs/read_write.c | if (count > MAX_IOVEC) |
count | 203 | fs/read_write.c | retval = verify_area(VERIFY_READ, vector, count*sizeof(*vector)); |
count | 206 | fs/read_write.c | memcpy_fromfs(iov, vector, count*sizeof(*vector)); |
count | 208 | fs/read_write.c | for (i = 0 ; i < count ; i++) { |
count | 221 | fs/read_write.c | return sock_readv_writev(type, inode, file, iov, count, tot_len); |
count | 230 | fs/read_write.c | while (count > 0) { |
count | 237 | fs/read_write.c | count--; |
count | 252 | fs/read_write.c | asmlinkage int sys_readv(unsigned long fd, const struct iovec * vector, long count) |
count | 261 | fs/read_write.c | return do_readv_writev(VERIFY_WRITE, inode, file, vector, count); |
count | 264 | fs/read_write.c | asmlinkage int sys_writev(unsigned long fd, const struct iovec * vector, long count) |
count | 273 | fs/read_write.c | return 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 | 119 | fs/smbfs/dir.c | smb_dir_read(struct inode *inode, struct file *filp, char *buf, int count) |
count | 63 | fs/smbfs/file.c | smb_file_read(struct inode *inode, struct file *file, char *buf, int count) |
count | 87 | fs/smbfs/file.c | if (pos + count > inode->i_size) |
count | 88 | fs/smbfs/file.c | count = inode->i_size - pos; |
count | 90 | fs/smbfs/file.c | if (count <= 0) |
count | 97 | fs/smbfs/file.c | while (already_read < count) { |
count | 103 | fs/smbfs/file.c | to_read = min(65535, count - already_read); |
count | 112 | fs/smbfs/file.c | to_read = min(bufsize, count - already_read); |
count | 140 | fs/smbfs/file.c | smb_file_write(struct inode *inode, struct file *file, const char *buf, int count) |
count | 159 | fs/smbfs/file.c | if (count <= 0) |
count | 178 | fs/smbfs/file.c | while (already_written < count) { |
count | 184 | fs/smbfs/file.c | to_write = min(65535, count - already_written); |
count | 193 | fs/smbfs/file.c | to_write = min(bufsize, count - already_written); |
count | 610 | fs/smbfs/proc.c | off_t offset, long count, char *data, int fs) |
count | 619 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, count); |
count | 648 | fs/smbfs/proc.c | off_t offset, long count, char *data) |
count | 653 | fs/smbfs/proc.c | if ((count <= 0) || (count > 65535)) { |
count | 661 | fs/smbfs/proc.c | WSET(buf, smb_vwv3, count); |
count | 665 | fs/smbfs/proc.c | result = smb_request_read_raw(server, data, count); |
count | 672 | fs/smbfs/proc.c | off_t offset, int count, const char *data) |
count | 678 | fs/smbfs/proc.c | p = smb_setup_header_exclusive(server, SMBwrite, 5, count + 3); |
count | 680 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, count); |
count | 685 | fs/smbfs/proc.c | WSET(p, 0, count); |
count | 686 | fs/smbfs/proc.c | memcpy_fromfs(p+2, data, count); |
count | 700 | fs/smbfs/proc.c | off_t offset, long count, const char *data) |
count | 705 | fs/smbfs/proc.c | if ((count <= 0) || (count > 65535)) { |
count | 712 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, count); |
count | 730 | fs/smbfs/proc.c | result = smb_request_write_raw(server, data, count); |
count | 946 | fs/smbfs/proc.c | word count; |
count | 1002 | fs/smbfs/proc.c | p = smb_decode_word(p, &count); /* vwv[0] = count-returned */ |
count | 1007 | fs/smbfs/proc.c | if (count <= 0) { |
count | 1011 | fs/smbfs/proc.c | if (bcc != count * SMB_DIRINFO_SIZE + 3) { |
count | 1021 | fs/smbfs/proc.c | (count - 1) * SMB_DIRINFO_SIZE, |
count | 1026 | fs/smbfs/proc.c | for (i = 0; i < count; i ++) { |
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 | 72 | fs/sysv/file.c | int sysv_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 98 | fs/sysv/file.c | if (left > count) |
count | 99 | fs/sysv/file.c | left = count; |
count | 199 | fs/sysv/file.c | static int sysv_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
count | 227 | fs/sysv/file.c | while (written<count) { |
count | 235 | fs/sysv/file.c | if (c > count-written) |
count | 236 | 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 = msdos_file_read(inode,filp,buf,count); |
count | 46 | fs/umsdos/emd.c | int count) |
count | 51 | fs/umsdos/emd.c | ret = msdos_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 = msdos_file_read(inode,filp,buf,count); |
count | 48 | fs/umsdos/file.c | int count) |
count | 50 | fs/umsdos/file.c | return msdos_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 | 119 | fs/umsdos/ioctl.c | bufk.count = 0; |
count | 122 | fs/umsdos/ioctl.c | ret = bufk.count == 1 ? 1 : 0; |
count | 61 | fs/xiafs/dir.c | struct file * filp, char * buf, int count) |
count | 70 | fs/xiafs/file.c | xiafs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 89 | fs/xiafs/file.c | if (left > count) |
count | 90 | fs/xiafs/file.c | left = count; |
count | 190 | fs/xiafs/file.c | xiafs_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
count | 214 | fs/xiafs/file.c | while (written < count) { |
count | 222 | fs/xiafs/file.c | if (c > count-written) |
count | 223 | fs/xiafs/file.c | c = count-written; |
count | 260 | include/asm-alpha/dma.h | static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count) |
count | 262 | include/asm-alpha/dma.h | count--; |
count | 264 | include/asm-alpha/dma.h | dma_outb( count & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); |
count | 265 | include/asm-alpha/dma.h | dma_outb( (count>>8) & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); |
count | 267 | include/asm-alpha/dma.h | dma_outb( (count>>1) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); |
count | 268 | include/asm-alpha/dma.h | dma_outb( (count>>9) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); |
count | 287 | include/asm-alpha/dma.h | unsigned short count; |
count | 289 | include/asm-alpha/dma.h | count = 1 + dma_inb(io_port); |
count | 290 | include/asm-alpha/dma.h | count += dma_inb(io_port) << 8; |
count | 292 | include/asm-alpha/dma.h | return (dmanr<=3)? count : (count<<1); |
count | 23 | include/asm-alpha/floppy.h | #define fd_set_dma_count(count) set_dma_count(FLOPPY_DMA,count) |
count | 87 | include/asm-alpha/hwrpb.h | unsigned long count; |
count | 184 | include/asm-alpha/io.h | extern void insb (unsigned long port, void *dst, unsigned long count); |
count | 185 | include/asm-alpha/io.h | extern void insw (unsigned long port, void *dst, unsigned long count); |
count | 186 | include/asm-alpha/io.h | extern void insl (unsigned long port, void *dst, unsigned long count); |
count | 187 | include/asm-alpha/io.h | extern void outsb (unsigned long port, const void *src, unsigned long count); |
count | 188 | include/asm-alpha/io.h | extern void outsw (unsigned long port, const void *src, unsigned long count); |
count | 189 | include/asm-alpha/io.h | extern void outsl (unsigned long port, const void *src, unsigned long count); |
count | 174 | include/asm-alpha/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 | 179 | include/asm-alpha/pgtable.h | mem_map[MAP_NR(ptep)].count++; |
count | 185 | include/asm-alpha/pgtable.h | extern inline int pmd_inuse(pmd_t *pmdp) { return mem_map[MAP_NR(pmdp)].reserved || mem_map[MAP_NR(pmdp)].count != 1; } |
count | 190 | include/asm-alpha/pgtable.h | mem_map[MAP_NR(pmdp)].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 | 146 | include/asm-i386/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 | 151 | include/asm-i386/pgtable.h | mem_map[MAP_NR(ptep)].count++; |
count | 31 | include/asm-i386/string.h | extern inline char * strncpy(char * dest,const char *src,size_t count) |
count | 45 | include/asm-i386/string.h | :"S" (src),"D" (dest),"c" (count):"si","di","ax","cx","memory"); |
count | 67 | include/asm-i386/string.h | extern inline char * strncat(char * dest,const char * src,size_t count) |
count | 84 | include/asm-i386/string.h | :"S" (src),"D" (dest),"a" (0),"c" (0xffffffff),"g" (count) |
count | 110 | include/asm-i386/string.h | extern inline int strncmp(const char * cs,const char * ct,size_t count) |
count | 127 | include/asm-i386/string.h | :"=a" (__res):"S" (cs),"D" (ct),"c" (count):"si","di","cx"); |
count | 444 | include/asm-i386/string.h | extern inline void * memchr(const void * cs,int c,size_t count) |
count | 447 | include/asm-i386/string.h | if (!count) |
count | 456 | include/asm-i386/string.h | :"=D" (__res):"a" (c),"D" (cs),"c" (count) |
count | 461 | include/asm-i386/string.h | extern inline void * __memset_generic(void * s, char c,size_t count) |
count | 468 | include/asm-i386/string.h | :"a" (c),"D" (s),"c" (count) |
count | 474 | include/asm-i386/string.h | #define __constant_count_memset(s,c,count) __memset_generic((s),(c),(count)) |
count | 481 | include/asm-i386/string.h | extern inline void * __constant_c_memset(void * s, unsigned long c, size_t count) |
count | 494 | include/asm-i386/string.h | :"a" (c), "q" (count), "c" (count/4), "D" ((long) s) |
count | 501 | include/asm-i386/string.h | extern inline size_t strnlen(const char * s, size_t count) |
count | 514 | include/asm-i386/string.h | :"=a" (__res):"c" (s),"d" (count)); |
count | 523 | include/asm-i386/string.h | extern inline void * __constant_c_and_count_memset(void * s, unsigned long pattern, size_t count) |
count | 525 | include/asm-i386/string.h | switch (count) { |
count | 547 | include/asm-i386/string.h | : "a" (pattern),"c" (count/4),"D" ((long) s) \ |
count | 550 | include/asm-i386/string.h | switch (count % 4) { |
count | 559 | include/asm-i386/string.h | #define __constant_c_x_memset(s, c, count) \ |
count | 560 | include/asm-i386/string.h | (__builtin_constant_p(count) ? \ |
count | 561 | include/asm-i386/string.h | __constant_c_and_count_memset((s),(c),(count)) : \ |
count | 562 | include/asm-i386/string.h | __constant_c_memset((s),(c),(count))) |
count | 564 | include/asm-i386/string.h | #define __memset(s, c, count) \ |
count | 565 | include/asm-i386/string.h | (__builtin_constant_p(count) ? \ |
count | 566 | include/asm-i386/string.h | __constant_count_memset((s),(c),(count)) : \ |
count | 567 | include/asm-i386/string.h | __memset_generic((s),(c),(count))) |
count | 570 | include/asm-i386/string.h | #define memset(s, c, count) \ |
count | 572 | include/asm-i386/string.h | __constant_c_x_memset((s),(0x01010101UL*(unsigned char)c),(count)) : \ |
count | 573 | include/asm-i386/string.h | __memset((s),(c),(count))) |
count | 267 | 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 | 233 | include/asm-mips/dma.h | static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count) |
count | 235 | include/asm-mips/dma.h | count--; |
count | 237 | include/asm-mips/dma.h | dma_outb( count & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); |
count | 238 | include/asm-mips/dma.h | dma_outb( (count>>8) & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); |
count | 240 | include/asm-mips/dma.h | dma_outb( (count>>1) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); |
count | 241 | include/asm-mips/dma.h | dma_outb( (count>>9) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); |
count | 260 | include/asm-mips/dma.h | unsigned short count; |
count | 262 | include/asm-mips/dma.h | count = 1 + dma_inb(io_port); |
count | 263 | include/asm-mips/dma.h | count += dma_inb(io_port) << 8; |
count | 265 | 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 | 80 | include/asm-mips/io.h | extern inline void __ins##s(unsigned int port, void * addr, unsigned long count) { |
count | 96 | include/asm-mips/io.h | : "=r" (addr), "=r" (count) \ |
count | 97 | include/asm-mips/io.h | : "0" (addr), "1" (count), "i" (0), "r" (PORT_BASE+port), "I" (i) \ |
count | 100 | include/asm-mips/io.h | : "=r" (addr), "=r" (count) \ |
count | 101 | include/asm-mips/io.h | : "0" (addr), "1" (count), "i" (port), "r" (PORT_BASE), "I" (i) \ |
count | 105 | include/asm-mips/io.h | extern inline void __outs##s(unsigned int port, const void * addr, unsigned long count) { |
count | 121 | include/asm-mips/io.h | : "=r" (addr), "=r" (count) \ |
count | 122 | include/asm-mips/io.h | : "0" (addr), "1" (count), "i" (0), "r" (PORT_BASE+port), "I" (i) \ |
count | 125 | include/asm-mips/io.h | : "=r" (addr), "=r" (count) \ |
count | 126 | include/asm-mips/io.h | : "0" (addr), "1" (count), "i" (port), "r" (PORT_BASE), "I" (i) \ |
count | 211 | include/asm-mips/io.h | #define outsb(port,addr,count) \ |
count | 213 | include/asm-mips/io.h | __outsbc((port),(addr),(count)) : \ |
count | 214 | include/asm-mips/io.h | __outsb ((port),(addr),(count))) |
count | 216 | include/asm-mips/io.h | #define insb(port,addr,count) \ |
count | 218 | include/asm-mips/io.h | __insbc((port),(addr),(count)) : \ |
count | 219 | include/asm-mips/io.h | __insb((port),(addr),(count))) |
count | 221 | include/asm-mips/io.h | #define outsw(port,addr,count) \ |
count | 223 | include/asm-mips/io.h | __outswc((port),(addr),(count)) : \ |
count | 224 | include/asm-mips/io.h | __outsw ((port),(addr),(count))) |
count | 226 | include/asm-mips/io.h | #define insw(port,addr,count) \ |
count | 228 | include/asm-mips/io.h | __inswc((port),(addr),(count)) : \ |
count | 229 | include/asm-mips/io.h | __insw((port),(addr),(count))) |
count | 231 | include/asm-mips/io.h | #define outsl(port,addr,count) \ |
count | 233 | include/asm-mips/io.h | __outslc((port),(addr),(count)) : \ |
count | 234 | include/asm-mips/io.h | __outsl ((port),(addr),(count))) |
count | 236 | include/asm-mips/io.h | #define insl(port,addr,count) \ |
count | 238 | include/asm-mips/io.h | __inslc((port),(addr),(count)) : \ |
count | 239 | include/asm-mips/io.h | __insl((port),(addr),(count))) |
count | 91 | include/asm-mips/string.h | extern __inline__ int strncmp(const char * cs, const char * ct, size_t count) |
count | 110 | include/asm-mips/string.h | : "=d" (cs), "=d" (ct), "=d" (count), "=d" (__res) |
count | 111 | include/asm-mips/string.h | : "0" (cs), "1" (ct), "2" (count) |
count | 117 | include/asm-mips/string.h | extern __inline__ void * memset(void * s, int c, size_t count) |
count | 121 | include/asm-mips/string.h | if (!count) |
count | 129 | include/asm-mips/string.h | : "=r" (s), "=r" (count) |
count | 130 | include/asm-mips/string.h | : "0" (s), "r" (c), "1" (s + count - 1) |
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 | 63 | include/asm-sparc/floppy.h | #define fd_set_dma_count(count) sun_fd_set_dma_count(count) |
count | 405 | include/asm-sparc/unistd.h | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
count | 44 | 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 | int count; /* Count of characters in bufr */ |
count | 110 | include/linux/mm.h | unsigned count:24, |
count | 190 | include/linux/mm.h | extern int vread(char *buf, char *addr, int count); |
count | 63 | include/linux/nfs_fs.h | int offset, int count, char *data, |
count | 66 | include/linux/nfs_fs.h | int offset, int count, const char *data, |
count | 86 | include/linux/nfs_fs.h | int cookie, int count, struct nfs_entry *entry); |
count | 110 | include/linux/sched.h | int count; |
count | 122 | include/linux/sched.h | int count; |
count | 134 | include/linux/sched.h | int count; |
count | 156 | include/linux/sched.h | int count; |
count | 435 | include/linux/sched.h | if (sem->count <= 0) |
count | 437 | include/linux/sched.h | sem->count--; |
count | 442 | include/linux/sched.h | sem->count++; |
count | 137 | include/linux/serial.h | int count; /* # of fd on device */ |
count | 91 | include/linux/skbuff.h | int count; /* reference count */ |
count | 132 | include/linux/smb_fs.h | off_t offset, long count, char *data, int fs); |
count | 134 | include/linux/smb_fs.h | off_t offset, long count, char *data); |
count | 136 | include/linux/smb_fs.h | off_t offset, int count, const char *data); |
count | 138 | include/linux/smb_fs.h | off_t offset, long count, const char *data); |
count | 91 | include/linux/tty.h | int count; |
count | 208 | 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 | 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 | 666 | ipc/shm.c | mem_map[MAP_NR(pte_page(pte))].count++; |
count | 766 | ipc/shm.c | mem_map[MAP_NR(pte_page(pte))].count--; |
count | 776 | ipc/shm.c | if (mem_map[MAP_NR(pte_page(page))].count != 1) |
count | 290 | kernel/exit.c | int err, retval = 0, count = 0; |
count | 298 | kernel/exit.c | ++count; |
count | 303 | kernel/exit.c | return(count ? retval : -ESRCH); |
count | 367 | kernel/exit.c | if (!--files->count) { |
count | 392 | kernel/exit.c | if (!--fs->count) { |
count | 411 | kernel/exit.c | if (!--sig->count) { |
count | 428 | kernel/exit.c | if (!--mm->count) { |
count | 118 | kernel/fork.c | current->mm->count++; |
count | 125 | kernel/fork.c | tsk->mm->count = 1; |
count | 142 | kernel/fork.c | current->fs->count++; |
count | 148 | kernel/fork.c | tsk->fs->count = 1; |
count | 162 | kernel/fork.c | current->files->count++; |
count | 168 | kernel/fork.c | tsk->files->count = 1; |
count | 183 | kernel/fork.c | current->sig->count++; |
count | 189 | kernel/fork.c | tsk->sig->count = 1; |
count | 61 | kernel/printk.c | unsigned long i, j, count; |
count | 114 | kernel/printk.c | count = len; |
count | 115 | kernel/printk.c | if (count > LOG_BUF_LEN) |
count | 116 | kernel/printk.c | count = LOG_BUF_LEN; |
count | 117 | kernel/printk.c | if (count > logged_chars) |
count | 118 | kernel/printk.c | count = logged_chars; |
count | 119 | kernel/printk.c | j = log_start + log_size - count; |
count | 120 | kernel/printk.c | for (i = 0; i < count; i++) { |
count | 416 | kernel/sched.c | while (sem->count <= 0) { |
count | 555 | kernel/sched.c | static int count = LOAD_FREQ; |
count | 557 | kernel/sched.c | if (count-- > 0) |
count | 559 | kernel/sched.c | count = LOAD_FREQ; |
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 | 11 | lib/write.c | _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
count | 163 | mm/filemap.c | mem_map[page].count++; |
count | 183 | mm/filemap.c | mem_map[MAP_NR(page)].count++; |
count | 201 | mm/kmalloc.c | static int count = 0; |
count | 202 | mm/kmalloc.c | if (++count < 5) { |
count | 200 | mm/memory.c | mem_map[MAP_NR(pte_page(pte))].count++; |
count | 532 | mm/memory.c | if (mem_map[MAP_NR(page)].count != 1) |
count | 606 | mm/memory.c | if (mem_map[MAP_NR(old_page)].count != 1) { |
count | 836 | mm/memory.c | mem_map[MAP_NR(pte_page(from))].count++; |
count | 1048 | mm/memory.c | if (mem_map[MAP_NR(pte_page(page))].count > 1 && !(vma->vm_flags & VM_SHARED)) |
count | 1123 | mm/memory.c | } else if (mem_map[MAP_NR(page)].count > 1 && !(vma->vm_flags & VM_SHARED)) |
count | 303 | mm/mmap.c | static inline void avl_rebalance (struct vm_area_struct *** nodeplaces_ptr, int count) |
count | 305 | mm/mmap.c | for ( ; count > 0 ; count--) { |
count | 454 | mm/swap.c | if (mem_map[MAP_NR(page)].count != 1) |
count | 468 | mm/swap.c | if (mem_map[MAP_NR(page)].count != 1) { |
count | 482 | mm/swap.c | entry = mem_map[MAP_NR(page)].count; |
count | 773 | mm/swap.c | if (map->count) { |
count | 776 | mm/swap.c | if (!--map->count) { |
count | 781 | mm/swap.c | if (map->count == 1) |
count | 826 | mm/swap.c | } mem_map[MAP_NR((unsigned long) addr)].count = 1; \ |
count | 838 | mm/swap.c | static int count = 0; |
count | 839 | mm/swap.c | if (++count < 5) { |
count | 1324 | mm/swap.c | p->count = 0; |
count | 324 | mm/vmalloc.c | int vread(char *buf, char *addr, int count) |
count | 333 | mm/vmalloc.c | if (count == 0) |
count | 335 | mm/vmalloc.c | put_user('\0', buf++), addr++, count--; |
count | 341 | mm/vmalloc.c | if (count == 0) |
count | 343 | mm/vmalloc.c | put_user(*addr++, buf++), count--; |
count | 79 | net/ax25/ax25_route.c | int count; |
count | 81 | net/ax25/ax25_route.c | count = 0; |
count | 85 | net/ax25/ax25_route.c | if (count == 0 || (ax25_rt->stamp.tv_sec != 0 && ax25_rt->stamp.tv_sec < oldest->stamp.tv_sec)) |
count | 95 | net/ax25/ax25_route.c | count++; |
count | 98 | net/ax25/ax25_route.c | if (count > AX25_ROUTE_MAX) { |
count | 510 | net/core/skbuff.c | static int count = 0; |
count | 511 | net/core/skbuff.c | if (++count < 5) { |
count | 546 | net/core/skbuff.c | skb->count = 1; /* only one reference to this */ |
count | 591 | net/core/skbuff.c | if (--skb->count <= 0) { |
count | 618 | net/core/skbuff.c | n->count = 1; |
count | 623 | net/core/skbuff.c | skb->count++; |
count | 347 | net/ipv4/arp.c | int count = 0; |
count | 358 | net/ipv4/arp.c | count += hh->hh_refcnt-1; |
count | 362 | net/ipv4/arp.c | return count; |
count | 347 | net/ipv4/ip_fragment.c | int count, len; |
count | 372 | net/ipv4/ip_fragment.c | count = 0; |
count | 378 | net/ipv4/ip_fragment.c | if(count+fp->len > skb->len) |
count | 387 | net/ipv4/ip_fragment.c | count += fp->len; |
count | 397 | net/ipv4/ip_fragment.c | iph->tot_len = htons((iph->ihl * 4) + count); |
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 | 75 | net/netlink.c | memcpy_fromfs(skb_put(skb,count),buf, count); |
count | 83 | net/netlink.c | static int netlink_read(struct inode * inode, struct file * file, char * buf, int count) |
count | 104 | net/netlink.c | if(skb->len<count) |
count | 105 | net/netlink.c | count=skb->len; |
count | 106 | net/netlink.c | memcpy_tofs(buf,skb->data,count); |
count | 108 | net/netlink.c | return count; |
count | 97 | net/netrom/nr_route.c | nr_neigh->count = 0; |
count | 125 | net/netrom/nr_route.c | nr_node->count = 1; |
count | 139 | net/netrom/nr_route.c | nr_neigh->count++; |
count | 144 | net/netrom/nr_route.c | for (found = 0, i = 0; i < nr_node->count; i++) { |
count | 155 | net/netrom/nr_route.c | if (nr_node->count < 3) { |
count | 163 | net/netrom/nr_route.c | nr_node->count++; |
count | 164 | net/netrom/nr_route.c | nr_neigh->count++; |
count | 172 | net/netrom/nr_route.c | nr_neigh->count++; |
count | 178 | net/netrom/nr_route.c | switch (nr_node->count) { |
count | 215 | net/netrom/nr_route.c | for (i = 0; i < nr_node->count; i++) { |
count | 310 | net/netrom/nr_route.c | for (i = 0; i < nr_node->count; i++) { |
count | 312 | net/netrom/nr_route.c | nr_neigh->count--; |
count | 314 | net/netrom/nr_route.c | if (nr_neigh->count == 0 && !nr_neigh->locked) |
count | 317 | net/netrom/nr_route.c | nr_node->count--; |
count | 319 | net/netrom/nr_route.c | if (nr_node->count == 0) { |
count | 364 | net/netrom/nr_route.c | nr_neigh->count = 0; |
count | 395 | net/netrom/nr_route.c | if (nr_neigh->count == 0) |
count | 418 | net/netrom/nr_route.c | for (i = 0; i < s->count; i++) { |
count | 432 | net/netrom/nr_route.c | t->count--; |
count | 434 | net/netrom/nr_route.c | if (t->count == 0 && !t->locked) |
count | 441 | net/netrom/nr_route.c | s->count--; |
count | 460 | net/netrom/nr_route.c | if (s->count <= 0) |
count | 487 | net/netrom/nr_route.c | for (i = 0; i < t->count; i++) { |
count | 489 | net/netrom/nr_route.c | t->count--; |
count | 502 | net/netrom/nr_route.c | if (t->count <= 0) |
count | 641 | net/netrom/nr_route.c | if (nr_node->which >= nr_node->count && nr_node->routes[nr_node->which].neighbour == nr_neigh->number) |
count | 685 | net/netrom/nr_route.c | if (nr_node == NULL || nr_node->which >= nr_node->count) |
count | 729 | net/netrom/nr_route.c | nr_node->count); |
count | 731 | net/netrom/nr_route.c | for (i = 0; i < nr_node->count; i++) { |
count | 780 | net/netrom/nr_route.c | nr_neigh->count); |