tag | line | file | source code |
buffer | 743 | fs/ext/namei.c | #define PARENT_INO(buffer) \ |
buffer | 744 | fs/ext/namei.c | ((struct ext_dir_entry *) ((char *) buffer + \ |
buffer | 745 | fs/ext/namei.c | ((struct ext_dir_entry *) buffer)->rec_len))->inode |
buffer | 747 | fs/ext/namei.c | #define PARENT_NAME(buffer) \ |
buffer | 748 | fs/ext/namei.c | ((struct ext_dir_entry *) ((char *) buffer + \ |
buffer | 749 | fs/ext/namei.c | ((struct ext_dir_entry *) buffer)->rec_len))->name |
buffer | 86 | fs/ext/symlink.c | static int ext_readlink(struct inode * inode, char * buffer, int buflen) |
buffer | 105 | fs/ext/symlink.c | put_fs_byte(c,buffer++); |
buffer | 751 | fs/ext2/namei.c | #define PARENT_INO(buffer) \ |
buffer | 752 | fs/ext2/namei.c | ((struct ext2_dir_entry *) ((char *) buffer + \ |
buffer | 753 | fs/ext2/namei.c | ((struct ext2_dir_entry *) buffer)->rec_len))->inode |
buffer | 755 | fs/ext2/namei.c | #define PARENT_NAME(buffer) \ |
buffer | 756 | fs/ext2/namei.c | ((struct ext2_dir_entry *) ((char *) buffer + \ |
buffer | 757 | fs/ext2/namei.c | ((struct ext2_dir_entry *) buffer)->rec_len))->name |
buffer | 92 | fs/ext2/symlink.c | static int ext2_readlink (struct inode * inode, char * buffer, int buflen) |
buffer | 118 | fs/ext2/symlink.c | put_fs_byte (c, buffer++); |
buffer | 74 | fs/isofs/file.c | static inline void unixify_text_buffer(char * buffer, int chars, int mode) |
buffer | 77 | fs/isofs/file.c | if(*buffer == 0x1a) *buffer = 0x0a; |
buffer | 78 | fs/isofs/file.c | if(*buffer == 0x0d){ |
buffer | 79 | fs/isofs/file.c | if(mode == ISOFS_FILE_TEXT_M) *buffer = 0x0a; |
buffer | 80 | fs/isofs/file.c | if(mode == ISOFS_FILE_TEXT) *buffer = ' '; |
buffer | 82 | fs/isofs/file.c | buffer++; |
buffer | 39 | fs/isofs/rock.c | char * buffer = 0 |
buffer | 53 | fs/isofs/rock.c | {if (buffer) kfree(buffer); \ |
buffer | 57 | fs/isofs/rock.c | buffer = kmalloc(cont_size,GFP_KERNEL); \ |
buffer | 64 | fs/isofs/rock.c | memcpy(buffer, bh->b_data, cont_size); \ |
buffer | 66 | fs/isofs/rock.c | chr = buffer; \ |
buffer | 149 | fs/isofs/rock.c | if(buffer) kfree(buffer); |
buffer | 215 | fs/isofs/rock.c | if (buffer) kfree(buffer); |
buffer | 231 | fs/isofs/rock.c | if(buffer) kfree(buffer); |
buffer | 354 | fs/isofs/rock.c | if(buffer) kfree(buffer); |
buffer | 467 | fs/isofs/rock.c | if(buffer) kfree(buffer); |
buffer | 79 | fs/isofs/symlink.c | static int isofs_readlink(struct inode * inode, char * buffer, int buflen) |
buffer | 101 | fs/isofs/symlink.c | put_fs_byte(c,buffer++); |
buffer | 640 | fs/minix/namei.c | #define PARENT_INO(buffer) \ |
buffer | 641 | fs/minix/namei.c | (((struct minix_dir_entry *) ((buffer)+info->s_dirsize))->inode) |
buffer | 79 | fs/minix/symlink.c | static int minix_readlink(struct inode * inode, char * buffer, int buflen) |
buffer | 98 | fs/minix/symlink.c | put_fs_byte(c,buffer++); |
buffer | 83 | fs/nfs/symlink.c | static int nfs_readlink(struct inode *inode, char *buffer, int buflen) |
buffer | 104 | fs/nfs/symlink.c | put_fs_byte(c,buffer++); |
buffer | 31 | fs/proc/array.c | static int get_loadavg(char * buffer) |
buffer | 38 | fs/proc/array.c | return sprintf(buffer,"%d.%02d %d.%02d %d.%02d\n", |
buffer | 44 | fs/proc/array.c | static int get_uptime(char * buffer) |
buffer | 51 | fs/proc/array.c | return sprintf(buffer,"%d.%02d %d.%02d\n", |
buffer | 58 | fs/proc/array.c | static int get_meminfo(char * buffer) |
buffer | 64 | fs/proc/array.c | return sprintf(buffer, " total: used: free: shared: buffers:\n" |
buffer | 71 | fs/proc/array.c | static int get_version(char * buffer) |
buffer | 75 | fs/proc/array.c | strcpy(buffer, linux_banner); |
buffer | 76 | fs/proc/array.c | return strlen(buffer); |
buffer | 112 | fs/proc/array.c | static int get_array(struct task_struct ** p, unsigned long start, unsigned long end, char * buffer) |
buffer | 129 | fs/proc/array.c | buffer[size++] = c; |
buffer | 140 | fs/proc/array.c | static int get_env(int pid, char * buffer) |
buffer | 146 | fs/proc/array.c | return get_array(p, (*p)->env_start, (*p)->env_end, buffer); |
buffer | 149 | fs/proc/array.c | static int get_arg(int pid, char * buffer) |
buffer | 155 | fs/proc/array.c | return get_array(p, (*p)->arg_start, (*p)->arg_end, buffer); |
buffer | 180 | fs/proc/array.c | static int get_stat(int pid, char * buffer) |
buffer | 206 | fs/proc/array.c | return sprintf(buffer,"%d (%s) %c %d %d %d %d %d %u %u \ |
buffer | 248 | fs/proc/array.c | static int get_statm(int pid, char * buffer) |
buffer | 291 | fs/proc/array.c | return sprintf(buffer,"%d %d %d %d %d %d %d\n", |
buffer | 93 | fs/proc/link.c | static int proc_readlink(struct inode * inode, char * buffer, int buflen) |
buffer | 112 | fs/proc/link.c | put_fs_byte(buf[i++],buffer++); |
buffer | 186 | fs/select.c | int sys_select( unsigned long *buffer ) |
buffer | 197 | fs/select.c | i = verify_area(VERIFY_READ, buffer, 20); |
buffer | 200 | fs/select.c | n = get_fs_long(buffer++); |
buffer | 205 | fs/select.c | inp = (fd_set *) get_fs_long(buffer++); |
buffer | 206 | fs/select.c | outp = (fd_set *) get_fs_long(buffer++); |
buffer | 207 | fs/select.c | exp = (fd_set *) get_fs_long(buffer++); |
buffer | 208 | fs/select.c | tvp = (struct timeval *) get_fs_long(buffer); |
buffer | 701 | fs/xiafs/namei.c | #define PARENT_INO(buffer) \ |
buffer | 702 | fs/xiafs/namei.c | (((struct xiafs_direct *) ((u_char *)(buffer) + 12))->d_ino) |
buffer | 47 | fs/xiafs/symlink.c | static int xiafs_readlink(struct inode * inode, char * buffer, int buflen) |
buffer | 66 | fs/xiafs/symlink.c | put_fs_byte(c, buffer++); |
buffer | 68 | fs/xiafs/symlink.c | put_fs_byte((char)0, buffer); |
buffer | 365 | include/linux/fs.h | extern void ll_rw_page(int rw, int dev, int nr, char * buffer); |
buffer | 366 | include/linux/fs.h | extern void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buffer); |
buffer | 31 | kernel/blk_drv/blk.h | char * buffer; |
buffer | 227 | kernel/blk_drv/blk.h | req->buffer = bh->b_data; |
buffer | 368 | kernel/blk_drv/floppy.c | addr = (long) CURRENT->buffer; |
buffer | 379 | kernel/blk_drv/floppy.c | copy_buffer(CURRENT->buffer,tmp_floppy_area); |
buffer | 614 | kernel/blk_drv/floppy.c | copy_buffer(buffer_area,CURRENT->buffer); |
buffer | 616 | kernel/blk_drv/floppy.c | (unsigned long)(CURRENT->buffer) >= LAST_DMA_ADDR) |
buffer | 617 | kernel/blk_drv/floppy.c | copy_buffer(tmp_floppy_area,CURRENT->buffer); |
buffer | 1012 | kernel/blk_drv/floppy.c | copy_buffer(buffer_area,CURRENT->buffer); |
buffer | 1016 | kernel/blk_drv/floppy.c | copy_buffer(CURRENT->buffer,buffer_area); |
buffer | 324 | kernel/blk_drv/hd.c | port_read(HD_DATA,CURRENT->buffer,256); |
buffer | 326 | kernel/blk_drv/hd.c | CURRENT->buffer += 512; |
buffer | 333 | kernel/blk_drv/hd.c | buffer); |
buffer | 376 | kernel/blk_drv/hd.c | CURRENT->buffer += 512; |
buffer | 381 | kernel/blk_drv/hd.c | port_write(HD_DATA,CURRENT->buffer,256); |
buffer | 462 | kernel/blk_drv/hd.c | dev, cyl, head, sec, CURRENT->buffer); |
buffer | 491 | kernel/blk_drv/hd.c | port_write(HD_DATA,CURRENT->buffer,256); |
buffer | 212 | kernel/blk_drv/ll_rw_blk.c | req->buffer = bh->b_data; |
buffer | 220 | kernel/blk_drv/ll_rw_blk.c | void ll_rw_page(int rw, int dev, int page, char * buffer) |
buffer | 253 | kernel/blk_drv/ll_rw_blk.c | req->buffer = buffer; |
buffer | 367 | kernel/blk_drv/ll_rw_blk.c | req->buffer = buf; |
buffer | 38 | kernel/blk_drv/ramdisk.c | CURRENT->buffer, |
buffer | 41 | kernel/blk_drv/ramdisk.c | (void) memcpy(CURRENT->buffer, |
buffer | 232 | kernel/blk_drv/scsi/aha1542.c | static char buffer[] = ""; /* looks nicer without anything here */ |
buffer | 233 | kernel/blk_drv/scsi/aha1542.c | return buffer; |
buffer | 729 | kernel/blk_drv/scsi/aha1542.c | static buffer[512]; |
buffer | 738 | kernel/blk_drv/scsi/aha1542.c | aha1542_command(0, cmd, buffer, 512); |
buffer | 118 | kernel/blk_drv/scsi/aha1740.c | static char buffer[] = ""; /* looks nicer without anything here */ |
buffer | 119 | kernel/blk_drv/scsi/aha1740.c | return buffer; |
buffer | 482 | kernel/blk_drv/scsi/fdomain.c | SCinit.request_buffer = SCinit.buffer = buf; |
buffer | 569 | kernel/blk_drv/scsi/fdomain.c | static char buffer[] = |
buffer | 573 | kernel/blk_drv/scsi/fdomain.c | return buffer; |
buffer | 787 | kernel/blk_drv/scsi/fdomain.c | ++current_SC->SCp.buffer; |
buffer | 788 | kernel/blk_drv/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
buffer | 789 | kernel/blk_drv/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
buffer | 822 | kernel/blk_drv/scsi/fdomain.c | ++current_SC->SCp.buffer; |
buffer | 823 | kernel/blk_drv/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
buffer | 824 | kernel/blk_drv/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
buffer | 936 | kernel/blk_drv/scsi/fdomain.c | ++current_SC->SCp.buffer; |
buffer | 937 | kernel/blk_drv/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
buffer | 938 | kernel/blk_drv/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
buffer | 1004 | kernel/blk_drv/scsi/fdomain.c | current_SC->SCp.buffer = |
buffer | 1006 | kernel/blk_drv/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
buffer | 1007 | kernel/blk_drv/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
buffer | 1012 | kernel/blk_drv/scsi/fdomain.c | current_SC->SCp.buffer = NULL; |
buffer | 546 | kernel/blk_drv/scsi/scsi.c | "bufflen = %d, done = %08x)\n", SCpnt->host, SCpnt->target, SCpnt->cmnd, SCpnt->buffer, SCpnt->bufflen, SCpnt->done); |
buffer | 606 | kernel/blk_drv/scsi/scsi.c | void *buffer, unsigned bufflen, void (*done)(Scsi_Cmnd *), |
buffer | 618 | kernel/blk_drv/scsi/scsi.c | "command : " , host, target, buffer, bufflen, done, timeout, retries); |
buffer | 669 | kernel/blk_drv/scsi/scsi.c | SCpnt->buffer = buffer; |
buffer | 677 | kernel/blk_drv/scsi/scsi.c | SCpnt->request_buffer = buffer; |
buffer | 1017 | kernel/blk_drv/scsi/scsi.c | SCpnt->request_buffer = SCpnt->buffer; |
buffer | 310 | kernel/blk_drv/scsi/scsi.h | struct scatterlist *buffer; /* which buffer */ |
buffer | 336 | kernel/blk_drv/scsi/scsi.h | void *buffer; /* Data buffer */ |
buffer | 391 | kernel/blk_drv/scsi/scsi.h | void *buffer, unsigned bufflen, void (*done)(struct scsi_cmnd *), |
buffer | 448 | kernel/blk_drv/scsi/scsi.h | req->buffer = bh->b_data; |
buffer | 101 | kernel/blk_drv/scsi/scsi_debug.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
buffer | 108 | kernel/blk_drv/scsi/scsi_debug.c | printk("nosg: %x %x %d\n",SCpnt->request.buffer, SCpnt->buffer, |
buffer | 110 | kernel/blk_drv/scsi/scsi_debug.c | lpnt = (int *) SCpnt->request.buffer; |
buffer | 511 | kernel/blk_drv/scsi/scsi_debug.c | static char buffer[] = " "; /* looks nicer without anything here */ |
buffer | 512 | kernel/blk_drv/scsi/scsi_debug.c | return buffer; |
buffer | 28 | kernel/blk_drv/scsi/scsi_ioctl.c | static int ioctl_probe(int dev, void *buffer) |
buffer | 33 | kernel/blk_drv/scsi/scsi_ioctl.c | if ((temp = scsi_hosts[dev].present) && buffer) { |
buffer | 34 | kernel/blk_drv/scsi/scsi_ioctl.c | len = get_fs_long ((int *) buffer); |
buffer | 35 | kernel/blk_drv/scsi/scsi_ioctl.c | memcpy_tofs (buffer, scsi_hosts[dev].info(), len); |
buffer | 137 | kernel/blk_drv/scsi/scsi_ioctl.c | static int ioctl_command(Scsi_Device *dev, void *buffer) |
buffer | 148 | kernel/blk_drv/scsi/scsi_ioctl.c | if (!buffer) |
buffer | 151 | kernel/blk_drv/scsi/scsi_ioctl.c | inlen = get_fs_long((int *) buffer); |
buffer | 152 | kernel/blk_drv/scsi/scsi_ioctl.c | outlen = get_fs_long( ((int *) buffer) + 1); |
buffer | 154 | kernel/blk_drv/scsi/scsi_ioctl.c | cmd_in = (char *) ( ((int *)buffer) + 2); |
buffer | 206 | kernel/blk_drv/scsi/scsi_ioctl.c | printk("buffer = %d, cmd_in = %d\n", buffer, cmd_in); |
buffer | 162 | kernel/blk_drv/scsi/sd.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
buffer | 173 | kernel/blk_drv/scsi/sd.c | scsi_free(SCpnt->buffer, SCpnt->sglist_len); /* Free list of scatter-gather pointers */ |
buffer | 175 | kernel/blk_drv/scsi/sd.c | if (SCpnt->buffer != SCpnt->request.buffer) { |
buffer | 177 | kernel/blk_drv/scsi/sd.c | printk("nosg: %x %x %d\n",SCpnt->request.buffer, SCpnt->buffer, |
buffer | 181 | kernel/blk_drv/scsi/sd.c | memcpy(SCpnt->request.buffer, SCpnt->buffer, |
buffer | 183 | kernel/blk_drv/scsi/sd.c | scsi_free(SCpnt->buffer, SCpnt->bufflen); |
buffer | 219 | kernel/blk_drv/scsi/sd.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
buffer | 222 | kernel/blk_drv/scsi/sd.c | printk("err: %x %x %d\n",SCpnt->request.buffer, SCpnt->buffer, |
buffer | 229 | kernel/blk_drv/scsi/sd.c | scsi_free(SCpnt->buffer, SCpnt->sglist_len); /* Free list of scatter-gather pointers */ |
buffer | 232 | kernel/blk_drv/scsi/sd.c | printk("nosgerr: %x %x %d\n",SCpnt->request.buffer, SCpnt->buffer, |
buffer | 235 | kernel/blk_drv/scsi/sd.c | if (SCpnt->buffer != SCpnt->request.buffer) |
buffer | 236 | kernel/blk_drv/scsi/sd.c | scsi_free(SCpnt->buffer, SCpnt->bufflen); |
buffer | 449 | kernel/blk_drv/scsi/sd.c | buff = SCpnt->request.buffer; |
buffer | 469 | kernel/blk_drv/scsi/sd.c | buff = SCpnt->request.buffer; |
buffer | 498 | kernel/blk_drv/scsi/sd.c | buff = SCpnt->request.buffer; |
buffer | 531 | kernel/blk_drv/scsi/sd.c | buff = SCpnt->request.buffer; |
buffer | 553 | kernel/blk_drv/scsi/sd.c | memcpy(buff, (char *)SCpnt->request.buffer, this_count << 9); |
buffer | 647 | kernel/blk_drv/scsi/sd.c | unsigned char buffer[513]; |
buffer | 665 | kernel/blk_drv/scsi/sd.c | (void *) cmd, (void *) buffer, |
buffer | 725 | kernel/blk_drv/scsi/sd.c | rscsi_disks[i].capacity = (buffer[0] << 24) | |
buffer | 726 | kernel/blk_drv/scsi/sd.c | (buffer[1] << 16) | |
buffer | 727 | kernel/blk_drv/scsi/sd.c | (buffer[2] << 8) | |
buffer | 728 | kernel/blk_drv/scsi/sd.c | buffer[3]; |
buffer | 730 | kernel/blk_drv/scsi/sd.c | if ((rscsi_disks[i].sector_size = (buffer[4] << 24) | |
buffer | 731 | kernel/blk_drv/scsi/sd.c | (buffer[5] << 16) | |
buffer | 732 | kernel/blk_drv/scsi/sd.c | (buffer[6] << 8) | |
buffer | 733 | kernel/blk_drv/scsi/sd.c | buffer[7]) != 512) |
buffer | 216 | kernel/blk_drv/scsi/seagate.c | static char buffer[] = "Seagate ST-0X SCSI driver by Drew Eckhardt \n" |
buffer | 218 | kernel/blk_drv/scsi/seagate.c | return buffer; |
buffer | 120 | kernel/blk_drv/scsi/sr.c | if (SCpnt->buffer != SCpnt->request.buffer) |
buffer | 124 | kernel/blk_drv/scsi/sr.c | memcpy((char *)SCpnt->request.buffer, |
buffer | 125 | kernel/blk_drv/scsi/sr.c | SCpnt->buffer + offset, |
buffer | 137 | kernel/blk_drv/scsi/sr.c | SCpnt->buffer + 1024, |
buffer | 142 | kernel/blk_drv/scsi/sr.c | scsi_free(SCpnt->buffer, 2048); |
buffer | 147 | kernel/blk_drv/scsi/sr.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
buffer | 156 | kernel/blk_drv/scsi/sr.c | scsi_free(SCpnt->buffer, SCpnt->sglist_len); /* Free list of scatter-gather pointers */ |
buffer | 189 | kernel/blk_drv/scsi/sr.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
buffer | 195 | kernel/blk_drv/scsi/sr.c | scsi_free(SCpnt->buffer, SCpnt->sglist_len); /* Free list of scatter-gather pointers */ |
buffer | 197 | kernel/blk_drv/scsi/sr.c | if (SCpnt->buffer != SCpnt->request.buffer) |
buffer | 198 | kernel/blk_drv/scsi/sr.c | scsi_free(SCpnt->buffer, SCpnt->bufflen); |
buffer | 333 | kernel/blk_drv/scsi/sr.c | unsigned char cmd[10], *buffer, tries; |
buffer | 344 | kernel/blk_drv/scsi/sr.c | buffer = NULL; |
buffer | 450 | kernel/blk_drv/scsi/sr.c | buffer = (char *) sgpnt; |
buffer | 498 | kernel/blk_drv/scsi/sr.c | scsi_free(buffer, SCpnt->sglist_len); |
buffer | 529 | kernel/blk_drv/scsi/sr.c | buffer = scsi_malloc(2048); |
buffer | 533 | kernel/blk_drv/scsi/sr.c | buffer = scsi_malloc(2048); |
buffer | 538 | kernel/blk_drv/scsi/sr.c | buffer = SCpnt->request.buffer; |
buffer | 539 | kernel/blk_drv/scsi/sr.c | if (((int) buffer) + (this_count << 9) > ISA_DMA_THRESHOLD & |
buffer | 541 | kernel/blk_drv/scsi/sr.c | buffer = scsi_malloc(this_count << 9); |
buffer | 581 | kernel/blk_drv/scsi/sr.c | printk("ReadCD: %d %d %d\n",block, realcount, buffer); |
buffer | 585 | kernel/blk_drv/scsi/sr.c | scsi_do_cmd (SCpnt, (void *) cmd, buffer, realcount << 11, |
buffer | 97 | kernel/blk_drv/scsi/st.c | if (scsi_tapes[st_nbr].buffer->writing && |
buffer | 100 | kernel/blk_drv/scsi/st.c | scsi_tapes[st_nbr].buffer->last_result = 0x7fffffff; |
buffer | 102 | kernel/blk_drv/scsi/st.c | scsi_tapes[st_nbr].buffer->last_result = SCpnt->result; |
buffer | 103 | kernel/blk_drv/scsi/st.c | if (scsi_tapes[st_nbr].buffer->writing) |
buffer | 107 | kernel/blk_drv/scsi/st.c | if (scsi_tapes[st_nbr].buffer->writing <= 0) |
buffer | 167 | kernel/blk_drv/scsi/st.c | if (scsi_tapes[dev].buffer->last_result < 0) { |
buffer | 168 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->writing = (- scsi_tapes[dev].buffer->writing); |
buffer | 170 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->writing = (- scsi_tapes[dev].buffer->writing); |
buffer | 174 | kernel/blk_drv/scsi/st.c | if (scsi_tapes[dev].buffer->writing < scsi_tapes[dev].buffer->buffer_bytes) |
buffer | 175 | kernel/blk_drv/scsi/st.c | memcpy(scsi_tapes[dev].buffer->b_data, |
buffer | 176 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->b_data + scsi_tapes[dev].buffer->writing, |
buffer | 177 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes - |
buffer | 178 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->writing); |
buffer | 179 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes -= scsi_tapes[dev].buffer->writing; |
buffer | 180 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->writing = 0; |
buffer | 196 | kernel/blk_drv/scsi/st.c | if (scsi_tapes[dev].buffer->writing) { |
buffer | 198 | kernel/blk_drv/scsi/st.c | if (scsi_tapes[dev].buffer->last_result) { |
buffer | 201 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->last_result); |
buffer | 212 | kernel/blk_drv/scsi/st.c | offset = scsi_tapes[dev].buffer->buffer_bytes; |
buffer | 218 | kernel/blk_drv/scsi/st.c | memset(scsi_tapes[dev].buffer->b_data + offset, 0, transfer - offset); |
buffer | 230 | kernel/blk_drv/scsi/st.c | (void *) cmd, scsi_tapes[dev].buffer->b_data, transfer, |
buffer | 244 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes = 0; |
buffer | 265 | kernel/blk_drv/scsi/st.c | backspace = (scsi_tapes[dev].buffer->buffer_bytes + |
buffer | 266 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->read_pointer) / scsi_tapes[dev].block_size - |
buffer | 267 | kernel/blk_drv/scsi/st.c | (scsi_tapes[dev].buffer->read_pointer + scsi_tapes[dev].block_size - 1) / |
buffer | 269 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes = 0; |
buffer | 270 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->read_pointer = 0; |
buffer | 311 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer = st_buffers[i]; |
buffer | 333 | kernel/blk_drv/scsi/st.c | (void *) cmd, (void *) scsi_tapes[dev].buffer->b_data, |
buffer | 348 | kernel/blk_drv/scsi/st.c | (void *) cmd, (void *) scsi_tapes[dev].buffer->b_data, |
buffer | 363 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->in_use = 0; |
buffer | 374 | kernel/blk_drv/scsi/st.c | (void *) cmd, (void *) scsi_tapes[dev].buffer->b_data, |
buffer | 380 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].max_block = (scsi_tapes[dev].buffer->b_data[1] << 16) | |
buffer | 381 | kernel/blk_drv/scsi/st.c | (scsi_tapes[dev].buffer->b_data[2] << 8) | scsi_tapes[dev].buffer->b_data[3]; |
buffer | 382 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].min_block = (scsi_tapes[dev].buffer->b_data[4] << 8) | |
buffer | 383 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->b_data[5]; |
buffer | 402 | kernel/blk_drv/scsi/st.c | (void *) cmd, (void *) scsi_tapes[dev].buffer->b_data, |
buffer | 412 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->b_data[2] = |
buffer | 413 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->b_data[3] = 0; |
buffer | 419 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->b_data[0], scsi_tapes[dev].buffer->b_data[1], |
buffer | 420 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->b_data[2], scsi_tapes[dev].buffer->b_data[3]); |
buffer | 423 | kernel/blk_drv/scsi/st.c | if (scsi_tapes[dev].buffer->b_data[3] >= 8) { |
buffer | 424 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].block_size = scsi_tapes[dev].buffer->b_data[9] * 65536 + |
buffer | 425 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->b_data[10] * 256 + scsi_tapes[dev].buffer->b_data[11]; |
buffer | 428 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->b_data[4], scsi_tapes[dev].buffer->b_data[5] * |
buffer | 429 | kernel/blk_drv/scsi/st.c | 65536 + scsi_tapes[dev].buffer->b_data[6] * 256 + |
buffer | 430 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->b_data[7], scsi_tapes[dev].buffer->b_data[9] * |
buffer | 431 | kernel/blk_drv/scsi/st.c | 65536 + scsi_tapes[dev].buffer->b_data[10] * 256 + |
buffer | 432 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->b_data[11]); |
buffer | 437 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->in_use = 0; |
buffer | 446 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->in_use = 0; |
buffer | 456 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_blocks = |
buffer | 458 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_size = |
buffer | 459 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_blocks * scsi_tapes[dev].block_size; |
buffer | 460 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes = scsi_tapes[dev].buffer->read_pointer = 0; |
buffer | 464 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].block_size, scsi_tapes[dev].buffer->buffer_size, |
buffer | 465 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_blocks); |
buffer | 468 | kernel/blk_drv/scsi/st.c | if (scsi_tapes[dev].buffer->b_data[2] & 0x80) { |
buffer | 509 | kernel/blk_drv/scsi/st.c | (void *) cmd, (void *) scsi_tapes[dev].buffer->b_data, |
buffer | 538 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->in_use = 0; |
buffer | 573 | kernel/blk_drv/scsi/st.c | if (scsi_tapes[dev].buffer->writing) { |
buffer | 575 | kernel/blk_drv/scsi/st.c | if (scsi_tapes[dev].buffer->last_result) { |
buffer | 578 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->last_result); |
buffer | 600 | kernel/blk_drv/scsi/st.c | while((scsi_tapes[dev].buffer->buffer_bytes + count) >= |
buffer | 601 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_size) { |
buffer | 602 | kernel/blk_drv/scsi/st.c | do_count = scsi_tapes[dev].buffer->buffer_size - |
buffer | 603 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes; |
buffer | 604 | kernel/blk_drv/scsi/st.c | memcpy_fromfs(scsi_tapes[dev].buffer->b_data + |
buffer | 605 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes,b_point,do_count); |
buffer | 607 | kernel/blk_drv/scsi/st.c | blks = scsi_tapes[dev].buffer->buffer_blocks; |
buffer | 614 | kernel/blk_drv/scsi/st.c | (void *) cmd, scsi_tapes[dev].buffer->b_data, |
buffer | 615 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_size, |
buffer | 639 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes = 0; |
buffer | 644 | kernel/blk_drv/scsi/st.c | memcpy_fromfs(scsi_tapes[dev].buffer->b_data + |
buffer | 645 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes,b_point,count); |
buffer | 647 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes += count; |
buffer | 658 | kernel/blk_drv/scsi/st.c | if (scsi_tapes[dev].buffer->buffer_bytes >= ST_WRITE_THRESHOLD) { |
buffer | 660 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->writing = (scsi_tapes[dev].buffer->buffer_bytes / |
buffer | 664 | kernel/blk_drv/scsi/st.c | blks = scsi_tapes[dev].buffer->writing / scsi_tapes[dev].block_size; |
buffer | 668 | kernel/blk_drv/scsi/st.c | SCpnt->result = scsi_tapes[dev].buffer->last_result = -1; |
buffer | 672 | kernel/blk_drv/scsi/st.c | (void *) cmd, scsi_tapes[dev].buffer->b_data, |
buffer | 673 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->writing, |
buffer | 711 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes); |
buffer | 713 | kernel/blk_drv/scsi/st.c | if ((scsi_tapes[dev].buffer->buffer_bytes == 0) && |
buffer | 723 | kernel/blk_drv/scsi/st.c | if (scsi_tapes[dev].buffer->buffer_bytes == 0 && |
buffer | 729 | kernel/blk_drv/scsi/st.c | blks = scsi_tapes[dev].buffer->buffer_blocks; |
buffer | 737 | kernel/blk_drv/scsi/st.c | (void *) cmd, scsi_tapes[dev].buffer->b_data, |
buffer | 738 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_size, |
buffer | 743 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->read_pointer = 0; |
buffer | 768 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes = |
buffer | 769 | kernel/blk_drv/scsi/st.c | (scsi_tapes[dev].buffer->buffer_blocks - transfer) * |
buffer | 773 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_blocks - transfer); |
buffer | 778 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes = |
buffer | 779 | kernel/blk_drv/scsi/st.c | (scsi_tapes[dev].buffer->buffer_blocks - transfer) * |
buffer | 783 | kernel/blk_drv/scsi/st.c | dev, scsi_tapes[dev].buffer->buffer_blocks - transfer, total); |
buffer | 807 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes = |
buffer | 808 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_size; |
buffer | 812 | kernel/blk_drv/scsi/st.c | if (scsi_tapes[dev].buffer->buffer_bytes > 0) { |
buffer | 816 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes, count - total); |
buffer | 818 | kernel/blk_drv/scsi/st.c | transfer = scsi_tapes[dev].buffer->buffer_bytes < count - total ? |
buffer | 819 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes : count - total; |
buffer | 820 | kernel/blk_drv/scsi/st.c | memcpy_tofs(buf, scsi_tapes[dev].buffer->b_data + |
buffer | 821 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->read_pointer,transfer); |
buffer | 825 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes -= transfer; |
buffer | 826 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->read_pointer += transfer; |
buffer | 1005 | kernel/blk_drv/scsi/st.c | if (scsi_tapes[dev].dirty || scsi_tapes[dev].buffer->buffer_bytes != 0) |
buffer | 1016 | kernel/blk_drv/scsi/st.c | memset(scsi_tapes[dev].buffer->b_data, 0, 12); |
buffer | 1017 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->b_data[2] = 0x10; /* buffered mode */ |
buffer | 1018 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->b_data[3] = 8; /* block descriptor length */ |
buffer | 1022 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->b_data[4] = arg; |
buffer | 1025 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->b_data[9] = (ltmp >> 16); |
buffer | 1026 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->b_data[10] = (ltmp >> 8); |
buffer | 1027 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->b_data[11] = ltmp; |
buffer | 1032 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->b_data[9] * 65536 + |
buffer | 1033 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->b_data[10] * 256 + |
buffer | 1034 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->b_data[11]); |
buffer | 1037 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->b_data[4]); |
buffer | 1049 | kernel/blk_drv/scsi/st.c | (void *) cmd, (void *) scsi_tapes[dev].buffer->b_data, ST_BLOCK_SIZE, |
buffer | 1065 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_blocks = |
buffer | 1067 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_size = |
buffer | 1068 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_blocks * scsi_tapes[dev].block_size; |
buffer | 1069 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes = |
buffer | 1070 | kernel/blk_drv/scsi/st.c | scsi_tapes[dev].buffer->read_pointer = 0; |
buffer | 1134 | kernel/blk_drv/scsi/st.c | memcpy_tofs((char *)arg, (char *)scsi_tapes[dev].buffer->mt_status, |
buffer | 1168 | kernel/blk_drv/scsi/st.c | (void *) scmd, (void *) scsi_tapes[dev].buffer->b_data, |
buffer | 1183 | kernel/blk_drv/scsi/st.c | mt_pos.mt_blkno = (scsi_tapes[dev].buffer->b_data[0] << 16) |
buffer | 1184 | kernel/blk_drv/scsi/st.c | + (scsi_tapes[dev].buffer->b_data[1] << 8) |
buffer | 1185 | kernel/blk_drv/scsi/st.c | + scsi_tapes[dev].buffer->b_data[2]; |
buffer | 1187 | kernel/blk_drv/scsi/st.c | mt_pos.mt_blkno = (scsi_tapes[dev].buffer->b_data[4] << 24) |
buffer | 1188 | kernel/blk_drv/scsi/st.c | + (scsi_tapes[dev].buffer->b_data[5] << 16) |
buffer | 1189 | kernel/blk_drv/scsi/st.c | + (scsi_tapes[dev].buffer->b_data[6] << 8) |
buffer | 1190 | kernel/blk_drv/scsi/st.c | + scsi_tapes[dev].buffer->b_data[7]; |
buffer | 34 | kernel/blk_drv/scsi/st.h | ST_buffer * buffer; |
buffer | 108 | kernel/chr_drv/atixlmouse.c | static int write_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
buffer | 113 | kernel/chr_drv/atixlmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
buffer | 121 | kernel/chr_drv/atixlmouse.c | put_fs_byte((char)(~mouse.latch_buttons&7) | 0x80 , buffer); |
buffer | 122 | kernel/chr_drv/atixlmouse.c | put_fs_byte((char)mouse.dx, buffer + 1); |
buffer | 123 | kernel/chr_drv/atixlmouse.c | put_fs_byte((char)-mouse.dy, buffer + 2); |
buffer | 89 | kernel/chr_drv/busmouse.c | static int write_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
buffer | 94 | kernel/chr_drv/busmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
buffer | 103 | kernel/chr_drv/busmouse.c | put_fs_byte(mouse.buttons | 0x80, buffer); |
buffer | 108 | kernel/chr_drv/busmouse.c | put_fs_byte((char)mouse.dx, buffer + 1); |
buffer | 113 | kernel/chr_drv/busmouse.c | put_fs_byte((char) -mouse.dy, buffer + 2); |
buffer | 115 | kernel/chr_drv/busmouse.c | put_fs_byte(0x00, buffer + i); |
buffer | 95 | kernel/chr_drv/msbusmouse.c | static int write_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
buffer | 100 | kernel/chr_drv/msbusmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
buffer | 108 | kernel/chr_drv/msbusmouse.c | put_fs_byte(mouse.latch_buttons | 0x80, buffer); |
buffer | 113 | kernel/chr_drv/msbusmouse.c | put_fs_byte((char)mouse.dx, buffer + 1); |
buffer | 118 | kernel/chr_drv/msbusmouse.c | put_fs_byte((char) -mouse.dy, buffer + 2); |
buffer | 120 | kernel/chr_drv/msbusmouse.c | put_fs_byte(0x00, buffer + i); |
buffer | 201 | kernel/chr_drv/psaux.c | static int write_aux(struct inode * inode, struct file * file, char * buffer, int count) |
buffer | 211 | kernel/chr_drv/psaux.c | outb_p(get_fs_byte(buffer++),AUX_OUTPUT_PORT); |
buffer | 222 | kernel/chr_drv/psaux.c | static int read_aux(struct inode * inode, struct file * file, char * buffer, int count) |
buffer | 243 | kernel/chr_drv/psaux.c | put_fs_byte(c, buffer++); |
buffer | 37 | mm/mmap.c | int sys_mmap(unsigned long *buffer) |
buffer | 44 | mm/mmap.c | addr = (unsigned long) get_fs_long(buffer); /* user address space*/ |
buffer | 45 | mm/mmap.c | len = (size_t) get_fs_long(buffer+1); /* nbytes of mapping */ |
buffer | 46 | mm/mmap.c | prot = (int) get_fs_long(buffer+2); /* protection */ |
buffer | 47 | mm/mmap.c | flags = (int) get_fs_long(buffer+3); /* mapping type */ |
buffer | 48 | mm/mmap.c | fd = (int) get_fs_long(buffer+4); /* object to map */ |
buffer | 49 | mm/mmap.c | off = (unsigned long) get_fs_long(buffer+5); /* offset in object */ |