tag | line | file | source code |
buffer | 34 | drivers/block/blk.h | char * buffer; |
buffer | 298 | 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 | 508 | drivers/block/floppy.c | addr = (long) CURRENT->buffer; |
buffer | 519 | drivers/block/floppy.c | copy_buffer(CURRENT->buffer,tmp_floppy_area); |
buffer | 805 | drivers/block/floppy.c | copy_buffer(buffer_area,CURRENT->buffer); |
buffer | 807 | drivers/block/floppy.c | (unsigned long)(CURRENT->buffer) >= LAST_DMA_ADDR) |
buffer | 808 | drivers/block/floppy.c | copy_buffer(tmp_floppy_area,CURRENT->buffer); |
buffer | 1204 | drivers/block/floppy.c | copy_buffer(buffer_area,CURRENT->buffer); |
buffer | 1208 | drivers/block/floppy.c | copy_buffer(CURRENT->buffer,buffer_area); |
buffer | 484 | drivers/block/hd.c | insw(HD_DATA,CURRENT->buffer,nsect<<8); |
buffer | 486 | drivers/block/hd.c | CURRENT->buffer += nsect<<9; |
buffer | 493 | drivers/block/hd.c | CURRENT->nr_sectors, (long) CURRENT->buffer+(nsect<<9)); |
buffer | 517 | drivers/block/hd.c | outsw(HD_DATA,WCURRENT.buffer,256); |
buffer | 520 | drivers/block/hd.c | WCURRENT.buffer += 512; |
buffer | 526 | drivers/block/hd.c | WCURRENT.buffer = WCURRENT.bh->b_data; |
buffer | 599 | drivers/block/hd.c | CURRENT->buffer += 512; |
buffer | 604 | drivers/block/hd.c | outsw(HD_DATA,CURRENT->buffer,256); |
buffer | 685 | drivers/block/hd.c | dev+'a', cyl, head, sec, CURRENT->buffer); |
buffer | 728 | drivers/block/hd.c | CURRENT->sector+nsect-1, (long) CURRENT->buffer); |
buffer | 742 | drivers/block/hd.c | CURRENT->sector+nsect-1, (long) CURRENT->buffer); |
buffer | 753 | drivers/block/hd.c | outsw(HD_DATA,CURRENT->buffer,256); |
buffer | 257 | drivers/block/ll_rw_blk.c | req->buffer = bh->b_data; |
buffer | 294 | drivers/block/ll_rw_blk.c | req->buffer = bh->b_data; |
buffer | 302 | drivers/block/ll_rw_blk.c | void ll_rw_page(int rw, int dev, int page, char * buffer) |
buffer | 327 | drivers/block/ll_rw_blk.c | req->buffer = buffer; |
buffer | 462 | 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 | 1795 | drivers/block/sbpcd.c | static int yy_SubChanInfo(int frame, int count, u_char *buffer) |
buffer | 2868 | drivers/block/sbpcd.c | memcpy(CURRENT->buffer, DriveStruct[d].sbp_buf + offs, 512); |
buffer | 2871 | 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 | 406 | drivers/net/de600.c | byte *buffer = skb->data; |
buffer | 461 | drivers/net/de600.c | for ( ; len > 0; --len, ++buffer) |
buffer | 462 | drivers/net/de600.c | de600_put_byte(*buffer); |
buffer | 589 | drivers/net/de600.c | register unsigned char *buffer; |
buffer | 621 | drivers/net/de600.c | buffer = skb->data; |
buffer | 625 | drivers/net/de600.c | for (i = size; i > 0; --i, ++buffer) |
buffer | 626 | drivers/net/de600.c | *buffer = de600_read_byte(READ_DATA, dev); |
buffer | 274 | drivers/net/de620.c | de620_write_block(byte *buffer, int count) |
buffer | 290 | drivers/net/de620.c | for ( ; count > 0; --count, ++buffer) { |
buffer | 291 | drivers/net/de620.c | de620_put_byte(*buffer); |
buffer | 300 | drivers/net/de620.c | outb(*buffer++, DATA_PORT); |
buffer | 302 | drivers/net/de620.c | outb(*buffer++, DATA_PORT); |
buffer | 482 | drivers/net/de620.c | byte *buffer = skb->data; |
buffer | 547 | drivers/net/de620.c | de620_write_block(buffer, len); |
buffer | 621 | drivers/net/de620.c | byte *buffer; |
buffer | 683 | drivers/net/de620.c | buffer = skb->data; |
buffer | 685 | drivers/net/de620.c | de620_read_block(buffer, size); |
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 | 300 | drivers/scsi/NCR5380.c | cmd->SCp.buffer = (struct scatterlist *) cmd->buffer; |
buffer | 302 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = (char *) cmd->SCp.buffer->address; |
buffer | 303 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = cmd->SCp.buffer->length; |
buffer | 305 | drivers/scsi/NCR5380.c | cmd->SCp.buffer = NULL; |
buffer | 1774 | drivers/scsi/NCR5380.c | ++cmd->SCp.buffer; |
buffer | 1776 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = cmd->SCp.buffer->length; |
buffer | 1777 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = cmd->SCp.buffer->address; |
buffer | 1927 | drivers/scsi/NCR5380.c | cmd->SCp.buffer = NULL; |
buffer | 725 | drivers/scsi/aha152x.c | SCpnt->SCp.buffer = (struct scatterlist *)SCpnt->request_buffer; |
buffer | 726 | drivers/scsi/aha152x.c | SCpnt->SCp.ptr = SCpnt->SCp.buffer->address; |
buffer | 727 | drivers/scsi/aha152x.c | SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; |
buffer | 734 | drivers/scsi/aha152x.c | SCpnt->SCp.buffer = NULL; |
buffer | 1802 | drivers/scsi/aha152x.c | current_SC->SCp.buffer++; |
buffer | 1804 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->address; |
buffer | 1806 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->length; |
buffer | 1931 | drivers/scsi/aha152x.c | current_SC->SCp.buffer++; |
buffer | 1933 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->address; |
buffer | 1935 | drivers/scsi/aha152x.c | current_SC->SCp.buffer->length; |
buffer | 887 | drivers/scsi/aha1542.c | static buffer[512]; |
buffer | 896 | 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 | 1069 | drivers/scsi/buslogic.c | static buffer[512]; |
buffer | 1078 | drivers/scsi/buslogic.c | buslogic_command(0, cmd, buffer, sizeof buffer); |
buffer | 669 | drivers/scsi/fdomain.c | SCinit.request_buffer = SCinit.buffer = buf; |
buffer | 718 | drivers/scsi/fdomain.c | static char buffer[80]; |
buffer | 721 | drivers/scsi/fdomain.c | strcpy( buffer, "Future Domain: TMC-16x0 SCSI driver, version" ); |
buffer | 723 | drivers/scsi/fdomain.c | strcat( buffer, strchr( VERSION, ':' ) + 1 ); |
buffer | 724 | drivers/scsi/fdomain.c | pt = strrchr( buffer, '$') - 1; |
buffer | 726 | drivers/scsi/fdomain.c | pt = buffer + strlen( buffer ) - 1; |
buffer | 732 | drivers/scsi/fdomain.c | strcat( buffer, " " VERSION "\n" ); |
buffer | 735 | drivers/scsi/fdomain.c | return buffer; |
buffer | 1156 | drivers/scsi/fdomain.c | ++current_SC->SCp.buffer; |
buffer | 1157 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
buffer | 1158 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
buffer | 1189 | drivers/scsi/fdomain.c | ++current_SC->SCp.buffer; |
buffer | 1190 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
buffer | 1191 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
buffer | 1272 | drivers/scsi/fdomain.c | current_SC->SCp.buffer = |
buffer | 1274 | drivers/scsi/fdomain.c | current_SC->SCp.ptr = current_SC->SCp.buffer->address; |
buffer | 1275 | drivers/scsi/fdomain.c | current_SC->SCp.this_residual = current_SC->SCp.buffer->length; |
buffer | 1280 | drivers/scsi/fdomain.c | current_SC->SCp.buffer = NULL; |
buffer | 626 | drivers/scsi/scsi.c | req->buffer = bh->b_data; |
buffer | 725 | drivers/scsi/scsi.c | req->buffer = bh->b_data; |
buffer | 782 | drivers/scsi/scsi.c | "bufflen = %d, done = %08x)\n", SCpnt->host->host_no, SCpnt->target, SCpnt->cmnd, SCpnt->buffer, SCpnt->bufflen, SCpnt->done); |
buffer | 859 | drivers/scsi/scsi.c | void *buffer, unsigned bufflen, void (*done)(Scsi_Cmnd *), |
buffer | 871 | drivers/scsi/scsi.c | "command : " , host->host_no, target, buffer, bufflen, done, timeout, retries); |
buffer | 921 | drivers/scsi/scsi.c | SCpnt->buffer = buffer; |
buffer | 932 | drivers/scsi/scsi.c | SCpnt->request_buffer = buffer; |
buffer | 1337 | drivers/scsi/scsi.c | SCpnt->request_buffer = SCpnt->buffer; |
buffer | 397 | drivers/scsi/scsi.h | struct scatterlist *buffer; /* which buffer */ |
buffer | 428 | drivers/scsi/scsi.h | void *buffer; /* Data buffer */ |
buffer | 493 | drivers/scsi/scsi.h | void *buffer, unsigned bufflen, void (*done)(struct scsi_cmnd *), |
buffer | 552 | 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 | 173 | drivers/scsi/sd.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
buffer | 184 | drivers/scsi/sd.c | scsi_free(SCpnt->buffer, SCpnt->sglist_len); /* Free list of scatter-gather pointers */ |
buffer | 186 | drivers/scsi/sd.c | if (SCpnt->buffer != SCpnt->request.buffer) { |
buffer | 188 | drivers/scsi/sd.c | printk("nosg: %x %x %d\n",SCpnt->request.buffer, SCpnt->buffer, |
buffer | 192 | drivers/scsi/sd.c | memcpy(SCpnt->request.buffer, SCpnt->buffer, |
buffer | 194 | drivers/scsi/sd.c | scsi_free(SCpnt->buffer, SCpnt->bufflen); |
buffer | 229 | drivers/scsi/sd.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
buffer | 232 | drivers/scsi/sd.c | printk("err: %x %x %d\n",SCpnt->request.buffer, SCpnt->buffer, |
buffer | 239 | drivers/scsi/sd.c | scsi_free(SCpnt->buffer, SCpnt->sglist_len); /* Free list of scatter-gather pointers */ |
buffer | 242 | drivers/scsi/sd.c | printk("nosgerr: %x %x %d\n",SCpnt->request.buffer, SCpnt->buffer, |
buffer | 245 | drivers/scsi/sd.c | if (SCpnt->buffer != SCpnt->request.buffer) |
buffer | 246 | drivers/scsi/sd.c | scsi_free(SCpnt->buffer, SCpnt->bufflen); |
buffer | 487 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buffer | 507 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buffer | 552 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buffer | 591 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buffer | 677 | drivers/scsi/sd.c | memcpy(buff, (char *)SCpnt->request.buffer, this_count << 9); |
buffer | 791 | drivers/scsi/sd.c | unsigned char *buffer; |
buffer | 801 | drivers/scsi/sd.c | buffer = (unsigned char *) scsi_malloc(512); |
buffer | 816 | drivers/scsi/sd.c | (void *) cmd, (void *) buffer, |
buffer | 841 | drivers/scsi/sd.c | (void *) cmd, (void *) buffer, |
buffer | 869 | drivers/scsi/sd.c | memset ((void *) buffer, 0, 8); |
buffer | 875 | drivers/scsi/sd.c | (void *) cmd, (void *) buffer, |
buffer | 942 | drivers/scsi/sd.c | rscsi_disks[i].capacity = (buffer[0] << 24) | |
buffer | 943 | drivers/scsi/sd.c | (buffer[1] << 16) | |
buffer | 944 | drivers/scsi/sd.c | (buffer[2] << 8) | |
buffer | 945 | drivers/scsi/sd.c | buffer[3]; |
buffer | 947 | drivers/scsi/sd.c | rscsi_disks[i].sector_size = (buffer[4] << 24) | |
buffer | 948 | drivers/scsi/sd.c | (buffer[5] << 16) | (buffer[6] << 8) | buffer[7]; |
buffer | 964 | drivers/scsi/sd.c | scsi_free(buffer, 512); |
buffer | 976 | drivers/scsi/sd.c | scsi_free(buffer, 512); |
buffer | 376 | drivers/scsi/seagate.c | static char buffer[256]; |
buffer | 377 | drivers/scsi/seagate.c | sprintf(buffer, "scsi%d : %s at irq %d address %p options :" |
buffer | 397 | drivers/scsi/seagate.c | return buffer; |
buffer | 587 | drivers/scsi/seagate.c | struct scatterlist *buffer = NULL; |
buffer | 709 | drivers/scsi/seagate.c | buffer=current_buffer; |
buffer | 905 | drivers/scsi/seagate.c | hostno, i, buffer[i].address, buffer[i].length); |
buffer | 909 | drivers/scsi/seagate.c | buffer = (struct scatterlist *) SCint->buffer; |
buffer | 910 | drivers/scsi/seagate.c | len = buffer->length; |
buffer | 911 | drivers/scsi/seagate.c | data = (unsigned char *) buffer->address; |
buffer | 916 | drivers/scsi/seagate.c | buffer = NULL; |
buffer | 1145 | drivers/scsi/seagate.c | ++buffer; |
buffer | 1146 | drivers/scsi/seagate.c | len = buffer->length; |
buffer | 1147 | drivers/scsi/seagate.c | data = (unsigned char *) buffer->address; |
buffer | 1291 | drivers/scsi/seagate.c | ++buffer; |
buffer | 1292 | drivers/scsi/seagate.c | len = buffer->length; |
buffer | 1293 | drivers/scsi/seagate.c | data = (unsigned char *) buffer->address; |
buffer | 1362 | drivers/scsi/seagate.c | current_buffer = buffer; |
buffer | 1394 | drivers/scsi/seagate.c | current_buffer = buffer; |
buffer | 1403 | drivers/scsi/seagate.c | buffer=current_buffer; |
buffer | 135 | drivers/scsi/sr.c | if (SCpnt->buffer != SCpnt->request.buffer) |
buffer | 139 | drivers/scsi/sr.c | memcpy((char *)SCpnt->request.buffer, |
buffer | 140 | drivers/scsi/sr.c | (char *)SCpnt->buffer + offset, |
buffer | 152 | drivers/scsi/sr.c | (char *)SCpnt->buffer + 1024, |
buffer | 157 | drivers/scsi/sr.c | scsi_free(SCpnt->buffer, 2048); |
buffer | 162 | drivers/scsi/sr.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
buffer | 171 | drivers/scsi/sr.c | scsi_free(SCpnt->buffer, SCpnt->sglist_len); /* Free list of scatter-gather pointers */ |
buffer | 201 | drivers/scsi/sr.c | sgpnt = (struct scatterlist *) SCpnt->buffer; |
buffer | 207 | drivers/scsi/sr.c | scsi_free(SCpnt->buffer, SCpnt->sglist_len); /* Free list of scatter-gather pointers */ |
buffer | 209 | drivers/scsi/sr.c | if (SCpnt->buffer != SCpnt->request.buffer) |
buffer | 210 | drivers/scsi/sr.c | scsi_free(SCpnt->buffer, SCpnt->bufflen); |
buffer | 358 | drivers/scsi/sr.c | unsigned char cmd[10], *buffer, tries; |
buffer | 371 | drivers/scsi/sr.c | buffer = NULL; |
buffer | 476 | drivers/scsi/sr.c | buffer = (unsigned char *) sgpnt; |
buffer | 524 | drivers/scsi/sr.c | scsi_free(buffer, SCpnt->sglist_len); |
buffer | 555 | drivers/scsi/sr.c | buffer = (unsigned char *) scsi_malloc(2048); |
buffer | 559 | drivers/scsi/sr.c | buffer = (unsigned char *) scsi_malloc(2048); |
buffer | 564 | drivers/scsi/sr.c | buffer = (unsigned char *) SCpnt->request.buffer; |
buffer | 565 | drivers/scsi/sr.c | if (((int) buffer) + (this_count << 9) > ISA_DMA_THRESHOLD & |
buffer | 567 | drivers/scsi/sr.c | buffer = (unsigned char *) scsi_malloc(this_count << 9); |
buffer | 615 | drivers/scsi/sr.c | printk("ReadCD: %d %d %d %d\n",block, realcount, buffer, this_count); |
buffer | 624 | drivers/scsi/sr.c | scsi_do_cmd (SCpnt, (void *) cmd, buffer, |
buffer | 653 | drivers/scsi/sr.c | unsigned char buffer[513]; |
buffer | 666 | drivers/scsi/sr.c | memset(buffer, 0, 8); |
buffer | 669 | drivers/scsi/sr.c | (void *) cmd, (void *) buffer, |
buffer | 698 | drivers/scsi/sr.c | scsi_CDs[i].capacity = (buffer[0] << 24) | |
buffer | 699 | drivers/scsi/sr.c | (buffer[1] << 16) | (buffer[2] << 8) | buffer[3]; |
buffer | 700 | drivers/scsi/sr.c | scsi_CDs[i].sector_size = (buffer[4] << 24) | |
buffer | 701 | 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 | 173 | drivers/scsi/sr_ioctl.c | char * buffer; |
buffer | 183 | drivers/scsi/sr_ioctl.c | buffer = (unsigned char *) scsi_malloc(512); |
buffer | 184 | drivers/scsi/sr_ioctl.c | if(!buffer) return -ENOMEM; |
buffer | 186 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, buffer, 12); |
buffer | 188 | drivers/scsi/sr_ioctl.c | tochdr.cdth_trk0 = buffer[2]; |
buffer | 189 | drivers/scsi/sr_ioctl.c | tochdr.cdth_trk1 = buffer[3]; |
buffer | 191 | 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 | 275 | drivers/scsi/sr_ioctl.c | char * buffer, * mask; |
buffer | 290 | drivers/scsi/sr_ioctl.c | buffer = (unsigned char *) scsi_malloc(512); |
buffer | 291 | drivers/scsi/sr_ioctl.c | if(!buffer) return -ENOMEM; |
buffer | 293 | drivers/scsi/sr_ioctl.c | if ((result = do_ioctl (target, sr_cmd, buffer, 28))) { |
buffer | 295 | drivers/scsi/sr_ioctl.c | scsi_free(buffer, 512); |
buffer | 308 | drivers/scsi/sr_ioctl.c | scsi_free(buffer, 512); |
buffer | 314 | drivers/scsi/sr_ioctl.c | scsi_free(buffer, 512); |
buffer | 320 | drivers/scsi/sr_ioctl.c | buffer[0] = 0; /* Clear reserved field */ |
buffer | 322 | drivers/scsi/sr_ioctl.c | buffer[21] = volctrl.channel0 & mask[21]; |
buffer | 323 | drivers/scsi/sr_ioctl.c | buffer[23] = volctrl.channel1 & mask[23]; |
buffer | 324 | drivers/scsi/sr_ioctl.c | buffer[25] = volctrl.channel2 & mask[25]; |
buffer | 325 | drivers/scsi/sr_ioctl.c | buffer[27] = volctrl.channel3 & mask[27]; |
buffer | 333 | drivers/scsi/sr_ioctl.c | result = do_ioctl (target, sr_cmd, buffer, 28); |
buffer | 334 | drivers/scsi/sr_ioctl.c | scsi_free(buffer, 512); |
buffer | 342 | drivers/scsi/sr_ioctl.c | char * buffer; |
buffer | 354 | drivers/scsi/sr_ioctl.c | buffer = (unsigned char*) scsi_malloc(512); |
buffer | 355 | drivers/scsi/sr_ioctl.c | if(!buffer) return -ENOMEM; |
buffer | 357 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, buffer, 16); |
buffer | 359 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_audiostatus = buffer[1]; |
buffer | 361 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_ctrl = buffer[5] & 0xf; |
buffer | 362 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_trk = buffer[6]; |
buffer | 363 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_ind = buffer[7]; |
buffer | 365 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_reladdr.msf.minute = buffer[13]; |
buffer | 366 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_reladdr.msf.second = buffer[14]; |
buffer | 367 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_reladdr.msf.frame = buffer[15]; |
buffer | 368 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_absaddr.msf.minute = buffer[9]; |
buffer | 369 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_absaddr.msf.second = buffer[10]; |
buffer | 370 | drivers/scsi/sr_ioctl.c | subchnl.cdsc_absaddr.msf.frame = buffer[11]; |
buffer | 372 | drivers/scsi/sr_ioctl.c | scsi_free(buffer, 512); |
buffer | 151 | drivers/scsi/st.c | if ((STp->buffer)->writing && |
buffer | 163 | drivers/scsi/st.c | (STp->buffer)->last_result = SCpnt->result; /* Error */ |
buffer | 165 | drivers/scsi/st.c | (STp->buffer)->last_result = INT_MAX; /* OK */ |
buffer | 168 | drivers/scsi/st.c | (STp->buffer)->last_result = SCpnt->result; |
buffer | 169 | drivers/scsi/st.c | (STp->buffer)->last_result_fatal = st_chk_result(SCpnt); |
buffer | 170 | drivers/scsi/st.c | if ((STp->buffer)->writing) |
buffer | 174 | drivers/scsi/st.c | if ((STp->buffer)->writing <= 0) |
buffer | 192 | drivers/scsi/st.c | STbuffer = STp->buffer; |
buffer | 237 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, 0, |
buffer | 242 | drivers/scsi/st.c | if ((STp->buffer)->last_result != 0) { |
buffer | 248 | drivers/scsi/st.c | return (STp->buffer)->last_result_fatal; |
buffer | 262 | drivers/scsi/st.c | if ((STp->buffer)->writing) { |
buffer | 264 | drivers/scsi/st.c | if ((STp->buffer)->last_result_fatal) { |
buffer | 268 | drivers/scsi/st.c | (STp->buffer)->last_result); |
buffer | 270 | drivers/scsi/st.c | if ((STp->buffer)->last_result == INT_MAX) |
buffer | 280 | drivers/scsi/st.c | offset = (STp->buffer)->buffer_bytes; |
buffer | 287 | drivers/scsi/st.c | memset((STp->buffer)->b_data + offset, 0, transfer - offset); |
buffer | 299 | drivers/scsi/st.c | (void *) cmd, (STp->buffer)->b_data, transfer, |
buffer | 304 | drivers/scsi/st.c | if ((STp->buffer)->last_result_fatal != 0) { |
buffer | 310 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes = 0; |
buffer | 321 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes = 0; |
buffer | 341 | drivers/scsi/st.c | STbuffer = STp->buffer; |
buffer | 349 | drivers/scsi/st.c | backspace = ((STp->buffer)->buffer_bytes + |
buffer | 350 | drivers/scsi/st.c | (STp->buffer)->read_pointer) / STp->block_size - |
buffer | 351 | drivers/scsi/st.c | ((STp->buffer)->read_pointer + STp->block_size - 1) / |
buffer | 353 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes = 0; |
buffer | 354 | drivers/scsi/st.c | (STp->buffer)->read_pointer = 0; |
buffer | 400 | drivers/scsi/st.c | STp->buffer = st_buffers[i]; |
buffer | 401 | drivers/scsi/st.c | (STp->buffer)->in_use = 1; |
buffer | 402 | drivers/scsi/st.c | (STp->buffer)->writing = 0; |
buffer | 425 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, |
buffer | 439 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, |
buffer | 447 | drivers/scsi/st.c | if ((STp->buffer)->last_result_fatal != 0) { |
buffer | 456 | drivers/scsi/st.c | (STp->buffer)->in_use = 0; |
buffer | 467 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, |
buffer | 473 | drivers/scsi/st.c | STp->max_block = ((STp->buffer)->b_data[1] << 16) | |
buffer | 474 | drivers/scsi/st.c | ((STp->buffer)->b_data[2] << 8) | (STp->buffer)->b_data[3]; |
buffer | 475 | drivers/scsi/st.c | STp->min_block = ((STp->buffer)->b_data[4] << 8) | |
buffer | 476 | drivers/scsi/st.c | (STp->buffer)->b_data[5]; |
buffer | 497 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, |
buffer | 502 | drivers/scsi/st.c | if ((STp->buffer)->last_result_fatal != 0) { |
buffer | 507 | drivers/scsi/st.c | (STp->buffer)->b_data[2] = |
buffer | 508 | drivers/scsi/st.c | (STp->buffer)->b_data[3] = 0; |
buffer | 515 | drivers/scsi/st.c | (STp->buffer)->b_data[0], (STp->buffer)->b_data[1], |
buffer | 516 | drivers/scsi/st.c | (STp->buffer)->b_data[2], (STp->buffer)->b_data[3]); |
buffer | 519 | drivers/scsi/st.c | if ((STp->buffer)->b_data[3] >= 8) { |
buffer | 520 | drivers/scsi/st.c | STp->drv_buffer = ((STp->buffer)->b_data[2] >> 4) & 7; |
buffer | 521 | drivers/scsi/st.c | STp->density = (STp->buffer)->b_data[4]; |
buffer | 522 | drivers/scsi/st.c | STp->block_size = (STp->buffer)->b_data[9] * 65536 + |
buffer | 523 | drivers/scsi/st.c | (STp->buffer)->b_data[10] * 256 + (STp->buffer)->b_data[11]; |
buffer | 527 | drivers/scsi/st.c | dev, STp->density, (STp->buffer)->b_data[5] * 65536 + |
buffer | 528 | drivers/scsi/st.c | (STp->buffer)->b_data[6] * 256 + (STp->buffer)->b_data[7], |
buffer | 534 | drivers/scsi/st.c | (STp->buffer)->in_use = 0; |
buffer | 544 | drivers/scsi/st.c | (STp->buffer)->buffer_blocks = st_buffer_size / STp->block_size; |
buffer | 545 | drivers/scsi/st.c | (STp->buffer)->buffer_size = |
buffer | 546 | drivers/scsi/st.c | (STp->buffer)->buffer_blocks * STp->block_size; |
buffer | 549 | drivers/scsi/st.c | (STp->buffer)->buffer_blocks = 1; |
buffer | 550 | drivers/scsi/st.c | (STp->buffer)->buffer_size = st_buffer_size; |
buffer | 552 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes = (STp->buffer)->read_pointer = 0; |
buffer | 557 | drivers/scsi/st.c | STp->block_size, (STp->buffer)->buffer_size, |
buffer | 558 | drivers/scsi/st.c | (STp->buffer)->buffer_blocks); |
buffer | 561 | drivers/scsi/st.c | STp->drv_write_prot = ((STp->buffer)->b_data[2] & 0x80) != 0; |
buffer | 608 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, |
buffer | 613 | drivers/scsi/st.c | if ((STp->buffer)->last_result_fatal != 0) { |
buffer | 644 | drivers/scsi/st.c | (STp->buffer)->in_use = 0; |
buffer | 688 | drivers/scsi/st.c | if ((STp->buffer)->writing) { |
buffer | 690 | drivers/scsi/st.c | if ((STp->buffer)->last_result_fatal) { |
buffer | 694 | drivers/scsi/st.c | (STp->buffer)->last_result); |
buffer | 696 | drivers/scsi/st.c | if ((STp->buffer)->last_result == INT_MAX) { |
buffer | 717 | drivers/scsi/st.c | write_threshold = (STp->buffer)->buffer_size; |
buffer | 734 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes + count > write_threshold)) |
buffer | 739 | drivers/scsi/st.c | do_count = (STp->buffer)->buffer_size - (STp->buffer)->buffer_bytes; |
buffer | 743 | drivers/scsi/st.c | memcpy_fromfs((STp->buffer)->b_data + |
buffer | 744 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes, b_point, do_count); |
buffer | 749 | drivers/scsi/st.c | blks = ((STp->buffer)->buffer_bytes + do_count) / |
buffer | 759 | drivers/scsi/st.c | (void *) cmd, (STp->buffer)->b_data, transfer, |
buffer | 764 | drivers/scsi/st.c | if ((STp->buffer)->last_result_fatal != 0) { |
buffer | 815 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes = 0; |
buffer | 831 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes = 0; |
buffer | 836 | drivers/scsi/st.c | memcpy_fromfs((STp->buffer)->b_data + |
buffer | 837 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes,b_point,count); |
buffer | 839 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes += count; |
buffer | 843 | drivers/scsi/st.c | if ((STp->buffer)->last_result_fatal != 0) { |
buffer | 845 | drivers/scsi/st.c | return (STp->buffer)->last_result_fatal; |
buffer | 849 | drivers/scsi/st.c | ((STp->buffer)->buffer_bytes >= STp->write_threshold || |
buffer | 853 | drivers/scsi/st.c | (STp->buffer)->writing = (STp->buffer)->buffer_bytes; |
buffer | 855 | drivers/scsi/st.c | (STp->buffer)->writing = ((STp->buffer)->buffer_bytes / |
buffer | 860 | drivers/scsi/st.c | blks = (STp->buffer)->writing; |
buffer | 862 | drivers/scsi/st.c | blks = (STp->buffer)->writing / STp->block_size; |
buffer | 866 | drivers/scsi/st.c | SCpnt->result = (STp->buffer)->last_result = -1; |
buffer | 870 | drivers/scsi/st.c | (void *) cmd, (STp->buffer)->b_data, |
buffer | 871 | drivers/scsi/st.c | (STp->buffer)->writing, |
buffer | 920 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes); |
buffer | 922 | drivers/scsi/st.c | if (((STp->buffer)->buffer_bytes == 0) && |
buffer | 932 | drivers/scsi/st.c | if ((STp->buffer)->buffer_bytes == 0 && |
buffer | 942 | drivers/scsi/st.c | blks = (STp->buffer)->buffer_blocks; |
buffer | 960 | drivers/scsi/st.c | (void *) cmd, (STp->buffer)->b_data, |
buffer | 961 | drivers/scsi/st.c | (STp->buffer)->buffer_size, |
buffer | 966 | drivers/scsi/st.c | (STp->buffer)->read_pointer = 0; |
buffer | 969 | drivers/scsi/st.c | if ((STp->buffer)->last_result_fatal) { |
buffer | 996 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes = bytes - transfer; |
buffer | 1007 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes = bytes - transfer; |
buffer | 1009 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes = |
buffer | 1014 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes); |
buffer | 1020 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes = 0; |
buffer | 1022 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes = |
buffer | 1028 | drivers/scsi/st.c | dev, (STp->buffer)->buffer_bytes, total); |
buffer | 1055 | drivers/scsi/st.c | transfer = (STp->buffer)->last_result_fatal; |
buffer | 1061 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes = bytes; |
buffer | 1067 | drivers/scsi/st.c | STp->drv_block += (STp->buffer)->buffer_bytes / STp->block_size; |
buffer | 1073 | drivers/scsi/st.c | if ((STp->buffer)->buffer_bytes > 0) { |
buffer | 1077 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes, count - total); |
buffer | 1079 | drivers/scsi/st.c | transfer = (STp->buffer)->buffer_bytes < count - total ? |
buffer | 1080 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes : count - total; |
buffer | 1081 | drivers/scsi/st.c | memcpy_tofs(buf, (STp->buffer)->b_data + |
buffer | 1082 | drivers/scsi/st.c | (STp->buffer)->read_pointer,transfer); |
buffer | 1086 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes -= transfer; |
buffer | 1087 | drivers/scsi/st.c | (STp->buffer)->read_pointer += transfer; |
buffer | 1364 | drivers/scsi/st.c | if (STp->dirty || (STp->buffer)->buffer_bytes != 0) |
buffer | 1376 | drivers/scsi/st.c | memset((STp->buffer)->b_data, 0, 12); |
buffer | 1378 | drivers/scsi/st.c | (STp->buffer)->b_data[2] = (arg & 7) << 4; |
buffer | 1380 | drivers/scsi/st.c | (STp->buffer)->b_data[2] = |
buffer | 1382 | drivers/scsi/st.c | (STp->buffer)->b_data[3] = 8; /* block descriptor length */ |
buffer | 1384 | drivers/scsi/st.c | (STp->buffer)->b_data[4] = arg; |
buffer | 1386 | drivers/scsi/st.c | (STp->buffer)->b_data[4] = STp->density; |
buffer | 1391 | drivers/scsi/st.c | (STp->buffer)->b_data[9] = (ltmp >> 16); |
buffer | 1392 | drivers/scsi/st.c | (STp->buffer)->b_data[10] = (ltmp >> 8); |
buffer | 1393 | drivers/scsi/st.c | (STp->buffer)->b_data[11] = ltmp; |
buffer | 1399 | drivers/scsi/st.c | (STp->buffer)->b_data[9] * 65536 + |
buffer | 1400 | drivers/scsi/st.c | (STp->buffer)->b_data[10] * 256 + |
buffer | 1401 | drivers/scsi/st.c | (STp->buffer)->b_data[11]); |
buffer | 1404 | drivers/scsi/st.c | (STp->buffer)->b_data[4]); |
buffer | 1407 | drivers/scsi/st.c | ((STp->buffer)->b_data[2] >> 4) & 7); |
buffer | 1420 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, datalen, |
buffer | 1425 | drivers/scsi/st.c | ioctl_result = (STp->buffer)->last_result_fatal; |
buffer | 1447 | drivers/scsi/st.c | (STp->buffer)->buffer_blocks = |
buffer | 1449 | drivers/scsi/st.c | (STp->buffer)->buffer_size = |
buffer | 1450 | drivers/scsi/st.c | (STp->buffer)->buffer_blocks * STp->block_size; |
buffer | 1453 | drivers/scsi/st.c | (STp->buffer)->buffer_blocks = 1; |
buffer | 1454 | drivers/scsi/st.c | (STp->buffer)->buffer_size = st_buffer_size; |
buffer | 1456 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes = |
buffer | 1457 | drivers/scsi/st.c | (STp->buffer)->read_pointer = 0; |
buffer | 1566 | drivers/scsi/st.c | (STp->buffer)->buffer_bytes / STp->block_size; |
buffer | 1568 | drivers/scsi/st.c | (STp->mt_status)->mt_blkno -= ((STp->buffer)->buffer_bytes + |
buffer | 1612 | drivers/scsi/st.c | (void *) scmd, (void *) (STp->buffer)->b_data, |
buffer | 1617 | drivers/scsi/st.c | if ((STp->buffer)->last_result_fatal != 0) { |
buffer | 1628 | drivers/scsi/st.c | mt_pos.mt_blkno = ((STp->buffer)->b_data[0] << 16) |
buffer | 1629 | drivers/scsi/st.c | + ((STp->buffer)->b_data[1] << 8) |
buffer | 1630 | drivers/scsi/st.c | + (STp->buffer)->b_data[2]; |
buffer | 1632 | drivers/scsi/st.c | mt_pos.mt_blkno = ((STp->buffer)->b_data[4] << 24) |
buffer | 1633 | drivers/scsi/st.c | + ((STp->buffer)->b_data[5] << 16) |
buffer | 1634 | drivers/scsi/st.c | + ((STp->buffer)->b_data[6] << 8) |
buffer | 1635 | 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 | 915 | fs/ext2/namei.c | #define PARENT_INO(buffer) \ |
buffer | 916 | fs/ext2/namei.c | ((struct ext2_dir_entry *) ((char *) buffer + \ |
buffer | 917 | fs/ext2/namei.c | ((struct ext2_dir_entry *) buffer)->rec_len))->inode |
buffer | 919 | fs/ext2/namei.c | #define PARENT_NAME(buffer) \ |
buffer | 920 | fs/ext2/namei.c | ((struct ext2_dir_entry *) ((char *) buffer + \ |
buffer | 921 | fs/ext2/namei.c | ((struct ext2_dir_entry *) buffer)->rec_len))->name |
buffer | 94 | fs/ext2/symlink.c | static int ext2_readlink (struct inode * inode, char * buffer, int buflen) |
buffer | 120 | 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 + offset, 1024 - offset); \ |
buffer | 76 | fs/isofs/rock.c | memcpy(buffer + offset1, bh->b_data + offset, cont_size - offset1); \ |
buffer | 78 | fs/isofs/rock.c | chr = (unsigned char *) buffer; \ |
buffer | 160 | fs/isofs/rock.c | if(buffer) kfree(buffer); |
buffer | 226 | fs/isofs/rock.c | if (buffer) kfree(buffer); |
buffer | 242 | fs/isofs/rock.c | if(buffer) kfree(buffer); |
buffer | 376 | fs/isofs/rock.c | if(buffer) kfree(buffer); |
buffer | 501 | 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 | 36 | fs/proc/array.c | int get_malloc(char * buffer); |
buffer | 84 | fs/proc/array.c | static int get_loadavg(char * buffer) |
buffer | 91 | fs/proc/array.c | return sprintf(buffer,"%d.%02d %d.%02d %d.%02d\n", |
buffer | 97 | fs/proc/array.c | static int get_kstat(char * buffer) |
buffer | 104 | fs/proc/array.c | len = sprintf(buffer, |
buffer | 124 | fs/proc/array.c | len += sprintf(buffer + len, " %u", kstat.interrupts[i]); |
buffer | 125 | fs/proc/array.c | len += sprintf(buffer + len, |
buffer | 134 | fs/proc/array.c | static int get_uptime(char * buffer) |
buffer | 141 | fs/proc/array.c | return sprintf(buffer,"%lu.%02lu %lu.%02lu\n", |
buffer | 148 | fs/proc/array.c | static int get_meminfo(char * buffer) |
buffer | 154 | fs/proc/array.c | return sprintf(buffer, " total: used: free: shared: buffers:\n" |
buffer | 161 | fs/proc/array.c | static int get_version(char * buffer) |
buffer | 165 | fs/proc/array.c | strcpy(buffer, linux_banner); |
buffer | 166 | fs/proc/array.c | return strlen(buffer); |
buffer | 200 | fs/proc/array.c | static int get_array(struct task_struct ** p, unsigned long start, unsigned long end, char * buffer) |
buffer | 217 | fs/proc/array.c | buffer[size++] = c; |
buffer | 228 | fs/proc/array.c | while (result>0 && buffer[result-1]==' ') |
buffer | 233 | fs/proc/array.c | static int get_env(int pid, char * buffer) |
buffer | 239 | fs/proc/array.c | return get_array(p, (*p)->mm->env_start, (*p)->mm->env_end, buffer); |
buffer | 242 | fs/proc/array.c | static int get_arg(int pid, char * buffer) |
buffer | 248 | fs/proc/array.c | return get_array(p, (*p)->mm->arg_start, (*p)->mm->arg_end, buffer); |
buffer | 278 | fs/proc/array.c | static int get_stat(int pid, char * buffer) |
buffer | 313 | fs/proc/array.c | return sprintf(buffer,"%d (%s) %c %d %d %d %d %d %lu %lu \ |
buffer | 355 | fs/proc/array.c | static int get_statm(int pid, char * buffer) |
buffer | 398 | fs/proc/array.c | return sprintf(buffer,"%d %d %d %d %d %d %d\n", |
buffer | 108 | fs/proc/link.c | static int proc_readlink(struct inode * inode, char * buffer, int buflen) |
buffer | 131 | 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 | 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 | 442 | include/linux/fs.h | extern void ll_rw_page(int rw, int dev, int nr, char * buffer); |
buffer | 443 | 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 | 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 | flags = get_fs_long(buffer+3); |
buffer | 148 | mm/mmap.c | unsigned long fd = get_fs_long(buffer+4); |
buffer | 152 | mm/mmap.c | return do_mmap(file, get_fs_long(buffer), get_fs_long(buffer+1), |
buffer | 153 | mm/mmap.c | get_fs_long(buffer+2), flags, get_fs_long(buffer+5)); |
buffer | 878 | net/inet/arp.c | int arp_get_info(char *buffer, char **start, off_t offset, int length) |
buffer | 889 | net/inet/arp.c | size = sprintf(buffer,"IP address HW type Flags HW address\n"); |
buffer | 919 | net/inet/arp.c | size = sprintf(buffer+len, |
buffer | 940 | 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 | 944 | net/inet/dev.c | static int sprintf_stats(char *buffer, struct device *dev) |
buffer | 950 | net/inet/dev.c | size = sprintf(buffer, "%6s:%7d %4d %4d %4d %4d %8d %4d %4d %4d %5d %4d\n", |
buffer | 962 | net/inet/dev.c | size = sprintf(buffer, "%6s: No statistics available.\n", dev->name); |
buffer | 972 | net/inet/dev.c | int dev_get_info(char *buffer, char **start, off_t offset, int length) |
buffer | 982 | net/inet/dev.c | size = sprintf(buffer, "Inter-| Receive | Transmit\n" |
buffer | 991 | net/inet/dev.c | size = sprintf_stats(buffer+len, dev); |
buffer | 1004 | net/inet/dev.c | *start=buffer+(offset-begin); /* Start of wanted data */ |
buffer | 144 | net/inet/ipx.c | int ipx_get_info(char *buffer, char **start, off_t offset, int length) |
buffer | 153 | net/inet/ipx.c | len += sprintf (buffer,"Type local_address rem_address tx_queue rx_queue st uid\n"); |
buffer | 156 | net/inet/ipx.c | len += sprintf (buffer+len,"%02X ", s->ipx_type); |
buffer | 157 | net/inet/ipx.c | len += sprintf (buffer+len,"%08lX:%02X%02X%02X%02X%02X%02X:%02X ", htonl(s->ipx_source_addr.net), |
buffer | 161 | net/inet/ipx.c | len += sprintf (buffer+len,"%08lX:%02X%02X%02X%02X%02X%02X:%02X ", htonl(s->ipx_dest_addr.net), |
buffer | 165 | net/inet/ipx.c | len += sprintf (buffer+len,"%08lX:%08lX ", s->wmem_alloc, s->rmem_alloc); |
buffer | 166 | net/inet/ipx.c | len += sprintf (buffer+len,"%02X %d\n", s->state, SOCK_INODE(s->socket)->i_uid); |
buffer | 181 | net/inet/ipx.c | *start=buffer+(offset-begin); /* Start of wanted data */ |
buffer | 430 | net/inet/ipx.c | int ipx_rt_get_info(char *buffer, char **start, off_t offset, int length) |
buffer | 437 | net/inet/ipx.c | len += sprintf (buffer,"Net Router Flags Dev\n"); |
buffer | 440 | net/inet/ipx.c | len += sprintf (buffer+len,"%08lX %08lX:%02X%02X%02X%02X%02X%02X %02X %s\n", ntohl(rt->net), |
buffer | 452 | 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); |