tag | line | file | source code |
buf | 828 | drivers/block/cdu31a.c | unsigned char *buf) |
buf | 830 | drivers/block/cdu31a.c | buf[0] = size / 65536; |
buf | 832 | drivers/block/cdu31a.c | buf[1] = size / 256; |
buf | 833 | drivers/block/cdu31a.c | buf[2] = size % 256; |
buf | 88 | drivers/block/hd.c | #define port_read(port,buf,nr) \ |
buf | 89 | drivers/block/hd.c | __asm__("cld;rep;insw": :"d" (port),"D" (buf),"c" (nr):"cx","di") |
buf | 91 | drivers/block/hd.c | #define port_write(port,buf,nr) \ |
buf | 92 | drivers/block/hd.c | __asm__("cld;rep;outsw": :"d" (port),"S" (buf),"c" (nr):"cx","si") |
buf | 423 | drivers/block/ll_rw_blk.c | void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buf) |
buf | 446 | drivers/block/ll_rw_blk.c | for (i=0; i<nb; i++, buf += buffersize) |
buf | 456 | drivers/block/ll_rw_blk.c | req->buffer = buf; |
buf | 487 | drivers/block/xd.c | u_char cmdblk[6],buf[64]; |
buf | 490 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
buf | 491 | drivers/block/xd.c | xd_info[drive].heads = buf[0x0A]; /* heads */ |
buf | 492 | drivers/block/xd.c | xd_info[drive].cylinders = ((u_short *) (buf))[0x04]; /* cylinders */ |
buf | 495 | drivers/block/xd.c | xd_info[drive].rwrite = ((u_short *) (buf + 1))[0x05]; /* reduced write */ |
buf | 496 | drivers/block/xd.c | xd_info[drive].precomp = ((u_short *) (buf + 1))[0x06]; /* write precomp */ |
buf | 497 | drivers/block/xd.c | xd_info[drive].ecc = buf[0x0F]; /* ecc length */ |
buf | 501 | 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 | 531 | drivers/block/xd.c | u_char cmdblk[6],buf[0x200]; |
buf | 534 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
buf | 535 | drivers/block/xd.c | xd_info[drive].heads = buf[0x1AF]; /* heads */ |
buf | 536 | drivers/block/xd.c | xd_info[drive].cylinders = ((u_short *) (buf + 1))[0xD6]; /* cylinders */ |
buf | 539 | drivers/block/xd.c | xd_info[drive].rwrite = ((u_short *) (buf))[0xD8]; /* reduced write */ |
buf | 540 | drivers/block/xd.c | xd_info[drive].wprecomp = ((u_short *) (buf))[0xDA]; /* write precomp */ |
buf | 541 | drivers/block/xd.c | xd_info[drive].ecc = buf[0x1B4]; /* ecc length */ |
buf | 543 | drivers/block/xd.c | xd_info[drive].control = buf[0x1B5]; /* control byte */ |
buf | 545 | 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 | 570 | drivers/block/xd.c | u_char cmdblk[6],buf[0x200]; |
buf | 573 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
buf | 574 | drivers/block/xd.c | xd_info[drive].heads = buf[0x04]; /* heads */ |
buf | 575 | drivers/block/xd.c | xd_info[drive].cylinders = (buf[0x02] << 8) | buf[0x03]; /* cylinders */ |
buf | 576 | drivers/block/xd.c | xd_info[drive].sectors = buf[0x05]; /* sectors */ |
buf | 1523 | drivers/char/console.c | char *sptr, *buf = (char *)arg; |
buf | 1528 | drivers/char/console.c | l = verify_area(VERIFY_WRITE, buf,2+video_num_columns*video_num_lines); |
buf | 1531 | drivers/char/console.c | currcons = get_fs_byte(buf+1); |
buf | 1534 | drivers/char/console.c | put_fs_byte((char)(video_num_lines),buf++); |
buf | 1535 | drivers/char/console.c | put_fs_byte((char)(video_num_columns),buf++); |
buf | 1539 | drivers/char/console.c | put_fs_byte(*sptr++,buf++); |
buf | 292 | drivers/char/keyboard.c | qp->buf[qp->head] = ch; |
buf | 311 | drivers/char/keyboard.c | qp->buf[qp->head] = ch; |
buf | 320 | drivers/char/keyboard.c | static char buf[] = { 0x1b, 'O', 0x00, 0x00 }; |
buf | 322 | drivers/char/keyboard.c | buf[1] = (mode ? 'O' : '['); |
buf | 323 | drivers/char/keyboard.c | buf[2] = key; |
buf | 324 | drivers/char/keyboard.c | puts_queue(buf); |
buf | 124 | drivers/char/lp.c | static int lp_write_interrupt(struct inode * inode, struct file * file, char * buf, int count) |
buf | 136 | drivers/char/lp.c | memcpy_fromfs(lp->lp_buffer, buf, copy_size); |
buf | 183 | drivers/char/lp.c | buf += bytes_written; |
buf | 192 | drivers/char/lp.c | char * buf, int count) |
buf | 196 | drivers/char/lp.c | char c, *temp = buf; |
buf | 206 | drivers/char/lp.c | temp = buf; |
buf | 222 | drivers/char/lp.c | return temp-buf?temp-buf:-ENOSPC; |
buf | 230 | drivers/char/lp.c | return temp-buf?temp-buf:-EIO; |
buf | 239 | drivers/char/lp.c | return temp-buf?temp-buf:-EFAULT; |
buf | 247 | drivers/char/lp.c | if (temp != buf) |
buf | 248 | drivers/char/lp.c | return temp-buf; |
buf | 262 | drivers/char/lp.c | return temp-buf; |
buf | 265 | drivers/char/lp.c | static int lp_write(struct inode * inode, struct file * file, char * buf, int count) |
buf | 268 | drivers/char/lp.c | return lp_write_interrupt(inode, file, buf, count); |
buf | 270 | drivers/char/lp.c | return lp_write_polled(inode, file, buf, count); |
buf | 26 | drivers/char/mem.c | static int read_ram(struct inode * inode, struct file * file,char * buf, int count) |
buf | 31 | drivers/char/mem.c | static int write_ram(struct inode * inode, struct file * file,char * buf, int count) |
buf | 36 | drivers/char/mem.c | static int read_mem(struct inode * inode, struct file * file,char * buf, int count) |
buf | 49 | drivers/char/mem.c | put_fs_byte(0,buf); |
buf | 50 | drivers/char/mem.c | buf++; |
buf | 55 | drivers/char/mem.c | memcpy_tofs(buf,(void *) p,count); |
buf | 61 | drivers/char/mem.c | static int write_mem(struct inode * inode, struct file * file,char * buf, int count) |
buf | 75 | drivers/char/mem.c | buf++; |
buf | 80 | drivers/char/mem.c | memcpy_fromfs((void *) p,buf,count); |
buf | 114 | drivers/char/mem.c | static int read_kmem(struct inode *inode, struct file *file, char *buf, int count) |
buf | 118 | drivers/char/mem.c | read1 = read_mem(inode, file, buf, count); |
buf | 121 | drivers/char/mem.c | read2 = vread(buf + read1, (char *) file->f_pos, count - read1); |
buf | 128 | drivers/char/mem.c | static int read_port(struct inode * inode,struct file * file,char * buf, int count) |
buf | 131 | drivers/char/mem.c | char * tmp = buf; |
buf | 139 | drivers/char/mem.c | return tmp-buf; |
buf | 142 | drivers/char/mem.c | static int write_port(struct inode * inode,struct file * file,char * buf, int count) |
buf | 145 | drivers/char/mem.c | char * tmp = buf; |
buf | 153 | drivers/char/mem.c | return tmp-buf; |
buf | 156 | drivers/char/mem.c | static int read_null(struct inode * node,struct file * file,char * buf,int count) |
buf | 161 | drivers/char/mem.c | static int write_null(struct inode * inode,struct file * file,char * buf, int count) |
buf | 166 | drivers/char/mem.c | static int read_zero(struct inode * node,struct file * file,char * buf,int count) |
buf | 171 | drivers/char/mem.c | put_fs_byte(0,buf); |
buf | 172 | drivers/char/mem.c | buf++; |
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 | 347 | drivers/char/serial.c | queue->buf[head++]= TTY_BREAK; |
buf | 350 | drivers/char/serial.c | queue->buf[head++]= TTY_PARITY; |
buf | 352 | drivers/char/serial.c | queue->buf[head++]= TTY_FRAME; |
buf | 355 | drivers/char/serial.c | queue->buf[head++] = ch; |
buf | 390 | drivers/char/serial.c | serial_outp(info, UART_TX, queue->buf[tail++]); |
buf | 937 | drivers/char/serial.c | serial_outp(info, UART_TX, queue->buf[tail++]); |
buf | 1810 | drivers/char/tpqic02.c | static int tape_qic02_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 1820 | drivers/char/tpqic02.c | MINOR(dev), buf, count, filp->f_pos, flags); |
buf | 1834 | drivers/char/tpqic02.c | error = verify_area(VERIFY_WRITE, buf, count); |
buf | 1836 | drivers/char/tpqic02.c | printk(TPQIC_NAME ": read: verify_area(WRITE, %lx, %x) failed\n", buf, count); |
buf | 1926 | drivers/char/tpqic02.c | memcpy_tofs( (void *) buf, (void *) buffaddr, bytes_done); |
buf | 1940 | drivers/char/tpqic02.c | buf += bytes_done; |
buf | 1980 | drivers/char/tpqic02.c | static int tape_qic02_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 1989 | drivers/char/tpqic02.c | MINOR(dev), buf, count, filp->f_pos, flags); |
buf | 2011 | drivers/char/tpqic02.c | error = verify_area(VERIFY_READ, buf, count); |
buf | 2013 | drivers/char/tpqic02.c | printk(TPQIC_NAME ": write: verify_area(READ, %lx, %x) failed\n", buf, count); |
buf | 2049 | drivers/char/tpqic02.c | memcpy_fromfs( (void *) buffaddr, (void *) buf, bytes_todo); |
buf | 2103 | drivers/char/tpqic02.c | buf += bytes_done; |
buf | 2110 | drivers/char/tpqic02.c | printk(TPQIC_NAME ": status_bytes_wr %x, buf %x, total_bytes_done %x, count %x\n", status_bytes_wr, buf, total_bytes_done, count); |
buf | 108 | drivers/char/tty_io.c | queue->buf[queue->head] = c; |
buf | 122 | drivers/char/tty_io.c | result = 0xff & queue->buf[queue->tail]; |
buf | 151 | drivers/char/tty_io.c | *p++ = tty->read_q.buf[tail++]; |
buf | 183 | drivers/char/tty_io.c | static int hung_up_tty_read(struct inode * inode, struct file * file, char * buf, int count) |
buf | 188 | drivers/char/tty_io.c | static int hung_up_tty_write(struct inode * inode, struct file * file, char * buf, int count) |
buf | 506 | drivers/char/tty_io.c | c = 0xff & tty->read_q.buf[tty->read_q.tail]; |
buf | 732 | drivers/char/tty_io.c | static int read_chan(struct tty_struct * tty, struct file * file, char * buf, int nr) |
buf | 736 | drivers/char/tty_io.c | char * b=buf; |
buf | 826 | drivers/char/tty_io.c | if (b-buf >= minimum || !current->timeout) |
buf | 849 | drivers/char/tty_io.c | if ((b-buf) > 1) |
buf | 850 | drivers/char/tty_io.c | return b-buf; |
buf | 852 | drivers/char/tty_io.c | if (b-buf) |
buf | 853 | drivers/char/tty_io.c | return b-buf; |
buf | 899 | drivers/char/tty_io.c | static int write_chan(struct tty_struct * tty, struct file * file, char * buf, int nr) |
buf | 902 | drivers/char/tty_io.c | char c, *b=buf; |
buf | 985 | drivers/char/tty_io.c | if (b-buf) |
buf | 986 | drivers/char/tty_io.c | return b-buf; |
buf | 994 | drivers/char/tty_io.c | static int tty_read(struct inode * inode, struct file * file, char * buf, int count) |
buf | 1019 | drivers/char/tty_io.c | i = (ldiscs[tty->disc].read)(tty,file,buf,count); |
buf | 1027 | drivers/char/tty_io.c | static int tty_write(struct inode * inode, struct file * file, char * buf, int count) |
buf | 1055 | drivers/char/tty_io.c | i = (ldiscs[tty->disc].write)(tty,file,buf,count); |
buf | 1520 | drivers/char/tty_io.c | tty->write_q.buf[head++] = *p++; |
buf | 1568 | drivers/char/tty_io.c | tty->write_q.buf[head++] = *p++; |
buf | 317 | drivers/net/3c501.c | unsigned char *buf = (void *)(skb+1); |
buf | 327 | drivers/net/3c501.c | port_write_b(DATAPORT,buf,skb->len); |
buf | 42 | drivers/net/3c503.c | const unsigned char *buf, const start_page); |
buf | 43 | drivers/net/3c503.c | static int el2_block_input(struct device *dev, int count, char *buf, |
buf | 340 | drivers/net/3c503.c | const unsigned char *buf, const start_page) |
buf | 351 | drivers/net/3c503.c | memcpy(dest_addr, buf, count); |
buf | 352 | drivers/net/3c503.c | if (ei_debug > 2 && memcmp(dest_addr, buf, count)) |
buf | 378 | drivers/net/3c503.c | outb(buf[i], E33G_FIFOH); |
buf | 386 | drivers/net/3c503.c | el2_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 402 | drivers/net/3c503.c | memcpy(buf, (char *)dev->mem_start + ring_offset, semi_count); |
buf | 404 | drivers/net/3c503.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
buf | 411 | drivers/net/3c503.c | memcpy(buf, (char *)dev->mem_start + ring_offset, count); |
buf | 431 | drivers/net/3c503.c | buf[i] = inb_p(E33G_FIFOH); |
buf | 269 | drivers/net/3c507.c | static void hardware_send_packet(struct device *dev, void *buf, short length); |
buf | 500 | drivers/net/3c507.c | unsigned char *buf = (void *)(skb+1); |
buf | 504 | drivers/net/3c507.c | hardware_send_packet(dev, buf, length); |
buf | 764 | drivers/net/3c507.c | hardware_send_packet(struct device *dev, void *buf, short length) |
buf | 789 | drivers/net/3c507.c | memcpy(write_ptr, buf, length); |
buf | 41 | drivers/net/3c509.c | #define port_read_l(port,buf,nr) \ |
buf | 42 | drivers/net/3c509.c | __asm__("cld;rep;insl": :"d" (port),"D" (buf),"c" (nr):"cx","di") |
buf | 43 | drivers/net/3c509.c | #define port_write_l(port,buf,nr) \ |
buf | 44 | drivers/net/3c509.c | __asm__("cld;rep;outsl": :"d" (port),"S" (buf),"c" (nr):"cx","si") |
buf | 419 | drivers/net/at1700.c | unsigned char *buf = (void *)(skb+1); |
buf | 429 | drivers/net/at1700.c | port_write(ioaddr + DATAPORT, buf, (length + 1) >> 1); |
buf | 300 | drivers/net/eexpress.c | static void hardware_send_packet(struct device *dev, void *buf, short length); |
buf | 527 | drivers/net/eexpress.c | unsigned char *buf = (void *)(skb+1); |
buf | 531 | drivers/net/eexpress.c | hardware_send_packet(dev, buf, length); |
buf | 859 | drivers/net/eexpress.c | hardware_send_packet(struct device *dev, void *buf, short length) |
buf | 885 | drivers/net/eexpress.c | port_write(ioaddr + DATAPORT, buf, (length + 1) >> 1); |
buf | 49 | drivers/net/hp.c | char *buf, int ring_offset); |
buf | 51 | drivers/net/hp.c | const unsigned char *buf, const start_page); |
buf | 206 | drivers/net/hp.c | hp_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 220 | drivers/net/hp.c | port_read(nic_base - NIC_OFFSET + HP_DATAPORT,buf,count>>1); |
buf | 222 | drivers/net/hp.c | buf[count-1] = inb(nic_base - NIC_OFFSET + HP_DATAPORT), xfer_count++; |
buf | 224 | drivers/net/hp.c | port_read_b(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count); |
buf | 242 | drivers/net/hp.c | const unsigned char *buf, const start_page) |
buf | 277 | drivers/net/hp.c | port_write(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count>>1); |
buf | 279 | drivers/net/hp.c | port_write_b(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count); |
buf | 118 | drivers/net/iow.h | #define port_read(port,buf,nr) \ |
buf | 119 | drivers/net/iow.h | __asm__("cld;rep;insw": :"d" (port),"D" (buf),"c" (nr):"cx","di") |
buf | 120 | drivers/net/iow.h | #define port_write(port,buf,nr) \ |
buf | 121 | drivers/net/iow.h | __asm__("cld;rep;outsw": :"d" (port),"S" (buf),"c" (nr):"cx","si") |
buf | 123 | drivers/net/iow.h | #define port_read_b(port,buf,nr) \ |
buf | 124 | drivers/net/iow.h | __asm__("cld;rep;insb": :"d" (port),"D" (buf),"c" (nr):"cx","di") |
buf | 125 | drivers/net/iow.h | #define port_write_b(port,buf,nr) \ |
buf | 126 | drivers/net/iow.h | __asm__("cld;rep;outsb": :"d" (port),"S" (buf),"c" (nr):"cx","si") |
buf | 50 | drivers/net/ne.c | char *buf, int ring_offset); |
buf | 52 | drivers/net/ne.c | const unsigned char *buf, const int start_page); |
buf | 288 | drivers/net/ne.c | ne_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 308 | drivers/net/ne.c | port_read(NE_BASE + NE_DATAPORT,buf,count>>1); |
buf | 310 | drivers/net/ne.c | buf[count-1] = inb(NE_BASE + NE_DATAPORT), xfer_count++; |
buf | 312 | drivers/net/ne.c | port_read_b(NE_BASE + NE_DATAPORT, buf, count); |
buf | 341 | drivers/net/ne.c | const unsigned char *buf, const int start_page) |
buf | 387 | drivers/net/ne.c | port_write(NE_BASE + NE_DATAPORT, buf, count>>1); |
buf | 389 | drivers/net/ne.c | port_write_b(NE_BASE + NE_DATAPORT, buf, count); |
buf | 161 | drivers/net/plip.c | static int plip_send_packet(struct device *dev, unsigned char *buf, int length); |
buf | 487 | drivers/net/plip.c | unsigned char *buf = (unsigned char *) (skb+1); |
buf | 492 | drivers/net/plip.c | *buf++ = *eth_p++; |
buf | 497 | drivers/net/plip.c | *buf++ = new_byte; |
buf | 626 | drivers/net/plip.c | plip_send_packet(struct device *dev, unsigned char *buf, int length) |
buf | 633 | drivers/net/plip.c | dev->name, length, buf[0], buf[1], buf[2], buf[3], buf[4])); |
buf | 663 | drivers/net/plip.c | if (plip_send_start(dev, (struct ethhdr *)buf) < 0) |
buf | 672 | drivers/net/plip.c | struct ethhdr *eth = (struct ethhdr *)buf; |
buf | 698 | drivers/net/plip.c | plip_send_enethdr(dev, (struct ethhdr*)buf); |
buf | 702 | drivers/net/plip.c | send_byte(dev, *buf); |
buf | 704 | drivers/net/plip.c | checksum += *buf++; |
buf | 708 | drivers/net/plip.c | checksum += buf[i]; |
buf | 709 | drivers/net/plip.c | if (send_byte(dev, buf[i]) < 0) { |
buf | 121 | drivers/net/skeleton.c | extern void hardware_send_packet(short ioaddr, char *buf, int length); |
buf | 333 | drivers/net/skeleton.c | unsigned char *buf = (void *)(skb+1); |
buf | 335 | drivers/net/skeleton.c | hardware_send_packet(ioaddr, buf, length); |
buf | 42 | drivers/net/smc-ultra.c | char *buf, int ring_offset); |
buf | 44 | drivers/net/smc-ultra.c | const unsigned char *buf, const start_page); |
buf | 206 | drivers/net/smc-ultra.c | ultra_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 214 | drivers/net/smc-ultra.c | memcpy(buf, xfer_start, semi_count); |
buf | 216 | drivers/net/smc-ultra.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
buf | 219 | drivers/net/smc-ultra.c | memcpy(buf, xfer_start, count); |
buf | 225 | drivers/net/smc-ultra.c | ultra_block_output(struct device *dev, int count, const unsigned char *buf, |
buf | 231 | drivers/net/smc-ultra.c | memcpy(shmem, buf, count); |
buf | 43 | drivers/net/wd.c | char *buf, int ring_offset); |
buf | 45 | drivers/net/wd.c | const unsigned char *buf, const start_page); |
buf | 295 | drivers/net/wd.c | wd_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 305 | drivers/net/wd.c | ((int*)buf)[0] = ((int*)xfer_start)[0]; |
buf | 312 | drivers/net/wd.c | memcpy(buf, (char *)xfer_start, semi_count); |
buf | 314 | drivers/net/wd.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
buf | 316 | drivers/net/wd.c | memcpy(buf, (char *)xfer_start, count); |
buf | 326 | drivers/net/wd.c | wd_block_output(struct device *dev, int count, const unsigned char *buf, |
buf | 336 | drivers/net/wd.c | memcpy((char *)shmem, buf, count); |
buf | 339 | drivers/net/wd.c | memcpy((char *)shmem, buf, count); |
buf | 330 | drivers/scsi/aha152x.c | #define insw( buf, count, port ) \ |
buf | 332 | drivers/scsi/aha152x.c | ("cld;rep;insw": :"d" (port),"D" (buf),"c" (count):"cx","di" ) |
buf | 334 | drivers/scsi/aha152x.c | #define outsw( buf, count, port ) \ |
buf | 336 | drivers/scsi/aha152x.c | ("cld;rep;outsw": :"d" (port),"S" (buf),"c" (count):"cx","si") |
buf | 775 | drivers/scsi/aha1542.c | unchar buf[8]; |
buf | 779 | drivers/scsi/aha1542.c | for (i = 0; i < sizeof(buf); ++i) buf[i] = 0x87; |
buf | 781 | drivers/scsi/aha1542.c | if (!aha1542_command(i, cmd, buf, sizeof(buf))) { |
buf | 783 | drivers/scsi/aha1542.c | i, xscsi2int(buf+4), xscsi2int(buf)); |
buf | 349 | drivers/scsi/fdomain.c | #define insw( buf, count, port ) \ |
buf | 351 | drivers/scsi/fdomain.c | ("cld;rep;insw": :"d" (port),"D" (buf),"c" (count):"cx","di" ) |
buf | 353 | drivers/scsi/fdomain.c | #define outsw( buf, count, port ) \ |
buf | 355 | drivers/scsi/fdomain.c | ("cld;rep;outsw": :"d" (port),"S" (buf),"c" (count):"cx","si") |
buf | 463 | drivers/scsi/fdomain.c | unsigned char buf[buflen]; |
buf | 641 | drivers/scsi/fdomain.c | SCinit.request_buffer = SCinit.buffer = buf; |
buf | 642 | drivers/scsi/fdomain.c | SCinit.request_bufflen = SCinit.bufflen = sizeof(buf)-1; |
buf | 658 | drivers/scsi/fdomain.c | for (j = 8; j < (buf[4] < 32 ? buf[4] : 32); j++) |
buf | 659 | drivers/scsi/fdomain.c | printk( "%c", buf[j] >= 20 ? buf[j] : ' ' ); |
buf | 665 | drivers/scsi/fdomain.c | blocks = (buf[0] << 24) | (buf[1] << 16) |
buf | 666 | drivers/scsi/fdomain.c | | (buf[2] << 8) | buf[3]; |
buf | 667 | drivers/scsi/fdomain.c | size = (buf[4] << 24) | (buf[5] << 16) | (buf[6] << 8) | buf[7]; |
buf | 144 | drivers/scsi/scsi_ioctl.c | char * buf; |
buf | 166 | drivers/scsi/scsi_ioctl.c | buf = (char *) scsi_malloc(needed); |
buf | 167 | drivers/scsi/scsi_ioctl.c | if (!buf) return -ENOMEM; |
buf | 169 | drivers/scsi/scsi_ioctl.c | buf = NULL; |
buf | 172 | drivers/scsi/scsi_ioctl.c | memcpy_fromfs ((void *) buf, (void *) (cmd_in + cmdlen), inlen > MAX_BUF ? MAX_BUF : inlen); |
buf | 180 | drivers/scsi/scsi_ioctl.c | scsi_do_cmd(SCpnt, cmd, buf, needed, scsi_ioctl_done, MAX_TIMEOUT, |
buf | 201 | drivers/scsi/scsi_ioctl.c | memcpy_tofs ((void *) cmd_in, buf, (outlen > MAX_BUF) ? MAX_BUF : outlen); |
buf | 205 | drivers/scsi/scsi_ioctl.c | if (buf) scsi_free(buf, needed); |
buf | 216 | drivers/scsi/scsi_ioctl.c | printk("%02x ", buf[i]); |
buf | 1604 | drivers/scsi/seagate.c | unsigned char buf[256 + sizeof(int) * 2], cmd[6], *data, *page; |
buf | 1620 | drivers/scsi/seagate.c | sizes = (int *) buf; |
buf | 1640 | drivers/scsi/seagate.c | if (!(result = kernel_scsi_ioctl (disk, SCSI_IOCTL_SEND_COMMAND, (void *) buf))) { |
buf | 1653 | drivers/scsi/seagate.c | if (!(result = kernel_scsi_ioctl (disk, SCSI_IOCTL_SEND_COMMAND, (void *) buf))) { |
buf | 153 | drivers/scsi/sg.c | static int sg_read(struct inode *inode,struct file *filp,char *buf,int count) |
buf | 158 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_WRITE,buf,count))) |
buf | 172 | drivers/scsi/sg.c | memcpy_tofs(buf,&device->header,sizeof(struct sg_header)); |
buf | 173 | drivers/scsi/sg.c | buf+=sizeof(struct sg_header); |
buf | 176 | drivers/scsi/sg.c | memcpy_tofs(buf,device->buff,count-sizeof(struct sg_header)); |
buf | 207 | drivers/scsi/sg.c | static int sg_write(struct inode *inode,struct file *filp,char *buf,int count) |
buf | 214 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_READ,buf,count))) |
buf | 232 | drivers/scsi/sg.c | memcpy_fromfs(&device->header,buf,sizeof(struct sg_header)); |
buf | 235 | drivers/scsi/sg.c | buf+=sizeof(struct sg_header); |
buf | 264 | drivers/scsi/sg.c | size=COMMAND_SIZE(get_fs_byte(buf)); |
buf | 265 | drivers/scsi/sg.c | memcpy_fromfs(cmnd,buf,size); |
buf | 266 | drivers/scsi/sg.c | buf+=size; |
buf | 267 | drivers/scsi/sg.c | memcpy_fromfs(device->buff,buf,device->header.pack_len-size-sizeof(struct sg_header)); |
buf | 537 | drivers/scsi/st.c | int st_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 593 | drivers/scsi/st.c | b_point = buf; |
buf | 701 | drivers/scsi/st.c | int st_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 855 | drivers/scsi/st.c | memcpy_tofs(buf, scsi_tapes[dev].buffer->b_data + |
buf | 858 | drivers/scsi/st.c | buf += transfer; |
buf | 624 | drivers/scsi/ultrastor.c | static char buf[64]; |
buf | 627 | drivers/scsi/ultrastor.c | sprintf(buf, "UltraStor 24F SCSI @ Slot %u IRQ%u\n", |
buf | 630 | drivers/scsi/ultrastor.c | sprintf(buf, "UltraStor 34F SCSI @ Port %03X BIOS %05X IRQ%u\n", |
buf | 634 | drivers/scsi/ultrastor.c | sprintf(buf, "UltraStor 14F SCSI @ Port %03X BIOS %05X IRQ%u DMA%u\n", |
buf | 637 | drivers/scsi/ultrastor.c | return buf; |
buf | 561 | drivers/scsi/wd7000.c | extern int vsprintf(char *buf, const char *fmt, va_list args); |
buf | 105 | drivers/sound/audio.c | audio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 139 | drivers/sound/audio.c | COPY_FROM_USER (&wr_dma_buf[dev][wr_buff_ptr[dev]], buf, p, l); |
buf | 167 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 193 | drivers/sound/audio.c | COPY_TO_USER (buf, p, dmabuf, l); |
buf | 256 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 262 | drivers/sound/audio.c | audio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 62 | drivers/sound/dev_table.h | void (*output_block) (int dev, unsigned long buf, int count, int intrflag); |
buf | 63 | drivers/sound/dev_table.h | void (*start_input) (int dev, unsigned long buf, int count, int intrflag); |
buf | 282 | drivers/sound/dmabuf.c | DMAbuf_getrdbuffer (int dev, char **buf, int *len) |
buf | 319 | drivers/sound/dmabuf.c | *buf = &dev_buf[dev][dev_qhead[dev]][dev_counts[dev][dev_qhead[dev]]]; |
buf | 397 | drivers/sound/dmabuf.c | DMAbuf_getwrbuffer (int dev, char **buf, int *size) |
buf | 447 | drivers/sound/dmabuf.c | *buf = dev_buf[dev][dev_qtail[dev]]; |
buf | 718 | drivers/sound/dmabuf.c | DMAbuf_getwrbuffer (int dev, char **buf, int *size) |
buf | 724 | drivers/sound/dmabuf.c | DMAbuf_getrdbuffer (int dev, char **buf, int *len) |
buf | 87 | drivers/sound/dsp.c | dsp_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 124 | drivers/sound/dsp.c | COPY_FROM_USER (&wr_dma_buf[dev][wr_buf_ptr[dev]], buf, p, l); |
buf | 128 | drivers/sound/dsp.c | wr_dma_buf[dev], wr_buf_ptr[dev], buf, p, l); |
buf | 149 | drivers/sound/dsp.c | dsp_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 169 | drivers/sound/dsp.c | COPY_TO_USER (buf, 0, dmabuf, l); |
buf | 228 | drivers/sound/dsp.c | dsp_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 234 | drivers/sound/dsp.c | dsp_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 1911 | drivers/sound/gus_wave.c | gus_transfer_output_block (int dev, unsigned long buf, |
buf | 1946 | drivers/sound/gus_wave.c | DMAbuf_start_dma (dev, buf + (chn * count), count, DMA_MODE_WRITE); |
buf | 1990 | drivers/sound/gus_wave.c | gus_sampling_output_block (int dev, unsigned long buf, int total_count, int intrflag) |
buf | 1992 | drivers/sound/gus_wave.c | pcm_current_buf = buf; |
buf | 1996 | drivers/sound/gus_wave.c | gus_transfer_output_block (dev, buf, total_count, intrflag, 0); |
buf | 2000 | drivers/sound/gus_wave.c | gus_sampling_start_input (int dev, unsigned long buf, int count, int intrflag) |
buf | 2007 | drivers/sound/gus_wave.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
buf | 81 | drivers/sound/midibuf.c | MIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 91 | drivers/sound/midibuf.c | MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 113 | drivers/sound/midibuf.c | MIDIbuf_bytes_received (int dev, unsigned char *buf, int count) |
buf | 245 | drivers/sound/pas2_pcm.c | pas_pcm_output_block (int dev, unsigned long buf, int count, int intrflag) |
buf | 249 | 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 | 266 | drivers/sound/pas2_pcm.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
buf | 291 | drivers/sound/pas2_pcm.c | pas_pcm_start_input (int dev, unsigned long buf, int count, int intrflag) |
buf | 296 | 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 | 310 | drivers/sound/pas2_pcm.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
buf | 84 | drivers/sound/patmgr.c | pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 107 | drivers/sound/patmgr.c | COPY_TO_USER (buf, 0, (char *) mbox[dev], count); |
buf | 122 | drivers/sound/patmgr.c | pmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 132 | drivers/sound/patmgr.c | COPY_FROM_USER (mbox[dev], buf, 0, 4); |
buf | 143 | drivers/sound/patmgr.c | buf, 4, count, 1); |
buf | 161 | drivers/sound/patmgr.c | COPY_FROM_USER (&((char *) mbox[dev])[4], buf, 4, count - 4); |
buf | 392 | drivers/sound/sb_dsp.c | sb_dsp_output_block (int dev, unsigned long buf, int count, int intrflag) |
buf | 400 | drivers/sound/sb_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
buf | 435 | drivers/sound/sb_dsp.c | sb_dsp_start_input (int dev, unsigned long buf, int count, int intrflag) |
buf | 445 | drivers/sound/sb_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
buf | 75 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 82 | drivers/sound/sequencer.c | return pmgr_read (dev - 1, file, buf, count); |
buf | 94 | drivers/sound/sequencer.c | COPY_TO_USER (buf, p, &iqueue[iqhead][0], 4); |
buf | 154 | drivers/sound/sequencer.c | sequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 169 | drivers/sound/sequencer.c | return pmgr_write (dev - 1, file, buf, count); |
buf | 175 | drivers/sound/sequencer.c | COPY_FROM_USER (event, buf, p, 4); |
buf | 189 | drivers/sound/sequencer.c | err = synth_devs[dev]->load_patch (dev, *(short *) &event[0], buf, p + 4, c, 0); |
buf | 208 | drivers/sound/sequencer.c | COPY_FROM_USER (&event[4], buf, p + 4, 4); |
buf | 1099 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 1105 | drivers/sound/sequencer.c | sequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 8 | drivers/sound/sound_calls.h | int DMAbuf_getwrbuffer(int dev, char **buf, int *size); |
buf | 9 | drivers/sound/sound_calls.h | int DMAbuf_getrdbuffer(int dev, char **buf, int *len); |
buf | 25 | drivers/sound/sound_calls.h | int dsp_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 26 | drivers/sound/sound_calls.h | int dsp_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 38 | drivers/sound/sound_calls.h | int audio_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 39 | drivers/sound/sound_calls.h | int audio_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 51 | drivers/sound/sound_calls.h | int sequencer_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 52 | drivers/sound/sound_calls.h | int sequencer_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 71 | drivers/sound/sound_calls.h | int MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 72 | drivers/sound/sound_calls.h | int MIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 78 | drivers/sound/sound_calls.h | void MIDIbuf_bytes_received(int dev, unsigned char *buf, int count); |
buf | 88 | drivers/sound/sound_calls.h | int CMIDI_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 89 | drivers/sound/sound_calls.h | int CMIDI_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 177 | drivers/sound/sound_calls.h | int pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count); |
buf | 178 | drivers/sound/sound_calls.h | int pmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count); |
buf | 166 | drivers/sound/soundcard.c | read_status (char *buf, int count) |
buf | 181 | drivers/sound/soundcard.c | memcpy_tofs (buf, &status_buf[status_ptr], l); |
buf | 198 | drivers/sound/soundcard.c | sound_read (struct inode *inode, struct file *file, char *buf, int count) |
buf | 210 | drivers/sound/soundcard.c | return read_status (buf, count); |
buf | 214 | drivers/sound/soundcard.c | return audio_read (dev, &files[dev], buf, count); |
buf | 219 | drivers/sound/soundcard.c | return dsp_read (dev, &files[dev], buf, count); |
buf | 223 | drivers/sound/soundcard.c | return sequencer_read (dev, &files[dev], buf, count); |
buf | 228 | drivers/sound/soundcard.c | return MIDIbuf_read (dev, &files[dev], buf, count); |
buf | 239 | drivers/sound/soundcard.c | sound_write (struct inode *inode, struct file *file, char *buf, int count) |
buf | 252 | drivers/sound/soundcard.c | return sequencer_write (dev, &files[dev], buf, count); |
buf | 256 | drivers/sound/soundcard.c | return audio_write (dev, &files[dev], buf, count); |
buf | 261 | drivers/sound/soundcard.c | return dsp_write (dev, &files[dev], buf, count); |
buf | 72 | fs/binfmt_elf.c | elf_ex = *((struct elfhdr *) bprm->buf); /* exec-header */ |
buf | 141 | fs/binfmt_elf.c | retval = read_exec(interpreter_inode,0,bprm->buf,128); |
buf | 144 | fs/binfmt_elf.c | ex = *((struct exec *) bprm->buf); /* exec-header */ |
buf | 17 | fs/block_dev.c | int block_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 66 | fs/block_dev.c | memcpy_fromfs(p,buf,chars); |
buf | 68 | fs/block_dev.c | buf += chars; |
buf | 78 | fs/block_dev.c | int block_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 187 | fs/block_dev.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 189 | fs/block_dev.c | buf += chars; |
buf | 192 | fs/block_dev.c | put_fs_byte(0,buf++); |
buf | 522 | fs/buffer.c | void brelse(struct buffer_head * buf) |
buf | 524 | fs/buffer.c | if (!buf) |
buf | 526 | fs/buffer.c | wait_on_buffer(buf); |
buf | 527 | fs/buffer.c | if (buf->b_count) { |
buf | 528 | fs/buffer.c | if (--buf->b_count) |
buf | 591 | fs/exec.c | memset(bprm.buf,0,sizeof(bprm.buf)); |
buf | 594 | fs/exec.c | retval = read_exec(bprm.inode,0,bprm.buf,128); |
buf | 598 | fs/exec.c | if ((bprm.buf[0] == '#') && (bprm.buf[1] == '!') && (!sh_bang)) { |
buf | 607 | fs/exec.c | bprm.buf[127] = '\0'; |
buf | 608 | fs/exec.c | if ((cp = strchr(bprm.buf, '\n')) == NULL) |
buf | 609 | fs/exec.c | cp = bprm.buf+127; |
buf | 611 | fs/exec.c | while (cp > bprm.buf) { |
buf | 618 | fs/exec.c | for (cp = bprm.buf+2; (*cp == ' ') || (*cp == '\t'); cp++); |
buf | 751 | 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 | 167 | fs/ext/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 169 | fs/ext/file.c | buf += chars; |
buf | 172 | fs/ext/file.c | put_fs_byte(0,buf++); |
buf | 196 | fs/ext/file.c | static int ext_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 247 | fs/ext/file.c | memcpy_fromfs(p,buf,c); |
buf | 248 | fs/ext/file.c | buf += c; |
buf | 147 | fs/ext/inode.c | void ext_statfs (struct super_block *sb, struct statfs *buf) |
buf | 151 | fs/ext/inode.c | put_fs_long(EXT_SUPER_MAGIC, &buf->f_type); |
buf | 152 | fs/ext/inode.c | put_fs_long(1024, &buf->f_bsize); |
buf | 154 | fs/ext/inode.c | &buf->f_blocks); |
buf | 156 | fs/ext/inode.c | put_fs_long(tmp, &buf->f_bfree); |
buf | 157 | fs/ext/inode.c | put_fs_long(tmp, &buf->f_bavail); |
buf | 158 | fs/ext/inode.c | put_fs_long(sb->u.ext_sb.s_ninodes, &buf->f_files); |
buf | 159 | fs/ext/inode.c | put_fs_long(ext_count_free_inodes(sb), &buf->f_ffree); |
buf | 160 | fs/ext/inode.c | put_fs_long(EXT_NAME_LEN, &buf->f_namelen); |
buf | 25 | fs/ext2/dir.c | char * buf, int count) |
buf | 74 | fs/ext2/file.c | char * buf, int count) |
buf | 175 | fs/ext2/file.c | memcpy_tofs (buf, offset + (*bhe)->b_data, |
buf | 178 | fs/ext2/file.c | buf += chars; |
buf | 181 | fs/ext2/file.c | put_fs_byte (0, buf++); |
buf | 206 | fs/ext2/file.c | char * buf, int count) |
buf | 261 | fs/ext2/file.c | memcpy_fromfs (p, buf, c); |
buf | 262 | fs/ext2/file.c | buf += c; |
buf | 32 | fs/ext2/super.c | char buf[1024]; |
buf | 42 | fs/ext2/super.c | vsprintf (buf, fmt, args); |
buf | 49 | fs/ext2/super.c | MAJOR(sb->s_dev), MINOR(sb->s_dev), function, buf); |
buf | 55 | fs/ext2/super.c | char buf[1024]; |
buf | 65 | fs/ext2/super.c | vsprintf (buf, fmt, args); |
buf | 68 | fs/ext2/super.c | MAJOR(sb->s_dev), MINOR(sb->s_dev), function, buf); |
buf | 74 | fs/ext2/super.c | char buf[1024]; |
buf | 78 | fs/ext2/super.c | vsprintf (buf, fmt, args); |
buf | 85 | fs/ext2/super.c | MAJOR(sb->s_dev), MINOR(sb->s_dev), function, buf); |
buf | 517 | fs/ext2/super.c | void ext2_statfs (struct super_block * sb, struct statfs * buf) |
buf | 521 | fs/ext2/super.c | put_fs_long (EXT2_SUPER_MAGIC, &buf->f_type); |
buf | 522 | fs/ext2/super.c | put_fs_long (sb->s_blocksize, &buf->f_bsize); |
buf | 523 | fs/ext2/super.c | put_fs_long (sb->u.ext2_sb.s_es->s_blocks_count, &buf->f_blocks); |
buf | 525 | fs/ext2/super.c | put_fs_long (tmp, &buf->f_bfree); |
buf | 528 | fs/ext2/super.c | &buf->f_bavail); |
buf | 530 | fs/ext2/super.c | put_fs_long (0, &buf->f_bavail); |
buf | 531 | fs/ext2/super.c | put_fs_long (sb->u.ext2_sb.s_es->s_inodes_count, &buf->f_files); |
buf | 532 | fs/ext2/super.c | put_fs_long (ext2_count_free_inodes (sb), &buf->f_ffree); |
buf | 533 | fs/ext2/super.c | put_fs_long (EXT2_NAME_LEN, &buf->f_namelen); |
buf | 183 | 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) |
buf | 741 | fs/hpfs/hpfs_fs.c | put_fs_long(s->s_magic, &buf->f_type); |
buf | 742 | fs/hpfs/hpfs_fs.c | put_fs_long(512, &buf->f_bsize); |
buf | 743 | fs/hpfs/hpfs_fs.c | put_fs_long(s->s_hpfs_fs_size, &buf->f_blocks); |
buf | 744 | fs/hpfs/hpfs_fs.c | put_fs_long(s->s_hpfs_n_free, &buf->f_bfree); |
buf | 745 | fs/hpfs/hpfs_fs.c | put_fs_long(s->s_hpfs_n_free, &buf->f_bavail); |
buf | 746 | fs/hpfs/hpfs_fs.c | put_fs_long(s->s_hpfs_dirband_size, &buf->f_files); |
buf | 747 | fs/hpfs/hpfs_fs.c | put_fs_long(s->s_hpfs_n_free_dnodes, &buf->f_ffree); |
buf | 748 | fs/hpfs/hpfs_fs.c | put_fs_long(254, &buf->f_namelen); |
buf | 863 | fs/hpfs/hpfs_fs.c | char *buf, int count) |
buf | 879 | fs/hpfs/hpfs_fs.c | start = buf; |
buf | 914 | fs/hpfs/hpfs_fs.c | memcpy_tofs(buf, block + r, n); |
buf | 921 | fs/hpfs/hpfs_fs.c | n0 = convcpy_tofs(buf, block + r, n); |
buf | 932 | fs/hpfs/hpfs_fs.c | buf += n0; |
buf | 936 | fs/hpfs/hpfs_fs.c | return buf - start; |
buf | 1561 | fs/hpfs/hpfs_fs.c | char *buf, int count) |
buf | 114 | fs/isofs/file.c | static int isofs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 239 | fs/isofs/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 241 | fs/isofs/file.c | buf += chars; |
buf | 244 | fs/isofs/file.c | put_fs_byte(0,buf++); |
buf | 299 | fs/isofs/inode.c | void isofs_statfs (struct super_block *sb, struct statfs *buf) |
buf | 301 | fs/isofs/inode.c | put_fs_long(ISOFS_SUPER_MAGIC, &buf->f_type); |
buf | 302 | fs/isofs/inode.c | put_fs_long(1 << ISOFS_BLOCK_BITS, &buf->f_bsize); |
buf | 303 | fs/isofs/inode.c | put_fs_long(sb->u.isofs_sb.s_nzones, &buf->f_blocks); |
buf | 304 | fs/isofs/inode.c | put_fs_long(0, &buf->f_bfree); |
buf | 305 | fs/isofs/inode.c | put_fs_long(0, &buf->f_bavail); |
buf | 306 | fs/isofs/inode.c | put_fs_long(sb->u.isofs_sb.s_ninodes, &buf->f_files); |
buf | 307 | fs/isofs/inode.c | put_fs_long(0, &buf->f_ffree); |
buf | 308 | fs/isofs/inode.c | put_fs_long(NAME_MAX, &buf->f_namelen); |
buf | 16 | fs/minix/dir.c | static int minix_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 66 | fs/minix/file.c | static int minix_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 161 | fs/minix/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 163 | fs/minix/file.c | buf += chars; |
buf | 166 | fs/minix/file.c | put_fs_byte(0,buf++); |
buf | 188 | fs/minix/file.c | static int minix_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 239 | fs/minix/file.c | memcpy_fromfs(p,buf,c); |
buf | 240 | fs/minix/file.c | buf += c; |
buf | 135 | fs/minix/inode.c | void minix_statfs(struct super_block *sb, struct statfs *buf) |
buf | 139 | fs/minix/inode.c | put_fs_long(MINIX_SUPER_MAGIC, &buf->f_type); |
buf | 140 | fs/minix/inode.c | put_fs_long(1024, &buf->f_bsize); |
buf | 143 | fs/minix/inode.c | put_fs_long(tmp, &buf->f_blocks); |
buf | 145 | fs/minix/inode.c | put_fs_long(tmp, &buf->f_bfree); |
buf | 146 | fs/minix/inode.c | put_fs_long(tmp, &buf->f_bavail); |
buf | 147 | fs/minix/inode.c | put_fs_long(sb->u.minix_sb.s_ninodes, &buf->f_files); |
buf | 148 | fs/minix/inode.c | put_fs_long(minix_count_free_inodes(sb), &buf->f_ffree); |
buf | 149 | fs/minix/inode.c | put_fs_long(sb->u.minix_sb.s_namelen, &buf->f_namelen); |
buf | 17 | fs/msdos/dir.c | static int msdos_dir_read(struct inode * inode,struct file * filp, char * buf,int count) |
buf | 22 | fs/msdos/file.c | static int msdos_file_read(struct inode *inode,struct file *filp,char *buf, |
buf | 24 | fs/msdos/file.c | static int msdos_file_write(struct inode *inode,struct file *filp,char *buf, |
buf | 80 | fs/msdos/file.c | static int msdos_file_read(struct inode *inode,struct file *filp,char *buf, |
buf | 99 | fs/msdos/file.c | start = buf; |
buf | 100 | fs/msdos/file.c | while ((left = MIN(inode->i_size-filp->f_pos,count-(buf-start))) > 0){ |
buf | 107 | fs/msdos/file.c | memcpy_tofs(buf,data+offset,size); |
buf | 108 | fs/msdos/file.c | buf += size; |
buf | 114 | fs/msdos/file.c | if (ch != 26) put_fs_byte(ch,buf++); |
buf | 118 | fs/msdos/file.c | if (start != buf |
buf | 122 | fs/msdos/file.c | return buf-start; |
buf | 128 | fs/msdos/file.c | if (start == buf) return -EIO; |
buf | 131 | fs/msdos/file.c | return buf-start; |
buf | 135 | fs/msdos/file.c | static int msdos_file_write(struct inode *inode,struct file *filp,char *buf, |
buf | 159 | fs/msdos/file.c | for (start = buf; count || carry; count -= size) { |
buf | 174 | fs/msdos/file.c | buf,written = size); |
buf | 175 | fs/msdos/file.c | buf += size; |
buf | 186 | fs/msdos/file.c | if ((ch = get_fs_byte(buf++)) == '\n') { |
buf | 206 | fs/msdos/file.c | if (start == buf) |
buf | 211 | fs/msdos/file.c | return buf-start; |
buf | 262 | fs/msdos/inode.c | void msdos_statfs(struct super_block *sb,struct statfs *buf) |
buf | 266 | fs/msdos/inode.c | put_fs_long(sb->s_magic,&buf->f_type); |
buf | 267 | fs/msdos/inode.c | put_fs_long(MSDOS_SB(sb)->cluster_size*SECTOR_SIZE,&buf->f_bsize); |
buf | 268 | fs/msdos/inode.c | put_fs_long(MSDOS_SB(sb)->clusters,&buf->f_blocks); |
buf | 279 | fs/msdos/inode.c | put_fs_long(free,&buf->f_bfree); |
buf | 280 | fs/msdos/inode.c | put_fs_long(free,&buf->f_bavail); |
buf | 281 | fs/msdos/inode.c | put_fs_long(0,&buf->f_files); |
buf | 282 | fs/msdos/inode.c | put_fs_long(0,&buf->f_ffree); |
buf | 283 | fs/msdos/inode.c | put_fs_long(12,&buf->f_namelen); |
buf | 21 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *, struct file *filp, char *buf, |
buf | 72 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *inode, struct file *filp, char *buf, |
buf | 62 | fs/nfs/file.c | static int nfs_file_read(struct inode *inode, struct file *file, char *buf, |
buf | 99 | fs/nfs/file.c | memcpy_tofs(buf, data, result); |
buf | 101 | fs/nfs/file.c | buf += result; |
buf | 113 | fs/nfs/file.c | static int nfs_file_write(struct inode *inode, struct file *file, char *buf, |
buf | 144 | fs/nfs/file.c | memcpy_fromfs(data, buf, hunk); |
buf | 152 | fs/nfs/file.c | buf += hunk; |
buf | 129 | fs/nfs/inode.c | void nfs_statfs(struct super_block *sb, struct statfs *buf) |
buf | 134 | fs/nfs/inode.c | put_fs_long(NFS_SUPER_MAGIC, &buf->f_type); |
buf | 141 | fs/nfs/inode.c | put_fs_long(res.bsize, &buf->f_bsize); |
buf | 142 | fs/nfs/inode.c | put_fs_long(res.blocks, &buf->f_blocks); |
buf | 143 | fs/nfs/inode.c | put_fs_long(res.bfree, &buf->f_bfree); |
buf | 144 | fs/nfs/inode.c | put_fs_long(res.bavail, &buf->f_bavail); |
buf | 145 | fs/nfs/inode.c | put_fs_long(0, &buf->f_files); |
buf | 146 | fs/nfs/inode.c | put_fs_long(0, &buf->f_ffree); |
buf | 149 | fs/nfs/inode.c | put_fs_long(NAME_MAX, &buf->f_namelen); |
buf | 29 | fs/open.c | asmlinkage int sys_statfs(const char * path, struct statfs * buf) |
buf | 34 | fs/open.c | error = verify_area(VERIFY_WRITE, buf, sizeof(struct statfs)); |
buf | 44 | fs/open.c | inode->i_sb->s_op->statfs(inode->i_sb, buf); |
buf | 49 | fs/open.c | asmlinkage int sys_fstatfs(unsigned int fd, struct statfs * buf) |
buf | 55 | fs/open.c | error = verify_area(VERIFY_WRITE, buf, sizeof(struct statfs)); |
buf | 64 | fs/open.c | inode->i_sb->s_op->statfs(inode->i_sb, buf); |
buf | 16 | fs/pipe.c | static int pipe_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 35 | fs/pipe.c | memcpy_tofs(buf, PIPE_BASE(*inode)+PIPE_TAIL(*inode), chars ); |
buf | 40 | fs/pipe.c | buf += chars; |
buf | 50 | fs/pipe.c | static int pipe_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 82 | fs/pipe.c | memcpy_fromfs(PIPE_BASE(*inode)+PIPE_HEAD(*inode), buf, chars ); |
buf | 87 | fs/pipe.c | buf += chars; |
buf | 105 | fs/pipe.c | static int bad_pipe_rw(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 179 | fs/pipe.c | static int connect_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 192 | fs/pipe.c | return pipe_read(inode,filp,buf,count); |
buf | 30 | fs/proc/array.c | static int read_core(struct inode * inode, struct file * file,char * buf, int count) |
buf | 55 | fs/proc/array.c | memcpy_tofs(buf,(void *) pnt, count1); |
buf | 56 | fs/proc/array.c | buf += count1; |
buf | 63 | fs/proc/array.c | put_fs_byte(0,buf); |
buf | 64 | fs/proc/array.c | buf++; |
buf | 69 | fs/proc/array.c | memcpy_tofs(buf,(void *) (p - PAGE_SIZE),count); |
buf | 310 | fs/proc/array.c | unsigned long ptbl, *buf, *pte, *pagedir, map_nr; |
buf | 322 | fs/proc/array.c | buf = (unsigned long *)(ptbl & PAGE_MASK); |
buf | 323 | fs/proc/array.c | for (pte = buf; pte < (buf + PTRS_PER_PAGE); ++pte) { |
buf | 352 | fs/proc/array.c | static int get_maps(int pid, char *buf) |
buf | 392 | fs/proc/array.c | sprintf(buf+sz, "...\n"); |
buf | 404 | fs/proc/array.c | sz += sprintf(buf+sz, "%08lx-%08lx %s %08lx %02x:%02x %lu\n", |
buf | 416 | fs/proc/array.c | static int array_read(struct inode * inode, struct file * file,char * buf, int count) |
buf | 462 | fs/proc/array.c | return read_core(inode, file, buf, count); |
buf | 477 | fs/proc/array.c | memcpy_tofs(buf, page + file->f_pos, count); |
buf | 61 | fs/proc/inode.c | void proc_statfs(struct super_block *sb, struct statfs *buf) |
buf | 63 | fs/proc/inode.c | put_fs_long(PROC_SUPER_MAGIC, &buf->f_type); |
buf | 64 | fs/proc/inode.c | put_fs_long(PAGE_SIZE/sizeof(long), &buf->f_bsize); |
buf | 65 | fs/proc/inode.c | put_fs_long(0, &buf->f_blocks); |
buf | 66 | fs/proc/inode.c | put_fs_long(0, &buf->f_bfree); |
buf | 67 | fs/proc/inode.c | put_fs_long(0, &buf->f_bavail); |
buf | 68 | fs/proc/inode.c | put_fs_long(0, &buf->f_files); |
buf | 69 | fs/proc/inode.c | put_fs_long(0, &buf->f_ffree); |
buf | 70 | fs/proc/inode.c | put_fs_long(NAME_MAX, &buf->f_namelen); |
buf | 32 | fs/proc/kmsg.c | static int kmsg_read(struct inode * inode, struct file * file,char * buf, int count) |
buf | 34 | fs/proc/kmsg.c | return sys_syslog(2,buf,count); |
buf | 108 | fs/proc/link.c | char buf[64]; |
buf | 118 | fs/proc/link.c | i = sprintf(buf,"[%04x]:%u", dev, ino); |
buf | 123 | fs/proc/link.c | put_fs_byte(buf[i++],buffer++); |
buf | 23 | fs/proc/mem.c | static int mem_read(struct inode * inode, struct file * file,char * buf, int count) |
buf | 43 | fs/proc/mem.c | tmp = buf; |
buf | 66 | fs/proc/mem.c | return tmp-buf; |
buf | 71 | fs/proc/mem.c | static int mem_write(struct inode * inode, struct file * file,char * buf, int count) |
buf | 91 | fs/proc/mem.c | tmp = buf; |
buf | 118 | fs/proc/mem.c | if (tmp != buf) |
buf | 119 | fs/proc/mem.c | return tmp-buf; |
buf | 32 | fs/proc/net.c | char * buf, int count); |
buf | 158 | fs/proc/net.c | char * buf, int count) |
buf | 205 | fs/proc/net.c | memcpy_tofs(buf, page + file->f_pos, count); |
buf | 70 | fs/read_write.c | asmlinkage int sys_read(unsigned int fd,char * buf,unsigned int count) |
buf | 84 | fs/read_write.c | error = verify_area(VERIFY_WRITE,buf,count); |
buf | 87 | fs/read_write.c | return file->f_op->read(inode,file,buf,count); |
buf | 90 | fs/read_write.c | asmlinkage int sys_write(unsigned int fd,char * buf,unsigned int count) |
buf | 104 | fs/read_write.c | error = verify_area(VERIFY_READ,buf,count); |
buf | 107 | fs/read_write.c | return file->f_op->write(inode,file,buf,count); |
buf | 183 | fs/stat.c | asmlinkage int sys_readlink(const char * path, char * buf, int bufsiz) |
buf | 190 | fs/stat.c | error = verify_area(VERIFY_WRITE,buf,bufsiz); |
buf | 200 | fs/stat.c | return inode->i_op->readlink(inode,buf,bufsiz); |
buf | 60 | fs/xiafs/dir.c | struct file * filp, char * buf, int count) |
buf | 70 | fs/xiafs/file.c | xiafs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 159 | fs/xiafs/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 161 | fs/xiafs/file.c | buf += chars; |
buf | 164 | fs/xiafs/file.c | put_fs_byte(0,buf++); |
buf | 189 | fs/xiafs/file.c | xiafs_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 240 | fs/xiafs/file.c | memcpy_fromfs(cp,buf,c); |
buf | 241 | fs/xiafs/file.c | buf += c; |
buf | 158 | fs/xiafs/inode.c | void xiafs_statfs(struct super_block *sb, struct statfs *buf) |
buf | 162 | fs/xiafs/inode.c | put_fs_long(_XIAFS_SUPER_MAGIC, &buf->f_type); |
buf | 163 | fs/xiafs/inode.c | put_fs_long(XIAFS_ZSIZE(sb), &buf->f_bsize); |
buf | 164 | fs/xiafs/inode.c | put_fs_long(sb->u.xiafs_sb.s_ndatazones, &buf->f_blocks); |
buf | 166 | fs/xiafs/inode.c | put_fs_long(tmp, &buf->f_bfree); |
buf | 167 | fs/xiafs/inode.c | put_fs_long(tmp, &buf->f_bavail); |
buf | 168 | fs/xiafs/inode.c | put_fs_long(sb->u.xiafs_sb.s_ninodes, &buf->f_files); |
buf | 169 | fs/xiafs/inode.c | put_fs_long(xiafs_count_free_inodes(sb), &buf->f_ffree); |
buf | 170 | fs/xiafs/inode.c | put_fs_long(_XIAFS_NAME_LEN, &buf->f_namelen); |
buf | 17 | include/linux/binfmts.h | char buf[128]; |
buf | 379 | include/linux/fs.h | extern void brelse(struct buffer_head * buf); |
buf | 47 | include/linux/kernel.h | int sprintf(char * buf, const char * fmt, ...); |
buf | 65 | include/linux/mcd.h | #define READ_DATA(port, buf, nr) \ |
buf | 66 | include/linux/mcd.h | __asm__("cld;rep;insb": :"d" (port),"D" (buf),"c" (nr):"cx","di") |
buf | 117 | include/linux/mm.h | extern int vread(char *buf, char *addr, int count); |
buf | 125 | include/linux/mm.h | extern void rw_swap_page(int rw, unsigned long nr, char * buf); |
buf | 138 | include/linux/mm.h | #define read_swap_page(nr,buf) \ |
buf | 139 | include/linux/mm.h | rw_swap_page(READ,(nr),(buf)) |
buf | 140 | include/linux/mm.h | #define write_swap_page(nr,buf) \ |
buf | 141 | include/linux/mm.h | rw_swap_page(WRITE,(nr),(buf)) |
buf | 173 | include/linux/msdos_fs.h | extern void msdos_statfs(struct super_block *sb,struct statfs *buf); |
buf | 48 | include/linux/sem.h | struct semid_ds *buf; /* buffer for IPC_STAT & IPC_SET */ |
buf | 69 | include/linux/tty.h | unsigned char buf[TTY_BUF_SIZE]; |
buf | 140 | include/linux/tty.h | #define LAST(a) ((a)->buf[(TTY_BUF_SIZE-1)&((a)->head-1)]) |
buf | 256 | include/linux/tty.h | char * buf, int nr); |
buf | 258 | include/linux/tty.h | char * buf, int nr); |
buf | 53 | init/main.c | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
buf | 320 | ipc/msg.c | int sys_msgctl (int msqid, int cmd, struct msqid_ds *buf) |
buf | 331 | ipc/msg.c | if (!buf) |
buf | 348 | ipc/msg.c | err = verify_area (VERIFY_WRITE, buf, sizeof (struct msginfo)); |
buf | 351 | ipc/msg.c | memcpy_tofs (buf, &msginfo, sizeof(struct msginfo)); |
buf | 355 | ipc/msg.c | if (!buf) |
buf | 357 | ipc/msg.c | err = verify_area (VERIFY_WRITE, buf, sizeof (*msq)); |
buf | 368 | ipc/msg.c | memcpy_tofs (buf, msq, sizeof(*msq)); |
buf | 371 | ipc/msg.c | if (!buf) |
buf | 373 | ipc/msg.c | memcpy_fromfs (&tbuf, buf, sizeof (*buf)); |
buf | 376 | ipc/msg.c | if (!buf) |
buf | 378 | ipc/msg.c | err = verify_area (VERIFY_WRITE, buf, sizeof(*msq)); |
buf | 396 | ipc/msg.c | memcpy_tofs (buf, msq, sizeof (*msq)); |
buf | 154 | ipc/sem.c | struct semid_ds *sma, *buf = NULL, tbuf; |
buf | 193 | ipc/sem.c | if (!arg || ! (buf = (struct semid_ds *) get_fs_long((int *) arg))) |
buf | 195 | ipc/sem.c | i = verify_area (VERIFY_WRITE, buf, sizeof (*sma)); |
buf | 206 | ipc/sem.c | memcpy_tofs (buf, sma, sizeof(*sma)); |
buf | 267 | ipc/sem.c | if (!arg || !(buf = (struct semid_ds *) get_fs_long((int *) arg))) |
buf | 273 | ipc/sem.c | if (!arg || !(buf = (struct semid_ds *) get_fs_long((int *) arg))) |
buf | 275 | ipc/sem.c | if ((i = verify_area (VERIFY_READ, buf, sizeof tbuf))) |
buf | 277 | ipc/sem.c | memcpy_fromfs (&tbuf, buf, sizeof tbuf); |
buf | 321 | ipc/sem.c | memcpy_tofs (buf, sma, sizeof (*sma)); |
buf | 195 | ipc/shm.c | int sys_shmctl (int shmid, int cmd, struct shmid_ds *buf) |
buf | 204 | ipc/shm.c | if (!buf) |
buf | 206 | ipc/shm.c | err = verify_area (VERIFY_READ, buf, sizeof (*buf)); |
buf | 209 | ipc/shm.c | memcpy_fromfs (&tbuf, buf, sizeof (*buf)); |
buf | 216 | ipc/shm.c | if (!buf) |
buf | 223 | ipc/shm.c | err = verify_area (VERIFY_WRITE, buf, sizeof (struct shminfo)); |
buf | 226 | ipc/shm.c | memcpy_tofs (buf, &shminfo, sizeof(struct shminfo)); |
buf | 232 | ipc/shm.c | if (!buf) |
buf | 234 | ipc/shm.c | err = verify_area (VERIFY_WRITE, buf, sizeof (shm_info)); |
buf | 243 | ipc/shm.c | memcpy_tofs (buf, &shm_info, sizeof(shm_info)); |
buf | 247 | ipc/shm.c | if (!buf) |
buf | 249 | ipc/shm.c | err = verify_area (VERIFY_WRITE, buf, sizeof (*shp)); |
buf | 260 | ipc/shm.c | memcpy_tofs (buf, shp, sizeof(*shp)); |
buf | 292 | ipc/shm.c | if (!buf) |
buf | 294 | ipc/shm.c | err = verify_area (VERIFY_WRITE, buf, sizeof (*shp)); |
buf | 297 | ipc/shm.c | memcpy_tofs (buf, shp, sizeof(*shp)); |
buf | 29 | ipc/util.c | extern int sys_msgctl (int msqid, int cmd, struct msqid_ds *buf); |
buf | 30 | ipc/util.c | extern int sys_shmctl (int shmid, int cmd, struct shmid_ds *buf); |
buf | 18 | kernel/panic.c | extern int vsprintf(char * buf, const char * fmt, va_list args); |
buf | 22 | kernel/panic.c | static char buf[1024]; |
buf | 26 | kernel/panic.c | vsprintf(buf, fmt, args); |
buf | 28 | kernel/panic.c | printk(KERN_EMERG "Kernel panic: %s\n",buf); |
buf | 25 | kernel/printk.c | static char buf[1024]; |
buf | 27 | kernel/printk.c | extern int vsprintf(char * buf, const char * fmt, va_list args); |
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 | 91 | kernel/printk.c | put_fs_byte(c,buf); |
buf | 92 | kernel/printk.c | buf++; |
buf | 101 | kernel/printk.c | if (!buf || len < 0) |
buf | 105 | kernel/printk.c | error = verify_area(VERIFY_WRITE,buf,len); |
buf | 116 | kernel/printk.c | put_fs_byte(c, buf++); |
buf | 151 | kernel/printk.c | i = vsprintf(buf + 3, fmt, args); /* hopefully i < sizeof(buf)-4 */ |
buf | 152 | kernel/printk.c | buf_end = buf + 3 + i; |
buf | 154 | kernel/printk.c | for (p = buf + 3; p < buf_end; p++) { |
buf | 205 | kernel/printk.c | char buf[16]; |
buf | 212 | kernel/printk.c | buf[j++] = log_buf[p]; |
buf | 214 | kernel/printk.c | if (buf[j-1] != '\n' && i < log_size - 1 && j < sizeof(buf)-1) |
buf | 216 | kernel/printk.c | buf[j] = 0; |
buf | 217 | kernel/printk.c | q = buf; |
buf | 219 | kernel/printk.c | msg_level = buf[1] - '0'; |
buf | 220 | kernel/printk.c | q = buf + 3; |
buf | 224 | kernel/printk.c | if (buf[j-1] == '\n') |
buf | 119 | kernel/vsprintf.c | int vsprintf(char *buf, const char *fmt, va_list args) |
buf | 134 | kernel/vsprintf.c | for (str=buf ; *fmt ; ++fmt) { |
buf | 247 | kernel/vsprintf.c | *ip = (str - buf); |
buf | 261 | kernel/vsprintf.c | return str-buf; |
buf | 264 | kernel/vsprintf.c | int sprintf(char * buf, const char *fmt, ...) |
buf | 270 | kernel/vsprintf.c | i=vsprintf(buf,fmt,args); |
buf | 11 | lib/write.c | _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
buf | 57 | mm/swap.c | void rw_swap_page(int rw, unsigned long entry, char * buf) |
buf | 80 | mm/swap.c | ll_rw_page(rw,p->swap_device,offset,buf); |
buf | 93 | mm/swap.c | ll_rw_swap_file(rw,p->swap_file->i_dev, zones, i,buf); |
buf | 168 | mm/vmalloc.c | int vread(char *buf, char *addr, int count) |
buf | 171 | mm/vmalloc.c | char *vaddr, *buf_start = buf; |
buf | 179 | mm/vmalloc.c | put_fs_byte('\0', buf++), addr++, count--; |
buf | 187 | mm/vmalloc.c | put_fs_byte(*addr++, buf++), count--; |
buf | 191 | mm/vmalloc.c | return buf - buf_start; |
buf | 88 | net/inet/skbuff.h | extern void skb_queue_head(struct sk_buff * volatile *list,struct sk_buff *buf); |
buf | 89 | net/inet/skbuff.h | extern void skb_queue_tail(struct sk_buff * volatile *list,struct sk_buff *buf); |
buf | 93 | net/inet/skbuff.h | extern void skb_unlink(struct sk_buff *buf); |
buf | 88 | net/inet/utils.c | extern int vsprintf(char * buf, const char * fmt, va_list args); |
buf | 49 | net/socket.c | static int sock_read(struct inode *inode, struct file *file, char *buf, |
buf | 51 | net/socket.c | static int sock_write(struct inode *inode, struct file *file, char *buf, |
buf | 85 | net/socket.c | extern int vsprintf(char * buf, const char * fmt, va_list args); |
buf | 101 | net/unix/sock.c | extern int vsprintf(char * buf, const char * fmt, va_list args); |
buf | 127 | net/unix/sock.c | char buf[sizeof(sockun->sun_path) + 1]; |
buf | 134 | net/unix/sock.c | else if (sockaddr_len <= 0 || sockaddr_len >= sizeof(buf)) |
buf | 137 | net/unix/sock.c | memcpy(buf, sockun->sun_path, sockaddr_len); |
buf | 138 | net/unix/sock.c | buf[sockaddr_len] = '\0'; |
buf | 139 | net/unix/sock.c | printk("\"%s\"[%lu]\n", buf, sockaddr_len + UN_PATH_OFFSET); |
buf | 238 | net/unix/sock.c | upd->buf = NULL; |
buf | 271 | net/unix/sock.c | if (upd->buf) { |
buf | 272 | net/unix/sock.c | free_page((unsigned long)upd->buf); |
buf | 273 | net/unix/sock.c | upd->buf = NULL; |
buf | 299 | net/unix/sock.c | if (!(upd->buf = (char*) get_free_page(GFP_USER))) { |
buf | 616 | net/unix/sock.c | memcpy_tofs(ubuf, upd->buf + upd->bp_tail, cando); |
buf | 693 | net/unix/sock.c | memcpy_fromfs(pupd->buf + pupd->bp_head, ubuf, cando); |
buf | 34 | net/unix/unix.h | char *buf; |
buf | 89 | tools/build.c | char buf[1024]; |
buf | 90 | tools/build.c | struct exec *ex = (struct exec *)buf; |
buf | 120 | tools/build.c | for (i=0;i<sizeof buf; i++) buf[i]=0; |
buf | 123 | tools/build.c | if (read(id,buf,MINIX_HEADER) != MINIX_HEADER) |
buf | 125 | tools/build.c | if (((long *) buf)[0]!=intel_long(0x04100301)) |
buf | 127 | tools/build.c | if (((long *) buf)[1]!=intel_long(MINIX_HEADER)) |
buf | 129 | tools/build.c | if (((long *) buf)[3] != 0) |
buf | 131 | tools/build.c | if (((long *) buf)[4] != 0) |
buf | 133 | tools/build.c | if (((long *) buf)[5] != 0) |
buf | 135 | tools/build.c | if (((long *) buf)[7] != 0) |
buf | 137 | tools/build.c | i=read(id,buf,sizeof buf); |
buf | 141 | tools/build.c | if ((*(unsigned short *)(buf+510)) != (unsigned short)intel_short(0xAA55)) |
buf | 143 | tools/build.c | buf[508] = (char) minor_root; |
buf | 144 | tools/build.c | buf[509] = (char) major_root; |
buf | 145 | tools/build.c | i=write(1,buf,512); |
buf | 152 | tools/build.c | if (read(id,buf,MINIX_HEADER) != MINIX_HEADER) |
buf | 154 | tools/build.c | if (((long *) buf)[0]!=intel_long(0x04100301)) |
buf | 156 | tools/build.c | if (((long *) buf)[1]!=intel_long(MINIX_HEADER)) |
buf | 158 | tools/build.c | if (((long *) buf)[3] != 0) |
buf | 160 | tools/build.c | if (((long *) buf)[4] != 0) |
buf | 162 | tools/build.c | if (((long *) buf)[5] != 0) |
buf | 164 | tools/build.c | if (((long *) buf)[7] != 0) |
buf | 166 | tools/build.c | for (i=0 ; (c=read(id,buf,sizeof buf))>0 ; i+=c ) |
buf | 167 | tools/build.c | if (write(1,buf,c)!=c) |
buf | 176 | tools/build.c | for (c=0 ; c<sizeof(buf) ; c++) |
buf | 177 | tools/build.c | buf[c] = '\0'; |
buf | 180 | tools/build.c | if (c > sizeof(buf)) |
buf | 181 | tools/build.c | c = sizeof(buf); |
buf | 182 | tools/build.c | if (write(1,buf,c) != c) |
buf | 189 | tools/build.c | if (read(id,buf,GCC_HEADER) != GCC_HEADER) |
buf | 206 | tools/build.c | if (l > sizeof(buf)) |
buf | 207 | tools/build.c | l = sizeof(buf); |
buf | 208 | tools/build.c | if ((n=read(id, buf, l)) != l) { |
buf | 215 | tools/build.c | write(1, buf, l); |
buf | 220 | tools/build.c | buf[0] = (sys_size & 0xff); |
buf | 221 | tools/build.c | buf[1] = ((sys_size >> 8) & 0xff); |
buf | 222 | tools/build.c | write(1, buf, 2); |
buf | 238 | zBoot/gzip.h | extern int file_read OF((char *buf, unsigned size)); |
buf | 257 | zBoot/gzip.h | ulg flush_block OF((char *buf, ulg stored_len, int eof)); |
buf | 264 | zBoot/gzip.h | void copy_block OF((char *buf, unsigned len, int header)); |
buf | 265 | zBoot/gzip.h | extern int (*read_buf) OF((char *buf, unsigned size)); |
buf | 101 | zBoot/unzip.c | uch buf[EXTHDR]; /* extended local header */ |
buf | 149 | zBoot/unzip.c | buf[n] = (uch)get_byte(); /* may cause an error if EOF */ |
buf | 151 | zBoot/unzip.c | orig_crc = LG(buf); |
buf | 152 | zBoot/unzip.c | orig_len = LG(buf+4); |
buf | 161 | zBoot/unzip.c | buf[n] = (uch)get_byte(); /* may cause an error if EOF */ |
buf | 163 | zBoot/unzip.c | orig_crc = LG(buf+4); |
buf | 164 | zBoot/unzip.c | orig_len = LG(buf+12); |
buf | 39 | zBoot/xtract.c | char buf[1024]; |
buf | 43 | zBoot/xtract.c | struct exec *ex = (struct exec *)buf; |
buf | 50 | zBoot/xtract.c | if (read(id,buf,GCC_HEADER) != GCC_HEADER) |
buf | 64 | zBoot/xtract.c | if (l > sizeof(buf)) l = sizeof(buf); |
buf | 66 | zBoot/xtract.c | if ((n=read(id, buf, l)) !=l) |
buf | 76 | zBoot/xtract.c | write(1, buf, l); |