tag | line | file | source code |
cmd | 53 | fs/fcntl.c | int sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg) |
cmd | 56 | fs/fcntl.c | extern int sock_fcntl (struct file *, unsigned int cmd, |
cmd | 60 | fs/fcntl.c | switch (cmd) { |
cmd | 80 | fs/fcntl.c | return fcntl_setlk(fd, cmd, (struct flock *) arg); |
cmd | 82 | fs/fcntl.c | return fcntl_setlk(fd, cmd, (struct flock *) arg); |
cmd | 87 | fs/fcntl.c | return (sock_fcntl (filp, cmd, arg)); |
cmd | 16 | fs/ioctl.c | static int file_ioctl(struct file *filp,unsigned int cmd,unsigned long arg) |
cmd | 20 | fs/ioctl.c | switch (cmd) { |
cmd | 49 | fs/ioctl.c | int sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) |
cmd | 56 | fs/ioctl.c | switch (cmd) { |
cmd | 84 | fs/ioctl.c | return file_ioctl(filp,cmd,arg); |
cmd | 87 | fs/ioctl.c | return filp->f_op->ioctl(filp->f_inode, filp, cmd,arg); |
cmd | 88 | fs/locks.c | int fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l) |
cmd | 137 | fs/locks.c | if (cmd == F_SETLKW) { |
cmd | 107 | fs/pipe.c | unsigned int cmd, unsigned int arg) |
cmd | 109 | fs/pipe.c | switch (cmd) { |
cmd | 198 | include/linux/tty.h | unsigned int cmd, unsigned int arg); |
cmd | 319 | include/linux/tty.h | unsigned int cmd, unsigned int arg); |
cmd | 25 | kernel/blk_drv/blk.h | int cmd; /* READ or WRITE */ |
cmd | 43 | kernel/blk_drv/blk.h | ((s1)->cmd < (s2)->cmd || ((s1)->cmd == (s2)->cmd && \ |
cmd | 980 | kernel/blk_drv/floppy.c | if (CURRENT->cmd == READ) |
cmd | 982 | kernel/blk_drv/floppy.c | else if (CURRENT->cmd == WRITE) |
cmd | 1033 | kernel/blk_drv/floppy.c | static int fd_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, |
cmd | 1039 | kernel/blk_drv/floppy.c | switch (cmd) { |
cmd | 1043 | kernel/blk_drv/floppy.c | switch (cmd) { |
cmd | 1055 | kernel/blk_drv/floppy.c | cmd = FDCLRPRM; |
cmd | 1099 | kernel/blk_drv/floppy.c | switch (cmd) { |
cmd | 1112 | kernel/blk_drv/floppy.c | if (cmd == FDDEFPRM) keep_data[drive] = -1; |
cmd | 168 | kernel/blk_drv/hd.c | unsigned int head,unsigned int cyl,unsigned int cmd, |
cmd | 194 | kernel/blk_drv/hd.c | outb_p(cmd,++port); |
cmd | 471 | kernel/blk_drv/hd.c | if (CURRENT->cmd == WRITE) { |
cmd | 484 | kernel/blk_drv/hd.c | if (CURRENT->cmd == READ) { |
cmd | 495 | kernel/blk_drv/hd.c | unsigned int cmd, unsigned int arg) |
cmd | 505 | kernel/blk_drv/hd.c | switch (cmd) { |
cmd | 168 | kernel/blk_drv/ll_rw_blk.c | req->cmd == rw && |
cmd | 207 | kernel/blk_drv/ll_rw_blk.c | req->cmd = rw; |
cmd | 248 | kernel/blk_drv/ll_rw_blk.c | req->cmd = rw; |
cmd | 362 | kernel/blk_drv/ll_rw_blk.c | req->cmd = rw; |
cmd | 36 | kernel/blk_drv/ramdisk.c | if (CURRENT-> cmd == WRITE) { |
cmd | 40 | kernel/blk_drv/ramdisk.c | } else if (CURRENT->cmd == READ) { |
cmd | 360 | kernel/blk_drv/scsi/aha1542.c | unchar *cmd = (unchar *) SCpnt->cmnd; |
cmd | 373 | kernel/blk_drv/scsi/aha1542.c | if(*cmd == REQUEST_SENSE){ |
cmd | 386 | kernel/blk_drv/scsi/aha1542.c | if (*cmd == READ_10 || *cmd == WRITE_10) |
cmd | 387 | kernel/blk_drv/scsi/aha1542.c | i = xscsi2int(cmd+2); |
cmd | 388 | kernel/blk_drv/scsi/aha1542.c | else if (*cmd == READ_6 || *cmd == WRITE_6) |
cmd | 389 | kernel/blk_drv/scsi/aha1542.c | i = scsi2int(cmd+2); |
cmd | 393 | kernel/blk_drv/scsi/aha1542.c | printk("aha1542_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
cmd | 395 | kernel/blk_drv/scsi/aha1542.c | printk("aha1542_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
cmd | 398 | kernel/blk_drv/scsi/aha1542.c | for (i = 0; i < (*cmd<=0x1f?6:10); i++) printk("%02x ", cmd[i]); |
cmd | 400 | kernel/blk_drv/scsi/aha1542.c | if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 432 | kernel/blk_drv/scsi/aha1542.c | ccb[mbo].cdblen = (*cmd<=0x1f)?6:10; /* SCSI Command Descriptor Block Length */ |
cmd | 435 | kernel/blk_drv/scsi/aha1542.c | if (*cmd == READ_10 || *cmd == READ_6) |
cmd | 437 | kernel/blk_drv/scsi/aha1542.c | else if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 440 | kernel/blk_drv/scsi/aha1542.c | memcpy(ccb[mbo].cdb, cmd, ccb[mbo].cdblen); |
cmd | 533 | kernel/blk_drv/scsi/aha1542.c | static unchar cmd[5] = {CMD_MBINIT, AHA1542_MAILBOXES}; |
cmd | 540 | kernel/blk_drv/scsi/aha1542.c | any2scsi((cmd+2), mb); |
cmd | 541 | kernel/blk_drv/scsi/aha1542.c | aha1542_out(cmd, 5); |
cmd | 712 | kernel/blk_drv/scsi/aha1542.c | static unchar cmd[] = { READ_CAPACITY, 0, 0, 0, 0, 0, 0, 0, 0, 0}; |
cmd | 717 | kernel/blk_drv/scsi/aha1542.c | if (!aha1542_command(i, cmd, buf, sizeof(buf))) { |
cmd | 727 | kernel/blk_drv/scsi/aha1542.c | unsigned char cmd[10]; |
cmd | 730 | kernel/blk_drv/scsi/aha1542.c | cmd[0] = READ_10; |
cmd | 731 | kernel/blk_drv/scsi/aha1542.c | cmd[1] = 0; |
cmd | 732 | kernel/blk_drv/scsi/aha1542.c | xany2scsi(cmd+2, i); |
cmd | 733 | kernel/blk_drv/scsi/aha1542.c | cmd[6] = 0; |
cmd | 734 | kernel/blk_drv/scsi/aha1542.c | cmd[7] = 0; |
cmd | 735 | kernel/blk_drv/scsi/aha1542.c | cmd[8] = 1; |
cmd | 736 | kernel/blk_drv/scsi/aha1542.c | cmd[9] = 0; |
cmd | 737 | kernel/blk_drv/scsi/aha1542.c | aha1542_command(0, cmd, buffer, 512); |
cmd | 192 | kernel/blk_drv/scsi/aha1740.c | unchar *cmd = (unchar *) SCpnt->cmnd; |
cmd | 203 | kernel/blk_drv/scsi/aha1740.c | if(*cmd == REQUEST_SENSE){ |
cmd | 216 | kernel/blk_drv/scsi/aha1740.c | if (*cmd == READ_10 || *cmd == WRITE_10) |
cmd | 217 | kernel/blk_drv/scsi/aha1740.c | i = xscsi2int(cmd+2); |
cmd | 218 | kernel/blk_drv/scsi/aha1740.c | else if (*cmd == READ_6 || *cmd == WRITE_6) |
cmd | 219 | kernel/blk_drv/scsi/aha1740.c | i = scsi2int(cmd+2); |
cmd | 223 | kernel/blk_drv/scsi/aha1740.c | printk("aha1740_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
cmd | 225 | kernel/blk_drv/scsi/aha1740.c | printk("aha1740_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
cmd | 227 | kernel/blk_drv/scsi/aha1740.c | for (i = 0; i < (*cmd<=0x1f?6:10); i++) printk("%02x ", cmd[i]); |
cmd | 230 | kernel/blk_drv/scsi/aha1740.c | if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 260 | kernel/blk_drv/scsi/aha1740.c | ecb[ecbno].cdblen = (*cmd<=0x1f)?6:10; /* SCSI Command Descriptor Block Length */ |
cmd | 263 | kernel/blk_drv/scsi/aha1740.c | if (*cmd == READ_10 || *cmd == READ_6) |
cmd | 265 | kernel/blk_drv/scsi/aha1740.c | else if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 268 | kernel/blk_drv/scsi/aha1740.c | memcpy(ecb[ecbno].cdb, cmd, ecb[ecbno].cdblen); |
cmd | 72 | kernel/blk_drv/scsi/scsi_debug.c | if (SCpnt->request.cmd != RW) panic ("Wrong operation"); \ |
cmd | 139 | kernel/blk_drv/scsi/scsi_debug.c | unchar *cmd = (unchar *) SCpnt->cmnd; |
cmd | 163 | kernel/blk_drv/scsi/scsi_debug.c | switch(*cmd){ |
cmd | 180 | kernel/blk_drv/scsi/scsi_debug.c | if(cmd[4]) printk("Medium removal inhibited..."); |
cmd | 217 | kernel/blk_drv/scsi/scsi_debug.c | if ((*cmd) == READ_10) |
cmd | 218 | kernel/blk_drv/scsi/scsi_debug.c | block = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); |
cmd | 220 | kernel/blk_drv/scsi/scsi_debug.c | block = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16); |
cmd | 275 | kernel/blk_drv/scsi/scsi_debug.c | memcpy(buff+sizeof(target), cmd, 24); |
cmd | 299 | kernel/blk_drv/scsi/scsi_debug.c | if ((*cmd) == WRITE_10) |
cmd | 300 | kernel/blk_drv/scsi/scsi_debug.c | block = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); |
cmd | 302 | kernel/blk_drv/scsi/scsi_debug.c | block = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16); |
cmd | 321 | kernel/blk_drv/scsi/scsi_debug.c | printk("Unknown command %d\n",*cmd); |
cmd | 83 | kernel/blk_drv/scsi/scsi_ioctl.c | static int ioctl_internal_command(Scsi_Device *dev, char * cmd) |
cmd | 91 | kernel/blk_drv/scsi/scsi_ioctl.c | scsi_do_cmd(SCpnt, cmd, NULL, 0, |
cmd | 140 | kernel/blk_drv/scsi/scsi_ioctl.c | char cmd[10]; |
cmd | 166 | kernel/blk_drv/scsi/scsi_ioctl.c | memcpy_fromfs ((void *) cmd, cmd_in, cmdlen = COMMAND_SIZE (opcode)); |
cmd | 174 | kernel/blk_drv/scsi/scsi_ioctl.c | scsi_do_cmd(SCpnt, cmd, buf, ((outlen > MAX_BUF) ? |
cmd | 196 | kernel/blk_drv/scsi/scsi_ioctl.c | printk("%02x ", cmd[i]); |
cmd | 215 | kernel/blk_drv/scsi/scsi_ioctl.c | int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) |
cmd | 219 | kernel/blk_drv/scsi/scsi_ioctl.c | if ((cmd != 0 && dev->index > NR_SCSI_DEVICES)) |
cmd | 221 | kernel/blk_drv/scsi/scsi_ioctl.c | if ((cmd == 0 && dev->host_no > max_scsi_hosts)) |
cmd | 224 | kernel/blk_drv/scsi/scsi_ioctl.c | switch (cmd) { |
cmd | 168 | kernel/blk_drv/scsi/sd.c | if (SCpnt->request.cmd == READ) |
cmd | 180 | kernel/blk_drv/scsi/sd.c | if (SCpnt->request.cmd == READ) |
cmd | 385 | kernel/blk_drv/scsi/sd.c | unsigned char cmd[10]; |
cmd | 424 | kernel/blk_drv/scsi/sd.c | switch (SCpnt->request.cmd) |
cmd | 432 | kernel/blk_drv/scsi/sd.c | cmd[0] = WRITE_6; |
cmd | 435 | kernel/blk_drv/scsi/sd.c | cmd[0] = READ_6; |
cmd | 438 | kernel/blk_drv/scsi/sd.c | printk ("Unknown sd command %d\r\n", SCpnt->request.cmd); |
cmd | 537 | kernel/blk_drv/scsi/sd.c | if (SCpnt->request.cmd == WRITE) |
cmd | 552 | kernel/blk_drv/scsi/sd.c | if (SCpnt->request.cmd == WRITE) |
cmd | 559 | kernel/blk_drv/scsi/sd.c | (SCpnt->request.cmd == WRITE) ? "writing" : "reading", |
cmd | 563 | kernel/blk_drv/scsi/sd.c | cmd[1] = (SCpnt->lun << 5) & 0xe0; |
cmd | 570 | kernel/blk_drv/scsi/sd.c | cmd[0] += READ_10 - READ_6 ; |
cmd | 571 | kernel/blk_drv/scsi/sd.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
cmd | 572 | kernel/blk_drv/scsi/sd.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
cmd | 573 | kernel/blk_drv/scsi/sd.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
cmd | 574 | kernel/blk_drv/scsi/sd.c | cmd[5] = (unsigned char) block & 0xff; |
cmd | 575 | kernel/blk_drv/scsi/sd.c | cmd[6] = cmd[9] = 0; |
cmd | 576 | kernel/blk_drv/scsi/sd.c | cmd[7] = (unsigned char) (this_count >> 8) & 0xff; |
cmd | 577 | kernel/blk_drv/scsi/sd.c | cmd[8] = (unsigned char) this_count & 0xff; |
cmd | 584 | kernel/blk_drv/scsi/sd.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
cmd | 585 | kernel/blk_drv/scsi/sd.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
cmd | 586 | kernel/blk_drv/scsi/sd.c | cmd[3] = (unsigned char) block & 0xff; |
cmd | 587 | kernel/blk_drv/scsi/sd.c | cmd[4] = (unsigned char) this_count; |
cmd | 588 | kernel/blk_drv/scsi/sd.c | cmd[5] = 0; |
cmd | 591 | kernel/blk_drv/scsi/sd.c | scsi_do_cmd (SCpnt, (void *) cmd, buff, this_count << 9, |
cmd | 646 | kernel/blk_drv/scsi/sd.c | unsigned char cmd[10]; |
cmd | 659 | kernel/blk_drv/scsi/sd.c | cmd[0] = READ_CAPACITY; |
cmd | 660 | kernel/blk_drv/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
cmd | 661 | kernel/blk_drv/scsi/sd.c | memset ((void *) &cmd[2], 0, 8); |
cmd | 665 | kernel/blk_drv/scsi/sd.c | (void *) cmd, (void *) buffer, |
cmd | 14 | kernel/blk_drv/scsi/sd_ioctl.c | extern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
cmd | 17 | kernel/blk_drv/scsi/sd_ioctl.c | int sd_ioctl(struct inode * inode, struct file * file, unsigned long cmd, unsigned long arg) |
cmd | 24 | kernel/blk_drv/scsi/sd_ioctl.c | switch (cmd) { |
cmd | 54 | kernel/blk_drv/scsi/sd_ioctl.c | return scsi_ioctl(rscsi_disks[MINOR(dev) >> 4].device , cmd, (void *) arg); |
cmd | 333 | kernel/blk_drv/scsi/sr.c | unsigned char cmd[10], *buffer, tries; |
cmd | 374 | kernel/blk_drv/scsi/sr.c | switch (SCpnt->request.cmd) |
cmd | 381 | kernel/blk_drv/scsi/sr.c | cmd[0] = READ_6; |
cmd | 384 | kernel/blk_drv/scsi/sr.c | printk ("Unknown sr command %d\r\n", SCpnt->request.cmd); |
cmd | 388 | kernel/blk_drv/scsi/sr.c | cmd[1] = (SCpnt->lun << 5) & 0xe0; |
cmd | 556 | kernel/blk_drv/scsi/sr.c | cmd[0] += READ_10 - READ_6 ; |
cmd | 557 | kernel/blk_drv/scsi/sr.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
cmd | 558 | kernel/blk_drv/scsi/sr.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
cmd | 559 | kernel/blk_drv/scsi/sr.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
cmd | 560 | kernel/blk_drv/scsi/sr.c | cmd[5] = (unsigned char) block & 0xff; |
cmd | 561 | kernel/blk_drv/scsi/sr.c | cmd[6] = cmd[9] = 0; |
cmd | 562 | kernel/blk_drv/scsi/sr.c | cmd[7] = (unsigned char) (realcount >> 8) & 0xff; |
cmd | 563 | kernel/blk_drv/scsi/sr.c | cmd[8] = (unsigned char) realcount & 0xff; |
cmd | 573 | kernel/blk_drv/scsi/sr.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
cmd | 574 | kernel/blk_drv/scsi/sr.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
cmd | 575 | kernel/blk_drv/scsi/sr.c | cmd[3] = (unsigned char) block & 0xff; |
cmd | 576 | kernel/blk_drv/scsi/sr.c | cmd[4] = (unsigned char) realcount; |
cmd | 577 | kernel/blk_drv/scsi/sr.c | cmd[5] = 0; |
cmd | 585 | kernel/blk_drv/scsi/sr.c | scsi_do_cmd (SCpnt, (void *) cmd, buffer, realcount << 11, |
cmd | 18 | kernel/blk_drv/scsi/sr_ioctl.c | extern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
cmd | 92 | kernel/blk_drv/scsi/sr_ioctl.c | int sr_ioctl(struct inode * inode, struct file * file, unsigned long cmd, unsigned long arg) |
cmd | 102 | kernel/blk_drv/scsi/sr_ioctl.c | switch (cmd) |
cmd | 214 | kernel/blk_drv/scsi/sr_ioctl.c | return scsi_ioctl(scsi_CDs[target].device,cmd,(void *) arg); |
cmd | 192 | kernel/blk_drv/scsi/st.c | unsigned char cmd[10]; |
cmd | 221 | kernel/blk_drv/scsi/st.c | memset(cmd, 0, 10); |
cmd | 222 | kernel/blk_drv/scsi/st.c | cmd[0] = WRITE_6; |
cmd | 223 | kernel/blk_drv/scsi/st.c | cmd[1] = 1; |
cmd | 225 | kernel/blk_drv/scsi/st.c | cmd[2] = blks >> 16; |
cmd | 226 | kernel/blk_drv/scsi/st.c | cmd[3] = blks >> 8; |
cmd | 227 | kernel/blk_drv/scsi/st.c | cmd[4] = blks; |
cmd | 230 | kernel/blk_drv/scsi/st.c | (void *) cmd, scsi_tapes[dev].buffer->b_data, transfer, |
cmd | 290 | kernel/blk_drv/scsi/st.c | unsigned char cmd[10]; |
cmd | 329 | kernel/blk_drv/scsi/st.c | memset ((void *) &cmd[0], 0, 10); |
cmd | 330 | kernel/blk_drv/scsi/st.c | cmd[0] = TEST_UNIT_READY; |
cmd | 333 | kernel/blk_drv/scsi/st.c | (void *) cmd, (void *) scsi_tapes[dev].buffer->b_data, |
cmd | 344 | kernel/blk_drv/scsi/st.c | memset ((void *) &cmd[0], 0, 10); |
cmd | 345 | kernel/blk_drv/scsi/st.c | cmd[0] = TEST_UNIT_READY; |
cmd | 348 | kernel/blk_drv/scsi/st.c | (void *) cmd, (void *) scsi_tapes[dev].buffer->b_data, |
cmd | 370 | kernel/blk_drv/scsi/st.c | memset ((void *) &cmd[0], 0, 10); |
cmd | 371 | kernel/blk_drv/scsi/st.c | cmd[0] = READ_BLOCK_LIMITS; |
cmd | 374 | kernel/blk_drv/scsi/st.c | (void *) cmd, (void *) scsi_tapes[dev].buffer->b_data, |
cmd | 397 | kernel/blk_drv/scsi/st.c | memset ((void *) &cmd[0], 0, 10); |
cmd | 398 | kernel/blk_drv/scsi/st.c | cmd[0] = MODE_SENSE; |
cmd | 399 | kernel/blk_drv/scsi/st.c | cmd[4] = 12; |
cmd | 402 | kernel/blk_drv/scsi/st.c | (void *) cmd, (void *) scsi_tapes[dev].buffer->b_data, |
cmd | 485 | kernel/blk_drv/scsi/st.c | static unsigned char cmd[10]; |
cmd | 504 | kernel/blk_drv/scsi/st.c | memset(cmd, 0, 10); |
cmd | 505 | kernel/blk_drv/scsi/st.c | cmd[0] = WRITE_FILEMARKS; |
cmd | 506 | kernel/blk_drv/scsi/st.c | cmd[4] = 1; |
cmd | 509 | kernel/blk_drv/scsi/st.c | (void *) cmd, (void *) scsi_tapes[dev].buffer->b_data, |
cmd | 550 | kernel/blk_drv/scsi/st.c | static unsigned char cmd[10]; |
cmd | 593 | kernel/blk_drv/scsi/st.c | memset(cmd, 0, 10); |
cmd | 594 | kernel/blk_drv/scsi/st.c | cmd[0] = WRITE_6; |
cmd | 595 | kernel/blk_drv/scsi/st.c | cmd[1] = 1; |
cmd | 608 | kernel/blk_drv/scsi/st.c | cmd[2] = blks >> 16; |
cmd | 609 | kernel/blk_drv/scsi/st.c | cmd[3] = blks >> 8; |
cmd | 610 | kernel/blk_drv/scsi/st.c | cmd[4] = blks; |
cmd | 614 | kernel/blk_drv/scsi/st.c | (void *) cmd, scsi_tapes[dev].buffer->b_data, |
cmd | 665 | kernel/blk_drv/scsi/st.c | cmd[2] = blks >> 16; |
cmd | 666 | kernel/blk_drv/scsi/st.c | cmd[3] = blks >> 8; |
cmd | 667 | kernel/blk_drv/scsi/st.c | cmd[4] = blks; |
cmd | 672 | kernel/blk_drv/scsi/st.c | (void *) cmd, scsi_tapes[dev].buffer->b_data, |
cmd | 690 | kernel/blk_drv/scsi/st.c | static unsigned char cmd[10]; |
cmd | 726 | kernel/blk_drv/scsi/st.c | memset(cmd, 0, 10); |
cmd | 727 | kernel/blk_drv/scsi/st.c | cmd[0] = READ_6; |
cmd | 728 | kernel/blk_drv/scsi/st.c | cmd[1] = 1; |
cmd | 730 | kernel/blk_drv/scsi/st.c | cmd[2] = blks >> 16; |
cmd | 731 | kernel/blk_drv/scsi/st.c | cmd[3] = blks >> 8; |
cmd | 732 | kernel/blk_drv/scsi/st.c | cmd[4] = blks; |
cmd | 737 | kernel/blk_drv/scsi/st.c | (void *) cmd, scsi_tapes[dev].buffer->b_data, |
cmd | 854 | kernel/blk_drv/scsi/st.c | unsigned char cmd[10]; |
cmd | 859 | kernel/blk_drv/scsi/st.c | memset(cmd, 0, 10); |
cmd | 863 | kernel/blk_drv/scsi/st.c | cmd[0] = SPACE; |
cmd | 864 | kernel/blk_drv/scsi/st.c | cmd[1] = 0x01; /* Space FileMarks */ |
cmd | 865 | kernel/blk_drv/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 866 | kernel/blk_drv/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 867 | kernel/blk_drv/scsi/st.c | cmd[4] = arg; |
cmd | 870 | kernel/blk_drv/scsi/st.c | cmd[2] * 65536 + cmd[3] * 256 + cmd[4]); |
cmd | 875 | kernel/blk_drv/scsi/st.c | cmd[0] = SPACE; |
cmd | 876 | kernel/blk_drv/scsi/st.c | cmd[1] = 0x01; /* Space FileMarks */ |
cmd | 878 | kernel/blk_drv/scsi/st.c | cmd[2] = (ltmp >> 16); |
cmd | 879 | kernel/blk_drv/scsi/st.c | cmd[3] = (ltmp >> 8); |
cmd | 880 | kernel/blk_drv/scsi/st.c | cmd[4] = ltmp; |
cmd | 882 | kernel/blk_drv/scsi/st.c | if (cmd[2] & 0x80) |
cmd | 884 | kernel/blk_drv/scsi/st.c | ltmp = ltmp | (cmd[2] << 16) | (cmd[3] << 8) | cmd[4]; |
cmd | 889 | kernel/blk_drv/scsi/st.c | cmd[0] = SPACE; |
cmd | 890 | kernel/blk_drv/scsi/st.c | cmd[1] = 0x00; /* Space Blocks */ |
cmd | 891 | kernel/blk_drv/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 892 | kernel/blk_drv/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 893 | kernel/blk_drv/scsi/st.c | cmd[4] = arg; |
cmd | 896 | kernel/blk_drv/scsi/st.c | cmd[2] * 65536 + cmd[3] * 256 + cmd[4]); |
cmd | 900 | kernel/blk_drv/scsi/st.c | cmd[0] = SPACE; |
cmd | 901 | kernel/blk_drv/scsi/st.c | cmd[1] = 0x00; /* Space Blocks */ |
cmd | 903 | kernel/blk_drv/scsi/st.c | cmd[2] = (ltmp >> 16); |
cmd | 904 | kernel/blk_drv/scsi/st.c | cmd[3] = (ltmp >> 8); |
cmd | 905 | kernel/blk_drv/scsi/st.c | cmd[4] = ltmp; |
cmd | 907 | kernel/blk_drv/scsi/st.c | if (cmd[2] & 0x80) |
cmd | 909 | kernel/blk_drv/scsi/st.c | ltmp = ltmp | (cmd[2] << 16) | (cmd[3] << 8) | cmd[4]; |
cmd | 916 | kernel/blk_drv/scsi/st.c | cmd[0] = WRITE_FILEMARKS; |
cmd | 917 | kernel/blk_drv/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 918 | kernel/blk_drv/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 919 | kernel/blk_drv/scsi/st.c | cmd[4] = arg; |
cmd | 923 | kernel/blk_drv/scsi/st.c | cmd[2] * 65536 + cmd[3] * 256 + cmd[4]); |
cmd | 927 | kernel/blk_drv/scsi/st.c | cmd[0] = REZERO_UNIT; |
cmd | 929 | kernel/blk_drv/scsi/st.c | cmd[1] = 1; /* Don't wait for completion */ |
cmd | 937 | kernel/blk_drv/scsi/st.c | cmd[0] = START_STOP; |
cmd | 939 | kernel/blk_drv/scsi/st.c | cmd[1] = 1; /* Don't wait for completion */ |
cmd | 953 | kernel/blk_drv/scsi/st.c | cmd[0] = START_STOP; |
cmd | 955 | kernel/blk_drv/scsi/st.c | cmd[1] = 1; /* Don't wait for completion */ |
cmd | 958 | kernel/blk_drv/scsi/st.c | cmd[4] = 3; |
cmd | 964 | kernel/blk_drv/scsi/st.c | cmd[0] = SPACE; |
cmd | 965 | kernel/blk_drv/scsi/st.c | cmd[1] = 3; |
cmd | 973 | kernel/blk_drv/scsi/st.c | cmd[0] = ERASE; |
cmd | 974 | kernel/blk_drv/scsi/st.c | cmd[1] = 1; /* To the end of tape */ |
cmd | 981 | kernel/blk_drv/scsi/st.c | cmd[0] = QFA_SEEK_BLOCK; |
cmd | 982 | kernel/blk_drv/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 983 | kernel/blk_drv/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 984 | kernel/blk_drv/scsi/st.c | cmd[4] = arg; |
cmd | 985 | kernel/blk_drv/scsi/st.c | cmd[5] = 0; |
cmd | 988 | kernel/blk_drv/scsi/st.c | cmd[0] = SEEK_10; |
cmd | 989 | kernel/blk_drv/scsi/st.c | cmd[1] = 4; |
cmd | 990 | kernel/blk_drv/scsi/st.c | cmd[3] = (arg >> 24); |
cmd | 991 | kernel/blk_drv/scsi/st.c | cmd[4] = (arg >> 16); |
cmd | 992 | kernel/blk_drv/scsi/st.c | cmd[5] = (arg >> 8); |
cmd | 993 | kernel/blk_drv/scsi/st.c | cmd[6] = arg; |
cmd | 996 | kernel/blk_drv/scsi/st.c | cmd[1] |= 1; /* Don't wait for completion */ |
cmd | 1013 | kernel/blk_drv/scsi/st.c | cmd[0] = MODE_SELECT; |
cmd | 1014 | kernel/blk_drv/scsi/st.c | cmd[4] = 12; |
cmd | 1049 | kernel/blk_drv/scsi/st.c | (void *) cmd, (void *) scsi_tapes[dev].buffer->b_data, ST_BLOCK_SIZE, |
cmd | 1092 | kernel/blk_drv/scsi/st.c | int i, cmd, result; |
cmd | 1106 | kernel/blk_drv/scsi/st.c | cmd = cmd_in & IOCCMD_MASK; |
cmd | 1107 | kernel/blk_drv/scsi/st.c | if (cmd == (MTIOCTOP & IOCCMD_MASK)) { |
cmd | 1124 | kernel/blk_drv/scsi/st.c | else if (cmd == (MTIOCGET & IOCCMD_MASK)) { |
cmd | 1134 | kernel/blk_drv/scsi/st.c | else if (cmd == (MTIOCPOS & IOCCMD_MASK)) { |
cmd | 186 | kernel/chr_drv/lp.c | unsigned int cmd, unsigned int arg) |
cmd | 191 | kernel/chr_drv/lp.c | printk("lp%d ioctl, cmd: 0x%x, arg: 0x%x\n", minor, cmd, arg); |
cmd | 197 | kernel/chr_drv/lp.c | switch ( cmd ) { |
cmd | 890 | kernel/chr_drv/serial.c | static int set_modem_info(struct async_struct * info, unsigned int cmd, |
cmd | 898 | kernel/chr_drv/serial.c | switch (cmd) { |
cmd | 924 | kernel/chr_drv/serial.c | unsigned int cmd, unsigned int arg) |
cmd | 934 | kernel/chr_drv/serial.c | switch (cmd) { |
cmd | 946 | kernel/chr_drv/serial.c | return set_modem_info(info, cmd, (unsigned int *) arg); |
cmd | 257 | kernel/chr_drv/tty_ioctl.c | unsigned int cmd, unsigned int arg) |
cmd | 284 | kernel/chr_drv/tty_ioctl.c | switch (cmd) { |
cmd | 454 | kernel/chr_drv/tty_ioctl.c | return (tty->ioctl)(tty, file, cmd, arg); |
cmd | 105 | kernel/chr_drv/vt.c | unsigned int cmd, unsigned int arg) |
cmd | 117 | kernel/chr_drv/vt.c | switch (cmd) { |
cmd | 152 | kernel/chr_drv/vt.c | return sys_ioperm(arg, 1, (cmd == KDADDIO)) ? -ENXIO : 0; |
cmd | 157 | kernel/chr_drv/vt.c | (cmd == KDENABIO)) ? -ENXIO : 0; |
cmd | 56 | net/kern_sock.h | int (*ioctl)(struct socket *sock, unsigned int cmd, unsigned long arg); |
cmd | 71 | net/kern_sock.h | int (*fcntl) (struct socket *sock, unsigned int cmd, |
cmd | 59 | net/socket.c | unsigned int cmd, unsigned int arg); |
cmd | 283 | net/socket.c | sock_ioctl(struct inode *inode, struct file *file, unsigned int cmd, |
cmd | 288 | net/socket.c | PRINTK(("sock_ioctl: inode=0x%x cmd=0x%x arg=%d\n", inode, cmd, arg)); |
cmd | 293 | net/socket.c | return sock->ops->ioctl(sock, cmd, arg); |
cmd | 816 | net/socket.c | sock_fcntl(struct file *filp, unsigned int cmd, unsigned long arg) |
cmd | 822 | net/socket.c | return (sock->ops->fcntl (sock, cmd, arg)); |
cmd | 130 | net/tcp/sock.c | static int ip_proto_ioctl(struct socket *sock, unsigned int cmd, |
cmd | 152 | net/tcp/sock.c | static int ip_proto_fcntl (struct socket *sock, unsigned int cmd, |
cmd | 660 | net/tcp/sock.c | ip_proto_fcntl (struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 670 | net/tcp/sock.c | switch (cmd) |
cmd | 1608 | net/tcp/sock.c | ip_proto_ioctl (struct socket *sock, unsigned int cmd, |
cmd | 1620 | net/tcp/sock.c | switch (cmd) |
cmd | 1648 | net/tcp/sock.c | return (sk->prot->ioctl (sk, cmd, arg)); |
cmd | 136 | net/tcp/sock.h | int (*ioctl) (volatile struct sock *sk, int cmd, unsigned long arg); |
cmd | 342 | net/tcp/tcp.c | tcp_ioctl (volatile struct sock *sk, int cmd, unsigned long arg) |
cmd | 344 | net/tcp/tcp.c | PRINTK (("tcp_ioctl (sk=%X, cmd = %d, arg=%X)\n", sk, cmd, arg)); |
cmd | 345 | net/tcp/tcp.c | switch (cmd) |
cmd | 466 | net/tcp/udp.c | udp_ioctl (volatile struct sock *sk, int cmd, unsigned long arg) |
cmd | 468 | net/tcp/udp.c | switch (cmd) |
cmd | 139 | net/tcp/we.c | unsigned char cmd; |
cmd | 142 | net/tcp/we.c | cmd = inb_p(WD_COMM); |
cmd | 143 | net/tcp/we.c | cmd &= ~(CSTOP|CPAGE); |
cmd | 144 | net/tcp/we.c | cmd |= CSTART; |
cmd | 145 | net/tcp/we.c | outb_p(cmd, WD_COMM); |
cmd | 154 | net/tcp/we.c | unsigned char cmd; |
cmd | 162 | net/tcp/we.c | cmd=inb_p(WD_COMM); |
cmd | 163 | net/tcp/we.c | cmd|=CSTOP; |
cmd | 164 | net/tcp/we.c | cmd &= ~(CSTART|CPAGE); |
cmd | 165 | net/tcp/we.c | outb_p(cmd, WD_COMM); |
cmd | 182 | net/tcp/we.c | cmd|=1<<CPAGE_SHIFT; |
cmd | 183 | net/tcp/we.c | outb_p(cmd,WD_COMM); |
cmd | 197 | net/tcp/we.c | cmd&=~(CPAGE|CRDMA); |
cmd | 198 | net/tcp/we.c | cmd|= 4<<CRDMA_SHIFT; |
cmd | 199 | net/tcp/we.c | outb_p(cmd, WD_COMM); |
cmd | 226 | net/tcp/we.c | unsigned char cmd; |
cmd | 283 | net/tcp/we.c | cmd=inb_p(WD_COMM); |
cmd | 284 | net/tcp/we.c | cmd &= ~CPAGE; |
cmd | 285 | net/tcp/we.c | outb_p(cmd, WD_COMM); |
cmd | 293 | net/tcp/we.c | cmd |= CTRANS; |
cmd | 294 | net/tcp/we.c | outb_p(cmd,WD_COMM); |
cmd | 311 | net/tcp/we.c | unsigned char cmd; |
cmd | 314 | net/tcp/we.c | cmd = inb_p( CR ); |
cmd | 315 | net/tcp/we.c | if (cmd & 0x40) { |
cmd | 316 | net/tcp/we.c | outb_p(cmd & (~CPAGE1), WD_COMM); /* select page 0 */ |
cmd | 318 | net/tcp/we.c | outb_p(cmd | CPAGE1, WD_COMM); /* reselect page 1 */ |
cmd | 328 | net/tcp/we.c | unsigned char cmd, bnd; |
cmd | 331 | net/tcp/we.c | cmd = inb_p(WD_COMM); |
cmd | 332 | net/tcp/we.c | if (cmd & 0x40) { |
cmd | 333 | net/tcp/we.c | outb_p(cmd & (~CPAGE1), WD_COMM); /* select page 0 */ |
cmd | 335 | net/tcp/we.c | outb_p(cmd | CPAGE1, WD_COMM); /* reselect page 1 */ |
cmd | 346 | net/tcp/we.c | unsigned char cmd, cur; |
cmd | 349 | net/tcp/we.c | cmd = inb_p(WD_COMM); |
cmd | 350 | net/tcp/we.c | if (cmd & 0x40) { |
cmd | 353 | net/tcp/we.c | outb_p(cmd | CPAGE1, WD_COMM); /* select page 1 */ |
cmd | 355 | net/tcp/we.c | outb_p(cmd & (~CPAGE1), WD_COMM); /* reselect page 0 */ |
cmd | 371 | net/tcp/we.c | unsigned char cmd; /* Command register save */ |
cmd | 440 | net/tcp/we.c | cmd = inb_p(WD_COMM); |
cmd | 441 | net/tcp/we.c | if (cmd & 0x40) |
cmd | 443 | net/tcp/we.c | outb_p(cmd & ~(CPAGE1), WD_COMM); /* select page 0 */ |
cmd | 452 | net/tcp/we.c | unsigned char cmd, dummy; |
cmd | 458 | net/tcp/we.c | cmd = inb_p( CR ); /* get current command register */ |
cmd | 459 | net/tcp/we.c | cmd = (cmd&~(STA|PS0|PS1))|STOP; /* toggle start and stop bits, select page 0 */ |
cmd | 460 | net/tcp/we.c | outb_p( cmd, CR ); |
cmd | 469 | net/tcp/we.c | outb_p( (cmd&~STOP)|STA, CR ); /* Start NIC */ |
cmd | 481 | net/tcp/we.c | unsigned char cmd, errors; |
cmd | 497 | net/tcp/we.c | cmd=inb_p(WD_COMM); |
cmd | 500 | net/tcp/we.c | cmd |= CTRANS; |
cmd | 501 | net/tcp/we.c | outb_p(cmd,WD_COMM); |
cmd | 528 | net/tcp/we.c | unsigned char cmd; |
cmd | 549 | net/tcp/we.c | cmd = inb_p( CR );/* Select page 0 */ |
cmd | 550 | net/tcp/we.c | if( cmd & (PS0|PS1 ) ){ |
cmd | 551 | net/tcp/we.c | cmd &= ~(PS0|PS1); |
cmd | 552 | net/tcp/we.c | outb_p(cmd, CR ); |
cmd | 60 | net/unix.c | static int unix_proto_ioctl(struct socket *sock, unsigned int cmd, |
cmd | 732 | net/unix.c | unix_proto_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 739 | net/unix.c | switch (cmd) { |