tag | line | file | source code |
cmd | 139 | drivers/block/aztcd.c | (CURRENT && MAJOR(CURRENT -> dev) == MAJOR_NR && CURRENT -> cmd == READ \ |
cmd | 203 | drivers/block/aztcd.c | static int aztSendCmd(int cmd); |
cmd | 204 | drivers/block/aztcd.c | static int sendAztCmd(int cmd, struct azt_Play_msf *params); |
cmd | 306 | drivers/block/aztcd.c | static int aztSendCmd(int cmd) |
cmd | 311 | drivers/block/aztcd.c | printk("aztcd: Executing command %x\n",cmd); |
cmd | 321 | drivers/block/aztcd.c | { outb((unsigned char) cmd,CMD_PORT); |
cmd | 329 | drivers/block/aztcd.c | printk("### Error 1 aztcd: aztSendCmd %x Error Code %x\n",cmd,data); |
cmd | 333 | drivers/block/aztcd.c | { printk("### Error 2 aztcd: aztSendCmd %x \n",cmd); |
cmd | 342 | drivers/block/aztcd.c | static int sendAztCmd(int cmd, struct azt_Play_msf *params) |
cmd | 352 | drivers/block/aztcd.c | { aztSendCmd(cmd); |
cmd | 366 | drivers/block/aztcd.c | printk("### Error 1 aztcd: sendAztCmd %x Error Code %x\n",cmd,data); |
cmd | 370 | drivers/block/aztcd.c | { printk("### Error 2 aztcd: sendAztCmd %x\n ",cmd); |
cmd | 455 | drivers/block/aztcd.c | static int aztcd_ioctl(struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg) |
cmd | 467 | drivers/block/aztcd.c | printk("aztcd: starting aztcd_ioctl - Command:%x\n",cmd); |
cmd | 475 | drivers/block/aztcd.c | switch (cmd) |
cmd | 689 | drivers/block/aztcd.c | if (cmd==CDROMREADMODE1) |
cmd | 26 | drivers/block/blk.h | ((s1)->cmd < (s2)->cmd || ((s1)->cmd == (s2)->cmd && \ |
cmd | 224 | drivers/block/cdu31a.c | static void do_sony_cd_cmd(unsigned char cmd, |
cmd | 501 | drivers/block/cdu31a.c | write_cmd(unsigned char cmd) |
cmd | 504 | drivers/block/cdu31a.c | outb(cmd, sony_cd_cmd_reg); |
cmd | 747 | drivers/block/cdu31a.c | do_sony_cd_cmd(unsigned char cmd, |
cmd | 811 | drivers/block/cdu31a.c | write_cmd(cmd); |
cmd | 1440 | drivers/block/cdu31a.c | switch(CURRENT->cmd) |
cmd | 2173 | drivers/block/cdu31a.c | unsigned int cmd, |
cmd | 2187 | drivers/block/cdu31a.c | switch (cmd) |
cmd | 190 | drivers/block/floppy.c | #define COMMAND raw_cmd.cmd[0] |
cmd | 191 | drivers/block/floppy.c | #define DR_SELECT raw_cmd.cmd[1] |
cmd | 192 | drivers/block/floppy.c | #define TRACK raw_cmd.cmd[2] |
cmd | 193 | drivers/block/floppy.c | #define HEAD raw_cmd.cmd[3] |
cmd | 194 | drivers/block/floppy.c | #define SECTOR raw_cmd.cmd[4] |
cmd | 195 | drivers/block/floppy.c | #define SIZECODE raw_cmd.cmd[5] |
cmd | 196 | drivers/block/floppy.c | #define SECT_PER_TRACK raw_cmd.cmd[6] |
cmd | 197 | drivers/block/floppy.c | #define GAP raw_cmd.cmd[7] |
cmd | 198 | drivers/block/floppy.c | #define SIZECODE2 raw_cmd.cmd[8] |
cmd | 202 | drivers/block/floppy.c | #define F_SIZECODE raw_cmd.cmd[2] |
cmd | 203 | drivers/block/floppy.c | #define F_SECT_PER_TRACK raw_cmd.cmd[3] |
cmd | 204 | drivers/block/floppy.c | #define F_GAP raw_cmd.cmd[4] |
cmd | 205 | drivers/block/floppy.c | #define F_FILL raw_cmd.cmd[5] |
cmd | 1229 | drivers/block/floppy.c | r|=output_byte( raw_cmd.cmd[i] ); |
cmd | 1959 | drivers/block/floppy.c | if(CURRENT->cmd == WRITE) { |
cmd | 2200 | drivers/block/floppy.c | if (CURRENT->cmd == READ){ |
cmd | 2203 | drivers/block/floppy.c | } else if (CURRENT->cmd == WRITE){ |
cmd | 2706 | drivers/block/floppy.c | static int fd_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, |
cmd | 2720 | drivers/block/floppy.c | switch (cmd) { |
cmd | 2725 | drivers/block/floppy.c | switch (cmd) { |
cmd | 2763 | drivers/block/floppy.c | switch (cmd) { |
cmd | 2837 | drivers/block/floppy.c | if ( cmd != FDDEFPRM ) |
cmd | 2847 | drivers/block/floppy.c | if (cmd == FDDEFPRM) |
cmd | 2882 | drivers/block/floppy.c | switch(cmd){ |
cmd | 223 | drivers/block/hd.c | unsigned int head,unsigned int cyl,unsigned int cmd, |
cmd | 247 | drivers/block/hd.c | outb_p(cmd,++port); |
cmd | 739 | drivers/block/hd.c | dev+'a', (CURRENT->cmd == READ)?"read":"writ", |
cmd | 744 | drivers/block/hd.c | if (CURRENT->cmd == READ) { |
cmd | 745 | drivers/block/hd.c | unsigned int cmd = mult_count[dev] > 1 ? WIN_MULTREAD : WIN_READ; |
cmd | 746 | drivers/block/hd.c | hd_out(dev,nsect,sec,head,cyl,cmd,&read_intr); |
cmd | 751 | drivers/block/hd.c | if (CURRENT->cmd == WRITE) { |
cmd | 780 | drivers/block/hd.c | unsigned int cmd, unsigned long arg) |
cmd | 791 | drivers/block/hd.c | switch (cmd) { |
cmd | 204 | drivers/block/ide-cd.c | if (rq->cmd == READ) |
cmd | 243 | drivers/block/ide-cd.c | else if (rq->cmd == PACKET_COMMAND) |
cmd | 875 | drivers/block/ide-cd.c | req.cmd = PACKET_COMMAND; |
cmd | 919 | drivers/block/ide-cd.c | if (rq -> cmd == PACKET_COMMAND) |
cmd | 922 | drivers/block/ide-cd.c | if (rq -> cmd != READ) |
cmd | 924 | drivers/block/ide-cd.c | printk ("ide-cd: bad cmd %d\n", rq -> cmd); |
cmd | 1315 | drivers/block/ide-cd.c | struct file *file, unsigned int cmd, unsigned long arg) |
cmd | 1317 | drivers/block/ide-cd.c | switch (cmd) |
cmd | 608 | drivers/block/ide.c | if (rq->cmd == IDE_DRIVE_CMD) { /* never retry an explicit DRIVE_CMD */ |
cmd | 620 | drivers/block/ide.c | if ((stat & DRQ_STAT) && rq->cmd == READ) { |
cmd | 785 | drivers/block/ide.c | static inline void ide_cmd(ide_dev_t *dev, byte cmd, byte nsect, |
cmd | 790 | drivers/block/ide.c | OUT_BYTE(cmd,HD_COMMAND); |
cmd | 947 | drivers/block/ide.c | dev->name, (rq->cmd==READ)?"read":"writ", |
cmd | 966 | drivers/block/ide.c | dev->name, (rq->cmd==READ)?"read":"writ", cyl, |
cmd | 970 | drivers/block/ide.c | if (rq->cmd == READ) { |
cmd | 975 | drivers/block/ide.c | if (rq->cmd == WRITE) { |
cmd | 992 | drivers/block/ide.c | if (rq->cmd == IDE_DRIVE_CMD) { |
cmd | 1009 | drivers/block/ide.c | printk("%s: bad command: %d\n", dev->name, rq->cmd); |
cmd | 1354 | drivers/block/ide.c | rq.cmd = IDE_DRIVE_CMD; |
cmd | 1397 | drivers/block/ide.c | unsigned int cmd, unsigned long arg) |
cmd | 1408 | drivers/block/ide.c | switch (cmd) { |
cmd | 1528 | drivers/block/ide.c | return ide_cdrom_ioctl(dev, inode, file, cmd, arg); |
cmd | 1601 | drivers/block/ide.c | static void do_identify (ide_dev_t *dev, byte cmd) |
cmd | 1616 | drivers/block/ide.c | bswap = (cmd == WIN_IDENTIFY); |
cmd | 1624 | drivers/block/ide.c | if (cmd == WIN_PIDENTIFY) { |
cmd | 1728 | drivers/block/ide.c | static int try_to_identify (ide_dev_t *dev, byte cmd) |
cmd | 1754 | drivers/block/ide.c | OUT_BYTE(cmd,HD_COMMAND); /* ask drive for ID */ |
cmd | 1755 | drivers/block/ide.c | timeout = ((cmd == WIN_IDENTIFY) ? WAIT_WORSTCASE : WAIT_PIDENTIFY) / 2; |
cmd | 1770 | drivers/block/ide.c | do_identify(dev, cmd); /* drive returned ID */ |
cmd | 1797 | drivers/block/ide.c | static int do_probe (ide_dev_t *dev, byte cmd) |
cmd | 1810 | drivers/block/ide.c | if ((dev->type == disk) ^ (cmd == WIN_IDENTIFY)) |
cmd | 1817 | drivers/block/ide.c | (cmd == WIN_IDENTIFY) ? "ATA" : "ATAPI"); |
cmd | 1827 | drivers/block/ide.c | || dev->present || cmd == WIN_PIDENTIFY) |
cmd | 1829 | drivers/block/ide.c | if ((rc = try_to_identify(dev, cmd))) /* send cmd and wait */ |
cmd | 1830 | drivers/block/ide.c | rc = try_to_identify(dev, cmd); /* failed: try again */ |
cmd | 292 | drivers/block/ll_rw_blk.c | req->cmd == rw && |
cmd | 306 | drivers/block/ll_rw_blk.c | req->cmd == rw && |
cmd | 344 | drivers/block/ll_rw_blk.c | req->cmd = rw; |
cmd | 377 | drivers/block/ll_rw_blk.c | req->cmd = rw; |
cmd | 512 | drivers/block/ll_rw_blk.c | req->cmd = rw; |
cmd | 88 | drivers/block/mcd.c | (CURRENT && MAJOR(CURRENT -> dev) == MAJOR_NR && CURRENT -> cmd == READ \ |
cmd | 140 | drivers/block/mcd.c | static void sendMcdCmd(int cmd, struct mcd_Play_msf *params); |
cmd | 240 | drivers/block/mcd.c | mcd_ioctl(struct inode *ip, struct file *fp, unsigned int cmd, |
cmd | 267 | drivers/block/mcd.c | switch (cmd) |
cmd | 1235 | drivers/block/mcd.c | sendMcdCmd(int cmd, struct mcd_Play_msf *params) |
cmd | 1237 | drivers/block/mcd.c | outb(cmd, MCDPORT(0)); |
cmd | 48 | drivers/block/ramdisk.c | if (CURRENT-> cmd == WRITE) { |
cmd | 52 | drivers/block/ramdisk.c | } else if (CURRENT->cmd == READ) { |
cmd | 3210 | drivers/block/sbpcd.c | static int sbpcd_ioctl(struct inode *inode, struct file *file, u_int cmd, |
cmd | 3216 | drivers/block/sbpcd.c | MINOR(inode->i_rdev), cmd, arg)); |
cmd | 3235 | drivers/block/sbpcd.c | DPRINTF((DBG_IO2,"SBPCD: ioctl: device %d, request %04X\n",i,cmd)); |
cmd | 3236 | drivers/block/sbpcd.c | switch (cmd) /* Sun-compatible */ |
cmd | 3712 | drivers/block/sbpcd.c | DPRINTF((DBG_IOC,"SBPCD: ioctl: unknown function request %04X\n", cmd)); |
cmd | 3763 | drivers/block/sbpcd.c | if (CURRENT->cmd != READ) |
cmd | 3765 | drivers/block/sbpcd.c | printk("SBPCD: bad cmd %d\n", CURRENT->cmd); |
cmd | 223 | drivers/block/xd.c | switch (CURRENT->cmd) { |
cmd | 227 | drivers/block/xd.c | code = xd_readwrite(CURRENT->cmd,CURRENT_DEV,CURRENT->buffer,block,count); |
cmd | 238 | drivers/block/xd.c | static int xd_ioctl (struct inode *inode,struct file *file,u_int cmd,u_long arg) |
cmd | 244 | drivers/block/xd.c | switch (cmd) { |
cmd | 408 | drivers/char/cyclades.c | write_cy_cmd(u_char *base_addr, u_char cmd) |
cmd | 429 | drivers/char/cyclades.c | base_addr[CyCCR] = cmd; |
cmd | 1789 | drivers/char/cyclades.c | set_modem_info(struct cyclades_port * info, unsigned int cmd, |
cmd | 1804 | drivers/char/cyclades.c | switch (cmd) { |
cmd | 1897 | drivers/char/cyclades.c | unsigned int cmd, unsigned long arg) |
cmd | 1904 | drivers/char/cyclades.c | printk("cy_ioctl ttyC%d, cmd = %x arg = %lx\n", info->line, cmd, arg); /* */ |
cmd | 1907 | drivers/char/cyclades.c | switch (cmd) { |
cmd | 1926 | drivers/char/cyclades.c | ret_val = set_modem_info(info, cmd, (unsigned int *) arg); |
cmd | 397 | drivers/char/lp.c | unsigned int cmd, unsigned long arg) |
cmd | 403 | drivers/char/lp.c | printk("lp%d ioctl, cmd: 0x%x, arg: 0x%x\n", minor, cmd, arg); |
cmd | 409 | drivers/char/lp.c | if (cmd <= OLD_IOCTL_MAX) |
cmd | 411 | drivers/char/lp.c | minor, cmd); |
cmd | 412 | drivers/char/lp.c | switch ( cmd ) { |
cmd | 1547 | drivers/char/serial.c | static int set_modem_info(struct async_struct * info, unsigned int cmd, |
cmd | 1557 | drivers/char/serial.c | switch (cmd) { |
cmd | 1680 | drivers/char/serial.c | unsigned int cmd, unsigned long arg) |
cmd | 1689 | drivers/char/serial.c | if ((cmd != TIOCGSERIAL) && (cmd != TIOCSSERIAL) && |
cmd | 1690 | drivers/char/serial.c | (cmd != TIOCSERCONFIG) && (cmd != TIOCSERGWILD) && |
cmd | 1691 | drivers/char/serial.c | (cmd != TIOCSERSWILD) && (cmd != TIOCSERGSTRUCT)) { |
cmd | 1696 | drivers/char/serial.c | switch (cmd) { |
cmd | 1734 | drivers/char/serial.c | return set_modem_info(info, cmd, (unsigned int *) arg); |
cmd | 665 | drivers/char/tpqic02.c | static int notify_cmd(char cmd, short ignore_ex) |
cmd | 669 | drivers/char/tpqic02.c | outb_p(cmd, QIC02_CMD_PORT); /* output the command */ |
cmd | 805 | drivers/char/tpqic02.c | static int send_qic02_cmd(int cmd, time_t timeout, int ignore_ex) |
cmd | 824 | drivers/char/tpqic02.c | status_cmd_pending = cmd; |
cmd | 826 | drivers/char/tpqic02.c | stat = notify_cmd(cmd, ignore_ex); /* tell drive new command was loaded, */ |
cmd | 828 | drivers/char/tpqic02.c | if (TP_HAVE_SEEK && (cmd == AR_QCMDV_SEEK_BLK)) { |
cmd | 973 | drivers/char/tpqic02.c | static void finish_rw(int cmd); |
cmd | 1077 | drivers/char/tpqic02.c | static int ll_do_qic_cmd(int cmd, time_t timeout) |
cmd | 1094 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": ll_do_qic_cmd(%x, %ld) failed\n", cmd, (long) timeout); |
cmd | 1104 | drivers/char/tpqic02.c | stat = send_qic02_cmd(cmd, timeout, 0); /* (checks for exceptions) */ |
cmd | 1106 | drivers/char/tpqic02.c | if (cmd==QCMD_RD_FM) { |
cmd | 1112 | drivers/char/tpqic02.c | } else if (cmd==QCMD_WRT_FM) { |
cmd | 1115 | drivers/char/tpqic02.c | } else if ((cmd==QCMD_REWIND) || (cmd==QCMD_ERASE) || (cmd==QCMD_RETEN)) { |
cmd | 1130 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": Exception persist in ll_do_qic_cmd[1](%x, %ld)", cmd, (long) timeout); |
cmd | 1148 | drivers/char/tpqic02.c | if (tp_sense((cmd==QCMD_SEEK_EOD ? /*****************************/ |
cmd | 1151 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": Exception persist in ll_do_qic_cmd[2](%x, %ld)\n", cmd, (long) timeout); |
cmd | 1152 | drivers/char/tpqic02.c | if (cmd!=QCMD_RD_FM) |
cmd | 1159 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": ll_do_qic_cmd %x: wait failed, stat == 0x%x\n", cmd, stat); |
cmd | 1191 | drivers/char/tpqic02.c | static void terminate_read(int cmd) |
cmd | 1195 | drivers/char/tpqic02.c | if (cmd != QCMD_RD_FM) { |
cmd | 1219 | drivers/char/tpqic02.c | static void terminate_write(int cmd) |
cmd | 1226 | drivers/char/tpqic02.c | if (cmd != QCMD_WRT_FM) { |
cmd | 1243 | drivers/char/tpqic02.c | static void finish_rw(int cmd) |
cmd | 1249 | drivers/char/tpqic02.c | terminate_read(cmd); |
cmd | 1250 | drivers/char/tpqic02.c | terminate_write(cmd); |
cmd | 1258 | drivers/char/tpqic02.c | static int do_qic_cmd(int cmd, time_t timeout) |
cmd | 1263 | drivers/char/tpqic02.c | finish_rw(cmd); |
cmd | 1273 | drivers/char/tpqic02.c | if (cmd==QCMD_REWIND) /* don't wind beyond BOT ;-) */ |
cmd | 1277 | drivers/char/tpqic02.c | return ll_do_qic_cmd(cmd, timeout); |
cmd | 1285 | drivers/char/tpqic02.c | static int do_ioctl_cmd(int cmd) |
cmd | 1295 | drivers/char/tpqic02.c | switch (cmd) { |
cmd | 107 | drivers/char/tty_io.c | unsigned int cmd, unsigned long arg); |
cmd | 306 | drivers/char/tty_io.c | unsigned int cmd, unsigned long arg) |
cmd | 1283 | drivers/char/tty_io.c | unsigned int cmd, unsigned long arg) |
cmd | 1303 | drivers/char/tty_io.c | switch (cmd) { |
cmd | 1505 | drivers/char/tty_io.c | cmd, arg); |
cmd | 1511 | drivers/char/tty_io.c | cmd, arg); |
cmd | 219 | drivers/char/tty_ioctl.c | unsigned int cmd, unsigned long arg) |
cmd | 231 | drivers/char/tty_ioctl.c | switch (cmd) { |
cmd | 369 | drivers/char/tty_ioctl.c | tty->driver.ioctl(tty, file, cmd, arg); |
cmd | 130 | drivers/char/vt.c | unsigned int cmd, unsigned long arg) |
cmd | 152 | drivers/char/vt.c | switch (cmd) { |
cmd | 192 | drivers/char/vt.c | return sys_ioperm(arg, 1, (cmd == KDADDIO)) ? -ENXIO : 0; |
cmd | 197 | drivers/char/vt.c | (cmd == KDENABIO)) ? -ENXIO : 0; |
cmd | 108 | drivers/net/apricot.c | struct i596_cmd cmd; |
cmd | 116 | drivers/net/apricot.c | unsigned short cmd; |
cmd | 129 | drivers/net/apricot.c | struct i596_cmd *cmd; |
cmd | 192 | drivers/net/apricot.c | static void i596_add_cmd(struct device *dev, struct i596_cmd *cmd); |
cmd | 221 | drivers/net/apricot.c | rfd->cmd = CMD_EOL; |
cmd | 225 | drivers/net/apricot.c | rfd->cmd = 0x0000; |
cmd | 276 | drivers/net/apricot.c | lp->cmd_head = lp->scb.cmd = (struct i596_cmd *) I596_NULL; |
cmd | 378 | drivers/net/apricot.c | lp->rx_tail->cmd = 0; |
cmd | 382 | drivers/net/apricot.c | lp->rx_tail->cmd = CMD_EOL; |
cmd | 443 | drivers/net/apricot.c | lp->scb.cmd = lp->cmd_head; |
cmd | 487 | drivers/net/apricot.c | static void i596_add_cmd(struct device *dev, struct i596_cmd *cmd) |
cmd | 496 | drivers/net/apricot.c | cmd->status = 0; |
cmd | 497 | drivers/net/apricot.c | cmd->command |= (CMD_EOL|CMD_INTR); |
cmd | 498 | drivers/net/apricot.c | cmd->next = (struct i596_cmd *) I596_NULL; |
cmd | 503 | drivers/net/apricot.c | lp->cmd_tail->next = cmd; |
cmd | 506 | drivers/net/apricot.c | lp->cmd_head = cmd; |
cmd | 515 | drivers/net/apricot.c | lp->scb.cmd = cmd; |
cmd | 519 | drivers/net/apricot.c | lp->cmd_tail = cmd; |
cmd | 522 | drivers/net/apricot.c | lp->cmd_head = lp->scb.cmd; |
cmd | 646 | drivers/net/apricot.c | tx_cmd->cmd.command = CMD_FLEX|CmdTx; |
cmd | 747 | drivers/net/apricot.c | lp->scb.cmd = (struct i596_cmd *) I596_NULL; |
cmd | 879 | drivers/net/apricot.c | lp->scb.cmd = lp->cmd_head; |
cmd | 975 | drivers/net/apricot.c | struct i596_cmd *cmd; |
cmd | 981 | drivers/net/apricot.c | cmd = (struct i596_cmd *) kmalloc(sizeof(struct i596_cmd)+2+num_addrs*6, GFP_ATOMIC); |
cmd | 982 | drivers/net/apricot.c | if (cmd == NULL) |
cmd | 988 | drivers/net/apricot.c | cmd->command = CmdMulticastList; |
cmd | 989 | drivers/net/apricot.c | *((unsigned short *) (cmd + 1)) = num_addrs * 6; |
cmd | 990 | drivers/net/apricot.c | memcpy (((char *)(cmd + 1))+2, addrs, num_addrs * 6); |
cmd | 991 | drivers/net/apricot.c | print_eth (((char *)(cmd + 1)) + 2); |
cmd | 993 | drivers/net/apricot.c | i596_add_cmd(dev, cmd); |
cmd | 132 | drivers/net/atp.c | static unsigned short eeprom_op(short ioaddr, unsigned int cmd); |
cmd | 291 | drivers/net/atp.c | static unsigned short eeprom_op(short ioaddr, unsigned int cmd) |
cmd | 297 | drivers/net/atp.c | char outval = test_bit(num_bits, &cmd) ? EE_DATA_WRITE : 0; |
cmd | 280 | drivers/net/de4x5.c | static int de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd); |
cmd | 1686 | drivers/net/de4x5.c | static int de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
cmd | 1698 | drivers/net/de4x5.c | switch(ioc->cmd) { |
cmd | 464 | drivers/net/de4x5.h | unsigned short cmd; /* Command to run */ |
cmd | 290 | drivers/net/de600.c | #define de600_put_command(cmd) ( \ |
cmd | 293 | drivers/net/de600.c | outb_p(((rx_page | cmd) << 4) | COMMAND , DATA_PORT), \ |
cmd | 294 | drivers/net/de600.c | outb_p(((rx_page | cmd) & 0xf0) | COMMAND | HI_NIBBLE, DATA_PORT)) |
cmd | 247 | drivers/net/de620.c | de620_send_command(byte cmd) |
cmd | 250 | drivers/net/de620.c | if (cmd == W_DUMMY) |
cmd | 253 | drivers/net/de620.c | outb(cmd, DATA_PORT); |
cmd | 297 | drivers/net/ewrk3.c | static int ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd); |
cmd | 1609 | drivers/net/ewrk3.c | static int ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
cmd | 1620 | drivers/net/ewrk3.c | switch(ioc->cmd) { |
cmd | 294 | drivers/net/ewrk3.h | unsigned short cmd; /* Command to run */ |
cmd | 143 | drivers/net/ni52.c | if(!p->scb->cmd) break; \ |
cmd | 481 | drivers/net/ni52.c | p->scb->cmd = CUC_START; /* cmd.-unit start */ |
cmd | 507 | drivers/net/ni52.c | p->scb->cmd = CUC_START; /* cmd.-unit start */ |
cmd | 531 | drivers/net/ni52.c | p->scb->cmd = CUC_START; /* cmd.-unit start */ |
cmd | 546 | drivers/net/ni52.c | p->scb->cmd = p->scb->status & STAT_MASK; |
cmd | 566 | drivers/net/ni52.c | p->scb->cmd = p->scb->status & STAT_MASK; |
cmd | 624 | drivers/net/ni52.c | p->scb->cmd = CUC_START; |
cmd | 669 | drivers/net/ni52.c | p->scb->cmd = CUC_START; |
cmd | 745 | drivers/net/ni52.c | p->scb->cmd = stat; |
cmd | 767 | drivers/net/ni52.c | p->scb->cmd = RUC_RESUME; |
cmd | 777 | drivers/net/ni52.c | if(p->scb->cmd) /* timed out? */ |
cmd | 848 | drivers/net/ni52.c | p->scb->cmd = RUC_ABORT; /* usually the RU is in the 'no resource'-state .. abort it now. */ |
cmd | 918 | drivers/net/ni52.c | p->scb->cmd = RUC_START; |
cmd | 948 | drivers/net/ni52.c | p->scb->cmd = CUC_ABORT; |
cmd | 952 | drivers/net/ni52.c | p->scb->cmd = CUC_START; |
cmd | 998 | drivers/net/ni52.c | p->scb->cmd = CUC_START; |
cmd | 65 | drivers/net/ni52.h | unsigned short cmd; /* command word */ |
cmd | 138 | drivers/net/plip.c | static int plip_ioctl(struct device *dev, struct ifreq *ifr, int cmd); |
cmd | 991 | drivers/net/plip.c | plip_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
cmd | 102 | drivers/net/ppp.c | static int ppp_dev_ioctl(struct device *dev, struct ifreq *ifr, int cmd); |
cmd | 622 | drivers/net/ppp.c | static int ppp_dev_ioctl(struct device *dev, struct ifreq *ifr, int cmd) |
cmd | 957 | drivers/net/slip.c | slip_ioctl(struct tty_struct *tty, void *file, int cmd, void *arg) |
cmd | 968 | drivers/net/slip.c | switch(cmd) { |
cmd | 1039 | drivers/net/slip.c | return n_tty_ioctl(tty, (struct file *) file, cmd, (unsigned long) arg); |
cmd | 225 | drivers/net/wavelan.h | #define PIOM(cmd,piono) ((u_short)cmd << 10 << (piono * 2)) |
cmd | 176 | drivers/scsi/53c7,8xx.c | static void abnormal_finished (struct NCR53c7x0_cmd *cmd, int result); |
cmd | 181 | drivers/scsi/53c7,8xx.c | *cmd); |
cmd | 182 | drivers/scsi/53c7,8xx.c | static void intr_dma (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd); |
cmd | 187 | drivers/scsi/53c7,8xx.c | static void NCR53c8xx_dsa_fixup (struct NCR53c7x0_cmd *cmd); |
cmd | 190 | drivers/scsi/53c7,8xx.c | NCR53c7x0_cmd *cmd); |
cmd | 1235 | drivers/scsi/53c7,8xx.c | unsigned char cmd[6]; |
cmd | 1240 | drivers/scsi/53c7,8xx.c | cmd[0] = INQUIRY; |
cmd | 1241 | drivers/scsi/53c7,8xx.c | cmd[1] = cmd[2] = cmd[3] = cmd[5] = 0; |
cmd | 1242 | drivers/scsi/53c7,8xx.c | cmd[4] = sizeof(data); |
cmd | 1247 | drivers/scsi/53c7,8xx.c | dsa[5] = (unsigned long) &cmd; |
cmd | 1324 | drivers/scsi/53c7,8xx.c | static void NCR53c8xx_dsa_fixup (struct NCR53c7x0_cmd *cmd) { |
cmd | 1325 | drivers/scsi/53c7,8xx.c | Scsi_Cmnd *c = cmd->cmd; |
cmd | 1331 | drivers/scsi/53c7,8xx.c | memcpy (cmd->dsa, hostdata->script + (hostdata->E_dsa_code_template / 4), |
cmd | 1334 | drivers/scsi/53c7,8xx.c | patch_abs_32 (cmd->dsa, Ent_dsa_code_template / sizeof(long), |
cmd | 1335 | drivers/scsi/53c7,8xx.c | dsa_temp_jump_resume, ((unsigned long) cmd->dsa) + |
cmd | 1337 | drivers/scsi/53c7,8xx.c | patch_abs_rwri_data (cmd->dsa, Ent_dsa_code_template / sizeof(long), |
cmd | 1339 | drivers/scsi/53c7,8xx.c | patch_abs_32 (cmd->dsa, Ent_dsa_code_template / sizeof(long), |
cmd | 1340 | drivers/scsi/53c7,8xx.c | dsa_temp_dsa_next, ((unsigned long) cmd->dsa) + A_dsa_next); |
cmd | 1341 | drivers/scsi/53c7,8xx.c | patch_abs_32 (cmd->dsa, Ent_dsa_code_template / sizeof(long), |
cmd | 1343 | drivers/scsi/53c7,8xx.c | patch_abs_rwri_data (cmd->dsa, Ent_dsa_code_template / sizeof(long), |
cmd | 1362 | drivers/scsi/53c7,8xx.c | static void abnormal_finished (struct NCR53c7x0_cmd *cmd, int result) { |
cmd | 1363 | drivers/scsi/53c7,8xx.c | Scsi_Cmnd *c = cmd->cmd; |
cmd | 1376 | drivers/scsi/53c7,8xx.c | search && (search + hostdata->dsa_start) != (char *) cmd->dsa; |
cmd | 1384 | drivers/scsi/53c7,8xx.c | if (cmd->prev) |
cmd | 1385 | drivers/scsi/53c7,8xx.c | cmd->prev->next = cmd->next; |
cmd | 1387 | drivers/scsi/53c7,8xx.c | if (cmd->next) |
cmd | 1388 | drivers/scsi/53c7,8xx.c | cmd->next->prev = cmd->prev; |
cmd | 1390 | drivers/scsi/53c7,8xx.c | if (hostdata->running_list == cmd) |
cmd | 1391 | drivers/scsi/53c7,8xx.c | hostdata->running_list = cmd->next; |
cmd | 1395 | drivers/scsi/53c7,8xx.c | scsi_free ((void *) cmd->real, cmd->size); |
cmd | 1397 | drivers/scsi/53c7,8xx.c | kfree_s (cmd->real, cmd->size); |
cmd | 1423 | drivers/scsi/53c7,8xx.c | NCR53c7x0_cmd *cmd) { |
cmd | 1427 | drivers/scsi/53c7,8xx.c | Scsi_Cmnd *c = cmd ? cmd->cmd : NULL; |
cmd | 1615 | drivers/scsi/53c7,8xx.c | NCR53c7x0_cmd *cmd) { |
cmd | 1617 | drivers/scsi/53c7,8xx.c | Scsi_Cmnd *c = cmd ? cmd->cmd : NULL; |
cmd | 1631 | drivers/scsi/53c7,8xx.c | if (cmd) |
cmd | 1654 | drivers/scsi/53c7,8xx.c | if (cmd) { |
cmd | 1656 | drivers/scsi/53c7,8xx.c | host->host_no, c->target, (cmd->flags & CMD_FLAG_SDTR) ? "accepting" : |
cmd | 1666 | drivers/scsi/53c7,8xx.c | if (cmd->flags & CMD_FLAG_SDTR) { |
cmd | 1667 | drivers/scsi/53c7,8xx.c | cmd->flags &= ~CMD_FLAG_SDTR; |
cmd | 1675 | drivers/scsi/53c7,8xx.c | cmd->flags |= CMD_FLAG_DID_SDTR; |
cmd | 1681 | drivers/scsi/53c7,8xx.c | patch_dsa_32 (cmd->dsa, dsa_msgout_other, 0, 5); |
cmd | 1682 | drivers/scsi/53c7,8xx.c | patch_dsa_32 (cmd->dsa, dsa_msgout_other, 1, |
cmd | 1766 | drivers/scsi/53c7,8xx.c | patch_dsa_32 (cmd->dsa, dsa_msgout, 0, 1); |
cmd | 1773 | drivers/scsi/53c7,8xx.c | patch_dsa_32 (cmd->dsa, dsa_cmdout, 0, 6); |
cmd | 1788 | drivers/scsi/53c7,8xx.c | patch_dsa_32 (cmd->dsa, dsa_dataout, 0, hostdata->E_other_transfer); |
cmd | 1789 | drivers/scsi/53c7,8xx.c | patch_dsa_32 (cmd->dsa, dsa_datain, 0, cmd->data_transfer_start); |
cmd | 1790 | drivers/scsi/53c7,8xx.c | cmd->data_transfer_start[0] = (((DCMD_TYPE_BMI | DCMD_BMI_OP_MOVE_I | |
cmd | 1792 | drivers/scsi/53c7,8xx.c | cmd->data_transfer_start[1] = (unsigned long) c->sense_buffer; |
cmd | 1794 | drivers/scsi/53c7,8xx.c | cmd->data_transfer_start[2] = ((DCMD_TYPE_TCI | DCMD_TCI_OP_JUMP) |
cmd | 1796 | drivers/scsi/53c7,8xx.c | cmd->data_transfer_start[3] = hostdata->E_other_transfer; |
cmd | 1805 | drivers/scsi/53c7,8xx.c | cmd->cmd->result = 0xffff; |
cmd | 1820 | drivers/scsi/53c7,8xx.c | if (cmd) |
cmd | 1821 | drivers/scsi/53c7,8xx.c | abnormal_finished (cmd, DID_ERROR << 16); |
cmd | 2258 | drivers/scsi/53c7,8xx.c | static struct NCR53c7x0_cmd *create_cmd (Scsi_Cmnd *cmd) { |
cmd | 2260 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
cmd | 2273 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(cmd->host); |
cmd | 2281 | drivers/scsi/53c7,8xx.c | switch (cmd->cmnd[0]) { |
cmd | 2289 | drivers/scsi/53c7,8xx.c | datain = 2 * (cmd->use_sg ? cmd->use_sg : 1) + 3; |
cmd | 2298 | drivers/scsi/53c7,8xx.c | print_command(cmd->cmnd); |
cmd | 2302 | drivers/scsi/53c7,8xx.c | cmd->use_sg); |
cmd | 2305 | drivers/scsi/53c7,8xx.c | dataout = 2 * (cmd->use_sg ? cmd->use_sg : 1) + 3; |
cmd | 2323 | drivers/scsi/53c7,8xx.c | datain = dataout = 2 * (cmd->use_sg ? cmd->use_sg : 1) + 3; |
cmd | 2397 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->pid); |
cmd | 2404 | drivers/scsi/53c7,8xx.c | tmp->cmd = cmd; |
cmd | 2433 | drivers/scsi/53c7,8xx.c | patch_dsa_32(tmp->dsa, dsa_cmnd, 0, cmd); |
cmd | 2434 | drivers/scsi/53c7,8xx.c | patch_dsa_32(tmp->dsa, dsa_select, 0, hostdata->sync[cmd->target]. |
cmd | 2442 | drivers/scsi/53c7,8xx.c | tmp->select[0] = IDENTIFY (1, cmd->lun); |
cmd | 2444 | drivers/scsi/53c7,8xx.c | tmp->select[0] = IDENTIFY (0, cmd->lun); |
cmd | 2447 | drivers/scsi/53c7,8xx.c | patch_dsa_32(tmp->dsa, dsa_cmdout, 0, cmd->cmd_len); |
cmd | 2448 | drivers/scsi/53c7,8xx.c | patch_dsa_32(tmp->dsa, dsa_cmdout, 1, cmd->cmnd); |
cmd | 2460 | drivers/scsi/53c7,8xx.c | patch_dsa_32(tmp->dsa, dsa_msgin, 1, (((unsigned long) &cmd->result) + 1)); |
cmd | 2462 | drivers/scsi/53c7,8xx.c | patch_dsa_32(tmp->dsa, dsa_status, 1, &cmd->result); |
cmd | 2503 | drivers/scsi/53c7,8xx.c | for (i = 0; cmd->use_sg ? (i < cmd->use_sg) : !i; cmd_datain += 4, |
cmd | 2505 | drivers/scsi/53c7,8xx.c | unsigned long buf = (unsigned long) (cmd->use_sg ? |
cmd | 2506 | drivers/scsi/53c7,8xx.c | ((struct scatterlist *)cmd->buffer)[i].address : |
cmd | 2507 | drivers/scsi/53c7,8xx.c | cmd->request_buffer); |
cmd | 2508 | drivers/scsi/53c7,8xx.c | unsigned long count = (unsigned long) (cmd->use_sg ? |
cmd | 2509 | drivers/scsi/53c7,8xx.c | ((struct scatterlist *)cmd->buffer)[i].length : |
cmd | 2510 | drivers/scsi/53c7,8xx.c | cmd->request_bufflen); |
cmd | 2600 | drivers/scsi/53c7,8xx.c | int NCR53c7xx_queue_command (Scsi_Cmnd *cmd, void (* done)(Scsi_Cmnd *)) { |
cmd | 2603 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
cmd | 2612 | drivers/scsi/53c7,8xx.c | !(hostdata->debug_lun_limit[cmd->target] & (1 << cmd->lun)))) || |
cmd | 2613 | drivers/scsi/53c7,8xx.c | cmd->target > 7) { |
cmd | 2615 | drivers/scsi/53c7,8xx.c | cmd->target, cmd->lun); |
cmd | 2616 | drivers/scsi/53c7,8xx.c | cmd->result = (DID_BAD_TARGET << 16); |
cmd | 2617 | drivers/scsi/53c7,8xx.c | done(cmd); |
cmd | 2624 | drivers/scsi/53c7,8xx.c | cmd->result = (DID_BAD_TARGET << 16); |
cmd | 2625 | drivers/scsi/53c7,8xx.c | done(cmd); |
cmd | 2632 | drivers/scsi/53c7,8xx.c | switch (cmd->cmnd[0]) { |
cmd | 2637 | drivers/scsi/53c7,8xx.c | cmd->result = (DID_BAD_TARGET << 16); |
cmd | 2638 | drivers/scsi/53c7,8xx.c | done(cmd); |
cmd | 2643 | drivers/scsi/53c7,8xx.c | cmd->scsi_done = done; |
cmd | 2644 | drivers/scsi/53c7,8xx.c | cmd->result = 0xffff; /* The NCR will overwrite message |
cmd | 2647 | drivers/scsi/53c7,8xx.c | cmd->host_scribble = (unsigned char *) tmp = create_cmd (cmd); |
cmd | 2683 | drivers/scsi/53c7,8xx.c | target_was_busy = hostdata->busy[cmd->target][cmd->lun] |
cmd | 2787 | drivers/scsi/53c7,8xx.c | static void intr_scsi (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) { |
cmd | 2817 | drivers/scsi/53c7,8xx.c | if (cmd) { |
cmd | 2819 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->target, cmd->cmd->lun); |
cmd | 2820 | drivers/scsi/53c7,8xx.c | print_command (cmd->cmd->cmnd); |
cmd | 2840 | drivers/scsi/53c7,8xx.c | } else if (cmd) { |
cmd | 2841 | drivers/scsi/53c7,8xx.c | abnormal_finished(cmd, DID_BAD_TARGET << 16); |
cmd | 2852 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->target, cmd->cmd->lun); |
cmd | 2853 | drivers/scsi/53c7,8xx.c | if (cmd) { |
cmd | 2854 | drivers/scsi/53c7,8xx.c | abnormal_finished(cmd, DID_ERROR << 16); |
cmd | 2864 | drivers/scsi/53c7,8xx.c | if (cmd && cmd->cmd) { |
cmd | 2866 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->target, cmd->cmd->lun); |
cmd | 2867 | drivers/scsi/53c7,8xx.c | abnormal_finished (cmd, DID_PARITY << 16); |
cmd | 2893 | drivers/scsi/53c7,8xx.c | intr_phase_mismatch (host, cmd); |
cmd | 2946 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_cmd *cmd, /* command which halted */ |
cmd | 3017 | drivers/scsi/53c7,8xx.c | &(hostdata->running_list), cmd = (struct NCR53c7x0_cmd *) |
cmd | 3018 | drivers/scsi/53c7,8xx.c | hostdata->running_list; cmd ; cmd_prev_ptr = |
cmd | 3019 | drivers/scsi/53c7,8xx.c | &(cmd->next), cmd = (struct NCR53c7x0_cmd *) cmd->next) { |
cmd | 3022 | drivers/scsi/53c7,8xx.c | if (!cmd) { |
cmd | 3027 | drivers/scsi/53c7,8xx.c | if (!(tmp = cmd->cmd)) { |
cmd | 3034 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->result); |
cmd | 3045 | drivers/scsi/53c7,8xx.c | if (cmd->prev) |
cmd | 3046 | drivers/scsi/53c7,8xx.c | cmd->prev->next = cmd->next; |
cmd | 3048 | drivers/scsi/53c7,8xx.c | *cmd_prev_ptr = cmd->next; |
cmd | 3059 | drivers/scsi/53c7,8xx.c | scsi_free ((void *) cmd->real, cmd->size); |
cmd | 3061 | drivers/scsi/53c7,8xx.c | kfree_s ((void *) cmd->real, cmd->size); |
cmd | 3107 | drivers/scsi/53c7,8xx.c | cmd = (struct NCR53c7x0_cmd *) hostdata->current; |
cmd | 3110 | drivers/scsi/53c7,8xx.c | for (cmd = (struct NCR53c7x0_cmd *) |
cmd | 3111 | drivers/scsi/53c7,8xx.c | hostdata->running_list; cmd && |
cmd | 3113 | drivers/scsi/53c7,8xx.c | cmd->dsa; |
cmd | 3114 | drivers/scsi/53c7,8xx.c | cmd = (struct NCR53c7x0_cmd *)(cmd->next)); |
cmd | 3117 | drivers/scsi/53c7,8xx.c | if (cmd) { |
cmd | 3119 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->pid, (int) cmd->cmd->target, |
cmd | 3120 | drivers/scsi/53c7,8xx.c | (int) cmd->cmd->lun); |
cmd | 3121 | drivers/scsi/53c7,8xx.c | print_command (cmd->cmd->cmnd); |
cmd | 3130 | drivers/scsi/53c7,8xx.c | intr_scsi (host, cmd); |
cmd | 3136 | drivers/scsi/53c7,8xx.c | intr_dma (host, cmd); |
cmd | 3240 | drivers/scsi/53c7,8xx.c | *cmd) { |
cmd | 3249 | drivers/scsi/53c7,8xx.c | if (!cmd) { |
cmd | 3310 | drivers/scsi/53c7,8xx.c | if (dsp >= cmd->data_transfer_start & dsp < cmd->data_transfer_end) { |
cmd | 3397 | drivers/scsi/53c7,8xx.c | static void intr_dma (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) { |
cmd | 3512 | drivers/scsi/53c7,8xx.c | } else if (cmd) |
cmd | 3513 | drivers/scsi/53c7,8xx.c | abnormal_finished (cmd, DID_BAD_TARGET << 16); |
cmd | 3566 | drivers/scsi/53c7,8xx.c | switch ((tmp = hostdata->dstat_sir_intr (host, cmd))) { |
cmd | 3579 | drivers/scsi/53c7,8xx.c | intr_break (host, cmd); |
cmd | 3653 | drivers/scsi/53c7,8xx.c | int NCR53c7xx_abort (Scsi_Cmnd *cmd) { |
cmd | 3654 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
cmd | 3672 | drivers/scsi/53c7,8xx.c | curr && curr->cmd != cmd; prev = &(curr->next), curr = curr->next); |
cmd | 3690 | drivers/scsi/53c7,8xx.c | cmd->result = 0; |
cmd | 3691 | drivers/scsi/53c7,8xx.c | cmd->scsi_done(cmd); |
cmd | 3702 | drivers/scsi/53c7,8xx.c | curr && curr->cmd != cmd; prev = &(curr->next), curr = curr->next); |
cmd | 3707 | drivers/scsi/53c7,8xx.c | cmd->host->host_no); |
cmd | 3717 | drivers/scsi/53c7,8xx.c | curr = (struct NCR53c7x0_cmd *) cmd->host_scribble; |
cmd | 3729 | drivers/scsi/53c7,8xx.c | if (((cmd->result & 0xff00) == 0xff00) || |
cmd | 3730 | drivers/scsi/53c7,8xx.c | ((cmd->result & 0xff) == 0xff)) { |
cmd | 3736 | drivers/scsi/53c7,8xx.c | cmd->scsi_done(cmd); |
cmd | 3752 | drivers/scsi/53c7,8xx.c | int NCR53c7xx_reset (Scsi_Cmnd *cmd) { |
cmd | 3754 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd ? cmd->host : NULL; |
cmd | 3761 | drivers/scsi/53c7,8xx.c | cmd->host->host_no); |
cmd | 3773 | drivers/scsi/53c7,8xx.c | Scsi_Cmnd * cmd; |
cmd | 935 | drivers/scsi/53c7,8xx.h | Scsi_Cmnd *cmd; /* Associated Scsi_Cmnd |
cmd | 1063 | drivers/scsi/53c7,8xx.h | void (* dsa_fixup)(struct NCR53c7x0_cmd *cmd); |
cmd | 1073 | drivers/scsi/53c7,8xx.h | int (* dstat_sir_intr)(struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd); |
cmd | 299 | drivers/scsi/NCR5380.c | static __inline__ void initialize_SCp(Scsi_Cmnd *cmd) { |
cmd | 305 | drivers/scsi/NCR5380.c | if (cmd->use_sg) { |
cmd | 306 | drivers/scsi/NCR5380.c | cmd->SCp.buffer = (struct scatterlist *) cmd->buffer; |
cmd | 307 | drivers/scsi/NCR5380.c | cmd->SCp.buffers_residual = cmd->use_sg - 1; |
cmd | 308 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = (char *) cmd->SCp.buffer->address; |
cmd | 309 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = cmd->SCp.buffer->length; |
cmd | 311 | drivers/scsi/NCR5380.c | cmd->SCp.buffer = NULL; |
cmd | 312 | drivers/scsi/NCR5380.c | cmd->SCp.buffers_residual = 0; |
cmd | 313 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = (char *) cmd->request_buffer; |
cmd | 314 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = cmd->request_bufflen; |
cmd | 499 | drivers/scsi/NCR5380.c | static int should_disconnect (unsigned char cmd) { |
cmd | 500 | drivers/scsi/NCR5380.c | switch (cmd) { |
cmd | 847 | drivers/scsi/NCR5380.c | int NCR5380_queue_command (Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *)) { |
cmd | 849 | drivers/scsi/NCR5380.c | cmd->host->hostdata; |
cmd | 853 | drivers/scsi/NCR5380.c | switch (cmd->cmnd[0]) { |
cmd | 858 | drivers/scsi/NCR5380.c | cmd->result = (DID_ERROR << 16); |
cmd | 859 | drivers/scsi/NCR5380.c | done(cmd); |
cmd | 870 | drivers/scsi/NCR5380.c | cmd->host_scribble = NULL; |
cmd | 871 | drivers/scsi/NCR5380.c | cmd->scsi_done = done; |
cmd | 873 | drivers/scsi/NCR5380.c | cmd->result = 0; |
cmd | 884 | drivers/scsi/NCR5380.c | if (!(hostdata->issue_queue) || (cmd->cmnd[0] == REQUEST_SENSE)) { |
cmd | 885 | drivers/scsi/NCR5380.c | cmd->host_scribble = (unsigned char *) hostdata->issue_queue; |
cmd | 886 | drivers/scsi/NCR5380.c | hostdata->issue_queue = cmd; |
cmd | 890 | drivers/scsi/NCR5380.c | tmp->host_scribble = (unsigned char *) cmd; |
cmd | 894 | drivers/scsi/NCR5380.c | (cmd->cmnd[0] == REQUEST_SENSE) ? "head" : "tail"); |
cmd | 1164 | drivers/scsi/NCR5380.c | static int NCR5380_select (struct Scsi_Host *instance, Scsi_Cmnd *cmd, |
cmd | 1278 | drivers/scsi/NCR5380.c | NCR5380_write(OUTPUT_DATA_REG, (hostdata->id_mask | (1 << cmd->target))); |
cmd | 1317 | drivers/scsi/NCR5380.c | printk("scsi%d : selecting target %d\n", instance->host_no, cmd->target); |
cmd | 1350 | drivers/scsi/NCR5380.c | if (hostdata->targets_present & (1 << cmd->target)) { |
cmd | 1360 | drivers/scsi/NCR5380.c | cmd->result = DID_BAD_TARGET << 16; |
cmd | 1361 | drivers/scsi/NCR5380.c | cmd->scsi_done(cmd); |
cmd | 1371 | drivers/scsi/NCR5380.c | hostdata->targets_present |= (1 << cmd->target); |
cmd | 1393 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target); |
cmd | 1395 | drivers/scsi/NCR5380.c | tmp[0] = IDENTIFY(((instance->irq == IRQ_NONE) ? 0 : 1), cmd->lun); |
cmd | 1397 | drivers/scsi/NCR5380.c | if (cmd->device->tagged_queue && (tag != TAG_NONE)) { |
cmd | 1401 | drivers/scsi/NCR5380.c | if (cmd->device->current_tag == 0) |
cmd | 1402 | drivers/scsi/NCR5380.c | cmd->device->current_tag = 1; |
cmd | 1404 | drivers/scsi/NCR5380.c | cmd->tag = cmd->device->current_tag; |
cmd | 1405 | drivers/scsi/NCR5380.c | cmd->device->current_tag++; |
cmd | 1407 | drivers/scsi/NCR5380.c | cmd->tag = (unsigned char) tag; |
cmd | 1409 | drivers/scsi/NCR5380.c | tmp[2] = cmd->tag; |
cmd | 1416 | drivers/scsi/NCR5380.c | cmd->tag=0; |
cmd | 1427 | drivers/scsi/NCR5380.c | hostdata->connected = cmd; |
cmd | 1429 | drivers/scsi/NCR5380.c | if (!cmd->device->tagged_queue) |
cmd | 1431 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] |= (1 << cmd->lun); |
cmd | 1433 | drivers/scsi/NCR5380.c | initialize_SCp(cmd); |
cmd | 1921 | drivers/scsi/NCR5380.c | Scsi_Cmnd *cmd = (Scsi_Cmnd *) hostdata->connected; |
cmd | 1964 | drivers/scsi/NCR5380.c | if (!cmd->SCp.this_residual && cmd->SCp.buffers_residual) { |
cmd | 1965 | drivers/scsi/NCR5380.c | ++cmd->SCp.buffer; |
cmd | 1966 | drivers/scsi/NCR5380.c | --cmd->SCp.buffers_residual; |
cmd | 1967 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = cmd->SCp.buffer->length; |
cmd | 1968 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = cmd->SCp.buffer->address; |
cmd | 1971 | drivers/scsi/NCR5380.c | instance->host_no, cmd->SCp.this_residual, |
cmd | 1972 | drivers/scsi/NCR5380.c | cmd->SCp.buffers_residual); |
cmd | 1988 | drivers/scsi/NCR5380.c | if (!cmd->device->borken && |
cmd | 1989 | drivers/scsi/NCR5380.c | (transfersize = NCR5380_dma_xfer_len(instance, cmd)) != 0) { |
cmd | 1991 | drivers/scsi/NCR5380.c | transfersize = cmd->transfersize; |
cmd | 1998 | drivers/scsi/NCR5380.c | if (!cmd->device->borken && transfersize && |
cmd | 1999 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual && !(cmd->SCp.this_residual % |
cmd | 2004 | drivers/scsi/NCR5380.c | &len, (unsigned char **) &cmd->SCp.ptr)) { |
cmd | 2010 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
cmd | 2011 | drivers/scsi/NCR5380.c | cmd->device->borken = 1; |
cmd | 2018 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual -= transfersize - len; |
cmd | 2022 | drivers/scsi/NCR5380.c | (int *) &cmd->SCp.this_residual, (unsigned char **) |
cmd | 2023 | drivers/scsi/NCR5380.c | &cmd->SCp.ptr); |
cmd | 2029 | drivers/scsi/NCR5380.c | cmd->SCp.Message = tmp; |
cmd | 2050 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
cmd | 2058 | drivers/scsi/NCR5380.c | if (!cmd->next_link) { |
cmd | 2060 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
cmd | 2068 | drivers/scsi/NCR5380.c | initialize_SCp(cmd->next_link); |
cmd | 2070 | drivers/scsi/NCR5380.c | cmd->next_link->tag = cmd->tag; |
cmd | 2071 | drivers/scsi/NCR5380.c | cmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); |
cmd | 2074 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
cmd | 2076 | drivers/scsi/NCR5380.c | cmd->scsi_done(cmd); |
cmd | 2077 | drivers/scsi/NCR5380.c | cmd = hostdata->connected; |
cmd | 2087 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
cmd | 2089 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] &= ~(1 << cmd->lun); |
cmd | 2107 | drivers/scsi/NCR5380.c | if (cmd->cmnd[0] != REQUEST_SENSE) |
cmd | 2108 | drivers/scsi/NCR5380.c | cmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); |
cmd | 2109 | drivers/scsi/NCR5380.c | else if (cmd->SCp.Status != GOOD) |
cmd | 2110 | drivers/scsi/NCR5380.c | cmd->result = (cmd->result & 0x00ffff) | (DID_ERROR << 16); |
cmd | 2113 | drivers/scsi/NCR5380.c | if ((cmd->cmnd[0] != REQUEST_SENSE) && |
cmd | 2114 | drivers/scsi/NCR5380.c | (cmd->SCp.Status == CHECK_CONDITION)) { |
cmd | 2119 | drivers/scsi/NCR5380.c | cmd->cmnd[0] = REQUEST_SENSE; |
cmd | 2120 | drivers/scsi/NCR5380.c | cmd->cmnd[1] &= 0xe0; |
cmd | 2121 | drivers/scsi/NCR5380.c | cmd->cmnd[2] = 0; |
cmd | 2122 | drivers/scsi/NCR5380.c | cmd->cmnd[3] = 0; |
cmd | 2123 | drivers/scsi/NCR5380.c | cmd->cmnd[4] = sizeof(cmd->sense_buffer); |
cmd | 2124 | drivers/scsi/NCR5380.c | cmd->cmnd[5] = 0; |
cmd | 2126 | drivers/scsi/NCR5380.c | cmd->SCp.buffer = NULL; |
cmd | 2127 | drivers/scsi/NCR5380.c | cmd->SCp.buffers_residual = 0; |
cmd | 2128 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = (char *) cmd->sense_buffer; |
cmd | 2129 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = sizeof(cmd->sense_buffer); |
cmd | 2132 | drivers/scsi/NCR5380.c | cmd->host_scribble = (unsigned char *) |
cmd | 2134 | drivers/scsi/NCR5380.c | hostdata->issue_queue = (Scsi_Cmnd *) cmd; |
cmd | 2141 | drivers/scsi/NCR5380.c | cmd->scsi_done(cmd); |
cmd | 2160 | drivers/scsi/NCR5380.c | cmd->device->tagged_queue = 0; |
cmd | 2161 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] |= (1 << cmd->lun); |
cmd | 2169 | drivers/scsi/NCR5380.c | cmd->device->disconnect = 1; |
cmd | 2171 | drivers/scsi/NCR5380.c | cmd->host_scribble = (unsigned char *) |
cmd | 2174 | drivers/scsi/NCR5380.c | hostdata->disconnected_queue = cmd; |
cmd | 2179 | drivers/scsi/NCR5380.c | cmd->target, cmd->lun); |
cmd | 2285 | drivers/scsi/NCR5380.c | instance->host_no, tmp, cmd->target, cmd->lun); |
cmd | 2288 | drivers/scsi/NCR5380.c | instance->host_no, extended_msg[1], extended_msg[0], cmd->target, cmd->lun); |
cmd | 2302 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] &= ~(1 << cmd->lun); |
cmd | 2304 | drivers/scsi/NCR5380.c | cmd->result = DID_ERROR << 16; |
cmd | 2305 | drivers/scsi/NCR5380.c | cmd->scsi_done(cmd); |
cmd | 2312 | drivers/scsi/NCR5380.c | len = cmd->cmd_len; |
cmd | 2313 | drivers/scsi/NCR5380.c | data = cmd->cmnd; |
cmd | 2322 | drivers/scsi/NCR5380.c | if (!disconnect && should_disconnect(cmd->cmnd[0])) { |
cmd | 2337 | drivers/scsi/NCR5380.c | cmd->SCp.Status = tmp; |
cmd | 2572 | drivers/scsi/NCR5380.c | int NCR5380_abort (Scsi_Cmnd *cmd) { |
cmd | 2574 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance = cmd->host; |
cmd | 2582 | drivers/scsi/NCR5380.c | print_Scsi_Cmnd (cmd); |
cmd | 2602 | drivers/scsi/NCR5380.c | if (hostdata->connected == cmd) { |
cmd | 2636 | drivers/scsi/NCR5380.c | if (cmd == tmp) { |
cmd | 2695 | drivers/scsi/NCR5380.c | if (cmd == tmp) { |
cmd | 2701 | drivers/scsi/NCR5380.c | if (NCR5380_select (instance, cmd, (int) cmd->tag)) |
cmd | 2720 | drivers/scsi/NCR5380.c | if (cmd == tmp) { |
cmd | 2759 | drivers/scsi/NCR5380.c | int NCR5380_reset (Scsi_Cmnd *cmd) { |
cmd | 2761 | drivers/scsi/NCR5380.c | NCR5380_setup(cmd->host); |
cmd | 2763 | drivers/scsi/NCR5380.c | NCR5380_print_status (cmd->host); |
cmd | 281 | drivers/scsi/NCR5380.h | int NCR5380_abort (Scsi_Cmnd *cmd); |
cmd | 285 | drivers/scsi/NCR5380.h | int NCR5380_reset (Scsi_Cmnd *cmd); |
cmd | 289 | drivers/scsi/NCR5380.h | int NCR5380_queue_command (Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *)); |
cmd | 293 | drivers/scsi/NCR5380.h | static int NCR5380_select (struct Scsi_Host *instance, Scsi_Cmnd *cmd, int tag); |
cmd | 510 | drivers/scsi/aha1542.c | unchar *cmd = (unchar *) SCpnt->cmnd; |
cmd | 529 | drivers/scsi/aha1542.c | if(*cmd == REQUEST_SENSE){ |
cmd | 541 | drivers/scsi/aha1542.c | if (*cmd == READ_10 || *cmd == WRITE_10) |
cmd | 542 | drivers/scsi/aha1542.c | i = xscsi2int(cmd+2); |
cmd | 543 | drivers/scsi/aha1542.c | else if (*cmd == READ_6 || *cmd == WRITE_6) |
cmd | 544 | drivers/scsi/aha1542.c | i = scsi2int(cmd+2); |
cmd | 548 | drivers/scsi/aha1542.c | printk("aha1542_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
cmd | 550 | drivers/scsi/aha1542.c | printk("aha1542_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
cmd | 553 | drivers/scsi/aha1542.c | for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); |
cmd | 555 | drivers/scsi/aha1542.c | if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 593 | drivers/scsi/aha1542.c | if (*cmd == READ_10 || *cmd == READ_6) |
cmd | 595 | drivers/scsi/aha1542.c | else if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 598 | drivers/scsi/aha1542.c | memcpy(ccb[mbo].cdb, cmd, ccb[mbo].cdblen); |
cmd | 695 | drivers/scsi/aha1542.c | unchar cmd[5] = {CMD_MBINIT, AHA1542_MAILBOXES, 0, 0, 0}; |
cmd | 705 | drivers/scsi/aha1542.c | any2scsi((cmd+2), mb); |
cmd | 706 | drivers/scsi/aha1542.c | aha1542_out(bse, cmd, 5); |
cmd | 1028 | drivers/scsi/aha1542.c | static unchar cmd[] = { READ_CAPACITY, 0, 0, 0, 0, 0, 0, 0, 0, 0}; |
cmd | 1033 | drivers/scsi/aha1542.c | if (!aha1542_command(i, cmd, buf, sizeof(buf))) { |
cmd | 1043 | drivers/scsi/aha1542.c | unsigned char cmd[10]; |
cmd | 1046 | drivers/scsi/aha1542.c | cmd[0] = READ_10; |
cmd | 1047 | drivers/scsi/aha1542.c | cmd[1] = 0; |
cmd | 1048 | drivers/scsi/aha1542.c | xany2scsi(cmd+2, i); |
cmd | 1049 | drivers/scsi/aha1542.c | cmd[6] = 0; |
cmd | 1050 | drivers/scsi/aha1542.c | cmd[7] = 0; |
cmd | 1051 | drivers/scsi/aha1542.c | cmd[8] = 1; |
cmd | 1052 | drivers/scsi/aha1542.c | cmd[9] = 0; |
cmd | 1053 | drivers/scsi/aha1542.c | aha1542_command(0, cmd, buffer, 512); |
cmd | 248 | drivers/scsi/aha1740.c | unchar *cmd = (unchar *) SCpnt->cmnd; |
cmd | 257 | drivers/scsi/aha1740.c | if(*cmd == REQUEST_SENSE) |
cmd | 269 | drivers/scsi/aha1740.c | if (*cmd == READ_10 || *cmd == WRITE_10) |
cmd | 270 | drivers/scsi/aha1740.c | i = xscsi2int(cmd+2); |
cmd | 271 | drivers/scsi/aha1740.c | else if (*cmd == READ_6 || *cmd == WRITE_6) |
cmd | 272 | drivers/scsi/aha1740.c | i = scsi2int(cmd+2); |
cmd | 275 | drivers/scsi/aha1740.c | printk("aha1740_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
cmd | 277 | drivers/scsi/aha1740.c | for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); |
cmd | 310 | drivers/scsi/aha1740.c | if (*cmd == READ_10 || *cmd == READ_6) |
cmd | 312 | drivers/scsi/aha1740.c | else if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 315 | drivers/scsi/aha1740.c | memcpy(ecb[ecbno].cdb, cmd, ecb[ecbno].cdblen); |
cmd | 129 | drivers/scsi/aha274x.c | #define aha274x_parity(cmd) ((cmd)->SCp.Status) |
cmd | 360 | drivers/scsi/aha274x.c | unsigned aha274x_length(Scsi_Cmnd *cmd, int sg_last) |
cmd | 366 | drivers/scsi/aha274x.c | segments = cmd->use_sg - sg_last; |
cmd | 367 | drivers/scsi/aha274x.c | sg = (struct scatterlist *)cmd->buffer; |
cmd | 369 | drivers/scsi/aha274x.c | if (cmd->use_sg) { |
cmd | 371 | drivers/scsi/aha274x.c | i < cmd->use_sg && i < segments; |
cmd | 377 | drivers/scsi/aha274x.c | length = cmd->request_bufflen; |
cmd | 383 | drivers/scsi/aha274x.c | void aha274x_sg_check(Scsi_Cmnd *cmd) |
cmd | 386 | drivers/scsi/aha274x.c | struct scatterlist *sg = (struct scatterlist *)cmd->buffer; |
cmd | 388 | drivers/scsi/aha274x.c | if (cmd->use_sg) { |
cmd | 389 | drivers/scsi/aha274x.c | for (i = 0; i < cmd->use_sg; i++) |
cmd | 495 | drivers/scsi/aha274x.c | Scsi_Cmnd *cmd; |
cmd | 497 | drivers/scsi/aha274x.c | cmd = (Scsi_Cmnd *)p->SCB_array[scbptr]; |
cmd | 498 | drivers/scsi/aha274x.c | if (!cmd) { |
cmd | 525 | drivers/scsi/aha274x.c | cmd->result = DID_TIME_OUT << 16; |
cmd | 552 | drivers/scsi/aha274x.c | cmd->scsi_done(cmd); |
cmd | 561 | drivers/scsi/aha274x.c | cmd->target, |
cmd | 562 | drivers/scsi/aha274x.c | cmd->lun); |
cmd | 563 | drivers/scsi/aha274x.c | aha274x_parity(cmd) = DID_PARITY; |
cmd | 591 | drivers/scsi/aha274x.c | Scsi_Cmnd *cmd; |
cmd | 601 | drivers/scsi/aha274x.c | cmd = (Scsi_Cmnd *)p->SCB_array[complete]; |
cmd | 602 | drivers/scsi/aha274x.c | if (!cmd) { |
cmd | 629 | drivers/scsi/aha274x.c | cmd->result = scb.target_status | |
cmd | 630 | drivers/scsi/aha274x.c | (aha274x_parity(cmd) << 16); |
cmd | 638 | drivers/scsi/aha274x.c | actual = aha274x_length(cmd, |
cmd | 645 | drivers/scsi/aha274x.c | if (actual < cmd->underflow) { |
cmd | 648 | drivers/scsi/aha274x.c | cmd->target, cmd->underflow, actual); |
cmd | 650 | drivers/scsi/aha274x.c | cmd->result = scb.target_status | |
cmd | 654 | drivers/scsi/aha274x.c | cmd->scsi_done(cmd); |
cmd | 1048 | drivers/scsi/aha274x.c | int aha274x_command(Scsi_Cmnd *cmd) |
cmd | 1060 | drivers/scsi/aha274x.c | Scsi_Cmnd *cmd, |
cmd | 1071 | drivers/scsi/aha274x.c | scb->target_channel_lun = ((cmd->target << 4) & 0xf0) | |
cmd | 1072 | drivers/scsi/aha274x.c | (cmd->lun & 0x7); |
cmd | 1084 | drivers/scsi/aha274x.c | length = aha274x_length(cmd, 0); |
cmd | 1092 | drivers/scsi/aha274x.c | aha274x_sg_check(cmd); |
cmd | 1102 | drivers/scsi/aha274x.c | addr = cmd->cmnd; |
cmd | 1103 | drivers/scsi/aha274x.c | scb->SCSI_cmd_length = cmd->cmd_len; |
cmd | 1106 | drivers/scsi/aha274x.c | if (cmd->use_sg) { |
cmd | 1109 | drivers/scsi/aha274x.c | cmd->use_sg, |
cmd | 1112 | drivers/scsi/aha274x.c | scb->SG_segment_count = cmd->use_sg; |
cmd | 1114 | drivers/scsi/aha274x.c | &cmd->request_buffer, |
cmd | 1119 | drivers/scsi/aha274x.c | &cmd->request_buffer, |
cmd | 1122 | drivers/scsi/aha274x.c | &cmd->request_bufflen, |
cmd | 1148 | drivers/scsi/aha274x.c | int aha274x_queue(Scsi_Cmnd *cmd, void (*fn)(Scsi_Cmnd *)) |
cmd | 1157 | drivers/scsi/aha274x.c | cmd->cmnd[0], |
cmd | 1158 | drivers/scsi/aha274x.c | cmd->cmd_len, |
cmd | 1159 | drivers/scsi/aha274x.c | cmd->target, |
cmd | 1160 | drivers/scsi/aha274x.c | cmd->lun); |
cmd | 1163 | drivers/scsi/aha274x.c | p = (struct aha274x_host *)cmd->host->hostdata; |
cmd | 1169 | drivers/scsi/aha274x.c | aha274x_buildscb(p, cmd, &scb); |
cmd | 1226 | drivers/scsi/aha274x.c | cmd->scsi_done = fn; |
cmd | 1227 | drivers/scsi/aha274x.c | p->SCB_array[empty] = cmd; |
cmd | 1228 | drivers/scsi/aha274x.c | aha274x_parity(cmd) = DID_OK; |
cmd | 1263 | drivers/scsi/aha274x.c | enum k_state aha274x_kill(Scsi_Cmnd *cmd, unsigned char message, |
cmd | 1270 | drivers/scsi/aha274x.c | p = (struct aha274x_host *)cmd->host->hostdata; |
cmd | 1277 | drivers/scsi/aha274x.c | if (p->SCB_array[scb] == cmd) |
cmd | 1353 | drivers/scsi/aha274x.c | cmd->result = result << 16; |
cmd | 1354 | drivers/scsi/aha274x.c | cmd->scsi_done(cmd); |
cmd | 1358 | drivers/scsi/aha274x.c | int aha274x_abort(Scsi_Cmnd *cmd) |
cmd | 1366 | drivers/scsi/aha274x.c | switch (aha274x_kill(cmd, ABORT, DID_ABORT, !0)) { |
cmd | 1386 | drivers/scsi/aha274x.c | int aha274x_reset(Scsi_Cmnd *cmd) |
cmd | 1393 | drivers/scsi/aha274x.c | p = (struct aha274x_host *)cmd->host->hostdata; |
cmd | 1397 | drivers/scsi/aha274x.c | switch (aha274x_kill(cmd, BUS_DEVICE_RESET, DID_RESET, 0)) { |
cmd | 1406 | drivers/scsi/aha274x.c | outb((1 << cmd->target), HA_NEEDSDTR(p->base)); |
cmd | 1447 | drivers/scsi/aha274x.c | if (cmd == p->SCB_array[i]) { |
cmd | 601 | drivers/scsi/buslogic.c | unsigned char *cmd = (unsigned char *)scpnt->cmnd; |
cmd | 620 | drivers/scsi/buslogic.c | if (*cmd == REQUEST_SENSE) { |
cmd | 637 | drivers/scsi/buslogic.c | if (*cmd == READ_10 || *cmd == WRITE_10 |
cmd | 638 | drivers/scsi/buslogic.c | || *cmd == READ_6 || *cmd == WRITE_6) |
cmd | 639 | drivers/scsi/buslogic.c | i = *(int *)(cmd + 2); |
cmd | 643 | drivers/scsi/buslogic.c | target, *cmd, i, bufflen); |
cmd | 647 | drivers/scsi/buslogic.c | printk(" %02X", cmd[i]); |
cmd | 649 | drivers/scsi/buslogic.c | if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 705 | drivers/scsi/buslogic.c | if (*cmd == READ_10 || *cmd == READ_6) |
cmd | 707 | drivers/scsi/buslogic.c | else if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 710 | drivers/scsi/buslogic.c | memcpy(ccb[mbo].cdb, cmd, ccb[mbo].cdblen); |
cmd | 834 | drivers/scsi/buslogic.c | unsigned char cmd, count; |
cmd | 836 | drivers/scsi/buslogic.c | } cmd = { CMD_INITEXTMB, BUSLOGIC_MAILBOXES, mb }; |
cmd | 844 | drivers/scsi/buslogic.c | if (buslogic_out(base, (unsigned char *)&cmd, sizeof cmd)) |
cmd | 1307 | drivers/scsi/buslogic.c | unsigned char cmd[] |
cmd | 1317 | drivers/scsi/buslogic.c | if (!buslogic_command(i, cmd, buf, sizeof buf)) { |
cmd | 1328 | drivers/scsi/buslogic.c | cmd[0] = READ_10; |
cmd | 1329 | drivers/scsi/buslogic.c | cmd[1] = 0; |
cmd | 1330 | drivers/scsi/buslogic.c | xany2scsi(cmd + 2, i); |
cmd | 1331 | drivers/scsi/buslogic.c | cmd[6] = 0; |
cmd | 1332 | drivers/scsi/buslogic.c | cmd[7] = 0; |
cmd | 1333 | drivers/scsi/buslogic.c | cmd[8] = 1; |
cmd | 1334 | drivers/scsi/buslogic.c | cmd[9] = 0; |
cmd | 1335 | drivers/scsi/buslogic.c | buslogic_command(0, cmd, buffer, sizeof buffer); |
cmd | 550 | drivers/scsi/constants.c | void print_Scsi_Cmnd (Scsi_Cmnd *cmd) { |
cmd | 552 | drivers/scsi/constants.c | cmd->host->host_no, |
cmd | 553 | drivers/scsi/constants.c | cmd->target, |
cmd | 554 | drivers/scsi/constants.c | cmd->lun); |
cmd | 556 | drivers/scsi/constants.c | print_command (cmd->cmnd); |
cmd | 308 | drivers/scsi/eata.c | static inline unchar do_dma (ushort iobase, unsigned int addr, unchar cmd) { |
cmd | 319 | drivers/scsi/eata.c | outb(cmd, iobase + REG_CMD); |
cmd | 121 | drivers/scsi/eata_dma.c | Scsi_Cmnd *cmd; |
cmd | 143 | drivers/scsi/eata_dma.c | cmd = cp->cmd; |
cmd | 144 | drivers/scsi/eata_dma.c | base = (uint) cmd->host->base; |
cmd | 173 | drivers/scsi/eata_dma.c | irq, base, cmd->pid, cmd->target, cmd->lun, |
cmd | 179 | drivers/scsi/eata_dma.c | && cmd->device->type == TYPE_DISK |
cmd | 180 | drivers/scsi/eata_dma.c | && (HD(cmd)->t_state[cmd->target] == RESET)) |
cmd | 185 | drivers/scsi/eata_dma.c | HD(cmd)->t_state[cmd->target] = FALSE; |
cmd | 186 | drivers/scsi/eata_dma.c | HD(cmd)->t_timeout[cmd->target] = 0; |
cmd | 192 | drivers/scsi/eata_dma.c | if (HD(cmd)->t_timeout[cmd->target] > 1) |
cmd | 196 | drivers/scsi/eata_dma.c | HD(cmd)->t_timeout[cmd->target]++; |
cmd | 200 | drivers/scsi/eata_dma.c | if (cmd->device->type != TYPE_TAPE) |
cmd | 206 | drivers/scsi/eata_dma.c | HD(cmd)->t_state[i] = RESET; |
cmd | 221 | drivers/scsi/eata_dma.c | cmd->result = result | scsi_stat; |
cmd | 223 | drivers/scsi/eata_dma.c | (cmd->sense_buffer[2] & 0xf) == UNIT_ATTENTION) |
cmd | 224 | drivers/scsi/eata_dma.c | cmd->result |= (DRIVER_SENSE << 24); |
cmd | 230 | drivers/scsi/eata_dma.c | scsi_stat,cmd->sense_buffer[2] & 0xf, cmd->result); |
cmd | 237 | drivers/scsi/eata_dma.c | if(cmd->scsi_done != eata_scsi_done) cmd->scsi_done(cmd); |
cmd | 263 | drivers/scsi/eata_dma.c | int eata_queue(Scsi_Cmnd * cmd, void *(done) (Scsi_Cmnd *)) |
cmd | 282 | drivers/scsi/eata_dma.c | cmd->result = (DID_ERROR << 16) + QUEUE_FULL; |
cmd | 285 | drivers/scsi/eata_dma.c | hd = HD(cmd); |
cmd | 286 | drivers/scsi/eata_dma.c | sh = cmd->host; |
cmd | 316 | drivers/scsi/eata_dma.c | cmd->pid, cmd->target, cmd->lun, y)); |
cmd | 319 | drivers/scsi/eata_dma.c | cmd->scsi_done = (void *)done; |
cmd | 321 | drivers/scsi/eata_dma.c | switch (cmd->cmnd[0]) { |
cmd | 343 | drivers/scsi/eata_dma.c | if (cmd->use_sg) { |
cmd | 346 | drivers/scsi/eata_dma.c | cp->cp_datalen = htonl(cmd->use_sg*8); |
cmd | 347 | drivers/scsi/eata_dma.c | sl=(struct scatterlist *)cmd->request_buffer; |
cmd | 349 | drivers/scsi/eata_dma.c | for(i = 0; i < cmd->use_sg; i++, sl++){ |
cmd | 355 | drivers/scsi/eata_dma.c | cp->cp_datalen = htonl(cmd->request_bufflen); |
cmd | 356 | drivers/scsi/eata_dma.c | cp->cp_dataDMA = htonl((ulong)cmd->request_buffer); |
cmd | 360 | drivers/scsi/eata_dma.c | cp->cp_reqDMA = htonl((ulong) cmd->sense_buffer); |
cmd | 361 | drivers/scsi/eata_dma.c | cp->reqlen = sizeof(cmd->sense_buffer); |
cmd | 363 | drivers/scsi/eata_dma.c | cp->cp_id = cmd->target; |
cmd | 364 | drivers/scsi/eata_dma.c | cp->cp_lun = cmd->lun; |
cmd | 367 | drivers/scsi/eata_dma.c | memcpy(cp->cp_cdb, cmd->cmnd, COMMAND_SIZE(*cmd->cmnd)); |
cmd | 372 | drivers/scsi/eata_dma.c | cp->cmd = cmd; |
cmd | 373 | drivers/scsi/eata_dma.c | cmd->host_scribble = (char *)&hd->ccb[y]; |
cmd | 376 | drivers/scsi/eata_dma.c | cmd->result = DID_ERROR << 16; |
cmd | 378 | drivers/scsi/eata_dma.c | cmd->target, cmd->pid); |
cmd | 380 | drivers/scsi/eata_dma.c | if(done != (void *)eata_scsi_done) done(cmd); |
cmd | 384 | drivers/scsi/eata_dma.c | (long)sh->base, cmd->pid, cmd->target, cmd->lun, y, sh->irq)); |
cmd | 393 | drivers/scsi/eata_dma.c | static void internal_done(Scsi_Cmnd * cmd) |
cmd | 395 | drivers/scsi/eata_dma.c | internal_done_errcode = cmd->result; |
cmd | 399 | drivers/scsi/eata_dma.c | int eata_command(Scsi_Cmnd * cmd) |
cmd | 404 | drivers/scsi/eata_dma.c | eata_queue(cmd, (void *)internal_done); |
cmd | 411 | drivers/scsi/eata_dma.c | int eata_abort(Scsi_Cmnd * cmd) |
cmd | 420 | drivers/scsi/eata_dma.c | cmd->pid, cmd->target, cmd->lun, cmd->abort_reason)); |
cmd | 424 | drivers/scsi/eata_dma.c | while (inb((uint)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY) |
cmd | 431 | drivers/scsi/eata_dma.c | if (CD(cmd)->status == FREE) { |
cmd | 436 | drivers/scsi/eata_dma.c | if (CD(cmd)->status == USED) { |
cmd | 441 | drivers/scsi/eata_dma.c | if (CD(cmd)->status == RESET) { |
cmd | 447 | drivers/scsi/eata_dma.c | if (CD(cmd)->status == LOCKED) { |
cmd | 456 | drivers/scsi/eata_dma.c | int eata_reset(Scsi_Cmnd * cmd) |
cmd | 468 | drivers/scsi/eata_dma.c | cmd->pid, cmd->target, cmd->lun, cmd->abort_reason)); |
cmd | 471 | drivers/scsi/eata_dma.c | if (HD(cmd)->state == RESET) { |
cmd | 478 | drivers/scsi/eata_dma.c | while (inb((uint)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY) |
cmd | 486 | drivers/scsi/eata_dma.c | HD(cmd)->t_state[z] = RESET; |
cmd | 488 | drivers/scsi/eata_dma.c | for (x = 0; x < cmd->host->can_queue; x++) { |
cmd | 490 | drivers/scsi/eata_dma.c | if (HD(cmd)->ccb[x].status == FREE) |
cmd | 493 | drivers/scsi/eata_dma.c | if (HD(cmd)->ccb[x].status == LOCKED) { |
cmd | 494 | drivers/scsi/eata_dma.c | HD(cmd)->ccb[x].status = FREE; |
cmd | 499 | drivers/scsi/eata_dma.c | sp = HD(cmd)->ccb[x].cmd; |
cmd | 500 | drivers/scsi/eata_dma.c | HD(cmd)->ccb[x].status = RESET; |
cmd | 508 | drivers/scsi/eata_dma.c | if (sp == cmd) |
cmd | 513 | drivers/scsi/eata_dma.c | inb((uint) (cmd->host->base) + HA_RSTATUS); /* This might cause trouble */ |
cmd | 514 | drivers/scsi/eata_dma.c | eata_send_command(0, (uint) cmd->host->base, EATA_CMD_RESET); |
cmd | 517 | drivers/scsi/eata_dma.c | HD(cmd)->state = RESET; |
cmd | 530 | drivers/scsi/eata_dma.c | for (x = 0; x < cmd->host->can_queue; x++) { |
cmd | 533 | drivers/scsi/eata_dma.c | if (HD(cmd)->ccb[x].status != RESET) |
cmd | 536 | drivers/scsi/eata_dma.c | sp = HD(cmd)->ccb[x].cmd; |
cmd | 540 | drivers/scsi/eata_dma.c | HD(cmd)->ccb[x].status = LOCKED; |
cmd | 550 | drivers/scsi/eata_dma.c | HD(cmd)->state = FALSE; |
cmd | 156 | drivers/scsi/eata_dma.h | #define HD(cmd) ((hostdata *)&(cmd->host->hostdata)) |
cmd | 157 | drivers/scsi/eata_dma.h | #define CD(cmd) ((struct eata_ccb *)(cmd->host_scribble)) |
cmd | 335 | drivers/scsi/eata_dma.h | Scsi_Cmnd *cmd; /* address of cmd */ |
cmd | 412 | drivers/scsi/in2000.c | unchar *cmd = (unchar *) SCpnt->cmnd; |
cmd | 427 | drivers/scsi/in2000.c | if ( *cmd == TEST_UNIT_READY ) |
cmd | 433 | drivers/scsi/in2000.c | if (*cmd == READ_10 || *cmd == WRITE_10) { |
cmd | 434 | drivers/scsi/in2000.c | i = xscsi2int((cmd+1)); |
cmd | 435 | drivers/scsi/in2000.c | } else if (*cmd == READ_6 || *cmd == WRITE_6) { |
cmd | 436 | drivers/scsi/in2000.c | i = scsi2int((cmd+1)); |
cmd | 443 | drivers/scsi/in2000.c | for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); |
cmd | 447 | drivers/scsi/in2000.c | if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 510 | drivers/scsi/in2000.c | outb(cmd[loop],INDATA); |
cmd | 248 | drivers/scsi/qlogic.c | static void ql_icmd(Scsi_Cmnd * cmd) |
cmd | 294 | drivers/scsi/qlogic.c | outb(cmd->target, qbase + 4); |
cmd | 296 | drivers/scsi/qlogic.c | for (i = 0; i < cmd->cmd_len; i++) |
cmd | 297 | drivers/scsi/qlogic.c | outb(cmd->cmnd[i], qbase + 2); |
cmd | 298 | drivers/scsi/qlogic.c | qlcmd = cmd; |
cmd | 304 | drivers/scsi/qlogic.c | static unsigned int ql_pcmd(Scsi_Cmnd * cmd) |
cmd | 340 | drivers/scsi/qlogic.c | reqlen = cmd->request_bufflen; |
cmd | 350 | drivers/scsi/qlogic.c | if (!cmd->use_sg) |
cmd | 351 | drivers/scsi/qlogic.c | ql_pdma(phase, cmd->request_buffer, cmd->request_bufflen); |
cmd | 353 | drivers/scsi/qlogic.c | sgcount = cmd->use_sg; |
cmd | 354 | drivers/scsi/qlogic.c | sglist = cmd->request_buffer; |
cmd | 437 | drivers/scsi/qlogic.c | static void qlidone(Scsi_Cmnd * cmd) {}; /* null function */ |
cmd | 441 | drivers/scsi/qlogic.c | int qlogic_command(Scsi_Cmnd * cmd) |
cmd | 446 | drivers/scsi/qlogic.c | qlogic_queuecommand(cmd, qlidone); |
cmd | 448 | drivers/scsi/qlogic.c | return cmd->result; |
cmd | 452 | drivers/scsi/qlogic.c | if (cmd->target == qinitid) |
cmd | 454 | drivers/scsi/qlogic.c | ql_icmd(cmd); |
cmd | 457 | drivers/scsi/qlogic.c | return ql_pcmd(cmd); |
cmd | 464 | drivers/scsi/qlogic.c | int qlogic_queuecommand(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *)) |
cmd | 466 | drivers/scsi/qlogic.c | if(cmd->target == qinitid) { |
cmd | 467 | drivers/scsi/qlogic.c | cmd->result = DID_BAD_TARGET << 16; |
cmd | 468 | drivers/scsi/qlogic.c | done(cmd); |
cmd | 472 | drivers/scsi/qlogic.c | cmd->scsi_done = done; |
cmd | 475 | drivers/scsi/qlogic.c | ql_icmd(cmd); |
cmd | 479 | drivers/scsi/qlogic.c | int qlogic_queuecommand(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *)) |
cmd | 587 | drivers/scsi/qlogic.c | int qlogic_abort(Scsi_Cmnd * cmd) |
cmd | 596 | drivers/scsi/qlogic.c | int qlogic_reset(Scsi_Cmnd * cmd) |
cmd | 2486 | drivers/scsi/scsi.c | req->cmd, |
cmd | 90 | drivers/scsi/scsi_debug.c | if (SCpnt->request.cmd != RW) panic ("Wrong operation"); \ |
cmd | 157 | drivers/scsi/scsi_debug.c | unchar *cmd = (unchar *) SCpnt->cmnd; |
cmd | 182 | drivers/scsi/scsi_debug.c | switch(*cmd){ |
cmd | 199 | drivers/scsi/scsi_debug.c | if(cmd[4]) printk("Medium removal inhibited..."); |
cmd | 237 | drivers/scsi/scsi_debug.c | if ((*cmd) == READ_10) |
cmd | 238 | drivers/scsi/scsi_debug.c | block = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); |
cmd | 240 | drivers/scsi/scsi_debug.c | block = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16); |
cmd | 316 | drivers/scsi/scsi_debug.c | memcpy(buff+sizeof(target), cmd, 24); |
cmd | 348 | drivers/scsi/scsi_debug.c | if ((*cmd) == WRITE_10) |
cmd | 349 | drivers/scsi/scsi_debug.c | block = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); |
cmd | 351 | drivers/scsi/scsi_debug.c | block = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16); |
cmd | 370 | drivers/scsi/scsi_debug.c | printk("Unknown command %d\n",*cmd); |
cmd | 91 | drivers/scsi/scsi_ioctl.c | static int ioctl_internal_command(Scsi_Device *dev, char * cmd) |
cmd | 97 | drivers/scsi/scsi_ioctl.c | scsi_do_cmd(SCpnt, cmd, NULL, 0, |
cmd | 112 | drivers/scsi/scsi_ioctl.c | if(cmd[0] == ALLOW_MEDIUM_REMOVAL) dev->lockable = 0; |
cmd | 149 | drivers/scsi/scsi_ioctl.c | char cmd[12]; |
cmd | 176 | drivers/scsi/scsi_ioctl.c | memcpy_fromfs ((void *) cmd, cmd_in, cmdlen = COMMAND_SIZE (opcode)); |
cmd | 179 | drivers/scsi/scsi_ioctl.c | cmd[1] = ( cmd[1] & 0x1f ) | (dev->lun << 5); |
cmd | 185 | drivers/scsi/scsi_ioctl.c | scsi_do_cmd(SCpnt, cmd, buf, needed, scsi_ioctl_done, MAX_TIMEOUT, |
cmd | 224 | drivers/scsi/scsi_ioctl.c | printk("%02x ", cmd[i]); |
cmd | 242 | drivers/scsi/scsi_ioctl.c | int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) |
cmd | 249 | drivers/scsi/scsi_ioctl.c | switch (cmd) { |
cmd | 305 | drivers/scsi/scsi_ioctl.c | int kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) { |
cmd | 310 | drivers/scsi/scsi_ioctl.c | tmp = scsi_ioctl (dev, cmd, arg); |
cmd | 17 | drivers/scsi/scsi_ioctl.h | extern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
cmd | 18 | drivers/scsi/scsi_ioctl.h | extern int kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
cmd | 211 | drivers/scsi/sd.c | if (SCpnt->request.cmd == READ) |
cmd | 223 | drivers/scsi/sd.c | if (SCpnt->request.cmd == READ) |
cmd | 428 | drivers/scsi/sd.c | unsigned char cmd[10]; |
cmd | 492 | drivers/scsi/sd.c | switch (SCpnt->request.cmd) |
cmd | 500 | drivers/scsi/sd.c | cmd[0] = WRITE_6; |
cmd | 503 | drivers/scsi/sd.c | cmd[0] = READ_6; |
cmd | 506 | drivers/scsi/sd.c | panic ("Unknown sd command %d\n", SCpnt->request.cmd); |
cmd | 710 | drivers/scsi/sd.c | if (SCpnt->request.cmd == WRITE) |
cmd | 732 | drivers/scsi/sd.c | if (SCpnt->request.cmd == WRITE) |
cmd | 738 | drivers/scsi/sd.c | (SCpnt->request.cmd == WRITE) ? "writing" : "reading", |
cmd | 742 | drivers/scsi/sd.c | cmd[1] = (SCpnt->lun << 5) & 0xe0; |
cmd | 761 | drivers/scsi/sd.c | cmd[0] += READ_10 - READ_6 ; |
cmd | 762 | drivers/scsi/sd.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
cmd | 763 | drivers/scsi/sd.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
cmd | 764 | drivers/scsi/sd.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
cmd | 765 | drivers/scsi/sd.c | cmd[5] = (unsigned char) block & 0xff; |
cmd | 766 | drivers/scsi/sd.c | cmd[6] = cmd[9] = 0; |
cmd | 767 | drivers/scsi/sd.c | cmd[7] = (unsigned char) (this_count >> 8) & 0xff; |
cmd | 768 | drivers/scsi/sd.c | cmd[8] = (unsigned char) this_count & 0xff; |
cmd | 775 | drivers/scsi/sd.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
cmd | 776 | drivers/scsi/sd.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
cmd | 777 | drivers/scsi/sd.c | cmd[3] = (unsigned char) block & 0xff; |
cmd | 778 | drivers/scsi/sd.c | cmd[4] = (unsigned char) this_count; |
cmd | 779 | drivers/scsi/sd.c | cmd[5] = 0; |
cmd | 790 | drivers/scsi/sd.c | scsi_do_cmd (SCpnt, (void *) cmd, buff, |
cmd | 846 | drivers/scsi/sd.c | unsigned char cmd[10]; |
cmd | 864 | drivers/scsi/sd.c | cmd[0] = TEST_UNIT_READY; |
cmd | 865 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
cmd | 866 | drivers/scsi/sd.c | memset ((void *) &cmd[2], 0, 8); |
cmd | 873 | drivers/scsi/sd.c | (void *) cmd, (void *) buffer, |
cmd | 888 | drivers/scsi/sd.c | cmd[0] = START_STOP; |
cmd | 889 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
cmd | 890 | drivers/scsi/sd.c | cmd[1] |= 1; /* Return immediately */ |
cmd | 891 | drivers/scsi/sd.c | memset ((void *) &cmd[2], 0, 8); |
cmd | 892 | drivers/scsi/sd.c | cmd[4] = 1; /* Start spin cycle */ |
cmd | 899 | drivers/scsi/sd.c | (void *) cmd, (void *) buffer, |
cmd | 924 | drivers/scsi/sd.c | cmd[0] = READ_CAPACITY; |
cmd | 925 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
cmd | 926 | drivers/scsi/sd.c | memset ((void *) &cmd[2], 0, 8); |
cmd | 934 | drivers/scsi/sd.c | (void *) cmd, (void *) buffer, |
cmd | 18 | drivers/scsi/sd_ioctl.c | int sd_ioctl(struct inode * inode, struct file * file, unsigned int cmd, unsigned long arg) |
cmd | 26 | drivers/scsi/sd_ioctl.c | switch (cmd) { |
cmd | 73 | drivers/scsi/sd_ioctl.c | return scsi_ioctl(rscsi_disks[MINOR(dev) >> 4].device , cmd, (void *) arg); |
cmd | 1597 | drivers/scsi/seagate.c | unsigned char buf[256 + sizeof(int) * 2], cmd[6], *data, *page; |
cmd | 1612 | drivers/scsi/seagate.c | cmd[0] = MODE_SENSE; |
cmd | 1613 | drivers/scsi/seagate.c | cmd[1] = (disk->device->lun << 5) & 0xe5; |
cmd | 1614 | drivers/scsi/seagate.c | cmd[2] = 0x04; /* Read page 4, rigid disk geometry page current values */ |
cmd | 1615 | drivers/scsi/seagate.c | cmd[3] = 0; |
cmd | 1616 | drivers/scsi/seagate.c | cmd[4] = 255; |
cmd | 1617 | drivers/scsi/seagate.c | cmd[5] = 0; |
cmd | 1627 | drivers/scsi/seagate.c | memcpy (data, cmd, 6); |
cmd | 1639 | drivers/scsi/seagate.c | cmd[2] = 0x03; /* Read page 3, format page current values */ |
cmd | 1640 | drivers/scsi/seagate.c | memcpy (data, cmd, 6); |
cmd | 305 | drivers/scsi/sr.c | unsigned char *cmd; /* the scsi-command */ |
cmd | 322 | drivers/scsi/sr.c | cmd = rec = &buf[8]; |
cmd | 332 | drivers/scsi/sr.c | cmd[0] = 0xde; |
cmd | 333 | drivers/scsi/sr.c | cmd[1] = 0x03; |
cmd | 334 | drivers/scsi/sr.c | cmd[2] = 0xb0; |
cmd | 367 | drivers/scsi/sr.c | cmd[0] = 0xc7; |
cmd | 368 | drivers/scsi/sr.c | cmd[1] = 3; |
cmd | 396 | drivers/scsi/sr.c | cmd[0] = 0x1a; |
cmd | 397 | drivers/scsi/sr.c | cmd[2] = 1; |
cmd | 398 | drivers/scsi/sr.c | cmd[4] = 12; |
cmd | 417 | drivers/scsi/sr.c | cmd[0] = 0x15; |
cmd | 418 | drivers/scsi/sr.c | cmd[1] = (1 << 4); |
cmd | 419 | drivers/scsi/sr.c | cmd[4] = 12; |
cmd | 420 | drivers/scsi/sr.c | send = &cmd[6]; /* this is a 6-Byte command */ |
cmd | 547 | drivers/scsi/sr.c | unsigned char cmd[10], *buffer, tries; |
cmd | 590 | drivers/scsi/sr.c | switch (SCpnt->request.cmd) |
cmd | 597 | drivers/scsi/sr.c | cmd[0] = READ_6; |
cmd | 600 | drivers/scsi/sr.c | panic ("Unknown sr command %d\n", SCpnt->request.cmd); |
cmd | 603 | drivers/scsi/sr.c | cmd[1] = (SCpnt->lun << 5) & 0xe0; |
cmd | 777 | drivers/scsi/sr.c | cmd[0] += READ_10 - READ_6 ; |
cmd | 778 | drivers/scsi/sr.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
cmd | 779 | drivers/scsi/sr.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
cmd | 780 | drivers/scsi/sr.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
cmd | 781 | drivers/scsi/sr.c | cmd[5] = (unsigned char) block & 0xff; |
cmd | 782 | drivers/scsi/sr.c | cmd[6] = cmd[9] = 0; |
cmd | 783 | drivers/scsi/sr.c | cmd[7] = (unsigned char) (realcount >> 8) & 0xff; |
cmd | 784 | drivers/scsi/sr.c | cmd[8] = (unsigned char) realcount & 0xff; |
cmd | 794 | drivers/scsi/sr.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
cmd | 795 | drivers/scsi/sr.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
cmd | 796 | drivers/scsi/sr.c | cmd[3] = (unsigned char) block & 0xff; |
cmd | 797 | drivers/scsi/sr.c | cmd[4] = (unsigned char) realcount; |
cmd | 798 | drivers/scsi/sr.c | cmd[5] = 0; |
cmd | 807 | drivers/scsi/sr.c | for(i=0; i<12; i++) printk("%2.2x ", cmd[i]); |
cmd | 826 | drivers/scsi/sr.c | scsi_do_cmd (SCpnt, (void *) cmd, buffer, |
cmd | 881 | drivers/scsi/sr.c | unsigned char cmd[10]; |
cmd | 891 | drivers/scsi/sr.c | cmd[0] = READ_CAPACITY; |
cmd | 892 | drivers/scsi/sr.c | cmd[1] = (scsi_CDs[i].device->lun << 5) & 0xe0; |
cmd | 893 | drivers/scsi/sr.c | memset ((void *) &cmd[2], 0, 8); |
cmd | 900 | drivers/scsi/sr.c | (void *) cmd, (void *) buffer, |
cmd | 20 | drivers/scsi/sr_ioctl.c | extern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
cmd | 92 | drivers/scsi/sr_ioctl.c | int sr_ioctl(struct inode * inode, struct file * file, unsigned int cmd, unsigned long arg) |
cmd | 104 | drivers/scsi/sr_ioctl.c | switch (cmd) |
cmd | 429 | drivers/scsi/sr_ioctl.c | return scsi_ioctl(scsi_CDs[target].device,cmd,(void *) arg); |
cmd | 240 | drivers/scsi/st.c | unsigned char cmd[10]; |
cmd | 242 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 243 | drivers/scsi/st.c | cmd[1] = 0x01; /* Space FileMarks */ |
cmd | 244 | drivers/scsi/st.c | cmd[2] = cmd[3] = cmd[4] = 0xff; /* -1 filemarks */ |
cmd | 245 | drivers/scsi/st.c | cmd[5] = 0; |
cmd | 251 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, 0, |
cmd | 273 | drivers/scsi/st.c | unsigned char cmd[10]; |
cmd | 305 | drivers/scsi/st.c | memset(cmd, 0, 10); |
cmd | 306 | drivers/scsi/st.c | cmd[0] = WRITE_6; |
cmd | 307 | drivers/scsi/st.c | cmd[1] = 1; |
cmd | 309 | drivers/scsi/st.c | cmd[2] = blks >> 16; |
cmd | 310 | drivers/scsi/st.c | cmd[3] = blks >> 8; |
cmd | 311 | drivers/scsi/st.c | cmd[4] = blks; |
cmd | 314 | drivers/scsi/st.c | (void *) cmd, (STp->buffer)->b_data, transfer, |
cmd | 397 | drivers/scsi/st.c | unsigned char cmd[10]; |
cmd | 441 | drivers/scsi/st.c | memset ((void *) &cmd[0], 0, 10); |
cmd | 442 | drivers/scsi/st.c | cmd[0] = TEST_UNIT_READY; |
cmd | 445 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, |
cmd | 455 | drivers/scsi/st.c | memset ((void *) &cmd[0], 0, 10); |
cmd | 456 | drivers/scsi/st.c | cmd[0] = TEST_UNIT_READY; |
cmd | 459 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, |
cmd | 491 | drivers/scsi/st.c | memset ((void *) &cmd[0], 0, 10); |
cmd | 492 | drivers/scsi/st.c | cmd[0] = READ_BLOCK_LIMITS; |
cmd | 495 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, |
cmd | 520 | drivers/scsi/st.c | memset ((void *) &cmd[0], 0, 10); |
cmd | 521 | drivers/scsi/st.c | cmd[0] = MODE_SENSE; |
cmd | 522 | drivers/scsi/st.c | cmd[4] = 12; |
cmd | 525 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, |
cmd | 612 | drivers/scsi/st.c | static unsigned char cmd[10]; |
cmd | 634 | drivers/scsi/st.c | memset(cmd, 0, 10); |
cmd | 635 | drivers/scsi/st.c | cmd[0] = WRITE_FILEMARKS; |
cmd | 636 | drivers/scsi/st.c | cmd[4] = 1 + STp->two_fm; |
cmd | 639 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, |
cmd | 661 | drivers/scsi/st.c | printk("st%d: Buffer flushed, %d EOF(s) written\n", dev, cmd[4]); |
cmd | 695 | drivers/scsi/st.c | static unsigned char cmd[10]; |
cmd | 764 | drivers/scsi/st.c | memset(cmd, 0, 10); |
cmd | 765 | drivers/scsi/st.c | cmd[0] = WRITE_6; |
cmd | 766 | drivers/scsi/st.c | cmd[1] = (STp->block_size != 0); |
cmd | 793 | drivers/scsi/st.c | cmd[2] = blks >> 16; |
cmd | 794 | drivers/scsi/st.c | cmd[3] = blks >> 8; |
cmd | 795 | drivers/scsi/st.c | cmd[4] = blks; |
cmd | 799 | drivers/scsi/st.c | (void *) cmd, (STp->buffer)->b_data, transfer, |
cmd | 904 | drivers/scsi/st.c | cmd[2] = blks >> 16; |
cmd | 905 | drivers/scsi/st.c | cmd[3] = blks >> 8; |
cmd | 906 | drivers/scsi/st.c | cmd[4] = blks; |
cmd | 911 | drivers/scsi/st.c | (void *) cmd, (STp->buffer)->b_data, |
cmd | 930 | drivers/scsi/st.c | static unsigned char cmd[10]; |
cmd | 979 | drivers/scsi/st.c | memset(cmd, 0, 10); |
cmd | 980 | drivers/scsi/st.c | cmd[0] = READ_6; |
cmd | 981 | drivers/scsi/st.c | cmd[1] = (STp->block_size != 0); |
cmd | 997 | drivers/scsi/st.c | cmd[2] = blks >> 16; |
cmd | 998 | drivers/scsi/st.c | cmd[3] = blks >> 8; |
cmd | 999 | drivers/scsi/st.c | cmd[4] = blks; |
cmd | 1004 | drivers/scsi/st.c | (void *) cmd, (STp->buffer)->b_data, |
cmd | 1217 | drivers/scsi/st.c | unsigned char cmd[10]; |
cmd | 1230 | drivers/scsi/st.c | memset(cmd, 0, 10); |
cmd | 1235 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1236 | drivers/scsi/st.c | cmd[1] = 0x01; /* Space FileMarks */ |
cmd | 1237 | drivers/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 1238 | drivers/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 1239 | drivers/scsi/st.c | cmd[4] = arg; |
cmd | 1243 | drivers/scsi/st.c | cmd[2] * 65536 + cmd[3] * 256 + cmd[4]); |
cmd | 1252 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1253 | drivers/scsi/st.c | cmd[1] = 0x01; /* Space FileMarks */ |
cmd | 1255 | drivers/scsi/st.c | cmd[2] = (ltmp >> 16); |
cmd | 1256 | drivers/scsi/st.c | cmd[3] = (ltmp >> 8); |
cmd | 1257 | drivers/scsi/st.c | cmd[4] = ltmp; |
cmd | 1260 | drivers/scsi/st.c | if (cmd[2] & 0x80) |
cmd | 1262 | drivers/scsi/st.c | ltmp = ltmp | (cmd[2] << 16) | (cmd[3] << 8) | cmd[4]; |
cmd | 1272 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1273 | drivers/scsi/st.c | cmd[1] = 0x00; /* Space Blocks */ |
cmd | 1274 | drivers/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 1275 | drivers/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 1276 | drivers/scsi/st.c | cmd[4] = arg; |
cmd | 1280 | drivers/scsi/st.c | cmd[2] * 65536 + cmd[3] * 256 + cmd[4]); |
cmd | 1287 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1288 | drivers/scsi/st.c | cmd[1] = 0x00; /* Space Blocks */ |
cmd | 1290 | drivers/scsi/st.c | cmd[2] = (ltmp >> 16); |
cmd | 1291 | drivers/scsi/st.c | cmd[3] = (ltmp >> 8); |
cmd | 1292 | drivers/scsi/st.c | cmd[4] = ltmp; |
cmd | 1295 | drivers/scsi/st.c | if (cmd[2] & 0x80) |
cmd | 1297 | drivers/scsi/st.c | ltmp = ltmp | (cmd[2] << 16) | (cmd[3] << 8) | cmd[4]; |
cmd | 1306 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1307 | drivers/scsi/st.c | cmd[1] = 0x04; /* Space Setmarks */ |
cmd | 1308 | drivers/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 1309 | drivers/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 1310 | drivers/scsi/st.c | cmd[4] = arg; |
cmd | 1314 | drivers/scsi/st.c | cmd[2] * 65536 + cmd[3] * 256 + cmd[4]); |
cmd | 1322 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1323 | drivers/scsi/st.c | cmd[1] = 0x04; /* Space Setmarks */ |
cmd | 1325 | drivers/scsi/st.c | cmd[2] = (ltmp >> 16); |
cmd | 1326 | drivers/scsi/st.c | cmd[3] = (ltmp >> 8); |
cmd | 1327 | drivers/scsi/st.c | cmd[4] = ltmp; |
cmd | 1330 | drivers/scsi/st.c | if (cmd[2] & 0x80) |
cmd | 1332 | drivers/scsi/st.c | ltmp = ltmp | (cmd[2] << 16) | (cmd[3] << 8) | cmd[4]; |
cmd | 1345 | drivers/scsi/st.c | cmd[0] = WRITE_FILEMARKS; |
cmd | 1347 | drivers/scsi/st.c | cmd[1] = 2; |
cmd | 1348 | drivers/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 1349 | drivers/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 1350 | drivers/scsi/st.c | cmd[4] = arg; |
cmd | 1356 | drivers/scsi/st.c | cmd[2] * 65536 + cmd[3] * 256 + cmd[4]); |
cmd | 1359 | drivers/scsi/st.c | cmd[2] * 65536 + cmd[3] * 256 + cmd[4]); |
cmd | 1368 | drivers/scsi/st.c | cmd[0] = REZERO_UNIT; |
cmd | 1370 | drivers/scsi/st.c | cmd[1] = 1; /* Don't wait for completion */ |
cmd | 1380 | drivers/scsi/st.c | cmd[0] = START_STOP; |
cmd | 1382 | drivers/scsi/st.c | cmd[1] = 1; /* Don't wait for completion */ |
cmd | 1399 | drivers/scsi/st.c | cmd[0] = START_STOP; |
cmd | 1401 | drivers/scsi/st.c | cmd[1] = 1; /* Don't wait for completion */ |
cmd | 1404 | drivers/scsi/st.c | cmd[4] = 3; |
cmd | 1425 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1426 | drivers/scsi/st.c | cmd[1] = 3; |
cmd | 1437 | drivers/scsi/st.c | cmd[0] = ERASE; |
cmd | 1438 | drivers/scsi/st.c | cmd[1] = 1; /* To the end of tape */ |
cmd | 1440 | drivers/scsi/st.c | cmd[1] |= 2; /* Don't wait for completion */ |
cmd | 1453 | drivers/scsi/st.c | cmd[0] = QFA_SEEK_BLOCK; |
cmd | 1454 | drivers/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 1455 | drivers/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 1456 | drivers/scsi/st.c | cmd[4] = arg; |
cmd | 1457 | drivers/scsi/st.c | cmd[5] = 0; |
cmd | 1460 | drivers/scsi/st.c | cmd[0] = SEEK_10; |
cmd | 1461 | drivers/scsi/st.c | cmd[1] = 4; |
cmd | 1462 | drivers/scsi/st.c | cmd[3] = (arg >> 24); |
cmd | 1463 | drivers/scsi/st.c | cmd[4] = (arg >> 16); |
cmd | 1464 | drivers/scsi/st.c | cmd[5] = (arg >> 8); |
cmd | 1465 | drivers/scsi/st.c | cmd[6] = arg; |
cmd | 1468 | drivers/scsi/st.c | cmd[1] |= 1; /* Don't wait for completion */ |
cmd | 1490 | drivers/scsi/st.c | cmd[0] = MODE_SELECT; |
cmd | 1491 | drivers/scsi/st.c | cmd[4] = datalen = 12; |
cmd | 1537 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, datalen, |
cmd | 1659 | drivers/scsi/st.c | int i, cmd, result; |
cmd | 1675 | drivers/scsi/st.c | cmd = cmd_in & IOCCMD_MASK; |
cmd | 1676 | drivers/scsi/st.c | if (cmd == (MTIOCTOP & IOCCMD_MASK)) { |
cmd | 1703 | drivers/scsi/st.c | else if (cmd == (MTIOCGET & IOCCMD_MASK)) { |
cmd | 1756 | drivers/scsi/st.c | else if (cmd == (MTIOCPOS & IOCCMD_MASK)) { |
cmd | 567 | drivers/scsi/wd7000.c | static inline int command_out(Adapter *host, unchar *cmd, int len) |
cmd | 572 | drivers/scsi/wd7000.c | outb(*cmd, host->iobase+ASC_COMMAND); |
cmd | 575 | drivers/scsi/wd7000.c | cmd++; |
cmd | 90 | drivers/sound/ad1848.c | static int ad1848_ioctl (int dev, unsigned int cmd, unsigned int arg, int local); |
cmd | 409 | drivers/sound/ad1848.c | ad1848_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
cmd | 413 | drivers/sound/ad1848.c | switch (cmd) |
cmd | 322 | drivers/sound/audio.c | unsigned int cmd, unsigned int arg) |
cmd | 327 | drivers/sound/audio.c | switch (cmd) |
cmd | 336 | drivers/sound/audio.c | return DMAbuf_ioctl (dev, cmd, arg, 0); |
cmd | 351 | drivers/sound/audio.c | return DMAbuf_ioctl (dev, cmd, arg, 0); |
cmd | 362 | drivers/sound/audio.c | return DMAbuf_ioctl (dev, cmd, arg, 0); |
cmd | 405 | drivers/sound/audio.c | unsigned int cmd, unsigned int arg) |
cmd | 124 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg, int local); |
cmd | 139 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg); |
cmd | 150 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg); |
cmd | 178 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg); |
cmd | 196 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg); |
cmd | 391 | drivers/sound/dmabuf.c | DMAbuf_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
cmd | 395 | drivers/sound/dmabuf.c | switch (cmd) |
cmd | 482 | drivers/sound/dmabuf.c | return audio_devs[dev]->ioctl (dev, cmd, arg, local); |
cmd | 915 | drivers/sound/dmabuf.c | DMAbuf_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
cmd | 195 | drivers/sound/gus_midi.c | gus_midi_ioctl (int dev, unsigned cmd, unsigned arg) |
cmd | 840 | drivers/sound/gus_wave.c | unsigned int cmd, unsigned int arg) |
cmd | 843 | drivers/sound/gus_wave.c | switch (cmd) |
cmd | 1723 | drivers/sound/gus_wave.c | int voice, cmd; |
cmd | 1727 | drivers/sound/gus_wave.c | cmd = event[2]; |
cmd | 1734 | drivers/sound/gus_wave.c | (cmd != _GUS_VOICESAMPLE) && (cmd != _GUS_VOICE_POS)) |
cmd | 1737 | drivers/sound/gus_wave.c | switch (cmd) |
cmd | 1907 | drivers/sound/gus_wave.c | gus_sampling_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
cmd | 1909 | drivers/sound/gus_wave.c | switch (cmd) |
cmd | 2703 | drivers/sound/gus_wave.c | gus_default_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg) |
cmd | 2707 | drivers/sound/gus_wave.c | if (((cmd >> 8) & 0xff) == 'M') |
cmd | 2709 | drivers/sound/gus_wave.c | if (cmd & IOC_IN) |
cmd | 2710 | drivers/sound/gus_wave.c | switch (cmd & 0xff) |
cmd | 2781 | drivers/sound/gus_wave.c | switch (cmd & 0xff) /* |
cmd | 135 | drivers/sound/ics2101.c | ics2101_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg) |
cmd | 137 | drivers/sound/ics2101.c | if (((cmd >> 8) & 0xff) == 'M') |
cmd | 139 | drivers/sound/ics2101.c | if (cmd & IOC_IN) |
cmd | 140 | drivers/sound/ics2101.c | switch (cmd & 0xff) |
cmd | 143 | drivers/sound/ics2101.c | return gus_default_mixer_ioctl (dev, cmd, arg); |
cmd | 170 | drivers/sound/ics2101.c | switch (cmd & 0xff) /* |
cmd | 176 | drivers/sound/ics2101.c | return gus_default_mixer_ioctl (dev, cmd, arg); |
cmd | 103 | drivers/sound/midi_synth.c | unsigned int cmd, unsigned int arg) |
cmd | 109 | drivers/sound/midi_synth.c | switch (cmd) |
cmd | 2 | drivers/sound/midi_synth.h | unsigned int cmd, unsigned int arg); |
cmd | 376 | drivers/sound/midibuf.c | unsigned int cmd, unsigned int arg) |
cmd | 382 | drivers/sound/midibuf.c | switch (cmd) |
cmd | 396 | drivers/sound/midibuf.c | return midi_devs[dev]->ioctl (dev, cmd, arg); |
cmd | 88 | drivers/sound/mpu401.c | #define write_command(base, cmd) OUTB(cmd, COMDPORT(base)) |
cmd | 144 | drivers/sound/mpu401.c | #define STORE(cmd) \ |
cmd | 149 | drivers/sound/mpu401.c | cmd; \ |
cmd | 608 | drivers/sound/mpu401.c | mpu401_command (int dev, mpu_command_rec * cmd) |
cmd | 641 | drivers/sound/mpu401.c | printk ("MPU-401: Command (0x%x) timeout\n", (int) cmd->cmd); |
cmd | 646 | drivers/sound/mpu401.c | write_command (devc->base, cmd->cmd); |
cmd | 656 | drivers/sound/mpu401.c | printk ("MPU: No ACK to command (0x%x)\n", (int) cmd->cmd); |
cmd | 660 | drivers/sound/mpu401.c | if (cmd->nr_args) |
cmd | 661 | drivers/sound/mpu401.c | for (i = 0; i < cmd->nr_args; i++) |
cmd | 665 | drivers/sound/mpu401.c | if (!mpu401_out (dev, cmd->data[i])) |
cmd | 668 | drivers/sound/mpu401.c | printk ("MPU: Command (0x%x), parm send failed.\n", (int) cmd->cmd); |
cmd | 674 | drivers/sound/mpu401.c | cmd->data[0] = 0; |
cmd | 676 | drivers/sound/mpu401.c | if (cmd->nr_returns) |
cmd | 677 | drivers/sound/mpu401.c | for (i = 0; i < cmd->nr_returns; i++) |
cmd | 683 | drivers/sound/mpu401.c | cmd->data[i] = read_data (devc->base); |
cmd | 690 | drivers/sound/mpu401.c | printk ("MPU: No response(%d) to command (0x%x)\n", i, (int) cmd->cmd); |
cmd | 701 | drivers/sound/mpu401.c | exec_cmd (int dev, int cmd, int data) |
cmd | 707 | drivers/sound/mpu401.c | rec.cmd = cmd & 0xff; |
cmd | 708 | drivers/sound/mpu401.c | rec.nr_args = ((cmd & 0xf0) == 0xE0); |
cmd | 709 | drivers/sound/mpu401.c | rec.nr_returns = ((cmd & 0xf0) == 0xA0); |
cmd | 762 | drivers/sound/mpu401.c | mpu401_ioctl (int dev, unsigned cmd, unsigned arg) |
cmd | 768 | drivers/sound/mpu401.c | switch (cmd) |
cmd | 820 | drivers/sound/mpu401.c | unsigned int cmd, unsigned int arg) |
cmd | 832 | drivers/sound/mpu401.c | switch (cmd) |
cmd | 133 | drivers/sound/opl3.c | unsigned int cmd, unsigned int arg) |
cmd | 135 | drivers/sound/opl3.c | switch (cmd) |
cmd | 217 | drivers/sound/pas2_midi.c | pas_midi_ioctl (int dev, unsigned cmd, unsigned arg) |
cmd | 306 | drivers/sound/pas2_mixer.c | pas_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg) |
cmd | 308 | 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 | 310 | drivers/sound/pas2_mixer.c | if (((cmd >> 8) & 0xff) == 'M') |
cmd | 312 | drivers/sound/pas2_mixer.c | if (cmd & IOC_IN) |
cmd | 313 | drivers/sound/pas2_mixer.c | return IOCTL_OUT (arg, pas_mixer_set (cmd & 0xff, IOCTL_IN (arg))); |
cmd | 319 | drivers/sound/pas2_mixer.c | switch (cmd & 0xff) |
cmd | 363 | drivers/sound/pas2_mixer.c | return IOCTL_OUT (arg, levels[cmd & 0xff]); |
cmd | 156 | drivers/sound/pas2_pcm.c | pas_pcm_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
cmd | 158 | 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 | 160 | drivers/sound/pas2_pcm.c | switch (cmd) |
cmd | 844 | drivers/sound/pss.c | unsigned int cmd, unsigned int arg) |
cmd | 846 | drivers/sound/pss.c | DEB (printk ("pss_ioctl dev=%d cmd=%x\n", dev, cmd)); |
cmd | 852 | drivers/sound/pss.c | switch (cmd) |
cmd | 73 | drivers/sound/sb16_dsp.c | static int sb16_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg, int local); |
cmd | 159 | drivers/sound/sb16_dsp.c | sb16_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
cmd | 161 | drivers/sound/sb16_dsp.c | switch (cmd) |
cmd | 45 | drivers/sound/sb16_midi.c | #define sb16midi_cmd(cmd) OUTB(cmd, COMDPORT) |
cmd | 157 | drivers/sound/sb16_midi.c | sb16midi_ioctl (int dev, unsigned cmd, unsigned arg) |
cmd | 647 | drivers/sound/sb_dsp.c | sb_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
cmd | 649 | drivers/sound/sb_dsp.c | switch (cmd) |
cmd | 192 | drivers/sound/sb_midi.c | sb_midi_ioctl (int dev, unsigned cmd, unsigned arg) |
cmd | 328 | drivers/sound/sb_mixer.c | sb_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg) |
cmd | 330 | drivers/sound/sb_mixer.c | if (((cmd >> 8) & 0xff) == 'M') |
cmd | 332 | drivers/sound/sb_mixer.c | if (cmd & IOC_IN) |
cmd | 333 | drivers/sound/sb_mixer.c | switch (cmd & 0xff) |
cmd | 340 | drivers/sound/sb_mixer.c | return IOCTL_OUT (arg, sb_mixer_set (cmd & 0xff, IOCTL_IN (arg))); |
cmd | 343 | drivers/sound/sb_mixer.c | switch (cmd & 0xff) /* |
cmd | 370 | drivers/sound/sb_mixer.c | return IOCTL_OUT (arg, sb_mixer_get (cmd & 0xff)); |
cmd | 472 | drivers/sound/sequencer.c | unsigned char cmd = event[2]; |
cmd | 490 | drivers/sound/sequencer.c | if (cmd == MIDI_NOTEON && parm == 0) |
cmd | 492 | drivers/sound/sequencer.c | cmd = MIDI_NOTEOFF; |
cmd | 497 | drivers/sound/sequencer.c | switch (cmd) |
cmd | 538 | drivers/sound/sequencer.c | unsigned char cmd = event[2]; |
cmd | 552 | drivers/sound/sequencer.c | switch (cmd) |
cmd | 617 | drivers/sound/sequencer.c | unsigned char cmd = event[1]; |
cmd | 641 | drivers/sound/sequencer.c | switch (cmd) |
cmd | 1326 | drivers/sound/sequencer.c | unsigned int cmd, unsigned int arg) |
cmd | 1333 | drivers/sound/sequencer.c | switch (cmd) |
cmd | 1347 | drivers/sound/sequencer.c | return tmr->ioctl (tmr_no, cmd, arg); |
cmd | 1449 | drivers/sound/sequencer.c | return tmr->ioctl (tmr_no, cmd, arg); |
cmd | 1468 | drivers/sound/sequencer.c | return synth_devs[dev]->ioctl (dev, cmd, arg); |
cmd | 1489 | drivers/sound/sequencer.c | return IOCTL_OUT (arg, synth_devs[dev]->ioctl (dev, cmd, arg)); |
cmd | 1503 | drivers/sound/sequencer.c | synth_devs[dev]->ioctl (dev, cmd, arg); |
cmd | 1522 | drivers/sound/sequencer.c | return synth_devs[dev]->ioctl (dev, cmd, arg); |
cmd | 1654 | drivers/sound/sequencer.c | return synth_devs[0]->ioctl (0, cmd, arg); |
cmd | 1838 | drivers/sound/sequencer.c | unsigned int cmd, unsigned int arg) |
cmd | 11 | drivers/sound/sound_calls.h | int DMAbuf_ioctl(int dev, unsigned int cmd, unsigned int arg, int local); |
cmd | 29 | drivers/sound/sound_calls.h | unsigned int cmd, unsigned int arg); |
cmd | 42 | drivers/sound/sound_calls.h | unsigned int cmd, unsigned int arg); |
cmd | 64 | drivers/sound/sound_calls.h | unsigned int cmd, unsigned int arg); |
cmd | 114 | drivers/sound/sound_calls.h | unsigned int cmd, unsigned long arg); |
cmd | 192 | drivers/sound/sound_calls.h | int gus_default_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg); |
cmd | 241 | drivers/sound/sound_calls.h | unsigned int cmd, unsigned int arg); |
cmd | 471 | drivers/sound/sound_switch.c | unsigned int cmd, unsigned long arg) |
cmd | 473 | drivers/sound/sound_switch.c | DEB (printk ("sound_ioctl_sw(dev=%d, cmd=0x%x, arg=0x%x)\n", dev, cmd, arg)); |
cmd | 476 | drivers/sound/sound_switch.c | if ((cmd >> 8) & 0xff == 'M') /* |
cmd | 479 | drivers/sound/sound_switch.c | return mixer_devs[0]->ioctl (0, cmd, arg); |
cmd | 494 | drivers/sound/sound_switch.c | return mixer_devs[dev]->ioctl (dev, cmd, arg); |
cmd | 499 | drivers/sound/sound_switch.c | return sequencer_ioctl (dev, file, cmd, arg); |
cmd | 505 | drivers/sound/sound_switch.c | return audio_ioctl (dev, file, cmd, arg); |
cmd | 510 | drivers/sound/sound_switch.c | return MIDIbuf_ioctl (dev, file, cmd, arg); |
cmd | 516 | drivers/sound/sound_switch.c | return pss_ioctl (dev, file, cmd, arg); |
cmd | 175 | drivers/sound/sound_timer.c | unsigned char cmd = event[1]; |
cmd | 178 | drivers/sound/sound_timer.c | switch (cmd) |
cmd | 248 | drivers/sound/sound_timer.c | unsigned int cmd, unsigned int arg) |
cmd | 250 | drivers/sound/sound_timer.c | switch (cmd) |
cmd | 127 | drivers/sound/soundcard.c | unsigned int cmd, unsigned long arg) |
cmd | 134 | drivers/sound/soundcard.c | return sound_ioctl_sw (dev, &files[dev], cmd, arg); |
cmd | 129 | drivers/sound/sys_timer.c | unsigned char cmd = event[1]; |
cmd | 132 | drivers/sound/sys_timer.c | switch (cmd) |
cmd | 199 | drivers/sound/sys_timer.c | unsigned int cmd, unsigned int arg) |
cmd | 201 | drivers/sound/sys_timer.c | switch (cmd) |
cmd | 48 | drivers/sound/uart6850.c | #define uart6850_cmd(cmd) OUTB(cmd, COMDPORT) |
cmd | 220 | drivers/sound/uart6850.c | uart6850_ioctl (int dev, unsigned cmd, unsigned arg) |
cmd | 18 | fs/ext2/ioctl.c | int ext2_ioctl (struct inode * inode, struct file * filp, unsigned int cmd, |
cmd | 24 | fs/ext2/ioctl.c | ext2_debug ("cmd = %u, arg = %lu\n", cmd, arg); |
cmd | 26 | 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 | 74 | fs/fcntl.c | switch (cmd) { |
cmd | 107 | fs/fcntl.c | return fcntl_setlk(fd, cmd, (struct flock *) arg); |
cmd | 109 | fs/fcntl.c | return fcntl_setlk(fd, cmd, (struct flock *) arg); |
cmd | 168 | fs/fcntl.c | return (sock_fcntl (filp, cmd, arg)); |
cmd | 17 | fs/ioctl.c | static int file_ioctl(struct file *filp,unsigned int cmd,unsigned long arg) |
cmd | 22 | fs/ioctl.c | switch (cmd) { |
cmd | 53 | fs/ioctl.c | return filp->f_op->ioctl(filp->f_inode, filp, cmd,arg); |
cmd | 58 | fs/ioctl.c | asmlinkage int sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) |
cmd | 65 | fs/ioctl.c | switch (cmd) { |
cmd | 93 | fs/ioctl.c | return file_ioctl(filp,cmd,arg); |
cmd | 96 | 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 | 143 | fs/locks.c | if (cmd == F_SETLKW) { |
cmd | 135 | fs/pipe.c | unsigned int cmd, unsigned long arg) |
cmd | 139 | fs/pipe.c | switch (cmd) { |
cmd | 29 | fs/umsdos/ioctl.c | unsigned int cmd, |
cmd | 38 | fs/umsdos/ioctl.c | || cmd == UMSDOS_GETVERSION){ |
cmd | 60 | fs/umsdos/ioctl.c | PRINTK (("ioctl %d ",cmd)); |
cmd | 61 | fs/umsdos/ioctl.c | if (cmd == UMSDOS_GETVERSION){ |
cmd | 75 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_READDIR_DOS){ |
cmd | 84 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_READDIR_EMD){ |
cmd | 127 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_INIT_EMD){ |
cmd | 150 | fs/umsdos/ioctl.c | if (cmd == UMSDOS_CREAT_EMD){ |
cmd | 167 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_RENAME_DOS){ |
cmd | 182 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_UNLINK_EMD){ |
cmd | 200 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_UNLINK_DOS){ |
cmd | 211 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_RMDIR_DOS){ |
cmd | 222 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_STAT_DOS){ |
cmd | 246 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_DOS_SETUP){ |
cmd | 16 | include/linux/blkdev.h | int cmd; /* READ or WRITE */ |
cmd | 231 | include/linux/fd.h | unsigned char cmd[9]; |
cmd | 32 | include/linux/ioctl.h | #define IOC_SIZE(cmd) (((cmd) & IOCSIZE_MASK) >> IOCSIZE_SHIFT) |
cmd | 33 | include/linux/ioctl.h | #define IOCBASECMD(cmd) ((cmd) & ~IOCPARM_MASK) |
cmd | 34 | include/linux/ioctl.h | #define IOCGROUP(cmd) (((cmd) >> 8) & 0xFF) |
cmd | 109 | include/linux/net.h | int (*ioctl) (struct socket *sock, unsigned int cmd, |
cmd | 125 | include/linux/net.h | int (*fcntl) (struct socket *sock, unsigned int cmd, |
cmd | 159 | include/linux/netdevice.h | int (*do_ioctl)(struct device *dev, struct ifreq *ifr, int cmd); |
cmd | 213 | include/linux/netdevice.h | extern int dev_ioctl(unsigned int cmd, void *); |
cmd | 522 | include/linux/soundcard.h | unsigned char cmd; |
cmd | 311 | include/linux/tty.h | unsigned int cmd, unsigned long arg); |
cmd | 329 | include/linux/tty.h | unsigned int cmd, unsigned long arg); |
cmd | 133 | include/linux/tty_driver.h | unsigned int cmd, unsigned long arg); |
cmd | 27 | include/linux/tty_ldisc.h | unsigned int cmd, unsigned long arg); |
cmd | 93 | include/linux/ultrasound.h | #define _GUS_CMD(chn, voice, cmd, p1, p2) \ |
cmd | 95 | 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 | 319 | 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 | 404 | ipc/msg.c | switch (cmd) { |
cmd | 360 | ipc/sem.c | int sys_semctl (int semid, int semnum, int cmd, union semun arg) |
cmd | 373 | ipc/sem.c | if (semid < 0 || semnum < 0 || cmd < 0) |
cmd | 376 | ipc/sem.c | switch (cmd) { |
cmd | 391 | ipc/sem.c | if (cmd == SEM_INFO) { |
cmd | 432 | ipc/sem.c | switch (cmd) { |
cmd | 444 | ipc/sem.c | switch (cmd) { |
cmd | 452 | ipc/sem.c | switch (cmd) { |
cmd | 502 | ipc/sem.c | switch (cmd) { |
cmd | 202 | ipc/shm.c | int sys_shmctl (int shmid, int cmd, struct shmid_ds *buf) |
cmd | 209 | ipc/shm.c | if (cmd < 0 || shmid < 0) |
cmd | 211 | ipc/shm.c | if (cmd == IPC_SET) { |
cmd | 220 | ipc/shm.c | switch (cmd) { /* replace with proc interface ? */ |
cmd | 287 | ipc/shm.c | switch (cmd) { |
cmd | 25 | ipc/util.c | extern int sys_semctl (int semid, int semnum, int cmd, union semun arg); |
cmd | 30 | ipc/util.c | extern int sys_msgctl (int msqid, int cmd, struct msqid_ds *buf); |
cmd | 34 | ipc/util.c | extern int sys_shmctl (int shmid, int cmd, struct shmid_ds *buf); |
cmd | 378 | net/inet/af_inet.c | static int inet_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 384 | net/inet/af_inet.c | switch(cmd) |
cmd | 1228 | net/inet/af_inet.c | static int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 1233 | net/inet/af_inet.c | switch(cmd) |
cmd | 1259 | net/inet/af_inet.c | return(ip_rt_ioctl(cmd,(void *) arg)); |
cmd | 1263 | net/inet/af_inet.c | return(arp_ioctl(cmd,(void *) arg)); |
cmd | 1268 | net/inet/af_inet.c | return(rarp_ioctl(cmd,(void *) arg)); |
cmd | 1301 | net/inet/af_inet.c | return(dev_ioctl(cmd,(void *) arg)); |
cmd | 1304 | net/inet/af_inet.c | if ((cmd >= SIOCDEVPRIVATE) && |
cmd | 1305 | net/inet/af_inet.c | (cmd <= (SIOCDEVPRIVATE + 15))) |
cmd | 1306 | net/inet/af_inet.c | return(dev_ioctl(cmd,(void *) arg)); |
cmd | 1310 | net/inet/af_inet.c | return(sk->prot->ioctl(sk, cmd, arg)); |
cmd | 1211 | net/inet/arp.c | int arp_ioctl(unsigned int cmd, void *arg) |
cmd | 1217 | net/inet/arp.c | switch(cmd) |
cmd | 13 | net/inet/arp.h | extern int arp_ioctl(unsigned int cmd, void *arg); |
cmd | 1337 | net/inet/dev.c | int dev_ioctl(unsigned int cmd, void *arg) |
cmd | 1339 | net/inet/dev.c | switch(cmd) |
cmd | 1362 | net/inet/dev.c | return dev_ifsioc(arg, cmd); |
cmd | 1382 | net/inet/dev.c | return dev_ifsioc(arg, cmd); |
cmd | 1392 | net/inet/dev.c | if((cmd >= SIOCDEVPRIVATE) && |
cmd | 1393 | net/inet/dev.c | (cmd <= (SIOCDEVPRIVATE + 15))) { |
cmd | 1394 | net/inet/dev.c | return dev_ifsioc(arg, cmd); |
cmd | 766 | net/inet/icmp.c | int icmp_ioctl(struct sock *sk, int cmd, unsigned long arg) |
cmd | 768 | net/inet/icmp.c | switch(cmd) |
cmd | 35 | net/inet/icmp.h | extern int icmp_ioctl(struct sock *sk, int cmd, |
cmd | 144 | net/inet/ip.c | int ip_ioctl(struct sock *sk, int cmd, unsigned long arg) |
cmd | 146 | net/inet/ip.c | switch(cmd) |
cmd | 77 | net/inet/ip.h | extern int ip_ioctl(struct sock *sk, int cmd, |
cmd | 796 | net/inet/ipx.c | ipxitf_ioctl(unsigned int cmd, void *arg) |
cmd | 799 | net/inet/ipx.c | switch(cmd) |
cmd | 1034 | net/inet/ipx.c | static int ipxrtr_ioctl(unsigned int cmd, void *arg) |
cmd | 1056 | net/inet/ipx.c | switch(cmd) |
cmd | 1237 | net/inet/ipx.c | static int ipx_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 1239 | net/inet/ipx.c | switch(cmd) |
cmd | 1774 | net/inet/ipx.c | static int ipx_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg) |
cmd | 1780 | net/inet/ipx.c | switch(cmd) |
cmd | 1805 | net/inet/ipx.c | return(ipxrtr_ioctl(cmd,(void *)arg)); |
cmd | 1812 | net/inet/ipx.c | return(ipxitf_ioctl(cmd,(void *)arg)); |
cmd | 1840 | net/inet/ipx.c | return(dev_ioctl(cmd,(void *) arg)); |
cmd | 386 | net/inet/rarp.c | int rarp_ioctl(unsigned int cmd, void *arg) |
cmd | 392 | net/inet/rarp.c | switch(cmd) |
cmd | 5 | net/inet/rarp.h | extern int rarp_ioctl(unsigned int cmd, void *arg); |
cmd | 643 | net/inet/route.c | int ip_rt_ioctl(unsigned int cmd, void *arg) |
cmd | 648 | net/inet/route.c | switch(cmd) |
cmd | 657 | net/inet/route.c | return (cmd == SIOCDELRTOLD) ? rt_kill(&rt) : rt_new(&rt); |
cmd | 667 | net/inet/route.c | return (cmd == SIOCDELRT) ? rt_kill(&rt) : rt_new(&rt); |
cmd | 51 | net/inet/route.h | extern int ip_rt_ioctl(unsigned int cmd, void *arg); |
cmd | 246 | net/inet/sock.h | int (*ioctl)(struct sock *sk, int cmd, |
cmd | 956 | net/inet/tcp.c | int tcp_ioctl(struct sock *sk, int cmd, unsigned long arg) |
cmd | 959 | net/inet/tcp.c | switch(cmd) |
cmd | 132 | net/inet/tcp.h | extern int tcp_ioctl(struct sock *sk, int cmd, unsigned long arg); |
cmd | 412 | net/inet/udp.c | int udp_ioctl(struct sock *sk, int cmd, unsigned long arg) |
cmd | 415 | 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 | 76 | net/socket.c | unsigned int cmd, unsigned long arg); |
cmd | 381 | net/socket.c | int sock_ioctl(struct inode *inode, struct file *file, unsigned int cmd, |
cmd | 391 | net/socket.c | return(sock->ops->ioctl(sock, cmd, arg)); |
cmd | 1130 | net/socket.c | int sock_fcntl(struct file *filp, unsigned int cmd, unsigned long arg) |
cmd | 1136 | net/socket.c | return(sock->ops->fcntl(sock, cmd, arg)); |
cmd | 77 | net/unix/sock.c | static int unix_proto_ioctl(struct socket *sock, unsigned int cmd, |
cmd | 830 | net/unix/sock.c | static int unix_proto_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 838 | net/unix/sock.c | switch(cmd) |