tag | line | file | source code |
buf | 237 | drivers/block/cdu31a.c | unsigned char *buf); |
buf | 986 | drivers/block/cdu31a.c | unsigned char *buf) |
buf | 988 | drivers/block/cdu31a.c | buf[0] = size / 65536; |
buf | 990 | drivers/block/cdu31a.c | buf[1] = size / 256; |
buf | 991 | drivers/block/cdu31a.c | buf[2] = size % 256; |
buf | 2095 | drivers/block/cdu31a.c | memcpy_tofs((char *) (ra->buf + (CD_FRAMESIZE_RAW * cframe)), |
buf | 2111 | drivers/block/cdu31a.c | memcpy_tofs((char *) (ra->buf + (CD_FRAMESIZE_RAW * cframe)), |
buf | 2483 | drivers/block/cdu31a.c | verify_area(VERIFY_WRITE, ra.buf, CD_FRAMESIZE_RAW * ra.nframes); |
buf | 2893 | drivers/block/floppy.c | char * buf, int count) |
buf | 2900 | drivers/block/floppy.c | return block_read(inode, filp, buf, count); |
buf | 2904 | drivers/block/floppy.c | char * buf, int count) |
buf | 2920 | drivers/block/floppy.c | ret= block_write(inode, filp, buf, count); |
buf | 463 | drivers/block/ll_rw_blk.c | void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buf) |
buf | 487 | drivers/block/ll_rw_blk.c | for (i=0; i<nb; i++, buf += buffersize) |
buf | 497 | drivers/block/ll_rw_blk.c | req->buffer = buf; |
buf | 614 | drivers/block/sbpcd.c | extern int vsprintf(char *buf, const char *fmt, va_list args); |
buf | 2994 | drivers/block/sbpcd.c | i=verify_area(VERIFY_WRITE, read_audio.buf, |
buf | 3149 | drivers/block/sbpcd.c | memcpy_tofs((u_char *) read_audio.buf, |
buf | 539 | drivers/block/xd.c | u_char cmdblk[6],buf[64]; |
buf | 542 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
buf | 543 | drivers/block/xd.c | xd_info[drive].heads = buf[0x0A]; /* heads */ |
buf | 544 | drivers/block/xd.c | xd_info[drive].cylinders = ((u_short *) (buf))[0x04]; /* cylinders */ |
buf | 547 | drivers/block/xd.c | xd_info[drive].rwrite = ((u_short *) (buf + 1))[0x05]; /* reduced write */ |
buf | 548 | drivers/block/xd.c | xd_info[drive].precomp = ((u_short *) (buf + 1))[0x06]; /* write precomp */ |
buf | 549 | drivers/block/xd.c | xd_info[drive].ecc = buf[0x0F]; /* ecc length */ |
buf | 553 | 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 | 583 | drivers/block/xd.c | u_char cmdblk[6],buf[0x200]; |
buf | 586 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
buf | 587 | drivers/block/xd.c | xd_info[drive].heads = buf[0x1AF]; /* heads */ |
buf | 588 | drivers/block/xd.c | xd_info[drive].cylinders = ((u_short *) (buf + 1))[0xD6]; /* cylinders */ |
buf | 591 | drivers/block/xd.c | xd_info[drive].rwrite = ((u_short *) (buf))[0xD8]; /* reduced write */ |
buf | 592 | drivers/block/xd.c | xd_info[drive].wprecomp = ((u_short *) (buf))[0xDA]; /* write precomp */ |
buf | 593 | drivers/block/xd.c | xd_info[drive].ecc = buf[0x1B4]; /* ecc length */ |
buf | 595 | drivers/block/xd.c | xd_info[drive].control = buf[0x1B5]; /* control byte */ |
buf | 597 | 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 | 622 | drivers/block/xd.c | u_char cmdblk[6],buf[0x200]; |
buf | 625 | drivers/block/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
buf | 626 | drivers/block/xd.c | xd_info[drive].heads = buf[0x04]; /* heads */ |
buf | 627 | drivers/block/xd.c | xd_info[drive].cylinders = (buf[0x02] << 8) | buf[0x03]; /* cylinders */ |
buf | 628 | drivers/block/xd.c | xd_info[drive].sectors = buf[0x05]; /* sectors */ |
buf | 1179 | drivers/char/console.c | char buf[40]; |
buf | 1181 | drivers/char/console.c | sprintf(buf, "\033[%ld;%ldR", y + (decom ? top+1 : 1), x+1); |
buf | 1182 | drivers/char/console.c | respond_string(buf, tty); |
buf | 1189 | drivers/char/console.c | char buf[8]; |
buf | 1191 | drivers/char/console.c | sprintf(buf, "\033[M%c%c%c", (char)(' ' + butt), (char)('!' + mrx), |
buf | 1193 | drivers/char/console.c | respond_string(buf, tty); |
buf | 1501 | drivers/char/console.c | unsigned char *buf, int count) |
buf | 1524 | drivers/char/console.c | c = from_user ? get_fs_byte(buf) : *buf; |
buf | 1525 | drivers/char/console.c | buf++; n++; count--; |
buf | 2312 | drivers/char/console.c | char *sptr, *buf = (char *)arg; |
buf | 2317 | drivers/char/console.c | l = verify_area(VERIFY_READ, buf, 2); |
buf | 2320 | drivers/char/console.c | currcons = get_fs_byte(buf+1); |
buf | 2328 | drivers/char/console.c | buf, (2+chcount)*(mode ? 2 : 1)); |
buf | 2332 | drivers/char/console.c | put_fs_byte((char)(video_num_lines),buf++); |
buf | 2333 | drivers/char/console.c | put_fs_byte((char)(video_num_columns),buf++); |
buf | 2342 | drivers/char/console.c | put_fs_byte(*sptr++,buf++); |
buf | 2345 | drivers/char/console.c | put_fs_byte((char)x,buf++); put_fs_byte((char)y,buf++); |
buf | 2346 | drivers/char/console.c | memcpy_tofs(buf,(char *)origin,2*chcount); |
buf | 2349 | drivers/char/console.c | gotoxy(currcons, get_fs_byte(buf+2), get_fs_byte(buf+3)); |
buf | 2350 | drivers/char/console.c | buf+=4; /* ioctl#, console#, x,y */ |
buf | 2351 | drivers/char/console.c | memcpy_fromfs((char *)origin,buf,2*chcount); |
buf | 1494 | drivers/char/cyclades.c | unsigned char *buf, int count) |
buf | 1523 | drivers/char/cyclades.c | memcpy_fromfs(tmp_buf, buf, c); |
buf | 1529 | drivers/char/cyclades.c | memcpy(info->xmit_buf + info->xmit_head, buf, c); |
buf | 1533 | drivers/char/cyclades.c | buf += c; |
buf | 1618 | drivers/char/cyclades.c | char buf[64]; |
buf | 1620 | drivers/char/cyclades.c | printk("throttle %s: %d....\n", _tty_name(tty, buf), |
buf | 1659 | drivers/char/cyclades.c | char buf[64]; |
buf | 1661 | drivers/char/cyclades.c | printk("throttle %s: %d....\n", _tty_name(tty, buf), |
buf | 585 | drivers/char/keyboard.c | static char buf[] = { 0x1b, 'O', 0x00, 0x00 }; |
buf | 587 | drivers/char/keyboard.c | buf[1] = (mode ? 'O' : '['); |
buf | 588 | drivers/char/keyboard.c | buf[2] = key; |
buf | 589 | drivers/char/keyboard.c | puts_queue(buf); |
buf | 144 | drivers/char/lp.c | static int lp_write_interrupt(struct inode * inode, struct file * file, char * buf, int count) |
buf | 156 | drivers/char/lp.c | memcpy_fromfs(lp->lp_buffer, buf, copy_size); |
buf | 204 | drivers/char/lp.c | buf += bytes_written; |
buf | 213 | drivers/char/lp.c | char * buf, int count) |
buf | 217 | drivers/char/lp.c | char c, *temp = buf; |
buf | 227 | drivers/char/lp.c | temp = buf; |
buf | 243 | drivers/char/lp.c | return temp-buf?temp-buf:-ENOSPC; |
buf | 251 | drivers/char/lp.c | return temp-buf?temp-buf:-EIO; |
buf | 260 | drivers/char/lp.c | return temp-buf?temp-buf:-EFAULT; |
buf | 268 | drivers/char/lp.c | if (temp != buf) |
buf | 269 | drivers/char/lp.c | return temp-buf; |
buf | 283 | drivers/char/lp.c | return temp-buf; |
buf | 286 | drivers/char/lp.c | static int lp_write(struct inode * inode, struct file * file, char * buf, int count) |
buf | 289 | drivers/char/lp.c | return lp_write_interrupt(inode, file, buf, count); |
buf | 291 | 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 | 99 | drivers/char/mem.c | static int read_kmem(struct inode *inode, struct file *file, char *buf, int count) |
buf | 103 | drivers/char/mem.c | read1 = read_mem(inode, file, buf, count); |
buf | 106 | drivers/char/mem.c | read2 = vread(buf + read1, (char *) ((unsigned long) file->f_pos), count - read1); |
buf | 113 | drivers/char/mem.c | static int read_port(struct inode * inode,struct file * file,char * buf, int count) |
buf | 116 | drivers/char/mem.c | char * tmp = buf; |
buf | 124 | drivers/char/mem.c | return tmp-buf; |
buf | 127 | drivers/char/mem.c | static int write_port(struct inode * inode,struct file * file,char * buf, int count) |
buf | 130 | drivers/char/mem.c | char * tmp = buf; |
buf | 138 | drivers/char/mem.c | return tmp-buf; |
buf | 141 | drivers/char/mem.c | static int read_null(struct inode * node,struct file * file,char * buf,int count) |
buf | 146 | drivers/char/mem.c | static int write_null(struct inode * inode,struct file * file,char * buf, int count) |
buf | 151 | drivers/char/mem.c | static int read_zero(struct inode * node,struct file * file,char * buf,int count) |
buf | 156 | drivers/char/mem.c | put_fs_byte(0,buf); |
buf | 157 | drivers/char/mem.c | buf++; |
buf | 171 | drivers/char/mem.c | static int read_full(struct inode * node,struct file * file,char * buf,int count) |
buf | 176 | drivers/char/mem.c | static int write_full(struct inode * inode,struct file * file,char * buf, int count) |
buf | 315 | drivers/char/n_tty.c | char buf[64]; |
buf | 319 | drivers/char/n_tty.c | printk("%s: %d input overrun(s)\n", _tty_name(tty, buf), |
buf | 733 | drivers/char/n_tty.c | unsigned char *buf, unsigned int nr) |
buf | 737 | drivers/char/n_tty.c | unsigned char *b = buf; |
buf | 794 | drivers/char/n_tty.c | if (b != buf) |
buf | 805 | drivers/char/n_tty.c | if (((minimum - (b - buf)) < tty->minimum_to_wake) && |
buf | 806 | drivers/char/n_tty.c | ((minimum - (b - buf)) >= 1)) |
buf | 807 | drivers/char/n_tty.c | tty->minimum_to_wake = (minimum - (b - buf)); |
buf | 832 | drivers/char/n_tty.c | if (tty->packet && b == buf) { |
buf | 882 | drivers/char/n_tty.c | if (b - buf >= minimum || !nr) |
buf | 894 | drivers/char/n_tty.c | size = b - buf; |
buf | 905 | drivers/char/n_tty.c | unsigned char * buf, unsigned int nr) |
buf | 909 | drivers/char/n_tty.c | unsigned char *b = buf; |
buf | 954 | drivers/char/n_tty.c | return (b - buf) ? b - buf : retval; |
buf | 98 | drivers/char/psaux.c | unsigned char buf[AUX_BUF_SIZE]; |
buf | 176 | drivers/char/psaux.c | result = queue->buf[queue->tail]; |
buf | 200 | drivers/char/psaux.c | queue->buf[head] = inb(AUX_INPUT_PORT); |
buf | 221 | drivers/char/psaux.c | queue->buf[head] = inb(qp_data); |
buf | 113 | drivers/char/pty.c | unsigned char *buf, int count) |
buf | 128 | drivers/char/pty.c | memcpy_fromfs(temp_buffer, buf, n); |
buf | 134 | drivers/char/pty.c | buf += n; c+= n; |
buf | 140 | drivers/char/pty.c | to->ldisc.receive_buf(to, buf, 0, c); |
buf | 1237 | drivers/char/serial.c | unsigned char *buf, int count) |
buf | 1259 | drivers/char/serial.c | memcpy_fromfs(tmp_buf, buf, c); |
buf | 1265 | drivers/char/serial.c | memcpy(info->xmit_buf + info->xmit_head, buf, c); |
buf | 1269 | drivers/char/serial.c | buf += c; |
buf | 1331 | drivers/char/serial.c | char buf[64]; |
buf | 1333 | drivers/char/serial.c | printk("throttle %s: %d....\n", _tty_name(tty, buf), |
buf | 1354 | drivers/char/serial.c | char buf[64]; |
buf | 1356 | drivers/char/serial.c | printk("unthrottle %s: %d....\n", _tty_name(tty, buf), |
buf | 1916 | drivers/char/tpqic02.c | static int qic02_tape_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 1932 | drivers/char/tpqic02.c | MINOR(dev), buf, count, (unsigned long) filp->f_pos, flags); |
buf | 1946 | drivers/char/tpqic02.c | error = verify_area(VERIFY_WRITE, buf, count); |
buf | 2037 | drivers/char/tpqic02.c | memcpy_tofs( (void *) buf, (void *) buffaddr, bytes_done); |
buf | 2051 | drivers/char/tpqic02.c | buf += bytes_done; |
buf | 2091 | drivers/char/tpqic02.c | static int qic02_tape_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 2106 | drivers/char/tpqic02.c | MINOR(dev), buf, count, (unsigned long) filp->f_pos, flags); |
buf | 2128 | drivers/char/tpqic02.c | error = verify_area(VERIFY_READ, buf, count); |
buf | 2164 | drivers/char/tpqic02.c | memcpy_fromfs( (void *) buffaddr, (void *) buf, bytes_todo); |
buf | 2218 | drivers/char/tpqic02.c | buf += bytes_done; |
buf | 2226 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": status_bytes_wr %x, buf %p, total_bytes_done %lx, count %x\n", status_bytes_wr, buf, total_bytes_done, count); |
buf | 114 | drivers/char/tty_io.c | char *_tty_name(struct tty_struct *tty, char *buf) |
buf | 117 | drivers/char/tty_io.c | sprintf(buf, "%s%d", tty->driver.name, |
buf | 121 | drivers/char/tty_io.c | strcpy(buf, "NULL tty"); |
buf | 122 | drivers/char/tty_io.c | return buf; |
buf | 127 | drivers/char/tty_io.c | static char buf[64]; |
buf | 129 | drivers/char/tty_io.c | return(_tty_name(tty, buf)); |
buf | 260 | drivers/char/tty_io.c | static int hung_up_tty_read(struct inode * inode, struct file * file, char * buf, int count) |
buf | 265 | drivers/char/tty_io.c | static int hung_up_tty_write(struct inode * inode, struct file * file, char * buf, int count) |
buf | 641 | drivers/char/tty_io.c | static int tty_read(struct inode * inode, struct file * file, char * buf, int count) |
buf | 670 | drivers/char/tty_io.c | i = (tty->ldisc.read)(tty,file,(unsigned char *)buf,(unsigned int)count); |
buf | 678 | drivers/char/tty_io.c | static int tty_write(struct inode * inode, struct file * file, char * buf, int count) |
buf | 706 | drivers/char/tty_io.c | i = (tty->ldisc.write)(tty,file,(unsigned char *)buf,(unsigned int)count); |
buf | 304 | drivers/net/3c501.c | unsigned char *buf = skb->data; |
buf | 314 | drivers/net/3c501.c | outsb(DATAPORT,buf,skb->len); |
buf | 68 | drivers/net/3c503.c | const unsigned char *buf, const start_page); |
buf | 69 | drivers/net/3c503.c | static int el2_block_input(struct device *dev, int count, char *buf, |
buf | 374 | drivers/net/3c503.c | const unsigned char *buf, const start_page) |
buf | 385 | drivers/net/3c503.c | memcpy(dest_addr, buf, count); |
buf | 386 | drivers/net/3c503.c | if (ei_debug > 2 && memcmp(dest_addr, buf, count)) |
buf | 409 | drivers/net/3c503.c | outb(buf[i], E33G_FIFOH); |
buf | 417 | drivers/net/3c503.c | el2_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 429 | drivers/net/3c503.c | memcpy(buf, (char *)dev->mem_start + ring_offset, semi_count); |
buf | 431 | drivers/net/3c503.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
buf | 434 | drivers/net/3c503.c | memcpy(buf, (char *)dev->mem_start + ring_offset, count); |
buf | 454 | drivers/net/3c503.c | buf[i] = inb_p(E33G_FIFOH); |
buf | 290 | drivers/net/3c507.c | static void hardware_send_packet(struct device *dev, void *buf, short length); |
buf | 492 | drivers/net/3c507.c | unsigned char *buf = skb->data; |
buf | 496 | drivers/net/3c507.c | hardware_send_packet(dev, buf, length); |
buf | 757 | drivers/net/3c507.c | hardware_send_packet(struct device *dev, void *buf, short length) |
buf | 782 | 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 | 404 | drivers/net/at1700.c | unsigned char *buf = skb->data; |
buf | 410 | 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 | 855 | drivers/net/depca.c | unsigned char *buf; |
buf | 862 | drivers/net/depca.c | buf = (unsigned char *)((lp->tx_ring[entry].base+lp->bus_offset) & |
buf | 881 | drivers/net/depca.c | memcpy((unsigned char *)(buf), skb->data, len); |
buf | 898 | drivers/net/depca.c | buf = (unsigned char *)((lp->tx_ring[entry].base+lp->bus_offset) & |
buf | 906 | drivers/net/depca.c | memcpy((unsigned char *)buf, skb->data, PKT_HDR_LEN); |
buf | 918 | 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 | 299 | drivers/net/eexpress.c | static void hardware_send_packet(struct device *dev, void *buf, short length); |
buf | 496 | drivers/net/eexpress.c | unsigned char *buf = skb->data; |
buf | 500 | drivers/net/eexpress.c | hardware_send_packet(dev, buf, length); |
buf | 854 | drivers/net/eexpress.c | hardware_send_packet(struct device *dev, void *buf, short length) |
buf | 880 | drivers/net/eexpress.c | outsw(ioaddr + DATAPORT, buf, (length + 1) >> 1); |
buf | 810 | drivers/net/ewrk3.c | unsigned char *buf; |
buf | 814 | drivers/net/ewrk3.c | buf = NULL; |
buf | 823 | drivers/net/ewrk3.c | buf = (char *) lp->shmem_base; |
buf | 826 | drivers/net/ewrk3.c | buf = (char *)((((short)page << 11) & 0x7800) + lp->shmem_base); |
buf | 829 | drivers/net/ewrk3.c | buf = (char *)((((short)page << 11) & 0xf800) + lp->shmem_base); |
buf | 856 | drivers/net/ewrk3.c | *buf++ = (char)(QMODE | PAD | IFC); /* control byte */ |
buf | 857 | drivers/net/ewrk3.c | *buf++ = (char)(skb->len & 0xff); /* length (16 bit xfer)*/ |
buf | 859 | drivers/net/ewrk3.c | *buf++ = (char)(((skb->len >> 8) & 0xff) | XCT); |
buf | 860 | drivers/net/ewrk3.c | *buf++ = 0x04; /* index byte */ |
buf | 861 | drivers/net/ewrk3.c | *(buf + skb->len) = 0x00; /* Write the XCT flag */ |
buf | 862 | drivers/net/ewrk3.c | memcpy(buf, skb->data, PRELOAD); /* Write PRELOAD bytes */ |
buf | 864 | drivers/net/ewrk3.c | memcpy(buf + PRELOAD, skb->data + PRELOAD, skb->len - PRELOAD); |
buf | 865 | drivers/net/ewrk3.c | *(buf + skb->len) = 0xff; /* Write the XCT flag */ |
buf | 867 | drivers/net/ewrk3.c | *buf++ = (char)((skb->len >> 8) & 0xff); |
buf | 868 | drivers/net/ewrk3.c | *buf++ = 0x04; /* index byte */ |
buf | 869 | drivers/net/ewrk3.c | memcpy(buf, skb->data, skb->len); /* Write data bytes */ |
buf | 976 | drivers/net/ewrk3.c | unsigned char page, tmpPage = 0, tmpLock = 0, *buf; |
buf | 981 | drivers/net/ewrk3.c | buf = NULL; |
buf | 1001 | drivers/net/ewrk3.c | buf = (char *) lp->shmem_base; |
buf | 1004 | drivers/net/ewrk3.c | buf = (char *)((((short)page << 11) & 0x7800) + lp->shmem_base); |
buf | 1007 | drivers/net/ewrk3.c | buf = (char *)((((short)page << 11) & 0xf800) + lp->shmem_base); |
buf | 1023 | drivers/net/ewrk3.c | rx_status = (char)(*buf++); |
buf | 1024 | drivers/net/ewrk3.c | pkt_len = (short)(*buf+((*(buf+1))<<8)); |
buf | 1025 | drivers/net/ewrk3.c | buf+=3; |
buf | 1048 | drivers/net/ewrk3.c | memcpy(skb->data, buf, pkt_len); |
buf | 1067 | drivers/net/ewrk3.c | buf = skb->data; /* Look at the dest addr */ |
buf | 1068 | drivers/net/ewrk3.c | if (buf[0] & 0x01) { /* Multicast/Broadcast */ |
buf | 1069 | drivers/net/ewrk3.c | if ((*(long *)&buf[0] == -1) && (*(short *)&buf[4] == -1)) { |
buf | 1074 | drivers/net/ewrk3.c | } else if ((*(long *)&buf[0] == *(long *)&dev->dev_addr[0]) && |
buf | 1075 | drivers/net/ewrk3.c | (*(short *)&buf[4] == *(short *)&dev->dev_addr[4])) { |
buf | 106 | drivers/net/hp-plus.c | char *buf, int ring_offset); |
buf | 108 | drivers/net/hp-plus.c | const unsigned char *buf, const start_page); |
buf | 110 | drivers/net/hp-plus.c | char *buf, int ring_offset); |
buf | 112 | drivers/net/hp-plus.c | const unsigned char *buf, const start_page); |
buf | 315 | drivers/net/hp-plus.c | hpp_io_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 320 | drivers/net/hp-plus.c | insw(ioaddr + HP_DATAPORT, buf, count>>1); |
buf | 322 | drivers/net/hp-plus.c | buf[count-1] = inw(ioaddr + HP_DATAPORT); |
buf | 327 | drivers/net/hp-plus.c | hpp_mem_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 336 | drivers/net/hp-plus.c | memcpy(buf, (char*)dev->mem_start, (count + 3) & ~3); |
buf | 346 | drivers/net/hp-plus.c | const unsigned char *buf, const start_page) |
buf | 350 | drivers/net/hp-plus.c | outsl(ioaddr + HP_DATAPORT, buf, (count+3)>>2); |
buf | 356 | drivers/net/hp-plus.c | const unsigned char *buf, const start_page) |
buf | 363 | drivers/net/hp-plus.c | memcpy((char *)dev->mem_start, buf, (count + 3) & ~3); |
buf | 61 | drivers/net/hp.c | char *buf, int ring_offset); |
buf | 63 | drivers/net/hp.c | const unsigned char *buf, const start_page); |
buf | 220 | drivers/net/hp.c | hp_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 234 | drivers/net/hp.c | insw(nic_base - NIC_OFFSET + HP_DATAPORT,buf,count>>1); |
buf | 236 | drivers/net/hp.c | buf[count-1] = inb(nic_base - NIC_OFFSET + HP_DATAPORT), xfer_count++; |
buf | 238 | drivers/net/hp.c | insb(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count); |
buf | 256 | drivers/net/hp.c | const unsigned char *buf, const start_page) |
buf | 291 | drivers/net/hp.c | outsw(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count>>1); |
buf | 293 | drivers/net/hp.c | outsb(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count); |
buf | 68 | drivers/net/ne.c | char *buf, int ring_offset); |
buf | 70 | drivers/net/ne.c | const unsigned char *buf, const int start_page); |
buf | 319 | drivers/net/ne.c | ne_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 340 | drivers/net/ne.c | insw(NE_BASE + NE_DATAPORT,buf,count>>1); |
buf | 342 | drivers/net/ne.c | buf[count-1] = inb(NE_BASE + NE_DATAPORT), xfer_count++; |
buf | 344 | drivers/net/ne.c | insb(NE_BASE + NE_DATAPORT, buf, count); |
buf | 373 | drivers/net/ne.c | const unsigned char *buf, const int start_page) |
buf | 420 | drivers/net/ne.c | outsw(NE_BASE + NE_DATAPORT, buf, count>>1); |
buf | 422 | 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 | 108 | drivers/net/skeleton.c | extern void hardware_send_packet(short ioaddr, char *buf, int length); |
buf | 341 | drivers/net/skeleton.c | unsigned char *buf = skb->data; |
buf | 343 | drivers/net/skeleton.c | hardware_send_packet(ioaddr, buf, length); |
buf | 45 | drivers/net/smc-ultra.c | char *buf, int ring_offset); |
buf | 47 | drivers/net/smc-ultra.c | const unsigned char *buf, const start_page); |
buf | 224 | drivers/net/smc-ultra.c | ultra_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 235 | drivers/net/smc-ultra.c | memcpy(buf, xfer_start, semi_count); |
buf | 237 | drivers/net/smc-ultra.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
buf | 241 | drivers/net/smc-ultra.c | memcpy(buf, xfer_start, count); |
buf | 248 | drivers/net/smc-ultra.c | ultra_block_output(struct device *dev, int count, const unsigned char *buf, |
buf | 257 | drivers/net/smc-ultra.c | memcpy(shmem, buf, count); |
buf | 46 | drivers/net/wd.c | char *buf, int ring_offset); |
buf | 48 | drivers/net/wd.c | const unsigned char *buf, const start_page); |
buf | 316 | drivers/net/wd.c | wd_block_input(struct device *dev, int count, char *buf, int ring_offset) |
buf | 326 | drivers/net/wd.c | ((int*)buf)[0] = ((int*)xfer_start)[0]; |
buf | 333 | drivers/net/wd.c | memcpy(buf, (char *)xfer_start, semi_count); |
buf | 335 | drivers/net/wd.c | memcpy(buf + semi_count, (char *)dev->rmem_start, count); |
buf | 337 | drivers/net/wd.c | memcpy(buf, (char *)xfer_start, count); |
buf | 347 | drivers/net/wd.c | wd_block_output(struct device *dev, int count, const unsigned char *buf, |
buf | 357 | drivers/net/wd.c | memcpy((char *)shmem, buf, count); |
buf | 360 | 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 | 1964 | drivers/scsi/53c7,8xx.c | char buf[80]; |
buf | 1973 | drivers/scsi/53c7,8xx.c | sprintf (buf, "scsi%d : bp : warning : processor not halted\b", |
buf | 1975 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, strlen(buf)); |
buf | 1980 | drivers/scsi/53c7,8xx.c | sprintf (buf, "scsi%d : bp : success : at %08x, replaces %08x %08x", |
buf | 1982 | drivers/scsi/53c7,8xx.c | len = strlen(buf); |
buf | 1985 | drivers/scsi/53c7,8xx.c | sprintf(buf + len, "%08x\n", * (long *) bp->addr); |
buf | 1987 | drivers/scsi/53c7,8xx.c | sprintf(buf + len, "\n"); |
buf | 1989 | drivers/scsi/53c7,8xx.c | len = strlen(buf); |
buf | 1990 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, len); |
buf | 2001 | drivers/scsi/53c7,8xx.c | char buf[80]; |
buf | 2007 | drivers/scsi/53c7,8xx.c | sprintf (buf, "scsi%d : bs : failure : NCR not halted\n", host->host_no); |
buf | 2008 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, strlen(buf)); |
buf | 2056 | drivers/scsi/53c7,8xx.c | char *buf,int count) { |
buf | 2069 | drivers/scsi/53c7,8xx.c | if (error = verify_area(VERIFY_READ,buf,count)) |
buf | 2075 | drivers/scsi/53c7,8xx.c | memcpy_from_fs(input_buf, buf, count); |
buf | 2108 | drivers/scsi/53c7,8xx.c | char *buf,int count) { |
buf | 2113 | drivers/scsi/53c7,8xx.c | static debugger_kernel_write (struct Scsi_Host *host, char *buf, size_t |
buf | 2124 | drivers/scsi/53c7,8xx.c | memcpy (hostdata->debug_write, buf, copy); |
buf | 2125 | drivers/scsi/53c7,8xx.c | buf += copy; |
buf | 2487 | drivers/scsi/53c7,8xx.c | unsigned long buf = (unsigned long) (cmd->use_sg ? |
buf | 2497 | drivers/scsi/53c7,8xx.c | cmd_datain[1] = buf; |
buf | 2511 | drivers/scsi/53c7,8xx.c | cmd_dataout[1] = buf; |
buf | 2938 | drivers/scsi/53c7,8xx.c | char buf[80]; /* Debugging sprintf buffer */ |
buf | 3595 | drivers/scsi/53c7,8xx.c | char buf[80], /* Temporary buffer and pointer */ |
buf | 3601 | drivers/scsi/53c7,8xx.c | sprintf(buf, "%s%08lx : 0x%08lx 0x%08lx", (prefix ? prefix : ""), |
buf | 3603 | drivers/scsi/53c7,8xx.c | tmp = buf + strlen(buf); |
buf | 3613 | drivers/scsi/53c7,8xx.c | printk ("%s", buf); |
buf | 3616 | drivers/scsi/53c7,8xx.c | size_t len = strlen(buf); |
buf | 3617 | drivers/scsi/53c7,8xx.c | debugger_kernel_write(host, buf, len); |
buf | 1011 | drivers/scsi/aha1542.c | unchar buf[8]; |
buf | 1015 | drivers/scsi/aha1542.c | for (i = 0; i < sizeof(buf); ++i) buf[i] = 0x87; |
buf | 1017 | drivers/scsi/aha1542.c | if (!aha1542_command(i, cmd, buf, sizeof(buf))) { |
buf | 1019 | drivers/scsi/aha1542.c | i, xscsi2int(buf+4), xscsi2int(buf)); |
buf | 219 | drivers/scsi/aha274x.c | char buf[256]; |
buf | 222 | drivers/scsi/aha274x.c | vsprintf(buf, fmt, ap); |
buf | 223 | drivers/scsi/aha274x.c | printk(buf); |
buf | 741 | drivers/scsi/aha274x.c | unsigned char buf[4]; |
buf | 745 | drivers/scsi/aha274x.c | unsigned char signature[sizeof(buf)]; |
buf | 753 | drivers/scsi/aha274x.c | for (i = 0; i < sizeof(buf); i++) { |
buf | 759 | drivers/scsi/aha274x.c | buf[i] = inb(s_base + i); |
buf | 763 | drivers/scsi/aha274x.c | if (!memcmp(buf, S[i].signature, S[i].n)) { |
buf | 200 | drivers/scsi/aic7770.c | static char buf[MAXLINE]; |
buf | 205 | drivers/scsi/aic7770.c | while (fgets(buf, sizeof(buf), ifp)) { |
buf | 209 | drivers/scsi/aic7770.c | if (buf[strlen(buf)-1] != '\n') |
buf | 212 | drivers/scsi/aic7770.c | p = strchr(buf, '#'); |
buf | 216 | drivers/scsi/aic7770.c | for (p = strtok(buf, ", \t\n"); p; p = strtok(NULL, ", \t\n")) |
buf | 1291 | drivers/scsi/buslogic.c | unsigned char buf[8]; |
buf | 1299 | drivers/scsi/buslogic.c | for (i = 0; i < sizeof buf; i++) |
buf | 1300 | drivers/scsi/buslogic.c | buf[i] = 0x87; |
buf | 1302 | drivers/scsi/buslogic.c | if (!buslogic_command(i, cmd, buf, sizeof buf)) { |
buf | 1304 | drivers/scsi/buslogic.c | i, *(int *)(buf + 4), *(int *)buf); |
buf | 525 | drivers/scsi/fdomain.c | unsigned char buf[buflen]; |
buf | 723 | drivers/scsi/fdomain.c | SCinit.request_buffer = SCinit.buffer = buf; |
buf | 724 | drivers/scsi/fdomain.c | SCinit.request_bufflen = SCinit.bufflen = sizeof(buf)-1; |
buf | 740 | drivers/scsi/fdomain.c | for (j = 8; j < (buf[4] < 32 ? buf[4] : 32); j++) |
buf | 741 | drivers/scsi/fdomain.c | printk( "%c", buf[j] >= 20 ? buf[j] : ' ' ); |
buf | 747 | drivers/scsi/fdomain.c | blocks = (buf[0] << 24) | (buf[1] << 16) |
buf | 748 | drivers/scsi/fdomain.c | | (buf[2] << 8) | buf[3]; |
buf | 749 | drivers/scsi/fdomain.c | size = (buf[4] << 24) | (buf[5] << 16) | (buf[6] << 8) | buf[7]; |
buf | 1517 | drivers/scsi/fdomain.c | unsigned char buf[512 + sizeof( int ) * 2]; |
buf | 1519 | drivers/scsi/fdomain.c | int *sizes = (int *)buf; |
buf | 1596 | drivers/scsi/fdomain.c | (void *)buf ); |
buf | 101 | drivers/scsi/in2000.c | #define port_read(port,buf,nr) \ |
buf | 102 | drivers/scsi/in2000.c | __asm__("cld;rep;insw": :"d" (port),"D" (buf),"c" (nr):"cx","di") |
buf | 104 | drivers/scsi/in2000.c | #define port_write(port,buf,nr) \ |
buf | 105 | drivers/scsi/in2000.c | __asm__("cld;rep;outsw": :"d" (port),"S" (buf),"c" (nr):"cx","si") |
buf | 147 | drivers/scsi/scsi_ioctl.c | char * buf; |
buf | 169 | drivers/scsi/scsi_ioctl.c | buf = (char *) scsi_malloc(buf_needed); |
buf | 170 | drivers/scsi/scsi_ioctl.c | if (!buf) return -ENOMEM; |
buf | 171 | drivers/scsi/scsi_ioctl.c | memset(buf, 0, buf_needed); |
buf | 173 | drivers/scsi/scsi_ioctl.c | buf = NULL; |
buf | 176 | drivers/scsi/scsi_ioctl.c | memcpy_fromfs ((void *) buf, (void *) (cmd_in + cmdlen), inlen > MAX_BUF ? MAX_BUF : inlen); |
buf | 184 | drivers/scsi/scsi_ioctl.c | scsi_do_cmd(SCpnt, cmd, buf, needed, scsi_ioctl_done, MAX_TIMEOUT, |
buf | 207 | drivers/scsi/scsi_ioctl.c | memcpy_tofs ((void *) cmd_in, buf, (outlen > MAX_BUF) ? MAX_BUF : outlen); |
buf | 211 | drivers/scsi/scsi_ioctl.c | if (buf) scsi_free(buf, buf_needed); |
buf | 226 | drivers/scsi/scsi_ioctl.c | printk("%02x ", buf[i]); |
buf | 1593 | drivers/scsi/seagate.c | unsigned char buf[256 + sizeof(int) * 2], cmd[6], *data, *page; |
buf | 1605 | drivers/scsi/seagate.c | sizes = (int *) buf; |
buf | 1625 | drivers/scsi/seagate.c | if (!(result = kernel_scsi_ioctl (disk->device, SCSI_IOCTL_SEND_COMMAND, (void *) buf))) { |
buf | 1638 | drivers/scsi/seagate.c | if (!(result = kernel_scsi_ioctl (disk->device, SCSI_IOCTL_SEND_COMMAND, (void *) buf))) { |
buf | 164 | drivers/scsi/sg.c | static int sg_read(struct inode *inode,struct file *filp,char *buf,int count) |
buf | 169 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_WRITE,buf,count))) |
buf | 183 | drivers/scsi/sg.c | memcpy_tofs(buf,&device->header,sizeof(struct sg_header)); |
buf | 184 | drivers/scsi/sg.c | buf+=sizeof(struct sg_header); |
buf | 188 | drivers/scsi/sg.c | memcpy_tofs(buf,device->buff,count-sizeof(struct sg_header)); |
buf | 222 | drivers/scsi/sg.c | static int sg_write(struct inode *inode,struct file *filp,char *buf,int count) |
buf | 231 | drivers/scsi/sg.c | if ((i=verify_area(VERIFY_READ,buf,count))) |
buf | 249 | drivers/scsi/sg.c | memcpy_fromfs(&device->header,buf,sizeof(struct sg_header)); |
buf | 252 | drivers/scsi/sg.c | buf+=sizeof(struct sg_header); |
buf | 282 | drivers/scsi/sg.c | opcode = get_fs_byte(buf); |
buf | 286 | drivers/scsi/sg.c | memcpy_fromfs(cmnd,buf,size); |
buf | 287 | drivers/scsi/sg.c | buf+=size; |
buf | 288 | drivers/scsi/sg.c | memcpy_fromfs(device->buff,buf,device->header.pack_len-size-sizeof(struct sg_header)); |
buf | 678 | drivers/scsi/st.c | st_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 759 | drivers/scsi/st.c | b_point = buf; |
buf | 913 | drivers/scsi/st.c | st_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 1115 | drivers/scsi/st.c | memcpy_tofs(buf, (STp->buffer)->b_data + |
buf | 1118 | drivers/scsi/st.c | buf += transfer; |
buf | 628 | drivers/scsi/ultrastor.c | static char buf[64]; |
buf | 631 | drivers/scsi/ultrastor.c | sprintf(buf, "UltraStor 24F SCSI @ Slot %u IRQ%u\n", |
buf | 634 | drivers/scsi/ultrastor.c | sprintf(buf, "UltraStor 34F SCSI @ Port %03X BIOS %05X IRQ%u\n", |
buf | 638 | drivers/scsi/ultrastor.c | sprintf(buf, "UltraStor 14F SCSI @ Port %03X BIOS %05X IRQ%u DMA%u\n", |
buf | 641 | drivers/scsi/ultrastor.c | return buf; |
buf | 960 | drivers/scsi/wd7000.c | static unchar buf[256]; |
buf | 964 | drivers/scsi/wd7000.c | any2scsi(icb.len, sizeof(buf)); |
buf | 965 | drivers/scsi/wd7000.c | any2scsi(icb.ptr, (int) &buf); |
buf | 91 | drivers/sound/ad1848.c | static void ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
buf | 92 | drivers/sound/ad1848.c | static void ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart); |
buf | 457 | drivers/sound/ad1848.c | ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
buf | 492 | drivers/sound/ad1848.c | DMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE); |
buf | 519 | drivers/sound/ad1848.c | ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart) |
buf | 555 | 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 | 1815 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
buf | 1821 | 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 | 60 | drivers/sound/soundcard.c | sound_read (struct inode *inode, struct file *file, char *buf, int count) |
buf | 67 | drivers/sound/soundcard.c | return sound_read_sw (dev, &files[dev], buf, count); |
buf | 71 | drivers/sound/soundcard.c | sound_write (struct inode *inode, struct file *file, char *buf, int count) |
buf | 78 | drivers/sound/soundcard.c | return sound_write_sw (dev, &files[dev], buf, count); |
buf | 324 | fs/binfmt_elf.c | elf_ex = *((struct elfhdr *) bprm->buf); /* exec-header */ |
buf | 412 | fs/binfmt_elf.c | retval = read_exec(interpreter_inode,0,bprm->buf,128); |
buf | 415 | fs/binfmt_elf.c | interp_ex = *((struct exec *) bprm->buf); /* exec-header */ |
buf | 416 | fs/binfmt_elf.c | interp_elf_ex = *((struct elfhdr *) bprm->buf); /* exec-header */ |
buf | 20 | fs/block_dev.c | int block_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 120 | fs/block_dev.c | memcpy_fromfs(p,buf,chars); |
buf | 122 | fs/block_dev.c | buf += chars; |
buf | 157 | fs/block_dev.c | int block_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 285 | fs/block_dev.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 287 | fs/block_dev.c | buf += chars; |
buf | 290 | fs/block_dev.c | put_fs_byte(0,buf++); |
buf | 729 | fs/buffer.c | void set_writetime(struct buffer_head * buf, int flag) |
buf | 733 | fs/buffer.c | if (buf->b_dirt){ |
buf | 737 | fs/buffer.c | if(!buf->b_flushtime || buf->b_flushtime > newtime) |
buf | 738 | fs/buffer.c | buf->b_flushtime = newtime; |
buf | 740 | fs/buffer.c | buf->b_flushtime = 0; |
buf | 748 | fs/buffer.c | void refile_buffer(struct buffer_head * buf){ |
buf | 751 | fs/buffer.c | if(buf->b_dev == 0xffff) panic("Attempt to refile free buffer\n"); |
buf | 752 | fs/buffer.c | if(mem_map[MAP_NR((unsigned long) buf->b_data)] != 1) i = 1; |
buf | 753 | fs/buffer.c | if(buf->b_lock) i |= 2; |
buf | 754 | fs/buffer.c | if(buf->b_dirt) i |= 4; |
buf | 756 | fs/buffer.c | if(buf->b_list == BUF_SHARED && dispose == BUF_CLEAN) |
buf | 759 | fs/buffer.c | if(dispose == BUF_CLEAN) buf->b_lru_time = jiffies; |
buf | 760 | fs/buffer.c | if(dispose != buf->b_list) { |
buf | 762 | fs/buffer.c | buf->b_lru_time = jiffies; |
buf | 764 | fs/buffer.c | (buf->b_flushtime - buf->b_lru_time) <= bdf_prm.b_un.age_super) |
buf | 766 | fs/buffer.c | remove_from_queues(buf); |
buf | 767 | fs/buffer.c | buf->b_list = dispose; |
buf | 768 | fs/buffer.c | insert_into_queues(buf); |
buf | 776 | fs/buffer.c | void brelse(struct buffer_head * buf) |
buf | 778 | fs/buffer.c | if (!buf) |
buf | 780 | fs/buffer.c | wait_on_buffer(buf); |
buf | 783 | fs/buffer.c | set_writetime(buf, 0); |
buf | 784 | fs/buffer.c | refile_buffer(buf); |
buf | 786 | fs/buffer.c | if (buf->b_count) { |
buf | 787 | fs/buffer.c | if (--buf->b_count) |
buf | 652 | fs/exec.c | memset(bprm.buf,0,sizeof(bprm.buf)); |
buf | 655 | fs/exec.c | retval = read_exec(bprm.inode,0,bprm.buf,128); |
buf | 659 | fs/exec.c | if ((bprm.buf[0] == '#') && (bprm.buf[1] == '!') && (!sh_bang)) { |
buf | 668 | fs/exec.c | bprm.buf[127] = '\0'; |
buf | 669 | fs/exec.c | if ((cp = strchr(bprm.buf, '\n')) == NULL) |
buf | 670 | fs/exec.c | cp = bprm.buf+127; |
buf | 672 | fs/exec.c | while (cp > bprm.buf) { |
buf | 679 | fs/exec.c | for (cp = bprm.buf+2; (*cp == ' ') || (*cp == '\t'); cp++); |
buf | 803 | fs/exec.c | ex = *((struct exec *) bprm->buf); /* exec-header */ |
buf | 26 | 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 | 29 | fs/ext2/dir.c | char * buf, int count) |
buf | 80 | fs/ext2/file.c | char * buf, int count) |
buf | 198 | fs/ext2/file.c | memcpy_tofs (buf, offset + (*bhe)->b_data, |
buf | 201 | fs/ext2/file.c | buf += chars; |
buf | 204 | fs/ext2/file.c | put_fs_byte (0, buf++); |
buf | 231 | fs/ext2/file.c | char * buf, int count) |
buf | 304 | fs/ext2/file.c | memcpy_fromfs (p, buf, c); |
buf | 305 | 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 | 48 | fs/ext2/super.c | MAJOR(sb->s_dev), MINOR(sb->s_dev), function, buf); |
buf | 50 | fs/ext2/super.c | MAJOR(sb->s_dev), MINOR(sb->s_dev), function, buf); |
buf | 62 | fs/ext2/super.c | char buf[1024]; |
buf | 72 | fs/ext2/super.c | vsprintf (buf, fmt, args); |
buf | 75 | fs/ext2/super.c | MAJOR(sb->s_dev), MINOR(sb->s_dev), function, buf); |
buf | 81 | fs/ext2/super.c | char buf[1024]; |
buf | 85 | fs/ext2/super.c | vsprintf (buf, fmt, args); |
buf | 88 | fs/ext2/super.c | MAJOR(sb->s_dev), MINOR(sb->s_dev), function, buf); |
buf | 719 | fs/ext2/super.c | void ext2_statfs (struct super_block * sb, struct statfs * buf) |
buf | 740 | fs/ext2/super.c | put_fs_long (EXT2_SUPER_MAGIC, &buf->f_type); |
buf | 741 | fs/ext2/super.c | put_fs_long (sb->s_blocksize, &buf->f_bsize); |
buf | 743 | fs/ext2/super.c | &buf->f_blocks); |
buf | 745 | fs/ext2/super.c | put_fs_long (tmp, &buf->f_bfree); |
buf | 748 | fs/ext2/super.c | &buf->f_bavail); |
buf | 750 | fs/ext2/super.c | put_fs_long (0, &buf->f_bavail); |
buf | 751 | fs/ext2/super.c | put_fs_long (sb->u.ext2_sb.s_es->s_inodes_count, &buf->f_files); |
buf | 752 | fs/ext2/super.c | put_fs_long (ext2_count_free_inodes (sb), &buf->f_ffree); |
buf | 753 | fs/ext2/super.c | put_fs_long (EXT2_NAME_LEN, &buf->f_namelen); |
buf | 187 | fs/hpfs/hpfs_fs.c | char *buf, int count); |
buf | 729 | fs/hpfs/hpfs_fs.c | static void hpfs_statfs(struct super_block *s, struct statfs *buf) |
buf | 745 | fs/hpfs/hpfs_fs.c | put_fs_long(s->s_magic, &buf->f_type); |
buf | 746 | fs/hpfs/hpfs_fs.c | put_fs_long(512, &buf->f_bsize); |
buf | 747 | fs/hpfs/hpfs_fs.c | put_fs_long(s->s_hpfs_fs_size, &buf->f_blocks); |
buf | 748 | fs/hpfs/hpfs_fs.c | put_fs_long(s->s_hpfs_n_free, &buf->f_bfree); |
buf | 749 | fs/hpfs/hpfs_fs.c | put_fs_long(s->s_hpfs_n_free, &buf->f_bavail); |
buf | 750 | fs/hpfs/hpfs_fs.c | put_fs_long(s->s_hpfs_dirband_size, &buf->f_files); |
buf | 751 | fs/hpfs/hpfs_fs.c | put_fs_long(s->s_hpfs_n_free_dnodes, &buf->f_ffree); |
buf | 752 | fs/hpfs/hpfs_fs.c | put_fs_long(254, &buf->f_namelen); |
buf | 867 | fs/hpfs/hpfs_fs.c | char *buf, int count) |
buf | 883 | fs/hpfs/hpfs_fs.c | start = buf; |
buf | 918 | fs/hpfs/hpfs_fs.c | memcpy_tofs(buf, block + r, n); |
buf | 925 | fs/hpfs/hpfs_fs.c | n0 = convcpy_tofs(buf, block + r, n); |
buf | 936 | fs/hpfs/hpfs_fs.c | buf += n0; |
buf | 940 | fs/hpfs/hpfs_fs.c | return buf - start; |
buf | 1565 | fs/hpfs/hpfs_fs.c | char *buf, int count) |
buf | 119 | fs/isofs/file.c | static int isofs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 231 | fs/isofs/file.c | unixify_to_fs(buf, offset+(*bhe)->b_data, chars, |
buf | 234 | fs/isofs/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 236 | fs/isofs/file.c | buf += chars; |
buf | 239 | fs/isofs/file.c | put_fs_byte(0,buf++); |
buf | 325 | fs/isofs/inode.c | void isofs_statfs (struct super_block *sb, struct statfs *buf) |
buf | 327 | fs/isofs/inode.c | put_fs_long(ISOFS_SUPER_MAGIC, &buf->f_type); |
buf | 328 | fs/isofs/inode.c | put_fs_long(1 << ISOFS_BLOCK_BITS, &buf->f_bsize); |
buf | 329 | fs/isofs/inode.c | put_fs_long(sb->u.isofs_sb.s_nzones, &buf->f_blocks); |
buf | 330 | fs/isofs/inode.c | put_fs_long(0, &buf->f_bfree); |
buf | 331 | fs/isofs/inode.c | put_fs_long(0, &buf->f_bavail); |
buf | 332 | fs/isofs/inode.c | put_fs_long(sb->u.isofs_sb.s_ninodes, &buf->f_files); |
buf | 333 | fs/isofs/inode.c | put_fs_long(0, &buf->f_ffree); |
buf | 334 | fs/isofs/inode.c | put_fs_long(NAME_MAX, &buf->f_namelen); |
buf | 19 | 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 | 213 | fs/minix/inode.c | void minix_statfs(struct super_block *sb, struct statfs *buf) |
buf | 217 | fs/minix/inode.c | put_fs_long(MINIX_SUPER_MAGIC, &buf->f_type); |
buf | 218 | fs/minix/inode.c | put_fs_long(1024, &buf->f_bsize); |
buf | 221 | fs/minix/inode.c | put_fs_long(tmp, &buf->f_blocks); |
buf | 223 | fs/minix/inode.c | put_fs_long(tmp, &buf->f_bfree); |
buf | 224 | fs/minix/inode.c | put_fs_long(tmp, &buf->f_bavail); |
buf | 225 | fs/minix/inode.c | put_fs_long(sb->u.minix_sb.s_ninodes, &buf->f_files); |
buf | 226 | fs/minix/inode.c | put_fs_long(minix_count_free_inodes(sb), &buf->f_ffree); |
buf | 227 | fs/minix/inode.c | put_fs_long(sb->u.minix_sb.s_namelen, &buf->f_namelen); |
buf | 25 | fs/msdos/dir.c | static int msdos_dir_read(struct inode * inode,struct file * filp, char * buf,int count) |
buf | 152 | fs/msdos/file.c | char *buf, |
buf | 156 | fs/msdos/file.c | char *start = buf; |
buf | 157 | fs/msdos/file.c | char *end = buf + count; |
buf | 209 | fs/msdos/file.c | && buf < end){ |
buf | 234 | fs/msdos/file.c | size = MIN(size,end-buf); |
buf | 235 | fs/msdos/file.c | memcpy_tofs(buf,data,size); |
buf | 236 | fs/msdos/file.c | buf += size; |
buf | 239 | fs/msdos/file.c | for (; size && buf < end; size--) { |
buf | 246 | fs/msdos/file.c | put_fs_byte(ch,buf++); |
buf | 252 | fs/msdos/file.c | PRINTK (("--- %d -> %d\n",count,(int)(buf-start))); |
buf | 254 | fs/msdos/file.c | if (start == buf) return -EIO; |
buf | 257 | fs/msdos/file.c | return buf-start; |
buf | 266 | fs/msdos/file.c | char *buf, |
buf | 292 | fs/msdos/file.c | for (start = buf; count || carry; count -= size) { |
buf | 317 | fs/msdos/file.c | memcpy_fromfs(bh->b_data+offset,buf,written = size); |
buf | 318 | fs/msdos/file.c | buf += size; |
buf | 329 | fs/msdos/file.c | if ((ch = get_fs_byte(buf++)) == '\n') { |
buf | 350 | fs/msdos/file.c | if (start == buf) |
buf | 355 | fs/msdos/file.c | return buf-start; |
buf | 309 | fs/msdos/inode.c | void msdos_statfs(struct super_block *sb,struct statfs *buf) |
buf | 313 | fs/msdos/inode.c | put_fs_long(sb->s_magic,&buf->f_type); |
buf | 314 | fs/msdos/inode.c | put_fs_long(MSDOS_SB(sb)->cluster_size*SECTOR_SIZE,&buf->f_bsize); |
buf | 315 | fs/msdos/inode.c | put_fs_long(MSDOS_SB(sb)->clusters,&buf->f_blocks); |
buf | 326 | fs/msdos/inode.c | put_fs_long(free,&buf->f_bfree); |
buf | 327 | fs/msdos/inode.c | put_fs_long(free,&buf->f_bavail); |
buf | 328 | fs/msdos/inode.c | put_fs_long(0,&buf->f_files); |
buf | 329 | fs/msdos/inode.c | put_fs_long(0,&buf->f_ffree); |
buf | 330 | fs/msdos/inode.c | put_fs_long(12,&buf->f_namelen); |
buf | 24 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *, struct file *filp, char *buf, |
buf | 75 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *inode, struct file *filp, char *buf, |
buf | 70 | fs/nfs/file.c | char * buf; /* data */ |
buf | 94 | fs/nfs/file.c | static int nfs_file_read(struct inode *inode, struct file *file, char *buf, |
buf | 128 | fs/nfs/file.c | memcpy_tofs(buf, cache[i].buf + pos - cache[i].file_pos, count); |
buf | 137 | fs/nfs/file.c | pos, n, buf, &fattr, 1); |
buf | 141 | fs/nfs/file.c | buf += result; |
buf | 150 | fs/nfs/file.c | data = buf; |
buf | 168 | fs/nfs/file.c | memcpy_tofs(buf, data, hunk); |
buf | 173 | fs/nfs/file.c | if (cache[tail].buf) |
buf | 174 | fs/nfs/file.c | kfree_s(cache[tail].buf, cache[tail].buf_size); |
buf | 175 | fs/nfs/file.c | cache[tail].buf = data; |
buf | 189 | fs/nfs/file.c | static int nfs_file_write(struct inode *inode, struct file *file, char *buf, |
buf | 223 | fs/nfs/file.c | pos, hunk, buf, &fattr); |
buf | 227 | 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 | 47 | fs/proc/array.c | static int read_core(struct inode * inode, struct file * file,char * buf, int count) |
buf | 72 | fs/proc/array.c | memcpy_tofs(buf,(void *) pnt, count1); |
buf | 73 | fs/proc/array.c | buf += count1; |
buf | 80 | fs/proc/array.c | put_fs_byte(0,buf); |
buf | 81 | fs/proc/array.c | buf++; |
buf | 86 | fs/proc/array.c | memcpy_tofs(buf,(void *) (p - PAGE_SIZE),count); |
buf | 111 | fs/proc/array.c | static int read_profile(struct inode *inode, struct file *file, char *buf, int count) |
buf | 127 | fs/proc/array.c | put_fs_byte(*((char *)(&sample_step)+p),buf); |
buf | 128 | fs/proc/array.c | buf++; p++; count--; read++; |
buf | 131 | fs/proc/array.c | memcpy_tofs(buf,(void *)pnt,count); |
buf | 138 | fs/proc/array.c | static int write_profile(struct inode * inode, struct file * file, char * buf, int count) |
buf | 479 | fs/proc/array.c | unsigned long ptbl, *buf, *pte, *pagedir, map_nr; |
buf | 491 | fs/proc/array.c | buf = (unsigned long *)(ptbl & PAGE_MASK); |
buf | 492 | fs/proc/array.c | for (pte = buf; pte < (buf + PTRS_PER_PAGE); ++pte) { |
buf | 521 | fs/proc/array.c | static int get_maps(int pid, char *buf) |
buf | 546 | fs/proc/array.c | sprintf(buf+sz, "...\n"); |
buf | 558 | fs/proc/array.c | sz += sprintf(buf+sz, "%08lx-%08lx %s %08lx %02x:%02x %lu\n", |
buf | 653 | fs/proc/array.c | static int array_read(struct inode * inode, struct file * file,char * buf, int count) |
buf | 679 | fs/proc/array.c | memcpy_tofs(buf, (char *) page + file->f_pos, count); |
buf | 63 | fs/proc/inode.c | void proc_statfs(struct super_block *sb, struct statfs *buf) |
buf | 65 | fs/proc/inode.c | put_fs_long(PROC_SUPER_MAGIC, &buf->f_type); |
buf | 66 | fs/proc/inode.c | put_fs_long(PAGE_SIZE/sizeof(long), &buf->f_bsize); |
buf | 67 | fs/proc/inode.c | put_fs_long(0, &buf->f_blocks); |
buf | 68 | fs/proc/inode.c | put_fs_long(0, &buf->f_bfree); |
buf | 69 | fs/proc/inode.c | put_fs_long(0, &buf->f_bavail); |
buf | 70 | fs/proc/inode.c | put_fs_long(0, &buf->f_files); |
buf | 71 | fs/proc/inode.c | put_fs_long(0, &buf->f_ffree); |
buf | 72 | 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 | 174 | fs/proc/link.c | char buf[64]; |
buf | 188 | fs/proc/link.c | i = sprintf(buf,"[%04x]:%u", dev, ino); |
buf | 193 | fs/proc/link.c | put_fs_byte(buf[i++],buffer++); |
buf | 25 | fs/proc/mem.c | static int mem_read(struct inode * inode, struct file * file,char * buf, int count) |
buf | 45 | fs/proc/mem.c | tmp = buf; |
buf | 68 | fs/proc/mem.c | return tmp-buf; |
buf | 73 | fs/proc/mem.c | static int mem_write(struct inode * inode, struct file * file,char * buf, int count) |
buf | 93 | fs/proc/mem.c | tmp = buf; |
buf | 120 | fs/proc/mem.c | if (tmp != buf) |
buf | 121 | fs/proc/mem.c | return tmp-buf; |
buf | 36 | fs/proc/net.c | char * buf, int count); |
buf | 205 | fs/proc/net.c | char * buf, int count) |
buf | 322 | fs/proc/net.c | memcpy_tofs(buf+copied, start, length); |
buf | 121 | fs/read_write.c | asmlinkage int sys_read(unsigned int fd,char * buf,unsigned int count) |
buf | 135 | fs/read_write.c | error = verify_area(VERIFY_WRITE,buf,count); |
buf | 138 | fs/read_write.c | return file->f_op->read(inode,file,buf,count); |
buf | 141 | fs/read_write.c | asmlinkage int sys_write(unsigned int fd,char * buf,unsigned int count) |
buf | 156 | fs/read_write.c | error = verify_area(VERIFY_READ,buf,count); |
buf | 159 | fs/read_write.c | written = file->f_op->write(inode,file,buf,count); |
buf | 189 | fs/stat.c | asmlinkage int sys_readlink(const char * path, char * buf, int bufsiz) |
buf | 196 | fs/stat.c | error = verify_area(VERIFY_WRITE,buf,bufsiz); |
buf | 206 | fs/stat.c | return inode->i_op->readlink(inode,buf,bufsiz); |
buf | 96 | fs/super.c | static int fs_name(unsigned int index, char * buf) |
buf | 109 | fs/super.c | err = verify_area(VERIFY_WRITE, buf, len); |
buf | 112 | fs/super.c | memcpy_tofs(buf, tmp->name, len); |
buf | 155 | fs/super.c | int get_filesystem_list(char * buf) |
buf | 162 | fs/super.c | len += sprintf(buf+len, "%s\t%s\n", |
buf | 26 | fs/sysv/dir.c | static int sysv_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 72 | fs/sysv/file.c | int sysv_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 170 | fs/sysv/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 172 | fs/sysv/file.c | buf += chars; |
buf | 175 | fs/sysv/file.c | put_fs_byte(0,buf++); |
buf | 197 | fs/sysv/file.c | static int sysv_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 253 | fs/sysv/file.c | memcpy_fromfs(p,buf,c); |
buf | 254 | fs/sysv/file.c | buf += c; |
buf | 530 | fs/sysv/inode.c | void sysv_statfs(struct super_block *sb, struct statfs *buf) |
buf | 534 | fs/sysv/inode.c | put_fs_long(sb->s_magic, &buf->f_type); /* type of filesystem */ |
buf | 535 | fs/sysv/inode.c | put_fs_long(sb->sv_block_size, &buf->f_bsize); /* block size */ |
buf | 536 | fs/sysv/inode.c | put_fs_long(sb->sv_ndatazones, &buf->f_blocks); /* total data blocks in file system */ |
buf | 538 | fs/sysv/inode.c | put_fs_long(tmp, &buf->f_bfree); /* free blocks in fs */ |
buf | 539 | fs/sysv/inode.c | put_fs_long(tmp, &buf->f_bavail); /* free blocks available to non-superuser */ |
buf | 540 | fs/sysv/inode.c | put_fs_long(sb->sv_ninodes, &buf->f_files); /* total file nodes in file system */ |
buf | 541 | fs/sysv/inode.c | put_fs_long(sysv_count_free_inodes(sb), &buf->f_ffree); /* free file nodes in fs */ |
buf | 542 | fs/sysv/inode.c | put_fs_long(SYSV_NAMELEN, &buf->f_namelen); |
buf | 30 | fs/umsdos/dir.c | int UMSDOS_dir_read(struct inode *inode,struct file *filp,char *buf, |
buf | 40 | fs/umsdos/emd.c | char *buf, |
buf | 46 | fs/umsdos/emd.c | ret = msdos_file_read(inode,filp,buf,count); |
buf | 56 | fs/umsdos/emd.c | char *buf, |
buf | 62 | fs/umsdos/emd.c | ret = msdos_file_write(inode,filp,buf,count); |
buf | 77 | fs/umsdos/emd.c | char *buf, /* buffer in kernel memory, not in user space */ |
buf | 82 | fs/umsdos/emd.c | written = umsdos_file_write_kmem (emd_dir,filp,buf,count); |
buf | 93 | fs/umsdos/emd.c | char *buf, /* buffer in kernel memory, not in user space */ |
buf | 99 | fs/umsdos/emd.c | sizeread = umsdos_file_read_kmem (emd_dir,filp,buf,count); |
buf | 230 | fs/umsdos/emd.c | struct find_buffer *buf) |
buf | 233 | fs/umsdos/emd.c | int mustmove = buf->size - buf->pos; |
buf | 237 | fs/umsdos/emd.c | memcpy (buf->buffer,buf->buffer+buf->pos,mustmove); |
buf | 239 | fs/umsdos/emd.c | buf->pos = 0; |
buf | 241 | fs/umsdos/emd.c | remain = inode->i_size - buf->filp.f_pos; |
buf | 244 | fs/umsdos/emd.c | ret = umsdos_emd_dir_read (inode,&buf->filp,buf->buffer+mustmove |
buf | 246 | fs/umsdos/emd.c | if (ret == 0) buf->size = mustmove + mustread; |
buf | 248 | fs/umsdos/emd.c | buf->size = mustmove; |
buf | 299 | fs/umsdos/emd.c | struct find_buffer buf; |
buf | 300 | fs/umsdos/emd.c | buf.pos = 0; |
buf | 301 | fs/umsdos/emd.c | buf.size = 0; |
buf | 302 | fs/umsdos/emd.c | buf.filp.f_pos = 0; |
buf | 303 | fs/umsdos/emd.c | buf.filp.f_reada = 1; |
buf | 309 | fs/umsdos/emd.c | (buf.buffer + buf.pos); |
buf | 310 | fs/umsdos/emd.c | int file_pos = buf.filp.f_pos - buf.size + buf.pos; |
buf | 311 | fs/umsdos/emd.c | if (buf.pos == buf.size){ |
buf | 312 | fs/umsdos/emd.c | ret = umsdos_fillbuf (emd_dir,&buf); |
buf | 338 | fs/umsdos/emd.c | buf.pos += UMSDOS_REC_SIZE; |
buf | 341 | fs/umsdos/emd.c | if (buf.pos+entry_size > buf.size){ |
buf | 342 | fs/umsdos/emd.c | ret = umsdos_fillbuf (emd_dir,&buf); |
buf | 358 | fs/umsdos/emd.c | buf.pos += entry_size; |
buf | 31 | fs/umsdos/file.c | char *buf, |
buf | 35 | fs/umsdos/file.c | int ret = msdos_file_read(inode,filp,buf,count); |
buf | 46 | fs/umsdos/file.c | char *buf, |
buf | 49 | fs/umsdos/file.c | return msdos_file_write(inode,filp,buf,count); |
buf | 64 | fs/umsdos/inode.c | void UMSDOS_statfs(struct super_block *sb,struct statfs *buf) |
buf | 66 | fs/umsdos/inode.c | msdos_statfs(sb,buf); |
buf | 63 | 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 | 174 | fs/xiafs/inode.c | void xiafs_statfs(struct super_block *sb, struct statfs *buf) |
buf | 178 | fs/xiafs/inode.c | put_fs_long(_XIAFS_SUPER_MAGIC, &buf->f_type); |
buf | 179 | fs/xiafs/inode.c | put_fs_long(XIAFS_ZSIZE(sb), &buf->f_bsize); |
buf | 180 | fs/xiafs/inode.c | put_fs_long(sb->u.xiafs_sb.s_ndatazones, &buf->f_blocks); |
buf | 182 | fs/xiafs/inode.c | put_fs_long(tmp, &buf->f_bfree); |
buf | 183 | fs/xiafs/inode.c | put_fs_long(tmp, &buf->f_bavail); |
buf | 184 | fs/xiafs/inode.c | put_fs_long(sb->u.xiafs_sb.s_ninodes, &buf->f_files); |
buf | 185 | fs/xiafs/inode.c | put_fs_long(xiafs_count_free_inodes(sb), &buf->f_ffree); |
buf | 186 | 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 | 36 | include/asm-sparc/openprom.h | int (*v0_rdblkdev)(int dev_desc, int num_blks, int blk_st, caddr_t buf); |
buf | 37 | include/asm-sparc/openprom.h | int (*v0_wrblkdev)(int dev_desc, int num_blks, int blk_st, caddr_t buf); |
buf | 38 | include/asm-sparc/openprom.h | int (*v0_wrnetdev)(int dev_desc, int num_bytes, caddr_t buf); |
buf | 39 | include/asm-sparc/openprom.h | int (*v0_rdnetdev)(int dev_desc, int num_bytes, caddr_t buf); |
buf | 40 | include/asm-sparc/openprom.h | int (*v0_rdchardev)(int dev_desc, int num_bytes, int dummy, caddr_t buf); |
buf | 41 | include/asm-sparc/openprom.h | int (*v0_wrchardev)(int dev_desc, int num_bytes, int dummy, caddr_t buf); |
buf | 77 | include/asm-sparc/openprom.h | int (*v2_dev_read)(int d, caddr_t buf, int nbytes); |
buf | 78 | include/asm-sparc/openprom.h | int (*v2_dev_write)(int d, caddr_t buf, int nbytes); |
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 | 423 | include/linux/fs.h | extern void refile_buffer(struct buffer_head * buf); |
buf | 424 | include/linux/fs.h | extern void set_writetime(struct buffer_head * buf, int flag); |
buf | 489 | 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 | 193 | include/linux/mm.h | extern int vread(char *buf, char *addr, int count); |
buf | 201 | include/linux/mm.h | extern void rw_swap_page(int rw, unsigned long nr, char * buf); |
buf | 212 | include/linux/mm.h | #define read_swap_page(nr,buf) \ |
buf | 213 | include/linux/mm.h | rw_swap_page(READ,(nr),(buf)) |
buf | 214 | include/linux/mm.h | #define write_swap_page(nr,buf) \ |
buf | 215 | include/linux/mm.h | rw_swap_page(WRITE,(nr),(buf)) |
buf | 163 | include/linux/msdos_fs.h | extern void msdos_statfs(struct super_block *sb,struct statfs *buf); |
buf | 449 | include/linux/sbpcd.h | #define READ_DATA(port, buf, nr) insb(port, buf, nr) |
buf | 39 | include/linux/sem.h | struct semid_ds *buf; /* buffer for IPC_STAT & IPC_SET */ |
buf | 105 | include/linux/skbuff.h | extern void skb_queue_head(struct sk_buff_head *list,struct sk_buff *buf); |
buf | 106 | include/linux/skbuff.h | extern void skb_queue_tail(struct sk_buff_head *list,struct sk_buff *buf); |
buf | 110 | include/linux/skbuff.h | extern void skb_unlink(struct sk_buff *buf); |
buf | 284 | 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 | 331 | ipc/msg.c | if (!buf) |
buf | 348 | ipc/msg.c | err = verify_area (VERIFY_WRITE, buf, sizeof (struct msginfo)); |
buf | 351 | ipc/msg.c | memcpy_tofs (buf, &msginfo, sizeof(struct msginfo)); |
buf | 355 | ipc/msg.c | if (!buf) |
buf | 357 | ipc/msg.c | err = verify_area (VERIFY_WRITE, buf, sizeof (*buf)); |
buf | 377 | ipc/msg.c | memcpy_tofs (buf, &tbuf, sizeof(*buf)); |
buf | 380 | ipc/msg.c | if (!buf) |
buf | 382 | ipc/msg.c | err = verify_area (VERIFY_READ, buf, sizeof (*buf)); |
buf | 385 | ipc/msg.c | memcpy_fromfs (&tbuf, buf, sizeof (*buf)); |
buf | 388 | ipc/msg.c | if (!buf) |
buf | 390 | ipc/msg.c | err = verify_area (VERIFY_WRITE, buf, sizeof(*buf)); |
buf | 417 | ipc/msg.c | memcpy_tofs (buf, &tbuf, sizeof (*buf)); |
buf | 153 | ipc/sem.c | struct semid_ds *buf = NULL; |
buf | 194 | ipc/sem.c | buf = arg.buf; |
buf | 195 | ipc/sem.c | i = verify_area (VERIFY_WRITE, buf, sizeof (*buf)); |
buf | 210 | ipc/sem.c | memcpy_tofs (buf, &tbuf, sizeof(*buf)); |
buf | 277 | ipc/sem.c | buf = arg.buf; |
buf | 278 | ipc/sem.c | if ((i = verify_area (VERIFY_WRITE, buf, sizeof(*buf)))) |
buf | 282 | ipc/sem.c | buf = arg.buf; |
buf | 283 | ipc/sem.c | if ((i = verify_area (VERIFY_READ, buf, sizeof (*buf)))) |
buf | 285 | ipc/sem.c | memcpy_fromfs (&tbuf, buf, sizeof (*buf)); |
buf | 333 | ipc/sem.c | memcpy_tofs (buf, &tbuf, sizeof(*buf)); |
buf | 199 | ipc/shm.c | int sys_shmctl (int shmid, int cmd, struct shmid_ds *buf) |
buf | 209 | ipc/shm.c | if (!buf) |
buf | 211 | ipc/shm.c | err = verify_area (VERIFY_READ, buf, sizeof (*buf)); |
buf | 214 | ipc/shm.c | memcpy_fromfs (&tbuf, buf, sizeof (*buf)); |
buf | 221 | ipc/shm.c | if (!buf) |
buf | 228 | ipc/shm.c | err = verify_area (VERIFY_WRITE, buf, sizeof (struct shminfo)); |
buf | 231 | ipc/shm.c | memcpy_tofs (buf, &shminfo, sizeof(struct shminfo)); |
buf | 237 | ipc/shm.c | if (!buf) |
buf | 239 | ipc/shm.c | err = verify_area (VERIFY_WRITE, buf, sizeof (shm_info)); |
buf | 248 | ipc/shm.c | memcpy_tofs (buf, &shm_info, sizeof(shm_info)); |
buf | 252 | ipc/shm.c | if (!buf) |
buf | 254 | ipc/shm.c | err = verify_area (VERIFY_WRITE, buf, sizeof (*buf)); |
buf | 273 | ipc/shm.c | memcpy_tofs (buf, &tbuf, sizeof(*buf)); |
buf | 305 | ipc/shm.c | if (!buf) |
buf | 307 | ipc/shm.c | err = verify_area (VERIFY_WRITE, buf, sizeof (*buf)); |
buf | 318 | ipc/shm.c | memcpy_tofs (buf, &tbuf, sizeof(*buf)); |
buf | 29 | ipc/util.c | extern int sys_msgctl (int msqid, int cmd, struct msqid_ds *buf); |
buf | 33 | ipc/util.c | extern int sys_shmctl (int shmid, int cmd, struct shmid_ds *buf); |
buf | 386 | kernel/bios32.c | static char buf[80]; |
buf | 405 | kernel/bios32.c | sprintf (buf, "UNKNOWN RETURN 0x%x", error); |
buf | 406 | kernel/bios32.c | return buf; |
buf | 73 | kernel/dma.c | int get_dma_list(char *buf) |
buf | 79 | kernel/dma.c | len += sprintf(buf+len, "%2d: %s\n", |
buf | 111 | kernel/ioport.c | int get_ioport_list(char *buf) |
buf | 120 | kernel/ioport.c | len+=sprintf(buf+len,"%04x\n",num); |
buf | 122 | kernel/ioport.c | len+=sprintf(buf+len,"%04x-%04x\n",from,num); |
buf | 124 | kernel/ioport.c | len+=sprintf((buf+len),"4k-Limit reached!\n"); |
buf | 193 | kernel/irq.c | int get_irq_list(char *buf) |
buf | 201 | kernel/irq.c | len += sprintf(buf+len, "%2d: %8d %c %s\n", |
buf | 40 | kernel/module.c | static int get_mod_name( char *user_name, char *buf); |
buf | 395 | kernel/module.c | get_mod_name(char *user_name, char *buf) |
buf | 400 | kernel/module.c | for (i = 0 ; (buf[i] = get_fs_byte(user_name + i)) != '\0' ; ) { |
buf | 489 | kernel/module.c | int get_module_list(char *buf) |
buf | 498 | kernel/module.c | p = buf; |
buf | 501 | kernel/module.c | if (p - buf > 4096 - 100) |
buf | 543 | kernel/module.c | return p - buf; |
buf | 550 | kernel/module.c | int get_ksyms_list(char *buf) |
buf | 555 | kernel/module.c | char *p = buf; |
buf | 564 | kernel/module.c | if (p - buf > 4096 - 100) { |
buf | 567 | kernel/module.c | return p - buf; /* avoid overflowing buffer */ |
buf | 583 | kernel/module.c | return p - buf; |
buf | 20 | kernel/panic.c | static char buf[1024]; |
buf | 24 | kernel/panic.c | vsprintf(buf, fmt, args); |
buf | 26 | kernel/panic.c | printk(KERN_EMERG "Kernel panic: %s\n",buf); |
buf | 25 | kernel/printk.c | static char buf[1024]; |
buf | 54 | kernel/printk.c | asmlinkage int sys_syslog(int type, char * buf, int len) |
buf | 69 | kernel/printk.c | if (!buf || len < 0) |
buf | 73 | 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 | 102 | kernel/printk.c | if (!buf || len < 0) |
buf | 106 | kernel/printk.c | error = verify_area(VERIFY_WRITE,buf,len); |
buf | 117 | kernel/printk.c | put_fs_byte(c, buf++); |
buf | 152 | kernel/printk.c | i = vsprintf(buf + 3, fmt, args); /* hopefully i < sizeof(buf)-4 */ |
buf | 153 | kernel/printk.c | buf_end = buf + 3 + i; |
buf | 155 | kernel/printk.c | for (p = buf + 3; p < buf_end; p++) { |
buf | 208 | kernel/printk.c | char buf[16]; |
buf | 215 | kernel/printk.c | buf[j++] = log_buf[p]; |
buf | 217 | kernel/printk.c | if (buf[j-1] != '\n' && i < log_size - 1 && j < sizeof(buf)-1) |
buf | 219 | kernel/printk.c | buf[j] = 0; |
buf | 220 | kernel/printk.c | q = buf; |
buf | 222 | kernel/printk.c | msg_level = buf[1] - '0'; |
buf | 223 | kernel/printk.c | q = buf + 3; |
buf | 227 | kernel/printk.c | if (buf[j-1] == '\n') |
buf | 134 | kernel/vsprintf.c | int vsprintf(char *buf, const char *fmt, va_list args) |
buf | 149 | kernel/vsprintf.c | for (str=buf ; *fmt ; ++fmt) { |
buf | 249 | kernel/vsprintf.c | *ip = (str - buf); |
buf | 252 | kernel/vsprintf.c | *ip = (str - buf); |
buf | 296 | kernel/vsprintf.c | return str-buf; |
buf | 299 | kernel/vsprintf.c | int sprintf(char * buf, const char *fmt, ...) |
buf | 305 | 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 | 111 | mm/swap.c | void rw_swap_page(int rw, unsigned long entry, char * buf) |
buf | 138 | mm/swap.c | ll_rw_page(rw,p->swap_device,offset,buf); |
buf | 177 | mm/swap.c | ll_rw_swap_file(rw,swapf->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 | 136 | net/inet/igmp.c | static void ip_mc_map(unsigned long addr, char *buf) |
buf | 139 | net/inet/igmp.c | buf[0]=0x01; |
buf | 140 | net/inet/igmp.c | buf[1]=0x00; |
buf | 141 | net/inet/igmp.c | buf[2]=0x5e; |
buf | 142 | net/inet/igmp.c | buf[5]=addr&0xFF; |
buf | 144 | net/inet/igmp.c | buf[4]=addr&0xFF; |
buf | 146 | net/inet/igmp.c | buf[3]=addr&0x7F; |
buf | 155 | net/inet/igmp.c | char buf[6]; |
buf | 158 | net/inet/igmp.c | ip_mc_map(addr,buf); |
buf | 159 | net/inet/igmp.c | dev_mc_add(dev,buf,ETH_ALEN,0); |
buf | 168 | net/inet/igmp.c | char buf[6]; |
buf | 171 | net/inet/igmp.c | ip_mc_map(addr,buf); |
buf | 172 | net/inet/igmp.c | dev_mc_delete(dev,buf,ETH_ALEN,0); |
buf | 57 | net/socket.c | static int sock_read(struct inode *inode, struct file *file, char *buf, |
buf | 59 | 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 | 123 | tools/build.c | for (i=0;i<sizeof buf; i++) buf[i]=0; |
buf | 126 | tools/build.c | if (read(id,buf,MINIX_HEADER) != MINIX_HEADER) |
buf | 128 | tools/build.c | if (((long *) buf)[0]!=intel_long(0x04100301)) |
buf | 130 | tools/build.c | if (((long *) buf)[1]!=intel_long(MINIX_HEADER)) |
buf | 132 | tools/build.c | if (((long *) buf)[3] != 0) |
buf | 134 | tools/build.c | if (((long *) buf)[4] != 0) |
buf | 136 | tools/build.c | if (((long *) buf)[5] != 0) |
buf | 138 | tools/build.c | if (((long *) buf)[7] != 0) |
buf | 140 | tools/build.c | i=read(id,buf,sizeof buf); |
buf | 144 | tools/build.c | if ((*(unsigned short *)(buf+510)) != (unsigned short)intel_short(0xAA55)) |
buf | 146 | tools/build.c | buf[508] = (char) minor_root; |
buf | 147 | tools/build.c | buf[509] = (char) major_root; |
buf | 148 | tools/build.c | i=write(1,buf,512); |
buf | 155 | tools/build.c | if (read(id,buf,MINIX_HEADER) != MINIX_HEADER) |
buf | 157 | tools/build.c | if (((long *) buf)[0]!=intel_long(0x04100301)) |
buf | 159 | tools/build.c | if (((long *) buf)[1]!=intel_long(MINIX_HEADER)) |
buf | 161 | tools/build.c | if (((long *) buf)[3] != 0) |
buf | 163 | tools/build.c | if (((long *) buf)[4] != 0) |
buf | 165 | tools/build.c | if (((long *) buf)[5] != 0) |
buf | 167 | tools/build.c | if (((long *) buf)[7] != 0) |
buf | 169 | tools/build.c | for (i=0 ; (c=read(id,buf,sizeof buf))>0 ; i+=c ) |
buf | 170 | tools/build.c | if (write(1,buf,c)!=c) |
buf | 180 | tools/build.c | for (c=0 ; c<sizeof(buf) ; c++) |
buf | 181 | tools/build.c | buf[c] = '\0'; |
buf | 184 | tools/build.c | if (c > sizeof(buf)) |
buf | 185 | tools/build.c | c = sizeof(buf); |
buf | 186 | tools/build.c | if (write(1,buf,c) != c) |
buf | 193 | tools/build.c | if (read(id,buf,GCC_HEADER) != GCC_HEADER) |
buf | 213 | tools/build.c | if (l > sizeof(buf)) |
buf | 214 | tools/build.c | l = sizeof(buf); |
buf | 215 | tools/build.c | if ((n=read(id, buf, l)) != l) { |
buf | 222 | tools/build.c | if (write(1, buf, l) != l) |
buf | 232 | tools/build.c | buf[0] = (sys_size & 0xff); |
buf | 233 | tools/build.c | buf[1] = ((sys_size >> 8) & 0xff); |
buf | 234 | 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); |