tag | line | file | source code |
buf | 238 | arch/i386/boot/compressed/gzip.h | extern int file_read OF((char *buf, unsigned size)); |
buf | 257 | arch/i386/boot/compressed/gzip.h | ulg flush_block OF((char *buf, ulg stored_len, int eof)); |
buf | 264 | arch/i386/boot/compressed/gzip.h | void copy_block OF((char *buf, unsigned len, int header)); |
buf | 265 | arch/i386/boot/compressed/gzip.h | extern int (*read_buf) OF((char *buf, unsigned size)); |
buf | 101 | arch/i386/boot/compressed/unzip.c | uch buf[EXTHDR]; /* extended local header */ |
buf | 149 | arch/i386/boot/compressed/unzip.c | buf[n] = (uch)get_byte(); /* may cause an error if EOF */ |
buf | 151 | arch/i386/boot/compressed/unzip.c | orig_crc = LG(buf); |
buf | 152 | arch/i386/boot/compressed/unzip.c | orig_len = LG(buf+4); |
buf | 161 | arch/i386/boot/compressed/unzip.c | buf[n] = (uch)get_byte(); /* may cause an error if EOF */ |
buf | 163 | arch/i386/boot/compressed/unzip.c | orig_crc = LG(buf+4); |
buf | 164 | arch/i386/boot/compressed/unzip.c | orig_len = LG(buf+12); |
buf | 40 | arch/i386/boot/compressed/xtract.c | char buf[1024]; |
buf | 44 | arch/i386/boot/compressed/xtract.c | struct exec *ex = (struct exec *)buf; |
buf | 51 | arch/i386/boot/compressed/xtract.c | if (read(id,buf,GCC_HEADER) != GCC_HEADER) |
buf | 68 | arch/i386/boot/compressed/xtract.c | if (l > sizeof(buf)) l = sizeof(buf); |
buf | 70 | arch/i386/boot/compressed/xtract.c | if ((n=read(id, buf, l)) !=l) |
buf | 80 | arch/i386/boot/compressed/xtract.c | write(1, buf, l); |
buf | 91 | arch/i386/boot/tools/build.c | char buf[1024]; |
buf | 92 | arch/i386/boot/tools/build.c | struct exec *ex = (struct exec *)buf; |
buf | 123 | arch/i386/boot/tools/build.c | for (i=0;i<sizeof buf; i++) buf[i]=0; |
buf | 126 | arch/i386/boot/tools/build.c | if (read(id,buf,MINIX_HEADER) != MINIX_HEADER) |
buf | 128 | arch/i386/boot/tools/build.c | if (((long *) buf)[0]!=intel_long(0x04100301)) |
buf | 130 | arch/i386/boot/tools/build.c | if (((long *) buf)[1]!=intel_long(MINIX_HEADER)) |
buf | 132 | arch/i386/boot/tools/build.c | if (((long *) buf)[3] != 0) |
buf | 134 | arch/i386/boot/tools/build.c | if (((long *) buf)[4] != 0) |
buf | 136 | arch/i386/boot/tools/build.c | if (((long *) buf)[5] != 0) |
buf | 138 | arch/i386/boot/tools/build.c | if (((long *) buf)[7] != 0) |
buf | 140 | arch/i386/boot/tools/build.c | i=read(id,buf,sizeof buf); |
buf | 144 | arch/i386/boot/tools/build.c | if ((*(unsigned short *)(buf+510)) != (unsigned short)intel_short(0xAA55)) |
buf | 146 | arch/i386/boot/tools/build.c | buf[508] = (char) minor_root; |
buf | 147 | arch/i386/boot/tools/build.c | buf[509] = (char) major_root; |
buf | 148 | arch/i386/boot/tools/build.c | i=write(1,buf,512); |
buf | 155 | arch/i386/boot/tools/build.c | if (read(id,buf,MINIX_HEADER) != MINIX_HEADER) |
buf | 157 | arch/i386/boot/tools/build.c | if (((long *) buf)[0]!=intel_long(0x04100301)) |
buf | 159 | arch/i386/boot/tools/build.c | if (((long *) buf)[1]!=intel_long(MINIX_HEADER)) |
buf | 161 | arch/i386/boot/tools/build.c | if (((long *) buf)[3] != 0) |
buf | 163 | arch/i386/boot/tools/build.c | if (((long *) buf)[4] != 0) |
buf | 165 | arch/i386/boot/tools/build.c | if (((long *) buf)[5] != 0) |
buf | 167 | arch/i386/boot/tools/build.c | if (((long *) buf)[7] != 0) |
buf | 169 | arch/i386/boot/tools/build.c | for (i=0 ; (c=read(id,buf,sizeof buf))>0 ; i+=c ) |
buf | 170 | arch/i386/boot/tools/build.c | if (write(1,buf,c)!=c) |
buf | 180 | arch/i386/boot/tools/build.c | for (c=0 ; c<sizeof(buf) ; c++) |
buf | 181 | arch/i386/boot/tools/build.c | buf[c] = '\0'; |
buf | 184 | arch/i386/boot/tools/build.c | if (c > sizeof(buf)) |
buf | 185 | arch/i386/boot/tools/build.c | c = sizeof(buf); |
buf | 186 | arch/i386/boot/tools/build.c | if (write(1,buf,c) != c) |
buf | 193 | arch/i386/boot/tools/build.c | if (read(id,buf,GCC_HEADER) != GCC_HEADER) |
buf | 213 | arch/i386/boot/tools/build.c | if (l > sizeof(buf)) |
buf | 214 | arch/i386/boot/tools/build.c | l = sizeof(buf); |
buf | 215 | arch/i386/boot/tools/build.c | if ((n=read(id, buf, l)) != l) { |
buf | 222 | arch/i386/boot/tools/build.c | if (write(1, buf, l) != l) |
buf | 232 | arch/i386/boot/tools/build.c | buf[0] = (sys_size & 0xff); |
buf | 233 | arch/i386/boot/tools/build.c | buf[1] = ((sys_size >> 8) & 0xff); |
buf | 234 | arch/i386/boot/tools/build.c | if (write(1, buf, 2) != 2) |
buf | 114 | arch/i386/ibcs/binfmt_coff.c | COFF_FILHDR *coff_hdr = (COFF_FILHDR *) bprm->buf; /* COFF Header */ |
buf | 768 | arch/i386/ibcs/binfmt_coff.c | bprm->buf, /* Buffer for read */ |
buf | 769 | arch/i386/ibcs/binfmt_coff.c | sizeof (bprm->buf)); /* Size of the buffer */ |
buf | 287 | arch/i386/ibcs/binfmt_elf.c | elf_ex = *((struct elfhdr *) bprm->buf); /* exec-header */ |
buf | 356 | arch/i386/ibcs/binfmt_elf.c | retval = read_exec(interpreter_inode,0,bprm->buf,128); |
buf | 359 | arch/i386/ibcs/binfmt_elf.c | interp_ex = *((struct exec *) bprm->buf); /* exec-header */ |
buf | 360 | arch/i386/ibcs/binfmt_elf.c | interp_elf_ex = *((struct elfhdr *) bprm->buf); /* exec-header */ |
buf | 390 | arch/i386/kernel/bios32.c | static char buf[80]; |
buf | 409 | arch/i386/kernel/bios32.c | sprintf (buf, "UNKNOWN RETURN 0x%x", error); |
buf | 410 | arch/i386/kernel/bios32.c | return buf; |
buf | 120 | arch/i386/kernel/ioport.c | int get_ioport_list(char *buf) |
buf | 124 | arch/i386/kernel/ioport.c | len+=sprintf(buf+len,"%04x-%04x : %s\n", |
buf | 131 | arch/i386/kernel/ioport.c | len+=sprintf(buf+len,"4k-Limit reached!\n"); |
buf | 161 | arch/i386/kernel/irq.c | int get_irq_list(char *buf) |
buf | 169 | arch/i386/kernel/irq.c | len += sprintf(buf+len, "%2d: %8d %c %s\n", |
buf | 237 | drivers/block/cdu31a.c | unsigned char *buf); |
buf | 986 | drivers/block/cdu31a.c | unsigned char *buf) |
buf | 988 | drivers/block/cdu31a.c | buf[0] = size / 65536; |
buf | 990 | drivers/block/cdu31a.c | buf[1] = size / 256; |
buf | 991 | drivers/block/cdu31a.c | buf[2] = size % 256; |
buf | 2095 | drivers/block/cdu31a.c | memcpy_tofs((char *) (ra->buf + (CD_FRAMESIZE_RAW * cframe)), |
buf | 2111 | drivers/block/cdu31a.c | memcpy_tofs((char *) (ra->buf + (CD_FRAMESIZE_RAW * cframe)), |
buf | 2483 | drivers/block/cdu31a.c | verify_area(VERIFY_WRITE, ra.buf, CD_FRAMESIZE_RAW * ra.nframes); |
buf | 2893 | drivers/block/floppy.c | char * buf, int count) |
buf | 2900 | drivers/block/floppy.c | return block_read(inode, filp, buf, count); |
buf | 2904 | drivers/block/floppy.c | char * buf, int count) |
buf | 2920 | drivers/block/floppy.c | ret= block_write(inode, filp, buf, count); |
buf | 783 | drivers/block/ide-cd.c | char *buf, int buflen) |
buf | 789 | drivers/block/ide-cd.c | pc.buffer = buf; |
buf | 856 | drivers/block/ide-cd.c | char *buf, int buflen) |
buf | 862 | drivers/block/ide-cd.c | pc.buffer = buf; |
buf | 876 | drivers/block/ide-cd.c | char *buf, int buflen) |
buf | 882 | drivers/block/ide-cd.c | pc.buffer = buf; |
buf | 893 | drivers/block/ide-cd.c | cdrom_mode_select (ide_dev_t *dev, char *buf, int buflen) |
buf | 899 | drivers/block/ide-cd.c | pc.buffer = buf; |
buf | 482 | drivers/block/ll_rw_blk.c | void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buf) |
buf | 506 | drivers/block/ll_rw_blk.c | for (i=0; i<nb; i++, buf += buffersize) |
buf | 516 | drivers/block/ll_rw_blk.c | req->buffer = buf; |
buf | 626 | drivers/block/sbpcd.c | extern int vsprintf(char *buf, const char *fmt, va_list args); |
buf | 3226 | drivers/block/sbpcd.c | i=verify_area(VERIFY_WRITE, read_audio.buf, |
buf | 3386 | drivers/block/sbpcd.c | memcpy_tofs((u_char *) read_audio.buf, |
buf | 539 | drivers/block/xd.c | u_char cmdblk[6],buf[64]; |
buf | 542 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
buf | 543 | drivers/block/xd.c | xd_info[drive].heads = buf[0x0A]; /* heads */ |
buf | 544 | drivers/block/xd.c | xd_info[drive].cylinders = ((u_short *) (buf))[0x04]; /* cylinders */ |
buf | 547 | drivers/block/xd.c | xd_info[drive].rwrite = ((u_short *) (buf + 1))[0x05]; /* reduced write */ |
buf | 548 | drivers/block/xd.c | xd_info[drive].precomp = ((u_short *) (buf + 1))[0x06]; /* write precomp */ |
buf | 549 | drivers/block/xd.c | xd_info[drive].ecc = buf[0x0F]; /* ecc length */ |
buf | 553 | drivers/block/xd.c | xd_setparam(CMD_DTCSETPARAM,drive,xd_info[drive].heads,xd_info[drive].cylinders,((u_short *) (buf + 1))[0x05],((u_short *) (buf + 1))[0x06],buf[0x0F]); |
buf | 583 | drivers/block/xd.c | u_char cmdblk[6],buf[0x200]; |
buf | 586 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
buf | 587 | drivers/block/xd.c | xd_info[drive].heads = buf[0x1AF]; /* heads */ |
buf | 588 | drivers/block/xd.c | xd_info[drive].cylinders = ((u_short *) (buf + 1))[0xD6]; /* cylinders */ |
buf | 591 | drivers/block/xd.c | xd_info[drive].rwrite = ((u_short *) (buf))[0xD8]; /* reduced write */ |
buf | 592 | drivers/block/xd.c | xd_info[drive].wprecomp = ((u_short *) (buf))[0xDA]; /* write precomp */ |
buf | 593 | drivers/block/xd.c | xd_info[drive].ecc = buf[0x1B4]; /* ecc length */ |
buf | 595 | drivers/block/xd.c | xd_info[drive].control = buf[0x1B5]; /* control byte */ |
buf | 597 | drivers/block/xd.c | xd_setparam(CMD_WDSETPARAM,drive,xd_info[drive].heads,xd_info[drive].cylinders,((u_short *) (buf))[0xD8],((u_short *) (buf))[0xDA],buf[0x1B4]); |
buf | 622 | drivers/block/xd.c | u_char cmdblk[6],buf[0x200]; |
buf | 625 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
buf | 626 | drivers/block/xd.c | xd_info[drive].heads = buf[0x04]; /* heads */ |
buf | 627 | drivers/block/xd.c | xd_info[drive].cylinders = (buf[0x02] << 8) | buf[0x03]; /* cylinders */ |
buf | 628 | drivers/block/xd.c | xd_info[drive].sectors = buf[0x05]; /* sectors */ |
buf | 1021 | drivers/char/console.c | char buf[40]; |
buf | 1023 | drivers/char/console.c | sprintf(buf, "\033[%ld;%ldR", y + (decom ? top+1 : 1), x+1); |
buf | 1024 | drivers/char/console.c | respond_string(buf, tty); |
buf | 1031 | drivers/char/console.c | char buf[8]; |
buf | 1033 | drivers/char/console.c | sprintf(buf, "\033[M%c%c%c", (char)(' ' + butt), (char)('!' + mrx), |
buf | 1035 | drivers/char/console.c | respond_string(buf, tty); |
buf | 1344 | drivers/char/console.c | unsigned char *buf, int count) |
buf | 1367 | drivers/char/console.c | c = from_user ? get_fs_byte(buf) : *buf; |
buf | 1368 | drivers/char/console.c | buf++; n++; count--; |
buf | 2152 | drivers/char/console.c | char *sptr, *buf = (char *)arg; |
buf | 2155 | drivers/char/console.c | l = verify_area(VERIFY_READ, buf, 2); |
buf | 2158 | drivers/char/console.c | currcons = get_fs_byte(buf+1); |
buf | 2166 | drivers/char/console.c | buf, (2+chcount)*(mode ? 2 : 1)); |
buf | 2170 | drivers/char/console.c | put_fs_byte((char)(video_num_lines),buf++); |
buf | 2171 | drivers/char/console.c | put_fs_byte((char)(video_num_columns),buf++); |
buf | 2180 | drivers/char/console.c | put_fs_byte(*sptr++,buf++); |
buf | 2183 | drivers/char/console.c | put_fs_byte((char)x,buf++); put_fs_byte((char)y,buf++); |
buf | 2184 | drivers/char/console.c | memcpy_tofs(buf,(char *)origin,2*chcount); |
buf | 2187 | drivers/char/console.c | gotoxy(currcons, get_fs_byte(buf+2), get_fs_byte(buf+3)); |
buf | 2188 | drivers/char/console.c | buf+=4; /* ioctl#, console#, x,y */ |
buf | 2189 | drivers/char/console.c | memcpy_fromfs((char *)origin,buf,2*chcount); |
buf | 1493 | drivers/char/cyclades.c | unsigned char *buf, int count) |
buf | 1522 | drivers/char/cyclades.c | memcpy_fromfs(tmp_buf, buf, c); |
buf | 1528 | drivers/char/cyclades.c | memcpy(info->xmit_buf + info->xmit_head, buf, c); |
buf | 1532 | drivers/char/cyclades.c | buf += c; |
buf | 1617 | drivers/char/cyclades.c | char buf[64]; |
buf | 1619 | drivers/char/cyclades.c | printk("throttle %s: %d....\n", _tty_name(tty, buf), |
buf | 1658 | drivers/char/cyclades.c | char buf[64]; |
buf | 1660 | drivers/char/cyclades.c | printk("throttle %s: %d....\n", _tty_name(tty, buf), |
buf | 584 | drivers/char/keyboard.c | static char buf[] = { 0x1b, 'O', 0x00, 0x00 }; |
buf | 586 | drivers/char/keyboard.c | buf[1] = (mode ? 'O' : '['); |
buf | 587 | drivers/char/keyboard.c | buf[2] = key; |
buf | 588 | drivers/char/keyboard.c | puts_queue(buf); |
buf | 157 | drivers/char/lp.c | static int lp_write_interrupt(struct inode * inode, struct file * file, char * buf, int count) |
buf | 169 | drivers/char/lp.c | memcpy_fromfs(lp->lp_buffer, buf, copy_size); |
buf | 214 | drivers/char/lp.c | buf += bytes_written; |
buf | 223 | drivers/char/lp.c | char * buf, int count) |
buf | 227 | drivers/char/lp.c | char c, *temp = buf; |
buf | 237 | drivers/char/lp.c | temp = buf; |
buf | 253 | drivers/char/lp.c | return temp-buf?temp-buf:-ENOSPC; |
buf | 261 | drivers/char/lp.c | return temp-buf?temp-buf:-EIO; |
buf | 270 | drivers/char/lp.c | return temp-buf?temp-buf:-EIO; |
buf | 278 | drivers/char/lp.c | if (temp != buf) |
buf | 279 | drivers/char/lp.c | return temp-buf; |
buf | 293 | drivers/char/lp.c | return temp-buf; |
buf | 296 | drivers/char/lp.c | static int lp_write(struct inode * inode, struct file * file, char * buf, int count) |
buf | 299 | drivers/char/lp.c | return lp_write_interrupt(inode, file, buf, count); |
buf | 301 | drivers/char/lp.c | return lp_write_polled(inode, file, buf, count); |
buf | 497 | drivers/char/lp.c | char buf[5]; |
buf | 516 | drivers/char/lp.c | sprintf(buf,"lp%d",offset); |
buf | 517 | drivers/char/lp.c | register_iomem(LP_B(offset), 3,buf); |
buf | 539 | drivers/char/lp.c | char buf[5]; |
buf | 556 | drivers/char/lp.c | sprintf(buf,"lp%d",offset); |
buf | 557 | drivers/char/lp.c | register_iomem(LP_B(offset),3,buf); |
buf | 26 | drivers/char/mem.c | static int read_ram(struct inode * inode, struct file * file,char * buf, int count) |
buf | 31 | drivers/char/mem.c | static int write_ram(struct inode * inode, struct file * file,char * buf, int count) |
buf | 36 | drivers/char/mem.c | static int read_mem(struct inode * inode, struct file * file,char * buf, int count) |
buf | 49 | drivers/char/mem.c | put_fs_byte(0,buf); |
buf | 50 | drivers/char/mem.c | buf++; |
buf | 55 | drivers/char/mem.c | memcpy_tofs(buf,(void *) p,count); |
buf | 61 | drivers/char/mem.c | static int write_mem(struct inode * inode, struct file * file,char * buf, int count) |
buf | 75 | drivers/char/mem.c | buf++; |
buf | 80 | drivers/char/mem.c | memcpy_fromfs((void *) p,buf,count); |
buf | 99 | drivers/char/mem.c | static int read_kmem(struct inode *inode, struct file *file, char *buf, int count) |
buf | 103 | drivers/char/mem.c | read1 = read_mem(inode, file, buf, count); |
buf | 106 | drivers/char/mem.c | read2 = vread(buf + read1, (char *) ((unsigned long) file->f_pos), count - read1); |
buf | 113 | drivers/char/mem.c | static int read_port(struct inode * inode,struct file * file,char * buf, int count) |
buf | 116 | drivers/char/mem.c | char * tmp = buf; |
buf | 124 | drivers/char/mem.c | return tmp-buf; |
buf | 127 | drivers/char/mem.c | static int write_port(struct inode * inode,struct file * file,char * buf, int count) |
buf | 130 | drivers/char/mem.c | char * tmp = buf; |
buf | 138 | drivers/char/mem.c | return tmp-buf; |
buf | 141 | drivers/char/mem.c | static int read_null(struct inode * node,struct file * file,char * buf,int count) |
buf | 146 | drivers/char/mem.c | static int write_null(struct inode * inode,struct file * file,char * buf, int count) |
buf | 151 | drivers/char/mem.c | static int read_zero(struct inode * node,struct file * file,char * buf,int count) |
buf | 156 | drivers/char/mem.c | put_fs_byte(0,buf); |
buf | 157 | drivers/char/mem.c | buf++; |
buf | 171 | drivers/char/mem.c | static int read_full(struct inode * node,struct file * file,char * buf,int count) |
buf | 176 | drivers/char/mem.c | static int write_full(struct inode * inode,struct file * file,char * buf, int count) |
buf | 315 | drivers/char/n_tty.c | char buf[64]; |
buf | 319 | drivers/char/n_tty.c | printk("%s: %d input overrun(s)\n", _tty_name(tty, buf), |
buf | 733 | drivers/char/n_tty.c | unsigned char *buf, unsigned int nr) |
buf | 737 | drivers/char/n_tty.c | unsigned char *b = buf; |
buf | 794 | drivers/char/n_tty.c | if (b != buf) |
buf | 805 | drivers/char/n_tty.c | if (((minimum - (b - buf)) < tty->minimum_to_wake) && |
buf | 806 | drivers/char/n_tty.c | ((minimum - (b - buf)) >= 1)) |
buf | 807 | drivers/char/n_tty.c | tty->minimum_to_wake = (minimum - (b - buf)); |
buf | 832 | drivers/char/n_tty.c | if (tty->packet && b == buf) { |
buf | 882 | drivers/char/n_tty.c | if (b - buf >= minimum || !nr) |
buf | 894 | drivers/char/n_tty.c | size = b - buf; |
buf | 905 | drivers/char/n_tty.c | unsigned char * buf, unsigned int nr) |
buf | 909 | drivers/char/n_tty.c | unsigned char *b = buf; |
buf | 954 | drivers/char/n_tty.c | return (b - buf) ? b - buf : retval; |
buf | 98 | drivers/char/psaux.c | unsigned char buf[AUX_BUF_SIZE]; |
buf | 176 | drivers/char/psaux.c | result = queue->buf[queue->tail]; |
buf | 200 | drivers/char/psaux.c | queue->buf[head] = inb(AUX_INPUT_PORT); |
buf | 221 | drivers/char/psaux.c | queue->buf[head] = inb(qp_data); |
buf | 113 | drivers/char/pty.c | unsigned char *buf, int count) |
buf | 128 | drivers/char/pty.c | memcpy_fromfs(temp_buffer, buf, n); |
buf | 134 | drivers/char/pty.c | buf += n; c+= n; |
buf | 140 | drivers/char/pty.c | to->ldisc.receive_buf(to, buf, 0, c); |
buf | 1242 | drivers/char/serial.c | unsigned char *buf, int count) |
buf | 1264 | drivers/char/serial.c | memcpy_fromfs(tmp_buf, buf, c); |
buf | 1270 | drivers/char/serial.c | memcpy(info->xmit_buf + info->xmit_head, buf, c); |
buf | 1274 | drivers/char/serial.c | buf += c; |
buf | 1336 | drivers/char/serial.c | char buf[64]; |
buf | 1338 | drivers/char/serial.c | printk("throttle %s: %d....\n", _tty_name(tty, buf), |
buf | 1359 | drivers/char/serial.c | char buf[64]; |
buf | 1361 | drivers/char/serial.c | printk("unthrottle %s: %d....\n", _tty_name(tty, buf), |
buf | 1917 | drivers/char/tpqic02.c | static int qic02_tape_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 1933 | drivers/char/tpqic02.c | MINOR(dev), buf, count, (unsigned long) filp->f_pos, flags); |
buf | 1947 | drivers/char/tpqic02.c | error = verify_area(VERIFY_WRITE, buf, count); |
buf | 2038 | drivers/char/tpqic02.c | memcpy_tofs( (void *) buf, (void *) buffaddr, bytes_done); |
buf | 2052 | drivers/char/tpqic02.c | buf += bytes_done; |
buf | 2092 | drivers/char/tpqic02.c | static int qic02_tape_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 2107 | drivers/char/tpqic02.c | MINOR(dev), buf, count, (unsigned long) filp->f_pos, flags); |
buf | 2129 | drivers/char/tpqic02.c | error = verify_area(VERIFY_READ, buf, count); |
buf | 2165 | drivers/char/tpqic02.c | memcpy_fromfs( (void *) buffaddr, (void *) buf, bytes_todo); |
buf | 2219 | drivers/char/tpqic02.c | buf += bytes_done; |
buf | 2227 | 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); |
buf | 119 | drivers/char/tty_io.c | char *_tty_name(struct tty_struct *tty, char *buf) |
buf | 122 | drivers/char/tty_io.c | sprintf(buf, "%s%d", tty->driver.name, |
buf | 126 | drivers/char/tty_io.c | strcpy(buf, "NULL tty"); |
buf | 127 | drivers/char/tty_io.c | return buf; |
buf | 132 | drivers/char/tty_io.c | static char buf[64]; |
buf | 134 | drivers/char/tty_io.c | return(_tty_name(tty, buf)); |
buf | 290 | drivers/char/tty_io.c | static int hung_up_tty_read(struct inode * inode, struct file * file, char * buf, int count) |
buf | 295 | drivers/char/tty_io.c | static int hung_up_tty_write(struct inode * inode, struct file * file, char * buf, int count) |
buf | 680 | drivers/char/tty_io.c | static int tty_read(struct inode * inode, struct file * file, char * buf, int count) |
buf | 709 | drivers/char/tty_io.c | i = (tty->ldisc.read)(tty,file,(unsigned char *)buf,(unsigned int)count); |
buf | 717 | drivers/char/tty_io.c | static int tty_write(struct inode * inode, struct file * file, char * buf, int count) |
buf | 745 | drivers/char/tty_io.c | i = (tty->ldisc.write)(tty,file,(unsigned char *)buf,(unsigned int)count); |
buf | 363 | drivers/net/3c501.c | unsigned char *buf = skb->data; |
buf | 382 | drivers/net/3c501.c | outsb(DATAPORT,buf,skb->len); /* load buffer (usual thing each byte increments the pointer) */ |
buf | 68 | drivers/net/3c503.c | const unsigned char *buf, const start_page); |
buf | 69 | drivers/net/3c503.c | static int el2_block_input(struct device *dev, int count, char *buf, |
buf | 376 | drivers/net/3c503.c | const unsigned char *buf, const start_page) |
buf | 387 | drivers/net/3c503.c | memcpy(dest_addr, buf, count); |
buf | 388 | drivers/net/3c503.c | if (ei_debug > 2 && memcmp(dest_addr, buf, count)) |
buf | 411 | drivers/net/3c503.c | outb(buf[i], E33G_FIFOH); |
buf | 419 | drivers/net/3c503.c | el2_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 431 | drivers/net/3c503.c | memcpy(buf, (char *)dev->mem_start + ring_offset, semi_count); |
buf | 433 | drivers/net/3c503.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
buf | 436 | drivers/net/3c503.c | memcpy(buf, (char *)dev->mem_start + ring_offset, count); |
buf | 456 | drivers/net/3c503.c | buf[i] = inb_p(E33G_FIFOH); |
buf | 290 | drivers/net/3c507.c | static void hardware_send_packet(struct device *dev, void *buf, short length); |
buf | 492 | drivers/net/3c507.c | unsigned char *buf = skb->data; |
buf | 496 | drivers/net/3c507.c | hardware_send_packet(dev, buf, length); |
buf | 757 | drivers/net/3c507.c | hardware_send_packet(struct device *dev, void *buf, short length) |
buf | 782 | drivers/net/3c507.c | memcpy(write_ptr, buf, length); |
buf | 63 | drivers/net/ac3200.c | char *buf, int ring_offset); |
buf | 65 | drivers/net/ac3200.c | const unsigned char *buf, const int start_page); |
buf | 220 | drivers/net/ac3200.c | static int ac_block_input(struct device *dev, int count, char *buf, |
buf | 228 | drivers/net/ac3200.c | memcpy(buf, (char*)xfer_start, semi_count); |
buf | 230 | drivers/net/ac3200.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
buf | 233 | drivers/net/ac3200.c | memcpy(buf, (char*)xfer_start, count); |
buf | 239 | drivers/net/ac3200.c | const unsigned char *buf, int start_page) |
buf | 243 | drivers/net/ac3200.c | memcpy((unsigned char *)shmem, buf, count); |
buf | 404 | drivers/net/at1700.c | unsigned char *buf = skb->data; |
buf | 410 | drivers/net/at1700.c | outsw(ioaddr + DATAPORT, buf, (length + 1) >> 1); |
buf | 445 | drivers/net/atp.c | unsigned char *buf = skb->data; |
buf | 456 | drivers/net/atp.c | write_packet(ioaddr, length, buf, dev->if_port); |
buf | 859 | drivers/net/depca.c | unsigned char *buf; |
buf | 866 | drivers/net/depca.c | buf = (unsigned char *)((lp->tx_ring[entry].base+lp->bus_offset) & |
buf | 885 | drivers/net/depca.c | memcpy((unsigned char *)(buf), skb->data, len); |
buf | 902 | drivers/net/depca.c | buf = (unsigned char *)((lp->tx_ring[entry].base+lp->bus_offset) & |
buf | 910 | drivers/net/depca.c | memcpy((unsigned char *)buf, skb->data, PKT_HDR_LEN); |
buf | 922 | drivers/net/depca.c | memcpy((unsigned char *)(buf + PKT_HDR_LEN), (unsigned char *)p, len); |
buf | 98 | drivers/net/e2100.c | char *buf, int ring_offset); |
buf | 100 | drivers/net/e2100.c | const unsigned char *buf, const start_page); |
buf | 273 | drivers/net/e2100.c | e21_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 283 | drivers/net/e2100.c | ((int*)buf)[0] = ((int*)shared_mem)[0]; |
buf | 285 | drivers/net/e2100.c | memcpy(buf, shared_mem + (ring_offset & 0xff), count); |
buf | 294 | drivers/net/e2100.c | e21_block_output(struct device *dev, int count, const unsigned char *buf, |
buf | 305 | drivers/net/e2100.c | memcpy((char*)shared_mem, buf, count); |
buf | 300 | drivers/net/eexpress.c | static void hardware_send_packet(struct device *dev, void *buf, short length); |
buf | 497 | drivers/net/eexpress.c | unsigned char *buf = skb->data; |
buf | 501 | drivers/net/eexpress.c | hardware_send_packet(dev, buf, length); |
buf | 855 | drivers/net/eexpress.c | hardware_send_packet(struct device *dev, void *buf, short length) |
buf | 881 | drivers/net/eexpress.c | outsw(ioaddr + DATAPORT, buf, (length + 1) >> 1); |
buf | 811 | drivers/net/ewrk3.c | unsigned char *buf; |
buf | 815 | drivers/net/ewrk3.c | buf = NULL; |
buf | 824 | drivers/net/ewrk3.c | buf = (char *) lp->shmem_base; |
buf | 827 | drivers/net/ewrk3.c | buf = (char *)((((short)page << 11) & 0x7800) + lp->shmem_base); |
buf | 830 | drivers/net/ewrk3.c | buf = (char *)((((short)page << 11) & 0xf800) + lp->shmem_base); |
buf | 857 | drivers/net/ewrk3.c | *buf++ = (char)(QMODE | PAD | IFC); /* control byte */ |
buf | 858 | drivers/net/ewrk3.c | *buf++ = (char)(skb->len & 0xff); /* length (16 bit xfer)*/ |
buf | 860 | drivers/net/ewrk3.c | *buf++ = (char)(((skb->len >> 8) & 0xff) | XCT); |
buf | 861 | drivers/net/ewrk3.c | *buf++ = 0x04; /* index byte */ |
buf | 862 | drivers/net/ewrk3.c | *(buf + skb->len) = 0x00; /* Write the XCT flag */ |
buf | 863 | drivers/net/ewrk3.c | memcpy(buf, skb->data, PRELOAD); /* Write PRELOAD bytes */ |
buf | 865 | drivers/net/ewrk3.c | memcpy(buf + PRELOAD, skb->data + PRELOAD, skb->len - PRELOAD); |
buf | 866 | drivers/net/ewrk3.c | *(buf + skb->len) = 0xff; /* Write the XCT flag */ |
buf | 868 | drivers/net/ewrk3.c | *buf++ = (char)((skb->len >> 8) & 0xff); |
buf | 869 | drivers/net/ewrk3.c | *buf++ = 0x04; /* index byte */ |
buf | 870 | drivers/net/ewrk3.c | memcpy(buf, skb->data, skb->len); /* Write data bytes */ |
buf | 977 | drivers/net/ewrk3.c | unsigned char page, tmpPage = 0, tmpLock = 0, *buf; |
buf | 982 | drivers/net/ewrk3.c | buf = NULL; |
buf | 1002 | drivers/net/ewrk3.c | buf = (char *) lp->shmem_base; |
buf | 1005 | drivers/net/ewrk3.c | buf = (char *)((((short)page << 11) & 0x7800) + lp->shmem_base); |
buf | 1008 | drivers/net/ewrk3.c | buf = (char *)((((short)page << 11) & 0xf800) + lp->shmem_base); |
buf | 1024 | drivers/net/ewrk3.c | rx_status = (char)(*buf++); |
buf | 1025 | drivers/net/ewrk3.c | pkt_len = (short)(*buf+((*(buf+1))<<8)); |
buf | 1026 | drivers/net/ewrk3.c | buf+=3; |
buf | 1049 | drivers/net/ewrk3.c | memcpy(skb->data, buf, pkt_len); |
buf | 1068 | drivers/net/ewrk3.c | buf = skb->data; /* Look at the dest addr */ |
buf | 1069 | drivers/net/ewrk3.c | if (buf[0] & 0x01) { /* Multicast/Broadcast */ |
buf | 1070 | drivers/net/ewrk3.c | if ((*(long *)&buf[0] == -1) && (*(short *)&buf[4] == -1)) { |
buf | 1075 | drivers/net/ewrk3.c | } else if ((*(long *)&buf[0] == *(long *)&dev->dev_addr[0]) && |
buf | 1076 | drivers/net/ewrk3.c | (*(short *)&buf[4] == *(short *)&dev->dev_addr[4])) { |
buf | 102 | drivers/net/hp-plus.c | char *buf, int ring_offset); |
buf | 104 | drivers/net/hp-plus.c | const unsigned char *buf, const start_page); |
buf | 106 | drivers/net/hp-plus.c | char *buf, int ring_offset); |
buf | 108 | drivers/net/hp-plus.c | const unsigned char *buf, const start_page); |
buf | 311 | drivers/net/hp-plus.c | hpp_io_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 316 | drivers/net/hp-plus.c | insw(ioaddr + HP_DATAPORT, buf, count>>1); |
buf | 318 | drivers/net/hp-plus.c | buf[count-1] = inw(ioaddr + HP_DATAPORT); |
buf | 323 | drivers/net/hp-plus.c | hpp_mem_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 332 | drivers/net/hp-plus.c | memcpy(buf, (char*)dev->mem_start, (count + 3) & ~3); |
buf | 342 | drivers/net/hp-plus.c | const unsigned char *buf, const start_page) |
buf | 346 | drivers/net/hp-plus.c | outsl(ioaddr + HP_DATAPORT, buf, (count+3)>>2); |
buf | 352 | drivers/net/hp-plus.c | const unsigned char *buf, const start_page) |
buf | 359 | drivers/net/hp-plus.c | memcpy((char *)dev->mem_start, buf, (count + 3) & ~3); |
buf | 60 | drivers/net/hp.c | char *buf, int ring_offset); |
buf | 62 | drivers/net/hp.c | const unsigned char *buf, const start_page); |
buf | 219 | drivers/net/hp.c | hp_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 233 | drivers/net/hp.c | insw(nic_base - NIC_OFFSET + HP_DATAPORT,buf,count>>1); |
buf | 235 | drivers/net/hp.c | buf[count-1] = inb(nic_base - NIC_OFFSET + HP_DATAPORT), xfer_count++; |
buf | 237 | drivers/net/hp.c | insb(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count); |
buf | 255 | drivers/net/hp.c | const unsigned char *buf, const start_page) |
buf | 290 | drivers/net/hp.c | outsw(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count>>1); |
buf | 292 | drivers/net/hp.c | outsb(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count); |
buf | 67 | drivers/net/ne.c | char *buf, int ring_offset); |
buf | 69 | drivers/net/ne.c | const unsigned char *buf, const int start_page); |
buf | 318 | drivers/net/ne.c | ne_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 339 | drivers/net/ne.c | insw(NE_BASE + NE_DATAPORT,buf,count>>1); |
buf | 341 | drivers/net/ne.c | buf[count-1] = inb(NE_BASE + NE_DATAPORT), xfer_count++; |
buf | 343 | drivers/net/ne.c | insb(NE_BASE + NE_DATAPORT, buf, count); |
buf | 372 | drivers/net/ne.c | const unsigned char *buf, const int start_page) |
buf | 419 | drivers/net/ne.c | outsw(NE_BASE + NE_DATAPORT, buf, count>>1); |
buf | 421 | drivers/net/ne.c | outsb(NE_BASE + NE_DATAPORT, buf, count); |
buf | 57 | drivers/net/ppp.c | #define skb_queue_head_init(buf) *(buf) = NULL |
buf | 797 | drivers/net/ppp.c | buffer [count] = tty->read_q.buf[i]; |
buf | 1152 | drivers/net/ppp.c | unsigned char *buf, int len) |
buf | 1171 | drivers/net/ppp.c | PUTC(*buf++, failure); |
buf | 1214 | drivers/net/ppp.c | ppp_read(struct tty_struct *tty, struct file *file, unsigned char *buf, unsigned int nr) |
buf | 1228 | drivers/net/ppp.c | (unsigned int) buf, |
buf | 1266 | drivers/net/ppp.c | put_fs_byte (PPP_ADDRESS, buf++); |
buf | 1267 | drivers/net/ppp.c | put_fs_byte (PPP_CONTROL, buf++); |
buf | 1271 | drivers/net/ppp.c | put_fs_byte (c, buf++); |
buf | 1315 | drivers/net/ppp.c | ppp_write(struct tty_struct *tty, struct file *file, unsigned char *buf, unsigned int nr) |
buf | 1338 | drivers/net/ppp.c | ppp_print_buffer ("write frame", buf, nr, USER_DS); |
buf | 1366 | drivers/net/ppp.c | ppp_stuff_char(ppp,get_fs_byte(buf++)); |
buf | 2009 | drivers/net/ppp.c | static void ppp_print_buffer(const char *name, char *buf, int count, int seg) |
buf | 2021 | drivers/net/ppp.c | ppp_print_hex (line, buf, 8); |
buf | 2022 | drivers/net/ppp.c | ppp_print_char (&line[8 * 3], buf, 8); |
buf | 2025 | drivers/net/ppp.c | buf += 8; |
buf | 2030 | drivers/net/ppp.c | ppp_print_hex (line, buf, count); |
buf | 2031 | drivers/net/ppp.c | ppp_print_char (&line[8 * 3], buf, count); |
buf | 108 | drivers/net/skeleton.c | extern void hardware_send_packet(short ioaddr, char *buf, int length); |
buf | 341 | drivers/net/skeleton.c | unsigned char *buf = skb->data; |
buf | 343 | drivers/net/skeleton.c | hardware_send_packet(ioaddr, buf, length); |
buf | 44 | drivers/net/smc-ultra.c | char *buf, int ring_offset); |
buf | 46 | drivers/net/smc-ultra.c | const unsigned char *buf, const start_page); |
buf | 223 | drivers/net/smc-ultra.c | ultra_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 234 | drivers/net/smc-ultra.c | memcpy(buf, xfer_start, semi_count); |
buf | 236 | drivers/net/smc-ultra.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
buf | 240 | drivers/net/smc-ultra.c | memcpy(buf, xfer_start, count); |
buf | 247 | drivers/net/smc-ultra.c | ultra_block_output(struct device *dev, int count, const unsigned char *buf, |
buf | 256 | drivers/net/smc-ultra.c | memcpy(shmem, buf, count); |
buf | 45 | drivers/net/wd.c | char *buf, int ring_offset); |
buf | 47 | drivers/net/wd.c | const unsigned char *buf, const start_page); |
buf | 315 | drivers/net/wd.c | wd_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 325 | drivers/net/wd.c | ((int*)buf)[0] = ((int*)xfer_start)[0]; |
buf | 332 | drivers/net/wd.c | memcpy(buf, (char *)xfer_start, semi_count); |
buf | 334 | drivers/net/wd.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
buf | 336 | drivers/net/wd.c | memcpy(buf, (char *)xfer_start, count); |
buf | 346 | drivers/net/wd.c | wd_block_output(struct device *dev, int count, const unsigned char *buf, |
buf | 356 | drivers/net/wd.c | memcpy((char *)shmem, buf, count); |
buf | 359 | drivers/net/wd.c | memcpy((char *)shmem, buf, count); |
buf | 361 | drivers/net/znet.c | unsigned char *buf = (void *)(skb+1); |
buf | 381 | drivers/net/znet.c | memcpy(zn.tx_cur, buf, semi_cnt); |
buf | 383 | drivers/net/znet.c | memcpy(zn.tx_start, buf + semi_cnt, length - semi_cnt); |
buf | 386 | drivers/net/znet.c | memcpy(zn.tx_cur, buf, skb->len); |
buf | 1981 | drivers/scsi/53c7,8xx.c | char buf[80]; |
buf | 1990 | drivers/scsi/53c7,8xx.c | sprintf (buf, "scsi%d : bp : warning : processor not halted\b", |
buf | 1992 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, strlen(buf)); |
buf | 1997 | drivers/scsi/53c7,8xx.c | sprintf (buf, "scsi%d : bp : success : at %08x, replaces %08x %08x", |
buf | 1999 | drivers/scsi/53c7,8xx.c | len = strlen(buf); |
buf | 2002 | drivers/scsi/53c7,8xx.c | sprintf(buf + len, "%08x\n", * (long *) bp->addr); |
buf | 2004 | drivers/scsi/53c7,8xx.c | sprintf(buf + len, "\n"); |
buf | 2006 | drivers/scsi/53c7,8xx.c | len = strlen(buf); |
buf | 2007 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, len); |
buf | 2018 | drivers/scsi/53c7,8xx.c | char buf[80]; |
buf | 2024 | drivers/scsi/53c7,8xx.c | sprintf (buf, "scsi%d : bs : failure : NCR not halted\n", host->host_no); |
buf | 2025 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, strlen(buf)); |
buf | 2073 | drivers/scsi/53c7,8xx.c | char *buf,int count) { |
buf | 2086 | drivers/scsi/53c7,8xx.c | if (error = verify_area(VERIFY_READ,buf,count)) |
buf | 2092 | drivers/scsi/53c7,8xx.c | memcpy_from_fs(input_buf, buf, count); |
buf | 2125 | drivers/scsi/53c7,8xx.c | char *buf,int count) { |
buf | 2130 | drivers/scsi/53c7,8xx.c | static debugger_kernel_write (struct Scsi_Host *host, char *buf, size_t |
buf | 2141 | drivers/scsi/53c7,8xx.c | memcpy (hostdata->debug_write, buf, copy); |
buf | 2142 | drivers/scsi/53c7,8xx.c | buf += copy; |
buf | 2504 | drivers/scsi/53c7,8xx.c | unsigned long buf = (unsigned long) (cmd->use_sg ? |
buf | 2514 | drivers/scsi/53c7,8xx.c | cmd_datain[1] = buf; |
buf | 2528 | drivers/scsi/53c7,8xx.c | cmd_dataout[1] = buf; |
buf | 2955 | drivers/scsi/53c7,8xx.c | char buf[80]; /* Debugging sprintf buffer */ |
buf | 3612 | drivers/scsi/53c7,8xx.c | char buf[80], /* Temporary buffer and pointer */ |
buf | 3618 | drivers/scsi/53c7,8xx.c | sprintf(buf, "%s%08lx : 0x%08lx 0x%08lx", (prefix ? prefix : ""), |
buf | 3620 | drivers/scsi/53c7,8xx.c | tmp = buf + strlen(buf); |
buf | 3630 | drivers/scsi/53c7,8xx.c | printk ("%s", buf); |
buf | 3633 | drivers/scsi/53c7,8xx.c | size_t len = strlen(buf); |
buf | 3634 | drivers/scsi/53c7,8xx.c | debugger_kernel_write(host, buf, len); |
buf | 1027 | drivers/scsi/aha1542.c | unchar buf[8]; |
buf | 1031 | drivers/scsi/aha1542.c | for (i = 0; i < sizeof(buf); ++i) buf[i] = 0x87; |
buf | 1033 | drivers/scsi/aha1542.c | if (!aha1542_command(i, cmd, buf, sizeof(buf))) { |
buf | 1035 | drivers/scsi/aha1542.c | i, xscsi2int(buf+4), xscsi2int(buf)); |
buf | 219 | drivers/scsi/aha274x.c | char buf[256]; |
buf | 222 | drivers/scsi/aha274x.c | vsprintf(buf, fmt, ap); |
buf | 223 | drivers/scsi/aha274x.c | printk(buf); |
buf | 741 | drivers/scsi/aha274x.c | unsigned char buf[4]; |
buf | 745 | drivers/scsi/aha274x.c | unsigned char signature[sizeof(buf)]; |
buf | 753 | drivers/scsi/aha274x.c | for (i = 0; i < sizeof(buf); i++) { |
buf | 759 | drivers/scsi/aha274x.c | buf[i] = inb(s_base + i); |
buf | 763 | drivers/scsi/aha274x.c | if (!memcmp(buf, S[i].signature, S[i].n)) { |
buf | 200 | drivers/scsi/aic7770.c | static char buf[MAXLINE]; |
buf | 205 | drivers/scsi/aic7770.c | while (fgets(buf, sizeof(buf), ifp)) { |
buf | 209 | drivers/scsi/aic7770.c | if (buf[strlen(buf)-1] != '\n') |
buf | 212 | drivers/scsi/aic7770.c | p = strchr(buf, '#'); |
buf | 216 | drivers/scsi/aic7770.c | for (p = strtok(buf, ", \t\n"); p; p = strtok(NULL, ", \t\n")) |
buf | 1305 | drivers/scsi/buslogic.c | unsigned char buf[8]; |
buf | 1313 | drivers/scsi/buslogic.c | for (i = 0; i < sizeof buf; i++) |
buf | 1314 | drivers/scsi/buslogic.c | buf[i] = 0x87; |
buf | 1316 | drivers/scsi/buslogic.c | if (!buslogic_command(i, cmd, buf, sizeof buf)) { |
buf | 1318 | drivers/scsi/buslogic.c | i, *(int *)(buf + 4), *(int *)buf); |
buf | 525 | drivers/scsi/fdomain.c | unsigned char buf[buflen]; |
buf | 723 | drivers/scsi/fdomain.c | SCinit.request_buffer = SCinit.buffer = buf; |
buf | 724 | drivers/scsi/fdomain.c | SCinit.request_bufflen = SCinit.bufflen = sizeof(buf)-1; |
buf | 740 | drivers/scsi/fdomain.c | for (j = 8; j < (buf[4] < 32 ? buf[4] : 32); j++) |
buf | 741 | drivers/scsi/fdomain.c | printk( "%c", buf[j] >= 20 ? buf[j] : ' ' ); |
buf | 747 | drivers/scsi/fdomain.c | blocks = (buf[0] << 24) | (buf[1] << 16) |
buf | 748 | drivers/scsi/fdomain.c | | (buf[2] << 8) | buf[3]; |
buf | 749 | drivers/scsi/fdomain.c | size = (buf[4] << 24) | (buf[5] << 16) | (buf[6] << 8) | buf[7]; |
buf | 1517 | drivers/scsi/fdomain.c | unsigned char buf[512 + sizeof( int ) * 2]; |
buf | 1519 | drivers/scsi/fdomain.c | int *sizes = (int *)buf; |
buf | 1596 | drivers/scsi/fdomain.c | (void *)buf ); |
buf | 101 | drivers/scsi/in2000.c | #define port_read(port,buf,nr) \ |
buf | 102 | drivers/scsi/in2000.c | __asm__("cld;rep;insw": :"d" (port),"D" (buf),"c" (nr):"cx","di") |
buf | 104 | drivers/scsi/in2000.c | #define port_write(port,buf,nr) \ |
buf | 105 | drivers/scsi/in2000.c | __asm__("cld;rep;outsw": :"d" (port),"S" (buf),"c" (nr):"cx","si") |
buf | 147 | drivers/scsi/scsi_ioctl.c | char * buf; |
buf | 169 | drivers/scsi/scsi_ioctl.c | buf = (char *) scsi_malloc(buf_needed); |
buf | 170 | drivers/scsi/scsi_ioctl.c | if (!buf) return -ENOMEM; |
buf | 171 | drivers/scsi/scsi_ioctl.c | memset(buf, 0, buf_needed); |
buf | 173 | drivers/scsi/scsi_ioctl.c | buf = NULL; |
buf | 176 | drivers/scsi/scsi_ioctl.c | memcpy_fromfs ((void *) buf, (void *) (cmd_in + cmdlen), inlen > MAX_BUF ? MAX_BUF : inlen); |
buf | 184 | drivers/scsi/scsi_ioctl.c | scsi_do_cmd(SCpnt, cmd, buf, needed, scsi_ioctl_done, MAX_TIMEOUT, |
buf | 207 | drivers/scsi/scsi_ioctl.c | memcpy_tofs ((void *) cmd_in, buf, (outlen > MAX_BUF) ? MAX_BUF : outlen); |
buf | 211 | drivers/scsi/scsi_ioctl.c | if (buf) scsi_free(buf, buf_needed); |
buf | 226 | drivers/scsi/scsi_ioctl.c | printk("%02x ", buf[i]); |
buf | 1595 | drivers/scsi/seagate.c | unsigned char buf[256 + sizeof(int) * 2], cmd[6], *data, *page; |
buf | 1607 | drivers/scsi/seagate.c | sizes = (int *) buf; |
buf | 1627 | drivers/scsi/seagate.c | if (!(result = kernel_scsi_ioctl (disk->device, SCSI_IOCTL_SEND_COMMAND, (void *) buf))) { |
buf | 1640 | drivers/scsi/seagate.c | if (!(result = kernel_scsi_ioctl (disk->device, SCSI_IOCTL_SEND_COMMAND, (void *) buf))) { |
buf | 168 | drivers/scsi/sg.c | static int sg_read(struct inode *inode,struct file *filp,char *buf,int count) |
buf | 173 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_WRITE,buf,count))) |
buf | 187 | drivers/scsi/sg.c | memcpy_tofs(buf,&device->header,sizeof(struct sg_header)); |
buf | 188 | drivers/scsi/sg.c | buf+=sizeof(struct sg_header); |
buf | 192 | drivers/scsi/sg.c | memcpy_tofs(buf,device->buff,count-sizeof(struct sg_header)); |
buf | 226 | drivers/scsi/sg.c | static int sg_write(struct inode *inode,struct file *filp,char *buf,int count) |
buf | 235 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_READ,buf,count))) |
buf | 257 | drivers/scsi/sg.c | memcpy_fromfs(&device->header,buf,sizeof(struct sg_header)); |
buf | 260 | drivers/scsi/sg.c | buf+=sizeof(struct sg_header); |
buf | 290 | drivers/scsi/sg.c | opcode = get_fs_byte(buf); |
buf | 306 | drivers/scsi/sg.c | memcpy_fromfs(cmnd,buf,size); |
buf | 307 | drivers/scsi/sg.c | buf+=size; |
buf | 308 | drivers/scsi/sg.c | memcpy_fromfs(device->buff,buf,device->header.pack_len-size-sizeof(struct sg_header)); |
buf | 301 | drivers/scsi/sr.c | unsigned char buf[40]; |
buf | 322 | drivers/scsi/sr.c | memset(buf,0,40); |
buf | 323 | drivers/scsi/sr.c | *((unsigned long*)buf) = 0; |
buf | 324 | drivers/scsi/sr.c | *((unsigned long*)buf+1) = 0x16; |
buf | 325 | drivers/scsi/sr.c | buf[8+0] = 0xde; |
buf | 326 | drivers/scsi/sr.c | buf[8+1] = 0x03; |
buf | 327 | drivers/scsi/sr.c | buf[8+2] = 0xb0; |
buf | 329 | drivers/scsi/sr.c | SCSI_IOCTL_SEND_COMMAND, buf); |
buf | 334 | drivers/scsi/sr.c | min = (unsigned long)buf[8+15]/16*10 + (unsigned long)buf[8+15]%16; |
buf | 335 | drivers/scsi/sr.c | sec = (unsigned long)buf[8+16]/16*10 + (unsigned long)buf[8+16]%16; |
buf | 336 | drivers/scsi/sr.c | frame = (unsigned long)buf[8+17]/16*10 + (unsigned long)buf[8+17]%16; |
buf | 352 | drivers/scsi/sr.c | memset(buf,0,40); |
buf | 353 | drivers/scsi/sr.c | *((unsigned long*)buf) = 12; |
buf | 354 | drivers/scsi/sr.c | *((unsigned long*)buf+1) = 12; |
buf | 355 | drivers/scsi/sr.c | buf[8+0] = 0x15; |
buf | 356 | drivers/scsi/sr.c | buf[8+1] = (1 << 4); |
buf | 357 | drivers/scsi/sr.c | buf[8+2] = 12; |
buf | 358 | drivers/scsi/sr.c | buf[14+ 3] = 0x08; |
buf | 359 | drivers/scsi/sr.c | buf[14+ 4] = 0x83; |
buf | 360 | drivers/scsi/sr.c | buf[14+10] = 0x08; |
buf | 362 | drivers/scsi/sr.c | SCSI_IOCTL_SEND_COMMAND, buf); |
buf | 368 | drivers/scsi/sr.c | memset(buf,0,40); |
buf | 369 | drivers/scsi/sr.c | *((unsigned long*)buf) = 0; |
buf | 370 | drivers/scsi/sr.c | *((unsigned long*)buf+1) = 4; |
buf | 371 | drivers/scsi/sr.c | buf[8+0] = 0xc7; |
buf | 372 | drivers/scsi/sr.c | buf[8+1] = 3; |
buf | 377 | drivers/scsi/sr.c | min = (unsigned long)buf[8+1]/16*10 + (unsigned long)buf[8+1]%16; |
buf | 378 | drivers/scsi/sr.c | sec = (unsigned long)buf[8+2]/16*10 + (unsigned long)buf[8+2]%16; |
buf | 379 | drivers/scsi/sr.c | frame = (unsigned long)buf[8+3]/16*10 + (unsigned long)buf[8+3]%16; |
buf | 680 | drivers/scsi/st.c | st_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 761 | drivers/scsi/st.c | b_point = buf; |
buf | 915 | drivers/scsi/st.c | st_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 1117 | drivers/scsi/st.c | memcpy_tofs(buf, (STp->buffer)->b_data + |
buf | 1120 | drivers/scsi/st.c | buf += transfer; |
buf | 629 | drivers/scsi/ultrastor.c | static char buf[64]; |
buf | 632 | drivers/scsi/ultrastor.c | sprintf(buf, "UltraStor 24F SCSI @ Slot %u IRQ%u\n", |
buf | 635 | drivers/scsi/ultrastor.c | sprintf(buf, "UltraStor 34F SCSI @ Port %03X BIOS %05X IRQ%u\n", |
buf | 639 | drivers/scsi/ultrastor.c | sprintf(buf, "UltraStor 14F SCSI @ Port %03X BIOS %05X IRQ%u DMA%u\n", |
buf | 642 | drivers/scsi/ultrastor.c | return buf; |
buf | 960 | drivers/scsi/wd7000.c | static unchar buf[256]; |
buf | 964 | drivers/scsi/wd7000.c | any2scsi(icb.len, sizeof(buf)); |
buf | 965 | drivers/scsi/wd7000.c | any2scsi(icb.ptr, (int) &buf); |
buf | 91 | drivers/sound/ad1848.c | static void ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
buf | 92 | drivers/sound/ad1848.c | static void ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
buf | 457 | drivers/sound/ad1848.c | ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
buf | 492 | drivers/sound/ad1848.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
buf | 519 | drivers/sound/ad1848.c | ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
buf | 555 | drivers/sound/ad1848.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
buf | 166 | drivers/sound/audio.c | audio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 221 | drivers/sound/audio.c | COPY_FROM_USER (&wr_dma_buf[dev][wr_buff_ptr[dev]], buf, p, l); |
buf | 225 | drivers/sound/audio.c | wr_dma_buf[dev], wr_buff_ptr[dev], buf, p, l); |
buf | 263 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 309 | drivers/sound/audio.c | COPY_TO_USER (buf, p, dmabuf, l); |
buf | 382 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 388 | drivers/sound/audio.c | audio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 99 | drivers/sound/dev_table.h | char *buf[MAX_SUB_BUFFERS]; |
buf | 120 | drivers/sound/dev_table.h | void (*output_block) (int dev, unsigned long buf, |
buf | 122 | drivers/sound/dev_table.h | void (*start_input) (int dev, unsigned long buf, |
buf | 132 | drivers/sound/dmabuf.c | dmap->buf[n] = dmap->raw_buf[i] + p; |
buf | 298 | drivers/sound/dmabuf.c | DMAbuf_getrdbuffer (int dev, char **buf, int *len) |
buf | 362 | drivers/sound/dmabuf.c | *buf = &dmap->buf[dmap->qhead][dmap->counts[dmap->qhead]]; |
buf | 521 | drivers/sound/dmabuf.c | DMAbuf_getwrbuffer (int dev, char **buf, int *size) |
buf | 584 | drivers/sound/dmabuf.c | *buf = dmap->buf[dmap->qtail]; |
buf | 891 | drivers/sound/dmabuf.c | DMAbuf_getwrbuffer (int dev, char **buf, int *size) |
buf | 897 | drivers/sound/dmabuf.c | DMAbuf_getrdbuffer (int dev, char **buf, int *len) |
buf | 2157 | drivers/sound/gus_wave.c | gus_transfer_output_block (int dev, unsigned long buf, |
buf | 2192 | drivers/sound/gus_wave.c | DMAbuf_start_dma (dev, buf + (chn * count), count, DMA_MODE_WRITE); |
buf | 2244 | drivers/sound/gus_wave.c | gus_sampling_output_block (int dev, unsigned long buf, int total_count, |
buf | 2247 | drivers/sound/gus_wave.c | pcm_current_buf = buf; |
buf | 2251 | drivers/sound/gus_wave.c | gus_transfer_output_block (dev, buf, total_count, intrflag, 0); |
buf | 2255 | drivers/sound/gus_wave.c | gus_sampling_start_input (int dev, unsigned long buf, int count, |
buf | 2263 | drivers/sound/gus_wave.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
buf | 279 | drivers/sound/midibuf.c | MIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 317 | drivers/sound/midibuf.c | COPY_FROM_USER (&tmp_data, buf, c, 1); |
buf | 330 | drivers/sound/midibuf.c | MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 364 | drivers/sound/midibuf.c | COPY_TO_USER (buf, c, &tmp_data, 1); |
buf | 269 | drivers/sound/pas2_pcm.c | pas_pcm_output_block (int dev, unsigned long buf, int count, |
buf | 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)); |
buf | 293 | drivers/sound/pas2_pcm.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
buf | 317 | drivers/sound/pas2_pcm.c | pas_pcm_start_input (int dev, unsigned long buf, int count, |
buf | 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)); |
buf | 339 | drivers/sound/pas2_pcm.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
buf | 86 | drivers/sound/patmgr.c | pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 109 | drivers/sound/patmgr.c | COPY_TO_USER (buf, 0, (char *) mbox[dev], count); |
buf | 124 | drivers/sound/patmgr.c | pmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 134 | drivers/sound/patmgr.c | COPY_FROM_USER (mbox[dev], buf, 0, 4); |
buf | 145 | drivers/sound/patmgr.c | buf, 4, count, 1); |
buf | 163 | drivers/sound/patmgr.c | COPY_FROM_USER (&((char *) mbox[dev])[4], buf, 4, count - 4); |
buf | 810 | drivers/sound/pss.c | pss_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 826 | drivers/sound/pss.c | pss_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 835 | drivers/sound/pss.c | COPY_FROM_USER (&code_buffer[code_length], buf, 0, count); |
buf | 71 | drivers/sound/sb16_dsp.c | static void sb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
buf | 72 | drivers/sound/sb16_dsp.c | static void sb16_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
buf | 274 | drivers/sound/sb16_dsp.c | sb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
buf | 284 | drivers/sound/sb16_dsp.c | printk ("output_block: %x %d %d\n", buf, count, intrflag); |
buf | 313 | drivers/sound/sb16_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
buf | 331 | drivers/sound/sb16_dsp.c | sb16_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
buf | 341 | drivers/sound/sb16_dsp.c | printk ("start_input: %x %d %d\n", buf, count, intrflag); |
buf | 370 | drivers/sound/sb16_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
buf | 394 | drivers/sound/sb_dsp.c | sb_dsp_output_block (int dev, unsigned long buf, int count, |
buf | 403 | drivers/sound/sb_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
buf | 444 | drivers/sound/sb_dsp.c | sb_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, |
buf | 457 | drivers/sound/sb_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
buf | 98 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 111 | drivers/sound/sequencer.c | return pmgr_read (dev - 1, file, buf, count); |
buf | 128 | drivers/sound/sequencer.c | COPY_TO_USER (buf, p, &iqueue[iqhead * IEV_SZ], ev_len); |
buf | 231 | drivers/sound/sequencer.c | sequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 248 | drivers/sound/sequencer.c | return pmgr_write (dev - 1, file, buf, count); |
buf | 254 | drivers/sound/sequencer.c | COPY_FROM_USER (event, buf, p, 4); |
buf | 268 | drivers/sound/sequencer.c | err = synth_devs[dev]->load_patch (dev, *(short *) &event[0], buf, p + 4, c, 0); |
buf | 292 | drivers/sound/sequencer.c | COPY_FROM_USER (&event[4], buf, p + 4, 4); |
buf | 1815 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 1821 | drivers/sound/sequencer.c | sequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 7 | drivers/sound/sound_calls.h | int DMAbuf_getwrbuffer(int dev, char **buf, int *size); |
buf | 8 | drivers/sound/sound_calls.h | int DMAbuf_getrdbuffer(int dev, char **buf, int *len); |
buf | 24 | drivers/sound/sound_calls.h | int audio_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 25 | drivers/sound/sound_calls.h | int audio_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 37 | drivers/sound/sound_calls.h | int sequencer_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 38 | drivers/sound/sound_calls.h | int sequencer_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 59 | drivers/sound/sound_calls.h | int MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 60 | drivers/sound/sound_calls.h | int MIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 66 | drivers/sound/sound_calls.h | void MIDIbuf_bytes_received(int dev, unsigned char *buf, int count); |
buf | 80 | drivers/sound/sound_calls.h | int CMIDI_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 81 | drivers/sound/sound_calls.h | int CMIDI_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 109 | drivers/sound/sound_calls.h | int sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 110 | drivers/sound/sound_calls.h | int sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 212 | drivers/sound/sound_calls.h | int pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count); |
buf | 213 | drivers/sound/sound_calls.h | int pmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count); |
buf | 236 | drivers/sound/sound_calls.h | int pss_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 237 | drivers/sound/sound_calls.h | int pss_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 80 | drivers/sound/sound_switch.c | char buf[11]; |
buf | 86 | drivers/sound/sound_switch.c | buf[10] = 0; |
buf | 93 | drivers/sound/sound_switch.c | buf[9 - l] = hx[v]; |
buf | 100 | drivers/sound/sound_switch.c | memcpy (&status_buf[status_len], &buf[10 - l], l); |
buf | 256 | drivers/sound/sound_switch.c | read_status (snd_rw_buf * buf, int count) |
buf | 271 | drivers/sound/sound_switch.c | COPY_TO_USER (buf, 0, &status_buf[status_ptr], l); |
buf | 278 | drivers/sound/sound_switch.c | sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 285 | drivers/sound/sound_switch.c | return read_status (buf, count); |
buf | 291 | drivers/sound/sound_switch.c | return audio_read (dev, file, buf, count); |
buf | 296 | drivers/sound/sound_switch.c | return sequencer_read (dev, file, buf, count); |
buf | 301 | drivers/sound/sound_switch.c | return MIDIbuf_read (dev, file, buf, count); |
buf | 306 | drivers/sound/sound_switch.c | return pss_read (dev, file, buf, count); |
buf | 317 | drivers/sound/sound_switch.c | sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 327 | drivers/sound/sound_switch.c | return sequencer_write (dev, file, buf, count); |
buf | 333 | drivers/sound/sound_switch.c | return audio_write (dev, file, buf, count); |
buf | 338 | drivers/sound/sound_switch.c | return MIDIbuf_write (dev, file, buf, count); |
buf | 343 | drivers/sound/sound_switch.c | return pss_write (dev, file, buf, count); |
buf | 60 | drivers/sound/soundcard.c | sound_read (struct inode *inode, struct file *file, char *buf, int count) |
buf | 67 | drivers/sound/soundcard.c | return sound_read_sw (dev, &files[dev], buf, count); |
buf | 71 | drivers/sound/soundcard.c | sound_write (struct inode *inode, struct file *file, char *buf, int count) |
buf | 78 | drivers/sound/soundcard.c | return sound_write_sw (dev, &files[dev], buf, count); |
buf | 324 | fs/binfmt_elf.c | elf_ex = *((struct elfhdr *) bprm->buf); /* exec-header */ |
buf | 412 | fs/binfmt_elf.c | retval = read_exec(interpreter_inode,0,bprm->buf,128); |
buf | 415 | fs/binfmt_elf.c | interp_ex = *((struct exec *) bprm->buf); /* exec-header */ |
buf | 416 | fs/binfmt_elf.c | interp_elf_ex = *((struct elfhdr *) bprm->buf); /* exec-header */ |
buf | 20 | fs/block_dev.c | int block_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 120 | fs/block_dev.c | memcpy_fromfs(p,buf,chars); |
buf | 122 | fs/block_dev.c | buf += chars; |
buf | 157 | fs/block_dev.c | int block_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 285 | fs/block_dev.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 287 | fs/block_dev.c | buf += chars; |
buf | 290 | fs/block_dev.c | put_fs_byte(0,buf++); |
buf | 728 | fs/buffer.c | void set_writetime(struct buffer_head * buf, int flag) |
buf | 732 | fs/buffer.c | if (buf->b_dirt){ |
buf | 736 | fs/buffer.c | if(!buf->b_flushtime || buf->b_flushtime > newtime) |
buf | 737 | fs/buffer.c | buf->b_flushtime = newtime; |
buf | 739 | fs/buffer.c | buf->b_flushtime = 0; |
buf | 747 | fs/buffer.c | void refile_buffer(struct buffer_head * buf){ |
buf | 750 | fs/buffer.c | if(buf->b_dev == 0xffff) panic("Attempt to refile free buffer\n"); |
buf | 751 | fs/buffer.c | if(mem_map[MAP_NR((unsigned long) buf->b_data)] != 1) i = 1; |
buf | 752 | fs/buffer.c | if(buf->b_lock) i |= 2; |
buf | 753 | fs/buffer.c | if(buf->b_dirt) i |= 4; |
buf | 755 | fs/buffer.c | if(buf->b_list == BUF_SHARED && dispose == BUF_CLEAN) |
buf | 758 | fs/buffer.c | if(dispose == BUF_CLEAN) buf->b_lru_time = jiffies; |
buf | 759 | fs/buffer.c | if(dispose != buf->b_list) { |
buf | 761 | fs/buffer.c | buf->b_lru_time = jiffies; |
buf | 763 | fs/buffer.c | (buf->b_flushtime - buf->b_lru_time) <= bdf_prm.b_un.age_super) |
buf | 765 | fs/buffer.c | remove_from_queues(buf); |
buf | 766 | fs/buffer.c | buf->b_list = dispose; |
buf | 767 | fs/buffer.c | insert_into_queues(buf); |
buf | 775 | fs/buffer.c | void brelse(struct buffer_head * buf) |
buf | 777 | fs/buffer.c | if (!buf) |
buf | 779 | fs/buffer.c | wait_on_buffer(buf); |
buf | 782 | fs/buffer.c | set_writetime(buf, 0); |
buf | 783 | fs/buffer.c | refile_buffer(buf); |
buf | 785 | fs/buffer.c | if (buf->b_count) { |
buf | 786 | fs/buffer.c | if (--buf->b_count) |
buf | 618 | fs/exec.c | memset(bprm.buf,0,sizeof(bprm.buf)); |
buf | 621 | fs/exec.c | retval = read_exec(bprm.inode,0,bprm.buf,128); |
buf | 625 | fs/exec.c | if ((bprm.buf[0] == '#') && (bprm.buf[1] == '!') && (!sh_bang)) { |
buf | 634 | fs/exec.c | bprm.buf[127] = '\0'; |
buf | 635 | fs/exec.c | if ((cp = strchr(bprm.buf, '\n')) == NULL) |
buf | 636 | fs/exec.c | cp = bprm.buf+127; |
buf | 638 | fs/exec.c | while (cp > bprm.buf) { |
buf | 645 | fs/exec.c | for (cp = bprm.buf+2; (*cp == ' ') || (*cp == '\t'); cp++); |
buf | 753 | fs/exec.c | ex = *((struct exec *) bprm->buf); /* exec-header */ |
buf | 26 | fs/ext/dir.c | static int ext_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 72 | fs/ext/file.c | static int ext_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 168 | fs/ext/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 170 | fs/ext/file.c | buf += chars; |
buf | 173 | fs/ext/file.c | put_fs_byte(0,buf++); |
buf | 197 | fs/ext/file.c | static int ext_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 248 | fs/ext/file.c | memcpy_fromfs(p,buf,c); |
buf | 249 | fs/ext/file.c | buf += c; |
buf | 147 | fs/ext/inode.c | void ext_statfs (struct super_block *sb, struct statfs *buf) |
buf | 151 | fs/ext/inode.c | put_fs_long(EXT_SUPER_MAGIC, &buf->f_type); |
buf | 152 | fs/ext/inode.c | put_fs_long(1024, &buf->f_bsize); |
buf | 154 | fs/ext/inode.c | &buf->f_blocks); |
buf | 156 | fs/ext/inode.c | put_fs_long(tmp, &buf->f_bfree); |
buf | 157 | fs/ext/inode.c | put_fs_long(tmp, &buf->f_bavail); |
buf | 158 | fs/ext/inode.c | put_fs_long(sb->u.ext_sb.s_ninodes, &buf->f_files); |
buf | 159 | fs/ext/inode.c | put_fs_long(ext_count_free_inodes(sb), &buf->f_ffree); |
buf | 160 | fs/ext/inode.c | put_fs_long(EXT_NAME_LEN, &buf->f_namelen); |
buf | 29 | fs/ext2/dir.c | char * buf, int count) |
buf | 80 | fs/ext2/file.c | char * buf, int count) |
buf | 198 | fs/ext2/file.c | memcpy_tofs (buf, offset + (*bhe)->b_data, |
buf | 201 | fs/ext2/file.c | buf += chars; |
buf | 204 | fs/ext2/file.c | put_fs_byte (0, buf++); |
buf | 231 | fs/ext2/file.c | char * buf, int count) |
buf | 304 | fs/ext2/file.c | memcpy_fromfs (p, buf, c); |
buf | 305 | fs/ext2/file.c | buf += c; |
buf | 32 | fs/ext2/super.c | char buf[1024]; |
buf | 42 | fs/ext2/super.c | vsprintf (buf, fmt, args); |
buf | 48 | fs/ext2/super.c | MAJOR(sb->s_dev), MINOR(sb->s_dev), function, buf); |
buf | 50 | fs/ext2/super.c | MAJOR(sb->s_dev), MINOR(sb->s_dev), function, buf); |
buf | 62 | fs/ext2/super.c | char buf[1024]; |
buf | 72 | fs/ext2/super.c | vsprintf (buf, fmt, args); |
buf | 75 | fs/ext2/super.c | MAJOR(sb->s_dev), MINOR(sb->s_dev), function, buf); |
buf | 81 | fs/ext2/super.c | char buf[1024]; |
buf | 85 | fs/ext2/super.c | vsprintf (buf, fmt, args); |
buf | 88 | fs/ext2/super.c | MAJOR(sb->s_dev), MINOR(sb->s_dev), function, buf); |
buf | 719 | fs/ext2/super.c | void ext2_statfs (struct super_block * sb, struct statfs * buf) |
buf | 740 | fs/ext2/super.c | put_fs_long (EXT2_SUPER_MAGIC, &buf->f_type); |
buf | 741 | fs/ext2/super.c | put_fs_long (sb->s_blocksize, &buf->f_bsize); |
buf | 743 | fs/ext2/super.c | &buf->f_blocks); |
buf | 745 | fs/ext2/super.c | put_fs_long (tmp, &buf->f_bfree); |
buf | 748 | fs/ext2/super.c | &buf->f_bavail); |
buf | 750 | fs/ext2/super.c | put_fs_long (0, &buf->f_bavail); |
buf | 751 | fs/ext2/super.c | put_fs_long (sb->u.ext2_sb.s_es->s_inodes_count, &buf->f_files); |
buf | 752 | fs/ext2/super.c | put_fs_long (ext2_count_free_inodes (sb), &buf->f_ffree); |
buf | 753 | fs/ext2/super.c | put_fs_long (EXT2_NAME_LEN, &buf->f_namelen); |
buf | 187 | fs/hpfs/hpfs_fs.c | char *buf, int count); |
buf | 729 | fs/hpfs/hpfs_fs.c | static void hpfs_statfs(struct super_block *s, struct statfs *buf) |
buf | 745 | fs/hpfs/hpfs_fs.c | put_fs_long(s->s_magic, &buf->f_type); |
buf | 746 | fs/hpfs/hpfs_fs.c | put_fs_long(512, &buf->f_bsize); |
buf | 747 | fs/hpfs/hpfs_fs.c | put_fs_long(s->s_hpfs_fs_size, &buf->f_blocks); |
buf | 748 | fs/hpfs/hpfs_fs.c | put_fs_long(s->s_hpfs_n_free, &buf->f_bfree); |
buf | 749 | fs/hpfs/hpfs_fs.c | put_fs_long(s->s_hpfs_n_free, &buf->f_bavail); |
buf | 750 | fs/hpfs/hpfs_fs.c | put_fs_long(s->s_hpfs_dirband_size, &buf->f_files); |
buf | 751 | fs/hpfs/hpfs_fs.c | put_fs_long(s->s_hpfs_n_free_dnodes, &buf->f_ffree); |
buf | 752 | fs/hpfs/hpfs_fs.c | put_fs_long(254, &buf->f_namelen); |
buf | 867 | fs/hpfs/hpfs_fs.c | char *buf, int count) |
buf | 883 | fs/hpfs/hpfs_fs.c | start = buf; |
buf | 918 | fs/hpfs/hpfs_fs.c | memcpy_tofs(buf, block + r, n); |
buf | 925 | fs/hpfs/hpfs_fs.c | n0 = convcpy_tofs(buf, block + r, n); |
buf | 936 | fs/hpfs/hpfs_fs.c | buf += n0; |
buf | 940 | fs/hpfs/hpfs_fs.c | return buf - start; |
buf | 1565 | fs/hpfs/hpfs_fs.c | char *buf, int count) |
buf | 119 | fs/isofs/file.c | static int isofs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 231 | fs/isofs/file.c | unixify_to_fs(buf, offset+(*bhe)->b_data, chars, |
buf | 234 | fs/isofs/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 236 | fs/isofs/file.c | buf += chars; |
buf | 239 | fs/isofs/file.c | put_fs_byte(0,buf++); |
buf | 359 | fs/isofs/inode.c | void isofs_statfs (struct super_block *sb, struct statfs *buf) |
buf | 361 | fs/isofs/inode.c | put_fs_long(ISOFS_SUPER_MAGIC, &buf->f_type); |
buf | 362 | fs/isofs/inode.c | put_fs_long(1 << ISOFS_BLOCK_BITS, &buf->f_bsize); |
buf | 363 | fs/isofs/inode.c | put_fs_long(sb->u.isofs_sb.s_nzones, &buf->f_blocks); |
buf | 364 | fs/isofs/inode.c | put_fs_long(0, &buf->f_bfree); |
buf | 365 | fs/isofs/inode.c | put_fs_long(0, &buf->f_bavail); |
buf | 366 | fs/isofs/inode.c | put_fs_long(sb->u.isofs_sb.s_ninodes, &buf->f_files); |
buf | 367 | fs/isofs/inode.c | put_fs_long(0, &buf->f_ffree); |
buf | 368 | fs/isofs/inode.c | put_fs_long(NAME_MAX, &buf->f_namelen); |
buf | 19 | fs/minix/dir.c | static int minix_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 66 | fs/minix/file.c | static int minix_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 162 | fs/minix/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 164 | fs/minix/file.c | buf += chars; |
buf | 167 | fs/minix/file.c | put_fs_byte(0,buf++); |
buf | 189 | fs/minix/file.c | static int minix_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 233 | fs/minix/file.c | memcpy_fromfs(p,buf,c); |
buf | 234 | fs/minix/file.c | buf += c; |
buf | 223 | fs/minix/inode.c | void minix_statfs(struct super_block *sb, struct statfs *buf) |
buf | 227 | fs/minix/inode.c | put_fs_long(MINIX_SUPER_MAGIC, &buf->f_type); |
buf | 228 | fs/minix/inode.c | put_fs_long(1024, &buf->f_bsize); |
buf | 231 | fs/minix/inode.c | put_fs_long(tmp, &buf->f_blocks); |
buf | 233 | fs/minix/inode.c | put_fs_long(tmp, &buf->f_bfree); |
buf | 234 | fs/minix/inode.c | put_fs_long(tmp, &buf->f_bavail); |
buf | 235 | fs/minix/inode.c | put_fs_long(sb->u.minix_sb.s_ninodes, &buf->f_files); |
buf | 236 | fs/minix/inode.c | put_fs_long(minix_count_free_inodes(sb), &buf->f_ffree); |
buf | 237 | fs/minix/inode.c | put_fs_long(sb->u.minix_sb.s_namelen, &buf->f_namelen); |
buf | 25 | fs/msdos/dir.c | static int msdos_dir_read(struct inode * inode,struct file * filp, char * buf,int count) |
buf | 152 | fs/msdos/file.c | char *buf, |
buf | 156 | fs/msdos/file.c | char *start = buf; |
buf | 157 | fs/msdos/file.c | char *end = buf + count; |
buf | 209 | fs/msdos/file.c | && buf < end){ |
buf | 234 | fs/msdos/file.c | size = MIN(size,end-buf); |
buf | 235 | fs/msdos/file.c | memcpy_tofs(buf,data,size); |
buf | 236 | fs/msdos/file.c | buf += size; |
buf | 239 | fs/msdos/file.c | for (; size && buf < end; size--) { |
buf | 246 | fs/msdos/file.c | put_fs_byte(ch,buf++); |
buf | 252 | fs/msdos/file.c | PRINTK (("--- %d -> %d\n",count,(int)(buf-start))); |
buf | 254 | fs/msdos/file.c | if (start == buf) return -EIO; |
buf | 257 | fs/msdos/file.c | return buf-start; |
buf | 266 | fs/msdos/file.c | char *buf, |
buf | 292 | fs/msdos/file.c | for (start = buf; count || carry; count -= size) { |
buf | 317 | fs/msdos/file.c | memcpy_fromfs(bh->b_data+offset,buf,written = size); |
buf | 318 | fs/msdos/file.c | buf += size; |
buf | 329 | fs/msdos/file.c | if ((ch = get_fs_byte(buf++)) == '\n') { |
buf | 350 | fs/msdos/file.c | if (start == buf) |
buf | 355 | fs/msdos/file.c | return buf-start; |
buf | 309 | fs/msdos/inode.c | void msdos_statfs(struct super_block *sb,struct statfs *buf) |
buf | 313 | fs/msdos/inode.c | put_fs_long(sb->s_magic,&buf->f_type); |
buf | 314 | fs/msdos/inode.c | put_fs_long(MSDOS_SB(sb)->cluster_size*SECTOR_SIZE,&buf->f_bsize); |
buf | 315 | fs/msdos/inode.c | put_fs_long(MSDOS_SB(sb)->clusters,&buf->f_blocks); |
buf | 326 | fs/msdos/inode.c | put_fs_long(free,&buf->f_bfree); |
buf | 327 | fs/msdos/inode.c | put_fs_long(free,&buf->f_bavail); |
buf | 328 | fs/msdos/inode.c | put_fs_long(0,&buf->f_files); |
buf | 329 | fs/msdos/inode.c | put_fs_long(0,&buf->f_ffree); |
buf | 330 | fs/msdos/inode.c | put_fs_long(12,&buf->f_namelen); |
buf | 24 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *, struct file *filp, char *buf, |
buf | 75 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *inode, struct file *filp, char *buf, |
buf | 70 | fs/nfs/file.c | char * buf; /* data */ |
buf | 94 | fs/nfs/file.c | static int nfs_file_read(struct inode *inode, struct file *file, char *buf, |
buf | 128 | fs/nfs/file.c | memcpy_tofs(buf, cache[i].buf + pos - cache[i].file_pos, count); |
buf | 137 | fs/nfs/file.c | pos, n, buf, &fattr, 1); |
buf | 141 | fs/nfs/file.c | buf += result; |
buf | 150 | fs/nfs/file.c | data = buf; |
buf | 168 | fs/nfs/file.c | memcpy_tofs(buf, data, hunk); |
buf | 173 | fs/nfs/file.c | if (cache[tail].buf) |
buf | 174 | fs/nfs/file.c | kfree_s(cache[tail].buf, cache[tail].buf_size); |
buf | 175 | fs/nfs/file.c | cache[tail].buf = data; |
buf | 189 | fs/nfs/file.c | static int nfs_file_write(struct inode *inode, struct file *file, char *buf, |
buf | 223 | fs/nfs/file.c | pos, hunk, buf, &fattr); |
buf | 227 | fs/nfs/file.c | buf += hunk; |
buf | 142 | fs/nfs/inode.c | void nfs_statfs(struct super_block *sb, struct statfs *buf) |
buf | 147 | fs/nfs/inode.c | put_fs_long(NFS_SUPER_MAGIC, &buf->f_type); |
buf | 154 | fs/nfs/inode.c | put_fs_long(res.bsize, &buf->f_bsize); |
buf | 155 | fs/nfs/inode.c | put_fs_long(res.blocks, &buf->f_blocks); |
buf | 156 | fs/nfs/inode.c | put_fs_long(res.bfree, &buf->f_bfree); |
buf | 157 | fs/nfs/inode.c | put_fs_long(res.bavail, &buf->f_bavail); |
buf | 158 | fs/nfs/inode.c | put_fs_long(0, &buf->f_files); |
buf | 159 | fs/nfs/inode.c | put_fs_long(0, &buf->f_ffree); |
buf | 162 | fs/nfs/inode.c | put_fs_long(NAME_MAX, &buf->f_namelen); |
buf | 29 | fs/open.c | asmlinkage int sys_statfs(const char * path, struct statfs * buf) |
buf | 34 | fs/open.c | error = verify_area(VERIFY_WRITE, buf, sizeof(struct statfs)); |
buf | 44 | fs/open.c | inode->i_sb->s_op->statfs(inode->i_sb, buf); |
buf | 49 | fs/open.c | asmlinkage int sys_fstatfs(unsigned int fd, struct statfs * buf) |
buf | 55 | fs/open.c | error = verify_area(VERIFY_WRITE, buf, sizeof(struct statfs)); |
buf | 64 | fs/open.c | inode->i_sb->s_op->statfs(inode->i_sb, buf); |
buf | 24 | fs/pipe.c | static int pipe_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 59 | fs/pipe.c | memcpy_tofs(buf, pipebuf, chars ); |
buf | 60 | fs/pipe.c | buf += chars; |
buf | 71 | fs/pipe.c | static int pipe_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 108 | fs/pipe.c | memcpy_fromfs(pipebuf, buf, chars ); |
buf | 109 | fs/pipe.c | buf += chars; |
buf | 128 | fs/pipe.c | static int bad_pipe_rw(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 202 | fs/pipe.c | static int connect_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 215 | fs/pipe.c | return pipe_read(inode,filp,buf,count); |
buf | 48 | fs/proc/array.c | static int read_core(struct inode * inode, struct file * file,char * buf, int count) |
buf | 73 | fs/proc/array.c | memcpy_tofs(buf,(void *) pnt, count1); |
buf | 74 | fs/proc/array.c | buf += count1; |
buf | 81 | fs/proc/array.c | put_fs_byte(0,buf); |
buf | 82 | fs/proc/array.c | buf++; |
buf | 87 | fs/proc/array.c | memcpy_tofs(buf,(void *) (p - PAGE_SIZE),count); |
buf | 112 | fs/proc/array.c | static int read_profile(struct inode *inode, struct file *file, char *buf, int count) |
buf | 128 | fs/proc/array.c | put_fs_byte(*((char *)(&sample_step)+p),buf); |
buf | 129 | fs/proc/array.c | buf++; p++; count--; read++; |
buf | 132 | fs/proc/array.c | memcpy_tofs(buf,(void *)pnt,count); |
buf | 139 | fs/proc/array.c | static int write_profile(struct inode * inode, struct file * file, char * buf, int count) |
buf | 498 | fs/proc/array.c | unsigned long ptbl, *buf, *pte, *pagedir, map_nr; |
buf | 510 | fs/proc/array.c | buf = (unsigned long *)(ptbl & PAGE_MASK); |
buf | 511 | fs/proc/array.c | for (pte = buf; pte < (buf + PTRS_PER_PAGE); ++pte) { |
buf | 540 | fs/proc/array.c | static int get_maps(int pid, char *buf) |
buf | 565 | fs/proc/array.c | sprintf(buf+sz, "...\n"); |
buf | 577 | fs/proc/array.c | sz += sprintf(buf+sz, "%08lx-%08lx %s %08lx %02x:%02x %lu\n", |
buf | 672 | fs/proc/array.c | static int array_read(struct inode * inode, struct file * file,char * buf, int count) |
buf | 698 | fs/proc/array.c | memcpy_tofs(buf, (char *) page + file->f_pos, count); |
buf | 64 | fs/proc/inode.c | void proc_statfs(struct super_block *sb, struct statfs *buf) |
buf | 66 | fs/proc/inode.c | put_fs_long(PROC_SUPER_MAGIC, &buf->f_type); |
buf | 67 | fs/proc/inode.c | put_fs_long(PAGE_SIZE/sizeof(long), &buf->f_bsize); |
buf | 68 | fs/proc/inode.c | put_fs_long(0, &buf->f_blocks); |
buf | 69 | fs/proc/inode.c | put_fs_long(0, &buf->f_bfree); |
buf | 70 | fs/proc/inode.c | put_fs_long(0, &buf->f_bavail); |
buf | 71 | fs/proc/inode.c | put_fs_long(0, &buf->f_files); |
buf | 72 | fs/proc/inode.c | put_fs_long(0, &buf->f_ffree); |
buf | 73 | fs/proc/inode.c | put_fs_long(NAME_MAX, &buf->f_namelen); |
buf | 31 | fs/proc/kmsg.c | static int kmsg_read(struct inode * inode, struct file * file,char * buf, int count) |
buf | 33 | fs/proc/kmsg.c | return sys_syslog(2,buf,count); |
buf | 174 | fs/proc/link.c | char buf[64]; |
buf | 188 | fs/proc/link.c | i = sprintf(buf,"[%04x]:%u", dev, ino); |
buf | 193 | fs/proc/link.c | put_fs_byte(buf[i++],buffer++); |
buf | 25 | fs/proc/mem.c | static int mem_read(struct inode * inode, struct file * file,char * buf, int count) |
buf | 45 | fs/proc/mem.c | tmp = buf; |
buf | 68 | fs/proc/mem.c | return tmp-buf; |
buf | 73 | fs/proc/mem.c | static int mem_write(struct inode * inode, struct file * file,char * buf, int count) |
buf | 93 | fs/proc/mem.c | tmp = buf; |
buf | 120 | fs/proc/mem.c | if (tmp != buf) |
buf | 121 | fs/proc/mem.c | return tmp-buf; |
buf | 37 | fs/proc/net.c | char * buf, int count); |
buf | 206 | fs/proc/net.c | char * buf, int count) |
buf | 323 | fs/proc/net.c | memcpy_tofs(buf+copied, start, length); |
buf | 121 | fs/read_write.c | asmlinkage int sys_read(unsigned int fd,char * buf,unsigned int count) |
buf | 135 | fs/read_write.c | error = verify_area(VERIFY_WRITE,buf,count); |
buf | 138 | fs/read_write.c | return file->f_op->read(inode,file,buf,count); |
buf | 141 | fs/read_write.c | asmlinkage int sys_write(unsigned int fd,char * buf,unsigned int count) |
buf | 156 | fs/read_write.c | error = verify_area(VERIFY_READ,buf,count); |
buf | 159 | fs/read_write.c | written = file->f_op->write(inode,file,buf,count); |
buf | 189 | fs/stat.c | asmlinkage int sys_readlink(const char * path, char * buf, int bufsiz) |
buf | 196 | fs/stat.c | error = verify_area(VERIFY_WRITE,buf,bufsiz); |
buf | 206 | fs/stat.c | return inode->i_op->readlink(inode,buf,bufsiz); |
buf | 96 | fs/super.c | static int fs_name(unsigned int index, char * buf) |
buf | 109 | fs/super.c | err = verify_area(VERIFY_WRITE, buf, len); |
buf | 112 | fs/super.c | memcpy_tofs(buf, tmp->name, len); |
buf | 155 | fs/super.c | int get_filesystem_list(char * buf) |
buf | 162 | fs/super.c | len += sprintf(buf+len, "%s\t%s\n", |
buf | 26 | fs/sysv/dir.c | static int sysv_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 72 | fs/sysv/file.c | int sysv_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 170 | fs/sysv/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 172 | fs/sysv/file.c | buf += chars; |
buf | 175 | fs/sysv/file.c | put_fs_byte(0,buf++); |
buf | 197 | fs/sysv/file.c | static int sysv_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 253 | fs/sysv/file.c | memcpy_fromfs(p,buf,c); |
buf | 254 | fs/sysv/file.c | buf += c; |
buf | 544 | fs/sysv/inode.c | void sysv_statfs(struct super_block *sb, struct statfs *buf) |
buf | 548 | fs/sysv/inode.c | put_fs_long(sb->s_magic, &buf->f_type); /* type of filesystem */ |
buf | 549 | fs/sysv/inode.c | put_fs_long(sb->sv_block_size, &buf->f_bsize); /* block size */ |
buf | 550 | fs/sysv/inode.c | put_fs_long(sb->sv_ndatazones, &buf->f_blocks); /* total data blocks in file system */ |
buf | 552 | fs/sysv/inode.c | put_fs_long(tmp, &buf->f_bfree); /* free blocks in fs */ |
buf | 553 | fs/sysv/inode.c | put_fs_long(tmp, &buf->f_bavail); /* free blocks available to non-superuser */ |
buf | 554 | fs/sysv/inode.c | put_fs_long(sb->sv_ninodes, &buf->f_files); /* total file nodes in file system */ |
buf | 555 | fs/sysv/inode.c | put_fs_long(sysv_count_free_inodes(sb), &buf->f_ffree); /* free file nodes in fs */ |
buf | 556 | fs/sysv/inode.c | put_fs_long(SYSV_NAMELEN, &buf->f_namelen); |
buf | 30 | fs/umsdos/dir.c | int UMSDOS_dir_read(struct inode *inode,struct file *filp,char *buf, |
buf | 40 | fs/umsdos/emd.c | char *buf, |
buf | 46 | fs/umsdos/emd.c | ret = msdos_file_read(inode,filp,buf,count); |
buf | 56 | fs/umsdos/emd.c | char *buf, |
buf | 62 | fs/umsdos/emd.c | ret = msdos_file_write(inode,filp,buf,count); |
buf | 77 | fs/umsdos/emd.c | char *buf, /* buffer in kernel memory, not in user space */ |
buf | 82 | fs/umsdos/emd.c | written = umsdos_file_write_kmem (emd_dir,filp,buf,count); |
buf | 93 | fs/umsdos/emd.c | char *buf, /* buffer in kernel memory, not in user space */ |
buf | 99 | fs/umsdos/emd.c | sizeread = umsdos_file_read_kmem (emd_dir,filp,buf,count); |
buf | 230 | fs/umsdos/emd.c | struct find_buffer *buf) |
buf | 233 | fs/umsdos/emd.c | int mustmove = buf->size - buf->pos; |
buf | 237 | fs/umsdos/emd.c | memcpy (buf->buffer,buf->buffer+buf->pos,mustmove); |
buf | 239 | fs/umsdos/emd.c | buf->pos = 0; |
buf | 241 | fs/umsdos/emd.c | remain = inode->i_size - buf->filp.f_pos; |
buf | 244 | fs/umsdos/emd.c | ret = umsdos_emd_dir_read (inode,&buf->filp,buf->buffer+mustmove |
buf | 246 | fs/umsdos/emd.c | if (ret == 0) buf->size = mustmove + mustread; |
buf | 248 | fs/umsdos/emd.c | buf->size = mustmove; |
buf | 299 | fs/umsdos/emd.c | struct find_buffer buf; |
buf | 300 | fs/umsdos/emd.c | buf.pos = 0; |
buf | 301 | fs/umsdos/emd.c | buf.size = 0; |
buf | 302 | fs/umsdos/emd.c | buf.filp.f_pos = 0; |
buf | 303 | fs/umsdos/emd.c | buf.filp.f_reada = 1; |
buf | 309 | fs/umsdos/emd.c | (buf.buffer + buf.pos); |
buf | 310 | fs/umsdos/emd.c | int file_pos = buf.filp.f_pos - buf.size + buf.pos; |
buf | 311 | fs/umsdos/emd.c | if (buf.pos == buf.size){ |
buf | 312 | fs/umsdos/emd.c | ret = umsdos_fillbuf (emd_dir,&buf); |
buf | 338 | fs/umsdos/emd.c | buf.pos += UMSDOS_REC_SIZE; |
buf | 341 | fs/umsdos/emd.c | if (buf.pos+entry_size > buf.size){ |
buf | 342 | fs/umsdos/emd.c | ret = umsdos_fillbuf (emd_dir,&buf); |
buf | 358 | fs/umsdos/emd.c | buf.pos += entry_size; |
buf | 31 | fs/umsdos/file.c | char *buf, |
buf | 35 | fs/umsdos/file.c | int ret = msdos_file_read(inode,filp,buf,count); |
buf | 46 | fs/umsdos/file.c | char *buf, |
buf | 49 | fs/umsdos/file.c | return msdos_file_write(inode,filp,buf,count); |
buf | 64 | fs/umsdos/inode.c | void UMSDOS_statfs(struct super_block *sb,struct statfs *buf) |
buf | 66 | fs/umsdos/inode.c | msdos_statfs(sb,buf); |
buf | 63 | fs/xiafs/dir.c | struct file * filp, char * buf, int count) |
buf | 70 | fs/xiafs/file.c | xiafs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 160 | fs/xiafs/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 162 | fs/xiafs/file.c | buf += chars; |
buf | 165 | fs/xiafs/file.c | put_fs_byte(0,buf++); |
buf | 190 | fs/xiafs/file.c | xiafs_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 241 | fs/xiafs/file.c | memcpy_fromfs(cp,buf,c); |
buf | 242 | fs/xiafs/file.c | buf += c; |
buf | 174 | fs/xiafs/inode.c | void xiafs_statfs(struct super_block *sb, struct statfs *buf) |
buf | 178 | fs/xiafs/inode.c | put_fs_long(_XIAFS_SUPER_MAGIC, &buf->f_type); |
buf | 179 | fs/xiafs/inode.c | put_fs_long(XIAFS_ZSIZE(sb), &buf->f_bsize); |
buf | 180 | fs/xiafs/inode.c | put_fs_long(sb->u.xiafs_sb.s_ndatazones, &buf->f_blocks); |
buf | 182 | fs/xiafs/inode.c | put_fs_long(tmp, &buf->f_bfree); |
buf | 183 | fs/xiafs/inode.c | put_fs_long(tmp, &buf->f_bavail); |
buf | 184 | fs/xiafs/inode.c | put_fs_long(sb->u.xiafs_sb.s_ninodes, &buf->f_files); |
buf | 185 | fs/xiafs/inode.c | put_fs_long(xiafs_count_free_inodes(sb), &buf->f_ffree); |
buf | 186 | fs/xiafs/inode.c | put_fs_long(_XIAFS_NAME_LEN, &buf->f_namelen); |
buf | 36 | include/asm-sparc/openprom.h | int (*v0_rdblkdev)(int dev_desc, int num_blks, int blk_st, char* buf); |
buf | 37 | include/asm-sparc/openprom.h | int (*v0_wrblkdev)(int dev_desc, int num_blks, int blk_st, char* buf); |
buf | 38 | include/asm-sparc/openprom.h | int (*v0_wrnetdev)(int dev_desc, int num_bytes, char* buf); |
buf | 39 | include/asm-sparc/openprom.h | int (*v0_rdnetdev)(int dev_desc, int num_bytes, char* buf); |
buf | 40 | include/asm-sparc/openprom.h | int (*v0_rdchardev)(int dev_desc, int num_bytes, int dummy, char* buf); |
buf | 41 | include/asm-sparc/openprom.h | int (*v0_wrchardev)(int dev_desc, int num_bytes, int dummy, char* buf); |
buf | 77 | include/asm-sparc/openprom.h | int (*v2_dev_read)(int d, char* buf, int nbytes); |
buf | 78 | include/asm-sparc/openprom.h | int (*v2_dev_write)(int d, char* buf, int nbytes); |
buf | 17 | include/linux/binfmts.h | char buf[128]; |
buf | 334 | include/linux/cdrom.h | u_char *buf; /* frame buffer (size: nframes*2352 bytes) */ |
buf | 423 | include/linux/fs.h | extern void refile_buffer(struct buffer_head * buf); |
buf | 424 | include/linux/fs.h | extern void set_writetime(struct buffer_head * buf, int flag); |
buf | 489 | include/linux/fs.h | extern void brelse(struct buffer_head * buf); |
buf | 45 | include/linux/kernel.h | extern int sprintf(char * buf, const char * fmt, ...); |
buf | 46 | include/linux/kernel.h | extern int vsprintf(char *buf, const char *, va_list); |
buf | 71 | include/linux/mcd.h | #define READ_DATA(port, buf, nr) \ |
buf | 72 | include/linux/mcd.h | insb(port, buf, nr) |
buf | 191 | include/linux/mm.h | extern int vread(char *buf, char *addr, int count); |
buf | 199 | include/linux/mm.h | extern void rw_swap_page(int rw, unsigned long nr, char * buf); |
buf | 210 | include/linux/mm.h | #define read_swap_page(nr,buf) \ |
buf | 211 | include/linux/mm.h | rw_swap_page(READ,(nr),(buf)) |
buf | 212 | include/linux/mm.h | #define write_swap_page(nr,buf) \ |
buf | 213 | include/linux/mm.h | rw_swap_page(WRITE,(nr),(buf)) |
buf | 163 | include/linux/msdos_fs.h | extern void msdos_statfs(struct super_block *sb,struct statfs *buf); |
buf | 335 | include/linux/sbpcd.h | #define READ_DATA(port, buf, nr) insb(port, buf, nr) |
buf | 39 | include/linux/sem.h | struct semid_ds *buf; /* buffer for IPC_STAT & IPC_SET */ |
buf | 106 | include/linux/skbuff.h | extern void skb_queue_head(struct sk_buff_head *list,struct sk_buff *buf); |
buf | 107 | include/linux/skbuff.h | extern void skb_queue_tail(struct sk_buff_head *list,struct sk_buff *buf); |
buf | 111 | include/linux/skbuff.h | extern void skb_unlink(struct sk_buff *buf); |
buf | 284 | include/linux/tty.h | extern char *_tty_name(struct tty_struct *tty, char *buf); |
buf | 127 | include/linux/tty_driver.h | unsigned char *buf, int count); |
buf | 23 | include/linux/tty_ldisc.h | unsigned char * buf, unsigned int nr); |
buf | 25 | include/linux/tty_ldisc.h | unsigned char * buf, unsigned int nr); |
buf | 54 | init/main.c | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
buf | 319 | ipc/msg.c | int sys_msgctl (int msqid, int cmd, struct msqid_ds *buf) |
buf | 331 | ipc/msg.c | if (!buf) |
buf | 348 | ipc/msg.c | err = verify_area (VERIFY_WRITE, buf, sizeof (struct msginfo)); |
buf | 351 | ipc/msg.c | memcpy_tofs (buf, &msginfo, sizeof(struct msginfo)); |
buf | 355 | ipc/msg.c | if (!buf) |
buf | 357 | ipc/msg.c | err = verify_area (VERIFY_WRITE, buf, sizeof (*buf)); |
buf | 377 | ipc/msg.c | memcpy_tofs (buf, &tbuf, sizeof(*buf)); |
buf | 380 | ipc/msg.c | if (!buf) |
buf | 382 | ipc/msg.c | err = verify_area (VERIFY_READ, buf, sizeof (*buf)); |
buf | 385 | ipc/msg.c | memcpy_fromfs (&tbuf, buf, sizeof (*buf)); |
buf | 388 | ipc/msg.c | if (!buf) |
buf | 390 | ipc/msg.c | err = verify_area (VERIFY_WRITE, buf, sizeof(*buf)); |
buf | 417 | ipc/msg.c | memcpy_tofs (buf, &tbuf, sizeof (*buf)); |
buf | 153 | ipc/sem.c | struct semid_ds *buf = NULL; |
buf | 194 | ipc/sem.c | buf = arg.buf; |
buf | 195 | ipc/sem.c | i = verify_area (VERIFY_WRITE, buf, sizeof (*buf)); |
buf | 210 | ipc/sem.c | memcpy_tofs (buf, &tbuf, sizeof(*buf)); |
buf | 277 | ipc/sem.c | buf = arg.buf; |
buf | 278 | ipc/sem.c | if ((i = verify_area (VERIFY_WRITE, buf, sizeof(*buf)))) |
buf | 282 | ipc/sem.c | buf = arg.buf; |
buf | 283 | ipc/sem.c | if ((i = verify_area (VERIFY_READ, buf, sizeof (*buf)))) |
buf | 285 | ipc/sem.c | memcpy_fromfs (&tbuf, buf, sizeof (*buf)); |
buf | 333 | ipc/sem.c | memcpy_tofs (buf, &tbuf, sizeof(*buf)); |
buf | 199 | ipc/shm.c | int sys_shmctl (int shmid, int cmd, struct shmid_ds *buf) |
buf | 209 | ipc/shm.c | if (!buf) |
buf | 211 | ipc/shm.c | err = verify_area (VERIFY_READ, buf, sizeof (*buf)); |
buf | 214 | ipc/shm.c | memcpy_fromfs (&tbuf, buf, sizeof (*buf)); |
buf | 221 | ipc/shm.c | if (!buf) |
buf | 228 | ipc/shm.c | err = verify_area (VERIFY_WRITE, buf, sizeof (struct shminfo)); |
buf | 231 | ipc/shm.c | memcpy_tofs (buf, &shminfo, sizeof(struct shminfo)); |
buf | 237 | ipc/shm.c | if (!buf) |
buf | 239 | ipc/shm.c | err = verify_area (VERIFY_WRITE, buf, sizeof (shm_info)); |
buf | 248 | ipc/shm.c | memcpy_tofs (buf, &shm_info, sizeof(shm_info)); |
buf | 252 | ipc/shm.c | if (!buf) |
buf | 254 | ipc/shm.c | err = verify_area (VERIFY_WRITE, buf, sizeof (*buf)); |
buf | 273 | ipc/shm.c | memcpy_tofs (buf, &tbuf, sizeof(*buf)); |
buf | 305 | ipc/shm.c | if (!buf) |
buf | 307 | ipc/shm.c | err = verify_area (VERIFY_WRITE, buf, sizeof (*buf)); |
buf | 318 | ipc/shm.c | memcpy_tofs (buf, &tbuf, sizeof(*buf)); |
buf | 29 | ipc/util.c | extern int sys_msgctl (int msqid, int cmd, struct msqid_ds *buf); |
buf | 33 | ipc/util.c | extern int sys_shmctl (int shmid, int cmd, struct shmid_ds *buf); |
buf | 57 | kernel/dma.c | int get_dma_list(char *buf) |
buf | 63 | kernel/dma.c | len += sprintf(buf+len, "%2d: %s\n", |
buf | 40 | kernel/module.c | static int get_mod_name( char *user_name, char *buf); |
buf | 395 | kernel/module.c | get_mod_name(char *user_name, char *buf) |
buf | 400 | kernel/module.c | for (i = 0 ; (buf[i] = get_fs_byte(user_name + i)) != '\0' ; ) { |
buf | 489 | kernel/module.c | int get_module_list(char *buf) |
buf | 498 | kernel/module.c | p = buf; |
buf | 501 | kernel/module.c | if (p - buf > 4096 - 100) |
buf | 543 | kernel/module.c | return p - buf; |
buf | 550 | kernel/module.c | int get_ksyms_list(char *buf) |
buf | 555 | kernel/module.c | char *p = buf; |
buf | 564 | kernel/module.c | if (p - buf > 4096 - 100) { |
buf | 567 | kernel/module.c | return p - buf; /* avoid overflowing buffer */ |
buf | 583 | kernel/module.c | return p - buf; |
buf | 20 | kernel/panic.c | static char buf[1024]; |
buf | 24 | kernel/panic.c | vsprintf(buf, fmt, args); |
buf | 26 | kernel/panic.c | printk(KERN_EMERG "Kernel panic: %s\n",buf); |
buf | 25 | kernel/printk.c | static char buf[1024]; |
buf | 54 | kernel/printk.c | asmlinkage int sys_syslog(int type, char * buf, int len) |
buf | 69 | kernel/printk.c | if (!buf || len < 0) |
buf | 73 | kernel/printk.c | error = verify_area(VERIFY_WRITE,buf,len); |
buf | 91 | kernel/printk.c | put_fs_byte(c,buf); |
buf | 92 | kernel/printk.c | buf++; |
buf | 102 | kernel/printk.c | if (!buf || len < 0) |
buf | 106 | kernel/printk.c | error = verify_area(VERIFY_WRITE,buf,len); |
buf | 117 | kernel/printk.c | put_fs_byte(c, buf++); |
buf | 152 | kernel/printk.c | i = vsprintf(buf + 3, fmt, args); /* hopefully i < sizeof(buf)-4 */ |
buf | 153 | kernel/printk.c | buf_end = buf + 3 + i; |
buf | 155 | kernel/printk.c | for (p = buf + 3; p < buf_end; p++) { |
buf | 208 | kernel/printk.c | char buf[16]; |
buf | 215 | kernel/printk.c | buf[j++] = log_buf[p]; |
buf | 217 | kernel/printk.c | if (buf[j-1] != '\n' && i < log_size - 1 && j < sizeof(buf)-1) |
buf | 219 | kernel/printk.c | buf[j] = 0; |
buf | 220 | kernel/printk.c | q = buf; |
buf | 222 | kernel/printk.c | msg_level = buf[1] - '0'; |
buf | 223 | kernel/printk.c | q = buf + 3; |
buf | 227 | kernel/printk.c | if (buf[j-1] == '\n') |
buf | 134 | kernel/vsprintf.c | int vsprintf(char *buf, const char *fmt, va_list args) |
buf | 149 | kernel/vsprintf.c | for (str=buf ; *fmt ; ++fmt) { |
buf | 249 | kernel/vsprintf.c | *ip = (str - buf); |
buf | 252 | kernel/vsprintf.c | *ip = (str - buf); |
buf | 296 | kernel/vsprintf.c | return str-buf; |
buf | 299 | kernel/vsprintf.c | int sprintf(char * buf, const char *fmt, ...) |
buf | 305 | kernel/vsprintf.c | i=vsprintf(buf,fmt,args); |
buf | 11 | lib/write.c | _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
buf | 111 | mm/swap.c | void rw_swap_page(int rw, unsigned long entry, char * buf) |
buf | 138 | mm/swap.c | ll_rw_page(rw,p->swap_device,offset,buf); |
buf | 177 | mm/swap.c | ll_rw_swap_file(rw,swapf->i_dev, zones, i,buf); |
buf | 177 | mm/vmalloc.c | int vread(char *buf, char *addr, int count) |
buf | 180 | mm/vmalloc.c | char *vaddr, *buf_start = buf; |
buf | 188 | mm/vmalloc.c | put_fs_byte('\0', buf++), addr++, count--; |
buf | 196 | mm/vmalloc.c | put_fs_byte(*addr++, buf++), count--; |
buf | 200 | mm/vmalloc.c | return buf - buf_start; |
buf | 137 | net/inet/igmp.c | static void ip_mc_map(unsigned long addr, char *buf) |
buf | 140 | net/inet/igmp.c | buf[0]=0x01; |
buf | 141 | net/inet/igmp.c | buf[1]=0x00; |
buf | 142 | net/inet/igmp.c | buf[2]=0x5e; |
buf | 143 | net/inet/igmp.c | buf[5]=addr&0xFF; |
buf | 145 | net/inet/igmp.c | buf[4]=addr&0xFF; |
buf | 147 | net/inet/igmp.c | buf[3]=addr&0x7F; |
buf | 156 | net/inet/igmp.c | char buf[6]; |
buf | 159 | net/inet/igmp.c | ip_mc_map(addr,buf); |
buf | 160 | net/inet/igmp.c | dev_mc_add(dev,buf,ETH_ALEN,0); |
buf | 169 | net/inet/igmp.c | char buf[6]; |
buf | 172 | net/inet/igmp.c | ip_mc_map(addr,buf); |
buf | 173 | net/inet/igmp.c | dev_mc_delete(dev,buf,ETH_ALEN,0); |
buf | 59 | net/socket.c | static int sock_read(struct inode *inode, struct file *file, char *buf, |
buf | 61 | net/socket.c | static int sock_write(struct inode *inode, struct file *file, char *buf, |
buf | 254 | net/unix/sock.c | upd->buf = NULL; |
buf | 290 | net/unix/sock.c | if (upd->buf) |
buf | 292 | net/unix/sock.c | free_page((unsigned long)upd->buf); |
buf | 293 | net/unix/sock.c | upd->buf = NULL; |
buf | 324 | net/unix/sock.c | if (!(upd->buf = (char*) get_free_page(GFP_USER))) |
buf | 656 | net/unix/sock.c | memcpy_tofs(ubuf, upd->buf + upd->bp_tail, cando); |
buf | 751 | net/unix/sock.c | memcpy_fromfs(pupd->buf + pupd->bp_head, ubuf, cando); |
buf | 38 | net/unix/unix.h | char *buf; |