tag | line | file | source code |
count | 149 | arch/alpha/boot/main.c | static inline long load(long dev, unsigned long addr, unsigned long count) |
count | 161 | 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 | 143 | arch/alpha/kernel/setup.c | unsigned long count, va, pc; |
count | 184 | arch/alpha/kernel/setup.c | unaligned[0].count, unaligned[0].pc, unaligned[0].va, |
count | 185 | arch/alpha/kernel/setup.c | unaligned[1].count, unaligned[1].pc, unaligned[1].va); |
count | 105 | arch/alpha/kernel/traps.c | unsigned long count, va, pc; |
count | 124 | arch/alpha/kernel/traps.c | ++unaligned[0].count; |
count | 185 | 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 | 107 | arch/alpha/lib/io.c | void insb (unsigned long port, void *dst, unsigned long count) |
count | 110 | arch/alpha/lib/io.c | if (!count) |
count | 112 | arch/alpha/lib/io.c | count--; |
count | 117 | arch/alpha/lib/io.c | while (count >= 4) { |
count | 119 | arch/alpha/lib/io.c | count -= 4; |
count | 128 | arch/alpha/lib/io.c | while (count) { |
count | 129 | arch/alpha/lib/io.c | --count; |
count | 144 | arch/alpha/lib/io.c | void insw (unsigned long port, void *dst, unsigned long count) |
count | 150 | arch/alpha/lib/io.c | if (!count) |
count | 152 | arch/alpha/lib/io.c | count--; |
count | 157 | arch/alpha/lib/io.c | while (count >= 2) { |
count | 159 | arch/alpha/lib/io.c | count -= 2; |
count | 166 | arch/alpha/lib/io.c | if (count) { |
count | 180 | arch/alpha/lib/io.c | void insl (unsigned long port, void *dst, unsigned long count) |
count | 186 | arch/alpha/lib/io.c | while (count) { |
count | 187 | arch/alpha/lib/io.c | --count; |
count | 200 | arch/alpha/lib/io.c | void outsb(unsigned long port, void * src, unsigned long count) |
count | 202 | arch/alpha/lib/io.c | while (count) { |
count | 203 | arch/alpha/lib/io.c | count--; |
count | 216 | arch/alpha/lib/io.c | void outsw (unsigned long port, void *src, unsigned long count) |
count | 224 | arch/alpha/lib/io.c | --count; |
count | 227 | arch/alpha/lib/io.c | while (count >= 2) { |
count | 229 | arch/alpha/lib/io.c | count -= 2; |
count | 236 | arch/alpha/lib/io.c | if (count) { |
count | 249 | arch/alpha/lib/io.c | void outsl (unsigned long port, void *src, unsigned long count) |
count | 255 | arch/alpha/lib/io.c | while (count) { |
count | 256 | arch/alpha/lib/io.c | --count; |
count | 268 | arch/alpha/lib/io.c | void memcpy_fromio(void * to, unsigned long from, unsigned long count) |
count | 270 | arch/alpha/lib/io.c | while (count) { |
count | 271 | arch/alpha/lib/io.c | count--; |
count | 283 | arch/alpha/lib/io.c | void memcpy_toio(unsigned long to, void * from, unsigned long count) |
count | 285 | arch/alpha/lib/io.c | while (count) { |
count | 286 | arch/alpha/lib/io.c | count--; |
count | 298 | arch/alpha/lib/io.c | void memset_io(unsigned long dst, int c, unsigned long count) |
count | 300 | arch/alpha/lib/io.c | while (count) { |
count | 301 | 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 | 1532 | drivers/block/aztcd.c | { long int count, max_count; |
count | 1571 | drivers/block/aztcd.c | for (count=0;count<10000;count++); /*delay a bit*/ |
count | 1602 | drivers/block/aztcd.c | for (count=0;count<50;count++) |
count | 1620 | drivers/block/aztcd.c | for (count = 0; count < AZT_TIMEOUT; count++); |
count | 1621 | drivers/block/aztcd.c | { count=count*2; /* delay a bit */ |
count | 1622 | drivers/block/aztcd.c | count=count/2; |
count | 1646 | drivers/block/aztcd.c | for (count=1;count<50;count++) /*Reading version string*/ |
count | 1653 | drivers/block/aztcd.c | result[count]=inb(DATA_PORT); |
count | 1655 | drivers/block/aztcd.c | if (count>30) max_count=30; /*print max.30 chars of the version string*/ |
count | 1656 | drivers/block/aztcd.c | else max_count=count; |
count | 1658 | drivers/block/aztcd.c | for (count=1;count<max_count;count++) printk("%c",result[count]); |
count | 1673 | drivers/block/aztcd.c | for (count=1;count<5;count++) printk("%c",result[count]); |
count | 2006 | drivers/block/floppy.c | int count,head_shift,track_shift; |
count | 2038 | drivers/block/floppy.c | for (count = 0; count < F_SECT_PER_TRACK; ++count) { |
count | 2039 | drivers/block/floppy.c | here[count].track = format_req.track; |
count | 2040 | drivers/block/floppy.c | here[count].head = format_req.head; |
count | 2041 | drivers/block/floppy.c | here[count].sect = 0; |
count | 2042 | drivers/block/floppy.c | here[count].size = F_SIZECODE; |
count | 2045 | drivers/block/floppy.c | for (count = 1; count <= F_SECT_PER_TRACK; ++count) { |
count | 2046 | drivers/block/floppy.c | here[n].sect = count; |
count | 2831 | drivers/block/floppy.c | int i, drive, count, ret; |
count | 2854 | drivers/block/floppy.c | count = raw_cmd.length; |
count | 2856 | drivers/block/floppy.c | if(count > max_buffer_sectors * 1024 ) |
count | 2858 | drivers/block/floppy.c | if(count == 0){ |
count | 2865 | drivers/block/floppy.c | i = verify_area(VERIFY_READ, raw_cmd.data, count ); |
count | 2868 | drivers/block/floppy.c | memcpy_fromfs(floppy_track_buffer, raw_cmd.data, count); |
count | 2899 | drivers/block/floppy.c | i=fd_copyout( raw_cmd.data, floppy_track_buffer, count); |
count | 3143 | drivers/block/floppy.c | char * buf, int count) |
count | 3150 | drivers/block/floppy.c | return block_read(inode, filp, buf, count); |
count | 3154 | drivers/block/floppy.c | const char * buf, int count) |
count | 3167 | drivers/block/floppy.c | block = (filp->f_pos + count) >> 9; |
count | 3170 | drivers/block/floppy.c | ret= block_write(inode, filp, buf, count); |
count | 712 | drivers/block/gscd.c | static void cmd_info_in ( char *pb, int count ) |
count | 727 | drivers/block/gscd.c | if ( count > 0 ) |
count | 731 | drivers/block/gscd.c | count--; |
count | 746 | drivers/block/gscd.c | static void cmd_read_b ( char *pb, int count, int size ) |
count | 780 | drivers/block/gscd.c | count--; |
count | 781 | drivers/block/gscd.c | } while ( count > 0 ); |
count | 823 | drivers/block/gscd.c | static void cmd_read_w ( char *pb, int count, int size ) |
count | 853 | drivers/block/gscd.c | count--; |
count | 854 | drivers/block/gscd.c | } while ( count > 0 ); |
count | 283 | drivers/block/ll_rw_blk.c | unsigned int sector, count; |
count | 302 | drivers/block/ll_rw_blk.c | count = bh->b_size >> 9; |
count | 303 | drivers/block/ll_rw_blk.c | sector = bh->b_blocknr * count; |
count | 305 | drivers/block/ll_rw_blk.c | if (blk_size[major][MINOR(bh->b_dev)] < (sector + count)>>1) { |
count | 358 | drivers/block/ll_rw_blk.c | req->nr_sectors += count; |
count | 367 | drivers/block/ll_rw_blk.c | req->sector - count == sector && |
count | 370 | drivers/block/ll_rw_blk.c | req->nr_sectors += count; |
count | 373 | drivers/block/ll_rw_blk.c | req->current_nr_sectors = count; |
count | 402 | drivers/block/ll_rw_blk.c | req->nr_sectors = count; |
count | 403 | drivers/block/ll_rw_blk.c | req->current_nr_sectors = count; |
count | 954 | drivers/block/mcd.c | int count= QUICK_LOOP_COUNT; |
count | 955 | drivers/block/mcd.c | while (count--) { |
count | 960 | drivers/block/mcd.c | printk(" %d ",QUICK_LOOP_COUNT-count); |
count | 1179 | drivers/block/mcd.c | int count; |
count | 1221 | drivers/block/mcd.c | for (count = 0; count < 2000000; count++) |
count | 1225 | drivers/block/mcd.c | for (count = 0; count < 2000000; count++) |
count | 1229 | drivers/block/mcd.c | if (count >= 2000000) { |
count | 1238 | drivers/block/mcd.c | count = inb(MCDPORT(0)); /* pick up the status */ |
count | 1241 | drivers/block/mcd.c | for(count=0;count<3;count++) |
count | 1242 | drivers/block/mcd.c | if(getValue(result+count)) { |
count | 1447 | drivers/block/mcd.c | int count; |
count | 1450 | drivers/block/mcd.c | for (count = 0; count < 2000; count++) |
count | 1454 | drivers/block/mcd.c | if (count >= 2000) |
count | 144 | drivers/block/optcd.c | unsigned long count = 0; |
count | 146 | drivers/block/optcd.c | if (++count >= BUSY_TIMEOUT) |
count | 152 | drivers/block/optcd.c | printk("optcd: STEN low after %ld\n", count); |
count | 160 | drivers/block/optcd.c | unsigned long count = 0; |
count | 162 | drivers/block/optcd.c | if (++count >= BUSY_TIMEOUT) |
count | 168 | drivers/block/optcd.c | printk("optcd: DTEN low after %ld\n", count); |
count | 344 | drivers/block/optcd.c | unsigned long count = 0; |
count | 350 | drivers/block/optcd.c | while (++count < RESET_WAIT) |
count | 352 | drivers/block/optcd.c | count = 0; |
count | 354 | drivers/block/optcd.c | if (++count >= BUSY_TIMEOUT) |
count | 581 | drivers/block/optcd.c | int st, count, px, limit; |
count | 587 | drivers/block/optcd.c | for (count = 0; count < MAX_TRACKS; count++) |
count | 588 | drivers/block/optcd.c | Toc[count].pointIndex = 0; |
count | 592 | drivers/block/optcd.c | count = DiskInfo.last + 3; |
count | 593 | drivers/block/optcd.c | for (limit = 300; (limit > 0) && (count > 0); limit--) { |
count | 600 | drivers/block/optcd.c | count--; |
count | 631 | drivers/block/optcd.c | return count ? -ERR_TOC_MISSINGENTRY : 0; |
count | 1356 | drivers/block/optcd.c | int count, i, ch; |
count | 1360 | drivers/block/optcd.c | if ((count = optGetData()) < 0) |
count | 1362 | drivers/block/optcd.c | for (i = 0, ch = -1; count > 0; count--) { |
count | 2578 | drivers/block/sbpcd.c | for (count=D_S[d].first_session;count<zwanzig;count++) |
count | 2583 | drivers/block/sbpcd.c | drvcmd[3]=count; |
count | 2588 | drivers/block/sbpcd.c | D_S[d].msf_multi_n[count]=make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7])); |
count | 2914 | drivers/block/sbpcd.c | static int cc_SubChanInfo(int frame, int count, u_char *buffer) |
count | 2932 | drivers/block/sbpcd.c | drvcmd[5]=(count>>8)&0xFF; |
count | 2933 | drivers/block/sbpcd.c | drvcmd[6]=count&0xFF; |
count | 146 | drivers/block/triton.c | unsigned int count = 0; |
count | 175 | drivers/block/triton.c | if (++count >= PRD_ENTRIES) { |
count | 189 | drivers/block/triton.c | if (count) { |
count | 212 | drivers/block/xd.c | u_int block,count,retry; |
count | 221 | drivers/block/xd.c | count = CURRENT->nr_sectors; |
count | 227 | drivers/block/xd.c | code = xd_readwrite(CURRENT->cmd,CURRENT_DEV,CURRENT->buffer,block,count); |
count | 324 | drivers/block/xd.c | static int xd_readwrite (u_char operation,u_char drive,char *buffer,u_int block,u_int count) |
count | 331 | 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 | 335 | drivers/block/xd.c | while (count) { |
count | 336 | drivers/block/xd.c | temp = count < xd_maxsectors ? count : xd_maxsectors; |
count | 368 | drivers/block/xd.c | count -= temp, buffer += temp * 0x200, block += temp; |
count | 398 | drivers/block/xd.c | static u_char xd_setup_dma (u_char mode,u_char *buffer,u_int count) |
count | 400 | drivers/block/xd.c | if (buffer < ((u_char *) 0x1000000 - count)) { /* transfer to address < 16M? */ |
count | 401 | drivers/block/xd.c | if (((u_int) buffer & 0xFFFF0000) != (((u_int) buffer + count) & 0xFFFF0000)) { |
count | 411 | drivers/block/xd.c | set_dma_count(xd_dma,count); |
count | 422 | 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 | 428 | drivers/block/xd.c | cmdblk[4] = count; |
count | 511 | drivers/block/xd.c | u_char cmdblk[6],i,count = 0; |
count | 516 | drivers/block/xd.c | init_drive(count); |
count | 517 | drivers/block/xd.c | count++; |
count | 520 | drivers/block/xd.c | return (count); |
count | 139 | drivers/char/atixlmouse.c | static int write_mouse(struct inode * inode, struct file * file, const char * buffer, int count) |
count | 144 | drivers/char/atixlmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
count | 148 | drivers/char/atixlmouse.c | if (count < 3) |
count | 165 | drivers/char/atixlmouse.c | for(i = 3; i < count; i++) |
count | 155 | drivers/char/busmouse.c | static int write_mouse(struct inode * inode, struct file * file, const char * buffer, int count) |
count | 164 | drivers/char/busmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
count | 171 | drivers/char/busmouse.c | if (count < 3) |
count | 173 | drivers/char/busmouse.c | if ((r = verify_area(VERIFY_WRITE, buffer, count))) |
count | 205 | drivers/char/busmouse.c | for (r = 3; r < count; r++) |
count | 316 | drivers/char/console.c | static void memsetw(void * s, unsigned short c, unsigned int count) |
count | 320 | drivers/char/console.c | count /= 2; |
count | 321 | drivers/char/console.c | while (count) { |
count | 322 | drivers/char/console.c | count--; |
count | 328 | drivers/char/console.c | unsigned int count) |
count | 330 | drivers/char/console.c | count /= 2; |
count | 331 | drivers/char/console.c | while (count) { |
count | 332 | drivers/char/console.c | count--; |
count | 583 | drivers/char/console.c | int count ; |
count | 590 | drivers/char/console.c | count = (video_num_lines-1)*video_num_columns; |
count | 591 | drivers/char/console.c | while (count) { |
count | 592 | drivers/char/console.c | count--; |
count | 684 | drivers/char/console.c | unsigned int count; |
count | 686 | drivers/char/console.c | count = (video_num_lines-1)*video_num_columns; |
count | 687 | drivers/char/console.c | while (count) { |
count | 688 | drivers/char/console.c | count--; |
count | 691 | drivers/char/console.c | count = video_num_columns; |
count | 692 | drivers/char/console.c | while (count) { |
count | 693 | drivers/char/console.c | count--; |
count | 704 | drivers/char/console.c | unsigned int count; |
count | 707 | drivers/char/console.c | count = video_num_columns; |
count | 708 | drivers/char/console.c | while (count) { |
count | 709 | drivers/char/console.c | count--; |
count | 719 | drivers/char/console.c | unsigned int count = (b-t-1) * video_num_columns; |
count | 721 | drivers/char/console.c | while (count) { |
count | 722 | drivers/char/console.c | count--; |
count | 725 | drivers/char/console.c | count = video_num_columns; |
count | 726 | drivers/char/console.c | while (count) { |
count | 727 | drivers/char/console.c | count--; |
count | 736 | drivers/char/console.c | unsigned int count; |
count | 742 | drivers/char/console.c | count = (b-t-1)*video_num_columns; |
count | 743 | drivers/char/console.c | while (count) { |
count | 744 | drivers/char/console.c | count--; |
count | 747 | drivers/char/console.c | count = video_num_columns; |
count | 748 | drivers/char/console.c | while (count) { |
count | 749 | drivers/char/console.c | count--; |
count | 805 | drivers/char/console.c | unsigned long count; |
count | 810 | drivers/char/console.c | count = (scr_end-pos)>>1; |
count | 814 | drivers/char/console.c | count = ((pos-origin)>>1)+1; |
count | 818 | drivers/char/console.c | count = video_num_columns * video_num_lines; |
count | 824 | drivers/char/console.c | while (count) { |
count | 825 | drivers/char/console.c | count--; |
count | 833 | drivers/char/console.c | unsigned long count; |
count | 838 | drivers/char/console.c | count = video_num_columns-x; |
count | 843 | drivers/char/console.c | count = x+1; |
count | 847 | drivers/char/console.c | count = video_num_columns; |
count | 852 | drivers/char/console.c | while (count) { |
count | 853 | drivers/char/console.c | count--; |
count | 861 | drivers/char/console.c | unsigned long count; |
count | 868 | drivers/char/console.c | count = (vpar > video_num_columns-x) ? (video_num_columns-x) : vpar; |
count | 870 | drivers/char/console.c | while (count) { |
count | 871 | drivers/char/console.c | count--; |
count | 1061 | drivers/char/console.c | void invert_screen(int currcons, int offset, int count, int viewed) |
count | 1065 | drivers/char/console.c | count /= 2; |
count | 1068 | drivers/char/console.c | while (count--) { |
count | 1074 | drivers/char/console.c | while (count--) { |
count | 1411 | drivers/char/console.c | const unsigned char *buf, int count) |
count | 1432 | drivers/char/console.c | while (!tty->stopped && count) { |
count | 1434 | drivers/char/console.c | buf++; n++; count--; |
count | 697 | drivers/char/cyclades.c | if (tty->flip.count < TTY_FLIPBUF_SIZE){ |
count | 698 | drivers/char/cyclades.c | tty->flip.count++; |
count | 726 | drivers/char/cyclades.c | if(tty->flip.count < TTY_FLIPBUF_SIZE){ |
count | 727 | drivers/char/cyclades.c | tty->flip.count++; |
count | 761 | drivers/char/cyclades.c | if (tty->flip.count >= TTY_FLIPBUF_SIZE){ |
count | 764 | drivers/char/cyclades.c | tty->flip.count++; |
count | 1588 | drivers/char/cyclades.c | unsigned char *buf, int count) |
count | 1608 | drivers/char/cyclades.c | c = MIN(count, MIN(SERIAL_XMIT_SIZE - info->xmit_cnt - 1, |
count | 1628 | drivers/char/cyclades.c | count -= c; |
count | 2300 | drivers/char/cyclades.c | printk("cy_close ttyC%d, count = %d\n", info->line, info->count); |
count | 2303 | drivers/char/cyclades.c | if ((tty->count == 1) && (info->count != 1)) { |
count | 2312 | drivers/char/cyclades.c | "info->count is %d\n", info->count); |
count | 2313 | drivers/char/cyclades.c | info->count = 1; |
count | 2316 | drivers/char/cyclades.c | printk("cyc: %d: decrementing count to %d\n", __LINE__, info->count - 1); |
count | 2318 | drivers/char/cyclades.c | if (--info->count < 0) { |
count | 2322 | drivers/char/cyclades.c | info->count = 0; |
count | 2324 | drivers/char/cyclades.c | if (info->count) |
count | 2389 | drivers/char/cyclades.c | info->count = 0; |
count | 2476 | drivers/char/cyclades.c | info->line, info->count);/**/ |
count | 2478 | drivers/char/cyclades.c | info->count--; |
count | 2480 | drivers/char/cyclades.c | printk("cyc: %d: decrementing count to %d\n", __LINE__, info->count); |
count | 2531 | drivers/char/cyclades.c | info->line, info->count);/**/ |
count | 2538 | drivers/char/cyclades.c | info->count++; |
count | 2540 | drivers/char/cyclades.c | printk("cyc: %d: incrementing count to %d\n", __LINE__, info->count); |
count | 2546 | drivers/char/cyclades.c | info->line, info->count);/**/ |
count | 2580 | drivers/char/cyclades.c | printk("cy_open ttyC%d, count = %d\n", info->line, info->count);/**/ |
count | 2582 | drivers/char/cyclades.c | info->count++; |
count | 2584 | drivers/char/cyclades.c | printk("cyc: %d: incrementing count to %d\n", __LINE__, info->count); |
count | 2596 | drivers/char/cyclades.c | if ((info->count == 1) && (info->flags & ASYNC_SPLIT_TERMIOS)) { |
count | 2856 | drivers/char/cyclades.c | info->count = 0; |
count | 3094 | drivers/char/cyclades.c | info->close_delay, info->event, info->count); |
count | 599 | drivers/char/istallion.c | static int stli_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count); |
count | 618 | drivers/char/istallion.c | static int stli_memread(struct inode *ip, struct file *fp, char *buf, int count); |
count | 619 | drivers/char/istallion.c | static int stli_memwrite(struct inode *ip, struct file *fp, const char *buf, int count); |
count | 1423 | drivers/char/istallion.c | static int stli_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count) |
count | 1435 | 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 | 1471 | drivers/char/istallion.c | count = MIN(len, count); |
count | 1475 | drivers/char/istallion.c | memcpy_fromfs(stli_tmpwritebuf, chbuf, count); |
count | 1501 | drivers/char/istallion.c | len = MIN(len, count); |
count | 1502 | drivers/char/istallion.c | count = 0; |
count | 1510 | drivers/char/istallion.c | count += stlen; |
count | 1533 | drivers/char/istallion.c | return(count); |
count | 1581 | drivers/char/istallion.c | unsigned int len, stlen, head, tail, size, count, cooksize; |
count | 1630 | drivers/char/istallion.c | count = 0; |
count | 1639 | drivers/char/istallion.c | count += stlen; |
count | 2319 | drivers/char/istallion.c | len = MIN(len, (TTY_FLIPBUF_SIZE - tty->flip.count)); |
count | 2328 | drivers/char/istallion.c | tty->flip.count += stlen; |
count | 2504 | drivers/char/istallion.c | if (tty->flip.count < TTY_FLIPBUF_SIZE) { |
count | 2505 | drivers/char/istallion.c | tty->flip.count++; |
count | 3876 | drivers/char/istallion.c | static int stli_memread(struct inode *ip, struct file *fp, char *buf, int count) |
count | 3884 | drivers/char/istallion.c | printk("stli_memread(ip=%x,fp=%x,buf=%x,count=%d)\n", (int) ip, (int) fp, (int) buf, count); |
count | 3896 | drivers/char/istallion.c | size = MIN(count, (brdp->memsize - fp->f_pos)); |
count | 3912 | drivers/char/istallion.c | return(count); |
count | 3923 | drivers/char/istallion.c | static int stli_memwrite(struct inode *ip, struct file *fp, const char *buf, int count) |
count | 3932 | drivers/char/istallion.c | printk("stli_memwrite(ip=%x,fp=%x,buf=%x,count=%x)\n", (int) ip, (int) fp, (int) buf, count); |
count | 3945 | drivers/char/istallion.c | size = MIN(count, (brdp->memsize - fp->f_pos)); |
count | 3961 | drivers/char/istallion.c | return(count); |
count | 75 | drivers/char/lp.c | unsigned long count = 0; |
count | 80 | drivers/char/lp.c | count ++; |
count | 83 | drivers/char/lp.c | } while(!LP_READY(minor,status) && count < LP_CHAR(minor)); |
count | 85 | drivers/char/lp.c | if (count == LP_CHAR(minor)) { |
count | 101 | drivers/char/lp.c | if (count > stats->maxwait) { |
count | 103 | drivers/char/lp.c | printk(KERN_DEBUG "lp%d success after %d counts.\n",minor,count); |
count | 105 | drivers/char/lp.c | stats->maxwait = count; |
count | 107 | drivers/char/lp.c | count *= 256; |
count | 108 | drivers/char/lp.c | wait = (count > stats->meanwait)? count - stats->meanwait : |
count | 109 | drivers/char/lp.c | stats->meanwait - count; |
count | 110 | drivers/char/lp.c | stats->meanwait = (255*stats->meanwait + count + 128) / 256; |
count | 119 | drivers/char/lp.c | unsigned long count = 0; |
count | 140 | drivers/char/lp.c | if (count) { |
count | 141 | drivers/char/lp.c | if (count > stats->maxwait) |
count | 142 | drivers/char/lp.c | stats->maxwait = count; |
count | 143 | drivers/char/lp.c | count *= 256; |
count | 144 | drivers/char/lp.c | wait = (count > stats->meanwait)? count - stats->meanwait : |
count | 145 | drivers/char/lp.c | stats->meanwait - count; |
count | 146 | drivers/char/lp.c | stats->meanwait = (255*stats->meanwait + count + 128) / 256; |
count | 151 | drivers/char/lp.c | } while (count++ < LP_CHAR(minor)); |
count | 168 | drivers/char/lp.c | static inline int lp_write_interrupt(unsigned int minor, const char * buf, int count) |
count | 178 | drivers/char/lp.c | copy_size = (count <= LP_BUFFER_SIZE ? count : LP_BUFFER_SIZE); |
count | 230 | drivers/char/lp.c | count -= bytes_written; |
count | 232 | drivers/char/lp.c | } while (count > 0); |
count | 237 | drivers/char/lp.c | static inline int lp_write_polled(unsigned int minor, const char * buf, int count) |
count | 244 | drivers/char/lp.c | while (count > 0) { |
count | 249 | drivers/char/lp.c | count--; temp++; |
count | 303 | drivers/char/lp.c | static int lp_write(struct inode * inode, struct file * file, const char * buf, int count) |
count | 312 | drivers/char/lp.c | return lp_write_interrupt(minor, buf, count); |
count | 314 | drivers/char/lp.c | return lp_write_polled(minor, buf, count); |
count | 541 | drivers/char/lp.c | int count = 0; |
count | 571 | drivers/char/lp.c | count++; |
count | 574 | drivers/char/lp.c | if (count == 0) |
count | 28 | drivers/char/mem.c | static int read_ram(struct inode * inode, struct file * file,char * buf, int count) |
count | 33 | drivers/char/mem.c | static int write_ram(struct inode * inode, struct file * file, const char * buf, int count) |
count | 38 | drivers/char/mem.c | static int read_mem(struct inode * inode, struct file * file,char * buf, int count) |
count | 43 | drivers/char/mem.c | if (count < 0) |
count | 47 | drivers/char/mem.c | if (count > high_memory - p) |
count | 48 | drivers/char/mem.c | count = high_memory - p; |
count | 50 | drivers/char/mem.c | while (p < PAGE_SIZE && count > 0) { |
count | 54 | drivers/char/mem.c | count--; |
count | 57 | drivers/char/mem.c | memcpy_tofs(buf,(void *) p,count); |
count | 58 | drivers/char/mem.c | read += count; |
count | 63 | drivers/char/mem.c | static int write_mem(struct inode * inode, struct file * file,const char * buf, int count) |
count | 68 | drivers/char/mem.c | if (count < 0) |
count | 72 | drivers/char/mem.c | if (count > high_memory - p) |
count | 73 | drivers/char/mem.c | count = high_memory - p; |
count | 75 | drivers/char/mem.c | while (p < PAGE_SIZE && count > 0) { |
count | 79 | drivers/char/mem.c | count--; |
count | 82 | drivers/char/mem.c | memcpy_fromfs((void *) p,buf,count); |
count | 83 | drivers/char/mem.c | written += count; |
count | 85 | drivers/char/mem.c | return count; |
count | 109 | drivers/char/mem.c | static int read_kmem(struct inode *inode, struct file *file, char *buf, int count) |
count | 113 | drivers/char/mem.c | read1 = read_mem(inode, file, buf, count); |
count | 116 | drivers/char/mem.c | read2 = vread(buf + read1, (char *) ((unsigned long) file->f_pos), count - read1); |
count | 123 | drivers/char/mem.c | static int read_port(struct inode * inode,struct file * file,char * buf, int count) |
count | 128 | drivers/char/mem.c | while (count-- > 0 && i < 65536) { |
count | 137 | drivers/char/mem.c | static int write_port(struct inode * inode,struct file * file,const char * buf, int count) |
count | 142 | drivers/char/mem.c | while (count-- > 0 && i < 65536) { |
count | 151 | drivers/char/mem.c | static int read_null(struct inode * node,struct file * file,char * buf,int count) |
count | 156 | drivers/char/mem.c | static int write_null(struct inode * inode,struct file * file, const char * buf, int count) |
count | 158 | drivers/char/mem.c | return count; |
count | 161 | drivers/char/mem.c | static int read_zero(struct inode * node,struct file * file,char * buf,int count) |
count | 165 | drivers/char/mem.c | for (left = count; left > 0; left--) { |
count | 169 | drivers/char/mem.c | return count; |
count | 181 | drivers/char/mem.c | static int read_full(struct inode * node,struct file * file,char * buf,int count) |
count | 183 | drivers/char/mem.c | return count; |
count | 186 | 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 | 529 | drivers/char/n_tty.c | char *fp, int count) |
count | 539 | drivers/char/n_tty.c | i = MIN(count, MIN(N_TTY_BUF_SIZE - tty->read_cnt, |
count | 545 | drivers/char/n_tty.c | count -= i; |
count | 547 | drivers/char/n_tty.c | i = MIN(count, MIN(N_TTY_BUF_SIZE - tty->read_cnt, |
count | 553 | drivers/char/n_tty.c | for (i=count, p = cp, f = fp; i; i--, p++) { |
count | 936 | drivers/char/n_tty.c | if (tty_hung_up_p(file) || (tty->link && !tty->link->count)) { |
count | 374 | drivers/char/psaux.c | static int write_aux(struct inode * inode, struct file * file, const char * buffer, int count) |
count | 376 | drivers/char/psaux.c | int i = count; |
count | 387 | drivers/char/psaux.c | return count; |
count | 396 | drivers/char/psaux.c | static int write_qp(struct inode * inode, struct file * file, const char * buffer, int count) |
count | 398 | drivers/char/psaux.c | int i = count; |
count | 406 | drivers/char/psaux.c | return count; |
count | 415 | drivers/char/psaux.c | static int read_aux(struct inode * inode, struct file * file, char * buffer, int count) |
count | 418 | drivers/char/psaux.c | int i = count; |
count | 440 | drivers/char/psaux.c | if (count-i) { |
count | 442 | drivers/char/psaux.c | return count-i; |
count | 68 | drivers/char/pty.c | if (tty->count > 1) |
count | 69 | drivers/char/pty.c | printk("master pty_close: count = %d!!\n", tty->count); |
count | 71 | drivers/char/pty.c | if (tty->count > 2) |
count | 113 | drivers/char/pty.c | const unsigned char *buf, int count) |
count | 126 | drivers/char/pty.c | while (count > 0) { |
count | 127 | drivers/char/pty.c | n = MIN(count, PTY_BUF_SIZE); |
count | 135 | drivers/char/pty.c | count -= n; |
count | 139 | drivers/char/pty.c | c = MIN(count, to->ldisc.receive_room(to)); |
count | 207 | drivers/char/pty.c | while (!tty->link->count && !(current->signal & ~current->blocked)) |
count | 209 | drivers/char/pty.c | if (!tty->link->count) |
count | 165 | drivers/char/scc.c | int scc_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count); |
count | 1560 | drivers/char/scc.c | while(tty->flip.count < TTY_FLIPBUF_SIZE-3) |
count | 2141 | drivers/char/scc.c | int scc_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count) |
count | 2147 | drivers/char/scc.c | if (!tty) return count; |
count | 2152 | drivers/char/scc.c | if (scc->kiss.tx_inhibit) return count; |
count | 2156 | drivers/char/scc.c | cnt2 = count; |
count | 2181 | drivers/char/scc.c | return count; |
count | 23 | drivers/char/selection.h | extern void invert_screen(int currcons, int offset, int count, int shift); |
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 | 475 | drivers/char/stallion.c | static int stl_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count); |
count | 935 | drivers/char/stallion.c | static int stl_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count) |
count | 944 | 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 | 967 | drivers/char/stallion.c | count = MIN(len, count); |
count | 972 | drivers/char/stallion.c | memcpy_fromfs(stl_tmpwritebuf, chbuf, count); |
count | 988 | drivers/char/stallion.c | len = MIN(len, count); |
count | 989 | drivers/char/stallion.c | count = 0; |
count | 995 | drivers/char/stallion.c | count += stlen; |
count | 1007 | drivers/char/stallion.c | return(count); |
count | 1692 | drivers/char/stallion.c | ((buflen = TTY_FLIPBUF_SIZE - tty->flip.count) == 0)) { |
count | 1703 | drivers/char/stallion.c | tty->flip.count += len; |
count | 1732 | drivers/char/stallion.c | if (tty->flip.count < TTY_FLIPBUF_SIZE) { |
count | 1735 | drivers/char/stallion.c | tty->flip.count++; |
count | 1918 | drivers/char/tpqic02.c | static int qic02_tape_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 1934 | drivers/char/tpqic02.c | MINOR(dev), buf, count, (unsigned long) filp->f_pos, flags); |
count | 1936 | drivers/char/tpqic02.c | if (count % TAPE_BLKSIZE) { /* Only allow mod 512 bytes at a time. */ |
count | 1948 | drivers/char/tpqic02.c | error = verify_area(VERIFY_WRITE, buf, count); |
count | 1955 | drivers/char/tpqic02.c | while (count>=0) { |
count | 1959 | drivers/char/tpqic02.c | if (bytes_todo>count) |
count | 1960 | drivers/char/tpqic02.c | bytes_todo = count; |
count | 2056 | drivers/char/tpqic02.c | count -= bytes_done; |
count | 2093 | drivers/char/tpqic02.c | static int qic02_tape_write(struct inode * inode, struct file * filp, const char * buf, int count) |
count | 2108 | drivers/char/tpqic02.c | MINOR(dev), buf, count, (unsigned long) filp->f_pos, flags); |
count | 2110 | drivers/char/tpqic02.c | if (count % TAPE_BLKSIZE) { /* only allow mod 512 bytes at a time */ |
count | 2130 | drivers/char/tpqic02.c | error = verify_area(VERIFY_READ, buf, count); |
count | 2137 | drivers/char/tpqic02.c | while (count>=0) { |
count | 2141 | drivers/char/tpqic02.c | if (bytes_todo>count) |
count | 2142 | drivers/char/tpqic02.c | bytes_todo = count; |
count | 2223 | drivers/char/tpqic02.c | count -= bytes_done; |
count | 2228 | 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 | 162 | drivers/char/tty_io.c | int i, count = 0; |
count | 168 | drivers/char/tty_io.c | count++; |
count | 173 | drivers/char/tty_io.c | tty->link && tty->link->count) |
count | 174 | drivers/char/tty_io.c | count++; |
count | 175 | drivers/char/tty_io.c | if (tty->count != count) { |
count | 177 | drivers/char/tty_io.c | MAJOR(tty->device), MINOR(tty->device), tty->count, |
count | 178 | drivers/char/tty_io.c | count, routine); |
count | 179 | drivers/char/tty_io.c | return count; |
count | 292 | drivers/char/tty_io.c | static int hung_up_tty_read(struct inode * inode, struct file * file, char * buf, int count) |
count | 297 | drivers/char/tty_io.c | static int hung_up_tty_write(struct inode * inode, struct file * file, const char * buf, int count) |
count | 688 | drivers/char/tty_io.c | static int tty_read(struct inode * inode, struct file * file, char * buf, int count) |
count | 717 | drivers/char/tty_io.c | i = (tty->ldisc.read)(tty,file,(unsigned char *)buf,(unsigned int)count); |
count | 725 | drivers/char/tty_io.c | static int tty_write(struct inode * inode, struct file * file, const char * buf, int count) |
count | 753 | drivers/char/tty_io.c | i = (tty->ldisc.write)(tty,file,(const unsigned char *)buf,(unsigned int)count); |
count | 794 | drivers/char/tty_io.c | *tty_loc && (*tty_loc)->count) |
count | 872 | drivers/char/tty_io.c | (*tty_loc)->count++; |
count | 876 | drivers/char/tty_io.c | (*tty_loc)->count--; |
count | 889 | drivers/char/tty_io.c | (*tty_loc)->count++; |
count | 908 | drivers/char/tty_io.c | (*tty_loc)->count--; |
count | 918 | drivers/char/tty_io.c | (*o_tty_loc)->count++; |
count | 988 | drivers/char/tty_io.c | tty->count); |
count | 1024 | drivers/char/tty_io.c | if (--tty->link->count < 0) { |
count | 1026 | drivers/char/tty_io.c | tty->count, tty_name(tty)); |
count | 1027 | drivers/char/tty_io.c | tty->link->count = 0; |
count | 1030 | drivers/char/tty_io.c | if (--tty->count < 0) { |
count | 1032 | drivers/char/tty_io.c | tty->count, tty_name(tty)); |
count | 1033 | drivers/char/tty_io.c | tty->count = 0; |
count | 1035 | drivers/char/tty_io.c | if (tty->count) |
count | 1042 | drivers/char/tty_io.c | if (o_tty->count) |
count | 1622 | drivers/char/tty_io.c | int count; |
count | 1641 | drivers/char/tty_io.c | count = tty->flip.count; |
count | 1642 | drivers/char/tty_io.c | tty->flip.count = 0; |
count | 1646 | drivers/char/tty_io.c | if (count > tty->max_flip_cnt) |
count | 1647 | drivers/char/tty_io.c | tty->max_flip_cnt = count; |
count | 1649 | 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 | 154 | drivers/char/vt.c | kd_mksound(unsigned int count, unsigned int ticks) |
count | 160 | drivers/char/vt.c | if (count) { |
count | 166 | drivers/char/vt.c | outb_p(count & 0xff, 0x42); |
count | 167 | drivers/char/vt.c | outb((count >> 8) & 0xff, 0x42); |
count | 23 | drivers/char/vt_kern.h | void kd_mksound(unsigned int count, unsigned int ticks); |
count | 72 | drivers/net/3c503.c | static void el2_block_output(struct device *dev, int count, |
count | 74 | drivers/net/3c503.c | static int el2_block_input(struct device *dev, int count, char *buf, |
count | 381 | drivers/net/3c503.c | el2_block_output(struct device *dev, int count, |
count | 393 | drivers/net/3c503.c | memcpy(dest_addr, buf, count); |
count | 394 | drivers/net/3c503.c | if (ei_debug > 2 && memcmp(dest_addr, buf, count)) |
count | 409 | drivers/net/3c503.c | for(i = 0; i < count; i++) { |
count | 414 | drivers/net/3c503.c | dev->name, i, count, boguscount); |
count | 425 | drivers/net/3c503.c | el2_block_input(struct device *dev, int count, char *buf, int ring_offset) |
count | 434 | drivers/net/3c503.c | if (dev->mem_start + ring_offset + count > end_of_ring) { |
count | 438 | drivers/net/3c503.c | count -= semi_count; |
count | 439 | drivers/net/3c503.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
count | 440 | drivers/net/3c503.c | return dev->rmem_start + count; |
count | 442 | drivers/net/3c503.c | memcpy(buf, (char *)dev->mem_start + ring_offset, count); |
count | 443 | drivers/net/3c503.c | return ring_offset + count; |
count | 453 | drivers/net/3c503.c | for(i = 0; i < count; i++) { |
count | 458 | drivers/net/3c503.c | dev->name, i, count, boguscount); |
count | 437 | drivers/net/8390.c | pkt_len = rx_frame.count - sizeof(rx_frame); |
count | 457 | drivers/net/8390.c | dev->name, rx_frame.count, rx_frame.status, |
count | 485 | drivers/net/8390.c | rx_frame.count); |
count | 162 | drivers/net/8390.h | unsigned short count; /* header + packet length in bytes */ |
count | 75 | drivers/net/ac3200.c | static int 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 | 243 | drivers/net/ac3200.c | static int ac_block_input(struct device *dev, int count, char *buf, |
count | 248 | drivers/net/ac3200.c | if (xfer_start + count > dev->rmem_end) { |
count | 252 | drivers/net/ac3200.c | count -= semi_count; |
count | 253 | drivers/net/ac3200.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
count | 254 | drivers/net/ac3200.c | return dev->rmem_start + count; |
count | 256 | drivers/net/ac3200.c | memcpy(buf, (char*)xfer_start, count); |
count | 258 | drivers/net/ac3200.c | return ring_offset + count; |
count | 261 | drivers/net/ac3200.c | static void ac_block_output(struct device *dev, int count, |
count | 266 | drivers/net/ac3200.c | memcpy((unsigned char *)shmem, buf, count); |
count | 119 | drivers/net/apricot.c | unsigned short count; |
count | 217 | drivers/net/apricot.c | rfd->count = 0; |
count | 344 | drivers/net/apricot.c | int pkt_len = lp->scb.rfd->count & 0x3fff; |
count | 381 | drivers/net/apricot.c | lp->rx_tail->count = 0; |
count | 424 | drivers/net/apricot.c | unsigned short count = *((unsigned short *) (ptr + 1)); |
count | 427 | drivers/net/apricot.c | kfree_s((unsigned char *)ptr, (sizeof (struct i596_cmd) + count + 2)); |
count | 838 | drivers/net/apricot.c | unsigned short count = *((unsigned short *) (ptr + 1)); |
count | 841 | drivers/net/apricot.c | kfree_s((unsigned char *)ptr, (sizeof (struct i596_cmd) + count + 2)); |
count | 282 | drivers/net/de620.c | de620_write_block(struct device *dev, byte *buffer, int count) |
count | 289 | drivers/net/de620.c | int bytes = count; |
count | 298 | drivers/net/de620.c | for ( ; count > 0; --count, ++buffer) { |
count | 307 | drivers/net/de620.c | for ( ; count > 0; count -=2) { |
count | 318 | drivers/net/de620.c | de620_read_block(struct device *dev, byte *data, int count) |
count | 326 | drivers/net/de620.c | int bytes = count; |
count | 334 | drivers/net/de620.c | while (count-- > 0) { |
count | 343 | drivers/net/de620.c | while (count-- > 0) { |
count | 102 | drivers/net/e2100.c | static int e21_block_input(struct device *dev, int count, |
count | 104 | drivers/net/e2100.c | static void e21_block_output(struct device *dev, int count, |
count | 284 | drivers/net/e2100.c | e21_block_input(struct device *dev, int count, char *buf, int ring_offset) |
count | 293 | drivers/net/e2100.c | if (count == 4) |
count | 296 | drivers/net/e2100.c | memcpy(buf, shared_mem + (ring_offset & 0xff), count); |
count | 305 | drivers/net/e2100.c | e21_block_output(struct device *dev, int count, const unsigned char *buf, |
count | 316 | drivers/net/e2100.c | memcpy((char*)shared_mem, buf, count); |
count | 104 | drivers/net/hp-plus.c | static int hpp_mem_block_input(struct device *dev, int count, |
count | 106 | drivers/net/hp-plus.c | static void hpp_mem_block_output(struct device *dev, int count, |
count | 108 | drivers/net/hp-plus.c | static int hpp_io_block_input(struct device *dev, int count, |
count | 110 | drivers/net/hp-plus.c | static void hpp_io_block_output(struct device *dev, int count, |
count | 314 | drivers/net/hp-plus.c | hpp_io_block_input(struct device *dev, int count, char *buf, int ring_offset) |
count | 319 | drivers/net/hp-plus.c | insw(ioaddr + HP_DATAPORT, buf, count>>1); |
count | 320 | drivers/net/hp-plus.c | if (count & 0x01) |
count | 321 | drivers/net/hp-plus.c | buf[count-1] = inw(ioaddr + HP_DATAPORT); |
count | 322 | drivers/net/hp-plus.c | return ring_offset + count; |
count | 326 | drivers/net/hp-plus.c | hpp_mem_block_input(struct device *dev, int count, char *buf, int ring_offset) |
count | 335 | drivers/net/hp-plus.c | memcpy(buf, (char*)dev->mem_start, (count + 3) & ~3); |
count | 338 | drivers/net/hp-plus.c | return ring_offset + count; |
count | 344 | drivers/net/hp-plus.c | hpp_io_block_output(struct device *dev, int count, |
count | 349 | drivers/net/hp-plus.c | outsl(ioaddr + HP_DATAPORT, buf, (count+3)>>2); |
count | 354 | drivers/net/hp-plus.c | hpp_mem_block_output(struct device *dev, int count, |
count | 362 | drivers/net/hp-plus.c | memcpy((char *)dev->mem_start, buf, (count + 3) & ~3); |
count | 63 | drivers/net/hp.c | static int hp_block_input(struct device *dev, int count, |
count | 65 | drivers/net/hp.c | static void hp_block_output(struct device *dev, int count, |
count | 223 | drivers/net/hp.c | hp_block_input(struct device *dev, int count, char *buf, int ring_offset) |
count | 227 | drivers/net/hp.c | int xfer_count = count; |
count | 231 | drivers/net/hp.c | outb_p(count & 0xff, nic_base + EN0_RCNTLO); |
count | 232 | drivers/net/hp.c | outb_p(count >> 8, nic_base + EN0_RCNTHI); |
count | 237 | drivers/net/hp.c | insw(nic_base - NIC_OFFSET + HP_DATAPORT,buf,count>>1); |
count | 238 | drivers/net/hp.c | if (count & 0x01) |
count | 239 | drivers/net/hp.c | buf[count-1] = inb(nic_base - NIC_OFFSET + HP_DATAPORT), xfer_count++; |
count | 241 | drivers/net/hp.c | insb(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count); |
count | 254 | drivers/net/hp.c | return ring_offset + count; |
count | 258 | drivers/net/hp.c | hp_block_output(struct device *dev, int count, |
count | 268 | drivers/net/hp.c | if (ei_status.word16 && (count & 0x01)) |
count | 269 | drivers/net/hp.c | count++; |
count | 287 | drivers/net/hp.c | outb_p(count & 0xff, nic_base + EN0_RCNTLO); |
count | 288 | drivers/net/hp.c | outb_p(count >> 8, nic_base + EN0_RCNTHI); |
count | 295 | drivers/net/hp.c | outsw(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count>>1); |
count | 297 | drivers/net/hp.c | outsb(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count); |
count | 307 | drivers/net/hp.c | if ((start_page << 8) + count != addr) |
count | 309 | drivers/net/hp.c | dev->name, (start_page << 8) + count, addr); |
count | 95 | drivers/net/ne.c | static int ne_block_input(struct device *dev, int count, |
count | 97 | drivers/net/ne.c | static void ne_block_output(struct device *dev, const int count, |
count | 375 | drivers/net/ne.c | ne_block_input(struct device *dev, int count, char *buf, int ring_offset) |
count | 379 | drivers/net/ne.c | int xfer_count = count; |
count | 393 | drivers/net/ne.c | outb_p(count & 0xff, nic_base + EN0_RCNTLO); |
count | 394 | drivers/net/ne.c | outb_p(count >> 8, nic_base + EN0_RCNTHI); |
count | 399 | drivers/net/ne.c | insw(NE_BASE + NE_DATAPORT,buf,count>>1); |
count | 400 | drivers/net/ne.c | if (count & 0x01) { |
count | 401 | drivers/net/ne.c | buf[count-1] = inb(NE_BASE + NE_DATAPORT); |
count | 407 | drivers/net/ne.c | insb(NE_BASE + NE_DATAPORT, buf, count); |
count | 434 | drivers/net/ne.c | return ring_offset + count; |
count | 438 | drivers/net/ne.c | ne_block_output(struct device *dev, int count, |
count | 450 | drivers/net/ne.c | if (ei_status.word16 && (count & 0x01)) |
count | 451 | drivers/net/ne.c | count++; |
count | 489 | drivers/net/ne.c | outb_p(count & 0xff, nic_base + EN0_RCNTLO); |
count | 490 | drivers/net/ne.c | outb_p(count >> 8, nic_base + EN0_RCNTHI); |
count | 496 | drivers/net/ne.c | outsw(NE_BASE + NE_DATAPORT, buf, count>>1); |
count | 498 | drivers/net/ne.c | outsb(NE_BASE + NE_DATAPORT, buf, count); |
count | 512 | drivers/net/ne.c | if ((start_page << 8) + count == addr) |
count | 518 | drivers/net/ne.c | dev->name, (start_page << 8) + count, addr); |
count | 155 | drivers/net/ppp.c | char *fp, int count); |
count | 680 | drivers/net/ppp.c | register int count = ppp->xhead - ppp->xbuff; |
count | 683 | drivers/net/ppp.c | ppp->stats.sbytes += count; |
count | 687 | drivers/net/ppp.c | count, |
count | 705 | drivers/net/ppp.c | register int count, actual; |
count | 707 | drivers/net/ppp.c | count = ppp->xhead - ppp->xbuff; |
count | 709 | drivers/net/ppp.c | actual = ppp->tty->driver.write(ppp->tty, 0, ppp->xbuff, count); |
count | 711 | drivers/net/ppp.c | if (actual == count) { |
count | 721 | drivers/net/ppp.c | register int count, actual; |
count | 742 | drivers/net/ppp.c | count = ppp->xhead - ppp->xtail; |
count | 744 | drivers/net/ppp.c | actual = tty->driver.write(tty, 0, ppp->xtail, count); |
count | 746 | drivers/net/ppp.c | if (actual == count) { |
count | 797 | drivers/net/ppp.c | i, count; |
count | 804 | drivers/net/ppp.c | count = 0; |
count | 807 | drivers/net/ppp.c | buffer [count] = tty->read_q.buf[i]; |
count | 808 | drivers/net/ppp.c | if (++count == 8) { |
count | 810 | drivers/net/ppp.c | count = 0; |
count | 814 | drivers/net/ppp.c | ppp_print_buffer (NULL, buffer, count, KERNEL_DS); |
count | 922 | drivers/net/ppp.c | char *fp, int count) |
count | 938 | drivers/net/ppp.c | ppp_print_buffer ("receive buffer", cp, count, KERNEL_DS); |
count | 941 | drivers/net/ppp.c | ppp->stats.rbytes += count; |
count | 943 | drivers/net/ppp.c | while (count-- > 0) { |
count | 1000 | drivers/net/ppp.c | int count = ppp->rcount; |
count | 1012 | drivers/net/ppp.c | if (count == 0) |
count | 1016 | drivers/net/ppp.c | ppp_print_buffer ("receive frame", c, count, KERNEL_DS); |
count | 1018 | drivers/net/ppp.c | if (count < 4) { |
count | 1019 | drivers/net/ppp.c | PRINTKN (1,(KERN_WARNING "ppp: got runt ppp frame, %d chars\n", count)); |
count | 1033 | drivers/net/ppp.c | count -= 2; /* ignore last two characters */ |
count | 1039 | drivers/net/ppp.c | count -= 2; |
count | 1044 | drivers/net/ppp.c | count--; |
count | 1047 | drivers/net/ppp.c | count -= 2; |
count | 1051 | drivers/net/ppp.c | if ((ppp->dev->flags & IFF_UP) && ppp_do_ip(ppp, proto, c, count)) { |
count | 1062 | drivers/net/ppp.c | if (ppp_us_queue (ppp, proto, c, count+2)) { |
count | 1081 | drivers/net/ppp.c | int count) |
count | 1087 | drivers/net/ppp.c | (int) proto, count, c[0])); |
count | 1091 | drivers/net/ppp.c | (int) proto, count)); |
count | 1119 | drivers/net/ppp.c | count = slhc_uncompress(ppp->slcomp, c, count); |
count | 1120 | drivers/net/ppp.c | if (count <= 0) { |
count | 1131 | drivers/net/ppp.c | if (slhc_remember(ppp->slcomp, c, count) <= 0) { |
count | 1148 | drivers/net/ppp.c | iph->saddr, iph->daddr, count)) |
count | 1153 | drivers/net/ppp.c | skb=dev_alloc_skb(count); |
count | 1157 | drivers/net/ppp.c | memcpy(skb_put(skb,count), c,count); |
count | 2024 | drivers/net/ppp.c | static inline void ppp_print_hex (register char *out, const char *in, int count) |
count | 2028 | drivers/net/ppp.c | while (count-- > 0) { |
count | 2038 | drivers/net/ppp.c | static inline void ppp_print_char (register char *out, const char *in, int count) |
count | 2042 | drivers/net/ppp.c | while (count-- > 0) { |
count | 2057 | drivers/net/ppp.c | static void ppp_print_buffer(const char *name, const char *buf, int count, int seg) |
count | 2065 | drivers/net/ppp.c | PRINTK ((KERN_DEBUG "ppp: %s, count = %d\n", name, count)); |
count | 2067 | drivers/net/ppp.c | while (count > 8) { |
count | 2072 | drivers/net/ppp.c | count -= 8; |
count | 2076 | drivers/net/ppp.c | if (count > 0) { |
count | 2078 | drivers/net/ppp.c | ppp_print_hex (line, buf, count); |
count | 2079 | drivers/net/ppp.c | ppp_print_char (&line[8 * 3], buf, count); |
count | 343 | drivers/net/slip.c | int count; |
count | 345 | drivers/net/slip.c | count = sl->rcount; |
count | 356 | drivers/net/slip.c | if (count + 80 > sl->buffsize) { |
count | 360 | drivers/net/slip.c | count = slhc_uncompress(sl->slcomp, sl->rbuff, count); |
count | 361 | drivers/net/slip.c | if (count <= 0) { |
count | 372 | drivers/net/slip.c | if (slhc_remember(sl->slcomp, sl->rbuff, count) <= 0) { |
count | 379 | drivers/net/slip.c | skb = dev_alloc_skb(count); |
count | 386 | drivers/net/slip.c | memcpy(skb_put(skb,count), sl->rbuff, count); |
count | 401 | drivers/net/slip.c | int actual, count; |
count | 428 | drivers/net/slip.c | count = slip_esc6(p, (unsigned char *) sl->xbuff, len); |
count | 431 | drivers/net/slip.c | count = slip_esc(p, (unsigned char *) sl->xbuff, len); |
count | 442 | drivers/net/slip.c | actual = sl->tty->driver.write(sl->tty, 0, sl->xbuff, count); |
count | 446 | drivers/net/slip.c | sl->xleft = count - actual; |
count | 682 | drivers/net/slip.c | slip_receive_buf(struct tty_struct *tty, const unsigned char *cp, char *fp, int count) |
count | 702 | drivers/net/slip.c | while (count--) { |
count | 69 | drivers/net/smc-ultra.c | static int ultra_block_input(struct device *dev, int count, |
count | 71 | drivers/net/smc-ultra.c | static void ultra_block_output(struct device *dev, int count, |
count | 260 | drivers/net/smc-ultra.c | ultra_block_input(struct device *dev, int count, char *buf, int ring_offset) |
count | 268 | drivers/net/smc-ultra.c | if (xfer_start + count > (void*) dev->rmem_end) { |
count | 272 | drivers/net/smc-ultra.c | count -= semi_count; |
count | 273 | drivers/net/smc-ultra.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
count | 275 | drivers/net/smc-ultra.c | return dev->rmem_start + count; |
count | 277 | drivers/net/smc-ultra.c | memcpy(buf, xfer_start, count); |
count | 280 | drivers/net/smc-ultra.c | return ring_offset + count; |
count | 284 | drivers/net/smc-ultra.c | ultra_block_output(struct device *dev, int count, const unsigned char *buf, |
count | 293 | drivers/net/smc-ultra.c | memcpy(shmem, buf, count); |
count | 48 | drivers/net/wd.c | static int wd_block_input(struct device *dev, int count, |
count | 50 | drivers/net/wd.c | static void wd_block_output(struct device *dev, int count, |
count | 325 | drivers/net/wd.c | wd_block_input(struct device *dev, int count, char *buf, int ring_offset) |
count | 332 | drivers/net/wd.c | if (count == 4) { |
count | 339 | drivers/net/wd.c | if (xfer_start + count > dev->rmem_end) { |
count | 343 | drivers/net/wd.c | count -= semi_count; |
count | 344 | drivers/net/wd.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
count | 346 | drivers/net/wd.c | memcpy(buf, (char *)xfer_start, count); |
count | 356 | drivers/net/wd.c | wd_block_output(struct device *dev, int count, const unsigned char *buf, |
count | 366 | drivers/net/wd.c | memcpy((char *)shmem, buf, count); |
count | 369 | drivers/net/wd.c | memcpy((char *)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 | 987 | drivers/scsi/53c7,8xx.c | int count; /* Number of boards detected */ |
count | 992 | drivers/scsi/53c7,8xx.c | for (current_override = count = 0; current_override < OVERRIDE_LIMIT; |
count | 1010 | drivers/scsi/53c7,8xx.c | ++count; |
count | 1022 | drivers/scsi/53c7,8xx.c | ++count, ++pci_index); |
count | 1024 | drivers/scsi/53c7,8xx.c | return count; |
count | 2150 | drivers/scsi/53c7,8xx.c | char *buf,int count) { |
count | 2163 | drivers/scsi/53c7,8xx.c | if (error = verify_area(VERIFY_READ,buf,count)) |
count | 2166 | drivers/scsi/53c7,8xx.c | if (count > 80) |
count | 2169 | drivers/scsi/53c7,8xx.c | memcpy_from_fs(input_buf, buf, count); |
count | 2171 | drivers/scsi/53c7,8xx.c | if (input_buf[count - 1] != '\n') |
count | 2174 | drivers/scsi/53c7,8xx.c | input_buf[count - 1]=0; |
count | 2198 | drivers/scsi/53c7,8xx.c | return count; |
count | 2202 | drivers/scsi/53c7,8xx.c | char *buf,int count) { |
count | 2600 | drivers/scsi/53c7,8xx.c | u32 count = cmd->use_sg ? |
count | 2606 | drivers/scsi/53c7,8xx.c | << 24) | count; |
count | 2620 | 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 | 926 | drivers/scsi/aha1542.c | int count = 0; |
count | 1061 | drivers/scsi/aha1542.c | count++; |
count | 1068 | drivers/scsi/aha1542.c | return count; |
count | 1074 | drivers/scsi/aha1542.c | int count = 0; |
count | 1086 | drivers/scsi/aha1542.c | count++; |
count | 1089 | drivers/scsi/aha1542.c | printk("Potential to restart %d stalled commands...\n", count); |
count | 1092 | drivers/scsi/aha1542.c | if (count) aha1542_out(shost->io_port, &ahacmd, 1); |
count | 804 | drivers/scsi/buslogic.c | unsigned char cmd, count; |
count | 1118 | drivers/scsi/buslogic.c | int count = 0; |
count | 1313 | drivers/scsi/buslogic.c | count++; |
count | 1318 | drivers/scsi/buslogic.c | return count; |
count | 1324 | drivers/scsi/buslogic.c | unsigned int count = 0; |
count | 1336 | drivers/scsi/buslogic.c | count++; |
count | 1339 | drivers/scsi/buslogic.c | buslogic_printk("potential to restart %d stalled commands...\n", count); |
count | 1342 | drivers/scsi/buslogic.c | if (count) |
count | 121 | drivers/scsi/g_NCR5380.c | int count; |
count | 124 | drivers/scsi/g_NCR5380.c | for (count = 0; current_override < NO_OVERRIDES; ++current_override) { |
count | 161 | drivers/scsi/g_NCR5380.c | ++count; |
count | 163 | drivers/scsi/g_NCR5380.c | return count; |
count | 183 | drivers/scsi/in2000.c | unsigned count, infcnt, txcnt; |
count | 189 | drivers/scsi/in2000.c | count = (infcnt << 3) - 32; /* don't fill completely */ |
count | 190 | drivers/scsi/in2000.c | if ( count > in2000_datalen ) |
count | 191 | drivers/scsi/in2000.c | count = in2000_datalen; /* limit to actual data on hand */ |
count | 192 | drivers/scsi/in2000.c | count >>= 1; /* Words, not bytes */ |
count | 194 | drivers/scsi/in2000.c | if ( count ) { |
count | 195 | drivers/scsi/in2000.c | port_write(INFIFO, in2000_dataptr, count); |
count | 196 | drivers/scsi/in2000.c | in2000_datalen -= (count<<1); |
count | 199 | drivers/scsi/in2000.c | while ( count-- ) |
count | 216 | drivers/scsi/in2000.c | count = 32; /* Always says to use this much flush */ |
count | 217 | drivers/scsi/in2000.c | while ( count-- ) |
count | 225 | drivers/scsi/in2000.c | unsigned fic, count, count2; |
count | 227 | drivers/scsi/in2000.c | count = inb(INFCNT) & 0xe1; |
count | 229 | drivers/scsi/in2000.c | count2 = count; |
count | 230 | drivers/scsi/in2000.c | count = (fic = inb(INFCNT)) & 0xe1; |
count | 231 | drivers/scsi/in2000.c | } while ( count != count2 ); |
count | 237 | drivers/scsi/in2000.c | if(fic > 128) count = 1024; |
count | 238 | drivers/scsi/in2000.c | else if(fic > 64) count = 512; |
count | 239 | drivers/scsi/in2000.c | else if (fic > 32) count = 256; |
count | 241 | drivers/scsi/in2000.c | count = in2000_datalen - count2; /* FIFO has the rest */ |
count | 242 | drivers/scsi/in2000.c | if ( count > in2000_datalen ) /* count2 is lesser of FIFO & rqst */ |
count | 245 | drivers/scsi/in2000.c | count2 = count >> 1; |
count | 246 | drivers/scsi/in2000.c | count >>= 1; /* also to words */ |
count | 247 | drivers/scsi/in2000.c | count -= count2; /* extra left over in FIFO */ |
count | 278 | drivers/scsi/in2000.c | unsigned int count,auxstatus,scsistatus,cmdphase,scsibyte; |
count | 284 | drivers/scsi/in2000.c | if (( (ficmsk & (count = inb(INFCNT))) == 0xfe ) || |
count | 294 | drivers/scsi/in2000.c | DEB(printk("(int2000:%02x %02x %02x %02x %02x)\n",count,auxstatus, |
count | 351 | drivers/scsi/pas16.c | int count; |
count | 353 | drivers/scsi/pas16.c | for (count = 0; current_override < NO_OVERRIDES; ++current_override) { |
count | 426 | drivers/scsi/pas16.c | ++count; |
count | 428 | drivers/scsi/pas16.c | return count; |
count | 640 | drivers/scsi/sd.c | int count, this_count_max; |
count | 646 | drivers/scsi/sd.c | count = 0; |
count | 654 | drivers/scsi/sd.c | if (count < SCpnt->host->sg_tablesize) count++; |
count | 663 | drivers/scsi/sd.c | ((unsigned int) SCpnt->request.bh->b_data-1) == ISA_DMA_THRESHOLD) count--; |
count | 665 | drivers/scsi/sd.c | SCpnt->use_sg = count; /* Number of chains */ |
count | 666 | drivers/scsi/sd.c | count = 512;/* scsi_malloc can only allocate in chunks of 512 bytes */ |
count | 667 | drivers/scsi/sd.c | while( count < (SCpnt->use_sg * sizeof(struct scatterlist))) |
count | 668 | drivers/scsi/sd.c | count = count << 1; |
count | 669 | drivers/scsi/sd.c | SCpnt->sglist_len = count; |
count | 670 | drivers/scsi/sd.c | max_sg = count / sizeof(struct scatterlist); |
count | 673 | drivers/scsi/sd.c | sgpnt = (struct scatterlist * ) scsi_malloc(count); |
count | 680 | drivers/scsi/sd.c | memset(sgpnt, 0, count); /* Zero so it is easy to fill, but only |
count | 685 | drivers/scsi/sd.c | for(count = 0, bh = SCpnt->request.bh, bhp = bh->b_reqnext; |
count | 686 | drivers/scsi/sd.c | count < SCpnt->use_sg && bh; |
count | 687 | drivers/scsi/sd.c | count++, bh = bhp) { |
count | 691 | drivers/scsi/sd.c | if(!sgpnt[count].address) sgpnt[count].address = bh->b_data; |
count | 692 | drivers/scsi/sd.c | sgpnt[count].length += bh->b_size; |
count | 695 | drivers/scsi/sd.c | if (((long) sgpnt[count].address) + sgpnt[count].length - 1 > |
count | 697 | drivers/scsi/sd.c | !sgpnt[count].alt_address) { |
count | 698 | drivers/scsi/sd.c | sgpnt[count].alt_address = sgpnt[count].address; |
count | 703 | drivers/scsi/sd.c | if(dma_free_sectors < (sgpnt[count].length >> 9) + 10) { |
count | 704 | drivers/scsi/sd.c | sgpnt[count].address = NULL; |
count | 706 | drivers/scsi/sd.c | sgpnt[count].address = |
count | 707 | drivers/scsi/sd.c | (char *) scsi_malloc(sgpnt[count].length); |
count | 714 | drivers/scsi/sd.c | if(sgpnt[count].address == NULL){ /* Out of dma memory */ |
count | 718 | drivers/scsi/sd.c | while(--count >= 0){ |
count | 719 | drivers/scsi/sd.c | if(sgpnt[count].alt_address) |
count | 720 | drivers/scsi/sd.c | scsi_free(sgpnt[count].address, |
count | 721 | drivers/scsi/sd.c | sgpnt[count].length); |
count | 728 | drivers/scsi/sd.c | SCpnt->use_sg = count; |
count | 743 | drivers/scsi/sd.c | if (((long) sgpnt[count].address) + sgpnt[count].length + |
count | 746 | drivers/scsi/sd.c | !sgpnt[count].alt_address) continue; |
count | 748 | drivers/scsi/sd.c | if(!sgpnt[count].alt_address) {count--; continue; } |
count | 750 | drivers/scsi/sd.c | tmp = (char *) scsi_malloc(sgpnt[count].length |
count | 757 | drivers/scsi/sd.c | scsi_free(sgpnt[count].address, sgpnt[count].length); |
count | 758 | drivers/scsi/sd.c | sgpnt[count].address = tmp; |
count | 759 | drivers/scsi/sd.c | count--; |
count | 774 | drivers/scsi/sd.c | if(count < SCpnt->use_sg || SCpnt->use_sg |
count | 778 | drivers/scsi/sd.c | SCpnt->use_sg, count, dma_free_sectors); |
count | 786 | drivers/scsi/sd.c | for(count=0; count<SCpnt->use_sg; count++) |
count | 787 | drivers/scsi/sd.c | printk("{%d:%p %p %d} ", count, |
count | 788 | drivers/scsi/sd.c | sgpnt[count].address, |
count | 789 | drivers/scsi/sd.c | sgpnt[count].alt_address, |
count | 790 | drivers/scsi/sd.c | sgpnt[count].length); |
count | 795 | drivers/scsi/sd.c | for(count=0; count<SCpnt->use_sg; count++) |
count | 796 | drivers/scsi/sd.c | if(sgpnt[count].alt_address) |
count | 797 | drivers/scsi/sd.c | memcpy(sgpnt[count].address, sgpnt[count].alt_address, |
count | 798 | drivers/scsi/sd.c | sgpnt[count].length); |
count | 248 | drivers/scsi/seagate.c | register int count = 0, start = jiffies + 1, stop = start + 25; |
count | 251 | drivers/scsi/seagate.c | for (;jiffies < stop; ++count); |
count | 258 | drivers/scsi/seagate.c | borken_calibration = (count * 4) / (SLOW_RATE*1024); |
count | 269 | drivers/scsi/seagate.c | register int count; |
count | 270 | drivers/scsi/seagate.c | for (count = borken_calibration; count && (STATUS & STAT_REQ); |
count | 271 | drivers/scsi/seagate.c | --count); |
count | 273 | drivers/scsi/seagate.c | if (count) |
count | 203 | drivers/scsi/sg.c | static int sg_read(struct inode *inode,struct file *filp,char *buf,int count) |
count | 208 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_WRITE,buf,count))) |
count | 228 | drivers/scsi/sg.c | if (count>=sizeof(struct sg_header)) |
count | 232 | drivers/scsi/sg.c | if (count>device->header.pack_len) |
count | 233 | drivers/scsi/sg.c | count=device->header.pack_len; |
count | 234 | drivers/scsi/sg.c | if (count > sizeof(struct sg_header)) { |
count | 235 | drivers/scsi/sg.c | memcpy_tofs(buf,device->buff,count-sizeof(struct sg_header)); |
count | 239 | drivers/scsi/sg.c | count=0; |
count | 249 | drivers/scsi/sg.c | return count; |
count | 292 | drivers/scsi/sg.c | static int sg_write(struct inode *inode,struct file *filp,const char *buf,int count) |
count | 302 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_READ,buf,count))) |
count | 308 | drivers/scsi/sg.c | if (count<(sizeof(struct sg_header) + 6)) |
count | 338 | drivers/scsi/sg.c | device->header.pack_len=count; |
count | 415 | drivers/scsi/sg.c | if( count < (sizeof(struct sg_header) + size) ) |
count | 459 | drivers/scsi/sg.c | return count; |
count | 721 | drivers/scsi/sr.c | int count, this_count_max; |
count | 724 | drivers/scsi/sr.c | count = 0; |
count | 729 | drivers/scsi/sr.c | if(this_count) count++; |
count | 730 | drivers/scsi/sr.c | while(bh && count < SCpnt->host->sg_tablesize) { |
count | 733 | drivers/scsi/sr.c | count++; |
count | 739 | drivers/scsi/sr.c | if (count < SCpnt->host->sg_tablesize) { |
count | 740 | drivers/scsi/sr.c | count++; |
count | 744 | drivers/scsi/sr.c | count--; |
count | 748 | drivers/scsi/sr.c | SCpnt->use_sg = count; /* Number of chains */ |
count | 749 | drivers/scsi/sr.c | count = 512;/* scsi_malloc can only allocate in chunks of 512 bytes*/ |
count | 750 | drivers/scsi/sr.c | while( count < (SCpnt->use_sg * sizeof(struct scatterlist))) |
count | 751 | drivers/scsi/sr.c | count = count << 1; |
count | 752 | drivers/scsi/sr.c | SCpnt->sglist_len = count; |
count | 753 | drivers/scsi/sr.c | sgpnt = (struct scatterlist * ) scsi_malloc(count); |
count | 759 | drivers/scsi/sr.c | count = 0; |
count | 762 | drivers/scsi/sr.c | sgpnt[count].length = (SCpnt->request.sector % 4) << 9; |
count | 763 | drivers/scsi/sr.c | sgpnt[count].address = (char *) scsi_malloc(sgpnt[count].length); |
count | 764 | drivers/scsi/sr.c | if(!sgpnt[count].address) panic("SCSI DMA pool exhausted."); |
count | 765 | drivers/scsi/sr.c | sgpnt[count].alt_address = sgpnt[count].address; /* Flag to delete |
count | 767 | drivers/scsi/sr.c | count++; |
count | 769 | drivers/scsi/sr.c | for(bh = SCpnt->request.bh; count < SCpnt->use_sg; |
count | 770 | drivers/scsi/sr.c | count++, bh = bh->b_reqnext) { |
count | 772 | drivers/scsi/sr.c | sgpnt[count].address = bh->b_data; |
count | 773 | drivers/scsi/sr.c | sgpnt[count].length = bh->b_size; |
count | 774 | drivers/scsi/sr.c | sgpnt[count].alt_address = NULL; |
count | 776 | drivers/scsi/sr.c | sgpnt[count].address = (char *) scsi_malloc(end_rec); |
count | 777 | drivers/scsi/sr.c | if(!sgpnt[count].address) panic("SCSI DMA pool exhausted."); |
count | 778 | drivers/scsi/sr.c | sgpnt[count].length = end_rec; |
count | 779 | drivers/scsi/sr.c | sgpnt[count].alt_address = sgpnt[count].address; |
count | 780 | drivers/scsi/sr.c | if (count+1 != SCpnt->use_sg) panic("Bad sr request list"); |
count | 783 | drivers/scsi/sr.c | if (((long) sgpnt[count].address) + sgpnt[count].length > ISA_DMA_THRESHOLD && |
count | 785 | drivers/scsi/sr.c | sgpnt[count].alt_address = sgpnt[count].address; |
count | 789 | drivers/scsi/sr.c | if(dma_free_sectors < (sgpnt[count].length >> 9) + 5) { |
count | 790 | drivers/scsi/sr.c | sgpnt[count].address = NULL; |
count | 792 | drivers/scsi/sr.c | sgpnt[count].address = (char *) scsi_malloc(sgpnt[count].length); |
count | 798 | drivers/scsi/sr.c | if(sgpnt[count].address == NULL){ /* Out of dma memory */ |
count | 801 | drivers/scsi/sr.c | while(--count >= 0){ |
count | 802 | drivers/scsi/sr.c | if(sgpnt[count].alt_address) |
count | 803 | drivers/scsi/sr.c | scsi_free(sgpnt[count].address, sgpnt[count].length); |
count | 816 | drivers/scsi/sr.c | for(count=0; count<SCpnt->use_sg; count++) |
count | 817 | drivers/scsi/sr.c | printk("SGlist: %d %x %x %x\n", count, |
count | 818 | drivers/scsi/sr.c | sgpnt[count].address, |
count | 819 | drivers/scsi/sr.c | sgpnt[count].alt_address, |
count | 820 | drivers/scsi/sr.c | sgpnt[count].length); |
count | 761 | drivers/scsi/st.c | st_write(struct inode * inode, struct file * filp, const char * buf, int count) |
count | 795 | drivers/scsi/st.c | if (STp->block_size == 0 && count > st_buffer_size) |
count | 836 | drivers/scsi/st.c | if (STp->block_size != 0 && (count % STp->block_size) != 0) |
count | 847 | drivers/scsi/st.c | total = count; |
count | 856 | drivers/scsi/st.c | while((STp->block_size == 0 && !STp->do_async_writes && count > 0) || |
count | 858 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes + count > write_threshold)) |
count | 862 | drivers/scsi/st.c | do_count = count; |
count | 865 | drivers/scsi/st.c | if (do_count > count) |
count | 866 | drivers/scsi/st.c | do_count = count; |
count | 912 | drivers/scsi/st.c | count -= do_count - transfer; |
count | 945 | drivers/scsi/st.c | if (count < total) |
count | 946 | drivers/scsi/st.c | return total - count; |
count | 952 | drivers/scsi/st.c | count -= do_count; |
count | 962 | drivers/scsi/st.c | if (count != 0) { |
count | 965 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes,b_point,count); |
count | 966 | drivers/scsi/st.c | filp->f_pos += count; |
count | 967 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes += count; |
count | 968 | drivers/scsi/st.c | count = 0; |
count | 1012 | drivers/scsi/st.c | st_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 1033 | drivers/scsi/st.c | if (STp->block_size == 0 && count > st_buffer_size) |
count | 1037 | drivers/scsi/st.c | (count % STp->block_size) != 0) |
count | 1066 | drivers/scsi/st.c | for (total = 0; total < count; ) { |
count | 1075 | drivers/scsi/st.c | blks = bytes = count; |
count | 1082 | drivers/scsi/st.c | bytes = count; |
count | 1217 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes, count - total); |
count | 1219 | drivers/scsi/st.c | transfer = (STp->buffer)->buffer_bytes < count - total ? |
count | 1220 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes : count - total; |
count | 1246 | drivers/scsi/st.c | count = total; /* Read only one variable length block */ |
count | 198 | drivers/scsi/t128.c | int sig, count; |
count | 200 | drivers/scsi/t128.c | for (count = 0; current_override < NO_OVERRIDES; ++current_override) { |
count | 267 | drivers/scsi/t128.c | ++count; |
count | 269 | drivers/scsi/t128.c | return count; |
count | 112 | drivers/sound/ad1848.c | static void ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
count | 113 | drivers/sound/ad1848.c | static void ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
count | 815 | drivers/sound/ad1848.c | ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
count | 820 | drivers/sound/ad1848.c | cnt = count; |
count | 852 | drivers/sound/ad1848.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
count | 891 | drivers/sound/ad1848.c | ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
count | 898 | drivers/sound/ad1848.c | cnt = count; |
count | 927 | drivers/sound/ad1848.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
count | 183 | drivers/sound/audio.c | audio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
count | 191 | drivers/sound/audio.c | c = count; |
count | 202 | drivers/sound/audio.c | if (!count) /* |
count | 281 | drivers/sound/audio.c | return count; |
count | 285 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
count | 293 | drivers/sound/audio.c | c = count; |
count | 347 | drivers/sound/audio.c | return count - c; |
count | 502 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
count | 508 | drivers/sound/audio.c | audio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
count | 1326 | drivers/sound/configure.c | int count; |
count | 1338 | drivers/sound/configure.c | count = read (fd, &c, 1); |
count | 1339 | drivers/sound/configure.c | if (count == 0) |
count | 135 | drivers/sound/dev_table.h | int count, int intrflag, int dma_restart); |
count | 137 | drivers/sound/dev_table.h | int count, int intrflag, int dma_restart); |
count | 174 | drivers/sound/dev_table.h | int offs, int count, int pmgr_flag); |
count | 452 | drivers/sound/dmabuf.c | int bytes, count; |
count | 462 | drivers/sound/dmabuf.c | count = (fact >> 16) & 0xffff; |
count | 464 | drivers/sound/dmabuf.c | if (count == 0) |
count | 465 | drivers/sound/dmabuf.c | count = MAX_SUB_BUFFERS; |
count | 470 | drivers/sound/dmabuf.c | if (count < 2) |
count | 474 | drivers/sound/dmabuf.c | dmap->max_fragments = count; |
count | 484 | drivers/sound/dmabuf.c | return IOCTL_OUT (arg, bytes | (count << 16)); |
count | 684 | drivers/sound/dmabuf.c | DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode) |
count | 760 | drivers/sound/dmabuf.c | set_dma_count (chan, count); |
count | 767 | drivers/sound/dmabuf.c | count, |
count | 774 | drivers/sound/dmabuf.c | snd_dma_prog (chan, physaddr, count, dma_mode, FALSE); |
count | 778 | drivers/sound/dmabuf.c | physaddr, count); |
count | 789 | drivers/sound/dmabuf.c | return count; |
count | 1064 | drivers/sound/dmabuf.c | DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode) |
count | 1508 | drivers/sound/gus_wave.c | int offs, int count, int pmgr_flag) |
count | 1524 | drivers/sound/gus_wave.c | if (count < sizeof_patch) |
count | 1530 | drivers/sound/gus_wave.c | count -= sizeof_patch; |
count | 1553 | drivers/sound/gus_wave.c | if (count < patch.len) |
count | 1556 | drivers/sound/gus_wave.c | count, (int) patch.len); |
count | 1557 | drivers/sound/gus_wave.c | patch.len = count; |
count | 2224 | drivers/sound/gus_wave.c | int this_one, count; |
count | 2231 | drivers/sound/gus_wave.c | count = total_count / gus_sampling_channels; |
count | 2241 | drivers/sound/gus_wave.c | pcm_datasize[this_one] = count; |
count | 2247 | drivers/sound/gus_wave.c | DMAbuf_start_dma (dev, buf + (chn * count), count, DMA_MODE_WRITE); |
count | 2281 | drivers/sound/gus_wave.c | if (!pcm_active && (pcm_qlen > 0 || count < pcm_bsize)) |
count | 2310 | drivers/sound/gus_wave.c | gus_sampling_start_input (int dev, unsigned long buf, int count, |
count | 2318 | drivers/sound/gus_wave.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
count | 461 | drivers/sound/midi_synth.c | int offs, int count, int pmgr_flag) |
count | 480 | drivers/sound/midi_synth.c | if (count < hdr_size) |
count | 486 | drivers/sound/midi_synth.c | count -= hdr_size; |
count | 495 | drivers/sound/midi_synth.c | if (count < sysex.len) |
count | 498 | drivers/sound/midi_synth.c | count, (int) sysex.len); |
count | 499 | drivers/sound/midi_synth.c | sysex.len = count; |
count | 11 | drivers/sound/midi_synth.h | int offs, int count, int pmgr_flag); |
count | 279 | drivers/sound/midibuf.c | MIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
count | 287 | drivers/sound/midibuf.c | if (!count) |
count | 294 | drivers/sound/midibuf.c | while (c < count) |
count | 312 | drivers/sound/midibuf.c | if (n > (count - c)) |
count | 313 | drivers/sound/midibuf.c | n = count - c; |
count | 330 | drivers/sound/midibuf.c | MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
count | 357 | drivers/sound/midibuf.c | if (n > count) |
count | 358 | drivers/sound/midibuf.c | n = count; |
count | 917 | drivers/sound/opl3.c | int offs, int count, int pmgr_flag) |
count | 921 | drivers/sound/opl3.c | if (count < sizeof (ins)) |
count | 269 | drivers/sound/pas2_pcm.c | pas_pcm_output_block (int dev, unsigned long buf, int count, |
count | 274 | 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 | 276 | drivers/sound/pas2_pcm.c | cnt = count; |
count | 293 | drivers/sound/pas2_pcm.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
count | 296 | drivers/sound/pas2_pcm.c | count >>= 1; |
count | 298 | drivers/sound/pas2_pcm.c | if (count != pcm_count) |
count | 302 | drivers/sound/pas2_pcm.c | pas_write (count & 0xff, SAMPLE_BUFFER_COUNTER); |
count | 303 | drivers/sound/pas2_pcm.c | pas_write ((count >> 8) & 0xff, SAMPLE_BUFFER_COUNTER); |
count | 306 | drivers/sound/pas2_pcm.c | pcm_count = count; |
count | 317 | drivers/sound/pas2_pcm.c | pas_pcm_start_input (int dev, unsigned long buf, int count, |
count | 323 | 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 | 325 | drivers/sound/pas2_pcm.c | cnt = count; |
count | 339 | drivers/sound/pas2_pcm.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
count | 342 | drivers/sound/pas2_pcm.c | count >>= 1; |
count | 344 | drivers/sound/pas2_pcm.c | if (count != pcm_count) |
count | 348 | drivers/sound/pas2_pcm.c | pas_write (count & 0xff, SAMPLE_BUFFER_COUNTER); |
count | 349 | drivers/sound/pas2_pcm.c | pas_write ((count >> 8) & 0xff, SAMPLE_BUFFER_COUNTER); |
count | 352 | drivers/sound/pas2_pcm.c | pcm_count = count; |
count | 86 | drivers/sound/patmgr.c | pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
count | 91 | drivers/sound/patmgr.c | if (count != sizeof (struct patmgr_info)) |
count | 109 | drivers/sound/patmgr.c | COPY_TO_USER (buf, 0, (char *) mbox[dev], count); |
count | 120 | drivers/sound/patmgr.c | return count; |
count | 124 | drivers/sound/patmgr.c | pmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
count | 128 | drivers/sound/patmgr.c | if (count < 4) |
count | 145 | drivers/sound/patmgr.c | buf, 4, count, 1); |
count | 148 | drivers/sound/patmgr.c | if (count != sizeof (struct patmgr_info)) |
count | 163 | drivers/sound/patmgr.c | COPY_FROM_USER (&((char *) mbox[dev])[4], buf, 4, count - 4); |
count | 174 | drivers/sound/patmgr.c | return count; |
count | 231 | drivers/sound/pss.c | int i, limit, val, count; |
count | 249 | drivers/sound/pss.c | count = 1; |
count | 264 | drivers/sound/pss.c | if (count >= size && flags & CPF_LAST) |
count | 269 | drivers/sound/pss.c | count, size); |
count | 275 | drivers/sound/pss.c | count++; |
count | 71 | drivers/sound/sb16_dsp.c | static void sb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
count | 72 | drivers/sound/sb16_dsp.c | static void sb16_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
count | 274 | drivers/sound/sb16_dsp.c | sb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
count | 278 | drivers/sound/sb16_dsp.c | cnt = count; |
count | 284 | drivers/sound/sb16_dsp.c | printk ("output_block: %x %d %d\n", buf, count, intrflag); |
count | 313 | drivers/sound/sb16_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
count | 331 | drivers/sound/sb16_dsp.c | sb16_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
count | 335 | drivers/sound/sb16_dsp.c | cnt = count; |
count | 341 | drivers/sound/sb16_dsp.c | printk ("start_input: %x %d %d\n", buf, count, intrflag); |
count | 370 | drivers/sound/sb16_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
count | 411 | drivers/sound/sb_dsp.c | sb_dsp_output_block (int dev, unsigned long buf, int count, |
count | 420 | drivers/sound/sb_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
count | 423 | drivers/sound/sb_dsp.c | count >>= 1; |
count | 424 | drivers/sound/sb_dsp.c | count--; |
count | 433 | drivers/sound/sb_dsp.c | sb_dsp_command ((unsigned char) (count & 0xff)); |
count | 434 | drivers/sound/sb_dsp.c | sb_dsp_command ((unsigned char) ((count >> 8) & 0xff)); |
count | 450 | drivers/sound/sb_dsp.c | sb_dsp_command ((unsigned char) (count & 0xff)); |
count | 451 | drivers/sound/sb_dsp.c | sb_dsp_command ((unsigned char) ((count >> 8) & 0xff)); |
count | 461 | drivers/sound/sb_dsp.c | sb_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, |
count | 474 | drivers/sound/sb_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
count | 477 | drivers/sound/sb_dsp.c | count >>= 1; |
count | 478 | drivers/sound/sb_dsp.c | count--; |
count | 487 | drivers/sound/sb_dsp.c | sb_dsp_command ((unsigned char) (count & 0xff)); |
count | 488 | drivers/sound/sb_dsp.c | sb_dsp_command ((unsigned char) ((count >> 8) & 0xff)); |
count | 504 | drivers/sound/sb_dsp.c | sb_dsp_command ((unsigned char) (count & 0xff)); |
count | 505 | drivers/sound/sb_dsp.c | sb_dsp_command ((unsigned char) ((count >> 8) & 0xff)); |
count | 99 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
count | 101 | drivers/sound/sequencer.c | int c = count, p = 0; |
count | 112 | drivers/sound/sequencer.c | return pmgr_read (dev - 1, file, buf, count); |
count | 144 | drivers/sound/sequencer.c | return count - c; |
count | 238 | drivers/sound/sequencer.c | sequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
count | 247 | drivers/sound/sequencer.c | DEB (printk ("sequencer_write(dev=%d, count=%d)\n", dev, count)); |
count | 255 | drivers/sound/sequencer.c | return pmgr_write (dev - 1, file, buf, count); |
count | 257 | drivers/sound/sequencer.c | c = count; |
count | 296 | drivers/sound/sequencer.c | return count - c; |
count | 343 | drivers/sound/sequencer.c | int processed = count - c; |
count | 361 | drivers/sound/sequencer.c | return count; /* This will "eat" chunks shorter than 4 bytes (if written |
count | 1911 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
count | 1917 | drivers/sound/sequencer.c | sequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
count | 13 | drivers/sound/sound_calls.h | int DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode); |
count | 27 | drivers/sound/sound_calls.h | int audio_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
count | 28 | drivers/sound/sound_calls.h | int audio_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
count | 44 | drivers/sound/sound_calls.h | int sequencer_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
count | 45 | drivers/sound/sound_calls.h | int sequencer_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
count | 66 | drivers/sound/sound_calls.h | int MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
count | 67 | drivers/sound/sound_calls.h | int MIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
count | 73 | drivers/sound/sound_calls.h | void MIDIbuf_bytes_received(int dev, unsigned char *buf, int count); |
count | 87 | drivers/sound/sound_calls.h | int CMIDI_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
count | 88 | drivers/sound/sound_calls.h | int CMIDI_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
count | 99 | drivers/sound/sound_calls.h | void request_sound_timer (int count); |
count | 108 | drivers/sound/sound_calls.h | int sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
count | 109 | drivers/sound/sound_calls.h | int sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
count | 212 | drivers/sound/sound_calls.h | int pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count); |
count | 213 | drivers/sound/sound_calls.h | int pmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count); |
count | 246 | drivers/sound/sound_calls.h | int pss_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
count | 247 | drivers/sound/sound_calls.h | int pss_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
count | 286 | drivers/sound/sound_switch.c | read_status (snd_rw_buf * buf, int count) |
count | 293 | drivers/sound/sound_switch.c | l = count; |
count | 308 | drivers/sound/sound_switch.c | sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
count | 310 | drivers/sound/sound_switch.c | DEB (printk ("sound_read_sw(dev=%d, count=%d)\n", dev, count)); |
count | 315 | drivers/sound/sound_switch.c | return read_status (buf, count); |
count | 321 | drivers/sound/sound_switch.c | return audio_read (dev, file, buf, count); |
count | 326 | drivers/sound/sound_switch.c | return sequencer_read (dev, file, buf, count); |
count | 331 | drivers/sound/sound_switch.c | return MIDIbuf_read (dev, file, buf, count); |
count | 342 | drivers/sound/sound_switch.c | sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
count | 345 | drivers/sound/sound_switch.c | DEB (printk ("sound_write_sw(dev=%d, count=%d)\n", dev, count)); |
count | 352 | drivers/sound/sound_switch.c | return sequencer_write (dev, file, buf, count); |
count | 358 | drivers/sound/sound_switch.c | return audio_write (dev, file, buf, count); |
count | 363 | drivers/sound/sound_switch.c | return MIDIbuf_write (dev, file, buf, count); |
count | 370 | drivers/sound/sound_switch.c | return count; |
count | 57 | drivers/sound/soundcard.c | sound_read (struct inode *inode, struct file *file, char *buf, int count) |
count | 64 | drivers/sound/soundcard.c | return sound_read_sw (dev, &files[dev], buf, count); |
count | 68 | drivers/sound/soundcard.c | sound_write (struct inode *inode, struct file *file, char *buf, int count) |
count | 80 | drivers/sound/soundcard.c | return sound_write_sw (dev, &files[dev], buf, count); |
count | 384 | drivers/sound/soundcard.c | request_sound_timer (int count) |
count | 389 | drivers/sound/soundcard.c | if (count < 0) |
count | 390 | drivers/sound/soundcard.c | count = jiffies + (-count); |
count | 392 | drivers/sound/soundcard.c | count += seq_time; |
count | 394 | drivers/sound/soundcard.c | timer_table[SOUND_TIMER].expires = count; |
count | 155 | drivers/sound/sscape.c | host_write (struct sscape_info *devc, unsigned char *data, int count) |
count | 166 | drivers/sound/sscape.c | for (i = 0; i < count; i++) |
count | 763 | drivers/sound/sscape.c | sscape_audio_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
count | 768 | drivers/sound/sscape.c | sscape_audio_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
count | 74 | drivers/sound/uart6850.c | int count; |
count | 76 | drivers/sound/uart6850.c | count = 10; |
count | 78 | drivers/sound/uart6850.c | while (count) /* |
count | 85 | drivers/sound/uart6850.c | count = 100; |
count | 91 | drivers/sound/uart6850.c | while (!input_avail () && count) |
count | 92 | 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 | 485 | fs/exec.c | char * addr, unsigned long count, int to_kmem) |
count | 512 | fs/exec.c | result = file.f_op->read(inode, &file, addr, count); |
count | 515 | fs/exec.c | result = verify_area(VERIFY_WRITE, addr, count); |
count | 518 | fs/exec.c | result = file.f_op->read(inode, &file, addr, count); |
count | 534 | fs/exec.c | if (current->mm->count > 1) { |
count | 542 | fs/exec.c | mm->count = 1; |
count | 545 | fs/exec.c | current->mm->count--; |
count | 624 | fs/exec.c | if ((bprm.argc = count(argv)) < 0) |
count | 626 | 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 | 280 | fs/ext2/file.c | while (count > 0) { |
count | 292 | fs/ext2/file.c | count -= c; |
count | 293 | fs/ext2/file.c | if (count < 0) |
count | 294 | fs/ext2/file.c | c += count; |
count | 193 | fs/hpfs/hpfs_fs.c | char *buf, int count); |
count | 817 | fs/hpfs/hpfs_fs.c | unsigned n, count, n_bands; |
count | 834 | fs/hpfs/hpfs_fs.c | count = 0; |
count | 843 | fs/hpfs/hpfs_fs.c | count += count_one_bitmap(s->s_dev, bitmaps[n]); |
count | 846 | fs/hpfs/hpfs_fs.c | return count; |
count | 857 | fs/hpfs/hpfs_fs.c | unsigned i, count; |
count | 863 | fs/hpfs/hpfs_fs.c | count = 0; |
count | 866 | fs/hpfs/hpfs_fs.c | count += (test_bit(i, bits) != 0); |
count | 869 | fs/hpfs/hpfs_fs.c | return count; |
count | 879 | fs/hpfs/hpfs_fs.c | char *buf, int count) |
count | 892 | fs/hpfs/hpfs_fs.c | if (count > inode->i_size - (off_t) filp->f_pos) |
count | 893 | fs/hpfs/hpfs_fs.c | count = inode->i_size - filp->f_pos; |
count | 896 | fs/hpfs/hpfs_fs.c | while (count > 0) { |
count | 908 | fs/hpfs/hpfs_fs.c | if (n > count) |
count | 909 | fs/hpfs/hpfs_fs.c | n = count; |
count | 938 | fs/hpfs/hpfs_fs.c | if (count > inode->i_size - (off_t) filp->f_pos - n + n0) |
count | 939 | fs/hpfs/hpfs_fs.c | count = inode->i_size - filp->f_pos - n + n0; |
count | 949 | fs/hpfs/hpfs_fs.c | count -= n0; |
count | 1580 | fs/hpfs/hpfs_fs.c | char *buf, int count) |
count | 464 | fs/inode.c | inode->i_sem.count = 1; |
count | 123 | fs/isofs/file.c | static int isofs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 147 | fs/isofs/file.c | if (left > count) |
count | 148 | fs/isofs/file.c | left = count; |
count | 21 | fs/minix/dir.c | static int minix_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 70 | fs/minix/file.c | static int minix_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 94 | fs/minix/file.c | if (left > count) |
count | 95 | fs/minix/file.c | left = count; |
count | 193 | fs/minix/file.c | static int minix_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
count | 214 | fs/minix/file.c | while (written < count) { |
count | 222 | fs/minix/file.c | if (c > count-written) |
count | 223 | fs/minix/file.c | c = count-written; |
count | 26 | fs/msdos/dir.c | static int msdos_dir_read(struct inode * inode,struct file * filp, char * buf,int count) |
count | 110 | fs/msdos/fat.c | int count; |
count | 114 | fs/msdos/fat.c | for (count = 0; count < FAT_CACHE; count++) { |
count | 115 | fs/msdos/fat.c | cache[count].device = 0; |
count | 116 | fs/msdos/fat.c | cache[count].next = count == FAT_CACHE-1 ? NULL : |
count | 117 | fs/msdos/fat.c | &cache[count+1]; |
count | 226 | fs/msdos/fat.c | int nr,count; |
count | 230 | fs/msdos/fat.c | count = 0; |
count | 231 | fs/msdos/fat.c | for (cache_lookup(inode,cluster,&count,&nr); count < cluster; |
count | 232 | fs/msdos/fat.c | count++) { |
count | 157 | fs/msdos/file.c | int count) |
count | 161 | fs/msdos/file.c | char *end = buf + count; |
count | 176 | fs/msdos/file.c | if (filp->f_pos >= inode->i_size || count <= 0) return 0; |
count | 186 | 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 | 192 | fs/msdos/file.c | int count_max = (filp->f_pos & (SECTOR_SIZE-1)) + count; |
count | 211 | fs/msdos/file.c | PRINTK (("count %d ahead %d nblist %d\n",count,read_ahead[MAJOR(inode->i_dev)],pre.nblist)); |
count | 227 | fs/msdos/file.c | PRINTK (("file_read pos %ld nblist %d %d %d\n",filp->f_pos,pre.nblist,pre.fetched,count)); |
count | 256 | fs/msdos/file.c | PRINTK (("--- %d -> %d\n",count,(int)(buf-start))); |
count | 271 | fs/msdos/file.c | int count) |
count | 295 | fs/msdos/file.c | if (count <= 0) return 0; |
count | 297 | fs/msdos/file.c | for (start = buf; count || carry; count -= size) { |
count | 305 | fs/msdos/file.c | size = MIN(SECTOR_SIZE-offset,MAX(carry,count)); |
count | 333 | fs/msdos/file.c | for (size = 0; size < count && left; size++) { |
count | 121 | fs/msdos/misc.c | int count,nr,limit,last,current,sector,last_sector,file_cluster; |
count | 130 | fs/msdos/misc.c | for (count = 0; count < limit; count++) { |
count | 131 | fs/msdos/misc.c | nr = ((count+MSDOS_SB(inode->i_sb)->prev_free) % limit)+2; |
count | 134 | fs/msdos/misc.c | PRINTK (("cnt = %d --",count)); |
count | 138 | fs/msdos/misc.c | MSDOS_SB(inode->i_sb)->prev_free = (count+MSDOS_SB(inode->i_sb)-> |
count | 140 | fs/msdos/misc.c | if (count >= limit) { |
count | 412 | fs/msdos/misc.c | int count,cluster; |
count | 414 | fs/msdos/misc.c | for (count = 0; count < MSDOS_SB(sb)->dir_entries/MSDOS_DPS; count++) { |
count | 415 | fs/msdos/misc.c | if ((cluster = raw_scan_sector(sb,MSDOS_SB(sb)->dir_start+count, |
count | 431 | fs/msdos/misc.c | int count,cluster; |
count | 437 | fs/msdos/misc.c | for (count = 0; count < MSDOS_SB(sb)->cluster_size; count++) { |
count | 440 | fs/msdos/misc.c | count,name,number,ino,res_bh,res_de)) >= 0) |
count | 516 | fs/msdos/misc.c | int count; |
count | 518 | fs/msdos/misc.c | count = 0; |
count | 520 | fs/msdos/misc.c | (void) raw_scan_root(dir->i_sb,NULL,&count,NULL,NULL,NULL); |
count | 524 | fs/msdos/misc.c | NULL,&count,NULL,NULL,NULL); |
count | 526 | fs/msdos/misc.c | return count; |
count | 26 | fs/nfs/dir.c | int count); |
count | 77 | fs/nfs/dir.c | int count) |
count | 99 | fs/nfs/file.c | int count) |
count | 116 | fs/nfs/file.c | if (pos + count > inode->i_size) |
count | 117 | fs/nfs/file.c | count = inode->i_size - pos; |
count | 118 | fs/nfs/file.c | if (count <= 0) |
count | 125 | fs/nfs/file.c | && (cache[i].file_pos + cache[i].len >= pos + count) |
count | 132 | fs/nfs/file.c | memcpy_tofs(buf, cache[i].buf + pos - cache[i].file_pos, count); |
count | 134 | fs/nfs/file.c | file->f_pos += count; |
count | 135 | fs/nfs/file.c | return count; |
count | 139 | fs/nfs/file.c | for (i = 0; i < count - n; i += n) { |
count | 164 | fs/nfs/file.c | hunk = count - i; |
count | 194 | fs/nfs/file.c | int count) |
count | 208 | fs/nfs/file.c | if (count <= 0) |
count | 222 | fs/nfs/file.c | for (i = 0; i < count; i += n) { |
count | 223 | fs/nfs/file.c | hunk = count - i; |
count | 380 | fs/nfs/proc.c | int offset, int count, char *data, struct nfs_fattr *fattr, int fs) |
count | 387 | fs/nfs/proc.c | PRINTK("NFS call read %d @ %d\n", count, offset); |
count | 394 | fs/nfs/proc.c | *p++ = htonl(count); |
count | 395 | fs/nfs/proc.c | *p++ = htonl(count); /* traditional, could be any value */ |
count | 404 | fs/nfs/proc.c | if (!(p = xdr_decode_data(p, data, &len, count, fs))) { |
count | 426 | fs/nfs/proc.c | int offset, int count, const char *data, struct nfs_fattr *fattr) |
count | 432 | fs/nfs/proc.c | PRINTK("NFS call write %d @ %d\n", count, offset); |
count | 440 | fs/nfs/proc.c | *p++ = htonl(count); /* traditional, could be any value */ |
count | 441 | fs/nfs/proc.c | p = xdr_encode_data(p, data, count); |
count | 730 | fs/nfs/proc.c | int cookie, int count, struct nfs_entry *entry) |
count | 739 | fs/nfs/proc.c | PRINTK("NFS call readdir %d @ %d\n", count, cookie); |
count | 755 | fs/nfs/proc.c | for (i = 0; i < count && *p++; i++) { |
count | 764 | fs/nfs/proc.c | eof = (i == count && !*p++ && *p++) |
count | 765 | 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 | 69 | fs/proc/array.c | if (count < 0) |
count | 74 | fs/proc/array.c | if (count > memsize - p) |
count | 75 | fs/proc/array.c | count = memsize - p; |
count | 78 | fs/proc/array.c | if (p < sizeof(struct user) && count > 0) { |
count | 79 | fs/proc/array.c | count1 = count; |
count | 86 | fs/proc/array.c | count -= count1; |
count | 90 | fs/proc/array.c | while (p < 2*PAGE_SIZE && count > 0) { |
count | 94 | fs/proc/array.c | count--; |
count | 97 | fs/proc/array.c | memcpy_tofs(buf,(void *) (PAGE_OFFSET + p - PAGE_SIZE),count); |
count | 98 | fs/proc/array.c | read += count; |
count | 122 | fs/proc/array.c | static int read_profile(struct inode *inode, struct file *file, char *buf, int count) |
count | 129 | fs/proc/array.c | if (count < 0) |
count | 133 | fs/proc/array.c | if (count > (prof_len+1)*sizeof(unsigned long) - p) |
count | 134 | fs/proc/array.c | count = (prof_len+1)*sizeof(unsigned long) - p; |
count | 137 | fs/proc/array.c | while (p < sizeof(unsigned long) && count > 0) { |
count | 139 | fs/proc/array.c | buf++; p++; count--; read++; |
count | 142 | fs/proc/array.c | memcpy_tofs(buf,(void *)pnt,count); |
count | 143 | fs/proc/array.c | read += count; |
count | 149 | fs/proc/array.c | static int write_profile(struct inode * inode, struct file * file, const char * buf, int count) |
count | 155 | fs/proc/array.c | return count; |
count | 371 | fs/proc/array.c | int count = 0; |
count | 387 | fs/proc/array.c | } while (count++ < 16); |
count | 614 | fs/proc/array.c | static int read_maps (int pid, struct file * file, char * buf, int count) |
count | 626 | fs/proc/array.c | if (!(*p)->mm || count == 0) |
count | 676 | fs/proc/array.c | if (i > count) |
count | 677 | fs/proc/array.c | i = count; |
count | 679 | fs/proc/array.c | destptr += i; count -= i; |
count | 688 | fs/proc/array.c | if (count == 0) |
count | 793 | fs/proc/array.c | static int array_read(struct inode * inode, struct file * file,char * buf, int count) |
count | 801 | fs/proc/array.c | if (count < 0) |
count | 803 | fs/proc/array.c | if (count > PROC_BLOCK_SIZE) |
count | 804 | fs/proc/array.c | count = PROC_BLOCK_SIZE; |
count | 812 | fs/proc/array.c | &start, file->f_pos, count); |
count | 821 | fs/proc/array.c | count = length; |
count | 828 | fs/proc/array.c | if (count + file->f_pos > length) |
count | 829 | fs/proc/array.c | count = length - file->f_pos; |
count | 830 | fs/proc/array.c | end = count + file->f_pos; |
count | 831 | fs/proc/array.c | memcpy_tofs(buf, (char *) page + file->f_pos, count); |
count | 835 | fs/proc/array.c | return count; |
count | 869 | fs/proc/array.c | static int arraylong_read (struct inode * inode, struct file * file, char * buf, int count) |
count | 874 | fs/proc/array.c | if (count < 0) |
count | 879 | 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 | 42 | fs/proc/net.c | char * buf, int count) |
count | 45 | fs/proc/net.c | int bytes=count; |
count | 50 | fs/proc/net.c | if (count < 0) |
count | 34 | fs/proc/scsi.c | char * buf, int count); |
count | 36 | fs/proc/scsi.c | const char * buf, int count); |
count | 194 | fs/proc/scsi.c | char * buf, int count) |
count | 197 | fs/proc/scsi.c | int bytes = count; |
count | 203 | fs/proc/scsi.c | if (count < -1) /* Normally I wouldn't do this, */ |
count | 210 | fs/proc/scsi.c | while(bytes > 0 || count == -1) { |
count | 212 | fs/proc/scsi.c | if(bytes > PROC_BLOCK_SIZE || count == -1) |
count | 236 | fs/proc/scsi.c | if (count != -1) |
count | 253 | fs/proc/scsi.c | const char * buf, int count) |
count | 261 | fs/proc/scsi.c | if(count > PROC_BLOCK_SIZE) { |
count | 266 | fs/proc/scsi.c | memcpy_fromfs(page, buf, count); |
count | 267 | fs/proc/scsi.c | ret = dispatch_scsi_info_ptr(inode->i_ino, page, 0, 0, count, 1); |
count | 101 | fs/read_write.c | asmlinkage int sys_read(unsigned int fd,char * buf,unsigned int count) |
count | 113 | fs/read_write.c | if (!count) |
count | 115 | fs/read_write.c | error = verify_area(VERIFY_WRITE,buf,count); |
count | 118 | fs/read_write.c | return file->f_op->read(inode,file,buf,count); |
count | 121 | fs/read_write.c | asmlinkage int sys_write(unsigned int fd,char * buf,unsigned int count) |
count | 134 | fs/read_write.c | if (!count) |
count | 136 | fs/read_write.c | error = verify_area(VERIFY_READ,buf,count); |
count | 139 | fs/read_write.c | written = file->f_op->write(inode,file,buf,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 | 28 | fs/smbfs/dir.c | smb_dir_read(struct inode *inode, struct file *filp, char *buf, int count); |
count | 125 | fs/smbfs/dir.c | smb_dir_read(struct inode *inode, struct file *filp, char *buf, int count) |
count | 69 | fs/smbfs/file.c | smb_file_read(struct inode *inode, struct file *file, char *buf, int count) |
count | 93 | fs/smbfs/file.c | if (pos + count > inode->i_size) |
count | 94 | fs/smbfs/file.c | count = inode->i_size - pos; |
count | 96 | fs/smbfs/file.c | if (count <= 0) |
count | 103 | fs/smbfs/file.c | while (already_read < count) { |
count | 109 | fs/smbfs/file.c | to_read = min(65535, count - already_read); |
count | 118 | fs/smbfs/file.c | to_read = min(bufsize, count - already_read); |
count | 146 | fs/smbfs/file.c | smb_file_write(struct inode *inode, struct file *file, const char *buf, int count) |
count | 165 | fs/smbfs/file.c | if (count <= 0) |
count | 184 | fs/smbfs/file.c | while (already_written < count) { |
count | 190 | fs/smbfs/file.c | to_write = min(65535, count - already_written); |
count | 199 | fs/smbfs/file.c | to_write = min(bufsize, count - already_written); |
count | 617 | fs/smbfs/proc.c | off_t offset, long count, char *data, int fs) |
count | 626 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, count); |
count | 655 | fs/smbfs/proc.c | off_t offset, long count, char *data) |
count | 660 | fs/smbfs/proc.c | if ((count <= 0) || (count > 65535)) { |
count | 668 | fs/smbfs/proc.c | WSET(buf, smb_vwv3, count); |
count | 672 | fs/smbfs/proc.c | result = smb_request_read_raw(server, data, count); |
count | 679 | fs/smbfs/proc.c | off_t offset, int count, const char *data) |
count | 685 | fs/smbfs/proc.c | p = smb_setup_header_exclusive(server, SMBwrite, 5, count + 3); |
count | 687 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, count); |
count | 692 | fs/smbfs/proc.c | WSET(p, 0, count); |
count | 693 | fs/smbfs/proc.c | memcpy_fromfs(p+2, data, count); |
count | 707 | fs/smbfs/proc.c | off_t offset, long count, const char *data) |
count | 712 | fs/smbfs/proc.c | if ((count <= 0) || (count > 65535)) { |
count | 719 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, count); |
count | 737 | fs/smbfs/proc.c | result = smb_request_write_raw(server, data, count); |
count | 953 | fs/smbfs/proc.c | word count; |
count | 1009 | fs/smbfs/proc.c | p = smb_decode_word(p, &count); /* vwv[0] = count-returned */ |
count | 1014 | fs/smbfs/proc.c | if (count <= 0) { |
count | 1018 | fs/smbfs/proc.c | if (bcc != count * SMB_DIRINFO_SIZE + 3) { |
count | 1028 | fs/smbfs/proc.c | (count - 1) * SMB_DIRINFO_SIZE, |
count | 1033 | fs/smbfs/proc.c | for (i = 0; i < count; i ++) { |
count | 232 | fs/sysv/balloc.c | int count, old_count; |
count | 239 | fs/sysv/balloc.c | count = 0; |
count | 248 | fs/sysv/balloc.c | count++; |
count | 300 | fs/sysv/balloc.c | count++; |
count | 314 | fs/sysv/balloc.c | if (count != old_count) { |
count | 315 | fs/sysv/balloc.c | printk("sysv_count_free_blocks: free block count was %d, correcting to %d\n",old_count,count); |
count | 317 | fs/sysv/balloc.c | *sb->sv_sb_total_free_blocks = (sb->sv_convert ? to_coh_ulong(count) : count); |
count | 323 | fs/sysv/balloc.c | return count; |
count | 325 | fs/sysv/balloc.c | int count; |
count | 327 | fs/sysv/balloc.c | count = *sb->sv_sb_total_free_blocks; |
count | 329 | fs/sysv/balloc.c | count = from_coh_ulong(count); |
count | 330 | fs/sysv/balloc.c | return count; |
count | 28 | fs/sysv/dir.c | static int sysv_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 76 | fs/sysv/file.c | int sysv_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 102 | fs/sysv/file.c | if (left > count) |
count | 103 | fs/sysv/file.c | left = count; |
count | 203 | fs/sysv/file.c | static int sysv_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
count | 231 | fs/sysv/file.c | while (written<count) { |
count | 239 | fs/sysv/file.c | if (c > count-written) |
count | 240 | fs/sysv/file.c | c = count-written; |
count | 185 | fs/sysv/ialloc.c | int j,block,count; |
count | 188 | fs/sysv/ialloc.c | count = 0; |
count | 205 | fs/sysv/ialloc.c | count++; |
count | 208 | fs/sysv/ialloc.c | if (count != *sb->sv_sb_total_free_inodes) { |
count | 209 | 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 | 211 | fs/sysv/ialloc.c | *sb->sv_sb_total_free_inodes = count; |
count | 217 | fs/sysv/ialloc.c | return count; |
count | 35 | fs/umsdos/dir.c | int count) |
count | 43 | fs/umsdos/dir.c | int count; |
count | 60 | fs/umsdos/dir.c | if (d->count == 0){ |
count | 69 | fs/umsdos/dir.c | d->count = 1; |
count | 158 | fs/umsdos/dir.c | bufk.count = 0; |
count | 272 | fs/umsdos/dir.c | int count = 0; |
count | 280 | fs/umsdos/dir.c | bufk.count = 0; |
count | 282 | fs/umsdos/dir.c | if (bufk.count == 0) break; |
count | 283 | fs/umsdos/dir.c | count += bufk.count; |
count | 285 | fs/umsdos/dir.c | PRINTK (("UMSDOS_readdir out %d count %d pos %Ld\n",ret,count |
count | 287 | fs/umsdos/dir.c | return count == 0 ? -ENOENT : ret; |
count | 32 | fs/umsdos/emd.c | int count) |
count | 37 | fs/umsdos/emd.c | ret = msdos_file_read(inode,filp,buf,count); |
count | 48 | fs/umsdos/emd.c | int count) |
count | 53 | fs/umsdos/emd.c | ret = msdos_file_write(inode,filp,buf,count); |
count | 69 | fs/umsdos/emd.c | int count) |
count | 73 | fs/umsdos/emd.c | written = umsdos_file_write_kmem (emd_dir,filp,buf,count); |
count | 74 | fs/umsdos/emd.c | return written != count ? -EIO : 0; |
count | 85 | fs/umsdos/emd.c | int count) |
count | 90 | fs/umsdos/emd.c | sizeread = umsdos_file_read_kmem (emd_dir,filp,buf,count); |
count | 91 | fs/umsdos/emd.c | if (sizeread != count){ |
count | 93 | fs/umsdos/emd.c | ,filp->f_pos,sizeread,count); |
count | 36 | fs/umsdos/file.c | int count) |
count | 39 | fs/umsdos/file.c | int ret = msdos_file_read(inode,filp,buf,count); |
count | 53 | fs/umsdos/file.c | int count) |
count | 55 | fs/umsdos/file.c | return msdos_file_write(inode,filp,buf,count); |
count | 26 | fs/umsdos/ioctl.c | int count; |
count | 42 | fs/umsdos/ioctl.c | if (d->count == 0){ |
count | 48 | fs/umsdos/ioctl.c | d->count = 1; |
count | 122 | fs/umsdos/ioctl.c | bufk.count = 0; |
count | 125 | fs/umsdos/ioctl.c | ret = bufk.count == 1 ? 1 : 0; |
count | 64 | fs/xiafs/dir.c | struct file * filp, char * buf, int count) |
count | 74 | fs/xiafs/file.c | xiafs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
count | 93 | fs/xiafs/file.c | if (left > count) |
count | 94 | fs/xiafs/file.c | left = count; |
count | 194 | fs/xiafs/file.c | xiafs_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
count | 218 | fs/xiafs/file.c | while (written < count) { |
count | 226 | fs/xiafs/file.c | if (c > count-written) |
count | 227 | 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 | 87 | include/asm-alpha/hwrpb.h | unsigned long count; |
count | 107 | include/asm-alpha/io.h | extern void insb (unsigned long port, void *src, unsigned long count); |
count | 108 | include/asm-alpha/io.h | extern void insw (unsigned long port, void *src, unsigned long count); |
count | 109 | include/asm-alpha/io.h | extern void insl (unsigned long port, void *src, unsigned long count); |
count | 110 | include/asm-alpha/io.h | extern void outsb (unsigned long port, void *dst, unsigned long count); |
count | 111 | include/asm-alpha/io.h | extern void outsw (unsigned long port, void *dst, unsigned long count); |
count | 112 | include/asm-alpha/io.h | extern void outsl (unsigned long port, void *dst, unsigned long count); |
count | 9 | include/asm-alpha/string.h | #define memset(s, c, count) \ |
count | 11 | include/asm-alpha/string.h | __constant_c_memset((s),(0x0101010101010101UL*(unsigned char)c),(count)) : \ |
count | 12 | 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 | 109 | include/asm-i386/io.h | extern inline void ins##s(unsigned short port, void * addr, unsigned long count) \ |
count | 111 | include/asm-i386/io.h | : "=D" (addr), "=c" (count) : "d" (port),"0" (addr),"1" (count)); } |
count | 114 | include/asm-i386/io.h | extern inline void outs##s(unsigned short port, const void * addr, unsigned long count) \ |
count | 116 | include/asm-i386/io.h | : "=S" (addr), "=c" (count) : "d" (port),"0" (addr),"1" (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 | 259 | 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 | 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 | 118 | include/asm-sparc/string.h | size_t count = 0; |
count | 126 | include/asm-sparc/string.h | return count; |
count | 127 | include/asm-sparc/string.h | ++count; |
count | 130 | include/asm-sparc/string.h | return count; |
count | 154 | include/asm-sparc/string.h | extern __inline__ void *memset(void *src, int c, size_t count) |
count | 158 | include/asm-sparc/string.h | while (count--) |
count | 164 | include/asm-sparc/string.h | extern __inline__ void *memcpy(void *dest, const void *src, size_t count) |
count | 168 | include/asm-sparc/string.h | while (count--) |
count | 174 | include/asm-sparc/string.h | extern __inline__ void *memmove(void *dest, const void *src, size_t count) |
count | 181 | include/asm-sparc/string.h | while (count--) |
count | 185 | include/asm-sparc/string.h | tmp = (char *) dest + count; |
count | 186 | include/asm-sparc/string.h | s = (char *) src + count; |
count | 187 | include/asm-sparc/string.h | while (count--) |
count | 194 | include/asm-sparc/string.h | extern __inline__ int memcmp(const void *cs, const void *ct, size_t count) |
count | 199 | include/asm-sparc/string.h | for( su1 = cs, su2 = ct; 0 < count; ++su1, ++su2, count--) |
count | 160 | 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 | 67 | 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 | 118 | include/linux/mm.h | unsigned short count; |
count | 201 | 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 | 100 | include/linux/sched.h | int count; |
count | 112 | include/linux/sched.h | int count; |
count | 124 | include/linux/sched.h | int count; |
count | 144 | include/linux/sched.h | int count; |
count | 410 | include/linux/sched.h | if (sem->count <= 0) |
count | 412 | include/linux/sched.h | sem->count--; |
count | 417 | include/linux/sched.h | sem->count++; |
count | 134 | include/linux/serial.h | int count; /* # of fd on device */ |
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 | 74 | include/net/netrom.h | unsigned char count; |
count | 85 | include/net/netrom.h | unsigned short count; |
count | 289 | kernel/exit.c | int err, retval = 0, count = 0; |
count | 297 | kernel/exit.c | ++count; |
count | 302 | kernel/exit.c | return(count ? retval : -ESRCH); |
count | 366 | kernel/exit.c | if (!--files->count) { |
count | 386 | kernel/exit.c | if (!--fs->count) { |
count | 400 | kernel/exit.c | if (!--sig->count) { |
count | 412 | kernel/exit.c | if (!--mm->count) { |
count | 103 | kernel/fork.c | current->mm->count++; |
count | 110 | kernel/fork.c | tsk->mm->count = 1; |
count | 125 | kernel/fork.c | current->fs->count++; |
count | 131 | kernel/fork.c | tsk->fs->count = 1; |
count | 145 | kernel/fork.c | current->files->count++; |
count | 151 | kernel/fork.c | tsk->files->count = 1; |
count | 166 | kernel/fork.c | current->sig->count++; |
count | 172 | kernel/fork.c | tsk->sig->count = 1; |
count | 57 | kernel/printk.c | unsigned long i, j, count; |
count | 110 | kernel/printk.c | count = len; |
count | 111 | kernel/printk.c | if (count > LOG_BUF_LEN) |
count | 112 | kernel/printk.c | count = LOG_BUF_LEN; |
count | 113 | kernel/printk.c | if (count > logged_chars) |
count | 114 | kernel/printk.c | count = logged_chars; |
count | 115 | kernel/printk.c | j = log_start + log_size - count; |
count | 116 | kernel/printk.c | for (i = 0; i < count; i++) { |
count | 322 | kernel/sched.c | while (sem->count <= 0) { |
count | 458 | kernel/sched.c | static int count = LOAD_FREQ; |
count | 460 | kernel/sched.c | if (count-- > 0) |
count | 462 | kernel/sched.c | count = LOAD_FREQ; |
count | 196 | kernel/time.c | int count; |
count | 201 | kernel/time.c | count = inb_p(0x40); /* read the latched count */ |
count | 202 | kernel/time.c | count |= inb(0x40) << 8; |
count | 204 | kernel/time.c | if (count > (LATCH - LATCH/100)) { |
count | 210 | kernel/time.c | count = ((LATCH-1) - count) * TICK_SIZE; |
count | 211 | kernel/time.c | count = (count + LATCH/2) / LATCH; |
count | 212 | kernel/time.c | return offset + count; |
count | 31 | lib/string.c | char * strncpy(char * dest,const char *src,size_t count) |
count | 35 | lib/string.c | while (count-- && (*dest++ = *src++) != '\0') |
count | 57 | lib/string.c | char * strncat(char *dest, const char *src, size_t count) |
count | 61 | lib/string.c | if (count) { |
count | 65 | lib/string.c | if (--count == 0) { |
count | 91 | lib/string.c | int strncmp(const char * cs,const char * ct,size_t count) |
count | 95 | lib/string.c | while (count) { |
count | 98 | lib/string.c | count--; |
count | 127 | lib/string.c | size_t strnlen(const char * s, size_t count) |
count | 131 | lib/string.c | for (sc = s; count-- && *sc != '\0'; ++sc) |
count | 142 | lib/string.c | size_t count = 0; |
count | 150 | lib/string.c | return count; |
count | 151 | lib/string.c | ++count; |
count | 154 | lib/string.c | return count; |
count | 196 | lib/string.c | void * memset(void * s,char c,size_t count) |
count | 200 | lib/string.c | while (count--) |
count | 208 | lib/string.c | char * bcopy(const char * src, char * dest, int count) |
count | 212 | lib/string.c | while (count--) |
count | 220 | lib/string.c | void * memcpy(void * dest,const void *src,size_t count) |
count | 224 | lib/string.c | while (count--) |
count | 232 | lib/string.c | void * memmove(void * dest,const void *src,size_t count) |
count | 239 | lib/string.c | while (count--) |
count | 243 | lib/string.c | tmp = (char *) dest + count; |
count | 244 | lib/string.c | s = (char *) src + count; |
count | 245 | lib/string.c | while (count--) |
count | 254 | lib/string.c | int memcmp(const void * cs,const void * ct,size_t count) |
count | 259 | lib/string.c | for( su1 = cs, su2 = ct; 0 < count; ++su1, ++su2, count--) |
count | 11 | lib/write.c | _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
count | 201 | mm/kmalloc.c | static int count = 0; |
count | 202 | mm/kmalloc.c | if (++count < 5) { |
count | 331 | mm/mmap.c | static void avl_rebalance (struct vm_area_struct *** nodeplaces_ptr, int count) |
count | 333 | mm/mmap.c | for ( ; count > 0 ; count--) { |
count | 786 | mm/swap.c | static int count = 0; |
count | 787 | mm/swap.c | if (++count < 5) { |
count | 321 | mm/vmalloc.c | int vread(char *buf, char *addr, int count) |
count | 330 | mm/vmalloc.c | if (count == 0) |
count | 332 | mm/vmalloc.c | put_user('\0', buf++), addr++, count--; |
count | 338 | mm/vmalloc.c | if (count == 0) |
count | 340 | 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 | 501 | net/core/skbuff.c | static int count = 0; |
count | 502 | net/core/skbuff.c | if (++count < 5) { |
count | 618 | net/ipv4/ip.c | int count, len; |
count | 643 | net/ipv4/ip.c | count = 0; |
count | 649 | net/ipv4/ip.c | if(count+fp->len > skb->len) |
count | 658 | net/ipv4/ip.c | count += fp->len; |
count | 668 | net/ipv4/ip.c | iph->tot_len = htons((iph->ihl * 4) + count); |
count | 95 | net/netrom/nr_route.c | nr_neigh->count = 0; |
count | 123 | net/netrom/nr_route.c | nr_node->count = 1; |
count | 137 | net/netrom/nr_route.c | nr_neigh->count++; |
count | 142 | net/netrom/nr_route.c | for (found = 0, i = 0; i < nr_node->count; i++) { |
count | 153 | net/netrom/nr_route.c | if (nr_node->count < 3) { |
count | 161 | net/netrom/nr_route.c | nr_node->count++; |
count | 162 | net/netrom/nr_route.c | nr_neigh->count++; |
count | 170 | net/netrom/nr_route.c | nr_neigh->count++; |
count | 176 | net/netrom/nr_route.c | switch (nr_node->count) { |
count | 213 | net/netrom/nr_route.c | for (i = 0; i < nr_node->count; i++) { |
count | 308 | net/netrom/nr_route.c | for (i = 0; i < nr_node->count; i++) { |
count | 310 | net/netrom/nr_route.c | nr_neigh->count--; |
count | 312 | net/netrom/nr_route.c | if (nr_neigh->count == 0 && !nr_neigh->locked) |
count | 315 | net/netrom/nr_route.c | nr_node->count--; |
count | 317 | net/netrom/nr_route.c | if (nr_node->count == 0) { |
count | 362 | net/netrom/nr_route.c | nr_neigh->count = 0; |
count | 393 | net/netrom/nr_route.c | if (nr_neigh->count == 0) |
count | 416 | net/netrom/nr_route.c | for (i = 0; i < s->count; i++) { |
count | 430 | net/netrom/nr_route.c | t->count--; |
count | 432 | net/netrom/nr_route.c | if (t->count == 0 && !t->locked) |
count | 439 | net/netrom/nr_route.c | s->count--; |
count | 458 | net/netrom/nr_route.c | if (s->count <= 0) |
count | 485 | net/netrom/nr_route.c | for (i = 0; i < t->count; i++) { |
count | 487 | net/netrom/nr_route.c | t->count--; |
count | 500 | net/netrom/nr_route.c | if (t->count <= 0) |
count | 639 | net/netrom/nr_route.c | if (nr_node->which >= nr_node->count && nr_node->routes[nr_node->which].neighbour == nr_neigh->number) |
count | 675 | net/netrom/nr_route.c | if (nr_node == NULL || nr_node->which >= nr_node->count) |
count | 714 | net/netrom/nr_route.c | nr_node->count); |
count | 716 | net/netrom/nr_route.c | for (i = 0; i < nr_node->count; i++) { |
count | 765 | net/netrom/nr_route.c | nr_neigh->count); |