tag | line | file | source code |
cnt | 148 | arch/alpha/kernel/traps.c | static int cnt = 0; |
cnt | 151 | arch/alpha/kernel/traps.c | if (cnt >= 5 && jiffies - last_time > 5*HZ) { |
cnt | 152 | arch/alpha/kernel/traps.c | cnt = 0; |
cnt | 154 | arch/alpha/kernel/traps.c | if (++cnt < 5) { |
cnt | 206 | arch/alpha/kernel/traps.c | static int cnt = 0; |
cnt | 211 | arch/alpha/kernel/traps.c | if (cnt >= 5 && jiffies - last_time > 5*HZ) { |
cnt | 212 | arch/alpha/kernel/traps.c | cnt = 0; |
cnt | 214 | arch/alpha/kernel/traps.c | if (++cnt < 5) { |
cnt | 8 | arch/ppc/kernel/mk_ramdisk.c | int i, cnt, pos; |
cnt | 37 | arch/ppc/kernel/mk_ramdisk.c | cnt = 0; |
cnt | 41 | arch/ppc/kernel/mk_ramdisk.c | if (cnt == 0) |
cnt | 47 | arch/ppc/kernel/mk_ramdisk.c | if (++cnt == 4) |
cnt | 49 | arch/ppc/kernel/mk_ramdisk.c | cnt = 0; |
cnt | 224 | arch/ppc/kernel/process.c | int cnt = 0; |
cnt | 230 | arch/ppc/kernel/process.c | if (++cnt == 8) |
cnt | 234 | arch/ppc/kernel/process.c | if (cnt > 16) break; |
cnt | 372 | arch/sparc/kernel/sys_sunos.c | asmlinkage int sunos_getdents(unsigned int fd, void * dirent, int cnt) |
cnt | 383 | arch/sparc/kernel/sys_sunos.c | if(verify_area(VERIFY_WRITE, dirent, cnt)) |
cnt | 385 | arch/sparc/kernel/sys_sunos.c | if(cnt < (sizeof(struct sunos_dirent) + 255)) |
cnt | 390 | arch/sparc/kernel/sys_sunos.c | buf.count = cnt; |
cnt | 399 | arch/sparc/kernel/sys_sunos.c | return cnt - buf.count; |
cnt | 3026 | drivers/block/floppy.c | int cnt; |
cnt | 3040 | drivers/block/floppy.c | for (cnt = 0; cnt < N_DRIVE; cnt++){ |
cnt | 3041 | drivers/block/floppy.c | if (TYPE(drive_state[cnt].fd_device) == type && |
cnt | 3042 | drivers/block/floppy.c | drive_state[cnt].fd_ref) |
cnt | 3047 | drivers/block/floppy.c | for (cnt = type << 2; cnt < (type << 2) + 4; cnt++) |
cnt | 3048 | drivers/block/floppy.c | floppy_sizes[cnt]= floppy_sizes[cnt+0x80]= |
cnt | 3051 | drivers/block/floppy.c | for (cnt = 0; cnt < N_DRIVE; cnt++){ |
cnt | 3052 | drivers/block/floppy.c | if (TYPE(drive_state[cnt].fd_device) == type && |
cnt | 3053 | drivers/block/floppy.c | drive_state[cnt].fd_ref) |
cnt | 3056 | drivers/block/floppy.c | drive_state[cnt].fd_device)); |
cnt | 550 | drivers/char/scc.c | int cnt; |
cnt | 605 | drivers/char/scc.c | cnt = 0; |
cnt | 617 | drivers/char/scc.c | cnt++; |
cnt | 622 | drivers/char/scc.c | if (cnt < scc->stat.rxbuffers) /* hmm... hmm... :-( */ |
cnt | 623 | drivers/char/scc.c | printk("z8530drv: oops, deallocated only %d of %d rx buffers\n", cnt, scc->stat.rxbuffers); |
cnt | 624 | drivers/char/scc.c | if (cnt > scc->stat.rxbuffers) /* WHAT?!! */ |
cnt | 625 | drivers/char/scc.c | printk("z8530drv: oops, deallocated %d instead of %d rx buffers. Very strange.\n", cnt, scc->stat.rxbuffers); |
cnt | 627 | drivers/char/scc.c | cnt = 0; |
cnt | 635 | drivers/char/scc.c | cnt++; |
cnt | 640 | drivers/char/scc.c | if (cnt < scc->stat.txbuffers) |
cnt | 641 | drivers/char/scc.c | printk("z8530drv: oops, deallocated only %d of %d tx buffers\n", cnt, scc->stat.txbuffers); |
cnt | 642 | drivers/char/scc.c | if (cnt > scc->stat.txbuffers) |
cnt | 643 | drivers/char/scc.c | printk("z8530drv: oops, deallocated %d instead of %d tx buffers. Very strange.\n", cnt, scc->stat.txbuffers); |
cnt | 697 | drivers/char/scc.c | bptr->cnt = 0; |
cnt | 854 | drivers/char/scc.c | if ( scc->kiss.not_slip && (bp->cnt > 0) ) |
cnt | 857 | drivers/char/scc.c | bp->cnt--; |
cnt | 860 | drivers/char/scc.c | } while (bp->cnt < 1); |
cnt | 872 | drivers/char/scc.c | if (bp->cnt <= 0) |
cnt | 887 | drivers/char/scc.c | bp->cnt--; /* decrease byte count */ |
cnt | 1025 | drivers/char/scc.c | if (bp->cnt > scc->stat.bufsize) |
cnt | 1040 | drivers/char/scc.c | bp->cnt++; |
cnt | 1091 | drivers/char/scc.c | if (!(status & CRC_ERR) && (status & 0xe) == RES8 && bp->cnt) |
cnt | 1094 | drivers/char/scc.c | bp->cnt--; |
cnt | 1653 | drivers/char/scc.c | if (bp->cnt < 2) |
cnt | 1672 | drivers/char/scc.c | if (bp->cnt > 3) |
cnt | 1673 | drivers/char/scc.c | bp->cnt -= 2; |
cnt | 1717 | drivers/char/scc.c | if (bp->cnt > scc->stat.bufsize) |
cnt | 1723 | drivers/char/scc.c | bp->cnt++; |
cnt | 1807 | drivers/char/scc.c | if (bp->cnt <= 0) |
cnt | 1850 | drivers/char/scc.c | bp->cnt--; |
cnt | 2469 | drivers/char/scc.c | int cnt, cnt2; |
cnt | 2484 | drivers/char/scc.c | cnt = cnt2 > BUFSIZE? BUFSIZE:cnt2; |
cnt | 2485 | drivers/char/scc.c | cnt2 -= cnt; |
cnt | 2490 | drivers/char/scc.c | memcpy_fromfs(scc_wbuf, buf, cnt); |
cnt | 2494 | drivers/char/scc.c | memcpy(scc_wbuf, buf, cnt); |
cnt | 2507 | drivers/char/scc.c | buf += cnt; |
cnt | 2511 | drivers/char/scc.c | while(cnt--) |
cnt | 2565 | drivers/char/scc.c | return scc->kiss_decode_bp->cnt; |
cnt | 260 | drivers/net/de620.c | register short int cnt = 0; |
cnt | 262 | drivers/net/de620.c | while ((((value = inb(STATUS_PORT)) & READY) == 0) && (cnt <= 1000)) |
cnt | 263 | drivers/net/de620.c | ++cnt; |
cnt | 266 | drivers/net/de620.c | tot_cnt += cnt; |
cnt | 126 | drivers/net/pi2.c | int cnt; |
cnt | 543 | drivers/net/pi2.c | pkt_len = lp->rcvbuf->cnt = bytecount - 2 + 1; |
cnt | 604 | drivers/net/pi2.c | lp->rcvbuf->cnt = 0; |
cnt | 609 | drivers/net/pi2.c | } else if (lp->rcvbuf->cnt >= lp->bufsiz) { |
cnt | 613 | drivers/net/pi2.c | lp->rcvbuf->cnt = 0; |
cnt | 619 | drivers/net/pi2.c | lp->rcvbuf->cnt++; /* bump count */ |
cnt | 629 | drivers/net/pi2.c | if (lp->rcvbuf->cnt > 0) { |
cnt | 630 | drivers/net/pi2.c | if ((rse & CRC_ERR) || (lp->rstate > ACTIVE) || (lp->rcvbuf->cnt < 10)) { |
cnt | 631 | drivers/net/pi2.c | if ((lp->rcvbuf->cnt >= 10) && (rse & CRC_ERR)) { |
cnt | 635 | drivers/net/pi2.c | lp->rcvbuf->cnt = 0; |
cnt | 638 | drivers/net/pi2.c | pkt_len = lp->rcvbuf->cnt -= 2; /* Toss 2 crc bytes */ |
cnt | 664 | drivers/net/pi2.c | lp->rcvbuf->cnt = 0; |
cnt | 932 | drivers/net/pi2.c | lp->rcvbuf->cnt = 0; /* rewind on DCD transition */ |
cnt | 1069 | drivers/net/pi2.c | lp->rcvbuf->cnt = 0; |
cnt | 1327 | drivers/net/pi2.c | lp->rcvbuf->cnt = 0; |
cnt | 1614 | drivers/scsi/NCR5380.c | int cnt, toPIO; |
cnt | 1778 | drivers/scsi/NCR5380.c | cnt = toPIO = 1; |
cnt | 1781 | drivers/scsi/NCR5380.c | cnt = toPIO = 2; |
cnt | 1784 | drivers/scsi/NCR5380.c | printk("Doing %d-byte PIO to 0x%X\n", cnt, *data); |
cnt | 1786 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, phase, &cnt, data); |
cnt | 1787 | drivers/scsi/NCR5380.c | *count -= toPIO - cnt; |
cnt | 821 | drivers/sound/ad1848.c | unsigned long flags, cnt; |
cnt | 824 | drivers/sound/ad1848.c | cnt = count; |
cnt | 828 | drivers/sound/ad1848.c | cnt /= 4; |
cnt | 833 | drivers/sound/ad1848.c | cnt >>= 1; |
cnt | 836 | drivers/sound/ad1848.c | cnt >>= 1; |
cnt | 837 | drivers/sound/ad1848.c | cnt--; |
cnt | 841 | drivers/sound/ad1848.c | cnt == devc->xfer_count) |
cnt | 858 | drivers/sound/ad1848.c | ad_write (devc, 15, (unsigned char) (cnt & 0xff)); |
cnt | 859 | drivers/sound/ad1848.c | ad_write (devc, 14, (unsigned char) ((cnt >> 8) & 0xff)); |
cnt | 864 | drivers/sound/ad1848.c | devc->xfer_count = cnt; |
cnt | 873 | drivers/sound/ad1848.c | unsigned long flags, cnt; |
cnt | 876 | drivers/sound/ad1848.c | cnt = count; |
cnt | 879 | drivers/sound/ad1848.c | cnt /= 4; |
cnt | 884 | drivers/sound/ad1848.c | cnt >>= 1; |
cnt | 887 | drivers/sound/ad1848.c | cnt >>= 1; |
cnt | 888 | drivers/sound/ad1848.c | cnt--; |
cnt | 892 | drivers/sound/ad1848.c | cnt == devc->xfer_count) |
cnt | 911 | drivers/sound/ad1848.c | ad_write (devc, 15, (unsigned char) (cnt & 0xff)); |
cnt | 912 | drivers/sound/ad1848.c | ad_write (devc, 14, (unsigned char) ((cnt >> 8) & 0xff)); |
cnt | 917 | drivers/sound/ad1848.c | ad_write (devc, 31, (unsigned char) (cnt & 0xff)); |
cnt | 918 | drivers/sound/ad1848.c | ad_write (devc, 30, (unsigned char) ((cnt >> 8) & 0xff)); |
cnt | 924 | drivers/sound/ad1848.c | devc->xfer_count = cnt; |
cnt | 268 | drivers/sound/pas2_pcm.c | unsigned long flags, cnt; |
cnt | 272 | drivers/sound/pas2_pcm.c | cnt = count; |
cnt | 274 | drivers/sound/pas2_pcm.c | cnt >>= 1; |
cnt | 278 | drivers/sound/pas2_pcm.c | cnt == pcm_count) |
cnt | 318 | drivers/sound/pas2_pcm.c | int cnt; |
cnt | 322 | drivers/sound/pas2_pcm.c | cnt = count; |
cnt | 324 | drivers/sound/pas2_pcm.c | cnt >>= 1; |
cnt | 328 | drivers/sound/pas2_pcm.c | cnt == pcm_count) |
cnt | 266 | drivers/sound/sb16_dsp.c | unsigned long flags, cnt; |
cnt | 268 | drivers/sound/sb16_dsp.c | cnt = count; |
cnt | 270 | drivers/sound/sb16_dsp.c | cnt >>= 1; |
cnt | 271 | drivers/sound/sb16_dsp.c | cnt--; |
cnt | 291 | drivers/sound/sb16_dsp.c | cnt == dsp_count) |
cnt | 311 | drivers/sound/sb16_dsp.c | dsp_count = cnt; |
cnt | 314 | drivers/sound/sb16_dsp.c | sb_dsp_command01 ((unsigned char) (cnt & 0xff)); |
cnt | 315 | drivers/sound/sb16_dsp.c | sb_dsp_command ((unsigned char) (cnt >> 8)); |
cnt | 325 | drivers/sound/sb16_dsp.c | unsigned long flags, cnt; |
cnt | 327 | drivers/sound/sb16_dsp.c | cnt = count; |
cnt | 329 | drivers/sound/sb16_dsp.c | cnt >>= 1; |
cnt | 330 | drivers/sound/sb16_dsp.c | cnt--; |
cnt | 350 | drivers/sound/sb16_dsp.c | cnt == dsp_count) |
cnt | 371 | drivers/sound/sb16_dsp.c | dsp_count = cnt; |
cnt | 374 | drivers/sound/sb16_dsp.c | sb_dsp_command01 ((unsigned char) (cnt & 0xff)); |
cnt | 375 | drivers/sound/sb16_dsp.c | sb_dsp_command ((unsigned char) (cnt >> 8)); |
cnt | 135 | fs/dquot.c | int cnt; |
cnt | 140 | fs/dquot.c | cnt = PAGE_SIZE / sizeof(struct dquot); |
cnt | 141 | fs/dquot.c | nr_dquots += cnt; |
cnt | 142 | fs/dquot.c | nr_free_dquots += cnt; |
cnt | 145 | fs/dquot.c | cnt--; |
cnt | 147 | fs/dquot.c | for (; cnt; cnt--) |
cnt | 297 | fs/dquot.c | int cnt; |
cnt | 300 | fs/dquot.c | for (cnt = nr_dquots ; cnt > 0 ; cnt--) { |
cnt | 487 | fs/dquot.c | int cnt; |
cnt | 495 | fs/dquot.c | for (cnt = 0; cnt < nr_dquots; dquot = dquot->dq_next, cnt++) { |
cnt | 680 | fs/dquot.c | short cnt; |
cnt | 683 | fs/dquot.c | for (cnt = 0; cnt < MAXQUOTAS; cnt++) { |
cnt | 684 | fs/dquot.c | if (type != -1 && cnt != type) |
cnt | 686 | fs/dquot.c | if (!has_quota_enabled(inode->i_dev, cnt)) |
cnt | 688 | fs/dquot.c | if (inode->i_dquot[cnt] == NODQUOT) { |
cnt | 689 | fs/dquot.c | switch (cnt) { |
cnt | 697 | fs/dquot.c | inode->i_dquot[cnt] = dqget(inode->i_dev, id, cnt); |
cnt | 706 | fs/dquot.c | short cnt; |
cnt | 708 | fs/dquot.c | for (cnt = 0; cnt < MAXQUOTAS; cnt++) { |
cnt | 709 | fs/dquot.c | if (inode->i_dquot[cnt] == NODQUOT) |
cnt | 711 | fs/dquot.c | dqput(inode->i_dquot[cnt]); |
cnt | 712 | fs/dquot.c | inode->i_dquot[cnt] = NODQUOT; |
cnt | 746 | fs/dquot.c | unsigned short cnt; |
cnt | 748 | fs/dquot.c | for (cnt = 0; cnt < MAXQUOTAS; cnt++) { |
cnt | 749 | fs/dquot.c | if (inode->i_dquot[cnt] == NODQUOT) |
cnt | 751 | fs/dquot.c | if (check_bdq(inode->i_dquot[cnt], cnt, number)) |
cnt | 754 | fs/dquot.c | for (cnt = 0; cnt < MAXQUOTAS; cnt++) { |
cnt | 755 | fs/dquot.c | if (inode->i_dquot[cnt] == NODQUOT) |
cnt | 757 | fs/dquot.c | dquot_incr_blocks(inode->i_dquot[cnt], number); |
cnt | 764 | fs/dquot.c | unsigned short cnt; |
cnt | 766 | fs/dquot.c | for (cnt = 0; cnt < MAXQUOTAS; cnt++) { |
cnt | 767 | fs/dquot.c | if (inode->i_dquot[cnt] == NODQUOT) |
cnt | 769 | fs/dquot.c | if (check_idq(inode->i_dquot[cnt], cnt, number)) |
cnt | 772 | fs/dquot.c | for (cnt = 0; cnt < MAXQUOTAS; cnt++) { |
cnt | 773 | fs/dquot.c | if (inode->i_dquot[cnt] == NODQUOT) |
cnt | 775 | fs/dquot.c | dquot_incr_inodes(inode->i_dquot[cnt], number); |
cnt | 782 | fs/dquot.c | unsigned short cnt; |
cnt | 784 | fs/dquot.c | for (cnt = 0; cnt < MAXQUOTAS; cnt++) { |
cnt | 785 | fs/dquot.c | if (inode->i_dquot[cnt] == NODQUOT) |
cnt | 787 | fs/dquot.c | dquot_decr_blocks(inode->i_dquot[cnt], number); |
cnt | 793 | fs/dquot.c | unsigned short cnt; |
cnt | 795 | fs/dquot.c | for (cnt = 0; cnt < MAXQUOTAS; cnt++) { |
cnt | 796 | fs/dquot.c | if (inode->i_dquot[cnt] == NODQUOT) |
cnt | 798 | fs/dquot.c | dquot_decr_inodes(inode->i_dquot[cnt], number); |
cnt | 810 | fs/dquot.c | short cnt, disc; |
cnt | 824 | fs/dquot.c | for (cnt = 0; cnt < MAXQUOTAS; cnt++) { |
cnt | 825 | fs/dquot.c | transfer_from[cnt] = NODQUOT; |
cnt | 826 | fs/dquot.c | transfer_to[cnt] = NODQUOT; |
cnt | 828 | fs/dquot.c | if (!has_quota_enabled(inode->i_dev, cnt)) |
cnt | 831 | fs/dquot.c | switch (cnt) { |
cnt | 835 | fs/dquot.c | transfer_from[cnt] = dqget(inode->i_dev, (direction) ? iattr->ia_uid : inode->i_uid, cnt); |
cnt | 836 | fs/dquot.c | transfer_to[cnt] = dqget(inode->i_dev, (direction) ? inode->i_uid : iattr->ia_uid, cnt); |
cnt | 841 | fs/dquot.c | transfer_from[cnt] = dqget(inode->i_dev, (direction) ? iattr->ia_gid : inode->i_gid, cnt); |
cnt | 842 | fs/dquot.c | transfer_to[cnt] = dqget(inode->i_dev, (direction) ? inode->i_gid : iattr->ia_gid, cnt); |
cnt | 846 | fs/dquot.c | if (check_idq(transfer_to[cnt], cnt, 1) == NO_QUOTA || |
cnt | 847 | fs/dquot.c | check_bdq(transfer_to[cnt], cnt, blocks) == NO_QUOTA) { |
cnt | 848 | fs/dquot.c | for (disc = 0; disc <= cnt; disc++) { |
cnt | 860 | fs/dquot.c | for (cnt = 0; cnt < MAXQUOTAS; cnt++) { |
cnt | 864 | fs/dquot.c | if (transfer_from[cnt] == NODQUOT && transfer_to[cnt] == NODQUOT) |
cnt | 867 | fs/dquot.c | if (transfer_from[cnt] != NODQUOT) { |
cnt | 868 | fs/dquot.c | dquot_decr_inodes(transfer_from[cnt], 1); |
cnt | 869 | fs/dquot.c | dquot_decr_blocks(transfer_from[cnt], blocks); |
cnt | 871 | fs/dquot.c | if (transfer_to[cnt] != NODQUOT) { |
cnt | 872 | fs/dquot.c | dquot_incr_inodes(transfer_to[cnt], 1); |
cnt | 873 | fs/dquot.c | dquot_incr_blocks(transfer_to[cnt], blocks); |
cnt | 875 | fs/dquot.c | if (inode->i_dquot[cnt] != NODQUOT) { |
cnt | 876 | fs/dquot.c | dqput(transfer_from[cnt]); |
cnt | 877 | fs/dquot.c | dqput(inode->i_dquot[cnt]); |
cnt | 878 | fs/dquot.c | inode->i_dquot[cnt] = transfer_to[cnt]; |
cnt | 880 | fs/dquot.c | dqput(transfer_from[cnt]); |
cnt | 881 | fs/dquot.c | dqput(transfer_to[cnt]); |
cnt | 914 | fs/dquot.c | short cnt; |
cnt | 916 | fs/dquot.c | for (cnt = 0; cnt < MAXQUOTAS; cnt++) { |
cnt | 917 | fs/dquot.c | if (type != -1 && cnt != type) |
cnt | 920 | fs/dquot.c | vfsmnt->mnt_quotas[cnt] == (struct file *)NULL) |
cnt | 923 | fs/dquot.c | reset_dquot_ptrs(dev, cnt); |
cnt | 924 | fs/dquot.c | invalidate_dquots(dev, cnt); |
cnt | 925 | fs/dquot.c | close_fp(vfsmnt->mnt_quotas[cnt]); |
cnt | 926 | fs/dquot.c | vfsmnt->mnt_quotas[cnt] = (struct file *)NULL; |
cnt | 927 | fs/dquot.c | vfsmnt->mnt_iexp[cnt] = vfsmnt->mnt_bexp[cnt] = (time_t)NULL; |
cnt | 126 | fs/file_table.c | int cnt; |
cnt | 128 | fs/file_table.c | for (filp = first_file, cnt = 0; cnt < nr_files; cnt++, filp = filp->f_next) { |
cnt | 141 | fs/file_table.c | int cnt; |
cnt | 143 | fs/file_table.c | for (filp = first_file, cnt = 0; cnt < nr_files; cnt++, filp = filp->f_next) { |
cnt | 265 | fs/isofs/rock.c | int cnt, sig; |
cnt | 322 | fs/isofs/rock.c | cnt = 0; /* Rock ridge never appears on a High Sierra disk */ |
cnt | 324 | fs/isofs/rock.c | inode->i_ctime = iso_date(rr->u.TF.times[cnt++].time, 0); |
cnt | 326 | fs/isofs/rock.c | inode->i_mtime = iso_date(rr->u.TF.times[cnt++].time, 0); |
cnt | 328 | fs/isofs/rock.c | inode->i_atime = iso_date(rr->u.TF.times[cnt++].time, 0); |
cnt | 330 | fs/isofs/rock.c | inode->i_ctime = iso_date(rr->u.TF.times[cnt++].time, 0); |
cnt | 33 | include/asm-sparc/dma.h | volatile unsigned long cnt; /* How many bytes to transfer */ |
cnt | 132 | include/linux/scc.h | int cnt; /* Number of bytes stored in buffer */ |