tag | line | file | source code |
buf | 16 | fs/block_dev.c | int block_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 50 | fs/block_dev.c | memcpy_fromfs(p,buf,chars); |
buf | 52 | fs/block_dev.c | buf += chars; |
buf | 62 | fs/block_dev.c | int block_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 155 | fs/block_dev.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 157 | fs/block_dev.c | buf += chars; |
buf | 160 | fs/block_dev.c | put_fs_byte(0,buf++); |
buf | 386 | fs/buffer.c | void brelse(struct buffer_head * buf) |
buf | 388 | fs/buffer.c | if (!buf) |
buf | 390 | fs/buffer.c | wait_on_buffer(buf); |
buf | 391 | fs/buffer.c | if (buf->b_count) { |
buf | 392 | fs/buffer.c | if (--buf->b_count) |
buf | 427 | fs/exec.c | char buf[128]; |
buf | 485 | fs/exec.c | memset(buf,0,sizeof(buf)); |
buf | 488 | fs/exec.c | retval = read_exec(inode,0,buf,128); |
buf | 492 | fs/exec.c | ex = *((struct exec *) buf); /* exec-header */ |
buf | 493 | fs/exec.c | if ((buf[0] == '#') && (buf[1] == '!') && (!sh_bang)) { |
buf | 502 | fs/exec.c | buf[127] = '\0'; |
buf | 503 | fs/exec.c | if ((cp = strchr(buf, '\n')) == NULL) |
buf | 504 | fs/exec.c | cp = buf+127; |
buf | 506 | fs/exec.c | while (cp > buf) { |
buf | 513 | fs/exec.c | for (cp = buf+2; (*cp == ' ') || (*cp == '\t'); cp++); |
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 | 164 | fs/ext/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 166 | fs/ext/file.c | buf += chars; |
buf | 169 | fs/ext/file.c | put_fs_byte(0,buf++); |
buf | 193 | fs/ext/file.c | static int ext_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 244 | fs/ext/file.c | memcpy_fromfs(p,buf,c); |
buf | 245 | fs/ext/file.c | buf += c; |
buf | 144 | fs/ext/inode.c | void ext_statfs (struct super_block *sb, struct statfs *buf) |
buf | 148 | fs/ext/inode.c | put_fs_long(EXT_SUPER_MAGIC, &buf->f_type); |
buf | 149 | fs/ext/inode.c | put_fs_long(1024, &buf->f_bsize); |
buf | 151 | fs/ext/inode.c | &buf->f_blocks); |
buf | 153 | fs/ext/inode.c | put_fs_long(tmp, &buf->f_bfree); |
buf | 154 | fs/ext/inode.c | put_fs_long(tmp, &buf->f_bavail); |
buf | 155 | fs/ext/inode.c | put_fs_long(sb->u.ext_sb.s_ninodes, &buf->f_files); |
buf | 156 | fs/ext/inode.c | put_fs_long(ext_count_free_inodes(sb), &buf->f_ffree); |
buf | 157 | fs/ext/inode.c | put_fs_long(EXT_NAME_LEN, &buf->f_namelen); |
buf | 25 | fs/ext2/dir.c | char * buf, int count) |
buf | 73 | fs/ext2/file.c | char * buf, int count) |
buf | 168 | fs/ext2/file.c | memcpy_tofs (buf, offset + (*bhe)->b_data, |
buf | 171 | fs/ext2/file.c | buf += chars; |
buf | 174 | fs/ext2/file.c | put_fs_byte (0, buf++); |
buf | 199 | fs/ext2/file.c | char * buf, int count) |
buf | 256 | fs/ext2/file.c | memcpy_fromfs (p, buf, c); |
buf | 257 | fs/ext2/file.c | buf += c; |
buf | 336 | fs/ext2/inode.c | void ext2_statfs (struct super_block * sb, struct statfs * buf) |
buf | 340 | fs/ext2/inode.c | put_fs_long (EXT2_SUPER_MAGIC, &buf->f_type); |
buf | 341 | fs/ext2/inode.c | put_fs_long (sb->s_blocksize, &buf->f_bsize); |
buf | 343 | fs/ext2/inode.c | &buf->f_blocks); |
buf | 345 | fs/ext2/inode.c | put_fs_long (tmp, &buf->f_bfree); |
buf | 348 | fs/ext2/inode.c | &buf->f_bavail); |
buf | 350 | fs/ext2/inode.c | put_fs_long (0, &buf->f_bavail); |
buf | 351 | fs/ext2/inode.c | put_fs_long (sb->u.ext2_sb.s_inodes_count, &buf->f_files); |
buf | 352 | fs/ext2/inode.c | put_fs_long (ext2_count_free_inodes(sb), &buf->f_ffree); |
buf | 353 | fs/ext2/inode.c | put_fs_long (EXT2_NAME_LEN, &buf->f_namelen); |
buf | 113 | fs/isofs/file.c | static int isofs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 235 | fs/isofs/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 237 | fs/isofs/file.c | buf += chars; |
buf | 240 | fs/isofs/file.c | put_fs_byte(0,buf++); |
buf | 243 | fs/isofs/inode.c | void isofs_statfs (struct super_block *sb, struct statfs *buf) |
buf | 245 | fs/isofs/inode.c | put_fs_long(ISOFS_SUPER_MAGIC, &buf->f_type); |
buf | 246 | fs/isofs/inode.c | put_fs_long(1 << ISOFS_BLOCK_BITS, &buf->f_bsize); |
buf | 247 | fs/isofs/inode.c | put_fs_long(sb->u.isofs_sb.s_nzones, &buf->f_blocks); |
buf | 248 | fs/isofs/inode.c | put_fs_long(0, &buf->f_bfree); |
buf | 249 | fs/isofs/inode.c | put_fs_long(0, &buf->f_bavail); |
buf | 250 | fs/isofs/inode.c | put_fs_long(sb->u.isofs_sb.s_ninodes, &buf->f_files); |
buf | 251 | fs/isofs/inode.c | put_fs_long(0, &buf->f_ffree); |
buf | 252 | 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 | 158 | fs/minix/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 160 | fs/minix/file.c | buf += chars; |
buf | 163 | fs/minix/file.c | put_fs_byte(0,buf++); |
buf | 187 | fs/minix/file.c | static int minix_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 238 | fs/minix/file.c | memcpy_fromfs(p,buf,c); |
buf | 239 | fs/minix/file.c | buf += c; |
buf | 132 | fs/minix/inode.c | void minix_statfs(struct super_block *sb, struct statfs *buf) |
buf | 136 | fs/minix/inode.c | put_fs_long(MINIX_SUPER_MAGIC, &buf->f_type); |
buf | 137 | fs/minix/inode.c | put_fs_long(1024, &buf->f_bsize); |
buf | 138 | fs/minix/inode.c | put_fs_long(sb->u.minix_sb.s_nzones << sb->u.minix_sb.s_log_zone_size, &buf->f_blocks); |
buf | 140 | fs/minix/inode.c | put_fs_long(tmp, &buf->f_bfree); |
buf | 141 | fs/minix/inode.c | put_fs_long(tmp, &buf->f_bavail); |
buf | 142 | fs/minix/inode.c | put_fs_long(sb->u.minix_sb.s_ninodes, &buf->f_files); |
buf | 143 | fs/minix/inode.c | put_fs_long(minix_count_free_inodes(sb), &buf->f_ffree); |
buf | 144 | 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 | return buf-start; |
buf | 124 | fs/msdos/file.c | if (start == buf) return -EIO; |
buf | 125 | fs/msdos/file.c | return buf-start; |
buf | 129 | fs/msdos/file.c | static int msdos_file_write(struct inode *inode,struct file *filp,char *buf, |
buf | 153 | fs/msdos/file.c | for (start = buf; count || carry; count -= size) { |
buf | 168 | fs/msdos/file.c | buf,written = size); |
buf | 169 | fs/msdos/file.c | buf += size; |
buf | 180 | fs/msdos/file.c | if ((ch = get_fs_byte(buf++)) == '\n') { |
buf | 203 | fs/msdos/file.c | return start == buf ? error : buf-start; |
buf | 260 | fs/msdos/inode.c | void msdos_statfs(struct super_block *sb,struct statfs *buf) |
buf | 264 | fs/msdos/inode.c | put_fs_long(sb->s_magic,&buf->f_type); |
buf | 265 | fs/msdos/inode.c | put_fs_long(MSDOS_SB(sb)->cluster_size*SECTOR_SIZE,&buf->f_bsize); |
buf | 266 | fs/msdos/inode.c | put_fs_long(MSDOS_SB(sb)->clusters,&buf->f_blocks); |
buf | 277 | fs/msdos/inode.c | put_fs_long(free,&buf->f_bfree); |
buf | 278 | fs/msdos/inode.c | put_fs_long(free,&buf->f_bavail); |
buf | 279 | fs/msdos/inode.c | put_fs_long(0,&buf->f_files); |
buf | 280 | fs/msdos/inode.c | put_fs_long(0,&buf->f_ffree); |
buf | 281 | fs/msdos/inode.c | put_fs_long(12,&buf->f_namelen); |
buf | 20 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *, struct file *filp, char *buf, |
buf | 71 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *inode, struct file *filp, char *buf, |
buf | 53 | fs/nfs/file.c | static int nfs_file_read(struct inode *inode, struct file *file, char *buf, |
buf | 90 | fs/nfs/file.c | memcpy_tofs(buf, data, result); |
buf | 92 | fs/nfs/file.c | buf += result; |
buf | 104 | fs/nfs/file.c | static int nfs_file_write(struct inode *inode, struct file *file, char *buf, |
buf | 135 | fs/nfs/file.c | memcpy_fromfs(data, buf, hunk); |
buf | 143 | fs/nfs/file.c | buf += hunk; |
buf | 126 | fs/nfs/inode.c | void nfs_statfs(struct super_block *sb, struct statfs *buf) |
buf | 131 | fs/nfs/inode.c | put_fs_long(NFS_SUPER_MAGIC, &buf->f_type); |
buf | 138 | fs/nfs/inode.c | put_fs_long(res.bsize, &buf->f_bsize); |
buf | 139 | fs/nfs/inode.c | put_fs_long(res.blocks, &buf->f_blocks); |
buf | 140 | fs/nfs/inode.c | put_fs_long(res.bfree, &buf->f_bfree); |
buf | 141 | fs/nfs/inode.c | put_fs_long(res.bavail, &buf->f_bavail); |
buf | 142 | fs/nfs/inode.c | put_fs_long(0, &buf->f_files); |
buf | 143 | fs/nfs/inode.c | put_fs_long(0, &buf->f_ffree); |
buf | 146 | fs/nfs/inode.c | put_fs_long(NAME_MAX, &buf->f_namelen); |
buf | 29 | fs/open.c | 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 | int sys_fstatfs(unsigned int fd, struct statfs * buf) |
buf | 55 | fs/open.c | error = verify_area(VERIFY_WRITE, buf, sizeof(struct statfs)); |
buf | 64 | fs/open.c | inode->i_sb->s_op->statfs(inode->i_sb, buf); |
buf | 16 | fs/pipe.c | static int pipe_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 35 | fs/pipe.c | memcpy_tofs(buf, PIPE_BASE(*inode)+PIPE_TAIL(*inode), chars ); |
buf | 40 | fs/pipe.c | buf += chars; |
buf | 50 | fs/pipe.c | static int pipe_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 82 | fs/pipe.c | memcpy_fromfs(PIPE_BASE(*inode)+PIPE_HEAD(*inode), buf, chars ); |
buf | 87 | fs/pipe.c | buf += chars; |
buf | 105 | fs/pipe.c | static int bad_pipe_rw(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 253 | fs/proc/array.c | unsigned long ptbl, *buf, *pte, *pagedir, map_nr; |
buf | 265 | fs/proc/array.c | buf = (void *)(ptbl & 0xfffff000); |
buf | 266 | fs/proc/array.c | for (pte = buf; pte < (buf + 1024); ++pte) { |
buf | 295 | fs/proc/array.c | static int array_read(struct inode * inode, struct file * file,char * buf, int count) |
buf | 346 | fs/proc/array.c | memcpy_tofs(buf, page + file->f_pos, count); |
buf | 59 | fs/proc/inode.c | void proc_statfs(struct super_block *sb, struct statfs *buf) |
buf | 61 | fs/proc/inode.c | put_fs_long(PROC_SUPER_MAGIC, &buf->f_type); |
buf | 62 | fs/proc/inode.c | put_fs_long(1024, &buf->f_bsize); |
buf | 63 | fs/proc/inode.c | put_fs_long(0, &buf->f_blocks); |
buf | 64 | fs/proc/inode.c | put_fs_long(0, &buf->f_bfree); |
buf | 65 | fs/proc/inode.c | put_fs_long(0, &buf->f_bavail); |
buf | 66 | fs/proc/inode.c | put_fs_long(0, &buf->f_files); |
buf | 67 | fs/proc/inode.c | put_fs_long(0, &buf->f_ffree); |
buf | 68 | fs/proc/inode.c | put_fs_long(NAME_MAX, &buf->f_namelen); |
buf | 32 | fs/proc/kmsg.c | static int kmsg_read(struct inode * inode, struct file * file,char * buf, int count) |
buf | 34 | fs/proc/kmsg.c | return sys_syslog(2,buf,count); |
buf | 97 | fs/proc/link.c | char buf[64]; |
buf | 107 | fs/proc/link.c | i = sprintf(buf,"[%04x]:%u", dev, ino); |
buf | 112 | 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 | 67 | fs/proc/mem.c | return tmp-buf; |
buf | 72 | fs/proc/mem.c | static int mem_write(struct inode * inode, struct file * file,char * buf, int count) |
buf | 92 | 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 | 70 | fs/read_write.c | 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 | 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 | 172 | fs/stat.c | int sys_readlink(const char * path, char * buf, int bufsiz) |
buf | 179 | fs/stat.c | error = verify_area(VERIFY_WRITE,buf,bufsiz); |
buf | 189 | fs/stat.c | return inode->i_op->readlink(inode,buf,bufsiz); |
buf | 60 | fs/xiafs/dir.c | struct file * filp, char * buf, int count) |
buf | 70 | fs/xiafs/file.c | xiafs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 156 | fs/xiafs/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 158 | fs/xiafs/file.c | buf += chars; |
buf | 161 | fs/xiafs/file.c | put_fs_byte(0,buf++); |
buf | 186 | fs/xiafs/file.c | xiafs_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 237 | fs/xiafs/file.c | memcpy_fromfs(cp,buf,c); |
buf | 238 | fs/xiafs/file.c | buf += c; |
buf | 144 | fs/xiafs/inode.c | void xiafs_statfs(struct super_block *sb, struct statfs *buf) |
buf | 148 | fs/xiafs/inode.c | put_fs_long(_XIAFS_SUPER_MAGIC, &buf->f_type); |
buf | 149 | fs/xiafs/inode.c | put_fs_long(XIAFS_ZSIZE(sb), &buf->f_bsize); |
buf | 150 | fs/xiafs/inode.c | put_fs_long(sb->u.xiafs_sb.s_ndatazones, &buf->f_blocks); |
buf | 152 | fs/xiafs/inode.c | put_fs_long(tmp, &buf->f_bfree); |
buf | 153 | fs/xiafs/inode.c | put_fs_long(tmp, &buf->f_bavail); |
buf | 154 | fs/xiafs/inode.c | put_fs_long(sb->u.xiafs_sb.s_ninodes, &buf->f_files); |
buf | 155 | fs/xiafs/inode.c | put_fs_long(xiafs_count_free_inodes(sb), &buf->f_ffree); |
buf | 156 | fs/xiafs/inode.c | put_fs_long(_XIAFS_NAME_LEN, &buf->f_namelen); |
buf | 368 | include/linux/fs.h | extern void brelse(struct buffer_head * buf); |
buf | 16 | include/linux/kernel.h | int sprintf(char * buf, const char * fmt, ...); |
buf | 119 | include/linux/mm.h | extern void rw_swap_page(int rw, unsigned long nr, char * buf); |
buf | 121 | include/linux/mm.h | #define read_swap_page(nr,buf) \ |
buf | 122 | include/linux/mm.h | rw_swap_page(READ,(nr),(buf)) |
buf | 123 | include/linux/mm.h | #define write_swap_page(nr,buf) \ |
buf | 124 | 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 | 69 | include/linux/tty.h | unsigned char buf[TTY_BUF_SIZE]; |
buf | 130 | include/linux/tty.h | #define LAST(a) ((a)->buf[(TTY_BUF_SIZE-1)&((a)->head-1)]) |
buf | 239 | include/linux/tty.h | char * buf, int nr); |
buf | 241 | include/linux/tty.h | char * buf, int nr); |
buf | 47 | init/main.c | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
buf | 89 | kernel/blk_drv/hd.c | #define port_read(port,buf,nr) \ |
buf | 90 | kernel/blk_drv/hd.c | __asm__("cld;rep;insw"::"d" (port),"D" (buf),"c" (nr):"cx","di") |
buf | 92 | kernel/blk_drv/hd.c | #define port_write(port,buf,nr) \ |
buf | 93 | kernel/blk_drv/hd.c | __asm__("cld;rep;outsw"::"d" (port),"S" (buf),"c" (nr):"cx","si") |
buf | 329 | kernel/blk_drv/ll_rw_blk.c | void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buf) |
buf | 349 | kernel/blk_drv/ll_rw_blk.c | for (i=0; i<nb; i++, buf += BLOCK_SIZE) |
buf | 367 | kernel/blk_drv/ll_rw_blk.c | req->buffer = buf; |
buf | 712 | kernel/blk_drv/scsi/aha1542.c | unchar buf[8]; |
buf | 716 | kernel/blk_drv/scsi/aha1542.c | for (i = 0; i < sizeof(buf); ++i) buf[i] = 0x87; |
buf | 718 | kernel/blk_drv/scsi/aha1542.c | if (!aha1542_command(i, cmd, buf, sizeof(buf))) { |
buf | 720 | kernel/blk_drv/scsi/aha1542.c | i, xscsi2int(buf+4), xscsi2int(buf)); |
buf | 264 | kernel/blk_drv/scsi/fdomain.c | #define insw( buf, count, port ) \ |
buf | 266 | kernel/blk_drv/scsi/fdomain.c | ( "cld;rep;insw"::"d" (port),"D" (buf),"c" (count):"cx","di" ) |
buf | 268 | kernel/blk_drv/scsi/fdomain.c | #define outsw( buf, count, port ) \ |
buf | 270 | kernel/blk_drv/scsi/fdomain.c | ("cld;rep;outsw"::"d" (port),"S" (buf),"c" (count):"cx","si") |
buf | 353 | kernel/blk_drv/scsi/fdomain.c | unsigned char buf[buflen]; |
buf | 482 | kernel/blk_drv/scsi/fdomain.c | SCinit.request_buffer = SCinit.buffer = buf; |
buf | 483 | kernel/blk_drv/scsi/fdomain.c | SCinit.request_bufflen = SCinit.bufflen = sizeof(buf)-1; |
buf | 498 | kernel/blk_drv/scsi/fdomain.c | for (j = 8; j < (buf[4] < 32 ? buf[4] : 32); j++) |
buf | 499 | kernel/blk_drv/scsi/fdomain.c | printk( "%c", buf[j] >= 20 ? buf[j] : ' ' ); |
buf | 505 | kernel/blk_drv/scsi/fdomain.c | blocks = (buf[0] << 24) | (buf[1] << 16) |
buf | 506 | kernel/blk_drv/scsi/fdomain.c | | (buf[2] << 8) | buf[3]; |
buf | 507 | kernel/blk_drv/scsi/fdomain.c | size = (buf[4] << 24) | (buf[5] << 16) | (buf[6] << 8) | buf[7]; |
buf | 146 | kernel/blk_drv/scsi/scsi_ioctl.c | char * buf; |
buf | 168 | kernel/blk_drv/scsi/scsi_ioctl.c | buf = scsi_malloc(needed); |
buf | 169 | kernel/blk_drv/scsi/scsi_ioctl.c | if (!buf) return -ENOMEM; |
buf | 171 | kernel/blk_drv/scsi/scsi_ioctl.c | buf = NULL; |
buf | 174 | kernel/blk_drv/scsi/scsi_ioctl.c | memcpy_fromfs ((void *) buf, (void *) (cmd_in + cmdlen), inlen > MAX_BUF ? MAX_BUF : inlen); |
buf | 182 | kernel/blk_drv/scsi/scsi_ioctl.c | scsi_do_cmd(SCpnt, cmd, buf, ((outlen > MAX_BUF) ? |
buf | 195 | kernel/blk_drv/scsi/scsi_ioctl.c | memcpy_tofs ((void *) cmd_in, buf, (outlen > MAX_BUF) ? MAX_BUF : outlen); |
buf | 198 | kernel/blk_drv/scsi/scsi_ioctl.c | if (buf) scsi_free(buf, needed); |
buf | 209 | kernel/blk_drv/scsi/scsi_ioctl.c | printk("%02x ", buf[i]); |
buf | 1401 | kernel/blk_drv/scsi/seagate.c | unsigned char buf[256 + sizeof(int) * 2], cmd[6], *data, *page; |
buf | 1418 | kernel/blk_drv/scsi/seagate.c | sizes = (int *) buf; |
buf | 1446 | kernel/blk_drv/scsi/seagate.c | if (!(result = scsi_ioctl (disk, SCSI_IOCTL_SEND_COMMAND, (void *) buf))) { |
buf | 1459 | kernel/blk_drv/scsi/seagate.c | if (!(result = scsi_ioctl (disk, SCSI_IOCTL_SEND_COMMAND, (void *) buf))) { |
buf | 546 | kernel/blk_drv/scsi/st.c | int st_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 599 | kernel/blk_drv/scsi/st.c | b_point = buf; |
buf | 685 | kernel/blk_drv/scsi/st.c | int st_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 820 | kernel/blk_drv/scsi/st.c | memcpy_tofs(buf, scsi_tapes[dev].buffer->b_data + |
buf | 823 | kernel/blk_drv/scsi/st.c | buf += transfer; |
buf | 322 | kernel/blk_drv/scsi/ultrastor.c | static char buf[64]; |
buf | 324 | kernel/blk_drv/scsi/ultrastor.c | (void)sprintf(buf, "UltraStor %s SCSI @ Port %03X BIOS %05X IRQ%u DMA%u\n", |
buf | 329 | kernel/blk_drv/scsi/ultrastor.c | return buf; |
buf | 557 | kernel/blk_drv/scsi/wd7000.c | extern int vsprintf(char *buf, const char *fmt, va_list args); |
buf | 480 | kernel/blk_drv/xd.c | u_char cmdblk[6],buf[64]; |
buf | 483 | kernel/blk_drv/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
buf | 484 | kernel/blk_drv/xd.c | xd_info[drive].heads = buf[0x0A]; /* heads */ |
buf | 485 | kernel/blk_drv/xd.c | xd_info[drive].cylinders = ((u_short *) (buf))[0x04]; /* cylinders */ |
buf | 488 | kernel/blk_drv/xd.c | xd_info[drive].rwrite = ((u_short *) (buf + 1))[0x05]; /* reduced write */ |
buf | 489 | kernel/blk_drv/xd.c | xd_info[drive].precomp = ((u_short *) (buf + 1))[0x06]; /* write precomp */ |
buf | 490 | kernel/blk_drv/xd.c | xd_info[drive].ecc = buf[0x0F]; /* ecc length */ |
buf | 494 | kernel/blk_drv/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 | 520 | kernel/blk_drv/xd.c | u_char cmdblk[6],buf[0x200]; |
buf | 523 | kernel/blk_drv/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
buf | 524 | kernel/blk_drv/xd.c | xd_info[drive].heads = buf[0x1AF]; /* heads */ |
buf | 525 | kernel/blk_drv/xd.c | xd_info[drive].cylinders = ((u_short *) (buf + 1))[0xD6]; /* cylinders */ |
buf | 528 | kernel/blk_drv/xd.c | xd_info[drive].rwrite = ((u_short *) (buf))[0xD8]; /* reduced write */ |
buf | 529 | kernel/blk_drv/xd.c | xd_info[drive].wprecomp = ((u_short *) (buf))[0xDA]; /* write precomp */ |
buf | 530 | kernel/blk_drv/xd.c | xd_info[drive].ecc = buf[0x1B4]; /* ecc length */ |
buf | 532 | kernel/blk_drv/xd.c | xd_info[drive].control = buf[0x1B5]; /* control byte */ |
buf | 534 | kernel/blk_drv/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 | 557 | kernel/blk_drv/xd.c | u_char cmdblk[6],buf[0x200]; |
buf | 560 | kernel/blk_drv/xd.c | if (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) { |
buf | 561 | kernel/blk_drv/xd.c | xd_info[drive].heads = buf[0x04]; /* heads */ |
buf | 562 | kernel/blk_drv/xd.c | xd_info[drive].cylinders = (buf[0x02] << 8) | buf[0x03]; /* cylinders */ |
buf | 563 | kernel/blk_drv/xd.c | xd_info[drive].sectors = buf[0x05]; /* sectors */ |
buf | 1438 | kernel/chr_drv/console.c | char *sptr, *buf = (char *)arg; |
buf | 1441 | kernel/chr_drv/console.c | l = verify_area(VERIFY_WRITE, buf,2+video_num_columns*video_num_lines); |
buf | 1444 | kernel/chr_drv/console.c | currcons = get_fs_byte(buf+1); |
buf | 1447 | kernel/chr_drv/console.c | put_fs_byte((char)(video_num_lines),buf++); |
buf | 1448 | kernel/chr_drv/console.c | put_fs_byte((char)(video_num_columns),buf++); |
buf | 1452 | kernel/chr_drv/console.c | put_fs_byte(*sptr++,buf++); |
buf | 153 | kernel/chr_drv/keyboard.c | qp->buf[qp->head]=ch; |
buf | 171 | kernel/chr_drv/keyboard.c | qp->buf[qp->head]=ch; |
buf | 303 | kernel/chr_drv/keyboard.c | char buf[] = { 0x1b, 0x4f, 0x00, 0x00 }; |
buf | 305 | kernel/chr_drv/keyboard.c | buf[2] = key; |
buf | 306 | kernel/chr_drv/keyboard.c | puts_queue(buf); |
buf | 1247 | kernel/chr_drv/keyboard.c | char buf[] = { 0x1b, '[', 0, 0, 0 }; /* must not be static */ |
buf | 1249 | kernel/chr_drv/keyboard.c | buf[2]=cur_table[sc]; |
buf | 1250 | kernel/chr_drv/keyboard.c | if (buf[2] < '9') |
buf | 1251 | kernel/chr_drv/keyboard.c | buf[3]='~'; |
buf | 1253 | kernel/chr_drv/keyboard.c | if ((buf[2] >= 'A' && buf[2] <= 'D') ? |
buf | 1256 | kernel/chr_drv/keyboard.c | buf[1]='O'; |
buf | 1257 | kernel/chr_drv/keyboard.c | puts_queue(buf); |
buf | 122 | kernel/chr_drv/lp.c | static int lp_write_interrupt(struct inode * inode, struct file * file, char * buf, int count) |
buf | 134 | kernel/chr_drv/lp.c | memcpy_fromfs(lp->lp_buffer, buf, copy_size); |
buf | 181 | kernel/chr_drv/lp.c | buf += bytes_written; |
buf | 190 | kernel/chr_drv/lp.c | char * buf, int count) |
buf | 194 | kernel/chr_drv/lp.c | char c, *temp = buf; |
buf | 204 | kernel/chr_drv/lp.c | temp = buf; |
buf | 220 | kernel/chr_drv/lp.c | return temp-buf?temp-buf:-ENOSPC; |
buf | 228 | kernel/chr_drv/lp.c | return temp-buf?temp-buf:-EIO; |
buf | 237 | kernel/chr_drv/lp.c | return temp-buf?temp-buf:-EFAULT; |
buf | 245 | kernel/chr_drv/lp.c | if (temp != buf) |
buf | 246 | kernel/chr_drv/lp.c | return temp-buf; |
buf | 260 | kernel/chr_drv/lp.c | return temp-buf; |
buf | 263 | kernel/chr_drv/lp.c | static int lp_write(struct inode * inode, struct file * file, char * buf, int count) |
buf | 266 | kernel/chr_drv/lp.c | return lp_write_interrupt(inode, file, buf, count); |
buf | 268 | kernel/chr_drv/lp.c | return lp_write_polled(inode, file, buf, count); |
buf | 22 | kernel/chr_drv/mem.c | static int read_ram(struct inode * inode, struct file * file,char * buf, int count) |
buf | 27 | kernel/chr_drv/mem.c | static int write_ram(struct inode * inode, struct file * file,char * buf, int count) |
buf | 32 | kernel/chr_drv/mem.c | static int read_core(struct inode * inode, struct file * file,char * buf, int count) |
buf | 57 | kernel/chr_drv/mem.c | memcpy_tofs(buf,(void *) pnt, count1); |
buf | 58 | kernel/chr_drv/mem.c | buf += count1; |
buf | 65 | kernel/chr_drv/mem.c | put_fs_byte(0,buf); |
buf | 66 | kernel/chr_drv/mem.c | buf++; |
buf | 71 | kernel/chr_drv/mem.c | memcpy_tofs(buf,(void *) (p - 4096),count); |
buf | 77 | kernel/chr_drv/mem.c | static int read_mem(struct inode * inode, struct file * file,char * buf, int count) |
buf | 90 | kernel/chr_drv/mem.c | put_fs_byte(0,buf); |
buf | 91 | kernel/chr_drv/mem.c | buf++; |
buf | 96 | kernel/chr_drv/mem.c | memcpy_tofs(buf,(void *) p,count); |
buf | 102 | kernel/chr_drv/mem.c | static int write_mem(struct inode * inode, struct file * file,char * buf, int count) |
buf | 116 | kernel/chr_drv/mem.c | buf++; |
buf | 121 | kernel/chr_drv/mem.c | memcpy_fromfs((void *) p,buf,count); |
buf | 139 | kernel/chr_drv/mem.c | static int read_port(struct inode * inode,struct file * file,char * buf, int count) |
buf | 142 | kernel/chr_drv/mem.c | char * tmp = buf; |
buf | 150 | kernel/chr_drv/mem.c | return tmp-buf; |
buf | 153 | kernel/chr_drv/mem.c | static int write_port(struct inode * inode,struct file * file,char * buf, int count) |
buf | 156 | kernel/chr_drv/mem.c | char * tmp = buf; |
buf | 164 | kernel/chr_drv/mem.c | return tmp-buf; |
buf | 167 | kernel/chr_drv/mem.c | static int read_null(struct inode * node,struct file * file,char * buf,int count) |
buf | 172 | kernel/chr_drv/mem.c | static int write_null(struct inode * inode,struct file * file,char * buf, int count) |
buf | 177 | kernel/chr_drv/mem.c | static int read_zero(struct inode * node,struct file * file,char * buf,int count) |
buf | 182 | kernel/chr_drv/mem.c | put_fs_byte(0,buf); |
buf | 183 | kernel/chr_drv/mem.c | buf++; |
buf | 188 | kernel/chr_drv/mem.c | static int write_zero(struct inode * inode,struct file * file,char * buf, int count) |
buf | 68 | kernel/chr_drv/psaux.c | unsigned char buf[AUX_BUF_SIZE]; |
buf | 126 | kernel/chr_drv/psaux.c | result = queue->buf[queue->tail]; |
buf | 149 | kernel/chr_drv/psaux.c | queue->buf[head] = inb(AUX_INPUT_PORT); |
buf | 227 | kernel/chr_drv/serial.c | queue->buf[head++]= TTY_BREAK; |
buf | 230 | kernel/chr_drv/serial.c | queue->buf[head++]= TTY_PARITY; |
buf | 232 | kernel/chr_drv/serial.c | queue->buf[head++]= TTY_FRAME; |
buf | 235 | kernel/chr_drv/serial.c | queue->buf[head++] = ch; |
buf | 262 | kernel/chr_drv/serial.c | serial_outp(info, UART_TX, queue->buf[tail++]); |
buf | 704 | kernel/chr_drv/serial.c | serial_outp(info, UART_TX, queue->buf[tail++]); |
buf | 100 | kernel/chr_drv/tty_io.c | queue->buf[queue->head] = c; |
buf | 113 | kernel/chr_drv/tty_io.c | result = 0xff & queue->buf[queue->tail]; |
buf | 137 | kernel/chr_drv/tty_io.c | *p++ = tty->read_q.buf[tail++]; |
buf | 169 | kernel/chr_drv/tty_io.c | static int hung_up_tty_read(struct inode * inode, struct file * file, char * buf, int count) |
buf | 174 | kernel/chr_drv/tty_io.c | static int hung_up_tty_write(struct inode * inode, struct file * file, char * buf, int count) |
buf | 493 | kernel/chr_drv/tty_io.c | c = 0xff & tty->read_q.buf[tty->read_q.tail]; |
buf | 702 | kernel/chr_drv/tty_io.c | static int read_chan(struct tty_struct * tty, struct file * file, char * buf, int nr) |
buf | 706 | kernel/chr_drv/tty_io.c | char * b=buf; |
buf | 786 | kernel/chr_drv/tty_io.c | if (b-buf >= minimum || !current->timeout) |
buf | 811 | kernel/chr_drv/tty_io.c | if ((b-buf) > 1) |
buf | 812 | kernel/chr_drv/tty_io.c | return b-buf; |
buf | 814 | kernel/chr_drv/tty_io.c | if (b-buf) |
buf | 815 | kernel/chr_drv/tty_io.c | return b-buf; |
buf | 859 | kernel/chr_drv/tty_io.c | static int write_chan(struct tty_struct * tty, struct file * file, char * buf, int nr) |
buf | 862 | kernel/chr_drv/tty_io.c | char c, *b=buf; |
buf | 911 | kernel/chr_drv/tty_io.c | if (b-buf) |
buf | 912 | kernel/chr_drv/tty_io.c | return b-buf; |
buf | 920 | kernel/chr_drv/tty_io.c | static int tty_read(struct inode * inode, struct file * file, char * buf, int count) |
buf | 945 | kernel/chr_drv/tty_io.c | i = (ldiscs[tty->disc].read)(tty,file,buf,count); |
buf | 953 | kernel/chr_drv/tty_io.c | static int tty_write(struct inode * inode, struct file * file, char * buf, int count) |
buf | 981 | kernel/chr_drv/tty_io.c | i = (ldiscs[tty->disc].write)(tty,file,buf,count); |
buf | 1392 | kernel/chr_drv/tty_io.c | tty->write_q.buf[head++] = *p++; |
buf | 1438 | kernel/chr_drv/tty_io.c | tty->write_q.buf[head++] = *p++; |
buf | 23 | kernel/printk.c | static char buf[1024]; |
buf | 25 | kernel/printk.c | extern int vsprintf(char * buf, const char * fmt, va_list args); |
buf | 48 | kernel/printk.c | int sys_syslog(int type, char * buf, int len) |
buf | 62 | kernel/printk.c | if (!buf || len < 0) |
buf | 66 | kernel/printk.c | verify_area(VERIFY_WRITE,buf,len); |
buf | 81 | kernel/printk.c | put_fs_byte(c,buf); |
buf | 82 | kernel/printk.c | buf++; |
buf | 89 | kernel/printk.c | if (!buf || len < 0) |
buf | 93 | kernel/printk.c | verify_area(VERIFY_WRITE,buf,len); |
buf | 102 | kernel/printk.c | put_fs_byte(c, buf++); |
buf | 127 | kernel/printk.c | i=vsprintf(buf,fmt,args); |
buf | 130 | kernel/printk.c | log_buf[(log_start+log_size) & 4095] = buf[j]; |
buf | 139 | kernel/printk.c | (*console_print_proc)(buf); |
buf | 153 | kernel/printk.c | char buf[16]; |
buf | 158 | kernel/printk.c | buf[j++] = log_buf[p]; |
buf | 160 | kernel/printk.c | if (j < sizeof(buf)-1) |
buf | 162 | kernel/printk.c | buf[j] = 0; |
buf | 163 | kernel/printk.c | (*proc)(buf); |
buf | 166 | kernel/printk.c | buf[j] = 0; |
buf | 167 | kernel/printk.c | (*proc)(buf); |
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 | 245 | kernel/vsprintf.c | *ip = (str - buf); |
buf | 259 | kernel/vsprintf.c | return str-buf; |
buf | 262 | kernel/vsprintf.c | int sprintf(char * buf, const char *fmt, ...) |
buf | 268 | 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 | 56 | mm/swap.c | void rw_swap_page(int rw, unsigned long entry, char * buf) |
buf | 79 | mm/swap.c | ll_rw_page(rw,p->swap_device,offset,buf); |
buf | 90 | mm/swap.c | ll_rw_swap_file(rw,p->swap_file->i_dev, zones,4,buf); |
buf | 50 | net/socket.c | static int sock_read(struct inode *inode, struct file *file, char *buf, |
buf | 52 | net/socket.c | static int sock_write(struct inode *inode, struct file *file, char *buf, |
buf | 95 | net/tcp/ip.c | static char buf[100]; |
buf | 97 | net/tcp/ip.c | sprintf(buf,"%d.%d.%d.%d", |
buf | 102 | net/tcp/ip.c | return buf; |
buf | 24 | net/unix.c | char *buf; |
buf | 118 | net/unix.c | char buf[sizeof(sockun->sun_path) + 1]; |
buf | 123 | net/unix.c | else if (sockaddr_len <= 0 || sockaddr_len >= sizeof(buf)) |
buf | 126 | net/unix.c | memcpy(buf, sockun->sun_path, sockaddr_len); |
buf | 127 | net/unix.c | buf[sockaddr_len] = '\0'; |
buf | 128 | net/unix.c | printk("sockaddr_un: '%s'[%d]\n", buf, |
buf | 223 | net/unix.c | upd->buf = NULL; |
buf | 246 | net/unix.c | if (upd->buf) { |
buf | 247 | net/unix.c | free_page((unsigned long)upd->buf); |
buf | 248 | net/unix.c | upd->buf = NULL; |
buf | 273 | net/unix.c | if (!(upd->buf = (char *)get_free_page(GFP_USER))) { |
buf | 585 | net/unix.c | memcpy_tofs(ubuf, upd->buf + upd->bp_tail, cando); |
buf | 663 | net/unix.c | memcpy_fromfs(pupd->buf + pupd->bp_head, ubuf, cando); |
buf | 89 | tools/build.c | char buf[1024]; |
buf | 90 | tools/build.c | struct exec *ex = (struct exec *)buf; |
buf | 120 | tools/build.c | for (i=0;i<sizeof buf; i++) buf[i]=0; |
buf | 123 | tools/build.c | if (read(id,buf,MINIX_HEADER) != MINIX_HEADER) |
buf | 125 | tools/build.c | if (((long *) buf)[0]!=intel_long(0x04100301)) |
buf | 127 | tools/build.c | if (((long *) buf)[1]!=intel_long(MINIX_HEADER)) |
buf | 129 | tools/build.c | if (((long *) buf)[3] != 0) |
buf | 131 | tools/build.c | if (((long *) buf)[4] != 0) |
buf | 133 | tools/build.c | if (((long *) buf)[5] != 0) |
buf | 135 | tools/build.c | if (((long *) buf)[7] != 0) |
buf | 137 | tools/build.c | i=read(id,buf,sizeof buf); |
buf | 141 | tools/build.c | if ((*(unsigned short *)(buf+510)) != (unsigned short)intel_short(0xAA55)) |
buf | 143 | tools/build.c | buf[508] = (char) minor_root; |
buf | 144 | tools/build.c | buf[509] = (char) major_root; |
buf | 145 | tools/build.c | i=write(1,buf,512); |
buf | 152 | tools/build.c | if (read(id,buf,MINIX_HEADER) != MINIX_HEADER) |
buf | 154 | tools/build.c | if (((long *) buf)[0]!=intel_long(0x04100301)) |
buf | 156 | tools/build.c | if (((long *) buf)[1]!=intel_long(MINIX_HEADER)) |
buf | 158 | tools/build.c | if (((long *) buf)[3] != 0) |
buf | 160 | tools/build.c | if (((long *) buf)[4] != 0) |
buf | 162 | tools/build.c | if (((long *) buf)[5] != 0) |
buf | 164 | tools/build.c | if (((long *) buf)[7] != 0) |
buf | 166 | tools/build.c | for (i=0 ; (c=read(id,buf,sizeof buf))>0 ; i+=c ) |
buf | 167 | tools/build.c | if (write(1,buf,c)!=c) |
buf | 176 | tools/build.c | for (c=0 ; c<sizeof(buf) ; c++) |
buf | 177 | tools/build.c | buf[c] = '\0'; |
buf | 180 | tools/build.c | if (c > sizeof(buf)) |
buf | 181 | tools/build.c | c = sizeof(buf); |
buf | 182 | tools/build.c | if (write(1,buf,c) != c) |
buf | 189 | tools/build.c | if (read(id,buf,GCC_HEADER) != GCC_HEADER) |
buf | 202 | tools/build.c | if (l > sizeof(buf)) |
buf | 203 | tools/build.c | l = sizeof(buf); |
buf | 204 | tools/build.c | if ((n=read(id, buf, l)) != l) { |
buf | 211 | tools/build.c | write(1, buf, l); |
buf | 216 | tools/build.c | buf[0] = (sys_size & 0xff); |
buf | 217 | tools/build.c | buf[1] = ((sys_size >> 8) & 0xff); |
buf | 218 | tools/build.c | write(1, buf, 2); |
buf | 238 | zBoot/gzip.h | extern int file_read OF((char *buf, unsigned size)); |
buf | 257 | zBoot/gzip.h | ulg flush_block OF((char *buf, ulg stored_len, int eof)); |
buf | 264 | zBoot/gzip.h | void copy_block OF((char *buf, unsigned len, int header)); |
buf | 265 | zBoot/gzip.h | extern int (*read_buf) OF((char *buf, unsigned size)); |
buf | 101 | zBoot/unzip.c | uch buf[EXTHDR]; /* extended local header */ |
buf | 149 | zBoot/unzip.c | buf[n] = (uch)get_byte(); /* may cause an error if EOF */ |
buf | 151 | zBoot/unzip.c | orig_crc = LG(buf); |
buf | 152 | zBoot/unzip.c | orig_len = LG(buf+4); |
buf | 161 | zBoot/unzip.c | buf[n] = (uch)get_byte(); /* may cause an error if EOF */ |
buf | 163 | zBoot/unzip.c | orig_crc = LG(buf+4); |
buf | 164 | zBoot/unzip.c | orig_len = LG(buf+12); |
buf | 39 | zBoot/xtract.c | char buf[1024]; |
buf | 43 | zBoot/xtract.c | struct exec *ex = (struct exec *)buf; |
buf | 50 | zBoot/xtract.c | if (read(id,buf,GCC_HEADER) != GCC_HEADER) |
buf | 64 | zBoot/xtract.c | if (l > sizeof(buf)) l = sizeof(buf); |
buf | 66 | zBoot/xtract.c | if ((n=read(id, buf, l)) !=l) |
buf | 76 | zBoot/xtract.c | write(1, buf, l); |