taglinefilesource code
cmd94arch/alpha/kernel/bios32.cunsigned short cmd;
cmd97arch/alpha/kernel/bios32.cpcibios_read_config_word(bus->number, dev->devfn, PCI_COMMAND, &cmd);
cmd100arch/alpha/kernel/bios32.ccmd &= (~PCI_COMMAND_IO & ~PCI_COMMAND_MEMORY & ~PCI_COMMAND_MASTER);
cmd101arch/alpha/kernel/bios32.cpcibios_write_config_word(bus->number, dev->devfn, PCI_COMMAND, cmd);
cmd113arch/alpha/kernel/bios32.cunsigned short cmd;
cmd118arch/alpha/kernel/bios32.cpcibios_read_config_word(bus->number, dev->devfn, PCI_COMMAND, &cmd);
cmd141arch/alpha/kernel/bios32.ccmd |= PCI_COMMAND_IO;
cmd157arch/alpha/kernel/bios32.ccmd |= PCI_COMMAND_MEMORY;
cmd246arch/alpha/kernel/bios32.ccmd |= PCI_COMMAND_IO;
cmd250arch/alpha/kernel/bios32.ccmd | PCI_COMMAND_MASTER);
cmd374arch/alpha/kernel/lca.cunsigned cmd  = (stat0 & IOC_CMD)  >> IOC_CMD_SHIFT;
cmd377arch/alpha/kernel/lca.ccode > 3 ? "PCI" : "CPU", pci_cmd[cmd], stat1, err_name[code]);
cmd51arch/mips/kernel/sysmips.csys_sysmips(int cmd, int arg1, int arg2, int arg3)
cmd57arch/mips/kernel/sysmips.cswitch(cmd)
cmd31arch/sparc/kernel/sunos_ioctl.casmlinkage int sunos_ioctl (int fd, unsigned long cmd, unsigned long arg)
cmd40arch/sparc/kernel/sunos_ioctl.cif(cmd == TIOCSETD) {
cmd49arch/sparc/kernel/sunos_ioctl.cfoo = sys_ioctl(fd, cmd, (int) &ntty);
cmd56arch/sparc/kernel/sunos_ioctl.cif(cmd == TIOCNOTTY)
cmd60arch/sparc/kernel/sunos_ioctl.cswitch (cmd) {
cmd146arch/sparc/kernel/sunos_ioctl.cif (cmd & 0xff00 == ('k' << 8)){
cmd147arch/sparc/kernel/sunos_ioctl.cprintk ("[[KBIO: %8.8x\n", (unsigned int) cmd);
cmd151arch/sparc/kernel/sunos_ioctl.cfoo = sys_ioctl(fd, cmd, arg);
cmd144drivers/block/floppy.cunsigned char cmd[9];
cmd246drivers/block/floppy.c#define COMMAND raw_cmd->cmd[0]
cmd247drivers/block/floppy.c#define DR_SELECT raw_cmd->cmd[1]
cmd248drivers/block/floppy.c#define TRACK raw_cmd->cmd[2]
cmd249drivers/block/floppy.c#define HEAD raw_cmd->cmd[3]
cmd250drivers/block/floppy.c#define SECTOR raw_cmd->cmd[4]
cmd251drivers/block/floppy.c#define SIZECODE raw_cmd->cmd[5]
cmd252drivers/block/floppy.c#define SECT_PER_TRACK raw_cmd->cmd[6]
cmd253drivers/block/floppy.c#define GAP raw_cmd->cmd[7]
cmd254drivers/block/floppy.c#define SIZECODE2 raw_cmd->cmd[8]
cmd258drivers/block/floppy.c#define F_SIZECODE raw_cmd->cmd[2]
cmd259drivers/block/floppy.c#define F_SECT_PER_TRACK raw_cmd->cmd[3]
cmd260drivers/block/floppy.c#define F_GAP raw_cmd->cmd[4]
cmd261drivers/block/floppy.c#define F_FILL raw_cmd->cmd[5]
cmd982drivers/block/floppy.cprintk("%x,", raw_cmd->cmd[i]);
cmd1363drivers/block/floppy.cr|=output_byte(raw_cmd->cmd[i]);
cmd2118drivers/block/floppy.cif (CURRENT->cmd == WRITE) {
cmd2354drivers/block/floppy.cif (CURRENT->cmd == READ){
cmd2357drivers/block/floppy.c} else if (CURRENT->cmd == WRITE){
cmd2840drivers/block/floppy.cstatic inline int raw_cmd_copyout(int cmd, char *param,
cmd2847drivers/block/floppy.cif (cmd == OLDFDRAWCMD) {
cmd2893drivers/block/floppy.cstatic inline int raw_cmd_copyin(int cmd, char *param,
cmd2908drivers/block/floppy.cif (cmd == OLDFDRAWCMD){
cmd2919drivers/block/floppy.cmemcpy(ptr->cmd, old_raw_cmd.cmd, 9);
cmd2959drivers/block/floppy.cstatic int raw_cmd_ioctl(int cmd, void *param)
cmd2983drivers/block/floppy.cret = raw_cmd_copyin(cmd, param, &my_raw_cmd);
cmd3003drivers/block/floppy.cret2 = raw_cmd_copyout(cmd, param, my_raw_cmd);
cmd3025drivers/block/floppy.cstatic inline int set_geometry(unsigned int cmd, struct floppy_struct *g,
cmd3062drivers/block/floppy.cif (cmd != FDDEFPRM)
cmd3071drivers/block/floppy.cif (cmd == FDDEFPRM)
cmd3121drivers/block/floppy.cstatic inline int normalize_0x02xx_ioctl(int *cmd, int *size)
cmd3126drivers/block/floppy.cif ((*cmd & 0xffff) == (translation_table[i].newcmd & 0xffff)){
cmd3127drivers/block/floppy.c*size = _IOC_SIZE(*cmd);
cmd3128drivers/block/floppy.c*cmd = translation_table[i].newcmd;
cmd3129drivers/block/floppy.cif (*size > _IOC_SIZE(*cmd)) {
cmd3139drivers/block/floppy.cstatic inline int xlate_0x00xx_ioctl(int *cmd, int *size)
cmd3148drivers/block/floppy.cprintk("obsolete floppy ioctl %x\n", *cmd);
cmd3155drivers/block/floppy.cif (*cmd == translation_table[i].oldcmd) {
cmd3157drivers/block/floppy.c*cmd = translation_table[i].newcmd;
cmd3164drivers/block/floppy.cstatic int fd_ioctl(struct inode *inode, struct file *filp, unsigned int cmd,
cmd3186drivers/block/floppy.cswitch (cmd) {
cmd3193drivers/block/floppy.cif ((cmd & 0xff00) == 0x0200) {
cmd3194drivers/block/floppy.cECALL(normalize_0x02xx_ioctl(&cmd, &size));
cmd3195drivers/block/floppy.c} else if ((cmd & 0xff00) == 0x0000) {
cmd3196drivers/block/floppy.cECALL(xlate_0x00xx_ioctl(&cmd, &size));
cmd3201drivers/block/floppy.cif (((cmd & 0x80) && !suser()) ||
cmd3202drivers/block/floppy.c((cmd & 0x40) && !IOCTL_ALLOWED))
cmd3206drivers/block/floppy.cif (_IOC_DIR(cmd) & _IOC_READ)
cmd3211drivers/block/floppy.cif (_IOC_DIR(cmd) & _IOC_WRITE)
cmd3214drivers/block/floppy.cswitch (cmd) {
cmd3223drivers/block/floppy.creturn set_geometry(cmd, & inparam.g,
cmd3298drivers/block/floppy.cCALL(i = raw_cmd_ioctl(cmd,(void *) param));
cmd3312drivers/block/floppy.cif (_IOC_DIR(cmd) & _IOC_READ)
cmd221drivers/block/hd.cunsigned int head,unsigned int cyl,unsigned int cmd,
cmd245drivers/block/hd.coutb_p(cmd,++port);
cmd738drivers/block/hd.cdev+'a', (CURRENT->cmd == READ)?"read":"writ",
cmd743drivers/block/hd.cif (CURRENT->cmd == READ) {
cmd744drivers/block/hd.cunsigned int cmd = mult_count[dev] > 1 ? WIN_MULTREAD : WIN_READ;
cmd745drivers/block/hd.chd_out(dev,nsect,sec,head,cyl,cmd,&read_intr);
cmd750drivers/block/hd.cif (CURRENT->cmd == WRITE) {
cmd779drivers/block/hd.cunsigned int cmd, unsigned long arg)
cmd790drivers/block/hd.cswitch (cmd) {
cmd577drivers/block/ide-cd.crq->cmd = REQUEST_SENSE_COMMAND;
cmd597drivers/block/ide-cd.cif (rq->cmd == REQUEST_SENSE_COMMAND && uptodate)
cmd624drivers/block/ide-cd.cint stat, err, sense_key, cmd;
cmd641drivers/block/ide-cd.ccmd = rq->cmd;
cmd643drivers/block/ide-cd.cif (cmd == REQUEST_SENSE_COMMAND)
cmd656drivers/block/ide-cd.celse if (cmd == PACKET_COMMAND)
cmd1392drivers/block/ide-cd.creq.cmd = PACKET_COMMAND;
cmd1468drivers/block/ide-cd.c<send cmd>
cmd1492drivers/block/ide-cd.cif (rq -> cmd == PACKET_COMMAND || rq -> cmd == REQUEST_SENSE_COMMAND)
cmd1495drivers/block/ide-cd.celse if (rq -> cmd == RESET_DRIVE_COMMAND)
cmd1502drivers/block/ide-cd.celse if (rq -> cmd == IDE_DRIVE_CMD)
cmd1505drivers/block/ide-cd.celse if (rq -> cmd != READ)
cmd1507drivers/block/ide-cd.cprintk ("ide-cd: bad cmd %d\n", rq -> cmd);
cmd2125drivers/block/ide-cd.cstruct file *file, unsigned int cmd, unsigned long arg)
cmd2127drivers/block/ide-cd.cswitch (cmd)
cmd2481drivers/block/ide-cd.cif (cmd == CDROMREADMODE1)
cmd2522drivers/block/ide-cd.creq.cmd = RESET_DRIVE_COMMAND;
cmd420drivers/block/ide-tape.c#define IDETAPE_REQUEST_CMD(cmd)   ((cmd >= IDETAPE_FIRST_REQUEST) && (cmd <= IDETAPE_LAST_REQUEST))
cmd853drivers/block/ide-tape.cvoid idetape_create_load_unload_cmd (idetape_packet_command_t *pc,int cmd);
cmd854drivers/block/ide-tape.cvoid idetape_create_space_cmd (idetape_packet_command_t *pc,long count,byte cmd);
cmd879drivers/block/ide-tape.cint idetape_chrdev_ioctl (struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg);
cmd920drivers/block/ide-tape.cint idetape_queue_rw_tail (ide_drive_t *drive,int cmd,int blocks,char *buffer);
cmd1914drivers/block/ide-tape.cif (tape->postponed_rq->cmd != IDETAPE_PACKET_COMMAND_REQUEST_TYPE1) {
cmd1949drivers/block/ide-tape.cif (tape->postponed_rq->cmd == IDETAPE_PACKET_COMMAND_REQUEST_TYPE1) {
cmd2572drivers/block/ide-tape.cvoid idetape_create_load_unload_cmd (idetape_packet_command_t *pc,int cmd)
cmd2576drivers/block/ide-tape.cprintk ("Creating LOAD UNLOAD packet command, cmd=%d\n",cmd);
cmd2588drivers/block/ide-tape.cpc->c [4]=cmd;
cmd2649drivers/block/ide-tape.cvoid idetape_create_space_cmd (idetape_packet_command_t *pc,long count,byte cmd)
cmd2678drivers/block/ide-tape.cpc->c [1]=cmd;
cmd2794drivers/block/ide-tape.cunsigned int cmd, unsigned long arg)
cmd2805drivers/block/ide-tape.cswitch (cmd) {
cmd2841drivers/block/ide-tape.cif (rq->cmd == IDETAPE_READ_REQUEST) {
cmd2853drivers/block/ide-tape.cif (rq->cmd == IDETAPE_WRITE_REQUEST) {
cmd2899drivers/block/ide-tape.cprintk ("rq_status: %d, rq_dev: %u, cmd: %d, errors: %d\n",rq->rq_status,(unsigned int) rq->rq_dev,rq->cmd,rq->errors);
cmd2903drivers/block/ide-tape.cif (!IDETAPE_REQUEST_CMD (rq->cmd)) {
cmd2960drivers/block/ide-tape.cif (rq->cmd == IDETAPE_PACKET_COMMAND_REQUEST_TYPE1) {
cmd2991drivers/block/ide-tape.cswitch (rq->cmd) {
cmd3047drivers/block/ide-tape.crq->cmd=IDETAPE_PACKET_COMMAND_REQUEST_TYPE2;  /* Note that we are waiting for DSC *before* we */
cmd3053drivers/block/ide-tape.crq->cmd=IDETAPE_PACKET_COMMAND_REQUEST_TYPE1;
cmd3092drivers/block/ide-tape.crq.cmd = IDETAPE_PACKET_COMMAND_REQUEST_TYPE1;
cmd3126drivers/block/ide-tape.crq->cmd = IDETAPE_PACKET_COMMAND_REQUEST_TYPE1;
cmd3144drivers/block/ide-tape.cif (rq == NULL || !IDETAPE_REQUEST_CMD (rq->cmd)) {
cmd3159drivers/block/ide-tape.cint idetape_queue_rw_tail (ide_drive_t *drive,int cmd,int blocks,char *buffer)
cmd3166drivers/block/ide-tape.cprintk ("idetape_queue_rw_tail: cmd=%d\n",cmd);
cmd3177drivers/block/ide-tape.crq.cmd = cmd;
cmd3204drivers/block/ide-tape.crq.cmd = IDETAPE_READ_REQUEST;
cmd3306drivers/block/ide-tape.crq->cmd = IDETAPE_WRITE_REQUEST;
cmd3804drivers/block/ide-tape.cint idetape_chrdev_ioctl (struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg)
cmd3816drivers/block/ide-tape.cprintk ("Reached idetape_chrdev_ioctl, cmd=%u\n",cmd);
cmd3824drivers/block/ide-tape.cif (tape->chrdev_direction == idetape_direction_read && cmd != MTIOCTOP)
cmd3831drivers/block/ide-tape.cswitch (cmd) {
cmd3853drivers/block/ide-tape.creturn (idetape_blkdev_ioctl (drive,inode,file,cmd,arg));
cmd4567drivers/block/ide-tape.cif (rq->cmd == IDETAPE_WRITE_REQUEST)
cmd746drivers/block/ide.cif (rq->cmd == IDE_DRIVE_CMD) {
cmd864drivers/block/ide.cif (rq->cmd == IDE_DRIVE_CMD || (rq->cmd != READ && rq->cmd != WRITE && drive->media == ide_disk))
cmd880drivers/block/ide.cif ((stat & DRQ_STAT) && rq->cmd != WRITE)
cmd1055drivers/block/ide.cstatic void ide_cmd(ide_drive_t *drive, byte cmd, byte nsect, ide_handler_t *handler)
cmd1060drivers/block/ide.cOUT_BYTE(cmd,IDE_COMMAND_REG);
cmd1218drivers/block/ide.cdrive->name, (rq->cmd==READ)?"read":"writ",
cmd1237drivers/block/ide.cdrive->name, (rq->cmd==READ)?"read":"writ", cyl,
cmd1241drivers/block/ide.cif (rq->cmd == READ) {
cmd1250drivers/block/ide.cif (rq->cmd == WRITE) {
cmd1273drivers/block/ide.cif (rq->cmd == IDE_DRIVE_CMD) {
cmd1295drivers/block/ide.cprintk("%s: bad command: %d\n", drive->name, rq->cmd);
cmd1370drivers/block/ide.cif (rq->cmd == IDE_DRIVE_CMD) {
cmd1628drivers/block/ide.crq->cmd = IDE_DRIVE_CMD;
cmd1844drivers/block/ide.cunsigned int cmd, unsigned long arg)
cmd1857drivers/block/ide.cswitch (cmd) {
cmd1936drivers/block/ide.cswitch (cmd) {
cmd2027drivers/block/ide.creturn ide_cdrom_ioctl(drive, inode, file, cmd, arg);
cmd2031drivers/block/ide.creturn idetape_blkdev_ioctl(drive, inode, file, cmd, arg);
cmd2079drivers/block/ide.cstatic inline void do_identify (ide_drive_t *drive, byte cmd)
cmd2104drivers/block/ide.cif (cmd == WIN_PIDENTIFY) {
cmd2118drivers/block/ide.cif (cmd == WIN_PIDENTIFY) {
cmd2271drivers/block/ide.cstatic int try_to_identify (ide_drive_t *drive, byte cmd)
cmd2290drivers/block/ide.cOUT_BYTE(cmd,IDE_COMMAND_REG);    /* ask drive for ID */
cmd2291drivers/block/ide.ctimeout = ((cmd == WIN_IDENTIFY) ? WAIT_WORSTCASE : WAIT_PIDENTIFY) / 2;
cmd2305drivers/block/ide.cdo_identify(drive, cmd); /* drive returned ID */
cmd2340drivers/block/ide.cstatic int do_probe (ide_drive_t *drive, byte cmd)
cmd2345drivers/block/ide.cif ((drive->media != ide_disk) && (cmd == WIN_IDENTIFY))
cmd2352drivers/block/ide.c(cmd == WIN_IDENTIFY) ? "ATA" : "ATAPI");
cmd2366drivers/block/ide.c|| drive->present || cmd == WIN_PIDENTIFY)
cmd2368drivers/block/ide.cif ((rc = try_to_identify(drive,cmd)))   /* send cmd and wait */
cmd2369drivers/block/ide.crc = try_to_identify(drive,cmd); /* failed: try again */
cmd642drivers/block/ide.hunsigned int cmd, unsigned long arg);
cmd159drivers/block/linear.cpending[queue].cmd=req->cmd;
cmd88drivers/block/ll_rw_blk.cplug->cmd = -1;
cmd108drivers/block/ll_rw_blk.cif (req && req->rq_status == RQ_INACTIVE && req->cmd == -1) {
cmd208drivers/block/ll_rw_blk.cstatic inline void drive_stat_acct(int cmd, unsigned long nr_sectors, short disk_index)
cmd211drivers/block/ll_rw_blk.cif (cmd == READ) {
cmd215drivers/block/ll_rw_blk.celse if (cmd == WRITE) {
cmd243drivers/block/ll_rw_blk.cdrive_stat_acct(req->cmd, req->nr_sectors, disk_index);
cmd248drivers/block/ll_rw_blk.cdrive_stat_acct(req->cmd, req->nr_sectors, disk_index);
cmd252drivers/block/ll_rw_blk.cdrive_stat_acct(req->cmd, req->nr_sectors, disk_index);
cmd368drivers/block/ll_rw_blk.creq->cmd == rw &&
cmd383drivers/block/ll_rw_blk.creq->cmd == rw &&
cmd419drivers/block/ll_rw_blk.creq->cmd = rw;
cmd599drivers/block/ll_rw_blk.creq[j]->cmd = rw;
cmd46drivers/block/loop.cstatic int transfer_none(struct loop_device *lo, int cmd, char *raw_buf,
cmd49drivers/block/loop.cif (cmd == READ)
cmd56drivers/block/loop.cstatic int transfer_xor(struct loop_device *lo, int cmd, char *raw_buf,
cmd62drivers/block/loop.cif (cmd == READ) {
cmd77drivers/block/loop.cstatic int transfer_des(struct loop_device *lo, int cmd, char *raw_buf,
cmd88drivers/block/loop.cif (cmd == READ) {
cmd184drivers/block/loop.cif ((CURRENT->cmd != WRITE) && (CURRENT->cmd != READ)) {
cmd185drivers/block/loop.cprintk("unknown loop device command (%d)?!?", CURRENT->cmd);
cmd204drivers/block/loop.cif (!buffer_uptodate(bh) && ((CURRENT->cmd == READ) ||
cmd217drivers/block/loop.cif ((lo->transfer)(lo, CURRENT->cmd, bh->b_data + offset,
cmd223drivers/block/loop.cif (CURRENT->cmd == WRITE)
cmd356drivers/block/loop.cunsigned int cmd, unsigned long arg)
cmd371drivers/block/loop.cswitch (cmd) {
cmd129drivers/block/md.cunsigned int cmd, unsigned long arg)
cmd143drivers/block/md.creturn (pers[minor & 0x7f]->ioctl (inode, file, cmd, arg));
cmd148drivers/block/md.cswitch (cmd)
cmd322drivers/block/md.cprintk ("Unknown md_ioctl %d\n", cmd);
cmd451drivers/block/md.crw=pending[i].cmd;
cmd478drivers/block/md.creq->cmd == rw &&
cmd492drivers/block/md.creq->cmd == rw &&
cmd517drivers/block/md.creq->cmd = rw;
cmd246drivers/block/raid0.cpending[queue].cmd=req->cmd;
cmd126drivers/block/rd.cif (CURRENT->cmd == READ) 
cmd135drivers/block/rd.cstatic int rd_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg)
cmd142drivers/block/rd.cswitch (cmd) {
cmd225drivers/block/xd.cswitch (CURRENT->cmd) {
cmd229drivers/block/xd.ccode = xd_readwrite(CURRENT->cmd,CURRENT_DEV,CURRENT->buffer,block,count);
cmd240drivers/block/xd.cstatic int xd_ioctl (struct inode *inode,struct file *file,u_int cmd,u_long arg)
cmd246drivers/block/xd.cswitch (cmd) {
cmd195drivers/cdrom/aztcd.c(CURRENT && MAJOR(CURRENT -> rq_dev) == MAJOR_NR && CURRENT -> cmd == READ \
cmd267drivers/cdrom/aztcd.cstatic int  aztSendCmd(int cmd);
cmd268drivers/cdrom/aztcd.cstatic int  sendAztCmd(int cmd, struct azt_Play_msf *params);
cmd407drivers/cdrom/aztcd.cstatic int aztSendCmd(int cmd)
cmd412drivers/cdrom/aztcd.cprintk("aztcd: Executing command %x\n",cmd);
cmd414drivers/cdrom/aztcd.caztCmd=cmd;
cmd423drivers/cdrom/aztcd.c{ outb((unsigned char) cmd,CMD_PORT);
cmd431drivers/cdrom/aztcd.cprintk("### Error 1 aztcd: aztSendCmd %x  Error Code %x\n",cmd,data);
cmd435drivers/cdrom/aztcd.c{ printk("### Error 2 aztcd: aztSendCmd %x \n",cmd);
cmd444drivers/cdrom/aztcd.cstatic int sendAztCmd(int cmd, struct azt_Play_msf *params)
cmd454drivers/cdrom/aztcd.c{ aztSendCmd(cmd);
cmd468drivers/cdrom/aztcd.cprintk("### Error 1 aztcd: sendAztCmd %x  Error Code %x\n",cmd,data);
cmd472drivers/cdrom/aztcd.c{ printk("### Error 2 aztcd: sendAztCmd %x\n ",cmd);
cmd611drivers/cdrom/aztcd.cstatic int aztcd_ioctl(struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg)
cmd623drivers/cdrom/aztcd.cprintk("aztcd: starting aztcd_ioctl - Command:%x   Time: %li\n",cmd, jiffies);
cmd632drivers/cdrom/aztcd.cswitch (cmd)
cmd806drivers/cdrom/aztcd.cprintk("aztcd: exiting aztcd_ioctl - Error 1 - Command:%x\n",cmd);
cmd813drivers/cdrom/aztcd.cprintk("aztcd: exiting aztcd_ioctl - Error 2 - Command:%x\n",cmd);
cmd821drivers/cdrom/aztcd.cprintk("aztcd: exiting aztcd_ioctl - Error 3 - Command:%x\n",cmd);
cmd907drivers/cdrom/aztcd.cif (cmd==CDROMREADRAW)
cmd948drivers/cdrom/aztcd.cprintk("aztcd: exiting aztcd_ioctl Command:%x  Time:%li\n",cmd,jiffies);
cmd237drivers/cdrom/cdu31a.cstatic void do_sony_cd_cmd(unsigned char cmd,
cmd517drivers/cdrom/cdu31a.cwrite_cmd(unsigned char cmd)
cmd520drivers/cdrom/cdu31a.coutb(cmd, sony_cd_cmd_reg);
cmd819drivers/cdrom/cdu31a.cdo_sony_cd_cmd(unsigned char cmd,
cmd887drivers/cdrom/cdu31a.cwrite_cmd(cmd);
cmd1579drivers/cdrom/cdu31a.cswitch(CURRENT->cmd)
cmd2360drivers/cdrom/cdu31a.cunsigned char cmd,
cmd2366drivers/cdrom/cdu31a.cdo_sony_cd_cmd(cmd, params, num_params, result_buffer, result_size);
cmd2380drivers/cdrom/cdu31a.cunsigned int  cmd,
cmd2394drivers/cdrom/cdu31a.cswitch (cmd)
cmd644drivers/cdrom/cm206.cif (CURRENT->cmd != READ) {
cmd645drivers/cdrom/cm206.cdebug(("Non-read command %d on cdrom\n", CURRENT->cmd));
cmd886drivers/cdrom/cm206.cunsigned int cmd, unsigned long arg)
cmd888drivers/cdrom/cm206.cswitch (cmd) {
cmd927drivers/cdrom/cm206.cswitch (cmd) {
cmd1009drivers/cdrom/cm206.celse return -cmd;
cmd1022drivers/cdrom/cm206.cdebug(("Unknown ioctl call 0x%x\n", cmd));
cmd202drivers/cdrom/gscd.cstatic int gscd_ioctl (struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg)
cmd208drivers/cdrom/gscd.cswitch (cmd)
cmd274drivers/cdrom/gscd.cif (CURRENT -> cmd != READ)
cmd276drivers/cdrom/gscd.cprintk("GSCD: bad cmd %d\n", CURRENT -> cmd);
cmd317drivers/cdrom/gscd.cchar   cmd[] = { CMD_READ, 0x80, 0,0,0, 0,1 }; /* cmd mode M-S-F secth sectl */
cmd340drivers/cdrom/gscd.ccmd[2] = gscdcmd.start.min;
cmd341drivers/cdrom/gscd.ccmd[3] = gscdcmd.start.sec;
cmd342drivers/cdrom/gscd.ccmd[4] = gscdcmd.start.frame;
cmd345drivers/cdrom/gscd.cprintk ("GSCD: read msf %d:%d:%d\n", cmd[2], cmd[3], cmd[4] ); 
cmd347drivers/cdrom/gscd.ccmd_out ( TYPE_DATA, (char *)&cmd, (char *)&gscd_buf[0], 1 );
cmd519drivers/cdrom/gscd.cvoid cmd_out ( int cmd_type, char * cmd, char * respo_buf, int respo_count )
cmd575drivers/cdrom/gscd.ccmd_write_cmd (cmd);
cmd133drivers/cdrom/mcd.c(CURRENT && MAJOR(CURRENT -> rq_dev) == MAJOR_NR && CURRENT -> cmd == READ \
cmd185drivers/cdrom/mcd.cstatic void sendMcdCmd(int cmd, struct mcd_Play_msf *params);
cmd285drivers/cdrom/mcd.cmcd_ioctl(struct inode *ip, struct file *fp, unsigned int cmd,
cmd312drivers/cdrom/mcd.cswitch (cmd)
cmd1321drivers/cdrom/mcd.csendMcdCmd(int cmd, struct mcd_Play_msf *params)
cmd1323drivers/cdrom/mcd.coutb(cmd, MCDPORT(0));
cmd232drivers/cdrom/mcdx.cconst unsigned char* cmd, size_t, 
cmd270drivers/cdrom/mcdx.cunsigned int cmd, unsigned long arg)
cmd277drivers/cdrom/mcdx.cswitch (cmd) {
cmd531drivers/cdrom/mcdx.cWARN(("ioctl(): unknown request 0x%04x\n", cmd));
cmd569drivers/cdrom/mcdx.cswitch (CURRENT->cmd) {
cmd910drivers/cdrom/mcdx.cconst unsigned char *cmd, size_t cmdlen,
cmd939drivers/cdrom/mcdx.ctries, timeout, size, (unsigned char) cmd[0]));
cmd940drivers/cdrom/mcdx.cfor (i = 1; i < cmdlen; i++) printk(" 0x%02x", cmd[i]);
cmd952drivers/cdrom/mcdx.coutsb((unsigned int) stuffp->wreg_data, cmd, cmdlen);
cmd958drivers/cdrom/mcdx.ccmd[0], tries - 1, tries == 2 ? "y" : "ies"));
cmd970drivers/cdrom/mcdx.ccmd[0], cmdlen > 1 ? "..." : ""));
cmd993drivers/cdrom/mcdx.ccmd[0], tries - 1, tries == 2 ? "y" : "ies"));
cmd1384drivers/cdrom/mcdx.cstatic unsigned char cmd[] = {
cmd1390drivers/cdrom/mcdx.ccmd[0] = stuffp->readcmd;
cmd1420drivers/cdrom/mcdx.ccmd[1] = pending.minute;
cmd1421drivers/cdrom/mcdx.ccmd[2] = pending.second;
cmd1422drivers/cdrom/mcdx.ccmd[3] = pending.frame;
cmd1426drivers/cdrom/mcdx.ccmd[6] = (unsigned char) (stuffp->off_requested - stuffp->pending) / 4;
cmd1428drivers/cdrom/mcdx.coutsb((unsigned int) stuffp->wreg_data, cmd, sizeof cmd);
cmd1563drivers/cdrom/mcdx.cunsigned char cmd[7] = {
cmd1567drivers/cdrom/mcdx.ccmd[0] = stuffp->playcmd;
cmd1569drivers/cdrom/mcdx.ccmd[1] = msf->cdmsf_min0;
cmd1570drivers/cdrom/mcdx.ccmd[2] = msf->cdmsf_sec0;
cmd1571drivers/cdrom/mcdx.ccmd[3] = msf->cdmsf_frame0;
cmd1572drivers/cdrom/mcdx.ccmd[4] = msf->cdmsf_min1;
cmd1573drivers/cdrom/mcdx.ccmd[5] = msf->cdmsf_sec1;
cmd1574drivers/cdrom/mcdx.ccmd[6] = msf->cdmsf_frame1;
cmd1578drivers/cdrom/mcdx.ccmd[0], cmd[1], cmd[2], cmd[3],
cmd1579drivers/cdrom/mcdx.ccmd[4], cmd[5], cmd[6])); 
cmd1581drivers/cdrom/mcdx.coutsb((unsigned int) stuffp->wreg_data, cmd, sizeof cmd);
cmd1717drivers/cdrom/mcdx.cchar cmd[2];
cmd1722drivers/cdrom/mcdx.cif (-1 == (ans = mcdx_talk(stuffp, "\xc2", 1, cmd, sizeof(cmd), 5 * HZ, tries)))
cmd1726drivers/cdrom/mcdx.ccase TOC: cmd[1] |= 0x04; break;
cmd1727drivers/cdrom/mcdx.ccase DATA: cmd[1] &= ~0x04; break;
cmd1728drivers/cdrom/mcdx.ccase RAW: cmd[1] |= 0x40; break;
cmd1729drivers/cdrom/mcdx.ccase COOKED: cmd[1] &= ~0x40; break;
cmd1732drivers/cdrom/mcdx.ccmd[0] = 0x50;
cmd1733drivers/cdrom/mcdx.creturn mcdx_talk(stuffp, cmd, 2, NULL, 1, 5 * HZ, tries);
cmd1739drivers/cdrom/mcdx.cunsigned char cmd[2] = { 0xa0 };
cmd1742drivers/cdrom/mcdx.ccase MODE0: cmd[1] = 0x00; break;
cmd1743drivers/cdrom/mcdx.ccase MODE1: cmd[1] = 0x01; break;
cmd1744drivers/cdrom/mcdx.ccase MODE2: cmd[1] = 0x02; break;
cmd1747drivers/cdrom/mcdx.creturn mcdx_talk(stuffp, cmd, 2, NULL, 1, 5 * HZ, tries);
cmd1753drivers/cdrom/mcdx.cchar cmd[4];
cmd1757drivers/cdrom/mcdx.ccmd[0] = 0x90;
cmd1759drivers/cdrom/mcdx.ccmd[1] = 0x10;    /* irq enable */
cmd1760drivers/cdrom/mcdx.ccmd[2] = 0x05;    /* pre, err irq enable */
cmd1762drivers/cdrom/mcdx.cif (-1 == mcdx_talk(stuffp, cmd, 3, NULL, 1, 1 * HZ, tries))
cmd1765drivers/cdrom/mcdx.ccmd[1] = 0x02;    /* dma select */
cmd1766drivers/cdrom/mcdx.ccmd[2] = 0x00;    /* no dma */
cmd1768drivers/cdrom/mcdx.creturn mcdx_talk(stuffp, cmd, 3, NULL, 1, 1 * HZ, tries);
cmd1800drivers/cdrom/mcdx.cchar cmd[2] = { 0xfe };
cmd1802drivers/cdrom/mcdx.ccmd[1] = lock ? 0x01 : 0x00;
cmd1803drivers/cdrom/mcdx.creturn mcdx_talk(stuffp, cmd, sizeof(cmd), NULL, 1, 5 * HZ, tries);
cmd1835drivers/cdrom/mcdx.cchar cmd[5];
cmd1836drivers/cdrom/mcdx.ccmd[0] = 0xae;
cmd1837drivers/cdrom/mcdx.ccmd[1] = vol->channel0;
cmd1838drivers/cdrom/mcdx.ccmd[2] = 0;
cmd1839drivers/cdrom/mcdx.ccmd[3] = vol->channel1;
cmd1840drivers/cdrom/mcdx.ccmd[4] = 0;
cmd1842drivers/cdrom/mcdx.creturn mcdx_talk(stuffp, cmd, sizeof(cmd), NULL, 5, 200, tries);
cmd305drivers/cdrom/optcd.cstatic int send_cmd(int cmd)
cmd309drivers/cdrom/optcd.cDEBUG((DEBUG_DRIVE_IF, "sending command 0x%02x\n", cmd));
cmd312drivers/cdrom/optcd.coutb(cmd, COMIN_PORT);    /* Send command code */
cmd473drivers/cdrom/optcd.cinline static int exec_cmd(int cmd)
cmd475drivers/cdrom/optcd.cint ack = send_cmd(cmd);
cmd478drivers/cdrom/optcd.creturn get_exec_status(cmd < COMFETCH);
cmd484drivers/cdrom/optcd.cinline static int exec_read_cmd(int cmd, struct cdrom_msf *params)
cmd486drivers/cdrom/optcd.cint ack = send_cmd(cmd);
cmd494drivers/cdrom/optcd.cinline static int exec_seek_cmd(int cmd, struct cdrom_msf *params)
cmd496drivers/cdrom/optcd.cint ack = send_cmd(cmd);
cmd507drivers/cdrom/optcd.cinline static int exec_long_cmd(int cmd, struct cdrom_msf *params)
cmd509drivers/cdrom/optcd.cint ack = exec_read_cmd(cmd, params);
cmd968drivers/cdrom/optcd.c&& CURRENT -> cmd == READ && CURRENT -> sector != -1)
cmd1612drivers/cdrom/optcd.cstatic int cdromread(unsigned long arg, int blocksize, int cmd)
cmd1630drivers/cdrom/optcd.cstatus = exec_read_cmd(cmd, &msf);
cmd1735drivers/cdrom/optcd.cunsigned int cmd, unsigned long arg)
cmd1744drivers/cdrom/optcd.cif (cmd == CDROMRESET)
cmd1761drivers/cdrom/optcd.cswitch (cmd) {  /* Actions that can be taken with door open */
cmd1783drivers/cdrom/optcd.cDEBUG((DEBUG_VFS, "ioctl cmd 0x%x", cmd));
cmd1785drivers/cdrom/optcd.cswitch (cmd) {
cmd3831drivers/cdrom/sbpcd.cstatic int sbpcd_ioctl(struct inode *inode, struct file *file, u_int cmd,
cmd3837drivers/cdrom/sbpcd.cMINOR(inode->i_rdev), cmd, arg);
cmd3858drivers/cdrom/sbpcd.cmsg(DBG_IO2,"ioctl: device %d, request %04X\n",i,cmd);
cmd3859drivers/cdrom/sbpcd.cswitch (cmd)     /* Sun-compatible */
cmd4383drivers/cdrom/sbpcd.cmsg(DBG_IOC,"ioctl: unknown function request %04X\n", cmd);
cmd4424drivers/cdrom/sbpcd.cif (CURRENT->cmd != READ)
cmd4426drivers/cdrom/sbpcd.cmsg(DBG_INF, "bad cmd %d\n", CURRENT->cmd);
cmd194drivers/cdrom/sjcd.cstatic void sjcd_send_cmd( unsigned char cmd ){
cmd196drivers/cdrom/sjcd.cprintk( "SJCD: send_cmd( 0x%x )\n", cmd );
cmd198drivers/cdrom/sjcd.coutb( cmd, SJCDPORT( 0 ) );
cmd207drivers/cdrom/sjcd.cstatic void sjcd_send_1_cmd( unsigned char cmd, unsigned char a ){
cmd209drivers/cdrom/sjcd.cprintk( "SJCD: send_1_cmd( 0x%x, 0x%x )\n", cmd, a );
cmd211drivers/cdrom/sjcd.coutb( cmd, SJCDPORT( 0 ) );
cmd221drivers/cdrom/sjcd.cstatic void sjcd_send_4_cmd( unsigned char cmd, unsigned char a,
cmd224drivers/cdrom/sjcd.cprintk( "SJCD: send_4_cmd( 0x%x )\n", cmd );
cmd226drivers/cdrom/sjcd.coutb( cmd, SJCDPORT( 0 ) );
cmd239drivers/cdrom/sjcd.cstatic void sjcd_send_6_cmd( unsigned char cmd, struct sjcd_play_msf *pms ){
cmd241drivers/cdrom/sjcd.cprintk( "SJCD: send_long_cmd( 0x%x )\n", cmd );
cmd243drivers/cdrom/sjcd.coutb( cmd, SJCDPORT( 0 ) );
cmd654drivers/cdrom/sjcd.cunsigned int cmd, unsigned long arg ){
cmd665drivers/cdrom/sjcd.cswitch( cmd ){
cmd921drivers/cdrom/sjcd.cCURRENT->cmd == READ && CURRENT->sector != -1 )
cmd195drivers/cdrom/sonycd535.cstatic int do_sony_cmd(Byte * cmd, int nCmd, Byte status[2],
cmd427drivers/cdrom/sonycd535.cByte cmd;
cmd487drivers/cdrom/sonycd535.ccmd = SONY535_SPIN_UP;
cmd488drivers/cdrom/sonycd535.cdo_sony_cmd(&cmd, 1, e_status, NULL, 0, 0);
cmd528drivers/cdrom/sonycd535.cdo_sony_cmd(Byte * cmd, int n_cmd, Byte status[2],
cmd535drivers/cdrom/sonycd535.coutb(cmd[i], command_reg);
cmd549drivers/cdrom/sonycd535.c*cmd, status[0], status[1]);
cmd692drivers/cdrom/sonycd535.cByte cmd;
cmd695drivers/cdrom/sonycd535.ccmd = SONY535_REQUEST_DRIVE_STATUS_1;
cmd696drivers/cdrom/sonycd535.cif (do_sony_cmd(&cmd, 1, status, NULL, 0, 0) != 0)
cmd702drivers/cdrom/sonycd535.ccmd = SONY535_SPIN_UP;
cmd703drivers/cdrom/sonycd535.creturn do_sony_cmd(&cmd, 1, status, NULL, 0, 0);
cmd793drivers/cdrom/sonycd535.cByte cmd[2];
cmd814drivers/cdrom/sonycd535.cswitch (CURRENT->cmd) {
cmd901drivers/cdrom/sonycd535.ccmd[0] = SONY535_SPIN_UP;
cmd902drivers/cdrom/sonycd535.cdo_sony_cmd(cmd, 1, status, NULL, 0, 0);
cmd978drivers/cdrom/sonycd535.cByte cmd = SONY535_REQUEST_SUB_Q_DATA;
cmd985drivers/cdrom/sonycd535.cif ((dsc_status = do_sony_cmd(&cmd, 1, status, (Byte *) last_sony_subcode,
cmd1073drivers/cdrom/sonycd535.cunsigned int cmd,
cmd1093drivers/cdrom/sonycd535.cswitch (cmd) {
cmd832drivers/char/apm_bios.cu_int cmd, u_long arg)
cmd839drivers/char/apm_bios.cswitch (cmd) {
cmd496drivers/char/cyclades.cwrite_cy_cmd(u_char *base_addr, u_char cmd, int index)
cmd517drivers/char/cyclades.cbase_addr[CyCCR<<index] = cmd;
cmd1917drivers/char/cyclades.cset_modem_info(struct cyclades_port * info, unsigned int cmd,
cmd1933drivers/char/cyclades.cswitch (cmd) {
cmd2144drivers/char/cyclades.cunsigned int cmd, unsigned long arg)
cmd2151drivers/char/cyclades.cprintk("cy_ioctl ttyC%d, cmd = %x arg = %lx\n", info->line, cmd, arg); /* */
cmd2154drivers/char/cyclades.cswitch (cmd) {
cmd2230drivers/char/cyclades.cret_val = set_modem_info(info, cmd, (unsigned int *) arg);
cmd454drivers/char/ftape/fdc-io.cbyte cmd[] =
cmd460drivers/char/ftape/fdc-io.ccmd[1] = (fdc_drv_spec[0] & 0x1f) | 0x00;
cmd461drivers/char/ftape/fdc-io.ccmd[2] = (fdc_drv_spec[1] & 0x1f) | 0x20;
cmd462drivers/char/ftape/fdc-io.ccmd[3] = (fdc_drv_spec[2] & 0x1f) | 0x40;
cmd463drivers/char/ftape/fdc-io.ccmd[4] = (fdc_drv_spec[3] & 0x1f) | 0x60;
cmd464drivers/char/ftape/fdc-io.cresult = fdc_command(cmd, NR_ITEMS(cmd));
cmd970drivers/char/ftape/fdc-io.cbyte cmd[1];
cmd982drivers/char/ftape/fdc-io.ccmd[0] = FDC_DUMPREGS;
cmd983drivers/char/ftape/fdc-io.cresult = fdc_issue_command(cmd, 1, stat, 1);
cmd994drivers/char/ftape/fdc-io.ccmd[0] = FDC_VERSION;
cmd995drivers/char/ftape/fdc-io.cresult = fdc_issue_command(cmd, 1, stat, 1);
cmd1000drivers/char/ftape/fdc-io.ccmd[0] = FDC_UNLOCK;
cmd1001drivers/char/ftape/fdc-io.cresult = fdc_issue_command(cmd, 1, stat, 1);
cmd1009drivers/char/ftape/fdc-io.ccmd[0] = FDC_LOCK; /* restore lock */
cmd1010drivers/char/ftape/fdc-io.cresult = fdc_issue_command(cmd, 1, stat, 1);
cmd1014drivers/char/ftape/fdc-io.ccmd[0] = FDC_PARTID;
cmd1015drivers/char/ftape/fdc-io.cresult = fdc_issue_command(cmd, 1, stat, 1);
cmd1043drivers/char/ftape/fdc-io.ccmd[0] = FDC_SAVE;
cmd1044drivers/char/ftape/fdc-io.cresult = fdc_issue_command(cmd, 1, stat, 16);
cmd307drivers/char/ftape/fdc-isr.cstatic int calc_steps(int cmd)
cmd309drivers/char/ftape/fdc-isr.cif (current_cylinder > cmd) {
cmd310drivers/char/ftape/fdc-isr.creturn current_cylinder - cmd;
cmd312drivers/char/ftape/fdc-isr.creturn current_cylinder + cmd;
cmd234drivers/char/ftape/ftape-io.cint cmd;
cmd238drivers/char/ftape/ftape-io.cftape_report_error(&err, &cmd, 1);
cmd626drivers/char/istallion.cstatic int  stli_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg);
cmd645drivers/char/istallion.cstatic int  stli_memioctl(struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg);
cmd655drivers/char/istallion.cstatic int  stli_cmdwait(stlibrd_t *brdp, stliport_t *portp, unsigned long cmd, void *arg, int size, int copyback);
cmd656drivers/char/istallion.cstatic void  stli_sendcmd(stlibrd_t *brdp, stliport_t *portp, unsigned long cmd, void *arg, int size, int copyback);
cmd1272drivers/char/istallion.cstatic int stli_cmdwait(stlibrd_t *brdp, stliport_t *portp, unsigned long cmd, void *arg, int size, int copyback)
cmd1277drivers/char/istallion.cprintk("stli_cmdwait(brdp=%x,portp=%x,cmd=%x,arg=%x,size=%d,copyback=%d)\n", (int) brdp, (int) portp, (int) cmd, (int) arg, size, copyback);
cmd1290drivers/char/istallion.cstli_sendcmd(brdp, portp, cmd, arg, size, copyback);
cmd1843drivers/char/istallion.cstatic int stli_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg)
cmd1851drivers/char/istallion.cprintk("stli_ioctl(tty=%x,file=%x,cmd=%x,arg=%x)\n", (int) tty, (int) file, cmd, (int) arg);
cmd1867drivers/char/istallion.cswitch (cmd) {
cmd2273drivers/char/istallion.cstatic void stli_sendcmd(stlibrd_t *brdp, stliport_t *portp, unsigned long cmd, void *arg, int size, int copyback)
cmd2281drivers/char/istallion.cprintk("stli_sendcmd(brdp=%x,portp=%x,cmd=%x,arg=%x,size=%d,copyback=%d)\n", (int) brdp, (int) portp, (int) cmd, (int) arg, size, copyback);
cmd2288drivers/char/istallion.cprintk("STALLION: command already busy, cmd=%x!\n", (int) cmd);
cmd2303drivers/char/istallion.ccp->cmd = cmd;
cmd2392drivers/char/istallion.cint  cmd;
cmd2396drivers/char/istallion.ccmd = A_SETSIGNALSF;
cmd2398drivers/char/istallion.ccmd = A_SETSIGNALSFTX;
cmd2400drivers/char/istallion.ccmd = A_SETSIGNALSFRX;
cmd2402drivers/char/istallion.ccmd = A_SETSIGNALS;
cmd2408drivers/char/istallion.ccp->cmd = cmd;
cmd2411drivers/char/istallion.ccmd = ((test_bit(ST_DOFLUSHTX, &portp->state)) ? FLUSHTX : 0);
cmd2412drivers/char/istallion.ccmd |= ((test_bit(ST_DOFLUSHRX, &portp->state)) ? FLUSHRX : 0);
cmd2415drivers/char/istallion.cmemcpy((void *) &(cp->args[0]), (void *) &cmd, sizeof(int));
cmd2417drivers/char/istallion.ccp->cmd = A_FLUSH;
cmd2486drivers/char/istallion.cif ((cp->cmd == 0) && (rc != 0)) {
cmd4252drivers/char/istallion.cstatic int stli_memioctl(struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg)
cmd4258drivers/char/istallion.cprintk("stli_memioctl(ip=%x,fp=%x,cmd=%x,arg=%x)\n", (int) ip, (int) fp, cmd, (int) arg);
cmd4272drivers/char/istallion.cswitch (cmd) {
cmd392drivers/char/lp.cunsigned int cmd, unsigned long arg)
cmd398drivers/char/lp.cprintk(KERN_DEBUG "lp%d ioctl, cmd: 0x%x, arg: 0x%x\n", minor, cmd, arg);
cmd404drivers/char/lp.cswitch ( cmd ) {
cmd243drivers/char/random.cunsigned int cmd, unsigned long arg);
cmd732drivers/char/random.cunsigned int cmd, unsigned long arg)
cmd737drivers/char/random.cswitch (cmd) {
cmd222drivers/char/scc.cstatic int scc_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg);
cmd1593drivers/char/scc.ckiss_set_param(struct scc_channel *scc,char cmd, unsigned int val)
cmd1599drivers/char/scc.cswitch(cmd){
cmd2092drivers/char/scc.cscc_ioctl(struct tty_struct *tty, struct file * file, unsigned int cmd, unsigned long arg)
cmd2115drivers/char/scc.cif (cmd == TIOCSCCCFG)
cmd2203drivers/char/scc.cif (cmd == TIOCSCCINI)
cmd2223drivers/char/scc.cif (cmd == TIOCCHANINI)
cmd2272drivers/char/scc.cswitch(cmd){
cmd2294drivers/char/scc.cswitch (cmd) {
cmd1627drivers/char/serial.cstatic int set_modem_info(struct async_struct * info, unsigned int cmd,
cmd1637drivers/char/serial.cswitch (cmd) {
cmd1871drivers/char/serial.cunsigned int cmd, unsigned long arg)
cmd1882drivers/char/serial.cif ((cmd != TIOCGSERIAL) && (cmd != TIOCSSERIAL) &&
cmd1883drivers/char/serial.c(cmd != TIOCSERCONFIG) && (cmd != TIOCSERGWILD)  &&
cmd1884drivers/char/serial.c(cmd != TIOCSERSWILD) && (cmd != TIOCSERGSTRUCT) &&
cmd1885drivers/char/serial.c(cmd != TIOCMIWAIT) && (cmd != TIOCGICOUNT)) {
cmd1890drivers/char/serial.cswitch (cmd) {
cmd1928drivers/char/serial.creturn set_modem_info(info, cmd, (unsigned int *) arg);
cmd462drivers/char/stallion.cstatic int  stl_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg);
cmd1160drivers/char/stallion.cstatic int stl_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg)
cmd1166drivers/char/stallion.cprintk("stl_ioctl(tty=%x,file=%x,cmd=%x,arg=%x)\n", (int) tty, (int) file, cmd, (int) arg);
cmd1177drivers/char/stallion.cswitch (cmd) {
cmd666drivers/char/tpqic02.cstatic int notify_cmd(char cmd, short ignore_ex)
cmd670drivers/char/tpqic02.coutb_p(cmd, QIC02_CMD_PORT);    /* output the command */
cmd806drivers/char/tpqic02.cstatic int send_qic02_cmd(int cmd, time_t timeout, int ignore_ex)
cmd825drivers/char/tpqic02.cstatus_cmd_pending = cmd;
cmd827drivers/char/tpqic02.cstat = notify_cmd(cmd, ignore_ex); /* tell drive new command was loaded, */
cmd829drivers/char/tpqic02.cif (TP_HAVE_SEEK && (cmd == AR_QCMDV_SEEK_BLK)) {
cmd974drivers/char/tpqic02.cstatic void finish_rw(int cmd);
cmd1078drivers/char/tpqic02.cstatic int ll_do_qic_cmd(int cmd, time_t timeout)
cmd1095drivers/char/tpqic02.cprintk(TPQIC02_NAME ": ll_do_qic_cmd(%x, %ld) failed\n", cmd, (long) timeout);
cmd1105drivers/char/tpqic02.cstat = send_qic02_cmd(cmd, timeout, 0);  /* (checks for exceptions) */
cmd1107drivers/char/tpqic02.cif (cmd==QCMD_RD_FM) {
cmd1113drivers/char/tpqic02.c} else if (cmd==QCMD_WRT_FM) {
cmd1116drivers/char/tpqic02.c} else if ((cmd==QCMD_REWIND) || (cmd==QCMD_ERASE) || (cmd==QCMD_RETEN)) {
cmd1131drivers/char/tpqic02.cprintk(TPQIC02_NAME ": Exception persist in ll_do_qic_cmd[1](%x, %ld)", cmd, (long) timeout);
cmd1149drivers/char/tpqic02.cif (tp_sense((cmd==QCMD_SEEK_EOD ?    /*****************************/
cmd1152drivers/char/tpqic02.cprintk(TPQIC02_NAME ": Exception persist in ll_do_qic_cmd[2](%x, %ld)\n", cmd, (long) timeout);
cmd1153drivers/char/tpqic02.cif (cmd!=QCMD_RD_FM)
cmd1160drivers/char/tpqic02.cprintk(TPQIC02_NAME ": ll_do_qic_cmd %x: wait failed, stat == 0x%x\n", cmd, stat);
cmd1192drivers/char/tpqic02.cstatic void terminate_read(int cmd)
cmd1196drivers/char/tpqic02.cif (cmd != QCMD_RD_FM) {
cmd1220drivers/char/tpqic02.cstatic void terminate_write(int cmd)
cmd1227drivers/char/tpqic02.cif (cmd != QCMD_WRT_FM) {
cmd1244drivers/char/tpqic02.cstatic void finish_rw(int cmd)
cmd1250drivers/char/tpqic02.cterminate_read(cmd);
cmd1251drivers/char/tpqic02.cterminate_write(cmd);
cmd1259drivers/char/tpqic02.cstatic int do_qic_cmd(int cmd, time_t timeout)
cmd1264drivers/char/tpqic02.cfinish_rw(cmd);
cmd1274drivers/char/tpqic02.cif (cmd==QCMD_REWIND)  /* don't wind beyond BOT ;-) */
cmd1278drivers/char/tpqic02.creturn ll_do_qic_cmd(cmd, timeout);
cmd1286drivers/char/tpqic02.cstatic int do_ioctl_cmd(int cmd)
cmd1296drivers/char/tpqic02.cswitch (cmd) {
cmd119drivers/char/tty_io.cunsigned int cmd, unsigned long arg);
cmd331drivers/char/tty_io.cunsigned int cmd, unsigned long arg)
cmd1362drivers/char/tty_io.cunsigned int cmd, unsigned long arg)
cmd1382drivers/char/tty_io.cswitch (cmd) {
cmd1595drivers/char/tty_io.ccmd, arg);
cmd1601drivers/char/tty_io.ccmd, arg);
cmd375drivers/char/tty_ioctl.cunsigned int cmd, unsigned long arg)
cmd387drivers/char/tty_ioctl.cswitch (cmd) {
cmd544drivers/char/tty_ioctl.ctty->driver.ioctl(tty, file, cmd, arg);
cmd197drivers/char/vt.cunsigned int cmd, unsigned long arg)
cmd219drivers/char/vt.cswitch (cmd) {
cmd266drivers/char/vt.creturn sys_ioperm(arg, 1, (cmd == KDADDIO)) ? -ENXIO : 0;
cmd271drivers/char/vt.c(cmd == KDENABIO)) ? -ENXIO : 0;
cmd150drivers/char/wdt.cstatic int wdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
cmd359drivers/isdn/icn/icn.cisdn_ctrl cmd;
cmd383drivers/isdn/icn/icn.ccmd.command = ISDN_STAT_BSENT;
cmd384drivers/isdn/icn/icn.ccmd.driver = dev->myid;
cmd385drivers/isdn/icn/icn.ccmd.arg = channel;
cmd386drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
cmd460drivers/isdn/icn/icn.cisdn_ctrl cmd;
cmd489drivers/isdn/icn/icn.ccmd.command = ISDN_STAT_BCONN;
cmd490drivers/isdn/icn/icn.ccmd.driver = dev->myid;
cmd491drivers/isdn/icn/icn.ccmd.arg = ch - 1;
cmd492drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
cmd496drivers/isdn/icn/icn.ccmd.command = ISDN_STAT_RUN;
cmd497drivers/isdn/icn/icn.ccmd.driver = dev->myid;
cmd498drivers/isdn/icn/icn.ccmd.arg = ch - 1;
cmd499drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
cmd513drivers/isdn/icn/icn.ccmd.command = ISDN_STAT_BHUP;
cmd514drivers/isdn/icn/icn.ccmd.arg = ch - 1;
cmd515drivers/isdn/icn/icn.ccmd.driver = dev->myid;
cmd516drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
cmd520drivers/isdn/icn/icn.ccmd.command = ISDN_STAT_DCONN;
cmd521drivers/isdn/icn/icn.ccmd.arg = ch - 1;
cmd522drivers/isdn/icn/icn.ccmd.driver = dev->myid;
cmd523drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
cmd527drivers/isdn/icn/icn.ccmd.command = ISDN_STAT_DHUP;
cmd528drivers/isdn/icn/icn.ccmd.arg = ch - 1;
cmd529drivers/isdn/icn/icn.ccmd.driver = dev->myid;
cmd530drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
cmd534drivers/isdn/icn/icn.ccmd.command = ISDN_STAT_BHUP;
cmd535drivers/isdn/icn/icn.ccmd.arg = 0;
cmd536drivers/isdn/icn/icn.ccmd.driver = dev->myid;
cmd537drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
cmd538drivers/isdn/icn/icn.ccmd.command = ISDN_STAT_DHUP;
cmd539drivers/isdn/icn/icn.ccmd.arg = 0;
cmd540drivers/isdn/icn/icn.ccmd.driver = dev->myid;
cmd541drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
cmd545drivers/isdn/icn/icn.ccmd.command = ISDN_STAT_CINF;
cmd546drivers/isdn/icn/icn.ccmd.arg = ch - 1;
cmd547drivers/isdn/icn/icn.cstrncpy(cmd.num, p + 3, sizeof(cmd.num) - 1);
cmd548drivers/isdn/icn/icn.ccmd.driver = dev->myid;
cmd549drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
cmd553drivers/isdn/icn/icn.ccmd.command = ISDN_STAT_CAUSE;
cmd554drivers/isdn/icn/icn.ccmd.arg = ch - 1;
cmd555drivers/isdn/icn/icn.cstrncpy(cmd.num, p + 3, sizeof(cmd.num) - 1);
cmd556drivers/isdn/icn/icn.ccmd.driver = dev->myid;
cmd557drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
cmd561drivers/isdn/icn/icn.ccmd.command = ISDN_STAT_ICALL;
cmd562drivers/isdn/icn/icn.ccmd.driver = dev->myid;
cmd563drivers/isdn/icn/icn.ccmd.arg = ch - 1;
cmd564drivers/isdn/icn/icn.cstrncpy(cmd.num, p + 6, sizeof(cmd.num) - 1);
cmd565drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
cmd569drivers/isdn/icn/icn.ccmd.command = ISDN_STAT_ICALL;
cmd570drivers/isdn/icn/icn.ccmd.driver = dev->myid;
cmd571drivers/isdn/icn/icn.ccmd.arg = ch - 1;
cmd572drivers/isdn/icn/icn.cstrcpy(cmd.num, "LEASED,07,00,1");
cmd573drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
cmd577drivers/isdn/icn/icn.ccmd.command = ISDN_STAT_ICALL;
cmd578drivers/isdn/icn/icn.ccmd.driver = dev->myid;
cmd579drivers/isdn/icn/icn.ccmd.arg = ch - 1;
cmd580drivers/isdn/icn/icn.cstrncpy(cmd.num, p + 6, sizeof(cmd.num) - 1);
cmd581drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
cmd585drivers/isdn/icn/icn.ccmd.command = ISDN_STAT_NODCH;
cmd586drivers/isdn/icn/icn.ccmd.driver = dev->myid;
cmd587drivers/isdn/icn/icn.ccmd.arg = ch - 1;
cmd588drivers/isdn/icn/icn.cstrncpy(cmd.num, p + 6, sizeof(cmd.num) - 1);
cmd589drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
cmd619drivers/isdn/icn/icn.ccmd.command = ISDN_STAT_STAVAIL;
cmd620drivers/isdn/icn/icn.ccmd.driver = dev->myid;
cmd621drivers/isdn/icn/icn.ccmd.arg = avail;
cmd622drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
cmd971drivers/isdn/icn/icn.cisdn_ctrl cmd;
cmd1003drivers/isdn/icn/icn.ccmd.command = ISDN_STAT_STAVAIL;
cmd1004drivers/isdn/icn/icn.ccmd.driver = dev->myid;
cmd1005drivers/isdn/icn/icn.ccmd.arg = ocount;
cmd1006drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
cmd1023drivers/isdn/icn/icn.cisdn_ctrl cmd;
cmd1029drivers/isdn/icn/icn.ccmd.command = ISDN_STAT_STOP;
cmd1030drivers/isdn/icn/icn.ccmd.driver = ldev->myid;
cmd1031drivers/isdn/icn/icn.cldev->interface.statcallb(&cmd);
cmd1053drivers/isdn/icn/icn.cisdn_ctrl cmd;
cmd1149drivers/isdn/icn/icn.ccmd.command = ISDN_STAT_RUN;
cmd1150drivers/isdn/icn/icn.ccmd.driver = ldev->myid;
cmd1151drivers/isdn/icn/icn.ccmd.arg = 0;
cmd1152drivers/isdn/icn/icn.cldev->interface.statcallb(&cmd);
cmd1160drivers/isdn/icn/icn.ccmd.command = ISDN_STAT_RUN;
cmd1161drivers/isdn/icn/icn.ccmd.driver = ldev->myid;
cmd1162drivers/isdn/icn/icn.ccmd.arg = 0;
cmd1163drivers/isdn/icn/icn.cldev->interface.statcallb(&cmd);
cmd1375drivers/isdn/icn/icn.cisdn_ctrl cmd;
cmd1437drivers/isdn/icn/icn.ccmd.command = ISDN_STAT_UNLOAD;
cmd1438drivers/isdn/icn/icn.ccmd.driver = dev->myid;
cmd1439drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
cmd1473drivers/isdn/icn/icn.cisdn_ctrl cmd;
cmd1477drivers/isdn/icn/icn.ccmd.command = ISDN_STAT_UNLOAD;
cmd1478drivers/isdn/icn/icn.ccmd.driver = dev->myid;
cmd1479drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
cmd1482drivers/isdn/icn/icn.ccmd.command = ISDN_STAT_UNLOAD;
cmd1483drivers/isdn/icn/icn.ccmd.driver = dev2->myid;
cmd1484drivers/isdn/icn/icn.cdev2->interface.statcallb(&cmd);
cmd287drivers/isdn/isdn_common.cisdn_ctrl cmd;
cmd289drivers/isdn/isdn_common.ccmd.driver = di;
cmd290drivers/isdn/isdn_common.ccmd.arg = ch;
cmd291drivers/isdn/isdn_common.ccmd.command = ISDN_CMD_SETEAZ;
cmd292drivers/isdn/isdn_common.ccmd.num[0] = '\0';
cmd293drivers/isdn/isdn_common.c(void) dev->drv[di]->interface->command(&cmd);
cmd303drivers/isdn/isdn_common.cisdn_ctrl cmd;
cmd343drivers/isdn/isdn_common.ccmd.driver = di;
cmd344drivers/isdn/isdn_common.ccmd.arg = c->arg;
cmd345drivers/isdn/isdn_common.ccmd.command = ISDN_CMD_HANGUP;
cmd346drivers/isdn/isdn_common.cdev->drv[di]->interface->command(&cmd);
cmd362drivers/isdn/isdn_common.ccmd.driver = di;
cmd363drivers/isdn/isdn_common.ccmd.arg = c->arg;
cmd364drivers/isdn/isdn_common.ccmd.command = ISDN_CMD_HANGUP;
cmd365drivers/isdn/isdn_common.cdev->drv[di]->interface->command(&cmd);
cmd371drivers/isdn/isdn_common.ccmd.driver = di;
cmd372drivers/isdn/isdn_common.ccmd.arg = c->arg;
cmd373drivers/isdn/isdn_common.ccmd.command = ISDN_CMD_ACCEPTD;
cmd374drivers/isdn/isdn_common.cdev->drv[di]->interface->command(&cmd);
cmd378drivers/isdn/isdn_common.ccmd.driver = di;
cmd379drivers/isdn/isdn_common.ccmd.arg = c->arg;
cmd380drivers/isdn/isdn_common.ccmd.command = ISDN_CMD_HANGUP;
cmd381drivers/isdn/isdn_common.cdev->drv[di]->interface->command(&cmd);
cmd423drivers/isdn/isdn_common.ccmd.driver = di;
cmd424drivers/isdn/isdn_common.ccmd.arg = c->arg;
cmd425drivers/isdn/isdn_common.ccmd.command = ISDN_CMD_ACCEPTB;
cmd426drivers/isdn/isdn_common.cdev->drv[di]->interface->command(&cmd);
cmd997drivers/isdn/isdn_common.cstatic int isdn_ioctl(struct inode *inode, struct file *file, uint cmd, ulong arg)
cmd1025drivers/isdn/isdn_common.cswitch (cmd) {
cmd1273drivers/isdn/isdn_common.cif (cmd == IIOCSETMAP) {
cmd1310drivers/isdn/isdn_common.cif ((cmd&IIOCDRVCTL)==IIOCDRVCTL)
cmd1311drivers/isdn/isdn_common.ccmd = ((cmd>>_IOC_NRSHIFT)&_IOC_NRMASK)& ISDN_DRVIOCTL_MASK;
cmd1339drivers/isdn/isdn_common.cc.arg = cmd;
cmd1351drivers/isdn/isdn_common.creturn (isdn_ppp_ioctl(minor - ISDN_MINOR_PPP, file, cmd, arg));
cmd193drivers/isdn/isdn_net.cisdn_net_stat_callback(int idx, int cmd)
cmd199drivers/isdn/isdn_net.cswitch (cmd) {
cmd316drivers/isdn/isdn_net.cisdn_ctrl cmd;
cmd333drivers/isdn/isdn_net.ccmd.driver = p->local.isdn_device;
cmd334drivers/isdn/isdn_net.ccmd.arg = p->local.isdn_channel;
cmd335drivers/isdn/isdn_net.ccmd.command = ISDN_CMD_CLREAZ;
cmd336drivers/isdn/isdn_net.cdev->drv[p->local.isdn_device]->interface->command(&cmd);
cmd337drivers/isdn/isdn_net.csprintf(cmd.num, "%s", isdn_map_eaz2msn(p->local.msn, cmd.driver));
cmd338drivers/isdn/isdn_net.ccmd.command = ISDN_CMD_SETEAZ;
cmd339drivers/isdn/isdn_net.cdev->drv[p->local.isdn_device]->interface->command(&cmd);
cmd349drivers/isdn/isdn_net.ccmd.driver = p->local.isdn_device;
cmd350drivers/isdn/isdn_net.ccmd.command = ISDN_CMD_SETL2;
cmd351drivers/isdn/isdn_net.ccmd.arg = p->local.isdn_channel + (p->local.l2_proto << 8);
cmd352drivers/isdn/isdn_net.cdev->drv[p->local.isdn_device]->interface->command(&cmd);
cmd353drivers/isdn/isdn_net.ccmd.driver = p->local.isdn_device;
cmd354drivers/isdn/isdn_net.ccmd.command = ISDN_CMD_SETL3;
cmd355drivers/isdn/isdn_net.ccmd.arg = p->local.isdn_channel + (p->local.l3_proto << 8);
cmd356drivers/isdn/isdn_net.cdev->drv[p->local.isdn_device]->interface->command(&cmd);
cmd357drivers/isdn/isdn_net.ccmd.driver = p->local.isdn_device;
cmd358drivers/isdn/isdn_net.ccmd.arg = p->local.isdn_channel;
cmd366drivers/isdn/isdn_net.ccmd.command = ISDN_CMD_DIAL;
cmd367drivers/isdn/isdn_net.csprintf(cmd.num, "%s,%s,7,0", p->local.dial->num,
cmd368drivers/isdn/isdn_net.cisdn_map_eaz2msn(p->local.msn, cmd.driver));
cmd388drivers/isdn/isdn_net.cdev->drv[p->local.isdn_device]->interface->command(&cmd);
cmd407drivers/isdn/isdn_net.ccmd.driver = p->local.isdn_device;
cmd408drivers/isdn/isdn_net.ccmd.arg = p->local.isdn_channel;
cmd409drivers/isdn/isdn_net.ccmd.command = ISDN_CMD_ACCEPTB;
cmd413drivers/isdn/isdn_net.cdev->drv[p->local.isdn_device]->interface->command(&cmd);
cmd433drivers/isdn/isdn_net.ccmd.driver = p->local.isdn_device;
cmd434drivers/isdn/isdn_net.ccmd.command = ISDN_CMD_SETL2;
cmd435drivers/isdn/isdn_net.ccmd.arg = p->local.isdn_channel + (p->local.l2_proto << 8);
cmd436drivers/isdn/isdn_net.cdev->drv[p->local.isdn_device]->interface->command(&cmd);
cmd437drivers/isdn/isdn_net.ccmd.driver = p->local.isdn_device;
cmd438drivers/isdn/isdn_net.ccmd.command = ISDN_CMD_SETL3;
cmd439drivers/isdn/isdn_net.ccmd.arg = p->local.isdn_channel + (p->local.l3_proto << 8);
cmd440drivers/isdn/isdn_net.cdev->drv[p->local.isdn_device]->interface->command(&cmd);
cmd450drivers/isdn/isdn_net.ccmd.driver = p->local.isdn_device;
cmd451drivers/isdn/isdn_net.ccmd.arg = p->local.isdn_channel;
cmd452drivers/isdn/isdn_net.ccmd.command = ISDN_CMD_ACCEPTB;
cmd453drivers/isdn/isdn_net.cdev->drv[p->local.isdn_device]->interface->command(&cmd);
cmd503drivers/isdn/isdn_net.cisdn_ctrl cmd;
cmd518drivers/isdn/isdn_net.ccmd.driver = lp->isdn_device;
cmd519drivers/isdn/isdn_net.ccmd.command = ISDN_CMD_HANGUP;
cmd520drivers/isdn/isdn_net.ccmd.arg = lp->isdn_channel;
cmd521drivers/isdn/isdn_net.c(void) dev->drv[cmd.driver]->interface->command(&cmd);
cmd275drivers/isdn/isdn_ppp.cint isdn_ppp_ioctl(int minor, struct file *file, unsigned int cmd, unsigned long arg)
cmd281drivers/isdn/isdn_ppp.cprintk(KERN_DEBUG "isdn_ppp_ioctl: minor: %d cmd: %x",minor,cmd);
cmd288drivers/isdn/isdn_ppp.cswitch (cmd) {
cmd1155drivers/isdn/isdn_ppp.cint isdn_ppp_dev_ioctl(struct device *dev, struct ifreq *ifr, int cmd)
cmd1165drivers/isdn/isdn_ppp.cswitch (cmd) {
cmd144drivers/isdn/isdn_tty.cisdn_ctrl cmd;
cmd163drivers/isdn/isdn_tty.ccmd.driver = info->isdn_driver;
cmd164drivers/isdn/isdn_tty.ccmd.arg = info->isdn_channel;
cmd165drivers/isdn/isdn_tty.ccmd.command = ISDN_CMD_CLREAZ;
cmd166drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
cmd167drivers/isdn/isdn_tty.cstrcpy(cmd.num, isdn_map_eaz2msn(m->msn, info->isdn_driver));
cmd168drivers/isdn/isdn_tty.ccmd.driver = info->isdn_driver;
cmd169drivers/isdn/isdn_tty.ccmd.command = ISDN_CMD_SETEAZ;
cmd170drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
cmd171drivers/isdn/isdn_tty.ccmd.driver = info->isdn_driver;
cmd172drivers/isdn/isdn_tty.ccmd.command = ISDN_CMD_SETL2;
cmd173drivers/isdn/isdn_tty.ccmd.arg = info->isdn_channel + (m->mdmreg[14] << 8);
cmd174drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
cmd175drivers/isdn/isdn_tty.ccmd.driver = info->isdn_driver;
cmd176drivers/isdn/isdn_tty.ccmd.command = ISDN_CMD_SETL3;
cmd177drivers/isdn/isdn_tty.ccmd.arg = info->isdn_channel + (m->mdmreg[15] << 8);
cmd178drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
cmd179drivers/isdn/isdn_tty.ccmd.driver = info->isdn_driver;
cmd180drivers/isdn/isdn_tty.ccmd.arg = info->isdn_channel;
cmd181drivers/isdn/isdn_tty.csprintf(cmd.num, "%s,%s,%d,%d", n, isdn_map_eaz2msn(m->msn, info->isdn_driver),
cmd183drivers/isdn/isdn_tty.ccmd.command = ISDN_CMD_DIAL;
cmd187drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
cmd195drivers/isdn/isdn_tty.cisdn_ctrl cmd;
cmd200drivers/isdn/isdn_tty.ccmd.driver = info->isdn_driver;
cmd201drivers/isdn/isdn_tty.ccmd.command = ISDN_CMD_HANGUP;
cmd202drivers/isdn/isdn_tty.ccmd.arg = info->isdn_channel;
cmd203drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
cmd590drivers/isdn/isdn_tty.cstatic int isdn_tty_set_modem_info(modem_info * info, uint cmd, uint * value)
cmd594drivers/isdn/isdn_tty.cswitch (cmd) {
cmd641drivers/isdn/isdn_tty.cuint cmd, ulong arg)
cmd649drivers/isdn/isdn_tty.cswitch (cmd) {
cmd682drivers/isdn/isdn_tty.creturn isdn_tty_set_modem_info(info, cmd, (uint *) arg);
cmd745drivers/isdn/isdn_tty.cprintk(KERN_DEBUG "unsupp. ioctl 0x%08x on ttyi%d\n", cmd, info->line);
cmd1445drivers/isdn/isdn_tty.cisdn_ctrl cmd;
cmd1448drivers/isdn/isdn_tty.ccmd.driver = info->isdn_driver;
cmd1449drivers/isdn/isdn_tty.ccmd.arg = info->isdn_channel;
cmd1450drivers/isdn/isdn_tty.ccmd.command = ISDN_CMD_ACCEPTD;
cmd1451drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
cmd1560drivers/isdn/isdn_tty.cisdn_ctrl cmd;
cmd1583drivers/isdn/isdn_tty.ccmd.driver = info->isdn_driver;
cmd1584drivers/isdn/isdn_tty.ccmd.command = ISDN_CMD_SETL2;
cmd1585drivers/isdn/isdn_tty.ccmd.arg = info->isdn_channel + (m->mdmreg[14] << 8);
cmd1586drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
cmd1587drivers/isdn/isdn_tty.ccmd.driver = info->isdn_driver;
cmd1588drivers/isdn/isdn_tty.ccmd.command = ISDN_CMD_SETL3;
cmd1589drivers/isdn/isdn_tty.ccmd.arg = info->isdn_channel + (m->mdmreg[15] << 8);
cmd1590drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
cmd1591drivers/isdn/isdn_tty.ccmd.driver = info->isdn_driver;
cmd1592drivers/isdn/isdn_tty.ccmd.arg = info->isdn_channel;
cmd1593drivers/isdn/isdn_tty.ccmd.command = ISDN_CMD_ACCEPTD;
cmd1600drivers/isdn/isdn_tty.cfido_command(&cmd);
cmd1602drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
cmd105drivers/net/apricot.cstruct i596_cmd cmd;
cmd113drivers/net/apricot.cunsigned short cmd;
cmd126drivers/net/apricot.cstruct i596_cmd *cmd;
cmd189drivers/net/apricot.cstatic void i596_add_cmd(struct device *dev, struct i596_cmd *cmd);
cmd216drivers/net/apricot.crfd->cmd = CMD_EOL;
cmd220drivers/net/apricot.crfd->cmd = 0x0000;
cmd271drivers/net/apricot.clp->cmd_head = lp->scb.cmd = (struct i596_cmd *) I596_NULL;
cmd373drivers/net/apricot.clp->rx_tail->cmd = 0;
cmd377drivers/net/apricot.clp->rx_tail->cmd = CMD_EOL;
cmd438drivers/net/apricot.clp->scb.cmd = lp->cmd_head;
cmd482drivers/net/apricot.cstatic void i596_add_cmd(struct device *dev, struct i596_cmd *cmd)
cmd491drivers/net/apricot.ccmd->status = 0;
cmd492drivers/net/apricot.ccmd->command |= (CMD_EOL|CMD_INTR);
cmd493drivers/net/apricot.ccmd->next = (struct i596_cmd *) I596_NULL;
cmd498drivers/net/apricot.clp->cmd_tail->next = cmd;
cmd501drivers/net/apricot.clp->cmd_head = cmd;
cmd510drivers/net/apricot.clp->scb.cmd = cmd;
cmd514drivers/net/apricot.clp->cmd_tail = cmd;
cmd517drivers/net/apricot.clp->cmd_head = lp->scb.cmd;
cmd639drivers/net/apricot.ctx_cmd->cmd.command = CMD_FLEX|CmdTx;
cmd739drivers/net/apricot.clp->scb.cmd = (struct i596_cmd *) I596_NULL;
cmd871drivers/net/apricot.clp->scb.cmd = lp->cmd_head;
cmd960drivers/net/apricot.cstruct i596_cmd *cmd;
cmd969drivers/net/apricot.ccmd = (struct i596_cmd *) kmalloc(sizeof(struct i596_cmd)+2+dev->mc_count*6, GFP_ATOMIC);
cmd970drivers/net/apricot.cif (cmd == NULL)
cmd975drivers/net/apricot.ccmd->command = CmdMulticastList;
cmd976drivers/net/apricot.c*((unsigned short *) (cmd + 1)) = dev->mc_count * 6;
cmd977drivers/net/apricot.ccp=((char *)(cmd + 1))+2;
cmd983drivers/net/apricot.cprint_eth (((char *)(cmd + 1)) + 2);
cmd984drivers/net/apricot.ci596_add_cmd(dev, cmd);
cmd132drivers/net/atp.cstatic unsigned short eeprom_op(short ioaddr, unsigned int cmd);
cmd293drivers/net/atp.cstatic unsigned short eeprom_op(short ioaddr, unsigned int cmd)
cmd299drivers/net/atp.cchar outval = test_bit(num_bits, &cmd) ? EE_DATA_WRITE : 0;
cmd537drivers/net/de4x5.cstatic int     de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd);
cmd3493drivers/net/de4x5.cstatic int de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd)
cmd3506drivers/net/de4x5.cswitch(ioc->cmd) {
cmd784drivers/net/de4x5.hunsigned short cmd;                /* Command to run */
cmd287drivers/net/de600.c#define de600_put_command(cmd) ( \
cmd290drivers/net/de600.coutb_p(((rx_page | cmd) << 4)   | COMMAND            , DATA_PORT), \
cmd291drivers/net/de600.coutb_p(((rx_page | cmd) & 0xf0) | COMMAND | HI_NIBBLE, DATA_PORT))
cmd272drivers/net/de620.cde620_send_command(struct device *dev, byte cmd)
cmd275drivers/net/de620.cif (cmd == W_DUMMY)
cmd278drivers/net/de620.coutb(cmd, DATA_PORT);
cmd386drivers/net/depca.cstatic int    depca_ioctl(struct device *dev, struct ifreq *rq, int cmd);
cmd1699drivers/net/depca.cstatic int depca_ioctl(struct device *dev, struct ifreq *rq, int cmd)
cmd1711drivers/net/depca.cswitch(ioc->cmd) {
cmd163drivers/net/depca.hunsigned short cmd;                /* Command to run */
cmd792drivers/net/eexpress.cunsigned short cmd = 0x180|(location&0x7f);
cmd799drivers/net/eexpress.cif (cmd&i) 
cmd148drivers/net/eql.cstatic int eql_ioctl(struct device *dev, struct ifreq *ifr, int cmd); /*  */
cmd337drivers/net/eql.cstatic int eql_ioctl(struct device *dev, struct ifreq *ifr, int cmd)
cmd339drivers/net/eql.cif(!suser() && cmd!=EQL_GETMASTRCFG && cmd!=EQL_GETSLAVECFG)
cmd341drivers/net/eql.cswitch (cmd)
cmd780drivers/net/eth16i.cshort cmd = ( (command & (1 << i)) ? DI_1 : DI_0 );
cmd781drivers/net/eth16i.coutb(cmd, ioaddr + EEPROM_DATA_REG);
cmd295drivers/net/ewrk3.cstatic int    ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd);
cmd1672drivers/net/ewrk3.cstatic int ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd)
cmd1684drivers/net/ewrk3.cswitch(ioc->cmd) {
cmd297drivers/net/ewrk3.hunsigned short cmd;                /* Command to run */
cmd154drivers/net/pi2.cstatic int pi_ioctl(struct device *dev, struct ifreq *ifr, int cmd);
cmd241drivers/net/pi2.cint cmd;
cmd250drivers/net/pi2.ccmd = lp->base + CTL;
cmd256drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R1, WT_FN_RDYFN | WT_RDY_RT | INT_ERR_Rx | EXT_INT_ENAB);
cmd272drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_Rx_CRC);
cmd275drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R1,
cmd345drivers/net/pi2.cint cmd;
cmd351drivers/net/pi2.ccmd = CTL + lp->base;
cmd367drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
cmd368drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
cmd369drivers/net/pi2.cif ((rdscc(lp->cardbase, cmd, R0) & DCD) != 0) {
cmd373drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R15, CTSIE | DCDIE);
cmd384drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R5, TxCRC_ENAB | RTS | Tx8);
cmd400drivers/net/pi2.cint cmd;
cmd411drivers/net/pi2.ccmd = lp->base + CTL;
cmd438drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R1, WT_FN_RDYFN | EXT_INT_ENAB);
cmd455drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_Tx_CRC | RES_Tx_P);
cmd458drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R15, TxUIE);
cmd461drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R1, WT_RDY_ENAB | WT_FN_RDYFN | EXT_INT_ENAB);
cmd464drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EOM_L);
cmd474drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
cmd475drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
cmd476drivers/net/pi2.cif ((rdscc(lp->cardbase, cmd, R0) & DCD) != 0) {
cmd491drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R5, TxCRC_ENAB | RTS | Tx8);
cmd507drivers/net/pi2.cint cmd;
cmd517drivers/net/pi2.ccmd = lp->base + CTL;
cmd519drivers/net/pi2.crse = rdscc(lp->cardbase, cmd, R1);  /* Get special condition bits from R1 */
cmd583drivers/net/pi2.cint cmd;
cmd592drivers/net/pi2.ccmd = CTL + lp->base;
cmd594drivers/net/pi2.crse = rdscc(lp->cardbase, cmd, R1);  /* get status byte from R1 */
cmd596drivers/net/pi2.cif ((rdscc(lp->cardbase, cmd, R0)) & Rx_CH_AV) {
cmd618drivers/net/pi2.c*lp->rcp++ = rdscc(lp->cardbase, cmd, R8);  /* char to rcv buff */
cmd622drivers/net/pi2.c(void) rdscc(lp->cardbase, cmd, R8);
cmd623drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, ERR_RES);  /* reset err latch */
cmd677drivers/net/pi2.cint cmd;
cmd682drivers/net/pi2.ccmd = CTL + lp->base;
cmd708drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
cmd709drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
cmd710drivers/net/pi2.cif ((rdscc(lp->cardbase, cmd, R0) & DCD) != 0) {
cmd714drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R15, CTSIE | DCDIE);
cmd735drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R8, c);
cmd741drivers/net/pi2.cif ((rdscc(lp->cardbase, cmd, R0) & 0x40)) {
cmd746drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, SEND_ABORT);
cmd755drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R10, CRCPS | NRZI);
cmd757drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R10, CRCPS);
cmd759drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_Tx_P);  /* reset Tx Int Pend */
cmd778drivers/net/pi2.cint cmd;
cmd781drivers/net/pi2.ccmd = CTL + lp->base;
cmd784drivers/net/pi2.cst = rdscc(lp->cardbase, cmd, R0);  /* Fetch status */
cmd786drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
cmd793drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, SEND_ABORT);
cmd821drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_Tx_CRC);  /* reset for next frame */
cmd825drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R10, CRCPS | NRZI | ABUNDER);
cmd827drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R10, CRCPS | ABUNDER);
cmd830drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R8, c);  /* First char out now */
cmd831drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EOM_L);  /* Reset end of message latch */
cmd839drivers/net/pi2.cwhile((rdscc(lp->cardbase, cmd, R0) & 0x04) == 0)
cmd841drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R8, c);
cmd847drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R15, TxUIE);  /* allow Underrun int only */
cmd848drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
cmd849drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R1, TxINT_ENAB | EXT_INT_ENAB);  /* Tx/Ext ints */
cmd859drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
cmd860drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
cmd861drivers/net/pi2.cif ((rdscc(lp->cardbase, cmd, R0) & DCD) != 0) {
cmd865drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R15, CTSIE | DCDIE);
cmd886drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_Tx_CRC);  /* reset for next frame */
cmd890drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R10, CRCPS | NRZI | ABUNDER);
cmd892drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R10, CRCPS | ABUNDER);
cmd895drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R8, c);  /* First char out now */
cmd896drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EOM_L);  /* Reset end of message latch */
cmd904drivers/net/pi2.cwhile((rdscc(lp->cardbase, cmd, R0) & 0x04) == 0)
cmd906drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R8, c);
cmd912drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R15, TxUIE);  /* allow Underrun int only */
cmd913drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
cmd915drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R1, TxINT_ENAB | EXT_INT_ENAB);
cmd928drivers/net/pi2.c(void) rdscc(lp->cardbase, cmd, R8);
cmd929drivers/net/pi2.c(void) rdscc(lp->cardbase, cmd, R8);
cmd930drivers/net/pi2.c(void) rdscc(lp->cardbase, cmd, R8);
cmd1002drivers/net/pi2.cint cmd;
cmd1006drivers/net/pi2.ccmd = CTL + lp->base;
cmd1011drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R15, 0);
cmd1012drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R3, Rx8);  /* Rx off */
cmd1014drivers/net/pi2.cif (cmd & 2) {    /* if channel a */
cmd1016drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R1, WT_FN_RDYFN | EXT_INT_ENAB);
cmd1018drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R1, 0);  /* No interrupts */
cmd1025drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R12, tc & 0xFF);  /* lower byte */
cmd1026drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R13, (tc >> 8) & 0xFF);  /* upper byte */
cmd1029drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R5, TxCRC_ENAB | RTS | TxENAB | Tx8 | DTR);
cmd1033drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R5, Tx8 | DTR);  /*  TX off */
cmd1039drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R14, BRSRC);
cmd1043drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R12, tc & 0xFF);  /* lower byte */
cmd1044drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R13, (tc >> 8) & 0xFF);  /* upper byte */
cmd1046drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R14, BRSRC | SEARCH);
cmd1048drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R14, BRSRC | BRENABL);
cmd1052drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R3, Rx8);  /* Make sure rx is off */
cmd1053drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R0, ERR_RES);  /* reset err latch */
cmd1054drivers/net/pi2.cdummy = rdscc(lp->cardbase, cmd, R1);  /* get status byte from R1 */
cmd1055drivers/net/pi2.c(void) rdscc(lp->cardbase, cmd, R8);
cmd1056drivers/net/pi2.c(void) rdscc(lp->cardbase, cmd, R8);
cmd1058drivers/net/pi2.c(void) rdscc(lp->cardbase, cmd, R8);
cmd1061drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R3, RxENABLE | Rx8);
cmd1064drivers/net/pi2.cif (cmd & 2) {    /* if channel a */
cmd1070drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R1, (INT_ALL_Rx | EXT_INT_ENAB));
cmd1072drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R15, BRKIE);  /* allow ABORT int */
cmd1097drivers/net/pi2.cregister int cmd;
cmd1101drivers/net/pi2.ccmd = CTL + lp->base;
cmd1105drivers/net/pi2.cswitch (cmd & CHANA) {
cmd1107drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R9, CHRA);  /* Reset channel A */
cmd1108drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R2, 0xff);  /* Initialize interrupt vector */
cmd1111drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R9, CHRB);  /* Reset channel B */
cmd1116drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R1, 0);
cmd1119drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R15, 0);
cmd1122drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R4, SDLC | X1CLK);
cmd1126drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R10, CRCPS | NRZI);
cmd1129drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R11, TCBR | RCDPLL | TRxCDP | TRxCOI);
cmd1132drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R11, TCDPLL | RCDPLL | TRxCBR | TRxCOI);
cmd1134drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R10, CRCPS);
cmd1136drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R11, TCTRxCP);
cmd1140drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R6, 0);
cmd1143drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R7, FLAG);
cmd1148drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R5, Tx8 | DTR);
cmd1151drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R3, Rx8);  /* 8 bits/char */
cmd1154drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R14, BRSRC);  /* BRG off, keep Pclk source */
cmd1165drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R12, tc & 0xFF);  /* lower byte */
cmd1166drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R13, (tc >> 8) & 0xFF);  /* upper byte */
cmd1173drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R14, BRSRC | SSBR);
cmd1176drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R14, BRSRC | SSRTxC);
cmd1178drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R14, BRSRC | SEARCH);  /* SEARCH mode, keep BRG src */
cmd1179drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R14, BRSRC | BRENABL);  /* Enable the BRG */
cmd1181drivers/net/pi2.cif (!(cmd & 2))    /* if channel b */
cmd1182drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R1, (INT_ALL_Rx | EXT_INT_ENAB));
cmd1184drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R15, BRKIE);  /* ABORT int */
cmd1187drivers/net/pi2.cwrtscc(lp->cardbase, cmd, R3, RxENABLE | RxCRC_ENAB | Rx8);
cmd1595drivers/net/pi2.cstatic int pi_ioctl(struct device *dev, struct ifreq *ifr, int cmd)
cmd1605drivers/net/pi2.cif(cmd!=SIOCDEVPRIVATE)
cmd1610drivers/net/pi2.cswitch (rq.cmd) {
cmd73drivers/net/pi2.hint cmd;
cmd152drivers/net/plip.cstatic int plip_ioctl(struct device *dev, struct ifreq *ifr, int cmd);
cmd1036drivers/net/plip.cplip_ioctl(struct device *dev, struct ifreq *rq, int cmd)
cmd179drivers/net/ppp.cstatic int ppp_dev_ioctl (struct device *dev, struct ifreq *ifr, int cmd);
cmd2812drivers/net/ppp.cppp_dev_ioctl (struct device *dev, struct ifreq *ifr, int cmd)
cmd2819drivers/net/ppp.cswitch (cmd) {
cmd125drivers/net/pt.cstatic int pt_ioctl(struct device *dev, struct ifreq *ifr, int cmd);
cmd250drivers/net/pt.cint cmd;
cmd259drivers/net/pt.ccmd = lp->base + CTL;
cmd265drivers/net/pt.cwrtscc(lp->cardbase, cmd, R1, WT_FN_RDYFN | WT_RDY_RT | INT_ERR_Rx | EXT_INT_ENAB);
cmd281drivers/net/pt.cwrtscc(lp->cardbase, cmd, R0, RES_Rx_CRC);
cmd284drivers/net/pt.cwrtscc(lp->cardbase, cmd, R1,
cmd365drivers/net/pt.cregister int cmd = lp->base + CTL;
cmd376drivers/net/pt.cif (cmd & CHANA)
cmd378drivers/net/pt.cwrtscc(lp->cardbase, cmd, R9, CHRA);    /* Reset channel A */
cmd379drivers/net/pt.cwrtscc(lp->cardbase, cmd, R2, 0xff);    /* Initialise interrupt vector */
cmd381drivers/net/pt.cwrtscc(lp->cardbase, cmd, R9, CHRB);    /* Reset channel B */
cmd385drivers/net/pt.cwrtscc(lp->cardbase, cmd, R1, 0);
cmd388drivers/net/pt.cwrtscc(lp->cardbase, cmd, R15, 0);
cmd391drivers/net/pt.cwrtscc(lp->cardbase, cmd, R4, SDLC | X1CLK);
cmd397drivers/net/pt.cwrtscc(lp->cardbase, cmd, R10, CRCPS | NRZI);    
cmd400drivers/net/pt.cwrtscc(lp->cardbase, cmd, R10, CRCPS);    
cmd407drivers/net/pt.cwrtscc(lp->cardbase, cmd, R11, TCBR | RCDPLL | TRxCDP | TRxCOI);
cmd411drivers/net/pt.cwrtscc(lp->cardbase, cmd, R11, TCTRxCP | RCRTxCP | TRxCBR);
cmd412drivers/net/pt.cwrtscc(lp->cardbase,cmd, R14, 0);  /* wiz1 */
cmd416drivers/net/pt.cwrtscc(lp->cardbase, cmd, R6, 0);
cmd419drivers/net/pt.cwrtscc(lp->cardbase, cmd, R7, FLAG);
cmd422drivers/net/pt.cwrtscc(lp->cardbase, cmd, R5, Tx8 | DTR);
cmd425drivers/net/pt.cwrtscc(lp->cardbase, cmd, R3, AUTO_ENAB | Rx8);
cmd428drivers/net/pt.cwrtscc(lp->cardbase, cmd, R14, BRSRC);
cmd435drivers/net/pt.cwrtscc(lp->cardbase, cmd, R12, tc & 0xff);    /* lower byte */
cmd436drivers/net/pt.cwrtscc(lp->cardbase, cmd, R13, (tc >> 8) & 0xff);  /* upper byte */      
cmd446drivers/net/pt.cwrtscc(lp->cardbase, cmd, R14, BRSRC | SSBR);
cmd447drivers/net/pt.cwrtscc(lp->cardbase, cmd, R14, BRSRC | SEARCH);  /* SEARCH mode, keep BRG src */
cmd448drivers/net/pt.cwrtscc(lp->cardbase, cmd, R14, BRSRC | BRENABL);  /* Enable the BRG */
cmd466drivers/net/pt.cwrtscc(lp->cardbase, cmd, R1, (INT_ALL_Rx | EXT_INT_ENAB));
cmd468drivers/net/pt.cwrtscc(lp->cardbase, cmd, R15, BRKIE);  /* ABORT int */
cmd477drivers/net/pt.cwrtscc(lp->cardbase, cmd, R3, RxENABLE | RxCRC_ENAB | AUTO_ENAB | Rx8 );
cmd642drivers/net/pt.cint cmd = lp->base + CTL;
cmd648drivers/net/pt.cwrtscc(lp->cardbase, cmd, R15, 0);
cmd649drivers/net/pt.cwrtscc(lp->cardbase, cmd, R3, AUTO_ENAB | Rx8);  /* Rx off */
cmd655drivers/net/pt.cwrtscc(lp->cardbase, cmd, R1, WT_FN_RDYFN | EXT_INT_ENAB);
cmd658drivers/net/pt.cwrtscc(lp->cardbase, cmd, R1, 0);
cmd667drivers/net/pt.cwrtscc(lp->cardbase, cmd, R12, tc & 0xff);
cmd668drivers/net/pt.cwrtscc(lp->cardbase, cmd, R13, (tc >> 8) & 0xff);
cmd672drivers/net/pt.cwrtscc(lp->cardbase, cmd, R5, TxCRC_ENAB | RTS | TxENAB | Tx8 | DTR);
cmd678drivers/net/pt.cwrtscc(lp->cardbase, cmd, R5, Tx8 | DTR);
cmd685drivers/net/pt.cwrtscc(lp->cardbase, cmd, R14, BRSRC);
cmd688drivers/net/pt.cwrtscc(lp->cardbase, cmd, R12, tc & 0xff);
cmd689drivers/net/pt.cwrtscc(lp->cardbase, cmd, R13, (tc >> 8) & 0xff);
cmd692drivers/net/pt.cwrtscc(lp->cardbase, cmd, R14, BRSRC | SEARCH);
cmd694drivers/net/pt.cwrtscc(lp->cardbase, cmd, R14, BRSRC | BRENABL);
cmd699drivers/net/pt.cwrtscc(lp->cardbase, cmd, R3, AUTO_ENAB | Rx8);
cmd702drivers/net/pt.cwrtscc(lp->cardbase, cmd, R0, ERR_RES);
cmd705drivers/net/pt.c(void) rdscc(lp->cardbase, cmd, R1);
cmd708drivers/net/pt.c(void) rdscc(lp->cardbase, cmd, R8);
cmd709drivers/net/pt.c(void) rdscc(lp->cardbase, cmd, R8);
cmd710drivers/net/pt.c(void) rdscc(lp->cardbase, cmd, R8);
cmd713drivers/net/pt.cwrtscc(lp->cardbase, cmd, R3, RxENABLE | AUTO_ENAB | Rx8 );
cmd725drivers/net/pt.cwrtscc(lp->cardbase, cmd, R1, INT_ALL_Rx | EXT_INT_ENAB);
cmd728drivers/net/pt.cwrtscc(lp->cardbase, cmd, R15, BRKIE );
cmd1000drivers/net/pt.cint cmd;
cmd1002drivers/net/pt.ccmd = lp->base + CTL;
cmd1029drivers/net/pt.cstatic int pt_ioctl(struct device *dev, struct ifreq *ifr, int cmd)
cmd1039drivers/net/pt.cif (cmd != SIOCDEVPRIVATE)
cmd1044drivers/net/pt.cswitch (rq.cmd) {
cmd1148drivers/net/pt.cint cmd;
cmd1153drivers/net/pt.ccmd = lp->base + CTL;
cmd1190drivers/net/pt.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
cmd1191drivers/net/pt.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
cmd1192drivers/net/pt.cif ((rdscc(lp->cardbase, cmd, R0) & DCD) != 0)
cmd1197drivers/net/pt.cwrtscc(lp->cardbase, cmd, R15, DCDIE);
cmd1210drivers/net/pt.cwrtscc(lp->cardbase, cmd, R5, TxCRC_ENAB | RTS | Tx8);
cmd1225drivers/net/pt.cwrtscc(lp->cardbase, cmd, R8, c);
cmd1231drivers/net/pt.cif ((rdscc(lp->cardbase, cmd, R0) & TxEOM))
cmd1236drivers/net/pt.cwrtscc(lp->cardbase, cmd, R0, SEND_ABORT);
cmd1246drivers/net/pt.cwrtscc(lp->cardbase, cmd, R10, CRCPS | NRZI);
cmd1248drivers/net/pt.cwrtscc(lp->cardbase, cmd, R10, CRCPS | NRZ);
cmd1251drivers/net/pt.cwrtscc(lp->cardbase, cmd, R0, RES_Tx_P);
cmd1256drivers/net/pt.cprintk("PT: pt_txisr(): Invlaid tstate (%d) for chan %s.\n", lp->tstate, (cmd & CHANA? "A": "B") );
cmd1267drivers/net/pt.cint cmd = lp->base + CTL;
cmd1280drivers/net/pt.crse = rdscc(lp->cardbase, cmd, R1);
cmd1289drivers/net/pt.cif (rdscc(lp->cardbase, cmd, R0) & Rx_CH_AV && !lp->dmachan) 
cmd1315drivers/net/pt.c*lp->rcp++ = rdscc(lp->cardbase, cmd, R8);
cmd1319drivers/net/pt.c(void) rdscc(lp->cardbase, cmd, R8);
cmd1320drivers/net/pt.c(void) rdscc(lp->cardbase, cmd, R8);
cmd1321drivers/net/pt.c(void) rdscc(lp->cardbase, cmd, R8);
cmd1324drivers/net/pt.cwrtscc(lp->cardbase, cmd, R0, ERR_RES);
cmd1328drivers/net/pt.cwrtscc(lp->cardbase, cmd, R3, RxENABLE | ENT_HM | AUTO_ENAB | Rx8);
cmd1370drivers/net/pt.cwrtscc(lp->cardbase, cmd, R3, RxENABLE | ENT_HM | AUTO_ENAB | Rx8);      
cmd1427drivers/net/pt.cwrtscc(lp->cardbase, cmd, R0, ERR_RES);
cmd1564drivers/net/pt.cint cmd = lp->base + CTL;
cmd1573drivers/net/pt.cst = rdscc(lp->cardbase, cmd, R0);
cmd1579drivers/net/pt.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
cmd1597drivers/net/pt.cwrtscc(lp->cardbase, cmd, R0, SEND_ABORT);
cmd1635drivers/net/pt.cwrtscc(lp->cardbase, cmd, R1, WT_FN_RDYFN | EXT_INT_ENAB);
cmd1646drivers/net/pt.cwrtscc(lp->cardbase, cmd, R0, RES_Tx_CRC | RES_Tx_P);
cmd1649drivers/net/pt.cwrtscc(lp->cardbase, cmd, R15, TxUIE);
cmd1652drivers/net/pt.cwrtscc(lp->cardbase, cmd, R1, WT_RDY_ENAB | WT_FN_RDYFN | EXT_INT_ENAB);
cmd1655drivers/net/pt.cwrtscc(lp->cardbase, cmd, R0, RES_EOM_L);
cmd1664drivers/net/pt.cwrtscc(lp->cardbase, cmd, R0, RES_Tx_CRC);
cmd1669drivers/net/pt.cwrtscc(lp->cardbase, cmd, R10, CRCPS | NRZI | ABUNDER);
cmd1671drivers/net/pt.cwrtscc(lp->cardbase, cmd, R10, CRCPS | NRZ | ABUNDER);
cmd1674drivers/net/pt.cwrtscc(lp->cardbase, cmd, R8, c);
cmd1677drivers/net/pt.cwrtscc(lp->cardbase, cmd, R0, RES_EOM_L);
cmd1689drivers/net/pt.cwrtscc(lp->cardbase, cmd, R15, TxUIE);
cmd1692drivers/net/pt.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
cmd1695drivers/net/pt.cwrtscc(lp->cardbase, cmd, R1, TxINT_ENAB | EXT_INT_ENAB);
cmd1706drivers/net/pt.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
cmd1707drivers/net/pt.cwrtscc(lp->cardbase, cmd, R0, RES_EXT_INT);
cmd1708drivers/net/pt.cif ((rdscc(lp->cardbase, cmd, R0) & DCD) != 0)
cmd1713drivers/net/pt.cwrtscc(lp->cardbase, cmd, R15, DCDIE);
cmd1725drivers/net/pt.cwrtscc(lp->cardbase, cmd, R5, TxCRC_ENAB | RTS | Tx8);
cmd1752drivers/net/pt.c(void) rdscc(lp->cardbase, cmd, R8);
cmd1753drivers/net/pt.c(void) rdscc(lp->cardbase, cmd, R8);
cmd1754drivers/net/pt.c(void) rdscc(lp->cardbase, cmd, R8);      
cmd1760drivers/net/pt.cwrtscc(lp->cardbase, cmd, R3, RxENABLE | ENT_HM | AUTO_ENAB | Rx8);      
cmd1785drivers/net/pt.c(void)rdscc(lp->cardbase, cmd, R8);
cmd1786drivers/net/pt.c(void)rdscc(lp->cardbase, cmd, R8);
cmd1787drivers/net/pt.c(void)rdscc(lp->cardbase, cmd, R8);
cmd1794drivers/net/pt.cwrtscc(lp->cardbase, cmd, R3, RxENABLE | ENT_HM | AUTO_ENAB | Rx8);      
cmd102drivers/net/pt.hint cmd;
cmd1042drivers/net/slip.cslip_ioctl(struct tty_struct *tty, void *file, int cmd, void *arg)
cmd1053drivers/net/slip.cswitch(cmd) {
cmd1178drivers/net/slip.creturn n_tty_ioctl(tty, (struct file *) file, cmd, (unsigned long) arg);
cmd224drivers/net/wavelan.h#define PIOM(cmd,piono)    ((u_short)cmd << 10 << (piono * 2))
cmd741drivers/pci/pci.cunsigned char cmd, tmp, hdr_type = 0;
cmd801drivers/pci/pci.c&cmd);
cmd803drivers/pci/pci.ccmd | PCI_COMMAND_MASTER);
cmd808drivers/pci/pci.ccmd);
cmd271drivers/scsi/53c7,8xx.cstatic void print_progress (Scsi_Cmnd *cmd);
cmd275drivers/scsi/53c7,8xx.cstatic void abnormal_finished (struct NCR53c7x0_cmd *cmd, int result);
cmd283drivers/scsi/53c7,8xx.c*cmd);
cmd284drivers/scsi/53c7,8xx.cstatic void intr_dma (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd);
cmd290drivers/scsi/53c7,8xx.cstatic void NCR53c8xx_dsa_fixup (struct NCR53c7x0_cmd *cmd);
cmd293drivers/scsi/53c7,8xx.cNCR53c7x0_cmd *cmd);
cmd1899drivers/scsi/53c7,8xx.cunsigned char cmd[6];
cmd1904drivers/scsi/53c7,8xx.ccmd[0] = INQUIRY;
cmd1905drivers/scsi/53c7,8xx.ccmd[1] = cmd[2] = cmd[3] = cmd[5] = 0;
cmd1906drivers/scsi/53c7,8xx.ccmd[4] = sizeof(data); 
cmd1911drivers/scsi/53c7,8xx.cdsa[5] = virt_to_bus(&cmd);
cmd1984drivers/scsi/53c7,8xx.cNCR53c8xx_dsa_fixup (struct NCR53c7x0_cmd *cmd) {
cmd1985drivers/scsi/53c7,8xx.cScsi_Cmnd *c = cmd->cmd;
cmd1991drivers/scsi/53c7,8xx.cmemcpy (cmd->dsa, hostdata->script + (hostdata->E_dsa_code_template / 4),
cmd2010drivers/scsi/53c7,8xx.cpatch_abs_tci_data (cmd->dsa, Ent_dsa_code_template / sizeof(u32),
cmd2012drivers/scsi/53c7,8xx.cpatch_abs_32 (cmd->dsa, Ent_dsa_code_template / sizeof(u32),
cmd2013drivers/scsi/53c7,8xx.cdsa_temp_addr_next, virt_to_bus(&cmd->dsa_next_addr));
cmd2014drivers/scsi/53c7,8xx.cpatch_abs_32 (cmd->dsa, Ent_dsa_code_template / sizeof(u32),
cmd2015drivers/scsi/53c7,8xx.cdsa_temp_next, virt_to_bus(cmd->dsa) + Ent_dsa_zero -
cmd2017drivers/scsi/53c7,8xx.cpatch_abs_32 (cmd->dsa, Ent_dsa_code_template / sizeof(u32), 
cmd2019drivers/scsi/53c7,8xx.cpatch_abs_tci_data (cmd->dsa, Ent_dsa_code_template / sizeof(u32),
cmd2022drivers/scsi/53c7,8xx.cpatch_abs_32 (cmd->dsa, Ent_dsa_code_template / sizeof(u32),
cmd2023drivers/scsi/53c7,8xx.cdsa_temp_addr_saved_pointer, virt_to_bus(&cmd->saved_data_pointer));
cmd2024drivers/scsi/53c7,8xx.cpatch_abs_32 (cmd->dsa, Ent_dsa_code_template / sizeof(u32),
cmd2025drivers/scsi/53c7,8xx.cdsa_temp_addr_saved_residual, virt_to_bus(&cmd->saved_residual));
cmd2026drivers/scsi/53c7,8xx.cpatch_abs_32 (cmd->dsa, Ent_dsa_code_template / sizeof(u32),
cmd2027drivers/scsi/53c7,8xx.cdsa_temp_addr_residual, virt_to_bus(&cmd->residual));
cmd2030drivers/scsi/53c7,8xx.cpatch_abs_32 (cmd->dsa, Ent_dsa_code_template / sizeof(u32),
cmd2031drivers/scsi/53c7,8xx.cdsa_temp_addr_dsa_value, virt_to_bus(&cmd->dsa_addr));
cmd2080drivers/scsi/53c7,8xx.cabnormal_finished (struct NCR53c7x0_cmd *cmd, int result) {
cmd2081drivers/scsi/53c7,8xx.cScsi_Cmnd *c = cmd->cmd;
cmd2108drivers/scsi/53c7,8xx.cif (issue_to_cmd (host, hostdata, (u32 *) current) == cmd) 
cmd2130drivers/scsi/53c7,8xx.c!= (char *) cmd->dsa;
cmd2157drivers/scsi/53c7,8xx.cleft >= 0 && linux_search && linux_search != cmd;
cmd2170drivers/scsi/53c7,8xx.ccmd->next = hostdata->free;
cmd2171drivers/scsi/53c7,8xx.chostdata->free = cmd;
cmd2196drivers/scsi/53c7,8xx.cNCR53c7x0_cmd *cmd) {
cmd2200drivers/scsi/53c7,8xx.cScsi_Cmnd *c = cmd ? cmd->cmd : NULL;
cmd2466drivers/scsi/53c7,8xx.cNCR53c7x0_cmd *cmd) {
cmd2469drivers/scsi/53c7,8xx.cScsi_Cmnd *c = cmd ? cmd->cmd : NULL;
cmd2492drivers/scsi/53c7,8xx.cif (cmd && (cmd->flags & CMD_FLAG_SDTR)) {
cmd2495drivers/scsi/53c7,8xx.ccmd->flags &= ~CMD_FLAG_SDTR;
cmd2536drivers/scsi/53c7,8xx.cif (cmd) {
cmd2539drivers/scsi/53c7,8xx.c(cmd->flags & CMD_FLAG_SDTR) ? "accepting" : "requesting");
cmd2550drivers/scsi/53c7,8xx.cif (cmd->flags & CMD_FLAG_SDTR) {
cmd2551drivers/scsi/53c7,8xx.ccmd->flags &= ~CMD_FLAG_SDTR; 
cmd2563drivers/scsi/53c7,8xx.ccmd->flags |= CMD_FLAG_DID_SDTR;
cmd2570drivers/scsi/53c7,8xx.cpatch_dsa_32 (cmd->dsa, dsa_msgout_other, 0, 5);
cmd2571drivers/scsi/53c7,8xx.cpatch_dsa_32 (cmd->dsa, dsa_msgout_other, 1, (u32) 
cmd2635drivers/scsi/53c7,8xx.cpatch_dsa_32 (cmd->dsa, dsa_msgout, 0, 1);
cmd2642drivers/scsi/53c7,8xx.cpatch_dsa_32 (cmd->dsa, dsa_cmdout, 0, 6);
cmd2657drivers/scsi/53c7,8xx.cpatch_dsa_32 (cmd->dsa, dsa_dataout, 0, 
cmd2659drivers/scsi/53c7,8xx.cpatch_dsa_32 (cmd->dsa, dsa_datain, 0, 
cmd2660drivers/scsi/53c7,8xx.cvirt_to_bus(cmd->data_transfer_start));
cmd2661drivers/scsi/53c7,8xx.ccmd->data_transfer_start[0] = (((DCMD_TYPE_BMI | DCMD_BMI_OP_MOVE_I | 
cmd2663drivers/scsi/53c7,8xx.ccmd->data_transfer_start[1] = (u32) virt_to_bus(c->sense_buffer);
cmd2665drivers/scsi/53c7,8xx.ccmd->data_transfer_start[2] = ((DCMD_TYPE_TCI | DCMD_TCI_OP_JUMP) 
cmd2667drivers/scsi/53c7,8xx.ccmd->data_transfer_start[3] = (u32) virt_to_bus(hostdata->script) + 
cmd2677drivers/scsi/53c7,8xx.ccmd->cmd->result = 0xffff;    
cmd2691drivers/scsi/53c7,8xx.cif (cmd)
cmd2692drivers/scsi/53c7,8xx.cabnormal_finished (cmd, DID_ERROR << 16);
cmd2717drivers/scsi/53c7,8xx.chost->host_no, cmd->saved_data_pointer,
cmd2718drivers/scsi/53c7,8xx.cbus_to_virt(cmd->saved_data_pointer));
cmd2750drivers/scsi/53c7,8xx.chost->host_no, cmd->saved_data_pointer,
cmd2751drivers/scsi/53c7,8xx.cbus_to_virt (cmd->saved_data_pointer));
cmd2779drivers/scsi/53c7,8xx.chost->host_no, cmd->saved_data_pointer,
cmd2780drivers/scsi/53c7,8xx.cbus_to_virt (cmd->saved_data_pointer),
cmd2873drivers/scsi/53c7,8xx.chost->host_no, cmd->saved_data_pointer,
cmd2874drivers/scsi/53c7,8xx.cbus_to_virt (cmd->saved_data_pointer));
cmd2883drivers/scsi/53c7,8xx.cif (cmd) {
cmd2886drivers/scsi/53c7,8xx.chost->host_no, cmd->saved_data_pointer, bus_to_virt (
cmd2887drivers/scsi/53c7,8xx.ccmd->saved_data_pointer));
cmd2889drivers/scsi/53c7,8xx.cbus_to_virt(cmd->saved_data_pointer), "", 1);
cmd2891drivers/scsi/53c7,8xx.cbus_to_virt(cmd->saved_data_pointer) + size, "", 1);
cmd3397drivers/scsi/53c7,8xx.callocate_cmd (Scsi_Cmnd *cmd) {
cmd3398drivers/scsi/53c7,8xx.cstruct Scsi_Host *host = cmd->host;
cmd3410drivers/scsi/53c7,8xx.ccmd->target, cmd->lun, (hostdata->cmd_allocated[cmd->target] &
cmd3411drivers/scsi/53c7,8xx.c(1 << cmd->lun)) ? "allready allocated" : "not allocated");
cmd3419drivers/scsi/53c7,8xx.cif (!(hostdata->cmd_allocated[cmd->target] & (1 << cmd->lun)) &&
cmd3423drivers/scsi/53c7,8xx.ccmd->device && cmd->device->has_cmdblocks
cmd3428drivers/scsi/53c7,8xx.chostdata->cmd_allocated[cmd->target] |= (1 << cmd->lun);
cmd3467drivers/scsi/53c7,8xx.chost->host_no, cmd->target, cmd->lun);
cmd3486drivers/scsi/53c7,8xx.ccreate_cmd (Scsi_Cmnd *cmd) {
cmd3488drivers/scsi/53c7,8xx.cstruct Scsi_Host *host = cmd->host;
cmd3503drivers/scsi/53c7,8xx.cNCR53c7x0_local_setup(cmd->host);
cmd3505drivers/scsi/53c7,8xx.cif (!(tmp = allocate_cmd (cmd)))
cmd3514drivers/scsi/53c7,8xx.cswitch (cmd->cmnd[0]) {
cmd3522drivers/scsi/53c7,8xx.cdatain = 2 * (cmd->use_sg ? cmd->use_sg : 1) + 3;
cmd3531drivers/scsi/53c7,8xx.cprint_command(cmd->cmnd);
cmd3535drivers/scsi/53c7,8xx.ccmd->use_sg);
cmd3538drivers/scsi/53c7,8xx.cdataout = 2 * (cmd->use_sg ? cmd->use_sg : 1) + 3;
cmd3556drivers/scsi/53c7,8xx.cdatain = dataout = 2 * (cmd->use_sg ? cmd->use_sg : 1) + 3;
cmd3605drivers/scsi/53c7,8xx.ctmp->cmd = cmd;
cmd3637drivers/scsi/53c7,8xx.cpatch_dsa_32(tmp->dsa, dsa_cmnd, 0, virt_to_bus(cmd));
cmd3640drivers/scsi/53c7,8xx.cif (hostdata->sync[cmd->target].select_indirect != 
cmd3641drivers/scsi/53c7,8xx.c((hostdata->sync[cmd->target].scntl3_sanity << 24) | 
cmd3642drivers/scsi/53c7,8xx.c(cmd->target << 16) | 
cmd3643drivers/scsi/53c7,8xx.c(hostdata->sync[cmd->target].sxfer_sanity << 8))) {
cmd3645drivers/scsi/53c7,8xx.chost->host_no, hostdata->sync[cmd->target].select_indirect);
cmd3650drivers/scsi/53c7,8xx.cpatch_dsa_32(tmp->dsa, dsa_select, 0, hostdata->sync[cmd->target].
cmd3657drivers/scsi/53c7,8xx.cif (hostdata->initiate_wdtr & (1 << cmd->target)) {
cmd3663drivers/scsi/53c7,8xx.chostdata->initiate_wdtr &= ~(1 << cmd->target);
cmd3665drivers/scsi/53c7,8xx.c} else if (hostdata->initiate_sdtr & (1 << cmd->target)) {
cmd3672drivers/scsi/53c7,8xx.chostdata->initiate_sdtr &= ~(1 << cmd->target);
cmd3677drivers/scsi/53c7,8xx.celse if (!(hostdata->talked_to & (1 << cmd->target)) && 
cmd3687drivers/scsi/53c7,8xx.chostdata->talked_to |= (1 << cmd->target);
cmd3689drivers/scsi/53c7,8xx.cIDENTIFY (1, cmd->lun) : IDENTIFY (0, cmd->lun);
cmd3691drivers/scsi/53c7,8xx.cpatch_dsa_32(tmp->dsa, dsa_cmdout, 0, cmd->cmd_len);
cmd3692drivers/scsi/53c7,8xx.cpatch_dsa_32(tmp->dsa, dsa_cmdout, 1, virt_to_bus(cmd->cmnd));
cmd3709drivers/scsi/53c7,8xx.cpatch_dsa_32(tmp->dsa, dsa_msgin, 1, virt_to_bus(&cmd->result) + 1);
cmd3711drivers/scsi/53c7,8xx.cpatch_dsa_32(tmp->dsa, dsa_status, 1, virt_to_bus(&cmd->result));
cmd3754drivers/scsi/53c7,8xx.cfor (i = 0; cmd->use_sg ? (i < cmd->use_sg) : !i; cmd_datain += 4, 
cmd3756drivers/scsi/53c7,8xx.cu32 buf = cmd->use_sg ? 
cmd3757drivers/scsi/53c7,8xx.cvirt_to_bus(((struct scatterlist *)cmd->buffer)[i].address) :
cmd3758drivers/scsi/53c7,8xx.cvirt_to_bus(cmd->request_buffer);
cmd3759drivers/scsi/53c7,8xx.cu32 count = cmd->use_sg ?
cmd3760drivers/scsi/53c7,8xx.c((struct scatterlist *)cmd->buffer)[i].length :
cmd3761drivers/scsi/53c7,8xx.ccmd->request_bufflen;
cmd3854drivers/scsi/53c7,8xx.cNCR53c7xx_queue_command (Scsi_Cmnd *cmd, void (* done)(Scsi_Cmnd *)) {
cmd3855drivers/scsi/53c7,8xx.cstruct Scsi_Host *host = cmd->host;
cmd3861drivers/scsi/53c7,8xx.ccmd->scsi_done = done;
cmd3862drivers/scsi/53c7,8xx.ccmd->host_scribble = NULL;
cmd3863drivers/scsi/53c7,8xx.ccmd->SCp.ptr = NULL;
cmd3864drivers/scsi/53c7,8xx.ccmd->SCp.buffer = NULL;
cmd3870drivers/scsi/53c7,8xx.c!(hostdata->debug_lun_limit[cmd->target] & (1 << cmd->lun))) 
cmd3872drivers/scsi/53c7,8xx.c|| cmd->target > 7
cmd3874drivers/scsi/53c7,8xx.c|| cmd->target > host->max_id
cmd3876drivers/scsi/53c7,8xx.c|| cmd->target == host->this_id
cmd3879drivers/scsi/53c7,8xx.ccmd->target, cmd->lun);
cmd3880drivers/scsi/53c7,8xx.ccmd->result = (DID_BAD_TARGET << 16);
cmd3884drivers/scsi/53c7,8xx.ccmd->result = (DID_BAD_TARGET << 16);
cmd3885drivers/scsi/53c7,8xx.ccmd->result = (DID_BAD_TARGET << 16);
cmd3887drivers/scsi/53c7,8xx.cswitch (cmd->cmnd[0]) {
cmd3892drivers/scsi/53c7,8xx.ccmd->result = (DID_BAD_TARGET << 16);
cmd3899drivers/scsi/53c7,8xx.ccmd->result = 0xffff;  /* The NCR will overwrite message
cmd3901drivers/scsi/53c7,8xx.ccmd->host_scribble = (unsigned char *) tmp = create_cmd (cmd);
cmd3910drivers/scsi/53c7,8xx.cif (!(hostdata->issue_queue) || (cmd->cmnd[0] == REQUEST_SENSE)) {
cmd3911drivers/scsi/53c7,8xx.ccmd->SCp.ptr = (unsigned char *) hostdata->issue_queue;
cmd3912drivers/scsi/53c7,8xx.chostdata->issue_queue = cmd;
cmd3916drivers/scsi/53c7,8xx.ctmp->SCp.ptr = (unsigned char *) cmd;
cmd3944drivers/scsi/53c7,8xx.cstruct NCR53c7x0_cmd *cmd) {
cmd3946drivers/scsi/53c7,8xx.cScsi_Cmnd *tmp = cmd->cmd;
cmd3969drivers/scsi/53c7,8xx.ccmd->next = (struct NCR53c7x0_cmd *) hostdata->free;
cmd3970drivers/scsi/53c7,8xx.chostdata->free = cmd;
cmd3982drivers/scsi/53c7,8xx.ccmd->next = hostdata->running_list;
cmd3983drivers/scsi/53c7,8xx.chostdata->running_list = cmd;
cmd3986drivers/scsi/53c7,8xx.ccmd->dsa [(hostdata->dsa_jump_dest - hostdata->dsa_start) / 
cmd3990drivers/scsi/53c7,8xx.cvirt_to_bus ((void *) cmd->dsa) + hostdata->E_dsa_code_begin -
cmd3999drivers/scsi/53c7,8xx.ccmd->next = (struct NCR53c7x0_cmd *) hostdata->free;
cmd4000drivers/scsi/53c7,8xx.chostdata->free = cmd;
cmd4034drivers/scsi/53c7,8xx.cScsi_Cmnd *cmd) {
cmd4038drivers/scsi/53c7,8xx.creturn hostdata->busy[cmd->target][cmd->lun];
cmd4150drivers/scsi/53c7,8xx.cintr_scsi (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) {
cmd4183drivers/scsi/53c7,8xx.cif (cmd) {
cmd4185drivers/scsi/53c7,8xx.chost->host_no, cmd->cmd->target, cmd->cmd->lun);
cmd4186drivers/scsi/53c7,8xx.cprint_command (cmd->cmd->cmnd);
cmd4207drivers/scsi/53c7,8xx.c} else if (cmd) {
cmd4208drivers/scsi/53c7,8xx.cabnormal_finished(cmd, DID_BAD_TARGET << 16);
cmd4221drivers/scsi/53c7,8xx.cif (cmd) {
cmd4223drivers/scsi/53c7,8xx.chost->host_no, cmd->cmd->target, cmd->cmd->lun);
cmd4225drivers/scsi/53c7,8xx.cabnormal_finished(cmd, DID_ERROR << 16);
cmd4237drivers/scsi/53c7,8xx.cif (cmd && cmd->cmd) {
cmd4239drivers/scsi/53c7,8xx.chost->host_no, cmd->cmd->target, cmd->cmd->lun);
cmd4240drivers/scsi/53c7,8xx.cabnormal_finished (cmd, DID_PARITY << 16); 
cmd4286drivers/scsi/53c7,8xx.cintr_phase_mismatch (host, cmd);
cmd4340drivers/scsi/53c7,8xx.cstruct NCR53c7x0_cmd *cmd,      /* command which halted */
cmd4415drivers/scsi/53c7,8xx.c&(hostdata->running_list), cmd = 
cmd4416drivers/scsi/53c7,8xx.c(struct NCR53c7x0_cmd *) hostdata->running_list; cmd ;
cmd4417drivers/scsi/53c7,8xx.ccmd_prev_ptr = (struct NCR53c7x0_cmd **) &(cmd->next), 
cmd4418drivers/scsi/53c7,8xx.ccmd = (struct NCR53c7x0_cmd *) cmd->next) {
cmd4421drivers/scsi/53c7,8xx.cif (!cmd) {
cmd4426drivers/scsi/53c7,8xx.cif (!(tmp = cmd->cmd)) {
cmd4433drivers/scsi/53c7,8xx.chost->host_no, cmd->cmd->result);
cmd4444drivers/scsi/53c7,8xx.c*cmd_prev_ptr = (struct NCR53c7x0_cmd *) cmd->next;
cmd4447drivers/scsi/53c7,8xx.ccmd->next = hostdata->free;
cmd4448drivers/scsi/53c7,8xx.chostdata->free = cmd;
cmd4504drivers/scsi/53c7,8xx.ccmd = (struct NCR53c7x0_cmd *) hostdata->current;
cmd4507drivers/scsi/53c7,8xx.cfor (cmd = (struct NCR53c7x0_cmd *) 
cmd4508drivers/scsi/53c7,8xx.chostdata->running_list; cmd &&
cmd4510drivers/scsi/53c7,8xx.ccmd->dsa;
cmd4511drivers/scsi/53c7,8xx.ccmd = (struct NCR53c7x0_cmd *)(cmd->next));
cmd4514drivers/scsi/53c7,8xx.cif (cmd) {
cmd4516drivers/scsi/53c7,8xx.chost->host_no, cmd->cmd->pid, (int) cmd->cmd->target,
cmd4517drivers/scsi/53c7,8xx.c(int) cmd->cmd->lun);
cmd4518drivers/scsi/53c7,8xx.cprint_command (cmd->cmd->cmnd);
cmd4527drivers/scsi/53c7,8xx.cintr_scsi (host, cmd);
cmd4533drivers/scsi/53c7,8xx.cintr_dma (host, cmd);
cmd4781drivers/scsi/53c7,8xx.cintr_phase_mismatch (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) {
cmd4820drivers/scsi/53c7,8xx.cif (!cmd) {
cmd4841drivers/scsi/53c7,8xx.c} else if (((dsp >= cmd->data_transfer_start && 
cmd4842drivers/scsi/53c7,8xx.cdsp < cmd->data_transfer_end)) || dsp == (cmd->residual + 2)) {
cmd4857drivers/scsi/53c7,8xx.cif (dsp != cmd->residual + 2) {
cmd4858drivers/scsi/53c7,8xx.ccmd->residual[0] = ((DCMD_TYPE_TCI | DCMD_TCI_OP_CALL |
cmd4861drivers/scsi/53c7,8xx.ccmd->residual[1] = virt_to_bus(hostdata->script)
cmd4871drivers/scsi/53c7,8xx.ccmd->residual[2] = dbc_dcmd + residual;
cmd4872drivers/scsi/53c7,8xx.ccmd->residual[3] = NCR53c7x0_read32(DNAD_REG) - residual;
cmd4878drivers/scsi/53c7,8xx.cif (dsp != cmd->residual + 2) {
cmd4879drivers/scsi/53c7,8xx.ccmd->residual[4] = ((DCMD_TYPE_TCI|DCMD_TCI_OP_JUMP) 
cmd4881drivers/scsi/53c7,8xx.ccmd->residual[5] = virt_to_bus(dsp_next);
cmd4888drivers/scsi/53c7,8xx.chostdata->dsp = cmd->residual;
cmd4909drivers/scsi/53c7,8xx.chost->host_no, cmd->cmd->target);
cmd4910drivers/scsi/53c7,8xx.ccmd->flags &= ~CMD_FLAG_SDTR;
cmd4999drivers/scsi/53c7,8xx.cintr_bf (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) {
cmd5100drivers/scsi/53c7,8xx.cintr_dma (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) {
cmd5215drivers/scsi/53c7,8xx.c} else if (cmd) 
cmd5216drivers/scsi/53c7,8xx.cabnormal_finished (cmd, DID_BAD_TARGET << 16);
cmd5257drivers/scsi/53c7,8xx.cintr_bf (host, cmd);
cmd5272drivers/scsi/53c7,8xx.cswitch ((tmp = hostdata->dstat_sir_intr (host, cmd))) {
cmd5286drivers/scsi/53c7,8xx.cintr_break (host, cmd);
cmd5419drivers/scsi/53c7,8xx.cNCR53c7xx_abort (Scsi_Cmnd *cmd) {
cmd5421drivers/scsi/53c7,8xx.cstruct Scsi_Host *host = cmd->host;
cmd5434drivers/scsi/53c7,8xx.ccmd->pid);
cmd5459drivers/scsi/53c7,8xx.ccmd->pid);
cmd5467drivers/scsi/53c7,8xx.cif (cache_pid == cmd->pid) 
cmd5468drivers/scsi/53c7,8xx.cpanic ("scsi%d : bloody fetus %d\n", host->host_no, cmd->pid);
cmd5470drivers/scsi/53c7,8xx.ccache_pid = cmd->pid;
cmd5486drivers/scsi/53c7,8xx.cme && me != cmd;  last = (Scsi_Cmnd **)&(me->SCp.ptr), 
cmd5496drivers/scsi/53c7,8xx.ccmd->result = DID_ABORT << 16;
cmd5497drivers/scsi/53c7,8xx.ccmd->scsi_done(cmd);
cmd5512drivers/scsi/53c7,8xx.ccurr && curr->cmd != cmd; prev = (struct NCR53c7x0_cmd **) 
cmd5516drivers/scsi/53c7,8xx.cif ((cmd->result & 0xff) != 0xff && (cmd->result & 0xff00) != 0xff00) {
cmd5520drivers/scsi/53c7,8xx.ccmd->host_scribble = NULL;
cmd5522drivers/scsi/53c7,8xx.ccmd->scsi_done(cmd);
cmd5524drivers/scsi/53c7,8xx.chost->host_no, cmd->pid);
cmd5529drivers/scsi/53c7,8xx.ccmd->host->host_no);
cmd5540drivers/scsi/53c7,8xx.ccurr = (struct NCR53c7x0_cmd *) cmd->host_scribble;
cmd5544drivers/scsi/53c7,8xx.ccmd->host_scribble = NULL;
cmd5547drivers/scsi/53c7,8xx.cif (((cmd->result & 0xff00) == 0xff00) ||
cmd5548drivers/scsi/53c7,8xx.c((cmd->result & 0xff) == 0xff)) {
cmd5550drivers/scsi/53c7,8xx.ccmd->result = DID_ABORT << 16;
cmd5559drivers/scsi/53c7,8xx.c--hostdata->busy[cmd->target][cmd->lun];
cmd5562drivers/scsi/53c7,8xx.ccmd->scsi_done(cmd);
cmd5583drivers/scsi/53c7,8xx.cNCR53c7xx_reset (Scsi_Cmnd *cmd) {
cmd5604drivers/scsi/53c7,8xx.cstruct Scsi_Host *host = cmd->host;
cmd5617drivers/scsi/53c7,8xx.cif (tmp == cmd) {
cmd5627drivers/scsi/53c7,8xx.cc = (struct NCR53c7x0_cmd *) cmd->host_scribble;
cmd5629drivers/scsi/53c7,8xx.ccmd->host_scribble = NULL;
cmd5633drivers/scsi/53c7,8xx.cprintk ("scsi%d: lost command %ld\n", host->host_no, cmd->pid);
cmd5634drivers/scsi/53c7,8xx.ccmd->SCp.buffer = (struct scatterlist *) nuke_list;
cmd5635drivers/scsi/53c7,8xx.cnuke_list = cmd;
cmd5673drivers/scsi/53c7,8xx.cinsn_to_offset (Scsi_Cmnd *cmd, u32 *insn) {
cmd5675drivers/scsi/53c7,8xx.c(struct NCR53c7x0_hostdata *) cmd->host->hostdata;
cmd5677drivers/scsi/53c7,8xx.c(struct NCR53c7x0_cmd *) cmd->host_scribble;
cmd5697drivers/scsi/53c7,8xx.cif ((buffers = cmd->use_sg)) {
cmd5699drivers/scsi/53c7,8xx.csegment = (struct scatterlist *) cmd->buffer;
cmd5705drivers/scsi/53c7,8xx.ccmd->host->host_no, saved, segment->address);
cmd5712drivers/scsi/53c7,8xx.coffset = ptr - (char *) (cmd->request_buffer);
cmd5736drivers/scsi/53c7,8xx.cprint_progress (Scsi_Cmnd *cmd) {
cmd5739drivers/scsi/53c7,8xx.c(struct NCR53c7x0_cmd *) cmd->host_scribble;
cmd5743drivers/scsi/53c7,8xx.cNCR53c7x0_local_setup (cmd->host);
cmd5757drivers/scsi/53c7,8xx.coffset = insn_to_offset (cmd, ptr);
cmd5761drivers/scsi/53c7,8xx.ccmd->host->host_no, where, offset);
cmd5765drivers/scsi/53c7,8xx.ccmd->host->host_no, where);
cmd5767drivers/scsi/53c7,8xx.csize = print_insn (cmd->host, 
cmd5769drivers/scsi/53c7,8xx.cprint_insn (cmd->host, 
cmd5784drivers/scsi/53c7,8xx.cScsi_Cmnd *cmd;
cmd5820drivers/scsi/53c7,8xx.ccmd = (Scsi_Cmnd *) bus_to_virt(dsa[hostdata->dsa_cmnd / sizeof(u32)]);
cmd5822drivers/scsi/53c7,8xx.c(u32) virt_to_bus(cmd));
cmd5823drivers/scsi/53c7,8xx.cif (cmd) {
cmd5825drivers/scsi/53c7,8xx.ccmd->result, cmd->target, cmd->lun);
cmd5826drivers/scsi/53c7,8xx.cprint_command(cmd->cmnd);
cmd5831drivers/scsi/53c7,8xx.cif (cmd) { 
cmd5834drivers/scsi/53c7,8xx.chost->host_no, cmd->target,
cmd5835drivers/scsi/53c7,8xx.chostdata->sync[cmd->target].sxfer_sanity,
cmd5836drivers/scsi/53c7,8xx.chostdata->sync[cmd->target].scntl3_sanity);
cmd5837drivers/scsi/53c7,8xx.cfor (i = 0; i < (sizeof(hostdata->sync[cmd->target].script) / 4); ++i)
cmd5838drivers/scsi/53c7,8xx.cprintk ("0x%x ", hostdata->sync[cmd->target].script[i]);
cmd5840drivers/scsi/53c7,8xx.cprint_progress (cmd);
cmd5859drivers/scsi/53c7,8xx.cScsi_Cmnd *cmd, *next_cmd;
cmd5864drivers/scsi/53c7,8xx.cfor (left = host->can_queue, cmd = (Scsi_Cmnd *) hostdata->issue_queue; 
cmd5865drivers/scsi/53c7,8xx.cleft >= 0 && cmd; 
cmd5866drivers/scsi/53c7,8xx.ccmd = next_cmd) {
cmd5867drivers/scsi/53c7,8xx.cnext_cmd = (Scsi_Cmnd *) cmd->SCp.ptr;
cmd5870drivers/scsi/53c7,8xx.cif (cmd->host_scribble) {
cmd5871drivers/scsi/53c7,8xx.cif (check_address ((unsigned long) (cmd->host_scribble), 
cmd5872drivers/scsi/53c7,8xx.csizeof (cmd->host_scribble)) == -1)
cmd5874drivers/scsi/53c7,8xx.chost->host_no, cmd->pid);
cmd5877drivers/scsi/53c7,8xx.cprint_dsa (host, ((struct NCR53c7x0_cmd *) cmd->host_scribble)
cmd5881drivers/scsi/53c7,8xx.chost->host_no, cmd->pid, cmd->target, cmd->lun);
cmd6097drivers/scsi/53c7,8xx.cif (c->cmd->SCp.buffer) {
cmd6105drivers/scsi/53c7,8xx.cc->cmd->SCp.buffer = (struct scatterlist *) list;
cmd6106drivers/scsi/53c7,8xx.clist = c->cmd;
cmd6344drivers/scsi/53c7,8xx.cstruct NCR53c7x0_cmd *cmd, *tmp;
cmd6361drivers/scsi/53c7,8xx.cfor (cmd = (struct NCR53c7x0_cmd *) hostdata->free; cmd; cmd = tmp, 
cmd6363drivers/scsi/53c7,8xx.ctmp = (struct NCR53c7x0_cmd *) cmd->next;
cmd6368drivers/scsi/53c7,8xx.ccmd->next = NULL;
cmd6369drivers/scsi/53c7,8xx.cif (cmd->free)
cmd6370drivers/scsi/53c7,8xx.ccmd->free ((void *) cmd->real, cmd->size);
cmd1086drivers/scsi/53c7,8xx.hScsi_Cmnd *cmd;      /* Associated Scsi_Cmnd 
cmd1250drivers/scsi/53c7,8xx.hvoid (* dsa_fixup)(struct NCR53c7x0_cmd *cmd);
cmd1260drivers/scsi/53c7,8xx.hint (* dstat_sir_intr)(struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd);
cmd131drivers/scsi/AM53C974.cstatic __inline__ void initialize_SCp(Scsi_Cmnd *cmd);
cmd143drivers/scsi/AM53C974.cstatic int AM53C974_message(struct Scsi_Host *instance, Scsi_Cmnd *cmd, unsigned char msg);
cmd144drivers/scsi/AM53C974.cstatic void AM53C974_select(struct Scsi_Host *instance, Scsi_Cmnd *cmd, int tag);
cmd757drivers/scsi/AM53C974.cstatic __inline__ void initialize_SCp(Scsi_Cmnd *cmd)
cmd759drivers/scsi/AM53C974.cif (cmd->use_sg) {
cmd760drivers/scsi/AM53C974.ccmd->SCp.buffer = (struct scatterlist *)cmd->buffer;
cmd761drivers/scsi/AM53C974.ccmd->SCp.buffers_residual = cmd->use_sg - 1;
cmd762drivers/scsi/AM53C974.ccmd->SCp.ptr = (char *)cmd->SCp.buffer->address;
cmd763drivers/scsi/AM53C974.ccmd->SCp.this_residual = cmd->SCp.buffer->length; }
cmd765drivers/scsi/AM53C974.ccmd->SCp.buffer = NULL;
cmd766drivers/scsi/AM53C974.ccmd->SCp.buffers_residual = 0;
cmd767drivers/scsi/AM53C974.ccmd->SCp.ptr = (char *)cmd->request_buffer;
cmd768drivers/scsi/AM53C974.ccmd->SCp.this_residual = cmd->request_bufflen; }
cmd812drivers/scsi/AM53C974.cint AM53C974_queue_command(Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *))
cmd814drivers/scsi/AM53C974.cstruct Scsi_Host         *instance = cmd->host;
cmd822drivers/scsi/AM53C974.ccmd->cmnd[0], cmd->target, cmd->lun, cmd->request_bufflen, cmd->use_sg));
cmd825drivers/scsi/AM53C974.ccmd->host_scribble = NULL;
cmd826drivers/scsi/AM53C974.ccmd->scsi_done = done;
cmd827drivers/scsi/AM53C974.ccmd->result = 0;
cmd828drivers/scsi/AM53C974.ccmd->device->disconnect = 0;
cmd834drivers/scsi/AM53C974.cif (!(hostdata->issue_queue) || (cmd->cmnd[0] == REQUEST_SENSE)) {
cmd835drivers/scsi/AM53C974.cLIST(cmd, hostdata->issue_queue);
cmd836drivers/scsi/AM53C974.ccmd->host_scribble = (unsigned char *)hostdata->issue_queue;
cmd837drivers/scsi/AM53C974.chostdata->issue_queue = cmd; }
cmd841drivers/scsi/AM53C974.cLIST(cmd, tmp);
cmd842drivers/scsi/AM53C974.ctmp->host_scribble = (unsigned char *)cmd; }
cmd845drivers/scsi/AM53C974.c(cmd->cmnd[0] == REQUEST_SENSE) ? "head" : "tail"));
cmd1169drivers/scsi/AM53C974.cScsi_Cmnd                *cmd;
cmd1174drivers/scsi/AM53C974.ccmd = (Scsi_Cmnd *)hostdata->sel_cmd;
cmd1176drivers/scsi/AM53C974.ccmd->result = DID_BAD_TARGET << 16;
cmd1187drivers/scsi/AM53C974.ccmd = (Scsi_Cmnd *)hostdata->connected;
cmd1188drivers/scsi/AM53C974.cAM53C974_set_async(instance, cmd->target);
cmd1190drivers/scsi/AM53C974.cinstance->host_no, cmd->cmnd[0], cmd->target, cmd->lun));
cmd1191drivers/scsi/AM53C974.cif (cmd->device->disconnect) {
cmd1194drivers/scsi/AM53C974.cLIST(cmd,hostdata->disconnected_queue);
cmd1195drivers/scsi/AM53C974.ccmd->host_scribble = (unsigned char *)hostdata->disconnected_queue;
cmd1196drivers/scsi/AM53C974.chostdata->disconnected_queue = cmd;
cmd1198drivers/scsi/AM53C974.c"  the disconnected_queue\n", instance->host_no, cmd->target,
cmd1199drivers/scsi/AM53C974.ccmd->lun, hostdata->disconnected_queue->SCp.this_residual));
cmd1205drivers/scsi/AM53C974.cif (cmd->cmnd[0] == REQUEST_SENSE) {
cmd1208drivers/scsi/AM53C974.cfor (i = 0; i < cmd->request_bufflen; i++) {
cmd1209drivers/scsi/AM53C974.cprintk("%02x ", *((char *)(cmd->request_buffer) + i));
cmd1217drivers/scsi/AM53C974.ccmd = (Scsi_Cmnd *)hostdata->connected;
cmd1218drivers/scsi/AM53C974.cif (cmd) {
cmd1222drivers/scsi/AM53C974.cAM53C974_set_async(instance, cmd->target);
cmd1224drivers/scsi/AM53C974.cinstance->host_no, cmd->SCp.phase, cmd->target, cmd->SCp.this_residual, cmd->SCp.buffers_residual,
cmd1225drivers/scsi/AM53C974.ccmd->SCp.Message);
cmd1233drivers/scsi/AM53C974.chostdata->sync_off[cmd->target] = 0; }
cmd1235drivers/scsi/AM53C974.ccmd->result = DID_ABORT << 16;
cmd1237drivers/scsi/AM53C974.ccmd->result = DID_ERROR << 16;
cmd1248drivers/scsi/AM53C974.chostdata->busy[cmd->target] &= ~(1 << cmd->lun);
cmd1252drivers/scsi/AM53C974.ccmd->scsi_done(cmd);
cmd1255drivers/scsi/AM53C974.cAM53C974_set_async(instance, cmd->target); 
cmd1270drivers/scsi/AM53C974.cAM53C974_set_async(instance, cmd->target); 
cmd1392drivers/scsi/AM53C974.cScsi_Cmnd                *cmd = (Scsi_Cmnd *)hostdata->connected;
cmd1400drivers/scsi/AM53C974.c(long)hostdata->connected, (long)hostdata->sel_cmd, cmd->SCp.this_residual, cmd->SCp.buffers_residual));
cmd1401drivers/scsi/AM53C974.ccmd->SCp.phase = PHASE_DATAOUT;
cmd1406drivers/scsi/AM53C974.c(long)hostdata->connected, (long)hostdata->sel_cmd, cmd->SCp.this_residual, cmd->SCp.buffers_residual));
cmd1407drivers/scsi/AM53C974.ccmd->SCp.phase = PHASE_DATAIN;
cmd1414drivers/scsi/AM53C974.cif ((!cmd->SCp.this_residual) && cmd->SCp.buffers_residual) {
cmd1415drivers/scsi/AM53C974.ccmd->SCp.buffer++;
cmd1416drivers/scsi/AM53C974.ccmd->SCp.buffers_residual--;
cmd1417drivers/scsi/AM53C974.ccmd->SCp.ptr = (unsigned char *)cmd->SCp.buffer->address;
cmd1418drivers/scsi/AM53C974.ccmd->SCp.this_residual = cmd->SCp.buffer->length; }
cmd1419drivers/scsi/AM53C974.cif (cmd->SCp.this_residual) {
cmd1423drivers/scsi/AM53C974.c(unsigned long)cmd->SCp.this_residual,
cmd1424drivers/scsi/AM53C974.ccmd->SCp.ptr); }
cmd1433drivers/scsi/AM53C974.cAM53C974_set_async(instance, cmd->target);
cmd1434drivers/scsi/AM53C974.cif (cmd->SCp.phase == PHASE_DATAIN)
cmd1436drivers/scsi/AM53C974.cif ((cmd->SCp.phase == PHASE_DATAOUT) && (AM53C974_read_8(DMACMD) & DMACMD_START)) {
cmd1440drivers/scsi/AM53C974.ccmd->SCp.ptr += cmd->SCp.this_residual - residual;
cmd1441drivers/scsi/AM53C974.ccmd->SCp.this_residual = residual;
cmd1444drivers/scsi/AM53C974.cif (cmd->SCp.phase == PHASE_STATIN) {
cmd1446drivers/scsi/AM53C974.ccmd->SCp.Status = AM53C974_read_8(FFREG);
cmd1447drivers/scsi/AM53C974.ccmd->SCp.Message = AM53C974_read_8(FFREG); 
cmd1449drivers/scsi/AM53C974.ccmd->SCp.Status, cmd->SCp.Message));
cmd1450drivers/scsi/AM53C974.cret = AM53C974_message(instance, cmd, cmd->SCp.Message); }
cmd1455drivers/scsi/AM53C974.ccmd->SCp.Message = AM53C974_read_8(FFREG);
cmd1457drivers/scsi/AM53C974.cret = AM53C974_message(instance, cmd, cmd->SCp.Message);
cmd1459drivers/scsi/AM53C974.ccmd->SCp.phase = PHASE_MSGIN;
cmd1460drivers/scsi/AM53C974.cAM53C974_set_sync(instance, cmd->target);
cmd1466drivers/scsi/AM53C974.cAM53C974_set_async(instance, cmd->target);
cmd1487drivers/scsi/AM53C974.ccmd->SCp.phase = PHASE_MSGOUT;
cmd1489drivers/scsi/AM53C974.cAM53C974_set_sync(instance, cmd->target);
cmd1494drivers/scsi/AM53C974.cAM53C974_set_async(instance, cmd->target);
cmd1495drivers/scsi/AM53C974.cfor (i = 0; i < cmd->cmd_len; i++) AM53C974_write_8(FFREG, cmd->cmnd[i]);
cmd1497drivers/scsi/AM53C974.ccmd->SCp.phase = PHASE_CMDOUT;
cmd1498drivers/scsi/AM53C974.cAM53C974_set_sync(instance, cmd->target);
cmd1503drivers/scsi/AM53C974.cif (cmd->SCp.phase == PHASE_DATAIN)
cmd1505drivers/scsi/AM53C974.cAM53C974_set_async(instance, cmd->target);
cmd1506drivers/scsi/AM53C974.cif (cmd->SCp.phase == PHASE_DATAOUT) {
cmd1513drivers/scsi/AM53C974.ccmd->SCp.ptr += cmd->SCp.this_residual - residual;
cmd1514drivers/scsi/AM53C974.ccmd->SCp.this_residual = residual; }
cmd1517drivers/scsi/AM53C974.ccmd->SCp.phase = PHASE_STATIN;
cmd1544drivers/scsi/AM53C974.cstatic int AM53C974_message(struct Scsi_Host *instance, Scsi_Cmnd *cmd,
cmd1573drivers/scsi/AM53C974.cinstance->host_no, cmd->target, cmd->lun));
cmd1576drivers/scsi/AM53C974.cif (!cmd->next_link) {
cmd1578drivers/scsi/AM53C974.cinstance->host_no, cmd->target, cmd->lun);
cmd1585drivers/scsi/AM53C974.c"LINKED_FLG_CMD_COMPLETE message\n", cmd->cmnd[0]));
cmd1589drivers/scsi/AM53C974.cinitialize_SCp(cmd->next_link);
cmd1591drivers/scsi/AM53C974.ccmd->next_link->tag = cmd->tag;
cmd1592drivers/scsi/AM53C974.ccmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); 
cmd1594drivers/scsi/AM53C974.cinstance->host_no, cmd->target, cmd->lun));
cmd1595drivers/scsi/AM53C974.ccmd->scsi_done(cmd);
cmd1596drivers/scsi/AM53C974.ccmd = hostdata->connected;
cmd1604drivers/scsi/AM53C974.cinstance->host_no, cmd->cmnd[0], cmd->target, cmd->lun));
cmd1606drivers/scsi/AM53C974.ccmd->device->disconnect = 0;
cmd1620drivers/scsi/AM53C974.cif (cmd->cmnd[0] != REQUEST_SENSE) 
cmd1621drivers/scsi/AM53C974.ccmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); 
cmd1622drivers/scsi/AM53C974.celse if (cmd->SCp.Status != GOOD)
cmd1623drivers/scsi/AM53C974.ccmd->result = (cmd->result & 0x00ffff) | (DID_ERROR << 16);        
cmd1628drivers/scsi/AM53C974.c"COMMAND_COMPLETE message\n", cmd->cmnd[0]));
cmd1630drivers/scsi/AM53C974.cif ((cmd->cmnd[0] != REQUEST_SENSE) && (cmd->SCp.Status == CHECK_CONDITION)) {
cmd1632drivers/scsi/AM53C974.ccmd->cmnd[0] = REQUEST_SENSE;
cmd1633drivers/scsi/AM53C974.ccmd->cmnd[1] &= 0xe0;
cmd1634drivers/scsi/AM53C974.ccmd->cmnd[2] = 0;
cmd1635drivers/scsi/AM53C974.ccmd->cmnd[3] = 0;
cmd1636drivers/scsi/AM53C974.ccmd->cmnd[4] = sizeof(cmd->sense_buffer);
cmd1637drivers/scsi/AM53C974.ccmd->cmnd[5] = 0;
cmd1638drivers/scsi/AM53C974.ccmd->SCp.buffer = NULL;
cmd1639drivers/scsi/AM53C974.ccmd->SCp.buffers_residual = 0;
cmd1640drivers/scsi/AM53C974.ccmd->SCp.ptr = (char *)cmd->sense_buffer;
cmd1641drivers/scsi/AM53C974.ccmd->SCp.this_residual = sizeof(cmd->sense_buffer);
cmd1642drivers/scsi/AM53C974.cLIST(cmd,hostdata->issue_queue);
cmd1643drivers/scsi/AM53C974.ccmd->host_scribble = (unsigned char *)hostdata->issue_queue;
cmd1644drivers/scsi/AM53C974.chostdata->issue_queue = (Scsi_Cmnd *)cmd;
cmd1654drivers/scsi/AM53C974.cinstance->host_no, cmd->cmnd[0], cmd->target, cmd->lun));
cmd1660drivers/scsi/AM53C974.ccmd->target,  DEF_CLK / DEF_STP);
cmd1661drivers/scsi/AM53C974.chostdata->sync_off[cmd->target] = 0;
cmd1662drivers/scsi/AM53C974.chostdata->sync_per[cmd->target] = DEF_STP; }
cmd1667drivers/scsi/AM53C974.ccmd->device->tagged_queue = 0;
cmd1668drivers/scsi/AM53C974.chostdata->busy[cmd->target] |= (1 << cmd->lun);
cmd1679drivers/scsi/AM53C974.cinstance->host_no, cmd->cmnd[0], cmd->target, cmd->lun));
cmd1680drivers/scsi/AM53C974.ccmd->device->disconnect = 1;
cmd1688drivers/scsi/AM53C974.cinstance->host_no, cmd->cmnd[0], cmd->target, cmd->lun));
cmd1699drivers/scsi/AM53C974.ccmd->cmnd[0]));
cmd1706drivers/scsi/AM53C974.cinstance->host_no, cmd->cmnd[0], cmd->target, cmd->lun));
cmd1746drivers/scsi/AM53C974.cret = AM53C974_sync_neg(instance, cmd->target, extended_msg);
cmd1786drivers/scsi/AM53C974.cstatic void AM53C974_select(struct Scsi_Host *instance, Scsi_Cmnd *cmd, int tag)
cmd1791drivers/scsi/AM53C974.cunsigned int             i, len, cmd_size = COMMAND_SIZE(cmd->cmnd[0]);
cmd1800drivers/scsi/AM53C974.ctmp[0] = IDENTIFY(1, cmd->lun);
cmd1803drivers/scsi/AM53C974.cif (cmd->device->tagged_queue && (tag != TAG_NONE)) {
cmd1807drivers/scsi/AM53C974.cif (cmd->device->current_tag == 0) cmd->device->current_tag = 1;
cmd1808drivers/scsi/AM53C974.ccmd->tag = cmd->device->current_tag;
cmd1809drivers/scsi/AM53C974.ccmd->device->current_tag++; }
cmd1811drivers/scsi/AM53C974.ccmd->tag = (unsigned char)tag;
cmd1812drivers/scsi/AM53C974.ctmp[2] = cmd->tag;
cmd1824drivers/scsi/AM53C974.ccmd->tag = 0; }
cmd1828drivers/scsi/AM53C974.cif (((cmd->cmnd[0] == INQUIRY) || (cmd->cmnd[0] == REQUEST_SENSE)) &&
cmd1829drivers/scsi/AM53C974.c!(hostdata->sync_neg[cmd->target]) && hostdata->sync_en[cmd->target]) {
cmd1830drivers/scsi/AM53C974.chostdata->sync_neg[cmd->target] = 1;
cmd1834drivers/scsi/AM53C974.chostdata->msgout[3] = 250 / (int)hostdata->max_rate[cmd->target];
cmd1835drivers/scsi/AM53C974.chostdata->msgout[4] = hostdata->max_offset[cmd->target];
cmd1838drivers/scsi/AM53C974.cAM53C974_write_8(SDIDREG, SDIREG_MASK & cmd->target);       /* setup dest. id  */
cmd1842drivers/scsi/AM53C974.cfor (i = 0; i < cmd_size; i++) AM53C974_write_8(FFREG, cmd->cmnd[i]);
cmd1847drivers/scsi/AM53C974.cfor (i = 0; i < cmd_size; i++) AM53C974_write_8(FFREG, cmd->cmnd[i]);
cmd2096drivers/scsi/AM53C974.cint AM53C974_abort(Scsi_Cmnd *cmd)
cmd2099drivers/scsi/AM53C974.cstruct Scsi_Host         *instance = cmd->host;
cmd2117drivers/scsi/AM53C974.cif ((hostdata->connected == cmd) || (hostdata->sel_cmd == cmd)) {
cmd2130drivers/scsi/AM53C974.cif (cmd == tmp) {
cmd2166drivers/scsi/AM53C974.cif (cmd == tmp) {
cmd2198drivers/scsi/AM53C974.cint AM53C974_reset(Scsi_Cmnd *cmd)
cmd2202drivers/scsi/AM53C974.cstruct Scsi_Host         *instance = cmd->host;
cmd2240drivers/scsi/AM53C974.ccmd->result = DID_RESET << 16;
cmd2241drivers/scsi/AM53C974.ccmd->scsi_done(cmd);
cmd291drivers/scsi/AM53C974.hint AM53C974_queue_command(Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *));
cmd292drivers/scsi/AM53C974.hint AM53C974_abort(Scsi_Cmnd *cmd);
cmd293drivers/scsi/AM53C974.hint AM53C974_reset (Scsi_Cmnd *cmd);
cmd311drivers/scsi/NCR5380.cstatic __inline__ void initialize_SCp(Scsi_Cmnd *cmd) {
cmd317drivers/scsi/NCR5380.cif (cmd->use_sg) {
cmd318drivers/scsi/NCR5380.ccmd->SCp.buffer = (struct scatterlist *) cmd->buffer;
cmd319drivers/scsi/NCR5380.ccmd->SCp.buffers_residual = cmd->use_sg - 1;
cmd320drivers/scsi/NCR5380.ccmd->SCp.ptr = (char *) cmd->SCp.buffer->address;
cmd321drivers/scsi/NCR5380.ccmd->SCp.this_residual = cmd->SCp.buffer->length;
cmd323drivers/scsi/NCR5380.ccmd->SCp.buffer = NULL;
cmd324drivers/scsi/NCR5380.ccmd->SCp.buffers_residual = 0;
cmd325drivers/scsi/NCR5380.ccmd->SCp.ptr = (char *) cmd->request_buffer;
cmd326drivers/scsi/NCR5380.ccmd->SCp.this_residual = cmd->request_bufflen;
cmd515drivers/scsi/NCR5380.cstatic int should_disconnect (unsigned char cmd) {
cmd516drivers/scsi/NCR5380.cswitch (cmd) {
cmd910drivers/scsi/NCR5380.cint NCR5380_queue_command (Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *)) {
cmd911drivers/scsi/NCR5380.cstruct Scsi_Host *instance = cmd->host;
cmd917drivers/scsi/NCR5380.cswitch (cmd->cmnd[0]) {
cmd922drivers/scsi/NCR5380.ccmd->result = (DID_ERROR << 16);
cmd923drivers/scsi/NCR5380.cdone(cmd);
cmd934drivers/scsi/NCR5380.ccmd->host_scribble = NULL;
cmd935drivers/scsi/NCR5380.ccmd->scsi_done = done;
cmd937drivers/scsi/NCR5380.ccmd->result = 0;
cmd948drivers/scsi/NCR5380.cif (!(hostdata->issue_queue) || (cmd->cmnd[0] == REQUEST_SENSE)) {
cmd949drivers/scsi/NCR5380.cLIST(cmd, hostdata->issue_queue);
cmd950drivers/scsi/NCR5380.ccmd->host_scribble = (unsigned char *) hostdata->issue_queue;
cmd951drivers/scsi/NCR5380.chostdata->issue_queue = cmd;
cmd955drivers/scsi/NCR5380.cLIST(cmd, tmp);
cmd956drivers/scsi/NCR5380.ctmp->host_scribble = (unsigned char *) cmd;
cmd960drivers/scsi/NCR5380.c(cmd->cmnd[0] == REQUEST_SENSE) ? "head" : "tail");
cmd1258drivers/scsi/NCR5380.cstatic int NCR5380_select (struct Scsi_Host *instance, Scsi_Cmnd *cmd,
cmd1372drivers/scsi/NCR5380.cNCR5380_write(OUTPUT_DATA_REG, (hostdata->id_mask | (1 << cmd->target)));
cmd1420drivers/scsi/NCR5380.cprintk("scsi%d : selecting target %d\n", instance->host_no, cmd->target);
cmd1461drivers/scsi/NCR5380.cif (hostdata->targets_present & (1 << cmd->target)) {
cmd1471drivers/scsi/NCR5380.ccmd->result = DID_BAD_TARGET << 16;
cmd1472drivers/scsi/NCR5380.ccmd->scsi_done(cmd);
cmd1482drivers/scsi/NCR5380.chostdata->targets_present |= (1 << cmd->target);
cmd1518drivers/scsi/NCR5380.cinstance->host_no, cmd->target);
cmd1520drivers/scsi/NCR5380.ctmp[0] = IDENTIFY(((instance->irq == IRQ_NONE) ? 0 : 1), cmd->lun);
cmd1522drivers/scsi/NCR5380.cif (cmd->device->tagged_queue && (tag != TAG_NONE)) {
cmd1526drivers/scsi/NCR5380.cif (cmd->device->current_tag == 0)
cmd1527drivers/scsi/NCR5380.ccmd->device->current_tag = 1;
cmd1529drivers/scsi/NCR5380.ccmd->tag = cmd->device->current_tag;
cmd1530drivers/scsi/NCR5380.ccmd->device->current_tag++;
cmd1532drivers/scsi/NCR5380.ccmd->tag = (unsigned char) tag;
cmd1534drivers/scsi/NCR5380.ctmp[2] = cmd->tag;
cmd1541drivers/scsi/NCR5380.ccmd->tag=0;
cmd1552drivers/scsi/NCR5380.chostdata->connected = cmd;
cmd1554drivers/scsi/NCR5380.cif (!cmd->device->tagged_queue)
cmd1556drivers/scsi/NCR5380.chostdata->busy[cmd->target] |= (1 << cmd->lun);
cmd1558drivers/scsi/NCR5380.cinitialize_SCp(cmd);
cmd2160drivers/scsi/NCR5380.cScsi_Cmnd *cmd = (Scsi_Cmnd *) hostdata->connected;
cmd2195drivers/scsi/NCR5380.ccmd->result = DID_ERROR  << 16;
cmd2196drivers/scsi/NCR5380.ccmd->done(cmd);
cmd2204drivers/scsi/NCR5380.cif (!cmd->SCp.this_residual && cmd->SCp.buffers_residual) {
cmd2205drivers/scsi/NCR5380.c++cmd->SCp.buffer;
cmd2206drivers/scsi/NCR5380.c--cmd->SCp.buffers_residual;
cmd2207drivers/scsi/NCR5380.ccmd->SCp.this_residual = cmd->SCp.buffer->length;
cmd2208drivers/scsi/NCR5380.ccmd->SCp.ptr = cmd->SCp.buffer->address;
cmd2211drivers/scsi/NCR5380.cinstance->host_no, cmd->SCp.this_residual,
cmd2212drivers/scsi/NCR5380.ccmd->SCp.buffers_residual);
cmd2235drivers/scsi/NCR5380.cif (!cmd->device->borken &&
cmd2237drivers/scsi/NCR5380.c(transfersize = NCR5380_dma_xfer_len(instance, cmd)) != 0) {
cmd2239drivers/scsi/NCR5380.ctransfersize = cmd->transfersize;
cmd2246drivers/scsi/NCR5380.cif (!cmd->device->borken && transfersize && 
cmd2248drivers/scsi/NCR5380.ccmd->SCp.this_residual && !(cmd->SCp.this_residual % 
cmd2253drivers/scsi/NCR5380.c&len, (unsigned char **) &cmd->SCp.ptr)) {
cmd2259drivers/scsi/NCR5380.cinstance->host_no, cmd->target, cmd->lun);
cmd2260drivers/scsi/NCR5380.ccmd->device->borken = 1;
cmd2265drivers/scsi/NCR5380.ccmd->result = DID_ERROR  << 16;
cmd2266drivers/scsi/NCR5380.ccmd->done(cmd);
cmd2269drivers/scsi/NCR5380.ccmd->SCp.this_residual -= transfersize - len;
cmd2273drivers/scsi/NCR5380.c(int *) &cmd->SCp.this_residual, (unsigned char **)
cmd2274drivers/scsi/NCR5380.c&cmd->SCp.ptr);
cmd2280drivers/scsi/NCR5380.ccmd->SCp.Message = tmp;
cmd2301drivers/scsi/NCR5380.cinstance->host_no, cmd->target, cmd->lun);
cmd2309drivers/scsi/NCR5380.cif (!cmd->next_link) {
cmd2311drivers/scsi/NCR5380.cinstance->host_no, cmd->target, cmd->lun);
cmd2317drivers/scsi/NCR5380.cinitialize_SCp(cmd->next_link);
cmd2319drivers/scsi/NCR5380.ccmd->next_link->tag = cmd->tag;
cmd2320drivers/scsi/NCR5380.ccmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); 
cmd2323drivers/scsi/NCR5380.cinstance->host_no, cmd->target, cmd->lun);
cmd2325drivers/scsi/NCR5380.ccmd->scsi_done(cmd);
cmd2326drivers/scsi/NCR5380.ccmd = hostdata->connected;
cmd2337drivers/scsi/NCR5380.cinstance->host_no, cmd->target, cmd->lun);
cmd2339drivers/scsi/NCR5380.chostdata->busy[cmd->target] &= ~(1 << cmd->lun);
cmd2357drivers/scsi/NCR5380.cif (cmd->cmnd[0] != REQUEST_SENSE) 
cmd2358drivers/scsi/NCR5380.ccmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); 
cmd2359drivers/scsi/NCR5380.celse if (cmd->SCp.Status != GOOD)
cmd2360drivers/scsi/NCR5380.ccmd->result = (cmd->result & 0x00ffff) | (DID_ERROR << 16);
cmd2363drivers/scsi/NCR5380.cif ((cmd->cmnd[0] != REQUEST_SENSE) && 
cmd2364drivers/scsi/NCR5380.c(cmd->SCp.Status == CHECK_CONDITION)) {
cmd2369drivers/scsi/NCR5380.ccmd->cmnd[0] = REQUEST_SENSE;
cmd2370drivers/scsi/NCR5380.ccmd->cmnd[1] &= 0xe0;
cmd2371drivers/scsi/NCR5380.ccmd->cmnd[2] = 0;
cmd2372drivers/scsi/NCR5380.ccmd->cmnd[3] = 0;
cmd2373drivers/scsi/NCR5380.ccmd->cmnd[4] = sizeof(cmd->sense_buffer);
cmd2374drivers/scsi/NCR5380.ccmd->cmnd[5] = 0;
cmd2376drivers/scsi/NCR5380.ccmd->SCp.buffer = NULL;
cmd2377drivers/scsi/NCR5380.ccmd->SCp.buffers_residual = 0;
cmd2378drivers/scsi/NCR5380.ccmd->SCp.ptr = (char *) cmd->sense_buffer;
cmd2379drivers/scsi/NCR5380.ccmd->SCp.this_residual = sizeof(cmd->sense_buffer);
cmd2382drivers/scsi/NCR5380.cLIST(cmd,hostdata->issue_queue);
cmd2383drivers/scsi/NCR5380.ccmd->host_scribble = (unsigned char *) 
cmd2385drivers/scsi/NCR5380.chostdata->issue_queue = (Scsi_Cmnd *) cmd;
cmd2392drivers/scsi/NCR5380.ccmd->scsi_done(cmd);
cmd2411drivers/scsi/NCR5380.ccmd->device->tagged_queue = 0;
cmd2412drivers/scsi/NCR5380.chostdata->busy[cmd->target] |= (1 << cmd->lun);
cmd2420drivers/scsi/NCR5380.ccmd->device->disconnect = 1;
cmd2422drivers/scsi/NCR5380.cLIST(cmd,hostdata->disconnected_queue);
cmd2423drivers/scsi/NCR5380.ccmd->host_scribble = (unsigned char *) 
cmd2426drivers/scsi/NCR5380.chostdata->disconnected_queue = cmd;
cmd2431drivers/scsi/NCR5380.ccmd->target, cmd->lun);
cmd2540drivers/scsi/NCR5380.cinstance->host_no, tmp, cmd->target, cmd->lun);
cmd2543drivers/scsi/NCR5380.cinstance->host_no, extended_msg[1], extended_msg[0], cmd->target, cmd->lun);
cmd2557drivers/scsi/NCR5380.chostdata->busy[cmd->target] &= ~(1 << cmd->lun);
cmd2559drivers/scsi/NCR5380.ccmd->result = DID_ERROR << 16;
cmd2560drivers/scsi/NCR5380.ccmd->scsi_done(cmd);
cmd2567drivers/scsi/NCR5380.clen = cmd->cmd_len;
cmd2568drivers/scsi/NCR5380.cdata = cmd->cmnd;
cmd2577drivers/scsi/NCR5380.cif (!disconnect && should_disconnect(cmd->cmnd[0])) {
cmd2592drivers/scsi/NCR5380.ccmd->SCp.Status = tmp;
cmd2825drivers/scsi/NCR5380.cint NCR5380_abort (Scsi_Cmnd *cmd) {
cmd2827drivers/scsi/NCR5380.cstruct Scsi_Host *instance = cmd->host;
cmd2833drivers/scsi/NCR5380.cprint_Scsi_Cmnd (cmd);
cmd2838drivers/scsi/NCR5380.cprint_Scsi_Cmnd (cmd);
cmd2858drivers/scsi/NCR5380.cif (hostdata->connected == cmd) {
cmd2896drivers/scsi/NCR5380.cif (cmd == tmp) {
cmd2960drivers/scsi/NCR5380.cif (cmd == tmp) {
cmd2966drivers/scsi/NCR5380.cif (NCR5380_select (instance, cmd, (int) cmd->tag)) 
cmd2980drivers/scsi/NCR5380.cif (cmd == tmp) {
cmd3020drivers/scsi/NCR5380.cint NCR5380_reset (Scsi_Cmnd *cmd) {
cmd3022drivers/scsi/NCR5380.cNCR5380_setup(cmd->host);
cmd3024drivers/scsi/NCR5380.cNCR5380_print_status (cmd->host);
cmd3025drivers/scsi/NCR5380.cdo_reset (cmd->host);
cmd286drivers/scsi/NCR5380.hint NCR5380_abort (Scsi_Cmnd *cmd);
cmd290drivers/scsi/NCR5380.hint NCR5380_reset (Scsi_Cmnd *cmd);
cmd294drivers/scsi/NCR5380.hint NCR5380_queue_command (Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *));
cmd298drivers/scsi/NCR5380.hstatic int NCR5380_select (struct Scsi_Host *instance, Scsi_Cmnd *cmd, int tag);
cmd514drivers/scsi/aha1542.cunchar *cmd = (unchar *) SCpnt->cmnd;
cmd533drivers/scsi/aha1542.cif(*cmd == REQUEST_SENSE){
cmd545drivers/scsi/aha1542.cif (*cmd == READ_10 || *cmd == WRITE_10)
cmd546drivers/scsi/aha1542.ci = xscsi2int(cmd+2);
cmd547drivers/scsi/aha1542.celse if (*cmd == READ_6 || *cmd == WRITE_6)
cmd548drivers/scsi/aha1542.ci = scsi2int(cmd+2);
cmd552drivers/scsi/aha1542.cprintk("aha1542_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen);
cmd554drivers/scsi/aha1542.cprintk("aha1542_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen);
cmd557drivers/scsi/aha1542.cfor (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]);
cmd559drivers/scsi/aha1542.cif (*cmd == WRITE_10 || *cmd == WRITE_6)
cmd597drivers/scsi/aha1542.cif (*cmd == READ_10 || *cmd == READ_6)
cmd599drivers/scsi/aha1542.celse if (*cmd == WRITE_10 || *cmd == WRITE_6)
cmd602drivers/scsi/aha1542.cmemcpy(ccb[mbo].cdb, cmd, ccb[mbo].cdblen);
cmd700drivers/scsi/aha1542.cunchar cmd[5] = {CMD_MBINIT, AHA1542_MAILBOXES, 0, 0, 0};
cmd710drivers/scsi/aha1542.cany2scsi((cmd+2), mb);
cmd711drivers/scsi/aha1542.caha1542_out(bse, cmd, 5);
cmd1039drivers/scsi/aha1542.cstatic unchar cmd[] = {  READ_CAPACITY, 0, 0, 0, 0, 0, 0, 0, 0, 0};
cmd1044drivers/scsi/aha1542.cif (!aha1542_command(i, cmd, buf, sizeof(buf))) {
cmd1054drivers/scsi/aha1542.cunsigned char cmd[10];
cmd1057drivers/scsi/aha1542.ccmd[0] = READ_10;
cmd1058drivers/scsi/aha1542.ccmd[1] = 0;
cmd1059drivers/scsi/aha1542.cxany2scsi(cmd+2, i);
cmd1060drivers/scsi/aha1542.ccmd[6] = 0;
cmd1061drivers/scsi/aha1542.ccmd[7] = 0;
cmd1062drivers/scsi/aha1542.ccmd[8] = 1;
cmd1063drivers/scsi/aha1542.ccmd[9] = 0;
cmd1064drivers/scsi/aha1542.caha1542_command(0, cmd, buffer, 512);
cmd255drivers/scsi/aha1740.cunchar *cmd = (unchar *) SCpnt->cmnd;
cmd264drivers/scsi/aha1740.cif(*cmd == REQUEST_SENSE)
cmd276drivers/scsi/aha1740.cif (*cmd == READ_10 || *cmd == WRITE_10)
cmd277drivers/scsi/aha1740.ci = xscsi2int(cmd+2);
cmd278drivers/scsi/aha1740.celse if (*cmd == READ_6 || *cmd == WRITE_6)
cmd279drivers/scsi/aha1740.ci = scsi2int(cmd+2);
cmd282drivers/scsi/aha1740.cprintk("aha1740_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen);
cmd284drivers/scsi/aha1740.cfor (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]);
cmd317drivers/scsi/aha1740.cif (*cmd == READ_10 || *cmd == READ_6)
cmd319drivers/scsi/aha1740.celse if (*cmd == WRITE_10 || *cmd == WRITE_6)
cmd322drivers/scsi/aha1740.cmemcpy(ecb[ecbno].cdb, cmd, ecb[ecbno].cdblen);
cmd429drivers/scsi/aic7xxx.c#define aic7xxx_error(cmd)  ((cmd)->SCp.Status)
cmd434drivers/scsi/aic7xxx.c#define aic7xxx_status(cmd)  ((cmd)->SCp.sent_command)
cmd439drivers/scsi/aic7xxx.c#define aic7xxx_position(cmd)  ((cmd)->SCp.have_data_in)
cmd525drivers/scsi/aic7xxx.cScsi_Cmnd          *cmd;  /* Scsi_Cmnd for this scb */
cmd810drivers/scsi/aic7xxx.c(unsigned long) scb->next, (unsigned long) scb->cmd, scb->state,
cmd1033drivers/scsi/aic7xxx.caic7xxx_length(Scsi_Cmnd *cmd, int sg_last)
cmd1039drivers/scsi/aic7xxx.csegments = cmd->use_sg - sg_last;
cmd1040drivers/scsi/aic7xxx.csg = (struct scatterlist *) cmd->buffer;
cmd1042drivers/scsi/aic7xxx.cif (cmd->use_sg)
cmd1044drivers/scsi/aic7xxx.cfor (i = length = 0; (i < cmd->use_sg) && (i < segments); i++)
cmd1051drivers/scsi/aic7xxx.clength = cmd->request_bufflen;
cmd1276drivers/scsi/aic7xxx.cScsi_Cmnd *cmd = scb->cmd;
cmd1280drivers/scsi/aic7xxx.ccmd->target, cmd->channel);
cmd1296drivers/scsi/aic7xxx.cscb->cmd = NULL;
cmd1300drivers/scsi/aic7xxx.ccmd->scsi_done(cmd);
cmd1416drivers/scsi/aic7xxx.cscb->cmd->result = (DID_RESET << 16);
cmd1470drivers/scsi/aic7xxx.cscb->cmd->result = (DID_RESET << 16);
cmd1534drivers/scsi/aic7xxx.cscb->cmd->result = (DID_RESET << 16);
cmd1698drivers/scsi/aic7xxx.cScsi_Cmnd *cmd;
cmd1812drivers/scsi/aic7xxx.cscb->cmd->device->tagged_supported = 0;
cmd1813drivers/scsi/aic7xxx.cscb->cmd->device->tagged_queue = 0;
cmd2020drivers/scsi/aic7xxx.cif (!(scb->state & SCB_ACTIVE) || (scb->cmd == NULL))
cmd2024drivers/scsi/aic7xxx.cintstat, scb_index, scb->state, (unsigned int) scb->cmd);
cmd2028drivers/scsi/aic7xxx.ccmd = scb->cmd;
cmd2030drivers/scsi/aic7xxx.caic7xxx_status(cmd) = scb->target_status;
cmd2032drivers/scsi/aic7xxx.ccmd->result |= scb->target_status;
cmd2041drivers/scsi/aic7xxx.cif ((aic7xxx_error(cmd) == 0) && !(cmd->flags & WAS_SENSE))
cmd2052drivers/scsi/aic7xxx.ccmd->flags |= WAS_SENSE;
cmd2056drivers/scsi/aic7xxx.cscb->sense_cmd[1] = (cmd->lun << 5);
cmd2057drivers/scsi/aic7xxx.cscb->sense_cmd[4] = sizeof(cmd->sense_buffer);
cmd2059drivers/scsi/aic7xxx.cscb->sense_sg.address = (char *) &cmd->sense_buffer;
cmd2060drivers/scsi/aic7xxx.cscb->sense_sg.length = sizeof(cmd->sense_buffer);
cmd2062drivers/scsi/aic7xxx.ccmd->cmd_len = COMMAND_SIZE(cmd->cmnd[0]);
cmd2090drivers/scsi/aic7xxx.ccmd->flags &= ~ASKED_FOR_SENSE;
cmd2091drivers/scsi/aic7xxx.cif (aic7xxx_error(cmd) == 0)
cmd2093drivers/scsi/aic7xxx.caic7xxx_error(cmd) = DID_RETRY_COMMAND;
cmd2099drivers/scsi/aic7xxx.cif (!aic7xxx_error(cmd))
cmd2101drivers/scsi/aic7xxx.caic7xxx_error(cmd) = DID_BUS_BUSY;
cmd2107drivers/scsi/aic7xxx.cif (!aic7xxx_error(cmd))
cmd2109drivers/scsi/aic7xxx.caic7xxx_error(cmd) = DID_RETRY_COMMAND;
cmd2116drivers/scsi/aic7xxx.cif (!aic7xxx_error(cmd))
cmd2118drivers/scsi/aic7xxx.caic7xxx_error(cmd) = DID_RETRY_COMMAND;
cmd2128drivers/scsi/aic7xxx.cif (!(scb->state & SCB_ACTIVE) || (scb->cmd == NULL))
cmd2132drivers/scsi/aic7xxx.cintstat, scb_index, scb->state, (unsigned int) scb->cmd);
cmd2136drivers/scsi/aic7xxx.ccmd = scb->cmd;
cmd2141drivers/scsi/aic7xxx.cif (!(cmd->flags & WAS_SENSE))
cmd2149drivers/scsi/aic7xxx.cactual = aic7xxx_length(cmd, scb->residual_SG_segment_count);
cmd2155drivers/scsi/aic7xxx.cif (actual < cmd->underflow)
cmd2159drivers/scsi/aic7xxx.ccmd->target, cmd->underflow, actual,
cmd2161drivers/scsi/aic7xxx.caic7xxx_error(cmd) = DID_RETRY_COMMAND;
cmd2162drivers/scsi/aic7xxx.caic7xxx_status(cmd) = scb->target_status;
cmd2171drivers/scsi/aic7xxx.cif (!(scb->state & SCB_ACTIVE) || (scb->cmd == NULL))
cmd2175drivers/scsi/aic7xxx.cintstat, scb_index, scb->state, (unsigned int) scb->cmd);
cmd2179drivers/scsi/aic7xxx.ccmd = scb->cmd;
cmd2186drivers/scsi/aic7xxx.cscsi_id, channel, cmd->lun & 0x07);
cmd2188drivers/scsi/aic7xxx.ccmd->result = (DID_RETRY_COMMAND << 16);
cmd2196drivers/scsi/aic7xxx.cif (!(scb->state & SCB_ACTIVE) || (scb->cmd == NULL))
cmd2200drivers/scsi/aic7xxx.cintstat, scb_index, scb->state, (unsigned int) scb->cmd);
cmd2268drivers/scsi/aic7xxx.cif (!(scb->state & SCB_ACTIVE) || (scb->cmd == NULL))
cmd2272drivers/scsi/aic7xxx.cintstat, scb_index, scb->state, (unsigned int) scb->cmd);
cmd2280drivers/scsi/aic7xxx.ccmd = scb->cmd;
cmd2315drivers/scsi/aic7xxx.ccmd->target, cmd->channel & 0x01, cmd->lun & 0x07);
cmd2327drivers/scsi/aic7xxx.caic7xxx_error(cmd) = DID_PARITY;
cmd2334drivers/scsi/aic7xxx.caic7xxx_error(cmd) = DID_RETRY_COMMAND;
cmd2361drivers/scsi/aic7xxx.cif (!(scb->state & SCB_ACTIVE) || (scb->cmd == NULL))
cmd2376drivers/scsi/aic7xxx.ccmd = scb->cmd;
cmd2394drivers/scsi/aic7xxx.ccmd->result = (DID_TIME_OUT << 16);
cmd2436drivers/scsi/aic7xxx.cscb->position, scb->state, (unsigned int) scb->cmd);
cmd2469drivers/scsi/aic7xxx.cif (!(scb->state & SCB_ACTIVE) || (scb->cmd == NULL))
cmd2474drivers/scsi/aic7xxx.cscb->state, (unsigned int) scb->cmd, scb->position);
cmd2478drivers/scsi/aic7xxx.ccmd = scb->cmd;
cmd2480drivers/scsi/aic7xxx.cif ((cmd->flags & WAS_SENSE) && !(cmd->flags & ASKED_FOR_SENSE))
cmd2485drivers/scsi/aic7xxx.ccmd->flags &= ASKED_FOR_SENSE;
cmd2489drivers/scsi/aic7xxx.cscb->state, (unsigned int) scb->cmd, (unsigned int) p->free_scb);
cmd2509drivers/scsi/aic7xxx.cscb->state, (unsigned int) scb->cmd, (unsigned int) p->free_scb);
cmd2517drivers/scsi/aic7xxx.cactual = aic7xxx_length(cmd, 0);
cmd2518drivers/scsi/aic7xxx.cif (!(cmd->flags & WAS_SENSE) && (actual > 0))
cmd2524drivers/scsi/aic7xxx.csp = &p->stats[cmd->channel & 0x01][cmd->target & 0x0F][cmd->lun & 0x07];
cmd2527drivers/scsi/aic7xxx.cif (cmd->request.cmd == WRITE)
cmd3428drivers/scsi/aic7xxx.cp->scb_array[i].cmd = NULL;
cmd4020drivers/scsi/aic7xxx.cScsi_Cmnd *cmd,
cmd4032drivers/scsi/aic7xxx.cif (cmd->device->tagged_supported)
cmd4034drivers/scsi/aic7xxx.cif (cmd->device->tagged_queue == 0)
cmd4037drivers/scsi/aic7xxx.c"channel %d.\n", cmd->target, cmd->channel);
cmd4038drivers/scsi/aic7xxx.ccmd->device->tagged_queue = 1;
cmd4039drivers/scsi/aic7xxx.ccmd->device->current_tag = 1;  /* enable tagging */
cmd4041drivers/scsi/aic7xxx.ccmd->tag = cmd->device->current_tag;
cmd4042drivers/scsi/aic7xxx.ccmd->device->current_tag++;
cmd4046drivers/scsi/aic7xxx.cmask = (0x01 << (cmd->target | (cmd->channel << 3)));
cmd4056drivers/scsi/aic7xxx.cprintk("aic7xxx: Sending WDTR request to target %d.\n", cmd->target);
cmd4066drivers/scsi/aic7xxx.cprintk("aic7xxx: Sending SDTR request to target %d.\n", cmd->target);
cmd4074drivers/scsi/aic7xxx.ccmd->target, cmd->cmnd[0], cmd->cmd_len, p->needwdtr, mask);
cmd4076drivers/scsi/aic7xxx.cscb->target_channel_lun = ((cmd->target << 4) & 0xF0) |
cmd4077drivers/scsi/aic7xxx.c((cmd->channel & 0x01) << 3) | (cmd->lun & 0x07);
cmd4090drivers/scsi/aic7xxx.caddr = cmd->cmnd;
cmd4091drivers/scsi/aic7xxx.cscb->SCSI_cmd_length = cmd->cmd_len;
cmd4094drivers/scsi/aic7xxx.cif (cmd->use_sg)
cmd4096drivers/scsi/aic7xxx.cscb->SG_segment_count = cmd->use_sg;
cmd4097drivers/scsi/aic7xxx.cmemcpy(scb->SG_list_pointer, &cmd->request_buffer,
cmd4099drivers/scsi/aic7xxx.cmemcpy(&sg, &cmd->request_buffer, sizeof(sg));
cmd4104drivers/scsi/aic7xxx.ccmd->use_sg, aic7xxx_length(cmd, 0), scb->data_count);
cmd4111drivers/scsi/aic7xxx.c(unsigned long) cmd->request_buffer, cmd->request_bufflen);
cmd4113drivers/scsi/aic7xxx.cif (cmd->request_bufflen == 0)
cmd4128drivers/scsi/aic7xxx.cscb->sg.address = (char *) cmd->request_buffer;
cmd4129drivers/scsi/aic7xxx.cscb->sg.length = cmd->request_bufflen;
cmd4133drivers/scsi/aic7xxx.cmemcpy(scb->data_pointer, &cmd->request_buffer, sizeof(scb->data_pointer));
cmd4146drivers/scsi/aic7xxx.caic7xxx_queue(Scsi_Cmnd *cmd, void (*fn)(Scsi_Cmnd *))
cmd4152drivers/scsi/aic7xxx.cp = (struct aic7xxx_host *) cmd->host->hostdata;
cmd4157drivers/scsi/aic7xxx.cif (!p->a_scanned && (cmd->channel == 0))
cmd4164drivers/scsi/aic7xxx.cif (!p->b_scanned && (cmd->channel == 1))
cmd4173drivers/scsi/aic7xxx.ccmd->cmnd[0], cmd->cmd_len, cmd->target, cmd->channel,
cmd4174drivers/scsi/aic7xxx.ccmd->lun & 0x07);
cmd4233drivers/scsi/aic7xxx.cscb->cmd = cmd;
cmd4234drivers/scsi/aic7xxx.caic7xxx_position(cmd) = scb->position;
cmd4243drivers/scsi/aic7xxx.caic7xxx_buildscb(p, cmd, scb);
cmd4252drivers/scsi/aic7xxx.cscb->position, (unsigned int) scb->cmd,
cmd4278drivers/scsi/aic7xxx.ccmd->scsi_done = fn;
cmd4279drivers/scsi/aic7xxx.caic7xxx_error(cmd) = DID_OK;
cmd4280drivers/scsi/aic7xxx.caic7xxx_status(cmd) = 0;
cmd4281drivers/scsi/aic7xxx.ccmd->result = 0;
cmd4282drivers/scsi/aic7xxx.cmemset(&cmd->sense_buffer, 0, sizeof(cmd->sense_buffer));
cmd4287drivers/scsi/aic7xxx.c(long) cmd, (long) scb->cmd, scb->position);
cmd4373drivers/scsi/aic7xxx.caic7xxx_error(scb->cmd) = errcode;
cmd4422drivers/scsi/aic7xxx.caic7xxx_error(scb->cmd) = errcode;
cmd4452drivers/scsi/aic7xxx.caic7xxx_abort_reset(Scsi_Cmnd *cmd, unsigned char errcode)
cmd4459drivers/scsi/aic7xxx.cp = (struct aic7xxx_host *) cmd->host->hostdata;
cmd4460drivers/scsi/aic7xxx.cscb = &(p->scb_array[aic7xxx_position(cmd)]);
cmd4477drivers/scsi/aic7xxx.caic7xxx_error(cmd) = errcode;
cmd4509drivers/scsi/aic7xxx.ccmd->result = errcode << 16;
cmd4510drivers/scsi/aic7xxx.ccmd->scsi_done(cmd);
cmd4525drivers/scsi/aic7xxx.caic7xxx_abort(Scsi_Cmnd *cmd)
cmd4528drivers/scsi/aic7xxx.cprintk ("aic7xxx: (abort) target/channel %d/%d\n", cmd->target, cmd->channel);
cmd4531drivers/scsi/aic7xxx.cswitch (aic7xxx_abort_reset(cmd, DID_ABORT))
cmd4557drivers/scsi/aic7xxx.caic7xxx_reset(Scsi_Cmnd *cmd)
cmd4560drivers/scsi/aic7xxx.cprintk ("aic7xxx: (reset) target/channel %d/%d\n", cmd->target, cmd->channel);
cmd4563drivers/scsi/aic7xxx.cswitch (aic7xxx_abort_reset(cmd, DID_RESET))
cmd565drivers/scsi/constants.cvoid print_Scsi_Cmnd (Scsi_Cmnd *cmd) {
cmd567drivers/scsi/constants.ccmd->host->host_no, 
cmd568drivers/scsi/constants.ccmd->target, 
cmd569drivers/scsi/constants.ccmd->lun);
cmd571drivers/scsi/constants.cprint_command (cmd->cmnd);
cmd337drivers/scsi/eata.cstatic inline unchar do_dma (ushort iobase, unsigned int addr, unchar cmd) {
cmd348drivers/scsi/eata.coutb(cmd, iobase + REG_CMD);
cmd157drivers/scsi/eata_dma.cScsi_Cmnd *cmd;
cmd186drivers/scsi/eata_dma.ccmd = cp->cmd;
cmd187drivers/scsi/eata_dma.cbase = (uint) cmd->host->base;
cmd214drivers/scsi/eata_dma.c"%#.2x \n", irq, base, cmd->pid, cmd->target,
cmd215drivers/scsi/eata_dma.ccmd->lun, eata_stat, hba_stat));
cmd220drivers/scsi/eata_dma.c&& cmd->device->type == TYPE_DISK
cmd221drivers/scsi/eata_dma.c&& (HD(cmd)->t_state[cp->cp_channel][cp->cp_id] == RESET))
cmd224drivers/scsi/eata_dma.cHD(cmd)->t_state[cp->cp_channel][cp->cp_id] = OK;
cmd225drivers/scsi/eata_dma.cif(HD(cmd)->do_latency == TRUE && cp->timestamp) {
cmd229drivers/scsi/eata_dma.cif(HD(cmd)->writes_lat[cp->sizeindex][1] > time)
cmd230drivers/scsi/eata_dma.cHD(cmd)->writes_lat[cp->sizeindex][1] = time;
cmd231drivers/scsi/eata_dma.cif(HD(cmd)->writes_lat[cp->sizeindex][2] < time)
cmd232drivers/scsi/eata_dma.cHD(cmd)->writes_lat[cp->sizeindex][2] = time;
cmd233drivers/scsi/eata_dma.cHD(cmd)->writes_lat[cp->sizeindex][3] += time;
cmd234drivers/scsi/eata_dma.cHD(cmd)->writes_lat[cp->sizeindex][0]++;
cmd236drivers/scsi/eata_dma.cif(HD(cmd)->reads_lat[cp->sizeindex][1] > time)
cmd237drivers/scsi/eata_dma.cHD(cmd)->reads_lat[cp->sizeindex][1] = time;
cmd238drivers/scsi/eata_dma.cif(HD(cmd)->reads_lat[cp->sizeindex][2] < time)
cmd239drivers/scsi/eata_dma.cHD(cmd)->reads_lat[cp->sizeindex][2] = time;
cmd240drivers/scsi/eata_dma.cHD(cmd)->reads_lat[cp->sizeindex][3] += time;
cmd241drivers/scsi/eata_dma.cHD(cmd)->reads_lat[cp->sizeindex][0]++;
cmd246drivers/scsi/eata_dma.c&& cmd->device->type == TYPE_DISK
cmd247drivers/scsi/eata_dma.c&& (cmd->sense_buffer[2] & 0xf) == RECOVERED_ERROR)
cmd251drivers/scsi/eata_dma.cHD(cmd)->t_timeout[cp->cp_channel][cp->cp_id] = OK;
cmd257drivers/scsi/eata_dma.cif (HD(cmd)->t_timeout[cp->cp_channel][cp->cp_id] > 1)
cmd261drivers/scsi/eata_dma.cHD(cmd)->t_timeout[cp->cp_channel][cp->cp_id]++;
cmd266drivers/scsi/eata_dma.cif (cmd->device->type != TYPE_TAPE)
cmd272drivers/scsi/eata_dma.cHD(cmd)->t_state[cp->cp_channel][i] = RESET;
cmd286drivers/scsi/eata_dma.ccmd->result = result | (scsi_stat << 1); 
cmd290drivers/scsi/eata_dma.c|| cmd->scsi_done == NULL || cmd->device->id == 7) 
cmd294drivers/scsi/eata_dma.ccmd->device->channel, cmd->device->id, cmd->device->lun,
cmd295drivers/scsi/eata_dma.ccmd->pid, eata_stat, hba_stat, scsi_stat, 
cmd296drivers/scsi/eata_dma.ccmd->sense_buffer[2] & 0xf, cmd->result); 
cmd301drivers/scsi/eata_dma.ccmd->scsi_done(cmd);
cmd346drivers/scsi/eata_dma.cint eata_queue(Scsi_Cmnd * cmd, void (* done) (Scsi_Cmnd *))
cmd360drivers/scsi/eata_dma.chd = HD(cmd);
cmd361drivers/scsi/eata_dma.csh = cmd->host;
cmd404drivers/scsi/eata_dma.ccmd->pid, cmd->target, cmd->lun, y));
cmd412drivers/scsi/eata_dma.cif (cmd->cmnd[0] == WRITE_6 || cmd->cmnd[0] == WRITE_10 || 
cmd413drivers/scsi/eata_dma.ccmd->cmnd[0] == WRITE_12 || cmd->cmnd[0] == READ_6 || 
cmd414drivers/scsi/eata_dma.ccmd->cmnd[0] == READ_10 || cmd->cmnd[0] == READ_12) {
cmd417drivers/scsi/eata_dma.cswitch(cmd->cmnd[0]) {
cmd420drivers/scsi/eata_dma.cx = cmd->cmnd[4]/2; 
cmd424drivers/scsi/eata_dma.csho = (short *) &cmd->cmnd[7];
cmd429drivers/scsi/eata_dma.clon = (long *) &cmd->cmnd[6];
cmd437drivers/scsi/eata_dma.cif (cmd->cmnd[0] ==  WRITE_6 || cmd->cmnd[0] == WRITE_10 || 
cmd438drivers/scsi/eata_dma.ccmd->cmnd[0] ==  WRITE_12){
cmd443drivers/scsi/eata_dma.ccmd->scsi_done = (void *)done;
cmd445drivers/scsi/eata_dma.cswitch (cmd->cmnd[0]) {
cmd467drivers/scsi/eata_dma.cif (cmd->target == sh->this_id) 
cmd470drivers/scsi/eata_dma.cif (cmd->use_sg) {
cmd480drivers/scsi/eata_dma.ccp->cp_datalen = htonl(cmd->use_sg * sizeof(struct eata_sg_list));
cmd481drivers/scsi/eata_dma.csl=(struct scatterlist *)cmd->request_buffer;
cmd482drivers/scsi/eata_dma.cfor(i = 0; i < cmd->use_sg; i++, sl++){
cmd488drivers/scsi/eata_dma.ccp->cp_datalen = htonl(cmd->request_bufflen);
cmd489drivers/scsi/eata_dma.ccp->cp_dataDMA = htonl(virt_to_bus(cmd->request_buffer));
cmd493drivers/scsi/eata_dma.ccp->cp_reqDMA = htonl(virt_to_bus(cmd->sense_buffer));
cmd494drivers/scsi/eata_dma.ccp->reqlen = sizeof(cmd->sense_buffer);
cmd496drivers/scsi/eata_dma.ccp->cp_id = cmd->target;
cmd497drivers/scsi/eata_dma.ccp->cp_channel = cmd->channel;
cmd498drivers/scsi/eata_dma.ccp->cp_lun = cmd->lun;
cmd501drivers/scsi/eata_dma.cmemcpy(cp->cp_cdb, cmd->cmnd, cmd->cmd_len);
cmd507drivers/scsi/eata_dma.ccp->cmd = cmd;
cmd508drivers/scsi/eata_dma.ccmd->host_scribble = (char *)&hd->ccb[y];  
cmd511drivers/scsi/eata_dma.ccmd->result = DID_BUS_BUSY << 16;
cmd514drivers/scsi/eata_dma.c"returning DID_BUS_BUSY\n",cmd->target, cmd->pid));
cmd515drivers/scsi/eata_dma.cdone(cmd);
cmd521drivers/scsi/eata_dma.c"slot %d irq %d\n", (s32)sh->base, cmd->pid, 
cmd522drivers/scsi/eata_dma.ccmd->target, cmd->lun, y, sh->irq));
cmd529drivers/scsi/eata_dma.cint eata_abort(Scsi_Cmnd * cmd)
cmd538drivers/scsi/eata_dma.c" reason %x\n", cmd->pid, cmd->target, cmd->lun, 
cmd539drivers/scsi/eata_dma.ccmd->abort_reason));
cmd542drivers/scsi/eata_dma.cwhile (inb((u32)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY) {
cmd550drivers/scsi/eata_dma.cif (CD(cmd)->status == RESET) {
cmd556drivers/scsi/eata_dma.cif (CD(cmd)->status == LOCKED) {
cmd562drivers/scsi/eata_dma.cif (CD(cmd)->status == USED) {
cmd567drivers/scsi/eata_dma.cif (CD(cmd)->status == FREE) {
cmd576drivers/scsi/eata_dma.cint eata_reset(Scsi_Cmnd * cmd)
cmd589drivers/scsi/eata_dma.c" reason %x\n", cmd->pid, cmd->target, cmd->lun, 
cmd590drivers/scsi/eata_dma.ccmd->abort_reason));
cmd592drivers/scsi/eata_dma.cif (HD(cmd)->state == RESET) {
cmd599drivers/scsi/eata_dma.cwhile (inb((u32)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY)
cmd609drivers/scsi/eata_dma.cHD(cmd)->t_state[x][z] = RESET;
cmd610drivers/scsi/eata_dma.cHD(cmd)->t_timeout[x][z] = NO_TIMEOUT;
cmd614drivers/scsi/eata_dma.cfor (x = 0; x < cmd->host->can_queue; x++) {
cmd615drivers/scsi/eata_dma.cif (HD(cmd)->ccb[x].status == FREE)
cmd618drivers/scsi/eata_dma.cif (HD(cmd)->ccb[x].status == LOCKED) {
cmd619drivers/scsi/eata_dma.cHD(cmd)->ccb[x].status = FREE;
cmd624drivers/scsi/eata_dma.csp = HD(cmd)->ccb[x].cmd;
cmd625drivers/scsi/eata_dma.cHD(cmd)->ccb[x].status = RESET;
cmd633drivers/scsi/eata_dma.cif (sp == cmd)
cmd638drivers/scsi/eata_dma.cinb((u32) (cmd->host->base) + HA_RSTATUS);  /* This might cause trouble */
cmd639drivers/scsi/eata_dma.ceata_send_command(0, (u32) cmd->host->base, EATA_CMD_RESET);
cmd642drivers/scsi/eata_dma.cHD(cmd)->state = RESET;
cmd657drivers/scsi/eata_dma.cfor (x = 0; x < cmd->host->can_queue; x++) {
cmd660drivers/scsi/eata_dma.cif (HD(cmd)->ccb[x].status != RESET)
cmd663drivers/scsi/eata_dma.csp = HD(cmd)->ccb[x].cmd;
cmd667drivers/scsi/eata_dma.cHD(cmd)->ccb[x].status = LOCKED;
cmd677drivers/scsi/eata_dma.cHD(cmd)->state = FALSE;
cmd92drivers/scsi/eata_generic.h#define HD(cmd)   ((hostdata *)&(cmd->host->hostdata))
cmd93drivers/scsi/eata_generic.h#define CD(cmd)   ((struct eata_ccb *)(cmd->host_scribble))
cmd315drivers/scsi/eata_generic.hScsi_Cmnd *cmd;        /* address of cmd        */
cmd130drivers/scsi/eata_pio.cScsi_Cmnd *cmd;
cmd154drivers/scsi/eata_pio.ccmd = cp->cmd;
cmd155drivers/scsi/eata_pio.cbase = (uint) cmd->host->base;
cmd164drivers/scsi/eata_pio.cwhile ((cmd->SCp.Status)&&((z>0)||(odd)))
cmd168drivers/scsi/eata_pio.c*(cmd->SCp.ptr)=zwickel>>8; 
cmd169drivers/scsi/eata_pio.cIncStat(&cmd->SCp,1);
cmd172drivers/scsi/eata_pio.cx=min(z,cmd->SCp.this_residual/2);
cmd173drivers/scsi/eata_pio.cinsw(base+HA_RDATA,cmd->SCp.ptr,x);
cmd175drivers/scsi/eata_pio.cIncStat(&cmd->SCp,2*x);
cmd176drivers/scsi/eata_pio.cif ((z>0)&&(cmd->SCp.this_residual==1))
cmd179drivers/scsi/eata_pio.c*(cmd->SCp.ptr)=zwickel&0xff;
cmd180drivers/scsi/eata_pio.cIncStat(&cmd->SCp,1); z--; 
cmd192drivers/scsi/eata_pio.cwhile ((cmd->SCp.Status)&&((z>0)||(odd)))
cmd196drivers/scsi/eata_pio.czwickel+=*(cmd->SCp.ptr)<<8; 
cmd197drivers/scsi/eata_pio.cIncStat(&cmd->SCp,1);
cmd202drivers/scsi/eata_pio.cx=min(z,cmd->SCp.this_residual/2);
cmd203drivers/scsi/eata_pio.coutsw(base+HA_RDATA,cmd->SCp.ptr,x);
cmd205drivers/scsi/eata_pio.cIncStat(&cmd->SCp,2*x);
cmd206drivers/scsi/eata_pio.cif ((z>0)&&(cmd->SCp.this_residual==1))
cmd208drivers/scsi/eata_pio.czwickel=*(cmd->SCp.ptr); 
cmd210drivers/scsi/eata_pio.cIncStat(&cmd->SCp,1); 
cmd233drivers/scsi/eata_pio.ccmd->result=(DID_OK<<16); 
cmd237drivers/scsi/eata_pio.ccmd->result=(DID_OK<<16)+0x02;
cmd238drivers/scsi/eata_pio.celse cmd->result=(DID_NO_CONNECT<<16);
cmd251drivers/scsi/eata_pio.cprintk("stat: %#.2x, result: %#.8x\n", stat, cmd->result); 
cmd258drivers/scsi/eata_pio.ccmd->scsi_done(cmd);
cmd279drivers/scsi/eata_pio.cint eata_pio_queue(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *))
cmd294drivers/scsi/eata_pio.chd = HD(cmd);
cmd295drivers/scsi/eata_pio.csh = cmd->host;
cmd316drivers/scsi/eata_pio.cmemset(cmd->sense_buffer, 0, sizeof(cmd->sense_buffer));
cmd321drivers/scsi/eata_pio.ccmd->pid, cmd->target, cmd->lun, y));
cmd324drivers/scsi/eata_pio.ccmd->scsi_done = (void *)done;
cmd326drivers/scsi/eata_pio.cswitch (cmd->cmnd[0]) {
cmd345drivers/scsi/eata_pio.ccp->Interpret = (cmd->target == hd->hostid);
cmd346drivers/scsi/eata_pio.ccp->cp_datalen = htonl((ulong)cmd->request_bufflen);
cmd351drivers/scsi/eata_pio.ccp->cp_id = cmd->target;
cmd352drivers/scsi/eata_pio.ccp->cp_lun = cmd->lun;
cmd355drivers/scsi/eata_pio.cmemcpy(cp->cp_cdb, cmd->cmnd, COMMAND_SIZE(*cmd->cmnd));
cmd360drivers/scsi/eata_pio.ccp->cmd = cmd;
cmd361drivers/scsi/eata_pio.ccmd->host_scribble = (char *)&hd->ccb[y];   
cmd363drivers/scsi/eata_pio.cif (cmd->use_sg == 0)
cmd365drivers/scsi/eata_pio.ccmd->SCp.buffers_residual=1;
cmd366drivers/scsi/eata_pio.ccmd->SCp.ptr = cmd->request_buffer;
cmd367drivers/scsi/eata_pio.ccmd->SCp.this_residual = cmd->request_bufflen;
cmd368drivers/scsi/eata_pio.ccmd->SCp.buffer = NULL;
cmd370drivers/scsi/eata_pio.ccmd->SCp.buffer = cmd->request_buffer;
cmd371drivers/scsi/eata_pio.ccmd->SCp.buffers_residual = cmd->use_sg;
cmd372drivers/scsi/eata_pio.ccmd->SCp.ptr = cmd->SCp.buffer->address;
cmd373drivers/scsi/eata_pio.ccmd->SCp.this_residual = cmd->SCp.buffer->length;
cmd375drivers/scsi/eata_pio.ccmd->SCp.Status = (cmd->SCp.this_residual != 0);  /* TRUE as long as bytes 
cmd380drivers/scsi/eata_pio.ccmd->result = DID_BUS_BUSY << 16;
cmd382drivers/scsi/eata_pio.c"DID_BUS_BUSY, done.\n", cmd->target, cmd->pid);
cmd383drivers/scsi/eata_pio.cdone(cmd);
cmd394drivers/scsi/eata_pio.c"slot %d irq %d\n", (long)sh->base, cmd->pid, 
cmd395drivers/scsi/eata_pio.ccmd->target, cmd->lun, y, sh->irq));
cmd402drivers/scsi/eata_pio.cint eata_pio_abort(Scsi_Cmnd * cmd)
cmd411drivers/scsi/eata_pio.c" reason %x\n", cmd->pid, cmd->target, cmd->lun, 
cmd412drivers/scsi/eata_pio.ccmd->abort_reason));
cmd416drivers/scsi/eata_pio.cwhile (inb((uint)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY)
cmd423drivers/scsi/eata_pio.cif (CD(cmd)->status == FREE) {
cmd428drivers/scsi/eata_pio.cif (CD(cmd)->status == USED) {
cmd433drivers/scsi/eata_pio.cif (CD(cmd)->status == RESET) {
cmd439drivers/scsi/eata_pio.cif (CD(cmd)->status == LOCKED) {
cmd449drivers/scsi/eata_pio.cint eata_pio_reset(Scsi_Cmnd * cmd)
cmd460drivers/scsi/eata_pio.c"reason %x\n", cmd->pid, cmd->target, cmd->lun, 
cmd461drivers/scsi/eata_pio.ccmd->abort_reason));
cmd463drivers/scsi/eata_pio.cif (HD(cmd)->state == RESET) {
cmd471drivers/scsi/eata_pio.cHD(cmd)->t_state[0][z] = RESET;
cmd472drivers/scsi/eata_pio.cHD(cmd)->t_timeout[0][z] = NO_TIMEOUT;
cmd477drivers/scsi/eata_pio.cfor (x = 0; x < cmd->host->can_queue; x++) {
cmd479drivers/scsi/eata_pio.cif (HD(cmd)->ccb[x].status == FREE) 
cmd482drivers/scsi/eata_pio.csp = HD(cmd)->ccb[x].cmd;
cmd483drivers/scsi/eata_pio.cHD(cmd)->ccb[x].status = RESET;
cmd493drivers/scsi/eata_pio.coutb((uint) cmd->host->base+HA_WCOMMAND, EATA_CMD_RESET);
cmd496drivers/scsi/eata_pio.cHD(cmd)->state = RESET;
cmd504drivers/scsi/eata_pio.cfor (x = 0; x < cmd->host->can_queue; x++) {
cmd507drivers/scsi/eata_pio.cif (HD(cmd)->ccb[x].status != RESET)
cmd510drivers/scsi/eata_pio.csp = HD(cmd)->ccb[x].cmd;
cmd515drivers/scsi/eata_pio.cHD(cmd)->ccb[x].status = FREE;
cmd522drivers/scsi/eata_pio.cHD(cmd)->state = FALSE;
cmd421drivers/scsi/in2000.cunchar *cmd = (unchar *) SCpnt->cmnd;
cmd436drivers/scsi/in2000.cif ( *cmd == TEST_UNIT_READY )
cmd442drivers/scsi/in2000.cif (*cmd == READ_10 || *cmd == WRITE_10) {
cmd443drivers/scsi/in2000.ci = xscsi2int((cmd+1));
cmd444drivers/scsi/in2000.c} else if (*cmd == READ_6 || *cmd == WRITE_6) {
cmd445drivers/scsi/in2000.ci = scsi2int((cmd+1));
cmd452drivers/scsi/in2000.cfor (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]);
cmd456drivers/scsi/in2000.cif (*cmd == WRITE_10 || *cmd == WRITE_6)
cmd520drivers/scsi/in2000.coutb(cmd[loop],INDATA);
cmd295drivers/scsi/qlogic.cstatic void  ql_icmd(Scsi_Cmnd * cmd)
cmd329drivers/scsi/qlogic.coutb(cmd->target, qbase + 4);
cmd331drivers/scsi/qlogic.cfor (i = 0; i < cmd->cmd_len; i++)
cmd332drivers/scsi/qlogic.coutb(cmd->cmnd[i], qbase + 2);
cmd333drivers/scsi/qlogic.cqlcmd = cmd;
cmd339drivers/scsi/qlogic.cstatic unsigned int  ql_pcmd(Scsi_Cmnd * cmd)
cmd376drivers/scsi/qlogic.creqlen = cmd->request_bufflen;
cmd386drivers/scsi/qlogic.cif (!cmd->use_sg)
cmd387drivers/scsi/qlogic.cql_pdma(phase, cmd->request_buffer, cmd->request_bufflen);
cmd389drivers/scsi/qlogic.csgcount = cmd->use_sg;
cmd390drivers/scsi/qlogic.csglist = cmd->request_buffer;
cmd474drivers/scsi/qlogic.cstatic void  qlidone(Scsi_Cmnd * cmd) {};    /* null function */
cmd478drivers/scsi/qlogic.cint  qlogic_command(Scsi_Cmnd * cmd)
cmd483drivers/scsi/qlogic.cqlogic_queuecommand(cmd, qlidone);
cmd485drivers/scsi/qlogic.creturn cmd->result;
cmd489drivers/scsi/qlogic.cif (cmd->target == qinitid)
cmd491drivers/scsi/qlogic.cql_icmd(cmd);
cmd494drivers/scsi/qlogic.creturn ql_pcmd(cmd);
cmd501drivers/scsi/qlogic.cint  qlogic_queuecommand(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *))
cmd503drivers/scsi/qlogic.cif(cmd->target == qinitid) {
cmd504drivers/scsi/qlogic.ccmd->result = DID_BAD_TARGET << 16;
cmd505drivers/scsi/qlogic.cdone(cmd);
cmd509drivers/scsi/qlogic.ccmd->scsi_done = done;
cmd513drivers/scsi/qlogic.cql_icmd(cmd);
cmd517drivers/scsi/qlogic.cint  qlogic_queuecommand(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *))
cmd650drivers/scsi/qlogic.cint  qlogic_abort(Scsi_Cmnd * cmd)
cmd659drivers/scsi/qlogic.cint  qlogic_reset(Scsi_Cmnd * cmd)
cmd3122drivers/scsi/scsi.creq->cmd,
cmd100drivers/scsi/scsi_debug.cif (SCpnt->request.cmd != RW) panic ("Wrong  operation");       \
cmd175drivers/scsi/scsi_debug.cunchar *cmd = (unchar *) SCpnt->cmnd;
cmd209drivers/scsi/scsi_debug.cswitch(*cmd){
cmd227drivers/scsi/scsi_debug.cif(cmd[4]) printk("Medium removal inhibited...");
cmd265drivers/scsi/scsi_debug.cif ((*cmd) == READ_10)
cmd266drivers/scsi/scsi_debug.cblock = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); 
cmd268drivers/scsi/scsi_debug.cblock = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16);
cmd346drivers/scsi/scsi_debug.cmemcpy(buff+sizeof(target), cmd, 24);
cmd378drivers/scsi/scsi_debug.cif ((*cmd) == WRITE_10)
cmd379drivers/scsi/scsi_debug.cblock = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); 
cmd381drivers/scsi/scsi_debug.cblock = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16);
cmd400drivers/scsi/scsi_debug.cprintk("Unknown command %d\n",*cmd);
cmd104drivers/scsi/scsi_ioctl.cstatic int ioctl_internal_command(Scsi_Device *dev, char * cmd)
cmd113drivers/scsi/scsi_ioctl.cscsi_do_cmd(SCpnt,  cmd, NULL,  0,
cmd122drivers/scsi/scsi_ioctl.cif(cmd[0] == ALLOW_MEDIUM_REMOVAL) dev->lockable = 0;
cmd164drivers/scsi/scsi_ioctl.cchar cmd[12];
cmd224drivers/scsi/scsi_ioctl.cmemcpy_fromfs ((void *) cmd,  cmd_in,  cmdlen);
cmd236drivers/scsi/scsi_ioctl.ccmd[1] = ( cmd[1] & 0x1f ) | (dev->lun << 5);
cmd245drivers/scsi/scsi_ioctl.cscsi_do_cmd(SCpnt,  cmd,  buf, needed,  scsi_ioctl_done,  MAX_TIMEOUT, 
cmd282drivers/scsi/scsi_ioctl.cprintk("%02x ", cmd[i]);
cmd300drivers/scsi/scsi_ioctl.cint scsi_ioctl (Scsi_Device *dev, int cmd, void *arg)
cmd308drivers/scsi/scsi_ioctl.cswitch (cmd) {
cmd370drivers/scsi/scsi_ioctl.cint kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) {
cmd375drivers/scsi/scsi_ioctl.ctmp = scsi_ioctl (dev, cmd, arg);
cmd16drivers/scsi/scsi_ioctl.hextern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg);
cmd17drivers/scsi/scsi_ioctl.hextern int kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg);
cmd249drivers/scsi/sd.cif (SCpnt->request.cmd == READ)
cmd264drivers/scsi/sd.cif (SCpnt->request.cmd == READ)
cmd509drivers/scsi/sd.cunsigned char cmd[10];
cmd576drivers/scsi/sd.cswitch (SCpnt->request.cmd)
cmd584drivers/scsi/sd.ccmd[0] = WRITE_6;
cmd587drivers/scsi/sd.ccmd[0] = READ_6;
cmd590drivers/scsi/sd.cpanic ("Unknown sd command %d\n", SCpnt->request.cmd);
cmd808drivers/scsi/sd.cif (SCpnt->request.cmd == WRITE)
cmd830drivers/scsi/sd.cif (SCpnt->request.cmd == WRITE)
cmd837drivers/scsi/sd.c(SCpnt->request.cmd == WRITE) ? "writing" : "reading",
cmd841drivers/scsi/sd.ccmd[1] = (SCpnt->lun << 5) & 0xe0;
cmd860drivers/scsi/sd.ccmd[0] += READ_10 - READ_6 ;
cmd861drivers/scsi/sd.ccmd[2] = (unsigned char) (block >> 24) & 0xff;
cmd862drivers/scsi/sd.ccmd[3] = (unsigned char) (block >> 16) & 0xff;
cmd863drivers/scsi/sd.ccmd[4] = (unsigned char) (block >> 8) & 0xff;
cmd864drivers/scsi/sd.ccmd[5] = (unsigned char) block & 0xff;
cmd865drivers/scsi/sd.ccmd[6] = cmd[9] = 0;
cmd866drivers/scsi/sd.ccmd[7] = (unsigned char) (this_count >> 8) & 0xff;
cmd867drivers/scsi/sd.ccmd[8] = (unsigned char) this_count & 0xff;
cmd874drivers/scsi/sd.ccmd[1] |= (unsigned char) ((block >> 16) & 0x1f);
cmd875drivers/scsi/sd.ccmd[2] = (unsigned char) ((block >> 8) & 0xff);
cmd876drivers/scsi/sd.ccmd[3] = (unsigned char) block & 0xff;
cmd877drivers/scsi/sd.ccmd[4] = (unsigned char) this_count;
cmd878drivers/scsi/sd.ccmd[5] = 0;
cmd889drivers/scsi/sd.cscsi_do_cmd (SCpnt, (void *) cmd, buff, 
cmd954drivers/scsi/sd.cunsigned char cmd[10];
cmd976drivers/scsi/sd.ccmd[0] = TEST_UNIT_READY;
cmd977drivers/scsi/sd.ccmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0;
cmd978drivers/scsi/sd.cmemset ((void *) &cmd[2], 0, 8);
cmd989drivers/scsi/sd.c(void *) cmd, (void *) buffer,
cmd1009drivers/scsi/sd.ccmd[0] = START_STOP;
cmd1010drivers/scsi/sd.ccmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0;
cmd1011drivers/scsi/sd.ccmd[1] |= 1;  /* Return immediately */
cmd1012drivers/scsi/sd.cmemset ((void *) &cmd[2], 0, 8);
cmd1013drivers/scsi/sd.ccmd[4] = 1; /* Start spin cycle */
cmd1024drivers/scsi/sd.c(void *) cmd, (void *) buffer,
cmd1049drivers/scsi/sd.ccmd[0] = READ_CAPACITY;
cmd1050drivers/scsi/sd.ccmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0;
cmd1051drivers/scsi/sd.cmemset ((void *) &cmd[2], 0, 8);
cmd1063drivers/scsi/sd.c(void *) cmd, (void *) buffer,
cmd1194drivers/scsi/sd.cmemset ((void *) &cmd[0], 0, 8);
cmd1195drivers/scsi/sd.ccmd[0] = MODE_SENSE;
cmd1196drivers/scsi/sd.ccmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0;
cmd1197drivers/scsi/sd.ccmd[2] = 1;   /* page code 1 ?? */
cmd1198drivers/scsi/sd.ccmd[4] = 12;
cmd1209drivers/scsi/sd.c(void *) cmd, (void *) buffer,
cmd23drivers/scsi/sd_ioctl.cint sd_ioctl(struct inode * inode, struct file * file, unsigned int cmd, unsigned long arg)
cmd31drivers/scsi/sd_ioctl.cswitch (cmd) {
cmd98drivers/scsi/sd_ioctl.creturn scsi_ioctl(rscsi_disks[MINOR(dev) >> 4].device , cmd, (void *) arg);
cmd1638drivers/scsi/seagate.cunsigned char buf[256 + sizeof(int) * 2], cmd[6], *data, *page;
cmd1653drivers/scsi/seagate.ccmd[0] = MODE_SENSE;
cmd1654drivers/scsi/seagate.ccmd[1] = (disk->device->lun << 5) & 0xe5;
cmd1655drivers/scsi/seagate.ccmd[2] = 0x04; /* Read page 4, rigid disk geometry page current values */
cmd1656drivers/scsi/seagate.ccmd[3] = 0;
cmd1657drivers/scsi/seagate.ccmd[4] = 255;
cmd1658drivers/scsi/seagate.ccmd[5] = 0;
cmd1668drivers/scsi/seagate.cmemcpy (data, cmd, 6);
cmd1680drivers/scsi/seagate.ccmd[2] = 0x03; /* Read page 3, format page current values */
cmd1681drivers/scsi/seagate.cmemcpy (data, cmd, 6);
cmd321drivers/scsi/sr.cunsigned char   *cmd;       /* the scsi-command */
cmd350drivers/scsi/sr.ccmd = rec = &buf[8];
cmd361drivers/scsi/sr.ccmd[0] = 0xde;
cmd362drivers/scsi/sr.ccmd[1] = 0x03;
cmd363drivers/scsi/sr.ccmd[2] = 0xb0;
cmd397drivers/scsi/sr.ccmd[0] = 0xc7;
cmd398drivers/scsi/sr.ccmd[1] = 3;
cmd433drivers/scsi/sr.ccmd[0] = 0x1a;
cmd434drivers/scsi/sr.ccmd[2] = 1;
cmd435drivers/scsi/sr.ccmd[4] = 12;
cmd454drivers/scsi/sr.ccmd[0] = 0x15;
cmd455drivers/scsi/sr.ccmd[1] = (1 << 4);
cmd456drivers/scsi/sr.ccmd[4] = 12;
cmd457drivers/scsi/sr.csend = &cmd[6];                 /* this is a 6-Byte command          */
cmd479drivers/scsi/sr.ccmd[0] = 0x43; /* Read TOC */
cmd480drivers/scsi/sr.ccmd[8] = 0x0c;
cmd481drivers/scsi/sr.ccmd[9] = 0x40;
cmd643drivers/scsi/sr.cunsigned char cmd[10], *buffer, tries;
cmd684drivers/scsi/sr.cswitch (SCpnt->request.cmd)
cmd691drivers/scsi/sr.ccmd[0] = READ_6;
cmd694drivers/scsi/sr.cpanic ("Unknown sr command %d\n", SCpnt->request.cmd);
cmd697drivers/scsi/sr.ccmd[1] = (SCpnt->lun << 5) & 0xe0;
cmd872drivers/scsi/sr.ccmd[0] += READ_10 - READ_6 ;
cmd873drivers/scsi/sr.ccmd[2] = (unsigned char) (block >> 24) & 0xff;
cmd874drivers/scsi/sr.ccmd[3] = (unsigned char) (block >> 16) & 0xff;
cmd875drivers/scsi/sr.ccmd[4] = (unsigned char) (block >> 8) & 0xff;
cmd876drivers/scsi/sr.ccmd[5] = (unsigned char) block & 0xff;
cmd877drivers/scsi/sr.ccmd[6] = cmd[9] = 0;
cmd878drivers/scsi/sr.ccmd[7] = (unsigned char) (realcount >> 8) & 0xff;
cmd879drivers/scsi/sr.ccmd[8] = (unsigned char) realcount & 0xff;
cmd889drivers/scsi/sr.ccmd[1] |= (unsigned char) ((block >> 16) & 0x1f);
cmd890drivers/scsi/sr.ccmd[2] = (unsigned char) ((block >> 8) & 0xff);
cmd891drivers/scsi/sr.ccmd[3] = (unsigned char) block & 0xff;
cmd892drivers/scsi/sr.ccmd[4] = (unsigned char) realcount;
cmd893drivers/scsi/sr.ccmd[5] = 0;
cmd902drivers/scsi/sr.cfor(i=0; i<12; i++) printk("%2.2x ", cmd[i]);
cmd921drivers/scsi/sr.cscsi_do_cmd (SCpnt, (void *) cmd, buffer, 
cmd976drivers/scsi/sr.cunsigned char cmd[10];
cmd986drivers/scsi/sr.ccmd[0] = READ_CAPACITY;
cmd987drivers/scsi/sr.ccmd[1] = (scsi_CDs[i].device->lun << 5) & 0xe0;
cmd988drivers/scsi/sr.cmemset ((void *) &cmd[2], 0, 8);
cmd999drivers/scsi/sr.c(void *) cmd, (void *) buffer,
cmd87drivers/scsi/sr_ioctl.cint sr_ioctl(struct inode * inode, struct file * file, unsigned int cmd, unsigned long arg)
cmd99drivers/scsi/sr_ioctl.cswitch (cmd) 
cmd468drivers/scsi/sr_ioctl.creturn scsi_ioctl(scsi_CDs[target].device,cmd,(void *) arg);
cmd230drivers/scsi/st.cst_do_scsi(Scsi_Cmnd *SCpnt, Scsi_Tape *STp, unsigned char *cmd, int bytes,
cmd239drivers/scsi/st.ccmd[1] |= (SCpnt->lun << 5) & 0xe0;
cmd245drivers/scsi/st.cscsi_do_cmd(SCpnt, (void *)cmd, (STp->buffer)->b_data, bytes,
cmd296drivers/scsi/st.cunsigned char cmd[10];
cmd298drivers/scsi/st.ccmd[0] = SPACE;
cmd299drivers/scsi/st.ccmd[1] = 0x01; /* Space FileMarks */
cmd300drivers/scsi/st.ccmd[2] = cmd[3] = cmd[4] = 0xff;  /* -1 filemarks */
cmd301drivers/scsi/st.ccmd[5] = 0;
cmd303drivers/scsi/st.cSCpnt = st_do_scsi(NULL, STp, cmd, 0, ST_TIMEOUT, MAX_RETRIES);
cmd325drivers/scsi/st.cunsigned char cmd[10];
cmd357drivers/scsi/st.cmemset(cmd, 0, 10);
cmd358drivers/scsi/st.ccmd[0] = WRITE_6;
cmd359drivers/scsi/st.ccmd[1] = 1;
cmd361drivers/scsi/st.ccmd[2] = blks >> 16;
cmd362drivers/scsi/st.ccmd[3] = blks >> 8;
cmd363drivers/scsi/st.ccmd[4] = blks;
cmd365drivers/scsi/st.cSCpnt = st_do_scsi(NULL, STp, cmd, transfer, ST_TIMEOUT, MAX_WRITE_RETRIES);
cmd457drivers/scsi/st.cunsigned char cmd[10];
cmd504drivers/scsi/st.cmemset ((void *) &cmd[0], 0, 10);
cmd505drivers/scsi/st.ccmd[0] = TEST_UNIT_READY;
cmd507drivers/scsi/st.cSCpnt = st_do_scsi(NULL, STp, cmd, 0, ST_LONG_TIMEOUT, MAX_READY_RETRIES);
cmd514drivers/scsi/st.cmemset ((void *) &cmd[0], 0, 10);
cmd515drivers/scsi/st.ccmd[0] = TEST_UNIT_READY;
cmd517drivers/scsi/st.cSCpnt = st_do_scsi(SCpnt, STp, cmd, 0, ST_LONG_TIMEOUT, MAX_READY_RETRIES);
cmd547drivers/scsi/st.cmemset ((void *) &cmd[0], 0, 10);
cmd548drivers/scsi/st.ccmd[0] = READ_BLOCK_LIMITS;
cmd550drivers/scsi/st.cSCpnt = st_do_scsi(SCpnt, STp, cmd, 6, ST_TIMEOUT, MAX_READY_RETRIES);
cmd571drivers/scsi/st.cmemset ((void *) &cmd[0], 0, 10);
cmd572drivers/scsi/st.ccmd[0] = MODE_SENSE;
cmd573drivers/scsi/st.ccmd[4] = 12;
cmd575drivers/scsi/st.cSCpnt = st_do_scsi(SCpnt, STp, cmd, 12, ST_TIMEOUT, MAX_READY_RETRIES);
cmd662drivers/scsi/st.cstatic unsigned char cmd[10];
cmd686drivers/scsi/st.cmemset(cmd, 0, 10);
cmd687drivers/scsi/st.ccmd[0] = WRITE_FILEMARKS;
cmd688drivers/scsi/st.ccmd[4] = 1 + STp->two_fm;
cmd690drivers/scsi/st.cSCpnt = st_do_scsi(NULL, STp, cmd, 0, ST_TIMEOUT, MAX_WRITE_RETRIES);
cmd710drivers/scsi/st.cdev, cmd[4]);
cmd749drivers/scsi/st.cstatic unsigned char cmd[10];
cmd829drivers/scsi/st.cmemset(cmd, 0, 10);
cmd830drivers/scsi/st.ccmd[0] = WRITE_6;
cmd831drivers/scsi/st.ccmd[1] = (STp->block_size != 0);
cmd859drivers/scsi/st.ccmd[2] = blks >> 16;
cmd860drivers/scsi/st.ccmd[3] = blks >> 8;
cmd861drivers/scsi/st.ccmd[4] = blks;
cmd863drivers/scsi/st.cSCpnt = st_do_scsi(SCpnt, STp, cmd, transfer, ST_TIMEOUT, MAX_WRITE_RETRIES);
cmd972drivers/scsi/st.ccmd[2] = blks >> 16;
cmd973drivers/scsi/st.ccmd[3] = blks >> 8;
cmd974drivers/scsi/st.ccmd[4] = blks;
cmd984drivers/scsi/st.c(void *) cmd, (STp->buffer)->b_data,
cmd1002drivers/scsi/st.cstatic unsigned char cmd[10];
cmd1055drivers/scsi/st.cmemset(cmd, 0, 10);
cmd1056drivers/scsi/st.ccmd[0] = READ_6;
cmd1057drivers/scsi/st.ccmd[1] = (STp->block_size != 0);
cmd1073drivers/scsi/st.ccmd[2] = blks >> 16;
cmd1074drivers/scsi/st.ccmd[3] = blks >> 8;
cmd1075drivers/scsi/st.ccmd[4] = blks;
cmd1077drivers/scsi/st.cSCpnt = st_do_scsi(SCpnt, STp, cmd, bytes, ST_TIMEOUT, MAX_RETRIES);
cmd1292drivers/scsi/st.cunsigned char cmd[10];
cmd1305drivers/scsi/st.cmemset(cmd, 0, 10);
cmd1310drivers/scsi/st.ccmd[0] = SPACE;
cmd1311drivers/scsi/st.ccmd[1] = 0x01; /* Space FileMarks */
cmd1312drivers/scsi/st.ccmd[2] = (arg >> 16);
cmd1313drivers/scsi/st.ccmd[3] = (arg >> 8);
cmd1314drivers/scsi/st.ccmd[4] = arg;
cmd1318drivers/scsi/st.cdev, cmd[2] * 65536 + cmd[3] * 256 + cmd[4]);
cmd1327drivers/scsi/st.ccmd[0] = SPACE;
cmd1328drivers/scsi/st.ccmd[1] = 0x01; /* Space FileMarks */
cmd1330drivers/scsi/st.ccmd[2] = (ltmp >> 16);
cmd1331drivers/scsi/st.ccmd[3] = (ltmp >> 8);
cmd1332drivers/scsi/st.ccmd[4] = ltmp;
cmd1335drivers/scsi/st.cif (cmd[2] & 0x80)
cmd1337drivers/scsi/st.cltmp = ltmp | (cmd[2] << 16) | (cmd[3] << 8) | cmd[4];
cmd1348drivers/scsi/st.ccmd[0] = SPACE;
cmd1349drivers/scsi/st.ccmd[1] = 0x00; /* Space Blocks */
cmd1350drivers/scsi/st.ccmd[2] = (arg >> 16);
cmd1351drivers/scsi/st.ccmd[3] = (arg >> 8);
cmd1352drivers/scsi/st.ccmd[4] = arg;
cmd1356drivers/scsi/st.ccmd[2] * 65536 + cmd[3] * 256 + cmd[4]);
cmd1363drivers/scsi/st.ccmd[0] = SPACE;
cmd1364drivers/scsi/st.ccmd[1] = 0x00; /* Space Blocks */
cmd1366drivers/scsi/st.ccmd[2] = (ltmp >> 16);
cmd1367drivers/scsi/st.ccmd[3] = (ltmp >> 8);
cmd1368drivers/scsi/st.ccmd[4] = ltmp;
cmd1371drivers/scsi/st.cif (cmd[2] & 0x80)
cmd1373drivers/scsi/st.cltmp = ltmp | (cmd[2] << 16) | (cmd[3] << 8) | cmd[4];
cmd1382drivers/scsi/st.ccmd[0] = SPACE;
cmd1383drivers/scsi/st.ccmd[1] = 0x04; /* Space Setmarks */
cmd1384drivers/scsi/st.ccmd[2] = (arg >> 16);
cmd1385drivers/scsi/st.ccmd[3] = (arg >> 8);
cmd1386drivers/scsi/st.ccmd[4] = arg;
cmd1390drivers/scsi/st.ccmd[2] * 65536 + cmd[3] * 256 + cmd[4]);
cmd1398drivers/scsi/st.ccmd[0] = SPACE;
cmd1399drivers/scsi/st.ccmd[1] = 0x04; /* Space Setmarks */
cmd1401drivers/scsi/st.ccmd[2] = (ltmp >> 16);
cmd1402drivers/scsi/st.ccmd[3] = (ltmp >> 8);
cmd1403drivers/scsi/st.ccmd[4] = ltmp;
cmd1406drivers/scsi/st.cif (cmd[2] & 0x80)
cmd1408drivers/scsi/st.cltmp = ltmp | (cmd[2] << 16) | (cmd[3] << 8) | cmd[4];
cmd1422drivers/scsi/st.ccmd[0] = WRITE_FILEMARKS;
cmd1424drivers/scsi/st.ccmd[1] = 2;
cmd1425drivers/scsi/st.ccmd[2] = (arg >> 16);
cmd1426drivers/scsi/st.ccmd[3] = (arg >> 8);
cmd1427drivers/scsi/st.ccmd[4] = arg;
cmd1433drivers/scsi/st.ccmd[2] * 65536 + cmd[3] * 256 + cmd[4]);
cmd1436drivers/scsi/st.ccmd[2] * 65536 + cmd[3] * 256 + cmd[4]);
cmd1445drivers/scsi/st.ccmd[0] = REZERO_UNIT;
cmd1447drivers/scsi/st.ccmd[1] = 1;  /* Don't wait for completion */
cmd1459drivers/scsi/st.ccmd[0] = START_STOP;
cmd1461drivers/scsi/st.ccmd[4] |= 1;
cmd1463drivers/scsi/st.ccmd[1] = 1;  /* Don't wait for completion */
cmd1482drivers/scsi/st.ccmd[0] = START_STOP;
cmd1484drivers/scsi/st.ccmd[1] = 1;  /* Don't wait for completion */
cmd1487drivers/scsi/st.ccmd[4] = 3;
cmd1508drivers/scsi/st.ccmd[0] = SPACE;
cmd1509drivers/scsi/st.ccmd[1] = 3;
cmd1520drivers/scsi/st.ccmd[0] = ERASE;
cmd1521drivers/scsi/st.ccmd[1] = 1;  /* To the end of tape */
cmd1523drivers/scsi/st.ccmd[1] |= 2;  /* Don't wait for completion */
cmd1535drivers/scsi/st.ccmd[0] = ALLOW_MEDIUM_REMOVAL;
cmd1536drivers/scsi/st.ccmd[4] = SCSI_REMOVAL_PREVENT;
cmd1543drivers/scsi/st.ccmd[0] = ALLOW_MEDIUM_REMOVAL;
cmd1544drivers/scsi/st.ccmd[4] = SCSI_REMOVAL_ALLOW;
cmd1552drivers/scsi/st.ccmd[0] = QFA_SEEK_BLOCK;
cmd1553drivers/scsi/st.ccmd[2] = (arg >> 16);
cmd1554drivers/scsi/st.ccmd[3] = (arg >> 8);
cmd1555drivers/scsi/st.ccmd[4] = arg;
cmd1556drivers/scsi/st.ccmd[5] = 0;
cmd1559drivers/scsi/st.ccmd[0] = SEEK_10;
cmd1560drivers/scsi/st.ccmd[1] = 4;
cmd1561drivers/scsi/st.ccmd[3] = (arg >> 24);
cmd1562drivers/scsi/st.ccmd[4] = (arg >> 16);
cmd1563drivers/scsi/st.ccmd[5] = (arg >> 8);
cmd1564drivers/scsi/st.ccmd[6] = arg;
cmd1567drivers/scsi/st.ccmd[1] |= 1;  /* Don't wait for completion */
cmd1589drivers/scsi/st.ccmd[0] = MODE_SELECT;
cmd1590drivers/scsi/st.ccmd[4] = datalen = 12;
cmd1631drivers/scsi/st.cSCpnt = st_do_scsi(NULL, STp, cmd, datalen, timeout, MAX_RETRIES);
cmd578drivers/scsi/wd7000.cstatic inline int command_out(Adapter *host, unchar *cmd, int len)
cmd583drivers/scsi/wd7000.coutb(*cmd, host->iobase+ASC_COMMAND);
cmd586drivers/scsi/wd7000.ccmd++;
cmd121drivers/sound/ad1848.cstatic int      ad1848_ioctl (int dev, unsigned int cmd, caddr_t arg, int local);
cmd448drivers/sound/ad1848.cad1848_mixer_ioctl (int dev, unsigned int cmd, caddr_t arg)
cmd461drivers/sound/ad1848.cif (((cmd >> 8) & 0xff) == 'M')
cmd464drivers/sound/ad1848.cif (_IOC_DIR (cmd) & _IOC_WRITE)
cmd465drivers/sound/ad1848.cswitch (cmd & 0xff)
cmd472drivers/sound/ad1848.creturn snd_ioctl_return ((int *) arg, ad1848_mixer_set (devc, cmd & 0xff, get_fs_long ((long *) arg)));
cmd475drivers/sound/ad1848.cswitch (cmd & 0xff)  /*
cmd501drivers/sound/ad1848.creturn snd_ioctl_return ((int *) arg, ad1848_mixer_get (devc, cmd & 0xff));
cmd769drivers/sound/ad1848.cad1848_ioctl (int dev, unsigned int cmd, caddr_t arg, int local)
cmd773drivers/sound/ad1848.cswitch (cmd)
cmd415drivers/sound/aedsp16.cWriteDSPCommand (int port, int cmd)
cmd428drivers/sound/aedsp16.coutb (cmd, port + DSP_COMMAND);
cmd434drivers/sound/aedsp16.cprintk ("[aedsp16] DSP Command (0x%x) timeout.\n", cmd);
cmd339drivers/sound/audio.cunsigned int cmd, caddr_t arg)
cmd344drivers/sound/audio.cif (((cmd >> 8) & 0xff) == 'C')
cmd347drivers/sound/audio.creturn audio_devs[dev]->coproc->ioctl (audio_devs[dev]->coproc->devc, cmd, arg, 0);
cmd354drivers/sound/audio.cswitch (cmd)
cmd358drivers/sound/audio.creturn DMAbuf_ioctl (dev, cmd, arg, 0);
cmd368drivers/sound/audio.creturn DMAbuf_ioctl (dev, cmd, arg, 0);
cmd385drivers/sound/audio.cint             err = DMAbuf_ioctl (dev, cmd, (caddr_t) & info, 1);
cmd403drivers/sound/audio.cint             err = DMAbuf_ioctl (dev, cmd, (caddr_t) & info, 1);
cmd444drivers/sound/audio.creturn DMAbuf_ioctl (dev, cmd, arg, 0);
cmd1518drivers/sound/configure.cchar            cmd[200];
cmd1520drivers/sound/configure.csprintf (cmd, "cp local.h %s", oldconf);
cmd1523drivers/sound/configure.cif (system (cmd) != 0)
cmd1524drivers/sound/configure.cperror (cmd);
cmd138drivers/sound/dev_table.hint (*ioctl) (void *devc, unsigned int cmd, caddr_t arg, int local);
cmd160drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, caddr_t arg, int local);
cmd183drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, caddr_t arg);
cmd194drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, caddr_t arg);
cmd238drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, caddr_t arg);
cmd264drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, caddr_t arg);
cmd721drivers/sound/dmabuf.cDMAbuf_ioctl (int dev, unsigned int cmd, caddr_t arg, int local)
cmd726drivers/sound/dmabuf.cswitch (cmd)
cmd794drivers/sound/dmabuf.cif (cmd == SNDCTL_DSP_GETISPACE && audio_devs[dev]->flags & DMA_DUPLEX)
cmd801drivers/sound/dmabuf.creorganize_buffers (dev, dmap, (cmd == SNDCTL_DSP_GETISPACE));
cmd805drivers/sound/dmabuf.cif (cmd == SNDCTL_DSP_GETISPACE)
cmd835drivers/sound/dmabuf.cif (cmd == SNDCTL_DSP_GETISPACE && dmap->qlen)
cmd957drivers/sound/dmabuf.creturn audio_devs[dev]->ioctl (dev, cmd, arg, local);
cmd1735drivers/sound/dmabuf.cDMAbuf_ioctl (int dev, unsigned int cmd, caddr_t arg, int local)
cmd197drivers/sound/gus_midi.cgus_midi_ioctl (int dev, unsigned cmd, caddr_t arg)
cmd896drivers/sound/gus_wave.cunsigned int cmd, caddr_t arg)
cmd899drivers/sound/gus_wave.cswitch (cmd)
cmd1778drivers/sound/gus_wave.cint             voice, cmd;
cmd1783drivers/sound/gus_wave.ccmd = event_rec[2];
cmd1790drivers/sound/gus_wave.c(cmd != _GUS_VOICESAMPLE) && (cmd != _GUS_VOICE_POS))
cmd1793drivers/sound/gus_wave.cswitch (cmd)
cmd1991drivers/sound/gus_wave.cgus_sampling_ioctl (int dev, unsigned int cmd, caddr_t arg, int local)
cmd1993drivers/sound/gus_wave.cswitch (cmd)
cmd2829drivers/sound/gus_wave.cgus_default_mixer_ioctl (int dev, unsigned int cmd, caddr_t arg)
cmd2833drivers/sound/gus_wave.cif (((cmd >> 8) & 0xff) == 'M')
cmd2835drivers/sound/gus_wave.cif (_IOC_DIR (cmd) & _IOC_WRITE)
cmd2836drivers/sound/gus_wave.cswitch (cmd & 0xff)
cmd2907drivers/sound/gus_wave.cswitch (cmd & 0xff)  /*
cmd135drivers/sound/ics2101.cics2101_mixer_ioctl (int dev, unsigned int cmd, caddr_t arg)
cmd137drivers/sound/ics2101.cif (((cmd >> 8) & 0xff) == 'M')
cmd139drivers/sound/ics2101.cif (_IOC_DIR (cmd) & _IOC_WRITE)
cmd140drivers/sound/ics2101.cswitch (cmd & 0xff)
cmd143drivers/sound/ics2101.creturn gus_default_mixer_ioctl (dev, cmd, arg);
cmd170drivers/sound/ics2101.cswitch (cmd & 0xff)  /*
cmd176drivers/sound/ics2101.creturn gus_default_mixer_ioctl (dev, cmd, arg);
cmd311drivers/sound/mad16_sb_midi.cmad16_sb_midi_ioctl (int dev, unsigned cmd, caddr_t arg)
cmd53drivers/sound/midi_synth.c#define STORE(cmd)
cmd55drivers/sound/midi_synth.c#define STORE(cmd) \
cmd59drivers/sound/midi_synth.ccmd; \
cmd284drivers/sound/midi_synth.cunsigned int cmd, caddr_t arg)
cmd290drivers/sound/midi_synth.cswitch (cmd)
cmd2drivers/sound/midi_synth.hunsigned int cmd, caddr_t arg);
cmd472drivers/sound/midibuf.cunsigned int cmd, caddr_t arg)
cmd478drivers/sound/midibuf.cif (((cmd >> 8) & 0xff) == 'C')
cmd481drivers/sound/midibuf.creturn midi_devs[dev]->coproc->ioctl (midi_devs[dev]->coproc->devc, cmd, arg, 0);
cmd488drivers/sound/midibuf.cswitch (cmd)
cmd502drivers/sound/midibuf.creturn midi_devs[dev]->ioctl (dev, cmd, arg);
cmd99drivers/sound/mpu401.cwrite_command (struct mpu_config *devc, unsigned char cmd)
cmd101drivers/sound/mpu401.coutb (cmd, COMDPORT (devc->base));
cmd170drivers/sound/mpu401.c#define STORE(cmd)
cmd172drivers/sound/mpu401.c#define STORE(cmd) \
cmd176drivers/sound/mpu401.ccmd; \
cmd613drivers/sound/mpu401.cmpu401_command (int dev, mpu_command_rec * cmd)
cmd645drivers/sound/mpu401.cprintk ("MPU-401: Command (0x%x) timeout\n", (int) cmd->cmd);
cmd658drivers/sound/mpu401.cwrite_command (devc, cmd->cmd);
cmd683drivers/sound/mpu401.cif (cmd->nr_args)
cmd684drivers/sound/mpu401.cfor (i = 0; i < cmd->nr_args; i++)
cmd688drivers/sound/mpu401.cif (!mpu401_out (dev, cmd->data[i]))
cmd691drivers/sound/mpu401.cprintk ("MPU: Command (0x%x), parm send failed.\n", (int) cmd->cmd);
cmd697drivers/sound/mpu401.ccmd->data[0] = 0;
cmd699drivers/sound/mpu401.cif (cmd->nr_returns)
cmd700drivers/sound/mpu401.cfor (i = 0; i < cmd->nr_returns; i++)
cmd706drivers/sound/mpu401.ccmd->data[i] = read_data (devc);
cmd724drivers/sound/mpu401.cmpu_cmd (int dev, int cmd, int data)
cmd730drivers/sound/mpu401.crec.cmd = cmd & 0xff;
cmd731drivers/sound/mpu401.crec.nr_args = ((cmd & 0xf0) == 0xE0);
cmd732drivers/sound/mpu401.crec.nr_returns = ((cmd & 0xf0) == 0xA0);
cmd790drivers/sound/mpu401.cmpu401_ioctl (int dev, unsigned cmd, caddr_t arg)
cmd796drivers/sound/mpu401.cswitch (cmd)
cmd848drivers/sound/mpu401.cunsigned int cmd, caddr_t arg)
cmd860drivers/sound/mpu401.cswitch (cmd)
cmd127drivers/sound/opl3.cunsigned int cmd, caddr_t arg)
cmd129drivers/sound/opl3.cswitch (cmd)
cmd220drivers/sound/pas2_midi.cpas_midi_ioctl (int dev, unsigned cmd, caddr_t arg)
cmd263drivers/sound/pas2_mixer.cpas_mixer_ioctl (int dev, unsigned int cmd, caddr_t arg)
cmd265drivers/sound/pas2_mixer.cTRACE (printk ("pas2_mixer.c: int pas_mixer_ioctl(unsigned int cmd = %X, unsigned int arg = %X)\n", cmd, arg));
cmd267drivers/sound/pas2_mixer.cif (((cmd >> 8) & 0xff) == 'M')
cmd269drivers/sound/pas2_mixer.cif (_IOC_DIR (cmd) & _IOC_WRITE)
cmd270drivers/sound/pas2_mixer.creturn snd_ioctl_return ((int *) arg, pas_mixer_set (cmd & 0xff, get_fs_long ((long *) arg)));
cmd276drivers/sound/pas2_mixer.cswitch (cmd & 0xff)
cmd316drivers/sound/pas2_mixer.creturn snd_ioctl_return ((int *) arg, levels[cmd & 0xff]);
cmd164drivers/sound/pas2_pcm.cpas_pcm_ioctl (int dev, unsigned int cmd, caddr_t arg, int local)
cmd166drivers/sound/pas2_pcm.cTRACE (printk ("pas2_pcm.c: static int pas_pcm_ioctl(unsigned int cmd = %X, unsigned int arg = %X)\n", cmd, arg));
cmd168drivers/sound/pas2_pcm.cswitch (cmd)
cmd494drivers/sound/pss.cpss_coproc_ioctl (void *dev_info, unsigned int cmd, caddr_t arg, int local)
cmd498drivers/sound/pss.cswitch (cmd)
cmd64drivers/sound/sb16_dsp.cstatic int      sb16_dsp_ioctl (int dev, unsigned int cmd, caddr_t arg, int local);
cmd154drivers/sound/sb16_dsp.csb16_dsp_ioctl (int dev, unsigned int cmd, caddr_t arg, int local)
cmd156drivers/sound/sb16_dsp.cswitch (cmd)
cmd53drivers/sound/sb16_midi.csb16midi_cmd (unsigned char cmd)
cmd55drivers/sound/sb16_midi.coutb (cmd, COMDPORT);
cmd194drivers/sound/sb16_midi.csb16midi_ioctl (int dev, unsigned cmd, caddr_t arg)
cmd933drivers/sound/sb_dsp.csb_dsp_ioctl (int dev, unsigned int cmd, caddr_t arg, int local)
cmd935drivers/sound/sb_dsp.cswitch (cmd)
cmd197drivers/sound/sb_midi.csb_midi_ioctl (int dev, unsigned cmd, caddr_t arg)
cmd448drivers/sound/sb_mixer.csb_mixer_ioctl (int dev, unsigned int cmd, caddr_t arg)
cmd450drivers/sound/sb_mixer.cif (((cmd >> 8) & 0xff) == 'M')
cmd452drivers/sound/sb_mixer.cif (_IOC_DIR (cmd) & _IOC_WRITE)
cmd453drivers/sound/sb_mixer.cswitch (cmd & 0xff)
cmd461drivers/sound/sb_mixer.creturn snd_ioctl_return ((int *) arg, sb_mixer_set (cmd & 0xff, get_fs_long ((long *) arg)));
cmd464drivers/sound/sb_mixer.cswitch (cmd & 0xff)  /*
cmd493drivers/sound/sb_mixer.creturn snd_ioctl_return ((int *) arg, sb_mixer_get (cmd & 0xff));
cmd519drivers/sound/sequencer.cunsigned char   cmd = event_rec[2];
cmd537drivers/sound/sequencer.cif (cmd == MIDI_NOTEON && parm == 0)
cmd539drivers/sound/sequencer.ccmd = MIDI_NOTEOFF;
cmd544drivers/sound/sequencer.cswitch (cmd)
cmd601drivers/sound/sequencer.cunsigned char   cmd = event_rec[2];
cmd615drivers/sound/sequencer.cswitch (cmd)
cmd698drivers/sound/sequencer.cunsigned char   cmd = event_rec[1];
cmd726drivers/sound/sequencer.cswitch (cmd)
cmd801drivers/sound/sequencer.cunsigned char   cmd = event_rec[1];
cmd804drivers/sound/sequencer.cswitch (cmd)
cmd1529drivers/sound/sequencer.cunsigned int cmd, caddr_t arg)
cmd1536drivers/sound/sequencer.cswitch (cmd)
cmd1550drivers/sound/sequencer.creturn tmr->ioctl (tmr_no, cmd, arg);
cmd1652drivers/sound/sequencer.creturn tmr->ioctl (tmr_no, cmd, arg);
cmd1678drivers/sound/sequencer.cerr = synth_devs[dev]->ioctl (dev, cmd, arg);
cmd1701drivers/sound/sequencer.creturn snd_ioctl_return ((int *) arg, synth_devs[dev]->ioctl (dev, cmd, arg));
cmd1715drivers/sound/sequencer.csynth_devs[dev]->ioctl (dev, cmd, arg);
cmd1734drivers/sound/sequencer.creturn synth_devs[dev]->ioctl (dev, cmd, arg);
cmd1890drivers/sound/sequencer.creturn synth_devs[0]->ioctl (0, cmd, arg);
cmd13drivers/sound/sound_calls.hint DMAbuf_ioctl(int dev, unsigned int cmd, caddr_t arg, int local);
cmd33drivers/sound/sound_calls.hunsigned int cmd, caddr_t arg);
cmd48drivers/sound/sound_calls.hunsigned int cmd, caddr_t arg);
cmd68drivers/sound/sound_calls.hunsigned int cmd, caddr_t arg);
cmd99drivers/sound/sound_calls.hunsigned int cmd, caddr_t arg);
cmd180drivers/sound/sound_calls.hint gus_default_mixer_ioctl (int dev, unsigned int cmd, caddr_t arg);
cmd249drivers/sound/sound_calls.hunsigned int cmd, caddr_t arg);
cmd519drivers/sound/sound_switch.cunsigned int cmd, caddr_t arg)
cmd521drivers/sound/sound_switch.cDEB (printk ("sound_ioctl_sw(dev=%d, cmd=0x%x, arg=0x%x)\n", dev, cmd, arg));
cmd523drivers/sound/sound_switch.cif (((cmd >> 8) & 0xff) == 'M' && num_mixers > 0)  /* Mixer ioctl */
cmd538drivers/sound/sound_switch.creturn mixer_devs[mixdev]->ioctl (mixdev, cmd, arg);
cmd543drivers/sound/sound_switch.creturn mixer_devs[0]->ioctl (0, cmd, arg);
cmd560drivers/sound/sound_switch.creturn mixer_devs[dev]->ioctl (dev, cmd, arg);
cmd566drivers/sound/sound_switch.creturn sequencer_ioctl (dev, file, cmd, arg);
cmd574drivers/sound/sound_switch.creturn audio_ioctl (dev, file, cmd, arg);
cmd580drivers/sound/sound_switch.creturn MIDIbuf_ioctl (dev, file, cmd, arg);
cmd134drivers/sound/sound_timer.cunsigned char   cmd = event[1];
cmd137drivers/sound/sound_timer.cswitch (cmd)
cmd207drivers/sound/sound_timer.cunsigned int cmd, caddr_t arg)
cmd209drivers/sound/sound_timer.cswitch (cmd)
cmd158drivers/sound/soundcard.cunsigned int cmd, unsigned long arg)
cmd166drivers/sound/soundcard.cif (_IOC_DIR (cmd) != _IOC_NONE)
cmd173drivers/sound/soundcard.clen = _IOC_SIZE (cmd);
cmd175drivers/sound/soundcard.cif (_IOC_DIR (cmd) == _IOC_WRITE)
cmd181drivers/sound/soundcard.cif (_IOC_DIR (cmd) == _IOC_READ)
cmd189drivers/sound/soundcard.cerr = sound_ioctl_sw (dev, &files[dev], cmd, (caddr_t) arg);
cmd232drivers/sound/sscape.chost_command1 (struct sscape_info *devc, int cmd)
cmd236drivers/sound/sscape.cbuf[0] = (unsigned char) (cmd & 0xff);
cmd242drivers/sound/sscape.chost_command2 (struct sscape_info *devc, int cmd, int parm1)
cmd246drivers/sound/sscape.cbuf[0] = (unsigned char) (cmd & 0xff);
cmd253drivers/sound/sscape.chost_command3 (struct sscape_info *devc, int cmd, int parm1, int parm2)
cmd257drivers/sound/sscape.cbuf[0] = (unsigned char) (cmd & 0xff);
cmd651drivers/sound/sscape.csscape_coproc_ioctl (void *dev_info, unsigned int cmd, caddr_t arg, int local)
cmd654drivers/sound/sscape.cswitch (cmd)
cmd758drivers/sound/sscape.csscape_audio_ioctl (int dev, unsigned int cmd, caddr_t arg, int local)
cmd762drivers/sound/sscape.cswitch (cmd)
cmd136drivers/sound/sys_timer.cunsigned char   cmd = event[1];
cmd139drivers/sound/sys_timer.cswitch (cmd)
cmd206drivers/sound/sys_timer.cunsigned int cmd, caddr_t arg)
cmd208drivers/sound/sys_timer.cswitch (cmd)
cmd53drivers/sound/uart6850.cuart6850_cmd (unsigned char cmd)
cmd55drivers/sound/uart6850.coutb (cmd, COMDPORT);
cmd239drivers/sound/uart6850.cuart6850_ioctl (int dev, unsigned cmd, caddr_t arg)
cmd1011fs/dquot.casmlinkage int sys_quotactl(int cmd, const char *special, int id, caddr_t addr)
cmd1017fs/dquot.ccmds = cmd >> SUBCMDSHIFT;
cmd1018fs/dquot.ctype = cmd & SUBCMDMASK;
cmd19fs/ext2/ioctl.cint ext2_ioctl (struct inode * inode, struct file * filp, unsigned int cmd,
cmd25fs/ext2/ioctl.cext2_debug ("cmd = %u, arg = %lu\n", cmd, arg);
cmd27fs/ext2/ioctl.cswitch (cmd) {
cmd381fs/fat/dir.cunsigned int cmd, unsigned long arg)
cmd389fs/fat/dir.cswitch (cmd) {
cmd18fs/fcntl.cextern int sock_fcntl (struct file *, unsigned int cmd, unsigned long arg);
cmd56fs/fcntl.casmlinkage long sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg)
cmd64fs/fcntl.cswitch (cmd) {
cmd97fs/fcntl.creturn fcntl_setlk(fd, cmd, (struct flock *) arg);
cmd99fs/fcntl.creturn fcntl_setlk(fd, cmd, (struct flock *) arg);
cmd158fs/fcntl.creturn (sock_fcntl (filp, cmd, arg));
cmd17fs/ioctl.cstatic int file_ioctl(struct file *filp,unsigned int cmd,unsigned long arg)
cmd22fs/ioctl.cswitch (cmd) {
cmd53fs/ioctl.creturn filp->f_op->ioctl(filp->f_inode, filp, cmd, arg);
cmd58fs/ioctl.casmlinkage int sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg)
cmd65fs/ioctl.cswitch (cmd) {
cmd93fs/ioctl.creturn file_ioctl(filp, cmd, arg);
cmd96fs/ioctl.creturn filp->f_op->ioctl(filp->f_inode, filp, cmd, arg);
cmd77fs/locks.cunsigned int cmd);
cmd153fs/locks.casmlinkage int sys_flock(unsigned int fd, unsigned int cmd)
cmd161fs/locks.cif (!flock_make_lock(filp, &file_lock, cmd))
cmd167fs/locks.creturn (flock_lock_file(filp, &file_lock, cmd & LOCK_UN ? 0 : cmd & LOCK_NB ? 0 : 1));
cmd216fs/locks.cint fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l)
cmd256fs/locks.creturn (posix_lock_file(filp, &file_lock, cmd == F_SETLKW));
cmd342fs/locks.cunsigned int cmd)
cmd347fs/locks.cswitch (cmd & ~LOCK_NB) {
cmd19fs/ncpfs/ioctl.cunsigned int cmd, unsigned long arg)
cmd26fs/ncpfs/ioctl.cswitch(cmd) {
cmd76fs/noquot.casmlinkage int sys_quotactl(int cmd, const char *special, int id, caddr_t addr)
cmd135fs/pipe.cunsigned int cmd, unsigned long arg)
cmd139fs/pipe.cswitch (cmd) {
cmd18fs/smbfs/ioctl.cunsigned int cmd, unsigned long arg)
cmd22fs/smbfs/ioctl.cswitch (cmd) {
cmd58fs/umsdos/ioctl.cunsigned int cmd,
cmd74fs/umsdos/ioctl.c|| cmd == UMSDOS_GETVERSION){
cmd96fs/umsdos/ioctl.cPRINTK (("ioctl %d ",cmd));
cmd97fs/umsdos/ioctl.cif (cmd == UMSDOS_GETVERSION){
cmd111fs/umsdos/ioctl.c}else if (cmd == UMSDOS_READDIR_DOS){
cmd124fs/umsdos/ioctl.c}else if (cmd == UMSDOS_READDIR_EMD){
cmd167fs/umsdos/ioctl.c}else if (cmd == UMSDOS_INIT_EMD){
cmd190fs/umsdos/ioctl.cif (cmd == UMSDOS_CREAT_EMD){
cmd207fs/umsdos/ioctl.c}else if (cmd == UMSDOS_RENAME_DOS){
cmd222fs/umsdos/ioctl.c}else if (cmd == UMSDOS_UNLINK_EMD){
cmd240fs/umsdos/ioctl.c}else if (cmd == UMSDOS_UNLINK_DOS){
cmd251fs/umsdos/ioctl.c}else if (cmd == UMSDOS_RMDIR_DOS){
cmd262fs/umsdos/ioctl.c}else if (cmd == UMSDOS_STAT_DOS){
cmd286fs/umsdos/ioctl.c}else if (cmd == UMSDOS_DOS_SETUP){
cmd23include/linux/blkdev.hint cmd;    /* READ or WRITE */
cmd421include/linux/cdk.hunsigned long  cmd;
cmd350include/linux/fd.hunsigned char cmd[16];
cmd82include/linux/kerneld.hstatic inline int ksystem(const char *cmd, int waitflag)
cmd86include/linux/kerneld.hstrlen(cmd), cmd, NULL);
cmd25include/linux/loop.hint    (*transfer)(struct loop_device *, int cmd,
cmd35include/linux/loop.htypedef  int (* transfer_proc_t)(struct loop_device *, int cmd,
cmd115include/linux/md.hunsigned int cmd, unsigned long arg);
cmd122include/linux/mroute.hextern int ipmr_ioctl(struct sock *sk, int cmd, unsigned long arg);
cmd219include/linux/msdos_fs.hunsigned int cmd, unsigned long arg);
cmd74include/linux/msg.hasmlinkage int sys_msgctl (int msqid, int cmd, struct msqid_ds *buf);
cmd144include/linux/ncp_fs.hunsigned int cmd, unsigned long arg);
cmd107include/linux/net.hint  (*ioctl)  (struct socket *sock, unsigned int cmd,
cmd115include/linux/net.hint  (*fcntl)  (struct socket *sock, unsigned int cmd,
cmd184include/linux/netdevice.hint        (*do_ioctl)(struct device *dev, struct ifreq *ifr, int cmd);
cmd239include/linux/netdevice.hextern int    dev_ioctl(unsigned int cmd, void *);
cmd98include/linux/quota.h#define QCMD(cmd, type)  (((cmd) << SUBCMDSHIFT) | ((type) & SUBCMDMASK))
cmd108include/linux/sem.hasmlinkage int sys_semctl (int semid, int semnum, int cmd, union semun arg);
cmd65include/linux/shm.hasmlinkage int sys_shmctl (int shmid, int cmd, struct shmid_ds *buf);
cmd112include/linux/smb_fs.hunsigned int cmd, unsigned long arg);
cmd533include/linux/soundcard.hunsigned char cmd;
cmd318include/linux/tty.hunsigned int cmd, unsigned long arg);
cmd337include/linux/tty.hunsigned int cmd, unsigned long arg);
cmd133include/linux/tty_driver.hunsigned int cmd, unsigned long arg);
cmd27include/linux/tty_ldisc.hunsigned int cmd, unsigned long arg);
cmd91include/linux/ultrasound.h#define _GUS_CMD(chn, voice, cmd, p1, p2) \
cmd93include/linux/ultrasound.h_seqbuf[_seqbufptr+1] = (chn); _seqbuf[_seqbufptr+2] = cmd;\
cmd114include/linux/xd.hstatic int xd_ioctl (struct inode *inode,struct file *file,unsigned int cmd,unsigned long arg);
cmd11include/net/arp.hextern int  arp_ioctl(unsigned int cmd, void *arg);
cmd36include/net/icmp.hextern int  icmp_ioctl(struct sock *sk, int cmd,
cmd87include/net/ip.hextern int    ip_ioctl(struct sock *sk, int cmd, unsigned long arg);
cmd5include/net/rarp.hextern int rarp_ioctl(unsigned int cmd, void *arg);
cmd193include/net/route.hextern int    ip_rt_ioctl(unsigned int cmd, void *arg);
cmd350include/net/sock.hint      (*ioctl)(struct sock *sk, int cmd,
cmd127include/net/tcp.hextern int tcp_ioctl(struct sock *sk, int cmd, unsigned long arg);
cmd49include/net/udp.hextern int  udp_ioctl(struct sock *sk, int cmd, unsigned long arg);
cmd426ipc/msg.casmlinkage int sys_msgctl (int msqid, int cmd, struct msqid_ds *buf)
cmd433ipc/msg.cif (msqid < 0 || cmd < 0)
cmd435ipc/msg.cswitch (cmd) {
cmd450ipc/msg.cif (cmd == MSG_INFO) {
cmd511ipc/msg.cswitch (cmd) {
cmd360ipc/sem.casmlinkage int sys_semctl (int semid, int semnum, int cmd, union semun arg)
cmd373ipc/sem.cif (semid < 0 || semnum < 0 || cmd < 0)
cmd376ipc/sem.cswitch (cmd) {
cmd391ipc/sem.cif (cmd == SEM_INFO) {
cmd432ipc/sem.cswitch (cmd) {
cmd444ipc/sem.cswitch (cmd) {
cmd452ipc/sem.cswitch (cmd) {
cmd502ipc/sem.cswitch (cmd) {
cmd203ipc/shm.casmlinkage int sys_shmctl (int shmid, int cmd, struct shmid_ds *buf)
cmd210ipc/shm.cif (cmd < 0 || shmid < 0)
cmd212ipc/shm.cif (cmd == IPC_SET) {
cmd221ipc/shm.cswitch (cmd) { /* replace with proc interface ? */
cmd288ipc/shm.cswitch (cmd) {
cmd75ipc/util.casmlinkage int sys_semctl (int semid, int semnum, int cmd, union semun arg)
cmd96ipc/util.casmlinkage int sys_msgctl (int msqid, int cmd, struct msqid_ds *buf)
cmd116ipc/util.casmlinkage int sys_shmctl (int shmid, int cmd, struct shmid_ds *buf)
cmd6net/802/llc.cint llc_rx_adm(struct sock *sk,struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
cmd10net/802/llc.cif(cmd==DISC)
cmd12net/802/llc.celse if(cmd==SABM)
cmd36net/802/llc.cint llc_rx_setup(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
cmd40net/802/llc.cif(cmd==SABM)
cmd46net/802/llc.cif(cmd==DISC)
cmd55net/802/llc.cif(cmd==UA && pf==sk->llc.p_flag)
cmd62net/802/llc.cif(cmd==DM)
cmd70net/802/llc.cint llc_rx_reset(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
cmd74net/802/llc.cif(cmd==SABM)
cmd80net/802/llc.celse if(cmd==DISC)
cmd92net/802/llc.cif(cmd==UA)
cmd105net/802/llc.cif(cmd==DM)
cmd114net/802/llc.cint llc_rx_d_conn(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
cmd118net/802/llc.cif(cmd==SABM)
cmd123net/802/llc.celse if(cmd==DISC)
cmd133net/802/llc.cif(cmd==UA && pf==sk->llc.p_flag)
cmd139net/802/llc.cif(cmd==DM)
cmd150net/802/llc.cint llc_rx_error(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
cmd154net/802/llc.cif(cmd==SABM)
cmd164net/802/llc.celse if(cmd==DISC)
cmd175net/802/llc.cif(cmd==DM)
cmd181net/802/llc.cif(cmd==FRMR)
cmd199net/802/llc.cint llc_rx_nr_shared(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
cmd203net/802/llc.cif(cmd==SABM)
cmd212net/802/llc.celse if(cmd==DISC)
cmd222net/802/llc.celse if(cmd==ILLEGAL)
cmd239net/802/llc.cif(cmd==FRMR)
cmd248net/802/llc.celse if(cmd==DM)
cmd258net/802/llc.celse if(cmd==UA)
cmd270net/802/llc.celse if(cmd==ILLEGAL)
cmd288net/802/llc.cint llc_rx_normal(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
cmd290net/802/llc.cif(llc_rx_nr_shared(sk, skb, type, cmd, pf, nr, ns))
cmd292net/802/llc.cif(cmd==I)
cmd368net/802/llc.celse if(cmd==RR||cmd==RNR)
cmd378net/802/llc.cif(cmd==RR)
cmd386net/802/llc.celse if(type==cmd && pf)
cmd388net/802/llc.cif(cmd==RR)
cmd401net/802/llc.cif(cmd==RR)
cmd407net/802/llc.celse if(cmd==REJ)
cmd691net/appletalk/ddp.cint atif_ioctl(int cmd, void *arg)
cmd699net/appletalk/ddp.cint ro=(cmd==SIOCSIFADDR);
cmd716net/appletalk/ddp.cswitch(cmd)
cmd827net/appletalk/ddp.cstatic int atrtr_ioctl(unsigned int cmd, void *arg)
cmd837net/appletalk/ddp.cswitch(cmd)
cmd963net/appletalk/ddp.cstatic int atalk_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
cmd966net/appletalk/ddp.cswitch(cmd)
cmd1852net/appletalk/ddp.cstatic int atalk_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg)
cmd1858net/appletalk/ddp.cswitch(cmd)
cmd1895net/appletalk/ddp.creturn(atrtr_ioctl(cmd,(void *)arg));
cmd1902net/appletalk/ddp.creturn atif_ioctl(cmd,(void *)arg);
cmd1916net/appletalk/ddp.creturn(dev_ioctl(cmd,(void *) arg));
cmd475net/ax25/af_ax25.cstatic int ax25_uid_ioctl(int cmd, struct sockaddr_ax25 *sax)
cmd479net/ax25/af_ax25.cswitch (cmd) {
cmd721net/ax25/af_ax25.cstatic int ax25_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
cmd1995net/ax25/af_ax25.cstatic int ax25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
cmd2001net/ax25/af_ax25.cswitch (cmd) {
cmd2042net/ax25/af_ax25.creturn ax25_uid_ioctl(cmd, &sax25);
cmd2060net/ax25/af_ax25.creturn ax25_bpq_ioctl(cmd, (void *)arg);
cmd2065net/ax25/af_ax25.creturn ax25_dev_ioctl(cmd, (void *)arg);
cmd2071net/ax25/af_ax25.creturn ax25_rt_ioctl(cmd, (void *)arg);
cmd2086net/ax25/af_ax25.creturn(dev_ioctl(cmd, (void *)arg));
cmd167net/ax25/ax25_route.cint ax25_rt_ioctl(unsigned int cmd, void *arg)
cmd175net/ax25/ax25_route.cswitch (cmd) {
cmd590net/ax25/ax25_route.cint ax25_dev_ioctl(unsigned int cmd, void *arg)
cmd597net/ax25/ax25_route.cswitch (cmd) {
cmd726net/ax25/ax25_route.cint ax25_bpq_ioctl(unsigned int cmd, void *arg)
cmd734net/ax25/ax25_route.cswitch (cmd) {
cmd484net/ax25/ax25_subr.cvoid ax25_kiss_cmd(ax25_cb *ax25, unsigned char cmd, unsigned char param)
cmd507net/ax25/ax25_subr.c*p++=cmd;
cmd1252net/core/dev.cint dev_ioctl(unsigned int cmd, void *arg)
cmd1254net/core/dev.cswitch(cmd) 
cmd1276net/core/dev.creturn dev_ifsioc(arg, cmd);
cmd1296net/core/dev.creturn dev_ifsioc(arg, cmd);
cmd1306net/core/dev.cif((cmd >= SIOCDEVPRIVATE) &&
cmd1307net/core/dev.c(cmd <= (SIOCDEVPRIVATE + 15))) {
cmd1308net/core/dev.creturn dev_ifsioc(arg, cmd);
cmd427net/ipv4/af_inet.cstatic int inet_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
cmd433net/ipv4/af_inet.cswitch(cmd) 
cmd1194net/ipv4/af_inet.cstatic int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
cmd1200net/ipv4/af_inet.cswitch(cmd) 
cmd1230net/ipv4/af_inet.creturn(ip_rt_ioctl(cmd,(void *) arg));
cmd1237net/ipv4/af_inet.creturn(arp_ioctl(cmd,(void *) arg));
cmd1246net/ipv4/af_inet.creturn(rarp_ioctl_hook(cmd,(void *) arg));
cmd1273net/ipv4/af_inet.creturn(dev_ioctl(cmd,(void *) arg));
cmd1276net/ipv4/af_inet.cif ((cmd >= SIOCDEVPRIVATE) &&
cmd1277net/ipv4/af_inet.c(cmd <= (SIOCDEVPRIVATE + 15)))
cmd1278net/ipv4/af_inet.creturn(dev_ioctl(cmd,(void *) arg));
cmd1282net/ipv4/af_inet.creturn(sk->prot->ioctl(sk, cmd, arg));
cmd1865net/ipv4/arp.cint arp_ioctl(unsigned int cmd, void *arg)
cmd1872net/ipv4/arp.cswitch(cmd)
cmd1917net/ipv4/arp.c((cmd == SIOCSARP) || (cmd == OLD_SIOCSARP))) {
cmd1923net/ipv4/arp.cswitch(cmd)
cmd1333net/ipv4/ip_fw.cint ret, cmd, fwtype;
cmd1335net/ipv4/ip_fw.ccmd = stage & IP_FW_COMMAND;
cmd1338net/ipv4/ip_fw.cif ( cmd == IP_FW_FLUSH )
cmd1344net/ipv4/ip_fw.cif ( cmd == IP_FW_ZERO )
cmd1350net/ipv4/ip_fw.cif ( cmd == IP_FW_POLICY )
cmd1358net/ipv4/ip_fw.cif ( cmd == IP_FW_CHECK )
cmd1411net/ipv4/ip_fw.cif ( cmd == IP_FW_INSERT || cmd == IP_FW_APPEND || cmd == IP_FW_DELETE )
cmd1421net/ipv4/ip_fw.cswitch (cmd) 
cmd180net/ipv4/ip_input.cint ip_ioctl(struct sock *sk, int cmd, unsigned long arg)
cmd182net/ipv4/ip_input.cswitch(cmd)
cmd596net/ipv4/ipmr.cint ipmr_ioctl(struct sock *sk, int cmd, unsigned long arg)
cmd603net/ipv4/ipmr.cswitch(cmd)
cmd443net/ipv4/rarp.cint rarp_ioctl(unsigned int cmd, void *arg)
cmd449net/ipv4/rarp.cswitch(cmd)
cmd1752net/ipv4/route.cint ip_rt_ioctl(unsigned int cmd, void *arg)
cmd1757net/ipv4/route.cswitch(cmd) 
cmd1767net/ipv4/route.creturn (cmd == SIOCDELRT) ? rt_kill(&rt) : ip_rt_new(&rt);
cmd745net/ipv4/tcp.cint tcp_ioctl(struct sock *sk, int cmd, unsigned long arg)
cmd748net/ipv4/tcp.cswitch(cmd) 
cmd444net/ipv4/udp.cint udp_ioctl(struct sock *sk, int cmd, unsigned long arg)
cmd447net/ipv4/udp.cswitch(cmd) 
cmd993net/ipx/af_ipx.cipxitf_ioctl(unsigned int cmd, void *arg)
cmd996net/ipx/af_ipx.cswitch(cmd)
cmd1263net/ipx/af_ipx.cstatic int ipxrtr_ioctl(unsigned int cmd, void *arg)
cmd1285net/ipx/af_ipx.cswitch(cmd)
cmd1487net/ipx/af_ipx.cstatic int ipx_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
cmd1489net/ipx/af_ipx.cswitch(cmd)
cmd2083net/ipx/af_ipx.cstatic int ipx_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg)
cmd2089net/ipx/af_ipx.cswitch(cmd)
cmd2116net/ipx/af_ipx.creturn(ipxrtr_ioctl(cmd,(void *)arg));
cmd2123net/ipx/af_ipx.creturn(ipxitf_ioctl(cmd,(void *)arg));
cmd2151net/ipx/af_ipx.creturn(dev_ioctl(cmd,(void *) arg));
cmd144net/netlink.cunsigned int cmd, unsigned long arg)
cmd151net/netlink.cswitch ( cmd ) {
cmd280net/netrom/af_netrom.cstatic int nr_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
cmd1169net/netrom/af_netrom.cstatic int nr_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
cmd1175net/netrom/af_netrom.cswitch (cmd) {
cmd1224net/netrom/af_netrom.creturn nr_rt_ioctl(cmd, (void *)arg);
cmd1247net/netrom/af_netrom.creturn dev_ioctl(cmd, (void *)arg);
cmd564net/netrom/nr_route.cint nr_rt_ioctl(unsigned int cmd, void *arg)
cmd571net/netrom/nr_route.cswitch (cmd) {
cmd83net/socket.cunsigned int cmd, unsigned long arg);
cmd389net/socket.cint sock_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
cmd394net/socket.creturn(sock->ops->ioctl(sock, cmd, arg));
cmd1164net/socket.cint sock_fcntl(struct file *filp, unsigned int cmd, unsigned long arg)
cmd1170net/socket.creturn(sock->ops->fcntl(sock, cmd, arg));
cmd215net/unix/af_unix.cstatic int unix_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
cmd1192net/unix/af_unix.cstatic int unix_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
cmd1198net/unix/af_unix.cswitch(cmd)