tag | line | file | source code |
cmd | 11 | fs/ext2/ioctl.c | int ext2_ioctl (struct inode * inode, struct file * filp, unsigned int cmd, |
cmd | 15 | fs/ext2/ioctl.c | printk ("ext2_ioctl: cmd = %d, arg = %d\n", cmd, arg); |
cmd | 66 | fs/fcntl.c | int sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg) |
cmd | 69 | fs/fcntl.c | extern int sock_fcntl (struct file *, unsigned int cmd, |
cmd | 73 | fs/fcntl.c | switch (cmd) { |
cmd | 93 | fs/fcntl.c | return fcntl_setlk(fd, cmd, (struct flock *) arg); |
cmd | 95 | fs/fcntl.c | return fcntl_setlk(fd, cmd, (struct flock *) arg); |
cmd | 100 | 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 | 21 | fs/ioctl.c | switch (cmd) { |
cmd | 52 | fs/ioctl.c | return filp->f_op->ioctl(filp->f_inode, filp, cmd,arg); |
cmd | 57 | fs/ioctl.c | int sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) |
cmd | 64 | fs/ioctl.c | switch (cmd) { |
cmd | 92 | fs/ioctl.c | return file_ioctl(filp,cmd,arg); |
cmd | 95 | fs/ioctl.c | return filp->f_op->ioctl(filp->f_inode, filp, cmd,arg); |
cmd | 91 | fs/locks.c | int fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l) |
cmd | 153 | fs/locks.c | if (cmd == F_SETLKW) { |
cmd | 111 | fs/pipe.c | unsigned int cmd, unsigned long arg) |
cmd | 115 | fs/pipe.c | switch (cmd) { |
cmd | 217 | include/linux/tty.h | unsigned int cmd, unsigned long arg); |
cmd | 243 | include/linux/tty.h | unsigned int cmd, unsigned long arg); |
cmd | 379 | include/linux/tty.h | unsigned int cmd, unsigned long arg); |
cmd | 117 | include/linux/xd.h | static int xd_ioctl (struct inode *inode,struct file *file,unsigned int cmd,unsigned long arg); |
cmd | 26 | kernel/blk_drv/blk.h | int cmd; /* READ or WRITE */ |
cmd | 44 | 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 | 1109 | kernel/blk_drv/floppy.c | switch (cmd) { |
cmd | 1122 | kernel/blk_drv/floppy.c | if (cmd == FDDEFPRM) keep_data[drive] = -1; |
cmd | 172 | kernel/blk_drv/hd.c | unsigned int head,unsigned int cyl,unsigned int cmd, |
cmd | 198 | kernel/blk_drv/hd.c | outb_p(cmd,++port); |
cmd | 486 | kernel/blk_drv/hd.c | if (CURRENT->cmd == WRITE) { |
cmd | 499 | kernel/blk_drv/hd.c | if (CURRENT->cmd == READ) { |
cmd | 510 | kernel/blk_drv/hd.c | unsigned int cmd, unsigned long arg) |
cmd | 520 | 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 | 362 | kernel/blk_drv/scsi/aha1542.c | unchar *cmd = (unchar *) SCpnt->cmnd; |
cmd | 375 | kernel/blk_drv/scsi/aha1542.c | if(*cmd == REQUEST_SENSE){ |
cmd | 388 | kernel/blk_drv/scsi/aha1542.c | if (*cmd == READ_10 || *cmd == WRITE_10) |
cmd | 389 | kernel/blk_drv/scsi/aha1542.c | i = xscsi2int(cmd+2); |
cmd | 390 | kernel/blk_drv/scsi/aha1542.c | else if (*cmd == READ_6 || *cmd == WRITE_6) |
cmd | 391 | kernel/blk_drv/scsi/aha1542.c | i = scsi2int(cmd+2); |
cmd | 395 | kernel/blk_drv/scsi/aha1542.c | printk("aha1542_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
cmd | 397 | kernel/blk_drv/scsi/aha1542.c | printk("aha1542_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
cmd | 400 | kernel/blk_drv/scsi/aha1542.c | for (i = 0; i < (COMMAND_SIZE(*cmd)); i++) printk("%02x ", cmd[i]); |
cmd | 402 | kernel/blk_drv/scsi/aha1542.c | if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 434 | kernel/blk_drv/scsi/aha1542.c | ccb[mbo].cdblen = COMMAND_SIZE(*cmd); /* SCSI Command Descriptor Block Length */ |
cmd | 437 | kernel/blk_drv/scsi/aha1542.c | if (*cmd == READ_10 || *cmd == READ_6) |
cmd | 439 | kernel/blk_drv/scsi/aha1542.c | else if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 442 | kernel/blk_drv/scsi/aha1542.c | memcpy(ccb[mbo].cdb, cmd, ccb[mbo].cdblen); |
cmd | 535 | kernel/blk_drv/scsi/aha1542.c | static unchar cmd[5] = {CMD_MBINIT, AHA1542_MAILBOXES}; |
cmd | 542 | kernel/blk_drv/scsi/aha1542.c | any2scsi((cmd+2), mb); |
cmd | 543 | kernel/blk_drv/scsi/aha1542.c | aha1542_out(cmd, 5); |
cmd | 713 | kernel/blk_drv/scsi/aha1542.c | static unchar cmd[] = { READ_CAPACITY, 0, 0, 0, 0, 0, 0, 0, 0, 0}; |
cmd | 718 | kernel/blk_drv/scsi/aha1542.c | if (!aha1542_command(i, cmd, buf, sizeof(buf))) { |
cmd | 728 | kernel/blk_drv/scsi/aha1542.c | unsigned char cmd[10]; |
cmd | 731 | kernel/blk_drv/scsi/aha1542.c | cmd[0] = READ_10; |
cmd | 732 | kernel/blk_drv/scsi/aha1542.c | cmd[1] = 0; |
cmd | 733 | kernel/blk_drv/scsi/aha1542.c | xany2scsi(cmd+2, i); |
cmd | 734 | kernel/blk_drv/scsi/aha1542.c | cmd[6] = 0; |
cmd | 735 | kernel/blk_drv/scsi/aha1542.c | cmd[7] = 0; |
cmd | 736 | kernel/blk_drv/scsi/aha1542.c | cmd[8] = 1; |
cmd | 737 | kernel/blk_drv/scsi/aha1542.c | cmd[9] = 0; |
cmd | 738 | kernel/blk_drv/scsi/aha1542.c | aha1542_command(0, cmd, buffer, 512); |
cmd | 240 | kernel/blk_drv/scsi/aha1740.c | unchar *cmd = (unchar *) SCpnt->cmnd; |
cmd | 248 | kernel/blk_drv/scsi/aha1740.c | if(*cmd == REQUEST_SENSE) |
cmd | 261 | kernel/blk_drv/scsi/aha1740.c | if (*cmd == READ_10 || *cmd == WRITE_10) |
cmd | 262 | kernel/blk_drv/scsi/aha1740.c | i = xscsi2int(cmd+2); |
cmd | 263 | kernel/blk_drv/scsi/aha1740.c | else if (*cmd == READ_6 || *cmd == WRITE_6) |
cmd | 264 | kernel/blk_drv/scsi/aha1740.c | i = scsi2int(cmd+2); |
cmd | 267 | kernel/blk_drv/scsi/aha1740.c | printk("aha1740_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
cmd | 269 | kernel/blk_drv/scsi/aha1740.c | for (i = 0; i < (COMMAND_SIZE(*cmd)); i++) printk("%02x ", cmd[i]); |
cmd | 298 | kernel/blk_drv/scsi/aha1740.c | ecb[ecbno].cdblen = COMMAND_SIZE(*cmd); /* SCSI Command Descriptor Block Length */ |
cmd | 301 | kernel/blk_drv/scsi/aha1740.c | if (*cmd == READ_10 || *cmd == READ_6) |
cmd | 303 | kernel/blk_drv/scsi/aha1740.c | else if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 306 | 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 | 89 | kernel/blk_drv/scsi/scsi_ioctl.c | static int ioctl_internal_command(Scsi_Device *dev, char * cmd) |
cmd | 97 | kernel/blk_drv/scsi/scsi_ioctl.c | scsi_do_cmd(SCpnt, cmd, NULL, 0, |
cmd | 110 | kernel/blk_drv/scsi/scsi_ioctl.c | if(cmd[0] == ALLOW_MEDIUM_REMOVAL) dev->lockable = 0; |
cmd | 147 | kernel/blk_drv/scsi/scsi_ioctl.c | char cmd[12]; |
cmd | 173 | kernel/blk_drv/scsi/scsi_ioctl.c | memcpy_fromfs ((void *) cmd, cmd_in, cmdlen = COMMAND_SIZE (opcode)); |
cmd | 176 | kernel/blk_drv/scsi/scsi_ioctl.c | cmd[1] = ( cmd[1] & 0x1f ) | (dev->lun << 5); |
cmd | 182 | kernel/blk_drv/scsi/scsi_ioctl.c | scsi_do_cmd(SCpnt, cmd, buf, ((outlen > MAX_BUF) ? |
cmd | 206 | kernel/blk_drv/scsi/scsi_ioctl.c | printk("%02x ", cmd[i]); |
cmd | 225 | kernel/blk_drv/scsi/scsi_ioctl.c | int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) |
cmd | 229 | kernel/blk_drv/scsi/scsi_ioctl.c | if ((cmd != 0 && dev->index > NR_SCSI_DEVICES)) |
cmd | 231 | kernel/blk_drv/scsi/scsi_ioctl.c | if ((cmd == 0 && dev->host_no > max_scsi_hosts)) |
cmd | 234 | 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 | 390 | kernel/blk_drv/scsi/sd.c | unsigned char cmd[10]; |
cmd | 429 | kernel/blk_drv/scsi/sd.c | switch (SCpnt->request.cmd) |
cmd | 437 | kernel/blk_drv/scsi/sd.c | cmd[0] = WRITE_6; |
cmd | 440 | kernel/blk_drv/scsi/sd.c | cmd[0] = READ_6; |
cmd | 443 | kernel/blk_drv/scsi/sd.c | printk ("Unknown sd command %d\n", SCpnt->request.cmd); |
cmd | 542 | kernel/blk_drv/scsi/sd.c | if (SCpnt->request.cmd == WRITE) |
cmd | 557 | kernel/blk_drv/scsi/sd.c | if (SCpnt->request.cmd == WRITE) |
cmd | 564 | kernel/blk_drv/scsi/sd.c | (SCpnt->request.cmd == WRITE) ? "writing" : "reading", |
cmd | 568 | kernel/blk_drv/scsi/sd.c | cmd[1] = (SCpnt->lun << 5) & 0xe0; |
cmd | 587 | kernel/blk_drv/scsi/sd.c | cmd[0] += READ_10 - READ_6 ; |
cmd | 588 | kernel/blk_drv/scsi/sd.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
cmd | 589 | kernel/blk_drv/scsi/sd.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
cmd | 590 | kernel/blk_drv/scsi/sd.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
cmd | 591 | kernel/blk_drv/scsi/sd.c | cmd[5] = (unsigned char) block & 0xff; |
cmd | 592 | kernel/blk_drv/scsi/sd.c | cmd[6] = cmd[9] = 0; |
cmd | 593 | kernel/blk_drv/scsi/sd.c | cmd[7] = (unsigned char) (this_count >> 8) & 0xff; |
cmd | 594 | kernel/blk_drv/scsi/sd.c | cmd[8] = (unsigned char) this_count & 0xff; |
cmd | 601 | kernel/blk_drv/scsi/sd.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
cmd | 602 | kernel/blk_drv/scsi/sd.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
cmd | 603 | kernel/blk_drv/scsi/sd.c | cmd[3] = (unsigned char) block & 0xff; |
cmd | 604 | kernel/blk_drv/scsi/sd.c | cmd[4] = (unsigned char) this_count; |
cmd | 605 | kernel/blk_drv/scsi/sd.c | cmd[5] = 0; |
cmd | 617 | kernel/blk_drv/scsi/sd.c | scsi_do_cmd (SCpnt, (void *) cmd, buff, |
cmd | 673 | kernel/blk_drv/scsi/sd.c | unsigned char cmd[10]; |
cmd | 686 | kernel/blk_drv/scsi/sd.c | cmd[0] = READ_CAPACITY; |
cmd | 687 | kernel/blk_drv/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
cmd | 688 | kernel/blk_drv/scsi/sd.c | memset ((void *) &cmd[2], 0, 8); |
cmd | 694 | 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 int cmd, unsigned long arg) |
cmd | 24 | kernel/blk_drv/scsi/sd_ioctl.c | switch (cmd) { |
cmd | 58 | kernel/blk_drv/scsi/sd_ioctl.c | return scsi_ioctl(rscsi_disks[MINOR(dev) >> 4].device , cmd, (void *) arg); |
cmd | 1398 | kernel/blk_drv/scsi/seagate.c | extern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
cmd | 1401 | kernel/blk_drv/scsi/seagate.c | unsigned char buf[256 + sizeof(int) * 2], cmd[6], *data, *page; |
cmd | 1429 | kernel/blk_drv/scsi/seagate.c | cmd[0] = MODE_SENSE; |
cmd | 1430 | kernel/blk_drv/scsi/seagate.c | cmd[1] = (disk->lun << 5) & 0xe5; |
cmd | 1431 | kernel/blk_drv/scsi/seagate.c | cmd[2] = 0x04; /* Read page 4, rigid disk geometry page current values */ |
cmd | 1432 | kernel/blk_drv/scsi/seagate.c | cmd[3] = 0; |
cmd | 1433 | kernel/blk_drv/scsi/seagate.c | cmd[4] = 255; |
cmd | 1434 | kernel/blk_drv/scsi/seagate.c | cmd[5] = 0; |
cmd | 1444 | kernel/blk_drv/scsi/seagate.c | memcpy (data, cmd, 6); |
cmd | 1456 | kernel/blk_drv/scsi/seagate.c | cmd[2] = 0x03; /* Read page 3, format page current values */ |
cmd | 1457 | kernel/blk_drv/scsi/seagate.c | memcpy (data, cmd, 6); |
cmd | 338 | kernel/blk_drv/scsi/sr.c | unsigned char cmd[10], *buffer, tries; |
cmd | 379 | kernel/blk_drv/scsi/sr.c | switch (SCpnt->request.cmd) |
cmd | 386 | kernel/blk_drv/scsi/sr.c | cmd[0] = READ_6; |
cmd | 389 | kernel/blk_drv/scsi/sr.c | printk ("Unknown sr command %d\n", SCpnt->request.cmd); |
cmd | 393 | kernel/blk_drv/scsi/sr.c | cmd[1] = (SCpnt->lun << 5) & 0xe0; |
cmd | 567 | kernel/blk_drv/scsi/sr.c | cmd[0] += READ_10 - READ_6 ; |
cmd | 568 | kernel/blk_drv/scsi/sr.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
cmd | 569 | kernel/blk_drv/scsi/sr.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
cmd | 570 | kernel/blk_drv/scsi/sr.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
cmd | 571 | kernel/blk_drv/scsi/sr.c | cmd[5] = (unsigned char) block & 0xff; |
cmd | 572 | kernel/blk_drv/scsi/sr.c | cmd[6] = cmd[9] = 0; |
cmd | 573 | kernel/blk_drv/scsi/sr.c | cmd[7] = (unsigned char) (realcount >> 8) & 0xff; |
cmd | 574 | kernel/blk_drv/scsi/sr.c | cmd[8] = (unsigned char) realcount & 0xff; |
cmd | 584 | kernel/blk_drv/scsi/sr.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
cmd | 585 | kernel/blk_drv/scsi/sr.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
cmd | 586 | kernel/blk_drv/scsi/sr.c | cmd[3] = (unsigned char) block & 0xff; |
cmd | 587 | kernel/blk_drv/scsi/sr.c | cmd[4] = (unsigned char) realcount; |
cmd | 588 | kernel/blk_drv/scsi/sr.c | cmd[5] = 0; |
cmd | 596 | kernel/blk_drv/scsi/sr.c | scsi_do_cmd (SCpnt, (void *) cmd, buffer, |
cmd | 631 | kernel/blk_drv/scsi/sr.c | unsigned char cmd[10]; |
cmd | 652 | kernel/blk_drv/scsi/sr.c | cmd[0] = READ_CAPACITY; |
cmd | 653 | kernel/blk_drv/scsi/sr.c | cmd[1] = (scsi_CDs[i].device->lun << 5) & 0xe0; |
cmd | 654 | kernel/blk_drv/scsi/sr.c | memset ((void *) &cmd[2], 0, 8); |
cmd | 658 | kernel/blk_drv/scsi/sr.c | (void *) cmd, (void *) buffer, |
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 int cmd, unsigned long arg) |
cmd | 102 | kernel/blk_drv/scsi/sr_ioctl.c | switch (cmd) |
cmd | 353 | 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 | 1126 | kernel/blk_drv/scsi/st.c | else if (cmd == (MTIOCGET & IOCCMD_MASK)) { |
cmd | 1138 | kernel/blk_drv/scsi/st.c | else if (cmd == (MTIOCPOS & IOCCMD_MASK)) { |
cmd | 180 | kernel/blk_drv/xd.c | switch (CURRENT->cmd) { |
cmd | 183 | kernel/blk_drv/xd.c | code = xd_readwrite(CURRENT->cmd,CURRENT_DEV,CURRENT->buffer,block,count); |
cmd | 193 | kernel/blk_drv/xd.c | static int xd_ioctl (struct inode *inode,struct file *file,u_int cmd,u_long arg) |
cmd | 199 | kernel/blk_drv/xd.c | switch (cmd) { |
cmd | 330 | kernel/chr_drv/lp.c | unsigned int cmd, unsigned long arg) |
cmd | 335 | kernel/chr_drv/lp.c | printk("lp%d ioctl, cmd: 0x%x, arg: 0x%x\n", minor, cmd, arg); |
cmd | 341 | kernel/chr_drv/lp.c | switch ( cmd ) { |
cmd | 925 | kernel/chr_drv/serial.c | static int set_modem_info(struct async_struct * info, unsigned int cmd, |
cmd | 933 | kernel/chr_drv/serial.c | switch (cmd) { |
cmd | 973 | kernel/chr_drv/serial.c | unsigned int cmd, unsigned long arg) |
cmd | 983 | kernel/chr_drv/serial.c | switch (cmd) { |
cmd | 1014 | kernel/chr_drv/serial.c | return set_modem_info(info, cmd, (unsigned int *) arg); |
cmd | 185 | kernel/chr_drv/tty_io.c | unsigned int cmd, unsigned long arg) |
cmd | 304 | kernel/chr_drv/tty_ioctl.c | unsigned int cmd, unsigned long arg) |
cmd | 332 | kernel/chr_drv/tty_ioctl.c | switch (cmd) { |
cmd | 516 | kernel/chr_drv/tty_ioctl.c | retval = (tty->ioctl)(tty, file, cmd, arg); |
cmd | 522 | kernel/chr_drv/tty_ioctl.c | (tty, file, cmd, arg); |
cmd | 105 | kernel/chr_drv/vt.c | unsigned int cmd, unsigned long arg) |
cmd | 117 | kernel/chr_drv/vt.c | switch (cmd) { |
cmd | 153 | kernel/chr_drv/vt.c | return sys_ioperm(arg, 1, (cmd == KDADDIO)) ? -ENXIO : 0; |
cmd | 158 | kernel/chr_drv/vt.c | (cmd == KDENABIO)) ? -ENXIO : 0; |
cmd | 60 | net/kern_sock.h | int (*ioctl)(struct socket *sock, unsigned int cmd, unsigned long arg); |
cmd | 75 | net/kern_sock.h | int (*fcntl) (struct socket *sock, unsigned int cmd, |
cmd | 59 | net/socket.c | unsigned int cmd, unsigned long 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 | 827 | net/socket.c | sock_fcntl(struct file *filp, unsigned int cmd, unsigned long arg) |
cmd | 833 | net/socket.c | return (sock->ops->fcntl (sock, cmd, arg)); |
cmd | 143 | net/tcp/sock.c | static int ip_proto_ioctl(struct socket *sock, unsigned int cmd, |
cmd | 165 | net/tcp/sock.c | static int ip_proto_fcntl (struct socket *sock, unsigned int cmd, |
cmd | 670 | net/tcp/sock.c | ip_proto_fcntl (struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 681 | net/tcp/sock.c | switch (cmd) |
cmd | 1634 | net/tcp/sock.c | ip_proto_ioctl (struct socket *sock, unsigned int cmd, |
cmd | 1646 | net/tcp/sock.c | switch (cmd) |
cmd | 1687 | net/tcp/sock.c | return (sk->prot->ioctl (sk, cmd, arg)); |
cmd | 144 | net/tcp/sock.h | int (*ioctl) (volatile struct sock *sk, int cmd, unsigned long arg); |
cmd | 380 | net/tcp/tcp.c | tcp_ioctl (volatile struct sock *sk, int cmd, unsigned long arg) |
cmd | 382 | net/tcp/tcp.c | PRINTK (("tcp_ioctl (sk=%X, cmd = %d, arg=%X)\n", sk, cmd, arg)); |
cmd | 383 | net/tcp/tcp.c | switch (cmd) |
cmd | 473 | net/tcp/udp.c | udp_ioctl (volatile struct sock *sk, int cmd, unsigned long arg) |
cmd | 475 | net/tcp/udp.c | switch (cmd) |
cmd | 130 | net/tcp/we.c | unsigned char cmd; |
cmd | 133 | net/tcp/we.c | cmd = inb_p(WD_COMM); |
cmd | 134 | net/tcp/we.c | cmd &= ~(CSTOP|CPAGE); |
cmd | 135 | net/tcp/we.c | cmd |= CSTART; |
cmd | 136 | net/tcp/we.c | outb_p(cmd, WD_COMM); |
cmd | 145 | net/tcp/we.c | unsigned char cmd; |
cmd | 153 | net/tcp/we.c | cmd=inb_p(WD_COMM); |
cmd | 154 | net/tcp/we.c | cmd|=CSTOP; |
cmd | 155 | net/tcp/we.c | cmd &= ~(CSTART|CPAGE); |
cmd | 156 | net/tcp/we.c | outb_p(cmd, WD_COMM); |
cmd | 173 | net/tcp/we.c | cmd|=1<<CPAGE_SHIFT; |
cmd | 174 | net/tcp/we.c | outb_p(cmd,WD_COMM); |
cmd | 188 | net/tcp/we.c | cmd&=~(CPAGE|CRDMA); |
cmd | 189 | net/tcp/we.c | cmd|= 4<<CRDMA_SHIFT; |
cmd | 190 | net/tcp/we.c | outb_p(cmd, WD_COMM); |
cmd | 216 | net/tcp/we.c | unsigned char cmd; |
cmd | 274 | net/tcp/we.c | cmd=inb_p(WD_COMM); |
cmd | 275 | net/tcp/we.c | cmd &= ~CPAGE; |
cmd | 276 | net/tcp/we.c | outb_p(cmd, WD_COMM); |
cmd | 284 | net/tcp/we.c | cmd |= CTRANS; |
cmd | 285 | net/tcp/we.c | outb_p(cmd,WD_COMM); |
cmd | 302 | net/tcp/we.c | unsigned char cmd; |
cmd | 305 | net/tcp/we.c | cmd = inb_p( CR ); |
cmd | 306 | net/tcp/we.c | if (cmd & 0x40) { |
cmd | 307 | net/tcp/we.c | outb_p(cmd & (~CPAGE1), WD_COMM); /* select page 0 */ |
cmd | 309 | net/tcp/we.c | outb_p(cmd | CPAGE1, WD_COMM); /* reselect page 1 */ |
cmd | 319 | net/tcp/we.c | unsigned char cmd, bnd; |
cmd | 322 | net/tcp/we.c | cmd = inb_p(WD_COMM); |
cmd | 323 | net/tcp/we.c | if (cmd & 0x40) { |
cmd | 324 | net/tcp/we.c | outb_p(cmd & (~CPAGE1), WD_COMM); /* select page 0 */ |
cmd | 326 | net/tcp/we.c | outb_p(cmd | CPAGE1, WD_COMM); /* reselect page 1 */ |
cmd | 337 | net/tcp/we.c | unsigned char cmd, cur; |
cmd | 340 | net/tcp/we.c | cmd = inb_p(WD_COMM); |
cmd | 341 | net/tcp/we.c | if (cmd & 0x40) { |
cmd | 344 | net/tcp/we.c | outb_p(cmd | CPAGE1, WD_COMM); /* select page 1 */ |
cmd | 346 | net/tcp/we.c | outb_p(cmd & (~CPAGE1), WD_COMM); /* reselect page 0 */ |
cmd | 362 | net/tcp/we.c | unsigned char cmd; /* Command register save */ |
cmd | 428 | net/tcp/we.c | cmd = inb_p(WD_COMM); |
cmd | 429 | net/tcp/we.c | if (cmd & 0x40) |
cmd | 431 | net/tcp/we.c | outb_p(cmd & ~(CPAGE1), WD_COMM); /* select page 0 */ |
cmd | 440 | net/tcp/we.c | unsigned char cmd, dummy; |
cmd | 446 | net/tcp/we.c | cmd = inb_p( CR ); /* get current command register */ |
cmd | 447 | net/tcp/we.c | cmd = (cmd&~(STA|PS0|PS1))|STOP; /* toggle start and stop bits, select page 0 */ |
cmd | 448 | net/tcp/we.c | outb_p( cmd, CR ); |
cmd | 457 | net/tcp/we.c | outb_p( (cmd&~STOP)|STA, CR ); /* Start NIC */ |
cmd | 487 | net/tcp/we.c | cmd=inb_p(WD_COMM); |
cmd | 490 | net/tcp/we.c | cmd |= CTRANS; |
cmd | 491 | net/tcp/we.c | outb_p(cmd,WD_COMM); |
cmd | 519 | net/tcp/we.c | unsigned char cmd; |
cmd | 540 | net/tcp/we.c | cmd = inb_p( CR );/* Select page 0 */ |
cmd | 541 | net/tcp/we.c | if( cmd & (PS0|PS1 ) ){ |
cmd | 542 | net/tcp/we.c | cmd &= ~(PS0|PS1); |
cmd | 543 | net/tcp/we.c | outb_p(cmd, CR ); |
cmd | 61 | net/unix.c | static int unix_proto_ioctl(struct socket *sock, unsigned int cmd, |
cmd | 728 | net/unix.c | unix_proto_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 735 | net/unix.c | switch (cmd) { |