tag | line | file | source code |
buf | 28 | arch/alpha/boot/main.c | static char buf[1024]; |
buf | 31 | arch/alpha/boot/main.c | i = vsprintf(buf, fmt, args); |
buf | 33 | arch/alpha/boot/main.c | puts(buf,i); |
buf | 664 | arch/alpha/kernel/bios32.c | static char buf[80]; |
buf | 683 | arch/alpha/kernel/bios32.c | sprintf (buf, "UNKNOWN RETURN 0x%x", error); |
buf | 684 | arch/alpha/kernel/bios32.c | return buf; |
buf | 129 | arch/alpha/kernel/irq.c | int get_irq_list(char *buf) |
buf | 137 | arch/alpha/kernel/irq.c | len += sprintf(buf+len, "%2d: %8d %c %s\n", |
buf | 74 | arch/alpha/kernel/osf_sys.c | struct osf_dirent_callback * buf = (struct osf_dirent_callback *) __buf; |
buf | 77 | arch/alpha/kernel/osf_sys.c | buf->error = -EINVAL; /* unly used if we fail */ |
buf | 78 | arch/alpha/kernel/osf_sys.c | if (reclen > buf->count) |
buf | 80 | arch/alpha/kernel/osf_sys.c | if (buf->basep) { |
buf | 81 | arch/alpha/kernel/osf_sys.c | put_user(offset, buf->basep); |
buf | 82 | arch/alpha/kernel/osf_sys.c | buf->basep = NULL; |
buf | 84 | arch/alpha/kernel/osf_sys.c | dirent = buf->dirent; |
buf | 91 | arch/alpha/kernel/osf_sys.c | buf->dirent = dirent; |
buf | 92 | arch/alpha/kernel/osf_sys.c | buf->count -= reclen; |
buf | 101 | arch/alpha/kernel/osf_sys.c | struct osf_dirent_callback buf; |
buf | 115 | arch/alpha/kernel/osf_sys.c | buf.dirent = dirent; |
buf | 116 | arch/alpha/kernel/osf_sys.c | buf.basep = basep; |
buf | 117 | arch/alpha/kernel/osf_sys.c | buf.count = count; |
buf | 118 | arch/alpha/kernel/osf_sys.c | buf.error = 0; |
buf | 119 | arch/alpha/kernel/osf_sys.c | error = file->f_op->readdir(file->f_inode, file, &buf, osf_filldir); |
buf | 122 | arch/alpha/kernel/osf_sys.c | if (count == buf.count) |
buf | 123 | arch/alpha/kernel/osf_sys.c | return buf.error; |
buf | 124 | arch/alpha/kernel/osf_sys.c | return count - buf.count; |
buf | 529 | arch/alpha/kernel/osf_sys.c | char *buf; |
buf | 534 | arch/alpha/kernel/osf_sys.c | char *buf; |
buf | 541 | arch/alpha/kernel/osf_sys.c | char *buf; |
buf | 548 | arch/alpha/kernel/osf_sys.c | char *buf; |
buf | 238 | arch/i386/boot/compressed/gzip.h | extern int file_read OF((char *buf, unsigned size)); |
buf | 257 | arch/i386/boot/compressed/gzip.h | ulg flush_block OF((char *buf, ulg stored_len, int eof)); |
buf | 264 | arch/i386/boot/compressed/gzip.h | void copy_block OF((char *buf, unsigned len, int header)); |
buf | 265 | arch/i386/boot/compressed/gzip.h | extern int (*read_buf) OF((char *buf, unsigned size)); |
buf | 101 | arch/i386/boot/compressed/unzip.c | uch buf[EXTHDR]; /* extended local header */ |
buf | 149 | arch/i386/boot/compressed/unzip.c | buf[n] = (uch)get_byte(); /* may cause an error if EOF */ |
buf | 151 | arch/i386/boot/compressed/unzip.c | orig_crc = LG(buf); |
buf | 152 | arch/i386/boot/compressed/unzip.c | orig_len = LG(buf+4); |
buf | 161 | arch/i386/boot/compressed/unzip.c | buf[n] = (uch)get_byte(); /* may cause an error if EOF */ |
buf | 163 | arch/i386/boot/compressed/unzip.c | orig_crc = LG(buf+4); |
buf | 164 | arch/i386/boot/compressed/unzip.c | orig_len = LG(buf+12); |
buf | 40 | arch/i386/boot/compressed/xtract.c | char buf[1024]; |
buf | 44 | arch/i386/boot/compressed/xtract.c | struct exec *ex = (struct exec *)buf; |
buf | 51 | arch/i386/boot/compressed/xtract.c | if (read(id,buf,GCC_HEADER) != GCC_HEADER) |
buf | 68 | arch/i386/boot/compressed/xtract.c | if (l > sizeof(buf)) l = sizeof(buf); |
buf | 70 | arch/i386/boot/compressed/xtract.c | if ((n=read(id, buf, l)) !=l) |
buf | 80 | arch/i386/boot/compressed/xtract.c | write(1, buf, l); |
buf | 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 | 387 | arch/i386/kernel/bios32.c | sprintf (buf, "UNKNOWN RETURN 0x%x", error); |
buf | 388 | arch/i386/kernel/bios32.c | return buf; |
buf | 163 | arch/i386/kernel/irq.c | int get_irq_list(char *buf) |
buf | 171 | arch/i386/kernel/irq.c | len += sprintf(buf+len, "%2d: %8d %c %s\n", |
buf | 112 | arch/mips/kernel/irq.c | int get_irq_list(char *buf) |
buf | 120 | arch/mips/kernel/irq.c | len += sprintf(buf+len, "%2d: %8d %c %s\n", |
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 | 208 | drivers/block/aztcd.c | static char buf[CD_FRAMESIZE_RAW]; /*separate buffer for the ioctls*/ |
buf | 897 | drivers/block/aztcd.c | st = verify_area(VERIFY_WRITE, (void *) arg, sizeof buf); |
buf | 920 | drivers/block/aztcd.c | insb(DATA_PORT,buf,CD_FRAMESIZE_RAW); |
buf | 921 | drivers/block/aztcd.c | memcpy_tofs((void *) arg, &buf, CD_FRAMESIZE_RAW); |
buf | 927 | drivers/block/aztcd.c | insb(DATA_PORT,buf,CD_FRAMESIZE); |
buf | 928 | drivers/block/aztcd.c | memcpy_tofs((void *) arg, &buf, CD_FRAMESIZE); |
buf | 241 | drivers/block/cdu31a.c | unsigned char *buf); |
buf | 1054 | drivers/block/cdu31a.c | unsigned char *buf) |
buf | 1056 | drivers/block/cdu31a.c | buf[0] = size / 65536; |
buf | 1058 | drivers/block/cdu31a.c | buf[1] = size / 256; |
buf | 1059 | drivers/block/cdu31a.c | buf[2] = size % 256; |
buf | 2241 | drivers/block/cdu31a.c | memcpy_tofs((char *) (ra->buf + (CD_FRAMESIZE_RAW * cframe)), |
buf | 2257 | drivers/block/cdu31a.c | memcpy_tofs((char *) (ra->buf + (CD_FRAMESIZE_RAW * cframe)), |
buf | 2610 | drivers/block/cdu31a.c | i=verify_area(VERIFY_WRITE, ra.buf, CD_FRAMESIZE_RAW * ra.nframes); |
buf | 3143 | drivers/block/floppy.c | char * buf, int count) |
buf | 3150 | drivers/block/floppy.c | return block_read(inode, filp, buf, count); |
buf | 3154 | drivers/block/floppy.c | const char * buf, int count) |
buf | 3170 | drivers/block/floppy.c | ret= block_write(inode, filp, buf, count); |
buf | 379 | drivers/block/ide-cd.c | char buf[80]; |
buf | 394 | drivers/block/ide-cd.c | sprintf (buf, "Diagnostic failure on component %x", reqbuf->ascq); |
buf | 395 | drivers/block/ide-cd.c | s = buf; |
buf | 1676 | drivers/block/ide-cd.c | int format, char *buf, int buflen, |
buf | 1684 | drivers/block/ide-cd.c | pc.buffer = buf; |
buf | 1795 | drivers/block/ide-cd.c | char *buf, int buflen, |
buf | 1803 | drivers/block/ide-cd.c | pc.buffer = buf; |
buf | 1817 | drivers/block/ide-cd.c | char *buf, int buflen, |
buf | 1825 | drivers/block/ide-cd.c | pc.buffer = buf; |
buf | 1836 | drivers/block/ide-cd.c | cdrom_mode_select (ide_drive_t *drive, int pageno, char *buf, int buflen, |
buf | 1844 | drivers/block/ide-cd.c | pc.buffer = buf; |
buf | 1979 | drivers/block/ide-cd.c | char *buf, int buflen, |
buf | 1992 | drivers/block/ide-cd.c | pc.buffer = buf; |
buf | 2016 | drivers/block/ide-cd.c | return cdrom_read_block (drive, format, lba, buf, buflen, reqbuf); |
buf | 2309 | drivers/block/ide-cd.c | char buf[CD_FRAMESIZE_RAW]; |
buf | 2327 | drivers/block/ide-cd.c | stat = verify_area (VERIFY_WRITE, (char *)ra.buf, |
buf | 2346 | drivers/block/ide-cd.c | stat = cdrom_read_block (drive, 1, lba, buf, |
buf | 2349 | drivers/block/ide-cd.c | memcpy_tofs (ra.buf, buf, CD_FRAMESIZE_RAW); |
buf | 2350 | drivers/block/ide-cd.c | ra.buf += CD_FRAMESIZE_RAW; |
buf | 2364 | drivers/block/ide-cd.c | char buf[CD_FRAMESIZE_RAW0]; |
buf | 2395 | drivers/block/ide-cd.c | stat = cdrom_read_block (drive, format, lba, buf, blocksize, NULL); |
buf | 2398 | drivers/block/ide-cd.c | memcpy_tofs ((char *)arg, buf, blocksize); |
buf | 2442 | drivers/block/ide-cd.c | char buf[lena]; |
buf | 2445 | drivers/block/ide-cd.c | pc.buffer = buf; |
buf | 2451 | drivers/block/ide-cd.c | memcpy_tofs ((void *)arg, buf, len); |
buf | 524 | drivers/block/ll_rw_blk.c | void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buf) |
buf | 550 | drivers/block/ll_rw_blk.c | for (; j < 8 && i < nb; j++, i++, buf += buffersize) |
buf | 566 | drivers/block/ll_rw_blk.c | req[j]->buffer = buf; |
buf | 226 | drivers/block/mcdx.c | static int mcdx_transfer(struct s_drive_stuff*, char* buf, int sector, int nr_sectors); |
buf | 695 | drivers/block/mcdx.c | char buf[512]; |
buf | 713 | drivers/block/mcdx.c | while (0 == (ans = mcdx_transfer(stuffp, buf, 0, 1))) |
buf | 1567 | drivers/block/mcdx.c | char buf[11]; |
buf | 1571 | drivers/block/mcdx.c | stuffp, "\x20", 1, buf, sizeof(buf), |
buf | 1574 | drivers/block/mcdx.c | sub->control = buf[1]; |
buf | 1575 | drivers/block/mcdx.c | sub->tno = buf[2]; |
buf | 1576 | drivers/block/mcdx.c | sub->index = buf[3]; |
buf | 1577 | drivers/block/mcdx.c | sub->tt.minute = buf[4]; |
buf | 1578 | drivers/block/mcdx.c | sub->tt.second = buf[5]; |
buf | 1579 | drivers/block/mcdx.c | sub->tt.frame = buf[6]; |
buf | 1580 | drivers/block/mcdx.c | sub->dt.minute = buf[8]; |
buf | 1581 | drivers/block/mcdx.c | sub->dt.second = buf[9]; |
buf | 1582 | drivers/block/mcdx.c | sub->dt.frame = buf[10]; |
buf | 1590 | drivers/block/mcdx.c | char buf[5]; |
buf | 1594 | drivers/block/mcdx.c | ans = mcdx_talk(stuffp, "\x11", 1, buf, sizeof(buf), 2*HZ, tries); |
buf | 1595 | drivers/block/mcdx.c | multi->multi = buf[1]; |
buf | 1596 | drivers/block/mcdx.c | multi->msf_last.minute = buf[2]; |
buf | 1597 | drivers/block/mcdx.c | multi->msf_last.second = buf[3]; |
buf | 1598 | drivers/block/mcdx.c | multi->msf_last.frame = buf[4]; |
buf | 1609 | drivers/block/mcdx.c | char buf[9]; |
buf | 1611 | drivers/block/mcdx.c | ans = mcdx_talk(stuffp, "\x10", 1, buf, sizeof(buf), 2*HZ, tries); |
buf | 1612 | drivers/block/mcdx.c | info->n_first = bcd2uint(buf[1]); |
buf | 1613 | drivers/block/mcdx.c | info->n_last = bcd2uint(buf[2]); |
buf | 1614 | drivers/block/mcdx.c | info->msf_leadout.minute = buf[3]; |
buf | 1615 | drivers/block/mcdx.c | info->msf_leadout.second = buf[4]; |
buf | 1616 | drivers/block/mcdx.c | info->msf_leadout.frame = buf[5]; |
buf | 1617 | drivers/block/mcdx.c | info->msf_first.minute = buf[6]; |
buf | 1618 | drivers/block/mcdx.c | info->msf_first.second = buf[7]; |
buf | 1619 | drivers/block/mcdx.c | info->msf_first.frame = buf[8]; |
buf | 1684 | drivers/block/mcdx.c | char buf[3]; |
buf | 1687 | drivers/block/mcdx.c | if (-1 == (ans = mcdx_talk(stuffp, "\xdc", 1, buf, sizeof(buf), 2*HZ, tries))) |
buf | 1690 | drivers/block/mcdx.c | ver->code = buf[1]; |
buf | 1691 | drivers/block/mcdx.c | ver->ver = buf[2]; |
buf | 1722 | drivers/block/mcdx.c | mcdx_getval(struct s_drive_stuff *stuffp, int to, int delay, char* buf) |
buf | 1727 | drivers/block/mcdx.c | if (!buf) buf = &c; |
buf | 1734 | drivers/block/mcdx.c | *buf = (unsigned char) inb((unsigned int) stuffp->rreg_data) & 0xff; |
buf | 332 | drivers/block/optcd.c | inline static void optReadData(char *buf, int n) { |
buf | 333 | drivers/block/optcd.c | insb(DATA_PORT, buf, n); |
buf | 1264 | drivers/block/optcd.c | char buf[OPT_BLOCKSIZE]; |
buf | 1282 | drivers/block/optcd.c | optReadData(buf, OPT_BLOCKSIZE); |
buf | 1283 | drivers/block/optcd.c | memcpy_tofs((void *) arg, &buf, OPT_BLOCKSIZE); |
buf | 696 | drivers/block/sbpcd.c | char buf[256]; |
buf | 703 | drivers/block/sbpcd.c | sprintf(buf, "%s-%d [%02d]: ", major_name, d, msgnum); |
buf | 705 | drivers/block/sbpcd.c | vsprintf(&buf[15], fmt, args); |
buf | 707 | drivers/block/sbpcd.c | printk(buf); |
buf | 4131 | drivers/block/sbpcd.c | i=verify_area(VERIFY_WRITE, read_audio.buf, |
buf | 4290 | drivers/block/sbpcd.c | memcpy_tofs((u_char *) read_audio.buf, |
buf | 310 | drivers/block/sjcd.c | static int sjcd_load_response( void *buf, int len ){ |
buf | 311 | drivers/block/sjcd.c | unsigned char *resp = ( unsigned char * )buf; |
buf | 798 | drivers/block/sonycd535.c | size_to_buf(unsigned int size, Byte *buf) |
buf | 800 | drivers/block/sonycd535.c | buf[0] = size / 65536; |
buf | 802 | drivers/block/sonycd535.c | buf[1] = size / 256; |
buf | 803 | drivers/block/sonycd535.c | buf[2] = size % 256; |
buf | 540 | drivers/block/xd.c | u_char cmdblk[6],buf[64]; |
buf | 543 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
buf | 544 | drivers/block/xd.c | xd_info[drive].heads = buf[0x0A]; /* heads */ |
buf | 545 | drivers/block/xd.c | xd_info[drive].cylinders = ((u_short *) (buf))[0x04]; /* cylinders */ |
buf | 548 | drivers/block/xd.c | xd_info[drive].rwrite = ((u_short *) (buf + 1))[0x05]; /* reduced write */ |
buf | 549 | drivers/block/xd.c | xd_info[drive].precomp = ((u_short *) (buf + 1))[0x06]; /* write precomp */ |
buf | 550 | drivers/block/xd.c | xd_info[drive].ecc = buf[0x0F]; /* ecc length */ |
buf | 554 | 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 | 584 | drivers/block/xd.c | u_char cmdblk[6],buf[0x200]; |
buf | 587 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
buf | 588 | drivers/block/xd.c | xd_info[drive].heads = buf[0x1AF]; /* heads */ |
buf | 589 | drivers/block/xd.c | xd_info[drive].cylinders = ((u_short *) (buf + 1))[0xD6]; /* cylinders */ |
buf | 592 | drivers/block/xd.c | xd_info[drive].rwrite = ((u_short *) (buf))[0xD8]; /* reduced write */ |
buf | 593 | drivers/block/xd.c | xd_info[drive].wprecomp = ((u_short *) (buf))[0xDA]; /* write precomp */ |
buf | 594 | drivers/block/xd.c | xd_info[drive].ecc = buf[0x1B4]; /* ecc length */ |
buf | 596 | drivers/block/xd.c | xd_info[drive].control = buf[0x1B5]; /* control byte */ |
buf | 598 | 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 | 623 | drivers/block/xd.c | u_char cmdblk[6],buf[0x200]; |
buf | 626 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
buf | 627 | drivers/block/xd.c | xd_info[drive].heads = buf[0x04]; /* heads */ |
buf | 628 | drivers/block/xd.c | xd_info[drive].cylinders = (buf[0x02] << 8) | buf[0x03]; /* cylinders */ |
buf | 629 | drivers/block/xd.c | xd_info[drive].sectors = buf[0x05]; /* sectors */ |
buf | 1019 | drivers/char/console.c | char buf[40]; |
buf | 1021 | drivers/char/console.c | sprintf(buf, "\033[%ld;%ldR", y + (decom ? top+1 : 1), x+1); |
buf | 1022 | drivers/char/console.c | respond_string(buf, tty); |
buf | 1037 | drivers/char/console.c | char buf[8]; |
buf | 1039 | drivers/char/console.c | sprintf(buf, "\033[M%c%c%c", (char)(' ' + butt), (char)('!' + mrx), |
buf | 1041 | drivers/char/console.c | respond_string(buf, tty); |
buf | 1411 | drivers/char/console.c | const unsigned char *buf, int count) |
buf | 1433 | drivers/char/console.c | c = from_user ? get_user(buf) : *buf; |
buf | 1434 | drivers/char/console.c | buf++; n++; count--; |
buf | 1564 | drivers/char/cyclades.c | const unsigned char *buf, int count) |
buf | 1593 | drivers/char/cyclades.c | memcpy_fromfs(tmp_buf, buf, c); |
buf | 1599 | drivers/char/cyclades.c | memcpy(info->xmit_buf + info->xmit_head, buf, c); |
buf | 1603 | drivers/char/cyclades.c | buf += c; |
buf | 1688 | drivers/char/cyclades.c | char buf[64]; |
buf | 1690 | drivers/char/cyclades.c | printk("throttle %s: %d....\n", _tty_name(tty, buf), |
buf | 1729 | drivers/char/cyclades.c | char buf[64]; |
buf | 1731 | drivers/char/cyclades.c | printk("throttle %s: %d....\n", _tty_name(tty, buf), |
buf | 594 | drivers/char/keyboard.c | static char buf[] = { 0x1b, 'O', 0x00, 0x00 }; |
buf | 596 | drivers/char/keyboard.c | buf[1] = (mode ? 'O' : '['); |
buf | 597 | drivers/char/keyboard.c | buf[2] = key; |
buf | 598 | drivers/char/keyboard.c | puts_queue(buf); |
buf | 168 | drivers/char/lp.c | static inline int lp_write_interrupt(unsigned int minor, const char * buf, int count) |
buf | 179 | drivers/char/lp.c | memcpy_fromfs(lp->lp_buffer, buf, copy_size); |
buf | 229 | drivers/char/lp.c | buf += bytes_written; |
buf | 237 | drivers/char/lp.c | static inline int lp_write_polled(unsigned int minor, const char * buf, int count) |
buf | 243 | drivers/char/lp.c | temp = buf; |
buf | 259 | drivers/char/lp.c | return temp-buf?temp-buf:-ENOSPC; |
buf | 267 | drivers/char/lp.c | return temp-buf?temp-buf:-EIO; |
buf | 276 | drivers/char/lp.c | return temp-buf?temp-buf:-EIO; |
buf | 284 | drivers/char/lp.c | if (temp != buf) |
buf | 285 | drivers/char/lp.c | return temp-buf; |
buf | 300 | drivers/char/lp.c | return temp-buf; |
buf | 303 | drivers/char/lp.c | static int lp_write(struct inode * inode, struct file * file, const char * buf, int count) |
buf | 312 | drivers/char/lp.c | return lp_write_interrupt(minor, buf, count); |
buf | 314 | drivers/char/lp.c | return lp_write_polled(minor, buf, count); |
buf | 28 | drivers/char/mem.c | static int read_ram(struct inode * inode, struct file * file,char * buf, int count) |
buf | 33 | drivers/char/mem.c | static int write_ram(struct inode * inode, struct file * file, const char * buf, int count) |
buf | 38 | drivers/char/mem.c | static int read_mem(struct inode * inode, struct file * file,char * buf, int count) |
buf | 51 | drivers/char/mem.c | put_user(0,buf); |
buf | 52 | drivers/char/mem.c | buf++; |
buf | 57 | drivers/char/mem.c | memcpy_tofs(buf,(void *) p,count); |
buf | 63 | drivers/char/mem.c | static int write_mem(struct inode * inode, struct file * file,const char * buf, int count) |
buf | 77 | drivers/char/mem.c | buf++; |
buf | 82 | drivers/char/mem.c | memcpy_fromfs((void *) p,buf,count); |
buf | 109 | drivers/char/mem.c | static int read_kmem(struct inode *inode, struct file *file, char *buf, int count) |
buf | 113 | drivers/char/mem.c | read1 = read_mem(inode, file, buf, count); |
buf | 116 | drivers/char/mem.c | read2 = vread(buf + read1, (char *) ((unsigned long) file->f_pos), count - read1); |
buf | 123 | drivers/char/mem.c | static int read_port(struct inode * inode,struct file * file,char * buf, int count) |
buf | 126 | drivers/char/mem.c | char * tmp = buf; |
buf | 134 | drivers/char/mem.c | return tmp-buf; |
buf | 137 | drivers/char/mem.c | static int write_port(struct inode * inode,struct file * file,const char * buf, int count) |
buf | 140 | drivers/char/mem.c | const char * tmp = buf; |
buf | 148 | drivers/char/mem.c | return tmp-buf; |
buf | 151 | drivers/char/mem.c | static int read_null(struct inode * node,struct file * file,char * buf,int count) |
buf | 156 | drivers/char/mem.c | static int write_null(struct inode * inode,struct file * file, const char * buf, int count) |
buf | 161 | drivers/char/mem.c | static int read_zero(struct inode * node,struct file * file,char * buf,int count) |
buf | 166 | drivers/char/mem.c | put_user(0,buf); |
buf | 167 | drivers/char/mem.c | buf++; |
buf | 181 | drivers/char/mem.c | static int read_full(struct inode * node,struct file * file,char * buf,int count) |
buf | 186 | drivers/char/mem.c | static int write_full(struct inode * inode,struct file * file, const char * buf, int count) |
buf | 315 | drivers/char/n_tty.c | char buf[64]; |
buf | 319 | drivers/char/n_tty.c | printk("%s: %d input overrun(s)\n", _tty_name(tty, buf), |
buf | 743 | drivers/char/n_tty.c | unsigned char *buf, unsigned int nr) |
buf | 747 | drivers/char/n_tty.c | unsigned char *b = buf; |
buf | 804 | drivers/char/n_tty.c | if (b != buf) |
buf | 815 | drivers/char/n_tty.c | if (((minimum - (b - buf)) < tty->minimum_to_wake) && |
buf | 816 | drivers/char/n_tty.c | ((minimum - (b - buf)) >= 1)) |
buf | 817 | drivers/char/n_tty.c | tty->minimum_to_wake = (minimum - (b - buf)); |
buf | 842 | drivers/char/n_tty.c | if (tty->packet && b == buf) { |
buf | 892 | drivers/char/n_tty.c | if (b - buf >= minimum || !nr) |
buf | 904 | drivers/char/n_tty.c | size = b - buf; |
buf | 915 | drivers/char/n_tty.c | const unsigned char * buf, unsigned int nr) |
buf | 919 | drivers/char/n_tty.c | const unsigned char *b = buf; |
buf | 964 | drivers/char/n_tty.c | return (b - buf) ? b - buf : retval; |
buf | 106 | drivers/char/psaux.c | unsigned char buf[AUX_BUF_SIZE]; |
buf | 183 | drivers/char/psaux.c | result = queue->buf[queue->tail]; |
buf | 210 | drivers/char/psaux.c | queue->buf[head] = inb(AUX_INPUT_PORT); |
buf | 233 | drivers/char/psaux.c | queue->buf[head] = inb(qp_data); |
buf | 113 | drivers/char/pty.c | const unsigned char *buf, int count) |
buf | 128 | drivers/char/pty.c | memcpy_fromfs(temp_buffer, buf, n); |
buf | 134 | drivers/char/pty.c | buf += n; c+= n; |
buf | 140 | drivers/char/pty.c | to->ldisc.receive_buf(to, buf, 0, c); |
buf | 165 | drivers/char/scc.c | int scc_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count); |
buf | 2141 | drivers/char/scc.c | int scc_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count) |
buf | 2164 | drivers/char/scc.c | memcpy_fromfs(tbuf, buf, cnt); |
buf | 2166 | drivers/char/scc.c | memcpy(tbuf, buf, cnt); |
buf | 2168 | drivers/char/scc.c | buf += cnt; |
buf | 1295 | drivers/char/serial.c | const unsigned char *buf, int count) |
buf | 1317 | drivers/char/serial.c | memcpy_fromfs(tmp_buf, buf, c); |
buf | 1323 | drivers/char/serial.c | memcpy(info->xmit_buf + info->xmit_head, buf, c); |
buf | 1327 | drivers/char/serial.c | buf += c; |
buf | 1389 | drivers/char/serial.c | char buf[64]; |
buf | 1391 | drivers/char/serial.c | printk("throttle %s: %d....\n", _tty_name(tty, buf), |
buf | 1412 | drivers/char/serial.c | char buf[64]; |
buf | 1414 | drivers/char/serial.c | printk("unthrottle %s: %d....\n", _tty_name(tty, buf), |
buf | 1918 | drivers/char/tpqic02.c | static int qic02_tape_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 1934 | drivers/char/tpqic02.c | MINOR(dev), buf, count, (unsigned long) filp->f_pos, flags); |
buf | 1948 | drivers/char/tpqic02.c | error = verify_area(VERIFY_WRITE, buf, count); |
buf | 2039 | drivers/char/tpqic02.c | memcpy_tofs( (void *) buf, (void *) buffaddr, bytes_done); |
buf | 2053 | drivers/char/tpqic02.c | buf += bytes_done; |
buf | 2093 | drivers/char/tpqic02.c | static int qic02_tape_write(struct inode * inode, struct file * filp, const char * buf, int count) |
buf | 2108 | drivers/char/tpqic02.c | MINOR(dev), buf, count, (unsigned long) filp->f_pos, flags); |
buf | 2130 | drivers/char/tpqic02.c | error = verify_area(VERIFY_READ, buf, count); |
buf | 2166 | drivers/char/tpqic02.c | memcpy_fromfs( (void *) buffaddr, (const void *) buf, bytes_todo); |
buf | 2220 | drivers/char/tpqic02.c | buf += bytes_done; |
buf | 2228 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": status_bytes_wr %x, buf %p, total_bytes_done %lx, count %x\n", status_bytes_wr, buf, total_bytes_done, count); |
buf | 116 | drivers/char/tty_io.c | char *_tty_name(struct tty_struct *tty, char *buf) |
buf | 119 | drivers/char/tty_io.c | sprintf(buf, "%s%d", tty->driver.name, |
buf | 123 | drivers/char/tty_io.c | strcpy(buf, "NULL tty"); |
buf | 124 | drivers/char/tty_io.c | return buf; |
buf | 129 | drivers/char/tty_io.c | static char buf[64]; |
buf | 131 | drivers/char/tty_io.c | return(_tty_name(tty, buf)); |
buf | 289 | drivers/char/tty_io.c | static int hung_up_tty_read(struct inode * inode, struct file * file, char * buf, int count) |
buf | 294 | drivers/char/tty_io.c | static int hung_up_tty_write(struct inode * inode, struct file * file, const char * buf, int count) |
buf | 685 | drivers/char/tty_io.c | static int tty_read(struct inode * inode, struct file * file, char * buf, int count) |
buf | 714 | drivers/char/tty_io.c | i = (tty->ldisc.read)(tty,file,(unsigned char *)buf,(unsigned int)count); |
buf | 722 | drivers/char/tty_io.c | static int tty_write(struct inode * inode, struct file * file, const char * buf, int count) |
buf | 750 | 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 | 375 | drivers/net/3c501.c | unsigned char *buf = skb->data; |
buf | 398 | drivers/net/3c501.c | outsb(DATAPORT,buf,skb->len); /* load buffer (usual thing each byte increments the pointer) */ |
buf | 73 | drivers/net/3c503.c | const unsigned char *buf, const start_page); |
buf | 74 | drivers/net/3c503.c | static int el2_block_input(struct device *dev, int count, char *buf, |
buf | 382 | drivers/net/3c503.c | const unsigned char *buf, const start_page) |
buf | 393 | drivers/net/3c503.c | memcpy(dest_addr, buf, count); |
buf | 394 | drivers/net/3c503.c | if (ei_debug > 2 && memcmp(dest_addr, buf, count)) |
buf | 417 | drivers/net/3c503.c | outb(buf[i], E33G_FIFOH); |
buf | 425 | drivers/net/3c503.c | el2_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 437 | drivers/net/3c503.c | memcpy(buf, (char *)dev->mem_start + ring_offset, semi_count); |
buf | 439 | drivers/net/3c503.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
buf | 442 | drivers/net/3c503.c | memcpy(buf, (char *)dev->mem_start + ring_offset, count); |
buf | 462 | drivers/net/3c503.c | buf[i] = inb_p(E33G_FIFOH); |
buf | 293 | drivers/net/3c507.c | static void hardware_send_packet(struct device *dev, void *buf, short length); |
buf | 500 | drivers/net/3c507.c | unsigned char *buf = skb->data; |
buf | 504 | drivers/net/3c507.c | hardware_send_packet(dev, buf, length); |
buf | 768 | drivers/net/3c507.c | hardware_send_packet(struct device *dev, void *buf, short length) |
buf | 793 | drivers/net/3c507.c | memcpy(write_ptr, buf, length); |
buf | 76 | drivers/net/ac3200.c | char *buf, int ring_offset); |
buf | 78 | drivers/net/ac3200.c | const unsigned char *buf, const int start_page); |
buf | 243 | drivers/net/ac3200.c | static int ac_block_input(struct device *dev, int count, char *buf, |
buf | 251 | drivers/net/ac3200.c | memcpy(buf, (char*)xfer_start, semi_count); |
buf | 253 | drivers/net/ac3200.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
buf | 256 | drivers/net/ac3200.c | memcpy(buf, (char*)xfer_start, count); |
buf | 262 | drivers/net/ac3200.c | const unsigned char *buf, int start_page) |
buf | 266 | drivers/net/ac3200.c | memcpy((unsigned char *)shmem, buf, count); |
buf | 415 | drivers/net/at1700.c | unsigned char *buf = skb->data; |
buf | 421 | drivers/net/at1700.c | outsw(ioaddr + DATAPORT, buf, (length + 1) >> 1); |
buf | 449 | drivers/net/atp.c | unsigned char *buf = skb->data; |
buf | 460 | drivers/net/atp.c | write_packet(ioaddr, length, buf, dev->if_port); |
buf | 344 | drivers/net/de4x5.c | u32 buf; |
buf | 425 | drivers/net/de4x5.c | static void load_packet(struct device *dev, char *buf, u32 flags, struct sk_buff *skb); |
buf | 636 | drivers/net/de4x5.c | lp->rx_ring[i].buf = virt_to_bus(tmp + i * RX_BUFF_SZ); |
buf | 742 | drivers/net/de4x5.c | kfree_s(bus_to_virt(lp->rx_ring[0].buf), |
buf | 808 | drivers/net/de4x5.c | printk("0x%8.8x ",lp->rx_ring[i].buf); |
buf | 811 | drivers/net/de4x5.c | printk("...0x%8.8x\n",lp->rx_ring[i].buf); |
buf | 815 | drivers/net/de4x5.c | printk("0x%8.8x ", lp->tx_ring[i].buf); |
buf | 818 | drivers/net/de4x5.c | printk("...0x%8.8x\n", lp->tx_ring[i].buf); |
buf | 1137 | drivers/net/de4x5.c | char *buf; |
buf | 1162 | drivers/net/de4x5.c | memcpy(skb_put(skb,len), bus_to_virt(lp->rx_ring[lp->rx_old].buf), len); |
buf | 1163 | drivers/net/de4x5.c | memcpy(skb_put(skb,pkt_len-len), bus_to_virt(lp->rx_ring[0].buf), pkt_len - len); |
buf | 1165 | drivers/net/de4x5.c | memcpy(skb_put(skb,pkt_len), bus_to_virt(lp->rx_ring[lp->rx_old].buf), pkt_len); |
buf | 1180 | drivers/net/de4x5.c | buf = skb->data; /* Look at the dest addr */ |
buf | 1181 | drivers/net/de4x5.c | if (buf[0] & 0x01) { /* Multicast/Broadcast */ |
buf | 1182 | drivers/net/de4x5.c | if ((*(s32 *)&buf[0] == -1) && (*(s16 *)&buf[4] == -1)) { |
buf | 1187 | drivers/net/de4x5.c | } else if ((*(s32 *)&buf[0] == *(s32 *)&dev->dev_addr[0]) && |
buf | 1188 | drivers/net/de4x5.c | (*(s16 *)&buf[4] == *(s16 *)&dev->dev_addr[4])) { |
buf | 1367 | drivers/net/de4x5.c | static void load_packet(struct device *dev, char *buf, u32 flags, struct sk_buff *skb) |
buf | 1371 | 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 | 2767 | drivers/net/de4x5.c | kfree_s(bus_to_virt(lp->rx_ring[0].buf), RX_BUFF_SZ * NUM_RX_DESC + ALIGN); |
buf | 948 | drivers/net/depca.c | unsigned char * buf; |
buf | 950 | drivers/net/depca.c | buf = skb_put(skb,pkt_len); |
buf | 954 | drivers/net/depca.c | memcpy_fromio(buf, lp->rx_memcpy[lp->rx_old], len); |
buf | 955 | drivers/net/depca.c | memcpy_fromio(buf + len, lp->rx_memcpy[0], pkt_len-len); |
buf | 957 | drivers/net/depca.c | memcpy_fromio(buf, lp->rx_memcpy[lp->rx_old], pkt_len); |
buf | 977 | drivers/net/depca.c | if (buf[0] & 0x01) { /* Multicast/Broadcast */ |
buf | 978 | drivers/net/depca.c | if ((*(s16 *)&buf[0] == -1) && (*(s32 *)&buf[2] == -1)) { |
buf | 983 | drivers/net/depca.c | } else if ((*(s16 *)&buf[0] == *(s16 *)&dev->dev_addr[0]) && |
buf | 984 | drivers/net/depca.c | (*(s32 *)&buf[2] == *(s32 *)&dev->dev_addr[2])) { |
buf | 103 | drivers/net/e2100.c | char *buf, int ring_offset); |
buf | 105 | drivers/net/e2100.c | const unsigned char *buf, const start_page); |
buf | 284 | drivers/net/e2100.c | e21_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 294 | drivers/net/e2100.c | ((int*)buf)[0] = ((int*)shared_mem)[0]; |
buf | 296 | drivers/net/e2100.c | memcpy(buf, shared_mem + (ring_offset & 0xff), count); |
buf | 305 | drivers/net/e2100.c | e21_block_output(struct device *dev, int count, const unsigned char *buf, |
buf | 316 | drivers/net/e2100.c | memcpy((char*)shared_mem, buf, count); |
buf | 153 | drivers/net/eepro.c | static void hardware_send_packet(struct device *dev, void *buf, short length); |
buf | 651 | drivers/net/eepro.c | unsigned char *buf = skb->data; |
buf | 653 | drivers/net/eepro.c | hardware_send_packet(dev, buf, length); |
buf | 930 | drivers/net/eepro.c | hardware_send_packet(struct device *dev, void *buf, short length) |
buf | 975 | drivers/net/eepro.c | outsw(ioaddr + IO_PORT, buf, (length + 1) >> 1); |
buf | 301 | drivers/net/eexpress.c | static void hardware_send_packet(struct device *dev, void *buf, short length); |
buf | 498 | drivers/net/eexpress.c | unsigned char *buf = skb->data; |
buf | 502 | drivers/net/eexpress.c | hardware_send_packet(dev, buf, length); |
buf | 852 | drivers/net/eexpress.c | hardware_send_packet(struct device *dev, void *buf, short length) |
buf | 878 | drivers/net/eexpress.c | outsw(ioaddr + DATAPORT, buf, (length + 1) >> 1); |
buf | 813 | drivers/net/ewrk3.c | unsigned char *buf; |
buf | 817 | drivers/net/ewrk3.c | buf = NULL; |
buf | 826 | drivers/net/ewrk3.c | buf = (char *) lp->shmem_base; |
buf | 829 | drivers/net/ewrk3.c | buf = (char *)((((short)page << 11) & 0x7800) + lp->shmem_base); |
buf | 832 | drivers/net/ewrk3.c | buf = (char *)((((short)page << 11) & 0xf800) + lp->shmem_base); |
buf | 859 | drivers/net/ewrk3.c | *buf++ = (char)(QMODE | PAD | IFC); /* control byte */ |
buf | 860 | drivers/net/ewrk3.c | *buf++ = (char)(skb->len & 0xff); /* length (16 bit xfer)*/ |
buf | 862 | drivers/net/ewrk3.c | *buf++ = (char)(((skb->len >> 8) & 0xff) | XCT); |
buf | 863 | drivers/net/ewrk3.c | *buf++ = 0x04; /* index byte */ |
buf | 864 | drivers/net/ewrk3.c | *(buf + skb->len) = 0x00; /* Write the XCT flag */ |
buf | 865 | drivers/net/ewrk3.c | memcpy(buf, skb->data, PRELOAD); /* Write PRELOAD bytes */ |
buf | 867 | drivers/net/ewrk3.c | memcpy(buf + PRELOAD, skb->data + PRELOAD, skb->len - PRELOAD); |
buf | 868 | drivers/net/ewrk3.c | *(buf + skb->len) = 0xff; /* Write the XCT flag */ |
buf | 870 | drivers/net/ewrk3.c | *buf++ = (char)((skb->len >> 8) & 0xff); |
buf | 871 | drivers/net/ewrk3.c | *buf++ = 0x04; /* index byte */ |
buf | 872 | drivers/net/ewrk3.c | memcpy(buf, skb->data, skb->len); /* Write data bytes */ |
buf | 978 | drivers/net/ewrk3.c | unsigned char page, tmpPage = 0, tmpLock = 0, *buf; |
buf | 983 | drivers/net/ewrk3.c | buf = NULL; |
buf | 1003 | drivers/net/ewrk3.c | buf = (char *) lp->shmem_base; |
buf | 1006 | drivers/net/ewrk3.c | buf = (char *)((((short)page << 11) & 0x7800) + lp->shmem_base); |
buf | 1009 | drivers/net/ewrk3.c | buf = (char *)((((short)page << 11) & 0xf800) + lp->shmem_base); |
buf | 1025 | drivers/net/ewrk3.c | rx_status = (char)(*buf++); |
buf | 1026 | drivers/net/ewrk3.c | pkt_len = (short)(*buf+((*(buf+1))<<8)); |
buf | 1027 | drivers/net/ewrk3.c | buf+=3; |
buf | 1050 | drivers/net/ewrk3.c | memcpy(p, buf, pkt_len); |
buf | 1071 | drivers/net/ewrk3.c | buf = skb->data; /* Look at the dest addr */ |
buf | 1072 | drivers/net/ewrk3.c | if (buf[0] & 0x01) { /* Multicast/Broadcast */ |
buf | 1073 | drivers/net/ewrk3.c | if ((*(long *)&buf[0] == -1) && (*(short *)&buf[4] == -1)) { |
buf | 1078 | drivers/net/ewrk3.c | } else if ((*(long *)&buf[0] == *(long *)&dev->dev_addr[0]) && |
buf | 1079 | drivers/net/ewrk3.c | (*(short *)&buf[4] == *(short *)&dev->dev_addr[4])) { |
buf | 105 | drivers/net/hp-plus.c | char *buf, int ring_offset); |
buf | 107 | drivers/net/hp-plus.c | const unsigned char *buf, const start_page); |
buf | 109 | drivers/net/hp-plus.c | char *buf, int ring_offset); |
buf | 111 | drivers/net/hp-plus.c | const unsigned char *buf, const start_page); |
buf | 314 | drivers/net/hp-plus.c | hpp_io_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 319 | drivers/net/hp-plus.c | insw(ioaddr + HP_DATAPORT, buf, count>>1); |
buf | 321 | drivers/net/hp-plus.c | buf[count-1] = inw(ioaddr + HP_DATAPORT); |
buf | 326 | drivers/net/hp-plus.c | hpp_mem_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 335 | drivers/net/hp-plus.c | memcpy(buf, (char*)dev->mem_start, (count + 3) & ~3); |
buf | 345 | drivers/net/hp-plus.c | const unsigned char *buf, const start_page) |
buf | 349 | drivers/net/hp-plus.c | outsl(ioaddr + HP_DATAPORT, buf, (count+3)>>2); |
buf | 355 | drivers/net/hp-plus.c | const unsigned char *buf, const start_page) |
buf | 362 | drivers/net/hp-plus.c | memcpy((char *)dev->mem_start, buf, (count + 3) & ~3); |
buf | 64 | drivers/net/hp.c | char *buf, int ring_offset); |
buf | 66 | drivers/net/hp.c | const unsigned char *buf, const start_page); |
buf | 223 | drivers/net/hp.c | hp_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 237 | drivers/net/hp.c | insw(nic_base - NIC_OFFSET + HP_DATAPORT,buf,count>>1); |
buf | 239 | drivers/net/hp.c | buf[count-1] = inb(nic_base - NIC_OFFSET + HP_DATAPORT), xfer_count++; |
buf | 241 | drivers/net/hp.c | insb(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count); |
buf | 259 | drivers/net/hp.c | const unsigned char *buf, const start_page) |
buf | 295 | drivers/net/hp.c | outsw(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count>>1); |
buf | 297 | drivers/net/hp.c | outsb(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count); |
buf | 96 | drivers/net/ne.c | char *buf, int ring_offset); |
buf | 98 | drivers/net/ne.c | const unsigned char *buf, const int start_page); |
buf | 375 | drivers/net/ne.c | ne_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 399 | drivers/net/ne.c | insw(NE_BASE + NE_DATAPORT,buf,count>>1); |
buf | 401 | drivers/net/ne.c | buf[count-1] = inb(NE_BASE + NE_DATAPORT); |
buf | 407 | drivers/net/ne.c | insb(NE_BASE + NE_DATAPORT, buf, count); |
buf | 439 | drivers/net/ne.c | const unsigned char *buf, const int start_page) |
buf | 496 | drivers/net/ne.c | outsw(NE_BASE + NE_DATAPORT, buf, count>>1); |
buf | 498 | drivers/net/ne.c | outsb(NE_BASE + NE_DATAPORT, buf, count); |
buf | 62 | drivers/net/ppp.c | #define skb_queue_head_init(buf) *(buf) = NULL |
buf | 807 | drivers/net/ppp.c | buffer [count] = tty->read_q.buf[i]; |
buf | 1179 | drivers/net/ppp.c | unsigned char *buf, int len) |
buf | 1198 | drivers/net/ppp.c | PUTC(*buf++, failure); |
buf | 1241 | drivers/net/ppp.c | ppp_read(struct tty_struct *tty, struct file *file, unsigned char *buf, unsigned int nr) |
buf | 1255 | drivers/net/ppp.c | buf, nr)); |
buf | 1271 | drivers/net/ppp.c | i = verify_area (VERIFY_WRITE,buf,nr); |
buf | 1298 | drivers/net/ppp.c | put_user (PPP_ADDRESS, buf++); |
buf | 1299 | drivers/net/ppp.c | put_user (PPP_CONTROL, buf++); |
buf | 1303 | drivers/net/ppp.c | put_user (c, buf++); |
buf | 1353 | drivers/net/ppp.c | ppp_write(struct tty_struct *tty, struct file *file, const unsigned char *buf, unsigned int nr) |
buf | 1375 | drivers/net/ppp.c | i = verify_area (VERIFY_READ,buf,nr); |
buf | 1380 | drivers/net/ppp.c | ppp_print_buffer ("write frame", buf, nr, USER_DS); |
buf | 1414 | drivers/net/ppp.c | ppp_stuff_char(ppp,get_user(buf++)); |
buf | 2057 | drivers/net/ppp.c | static void ppp_print_buffer(const char *name, const char *buf, int count, int seg) |
buf | 2069 | drivers/net/ppp.c | ppp_print_hex (line, buf, 8); |
buf | 2070 | drivers/net/ppp.c | ppp_print_char (&line[8 * 3], buf, 8); |
buf | 2073 | drivers/net/ppp.c | buf += 8; |
buf | 2078 | drivers/net/ppp.c | ppp_print_hex (line, buf, count); |
buf | 2079 | drivers/net/ppp.c | ppp_print_char (&line[8 * 3], buf, count); |
buf | 98 | drivers/net/seeq8005.c | extern void hardware_send_packet(struct device *dev, char *buf, int length); |
buf | 409 | drivers/net/seeq8005.c | unsigned char *buf = skb->data; |
buf | 411 | drivers/net/seeq8005.c | hardware_send_packet(dev, buf, length); |
buf | 537 | drivers/net/seeq8005.c | unsigned char *buf; |
buf | 547 | drivers/net/seeq8005.c | buf = skb_put(skb,pkt_len); |
buf | 549 | drivers/net/seeq8005.c | insw(SEEQ_BUFFER, buf, (pkt_len + 1) >> 1); |
buf | 552 | drivers/net/seeq8005.c | char * p = buf; |
buf | 695 | drivers/net/seeq8005.c | void hardware_send_packet(struct device * dev, char *buf, int length) |
buf | 715 | drivers/net/seeq8005.c | outsw( SEEQ_BUFFER, buf, (length +1) >> 1); |
buf | 119 | drivers/net/skeleton.c | extern void hardware_send_packet(short ioaddr, char *buf, int length); |
buf | 368 | drivers/net/skeleton.c | unsigned char *buf = skb->data; |
buf | 370 | drivers/net/skeleton.c | hardware_send_packet(ioaddr, buf, length); |
buf | 70 | drivers/net/smc-ultra.c | char *buf, int ring_offset); |
buf | 72 | drivers/net/smc-ultra.c | const unsigned char *buf, const start_page); |
buf | 260 | drivers/net/smc-ultra.c | ultra_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 271 | drivers/net/smc-ultra.c | memcpy(buf, xfer_start, semi_count); |
buf | 273 | drivers/net/smc-ultra.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
buf | 277 | drivers/net/smc-ultra.c | memcpy(buf, xfer_start, count); |
buf | 284 | drivers/net/smc-ultra.c | ultra_block_output(struct device *dev, int count, const unsigned char *buf, |
buf | 293 | drivers/net/smc-ultra.c | memcpy(shmem, buf, count); |
buf | 1282 | drivers/net/wavelan.c | hardware_send_packet(device *dev, void *buf, short length) |
buf | 1348 | drivers/net/wavelan.c | obram_write(ioaddr, buf_addr, buf, length); |
buf | 1377 | drivers/net/wavelan.c | a = (unsigned char *)buf; |
buf | 1445 | drivers/net/wavelan.c | unsigned char *buf; |
buf | 1448 | drivers/net/wavelan.c | buf = skb->data; |
buf | 1450 | drivers/net/wavelan.c | hardware_send_packet(dev, buf, length); |
buf | 49 | drivers/net/wd.c | char *buf, int ring_offset); |
buf | 51 | drivers/net/wd.c | const unsigned char *buf, const start_page); |
buf | 325 | drivers/net/wd.c | wd_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 335 | drivers/net/wd.c | ((int*)buf)[0] = ((int*)xfer_start)[0]; |
buf | 342 | drivers/net/wd.c | memcpy(buf, (char *)xfer_start, semi_count); |
buf | 344 | drivers/net/wd.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
buf | 346 | drivers/net/wd.c | memcpy(buf, (char *)xfer_start, count); |
buf | 356 | drivers/net/wd.c | wd_block_output(struct device *dev, int count, const unsigned char *buf, |
buf | 366 | drivers/net/wd.c | memcpy((char *)shmem, buf, count); |
buf | 369 | drivers/net/wd.c | memcpy((char *)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 | 467 | drivers/pci/pci.c | static int sprint_dev_config(struct pci_dev *dev, char *buf, int size) |
buf | 490 | drivers/pci/pci.c | len += sprintf(buf + len, " Bus %2d, device %3d, function %2d:\n", |
buf | 496 | drivers/pci/pci.c | len += sprintf(buf + len, " %s: %s %s (rev %d).\n ", |
buf | 501 | drivers/pci/pci.c | len += sprintf(buf + len, |
buf | 515 | drivers/pci/pci.c | len += sprintf(buf + len, str); |
buf | 522 | drivers/pci/pci.c | len += sprintf(buf + len, fast_b2b_capable); |
buf | 531 | drivers/pci/pci.c | len += sprintf(buf + len, BIST_capable); |
buf | 539 | drivers/pci/pci.c | len += sprintf(buf + len, "IRQ %d. ", dev->irq); |
buf | 546 | drivers/pci/pci.c | len += sprintf(buf + len, "Master Capable. "); |
buf | 548 | drivers/pci/pci.c | len += sprintf(buf + len, "Latency=%d. ", latency); |
buf | 550 | drivers/pci/pci.c | len += sprintf(buf + len, "No bursts. "); |
buf | 552 | drivers/pci/pci.c | len += sprintf(buf + len, "Min Gnt=%d.", min_gnt); |
buf | 554 | drivers/pci/pci.c | len += sprintf(buf + len, "Max Lat=%d.", max_lat); |
buf | 568 | drivers/pci/pci.c | len += sprintf(buf + len, |
buf | 592 | drivers/pci/pci.c | len += sprintf(buf + len, |
buf | 599 | drivers/pci/pci.c | len += sprintf(buf + len, "\n"); |
buf | 608 | drivers/pci/pci.c | int get_pci_list(char *buf) |
buf | 616 | drivers/pci/pci.c | len = sprintf(buf, "PCI devices found:\n"); |
buf | 619 | drivers/pci/pci.c | nprinted = sprint_dev_config(dev, buf + len, size - len); |
buf | 621 | drivers/pci/pci.c | return len + sprintf(buf + len, MSG); |
buf | 2055 | drivers/scsi/53c7,8xx.c | char buf[80]; |
buf | 2064 | drivers/scsi/53c7,8xx.c | sprintf (buf, "scsi%d : bp : warning : processor not halted\b", |
buf | 2066 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, strlen(buf)); |
buf | 2072 | drivers/scsi/53c7,8xx.c | sprintf (buf, "scsi%d : bp : success : at %08x, replaces %08x %08x", |
buf | 2074 | drivers/scsi/53c7,8xx.c | len = strlen(buf); |
buf | 2077 | drivers/scsi/53c7,8xx.c | sprintf(buf + len, "%08x\n", * (u32 *) bp->addr); |
buf | 2079 | drivers/scsi/53c7,8xx.c | sprintf(buf + len, "\n"); |
buf | 2081 | drivers/scsi/53c7,8xx.c | len = strlen(buf); |
buf | 2082 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, len); |
buf | 2093 | drivers/scsi/53c7,8xx.c | char buf[80]; |
buf | 2101 | drivers/scsi/53c7,8xx.c | sprintf (buf, "scsi%d : bs : failure : NCR not halted\n", host->host_no); |
buf | 2102 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, strlen(buf)); |
buf | 2150 | drivers/scsi/53c7,8xx.c | char *buf,int count) { |
buf | 2163 | drivers/scsi/53c7,8xx.c | if (error = verify_area(VERIFY_READ,buf,count)) |
buf | 2169 | drivers/scsi/53c7,8xx.c | memcpy_from_fs(input_buf, buf, count); |
buf | 2202 | drivers/scsi/53c7,8xx.c | char *buf,int count) { |
buf | 2207 | drivers/scsi/53c7,8xx.c | static debugger_kernel_write (struct Scsi_Host *host, char *buf, size_t |
buf | 2220 | drivers/scsi/53c7,8xx.c | memcpy (hostdata->debug_write, buf, copy); |
buf | 2221 | drivers/scsi/53c7,8xx.c | buf += copy; |
buf | 2597 | drivers/scsi/53c7,8xx.c | u32 buf = cmd->use_sg ? |
buf | 2607 | drivers/scsi/53c7,8xx.c | cmd_datain[1] = buf; |
buf | 2621 | drivers/scsi/53c7,8xx.c | cmd_dataout[1] = buf; |
buf | 3057 | drivers/scsi/53c7,8xx.c | char buf[80]; /* Debugging sprintf buffer */ |
buf | 3717 | drivers/scsi/53c7,8xx.c | char buf[80], /* Temporary buffer and pointer */ |
buf | 3723 | drivers/scsi/53c7,8xx.c | sprintf(buf, "%s%p : 0x%08x 0x%08x", (prefix ? prefix : ""), |
buf | 3725 | drivers/scsi/53c7,8xx.c | tmp = buf + strlen(buf); |
buf | 3735 | drivers/scsi/53c7,8xx.c | printk ("%s", buf); |
buf | 3738 | drivers/scsi/53c7,8xx.c | size_t len = strlen(buf); |
buf | 3739 | drivers/scsi/53c7,8xx.c | debugger_kernel_write(host, buf, len); |
buf | 1029 | drivers/scsi/aha1542.c | unchar buf[8]; |
buf | 1033 | drivers/scsi/aha1542.c | for (i = 0; i < sizeof(buf); ++i) buf[i] = 0x87; |
buf | 1035 | drivers/scsi/aha1542.c | if (!aha1542_command(i, cmd, buf, sizeof(buf))) { |
buf | 1037 | drivers/scsi/aha1542.c | i, xscsi2int(buf+4), xscsi2int(buf)); |
buf | 948 | drivers/scsi/aic7xxx.c | char buf[256]; |
buf | 951 | drivers/scsi/aic7xxx.c | vsprintf(buf, fmt, ap); |
buf | 952 | drivers/scsi/aic7xxx.c | printk(buf); |
buf | 1197 | drivers/scsi/aic7xxx.c | static char buf[10]; |
buf | 1201 | drivers/scsi/aic7xxx.c | strcpy(buf, "????"); |
buf | 1230 | drivers/scsi/aic7xxx.c | strncpy(buf, bp, len); |
buf | 1231 | drivers/scsi/aic7xxx.c | buf[len] = '\0'; |
buf | 1235 | drivers/scsi/aic7xxx.c | return buf; |
buf | 2324 | drivers/scsi/aic7xxx.c | unsigned char buf[4]; |
buf | 2328 | drivers/scsi/aic7xxx.c | unsigned char signature[sizeof(buf)]; |
buf | 2341 | drivers/scsi/aic7xxx.c | for (i = 0; i < sizeof(buf); i++) |
buf | 2344 | drivers/scsi/aic7xxx.c | buf[i] = inb(base + i); |
buf | 2352 | 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 | 1277 | drivers/scsi/buslogic.c | unsigned char buf[8]; |
buf | 1285 | drivers/scsi/buslogic.c | for (i = 0; i < sizeof buf; i++) |
buf | 1286 | drivers/scsi/buslogic.c | buf[i] = 0x87; |
buf | 1288 | drivers/scsi/buslogic.c | if (!buslogic_command(i, cmd, buf, sizeof buf)) { |
buf | 1290 | drivers/scsi/buslogic.c | i, *(int *)(buf + 4), *(int *)buf); |
buf | 754 | drivers/scsi/eata_dma.c | int get_conf_PIO(u32 base, struct get_conf *buf) |
buf | 762 | drivers/scsi/eata_dma.c | memset(buf, 0, sizeof(struct get_conf)); |
buf | 773 | drivers/scsi/eata_dma.c | for (p = (u16 *) buf; |
buf | 774 | drivers/scsi/eata_dma.c | (long)p <= ((long)buf + (sizeof(struct get_conf) / 2)); p++) { |
buf | 784 | drivers/scsi/eata_dma.c | if (htonl(EATA_SIGNATURE) == buf->signature) { |
buf | 787 | drivers/scsi/eata_dma.c | (uint) (buf->version))); |
buf | 1080 | drivers/scsi/eata_dma.c | void find_EISA(struct get_conf *buf, Scsi_Host_Template * tpnt) |
buf | 1104 | drivers/scsi/eata_dma.c | if (get_conf_PIO(base, buf) == TRUE) { |
buf | 1105 | drivers/scsi/eata_dma.c | DBG(DBG_PROBE && DBG_EISA, print_config(buf)); |
buf | 1106 | drivers/scsi/eata_dma.c | if (buf->IRQ) { |
buf | 1107 | drivers/scsi/eata_dma.c | register_HBA(base, buf, tpnt, IS_EISA); |
buf | 1125 | drivers/scsi/eata_dma.c | void find_ISA(struct get_conf *buf, Scsi_Host_Template * tpnt) |
buf | 1131 | drivers/scsi/eata_dma.c | if (get_conf_PIO(ISAbases[i],buf) == TRUE){ |
buf | 1132 | drivers/scsi/eata_dma.c | register_HBA(ISAbases[i], buf, tpnt, IS_ISA); |
buf | 1144 | drivers/scsi/eata_dma.c | void find_PCI(struct get_conf *buf, Scsi_Host_Template * tpnt) |
buf | 1204 | drivers/scsi/eata_dma.c | if (get_conf_PIO(base, buf) == TRUE) { |
buf | 1205 | drivers/scsi/eata_dma.c | if (buf->FORCADR) /* If the address is forced */ |
buf | 1213 | drivers/scsi/eata_dma.c | register_HBA(base, buf, tpnt, IS_PCI); |
buf | 575 | drivers/scsi/eata_pio.c | int get_pio_conf_PIO(u32 base, struct get_conf *buf) |
buf | 584 | drivers/scsi/eata_pio.c | memset(buf, 0, sizeof(struct get_conf)); |
buf | 595 | drivers/scsi/eata_pio.c | for (p = (ushort *) buf; |
buf | 596 | drivers/scsi/eata_pio.c | (long)p <= ((long)buf + (sizeof(struct get_conf) / 2)); p++) { |
buf | 605 | drivers/scsi/eata_pio.c | if (htonl(EATA_SIGNATURE) == buf->signature) { |
buf | 608 | drivers/scsi/eata_pio.c | (uint) (buf->version))); |
buf | 615 | drivers/scsi/eata_pio.c | buf->IRQ = ISAirqs[z]; |
buf | 812 | drivers/scsi/eata_pio.c | void find_pio_ISA(struct get_conf *buf, Scsi_Host_Template * tpnt) |
buf | 818 | drivers/scsi/eata_pio.c | if (get_pio_conf_PIO(ISAbases[i], buf) == TRUE){ |
buf | 819 | drivers/scsi/eata_pio.c | register_pio_HBA(ISAbases[i], buf, tpnt); |
buf | 827 | drivers/scsi/eata_pio.c | void find_pio_EISA(struct get_conf *buf, Scsi_Host_Template * tpnt) |
buf | 851 | drivers/scsi/eata_pio.c | if (get_pio_conf_PIO(base, buf) == TRUE) { |
buf | 852 | drivers/scsi/eata_pio.c | DBG(DBG_PROBE && DBG_EISA, print_pio_config(buf)); |
buf | 853 | drivers/scsi/eata_pio.c | if (buf->IRQ) { |
buf | 854 | drivers/scsi/eata_pio.c | register_pio_HBA(base, buf, tpnt); |
buf | 868 | drivers/scsi/eata_pio.c | void find_pio_PCI(struct get_conf *buf, Scsi_Host_Template * tpnt) |
buf | 927 | drivers/scsi/eata_pio.c | if (get_pio_conf_PIO(base, buf) == TRUE) { |
buf | 928 | drivers/scsi/eata_pio.c | if (buf->FORCADR) /* If the address is forced */ |
buf | 936 | drivers/scsi/eata_pio.c | register_pio_HBA(base, buf, tpnt); |
buf | 827 | drivers/scsi/fdomain.c | unsigned char buf[buflen]; |
buf | 950 | drivers/scsi/fdomain.c | SCinit.request_buffer = SCinit.buffer = buf; |
buf | 951 | drivers/scsi/fdomain.c | SCinit.request_bufflen = SCinit.bufflen = sizeof(buf)-1; |
buf | 967 | drivers/scsi/fdomain.c | for (j = 8; j < (buf[4] < 32 ? buf[4] : 32); j++) |
buf | 968 | drivers/scsi/fdomain.c | printk( "%c", buf[j] >= 20 ? buf[j] : ' ' ); |
buf | 974 | drivers/scsi/fdomain.c | blocks = (buf[0] << 24) | (buf[1] << 16) |
buf | 975 | drivers/scsi/fdomain.c | | (buf[2] << 8) | buf[3]; |
buf | 976 | drivers/scsi/fdomain.c | size = (buf[4] << 24) | (buf[5] << 16) | (buf[6] << 8) | buf[7]; |
buf | 1755 | drivers/scsi/fdomain.c | unsigned char buf[512 + sizeof( int ) * 2]; |
buf | 1757 | drivers/scsi/fdomain.c | int *sizes = (int *)buf; |
buf | 1847 | drivers/scsi/fdomain.c | (void *)buf ); |
buf | 110 | drivers/scsi/in2000.c | #define port_read(port,buf,nr) \ |
buf | 111 | drivers/scsi/in2000.c | __asm__("cld;rep;insw": :"d" (port),"D" (buf),"c" (nr):"cx","di") |
buf | 113 | drivers/scsi/in2000.c | #define port_write(port,buf,nr) \ |
buf | 114 | drivers/scsi/in2000.c | __asm__("cld;rep;outsw": :"d" (port),"S" (buf),"c" (nr):"cx","si") |
buf | 172 | drivers/scsi/scsi_ioctl.c | char * buf; |
buf | 218 | drivers/scsi/scsi_ioctl.c | buf = (char *) scsi_malloc(buf_needed); |
buf | 219 | drivers/scsi/scsi_ioctl.c | if (!buf) return -ENOMEM; |
buf | 220 | drivers/scsi/scsi_ioctl.c | memset(buf, 0, buf_needed); |
buf | 222 | drivers/scsi/scsi_ioctl.c | buf = NULL; |
buf | 238 | drivers/scsi/scsi_ioctl.c | memcpy_fromfs ((void *) buf, |
buf | 251 | drivers/scsi/scsi_ioctl.c | scsi_do_cmd(SCpnt, cmd, buf, needed, scsi_ioctl_done, MAX_TIMEOUT, |
buf | 277 | drivers/scsi/scsi_ioctl.c | memcpy_tofs ((void *) cmd_in, buf, outlen); |
buf | 281 | drivers/scsi/scsi_ioctl.c | if (buf) scsi_free(buf, buf_needed); |
buf | 296 | drivers/scsi/scsi_ioctl.c | printk("%02x ", buf[i]); |
buf | 245 | drivers/scsi/scsi_proc.c | char *buf, /* command buffer */ |
buf | 262 | drivers/scsi/scsi_proc.c | parseHandle *parseInit(char *buf, char *cmdList, int cmdNum) |
buf | 267 | drivers/scsi/scsi_proc.c | if (!buf || !cmdList) /* bad input ? */ |
buf | 276 | drivers/scsi/scsi_proc.c | handle->buf = handle->bufPos = buf; /* init handle */ |
buf | 1604 | drivers/scsi/seagate.c | unsigned char buf[256 + sizeof(int) * 2], cmd[6], *data, *page; |
buf | 1616 | drivers/scsi/seagate.c | sizes = (int *) buf; |
buf | 1636 | drivers/scsi/seagate.c | if (!(result = kernel_scsi_ioctl (disk->device, SCSI_IOCTL_SEND_COMMAND, (void *) buf))) { |
buf | 1649 | drivers/scsi/seagate.c | if (!(result = kernel_scsi_ioctl (disk->device, SCSI_IOCTL_SEND_COMMAND, (void *) buf))) { |
buf | 203 | drivers/scsi/sg.c | static int sg_read(struct inode *inode,struct file *filp,char *buf,int count) |
buf | 208 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_WRITE,buf,count))) |
buf | 230 | drivers/scsi/sg.c | memcpy_tofs(buf,&device->header,sizeof(struct sg_header)); |
buf | 231 | drivers/scsi/sg.c | buf+=sizeof(struct sg_header); |
buf | 235 | drivers/scsi/sg.c | memcpy_tofs(buf,device->buff,count-sizeof(struct sg_header)); |
buf | 292 | drivers/scsi/sg.c | static int sg_write(struct inode *inode,struct file *filp,const char *buf,int count) |
buf | 302 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_READ,buf,count))) |
buf | 333 | drivers/scsi/sg.c | memcpy_fromfs(&device->header,buf,sizeof(struct sg_header)); |
buf | 339 | drivers/scsi/sg.c | buf+=sizeof(struct sg_header); |
buf | 399 | drivers/scsi/sg.c | opcode = get_user(buf); |
buf | 427 | drivers/scsi/sg.c | memcpy_fromfs(cmnd,buf,size); |
buf | 428 | drivers/scsi/sg.c | buf+=size; |
buf | 435 | drivers/scsi/sg.c | if( direction == SG_SEND ) memcpy_fromfs(device->buff,buf, amt); |
buf | 322 | drivers/scsi/sr.c | unsigned char buf[40]; /* the buffer for the ioctl */ |
buf | 352 | drivers/scsi/sr.c | cmd = rec = &buf[8]; |
buf | 360 | drivers/scsi/sr.c | memset(buf,0,40); |
buf | 361 | drivers/scsi/sr.c | *((unsigned long*)buf) = 0x0; /* we send nothing... */ |
buf | 362 | drivers/scsi/sr.c | *((unsigned long*)buf+1) = 0x16; /* and receive 0x16 bytes */ |
buf | 367 | drivers/scsi/sr.c | SCSI_IOCTL_SEND_COMMAND, buf); |
buf | 396 | drivers/scsi/sr.c | memset(buf,0,40); |
buf | 397 | drivers/scsi/sr.c | *((unsigned long*)buf) = 0; |
buf | 398 | drivers/scsi/sr.c | *((unsigned long*)buf+1) = 4; /* we receive 4 bytes from the drive */ |
buf | 402 | drivers/scsi/sr.c | SCSI_IOCTL_SEND_COMMAND, buf); |
buf | 432 | drivers/scsi/sr.c | memset(buf,0,40); |
buf | 433 | drivers/scsi/sr.c | *((unsigned long*)buf) = 0; |
buf | 434 | drivers/scsi/sr.c | *((unsigned long*)buf+1) = 12; |
buf | 439 | drivers/scsi/sr.c | SCSI_IOCTL_SEND_COMMAND, buf); |
buf | 453 | drivers/scsi/sr.c | memset(buf,0,40); |
buf | 454 | drivers/scsi/sr.c | *((unsigned long*)buf) = 12; /* sending 12 bytes... */ |
buf | 455 | drivers/scsi/sr.c | *((unsigned long*)buf+1) = 0; |
buf | 464 | drivers/scsi/sr.c | SCSI_IOCTL_SEND_COMMAND, buf); |
buf | 477 | drivers/scsi/sr.c | memset(buf,0,40); |
buf | 478 | drivers/scsi/sr.c | *((unsigned long*)buf) = 0x0; /* we send nothing... */ |
buf | 479 | drivers/scsi/sr.c | *((unsigned long*)buf+1) = 0x0c; /* and receive 0x0c bytes */ |
buf | 484 | drivers/scsi/sr.c | SCSI_IOCTL_SEND_COMMAND, buf); |
buf | 754 | drivers/scsi/st.c | st_write(struct inode * inode, struct file * filp, const char * buf, int count) |
buf | 840 | drivers/scsi/st.c | b_point = buf; |
buf | 999 | drivers/scsi/st.c | st_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 1209 | drivers/scsi/st.c | memcpy_tofs(buf, (STp->buffer)->b_data + |
buf | 1212 | drivers/scsi/st.c | buf += transfer; |
buf | 633 | drivers/scsi/ultrastor.c | static char buf[64]; |
buf | 636 | drivers/scsi/ultrastor.c | sprintf(buf, "UltraStor 24F SCSI @ Slot %u IRQ%u\n", |
buf | 639 | drivers/scsi/ultrastor.c | sprintf(buf, "UltraStor 34F SCSI @ Port %03X BIOS %05X IRQ%u\n", |
buf | 643 | drivers/scsi/ultrastor.c | sprintf(buf, "UltraStor 14F SCSI @ Port %03X BIOS %05X IRQ%u DMA%u\n", |
buf | 646 | drivers/scsi/ultrastor.c | return buf; |
buf | 957 | drivers/scsi/wd7000.c | static unchar buf[256]; |
buf | 961 | drivers/scsi/wd7000.c | any2scsi(icb.len, sizeof(buf)); |
buf | 962 | drivers/scsi/wd7000.c | any2scsi(icb.ptr, (int) &buf); |
buf | 112 | drivers/sound/ad1848.c | static void ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
buf | 113 | drivers/sound/ad1848.c | static void ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
buf | 815 | drivers/sound/ad1848.c | ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
buf | 852 | drivers/sound/ad1848.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
buf | 891 | drivers/sound/ad1848.c | ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
buf | 927 | drivers/sound/ad1848.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
buf | 183 | drivers/sound/audio.c | audio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 243 | drivers/sound/audio.c | COPY_FROM_USER (&wr_dma_buf[dev][wr_buff_ptr[dev]], buf, p, l); |
buf | 247 | drivers/sound/audio.c | wr_dma_buf[dev], wr_buff_ptr[dev], buf, p, l); |
buf | 285 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 339 | drivers/sound/audio.c | COPY_TO_USER (buf, p, dmabuf, l); |
buf | 502 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 508 | drivers/sound/audio.c | audio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 99 | drivers/sound/dev_table.h | char *buf[MAX_SUB_BUFFERS]; |
buf | 134 | drivers/sound/dev_table.h | void (*output_block) (int dev, unsigned long buf, |
buf | 136 | drivers/sound/dev_table.h | void (*start_input) (int dev, unsigned long buf, |
buf | 134 | drivers/sound/dmabuf.c | dmap->buf[n] = dmap->raw_buf[i] + p; |
buf | 299 | drivers/sound/dmabuf.c | DMAbuf_getrdbuffer (int dev, char **buf, int *len, int dontblock) |
buf | 369 | drivers/sound/dmabuf.c | *buf = &dmap->buf[dmap->qhead][dmap->counts[dmap->qhead]]; |
buf | 573 | drivers/sound/dmabuf.c | DMAbuf_getwrbuffer (int dev, char **buf, int *size, int dontblock) |
buf | 639 | drivers/sound/dmabuf.c | *buf = dmap->buf[dmap->qtail]; |
buf | 1028 | drivers/sound/dmabuf.c | DMAbuf_getwrbuffer (int dev, char **buf, int *size, int dontblock) |
buf | 1034 | drivers/sound/dmabuf.c | DMAbuf_getrdbuffer (int dev, char **buf, int *len, int dontblock) |
buf | 2212 | drivers/sound/gus_wave.c | gus_transfer_output_block (int dev, unsigned long buf, |
buf | 2247 | drivers/sound/gus_wave.c | DMAbuf_start_dma (dev, buf + (chn * count), count, DMA_MODE_WRITE); |
buf | 2299 | drivers/sound/gus_wave.c | gus_sampling_output_block (int dev, unsigned long buf, int total_count, |
buf | 2302 | drivers/sound/gus_wave.c | pcm_current_buf = buf; |
buf | 2306 | drivers/sound/gus_wave.c | gus_transfer_output_block (dev, buf, total_count, intrflag, 0); |
buf | 2310 | drivers/sound/gus_wave.c | gus_sampling_start_input (int dev, unsigned long buf, int count, |
buf | 2318 | 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 | 279 | drivers/sound/midibuf.c | MIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 317 | drivers/sound/midibuf.c | COPY_FROM_USER (&tmp_data, buf, c, 1); |
buf | 330 | drivers/sound/midibuf.c | MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 364 | drivers/sound/midibuf.c | COPY_TO_USER (buf, c, &tmp_data, 1); |
buf | 269 | drivers/sound/pas2_pcm.c | pas_pcm_output_block (int dev, unsigned long buf, int count, |
buf | 274 | drivers/sound/pas2_pcm.c | TRACE (printk ("pas2_pcm.c: static void pas_pcm_output_block(char *buf = %P, int count = %X)\n", buf, count)); |
buf | 293 | drivers/sound/pas2_pcm.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
buf | 317 | drivers/sound/pas2_pcm.c | pas_pcm_start_input (int dev, unsigned long buf, int count, |
buf | 323 | drivers/sound/pas2_pcm.c | TRACE (printk ("pas2_pcm.c: static void pas_pcm_start_input(char *buf = %P, int count = %X)\n", buf, count)); |
buf | 339 | drivers/sound/pas2_pcm.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
buf | 86 | drivers/sound/patmgr.c | pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 109 | drivers/sound/patmgr.c | COPY_TO_USER (buf, 0, (char *) mbox[dev], count); |
buf | 124 | drivers/sound/patmgr.c | pmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 134 | drivers/sound/patmgr.c | COPY_FROM_USER (mbox[dev], buf, 0, 4); |
buf | 145 | drivers/sound/patmgr.c | buf, 4, count, 1); |
buf | 163 | drivers/sound/patmgr.c | COPY_FROM_USER (&((char *) mbox[dev])[4], buf, 4, count - 4); |
buf | 450 | drivers/sound/pss.c | download_boot_block (void *dev_info, copr_buffer * buf) |
buf | 452 | drivers/sound/pss.c | if (buf->len <= 0 || buf->len > sizeof (buf->data)) |
buf | 455 | drivers/sound/pss.c | if (!pss_download_boot (devc, buf->data, buf->len, buf->flags)) |
buf | 479 | drivers/sound/pss.c | copr_buffer *buf; |
buf | 482 | drivers/sound/pss.c | buf = (copr_buffer *) KERNEL_MALLOC (sizeof (copr_buffer)); |
buf | 483 | drivers/sound/pss.c | IOCTL_FROM_USER ((char *) buf, (char *) arg, 0, sizeof (*buf)); |
buf | 484 | drivers/sound/pss.c | err = download_boot_block (dev_info, buf); |
buf | 485 | drivers/sound/pss.c | KERNEL_FREE (buf); |
buf | 492 | drivers/sound/pss.c | copr_debug_buf buf; |
buf | 496 | drivers/sound/pss.c | IOCTL_FROM_USER ((char *) &buf, (char *) arg, 0, sizeof (buf)); |
buf | 505 | drivers/sound/pss.c | if (!pss_put_dspword (devc, (unsigned short) (buf.parm1 & 0xffff))) |
buf | 517 | drivers/sound/pss.c | buf.parm1 = tmp; |
buf | 520 | drivers/sound/pss.c | IOCTL_TO_USER ((char *) arg, 0, &buf, sizeof (buf)); |
buf | 527 | drivers/sound/pss.c | copr_debug_buf buf; |
buf | 531 | drivers/sound/pss.c | IOCTL_FROM_USER ((char *) &buf, (char *) arg, 0, sizeof (buf)); |
buf | 540 | drivers/sound/pss.c | if (!pss_put_dspword (devc, (unsigned short) (buf.parm1 & 0xffff))) |
buf | 546 | drivers/sound/pss.c | tmp = (unsigned int) buf.parm2 & 0xffff; |
buf | 560 | drivers/sound/pss.c | copr_debug_buf buf; |
buf | 564 | drivers/sound/pss.c | IOCTL_FROM_USER ((char *) &buf, (char *) arg, 0, sizeof (buf)); |
buf | 573 | drivers/sound/pss.c | if (!pss_put_dspword (devc, (unsigned short) (buf.parm1 & 0xffff))) |
buf | 579 | drivers/sound/pss.c | tmp = ((unsigned int) buf.parm2 >> 8) & 0xffff; |
buf | 586 | drivers/sound/pss.c | tmp = (unsigned int) buf.parm2 & 0x00ff; |
buf | 600 | drivers/sound/pss.c | copr_debug_buf buf; |
buf | 604 | drivers/sound/pss.c | IOCTL_FROM_USER ((char *) &buf, (char *) arg, 0, sizeof (buf)); |
buf | 613 | drivers/sound/pss.c | if (!pss_put_dspword (devc, (unsigned short) (buf.parm1 & 0xffff))) |
buf | 625 | drivers/sound/pss.c | buf.parm1 = tmp << 8; |
buf | 633 | drivers/sound/pss.c | buf.parm1 |= tmp & 0x00ff; |
buf | 637 | drivers/sound/pss.c | IOCTL_TO_USER ((char *) arg, 0, &buf, sizeof (buf)); |
buf | 71 | drivers/sound/sb16_dsp.c | static void sb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
buf | 72 | drivers/sound/sb16_dsp.c | static void sb16_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
buf | 274 | drivers/sound/sb16_dsp.c | sb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
buf | 284 | drivers/sound/sb16_dsp.c | printk ("output_block: %x %d %d\n", buf, count, intrflag); |
buf | 313 | drivers/sound/sb16_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
buf | 331 | drivers/sound/sb16_dsp.c | sb16_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
buf | 341 | drivers/sound/sb16_dsp.c | printk ("start_input: %x %d %d\n", buf, count, intrflag); |
buf | 370 | drivers/sound/sb16_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
buf | 411 | drivers/sound/sb_dsp.c | sb_dsp_output_block (int dev, unsigned long buf, int count, |
buf | 420 | drivers/sound/sb_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
buf | 461 | drivers/sound/sb_dsp.c | sb_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, |
buf | 474 | drivers/sound/sb_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
buf | 99 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 112 | drivers/sound/sequencer.c | return pmgr_read (dev - 1, file, buf, count); |
buf | 135 | drivers/sound/sequencer.c | COPY_TO_USER (buf, p, &iqueue[iqhead * IEV_SZ], ev_len); |
buf | 238 | drivers/sound/sequencer.c | sequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 255 | drivers/sound/sequencer.c | return pmgr_write (dev - 1, file, buf, count); |
buf | 261 | drivers/sound/sequencer.c | COPY_FROM_USER (event, buf, p, 4); |
buf | 275 | drivers/sound/sequencer.c | err = synth_devs[dev]->load_patch (dev, *(short *) &event[0], buf, p + 4, c, 0); |
buf | 299 | drivers/sound/sequencer.c | COPY_FROM_USER (&event[4], buf, p + 4, 4); |
buf | 1911 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 1917 | drivers/sound/sequencer.c | sequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 7 | drivers/sound/sound_calls.h | int DMAbuf_getwrbuffer(int dev, char **buf, int *size, int dontblock); |
buf | 8 | drivers/sound/sound_calls.h | int DMAbuf_getrdbuffer(int dev, char **buf, int *len, int dontblock); |
buf | 27 | drivers/sound/sound_calls.h | int audio_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 28 | drivers/sound/sound_calls.h | int audio_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 44 | drivers/sound/sound_calls.h | int sequencer_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 45 | drivers/sound/sound_calls.h | int sequencer_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 66 | drivers/sound/sound_calls.h | int MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 67 | drivers/sound/sound_calls.h | int MIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 73 | drivers/sound/sound_calls.h | void MIDIbuf_bytes_received(int dev, unsigned char *buf, int count); |
buf | 87 | drivers/sound/sound_calls.h | int CMIDI_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 88 | drivers/sound/sound_calls.h | int CMIDI_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 108 | drivers/sound/sound_calls.h | int sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 109 | drivers/sound/sound_calls.h | int sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 212 | drivers/sound/sound_calls.h | int pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count); |
buf | 213 | drivers/sound/sound_calls.h | int pmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count); |
buf | 246 | drivers/sound/sound_calls.h | int pss_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 247 | drivers/sound/sound_calls.h | int pss_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 80 | drivers/sound/sound_switch.c | char buf[11]; |
buf | 86 | drivers/sound/sound_switch.c | buf[10] = 0; |
buf | 93 | drivers/sound/sound_switch.c | buf[9 - l] = hx[v]; |
buf | 100 | drivers/sound/sound_switch.c | memcpy (&status_buf[status_len], &buf[10 - l], l); |
buf | 286 | drivers/sound/sound_switch.c | read_status (snd_rw_buf * buf, int count) |
buf | 301 | drivers/sound/sound_switch.c | COPY_TO_USER (buf, 0, &status_buf[status_ptr], l); |
buf | 308 | drivers/sound/sound_switch.c | sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 315 | drivers/sound/sound_switch.c | return read_status (buf, count); |
buf | 321 | drivers/sound/sound_switch.c | return audio_read (dev, file, buf, count); |
buf | 326 | drivers/sound/sound_switch.c | return sequencer_read (dev, file, buf, count); |
buf | 331 | drivers/sound/sound_switch.c | return MIDIbuf_read (dev, file, buf, count); |
buf | 342 | drivers/sound/sound_switch.c | sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 352 | drivers/sound/sound_switch.c | return sequencer_write (dev, file, buf, count); |
buf | 358 | drivers/sound/sound_switch.c | return audio_write (dev, file, buf, count); |
buf | 363 | drivers/sound/sound_switch.c | return MIDIbuf_write (dev, file, buf, count); |
buf | 57 | drivers/sound/soundcard.c | sound_read (struct inode *inode, struct file *file, char *buf, int count) |
buf | 64 | drivers/sound/soundcard.c | return sound_read_sw (dev, &files[dev], buf, count); |
buf | 68 | drivers/sound/soundcard.c | sound_write (struct inode *inode, struct file *file, char *buf, int count) |
buf | 80 | drivers/sound/soundcard.c | return sound_write_sw (dev, &files[dev], buf, count); |
buf | 220 | drivers/sound/sscape.c | unsigned char buf[10]; |
buf | 222 | drivers/sound/sscape.c | buf[0] = (unsigned char) (cmd & 0xff); |
buf | 224 | drivers/sound/sscape.c | return host_write (devc, buf, 1); |
buf | 230 | drivers/sound/sscape.c | unsigned char buf[10]; |
buf | 232 | drivers/sound/sscape.c | buf[0] = (unsigned char) (cmd & 0xff); |
buf | 233 | drivers/sound/sscape.c | buf[1] = (unsigned char) (parm1 & 0xff); |
buf | 235 | drivers/sound/sscape.c | return host_write (devc, buf, 2); |
buf | 241 | drivers/sound/sscape.c | unsigned char buf[10]; |
buf | 243 | drivers/sound/sscape.c | buf[0] = (unsigned char) (cmd & 0xff); |
buf | 244 | drivers/sound/sscape.c | buf[1] = (unsigned char) (parm1 & 0xff); |
buf | 245 | drivers/sound/sscape.c | buf[2] = (unsigned char) (parm2 & 0xff); |
buf | 247 | drivers/sound/sscape.c | return host_write (devc, buf, 3); |
buf | 345 | drivers/sound/sscape.c | do_dma (struct sscape_info *devc, int dma_chan, unsigned long buf, int blk_size, int mode) |
buf | 356 | drivers/sound/sscape.c | buf, |
buf | 577 | drivers/sound/sscape.c | download_boot_block (void *dev_info, copr_buffer * buf) |
buf | 579 | drivers/sound/sscape.c | if (buf->len <= 0 || buf->len > sizeof (buf->data)) |
buf | 582 | drivers/sound/sscape.c | if (!sscape_download_boot (devc, buf->data, buf->len, buf->flags)) |
buf | 604 | drivers/sound/sscape.c | copr_buffer *buf; |
buf | 607 | drivers/sound/sscape.c | buf = (copr_buffer *) KERNEL_MALLOC (sizeof (copr_buffer)); |
buf | 608 | drivers/sound/sscape.c | IOCTL_FROM_USER ((char *) buf, (char *) arg, 0, sizeof (*buf)); |
buf | 609 | drivers/sound/sscape.c | err = download_boot_block (dev_info, buf); |
buf | 610 | drivers/sound/sscape.c | KERNEL_FREE (buf); |
buf | 763 | drivers/sound/sscape.c | sscape_audio_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
buf | 768 | drivers/sound/sscape.c | sscape_audio_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
buf | 369 | fs/binfmt_elf.c | elf_ex = *((struct elfhdr *) bprm->buf); /* exec-header */ |
buf | 449 | fs/binfmt_elf.c | retval = read_exec(interpreter_inode,0,bprm->buf,128, 1); |
buf | 452 | fs/binfmt_elf.c | interp_ex = *((struct exec *) bprm->buf); /* exec-header */ |
buf | 453 | 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 | 733 | fs/buffer.c | void set_writetime(struct buffer_head * buf, int flag) |
buf | 737 | fs/buffer.c | if (buf->b_dirt){ |
buf | 741 | fs/buffer.c | if(!buf->b_flushtime || buf->b_flushtime > newtime) |
buf | 742 | fs/buffer.c | buf->b_flushtime = newtime; |
buf | 744 | fs/buffer.c | buf->b_flushtime = 0; |
buf | 749 | fs/buffer.c | void refile_buffer(struct buffer_head * buf){ |
buf | 751 | fs/buffer.c | if(buf->b_dev == 0xffff) panic("Attempt to refile free buffer\n"); |
buf | 752 | fs/buffer.c | if (buf->b_dirt) |
buf | 754 | fs/buffer.c | else if (mem_map[MAP_NR((unsigned long) buf->b_data)] > 1) |
buf | 756 | fs/buffer.c | else if (buf->b_lock) |
buf | 758 | fs/buffer.c | else if (buf->b_list == BUF_SHARED) |
buf | 762 | fs/buffer.c | if(dispose == BUF_CLEAN) buf->b_lru_time = jiffies; |
buf | 763 | fs/buffer.c | if(dispose != buf->b_list) { |
buf | 765 | fs/buffer.c | buf->b_lru_time = jiffies; |
buf | 767 | fs/buffer.c | (buf->b_flushtime - buf->b_lru_time) <= bdf_prm.b_un.age_super) |
buf | 769 | fs/buffer.c | remove_from_queues(buf); |
buf | 770 | fs/buffer.c | buf->b_list = dispose; |
buf | 771 | fs/buffer.c | insert_into_queues(buf); |
buf | 779 | fs/buffer.c | void brelse(struct buffer_head * buf) |
buf | 781 | fs/buffer.c | if (!buf) |
buf | 783 | fs/buffer.c | wait_on_buffer(buf); |
buf | 786 | fs/buffer.c | set_writetime(buf, 0); |
buf | 787 | fs/buffer.c | refile_buffer(buf); |
buf | 789 | fs/buffer.c | if (buf->b_count) { |
buf | 790 | fs/buffer.c | if (--buf->b_count) |
buf | 794 | fs/buffer.c | if (buf->b_reuse) { |
buf | 795 | fs/buffer.c | buf->b_reuse = 0; |
buf | 796 | fs/buffer.c | if (!buf->b_lock && !buf->b_dirt && !buf->b_wait) { |
buf | 797 | fs/buffer.c | if(buf->b_dev == 0xffff) panic("brelse: Wrong list"); |
buf | 798 | fs/buffer.c | remove_from_queues(buf); |
buf | 799 | fs/buffer.c | buf->b_dev = 0xffff; |
buf | 800 | fs/buffer.c | put_last_free(buf); |
buf | 633 | fs/exec.c | memset(bprm.buf,0,sizeof(bprm.buf)); |
buf | 634 | fs/exec.c | retval = read_exec(bprm.inode,0,bprm.buf,128,1); |
buf | 637 | fs/exec.c | if ((bprm.buf[0] == '#') && (bprm.buf[1] == '!') && (!sh_bang)) { |
buf | 646 | fs/exec.c | bprm.buf[127] = '\0'; |
buf | 647 | fs/exec.c | if ((cp = strchr(bprm.buf, '\n')) == NULL) |
buf | 648 | fs/exec.c | cp = bprm.buf+127; |
buf | 650 | fs/exec.c | while (cp > bprm.buf) { |
buf | 657 | fs/exec.c | for (cp = bprm.buf+2; (*cp == ' ') || (*cp == '\t'); cp++); |
buf | 712 | fs/exec.c | if (!loader && (((struct exec *) bprm.buf)->fh.f_flags & 0x3000)) { |
buf | 782 | 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 | 72 | fs/ext/file.c | static int ext_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 168 | fs/ext/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 170 | fs/ext/file.c | buf += chars; |
buf | 173 | fs/ext/file.c | put_user(0,buf++); |
buf | 197 | fs/ext/file.c | static int ext_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
buf | 248 | fs/ext/file.c | memcpy_fromfs(p,buf,c); |
buf | 249 | fs/ext/file.c | buf += c; |
buf | 147 | fs/ext/inode.c | void ext_statfs (struct super_block *sb, struct statfs *buf, int bufsiz) |
buf | 159 | fs/ext/inode.c | memcpy_tofs(buf, &tmp, bufsiz); |
buf | 27 | fs/ext2/dir.c | char * buf, int count) |
buf | 81 | fs/ext2/file.c | char * buf, int count) |
buf | 198 | fs/ext2/file.c | memcpy_tofs (buf, offset + (*bhe)->b_data, |
buf | 201 | fs/ext2/file.c | buf += chars; |
buf | 204 | fs/ext2/file.c | put_user (0, buf++); |
buf | 232 | fs/ext2/file.c | const char * buf, int count) |
buf | 308 | fs/ext2/file.c | memcpy_fromfs (bh->b_data + offset, buf, c); |
buf | 309 | fs/ext2/file.c | buf += c; |
buf | 663 | fs/ext2/super.c | void ext2_statfs (struct super_block * sb, struct statfs * buf, int bufsiz) |
buf | 694 | fs/ext2/super.c | memcpy_tofs(buf, &tmp, bufsiz); |
buf | 193 | fs/hpfs/hpfs_fs.c | char *buf, int count); |
buf | 740 | fs/hpfs/hpfs_fs.c | static void hpfs_statfs(struct super_block *s, struct statfs *buf, int bufsiz) |
buf | 764 | fs/hpfs/hpfs_fs.c | memcpy_tofs(buf, &tmp, bufsiz); |
buf | 879 | fs/hpfs/hpfs_fs.c | char *buf, int count) |
buf | 895 | fs/hpfs/hpfs_fs.c | start = buf; |
buf | 930 | fs/hpfs/hpfs_fs.c | memcpy_tofs(buf, block + r, n); |
buf | 937 | fs/hpfs/hpfs_fs.c | n0 = convcpy_tofs(buf, block + r, n); |
buf | 948 | fs/hpfs/hpfs_fs.c | buf += n0; |
buf | 952 | fs/hpfs/hpfs_fs.c | return buf - start; |
buf | 1580 | fs/hpfs/hpfs_fs.c | char *buf, int count) |
buf | 123 | fs/isofs/file.c | static int isofs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 235 | fs/isofs/file.c | unixify_to_fs(buf, offset+(*bhe)->b_data, chars, |
buf | 238 | fs/isofs/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 240 | fs/isofs/file.c | buf += chars; |
buf | 243 | fs/isofs/file.c | put_user(0,buf++); |
buf | 395 | fs/isofs/inode.c | void isofs_statfs (struct super_block *sb, struct statfs *buf, int bufsiz) |
buf | 407 | fs/isofs/inode.c | memcpy_tofs(buf, &tmp, bufsiz); |
buf | 21 | fs/minix/dir.c | static int minix_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 70 | fs/minix/file.c | static int minix_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 166 | fs/minix/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 168 | fs/minix/file.c | buf += chars; |
buf | 171 | fs/minix/file.c | put_user(0,buf++); |
buf | 193 | fs/minix/file.c | static int minix_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
buf | 237 | fs/minix/file.c | memcpy_fromfs(p,buf,c); |
buf | 238 | fs/minix/file.c | buf += c; |
buf | 227 | fs/minix/inode.c | void minix_statfs(struct super_block *sb, struct statfs *buf, int bufsiz) |
buf | 239 | fs/minix/inode.c | memcpy_tofs(buf, &tmp, bufsiz); |
buf | 26 | 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 | 297 | fs/msdos/file.c | for (start = buf; count || carry; count -= size) { |
buf | 322 | fs/msdos/file.c | memcpy_fromfs(bh->b_data+offset,buf,written = size); |
buf | 323 | fs/msdos/file.c | buf += size; |
buf | 334 | fs/msdos/file.c | if ((ch = get_user(buf++)) == '\n') { |
buf | 355 | fs/msdos/file.c | if (start == buf) |
buf | 360 | fs/msdos/file.c | return buf-start; |
buf | 310 | fs/msdos/inode.c | void msdos_statfs(struct super_block *sb,struct statfs *buf, int bufsiz) |
buf | 333 | fs/msdos/inode.c | memcpy_tofs(buf, &tmp, bufsiz); |
buf | 25 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *, struct file *filp, char *buf, |
buf | 76 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *inode, struct file *filp, char *buf, |
buf | 74 | fs/nfs/file.c | char * buf; /* data */ |
buf | 98 | fs/nfs/file.c | static int nfs_file_read(struct inode *inode, struct file *file, char *buf, |
buf | 132 | fs/nfs/file.c | memcpy_tofs(buf, cache[i].buf + pos - cache[i].file_pos, count); |
buf | 141 | fs/nfs/file.c | pos, n, buf, &fattr, 1); |
buf | 145 | fs/nfs/file.c | buf += result; |
buf | 154 | fs/nfs/file.c | data = buf; |
buf | 172 | fs/nfs/file.c | memcpy_tofs(buf, data, hunk); |
buf | 177 | fs/nfs/file.c | if (cache[tail].buf) |
buf | 178 | fs/nfs/file.c | kfree_s(cache[tail].buf, cache[tail].buf_size); |
buf | 179 | fs/nfs/file.c | cache[tail].buf = data; |
buf | 193 | fs/nfs/file.c | static int nfs_file_write(struct inode *inode, struct file *file, const char *buf, |
buf | 227 | fs/nfs/file.c | pos, hunk, buf, &fattr); |
buf | 231 | fs/nfs/file.c | buf += hunk; |
buf | 177 | fs/nfs/inode.c | void nfs_statfs(struct super_block *sb, struct statfs *buf, int bufsiz) |
buf | 197 | fs/nfs/inode.c | memcpy_tofs(buf, &tmp, bufsiz); |
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 | 57 | fs/proc/array.c | static int read_core(struct inode * inode, struct file * file,char * buf, int count) |
buf | 83 | fs/proc/array.c | memcpy_tofs(buf,(void *) pnt, count1); |
buf | 84 | fs/proc/array.c | buf += count1; |
buf | 91 | fs/proc/array.c | put_user(0,buf); |
buf | 92 | fs/proc/array.c | buf++; |
buf | 97 | fs/proc/array.c | memcpy_tofs(buf,(void *) (PAGE_OFFSET + p - PAGE_SIZE),count); |
buf | 123 | fs/proc/array.c | static int read_profile(struct inode *inode, struct file *file, char *buf, int count) |
buf | 139 | fs/proc/array.c | put_user(*((char *)(&sample_step)+p),buf); |
buf | 140 | fs/proc/array.c | buf++; p++; count--; read++; |
buf | 143 | fs/proc/array.c | memcpy_tofs(buf,(void *)pnt,count); |
buf | 150 | fs/proc/array.c | static int write_profile(struct inode * inode, struct file * file, const char * buf, int count) |
buf | 607 | fs/proc/array.c | static int read_maps (int pid, struct file * file, char * buf, int count) |
buf | 630 | fs/proc/array.c | destptr = buf; |
buf | 694 | fs/proc/array.c | return destptr-buf; |
buf | 786 | fs/proc/array.c | static int array_read(struct inode * inode, struct file * file,char * buf, int count) |
buf | 812 | fs/proc/array.c | memcpy_tofs(buf, start, length); |
buf | 824 | fs/proc/array.c | memcpy_tofs(buf, (char *) page + file->f_pos, count); |
buf | 862 | fs/proc/array.c | static int arraylong_read (struct inode * inode, struct file * file, char * buf, int count) |
buf | 872 | fs/proc/array.c | return read_maps(pid, file, buf, count); |
buf | 122 | fs/proc/fd.c | char buf[NUMBUF]; |
buf | 160 | fs/proc/fd.c | buf[j] = '0' + (i % 10); |
buf | 165 | fs/proc/fd.c | if (filldir(dirent, buf+j, NUMBUF-j, fd+2, ino) < 0) |
buf | 120 | fs/proc/inode.c | void proc_statfs(struct super_block *sb, struct statfs *buf, int bufsiz) |
buf | 132 | 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 | 175 | fs/proc/link.c | char buf[64]; |
buf | 189 | fs/proc/link.c | i = sprintf(buf,"[%04x]:%u", dev, ino); |
buf | 194 | 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 | 42 | fs/proc/net.c | char * buf, int count) |
buf | 78 | fs/proc/net.c | memcpy_tofs(buf+copied, start, length); |
buf | 473 | fs/proc/root.c | char buf[NUMBUF]; |
buf | 495 | fs/proc/root.c | buf[j] = '0' + (i % 10); |
buf | 499 | fs/proc/root.c | if (filldir(dirent, buf+j, NUMBUF-j, filp->f_pos, (pid << 16) + PROC_PID_INO) < 0) |
buf | 34 | fs/proc/scsi.c | char * buf, int count); |
buf | 36 | fs/proc/scsi.c | const char * buf, int count); |
buf | 194 | fs/proc/scsi.c | char * buf, int count) |
buf | 237 | fs/proc/scsi.c | memcpy_tofs(buf + copied, start, length); |
buf | 253 | fs/proc/scsi.c | const char * buf, int count) |
buf | 266 | fs/proc/scsi.c | memcpy_fromfs(page, buf, count); |
buf | 101 | fs/read_write.c | asmlinkage int sys_read(unsigned int fd,char * buf,unsigned int count) |
buf | 115 | fs/read_write.c | error = verify_area(VERIFY_WRITE,buf,count); |
buf | 118 | fs/read_write.c | return file->f_op->read(inode,file,buf,count); |
buf | 121 | fs/read_write.c | asmlinkage int sys_write(unsigned int fd,char * buf,unsigned int count) |
buf | 136 | fs/read_write.c | error = verify_area(VERIFY_READ,buf,count); |
buf | 139 | 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; |
buf | 108 | fs/readdir.c | buf->previous = dirent; |
buf | 114 | fs/readdir.c | buf->current = 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 = (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 | 28 | fs/smbfs/dir.c | smb_dir_read(struct inode *inode, struct file *filp, char *buf, int count); |
buf | 125 | fs/smbfs/dir.c | smb_dir_read(struct inode *inode, struct file *filp, char *buf, int count) |
buf | 69 | fs/smbfs/file.c | smb_file_read(struct inode *inode, struct file *file, char *buf, int count) |
buf | 113 | fs/smbfs/file.c | pos, to_read, buf); |
buf | 121 | fs/smbfs/file.c | pos, to_read, buf, 1); |
buf | 127 | fs/smbfs/file.c | buf += result; |
buf | 146 | fs/smbfs/file.c | smb_file_write(struct inode *inode, struct file *file, const char *buf, int count) |
buf | 194 | fs/smbfs/file.c | pos, to_write, buf); |
buf | 202 | fs/smbfs/file.c | pos, to_write, buf); |
buf | 209 | fs/smbfs/file.c | buf += result; |
buf | 314 | fs/smbfs/inode.c | smb_statfs(struct super_block *sb, struct statfs *buf, int bufsiz) |
buf | 336 | fs/smbfs/inode.c | memcpy_tofs(buf, &tmp, bufsiz); |
buf | 485 | fs/smbfs/proc.c | byte *buf = server->packet; |
buf | 500 | fs/smbfs/proc.c | WSET(buf, smb_tid, server->tid); |
buf | 501 | fs/smbfs/proc.c | WSET(buf, smb_pid, server->pid); |
buf | 502 | fs/smbfs/proc.c | WSET(buf, smb_uid, server->server_uid); |
buf | 503 | fs/smbfs/proc.c | WSET(buf, smb_mid, server->mid); |
buf | 506 | fs/smbfs/proc.c | BSET(buf, smb_flg, 0x8); |
buf | 507 | fs/smbfs/proc.c | WSET(buf, smb_flg2, 0x3); |
buf | 541 | fs/smbfs/proc.c | char* buf = server->packet; |
buf | 550 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, 0x42); /* read/write */ |
buf | 551 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, o_attr); |
buf | 566 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, 0x40); /* read only */ |
buf | 567 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, o_attr); |
buf | 581 | fs/smbfs/proc.c | entry->fileid = WVAL(buf, smb_vwv0); |
buf | 582 | fs/smbfs/proc.c | entry->attr = WVAL(buf, smb_vwv1); |
buf | 584 | fs/smbfs/proc.c | entry->mtime = local2utc(DVAL(buf, smb_vwv2)); |
buf | 585 | fs/smbfs/proc.c | entry->size = DVAL(buf, smb_vwv4); |
buf | 586 | fs/smbfs/proc.c | entry->access = WVAL(buf, smb_vwv6); |
buf | 600 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 603 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, finfo->fileid); |
buf | 604 | fs/smbfs/proc.c | DSET(buf, smb_vwv1, utc2local(finfo->mtime)); |
buf | 620 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 625 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, finfo->fileid); |
buf | 626 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, count); |
buf | 627 | fs/smbfs/proc.c | DSET(buf, smb_vwv2, offset); |
buf | 628 | fs/smbfs/proc.c | WSET(buf, smb_vwv4, 0); |
buf | 635 | fs/smbfs/proc.c | returned_count = WVAL(buf, smb_vwv0); |
buf | 657 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 666 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, finfo->fileid); |
buf | 667 | fs/smbfs/proc.c | DSET(buf, smb_vwv1, offset); |
buf | 668 | fs/smbfs/proc.c | WSET(buf, smb_vwv3, count); |
buf | 669 | fs/smbfs/proc.c | WSET(buf, smb_vwv4, 0); |
buf | 670 | fs/smbfs/proc.c | DSET(buf, smb_vwv5, 0); |
buf | 682 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 686 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, finfo->fileid); |
buf | 687 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, count); |
buf | 688 | fs/smbfs/proc.c | DSET(buf, smb_vwv2, offset); |
buf | 689 | fs/smbfs/proc.c | WSET(buf, smb_vwv4, 0); |
buf | 696 | fs/smbfs/proc.c | res = WVAL(buf, smb_vwv0); |
buf | 709 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 718 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, finfo->fileid); |
buf | 719 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, count); |
buf | 720 | fs/smbfs/proc.c | WSET(buf, smb_vwv2, 0); /* reserved */ |
buf | 721 | fs/smbfs/proc.c | DSET(buf, smb_vwv3, offset); |
buf | 722 | fs/smbfs/proc.c | DSET(buf, smb_vwv5, 0); /* timeout */ |
buf | 723 | fs/smbfs/proc.c | WSET(buf, smb_vwv7, 1); /* send final result response */ |
buf | 724 | fs/smbfs/proc.c | DSET(buf, smb_vwv8, 0); /* reserved */ |
buf | 725 | fs/smbfs/proc.c | WSET(buf, smb_vwv10, 0); /* no data in this buf */ |
buf | 726 | fs/smbfs/proc.c | WSET(buf, smb_vwv11, 0); /* no data in this buf */ |
buf | 767 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 772 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, entry->attr); |
buf | 773 | fs/smbfs/proc.c | DSET(buf, smb_vwv1, utc2local(entry->ctime)); |
buf | 785 | fs/smbfs/proc.c | entry->fileid = WVAL(buf, smb_vwv0); |
buf | 813 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 820 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, 0); |
buf | 879 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 886 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, 0); |
buf | 902 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 909 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, fid); |
buf | 910 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, 0); |
buf | 911 | fs/smbfs/proc.c | DSET(buf, smb_vwv2, length); |
buf | 912 | fs/smbfs/proc.c | WSET(buf, smb_vwv4, 0); |
buf | 946 | fs/smbfs/proc.c | char *buf; |
buf | 965 | fs/smbfs/proc.c | buf = server->packet; |
buf | 978 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, entries_asked); |
buf | 979 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, aDIR); |
buf | 986 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, entries_asked); |
buf | 987 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, aDIR); |
buf | 1390 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 1408 | fs/smbfs/proc.c | entry->attr = WVAL(buf, smb_vwv0); |
buf | 1410 | fs/smbfs/proc.c | entry->mtime = local2utc(DVAL(buf, smb_vwv1)); |
buf | 1412 | fs/smbfs/proc.c | entry->size = DVAL(buf, smb_vwv3); |
buf | 1422 | fs/smbfs/proc.c | char* buf = server->packet; |
buf | 1426 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, entry->fileid); |
buf | 1433 | fs/smbfs/proc.c | entry->ctime = date_dos2unix(WVAL(buf, smb_vwv1), WVAL(buf, smb_vwv0)); |
buf | 1434 | fs/smbfs/proc.c | entry->atime = date_dos2unix(WVAL(buf, smb_vwv3), WVAL(buf, smb_vwv2)); |
buf | 1435 | fs/smbfs/proc.c | entry->mtime = date_dos2unix(WVAL(buf, smb_vwv5), WVAL(buf, smb_vwv4)); |
buf | 1436 | fs/smbfs/proc.c | entry->size = DVAL(buf, smb_vwv6); |
buf | 1437 | fs/smbfs/proc.c | entry->attr = WVAL(buf, smb_vwv10); |
buf | 1484 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 1491 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, new_finfo->attr); |
buf | 1492 | fs/smbfs/proc.c | DSET(buf, smb_vwv1, utc2local(new_finfo->mtime)); |
buf | 1511 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 1516 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, fid); |
buf | 1519 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, date); |
buf | 1520 | fs/smbfs/proc.c | WSET(buf, smb_vwv2, time); |
buf | 1523 | fs/smbfs/proc.c | WSET(buf, smb_vwv3, date); |
buf | 1524 | fs/smbfs/proc.c | WSET(buf, smb_vwv4, time); |
buf | 1527 | fs/smbfs/proc.c | WSET(buf, smb_vwv5, date); |
buf | 1528 | 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 | 97 | fs/super.c | static int fs_name(unsigned int index, char * buf) |
buf | 110 | fs/super.c | err = verify_area(VERIFY_WRITE, buf, len); |
buf | 113 | fs/super.c | memcpy_tofs(buf, tmp->name, len); |
buf | 156 | fs/super.c | int get_filesystem_list(char * buf) |
buf | 163 | fs/super.c | len += sprintf(buf+len, "%s\t%s\n", |
buf | 28 | fs/sysv/dir.c | static int sysv_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 76 | fs/sysv/file.c | int sysv_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 174 | fs/sysv/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 176 | fs/sysv/file.c | buf += chars; |
buf | 179 | fs/sysv/file.c | put_user(0,buf++); |
buf | 203 | fs/sysv/file.c | static int sysv_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
buf | 259 | fs/sysv/file.c | memcpy_fromfs(p,buf,c); |
buf | 260 | fs/sysv/file.c | buf += c; |
buf | 539 | fs/sysv/inode.c | void sysv_statfs(struct super_block *sb, struct statfs *buf, int bufsiz) |
buf | 551 | fs/sysv/inode.c | memcpy_tofs(buf, &tmp, bufsiz); |
buf | 34 | fs/umsdos/dir.c | int UMSDOS_dir_read(struct inode *inode,struct file *filp,char *buf, |
buf | 52 | fs/umsdos/dir.c | void * buf, |
buf | 59 | fs/umsdos/dir.c | struct UMSDOS_DIR_ONCE *d = (struct UMSDOS_DIR_ONCE *)buf; |
buf | 421 | fs/umsdos/dir.c | void * buf, |
buf | 427 | fs/umsdos/dir.c | struct UMSDOS_DIRENT_K *d = (struct UMSDOS_DIRENT_K *)buf; |
buf | 440 | fs/umsdos/dir.c | void * buf, |
buf | 447 | fs/umsdos/dir.c | struct UMSDOS_DIR_SEARCH *d = (struct UMSDOS_DIR_SEARCH *)buf; |
buf | 31 | fs/umsdos/emd.c | char *buf, |
buf | 37 | fs/umsdos/emd.c | ret = msdos_file_read(inode,filp,buf,count); |
buf | 47 | fs/umsdos/emd.c | const char *buf, |
buf | 53 | fs/umsdos/emd.c | ret = msdos_file_write(inode,filp,buf,count); |
buf | 68 | fs/umsdos/emd.c | char *buf, /* buffer in kernel memory, not in user space */ |
buf | 73 | fs/umsdos/emd.c | written = umsdos_file_write_kmem (emd_dir,filp,buf,count); |
buf | 84 | fs/umsdos/emd.c | char *buf, /* buffer in kernel memory, not in user space */ |
buf | 90 | fs/umsdos/emd.c | sizeread = umsdos_file_read_kmem (emd_dir,filp,buf,count); |
buf | 222 | fs/umsdos/emd.c | struct find_buffer *buf) |
buf | 225 | fs/umsdos/emd.c | int mustmove = buf->size - buf->pos; |
buf | 229 | fs/umsdos/emd.c | memcpy (buf->buffer,buf->buffer+buf->pos,mustmove); |
buf | 231 | fs/umsdos/emd.c | buf->pos = 0; |
buf | 233 | fs/umsdos/emd.c | remain = inode->i_size - buf->filp.f_pos; |
buf | 236 | fs/umsdos/emd.c | ret = umsdos_emd_dir_read (inode,&buf->filp,buf->buffer+mustmove |
buf | 238 | fs/umsdos/emd.c | if (ret == 0) buf->size = mustmove + mustread; |
buf | 240 | fs/umsdos/emd.c | buf->size = mustmove; |
buf | 291 | fs/umsdos/emd.c | struct find_buffer buf; |
buf | 292 | fs/umsdos/emd.c | buf.pos = 0; |
buf | 293 | fs/umsdos/emd.c | buf.size = 0; |
buf | 294 | fs/umsdos/emd.c | buf.filp.f_pos = 0; |
buf | 295 | fs/umsdos/emd.c | buf.filp.f_reada = 1; |
buf | 301 | fs/umsdos/emd.c | (buf.buffer + buf.pos); |
buf | 302 | fs/umsdos/emd.c | int file_pos = buf.filp.f_pos - buf.size + buf.pos; |
buf | 303 | fs/umsdos/emd.c | if (buf.pos == buf.size){ |
buf | 304 | fs/umsdos/emd.c | ret = umsdos_fillbuf (emd_dir,&buf); |
buf | 330 | fs/umsdos/emd.c | buf.pos += UMSDOS_REC_SIZE; |
buf | 333 | fs/umsdos/emd.c | if (buf.pos+entry_size > buf.size){ |
buf | 334 | fs/umsdos/emd.c | ret = umsdos_fillbuf (emd_dir,&buf); |
buf | 350 | fs/umsdos/emd.c | buf.pos += entry_size; |
buf | 35 | fs/umsdos/file.c | char *buf, |
buf | 39 | fs/umsdos/file.c | int ret = msdos_file_read(inode,filp,buf,count); |
buf | 52 | fs/umsdos/file.c | const char *buf, |
buf | 55 | fs/umsdos/file.c | return msdos_file_write(inode,filp,buf,count); |
buf | 64 | fs/umsdos/inode.c | void UMSDOS_statfs(struct super_block *sb,struct statfs *buf, int bufsiz) |
buf | 66 | fs/umsdos/inode.c | msdos_statfs(sb,buf,bufsiz); |
buf | 34 | fs/umsdos/ioctl.c | void * buf, |
buf | 41 | fs/umsdos/ioctl.c | struct UMSDOS_DIR_ONCE *d = (struct UMSDOS_DIR_ONCE *)buf; |
buf | 38 | fs/umsdos/rdir.c | void * buf, |
buf | 45 | fs/umsdos/rdir.c | struct RDIR_FILLDIR *d = (struct RDIR_FILLDIR*) buf; |
buf | 64 | fs/xiafs/dir.c | struct file * filp, char * buf, int count) |
buf | 74 | fs/xiafs/file.c | xiafs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 164 | fs/xiafs/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 166 | fs/xiafs/file.c | buf += chars; |
buf | 169 | fs/xiafs/file.c | put_user(0,buf++); |
buf | 194 | fs/xiafs/file.c | xiafs_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
buf | 245 | fs/xiafs/file.c | memcpy_fromfs(cp,buf,c); |
buf | 246 | fs/xiafs/file.c | buf += c; |
buf | 174 | fs/xiafs/inode.c | void xiafs_statfs(struct super_block *sb, struct statfs *buf, int bufsiz) |
buf | 186 | fs/xiafs/inode.c | memcpy_tofs(buf, &tmp, bufsiz); |
buf | 220 | include/asm-alpha/unistd.h | static inline int write(int fd, const char * buf, int nr) |
buf | 222 | include/asm-alpha/unistd.h | return sys_write(fd, buf, nr); |
buf | 226 | include/asm-alpha/unistd.h | static inline int read(int fd, char * buf, int nr) |
buf | 228 | include/asm-alpha/unistd.h | return sys_read(fd, buf, nr); |
buf | 258 | include/asm-i386/unistd.h | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
buf | 40 | include/asm-sparc/openprom.h | int (*v0_rdblkdev)(int dev_desc, int num_blks, int blk_st, char* buf); |
buf | 41 | include/asm-sparc/openprom.h | int (*v0_wrblkdev)(int dev_desc, int num_blks, int blk_st, char* buf); |
buf | 42 | include/asm-sparc/openprom.h | int (*v0_wrnetdev)(int dev_desc, int num_bytes, char* buf); |
buf | 43 | include/asm-sparc/openprom.h | int (*v0_rdnetdev)(int dev_desc, int num_bytes, char* buf); |
buf | 44 | include/asm-sparc/openprom.h | int (*v0_rdchardev)(int dev_desc, int num_bytes, int dummy, char* buf); |
buf | 45 | include/asm-sparc/openprom.h | int (*v0_wrchardev)(int dev_desc, int num_bytes, int dummy, char* buf); |
buf | 81 | include/asm-sparc/openprom.h | int (*v2_dev_read)(int d, char* buf, int nbytes); |
buf | 82 | include/asm-sparc/openprom.h | int (*v2_dev_write)(int d, char* buf, int nbytes); |
buf | 218 | include/asm-sparc/oplib.h | extern void prom_getstring(int node, char *prop, char *buf, int bufsize); |
buf | 160 | 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 | 334 | include/linux/cdrom.h | u_char *buf; /* frame buffer (size: nframes*2352 bytes) */ |
buf | 432 | include/linux/fs.h | extern void refile_buffer(struct buffer_head * buf); |
buf | 433 | include/linux/fs.h | extern void set_writetime(struct buffer_head * buf, int flag); |
buf | 499 | include/linux/fs.h | extern void brelse(struct buffer_head * buf); |
buf | 74 | include/linux/gscd.h | #define READ_DATA(port, buf, nr) insb(port, buf, nr) |
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 | 198 | include/linux/mm.h | extern int vread(char *buf, char *addr, int count); |
buf | 207 | include/linux/mm.h | extern void rw_swap_page(int rw, unsigned long nr, char * buf); |
buf | 222 | include/linux/mm.h | #define read_swap_page(nr,buf) \ |
buf | 223 | include/linux/mm.h | rw_swap_page(READ,(nr),(buf)) |
buf | 224 | include/linux/mm.h | #define write_swap_page(nr,buf) \ |
buf | 225 | include/linux/mm.h | rw_swap_page(WRITE,(nr),(buf)) |
buf | 162 | 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 | 522 | include/linux/pci.h | extern int get_pci_list (char *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 | 79 | include/linux/sjcd.h | #define S_READ_DATA( port, buf, nr ) insb( port, buf, nr ) |
buf | 119 | include/linux/skbuff.h | extern void skb_queue_head(struct sk_buff_head *list,struct sk_buff *buf); |
buf | 120 | include/linux/skbuff.h | extern void skb_queue_tail(struct sk_buff_head *list,struct sk_buff *buf); |
buf | 124 | 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 | 287 | 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 | 319 | ipc/msg.c | asmlinkage int sys_msgctl (int msqid, int cmd, struct msqid_ds *buf) |
buf | 331 | ipc/msg.c | if (!buf) |
buf | 348 | ipc/msg.c | err = verify_area (VERIFY_WRITE, buf, sizeof (struct msginfo)); |
buf | 351 | ipc/msg.c | memcpy_tofs (buf, &msginfo, sizeof(struct msginfo)); |
buf | 355 | ipc/msg.c | if (!buf) |
buf | 357 | ipc/msg.c | err = verify_area (VERIFY_WRITE, buf, sizeof (*buf)); |
buf | 377 | ipc/msg.c | memcpy_tofs (buf, &tbuf, sizeof(*buf)); |
buf | 380 | ipc/msg.c | if (!buf) |
buf | 382 | ipc/msg.c | err = verify_area (VERIFY_READ, buf, sizeof (*buf)); |
buf | 385 | ipc/msg.c | memcpy_fromfs (&tbuf, buf, sizeof (*buf)); |
buf | 388 | ipc/msg.c | if (!buf) |
buf | 390 | ipc/msg.c | err = verify_area (VERIFY_WRITE, buf, sizeof(*buf)); |
buf | 417 | ipc/msg.c | memcpy_tofs (buf, &tbuf, sizeof (*buf)); |
buf | 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 | 202 | ipc/shm.c | asmlinkage int sys_shmctl (int shmid, int cmd, struct shmid_ds *buf) |
buf | 212 | ipc/shm.c | if (!buf) |
buf | 214 | ipc/shm.c | err = verify_area (VERIFY_READ, buf, sizeof (*buf)); |
buf | 217 | ipc/shm.c | memcpy_fromfs (&tbuf, buf, sizeof (*buf)); |
buf | 224 | ipc/shm.c | if (!buf) |
buf | 231 | ipc/shm.c | err = verify_area (VERIFY_WRITE, buf, sizeof (struct shminfo)); |
buf | 234 | ipc/shm.c | memcpy_tofs (buf, &shminfo, sizeof(struct shminfo)); |
buf | 240 | ipc/shm.c | if (!buf) |
buf | 242 | ipc/shm.c | err = verify_area (VERIFY_WRITE, buf, sizeof (shm_info)); |
buf | 251 | ipc/shm.c | memcpy_tofs (buf, &shm_info, sizeof(shm_info)); |
buf | 255 | ipc/shm.c | if (!buf) |
buf | 257 | ipc/shm.c | err = verify_area (VERIFY_WRITE, buf, sizeof (*buf)); |
buf | 276 | ipc/shm.c | memcpy_tofs (buf, &tbuf, sizeof(*buf)); |
buf | 308 | ipc/shm.c | if (!buf) |
buf | 310 | ipc/shm.c | err = verify_area (VERIFY_WRITE, buf, sizeof (*buf)); |
buf | 321 | 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 | 55 | kernel/module.c | static int get_mod_name( char *user_name, char *buf); |
buf | 423 | kernel/module.c | get_mod_name(char *user_name, char *buf) |
buf | 428 | kernel/module.c | for (i = 0 ; (buf[i] = get_user(user_name + i)) != '\0' ; ) { |
buf | 517 | kernel/module.c | int get_module_list(char *buf) |
buf | 526 | kernel/module.c | p = buf; |
buf | 529 | kernel/module.c | if (p - buf > 4096 - 100) |
buf | 571 | kernel/module.c | return p - buf; |
buf | 578 | kernel/module.c | int get_ksyms_list(char *buf, char **start, off_t offset, int length) |
buf | 583 | kernel/module.c | char *p = buf; |
buf | 596 | kernel/module.c | p = buf + len; |
buf | 618 | 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 | 26 | kernel/printk.c | static char buf[1024]; |
buf | 55 | kernel/printk.c | asmlinkage int sys_syslog(int type, char * buf, int len) |
buf | 70 | kernel/printk.c | if (!buf || len < 0) |
buf | 74 | kernel/printk.c | error = verify_area(VERIFY_WRITE,buf,len); |
buf | 92 | kernel/printk.c | put_user(c,buf); |
buf | 93 | kernel/printk.c | buf++; |
buf | 103 | kernel/printk.c | if (!buf || len < 0) |
buf | 107 | kernel/printk.c | error = verify_area(VERIFY_WRITE,buf,len); |
buf | 118 | kernel/printk.c | put_user(c, buf++); |
buf | 153 | kernel/printk.c | i = vsprintf(buf + 3, fmt, args); /* hopefully i < sizeof(buf)-4 */ |
buf | 154 | kernel/printk.c | buf_end = buf + 3 + i; |
buf | 156 | kernel/printk.c | for (p = buf + 3; p < buf_end; p++) { |
buf | 209 | kernel/printk.c | char buf[16]; |
buf | 216 | kernel/printk.c | buf[j++] = log_buf[p]; |
buf | 218 | kernel/printk.c | if (buf[j-1] != '\n' && i < log_size - 1 && j < sizeof(buf)-1) |
buf | 220 | kernel/printk.c | buf[j] = 0; |
buf | 221 | kernel/printk.c | q = buf; |
buf | 223 | kernel/printk.c | msg_level = buf[1] - '0'; |
buf | 224 | kernel/printk.c | q = buf + 3; |
buf | 228 | 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 | 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 | 11 | lib/write.c | _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
buf | 116 | mm/swap.c | void rw_swap_page(int rw, unsigned long entry, char * buf) |
buf | 147 | mm/swap.c | ll_rw_page(rw,p->swap_device,offset,buf); |
buf | 186 | mm/swap.c | ll_rw_swap_file(rw,swapf->i_dev, zones, i,buf); |
buf | 321 | mm/vmalloc.c | int vread(char *buf, char *addr, int count) |
buf | 324 | mm/vmalloc.c | char *vaddr, *buf_start = buf; |
buf | 332 | mm/vmalloc.c | put_user('\0', buf++), addr++, count--; |
buf | 340 | mm/vmalloc.c | put_user(*addr++, buf++), count--; |
buf | 344 | mm/vmalloc.c | return buf - buf_start; |
buf | 121 | net/ax25/af_ax25.c | static char buf[11]; |
buf | 125 | net/ax25/af_ax25.c | for (n = 0, s = buf; n < 6; n++) |
buf | 143 | net/ax25/af_ax25.c | return(buf); |
buf | 312 | 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 | 321 | net/ax25/ax25_subr.c | if (buf[6] & LAPB_C) { |
buf | 324 | net/ax25/ax25_subr.c | if (buf[13] & LAPB_C) { |
buf | 330 | net/ax25/ax25_subr.c | if (dest != NULL) memcpy(dest, buf + 0, AX25_ADDR_LEN); |
buf | 331 | net/ax25/ax25_subr.c | if (src != NULL) memcpy(src, buf + 7, AX25_ADDR_LEN); |
buf | 332 | net/ax25/ax25_subr.c | buf += 2 * AX25_ADDR_LEN; |
buf | 337 | net/ax25/ax25_subr.c | while (!(buf[-1] & LAPB_E)) |
buf | 343 | net/ax25/ax25_subr.c | memcpy(&digi->calls[d], buf, AX25_ADDR_LEN); |
buf | 345 | net/ax25/ax25_subr.c | if (buf[6] & AX25_REPEATED) { |
buf | 353 | net/ax25/ax25_subr.c | buf += AX25_ADDR_LEN; |
buf | 358 | net/ax25/ax25_subr.c | return buf; |
buf | 364 | 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 | 369 | net/ax25/ax25_subr.c | memcpy(buf, dest, AX25_ADDR_LEN); |
buf | 370 | net/ax25/ax25_subr.c | buf[6] &= ~(LAPB_E | LAPB_C); |
buf | 371 | net/ax25/ax25_subr.c | buf[6] |= SSSID_SPARE; |
buf | 373 | net/ax25/ax25_subr.c | if (flag == C_COMMAND) buf[6] |= LAPB_C; |
buf | 375 | net/ax25/ax25_subr.c | buf += AX25_ADDR_LEN; |
buf | 378 | net/ax25/ax25_subr.c | memcpy(buf, src, AX25_ADDR_LEN); |
buf | 379 | net/ax25/ax25_subr.c | buf[6] &= ~(LAPB_E | LAPB_C); |
buf | 380 | net/ax25/ax25_subr.c | buf[6] &= ~SSSID_SPARE; |
buf | 383 | net/ax25/ax25_subr.c | buf[6] |= SSSID_SPARE; |
buf | 385 | net/ax25/ax25_subr.c | buf[6] |= ESSID_SPARE; |
buf | 388 | net/ax25/ax25_subr.c | if (flag == C_RESPONSE) buf[6] |= LAPB_C; |
buf | 394 | net/ax25/ax25_subr.c | buf[6] |= LAPB_E; |
buf | 398 | net/ax25/ax25_subr.c | buf += AX25_ADDR_LEN; |
buf | 402 | net/ax25/ax25_subr.c | memcpy(buf, &d->calls[ct], AX25_ADDR_LEN); |
buf | 404 | net/ax25/ax25_subr.c | buf[6] |= AX25_REPEATED; |
buf | 406 | net/ax25/ax25_subr.c | buf[6] &= ~AX25_REPEATED; |
buf | 407 | net/ax25/ax25_subr.c | buf[6] &= ~LAPB_E; |
buf | 408 | net/ax25/ax25_subr.c | buf[6] |= SSSID_SPARE; |
buf | 410 | net/ax25/ax25_subr.c | buf += AX25_ADDR_LEN; |
buf | 415 | net/ax25/ax25_subr.c | buf[-1] |= LAPB_E; |
buf | 155 | net/ipv4/igmp.c | extern __inline__ void ip_mc_map(unsigned long addr, char *buf) |
buf | 158 | net/ipv4/igmp.c | buf[0]=0x01; |
buf | 159 | net/ipv4/igmp.c | buf[1]=0x00; |
buf | 160 | net/ipv4/igmp.c | buf[2]=0x5e; |
buf | 161 | net/ipv4/igmp.c | buf[5]=addr&0xFF; |
buf | 163 | net/ipv4/igmp.c | buf[4]=addr&0xFF; |
buf | 165 | net/ipv4/igmp.c | buf[3]=addr&0x7F; |
buf | 174 | net/ipv4/igmp.c | char buf[6]; |
buf | 177 | net/ipv4/igmp.c | ip_mc_map(addr,buf); |
buf | 178 | net/ipv4/igmp.c | dev_mc_add(dev,buf,ETH_ALEN,0); |
buf | 187 | net/ipv4/igmp.c | char buf[6]; |
buf | 190 | net/ipv4/igmp.c | ip_mc_map(addr,buf); |
buf | 191 | net/ipv4/igmp.c | dev_mc_delete(dev,buf,ETH_ALEN,0); |
buf | 589 | net/ipv4/ip_fw.c | char buf[20]; /* xxx.xxx.xxx.xxx\r\n */ |
buf | 651 | net/ipv4/ip_fw.c | sprintf(buf,"%ld,%ld,%ld,%ld,%d,%d", |
buf | 658 | net/ipv4/ip_fw.c | ftp->delta += strlen(buf) - (data-p); |
buf | 665 | net/ipv4/ip_fw.c | memcpy(p,buf,strlen(buf)); |
buf | 691 | net/ipv4/ip_fw.c | memcpy(&skb2->data[(p - (char *)skb->data)], buf, strlen(buf)); |
buf | 692 | net/ipv4/ip_fw.c | memcpy(&skb2->data[(p - (char *)skb->data) + strlen(buf)], data, |
buf | 72 | net/socket.c | static int sock_read(struct inode *inode, struct file *file, char *buf, |
buf | 74 | net/socket.c | static int sock_write(struct inode *inode, struct file *file, const char *buf, |