tag | line | file | source code |
buf | 180 | drivers/block/cdu31a.c | unsigned char *buf); |
buf | 1115 | drivers/block/cdu31a.c | unsigned char *buf) |
buf | 1117 | drivers/block/cdu31a.c | buf[0] = size / 65536; |
buf | 1119 | drivers/block/cdu31a.c | buf[1] = size / 256; |
buf | 1120 | drivers/block/cdu31a.c | buf[2] = size % 256; |
buf | 428 | drivers/block/ll_rw_blk.c | void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buf) |
buf | 452 | drivers/block/ll_rw_blk.c | for (i=0; i<nb; i++, buf += buffersize) |
buf | 462 | drivers/block/ll_rw_blk.c | req->buffer = buf; |
buf | 565 | drivers/block/sbpcd.c | extern int vsprintf(char *buf, const char *fmt, va_list args); |
buf | 2669 | drivers/block/sbpcd.c | i=verify_area(VERIFY_WRITE, read_audio.buf, |
buf | 2824 | drivers/block/sbpcd.c | memcpy_tofs((u_char *) read_audio.buf, |
buf | 538 | drivers/block/xd.c | u_char cmdblk[6],buf[64]; |
buf | 541 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
buf | 542 | drivers/block/xd.c | xd_info[drive].heads = buf[0x0A]; /* heads */ |
buf | 543 | drivers/block/xd.c | xd_info[drive].cylinders = ((u_short *) (buf))[0x04]; /* cylinders */ |
buf | 546 | drivers/block/xd.c | xd_info[drive].rwrite = ((u_short *) (buf + 1))[0x05]; /* reduced write */ |
buf | 547 | drivers/block/xd.c | xd_info[drive].precomp = ((u_short *) (buf + 1))[0x06]; /* write precomp */ |
buf | 548 | drivers/block/xd.c | xd_info[drive].ecc = buf[0x0F]; /* ecc length */ |
buf | 552 | 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 | 582 | drivers/block/xd.c | u_char cmdblk[6],buf[0x200]; |
buf | 585 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
buf | 586 | drivers/block/xd.c | xd_info[drive].heads = buf[0x1AF]; /* heads */ |
buf | 587 | drivers/block/xd.c | xd_info[drive].cylinders = ((u_short *) (buf + 1))[0xD6]; /* cylinders */ |
buf | 590 | drivers/block/xd.c | xd_info[drive].rwrite = ((u_short *) (buf))[0xD8]; /* reduced write */ |
buf | 591 | drivers/block/xd.c | xd_info[drive].wprecomp = ((u_short *) (buf))[0xDA]; /* write precomp */ |
buf | 592 | drivers/block/xd.c | xd_info[drive].ecc = buf[0x1B4]; /* ecc length */ |
buf | 594 | drivers/block/xd.c | xd_info[drive].control = buf[0x1B5]; /* control byte */ |
buf | 596 | 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 | 621 | drivers/block/xd.c | u_char cmdblk[6],buf[0x200]; |
buf | 624 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
buf | 625 | drivers/block/xd.c | xd_info[drive].heads = buf[0x04]; /* heads */ |
buf | 626 | drivers/block/xd.c | xd_info[drive].cylinders = (buf[0x02] << 8) | buf[0x03]; /* cylinders */ |
buf | 627 | drivers/block/xd.c | xd_info[drive].sectors = buf[0x05]; /* sectors */ |
buf | 777 | drivers/char/console.c | char buf[40]; |
buf | 779 | drivers/char/console.c | sprintf(buf, "\033[%ld;%ldR", y + (decom ? top+1 : 1), x+1); |
buf | 780 | drivers/char/console.c | respond_string(buf, tty); |
buf | 786 | drivers/char/console.c | char buf[8]; |
buf | 788 | drivers/char/console.c | sprintf(buf, "\033[M%c%c%c", (char)(' ' + butt), (char)('!' + mrx), |
buf | 790 | drivers/char/console.c | respond_string(buf, tty); |
buf | 1076 | drivers/char/console.c | unsigned char *buf, int count) |
buf | 1094 | drivers/char/console.c | c = from_user ? get_fs_byte(buf) : *buf; |
buf | 1095 | drivers/char/console.c | buf++; n++; count--; |
buf | 1741 | drivers/char/console.c | char *sptr, *buf = (char *)arg; |
buf | 1746 | drivers/char/console.c | l = verify_area(VERIFY_WRITE, buf,2+video_num_columns*video_num_lines); |
buf | 1749 | drivers/char/console.c | currcons = get_fs_byte(buf+1); |
buf | 1752 | drivers/char/console.c | put_fs_byte((char)(video_num_lines),buf++); |
buf | 1753 | drivers/char/console.c | put_fs_byte((char)(video_num_columns),buf++); |
buf | 1757 | drivers/char/console.c | put_fs_byte(*sptr++,buf++); |
buf | 388 | drivers/char/keyboard.c | static char buf[] = { 0x1b, 'O', 0x00, 0x00 }; |
buf | 390 | drivers/char/keyboard.c | buf[1] = (mode ? 'O' : '['); |
buf | 391 | drivers/char/keyboard.c | buf[2] = key; |
buf | 392 | 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 | 184 | drivers/char/lp.c | buf += bytes_written; |
buf | 193 | drivers/char/lp.c | char * buf, int count) |
buf | 197 | drivers/char/lp.c | char c, *temp = buf; |
buf | 207 | drivers/char/lp.c | temp = buf; |
buf | 223 | drivers/char/lp.c | return temp-buf?temp-buf:-ENOSPC; |
buf | 231 | drivers/char/lp.c | return temp-buf?temp-buf:-EIO; |
buf | 240 | drivers/char/lp.c | return temp-buf?temp-buf:-EFAULT; |
buf | 248 | drivers/char/lp.c | if (temp != buf) |
buf | 249 | drivers/char/lp.c | return temp-buf; |
buf | 263 | drivers/char/lp.c | return temp-buf; |
buf | 266 | drivers/char/lp.c | static int lp_write(struct inode * inode, struct file * file, char * buf, int count) |
buf | 269 | drivers/char/lp.c | return lp_write_interrupt(inode, file, buf, count); |
buf | 271 | 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 | 117 | drivers/char/mem.c | static int read_kmem(struct inode *inode, struct file *file, char *buf, int count) |
buf | 121 | drivers/char/mem.c | read1 = read_mem(inode, file, buf, count); |
buf | 124 | drivers/char/mem.c | read2 = vread(buf + read1, (char *) file->f_pos, count - read1); |
buf | 131 | drivers/char/mem.c | static int read_port(struct inode * inode,struct file * file,char * buf, int count) |
buf | 134 | drivers/char/mem.c | char * tmp = buf; |
buf | 142 | drivers/char/mem.c | return tmp-buf; |
buf | 145 | drivers/char/mem.c | static int write_port(struct inode * inode,struct file * file,char * buf, int count) |
buf | 148 | drivers/char/mem.c | char * tmp = buf; |
buf | 156 | drivers/char/mem.c | return tmp-buf; |
buf | 159 | drivers/char/mem.c | static int read_null(struct inode * node,struct file * file,char * buf,int count) |
buf | 164 | drivers/char/mem.c | static int write_null(struct inode * inode,struct file * file,char * buf, int count) |
buf | 169 | drivers/char/mem.c | static int read_zero(struct inode * node,struct file * file,char * buf,int count) |
buf | 174 | drivers/char/mem.c | put_fs_byte(0,buf); |
buf | 175 | drivers/char/mem.c | buf++; |
buf | 211 | drivers/char/mem.c | static int read_full(struct inode * node,struct file * file,char * buf,int count) |
buf | 216 | drivers/char/mem.c | static int write_full(struct inode * inode,struct file * file,char * buf, int count) |
buf | 314 | drivers/char/n_tty.c | char buf[64]; |
buf | 318 | drivers/char/n_tty.c | printk("%s: %d input overrun(s)\n", _tty_name(tty, buf), |
buf | 739 | drivers/char/n_tty.c | unsigned char *buf, unsigned int nr) |
buf | 743 | drivers/char/n_tty.c | unsigned char *b = buf; |
buf | 797 | drivers/char/n_tty.c | if (b != buf) |
buf | 808 | drivers/char/n_tty.c | if (((minimum - (b - buf)) < tty->minimum_to_wake) && |
buf | 809 | drivers/char/n_tty.c | ((minimum - (b - buf)) >= 1)) |
buf | 810 | drivers/char/n_tty.c | tty->minimum_to_wake = (minimum - (b - buf)); |
buf | 835 | drivers/char/n_tty.c | if (tty->packet && b == buf) { |
buf | 886 | drivers/char/n_tty.c | if (b - buf >= minimum || !nr) |
buf | 904 | drivers/char/n_tty.c | return (b - buf) ? b - buf : retval; |
buf | 908 | drivers/char/n_tty.c | unsigned char * buf, unsigned int nr) |
buf | 912 | drivers/char/n_tty.c | unsigned char *b = buf; |
buf | 957 | 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 | 89 | drivers/char/pty.c | unsigned char *buf, int count) |
buf | 104 | drivers/char/pty.c | memcpy_fromfs(temp_buffer, buf, n); |
buf | 110 | drivers/char/pty.c | buf += n; c+= n; |
buf | 116 | drivers/char/pty.c | to->ldisc.receive_buf(to, buf, 0, c); |
buf | 1227 | drivers/char/serial.c | unsigned char *buf, int count) |
buf | 1247 | drivers/char/serial.c | buf, c); |
buf | 1249 | drivers/char/serial.c | memcpy(info->xmit_buf + info->xmit_head, buf, c); |
buf | 1254 | drivers/char/serial.c | buf += c; |
buf | 1313 | drivers/char/serial.c | char buf[64]; |
buf | 1315 | drivers/char/serial.c | printk("throttle %s: %d....\n", _tty_name(tty, buf), |
buf | 1336 | drivers/char/serial.c | char buf[64]; |
buf | 1338 | drivers/char/serial.c | printk("unthrottle %s: %d....\n", _tty_name(tty, buf), |
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, %p, %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, %p, %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 %p, total_bytes_done %lx, count %x\n", status_bytes_wr, buf, total_bytes_done, count); |
buf | 110 | drivers/char/tty_io.c | char *_tty_name(struct tty_struct *tty, char *buf) |
buf | 112 | drivers/char/tty_io.c | sprintf(buf, "%s%d", tty->driver.name, |
buf | 115 | drivers/char/tty_io.c | return buf; |
buf | 120 | drivers/char/tty_io.c | static char buf[64]; |
buf | 122 | drivers/char/tty_io.c | return(_tty_name(tty, buf)); |
buf | 253 | drivers/char/tty_io.c | static int hung_up_tty_read(struct inode * inode, struct file * file, char * buf, int count) |
buf | 258 | drivers/char/tty_io.c | static int hung_up_tty_write(struct inode * inode, struct file * file, char * buf, int count) |
buf | 634 | drivers/char/tty_io.c | static int tty_read(struct inode * inode, struct file * file, char * buf, int count) |
buf | 663 | drivers/char/tty_io.c | i = (tty->ldisc.read)(tty,file,(unsigned char *)buf,(unsigned int)count); |
buf | 671 | drivers/char/tty_io.c | static int tty_write(struct inode * inode, struct file * file, char * buf, int count) |
buf | 699 | drivers/char/tty_io.c | i = (tty->ldisc.write)(tty,file,(unsigned char *)buf,(unsigned int)count); |
buf | 276 | drivers/net/3c501.c | unsigned char *buf = skb->data; |
buf | 286 | drivers/net/3c501.c | outsb(DATAPORT,buf,skb->len); |
buf | 43 | drivers/net/3c503.c | const unsigned char *buf, const start_page); |
buf | 44 | drivers/net/3c503.c | static int el2_block_input(struct device *dev, int count, char *buf, |
buf | 338 | drivers/net/3c503.c | const unsigned char *buf, const start_page) |
buf | 349 | drivers/net/3c503.c | memcpy(dest_addr, buf, count); |
buf | 350 | drivers/net/3c503.c | if (ei_debug > 2 && memcmp(dest_addr, buf, count)) |
buf | 373 | drivers/net/3c503.c | outb(buf[i], E33G_FIFOH); |
buf | 381 | drivers/net/3c503.c | el2_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 393 | drivers/net/3c503.c | memcpy(buf, (char *)dev->mem_start + ring_offset, semi_count); |
buf | 395 | drivers/net/3c503.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
buf | 398 | drivers/net/3c503.c | memcpy(buf, (char *)dev->mem_start + ring_offset, count); |
buf | 418 | drivers/net/3c503.c | buf[i] = inb_p(E33G_FIFOH); |
buf | 278 | drivers/net/3c507.c | static void hardware_send_packet(struct device *dev, void *buf, short length); |
buf | 472 | drivers/net/3c507.c | unsigned char *buf = skb->data; |
buf | 476 | drivers/net/3c507.c | hardware_send_packet(dev, buf, length); |
buf | 737 | drivers/net/3c507.c | hardware_send_packet(struct device *dev, void *buf, short length) |
buf | 762 | drivers/net/3c507.c | memcpy(write_ptr, buf, length); |
buf | 64 | drivers/net/ac3200.c | char *buf, int ring_offset); |
buf | 66 | drivers/net/ac3200.c | const unsigned char *buf, const int start_page); |
buf | 221 | drivers/net/ac3200.c | static int ac_block_input(struct device *dev, int count, char *buf, |
buf | 229 | drivers/net/ac3200.c | memcpy(buf, (char*)xfer_start, semi_count); |
buf | 231 | drivers/net/ac3200.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
buf | 234 | drivers/net/ac3200.c | memcpy(buf, (char*)xfer_start, count); |
buf | 240 | drivers/net/ac3200.c | const unsigned char *buf, int start_page) |
buf | 244 | drivers/net/ac3200.c | memcpy((unsigned char *)shmem, buf, count); |
buf | 385 | drivers/net/at1700.c | unsigned char *buf = skb->data; |
buf | 391 | drivers/net/at1700.c | outsw(ioaddr + DATAPORT, buf, (length + 1) >> 1); |
buf | 446 | drivers/net/atp.c | unsigned char *buf = skb->data; |
buf | 457 | drivers/net/atp.c | write_packet(ioaddr, length, buf, dev->if_port); |
buf | 783 | drivers/net/depca.c | unsigned char *buf; |
buf | 790 | drivers/net/depca.c | buf = (unsigned char *)((lp->tx_ring[entry].base+lp->bus_offset) & |
buf | 809 | drivers/net/depca.c | memcpy((unsigned char *)(buf), skb->data, len); |
buf | 826 | drivers/net/depca.c | buf = (unsigned char *)((lp->tx_ring[entry].base+lp->bus_offset) & |
buf | 834 | drivers/net/depca.c | memcpy((unsigned char *)buf, skb->data, PKT_HDR_LEN); |
buf | 846 | drivers/net/depca.c | memcpy((unsigned char *)(buf + PKT_HDR_LEN), (unsigned char *)p, len); |
buf | 99 | drivers/net/e2100.c | char *buf, int ring_offset); |
buf | 101 | drivers/net/e2100.c | const unsigned char *buf, const start_page); |
buf | 274 | drivers/net/e2100.c | e21_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 284 | drivers/net/e2100.c | ((int*)buf)[0] = ((int*)shared_mem)[0]; |
buf | 286 | drivers/net/e2100.c | memcpy(buf, shared_mem + (ring_offset & 0xff), count); |
buf | 295 | drivers/net/e2100.c | e21_block_output(struct device *dev, int count, const unsigned char *buf, |
buf | 306 | drivers/net/e2100.c | memcpy((char*)shared_mem, buf, count); |
buf | 293 | drivers/net/eexpress.c | static void hardware_send_packet(struct device *dev, void *buf, short length); |
buf | 487 | drivers/net/eexpress.c | unsigned char *buf = skb->data; |
buf | 491 | drivers/net/eexpress.c | hardware_send_packet(dev, buf, length); |
buf | 836 | drivers/net/eexpress.c | hardware_send_packet(struct device *dev, void *buf, short length) |
buf | 862 | drivers/net/eexpress.c | outsw(ioaddr + DATAPORT, buf, (length + 1) >> 1); |
buf | 103 | drivers/net/hp-plus.c | char *buf, int ring_offset); |
buf | 105 | drivers/net/hp-plus.c | const unsigned char *buf, const start_page); |
buf | 107 | drivers/net/hp-plus.c | char *buf, int ring_offset); |
buf | 109 | drivers/net/hp-plus.c | const unsigned char *buf, const start_page); |
buf | 303 | drivers/net/hp-plus.c | hpp_io_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 308 | drivers/net/hp-plus.c | insw(ioaddr + HP_DATAPORT, buf, count>>1); |
buf | 310 | drivers/net/hp-plus.c | buf[count-1] = inw(ioaddr + HP_DATAPORT); |
buf | 315 | drivers/net/hp-plus.c | hpp_mem_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 324 | drivers/net/hp-plus.c | memcpy(buf, (char*)dev->mem_start, (count + 3) & ~3); |
buf | 334 | drivers/net/hp-plus.c | const unsigned char *buf, const start_page) |
buf | 338 | drivers/net/hp-plus.c | outsl(ioaddr + HP_DATAPORT, buf, (count+3)>>2); |
buf | 344 | drivers/net/hp-plus.c | const unsigned char *buf, const start_page) |
buf | 351 | drivers/net/hp-plus.c | memcpy((char *)dev->mem_start, buf, (count + 3) & ~3); |
buf | 53 | drivers/net/hp.c | char *buf, int ring_offset); |
buf | 55 | drivers/net/hp.c | const unsigned char *buf, const start_page); |
buf | 204 | drivers/net/hp.c | hp_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 218 | drivers/net/hp.c | insw(nic_base - NIC_OFFSET + HP_DATAPORT,buf,count>>1); |
buf | 220 | drivers/net/hp.c | buf[count-1] = inb(nic_base - NIC_OFFSET + HP_DATAPORT), xfer_count++; |
buf | 222 | drivers/net/hp.c | insb(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count); |
buf | 240 | drivers/net/hp.c | const unsigned char *buf, const start_page) |
buf | 275 | drivers/net/hp.c | outsw(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count>>1); |
buf | 277 | drivers/net/hp.c | outsb(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count); |
buf | 47 | drivers/net/ne.c | char *buf, int ring_offset); |
buf | 49 | drivers/net/ne.c | const unsigned char *buf, const int start_page); |
buf | 285 | drivers/net/ne.c | ne_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 305 | drivers/net/ne.c | insw(NE_BASE + NE_DATAPORT,buf,count>>1); |
buf | 307 | drivers/net/ne.c | buf[count-1] = inb(NE_BASE + NE_DATAPORT), xfer_count++; |
buf | 309 | drivers/net/ne.c | insb(NE_BASE + NE_DATAPORT, buf, count); |
buf | 338 | drivers/net/ne.c | const unsigned char *buf, const int start_page) |
buf | 384 | drivers/net/ne.c | outsw(NE_BASE + NE_DATAPORT, buf, count>>1); |
buf | 386 | drivers/net/ne.c | outsb(NE_BASE + NE_DATAPORT, buf, count); |
buf | 57 | drivers/net/ppp.c | #define skb_queue_head_init(buf) *(buf) = NULL |
buf | 797 | drivers/net/ppp.c | buffer [count] = tty->read_q.buf[i]; |
buf | 1152 | drivers/net/ppp.c | unsigned char *buf, int len) |
buf | 1171 | drivers/net/ppp.c | PUTC(*buf++, failure); |
buf | 1214 | drivers/net/ppp.c | ppp_read(struct tty_struct *tty, struct file *file, unsigned char *buf, unsigned int nr) |
buf | 1228 | drivers/net/ppp.c | (unsigned int) buf, |
buf | 1266 | drivers/net/ppp.c | put_fs_byte (PPP_ADDRESS, buf++); |
buf | 1267 | drivers/net/ppp.c | put_fs_byte (PPP_CONTROL, buf++); |
buf | 1271 | drivers/net/ppp.c | put_fs_byte (c, buf++); |
buf | 1315 | drivers/net/ppp.c | ppp_write(struct tty_struct *tty, struct file *file, unsigned char *buf, unsigned int nr) |
buf | 1338 | drivers/net/ppp.c | ppp_print_buffer ("write frame", buf, nr, USER_DS); |
buf | 1366 | drivers/net/ppp.c | ppp_stuff_char(ppp,get_fs_byte(buf++)); |
buf | 2009 | drivers/net/ppp.c | static void ppp_print_buffer(const char *name, char *buf, int count, int seg) |
buf | 2021 | drivers/net/ppp.c | ppp_print_hex (line, buf, 8); |
buf | 2022 | drivers/net/ppp.c | ppp_print_char (&line[8 * 3], buf, 8); |
buf | 2025 | drivers/net/ppp.c | buf += 8; |
buf | 2030 | drivers/net/ppp.c | ppp_print_hex (line, buf, count); |
buf | 2031 | drivers/net/ppp.c | ppp_print_char (&line[8 * 3], buf, count); |
buf | 112 | drivers/net/skeleton.c | extern void hardware_send_packet(short ioaddr, char *buf, int length); |
buf | 290 | drivers/net/skeleton.c | unsigned char *buf = skb->data; |
buf | 292 | 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 | 209 | drivers/net/smc-ultra.c | ultra_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 217 | drivers/net/smc-ultra.c | memcpy(buf, xfer_start, semi_count); |
buf | 219 | drivers/net/smc-ultra.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
buf | 222 | drivers/net/smc-ultra.c | memcpy(buf, xfer_start, count); |
buf | 228 | drivers/net/smc-ultra.c | ultra_block_output(struct device *dev, int count, const unsigned char *buf, |
buf | 234 | 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 | 362 | drivers/net/znet.c | unsigned char *buf = (void *)(skb+1); |
buf | 382 | drivers/net/znet.c | memcpy(zn.tx_cur, buf, semi_cnt); |
buf | 384 | drivers/net/znet.c | memcpy(zn.tx_start, buf + semi_cnt, length - semi_cnt); |
buf | 387 | drivers/net/znet.c | memcpy(zn.tx_cur, buf, skb->len); |
buf | 870 | drivers/scsi/aha1542.c | unchar buf[8]; |
buf | 874 | drivers/scsi/aha1542.c | for (i = 0; i < sizeof(buf); ++i) buf[i] = 0x87; |
buf | 876 | drivers/scsi/aha1542.c | if (!aha1542_command(i, cmd, buf, sizeof(buf))) { |
buf | 878 | drivers/scsi/aha1542.c | i, xscsi2int(buf+4), xscsi2int(buf)); |
buf | 1048 | drivers/scsi/buslogic.c | unsigned char buf[8]; |
buf | 1056 | drivers/scsi/buslogic.c | for (i = 0; i < sizeof buf; i++) |
buf | 1057 | drivers/scsi/buslogic.c | buf[i] = 0x87; |
buf | 1059 | drivers/scsi/buslogic.c | if (!buslogic_command(i, cmd, buf, sizeof buf)) { |
buf | 1062 | drivers/scsi/buslogic.c | i, xscsi2int(buf + 4), xscsi2int(buf)); |
buf | 495 | drivers/scsi/fdomain.c | unsigned char buf[buflen]; |
buf | 669 | drivers/scsi/fdomain.c | SCinit.request_buffer = SCinit.buffer = buf; |
buf | 670 | drivers/scsi/fdomain.c | SCinit.request_bufflen = SCinit.bufflen = sizeof(buf)-1; |
buf | 686 | drivers/scsi/fdomain.c | for (j = 8; j < (buf[4] < 32 ? buf[4] : 32); j++) |
buf | 687 | drivers/scsi/fdomain.c | printk( "%c", buf[j] >= 20 ? buf[j] : ' ' ); |
buf | 693 | drivers/scsi/fdomain.c | blocks = (buf[0] << 24) | (buf[1] << 16) |
buf | 694 | drivers/scsi/fdomain.c | | (buf[2] << 8) | buf[3]; |
buf | 695 | drivers/scsi/fdomain.c | size = (buf[4] << 24) | (buf[5] << 16) | (buf[6] << 8) | buf[7]; |
buf | 1460 | drivers/scsi/fdomain.c | unsigned char buf[512 + sizeof( int ) * 2]; |
buf | 1461 | drivers/scsi/fdomain.c | int *sizes = (int *)buf; |
buf | 1523 | drivers/scsi/fdomain.c | (void *)buf ); |
buf | 142 | drivers/scsi/scsi_ioctl.c | char * buf; |
buf | 164 | drivers/scsi/scsi_ioctl.c | buf = (char *) scsi_malloc(buf_needed); |
buf | 165 | drivers/scsi/scsi_ioctl.c | if (!buf) return -ENOMEM; |
buf | 167 | drivers/scsi/scsi_ioctl.c | buf = NULL; |
buf | 170 | drivers/scsi/scsi_ioctl.c | memcpy_fromfs ((void *) buf, (void *) (cmd_in + cmdlen), inlen > MAX_BUF ? MAX_BUF : inlen); |
buf | 178 | 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, buf_needed); |
buf | 220 | drivers/scsi/scsi_ioctl.c | printk("%02x ", buf[i]); |
buf | 1600 | drivers/scsi/seagate.c | unsigned char buf[256 + sizeof(int) * 2], cmd[6], *data, *page; |
buf | 1612 | drivers/scsi/seagate.c | sizes = (int *) buf; |
buf | 1632 | drivers/scsi/seagate.c | if (!(result = kernel_scsi_ioctl (disk->device, SCSI_IOCTL_SEND_COMMAND, (void *) buf))) { |
buf | 1645 | drivers/scsi/seagate.c | if (!(result = kernel_scsi_ioctl (disk->device, 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 | 177 | drivers/scsi/sg.c | memcpy_tofs(buf,device->buff,count-sizeof(struct sg_header)); |
buf | 210 | drivers/scsi/sg.c | static int sg_write(struct inode *inode,struct file *filp,char *buf,int count) |
buf | 218 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_READ,buf,count))) |
buf | 236 | drivers/scsi/sg.c | memcpy_fromfs(&device->header,buf,sizeof(struct sg_header)); |
buf | 239 | drivers/scsi/sg.c | buf+=sizeof(struct sg_header); |
buf | 268 | drivers/scsi/sg.c | size=COMMAND_SIZE(get_fs_byte(buf)); |
buf | 269 | drivers/scsi/sg.c | memcpy_fromfs(cmnd,buf,size); |
buf | 270 | drivers/scsi/sg.c | buf+=size; |
buf | 271 | drivers/scsi/sg.c | memcpy_fromfs(device->buff,buf,device->header.pack_len-size-sizeof(struct sg_header)); |
buf | 653 | drivers/scsi/st.c | st_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 731 | drivers/scsi/st.c | b_point = buf; |
buf | 883 | drivers/scsi/st.c | st_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 1081 | drivers/scsi/st.c | memcpy_tofs(buf, (STp->buffer)->b_data + |
buf | 1084 | drivers/scsi/st.c | buf += transfer; |
buf | 622 | drivers/scsi/ultrastor.c | static char buf[64]; |
buf | 625 | drivers/scsi/ultrastor.c | sprintf(buf, "UltraStor 24F SCSI @ Slot %u IRQ%u\n", |
buf | 628 | drivers/scsi/ultrastor.c | sprintf(buf, "UltraStor 34F SCSI @ Port %03X BIOS %05X IRQ%u\n", |
buf | 632 | drivers/scsi/ultrastor.c | sprintf(buf, "UltraStor 14F SCSI @ Port %03X BIOS %05X IRQ%u DMA%u\n", |
buf | 635 | drivers/scsi/ultrastor.c | return buf; |
buf | 961 | drivers/scsi/wd7000.c | static unchar buf[256]; |
buf | 965 | drivers/scsi/wd7000.c | any2scsi(icb.len, sizeof(buf)); |
buf | 966 | drivers/scsi/wd7000.c | any2scsi(icb.ptr, (int) &buf); |
buf | 90 | drivers/sound/ad1848.c | static void ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
buf | 91 | drivers/sound/ad1848.c | static void ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
buf | 456 | drivers/sound/ad1848.c | ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
buf | 491 | drivers/sound/ad1848.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
buf | 518 | drivers/sound/ad1848.c | ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
buf | 554 | drivers/sound/ad1848.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
buf | 166 | drivers/sound/audio.c | audio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 221 | drivers/sound/audio.c | COPY_FROM_USER (&wr_dma_buf[dev][wr_buff_ptr[dev]], buf, p, l); |
buf | 225 | drivers/sound/audio.c | wr_dma_buf[dev], wr_buff_ptr[dev], buf, p, l); |
buf | 263 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 309 | drivers/sound/audio.c | COPY_TO_USER (buf, p, dmabuf, l); |
buf | 382 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 388 | drivers/sound/audio.c | audio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 99 | drivers/sound/dev_table.h | char *buf[MAX_SUB_BUFFERS]; |
buf | 120 | drivers/sound/dev_table.h | void (*output_block) (int dev, unsigned long buf, |
buf | 122 | drivers/sound/dev_table.h | void (*start_input) (int dev, unsigned long buf, |
buf | 132 | drivers/sound/dmabuf.c | dmap->buf[n] = dmap->raw_buf[i] + p; |
buf | 298 | drivers/sound/dmabuf.c | DMAbuf_getrdbuffer (int dev, char **buf, int *len) |
buf | 362 | drivers/sound/dmabuf.c | *buf = &dmap->buf[dmap->qhead][dmap->counts[dmap->qhead]]; |
buf | 521 | drivers/sound/dmabuf.c | DMAbuf_getwrbuffer (int dev, char **buf, int *size) |
buf | 584 | drivers/sound/dmabuf.c | *buf = dmap->buf[dmap->qtail]; |
buf | 891 | drivers/sound/dmabuf.c | DMAbuf_getwrbuffer (int dev, char **buf, int *size) |
buf | 897 | drivers/sound/dmabuf.c | DMAbuf_getrdbuffer (int dev, char **buf, int *len) |
buf | 2157 | drivers/sound/gus_wave.c | gus_transfer_output_block (int dev, unsigned long buf, |
buf | 2192 | drivers/sound/gus_wave.c | DMAbuf_start_dma (dev, buf + (chn * count), count, DMA_MODE_WRITE); |
buf | 2244 | drivers/sound/gus_wave.c | gus_sampling_output_block (int dev, unsigned long buf, int total_count, |
buf | 2247 | drivers/sound/gus_wave.c | pcm_current_buf = buf; |
buf | 2251 | drivers/sound/gus_wave.c | gus_transfer_output_block (dev, buf, total_count, intrflag, 0); |
buf | 2255 | drivers/sound/gus_wave.c | gus_sampling_start_input (int dev, unsigned long buf, int count, |
buf | 2263 | drivers/sound/gus_wave.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
buf | 279 | drivers/sound/midibuf.c | MIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 317 | drivers/sound/midibuf.c | COPY_FROM_USER (&tmp_data, buf, c, 1); |
buf | 330 | drivers/sound/midibuf.c | MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 364 | drivers/sound/midibuf.c | COPY_TO_USER (buf, c, &tmp_data, 1); |
buf | 269 | drivers/sound/pas2_pcm.c | pas_pcm_output_block (int dev, unsigned long buf, int count, |
buf | 274 | drivers/sound/pas2_pcm.c | TRACE (printk ("pas2_pcm.c: static void pas_pcm_output_block(char *buf = %P, int count = %X)\n", buf, count)); |
buf | 293 | drivers/sound/pas2_pcm.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
buf | 317 | drivers/sound/pas2_pcm.c | pas_pcm_start_input (int dev, unsigned long buf, int count, |
buf | 323 | drivers/sound/pas2_pcm.c | TRACE (printk ("pas2_pcm.c: static void pas_pcm_start_input(char *buf = %P, int count = %X)\n", buf, count)); |
buf | 339 | drivers/sound/pas2_pcm.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
buf | 86 | drivers/sound/patmgr.c | pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 109 | drivers/sound/patmgr.c | COPY_TO_USER (buf, 0, (char *) mbox[dev], count); |
buf | 124 | drivers/sound/patmgr.c | pmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 134 | drivers/sound/patmgr.c | COPY_FROM_USER (mbox[dev], buf, 0, 4); |
buf | 145 | drivers/sound/patmgr.c | buf, 4, count, 1); |
buf | 163 | drivers/sound/patmgr.c | COPY_FROM_USER (&((char *) mbox[dev])[4], buf, 4, count - 4); |
buf | 810 | drivers/sound/pss.c | pss_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 826 | drivers/sound/pss.c | pss_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 835 | drivers/sound/pss.c | COPY_FROM_USER (&code_buffer[code_length], buf, 0, count); |
buf | 71 | drivers/sound/sb16_dsp.c | static void sb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
buf | 72 | drivers/sound/sb16_dsp.c | static void sb16_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
buf | 274 | drivers/sound/sb16_dsp.c | sb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
buf | 284 | drivers/sound/sb16_dsp.c | printk ("output_block: %x %d %d\n", buf, count, intrflag); |
buf | 313 | drivers/sound/sb16_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
buf | 331 | drivers/sound/sb16_dsp.c | sb16_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
buf | 341 | drivers/sound/sb16_dsp.c | printk ("start_input: %x %d %d\n", buf, count, intrflag); |
buf | 370 | drivers/sound/sb16_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
buf | 394 | drivers/sound/sb_dsp.c | sb_dsp_output_block (int dev, unsigned long buf, int count, |
buf | 403 | drivers/sound/sb_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
buf | 444 | drivers/sound/sb_dsp.c | sb_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, |
buf | 457 | drivers/sound/sb_dsp.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_READ); |
buf | 98 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 111 | drivers/sound/sequencer.c | return pmgr_read (dev - 1, file, buf, count); |
buf | 128 | drivers/sound/sequencer.c | COPY_TO_USER (buf, p, &iqueue[iqhead * IEV_SZ], ev_len); |
buf | 231 | drivers/sound/sequencer.c | sequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 248 | drivers/sound/sequencer.c | return pmgr_write (dev - 1, file, buf, count); |
buf | 254 | drivers/sound/sequencer.c | COPY_FROM_USER (event, buf, p, 4); |
buf | 268 | drivers/sound/sequencer.c | err = synth_devs[dev]->load_patch (dev, *(short *) &event[0], buf, p + 4, c, 0); |
buf | 292 | drivers/sound/sequencer.c | COPY_FROM_USER (&event[4], buf, p + 4, 4); |
buf | 1813 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 1819 | drivers/sound/sequencer.c | sequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 7 | drivers/sound/sound_calls.h | int DMAbuf_getwrbuffer(int dev, char **buf, int *size); |
buf | 8 | drivers/sound/sound_calls.h | int DMAbuf_getrdbuffer(int dev, char **buf, int *len); |
buf | 24 | drivers/sound/sound_calls.h | int audio_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 25 | drivers/sound/sound_calls.h | int audio_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 37 | drivers/sound/sound_calls.h | int sequencer_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 38 | drivers/sound/sound_calls.h | int sequencer_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 59 | drivers/sound/sound_calls.h | int MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 60 | drivers/sound/sound_calls.h | int MIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 66 | drivers/sound/sound_calls.h | void MIDIbuf_bytes_received(int dev, unsigned char *buf, int count); |
buf | 80 | drivers/sound/sound_calls.h | int CMIDI_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 81 | drivers/sound/sound_calls.h | int CMIDI_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 109 | drivers/sound/sound_calls.h | int sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 110 | drivers/sound/sound_calls.h | int sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 212 | drivers/sound/sound_calls.h | int pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count); |
buf | 213 | drivers/sound/sound_calls.h | int pmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count); |
buf | 236 | drivers/sound/sound_calls.h | int pss_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 237 | drivers/sound/sound_calls.h | int pss_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
buf | 80 | drivers/sound/sound_switch.c | char buf[11]; |
buf | 86 | drivers/sound/sound_switch.c | buf[10] = 0; |
buf | 93 | drivers/sound/sound_switch.c | buf[9 - l] = hx[v]; |
buf | 100 | drivers/sound/sound_switch.c | memcpy (&status_buf[status_len], &buf[10 - l], l); |
buf | 256 | drivers/sound/sound_switch.c | read_status (snd_rw_buf * buf, int count) |
buf | 271 | drivers/sound/sound_switch.c | COPY_TO_USER (buf, 0, &status_buf[status_ptr], l); |
buf | 278 | drivers/sound/sound_switch.c | sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 285 | drivers/sound/sound_switch.c | return read_status (buf, count); |
buf | 291 | drivers/sound/sound_switch.c | return audio_read (dev, file, buf, count); |
buf | 296 | drivers/sound/sound_switch.c | return sequencer_read (dev, file, buf, count); |
buf | 301 | drivers/sound/sound_switch.c | return MIDIbuf_read (dev, file, buf, count); |
buf | 306 | drivers/sound/sound_switch.c | return pss_read (dev, file, buf, count); |
buf | 317 | drivers/sound/sound_switch.c | sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 327 | drivers/sound/sound_switch.c | return sequencer_write (dev, file, buf, count); |
buf | 333 | drivers/sound/sound_switch.c | return audio_write (dev, file, buf, count); |
buf | 338 | drivers/sound/sound_switch.c | return MIDIbuf_write (dev, file, buf, count); |
buf | 343 | drivers/sound/sound_switch.c | return pss_write (dev, file, buf, count); |
buf | 54 | drivers/sound/soundcard.c | sound_read (struct inode *inode, struct file *file, char *buf, int count) |
buf | 61 | drivers/sound/soundcard.c | return sound_read_sw (dev, &files[dev], buf, count); |
buf | 65 | drivers/sound/soundcard.c | sound_write (struct inode *inode, struct file *file, char *buf, int count) |
buf | 72 | drivers/sound/soundcard.c | return sound_write_sw (dev, &files[dev], buf, count); |
buf | 19 | fs/block_dev.c | int block_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 113 | fs/block_dev.c | memcpy_fromfs(p,buf,chars); |
buf | 115 | fs/block_dev.c | buf += chars; |
buf | 124 | fs/block_dev.c | int block_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 248 | fs/block_dev.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 250 | fs/block_dev.c | buf += chars; |
buf | 253 | fs/block_dev.c | put_fs_byte(0,buf++); |
buf | 725 | fs/buffer.c | void set_writetime(struct buffer_head * buf, int flag) |
buf | 729 | fs/buffer.c | if (buf->b_dirt){ |
buf | 733 | fs/buffer.c | if(!buf->b_flushtime || buf->b_flushtime > newtime) |
buf | 734 | fs/buffer.c | buf->b_flushtime = newtime; |
buf | 736 | fs/buffer.c | buf->b_flushtime = 0; |
buf | 744 | fs/buffer.c | void refile_buffer(struct buffer_head * buf){ |
buf | 747 | fs/buffer.c | if(buf->b_dev == 0xffff) panic("Attempt to refile free buffer\n"); |
buf | 748 | fs/buffer.c | if(mem_map[MAP_NR((unsigned long) buf->b_data)] != 1) i = 1; |
buf | 749 | fs/buffer.c | if(buf->b_lock) i |= 2; |
buf | 750 | fs/buffer.c | if(buf->b_dirt) i |= 4; |
buf | 752 | fs/buffer.c | if(buf->b_list == BUF_SHARED && dispose == BUF_CLEAN) |
buf | 755 | fs/buffer.c | if(dispose == BUF_CLEAN) buf->b_lru_time = jiffies; |
buf | 756 | fs/buffer.c | if(dispose != buf->b_list) { |
buf | 758 | fs/buffer.c | buf->b_lru_time = jiffies; |
buf | 760 | fs/buffer.c | (buf->b_flushtime - buf->b_lru_time) <= bdf_prm.b_un.age_super) |
buf | 762 | fs/buffer.c | remove_from_queues(buf); |
buf | 763 | fs/buffer.c | buf->b_list = dispose; |
buf | 764 | fs/buffer.c | insert_into_queues(buf); |
buf | 772 | fs/buffer.c | void brelse(struct buffer_head * buf) |
buf | 774 | fs/buffer.c | if (!buf) |
buf | 776 | fs/buffer.c | wait_on_buffer(buf); |
buf | 779 | fs/buffer.c | set_writetime(buf, 0); |
buf | 780 | fs/buffer.c | refile_buffer(buf); |
buf | 782 | fs/buffer.c | if (buf->b_count) { |
buf | 783 | fs/buffer.c | if (--buf->b_count) |
buf | 642 | fs/exec.c | memset(bprm.buf,0,sizeof(bprm.buf)); |
buf | 645 | fs/exec.c | retval = read_exec(bprm.inode,0,bprm.buf,128); |
buf | 649 | fs/exec.c | if ((bprm.buf[0] == '#') && (bprm.buf[1] == '!') && (!sh_bang)) { |
buf | 658 | fs/exec.c | bprm.buf[127] = '\0'; |
buf | 659 | fs/exec.c | if ((cp = strchr(bprm.buf, '\n')) == NULL) |
buf | 660 | fs/exec.c | cp = bprm.buf+127; |
buf | 662 | fs/exec.c | while (cp > bprm.buf) { |
buf | 669 | fs/exec.c | for (cp = bprm.buf+2; (*cp == ' ') || (*cp == '\t'); cp++); |
buf | 793 | 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_fs_byte(0,buf++); |
buf | 197 | fs/ext/file.c | static int ext_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 248 | fs/ext/file.c | memcpy_fromfs(p,buf,c); |
buf | 249 | fs/ext/file.c | buf += c; |
buf | 147 | fs/ext/inode.c | void ext_statfs (struct super_block *sb, struct statfs *buf) |
buf | 151 | fs/ext/inode.c | put_fs_long(EXT_SUPER_MAGIC, &buf->f_type); |
buf | 152 | fs/ext/inode.c | put_fs_long(1024, &buf->f_bsize); |
buf | 154 | fs/ext/inode.c | &buf->f_blocks); |
buf | 156 | fs/ext/inode.c | put_fs_long(tmp, &buf->f_bfree); |
buf | 157 | fs/ext/inode.c | put_fs_long(tmp, &buf->f_bavail); |
buf | 158 | fs/ext/inode.c | put_fs_long(sb->u.ext_sb.s_ninodes, &buf->f_files); |
buf | 159 | fs/ext/inode.c | put_fs_long(ext_count_free_inodes(sb), &buf->f_ffree); |
buf | 160 | fs/ext/inode.c | put_fs_long(EXT_NAME_LEN, &buf->f_namelen); |
buf | 26 | fs/ext2/dir.c | char * buf, int count) |
buf | 76 | fs/ext2/file.c | char * buf, int count) |
buf | 194 | fs/ext2/file.c | memcpy_tofs (buf, offset + (*bhe)->b_data, |
buf | 197 | fs/ext2/file.c | buf += chars; |
buf | 200 | fs/ext2/file.c | put_fs_byte (0, buf++); |
buf | 227 | fs/ext2/file.c | char * buf, int count) |
buf | 281 | fs/ext2/file.c | memcpy_fromfs (p, buf, c); |
buf | 282 | fs/ext2/file.c | buf += c; |
buf | 33 | fs/ext2/super.c | char buf[1024]; |
buf | 43 | 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 | 51 | fs/ext2/super.c | MAJOR(sb->s_dev), MINOR(sb->s_dev), function, buf); |
buf | 63 | fs/ext2/super.c | char buf[1024]; |
buf | 73 | fs/ext2/super.c | vsprintf (buf, fmt, args); |
buf | 76 | fs/ext2/super.c | MAJOR(sb->s_dev), MINOR(sb->s_dev), function, buf); |
buf | 82 | fs/ext2/super.c | char buf[1024]; |
buf | 86 | fs/ext2/super.c | vsprintf (buf, fmt, args); |
buf | 89 | fs/ext2/super.c | MAJOR(sb->s_dev), MINOR(sb->s_dev), function, buf); |
buf | 659 | fs/ext2/super.c | void ext2_statfs (struct super_block * sb, struct statfs * buf) |
buf | 663 | fs/ext2/super.c | put_fs_long (EXT2_SUPER_MAGIC, &buf->f_type); |
buf | 664 | fs/ext2/super.c | put_fs_long (sb->s_blocksize, &buf->f_bsize); |
buf | 665 | fs/ext2/super.c | put_fs_long (sb->u.ext2_sb.s_es->s_blocks_count, &buf->f_blocks); |
buf | 667 | fs/ext2/super.c | put_fs_long (tmp, &buf->f_bfree); |
buf | 670 | fs/ext2/super.c | &buf->f_bavail); |
buf | 672 | fs/ext2/super.c | put_fs_long (0, &buf->f_bavail); |
buf | 673 | fs/ext2/super.c | put_fs_long (sb->u.ext2_sb.s_es->s_inodes_count, &buf->f_files); |
buf | 674 | fs/ext2/super.c | put_fs_long (ext2_count_free_inodes (sb), &buf->f_ffree); |
buf | 675 | fs/ext2/super.c | put_fs_long (EXT2_NAME_LEN, &buf->f_namelen); |
buf | 184 | fs/hpfs/hpfs_fs.c | char *buf, int count); |
buf | 726 | fs/hpfs/hpfs_fs.c | static void hpfs_statfs(struct super_block *s, struct statfs *buf) |
buf | 742 | fs/hpfs/hpfs_fs.c | put_fs_long(s->s_magic, &buf->f_type); |
buf | 743 | fs/hpfs/hpfs_fs.c | put_fs_long(512, &buf->f_bsize); |
buf | 744 | fs/hpfs/hpfs_fs.c | put_fs_long(s->s_hpfs_fs_size, &buf->f_blocks); |
buf | 745 | fs/hpfs/hpfs_fs.c | put_fs_long(s->s_hpfs_n_free, &buf->f_bfree); |
buf | 746 | fs/hpfs/hpfs_fs.c | put_fs_long(s->s_hpfs_n_free, &buf->f_bavail); |
buf | 747 | fs/hpfs/hpfs_fs.c | put_fs_long(s->s_hpfs_dirband_size, &buf->f_files); |
buf | 748 | fs/hpfs/hpfs_fs.c | put_fs_long(s->s_hpfs_n_free_dnodes, &buf->f_ffree); |
buf | 749 | fs/hpfs/hpfs_fs.c | put_fs_long(254, &buf->f_namelen); |
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 | 1562 | 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 | 215 | fs/isofs/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 217 | fs/isofs/file.c | buf += chars; |
buf | 220 | fs/isofs/file.c | put_fs_byte(0,buf++); |
buf | 303 | fs/isofs/inode.c | void isofs_statfs (struct super_block *sb, struct statfs *buf) |
buf | 305 | fs/isofs/inode.c | put_fs_long(ISOFS_SUPER_MAGIC, &buf->f_type); |
buf | 306 | fs/isofs/inode.c | put_fs_long(1 << ISOFS_BLOCK_BITS, &buf->f_bsize); |
buf | 307 | fs/isofs/inode.c | put_fs_long(sb->u.isofs_sb.s_nzones, &buf->f_blocks); |
buf | 308 | fs/isofs/inode.c | put_fs_long(0, &buf->f_bfree); |
buf | 309 | fs/isofs/inode.c | put_fs_long(0, &buf->f_bavail); |
buf | 310 | fs/isofs/inode.c | put_fs_long(sb->u.isofs_sb.s_ninodes, &buf->f_files); |
buf | 311 | fs/isofs/inode.c | put_fs_long(0, &buf->f_ffree); |
buf | 312 | 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 | 162 | fs/minix/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 164 | fs/minix/file.c | buf += chars; |
buf | 167 | fs/minix/file.c | put_fs_byte(0,buf++); |
buf | 189 | fs/minix/file.c | static int minix_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 233 | fs/minix/file.c | memcpy_fromfs(p,buf,c); |
buf | 234 | fs/minix/file.c | buf += c; |
buf | 212 | fs/minix/inode.c | void minix_statfs(struct super_block *sb, struct statfs *buf) |
buf | 216 | fs/minix/inode.c | put_fs_long(MINIX_SUPER_MAGIC, &buf->f_type); |
buf | 217 | fs/minix/inode.c | put_fs_long(1024, &buf->f_bsize); |
buf | 220 | fs/minix/inode.c | put_fs_long(tmp, &buf->f_blocks); |
buf | 222 | fs/minix/inode.c | put_fs_long(tmp, &buf->f_bfree); |
buf | 223 | fs/minix/inode.c | put_fs_long(tmp, &buf->f_bavail); |
buf | 224 | fs/minix/inode.c | put_fs_long(sb->u.minix_sb.s_ninodes, &buf->f_files); |
buf | 225 | fs/minix/inode.c | put_fs_long(minix_count_free_inodes(sb), &buf->f_ffree); |
buf | 226 | 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 | 24 | fs/pipe.c | static int pipe_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 59 | fs/pipe.c | memcpy_tofs(buf, pipebuf, chars ); |
buf | 60 | fs/pipe.c | buf += chars; |
buf | 71 | fs/pipe.c | static int pipe_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 108 | fs/pipe.c | memcpy_fromfs(pipebuf, buf, chars ); |
buf | 109 | fs/pipe.c | buf += chars; |
buf | 128 | fs/pipe.c | static int bad_pipe_rw(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 202 | fs/pipe.c | static int connect_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 215 | fs/pipe.c | return pipe_read(inode,filp,buf,count); |
buf | 39 | fs/proc/array.c | static int read_core(struct inode * inode, struct file * file,char * buf, int count) |
buf | 64 | fs/proc/array.c | memcpy_tofs(buf,(void *) pnt, count1); |
buf | 65 | fs/proc/array.c | buf += count1; |
buf | 72 | fs/proc/array.c | put_fs_byte(0,buf); |
buf | 73 | fs/proc/array.c | buf++; |
buf | 78 | fs/proc/array.c | memcpy_tofs(buf,(void *) (p - PAGE_SIZE),count); |
buf | 360 | fs/proc/array.c | unsigned long ptbl, *buf, *pte, *pagedir, map_nr; |
buf | 372 | fs/proc/array.c | buf = (unsigned long *)(ptbl & PAGE_MASK); |
buf | 373 | fs/proc/array.c | for (pte = buf; pte < (buf + PTRS_PER_PAGE); ++pte) { |
buf | 402 | fs/proc/array.c | static int get_maps(int pid, char *buf) |
buf | 442 | fs/proc/array.c | sprintf(buf+sz, "...\n"); |
buf | 454 | fs/proc/array.c | sz += sprintf(buf+sz, "%08lx-%08lx %s %08lx %02x:%02x %lu\n", |
buf | 471 | fs/proc/array.c | static int array_read(struct inode * inode, struct file * file,char * buf, int count) |
buf | 517 | fs/proc/array.c | return read_core(inode, file, buf, count); |
buf | 547 | 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 | 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 | 112 | fs/proc/link.c | char buf[64]; |
buf | 126 | fs/proc/link.c | i = sprintf(buf,"[%04x]:%u", dev, ino); |
buf | 131 | 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 | 36 | fs/proc/net.c | char * buf, int count); |
buf | 196 | fs/proc/net.c | char * buf, int count) |
buf | 295 | fs/proc/net.c | memcpy_tofs(buf+copied, start, length); |
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 | 185 | fs/stat.c | asmlinkage int sys_readlink(const char * path, char * buf, int bufsiz) |
buf | 192 | fs/stat.c | error = verify_area(VERIFY_WRITE,buf,bufsiz); |
buf | 202 | 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 | 23 | fs/sysv/dir.c | static int sysv_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 109 | fs/sysv/file.c | static int sysv_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 215 | fs/sysv/file.c | memcpy_tofs(buf,offset+bhe->bh_data,chars); |
buf | 217 | fs/sysv/file.c | buf += chars; |
buf | 220 | fs/sysv/file.c | put_fs_byte(0,buf++); |
buf | 242 | fs/sysv/file.c | static int sysv_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 301 | fs/sysv/file.c | memcpy_fromfs(p,buf,c); |
buf | 302 | fs/sysv/file.c | buf += c; |
buf | 367 | fs/sysv/inode.c | void sysv_statfs(struct super_block *sb, struct statfs *buf) |
buf | 371 | fs/sysv/inode.c | put_fs_long(sb->s_magic, &buf->f_type); /* type of filesystem */ |
buf | 372 | fs/sysv/inode.c | put_fs_long(sb->sv_block_size, &buf->f_bsize); /* block size */ |
buf | 373 | fs/sysv/inode.c | put_fs_long(sb->sv_ndatazones, &buf->f_blocks); /* total data blocks in file system */ |
buf | 375 | fs/sysv/inode.c | put_fs_long(tmp, &buf->f_bfree); /* free blocks in fs */ |
buf | 376 | fs/sysv/inode.c | put_fs_long(tmp, &buf->f_bavail); /* free blocks available to non-superuser */ |
buf | 377 | fs/sysv/inode.c | put_fs_long(sb->sv_ninodes, &buf->f_files); /* total file nodes in file system */ |
buf | 378 | fs/sysv/inode.c | put_fs_long(sysv_count_free_inodes(sb), &buf->f_ffree); /* free file nodes in fs */ |
buf | 379 | fs/sysv/inode.c | put_fs_long(SYSV_NAMELEN, &buf->f_namelen); |
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 | 160 | fs/xiafs/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 162 | fs/xiafs/file.c | buf += chars; |
buf | 165 | fs/xiafs/file.c | put_fs_byte(0,buf++); |
buf | 190 | fs/xiafs/file.c | xiafs_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 241 | fs/xiafs/file.c | memcpy_fromfs(cp,buf,c); |
buf | 242 | fs/xiafs/file.c | buf += c; |
buf | 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 | 114 | ibcs/binfmt_coff.c | COFF_FILHDR *coff_hdr = (COFF_FILHDR *) bprm->buf; /* COFF Header */ |
buf | 768 | ibcs/binfmt_coff.c | bprm->buf, /* Buffer for read */ |
buf | 769 | ibcs/binfmt_coff.c | sizeof (bprm->buf)); /* Size of the buffer */ |
buf | 287 | ibcs/binfmt_elf.c | elf_ex = *((struct elfhdr *) bprm->buf); /* exec-header */ |
buf | 356 | ibcs/binfmt_elf.c | retval = read_exec(interpreter_inode,0,bprm->buf,128); |
buf | 359 | ibcs/binfmt_elf.c | interp_ex = *((struct exec *) bprm->buf); /* exec-header */ |
buf | 360 | ibcs/binfmt_elf.c | interp_elf_ex = *((struct elfhdr *) bprm->buf); /* exec-header */ |
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 | 382 | include/linux/fs.h | extern void refile_buffer(struct buffer_head * buf); |
buf | 383 | include/linux/fs.h | extern void set_writetime(struct buffer_head * buf, int flag); |
buf | 444 | include/linux/fs.h | extern void brelse(struct buffer_head * buf); |
buf | 45 | include/linux/kernel.h | extern int sprintf(char * buf, const char * fmt, ...); |
buf | 46 | include/linux/kernel.h | extern int vsprintf(char *buf, const char *, va_list); |
buf | 71 | include/linux/mcd.h | #define READ_DATA(port, buf, nr) \ |
buf | 72 | include/linux/mcd.h | insb(port, buf, nr) |
buf | 166 | include/linux/mm.h | extern int vread(char *buf, char *addr, int count); |
buf | 174 | include/linux/mm.h | extern void rw_swap_page(int rw, unsigned long nr, char * buf); |
buf | 187 | include/linux/mm.h | #define read_swap_page(nr,buf) \ |
buf | 188 | include/linux/mm.h | rw_swap_page(READ,(nr),(buf)) |
buf | 189 | include/linux/mm.h | #define write_swap_page(nr,buf) \ |
buf | 190 | 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 | 429 | include/linux/sbpcd.h | #define READ_DATA(port, buf, nr) insb(port, buf, nr) |
buf | 48 | include/linux/sem.h | struct semid_ds *buf; /* buffer for IPC_STAT & IPC_SET */ |
buf | 103 | include/linux/skbuff.h | extern void skb_queue_head(struct sk_buff_head *list,struct sk_buff *buf); |
buf | 104 | include/linux/skbuff.h | extern void skb_queue_tail(struct sk_buff_head *list,struct sk_buff *buf); |
buf | 108 | include/linux/skbuff.h | extern void skb_unlink(struct sk_buff *buf); |
buf | 277 | 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 | 53 | init/main.c | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
buf | 319 | ipc/msg.c | int sys_msgctl (int msqid, int cmd, struct msqid_ds *buf) |
buf | 330 | ipc/msg.c | if (!buf) |
buf | 347 | ipc/msg.c | err = verify_area (VERIFY_WRITE, buf, sizeof (struct msginfo)); |
buf | 350 | ipc/msg.c | memcpy_tofs (buf, &msginfo, sizeof(struct msginfo)); |
buf | 354 | ipc/msg.c | if (!buf) |
buf | 356 | ipc/msg.c | err = verify_area (VERIFY_WRITE, buf, sizeof (*msq)); |
buf | 367 | ipc/msg.c | memcpy_tofs (buf, msq, sizeof(*msq)); |
buf | 370 | ipc/msg.c | if (!buf) |
buf | 372 | ipc/msg.c | memcpy_fromfs (&tbuf, buf, sizeof (*buf)); |
buf | 375 | ipc/msg.c | if (!buf) |
buf | 377 | ipc/msg.c | err = verify_area (VERIFY_WRITE, buf, sizeof(*msq)); |
buf | 395 | 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 | 269 | ipc/sem.c | if ((i = verify_area (VERIFY_WRITE, buf, sizeof(*sma)))) |
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 | 196 | ipc/shm.c | int sys_shmctl (int shmid, int cmd, struct shmid_ds *buf) |
buf | 205 | ipc/shm.c | if (!buf) |
buf | 207 | ipc/shm.c | err = verify_area (VERIFY_READ, buf, sizeof (*buf)); |
buf | 210 | ipc/shm.c | memcpy_fromfs (&tbuf, buf, sizeof (*buf)); |
buf | 217 | ipc/shm.c | if (!buf) |
buf | 224 | ipc/shm.c | err = verify_area (VERIFY_WRITE, buf, sizeof (struct shminfo)); |
buf | 227 | ipc/shm.c | memcpy_tofs (buf, &shminfo, sizeof(struct shminfo)); |
buf | 233 | ipc/shm.c | if (!buf) |
buf | 235 | ipc/shm.c | err = verify_area (VERIFY_WRITE, buf, sizeof (shm_info)); |
buf | 244 | ipc/shm.c | memcpy_tofs (buf, &shm_info, sizeof(shm_info)); |
buf | 248 | ipc/shm.c | if (!buf) |
buf | 250 | ipc/shm.c | err = verify_area (VERIFY_WRITE, buf, sizeof (*shp)); |
buf | 261 | ipc/shm.c | memcpy_tofs (buf, shp, sizeof(*shp)); |
buf | 293 | ipc/shm.c | if (!buf) |
buf | 295 | ipc/shm.c | err = verify_area (VERIFY_WRITE, buf, sizeof (*shp)); |
buf | 298 | 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 | 36 | kernel/module.c | static int get_mod_name( char *user_name, char *buf); |
buf | 356 | kernel/module.c | get_mod_name(char *user_name, char *buf) |
buf | 361 | kernel/module.c | for (i = 0 ; (buf[i] = get_fs_byte(user_name + i)) != '\0' ; ) { |
buf | 450 | kernel/module.c | int get_module_list(char *buf) |
buf | 459 | kernel/module.c | p = buf; |
buf | 462 | kernel/module.c | if (p - buf > 4096 - 100) |
buf | 504 | kernel/module.c | return p - buf; |
buf | 511 | kernel/module.c | int get_ksyms_list(char *buf) |
buf | 516 | kernel/module.c | char *p = buf; |
buf | 525 | kernel/module.c | if (p - buf > 4096 - 100) { |
buf | 528 | kernel/module.c | return p - buf; /* avoid overflowing buffer */ |
buf | 544 | kernel/module.c | return p - 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 | 92 | kernel/printk.c | put_fs_byte(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_fs_byte(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 | 207 | kernel/printk.c | char buf[16]; |
buf | 214 | kernel/printk.c | buf[j++] = log_buf[p]; |
buf | 216 | kernel/printk.c | if (buf[j-1] != '\n' && i < log_size - 1 && j < sizeof(buf)-1) |
buf | 218 | kernel/printk.c | buf[j] = 0; |
buf | 219 | kernel/printk.c | q = buf; |
buf | 221 | kernel/printk.c | msg_level = buf[1] - '0'; |
buf | 222 | kernel/printk.c | q = buf + 3; |
buf | 226 | 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 | 160 | mm/swap.c | void rw_swap_page(int rw, unsigned long entry, char * buf) |
buf | 187 | mm/swap.c | ll_rw_page(rw,p->swap_device,offset,buf); |
buf | 200 | mm/swap.c | ll_rw_swap_file(rw,p->swap_file->i_dev, zones, i,buf); |
buf | 178 | mm/vmalloc.c | int vread(char *buf, char *addr, int count) |
buf | 181 | mm/vmalloc.c | char *vaddr, *buf_start = buf; |
buf | 189 | mm/vmalloc.c | put_fs_byte('\0', buf++), addr++, count--; |
buf | 197 | mm/vmalloc.c | put_fs_byte(*addr++, buf++), count--; |
buf | 201 | mm/vmalloc.c | return buf - buf_start; |
buf | 54 | net/socket.c | static int sock_read(struct inode *inode, struct file *file, char *buf, |
buf | 56 | net/socket.c | static int sock_write(struct inode *inode, struct file *file, char *buf, |
buf | 255 | net/unix/sock.c | upd->buf = NULL; |
buf | 291 | net/unix/sock.c | if (upd->buf) |
buf | 293 | net/unix/sock.c | free_page((unsigned long)upd->buf); |
buf | 294 | net/unix/sock.c | upd->buf = NULL; |
buf | 325 | net/unix/sock.c | if (!(upd->buf = (char*) get_free_page(GFP_USER))) |
buf | 653 | net/unix/sock.c | memcpy_tofs(ubuf, upd->buf + upd->bp_tail, cando); |
buf | 743 | net/unix/sock.c | memcpy_fromfs(pupd->buf + pupd->bp_head, ubuf, cando); |
buf | 38 | net/unix/unix.h | char *buf; |
buf | 91 | tools/build.c | char buf[1024]; |
buf | 92 | tools/build.c | struct exec *ex = (struct exec *)buf; |
buf | 122 | tools/build.c | for (i=0;i<sizeof buf; i++) buf[i]=0; |
buf | 125 | tools/build.c | if (read(id,buf,MINIX_HEADER) != MINIX_HEADER) |
buf | 127 | tools/build.c | if (((long *) buf)[0]!=intel_long(0x04100301)) |
buf | 129 | tools/build.c | if (((long *) buf)[1]!=intel_long(MINIX_HEADER)) |
buf | 131 | tools/build.c | if (((long *) buf)[3] != 0) |
buf | 133 | tools/build.c | if (((long *) buf)[4] != 0) |
buf | 135 | tools/build.c | if (((long *) buf)[5] != 0) |
buf | 137 | tools/build.c | if (((long *) buf)[7] != 0) |
buf | 139 | tools/build.c | i=read(id,buf,sizeof buf); |
buf | 143 | tools/build.c | if ((*(unsigned short *)(buf+510)) != (unsigned short)intel_short(0xAA55)) |
buf | 145 | tools/build.c | buf[508] = (char) minor_root; |
buf | 146 | tools/build.c | buf[509] = (char) major_root; |
buf | 147 | tools/build.c | i=write(1,buf,512); |
buf | 154 | tools/build.c | if (read(id,buf,MINIX_HEADER) != MINIX_HEADER) |
buf | 156 | tools/build.c | if (((long *) buf)[0]!=intel_long(0x04100301)) |
buf | 158 | tools/build.c | if (((long *) buf)[1]!=intel_long(MINIX_HEADER)) |
buf | 160 | tools/build.c | if (((long *) buf)[3] != 0) |
buf | 162 | tools/build.c | if (((long *) buf)[4] != 0) |
buf | 164 | tools/build.c | if (((long *) buf)[5] != 0) |
buf | 166 | tools/build.c | if (((long *) buf)[7] != 0) |
buf | 168 | tools/build.c | for (i=0 ; (c=read(id,buf,sizeof buf))>0 ; i+=c ) |
buf | 169 | tools/build.c | if (write(1,buf,c)!=c) |
buf | 178 | tools/build.c | for (c=0 ; c<sizeof(buf) ; c++) |
buf | 179 | tools/build.c | buf[c] = '\0'; |
buf | 182 | tools/build.c | if (c > sizeof(buf)) |
buf | 183 | tools/build.c | c = sizeof(buf); |
buf | 184 | tools/build.c | if (write(1,buf,c) != c) |
buf | 191 | tools/build.c | if (read(id,buf,GCC_HEADER) != GCC_HEADER) |
buf | 211 | tools/build.c | if (l > sizeof(buf)) |
buf | 212 | tools/build.c | l = sizeof(buf); |
buf | 213 | tools/build.c | if ((n=read(id, buf, l)) != l) { |
buf | 220 | tools/build.c | if (write(1, buf, l) != l) |
buf | 226 | tools/build.c | buf[0] = (sys_size & 0xff); |
buf | 227 | tools/build.c | buf[1] = ((sys_size >> 8) & 0xff); |
buf | 228 | tools/build.c | if (write(1, buf, 2) != 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 | 41 | zBoot/xtract.c | char buf[1024]; |
buf | 45 | zBoot/xtract.c | struct exec *ex = (struct exec *)buf; |
buf | 52 | zBoot/xtract.c | if (read(id,buf,GCC_HEADER) != GCC_HEADER) |
buf | 69 | zBoot/xtract.c | if (l > sizeof(buf)) l = sizeof(buf); |
buf | 71 | zBoot/xtract.c | if ((n=read(id, buf, l)) !=l) |
buf | 81 | zBoot/xtract.c | write(1, buf, l); |