tag | line | file | source code |
buffer | 34 | drivers/block/blk.h | char * buffer; |
buffer | 264 | drivers/block/blk.h | req->buffer = bh->b_data; |
buffer | 958 | drivers/block/cdu31a.c | memcpy(CURRENT->buffer, sony_buffer+copyoff, 512); |
buffer | 962 | drivers/block/cdu31a.c | CURRENT->buffer += 512; |
buffer | 452 | drivers/block/floppy.c | addr = (long) CURRENT->buffer; |
buffer | 463 | drivers/block/floppy.c | copy_buffer(CURRENT->buffer,tmp_floppy_area); |
buffer | 696 | drivers/block/floppy.c | copy_buffer(buffer_area,CURRENT->buffer); |
buffer | 698 | drivers/block/floppy.c | (unsigned long)(CURRENT->buffer) >= LAST_DMA_ADDR) |
buffer | 699 | drivers/block/floppy.c | copy_buffer(tmp_floppy_area,CURRENT->buffer); |
buffer | 1086 | drivers/block/floppy.c | copy_buffer(buffer_area,CURRENT->buffer); |
buffer | 1090 | drivers/block/floppy.c | copy_buffer(CURRENT->buffer,buffer_area); |
buffer | 342 | drivers/block/hd.c | port_read(HD_DATA,CURRENT->buffer,256); |
buffer | 344 | drivers/block/hd.c | CURRENT->buffer += 512; |
buffer | 351 | drivers/block/hd.c | buffer); |
buffer | 396 | drivers/block/hd.c | CURRENT->buffer += 512; |
buffer | 401 | drivers/block/hd.c | port_write(HD_DATA,CURRENT->buffer,256); |
buffer | 482 | drivers/block/hd.c | dev, cyl, head, sec, CURRENT->buffer); |
buffer | 511 | drivers/block/hd.c | port_write(HD_DATA,CURRENT->buffer,256); |
buffer | 256 | drivers/block/ll_rw_blk.c | req->buffer = bh->b_data; |
buffer | 293 | drivers/block/ll_rw_blk.c | req->buffer = bh->b_data; |
buffer | 301 | drivers/block/ll_rw_blk.c | void ll_rw_page(int rw, int dev, int page, char * buffer) |
buffer | 325 | drivers/block/ll_rw_blk.c | req->buffer = buffer; |
buffer | 456 | drivers/block/ll_rw_blk.c | req->buffer = buf; |
buffer | 501 | drivers/block/mcd.c | memcpy(CURRENT -> buffer, mcd_buf + offs, 512); |
buffer | 504 | drivers/block/mcd.c | CURRENT -> buffer += 512; |
buffer | 47 | drivers/block/ramdisk.c | CURRENT->buffer, |
buffer | 50 | drivers/block/ramdisk.c | (void) memcpy(CURRENT->buffer, |
buffer | 191 | drivers/block/xd.c | code = xd_readwrite(CURRENT->cmd,CURRENT_DEV,CURRENT->buffer,block,count); |
buffer | 278 | drivers/block/xd.c | static int xd_readwrite (u_char operation,u_char drive,char *buffer,u_int block,u_int count) |
buffer | 285 | drivers/block/xd.c | printk("xd_readwrite: operation = %s, drive = %d, buffer = 0x%X, block = %d, count = %d\n",operation == READ ? "read" : "write",drive,buffer,block,count); |
buffer | 301 | drivers/block/xd.c | mode = xd_setup_dma(operation == READ ? DMA_MODE_READ : DMA_MODE_WRITE,(u_char *)buffer,temp * 0x200); |
buffer | 304 | drivers/block/xd.c | switch (xd_command(cmdblk,mode,(u_char *) buffer,(u_char *) buffer,sense,XD_TIMEOUT)) { |
buffer | 318 | drivers/block/xd.c | count -= temp, buffer += temp * 0x200, block += temp; |
buffer | 348 | drivers/block/xd.c | static u_char xd_setup_dma (u_char mode,u_char *buffer,u_int count) |
buffer | 350 | drivers/block/xd.c | if (buffer < ((u_char *) 0x1000000 - count)) { /* transfer to address < 16M? */ |
buffer | 351 | drivers/block/xd.c | if (((u_int) buffer & 0xFFFF0000) != ((u_int) buffer + count) & 0xFFFF0000) { |
buffer | 360 | drivers/block/xd.c | set_dma_addr(xd_dma,(u_int) buffer); |
buffer | 108 | drivers/char/atixlmouse.c | static int write_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
buffer | 113 | drivers/char/atixlmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
buffer | 121 | drivers/char/atixlmouse.c | put_fs_byte((~mouse.latch_buttons & 7) | 0x80 , buffer); |
buffer | 122 | drivers/char/atixlmouse.c | put_fs_byte(mouse.dx, buffer + 1); |
buffer | 123 | drivers/char/atixlmouse.c | put_fs_byte(-mouse.dy, buffer + 2); |
buffer | 127 | drivers/char/busmouse.c | static int write_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
buffer | 136 | drivers/char/busmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
buffer | 145 | drivers/char/busmouse.c | if ((r = verify_area(VERIFY_WRITE, buffer, count))) |
buffer | 174 | drivers/char/busmouse.c | put_fs_byte(buttons | 0x80, buffer); |
buffer | 175 | drivers/char/busmouse.c | put_fs_byte((char)dx, buffer + 1); |
buffer | 176 | drivers/char/busmouse.c | put_fs_byte((char)dy, buffer + 2); |
buffer | 178 | drivers/char/busmouse.c | put_fs_byte(0x00, buffer + r); |
buffer | 100 | drivers/char/msbusmouse.c | static int write_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
buffer | 105 | drivers/char/msbusmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
buffer | 113 | drivers/char/msbusmouse.c | put_fs_byte(mouse.buttons | 0x80, buffer); |
buffer | 116 | drivers/char/msbusmouse.c | put_fs_byte((char)dx, buffer + 1); |
buffer | 117 | drivers/char/msbusmouse.c | put_fs_byte((char)dy, buffer + 2); |
buffer | 119 | drivers/char/msbusmouse.c | put_fs_byte(0x00, buffer + i); |
buffer | 335 | drivers/char/psaux.c | static int write_aux(struct inode * inode, struct file * file, char * buffer, int count) |
buffer | 345 | drivers/char/psaux.c | outb_p(get_fs_byte(buffer++),AUX_OUTPUT_PORT); |
buffer | 357 | drivers/char/psaux.c | static int write_qp(struct inode * inode, struct file * file, char * buffer, int count) |
buffer | 364 | drivers/char/psaux.c | outb_p(get_fs_byte(buffer++), qp_data); |
buffer | 376 | drivers/char/psaux.c | static int read_aux(struct inode * inode, struct file * file, char * buffer, int count) |
buffer | 397 | drivers/char/psaux.c | put_fs_byte(c, buffer++); |
buffer | 389 | drivers/net/d_link.c | unsigned char *buffer = (unsigned char *)(skb + 1); |
buffer | 440 | drivers/net/d_link.c | for ( ; len > 0; --len, ++buffer) |
buffer | 441 | drivers/net/d_link.c | d_link_put_byte(*buffer); |
buffer | 563 | drivers/net/d_link.c | register unsigned char *buffer; |
buffer | 594 | drivers/net/d_link.c | buffer = (unsigned char *)(skb + 1); |
buffer | 598 | drivers/net/d_link.c | for (i = size; i > 0; --i, ++buffer) |
buffer | 599 | drivers/net/d_link.c | *buffer = d_link_read_byte(READ_DATA, dev); |
buffer | 259 | drivers/scsi/NCR5380.c | cmd->SCp.buffer = (struct scatterlist *) cmd->buffer; |
buffer | 261 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = (char *) cmd->SCp.buffer->address; |
buffer | 262 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = cmd->SCp.buffer->length; |
buffer | 264 | drivers/scsi/NCR5380.c | cmd->SCp.buffer = NULL; |
buffer | 1497 | drivers/scsi/NCR5380.c | ++cmd->SCp.buffer; |
buffer | 1499 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = cmd->SCp.buffer->length; |
buffer | 1500 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = cmd->SCp.buffer->address; |
buffer | 1633 | drivers/scsi/NCR5380.c | cmd->SCp.buffer = NULL; |
buffer | 745 | drivers/scsi/aha152x.c | SCpnt->SCp.buffer = (struct scatterlist *)SCpnt->request_buffer; |
buffer | 746 | drivers/scsi/aha152x.c | SCpnt->SCp.ptr = SCpnt->SCp.buffer->address; |
buffer | 747 | drivers/scsi/aha152x.c | SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; |
buffer | 754 | drivers/scsi/aha152x.c | SCpnt->SCp.buffer = NULL; |
buffer | 1792 | drivers/scsi/aha152x.c | current_SC->SCp.buffer++; |
buffer | 1794 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->address; |
buffer | 1796 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->length; |
buffer | 1916 | drivers/scsi/aha152x.c | current_SC->SCp.buffer++; |
buffer | 1918 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->address; |
buffer | 1920 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->length; |
buffer | 792 | drivers/scsi/aha1542.c | static buffer[512]; |
buffer | 801 | drivers/scsi/aha1542.c | aha1542_command(0, cmd, buffer, 512); |
buffer | 167 | drivers/scsi/aha1740.c | static char buffer[] = "Adaptec 174x (EISA)"; |
buffer | 168 | drivers/scsi/aha1740.c | return buffer; |
buffer | 641 | drivers/scsi/fdomain.c | SCinit.request_buffer = SCinit.buffer = buf; |
buffer | 690 | drivers/scsi/fdomain.c | static char buffer[80]; |
buffer | 693 | drivers/scsi/fdomain.c | strcpy( buffer, "Future Domain: TMC-16x0 SCSI driver, version" ); |
buffer | 695 | drivers/scsi/fdomain.c | strcat( buffer, strchr( VERSION, ':' ) + 1 ); |
buffer | 696 | drivers/scsi/fdomain.c | pt = strrchr( buffer, '$') - 1; |
buffer | 698 | drivers/scsi/fdomain.c | pt = buffer + strlen( buffer ) - 1; |
buffer | 704 | drivers/scsi/fdomain.c | strcat( buffer, " " VERSION "\n" ); |
buffer | 707 | drivers/scsi/fdomain.c | return buffer; |
buffer | 1124 | drivers/scsi/fdomain.c | ++current_SC->SCp.buffer; |
buffer | 1125 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
buffer | 1126 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
buffer | 1157 | drivers/scsi/fdomain.c | ++current_SC->SCp.buffer; |
buffer | 1158 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
buffer | 1159 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
buffer | 1240 | drivers/scsi/fdomain.c | current_SC->SCp.buffer = |
buffer | 1242 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
buffer | 1243 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
buffer | 1248 | drivers/scsi/fdomain.c | current_SC->SCp.buffer = NULL; |
buffer | 570 | drivers/scsi/scsi.c | req->buffer = bh->b_data; |
buffer | 666 | drivers/scsi/scsi.c | req->buffer = bh->b_data; |
buffer | 722 | drivers/scsi/scsi.c | "bufflen = %d, done = %08x)\n", SCpnt->host->host_no, SCpnt->target, SCpnt->cmnd, SCpnt->buffer, SCpnt->bufflen, SCpnt->done); |
buffer | 784 | drivers/scsi/scsi.c | void *buffer, unsigned bufflen, void (*done)(Scsi_Cmnd *), |
buffer | 796 | drivers/scsi/scsi.c | "command : " , host->host_no, target, buffer, bufflen, done, timeout, retries); |
buffer | 846 | drivers/scsi/scsi.c | SCpnt->buffer = buffer; |
buffer | 857 | drivers/scsi/scsi.c | SCpnt->request_buffer = buffer; |
buffer | 1240 | drivers/scsi/scsi.c | SCpnt->request_buffer = SCpnt->buffer; |
buffer | 327 | drivers/scsi/scsi.h | struct scatterlist *buffer; /* which buffer */ |
buffer | 355 | drivers/scsi/scsi.h | void *buffer; /* Data buffer */ |
buffer | 421 | drivers/scsi/scsi.h | void *buffer, unsigned bufflen, void (*done)(struct scsi_cmnd *), |
buffer | 482 | drivers/scsi/scsi.h | req->buffer = bh->b_data; |
buffer | 101 | drivers/scsi/scsi_debug.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
buffer | 108 | drivers/scsi/scsi_debug.c | printk("nosg: %x %x %d\n",SCpnt->request.buffer, SCpnt->buffer, |
buffer | 110 | drivers/scsi/scsi_debug.c | lpnt = (int *) SCpnt->request.buffer; |
buffer | 511 | drivers/scsi/scsi_debug.c | static char buffer[] = " "; /* looks nicer without anything here */ |
buffer | 512 | drivers/scsi/scsi_debug.c | return buffer; |
buffer | 28 | drivers/scsi/scsi_ioctl.c | static int ioctl_probe(struct Scsi_Host * host, void *buffer) |
buffer | 34 | drivers/scsi/scsi_ioctl.c | if ((temp = host->hostt->present) && buffer) { |
buffer | 35 | drivers/scsi/scsi_ioctl.c | len = get_fs_long ((unsigned long *) buffer); |
buffer | 40 | drivers/scsi/scsi_ioctl.c | verify_area(VERIFY_WRITE, buffer, len); |
buffer | 41 | drivers/scsi/scsi_ioctl.c | memcpy_tofs (buffer, string, len); |
buffer | 142 | drivers/scsi/scsi_ioctl.c | static int ioctl_command(Scsi_Device *dev, void *buffer) |
buffer | 153 | drivers/scsi/scsi_ioctl.c | if (!buffer) |
buffer | 156 | drivers/scsi/scsi_ioctl.c | inlen = get_fs_long((unsigned long *) buffer); |
buffer | 157 | drivers/scsi/scsi_ioctl.c | outlen = get_fs_long( ((unsigned long *) buffer) + 1); |
buffer | 159 | drivers/scsi/scsi_ioctl.c | cmd_in = (char *) ( ((int *)buffer) + 2); |
buffer | 220 | drivers/scsi/scsi_ioctl.c | printk("buffer = %d, cmd_in = %d\n", buffer, cmd_in); |
buffer | 162 | drivers/scsi/sd.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
buffer | 173 | drivers/scsi/sd.c | scsi_free(SCpnt->buffer, SCpnt->sglist_len); /* Free list of scatter-gather pointers */ |
buffer | 175 | drivers/scsi/sd.c | if (SCpnt->buffer != SCpnt->request.buffer) { |
buffer | 177 | drivers/scsi/sd.c | printk("nosg: %x %x %d\n",SCpnt->request.buffer, SCpnt->buffer, |
buffer | 181 | drivers/scsi/sd.c | memcpy(SCpnt->request.buffer, SCpnt->buffer, |
buffer | 183 | drivers/scsi/sd.c | scsi_free(SCpnt->buffer, SCpnt->bufflen); |
buffer | 218 | drivers/scsi/sd.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
buffer | 221 | drivers/scsi/sd.c | printk("err: %x %x %d\n",SCpnt->request.buffer, SCpnt->buffer, |
buffer | 228 | drivers/scsi/sd.c | scsi_free(SCpnt->buffer, SCpnt->sglist_len); /* Free list of scatter-gather pointers */ |
buffer | 231 | drivers/scsi/sd.c | printk("nosgerr: %x %x %d\n",SCpnt->request.buffer, SCpnt->buffer, |
buffer | 234 | drivers/scsi/sd.c | if (SCpnt->buffer != SCpnt->request.buffer) |
buffer | 235 | drivers/scsi/sd.c | scsi_free(SCpnt->buffer, SCpnt->bufflen); |
buffer | 448 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buffer | 468 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buffer | 497 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buffer | 530 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buffer | 552 | drivers/scsi/sd.c | memcpy(buff, (char *)SCpnt->request.buffer, this_count << 9); |
buffer | 668 | drivers/scsi/sd.c | unsigned char *buffer; |
buffer | 678 | drivers/scsi/sd.c | buffer = (unsigned char *) scsi_malloc(512); |
buffer | 693 | drivers/scsi/sd.c | (void *) cmd, (void *) buffer, |
buffer | 718 | drivers/scsi/sd.c | (void *) cmd, (void *) buffer, |
buffer | 746 | drivers/scsi/sd.c | memset ((void *) buffer, 0, 8); |
buffer | 752 | drivers/scsi/sd.c | (void *) cmd, (void *) buffer, |
buffer | 817 | drivers/scsi/sd.c | rscsi_disks[i].capacity = (buffer[0] << 24) | |
buffer | 818 | drivers/scsi/sd.c | (buffer[1] << 16) | |
buffer | 819 | drivers/scsi/sd.c | (buffer[2] << 8) | |
buffer | 820 | drivers/scsi/sd.c | buffer[3]; |
buffer | 822 | drivers/scsi/sd.c | rscsi_disks[i].sector_size = (buffer[4] << 24) | |
buffer | 823 | drivers/scsi/sd.c | (buffer[5] << 16) | (buffer[6] << 8) | buffer[7]; |
buffer | 839 | drivers/scsi/sd.c | scsi_free(buffer, 512); |
buffer | 851 | drivers/scsi/sd.c | scsi_free(buffer, 512); |
buffer | 374 | drivers/scsi/seagate.c | static char buffer[256]; |
buffer | 375 | drivers/scsi/seagate.c | sprintf(buffer, "scsi%d : %s at irq %d address %p options :" |
buffer | 395 | drivers/scsi/seagate.c | return buffer; |
buffer | 585 | drivers/scsi/seagate.c | struct scatterlist *buffer = NULL; |
buffer | 707 | drivers/scsi/seagate.c | buffer=current_buffer; |
buffer | 903 | drivers/scsi/seagate.c | hostno, i, buffer[i].address, buffer[i].length); |
buffer | 907 | drivers/scsi/seagate.c | buffer = (struct scatterlist *) SCint->buffer; |
buffer | 908 | drivers/scsi/seagate.c | len = buffer->length; |
buffer | 909 | drivers/scsi/seagate.c | data = (unsigned char *) buffer->address; |
buffer | 914 | drivers/scsi/seagate.c | buffer = NULL; |
buffer | 1143 | drivers/scsi/seagate.c | ++buffer; |
buffer | 1144 | drivers/scsi/seagate.c | len = buffer->length; |
buffer | 1145 | drivers/scsi/seagate.c | data = (unsigned char *) buffer->address; |
buffer | 1289 | drivers/scsi/seagate.c | ++buffer; |
buffer | 1290 | drivers/scsi/seagate.c | len = buffer->length; |
buffer | 1291 | drivers/scsi/seagate.c | data = (unsigned char *) buffer->address; |
buffer | 1360 | drivers/scsi/seagate.c | current_buffer = buffer; |
buffer | 1392 | drivers/scsi/seagate.c | current_buffer = buffer; |
buffer | 1401 | drivers/scsi/seagate.c | buffer=current_buffer; |
buffer | 124 | drivers/scsi/sr.c | if (SCpnt->buffer != SCpnt->request.buffer) |
buffer | 128 | drivers/scsi/sr.c | memcpy((char *)SCpnt->request.buffer, |
buffer | 129 | drivers/scsi/sr.c | (char *)SCpnt->buffer + offset, |
buffer | 141 | drivers/scsi/sr.c | (char *)SCpnt->buffer + 1024, |
buffer | 146 | drivers/scsi/sr.c | scsi_free(SCpnt->buffer, 2048); |
buffer | 151 | drivers/scsi/sr.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
buffer | 160 | drivers/scsi/sr.c | scsi_free(SCpnt->buffer, SCpnt->sglist_len); /* Free list of scatter-gather pointers */ |
buffer | 190 | drivers/scsi/sr.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
buffer | 196 | drivers/scsi/sr.c | scsi_free(SCpnt->buffer, SCpnt->sglist_len); /* Free list of scatter-gather pointers */ |
buffer | 198 | drivers/scsi/sr.c | if (SCpnt->buffer != SCpnt->request.buffer) |
buffer | 199 | drivers/scsi/sr.c | scsi_free(SCpnt->buffer, SCpnt->bufflen); |
buffer | 344 | drivers/scsi/sr.c | unsigned char cmd[10], *buffer, tries; |
buffer | 357 | drivers/scsi/sr.c | buffer = NULL; |
buffer | 462 | drivers/scsi/sr.c | buffer = (unsigned char *) sgpnt; |
buffer | 510 | drivers/scsi/sr.c | scsi_free(buffer, SCpnt->sglist_len); |
buffer | 541 | drivers/scsi/sr.c | buffer = (unsigned char *) scsi_malloc(2048); |
buffer | 545 | drivers/scsi/sr.c | buffer = (unsigned char *) scsi_malloc(2048); |
buffer | 550 | drivers/scsi/sr.c | buffer = (unsigned char *) SCpnt->request.buffer; |
buffer | 551 | drivers/scsi/sr.c | if (((int) buffer) + (this_count << 9) > ISA_DMA_THRESHOLD & |
buffer | 553 | drivers/scsi/sr.c | buffer = (unsigned char *) scsi_malloc(this_count << 9); |
buffer | 601 | drivers/scsi/sr.c | printk("ReadCD: %d %d %d %d\n",block, realcount, buffer, this_count); |
buffer | 610 | drivers/scsi/sr.c | scsi_do_cmd (SCpnt, (void *) cmd, buffer, |
buffer | 644 | drivers/scsi/sr.c | unsigned char buffer[513]; |
buffer | 658 | drivers/scsi/sr.c | (void *) cmd, (void *) buffer, |
buffer | 685 | drivers/scsi/sr.c | scsi_CDs[i].capacity = (buffer[0] << 24) | |
buffer | 686 | drivers/scsi/sr.c | (buffer[1] << 16) | (buffer[2] << 8) | buffer[3]; |
buffer | 687 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = (buffer[4] << 24) | |
buffer | 688 | drivers/scsi/sr.c | (buffer[5] << 16) | (buffer[6] << 8) | buffer[7]; |
buffer | 41 | drivers/scsi/sr_ioctl.c | static int do_ioctl(int target, unsigned char * sr_cmd, void * buffer, unsigned buflength) |
buffer | 48 | drivers/scsi/sr_ioctl.c | (void *) sr_cmd, buffer, buflength, sr_ioctl_done, |
buffer | 175 | drivers/scsi/sr_ioctl.c | char * buffer; |
buffer | 185 | drivers/scsi/sr_ioctl.c | buffer = (unsigned char *) scsi_malloc(512); |
buffer | 186 | drivers/scsi/sr_ioctl.c | if(!buffer) return -ENOMEM; |
buffer | 188 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, buffer, 12); |
buffer | 190 | drivers/scsi/sr_ioctl.c | tochdr.cdth_trk0 = buffer[2]; |
buffer | 191 | drivers/scsi/sr_ioctl.c | tochdr.cdth_trk1 = buffer[3]; |
buffer | 193 | drivers/scsi/sr_ioctl.c | scsi_free(buffer, 512); |
buffer | 204 | drivers/scsi/sr_ioctl.c | char * buffer; |
buffer | 217 | drivers/scsi/sr_ioctl.c | buffer = (unsigned char *) scsi_malloc(512); |
buffer | 218 | drivers/scsi/sr_ioctl.c | if(!buffer) return -ENOMEM; |
buffer | 220 | drivers/scsi/sr_ioctl.c | result = do_ioctl (target, sr_cmd, buffer, 12); |
buffer | 223 | drivers/scsi/sr_ioctl.c | tocentry.cdte_addr.msf.minute = buffer[9]; |
buffer | 224 | drivers/scsi/sr_ioctl.c | tocentry.cdte_addr.msf.second = buffer[10]; |
buffer | 225 | drivers/scsi/sr_ioctl.c | tocentry.cdte_addr.msf.frame = buffer[11]; |
buffer | 226 | drivers/scsi/sr_ioctl.c | tocentry.cdte_ctrl = buffer[5] & 0xf; |
buffer | 229 | drivers/scsi/sr_ioctl.c | tocentry.cdte_addr.lba = (int) buffer[0]; |
buffer | 231 | drivers/scsi/sr_ioctl.c | scsi_free(buffer, 512); |
buffer | 273 | drivers/scsi/sr_ioctl.c | char * buffer, * mask; |
buffer | 288 | drivers/scsi/sr_ioctl.c | buffer = (unsigned char *) scsi_malloc(512); |
buffer | 289 | drivers/scsi/sr_ioctl.c | if(!buffer) return -ENOMEM; |
buffer | 291 | drivers/scsi/sr_ioctl.c | if ((result = do_ioctl (target, sr_cmd, buffer, 28))) { |
buffer | 293 | drivers/scsi/sr_ioctl.c | scsi_free(buffer, 512); |
buffer | 306 | drivers/scsi/sr_ioctl.c | scsi_free(buffer, 512); |
buffer | 312 | drivers/scsi/sr_ioctl.c | scsi_free(buffer, 512); |
buffer | 319 | drivers/scsi/sr_ioctl.c | buffer[21] = volctrl.channel0 & mask[21]; |
buffer | 320 | drivers/scsi/sr_ioctl.c | buffer[23] = volctrl.channel1 & mask[23]; |
buffer | 321 | drivers/scsi/sr_ioctl.c | buffer[25] = volctrl.channel2 & mask[25]; |
buffer | 322 | drivers/scsi/sr_ioctl.c | buffer[27] = volctrl.channel3 & mask[27]; |
buffer | 330 | drivers/scsi/sr_ioctl.c | result = do_ioctl (target, sr_cmd, buffer, 28); |
buffer | 331 | drivers/scsi/sr_ioctl.c | scsi_free(buffer, 512); |
buffer | 339 | drivers/scsi/sr_ioctl.c | char * buffer; |
buffer | 351 | drivers/scsi/sr_ioctl.c | buffer = (unsigned char*) scsi_malloc(512); |
buffer | 352 | drivers/scsi/sr_ioctl.c | if(!buffer) return -ENOMEM; |
buffer | 354 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, buffer, 16); |
buffer | 356 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_audiostatus = buffer[1]; |
buffer | 358 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_ctrl = buffer[5] & 0xf; |
buffer | 359 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_trk = buffer[6]; |
buffer | 360 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_ind = buffer[7]; |
buffer | 362 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_reladdr.msf.minute = buffer[13]; |
buffer | 363 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_reladdr.msf.second = buffer[14]; |
buffer | 364 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_reladdr.msf.frame = buffer[15]; |
buffer | 365 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_absaddr.msf.minute = buffer[9]; |
buffer | 366 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_absaddr.msf.second = buffer[10]; |
buffer | 367 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_absaddr.msf.frame = buffer[11]; |
buffer | 369 | drivers/scsi/sr_ioctl.c | scsi_free(buffer, 512); |
buffer | 108 | drivers/scsi/st.c | if (scsi_tapes[st_nbr].buffer->writing && |
buffer | 111 | drivers/scsi/st.c | scsi_tapes[st_nbr].buffer->last_result = INT_MAX; |
buffer | 113 | drivers/scsi/st.c | scsi_tapes[st_nbr].buffer->last_result = SCpnt->result; |
buffer | 114 | drivers/scsi/st.c | if (scsi_tapes[st_nbr].buffer->writing) |
buffer | 118 | drivers/scsi/st.c | if (scsi_tapes[st_nbr].buffer->writing <= 0) |
buffer | 154 | drivers/scsi/st.c | if (scsi_tapes[dev].buffer->last_result < 0) { |
buffer | 155 | drivers/scsi/st.c | scsi_tapes[dev].buffer->writing = (- scsi_tapes[dev].buffer->writing); |
buffer | 157 | drivers/scsi/st.c | scsi_tapes[dev].buffer->writing = (- scsi_tapes[dev].buffer->writing); |
buffer | 161 | drivers/scsi/st.c | if (scsi_tapes[dev].buffer->writing < scsi_tapes[dev].buffer->buffer_bytes) |
buffer | 162 | drivers/scsi/st.c | memcpy(scsi_tapes[dev].buffer->b_data, |
buffer | 163 | drivers/scsi/st.c | scsi_tapes[dev].buffer->b_data + scsi_tapes[dev].buffer->writing, |
buffer | 164 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes - |
buffer | 165 | drivers/scsi/st.c | scsi_tapes[dev].buffer->writing); |
buffer | 166 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes -= scsi_tapes[dev].buffer->writing; |
buffer | 167 | drivers/scsi/st.c | scsi_tapes[dev].buffer->writing = 0; |
buffer | 183 | drivers/scsi/st.c | if (scsi_tapes[dev].buffer->writing) { |
buffer | 185 | drivers/scsi/st.c | if (scsi_tapes[dev].buffer->last_result) { |
buffer | 188 | drivers/scsi/st.c | scsi_tapes[dev].buffer->last_result); |
buffer | 199 | drivers/scsi/st.c | offset = scsi_tapes[dev].buffer->buffer_bytes; |
buffer | 205 | drivers/scsi/st.c | memset(scsi_tapes[dev].buffer->b_data + offset, 0, transfer - offset); |
buffer | 217 | drivers/scsi/st.c | (void *) cmd, scsi_tapes[dev].buffer->b_data, transfer, |
buffer | 231 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes = 0; |
buffer | 255 | drivers/scsi/st.c | backspace = (scsi_tapes[dev].buffer->buffer_bytes + |
buffer | 256 | drivers/scsi/st.c | scsi_tapes[dev].buffer->read_pointer) / scsi_tapes[dev].block_size - |
buffer | 257 | drivers/scsi/st.c | (scsi_tapes[dev].buffer->read_pointer + scsi_tapes[dev].block_size - 1) / |
buffer | 259 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes = 0; |
buffer | 260 | drivers/scsi/st.c | scsi_tapes[dev].buffer->read_pointer = 0; |
buffer | 301 | drivers/scsi/st.c | scsi_tapes[dev].buffer = st_buffers[i]; |
buffer | 323 | drivers/scsi/st.c | (void *) cmd, (void *) scsi_tapes[dev].buffer->b_data, |
buffer | 339 | drivers/scsi/st.c | (void *) cmd, (void *) scsi_tapes[dev].buffer->b_data, |
buffer | 355 | drivers/scsi/st.c | scsi_tapes[dev].buffer->in_use = 0; |
buffer | 366 | drivers/scsi/st.c | (void *) cmd, (void *) scsi_tapes[dev].buffer->b_data, |
buffer | 372 | drivers/scsi/st.c | scsi_tapes[dev].max_block = (scsi_tapes[dev].buffer->b_data[1] << 16) | |
buffer | 373 | drivers/scsi/st.c | (scsi_tapes[dev].buffer->b_data[2] << 8) | scsi_tapes[dev].buffer->b_data[3]; |
buffer | 374 | drivers/scsi/st.c | scsi_tapes[dev].min_block = (scsi_tapes[dev].buffer->b_data[4] << 8) | |
buffer | 375 | drivers/scsi/st.c | scsi_tapes[dev].buffer->b_data[5]; |
buffer | 394 | drivers/scsi/st.c | (void *) cmd, (void *) scsi_tapes[dev].buffer->b_data, |
buffer | 404 | drivers/scsi/st.c | scsi_tapes[dev].buffer->b_data[2] = |
buffer | 405 | drivers/scsi/st.c | scsi_tapes[dev].buffer->b_data[3] = 0; |
buffer | 411 | drivers/scsi/st.c | scsi_tapes[dev].buffer->b_data[0], scsi_tapes[dev].buffer->b_data[1], |
buffer | 412 | drivers/scsi/st.c | scsi_tapes[dev].buffer->b_data[2], scsi_tapes[dev].buffer->b_data[3]); |
buffer | 415 | drivers/scsi/st.c | if (scsi_tapes[dev].buffer->b_data[3] >= 8) { |
buffer | 416 | drivers/scsi/st.c | scsi_tapes[dev].drv_buffer = (scsi_tapes[dev].buffer->b_data[2] >> 4) & 7; |
buffer | 417 | drivers/scsi/st.c | scsi_tapes[dev].density = scsi_tapes[dev].buffer->b_data[4]; |
buffer | 418 | drivers/scsi/st.c | scsi_tapes[dev].block_size = scsi_tapes[dev].buffer->b_data[9] * 65536 + |
buffer | 419 | drivers/scsi/st.c | scsi_tapes[dev].buffer->b_data[10] * 256 + scsi_tapes[dev].buffer->b_data[11]; |
buffer | 422 | drivers/scsi/st.c | scsi_tapes[dev].buffer->b_data[4], scsi_tapes[dev].buffer->b_data[5] * |
buffer | 423 | drivers/scsi/st.c | 65536 + scsi_tapes[dev].buffer->b_data[6] * 256 + |
buffer | 424 | drivers/scsi/st.c | scsi_tapes[dev].buffer->b_data[7], scsi_tapes[dev].buffer->b_data[9] * |
buffer | 425 | drivers/scsi/st.c | 65536 + scsi_tapes[dev].buffer->b_data[10] * 256 + |
buffer | 426 | drivers/scsi/st.c | scsi_tapes[dev].buffer->b_data[11], |
buffer | 432 | drivers/scsi/st.c | scsi_tapes[dev].buffer->in_use = 0; |
buffer | 442 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_blocks = |
buffer | 444 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_size = |
buffer | 445 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_blocks * scsi_tapes[dev].block_size; |
buffer | 448 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_blocks = 1; |
buffer | 449 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_size = ST_BUFFER_SIZE; |
buffer | 451 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes = scsi_tapes[dev].buffer->read_pointer = 0; |
buffer | 455 | drivers/scsi/st.c | scsi_tapes[dev].block_size, scsi_tapes[dev].buffer->buffer_size, |
buffer | 456 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_blocks); |
buffer | 459 | drivers/scsi/st.c | if (scsi_tapes[dev].buffer->b_data[2] & 0x80) { |
buffer | 500 | drivers/scsi/st.c | (void *) cmd, (void *) scsi_tapes[dev].buffer->b_data, |
buffer | 529 | drivers/scsi/st.c | scsi_tapes[dev].buffer->in_use = 0; |
buffer | 567 | drivers/scsi/st.c | if (scsi_tapes[dev].buffer->writing) { |
buffer | 569 | drivers/scsi/st.c | if (scsi_tapes[dev].buffer->last_result) { |
buffer | 572 | drivers/scsi/st.c | scsi_tapes[dev].buffer->last_result); |
buffer | 597 | drivers/scsi/st.c | (scsi_tapes[dev].buffer->buffer_bytes + count) > |
buffer | 598 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_size) |
buffer | 601 | drivers/scsi/st.c | (scsi_tapes[dev].buffer->buffer_bytes + count) >= |
buffer | 602 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_size) |
buffer | 608 | drivers/scsi/st.c | do_count = scsi_tapes[dev].buffer->buffer_size - |
buffer | 609 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes; |
buffer | 610 | drivers/scsi/st.c | memcpy_fromfs(scsi_tapes[dev].buffer->b_data + |
buffer | 611 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes, b_point, do_count); |
buffer | 616 | drivers/scsi/st.c | blks = scsi_tapes[dev].buffer->buffer_blocks; |
buffer | 623 | drivers/scsi/st.c | (void *) cmd, scsi_tapes[dev].buffer->b_data, |
buffer | 624 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_size, |
buffer | 648 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes = 0; |
buffer | 653 | drivers/scsi/st.c | memcpy_fromfs(scsi_tapes[dev].buffer->b_data + |
buffer | 654 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes,b_point,count); |
buffer | 656 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes += count; |
buffer | 667 | drivers/scsi/st.c | if (scsi_tapes[dev].buffer->buffer_bytes >= ST_WRITE_THRESHOLD || |
buffer | 671 | drivers/scsi/st.c | scsi_tapes[dev].buffer->writing = scsi_tapes[dev].buffer->buffer_bytes; |
buffer | 673 | drivers/scsi/st.c | scsi_tapes[dev].buffer->writing = (scsi_tapes[dev].buffer->buffer_bytes / |
buffer | 678 | drivers/scsi/st.c | blks = scsi_tapes[dev].buffer->writing; |
buffer | 680 | drivers/scsi/st.c | blks = scsi_tapes[dev].buffer->writing / scsi_tapes[dev].block_size; |
buffer | 684 | drivers/scsi/st.c | SCpnt->result = scsi_tapes[dev].buffer->last_result = -1; |
buffer | 688 | drivers/scsi/st.c | (void *) cmd, scsi_tapes[dev].buffer->b_data, |
buffer | 689 | drivers/scsi/st.c | scsi_tapes[dev].buffer->writing, |
buffer | 730 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes); |
buffer | 732 | drivers/scsi/st.c | if ((scsi_tapes[dev].buffer->buffer_bytes == 0) && |
buffer | 742 | drivers/scsi/st.c | if (scsi_tapes[dev].buffer->buffer_bytes == 0 && |
buffer | 751 | drivers/scsi/st.c | blks = scsi_tapes[dev].buffer->buffer_blocks; |
buffer | 761 | drivers/scsi/st.c | (void *) cmd, scsi_tapes[dev].buffer->b_data, |
buffer | 762 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_size, |
buffer | 767 | drivers/scsi/st.c | scsi_tapes[dev].buffer->read_pointer = 0; |
buffer | 789 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes = count - transfer; |
buffer | 799 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes = |
buffer | 800 | drivers/scsi/st.c | (scsi_tapes[dev].buffer->buffer_blocks - transfer) * |
buffer | 804 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_blocks - transfer); |
buffer | 810 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes = |
buffer | 813 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes = |
buffer | 814 | drivers/scsi/st.c | (scsi_tapes[dev].buffer->buffer_blocks - transfer) * |
buffer | 818 | drivers/scsi/st.c | dev, scsi_tapes[dev].buffer->buffer_blocks - transfer, total); |
buffer | 842 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes = bytes; |
buffer | 847 | drivers/scsi/st.c | if (scsi_tapes[dev].buffer->buffer_bytes > 0) { |
buffer | 851 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes, count - total); |
buffer | 853 | drivers/scsi/st.c | transfer = scsi_tapes[dev].buffer->buffer_bytes < count - total ? |
buffer | 854 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes : count - total; |
buffer | 855 | drivers/scsi/st.c | memcpy_tofs(buf, scsi_tapes[dev].buffer->b_data + |
buffer | 856 | drivers/scsi/st.c | scsi_tapes[dev].buffer->read_pointer,transfer); |
buffer | 860 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes -= transfer; |
buffer | 861 | drivers/scsi/st.c | scsi_tapes[dev].buffer->read_pointer += transfer; |
buffer | 1044 | drivers/scsi/st.c | if (scsi_tapes[dev].dirty || scsi_tapes[dev].buffer->buffer_bytes != 0) |
buffer | 1056 | drivers/scsi/st.c | memset(scsi_tapes[dev].buffer->b_data, 0, 12); |
buffer | 1058 | drivers/scsi/st.c | scsi_tapes[dev].buffer->b_data[2] = (arg & 7) << 4; |
buffer | 1060 | drivers/scsi/st.c | scsi_tapes[dev].buffer->b_data[2] = |
buffer | 1062 | drivers/scsi/st.c | scsi_tapes[dev].buffer->b_data[3] = 8; /* block descriptor length */ |
buffer | 1064 | drivers/scsi/st.c | scsi_tapes[dev].buffer->b_data[4] = arg; |
buffer | 1066 | drivers/scsi/st.c | scsi_tapes[dev].buffer->b_data[4] = scsi_tapes[dev].density; |
buffer | 1071 | drivers/scsi/st.c | scsi_tapes[dev].buffer->b_data[9] = (ltmp >> 16); |
buffer | 1072 | drivers/scsi/st.c | scsi_tapes[dev].buffer->b_data[10] = (ltmp >> 8); |
buffer | 1073 | drivers/scsi/st.c | scsi_tapes[dev].buffer->b_data[11] = ltmp; |
buffer | 1078 | drivers/scsi/st.c | scsi_tapes[dev].buffer->b_data[9] * 65536 + |
buffer | 1079 | drivers/scsi/st.c | scsi_tapes[dev].buffer->b_data[10] * 256 + |
buffer | 1080 | drivers/scsi/st.c | scsi_tapes[dev].buffer->b_data[11]); |
buffer | 1083 | drivers/scsi/st.c | scsi_tapes[dev].buffer->b_data[4]); |
buffer | 1086 | drivers/scsi/st.c | (scsi_tapes[dev].buffer->b_data[2] >> 4) & 7); |
buffer | 1098 | drivers/scsi/st.c | (void *) cmd, (void *) scsi_tapes[dev].buffer->b_data, ST_BLOCK_SIZE, |
buffer | 1115 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_blocks = |
buffer | 1117 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_size = |
buffer | 1118 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_blocks * scsi_tapes[dev].block_size; |
buffer | 1121 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_blocks = 1; |
buffer | 1122 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_size = ST_BUFFER_SIZE; |
buffer | 1124 | drivers/scsi/st.c | scsi_tapes[dev].buffer->buffer_bytes = |
buffer | 1125 | drivers/scsi/st.c | scsi_tapes[dev].buffer->read_pointer = 0; |
buffer | 1193 | drivers/scsi/st.c | memcpy_tofs((char *)arg, (char *)scsi_tapes[dev].buffer->mt_status, |
buffer | 1227 | drivers/scsi/st.c | (void *) scmd, (void *) scsi_tapes[dev].buffer->b_data, |
buffer | 1242 | drivers/scsi/st.c | mt_pos.mt_blkno = (scsi_tapes[dev].buffer->b_data[0] << 16) |
buffer | 1243 | drivers/scsi/st.c | + (scsi_tapes[dev].buffer->b_data[1] << 8) |
buffer | 1244 | drivers/scsi/st.c | + scsi_tapes[dev].buffer->b_data[2]; |
buffer | 1246 | drivers/scsi/st.c | mt_pos.mt_blkno = (scsi_tapes[dev].buffer->b_data[4] << 24) |
buffer | 1247 | drivers/scsi/st.c | + (scsi_tapes[dev].buffer->b_data[5] << 16) |
buffer | 1248 | drivers/scsi/st.c | + (scsi_tapes[dev].buffer->b_data[6] << 8) |
buffer | 1249 | drivers/scsi/st.c | + scsi_tapes[dev].buffer->b_data[7]; |
buffer | 36 | drivers/scsi/st.h | ST_buffer * buffer; |
buffer | 745 | fs/ext/namei.c | #define PARENT_INO(buffer) \ |
buffer | 746 | fs/ext/namei.c | ((struct ext_dir_entry *) ((char *) buffer + \ |
buffer | 747 | fs/ext/namei.c | ((struct ext_dir_entry *) buffer)->rec_len))->inode |
buffer | 749 | fs/ext/namei.c | #define PARENT_NAME(buffer) \ |
buffer | 750 | fs/ext/namei.c | ((struct ext_dir_entry *) ((char *) buffer + \ |
buffer | 751 | fs/ext/namei.c | ((struct ext_dir_entry *) buffer)->rec_len))->name |
buffer | 85 | fs/ext/symlink.c | static int ext_readlink(struct inode * inode, char * buffer, int buflen) |
buffer | 104 | fs/ext/symlink.c | put_fs_byte(c,buffer++); |
buffer | 865 | fs/ext2/namei.c | #define PARENT_INO(buffer) \ |
buffer | 866 | fs/ext2/namei.c | ((struct ext2_dir_entry *) ((char *) buffer + \ |
buffer | 867 | fs/ext2/namei.c | ((struct ext2_dir_entry *) buffer)->rec_len))->inode |
buffer | 869 | fs/ext2/namei.c | #define PARENT_NAME(buffer) \ |
buffer | 870 | fs/ext2/namei.c | ((struct ext2_dir_entry *) ((char *) buffer + \ |
buffer | 871 | 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 | 75 | fs/isofs/file.c | static inline void unixify_text_buffer(char * buffer, int chars, int mode) |
buffer | 78 | fs/isofs/file.c | if(*buffer == 0x1a) *buffer = 0x0a; |
buffer | 79 | fs/isofs/file.c | if(*buffer == 0x0d){ |
buffer | 80 | fs/isofs/file.c | if(mode == ISOFS_FILE_TEXT_M) *buffer = 0x0a; |
buffer | 81 | fs/isofs/file.c | if(mode == ISOFS_FILE_TEXT) *buffer = ' '; |
buffer | 83 | fs/isofs/file.c | buffer++; |
buffer | 40 | fs/isofs/rock.c | void * buffer = 0 |
buffer | 54 | fs/isofs/rock.c | {if (buffer) kfree(buffer); \ |
buffer | 58 | fs/isofs/rock.c | buffer = kmalloc(cont_size,GFP_KERNEL); \ |
buffer | 68 | fs/isofs/rock.c | memcpy(buffer, bh->b_data, cont_size); \ |
buffer | 70 | fs/isofs/rock.c | chr = (unsigned char *) buffer; \ |
buffer | 152 | fs/isofs/rock.c | if(buffer) kfree(buffer); |
buffer | 218 | fs/isofs/rock.c | if (buffer) kfree(buffer); |
buffer | 234 | fs/isofs/rock.c | if(buffer) kfree(buffer); |
buffer | 360 | fs/isofs/rock.c | if(buffer) kfree(buffer); |
buffer | 480 | fs/isofs/rock.c | if(buffer) kfree(buffer); |
buffer | 80 | fs/isofs/symlink.c | static int isofs_readlink(struct inode * inode, char * buffer, int buflen) |
buffer | 102 | fs/isofs/symlink.c | put_fs_byte(c,buffer++); |
buffer | 24 | fs/minix/namei.c | const char * name, const char * buffer) |
buffer | 26 | fs/minix/namei.c | if (len >= maxlen || !buffer[len]) { |
buffer | 30 | fs/minix/namei.c | :"S" ((long) name),"D" ((long) buffer),"c" (len) |
buffer | 658 | fs/minix/namei.c | #define PARENT_INO(buffer) \ |
buffer | 659 | 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 | 84 | fs/nfs/symlink.c | static int nfs_readlink(struct inode *inode, char *buffer, int buflen) |
buffer | 105 | fs/nfs/symlink.c | put_fs_byte(c,buffer++); |
buffer | 27 | fs/proc/array.c | int get_malloc(char * buffer); |
buffer | 75 | fs/proc/array.c | static int get_loadavg(char * buffer) |
buffer | 82 | fs/proc/array.c | return sprintf(buffer,"%d.%02d %d.%02d %d.%02d\n", |
buffer | 88 | fs/proc/array.c | static int get_uptime(char * buffer) |
buffer | 95 | fs/proc/array.c | return sprintf(buffer,"%lu.%02lu %lu.%02lu\n", |
buffer | 102 | fs/proc/array.c | static int get_meminfo(char * buffer) |
buffer | 108 | fs/proc/array.c | return sprintf(buffer, " total: used: free: shared: buffers:\n" |
buffer | 115 | fs/proc/array.c | static int get_version(char * buffer) |
buffer | 119 | fs/proc/array.c | strcpy(buffer, linux_banner); |
buffer | 120 | fs/proc/array.c | return strlen(buffer); |
buffer | 154 | fs/proc/array.c | static int get_array(struct task_struct ** p, unsigned long start, unsigned long end, char * buffer) |
buffer | 171 | fs/proc/array.c | buffer[size++] = c; |
buffer | 182 | fs/proc/array.c | static int get_env(int pid, char * buffer) |
buffer | 188 | fs/proc/array.c | return get_array(p, (*p)->env_start, (*p)->env_end, buffer); |
buffer | 191 | fs/proc/array.c | static int get_arg(int pid, char * buffer) |
buffer | 197 | fs/proc/array.c | return get_array(p, (*p)->arg_start, (*p)->arg_end, buffer); |
buffer | 227 | fs/proc/array.c | static int get_stat(int pid, char * buffer) |
buffer | 263 | fs/proc/array.c | return sprintf(buffer,"%d (%s) %c %d %d %d %d %d %lu %lu \ |
buffer | 305 | fs/proc/array.c | static int get_statm(int pid, char * buffer) |
buffer | 348 | fs/proc/array.c | return sprintf(buffer,"%d %d %d %d %d %d %d\n", |
buffer | 104 | fs/proc/link.c | static int proc_readlink(struct inode * inode, char * buffer, int buflen) |
buffer | 123 | fs/proc/link.c | put_fs_byte(buf[i++],buffer++); |
buffer | 195 | fs/select.c | asmlinkage int sys_select( unsigned long *buffer ) |
buffer | 206 | fs/select.c | i = verify_area(VERIFY_READ, buffer, 20); |
buffer | 209 | fs/select.c | n = get_fs_long(buffer++); |
buffer | 214 | fs/select.c | inp = (fd_set *) get_fs_long(buffer++); |
buffer | 215 | fs/select.c | outp = (fd_set *) get_fs_long(buffer++); |
buffer | 216 | fs/select.c | exp = (fd_set *) get_fs_long(buffer++); |
buffer | 217 | fs/select.c | tvp = (struct timeval *) get_fs_long(buffer); |
buffer | 698 | fs/xiafs/namei.c | #define PARENT_INO(buffer) \ |
buffer | 699 | 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 | 68 | fs/xiafs/symlink.c | put_fs_byte(c, buffer++); |
buffer | 70 | fs/xiafs/symlink.c | put_fs_byte((char)0, buffer); |
buffer | 380 | include/linux/fs.h | extern void ll_rw_page(int rw, int dev, int nr, char * buffer); |
buffer | 381 | include/linux/fs.h | extern void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buffer); |
buffer | 23 | include/linux/ldt.h | extern int get_ldt(void *buffer); |
buffer | 118 | include/linux/xd.h | static int xd_readwrite (u_char operation,u_char drive,char *buffer,u_int block,u_int count); |
buffer | 122 | include/linux/xd.h | static u_char xd_setup_dma (u_char opcode,u_char *buffer,u_int count); |
buffer | 506 | lib/malloc.c | int get_malloc(char *buffer) |
buffer | 526 | lib/malloc.c | len += sprintf(buffer+len,"...\n"); |
buffer | 529 | lib/malloc.c | len += sprintf(buffer+len,"%08x:%03x %s:%d %s:%d\n", |
buffer | 137 | mm/mmap.c | asmlinkage int sys_mmap(unsigned long *buffer) |
buffer | 143 | mm/mmap.c | error = verify_area(VERIFY_READ, buffer, 6*4); |
buffer | 146 | mm/mmap.c | fd = get_fs_long(buffer+4); |
buffer | 149 | mm/mmap.c | return do_mmap(file, get_fs_long(buffer), get_fs_long(buffer+1), |
buffer | 150 | mm/mmap.c | get_fs_long(buffer+2), get_fs_long(buffer+3), get_fs_long(buffer+5)); |
buffer | 758 | net/inet/arp.c | arp_get_info(char *buffer) |
buffer | 766 | net/inet/arp.c | pos = buffer; |
buffer | 773 | net/inet/arp.c | if (pos < (buffer + 4000)) { |
buffer | 788 | net/inet/arp.c | return(pos - buffer); |
buffer | 60 | net/inet/arp.h | extern int arp_get_info(char *buffer); |
buffer | 743 | net/inet/dev.c | char *sprintf_stats(char *buffer, struct device *dev) |
buffer | 745 | net/inet/dev.c | char *pos = buffer; |
buffer | 768 | net/inet/dev.c | dev_get_info(char *buffer) |
buffer | 770 | net/inet/dev.c | char *pos = buffer; |
buffer | 780 | net/inet/dev.c | return pos - buffer; |
buffer | 186 | net/inet/dev.h | extern int dev_get_info(char *buffer); |
buffer | 57 | net/inet/proc.c | get__netinfo(struct proto *pro, char *buffer, int format) |
buffer | 61 | net/inet/proc.c | char *pos=buffer; |
buffer | 98 | net/inet/proc.c | if (pos > buffer+PAGE_SIZE-80) { |
buffer | 101 | net/inet/proc.c | return(strlen(buffer)); |
buffer | 114 | net/inet/proc.c | return(strlen(buffer)); |
buffer | 118 | net/inet/proc.c | int tcp_get_info(char *buffer) |
buffer | 120 | net/inet/proc.c | return get__netinfo(&tcp_prot, buffer,0); |
buffer | 124 | net/inet/proc.c | int udp_get_info(char *buffer) |
buffer | 126 | net/inet/proc.c | return get__netinfo(&udp_prot, buffer,1); |
buffer | 130 | net/inet/proc.c | int raw_get_info(char *buffer) |
buffer | 132 | net/inet/proc.c | return get__netinfo(&raw_prot, buffer,1); |
buffer | 343 | net/inet/route.c | rt_get_info(char *buffer) |
buffer | 348 | net/inet/route.c | pos = buffer; |
buffer | 359 | net/inet/route.c | return(pos - buffer); |
buffer | 42 | net/inet/route.h | extern int rt_get_info(char * buffer); |
buffer | 38 | net/unix/proc.c | int unix_get_info(char *buffer) |
buffer | 43 | net/unix/proc.c | pos = buffer; |
buffer | 71 | net/unix/proc.c | if (pos > buffer+PAGE_SIZE-80-PATH_MAX) { |
buffer | 73 | net/unix/proc.c | return(pos - buffer); |
buffer | 77 | net/unix/proc.c | return(pos - buffer); |