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 | 213 | arch/alpha/kernel/bios32.c | cmd | PCI_COMMAND_MASTER); |
cmd | 187 | drivers/block/aztcd.c | (CURRENT && MAJOR(CURRENT -> dev) == MAJOR_NR && CURRENT -> cmd == READ \ |
cmd | 253 | drivers/block/aztcd.c | static int aztSendCmd(int cmd); |
cmd | 254 | drivers/block/aztcd.c | static int sendAztCmd(int cmd, struct azt_Play_msf *params); |
cmd | 390 | drivers/block/aztcd.c | static int aztSendCmd(int cmd) |
cmd | 395 | drivers/block/aztcd.c | printk("aztcd: Executing command %x\n",cmd); |
cmd | 397 | drivers/block/aztcd.c | aztCmd=cmd; |
cmd | 406 | drivers/block/aztcd.c | { outb((unsigned char) cmd,CMD_PORT); |
cmd | 414 | drivers/block/aztcd.c | printk("### Error 1 aztcd: aztSendCmd %x Error Code %x\n",cmd,data); |
cmd | 418 | drivers/block/aztcd.c | { printk("### Error 2 aztcd: aztSendCmd %x \n",cmd); |
cmd | 427 | drivers/block/aztcd.c | static int sendAztCmd(int cmd, struct azt_Play_msf *params) |
cmd | 437 | drivers/block/aztcd.c | { aztSendCmd(cmd); |
cmd | 451 | drivers/block/aztcd.c | printk("### Error 1 aztcd: sendAztCmd %x Error Code %x\n",cmd,data); |
cmd | 455 | drivers/block/aztcd.c | { printk("### Error 2 aztcd: sendAztCmd %x\n ",cmd); |
cmd | 533 | drivers/block/aztcd.c | static int aztcd_ioctl(struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg) |
cmd | 545 | drivers/block/aztcd.c | printk("aztcd: starting aztcd_ioctl - Command:%x Time: %li\n",cmd, jiffies); |
cmd | 553 | drivers/block/aztcd.c | switch (cmd) |
cmd | 734 | drivers/block/aztcd.c | printk("aztcd: exiting aztcd_ioctl - Error 1 - Command:%x\n",cmd); |
cmd | 741 | drivers/block/aztcd.c | printk("aztcd: exiting aztcd_ioctl - Error 2 - Command:%x\n",cmd); |
cmd | 749 | drivers/block/aztcd.c | printk("aztcd: exiting aztcd_ioctl - Error 3 - Command:%x\n",cmd); |
cmd | 828 | drivers/block/aztcd.c | if (cmd==CDROMREADMODE1) |
cmd | 847 | drivers/block/aztcd.c | printk("aztcd: exiting aztcd_ioctl Command:%x Time:%li\n",cmd,jiffies); |
cmd | 21 | drivers/block/blk.h | ((s1)->cmd < (s2)->cmd || ((s1)->cmd == (s2)->cmd && \ |
cmd | 224 | drivers/block/cdu31a.c | static void do_sony_cd_cmd(unsigned char cmd, |
cmd | 509 | drivers/block/cdu31a.c | write_cmd(unsigned char cmd) |
cmd | 512 | drivers/block/cdu31a.c | outb(cmd, sony_cd_cmd_reg); |
cmd | 767 | drivers/block/cdu31a.c | do_sony_cd_cmd(unsigned char cmd, |
cmd | 833 | drivers/block/cdu31a.c | write_cmd(cmd); |
cmd | 1484 | drivers/block/cdu31a.c | switch(CURRENT->cmd) |
cmd | 2224 | drivers/block/cdu31a.c | static int do_sony_cd_cmd_chk(char *name, unsigned char cmd, unsigned char *params, unsigned int num_params, |
cmd | 2227 | drivers/block/cdu31a.c | do_sony_cd_cmd(cmd, params, num_params, result_buffer, result_size); |
cmd | 2238 | drivers/block/cdu31a.c | unsigned int cmd, |
cmd | 2252 | drivers/block/cdu31a.c | switch (cmd) |
cmd | 652 | drivers/block/cm206.c | if (CURRENT->cmd != READ) { |
cmd | 653 | drivers/block/cm206.c | debug(("Non-read command %d on cdrom\n", CURRENT->cmd)); |
cmd | 894 | drivers/block/cm206.c | unsigned int cmd, unsigned long arg) |
cmd | 896 | drivers/block/cm206.c | switch (cmd) { |
cmd | 935 | drivers/block/cm206.c | switch (cmd) { |
cmd | 1017 | drivers/block/cm206.c | else return -cmd; |
cmd | 1030 | drivers/block/cm206.c | debug(("Unknown ioctl call 0x%x\n", cmd)); |
cmd | 248 | drivers/block/floppy.c | #define COMMAND raw_cmd.cmd[0] |
cmd | 249 | drivers/block/floppy.c | #define DR_SELECT raw_cmd.cmd[1] |
cmd | 250 | drivers/block/floppy.c | #define TRACK raw_cmd.cmd[2] |
cmd | 251 | drivers/block/floppy.c | #define HEAD raw_cmd.cmd[3] |
cmd | 252 | drivers/block/floppy.c | #define SECTOR raw_cmd.cmd[4] |
cmd | 253 | drivers/block/floppy.c | #define SIZECODE raw_cmd.cmd[5] |
cmd | 254 | drivers/block/floppy.c | #define SECT_PER_TRACK raw_cmd.cmd[6] |
cmd | 255 | drivers/block/floppy.c | #define GAP raw_cmd.cmd[7] |
cmd | 256 | drivers/block/floppy.c | #define SIZECODE2 raw_cmd.cmd[8] |
cmd | 260 | drivers/block/floppy.c | #define F_SIZECODE raw_cmd.cmd[2] |
cmd | 261 | drivers/block/floppy.c | #define F_SECT_PER_TRACK raw_cmd.cmd[3] |
cmd | 262 | drivers/block/floppy.c | #define F_GAP raw_cmd.cmd[4] |
cmd | 263 | drivers/block/floppy.c | #define F_FILL raw_cmd.cmd[5] |
cmd | 980 | drivers/block/floppy.c | printk("%x,", raw_cmd.cmd[i]); |
cmd | 1382 | drivers/block/floppy.c | r|=output_byte( raw_cmd.cmd[i] ); |
cmd | 2148 | drivers/block/floppy.c | if(CURRENT->cmd == WRITE) { |
cmd | 2389 | drivers/block/floppy.c | if (CURRENT->cmd == READ){ |
cmd | 2392 | drivers/block/floppy.c | } else if (CURRENT->cmd == WRITE){ |
cmd | 2915 | drivers/block/floppy.c | static int fd_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, |
cmd | 2929 | drivers/block/floppy.c | switch (cmd) { |
cmd | 2934 | drivers/block/floppy.c | switch (cmd) { |
cmd | 2971 | drivers/block/floppy.c | switch (cmd) { |
cmd | 3046 | drivers/block/floppy.c | if ( cmd != FDDEFPRM ) |
cmd | 3056 | drivers/block/floppy.c | if (cmd == FDDEFPRM) |
cmd | 3091 | drivers/block/floppy.c | switch(cmd){ |
cmd | 210 | drivers/block/gscd.c | static int gscd_ioctl (struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg) |
cmd | 216 | drivers/block/gscd.c | switch (cmd) |
cmd | 282 | drivers/block/gscd.c | if (CURRENT -> cmd != READ) |
cmd | 284 | drivers/block/gscd.c | printk("GSCD: bad cmd %d\n", CURRENT -> cmd); |
cmd | 325 | drivers/block/gscd.c | char cmd[] = { CMD_READ, 0x80, 0,0,0, 0,1 }; /* cmd mode M-S-F secth sectl */ |
cmd | 348 | drivers/block/gscd.c | cmd[2] = gscdcmd.start.min; |
cmd | 349 | drivers/block/gscd.c | cmd[3] = gscdcmd.start.sec; |
cmd | 350 | drivers/block/gscd.c | cmd[4] = gscdcmd.start.frame; |
cmd | 353 | drivers/block/gscd.c | printk ("GSCD: read msf %d:%d:%d\n", cmd[2], cmd[3], cmd[4] ); |
cmd | 355 | drivers/block/gscd.c | cmd_out ( TYPE_DATA, (char *)&cmd, (char *)&gscd_buf[0], 1 ); |
cmd | 531 | drivers/block/gscd.c | void cmd_out ( int cmd_type, char * cmd, char * respo_buf, int respo_count ) |
cmd | 587 | drivers/block/gscd.c | cmd_write_cmd (cmd); |
cmd | 223 | drivers/block/hd.c | unsigned int head,unsigned int cyl,unsigned int cmd, |
cmd | 247 | drivers/block/hd.c | outb_p(cmd,++port); |
cmd | 739 | drivers/block/hd.c | dev+'a', (CURRENT->cmd == READ)?"read":"writ", |
cmd | 744 | drivers/block/hd.c | if (CURRENT->cmd == READ) { |
cmd | 745 | drivers/block/hd.c | unsigned int cmd = mult_count[dev] > 1 ? WIN_MULTREAD : WIN_READ; |
cmd | 746 | drivers/block/hd.c | hd_out(dev,nsect,sec,head,cyl,cmd,&read_intr); |
cmd | 751 | drivers/block/hd.c | if (CURRENT->cmd == WRITE) { |
cmd | 780 | drivers/block/hd.c | unsigned int cmd, unsigned long arg) |
cmd | 791 | drivers/block/hd.c | switch (cmd) { |
cmd | 499 | drivers/block/ide-cd.c | rq->cmd = REQUEST_SENSE_COMMAND; |
cmd | 534 | drivers/block/ide-cd.c | if (rq->cmd == REQUEST_SENSE_COMMAND && uptodate) |
cmd | 560 | drivers/block/ide-cd.c | int stat, err, sense_key, cmd; |
cmd | 577 | drivers/block/ide-cd.c | cmd = rq->cmd; |
cmd | 586 | drivers/block/ide-cd.c | if (cmd == READ) |
cmd | 620 | drivers/block/ide-cd.c | if (cmd == PACKET_COMMAND) |
cmd | 636 | drivers/block/ide-cd.c | else if (cmd == PACKET_COMMAND) |
cmd | 667 | drivers/block/ide-cd.c | if ((stat & ERR_STAT) != 0 && cmd == READ) |
cmd | 1298 | drivers/block/ide-cd.c | req.cmd = PACKET_COMMAND; |
cmd | 1367 | drivers/block/ide-cd.c | if (rq -> cmd == PACKET_COMMAND || rq -> cmd == REQUEST_SENSE_COMMAND) |
cmd | 1370 | drivers/block/ide-cd.c | if (rq -> cmd != READ) |
cmd | 1372 | drivers/block/ide-cd.c | printk ("ide-cd: bad cmd %d\n", rq -> cmd); |
cmd | 1778 | drivers/block/ide-cd.c | struct file *file, unsigned int cmd, unsigned long arg) |
cmd | 1780 | drivers/block/ide-cd.c | switch (cmd) |
cmd | 674 | drivers/block/ide.c | if (rq->cmd == IDE_DRIVE_CMD) { /* never retry an explicit DRIVE_CMD */ |
cmd | 689 | drivers/block/ide.c | if ((stat & DRQ_STAT) && rq->cmd == READ) { |
cmd | 855 | drivers/block/ide.c | static inline void ide_cmd(ide_dev_t *dev, byte cmd, byte nsect, |
cmd | 860 | drivers/block/ide.c | OUT_BYTE(cmd,HD_COMMAND); |
cmd | 1025 | drivers/block/ide.c | dev->name, (rq->cmd==READ)?"read":"writ", |
cmd | 1044 | drivers/block/ide.c | dev->name, (rq->cmd==READ)?"read":"writ", cyl, |
cmd | 1048 | drivers/block/ide.c | if (rq->cmd == READ) { |
cmd | 1053 | drivers/block/ide.c | if (rq->cmd == WRITE) { |
cmd | 1070 | drivers/block/ide.c | if (rq->cmd == IDE_DRIVE_CMD) { |
cmd | 1087 | drivers/block/ide.c | printk("%s: bad command: %d\n", dev->name, rq->cmd); |
cmd | 1453 | drivers/block/ide.c | rq.cmd = IDE_DRIVE_CMD; |
cmd | 1496 | drivers/block/ide.c | unsigned int cmd, unsigned long arg) |
cmd | 1507 | drivers/block/ide.c | switch (cmd) { |
cmd | 1576 | drivers/block/ide.c | switch (cmd) { |
cmd | 1641 | drivers/block/ide.c | return ide_cdrom_ioctl(dev, inode, file, cmd, arg); |
cmd | 1716 | drivers/block/ide.c | static void do_identify (ide_dev_t *dev, byte cmd) |
cmd | 1742 | drivers/block/ide.c | if (cmd == WIN_PIDENTIFY) { |
cmd | 1754 | drivers/block/ide.c | if (cmd == WIN_PIDENTIFY) { |
cmd | 1857 | drivers/block/ide.c | static int try_to_identify (ide_dev_t *dev, byte cmd) |
cmd | 1885 | drivers/block/ide.c | OUT_BYTE(cmd,HD_COMMAND); /* ask drive for ID */ |
cmd | 1886 | drivers/block/ide.c | timeout = ((cmd == WIN_IDENTIFY) ? WAIT_WORSTCASE : WAIT_PIDENTIFY) / 2; |
cmd | 1901 | drivers/block/ide.c | do_identify(dev, cmd); /* drive returned ID */ |
cmd | 1928 | drivers/block/ide.c | static int do_probe (ide_dev_t *dev, byte cmd) |
cmd | 1941 | drivers/block/ide.c | if ((dev->type == disk) ^ (cmd == WIN_IDENTIFY)) |
cmd | 1948 | drivers/block/ide.c | (cmd == WIN_IDENTIFY) ? "ATA" : "ATAPI"); |
cmd | 1958 | drivers/block/ide.c | || dev->present || cmd == WIN_PIDENTIFY) |
cmd | 1960 | drivers/block/ide.c | if ((rc = try_to_identify(dev, cmd))) /* send cmd and wait */ |
cmd | 1961 | drivers/block/ide.c | rc = try_to_identify(dev, 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->dev == -1 && req->cmd == -1) { |
cmd | 349 | drivers/block/ll_rw_blk.c | req->cmd == rw && |
cmd | 363 | drivers/block/ll_rw_blk.c | req->cmd == rw && |
cmd | 396 | drivers/block/ll_rw_blk.c | req->cmd = rw; |
cmd | 428 | drivers/block/ll_rw_blk.c | req->cmd = rw; |
cmd | 558 | drivers/block/ll_rw_blk.c | req[j]->cmd = rw; |
cmd | 142 | drivers/block/mcd.c | (CURRENT && MAJOR(CURRENT -> dev) == MAJOR_NR && CURRENT -> cmd == READ \ |
cmd | 194 | drivers/block/mcd.c | static void sendMcdCmd(int cmd, struct mcd_Play_msf *params); |
cmd | 294 | drivers/block/mcd.c | mcd_ioctl(struct inode *ip, struct file *fp, unsigned int cmd, |
cmd | 321 | drivers/block/mcd.c | switch (cmd) |
cmd | 1367 | drivers/block/mcd.c | sendMcdCmd(int cmd, struct mcd_Play_msf *params) |
cmd | 1369 | drivers/block/mcd.c | outb(cmd, MCDPORT(0)); |
cmd | 230 | drivers/block/mcdx.c | const unsigned char* cmd, size_t, void *buffer, |
cmd | 264 | drivers/block/mcdx.c | unsigned int cmd, unsigned long arg) |
cmd | 271 | drivers/block/mcdx.c | switch (cmd) { |
cmd | 451 | drivers/block/mcdx.c | WARN(("ioctl(): unknown request 0x%04x\n", cmd)); |
cmd | 488 | drivers/block/mcdx.c | switch (CURRENT->cmd) { |
cmd | 757 | drivers/block/mcdx.c | const unsigned char *cmd, size_t cmdlen, |
cmd | 780 | drivers/block/mcdx.c | size, (unsigned char) cmd[0])); |
cmd | 781 | drivers/block/mcdx.c | for (i = 1; i < cmdlen; i++) printk(" 0x%02x", cmd[i]); |
cmd | 791 | drivers/block/mcdx.c | outsb((unsigned int) stuffp->wreg_data, cmd, cmdlen); |
cmd | 1184 | drivers/block/mcdx.c | static unsigned char cmd[] = { |
cmd | 1190 | drivers/block/mcdx.c | cmd[0] = stuffp->readcmd; |
cmd | 1219 | drivers/block/mcdx.c | cmd[1] = pending.minute; |
cmd | 1220 | drivers/block/mcdx.c | cmd[2] = pending.second; |
cmd | 1221 | drivers/block/mcdx.c | cmd[3] = pending.frame; |
cmd | 1225 | drivers/block/mcdx.c | cmd[6] = (unsigned char) (stuffp->off_requested - stuffp->pending) / 4; |
cmd | 1227 | drivers/block/mcdx.c | outsb((unsigned int) stuffp->wreg_data, cmd, sizeof cmd); |
cmd | 1438 | drivers/block/mcdx.c | char cmd[2]; |
cmd | 1443 | drivers/block/mcdx.c | if (-1 == (ans = mcdx_talk(stuffp, "\xc2", 1, cmd, sizeof(cmd), 500, tries))) |
cmd | 1447 | drivers/block/mcdx.c | case TOC: cmd[1] |= 0x04; break; |
cmd | 1448 | drivers/block/mcdx.c | case DATA: cmd[1] &= ~0x04; break; |
cmd | 1449 | drivers/block/mcdx.c | case RAW: cmd[1] |= 0x40; break; |
cmd | 1450 | drivers/block/mcdx.c | case COOKED: cmd[1] &= ~0x40; break; |
cmd | 1453 | drivers/block/mcdx.c | cmd[0] = 0x50; |
cmd | 1454 | drivers/block/mcdx.c | return mcdx_talk(stuffp, cmd, 2, NULL, 0, 500, tries); |
cmd | 1461 | drivers/block/mcdx.c | unsigned char cmd[2] = { 0xa0 }; |
cmd | 1464 | drivers/block/mcdx.c | case MODE0: cmd[1] = 0x00; break; |
cmd | 1465 | drivers/block/mcdx.c | case MODE1: cmd[1] = 0x01; break; |
cmd | 1466 | drivers/block/mcdx.c | case MODE2: cmd[1] = 0x02; break; |
cmd | 1469 | drivers/block/mcdx.c | return mcdx_talk(stuffp, cmd, 2, NULL, 0, 500, tries); |
cmd | 1475 | drivers/block/mcdx.c | char cmd[4]; |
cmd | 1479 | drivers/block/mcdx.c | cmd[0] = 0x90; |
cmd | 1481 | drivers/block/mcdx.c | cmd[1] = 0x10; /* irq enable */ |
cmd | 1482 | drivers/block/mcdx.c | cmd[2] = 0x05; /* pre, err irq enable */ |
cmd | 1484 | drivers/block/mcdx.c | if (-1 == mcdx_talk(stuffp, cmd, 3, NULL, 0, 100, tries)) |
cmd | 1487 | drivers/block/mcdx.c | cmd[1] = 0x02; /* dma select */ |
cmd | 1488 | drivers/block/mcdx.c | cmd[2] = 0x00; /* no dma */ |
cmd | 1490 | drivers/block/mcdx.c | return mcdx_talk(stuffp, cmd, 3, NULL, 0, 100, tries); |
cmd | 1521 | drivers/block/mcdx.c | char cmd[2] = { 0xfe }; |
cmd | 1523 | drivers/block/mcdx.c | cmd[1] = lock ? 0x01 : 0x00; |
cmd | 1524 | drivers/block/mcdx.c | return mcdx_talk(stuffp, cmd, sizeof(cmd), NULL, 0, 500, tries); |
cmd | 177 | drivers/block/optcd.c | static int optSendCmd(int cmd) { |
cmd | 180 | drivers/block/optcd.c | printk("optcd: executing command 0x%02x\n", cmd); |
cmd | 183 | drivers/block/optcd.c | outb(cmd, COMIN_PORT); /* Send command code */ |
cmd | 310 | drivers/block/optcd.c | inline static int optCmd(int cmd) { |
cmd | 311 | drivers/block/optcd.c | int ack = optSendCmd(cmd); |
cmd | 314 | drivers/block/optcd.c | if (cmd < COMFETCH) /* Quick response command */ |
cmd | 321 | drivers/block/optcd.c | inline static int optPlayCmd(int cmd, struct opt_Play_msf *params) { |
cmd | 322 | drivers/block/optcd.c | int ack = optSendCmd(cmd); |
cmd | 332 | drivers/block/optcd.c | inline static int optReadCmd(int cmd, struct opt_Play_msf *params) { |
cmd | 333 | drivers/block/optcd.c | int ack = optSendCmd(cmd); |
cmd | 984 | drivers/block/optcd.c | unsigned int cmd, unsigned long arg) { |
cmd | 988 | drivers/block/optcd.c | printk("optcd: starting opt_ioctl, command 0x%x\n", cmd); |
cmd | 997 | drivers/block/optcd.c | switch (cmd) { |
cmd | 48 | drivers/block/ramdisk.c | if (CURRENT-> cmd == WRITE) { |
cmd | 52 | drivers/block/ramdisk.c | } else if (CURRENT->cmd == READ) { |
cmd | 3794 | drivers/block/sbpcd.c | static int sbpcd_ioctl(struct inode *inode, struct file *file, u_int cmd, |
cmd | 3800 | drivers/block/sbpcd.c | MINOR(inode->i_rdev), cmd, arg); |
cmd | 3821 | drivers/block/sbpcd.c | msg(DBG_IO2,"ioctl: device %d, request %04X\n",i,cmd); |
cmd | 3822 | drivers/block/sbpcd.c | switch (cmd) /* Sun-compatible */ |
cmd | 4337 | drivers/block/sbpcd.c | msg(DBG_IOC,"ioctl: unknown function request %04X\n", cmd); |
cmd | 4376 | drivers/block/sbpcd.c | if (CURRENT->cmd != READ) |
cmd | 4378 | drivers/block/sbpcd.c | msg(DBG_INF, "bad cmd %d\n", CURRENT->cmd); |
cmd | 245 | drivers/block/sjcd.c | static void sjcd_send_cmd( unsigned char cmd ){ |
cmd | 247 | drivers/block/sjcd.c | printk( "sjcd: send_cmd( 0x%x )\n", cmd ); |
cmd | 249 | drivers/block/sjcd.c | outb( cmd, SJCDPORT( 0 ) ); |
cmd | 258 | drivers/block/sjcd.c | static void sjcd_send_1_cmd( unsigned char cmd, unsigned char a ){ |
cmd | 260 | drivers/block/sjcd.c | printk( "sjcd: send_1_cmd( 0x%x, 0x%x )\n", cmd, a ); |
cmd | 262 | drivers/block/sjcd.c | outb( cmd, SJCDPORT( 0 ) ); |
cmd | 272 | drivers/block/sjcd.c | static void sjcd_send_4_cmd( unsigned char cmd, unsigned char a, |
cmd | 275 | drivers/block/sjcd.c | printk( "sjcd: send_4_cmd( 0x%x )\n", cmd ); |
cmd | 277 | drivers/block/sjcd.c | outb( cmd, SJCDPORT( 0 ) ); |
cmd | 290 | drivers/block/sjcd.c | static void sjcd_send_6_cmd( unsigned char cmd, struct sjcd_play_msf *pms ){ |
cmd | 292 | drivers/block/sjcd.c | printk( "sjcd: send_long_cmd( 0x%x )\n", cmd ); |
cmd | 294 | drivers/block/sjcd.c | outb( cmd, SJCDPORT( 0 ) ); |
cmd | 638 | drivers/block/sjcd.c | unsigned int cmd, unsigned long arg ){ |
cmd | 649 | drivers/block/sjcd.c | switch( cmd ){ |
cmd | 912 | drivers/block/sjcd.c | CURRENT->cmd == READ && CURRENT->sector != -1 ) |
cmd | 206 | drivers/block/sonycd535.c | static int do_sony_cmd(Byte * cmd, int nCmd, Byte status[2], |
cmd | 444 | drivers/block/sonycd535.c | Byte cmd; |
cmd | 504 | drivers/block/sonycd535.c | cmd = SONY535_SPIN_UP; |
cmd | 505 | drivers/block/sonycd535.c | do_sony_cmd(&cmd, 1, e_status, NULL, 0, 0); |
cmd | 545 | drivers/block/sonycd535.c | do_sony_cmd(Byte * cmd, int n_cmd, Byte status[2], |
cmd | 552 | drivers/block/sonycd535.c | outb(cmd[i], command_reg); |
cmd | 566 | drivers/block/sonycd535.c | *cmd, status[0], status[1]); |
cmd | 724 | drivers/block/sonycd535.c | Byte cmd; |
cmd | 727 | drivers/block/sonycd535.c | cmd = SONY535_REQUEST_DRIVE_STATUS_1; |
cmd | 728 | drivers/block/sonycd535.c | if (do_sony_cmd(&cmd, 1, status, NULL, 0, 0) != 0) |
cmd | 734 | drivers/block/sonycd535.c | cmd = SONY535_SPIN_UP; |
cmd | 735 | drivers/block/sonycd535.c | return do_sony_cmd(&cmd, 1, status, NULL, 0, 0); |
cmd | 825 | drivers/block/sonycd535.c | Byte cmd[2]; |
cmd | 846 | drivers/block/sonycd535.c | switch (CURRENT->cmd) { |
cmd | 933 | drivers/block/sonycd535.c | cmd[0] = SONY535_SPIN_UP; |
cmd | 934 | drivers/block/sonycd535.c | do_sony_cmd(cmd, 1, status, NULL, 0, 0); |
cmd | 1015 | drivers/block/sonycd535.c | Byte cmd = SONY535_REQUEST_SUB_Q_DATA; |
cmd | 1022 | drivers/block/sonycd535.c | if ((dsc_status = do_sony_cmd(&cmd, 1, status, (Byte *) last_sony_subcode, |
cmd | 1110 | drivers/block/sonycd535.c | unsigned int cmd, |
cmd | 1130 | drivers/block/sonycd535.c | switch (cmd) { |
cmd | 223 | drivers/block/xd.c | switch (CURRENT->cmd) { |
cmd | 227 | drivers/block/xd.c | code = xd_readwrite(CURRENT->cmd,CURRENT_DEV,CURRENT->buffer,block,count); |
cmd | 238 | drivers/block/xd.c | static int xd_ioctl (struct inode *inode,struct file *file,u_int cmd,u_long arg) |
cmd | 244 | drivers/block/xd.c | switch (cmd) { |
cmd | 459 | drivers/char/cyclades.c | write_cy_cmd(u_char *base_addr, u_char cmd) |
cmd | 480 | drivers/char/cyclades.c | base_addr[CyCCR] = cmd; |
cmd | 1859 | drivers/char/cyclades.c | set_modem_info(struct cyclades_port * info, unsigned int cmd, |
cmd | 1874 | drivers/char/cyclades.c | switch (cmd) { |
cmd | 2081 | drivers/char/cyclades.c | unsigned int cmd, unsigned long arg) |
cmd | 2088 | drivers/char/cyclades.c | printk("cy_ioctl ttyC%d, cmd = %x arg = %lx\n", info->line, cmd, arg); /* */ |
cmd | 2091 | drivers/char/cyclades.c | switch (cmd) { |
cmd | 2167 | drivers/char/cyclades.c | ret_val = set_modem_info(info, cmd, (unsigned int *) arg); |
cmd | 397 | drivers/char/lp.c | unsigned int cmd, unsigned long arg) |
cmd | 403 | drivers/char/lp.c | printk("lp%d ioctl, cmd: 0x%x, arg: 0x%x\n", minor, cmd, arg); |
cmd | 409 | drivers/char/lp.c | if (cmd <= OLD_IOCTL_MAX) |
cmd | 411 | drivers/char/lp.c | minor, cmd); |
cmd | 412 | drivers/char/lp.c | switch ( cmd ) { |
cmd | 107 | drivers/char/scc.c | static int scc_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg); |
cmd | 1277 | drivers/char/scc.c | kiss_set_param(struct scc_channel *scc,char cmd, unsigned int val) |
cmd | 1283 | drivers/char/scc.c | switch(cmd){ |
cmd | 1679 | drivers/char/scc.c | scc_ioctl(struct tty_struct *tty, struct file * file, unsigned int cmd, unsigned long arg) |
cmd | 1700 | drivers/char/scc.c | if (cmd == TIOCSCCINI) |
cmd | 1716 | drivers/char/scc.c | if (cmd == TIOCCHANINI) |
cmd | 1765 | drivers/char/scc.c | switch(cmd){ |
cmd | 1787 | drivers/char/scc.c | switch (cmd) { |
cmd | 1598 | drivers/char/serial.c | static int set_modem_info(struct async_struct * info, unsigned int cmd, |
cmd | 1608 | drivers/char/serial.c | switch (cmd) { |
cmd | 1826 | drivers/char/serial.c | unsigned int cmd, unsigned long arg) |
cmd | 1835 | drivers/char/serial.c | if ((cmd != TIOCGSERIAL) && (cmd != TIOCSSERIAL) && |
cmd | 1836 | drivers/char/serial.c | (cmd != TIOCSERCONFIG) && (cmd != TIOCSERGWILD) && |
cmd | 1837 | drivers/char/serial.c | (cmd != TIOCSERSWILD) && (cmd != TIOCSERGSTRUCT)) { |
cmd | 1842 | drivers/char/serial.c | switch (cmd) { |
cmd | 1880 | drivers/char/serial.c | return set_modem_info(info, cmd, (unsigned int *) arg); |
cmd | 665 | drivers/char/tpqic02.c | static int notify_cmd(char cmd, short ignore_ex) |
cmd | 669 | drivers/char/tpqic02.c | outb_p(cmd, QIC02_CMD_PORT); /* output the command */ |
cmd | 805 | drivers/char/tpqic02.c | static int send_qic02_cmd(int cmd, time_t timeout, int ignore_ex) |
cmd | 824 | drivers/char/tpqic02.c | status_cmd_pending = cmd; |
cmd | 826 | drivers/char/tpqic02.c | stat = notify_cmd(cmd, ignore_ex); /* tell drive new command was loaded, */ |
cmd | 828 | drivers/char/tpqic02.c | if (TP_HAVE_SEEK && (cmd == AR_QCMDV_SEEK_BLK)) { |
cmd | 973 | drivers/char/tpqic02.c | static void finish_rw(int cmd); |
cmd | 1077 | drivers/char/tpqic02.c | static int ll_do_qic_cmd(int cmd, time_t timeout) |
cmd | 1094 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": ll_do_qic_cmd(%x, %ld) failed\n", cmd, (long) timeout); |
cmd | 1104 | drivers/char/tpqic02.c | stat = send_qic02_cmd(cmd, timeout, 0); /* (checks for exceptions) */ |
cmd | 1106 | drivers/char/tpqic02.c | if (cmd==QCMD_RD_FM) { |
cmd | 1112 | drivers/char/tpqic02.c | } else if (cmd==QCMD_WRT_FM) { |
cmd | 1115 | drivers/char/tpqic02.c | } else if ((cmd==QCMD_REWIND) || (cmd==QCMD_ERASE) || (cmd==QCMD_RETEN)) { |
cmd | 1130 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": Exception persist in ll_do_qic_cmd[1](%x, %ld)", cmd, (long) timeout); |
cmd | 1148 | drivers/char/tpqic02.c | if (tp_sense((cmd==QCMD_SEEK_EOD ? /*****************************/ |
cmd | 1151 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": Exception persist in ll_do_qic_cmd[2](%x, %ld)\n", cmd, (long) timeout); |
cmd | 1152 | drivers/char/tpqic02.c | if (cmd!=QCMD_RD_FM) |
cmd | 1159 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": ll_do_qic_cmd %x: wait failed, stat == 0x%x\n", cmd, stat); |
cmd | 1191 | drivers/char/tpqic02.c | static void terminate_read(int cmd) |
cmd | 1195 | drivers/char/tpqic02.c | if (cmd != QCMD_RD_FM) { |
cmd | 1219 | drivers/char/tpqic02.c | static void terminate_write(int cmd) |
cmd | 1226 | drivers/char/tpqic02.c | if (cmd != QCMD_WRT_FM) { |
cmd | 1243 | drivers/char/tpqic02.c | static void finish_rw(int cmd) |
cmd | 1249 | drivers/char/tpqic02.c | terminate_read(cmd); |
cmd | 1250 | drivers/char/tpqic02.c | terminate_write(cmd); |
cmd | 1258 | drivers/char/tpqic02.c | static int do_qic_cmd(int cmd, time_t timeout) |
cmd | 1263 | drivers/char/tpqic02.c | finish_rw(cmd); |
cmd | 1273 | drivers/char/tpqic02.c | if (cmd==QCMD_REWIND) /* don't wind beyond BOT ;-) */ |
cmd | 1277 | drivers/char/tpqic02.c | return ll_do_qic_cmd(cmd, timeout); |
cmd | 1285 | drivers/char/tpqic02.c | static int do_ioctl_cmd(int cmd) |
cmd | 1295 | drivers/char/tpqic02.c | switch (cmd) { |
cmd | 102 | drivers/char/tty_io.c | unsigned int cmd, unsigned long arg); |
cmd | 306 | drivers/char/tty_io.c | unsigned int cmd, unsigned long arg) |
cmd | 1302 | drivers/char/tty_io.c | unsigned int cmd, unsigned long arg) |
cmd | 1322 | drivers/char/tty_io.c | switch (cmd) { |
cmd | 1524 | drivers/char/tty_io.c | cmd, arg); |
cmd | 1530 | 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 | 108 | drivers/net/apricot.c | struct i596_cmd cmd; |
cmd | 116 | drivers/net/apricot.c | unsigned short cmd; |
cmd | 129 | drivers/net/apricot.c | struct i596_cmd *cmd; |
cmd | 192 | drivers/net/apricot.c | static void i596_add_cmd(struct device *dev, struct i596_cmd *cmd); |
cmd | 221 | drivers/net/apricot.c | rfd->cmd = CMD_EOL; |
cmd | 225 | drivers/net/apricot.c | rfd->cmd = 0x0000; |
cmd | 276 | drivers/net/apricot.c | lp->cmd_head = lp->scb.cmd = (struct i596_cmd *) I596_NULL; |
cmd | 378 | drivers/net/apricot.c | lp->rx_tail->cmd = 0; |
cmd | 382 | drivers/net/apricot.c | lp->rx_tail->cmd = CMD_EOL; |
cmd | 443 | drivers/net/apricot.c | lp->scb.cmd = lp->cmd_head; |
cmd | 487 | drivers/net/apricot.c | static void i596_add_cmd(struct device *dev, struct i596_cmd *cmd) |
cmd | 496 | drivers/net/apricot.c | cmd->status = 0; |
cmd | 497 | drivers/net/apricot.c | cmd->command |= (CMD_EOL|CMD_INTR); |
cmd | 498 | drivers/net/apricot.c | cmd->next = (struct i596_cmd *) I596_NULL; |
cmd | 503 | drivers/net/apricot.c | lp->cmd_tail->next = cmd; |
cmd | 506 | drivers/net/apricot.c | lp->cmd_head = cmd; |
cmd | 515 | drivers/net/apricot.c | lp->scb.cmd = cmd; |
cmd | 519 | drivers/net/apricot.c | lp->cmd_tail = cmd; |
cmd | 522 | drivers/net/apricot.c | lp->cmd_head = lp->scb.cmd; |
cmd | 646 | drivers/net/apricot.c | tx_cmd->cmd.command = CMD_FLEX|CmdTx; |
cmd | 748 | drivers/net/apricot.c | lp->scb.cmd = (struct i596_cmd *) I596_NULL; |
cmd | 880 | drivers/net/apricot.c | lp->scb.cmd = lp->cmd_head; |
cmd | 976 | drivers/net/apricot.c | struct i596_cmd *cmd; |
cmd | 982 | drivers/net/apricot.c | cmd = (struct i596_cmd *) kmalloc(sizeof(struct i596_cmd)+2+num_addrs*6, GFP_ATOMIC); |
cmd | 983 | drivers/net/apricot.c | if (cmd == NULL) |
cmd | 989 | drivers/net/apricot.c | cmd->command = CmdMulticastList; |
cmd | 990 | drivers/net/apricot.c | *((unsigned short *) (cmd + 1)) = num_addrs * 6; |
cmd | 991 | drivers/net/apricot.c | memcpy (((char *)(cmd + 1))+2, addrs, num_addrs * 6); |
cmd | 992 | drivers/net/apricot.c | print_eth (((char *)(cmd + 1)) + 2); |
cmd | 994 | drivers/net/apricot.c | i596_add_cmd(dev, cmd); |
cmd | 132 | drivers/net/atp.c | static unsigned short eeprom_op(short ioaddr, unsigned int cmd); |
cmd | 291 | drivers/net/atp.c | static unsigned short eeprom_op(short ioaddr, unsigned int cmd) |
cmd | 297 | drivers/net/atp.c | char outval = test_bit(num_bits, &cmd) ? EE_DATA_WRITE : 0; |
cmd | 410 | drivers/net/de4x5.c | static int de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd); |
cmd | 2486 | drivers/net/de4x5.c | static int de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
cmd | 2499 | drivers/net/de4x5.c | switch(ioc->cmd) { |
cmd | 623 | drivers/net/de4x5.h | unsigned short cmd; /* Command to run */ |
cmd | 290 | drivers/net/de600.c | #define de600_put_command(cmd) ( \ |
cmd | 293 | drivers/net/de600.c | outb_p(((rx_page | cmd) << 4) | COMMAND , DATA_PORT), \ |
cmd | 294 | drivers/net/de600.c | outb_p(((rx_page | cmd) & 0xf0) | COMMAND | HI_NIBBLE, DATA_PORT)) |
cmd | 247 | drivers/net/de620.c | de620_send_command(byte cmd) |
cmd | 250 | drivers/net/de620.c | if (cmd == W_DUMMY) |
cmd | 253 | drivers/net/de620.c | outb(cmd, DATA_PORT); |
cmd | 371 | drivers/net/depca.c | static int depca_ioctl(struct device *dev, struct ifreq *rq, int cmd); |
cmd | 1657 | drivers/net/depca.c | static int depca_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
cmd | 1669 | drivers/net/depca.c | switch(ioc->cmd) { |
cmd | 163 | drivers/net/depca.h | unsigned short cmd; /* Command to run */ |
cmd | 143 | drivers/net/eql.c | static int eql_ioctl(struct device *dev, struct ifreq *ifr, int cmd); /* */ |
cmd | 316 | drivers/net/eql.c | eql_ioctl(struct device *dev, struct ifreq *ifr, int cmd) |
cmd | 318 | drivers/net/eql.c | if(!suser() && cmd!=EQL_GETMASTRCFG && cmd!=EQL_GETSLAVECFG) |
cmd | 320 | drivers/net/eql.c | switch (cmd) |
cmd | 297 | drivers/net/ewrk3.c | static int ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd); |
cmd | 1611 | drivers/net/ewrk3.c | static int ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
cmd | 1623 | drivers/net/ewrk3.c | switch(ioc->cmd) { |
cmd | 294 | drivers/net/ewrk3.h | unsigned short cmd; /* Command to run */ |
cmd | 143 | drivers/net/ni52.c | if(!p->scb->cmd) break; \ |
cmd | 481 | drivers/net/ni52.c | p->scb->cmd = CUC_START; /* cmd.-unit start */ |
cmd | 507 | drivers/net/ni52.c | p->scb->cmd = CUC_START; /* cmd.-unit start */ |
cmd | 531 | drivers/net/ni52.c | p->scb->cmd = CUC_START; /* cmd.-unit start */ |
cmd | 546 | drivers/net/ni52.c | p->scb->cmd = p->scb->status & STAT_MASK; |
cmd | 566 | drivers/net/ni52.c | p->scb->cmd = p->scb->status & STAT_MASK; |
cmd | 624 | drivers/net/ni52.c | p->scb->cmd = CUC_START; |
cmd | 669 | drivers/net/ni52.c | p->scb->cmd = CUC_START; |
cmd | 745 | drivers/net/ni52.c | p->scb->cmd = stat; |
cmd | 767 | drivers/net/ni52.c | p->scb->cmd = RUC_RESUME; |
cmd | 777 | drivers/net/ni52.c | if(p->scb->cmd) /* timed out? */ |
cmd | 849 | drivers/net/ni52.c | p->scb->cmd = RUC_ABORT; /* usually the RU is in the 'no resource'-state .. abort it now. */ |
cmd | 919 | drivers/net/ni52.c | p->scb->cmd = RUC_START; |
cmd | 949 | drivers/net/ni52.c | p->scb->cmd = CUC_ABORT; |
cmd | 953 | drivers/net/ni52.c | p->scb->cmd = CUC_START; |
cmd | 999 | drivers/net/ni52.c | p->scb->cmd = CUC_START; |
cmd | 65 | drivers/net/ni52.h | unsigned short cmd; /* command word */ |
cmd | 155 | drivers/net/pi2.c | static int pi_ioctl(struct device *dev, struct ifreq *ifr, int cmd); |
cmd | 242 | drivers/net/pi2.c | int cmd; |
cmd | 251 | drivers/net/pi2.c | cmd = lp->base + CTL; |
cmd | 257 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R1, WT_FN_RDYFN | WT_RDY_RT | INT_ERR_Rx | EXT_INT_ENAB); |
cmd | 273 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_Rx_CRC); |
cmd | 276 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R1, |
cmd | 346 | drivers/net/pi2.c | int cmd; |
cmd | 352 | drivers/net/pi2.c | cmd = CTL + lp->base; |
cmd | 368 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 369 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 370 | drivers/net/pi2.c | if ((rdscc(lp->cardbase, cmd, R0) & DCD) != 0) { |
cmd | 374 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R15, CTSIE | DCDIE); |
cmd | 385 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R5, TxCRC_ENAB | RTS | Tx8); |
cmd | 401 | drivers/net/pi2.c | int cmd; |
cmd | 412 | drivers/net/pi2.c | cmd = lp->base + CTL; |
cmd | 439 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R1, WT_FN_RDYFN | EXT_INT_ENAB); |
cmd | 456 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_Tx_CRC | RES_Tx_P); |
cmd | 459 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R15, TxUIE); |
cmd | 462 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R1, WT_RDY_ENAB | WT_FN_RDYFN | EXT_INT_ENAB); |
cmd | 465 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EOM_L); |
cmd | 475 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 476 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 477 | drivers/net/pi2.c | if ((rdscc(lp->cardbase, cmd, R0) & DCD) != 0) { |
cmd | 492 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R5, TxCRC_ENAB | RTS | Tx8); |
cmd | 508 | drivers/net/pi2.c | int cmd; |
cmd | 518 | drivers/net/pi2.c | cmd = lp->base + CTL; |
cmd | 520 | drivers/net/pi2.c | rse = rdscc(lp->cardbase, cmd, R1); /* Get special condition bits from R1 */ |
cmd | 584 | drivers/net/pi2.c | int cmd; |
cmd | 593 | drivers/net/pi2.c | cmd = CTL + lp->base; |
cmd | 595 | drivers/net/pi2.c | rse = rdscc(lp->cardbase, cmd, R1); /* get status byte from R1 */ |
cmd | 597 | drivers/net/pi2.c | if ((rdscc(lp->cardbase, cmd, R0)) & Rx_CH_AV) { |
cmd | 619 | drivers/net/pi2.c | *lp->rcp++ = rdscc(lp->cardbase, cmd, R8); /* char to rcv buff */ |
cmd | 623 | drivers/net/pi2.c | (void) rdscc(lp->cardbase, cmd, R8); |
cmd | 624 | 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 | 1599 | drivers/net/pi2.c | static int pi_ioctl(struct device *dev, struct ifreq *ifr, int cmd) |
cmd | 1609 | drivers/net/pi2.c | if(cmd!=SIOCDEVPRIVATE) |
cmd | 1614 | drivers/net/pi2.c | switch (rq.cmd) { |
cmd | 73 | drivers/net/pi2.h | int cmd; |
cmd | 139 | drivers/net/plip.c | static int plip_ioctl(struct device *dev, struct ifreq *ifr, int cmd); |
cmd | 1014 | drivers/net/plip.c | plip_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
cmd | 102 | drivers/net/ppp.c | static int ppp_dev_ioctl(struct device *dev, struct ifreq *ifr, int cmd); |
cmd | 620 | drivers/net/ppp.c | static int ppp_dev_ioctl(struct device *dev, struct ifreq *ifr, int cmd) |
cmd | 961 | drivers/net/slip.c | slip_ioctl(struct tty_struct *tty, void *file, int cmd, void *arg) |
cmd | 972 | drivers/net/slip.c | switch(cmd) { |
cmd | 1043 | 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 | 590 | drivers/pci/pci.c | unsigned char cmd, tmp, hdr_type = 0; |
cmd | 649 | drivers/pci/pci.c | &cmd); |
cmd | 651 | drivers/pci/pci.c | cmd | PCI_COMMAND_MASTER); |
cmd | 656 | drivers/pci/pci.c | cmd); |
cmd | 181 | drivers/scsi/53c7,8xx.c | static void abnormal_finished (struct NCR53c7x0_cmd *cmd, int result); |
cmd | 188 | drivers/scsi/53c7,8xx.c | *cmd); |
cmd | 189 | drivers/scsi/53c7,8xx.c | static void intr_dma (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd); |
cmd | 194 | drivers/scsi/53c7,8xx.c | static void NCR53c8xx_dsa_fixup (struct NCR53c7x0_cmd *cmd); |
cmd | 197 | drivers/scsi/53c7,8xx.c | NCR53c7x0_cmd *cmd); |
cmd | 1305 | drivers/scsi/53c7,8xx.c | unsigned char cmd[6]; |
cmd | 1310 | drivers/scsi/53c7,8xx.c | cmd[0] = INQUIRY; |
cmd | 1311 | drivers/scsi/53c7,8xx.c | cmd[1] = cmd[2] = cmd[3] = cmd[5] = 0; |
cmd | 1312 | drivers/scsi/53c7,8xx.c | cmd[4] = sizeof(data); |
cmd | 1317 | drivers/scsi/53c7,8xx.c | dsa[5] = virt_to_bus(&cmd); |
cmd | 1396 | drivers/scsi/53c7,8xx.c | static void NCR53c8xx_dsa_fixup (struct NCR53c7x0_cmd *cmd) { |
cmd | 1397 | drivers/scsi/53c7,8xx.c | Scsi_Cmnd *c = cmd->cmd; |
cmd | 1403 | drivers/scsi/53c7,8xx.c | memcpy (cmd->dsa, hostdata->script + (hostdata->E_dsa_code_template / 4), |
cmd | 1406 | drivers/scsi/53c7,8xx.c | patch_abs_32 (cmd->dsa, Ent_dsa_code_template / sizeof(u32), |
cmd | 1407 | drivers/scsi/53c7,8xx.c | dsa_temp_jump_resume, virt_to_bus(cmd->dsa) + |
cmd | 1409 | drivers/scsi/53c7,8xx.c | patch_abs_rwri_data (cmd->dsa, Ent_dsa_code_template / sizeof(u32), |
cmd | 1411 | drivers/scsi/53c7,8xx.c | patch_abs_32 (cmd->dsa, Ent_dsa_code_template / sizeof(u32), |
cmd | 1412 | drivers/scsi/53c7,8xx.c | dsa_temp_dsa_next, virt_to_bus(cmd->dsa) + A_dsa_next); |
cmd | 1413 | drivers/scsi/53c7,8xx.c | patch_abs_32 (cmd->dsa, Ent_dsa_code_template / sizeof(u32), |
cmd | 1415 | drivers/scsi/53c7,8xx.c | patch_abs_rwri_data (cmd->dsa, Ent_dsa_code_template / sizeof(u32), |
cmd | 1434 | drivers/scsi/53c7,8xx.c | static void abnormal_finished (struct NCR53c7x0_cmd *cmd, int result) { |
cmd | 1435 | drivers/scsi/53c7,8xx.c | Scsi_Cmnd *c = cmd->cmd; |
cmd | 1449 | drivers/scsi/53c7,8xx.c | search && ((char*)bus_to_virt(search) + hostdata->dsa_start) != (char *) cmd->dsa; |
cmd | 1457 | drivers/scsi/53c7,8xx.c | if (cmd->prev) |
cmd | 1458 | drivers/scsi/53c7,8xx.c | cmd->prev->next = cmd->next; |
cmd | 1460 | drivers/scsi/53c7,8xx.c | if (cmd->next) |
cmd | 1461 | drivers/scsi/53c7,8xx.c | cmd->next->prev = cmd->prev; |
cmd | 1463 | drivers/scsi/53c7,8xx.c | if (hostdata->running_list == cmd) |
cmd | 1464 | drivers/scsi/53c7,8xx.c | hostdata->running_list = cmd->next; |
cmd | 1466 | drivers/scsi/53c7,8xx.c | cmd->next = hostdata->free; |
cmd | 1467 | drivers/scsi/53c7,8xx.c | hostdata->free = cmd; |
cmd | 1489 | drivers/scsi/53c7,8xx.c | NCR53c7x0_cmd *cmd) { |
cmd | 1493 | drivers/scsi/53c7,8xx.c | Scsi_Cmnd *c = cmd ? cmd->cmd : NULL; |
cmd | 1684 | drivers/scsi/53c7,8xx.c | NCR53c7x0_cmd *cmd) { |
cmd | 1686 | drivers/scsi/53c7,8xx.c | Scsi_Cmnd *c = cmd ? cmd->cmd : NULL; |
cmd | 1700 | drivers/scsi/53c7,8xx.c | if (cmd) |
cmd | 1723 | drivers/scsi/53c7,8xx.c | if (cmd) { |
cmd | 1725 | drivers/scsi/53c7,8xx.c | host->host_no, c->target, (cmd->flags & CMD_FLAG_SDTR) ? "accepting" : |
cmd | 1735 | drivers/scsi/53c7,8xx.c | if (cmd->flags & CMD_FLAG_SDTR) { |
cmd | 1736 | drivers/scsi/53c7,8xx.c | cmd->flags &= ~CMD_FLAG_SDTR; |
cmd | 1745 | drivers/scsi/53c7,8xx.c | cmd->flags |= CMD_FLAG_DID_SDTR; |
cmd | 1752 | drivers/scsi/53c7,8xx.c | patch_dsa_32 (cmd->dsa, dsa_msgout_other, 0, 5); |
cmd | 1753 | drivers/scsi/53c7,8xx.c | patch_dsa_32 (cmd->dsa, dsa_msgout_other, 1, |
cmd | 1837 | drivers/scsi/53c7,8xx.c | patch_dsa_32 (cmd->dsa, dsa_msgout, 0, 1); |
cmd | 1844 | drivers/scsi/53c7,8xx.c | patch_dsa_32 (cmd->dsa, dsa_cmdout, 0, 6); |
cmd | 1859 | drivers/scsi/53c7,8xx.c | patch_dsa_32 (cmd->dsa, dsa_dataout, 0, hostdata->E_other_transfer); |
cmd | 1860 | drivers/scsi/53c7,8xx.c | patch_dsa_32 (cmd->dsa, dsa_datain, 0, virt_to_bus(cmd->data_transfer_start)); |
cmd | 1861 | drivers/scsi/53c7,8xx.c | cmd->data_transfer_start[0] = (((DCMD_TYPE_BMI | DCMD_BMI_OP_MOVE_I | |
cmd | 1863 | drivers/scsi/53c7,8xx.c | cmd->data_transfer_start[1] = virt_to_bus(c->sense_buffer); |
cmd | 1865 | drivers/scsi/53c7,8xx.c | cmd->data_transfer_start[2] = ((DCMD_TYPE_TCI | DCMD_TCI_OP_JUMP) |
cmd | 1867 | drivers/scsi/53c7,8xx.c | cmd->data_transfer_start[3] = hostdata->E_other_transfer; |
cmd | 1876 | drivers/scsi/53c7,8xx.c | cmd->cmd->result = 0xffff; |
cmd | 1891 | drivers/scsi/53c7,8xx.c | if (cmd) |
cmd | 1892 | drivers/scsi/53c7,8xx.c | abnormal_finished (cmd, DID_ERROR << 16); |
cmd | 2350 | drivers/scsi/53c7,8xx.c | create_cmd (Scsi_Cmnd *cmd) { |
cmd | 2352 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
cmd | 2368 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(cmd->host); |
cmd | 2383 | drivers/scsi/53c7,8xx.c | !(hostdata->cmd_allocated[cmd->target] & (1 << cmd->lun))) { |
cmd | 2431 | drivers/scsi/53c7,8xx.c | switch (cmd->cmnd[0]) { |
cmd | 2439 | drivers/scsi/53c7,8xx.c | datain = 2 * (cmd->use_sg ? cmd->use_sg : 1) + 3; |
cmd | 2448 | drivers/scsi/53c7,8xx.c | print_command(cmd->cmnd); |
cmd | 2452 | drivers/scsi/53c7,8xx.c | cmd->use_sg); |
cmd | 2455 | drivers/scsi/53c7,8xx.c | dataout = 2 * (cmd->use_sg ? cmd->use_sg : 1) + 3; |
cmd | 2473 | drivers/scsi/53c7,8xx.c | datain = dataout = 2 * (cmd->use_sg ? cmd->use_sg : 1) + 3; |
cmd | 2497 | drivers/scsi/53c7,8xx.c | tmp->cmd = cmd; |
cmd | 2526 | drivers/scsi/53c7,8xx.c | patch_dsa_32(tmp->dsa, dsa_cmnd, 0, virt_to_bus(cmd)); |
cmd | 2527 | drivers/scsi/53c7,8xx.c | patch_dsa_32(tmp->dsa, dsa_select, 0, hostdata->sync[cmd->target]. |
cmd | 2535 | drivers/scsi/53c7,8xx.c | tmp->select[0] = IDENTIFY (1, cmd->lun); |
cmd | 2537 | drivers/scsi/53c7,8xx.c | tmp->select[0] = IDENTIFY (0, cmd->lun); |
cmd | 2540 | drivers/scsi/53c7,8xx.c | patch_dsa_32(tmp->dsa, dsa_cmdout, 0, cmd->cmd_len); |
cmd | 2541 | drivers/scsi/53c7,8xx.c | patch_dsa_32(tmp->dsa, dsa_cmdout, 1, virt_to_bus(cmd->cmnd)); |
cmd | 2551 | drivers/scsi/53c7,8xx.c | patch_dsa_32(tmp->dsa, dsa_msgin, 1, virt_to_bus(&cmd->result) + 1); |
cmd | 2553 | drivers/scsi/53c7,8xx.c | patch_dsa_32(tmp->dsa, dsa_status, 1, virt_to_bus(&cmd->result)); |
cmd | 2594 | drivers/scsi/53c7,8xx.c | for (i = 0; cmd->use_sg ? (i < cmd->use_sg) : !i; cmd_datain += 4, |
cmd | 2596 | drivers/scsi/53c7,8xx.c | u32 buf = cmd->use_sg ? |
cmd | 2597 | drivers/scsi/53c7,8xx.c | virt_to_bus(((struct scatterlist *)cmd->buffer)[i].address) : |
cmd | 2598 | drivers/scsi/53c7,8xx.c | virt_to_bus(cmd->request_buffer); |
cmd | 2599 | drivers/scsi/53c7,8xx.c | u32 count = cmd->use_sg ? |
cmd | 2600 | drivers/scsi/53c7,8xx.c | ((struct scatterlist *)cmd->buffer)[i].length : |
cmd | 2601 | drivers/scsi/53c7,8xx.c | cmd->request_bufflen; |
cmd | 2691 | drivers/scsi/53c7,8xx.c | int NCR53c7xx_queue_command (Scsi_Cmnd *cmd, void (* done)(Scsi_Cmnd *)) { |
cmd | 2694 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
cmd | 2703 | drivers/scsi/53c7,8xx.c | !(hostdata->debug_lun_limit[cmd->target] & (1 << cmd->lun)))) || |
cmd | 2704 | drivers/scsi/53c7,8xx.c | cmd->target > 7) { |
cmd | 2706 | drivers/scsi/53c7,8xx.c | cmd->target, cmd->lun); |
cmd | 2707 | drivers/scsi/53c7,8xx.c | cmd->result = (DID_BAD_TARGET << 16); |
cmd | 2708 | drivers/scsi/53c7,8xx.c | done(cmd); |
cmd | 2715 | drivers/scsi/53c7,8xx.c | cmd->result = (DID_BAD_TARGET << 16); |
cmd | 2716 | drivers/scsi/53c7,8xx.c | done(cmd); |
cmd | 2723 | drivers/scsi/53c7,8xx.c | switch (cmd->cmnd[0]) { |
cmd | 2728 | drivers/scsi/53c7,8xx.c | cmd->result = (DID_BAD_TARGET << 16); |
cmd | 2729 | drivers/scsi/53c7,8xx.c | done(cmd); |
cmd | 2734 | drivers/scsi/53c7,8xx.c | cmd->scsi_done = done; |
cmd | 2735 | drivers/scsi/53c7,8xx.c | cmd->result = 0xffff; /* The NCR will overwrite message |
cmd | 2738 | drivers/scsi/53c7,8xx.c | cmd->host_scribble = (unsigned char *) tmp = create_cmd (cmd); |
cmd | 2775 | drivers/scsi/53c7,8xx.c | target_was_busy = hostdata->busy[cmd->target][cmd->lun] |
cmd | 2882 | drivers/scsi/53c7,8xx.c | static void intr_scsi (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) { |
cmd | 2914 | drivers/scsi/53c7,8xx.c | if (cmd) { |
cmd | 2916 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->target, cmd->cmd->lun); |
cmd | 2917 | drivers/scsi/53c7,8xx.c | print_command (cmd->cmd->cmnd); |
cmd | 2937 | drivers/scsi/53c7,8xx.c | } else if (cmd) { |
cmd | 2938 | drivers/scsi/53c7,8xx.c | abnormal_finished(cmd, DID_BAD_TARGET << 16); |
cmd | 2948 | drivers/scsi/53c7,8xx.c | if (cmd) { |
cmd | 2950 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->target, cmd->cmd->lun); |
cmd | 2951 | drivers/scsi/53c7,8xx.c | abnormal_finished(cmd, DID_ERROR << 16); |
cmd | 2961 | drivers/scsi/53c7,8xx.c | if (cmd && cmd->cmd) { |
cmd | 2963 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->target, cmd->cmd->lun); |
cmd | 2964 | drivers/scsi/53c7,8xx.c | abnormal_finished (cmd, DID_PARITY << 16); |
cmd | 2990 | drivers/scsi/53c7,8xx.c | intr_phase_mismatch (host, cmd); |
cmd | 3046 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_cmd *cmd, /* command which halted */ |
cmd | 3121 | drivers/scsi/53c7,8xx.c | &(hostdata->running_list), cmd = |
cmd | 3122 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_cmd *) hostdata->running_list; cmd ; |
cmd | 3123 | drivers/scsi/53c7,8xx.c | cmd_prev_ptr = (struct NCR53c7x0_cmd **) &(cmd->next), |
cmd | 3124 | drivers/scsi/53c7,8xx.c | cmd = (struct NCR53c7x0_cmd *) cmd->next) { |
cmd | 3127 | drivers/scsi/53c7,8xx.c | if (!cmd) { |
cmd | 3132 | drivers/scsi/53c7,8xx.c | if (!(tmp = cmd->cmd)) { |
cmd | 3139 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->result); |
cmd | 3150 | drivers/scsi/53c7,8xx.c | if (cmd->prev) |
cmd | 3151 | drivers/scsi/53c7,8xx.c | cmd->prev->next = cmd->next; |
cmd | 3153 | drivers/scsi/53c7,8xx.c | *cmd_prev_ptr = (struct NCR53c7x0_cmd *) cmd->next; |
cmd | 3162 | drivers/scsi/53c7,8xx.c | cmd->next = hostdata->free; |
cmd | 3163 | drivers/scsi/53c7,8xx.c | hostdata->free = cmd; |
cmd | 3204 | drivers/scsi/53c7,8xx.c | cmd = (struct NCR53c7x0_cmd *) hostdata->current; |
cmd | 3207 | drivers/scsi/53c7,8xx.c | for (cmd = (struct NCR53c7x0_cmd *) |
cmd | 3208 | drivers/scsi/53c7,8xx.c | hostdata->running_list; cmd && |
cmd | 3210 | drivers/scsi/53c7,8xx.c | cmd->dsa; |
cmd | 3211 | drivers/scsi/53c7,8xx.c | cmd = (struct NCR53c7x0_cmd *)(cmd->next)); |
cmd | 3214 | drivers/scsi/53c7,8xx.c | if (cmd) { |
cmd | 3216 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->pid, (int) cmd->cmd->target, |
cmd | 3217 | drivers/scsi/53c7,8xx.c | (int) cmd->cmd->lun); |
cmd | 3218 | drivers/scsi/53c7,8xx.c | print_command (cmd->cmd->cmnd); |
cmd | 3227 | drivers/scsi/53c7,8xx.c | intr_scsi (host, cmd); |
cmd | 3233 | drivers/scsi/53c7,8xx.c | intr_dma (host, cmd); |
cmd | 3341 | drivers/scsi/53c7,8xx.c | *cmd) { |
cmd | 3350 | drivers/scsi/53c7,8xx.c | if (!cmd) { |
cmd | 3411 | drivers/scsi/53c7,8xx.c | if (dsp >= cmd->data_transfer_start && dsp < cmd->data_transfer_end) { |
cmd | 3499 | drivers/scsi/53c7,8xx.c | static void intr_dma (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) { |
cmd | 3614 | drivers/scsi/53c7,8xx.c | } else if (cmd) |
cmd | 3615 | drivers/scsi/53c7,8xx.c | abnormal_finished (cmd, DID_BAD_TARGET << 16); |
cmd | 3668 | drivers/scsi/53c7,8xx.c | switch ((tmp = hostdata->dstat_sir_intr (host, cmd))) { |
cmd | 3681 | drivers/scsi/53c7,8xx.c | intr_break (host, cmd); |
cmd | 3756 | drivers/scsi/53c7,8xx.c | int NCR53c7xx_abort (Scsi_Cmnd *cmd) { |
cmd | 3757 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
cmd | 3777 | drivers/scsi/53c7,8xx.c | curr && curr->cmd != cmd; prev = (volatile struct NCR53c7x0_cmd **) |
cmd | 3789 | drivers/scsi/53c7,8xx.c | cmd->result = 0; |
cmd | 3790 | drivers/scsi/53c7,8xx.c | cmd->scsi_done(cmd); |
cmd | 3802 | drivers/scsi/53c7,8xx.c | curr && curr->cmd != cmd; prev = (volatile struct NCR53c7x0_cmd **) |
cmd | 3808 | drivers/scsi/53c7,8xx.c | cmd->host->host_no); |
cmd | 3818 | drivers/scsi/53c7,8xx.c | curr = (struct NCR53c7x0_cmd *) cmd->host_scribble; |
cmd | 3822 | drivers/scsi/53c7,8xx.c | if (((cmd->result & 0xff00) == 0xff00) || |
cmd | 3823 | drivers/scsi/53c7,8xx.c | ((cmd->result & 0xff) == 0xff)) { |
cmd | 3829 | drivers/scsi/53c7,8xx.c | cmd->scsi_done(cmd); |
cmd | 3846 | drivers/scsi/53c7,8xx.c | NCR53c7xx_reset (Scsi_Cmnd *cmd) { |
cmd | 3852 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
cmd | 3864 | drivers/scsi/53c7,8xx.c | tmp = c->cmd; |
cmd | 3868 | drivers/scsi/53c7,8xx.c | if (tmp == cmd) |
cmd | 3874 | drivers/scsi/53c7,8xx.c | c = (struct NCR53c7x0_cmd *) cmd->host_scribble; |
cmd | 3879 | drivers/scsi/53c7,8xx.c | cmd->result = DID_RESET << 16; |
cmd | 3880 | 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 | 510 | drivers/scsi/aha1542.c | unchar *cmd = (unchar *) SCpnt->cmnd; |
cmd | 529 | drivers/scsi/aha1542.c | if(*cmd == REQUEST_SENSE){ |
cmd | 541 | drivers/scsi/aha1542.c | if (*cmd == READ_10 || *cmd == WRITE_10) |
cmd | 542 | drivers/scsi/aha1542.c | i = xscsi2int(cmd+2); |
cmd | 543 | drivers/scsi/aha1542.c | else if (*cmd == READ_6 || *cmd == WRITE_6) |
cmd | 544 | drivers/scsi/aha1542.c | i = scsi2int(cmd+2); |
cmd | 548 | drivers/scsi/aha1542.c | printk("aha1542_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
cmd | 550 | drivers/scsi/aha1542.c | printk("aha1542_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
cmd | 553 | drivers/scsi/aha1542.c | for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); |
cmd | 555 | drivers/scsi/aha1542.c | if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 593 | drivers/scsi/aha1542.c | if (*cmd == READ_10 || *cmd == READ_6) |
cmd | 595 | drivers/scsi/aha1542.c | else if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 598 | drivers/scsi/aha1542.c | memcpy(ccb[mbo].cdb, cmd, ccb[mbo].cdblen); |
cmd | 696 | drivers/scsi/aha1542.c | unchar cmd[5] = {CMD_MBINIT, AHA1542_MAILBOXES, 0, 0, 0}; |
cmd | 706 | drivers/scsi/aha1542.c | any2scsi((cmd+2), mb); |
cmd | 707 | drivers/scsi/aha1542.c | aha1542_out(bse, cmd, 5); |
cmd | 1029 | drivers/scsi/aha1542.c | static unchar cmd[] = { READ_CAPACITY, 0, 0, 0, 0, 0, 0, 0, 0, 0}; |
cmd | 1034 | drivers/scsi/aha1542.c | if (!aha1542_command(i, cmd, buf, sizeof(buf))) { |
cmd | 1044 | drivers/scsi/aha1542.c | unsigned char cmd[10]; |
cmd | 1047 | drivers/scsi/aha1542.c | cmd[0] = READ_10; |
cmd | 1048 | drivers/scsi/aha1542.c | cmd[1] = 0; |
cmd | 1049 | drivers/scsi/aha1542.c | xany2scsi(cmd+2, i); |
cmd | 1050 | drivers/scsi/aha1542.c | cmd[6] = 0; |
cmd | 1051 | drivers/scsi/aha1542.c | cmd[7] = 0; |
cmd | 1052 | drivers/scsi/aha1542.c | cmd[8] = 1; |
cmd | 1053 | drivers/scsi/aha1542.c | cmd[9] = 0; |
cmd | 1054 | drivers/scsi/aha1542.c | aha1542_command(0, cmd, buffer, 512); |
cmd | 249 | drivers/scsi/aha1740.c | unchar *cmd = (unchar *) SCpnt->cmnd; |
cmd | 258 | drivers/scsi/aha1740.c | if(*cmd == REQUEST_SENSE) |
cmd | 270 | drivers/scsi/aha1740.c | if (*cmd == READ_10 || *cmd == WRITE_10) |
cmd | 271 | drivers/scsi/aha1740.c | i = xscsi2int(cmd+2); |
cmd | 272 | drivers/scsi/aha1740.c | else if (*cmd == READ_6 || *cmd == WRITE_6) |
cmd | 273 | drivers/scsi/aha1740.c | i = scsi2int(cmd+2); |
cmd | 276 | drivers/scsi/aha1740.c | printk("aha1740_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
cmd | 278 | drivers/scsi/aha1740.c | for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); |
cmd | 311 | drivers/scsi/aha1740.c | if (*cmd == READ_10 || *cmd == READ_6) |
cmd | 313 | drivers/scsi/aha1740.c | else if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 316 | drivers/scsi/aha1740.c | memcpy(ecb[ecbno].cdb, cmd, ecb[ecbno].cdblen); |
cmd | 693 | drivers/scsi/aic7xxx.c | #define aic7xxx_error(cmd) ((cmd)->SCp.Status) |
cmd | 698 | drivers/scsi/aic7xxx.c | #define aic7xxx_status(cmd) ((cmd)->SCp.sent_command) |
cmd | 703 | drivers/scsi/aic7xxx.c | #define aic7xxx_position(cmd) ((cmd)->SCp.have_data_in) |
cmd | 786 | drivers/scsi/aic7xxx.c | Scsi_Cmnd *cmd; /* Scsi_Cmnd for this scb */ |
cmd | 1309 | drivers/scsi/aic7xxx.c | aic7xxx_length(Scsi_Cmnd *cmd, int sg_last) |
cmd | 1315 | drivers/scsi/aic7xxx.c | segments = cmd->use_sg - sg_last; |
cmd | 1316 | drivers/scsi/aic7xxx.c | sg = (struct scatterlist *) cmd->buffer; |
cmd | 1318 | drivers/scsi/aic7xxx.c | if (cmd->use_sg) |
cmd | 1320 | drivers/scsi/aic7xxx.c | for (i = length = 0; i < cmd->use_sg && i < segments; i++) |
cmd | 1327 | drivers/scsi/aic7xxx.c | length = cmd->request_bufflen; |
cmd | 1391 | drivers/scsi/aic7xxx.c | Scsi_Cmnd *cmd; |
cmd | 1712 | drivers/scsi/aic7xxx.c | if ((scb->state != SCB_ACTIVE) || (scb->cmd == NULL)) |
cmd | 1716 | drivers/scsi/aic7xxx.c | intstat, scbptr, scb->state, (unsigned int) scb->cmd); |
cmd | 1720 | drivers/scsi/aic7xxx.c | cmd = scb->cmd; |
cmd | 1722 | drivers/scsi/aic7xxx.c | aic7xxx_status(cmd) = scb->target_status; |
cmd | 1724 | drivers/scsi/aic7xxx.c | cmd->result = cmd->result | scb->target_status; |
cmd | 1736 | drivers/scsi/aic7xxx.c | if ((aic7xxx_error(cmd) == 0) && !(cmd->flags & WAS_SENSE)) |
cmd | 1747 | drivers/scsi/aic7xxx.c | cmd->flags = cmd->flags | WAS_SENSE; |
cmd | 1751 | drivers/scsi/aic7xxx.c | scb->sense_cmd[1] = cmd->lun << 5; |
cmd | 1752 | drivers/scsi/aic7xxx.c | scb->sense_cmd[4] = sizeof(cmd->sense_buffer); |
cmd | 1755 | drivers/scsi/aic7xxx.c | scb->sense_sg.address = (char *) &cmd->sense_buffer; |
cmd | 1756 | drivers/scsi/aic7xxx.c | scb->sense_sg.length = sizeof(cmd->sense_buffer); |
cmd | 1759 | drivers/scsi/aic7xxx.c | req_buf = &cmd->sense_buffer; |
cmd | 1760 | drivers/scsi/aic7xxx.c | req_buflen = sizeof(cmd->sense_buffer); |
cmd | 1762 | drivers/scsi/aic7xxx.c | cmd->cmd_len = COMMAND_SIZE(cmd->cmnd[0]); |
cmd | 1764 | drivers/scsi/aic7xxx.c | scb->target_channel_lun = ((cmd->target << 4) & 0xF0) | |
cmd | 1765 | drivers/scsi/aic7xxx.c | ((cmd->channel & 0x01) << 3) | (cmd->lun & 0x07); |
cmd | 1827 | drivers/scsi/aic7xxx.c | cmd->flags = cmd->flags | ASKED_FOR_SENSE; |
cmd | 1833 | drivers/scsi/aic7xxx.c | if (!aic7xxx_error(cmd)) |
cmd | 1835 | drivers/scsi/aic7xxx.c | aic7xxx_error(cmd) = DID_BUS_BUSY; |
cmd | 1841 | drivers/scsi/aic7xxx.c | if (!aic7xxx_error(cmd)) |
cmd | 1843 | drivers/scsi/aic7xxx.c | aic7xxx_error(cmd) = DID_RETRY_COMMAND; |
cmd | 1850 | drivers/scsi/aic7xxx.c | if (!aic7xxx_error(cmd)) |
cmd | 1852 | drivers/scsi/aic7xxx.c | aic7xxx_error(cmd) = DID_RETRY_COMMAND; |
cmd | 1862 | drivers/scsi/aic7xxx.c | if ((scb->state != SCB_ACTIVE) || (scb->cmd == NULL)) |
cmd | 1866 | drivers/scsi/aic7xxx.c | intstat, scbptr, scb->state, (unsigned int) scb->cmd); |
cmd | 1870 | drivers/scsi/aic7xxx.c | cmd = scb->cmd; |
cmd | 1875 | drivers/scsi/aic7xxx.c | if (!(cmd->flags & WAS_SENSE)) |
cmd | 1883 | drivers/scsi/aic7xxx.c | actual = aic7xxx_length(cmd, scb->residual_SG_segment_count); |
cmd | 1889 | drivers/scsi/aic7xxx.c | if (actual < cmd->underflow) |
cmd | 1893 | drivers/scsi/aic7xxx.c | cmd->target, cmd->underflow, actual); |
cmd | 1895 | drivers/scsi/aic7xxx.c | aic7xxx_error(cmd) = DID_RETRY_COMMAND; |
cmd | 1896 | drivers/scsi/aic7xxx.c | aic7xxx_status(cmd) = scb->target_status; |
cmd | 1905 | drivers/scsi/aic7xxx.c | if ((scb->state != SCB_ACTIVE) || (scb->cmd == NULL)) |
cmd | 1909 | drivers/scsi/aic7xxx.c | intstat, scbptr, scb->state, (unsigned int) scb->cmd); |
cmd | 1913 | drivers/scsi/aic7xxx.c | cmd = scb->cmd; |
cmd | 1920 | drivers/scsi/aic7xxx.c | (cmd->channel & 0x01) ? 'B':'A', |
cmd | 1921 | drivers/scsi/aic7xxx.c | cmd->target, cmd->lun & 0x07); |
cmd | 1934 | drivers/scsi/aic7xxx.c | scb->cmd = NULL; |
cmd | 1939 | drivers/scsi/aic7xxx.c | cmd->result = (DID_RETRY_COMMAND << 16); |
cmd | 1940 | drivers/scsi/aic7xxx.c | cmd->scsi_done(cmd); |
cmd | 1947 | drivers/scsi/aic7xxx.c | if ((scb->state != SCB_ACTIVE) || (scb->cmd == NULL)) |
cmd | 1951 | drivers/scsi/aic7xxx.c | intstat, scbptr, scb->state, (unsigned int) scb->cmd); |
cmd | 1988 | drivers/scsi/aic7xxx.c | if ((scb->state != SCB_ACTIVE) || (scb->cmd == NULL)) |
cmd | 2004 | drivers/scsi/aic7xxx.c | cmd = scb->cmd; |
cmd | 2015 | drivers/scsi/aic7xxx.c | unsigned char target_mask = (1 << (cmd->target & 0x07)); |
cmd | 2023 | drivers/scsi/aic7xxx.c | cmd->result = (DID_TIME_OUT << 16); |
cmd | 2086 | drivers/scsi/aic7xxx.c | scb->cmd = NULL; |
cmd | 2092 | drivers/scsi/aic7xxx.c | cmd->scsi_done(cmd); |
cmd | 2095 | drivers/scsi/aic7xxx.c | scb->position, scb->state, (unsigned int) scb->cmd); |
cmd | 2108 | drivers/scsi/aic7xxx.c | cmd->target, |
cmd | 2109 | drivers/scsi/aic7xxx.c | cmd->channel & 0x01, |
cmd | 2110 | drivers/scsi/aic7xxx.c | cmd->lun & 0x07); |
cmd | 2111 | drivers/scsi/aic7xxx.c | aic7xxx_error(cmd) = DID_PARITY; |
cmd | 2154 | drivers/scsi/aic7xxx.c | if ((scb->state != SCB_ACTIVE) || (scb->cmd == NULL)) |
cmd | 2160 | drivers/scsi/aic7xxx.c | scb->state, (unsigned int) scb->cmd); |
cmd | 2164 | drivers/scsi/aic7xxx.c | cmd = scb->cmd; |
cmd | 2166 | drivers/scsi/aic7xxx.c | cmd->result = (aic7xxx_error(cmd) << 16) | aic7xxx_status(cmd); |
cmd | 2167 | drivers/scsi/aic7xxx.c | if ((cmd->flags & WAS_SENSE) && !(cmd->flags & ASKED_FOR_SENSE)) |
cmd | 2169 | drivers/scsi/aic7xxx.c | cmd->flags = cmd->flags & ASKED_FOR_SENSE; |
cmd | 2173 | drivers/scsi/aic7xxx.c | scb->state, (unsigned int) scb->cmd, (unsigned int) p->free_scb); |
cmd | 2184 | drivers/scsi/aic7xxx.c | scb->cmd = NULL; |
cmd | 2194 | drivers/scsi/aic7xxx.c | scb->state, (unsigned int) scb->cmd, (unsigned int) p->free_scb); |
cmd | 2197 | drivers/scsi/aic7xxx.c | cmd->scsi_done(cmd); |
cmd | 2864 | drivers/scsi/aic7xxx.c | p->scb_array[i].cmd = NULL; |
cmd | 3257 | drivers/scsi/aic7xxx.c | Scsi_Cmnd *cmd, |
cmd | 3269 | drivers/scsi/aic7xxx.c | if (cmd->device->tagged_supported) |
cmd | 3271 | drivers/scsi/aic7xxx.c | if (cmd->device->tagged_queue == 0) |
cmd | 3274 | drivers/scsi/aic7xxx.c | "channel %d\n", cmd->target, cmd->channel); |
cmd | 3275 | drivers/scsi/aic7xxx.c | cmd->device->tagged_queue = 1; |
cmd | 3276 | drivers/scsi/aic7xxx.c | cmd->device->current_tag = 1; /* enable tagging */ |
cmd | 3278 | drivers/scsi/aic7xxx.c | cmd->tag = cmd->device->current_tag; |
cmd | 3279 | drivers/scsi/aic7xxx.c | cmd->device->current_tag = cmd->device->current_tag + 1; |
cmd | 3283 | drivers/scsi/aic7xxx.c | mask = (0x01 << cmd->target); |
cmd | 3289 | drivers/scsi/aic7xxx.c | printk("Sending WDTR request to target %d.\n", cmd->target); |
cmd | 3299 | drivers/scsi/aic7xxx.c | printk("Sending SDTR request to target %d.\n", cmd->target); |
cmd | 3306 | drivers/scsi/aic7xxx.c | cmd->target, cmd->cmnd[0], cmd->cmd_len, p->needwdtr, mask); |
cmd | 3308 | drivers/scsi/aic7xxx.c | scb->target_channel_lun = ((cmd->target << 4) & 0xF0) | |
cmd | 3309 | drivers/scsi/aic7xxx.c | ((cmd->channel & 0x01) << 3) | (cmd->lun & 0x07); |
cmd | 3321 | drivers/scsi/aic7xxx.c | length = aic7xxx_length(cmd, 0); |
cmd | 3332 | drivers/scsi/aic7xxx.c | addr = cmd->cmnd; |
cmd | 3333 | drivers/scsi/aic7xxx.c | scb->SCSI_cmd_length = cmd->cmd_len; |
cmd | 3336 | drivers/scsi/aic7xxx.c | if (cmd->use_sg) |
cmd | 3340 | drivers/scsi/aic7xxx.c | cmd->use_sg, length); |
cmd | 3342 | drivers/scsi/aic7xxx.c | scb->SG_segment_count = cmd->use_sg; |
cmd | 3343 | drivers/scsi/aic7xxx.c | memcpy(scb->SG_list_pointer, &cmd->request_buffer, |
cmd | 3350 | drivers/scsi/aic7xxx.c | (unsigned long) cmd->request_buffer, cmd->request_bufflen); |
cmd | 3354 | drivers/scsi/aic7xxx.c | scb->sg.address = (char *) cmd->request_buffer; |
cmd | 3355 | drivers/scsi/aic7xxx.c | scb->sg.length = cmd->request_bufflen; |
cmd | 3360 | drivers/scsi/aic7xxx.c | memcpy(scb->data_pointer, &cmd->request_buffer, sizeof(scb->data_pointer)); |
cmd | 3361 | drivers/scsi/aic7xxx.c | memcpy(scb->data_count, &cmd->request_bufflen, 3); |
cmd | 3374 | drivers/scsi/aic7xxx.c | aic7xxx_queue(Scsi_Cmnd *cmd, void (*fn)(Scsi_Cmnd *)) |
cmd | 3384 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) cmd->host->hostdata; |
cmd | 3387 | drivers/scsi/aic7xxx.c | if (!p->a_scanned && (cmd->channel == 0)) |
cmd | 3394 | drivers/scsi/aic7xxx.c | if (!p->b_scanned && (cmd->channel == 1)) |
cmd | 3403 | drivers/scsi/aic7xxx.c | cmd->cmnd[0], cmd->cmd_len, cmd->target, cmd->channel, |
cmd | 3404 | drivers/scsi/aic7xxx.c | cmd->lun & 0x07); |
cmd | 3475 | drivers/scsi/aic7xxx.c | scb->cmd = cmd; |
cmd | 3476 | drivers/scsi/aic7xxx.c | aic7xxx_position(cmd) = scb->position; |
cmd | 3482 | drivers/scsi/aic7xxx.c | aic7xxx_buildscb(p, cmd, scb); |
cmd | 3490 | drivers/scsi/aic7xxx.c | scb->position, (unsigned int) scb->cmd, |
cmd | 3524 | drivers/scsi/aic7xxx.c | cmd->scsi_done = fn; |
cmd | 3525 | drivers/scsi/aic7xxx.c | aic7xxx_error(cmd) = DID_OK; |
cmd | 3526 | drivers/scsi/aic7xxx.c | aic7xxx_status(cmd) = 0; |
cmd | 3528 | drivers/scsi/aic7xxx.c | cmd->result = 0; |
cmd | 3529 | drivers/scsi/aic7xxx.c | memset (&cmd->sense_buffer, 0, sizeof (cmd->sense_buffer)); |
cmd | 3565 | drivers/scsi/aic7xxx.c | aic7xxx_kill(Scsi_Cmnd *cmd, unsigned char message, |
cmd | 3576 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) cmd->host->hostdata; |
cmd | 3577 | drivers/scsi/aic7xxx.c | scb = &p->scb_array[aic7xxx_position(cmd)]; |
cmd | 3657 | drivers/scsi/aic7xxx.c | if (cmd->channel & 0x01) |
cmd | 3720 | drivers/scsi/aic7xxx.c | scb->cmd = NULL; /* clear the command pointer */ |
cmd | 3723 | drivers/scsi/aic7xxx.c | cmd->result = cmd->result << 16; |
cmd | 3724 | drivers/scsi/aic7xxx.c | cmd->scsi_done(cmd); |
cmd | 3736 | drivers/scsi/aic7xxx.c | aic7xxx_abort(Scsi_Cmnd *cmd) |
cmd | 3744 | drivers/scsi/aic7xxx.c | switch (aic7xxx_kill(cmd, ABORT, DID_ABORT, !0)) |
cmd | 3768 | drivers/scsi/aic7xxx.c | aic7xxx_reset(Scsi_Cmnd *cmd) |
cmd | 3773 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) cmd->host->hostdata; |
cmd | 3777 | drivers/scsi/aic7xxx.c | switch (aic7xxx_kill(cmd, BUS_DEVICE_RESET, DID_RESET, 0)) |
cmd | 3786 | drivers/scsi/aic7xxx.c | p->needsdtr = p->needsdtr & (1 << cmd->target); |
cmd | 3799 | drivers/scsi/aic7xxx.c | cmd->result = DID_RESET << 16; /* return reset code */ |
cmd | 3800 | drivers/scsi/aic7xxx.c | cmd->scsi_done(cmd); |
cmd | 3830 | drivers/scsi/aic7xxx.c | cmd->result = DID_RESET << 16; /* return reset code */ |
cmd | 3831 | drivers/scsi/aic7xxx.c | cmd->scsi_done(cmd); |
cmd | 572 | drivers/scsi/buslogic.c | unsigned char *cmd = (unsigned char *)scpnt->cmnd; |
cmd | 592 | drivers/scsi/buslogic.c | if (*cmd == REQUEST_SENSE) { |
cmd | 609 | drivers/scsi/buslogic.c | if (*cmd == READ_10 || *cmd == WRITE_10 |
cmd | 610 | drivers/scsi/buslogic.c | || *cmd == READ_6 || *cmd == WRITE_6) |
cmd | 611 | drivers/scsi/buslogic.c | i = *(int *)(cmd + 2); |
cmd | 615 | drivers/scsi/buslogic.c | target, *cmd, i, bufflen); |
cmd | 619 | drivers/scsi/buslogic.c | printk(" %02X", cmd[i]); |
cmd | 621 | drivers/scsi/buslogic.c | if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 676 | drivers/scsi/buslogic.c | if (*cmd == READ_10 || *cmd == READ_6) |
cmd | 678 | drivers/scsi/buslogic.c | else if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 681 | drivers/scsi/buslogic.c | memcpy(ccb->cdb, cmd, ccb->cdblen); |
cmd | 804 | drivers/scsi/buslogic.c | unsigned char cmd, count; |
cmd | 806 | drivers/scsi/buslogic.c | } cmd = { CMD_INITEXTMB, BUSLOGIC_MAILBOXES, mb }; |
cmd | 814 | drivers/scsi/buslogic.c | if (buslogic_out(base, (unsigned char *)&cmd, sizeof cmd)) |
cmd | 1278 | drivers/scsi/buslogic.c | unsigned char cmd[] |
cmd | 1288 | drivers/scsi/buslogic.c | if (!buslogic_command(i, cmd, buf, sizeof buf)) { |
cmd | 1299 | drivers/scsi/buslogic.c | cmd[0] = READ_10; |
cmd | 1300 | drivers/scsi/buslogic.c | cmd[1] = 0; |
cmd | 1301 | drivers/scsi/buslogic.c | xany2scsi(cmd + 2, i); |
cmd | 1302 | drivers/scsi/buslogic.c | cmd[6] = 0; |
cmd | 1303 | drivers/scsi/buslogic.c | cmd[7] = 0; |
cmd | 1304 | drivers/scsi/buslogic.c | cmd[8] = 1; |
cmd | 1305 | drivers/scsi/buslogic.c | cmd[9] = 0; |
cmd | 1306 | drivers/scsi/buslogic.c | buslogic_command(0, cmd, buffer, sizeof buffer); |
cmd | 565 | drivers/scsi/constants.c | void print_Scsi_Cmnd (Scsi_Cmnd *cmd) { |
cmd | 567 | drivers/scsi/constants.c | cmd->host->host_no, |
cmd | 568 | drivers/scsi/constants.c | cmd->target, |
cmd | 569 | drivers/scsi/constants.c | cmd->lun); |
cmd | 571 | drivers/scsi/constants.c | print_command (cmd->cmnd); |
cmd | 331 | drivers/scsi/eata.c | static inline unchar do_dma (ushort iobase, unsigned int addr, unchar cmd) { |
cmd | 342 | drivers/scsi/eata.c | outb(cmd, iobase + REG_CMD); |
cmd | 154 | drivers/scsi/eata_dma.c | Scsi_Cmnd *cmd; |
cmd | 176 | drivers/scsi/eata_dma.c | cmd = cp->cmd; |
cmd | 177 | drivers/scsi/eata_dma.c | base = (uint) cmd->host->base; |
cmd | 206 | drivers/scsi/eata_dma.c | irq, base, cmd->pid, cmd->target, cmd->lun, |
cmd | 212 | drivers/scsi/eata_dma.c | && cmd->device->type == TYPE_DISK |
cmd | 213 | drivers/scsi/eata_dma.c | && (HD(cmd)->t_state[cp->cp_channel][cp->cp_id] == RESET)) |
cmd | 216 | drivers/scsi/eata_dma.c | HD(cmd)->t_state[cp->cp_channel][cp->cp_id] = OK; |
cmd | 217 | drivers/scsi/eata_dma.c | if(HD(cmd)->do_latency == TRUE && cp->timestamp) { |
cmd | 221 | drivers/scsi/eata_dma.c | if(HD(cmd)->writes_lat[cp->sizeindex][1] > time) |
cmd | 222 | drivers/scsi/eata_dma.c | HD(cmd)->writes_lat[cp->sizeindex][1] = time; |
cmd | 223 | drivers/scsi/eata_dma.c | if(HD(cmd)->writes_lat[cp->sizeindex][2] < time) |
cmd | 224 | drivers/scsi/eata_dma.c | HD(cmd)->writes_lat[cp->sizeindex][2] = time; |
cmd | 225 | drivers/scsi/eata_dma.c | HD(cmd)->writes_lat[cp->sizeindex][3] += time; |
cmd | 226 | drivers/scsi/eata_dma.c | HD(cmd)->writes_lat[cp->sizeindex][0]++; |
cmd | 228 | drivers/scsi/eata_dma.c | if(HD(cmd)->reads_lat[cp->sizeindex][1] > time) |
cmd | 229 | drivers/scsi/eata_dma.c | HD(cmd)->reads_lat[cp->sizeindex][1] = time; |
cmd | 230 | drivers/scsi/eata_dma.c | if(HD(cmd)->reads_lat[cp->sizeindex][2] < time) |
cmd | 231 | drivers/scsi/eata_dma.c | HD(cmd)->reads_lat[cp->sizeindex][2] = time; |
cmd | 232 | drivers/scsi/eata_dma.c | HD(cmd)->reads_lat[cp->sizeindex][3] += time; |
cmd | 233 | drivers/scsi/eata_dma.c | HD(cmd)->reads_lat[cp->sizeindex][0]++; |
cmd | 238 | drivers/scsi/eata_dma.c | && cmd->device->type == TYPE_DISK |
cmd | 239 | drivers/scsi/eata_dma.c | && (cmd->sense_buffer[2] & 0xf) == RECOVERED_ERROR) |
cmd | 243 | drivers/scsi/eata_dma.c | HD(cmd)->t_timeout[cp->cp_channel][cp->cp_id] = OK; |
cmd | 249 | drivers/scsi/eata_dma.c | if (HD(cmd)->t_timeout[cp->cp_channel][cp->cp_id] > 1) |
cmd | 253 | drivers/scsi/eata_dma.c | HD(cmd)->t_timeout[cp->cp_channel][cp->cp_id]++; |
cmd | 258 | drivers/scsi/eata_dma.c | if (cmd->device->type != TYPE_TAPE) |
cmd | 264 | drivers/scsi/eata_dma.c | HD(cmd)->t_state[cp->cp_channel][i] = RESET; |
cmd | 278 | drivers/scsi/eata_dma.c | cmd->result = result | (scsi_stat << 1); |
cmd | 282 | drivers/scsi/eata_dma.c | || cmd->scsi_done == NULL || cmd->device->id == 7) |
cmd | 286 | drivers/scsi/eata_dma.c | x, cmd->device->channel, cmd->device->id, cmd->device->lun, |
cmd | 287 | drivers/scsi/eata_dma.c | cmd->pid, eata_stat, hba_stat, scsi_stat, |
cmd | 288 | drivers/scsi/eata_dma.c | cmd->sense_buffer[2] & 0xf, cmd->result); |
cmd | 295 | drivers/scsi/eata_dma.c | if(cmd->scsi_done != eata_scsi_done) cmd->scsi_done(cmd); |
cmd | 344 | drivers/scsi/eata_dma.c | int eata_queue(Scsi_Cmnd * cmd, void (* done) (Scsi_Cmnd *)) |
cmd | 362 | drivers/scsi/eata_dma.c | cmd->result = (DID_ERROR << 16) + QUEUE_FULL; |
cmd | 365 | drivers/scsi/eata_dma.c | hd = HD(cmd); |
cmd | 366 | drivers/scsi/eata_dma.c | sh = cmd->host; |
cmd | 393 | drivers/scsi/eata_dma.c | cmd->pid, cmd->target, cmd->lun, y)); |
cmd | 401 | drivers/scsi/eata_dma.c | if (cmd->cmnd[0] == WRITE_6 || cmd->cmnd[0] == WRITE_10 || |
cmd | 402 | drivers/scsi/eata_dma.c | cmd->cmnd[0] == WRITE_12 || cmd->cmnd[0] == READ_6 || |
cmd | 403 | drivers/scsi/eata_dma.c | cmd->cmnd[0] == READ_10 || cmd->cmnd[0] == READ_12) { |
cmd | 406 | drivers/scsi/eata_dma.c | switch(cmd->cmnd[0]) { |
cmd | 409 | drivers/scsi/eata_dma.c | x = cmd->cmnd[4]/2; |
cmd | 413 | drivers/scsi/eata_dma.c | sho = (short *) &cmd->cmnd[7]; |
cmd | 418 | drivers/scsi/eata_dma.c | lon = (long *) &cmd->cmnd[6]; |
cmd | 425 | drivers/scsi/eata_dma.c | if (cmd->cmnd[0] == WRITE_6 || cmd->cmnd[0] == WRITE_10 || |
cmd | 426 | drivers/scsi/eata_dma.c | cmd->cmnd[0] == WRITE_12){ |
cmd | 431 | drivers/scsi/eata_dma.c | cmd->scsi_done = (void *)done; |
cmd | 433 | drivers/scsi/eata_dma.c | switch (cmd->cmnd[0]) { |
cmd | 453 | drivers/scsi/eata_dma.c | || cmd->target == sh->this_id) |
cmd | 456 | drivers/scsi/eata_dma.c | if (cmd->use_sg) { |
cmd | 466 | drivers/scsi/eata_dma.c | cp->cp_datalen = htonl(cmd->use_sg * sizeof(struct eata_sg_list)); |
cmd | 467 | drivers/scsi/eata_dma.c | sl=(struct scatterlist *)cmd->request_buffer; |
cmd | 468 | drivers/scsi/eata_dma.c | for(i = 0; i < cmd->use_sg; i++, sl++){ |
cmd | 474 | drivers/scsi/eata_dma.c | cp->cp_datalen = htonl(cmd->request_bufflen); |
cmd | 475 | drivers/scsi/eata_dma.c | cp->cp_dataDMA = htonl((u32)cmd->request_buffer); |
cmd | 479 | drivers/scsi/eata_dma.c | cp->cp_reqDMA = htonl((u32) cmd->sense_buffer); |
cmd | 480 | drivers/scsi/eata_dma.c | cp->reqlen = sizeof(cmd->sense_buffer); |
cmd | 482 | drivers/scsi/eata_dma.c | cp->cp_id = cmd->target; |
cmd | 483 | drivers/scsi/eata_dma.c | cp->cp_channel = cmd->channel; |
cmd | 484 | drivers/scsi/eata_dma.c | cp->cp_lun = cmd->lun; |
cmd | 487 | drivers/scsi/eata_dma.c | memcpy(cp->cp_cdb, cmd->cmnd, cmd->cmd_len); |
cmd | 492 | drivers/scsi/eata_dma.c | cp->cmd = cmd; |
cmd | 493 | drivers/scsi/eata_dma.c | cmd->host_scribble = (char *)&hd->ccb[y]; |
cmd | 496 | drivers/scsi/eata_dma.c | cmd->result = DID_ERROR << 16; |
cmd | 498 | drivers/scsi/eata_dma.c | " done.\n", cmd->target, cmd->pid); |
cmd | 500 | drivers/scsi/eata_dma.c | if(done != (void *)eata_scsi_done) done(cmd); |
cmd | 504 | drivers/scsi/eata_dma.c | "slot %d irq %d\n", (s32)sh->base, cmd->pid, |
cmd | 505 | drivers/scsi/eata_dma.c | cmd->target, cmd->lun, y, sh->irq)); |
cmd | 512 | drivers/scsi/eata_dma.c | int eata_abort(Scsi_Cmnd * cmd) |
cmd | 521 | drivers/scsi/eata_dma.c | " reason %x\n", cmd->pid, cmd->target, cmd->lun, |
cmd | 522 | drivers/scsi/eata_dma.c | cmd->abort_reason)); |
cmd | 526 | drivers/scsi/eata_dma.c | while (inb((u32)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY) |
cmd | 533 | drivers/scsi/eata_dma.c | if (CD(cmd)->status == USED) { |
cmd | 538 | drivers/scsi/eata_dma.c | if (CD(cmd)->status == FREE) { |
cmd | 543 | drivers/scsi/eata_dma.c | if (CD(cmd)->status == RESET) { |
cmd | 549 | drivers/scsi/eata_dma.c | if (CD(cmd)->status == LOCKED) { |
cmd | 558 | drivers/scsi/eata_dma.c | int eata_reset(Scsi_Cmnd * cmd) |
cmd | 571 | drivers/scsi/eata_dma.c | " reason %x\n", cmd->pid, cmd->target, cmd->lun, |
cmd | 572 | drivers/scsi/eata_dma.c | cmd->abort_reason)); |
cmd | 574 | drivers/scsi/eata_dma.c | if (HD(cmd)->state == RESET) { |
cmd | 581 | drivers/scsi/eata_dma.c | while (inb((u32)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY) |
cmd | 591 | drivers/scsi/eata_dma.c | HD(cmd)->t_state[x][z] = RESET; |
cmd | 592 | drivers/scsi/eata_dma.c | HD(cmd)->t_timeout[x][z] = NO_TIMEOUT; |
cmd | 596 | drivers/scsi/eata_dma.c | for (x = 0; x < cmd->host->can_queue; x++) { |
cmd | 597 | drivers/scsi/eata_dma.c | if (HD(cmd)->ccb[x].status == FREE) |
cmd | 600 | drivers/scsi/eata_dma.c | if (HD(cmd)->ccb[x].status == LOCKED) { |
cmd | 601 | drivers/scsi/eata_dma.c | HD(cmd)->ccb[x].status = FREE; |
cmd | 606 | drivers/scsi/eata_dma.c | sp = HD(cmd)->ccb[x].cmd; |
cmd | 607 | drivers/scsi/eata_dma.c | HD(cmd)->ccb[x].status = RESET; |
cmd | 615 | drivers/scsi/eata_dma.c | if (sp == cmd) |
cmd | 620 | drivers/scsi/eata_dma.c | inb((u32) (cmd->host->base) + HA_RSTATUS); /* This might cause trouble */ |
cmd | 621 | drivers/scsi/eata_dma.c | eata_send_command(0, (u32) cmd->host->base, EATA_CMD_RESET); |
cmd | 624 | drivers/scsi/eata_dma.c | HD(cmd)->state = RESET; |
cmd | 639 | drivers/scsi/eata_dma.c | for (x = 0; x < cmd->host->can_queue; x++) { |
cmd | 642 | drivers/scsi/eata_dma.c | if (HD(cmd)->ccb[x].status != RESET) |
cmd | 645 | drivers/scsi/eata_dma.c | sp = HD(cmd)->ccb[x].cmd; |
cmd | 649 | drivers/scsi/eata_dma.c | HD(cmd)->ccb[x].status = LOCKED; |
cmd | 659 | drivers/scsi/eata_dma.c | HD(cmd)->state = FALSE; |
cmd | 76 | drivers/scsi/eata_generic.h | #define HD(cmd) ((hostdata *)&(cmd->host->hostdata)) |
cmd | 77 | drivers/scsi/eata_generic.h | #define CD(cmd) ((struct eata_ccb *)(cmd->host_scribble)) |
cmd | 300 | drivers/scsi/eata_generic.h | Scsi_Cmnd *cmd; /* address of cmd */ |
cmd | 131 | drivers/scsi/eata_pio.c | Scsi_Cmnd *cmd; |
cmd | 155 | drivers/scsi/eata_pio.c | cmd = cp->cmd; |
cmd | 156 | drivers/scsi/eata_pio.c | base = (uint) cmd->host->base; |
cmd | 165 | drivers/scsi/eata_pio.c | while ((cmd->SCp.Status)&&((z>0)||(odd))) |
cmd | 169 | drivers/scsi/eata_pio.c | *(cmd->SCp.ptr)=zwickel>>8; |
cmd | 170 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,1); |
cmd | 173 | drivers/scsi/eata_pio.c | x=min(z,cmd->SCp.this_residual/2); |
cmd | 174 | drivers/scsi/eata_pio.c | insw(base+HA_RDATA,cmd->SCp.ptr,x); |
cmd | 176 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,2*x); |
cmd | 177 | drivers/scsi/eata_pio.c | if ((z>0)&&(cmd->SCp.this_residual==1)) |
cmd | 180 | drivers/scsi/eata_pio.c | *(cmd->SCp.ptr)=zwickel&0xff; |
cmd | 181 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,1); z--; |
cmd | 193 | drivers/scsi/eata_pio.c | while ((cmd->SCp.Status)&&((z>0)||(odd))) |
cmd | 197 | drivers/scsi/eata_pio.c | zwickel+=*(cmd->SCp.ptr)<<8; |
cmd | 198 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,1); |
cmd | 203 | drivers/scsi/eata_pio.c | x=min(z,cmd->SCp.this_residual/2); |
cmd | 204 | drivers/scsi/eata_pio.c | outsw(base+HA_RDATA,cmd->SCp.ptr,x); |
cmd | 206 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,2*x); |
cmd | 207 | drivers/scsi/eata_pio.c | if ((z>0)&&(cmd->SCp.this_residual==1)) |
cmd | 209 | drivers/scsi/eata_pio.c | zwickel=*(cmd->SCp.ptr); |
cmd | 211 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,1); |
cmd | 234 | drivers/scsi/eata_pio.c | cmd->result=(DID_OK<<16); |
cmd | 238 | drivers/scsi/eata_pio.c | cmd->result=(DID_OK<<16)+0x02; |
cmd | 239 | drivers/scsi/eata_pio.c | else cmd->result=(DID_NO_CONNECT<<16); |
cmd | 252 | drivers/scsi/eata_pio.c | printk("stat: %#.2x, result: %#.8x\n", stat, cmd->result); |
cmd | 259 | drivers/scsi/eata_pio.c | if(cmd->scsi_done != eata_pio_scsi_done) cmd->scsi_done(cmd); |
cmd | 281 | drivers/scsi/eata_pio.c | int eata_pio_queue(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *)) |
cmd | 300 | drivers/scsi/eata_pio.c | cmd->result = (DID_ERROR << 16) + QUEUE_FULL; |
cmd | 303 | drivers/scsi/eata_pio.c | hd = HD(cmd); |
cmd | 304 | drivers/scsi/eata_pio.c | sh = cmd->host; |
cmd | 325 | drivers/scsi/eata_pio.c | memset(cmd->sense_buffer, 0, sizeof(cmd->sense_buffer)); |
cmd | 330 | drivers/scsi/eata_pio.c | cmd->pid, cmd->target, cmd->lun, y)); |
cmd | 333 | drivers/scsi/eata_pio.c | cmd->scsi_done = (void *)done; |
cmd | 335 | drivers/scsi/eata_pio.c | switch (cmd->cmnd[0]) { |
cmd | 354 | drivers/scsi/eata_pio.c | cp->Interpret = (cmd->target==hd->hostid); |
cmd | 355 | drivers/scsi/eata_pio.c | cp->cp_datalen=htonl((ulong)cmd->request_bufflen); |
cmd | 360 | drivers/scsi/eata_pio.c | cp->cp_id = cmd->target; |
cmd | 361 | drivers/scsi/eata_pio.c | cp->cp_lun = cmd->lun; |
cmd | 364 | drivers/scsi/eata_pio.c | memcpy(cp->cp_cdb, cmd->cmnd, COMMAND_SIZE(*cmd->cmnd)); |
cmd | 369 | drivers/scsi/eata_pio.c | cp->cmd = cmd; |
cmd | 370 | drivers/scsi/eata_pio.c | cmd->host_scribble = (char *)&hd->ccb[y]; |
cmd | 372 | drivers/scsi/eata_pio.c | if (cmd->use_sg==0) |
cmd | 374 | drivers/scsi/eata_pio.c | cmd->SCp.buffers_residual=1; |
cmd | 375 | drivers/scsi/eata_pio.c | cmd->SCp.ptr=cmd->request_buffer; |
cmd | 376 | drivers/scsi/eata_pio.c | cmd->SCp.this_residual=cmd->request_bufflen; |
cmd | 377 | drivers/scsi/eata_pio.c | cmd->SCp.buffer=NULL; |
cmd | 381 | drivers/scsi/eata_pio.c | cmd->SCp.buffer=cmd->request_buffer; |
cmd | 382 | drivers/scsi/eata_pio.c | cmd->SCp.buffers_residual=cmd->use_sg; |
cmd | 383 | drivers/scsi/eata_pio.c | cmd->SCp.ptr=cmd->SCp.buffer->address; |
cmd | 384 | drivers/scsi/eata_pio.c | cmd->SCp.this_residual=cmd->SCp.buffer->length; |
cmd | 386 | drivers/scsi/eata_pio.c | cmd->SCp.Status=(cmd->SCp.this_residual!=0); /* TRUE as long as bytes |
cmd | 391 | drivers/scsi/eata_pio.c | cmd->result = DID_ERROR << 16; |
cmd | 393 | drivers/scsi/eata_pio.c | cmd->target, cmd->pid); |
cmd | 395 | drivers/scsi/eata_pio.c | if(done != (void *)eata_pio_scsi_done) done(cmd); |
cmd | 404 | drivers/scsi/eata_pio.c | "slot %d irq %d\n", (long)sh->base, cmd->pid, |
cmd | 405 | drivers/scsi/eata_pio.c | cmd->target, cmd->lun, y, sh->irq)); |
cmd | 412 | drivers/scsi/eata_pio.c | int eata_pio_abort(Scsi_Cmnd * cmd) |
cmd | 421 | drivers/scsi/eata_pio.c | cmd->pid, cmd->target, cmd->lun, cmd->abort_reason)); |
cmd | 425 | drivers/scsi/eata_pio.c | while (inb((uint)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY) |
cmd | 432 | drivers/scsi/eata_pio.c | if (CD(cmd)->status == FREE) { |
cmd | 437 | drivers/scsi/eata_pio.c | if (CD(cmd)->status == USED) { |
cmd | 442 | drivers/scsi/eata_pio.c | if (CD(cmd)->status == RESET) { |
cmd | 448 | drivers/scsi/eata_pio.c | if (CD(cmd)->status == LOCKED) { |
cmd | 457 | drivers/scsi/eata_pio.c | int eata_pio_reset(Scsi_Cmnd * cmd) |
cmd | 468 | drivers/scsi/eata_pio.c | "reason %x\n", cmd->pid, cmd->target, cmd->lun, |
cmd | 469 | drivers/scsi/eata_pio.c | cmd->abort_reason)); |
cmd | 471 | drivers/scsi/eata_pio.c | if (HD(cmd)->state == RESET) { |
cmd | 479 | drivers/scsi/eata_pio.c | HD(cmd)->t_state[0][z] = RESET; |
cmd | 480 | drivers/scsi/eata_pio.c | HD(cmd)->t_timeout[0][z] = NO_TIMEOUT; |
cmd | 485 | drivers/scsi/eata_pio.c | for (x = 0; x < cmd->host->can_queue; x++) { |
cmd | 487 | drivers/scsi/eata_pio.c | if (HD(cmd)->ccb[x].status == FREE) |
cmd | 490 | drivers/scsi/eata_pio.c | sp = HD(cmd)->ccb[x].cmd; |
cmd | 491 | drivers/scsi/eata_pio.c | HD(cmd)->ccb[x].status = RESET; |
cmd | 501 | drivers/scsi/eata_pio.c | outb((uint) cmd->host->base+HA_WCOMMAND, EATA_CMD_RESET); |
cmd | 504 | drivers/scsi/eata_pio.c | HD(cmd)->state = RESET; |
cmd | 512 | drivers/scsi/eata_pio.c | for (x = 0; x < cmd->host->can_queue; x++) { |
cmd | 515 | drivers/scsi/eata_pio.c | if (HD(cmd)->ccb[x].status != RESET) |
cmd | 518 | drivers/scsi/eata_pio.c | sp = HD(cmd)->ccb[x].cmd; |
cmd | 523 | drivers/scsi/eata_pio.c | HD(cmd)->ccb[x].status = FREE; |
cmd | 530 | drivers/scsi/eata_pio.c | HD(cmd)->state = FALSE; |
cmd | 415 | drivers/scsi/in2000.c | unchar *cmd = (unchar *) SCpnt->cmnd; |
cmd | 430 | drivers/scsi/in2000.c | if ( *cmd == TEST_UNIT_READY ) |
cmd | 436 | drivers/scsi/in2000.c | if (*cmd == READ_10 || *cmd == WRITE_10) { |
cmd | 437 | drivers/scsi/in2000.c | i = xscsi2int((cmd+1)); |
cmd | 438 | drivers/scsi/in2000.c | } else if (*cmd == READ_6 || *cmd == WRITE_6) { |
cmd | 439 | drivers/scsi/in2000.c | i = scsi2int((cmd+1)); |
cmd | 446 | drivers/scsi/in2000.c | for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); |
cmd | 450 | drivers/scsi/in2000.c | if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 514 | drivers/scsi/in2000.c | outb(cmd[loop],INDATA); |
cmd | 292 | drivers/scsi/qlogic.c | static void ql_icmd(Scsi_Cmnd * cmd) |
cmd | 326 | drivers/scsi/qlogic.c | outb(cmd->target, qbase + 4); |
cmd | 328 | drivers/scsi/qlogic.c | for (i = 0; i < cmd->cmd_len; i++) |
cmd | 329 | drivers/scsi/qlogic.c | outb(cmd->cmnd[i], qbase + 2); |
cmd | 330 | drivers/scsi/qlogic.c | qlcmd = cmd; |
cmd | 336 | drivers/scsi/qlogic.c | static unsigned int ql_pcmd(Scsi_Cmnd * cmd) |
cmd | 373 | drivers/scsi/qlogic.c | reqlen = cmd->request_bufflen; |
cmd | 383 | drivers/scsi/qlogic.c | if (!cmd->use_sg) |
cmd | 384 | drivers/scsi/qlogic.c | ql_pdma(phase, cmd->request_buffer, cmd->request_bufflen); |
cmd | 386 | drivers/scsi/qlogic.c | sgcount = cmd->use_sg; |
cmd | 387 | drivers/scsi/qlogic.c | sglist = cmd->request_buffer; |
cmd | 471 | drivers/scsi/qlogic.c | static void qlidone(Scsi_Cmnd * cmd) {}; /* null function */ |
cmd | 475 | drivers/scsi/qlogic.c | int qlogic_command(Scsi_Cmnd * cmd) |
cmd | 480 | drivers/scsi/qlogic.c | qlogic_queuecommand(cmd, qlidone); |
cmd | 482 | drivers/scsi/qlogic.c | return cmd->result; |
cmd | 486 | drivers/scsi/qlogic.c | if (cmd->target == qinitid) |
cmd | 488 | drivers/scsi/qlogic.c | ql_icmd(cmd); |
cmd | 491 | drivers/scsi/qlogic.c | return ql_pcmd(cmd); |
cmd | 498 | drivers/scsi/qlogic.c | int qlogic_queuecommand(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *)) |
cmd | 500 | drivers/scsi/qlogic.c | if(cmd->target == qinitid) { |
cmd | 501 | drivers/scsi/qlogic.c | cmd->result = DID_BAD_TARGET << 16; |
cmd | 502 | drivers/scsi/qlogic.c | done(cmd); |
cmd | 506 | drivers/scsi/qlogic.c | cmd->scsi_done = done; |
cmd | 510 | drivers/scsi/qlogic.c | ql_icmd(cmd); |
cmd | 514 | drivers/scsi/qlogic.c | int qlogic_queuecommand(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *)) |
cmd | 645 | drivers/scsi/qlogic.c | int qlogic_abort(Scsi_Cmnd * cmd) |
cmd | 654 | drivers/scsi/qlogic.c | int qlogic_reset(Scsi_Cmnd * cmd) |
cmd | 2978 | drivers/scsi/scsi.c | req->cmd, |
cmd | 556 | drivers/scsi/scsi.h | extern int kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
cmd | 557 | drivers/scsi/scsi.h | extern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
cmd | 104 | drivers/scsi/scsi_debug.c | if (SCpnt->request.cmd != RW) panic ("Wrong operation"); \ |
cmd | 177 | drivers/scsi/scsi_debug.c | unchar *cmd = (unchar *) SCpnt->cmnd; |
cmd | 202 | drivers/scsi/scsi_debug.c | switch(*cmd){ |
cmd | 220 | drivers/scsi/scsi_debug.c | if(cmd[4]) printk("Medium removal inhibited..."); |
cmd | 258 | drivers/scsi/scsi_debug.c | if ((*cmd) == READ_10) |
cmd | 259 | drivers/scsi/scsi_debug.c | block = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); |
cmd | 261 | drivers/scsi/scsi_debug.c | block = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16); |
cmd | 339 | drivers/scsi/scsi_debug.c | memcpy(buff+sizeof(target), cmd, 24); |
cmd | 371 | drivers/scsi/scsi_debug.c | if ((*cmd) == WRITE_10) |
cmd | 372 | drivers/scsi/scsi_debug.c | block = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); |
cmd | 374 | drivers/scsi/scsi_debug.c | block = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16); |
cmd | 393 | drivers/scsi/scsi_debug.c | printk("Unknown command %d\n",*cmd); |
cmd | 110 | drivers/scsi/scsi_ioctl.c | static int ioctl_internal_command(Scsi_Device *dev, char * cmd) |
cmd | 116 | drivers/scsi/scsi_ioctl.c | scsi_do_cmd(SCpnt, cmd, NULL, 0, |
cmd | 131 | drivers/scsi/scsi_ioctl.c | if(cmd[0] == ALLOW_MEDIUM_REMOVAL) dev->lockable = 0; |
cmd | 173 | drivers/scsi/scsi_ioctl.c | char cmd[12]; |
cmd | 233 | drivers/scsi/scsi_ioctl.c | memcpy_fromfs ((void *) cmd, cmd_in, cmdlen); |
cmd | 245 | drivers/scsi/scsi_ioctl.c | cmd[1] = ( cmd[1] & 0x1f ) | (dev->lun << 5); |
cmd | 251 | drivers/scsi/scsi_ioctl.c | scsi_do_cmd(SCpnt, cmd, buf, needed, scsi_ioctl_done, MAX_TIMEOUT, |
cmd | 293 | drivers/scsi/scsi_ioctl.c | printk("%02x ", cmd[i]); |
cmd | 311 | drivers/scsi/scsi_ioctl.c | int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) |
cmd | 319 | drivers/scsi/scsi_ioctl.c | switch (cmd) { |
cmd | 381 | drivers/scsi/scsi_ioctl.c | int kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) { |
cmd | 386 | drivers/scsi/scsi_ioctl.c | tmp = scsi_ioctl (dev, cmd, arg); |
cmd | 17 | drivers/scsi/scsi_ioctl.h | extern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
cmd | 18 | drivers/scsi/scsi_ioctl.h | extern int kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
cmd | 236 | drivers/scsi/sd.c | if (SCpnt->request.cmd == READ) |
cmd | 251 | drivers/scsi/sd.c | if (SCpnt->request.cmd == READ) |
cmd | 464 | drivers/scsi/sd.c | unsigned char cmd[10]; |
cmd | 530 | drivers/scsi/sd.c | switch (SCpnt->request.cmd) |
cmd | 538 | drivers/scsi/sd.c | cmd[0] = WRITE_6; |
cmd | 541 | drivers/scsi/sd.c | cmd[0] = READ_6; |
cmd | 544 | drivers/scsi/sd.c | panic ("Unknown sd command %d\n", SCpnt->request.cmd); |
cmd | 762 | drivers/scsi/sd.c | if (SCpnt->request.cmd == WRITE) |
cmd | 784 | drivers/scsi/sd.c | if (SCpnt->request.cmd == WRITE) |
cmd | 791 | drivers/scsi/sd.c | (SCpnt->request.cmd == WRITE) ? "writing" : "reading", |
cmd | 795 | drivers/scsi/sd.c | cmd[1] = (SCpnt->lun << 5) & 0xe0; |
cmd | 814 | drivers/scsi/sd.c | cmd[0] += READ_10 - READ_6 ; |
cmd | 815 | drivers/scsi/sd.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
cmd | 816 | drivers/scsi/sd.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
cmd | 817 | drivers/scsi/sd.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
cmd | 818 | drivers/scsi/sd.c | cmd[5] = (unsigned char) block & 0xff; |
cmd | 819 | drivers/scsi/sd.c | cmd[6] = cmd[9] = 0; |
cmd | 820 | drivers/scsi/sd.c | cmd[7] = (unsigned char) (this_count >> 8) & 0xff; |
cmd | 821 | drivers/scsi/sd.c | cmd[8] = (unsigned char) this_count & 0xff; |
cmd | 828 | drivers/scsi/sd.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
cmd | 829 | drivers/scsi/sd.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
cmd | 830 | drivers/scsi/sd.c | cmd[3] = (unsigned char) block & 0xff; |
cmd | 831 | drivers/scsi/sd.c | cmd[4] = (unsigned char) this_count; |
cmd | 832 | drivers/scsi/sd.c | cmd[5] = 0; |
cmd | 843 | drivers/scsi/sd.c | scsi_do_cmd (SCpnt, (void *) cmd, buff, |
cmd | 899 | drivers/scsi/sd.c | unsigned char cmd[10]; |
cmd | 921 | drivers/scsi/sd.c | cmd[0] = TEST_UNIT_READY; |
cmd | 922 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
cmd | 923 | drivers/scsi/sd.c | memset ((void *) &cmd[2], 0, 8); |
cmd | 930 | drivers/scsi/sd.c | (void *) cmd, (void *) buffer, |
cmd | 950 | drivers/scsi/sd.c | cmd[0] = START_STOP; |
cmd | 951 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
cmd | 952 | drivers/scsi/sd.c | cmd[1] |= 1; /* Return immediately */ |
cmd | 953 | drivers/scsi/sd.c | memset ((void *) &cmd[2], 0, 8); |
cmd | 954 | drivers/scsi/sd.c | cmd[4] = 1; /* Start spin cycle */ |
cmd | 962 | drivers/scsi/sd.c | (void *) cmd, (void *) buffer, |
cmd | 988 | drivers/scsi/sd.c | cmd[0] = READ_CAPACITY; |
cmd | 989 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
cmd | 990 | drivers/scsi/sd.c | memset ((void *) &cmd[2], 0, 8); |
cmd | 998 | drivers/scsi/sd.c | (void *) cmd, (void *) buffer, |
cmd | 24 | drivers/scsi/sd_ioctl.c | int sd_ioctl(struct inode * inode, struct file * file, unsigned int cmd, unsigned long arg) |
cmd | 32 | drivers/scsi/sd_ioctl.c | switch (cmd) { |
cmd | 75 | drivers/scsi/sd_ioctl.c | return scsi_ioctl(rscsi_disks[MINOR(dev) >> 4].device , cmd, (void *) arg); |
cmd | 1604 | drivers/scsi/seagate.c | unsigned char buf[256 + sizeof(int) * 2], cmd[6], *data, *page; |
cmd | 1619 | drivers/scsi/seagate.c | cmd[0] = MODE_SENSE; |
cmd | 1620 | drivers/scsi/seagate.c | cmd[1] = (disk->device->lun << 5) & 0xe5; |
cmd | 1621 | drivers/scsi/seagate.c | cmd[2] = 0x04; /* Read page 4, rigid disk geometry page current values */ |
cmd | 1622 | drivers/scsi/seagate.c | cmd[3] = 0; |
cmd | 1623 | drivers/scsi/seagate.c | cmd[4] = 255; |
cmd | 1624 | drivers/scsi/seagate.c | cmd[5] = 0; |
cmd | 1634 | drivers/scsi/seagate.c | memcpy (data, cmd, 6); |
cmd | 1646 | drivers/scsi/seagate.c | cmd[2] = 0x03; /* Read page 3, format page current values */ |
cmd | 1647 | drivers/scsi/seagate.c | memcpy (data, cmd, 6); |
cmd | 323 | drivers/scsi/sr.c | unsigned char *cmd; /* the scsi-command */ |
cmd | 352 | drivers/scsi/sr.c | cmd = rec = &buf[8]; |
cmd | 363 | drivers/scsi/sr.c | cmd[0] = 0xde; |
cmd | 364 | drivers/scsi/sr.c | cmd[1] = 0x03; |
cmd | 365 | drivers/scsi/sr.c | cmd[2] = 0xb0; |
cmd | 399 | drivers/scsi/sr.c | cmd[0] = 0xc7; |
cmd | 400 | drivers/scsi/sr.c | cmd[1] = 3; |
cmd | 435 | drivers/scsi/sr.c | cmd[0] = 0x1a; |
cmd | 436 | drivers/scsi/sr.c | cmd[2] = 1; |
cmd | 437 | drivers/scsi/sr.c | cmd[4] = 12; |
cmd | 456 | drivers/scsi/sr.c | cmd[0] = 0x15; |
cmd | 457 | drivers/scsi/sr.c | cmd[1] = (1 << 4); |
cmd | 458 | drivers/scsi/sr.c | cmd[4] = 12; |
cmd | 459 | drivers/scsi/sr.c | send = &cmd[6]; /* this is a 6-Byte command */ |
cmd | 480 | drivers/scsi/sr.c | cmd[0] = 0x43; /* Read TOC */ |
cmd | 481 | drivers/scsi/sr.c | cmd[8] = 0x0c; |
cmd | 482 | drivers/scsi/sr.c | cmd[9] = 0x40; |
cmd | 615 | drivers/scsi/sr.c | unsigned char cmd[10], *buffer, tries; |
cmd | 659 | drivers/scsi/sr.c | switch (SCpnt->request.cmd) |
cmd | 666 | drivers/scsi/sr.c | cmd[0] = READ_6; |
cmd | 669 | drivers/scsi/sr.c | panic ("Unknown sr command %d\n", SCpnt->request.cmd); |
cmd | 672 | drivers/scsi/sr.c | cmd[1] = (SCpnt->lun << 5) & 0xe0; |
cmd | 846 | drivers/scsi/sr.c | cmd[0] += READ_10 - READ_6 ; |
cmd | 847 | drivers/scsi/sr.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
cmd | 848 | drivers/scsi/sr.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
cmd | 849 | drivers/scsi/sr.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
cmd | 850 | drivers/scsi/sr.c | cmd[5] = (unsigned char) block & 0xff; |
cmd | 851 | drivers/scsi/sr.c | cmd[6] = cmd[9] = 0; |
cmd | 852 | drivers/scsi/sr.c | cmd[7] = (unsigned char) (realcount >> 8) & 0xff; |
cmd | 853 | drivers/scsi/sr.c | cmd[8] = (unsigned char) realcount & 0xff; |
cmd | 863 | drivers/scsi/sr.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
cmd | 864 | drivers/scsi/sr.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
cmd | 865 | drivers/scsi/sr.c | cmd[3] = (unsigned char) block & 0xff; |
cmd | 866 | drivers/scsi/sr.c | cmd[4] = (unsigned char) realcount; |
cmd | 867 | drivers/scsi/sr.c | cmd[5] = 0; |
cmd | 876 | drivers/scsi/sr.c | for(i=0; i<12; i++) printk("%2.2x ", cmd[i]); |
cmd | 895 | drivers/scsi/sr.c | scsi_do_cmd (SCpnt, (void *) cmd, buffer, |
cmd | 950 | drivers/scsi/sr.c | unsigned char cmd[10]; |
cmd | 960 | drivers/scsi/sr.c | cmd[0] = READ_CAPACITY; |
cmd | 961 | drivers/scsi/sr.c | cmd[1] = (scsi_CDs[i].device->lun << 5) & 0xe0; |
cmd | 962 | drivers/scsi/sr.c | memset ((void *) &cmd[2], 0, 8); |
cmd | 969 | drivers/scsi/sr.c | (void *) cmd, (void *) buffer, |
cmd | 27 | drivers/scsi/sr_ioctl.c | extern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
cmd | 99 | drivers/scsi/sr_ioctl.c | int sr_ioctl(struct inode * inode, struct file * file, unsigned int cmd, unsigned long arg) |
cmd | 111 | drivers/scsi/sr_ioctl.c | switch (cmd) |
cmd | 456 | drivers/scsi/sr_ioctl.c | return scsi_ioctl(scsi_CDs[target].device,cmd,(void *) arg); |
cmd | 258 | drivers/scsi/st.c | unsigned char cmd[10]; |
cmd | 261 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 262 | drivers/scsi/st.c | cmd[1] = 0x01; /* Space FileMarks */ |
cmd | 263 | drivers/scsi/st.c | cmd[2] = cmd[3] = cmd[4] = 0xff; /* -1 filemarks */ |
cmd | 264 | drivers/scsi/st.c | cmd[5] = 0; |
cmd | 270 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, 0, |
cmd | 298 | drivers/scsi/st.c | unsigned char cmd[10]; |
cmd | 330 | drivers/scsi/st.c | memset(cmd, 0, 10); |
cmd | 331 | drivers/scsi/st.c | cmd[0] = WRITE_6; |
cmd | 332 | drivers/scsi/st.c | cmd[1] = 1; |
cmd | 334 | drivers/scsi/st.c | cmd[2] = blks >> 16; |
cmd | 335 | drivers/scsi/st.c | cmd[3] = blks >> 8; |
cmd | 336 | drivers/scsi/st.c | cmd[4] = blks; |
cmd | 339 | drivers/scsi/st.c | (void *) cmd, (STp->buffer)->b_data, transfer, |
cmd | 427 | drivers/scsi/st.c | unsigned char cmd[10]; |
cmd | 471 | drivers/scsi/st.c | memset ((void *) &cmd[0], 0, 10); |
cmd | 472 | drivers/scsi/st.c | cmd[0] = TEST_UNIT_READY; |
cmd | 475 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, |
cmd | 490 | drivers/scsi/st.c | memset ((void *) &cmd[0], 0, 10); |
cmd | 491 | drivers/scsi/st.c | cmd[0] = TEST_UNIT_READY; |
cmd | 494 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, |
cmd | 533 | drivers/scsi/st.c | memset ((void *) &cmd[0], 0, 10); |
cmd | 534 | drivers/scsi/st.c | cmd[0] = READ_BLOCK_LIMITS; |
cmd | 537 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, |
cmd | 567 | drivers/scsi/st.c | memset ((void *) &cmd[0], 0, 10); |
cmd | 568 | drivers/scsi/st.c | cmd[0] = MODE_SENSE; |
cmd | 569 | drivers/scsi/st.c | cmd[4] = 12; |
cmd | 572 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, |
cmd | 671 | drivers/scsi/st.c | static unsigned char cmd[10]; |
cmd | 694 | drivers/scsi/st.c | memset(cmd, 0, 10); |
cmd | 695 | drivers/scsi/st.c | cmd[0] = WRITE_FILEMARKS; |
cmd | 696 | drivers/scsi/st.c | cmd[4] = 1 + STp->two_fm; |
cmd | 699 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, |
cmd | 727 | drivers/scsi/st.c | printk("st%d: Buffer flushed, %d EOF(s) written\n", dev, cmd[4]); |
cmd | 762 | drivers/scsi/st.c | static unsigned char cmd[10]; |
cmd | 832 | drivers/scsi/st.c | memset(cmd, 0, 10); |
cmd | 833 | drivers/scsi/st.c | cmd[0] = WRITE_6; |
cmd | 834 | drivers/scsi/st.c | cmd[1] = (STp->block_size != 0); |
cmd | 861 | drivers/scsi/st.c | cmd[2] = blks >> 16; |
cmd | 862 | drivers/scsi/st.c | cmd[3] = blks >> 8; |
cmd | 863 | drivers/scsi/st.c | cmd[4] = blks; |
cmd | 867 | drivers/scsi/st.c | (void *) cmd, (STp->buffer)->b_data, transfer, |
cmd | 977 | drivers/scsi/st.c | cmd[2] = blks >> 16; |
cmd | 978 | drivers/scsi/st.c | cmd[3] = blks >> 8; |
cmd | 979 | drivers/scsi/st.c | cmd[4] = blks; |
cmd | 984 | drivers/scsi/st.c | (void *) cmd, (STp->buffer)->b_data, |
cmd | 1003 | drivers/scsi/st.c | static unsigned char cmd[10]; |
cmd | 1053 | drivers/scsi/st.c | memset(cmd, 0, 10); |
cmd | 1054 | drivers/scsi/st.c | cmd[0] = READ_6; |
cmd | 1055 | drivers/scsi/st.c | cmd[1] = (STp->block_size != 0); |
cmd | 1071 | drivers/scsi/st.c | cmd[2] = blks >> 16; |
cmd | 1072 | drivers/scsi/st.c | cmd[3] = blks >> 8; |
cmd | 1073 | drivers/scsi/st.c | cmd[4] = blks; |
cmd | 1078 | drivers/scsi/st.c | (void *) cmd, (STp->buffer)->b_data, |
cmd | 1295 | drivers/scsi/st.c | unsigned char cmd[10]; |
cmd | 1309 | drivers/scsi/st.c | memset(cmd, 0, 10); |
cmd | 1314 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1315 | drivers/scsi/st.c | cmd[1] = 0x01; /* Space FileMarks */ |
cmd | 1316 | drivers/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 1317 | drivers/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 1318 | drivers/scsi/st.c | cmd[4] = arg; |
cmd | 1322 | drivers/scsi/st.c | cmd[2] * 65536 + cmd[3] * 256 + cmd[4]); |
cmd | 1331 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1332 | drivers/scsi/st.c | cmd[1] = 0x01; /* Space FileMarks */ |
cmd | 1334 | drivers/scsi/st.c | cmd[2] = (ltmp >> 16); |
cmd | 1335 | drivers/scsi/st.c | cmd[3] = (ltmp >> 8); |
cmd | 1336 | drivers/scsi/st.c | cmd[4] = ltmp; |
cmd | 1339 | drivers/scsi/st.c | if (cmd[2] & 0x80) |
cmd | 1341 | drivers/scsi/st.c | ltmp = ltmp | (cmd[2] << 16) | (cmd[3] << 8) | cmd[4]; |
cmd | 1351 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1352 | drivers/scsi/st.c | cmd[1] = 0x00; /* Space Blocks */ |
cmd | 1353 | drivers/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 1354 | drivers/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 1355 | drivers/scsi/st.c | cmd[4] = arg; |
cmd | 1359 | drivers/scsi/st.c | cmd[2] * 65536 + cmd[3] * 256 + cmd[4]); |
cmd | 1366 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1367 | drivers/scsi/st.c | cmd[1] = 0x00; /* Space Blocks */ |
cmd | 1369 | drivers/scsi/st.c | cmd[2] = (ltmp >> 16); |
cmd | 1370 | drivers/scsi/st.c | cmd[3] = (ltmp >> 8); |
cmd | 1371 | drivers/scsi/st.c | cmd[4] = ltmp; |
cmd | 1374 | drivers/scsi/st.c | if (cmd[2] & 0x80) |
cmd | 1376 | drivers/scsi/st.c | ltmp = ltmp | (cmd[2] << 16) | (cmd[3] << 8) | cmd[4]; |
cmd | 1385 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1386 | drivers/scsi/st.c | cmd[1] = 0x04; /* Space Setmarks */ |
cmd | 1387 | drivers/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 1388 | drivers/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 1389 | drivers/scsi/st.c | cmd[4] = arg; |
cmd | 1393 | drivers/scsi/st.c | cmd[2] * 65536 + cmd[3] * 256 + cmd[4]); |
cmd | 1401 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1402 | drivers/scsi/st.c | cmd[1] = 0x04; /* Space Setmarks */ |
cmd | 1404 | drivers/scsi/st.c | cmd[2] = (ltmp >> 16); |
cmd | 1405 | drivers/scsi/st.c | cmd[3] = (ltmp >> 8); |
cmd | 1406 | drivers/scsi/st.c | cmd[4] = ltmp; |
cmd | 1409 | drivers/scsi/st.c | if (cmd[2] & 0x80) |
cmd | 1411 | drivers/scsi/st.c | ltmp = ltmp | (cmd[2] << 16) | (cmd[3] << 8) | cmd[4]; |
cmd | 1424 | drivers/scsi/st.c | cmd[0] = WRITE_FILEMARKS; |
cmd | 1426 | drivers/scsi/st.c | cmd[1] = 2; |
cmd | 1427 | drivers/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 1428 | drivers/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 1429 | drivers/scsi/st.c | cmd[4] = arg; |
cmd | 1435 | drivers/scsi/st.c | cmd[2] * 65536 + cmd[3] * 256 + cmd[4]); |
cmd | 1438 | drivers/scsi/st.c | cmd[2] * 65536 + cmd[3] * 256 + cmd[4]); |
cmd | 1447 | drivers/scsi/st.c | cmd[0] = REZERO_UNIT; |
cmd | 1449 | drivers/scsi/st.c | cmd[1] = 1; /* Don't wait for completion */ |
cmd | 1459 | drivers/scsi/st.c | cmd[0] = START_STOP; |
cmd | 1461 | drivers/scsi/st.c | cmd[1] = 1; /* Don't wait for completion */ |
cmd | 1478 | drivers/scsi/st.c | cmd[0] = START_STOP; |
cmd | 1480 | drivers/scsi/st.c | cmd[1] = 1; /* Don't wait for completion */ |
cmd | 1483 | drivers/scsi/st.c | cmd[4] = 3; |
cmd | 1504 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1505 | drivers/scsi/st.c | cmd[1] = 3; |
cmd | 1516 | drivers/scsi/st.c | cmd[0] = ERASE; |
cmd | 1517 | drivers/scsi/st.c | cmd[1] = 1; /* To the end of tape */ |
cmd | 1519 | drivers/scsi/st.c | cmd[1] |= 2; /* Don't wait for completion */ |
cmd | 1532 | drivers/scsi/st.c | cmd[0] = QFA_SEEK_BLOCK; |
cmd | 1533 | drivers/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 1534 | drivers/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 1535 | drivers/scsi/st.c | cmd[4] = arg; |
cmd | 1536 | drivers/scsi/st.c | cmd[5] = 0; |
cmd | 1539 | drivers/scsi/st.c | cmd[0] = SEEK_10; |
cmd | 1540 | drivers/scsi/st.c | cmd[1] = 4; |
cmd | 1541 | drivers/scsi/st.c | cmd[3] = (arg >> 24); |
cmd | 1542 | drivers/scsi/st.c | cmd[4] = (arg >> 16); |
cmd | 1543 | drivers/scsi/st.c | cmd[5] = (arg >> 8); |
cmd | 1544 | drivers/scsi/st.c | cmd[6] = arg; |
cmd | 1547 | drivers/scsi/st.c | cmd[1] |= 1; /* Don't wait for completion */ |
cmd | 1569 | drivers/scsi/st.c | cmd[0] = MODE_SELECT; |
cmd | 1570 | drivers/scsi/st.c | cmd[4] = datalen = 12; |
cmd | 1616 | drivers/scsi/st.c | (void *) cmd, (void *) (STp->buffer)->b_data, datalen, |
cmd | 1744 | drivers/scsi/st.c | int i, cmd, result; |
cmd | 1761 | drivers/scsi/st.c | cmd = cmd_in & IOCCMD_MASK; |
cmd | 1762 | drivers/scsi/st.c | if (cmd == (MTIOCTOP & IOCCMD_MASK)) { |
cmd | 1789 | drivers/scsi/st.c | else if (cmd == (MTIOCGET & IOCCMD_MASK)) { |
cmd | 1842 | drivers/scsi/st.c | else if (cmd == (MTIOCPOS & IOCCMD_MASK)) { |
cmd | 571 | drivers/scsi/wd7000.c | static inline int command_out(Adapter *host, unchar *cmd, int len) |
cmd | 576 | drivers/scsi/wd7000.c | outb(*cmd, host->iobase+ASC_COMMAND); |
cmd | 579 | drivers/scsi/wd7000.c | cmd++; |
cmd | 106 | drivers/sound/ad1848.c | static int ad1848_ioctl (int dev, unsigned int cmd, unsigned int arg, int local); |
cmd | 415 | drivers/sound/ad1848.c | ad1848_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg) |
cmd | 428 | drivers/sound/ad1848.c | if (((cmd >> 8) & 0xff) == 'M') |
cmd | 430 | drivers/sound/ad1848.c | if (cmd & IOC_IN) |
cmd | 431 | drivers/sound/ad1848.c | switch (cmd & 0xff) |
cmd | 438 | drivers/sound/ad1848.c | return IOCTL_OUT (arg, ad1848_mixer_set (devc, cmd & 0xff, IOCTL_IN (arg))); |
cmd | 441 | drivers/sound/ad1848.c | switch (cmd & 0xff) /* |
cmd | 468 | drivers/sound/ad1848.c | return IOCTL_OUT (arg, ad1848_mixer_get (devc, cmd & 0xff)); |
cmd | 763 | drivers/sound/ad1848.c | ad1848_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
cmd | 767 | drivers/sound/ad1848.c | switch (cmd) |
cmd | 415 | drivers/sound/aedsp16.c | WriteDSPCommand (int port, int cmd) |
cmd | 428 | drivers/sound/aedsp16.c | OUTB (cmd, port + DSP_COMMAND); |
cmd | 434 | drivers/sound/aedsp16.c | printk ("[aedsp16] DSP Command (0x%x) timeout.\n", cmd); |
cmd | 352 | drivers/sound/audio.c | unsigned int cmd, unsigned int arg) |
cmd | 357 | drivers/sound/audio.c | if (((cmd >> 8) & 0xff) == 'C') |
cmd | 360 | drivers/sound/audio.c | return audio_devs[dev]->coproc->ioctl (audio_devs[dev]->coproc->devc, cmd, arg, 0); |
cmd | 367 | drivers/sound/audio.c | switch (cmd) |
cmd | 376 | drivers/sound/audio.c | return DMAbuf_ioctl (dev, cmd, arg, 0); |
cmd | 391 | drivers/sound/audio.c | return DMAbuf_ioctl (dev, cmd, arg, 0); |
cmd | 408 | drivers/sound/audio.c | int err = DMAbuf_ioctl (dev, cmd, (unsigned long) &info, 1); |
cmd | 427 | drivers/sound/audio.c | int err = DMAbuf_ioctl (dev, cmd, (unsigned long) &info, 1); |
cmd | 445 | drivers/sound/audio.c | return DMAbuf_ioctl (dev, cmd, arg, 0); |
cmd | 528 | drivers/sound/audio.c | unsigned int cmd, unsigned int arg) |
cmd | 118 | drivers/sound/dev_table.h | int (*ioctl) (void *devc, unsigned int cmd, unsigned int arg, int local); |
cmd | 138 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg, int local); |
cmd | 156 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg); |
cmd | 167 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg); |
cmd | 210 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg); |
cmd | 229 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, unsigned int arg); |
cmd | 398 | drivers/sound/dmabuf.c | DMAbuf_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
cmd | 402 | drivers/sound/dmabuf.c | switch (cmd) |
cmd | 503 | drivers/sound/dmabuf.c | return audio_devs[dev]->ioctl (dev, cmd, arg, local); |
cmd | 1015 | drivers/sound/dmabuf.c | DMAbuf_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
cmd | 195 | drivers/sound/gus_midi.c | gus_midi_ioctl (int dev, unsigned cmd, unsigned arg) |
cmd | 870 | drivers/sound/gus_wave.c | unsigned int cmd, unsigned int arg) |
cmd | 873 | drivers/sound/gus_wave.c | switch (cmd) |
cmd | 1758 | drivers/sound/gus_wave.c | int voice, cmd; |
cmd | 1762 | drivers/sound/gus_wave.c | cmd = event[2]; |
cmd | 1769 | drivers/sound/gus_wave.c | (cmd != _GUS_VOICESAMPLE) && (cmd != _GUS_VOICE_POS)) |
cmd | 1772 | drivers/sound/gus_wave.c | switch (cmd) |
cmd | 1954 | drivers/sound/gus_wave.c | gus_sampling_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
cmd | 1956 | drivers/sound/gus_wave.c | switch (cmd) |
cmd | 2786 | drivers/sound/gus_wave.c | gus_default_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg) |
cmd | 2790 | drivers/sound/gus_wave.c | if (((cmd >> 8) & 0xff) == 'M') |
cmd | 2792 | drivers/sound/gus_wave.c | if (cmd & IOC_IN) |
cmd | 2793 | drivers/sound/gus_wave.c | switch (cmd & 0xff) |
cmd | 2864 | drivers/sound/gus_wave.c | switch (cmd & 0xff) /* |
cmd | 135 | drivers/sound/ics2101.c | ics2101_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg) |
cmd | 137 | drivers/sound/ics2101.c | if (((cmd >> 8) & 0xff) == 'M') |
cmd | 139 | drivers/sound/ics2101.c | if (cmd & IOC_IN) |
cmd | 140 | drivers/sound/ics2101.c | switch (cmd & 0xff) |
cmd | 143 | drivers/sound/ics2101.c | return gus_default_mixer_ioctl (dev, cmd, arg); |
cmd | 170 | drivers/sound/ics2101.c | switch (cmd & 0xff) /* |
cmd | 176 | drivers/sound/ics2101.c | return gus_default_mixer_ioctl (dev, cmd, arg); |
cmd | 46 | drivers/sound/midi_synth.c | #define STORE(cmd) \ |
cmd | 50 | drivers/sound/midi_synth.c | cmd; \ |
cmd | 254 | drivers/sound/midi_synth.c | unsigned int cmd, unsigned int arg) |
cmd | 260 | drivers/sound/midi_synth.c | switch (cmd) |
cmd | 2 | drivers/sound/midi_synth.h | unsigned int cmd, unsigned int arg); |
cmd | 376 | drivers/sound/midibuf.c | unsigned int cmd, unsigned int arg) |
cmd | 382 | drivers/sound/midibuf.c | if (((cmd >> 8) & 0xff) == 'C') |
cmd | 385 | drivers/sound/midibuf.c | return midi_devs[dev]->coproc->ioctl (midi_devs[dev]->coproc->devc, cmd, arg, 0); |
cmd | 392 | drivers/sound/midibuf.c | switch (cmd) |
cmd | 406 | drivers/sound/midibuf.c | return midi_devs[dev]->ioctl (dev, cmd, arg); |
cmd | 92 | drivers/sound/mpu401.c | #define write_command(base, cmd) OUTB(cmd, COMDPORT(base)) |
cmd | 150 | drivers/sound/mpu401.c | #define STORE(cmd) \ |
cmd | 154 | drivers/sound/mpu401.c | cmd; \ |
cmd | 593 | drivers/sound/mpu401.c | mpu401_command (int dev, mpu_command_rec * cmd) |
cmd | 625 | drivers/sound/mpu401.c | printk ("MPU-401: Command (0x%x) timeout\n", (int) cmd->cmd); |
cmd | 637 | drivers/sound/mpu401.c | write_command (devc->base, cmd->cmd); |
cmd | 653 | drivers/sound/mpu401.c | if (cmd->nr_args) |
cmd | 654 | drivers/sound/mpu401.c | for (i = 0; i < cmd->nr_args; i++) |
cmd | 658 | drivers/sound/mpu401.c | if (!mpu401_out (dev, cmd->data[i])) |
cmd | 661 | drivers/sound/mpu401.c | printk ("MPU: Command (0x%x), parm send failed.\n", (int) cmd->cmd); |
cmd | 667 | drivers/sound/mpu401.c | cmd->data[0] = 0; |
cmd | 669 | drivers/sound/mpu401.c | if (cmd->nr_returns) |
cmd | 670 | drivers/sound/mpu401.c | for (i = 0; i < cmd->nr_returns; i++) |
cmd | 676 | drivers/sound/mpu401.c | cmd->data[i] = read_data (devc->base); |
cmd | 694 | drivers/sound/mpu401.c | exec_cmd (int dev, int cmd, int data) |
cmd | 700 | drivers/sound/mpu401.c | rec.cmd = cmd & 0xff; |
cmd | 701 | drivers/sound/mpu401.c | rec.nr_args = ((cmd & 0xf0) == 0xE0); |
cmd | 702 | drivers/sound/mpu401.c | rec.nr_returns = ((cmd & 0xf0) == 0xA0); |
cmd | 755 | drivers/sound/mpu401.c | mpu401_ioctl (int dev, unsigned cmd, unsigned arg) |
cmd | 761 | drivers/sound/mpu401.c | switch (cmd) |
cmd | 813 | drivers/sound/mpu401.c | unsigned int cmd, unsigned int arg) |
cmd | 825 | drivers/sound/mpu401.c | switch (cmd) |
cmd | 134 | drivers/sound/opl3.c | unsigned int cmd, unsigned int arg) |
cmd | 136 | drivers/sound/opl3.c | switch (cmd) |
cmd | 217 | drivers/sound/pas2_midi.c | pas_midi_ioctl (int dev, unsigned cmd, unsigned arg) |
cmd | 260 | drivers/sound/pas2_mixer.c | pas_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg) |
cmd | 262 | 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 | 264 | drivers/sound/pas2_mixer.c | if (((cmd >> 8) & 0xff) == 'M') |
cmd | 266 | drivers/sound/pas2_mixer.c | if (cmd & IOC_IN) |
cmd | 267 | drivers/sound/pas2_mixer.c | return IOCTL_OUT (arg, pas_mixer_set (cmd & 0xff, IOCTL_IN (arg))); |
cmd | 273 | drivers/sound/pas2_mixer.c | switch (cmd & 0xff) |
cmd | 313 | drivers/sound/pas2_mixer.c | return IOCTL_OUT (arg, levels[cmd & 0xff]); |
cmd | 156 | drivers/sound/pas2_pcm.c | pas_pcm_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
cmd | 158 | drivers/sound/pas2_pcm.c | TRACE (printk ("pas2_pcm.c: static int pas_pcm_ioctl(unsigned int cmd = %X, unsigned int arg = %X)\n", cmd, arg)); |
cmd | 160 | drivers/sound/pas2_pcm.c | switch (cmd) |
cmd | 466 | drivers/sound/pss.c | pss_coproc_ioctl (void *dev_info, unsigned int cmd, unsigned int arg, int local) |
cmd | 470 | drivers/sound/pss.c | switch (cmd) |
cmd | 73 | drivers/sound/sb16_dsp.c | static int sb16_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg, int local); |
cmd | 159 | drivers/sound/sb16_dsp.c | sb16_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
cmd | 161 | drivers/sound/sb16_dsp.c | switch (cmd) |
cmd | 45 | drivers/sound/sb16_midi.c | #define sb16midi_cmd(cmd) OUTB(cmd, COMDPORT) |
cmd | 157 | drivers/sound/sb16_midi.c | sb16midi_ioctl (int dev, unsigned cmd, unsigned arg) |
cmd | 753 | drivers/sound/sb_dsp.c | sb_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
cmd | 755 | drivers/sound/sb_dsp.c | switch (cmd) |
cmd | 192 | drivers/sound/sb_midi.c | sb_midi_ioctl (int dev, unsigned cmd, unsigned arg) |
cmd | 445 | drivers/sound/sb_mixer.c | sb_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg) |
cmd | 447 | drivers/sound/sb_mixer.c | if (((cmd >> 8) & 0xff) == 'M') |
cmd | 449 | drivers/sound/sb_mixer.c | if (cmd & IOC_IN) |
cmd | 450 | drivers/sound/sb_mixer.c | switch (cmd & 0xff) |
cmd | 458 | drivers/sound/sb_mixer.c | return IOCTL_OUT (arg, sb_mixer_set (cmd & 0xff, IOCTL_IN (arg))); |
cmd | 461 | drivers/sound/sb_mixer.c | switch (cmd & 0xff) /* |
cmd | 491 | drivers/sound/sb_mixer.c | return IOCTL_OUT (arg, sb_mixer_get (cmd & 0xff)); |
cmd | 489 | drivers/sound/sequencer.c | unsigned char cmd = event[2]; |
cmd | 507 | drivers/sound/sequencer.c | if (cmd == MIDI_NOTEON && parm == 0) |
cmd | 509 | drivers/sound/sequencer.c | cmd = MIDI_NOTEOFF; |
cmd | 514 | drivers/sound/sequencer.c | switch (cmd) |
cmd | 571 | drivers/sound/sequencer.c | unsigned char cmd = event[2]; |
cmd | 585 | drivers/sound/sequencer.c | switch (cmd) |
cmd | 666 | drivers/sound/sequencer.c | unsigned char cmd = event[1]; |
cmd | 690 | drivers/sound/sequencer.c | switch (cmd) |
cmd | 1395 | drivers/sound/sequencer.c | unsigned int cmd, unsigned int arg) |
cmd | 1402 | drivers/sound/sequencer.c | switch (cmd) |
cmd | 1416 | drivers/sound/sequencer.c | return tmr->ioctl (tmr_no, cmd, arg); |
cmd | 1518 | drivers/sound/sequencer.c | return tmr->ioctl (tmr_no, cmd, arg); |
cmd | 1537 | drivers/sound/sequencer.c | return synth_devs[dev]->ioctl (dev, cmd, arg); |
cmd | 1558 | drivers/sound/sequencer.c | return IOCTL_OUT (arg, synth_devs[dev]->ioctl (dev, cmd, arg)); |
cmd | 1572 | drivers/sound/sequencer.c | synth_devs[dev]->ioctl (dev, cmd, arg); |
cmd | 1591 | drivers/sound/sequencer.c | return synth_devs[dev]->ioctl (dev, cmd, arg); |
cmd | 1746 | drivers/sound/sequencer.c | return synth_devs[0]->ioctl (0, cmd, arg); |
cmd | 1934 | drivers/sound/sequencer.c | unsigned int cmd, unsigned int arg) |
cmd | 11 | drivers/sound/sound_calls.h | int DMAbuf_ioctl(int dev, unsigned int cmd, unsigned int arg, int local); |
cmd | 32 | drivers/sound/sound_calls.h | unsigned int cmd, unsigned int arg); |
cmd | 49 | drivers/sound/sound_calls.h | unsigned int cmd, unsigned int arg); |
cmd | 71 | drivers/sound/sound_calls.h | unsigned int cmd, unsigned int arg); |
cmd | 113 | drivers/sound/sound_calls.h | unsigned int cmd, unsigned long arg); |
cmd | 191 | drivers/sound/sound_calls.h | int gus_default_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg); |
cmd | 251 | drivers/sound/sound_calls.h | unsigned int cmd, unsigned int arg); |
cmd | 471 | drivers/sound/sound_switch.c | unsigned int cmd, unsigned long arg) |
cmd | 473 | drivers/sound/sound_switch.c | DEB (printk ("sound_ioctl_sw(dev=%d, cmd=0x%x, arg=0x%x)\n", dev, cmd, arg)); |
cmd | 475 | drivers/sound/sound_switch.c | if ((cmd >> 8) & 0xff == 'M' && num_mixers > 0) /* Mixer ioctl */ |
cmd | 489 | drivers/sound/sound_switch.c | return mixer_devs[mixdev]->ioctl (mixdev, cmd, arg); |
cmd | 493 | drivers/sound/sound_switch.c | return mixer_devs[0]->ioctl (0, cmd, arg); |
cmd | 510 | drivers/sound/sound_switch.c | return mixer_devs[dev]->ioctl (dev, cmd, arg); |
cmd | 515 | drivers/sound/sound_switch.c | return sequencer_ioctl (dev, file, cmd, arg); |
cmd | 521 | drivers/sound/sound_switch.c | return audio_ioctl (dev, file, cmd, arg); |
cmd | 526 | drivers/sound/sound_switch.c | return MIDIbuf_ioctl (dev, file, cmd, arg); |
cmd | 175 | drivers/sound/sound_timer.c | unsigned char cmd = event[1]; |
cmd | 178 | drivers/sound/sound_timer.c | switch (cmd) |
cmd | 248 | drivers/sound/sound_timer.c | unsigned int cmd, unsigned int arg) |
cmd | 250 | drivers/sound/sound_timer.c | switch (cmd) |
cmd | 141 | drivers/sound/soundcard.c | unsigned int cmd, unsigned long arg) |
cmd | 148 | drivers/sound/soundcard.c | if (cmd & IOC_INOUT) |
cmd | 155 | drivers/sound/soundcard.c | len = (cmd & IOCSIZE_MASK) >> IOCSIZE_SHIFT; |
cmd | 157 | drivers/sound/soundcard.c | if (cmd & IOC_IN) |
cmd | 163 | drivers/sound/soundcard.c | if (cmd & IOC_OUT) |
cmd | 171 | drivers/sound/soundcard.c | return sound_ioctl_sw (dev, &files[dev], cmd, arg); |
cmd | 218 | drivers/sound/sscape.c | host_command1 (struct sscape_info *devc, int cmd) |
cmd | 222 | drivers/sound/sscape.c | buf[0] = (unsigned char) (cmd & 0xff); |
cmd | 228 | drivers/sound/sscape.c | host_command2 (struct sscape_info *devc, int cmd, int parm1) |
cmd | 232 | drivers/sound/sscape.c | buf[0] = (unsigned char) (cmd & 0xff); |
cmd | 239 | drivers/sound/sscape.c | host_command3 (struct sscape_info *devc, int cmd, int parm1, int parm2) |
cmd | 243 | drivers/sound/sscape.c | buf[0] = (unsigned char) (cmd & 0xff); |
cmd | 592 | drivers/sound/sscape.c | sscape_coproc_ioctl (void *dev_info, unsigned int cmd, unsigned int arg, int local) |
cmd | 595 | drivers/sound/sscape.c | switch (cmd) |
cmd | 716 | drivers/sound/sscape.c | sscape_audio_ioctl (int dev, unsigned int cmd, unsigned int arg, int local) |
cmd | 720 | 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, unsigned int arg) |
cmd | 207 | drivers/sound/sys_timer.c | switch (cmd) |
cmd | 48 | drivers/sound/uart6850.c | #define uart6850_cmd(cmd) OUTB(cmd, COMDPORT) |
cmd | 219 | drivers/sound/uart6850.c | uart6850_ioctl (int dev, unsigned cmd, unsigned 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 | 130 | fs/pipe.c | unsigned int cmd, unsigned long arg) |
cmd | 134 | fs/pipe.c | switch (cmd) { |
cmd | 26 | fs/smbfs/ioctl.c | unsigned int cmd, unsigned long arg) |
cmd | 30 | fs/smbfs/ioctl.c | switch (cmd) { |
cmd | 61 | fs/umsdos/ioctl.c | unsigned int cmd, |
cmd | 76 | fs/umsdos/ioctl.c | || cmd == UMSDOS_GETVERSION){ |
cmd | 98 | fs/umsdos/ioctl.c | PRINTK (("ioctl %d ",cmd)); |
cmd | 99 | fs/umsdos/ioctl.c | if (cmd == UMSDOS_GETVERSION){ |
cmd | 113 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_READDIR_DOS){ |
cmd | 126 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_READDIR_EMD){ |
cmd | 169 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_INIT_EMD){ |
cmd | 192 | fs/umsdos/ioctl.c | if (cmd == UMSDOS_CREAT_EMD){ |
cmd | 209 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_RENAME_DOS){ |
cmd | 224 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_UNLINK_EMD){ |
cmd | 242 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_UNLINK_DOS){ |
cmd | 253 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_RMDIR_DOS){ |
cmd | 264 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_STAT_DOS){ |
cmd | 288 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_DOS_SETUP){ |
cmd | 16 | include/linux/blkdev.h | int cmd; /* READ or WRITE */ |
cmd | 235 | include/linux/fd.h | unsigned char cmd[9]; |
cmd | 32 | include/linux/ioctl.h | #define IOC_SIZE(cmd) (((cmd) & IOCSIZE_MASK) >> IOCSIZE_SHIFT) |
cmd | 33 | include/linux/ioctl.h | #define IOCBASECMD(cmd) ((cmd) & ~IOCPARM_MASK) |
cmd | 34 | include/linux/ioctl.h | #define IOCGROUP(cmd) (((cmd) >> 8) & 0xFF) |
cmd | 74 | include/linux/msg.h | asmlinkage int sys_msgctl (int msqid, int cmd, struct msqid_ds *buf); |
cmd | 109 | include/linux/net.h | int (*ioctl) (struct socket *sock, unsigned int cmd, |
cmd | 125 | include/linux/net.h | int (*fcntl) (struct socket *sock, unsigned int cmd, |
cmd | 160 | include/linux/netdevice.h | int (*do_ioctl)(struct device *dev, struct ifreq *ifr, int cmd); |
cmd | 214 | 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 | 539 | include/linux/soundcard.h | unsigned char cmd; |
cmd | 314 | include/linux/tty.h | unsigned int cmd, unsigned long arg); |
cmd | 332 | include/linux/tty.h | unsigned int cmd, unsigned long arg); |
cmd | 133 | include/linux/tty_driver.h | unsigned int cmd, unsigned long arg); |
cmd | 27 | include/linux/tty_ldisc.h | unsigned int cmd, unsigned long arg); |
cmd | 93 | include/linux/ultrasound.h | #define _GUS_CMD(chn, voice, cmd, p1, p2) \ |
cmd | 95 | include/linux/ultrasound.h | _seqbuf[_seqbufptr+1] = (chn); _seqbuf[_seqbufptr+2] = cmd;\ |
cmd | 115 | include/linux/xd.h | static int xd_ioctl (struct inode *inode,struct file *file,unsigned int cmd,unsigned long arg); |
cmd | 14 | include/net/arp.h | extern int arp_ioctl(unsigned int cmd, void *arg); |
cmd | 35 | include/net/icmp.h | extern int icmp_ioctl(struct sock *sk, int cmd, |
cmd | 79 | include/net/ip.h | extern int ip_ioctl(struct sock *sk, int cmd, |
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 | 253 | 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 | 658 | net/appletalk/ddp.c | int atif_ioctl(int cmd, void *arg) |
cmd | 666 | net/appletalk/ddp.c | int ro=(cmd==SIOCSIFADDR); |
cmd | 683 | net/appletalk/ddp.c | switch(cmd) |
cmd | 785 | net/appletalk/ddp.c | static int atrtr_ioctl(unsigned int cmd, void *arg) |
cmd | 795 | net/appletalk/ddp.c | switch(cmd) |
cmd | 921 | net/appletalk/ddp.c | static int atalk_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 924 | net/appletalk/ddp.c | switch(cmd) |
cmd | 1730 | net/appletalk/ddp.c | static int atalk_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg) |
cmd | 1737 | net/appletalk/ddp.c | switch(cmd) |
cmd | 1774 | net/appletalk/ddp.c | return(atrtr_ioctl(cmd,(void *)arg)); |
cmd | 1781 | net/appletalk/ddp.c | return atif_ioctl(cmd,(void *)arg); |
cmd | 1796 | net/appletalk/ddp.c | return(dev_ioctl(cmd,(void *) arg)); |
cmd | 448 | net/ax25/af_ax25.c | static int ax25_uid_ioctl(int cmd, struct sockaddr_ax25 *sax) |
cmd | 452 | net/ax25/af_ax25.c | switch (cmd) { |
cmd | 626 | net/ax25/af_ax25.c | static int ax25_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 628 | net/ax25/af_ax25.c | switch(cmd) |
cmd | 1785 | net/ax25/af_ax25.c | static int ax25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 1791 | net/ax25/af_ax25.c | switch (cmd) { |
cmd | 1832 | net/ax25/af_ax25.c | return ax25_uid_ioctl(cmd, &sax25); |
cmd | 1859 | net/ax25/af_ax25.c | return(dev_ioctl(cmd, (void *)arg)); |
cmd | 1222 | net/core/dev.c | int dev_ioctl(unsigned int cmd, void *arg) |
cmd | 1224 | net/core/dev.c | switch(cmd) |
cmd | 1247 | net/core/dev.c | return dev_ifsioc(arg, cmd); |
cmd | 1267 | net/core/dev.c | return dev_ifsioc(arg, cmd); |
cmd | 1277 | net/core/dev.c | if((cmd >= SIOCDEVPRIVATE) && |
cmd | 1278 | net/core/dev.c | (cmd <= (SIOCDEVPRIVATE + 15))) { |
cmd | 1279 | net/core/dev.c | return dev_ifsioc(arg, cmd); |
cmd | 402 | net/ipv4/af_inet.c | static int inet_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 408 | net/ipv4/af_inet.c | switch(cmd) |
cmd | 1284 | net/ipv4/af_inet.c | static int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 1290 | net/ipv4/af_inet.c | switch(cmd) |
cmd | 1320 | net/ipv4/af_inet.c | return(ip_rt_ioctl(cmd,(void *) arg)); |
cmd | 1324 | net/ipv4/af_inet.c | return(arp_ioctl(cmd,(void *) arg)); |
cmd | 1329 | net/ipv4/af_inet.c | return(rarp_ioctl(cmd,(void *) arg)); |
cmd | 1358 | net/ipv4/af_inet.c | return(dev_ioctl(cmd,(void *) arg)); |
cmd | 1361 | net/ipv4/af_inet.c | if ((cmd >= SIOCDEVPRIVATE) && |
cmd | 1362 | net/ipv4/af_inet.c | (cmd <= (SIOCDEVPRIVATE + 15))) |
cmd | 1363 | net/ipv4/af_inet.c | return(dev_ioctl(cmd,(void *) arg)); |
cmd | 1367 | net/ipv4/af_inet.c | return(sk->prot->ioctl(sk, cmd, arg)); |
cmd | 1348 | net/ipv4/arp.c | int arp_ioctl(unsigned int cmd, void *arg) |
cmd | 1354 | net/ipv4/arp.c | switch(cmd) |
cmd | 780 | net/ipv4/icmp.c | int icmp_ioctl(struct sock *sk, int cmd, unsigned long arg) |
cmd | 782 | net/ipv4/icmp.c | switch(cmd) |
cmd | 167 | net/ipv4/ip.c | int ip_ioctl(struct sock *sk, int cmd, unsigned long arg) |
cmd | 169 | net/ipv4/ip.c | switch(cmd) |
cmd | 386 | net/ipv4/rarp.c | int rarp_ioctl(unsigned int cmd, void *arg) |
cmd | 392 | net/ipv4/rarp.c | switch(cmd) |
cmd | 640 | net/ipv4/route.c | int ip_rt_ioctl(unsigned int cmd, void *arg) |
cmd | 645 | net/ipv4/route.c | switch(cmd) |
cmd | 655 | net/ipv4/route.c | return (cmd == SIOCDELRT) ? rt_kill(&rt) : rt_new(&rt); |
cmd | 1055 | net/ipv4/tcp.c | int tcp_ioctl(struct sock *sk, int cmd, unsigned long arg) |
cmd | 1058 | net/ipv4/tcp.c | switch(cmd) |
cmd | 354 | net/ipv4/udp.c | int udp_ioctl(struct sock *sk, int cmd, unsigned long arg) |
cmd | 357 | net/ipv4/udp.c | switch(cmd) |
cmd | 823 | net/ipx/af_ipx.c | ipxitf_ioctl(unsigned int cmd, void *arg) |
cmd | 826 | net/ipx/af_ipx.c | switch(cmd) |
cmd | 1061 | net/ipx/af_ipx.c | static int ipxrtr_ioctl(unsigned int cmd, void *arg) |
cmd | 1083 | net/ipx/af_ipx.c | switch(cmd) |
cmd | 1264 | net/ipx/af_ipx.c | static int ipx_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 1266 | net/ipx/af_ipx.c | switch(cmd) |
cmd | 1797 | net/ipx/af_ipx.c | static int ipx_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg) |
cmd | 1803 | net/ipx/af_ipx.c | switch(cmd) |
cmd | 1830 | net/ipx/af_ipx.c | return(ipxrtr_ioctl(cmd,(void *)arg)); |
cmd | 1837 | net/ipx/af_ipx.c | return(ipxitf_ioctl(cmd,(void *)arg)); |
cmd | 1865 | net/ipx/af_ipx.c | return(dev_ioctl(cmd,(void *) arg)); |
cmd | 258 | net/netrom/af_netrom.c | static int nr_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 260 | net/netrom/af_netrom.c | switch(cmd) |
cmd | 1167 | net/netrom/af_netrom.c | static int nr_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 1173 | net/netrom/af_netrom.c | switch (cmd) { |
cmd | 1222 | net/netrom/af_netrom.c | return nr_rt_ioctl(cmd, (void *)arg); |
cmd | 1247 | net/netrom/af_netrom.c | return dev_ioctl(cmd, (void *)arg); |
cmd | 562 | net/netrom/nr_route.c | int nr_rt_ioctl(unsigned int cmd, void *arg) |
cmd | 568 | net/netrom/nr_route.c | switch (cmd) { |
cmd | 78 | net/socket.c | unsigned int cmd, unsigned long arg); |
cmd | 365 | net/socket.c | int sock_ioctl(struct inode *inode, struct file *file, unsigned int cmd, |
cmd | 370 | net/socket.c | return(sock->ops->ioctl(sock, cmd, arg)); |
cmd | 1097 | net/socket.c | int sock_fcntl(struct file *filp, unsigned int cmd, unsigned long arg) |
cmd | 1103 | net/socket.c | return(sock->ops->fcntl(sock, cmd, arg)); |
cmd | 77 | net/unix/sock.c | static int unix_proto_ioctl(struct socket *sock, unsigned int cmd, |
cmd | 830 | net/unix/sock.c | static int unix_proto_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 838 | net/unix/sock.c | switch(cmd) |