tag | line | file | source code |
cnt | 184 | arch/alpha/kernel/traps.c | static int cnt = 0; |
cnt | 187 | arch/alpha/kernel/traps.c | if (cnt >= 5 && jiffies - last_time > 5*HZ) { |
cnt | 188 | arch/alpha/kernel/traps.c | cnt = 0; |
cnt | 190 | arch/alpha/kernel/traps.c | if (++cnt < 5) { |
cnt | 284 | arch/alpha/kernel/traps.c | static int cnt = 0; |
cnt | 291 | arch/alpha/kernel/traps.c | if (cnt >= 5 && jiffies - last_time > 5*HZ) { |
cnt | 292 | arch/alpha/kernel/traps.c | cnt = 0; |
cnt | 294 | arch/alpha/kernel/traps.c | if (++cnt < 5) { |
cnt | 23 | arch/m68k/amiga/amipart.c | int cnt; |
cnt | 25 | arch/m68k/amiga/amipart.c | for (sum = 0, cnt = 0; cnt < len; cnt++) |
cnt | 26 | arch/m68k/amiga/amipart.c | sum += ptr[cnt]; |
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 | 229 | arch/ppc/kernel/process.c | int cnt = 0; |
cnt | 235 | arch/ppc/kernel/process.c | if (++cnt == 8) |
cnt | 239 | arch/ppc/kernel/process.c | if (cnt > 16) break; |
cnt | 388 | arch/sparc/kernel/sys_sunos.c | asmlinkage int sunos_getdents(unsigned int fd, void * dirent, int cnt) |
cnt | 399 | arch/sparc/kernel/sys_sunos.c | if(verify_area(VERIFY_WRITE, dirent, cnt)) |
cnt | 401 | arch/sparc/kernel/sys_sunos.c | if(cnt < (sizeof(struct sunos_dirent) + 255)) |
cnt | 406 | arch/sparc/kernel/sys_sunos.c | buf.count = cnt; |
cnt | 415 | arch/sparc/kernel/sys_sunos.c | return cnt - buf.count; |
cnt | 457 | arch/sparc/kernel/sys_sunos.c | asmlinkage int sunos_getdirentries(unsigned int fd, void * dirent, int cnt, unsigned int *basep) |
cnt | 468 | arch/sparc/kernel/sys_sunos.c | if(verify_area(VERIFY_WRITE, dirent, cnt) || |
cnt | 471 | arch/sparc/kernel/sys_sunos.c | if(cnt < (sizeof(struct sunos_direntry) + 255)) |
cnt | 476 | arch/sparc/kernel/sys_sunos.c | buf.count = cnt; |
cnt | 485 | arch/sparc/kernel/sys_sunos.c | return cnt - buf.count; |
cnt | 1511 | arch/sparc/mm/sun4c.c | int i, cnt; |
cnt | 1540 | arch/sparc/mm/sun4c.c | cnt = 0; |
cnt | 1543 | arch/sparc/mm/sun4c.c | cnt++; |
cnt | 1544 | arch/sparc/mm/sun4c.c | printk("SUN4C: %d mmu entries for the kernel\n", cnt); |
cnt | 408 | drivers/block/amiflop.c | int cnt; |
cnt | 419 | drivers/block/amiflop.c | cnt = unit[drive].track/2 - track/2; |
cnt | 424 | drivers/block/amiflop.c | if (cnt < 0) { |
cnt | 425 | drivers/block/amiflop.c | cnt = - cnt; |
cnt | 432 | drivers/block/amiflop.c | if (cnt == 0) |
cnt | 441 | drivers/block/amiflop.c | } while (--cnt != 0); |
cnt | 463 | drivers/block/amiflop.c | int cnt, to_cnt = 0; |
cnt | 467 | drivers/block/amiflop.c | for (cnt = 0; cnt < len / 4; cnt++) { |
cnt | 468 | drivers/block/amiflop.c | data = src[cnt] >> 1; |
cnt | 473 | drivers/block/amiflop.c | for (cnt = 0; cnt < len / 4; cnt++) { |
cnt | 474 | drivers/block/amiflop.c | data = src[cnt]; |
cnt | 501 | drivers/block/amiflop.c | static unsigned long *putsec(int disk, unsigned long *raw, int track, int cnt, |
cnt | 517 | drivers/block/amiflop.c | hdr.sect = cnt; |
cnt | 518 | drivers/block/amiflop.c | hdr.ord = unit[disk].sects-cnt; |
cnt | 546 | drivers/block/amiflop.c | int cnt; |
cnt | 551 | drivers/block/amiflop.c | for (cnt = 0; cnt < 415 * unit[disk].type->sect_mult; cnt++) |
cnt | 555 | drivers/block/amiflop.c | for (cnt = 0; cnt < unit[disk].sects; cnt++) |
cnt | 556 | drivers/block/amiflop.c | ptr = putsec (disk, ptr, track, cnt, data + cnt*512); |
cnt | 954 | drivers/block/amiflop.c | static unsigned long *ms_putsec(int drive, unsigned long *raw, int track, int cnt, |
cnt | 974 | drivers/block/amiflop.c | hdr.sec=cnt+1; |
cnt | 1012 | drivers/block/amiflop.c | int cnt; |
cnt | 1017 | drivers/block/amiflop.c | for (cnt=0;cnt<425;cnt++) |
cnt | 1022 | drivers/block/amiflop.c | for(cnt=0;cnt<473;cnt++) |
cnt | 1026 | drivers/block/amiflop.c | for (cnt=0;cnt<20;cnt++) |
cnt | 1028 | drivers/block/amiflop.c | for (cnt=0;cnt<6;cnt++) |
cnt | 1032 | drivers/block/amiflop.c | for (cnt=0;cnt<20;cnt++) |
cnt | 1036 | drivers/block/amiflop.c | for(cnt=0;cnt<unit[disk].sects;cnt++) |
cnt | 1037 | drivers/block/amiflop.c | ptr=ms_putsec(disk,ptr,track,cnt,data+cnt*512); |
cnt | 1110 | drivers/block/amiflop.c | int cnt; |
cnt | 1115 | drivers/block/amiflop.c | for (cnt = 0; cnt < 512/4; cnt++) |
cnt | 1247 | drivers/block/amiflop.c | int device, drive, cnt; |
cnt | 1299 | drivers/block/amiflop.c | for (cnt = 0; cnt < CURRENT->current_nr_sectors; cnt++) { |
cnt | 1301 | drivers/block/amiflop.c | printk("fd: sector %d + %d requested\n",CURRENT->sector,cnt); |
cnt | 1303 | drivers/block/amiflop.c | block = CURRENT->sector + cnt; |
cnt | 1311 | drivers/block/amiflop.c | data = CURRENT->buffer + 512 * cnt; |
cnt | 1388 | drivers/block/ataflop.c | int cnt; |
cnt | 1390 | drivers/block/ataflop.c | for( cnt = 512/4; cnt; cnt-- ) |
cnt | 1709 | drivers/block/ataflop.c | int drive, cnt = 0; |
cnt | 1720 | drivers/block/ataflop.c | ++cnt; |
cnt | 1737 | drivers/block/ataflop.c | if (cnt > 0) { |
cnt | 1739 | drivers/block/ataflop.c | if (cnt == 1) fd_select_drive( 0 ); |
cnt | 3142 | drivers/block/floppy.c | int cnt; |
cnt | 3156 | drivers/block/floppy.c | for (cnt = 0; cnt < N_DRIVE; cnt++){ |
cnt | 3157 | drivers/block/floppy.c | if (ITYPE(drive_state[cnt].fd_device) == type && |
cnt | 3158 | drivers/block/floppy.c | drive_state[cnt].fd_ref) |
cnt | 3163 | drivers/block/floppy.c | for (cnt = type << 2; cnt < (type << 2) + 4; cnt++) |
cnt | 3164 | drivers/block/floppy.c | floppy_sizes[cnt]= floppy_sizes[cnt+0x80]= |
cnt | 3167 | drivers/block/floppy.c | for (cnt = 0; cnt < N_DRIVE; cnt++){ |
cnt | 3168 | drivers/block/floppy.c | if (ITYPE(drive_state[cnt].fd_device) == type && |
cnt | 3169 | drivers/block/floppy.c | drive_state[cnt].fd_ref) |
cnt | 3172 | drivers/block/floppy.c | drive_state[cnt].fd_device)); |
cnt | 581 | drivers/char/ftape/ftape-read.c | int cnt; |
cnt | 650 | drivers/char/ftape/ftape-read.c | cnt = (buf_len_rd < to_do) ? buf_len_rd : to_do; |
cnt | 651 | drivers/char/ftape/ftape-read.c | TRACEi(7, "nr bytes just read:", cnt); |
cnt | 652 | drivers/char/ftape/ftape-read.c | if (cnt > 0) { |
cnt | 653 | drivers/char/ftape/ftape-read.c | result = verify_area(VERIFY_WRITE, buff, cnt); |
cnt | 659 | drivers/char/ftape/ftape-read.c | memcpy_tofs(buff, deblock_buffer + buf_pos_rd, cnt); |
cnt | 660 | drivers/char/ftape/ftape-read.c | buff += cnt; |
cnt | 661 | drivers/char/ftape/ftape-read.c | to_do -= cnt; /* what's left from req_len */ |
cnt | 662 | drivers/char/ftape/ftape-read.c | remaining -= cnt; /* what remains on this tape */ |
cnt | 663 | drivers/char/ftape/ftape-read.c | bytes_read += cnt; /* what we got so far */ |
cnt | 664 | drivers/char/ftape/ftape-read.c | buf_pos_rd += cnt; /* index in buffer */ |
cnt | 665 | drivers/char/ftape/ftape-read.c | buf_len_rd -= cnt; /* remaining bytes in buffer */ |
cnt | 593 | drivers/char/ftape/ftape-write.c | int cnt; |
cnt | 633 | drivers/char/ftape/ftape-write.c | cnt = (req_len < space_left) ? req_len : space_left; |
cnt | 634 | drivers/char/ftape/ftape-write.c | if (cnt > 0) { |
cnt | 635 | drivers/char/ftape/ftape-write.c | result = verify_area(VERIFY_READ, buff, cnt); |
cnt | 642 | drivers/char/ftape/ftape-write.c | memcpy_fromfs(deblock_buffer + buf_pos_wr, buff, cnt); |
cnt | 643 | drivers/char/ftape/ftape-write.c | buff += cnt; |
cnt | 644 | drivers/char/ftape/ftape-write.c | req_len -= cnt; |
cnt | 645 | drivers/char/ftape/ftape-write.c | buf_pos_wr += cnt; |
cnt | 647 | drivers/char/ftape/ftape-write.c | TRACEi(7, "moved into blocking buffer:", cnt); |
cnt | 653 | drivers/char/ftape/ftape-write.c | TRACEi(7, "just written bytes:", written + cnt); |
cnt | 655 | drivers/char/ftape/ftape-write.c | return written + cnt; |
cnt | 689 | drivers/char/ftape/ftape-write.c | written += cnt; |
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 | 293 | drivers/isdn/icn/icn.c | int cnt; |
cnt | 303 | drivers/isdn/icn/icn.c | cnt = rbuf_l; |
cnt | 304 | drivers/isdn/icn/icn.c | if ((dev->rcvidx[channel] + cnt) > 4000) { |
cnt | 310 | drivers/isdn/icn/icn.c | memcpy(&dev->rcvbuf[channel][dev->rcvidx[channel]], rbuf_d, cnt); |
cnt | 311 | drivers/isdn/icn/icn.c | dev->rcvidx[channel] += cnt; |
cnt | 359 | drivers/isdn/icn/icn.c | int cnt; |
cnt | 370 | drivers/isdn/icn/icn.c | cnt = |
cnt | 373 | drivers/isdn/icn/icn.c | memcpy(sbuf_d, dev->spqueue[channel]->rptr, cnt); |
cnt | 376 | drivers/isdn/icn/icn.c | dev->spqueue[channel]->rptr += cnt; |
cnt | 377 | drivers/isdn/icn/icn.c | eflag = ((dev->spqueue[channel]->length -= cnt) == 0); |
cnt | 381 | drivers/isdn/icn/icn.c | dev->sndcount[channel] -= cnt; |
cnt | 866 | drivers/isdn/icn/icn.c | uint cnt; |
cnt | 889 | drivers/isdn/icn/icn.c | cnt = MIN(256, left); |
cnt | 890 | drivers/isdn/icn/icn.c | memcpy_fromfs(&sbuf_l, p, cnt); /* copy data */ |
cnt | 892 | drivers/isdn/icn/icn.c | p += cnt; |
cnt | 893 | drivers/isdn/icn/icn.c | left -= cnt; |
cnt | 967 | drivers/isdn/isdn_ppp.c | long cnt, flags; |
cnt | 1022 | drivers/isdn/isdn_ppp.c | cnt = q1->sqno; |
cnt | 1024 | drivers/isdn/isdn_ppp.c | cnt++; |
cnt | 1025 | drivers/isdn/isdn_ppp.c | if (!(q->next) || q->next->sqno != cnt) { |
cnt | 1037 | drivers/isdn/isdn_ppp.c | cnt = q1->sqno; |
cnt | 1039 | drivers/isdn/isdn_ppp.c | cnt--; |
cnt | 1040 | drivers/isdn/isdn_ppp.c | if (!(q->last) || q->last->sqno != cnt) { |
cnt | 1075 | drivers/isdn/isdn_ppp.c | cnt = 0; |
cnt | 1079 | drivers/isdn/isdn_ppp.c | memcpy((*skb)->data + cnt, q->skb->data, q->skb->len); |
cnt | 1080 | drivers/isdn/isdn_ppp.c | cnt += q->skb->len; |
cnt | 1884 | drivers/isdn/isdn_tty.c | int cnt; |
cnt | 1886 | drivers/isdn/isdn_tty.c | for (cnt = count; cnt > 0; p++, 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 | 123 | drivers/net/dgrs_ether.h | extern void eth_xmit_spew_on(PORT *p, int cnt); |
cnt | 817 | drivers/net/ni52.c | int cnt=0; |
cnt | 870 | drivers/net/ni52.c | printk("%d",cnt++); |
cnt | 893 | drivers/net/ni52.c | int status,cnt=0; |
cnt | 962 | drivers/net/ni52.c | printk("%d",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 | 99 | drivers/net/pt.c | int cnt; |
cnt | 723 | drivers/net/pt.c | lp->rcvbuf->cnt = 0; |
cnt | 796 | drivers/net/pt.c | lp->rcvbuf->cnt = 0; |
cnt | 1299 | drivers/net/pt.c | lp->rcvbuf->cnt = 0; |
cnt | 1303 | drivers/net/pt.c | } else if (lp->rcvbuf->cnt >= lp->bufsiz) |
cnt | 1309 | drivers/net/pt.c | lp->rcvbuf->cnt = 0; |
cnt | 1316 | drivers/net/pt.c | lp->rcvbuf->cnt++; |
cnt | 1336 | drivers/net/pt.c | printk("PTd pt_rxisr() Got end of a %u byte frame.\n", lp->rcvbuf->cnt); |
cnt | 1343 | drivers/net/pt.c | bytecount = lp->rcvbuf->cnt; |
cnt | 1347 | drivers/net/pt.c | if (lp->rcvbuf->cnt > 0 || lp->dmachan) |
cnt | 1367 | drivers/net/pt.c | lp->rcvbuf->cnt = 0; |
cnt | 1380 | drivers/net/pt.c | pkt_len = lp->rcvbuf->cnt = bytecount - 2 +1; |
cnt | 1386 | drivers/net/pt.c | pkt_len = lp->rcvbuf->cnt -= 2; /* Toss 2 CRC bytes */ |
cnt | 1419 | drivers/net/pt.c | lp->rcvbuf->cnt = 0; |
cnt | 1757 | drivers/net/pt.c | lp->rcvbuf->cnt = 0; |
cnt | 1773 | drivers/net/pt.c | if (lp->rcvbuf->cnt > 0) |
cnt | 1776 | drivers/net/pt.c | printk("PTd pt_exisr() dumping %u bytes from buffer.\n", lp->rcvbuf->cnt); |
cnt | 1780 | drivers/net/pt.c | lp->rcvbuf->cnt = 0; |
cnt | 1791 | drivers/net/pt.c | lp->rcvbuf->cnt = 0; |
cnt | 30 | drivers/sbus/dvma.c | (unsigned long) dregs->cnt, |
cnt | 2008 | drivers/scsi/NCR5380.c | int cnt, toPIO; |
cnt | 2178 | drivers/scsi/NCR5380.c | cnt = toPIO = 1; |
cnt | 2181 | drivers/scsi/NCR5380.c | cnt = toPIO = 2; |
cnt | 2184 | drivers/scsi/NCR5380.c | printk("Doing %d-byte PIO to 0x%X\n", cnt, *data); |
cnt | 2186 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, phase, &cnt, data); |
cnt | 2187 | drivers/scsi/NCR5380.c | *count -= toPIO - cnt; |
cnt | 2615 | drivers/scsi/advansys.c | int cnt; |
cnt | 2661 | drivers/scsi/advansys.c | cnt = asc_proc_copy(advoffset, offset, curbuf, leftlen, cp, cplen); |
cnt | 2662 | drivers/scsi/advansys.c | totcnt += cnt; |
cnt | 2663 | drivers/scsi/advansys.c | leftlen -= cnt; |
cnt | 2669 | drivers/scsi/advansys.c | curbuf += cnt; |
cnt | 2677 | drivers/scsi/advansys.c | cnt = asc_proc_copy(advoffset, offset, curbuf, leftlen, cp, cplen); |
cnt | 2678 | drivers/scsi/advansys.c | totcnt += cnt; |
cnt | 2679 | drivers/scsi/advansys.c | leftlen -= cnt; |
cnt | 2685 | drivers/scsi/advansys.c | curbuf += cnt; |
cnt | 2691 | drivers/scsi/advansys.c | cnt = asc_proc_copy(advoffset, offset, curbuf, leftlen, cp, cplen); |
cnt | 2692 | drivers/scsi/advansys.c | totcnt += cnt; |
cnt | 2693 | drivers/scsi/advansys.c | leftlen -= cnt; |
cnt | 2699 | drivers/scsi/advansys.c | curbuf += cnt; |
cnt | 2712 | drivers/scsi/advansys.c | cnt = asc_proc_copy(advoffset, offset, curbuf, leftlen, cp, cplen); |
cnt | 2713 | drivers/scsi/advansys.c | totcnt += cnt; |
cnt | 2714 | drivers/scsi/advansys.c | leftlen -= cnt; |
cnt | 2720 | drivers/scsi/advansys.c | curbuf += cnt; |
cnt | 3553 | drivers/scsi/advansys.c | int cnt = 0; |
cnt | 3559 | drivers/scsi/advansys.c | cnt = min(cplen, leftlen); |
cnt | 3561 | drivers/scsi/advansys.c | (unsigned) curbuf, (unsigned) cp, cnt); |
cnt | 3562 | drivers/scsi/advansys.c | memcpy(curbuf, cp, cnt); |
cnt | 3565 | drivers/scsi/advansys.c | cnt = (advoffset + cplen) - offset; |
cnt | 3566 | drivers/scsi/advansys.c | cp = (cp + cplen) - cnt; |
cnt | 3567 | drivers/scsi/advansys.c | cnt = min(cnt, leftlen); |
cnt | 3569 | drivers/scsi/advansys.c | (unsigned) curbuf, (unsigned) cp, cnt); |
cnt | 3570 | drivers/scsi/advansys.c | memcpy(curbuf, cp, cnt); |
cnt | 3572 | drivers/scsi/advansys.c | return cnt; |
cnt | 533 | drivers/scsi/atari_NCR5380.c | int cnt = 1; |
cnt | 543 | drivers/scsi/atari_NCR5380.c | ++cnt; |
cnt | 553 | drivers/scsi/atari_NCR5380.c | cnt, (long)(cmd->SCp.ptr), cmd->SCp.this_residual ); |
cnt | 1272 | drivers/scsi/atari_NCR5380.c | int transfered, saved_data = 0, overrun = 0, cnt, toPIO; |
cnt | 1318 | drivers/scsi/atari_NCR5380.c | cnt = toPIO = atari_read_overruns; |
cnt | 1325 | drivers/scsi/atari_NCR5380.c | cnt--; |
cnt | 1329 | drivers/scsi/atari_NCR5380.c | printk( "Doing %d-byte PIO to 0x%08lx\n", cnt, (long)*data ); |
cnt | 1332 | drivers/scsi/atari_NCR5380.c | NCR5380_transfer_pio(instance, &p, &cnt, data); |
cnt | 1333 | drivers/scsi/atari_NCR5380.c | *count -= toPIO - cnt; |
cnt | 725 | drivers/scsi/in2000.c | void transfer_pio(uchar *buf, int cnt, |
cnt | 730 | drivers/scsi/in2000.c | DB(DB_TRANSFER,printk("(%p,%d,%s)",buf,cnt,data_in_dir?"in":"out")) |
cnt | 733 | drivers/scsi/in2000.c | write_3393_count(hostdata,cnt); |
cnt | 252 | drivers/scsi/ppa.c | int dir, cnt, blen, fast, bulk; |
cnt | 264 | drivers/scsi/ppa.c | cnt = 0; dir = 0; |
cnt | 270 | drivers/scsi/ppa.c | if (((r & 0xc0) != 0xc0 ) || (cnt >= blen)) { |
cnt | 275 | drivers/scsi/ppa.c | fast = bulk && ((blen - cnt) >= PPA_SECTOR_SIZE); |
cnt | 277 | drivers/scsi/ppa.c | out_p(0,buffer[cnt++]); |
cnt | 280 | drivers/scsi/ppa.c | } while (cnt % PPA_SECTOR_SIZE); |
cnt | 286 | drivers/scsi/ppa.c | buffer[cnt++] = v; |
cnt | 288 | drivers/scsi/ppa.c | } while (cnt % PPA_SECTOR_SIZE); |
cnt | 291 | drivers/scsi/ppa.c | buffer[cnt++] = v; |
cnt | 293 | drivers/scsi/ppa.c | } while (cnt % PPA_SECTOR_SIZE); |
cnt | 315 | drivers/scsi/ppa.c | printk("PPA: status: %x, data[%d]: ",r & STATUS_MASK,cnt); |
cnt | 316 | drivers/scsi/ppa.c | if (cnt > 12) cnt = 12; |
cnt | 317 | drivers/scsi/ppa.c | for (k=0; k < cnt; k++) |
cnt | 584 | drivers/scsi/wd33c93.c | void transfer_pio(wd33c93_regs *regp, uchar *buf, int cnt, |
cnt | 589 | drivers/scsi/wd33c93.c | DB(DB_TRANSFER,printk("(%p,%d,%s)",buf,cnt,data_in_dir?"in":"out")) |
cnt | 592 | drivers/scsi/wd33c93.c | write_wd33c93_count(regp,cnt); |
cnt | 840 | drivers/sound/ad1848.c | unsigned long flags, cnt; |
cnt | 843 | drivers/sound/ad1848.c | cnt = count; |
cnt | 847 | drivers/sound/ad1848.c | cnt /= 4; |
cnt | 852 | drivers/sound/ad1848.c | cnt >>= 1; |
cnt | 855 | drivers/sound/ad1848.c | cnt >>= 1; |
cnt | 856 | drivers/sound/ad1848.c | cnt--; |
cnt | 860 | drivers/sound/ad1848.c | cnt == devc->xfer_count) |
cnt | 878 | drivers/sound/ad1848.c | ad_write (devc, 15, (unsigned char) (cnt & 0xff)); |
cnt | 879 | drivers/sound/ad1848.c | ad_write (devc, 14, (unsigned char) ((cnt >> 8) & 0xff)); |
cnt | 883 | drivers/sound/ad1848.c | devc->xfer_count = cnt; |
cnt | 892 | drivers/sound/ad1848.c | unsigned long flags, cnt; |
cnt | 895 | drivers/sound/ad1848.c | cnt = count; |
cnt | 898 | drivers/sound/ad1848.c | cnt /= 4; |
cnt | 903 | drivers/sound/ad1848.c | cnt >>= 1; |
cnt | 906 | drivers/sound/ad1848.c | cnt >>= 1; |
cnt | 907 | drivers/sound/ad1848.c | cnt--; |
cnt | 911 | drivers/sound/ad1848.c | cnt == devc->xfer_count) |
cnt | 931 | drivers/sound/ad1848.c | ad_write (devc, 15, (unsigned char) (cnt & 0xff)); |
cnt | 932 | drivers/sound/ad1848.c | ad_write (devc, 14, (unsigned char) ((cnt >> 8) & 0xff)); |
cnt | 937 | drivers/sound/ad1848.c | ad_write (devc, 31, (unsigned char) (cnt & 0xff)); |
cnt | 938 | drivers/sound/ad1848.c | ad_write (devc, 30, (unsigned char) ((cnt >> 8) & 0xff)); |
cnt | 943 | drivers/sound/ad1848.c | devc->xfer_count = cnt; |
cnt | 1934 | drivers/sound/dmasound.c | static int cnt = 0; |
cnt | 1936 | drivers/sound/dmasound.c | if (++cnt == 10) { |
cnt | 1938 | drivers/sound/dmasound.c | cnt = 0; |
cnt | 289 | drivers/sound/pas2_pcm.c | unsigned long flags, cnt; |
cnt | 293 | drivers/sound/pas2_pcm.c | cnt = count; |
cnt | 295 | drivers/sound/pas2_pcm.c | cnt >>= 1; |
cnt | 299 | drivers/sound/pas2_pcm.c | cnt == pcm_count) |
cnt | 341 | drivers/sound/pas2_pcm.c | int cnt; |
cnt | 345 | drivers/sound/pas2_pcm.c | cnt = count; |
cnt | 347 | drivers/sound/pas2_pcm.c | cnt >>= 1; |
cnt | 351 | drivers/sound/pas2_pcm.c | cnt == pcm_count) |
cnt | 282 | drivers/sound/sb16_dsp.c | unsigned long flags, cnt; |
cnt | 284 | drivers/sound/sb16_dsp.c | cnt = count; |
cnt | 286 | drivers/sound/sb16_dsp.c | cnt >>= 1; |
cnt | 287 | 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 | 335 | drivers/sound/sb16_dsp.c | unsigned long flags, cnt; |
cnt | 337 | drivers/sound/sb16_dsp.c | cnt = count; |
cnt | 339 | drivers/sound/sb16_dsp.c | cnt >>= 1; |
cnt | 340 | drivers/sound/sb16_dsp.c | cnt--; |
cnt | 344 | drivers/sound/sb16_dsp.c | cnt == dsp_count) |
cnt | 366 | drivers/sound/sb16_dsp.c | dsp_count = cnt; |
cnt | 369 | drivers/sound/sb16_dsp.c | sb_dsp_command01 ((unsigned char) (cnt & 0xff)); |
cnt | 370 | drivers/sound/sb16_dsp.c | sb_dsp_command ((unsigned char) (cnt >> 8)); |
cnt | 138 | fs/dquot.c | int cnt; |
cnt | 143 | fs/dquot.c | cnt = PAGE_SIZE / sizeof(struct dquot); |
cnt | 144 | fs/dquot.c | nr_dquots += cnt; |
cnt | 145 | fs/dquot.c | nr_free_dquots += cnt; |
cnt | 148 | fs/dquot.c | cnt--; |
cnt | 150 | fs/dquot.c | for (; cnt; cnt--) |
cnt | 300 | fs/dquot.c | int cnt; |
cnt | 303 | fs/dquot.c | for (cnt = nr_dquots ; cnt > 0 ; cnt--) { |
cnt | 490 | fs/dquot.c | int cnt; |
cnt | 498 | fs/dquot.c | for (cnt = 0; cnt < nr_dquots; dquot = dquot->dq_next, cnt++) { |
cnt | 683 | fs/dquot.c | short cnt; |
cnt | 687 | fs/dquot.c | for (cnt = 0; cnt < MAXQUOTAS; cnt++) { |
cnt | 688 | fs/dquot.c | if (type != -1 && cnt != type) |
cnt | 690 | fs/dquot.c | if (!has_quota_enabled(inode->i_dev, cnt)) |
cnt | 692 | fs/dquot.c | if (inode->i_dquot[cnt] == NODQUOT) { |
cnt | 693 | fs/dquot.c | switch (cnt) { |
cnt | 702 | fs/dquot.c | tmp = dqget(inode->i_dev, id, cnt); |
cnt | 706 | fs/dquot.c | if (inode->i_dquot[cnt] != NODQUOT) { |
cnt | 710 | fs/dquot.c | inode->i_dquot[cnt] = tmp; |
cnt | 719 | fs/dquot.c | short cnt; |
cnt | 722 | fs/dquot.c | for (cnt = 0; cnt < MAXQUOTAS; cnt++) { |
cnt | 723 | fs/dquot.c | if (inode->i_dquot[cnt] == NODQUOT) |
cnt | 728 | fs/dquot.c | tmp = inode->i_dquot[cnt]; |
cnt | 729 | fs/dquot.c | inode->i_dquot[cnt] = NODQUOT; |
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_bdq(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_blocks(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 | if (check_idq(inode->i_dquot[cnt], cnt, number)) |
cnt | 790 | fs/dquot.c | for (cnt = 0; cnt < MAXQUOTAS; cnt++) { |
cnt | 791 | fs/dquot.c | if (inode->i_dquot[cnt] == NODQUOT) |
cnt | 793 | fs/dquot.c | dquot_incr_inodes(inode->i_dquot[cnt], number); |
cnt | 800 | fs/dquot.c | unsigned short cnt; |
cnt | 802 | fs/dquot.c | for (cnt = 0; cnt < MAXQUOTAS; cnt++) { |
cnt | 803 | fs/dquot.c | if (inode->i_dquot[cnt] == NODQUOT) |
cnt | 805 | fs/dquot.c | dquot_decr_blocks(inode->i_dquot[cnt], number); |
cnt | 811 | fs/dquot.c | unsigned short cnt; |
cnt | 813 | fs/dquot.c | for (cnt = 0; cnt < MAXQUOTAS; cnt++) { |
cnt | 814 | fs/dquot.c | if (inode->i_dquot[cnt] == NODQUOT) |
cnt | 816 | fs/dquot.c | dquot_decr_inodes(inode->i_dquot[cnt], number); |
cnt | 828 | fs/dquot.c | short cnt, disc; |
cnt | 842 | fs/dquot.c | for (cnt = 0; cnt < MAXQUOTAS; cnt++) { |
cnt | 843 | fs/dquot.c | transfer_from[cnt] = NODQUOT; |
cnt | 844 | fs/dquot.c | transfer_to[cnt] = NODQUOT; |
cnt | 846 | fs/dquot.c | if (!has_quota_enabled(inode->i_dev, cnt)) |
cnt | 849 | fs/dquot.c | switch (cnt) { |
cnt | 853 | fs/dquot.c | transfer_from[cnt] = dqget(inode->i_dev, (direction) ? iattr->ia_uid : inode->i_uid, cnt); |
cnt | 854 | fs/dquot.c | transfer_to[cnt] = dqget(inode->i_dev, (direction) ? inode->i_uid : iattr->ia_uid, cnt); |
cnt | 859 | fs/dquot.c | transfer_from[cnt] = dqget(inode->i_dev, (direction) ? iattr->ia_gid : inode->i_gid, cnt); |
cnt | 860 | fs/dquot.c | transfer_to[cnt] = dqget(inode->i_dev, (direction) ? inode->i_gid : iattr->ia_gid, cnt); |
cnt | 864 | fs/dquot.c | if (check_idq(transfer_to[cnt], cnt, 1) == NO_QUOTA || |
cnt | 865 | fs/dquot.c | check_bdq(transfer_to[cnt], cnt, blocks) == NO_QUOTA) { |
cnt | 866 | fs/dquot.c | for (disc = 0; disc <= cnt; disc++) { |
cnt | 878 | fs/dquot.c | for (cnt = 0; cnt < MAXQUOTAS; cnt++) { |
cnt | 882 | fs/dquot.c | if (transfer_from[cnt] == NODQUOT && transfer_to[cnt] == NODQUOT) |
cnt | 885 | fs/dquot.c | if (transfer_from[cnt] != NODQUOT) { |
cnt | 886 | fs/dquot.c | dquot_decr_inodes(transfer_from[cnt], 1); |
cnt | 887 | fs/dquot.c | dquot_decr_blocks(transfer_from[cnt], blocks); |
cnt | 889 | fs/dquot.c | if (transfer_to[cnt] != NODQUOT) { |
cnt | 890 | fs/dquot.c | dquot_incr_inodes(transfer_to[cnt], 1); |
cnt | 891 | fs/dquot.c | dquot_incr_blocks(transfer_to[cnt], blocks); |
cnt | 893 | fs/dquot.c | if (inode->i_dquot[cnt] != NODQUOT) { |
cnt | 894 | fs/dquot.c | dqput(transfer_from[cnt]); |
cnt | 895 | fs/dquot.c | dqput(inode->i_dquot[cnt]); |
cnt | 896 | fs/dquot.c | inode->i_dquot[cnt] = transfer_to[cnt]; |
cnt | 898 | fs/dquot.c | dqput(transfer_from[cnt]); |
cnt | 899 | fs/dquot.c | dqput(transfer_to[cnt]); |
cnt | 932 | fs/dquot.c | short cnt; |
cnt | 934 | fs/dquot.c | for (cnt = 0; cnt < MAXQUOTAS; cnt++) { |
cnt | 935 | fs/dquot.c | if (type != -1 && cnt != type) |
cnt | 938 | fs/dquot.c | vfsmnt->mnt_quotas[cnt] == (struct file *)NULL) |
cnt | 941 | fs/dquot.c | reset_dquot_ptrs(dev, cnt); |
cnt | 942 | fs/dquot.c | invalidate_dquots(dev, cnt); |
cnt | 943 | fs/dquot.c | close_fp(vfsmnt->mnt_quotas[cnt]); |
cnt | 944 | fs/dquot.c | vfsmnt->mnt_quotas[cnt] = (struct file *)NULL; |
cnt | 945 | fs/dquot.c | vfsmnt->mnt_iexp[cnt] = vfsmnt->mnt_bexp[cnt] = (time_t)NULL; |
cnt | 130 | fs/file_table.c | int cnt; |
cnt | 132 | fs/file_table.c | for (filp = first_file, cnt = 0; cnt < nr_files; cnt++, filp = filp->f_next) { |
cnt | 145 | fs/file_table.c | int cnt; |
cnt | 147 | fs/file_table.c | for (filp = first_file, cnt = 0; cnt < nr_files; cnt++, filp = filp->f_next) { |
cnt | 266 | fs/isofs/rock.c | int cnt, sig; |
cnt | 323 | fs/isofs/rock.c | cnt = 0; /* Rock ridge never appears on a High Sierra disk */ |
cnt | 325 | fs/isofs/rock.c | inode->i_ctime = iso_date(rr->u.TF.times[cnt++].time, 0); |
cnt | 327 | fs/isofs/rock.c | inode->i_mtime = iso_date(rr->u.TF.times[cnt++].time, 0); |
cnt | 329 | fs/isofs/rock.c | inode->i_atime = iso_date(rr->u.TF.times[cnt++].time, 0); |
cnt | 331 | fs/isofs/rock.c | inode->i_ctime = iso_date(rr->u.TF.times[cnt++].time, 0); |
cnt | 154 | include/asm-m68k/ide.h | #define D_CHAR(cnt) (T_CHAR | (cnt)) |
cnt | 155 | include/asm-m68k/ide.h | #define D_SHORT(cnt) (T_SHORT | (cnt)) |
cnt | 156 | include/asm-m68k/ide.h | #define D_INT(cnt) (T_INT | (cnt)) |
cnt | 157 | include/asm-m68k/ide.h | #define D_TEXT(cnt) (T_TEXT | (cnt)) |
cnt | 181 | include/asm-m68k/ide.h | int i, j, cnt; |
cnt | 185 | include/asm-m68k/ide.h | cnt = driveid_types[i] & T_MASK_COUNT; |
cnt | 188 | include/asm-m68k/ide.h | p += cnt; |
cnt | 191 | include/asm-m68k/ide.h | for (j = 0; j < cnt; j++) { |
cnt | 199 | include/asm-m68k/ide.h | for (j = 0; j < cnt; j++) { |
cnt | 210 | include/asm-m68k/ide.h | for (j = 0; j < cnt; j += 2) { |
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 */ |