tag | line | file | source code |
cmd | 95 | arch/alpha/kernel/bios32.c | unsigned short cmd; |
cmd | 99 | arch/alpha/kernel/bios32.c | pcibios_read_config_word(bus->number, dev->devfn, PCI_COMMAND, &cmd); |
cmd | 121 | arch/alpha/kernel/bios32.c | cmd |= PCI_COMMAND_IO; |
cmd | 135 | arch/alpha/kernel/bios32.c | cmd |= PCI_COMMAND_MEMORY; |
cmd | 223 | arch/alpha/kernel/bios32.c | cmd |= PCI_COMMAND_IO; |
cmd | 226 | arch/alpha/kernel/bios32.c | cmd | PCI_COMMAND_MASTER); |
cmd | 144 | drivers/block/floppy.c | unsigned char cmd[9]; |
cmd | 245 | drivers/block/floppy.c | #define COMMAND raw_cmd->cmd[0] |
cmd | 246 | drivers/block/floppy.c | #define DR_SELECT raw_cmd->cmd[1] |
cmd | 247 | drivers/block/floppy.c | #define TRACK raw_cmd->cmd[2] |
cmd | 248 | drivers/block/floppy.c | #define HEAD raw_cmd->cmd[3] |
cmd | 249 | drivers/block/floppy.c | #define SECTOR raw_cmd->cmd[4] |
cmd | 250 | drivers/block/floppy.c | #define SIZECODE raw_cmd->cmd[5] |
cmd | 251 | drivers/block/floppy.c | #define SECT_PER_TRACK raw_cmd->cmd[6] |
cmd | 252 | drivers/block/floppy.c | #define GAP raw_cmd->cmd[7] |
cmd | 253 | drivers/block/floppy.c | #define SIZECODE2 raw_cmd->cmd[8] |
cmd | 257 | drivers/block/floppy.c | #define F_SIZECODE raw_cmd->cmd[2] |
cmd | 258 | drivers/block/floppy.c | #define F_SECT_PER_TRACK raw_cmd->cmd[3] |
cmd | 259 | drivers/block/floppy.c | #define F_GAP raw_cmd->cmd[4] |
cmd | 260 | drivers/block/floppy.c | #define F_FILL raw_cmd->cmd[5] |
cmd | 981 | drivers/block/floppy.c | printk("%x,", raw_cmd->cmd[i]); |
cmd | 1364 | drivers/block/floppy.c | r|=output_byte(raw_cmd->cmd[i]); |
cmd | 2118 | drivers/block/floppy.c | if (CURRENT->cmd == WRITE) { |
cmd | 2354 | drivers/block/floppy.c | if (CURRENT->cmd == READ){ |
cmd | 2357 | drivers/block/floppy.c | } else if (CURRENT->cmd == WRITE){ |
cmd | 2833 | drivers/block/floppy.c | static inline int raw_cmd_copyout(int cmd, char *param, |
cmd | 2840 | drivers/block/floppy.c | if (cmd == OLDFDRAWCMD) { |
cmd | 2886 | drivers/block/floppy.c | static inline int raw_cmd_copyin(int cmd, char *param, |
cmd | 2901 | drivers/block/floppy.c | if (cmd == OLDFDRAWCMD){ |
cmd | 2912 | drivers/block/floppy.c | memcpy(ptr->cmd, old_raw_cmd.cmd, 9); |
cmd | 2952 | drivers/block/floppy.c | static int raw_cmd_ioctl(int cmd, void *param) |
cmd | 2976 | drivers/block/floppy.c | ret = raw_cmd_copyin(cmd, param, &my_raw_cmd); |
cmd | 2996 | drivers/block/floppy.c | ret2 = raw_cmd_copyout(cmd, param, my_raw_cmd); |
cmd | 3018 | drivers/block/floppy.c | static inline int set_geometry(int cmd, struct floppy_struct *g, |
cmd | 3054 | drivers/block/floppy.c | if (cmd != FDDEFPRM) |
cmd | 3063 | drivers/block/floppy.c | if (cmd == FDDEFPRM) |
cmd | 3113 | drivers/block/floppy.c | static inline int normalize_0x02xx_ioctl(int *cmd, int *size) |
cmd | 3117 | drivers/block/floppy.c | orig_size = IOC_SIZE(*cmd); |
cmd | 3118 | drivers/block/floppy.c | ocmd = *cmd; |
cmd | 3120 | drivers/block/floppy.c | if ((*cmd & 0xff3f) == (translation_table[i].newcmd & 0xff3f)){ |
cmd | 3121 | drivers/block/floppy.c | *cmd = translation_table[i].newcmd; |
cmd | 3122 | drivers/block/floppy.c | if (!orig_size && IOC_SIZE(*cmd)) { |
cmd | 3124 | drivers/block/floppy.c | *size = IOC_SIZE(*cmd); |
cmd | 3135 | drivers/block/floppy.c | if (*size > IOC_SIZE(*cmd)) { |
cmd | 3146 | drivers/block/floppy.c | static inline int xlate_0x00xx_ioctl(int *cmd, int *size) |
cmd | 3158 | drivers/block/floppy.c | if (*cmd == translation_table[i].oldcmd) { |
cmd | 3160 | drivers/block/floppy.c | *cmd = translation_table[i].newcmd; |
cmd | 3167 | drivers/block/floppy.c | static int fd_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, |
cmd | 3189 | drivers/block/floppy.c | switch (cmd) { |
cmd | 3196 | drivers/block/floppy.c | if ((cmd & 0xff00) == 0x0200) { |
cmd | 3197 | drivers/block/floppy.c | ECALL(normalize_0x02xx_ioctl(&cmd, &size)); |
cmd | 3198 | drivers/block/floppy.c | } else if ((cmd & 0xff00) == 0x0000) { |
cmd | 3199 | drivers/block/floppy.c | ECALL(xlate_0x00xx_ioctl(&cmd, &size)); |
cmd | 3204 | drivers/block/floppy.c | if (((cmd & 0x80) && !suser()) || |
cmd | 3205 | drivers/block/floppy.c | ((cmd & 0x40) && !IOCTL_ALLOWED)) |
cmd | 3209 | drivers/block/floppy.c | if (_IOC_DIR(cmd) & _IOC_WRITE) |
cmd | 3214 | drivers/block/floppy.c | if (_IOC_DIR(cmd) & _IOC_READ) |
cmd | 3217 | drivers/block/floppy.c | switch (cmd) { |
cmd | 3226 | drivers/block/floppy.c | return set_geometry(cmd, & inparam.g, |
cmd | 3293 | drivers/block/floppy.c | CALL(i = raw_cmd_ioctl(cmd,(void *) param)); |
cmd | 3307 | drivers/block/floppy.c | if (_IOC_DIR(cmd) & _IOC_WRITE) |
cmd | 221 | drivers/block/hd.c | unsigned int head,unsigned int cyl,unsigned int cmd, |
cmd | 245 | drivers/block/hd.c | outb_p(cmd,++port); |
cmd | 738 | drivers/block/hd.c | dev+'a', (CURRENT->cmd == READ)?"read":"writ", |
cmd | 743 | drivers/block/hd.c | if (CURRENT->cmd == READ) { |
cmd | 744 | drivers/block/hd.c | unsigned int cmd = mult_count[dev] > 1 ? WIN_MULTREAD : WIN_READ; |
cmd | 745 | drivers/block/hd.c | hd_out(dev,nsect,sec,head,cyl,cmd,&read_intr); |
cmd | 750 | drivers/block/hd.c | if (CURRENT->cmd == WRITE) { |
cmd | 779 | drivers/block/hd.c | unsigned int cmd, unsigned long arg) |
cmd | 790 | drivers/block/hd.c | switch (cmd) { |
cmd | 551 | drivers/block/ide-cd.c | rq->cmd = REQUEST_SENSE_COMMAND; |
cmd | 586 | drivers/block/ide-cd.c | if (rq->cmd == REQUEST_SENSE_COMMAND && uptodate) |
cmd | 613 | drivers/block/ide-cd.c | int stat, err, sense_key, cmd; |
cmd | 630 | drivers/block/ide-cd.c | cmd = rq->cmd; |
cmd | 632 | drivers/block/ide-cd.c | if (cmd == REQUEST_SENSE_COMMAND) |
cmd | 645 | drivers/block/ide-cd.c | else if (cmd == PACKET_COMMAND) |
cmd | 1419 | drivers/block/ide-cd.c | req.cmd = PACKET_COMMAND; |
cmd | 1488 | drivers/block/ide-cd.c | if (rq -> cmd == PACKET_COMMAND || rq -> cmd == REQUEST_SENSE_COMMAND) |
cmd | 1491 | drivers/block/ide-cd.c | else if (rq -> cmd == RESET_DRIVE_COMMAND) |
cmd | 1498 | drivers/block/ide-cd.c | else if (rq -> cmd != READ) |
cmd | 1500 | drivers/block/ide-cd.c | printk ("ide-cd: bad cmd %d\n", rq -> cmd); |
cmd | 2055 | drivers/block/ide-cd.c | struct file *file, unsigned int cmd, unsigned long arg) |
cmd | 2057 | drivers/block/ide-cd.c | switch (cmd) |
cmd | 2397 | drivers/block/ide-cd.c | if (cmd == CDROMREADMODE1) |
cmd | 2438 | drivers/block/ide-cd.c | req.cmd = RESET_DRIVE_COMMAND; |
cmd | 876 | drivers/block/ide.c | if (rq->cmd == IDE_DRIVE_CMD) { /* never retry an explicit DRIVE_CMD */ |
cmd | 890 | drivers/block/ide.c | if ((stat & DRQ_STAT) && rq->cmd != WRITE) |
cmd | 1074 | drivers/block/ide.c | static void ide_cmd(ide_drive_t *drive, byte cmd, byte nsect, ide_handler_t *handler) |
cmd | 1079 | drivers/block/ide.c | OUT_BYTE(cmd,IDE_COMMAND_REG); |
cmd | 1235 | drivers/block/ide.c | drive->name, (rq->cmd==READ)?"read":"writ", |
cmd | 1254 | drivers/block/ide.c | drive->name, (rq->cmd==READ)?"read":"writ", cyl, |
cmd | 1258 | drivers/block/ide.c | if (rq->cmd == READ) { |
cmd | 1267 | drivers/block/ide.c | if (rq->cmd == WRITE) { |
cmd | 1290 | drivers/block/ide.c | if (rq->cmd == IDE_DRIVE_CMD) { |
cmd | 1310 | drivers/block/ide.c | printk("%s: bad command: %d\n", drive->name, rq->cmd); |
cmd | 1631 | drivers/block/ide.c | rq.cmd = IDE_DRIVE_CMD; |
cmd | 1771 | drivers/block/ide.c | unsigned int cmd, unsigned long arg) |
cmd | 1782 | drivers/block/ide.c | switch (cmd) { |
cmd | 1859 | drivers/block/ide.c | switch (cmd) { |
cmd | 1932 | drivers/block/ide.c | return ide_cdrom_ioctl(drive, inode, file, cmd, arg); |
cmd | 1980 | drivers/block/ide.c | static inline void do_identify (ide_drive_t *drive, byte cmd) |
cmd | 2005 | drivers/block/ide.c | if (cmd == WIN_PIDENTIFY) { |
cmd | 2018 | drivers/block/ide.c | if (cmd == WIN_PIDENTIFY) { |
cmd | 2132 | drivers/block/ide.c | static int try_to_identify (ide_drive_t *drive, byte cmd) |
cmd | 2151 | drivers/block/ide.c | OUT_BYTE(cmd,IDE_COMMAND_REG); /* ask drive for ID */ |
cmd | 2152 | drivers/block/ide.c | timeout = ((cmd == WIN_IDENTIFY) ? WAIT_WORSTCASE : WAIT_PIDENTIFY) / 2; |
cmd | 2166 | drivers/block/ide.c | do_identify(drive, cmd); /* drive returned ID */ |
cmd | 2196 | drivers/block/ide.c | static int do_probe (ide_drive_t *drive, byte cmd) |
cmd | 2201 | drivers/block/ide.c | if ((drive->media == cdrom) && (cmd == WIN_IDENTIFY)) |
cmd | 2208 | drivers/block/ide.c | (cmd == WIN_IDENTIFY) ? "ATA" : "ATAPI"); |
cmd | 2222 | drivers/block/ide.c | || drive->present || cmd == WIN_PIDENTIFY) |
cmd | 2224 | drivers/block/ide.c | if ((rc = try_to_identify(drive,cmd))) /* send cmd and wait */ |
cmd | 2225 | drivers/block/ide.c | rc = try_to_identify(drive,cmd); /* failed: try again */ |
cmd | 112 | drivers/block/ll_rw_blk.c | plug->cmd = -1; |
cmd | 132 | drivers/block/ll_rw_blk.c | if (req && req->rq_status == RQ_INACTIVE && req->cmd == -1) { |
cmd | 357 | drivers/block/ll_rw_blk.c | req->cmd == rw && |
cmd | 371 | drivers/block/ll_rw_blk.c | req->cmd == rw && |
cmd | 404 | drivers/block/ll_rw_blk.c | req->cmd = rw; |
cmd | 438 | drivers/block/ll_rw_blk.c | req->cmd = rw; |
cmd | 570 | drivers/block/ll_rw_blk.c | req[j]->cmd = rw; |
cmd | 48 | drivers/block/ramdisk.c | if (CURRENT-> cmd == WRITE) { |
cmd | 52 | drivers/block/ramdisk.c | } else if (CURRENT->cmd == READ) { |
cmd | 225 | drivers/block/xd.c | switch (CURRENT->cmd) { |
cmd | 229 | drivers/block/xd.c | code = xd_readwrite(CURRENT->cmd,CURRENT_DEV,CURRENT->buffer,block,count); |
cmd | 240 | drivers/block/xd.c | static int xd_ioctl (struct inode *inode,struct file *file,u_int cmd,u_long arg) |
cmd | 246 | drivers/block/xd.c | switch (cmd) { |
cmd | 188 | drivers/cdrom/aztcd.c | (CURRENT && MAJOR(CURRENT -> rq_dev) == MAJOR_NR && CURRENT -> cmd == READ \ |
cmd | 259 | drivers/cdrom/aztcd.c | static int aztSendCmd(int cmd); |
cmd | 260 | drivers/cdrom/aztcd.c | static int sendAztCmd(int cmd, struct azt_Play_msf *params); |
cmd | 399 | drivers/cdrom/aztcd.c | static int aztSendCmd(int cmd) |
cmd | 404 | drivers/cdrom/aztcd.c | printk("aztcd: Executing command %x\n",cmd); |
cmd | 406 | drivers/cdrom/aztcd.c | aztCmd=cmd; |
cmd | 415 | drivers/cdrom/aztcd.c | { outb((unsigned char) cmd,CMD_PORT); |
cmd | 423 | drivers/cdrom/aztcd.c | printk("### Error 1 aztcd: aztSendCmd %x Error Code %x\n",cmd,data); |
cmd | 427 | drivers/cdrom/aztcd.c | { printk("### Error 2 aztcd: aztSendCmd %x \n",cmd); |
cmd | 436 | drivers/cdrom/aztcd.c | static int sendAztCmd(int cmd, struct azt_Play_msf *params) |
cmd | 446 | drivers/cdrom/aztcd.c | { aztSendCmd(cmd); |
cmd | 460 | drivers/cdrom/aztcd.c | printk("### Error 1 aztcd: sendAztCmd %x Error Code %x\n",cmd,data); |
cmd | 464 | drivers/cdrom/aztcd.c | { printk("### Error 2 aztcd: sendAztCmd %x\n ",cmd); |
cmd | 607 | drivers/cdrom/aztcd.c | static int aztcd_ioctl(struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg) |
cmd | 619 | drivers/cdrom/aztcd.c | printk("aztcd: starting aztcd_ioctl - Command:%x Time: %li\n",cmd, jiffies); |
cmd | 628 | drivers/cdrom/aztcd.c | switch (cmd) |
cmd | 802 | drivers/cdrom/aztcd.c | printk("aztcd: exiting aztcd_ioctl - Error 1 - Command:%x\n",cmd); |
cmd | 809 | drivers/cdrom/aztcd.c | printk("aztcd: exiting aztcd_ioctl - Error 2 - Command:%x\n",cmd); |
cmd | 817 | drivers/cdrom/aztcd.c | printk("aztcd: exiting aztcd_ioctl - Error 3 - Command:%x\n",cmd); |
cmd | 903 | drivers/cdrom/aztcd.c | if (cmd==CDROMREADRAW) |
cmd | 944 | drivers/cdrom/aztcd.c | printk("aztcd: exiting aztcd_ioctl Command:%x Time:%li\n",cmd,jiffies); |
cmd | 238 | drivers/cdrom/cdu31a.c | static void do_sony_cd_cmd(unsigned char cmd, |
cmd | 518 | drivers/cdrom/cdu31a.c | write_cmd(unsigned char cmd) |
cmd | 521 | drivers/cdrom/cdu31a.c | outb(cmd, sony_cd_cmd_reg); |
cmd | 820 | drivers/cdrom/cdu31a.c | do_sony_cd_cmd(unsigned char cmd, |
cmd | 888 | drivers/cdrom/cdu31a.c | write_cmd(cmd); |
cmd | 1580 | drivers/cdrom/cdu31a.c | switch(CURRENT->cmd) |
cmd | 2359 | drivers/cdrom/cdu31a.c | unsigned char cmd, |
cmd | 2365 | drivers/cdrom/cdu31a.c | do_sony_cd_cmd(cmd, params, num_params, result_buffer, result_size); |
cmd | 2379 | drivers/cdrom/cdu31a.c | unsigned int cmd, |
cmd | 2393 | drivers/cdrom/cdu31a.c | switch (cmd) |
cmd | 644 | drivers/cdrom/cm206.c | if (CURRENT->cmd != READ) { |
cmd | 645 | drivers/cdrom/cm206.c | debug(("Non-read command %d on cdrom\n", CURRENT->cmd)); |
cmd | 886 | drivers/cdrom/cm206.c | unsigned int cmd, unsigned long arg) |
cmd | 888 | drivers/cdrom/cm206.c | switch (cmd) { |
cmd | 927 | drivers/cdrom/cm206.c | switch (cmd) { |
cmd | 1009 | drivers/cdrom/cm206.c | else return -cmd; |
cmd | 1022 | drivers/cdrom/cm206.c | debug(("Unknown ioctl call 0x%x\n", cmd)); |
cmd | 202 | drivers/cdrom/gscd.c | static int gscd_ioctl (struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg) |
cmd | 208 | drivers/cdrom/gscd.c | switch (cmd) |
cmd | 274 | drivers/cdrom/gscd.c | if (CURRENT -> cmd != READ) |
cmd | 276 | drivers/cdrom/gscd.c | printk("GSCD: bad cmd %d\n", CURRENT -> cmd); |
cmd | 317 | drivers/cdrom/gscd.c | char cmd[] = { CMD_READ, 0x80, 0,0,0, 0,1 }; /* cmd mode M-S-F secth sectl */ |
cmd | 340 | drivers/cdrom/gscd.c | cmd[2] = gscdcmd.start.min; |
cmd | 341 | drivers/cdrom/gscd.c | cmd[3] = gscdcmd.start.sec; |
cmd | 342 | drivers/cdrom/gscd.c | cmd[4] = gscdcmd.start.frame; |
cmd | 345 | drivers/cdrom/gscd.c | printk ("GSCD: read msf %d:%d:%d\n", cmd[2], cmd[3], cmd[4] ); |
cmd | 347 | drivers/cdrom/gscd.c | cmd_out ( TYPE_DATA, (char *)&cmd, (char *)&gscd_buf[0], 1 ); |
cmd | 519 | drivers/cdrom/gscd.c | void cmd_out ( int cmd_type, char * cmd, char * respo_buf, int respo_count ) |
cmd | 575 | drivers/cdrom/gscd.c | cmd_write_cmd (cmd); |
cmd | 142 | drivers/cdrom/mcd.c | (CURRENT && MAJOR(CURRENT -> rq_dev) == MAJOR_NR && CURRENT -> cmd == READ \ |
cmd | 197 | drivers/cdrom/mcd.c | static void sendMcdCmd(int cmd, struct mcd_Play_msf *params); |
cmd | 336 | drivers/cdrom/mcd.c | mcd_ioctl(struct inode *ip, struct file *fp, unsigned int cmd, |
cmd | 363 | drivers/cdrom/mcd.c | switch (cmd) |
cmd | 1372 | drivers/cdrom/mcd.c | sendMcdCmd(int cmd, struct mcd_Play_msf *params) |
cmd | 1374 | drivers/cdrom/mcd.c | outb(cmd, MCDPORT(0)); |
cmd | 234 | drivers/cdrom/mcdx.c | const unsigned char* cmd, size_t, void *buffer, |
cmd | 270 | drivers/cdrom/mcdx.c | unsigned int cmd, unsigned long arg) |
cmd | 277 | drivers/cdrom/mcdx.c | switch (cmd) { |
cmd | 518 | drivers/cdrom/mcdx.c | WARN(("ioctl(): unknown request 0x%04x\n", cmd)); |
cmd | 556 | drivers/cdrom/mcdx.c | switch (CURRENT->cmd) { |
cmd | 839 | drivers/cdrom/mcdx.c | const unsigned char *cmd, size_t cmdlen, |
cmd | 866 | drivers/cdrom/mcdx.c | tries, timeout, size, (unsigned char) cmd[0])); |
cmd | 867 | drivers/cdrom/mcdx.c | for (i = 1; i < cmdlen; i++) printk(" 0x%02x", cmd[i]); |
cmd | 879 | drivers/cdrom/mcdx.c | outsb((unsigned int) stuffp->wreg_data, cmd, cmdlen); |
cmd | 885 | drivers/cdrom/mcdx.c | cmd[0], tries - 1, tries == 2 ? "y" : "ies")); |
cmd | 895 | drivers/cdrom/mcdx.c | WARN(("command error %02x (%d)\n", cmd[0], cmdlen)); |
cmd | 915 | drivers/cdrom/mcdx.c | cmd[0], tries - 1, tries == 2 ? "y" : "ies")); |
cmd | 1278 | drivers/cdrom/mcdx.c | static unsigned char cmd[] = { |
cmd | 1284 | drivers/cdrom/mcdx.c | cmd[0] = stuffp->readcmd; |
cmd | 1313 | drivers/cdrom/mcdx.c | cmd[1] = pending.minute; |
cmd | 1314 | drivers/cdrom/mcdx.c | cmd[2] = pending.second; |
cmd | 1315 | drivers/cdrom/mcdx.c | cmd[3] = pending.frame; |
cmd | 1319 | drivers/cdrom/mcdx.c | cmd[6] = (unsigned char) (stuffp->off_requested - stuffp->pending) / 4; |
cmd | 1321 | drivers/cdrom/mcdx.c | outsb((unsigned int) stuffp->wreg_data, cmd, sizeof cmd); |
cmd | 1456 | drivers/cdrom/mcdx.c | unsigned char cmd[7] = { |
cmd | 1460 | drivers/cdrom/mcdx.c | cmd[0] = stuffp->playcmd; |
cmd | 1462 | drivers/cdrom/mcdx.c | cmd[1] = msf->cdmsf_min0; |
cmd | 1463 | drivers/cdrom/mcdx.c | cmd[2] = msf->cdmsf_sec0; |
cmd | 1464 | drivers/cdrom/mcdx.c | cmd[3] = msf->cdmsf_frame0; |
cmd | 1465 | drivers/cdrom/mcdx.c | cmd[4] = msf->cdmsf_min1; |
cmd | 1466 | drivers/cdrom/mcdx.c | cmd[5] = msf->cdmsf_sec1; |
cmd | 1467 | drivers/cdrom/mcdx.c | cmd[6] = msf->cdmsf_frame1; |
cmd | 1471 | drivers/cdrom/mcdx.c | cmd[0], cmd[1], cmd[2], cmd[3], |
cmd | 1472 | drivers/cdrom/mcdx.c | cmd[4], cmd[5], cmd[6])); |
cmd | 1474 | drivers/cdrom/mcdx.c | outsb((unsigned int) stuffp->wreg_data, cmd, sizeof cmd); |
cmd | 1605 | drivers/cdrom/mcdx.c | char cmd[2]; |
cmd | 1610 | drivers/cdrom/mcdx.c | if (-1 == (ans = mcdx_talk(stuffp, "\xc2", 1, cmd, sizeof(cmd), 5*HZ, tries))) |
cmd | 1614 | drivers/cdrom/mcdx.c | case TOC: cmd[1] |= 0x04; break; |
cmd | 1615 | drivers/cdrom/mcdx.c | case DATA: cmd[1] &= ~0x04; break; |
cmd | 1616 | drivers/cdrom/mcdx.c | case RAW: cmd[1] |= 0x40; break; |
cmd | 1617 | drivers/cdrom/mcdx.c | case COOKED: cmd[1] &= ~0x40; break; |
cmd | 1620 | drivers/cdrom/mcdx.c | cmd[0] = 0x50; |
cmd | 1621 | drivers/cdrom/mcdx.c | return mcdx_talk(stuffp, cmd, 2, NULL, 0, 5*HZ, tries); |
cmd | 1628 | drivers/cdrom/mcdx.c | unsigned char cmd[2] = { 0xa0 }; |
cmd | 1631 | drivers/cdrom/mcdx.c | case MODE0: cmd[1] = 0x00; break; |
cmd | 1632 | drivers/cdrom/mcdx.c | case MODE1: cmd[1] = 0x01; break; |
cmd | 1633 | drivers/cdrom/mcdx.c | case MODE2: cmd[1] = 0x02; break; |
cmd | 1636 | drivers/cdrom/mcdx.c | return mcdx_talk(stuffp, cmd, 2, NULL, 0, 5*HZ, tries); |
cmd | 1642 | drivers/cdrom/mcdx.c | char cmd[4]; |
cmd | 1646 | drivers/cdrom/mcdx.c | cmd[0] = 0x90; |
cmd | 1648 | drivers/cdrom/mcdx.c | cmd[1] = 0x10; /* irq enable */ |
cmd | 1649 | drivers/cdrom/mcdx.c | cmd[2] = 0x05; /* pre, err irq enable */ |
cmd | 1651 | drivers/cdrom/mcdx.c | if (-1 == mcdx_talk(stuffp, cmd, 3, NULL, 0, 1*HZ, tries)) |
cmd | 1654 | drivers/cdrom/mcdx.c | cmd[1] = 0x02; /* dma select */ |
cmd | 1655 | drivers/cdrom/mcdx.c | cmd[2] = 0x00; /* no dma */ |
cmd | 1657 | drivers/cdrom/mcdx.c | return mcdx_talk(stuffp, cmd, 3, NULL, 0, 1*HZ, tries); |
cmd | 1688 | drivers/cdrom/mcdx.c | char cmd[2] = { 0xfe }; |
cmd | 1690 | drivers/cdrom/mcdx.c | cmd[1] = lock ? 0x01 : 0x00; |
cmd | 1691 | drivers/cdrom/mcdx.c | return mcdx_talk(stuffp, cmd, sizeof(cmd), NULL, 0, 5*HZ, tries); |
cmd | 229 | drivers/cdrom/optcd.c | static int optSendCmd(int cmd) { |
cmd | 232 | drivers/cdrom/optcd.c | printk("optcd: executing command 0x%02x\n", cmd); |
cmd | 235 | drivers/cdrom/optcd.c | outb(cmd, COMIN_PORT); /* Send command code */ |
cmd | 362 | drivers/cdrom/optcd.c | inline static int optCmd(int cmd) { |
cmd | 363 | drivers/cdrom/optcd.c | int ack = optSendCmd(cmd); |
cmd | 366 | drivers/cdrom/optcd.c | if (cmd < COMFETCH) /* Quick response command */ |
cmd | 373 | drivers/cdrom/optcd.c | inline static int optPlayCmd(int cmd, struct opt_Play_msf *params) { |
cmd | 374 | drivers/cdrom/optcd.c | int ack = optSendCmd(cmd); |
cmd | 384 | drivers/cdrom/optcd.c | inline static int optReadCmd(int cmd, struct opt_Play_msf *params) { |
cmd | 385 | drivers/cdrom/optcd.c | int ack = optSendCmd(cmd); |
cmd | 1036 | drivers/cdrom/optcd.c | unsigned int cmd, unsigned long arg) { |
cmd | 1040 | drivers/cdrom/optcd.c | printk("optcd: starting opt_ioctl, command 0x%x\n", cmd); |
cmd | 1049 | drivers/cdrom/optcd.c | switch (cmd) { |
cmd | 3795 | drivers/cdrom/sbpcd.c | static int sbpcd_ioctl(struct inode *inode, struct file *file, u_int cmd, |
cmd | 3801 | drivers/cdrom/sbpcd.c | MINOR(inode->i_rdev), cmd, arg); |
cmd | 3822 | drivers/cdrom/sbpcd.c | msg(DBG_IO2,"ioctl: device %d, request %04X\n",i,cmd); |
cmd | 3823 | drivers/cdrom/sbpcd.c | switch (cmd) /* Sun-compatible */ |
cmd | 4338 | drivers/cdrom/sbpcd.c | msg(DBG_IOC,"ioctl: unknown function request %04X\n", cmd); |
cmd | 4379 | drivers/cdrom/sbpcd.c | if (CURRENT->cmd != READ) |
cmd | 4381 | drivers/cdrom/sbpcd.c | msg(DBG_INF, "bad cmd %d\n", CURRENT->cmd); |
cmd | 254 | drivers/cdrom/sjcd.c | static void sjcd_send_cmd( unsigned char cmd ){ |
cmd | 256 | drivers/cdrom/sjcd.c | printk( "sjcd: send_cmd( 0x%x )\n", cmd ); |
cmd | 258 | drivers/cdrom/sjcd.c | outb( cmd, SJCDPORT( 0 ) ); |
cmd | 267 | drivers/cdrom/sjcd.c | static void sjcd_send_1_cmd( unsigned char cmd, unsigned char a ){ |
cmd | 269 | drivers/cdrom/sjcd.c | printk( "sjcd: send_1_cmd( 0x%x, 0x%x )\n", cmd, a ); |
cmd | 271 | drivers/cdrom/sjcd.c | outb( cmd, SJCDPORT( 0 ) ); |
cmd | 281 | drivers/cdrom/sjcd.c | static void sjcd_send_4_cmd( unsigned char cmd, unsigned char a, |
cmd | 284 | drivers/cdrom/sjcd.c | printk( "sjcd: send_4_cmd( 0x%x )\n", cmd ); |
cmd | 286 | drivers/cdrom/sjcd.c | outb( cmd, SJCDPORT( 0 ) ); |
cmd | 299 | drivers/cdrom/sjcd.c | static void sjcd_send_6_cmd( unsigned char cmd, struct sjcd_play_msf *pms ){ |
cmd | 301 | drivers/cdrom/sjcd.c | printk( "sjcd: send_long_cmd( 0x%x )\n", cmd ); |
cmd | 303 | drivers/cdrom/sjcd.c | outb( cmd, SJCDPORT( 0 ) ); |
cmd | 714 | drivers/cdrom/sjcd.c | unsigned int cmd, unsigned long arg ){ |
cmd | 725 | drivers/cdrom/sjcd.c | switch( cmd ){ |
cmd | 981 | drivers/cdrom/sjcd.c | CURRENT->cmd == READ && CURRENT->sector != -1 ) |
cmd | 195 | drivers/cdrom/sonycd535.c | static int do_sony_cmd(Byte * cmd, int nCmd, Byte status[2], |
cmd | 425 | drivers/cdrom/sonycd535.c | Byte cmd; |
cmd | 485 | drivers/cdrom/sonycd535.c | cmd = SONY535_SPIN_UP; |
cmd | 486 | drivers/cdrom/sonycd535.c | do_sony_cmd(&cmd, 1, e_status, NULL, 0, 0); |
cmd | 526 | drivers/cdrom/sonycd535.c | do_sony_cmd(Byte * cmd, int n_cmd, Byte status[2], |
cmd | 533 | drivers/cdrom/sonycd535.c | outb(cmd[i], command_reg); |
cmd | 547 | drivers/cdrom/sonycd535.c | *cmd, status[0], status[1]); |
cmd | 690 | drivers/cdrom/sonycd535.c | Byte cmd; |
cmd | 693 | drivers/cdrom/sonycd535.c | cmd = SONY535_REQUEST_DRIVE_STATUS_1; |
cmd | 694 | drivers/cdrom/sonycd535.c | if (do_sony_cmd(&cmd, 1, status, NULL, 0, 0) != 0) |
cmd | 700 | drivers/cdrom/sonycd535.c | cmd = SONY535_SPIN_UP; |
cmd | 701 | drivers/cdrom/sonycd535.c | return do_sony_cmd(&cmd, 1, status, NULL, 0, 0); |
cmd | 791 | drivers/cdrom/sonycd535.c | Byte cmd[2]; |
cmd | 812 | drivers/cdrom/sonycd535.c | switch (CURRENT->cmd) { |
cmd | 899 | drivers/cdrom/sonycd535.c | cmd[0] = SONY535_SPIN_UP; |
cmd | 900 | drivers/cdrom/sonycd535.c | do_sony_cmd(cmd, 1, status, NULL, 0, 0); |
cmd | 976 | drivers/cdrom/sonycd535.c | Byte cmd = SONY535_REQUEST_SUB_Q_DATA; |
cmd | 983 | drivers/cdrom/sonycd535.c | if ((dsc_status = do_sony_cmd(&cmd, 1, status, (Byte *) last_sony_subcode, |
cmd | 1071 | drivers/cdrom/sonycd535.c | unsigned int cmd, |
cmd | 1091 | drivers/cdrom/sonycd535.c | switch (cmd) { |
cmd | 476 | drivers/char/cyclades.c | write_cy_cmd(u_char *base_addr, u_char cmd, int index) |
cmd | 497 | drivers/char/cyclades.c | base_addr[CyCCR<<index] = cmd; |
cmd | 1887 | drivers/char/cyclades.c | set_modem_info(struct cyclades_port * info, unsigned int cmd, |
cmd | 1903 | drivers/char/cyclades.c | switch (cmd) { |
cmd | 2114 | drivers/char/cyclades.c | unsigned int cmd, unsigned long arg) |
cmd | 2121 | drivers/char/cyclades.c | printk("cy_ioctl ttyC%d, cmd = %x arg = %lx\n", info->line, cmd, arg); /* */ |
cmd | 2124 | drivers/char/cyclades.c | switch (cmd) { |
cmd | 2200 | drivers/char/cyclades.c | ret_val = set_modem_info(info, cmd, (unsigned int *) arg); |
cmd | 589 | drivers/char/istallion.c | static int stli_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg); |
cmd | 605 | drivers/char/istallion.c | static int stli_memioctl(struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg); |
cmd | 615 | drivers/char/istallion.c | static int stli_cmdwait(stlibrd_t *brdp, stliport_t *portp, unsigned long cmd, void *arg, int size, int copyback); |
cmd | 616 | drivers/char/istallion.c | static void stli_sendcmd(stlibrd_t *brdp, stliport_t *portp, unsigned long cmd, void *arg, int size, int copyback); |
cmd | 1231 | drivers/char/istallion.c | static int stli_cmdwait(stlibrd_t *brdp, stliport_t *portp, unsigned long cmd, void *arg, int size, int copyback) |
cmd | 1236 | drivers/char/istallion.c | printk("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); |
cmd | 1249 | drivers/char/istallion.c | stli_sendcmd(brdp, portp, cmd, arg, size, copyback); |
cmd | 1787 | drivers/char/istallion.c | static int stli_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg) |
cmd | 1795 | drivers/char/istallion.c | printk("stli_ioctl(tty=%x,file=%x,cmd=%x,arg=%x)\n", (int) tty, (int) file, cmd, (int) arg); |
cmd | 1809 | drivers/char/istallion.c | switch (cmd) { |
cmd | 2195 | drivers/char/istallion.c | static void stli_sendcmd(stlibrd_t *brdp, stliport_t *portp, unsigned long cmd, void *arg, int size, int copyback) |
cmd | 2203 | drivers/char/istallion.c | printk("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); |
cmd | 2207 | drivers/char/istallion.c | printk("STALLION: command already busy, cmd=%x!\n", (int) cmd); |
cmd | 2223 | drivers/char/istallion.c | cp->cmd = cmd; |
cmd | 2312 | drivers/char/istallion.c | int cmd; |
cmd | 2316 | drivers/char/istallion.c | cmd = A_SETSIGNALSF; |
cmd | 2318 | drivers/char/istallion.c | cmd = A_SETSIGNALSFTX; |
cmd | 2320 | drivers/char/istallion.c | cmd = A_SETSIGNALSFRX; |
cmd | 2322 | drivers/char/istallion.c | cmd = A_SETSIGNALS; |
cmd | 2328 | drivers/char/istallion.c | cp->cmd = cmd; |
cmd | 2331 | drivers/char/istallion.c | cmd = ((test_bit(ST_DOFLUSHTX, &portp->state)) ? FLUSHTX : 0); |
cmd | 2332 | drivers/char/istallion.c | cmd |= ((test_bit(ST_DOFLUSHRX, &portp->state)) ? FLUSHRX : 0); |
cmd | 2335 | drivers/char/istallion.c | memcpy((void *) &(cp->args[0]), (void *) &cmd, sizeof(int)); |
cmd | 2337 | drivers/char/istallion.c | cp->cmd = A_FLUSH; |
cmd | 2406 | drivers/char/istallion.c | if ((cp->cmd == 0) && (rc != 0)) { |
cmd | 3928 | drivers/char/istallion.c | static int stli_memioctl(struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg) |
cmd | 3934 | drivers/char/istallion.c | printk("stli_memioctl(ip=%x,fp=%x,cmd=%x,arg=%x)\n", (int) ip, (int) fp, cmd, (int) arg); |
cmd | 3946 | drivers/char/istallion.c | switch (cmd) { |
cmd | 392 | drivers/char/lp.c | unsigned int cmd, unsigned long arg) |
cmd | 398 | drivers/char/lp.c | printk(KERN_DEBUG "lp%d ioctl, cmd: 0x%x, arg: 0x%x\n", minor, cmd, arg); |
cmd | 404 | drivers/char/lp.c | switch ( cmd ) { |
cmd | 243 | drivers/char/random.c | unsigned int cmd, unsigned long arg); |
cmd | 726 | drivers/char/random.c | unsigned int cmd, unsigned long arg) |
cmd | 731 | drivers/char/random.c | switch (cmd) { |
cmd | 167 | drivers/char/scc.c | static int scc_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg); |
cmd | 1357 | drivers/char/scc.c | kiss_set_param(struct scc_channel *scc,char cmd, unsigned int val) |
cmd | 1363 | drivers/char/scc.c | switch(cmd){ |
cmd | 1829 | drivers/char/scc.c | scc_ioctl(struct tty_struct *tty, struct file * file, unsigned int cmd, unsigned long arg) |
cmd | 1850 | drivers/char/scc.c | if (cmd == TIOCSCCINI) |
cmd | 1866 | drivers/char/scc.c | if (cmd == TIOCCHANINI) |
cmd | 1915 | drivers/char/scc.c | switch(cmd){ |
cmd | 1937 | drivers/char/scc.c | switch (cmd) { |
cmd | 1597 | drivers/char/serial.c | static int set_modem_info(struct async_struct * info, unsigned int cmd, |
cmd | 1607 | drivers/char/serial.c | switch (cmd) { |
cmd | 1841 | drivers/char/serial.c | unsigned int cmd, unsigned long arg) |
cmd | 1850 | drivers/char/serial.c | if ((cmd != TIOCGSERIAL) && (cmd != TIOCSSERIAL) && |
cmd | 1851 | drivers/char/serial.c | (cmd != TIOCSERCONFIG) && (cmd != TIOCSERGWILD) && |
cmd | 1852 | drivers/char/serial.c | (cmd != TIOCSERSWILD) && (cmd != TIOCSERGSTRUCT)) { |
cmd | 1857 | drivers/char/serial.c | switch (cmd) { |
cmd | 1895 | drivers/char/serial.c | return set_modem_info(info, cmd, (unsigned int *) arg); |
cmd | 465 | drivers/char/stallion.c | static int stl_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg); |
cmd | 1164 | drivers/char/stallion.c | static int stl_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg) |
cmd | 1170 | drivers/char/stallion.c | printk("stl_ioctl(tty=%x,file=%x,cmd=%x,arg=%x)\n", (int) tty, (int) file, cmd, (int) arg); |
cmd | 1181 | drivers/char/stallion.c | switch (cmd) { |
cmd | 665 | drivers/char/tpqic02.c | static int notify_cmd(char cmd, short ignore_ex) |
cmd | 669 | drivers/char/tpqic02.c | outb_p(cmd, QIC02_CMD_PORT); /* output the command */ |
cmd | 805 | drivers/char/tpqic02.c | static int send_qic02_cmd(int cmd, time_t timeout, int ignore_ex) |
cmd | 824 | drivers/char/tpqic02.c | status_cmd_pending = cmd; |
cmd | 826 | drivers/char/tpqic02.c | stat = notify_cmd(cmd, ignore_ex); /* tell drive new command was loaded, */ |
cmd | 828 | drivers/char/tpqic02.c | if (TP_HAVE_SEEK && (cmd == AR_QCMDV_SEEK_BLK)) { |
cmd | 973 | drivers/char/tpqic02.c | static void finish_rw(int cmd); |
cmd | 1077 | drivers/char/tpqic02.c | static int ll_do_qic_cmd(int cmd, time_t timeout) |
cmd | 1094 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": ll_do_qic_cmd(%x, %ld) failed\n", cmd, (long) timeout); |
cmd | 1104 | drivers/char/tpqic02.c | stat = send_qic02_cmd(cmd, timeout, 0); /* (checks for exceptions) */ |
cmd | 1106 | drivers/char/tpqic02.c | if (cmd==QCMD_RD_FM) { |
cmd | 1112 | drivers/char/tpqic02.c | } else if (cmd==QCMD_WRT_FM) { |
cmd | 1115 | drivers/char/tpqic02.c | } else if ((cmd==QCMD_REWIND) || (cmd==QCMD_ERASE) || (cmd==QCMD_RETEN)) { |
cmd | 1130 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": Exception persist in ll_do_qic_cmd[1](%x, %ld)", cmd, (long) timeout); |
cmd | 1148 | drivers/char/tpqic02.c | if (tp_sense((cmd==QCMD_SEEK_EOD ? /*****************************/ |
cmd | 1151 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": Exception persist in ll_do_qic_cmd[2](%x, %ld)\n", cmd, (long) timeout); |
cmd | 1152 | drivers/char/tpqic02.c | if (cmd!=QCMD_RD_FM) |
cmd | 1159 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": ll_do_qic_cmd %x: wait failed, stat == 0x%x\n", cmd, stat); |
cmd | 1191 | drivers/char/tpqic02.c | static void terminate_read(int cmd) |
cmd | 1195 | drivers/char/tpqic02.c | if (cmd != QCMD_RD_FM) { |
cmd | 1219 | drivers/char/tpqic02.c | static void terminate_write(int cmd) |
cmd | 1226 | drivers/char/tpqic02.c | if (cmd != QCMD_WRT_FM) { |
cmd | 1243 | drivers/char/tpqic02.c | static void finish_rw(int cmd) |
cmd | 1249 | drivers/char/tpqic02.c | terminate_read(cmd); |
cmd | 1250 | drivers/char/tpqic02.c | terminate_write(cmd); |
cmd | 1258 | drivers/char/tpqic02.c | static int do_qic_cmd(int cmd, time_t timeout) |
cmd | 1263 | drivers/char/tpqic02.c | finish_rw(cmd); |
cmd | 1273 | drivers/char/tpqic02.c | if (cmd==QCMD_REWIND) /* don't wind beyond BOT ;-) */ |
cmd | 1277 | drivers/char/tpqic02.c | return ll_do_qic_cmd(cmd, timeout); |
cmd | 1285 | drivers/char/tpqic02.c | static int do_ioctl_cmd(int cmd) |
cmd | 1295 | drivers/char/tpqic02.c | switch (cmd) { |
cmd | 104 | drivers/char/tty_io.c | unsigned int cmd, unsigned long arg); |
cmd | 307 | drivers/char/tty_io.c | unsigned int cmd, unsigned long arg) |
cmd | 1338 | drivers/char/tty_io.c | unsigned int cmd, unsigned long arg) |
cmd | 1358 | drivers/char/tty_io.c | switch (cmd) { |
cmd | 1560 | drivers/char/tty_io.c | cmd, arg); |
cmd | 1566 | drivers/char/tty_io.c | cmd, arg); |
cmd | 375 | drivers/char/tty_ioctl.c | unsigned int cmd, unsigned long arg) |
cmd | 387 | drivers/char/tty_ioctl.c | switch (cmd) { |
cmd | 544 | drivers/char/tty_ioctl.c | tty->driver.ioctl(tty, file, cmd, arg); |
cmd | 186 | drivers/char/vt.c | unsigned int cmd, unsigned long arg) |
cmd | 208 | drivers/char/vt.c | switch (cmd) { |
cmd | 248 | drivers/char/vt.c | return sys_ioperm(arg, 1, (cmd == KDADDIO)) ? -ENXIO : 0; |
cmd | 253 | drivers/char/vt.c | (cmd == KDENABIO)) ? -ENXIO : 0; |
cmd | 105 | drivers/net/apricot.c | struct i596_cmd cmd; |
cmd | 113 | drivers/net/apricot.c | unsigned short cmd; |
cmd | 126 | drivers/net/apricot.c | struct i596_cmd *cmd; |
cmd | 189 | drivers/net/apricot.c | static void i596_add_cmd(struct device *dev, struct i596_cmd *cmd); |
cmd | 218 | drivers/net/apricot.c | rfd->cmd = CMD_EOL; |
cmd | 222 | drivers/net/apricot.c | rfd->cmd = 0x0000; |
cmd | 273 | drivers/net/apricot.c | lp->cmd_head = lp->scb.cmd = (struct i596_cmd *) I596_NULL; |
cmd | 375 | drivers/net/apricot.c | lp->rx_tail->cmd = 0; |
cmd | 379 | drivers/net/apricot.c | lp->rx_tail->cmd = CMD_EOL; |
cmd | 440 | drivers/net/apricot.c | lp->scb.cmd = lp->cmd_head; |
cmd | 484 | drivers/net/apricot.c | static void i596_add_cmd(struct device *dev, struct i596_cmd *cmd) |
cmd | 493 | drivers/net/apricot.c | cmd->status = 0; |
cmd | 494 | drivers/net/apricot.c | cmd->command |= (CMD_EOL|CMD_INTR); |
cmd | 495 | drivers/net/apricot.c | cmd->next = (struct i596_cmd *) I596_NULL; |
cmd | 500 | drivers/net/apricot.c | lp->cmd_tail->next = cmd; |
cmd | 503 | drivers/net/apricot.c | lp->cmd_head = cmd; |
cmd | 512 | drivers/net/apricot.c | lp->scb.cmd = cmd; |
cmd | 516 | drivers/net/apricot.c | lp->cmd_tail = cmd; |
cmd | 519 | drivers/net/apricot.c | lp->cmd_head = lp->scb.cmd; |
cmd | 641 | drivers/net/apricot.c | tx_cmd->cmd.command = CMD_FLEX|CmdTx; |
cmd | 743 | drivers/net/apricot.c | lp->scb.cmd = (struct i596_cmd *) I596_NULL; |
cmd | 875 | drivers/net/apricot.c | lp->scb.cmd = lp->cmd_head; |
cmd | 968 | drivers/net/apricot.c | struct i596_cmd *cmd; |
cmd | 974 | drivers/net/apricot.c | cmd = (struct i596_cmd *) kmalloc(sizeof(struct i596_cmd)+2+num_addrs*6, GFP_ATOMIC); |
cmd | 975 | drivers/net/apricot.c | if (cmd == NULL) |
cmd | 981 | drivers/net/apricot.c | cmd->command = CmdMulticastList; |
cmd | 982 | drivers/net/apricot.c | *((unsigned short *) (cmd + 1)) = num_addrs * 6; |
cmd | 983 | drivers/net/apricot.c | memcpy (((char *)(cmd + 1))+2, addrs, num_addrs * 6); |
cmd | 984 | drivers/net/apricot.c | print_eth (((char *)(cmd + 1)) + 2); |
cmd | 986 | drivers/net/apricot.c | i596_add_cmd(dev, cmd); |
cmd | 132 | drivers/net/atp.c | static unsigned short eeprom_op(short ioaddr, unsigned int cmd); |
cmd | 293 | drivers/net/atp.c | static unsigned short eeprom_op(short ioaddr, unsigned int cmd) |
cmd | 299 | drivers/net/atp.c | char outval = test_bit(num_bits, &cmd) ? EE_DATA_WRITE : 0; |
cmd | 403 | drivers/net/de4x5.c | static int de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd); |
cmd | 2499 | drivers/net/de4x5.c | static int de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
cmd | 2512 | drivers/net/de4x5.c | switch(ioc->cmd) { |
cmd | 624 | drivers/net/de4x5.h | unsigned short cmd; /* Command to run */ |
cmd | 287 | drivers/net/de600.c | #define de600_put_command(cmd) ( \ |
cmd | 290 | drivers/net/de600.c | outb_p(((rx_page | cmd) << 4) | COMMAND , DATA_PORT), \ |
cmd | 291 | drivers/net/de600.c | outb_p(((rx_page | cmd) & 0xf0) | COMMAND | HI_NIBBLE, DATA_PORT)) |
cmd | 272 | drivers/net/de620.c | de620_send_command(struct device *dev, byte cmd) |
cmd | 275 | drivers/net/de620.c | if (cmd == W_DUMMY) |
cmd | 278 | drivers/net/de620.c | outb(cmd, DATA_PORT); |
cmd | 364 | drivers/net/depca.c | static int depca_ioctl(struct device *dev, struct ifreq *rq, int cmd); |
cmd | 1652 | drivers/net/depca.c | static int depca_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
cmd | 1664 | drivers/net/depca.c | switch(ioc->cmd) { |
cmd | 163 | drivers/net/depca.h | unsigned short cmd; /* Command to run */ |
cmd | 144 | drivers/net/eql.c | static int eql_ioctl(struct device *dev, struct ifreq *ifr, int cmd); /* */ |
cmd | 327 | drivers/net/eql.c | eql_ioctl(struct device *dev, struct ifreq *ifr, int cmd) |
cmd | 329 | drivers/net/eql.c | if(!suser() && cmd!=EQL_GETMASTRCFG && cmd!=EQL_GETSLAVECFG) |
cmd | 331 | drivers/net/eql.c | switch (cmd) |
cmd | 776 | drivers/net/eth16i.c | short cmd = ( (command & (1 << i)) ? DI_1 : DI_0 ); |
cmd | 777 | drivers/net/eth16i.c | outb(cmd, ioaddr + EEPROM_DATA_REG); |
cmd | 294 | drivers/net/ewrk3.c | static int ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd); |
cmd | 1605 | drivers/net/ewrk3.c | static int ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
cmd | 1617 | drivers/net/ewrk3.c | switch(ioc->cmd) { |
cmd | 294 | drivers/net/ewrk3.h | unsigned short cmd; /* Command to run */ |
cmd | 143 | drivers/net/ni52.c | if(!p->scb->cmd) break; \ |
cmd | 480 | drivers/net/ni52.c | p->scb->cmd = CUC_START; /* cmd.-unit start */ |
cmd | 506 | drivers/net/ni52.c | p->scb->cmd = CUC_START; /* cmd.-unit start */ |
cmd | 530 | drivers/net/ni52.c | p->scb->cmd = CUC_START; /* cmd.-unit start */ |
cmd | 545 | drivers/net/ni52.c | p->scb->cmd = p->scb->status & STAT_MASK; |
cmd | 565 | drivers/net/ni52.c | p->scb->cmd = p->scb->status & STAT_MASK; |
cmd | 623 | drivers/net/ni52.c | p->scb->cmd = CUC_START; |
cmd | 668 | drivers/net/ni52.c | p->scb->cmd = CUC_START; |
cmd | 744 | drivers/net/ni52.c | p->scb->cmd = stat; |
cmd | 766 | drivers/net/ni52.c | p->scb->cmd = RUC_RESUME; |
cmd | 776 | drivers/net/ni52.c | if(p->scb->cmd) /* timed out? */ |
cmd | 848 | drivers/net/ni52.c | p->scb->cmd = RUC_ABORT; /* usually the RU is in the 'no resource'-state .. abort it now. */ |
cmd | 918 | drivers/net/ni52.c | p->scb->cmd = RUC_START; |
cmd | 948 | drivers/net/ni52.c | p->scb->cmd = CUC_ABORT; |
cmd | 952 | drivers/net/ni52.c | p->scb->cmd = CUC_START; |
cmd | 998 | drivers/net/ni52.c | p->scb->cmd = CUC_START; |
cmd | 65 | drivers/net/ni52.h | unsigned short cmd; /* command word */ |
cmd | 154 | drivers/net/pi2.c | static int pi_ioctl(struct device *dev, struct ifreq *ifr, int cmd); |
cmd | 241 | drivers/net/pi2.c | int cmd; |
cmd | 250 | drivers/net/pi2.c | cmd = lp->base + CTL; |
cmd | 256 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R1, WT_FN_RDYFN | WT_RDY_RT | INT_ERR_Rx | EXT_INT_ENAB); |
cmd | 272 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_Rx_CRC); |
cmd | 275 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R1, |
cmd | 345 | drivers/net/pi2.c | int cmd; |
cmd | 351 | drivers/net/pi2.c | cmd = CTL + lp->base; |
cmd | 367 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 368 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 369 | drivers/net/pi2.c | if ((rdscc(lp->cardbase, cmd, R0) & DCD) != 0) { |
cmd | 373 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R15, CTSIE | DCDIE); |
cmd | 384 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R5, TxCRC_ENAB | RTS | Tx8); |
cmd | 400 | drivers/net/pi2.c | int cmd; |
cmd | 411 | drivers/net/pi2.c | cmd = lp->base + CTL; |
cmd | 438 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R1, WT_FN_RDYFN | EXT_INT_ENAB); |
cmd | 455 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_Tx_CRC | RES_Tx_P); |
cmd | 458 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R15, TxUIE); |
cmd | 461 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R1, WT_RDY_ENAB | WT_FN_RDYFN | EXT_INT_ENAB); |
cmd | 464 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EOM_L); |
cmd | 474 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 475 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 476 | drivers/net/pi2.c | if ((rdscc(lp->cardbase, cmd, R0) & DCD) != 0) { |
cmd | 491 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R5, TxCRC_ENAB | RTS | Tx8); |
cmd | 507 | drivers/net/pi2.c | int cmd; |
cmd | 517 | drivers/net/pi2.c | cmd = lp->base + CTL; |
cmd | 519 | drivers/net/pi2.c | rse = rdscc(lp->cardbase, cmd, R1); /* Get special condition bits from R1 */ |
cmd | 583 | drivers/net/pi2.c | int cmd; |
cmd | 592 | drivers/net/pi2.c | cmd = CTL + lp->base; |
cmd | 594 | drivers/net/pi2.c | rse = rdscc(lp->cardbase, cmd, R1); /* get status byte from R1 */ |
cmd | 596 | drivers/net/pi2.c | if ((rdscc(lp->cardbase, cmd, R0)) & Rx_CH_AV) { |
cmd | 618 | drivers/net/pi2.c | *lp->rcp++ = rdscc(lp->cardbase, cmd, R8); /* char to rcv buff */ |
cmd | 622 | drivers/net/pi2.c | (void) rdscc(lp->cardbase, cmd, R8); |
cmd | 623 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, ERR_RES); /* reset err latch */ |
cmd | 677 | drivers/net/pi2.c | int cmd; |
cmd | 682 | drivers/net/pi2.c | cmd = CTL + lp->base; |
cmd | 708 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 709 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 710 | drivers/net/pi2.c | if ((rdscc(lp->cardbase, cmd, R0) & DCD) != 0) { |
cmd | 714 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R15, CTSIE | DCDIE); |
cmd | 735 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R8, c); |
cmd | 741 | drivers/net/pi2.c | if ((rdscc(lp->cardbase, cmd, R0) & 0x40)) { |
cmd | 746 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, SEND_ABORT); |
cmd | 755 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R10, CRCPS | NRZI); |
cmd | 757 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R10, CRCPS); |
cmd | 759 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_Tx_P); /* reset Tx Int Pend */ |
cmd | 778 | drivers/net/pi2.c | int cmd; |
cmd | 781 | drivers/net/pi2.c | cmd = CTL + lp->base; |
cmd | 784 | drivers/net/pi2.c | st = rdscc(lp->cardbase, cmd, R0); /* Fetch status */ |
cmd | 786 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 793 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, SEND_ABORT); |
cmd | 821 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_Tx_CRC); /* reset for next frame */ |
cmd | 825 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R10, CRCPS | NRZI | ABUNDER); |
cmd | 827 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R10, CRCPS | ABUNDER); |
cmd | 830 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R8, c); /* First char out now */ |
cmd | 831 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EOM_L); /* Reset end of message latch */ |
cmd | 839 | drivers/net/pi2.c | while((rdscc(lp->cardbase, cmd, R0) & 0x04) == 0) |
cmd | 841 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R8, c); |
cmd | 847 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R15, TxUIE); /* allow Underrun int only */ |
cmd | 848 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 849 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R1, TxINT_ENAB | EXT_INT_ENAB); /* Tx/Ext ints */ |
cmd | 859 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 860 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 861 | drivers/net/pi2.c | if ((rdscc(lp->cardbase, cmd, R0) & DCD) != 0) { |
cmd | 865 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R15, CTSIE | DCDIE); |
cmd | 886 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_Tx_CRC); /* reset for next frame */ |
cmd | 890 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R10, CRCPS | NRZI | ABUNDER); |
cmd | 892 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R10, CRCPS | ABUNDER); |
cmd | 895 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R8, c); /* First char out now */ |
cmd | 896 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EOM_L); /* Reset end of message latch */ |
cmd | 904 | drivers/net/pi2.c | while((rdscc(lp->cardbase, cmd, R0) & 0x04) == 0) |
cmd | 906 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R8, c); |
cmd | 912 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R15, TxUIE); /* allow Underrun int only */ |
cmd | 913 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 915 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R1, TxINT_ENAB | EXT_INT_ENAB); |
cmd | 928 | drivers/net/pi2.c | (void) rdscc(lp->cardbase, cmd, R8); |
cmd | 929 | drivers/net/pi2.c | (void) rdscc(lp->cardbase, cmd, R8); |
cmd | 930 | drivers/net/pi2.c | (void) rdscc(lp->cardbase, cmd, R8); |
cmd | 1002 | drivers/net/pi2.c | int cmd; |
cmd | 1006 | drivers/net/pi2.c | cmd = CTL + lp->base; |
cmd | 1011 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R15, 0); |
cmd | 1012 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R3, Rx8); /* Rx off */ |
cmd | 1014 | drivers/net/pi2.c | if (cmd & 2) { /* if channel a */ |
cmd | 1016 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R1, WT_FN_RDYFN | EXT_INT_ENAB); |
cmd | 1018 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R1, 0); /* No interrupts */ |
cmd | 1025 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R12, tc & 0xFF); /* lower byte */ |
cmd | 1026 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R13, (tc >> 8) & 0xFF); /* upper byte */ |
cmd | 1029 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R5, TxCRC_ENAB | RTS | TxENAB | Tx8 | DTR); |
cmd | 1033 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R5, Tx8 | DTR); /* TX off */ |
cmd | 1039 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R14, BRSRC); |
cmd | 1043 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R12, tc & 0xFF); /* lower byte */ |
cmd | 1044 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R13, (tc >> 8) & 0xFF); /* upper byte */ |
cmd | 1046 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R14, BRSRC | SEARCH); |
cmd | 1048 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R14, BRSRC | BRENABL); |
cmd | 1052 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R3, Rx8); /* Make sure rx is off */ |
cmd | 1053 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, ERR_RES); /* reset err latch */ |
cmd | 1054 | drivers/net/pi2.c | dummy = rdscc(lp->cardbase, cmd, R1); /* get status byte from R1 */ |
cmd | 1055 | drivers/net/pi2.c | (void) rdscc(lp->cardbase, cmd, R8); |
cmd | 1056 | drivers/net/pi2.c | (void) rdscc(lp->cardbase, cmd, R8); |
cmd | 1058 | drivers/net/pi2.c | (void) rdscc(lp->cardbase, cmd, R8); |
cmd | 1061 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R3, RxENABLE | Rx8); |
cmd | 1064 | drivers/net/pi2.c | if (cmd & 2) { /* if channel a */ |
cmd | 1070 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R1, (INT_ALL_Rx | EXT_INT_ENAB)); |
cmd | 1072 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R15, BRKIE); /* allow ABORT int */ |
cmd | 1097 | drivers/net/pi2.c | register int cmd; |
cmd | 1101 | drivers/net/pi2.c | cmd = CTL + lp->base; |
cmd | 1105 | drivers/net/pi2.c | switch (cmd & CHANA) { |
cmd | 1107 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R9, CHRA); /* Reset channel A */ |
cmd | 1108 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R2, 0xff); /* Initialize interrupt vector */ |
cmd | 1111 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R9, CHRB); /* Reset channel B */ |
cmd | 1116 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R1, 0); |
cmd | 1119 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R15, 0); |
cmd | 1122 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R4, SDLC | X1CLK); |
cmd | 1126 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R10, CRCPS | NRZI); |
cmd | 1129 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R11, TCBR | RCDPLL | TRxCDP | TRxCOI); |
cmd | 1132 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R11, TCDPLL | RCDPLL | TRxCBR | TRxCOI); |
cmd | 1134 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R10, CRCPS); |
cmd | 1136 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R11, TCTRxCP); |
cmd | 1140 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R6, 0); |
cmd | 1143 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R7, FLAG); |
cmd | 1148 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R5, Tx8 | DTR); |
cmd | 1151 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R3, Rx8); /* 8 bits/char */ |
cmd | 1154 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R14, BRSRC); /* BRG off, keep Pclk source */ |
cmd | 1165 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R12, tc & 0xFF); /* lower byte */ |
cmd | 1166 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R13, (tc >> 8) & 0xFF); /* upper byte */ |
cmd | 1173 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R14, BRSRC | SSBR); |
cmd | 1176 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R14, BRSRC | SSRTxC); |
cmd | 1178 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R14, BRSRC | SEARCH); /* SEARCH mode, keep BRG src */ |
cmd | 1179 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R14, BRSRC | BRENABL); /* Enable the BRG */ |
cmd | 1181 | drivers/net/pi2.c | if (!(cmd & 2)) /* if channel b */ |
cmd | 1182 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R1, (INT_ALL_Rx | EXT_INT_ENAB)); |
cmd | 1184 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R15, BRKIE); /* ABORT int */ |
cmd | 1187 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R3, RxENABLE | RxCRC_ENAB | Rx8); |
cmd | 1595 | drivers/net/pi2.c | static int pi_ioctl(struct device *dev, struct ifreq *ifr, int cmd) |
cmd | 1605 | drivers/net/pi2.c | if(cmd!=SIOCDEVPRIVATE) |
cmd | 1610 | drivers/net/pi2.c | switch (rq.cmd) { |
cmd | 73 | drivers/net/pi2.h | int cmd; |
cmd | 152 | drivers/net/plip.c | static int plip_ioctl(struct device *dev, struct ifreq *ifr, int cmd); |
cmd | 1036 | drivers/net/plip.c | plip_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
cmd | 188 | drivers/net/ppp.c | static int ppp_dev_ioctl (struct device *dev, struct ifreq *ifr, int cmd); |
cmd | 2854 | drivers/net/ppp.c | ppp_dev_ioctl (struct device *dev, struct ifreq *ifr, int cmd) |
cmd | 2861 | drivers/net/ppp.c | switch (cmd) { |
cmd | 1009 | drivers/net/slip.c | slip_ioctl(struct tty_struct *tty, void *file, int cmd, void *arg) |
cmd | 1020 | drivers/net/slip.c | switch(cmd) { |
cmd | 1091 | drivers/net/slip.c | return n_tty_ioctl(tty, (struct file *) file, cmd, (unsigned long) arg); |
cmd | 224 | drivers/net/wavelan.h | #define PIOM(cmd,piono) ((u_short)cmd << 10 << (piono * 2)) |
cmd | 691 | drivers/pci/pci.c | unsigned char cmd, tmp, hdr_type = 0; |
cmd | 751 | drivers/pci/pci.c | &cmd); |
cmd | 753 | drivers/pci/pci.c | cmd | PCI_COMMAND_MASTER); |
cmd | 758 | drivers/pci/pci.c | cmd); |
cmd | 186 | drivers/scsi/53c7,8xx.c | static void abnormal_finished (struct NCR53c7x0_cmd *cmd, int result); |
cmd | 193 | drivers/scsi/53c7,8xx.c | *cmd); |
cmd | 194 | drivers/scsi/53c7,8xx.c | static void intr_dma (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd); |
cmd | 199 | drivers/scsi/53c7,8xx.c | static void NCR53c8xx_dsa_fixup (struct NCR53c7x0_cmd *cmd); |
cmd | 202 | drivers/scsi/53c7,8xx.c | NCR53c7x0_cmd *cmd); |
cmd | 1311 | drivers/scsi/53c7,8xx.c | unsigned char cmd[6]; |
cmd | 1316 | drivers/scsi/53c7,8xx.c | cmd[0] = INQUIRY; |
cmd | 1317 | drivers/scsi/53c7,8xx.c | cmd[1] = cmd[2] = cmd[3] = cmd[5] = 0; |
cmd | 1318 | drivers/scsi/53c7,8xx.c | cmd[4] = sizeof(data); |
cmd | 1323 | drivers/scsi/53c7,8xx.c | dsa[5] = virt_to_bus(&cmd); |
cmd | 1402 | drivers/scsi/53c7,8xx.c | static void NCR53c8xx_dsa_fixup (struct NCR53c7x0_cmd *cmd) { |
cmd | 1403 | drivers/scsi/53c7,8xx.c | Scsi_Cmnd *c = cmd->cmd; |
cmd | 1409 | drivers/scsi/53c7,8xx.c | memcpy (cmd->dsa, hostdata->script + (hostdata->E_dsa_code_template / 4), |
cmd | 1412 | drivers/scsi/53c7,8xx.c | patch_abs_32 (cmd->dsa, Ent_dsa_code_template / sizeof(u32), |
cmd | 1413 | drivers/scsi/53c7,8xx.c | dsa_temp_jump_resume, virt_to_bus(cmd->dsa) + |
cmd | 1415 | drivers/scsi/53c7,8xx.c | patch_abs_rwri_data (cmd->dsa, Ent_dsa_code_template / sizeof(u32), |
cmd | 1417 | drivers/scsi/53c7,8xx.c | patch_abs_32 (cmd->dsa, Ent_dsa_code_template / sizeof(u32), |
cmd | 1418 | drivers/scsi/53c7,8xx.c | dsa_temp_dsa_next, virt_to_bus(cmd->dsa) + A_dsa_next); |
cmd | 1419 | drivers/scsi/53c7,8xx.c | patch_abs_32 (cmd->dsa, Ent_dsa_code_template / sizeof(u32), |
cmd | 1421 | drivers/scsi/53c7,8xx.c | patch_abs_rwri_data (cmd->dsa, Ent_dsa_code_template / sizeof(u32), |
cmd | 1440 | drivers/scsi/53c7,8xx.c | static void abnormal_finished (struct NCR53c7x0_cmd *cmd, int result) { |
cmd | 1441 | drivers/scsi/53c7,8xx.c | Scsi_Cmnd *c = cmd->cmd; |
cmd | 1455 | drivers/scsi/53c7,8xx.c | search && ((char*)bus_to_virt(search) + hostdata->dsa_start) != (char *) cmd->dsa; |
cmd | 1463 | drivers/scsi/53c7,8xx.c | if (cmd->prev) |
cmd | 1464 | drivers/scsi/53c7,8xx.c | cmd->prev->next = cmd->next; |
cmd | 1466 | drivers/scsi/53c7,8xx.c | if (cmd->next) |
cmd | 1467 | drivers/scsi/53c7,8xx.c | cmd->next->prev = cmd->prev; |
cmd | 1469 | drivers/scsi/53c7,8xx.c | if (hostdata->running_list == cmd) |
cmd | 1470 | drivers/scsi/53c7,8xx.c | hostdata->running_list = cmd->next; |
cmd | 1472 | drivers/scsi/53c7,8xx.c | cmd->next = hostdata->free; |
cmd | 1473 | drivers/scsi/53c7,8xx.c | hostdata->free = cmd; |
cmd | 1495 | drivers/scsi/53c7,8xx.c | NCR53c7x0_cmd *cmd) { |
cmd | 1499 | drivers/scsi/53c7,8xx.c | Scsi_Cmnd *c = cmd ? cmd->cmd : NULL; |
cmd | 1690 | drivers/scsi/53c7,8xx.c | NCR53c7x0_cmd *cmd) { |
cmd | 1692 | drivers/scsi/53c7,8xx.c | Scsi_Cmnd *c = cmd ? cmd->cmd : NULL; |
cmd | 1706 | drivers/scsi/53c7,8xx.c | if (cmd) |
cmd | 1729 | drivers/scsi/53c7,8xx.c | if (cmd) { |
cmd | 1731 | drivers/scsi/53c7,8xx.c | host->host_no, c->target, (cmd->flags & CMD_FLAG_SDTR) ? "accepting" : |
cmd | 1741 | drivers/scsi/53c7,8xx.c | if (cmd->flags & CMD_FLAG_SDTR) { |
cmd | 1742 | drivers/scsi/53c7,8xx.c | cmd->flags &= ~CMD_FLAG_SDTR; |
cmd | 1751 | drivers/scsi/53c7,8xx.c | cmd->flags |= CMD_FLAG_DID_SDTR; |
cmd | 1758 | drivers/scsi/53c7,8xx.c | patch_dsa_32 (cmd->dsa, dsa_msgout_other, 0, 5); |
cmd | 1759 | drivers/scsi/53c7,8xx.c | patch_dsa_32 (cmd->dsa, dsa_msgout_other, 1, |
cmd | 1843 | drivers/scsi/53c7,8xx.c | patch_dsa_32 (cmd->dsa, dsa_msgout, 0, 1); |
cmd | 1850 | drivers/scsi/53c7,8xx.c | patch_dsa_32 (cmd->dsa, dsa_cmdout, 0, 6); |
cmd | 1865 | drivers/scsi/53c7,8xx.c | patch_dsa_32 (cmd->dsa, dsa_dataout, 0, hostdata->E_other_transfer); |
cmd | 1866 | drivers/scsi/53c7,8xx.c | patch_dsa_32 (cmd->dsa, dsa_datain, 0, virt_to_bus(cmd->data_transfer_start)); |
cmd | 1867 | drivers/scsi/53c7,8xx.c | cmd->data_transfer_start[0] = (((DCMD_TYPE_BMI | DCMD_BMI_OP_MOVE_I | |
cmd | 1869 | drivers/scsi/53c7,8xx.c | cmd->data_transfer_start[1] = virt_to_bus(c->sense_buffer); |
cmd | 1871 | drivers/scsi/53c7,8xx.c | cmd->data_transfer_start[2] = ((DCMD_TYPE_TCI | DCMD_TCI_OP_JUMP) |
cmd | 1873 | drivers/scsi/53c7,8xx.c | cmd->data_transfer_start[3] = hostdata->E_other_transfer; |
cmd | 1882 | drivers/scsi/53c7,8xx.c | cmd->cmd->result = 0xffff; |
cmd | 1897 | drivers/scsi/53c7,8xx.c | if (cmd) |
cmd | 1898 | drivers/scsi/53c7,8xx.c | abnormal_finished (cmd, DID_ERROR << 16); |
cmd | 2356 | drivers/scsi/53c7,8xx.c | create_cmd (Scsi_Cmnd *cmd) { |
cmd | 2358 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
cmd | 2374 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(cmd->host); |
cmd | 2389 | drivers/scsi/53c7,8xx.c | !(hostdata->cmd_allocated[cmd->target] & (1 << cmd->lun))) { |
cmd | 2437 | drivers/scsi/53c7,8xx.c | switch (cmd->cmnd[0]) { |
cmd | 2445 | drivers/scsi/53c7,8xx.c | datain = 2 * (cmd->use_sg ? cmd->use_sg : 1) + 3; |
cmd | 2454 | drivers/scsi/53c7,8xx.c | print_command(cmd->cmnd); |
cmd | 2458 | drivers/scsi/53c7,8xx.c | cmd->use_sg); |
cmd | 2461 | drivers/scsi/53c7,8xx.c | dataout = 2 * (cmd->use_sg ? cmd->use_sg : 1) + 3; |
cmd | 2479 | drivers/scsi/53c7,8xx.c | datain = dataout = 2 * (cmd->use_sg ? cmd->use_sg : 1) + 3; |
cmd | 2503 | drivers/scsi/53c7,8xx.c | tmp->cmd = cmd; |
cmd | 2532 | drivers/scsi/53c7,8xx.c | patch_dsa_32(tmp->dsa, dsa_cmnd, 0, virt_to_bus(cmd)); |
cmd | 2533 | drivers/scsi/53c7,8xx.c | patch_dsa_32(tmp->dsa, dsa_select, 0, hostdata->sync[cmd->target]. |
cmd | 2541 | drivers/scsi/53c7,8xx.c | tmp->select[0] = IDENTIFY (1, cmd->lun); |
cmd | 2543 | drivers/scsi/53c7,8xx.c | tmp->select[0] = IDENTIFY (0, cmd->lun); |
cmd | 2546 | drivers/scsi/53c7,8xx.c | patch_dsa_32(tmp->dsa, dsa_cmdout, 0, cmd->cmd_len); |
cmd | 2547 | drivers/scsi/53c7,8xx.c | patch_dsa_32(tmp->dsa, dsa_cmdout, 1, virt_to_bus(cmd->cmnd)); |
cmd | 2557 | drivers/scsi/53c7,8xx.c | patch_dsa_32(tmp->dsa, dsa_msgin, 1, virt_to_bus(&cmd->result) + 1); |
cmd | 2559 | drivers/scsi/53c7,8xx.c | patch_dsa_32(tmp->dsa, dsa_status, 1, virt_to_bus(&cmd->result)); |
cmd | 2600 | drivers/scsi/53c7,8xx.c | for (i = 0; cmd->use_sg ? (i < cmd->use_sg) : !i; cmd_datain += 4, |
cmd | 2602 | drivers/scsi/53c7,8xx.c | u32 buf = cmd->use_sg ? |
cmd | 2603 | drivers/scsi/53c7,8xx.c | virt_to_bus(((struct scatterlist *)cmd->buffer)[i].address) : |
cmd | 2604 | drivers/scsi/53c7,8xx.c | virt_to_bus(cmd->request_buffer); |
cmd | 2605 | drivers/scsi/53c7,8xx.c | u32 count = cmd->use_sg ? |
cmd | 2606 | drivers/scsi/53c7,8xx.c | ((struct scatterlist *)cmd->buffer)[i].length : |
cmd | 2607 | drivers/scsi/53c7,8xx.c | cmd->request_bufflen; |
cmd | 2697 | drivers/scsi/53c7,8xx.c | int NCR53c7xx_queue_command (Scsi_Cmnd *cmd, void (* done)(Scsi_Cmnd *)) { |
cmd | 2700 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
cmd | 2709 | drivers/scsi/53c7,8xx.c | !(hostdata->debug_lun_limit[cmd->target] & (1 << cmd->lun)))) || |
cmd | 2710 | drivers/scsi/53c7,8xx.c | cmd->target > 7) { |
cmd | 2712 | drivers/scsi/53c7,8xx.c | cmd->target, cmd->lun); |
cmd | 2713 | drivers/scsi/53c7,8xx.c | cmd->result = (DID_BAD_TARGET << 16); |
cmd | 2714 | drivers/scsi/53c7,8xx.c | done(cmd); |
cmd | 2721 | drivers/scsi/53c7,8xx.c | cmd->result = (DID_BAD_TARGET << 16); |
cmd | 2722 | drivers/scsi/53c7,8xx.c | done(cmd); |
cmd | 2729 | drivers/scsi/53c7,8xx.c | switch (cmd->cmnd[0]) { |
cmd | 2734 | drivers/scsi/53c7,8xx.c | cmd->result = (DID_BAD_TARGET << 16); |
cmd | 2735 | drivers/scsi/53c7,8xx.c | done(cmd); |
cmd | 2740 | drivers/scsi/53c7,8xx.c | cmd->scsi_done = done; |
cmd | 2741 | drivers/scsi/53c7,8xx.c | cmd->result = 0xffff; /* The NCR will overwrite message |
cmd | 2744 | drivers/scsi/53c7,8xx.c | cmd->host_scribble = (unsigned char *) tmp = create_cmd (cmd); |
cmd | 2781 | drivers/scsi/53c7,8xx.c | target_was_busy = hostdata->busy[cmd->target][cmd->lun] |
cmd | 2888 | drivers/scsi/53c7,8xx.c | static void intr_scsi (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) { |
cmd | 2920 | drivers/scsi/53c7,8xx.c | if (cmd) { |
cmd | 2922 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->target, cmd->cmd->lun); |
cmd | 2923 | drivers/scsi/53c7,8xx.c | print_command (cmd->cmd->cmnd); |
cmd | 2943 | drivers/scsi/53c7,8xx.c | } else if (cmd) { |
cmd | 2944 | drivers/scsi/53c7,8xx.c | abnormal_finished(cmd, DID_BAD_TARGET << 16); |
cmd | 2954 | drivers/scsi/53c7,8xx.c | if (cmd) { |
cmd | 2956 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->target, cmd->cmd->lun); |
cmd | 2957 | drivers/scsi/53c7,8xx.c | abnormal_finished(cmd, DID_ERROR << 16); |
cmd | 2967 | drivers/scsi/53c7,8xx.c | if (cmd && cmd->cmd) { |
cmd | 2969 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->target, cmd->cmd->lun); |
cmd | 2970 | drivers/scsi/53c7,8xx.c | abnormal_finished (cmd, DID_PARITY << 16); |
cmd | 2996 | drivers/scsi/53c7,8xx.c | intr_phase_mismatch (host, cmd); |
cmd | 3052 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_cmd *cmd, /* command which halted */ |
cmd | 3127 | drivers/scsi/53c7,8xx.c | &(hostdata->running_list), cmd = |
cmd | 3128 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_cmd *) hostdata->running_list; cmd ; |
cmd | 3129 | drivers/scsi/53c7,8xx.c | cmd_prev_ptr = (struct NCR53c7x0_cmd **) &(cmd->next), |
cmd | 3130 | drivers/scsi/53c7,8xx.c | cmd = (struct NCR53c7x0_cmd *) cmd->next) { |
cmd | 3133 | drivers/scsi/53c7,8xx.c | if (!cmd) { |
cmd | 3138 | drivers/scsi/53c7,8xx.c | if (!(tmp = cmd->cmd)) { |
cmd | 3145 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->result); |
cmd | 3156 | drivers/scsi/53c7,8xx.c | if (cmd->prev) |
cmd | 3157 | drivers/scsi/53c7,8xx.c | cmd->prev->next = cmd->next; |
cmd | 3159 | drivers/scsi/53c7,8xx.c | *cmd_prev_ptr = (struct NCR53c7x0_cmd *) cmd->next; |
cmd | 3168 | drivers/scsi/53c7,8xx.c | cmd->next = hostdata->free; |
cmd | 3169 | drivers/scsi/53c7,8xx.c | hostdata->free = cmd; |
cmd | 3210 | drivers/scsi/53c7,8xx.c | cmd = (struct NCR53c7x0_cmd *) hostdata->current_cmd; |
cmd | 3213 | drivers/scsi/53c7,8xx.c | for (cmd = (struct NCR53c7x0_cmd *) |
cmd | 3214 | drivers/scsi/53c7,8xx.c | hostdata->running_list; cmd && |
cmd | 3216 | drivers/scsi/53c7,8xx.c | cmd->dsa; |
cmd | 3217 | drivers/scsi/53c7,8xx.c | cmd = (struct NCR53c7x0_cmd *)(cmd->next)); |
cmd | 3220 | drivers/scsi/53c7,8xx.c | if (cmd) { |
cmd | 3222 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->pid, (int) cmd->cmd->target, |
cmd | 3223 | drivers/scsi/53c7,8xx.c | (int) cmd->cmd->lun); |
cmd | 3224 | drivers/scsi/53c7,8xx.c | print_command (cmd->cmd->cmnd); |
cmd | 3233 | drivers/scsi/53c7,8xx.c | intr_scsi (host, cmd); |
cmd | 3239 | drivers/scsi/53c7,8xx.c | intr_dma (host, cmd); |
cmd | 3347 | drivers/scsi/53c7,8xx.c | *cmd) { |
cmd | 3356 | drivers/scsi/53c7,8xx.c | if (!cmd) { |
cmd | 3417 | drivers/scsi/53c7,8xx.c | if (dsp >= cmd->data_transfer_start && dsp < cmd->data_transfer_end) { |
cmd | 3505 | drivers/scsi/53c7,8xx.c | static void intr_dma (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) { |
cmd | 3620 | drivers/scsi/53c7,8xx.c | } else if (cmd) |
cmd | 3621 | drivers/scsi/53c7,8xx.c | abnormal_finished (cmd, DID_BAD_TARGET << 16); |
cmd | 3674 | drivers/scsi/53c7,8xx.c | switch ((tmp = hostdata->dstat_sir_intr (host, cmd))) { |
cmd | 3687 | drivers/scsi/53c7,8xx.c | intr_break (host, cmd); |
cmd | 3762 | drivers/scsi/53c7,8xx.c | int NCR53c7xx_abort (Scsi_Cmnd *cmd) { |
cmd | 3763 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
cmd | 3783 | drivers/scsi/53c7,8xx.c | curr && curr->cmd != cmd; prev = (volatile struct NCR53c7x0_cmd **) |
cmd | 3795 | drivers/scsi/53c7,8xx.c | cmd->result = 0; |
cmd | 3796 | drivers/scsi/53c7,8xx.c | cmd->scsi_done(cmd); |
cmd | 3808 | drivers/scsi/53c7,8xx.c | curr && curr->cmd != cmd; prev = (volatile struct NCR53c7x0_cmd **) |
cmd | 3814 | drivers/scsi/53c7,8xx.c | cmd->host->host_no); |
cmd | 3824 | drivers/scsi/53c7,8xx.c | curr = (struct NCR53c7x0_cmd *) cmd->host_scribble; |
cmd | 3828 | drivers/scsi/53c7,8xx.c | if (((cmd->result & 0xff00) == 0xff00) || |
cmd | 3829 | drivers/scsi/53c7,8xx.c | ((cmd->result & 0xff) == 0xff)) { |
cmd | 3835 | drivers/scsi/53c7,8xx.c | cmd->scsi_done(cmd); |
cmd | 3852 | drivers/scsi/53c7,8xx.c | NCR53c7xx_reset (Scsi_Cmnd *cmd) { |
cmd | 3858 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
cmd | 3872 | drivers/scsi/53c7,8xx.c | tmp = c->cmd; |
cmd | 3876 | drivers/scsi/53c7,8xx.c | if (tmp == cmd) |
cmd | 3882 | drivers/scsi/53c7,8xx.c | c = (struct NCR53c7x0_cmd *) cmd->host_scribble; |
cmd | 3887 | drivers/scsi/53c7,8xx.c | cmd->result = DID_RESET << 16; |
cmd | 3888 | drivers/scsi/53c7,8xx.c | cmd->scsi_done(cmd); |
cmd | 966 | drivers/scsi/53c7,8xx.h | Scsi_Cmnd *cmd; /* Associated Scsi_Cmnd |
cmd | 1101 | drivers/scsi/53c7,8xx.h | void (* dsa_fixup)(struct NCR53c7x0_cmd *cmd); |
cmd | 1111 | drivers/scsi/53c7,8xx.h | int (* dstat_sir_intr)(struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd); |
cmd | 299 | drivers/scsi/NCR5380.c | static __inline__ void initialize_SCp(Scsi_Cmnd *cmd) { |
cmd | 305 | drivers/scsi/NCR5380.c | if (cmd->use_sg) { |
cmd | 306 | drivers/scsi/NCR5380.c | cmd->SCp.buffer = (struct scatterlist *) cmd->buffer; |
cmd | 307 | drivers/scsi/NCR5380.c | cmd->SCp.buffers_residual = cmd->use_sg - 1; |
cmd | 308 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = (char *) cmd->SCp.buffer->address; |
cmd | 309 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = cmd->SCp.buffer->length; |
cmd | 311 | drivers/scsi/NCR5380.c | cmd->SCp.buffer = NULL; |
cmd | 312 | drivers/scsi/NCR5380.c | cmd->SCp.buffers_residual = 0; |
cmd | 313 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = (char *) cmd->request_buffer; |
cmd | 314 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = cmd->request_bufflen; |
cmd | 499 | drivers/scsi/NCR5380.c | static int should_disconnect (unsigned char cmd) { |
cmd | 500 | drivers/scsi/NCR5380.c | switch (cmd) { |
cmd | 848 | drivers/scsi/NCR5380.c | int NCR5380_queue_command (Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *)) { |
cmd | 850 | drivers/scsi/NCR5380.c | cmd->host->hostdata; |
cmd | 854 | drivers/scsi/NCR5380.c | switch (cmd->cmnd[0]) { |
cmd | 859 | drivers/scsi/NCR5380.c | cmd->result = (DID_ERROR << 16); |
cmd | 860 | drivers/scsi/NCR5380.c | done(cmd); |
cmd | 871 | drivers/scsi/NCR5380.c | cmd->host_scribble = NULL; |
cmd | 872 | drivers/scsi/NCR5380.c | cmd->scsi_done = done; |
cmd | 874 | drivers/scsi/NCR5380.c | cmd->result = 0; |
cmd | 885 | drivers/scsi/NCR5380.c | if (!(hostdata->issue_queue) || (cmd->cmnd[0] == REQUEST_SENSE)) { |
cmd | 886 | drivers/scsi/NCR5380.c | cmd->host_scribble = (unsigned char *) hostdata->issue_queue; |
cmd | 887 | drivers/scsi/NCR5380.c | hostdata->issue_queue = cmd; |
cmd | 891 | drivers/scsi/NCR5380.c | tmp->host_scribble = (unsigned char *) cmd; |
cmd | 895 | drivers/scsi/NCR5380.c | (cmd->cmnd[0] == REQUEST_SENSE) ? "head" : "tail"); |
cmd | 1165 | drivers/scsi/NCR5380.c | static int NCR5380_select (struct Scsi_Host *instance, Scsi_Cmnd *cmd, |
cmd | 1279 | drivers/scsi/NCR5380.c | NCR5380_write(OUTPUT_DATA_REG, (hostdata->id_mask | (1 << cmd->target))); |
cmd | 1318 | drivers/scsi/NCR5380.c | printk("scsi%d : selecting target %d\n", instance->host_no, cmd->target); |
cmd | 1351 | drivers/scsi/NCR5380.c | if (hostdata->targets_present & (1 << cmd->target)) { |
cmd | 1361 | drivers/scsi/NCR5380.c | cmd->result = DID_BAD_TARGET << 16; |
cmd | 1362 | drivers/scsi/NCR5380.c | cmd->scsi_done(cmd); |
cmd | 1372 | drivers/scsi/NCR5380.c | hostdata->targets_present |= (1 << cmd->target); |
cmd | 1394 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target); |
cmd | 1396 | drivers/scsi/NCR5380.c | tmp[0] = IDENTIFY(((instance->irq == IRQ_NONE) ? 0 : 1), cmd->lun); |
cmd | 1398 | drivers/scsi/NCR5380.c | if (cmd->device->tagged_queue && (tag != TAG_NONE)) { |
cmd | 1402 | drivers/scsi/NCR5380.c | if (cmd->device->current_tag == 0) |
cmd | 1403 | drivers/scsi/NCR5380.c | cmd->device->current_tag = 1; |
cmd | 1405 | drivers/scsi/NCR5380.c | cmd->tag = cmd->device->current_tag; |
cmd | 1406 | drivers/scsi/NCR5380.c | cmd->device->current_tag++; |
cmd | 1408 | drivers/scsi/NCR5380.c | cmd->tag = (unsigned char) tag; |
cmd | 1410 | drivers/scsi/NCR5380.c | tmp[2] = cmd->tag; |
cmd | 1417 | drivers/scsi/NCR5380.c | cmd->tag=0; |
cmd | 1428 | drivers/scsi/NCR5380.c | hostdata->connected = cmd; |
cmd | 1430 | drivers/scsi/NCR5380.c | if (!cmd->device->tagged_queue) |
cmd | 1432 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] |= (1 << cmd->lun); |
cmd | 1434 | drivers/scsi/NCR5380.c | initialize_SCp(cmd); |
cmd | 1922 | drivers/scsi/NCR5380.c | Scsi_Cmnd *cmd = (Scsi_Cmnd *) hostdata->connected; |
cmd | 1965 | drivers/scsi/NCR5380.c | if (!cmd->SCp.this_residual && cmd->SCp.buffers_residual) { |
cmd | 1966 | drivers/scsi/NCR5380.c | ++cmd->SCp.buffer; |
cmd | 1967 | drivers/scsi/NCR5380.c | --cmd->SCp.buffers_residual; |
cmd | 1968 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = cmd->SCp.buffer->length; |
cmd | 1969 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = cmd->SCp.buffer->address; |
cmd | 1972 | drivers/scsi/NCR5380.c | instance->host_no, cmd->SCp.this_residual, |
cmd | 1973 | drivers/scsi/NCR5380.c | cmd->SCp.buffers_residual); |
cmd | 1989 | drivers/scsi/NCR5380.c | if (!cmd->device->borken && |
cmd | 1990 | drivers/scsi/NCR5380.c | (transfersize = NCR5380_dma_xfer_len(instance, cmd)) != 0) { |
cmd | 1992 | drivers/scsi/NCR5380.c | transfersize = cmd->transfersize; |
cmd | 1999 | drivers/scsi/NCR5380.c | if (!cmd->device->borken && transfersize && |
cmd | 2000 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual && !(cmd->SCp.this_residual % |
cmd | 2005 | drivers/scsi/NCR5380.c | &len, (unsigned char **) &cmd->SCp.ptr)) { |
cmd | 2011 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
cmd | 2012 | drivers/scsi/NCR5380.c | cmd->device->borken = 1; |
cmd | 2019 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual -= transfersize - len; |
cmd | 2023 | drivers/scsi/NCR5380.c | (int *) &cmd->SCp.this_residual, (unsigned char **) |
cmd | 2024 | drivers/scsi/NCR5380.c | &cmd->SCp.ptr); |
cmd | 2030 | drivers/scsi/NCR5380.c | cmd->SCp.Message = tmp; |
cmd | 2051 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
cmd | 2059 | drivers/scsi/NCR5380.c | if (!cmd->next_link) { |
cmd | 2061 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
cmd | 2069 | drivers/scsi/NCR5380.c | initialize_SCp(cmd->next_link); |
cmd | 2071 | drivers/scsi/NCR5380.c | cmd->next_link->tag = cmd->tag; |
cmd | 2072 | drivers/scsi/NCR5380.c | cmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); |
cmd | 2075 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
cmd | 2077 | drivers/scsi/NCR5380.c | cmd->scsi_done(cmd); |
cmd | 2078 | drivers/scsi/NCR5380.c | cmd = hostdata->connected; |
cmd | 2088 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
cmd | 2090 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] &= ~(1 << cmd->lun); |
cmd | 2108 | drivers/scsi/NCR5380.c | if (cmd->cmnd[0] != REQUEST_SENSE) |
cmd | 2109 | drivers/scsi/NCR5380.c | cmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); |
cmd | 2110 | drivers/scsi/NCR5380.c | else if (cmd->SCp.Status != GOOD) |
cmd | 2111 | drivers/scsi/NCR5380.c | cmd->result = (cmd->result & 0x00ffff) | (DID_ERROR << 16); |
cmd | 2114 | drivers/scsi/NCR5380.c | if ((cmd->cmnd[0] != REQUEST_SENSE) && |
cmd | 2115 | drivers/scsi/NCR5380.c | (cmd->SCp.Status == CHECK_CONDITION)) { |
cmd | 2120 | drivers/scsi/NCR5380.c | cmd->cmnd[0] = REQUEST_SENSE; |
cmd | 2121 | drivers/scsi/NCR5380.c | cmd->cmnd[1] &= 0xe0; |
cmd | 2122 | drivers/scsi/NCR5380.c | cmd->cmnd[2] = 0; |
cmd | 2123 | drivers/scsi/NCR5380.c | cmd->cmnd[3] = 0; |
cmd | 2124 | drivers/scsi/NCR5380.c | cmd->cmnd[4] = sizeof(cmd->sense_buffer); |
cmd | 2125 | drivers/scsi/NCR5380.c | cmd->cmnd[5] = 0; |
cmd | 2127 | drivers/scsi/NCR5380.c | cmd->SCp.buffer = NULL; |
cmd | 2128 | drivers/scsi/NCR5380.c | cmd->SCp.buffers_residual = 0; |
cmd | 2129 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = (char *) cmd->sense_buffer; |
cmd | 2130 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = sizeof(cmd->sense_buffer); |
cmd | 2133 | drivers/scsi/NCR5380.c | cmd->host_scribble = (unsigned char *) |
cmd | 2135 | drivers/scsi/NCR5380.c | hostdata->issue_queue = (Scsi_Cmnd *) cmd; |
cmd | 2142 | drivers/scsi/NCR5380.c | cmd->scsi_done(cmd); |
cmd | 2161 | drivers/scsi/NCR5380.c | cmd->device->tagged_queue = 0; |
cmd | 2162 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] |= (1 << cmd->lun); |
cmd | 2170 | drivers/scsi/NCR5380.c | cmd->device->disconnect = 1; |
cmd | 2172 | drivers/scsi/NCR5380.c | cmd->host_scribble = (unsigned char *) |
cmd | 2175 | drivers/scsi/NCR5380.c | hostdata->disconnected_queue = cmd; |
cmd | 2180 | drivers/scsi/NCR5380.c | cmd->target, cmd->lun); |
cmd | 2286 | drivers/scsi/NCR5380.c | instance->host_no, tmp, cmd->target, cmd->lun); |
cmd | 2289 | drivers/scsi/NCR5380.c | instance->host_no, extended_msg[1], extended_msg[0], cmd->target, cmd->lun); |
cmd | 2303 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] &= ~(1 << cmd->lun); |
cmd | 2305 | drivers/scsi/NCR5380.c | cmd->result = DID_ERROR << 16; |
cmd | 2306 | drivers/scsi/NCR5380.c | cmd->scsi_done(cmd); |
cmd | 2313 | drivers/scsi/NCR5380.c | len = cmd->cmd_len; |
cmd | 2314 | drivers/scsi/NCR5380.c | data = cmd->cmnd; |
cmd | 2323 | drivers/scsi/NCR5380.c | if (!disconnect && should_disconnect(cmd->cmnd[0])) { |
cmd | 2338 | drivers/scsi/NCR5380.c | cmd->SCp.Status = tmp; |
cmd | 2573 | drivers/scsi/NCR5380.c | int NCR5380_abort (Scsi_Cmnd *cmd) { |
cmd | 2575 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance = cmd->host; |
cmd | 2583 | drivers/scsi/NCR5380.c | print_Scsi_Cmnd (cmd); |
cmd | 2603 | drivers/scsi/NCR5380.c | if (hostdata->connected == cmd) { |
cmd | 2637 | drivers/scsi/NCR5380.c | if (cmd == tmp) { |
cmd | 2696 | drivers/scsi/NCR5380.c | if (cmd == tmp) { |
cmd | 2702 | drivers/scsi/NCR5380.c | if (NCR5380_select (instance, cmd, (int) cmd->tag)) |
cmd | 2721 | drivers/scsi/NCR5380.c | if (cmd == tmp) { |
cmd | 2760 | drivers/scsi/NCR5380.c | int NCR5380_reset (Scsi_Cmnd *cmd) { |
cmd | 2762 | drivers/scsi/NCR5380.c | NCR5380_setup(cmd->host); |
cmd | 2764 | drivers/scsi/NCR5380.c | NCR5380_print_status (cmd->host); |
cmd | 281 | drivers/scsi/NCR5380.h | int NCR5380_abort (Scsi_Cmnd *cmd); |
cmd | 285 | drivers/scsi/NCR5380.h | int NCR5380_reset (Scsi_Cmnd *cmd); |
cmd | 289 | drivers/scsi/NCR5380.h | int NCR5380_queue_command (Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *)); |
cmd | 293 | drivers/scsi/NCR5380.h | static int NCR5380_select (struct Scsi_Host *instance, Scsi_Cmnd *cmd, int tag); |
cmd | 517 | drivers/scsi/aha1542.c | unchar *cmd = (unchar *) SCpnt->cmnd; |
cmd | 536 | drivers/scsi/aha1542.c | if(*cmd == REQUEST_SENSE){ |
cmd | 548 | drivers/scsi/aha1542.c | if (*cmd == READ_10 || *cmd == WRITE_10) |
cmd | 549 | drivers/scsi/aha1542.c | i = xscsi2int(cmd+2); |
cmd | 550 | drivers/scsi/aha1542.c | else if (*cmd == READ_6 || *cmd == WRITE_6) |
cmd | 551 | drivers/scsi/aha1542.c | i = scsi2int(cmd+2); |
cmd | 555 | drivers/scsi/aha1542.c | printk("aha1542_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
cmd | 557 | drivers/scsi/aha1542.c | printk("aha1542_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
cmd | 560 | drivers/scsi/aha1542.c | for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); |
cmd | 562 | drivers/scsi/aha1542.c | if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 600 | drivers/scsi/aha1542.c | if (*cmd == READ_10 || *cmd == READ_6) |
cmd | 602 | drivers/scsi/aha1542.c | else if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 605 | drivers/scsi/aha1542.c | memcpy(ccb[mbo].cdb, cmd, ccb[mbo].cdblen); |
cmd | 703 | drivers/scsi/aha1542.c | unchar cmd[5] = {CMD_MBINIT, AHA1542_MAILBOXES, 0, 0, 0}; |
cmd | 713 | drivers/scsi/aha1542.c | any2scsi((cmd+2), mb); |
cmd | 714 | drivers/scsi/aha1542.c | aha1542_out(bse, cmd, 5); |
cmd | 1042 | drivers/scsi/aha1542.c | static unchar cmd[] = { READ_CAPACITY, 0, 0, 0, 0, 0, 0, 0, 0, 0}; |
cmd | 1047 | drivers/scsi/aha1542.c | if (!aha1542_command(i, cmd, buf, sizeof(buf))) { |
cmd | 1057 | drivers/scsi/aha1542.c | unsigned char cmd[10]; |
cmd | 1060 | drivers/scsi/aha1542.c | cmd[0] = READ_10; |
cmd | 1061 | drivers/scsi/aha1542.c | cmd[1] = 0; |
cmd | 1062 | drivers/scsi/aha1542.c | xany2scsi(cmd+2, i); |
cmd | 1063 | drivers/scsi/aha1542.c | cmd[6] = 0; |
cmd | 1064 | drivers/scsi/aha1542.c | cmd[7] = 0; |
cmd | 1065 | drivers/scsi/aha1542.c | cmd[8] = 1; |
cmd | 1066 | drivers/scsi/aha1542.c | cmd[9] = 0; |
cmd | 1067 | drivers/scsi/aha1542.c | aha1542_command(0, cmd, buffer, 512); |
cmd | 255 | drivers/scsi/aha1740.c | unchar *cmd = (unchar *) SCpnt->cmnd; |
cmd | 264 | drivers/scsi/aha1740.c | if(*cmd == REQUEST_SENSE) |
cmd | 276 | drivers/scsi/aha1740.c | if (*cmd == READ_10 || *cmd == WRITE_10) |
cmd | 277 | drivers/scsi/aha1740.c | i = xscsi2int(cmd+2); |
cmd | 278 | drivers/scsi/aha1740.c | else if (*cmd == READ_6 || *cmd == WRITE_6) |
cmd | 279 | drivers/scsi/aha1740.c | i = scsi2int(cmd+2); |
cmd | 282 | drivers/scsi/aha1740.c | printk("aha1740_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
cmd | 284 | drivers/scsi/aha1740.c | for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); |
cmd | 317 | drivers/scsi/aha1740.c | if (*cmd == READ_10 || *cmd == READ_6) |
cmd | 319 | drivers/scsi/aha1740.c | else if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 322 | drivers/scsi/aha1740.c | memcpy(ecb[ecbno].cdb, cmd, ecb[ecbno].cdblen); |
cmd | 794 | drivers/scsi/aic7xxx.c | #define aic7xxx_error(cmd) ((cmd)->SCp.Status) |
cmd | 799 | drivers/scsi/aic7xxx.c | #define aic7xxx_status(cmd) ((cmd)->SCp.sent_command) |
cmd | 804 | drivers/scsi/aic7xxx.c | #define aic7xxx_position(cmd) ((cmd)->SCp.have_data_in) |
cmd | 907 | drivers/scsi/aic7xxx.c | Scsi_Cmnd *cmd; /* Scsi_Cmnd for this scb */ |
cmd | 1183 | drivers/scsi/aic7xxx.c | (unsigned long) scb->next, (unsigned long) scb->cmd, scb->state, |
cmd | 1503 | drivers/scsi/aic7xxx.c | aic7xxx_length(Scsi_Cmnd *cmd, int sg_last) |
cmd | 1509 | drivers/scsi/aic7xxx.c | segments = cmd->use_sg - sg_last; |
cmd | 1510 | drivers/scsi/aic7xxx.c | sg = (struct scatterlist *) cmd->buffer; |
cmd | 1512 | drivers/scsi/aic7xxx.c | if (cmd->use_sg) |
cmd | 1514 | drivers/scsi/aic7xxx.c | for (i = length = 0; (i < cmd->use_sg) && (i < segments); i++) |
cmd | 1521 | drivers/scsi/aic7xxx.c | length = cmd->request_bufflen; |
cmd | 1694 | drivers/scsi/aic7xxx.c | Scsi_Cmnd *cmd = scb->cmd; |
cmd | 1720 | drivers/scsi/aic7xxx.c | scb->cmd = NULL; |
cmd | 1724 | drivers/scsi/aic7xxx.c | cmd->scsi_done(cmd); |
cmd | 1864 | drivers/scsi/aic7xxx.c | scb->cmd->result = (DID_RESET << 16); |
cmd | 1910 | drivers/scsi/aic7xxx.c | scb->cmd->result = (DID_RESET << 16); |
cmd | 1974 | drivers/scsi/aic7xxx.c | scb->cmd->result = (DID_RESET << 16); |
cmd | 2121 | drivers/scsi/aic7xxx.c | Scsi_Cmnd *cmd; |
cmd | 2239 | drivers/scsi/aic7xxx.c | scb->cmd->device->tagged_supported = 0; |
cmd | 2240 | drivers/scsi/aic7xxx.c | scb->cmd->device->tagged_queue = 0; |
cmd | 2443 | drivers/scsi/aic7xxx.c | if ((scb->state != SCB_ACTIVE) || (scb->cmd == NULL)) |
cmd | 2447 | drivers/scsi/aic7xxx.c | intstat, scb_index, scb->state, (unsigned int) scb->cmd); |
cmd | 2451 | drivers/scsi/aic7xxx.c | cmd = scb->cmd; |
cmd | 2453 | drivers/scsi/aic7xxx.c | aic7xxx_status(cmd) = scb->target_status; |
cmd | 2455 | drivers/scsi/aic7xxx.c | cmd->result |= scb->target_status; |
cmd | 2464 | drivers/scsi/aic7xxx.c | if ((aic7xxx_error(cmd) == 0) && !(cmd->flags & WAS_SENSE)) |
cmd | 2474 | drivers/scsi/aic7xxx.c | cmd->flags |= WAS_SENSE; |
cmd | 2478 | drivers/scsi/aic7xxx.c | scb->sense_cmd[1] = (cmd->lun << 5); |
cmd | 2479 | drivers/scsi/aic7xxx.c | scb->sense_cmd[4] = sizeof(cmd->sense_buffer); |
cmd | 2481 | drivers/scsi/aic7xxx.c | scb->sense_sg.address = (char *) &cmd->sense_buffer; |
cmd | 2482 | drivers/scsi/aic7xxx.c | scb->sense_sg.length = sizeof(cmd->sense_buffer); |
cmd | 2484 | drivers/scsi/aic7xxx.c | cmd->cmd_len = COMMAND_SIZE(cmd->cmnd[0]); |
cmd | 2529 | drivers/scsi/aic7xxx.c | cmd->flags |= ASKED_FOR_SENSE; |
cmd | 2535 | drivers/scsi/aic7xxx.c | if (!aic7xxx_error(cmd)) |
cmd | 2537 | drivers/scsi/aic7xxx.c | aic7xxx_error(cmd) = DID_BUS_BUSY; |
cmd | 2543 | drivers/scsi/aic7xxx.c | if (!aic7xxx_error(cmd)) |
cmd | 2545 | drivers/scsi/aic7xxx.c | aic7xxx_error(cmd) = DID_RETRY_COMMAND; |
cmd | 2552 | drivers/scsi/aic7xxx.c | if (!aic7xxx_error(cmd)) |
cmd | 2554 | drivers/scsi/aic7xxx.c | aic7xxx_error(cmd) = DID_RETRY_COMMAND; |
cmd | 2564 | drivers/scsi/aic7xxx.c | if ((scb->state != SCB_ACTIVE) || (scb->cmd == NULL)) |
cmd | 2568 | drivers/scsi/aic7xxx.c | intstat, scb_index, scb->state, (unsigned int) scb->cmd); |
cmd | 2572 | drivers/scsi/aic7xxx.c | cmd = scb->cmd; |
cmd | 2577 | drivers/scsi/aic7xxx.c | if (!(cmd->flags & WAS_SENSE)) |
cmd | 2585 | drivers/scsi/aic7xxx.c | actual = aic7xxx_length(cmd, scb->residual_SG_segment_count); |
cmd | 2591 | drivers/scsi/aic7xxx.c | if (actual < cmd->underflow) |
cmd | 2595 | drivers/scsi/aic7xxx.c | cmd->target, cmd->underflow, actual, inb(SCBARRAY(base + 18))); |
cmd | 2596 | drivers/scsi/aic7xxx.c | aic7xxx_error(cmd) = DID_RETRY_COMMAND; |
cmd | 2597 | drivers/scsi/aic7xxx.c | aic7xxx_status(cmd) = scb->target_status; |
cmd | 2606 | drivers/scsi/aic7xxx.c | if ((scb->state != SCB_ACTIVE) || (scb->cmd == NULL)) |
cmd | 2610 | drivers/scsi/aic7xxx.c | intstat, scb_index, scb->state, (unsigned int) scb->cmd); |
cmd | 2614 | drivers/scsi/aic7xxx.c | cmd = scb->cmd; |
cmd | 2621 | drivers/scsi/aic7xxx.c | channel, scsi_id, cmd->lun & 0x07); |
cmd | 2623 | drivers/scsi/aic7xxx.c | cmd->result = (DID_RETRY_COMMAND << 16); |
cmd | 2631 | drivers/scsi/aic7xxx.c | if ((scb->state != SCB_ACTIVE) || (scb->cmd == NULL)) |
cmd | 2635 | drivers/scsi/aic7xxx.c | intstat, scb_index, scb->state, (unsigned int) scb->cmd); |
cmd | 2698 | drivers/scsi/aic7xxx.c | if ((scb->state != SCB_ACTIVE) || (scb->cmd == NULL)) |
cmd | 2714 | drivers/scsi/aic7xxx.c | cmd = scb->cmd; |
cmd | 2725 | drivers/scsi/aic7xxx.c | unsigned char target_mask = (1 << (cmd->target & 0x07)); |
cmd | 2733 | drivers/scsi/aic7xxx.c | cmd->result = (DID_TIME_OUT << 16); |
cmd | 2787 | drivers/scsi/aic7xxx.c | scb->position, scb->state, (unsigned int) scb->cmd); |
cmd | 2800 | drivers/scsi/aic7xxx.c | cmd->target, |
cmd | 2801 | drivers/scsi/aic7xxx.c | cmd->channel & 0x01, |
cmd | 2802 | drivers/scsi/aic7xxx.c | cmd->lun & 0x07); |
cmd | 2803 | drivers/scsi/aic7xxx.c | aic7xxx_error(cmd) = DID_PARITY; |
cmd | 2846 | drivers/scsi/aic7xxx.c | if ((scb->state != SCB_ACTIVE) || (scb->cmd == NULL)) |
cmd | 2852 | drivers/scsi/aic7xxx.c | scb->state, (unsigned int) scb->cmd, scb->position); |
cmd | 2856 | drivers/scsi/aic7xxx.c | cmd = scb->cmd; |
cmd | 2858 | drivers/scsi/aic7xxx.c | cmd->result = (aic7xxx_error(cmd) << 16) | aic7xxx_status(cmd); |
cmd | 2859 | drivers/scsi/aic7xxx.c | if ((cmd->flags & WAS_SENSE) && !(cmd->flags & ASKED_FOR_SENSE)) |
cmd | 2864 | drivers/scsi/aic7xxx.c | cmd->flags &= ASKED_FOR_SENSE; |
cmd | 2868 | drivers/scsi/aic7xxx.c | scb->state, (unsigned int) scb->cmd, (unsigned int) p->free_scb); |
cmd | 2888 | drivers/scsi/aic7xxx.c | scb->state, (unsigned int) scb->cmd, (unsigned int) p->free_scb); |
cmd | 2896 | drivers/scsi/aic7xxx.c | actual = aic7xxx_length(cmd, 0); |
cmd | 2897 | drivers/scsi/aic7xxx.c | if (((cmd->flags & WAS_SENSE) == 0) && (actual > 0)) |
cmd | 2903 | drivers/scsi/aic7xxx.c | sp = &p->stats[cmd->channel & 0x01][cmd->target & 0x0F][cmd->lun & 0x07]; |
cmd | 2906 | drivers/scsi/aic7xxx.c | if (cmd->request.cmd == WRITE) |
cmd | 3618 | drivers/scsi/aic7xxx.c | p->scb_array[i].cmd = NULL; |
cmd | 4095 | drivers/scsi/aic7xxx.c | Scsi_Cmnd *cmd, |
cmd | 4107 | drivers/scsi/aic7xxx.c | if (cmd->device->tagged_supported) |
cmd | 4109 | drivers/scsi/aic7xxx.c | if (cmd->device->tagged_queue == 0) |
cmd | 4112 | drivers/scsi/aic7xxx.c | "channel %d\n", cmd->target, cmd->channel); |
cmd | 4113 | drivers/scsi/aic7xxx.c | cmd->device->tagged_queue = 1; |
cmd | 4114 | drivers/scsi/aic7xxx.c | cmd->device->current_tag = 1; /* enable tagging */ |
cmd | 4116 | drivers/scsi/aic7xxx.c | cmd->tag = cmd->device->current_tag; |
cmd | 4117 | drivers/scsi/aic7xxx.c | cmd->device->current_tag++; |
cmd | 4121 | drivers/scsi/aic7xxx.c | mask = (0x01 << (cmd->target | (cmd->channel << 3))); |
cmd | 4131 | drivers/scsi/aic7xxx.c | printk("Sending WDTR request to target %d.\n", cmd->target); |
cmd | 4141 | drivers/scsi/aic7xxx.c | printk("Sending SDTR request to target %d.\n", cmd->target); |
cmd | 4148 | drivers/scsi/aic7xxx.c | cmd->target, cmd->cmnd[0], cmd->cmd_len, p->needwdtr, mask); |
cmd | 4150 | drivers/scsi/aic7xxx.c | scb->target_channel_lun = ((cmd->target << 4) & 0xF0) | |
cmd | 4151 | drivers/scsi/aic7xxx.c | ((cmd->channel & 0x01) << 3) | (cmd->lun & 0x07); |
cmd | 4164 | drivers/scsi/aic7xxx.c | addr = cmd->cmnd; |
cmd | 4165 | drivers/scsi/aic7xxx.c | scb->SCSI_cmd_length = cmd->cmd_len; |
cmd | 4168 | drivers/scsi/aic7xxx.c | if (cmd->use_sg) |
cmd | 4172 | drivers/scsi/aic7xxx.c | cmd->use_sg, length); |
cmd | 4174 | drivers/scsi/aic7xxx.c | scb->SG_segment_count = cmd->use_sg; |
cmd | 4175 | drivers/scsi/aic7xxx.c | memcpy(scb->SG_list_pointer, &cmd->request_buffer, |
cmd | 4177 | drivers/scsi/aic7xxx.c | memcpy(&sg, &cmd->request_buffer, sizeof(sg)); |
cmd | 4187 | drivers/scsi/aic7xxx.c | (unsigned long) cmd->request_buffer, cmd->request_bufflen); |
cmd | 4189 | drivers/scsi/aic7xxx.c | if (cmd->request_bufflen == 0) |
cmd | 4204 | drivers/scsi/aic7xxx.c | scb->sg.address = (char *) cmd->request_buffer; |
cmd | 4205 | drivers/scsi/aic7xxx.c | scb->sg.length = cmd->request_bufflen; |
cmd | 4211 | drivers/scsi/aic7xxx.c | memcpy(scb->data_pointer, &cmd->request_buffer, sizeof(scb->data_pointer)); |
cmd | 4224 | drivers/scsi/aic7xxx.c | aic7xxx_queue(Scsi_Cmnd *cmd, void (*fn)(Scsi_Cmnd *)) |
cmd | 4231 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) cmd->host->hostdata; |
cmd | 4236 | drivers/scsi/aic7xxx.c | if (!p->a_scanned && (cmd->channel == 0)) |
cmd | 4243 | drivers/scsi/aic7xxx.c | if (!p->b_scanned && (cmd->channel == 1)) |
cmd | 4252 | drivers/scsi/aic7xxx.c | cmd->cmnd[0], cmd->cmd_len, cmd->target, cmd->channel, |
cmd | 4253 | drivers/scsi/aic7xxx.c | cmd->lun & 0x07); |
cmd | 4322 | drivers/scsi/aic7xxx.c | scb->cmd = cmd; |
cmd | 4323 | drivers/scsi/aic7xxx.c | aic7xxx_position(cmd) = scb->position; |
cmd | 4332 | drivers/scsi/aic7xxx.c | aic7xxx_buildscb(p, cmd, scb); |
cmd | 4340 | drivers/scsi/aic7xxx.c | scb->position, (unsigned int) scb->cmd, |
cmd | 4365 | drivers/scsi/aic7xxx.c | cmd->scsi_done = fn; |
cmd | 4366 | drivers/scsi/aic7xxx.c | aic7xxx_error(cmd) = DID_OK; |
cmd | 4367 | drivers/scsi/aic7xxx.c | aic7xxx_status(cmd) = 0; |
cmd | 4369 | drivers/scsi/aic7xxx.c | cmd->result = 0; |
cmd | 4370 | drivers/scsi/aic7xxx.c | memset(&cmd->sense_buffer, 0, sizeof(cmd->sense_buffer)); |
cmd | 4375 | drivers/scsi/aic7xxx.c | (long) cmd, (long) scb->cmd, scb->position); |
cmd | 4521 | drivers/scsi/aic7xxx.c | aic7xxx_abort(Scsi_Cmnd *cmd) |
cmd | 4527 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) cmd->host->hostdata; |
cmd | 4528 | drivers/scsi/aic7xxx.c | scb = &(p->scb_array[aic7xxx_position(cmd)]); |
cmd | 4550 | drivers/scsi/aic7xxx.c | aic7xxx_reset(Scsi_Cmnd *cmd) |
cmd | 4552 | drivers/scsi/aic7xxx.c | return (aic7xxx_abort(cmd)); |
cmd | 579 | drivers/scsi/buslogic.c | unsigned char *cmd = (unsigned char *)scpnt->cmnd; |
cmd | 599 | drivers/scsi/buslogic.c | if (*cmd == REQUEST_SENSE) { |
cmd | 616 | drivers/scsi/buslogic.c | if (*cmd == READ_10 || *cmd == WRITE_10 |
cmd | 617 | drivers/scsi/buslogic.c | || *cmd == READ_6 || *cmd == WRITE_6) |
cmd | 618 | drivers/scsi/buslogic.c | i = *(int *)(cmd + 2); |
cmd | 622 | drivers/scsi/buslogic.c | target, *cmd, i, bufflen); |
cmd | 626 | drivers/scsi/buslogic.c | printk(" %02X", cmd[i]); |
cmd | 628 | drivers/scsi/buslogic.c | if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 683 | drivers/scsi/buslogic.c | if (*cmd == READ_10 || *cmd == READ_6) |
cmd | 685 | drivers/scsi/buslogic.c | else if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 688 | drivers/scsi/buslogic.c | memcpy(ccb->cdb, cmd, ccb->cdblen); |
cmd | 811 | drivers/scsi/buslogic.c | unsigned char cmd, count; |
cmd | 813 | drivers/scsi/buslogic.c | } cmd = { CMD_INITEXTMB, BUSLOGIC_MAILBOXES, mb }; |
cmd | 821 | drivers/scsi/buslogic.c | if (buslogic_out(base, (unsigned char *)&cmd, sizeof cmd)) |
cmd | 1286 | drivers/scsi/buslogic.c | unsigned char cmd[] |
cmd | 1296 | drivers/scsi/buslogic.c | if (!buslogic_command(i, cmd, buf, sizeof buf)) { |
cmd | 1307 | drivers/scsi/buslogic.c | cmd[0] = READ_10; |
cmd | 1308 | drivers/scsi/buslogic.c | cmd[1] = 0; |
cmd | 1309 | drivers/scsi/buslogic.c | xany2scsi(cmd + 2, i); |
cmd | 1310 | drivers/scsi/buslogic.c | cmd[6] = 0; |
cmd | 1311 | drivers/scsi/buslogic.c | cmd[7] = 0; |
cmd | 1312 | drivers/scsi/buslogic.c | cmd[8] = 1; |
cmd | 1313 | drivers/scsi/buslogic.c | cmd[9] = 0; |
cmd | 1314 | drivers/scsi/buslogic.c | buslogic_command(0, cmd, buffer, sizeof buffer); |
cmd | 562 | drivers/scsi/constants.c | void print_Scsi_Cmnd (Scsi_Cmnd *cmd) { |
cmd | 564 | drivers/scsi/constants.c | cmd->host->host_no, |
cmd | 565 | drivers/scsi/constants.c | cmd->target, |
cmd | 566 | drivers/scsi/constants.c | cmd->lun); |
cmd | 568 | drivers/scsi/constants.c | print_command (cmd->cmnd); |
cmd | 337 | drivers/scsi/eata.c | static inline unchar do_dma (ushort iobase, unsigned int addr, unchar cmd) { |
cmd | 348 | drivers/scsi/eata.c | outb(cmd, iobase + REG_CMD); |
cmd | 158 | drivers/scsi/eata_dma.c | Scsi_Cmnd *cmd; |
cmd | 186 | drivers/scsi/eata_dma.c | cmd = cp->cmd; |
cmd | 187 | drivers/scsi/eata_dma.c | base = (uint) cmd->host->base; |
cmd | 216 | drivers/scsi/eata_dma.c | irq, base, cmd->pid, cmd->target, cmd->lun, |
cmd | 222 | drivers/scsi/eata_dma.c | && cmd->device->type == TYPE_DISK |
cmd | 223 | drivers/scsi/eata_dma.c | && (HD(cmd)->t_state[cp->cp_channel][cp->cp_id] == RESET)) |
cmd | 226 | drivers/scsi/eata_dma.c | HD(cmd)->t_state[cp->cp_channel][cp->cp_id] = OK; |
cmd | 227 | drivers/scsi/eata_dma.c | if(HD(cmd)->do_latency == TRUE && cp->timestamp) { |
cmd | 231 | drivers/scsi/eata_dma.c | if(HD(cmd)->writes_lat[cp->sizeindex][1] > time) |
cmd | 232 | drivers/scsi/eata_dma.c | HD(cmd)->writes_lat[cp->sizeindex][1] = time; |
cmd | 233 | drivers/scsi/eata_dma.c | if(HD(cmd)->writes_lat[cp->sizeindex][2] < time) |
cmd | 234 | drivers/scsi/eata_dma.c | HD(cmd)->writes_lat[cp->sizeindex][2] = time; |
cmd | 235 | drivers/scsi/eata_dma.c | HD(cmd)->writes_lat[cp->sizeindex][3] += time; |
cmd | 236 | drivers/scsi/eata_dma.c | HD(cmd)->writes_lat[cp->sizeindex][0]++; |
cmd | 238 | drivers/scsi/eata_dma.c | if(HD(cmd)->reads_lat[cp->sizeindex][1] > time) |
cmd | 239 | drivers/scsi/eata_dma.c | HD(cmd)->reads_lat[cp->sizeindex][1] = time; |
cmd | 240 | drivers/scsi/eata_dma.c | if(HD(cmd)->reads_lat[cp->sizeindex][2] < time) |
cmd | 241 | drivers/scsi/eata_dma.c | HD(cmd)->reads_lat[cp->sizeindex][2] = time; |
cmd | 242 | drivers/scsi/eata_dma.c | HD(cmd)->reads_lat[cp->sizeindex][3] += time; |
cmd | 243 | drivers/scsi/eata_dma.c | HD(cmd)->reads_lat[cp->sizeindex][0]++; |
cmd | 248 | drivers/scsi/eata_dma.c | && cmd->device->type == TYPE_DISK |
cmd | 249 | drivers/scsi/eata_dma.c | && (cmd->sense_buffer[2] & 0xf) == RECOVERED_ERROR) |
cmd | 253 | drivers/scsi/eata_dma.c | HD(cmd)->t_timeout[cp->cp_channel][cp->cp_id] = OK; |
cmd | 259 | drivers/scsi/eata_dma.c | if (HD(cmd)->t_timeout[cp->cp_channel][cp->cp_id] > 1) |
cmd | 263 | drivers/scsi/eata_dma.c | HD(cmd)->t_timeout[cp->cp_channel][cp->cp_id]++; |
cmd | 268 | drivers/scsi/eata_dma.c | if (cmd->device->type != TYPE_TAPE) |
cmd | 274 | drivers/scsi/eata_dma.c | HD(cmd)->t_state[cp->cp_channel][i] = RESET; |
cmd | 288 | drivers/scsi/eata_dma.c | cmd->result = result | (scsi_stat << 1); |
cmd | 292 | drivers/scsi/eata_dma.c | || cmd->scsi_done == NULL || cmd->device->id == 7) |
cmd | 296 | drivers/scsi/eata_dma.c | x, cmd->device->channel, cmd->device->id, cmd->device->lun, |
cmd | 297 | drivers/scsi/eata_dma.c | cmd->pid, eata_stat, hba_stat, scsi_stat, |
cmd | 298 | drivers/scsi/eata_dma.c | cmd->sense_buffer[2] & 0xf, cmd->result); |
cmd | 303 | drivers/scsi/eata_dma.c | cmd->scsi_done(cmd); |
cmd | 347 | drivers/scsi/eata_dma.c | int eata_queue(Scsi_Cmnd * cmd, void (* done) (Scsi_Cmnd *)) |
cmd | 361 | drivers/scsi/eata_dma.c | hd = HD(cmd); |
cmd | 362 | drivers/scsi/eata_dma.c | sh = cmd->host; |
cmd | 405 | drivers/scsi/eata_dma.c | cmd->pid, cmd->target, cmd->lun, y)); |
cmd | 413 | drivers/scsi/eata_dma.c | if (cmd->cmnd[0] == WRITE_6 || cmd->cmnd[0] == WRITE_10 || |
cmd | 414 | drivers/scsi/eata_dma.c | cmd->cmnd[0] == WRITE_12 || cmd->cmnd[0] == READ_6 || |
cmd | 415 | drivers/scsi/eata_dma.c | cmd->cmnd[0] == READ_10 || cmd->cmnd[0] == READ_12) { |
cmd | 418 | drivers/scsi/eata_dma.c | switch(cmd->cmnd[0]) { |
cmd | 421 | drivers/scsi/eata_dma.c | x = cmd->cmnd[4]/2; |
cmd | 425 | drivers/scsi/eata_dma.c | sho = (short *) &cmd->cmnd[7]; |
cmd | 430 | drivers/scsi/eata_dma.c | lon = (long *) &cmd->cmnd[6]; |
cmd | 438 | drivers/scsi/eata_dma.c | if (cmd->cmnd[0] == WRITE_6 || cmd->cmnd[0] == WRITE_10 || |
cmd | 439 | drivers/scsi/eata_dma.c | cmd->cmnd[0] == WRITE_12){ |
cmd | 444 | drivers/scsi/eata_dma.c | cmd->scsi_done = (void *)done; |
cmd | 446 | drivers/scsi/eata_dma.c | switch (cmd->cmnd[0]) { |
cmd | 468 | drivers/scsi/eata_dma.c | if (cmd->target == sh->this_id) |
cmd | 471 | drivers/scsi/eata_dma.c | if (cmd->use_sg) { |
cmd | 481 | drivers/scsi/eata_dma.c | cp->cp_datalen = htonl(cmd->use_sg * sizeof(struct eata_sg_list)); |
cmd | 482 | drivers/scsi/eata_dma.c | sl=(struct scatterlist *)cmd->request_buffer; |
cmd | 483 | drivers/scsi/eata_dma.c | for(i = 0; i < cmd->use_sg; i++, sl++){ |
cmd | 489 | drivers/scsi/eata_dma.c | cp->cp_datalen = htonl(cmd->request_bufflen); |
cmd | 490 | drivers/scsi/eata_dma.c | cp->cp_dataDMA = htonl(virt_to_bus(cmd->request_buffer)); |
cmd | 494 | drivers/scsi/eata_dma.c | cp->cp_reqDMA = htonl(virt_to_bus(cmd->sense_buffer)); |
cmd | 495 | drivers/scsi/eata_dma.c | cp->reqlen = sizeof(cmd->sense_buffer); |
cmd | 497 | drivers/scsi/eata_dma.c | cp->cp_id = cmd->target; |
cmd | 498 | drivers/scsi/eata_dma.c | cp->cp_channel = cmd->channel; |
cmd | 499 | drivers/scsi/eata_dma.c | cp->cp_lun = cmd->lun; |
cmd | 502 | drivers/scsi/eata_dma.c | memcpy(cp->cp_cdb, cmd->cmnd, cmd->cmd_len); |
cmd | 508 | drivers/scsi/eata_dma.c | cp->cmd = cmd; |
cmd | 509 | drivers/scsi/eata_dma.c | cmd->host_scribble = (char *)&hd->ccb[y]; |
cmd | 512 | drivers/scsi/eata_dma.c | cmd->result = DID_BUS_BUSY << 16; |
cmd | 515 | drivers/scsi/eata_dma.c | "returning DID_BUS_BUSY\n",cmd->target, cmd->pid)); |
cmd | 516 | drivers/scsi/eata_dma.c | done(cmd); |
cmd | 522 | drivers/scsi/eata_dma.c | "slot %d irq %d\n", (s32)sh->base, cmd->pid, |
cmd | 523 | drivers/scsi/eata_dma.c | cmd->target, cmd->lun, y, sh->irq)); |
cmd | 530 | drivers/scsi/eata_dma.c | int eata_abort(Scsi_Cmnd * cmd) |
cmd | 539 | drivers/scsi/eata_dma.c | " reason %x\n", cmd->pid, cmd->target, cmd->lun, |
cmd | 540 | drivers/scsi/eata_dma.c | cmd->abort_reason)); |
cmd | 544 | drivers/scsi/eata_dma.c | while (inb((u32)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY) |
cmd | 551 | drivers/scsi/eata_dma.c | if (CD(cmd)->status == USED) { |
cmd | 556 | drivers/scsi/eata_dma.c | if (CD(cmd)->status == FREE) { |
cmd | 561 | drivers/scsi/eata_dma.c | if (CD(cmd)->status == RESET) { |
cmd | 567 | drivers/scsi/eata_dma.c | if (CD(cmd)->status == LOCKED) { |
cmd | 577 | drivers/scsi/eata_dma.c | int eata_reset(Scsi_Cmnd * cmd) |
cmd | 590 | drivers/scsi/eata_dma.c | " reason %x\n", cmd->pid, cmd->target, cmd->lun, |
cmd | 591 | drivers/scsi/eata_dma.c | cmd->abort_reason)); |
cmd | 593 | drivers/scsi/eata_dma.c | if (HD(cmd)->state == RESET) { |
cmd | 600 | drivers/scsi/eata_dma.c | while (inb((u32)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY) |
cmd | 610 | drivers/scsi/eata_dma.c | HD(cmd)->t_state[x][z] = RESET; |
cmd | 611 | drivers/scsi/eata_dma.c | HD(cmd)->t_timeout[x][z] = NO_TIMEOUT; |
cmd | 615 | drivers/scsi/eata_dma.c | for (x = 0; x < cmd->host->can_queue; x++) { |
cmd | 616 | drivers/scsi/eata_dma.c | if (HD(cmd)->ccb[x].status == FREE) |
cmd | 619 | drivers/scsi/eata_dma.c | if (HD(cmd)->ccb[x].status == LOCKED) { |
cmd | 620 | drivers/scsi/eata_dma.c | HD(cmd)->ccb[x].status = FREE; |
cmd | 625 | drivers/scsi/eata_dma.c | sp = HD(cmd)->ccb[x].cmd; |
cmd | 626 | drivers/scsi/eata_dma.c | HD(cmd)->ccb[x].status = RESET; |
cmd | 634 | drivers/scsi/eata_dma.c | if (sp == cmd) |
cmd | 639 | drivers/scsi/eata_dma.c | inb((u32) (cmd->host->base) + HA_RSTATUS); /* This might cause trouble */ |
cmd | 640 | drivers/scsi/eata_dma.c | eata_send_command(0, (u32) cmd->host->base, EATA_CMD_RESET); |
cmd | 643 | drivers/scsi/eata_dma.c | HD(cmd)->state = RESET; |
cmd | 658 | drivers/scsi/eata_dma.c | for (x = 0; x < cmd->host->can_queue; x++) { |
cmd | 661 | drivers/scsi/eata_dma.c | if (HD(cmd)->ccb[x].status != RESET) |
cmd | 664 | drivers/scsi/eata_dma.c | sp = HD(cmd)->ccb[x].cmd; |
cmd | 668 | drivers/scsi/eata_dma.c | HD(cmd)->ccb[x].status = LOCKED; |
cmd | 678 | drivers/scsi/eata_dma.c | HD(cmd)->state = FALSE; |
cmd | 92 | drivers/scsi/eata_generic.h | #define HD(cmd) ((hostdata *)&(cmd->host->hostdata)) |
cmd | 93 | drivers/scsi/eata_generic.h | #define CD(cmd) ((struct eata_ccb *)(cmd->host_scribble)) |
cmd | 315 | drivers/scsi/eata_generic.h | Scsi_Cmnd *cmd; /* address of cmd */ |
cmd | 130 | drivers/scsi/eata_pio.c | Scsi_Cmnd *cmd; |
cmd | 154 | drivers/scsi/eata_pio.c | cmd = cp->cmd; |
cmd | 155 | drivers/scsi/eata_pio.c | base = (uint) cmd->host->base; |
cmd | 164 | drivers/scsi/eata_pio.c | while ((cmd->SCp.Status)&&((z>0)||(odd))) |
cmd | 168 | drivers/scsi/eata_pio.c | *(cmd->SCp.ptr)=zwickel>>8; |
cmd | 169 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,1); |
cmd | 172 | drivers/scsi/eata_pio.c | x=min(z,cmd->SCp.this_residual/2); |
cmd | 173 | drivers/scsi/eata_pio.c | insw(base+HA_RDATA,cmd->SCp.ptr,x); |
cmd | 175 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,2*x); |
cmd | 176 | drivers/scsi/eata_pio.c | if ((z>0)&&(cmd->SCp.this_residual==1)) |
cmd | 179 | drivers/scsi/eata_pio.c | *(cmd->SCp.ptr)=zwickel&0xff; |
cmd | 180 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,1); z--; |
cmd | 192 | drivers/scsi/eata_pio.c | while ((cmd->SCp.Status)&&((z>0)||(odd))) |
cmd | 196 | drivers/scsi/eata_pio.c | zwickel+=*(cmd->SCp.ptr)<<8; |
cmd | 197 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,1); |
cmd | 202 | drivers/scsi/eata_pio.c | x=min(z,cmd->SCp.this_residual/2); |
cmd | 203 | drivers/scsi/eata_pio.c | outsw(base+HA_RDATA,cmd->SCp.ptr,x); |
cmd | 205 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,2*x); |
cmd | 206 | drivers/scsi/eata_pio.c | if ((z>0)&&(cmd->SCp.this_residual==1)) |
cmd | 208 | drivers/scsi/eata_pio.c | zwickel=*(cmd->SCp.ptr); |
cmd | 210 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,1); |
cmd | 233 | drivers/scsi/eata_pio.c | cmd->result=(DID_OK<<16); |
cmd | 237 | drivers/scsi/eata_pio.c | cmd->result=(DID_OK<<16)+0x02; |
cmd | 238 | drivers/scsi/eata_pio.c | else cmd->result=(DID_NO_CONNECT<<16); |
cmd | 251 | drivers/scsi/eata_pio.c | printk("stat: %#.2x, result: %#.8x\n", stat, cmd->result); |
cmd | 258 | drivers/scsi/eata_pio.c | cmd->scsi_done(cmd); |
cmd | 279 | drivers/scsi/eata_pio.c | int eata_pio_queue(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *)) |
cmd | 294 | drivers/scsi/eata_pio.c | hd = HD(cmd); |
cmd | 295 | drivers/scsi/eata_pio.c | sh = cmd->host; |
cmd | 316 | drivers/scsi/eata_pio.c | memset(cmd->sense_buffer, 0, sizeof(cmd->sense_buffer)); |
cmd | 321 | drivers/scsi/eata_pio.c | cmd->pid, cmd->target, cmd->lun, y)); |
cmd | 324 | drivers/scsi/eata_pio.c | cmd->scsi_done = (void *)done; |
cmd | 326 | drivers/scsi/eata_pio.c | switch (cmd->cmnd[0]) { |
cmd | 345 | drivers/scsi/eata_pio.c | cp->Interpret = (cmd->target == hd->hostid); |
cmd | 346 | drivers/scsi/eata_pio.c | cp->cp_datalen = htonl((ulong)cmd->request_bufflen); |
cmd | 351 | drivers/scsi/eata_pio.c | cp->cp_id = cmd->target; |
cmd | 352 | drivers/scsi/eata_pio.c | cp->cp_lun = cmd->lun; |
cmd | 355 | drivers/scsi/eata_pio.c | memcpy(cp->cp_cdb, cmd->cmnd, COMMAND_SIZE(*cmd->cmnd)); |
cmd | 360 | drivers/scsi/eata_pio.c | cp->cmd = cmd; |
cmd | 361 | drivers/scsi/eata_pio.c | cmd->host_scribble = (char *)&hd->ccb[y]; |
cmd | 363 | drivers/scsi/eata_pio.c | if (cmd->use_sg == 0) |
cmd | 365 | drivers/scsi/eata_pio.c | cmd->SCp.buffers_residual=1; |
cmd | 366 | drivers/scsi/eata_pio.c | cmd->SCp.ptr = cmd->request_buffer; |
cmd | 367 | drivers/scsi/eata_pio.c | cmd->SCp.this_residual = cmd->request_bufflen; |
cmd | 368 | drivers/scsi/eata_pio.c | cmd->SCp.buffer = NULL; |
cmd | 370 | drivers/scsi/eata_pio.c | cmd->SCp.buffer = cmd->request_buffer; |
cmd | 371 | drivers/scsi/eata_pio.c | cmd->SCp.buffers_residual = cmd->use_sg; |
cmd | 372 | drivers/scsi/eata_pio.c | cmd->SCp.ptr = cmd->SCp.buffer->address; |
cmd | 373 | drivers/scsi/eata_pio.c | cmd->SCp.this_residual = cmd->SCp.buffer->length; |
cmd | 375 | drivers/scsi/eata_pio.c | cmd->SCp.Status = (cmd->SCp.this_residual != 0); /* TRUE as long as bytes |
cmd | 380 | drivers/scsi/eata_pio.c | cmd->result = DID_BUS_BUSY << 16; |
cmd | 382 | drivers/scsi/eata_pio.c | "DID_BUS_BUSY, done.\n", cmd->target, cmd->pid); |
cmd | 383 | drivers/scsi/eata_pio.c | done(cmd); |
cmd | 394 | drivers/scsi/eata_pio.c | "slot %d irq %d\n", (long)sh->base, cmd->pid, |
cmd | 395 | drivers/scsi/eata_pio.c | cmd->target, cmd->lun, y, sh->irq)); |
cmd | 402 | drivers/scsi/eata_pio.c | int eata_pio_abort(Scsi_Cmnd * cmd) |
cmd | 411 | drivers/scsi/eata_pio.c | " reason %x\n", cmd->pid, cmd->target, cmd->lun, |
cmd | 412 | drivers/scsi/eata_pio.c | cmd->abort_reason)); |
cmd | 416 | drivers/scsi/eata_pio.c | while (inb((uint)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY) |
cmd | 423 | drivers/scsi/eata_pio.c | if (CD(cmd)->status == FREE) { |
cmd | 428 | drivers/scsi/eata_pio.c | if (CD(cmd)->status == USED) { |
cmd | 433 | drivers/scsi/eata_pio.c | if (CD(cmd)->status == RESET) { |
cmd | 439 | drivers/scsi/eata_pio.c | if (CD(cmd)->status == LOCKED) { |
cmd | 449 | drivers/scsi/eata_pio.c | int eata_pio_reset(Scsi_Cmnd * cmd) |
cmd | 460 | drivers/scsi/eata_pio.c | "reason %x\n", cmd->pid, cmd->target, cmd->lun, |
cmd | 461 | drivers/scsi/eata_pio.c | cmd->abort_reason)); |
cmd | 463 | drivers/scsi/eata_pio.c | if (HD(cmd)->state == RESET) { |
cmd | 471 | drivers/scsi/eata_pio.c | HD(cmd)->t_state[0][z] = RESET; |
cmd | 472 | drivers/scsi/eata_pio.c | HD(cmd)->t_timeout[0][z] = NO_TIMEOUT; |
cmd | 477 | drivers/scsi/eata_pio.c | for (x = 0; x < cmd->host->can_queue; x++) { |
cmd | 479 | drivers/scsi/eata_pio.c | if (HD(cmd)->ccb[x].status == FREE) |
cmd | 482 | drivers/scsi/eata_pio.c | sp = HD(cmd)->ccb[x].cmd; |
cmd | 483 | drivers/scsi/eata_pio.c | HD(cmd)->ccb[x].status = RESET; |
cmd | 493 | drivers/scsi/eata_pio.c | outb((uint) cmd->host->base+HA_WCOMMAND, EATA_CMD_RESET); |
cmd | 496 | drivers/scsi/eata_pio.c | HD(cmd)->state = RESET; |
cmd | 504 | drivers/scsi/eata_pio.c | for (x = 0; x < cmd->host->can_queue; x++) { |
cmd | 507 | drivers/scsi/eata_pio.c | if (HD(cmd)->ccb[x].status != RESET) |
cmd | 510 | drivers/scsi/eata_pio.c | sp = HD(cmd)->ccb[x].cmd; |
cmd | 515 | drivers/scsi/eata_pio.c | HD(cmd)->ccb[x].status = FREE; |
cmd | 522 | drivers/scsi/eata_pio.c | HD(cmd)->state = FALSE; |
cmd | 421 | drivers/scsi/in2000.c | unchar *cmd = (unchar *) SCpnt->cmnd; |
cmd | 436 | drivers/scsi/in2000.c | if ( *cmd == TEST_UNIT_READY ) |
cmd | 442 | drivers/scsi/in2000.c | if (*cmd == READ_10 || *cmd == WRITE_10) { |
cmd | 443 | drivers/scsi/in2000.c | i = xscsi2int((cmd+1)); |
cmd | 444 | drivers/scsi/in2000.c | } else if (*cmd == READ_6 || *cmd == WRITE_6) { |
cmd | 445 | drivers/scsi/in2000.c | i = scsi2int((cmd+1)); |
cmd | 452 | drivers/scsi/in2000.c | for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); |
cmd | 456 | drivers/scsi/in2000.c | if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 520 | drivers/scsi/in2000.c | outb(cmd[loop],INDATA); |
cmd | 295 | drivers/scsi/qlogic.c | static void ql_icmd(Scsi_Cmnd * cmd) |
cmd | 329 | drivers/scsi/qlogic.c | outb(cmd->target, qbase + 4); |
cmd | 331 | drivers/scsi/qlogic.c | for (i = 0; i < cmd->cmd_len; i++) |
cmd | 332 | drivers/scsi/qlogic.c | outb(cmd->cmnd[i], qbase + 2); |
cmd | 333 | drivers/scsi/qlogic.c | qlcmd = cmd; |
cmd | 339 | drivers/scsi/qlogic.c | static unsigned int ql_pcmd(Scsi_Cmnd * cmd) |
cmd | 376 | drivers/scsi/qlogic.c | reqlen = cmd->request_bufflen; |
cmd | 386 | drivers/scsi/qlogic.c | if (!cmd->use_sg) |
cmd | 387 | drivers/scsi/qlogic.c | ql_pdma(phase, cmd->request_buffer, cmd->request_bufflen); |
cmd | 389 | drivers/scsi/qlogic.c | sgcount = cmd->use_sg; |
cmd | 390 | drivers/scsi/qlogic.c | sglist = cmd->request_buffer; |
cmd | 474 | drivers/scsi/qlogic.c | static void qlidone(Scsi_Cmnd * cmd) {}; /* null function */ |
cmd | 478 | drivers/scsi/qlogic.c | int qlogic_command(Scsi_Cmnd * cmd) |
cmd | 483 | drivers/scsi/qlogic.c | qlogic_queuecommand(cmd, qlidone); |
cmd | 485 | drivers/scsi/qlogic.c | return cmd->result; |
cmd | 489 | drivers/scsi/qlogic.c | if (cmd->target == qinitid) |
cmd | 491 | drivers/scsi/qlogic.c | ql_icmd(cmd); |
cmd | 494 | drivers/scsi/qlogic.c | return ql_pcmd(cmd); |
cmd | 501 | drivers/scsi/qlogic.c | int qlogic_queuecommand(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *)) |
cmd | 503 | drivers/scsi/qlogic.c | if(cmd->target == qinitid) { |
cmd | 504 | drivers/scsi/qlogic.c | cmd->result = DID_BAD_TARGET << 16; |
cmd | 505 | drivers/scsi/qlogic.c | done(cmd); |
cmd | 509 | drivers/scsi/qlogic.c | cmd->scsi_done = done; |
cmd | 513 | drivers/scsi/qlogic.c | ql_icmd(cmd); |
cmd | 517 | drivers/scsi/qlogic.c | int qlogic_queuecommand(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *)) |
cmd | 650 | drivers/scsi/qlogic.c | int qlogic_abort(Scsi_Cmnd * cmd) |
cmd | 659 | drivers/scsi/qlogic.c | int qlogic_reset(Scsi_Cmnd * cmd) |
cmd | 3052 | drivers/scsi/scsi.c | req->cmd, |
cmd | 103 | drivers/scsi/scsi_debug.c | if (SCpnt->request.cmd != RW) panic ("Wrong operation"); \ |
cmd | 178 | drivers/scsi/scsi_debug.c | unchar *cmd = (unchar *) SCpnt->cmnd; |
cmd | 212 | drivers/scsi/scsi_debug.c | switch(*cmd){ |
cmd | 230 | drivers/scsi/scsi_debug.c | if(cmd[4]) printk("Medium removal inhibited..."); |
cmd | 268 | drivers/scsi/scsi_debug.c | if ((*cmd) == READ_10) |
cmd | 269 | drivers/scsi/scsi_debug.c | block = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); |
cmd | 271 | drivers/scsi/scsi_debug.c | block = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16); |
cmd | 349 | drivers/scsi/scsi_debug.c | memcpy(buff+sizeof(target), cmd, 24); |
cmd | 381 | drivers/scsi/scsi_debug.c | if ((*cmd) == WRITE_10) |
cmd | 382 | drivers/scsi/scsi_debug.c | block = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); |
cmd | 384 | drivers/scsi/scsi_debug.c | block = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16); |
cmd | 403 | drivers/scsi/scsi_debug.c | printk("Unknown command %d\n",*cmd); |
cmd | 104 | drivers/scsi/scsi_ioctl.c | static int ioctl_internal_command(Scsi_Device *dev, char * cmd) |
cmd | 113 | drivers/scsi/scsi_ioctl.c | scsi_do_cmd(SCpnt, cmd, NULL, 0, |
cmd | 122 | drivers/scsi/scsi_ioctl.c | if(cmd[0] == ALLOW_MEDIUM_REMOVAL) dev->lockable = 0; |
cmd | 164 | drivers/scsi/scsi_ioctl.c | char cmd[12]; |
cmd | 224 | drivers/scsi/scsi_ioctl.c | memcpy_fromfs ((void *) cmd, cmd_in, cmdlen); |
cmd | 236 | drivers/scsi/scsi_ioctl.c | cmd[1] = ( cmd[1] & 0x1f ) | (dev->lun << 5); |
cmd | 245 | drivers/scsi/scsi_ioctl.c | scsi_do_cmd(SCpnt, cmd, buf, needed, scsi_ioctl_done, MAX_TIMEOUT, |
cmd | 282 | drivers/scsi/scsi_ioctl.c | printk("%02x ", cmd[i]); |
cmd | 300 | drivers/scsi/scsi_ioctl.c | int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) |
cmd | 308 | drivers/scsi/scsi_ioctl.c | switch (cmd) { |
cmd | 370 | drivers/scsi/scsi_ioctl.c | int kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) { |
cmd | 375 | drivers/scsi/scsi_ioctl.c | tmp = scsi_ioctl (dev, cmd, arg); |
cmd | 16 | drivers/scsi/scsi_ioctl.h | extern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
cmd | 17 | drivers/scsi/scsi_ioctl.h | extern int kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
cmd | 249 | drivers/scsi/sd.c | if (SCpnt->request.cmd == READ) |
cmd | 264 | drivers/scsi/sd.c | if (SCpnt->request.cmd == READ) |
cmd | 509 | drivers/scsi/sd.c | unsigned char cmd[10]; |
cmd | 576 | drivers/scsi/sd.c | switch (SCpnt->request.cmd) |
cmd | 584 | drivers/scsi/sd.c | cmd[0] = WRITE_6; |
cmd | 587 | drivers/scsi/sd.c | cmd[0] = READ_6; |
cmd | 590 | drivers/scsi/sd.c | panic ("Unknown sd command %d\n", SCpnt->request.cmd); |
cmd | 808 | drivers/scsi/sd.c | if (SCpnt->request.cmd == WRITE) |
cmd | 830 | drivers/scsi/sd.c | if (SCpnt->request.cmd == WRITE) |
cmd | 837 | drivers/scsi/sd.c | (SCpnt->request.cmd == WRITE) ? "writing" : "reading", |
cmd | 841 | drivers/scsi/sd.c | cmd[1] = (SCpnt->lun << 5) & 0xe0; |
cmd | 860 | drivers/scsi/sd.c | cmd[0] += READ_10 - READ_6 ; |
cmd | 861 | drivers/scsi/sd.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
cmd | 862 | drivers/scsi/sd.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
cmd | 863 | drivers/scsi/sd.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
cmd | 864 | drivers/scsi/sd.c | cmd[5] = (unsigned char) block & 0xff; |
cmd | 865 | drivers/scsi/sd.c | cmd[6] = cmd[9] = 0; |
cmd | 866 | drivers/scsi/sd.c | cmd[7] = (unsigned char) (this_count >> 8) & 0xff; |
cmd | 867 | drivers/scsi/sd.c | cmd[8] = (unsigned char) this_count & 0xff; |
cmd | 874 | drivers/scsi/sd.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
cmd | 875 | drivers/scsi/sd.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
cmd | 876 | drivers/scsi/sd.c | cmd[3] = (unsigned char) block & 0xff; |
cmd | 877 | drivers/scsi/sd.c | cmd[4] = (unsigned char) this_count; |
cmd | 878 | drivers/scsi/sd.c | cmd[5] = 0; |
cmd | 889 | drivers/scsi/sd.c | scsi_do_cmd (SCpnt, (void *) cmd, buff, |
cmd | 954 | drivers/scsi/sd.c | unsigned char cmd[10]; |
cmd | 976 | drivers/scsi/sd.c | cmd[0] = TEST_UNIT_READY; |
cmd | 977 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
cmd | 978 | drivers/scsi/sd.c | memset ((void *) &cmd[2], 0, 8); |
cmd | 989 | drivers/scsi/sd.c | (void *) cmd, (void *) buffer, |
cmd | 1009 | drivers/scsi/sd.c | cmd[0] = START_STOP; |
cmd | 1010 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
cmd | 1011 | drivers/scsi/sd.c | cmd[1] |= 1; /* Return immediately */ |
cmd | 1012 | drivers/scsi/sd.c | memset ((void *) &cmd[2], 0, 8); |
cmd | 1013 | drivers/scsi/sd.c | cmd[4] = 1; /* Start spin cycle */ |
cmd | 1024 | drivers/scsi/sd.c | (void *) cmd, (void *) buffer, |
cmd | 1049 | drivers/scsi/sd.c | cmd[0] = READ_CAPACITY; |
cmd | 1050 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
cmd | 1051 | drivers/scsi/sd.c | memset ((void *) &cmd[2], 0, 8); |
cmd | 1063 | drivers/scsi/sd.c | (void *) cmd, (void *) buffer, |
cmd | 1188 | drivers/scsi/sd.c | memset ((void *) &cmd[0], 0, 8); |
cmd | 1189 | drivers/scsi/sd.c | cmd[0] = MODE_SENSE; |
cmd | 1190 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
cmd | 1191 | drivers/scsi/sd.c | cmd[2] = 1; /* page code 1 ?? */ |
cmd | 1192 | drivers/scsi/sd.c | cmd[4] = 12; |
cmd | 1203 | drivers/scsi/sd.c | (void *) cmd, (void *) buffer, |
cmd | 22 | drivers/scsi/sd_ioctl.c | int sd_ioctl(struct inode * inode, struct file * file, unsigned int cmd, unsigned long arg) |
cmd | 30 | drivers/scsi/sd_ioctl.c | switch (cmd) { |
cmd | 73 | drivers/scsi/sd_ioctl.c | return scsi_ioctl(rscsi_disks[MINOR(dev) >> 4].device , cmd, (void *) arg); |
cmd | 1611 | drivers/scsi/seagate.c | unsigned char buf[256 + sizeof(int) * 2], cmd[6], *data, *page; |
cmd | 1626 | drivers/scsi/seagate.c | cmd[0] = MODE_SENSE; |
cmd | 1627 | drivers/scsi/seagate.c | cmd[1] = (disk->device->lun << 5) & 0xe5; |
cmd | 1628 | drivers/scsi/seagate.c | cmd[2] = 0x04; /* Read page 4, rigid disk geometry page current values */ |
cmd | 1629 | drivers/scsi/seagate.c | cmd[3] = 0; |
cmd | 1630 | drivers/scsi/seagate.c | cmd[4] = 255; |
cmd | 1631 | drivers/scsi/seagate.c | cmd[5] = 0; |
cmd | 1641 | drivers/scsi/seagate.c | memcpy (data, cmd, 6); |
cmd | 1653 | drivers/scsi/seagate.c | cmd[2] = 0x03; /* Read page 3, format page current values */ |
cmd | 1654 | drivers/scsi/seagate.c | memcpy (data, cmd, 6); |
cmd | 321 | drivers/scsi/sr.c | unsigned char *cmd; /* the scsi-command */ |
cmd | 350 | drivers/scsi/sr.c | cmd = rec = &buf[8]; |
cmd | 361 | drivers/scsi/sr.c | cmd[0] = 0xde; |
cmd | 362 | drivers/scsi/sr.c | cmd[1] = 0x03; |
cmd | 363 | drivers/scsi/sr.c | cmd[2] = 0xb0; |
cmd | 397 | drivers/scsi/sr.c | cmd[0] = 0xc7; |
cmd | 398 | drivers/scsi/sr.c | cmd[1] = 3; |
cmd | 433 | drivers/scsi/sr.c | cmd[0] = 0x1a; |
cmd | 434 | drivers/scsi/sr.c | cmd[2] = 1; |
cmd | 435 | drivers/scsi/sr.c | cmd[4] = 12; |
cmd | 454 | drivers/scsi/sr.c | cmd[0] = 0x15; |
cmd | 455 | drivers/scsi/sr.c | cmd[1] = (1 << 4); |
cmd | 456 | drivers/scsi/sr.c | cmd[4] = 12; |
cmd | 457 | drivers/scsi/sr.c | send = &cmd[6]; /* this is a 6-Byte command */ |
cmd | 479 | drivers/scsi/sr.c | cmd[0] = 0x43; /* Read TOC */ |
cmd | 480 | drivers/scsi/sr.c | cmd[8] = 0x0c; |
cmd | 481 | drivers/scsi/sr.c | cmd[9] = 0x40; |
cmd | 643 | drivers/scsi/sr.c | unsigned char cmd[10], *buffer, tries; |
cmd | 684 | drivers/scsi/sr.c | switch (SCpnt->request.cmd) |
cmd | 691 | drivers/scsi/sr.c | cmd[0] = READ_6; |
cmd | 694 | drivers/scsi/sr.c | panic ("Unknown sr command %d\n", SCpnt->request.cmd); |
cmd | 697 | drivers/scsi/sr.c | cmd[1] = (SCpnt->lun << 5) & 0xe0; |
cmd | 872 | drivers/scsi/sr.c | cmd[0] += READ_10 - READ_6 ; |
cmd | 873 | drivers/scsi/sr.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
cmd | 874 | drivers/scsi/sr.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
cmd | 875 | drivers/scsi/sr.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
cmd | 876 | drivers/scsi/sr.c | cmd[5] = (unsigned char) block & 0xff; |
cmd | 877 | drivers/scsi/sr.c | cmd[6] = cmd[9] = 0; |
cmd | 878 | drivers/scsi/sr.c | cmd[7] = (unsigned char) (realcount >> 8) & 0xff; |
cmd | 879 | drivers/scsi/sr.c | cmd[8] = (unsigned char) realcount & 0xff; |
cmd | 889 | drivers/scsi/sr.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
cmd | 890 | drivers/scsi/sr.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
cmd | 891 | drivers/scsi/sr.c | cmd[3] = (unsigned char) block & 0xff; |
cmd | 892 | drivers/scsi/sr.c | cmd[4] = (unsigned char) realcount; |
cmd | 893 | drivers/scsi/sr.c | cmd[5] = 0; |
cmd | 902 | drivers/scsi/sr.c | for(i=0; i<12; i++) printk("%2.2x ", cmd[i]); |
cmd | 921 | drivers/scsi/sr.c | scsi_do_cmd (SCpnt, (void *) cmd, buffer, |
cmd | 976 | drivers/scsi/sr.c | unsigned char cmd[10]; |
cmd | 986 | drivers/scsi/sr.c | cmd[0] = READ_CAPACITY; |
cmd | 987 | drivers/scsi/sr.c | cmd[1] = (scsi_CDs[i].device->lun << 5) & 0xe0; |
cmd | 988 | drivers/scsi/sr.c | memset ((void *) &cmd[2], 0, 8); |
cmd | 999 | drivers/scsi/sr.c | (void *) cmd, (void *) buffer, |
cmd | 87 | drivers/scsi/sr_ioctl.c | int sr_ioctl(struct inode * inode, struct file * file, unsigned int cmd, unsigned long arg) |
cmd | 99 | drivers/scsi/sr_ioctl.c | switch (cmd) |
cmd | 468 | drivers/scsi/sr_ioctl.c | return scsi_ioctl(scsi_CDs[target].device,cmd,(void *) arg); |
cmd | 222 | drivers/scsi/st.c | st_do_scsi(Scsi_Cmnd *SCpnt, Scsi_Tape *STp, unsigned char *cmd, int bytes, |
cmd | 231 | drivers/scsi/st.c | cmd[1] |= (SCpnt->lun << 5) & 0xe0; |
cmd | 237 | drivers/scsi/st.c | scsi_do_cmd(SCpnt, (void *)cmd, (STp->buffer)->b_data, bytes, |
cmd | 288 | drivers/scsi/st.c | unsigned char cmd[10]; |
cmd | 290 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 291 | drivers/scsi/st.c | cmd[1] = 0x01; /* Space FileMarks */ |
cmd | 292 | drivers/scsi/st.c | cmd[2] = cmd[3] = cmd[4] = 0xff; /* -1 filemarks */ |
cmd | 293 | drivers/scsi/st.c | cmd[5] = 0; |
cmd | 295 | drivers/scsi/st.c | SCpnt = st_do_scsi(NULL, STp, cmd, 0, ST_TIMEOUT, MAX_RETRIES); |
cmd | 317 | drivers/scsi/st.c | unsigned char cmd[10]; |
cmd | 349 | drivers/scsi/st.c | memset(cmd, 0, 10); |
cmd | 350 | drivers/scsi/st.c | cmd[0] = WRITE_6; |
cmd | 351 | drivers/scsi/st.c | cmd[1] = 1; |
cmd | 353 | drivers/scsi/st.c | cmd[2] = blks >> 16; |
cmd | 354 | drivers/scsi/st.c | cmd[3] = blks >> 8; |
cmd | 355 | drivers/scsi/st.c | cmd[4] = blks; |
cmd | 357 | drivers/scsi/st.c | SCpnt = st_do_scsi(NULL, STp, cmd, transfer, ST_TIMEOUT, MAX_WRITE_RETRIES); |
cmd | 444 | drivers/scsi/st.c | unsigned char cmd[10]; |
cmd | 488 | drivers/scsi/st.c | memset ((void *) &cmd[0], 0, 10); |
cmd | 489 | drivers/scsi/st.c | cmd[0] = TEST_UNIT_READY; |
cmd | 491 | drivers/scsi/st.c | SCpnt = st_do_scsi(NULL, STp, cmd, 0, ST_LONG_TIMEOUT, MAX_READY_RETRIES); |
cmd | 498 | drivers/scsi/st.c | memset ((void *) &cmd[0], 0, 10); |
cmd | 499 | drivers/scsi/st.c | cmd[0] = TEST_UNIT_READY; |
cmd | 501 | drivers/scsi/st.c | SCpnt = st_do_scsi(SCpnt, STp, cmd, 0, ST_LONG_TIMEOUT, MAX_READY_RETRIES); |
cmd | 531 | drivers/scsi/st.c | memset ((void *) &cmd[0], 0, 10); |
cmd | 532 | drivers/scsi/st.c | cmd[0] = READ_BLOCK_LIMITS; |
cmd | 534 | drivers/scsi/st.c | SCpnt = st_do_scsi(SCpnt, STp, cmd, 6, ST_TIMEOUT, MAX_READY_RETRIES); |
cmd | 555 | drivers/scsi/st.c | memset ((void *) &cmd[0], 0, 10); |
cmd | 556 | drivers/scsi/st.c | cmd[0] = MODE_SENSE; |
cmd | 557 | drivers/scsi/st.c | cmd[4] = 12; |
cmd | 559 | drivers/scsi/st.c | SCpnt = st_do_scsi(SCpnt, STp, cmd, 12, ST_TIMEOUT, MAX_READY_RETRIES); |
cmd | 646 | drivers/scsi/st.c | static unsigned char cmd[10]; |
cmd | 671 | drivers/scsi/st.c | memset(cmd, 0, 10); |
cmd | 672 | drivers/scsi/st.c | cmd[0] = WRITE_FILEMARKS; |
cmd | 673 | drivers/scsi/st.c | cmd[4] = 1 + STp->two_fm; |
cmd | 675 | drivers/scsi/st.c | SCpnt = st_do_scsi(NULL, STp, cmd, 0, ST_TIMEOUT, MAX_WRITE_RETRIES); |
cmd | 694 | drivers/scsi/st.c | printk("st%d: Buffer flushed, %d EOF(s) written\n", dev, cmd[4]); |
cmd | 733 | drivers/scsi/st.c | static unsigned char cmd[10]; |
cmd | 814 | drivers/scsi/st.c | memset(cmd, 0, 10); |
cmd | 815 | drivers/scsi/st.c | cmd[0] = WRITE_6; |
cmd | 816 | drivers/scsi/st.c | cmd[1] = (STp->block_size != 0); |
cmd | 844 | drivers/scsi/st.c | cmd[2] = blks >> 16; |
cmd | 845 | drivers/scsi/st.c | cmd[3] = blks >> 8; |
cmd | 846 | drivers/scsi/st.c | cmd[4] = blks; |
cmd | 848 | drivers/scsi/st.c | SCpnt = st_do_scsi(SCpnt, STp, cmd, transfer, ST_TIMEOUT, MAX_WRITE_RETRIES); |
cmd | 957 | drivers/scsi/st.c | cmd[2] = blks >> 16; |
cmd | 958 | drivers/scsi/st.c | cmd[3] = blks >> 8; |
cmd | 959 | drivers/scsi/st.c | cmd[4] = blks; |
cmd | 969 | drivers/scsi/st.c | (void *) cmd, (STp->buffer)->b_data, |
cmd | 987 | drivers/scsi/st.c | static unsigned char cmd[10]; |
cmd | 1040 | drivers/scsi/st.c | memset(cmd, 0, 10); |
cmd | 1041 | drivers/scsi/st.c | cmd[0] = READ_6; |
cmd | 1042 | drivers/scsi/st.c | cmd[1] = (STp->block_size != 0); |
cmd | 1058 | drivers/scsi/st.c | cmd[2] = blks >> 16; |
cmd | 1059 | drivers/scsi/st.c | cmd[3] = blks >> 8; |
cmd | 1060 | drivers/scsi/st.c | cmd[4] = blks; |
cmd | 1062 | drivers/scsi/st.c | SCpnt = st_do_scsi(SCpnt, STp, cmd, bytes, ST_TIMEOUT, MAX_RETRIES); |
cmd | 1275 | drivers/scsi/st.c | unsigned char cmd[10]; |
cmd | 1288 | drivers/scsi/st.c | memset(cmd, 0, 10); |
cmd | 1293 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1294 | drivers/scsi/st.c | cmd[1] = 0x01; /* Space FileMarks */ |
cmd | 1295 | drivers/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 1296 | drivers/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 1297 | drivers/scsi/st.c | cmd[4] = arg; |
cmd | 1301 | drivers/scsi/st.c | cmd[2] * 65536 + cmd[3] * 256 + cmd[4]); |
cmd | 1310 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1311 | drivers/scsi/st.c | cmd[1] = 0x01; /* Space FileMarks */ |
cmd | 1313 | drivers/scsi/st.c | cmd[2] = (ltmp >> 16); |
cmd | 1314 | drivers/scsi/st.c | cmd[3] = (ltmp >> 8); |
cmd | 1315 | drivers/scsi/st.c | cmd[4] = ltmp; |
cmd | 1318 | drivers/scsi/st.c | if (cmd[2] & 0x80) |
cmd | 1320 | drivers/scsi/st.c | ltmp = ltmp | (cmd[2] << 16) | (cmd[3] << 8) | cmd[4]; |
cmd | 1330 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1331 | drivers/scsi/st.c | cmd[1] = 0x00; /* Space Blocks */ |
cmd | 1332 | drivers/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 1333 | drivers/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 1334 | drivers/scsi/st.c | cmd[4] = arg; |
cmd | 1338 | drivers/scsi/st.c | cmd[2] * 65536 + cmd[3] * 256 + cmd[4]); |
cmd | 1345 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1346 | drivers/scsi/st.c | cmd[1] = 0x00; /* Space Blocks */ |
cmd | 1348 | drivers/scsi/st.c | cmd[2] = (ltmp >> 16); |
cmd | 1349 | drivers/scsi/st.c | cmd[3] = (ltmp >> 8); |
cmd | 1350 | drivers/scsi/st.c | cmd[4] = ltmp; |
cmd | 1353 | drivers/scsi/st.c | if (cmd[2] & 0x80) |
cmd | 1355 | drivers/scsi/st.c | ltmp = ltmp | (cmd[2] << 16) | (cmd[3] << 8) | cmd[4]; |
cmd | 1364 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1365 | drivers/scsi/st.c | cmd[1] = 0x04; /* Space Setmarks */ |
cmd | 1366 | drivers/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 1367 | drivers/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 1368 | drivers/scsi/st.c | cmd[4] = arg; |
cmd | 1372 | drivers/scsi/st.c | cmd[2] * 65536 + cmd[3] * 256 + cmd[4]); |
cmd | 1380 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1381 | drivers/scsi/st.c | cmd[1] = 0x04; /* Space Setmarks */ |
cmd | 1383 | drivers/scsi/st.c | cmd[2] = (ltmp >> 16); |
cmd | 1384 | drivers/scsi/st.c | cmd[3] = (ltmp >> 8); |
cmd | 1385 | drivers/scsi/st.c | cmd[4] = ltmp; |
cmd | 1388 | drivers/scsi/st.c | if (cmd[2] & 0x80) |
cmd | 1390 | drivers/scsi/st.c | ltmp = ltmp | (cmd[2] << 16) | (cmd[3] << 8) | cmd[4]; |
cmd | 1403 | drivers/scsi/st.c | cmd[0] = WRITE_FILEMARKS; |
cmd | 1405 | drivers/scsi/st.c | cmd[1] = 2; |
cmd | 1406 | drivers/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 1407 | drivers/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 1408 | drivers/scsi/st.c | cmd[4] = arg; |
cmd | 1414 | drivers/scsi/st.c | cmd[2] * 65536 + cmd[3] * 256 + cmd[4]); |
cmd | 1417 | drivers/scsi/st.c | cmd[2] * 65536 + cmd[3] * 256 + cmd[4]); |
cmd | 1426 | drivers/scsi/st.c | cmd[0] = REZERO_UNIT; |
cmd | 1428 | drivers/scsi/st.c | cmd[1] = 1; /* Don't wait for completion */ |
cmd | 1438 | drivers/scsi/st.c | cmd[0] = START_STOP; |
cmd | 1440 | drivers/scsi/st.c | cmd[1] = 1; /* Don't wait for completion */ |
cmd | 1457 | drivers/scsi/st.c | cmd[0] = START_STOP; |
cmd | 1459 | drivers/scsi/st.c | cmd[1] = 1; /* Don't wait for completion */ |
cmd | 1462 | drivers/scsi/st.c | cmd[4] = 3; |
cmd | 1483 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1484 | drivers/scsi/st.c | cmd[1] = 3; |
cmd | 1495 | drivers/scsi/st.c | cmd[0] = ERASE; |
cmd | 1496 | drivers/scsi/st.c | cmd[1] = 1; /* To the end of tape */ |
cmd | 1498 | drivers/scsi/st.c | cmd[1] |= 2; /* Don't wait for completion */ |
cmd | 1510 | drivers/scsi/st.c | cmd[0] = ALLOW_MEDIUM_REMOVAL; |
cmd | 1511 | drivers/scsi/st.c | cmd[4] = SCSI_REMOVAL_PREVENT; |
cmd | 1518 | drivers/scsi/st.c | cmd[0] = ALLOW_MEDIUM_REMOVAL; |
cmd | 1519 | drivers/scsi/st.c | cmd[4] = SCSI_REMOVAL_ALLOW; |
cmd | 1527 | drivers/scsi/st.c | cmd[0] = START_STOP; |
cmd | 1529 | drivers/scsi/st.c | cmd[4] |= 1; |
cmd | 1531 | drivers/scsi/st.c | cmd[1] |= 2; /* Don't wait for completion */ |
cmd | 1539 | drivers/scsi/st.c | cmd[0] = QFA_SEEK_BLOCK; |
cmd | 1540 | drivers/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 1541 | drivers/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 1542 | drivers/scsi/st.c | cmd[4] = arg; |
cmd | 1543 | drivers/scsi/st.c | cmd[5] = 0; |
cmd | 1546 | drivers/scsi/st.c | cmd[0] = SEEK_10; |
cmd | 1547 | drivers/scsi/st.c | cmd[1] = 4; |
cmd | 1548 | drivers/scsi/st.c | cmd[3] = (arg >> 24); |
cmd | 1549 | drivers/scsi/st.c | cmd[4] = (arg >> 16); |
cmd | 1550 | drivers/scsi/st.c | cmd[5] = (arg >> 8); |
cmd | 1551 | drivers/scsi/st.c | cmd[6] = arg; |
cmd | 1554 | drivers/scsi/st.c | cmd[1] |= 1; /* Don't wait for completion */ |
cmd | 1576 | drivers/scsi/st.c | cmd[0] = MODE_SELECT; |
cmd | 1577 | drivers/scsi/st.c | cmd[4] = datalen = 12; |
cmd | 1619 | drivers/scsi/st.c | SCpnt = st_do_scsi(NULL, STp, cmd, datalen, timeout, MAX_RETRIES); |
cmd | 578 | drivers/scsi/wd7000.c | static inline int command_out(Adapter *host, unchar *cmd, int len) |
cmd | 583 | drivers/scsi/wd7000.c | outb(*cmd, host->iobase+ASC_COMMAND); |
cmd | 586 | drivers/scsi/wd7000.c | cmd++; |
cmd | 118 | drivers/sound/ad1848.c | static int ad1848_ioctl (int dev, unsigned int cmd, ioctl_arg arg, int local); |
cmd | 454 | drivers/sound/ad1848.c | ad1848_mixer_ioctl (int dev, unsigned int cmd, ioctl_arg arg) |
cmd | 467 | drivers/sound/ad1848.c | if (((cmd >> 8) & 0xff) == 'M') |
cmd | 469 | drivers/sound/ad1848.c | if (cmd & IOC_IN) |
cmd | 470 | drivers/sound/ad1848.c | switch (cmd & 0xff) |
cmd | 477 | drivers/sound/ad1848.c | return snd_ioctl_return ((int *) arg, ad1848_mixer_set (devc, cmd & 0xff, get_fs_long ((long *) arg))); |
cmd | 480 | drivers/sound/ad1848.c | switch (cmd & 0xff) /* |
cmd | 506 | drivers/sound/ad1848.c | return snd_ioctl_return ((int *) arg, ad1848_mixer_get (devc, cmd & 0xff)); |
cmd | 772 | drivers/sound/ad1848.c | ad1848_ioctl (int dev, unsigned int cmd, ioctl_arg arg, int local) |
cmd | 776 | drivers/sound/ad1848.c | switch (cmd) |
cmd | 414 | drivers/sound/aedsp16.c | WriteDSPCommand (int port, int cmd) |
cmd | 427 | drivers/sound/aedsp16.c | outb (cmd, port + DSP_COMMAND); |
cmd | 433 | drivers/sound/aedsp16.c | printk ("[aedsp16] DSP Command (0x%x) timeout.\n", cmd); |
cmd | 359 | drivers/sound/audio.c | unsigned int cmd, ioctl_arg arg) |
cmd | 364 | drivers/sound/audio.c | if (((cmd >> 8) & 0xff) == 'C') |
cmd | 367 | drivers/sound/audio.c | return audio_devs[dev]->coproc->ioctl (audio_devs[dev]->coproc->devc, cmd, arg, 0); |
cmd | 374 | drivers/sound/audio.c | switch (cmd) |
cmd | 383 | drivers/sound/audio.c | return DMAbuf_ioctl (dev, cmd, arg, 0); |
cmd | 399 | drivers/sound/audio.c | return DMAbuf_ioctl (dev, cmd, arg, 0); |
cmd | 416 | drivers/sound/audio.c | int err = DMAbuf_ioctl (dev, cmd, (ioctl_arg) & info, 1); |
cmd | 432 | drivers/sound/audio.c | int err = DMAbuf_ioctl (dev, cmd, (ioctl_arg) & info, 1); |
cmd | 471 | drivers/sound/audio.c | return DMAbuf_ioctl (dev, cmd, arg, 0); |
cmd | 1724 | drivers/sound/configure.c | char cmd[200]; |
cmd | 1726 | drivers/sound/configure.c | sprintf (cmd, "cp local.h %s", oldconf); |
cmd | 1729 | drivers/sound/configure.c | if (system (cmd) != 0) |
cmd | 1730 | drivers/sound/configure.c | perror (cmd); |
cmd | 133 | drivers/sound/dev_table.h | int (*ioctl) (void *devc, unsigned int cmd, ioctl_arg arg, int local); |
cmd | 154 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, ioctl_arg arg, int local); |
cmd | 177 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, ioctl_arg arg); |
cmd | 188 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, ioctl_arg arg); |
cmd | 232 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, ioctl_arg arg); |
cmd | 258 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, ioctl_arg arg); |
cmd | 672 | drivers/sound/dmabuf.c | DMAbuf_ioctl (int dev, unsigned int cmd, ioctl_arg arg, int local) |
cmd | 677 | drivers/sound/dmabuf.c | switch (cmd) |
cmd | 739 | drivers/sound/dmabuf.c | if (cmd == SNDCTL_DSP_GETISPACE && audio_devs[dev]->flags & DMA_DUPLEX) |
cmd | 748 | drivers/sound/dmabuf.c | if (cmd == SNDCTL_DSP_GETISPACE) |
cmd | 778 | drivers/sound/dmabuf.c | if (cmd == SNDCTL_DSP_GETISPACE && dmap->qlen) |
cmd | 860 | drivers/sound/dmabuf.c | return audio_devs[dev]->ioctl (dev, cmd, arg, local); |
cmd | 1470 | drivers/sound/dmabuf.c | DMAbuf_ioctl (int dev, unsigned int cmd, ioctl_arg arg, int local) |
cmd | 199 | drivers/sound/gus_midi.c | gus_midi_ioctl (int dev, unsigned cmd, ioctl_arg arg) |
cmd | 892 | drivers/sound/gus_wave.c | unsigned int cmd, ioctl_arg arg) |
cmd | 895 | drivers/sound/gus_wave.c | switch (cmd) |
cmd | 1776 | drivers/sound/gus_wave.c | int voice, cmd; |
cmd | 1780 | drivers/sound/gus_wave.c | cmd = event[2]; |
cmd | 1787 | drivers/sound/gus_wave.c | (cmd != _GUS_VOICESAMPLE) && (cmd != _GUS_VOICE_POS)) |
cmd | 1790 | drivers/sound/gus_wave.c | switch (cmd) |
cmd | 1988 | drivers/sound/gus_wave.c | gus_sampling_ioctl (int dev, unsigned int cmd, ioctl_arg arg, int local) |
cmd | 1990 | drivers/sound/gus_wave.c | switch (cmd) |
cmd | 2826 | drivers/sound/gus_wave.c | gus_default_mixer_ioctl (int dev, unsigned int cmd, ioctl_arg arg) |
cmd | 2830 | drivers/sound/gus_wave.c | if (((cmd >> 8) & 0xff) == 'M') |
cmd | 2832 | drivers/sound/gus_wave.c | if (cmd & IOC_IN) |
cmd | 2833 | drivers/sound/gus_wave.c | switch (cmd & 0xff) |
cmd | 2904 | drivers/sound/gus_wave.c | switch (cmd & 0xff) /* |
cmd | 133 | drivers/sound/ics2101.c | ics2101_mixer_ioctl (int dev, unsigned int cmd, ioctl_arg arg) |
cmd | 135 | drivers/sound/ics2101.c | if (((cmd >> 8) & 0xff) == 'M') |
cmd | 137 | drivers/sound/ics2101.c | if (cmd & IOC_IN) |
cmd | 138 | drivers/sound/ics2101.c | switch (cmd & 0xff) |
cmd | 141 | drivers/sound/ics2101.c | return gus_default_mixer_ioctl (dev, cmd, arg); |
cmd | 168 | drivers/sound/ics2101.c | switch (cmd & 0xff) /* |
cmd | 174 | drivers/sound/ics2101.c | return gus_default_mixer_ioctl (dev, cmd, arg); |
cmd | 294 | drivers/sound/mad16_sb_midi.c | mad16_sb_midi_ioctl (int dev, unsigned cmd, ioctl_arg arg) |
cmd | 51 | drivers/sound/midi_synth.c | #define STORE(cmd) |
cmd | 53 | drivers/sound/midi_synth.c | #define STORE(cmd) \ |
cmd | 57 | drivers/sound/midi_synth.c | cmd; \ |
cmd | 282 | drivers/sound/midi_synth.c | unsigned int cmd, ioctl_arg arg) |
cmd | 288 | drivers/sound/midi_synth.c | switch (cmd) |
cmd | 2 | drivers/sound/midi_synth.h | unsigned int cmd, ioctl_arg arg); |
cmd | 469 | drivers/sound/midibuf.c | unsigned int cmd, ioctl_arg arg) |
cmd | 475 | drivers/sound/midibuf.c | if (((cmd >> 8) & 0xff) == 'C') |
cmd | 478 | drivers/sound/midibuf.c | return midi_devs[dev]->coproc->ioctl (midi_devs[dev]->coproc->devc, cmd, arg, 0); |
cmd | 485 | drivers/sound/midibuf.c | switch (cmd) |
cmd | 499 | drivers/sound/midibuf.c | return midi_devs[dev]->ioctl (dev, cmd, arg); |
cmd | 97 | drivers/sound/mpu401.c | #define write_command(devc, cmd) outb( cmd, COMDPORT(devc->base)) |
cmd | 157 | drivers/sound/mpu401.c | #define STORE(cmd) |
cmd | 159 | drivers/sound/mpu401.c | #define STORE(cmd) \ |
cmd | 163 | drivers/sound/mpu401.c | cmd; \ |
cmd | 600 | drivers/sound/mpu401.c | mpu401_command (int dev, mpu_command_rec * cmd) |
cmd | 632 | drivers/sound/mpu401.c | printk ("MPU-401: Command (0x%x) timeout\n", (int) cmd->cmd); |
cmd | 645 | drivers/sound/mpu401.c | write_command (devc, cmd->cmd); |
cmd | 667 | drivers/sound/mpu401.c | if (cmd->nr_args) |
cmd | 668 | drivers/sound/mpu401.c | for (i = 0; i < cmd->nr_args; i++) |
cmd | 672 | drivers/sound/mpu401.c | if (!mpu401_out (dev, cmd->data[i])) |
cmd | 675 | drivers/sound/mpu401.c | printk ("MPU: Command (0x%x), parm send failed.\n", (int) cmd->cmd); |
cmd | 681 | drivers/sound/mpu401.c | cmd->data[0] = 0; |
cmd | 683 | drivers/sound/mpu401.c | if (cmd->nr_returns) |
cmd | 684 | drivers/sound/mpu401.c | for (i = 0; i < cmd->nr_returns; i++) |
cmd | 690 | drivers/sound/mpu401.c | cmd->data[i] = read_data (devc); |
cmd | 708 | drivers/sound/mpu401.c | mpu_cmd (int dev, int cmd, int data) |
cmd | 714 | drivers/sound/mpu401.c | rec.cmd = cmd & 0xff; |
cmd | 715 | drivers/sound/mpu401.c | rec.nr_args = ((cmd & 0xf0) == 0xE0); |
cmd | 716 | drivers/sound/mpu401.c | rec.nr_returns = ((cmd & 0xf0) == 0xA0); |
cmd | 774 | drivers/sound/mpu401.c | mpu401_ioctl (int dev, unsigned cmd, ioctl_arg arg) |
cmd | 780 | drivers/sound/mpu401.c | switch (cmd) |
cmd | 832 | drivers/sound/mpu401.c | unsigned int cmd, ioctl_arg arg) |
cmd | 844 | drivers/sound/mpu401.c | switch (cmd) |
cmd | 124 | drivers/sound/opl3.c | unsigned int cmd, ioctl_arg arg) |
cmd | 126 | drivers/sound/opl3.c | switch (cmd) |
cmd | 220 | drivers/sound/pas2_midi.c | pas_midi_ioctl (int dev, unsigned cmd, ioctl_arg arg) |
cmd | 261 | drivers/sound/pas2_mixer.c | pas_mixer_ioctl (int dev, unsigned int cmd, ioctl_arg arg) |
cmd | 263 | drivers/sound/pas2_mixer.c | TRACE (printk ("pas2_mixer.c: int pas_mixer_ioctl(unsigned int cmd = %X, unsigned int arg = %X)\n", cmd, arg)); |
cmd | 265 | drivers/sound/pas2_mixer.c | if (((cmd >> 8) & 0xff) == 'M') |
cmd | 267 | drivers/sound/pas2_mixer.c | if (cmd & IOC_IN) |
cmd | 268 | drivers/sound/pas2_mixer.c | return snd_ioctl_return ((int *) arg, pas_mixer_set (cmd & 0xff, get_fs_long ((long *) arg))); |
cmd | 274 | drivers/sound/pas2_mixer.c | switch (cmd & 0xff) |
cmd | 314 | drivers/sound/pas2_mixer.c | return snd_ioctl_return ((int *) arg, levels[cmd & 0xff]); |
cmd | 157 | drivers/sound/pas2_pcm.c | pas_pcm_ioctl (int dev, unsigned int cmd, ioctl_arg arg, int local) |
cmd | 159 | drivers/sound/pas2_pcm.c | TRACE (printk ("pas2_pcm.c: static int pas_pcm_ioctl(unsigned int cmd = %X, unsigned int arg = %X)\n", cmd, arg)); |
cmd | 161 | drivers/sound/pas2_pcm.c | switch (cmd) |
cmd | 497 | drivers/sound/pss.c | pss_coproc_ioctl (void *dev_info, unsigned int cmd, ioctl_arg arg, int local) |
cmd | 501 | drivers/sound/pss.c | switch (cmd) |
cmd | 64 | drivers/sound/sb16_dsp.c | static int sb16_dsp_ioctl (int dev, unsigned int cmd, ioctl_arg arg, int local); |
cmd | 154 | drivers/sound/sb16_dsp.c | sb16_dsp_ioctl (int dev, unsigned int cmd, ioctl_arg arg, int local) |
cmd | 156 | drivers/sound/sb16_dsp.c | switch (cmd) |
cmd | 47 | drivers/sound/sb16_midi.c | #define sb16midi_cmd(cmd) outb( cmd, COMDPORT) |
cmd | 160 | drivers/sound/sb16_midi.c | sb16midi_ioctl (int dev, unsigned cmd, ioctl_arg arg) |
cmd | 734 | drivers/sound/sb_dsp.c | sb_dsp_ioctl (int dev, unsigned int cmd, ioctl_arg arg, int local) |
cmd | 736 | drivers/sound/sb_dsp.c | switch (cmd) |
cmd | 195 | drivers/sound/sb_midi.c | sb_midi_ioctl (int dev, unsigned cmd, ioctl_arg arg) |
cmd | 448 | drivers/sound/sb_mixer.c | sb_mixer_ioctl (int dev, unsigned int cmd, ioctl_arg arg) |
cmd | 450 | drivers/sound/sb_mixer.c | if (((cmd >> 8) & 0xff) == 'M') |
cmd | 452 | drivers/sound/sb_mixer.c | if (cmd & IOC_IN) |
cmd | 453 | drivers/sound/sb_mixer.c | switch (cmd & 0xff) |
cmd | 461 | drivers/sound/sb_mixer.c | return snd_ioctl_return ((int *) arg, sb_mixer_set (cmd & 0xff, get_fs_long ((long *) arg))); |
cmd | 464 | drivers/sound/sb_mixer.c | switch (cmd & 0xff) /* |
cmd | 493 | drivers/sound/sb_mixer.c | return snd_ioctl_return ((int *) arg, sb_mixer_get (cmd & 0xff)); |
cmd | 534 | drivers/sound/sequencer.c | unsigned char cmd = event[2]; |
cmd | 552 | drivers/sound/sequencer.c | if (cmd == MIDI_NOTEON && parm == 0) |
cmd | 554 | drivers/sound/sequencer.c | cmd = MIDI_NOTEOFF; |
cmd | 559 | drivers/sound/sequencer.c | switch (cmd) |
cmd | 616 | drivers/sound/sequencer.c | unsigned char cmd = event[2]; |
cmd | 630 | drivers/sound/sequencer.c | switch (cmd) |
cmd | 713 | drivers/sound/sequencer.c | unsigned char cmd = event[1]; |
cmd | 741 | drivers/sound/sequencer.c | switch (cmd) |
cmd | 816 | drivers/sound/sequencer.c | unsigned char cmd = event[1]; |
cmd | 819 | drivers/sound/sequencer.c | switch (cmd) |
cmd | 1555 | drivers/sound/sequencer.c | unsigned int cmd, ioctl_arg arg) |
cmd | 1562 | drivers/sound/sequencer.c | switch (cmd) |
cmd | 1576 | drivers/sound/sequencer.c | return tmr->ioctl (tmr_no, cmd, arg); |
cmd | 1678 | drivers/sound/sequencer.c | return tmr->ioctl (tmr_no, cmd, arg); |
cmd | 1704 | drivers/sound/sequencer.c | err = synth_devs[dev]->ioctl (dev, cmd, arg); |
cmd | 1727 | drivers/sound/sequencer.c | return snd_ioctl_return ((int *) arg, synth_devs[dev]->ioctl (dev, cmd, arg)); |
cmd | 1741 | drivers/sound/sequencer.c | synth_devs[dev]->ioctl (dev, cmd, arg); |
cmd | 1760 | drivers/sound/sequencer.c | return synth_devs[dev]->ioctl (dev, cmd, arg); |
cmd | 1916 | drivers/sound/sequencer.c | return synth_devs[0]->ioctl (0, cmd, arg); |
cmd | 11 | drivers/sound/sound_calls.h | int DMAbuf_ioctl(int dev, unsigned int cmd, ioctl_arg arg, int local); |
cmd | 31 | drivers/sound/sound_calls.h | unsigned int cmd, ioctl_arg arg); |
cmd | 46 | drivers/sound/sound_calls.h | unsigned int cmd, ioctl_arg arg); |
cmd | 66 | drivers/sound/sound_calls.h | unsigned int cmd, ioctl_arg arg); |
cmd | 95 | drivers/sound/sound_calls.h | unsigned int cmd, ioctl_arg arg); |
cmd | 175 | drivers/sound/sound_calls.h | int gus_default_mixer_ioctl (int dev, unsigned int cmd, ioctl_arg arg); |
cmd | 244 | drivers/sound/sound_calls.h | unsigned int cmd, ioctl_arg arg); |
cmd | 518 | drivers/sound/sound_switch.c | unsigned int cmd, ioctl_arg arg) |
cmd | 520 | drivers/sound/sound_switch.c | DEB (printk ("sound_ioctl_sw(dev=%d, cmd=0x%x, arg=0x%x)\n", dev, cmd, arg)); |
cmd | 522 | drivers/sound/sound_switch.c | if (((cmd >> 8) & 0xff) == 'M' && num_mixers > 0) /* Mixer ioctl */ |
cmd | 537 | drivers/sound/sound_switch.c | return mixer_devs[mixdev]->ioctl (mixdev, cmd, arg); |
cmd | 542 | drivers/sound/sound_switch.c | return mixer_devs[0]->ioctl (0, cmd, arg); |
cmd | 559 | drivers/sound/sound_switch.c | return mixer_devs[dev]->ioctl (dev, cmd, arg); |
cmd | 565 | drivers/sound/sound_switch.c | return sequencer_ioctl (dev, file, cmd, arg); |
cmd | 573 | drivers/sound/sound_switch.c | return audio_ioctl (dev, file, cmd, arg); |
cmd | 579 | drivers/sound/sound_switch.c | return MIDIbuf_ioctl (dev, file, cmd, arg); |
cmd | 134 | drivers/sound/sound_timer.c | unsigned char cmd = event[1]; |
cmd | 137 | drivers/sound/sound_timer.c | switch (cmd) |
cmd | 207 | drivers/sound/sound_timer.c | unsigned int cmd, ioctl_arg arg) |
cmd | 209 | drivers/sound/sound_timer.c | switch (cmd) |
cmd | 165 | drivers/sound/soundcard.c | unsigned int cmd, unsigned long arg) |
cmd | 173 | drivers/sound/soundcard.c | if (cmd & IOC_INOUT) |
cmd | 180 | drivers/sound/soundcard.c | len = (cmd & IOCSIZE_MASK) >> IOCSIZE_SHIFT; |
cmd | 182 | drivers/sound/soundcard.c | if (cmd & IOC_IN) |
cmd | 188 | drivers/sound/soundcard.c | if (cmd & IOC_OUT) |
cmd | 196 | drivers/sound/soundcard.c | err = sound_ioctl_sw (dev, &files[dev], cmd, (caddr_t) arg); |
cmd | 230 | drivers/sound/sscape.c | host_command1 (struct sscape_info *devc, int cmd) |
cmd | 234 | drivers/sound/sscape.c | buf[0] = (unsigned char) (cmd & 0xff); |
cmd | 240 | drivers/sound/sscape.c | host_command2 (struct sscape_info *devc, int cmd, int parm1) |
cmd | 244 | drivers/sound/sscape.c | buf[0] = (unsigned char) (cmd & 0xff); |
cmd | 251 | drivers/sound/sscape.c | host_command3 (struct sscape_info *devc, int cmd, int parm1, int parm2) |
cmd | 255 | drivers/sound/sscape.c | buf[0] = (unsigned char) (cmd & 0xff); |
cmd | 669 | drivers/sound/sscape.c | sscape_coproc_ioctl (void *dev_info, unsigned int cmd, ioctl_arg arg, int local) |
cmd | 672 | drivers/sound/sscape.c | switch (cmd) |
cmd | 776 | drivers/sound/sscape.c | sscape_audio_ioctl (int dev, unsigned int cmd, ioctl_arg arg, int local) |
cmd | 780 | drivers/sound/sscape.c | switch (cmd) |
cmd | 135 | drivers/sound/sys_timer.c | unsigned char cmd = event[1]; |
cmd | 138 | drivers/sound/sys_timer.c | switch (cmd) |
cmd | 205 | drivers/sound/sys_timer.c | unsigned int cmd, ioctl_arg arg) |
cmd | 207 | drivers/sound/sys_timer.c | switch (cmd) |
cmd | 48 | drivers/sound/uart6850.c | #define uart6850_cmd(cmd) outb( cmd, COMDPORT) |
cmd | 231 | drivers/sound/uart6850.c | uart6850_ioctl (int dev, unsigned cmd, ioctl_arg arg) |
cmd | 19 | fs/ext2/ioctl.c | int ext2_ioctl (struct inode * inode, struct file * filp, unsigned int cmd, |
cmd | 25 | fs/ext2/ioctl.c | ext2_debug ("cmd = %u, arg = %lu\n", cmd, arg); |
cmd | 27 | fs/ext2/ioctl.c | switch (cmd) { |
cmd | 18 | fs/fcntl.c | extern int sock_fcntl (struct file *, unsigned int cmd, unsigned long arg); |
cmd | 66 | fs/fcntl.c | asmlinkage long sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg) |
cmd | 74 | fs/fcntl.c | switch (cmd) { |
cmd | 107 | fs/fcntl.c | return fcntl_setlk(fd, cmd, (struct flock *) arg); |
cmd | 109 | fs/fcntl.c | return fcntl_setlk(fd, cmd, (struct flock *) arg); |
cmd | 168 | fs/fcntl.c | return (sock_fcntl (filp, cmd, arg)); |
cmd | 17 | fs/ioctl.c | static int file_ioctl(struct file *filp,unsigned int cmd,unsigned long arg) |
cmd | 22 | fs/ioctl.c | switch (cmd) { |
cmd | 53 | fs/ioctl.c | return filp->f_op->ioctl(filp->f_inode, filp, cmd, arg); |
cmd | 58 | fs/ioctl.c | asmlinkage int sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) |
cmd | 65 | fs/ioctl.c | switch (cmd) { |
cmd | 93 | fs/ioctl.c | return file_ioctl(filp, cmd, arg); |
cmd | 96 | fs/ioctl.c | return filp->f_op->ioctl(filp->f_inode, filp, cmd, arg); |
cmd | 72 | fs/locks.c | unsigned int cmd); |
cmd | 98 | fs/locks.c | asmlinkage int sys_flock(unsigned int fd, unsigned int cmd) |
cmd | 106 | fs/locks.c | if (!flock_make_lock(filp, &file_lock, cmd)) |
cmd | 112 | fs/locks.c | return (flock_lock_file(filp, &file_lock, cmd & LOCK_UN ? 0 : cmd & LOCK_NB ? 0 : 1)); |
cmd | 161 | fs/locks.c | int fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l) |
cmd | 201 | fs/locks.c | return (posix_lock_file(filp, &file_lock, cmd == F_SETLKW)); |
cmd | 287 | fs/locks.c | unsigned int cmd) |
cmd | 292 | fs/locks.c | switch (cmd & ~LOCK_NB) { |
cmd | 135 | fs/pipe.c | unsigned int cmd, unsigned long arg) |
cmd | 139 | fs/pipe.c | switch (cmd) { |
cmd | 18 | fs/smbfs/ioctl.c | unsigned int cmd, unsigned long arg) |
cmd | 22 | fs/smbfs/ioctl.c | switch (cmd) { |
cmd | 58 | fs/umsdos/ioctl.c | unsigned int cmd, |
cmd | 73 | fs/umsdos/ioctl.c | || cmd == UMSDOS_GETVERSION){ |
cmd | 95 | fs/umsdos/ioctl.c | PRINTK (("ioctl %d ",cmd)); |
cmd | 96 | fs/umsdos/ioctl.c | if (cmd == UMSDOS_GETVERSION){ |
cmd | 110 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_READDIR_DOS){ |
cmd | 123 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_READDIR_EMD){ |
cmd | 166 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_INIT_EMD){ |
cmd | 189 | fs/umsdos/ioctl.c | if (cmd == UMSDOS_CREAT_EMD){ |
cmd | 206 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_RENAME_DOS){ |
cmd | 221 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_UNLINK_EMD){ |
cmd | 239 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_UNLINK_DOS){ |
cmd | 250 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_RMDIR_DOS){ |
cmd | 261 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_STAT_DOS){ |
cmd | 285 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_DOS_SETUP){ |
cmd | 33 | include/asm-i386/ioctl.h | #define IOC_SIZE(cmd) (((cmd) & IOCSIZE_MASK) >> IOCSIZE_SHIFT) |
cmd | 34 | include/asm-i386/ioctl.h | #define IOCBASECMD(cmd) ((cmd) & ~IOCPARM_MASK) |
cmd | 35 | include/asm-i386/ioctl.h | #define IOCGROUP(cmd) (((cmd) >> 8) & 0xFF) |
cmd | 21 | include/linux/blk.h | ((s1)->cmd < (s2)->cmd || ((s1)->cmd == (s2)->cmd && \ |
cmd | 23 | include/linux/blkdev.h | int cmd; /* READ or WRITE */ |
cmd | 421 | include/linux/cdk.h | unsigned long cmd; |
cmd | 350 | include/linux/fd.h | unsigned char cmd[16]; |
cmd | 122 | include/linux/mroute.h | extern int ipmr_ioctl(struct sock *sk, int cmd, unsigned long arg); |
cmd | 74 | include/linux/msg.h | asmlinkage int sys_msgctl (int msqid, int cmd, struct msqid_ds *buf); |
cmd | 107 | include/linux/net.h | int (*ioctl) (struct socket *sock, unsigned int cmd, |
cmd | 115 | include/linux/net.h | int (*fcntl) (struct socket *sock, unsigned int cmd, |
cmd | 167 | include/linux/netdevice.h | int (*do_ioctl)(struct device *dev, struct ifreq *ifr, int cmd); |
cmd | 222 | include/linux/netdevice.h | extern int dev_ioctl(unsigned int cmd, void *); |
cmd | 174 | include/linux/optcd.h | && CURRENT -> cmd == READ && CURRENT -> sector != -1) |
cmd | 108 | include/linux/sem.h | asmlinkage int sys_semctl (int semid, int semnum, int cmd, union semun arg); |
cmd | 65 | include/linux/shm.h | asmlinkage int sys_shmctl (int shmid, int cmd, struct shmid_ds *buf); |
cmd | 116 | include/linux/smb_fs.h | unsigned int cmd, unsigned long arg); |
cmd | 543 | include/linux/soundcard.h | unsigned char cmd; |
cmd | 317 | include/linux/tty.h | unsigned int cmd, unsigned long arg); |
cmd | 335 | include/linux/tty.h | unsigned int cmd, unsigned long arg); |
cmd | 133 | include/linux/tty_driver.h | unsigned int cmd, unsigned long arg); |
cmd | 27 | include/linux/tty_ldisc.h | unsigned int cmd, unsigned long arg); |
cmd | 93 | include/linux/ultrasound.h | #define _GUS_CMD(chn, voice, cmd, p1, p2) \ |
cmd | 95 | include/linux/ultrasound.h | _seqbuf[_seqbufptr+1] = (chn); _seqbuf[_seqbufptr+2] = cmd;\ |
cmd | 114 | include/linux/xd.h | static int xd_ioctl (struct inode *inode,struct file *file,unsigned int cmd,unsigned long arg); |
cmd | 14 | include/net/arp.h | extern int arp_ioctl(unsigned int cmd, void *arg); |
cmd | 32 | include/net/icmp.h | extern int icmp_ioctl(struct sock *sk, int cmd, |
cmd | 85 | include/net/ip.h | extern int ip_ioctl(struct sock *sk, int cmd, unsigned long arg); |
cmd | 5 | include/net/rarp.h | extern int rarp_ioctl(unsigned int cmd, void *arg); |
cmd | 52 | include/net/route.h | extern int ip_rt_ioctl(unsigned int cmd, void *arg); |
cmd | 305 | include/net/sock.h | int (*ioctl)(struct sock *sk, int cmd, |
cmd | 134 | include/net/tcp.h | extern int tcp_ioctl(struct sock *sk, int cmd, unsigned long arg); |
cmd | 49 | include/net/udp.h | extern int udp_ioctl(struct sock *sk, int cmd, unsigned long arg); |
cmd | 319 | ipc/msg.c | asmlinkage int sys_msgctl (int msqid, int cmd, struct msqid_ds *buf) |
cmd | 326 | ipc/msg.c | if (msqid < 0 || cmd < 0) |
cmd | 328 | ipc/msg.c | switch (cmd) { |
cmd | 343 | ipc/msg.c | if (cmd == MSG_INFO) { |
cmd | 404 | ipc/msg.c | switch (cmd) { |
cmd | 360 | ipc/sem.c | asmlinkage int sys_semctl (int semid, int semnum, int cmd, union semun arg) |
cmd | 373 | ipc/sem.c | if (semid < 0 || semnum < 0 || cmd < 0) |
cmd | 376 | ipc/sem.c | switch (cmd) { |
cmd | 391 | ipc/sem.c | if (cmd == SEM_INFO) { |
cmd | 432 | ipc/sem.c | switch (cmd) { |
cmd | 444 | ipc/sem.c | switch (cmd) { |
cmd | 452 | ipc/sem.c | switch (cmd) { |
cmd | 502 | ipc/sem.c | switch (cmd) { |
cmd | 202 | ipc/shm.c | asmlinkage int sys_shmctl (int shmid, int cmd, struct shmid_ds *buf) |
cmd | 209 | ipc/shm.c | if (cmd < 0 || shmid < 0) |
cmd | 211 | ipc/shm.c | if (cmd == IPC_SET) { |
cmd | 220 | ipc/shm.c | switch (cmd) { /* replace with proc interface ? */ |
cmd | 287 | ipc/shm.c | switch (cmd) { |
cmd | 75 | ipc/util.c | asmlinkage int sys_semctl (int semid, int semnum, int cmd, union semun arg) |
cmd | 96 | ipc/util.c | asmlinkage int sys_msgctl (int msqid, int cmd, struct msqid_ds *buf) |
cmd | 116 | ipc/util.c | asmlinkage int sys_shmctl (int shmid, int cmd, struct shmid_ds *buf) |
cmd | 6 | net/802/llc.c | int llc_rx_adm(struct sock *sk,struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
cmd | 10 | net/802/llc.c | if(cmd==DISC) |
cmd | 12 | net/802/llc.c | else if(cmd==SABM) |
cmd | 36 | net/802/llc.c | int llc_rx_setup(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
cmd | 40 | net/802/llc.c | if(cmd==SABM) |
cmd | 46 | net/802/llc.c | if(cmd==DISC) |
cmd | 55 | net/802/llc.c | if(cmd==UA && pf==sk->llc.p_flag) |
cmd | 62 | net/802/llc.c | if(cmd==DM) |
cmd | 70 | net/802/llc.c | int llc_rx_reset(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
cmd | 74 | net/802/llc.c | if(cmd==SABM) |
cmd | 80 | net/802/llc.c | else if(cmd==DISC) |
cmd | 92 | net/802/llc.c | if(cmd==UA) |
cmd | 105 | net/802/llc.c | if(cmd==DM) |
cmd | 114 | net/802/llc.c | int llc_rx_d_conn(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
cmd | 118 | net/802/llc.c | if(cmd==SABM) |
cmd | 123 | net/802/llc.c | else if(cmd==DISC) |
cmd | 133 | net/802/llc.c | if(cmd==UA && pf==sk->llc.p_flag) |
cmd | 139 | net/802/llc.c | if(cmd==DM) |
cmd | 150 | net/802/llc.c | int llc_rx_error(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
cmd | 154 | net/802/llc.c | if(cmd==SABM) |
cmd | 164 | net/802/llc.c | else if(cmd==DISC) |
cmd | 175 | net/802/llc.c | if(cmd==DM) |
cmd | 181 | net/802/llc.c | if(cmd==FRMR) |
cmd | 199 | net/802/llc.c | int llc_rx_nr_shared(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
cmd | 203 | net/802/llc.c | if(cmd==SABM) |
cmd | 212 | net/802/llc.c | else if(cmd==DISC) |
cmd | 222 | net/802/llc.c | else if(cmd==ILLEGAL) |
cmd | 239 | net/802/llc.c | if(cmd==FRMR) |
cmd | 248 | net/802/llc.c | else if(cmd==DM) |
cmd | 258 | net/802/llc.c | else if(cmd==UA) |
cmd | 270 | net/802/llc.c | else if(cmd==ILLEGAL) |
cmd | 288 | net/802/llc.c | int llc_rx_normal(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
cmd | 290 | net/802/llc.c | if(llc_rx_nr_shared(sk, skb, type, cmd, pf, nr, ns)) |
cmd | 292 | net/802/llc.c | if(cmd==I) |
cmd | 368 | net/802/llc.c | else if(cmd==RR||cmd==RNR) |
cmd | 378 | net/802/llc.c | if(cmd==RR) |
cmd | 386 | net/802/llc.c | else if(type==cmd && pf) |
cmd | 388 | net/802/llc.c | if(cmd==RR) |
cmd | 401 | net/802/llc.c | if(cmd==RR) |
cmd | 407 | net/802/llc.c | else if(cmd==REJ) |
cmd | 685 | net/appletalk/ddp.c | int atif_ioctl(int cmd, void *arg) |
cmd | 693 | net/appletalk/ddp.c | int ro=(cmd==SIOCSIFADDR); |
cmd | 710 | net/appletalk/ddp.c | switch(cmd) |
cmd | 815 | net/appletalk/ddp.c | static int atrtr_ioctl(unsigned int cmd, void *arg) |
cmd | 825 | net/appletalk/ddp.c | switch(cmd) |
cmd | 951 | net/appletalk/ddp.c | static int atalk_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 954 | net/appletalk/ddp.c | switch(cmd) |
cmd | 1761 | net/appletalk/ddp.c | static int atalk_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg) |
cmd | 1767 | net/appletalk/ddp.c | switch(cmd) |
cmd | 1804 | net/appletalk/ddp.c | return(atrtr_ioctl(cmd,(void *)arg)); |
cmd | 1811 | net/appletalk/ddp.c | return atif_ioctl(cmd,(void *)arg); |
cmd | 1825 | net/appletalk/ddp.c | return(dev_ioctl(cmd,(void *) arg)); |
cmd | 468 | net/ax25/af_ax25.c | static int ax25_uid_ioctl(int cmd, struct sockaddr_ax25 *sax) |
cmd | 472 | net/ax25/af_ax25.c | switch (cmd) { |
cmd | 683 | net/ax25/af_ax25.c | static int ax25_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 685 | net/ax25/af_ax25.c | switch(cmd) |
cmd | 1912 | net/ax25/af_ax25.c | static int ax25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 1918 | net/ax25/af_ax25.c | switch (cmd) { |
cmd | 1959 | net/ax25/af_ax25.c | return ax25_uid_ioctl(cmd, &sax25); |
cmd | 1975 | net/ax25/af_ax25.c | return ax25_dev_ioctl(cmd, (void *)arg); |
cmd | 1981 | net/ax25/af_ax25.c | return ax25_rt_ioctl(cmd, (void *)arg); |
cmd | 1996 | net/ax25/af_ax25.c | return(dev_ioctl(cmd, (void *)arg)); |
cmd | 167 | net/ax25/ax25_route.c | int ax25_rt_ioctl(unsigned int cmd, void *arg) |
cmd | 175 | net/ax25/ax25_route.c | switch (cmd) { |
cmd | 515 | net/ax25/ax25_route.c | int ax25_dev_ioctl(unsigned int cmd, void *arg) |
cmd | 522 | net/ax25/ax25_route.c | switch (cmd) { |
cmd | 1256 | net/core/dev.c | int dev_ioctl(unsigned int cmd, void *arg) |
cmd | 1258 | net/core/dev.c | switch(cmd) |
cmd | 1280 | net/core/dev.c | return dev_ifsioc(arg, cmd); |
cmd | 1300 | net/core/dev.c | return dev_ifsioc(arg, cmd); |
cmd | 1310 | net/core/dev.c | if((cmd >= SIOCDEVPRIVATE) && |
cmd | 1311 | net/core/dev.c | (cmd <= (SIOCDEVPRIVATE + 15))) { |
cmd | 1312 | net/core/dev.c | return dev_ifsioc(arg, cmd); |
cmd | 429 | net/ipv4/af_inet.c | static int inet_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 435 | net/ipv4/af_inet.c | switch(cmd) |
cmd | 1199 | net/ipv4/af_inet.c | static int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 1205 | net/ipv4/af_inet.c | switch(cmd) |
cmd | 1235 | net/ipv4/af_inet.c | return(ip_rt_ioctl(cmd,(void *) arg)); |
cmd | 1239 | net/ipv4/af_inet.c | return(arp_ioctl(cmd,(void *) arg)); |
cmd | 1244 | net/ipv4/af_inet.c | return(rarp_ioctl_hook(cmd,(void *) arg)); |
cmd | 1271 | net/ipv4/af_inet.c | return(dev_ioctl(cmd,(void *) arg)); |
cmd | 1274 | net/ipv4/af_inet.c | if ((cmd >= SIOCDEVPRIVATE) && |
cmd | 1275 | net/ipv4/af_inet.c | (cmd <= (SIOCDEVPRIVATE + 15))) |
cmd | 1276 | net/ipv4/af_inet.c | return(dev_ioctl(cmd,(void *) arg)); |
cmd | 1280 | net/ipv4/af_inet.c | return(sk->prot->ioctl(sk, cmd, arg)); |
cmd | 1391 | net/ipv4/arp.c | int arp_ioctl(unsigned int cmd, void *arg) |
cmd | 1397 | net/ipv4/arp.c | switch(cmd) |
cmd | 176 | net/ipv4/ip_input.c | int ip_ioctl(struct sock *sk, int cmd, unsigned long arg) |
cmd | 178 | net/ipv4/ip_input.c | switch(cmd) |
cmd | 594 | net/ipv4/ipmr.c | int ipmr_ioctl(struct sock *sk, int cmd, unsigned long arg) |
cmd | 601 | net/ipv4/ipmr.c | switch(cmd) |
cmd | 436 | net/ipv4/rarp.c | int rarp_ioctl(unsigned int cmd, void *arg) |
cmd | 442 | net/ipv4/rarp.c | switch(cmd) |
cmd | 708 | net/ipv4/route.c | int ip_rt_ioctl(unsigned int cmd, void *arg) |
cmd | 713 | net/ipv4/route.c | switch(cmd) |
cmd | 723 | net/ipv4/route.c | return (cmd == SIOCDELRT) ? rt_kill(&rt) : rt_new(&rt); |
cmd | 1245 | net/ipv4/tcp.c | int tcp_ioctl(struct sock *sk, int cmd, unsigned long arg) |
cmd | 1248 | net/ipv4/tcp.c | switch(cmd) |
cmd | 438 | net/ipv4/udp.c | int udp_ioctl(struct sock *sk, int cmd, unsigned long arg) |
cmd | 441 | net/ipv4/udp.c | switch(cmd) |
cmd | 861 | net/ipx/af_ipx.c | ipxitf_ioctl(unsigned int cmd, void *arg) |
cmd | 864 | net/ipx/af_ipx.c | switch(cmd) |
cmd | 1113 | net/ipx/af_ipx.c | static int ipxrtr_ioctl(unsigned int cmd, void *arg) |
cmd | 1135 | net/ipx/af_ipx.c | switch(cmd) |
cmd | 1317 | net/ipx/af_ipx.c | static int ipx_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 1319 | net/ipx/af_ipx.c | switch(cmd) |
cmd | 1835 | net/ipx/af_ipx.c | static int ipx_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg) |
cmd | 1841 | net/ipx/af_ipx.c | switch(cmd) |
cmd | 1868 | net/ipx/af_ipx.c | return(ipxrtr_ioctl(cmd,(void *)arg)); |
cmd | 1875 | net/ipx/af_ipx.c | return(ipxitf_ioctl(cmd,(void *)arg)); |
cmd | 1903 | net/ipx/af_ipx.c | return(dev_ioctl(cmd,(void *) arg)); |
cmd | 143 | net/netlink.c | unsigned int cmd, unsigned long arg) |
cmd | 150 | net/netlink.c | switch ( cmd ) { |
cmd | 287 | net/netrom/af_netrom.c | static int nr_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 289 | net/netrom/af_netrom.c | switch(cmd) |
cmd | 1193 | net/netrom/af_netrom.c | static int nr_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 1199 | net/netrom/af_netrom.c | switch (cmd) { |
cmd | 1249 | net/netrom/af_netrom.c | return nr_rt_ioctl(cmd, (void *)arg); |
cmd | 1274 | net/netrom/af_netrom.c | return dev_ioctl(cmd, (void *)arg); |
cmd | 565 | net/netrom/nr_route.c | int nr_rt_ioctl(unsigned int cmd, void *arg) |
cmd | 572 | net/netrom/nr_route.c | switch (cmd) { |
cmd | 83 | net/socket.c | unsigned int cmd, unsigned long arg); |
cmd | 389 | net/socket.c | int sock_ioctl(struct inode *inode, struct file *file, unsigned int cmd, |
cmd | 394 | net/socket.c | return(sock->ops->ioctl(sock, cmd, arg)); |
cmd | 1156 | net/socket.c | int sock_fcntl(struct file *filp, unsigned int cmd, unsigned long arg) |
cmd | 1162 | net/socket.c | return(sock->ops->fcntl(sock, cmd, arg)); |
cmd | 209 | net/unix/af_unix.c | static int unix_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 934 | net/unix/af_unix.c | static int unix_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 940 | net/unix/af_unix.c | switch(cmd) |