tag | line | file | source code |
cmd | 29 | drivers/block/blk.h | int cmd; /* READ or WRITE */ |
cmd | 47 | drivers/block/blk.h | ((s1)->cmd < (s2)->cmd || ((s1)->cmd == (s2)->cmd && \ |
cmd | 303 | drivers/block/cdu31a.c | write_cmd(unsigned char cmd) |
cmd | 305 | drivers/block/cdu31a.c | outb(cmd, sony_cd_cmd_reg); |
cmd | 636 | drivers/block/cdu31a.c | do_sony_cd_cmd(unsigned char cmd, |
cmd | 691 | drivers/block/cdu31a.c | write_cmd(cmd); |
cmd | 884 | drivers/block/cdu31a.c | switch(CURRENT->cmd) |
cmd | 1139 | drivers/block/cdu31a.c | unsigned int cmd, |
cmd | 1159 | drivers/block/cdu31a.c | switch (cmd) |
cmd | 1054 | drivers/block/floppy.c | if (CURRENT->cmd == READ) |
cmd | 1056 | drivers/block/floppy.c | else if (CURRENT->cmd == WRITE) |
cmd | 1108 | drivers/block/floppy.c | static int fd_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, |
cmd | 1114 | drivers/block/floppy.c | switch (cmd) { |
cmd | 1118 | drivers/block/floppy.c | switch (cmd) { |
cmd | 1130 | drivers/block/floppy.c | cmd = FDCLRPRM; |
cmd | 1187 | drivers/block/floppy.c | switch (cmd) { |
cmd | 1200 | drivers/block/floppy.c | if (cmd == FDDEFPRM) |
cmd | 188 | drivers/block/hd.c | unsigned int head,unsigned int cyl,unsigned int cmd, |
cmd | 214 | drivers/block/hd.c | outb_p(cmd,++port); |
cmd | 502 | drivers/block/hd.c | if (CURRENT->cmd == WRITE) { |
cmd | 515 | drivers/block/hd.c | if (CURRENT->cmd == READ) { |
cmd | 526 | drivers/block/hd.c | unsigned int cmd, unsigned long arg) |
cmd | 536 | drivers/block/hd.c | switch (cmd) { |
cmd | 236 | drivers/block/ll_rw_blk.c | req->cmd == rw && |
cmd | 250 | drivers/block/ll_rw_blk.c | req->cmd == rw && |
cmd | 288 | drivers/block/ll_rw_blk.c | req->cmd = rw; |
cmd | 320 | drivers/block/ll_rw_blk.c | req->cmd = rw; |
cmd | 451 | drivers/block/ll_rw_blk.c | req->cmd = rw; |
cmd | 87 | drivers/block/mcd.c | static void sendMcdCmd(int cmd, struct mcd_Play_msf *params); |
cmd | 186 | drivers/block/mcd.c | mcd_ioctl(struct inode *ip, struct file *fp, unsigned int cmd, |
cmd | 215 | drivers/block/mcd.c | switch (cmd) |
cmd | 550 | drivers/block/mcd.c | if (CURRENT -> cmd != READ) |
cmd | 552 | drivers/block/mcd.c | printk("mcd: bad cmd %d\n", CURRENT -> cmd); |
cmd | 939 | drivers/block/mcd.c | sendMcdCmd(int cmd, struct mcd_Play_msf *params) |
cmd | 941 | drivers/block/mcd.c | outb(cmd, MCDPORT(0)); |
cmd | 45 | drivers/block/ramdisk.c | if (CURRENT-> cmd == WRITE) { |
cmd | 49 | drivers/block/ramdisk.c | } else if (CURRENT->cmd == READ) { |
cmd | 188 | drivers/block/xd.c | switch (CURRENT->cmd) { |
cmd | 191 | drivers/block/xd.c | code = xd_readwrite(CURRENT->cmd,CURRENT_DEV,CURRENT->buffer,block,count); |
cmd | 201 | drivers/block/xd.c | static int xd_ioctl (struct inode *inode,struct file *file,u_int cmd,u_long arg) |
cmd | 207 | drivers/block/xd.c | switch (cmd) { |
cmd | 332 | drivers/char/lp.c | unsigned int cmd, unsigned long arg) |
cmd | 338 | drivers/char/lp.c | printk("lp%d ioctl, cmd: 0x%x, arg: 0x%x\n", minor, cmd, arg); |
cmd | 344 | drivers/char/lp.c | switch ( cmd ) { |
cmd | 1174 | drivers/char/serial.c | static int set_modem_info(struct async_struct * info, unsigned int cmd, |
cmd | 1184 | drivers/char/serial.c | switch (cmd) { |
cmd | 1312 | drivers/char/serial.c | unsigned int cmd, unsigned long arg) |
cmd | 1322 | drivers/char/serial.c | switch (cmd) { |
cmd | 1352 | drivers/char/serial.c | return set_modem_info(info, cmd, (unsigned int *) arg); |
cmd | 587 | drivers/char/tpqic02.c | static int notify_cmd(char cmd, short ignore_ex) |
cmd | 591 | drivers/char/tpqic02.c | outb_p(cmd, QIC_CMD_PORT); /* output the command */ |
cmd | 726 | drivers/char/tpqic02.c | static int send_qic02_cmd(int cmd, time_t timeout, int ignore_ex) |
cmd | 745 | drivers/char/tpqic02.c | status_cmd_pending = cmd; |
cmd | 747 | drivers/char/tpqic02.c | stat = notify_cmd(cmd, ignore_ex); /* tell drive new command was loaded, */ |
cmd | 749 | drivers/char/tpqic02.c | if (cmd == QCMDV_SEEK_BLK) { |
cmd | 893 | drivers/char/tpqic02.c | static void finish_rw(int cmd); |
cmd | 994 | drivers/char/tpqic02.c | static int ll_do_qic_cmd(int cmd, time_t timeout) |
cmd | 1011 | drivers/char/tpqic02.c | printk(TPQIC_NAME ": ll_do_qic_cmd(%x, %d) failed\n", cmd, timeout); |
cmd | 1021 | drivers/char/tpqic02.c | stat = send_qic02_cmd(cmd, timeout, 0); /* (checks for exceptions) */ |
cmd | 1023 | drivers/char/tpqic02.c | if (cmd==QCMD_RD_FM) { |
cmd | 1029 | drivers/char/tpqic02.c | } else if (cmd==QCMD_WRT_FM) { |
cmd | 1032 | drivers/char/tpqic02.c | } else if ((cmd==QCMD_REWIND) || (cmd==QCMD_ERASE) || (cmd==QCMD_RETEN)) { |
cmd | 1047 | drivers/char/tpqic02.c | printk(TPQIC_NAME ": Exception persist in ll_do_qic_cmd[1](%x, %d)", cmd, timeout); |
cmd | 1065 | drivers/char/tpqic02.c | if (tp_sense((cmd==QCMD_SEEK_EOD ? /*****************************/ |
cmd | 1068 | drivers/char/tpqic02.c | printk(TPQIC_NAME ": Exception persist in ll_do_qic_cmd[2](%x, %d)\n", cmd, timeout); |
cmd | 1069 | drivers/char/tpqic02.c | if (cmd!=QCMD_RD_FM) |
cmd | 1076 | drivers/char/tpqic02.c | printk(TPQIC_NAME ": ll_do_qic_cmd %x: wait failed, stat == 0x%x\n", cmd, stat); |
cmd | 1108 | drivers/char/tpqic02.c | static void terminate_read(int cmd) |
cmd | 1112 | drivers/char/tpqic02.c | if (cmd != QCMD_RD_FM) { |
cmd | 1129 | drivers/char/tpqic02.c | static void terminate_write(int cmd) |
cmd | 1136 | drivers/char/tpqic02.c | if (cmd != QCMD_WRT_FM) { |
cmd | 1153 | drivers/char/tpqic02.c | static void finish_rw(int cmd) |
cmd | 1159 | drivers/char/tpqic02.c | terminate_read(cmd); |
cmd | 1160 | drivers/char/tpqic02.c | terminate_write(cmd); |
cmd | 1168 | drivers/char/tpqic02.c | static int do_qic_cmd(int cmd, time_t timeout) |
cmd | 1173 | drivers/char/tpqic02.c | finish_rw(cmd); |
cmd | 1183 | drivers/char/tpqic02.c | if (cmd==QCMD_REWIND) /* don't wind beyond BOT ;-) */ |
cmd | 1187 | drivers/char/tpqic02.c | return ll_do_qic_cmd(cmd, timeout); |
cmd | 1195 | drivers/char/tpqic02.c | static int do_ioctl_cmd(int cmd) |
cmd | 1205 | drivers/char/tpqic02.c | switch (cmd) { |
cmd | 199 | drivers/char/tty_io.c | unsigned int cmd, unsigned long arg) |
cmd | 410 | drivers/char/tty_ioctl.c | unsigned int cmd, unsigned long arg) |
cmd | 438 | drivers/char/tty_ioctl.c | switch (cmd) { |
cmd | 635 | drivers/char/tty_ioctl.c | tty->ioctl(tty, file, cmd, arg); |
cmd | 639 | drivers/char/tty_ioctl.c | retval = (tty->ioctl)(tty, file, cmd, arg); |
cmd | 645 | drivers/char/tty_ioctl.c | (tty, file, cmd, arg); |
cmd | 106 | drivers/char/vt.c | unsigned int cmd, unsigned long arg) |
cmd | 118 | drivers/char/vt.c | switch (cmd) { |
cmd | 154 | drivers/char/vt.c | return sys_ioperm(arg, 1, (cmd == KDADDIO)) ? -ENXIO : 0; |
cmd | 159 | drivers/char/vt.c | (cmd == KDENABIO)) ? -ENXIO : 0; |
cmd | 266 | drivers/net/d_link.c | #define d_link_put_command(cmd) ( \ |
cmd | 269 | drivers/net/d_link.c | outb_p(((rx_page | cmd) << 4) | COMMAND , DATA_PORT), \ |
cmd | 270 | drivers/net/d_link.c | outb_p(((rx_page | cmd) & 0xf0) | COMMAND | HI_NIBBLE, DATA_PORT)) |
cmd | 1059 | drivers/net/slip.c | slip_ioctl(struct tty_struct *tty, void *file, int cmd, void *arg) |
cmd | 1070 | drivers/net/slip.c | DPRINTF((DBG_SLIP, "SLIP: ioctl(%d, 0x%X, 0x%X)\n", tty->line, cmd, arg)); |
cmd | 1071 | drivers/net/slip.c | switch(cmd) { |
cmd | 252 | drivers/scsi/NCR5380.c | static __inline__ void initialize_SCp(Scsi_Cmnd *cmd) { |
cmd | 258 | drivers/scsi/NCR5380.c | if (cmd->use_sg) { |
cmd | 259 | drivers/scsi/NCR5380.c | cmd->SCp.buffer = (struct scatterlist *) cmd->buffer; |
cmd | 260 | drivers/scsi/NCR5380.c | cmd->SCp.buffers_residual = cmd->use_sg - 1; |
cmd | 261 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = (char *) cmd->SCp.buffer->address; |
cmd | 262 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = cmd->SCp.buffer->length; |
cmd | 264 | drivers/scsi/NCR5380.c | cmd->SCp.buffer = NULL; |
cmd | 265 | drivers/scsi/NCR5380.c | cmd->SCp.buffers_residual = 0; |
cmd | 266 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = (char *) cmd->request_buffer; |
cmd | 267 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = cmd->request_bufflen; |
cmd | 452 | drivers/scsi/NCR5380.c | static int should_disconnect (unsigned char cmd) { |
cmd | 453 | drivers/scsi/NCR5380.c | switch (cmd) { |
cmd | 730 | drivers/scsi/NCR5380.c | int NCR5380_queue_command (Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *)) { |
cmd | 732 | drivers/scsi/NCR5380.c | cmd->host->hostdata; |
cmd | 736 | drivers/scsi/NCR5380.c | switch (cmd->cmnd[0]) { |
cmd | 741 | drivers/scsi/NCR5380.c | cmd->result = (DID_ERROR << 16); |
cmd | 742 | drivers/scsi/NCR5380.c | done(cmd); |
cmd | 753 | drivers/scsi/NCR5380.c | cmd->host_scribble = NULL; |
cmd | 754 | drivers/scsi/NCR5380.c | cmd->scsi_done = done; |
cmd | 756 | drivers/scsi/NCR5380.c | cmd->result = 0; |
cmd | 767 | drivers/scsi/NCR5380.c | if (!(hostdata->issue_queue) || (cmd->cmnd[0] == REQUEST_SENSE)) { |
cmd | 768 | drivers/scsi/NCR5380.c | cmd->host_scribble = (unsigned char *) hostdata->issue_queue; |
cmd | 769 | drivers/scsi/NCR5380.c | hostdata->issue_queue = cmd; |
cmd | 773 | drivers/scsi/NCR5380.c | tmp->host_scribble = (unsigned char *) cmd; |
cmd | 777 | drivers/scsi/NCR5380.c | (cmd->cmnd[0] == REQUEST_SENSE) ? "head" : "tail"); |
cmd | 1002 | drivers/scsi/NCR5380.c | static int NCR5380_select (struct Scsi_Host *instance, Scsi_Cmnd *cmd, |
cmd | 1088 | drivers/scsi/NCR5380.c | NCR5380_write(OUTPUT_DATA_REG, (hostdata->id_mask | (1 << cmd->target))); |
cmd | 1127 | drivers/scsi/NCR5380.c | printk("scsi%d : selecting target %d\n", instance->host_no, cmd->target); |
cmd | 1149 | drivers/scsi/NCR5380.c | cmd->result = DID_BAD_TARGET << 16; |
cmd | 1150 | drivers/scsi/NCR5380.c | cmd->scsi_done(cmd); |
cmd | 1179 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target); |
cmd | 1181 | drivers/scsi/NCR5380.c | tmp[0] = IDENTIFY(((instance->irq == IRQ_NONE) ? 0 : 1), cmd->lun); |
cmd | 1183 | drivers/scsi/NCR5380.c | if (scsi_devices[cmd->index].tagged_queue && (tag != TAG_NONE)) { |
cmd | 1187 | drivers/scsi/NCR5380.c | if (scsi_devices[cmd->index].current_tag == 0) |
cmd | 1188 | drivers/scsi/NCR5380.c | scsi_devices[cmd->index].current_tag = 1; |
cmd | 1190 | drivers/scsi/NCR5380.c | cmd->tag = scsi_devices[cmd->index].current_tag; |
cmd | 1191 | drivers/scsi/NCR5380.c | scsi_devices[cmd->index].current_tag++; |
cmd | 1193 | drivers/scsi/NCR5380.c | cmd->tag = (unsigned char) tag; |
cmd | 1195 | drivers/scsi/NCR5380.c | tmp[2] = cmd->tag; |
cmd | 1202 | drivers/scsi/NCR5380.c | cmd->tag=0; |
cmd | 1213 | drivers/scsi/NCR5380.c | hostdata->connected = cmd; |
cmd | 1215 | drivers/scsi/NCR5380.c | if (!scsi_devices[cmd->index].tagged_queue) |
cmd | 1217 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] |= (1 << cmd->lun); |
cmd | 1219 | drivers/scsi/NCR5380.c | initialize_SCp(cmd); |
cmd | 1467 | drivers/scsi/NCR5380.c | Scsi_Cmnd *cmd = (Scsi_Cmnd *) hostdata->connected; |
cmd | 1496 | drivers/scsi/NCR5380.c | if (!cmd->SCp.this_residual && cmd->SCp.buffers_residual) { |
cmd | 1497 | drivers/scsi/NCR5380.c | ++cmd->SCp.buffer; |
cmd | 1498 | drivers/scsi/NCR5380.c | --cmd->SCp.buffers_residual; |
cmd | 1499 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = cmd->SCp.buffer->length; |
cmd | 1500 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = cmd->SCp.buffer->address; |
cmd | 1503 | drivers/scsi/NCR5380.c | instance->host_no, cmd->SCp.this_residual, |
cmd | 1504 | drivers/scsi/NCR5380.c | cmd->SCp.buffers_residual); |
cmd | 1519 | drivers/scsi/NCR5380.c | if (!scsi_devices[cmd->index].borken && cmd->transfersize && |
cmd | 1520 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual && !(cmd->SCp.this_residual % |
cmd | 1521 | drivers/scsi/NCR5380.c | cmd->transfersize)) { |
cmd | 1522 | drivers/scsi/NCR5380.c | len = cmd->transfersize; |
cmd | 1524 | drivers/scsi/NCR5380.c | &len, (unsigned char **) &cmd->SCp.ptr)) { |
cmd | 1530 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
cmd | 1531 | drivers/scsi/NCR5380.c | scsi_devices[cmd->index].borken = 1; |
cmd | 1536 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual -= cmd->transfersize; |
cmd | 1540 | drivers/scsi/NCR5380.c | (int *) &cmd->SCp.this_residual, (unsigned char **) |
cmd | 1541 | drivers/scsi/NCR5380.c | &cmd->SCp.ptr); |
cmd | 1554 | drivers/scsi/NCR5380.c | cmd->SCp.Message = tmp; |
cmd | 1572 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
cmd | 1580 | drivers/scsi/NCR5380.c | if (!cmd->next_link) { |
cmd | 1582 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
cmd | 1589 | drivers/scsi/NCR5380.c | initialize_SCp(cmd->next_link); |
cmd | 1591 | drivers/scsi/NCR5380.c | cmd->next_link->tag = cmd->tag; |
cmd | 1592 | drivers/scsi/NCR5380.c | cmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); |
cmd | 1595 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
cmd | 1597 | drivers/scsi/NCR5380.c | cmd->scsi_done(cmd); |
cmd | 1598 | drivers/scsi/NCR5380.c | cmd = hostdata->connected; |
cmd | 1606 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
cmd | 1608 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] &= ~(1 << cmd->lun); |
cmd | 1615 | drivers/scsi/NCR5380.c | if (cmd->cmnd[0] != REQUEST_SENSE) |
cmd | 1616 | drivers/scsi/NCR5380.c | cmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); |
cmd | 1617 | drivers/scsi/NCR5380.c | else if (cmd->SCp.Status != GOOD) |
cmd | 1618 | drivers/scsi/NCR5380.c | cmd->result = (cmd->result & 0x00ffff) | (DID_ERROR << 16); |
cmd | 1620 | drivers/scsi/NCR5380.c | if ((cmd->cmnd[0] != REQUEST_SENSE) && |
cmd | 1621 | drivers/scsi/NCR5380.c | (cmd->SCp.Status == CHECK_CONDITION)) { |
cmd | 1626 | drivers/scsi/NCR5380.c | cmd->cmnd[0] = REQUEST_SENSE; |
cmd | 1627 | drivers/scsi/NCR5380.c | cmd->cmnd[1] &= 0xe0; |
cmd | 1628 | drivers/scsi/NCR5380.c | cmd->cmnd[2] = 0; |
cmd | 1629 | drivers/scsi/NCR5380.c | cmd->cmnd[3] = 0; |
cmd | 1630 | drivers/scsi/NCR5380.c | cmd->cmnd[4] = sizeof(cmd->sense_buffer); |
cmd | 1631 | drivers/scsi/NCR5380.c | cmd->cmnd[5] = 0; |
cmd | 1633 | drivers/scsi/NCR5380.c | cmd->SCp.buffer = NULL; |
cmd | 1634 | drivers/scsi/NCR5380.c | cmd->SCp.buffers_residual = 0; |
cmd | 1635 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = (char *) cmd->sense_buffer; |
cmd | 1636 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = sizeof(cmd->sense_buffer); |
cmd | 1639 | drivers/scsi/NCR5380.c | cmd->host_scribble = (unsigned char *) |
cmd | 1641 | drivers/scsi/NCR5380.c | hostdata->issue_queue = (Scsi_Cmnd *) cmd; |
cmd | 1648 | drivers/scsi/NCR5380.c | cmd->scsi_done(cmd); |
cmd | 1657 | drivers/scsi/NCR5380.c | scsi_devices[cmd->index].tagged_queue = 0; |
cmd | 1658 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] |= (1 << cmd->lun); |
cmd | 1664 | drivers/scsi/NCR5380.c | scsi_devices[cmd->index].disconnect = 1; |
cmd | 1666 | drivers/scsi/NCR5380.c | cmd->host_scribble = (unsigned char *) |
cmd | 1669 | drivers/scsi/NCR5380.c | hostdata->disconnected_queue = cmd; |
cmd | 1674 | drivers/scsi/NCR5380.c | cmd->target, cmd->lun); |
cmd | 1717 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] &= ~(1 << cmd->lun); |
cmd | 1719 | drivers/scsi/NCR5380.c | cmd->result = DID_ERROR << 16; |
cmd | 1720 | drivers/scsi/NCR5380.c | cmd->scsi_done(cmd); |
cmd | 1727 | drivers/scsi/NCR5380.c | len = COMMAND_SIZE(cmd->cmnd[0]); |
cmd | 1728 | drivers/scsi/NCR5380.c | data = cmd->cmnd; |
cmd | 1737 | drivers/scsi/NCR5380.c | if (!disconnect && should_disconnect(cmd->cmnd[0])) { |
cmd | 1752 | drivers/scsi/NCR5380.c | cmd->SCp.Status = tmp; |
cmd | 1912 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun, cmd->tag); |
cmd | 1985 | drivers/scsi/NCR5380.c | int NCR5380_abort (Scsi_Cmnd *cmd, int code) { |
cmd | 1987 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance = cmd->host; |
cmd | 2008 | drivers/scsi/NCR5380.c | if (cmd == tmp) { |
cmd | 2067 | drivers/scsi/NCR5380.c | if (cmd == tmp) { |
cmd | 2073 | drivers/scsi/NCR5380.c | if (NCR5380_select (instance, cmd, (int) cmd->tag)) |
cmd | 2092 | drivers/scsi/NCR5380.c | if (cmd == tmp) { |
cmd | 235 | drivers/scsi/NCR5380.h | int NCR5380_abort (Scsi_Cmnd *cmd, int code); |
cmd | 243 | drivers/scsi/NCR5380.h | int NCR5380_queue_command (Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *)); |
cmd | 247 | drivers/scsi/NCR5380.h | static int NCR5380_select (struct Scsi_Host *instance, Scsi_Cmnd *cmd, int tag); |
cmd | 390 | drivers/scsi/aha1542.c | unchar *cmd = (unchar *) SCpnt->cmnd; |
cmd | 408 | drivers/scsi/aha1542.c | if(*cmd == REQUEST_SENSE){ |
cmd | 421 | drivers/scsi/aha1542.c | if (*cmd == READ_10 || *cmd == WRITE_10) |
cmd | 422 | drivers/scsi/aha1542.c | i = xscsi2int(cmd+2); |
cmd | 423 | drivers/scsi/aha1542.c | else if (*cmd == READ_6 || *cmd == WRITE_6) |
cmd | 424 | drivers/scsi/aha1542.c | i = scsi2int(cmd+2); |
cmd | 428 | drivers/scsi/aha1542.c | printk("aha1542_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
cmd | 430 | drivers/scsi/aha1542.c | printk("aha1542_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
cmd | 433 | drivers/scsi/aha1542.c | for (i = 0; i < (COMMAND_SIZE(*cmd)); i++) printk("%02x ", cmd[i]); |
cmd | 435 | drivers/scsi/aha1542.c | if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 469 | drivers/scsi/aha1542.c | ccb[mbo].cdblen = COMMAND_SIZE(*cmd); /* SCSI Command Descriptor Block Length */ |
cmd | 472 | drivers/scsi/aha1542.c | if (*cmd == READ_10 || *cmd == READ_6) |
cmd | 474 | drivers/scsi/aha1542.c | else if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 477 | drivers/scsi/aha1542.c | memcpy(ccb[mbo].cdb, cmd, ccb[mbo].cdblen); |
cmd | 574 | drivers/scsi/aha1542.c | unchar cmd[5] = {CMD_MBINIT, AHA1542_MAILBOXES}; |
cmd | 584 | drivers/scsi/aha1542.c | any2scsi((cmd+2), mb); |
cmd | 585 | drivers/scsi/aha1542.c | aha1542_out(bse, cmd, 5); |
cmd | 776 | drivers/scsi/aha1542.c | static unchar cmd[] = { READ_CAPACITY, 0, 0, 0, 0, 0, 0, 0, 0, 0}; |
cmd | 781 | drivers/scsi/aha1542.c | if (!aha1542_command(i, cmd, buf, sizeof(buf))) { |
cmd | 791 | drivers/scsi/aha1542.c | unsigned char cmd[10]; |
cmd | 794 | drivers/scsi/aha1542.c | cmd[0] = READ_10; |
cmd | 795 | drivers/scsi/aha1542.c | cmd[1] = 0; |
cmd | 796 | drivers/scsi/aha1542.c | xany2scsi(cmd+2, i); |
cmd | 797 | drivers/scsi/aha1542.c | cmd[6] = 0; |
cmd | 798 | drivers/scsi/aha1542.c | cmd[7] = 0; |
cmd | 799 | drivers/scsi/aha1542.c | cmd[8] = 1; |
cmd | 800 | drivers/scsi/aha1542.c | cmd[9] = 0; |
cmd | 801 | drivers/scsi/aha1542.c | aha1542_command(0, cmd, buffer, 512); |
cmd | 241 | drivers/scsi/aha1740.c | unchar *cmd = (unchar *) SCpnt->cmnd; |
cmd | 249 | drivers/scsi/aha1740.c | if(*cmd == REQUEST_SENSE) |
cmd | 262 | drivers/scsi/aha1740.c | if (*cmd == READ_10 || *cmd == WRITE_10) |
cmd | 263 | drivers/scsi/aha1740.c | i = xscsi2int(cmd+2); |
cmd | 264 | drivers/scsi/aha1740.c | else if (*cmd == READ_6 || *cmd == WRITE_6) |
cmd | 265 | drivers/scsi/aha1740.c | i = scsi2int(cmd+2); |
cmd | 268 | drivers/scsi/aha1740.c | printk("aha1740_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
cmd | 270 | drivers/scsi/aha1740.c | for (i = 0; i < (COMMAND_SIZE(*cmd)); i++) printk("%02x ", cmd[i]); |
cmd | 299 | drivers/scsi/aha1740.c | ecb[ecbno].cdblen = COMMAND_SIZE(*cmd); /* SCSI Command Descriptor Block Length */ |
cmd | 302 | drivers/scsi/aha1740.c | if (*cmd == READ_10 || *cmd == READ_6) |
cmd | 304 | drivers/scsi/aha1740.c | else if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 307 | drivers/scsi/aha1740.c | memcpy(ecb[ecbno].cdb, cmd, ecb[ecbno].cdblen); |
cmd | 72 | drivers/scsi/scsi_debug.c | if (SCpnt->request.cmd != RW) panic ("Wrong operation"); \ |
cmd | 139 | drivers/scsi/scsi_debug.c | unchar *cmd = (unchar *) SCpnt->cmnd; |
cmd | 163 | drivers/scsi/scsi_debug.c | switch(*cmd){ |
cmd | 180 | drivers/scsi/scsi_debug.c | if(cmd[4]) printk("Medium removal inhibited..."); |
cmd | 217 | drivers/scsi/scsi_debug.c | if ((*cmd) == READ_10) |
cmd | 218 | drivers/scsi/scsi_debug.c | block = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); |
cmd | 220 | drivers/scsi/scsi_debug.c | block = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16); |
cmd | 275 | drivers/scsi/scsi_debug.c | memcpy(buff+sizeof(target), cmd, 24); |
cmd | 299 | drivers/scsi/scsi_debug.c | if ((*cmd) == WRITE_10) |
cmd | 300 | drivers/scsi/scsi_debug.c | block = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); |
cmd | 302 | drivers/scsi/scsi_debug.c | block = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16); |
cmd | 321 | drivers/scsi/scsi_debug.c | printk("Unknown command %d\n",*cmd); |
cmd | 89 | drivers/scsi/scsi_ioctl.c | static int ioctl_internal_command(Scsi_Device *dev, char * cmd) |
cmd | 95 | drivers/scsi/scsi_ioctl.c | scsi_do_cmd(SCpnt, cmd, NULL, 0, |
cmd | 108 | drivers/scsi/scsi_ioctl.c | if(cmd[0] == ALLOW_MEDIUM_REMOVAL) dev->lockable = 0; |
cmd | 145 | drivers/scsi/scsi_ioctl.c | char cmd[12]; |
cmd | 171 | drivers/scsi/scsi_ioctl.c | memcpy_fromfs ((void *) cmd, cmd_in, cmdlen = COMMAND_SIZE (opcode)); |
cmd | 174 | drivers/scsi/scsi_ioctl.c | cmd[1] = ( cmd[1] & 0x1f ) | (dev->lun << 5); |
cmd | 180 | drivers/scsi/scsi_ioctl.c | scsi_do_cmd(SCpnt, cmd, buf, needed, scsi_ioctl_done, MAX_TIMEOUT, |
cmd | 213 | drivers/scsi/scsi_ioctl.c | printk("%02x ", cmd[i]); |
cmd | 233 | drivers/scsi/scsi_ioctl.c | int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) |
cmd | 237 | drivers/scsi/scsi_ioctl.c | if ((cmd != 0 && dev->index > NR_SCSI_DEVICES)) |
cmd | 240 | drivers/scsi/scsi_ioctl.c | switch (cmd) { |
cmd | 296 | drivers/scsi/scsi_ioctl.c | int kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) { |
cmd | 301 | drivers/scsi/scsi_ioctl.c | tmp = scsi_ioctl (dev, cmd, arg); |
cmd | 15 | drivers/scsi/scsi_ioctl.h | extern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
cmd | 16 | drivers/scsi/scsi_ioctl.h | extern int kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
cmd | 168 | drivers/scsi/sd.c | if (SCpnt->request.cmd == READ) |
cmd | 180 | drivers/scsi/sd.c | if (SCpnt->request.cmd == READ) |
cmd | 383 | drivers/scsi/sd.c | unsigned char cmd[10]; |
cmd | 424 | drivers/scsi/sd.c | switch (SCpnt->request.cmd) |
cmd | 432 | drivers/scsi/sd.c | cmd[0] = WRITE_6; |
cmd | 435 | drivers/scsi/sd.c | cmd[0] = READ_6; |
cmd | 438 | drivers/scsi/sd.c | panic ("Unknown sd command %d\n", SCpnt->request.cmd); |
cmd | 536 | drivers/scsi/sd.c | if (SCpnt->request.cmd == WRITE) |
cmd | 551 | drivers/scsi/sd.c | if (SCpnt->request.cmd == WRITE) |
cmd | 558 | drivers/scsi/sd.c | (SCpnt->request.cmd == WRITE) ? "writing" : "reading", |
cmd | 562 | drivers/scsi/sd.c | cmd[1] = (SCpnt->lun << 5) & 0xe0; |
cmd | 581 | drivers/scsi/sd.c | cmd[0] += READ_10 - READ_6 ; |
cmd | 582 | drivers/scsi/sd.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
cmd | 583 | drivers/scsi/sd.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
cmd | 584 | drivers/scsi/sd.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
cmd | 585 | drivers/scsi/sd.c | cmd[5] = (unsigned char) block & 0xff; |
cmd | 586 | drivers/scsi/sd.c | cmd[6] = cmd[9] = 0; |
cmd | 587 | drivers/scsi/sd.c | cmd[7] = (unsigned char) (this_count >> 8) & 0xff; |
cmd | 588 | drivers/scsi/sd.c | cmd[8] = (unsigned char) this_count & 0xff; |
cmd | 595 | drivers/scsi/sd.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
cmd | 596 | drivers/scsi/sd.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
cmd | 597 | drivers/scsi/sd.c | cmd[3] = (unsigned char) block & 0xff; |
cmd | 598 | drivers/scsi/sd.c | cmd[4] = (unsigned char) this_count; |
cmd | 599 | drivers/scsi/sd.c | cmd[5] = 0; |
cmd | 611 | drivers/scsi/sd.c | scsi_do_cmd (SCpnt, (void *) cmd, buff, |
cmd | 667 | drivers/scsi/sd.c | unsigned char cmd[10]; |
cmd | 685 | drivers/scsi/sd.c | cmd[0] = TEST_UNIT_READY; |
cmd | 686 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
cmd | 687 | drivers/scsi/sd.c | memset ((void *) &cmd[2], 0, 8); |
cmd | 693 | drivers/scsi/sd.c | (void *) cmd, (void *) buffer, |
cmd | 708 | drivers/scsi/sd.c | cmd[0] = START_STOP; |
cmd | 709 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
cmd | 710 | drivers/scsi/sd.c | cmd[1] |= 1; /* Return immediately */ |
cmd | 711 | drivers/scsi/sd.c | memset ((void *) &cmd[2], 0, 8); |
cmd | 712 | drivers/scsi/sd.c | cmd[4] = 1; /* Start spin cycle */ |
cmd | 718 | drivers/scsi/sd.c | (void *) cmd, (void *) buffer, |
cmd | 743 | drivers/scsi/sd.c | cmd[0] = READ_CAPACITY; |
cmd | 744 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
cmd | 745 | drivers/scsi/sd.c | memset ((void *) &cmd[2], 0, 8); |
cmd | 752 | drivers/scsi/sd.c | (void *) cmd, (void *) buffer, |
cmd | 17 | drivers/scsi/sd_ioctl.c | int sd_ioctl(struct inode * inode, struct file * file, unsigned int cmd, unsigned long arg) |
cmd | 25 | drivers/scsi/sd_ioctl.c | switch (cmd) { |
cmd | 66 | drivers/scsi/sd_ioctl.c | return scsi_ioctl(rscsi_disks[MINOR(dev) >> 4].device , cmd, (void *) arg); |
cmd | 1604 | drivers/scsi/seagate.c | unsigned char buf[256 + sizeof(int) * 2], cmd[6], *data, *page; |
cmd | 1623 | drivers/scsi/seagate.c | cmd[0] = MODE_SENSE; |
cmd | 1624 | drivers/scsi/seagate.c | cmd[1] = (disk->lun << 5) & 0xe5; |
cmd | 1625 | drivers/scsi/seagate.c | cmd[2] = 0x04; /* Read page 4, rigid disk geometry page current values */ |
cmd | 1626 | drivers/scsi/seagate.c | cmd[3] = 0; |
cmd | 1627 | drivers/scsi/seagate.c | cmd[4] = 255; |
cmd | 1628 | drivers/scsi/seagate.c | cmd[5] = 0; |
cmd | 1638 | drivers/scsi/seagate.c | memcpy (data, cmd, 6); |
cmd | 1650 | drivers/scsi/seagate.c | cmd[2] = 0x03; /* Read page 3, format page current values */ |
cmd | 1651 | drivers/scsi/seagate.c | memcpy (data, cmd, 6); |
cmd | 344 | drivers/scsi/sr.c | unsigned char cmd[10], *buffer, tries; |
cmd | 387 | drivers/scsi/sr.c | switch (SCpnt->request.cmd) |
cmd | 394 | drivers/scsi/sr.c | cmd[0] = READ_6; |
cmd | 397 | drivers/scsi/sr.c | panic ("Unknown sr command %d\n", SCpnt->request.cmd); |
cmd | 400 | drivers/scsi/sr.c | cmd[1] = (SCpnt->lun << 5) & 0xe0; |
cmd | 574 | drivers/scsi/sr.c | cmd[0] += READ_10 - READ_6 ; |
cmd | 575 | drivers/scsi/sr.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
cmd | 576 | drivers/scsi/sr.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
cmd | 577 | drivers/scsi/sr.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
cmd | 578 | drivers/scsi/sr.c | cmd[5] = (unsigned char) block & 0xff; |
cmd | 579 | drivers/scsi/sr.c | cmd[6] = cmd[9] = 0; |
cmd | 580 | drivers/scsi/sr.c | cmd[7] = (unsigned char) (realcount >> 8) & 0xff; |
cmd | 581 | drivers/scsi/sr.c | cmd[8] = (unsigned char) realcount & 0xff; |
cmd | 591 | drivers/scsi/sr.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
cmd | 592 | drivers/scsi/sr.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
cmd | 593 | drivers/scsi/sr.c | cmd[3] = (unsigned char) block & 0xff; |
cmd | 594 | drivers/scsi/sr.c | cmd[4] = (unsigned char) realcount; |
cmd | 595 | drivers/scsi/sr.c | cmd[5] = 0; |
cmd | 604 | drivers/scsi/sr.c | for(i=0; i<12; i++) printk("%2.2x ", cmd[i]); |
cmd | 610 | drivers/scsi/sr.c | scsi_do_cmd (SCpnt, (void *) cmd, buffer, |
cmd | 643 | drivers/scsi/sr.c | unsigned char cmd[10]; |
cmd | 652 | drivers/scsi/sr.c | cmd[0] = READ_CAPACITY; |
cmd | 653 | drivers/scsi/sr.c | cmd[1] = (scsi_CDs[i].device->lun << 5) & 0xe0; |
cmd | 654 | drivers/scsi/sr.c | memset ((void *) &cmd[2], 0, 8); |
cmd | 658 | drivers/scsi/sr.c | (void *) cmd, (void *) buffer, |
cmd | 19 | drivers/scsi/sr_ioctl.c | extern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
cmd | 93 | drivers/scsi/sr_ioctl.c | int sr_ioctl(struct inode * inode, struct file * file, unsigned int cmd, unsigned long arg) |
cmd | 103 | drivers/scsi/sr_ioctl.c | switch (cmd) |
cmd | 383 | drivers/scsi/sr_ioctl.c | return scsi_ioctl(scsi_CDs[target].device,cmd,(void *) arg); |
cmd | 179 | drivers/scsi/st.c | unsigned char cmd[10]; |
cmd | 208 | drivers/scsi/st.c | memset(cmd, 0, 10); |
cmd | 209 | drivers/scsi/st.c | cmd[0] = WRITE_6; |
cmd | 210 | drivers/scsi/st.c | cmd[1] = 1; |
cmd | 212 | drivers/scsi/st.c | cmd[2] = blks >> 16; |
cmd | 213 | drivers/scsi/st.c | cmd[3] = blks >> 8; |
cmd | 214 | drivers/scsi/st.c | cmd[4] = blks; |
cmd | 217 | drivers/scsi/st.c | (void *) cmd, scsi_tapes[dev].buffer->b_data, transfer, |
cmd | 280 | drivers/scsi/st.c | unsigned char cmd[10]; |
cmd | 319 | drivers/scsi/st.c | memset ((void *) &cmd[0], 0, 10); |
cmd | 320 | drivers/scsi/st.c | cmd[0] = TEST_UNIT_READY; |
cmd | 323 | drivers/scsi/st.c | (void *) cmd, (void *) scsi_tapes[dev].buffer->b_data, |
cmd | 335 | drivers/scsi/st.c | memset ((void *) &cmd[0], 0, 10); |
cmd | 336 | drivers/scsi/st.c | cmd[0] = TEST_UNIT_READY; |
cmd | 339 | drivers/scsi/st.c | (void *) cmd, (void *) scsi_tapes[dev].buffer->b_data, |
cmd | 362 | drivers/scsi/st.c | memset ((void *) &cmd[0], 0, 10); |
cmd | 363 | drivers/scsi/st.c | cmd[0] = READ_BLOCK_LIMITS; |
cmd | 366 | drivers/scsi/st.c | (void *) cmd, (void *) scsi_tapes[dev].buffer->b_data, |
cmd | 389 | drivers/scsi/st.c | memset ((void *) &cmd[0], 0, 10); |
cmd | 390 | drivers/scsi/st.c | cmd[0] = MODE_SENSE; |
cmd | 391 | drivers/scsi/st.c | cmd[4] = 12; |
cmd | 394 | drivers/scsi/st.c | (void *) cmd, (void *) scsi_tapes[dev].buffer->b_data, |
cmd | 476 | drivers/scsi/st.c | static unsigned char cmd[10]; |
cmd | 495 | drivers/scsi/st.c | memset(cmd, 0, 10); |
cmd | 496 | drivers/scsi/st.c | cmd[0] = WRITE_FILEMARKS; |
cmd | 497 | drivers/scsi/st.c | cmd[4] = 1; |
cmd | 500 | drivers/scsi/st.c | (void *) cmd, (void *) scsi_tapes[dev].buffer->b_data, |
cmd | 541 | drivers/scsi/st.c | static unsigned char cmd[10]; |
cmd | 587 | drivers/scsi/st.c | memset(cmd, 0, 10); |
cmd | 588 | drivers/scsi/st.c | cmd[0] = WRITE_6; |
cmd | 589 | drivers/scsi/st.c | cmd[1] = (scsi_tapes[dev].block_size != 0); |
cmd | 617 | drivers/scsi/st.c | cmd[2] = blks >> 16; |
cmd | 618 | drivers/scsi/st.c | cmd[3] = blks >> 8; |
cmd | 619 | drivers/scsi/st.c | cmd[4] = blks; |
cmd | 623 | drivers/scsi/st.c | (void *) cmd, scsi_tapes[dev].buffer->b_data, |
cmd | 681 | drivers/scsi/st.c | cmd[2] = blks >> 16; |
cmd | 682 | drivers/scsi/st.c | cmd[3] = blks >> 8; |
cmd | 683 | drivers/scsi/st.c | cmd[4] = blks; |
cmd | 688 | drivers/scsi/st.c | (void *) cmd, scsi_tapes[dev].buffer->b_data, |
cmd | 706 | drivers/scsi/st.c | static unsigned char cmd[10]; |
cmd | 745 | drivers/scsi/st.c | memset(cmd, 0, 10); |
cmd | 746 | drivers/scsi/st.c | cmd[0] = READ_6; |
cmd | 747 | drivers/scsi/st.c | cmd[1] = (scsi_tapes[dev].block_size != 0); |
cmd | 754 | drivers/scsi/st.c | cmd[2] = blks >> 16; |
cmd | 755 | drivers/scsi/st.c | cmd[3] = blks >> 8; |
cmd | 756 | drivers/scsi/st.c | cmd[4] = blks; |
cmd | 761 | drivers/scsi/st.c | (void *) cmd, scsi_tapes[dev].buffer->b_data, |
cmd | 892 | drivers/scsi/st.c | unsigned char cmd[10]; |
cmd | 897 | drivers/scsi/st.c | memset(cmd, 0, 10); |
cmd | 901 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 902 | drivers/scsi/st.c | cmd[1] = 0x01; /* Space FileMarks */ |
cmd | 903 | drivers/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 904 | drivers/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 905 | drivers/scsi/st.c | cmd[4] = arg; |
cmd | 908 | drivers/scsi/st.c | cmd[2] * 65536 + cmd[3] * 256 + cmd[4]); |
cmd | 913 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 914 | drivers/scsi/st.c | cmd[1] = 0x01; /* Space FileMarks */ |
cmd | 916 | drivers/scsi/st.c | cmd[2] = (ltmp >> 16); |
cmd | 917 | drivers/scsi/st.c | cmd[3] = (ltmp >> 8); |
cmd | 918 | drivers/scsi/st.c | cmd[4] = ltmp; |
cmd | 920 | drivers/scsi/st.c | if (cmd[2] & 0x80) |
cmd | 922 | drivers/scsi/st.c | ltmp = ltmp | (cmd[2] << 16) | (cmd[3] << 8) | cmd[4]; |
cmd | 927 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 928 | drivers/scsi/st.c | cmd[1] = 0x00; /* Space Blocks */ |
cmd | 929 | drivers/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 930 | drivers/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 931 | drivers/scsi/st.c | cmd[4] = arg; |
cmd | 934 | drivers/scsi/st.c | cmd[2] * 65536 + cmd[3] * 256 + cmd[4]); |
cmd | 938 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 939 | drivers/scsi/st.c | cmd[1] = 0x00; /* Space Blocks */ |
cmd | 941 | drivers/scsi/st.c | cmd[2] = (ltmp >> 16); |
cmd | 942 | drivers/scsi/st.c | cmd[3] = (ltmp >> 8); |
cmd | 943 | drivers/scsi/st.c | cmd[4] = ltmp; |
cmd | 945 | drivers/scsi/st.c | if (cmd[2] & 0x80) |
cmd | 947 | drivers/scsi/st.c | ltmp = ltmp | (cmd[2] << 16) | (cmd[3] << 8) | cmd[4]; |
cmd | 954 | drivers/scsi/st.c | cmd[0] = WRITE_FILEMARKS; |
cmd | 955 | drivers/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 956 | drivers/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 957 | drivers/scsi/st.c | cmd[4] = arg; |
cmd | 961 | drivers/scsi/st.c | cmd[2] * 65536 + cmd[3] * 256 + cmd[4]); |
cmd | 965 | drivers/scsi/st.c | cmd[0] = REZERO_UNIT; |
cmd | 967 | drivers/scsi/st.c | cmd[1] = 1; /* Don't wait for completion */ |
cmd | 975 | drivers/scsi/st.c | cmd[0] = START_STOP; |
cmd | 977 | drivers/scsi/st.c | cmd[1] = 1; /* Don't wait for completion */ |
cmd | 991 | drivers/scsi/st.c | cmd[0] = START_STOP; |
cmd | 993 | drivers/scsi/st.c | cmd[1] = 1; /* Don't wait for completion */ |
cmd | 996 | drivers/scsi/st.c | cmd[4] = 3; |
cmd | 1002 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1003 | drivers/scsi/st.c | cmd[1] = 3; |
cmd | 1011 | drivers/scsi/st.c | cmd[0] = ERASE; |
cmd | 1012 | drivers/scsi/st.c | cmd[1] = 1; /* To the end of tape */ |
cmd | 1019 | drivers/scsi/st.c | cmd[0] = QFA_SEEK_BLOCK; |
cmd | 1020 | drivers/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 1021 | drivers/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 1022 | drivers/scsi/st.c | cmd[4] = arg; |
cmd | 1023 | drivers/scsi/st.c | cmd[5] = 0; |
cmd | 1026 | drivers/scsi/st.c | cmd[0] = SEEK_10; |
cmd | 1027 | drivers/scsi/st.c | cmd[1] = 4; |
cmd | 1028 | drivers/scsi/st.c | cmd[3] = (arg >> 24); |
cmd | 1029 | drivers/scsi/st.c | cmd[4] = (arg >> 16); |
cmd | 1030 | drivers/scsi/st.c | cmd[5] = (arg >> 8); |
cmd | 1031 | drivers/scsi/st.c | cmd[6] = arg; |
cmd | 1034 | drivers/scsi/st.c | cmd[1] |= 1; /* Don't wait for completion */ |
cmd | 1053 | drivers/scsi/st.c | cmd[0] = MODE_SELECT; |
cmd | 1054 | drivers/scsi/st.c | cmd[4] = 12; |
cmd | 1098 | drivers/scsi/st.c | (void *) cmd, (void *) scsi_tapes[dev].buffer->b_data, ST_BLOCK_SIZE, |
cmd | 1151 | drivers/scsi/st.c | int i, cmd, result; |
cmd | 1165 | drivers/scsi/st.c | cmd = cmd_in & IOCCMD_MASK; |
cmd | 1166 | drivers/scsi/st.c | if (cmd == (MTIOCTOP & IOCCMD_MASK)) { |
cmd | 1185 | drivers/scsi/st.c | else if (cmd == (MTIOCGET & IOCCMD_MASK)) { |
cmd | 1197 | drivers/scsi/st.c | else if (cmd == (MTIOCPOS & IOCCMD_MASK)) { |
cmd | 261 | drivers/sound/audio.c | unsigned int cmd, unsigned int arg) |
cmd | 266 | drivers/sound/audio.c | switch (cmd) |
cmd | 275 | drivers/sound/audio.c | return DMAbuf_ioctl (dev, cmd, arg, 0); |
cmd | 290 | drivers/sound/audio.c | return DMAbuf_ioctl (dev, cmd, arg, 0); |
cmd | 297 | drivers/sound/audio.c | return DMAbuf_ioctl (dev, cmd, arg, 0); |
cmd | 334 | drivers/sound/audio.c | unsigned int cmd, unsigned int arg) |
cmd | 67 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg, int local); |
cmd | 78 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg); |
cmd | 88 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg); |
cmd | 109 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg); |
cmd | 422 | drivers/sound/dmabuf.c | DMAbuf_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
cmd | 424 | drivers/sound/dmabuf.c | switch (cmd) |
cmd | 469 | drivers/sound/dmabuf.c | return dsp_devs[dev]->ioctl (dev, cmd, arg, local); |
cmd | 838 | drivers/sound/dmabuf.c | DMAbuf_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
cmd | 185 | drivers/sound/gus_midi.c | gus_midi_ioctl (int dev, unsigned cmd, unsigned arg) |
cmd | 764 | drivers/sound/gus_wave.c | unsigned int cmd, unsigned int arg) |
cmd | 767 | drivers/sound/gus_wave.c | switch (cmd) |
cmd | 1509 | drivers/sound/gus_wave.c | int voice, cmd; |
cmd | 1513 | drivers/sound/gus_wave.c | cmd = event[2]; |
cmd | 1519 | drivers/sound/gus_wave.c | switch (cmd) |
cmd | 1685 | drivers/sound/gus_wave.c | gus_sampling_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
cmd | 1687 | drivers/sound/gus_wave.c | switch (cmd) |
cmd | 100 | drivers/sound/midibuf.c | unsigned int cmd, unsigned int arg) |
cmd | 104 | drivers/sound/midibuf.c | switch (cmd) |
cmd | 108 | drivers/sound/midibuf.c | return midi_devs[0]->ioctl (dev, cmd, arg); |
cmd | 45 | drivers/sound/mpu401.c | #define mpu401_cmd(cmd) OUTB(cmd, COMDPORT) |
cmd | 198 | drivers/sound/mpu401.c | mpu401_ioctl (int dev, unsigned cmd, unsigned arg) |
cmd | 120 | drivers/sound/opl3.c | unsigned int cmd, unsigned int arg) |
cmd | 122 | drivers/sound/opl3.c | switch (cmd) |
cmd | 196 | drivers/sound/pas2_midi.c | pas_midi_ioctl (int dev, unsigned cmd, unsigned arg) |
cmd | 407 | drivers/sound/pas2_mixer.c | pas_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg) |
cmd | 409 | drivers/sound/pas2_mixer.c | TRACE (printk ("pas2_mixer.c: int pas_mixer_ioctl(unsigned int cmd = %X, unsigned int arg = %X)\n", cmd, arg)); |
cmd | 411 | drivers/sound/pas2_mixer.c | if (((cmd >> 8) & 0xff) == 'M') |
cmd | 413 | drivers/sound/pas2_mixer.c | if (cmd & IOC_IN) |
cmd | 414 | drivers/sound/pas2_mixer.c | return IOCTL_OUT (arg, pas_mixer_set (cmd & 0xff, IOCTL_IN (arg))); |
cmd | 418 | drivers/sound/pas2_mixer.c | switch (cmd & 0xff) |
cmd | 458 | drivers/sound/pas2_mixer.c | return IOCTL_OUT (arg, levels[cmd & 0xff]); |
cmd | 464 | drivers/sound/pas2_mixer.c | switch (cmd) |
cmd | 126 | drivers/sound/pas2_pcm.c | pas_pcm_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
cmd | 128 | drivers/sound/pas2_pcm.c | TRACE (printk ("pas2_pcm.c: static int pas_pcm_ioctl(unsigned int cmd = %X, unsigned int arg = %X)\n", cmd, arg)); |
cmd | 130 | drivers/sound/pas2_pcm.c | switch (cmd) |
cmd | 543 | drivers/sound/sb_dsp.c | sb_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
cmd | 545 | drivers/sound/sb_dsp.c | switch (cmd) |
cmd | 172 | drivers/sound/sb_midi.c | sb_midi_ioctl (int dev, unsigned cmd, unsigned arg) |
cmd | 253 | drivers/sound/sb_mixer.c | sb_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg) |
cmd | 255 | drivers/sound/sb_mixer.c | if (((cmd >> 8) & 0xff) == 'M') |
cmd | 257 | drivers/sound/sb_mixer.c | if (cmd & IOC_IN) |
cmd | 258 | drivers/sound/sb_mixer.c | switch (cmd & 0xff) |
cmd | 265 | drivers/sound/sb_mixer.c | return IOCTL_OUT (arg, sb_mixer_set (cmd & 0xff, IOCTL_IN (arg))); |
cmd | 268 | drivers/sound/sb_mixer.c | switch (cmd & 0xff) /* Return parameters */ |
cmd | 292 | drivers/sound/sb_mixer.c | return IOCTL_OUT (arg, sb_mixer_get (cmd & 0xff)); |
cmd | 707 | drivers/sound/sequencer.c | unsigned int cmd, unsigned int arg) |
cmd | 714 | drivers/sound/sequencer.c | switch (cmd) |
cmd | 795 | drivers/sound/sequencer.c | return synth_devs[dev]->ioctl (dev, cmd, arg); |
cmd | 816 | drivers/sound/sequencer.c | return IOCTL_OUT (arg, synth_devs[dev]->ioctl (dev, cmd, arg)); |
cmd | 830 | drivers/sound/sequencer.c | synth_devs[dev]->ioctl (dev, cmd, arg); |
cmd | 849 | drivers/sound/sequencer.c | return synth_devs[dev]->ioctl (dev, cmd, arg); |
cmd | 964 | drivers/sound/sequencer.c | return synth_devs[0]->ioctl (0, cmd, arg); |
cmd | 1122 | drivers/sound/sequencer.c | unsigned int cmd, unsigned int arg) |
cmd | 12 | drivers/sound/sound_calls.h | int DMAbuf_ioctl(int dev, unsigned int cmd, unsigned int arg, int local); |
cmd | 30 | drivers/sound/sound_calls.h | unsigned int cmd, unsigned int arg); |
cmd | 43 | drivers/sound/sound_calls.h | unsigned int cmd, unsigned int arg); |
cmd | 63 | drivers/sound/sound_calls.h | unsigned int cmd, unsigned int arg); |
cmd | 412 | drivers/sound/soundcard.c | unsigned int cmd, unsigned long arg) |
cmd | 419 | drivers/sound/soundcard.c | DEB (printk ("sound_ioctl(dev=%d, cmd=0x%x, arg=0x%x)\n", dev, cmd, arg)); |
cmd | 432 | drivers/sound/soundcard.c | return mixer_devs[dev]->ioctl (dev, cmd, arg); |
cmd | 436 | drivers/sound/soundcard.c | return sequencer_ioctl (dev, &files[dev], cmd, arg); |
cmd | 442 | drivers/sound/soundcard.c | return audio_ioctl (dev, &files[dev], cmd, arg); |
cmd | 447 | drivers/sound/soundcard.c | return MIDIbuf_ioctl (dev, &files[dev], cmd, arg); |
cmd | 15 | fs/ext2/ioctl.c | int ext2_ioctl (struct inode * inode, struct file * filp, unsigned int cmd, |
cmd | 19 | fs/ext2/ioctl.c | ext2_debug ("cmd = %u, arg = %lu\n", cmd, arg); |
cmd | 21 | fs/ext2/ioctl.c | switch (cmd) { |
cmd | 18 | fs/fcntl.c | extern int sock_fcntl (struct file *, unsigned int cmd, unsigned long arg); |
cmd | 66 | fs/fcntl.c | asmlinkage int sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg) |
cmd | 72 | fs/fcntl.c | switch (cmd) { |
cmd | 92 | fs/fcntl.c | return fcntl_setlk(fd, cmd, (struct flock *) arg); |
cmd | 94 | fs/fcntl.c | return fcntl_setlk(fd, cmd, (struct flock *) arg); |
cmd | 99 | 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 | asmlinkage 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 | 94 | fs/locks.c | int fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l) |
cmd | 150 | fs/locks.c | if (cmd == F_SETLKW) { |
cmd | 134 | fs/pipe.c | unsigned int cmd, unsigned long arg) |
cmd | 138 | fs/pipe.c | switch (cmd) { |
cmd | 105 | include/linux/net.h | int (*ioctl) (struct socket *sock, unsigned int cmd, |
cmd | 121 | include/linux/net.h | int (*fcntl) (struct socket *sock, unsigned int cmd, |
cmd | 230 | include/linux/tty.h | unsigned int cmd, unsigned long arg); |
cmd | 260 | include/linux/tty.h | unsigned int cmd, unsigned long arg); |
cmd | 401 | include/linux/tty.h | unsigned int cmd, unsigned long arg); |
cmd | 92 | include/linux/ultrasound.h | #define _GUS_CMD(chn, voice, cmd, p1, p2) \ |
cmd | 94 | include/linux/ultrasound.h | _seqbuf[_seqbufptr+1] = (chn); _seqbuf[_seqbufptr+2] = cmd;\ |
cmd | 115 | include/linux/xd.h | static int xd_ioctl (struct inode *inode,struct file *file,unsigned int cmd,unsigned long arg); |
cmd | 320 | ipc/msg.c | int sys_msgctl (int msqid, int cmd, struct msqid_ds *buf) |
cmd | 326 | ipc/msg.c | if (msqid < 0 || cmd < 0) |
cmd | 328 | ipc/msg.c | switch (cmd) { |
cmd | 343 | ipc/msg.c | if (cmd == MSG_INFO) { |
cmd | 392 | ipc/msg.c | switch (cmd) { |
cmd | 403 | ipc/msg.c | if (cmd == IPC_RMID) { |
cmd | 151 | ipc/sem.c | int sys_semctl (int semid, int semnum, int cmd, void *arg) |
cmd | 161 | ipc/sem.c | if (semid < 0 || semnum < 0 || cmd < 0) |
cmd | 164 | ipc/sem.c | switch (cmd) { |
cmd | 181 | ipc/sem.c | if (cmd == SEM_INFO) { |
cmd | 222 | ipc/sem.c | switch (cmd) { |
cmd | 230 | ipc/sem.c | switch (cmd) { |
cmd | 286 | ipc/sem.c | switch (cmd) { |
cmd | 195 | ipc/shm.c | int sys_shmctl (int shmid, int cmd, struct shmid_ds *buf) |
cmd | 201 | ipc/shm.c | if (cmd < 0 || shmid < 0) |
cmd | 203 | ipc/shm.c | if (cmd == IPC_SET) { |
cmd | 212 | ipc/shm.c | switch (cmd) { /* replace with proc interface ? */ |
cmd | 271 | ipc/shm.c | switch (cmd) { |
cmd | 24 | ipc/util.c | extern int sys_semctl (int semid, int semnum, int cmd, void *arg); |
cmd | 29 | ipc/util.c | extern int sys_msgctl (int msqid, int cmd, struct msqid_ds *buf); |
cmd | 30 | ipc/util.c | extern int sys_shmctl (int shmid, int cmd, struct shmid_ds *buf); |
cmd | 897 | net/inet/arp.c | arp_ioctl(unsigned int cmd, void *arg) |
cmd | 900 | net/inet/arp.c | switch(cmd) { |
cmd | 61 | net/inet/arp.h | extern int arp_ioctl(unsigned int cmd, void *arg); |
cmd | 926 | net/inet/dev.c | dev_ioctl(unsigned int cmd, void *arg) |
cmd | 932 | net/inet/dev.c | switch(cmd) { |
cmd | 1004 | net/inet/dev.c | ret = dev_ifsioc(arg, cmd); |
cmd | 187 | net/inet/dev.h | extern int dev_ioctl(unsigned int cmd, void *); |
cmd | 432 | net/inet/icmp.c | icmp_ioctl(struct sock *sk, int cmd, unsigned long arg) |
cmd | 434 | net/inet/icmp.c | switch(cmd) { |
cmd | 33 | net/inet/icmp.h | extern int icmp_ioctl(struct sock *sk, int cmd, |
cmd | 117 | net/inet/ip.c | ip_ioctl(struct sock *sk, int cmd, unsigned long arg) |
cmd | 119 | net/inet/ip.c | switch(cmd) { |
cmd | 65 | net/inet/ip.h | extern int ip_ioctl(struct sock *sk, int cmd, |
cmd | 410 | net/inet/route.c | rt_ioctl(unsigned int cmd, void *arg) |
cmd | 418 | net/inet/route.c | switch(cmd) { |
cmd | 437 | net/inet/route.c | ret = (cmd == SIOCDELRT) ? rt_kill(&rt) : rt_new(&rt); |
cmd | 43 | net/inet/route.h | extern int rt_ioctl(unsigned int cmd, void *arg); |
cmd | 446 | net/inet/sock.c | inet_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 456 | net/inet/sock.c | switch(cmd) { |
cmd | 1427 | net/inet/sock.c | inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 1439 | net/inet/sock.c | switch(cmd) { |
cmd | 1468 | net/inet/sock.c | return(rt_ioctl(cmd,(void *) arg)); |
cmd | 1473 | net/inet/sock.c | return(arp_ioctl(cmd,(void *) arg)); |
cmd | 1495 | net/inet/sock.c | return(dev_ioctl(cmd,(void *) arg)); |
cmd | 1499 | net/inet/sock.c | return(sk->prot->ioctl(sk, cmd, arg)); |
cmd | 1702 | net/inet/sock.c | unsigned int cmd, unsigned long arg) |
cmd | 1713 | net/inet/sock.c | ret = inet_ioctl(NULL, cmd, arg); |
cmd | 1716 | net/inet/sock.c | ret = ip_ioctl(NULL, cmd, arg); |
cmd | 1719 | net/inet/sock.c | ret = icmp_ioctl(NULL, cmd, arg); |
cmd | 1722 | net/inet/sock.c | ret = tcp_ioctl(NULL, cmd, arg); |
cmd | 1725 | net/inet/sock.c | ret = udp_ioctl(NULL, cmd, arg); |
cmd | 196 | net/inet/sock.h | int (*ioctl)(struct sock *sk, int cmd, |
cmd | 410 | net/inet/tcp.c | tcp_ioctl(struct sock *sk, int cmd, unsigned long arg) |
cmd | 413 | net/inet/tcp.c | DPRINTF((DBG_TCP, "tcp_ioctl(sk=%X, cmd = %d, arg=%X)\n", sk, cmd, arg)); |
cmd | 414 | net/inet/tcp.c | switch(cmd) { |
cmd | 145 | net/inet/tcp.h | extern int tcp_ioctl(struct sock *sk, int cmd, unsigned long arg); |
cmd | 359 | net/inet/udp.c | udp_ioctl(struct sock *sk, int cmd, unsigned long arg) |
cmd | 362 | net/inet/udp.c | switch(cmd) { |
cmd | 47 | net/inet/udp.h | extern int udp_ioctl(struct sock *sk, int cmd, unsigned long arg); |
cmd | 58 | net/socket.c | unsigned int cmd, unsigned long arg); |
cmd | 310 | net/socket.c | sock_ioctl(struct inode *inode, struct file *file, unsigned int cmd, |
cmd | 316 | net/socket.c | inode, cmd, arg)); |
cmd | 321 | net/socket.c | return(sock->ops->ioctl(sock, cmd, arg)); |
cmd | 833 | net/socket.c | sock_fcntl(struct file *filp, unsigned int cmd, unsigned long arg) |
cmd | 839 | net/socket.c | return(sock->ops->fcntl(sock, cmd, arg)); |
cmd | 977 | net/socket.c | net_ioctl(unsigned int cmd, unsigned long arg) |
cmd | 980 | net/socket.c | switch(cmd) { |
cmd | 1008 | net/socket.c | unsigned int cmd, unsigned long arg) |
cmd | 1016 | net/socket.c | return(net_ioctl(cmd, arg)); |
cmd | 1020 | net/socket.c | return(arp_ioctl(cmd, (void *) arg)); |
cmd | 74 | net/unix/sock.c | static int unix_proto_ioctl(struct socket *sock, unsigned int cmd, |
cmd | 756 | net/unix/sock.c | unix_proto_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 764 | net/unix/sock.c | switch(cmd) { |
cmd | 814 | net/unix/sock.c | unsigned int cmd, unsigned long arg) |
cmd | 819 | net/unix/sock.c | dprintf(1, "UNIX: ioctl(0x%X, 0x%X)\n", cmd, arg); |
cmd | 824 | net/unix/sock.c | switch(cmd) { |