tag | line | file | source code |
buf | 28 | arch/alpha/boot/main.c | static char buf[1024]; |
buf | 32 | arch/alpha/boot/main.c | i = vsprintf(buf, fmt, args); |
buf | 39 | arch/alpha/boot/main.c | if (buf[j] == '\n') |
buf | 44 | arch/alpha/boot/main.c | buf[j + num_nl] = buf[j]; |
buf | 45 | arch/alpha/boot/main.c | if (buf[j] == '\n') { |
buf | 47 | arch/alpha/boot/main.c | buf[j + num_nl] = '\r'; |
buf | 51 | arch/alpha/boot/main.c | str = buf; |
buf | 718 | arch/alpha/kernel/bios32.c | static char buf[80]; |
buf | 737 | arch/alpha/kernel/bios32.c | sprintf (buf, "UNKNOWN RETURN 0x%x", error); |
buf | 738 | arch/alpha/kernel/bios32.c | return buf; |
buf | 128 | arch/alpha/kernel/irq.c | int get_irq_list(char *buf) |
buf | 136 | arch/alpha/kernel/irq.c | len += sprintf(buf+len, "%2d: %8d %c %s\n", |
buf | 391 | arch/alpha/kernel/lca.c | char buf[128]; |
buf | 418 | arch/alpha/kernel/lca.c | sprintf(buf, "reason for machine-check unknown (0x%lx)", |
buf | 420 | arch/alpha/kernel/lca.c | reason = buf; |
buf | 75 | arch/alpha/kernel/osf_sys.c | struct osf_dirent_callback * buf = (struct osf_dirent_callback *) __buf; |
buf | 78 | arch/alpha/kernel/osf_sys.c | buf->error = -EINVAL; /* unly used if we fail */ |
buf | 79 | arch/alpha/kernel/osf_sys.c | if (reclen > buf->count) |
buf | 81 | arch/alpha/kernel/osf_sys.c | if (buf->basep) { |
buf | 82 | arch/alpha/kernel/osf_sys.c | put_user(offset, buf->basep); |
buf | 83 | arch/alpha/kernel/osf_sys.c | buf->basep = NULL; |
buf | 85 | arch/alpha/kernel/osf_sys.c | dirent = buf->dirent; |
buf | 92 | arch/alpha/kernel/osf_sys.c | buf->dirent = dirent; |
buf | 93 | arch/alpha/kernel/osf_sys.c | buf->count -= reclen; |
buf | 102 | arch/alpha/kernel/osf_sys.c | struct osf_dirent_callback buf; |
buf | 116 | arch/alpha/kernel/osf_sys.c | buf.dirent = dirent; |
buf | 117 | arch/alpha/kernel/osf_sys.c | buf.basep = basep; |
buf | 118 | arch/alpha/kernel/osf_sys.c | buf.count = count; |
buf | 119 | arch/alpha/kernel/osf_sys.c | buf.error = 0; |
buf | 120 | arch/alpha/kernel/osf_sys.c | error = file->f_op->readdir(file->f_inode, file, &buf, osf_filldir); |
buf | 123 | arch/alpha/kernel/osf_sys.c | if (count == buf.count) |
buf | 124 | arch/alpha/kernel/osf_sys.c | return buf.error; |
buf | 125 | arch/alpha/kernel/osf_sys.c | return count - buf.count; |
buf | 530 | arch/alpha/kernel/osf_sys.c | char *buf; |
buf | 535 | arch/alpha/kernel/osf_sys.c | char *buf; |
buf | 542 | arch/alpha/kernel/osf_sys.c | char *buf; |
buf | 549 | arch/alpha/kernel/osf_sys.c | char *buf; |
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 | 94 | arch/i386/boot/tools/build.c | char buf[1024]; |
buf | 96 | arch/i386/boot/tools/build.c | struct exec *ex = (struct exec *)buf; |
buf | 128 | arch/i386/boot/tools/build.c | for (i=0;i<sizeof buf; i++) buf[i]=0; |
buf | 131 | arch/i386/boot/tools/build.c | if (read(id,buf,MINIX_HEADER) != MINIX_HEADER) |
buf | 133 | arch/i386/boot/tools/build.c | if (((long *) buf)[0]!=intel_long(0x04100301)) |
buf | 135 | arch/i386/boot/tools/build.c | if (((long *) buf)[1]!=intel_long(MINIX_HEADER)) |
buf | 137 | arch/i386/boot/tools/build.c | if (((long *) buf)[3] != 0) |
buf | 139 | arch/i386/boot/tools/build.c | if (((long *) buf)[4] != 0) |
buf | 141 | arch/i386/boot/tools/build.c | if (((long *) buf)[5] != 0) |
buf | 143 | arch/i386/boot/tools/build.c | if (((long *) buf)[7] != 0) |
buf | 145 | arch/i386/boot/tools/build.c | i=read(id,buf,sizeof buf); |
buf | 149 | arch/i386/boot/tools/build.c | if ((*(unsigned short *)(buf+510)) != (unsigned short)intel_short(0xAA55)) |
buf | 151 | arch/i386/boot/tools/build.c | buf[508] = (char) minor_root; |
buf | 152 | arch/i386/boot/tools/build.c | buf[509] = (char) major_root; |
buf | 153 | arch/i386/boot/tools/build.c | i=write(1,buf,512); |
buf | 160 | arch/i386/boot/tools/build.c | if (read(id,buf,MINIX_HEADER) != MINIX_HEADER) |
buf | 162 | arch/i386/boot/tools/build.c | if (((long *) buf)[0]!=intel_long(0x04100301)) |
buf | 164 | arch/i386/boot/tools/build.c | if (((long *) buf)[1]!=intel_long(MINIX_HEADER)) |
buf | 166 | arch/i386/boot/tools/build.c | if (((long *) buf)[3] != 0) |
buf | 168 | arch/i386/boot/tools/build.c | if (((long *) buf)[4] != 0) |
buf | 170 | arch/i386/boot/tools/build.c | if (((long *) buf)[5] != 0) |
buf | 172 | arch/i386/boot/tools/build.c | if (((long *) buf)[7] != 0) |
buf | 174 | arch/i386/boot/tools/build.c | for (i=0 ; (c=read(id,buf,sizeof buf))>0 ; i+=c ) |
buf | 175 | arch/i386/boot/tools/build.c | if (write(1,buf,c)!=c) |
buf | 185 | arch/i386/boot/tools/build.c | for (c=0 ; c<sizeof(buf) ; c++) |
buf | 186 | arch/i386/boot/tools/build.c | buf[c] = '\0'; |
buf | 189 | arch/i386/boot/tools/build.c | if (c > sizeof(buf)) |
buf | 190 | arch/i386/boot/tools/build.c | c = sizeof(buf); |
buf | 191 | arch/i386/boot/tools/build.c | if (write(1,buf,c) != c) |
buf | 199 | arch/i386/boot/tools/build.c | if (read(id,buf,GCC_HEADER) != GCC_HEADER) |
buf | 227 | arch/i386/boot/tools/build.c | if (l > sizeof(buf)) |
buf | 228 | arch/i386/boot/tools/build.c | l = sizeof(buf); |
buf | 229 | arch/i386/boot/tools/build.c | if ((n=read(id, buf, l)) != l) { |
buf | 236 | arch/i386/boot/tools/build.c | if (write(1, buf, l) != l) |
buf | 246 | arch/i386/boot/tools/build.c | buf[0] = (sys_size & 0xff); |
buf | 247 | arch/i386/boot/tools/build.c | buf[1] = ((sys_size >> 8) & 0xff); |
buf | 248 | arch/i386/boot/tools/build.c | if (write(1, buf, 2) != 2) |
buf | 368 | arch/i386/kernel/bios32.c | static char buf[80]; |
buf | 393 | arch/i386/kernel/bios32.c | sprintf (buf, "UNKNOWN RETURN 0x%x", error); |
buf | 394 | arch/i386/kernel/bios32.c | return buf; |
buf | 175 | arch/i386/kernel/irq.c | int get_irq_list(char *buf) |
buf | 183 | arch/i386/kernel/irq.c | len += sprintf(buf+len, "%3d: %8d %c %s\n", |
buf | 192 | arch/i386/kernel/irq.c | len+=sprintf(buf+len, "IPI: %8lu received\n", |
buf | 194 | arch/i386/kernel/irq.c | len+=sprintf(buf+len, "LCK: %8lu spins\n", |
buf | 104 | arch/mips/kernel/gdb-stub.c | static unsigned char *mem2hex(char *mem, char *buf, int count, int may_fault); |
buf | 250 | arch/mips/kernel/gdb-stub.c | static unsigned char *mem2hex(char *mem, char *buf, int count, int may_fault) |
buf | 260 | arch/mips/kernel/gdb-stub.c | *buf++ = hexchars[ch >> 4]; |
buf | 261 | arch/mips/kernel/gdb-stub.c | *buf++ = hexchars[ch & 0xf]; |
buf | 264 | arch/mips/kernel/gdb-stub.c | *buf = 0; |
buf | 268 | arch/mips/kernel/gdb-stub.c | return buf; |
buf | 275 | arch/mips/kernel/gdb-stub.c | static char *hex2mem(char *buf, char *mem, int count, int may_fault) |
buf | 284 | arch/mips/kernel/gdb-stub.c | ch = hex(*buf++) << 4; |
buf | 285 | arch/mips/kernel/gdb-stub.c | ch |= hex(*buf++); |
buf | 119 | arch/mips/kernel/irq.c | int get_irq_list(char *buf) |
buf | 127 | arch/mips/kernel/irq.c | len += sprintf(buf+len, "%3d: %8d %c %s\n", |
buf | 94 | arch/ppc/kernel/irq.c | int get_irq_list(char *buf) |
buf | 102 | arch/ppc/kernel/irq.c | len += sprintf(buf+len, "%2d: %8d %c %s\n", |
buf | 10 | arch/ppc/kernel/mk_ramdisk.c | unsigned char buf[4096]; |
buf | 35 | arch/ppc/kernel/mk_ramdisk.c | while (fread(buf, sizeof(buf), 1, in) == 1) |
buf | 38 | arch/ppc/kernel/mk_ramdisk.c | lp = (unsigned char *)buf; |
buf | 39 | arch/ppc/kernel/mk_ramdisk.c | for (i = 0; i < sizeof(buf); i += 4) |
buf | 57 | arch/ppc/kernel/mk_ramdisk.c | pos += sizeof(buf); |
buf | 21 | arch/ppc/kernel/raw_printf.c | static _cvt(unsigned long val, char *buf, long radix, char *digits); |
buf | 71 | arch/ppc/kernel/raw_printf.c | _sprintk(char *buf, char const *fmt, ...) |
buf | 77 | arch/ppc/kernel/raw_printf.c | _sprintk_ptr = buf; |
buf | 83 | arch/ppc/kernel/raw_printf.c | _vsprintk(char *buf, char const *fmt, va_list ap) |
buf | 87 | arch/ppc/kernel/raw_printf.c | _sprintk_ptr = buf; |
buf | 109 | arch/ppc/kernel/raw_printf.c | char buf[32]; |
buf | 163 | arch/ppc/kernel/raw_printf.c | length = _cvt(val, buf, 10, "0123456789"); |
buf | 166 | arch/ppc/kernel/raw_printf.c | length = _cvt(val, buf, 16, "0123456789abcdef"); |
buf | 169 | arch/ppc/kernel/raw_printf.c | length = _cvt(val, buf, 16, "0123456789ABCDEF"); |
buf | 172 | arch/ppc/kernel/raw_printf.c | cp = buf; |
buf | 239 | arch/ppc/kernel/raw_printf.c | static _cvt(unsigned long val, char *buf, long radix, char *digits) |
buf | 255 | arch/ppc/kernel/raw_printf.c | *buf++ = *--cp; |
buf | 258 | arch/ppc/kernel/raw_printf.c | *buf = '\0'; |
buf | 537 | arch/ppc/kernel/raw_printf.c | *buf++ = tmp; |
buf | 38 | arch/ppc/kernel/stubs.c | extern unsigned short _ip_fast_csum(unsigned char *buf, int len); |
buf | 41 | arch/ppc/kernel/stubs.c | ip_fast_csum(unsigned char *buf, int len) |
buf | 44 | arch/ppc/kernel/stubs.c | _val = _ip_fast_csum(buf, len); |
buf | 46 | arch/ppc/kernel/stubs.c | printk("IP CKSUM(%x, %d) = %x\n", buf, len, _val); |
buf | 51 | arch/ppc/kernel/stubs.c | extern unsigned short _ip_compute_csum(unsigned char *buf, int len); |
buf | 54 | arch/ppc/kernel/stubs.c | ip_compute_csum(unsigned char *buf, int len) |
buf | 57 | arch/ppc/kernel/stubs.c | _val = _ip_compute_csum(buf, len); |
buf | 59 | arch/ppc/kernel/stubs.c | printk("Compute IP CKSUM(%x, %d) = %x\n", buf, len, _val); |
buf | 65 | arch/ppc/kernel/stubs.c | _udp_check(unsigned char *buf, int len, int saddr, int daddr, int hdr); |
buf | 68 | arch/ppc/kernel/stubs.c | udp_check(unsigned char *buf, int len, int saddr, int daddr) |
buf | 73 | arch/ppc/kernel/stubs.c | _val = _udp_check(buf, len, saddr, daddr, hdr); |
buf | 75 | arch/ppc/kernel/stubs.c | printk("UDP CSUM(%x,%d,%x,%x) = %x\n", buf, len, saddr, daddr, _val); |
buf | 76 | arch/ppc/kernel/stubs.c | dump_buf(buf, len); |
buf | 82 | arch/ppc/kernel/stubs.c | _tcp_check(unsigned char *buf, int len, int saddr, int daddr, int hdr); |
buf | 85 | arch/ppc/kernel/stubs.c | tcp_check(unsigned char *buf, int len, int saddr, int daddr) |
buf | 91 | arch/ppc/kernel/stubs.c | _val = _tcp_check(buf, len, saddr, daddr, hdr); |
buf | 93 | arch/ppc/kernel/stubs.c | printk("TCP CSUM(%x,%d,%x,%x) = %x\n", buf, len, saddr, daddr, _val); |
buf | 94 | arch/ppc/kernel/stubs.c | dump_buf(buf, len); |
buf | 166 | arch/sparc/kernel/irq.c | get_irq_list(char *buf) |
buf | 174 | arch/sparc/kernel/irq.c | len += sprintf(buf+len, "%2d: %8d %c %s\n", |
buf | 315 | arch/sparc/kernel/sparc-stub.c | mem2hex(char *mem, char *buf, int count) |
buf | 321 | arch/sparc/kernel/sparc-stub.c | *buf++ = hexchars[ch >> 4]; |
buf | 322 | arch/sparc/kernel/sparc-stub.c | *buf++ = hexchars[ch & 0xf]; |
buf | 325 | arch/sparc/kernel/sparc-stub.c | *buf = 0; |
buf | 326 | arch/sparc/kernel/sparc-stub.c | return buf; |
buf | 333 | arch/sparc/kernel/sparc-stub.c | hex2mem(char *buf, char *mem, int count) |
buf | 340 | arch/sparc/kernel/sparc-stub.c | ch = hex(*buf++) << 4; |
buf | 341 | arch/sparc/kernel/sparc-stub.c | ch |= hex(*buf++); |
buf | 350 | arch/sparc/kernel/sys_sunos.c | struct sunos_dirent_callback * buf = (struct sunos_dirent_callback *) __buf; |
buf | 353 | arch/sparc/kernel/sys_sunos.c | buf->error = -EINVAL; /* only used if we fail.. */ |
buf | 354 | arch/sparc/kernel/sys_sunos.c | if (reclen > buf->count) |
buf | 356 | arch/sparc/kernel/sys_sunos.c | dirent = buf->previous; |
buf | 359 | arch/sparc/kernel/sys_sunos.c | dirent = buf->curr; |
buf | 360 | arch/sparc/kernel/sys_sunos.c | buf->previous = dirent; |
buf | 367 | arch/sparc/kernel/sys_sunos.c | buf->curr = dirent; |
buf | 368 | arch/sparc/kernel/sys_sunos.c | buf->count -= reclen; |
buf | 376 | arch/sparc/kernel/sys_sunos.c | struct sunos_dirent_callback buf; |
buf | 388 | arch/sparc/kernel/sys_sunos.c | buf.curr = (struct sunos_dirent *) dirent; |
buf | 389 | arch/sparc/kernel/sys_sunos.c | buf.previous = NULL; |
buf | 390 | arch/sparc/kernel/sys_sunos.c | buf.count = cnt; |
buf | 391 | arch/sparc/kernel/sys_sunos.c | buf.error = 0; |
buf | 392 | arch/sparc/kernel/sys_sunos.c | error = file->f_op->readdir(file->f_inode, file, &buf, sunos_filldir); |
buf | 395 | arch/sparc/kernel/sys_sunos.c | lastdirent = buf.previous; |
buf | 397 | arch/sparc/kernel/sys_sunos.c | return buf.error; |
buf | 399 | arch/sparc/kernel/sys_sunos.c | return cnt - buf.count; |
buf | 3363 | drivers/block/floppy.c | char * buf, int count) |
buf | 3370 | drivers/block/floppy.c | return block_read(inode, filp, buf, count); |
buf | 3374 | drivers/block/floppy.c | const char * buf, int count) |
buf | 3389 | drivers/block/floppy.c | ret= block_write(inode, filp, buf, count); |
buf | 413 | drivers/block/ide-cd.c | char buf[80]; |
buf | 428 | drivers/block/ide-cd.c | sprintf (buf, "Diagnostic failure on component 0x%02x", reqbuf->ascq); |
buf | 429 | drivers/block/ide-cd.c | s = buf; |
buf | 1636 | drivers/block/ide-cd.c | int format, char *buf, int buflen, |
buf | 1644 | drivers/block/ide-cd.c | pc.buffer = buf; |
buf | 1788 | drivers/block/ide-cd.c | char *buf, int buflen, |
buf | 1796 | drivers/block/ide-cd.c | pc.buffer = buf; |
buf | 1810 | drivers/block/ide-cd.c | char *buf, int buflen, |
buf | 1818 | drivers/block/ide-cd.c | pc.buffer = buf; |
buf | 1829 | drivers/block/ide-cd.c | cdrom_mode_select (ide_drive_t *drive, int pageno, char *buf, int buflen, |
buf | 1837 | drivers/block/ide-cd.c | pc.buffer = buf; |
buf | 1976 | drivers/block/ide-cd.c | char *buf, int buflen, |
buf | 1989 | drivers/block/ide-cd.c | pc.buffer = buf; |
buf | 2015 | drivers/block/ide-cd.c | return cdrom_read_block (drive, format, lba, buf, buflen, reqbuf); |
buf | 2323 | drivers/block/ide-cd.c | char buf[CD_FRAMESIZE_RAW]; |
buf | 2341 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (char *)ra.buf, |
buf | 2360 | drivers/block/ide-cd.c | stat = cdrom_read_block (drive, 1, lba, buf, |
buf | 2363 | drivers/block/ide-cd.c | memcpy_tofs (ra.buf, buf, CD_FRAMESIZE_RAW); |
buf | 2364 | drivers/block/ide-cd.c | ra.buf += CD_FRAMESIZE_RAW; |
buf | 2378 | drivers/block/ide-cd.c | char buf[CD_FRAMESIZE_RAW0]; |
buf | 2409 | drivers/block/ide-cd.c | stat = cdrom_read_block (drive, format, lba, buf, blocksize, NULL); |
buf | 2412 | drivers/block/ide-cd.c | memcpy_tofs ((char *)arg, buf, blocksize); |
buf | 2455 | drivers/block/ide-cd.c | char buf[lena]; |
buf | 2458 | drivers/block/ide-cd.c | pc.buffer = buf; |
buf | 2464 | drivers/block/ide-cd.c | memcpy_tofs ((void *)arg, buf, len); |
buf | 861 | drivers/block/ide-tape.c | int idetape_chrdev_read (struct inode *inode, struct file *file, char *buf, int count); |
buf | 862 | drivers/block/ide-tape.c | int idetape_chrdev_read_remainder (struct inode *inode, struct file *file, char *buf, int count); |
buf | 863 | drivers/block/ide-tape.c | int idetape_chrdev_write (struct inode *inode, struct file *file, const char *buf, int count); |
buf | 864 | drivers/block/ide-tape.c | int idetape_chrdev_write_remainder (struct inode *inode, struct file *file, const char *buf, int count); |
buf | 3522 | drivers/block/ide-tape.c | int idetape_chrdev_read (struct inode *inode, struct file *file, char *buf, int count) |
buf | 3558 | drivers/block/ide-tape.c | buf_ptr=buf; |
buf | 3586 | drivers/block/ide-tape.c | int idetape_chrdev_read_remainder (struct inode *inode, struct file *file, char *buf, int count) |
buf | 3619 | drivers/block/ide-tape.c | memcpy_tofs (buf,tape->temp_data_buffer,actually_read); |
buf | 3625 | drivers/block/ide-tape.c | memcpy_tofs (buf,tape->temp_data_buffer,count); |
buf | 3629 | drivers/block/ide-tape.c | int idetape_chrdev_write (struct inode *inode, struct file *file, const char *buf, int count) |
buf | 3666 | drivers/block/ide-tape.c | buf_ptr=buf; |
buf | 3694 | drivers/block/ide-tape.c | int idetape_chrdev_write_remainder (struct inode *inode, struct file *file, const char *buf, int count) |
buf | 3718 | drivers/block/ide-tape.c | memcpy_fromfs (tape->temp_data_buffer,buf,count); |
buf | 558 | drivers/block/ll_rw_blk.c | void ll_rw_swap_file(int rw, kdev_t dev, unsigned int *b, int nb, char *buf) |
buf | 587 | drivers/block/ll_rw_blk.c | for (; j < 8 && i < nb; j++, i++, buf += buffersize) |
buf | 603 | drivers/block/ll_rw_blk.c | req[j]->buffer = buf; |
buf | 268 | drivers/block/rd.c | unsigned char *buf; |
buf | 270 | drivers/block/rd.c | buf = kmalloc(size, GFP_KERNEL); |
buf | 271 | drivers/block/rd.c | if (buf == 0) |
buf | 274 | drivers/block/rd.c | minixsb = (struct minix_super_block *) buf; |
buf | 275 | drivers/block/rd.c | ext2sb = (struct ext2_super_block *) buf; |
buf | 276 | drivers/block/rd.c | memset(buf, 0xe5, size); |
buf | 285 | drivers/block/rd.c | fp->f_op->read(fp->f_inode, fp, buf, size); |
buf | 290 | drivers/block/rd.c | if (buf[0] == 037 && ((buf[1] == 0213) || (buf[1] == 0236))) { |
buf | 306 | drivers/block/rd.c | fp->f_op->read(fp->f_inode, fp, buf, size); |
buf | 346 | drivers/block/rd.c | kfree(buf); |
buf | 360 | drivers/block/rd.c | char *buf; |
buf | 421 | drivers/block/rd.c | buf = kmalloc(BLOCK_SIZE, GFP_KERNEL); |
buf | 422 | drivers/block/rd.c | if (buf == 0) { |
buf | 429 | drivers/block/rd.c | infile.f_op->read(infile.f_inode, &infile, buf, |
buf | 431 | drivers/block/rd.c | outfile.f_op->write(outfile.f_inode, &outfile, buf, |
buf | 439 | drivers/block/rd.c | kfree(buf); |
buf | 550 | drivers/block/xd.c | u_char cmdblk[6],buf[64]; |
buf | 553 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
buf | 554 | drivers/block/xd.c | xd_info[drive].heads = buf[0x0A]; /* heads */ |
buf | 555 | drivers/block/xd.c | xd_info[drive].cylinders = ((u_short *) (buf))[0x04]; /* cylinders */ |
buf | 558 | drivers/block/xd.c | xd_info[drive].rwrite = ((u_short *) (buf + 1))[0x05]; /* reduced write */ |
buf | 559 | drivers/block/xd.c | xd_info[drive].precomp = ((u_short *) (buf + 1))[0x06]; /* write precomp */ |
buf | 560 | drivers/block/xd.c | xd_info[drive].ecc = buf[0x0F]; /* ecc length */ |
buf | 564 | 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 | 594 | drivers/block/xd.c | u_char cmdblk[6],buf[0x200]; |
buf | 597 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
buf | 598 | drivers/block/xd.c | xd_info[drive].heads = buf[0x1AF]; /* heads */ |
buf | 599 | drivers/block/xd.c | xd_info[drive].cylinders = ((u_short *) (buf + 1))[0xD6]; /* cylinders */ |
buf | 602 | drivers/block/xd.c | xd_info[drive].rwrite = ((u_short *) (buf))[0xD8]; /* reduced write */ |
buf | 603 | drivers/block/xd.c | xd_info[drive].wprecomp = ((u_short *) (buf))[0xDA]; /* write precomp */ |
buf | 604 | drivers/block/xd.c | xd_info[drive].ecc = buf[0x1B4]; /* ecc length */ |
buf | 606 | drivers/block/xd.c | xd_info[drive].control = buf[0x1B5]; /* control byte */ |
buf | 608 | 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 | 633 | drivers/block/xd.c | u_char cmdblk[6],buf[0x200]; |
buf | 636 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
buf | 637 | drivers/block/xd.c | xd_info[drive].heads = buf[0x04]; /* heads */ |
buf | 638 | drivers/block/xd.c | xd_info[drive].cylinders = (buf[0x02] << 8) | buf[0x03]; /* cylinders */ |
buf | 639 | drivers/block/xd.c | xd_info[drive].sectors = buf[0x05]; /* sectors */ |
buf | 205 | drivers/cdrom/aztcd.c | static char buf[CD_FRAMESIZE_RAW]; /*separate buffer for the ioctls*/ |
buf | 891 | drivers/cdrom/aztcd.c | st = verify_area(VERIFY_WRITE, (void *) arg, sizeof buf); |
buf | 914 | drivers/cdrom/aztcd.c | insb(DATA_PORT,buf,CD_FRAMESIZE_RAW); |
buf | 915 | drivers/cdrom/aztcd.c | memcpy_tofs((void *) arg, &buf, CD_FRAMESIZE_RAW); |
buf | 921 | drivers/cdrom/aztcd.c | insb(DATA_PORT,buf,CD_FRAMESIZE); |
buf | 922 | drivers/cdrom/aztcd.c | memcpy_tofs((void *) arg, &buf, CD_FRAMESIZE); |
buf | 243 | drivers/cdrom/cdu31a.c | unsigned char *buf); |
buf | 1063 | drivers/cdrom/cdu31a.c | unsigned char *buf) |
buf | 1065 | drivers/cdrom/cdu31a.c | buf[0] = size / 65536; |
buf | 1067 | drivers/cdrom/cdu31a.c | buf[1] = size / 256; |
buf | 1068 | drivers/cdrom/cdu31a.c | buf[2] = size % 256; |
buf | 2293 | drivers/cdrom/cdu31a.c | memcpy_tofs((char *) (ra->buf + (CD_FRAMESIZE_RAW * cframe)), |
buf | 2309 | drivers/cdrom/cdu31a.c | memcpy_tofs((char *) (ra->buf + (CD_FRAMESIZE_RAW * cframe)), |
buf | 2662 | drivers/cdrom/cdu31a.c | i=verify_area(VERIFY_WRITE, ra.buf, CD_FRAMESIZE_RAW * ra.nframes); |
buf | 213 | drivers/cdrom/mcdx.c | static int mcdx_transfer(struct s_drive_stuff*, char* buf, int sector, int nr_sectors); |
buf | 704 | drivers/cdrom/mcdx.c | char buf[512]; |
buf | 722 | drivers/cdrom/mcdx.c | while (0 == (ans = mcdx_transfer(stuffp, buf, 0, 1))) |
buf | 1580 | drivers/cdrom/mcdx.c | char buf[11]; |
buf | 1584 | drivers/cdrom/mcdx.c | stuffp, "\x20", 1, buf, sizeof(buf), |
buf | 1587 | drivers/cdrom/mcdx.c | sub->control = buf[1]; |
buf | 1588 | drivers/cdrom/mcdx.c | sub->tno = buf[2]; |
buf | 1589 | drivers/cdrom/mcdx.c | sub->index = buf[3]; |
buf | 1590 | drivers/cdrom/mcdx.c | sub->tt.minute = buf[4]; |
buf | 1591 | drivers/cdrom/mcdx.c | sub->tt.second = buf[5]; |
buf | 1592 | drivers/cdrom/mcdx.c | sub->tt.frame = buf[6]; |
buf | 1593 | drivers/cdrom/mcdx.c | sub->dt.minute = buf[8]; |
buf | 1594 | drivers/cdrom/mcdx.c | sub->dt.second = buf[9]; |
buf | 1595 | drivers/cdrom/mcdx.c | sub->dt.frame = buf[10]; |
buf | 1603 | drivers/cdrom/mcdx.c | char buf[5]; |
buf | 1607 | drivers/cdrom/mcdx.c | ans = mcdx_talk(stuffp, "\x11", 1, buf, sizeof(buf), 2*HZ, tries); |
buf | 1608 | drivers/cdrom/mcdx.c | multi->multi = buf[1]; |
buf | 1609 | drivers/cdrom/mcdx.c | multi->msf_last.minute = buf[2]; |
buf | 1610 | drivers/cdrom/mcdx.c | multi->msf_last.second = buf[3]; |
buf | 1611 | drivers/cdrom/mcdx.c | multi->msf_last.frame = buf[4]; |
buf | 1622 | drivers/cdrom/mcdx.c | char buf[9]; |
buf | 1624 | drivers/cdrom/mcdx.c | ans = mcdx_talk(stuffp, "\x10", 1, buf, sizeof(buf), 2*HZ, tries); |
buf | 1625 | drivers/cdrom/mcdx.c | info->n_first = bcd2uint(buf[1]); |
buf | 1626 | drivers/cdrom/mcdx.c | info->n_last = bcd2uint(buf[2]); |
buf | 1627 | drivers/cdrom/mcdx.c | info->msf_leadout.minute = buf[3]; |
buf | 1628 | drivers/cdrom/mcdx.c | info->msf_leadout.second = buf[4]; |
buf | 1629 | drivers/cdrom/mcdx.c | info->msf_leadout.frame = buf[5]; |
buf | 1630 | drivers/cdrom/mcdx.c | info->msf_first.minute = buf[6]; |
buf | 1631 | drivers/cdrom/mcdx.c | info->msf_first.second = buf[7]; |
buf | 1632 | drivers/cdrom/mcdx.c | info->msf_first.frame = buf[8]; |
buf | 1697 | drivers/cdrom/mcdx.c | char buf[3]; |
buf | 1700 | drivers/cdrom/mcdx.c | if (-1 == (ans = mcdx_talk(stuffp, "\xdc", 1, buf, sizeof(buf), 2*HZ, tries))) |
buf | 1703 | drivers/cdrom/mcdx.c | ver->code = buf[1]; |
buf | 1704 | drivers/cdrom/mcdx.c | ver->ver = buf[2]; |
buf | 1735 | drivers/cdrom/mcdx.c | mcdx_getval(struct s_drive_stuff *stuffp, int to, int delay, char* buf) |
buf | 1740 | drivers/cdrom/mcdx.c | if (!buf) buf = &c; |
buf | 1747 | drivers/cdrom/mcdx.c | *buf = (unsigned char) inb((unsigned int) stuffp->rreg_data) & 0xff; |
buf | 322 | drivers/cdrom/optcd.c | inline static void optReadData(char *buf, int n) { |
buf | 323 | drivers/cdrom/optcd.c | insb(DATA_PORT, buf, n); |
buf | 1254 | drivers/cdrom/optcd.c | char buf[OPT_BLOCKSIZE]; |
buf | 1272 | drivers/cdrom/optcd.c | optReadData(buf, OPT_BLOCKSIZE); |
buf | 1273 | drivers/cdrom/optcd.c | memcpy_tofs((void *) arg, &buf, OPT_BLOCKSIZE); |
buf | 717 | drivers/cdrom/sbpcd.c | char buf[256]; |
buf | 724 | drivers/cdrom/sbpcd.c | sprintf(buf, KERN_INFO "%s-%d [%02d]: ", major_name, d, msgnum); |
buf | 726 | drivers/cdrom/sbpcd.c | vsprintf(&buf[18], fmt, args); |
buf | 728 | drivers/cdrom/sbpcd.c | printk(buf); |
buf | 4120 | drivers/cdrom/sbpcd.c | i=verify_area(VERIFY_WRITE, read_audio.buf, |
buf | 4287 | drivers/cdrom/sbpcd.c | memcpy_tofs((u_char *) read_audio.buf, |
buf | 319 | drivers/cdrom/sjcd.c | static int sjcd_load_response( void *buf, int len ){ |
buf | 320 | drivers/cdrom/sjcd.c | unsigned char *resp = ( unsigned char * )buf; |
buf | 766 | drivers/cdrom/sonycd535.c | size_to_buf(unsigned int size, Byte *buf) |
buf | 768 | drivers/cdrom/sonycd535.c | buf[0] = size / 65536; |
buf | 770 | drivers/cdrom/sonycd535.c | buf[1] = size / 256; |
buf | 771 | drivers/cdrom/sonycd535.c | buf[2] = size % 256; |
buf | 740 | drivers/char/apm_bios.c | static int do_read(struct inode *inode, struct file *fp, char *buf, int count) |
buf | 769 | drivers/char/apm_bios.c | memcpy_tofs(buf, &event, sizeof(event)); |
buf | 770 | drivers/char/apm_bios.c | buf += sizeof(event); |
buf | 882 | drivers/char/apm_bios.c | int apm_proc(char *buf) |
buf | 894 | drivers/char/apm_bios.c | p = buf; |
buf | 900 | drivers/char/apm_bios.c | return p - buf; |
buf | 912 | drivers/char/apm_bios.c | return p - buf; |
buf | 948 | drivers/char/apm_bios.c | return p - buf; |
buf | 933 | drivers/char/console.c | char buf[40]; |
buf | 935 | drivers/char/console.c | sprintf(buf, "\033[%ld;%ldR", y + (decom ? top+1 : 1), x+1); |
buf | 936 | drivers/char/console.c | respond_string(buf, tty); |
buf | 951 | drivers/char/console.c | char buf[8]; |
buf | 953 | drivers/char/console.c | sprintf(buf, "\033[M%c%c%c", (char)(' ' + butt), (char)('!' + mrx), |
buf | 955 | drivers/char/console.c | respond_string(buf, tty); |
buf | 1361 | drivers/char/console.c | const unsigned char *buf, int count) |
buf | 1383 | drivers/char/console.c | c = from_user ? get_user(buf) : *buf; |
buf | 1384 | drivers/char/console.c | buf++; n++; count--; |
buf | 1612 | drivers/char/cyclades.c | const unsigned char *buf, int count) |
buf | 1641 | drivers/char/cyclades.c | memcpy_fromfs(tmp_buf, buf, c); |
buf | 1647 | drivers/char/cyclades.c | memcpy(info->xmit_buf + info->xmit_head, buf, c); |
buf | 1651 | drivers/char/cyclades.c | buf += c; |
buf | 1736 | drivers/char/cyclades.c | char buf[64]; |
buf | 1738 | drivers/char/cyclades.c | printk("throttle %s: %d....\n", _tty_name(tty, buf), |
buf | 1778 | drivers/char/cyclades.c | char buf[64]; |
buf | 1780 | drivers/char/cyclades.c | printk("throttle %s: %d....\n", _tty_name(tty, buf), |
buf | 584 | drivers/char/istallion.c | static int stli_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count); |
buf | 603 | drivers/char/istallion.c | static int stli_memread(struct inode *ip, struct file *fp, char *buf, int count); |
buf | 604 | drivers/char/istallion.c | static int stli_memwrite(struct inode *ip, struct file *fp, const char *buf, int count); |
buf | 1379 | drivers/char/istallion.c | static int stli_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count) |
buf | 1391 | drivers/char/istallion.c | printk("stli_write(tty=%x,from_user=%d,buf=%x,count=%d)\n", (int) tty, from_user, (int) buf, count); |
buf | 1404 | drivers/char/istallion.c | chbuf = (unsigned char *) buf; |
buf | 1538 | drivers/char/istallion.c | unsigned char *buf, *shbuf; |
buf | 1588 | drivers/char/istallion.c | buf = stli_txcookbuf; |
buf | 1592 | drivers/char/istallion.c | memcpy((shbuf + head), buf, stlen); |
buf | 1593 | drivers/char/istallion.c | buf += stlen; |
buf | 3832 | drivers/char/istallion.c | static int stli_memread(struct inode *ip, struct file *fp, char *buf, int count) |
buf | 3840 | drivers/char/istallion.c | printk("stli_memread(ip=%x,fp=%x,buf=%x,count=%d)\n", (int) ip, (int) fp, (int) buf, count); |
buf | 3860 | drivers/char/istallion.c | memcpy_tofs(buf, memptr, n); |
buf | 3862 | drivers/char/istallion.c | buf += n; |
buf | 3879 | drivers/char/istallion.c | static int stli_memwrite(struct inode *ip, struct file *fp, const char *buf, int count) |
buf | 3888 | drivers/char/istallion.c | printk("stli_memwrite(ip=%x,fp=%x,buf=%x,count=%x)\n", (int) ip, (int) fp, (int) buf, count); |
buf | 3900 | drivers/char/istallion.c | chbuf = (char *) buf; |
buf | 611 | drivers/char/keyboard.c | static char buf[] = { 0x1b, 'O', 0x00, 0x00 }; |
buf | 613 | drivers/char/keyboard.c | buf[1] = (mode ? 'O' : '['); |
buf | 614 | drivers/char/keyboard.c | buf[2] = key; |
buf | 615 | drivers/char/keyboard.c | puts_queue(buf); |
buf | 162 | drivers/char/lp.c | static inline int lp_write_interrupt(unsigned int minor, const char * buf, int count) |
buf | 173 | drivers/char/lp.c | memcpy_fromfs(lp->lp_buffer, buf, copy_size); |
buf | 223 | drivers/char/lp.c | buf += bytes_written; |
buf | 231 | drivers/char/lp.c | static inline int lp_write_polled(unsigned int minor, const char * buf, int count) |
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 | 294 | drivers/char/lp.c | return temp-buf; |
buf | 297 | drivers/char/lp.c | static int lp_write(struct inode * inode, struct file * file, const char * buf, int count) |
buf | 306 | drivers/char/lp.c | return lp_write_interrupt(minor, buf, count); |
buf | 308 | drivers/char/lp.c | return lp_write_polled(minor, buf, count); |
buf | 29 | drivers/char/mem.c | static int read_ram(struct inode * inode, struct file * file, char * buf, int count) |
buf | 34 | drivers/char/mem.c | static int write_ram(struct inode * inode, struct file * file, const char * buf, int count) |
buf | 39 | drivers/char/mem.c | static int read_mem(struct inode * inode, struct file * file, char * buf, int count) |
buf | 54 | drivers/char/mem.c | put_user(0,buf); |
buf | 55 | drivers/char/mem.c | buf++; |
buf | 61 | drivers/char/mem.c | memcpy_tofs(buf, (void *) p, count); |
buf | 67 | drivers/char/mem.c | static int write_mem(struct inode * inode, struct file * file, const char * buf, int count) |
buf | 83 | drivers/char/mem.c | buf++; |
buf | 89 | drivers/char/mem.c | memcpy_fromfs((void *) p, buf, count); |
buf | 116 | drivers/char/mem.c | static int read_kmem(struct inode *inode, struct file *file, char *buf, int count) |
buf | 120 | drivers/char/mem.c | read1 = read_mem(inode, file, buf, count); |
buf | 123 | drivers/char/mem.c | read2 = vread(buf + read1, (char *) ((unsigned long) file->f_pos), count - read1); |
buf | 130 | drivers/char/mem.c | static int read_port(struct inode * inode, struct file * file,char * buf, int count) |
buf | 133 | drivers/char/mem.c | char * tmp = buf; |
buf | 141 | drivers/char/mem.c | return tmp-buf; |
buf | 144 | drivers/char/mem.c | static int write_port(struct inode * inode, struct file * file, const char * buf, int count) |
buf | 147 | drivers/char/mem.c | const char * tmp = buf; |
buf | 155 | drivers/char/mem.c | return tmp-buf; |
buf | 158 | drivers/char/mem.c | static int read_null(struct inode * node, struct file * file, char * buf, int count) |
buf | 163 | drivers/char/mem.c | static int write_null(struct inode * inode, struct file * file, const char * buf, int count) |
buf | 168 | drivers/char/mem.c | static int read_zero(struct inode * node, struct file * file, char * buf, int count) |
buf | 173 | drivers/char/mem.c | put_user(0,buf); |
buf | 174 | drivers/char/mem.c | buf++; |
buf | 188 | drivers/char/mem.c | static int read_full(struct inode * node, struct file * file, char * buf,int count) |
buf | 193 | drivers/char/mem.c | static int write_full(struct inode * inode, struct file * file, const char * buf, int count) |
buf | 322 | drivers/char/n_tty.c | char buf[64]; |
buf | 326 | drivers/char/n_tty.c | printk("%s: %d input overrun(s)\n", _tty_name(tty, buf), |
buf | 752 | drivers/char/n_tty.c | unsigned char *buf, unsigned int nr) |
buf | 756 | drivers/char/n_tty.c | unsigned char *b = buf; |
buf | 813 | drivers/char/n_tty.c | if (b != buf) |
buf | 824 | drivers/char/n_tty.c | if (((minimum - (b - buf)) < tty->minimum_to_wake) && |
buf | 825 | drivers/char/n_tty.c | ((minimum - (b - buf)) >= 1)) |
buf | 826 | drivers/char/n_tty.c | tty->minimum_to_wake = (minimum - (b - buf)); |
buf | 851 | drivers/char/n_tty.c | if (tty->packet && b == buf) { |
buf | 901 | drivers/char/n_tty.c | if (b - buf >= minimum || !nr) |
buf | 913 | drivers/char/n_tty.c | size = b - buf; |
buf | 924 | drivers/char/n_tty.c | const unsigned char * buf, unsigned int nr) |
buf | 928 | drivers/char/n_tty.c | const unsigned char *b = buf; |
buf | 973 | drivers/char/n_tty.c | return (b - buf) ? b - buf : retval; |
buf | 116 | drivers/char/psaux.c | unsigned char buf[AUX_BUF_SIZE]; |
buf | 192 | drivers/char/psaux.c | result = queue->buf[queue->tail]; |
buf | 219 | drivers/char/psaux.c | add_mouse_randomness(queue->buf[head] = inb(AUX_INPUT_PORT)); |
buf | 242 | drivers/char/psaux.c | add_mouse_randomness(queue->buf[head] = inb(qp_data)); |
buf | 115 | drivers/char/pty.c | const unsigned char *buf, int count) |
buf | 130 | drivers/char/pty.c | memcpy_fromfs(temp_buffer, buf, n); |
buf | 136 | drivers/char/pty.c | buf += n; c+= n; |
buf | 142 | drivers/char/pty.c | to->ldisc.receive_buf(to, buf, 0, c); |
buf | 235 | drivers/char/random.c | char * buf, int nbytes); |
buf | 237 | drivers/char/random.c | char * buf, int nbytes); |
buf | 478 | drivers/char/random.c | static void MD5Transform(__u32 buf[4], |
buf | 483 | drivers/char/random.c | a = buf[0]; |
buf | 484 | drivers/char/random.c | b = buf[1]; |
buf | 485 | drivers/char/random.c | c = buf[2]; |
buf | 486 | drivers/char/random.c | d = buf[3]; |
buf | 556 | drivers/char/random.c | buf[0] += a; |
buf | 557 | drivers/char/random.c | buf[1] += b; |
buf | 558 | drivers/char/random.c | buf[2] += c; |
buf | 559 | drivers/char/random.c | buf[3] += d; |
buf | 578 | drivers/char/random.c | static inline int extract_entropy(struct random_bucket *r, char * buf, |
buf | 622 | drivers/char/random.c | memcpy_tofs(buf, (__u8 const *)tmp, i); |
buf | 624 | drivers/char/random.c | memcpy(buf, (__u8 const *)tmp, i); |
buf | 626 | drivers/char/random.c | buf += i; |
buf | 640 | drivers/char/random.c | void get_random_bytes(void *buf, int nbytes) |
buf | 642 | drivers/char/random.c | extract_entropy(&random_state, (char *) buf, nbytes, 0); |
buf | 646 | drivers/char/random.c | random_read(struct inode * inode, struct file * file, char * buf, int nbytes) |
buf | 675 | drivers/char/random.c | n = extract_entropy(&random_state, buf, n, 1); |
buf | 677 | drivers/char/random.c | buf += n; |
buf | 690 | drivers/char/random.c | char * buf, int nbytes) |
buf | 692 | drivers/char/random.c | return extract_entropy(&random_state, buf, nbytes, 1); |
buf | 216 | drivers/char/scc.c | int scc_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count); |
buf | 2464 | drivers/char/scc.c | int scc_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count) |
buf | 2490 | drivers/char/scc.c | memcpy_fromfs(scc_wbuf, buf, cnt); |
buf | 2494 | drivers/char/scc.c | memcpy(scc_wbuf, buf, cnt); |
buf | 2507 | drivers/char/scc.c | buf += cnt; |
buf | 1310 | drivers/char/serial.c | const unsigned char *buf, int count) |
buf | 1333 | drivers/char/serial.c | memcpy_fromfs(tmp_buf, buf, c); |
buf | 1338 | drivers/char/serial.c | memcpy(info->xmit_buf + info->xmit_head, buf, c); |
buf | 1342 | drivers/char/serial.c | buf += c; |
buf | 1406 | drivers/char/serial.c | char buf[64]; |
buf | 1408 | drivers/char/serial.c | printk("throttle %s: %d....\n", _tty_name(tty, buf), |
buf | 1429 | drivers/char/serial.c | char buf[64]; |
buf | 1431 | drivers/char/serial.c | printk("unthrottle %s: %d....\n", _tty_name(tty, buf), |
buf | 207 | drivers/char/stallion.c | char *buf; |
buf | 460 | drivers/char/stallion.c | static int stl_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count); |
buf | 571 | drivers/char/stallion.c | if (portp->tx.buf != (char *) NULL) |
buf | 572 | drivers/char/stallion.c | kfree_s(portp->tx.buf, STL_TXBUFSIZE); |
buf | 665 | drivers/char/stallion.c | if (portp->tx.buf == (char *) NULL) { |
buf | 666 | drivers/char/stallion.c | portp->tx.buf = (char *) stl_memalloc(STL_TXBUFSIZE); |
buf | 667 | drivers/char/stallion.c | if (portp->tx.buf == (char *) NULL) |
buf | 669 | drivers/char/stallion.c | portp->tx.head = portp->tx.buf; |
buf | 670 | drivers/char/stallion.c | portp->tx.tail = portp->tx.buf; |
buf | 842 | drivers/char/stallion.c | if (portp->tx.buf != (char *) NULL) { |
buf | 843 | drivers/char/stallion.c | kfree_s(portp->tx.buf, STL_TXBUFSIZE); |
buf | 844 | drivers/char/stallion.c | portp->tx.buf = (char *) NULL; |
buf | 894 | drivers/char/stallion.c | static int stl_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count) |
buf | 903 | drivers/char/stallion.c | printk("stl_write(tty=%x,from_user=%d,buf=%x,count=%d)\n", (int) tty, from_user, (int) buf, count); |
buf | 911 | drivers/char/stallion.c | if (portp->tx.buf == (char *) NULL) |
buf | 920 | drivers/char/stallion.c | chbuf = (unsigned char *) buf; |
buf | 941 | drivers/char/stallion.c | stlen = STL_TXBUFSIZE - (head - portp->tx.buf); |
buf | 956 | drivers/char/stallion.c | if (head >= (portp->tx.buf + STL_TXBUFSIZE)) { |
buf | 957 | drivers/char/stallion.c | head = portp->tx.buf; |
buf | 986 | drivers/char/stallion.c | if (portp->tx.buf == (char *) NULL) |
buf | 997 | drivers/char/stallion.c | if (head >= (portp->tx.buf + STL_TXBUFSIZE)) |
buf | 998 | drivers/char/stallion.c | head = portp->tx.buf; |
buf | 1024 | drivers/char/stallion.c | if (portp->tx.buf == (char *) NULL) |
buf | 1050 | drivers/char/stallion.c | if (portp->tx.buf == (char *) NULL) |
buf | 1084 | drivers/char/stallion.c | if (portp->tx.buf == (char *) NULL) |
buf | 1443 | drivers/char/stallion.c | if (portp->tx.buf != (char *) NULL) { |
buf | 1444 | drivers/char/stallion.c | kfree_s(portp->tx.buf, STL_TXBUFSIZE); |
buf | 1445 | drivers/char/stallion.c | portp->tx.buf = (char *) NULL; |
buf | 1595 | drivers/char/stallion.c | stlen = MIN(len, ((portp->tx.buf + STL_TXBUFSIZE) - tail)); |
buf | 1600 | drivers/char/stallion.c | if (tail >= (portp->tx.buf + STL_TXBUFSIZE)) |
buf | 1601 | drivers/char/stallion.c | tail = portp->tx.buf; |
buf | 1921 | drivers/char/tpqic02.c | static int qic02_tape_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 1937 | drivers/char/tpqic02.c | MINOR(dev), buf, count, (unsigned long) filp->f_pos, flags); |
buf | 1951 | drivers/char/tpqic02.c | error = verify_area(VERIFY_WRITE, buf, count); |
buf | 2042 | drivers/char/tpqic02.c | memcpy_tofs( (void *) buf, (void *) buffaddr, bytes_done); |
buf | 2056 | drivers/char/tpqic02.c | buf += bytes_done; |
buf | 2096 | drivers/char/tpqic02.c | static int qic02_tape_write(struct inode * inode, struct file * filp, const char * buf, int count) |
buf | 2111 | drivers/char/tpqic02.c | MINOR(dev), buf, count, (unsigned long) filp->f_pos, flags); |
buf | 2133 | drivers/char/tpqic02.c | error = verify_area(VERIFY_READ, buf, count); |
buf | 2169 | drivers/char/tpqic02.c | memcpy_fromfs( (void *) buffaddr, (const void *) buf, bytes_todo); |
buf | 2223 | drivers/char/tpqic02.c | buf += bytes_done; |
buf | 2231 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": status_bytes_wr %x, buf %p, total_bytes_done %lx, count %x\n", status_bytes_wr, buf, total_bytes_done, count); |
buf | 128 | drivers/char/tty_io.c | char *_tty_name(struct tty_struct *tty, char *buf) |
buf | 131 | drivers/char/tty_io.c | sprintf(buf, "%s%d", tty->driver.name, |
buf | 135 | drivers/char/tty_io.c | strcpy(buf, "NULL tty"); |
buf | 136 | drivers/char/tty_io.c | return buf; |
buf | 141 | drivers/char/tty_io.c | static char buf[64]; |
buf | 143 | drivers/char/tty_io.c | return(_tty_name(tty, buf)); |
buf | 300 | drivers/char/tty_io.c | static int hung_up_tty_read(struct inode * inode, struct file * file, char * buf, int count) |
buf | 305 | drivers/char/tty_io.c | static int hung_up_tty_write(struct inode * inode, struct file * file, const char * buf, int count) |
buf | 703 | drivers/char/tty_io.c | static int tty_read(struct inode * inode, struct file * file, char * buf, int count) |
buf | 732 | drivers/char/tty_io.c | i = (tty->ldisc.read)(tty,file,(unsigned char *)buf,(unsigned int)count); |
buf | 740 | drivers/char/tty_io.c | static int tty_write(struct inode * inode, struct file * file, const char * buf, int count) |
buf | 768 | drivers/char/tty_io.c | i = (tty->ldisc.write)(tty,file,(const unsigned char *)buf,(unsigned int)count); |
buf | 63 | drivers/char/vc_screen.c | vcs_read(struct inode *inode, struct file *file, char *buf, int count) |
buf | 89 | drivers/char/vc_screen.c | buf0 = buf; |
buf | 93 | drivers/char/vc_screen.c | put_user(scr_readw(org++) & 0xff, buf++); |
buf | 101 | drivers/char/vc_screen.c | put_user(header[p++], buf++); |
buf | 106 | drivers/char/vc_screen.c | put_user(scr_readw(org++) >> 8, buf++); |
buf | 108 | drivers/char/vc_screen.c | put_user(scr_readw(org++), (unsigned short *) buf); |
buf | 109 | drivers/char/vc_screen.c | buf += 2; |
buf | 113 | drivers/char/vc_screen.c | put_user(scr_readw(org) & 0xff, buf++); |
buf | 115 | drivers/char/vc_screen.c | read = buf - buf0; |
buf | 121 | drivers/char/vc_screen.c | vcs_write(struct inode *inode, struct file *file, const char *buf, int count) |
buf | 147 | drivers/char/vc_screen.c | buf0 = buf; |
buf | 152 | drivers/char/vc_screen.c | get_user(buf++), org); |
buf | 160 | drivers/char/vc_screen.c | header[p++] = get_user(buf++); |
buf | 167 | drivers/char/vc_screen.c | scr_writew((get_user(buf++) << 8) | |
buf | 172 | drivers/char/vc_screen.c | scr_writew(get_user((const unsigned short *) buf), org++); |
buf | 173 | drivers/char/vc_screen.c | buf += 2; |
buf | 178 | drivers/char/vc_screen.c | get_user(buf++), org); |
buf | 180 | drivers/char/vc_screen.c | written = buf - buf0; |
buf | 113 | drivers/char/wdt.c | static int wdt_write(struct inode *inode, struct file *file, char *buf, int count) |
buf | 127 | drivers/char/wdt.c | static int wdt_read(struct inode *inode, struct file *file, char *buf, int count) |
buf | 136 | drivers/char/wdt.c | err=verify_area(VERIFY_WRITE, buf, 1); |
buf | 142 | drivers/char/wdt.c | memcpy_tofs(buf,&cp,1); |
buf | 434 | drivers/net/3c501.c | unsigned char *buf = skb->data; |
buf | 462 | drivers/net/3c501.c | outsb(DATAPORT,buf,skb->len); /* load buffer (usual thing each byte increments the pointer) */ |
buf | 76 | drivers/net/3c503.c | const unsigned char *buf, const start_page); |
buf | 429 | drivers/net/3c503.c | const unsigned char *buf, const start_page) |
buf | 442 | drivers/net/3c503.c | memcpy_toio(dest_addr, buf, count); |
buf | 465 | drivers/net/3c503.c | outb(buf[i], E33G_FIFOH); |
buf | 288 | drivers/net/3c507.c | static void hardware_send_packet(struct device *dev, void *buf, short length); |
buf | 496 | drivers/net/3c507.c | unsigned char *buf = skb->data; |
buf | 500 | drivers/net/3c507.c | hardware_send_packet(dev, buf, length); |
buf | 762 | drivers/net/3c507.c | hardware_send_packet(struct device *dev, void *buf, short length) |
buf | 787 | drivers/net/3c507.c | memcpy(write_ptr, buf, length); |
buf | 78 | drivers/net/ac3200.c | const unsigned char *buf, const int start_page); |
buf | 287 | drivers/net/ac3200.c | const unsigned char *buf, int start_page) |
buf | 291 | drivers/net/ac3200.c | memcpy_toio(shmem, buf, count); |
buf | 508 | drivers/net/arcnet.c | static void arcnetA_rx(struct device *dev,u_char *buf, |
buf | 512 | drivers/net/arcnet.c | static void arcnetS_rx(struct device *dev,u_char *buf, |
buf | 2187 | drivers/net/arcnet.c | arcnetA_rx(struct device *dev,u_char *buf, |
buf | 2200 | drivers/net/arcnet.c | arcsoft=(struct ClientData *)(buf-EXTRA_CLIENTDATA); |
buf | 2524 | drivers/net/arcnet.c | arcnetS_rx(struct device *dev,u_char *buf, |
buf | 2531 | drivers/net/arcnet.c | arcsoft=(struct S_ClientData *)(buf-S_EXTRA_CLIENTDATA); |
buf | 409 | drivers/net/at1700.c | unsigned char *buf = skb->data; |
buf | 415 | drivers/net/at1700.c | outsw(ioaddr + DATAPORT, buf, (length + 1) >> 1); |
buf | 451 | drivers/net/atp.c | unsigned char *buf = skb->data; |
buf | 462 | drivers/net/atp.c | write_packet(ioaddr, length, buf, dev->if_port); |
buf | 337 | drivers/net/de4x5.c | u32 buf; |
buf | 418 | drivers/net/de4x5.c | static void load_packet(struct device *dev, char *buf, u32 flags, struct sk_buff *skb); |
buf | 631 | drivers/net/de4x5.c | lp->rx_ring[i].buf = virt_to_bus(tmp + i * RX_BUFF_SZ); |
buf | 735 | drivers/net/de4x5.c | kfree_s(bus_to_virt(lp->rx_ring[0].buf), |
buf | 801 | drivers/net/de4x5.c | printk("0x%8.8x ",lp->rx_ring[i].buf); |
buf | 804 | drivers/net/de4x5.c | printk("...0x%8.8x\n",lp->rx_ring[i].buf); |
buf | 808 | drivers/net/de4x5.c | printk("0x%8.8x ", lp->tx_ring[i].buf); |
buf | 811 | drivers/net/de4x5.c | printk("...0x%8.8x\n", lp->tx_ring[i].buf); |
buf | 1130 | drivers/net/de4x5.c | char *buf; |
buf | 1155 | drivers/net/de4x5.c | memcpy(skb_put(skb,len), bus_to_virt(lp->rx_ring[lp->rx_old].buf), len); |
buf | 1156 | drivers/net/de4x5.c | memcpy(skb_put(skb,pkt_len-len), bus_to_virt(lp->rx_ring[0].buf), pkt_len - len); |
buf | 1158 | drivers/net/de4x5.c | memcpy(skb_put(skb,pkt_len), bus_to_virt(lp->rx_ring[lp->rx_old].buf), pkt_len); |
buf | 1173 | drivers/net/de4x5.c | buf = skb->data; /* Look at the dest addr */ |
buf | 1174 | drivers/net/de4x5.c | if (buf[0] & 0x01) { /* Multicast/Broadcast */ |
buf | 1175 | drivers/net/de4x5.c | if ((*(s32 *)&buf[0] == -1) && (*(s16 *)&buf[4] == -1)) { |
buf | 1180 | drivers/net/de4x5.c | } else if ((*(s32 *)&buf[0] == *(s32 *)&dev->dev_addr[0]) && |
buf | 1181 | drivers/net/de4x5.c | (*(s16 *)&buf[4] == *(s16 *)&dev->dev_addr[4])) { |
buf | 1360 | drivers/net/de4x5.c | static void load_packet(struct device *dev, char *buf, u32 flags, struct sk_buff *skb) |
buf | 1364 | drivers/net/de4x5.c | lp->tx_ring[lp->tx_new].buf = virt_to_bus(buf); |
buf | 2128 | drivers/net/de4x5.c | char *buf = frame; |
buf | 2131 | drivers/net/de4x5.c | *buf++ = dev->dev_addr[i]; |
buf | 2134 | drivers/net/de4x5.c | *buf++ = dev->dev_addr[i]; |
buf | 2137 | drivers/net/de4x5.c | *buf++ = 0; /* Packet length (2 bytes) */ |
buf | 2138 | drivers/net/de4x5.c | *buf++ = 1; |
buf | 2693 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->rx_ring[i].buf; j+=4; |
buf | 2696 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->rx_ring[i].buf; j+=4; |
buf | 2699 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->tx_ring[i].buf; j+=4; |
buf | 2702 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->tx_ring[i].buf; j+=4; |
buf | 2763 | drivers/net/de4x5.c | kfree_s(bus_to_virt(lp->rx_ring[0].buf), RX_BUFF_SZ * NUM_RX_DESC + ALIGN); |
buf | 916 | drivers/net/depca.c | unsigned char *buf; |
buf | 918 | drivers/net/depca.c | buf = skb_put(skb,pkt_len); |
buf | 922 | drivers/net/depca.c | memcpy_fromio(buf, lp->rx_memcpy[lp->rx_old], len); |
buf | 923 | drivers/net/depca.c | memcpy_fromio(buf + len, lp->rx_memcpy[0], pkt_len-len); |
buf | 925 | drivers/net/depca.c | memcpy_fromio(buf, lp->rx_memcpy[lp->rx_old], pkt_len); |
buf | 945 | drivers/net/depca.c | if (buf[0] & 0x01) { /* Multicast/Broadcast */ |
buf | 946 | drivers/net/depca.c | if ((*(s16 *)&buf[0] == -1) && (*(s32 *)&buf[2] == -1)) { |
buf | 951 | drivers/net/depca.c | } else if ((*(s16 *)&buf[0] == *(s16 *)&dev->dev_addr[0]) && |
buf | 952 | drivers/net/depca.c | (*(s32 *)&buf[2] == *(s32 *)&dev->dev_addr[2])) { |
buf | 104 | drivers/net/e2100.c | const unsigned char *buf, const start_page); |
buf | 332 | drivers/net/e2100.c | e21_block_output(struct device *dev, int count, const unsigned char *buf, |
buf | 343 | drivers/net/e2100.c | memcpy_toio(shared_mem, buf, count); |
buf | 146 | drivers/net/eepro.c | static void hardware_send_packet(struct device *dev, void *buf, short length); |
buf | 643 | drivers/net/eepro.c | unsigned char *buf = skb->data; |
buf | 645 | drivers/net/eepro.c | hardware_send_packet(dev, buf, length); |
buf | 934 | drivers/net/eepro.c | hardware_send_packet(struct device *dev, void *buf, short length) |
buf | 979 | drivers/net/eepro.c | outsw(ioaddr + IO_PORT, buf, (length + 1) >> 1); |
buf | 296 | drivers/net/eexpress.c | static void hardware_send_packet(struct device *dev, void *buf, short length); |
buf | 495 | drivers/net/eexpress.c | unsigned char *buf = skb->data; |
buf | 499 | drivers/net/eexpress.c | hardware_send_packet(dev, buf, length); |
buf | 843 | drivers/net/eexpress.c | hardware_send_packet(struct device *dev, void *buf, short length) |
buf | 869 | drivers/net/eexpress.c | outsw(ioaddr + DATAPORT, buf, (length + 1) >> 1); |
buf | 933 | drivers/net/eth16i.c | unsigned char *buf = skb->data; |
buf | 938 | drivers/net/eth16i.c | outsw(ioaddr + DATAPORT, buf, (length + 1) >> 1); |
buf | 942 | drivers/net/eth16i.c | outsl(ioaddr + DATAPORT, buf, length >> 2); |
buf | 945 | drivers/net/eth16i.c | outsw(ioaddr + DATAPORT, (buf + (length & 0xFFFC)), 1); |
buf | 947 | drivers/net/eth16i.c | outsw(ioaddr + DATAPORT, (buf + (length & 0xFFFC) + 2), 1); |
buf | 1036 | drivers/net/eth16i.c | unsigned char *buf = skb_put(skb, pkt_len); |
buf | 1039 | drivers/net/eth16i.c | insl(ioaddr + DATAPORT, buf, pkt_len >> 2); |
buf | 1047 | drivers/net/eth16i.c | memcpy(buf + (pkt_len & 0xfffc), (char *)rest, frag); |
buf | 773 | drivers/net/ewrk3.c | u_long buf = 0; |
buf | 784 | drivers/net/ewrk3.c | buf = lp->shmem_base; |
buf | 787 | drivers/net/ewrk3.c | buf = ((((short)page << 11) & 0x7800) + lp->shmem_base); |
buf | 790 | drivers/net/ewrk3.c | buf = ((((short)page << 11) & 0xf800) + lp->shmem_base); |
buf | 817 | drivers/net/ewrk3.c | writeb((char)(TCR_QMODE|TCR_PAD|TCR_IFC), (char *)buf);/* ctrl byte*/ |
buf | 818 | drivers/net/ewrk3.c | buf+=1; |
buf | 819 | drivers/net/ewrk3.c | writeb((char)(skb->len & 0xff), (char *)buf);/* length (16 bit xfer)*/ |
buf | 820 | drivers/net/ewrk3.c | buf+=1; |
buf | 822 | drivers/net/ewrk3.c | writeb((char)(((skb->len >> 8) & 0xff) | XCT), (char *)buf); |
buf | 823 | drivers/net/ewrk3.c | buf+=1; |
buf | 824 | drivers/net/ewrk3.c | writeb(0x04, (char *)buf); /* index byte */ |
buf | 825 | drivers/net/ewrk3.c | buf+=1; |
buf | 826 | drivers/net/ewrk3.c | writeb(0x00, (char *)(buf + skb->len)); /* Write the XCT flag */ |
buf | 827 | drivers/net/ewrk3.c | memcpy_toio(buf, skb->data, PRELOAD);/* Write PRELOAD bytes*/ |
buf | 829 | drivers/net/ewrk3.c | memcpy_toio(buf+PRELOAD, skb->data+PRELOAD, skb->len-PRELOAD); |
buf | 830 | drivers/net/ewrk3.c | writeb(0xff, (char *)(buf + skb->len)); /* Write the XCT flag */ |
buf | 832 | drivers/net/ewrk3.c | writeb((char)((skb->len >> 8) & 0xff), (char *)buf); |
buf | 833 | drivers/net/ewrk3.c | buf+=1; |
buf | 834 | drivers/net/ewrk3.c | writeb(0x04, (char *)buf); /* index byte */ |
buf | 835 | drivers/net/ewrk3.c | buf+=1; |
buf | 836 | drivers/net/ewrk3.c | memcpy_toio((char *)buf, skb->data, skb->len);/* Write data bytes */ |
buf | 942 | drivers/net/ewrk3.c | u_long buf = 0; |
buf | 964 | drivers/net/ewrk3.c | buf = lp->shmem_base; |
buf | 967 | drivers/net/ewrk3.c | buf = ((((short)page << 11) & 0x7800) + lp->shmem_base); |
buf | 970 | drivers/net/ewrk3.c | buf = ((((short)page << 11) & 0xf800) + lp->shmem_base); |
buf | 986 | drivers/net/ewrk3.c | rx_status = readb(buf); |
buf | 987 | drivers/net/ewrk3.c | buf+=1; |
buf | 988 | drivers/net/ewrk3.c | pkt_len = readw(buf); |
buf | 989 | drivers/net/ewrk3.c | buf+=3; |
buf | 1012 | drivers/net/ewrk3.c | memcpy_fromio(p, buf, pkt_len); |
buf | 104 | drivers/net/hp-plus.c | const unsigned char *buf, const start_page); |
buf | 110 | drivers/net/hp-plus.c | const unsigned char *buf, const start_page); |
buf | 343 | drivers/net/hp-plus.c | char *buf = skb->data; |
buf | 346 | drivers/net/hp-plus.c | insw(ioaddr + HP_DATAPORT, buf, count>>1); |
buf | 348 | drivers/net/hp-plus.c | buf[count-1] = inw(ioaddr + HP_DATAPORT); |
buf | 388 | drivers/net/hp-plus.c | const unsigned char *buf, const start_page) |
buf | 392 | drivers/net/hp-plus.c | outsl(ioaddr + HP_DATAPORT, buf, (count+3)>>2); |
buf | 398 | drivers/net/hp-plus.c | const unsigned char *buf, const start_page) |
buf | 405 | drivers/net/hp-plus.c | memcpy_toio(dev->mem_start, buf, (count + 3) & ~3); |
buf | 68 | drivers/net/hp.c | const unsigned char *buf, const start_page); |
buf | 281 | drivers/net/hp.c | char *buf = skb->data; |
buf | 291 | drivers/net/hp.c | insw(nic_base - NIC_OFFSET + HP_DATAPORT,buf,count>>1); |
buf | 293 | drivers/net/hp.c | buf[count-1] = inb(nic_base - NIC_OFFSET + HP_DATAPORT), xfer_count++; |
buf | 295 | drivers/net/hp.c | insb(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count); |
buf | 312 | drivers/net/hp.c | const unsigned char *buf, const start_page) |
buf | 348 | drivers/net/hp.c | outsw(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count>>1); |
buf | 350 | drivers/net/hp.c | outsb(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count); |
buf | 105 | drivers/net/ne.c | const unsigned char *buf, const int start_page); |
buf | 454 | drivers/net/ne.c | char *buf = skb->data; |
buf | 472 | drivers/net/ne.c | insw(NE_BASE + NE_DATAPORT,buf,count>>1); |
buf | 474 | drivers/net/ne.c | buf[count-1] = inb(NE_BASE + NE_DATAPORT); |
buf | 480 | drivers/net/ne.c | insb(NE_BASE + NE_DATAPORT, buf, count); |
buf | 511 | drivers/net/ne.c | const unsigned char *buf, const int start_page) |
buf | 567 | drivers/net/ne.c | outsw(NE_BASE + NE_DATAPORT, buf, count>>1); |
buf | 569 | drivers/net/ne.c | outsb(NE_BASE + NE_DATAPORT, buf, count); |
buf | 143 | drivers/net/ppp.c | register struct ppp_buffer *buf, |
buf | 145 | drivers/net/ppp.c | extern inline int lock_buffer (register struct ppp_buffer *buf); |
buf | 580 | drivers/net/ppp.c | struct ppp_buffer *buf; |
buf | 582 | drivers/net/ppp.c | buf = (struct ppp_buffer *) kmalloc (size + sizeof (struct ppp_buffer), |
buf | 585 | drivers/net/ppp.c | if (buf != NULL) { |
buf | 586 | drivers/net/ppp.c | buf->size = size - 1; /* Mask for the buffer size */ |
buf | 587 | drivers/net/ppp.c | buf->type = type; |
buf | 588 | drivers/net/ppp.c | buf->locked = 0; |
buf | 589 | drivers/net/ppp.c | buf->count = 0; |
buf | 590 | drivers/net/ppp.c | buf->head = 0; |
buf | 591 | drivers/net/ppp.c | buf->tail = 0; |
buf | 592 | drivers/net/ppp.c | buf->fcs = PPP_INITFCS; |
buf | 594 | drivers/net/ppp.c | return (buf); |
buf | 613 | drivers/net/ppp.c | lock_buffer (register struct ppp_buffer *buf) |
buf | 622 | drivers/net/ppp.c | state = buf->locked; |
buf | 624 | drivers/net/ppp.c | buf->locked = 2; |
buf | 1119 | drivers/net/ppp.c | register struct ppp_buffer *buf = NULL; |
buf | 1125 | drivers/net/ppp.c | buf = ppp->rbuf; |
buf | 1127 | drivers/net/ppp.c | if (buf == NULL) |
buf | 1205 | drivers/net/ppp.c | buf->count = 0; |
buf | 1206 | drivers/net/ppp.c | buf->fcs = PPP_INITFCS; |
buf | 1230 | drivers/net/ppp.c | if (buf->count < buf->size) { |
buf | 1231 | drivers/net/ppp.c | buf_base (buf)[buf->count++] = chr; |
buf | 1232 | drivers/net/ppp.c | buf->fcs = PPP_FCS (buf->fcs, chr); |
buf | 1772 | drivers/net/ppp.c | ppp_tty_read (struct tty_struct *tty, struct file *file, u_char * buf, |
buf | 1799 | drivers/net/ppp.c | buf, nr); |
buf | 1825 | drivers/net/ppp.c | indx = verify_area (VERIFY_WRITE, buf, nr); |
buf | 1889 | drivers/net/ppp.c | indx = verify_area (VERIFY_WRITE, buf, len + 2); |
buf | 1900 | drivers/net/ppp.c | put_byte_user (PPP_ALLSTATIONS, buf++); |
buf | 1901 | drivers/net/ppp.c | put_byte_user (PPP_UI, buf++); |
buf | 1909 | drivers/net/ppp.c | put_byte_user (c, buf); |
buf | 1910 | drivers/net/ppp.c | ++buf; |
buf | 1930 | drivers/net/ppp.c | ppp_stuff_char (struct ppp *ppp, register struct ppp_buffer *buf, |
buf | 1937 | drivers/net/ppp.c | if ((buf->count < 0) || (buf->count > 3000)) |
buf | 1939 | drivers/net/ppp.c | (unsigned int) buf->count, |
buf | 1945 | drivers/net/ppp.c | buf->fcs = PPP_FCS (buf->fcs, chr); |
buf | 1948 | drivers/net/ppp.c | ins_char (buf, PPP_ESCAPE); |
buf | 1953 | drivers/net/ppp.c | ins_char (buf, chr); |
buf | 1962 | drivers/net/ppp.c | ppp_dev_xmit_lower (struct ppp *ppp, struct ppp_buffer *buf, |
buf | 1971 | drivers/net/ppp.c | buf->count = 0; |
buf | 1974 | drivers/net/ppp.c | ins_char (buf, PPP_FLAG); |
buf | 1977 | drivers/net/ppp.c | ins_char (buf, PPP_FLAG); |
buf | 1980 | drivers/net/ppp.c | buf->fcs = PPP_INITFCS; |
buf | 1991 | drivers/net/ppp.c | ppp_stuff_char (ppp, buf, address); |
buf | 1992 | drivers/net/ppp.c | ppp_stuff_char (ppp, buf, control); |
buf | 1998 | drivers/net/ppp.c | ppp_stuff_char (ppp, buf, proto >> 8); |
buf | 2000 | drivers/net/ppp.c | ppp_stuff_char (ppp, buf, proto); |
buf | 2008 | drivers/net/ppp.c | ppp_stuff_char (ppp, buf, *data++); |
buf | 2012 | drivers/net/ppp.c | write_fcs = buf->fcs ^ 0xFFFF; |
buf | 2013 | drivers/net/ppp.c | ppp_stuff_char (ppp, buf, write_fcs); |
buf | 2014 | drivers/net/ppp.c | ppp_stuff_char (ppp, buf, write_fcs >> 8); |
buf | 2022 | drivers/net/ppp.c | ins_char (buf, PPP_FLAG); |
buf | 2027 | drivers/net/ppp.c | ppp_print_buffer ("ppp flush", buf_base (buf), |
buf | 2028 | drivers/net/ppp.c | buf->count); |
buf | 2033 | drivers/net/ppp.c | buf->count); |
buf | 2038 | drivers/net/ppp.c | ppp->stats.ppp_obytes += buf->count; |
buf | 2039 | drivers/net/ppp.c | ppp_kick_tty (ppp, buf); |
buf | 2050 | drivers/net/ppp.c | ppp_dev_xmit_frame (struct ppp *ppp, struct ppp_buffer *buf, |
buf | 2094 | drivers/net/ppp.c | ppp_dev_xmit_lower (ppp, buf, new_data, |
buf | 2113 | drivers/net/ppp.c | ppp_dev_xmit_lower (ppp, buf, data, count, !!(proto & 0xFF00)); |
buf | 3412 | drivers/net/ppp.c | ppp_print_buffer (const u_char * name, const u_char * buf, int count) |
buf | 3421 | drivers/net/ppp.c | ppp_print_hex (line, buf, 8); |
buf | 3422 | drivers/net/ppp.c | ppp_print_char (&line[8 * 3], buf, 8); |
buf | 3425 | drivers/net/ppp.c | buf += 8; |
buf | 3430 | drivers/net/ppp.c | ppp_print_hex (line, buf, count); |
buf | 3431 | drivers/net/ppp.c | ppp_print_char (&line[8 * 3], buf, count); |
buf | 92 | drivers/net/seeq8005.c | extern void hardware_send_packet(struct device *dev, char *buf, int length); |
buf | 406 | drivers/net/seeq8005.c | unsigned char *buf = skb->data; |
buf | 408 | drivers/net/seeq8005.c | hardware_send_packet(dev, buf, length); |
buf | 534 | drivers/net/seeq8005.c | unsigned char *buf; |
buf | 544 | drivers/net/seeq8005.c | buf = skb_put(skb,pkt_len); |
buf | 546 | drivers/net/seeq8005.c | insw(SEEQ_BUFFER, buf, (pkt_len + 1) >> 1); |
buf | 549 | drivers/net/seeq8005.c | char * p = buf; |
buf | 693 | drivers/net/seeq8005.c | void hardware_send_packet(struct device * dev, char *buf, int length) |
buf | 713 | drivers/net/seeq8005.c | outsw( SEEQ_BUFFER, buf, (length +1) >> 1); |
buf | 111 | drivers/net/skeleton.c | extern void hardware_send_packet(short ioaddr, char *buf, int length); |
buf | 381 | drivers/net/skeleton.c | unsigned char *buf = skb->data; |
buf | 383 | drivers/net/skeleton.c | hardware_send_packet(ioaddr, buf, length); |
buf | 75 | drivers/net/smc-ultra.c | const unsigned char *buf, const start_page); |
buf | 308 | drivers/net/smc-ultra.c | ultra_block_output(struct device *dev, int count, const unsigned char *buf, |
buf | 316 | drivers/net/smc-ultra.c | memcpy_toio(shmem, buf, count); |
buf | 348 | drivers/net/sunlance.c | char *buf; |
buf | 360 | drivers/net/sunlance.c | buf = skb_put (skb, pkt_len); /* make room */ |
buf | 361 | drivers/net/sunlance.c | memcpy (buf, &(ib->rx_buf [i][0]), pkt_len); |
buf | 388 | drivers/net/sunlance.c | char *buf; |
buf | 401 | drivers/net/sunlance.c | buf = skb_put (skb, pkt_len); /* make room */ |
buf | 402 | drivers/net/sunlance.c | memcpy (buf, (char *) &(ib->rx_buf [lp->rx_new][0]), pkt_len); |
buf | 1279 | drivers/net/wavelan.c | hardware_send_packet(device *dev, void *buf, short length) |
buf | 1345 | drivers/net/wavelan.c | obram_write(ioaddr, buf_addr, buf, length); |
buf | 1374 | drivers/net/wavelan.c | a = (unsigned char *)buf; |
buf | 1442 | drivers/net/wavelan.c | unsigned char *buf; |
buf | 1445 | drivers/net/wavelan.c | buf = skb->data; |
buf | 1447 | drivers/net/wavelan.c | hardware_send_packet(dev, buf, length); |
buf | 57 | drivers/net/wd.c | const unsigned char *buf, const start_page); |
buf | 398 | drivers/net/wd.c | wd_block_output(struct device *dev, int count, const unsigned char *buf, |
buf | 408 | drivers/net/wd.c | memcpy_toio(shmem, buf, count); |
buf | 411 | drivers/net/wd.c | memcpy_toio(shmem, buf, count); |
buf | 361 | drivers/net/znet.c | unsigned char *buf = (void *)skb->data; |
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 | 518 | drivers/pci/pci.c | static int sprint_dev_config(struct pci_dev *dev, char *buf, int size) |
buf | 541 | drivers/pci/pci.c | len += sprintf(buf + len, " Bus %2d, device %3d, function %2d:\n", |
buf | 547 | drivers/pci/pci.c | len += sprintf(buf + len, " %s: %s %s (rev %d).\n ", |
buf | 552 | drivers/pci/pci.c | len += sprintf(buf + len, |
buf | 566 | drivers/pci/pci.c | len += sprintf(buf + len, str); |
buf | 573 | drivers/pci/pci.c | len += sprintf(buf + len, fast_b2b_capable); |
buf | 582 | drivers/pci/pci.c | len += sprintf(buf + len, BIST_capable); |
buf | 590 | drivers/pci/pci.c | len += sprintf(buf + len, "IRQ %d. ", dev->irq); |
buf | 597 | drivers/pci/pci.c | len += sprintf(buf + len, "Master Capable. "); |
buf | 599 | drivers/pci/pci.c | len += sprintf(buf + len, "Latency=%d. ", latency); |
buf | 601 | drivers/pci/pci.c | len += sprintf(buf + len, "No bursts. "); |
buf | 603 | drivers/pci/pci.c | len += sprintf(buf + len, "Min Gnt=%d.", min_gnt); |
buf | 605 | drivers/pci/pci.c | len += sprintf(buf + len, "Max Lat=%d.", max_lat); |
buf | 619 | drivers/pci/pci.c | len += sprintf(buf + len, |
buf | 643 | drivers/pci/pci.c | len += sprintf(buf + len, |
buf | 650 | drivers/pci/pci.c | len += sprintf(buf + len, "\n"); |
buf | 659 | drivers/pci/pci.c | int get_pci_list(char *buf) |
buf | 667 | drivers/pci/pci.c | len = sprintf(buf, "PCI devices found:\n"); |
buf | 670 | drivers/pci/pci.c | nprinted = sprint_dev_config(dev, buf + len, size - len); |
buf | 672 | drivers/pci/pci.c | return len + sprintf(buf + len, MSG); |
buf | 2410 | drivers/scsi/53c7,8xx.c | char buf[80]; |
buf | 2445 | drivers/scsi/53c7,8xx.c | sprintf (buf, "scsi%d : setting target %d to ", host->host_no, target); |
buf | 2446 | drivers/scsi/53c7,8xx.c | print_synchronous (buf, msg); |
buf | 2535 | drivers/scsi/53c7,8xx.c | char buf[80]; |
buf | 2536 | drivers/scsi/53c7,8xx.c | sprintf (buf, "scsi%d : target %d %s ", host->host_no, c->target, |
buf | 2538 | drivers/scsi/53c7,8xx.c | print_synchronous (buf, (unsigned char *) hostdata->msg_buf); |
buf | 3096 | drivers/scsi/53c7,8xx.c | char buf[80]; |
buf | 3105 | drivers/scsi/53c7,8xx.c | sprintf (buf, "scsi%d : bp : warning : processor not halted\b", |
buf | 3107 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, strlen(buf)); |
buf | 3113 | drivers/scsi/53c7,8xx.c | sprintf (buf, "scsi%d : bp : success : at %08x, replaces %08x %08x", |
buf | 3115 | drivers/scsi/53c7,8xx.c | len = strlen(buf); |
buf | 3118 | drivers/scsi/53c7,8xx.c | sprintf(buf + len, "%08x\n", * (u32 *) bp->addr); |
buf | 3120 | drivers/scsi/53c7,8xx.c | sprintf(buf + len, "\n"); |
buf | 3122 | drivers/scsi/53c7,8xx.c | len = strlen(buf); |
buf | 3123 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, len); |
buf | 3135 | drivers/scsi/53c7,8xx.c | char buf[80]; |
buf | 3142 | drivers/scsi/53c7,8xx.c | sprintf (buf, "scsi%d : bs : failure : NCR not halted\n", host->host_no); |
buf | 3143 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, strlen(buf)); |
buf | 3192 | drivers/scsi/53c7,8xx.c | char *buf,int count) { |
buf | 3205 | drivers/scsi/53c7,8xx.c | if (error = verify_area(VERIFY_READ,buf,count)) |
buf | 3211 | drivers/scsi/53c7,8xx.c | memcpy_from_fs(input_buf, buf, count); |
buf | 3245 | drivers/scsi/53c7,8xx.c | char *buf,int count) { |
buf | 3251 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (struct Scsi_Host *host, char *buf, size_t |
buf | 3263 | drivers/scsi/53c7,8xx.c | memcpy (hostdata->debug_write, buf, copy); |
buf | 3264 | drivers/scsi/53c7,8xx.c | buf += copy; |
buf | 3754 | drivers/scsi/53c7,8xx.c | u32 buf = cmd->use_sg ? |
buf | 3771 | drivers/scsi/53c7,8xx.c | cmd_datain[3] = buf; |
buf | 3786 | drivers/scsi/53c7,8xx.c | cmd_dataout[3] = buf; |
buf | 4351 | drivers/scsi/53c7,8xx.c | char buf[80]; /* Debugging sprintf buffer */ |
buf | 5328 | drivers/scsi/53c7,8xx.c | char buf[160], /* Temporary buffer and pointer. ICKY |
buf | 5351 | drivers/scsi/53c7,8xx.c | sprintf (buf, "%s%p: address out of range\n", |
buf | 5358 | drivers/scsi/53c7,8xx.c | sprintf(buf, "%s0x%lx (virt 0x%p) : 0x%08x 0x%08x (virt 0x%p)", |
buf | 5361 | drivers/scsi/53c7,8xx.c | tmp = buf + strlen(buf); |
buf | 5373 | drivers/scsi/53c7,8xx.c | printk ("%s", buf); |
buf | 5376 | drivers/scsi/53c7,8xx.c | size_t len = strlen(buf); |
buf | 5377 | drivers/scsi/53c7,8xx.c | debugger_kernel_write(host, buf, len); |
buf | 1041 | drivers/scsi/aha1542.c | unchar buf[8]; |
buf | 1045 | drivers/scsi/aha1542.c | for (i = 0; i < sizeof(buf); ++i) buf[i] = 0x87; |
buf | 1047 | drivers/scsi/aha1542.c | if (!aha1542_command(i, cmd, buf, sizeof(buf))) { |
buf | 1049 | drivers/scsi/aha1542.c | i, xscsi2int(buf+4), xscsi2int(buf)); |
buf | 1153 | drivers/scsi/aic7xxx.c | char buf[256]; |
buf | 1156 | drivers/scsi/aic7xxx.c | vsprintf(buf, fmt, ap); |
buf | 1157 | drivers/scsi/aic7xxx.c | printk(buf); |
buf | 1448 | drivers/scsi/aic7xxx.c | static char buf[10]; |
buf | 1452 | drivers/scsi/aic7xxx.c | strcpy(buf, "????"); |
buf | 1481 | drivers/scsi/aic7xxx.c | strncpy(buf, bp, len); |
buf | 1482 | drivers/scsi/aic7xxx.c | buf[len] = '\0'; |
buf | 1486 | drivers/scsi/aic7xxx.c | return buf; |
buf | 3043 | drivers/scsi/aic7xxx.c | unsigned char buf[4]; |
buf | 3047 | drivers/scsi/aic7xxx.c | unsigned char signature[sizeof(buf)]; |
buf | 3060 | drivers/scsi/aic7xxx.c | for (i = 0; i < sizeof(buf); i++) |
buf | 3063 | drivers/scsi/aic7xxx.c | buf[i] = inb(base + i); |
buf | 3071 | drivers/scsi/aic7xxx.c | if (!memcmp(buf, AIC7xxx[i].signature, AIC7xxx[i].n)) |
buf | 205 | drivers/scsi/aic7xxx_asm.c | static char buf[MAXLINE]; |
buf | 210 | drivers/scsi/aic7xxx_asm.c | while (fgets(buf, sizeof(buf), ifp)) { |
buf | 214 | drivers/scsi/aic7xxx_asm.c | if (buf[strlen(buf)-1] != '\n') |
buf | 217 | drivers/scsi/aic7xxx_asm.c | p = strchr(buf, '#'); |
buf | 220 | drivers/scsi/aic7xxx_asm.c | p = buf; |
buf | 41 | drivers/scsi/aic7xxx_proc.c | char buf[256]; |
buf | 44 | drivers/scsi/aic7xxx_proc.c | vsprintf(buf, fmt, ap); |
buf | 45 | drivers/scsi/aic7xxx_proc.c | printk(buf); |
buf | 782 | drivers/scsi/eata_dma.c | int get_conf_PIO(u32 base, struct get_conf *buf) |
buf | 790 | drivers/scsi/eata_dma.c | memset(buf, 0, sizeof(struct get_conf)); |
buf | 801 | drivers/scsi/eata_dma.c | for (p = (u16 *) buf; |
buf | 802 | drivers/scsi/eata_dma.c | (long)p <= ((long)buf + (sizeof(struct get_conf) / 2)); p++) { |
buf | 812 | drivers/scsi/eata_dma.c | if (htonl(EATA_SIGNATURE) == buf->signature) { |
buf | 815 | drivers/scsi/eata_dma.c | (uint) (buf->version))); |
buf | 1108 | drivers/scsi/eata_dma.c | void find_EISA(struct get_conf *buf, Scsi_Host_Template * tpnt) |
buf | 1132 | drivers/scsi/eata_dma.c | if (get_conf_PIO(base, buf) == TRUE) { |
buf | 1133 | drivers/scsi/eata_dma.c | if (buf->IRQ) { |
buf | 1135 | drivers/scsi/eata_dma.c | register_HBA(base, buf, tpnt, IS_EISA); |
buf | 1153 | drivers/scsi/eata_dma.c | void find_ISA(struct get_conf *buf, Scsi_Host_Template * tpnt) |
buf | 1159 | drivers/scsi/eata_dma.c | if (get_conf_PIO(ISAbases[i],buf) == TRUE){ |
buf | 1161 | drivers/scsi/eata_dma.c | register_HBA(ISAbases[i], buf, tpnt, IS_ISA); |
buf | 1173 | drivers/scsi/eata_dma.c | void find_PCI(struct get_conf *buf, Scsi_Host_Template * tpnt) |
buf | 1243 | drivers/scsi/eata_dma.c | if (get_conf_PIO(base, buf) == TRUE) { |
buf | 1250 | drivers/scsi/eata_dma.c | register_HBA(base, buf, tpnt, IS_PCI); |
buf | 581 | drivers/scsi/eata_pio.c | int get_pio_conf_PIO(u32 base, struct get_conf *buf) |
buf | 590 | drivers/scsi/eata_pio.c | memset(buf, 0, sizeof(struct get_conf)); |
buf | 601 | drivers/scsi/eata_pio.c | for (p = (ushort *) buf; |
buf | 602 | drivers/scsi/eata_pio.c | (long)p <= ((long)buf + (sizeof(struct get_conf) / 2)); p++) { |
buf | 611 | drivers/scsi/eata_pio.c | if (htonl(EATA_SIGNATURE) == buf->signature) { |
buf | 614 | drivers/scsi/eata_pio.c | (uint) (buf->version))); |
buf | 621 | drivers/scsi/eata_pio.c | buf->IRQ = ISAirqs[z]; |
buf | 819 | drivers/scsi/eata_pio.c | void find_pio_ISA(struct get_conf *buf, Scsi_Host_Template * tpnt) |
buf | 825 | drivers/scsi/eata_pio.c | if (get_pio_conf_PIO(ISAbases[i], buf) == TRUE){ |
buf | 826 | drivers/scsi/eata_pio.c | register_pio_HBA(ISAbases[i], buf, tpnt); |
buf | 834 | drivers/scsi/eata_pio.c | void find_pio_EISA(struct get_conf *buf, Scsi_Host_Template * tpnt) |
buf | 858 | drivers/scsi/eata_pio.c | if (get_pio_conf_PIO(base, buf) == TRUE) { |
buf | 859 | drivers/scsi/eata_pio.c | DBG(DBG_PROBE && DBG_EISA, print_pio_config(buf)); |
buf | 860 | drivers/scsi/eata_pio.c | if (buf->IRQ) { |
buf | 861 | drivers/scsi/eata_pio.c | register_pio_HBA(base, buf, tpnt); |
buf | 875 | drivers/scsi/eata_pio.c | void find_pio_PCI(struct get_conf *buf, Scsi_Host_Template * tpnt) |
buf | 934 | drivers/scsi/eata_pio.c | if (get_pio_conf_PIO(base, buf) == TRUE) { |
buf | 935 | drivers/scsi/eata_pio.c | if (buf->FORCADR) /* If the address is forced */ |
buf | 943 | drivers/scsi/eata_pio.c | register_pio_HBA(base, buf, tpnt); |
buf | 863 | drivers/scsi/fdomain.c | unsigned char buf[buflen]; |
buf | 1015 | drivers/scsi/fdomain.c | SCinit.request_buffer = SCinit.buffer = buf; |
buf | 1016 | drivers/scsi/fdomain.c | SCinit.request_bufflen = SCinit.bufflen = sizeof(buf)-1; |
buf | 1032 | drivers/scsi/fdomain.c | for (j = 8; j < (buf[4] < 32 ? buf[4] : 32); j++) |
buf | 1033 | drivers/scsi/fdomain.c | printk( "%c", buf[j] >= 20 ? buf[j] : ' ' ); |
buf | 1039 | drivers/scsi/fdomain.c | blocks = (buf[0] << 24) | (buf[1] << 16) |
buf | 1040 | drivers/scsi/fdomain.c | | (buf[2] << 8) | buf[3]; |
buf | 1041 | drivers/scsi/fdomain.c | size = (buf[4] << 24) | (buf[5] << 16) | (buf[6] << 8) | buf[7]; |
buf | 1859 | drivers/scsi/fdomain.c | unsigned char buf[512 + sizeof( int ) * 2]; |
buf | 1861 | drivers/scsi/fdomain.c | int *sizes = (int *)buf; |
buf | 1951 | drivers/scsi/fdomain.c | (void *)buf ); |
buf | 116 | drivers/scsi/in2000.c | #define port_read(port,buf,nr) \ |
buf | 117 | drivers/scsi/in2000.c | __asm__("cld;rep;insw": :"d" (port),"D" (buf),"c" (nr):"cx","di") |
buf | 119 | drivers/scsi/in2000.c | #define port_write(port,buf,nr) \ |
buf | 120 | drivers/scsi/in2000.c | __asm__("cld;rep;outsw": :"d" (port),"S" (buf),"c" (nr):"cx","si") |
buf | 163 | drivers/scsi/scsi_ioctl.c | char * buf; |
buf | 209 | drivers/scsi/scsi_ioctl.c | buf = (char *) scsi_malloc(buf_needed); |
buf | 210 | drivers/scsi/scsi_ioctl.c | if (!buf) return -ENOMEM; |
buf | 211 | drivers/scsi/scsi_ioctl.c | memset(buf, 0, buf_needed); |
buf | 213 | drivers/scsi/scsi_ioctl.c | buf = NULL; |
buf | 229 | drivers/scsi/scsi_ioctl.c | memcpy_fromfs ((void *) buf, |
buf | 245 | drivers/scsi/scsi_ioctl.c | scsi_do_cmd(SCpnt, cmd, buf, needed, scsi_ioctl_done, MAX_TIMEOUT, |
buf | 264 | drivers/scsi/scsi_ioctl.c | memcpy_tofs ((void *) cmd_in, buf, outlen); |
buf | 270 | drivers/scsi/scsi_ioctl.c | if (buf) scsi_free(buf, buf_needed); |
buf | 285 | drivers/scsi/scsi_ioctl.c | printk("%02x ", buf[i]); |
buf | 154 | drivers/scsi/scsi_proc.c | char *buf, /* command buffer */ |
buf | 171 | drivers/scsi/scsi_proc.c | parseHandle *parseInit(char *buf, char *cmdList, int cmdNum) |
buf | 176 | drivers/scsi/scsi_proc.c | if (!buf || !cmdList) /* bad input ? */ |
buf | 185 | drivers/scsi/scsi_proc.c | handle->buf = handle->bufPos = buf; /* init handle */ |
buf | 1638 | drivers/scsi/seagate.c | unsigned char buf[256 + sizeof(int) * 2], cmd[6], *data, *page; |
buf | 1650 | drivers/scsi/seagate.c | sizes = (int *) buf; |
buf | 1670 | drivers/scsi/seagate.c | if (!(result = kernel_scsi_ioctl (disk->device, SCSI_IOCTL_SEND_COMMAND, (void *) buf))) { |
buf | 1683 | drivers/scsi/seagate.c | if (!(result = kernel_scsi_ioctl (disk->device, SCSI_IOCTL_SEND_COMMAND, (void *) buf))) { |
buf | 199 | drivers/scsi/sg.c | static int sg_read(struct inode *inode,struct file *filp,char *buf,int count) |
buf | 205 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_WRITE,buf,count))) |
buf | 236 | drivers/scsi/sg.c | memcpy_tofs(buf,&device->header,sizeof(struct sg_header)); |
buf | 237 | drivers/scsi/sg.c | buf+=sizeof(struct sg_header); |
buf | 241 | drivers/scsi/sg.c | memcpy_tofs(buf,device->buff,count-sizeof(struct sg_header)); |
buf | 295 | drivers/scsi/sg.c | static int sg_write(struct inode *inode,struct file *filp,const char *buf,int count) |
buf | 306 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_READ,buf,count))) |
buf | 337 | drivers/scsi/sg.c | memcpy_fromfs(&device->header,buf,sizeof(struct sg_header)); |
buf | 340 | drivers/scsi/sg.c | buf+=sizeof(struct sg_header); |
buf | 345 | drivers/scsi/sg.c | opcode = get_user(buf); |
buf | 424 | drivers/scsi/sg.c | memcpy_fromfs(cmnd,buf,size); |
buf | 425 | drivers/scsi/sg.c | buf+=size; |
buf | 432 | drivers/scsi/sg.c | if (input_size > 0) memcpy_fromfs(device->buff, buf, input_size); |
buf | 320 | drivers/scsi/sr.c | unsigned char buf[40]; /* the buffer for the ioctl */ |
buf | 350 | drivers/scsi/sr.c | cmd = rec = &buf[8]; |
buf | 358 | drivers/scsi/sr.c | memset(buf,0,40); |
buf | 359 | drivers/scsi/sr.c | *((unsigned long*)buf) = 0x0; /* we send nothing... */ |
buf | 360 | drivers/scsi/sr.c | *((unsigned long*)buf+1) = 0x16; /* and receive 0x16 bytes */ |
buf | 365 | drivers/scsi/sr.c | SCSI_IOCTL_SEND_COMMAND, buf); |
buf | 394 | drivers/scsi/sr.c | memset(buf,0,40); |
buf | 395 | drivers/scsi/sr.c | *((unsigned long*)buf) = 0; |
buf | 396 | drivers/scsi/sr.c | *((unsigned long*)buf+1) = 4; /* we receive 4 bytes from the drive */ |
buf | 400 | drivers/scsi/sr.c | SCSI_IOCTL_SEND_COMMAND, buf); |
buf | 430 | drivers/scsi/sr.c | memset(buf,0,40); |
buf | 431 | drivers/scsi/sr.c | *((unsigned long*)buf) = 0; |
buf | 432 | drivers/scsi/sr.c | *((unsigned long*)buf+1) = 12; |
buf | 437 | drivers/scsi/sr.c | SCSI_IOCTL_SEND_COMMAND, buf); |
buf | 451 | drivers/scsi/sr.c | memset(buf,0,40); |
buf | 452 | drivers/scsi/sr.c | *((unsigned long*)buf) = 12; /* sending 12 bytes... */ |
buf | 453 | drivers/scsi/sr.c | *((unsigned long*)buf+1) = 0; |
buf | 462 | drivers/scsi/sr.c | SCSI_IOCTL_SEND_COMMAND, buf); |
buf | 476 | drivers/scsi/sr.c | memset(buf,0,40); |
buf | 477 | drivers/scsi/sr.c | *((unsigned long*)buf) = 0x0; /* we send nothing... */ |
buf | 478 | drivers/scsi/sr.c | *((unsigned long*)buf+1) = 0x0c; /* and receive 0x0c bytes */ |
buf | 483 | drivers/scsi/sr.c | SCSI_IOCTL_SEND_COMMAND, buf); |
buf | 739 | drivers/scsi/st.c | st_write(struct inode * inode, struct file * filp, const char * buf, int count) |
buf | 830 | drivers/scsi/st.c | b_point = buf; |
buf | 993 | drivers/scsi/st.c | st_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 1195 | drivers/scsi/st.c | memcpy_tofs(buf, (STp->buffer)->b_data + |
buf | 1198 | drivers/scsi/st.c | buf += transfer; |
buf | 640 | drivers/scsi/ultrastor.c | static char buf[64]; |
buf | 643 | drivers/scsi/ultrastor.c | sprintf(buf, "UltraStor 24F SCSI @ Slot %u IRQ%u\n", |
buf | 646 | drivers/scsi/ultrastor.c | sprintf(buf, "UltraStor 34F SCSI @ Port %03X BIOS %05X IRQ%u\n", |
buf | 650 | drivers/scsi/ultrastor.c | sprintf(buf, "UltraStor 14F SCSI @ Port %03X BIOS %05X IRQ%u DMA%u\n", |
buf | 653 | drivers/scsi/ultrastor.c | return buf; |
buf | 964 | drivers/scsi/wd7000.c | static unchar buf[256]; |
buf | 968 | drivers/scsi/wd7000.c | any2scsi(icb.len, sizeof(buf)); |
buf | 969 | drivers/scsi/wd7000.c | any2scsi(icb.ptr, (int) &buf); |
buf | 119 | drivers/sound/ad1848.c | static void ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
buf | 120 | drivers/sound/ad1848.c | static void ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
buf | 819 | drivers/sound/ad1848.c | ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
buf | 855 | drivers/sound/ad1848.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
buf | 871 | drivers/sound/ad1848.c | ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
buf | 906 | drivers/sound/ad1848.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
buf | 189 | drivers/sound/audio.c | audio_write (int dev, struct fileinfo *file, const snd_rw_buf * buf, int count) |
buf | 250 | drivers/sound/audio.c | memcpy_fromfs (&wr_dma_buf[dev][wr_buff_ptr[dev]], &((buf)[p]), l); |
buf | 254 | drivers/sound/audio.c | wr_dma_buf[dev], wr_buff_ptr[dev], buf, p, l); |
buf | 290 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 346 | drivers/sound/audio.c | memcpy_tofs (&((buf)[p]), dmabuf, l); |
buf | 352 | drivers/sound/configure.c | char buf[1024]; |
buf | 366 | drivers/sound/configure.c | while (fgets (buf, 1024, oldf) != NULL) |
buf | 370 | drivers/sound/configure.c | if (buf[0] != '#') |
buf | 372 | drivers/sound/configure.c | printf ("%s", buf); |
buf | 374 | drivers/sound/configure.c | strncpy (tmp, buf, 8); |
buf | 378 | drivers/sound/configure.c | rebuild_file (&buf[8]); |
buf | 383 | drivers/sound/configure.c | strncpy (tmp, buf, 8); |
buf | 388 | drivers/sound/configure.c | char *id = &buf[8]; |
buf | 405 | drivers/sound/configure.c | printf ("%s", buf); |
buf | 411 | drivers/sound/configure.c | char *id = &buf[8]; |
buf | 436 | drivers/sound/configure.c | printf ("%s", buf); |
buf | 150 | drivers/sound/dev_table.h | void (*output_block) (int dev, unsigned long buf, |
buf | 152 | drivers/sound/dev_table.h | void (*start_input) (int dev, unsigned long buf, |
buf | 480 | drivers/sound/dmabuf.c | DMAbuf_getrdbuffer (int dev, char **buf, int *len, int dontblock) |
buf | 549 | drivers/sound/dmabuf.c | *buf = &dmap->raw_buf[dmap->qhead * dmap->fragment_size + dmap->counts[dmap->qhead]]; |
buf | 918 | drivers/sound/dmabuf.c | DMAbuf_getwrbuffer (int dev, char **buf, int *size, int dontblock) |
buf | 1018 | drivers/sound/dmabuf.c | *buf = dmap->raw_buf + dmap->qtail * dmap->fragment_size; |
buf | 1446 | drivers/sound/dmabuf.c | DMAbuf_getwrbuffer (int dev, char **buf, int *size, int dontblock) |
buf | 1452 | drivers/sound/dmabuf.c | DMAbuf_getrdbuffer (int dev, char **buf, int *len, int dontblock) |
buf | 2248 | drivers/sound/gus_wave.c | gus_transfer_output_block (int dev, unsigned long buf, |
buf | 2284 | drivers/sound/gus_wave.c | DMAbuf_start_dma (dev, buf + (chn * count), count, DMA_MODE_WRITE); |
buf | 2336 | drivers/sound/gus_wave.c | gus_sampling_output_block (int dev, unsigned long buf, int total_count, |
buf | 2339 | drivers/sound/gus_wave.c | pcm_current_buf = buf; |
buf | 2343 | drivers/sound/gus_wave.c | gus_transfer_output_block (dev, buf, total_count, intrflag, 0); |
buf | 2347 | drivers/sound/gus_wave.c | gus_sampling_start_input (int dev, unsigned long buf, int count, |
buf | 2356 | drivers/sound/gus_wave.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
buf | 20 | drivers/sound/hex2hex.h | unsigned char buf[MAX_SIZE]; |
buf | 68 | drivers/sound/hex2hex.h | buf[addr++] = c; |
buf | 90 | drivers/sound/hex2hex.h | fprintf(outf, "0x%02x", buf[i]); |
buf | 339 | drivers/sound/midibuf.c | MIDIbuf_write (int dev, struct fileinfo *file, const snd_rw_buf * buf, int count) |
buf | 394 | drivers/sound/midibuf.c | memcpy_fromfs ((char *) &tmp_data, &((buf)[c]), 1); |
buf | 407 | drivers/sound/midibuf.c | MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 457 | drivers/sound/midibuf.c | memcpy_tofs (&((buf)[c]), (char *) &tmp_data, 1); |
buf | 265 | drivers/sound/pas2_pcm.c | pas_pcm_output_block (int dev, unsigned long buf, int count, |
buf | 270 | drivers/sound/pas2_pcm.c | TRACE (printk ("pas2_pcm.c: static void pas_pcm_output_block(char *buf = %P, int count = %X)\n", buf, count)); |
buf | 290 | drivers/sound/pas2_pcm.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
buf | 314 | drivers/sound/pas2_pcm.c | pas_pcm_start_input (int dev, unsigned long buf, int count, |
buf | 320 | drivers/sound/pas2_pcm.c | TRACE (printk ("pas2_pcm.c: static void pas_pcm_start_input(char *buf = %P, int count = %X)\n", buf, count)); |
buf | 337 | drivers/sound/pas2_pcm.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
buf | 94 | drivers/sound/patmgr.c | pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 134 | drivers/sound/patmgr.c | memcpy_tofs (&((buf)[0]), (char *) mbox[dev], count); |
buf | 149 | drivers/sound/patmgr.c | pmgr_write (int dev, struct fileinfo *file, const snd_rw_buf * buf, int count) |
buf | 159 | drivers/sound/patmgr.c | memcpy_fromfs ((char *) mbox[dev], &((buf)[0]), 4); |
buf | 170 | drivers/sound/patmgr.c | buf, 4, count, 1); |
buf | 189 | drivers/sound/patmgr.c | memcpy_fromfs (&((char *) mbox[dev])[4], &((buf)[4]), count - 4); |
buf | 481 | drivers/sound/pss.c | download_boot_block (void *dev_info, copr_buffer * buf) |
buf | 483 | drivers/sound/pss.c | if (buf->len <= 0 || buf->len > sizeof (buf->data)) |
buf | 486 | drivers/sound/pss.c | if (!pss_download_boot (devc, buf->data, buf->len, buf->flags)) |
buf | 510 | drivers/sound/pss.c | copr_buffer *buf; |
buf | 513 | drivers/sound/pss.c | buf = (copr_buffer *) kmalloc (sizeof (copr_buffer), GFP_KERNEL); |
buf | 514 | drivers/sound/pss.c | if (buf == NULL) |
buf | 517 | drivers/sound/pss.c | memcpy_fromfs ((char *) buf, &(((char *) arg)[0]), sizeof (*buf)); |
buf | 518 | drivers/sound/pss.c | err = download_boot_block (dev_info, buf); |
buf | 519 | drivers/sound/pss.c | kfree (buf); |
buf | 526 | drivers/sound/pss.c | copr_debug_buf buf; |
buf | 530 | drivers/sound/pss.c | memcpy_fromfs ((char *) &buf, &(((char *) arg)[0]), sizeof (buf)); |
buf | 540 | drivers/sound/pss.c | if (!pss_put_dspword (devc, (unsigned short) (buf.parm1 & 0xffff))) |
buf | 552 | drivers/sound/pss.c | buf.parm1 = tmp; |
buf | 555 | drivers/sound/pss.c | memcpy_tofs ((&((char *) arg)[0]), &buf, sizeof (buf)); |
buf | 562 | drivers/sound/pss.c | copr_debug_buf buf; |
buf | 566 | drivers/sound/pss.c | memcpy_fromfs ((char *) &buf, &(((char *) arg)[0]), sizeof (buf)); |
buf | 576 | drivers/sound/pss.c | if (!pss_put_dspword (devc, (unsigned short) (buf.parm1 & 0xffff))) |
buf | 582 | drivers/sound/pss.c | tmp = (unsigned int) buf.parm2 & 0xffff; |
buf | 596 | drivers/sound/pss.c | copr_debug_buf buf; |
buf | 600 | drivers/sound/pss.c | memcpy_fromfs ((char *) &buf, &(((char *) arg)[0]), sizeof (buf)); |
buf | 610 | drivers/sound/pss.c | if (!pss_put_dspword (devc, (unsigned short) (buf.parm1 & 0xffff))) |
buf | 616 | drivers/sound/pss.c | tmp = ((unsigned int) buf.parm2 >> 8) & 0xffff; |
buf | 623 | drivers/sound/pss.c | tmp = (unsigned int) buf.parm2 & 0x00ff; |
buf | 637 | drivers/sound/pss.c | copr_debug_buf buf; |
buf | 641 | drivers/sound/pss.c | memcpy_fromfs ((char *) &buf, &(((char *) arg)[0]), sizeof (buf)); |
buf | 651 | drivers/sound/pss.c | if (!pss_put_dspword (devc, (unsigned short) (buf.parm1 & 0xffff))) |
buf | 663 | drivers/sound/pss.c | buf.parm1 = tmp << 8; |
buf | 671 | drivers/sound/pss.c | buf.parm1 |= tmp & 0x00ff; |
buf | 675 | drivers/sound/pss.c | memcpy_tofs ((&((char *) arg)[0]), &buf, sizeof (buf)); |
buf | 62 | drivers/sound/sb16_dsp.c | static void sb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
buf | 63 | drivers/sound/sb16_dsp.c | static void sb16_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
buf | 264 | drivers/sound/sb16_dsp.c | sb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
buf | 274 | drivers/sound/sb16_dsp.c | printk ("output_block: %x %d %d\n", buf, count, intrflag); |
buf | 305 | drivers/sound/sb16_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
buf | 323 | drivers/sound/sb16_dsp.c | sb16_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
buf | 333 | drivers/sound/sb16_dsp.c | printk ("start_input: %x %d %d\n", buf, count, intrflag); |
buf | 364 | drivers/sound/sb16_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
buf | 396 | drivers/sound/sb_dsp.c | sb_dsp_output_block (int dev, unsigned long buf, int count, |
buf | 404 | drivers/sound/sb_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
buf | 451 | drivers/sound/sb_dsp.c | sb_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, |
buf | 469 | drivers/sound/sb_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
buf | 104 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 117 | drivers/sound/sequencer.c | return pmgr_read (dev - 1, file, buf, count); |
buf | 158 | drivers/sound/sequencer.c | memcpy_tofs (&((buf)[p]), (char *) &iqueue[iqhead * IEV_SZ], ev_len); |
buf | 265 | drivers/sound/sequencer.c | sequencer_write (int dev, struct fileinfo *file, const snd_rw_buf * buf, int count) |
buf | 282 | drivers/sound/sequencer.c | return pmgr_write (dev - 1, file, buf, count); |
buf | 288 | drivers/sound/sequencer.c | memcpy_fromfs ((char *) event, &((buf)[p]), 4); |
buf | 302 | drivers/sound/sequencer.c | err = synth_devs[dev]->load_patch (dev, *(short *) &event[0], buf, p + 4, c, 0); |
buf | 326 | drivers/sound/sequencer.c | memcpy_fromfs ((char *) &event[4], &((buf)[p + 4]), 4); |
buf | 836 | drivers/sound/sequencer.c | unsigned char *buf = &event[2]; |
buf | 848 | drivers/sound/sequencer.c | for (i = 0; i < 6 && buf[i] != 0xff; i++) |
buf | 852 | drivers/sound/sequencer.c | synth_devs[dev]->send_sysex (dev, buf, l); |
buf | 7 | drivers/sound/sound_calls.h | int DMAbuf_getwrbuffer(int dev, char **buf, int *size, int dontblock); |
buf | 8 | drivers/sound/sound_calls.h | int DMAbuf_getrdbuffer(int dev, char **buf, int *len, int dontblock); |
buf | 26 | drivers/sound/sound_calls.h | int audio_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 27 | drivers/sound/sound_calls.h | int audio_write (int dev, struct fileinfo *file, const snd_rw_buf *buf, int count); |
buf | 41 | drivers/sound/sound_calls.h | int sequencer_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 42 | drivers/sound/sound_calls.h | int sequencer_write (int dev, struct fileinfo *file, const snd_rw_buf *buf, int count); |
buf | 61 | drivers/sound/sound_calls.h | int MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 62 | drivers/sound/sound_calls.h | int MIDIbuf_write (int dev, struct fileinfo *file, const snd_rw_buf *buf, int count); |
buf | 68 | drivers/sound/sound_calls.h | void MIDIbuf_bytes_received(int dev, unsigned char *buf, int count); |
buf | 90 | drivers/sound/sound_calls.h | int sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 91 | drivers/sound/sound_calls.h | int sound_write_sw (int dev, struct fileinfo *file, const snd_rw_buf *buf, int count); |
buf | 197 | drivers/sound/sound_calls.h | int pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count); |
buf | 198 | drivers/sound/sound_calls.h | int pmgr_write (int dev, struct fileinfo *file, const snd_rw_buf * buf, int count); |
buf | 239 | drivers/sound/sound_calls.h | int pss_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 240 | drivers/sound/sound_calls.h | int pss_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 76 | drivers/sound/sound_switch.c | char buf[11]; |
buf | 82 | drivers/sound/sound_switch.c | buf[10] = 0; |
buf | 89 | drivers/sound/sound_switch.c | buf[9 - l] = hx[v]; |
buf | 96 | drivers/sound/sound_switch.c | memcpy (&status_buf[status_len], &buf[10 - l], l); |
buf | 310 | drivers/sound/sound_switch.c | read_status (snd_rw_buf * buf, int count) |
buf | 325 | drivers/sound/sound_switch.c | memcpy_tofs (&((buf)[0]), &status_buf[status_ptr], l); |
buf | 332 | drivers/sound/sound_switch.c | sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 339 | drivers/sound/sound_switch.c | return read_status (buf, count); |
buf | 346 | drivers/sound/sound_switch.c | return audio_read (dev, file, buf, count); |
buf | 353 | drivers/sound/sound_switch.c | return sequencer_read (dev, file, buf, count); |
buf | 359 | drivers/sound/sound_switch.c | return MIDIbuf_read (dev, file, buf, count); |
buf | 370 | drivers/sound/sound_switch.c | sound_write_sw (int dev, struct fileinfo *file, const snd_rw_buf * buf, int count) |
buf | 381 | drivers/sound/sound_switch.c | return sequencer_write (dev, file, buf, count); |
buf | 389 | drivers/sound/sound_switch.c | return audio_write (dev, file, buf, count); |
buf | 395 | drivers/sound/sound_switch.c | return MIDIbuf_write (dev, file, buf, count); |
buf | 76 | drivers/sound/soundcard.c | sound_read (struct inode *inode, struct file *file, char *buf, int count) |
buf | 84 | drivers/sound/soundcard.c | return sound_read_sw (dev, &files[dev], buf, count); |
buf | 88 | drivers/sound/soundcard.c | sound_write (struct inode *inode, struct file *file, const char *buf, int count) |
buf | 96 | drivers/sound/soundcard.c | return sound_write_sw (dev, &files[dev], buf, count); |
buf | 232 | drivers/sound/sscape.c | unsigned char buf[10]; |
buf | 234 | drivers/sound/sscape.c | buf[0] = (unsigned char) (cmd & 0xff); |
buf | 236 | drivers/sound/sscape.c | return host_write (devc, buf, 1); |
buf | 242 | drivers/sound/sscape.c | unsigned char buf[10]; |
buf | 244 | drivers/sound/sscape.c | buf[0] = (unsigned char) (cmd & 0xff); |
buf | 245 | drivers/sound/sscape.c | buf[1] = (unsigned char) (parm1 & 0xff); |
buf | 247 | drivers/sound/sscape.c | return host_write (devc, buf, 2); |
buf | 253 | drivers/sound/sscape.c | unsigned char buf[10]; |
buf | 255 | drivers/sound/sscape.c | buf[0] = (unsigned char) (cmd & 0xff); |
buf | 256 | drivers/sound/sscape.c | buf[1] = (unsigned char) (parm1 & 0xff); |
buf | 257 | drivers/sound/sscape.c | buf[2] = (unsigned char) (parm2 & 0xff); |
buf | 259 | drivers/sound/sscape.c | return host_write (devc, buf, 3); |
buf | 372 | drivers/sound/sscape.c | do_dma (struct sscape_info *devc, int dma_chan, unsigned long buf, int blk_size, int mode) |
buf | 383 | drivers/sound/sscape.c | buf, |
buf | 654 | drivers/sound/sscape.c | download_boot_block (void *dev_info, copr_buffer * buf) |
buf | 656 | drivers/sound/sscape.c | if (buf->len <= 0 || buf->len > sizeof (buf->data)) |
buf | 659 | drivers/sound/sscape.c | if (!sscape_download_boot (devc, buf->data, buf->len, buf->flags)) |
buf | 681 | drivers/sound/sscape.c | copr_buffer *buf; |
buf | 684 | drivers/sound/sscape.c | buf = (copr_buffer *) kmalloc (sizeof (copr_buffer), GFP_KERNEL); |
buf | 685 | drivers/sound/sscape.c | if (buf == NULL) |
buf | 687 | drivers/sound/sscape.c | memcpy_fromfs ((char *) buf, &(((char *) arg)[0]), sizeof (*buf)); |
buf | 688 | drivers/sound/sscape.c | err = download_boot_block (dev_info, buf); |
buf | 689 | drivers/sound/sscape.c | kfree (buf); |
buf | 823 | drivers/sound/sscape.c | sscape_audio_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
buf | 828 | drivers/sound/sscape.c | sscape_audio_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
buf | 373 | fs/binfmt_elf.c | elf_ex = *((struct elfhdr *) bprm->buf); /* exec-header */ |
buf | 465 | fs/binfmt_elf.c | retval = read_exec(interpreter_inode,0,bprm->buf,128, 1); |
buf | 468 | fs/binfmt_elf.c | interp_ex = *((struct exec *) bprm->buf); /* exec-header */ |
buf | 469 | fs/binfmt_elf.c | interp_elf_ex = *((struct elfhdr *) bprm->buf); /* exec-header */ |
buf | 23 | fs/block_dev.c | int block_write(struct inode * inode, struct file * filp, const char * buf, int count) |
buf | 123 | fs/block_dev.c | memcpy_fromfs(p,buf,chars); |
buf | 125 | fs/block_dev.c | buf += chars; |
buf | 160 | fs/block_dev.c | int block_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 291 | fs/block_dev.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 293 | fs/block_dev.c | buf += chars; |
buf | 296 | fs/block_dev.c | put_user(0,buf++); |
buf | 781 | fs/buffer.c | void set_writetime(struct buffer_head * buf, int flag) |
buf | 785 | fs/buffer.c | if (buffer_dirty(buf)) { |
buf | 789 | fs/buffer.c | if(!buf->b_flushtime || buf->b_flushtime > newtime) |
buf | 790 | fs/buffer.c | buf->b_flushtime = newtime; |
buf | 792 | fs/buffer.c | buf->b_flushtime = 0; |
buf | 797 | fs/buffer.c | void refile_buffer(struct buffer_head * buf) |
buf | 801 | fs/buffer.c | if(buf->b_dev == B_FREE) { |
buf | 805 | fs/buffer.c | if (buffer_dirty(buf)) |
buf | 807 | fs/buffer.c | else if ((mem_map[MAP_NR((unsigned long) buf->b_data)].count > 1) || buffer_protected(buf)) |
buf | 809 | fs/buffer.c | else if (buffer_locked(buf)) |
buf | 811 | fs/buffer.c | else if (buf->b_list == BUF_SHARED) |
buf | 815 | fs/buffer.c | if(dispose == BUF_CLEAN) buf->b_lru_time = jiffies; |
buf | 816 | fs/buffer.c | if(dispose != buf->b_list) { |
buf | 818 | fs/buffer.c | buf->b_lru_time = jiffies; |
buf | 820 | fs/buffer.c | (buf->b_flushtime - buf->b_lru_time) <= bdf_prm.b_un.age_super) |
buf | 822 | fs/buffer.c | remove_from_queues(buf); |
buf | 823 | fs/buffer.c | buf->b_list = dispose; |
buf | 824 | fs/buffer.c | insert_into_queues(buf); |
buf | 835 | fs/buffer.c | void __brelse(struct buffer_head * buf) |
buf | 837 | fs/buffer.c | wait_on_buffer(buf); |
buf | 840 | fs/buffer.c | set_writetime(buf, 0); |
buf | 841 | fs/buffer.c | refile_buffer(buf); |
buf | 843 | fs/buffer.c | if (buf->b_count) { |
buf | 844 | fs/buffer.c | if (!--buf->b_count) |
buf | 856 | fs/buffer.c | void __bforget(struct buffer_head * buf) |
buf | 858 | fs/buffer.c | wait_on_buffer(buf); |
buf | 859 | fs/buffer.c | mark_buffer_clean(buf); |
buf | 860 | fs/buffer.c | clear_bit(BH_Protected, &buf->b_state); |
buf | 861 | fs/buffer.c | buf->b_count--; |
buf | 862 | fs/buffer.c | remove_from_hash_queue(buf); |
buf | 863 | fs/buffer.c | buf->b_dev = NODEV; |
buf | 864 | fs/buffer.c | refile_buffer(buf); |
buf | 679 | fs/exec.c | memset(bprm.buf,0,sizeof(bprm.buf)); |
buf | 680 | fs/exec.c | retval = read_exec(bprm.inode,0,bprm.buf,128,1); |
buf | 683 | fs/exec.c | if ((bprm.buf[0] == '#') && (bprm.buf[1] == '!') && (!sh_bang)) { |
buf | 692 | fs/exec.c | bprm.buf[127] = '\0'; |
buf | 693 | fs/exec.c | if ((cp = strchr(bprm.buf, '\n')) == NULL) |
buf | 694 | fs/exec.c | cp = bprm.buf+127; |
buf | 696 | fs/exec.c | while (cp > bprm.buf) { |
buf | 703 | fs/exec.c | for (cp = bprm.buf+2; (*cp == ' ') || (*cp == '\t'); cp++); |
buf | 759 | fs/exec.c | struct exec * eh = (struct exec *) bprm.buf; |
buf | 807 | fs/exec.c | sprintf(modname, "binfmt-%hd", *(short*)(&bprm.buf)); |
buf | 846 | fs/exec.c | ex = *((struct exec *) bprm->buf); /* exec-header */ |
buf | 23 | fs/ext/dir.c | static int ext_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 74 | fs/ext/file.c | static int ext_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 170 | fs/ext/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 172 | fs/ext/file.c | buf += chars; |
buf | 175 | fs/ext/file.c | put_user(0,buf++); |
buf | 199 | fs/ext/file.c | static int ext_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
buf | 250 | fs/ext/file.c | memcpy_fromfs(p,buf,c); |
buf | 251 | fs/ext/file.c | buf += c; |
buf | 157 | fs/ext/inode.c | void ext_statfs (struct super_block *sb, struct statfs *buf, int bufsiz) |
buf | 169 | fs/ext/inode.c | memcpy_tofs(buf, &tmp, bufsiz); |
buf | 27 | fs/ext2/dir.c | char * buf, int count) |
buf | 84 | fs/ext2/file.c | const char * buf, int count) |
buf | 156 | fs/ext2/file.c | memcpy_fromfs (bh->b_data + offset, buf, c); |
buf | 161 | fs/ext2/file.c | buf += c; |
buf | 706 | fs/ext2/super.c | void ext2_statfs (struct super_block * sb, struct statfs * buf, int bufsiz) |
buf | 737 | fs/ext2/super.c | memcpy_tofs(buf, &tmp, bufsiz); |
buf | 189 | fs/hpfs/hpfs_fs.c | char *buf, int count); |
buf | 743 | fs/hpfs/hpfs_fs.c | static void hpfs_statfs(struct super_block *s, struct statfs *buf, int bufsiz) |
buf | 767 | fs/hpfs/hpfs_fs.c | memcpy_tofs(buf, &tmp, bufsiz); |
buf | 882 | fs/hpfs/hpfs_fs.c | char *buf, int count) |
buf | 898 | fs/hpfs/hpfs_fs.c | start = buf; |
buf | 933 | fs/hpfs/hpfs_fs.c | memcpy_tofs(buf, block + r, n); |
buf | 940 | fs/hpfs/hpfs_fs.c | n0 = convcpy_tofs(buf, block + r, n); |
buf | 951 | fs/hpfs/hpfs_fs.c | buf += n0; |
buf | 955 | fs/hpfs/hpfs_fs.c | return buf - start; |
buf | 1583 | fs/hpfs/hpfs_fs.c | char *buf, int count) |
buf | 400 | fs/isofs/inode.c | void isofs_statfs (struct super_block *sb, struct statfs *buf, int bufsiz) |
buf | 412 | fs/isofs/inode.c | memcpy_tofs(buf, &tmp, bufsiz); |
buf | 17 | fs/minix/dir.c | static int minix_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 69 | fs/minix/file.c | static int minix_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
buf | 110 | fs/minix/file.c | memcpy_fromfs(p,buf,c); |
buf | 117 | fs/minix/file.c | buf += c; |
buf | 240 | fs/minix/inode.c | void minix_statfs(struct super_block *sb, struct statfs *buf, int bufsiz) |
buf | 252 | fs/minix/inode.c | memcpy_tofs(buf, &tmp, bufsiz); |
buf | 23 | fs/msdos/dir.c | static int msdos_dir_read(struct inode * inode,struct file * filp, char * buf,int count) |
buf | 156 | fs/msdos/file.c | char *buf, |
buf | 160 | fs/msdos/file.c | char *start = buf; |
buf | 161 | fs/msdos/file.c | char *end = buf + count; |
buf | 213 | fs/msdos/file.c | && buf < end){ |
buf | 238 | fs/msdos/file.c | size = MIN(size,end-buf); |
buf | 239 | fs/msdos/file.c | memcpy_tofs(buf,data,size); |
buf | 240 | fs/msdos/file.c | buf += size; |
buf | 243 | fs/msdos/file.c | for (; size && buf < end; size--) { |
buf | 250 | fs/msdos/file.c | put_user(ch,buf++); |
buf | 256 | fs/msdos/file.c | PRINTK (("--- %d -> %d\n",count,(int)(buf-start))); |
buf | 258 | fs/msdos/file.c | if (start == buf) return -EIO; |
buf | 261 | fs/msdos/file.c | return buf-start; |
buf | 270 | fs/msdos/file.c | const char *buf, |
buf | 299 | fs/msdos/file.c | for (start = buf; count || carry; count -= size) { |
buf | 324 | fs/msdos/file.c | memcpy_fromfs(bh->b_data+offset,buf,written = size); |
buf | 325 | fs/msdos/file.c | buf += size; |
buf | 336 | fs/msdos/file.c | if ((ch = get_user(buf++)) == '\n') { |
buf | 357 | fs/msdos/file.c | if (start == buf) |
buf | 362 | fs/msdos/file.c | return buf-start; |
buf | 320 | fs/msdos/inode.c | void msdos_statfs(struct super_block *sb,struct statfs *buf, int bufsiz) |
buf | 343 | fs/msdos/inode.c | memcpy_tofs(buf, &tmp, bufsiz); |
buf | 26 | fs/ncpfs/dir.c | ncp_dir_read(struct inode *inode, struct file *filp, char *buf, int count); |
buf | 127 | fs/ncpfs/dir.c | ncp_dir_read(struct inode *inode, struct file *filp, char *buf, int count) |
buf | 83 | fs/ncpfs/file.c | ncp_file_read(struct inode *inode, struct file *file, char *buf, int count) |
buf | 133 | fs/ncpfs/file.c | pos, to_read, buf, &read_this_time) != 0) |
buf | 139 | fs/ncpfs/file.c | buf += read_this_time; |
buf | 163 | fs/ncpfs/file.c | ncp_file_write(struct inode *inode, struct file *file, const char *buf, |
buf | 213 | fs/ncpfs/file.c | pos, to_write, buf, &written_this_time) != 0) |
buf | 219 | fs/ncpfs/file.c | buf += written_this_time; |
buf | 30 | fs/ncpfs/inode.c | static void ncp_statfs(struct super_block *sb, struct statfs *buf, int bufsiz); |
buf | 361 | fs/ncpfs/inode.c | ncp_statfs(struct super_block *sb, struct statfs *buf, int bufsiz) |
buf | 379 | fs/ncpfs/inode.c | memcpy_tofs(buf, &tmp, bufsiz); |
buf | 21 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *, struct file *filp, char *buf, |
buf | 74 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *inode, struct file *filp, char *buf, |
buf | 72 | fs/nfs/file.c | char * buf; /* data */ |
buf | 96 | fs/nfs/file.c | static int nfs_file_read(struct inode *inode, struct file *file, char *buf, |
buf | 130 | fs/nfs/file.c | memcpy_tofs(buf, cache[i].buf + pos - cache[i].file_pos, count); |
buf | 139 | fs/nfs/file.c | pos, n, buf, &fattr, 1); |
buf | 143 | fs/nfs/file.c | buf += result; |
buf | 152 | fs/nfs/file.c | data = buf; |
buf | 170 | fs/nfs/file.c | memcpy_tofs(buf, data, hunk); |
buf | 175 | fs/nfs/file.c | if (cache[tail].buf) |
buf | 176 | fs/nfs/file.c | kfree_s(cache[tail].buf, cache[tail].buf_size); |
buf | 177 | fs/nfs/file.c | cache[tail].buf = data; |
buf | 191 | fs/nfs/file.c | static int nfs_file_write(struct inode *inode, struct file *file, const char *buf, |
buf | 225 | fs/nfs/file.c | pos, hunk, buf, &fattr); |
buf | 229 | fs/nfs/file.c | buf += hunk; |
buf | 178 | fs/nfs/inode.c | void nfs_statfs(struct super_block *sb, struct statfs *buf, int bufsiz) |
buf | 198 | fs/nfs/inode.c | memcpy_tofs(buf, &tmp, bufsiz); |
buf | 410 | fs/nfs/nfsroot.c | char buf[NFS_MAXPATHLEN]; |
buf | 431 | fs/nfs/nfsroot.c | strncpy(buf, name, 255); |
buf | 432 | fs/nfs/nfsroot.c | if ((options = strchr(buf, ','))) |
buf | 434 | fs/nfs/nfsroot.c | if (strlen(buf) + strlen(cp) > NFS_MAXPATHLEN) { |
buf | 438 | fs/nfs/nfsroot.c | sprintf(nfs_path, buf, cp); |
buf | 252 | fs/nfs/rpcsock.c | iov.iov_base=rovr->buf; |
buf | 312 | fs/nfs/rpcsock.c | slot->buf = rcvbuf; |
buf | 25 | fs/open.c | asmlinkage int sys_statfs(const char * path, struct statfs * buf) |
buf | 30 | fs/open.c | error = verify_area(VERIFY_WRITE, buf, sizeof(struct statfs)); |
buf | 40 | fs/open.c | inode->i_sb->s_op->statfs(inode->i_sb, buf, sizeof(struct statfs)); |
buf | 45 | fs/open.c | asmlinkage int sys_fstatfs(unsigned int fd, struct statfs * buf) |
buf | 51 | fs/open.c | error = verify_area(VERIFY_WRITE, buf, sizeof(struct statfs)); |
buf | 60 | fs/open.c | inode->i_sb->s_op->statfs(inode->i_sb, buf, sizeof(struct statfs)); |
buf | 25 | fs/pipe.c | static int pipe_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 60 | fs/pipe.c | memcpy_tofs(buf, pipebuf, chars ); |
buf | 61 | fs/pipe.c | buf += chars; |
buf | 72 | fs/pipe.c | static int pipe_write(struct inode * inode, struct file * filp, const char * buf, int count) |
buf | 109 | fs/pipe.c | memcpy_fromfs(pipebuf, buf, chars ); |
buf | 110 | fs/pipe.c | buf += chars; |
buf | 124 | fs/pipe.c | static int bad_pipe_r(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 129 | fs/pipe.c | static int bad_pipe_w(struct inode * inode, struct file * filp, const char * buf, int count) |
buf | 203 | fs/pipe.c | static int connect_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 216 | fs/pipe.c | return pipe_read(inode,filp,buf,count); |
buf | 62 | fs/proc/array.c | static int read_core(struct inode * inode, struct file * file,char * buf, int count) |
buf | 96 | fs/proc/array.c | memcpy_tofs(buf,(void *) pnt, count1); |
buf | 97 | fs/proc/array.c | buf += count1; |
buf | 104 | fs/proc/array.c | put_user(0,buf); |
buf | 105 | fs/proc/array.c | buf++; |
buf | 110 | fs/proc/array.c | memcpy_tofs(buf, (void *) (PAGE_OFFSET + p - PAGE_SIZE), count); |
buf | 135 | fs/proc/array.c | static int read_profile(struct inode *inode, struct file *file, char *buf, int count) |
buf | 151 | fs/proc/array.c | put_user(*((char *)(&sample_step)+p),buf); |
buf | 152 | fs/proc/array.c | buf++; p++; count--; read++; |
buf | 155 | fs/proc/array.c | memcpy_tofs(buf,(void *)pnt,count); |
buf | 162 | fs/proc/array.c | static int write_profile(struct inode * inode, struct file * file, const char * buf, int count) |
buf | 685 | fs/proc/array.c | static int read_maps (int pid, struct file * file, char * buf, int count) |
buf | 708 | fs/proc/array.c | destptr = buf; |
buf | 772 | fs/proc/array.c | return destptr-buf; |
buf | 874 | fs/proc/array.c | static int array_read(struct inode * inode, struct file * file,char * buf, int count) |
buf | 900 | fs/proc/array.c | memcpy_tofs(buf, start, length); |
buf | 912 | fs/proc/array.c | memcpy_tofs(buf, (char *) page + file->f_pos, count); |
buf | 952 | fs/proc/array.c | static int arraylong_read (struct inode * inode, struct file * file, char * buf, int count) |
buf | 962 | fs/proc/array.c | return read_maps(pid, file, buf, count); |
buf | 124 | fs/proc/fd.c | char buf[NUMBUF]; |
buf | 164 | fs/proc/fd.c | buf[j] = '0' + (i % 10); |
buf | 169 | fs/proc/fd.c | if (filldir(dirent, buf+j, NUMBUF-j, fd+2, ino) < 0) |
buf | 118 | fs/proc/inode.c | void proc_statfs(struct super_block *sb, struct statfs *buf, int bufsiz) |
buf | 130 | fs/proc/inode.c | memcpy_tofs(buf, &tmp, bufsiz); |
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 | 142 | fs/proc/link.c | char buf[64]; |
buf | 156 | fs/proc/link.c | i = sprintf(buf,"[%04x]:%u", dev, ino); |
buf | 161 | fs/proc/link.c | put_user(buf[i++],buffer++); |
buf | 53 | fs/proc/mem.c | static int mem_read(struct inode * inode, struct file * file,char * buf, int count) |
buf | 80 | fs/proc/mem.c | tmp = buf; |
buf | 113 | fs/proc/mem.c | return tmp-buf; |
buf | 118 | fs/proc/mem.c | static int mem_write(struct inode * inode, struct file * file,char * buf, int count) |
buf | 142 | fs/proc/mem.c | tmp = buf; |
buf | 177 | fs/proc/mem.c | if (tmp != buf) |
buf | 178 | fs/proc/mem.c | return tmp-buf; |
buf | 41 | fs/proc/net.c | char * buf, int count) |
buf | 77 | fs/proc/net.c | memcpy_tofs(buf+copied, start, length); |
buf | 548 | fs/proc/root.c | char buf[NUMBUF]; |
buf | 570 | fs/proc/root.c | buf[j] = '0' + (i % 10); |
buf | 574 | fs/proc/root.c | if (filldir(dirent, buf+j, NUMBUF-j, filp->f_pos, (pid << 16) + PROC_PID_INO) < 0) |
buf | 33 | fs/proc/scsi.c | char * buf, int count); |
buf | 35 | fs/proc/scsi.c | const char * buf, int count); |
buf | 105 | fs/proc/scsi.c | char * buf, int count) |
buf | 148 | fs/proc/scsi.c | memcpy_tofs(buf + copied, start, length); |
buf | 164 | fs/proc/scsi.c | const char * buf, int count) |
buf | 176 | fs/proc/scsi.c | memcpy_fromfs(page, buf, count); |
buf | 103 | fs/read_write.c | asmlinkage int sys_read(unsigned int fd,char * buf,unsigned int count) |
buf | 117 | fs/read_write.c | error = verify_area(VERIFY_WRITE,buf,count); |
buf | 120 | fs/read_write.c | return file->f_op->read(inode,file,buf,count); |
buf | 123 | fs/read_write.c | asmlinkage int sys_write(unsigned int fd,char * buf,unsigned int count) |
buf | 138 | fs/read_write.c | error = verify_area(VERIFY_READ,buf,count); |
buf | 142 | fs/read_write.c | written = file->f_op->write(inode,file,buf,count); |
buf | 41 | fs/readdir.c | struct readdir_callback * buf = (struct readdir_callback *) __buf; |
buf | 44 | fs/readdir.c | if (buf->count) |
buf | 46 | fs/readdir.c | buf->count++; |
buf | 47 | fs/readdir.c | dirent = buf->dirent; |
buf | 60 | fs/readdir.c | struct readdir_callback buf; |
buf | 69 | fs/readdir.c | buf.count = 0; |
buf | 70 | fs/readdir.c | buf.dirent = dirent; |
buf | 71 | fs/readdir.c | error = file->f_op->readdir(file->f_inode, file, &buf, fillonedir); |
buf | 74 | fs/readdir.c | return buf.count; |
buf | 98 | fs/readdir.c | struct getdents_callback * buf = (struct getdents_callback *) __buf; |
buf | 101 | fs/readdir.c | buf->error = -EINVAL; /* only used if we fail.. */ |
buf | 102 | fs/readdir.c | if (reclen > buf->count) |
buf | 104 | fs/readdir.c | dirent = buf->previous; |
buf | 107 | fs/readdir.c | dirent = buf->current_dir; |
buf | 108 | fs/readdir.c | buf->previous = dirent; |
buf | 114 | fs/readdir.c | buf->current_dir = dirent; |
buf | 115 | fs/readdir.c | buf->count -= reclen; |
buf | 123 | fs/readdir.c | struct getdents_callback buf; |
buf | 133 | fs/readdir.c | buf.current_dir = (struct linux_dirent *) dirent; |
buf | 134 | fs/readdir.c | buf.previous = NULL; |
buf | 135 | fs/readdir.c | buf.count = count; |
buf | 136 | fs/readdir.c | buf.error = 0; |
buf | 137 | fs/readdir.c | error = file->f_op->readdir(file->f_inode, file, &buf, filldir); |
buf | 140 | fs/readdir.c | lastdirent = buf.previous; |
buf | 142 | fs/readdir.c | return buf.error; |
buf | 144 | fs/readdir.c | return count - buf.count; |
buf | 22 | fs/smbfs/dir.c | smb_dir_read(struct inode *inode, struct file *filp, char *buf, int count); |
buf | 121 | fs/smbfs/dir.c | smb_dir_read(struct inode *inode, struct file *filp, char *buf, int count) |
buf | 68 | fs/smbfs/file.c | smb_file_read(struct inode *inode, struct file *file, char *buf, int count) |
buf | 112 | fs/smbfs/file.c | pos, to_read, buf); |
buf | 120 | fs/smbfs/file.c | pos, to_read, buf, 1); |
buf | 126 | fs/smbfs/file.c | buf += result; |
buf | 145 | fs/smbfs/file.c | smb_file_write(struct inode *inode, struct file *file, const char *buf, int count) |
buf | 193 | fs/smbfs/file.c | pos, to_write, buf); |
buf | 201 | fs/smbfs/file.c | pos, to_write, buf); |
buf | 208 | fs/smbfs/file.c | buf += result; |
buf | 307 | fs/smbfs/inode.c | smb_statfs(struct super_block *sb, struct statfs *buf, int bufsiz) |
buf | 329 | fs/smbfs/inode.c | memcpy_tofs(buf, &tmp, bufsiz); |
buf | 483 | fs/smbfs/proc.c | byte *buf = server->packet; |
buf | 498 | fs/smbfs/proc.c | WSET(buf, smb_tid, server->tid); |
buf | 499 | fs/smbfs/proc.c | WSET(buf, smb_pid, server->pid); |
buf | 500 | fs/smbfs/proc.c | WSET(buf, smb_uid, server->server_uid); |
buf | 501 | fs/smbfs/proc.c | WSET(buf, smb_mid, server->mid); |
buf | 504 | fs/smbfs/proc.c | BSET(buf, smb_flg, 0x8); |
buf | 505 | fs/smbfs/proc.c | WSET(buf, smb_flg2, 0x3); |
buf | 539 | fs/smbfs/proc.c | char* buf = server->packet; |
buf | 548 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, 0x42); /* read/write */ |
buf | 549 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, o_attr); |
buf | 564 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, 0x40); /* read only */ |
buf | 565 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, o_attr); |
buf | 579 | fs/smbfs/proc.c | entry->fileid = WVAL(buf, smb_vwv0); |
buf | 580 | fs/smbfs/proc.c | entry->attr = WVAL(buf, smb_vwv1); |
buf | 582 | fs/smbfs/proc.c | entry->mtime = local2utc(DVAL(buf, smb_vwv2)); |
buf | 583 | fs/smbfs/proc.c | entry->size = DVAL(buf, smb_vwv4); |
buf | 584 | fs/smbfs/proc.c | entry->access = WVAL(buf, smb_vwv6); |
buf | 598 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 601 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, finfo->fileid); |
buf | 602 | fs/smbfs/proc.c | DSET(buf, smb_vwv1, utc2local(finfo->mtime)); |
buf | 618 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 623 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, finfo->fileid); |
buf | 624 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, count); |
buf | 625 | fs/smbfs/proc.c | DSET(buf, smb_vwv2, offset); |
buf | 626 | fs/smbfs/proc.c | WSET(buf, smb_vwv4, 0); |
buf | 633 | fs/smbfs/proc.c | returned_count = WVAL(buf, smb_vwv0); |
buf | 655 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 664 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, finfo->fileid); |
buf | 665 | fs/smbfs/proc.c | DSET(buf, smb_vwv1, offset); |
buf | 666 | fs/smbfs/proc.c | WSET(buf, smb_vwv3, count); |
buf | 667 | fs/smbfs/proc.c | WSET(buf, smb_vwv4, 0); |
buf | 668 | fs/smbfs/proc.c | DSET(buf, smb_vwv5, 0); |
buf | 680 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 684 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, finfo->fileid); |
buf | 685 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, count); |
buf | 686 | fs/smbfs/proc.c | DSET(buf, smb_vwv2, offset); |
buf | 687 | fs/smbfs/proc.c | WSET(buf, smb_vwv4, 0); |
buf | 694 | fs/smbfs/proc.c | res = WVAL(buf, smb_vwv0); |
buf | 707 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 716 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, finfo->fileid); |
buf | 717 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, count); |
buf | 718 | fs/smbfs/proc.c | WSET(buf, smb_vwv2, 0); /* reserved */ |
buf | 719 | fs/smbfs/proc.c | DSET(buf, smb_vwv3, offset); |
buf | 720 | fs/smbfs/proc.c | DSET(buf, smb_vwv5, 0); /* timeout */ |
buf | 721 | fs/smbfs/proc.c | WSET(buf, smb_vwv7, 1); /* send final result response */ |
buf | 722 | fs/smbfs/proc.c | DSET(buf, smb_vwv8, 0); /* reserved */ |
buf | 723 | fs/smbfs/proc.c | WSET(buf, smb_vwv10, 0); /* no data in this buf */ |
buf | 724 | fs/smbfs/proc.c | WSET(buf, smb_vwv11, 0); /* no data in this buf */ |
buf | 765 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 770 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, entry->attr); |
buf | 771 | fs/smbfs/proc.c | DSET(buf, smb_vwv1, utc2local(entry->ctime)); |
buf | 783 | fs/smbfs/proc.c | entry->fileid = WVAL(buf, smb_vwv0); |
buf | 811 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 818 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, 0); |
buf | 877 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 884 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, 0); |
buf | 900 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 907 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, fid); |
buf | 908 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, 0); |
buf | 909 | fs/smbfs/proc.c | DSET(buf, smb_vwv2, length); |
buf | 910 | fs/smbfs/proc.c | WSET(buf, smb_vwv4, 0); |
buf | 944 | fs/smbfs/proc.c | char *buf; |
buf | 963 | fs/smbfs/proc.c | buf = server->packet; |
buf | 976 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, entries_asked); |
buf | 977 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, aDIR); |
buf | 984 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, entries_asked); |
buf | 985 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, aDIR); |
buf | 1389 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 1407 | fs/smbfs/proc.c | entry->attr = WVAL(buf, smb_vwv0); |
buf | 1409 | fs/smbfs/proc.c | entry->mtime = local2utc(DVAL(buf, smb_vwv1)); |
buf | 1411 | fs/smbfs/proc.c | entry->size = DVAL(buf, smb_vwv3); |
buf | 1421 | fs/smbfs/proc.c | char* buf = server->packet; |
buf | 1425 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, entry->fileid); |
buf | 1432 | fs/smbfs/proc.c | entry->ctime = date_dos2unix(WVAL(buf, smb_vwv1), WVAL(buf, smb_vwv0)); |
buf | 1433 | fs/smbfs/proc.c | entry->atime = date_dos2unix(WVAL(buf, smb_vwv3), WVAL(buf, smb_vwv2)); |
buf | 1434 | fs/smbfs/proc.c | entry->mtime = date_dos2unix(WVAL(buf, smb_vwv5), WVAL(buf, smb_vwv4)); |
buf | 1435 | fs/smbfs/proc.c | entry->size = DVAL(buf, smb_vwv6); |
buf | 1436 | fs/smbfs/proc.c | entry->attr = WVAL(buf, smb_vwv10); |
buf | 1483 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 1490 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, new_finfo->attr); |
buf | 1491 | fs/smbfs/proc.c | DSET(buf, smb_vwv1, utc2local(new_finfo->mtime)); |
buf | 1510 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 1515 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, fid); |
buf | 1518 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, date); |
buf | 1519 | fs/smbfs/proc.c | WSET(buf, smb_vwv2, time); |
buf | 1522 | fs/smbfs/proc.c | WSET(buf, smb_vwv3, date); |
buf | 1523 | fs/smbfs/proc.c | WSET(buf, smb_vwv4, time); |
buf | 1526 | fs/smbfs/proc.c | WSET(buf, smb_vwv5, date); |
buf | 1527 | fs/smbfs/proc.c | WSET(buf, smb_vwv6, time); |
buf | 191 | fs/stat.c | asmlinkage int sys_readlink(const char * path, char * buf, int bufsiz) |
buf | 198 | fs/stat.c | error = verify_area(VERIFY_WRITE,buf,bufsiz); |
buf | 208 | fs/stat.c | return inode->i_op->readlink(inode,buf,bufsiz); |
buf | 206 | fs/super.c | static int fs_name(unsigned int index, char * buf) |
buf | 219 | fs/super.c | err = verify_area(VERIFY_WRITE, buf, len); |
buf | 222 | fs/super.c | memcpy_tofs(buf, tmp->name, len); |
buf | 265 | fs/super.c | int get_filesystem_list(char * buf) |
buf | 272 | fs/super.c | len += sprintf(buf+len, "%s\t%s\n", |
buf | 24 | fs/sysv/dir.c | static int sysv_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 74 | fs/sysv/file.c | int sysv_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 172 | fs/sysv/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 174 | fs/sysv/file.c | buf += chars; |
buf | 177 | fs/sysv/file.c | put_user(0,buf++); |
buf | 201 | fs/sysv/file.c | static int sysv_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
buf | 257 | fs/sysv/file.c | memcpy_fromfs(p,buf,c); |
buf | 258 | fs/sysv/file.c | buf += c; |
buf | 535 | fs/sysv/inode.c | void sysv_statfs(struct super_block *sb, struct statfs *buf, int bufsiz) |
buf | 547 | fs/sysv/inode.c | memcpy_tofs(buf, &tmp, bufsiz); |
buf | 30 | fs/umsdos/dir.c | int UMSDOS_dir_read(struct inode *inode,struct file *filp,char *buf, |
buf | 48 | fs/umsdos/dir.c | void * buf, |
buf | 55 | fs/umsdos/dir.c | struct UMSDOS_DIR_ONCE *d = (struct UMSDOS_DIR_ONCE *)buf; |
buf | 417 | fs/umsdos/dir.c | void * buf, |
buf | 423 | fs/umsdos/dir.c | struct UMSDOS_DIRENT_K *d = (struct UMSDOS_DIRENT_K *)buf; |
buf | 436 | fs/umsdos/dir.c | void * buf, |
buf | 443 | fs/umsdos/dir.c | struct UMSDOS_DIR_SEARCH *d = (struct UMSDOS_DIR_SEARCH *)buf; |
buf | 29 | fs/umsdos/emd.c | char *buf, |
buf | 35 | fs/umsdos/emd.c | ret = msdos_file_read(inode,filp,buf,count); |
buf | 45 | fs/umsdos/emd.c | const char *buf, |
buf | 51 | fs/umsdos/emd.c | ret = msdos_file_write(inode,filp,buf,count); |
buf | 66 | fs/umsdos/emd.c | char *buf, /* buffer in kernel memory, not in user space */ |
buf | 71 | fs/umsdos/emd.c | written = umsdos_file_write_kmem (emd_dir,filp,buf,count); |
buf | 82 | fs/umsdos/emd.c | char *buf, /* buffer in kernel memory, not in user space */ |
buf | 88 | fs/umsdos/emd.c | sizeread = umsdos_file_read_kmem (emd_dir,filp,buf,count); |
buf | 220 | fs/umsdos/emd.c | struct find_buffer *buf) |
buf | 223 | fs/umsdos/emd.c | int mustmove = buf->size - buf->pos; |
buf | 227 | fs/umsdos/emd.c | memcpy (buf->buffer,buf->buffer+buf->pos,mustmove); |
buf | 229 | fs/umsdos/emd.c | buf->pos = 0; |
buf | 231 | fs/umsdos/emd.c | remain = inode->i_size - buf->filp.f_pos; |
buf | 234 | fs/umsdos/emd.c | ret = umsdos_emd_dir_read (inode,&buf->filp,buf->buffer+mustmove |
buf | 236 | fs/umsdos/emd.c | if (ret == 0) buf->size = mustmove + mustread; |
buf | 238 | fs/umsdos/emd.c | buf->size = mustmove; |
buf | 289 | fs/umsdos/emd.c | struct find_buffer buf; |
buf | 290 | fs/umsdos/emd.c | buf.pos = 0; |
buf | 291 | fs/umsdos/emd.c | buf.size = 0; |
buf | 292 | fs/umsdos/emd.c | buf.filp.f_pos = 0; |
buf | 293 | fs/umsdos/emd.c | buf.filp.f_reada = 1; |
buf | 299 | fs/umsdos/emd.c | (buf.buffer + buf.pos); |
buf | 300 | fs/umsdos/emd.c | int file_pos = buf.filp.f_pos - buf.size + buf.pos; |
buf | 301 | fs/umsdos/emd.c | if (buf.pos == buf.size){ |
buf | 302 | fs/umsdos/emd.c | ret = umsdos_fillbuf (emd_dir,&buf); |
buf | 328 | fs/umsdos/emd.c | buf.pos += UMSDOS_REC_SIZE; |
buf | 331 | fs/umsdos/emd.c | if (buf.pos+entry_size > buf.size){ |
buf | 332 | fs/umsdos/emd.c | ret = umsdos_fillbuf (emd_dir,&buf); |
buf | 348 | fs/umsdos/emd.c | buf.pos += entry_size; |
buf | 30 | fs/umsdos/file.c | char *buf, |
buf | 34 | fs/umsdos/file.c | int ret = msdos_file_read(inode,filp,buf,count); |
buf | 47 | fs/umsdos/file.c | const char *buf, |
buf | 50 | fs/umsdos/file.c | return msdos_file_write(inode,filp,buf,count); |
buf | 58 | fs/umsdos/inode.c | void UMSDOS_statfs(struct super_block *sb,struct statfs *buf, int bufsiz) |
buf | 60 | fs/umsdos/inode.c | msdos_statfs(sb,buf,bufsiz); |
buf | 31 | fs/umsdos/ioctl.c | void * buf, |
buf | 38 | fs/umsdos/ioctl.c | struct UMSDOS_DIR_ONCE *d = (struct UMSDOS_DIR_ONCE *)buf; |
buf | 34 | fs/umsdos/rdir.c | void * buf, |
buf | 41 | fs/umsdos/rdir.c | struct RDIR_FILLDIR *d = (struct RDIR_FILLDIR*) buf; |
buf | 63 | fs/xiafs/dir.c | struct file * filp, char * buf, int count) |
buf | 72 | fs/xiafs/file.c | xiafs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 162 | fs/xiafs/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 164 | fs/xiafs/file.c | buf += chars; |
buf | 167 | fs/xiafs/file.c | put_user(0,buf++); |
buf | 192 | fs/xiafs/file.c | xiafs_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
buf | 243 | fs/xiafs/file.c | memcpy_fromfs(cp,buf,c); |
buf | 244 | fs/xiafs/file.c | buf += c; |
buf | 169 | fs/xiafs/inode.c | void xiafs_statfs(struct super_block *sb, struct statfs *buf, int bufsiz) |
buf | 181 | fs/xiafs/inode.c | memcpy_tofs(buf, &tmp, bufsiz); |
buf | 236 | include/asm-alpha/unistd.h | static inline int write(int fd, const char * buf, int nr) |
buf | 238 | include/asm-alpha/unistd.h | return sys_write(fd, buf, nr); |
buf | 242 | include/asm-alpha/unistd.h | static inline int read(int fd, char * buf, int nr) |
buf | 244 | include/asm-alpha/unistd.h | return sys_read(fd, buf, nr); |
buf | 277 | include/asm-i386/unistd.h | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
buf | 1302 | include/asm-mips/unistd.h | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
buf | 272 | include/asm-ppc/unistd.h | static /*inline*/ _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
buf | 22 | include/asm-sparc/openprom.h | int (*v0_rdblkdev)(int dev_desc, int num_blks, int blk_st, char *buf); |
buf | 23 | include/asm-sparc/openprom.h | int (*v0_wrblkdev)(int dev_desc, int num_blks, int blk_st, char *buf); |
buf | 24 | include/asm-sparc/openprom.h | int (*v0_wrnetdev)(int dev_desc, int num_bytes, char *buf); |
buf | 25 | include/asm-sparc/openprom.h | int (*v0_rdnetdev)(int dev_desc, int num_bytes, char *buf); |
buf | 26 | include/asm-sparc/openprom.h | int (*v0_rdchardev)(int dev_desc, int num_bytes, int dummy, char *buf); |
buf | 27 | include/asm-sparc/openprom.h | int (*v0_wrchardev)(int dev_desc, int num_bytes, int dummy, char *buf); |
buf | 43 | include/asm-sparc/openprom.h | int (*v2_dev_read)(int d, char *buf, int nbytes); |
buf | 44 | include/asm-sparc/openprom.h | int (*v2_dev_write)(int d, char *buf, int nbytes); |
buf | 241 | include/asm-sparc/oplib.h | extern void prom_getstring(int node, char *prop, char *buf, int bufsize); |
buf | 405 | include/asm-sparc/unistd.h | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
buf | 17 | include/linux/binfmts.h | char buf[128]; |
buf | 207 | include/linux/cdrom.h | u_char *buf; /* frame buffer (size: nframes*2352 bytes) */ |
buf | 492 | include/linux/fs.h | extern void refile_buffer(struct buffer_head * buf); |
buf | 493 | include/linux/fs.h | extern void set_writetime(struct buffer_head * buf, int flag); |
buf | 569 | include/linux/fs.h | extern void __brelse(struct buffer_head *buf); |
buf | 570 | include/linux/fs.h | extern inline void brelse(struct buffer_head *buf) |
buf | 572 | include/linux/fs.h | if (buf) |
buf | 573 | include/linux/fs.h | __brelse(buf); |
buf | 575 | include/linux/fs.h | extern void __bforget(struct buffer_head *buf); |
buf | 576 | include/linux/fs.h | extern inline void bforget(struct buffer_head *buf) |
buf | 578 | include/linux/fs.h | if (buf) |
buf | 579 | include/linux/fs.h | __bforget(buf); |
buf | 74 | include/linux/gscd.h | #define READ_DATA(port, buf, nr) insb(port, buf, nr) |
buf | 86 | include/linux/if_pppvar.h | #define buf_base(buf) ((u_char *) (&buf[1])) |
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 | 75 | include/linux/mcd.h | #define READ_DATA(port, buf, nr) \ |
buf | 76 | include/linux/mcd.h | insb(port, buf, nr) |
buf | 195 | include/linux/mm.h | extern int vread(char *buf, char *addr, int count); |
buf | 167 | include/linux/msdos_fs.h | extern void msdos_statfs(struct super_block *sb,struct statfs *buf, int); |
buf | 74 | include/linux/msg.h | asmlinkage int sys_msgctl (int msqid, int cmd, struct msqid_ds *buf); |
buf | 87 | include/linux/net_alias.h | (struct net_alias_type *this, struct net_alias *alias, char *buf, int len); |
buf | 119 | include/linux/net_alias.h | extern int net_alias_getinfo(char *buf, char **, off_t , int , int ); |
buf | 120 | include/linux/net_alias.h | extern int net_alias_types_getinfo(char *buf, char **, off_t , int , int ); |
buf | 576 | include/linux/pci.h | extern int get_pci_list (char *buf); |
buf | 21 | include/linux/random.h | __u32 buf[0]; |
buf | 37 | include/linux/random.h | void get_random_bytes(void *buf, int nbytes); |
buf | 31 | include/linux/rpcsock.h | int *buf; |
buf | 39 | include/linux/sem.h | struct semid_ds *buf; /* buffer for IPC_STAT & IPC_SET */ |
buf | 65 | include/linux/shm.h | asmlinkage int sys_shmctl (int shmid, int cmd, struct shmid_ds *buf); |
buf | 113 | include/linux/sjcd.h | #define S_READ_DATA( port, buf, nr ) insb( port, buf, nr ) |
buf | 126 | include/linux/skbuff.h | extern void skb_queue_head(struct sk_buff_head *list,struct sk_buff *buf); |
buf | 127 | include/linux/skbuff.h | extern void skb_queue_tail(struct sk_buff_head *list,struct sk_buff *buf); |
buf | 131 | include/linux/skbuff.h | extern void skb_unlink(struct sk_buff *buf); |
buf | 44 | include/linux/smb.h | #define smb_base(buf) ((byte *)(((byte *)(buf))+4)) |
buf | 1035 | include/linux/soundcard.h | #define SEQ_SYSEX(dev, buf, len) \ |
buf | 1039 | include/linux/soundcard.h | for(i=0;i<l;i++)_seqbuf[_seqbufptr+i+1] = (buf)[i];\ |
buf | 48 | include/linux/swap.h | #define read_swap_page(nr,buf) \ |
buf | 49 | include/linux/swap.h | rw_swap_page(READ,(nr),(buf)) |
buf | 50 | include/linux/swap.h | #define write_swap_page(nr,buf) \ |
buf | 51 | include/linux/swap.h | rw_swap_page(WRITE,(nr),(buf)) |
buf | 289 | include/linux/tty.h | extern char *_tty_name(struct tty_struct *tty, char *buf); |
buf | 127 | include/linux/tty_driver.h | const 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 | const unsigned char * buf, unsigned int nr); |
buf | 424 | ipc/msg.c | asmlinkage int sys_msgctl (int msqid, int cmd, struct msqid_ds *buf) |
buf | 436 | ipc/msg.c | if (!buf) |
buf | 453 | ipc/msg.c | err = verify_area (VERIFY_WRITE, buf, sizeof (struct msginfo)); |
buf | 456 | ipc/msg.c | memcpy_tofs (buf, &msginfo, sizeof(struct msginfo)); |
buf | 460 | ipc/msg.c | if (!buf) |
buf | 462 | ipc/msg.c | err = verify_area (VERIFY_WRITE, buf, sizeof (*buf)); |
buf | 482 | ipc/msg.c | memcpy_tofs (buf, &tbuf, sizeof(*buf)); |
buf | 485 | ipc/msg.c | if (!buf) |
buf | 487 | ipc/msg.c | err = verify_area (VERIFY_READ, buf, sizeof (*buf)); |
buf | 490 | ipc/msg.c | memcpy_fromfs (&tbuf, buf, sizeof (*buf)); |
buf | 493 | ipc/msg.c | if (!buf) |
buf | 495 | ipc/msg.c | err = verify_area (VERIFY_WRITE, buf, sizeof(*buf)); |
buf | 522 | ipc/msg.c | memcpy_tofs (buf, &tbuf, sizeof (*buf)); |
buf | 362 | ipc/sem.c | struct semid_ds *buf = NULL; |
buf | 403 | ipc/sem.c | buf = arg.buf; |
buf | 404 | ipc/sem.c | i = verify_area (VERIFY_WRITE, buf, sizeof (*buf)); |
buf | 419 | ipc/sem.c | memcpy_tofs (buf, &tbuf, sizeof(*buf)); |
buf | 485 | ipc/sem.c | buf = arg.buf; |
buf | 486 | ipc/sem.c | if ((i = verify_area (VERIFY_WRITE, buf, sizeof(*buf)))) |
buf | 490 | ipc/sem.c | buf = arg.buf; |
buf | 491 | ipc/sem.c | if ((i = verify_area (VERIFY_READ, buf, sizeof (*buf)))) |
buf | 493 | ipc/sem.c | memcpy_fromfs (&tbuf, buf, sizeof (*buf)); |
buf | 537 | ipc/sem.c | memcpy_tofs (buf, &tbuf, sizeof(*buf)); |
buf | 203 | ipc/shm.c | asmlinkage int sys_shmctl (int shmid, int cmd, struct shmid_ds *buf) |
buf | 213 | ipc/shm.c | if (!buf) |
buf | 215 | ipc/shm.c | err = verify_area (VERIFY_READ, buf, sizeof (*buf)); |
buf | 218 | ipc/shm.c | memcpy_fromfs (&tbuf, buf, sizeof (*buf)); |
buf | 225 | ipc/shm.c | if (!buf) |
buf | 232 | ipc/shm.c | err = verify_area (VERIFY_WRITE, buf, sizeof (struct shminfo)); |
buf | 235 | ipc/shm.c | memcpy_tofs (buf, &shminfo, sizeof(struct shminfo)); |
buf | 241 | ipc/shm.c | if (!buf) |
buf | 243 | ipc/shm.c | err = verify_area (VERIFY_WRITE, buf, sizeof (shm_info)); |
buf | 252 | ipc/shm.c | memcpy_tofs (buf, &shm_info, sizeof(shm_info)); |
buf | 256 | ipc/shm.c | if (!buf) |
buf | 258 | ipc/shm.c | err = verify_area (VERIFY_WRITE, buf, sizeof (*buf)); |
buf | 277 | ipc/shm.c | memcpy_tofs (buf, &tbuf, sizeof(*buf)); |
buf | 309 | ipc/shm.c | if (!buf) |
buf | 311 | ipc/shm.c | err = verify_area (VERIFY_WRITE, buf, sizeof (*buf)); |
buf | 322 | ipc/shm.c | memcpy_tofs (buf, &tbuf, sizeof(*buf)); |
buf | 96 | ipc/util.c | asmlinkage int sys_msgctl (int msqid, int cmd, struct msqid_ds *buf) |
buf | 116 | ipc/util.c | asmlinkage 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 | 61 | kernel/module.c | static int get_mod_name( char *user_name, char *buf); |
buf | 449 | kernel/module.c | get_mod_name(char *user_name, char *buf) |
buf | 454 | kernel/module.c | for (i = 0 ; (buf[i] = get_user(user_name + i)) != '\0' ; ) { |
buf | 543 | kernel/module.c | int get_module_list(char *buf) |
buf | 552 | kernel/module.c | p = buf; |
buf | 555 | kernel/module.c | if (p - buf > 4096 - 100) |
buf | 608 | kernel/module.c | return p - buf; |
buf | 615 | kernel/module.c | int get_ksyms_list(char *buf, char **start, off_t offset, int length) |
buf | 620 | kernel/module.c | char *p = buf; |
buf | 633 | kernel/module.c | p = buf + len; |
buf | 655 | kernel/module.c | *start = buf + (offset - begin); |
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 | 28 | kernel/printk.c | static char buf[1024]; |
buf | 61 | kernel/printk.c | asmlinkage int sys_syslog(int type, char * buf, int len) |
buf | 76 | kernel/printk.c | if (!buf || len < 0) |
buf | 80 | kernel/printk.c | error = verify_area(VERIFY_WRITE,buf,len); |
buf | 98 | kernel/printk.c | put_user(c,buf); |
buf | 99 | kernel/printk.c | buf++; |
buf | 109 | kernel/printk.c | if (!buf || len < 0) |
buf | 113 | kernel/printk.c | error = verify_area(VERIFY_WRITE,buf,len); |
buf | 124 | kernel/printk.c | put_user(c, buf++); |
buf | 161 | kernel/printk.c | i = vsprintf(buf + 3, fmt, args); /* hopefully i < sizeof(buf)-4 */ |
buf | 162 | kernel/printk.c | buf_end = buf + 3 + i; |
buf | 164 | kernel/printk.c | for (p = buf + 3; p < buf_end; p++) { |
buf | 217 | kernel/printk.c | char buf[16]; |
buf | 224 | kernel/printk.c | buf[j++] = log_buf[p]; |
buf | 226 | kernel/printk.c | if (buf[j-1] != '\n' && i < log_size - 1 && j < sizeof(buf)-1) |
buf | 228 | kernel/printk.c | buf[j] = 0; |
buf | 229 | kernel/printk.c | q = buf; |
buf | 231 | kernel/printk.c | msg_level = buf[1] - '0'; |
buf | 232 | kernel/printk.c | q = buf + 3; |
buf | 236 | kernel/printk.c | if (buf[j-1] == '\n') |
buf | 31 | kernel/resource.c | int get_ioport_list(char *buf) |
buf | 37 | kernel/resource.c | len += sprintf(buf+len, "%04lx-%04lx : %s\n", |
buf | 40 | kernel/resource.c | len += sprintf(buf+len, "4K limit reached!\n"); |
buf | 38 | kernel/sysctl.c | char * buf, int count); |
buf | 40 | kernel/sysctl.c | const char * buf, int count); |
buf | 394 | kernel/sysctl.c | char * buf, int count) |
buf | 401 | kernel/sysctl.c | error = verify_area(write ? VERIFY_READ : VERIFY_WRITE, buf, count); |
buf | 416 | kernel/sysctl.c | error = (*table->proc_handler) (table, write, file, buf, &res); |
buf | 423 | kernel/sysctl.c | char * buf, int count) |
buf | 425 | kernel/sysctl.c | return do_rw_proc(0, inode, file, buf, count); |
buf | 429 | kernel/sysctl.c | const char * buf, int count) |
buf | 431 | kernel/sysctl.c | return do_rw_proc(1, inode, file, (char *) buf, count); |
buf | 487 | kernel/sysctl.c | char buf[TMPBUFLEN], *p; |
buf | 509 | kernel/sysctl.c | memcpy_fromfs(buf, buffer, len); |
buf | 510 | kernel/sysctl.c | buf[len] = 0; |
buf | 511 | kernel/sysctl.c | p = buf; |
buf | 519 | kernel/sysctl.c | len = p-buf; |
buf | 528 | kernel/sysctl.c | p = buf; |
buf | 532 | kernel/sysctl.c | len = strlen(buf); |
buf | 535 | kernel/sysctl.c | memcpy_tofs(buffer, buf, len); |
buf | 134 | lib/vsprintf.c | int vsprintf(char *buf, const char *fmt, va_list args) |
buf | 149 | lib/vsprintf.c | for (str=buf ; *fmt ; ++fmt) { |
buf | 246 | lib/vsprintf.c | *ip = (str - buf); |
buf | 249 | lib/vsprintf.c | *ip = (str - buf); |
buf | 293 | lib/vsprintf.c | return str-buf; |
buf | 296 | lib/vsprintf.c | int sprintf(char * buf, const char *fmt, ...) |
buf | 302 | lib/vsprintf.c | i=vsprintf(buf,fmt,args); |
buf | 157 | mm/filemap.c | void update_vm_cache(struct inode * inode, unsigned long pos, const char * buf, int count) |
buf | 168 | mm/filemap.c | memcpy((void *) ((pos & ~PAGE_MASK) + addr), buf, count); |
buf | 222 | mm/filemap.c | int generic_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 298 | mm/filemap.c | memcpy_tofs(buf, (void *) (addr + offset), nr); |
buf | 300 | mm/filemap.c | buf += nr; |
buf | 31 | mm/page_io.c | void rw_swap_page(int rw, unsigned long entry, char * buf) |
buf | 62 | mm/page_io.c | ll_rw_page(rw,p->swap_device,offset,buf); |
buf | 101 | mm/page_io.c | ll_rw_swap_file(rw,swapf->i_dev, zones, i,buf); |
buf | 324 | mm/vmalloc.c | int vread(char *buf, char *addr, int count) |
buf | 327 | mm/vmalloc.c | char *vaddr, *buf_start = buf; |
buf | 335 | mm/vmalloc.c | put_user('\0', buf++), addr++, count--; |
buf | 343 | mm/vmalloc.c | put_user(*addr++, buf++), count--; |
buf | 347 | mm/vmalloc.c | return buf - buf_start; |
buf | 124 | net/ax25/af_ax25.c | static char buf[11]; |
buf | 128 | net/ax25/af_ax25.c | for (n = 0, s = buf; n < 6; n++) |
buf | 146 | net/ax25/af_ax25.c | if (*buf == '\0' || *buf == '-') |
buf | 149 | net/ax25/af_ax25.c | return buf; |
buf | 327 | net/ax25/ax25_subr.c | unsigned char *ax25_parse_addr(unsigned char *buf, int len, ax25_address *src, ax25_address *dest, ax25_digi *digi, int *flags) |
buf | 336 | net/ax25/ax25_subr.c | if (buf[6] & LAPB_C) { |
buf | 339 | net/ax25/ax25_subr.c | if (buf[13] & LAPB_C) { |
buf | 345 | net/ax25/ax25_subr.c | if (dest != NULL) memcpy(dest, buf + 0, AX25_ADDR_LEN); |
buf | 346 | net/ax25/ax25_subr.c | if (src != NULL) memcpy(src, buf + 7, AX25_ADDR_LEN); |
buf | 347 | net/ax25/ax25_subr.c | buf += 2 * AX25_ADDR_LEN; |
buf | 352 | net/ax25/ax25_subr.c | while (!(buf[-1] & LAPB_E)) |
buf | 358 | net/ax25/ax25_subr.c | memcpy(&digi->calls[d], buf, AX25_ADDR_LEN); |
buf | 360 | net/ax25/ax25_subr.c | if (buf[6] & AX25_REPEATED) { |
buf | 368 | net/ax25/ax25_subr.c | buf += AX25_ADDR_LEN; |
buf | 373 | net/ax25/ax25_subr.c | return buf; |
buf | 379 | net/ax25/ax25_subr.c | int build_ax25_addr(unsigned char *buf, ax25_address *src, ax25_address *dest, ax25_digi *d, int flag, int modulus) |
buf | 384 | net/ax25/ax25_subr.c | memcpy(buf, dest, AX25_ADDR_LEN); |
buf | 385 | net/ax25/ax25_subr.c | buf[6] &= ~(LAPB_E | LAPB_C); |
buf | 386 | net/ax25/ax25_subr.c | buf[6] |= SSSID_SPARE; |
buf | 388 | net/ax25/ax25_subr.c | if (flag == C_COMMAND) buf[6] |= LAPB_C; |
buf | 390 | net/ax25/ax25_subr.c | buf += AX25_ADDR_LEN; |
buf | 393 | net/ax25/ax25_subr.c | memcpy(buf, src, AX25_ADDR_LEN); |
buf | 394 | net/ax25/ax25_subr.c | buf[6] &= ~(LAPB_E | LAPB_C); |
buf | 395 | net/ax25/ax25_subr.c | buf[6] &= ~SSSID_SPARE; |
buf | 398 | net/ax25/ax25_subr.c | buf[6] |= SSSID_SPARE; |
buf | 400 | net/ax25/ax25_subr.c | buf[6] |= ESSID_SPARE; |
buf | 403 | net/ax25/ax25_subr.c | if (flag == C_RESPONSE) buf[6] |= LAPB_C; |
buf | 409 | net/ax25/ax25_subr.c | buf[6] |= LAPB_E; |
buf | 413 | net/ax25/ax25_subr.c | buf += AX25_ADDR_LEN; |
buf | 417 | net/ax25/ax25_subr.c | memcpy(buf, &d->calls[ct], AX25_ADDR_LEN); |
buf | 419 | net/ax25/ax25_subr.c | buf[6] |= AX25_REPEATED; |
buf | 421 | net/ax25/ax25_subr.c | buf[6] &= ~AX25_REPEATED; |
buf | 422 | net/ax25/ax25_subr.c | buf[6] &= ~LAPB_E; |
buf | 423 | net/ax25/ax25_subr.c | buf[6] |= SSSID_SPARE; |
buf | 425 | net/ax25/ax25_subr.c | buf += AX25_ADDR_LEN; |
buf | 430 | net/ax25/ax25_subr.c | buf[-1] |= LAPB_E; |
buf | 347 | net/ipv4/igmp.c | extern __inline__ void ip_mc_map(unsigned long addr, char *buf) |
buf | 350 | net/ipv4/igmp.c | buf[0]=0x01; |
buf | 351 | net/ipv4/igmp.c | buf[1]=0x00; |
buf | 352 | net/ipv4/igmp.c | buf[2]=0x5e; |
buf | 353 | net/ipv4/igmp.c | buf[5]=addr&0xFF; |
buf | 355 | net/ipv4/igmp.c | buf[4]=addr&0xFF; |
buf | 357 | net/ipv4/igmp.c | buf[3]=addr&0x7F; |
buf | 366 | net/ipv4/igmp.c | char buf[6]; |
buf | 369 | net/ipv4/igmp.c | ip_mc_map(addr,buf); |
buf | 370 | net/ipv4/igmp.c | dev_mc_add(dev,buf,ETH_ALEN,0); |
buf | 379 | net/ipv4/igmp.c | char buf[6]; |
buf | 382 | net/ipv4/igmp.c | ip_mc_map(addr,buf); |
buf | 383 | net/ipv4/igmp.c | dev_mc_delete(dev,buf,ETH_ALEN,0); |
buf | 71 | net/ipv4/ip_alias.c | ip_alias_print_1(struct net_alias_type *this, struct net_alias *alias, char *buf, int len) |
buf | 76 | net/ipv4/ip_alias.c | return sprintf(buf, "%d.%d.%d.%d", |
buf | 604 | net/ipv4/ip_fw.c | char buf[24]; /* xxx.xxx.xxx.xxx,ppp,ppp\000 */ |
buf | 691 | net/ipv4/ip_fw.c | sprintf(buf,"%ld,%ld,%ld,%ld,%d,%d", |
buf | 699 | net/ipv4/ip_fw.c | diff = strlen(buf) - (data-p); |
buf | 710 | net/ipv4/ip_fw.c | memcpy(p,buf,strlen(buf)); |
buf | 759 | net/ipv4/ip_fw.c | memcpy(&skb2->data[(p - (char *)skb->data)], buf, strlen(buf)); |
buf | 760 | net/ipv4/ip_fw.c | memcpy(&skb2->data[(p - (char *)skb->data) + strlen(buf)], data, |
buf | 271 | net/ipv4/raw.c | unsigned char *buf; |
buf | 276 | net/ipv4/raw.c | buf=kmalloc(len, GFP_KERNEL); |
buf | 277 | net/ipv4/raw.c | if(buf==NULL) |
buf | 279 | net/ipv4/raw.c | memcpy_fromiovec(buf, msg->msg_iov, len); |
buf | 282 | net/ipv4/raw.c | err=raw_sendto(sk,buf,len, noblock, flags, msg->msg_name, msg->msg_namelen); |
buf | 284 | net/ipv4/raw.c | kfree_s(buf,len); |
buf | 422 | net/ipv4/udp.c | unsigned char *buf; |
buf | 427 | net/ipv4/udp.c | buf=kmalloc(len, GFP_KERNEL); |
buf | 428 | net/ipv4/udp.c | if(buf==NULL) |
buf | 430 | net/ipv4/udp.c | memcpy_fromiovec(buf, msg->msg_iov, len); |
buf | 433 | net/ipv4/udp.c | err=udp_sendto(sk,buf,len, noblock, flags, msg->msg_name, msg->msg_namelen); |
buf | 435 | net/ipv4/udp.c | kfree_s(buf,len); |
buf | 70 | net/netlink.c | static int netlink_write(struct inode * inode, struct file * file, const char * buf, int count) |
buf | 75 | net/netlink.c | memcpy_fromfs(skb_put(skb,count),buf, count); |
buf | 83 | net/netlink.c | static int netlink_read(struct inode * inode, struct file * file, char * buf, int count) |
buf | 106 | net/netlink.c | memcpy_tofs(buf,skb->data,count); |
buf | 75 | net/socket.c | static int sock_read(struct inode *inode, struct file *file, char *buf, |
buf | 77 | net/socket.c | static int sock_write(struct inode *inode, struct file *file, const char *buf, |
buf | 185 | scripts/ksymoops.cc | char buf[1024]; |
buf | 187 | scripts/ksymoops.cc | while (fgets(buf, sizeof(buf), objdump_FILE)) { |
buf | 188 | scripts/ksymoops.cc | if (!strnequ(&buf[9], "<_EIP", 5)) |
buf | 190 | scripts/ksymoops.cc | if (strstr(buf, " is out of bounds")) |
buf | 195 | scripts/ksymoops.cc | cout << buf; |
buf | 198 | scripts/ksymoops.cc | long offset = strtol(buf, 0, 16); |
buf | 199 | scripts/ksymoops.cc | char* bp_0 = strchr(buf, '>') + 2; |