tag | line | file | source code |
buffer | 252 | drivers/block/blk.h | req->buffer = bh->b_data; |
buffer | 1266 | drivers/block/cdu31a.c | memcpy(CURRENT->buffer, sony_buffer+copyoff, 512); |
buffer | 1270 | drivers/block/cdu31a.c | CURRENT->buffer += 512; |
buffer | 654 | drivers/block/floppy.c | CURRENT->buffer != current_addr || |
buffer | 663 | drivers/block/floppy.c | CURRENT->buffer, CURRENT->nr_sectors, |
buffer | 1659 | drivers/block/floppy.c | CURRENT->buffer += current_count_sectors <<9; |
buffer | 1770 | drivers/block/floppy.c | if ( COMMAND != FD_READ || current_addr == CURRENT->buffer ){ |
buffer | 1789 | drivers/block/floppy.c | base = CURRENT->buffer; |
buffer | 1830 | drivers/block/floppy.c | char *buffer, *dma_buffer; |
buffer | 1865 | drivers/block/floppy.c | buffer = CURRENT->buffer; |
buffer | 1892 | drivers/block/floppy.c | if ( ((int)buffer) % 512 ) |
buffer | 1893 | drivers/block/floppy.c | printk(DEVICE_NAME ": %p buffer not aligned\n", buffer); |
buffer | 1896 | drivers/block/floppy.c | memcpy( buffer, dma_buffer, size); |
buffer | 1898 | drivers/block/floppy.c | memcpy( dma_buffer, buffer, size); |
buffer | 1913 | drivers/block/floppy.c | buffer = bh->b_data; |
buffer | 2029 | drivers/block/floppy.c | } else if ((long)CURRENT->buffer <= LAST_DMA_ADDR ) { |
buffer | 2036 | drivers/block/floppy.c | if ( max_size > ( LAST_DMA_ADDR - ((long) CURRENT->buffer))>>9) |
buffer | 2037 | drivers/block/floppy.c | max_size=(LAST_DMA_ADDR - ((long)CURRENT->buffer))>>9; |
buffer | 2039 | drivers/block/floppy.c | if ( ((max_size << 9) + ((long) CURRENT->buffer)) / K_64 != |
buffer | 2040 | drivers/block/floppy.c | ((long) CURRENT->buffer ) / K_64 ) |
buffer | 2041 | drivers/block/floppy.c | max_size = ( K_64 - ((long) CURRENT->buffer) % K_64)>>9; |
buffer | 2057 | drivers/block/floppy.c | current_addr = CURRENT->buffer; |
buffer | 2104 | drivers/block/floppy.c | (current_addr != CURRENT->buffer && COMMAND == FD_WRITE && |
buffer | 2111 | drivers/block/floppy.c | if ( current_addr != CURRENT->buffer ) |
buffer | 2127 | drivers/block/floppy.c | if (current_addr != CURRENT->buffer ){ |
buffer | 494 | drivers/block/hd.c | insw(HD_DATA,CURRENT->buffer,nsect<<8); |
buffer | 496 | drivers/block/hd.c | CURRENT->buffer += nsect<<9; |
buffer | 503 | drivers/block/hd.c | CURRENT->nr_sectors, (long) CURRENT->buffer+(nsect<<9)); |
buffer | 527 | drivers/block/hd.c | outsw(HD_DATA,WCURRENT.buffer,256); |
buffer | 530 | drivers/block/hd.c | WCURRENT.buffer += 512; |
buffer | 536 | drivers/block/hd.c | WCURRENT.buffer = WCURRENT.bh->b_data; |
buffer | 611 | drivers/block/hd.c | CURRENT->buffer += 512; |
buffer | 616 | drivers/block/hd.c | outsw(HD_DATA,CURRENT->buffer,256); |
buffer | 700 | drivers/block/hd.c | dev+'a', cyl, head, sec, CURRENT->buffer); |
buffer | 751 | drivers/block/hd.c | CURRENT->sector+nsect-1, (long) CURRENT->buffer); |
buffer | 765 | drivers/block/hd.c | CURRENT->sector+nsect-1, (long) CURRENT->buffer); |
buffer | 776 | drivers/block/hd.c | outsw(HD_DATA,CURRENT->buffer,256); |
buffer | 260 | drivers/block/ll_rw_blk.c | req->buffer = bh->b_data; |
buffer | 297 | drivers/block/ll_rw_blk.c | req->buffer = bh->b_data; |
buffer | 305 | drivers/block/ll_rw_blk.c | void ll_rw_page(int rw, int dev, int page, char * buffer) |
buffer | 330 | drivers/block/ll_rw_blk.c | req->buffer = buffer; |
buffer | 465 | drivers/block/ll_rw_blk.c | req->buffer = buf; |
buffer | 581 | drivers/block/mcd.c | memcpy(CURRENT -> buffer, mcd_buf + offs, nr_sectors * 512); |
buffer | 584 | drivers/block/mcd.c | CURRENT -> buffer += nr_sectors * 512; |
buffer | 47 | drivers/block/ramdisk.c | CURRENT->buffer, |
buffer | 50 | drivers/block/ramdisk.c | (void) memcpy(CURRENT->buffer, |
buffer | 1805 | drivers/block/sbpcd.c | static int yy_SubChanInfo(int frame, int count, u_char *buffer) |
buffer | 2878 | drivers/block/sbpcd.c | memcpy(CURRENT->buffer, DriveStruct[d].sbp_buf + offs, 512); |
buffer | 2881 | drivers/block/sbpcd.c | CURRENT->buffer += 512; |
buffer | 225 | drivers/block/xd.c | code = xd_readwrite(CURRENT->cmd,CURRENT_DEV,CURRENT->buffer,block,count); |
buffer | 322 | drivers/block/xd.c | static int xd_readwrite (u_char operation,u_char drive,char *buffer,u_int block,u_int count) |
buffer | 329 | 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 | 345 | drivers/block/xd.c | mode = xd_setup_dma(operation == READ ? DMA_MODE_READ : DMA_MODE_WRITE,(u_char *)buffer,temp * 0x200); |
buffer | 348 | drivers/block/xd.c | switch (xd_command(cmdblk,mode,(u_char *) buffer,(u_char *) buffer,sense,XD_TIMEOUT)) { |
buffer | 366 | drivers/block/xd.c | count -= temp, buffer += temp * 0x200, block += temp; |
buffer | 396 | drivers/block/xd.c | static u_char xd_setup_dma (u_char mode,u_char *buffer,u_int count) |
buffer | 398 | drivers/block/xd.c | if (buffer < ((u_char *) 0x1000000 - count)) { /* transfer to address < 16M? */ |
buffer | 399 | drivers/block/xd.c | if (((u_int) buffer & 0xFFFF0000) != ((u_int) buffer + count) & 0xFFFF0000) { |
buffer | 408 | drivers/block/xd.c | set_dma_addr(xd_dma,(u_int) buffer); |
buffer | 116 | drivers/char/atixlmouse.c | static int write_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
buffer | 121 | drivers/char/atixlmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
buffer | 131 | drivers/char/atixlmouse.c | put_fs_byte((char)(~mouse.latch_buttons&7) | 0x80 , buffer); |
buffer | 136 | drivers/char/atixlmouse.c | put_fs_byte((char)mouse.dx, buffer + 1); |
buffer | 141 | drivers/char/atixlmouse.c | put_fs_byte((char)-mouse.dy, buffer + 2); |
buffer | 143 | drivers/char/atixlmouse.c | put_fs_byte(0x00, buffer + i); |
buffer | 126 | drivers/char/busmouse.c | static int write_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
buffer | 135 | drivers/char/busmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
buffer | 144 | drivers/char/busmouse.c | if ((r = verify_area(VERIFY_WRITE, buffer, count))) |
buffer | 173 | drivers/char/busmouse.c | put_fs_byte(buttons | 0x80, buffer); |
buffer | 174 | drivers/char/busmouse.c | put_fs_byte((char)dx, buffer + 1); |
buffer | 175 | drivers/char/busmouse.c | put_fs_byte((char)dy, buffer + 2); |
buffer | 177 | drivers/char/busmouse.c | put_fs_byte(0x00, buffer + r); |
buffer | 99 | drivers/char/msbusmouse.c | static int write_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
buffer | 104 | drivers/char/msbusmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
buffer | 112 | drivers/char/msbusmouse.c | put_fs_byte(mouse.buttons | 0x80, buffer); |
buffer | 115 | drivers/char/msbusmouse.c | put_fs_byte((char)dx, buffer + 1); |
buffer | 116 | drivers/char/msbusmouse.c | put_fs_byte((char)dy, buffer + 2); |
buffer | 118 | 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 | 143 | drivers/net/atp.c | static void read_block(short ioaddr, int length, unsigned char *buffer, int data_mode); |
buffer | 410 | drivers/net/de600.c | byte *buffer = skb->data; |
buffer | 465 | drivers/net/de600.c | for ( ; len > 0; --len, ++buffer) |
buffer | 466 | drivers/net/de600.c | de600_put_byte(*buffer); |
buffer | 593 | drivers/net/de600.c | register unsigned char *buffer; |
buffer | 625 | drivers/net/de600.c | buffer = skb->data; |
buffer | 629 | drivers/net/de600.c | for (i = size; i > 0; --i, ++buffer) |
buffer | 630 | drivers/net/de600.c | *buffer = de600_read_byte(READ_DATA, dev); |
buffer | 276 | drivers/net/de620.c | de620_write_block(byte *buffer, int count) |
buffer | 292 | drivers/net/de620.c | for ( ; count > 0; --count, ++buffer) { |
buffer | 293 | drivers/net/de620.c | de620_put_byte(*buffer); |
buffer | 302 | drivers/net/de620.c | outb(*buffer++, DATA_PORT); |
buffer | 304 | drivers/net/de620.c | outb(*buffer++, DATA_PORT); |
buffer | 484 | drivers/net/de620.c | byte *buffer = skb->data; |
buffer | 549 | drivers/net/de620.c | de620_write_block(buffer, len); |
buffer | 623 | drivers/net/de620.c | byte *buffer; |
buffer | 685 | drivers/net/de620.c | buffer = skb->data; |
buffer | 687 | drivers/net/de620.c | de620_read_block(buffer, size); |
buffer | 633 | drivers/net/ni52.c | p->xmit_buffs[i]->buffer = make24((p->xmit_cbuffs[i])); |
buffer | 694 | drivers/net/ni52.c | rbd[i].buffer = make24(ptr); |
buffer | 874 | drivers/net/ni52.c | if(rbd->buffer < rbd_first->buffer) |
buffer | 876 | drivers/net/ni52.c | pnt = p->max_cbuff24 - rbd_first->buffer; |
buffer | 881 | drivers/net/ni52.c | memcpy( (char *) skb->data,(char *) p->base+(unsigned long) rbd_first->buffer, totlen); |
buffer | 143 | drivers/net/ni52.h | char *buffer; /* receive buffer address pointer */ |
buffer | 277 | drivers/net/ni52.h | char *buffer; /* pointer to buffer */ |
buffer | 341 | drivers/net/ni65.c | tmdp->u.buffer = (unsigned long) p->tmdbufs[i]; |
buffer | 350 | drivers/net/ni65.c | rmdp->u.buffer = (unsigned long) p->recv_skb[i]->data; |
buffer | 541 | drivers/net/ni65.c | rmdp->u.buffer = (unsigned long) (skb->data); |
buffer | 609 | drivers/net/ni65.c | tmdp->u.buffer = (unsigned long) (skb->data); |
buffer | 612 | drivers/net/ni65.c | memcpy((char *) (tmdp->u.buffer & 0x00ffffff),(char *)skb->data,skb->len); |
buffer | 104 | drivers/net/ni65.h | volatile unsigned long buffer; |
buffer | 119 | drivers/net/ni65.h | volatile unsigned long buffer; |
buffer | 788 | drivers/net/ppp.c | char buffer[8]; |
buffer | 797 | drivers/net/ppp.c | buffer [count] = tty->read_q.buf[i]; |
buffer | 799 | drivers/net/ppp.c | ppp_print_buffer (NULL, buffer, 8, KERNEL_DS); |
buffer | 804 | drivers/net/ppp.c | ppp_print_buffer (NULL, buffer, count, KERNEL_DS); |
buffer | 1049 | drivers/net/sk_g16.c | tmdp->u.buffer = (unsigned long) p->tmdbufs[i]; /* assign buffer */ |
buffer | 1065 | drivers/net/sk_g16.c | rmdp->u.buffer = (unsigned long) p->rmdbufs[i]; /* assign buffer */ |
buffer | 1259 | drivers/net/sk_g16.c | memcpy((char *) (tmdp->u.buffer & 0x00ffffff), (char *)skb->data, |
buffer | 1605 | drivers/net/sk_g16.c | memcpy(skb->data, (unsigned char *) (rmdp->u.buffer & 0x00ffffff), |
buffer | 136 | drivers/net/sk_g16.h | unsigned long buffer; /* Address of buffer */ |
buffer | 154 | drivers/net/sk_g16.h | unsigned long buffer; /* Address of buffer */ |
buffer | 2485 | drivers/scsi/53c7,8xx.c | ((struct scatterlist *)cmd->buffer)[i].address : |
buffer | 2488 | drivers/scsi/53c7,8xx.c | ((struct scatterlist *)cmd->buffer)[i].length : |
buffer | 306 | drivers/scsi/NCR5380.c | cmd->SCp.buffer = (struct scatterlist *) cmd->buffer; |
buffer | 308 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = (char *) cmd->SCp.buffer->address; |
buffer | 309 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = cmd->SCp.buffer->length; |
buffer | 311 | drivers/scsi/NCR5380.c | cmd->SCp.buffer = NULL; |
buffer | 1962 | drivers/scsi/NCR5380.c | ++cmd->SCp.buffer; |
buffer | 1964 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = cmd->SCp.buffer->length; |
buffer | 1965 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = cmd->SCp.buffer->address; |
buffer | 2123 | drivers/scsi/NCR5380.c | cmd->SCp.buffer = NULL; |
buffer | 719 | drivers/scsi/aha152x.c | SCpnt->SCp.buffer = (struct scatterlist *)SCpnt->request_buffer; |
buffer | 720 | drivers/scsi/aha152x.c | SCpnt->SCp.ptr = SCpnt->SCp.buffer->address; |
buffer | 721 | drivers/scsi/aha152x.c | SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; |
buffer | 728 | drivers/scsi/aha152x.c | SCpnt->SCp.buffer = NULL; |
buffer | 1796 | drivers/scsi/aha152x.c | current_SC->SCp.buffer++; |
buffer | 1798 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->address; |
buffer | 1800 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->length; |
buffer | 1925 | drivers/scsi/aha152x.c | current_SC->SCp.buffer++; |
buffer | 1927 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->address; |
buffer | 1929 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->length; |
buffer | 922 | drivers/scsi/aha1542.c | static buffer[512]; |
buffer | 931 | drivers/scsi/aha1542.c | aha1542_command(0, cmd, buffer, 512); |
buffer | 168 | drivers/scsi/aha1740.c | static char buffer[] = "Adaptec 174x (EISA)"; |
buffer | 169 | drivers/scsi/aha1740.c | return buffer; |
buffer | 1152 | drivers/scsi/buslogic.c | static buffer[512]; |
buffer | 1161 | drivers/scsi/buslogic.c | buslogic_command(0, cmd, buffer, sizeof buffer); |
buffer | 694 | drivers/scsi/fdomain.c | SCinit.request_buffer = SCinit.buffer = buf; |
buffer | 743 | drivers/scsi/fdomain.c | static char buffer[80]; |
buffer | 746 | drivers/scsi/fdomain.c | strcpy( buffer, "Future Domain: TMC-16x0 SCSI driver, version" ); |
buffer | 748 | drivers/scsi/fdomain.c | strcat( buffer, strchr( VERSION, ':' ) + 1 ); |
buffer | 749 | drivers/scsi/fdomain.c | pt = strrchr( buffer, '$') - 1; |
buffer | 751 | drivers/scsi/fdomain.c | pt = buffer + strlen( buffer ) - 1; |
buffer | 757 | drivers/scsi/fdomain.c | strcat( buffer, " " VERSION "\n" ); |
buffer | 760 | drivers/scsi/fdomain.c | return buffer; |
buffer | 1181 | drivers/scsi/fdomain.c | ++current_SC->SCp.buffer; |
buffer | 1182 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
buffer | 1183 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
buffer | 1214 | drivers/scsi/fdomain.c | ++current_SC->SCp.buffer; |
buffer | 1215 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
buffer | 1216 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
buffer | 1297 | drivers/scsi/fdomain.c | current_SC->SCp.buffer = |
buffer | 1299 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
buffer | 1300 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
buffer | 1305 | drivers/scsi/fdomain.c | current_SC->SCp.buffer = NULL; |
buffer | 608 | drivers/scsi/scsi.c | req->buffer = bh->b_data; |
buffer | 707 | drivers/scsi/scsi.c | req->buffer = bh->b_data; |
buffer | 764 | drivers/scsi/scsi.c | "bufflen = %d, done = %08x)\n", SCpnt->host->host_no, SCpnt->target, SCpnt->cmnd, SCpnt->buffer, SCpnt->bufflen, SCpnt->done); |
buffer | 840 | drivers/scsi/scsi.c | void *buffer, unsigned bufflen, void (*done)(Scsi_Cmnd *), |
buffer | 852 | drivers/scsi/scsi.c | "command : " , host->host_no, target, buffer, bufflen, done, timeout, retries); |
buffer | 904 | drivers/scsi/scsi.c | SCpnt->buffer = buffer; |
buffer | 915 | drivers/scsi/scsi.c | SCpnt->request_buffer = buffer; |
buffer | 1320 | drivers/scsi/scsi.c | SCpnt->request_buffer = SCpnt->buffer; |
buffer | 409 | drivers/scsi/scsi.h | struct scatterlist *buffer; /* which buffer */ |
buffer | 440 | drivers/scsi/scsi.h | void *buffer; /* Data buffer */ |
buffer | 506 | drivers/scsi/scsi.h | void *buffer, unsigned bufflen, void (*done)(struct scsi_cmnd *), |
buffer | 549 | drivers/scsi/scsi.h | req->buffer = bh->b_data; |
buffer | 119 | drivers/scsi/scsi_debug.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
buffer | 126 | drivers/scsi/scsi_debug.c | printk("nosg: %x %x %d\n",SCpnt->request.buffer, SCpnt->buffer, |
buffer | 128 | drivers/scsi/scsi_debug.c | lpnt = (int *) SCpnt->request.buffer; |
buffer | 574 | drivers/scsi/scsi_debug.c | static char buffer[] = " "; /* looks nicer without anything here */ |
buffer | 575 | 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 | 140 | drivers/scsi/scsi_ioctl.c | static int ioctl_command(Scsi_Device *dev, void *buffer) |
buffer | 151 | drivers/scsi/scsi_ioctl.c | if (!buffer) |
buffer | 154 | drivers/scsi/scsi_ioctl.c | inlen = get_fs_long((unsigned long *) buffer); |
buffer | 155 | drivers/scsi/scsi_ioctl.c | outlen = get_fs_long( ((unsigned long *) buffer) + 1); |
buffer | 157 | drivers/scsi/scsi_ioctl.c | cmd_in = (char *) ( ((int *)buffer) + 2); |
buffer | 224 | drivers/scsi/scsi_ioctl.c | printk("buffer = %d, cmd_in = %d\n", buffer, cmd_in); |
buffer | 182 | drivers/scsi/sd.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
buffer | 193 | drivers/scsi/sd.c | scsi_free(SCpnt->buffer, SCpnt->sglist_len); /* Free list of scatter-gather pointers */ |
buffer | 195 | drivers/scsi/sd.c | if (SCpnt->buffer != SCpnt->request.buffer) { |
buffer | 197 | drivers/scsi/sd.c | printk("nosg: %x %x %d\n",SCpnt->request.buffer, SCpnt->buffer, |
buffer | 201 | drivers/scsi/sd.c | memcpy(SCpnt->request.buffer, SCpnt->buffer, |
buffer | 203 | drivers/scsi/sd.c | scsi_free(SCpnt->buffer, SCpnt->bufflen); |
buffer | 238 | drivers/scsi/sd.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
buffer | 241 | drivers/scsi/sd.c | printk("err: %x %x %d\n",SCpnt->request.buffer, SCpnt->buffer, |
buffer | 248 | drivers/scsi/sd.c | scsi_free(SCpnt->buffer, SCpnt->sglist_len); /* Free list of scatter-gather pointers */ |
buffer | 251 | drivers/scsi/sd.c | printk("nosgerr: %x %x %d\n",SCpnt->request.buffer, SCpnt->buffer, |
buffer | 254 | drivers/scsi/sd.c | if (SCpnt->buffer != SCpnt->request.buffer) |
buffer | 255 | drivers/scsi/sd.c | scsi_free(SCpnt->buffer, SCpnt->bufflen); |
buffer | 498 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buffer | 518 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buffer | 563 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buffer | 602 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buffer | 688 | drivers/scsi/sd.c | memcpy(buff, (char *)SCpnt->request.buffer, this_count << 9); |
buffer | 802 | drivers/scsi/sd.c | unsigned char *buffer; |
buffer | 812 | drivers/scsi/sd.c | buffer = (unsigned char *) scsi_malloc(512); |
buffer | 827 | drivers/scsi/sd.c | (void *) cmd, (void *) buffer, |
buffer | 852 | drivers/scsi/sd.c | (void *) cmd, (void *) buffer, |
buffer | 880 | drivers/scsi/sd.c | memset ((void *) buffer, 0, 8); |
buffer | 886 | drivers/scsi/sd.c | (void *) cmd, (void *) buffer, |
buffer | 953 | drivers/scsi/sd.c | rscsi_disks[i].capacity = (buffer[0] << 24) | |
buffer | 954 | drivers/scsi/sd.c | (buffer[1] << 16) | |
buffer | 955 | drivers/scsi/sd.c | (buffer[2] << 8) | |
buffer | 956 | drivers/scsi/sd.c | buffer[3]; |
buffer | 958 | drivers/scsi/sd.c | rscsi_disks[i].sector_size = (buffer[4] << 24) | |
buffer | 959 | drivers/scsi/sd.c | (buffer[5] << 16) | (buffer[6] << 8) | buffer[7]; |
buffer | 984 | drivers/scsi/sd.c | scsi_free(buffer, 512); |
buffer | 368 | drivers/scsi/seagate.c | static char buffer[256]; |
buffer | 369 | drivers/scsi/seagate.c | sprintf(buffer, "scsi%d : %s at irq %d address %p options :" |
buffer | 389 | drivers/scsi/seagate.c | return buffer; |
buffer | 579 | drivers/scsi/seagate.c | struct scatterlist *buffer = NULL; |
buffer | 703 | drivers/scsi/seagate.c | buffer=current_buffer; |
buffer | 899 | drivers/scsi/seagate.c | hostno, i, buffer[i].address, buffer[i].length); |
buffer | 903 | drivers/scsi/seagate.c | buffer = (struct scatterlist *) SCint->buffer; |
buffer | 904 | drivers/scsi/seagate.c | len = buffer->length; |
buffer | 905 | drivers/scsi/seagate.c | data = (unsigned char *) buffer->address; |
buffer | 910 | drivers/scsi/seagate.c | buffer = NULL; |
buffer | 1139 | drivers/scsi/seagate.c | ++buffer; |
buffer | 1140 | drivers/scsi/seagate.c | len = buffer->length; |
buffer | 1141 | drivers/scsi/seagate.c | data = (unsigned char *) buffer->address; |
buffer | 1285 | drivers/scsi/seagate.c | ++buffer; |
buffer | 1286 | drivers/scsi/seagate.c | len = buffer->length; |
buffer | 1287 | drivers/scsi/seagate.c | data = (unsigned char *) buffer->address; |
buffer | 1356 | drivers/scsi/seagate.c | current_buffer = buffer; |
buffer | 1388 | drivers/scsi/seagate.c | current_buffer = buffer; |
buffer | 1397 | drivers/scsi/seagate.c | buffer=current_buffer; |
buffer | 143 | drivers/scsi/sr.c | if (SCpnt->buffer != SCpnt->request.buffer) |
buffer | 147 | drivers/scsi/sr.c | memcpy((char *)SCpnt->request.buffer, |
buffer | 148 | drivers/scsi/sr.c | (char *)SCpnt->buffer + offset, |
buffer | 160 | drivers/scsi/sr.c | (char *)SCpnt->buffer + 1024, |
buffer | 165 | drivers/scsi/sr.c | scsi_free(SCpnt->buffer, 2048); |
buffer | 170 | drivers/scsi/sr.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
buffer | 179 | drivers/scsi/sr.c | scsi_free(SCpnt->buffer, SCpnt->sglist_len); /* Free list of scatter-gather pointers */ |
buffer | 209 | drivers/scsi/sr.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
buffer | 215 | drivers/scsi/sr.c | scsi_free(SCpnt->buffer, SCpnt->sglist_len); /* Free list of scatter-gather pointers */ |
buffer | 217 | drivers/scsi/sr.c | if (SCpnt->buffer != SCpnt->request.buffer) |
buffer | 218 | drivers/scsi/sr.c | scsi_free(SCpnt->buffer, SCpnt->bufflen); |
buffer | 366 | drivers/scsi/sr.c | unsigned char cmd[10], *buffer, tries; |
buffer | 379 | drivers/scsi/sr.c | buffer = NULL; |
buffer | 484 | drivers/scsi/sr.c | buffer = (unsigned char *) sgpnt; |
buffer | 532 | drivers/scsi/sr.c | scsi_free(buffer, SCpnt->sglist_len); |
buffer | 563 | drivers/scsi/sr.c | buffer = (unsigned char *) scsi_malloc(2048); |
buffer | 567 | drivers/scsi/sr.c | buffer = (unsigned char *) scsi_malloc(2048); |
buffer | 572 | drivers/scsi/sr.c | buffer = (unsigned char *) SCpnt->request.buffer; |
buffer | 573 | drivers/scsi/sr.c | if (((int) buffer) + (this_count << 9) > ISA_DMA_THRESHOLD & |
buffer | 575 | drivers/scsi/sr.c | buffer = (unsigned char *) scsi_malloc(this_count << 9); |
buffer | 623 | drivers/scsi/sr.c | printk("ReadCD: %d %d %d %d\n",block, realcount, buffer, this_count); |
buffer | 645 | drivers/scsi/sr.c | scsi_do_cmd (SCpnt, (void *) cmd, buffer, |
buffer | 702 | drivers/scsi/sr.c | unsigned char buffer[513]; |
buffer | 715 | drivers/scsi/sr.c | memset(buffer, 0, 8); |
buffer | 718 | drivers/scsi/sr.c | (void *) cmd, (void *) buffer, |
buffer | 747 | drivers/scsi/sr.c | scsi_CDs[i].capacity = (buffer[0] << 24) | |
buffer | 748 | drivers/scsi/sr.c | (buffer[1] << 16) | (buffer[2] << 8) | buffer[3]; |
buffer | 749 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = (buffer[4] << 24) | |
buffer | 750 | drivers/scsi/sr.c | (buffer[5] << 16) | (buffer[6] << 8) | buffer[7]; |
buffer | 37 | drivers/scsi/sr_ioctl.c | static int do_ioctl(int target, unsigned char * sr_cmd, void * buffer, unsigned buflength) |
buffer | 44 | 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 | 206 | drivers/scsi/sr_ioctl.c | char * buffer; |
buffer | 219 | drivers/scsi/sr_ioctl.c | buffer = (unsigned char *) scsi_malloc(512); |
buffer | 220 | drivers/scsi/sr_ioctl.c | if(!buffer) return -ENOMEM; |
buffer | 222 | drivers/scsi/sr_ioctl.c | result = do_ioctl (target, sr_cmd, buffer, 12); |
buffer | 225 | drivers/scsi/sr_ioctl.c | tocentry.cdte_addr.msf.minute = buffer[9]; |
buffer | 226 | drivers/scsi/sr_ioctl.c | tocentry.cdte_addr.msf.second = buffer[10]; |
buffer | 227 | drivers/scsi/sr_ioctl.c | tocentry.cdte_addr.msf.frame = buffer[11]; |
buffer | 228 | drivers/scsi/sr_ioctl.c | tocentry.cdte_ctrl = buffer[5] & 0xf; |
buffer | 231 | drivers/scsi/sr_ioctl.c | tocentry.cdte_addr.lba = (int) buffer[0]; |
buffer | 233 | drivers/scsi/sr_ioctl.c | scsi_free(buffer, 512); |
buffer | 277 | drivers/scsi/sr_ioctl.c | char * buffer, * mask; |
buffer | 292 | drivers/scsi/sr_ioctl.c | buffer = (unsigned char *) scsi_malloc(512); |
buffer | 293 | drivers/scsi/sr_ioctl.c | if(!buffer) return -ENOMEM; |
buffer | 295 | drivers/scsi/sr_ioctl.c | if ((result = do_ioctl (target, sr_cmd, buffer, 28))) { |
buffer | 297 | drivers/scsi/sr_ioctl.c | scsi_free(buffer, 512); |
buffer | 310 | drivers/scsi/sr_ioctl.c | scsi_free(buffer, 512); |
buffer | 316 | drivers/scsi/sr_ioctl.c | scsi_free(buffer, 512); |
buffer | 322 | drivers/scsi/sr_ioctl.c | buffer[0] = 0; /* Clear reserved field */ |
buffer | 324 | drivers/scsi/sr_ioctl.c | buffer[21] = volctrl.channel0 & mask[21]; |
buffer | 325 | drivers/scsi/sr_ioctl.c | buffer[23] = volctrl.channel1 & mask[23]; |
buffer | 326 | drivers/scsi/sr_ioctl.c | buffer[25] = volctrl.channel2 & mask[25]; |
buffer | 327 | drivers/scsi/sr_ioctl.c | buffer[27] = volctrl.channel3 & mask[27]; |
buffer | 335 | drivers/scsi/sr_ioctl.c | result = do_ioctl (target, sr_cmd, buffer, 28); |
buffer | 336 | drivers/scsi/sr_ioctl.c | scsi_free(buffer, 512); |
buffer | 344 | drivers/scsi/sr_ioctl.c | char * buffer; |
buffer | 356 | drivers/scsi/sr_ioctl.c | buffer = (unsigned char*) scsi_malloc(512); |
buffer | 357 | drivers/scsi/sr_ioctl.c | if(!buffer) return -ENOMEM; |
buffer | 359 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, buffer, 16); |
buffer | 361 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_audiostatus = buffer[1]; |
buffer | 363 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_ctrl = buffer[5] & 0xf; |
buffer | 364 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_trk = buffer[6]; |
buffer | 365 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_ind = buffer[7]; |
buffer | 367 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_reladdr.msf.minute = buffer[13]; |
buffer | 368 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_reladdr.msf.second = buffer[14]; |
buffer | 369 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_reladdr.msf.frame = buffer[15]; |
buffer | 370 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_absaddr.msf.minute = buffer[9]; |
buffer | 371 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_absaddr.msf.second = buffer[10]; |
buffer | 372 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_absaddr.msf.frame = buffer[11]; |
buffer | 374 | drivers/scsi/sr_ioctl.c | scsi_free(buffer, 512); |
buffer | 159 | drivers/scsi/st.c | if ((STp->buffer)->writing && |
buffer | 171 | drivers/scsi/st.c | (STp->buffer)->last_result = SCpnt->result; /* Error */ |
buffer | 173 | drivers/scsi/st.c | (STp->buffer)->last_result = INT_MAX; /* OK */ |
buffer | 176 | drivers/scsi/st.c | (STp->buffer)->last_result = SCpnt->result; |
buffer | 177 | drivers/scsi/st.c | (STp->buffer)->last_result_fatal = st_chk_result(SCpnt); |
buffer | 178 | drivers/scsi/st.c | if ((STp->buffer)->writing) |
buffer | 182 | drivers/scsi/st.c | if ((STp->buffer)->writing <= 0) |
buffer | 200 | drivers/scsi/st.c | STbuffer = STp->buffer; |
buffer | 245 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, 0, |
buffer | 250 | drivers/scsi/st.c | if ((STp->buffer)->last_result != 0) { |
buffer | 256 | drivers/scsi/st.c | return (STp->buffer)->last_result_fatal; |
buffer | 270 | drivers/scsi/st.c | if ((STp->buffer)->writing) { |
buffer | 272 | drivers/scsi/st.c | if ((STp->buffer)->last_result_fatal) { |
buffer | 276 | drivers/scsi/st.c | (STp->buffer)->last_result); |
buffer | 278 | drivers/scsi/st.c | if ((STp->buffer)->last_result == INT_MAX) |
buffer | 288 | drivers/scsi/st.c | offset = (STp->buffer)->buffer_bytes; |
buffer | 295 | drivers/scsi/st.c | memset((STp->buffer)->b_data + offset, 0, transfer - offset); |
buffer | 307 | drivers/scsi/st.c | (void *) cmd, (STp->buffer)->b_data, transfer, |
buffer | 312 | drivers/scsi/st.c | if ((STp->buffer)->last_result_fatal != 0) { |
buffer | 318 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes = 0; |
buffer | 329 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes = 0; |
buffer | 349 | drivers/scsi/st.c | STbuffer = STp->buffer; |
buffer | 357 | drivers/scsi/st.c | backspace = ((STp->buffer)->buffer_bytes + |
buffer | 358 | drivers/scsi/st.c | (STp->buffer)->read_pointer) / STp->block_size - |
buffer | 359 | drivers/scsi/st.c | ((STp->buffer)->read_pointer + STp->block_size - 1) / |
buffer | 361 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes = 0; |
buffer | 362 | drivers/scsi/st.c | (STp->buffer)->read_pointer = 0; |
buffer | 408 | drivers/scsi/st.c | STp->buffer = st_buffers[i]; |
buffer | 409 | drivers/scsi/st.c | (STp->buffer)->in_use = 1; |
buffer | 410 | drivers/scsi/st.c | (STp->buffer)->writing = 0; |
buffer | 433 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, |
buffer | 447 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, |
buffer | 455 | drivers/scsi/st.c | if ((STp->buffer)->last_result_fatal != 0) { |
buffer | 464 | drivers/scsi/st.c | (STp->buffer)->in_use = 0; |
buffer | 475 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, |
buffer | 481 | drivers/scsi/st.c | STp->max_block = ((STp->buffer)->b_data[1] << 16) | |
buffer | 482 | drivers/scsi/st.c | ((STp->buffer)->b_data[2] << 8) | (STp->buffer)->b_data[3]; |
buffer | 483 | drivers/scsi/st.c | STp->min_block = ((STp->buffer)->b_data[4] << 8) | |
buffer | 484 | drivers/scsi/st.c | (STp->buffer)->b_data[5]; |
buffer | 505 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, |
buffer | 510 | drivers/scsi/st.c | if ((STp->buffer)->last_result_fatal != 0) { |
buffer | 515 | drivers/scsi/st.c | (STp->buffer)->b_data[2] = |
buffer | 516 | drivers/scsi/st.c | (STp->buffer)->b_data[3] = 0; |
buffer | 523 | drivers/scsi/st.c | (STp->buffer)->b_data[0], (STp->buffer)->b_data[1], |
buffer | 524 | drivers/scsi/st.c | (STp->buffer)->b_data[2], (STp->buffer)->b_data[3]); |
buffer | 527 | drivers/scsi/st.c | if ((STp->buffer)->b_data[3] >= 8) { |
buffer | 528 | drivers/scsi/st.c | STp->drv_buffer = ((STp->buffer)->b_data[2] >> 4) & 7; |
buffer | 529 | drivers/scsi/st.c | STp->density = (STp->buffer)->b_data[4]; |
buffer | 530 | drivers/scsi/st.c | STp->block_size = (STp->buffer)->b_data[9] * 65536 + |
buffer | 531 | drivers/scsi/st.c | (STp->buffer)->b_data[10] * 256 + (STp->buffer)->b_data[11]; |
buffer | 535 | drivers/scsi/st.c | dev, STp->density, (STp->buffer)->b_data[5] * 65536 + |
buffer | 536 | drivers/scsi/st.c | (STp->buffer)->b_data[6] * 256 + (STp->buffer)->b_data[7], |
buffer | 542 | drivers/scsi/st.c | (STp->buffer)->in_use = 0; |
buffer | 552 | drivers/scsi/st.c | (STp->buffer)->buffer_blocks = st_buffer_size / STp->block_size; |
buffer | 553 | drivers/scsi/st.c | (STp->buffer)->buffer_size = |
buffer | 554 | drivers/scsi/st.c | (STp->buffer)->buffer_blocks * STp->block_size; |
buffer | 557 | drivers/scsi/st.c | (STp->buffer)->buffer_blocks = 1; |
buffer | 558 | drivers/scsi/st.c | (STp->buffer)->buffer_size = st_buffer_size; |
buffer | 560 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes = (STp->buffer)->read_pointer = 0; |
buffer | 565 | drivers/scsi/st.c | STp->block_size, (STp->buffer)->buffer_size, |
buffer | 566 | drivers/scsi/st.c | (STp->buffer)->buffer_blocks); |
buffer | 569 | drivers/scsi/st.c | STp->drv_write_prot = ((STp->buffer)->b_data[2] & 0x80) != 0; |
buffer | 616 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, |
buffer | 621 | drivers/scsi/st.c | if ((STp->buffer)->last_result_fatal != 0) { |
buffer | 652 | drivers/scsi/st.c | (STp->buffer)->in_use = 0; |
buffer | 696 | drivers/scsi/st.c | if ((STp->buffer)->writing) { |
buffer | 698 | drivers/scsi/st.c | if ((STp->buffer)->last_result_fatal) { |
buffer | 702 | drivers/scsi/st.c | (STp->buffer)->last_result); |
buffer | 704 | drivers/scsi/st.c | if ((STp->buffer)->last_result == INT_MAX) { |
buffer | 725 | drivers/scsi/st.c | write_threshold = (STp->buffer)->buffer_size; |
buffer | 742 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes + count > write_threshold)) |
buffer | 747 | drivers/scsi/st.c | do_count = (STp->buffer)->buffer_size - (STp->buffer)->buffer_bytes; |
buffer | 751 | drivers/scsi/st.c | memcpy_fromfs((STp->buffer)->b_data + |
buffer | 752 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes, b_point, do_count); |
buffer | 757 | drivers/scsi/st.c | blks = ((STp->buffer)->buffer_bytes + do_count) / |
buffer | 767 | drivers/scsi/st.c | (void *) cmd, (STp->buffer)->b_data, transfer, |
buffer | 772 | drivers/scsi/st.c | if ((STp->buffer)->last_result_fatal != 0) { |
buffer | 823 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes = 0; |
buffer | 839 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes = 0; |
buffer | 844 | drivers/scsi/st.c | memcpy_fromfs((STp->buffer)->b_data + |
buffer | 845 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes,b_point,count); |
buffer | 847 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes += count; |
buffer | 851 | drivers/scsi/st.c | if ((STp->buffer)->last_result_fatal != 0) { |
buffer | 853 | drivers/scsi/st.c | return (STp->buffer)->last_result_fatal; |
buffer | 857 | drivers/scsi/st.c | ((STp->buffer)->buffer_bytes >= STp->write_threshold || |
buffer | 861 | drivers/scsi/st.c | (STp->buffer)->writing = (STp->buffer)->buffer_bytes; |
buffer | 863 | drivers/scsi/st.c | (STp->buffer)->writing = ((STp->buffer)->buffer_bytes / |
buffer | 868 | drivers/scsi/st.c | blks = (STp->buffer)->writing; |
buffer | 870 | drivers/scsi/st.c | blks = (STp->buffer)->writing / STp->block_size; |
buffer | 874 | drivers/scsi/st.c | SCpnt->result = (STp->buffer)->last_result = -1; |
buffer | 878 | drivers/scsi/st.c | (void *) cmd, (STp->buffer)->b_data, |
buffer | 879 | drivers/scsi/st.c | (STp->buffer)->writing, |
buffer | 928 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes); |
buffer | 930 | drivers/scsi/st.c | if (((STp->buffer)->buffer_bytes == 0) && |
buffer | 940 | drivers/scsi/st.c | if ((STp->buffer)->buffer_bytes == 0 && |
buffer | 950 | drivers/scsi/st.c | blks = (STp->buffer)->buffer_blocks; |
buffer | 968 | drivers/scsi/st.c | (void *) cmd, (STp->buffer)->b_data, |
buffer | 969 | drivers/scsi/st.c | (STp->buffer)->buffer_size, |
buffer | 974 | drivers/scsi/st.c | (STp->buffer)->read_pointer = 0; |
buffer | 977 | drivers/scsi/st.c | if ((STp->buffer)->last_result_fatal) { |
buffer | 1004 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes = bytes - transfer; |
buffer | 1015 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes = bytes - transfer; |
buffer | 1017 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes = |
buffer | 1022 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes); |
buffer | 1028 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes = 0; |
buffer | 1030 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes = |
buffer | 1036 | drivers/scsi/st.c | dev, (STp->buffer)->buffer_bytes, total); |
buffer | 1063 | drivers/scsi/st.c | transfer = (STp->buffer)->last_result_fatal; |
buffer | 1069 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes = bytes; |
buffer | 1075 | drivers/scsi/st.c | STp->drv_block += (STp->buffer)->buffer_bytes / STp->block_size; |
buffer | 1081 | drivers/scsi/st.c | if ((STp->buffer)->buffer_bytes > 0) { |
buffer | 1085 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes, count - total); |
buffer | 1087 | drivers/scsi/st.c | transfer = (STp->buffer)->buffer_bytes < count - total ? |
buffer | 1088 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes : count - total; |
buffer | 1089 | drivers/scsi/st.c | memcpy_tofs(buf, (STp->buffer)->b_data + |
buffer | 1090 | drivers/scsi/st.c | (STp->buffer)->read_pointer,transfer); |
buffer | 1094 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes -= transfer; |
buffer | 1095 | drivers/scsi/st.c | (STp->buffer)->read_pointer += transfer; |
buffer | 1372 | drivers/scsi/st.c | if (STp->dirty || (STp->buffer)->buffer_bytes != 0) |
buffer | 1384 | drivers/scsi/st.c | memset((STp->buffer)->b_data, 0, 12); |
buffer | 1386 | drivers/scsi/st.c | (STp->buffer)->b_data[2] = (arg & 7) << 4; |
buffer | 1388 | drivers/scsi/st.c | (STp->buffer)->b_data[2] = |
buffer | 1390 | drivers/scsi/st.c | (STp->buffer)->b_data[3] = 8; /* block descriptor length */ |
buffer | 1392 | drivers/scsi/st.c | (STp->buffer)->b_data[4] = arg; |
buffer | 1394 | drivers/scsi/st.c | (STp->buffer)->b_data[4] = STp->density; |
buffer | 1399 | drivers/scsi/st.c | (STp->buffer)->b_data[9] = (ltmp >> 16); |
buffer | 1400 | drivers/scsi/st.c | (STp->buffer)->b_data[10] = (ltmp >> 8); |
buffer | 1401 | drivers/scsi/st.c | (STp->buffer)->b_data[11] = ltmp; |
buffer | 1407 | drivers/scsi/st.c | (STp->buffer)->b_data[9] * 65536 + |
buffer | 1408 | drivers/scsi/st.c | (STp->buffer)->b_data[10] * 256 + |
buffer | 1409 | drivers/scsi/st.c | (STp->buffer)->b_data[11]); |
buffer | 1412 | drivers/scsi/st.c | (STp->buffer)->b_data[4]); |
buffer | 1415 | drivers/scsi/st.c | ((STp->buffer)->b_data[2] >> 4) & 7); |
buffer | 1428 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, datalen, |
buffer | 1433 | drivers/scsi/st.c | ioctl_result = (STp->buffer)->last_result_fatal; |
buffer | 1455 | drivers/scsi/st.c | (STp->buffer)->buffer_blocks = |
buffer | 1457 | drivers/scsi/st.c | (STp->buffer)->buffer_size = |
buffer | 1458 | drivers/scsi/st.c | (STp->buffer)->buffer_blocks * STp->block_size; |
buffer | 1461 | drivers/scsi/st.c | (STp->buffer)->buffer_blocks = 1; |
buffer | 1462 | drivers/scsi/st.c | (STp->buffer)->buffer_size = st_buffer_size; |
buffer | 1464 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes = |
buffer | 1465 | drivers/scsi/st.c | (STp->buffer)->read_pointer = 0; |
buffer | 1574 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes / STp->block_size; |
buffer | 1576 | drivers/scsi/st.c | (STp->mt_status)->mt_blkno -= ((STp->buffer)->buffer_bytes + |
buffer | 1620 | drivers/scsi/st.c | (void *) scmd, (void *) (STp->buffer)->b_data, |
buffer | 1625 | drivers/scsi/st.c | if ((STp->buffer)->last_result_fatal != 0) { |
buffer | 1636 | drivers/scsi/st.c | mt_pos.mt_blkno = ((STp->buffer)->b_data[0] << 16) |
buffer | 1637 | drivers/scsi/st.c | + ((STp->buffer)->b_data[1] << 8) |
buffer | 1638 | drivers/scsi/st.c | + (STp->buffer)->b_data[2]; |
buffer | 1640 | drivers/scsi/st.c | mt_pos.mt_blkno = ((STp->buffer)->b_data[4] << 24) |
buffer | 1641 | drivers/scsi/st.c | + ((STp->buffer)->b_data[5] << 16) |
buffer | 1642 | drivers/scsi/st.c | + ((STp->buffer)->b_data[6] << 8) |
buffer | 1643 | drivers/scsi/st.c | + (STp->buffer)->b_data[7]; |
buffer | 41 | drivers/scsi/st.h | ST_buffer * buffer; |
buffer | 747 | fs/ext/namei.c | #define PARENT_INO(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))->inode |
buffer | 751 | fs/ext/namei.c | #define PARENT_NAME(buffer) \ |
buffer | 752 | fs/ext/namei.c | ((struct ext_dir_entry *) ((char *) buffer + \ |
buffer | 753 | 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 | 896 | fs/ext2/namei.c | #define PARENT_INO(buffer) \ |
buffer | 897 | fs/ext2/namei.c | ((struct ext2_dir_entry *) ((char *) buffer + \ |
buffer | 898 | fs/ext2/namei.c | ((struct ext2_dir_entry *) buffer)->rec_len))->inode |
buffer | 900 | fs/ext2/namei.c | #define PARENT_NAME(buffer) \ |
buffer | 901 | fs/ext2/namei.c | ((struct ext2_dir_entry *) ((char *) buffer + \ |
buffer | 902 | fs/ext2/namei.c | ((struct ext2_dir_entry *) buffer)->rec_len))->name |
buffer | 95 | fs/ext2/symlink.c | static int ext2_readlink (struct inode * inode, char * buffer, int buflen) |
buffer | 121 | fs/ext2/symlink.c | put_fs_byte (c, buffer++); |
buffer | 75 | fs/isofs/file.c | static inline void unixify_to_fs(char * outbuf, char * buffer, int chars, |
buffer | 81 | fs/isofs/file.c | outchar = *buffer; |
buffer | 88 | 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 | 69 | fs/isofs/rock.c | kfree(buffer); \ |
buffer | 70 | fs/isofs/rock.c | buffer = NULL; } else { \ |
buffer | 71 | fs/isofs/rock.c | memcpy(buffer, bh->b_data + offset, 1024 - offset); \ |
buffer | 77 | fs/isofs/rock.c | if(buffer) { \ |
buffer | 80 | fs/isofs/rock.c | memcpy(buffer + offset1, bh->b_data + offset, cont_size - offset1); \ |
buffer | 82 | fs/isofs/rock.c | chr = (unsigned char *) buffer; \ |
buffer | 165 | fs/isofs/rock.c | if(buffer) kfree(buffer); |
buffer | 231 | fs/isofs/rock.c | if (buffer) kfree(buffer); |
buffer | 247 | fs/isofs/rock.c | if(buffer) kfree(buffer); |
buffer | 381 | fs/isofs/rock.c | if(buffer) kfree(buffer); |
buffer | 512 | 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 | 659 | fs/minix/namei.c | #define PARENT_INO(buffer) \ |
buffer | 660 | 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 | 37 | fs/proc/array.c | int get_malloc(char * buffer); |
buffer | 94 | fs/proc/array.c | static int get_loadavg(char * buffer) |
buffer | 101 | fs/proc/array.c | return sprintf(buffer,"%d.%02d %d.%02d %d.%02d\n", |
buffer | 107 | fs/proc/array.c | static int get_kstat(char * buffer) |
buffer | 114 | fs/proc/array.c | len = sprintf(buffer, |
buffer | 134 | fs/proc/array.c | len += sprintf(buffer + len, " %u", kstat.interrupts[i]); |
buffer | 135 | fs/proc/array.c | len += sprintf(buffer + len, |
buffer | 144 | fs/proc/array.c | static int get_uptime(char * buffer) |
buffer | 151 | fs/proc/array.c | return sprintf(buffer,"%lu.%02lu %lu.%02lu\n", |
buffer | 158 | fs/proc/array.c | static int get_meminfo(char * buffer) |
buffer | 164 | fs/proc/array.c | return sprintf(buffer, " total: used: free: shared: buffers:\n" |
buffer | 171 | fs/proc/array.c | static int get_version(char * buffer) |
buffer | 175 | fs/proc/array.c | strcpy(buffer, linux_banner); |
buffer | 176 | fs/proc/array.c | return strlen(buffer); |
buffer | 210 | fs/proc/array.c | static int get_array(struct task_struct ** p, unsigned long start, unsigned long end, char * buffer) |
buffer | 227 | fs/proc/array.c | buffer[size++] = c; |
buffer | 238 | fs/proc/array.c | while (result>0 && buffer[result-1]==' ') |
buffer | 243 | fs/proc/array.c | static int get_env(int pid, char * buffer) |
buffer | 249 | fs/proc/array.c | return get_array(p, (*p)->mm->env_start, (*p)->mm->env_end, buffer); |
buffer | 252 | fs/proc/array.c | static int get_arg(int pid, char * buffer) |
buffer | 258 | fs/proc/array.c | return get_array(p, (*p)->mm->arg_start, (*p)->mm->arg_end, buffer); |
buffer | 288 | fs/proc/array.c | static int get_stat(int pid, char * buffer) |
buffer | 323 | fs/proc/array.c | return sprintf(buffer,"%d (%s) %c %d %d %d %d %d %lu %lu \ |
buffer | 365 | fs/proc/array.c | static int get_statm(int pid, char * buffer) |
buffer | 408 | fs/proc/array.c | return sprintf(buffer,"%d %d %d %d %d %d %d\n", |
buffer | 101 | fs/proc/link.c | static int proc_readlink(struct inode * inode, char * buffer, int buflen) |
buffer | 124 | fs/proc/link.c | put_fs_byte(buf[i++],buffer++); |
buffer | 201 | fs/select.c | asmlinkage int sys_select( unsigned long *buffer ) |
buffer | 212 | fs/select.c | i = verify_area(VERIFY_READ, buffer, 20); |
buffer | 215 | fs/select.c | n = get_fs_long(buffer++); |
buffer | 220 | fs/select.c | inp = (fd_set *) get_fs_long(buffer++); |
buffer | 221 | fs/select.c | outp = (fd_set *) get_fs_long(buffer++); |
buffer | 222 | fs/select.c | exp = (fd_set *) get_fs_long(buffer++); |
buffer | 223 | fs/select.c | tvp = (struct timeval *) get_fs_long(buffer); |
buffer | 26 | fs/sysv/namei.c | const char * name, const char * buffer) |
buffer | 28 | fs/sysv/namei.c | if (len >= maxlen || !buffer[len]) { |
buffer | 32 | fs/sysv/namei.c | :"S" ((long) name),"D" ((long) buffer),"c" (len) |
buffer | 668 | fs/sysv/namei.c | #define PARENT_INO(buffer) \ |
buffer | 669 | fs/sysv/namei.c | (((struct sysv_dir_entry *) ((buffer) + 1*SYSV_DIRSIZE))->inode) |
buffer | 86 | fs/sysv/symlink.c | static int sysv_readlink(struct inode * inode, char * buffer, int buflen) |
buffer | 106 | fs/sysv/symlink.c | put_fs_byte(c,buffer++); |
buffer | 212 | fs/umsdos/emd.c | char buffer[CHUNK_SIZE]; |
buffer | 233 | fs/umsdos/emd.c | memcpy (buf->buffer,buf->buffer+buf->pos,mustmove); |
buffer | 240 | fs/umsdos/emd.c | ret = umsdos_emd_dir_read (inode,&buf->filp,buf->buffer+mustmove |
buffer | 304 | fs/umsdos/emd.c | (buf.buffer + buf.pos); |
buffer | 30 | fs/umsdos/symlink.c | char *buffer, |
buffer | 38 | fs/umsdos/symlink.c | if ((*msdos_read) (inode, &filp, buffer,ret) != ret){ |
buffer | 100 | fs/umsdos/symlink.c | static int UMSDOS_readlink(struct inode * inode, char * buffer, int buflen) |
buffer | 104 | fs/umsdos/symlink.c | ret = umsdos_readlink_x (inode,buffer,msdos_file_read,buflen); |
buffer | 699 | fs/xiafs/namei.c | #define PARENT_INO(buffer) \ |
buffer | 700 | 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 | 642 | ibcs/binfmt_coff.c | char *buffer = (char *) kmalloc (nbytes, GFP_KERNEL); |
buffer | 644 | ibcs/binfmt_coff.c | if (0 == buffer) { |
buffer | 658 | ibcs/binfmt_coff.c | buffer, /* Buffer for read */ |
buffer | 674 | ibcs/binfmt_coff.c | phdr = (COFF_SLIBHD *) buffer; |
buffer | 708 | ibcs/binfmt_coff.c | if (buffer != NULL) |
buffer | 709 | ibcs/binfmt_coff.c | kfree (buffer); |
buffer | 21 | include/linux/blkdev.h | char * buffer; |
buffer | 454 | include/linux/fs.h | extern void ll_rw_page(int rw, int dev, int nr, char * buffer); |
buffer | 455 | include/linux/fs.h | extern void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buffer); |
buffer | 29 | include/linux/ldt.h | extern int get_ldt(void *buffer); |
buffer | 191 | include/linux/netdevice.h | extern int dev_get_info(char *buffer, char **start, off_t offset, int length); |
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 | 169 | mm/mmap.c | asmlinkage int sys_mmap(unsigned long *buffer) |
buffer | 175 | mm/mmap.c | error = verify_area(VERIFY_READ, buffer, 6*4); |
buffer | 178 | mm/mmap.c | flags = get_fs_long(buffer+3); |
buffer | 180 | mm/mmap.c | unsigned long fd = get_fs_long(buffer+4); |
buffer | 184 | mm/mmap.c | return do_mmap(file, get_fs_long(buffer), get_fs_long(buffer+1), |
buffer | 185 | mm/mmap.c | get_fs_long(buffer+2), flags, get_fs_long(buffer+5)); |
buffer | 886 | net/inet/arp.c | int arp_get_info(char *buffer, char **start, off_t offset, int length) |
buffer | 897 | net/inet/arp.c | size = sprintf(buffer,"IP address HW type Flags HW address\n"); |
buffer | 927 | net/inet/arp.c | size = sprintf(buffer+len, |
buffer | 948 | net/inet/arp.c | *start=buffer+(offset-begin); /* Start of wanted data */ |
buffer | 12 | net/inet/arp.h | extern int arp_get_info(char *buffer, char **start, off_t origin, int length); |
buffer | 946 | net/inet/dev.c | static int sprintf_stats(char *buffer, struct device *dev) |
buffer | 952 | net/inet/dev.c | size = sprintf(buffer, "%6s:%7d %4d %4d %4d %4d %8d %4d %4d %4d %5d %4d\n", |
buffer | 964 | net/inet/dev.c | size = sprintf(buffer, "%6s: No statistics available.\n", dev->name); |
buffer | 974 | net/inet/dev.c | int dev_get_info(char *buffer, char **start, off_t offset, int length) |
buffer | 984 | net/inet/dev.c | size = sprintf(buffer, "Inter-| Receive | Transmit\n" |
buffer | 993 | net/inet/dev.c | size = sprintf_stats(buffer+len, dev); |
buffer | 1006 | net/inet/dev.c | *start=buffer+(offset-begin); /* Start of wanted data */ |
buffer | 145 | net/inet/ipx.c | int ipx_get_info(char *buffer, char **start, off_t offset, int length) |
buffer | 154 | net/inet/ipx.c | len += sprintf (buffer,"Type local_address rem_address tx_queue rx_queue st uid\n"); |
buffer | 157 | net/inet/ipx.c | len += sprintf (buffer+len,"%02X ", s->ipx_type); |
buffer | 158 | net/inet/ipx.c | len += sprintf (buffer+len,"%08lX:%02X%02X%02X%02X%02X%02X:%02X ", htonl(s->ipx_source_addr.net), |
buffer | 162 | net/inet/ipx.c | len += sprintf (buffer+len,"%08lX:%02X%02X%02X%02X%02X%02X:%02X ", htonl(s->ipx_dest_addr.net), |
buffer | 166 | net/inet/ipx.c | len += sprintf (buffer+len,"%08lX:%08lX ", s->wmem_alloc, s->rmem_alloc); |
buffer | 167 | net/inet/ipx.c | len += sprintf (buffer+len,"%02X %d\n", s->state, SOCK_INODE(s->socket)->i_uid); |
buffer | 182 | net/inet/ipx.c | *start=buffer+(offset-begin); /* Start of wanted data */ |
buffer | 431 | net/inet/ipx.c | int ipx_rt_get_info(char *buffer, char **start, off_t offset, int length) |
buffer | 438 | net/inet/ipx.c | len += sprintf (buffer,"Net Router Flags Dev\n"); |
buffer | 441 | net/inet/ipx.c | len += sprintf (buffer+len,"%08lX %08lX:%02X%02X%02X%02X%02X%02X %02X %s\n", ntohl(rt->net), |
buffer | 453 | net/inet/ipx.c | *start=buffer+(offset-begin); |
buffer | 57 | net/inet/proc.c | get__netinfo(struct proto *pro, char *buffer, int format, char **start, off_t offset, int length) |
buffer | 70 | net/inet/proc.c | len+=sprintf(buffer, "sl local_address rem_address st tx_queue rx_queue tr tm->when uid\n"); |
buffer | 93 | net/inet/proc.c | len+=sprintf(buffer+len, "%2d: %08lX:%04X %08lX:%04X %02X %08lX:%08lX %02X:%08lX %08X %d\n", |
buffer | 121 | net/inet/proc.c | *start=buffer+(offset-begin); |
buffer | 129 | net/inet/proc.c | int tcp_get_info(char *buffer, char **start, off_t offset, int length) |
buffer | 131 | net/inet/proc.c | return get__netinfo(&tcp_prot, buffer,0, start, offset, length); |
buffer | 135 | net/inet/proc.c | int udp_get_info(char *buffer, char **start, off_t offset, int length) |
buffer | 137 | net/inet/proc.c | return get__netinfo(&udp_prot, buffer,1, start, offset, length); |
buffer | 141 | net/inet/proc.c | int raw_get_info(char *buffer, char **start, off_t offset, int length) |
buffer | 143 | net/inet/proc.c | return get__netinfo(&raw_prot, buffer,1, start, offset, length); |
buffer | 151 | net/inet/proc.c | int snmp_get_info(char *buffer, char **start, off_t offset, int length) |
buffer | 160 | net/inet/proc.c | len = sprintf (buffer, |
buffer | 174 | net/inet/proc.c | len += sprintf (buffer + len, |
buffer | 191 | net/inet/proc.c | len += sprintf (buffer + len, |
buffer | 201 | net/inet/proc.c | len += sprintf (buffer + len, |
buffer | 213 | net/inet/proc.c | *start = buffer; |
buffer | 216 | net/inet/proc.c | *start = buffer + offset; |
buffer | 448 | net/inet/rarp.c | int rarp_get_info(char *buffer, char **start, off_t offset, int length) |
buffer | 459 | net/inet/rarp.c | size = sprintf(buffer,"RARP disabled until entries added to cache.\n"); |
buffer | 465 | net/inet/rarp.c | size = sprintf(buffer, |
buffer | 480 | net/inet/rarp.c | size = sprintf(buffer+len, |
buffer | 505 | net/inet/rarp.c | *start=buffer+(offset-begin); /* Start of wanted data */ |
buffer | 9 | net/inet/rarp.h | extern int rarp_get_info(char *buffer, |
buffer | 481 | net/inet/route.c | int rt_get_info(char *buffer, char **start, off_t offset, int length) |
buffer | 489 | net/inet/route.c | len += sprintf(buffer, |
buffer | 499 | net/inet/route.c | size = sprintf(buffer+len, "%s\t%08lX\t%08lX\t%02X\t%d\t%lu\t%d\t%08lX\t%d\t%lu\n", |
buffer | 514 | net/inet/route.c | *start=buffer+(offset-begin); |
buffer | 50 | net/inet/route.h | extern int rt_get_info(char * buffer, char **start, off_t offset, int length); |
buffer | 39 | net/unix/proc.c | int unix_get_info(char *buffer, char **start, off_t offset, int length) |
buffer | 50 | net/unix/proc.c | len += sprintf(buffer, "Num RefCount Protocol Flags Type St Path\n"); |
buffer | 63 | net/unix/proc.c | len += sprintf(buffer+len, "%2d: %08X %08X %08lX %04X %02X", i, |
buffer | 74 | net/unix/proc.c | len += sprintf(buffer+len, " %s\n", |
buffer | 79 | net/unix/proc.c | buffer[len++]='\n'; |
buffer | 95 | net/unix/proc.c | *start=buffer+(offset-begin); |