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 | 523 | arch/alpha/kernel/bios32.c | static char buf[80]; |
buf | 542 | arch/alpha/kernel/bios32.c | sprintf (buf, "UNKNOWN RETURN 0x%x", error); |
buf | 543 | arch/alpha/kernel/bios32.c | return buf; |
buf | 91 | arch/alpha/kernel/irq.c | int get_irq_list(char *buf) |
buf | 99 | 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 | 197 | drivers/block/aztcd.c | static char buf[2336]; /*separate buffer for the ioctls*/ |
buf | 812 | drivers/block/aztcd.c | st = verify_area(VERIFY_WRITE, (void *) arg, sizeof buf); |
buf | 831 | drivers/block/aztcd.c | insb(DATA_PORT,buf,2048); |
buf | 832 | drivers/block/aztcd.c | memcpy_tofs((void *) arg, &buf, 2048); |
buf | 837 | drivers/block/aztcd.c | insb(DATA_PORT,buf,2336); |
buf | 838 | drivers/block/aztcd.c | memcpy_tofs((void *) arg, &buf, 2336); |
buf | 230 | drivers/block/cdu31a.c | unsigned char *buf); |
buf | 987 | drivers/block/cdu31a.c | unsigned char *buf) |
buf | 989 | drivers/block/cdu31a.c | buf[0] = size / 65536; |
buf | 991 | drivers/block/cdu31a.c | buf[1] = size / 256; |
buf | 992 | drivers/block/cdu31a.c | buf[2] = size % 256; |
buf | 2157 | drivers/block/cdu31a.c | memcpy_tofs((char *) (ra->buf + (CD_FRAMESIZE_RAW * cframe)), |
buf | 2173 | drivers/block/cdu31a.c | memcpy_tofs((char *) (ra->buf + (CD_FRAMESIZE_RAW * cframe)), |
buf | 2522 | drivers/block/cdu31a.c | i=verify_area(VERIFY_WRITE, ra.buf, CD_FRAMESIZE_RAW * ra.nframes); |
buf | 3142 | drivers/block/floppy.c | char * buf, int count) |
buf | 3149 | drivers/block/floppy.c | return block_read(inode, filp, buf, count); |
buf | 3153 | drivers/block/floppy.c | char * buf, int count) |
buf | 3169 | drivers/block/floppy.c | ret= block_write(inode, filp, buf, count); |
buf | 378 | drivers/block/ide-cd.c | char buf[80]; |
buf | 393 | drivers/block/ide-cd.c | sprintf (buf, "Diagnostic failure on component %x", reqbuf->ascq); |
buf | 394 | drivers/block/ide-cd.c | s = buf; |
buf | 1524 | drivers/block/ide-cd.c | char *buf, int buflen) |
buf | 1530 | drivers/block/ide-cd.c | pc.buffer = buf; |
buf | 1609 | drivers/block/ide-cd.c | char *buf, int buflen) |
buf | 1615 | drivers/block/ide-cd.c | pc.buffer = buf; |
buf | 1629 | drivers/block/ide-cd.c | char *buf, int buflen) |
buf | 1635 | drivers/block/ide-cd.c | pc.buffer = buf; |
buf | 1646 | drivers/block/ide-cd.c | cdrom_mode_select (ide_dev_t *dev, int pageno, char *buf, int buflen) |
buf | 1652 | drivers/block/ide-cd.c | pc.buffer = buf; |
buf | 521 | drivers/block/ll_rw_blk.c | void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buf) |
buf | 547 | drivers/block/ll_rw_blk.c | for (; j < 8 && i < nb; j++, i++, buf += buffersize) |
buf | 563 | drivers/block/ll_rw_blk.c | req[j]->buffer = buf; |
buf | 211 | drivers/block/mcdx.c | static int mcdx_transfer(struct s_drive_stuff*, char* buf, int sector, int nr_sectors); |
buf | 603 | drivers/block/mcdx.c | char buf[512]; |
buf | 621 | drivers/block/mcdx.c | while (0 == (ans = mcdx_transfer(stuffp, buf, 0, 1))) |
buf | 1384 | drivers/block/mcdx.c | char buf[11]; |
buf | 1386 | drivers/block/mcdx.c | ans = mcdx_talk(stuffp, "\x20", 1, buf, sizeof(buf), 200, tries); |
buf | 1387 | drivers/block/mcdx.c | sub->control = buf[1]; |
buf | 1388 | drivers/block/mcdx.c | sub->tno = buf[2]; |
buf | 1389 | drivers/block/mcdx.c | sub->index = buf[3]; |
buf | 1390 | drivers/block/mcdx.c | sub->tt.minute = buf[4]; |
buf | 1391 | drivers/block/mcdx.c | sub->tt.second = buf[5]; |
buf | 1392 | drivers/block/mcdx.c | sub->tt.frame = buf[6]; |
buf | 1393 | drivers/block/mcdx.c | sub->dt.minute = buf[8]; |
buf | 1394 | drivers/block/mcdx.c | sub->dt.second = buf[9]; |
buf | 1395 | drivers/block/mcdx.c | sub->dt.frame = buf[10]; |
buf | 1402 | drivers/block/mcdx.c | char buf[5]; |
buf | 1406 | drivers/block/mcdx.c | ans = mcdx_talk(stuffp, "\x11", 1, buf, sizeof(buf), 200, tries); |
buf | 1407 | drivers/block/mcdx.c | multi->multi = buf[1]; |
buf | 1408 | drivers/block/mcdx.c | multi->msf_last.minute = buf[2]; |
buf | 1409 | drivers/block/mcdx.c | multi->msf_last.second = buf[3]; |
buf | 1410 | drivers/block/mcdx.c | multi->msf_last.frame = buf[4]; |
buf | 1421 | drivers/block/mcdx.c | char buf[9]; |
buf | 1423 | drivers/block/mcdx.c | ans = mcdx_talk(stuffp, "\x10", 1, buf, sizeof(buf), 200, tries); |
buf | 1424 | drivers/block/mcdx.c | info->n_first = bcd2uint(buf[1]); |
buf | 1425 | drivers/block/mcdx.c | info->n_last = bcd2uint(buf[2]); |
buf | 1426 | drivers/block/mcdx.c | info->msf_leadout.minute = buf[3]; |
buf | 1427 | drivers/block/mcdx.c | info->msf_leadout.second = buf[4]; |
buf | 1428 | drivers/block/mcdx.c | info->msf_leadout.frame = buf[5]; |
buf | 1429 | drivers/block/mcdx.c | info->msf_first.minute = buf[6]; |
buf | 1430 | drivers/block/mcdx.c | info->msf_first.second = buf[7]; |
buf | 1431 | drivers/block/mcdx.c | info->msf_first.frame = buf[8]; |
buf | 1496 | drivers/block/mcdx.c | char buf[3]; |
buf | 1499 | drivers/block/mcdx.c | if (-1 == (ans = mcdx_talk(stuffp, "\xdc", 1, buf, sizeof(buf), 200, tries))) |
buf | 1502 | drivers/block/mcdx.c | ver->code = buf[1]; |
buf | 1503 | drivers/block/mcdx.c | ver->ver = buf[2]; |
buf | 270 | drivers/block/optcd.c | inline static void optReadData(char *buf, int n) { |
buf | 271 | drivers/block/optcd.c | insb(DATA_PORT, buf, n); |
buf | 1202 | drivers/block/optcd.c | char buf[OPT_BLOCKSIZE]; |
buf | 1220 | drivers/block/optcd.c | optReadData(buf, OPT_BLOCKSIZE); |
buf | 1221 | drivers/block/optcd.c | memcpy_tofs((void *) arg, &buf, OPT_BLOCKSIZE); |
buf | 696 | drivers/block/sbpcd.c | char buf[256]; |
buf | 704 | drivers/block/sbpcd.c | sprintf(buf, "%s-%d [%02d]: ", major_name, d, msgnum); |
buf | 706 | drivers/block/sbpcd.c | vsprintf(&buf[15], fmt, args); |
buf | 708 | drivers/block/sbpcd.c | printk(buf); |
buf | 4132 | drivers/block/sbpcd.c | i=verify_area(VERIFY_WRITE, read_audio.buf, |
buf | 4291 | 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 | 1020 | drivers/char/console.c | char buf[40]; |
buf | 1022 | drivers/char/console.c | sprintf(buf, "\033[%ld;%ldR", y + (decom ? top+1 : 1), x+1); |
buf | 1023 | drivers/char/console.c | respond_string(buf, tty); |
buf | 1038 | drivers/char/console.c | char buf[8]; |
buf | 1040 | drivers/char/console.c | sprintf(buf, "\033[M%c%c%c", (char)(' ' + butt), (char)('!' + mrx), |
buf | 1042 | drivers/char/console.c | respond_string(buf, tty); |
buf | 1412 | drivers/char/console.c | unsigned char *buf, int count) |
buf | 1434 | drivers/char/console.c | c = from_user ? get_user(buf) : *buf; |
buf | 1435 | drivers/char/console.c | buf++; n++; count--; |
buf | 1564 | drivers/char/cyclades.c | 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 | 595 | drivers/char/keyboard.c | static char buf[] = { 0x1b, 'O', 0x00, 0x00 }; |
buf | 597 | drivers/char/keyboard.c | buf[1] = (mode ? 'O' : '['); |
buf | 598 | drivers/char/keyboard.c | buf[2] = key; |
buf | 599 | drivers/char/keyboard.c | puts_queue(buf); |
buf | 169 | drivers/char/lp.c | static int lp_write_interrupt(struct inode * inode, struct file * file, char * buf, int count) |
buf | 181 | drivers/char/lp.c | memcpy_fromfs(lp->lp_buffer, buf, copy_size); |
buf | 226 | drivers/char/lp.c | buf += bytes_written; |
buf | 235 | drivers/char/lp.c | char * buf, int count) |
buf | 239 | drivers/char/lp.c | char c, *temp = buf; |
buf | 249 | drivers/char/lp.c | temp = buf; |
buf | 265 | drivers/char/lp.c | return temp-buf?temp-buf:-ENOSPC; |
buf | 273 | drivers/char/lp.c | return temp-buf?temp-buf:-EIO; |
buf | 282 | drivers/char/lp.c | return temp-buf?temp-buf:-EIO; |
buf | 290 | drivers/char/lp.c | if (temp != buf) |
buf | 291 | drivers/char/lp.c | return temp-buf; |
buf | 305 | drivers/char/lp.c | return temp-buf; |
buf | 308 | drivers/char/lp.c | static int lp_write(struct inode * inode, struct file * file, char * buf, int count) |
buf | 311 | drivers/char/lp.c | return lp_write_interrupt(inode, file, buf, count); |
buf | 313 | drivers/char/lp.c | return lp_write_polled(inode, file, 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,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,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,char * buf, int count) |
buf | 140 | drivers/char/mem.c | 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,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,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 | unsigned char * buf, unsigned int nr) |
buf | 919 | drivers/char/n_tty.c | unsigned char *b = buf; |
buf | 964 | drivers/char/n_tty.c | return (b - buf) ? b - buf : retval; |
buf | 98 | drivers/char/psaux.c | unsigned char buf[AUX_BUF_SIZE]; |
buf | 176 | drivers/char/psaux.c | result = queue->buf[queue->tail]; |
buf | 200 | drivers/char/psaux.c | queue->buf[head] = inb(AUX_INPUT_PORT); |
buf | 221 | drivers/char/psaux.c | queue->buf[head] = inb(qp_data); |
buf | 113 | drivers/char/pty.c | unsigned char *buf, int count) |
buf | 128 | drivers/char/pty.c | memcpy_fromfs(temp_buffer, buf, n); |
buf | 134 | drivers/char/pty.c | buf += n; c+= n; |
buf | 140 | drivers/char/pty.c | to->ldisc.receive_buf(to, buf, 0, c); |
buf | 101 | drivers/char/scc.c | int scc_write(struct tty_struct *tty, int from_user, unsigned char *buf, int count); |
buf | 1991 | drivers/char/scc.c | int scc_write(struct tty_struct *tty, int from_user, unsigned char *buf, int count) |
buf | 2020 | drivers/char/scc.c | memcpy_fromfs(tmp_buf, buf, cnt); |
buf | 2024 | drivers/char/scc.c | memcpy(tmp_buf, buf, cnt); |
buf | 2026 | drivers/char/scc.c | buf += cnt; |
buf | 1296 | drivers/char/serial.c | unsigned char *buf, int count) |
buf | 1318 | drivers/char/serial.c | memcpy_fromfs(tmp_buf, buf, c); |
buf | 1324 | drivers/char/serial.c | memcpy(info->xmit_buf + info->xmit_head, buf, c); |
buf | 1328 | drivers/char/serial.c | buf += c; |
buf | 1390 | drivers/char/serial.c | char buf[64]; |
buf | 1392 | drivers/char/serial.c | printk("throttle %s: %d....\n", _tty_name(tty, buf), |
buf | 1413 | drivers/char/serial.c | char buf[64]; |
buf | 1415 | 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, 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, (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 | 117 | drivers/char/tty_io.c | char *_tty_name(struct tty_struct *tty, char *buf) |
buf | 120 | drivers/char/tty_io.c | sprintf(buf, "%s%d", tty->driver.name, |
buf | 124 | drivers/char/tty_io.c | strcpy(buf, "NULL tty"); |
buf | 125 | drivers/char/tty_io.c | return buf; |
buf | 130 | drivers/char/tty_io.c | static char buf[64]; |
buf | 132 | drivers/char/tty_io.c | return(_tty_name(tty, buf)); |
buf | 290 | drivers/char/tty_io.c | static int hung_up_tty_read(struct inode * inode, struct file * file, char * buf, int count) |
buf | 295 | drivers/char/tty_io.c | static int hung_up_tty_write(struct inode * inode, struct file * file, char * buf, int count) |
buf | 686 | drivers/char/tty_io.c | static int tty_read(struct inode * inode, struct file * file, char * buf, int count) |
buf | 715 | drivers/char/tty_io.c | i = (tty->ldisc.read)(tty,file,(unsigned char *)buf,(unsigned int)count); |
buf | 723 | drivers/char/tty_io.c | static int tty_write(struct inode * inode, struct file * file, char * buf, int count) |
buf | 751 | drivers/char/tty_io.c | i = (tty->ldisc.write)(tty,file,(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, 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((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 | 68 | drivers/net/3c503.c | const unsigned char *buf, const start_page); |
buf | 69 | drivers/net/3c503.c | static int el2_block_input(struct device *dev, int count, char *buf, |
buf | 377 | drivers/net/3c503.c | const unsigned char *buf, const start_page) |
buf | 388 | drivers/net/3c503.c | memcpy(dest_addr, buf, count); |
buf | 389 | drivers/net/3c503.c | if (ei_debug > 2 && memcmp(dest_addr, buf, count)) |
buf | 412 | drivers/net/3c503.c | outb(buf[i], E33G_FIFOH); |
buf | 420 | drivers/net/3c503.c | el2_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 432 | drivers/net/3c503.c | memcpy(buf, (char *)dev->mem_start + ring_offset, semi_count); |
buf | 434 | drivers/net/3c503.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
buf | 437 | drivers/net/3c503.c | memcpy(buf, (char *)dev->mem_start + ring_offset, count); |
buf | 457 | drivers/net/3c503.c | buf[i] = inb_p(E33G_FIFOH); |
buf | 290 | drivers/net/3c507.c | static void hardware_send_packet(struct device *dev, void *buf, short length); |
buf | 492 | drivers/net/3c507.c | unsigned char *buf = skb->data; |
buf | 496 | drivers/net/3c507.c | hardware_send_packet(dev, buf, length); |
buf | 756 | drivers/net/3c507.c | hardware_send_packet(struct device *dev, void *buf, short length) |
buf | 781 | drivers/net/3c507.c | memcpy(write_ptr, buf, length); |
buf | 63 | drivers/net/ac3200.c | char *buf, int ring_offset); |
buf | 65 | drivers/net/ac3200.c | const unsigned char *buf, const int start_page); |
buf | 220 | drivers/net/ac3200.c | static int ac_block_input(struct device *dev, int count, char *buf, |
buf | 228 | drivers/net/ac3200.c | memcpy(buf, (char*)xfer_start, semi_count); |
buf | 230 | drivers/net/ac3200.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
buf | 233 | drivers/net/ac3200.c | memcpy(buf, (char*)xfer_start, count); |
buf | 239 | drivers/net/ac3200.c | const unsigned char *buf, int start_page) |
buf | 243 | drivers/net/ac3200.c | memcpy((unsigned char *)shmem, buf, count); |
buf | 408 | drivers/net/at1700.c | unsigned char *buf = skb->data; |
buf | 414 | 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 | 2120 | drivers/net/de4x5.c | char *buf = frame; |
buf | 2123 | drivers/net/de4x5.c | *buf++ = dev->dev_addr[i]; |
buf | 2126 | drivers/net/de4x5.c | *buf++ = dev->dev_addr[i]; |
buf | 2129 | drivers/net/de4x5.c | *buf++ = 0; /* Packet length (2 bytes) */ |
buf | 2130 | drivers/net/de4x5.c | *buf++ = 1; |
buf | 2685 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->rx_ring[i].buf; j+=4; |
buf | 2688 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->rx_ring[i].buf; j+=4; |
buf | 2691 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->tx_ring[i].buf; j+=4; |
buf | 2694 | drivers/net/de4x5.c | tmp.lval[j>>2] = (s32)lp->tx_ring[i].buf; j+=4; |
buf | 2758 | 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 | 98 | drivers/net/e2100.c | char *buf, int ring_offset); |
buf | 100 | drivers/net/e2100.c | const unsigned char *buf, const start_page); |
buf | 273 | drivers/net/e2100.c | e21_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 283 | drivers/net/e2100.c | ((int*)buf)[0] = ((int*)shared_mem)[0]; |
buf | 285 | drivers/net/e2100.c | memcpy(buf, shared_mem + (ring_offset & 0xff), count); |
buf | 294 | drivers/net/e2100.c | e21_block_output(struct device *dev, int count, const unsigned char *buf, |
buf | 305 | drivers/net/e2100.c | memcpy((char*)shared_mem, buf, count); |
buf | 154 | drivers/net/eepro.c | static void hardware_send_packet(struct device *dev, void *buf, short length); |
buf | 652 | drivers/net/eepro.c | unsigned char *buf = skb->data; |
buf | 654 | drivers/net/eepro.c | hardware_send_packet(dev, buf, length); |
buf | 934 | drivers/net/eepro.c | hardware_send_packet(struct device *dev, void *buf, short length) |
buf | 979 | drivers/net/eepro.c | outsw(ioaddr + IO_PORT, buf, (length + 1) >> 1); |
buf | 300 | drivers/net/eexpress.c | static void hardware_send_packet(struct device *dev, void *buf, short length); |
buf | 497 | drivers/net/eexpress.c | unsigned char *buf = skb->data; |
buf | 501 | drivers/net/eexpress.c | hardware_send_packet(dev, buf, length); |
buf | 854 | drivers/net/eexpress.c | hardware_send_packet(struct device *dev, void *buf, short length) |
buf | 880 | 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 | 102 | drivers/net/hp-plus.c | char *buf, int ring_offset); |
buf | 104 | drivers/net/hp-plus.c | const unsigned char *buf, const start_page); |
buf | 106 | drivers/net/hp-plus.c | char *buf, int ring_offset); |
buf | 108 | drivers/net/hp-plus.c | const unsigned char *buf, const start_page); |
buf | 311 | drivers/net/hp-plus.c | hpp_io_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 316 | drivers/net/hp-plus.c | insw(ioaddr + HP_DATAPORT, buf, count>>1); |
buf | 318 | drivers/net/hp-plus.c | buf[count-1] = inw(ioaddr + HP_DATAPORT); |
buf | 323 | drivers/net/hp-plus.c | hpp_mem_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 332 | drivers/net/hp-plus.c | memcpy(buf, (char*)dev->mem_start, (count + 3) & ~3); |
buf | 342 | drivers/net/hp-plus.c | const unsigned char *buf, const start_page) |
buf | 346 | drivers/net/hp-plus.c | outsl(ioaddr + HP_DATAPORT, buf, (count+3)>>2); |
buf | 352 | drivers/net/hp-plus.c | const unsigned char *buf, const start_page) |
buf | 359 | drivers/net/hp-plus.c | memcpy((char *)dev->mem_start, buf, (count + 3) & ~3); |
buf | 60 | drivers/net/hp.c | char *buf, int ring_offset); |
buf | 62 | drivers/net/hp.c | const unsigned char *buf, const start_page); |
buf | 219 | drivers/net/hp.c | hp_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 233 | drivers/net/hp.c | insw(nic_base - NIC_OFFSET + HP_DATAPORT,buf,count>>1); |
buf | 235 | drivers/net/hp.c | buf[count-1] = inb(nic_base - NIC_OFFSET + HP_DATAPORT), xfer_count++; |
buf | 237 | drivers/net/hp.c | insb(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count); |
buf | 255 | drivers/net/hp.c | const unsigned char *buf, const start_page) |
buf | 290 | drivers/net/hp.c | outsw(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count>>1); |
buf | 292 | drivers/net/hp.c | outsb(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count); |
buf | 93 | drivers/net/ne.c | char *buf, int ring_offset); |
buf | 95 | drivers/net/ne.c | const unsigned char *buf, const int start_page); |
buf | 372 | drivers/net/ne.c | ne_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 396 | drivers/net/ne.c | insw(NE_BASE + NE_DATAPORT,buf,count>>1); |
buf | 398 | drivers/net/ne.c | buf[count-1] = inb(NE_BASE + NE_DATAPORT); |
buf | 404 | drivers/net/ne.c | insb(NE_BASE + NE_DATAPORT, buf, count); |
buf | 436 | drivers/net/ne.c | const unsigned char *buf, const int start_page) |
buf | 493 | drivers/net/ne.c | outsw(NE_BASE + NE_DATAPORT, buf, count>>1); |
buf | 495 | 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 | 1292 | drivers/net/ppp.c | put_user (PPP_ADDRESS, buf++); |
buf | 1293 | drivers/net/ppp.c | put_user (PPP_CONTROL, buf++); |
buf | 1297 | drivers/net/ppp.c | put_user (c, buf++); |
buf | 1341 | drivers/net/ppp.c | ppp_write(struct tty_struct *tty, struct file *file, unsigned char *buf, unsigned int nr) |
buf | 1364 | drivers/net/ppp.c | ppp_print_buffer ("write frame", buf, nr, USER_DS); |
buf | 1392 | drivers/net/ppp.c | ppp_stuff_char(ppp,get_user(buf++)); |
buf | 2035 | drivers/net/ppp.c | static void ppp_print_buffer(const char *name, char *buf, int count, int seg) |
buf | 2047 | drivers/net/ppp.c | ppp_print_hex (line, buf, 8); |
buf | 2048 | drivers/net/ppp.c | ppp_print_char (&line[8 * 3], buf, 8); |
buf | 2051 | drivers/net/ppp.c | buf += 8; |
buf | 2056 | drivers/net/ppp.c | ppp_print_hex (line, buf, count); |
buf | 2057 | 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 | 108 | drivers/net/skeleton.c | extern void hardware_send_packet(short ioaddr, char *buf, int length); |
buf | 341 | drivers/net/skeleton.c | unsigned char *buf = skb->data; |
buf | 343 | drivers/net/skeleton.c | hardware_send_packet(ioaddr, buf, length); |
buf | 65 | drivers/net/smc-ultra.c | char *buf, int ring_offset); |
buf | 67 | drivers/net/smc-ultra.c | const unsigned char *buf, const start_page); |
buf | 247 | drivers/net/smc-ultra.c | ultra_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 258 | drivers/net/smc-ultra.c | memcpy(buf, xfer_start, semi_count); |
buf | 260 | drivers/net/smc-ultra.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
buf | 264 | drivers/net/smc-ultra.c | memcpy(buf, xfer_start, count); |
buf | 271 | drivers/net/smc-ultra.c | ultra_block_output(struct device *dev, int count, const unsigned char *buf, |
buf | 280 | drivers/net/smc-ultra.c | memcpy(shmem, buf, count); |
buf | 1272 | drivers/net/wavelan.c | hardware_send_packet(device *dev, void *buf, short length) |
buf | 1338 | drivers/net/wavelan.c | obram_write(ioaddr, buf_addr, buf, length); |
buf | 1367 | drivers/net/wavelan.c | a = (unsigned char *)buf; |
buf | 1435 | drivers/net/wavelan.c | unsigned char *buf; |
buf | 1438 | drivers/net/wavelan.c | buf = skb->data; |
buf | 1440 | drivers/net/wavelan.c | hardware_send_packet(dev, buf, length); |
buf | 45 | drivers/net/wd.c | char *buf, int ring_offset); |
buf | 47 | drivers/net/wd.c | const unsigned char *buf, const start_page); |
buf | 315 | drivers/net/wd.c | wd_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 325 | drivers/net/wd.c | ((int*)buf)[0] = ((int*)xfer_start)[0]; |
buf | 332 | drivers/net/wd.c | memcpy(buf, (char *)xfer_start, semi_count); |
buf | 334 | drivers/net/wd.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
buf | 336 | drivers/net/wd.c | memcpy(buf, (char *)xfer_start, count); |
buf | 346 | drivers/net/wd.c | wd_block_output(struct device *dev, int count, const unsigned char *buf, |
buf | 356 | drivers/net/wd.c | memcpy((char *)shmem, buf, count); |
buf | 359 | drivers/net/wd.c | memcpy((char *)shmem, buf, count); |
buf | 361 | drivers/net/znet.c | unsigned char *buf = (void *)skb->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 | 407 | drivers/pci/pci.c | static int sprint_dev_config(struct pci_dev *dev, char *buf, int size) |
buf | 430 | drivers/pci/pci.c | len += sprintf(buf + len, " Bus %2d, device %3d, function %2d:\n", |
buf | 436 | drivers/pci/pci.c | len += sprintf(buf + len, " %s: %s %s (rev %d).\n ", |
buf | 441 | drivers/pci/pci.c | len += sprintf(buf + len, |
buf | 455 | drivers/pci/pci.c | len += sprintf(buf + len, str); |
buf | 462 | drivers/pci/pci.c | len += sprintf(buf + len, fast_b2b_capable); |
buf | 471 | drivers/pci/pci.c | len += sprintf(buf + len, BIST_capable); |
buf | 479 | drivers/pci/pci.c | len += sprintf(buf + len, "IRQ %d. ", dev->irq); |
buf | 486 | drivers/pci/pci.c | len += sprintf(buf + len, "Master Capable. "); |
buf | 488 | drivers/pci/pci.c | len += sprintf(buf + len, "Latency=%d. ", latency); |
buf | 490 | drivers/pci/pci.c | len += sprintf(buf + len, "No bursts. "); |
buf | 492 | drivers/pci/pci.c | len += sprintf(buf + len, "Min Gnt=%d.", min_gnt); |
buf | 494 | drivers/pci/pci.c | len += sprintf(buf + len, "Max Lat=%d.", max_lat); |
buf | 508 | drivers/pci/pci.c | len += sprintf(buf + len, |
buf | 532 | drivers/pci/pci.c | len += sprintf(buf + len, |
buf | 539 | drivers/pci/pci.c | len += sprintf(buf + len, "\n"); |
buf | 548 | drivers/pci/pci.c | int get_pci_list(char *buf) |
buf | 556 | drivers/pci/pci.c | len = sprintf(buf, "PCI devices found:\n"); |
buf | 559 | drivers/pci/pci.c | nprinted = sprint_dev_config(dev, buf + len, size - len); |
buf | 561 | drivers/pci/pci.c | return len + sprintf(buf + len, MSG); |
buf | 2054 | drivers/scsi/53c7,8xx.c | char buf[80]; |
buf | 2063 | drivers/scsi/53c7,8xx.c | sprintf (buf, "scsi%d : bp : warning : processor not halted\b", |
buf | 2065 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, strlen(buf)); |
buf | 2071 | drivers/scsi/53c7,8xx.c | sprintf (buf, "scsi%d : bp : success : at %08x, replaces %08x %08x", |
buf | 2073 | drivers/scsi/53c7,8xx.c | len = strlen(buf); |
buf | 2076 | drivers/scsi/53c7,8xx.c | sprintf(buf + len, "%08x\n", * (u32 *) bp->addr); |
buf | 2078 | drivers/scsi/53c7,8xx.c | sprintf(buf + len, "\n"); |
buf | 2080 | drivers/scsi/53c7,8xx.c | len = strlen(buf); |
buf | 2081 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, len); |
buf | 2092 | drivers/scsi/53c7,8xx.c | char buf[80]; |
buf | 2100 | drivers/scsi/53c7,8xx.c | sprintf (buf, "scsi%d : bs : failure : NCR not halted\n", host->host_no); |
buf | 2101 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, strlen(buf)); |
buf | 2149 | drivers/scsi/53c7,8xx.c | char *buf,int count) { |
buf | 2162 | drivers/scsi/53c7,8xx.c | if (error = verify_area(VERIFY_READ,buf,count)) |
buf | 2168 | drivers/scsi/53c7,8xx.c | memcpy_from_fs(input_buf, buf, count); |
buf | 2201 | drivers/scsi/53c7,8xx.c | char *buf,int count) { |
buf | 2206 | drivers/scsi/53c7,8xx.c | static debugger_kernel_write (struct Scsi_Host *host, char *buf, size_t |
buf | 2219 | drivers/scsi/53c7,8xx.c | memcpy (hostdata->debug_write, buf, copy); |
buf | 2220 | drivers/scsi/53c7,8xx.c | buf += copy; |
buf | 2596 | drivers/scsi/53c7,8xx.c | u32 buf = cmd->use_sg ? |
buf | 2606 | drivers/scsi/53c7,8xx.c | cmd_datain[1] = buf; |
buf | 2620 | drivers/scsi/53c7,8xx.c | cmd_dataout[1] = buf; |
buf | 3056 | drivers/scsi/53c7,8xx.c | char buf[80]; /* Debugging sprintf buffer */ |
buf | 3716 | drivers/scsi/53c7,8xx.c | char buf[80], /* Temporary buffer and pointer */ |
buf | 3722 | drivers/scsi/53c7,8xx.c | sprintf(buf, "%s%p : 0x%08x 0x%08x", (prefix ? prefix : ""), |
buf | 3724 | drivers/scsi/53c7,8xx.c | tmp = buf + strlen(buf); |
buf | 3734 | drivers/scsi/53c7,8xx.c | printk ("%s", buf); |
buf | 3737 | drivers/scsi/53c7,8xx.c | size_t len = strlen(buf); |
buf | 3738 | drivers/scsi/53c7,8xx.c | debugger_kernel_write(host, buf, len); |
buf | 1028 | drivers/scsi/aha1542.c | unchar buf[8]; |
buf | 1032 | drivers/scsi/aha1542.c | for (i = 0; i < sizeof(buf); ++i) buf[i] = 0x87; |
buf | 1034 | drivers/scsi/aha1542.c | if (!aha1542_command(i, cmd, buf, sizeof(buf))) { |
buf | 1036 | drivers/scsi/aha1542.c | i, xscsi2int(buf+4), xscsi2int(buf)); |
buf | 897 | drivers/scsi/aic7xxx.c | char buf[256]; |
buf | 900 | drivers/scsi/aic7xxx.c | vsprintf(buf, fmt, ap); |
buf | 901 | drivers/scsi/aic7xxx.c | printk(buf); |
buf | 1146 | drivers/scsi/aic7xxx.c | static char buf[10]; |
buf | 1150 | drivers/scsi/aic7xxx.c | strcpy(buf, "????"); |
buf | 1179 | drivers/scsi/aic7xxx.c | strncpy(buf, bp, len); |
buf | 1180 | drivers/scsi/aic7xxx.c | buf[len] = '\0'; |
buf | 1184 | drivers/scsi/aic7xxx.c | return buf; |
buf | 2239 | drivers/scsi/aic7xxx.c | unsigned char buf[4]; |
buf | 2243 | drivers/scsi/aic7xxx.c | unsigned char signature[sizeof(buf)]; |
buf | 2256 | drivers/scsi/aic7xxx.c | for (i = 0; i < sizeof(buf); i++) |
buf | 2259 | drivers/scsi/aic7xxx.c | buf[i] = inb(base + i); |
buf | 2267 | drivers/scsi/aic7xxx.c | if (!memcmp(buf, AIC7xxx[i].signature, AIC7xxx[i].n)) |
buf | 206 | drivers/scsi/aic7xxx_asm.c | static char buf[MAXLINE]; |
buf | 211 | drivers/scsi/aic7xxx_asm.c | while (fgets(buf, sizeof(buf), ifp)) { |
buf | 215 | drivers/scsi/aic7xxx_asm.c | if (buf[strlen(buf)-1] != '\n') |
buf | 218 | drivers/scsi/aic7xxx_asm.c | p = strchr(buf, '#'); |
buf | 221 | 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 | 762 | drivers/scsi/eata_dma.c | int get_conf_PIO(u32 base, struct get_conf *buf) |
buf | 770 | drivers/scsi/eata_dma.c | memset(buf, 0, sizeof(struct get_conf)); |
buf | 781 | drivers/scsi/eata_dma.c | for (p = (u16 *) buf; |
buf | 782 | drivers/scsi/eata_dma.c | (long)p <= ((long)buf + (sizeof(struct get_conf) / 2)); p++) { |
buf | 792 | drivers/scsi/eata_dma.c | if (htonl(EATA_SIGNATURE) == buf->signature) { |
buf | 795 | drivers/scsi/eata_dma.c | (uint) (buf->version))); |
buf | 1081 | drivers/scsi/eata_dma.c | void find_EISA(struct get_conf *buf, Scsi_Host_Template * tpnt) |
buf | 1105 | drivers/scsi/eata_dma.c | if (get_conf_PIO(base, buf) == TRUE) { |
buf | 1106 | drivers/scsi/eata_dma.c | DBG(DBG_PROBE && DBG_EISA, print_config(buf)); |
buf | 1107 | drivers/scsi/eata_dma.c | if (buf->IRQ) { |
buf | 1108 | drivers/scsi/eata_dma.c | register_HBA(base, buf, tpnt, IS_EISA); |
buf | 1126 | drivers/scsi/eata_dma.c | void find_ISA(struct get_conf *buf, Scsi_Host_Template * tpnt) |
buf | 1132 | drivers/scsi/eata_dma.c | if (get_conf_PIO(ISAbases[i],buf) == TRUE){ |
buf | 1133 | drivers/scsi/eata_dma.c | register_HBA(ISAbases[i], buf, tpnt, IS_ISA); |
buf | 1145 | 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 | 588 | drivers/scsi/eata_pio.c | int get_pio_conf_PIO(u32 base, struct get_conf *buf) |
buf | 597 | drivers/scsi/eata_pio.c | memset(buf, 0, sizeof(struct get_conf)); |
buf | 608 | drivers/scsi/eata_pio.c | for (p = (ushort *) buf; |
buf | 609 | drivers/scsi/eata_pio.c | (long)p <= ((long)buf + (sizeof(struct get_conf)/ 2)); p++) { |
buf | 618 | drivers/scsi/eata_pio.c | if (htonl(EATA_SIGNATURE) == buf->signature) { |
buf | 621 | drivers/scsi/eata_pio.c | (uint) (buf->version))); |
buf | 628 | drivers/scsi/eata_pio.c | buf->IRQ = ISAirqs[z]; |
buf | 821 | drivers/scsi/eata_pio.c | void find_pio_ISA(struct get_conf *buf, Scsi_Host_Template * tpnt) |
buf | 827 | drivers/scsi/eata_pio.c | if (get_pio_conf_PIO(ISAbases[i], buf) == TRUE){ |
buf | 828 | drivers/scsi/eata_pio.c | register_pio_HBA(ISAbases[i], buf, tpnt); |
buf | 836 | drivers/scsi/eata_pio.c | void find_pio_EISA(struct get_conf *buf, Scsi_Host_Template * tpnt) |
buf | 860 | drivers/scsi/eata_pio.c | if (get_pio_conf_PIO(base, buf) == TRUE) { |
buf | 861 | drivers/scsi/eata_pio.c | DBG(DBG_PROBE && DBG_EISA, print_pio_config(buf)); |
buf | 862 | drivers/scsi/eata_pio.c | if (buf->IRQ) { |
buf | 863 | drivers/scsi/eata_pio.c | register_pio_HBA(base, buf, tpnt); |
buf | 877 | drivers/scsi/eata_pio.c | void find_pio_PCI(struct get_conf *buf, Scsi_Host_Template * tpnt) |
buf | 936 | drivers/scsi/eata_pio.c | if (get_pio_conf_PIO(base, buf) == TRUE) { |
buf | 937 | drivers/scsi/eata_pio.c | if (buf->FORCADR) /* If the address is forced */ |
buf | 945 | 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,char *buf,int count) |
buf | 303 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_READ,buf,count))) |
buf | 334 | drivers/scsi/sg.c | memcpy_fromfs(&device->header,buf,sizeof(struct sg_header)); |
buf | 340 | drivers/scsi/sg.c | buf+=sizeof(struct sg_header); |
buf | 400 | drivers/scsi/sg.c | opcode = get_user(buf); |
buf | 428 | drivers/scsi/sg.c | memcpy_fromfs(cmnd,buf,size); |
buf | 429 | drivers/scsi/sg.c | buf+=size; |
buf | 436 | 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 | 756 | drivers/scsi/st.c | st_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 838 | drivers/scsi/st.c | b_point = buf; |
buf | 998 | drivers/scsi/st.c | st_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 1205 | drivers/scsi/st.c | memcpy_tofs(buf, (STp->buffer)->b_data + |
buf | 1208 | 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 | 107 | drivers/sound/ad1848.c | static void ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
buf | 108 | drivers/sound/ad1848.c | static void ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
buf | 810 | drivers/sound/ad1848.c | ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
buf | 847 | drivers/sound/ad1848.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
buf | 886 | drivers/sound/ad1848.c | ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
buf | 922 | 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 | 505 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 511 | 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 | 541 | drivers/sound/dmabuf.c | DMAbuf_getwrbuffer (int dev, char **buf, int *size, int dontblock) |
buf | 607 | drivers/sound/dmabuf.c | *buf = dmap->buf[dmap->qtail]; |
buf | 991 | drivers/sound/dmabuf.c | DMAbuf_getwrbuffer (int dev, char **buf, int *size, int dontblock) |
buf | 997 | 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 | 279 | drivers/sound/sound_switch.c | read_status (snd_rw_buf * buf, int count) |
buf | 294 | drivers/sound/sound_switch.c | COPY_TO_USER (buf, 0, &status_buf[status_ptr], l); |
buf | 301 | drivers/sound/sound_switch.c | sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 308 | drivers/sound/sound_switch.c | return read_status (buf, count); |
buf | 314 | drivers/sound/sound_switch.c | return audio_read (dev, file, buf, count); |
buf | 319 | drivers/sound/sound_switch.c | return sequencer_read (dev, file, buf, count); |
buf | 324 | drivers/sound/sound_switch.c | return MIDIbuf_read (dev, file, buf, count); |
buf | 335 | drivers/sound/sound_switch.c | sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 345 | drivers/sound/sound_switch.c | return sequencer_write (dev, file, buf, count); |
buf | 351 | drivers/sound/sound_switch.c | return audio_write (dev, file, buf, count); |
buf | 356 | 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 | 364 | fs/binfmt_elf.c | elf_ex = *((struct elfhdr *) bprm->buf); /* exec-header */ |
buf | 443 | fs/binfmt_elf.c | retval = read_exec(interpreter_inode,0,bprm->buf,128, 1); |
buf | 446 | fs/binfmt_elf.c | interp_ex = *((struct exec *) bprm->buf); /* exec-header */ |
buf | 447 | 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, 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 | 288 | fs/block_dev.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 290 | fs/block_dev.c | buf += chars; |
buf | 293 | fs/block_dev.c | put_user(0,buf++); |
buf | 731 | fs/buffer.c | void set_writetime(struct buffer_head * buf, int flag) |
buf | 735 | fs/buffer.c | if (buf->b_dirt){ |
buf | 739 | fs/buffer.c | if(!buf->b_flushtime || buf->b_flushtime > newtime) |
buf | 740 | fs/buffer.c | buf->b_flushtime = newtime; |
buf | 742 | fs/buffer.c | buf->b_flushtime = 0; |
buf | 747 | fs/buffer.c | void refile_buffer(struct buffer_head * buf){ |
buf | 749 | fs/buffer.c | if(buf->b_dev == 0xffff) panic("Attempt to refile free buffer\n"); |
buf | 750 | fs/buffer.c | if (buf->b_dirt) |
buf | 752 | fs/buffer.c | else if (mem_map[MAP_NR((unsigned long) buf->b_data)] > 1) |
buf | 754 | fs/buffer.c | else if (buf->b_lock) |
buf | 756 | fs/buffer.c | else if (buf->b_list == BUF_SHARED) |
buf | 760 | fs/buffer.c | if(dispose == BUF_CLEAN) buf->b_lru_time = jiffies; |
buf | 761 | fs/buffer.c | if(dispose != buf->b_list) { |
buf | 763 | fs/buffer.c | buf->b_lru_time = jiffies; |
buf | 765 | fs/buffer.c | (buf->b_flushtime - buf->b_lru_time) <= bdf_prm.b_un.age_super) |
buf | 767 | fs/buffer.c | remove_from_queues(buf); |
buf | 768 | fs/buffer.c | buf->b_list = dispose; |
buf | 769 | fs/buffer.c | insert_into_queues(buf); |
buf | 777 | fs/buffer.c | void brelse(struct buffer_head * buf) |
buf | 779 | fs/buffer.c | if (!buf) |
buf | 781 | fs/buffer.c | wait_on_buffer(buf); |
buf | 784 | fs/buffer.c | set_writetime(buf, 0); |
buf | 785 | fs/buffer.c | refile_buffer(buf); |
buf | 787 | fs/buffer.c | if (buf->b_count) { |
buf | 788 | fs/buffer.c | if (--buf->b_count) |
buf | 617 | fs/exec.c | memset(bprm.buf,0,sizeof(bprm.buf)); |
buf | 618 | fs/exec.c | retval = read_exec(bprm.inode,0,bprm.buf,128,1); |
buf | 621 | fs/exec.c | if ((bprm.buf[0] == '#') && (bprm.buf[1] == '!') && (!sh_bang)) { |
buf | 630 | fs/exec.c | bprm.buf[127] = '\0'; |
buf | 631 | fs/exec.c | if ((cp = strchr(bprm.buf, '\n')) == NULL) |
buf | 632 | fs/exec.c | cp = bprm.buf+127; |
buf | 634 | fs/exec.c | while (cp > bprm.buf) { |
buf | 641 | fs/exec.c | for (cp = bprm.buf+2; (*cp == ' ') || (*cp == '\t'); cp++); |
buf | 752 | 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, 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 | 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 | 752 | fs/ext2/super.c | void ext2_statfs (struct super_block * sb, struct statfs * buf, int bufsiz) |
buf | 783 | fs/ext2/super.c | memcpy_tofs(buf, &tmp, bufsiz); |
buf | 185 | fs/hpfs/hpfs_fs.c | char *buf, int count); |
buf | 725 | fs/hpfs/hpfs_fs.c | static void hpfs_statfs(struct super_block *s, struct statfs *buf, int bufsiz) |
buf | 749 | fs/hpfs/hpfs_fs.c | memcpy_tofs(buf, &tmp, bufsiz); |
buf | 864 | fs/hpfs/hpfs_fs.c | char *buf, int count) |
buf | 880 | fs/hpfs/hpfs_fs.c | start = buf; |
buf | 915 | fs/hpfs/hpfs_fs.c | memcpy_tofs(buf, block + r, n); |
buf | 922 | fs/hpfs/hpfs_fs.c | n0 = convcpy_tofs(buf, block + r, n); |
buf | 933 | fs/hpfs/hpfs_fs.c | buf += n0; |
buf | 937 | fs/hpfs/hpfs_fs.c | return buf - start; |
buf | 1565 | 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, 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 | char *buf, |
buf | 296 | fs/msdos/file.c | for (start = buf; count || carry; count -= size) { |
buf | 321 | fs/msdos/file.c | memcpy_fromfs(bh->b_data+offset,buf,written = size); |
buf | 322 | fs/msdos/file.c | buf += size; |
buf | 333 | fs/msdos/file.c | if ((ch = get_user(buf++)) == '\n') { |
buf | 354 | fs/msdos/file.c | if (start == buf) |
buf | 359 | fs/msdos/file.c | return buf-start; |
buf | 312 | fs/msdos/inode.c | void msdos_statfs(struct super_block *sb,struct statfs *buf, int bufsiz) |
buf | 335 | 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, char *buf, |
buf | 227 | fs/nfs/file.c | pos, hunk, buf, &fattr); |
buf | 231 | fs/nfs/file.c | buf += hunk; |
buf | 176 | fs/nfs/inode.c | void nfs_statfs(struct super_block *sb, struct statfs *buf, int bufsiz) |
buf | 196 | fs/nfs/inode.c | memcpy_tofs(buf, &tmp, bufsiz); |
buf | 30 | fs/open.c | asmlinkage int sys_statfs(const char * path, struct statfs * buf) |
buf | 35 | fs/open.c | error = verify_area(VERIFY_WRITE, buf, sizeof(struct statfs)); |
buf | 45 | fs/open.c | inode->i_sb->s_op->statfs(inode->i_sb, buf, sizeof(struct statfs)); |
buf | 50 | fs/open.c | asmlinkage int sys_fstatfs(unsigned int fd, struct statfs * buf) |
buf | 56 | fs/open.c | error = verify_area(VERIFY_WRITE, buf, sizeof(struct statfs)); |
buf | 65 | 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, 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_rw(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 198 | fs/pipe.c | static int connect_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 211 | 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 | 82 | fs/proc/array.c | memcpy_tofs(buf,(void *) pnt, count1); |
buf | 83 | fs/proc/array.c | buf += count1; |
buf | 90 | fs/proc/array.c | put_user(0,buf); |
buf | 91 | fs/proc/array.c | buf++; |
buf | 96 | fs/proc/array.c | memcpy_tofs(buf,(void *) (p - PAGE_SIZE),count); |
buf | 122 | fs/proc/array.c | static int read_profile(struct inode *inode, struct file *file, char *buf, int count) |
buf | 138 | fs/proc/array.c | put_user(*((char *)(&sample_step)+p),buf); |
buf | 139 | fs/proc/array.c | buf++; p++; count--; read++; |
buf | 142 | fs/proc/array.c | memcpy_tofs(buf,(void *)pnt,count); |
buf | 149 | fs/proc/array.c | static int write_profile(struct inode * inode, struct file * file, char * buf, int count) |
buf | 606 | fs/proc/array.c | static int read_maps (int pid, struct file * file, char * buf, int count) |
buf | 629 | fs/proc/array.c | destptr = buf; |
buf | 693 | fs/proc/array.c | return destptr-buf; |
buf | 783 | fs/proc/array.c | static int array_read(struct inode * inode, struct file * file,char * buf, int count) |
buf | 809 | fs/proc/array.c | memcpy_tofs(buf, (char *) page + file->f_pos, count); |
buf | 846 | fs/proc/array.c | static int arraylong_read (struct inode * inode, struct file * file, char * buf, int count) |
buf | 856 | 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 | 96 | fs/proc/inode.c | void proc_statfs(struct super_block *sb, struct statfs *buf, int bufsiz) |
buf | 108 | 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 | 26 | fs/proc/mem.c | static int mem_read(struct inode * inode, struct file * file,char * buf, int count) |
buf | 50 | fs/proc/mem.c | tmp = buf; |
buf | 83 | fs/proc/mem.c | return tmp-buf; |
buf | 88 | fs/proc/mem.c | static int mem_write(struct inode * inode, struct file * file,char * buf, int count) |
buf | 112 | fs/proc/mem.c | tmp = buf; |
buf | 147 | fs/proc/mem.c | if (tmp != buf) |
buf | 148 | fs/proc/mem.c | return tmp-buf; |
buf | 41 | fs/proc/net.c | char * buf, int count); |
buf | 233 | fs/proc/net.c | char * buf, int count) |
buf | 383 | fs/proc/net.c | memcpy_tofs(buf+copied, start, length); |
buf | 150 | fs/proc/root.c | char buf[NUMBUF]; |
buf | 177 | fs/proc/root.c | buf[j] = '0' + (i % 10); |
buf | 181 | fs/proc/root.c | if (filldir(dirent, buf+j, NUMBUF-j, nr+NR_ROOT_DIRENTRY, (pid << 16)+2) < 0) |
buf | 34 | fs/proc/scsi.c | char * buf, int count); |
buf | 36 | fs/proc/scsi.c | char * buf, int count); |
buf | 226 | fs/proc/scsi.c | char * buf, int count) |
buf | 269 | fs/proc/scsi.c | memcpy_tofs(buf + copied, start, length); |
buf | 285 | fs/proc/scsi.c | char * buf, int count) |
buf | 298 | 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 | 108 | fs/smbfs/file.c | pos, to_read, buf, 1); |
buf | 112 | fs/smbfs/file.c | buf += result; |
buf | 131 | fs/smbfs/file.c | smb_file_write(struct inode *inode, struct file *file, char *buf, int count) |
buf | 170 | fs/smbfs/file.c | pos, to_write, buf); |
buf | 176 | fs/smbfs/file.c | buf += result; |
buf | 315 | fs/smbfs/inode.c | smb_statfs(struct super_block *sb, struct statfs *buf, int bufsiz) |
buf | 337 | fs/smbfs/inode.c | memcpy_tofs(buf, &tmp, bufsiz); |
buf | 494 | fs/smbfs/proc.c | byte *buf = server->packet; |
buf | 509 | fs/smbfs/proc.c | WSET(buf, smb_tid, server->tid); |
buf | 510 | fs/smbfs/proc.c | WSET(buf, smb_pid, server->pid); |
buf | 511 | fs/smbfs/proc.c | WSET(buf, smb_uid, server->server_uid); |
buf | 512 | fs/smbfs/proc.c | WSET(buf, smb_mid, server->mid); |
buf | 515 | fs/smbfs/proc.c | BSET(buf, smb_flg, 0x8); |
buf | 516 | fs/smbfs/proc.c | WSET(buf, smb_flg2, 0x3); |
buf | 550 | fs/smbfs/proc.c | char* buf = server->packet; |
buf | 559 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, 0x42); /* read/write */ |
buf | 560 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, o_attr); |
buf | 575 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, 0x40); /* read only */ |
buf | 576 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, o_attr); |
buf | 590 | fs/smbfs/proc.c | entry->fileid = WVAL(buf, smb_vwv0); |
buf | 591 | fs/smbfs/proc.c | entry->attr = WVAL(buf, smb_vwv1); |
buf | 593 | fs/smbfs/proc.c | entry->mtime = local2utc(DVAL(buf, smb_vwv2)); |
buf | 594 | fs/smbfs/proc.c | entry->size = DVAL(buf, smb_vwv4); |
buf | 595 | fs/smbfs/proc.c | entry->access = WVAL(buf, smb_vwv6); |
buf | 609 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 612 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, finfo->fileid); |
buf | 613 | fs/smbfs/proc.c | DSET(buf, smb_vwv1, utc2local(finfo->mtime)); |
buf | 629 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 634 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, finfo->fileid); |
buf | 635 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, count); |
buf | 636 | fs/smbfs/proc.c | DSET(buf, smb_vwv2, offset); |
buf | 637 | fs/smbfs/proc.c | WSET(buf, smb_vwv4, 0); |
buf | 644 | fs/smbfs/proc.c | returned_count = WVAL(buf, smb_vwv0); |
buf | 664 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 668 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, finfo->fileid); |
buf | 669 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, count); |
buf | 670 | fs/smbfs/proc.c | DSET(buf, smb_vwv2, offset); |
buf | 671 | fs/smbfs/proc.c | WSET(buf, smb_vwv4, 0); |
buf | 678 | fs/smbfs/proc.c | res = WVAL(buf, smb_vwv0); |
buf | 694 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 699 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, entry->attr); |
buf | 700 | fs/smbfs/proc.c | DSET(buf, smb_vwv1, utc2local(entry->ctime)); |
buf | 712 | fs/smbfs/proc.c | entry->fileid = WVAL(buf, smb_vwv0); |
buf | 740 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 747 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, 0); |
buf | 806 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 813 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, 0); |
buf | 829 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 836 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, fid); |
buf | 837 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, 0); |
buf | 838 | fs/smbfs/proc.c | DSET(buf, smb_vwv2, length); |
buf | 839 | fs/smbfs/proc.c | WSET(buf, smb_vwv4, 0); |
buf | 873 | fs/smbfs/proc.c | char *buf; |
buf | 892 | fs/smbfs/proc.c | buf = server->packet; |
buf | 905 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, entries_asked); |
buf | 906 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, aDIR); |
buf | 913 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, entries_asked); |
buf | 914 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, aDIR); |
buf | 1317 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 1335 | fs/smbfs/proc.c | entry->attr = WVAL(buf, smb_vwv0); |
buf | 1337 | fs/smbfs/proc.c | entry->mtime = local2utc(DVAL(buf, smb_vwv1)); |
buf | 1339 | fs/smbfs/proc.c | entry->size = DVAL(buf, smb_vwv3); |
buf | 1349 | fs/smbfs/proc.c | char* buf = server->packet; |
buf | 1353 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, entry->fileid); |
buf | 1360 | fs/smbfs/proc.c | entry->ctime = date_dos2unix(WVAL(buf, smb_vwv1), WVAL(buf, smb_vwv0)); |
buf | 1361 | fs/smbfs/proc.c | entry->atime = date_dos2unix(WVAL(buf, smb_vwv3), WVAL(buf, smb_vwv2)); |
buf | 1362 | fs/smbfs/proc.c | entry->mtime = date_dos2unix(WVAL(buf, smb_vwv5), WVAL(buf, smb_vwv4)); |
buf | 1363 | fs/smbfs/proc.c | entry->size = DVAL(buf, smb_vwv6); |
buf | 1364 | fs/smbfs/proc.c | entry->attr = WVAL(buf, smb_vwv10); |
buf | 1411 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 1418 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, new_finfo->attr); |
buf | 1419 | fs/smbfs/proc.c | DSET(buf, smb_vwv1, utc2local(new_finfo->mtime)); |
buf | 1438 | fs/smbfs/proc.c | char *buf = server->packet; |
buf | 1443 | fs/smbfs/proc.c | WSET(buf, smb_vwv0, fid); |
buf | 1446 | fs/smbfs/proc.c | WSET(buf, smb_vwv1, date); |
buf | 1447 | fs/smbfs/proc.c | WSET(buf, smb_vwv2, time); |
buf | 1450 | fs/smbfs/proc.c | WSET(buf, smb_vwv3, date); |
buf | 1451 | fs/smbfs/proc.c | WSET(buf, smb_vwv4, time); |
buf | 1454 | fs/smbfs/proc.c | WSET(buf, smb_vwv5, date); |
buf | 1455 | 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 | 27 | 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, 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 | 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 | 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, 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 | 218 | include/asm-alpha/unistd.h | static inline int write(int fd, const char * buf, int nr) |
buf | 220 | include/asm-alpha/unistd.h | return sys_write(fd, buf, nr); |
buf | 224 | include/asm-alpha/unistd.h | static inline int read(int fd, char * buf, int nr) |
buf | 226 | include/asm-alpha/unistd.h | return sys_read(fd, buf, nr); |
buf | 257 | 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 | 433 | include/linux/fs.h | extern void refile_buffer(struct buffer_head * buf); |
buf | 434 | include/linux/fs.h | extern void set_writetime(struct buffer_head * buf, int flag); |
buf | 500 | 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 | 71 | include/linux/mcd.h | #define READ_DATA(port, buf, nr) \ |
buf | 72 | include/linux/mcd.h | insb(port, buf, nr) |
buf | 197 | include/linux/mm.h | extern int vread(char *buf, char *addr, int count); |
buf | 206 | include/linux/mm.h | extern void rw_swap_page(int rw, unsigned long nr, char * buf); |
buf | 221 | include/linux/mm.h | #define read_swap_page(nr,buf) \ |
buf | 222 | include/linux/mm.h | rw_swap_page(READ,(nr),(buf)) |
buf | 223 | include/linux/mm.h | #define write_swap_page(nr,buf) \ |
buf | 224 | 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 | 438 | 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 | unsigned char *buf, int count); |
buf | 23 | include/linux/tty_ldisc.h | unsigned char * buf, unsigned int nr); |
buf | 25 | include/linux/tty_ldisc.h | unsigned char * buf, unsigned int nr); |
buf | 38 | include/net/unix.h | char *buf; |
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 | 51 | kernel/module.c | static int get_mod_name( char *user_name, char *buf); |
buf | 418 | kernel/module.c | get_mod_name(char *user_name, char *buf) |
buf | 423 | kernel/module.c | for (i = 0 ; (buf[i] = get_user(user_name + i)) != '\0' ; ) { |
buf | 512 | kernel/module.c | int get_module_list(char *buf) |
buf | 521 | kernel/module.c | p = buf; |
buf | 524 | kernel/module.c | if (p - buf > 4096 - 100) |
buf | 566 | kernel/module.c | return p - buf; |
buf | 573 | kernel/module.c | int get_ksyms_list(char *buf) |
buf | 578 | kernel/module.c | char *p = buf; |
buf | 587 | kernel/module.c | if (p - buf > 4096 - 100) { |
buf | 590 | kernel/module.c | return p - buf; /* avoid overflowing buffer */ |
buf | 606 | kernel/module.c | return p - buf; |
buf | 20 | kernel/panic.c | static char buf[1024]; |
buf | 24 | kernel/panic.c | vsprintf(buf, fmt, args); |
buf | 26 | kernel/panic.c | printk(KERN_EMERG "Kernel panic: %s\n",buf); |
buf | 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 | 109 | mm/swap.c | void rw_swap_page(int rw, unsigned long entry, char * buf) |
buf | 140 | mm/swap.c | ll_rw_page(rw,p->swap_device,offset,buf); |
buf | 179 | 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 | 116 | net/ax25/af_ax25.c | static char buf[11]; |
buf | 120 | net/ax25/af_ax25.c | for (n = 0, s = buf; n < 6; n++) |
buf | 138 | net/ax25/af_ax25.c | return(buf); |
buf | 253 | 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 | 262 | net/ax25/ax25_subr.c | if (buf[6] & LAPB_C) { |
buf | 265 | net/ax25/ax25_subr.c | if (buf[13] & LAPB_C) { |
buf | 271 | net/ax25/ax25_subr.c | if (dest != NULL) memcpy(dest, buf + 0, AX25_ADDR_LEN); |
buf | 272 | net/ax25/ax25_subr.c | if (src != NULL) memcpy(src, buf + 7, AX25_ADDR_LEN); |
buf | 273 | net/ax25/ax25_subr.c | buf += 2 * AX25_ADDR_LEN; |
buf | 278 | net/ax25/ax25_subr.c | while (!(buf[-1] & LAPB_E)) |
buf | 284 | net/ax25/ax25_subr.c | memcpy(&digi->calls[d], buf, AX25_ADDR_LEN); |
buf | 286 | net/ax25/ax25_subr.c | if (buf[6] & AX25_REPEATED) { |
buf | 294 | net/ax25/ax25_subr.c | buf += AX25_ADDR_LEN; |
buf | 299 | net/ax25/ax25_subr.c | return buf; |
buf | 306 | net/ax25/ax25_subr.c | int build_ax25_addr(unsigned char *buf, ax25_address *src, ax25_address *dest, ax25_digi *d, int flag) |
buf | 311 | net/ax25/ax25_subr.c | memcpy(buf, dest, AX25_ADDR_LEN); |
buf | 315 | net/ax25/ax25_subr.c | buf[6] &= ~(LAPB_E | LAPB_C); |
buf | 316 | net/ax25/ax25_subr.c | buf[6] |= SSID_SPARE; |
buf | 318 | net/ax25/ax25_subr.c | if (flag == C_COMMAND) buf[6] |= LAPB_C; |
buf | 320 | net/ax25/ax25_subr.c | buf += AX25_ADDR_LEN; |
buf | 322 | net/ax25/ax25_subr.c | memcpy(buf, src, AX25_ADDR_LEN); |
buf | 323 | net/ax25/ax25_subr.c | buf[6] &= ~(LAPB_E | LAPB_C); |
buf | 324 | net/ax25/ax25_subr.c | buf[6] |= SSID_SPARE; |
buf | 326 | net/ax25/ax25_subr.c | if (flag == C_RESPONSE) buf[6] |= LAPB_C; |
buf | 331 | net/ax25/ax25_subr.c | buf[6] |= LAPB_E; |
buf | 335 | net/ax25/ax25_subr.c | buf += AX25_ADDR_LEN; |
buf | 339 | net/ax25/ax25_subr.c | memcpy(buf, &d->calls[ct], AX25_ADDR_LEN); |
buf | 341 | net/ax25/ax25_subr.c | buf[6] |= AX25_REPEATED; |
buf | 343 | net/ax25/ax25_subr.c | buf[6] &= ~AX25_REPEATED; |
buf | 344 | net/ax25/ax25_subr.c | buf[6] &= ~LAPB_E; |
buf | 345 | net/ax25/ax25_subr.c | buf[6] |= SSID_SPARE; |
buf | 347 | net/ax25/ax25_subr.c | buf += AX25_ADDR_LEN; |
buf | 352 | net/ax25/ax25_subr.c | buf[-1] |= LAPB_E; |
buf | 144 | net/ipv4/igmp.c | extern __inline__ void ip_mc_map(unsigned long addr, char *buf) |
buf | 147 | net/ipv4/igmp.c | buf[0]=0x01; |
buf | 148 | net/ipv4/igmp.c | buf[1]=0x00; |
buf | 149 | net/ipv4/igmp.c | buf[2]=0x5e; |
buf | 150 | net/ipv4/igmp.c | buf[5]=addr&0xFF; |
buf | 152 | net/ipv4/igmp.c | buf[4]=addr&0xFF; |
buf | 154 | net/ipv4/igmp.c | buf[3]=addr&0x7F; |
buf | 163 | net/ipv4/igmp.c | char buf[6]; |
buf | 166 | net/ipv4/igmp.c | ip_mc_map(addr,buf); |
buf | 167 | net/ipv4/igmp.c | dev_mc_add(dev,buf,ETH_ALEN,0); |
buf | 176 | net/ipv4/igmp.c | char buf[6]; |
buf | 179 | net/ipv4/igmp.c | ip_mc_map(addr,buf); |
buf | 180 | net/ipv4/igmp.c | dev_mc_delete(dev,buf,ETH_ALEN,0); |
buf | 528 | net/ipv4/ip_fw.c | char buf[20]; /* xxx.xxx.xxx.xxx\r\n */ |
buf | 590 | net/ipv4/ip_fw.c | sprintf(buf,"%ld,%ld,%ld,%ld,%d,%d", |
buf | 597 | net/ipv4/ip_fw.c | ftp->delta += strlen(buf) - (data-p); |
buf | 604 | net/ipv4/ip_fw.c | memcpy(p,buf,strlen(buf)); |
buf | 629 | net/ipv4/ip_fw.c | memcpy(&skb2->data[(p - (char *)skb->data)], buf, strlen(buf)); |
buf | 630 | net/ipv4/ip_fw.c | memcpy(&skb2->data[(p - (char *)skb->data) + strlen(buf)], data, |
buf | 70 | net/socket.c | static int sock_read(struct inode *inode, struct file *file, char *buf, |
buf | 72 | net/socket.c | static int sock_write(struct inode *inode, struct file *file, char *buf, |
buf | 254 | net/unix/sock.c | upd->buf = NULL; |
buf | 290 | net/unix/sock.c | if (upd->buf) |
buf | 292 | net/unix/sock.c | free_page((unsigned long)upd->buf); |
buf | 293 | net/unix/sock.c | upd->buf = NULL; |
buf | 324 | net/unix/sock.c | if (!(upd->buf = (char*) get_free_page(GFP_USER))) |
buf | 656 | net/unix/sock.c | memcpy_tofs(ubuf, upd->buf + upd->bp_tail, cando); |
buf | 751 | net/unix/sock.c | memcpy_fromfs(pupd->buf + pupd->bp_head, ubuf, cando); |