tag | line | file | source code |
cmd | 94 | arch/alpha/kernel/bios32.c | unsigned short cmd; |
cmd | 97 | arch/alpha/kernel/bios32.c | pcibios_read_config_word(bus->number, dev->devfn, PCI_COMMAND, &cmd); |
cmd | 100 | arch/alpha/kernel/bios32.c | cmd &= (~PCI_COMMAND_IO & ~PCI_COMMAND_MEMORY & ~PCI_COMMAND_MASTER); |
cmd | 101 | arch/alpha/kernel/bios32.c | pcibios_write_config_word(bus->number, dev->devfn, PCI_COMMAND, cmd); |
cmd | 113 | arch/alpha/kernel/bios32.c | unsigned short cmd; |
cmd | 118 | arch/alpha/kernel/bios32.c | pcibios_read_config_word(bus->number, dev->devfn, PCI_COMMAND, &cmd); |
cmd | 141 | arch/alpha/kernel/bios32.c | cmd |= PCI_COMMAND_IO; |
cmd | 157 | arch/alpha/kernel/bios32.c | cmd |= PCI_COMMAND_MEMORY; |
cmd | 246 | arch/alpha/kernel/bios32.c | cmd |= PCI_COMMAND_IO; |
cmd | 250 | arch/alpha/kernel/bios32.c | cmd | PCI_COMMAND_MASTER); |
cmd | 374 | arch/alpha/kernel/lca.c | unsigned cmd = (stat0 & IOC_CMD) >> IOC_CMD_SHIFT; |
cmd | 377 | arch/alpha/kernel/lca.c | code > 3 ? "PCI" : "CPU", pci_cmd[cmd], stat1, err_name[code]); |
cmd | 51 | arch/mips/kernel/sysmips.c | sys_sysmips(int cmd, int arg1, int arg2, int arg3) |
cmd | 57 | arch/mips/kernel/sysmips.c | switch(cmd) |
cmd | 31 | arch/sparc/kernel/sunos_ioctl.c | asmlinkage int sunos_ioctl (int fd, unsigned long cmd, unsigned long arg) |
cmd | 40 | arch/sparc/kernel/sunos_ioctl.c | if(cmd == TIOCSETD) { |
cmd | 49 | arch/sparc/kernel/sunos_ioctl.c | foo = sys_ioctl(fd, cmd, (int) &ntty); |
cmd | 56 | arch/sparc/kernel/sunos_ioctl.c | if(cmd == TIOCNOTTY) |
cmd | 60 | arch/sparc/kernel/sunos_ioctl.c | switch (cmd) { |
cmd | 146 | arch/sparc/kernel/sunos_ioctl.c | if (cmd & 0xff00 == ('k' << 8)){ |
cmd | 147 | arch/sparc/kernel/sunos_ioctl.c | printk ("[[KBIO: %8.8x\n", (unsigned int) cmd); |
cmd | 151 | arch/sparc/kernel/sunos_ioctl.c | foo = sys_ioctl(fd, cmd, arg); |
cmd | 144 | drivers/block/floppy.c | unsigned char cmd[9]; |
cmd | 246 | drivers/block/floppy.c | #define COMMAND raw_cmd->cmd[0] |
cmd | 247 | drivers/block/floppy.c | #define DR_SELECT raw_cmd->cmd[1] |
cmd | 248 | drivers/block/floppy.c | #define TRACK raw_cmd->cmd[2] |
cmd | 249 | drivers/block/floppy.c | #define HEAD raw_cmd->cmd[3] |
cmd | 250 | drivers/block/floppy.c | #define SECTOR raw_cmd->cmd[4] |
cmd | 251 | drivers/block/floppy.c | #define SIZECODE raw_cmd->cmd[5] |
cmd | 252 | drivers/block/floppy.c | #define SECT_PER_TRACK raw_cmd->cmd[6] |
cmd | 253 | drivers/block/floppy.c | #define GAP raw_cmd->cmd[7] |
cmd | 254 | drivers/block/floppy.c | #define SIZECODE2 raw_cmd->cmd[8] |
cmd | 258 | drivers/block/floppy.c | #define F_SIZECODE raw_cmd->cmd[2] |
cmd | 259 | drivers/block/floppy.c | #define F_SECT_PER_TRACK raw_cmd->cmd[3] |
cmd | 260 | drivers/block/floppy.c | #define F_GAP raw_cmd->cmd[4] |
cmd | 261 | drivers/block/floppy.c | #define F_FILL raw_cmd->cmd[5] |
cmd | 982 | drivers/block/floppy.c | printk("%x,", raw_cmd->cmd[i]); |
cmd | 1363 | drivers/block/floppy.c | r|=output_byte(raw_cmd->cmd[i]); |
cmd | 2118 | drivers/block/floppy.c | if (CURRENT->cmd == WRITE) { |
cmd | 2354 | drivers/block/floppy.c | if (CURRENT->cmd == READ){ |
cmd | 2357 | drivers/block/floppy.c | } else if (CURRENT->cmd == WRITE){ |
cmd | 2840 | drivers/block/floppy.c | static inline int raw_cmd_copyout(int cmd, char *param, |
cmd | 2847 | drivers/block/floppy.c | if (cmd == OLDFDRAWCMD) { |
cmd | 2893 | drivers/block/floppy.c | static inline int raw_cmd_copyin(int cmd, char *param, |
cmd | 2908 | drivers/block/floppy.c | if (cmd == OLDFDRAWCMD){ |
cmd | 2919 | drivers/block/floppy.c | memcpy(ptr->cmd, old_raw_cmd.cmd, 9); |
cmd | 2959 | drivers/block/floppy.c | static int raw_cmd_ioctl(int cmd, void *param) |
cmd | 2983 | drivers/block/floppy.c | ret = raw_cmd_copyin(cmd, param, &my_raw_cmd); |
cmd | 3003 | drivers/block/floppy.c | ret2 = raw_cmd_copyout(cmd, param, my_raw_cmd); |
cmd | 3025 | drivers/block/floppy.c | static inline int set_geometry(unsigned int cmd, struct floppy_struct *g, |
cmd | 3062 | drivers/block/floppy.c | if (cmd != FDDEFPRM) |
cmd | 3071 | drivers/block/floppy.c | if (cmd == FDDEFPRM) |
cmd | 3121 | drivers/block/floppy.c | static inline int normalize_0x02xx_ioctl(int *cmd, int *size) |
cmd | 3126 | drivers/block/floppy.c | if ((*cmd & 0xffff) == (translation_table[i].newcmd & 0xffff)){ |
cmd | 3127 | drivers/block/floppy.c | *size = _IOC_SIZE(*cmd); |
cmd | 3128 | drivers/block/floppy.c | *cmd = translation_table[i].newcmd; |
cmd | 3129 | drivers/block/floppy.c | if (*size > _IOC_SIZE(*cmd)) { |
cmd | 3139 | drivers/block/floppy.c | static inline int xlate_0x00xx_ioctl(int *cmd, int *size) |
cmd | 3148 | drivers/block/floppy.c | printk("obsolete floppy ioctl %x\n", *cmd); |
cmd | 3155 | drivers/block/floppy.c | if (*cmd == translation_table[i].oldcmd) { |
cmd | 3157 | drivers/block/floppy.c | *cmd = translation_table[i].newcmd; |
cmd | 3164 | drivers/block/floppy.c | static int fd_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, |
cmd | 3186 | drivers/block/floppy.c | switch (cmd) { |
cmd | 3193 | drivers/block/floppy.c | if ((cmd & 0xff00) == 0x0200) { |
cmd | 3194 | drivers/block/floppy.c | ECALL(normalize_0x02xx_ioctl(&cmd, &size)); |
cmd | 3195 | drivers/block/floppy.c | } else if ((cmd & 0xff00) == 0x0000) { |
cmd | 3196 | drivers/block/floppy.c | ECALL(xlate_0x00xx_ioctl(&cmd, &size)); |
cmd | 3201 | drivers/block/floppy.c | if (((cmd & 0x80) && !suser()) || |
cmd | 3202 | drivers/block/floppy.c | ((cmd & 0x40) && !IOCTL_ALLOWED)) |
cmd | 3206 | drivers/block/floppy.c | if (_IOC_DIR(cmd) & _IOC_READ) |
cmd | 3211 | drivers/block/floppy.c | if (_IOC_DIR(cmd) & _IOC_WRITE) |
cmd | 3214 | drivers/block/floppy.c | switch (cmd) { |
cmd | 3223 | drivers/block/floppy.c | return set_geometry(cmd, & inparam.g, |
cmd | 3298 | drivers/block/floppy.c | CALL(i = raw_cmd_ioctl(cmd,(void *) param)); |
cmd | 3312 | drivers/block/floppy.c | if (_IOC_DIR(cmd) & _IOC_READ) |
cmd | 221 | drivers/block/hd.c | unsigned int head,unsigned int cyl,unsigned int cmd, |
cmd | 245 | drivers/block/hd.c | outb_p(cmd,++port); |
cmd | 738 | drivers/block/hd.c | dev+'a', (CURRENT->cmd == READ)?"read":"writ", |
cmd | 743 | drivers/block/hd.c | if (CURRENT->cmd == READ) { |
cmd | 744 | drivers/block/hd.c | unsigned int cmd = mult_count[dev] > 1 ? WIN_MULTREAD : WIN_READ; |
cmd | 745 | drivers/block/hd.c | hd_out(dev,nsect,sec,head,cyl,cmd,&read_intr); |
cmd | 750 | drivers/block/hd.c | if (CURRENT->cmd == WRITE) { |
cmd | 779 | drivers/block/hd.c | unsigned int cmd, unsigned long arg) |
cmd | 790 | drivers/block/hd.c | switch (cmd) { |
cmd | 577 | drivers/block/ide-cd.c | rq->cmd = REQUEST_SENSE_COMMAND; |
cmd | 597 | drivers/block/ide-cd.c | if (rq->cmd == REQUEST_SENSE_COMMAND && uptodate) |
cmd | 624 | drivers/block/ide-cd.c | int stat, err, sense_key, cmd; |
cmd | 641 | drivers/block/ide-cd.c | cmd = rq->cmd; |
cmd | 643 | drivers/block/ide-cd.c | if (cmd == REQUEST_SENSE_COMMAND) |
cmd | 656 | drivers/block/ide-cd.c | else if (cmd == PACKET_COMMAND) |
cmd | 1392 | drivers/block/ide-cd.c | req.cmd = PACKET_COMMAND; |
cmd | 1468 | drivers/block/ide-cd.c | <send cmd> |
cmd | 1492 | drivers/block/ide-cd.c | if (rq -> cmd == PACKET_COMMAND || rq -> cmd == REQUEST_SENSE_COMMAND) |
cmd | 1495 | drivers/block/ide-cd.c | else if (rq -> cmd == RESET_DRIVE_COMMAND) |
cmd | 1502 | drivers/block/ide-cd.c | else if (rq -> cmd == IDE_DRIVE_CMD) |
cmd | 1505 | drivers/block/ide-cd.c | else if (rq -> cmd != READ) |
cmd | 1507 | drivers/block/ide-cd.c | printk ("ide-cd: bad cmd %d\n", rq -> cmd); |
cmd | 2125 | drivers/block/ide-cd.c | struct file *file, unsigned int cmd, unsigned long arg) |
cmd | 2127 | drivers/block/ide-cd.c | switch (cmd) |
cmd | 2481 | drivers/block/ide-cd.c | if (cmd == CDROMREADMODE1) |
cmd | 2522 | drivers/block/ide-cd.c | req.cmd = RESET_DRIVE_COMMAND; |
cmd | 420 | drivers/block/ide-tape.c | #define IDETAPE_REQUEST_CMD(cmd) ((cmd >= IDETAPE_FIRST_REQUEST) && (cmd <= IDETAPE_LAST_REQUEST)) |
cmd | 853 | drivers/block/ide-tape.c | void idetape_create_load_unload_cmd (idetape_packet_command_t *pc,int cmd); |
cmd | 854 | drivers/block/ide-tape.c | void idetape_create_space_cmd (idetape_packet_command_t *pc,long count,byte cmd); |
cmd | 879 | drivers/block/ide-tape.c | int idetape_chrdev_ioctl (struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg); |
cmd | 920 | drivers/block/ide-tape.c | int idetape_queue_rw_tail (ide_drive_t *drive,int cmd,int blocks,char *buffer); |
cmd | 1914 | drivers/block/ide-tape.c | if (tape->postponed_rq->cmd != IDETAPE_PACKET_COMMAND_REQUEST_TYPE1) { |
cmd | 1949 | drivers/block/ide-tape.c | if (tape->postponed_rq->cmd == IDETAPE_PACKET_COMMAND_REQUEST_TYPE1) { |
cmd | 2572 | drivers/block/ide-tape.c | void idetape_create_load_unload_cmd (idetape_packet_command_t *pc,int cmd) |
cmd | 2576 | drivers/block/ide-tape.c | printk ("Creating LOAD UNLOAD packet command, cmd=%d\n",cmd); |
cmd | 2588 | drivers/block/ide-tape.c | pc->c [4]=cmd; |
cmd | 2649 | drivers/block/ide-tape.c | void idetape_create_space_cmd (idetape_packet_command_t *pc,long count,byte cmd) |
cmd | 2678 | drivers/block/ide-tape.c | pc->c [1]=cmd; |
cmd | 2794 | drivers/block/ide-tape.c | unsigned int cmd, unsigned long arg) |
cmd | 2805 | drivers/block/ide-tape.c | switch (cmd) { |
cmd | 2841 | drivers/block/ide-tape.c | if (rq->cmd == IDETAPE_READ_REQUEST) { |
cmd | 2853 | drivers/block/ide-tape.c | if (rq->cmd == IDETAPE_WRITE_REQUEST) { |
cmd | 2899 | drivers/block/ide-tape.c | printk ("rq_status: %d, rq_dev: %u, cmd: %d, errors: %d\n",rq->rq_status,(unsigned int) rq->rq_dev,rq->cmd,rq->errors); |
cmd | 2903 | drivers/block/ide-tape.c | if (!IDETAPE_REQUEST_CMD (rq->cmd)) { |
cmd | 2960 | drivers/block/ide-tape.c | if (rq->cmd == IDETAPE_PACKET_COMMAND_REQUEST_TYPE1) { |
cmd | 2991 | drivers/block/ide-tape.c | switch (rq->cmd) { |
cmd | 3047 | drivers/block/ide-tape.c | rq->cmd=IDETAPE_PACKET_COMMAND_REQUEST_TYPE2; /* Note that we are waiting for DSC *before* we */ |
cmd | 3053 | drivers/block/ide-tape.c | rq->cmd=IDETAPE_PACKET_COMMAND_REQUEST_TYPE1; |
cmd | 3092 | drivers/block/ide-tape.c | rq.cmd = IDETAPE_PACKET_COMMAND_REQUEST_TYPE1; |
cmd | 3126 | drivers/block/ide-tape.c | rq->cmd = IDETAPE_PACKET_COMMAND_REQUEST_TYPE1; |
cmd | 3144 | drivers/block/ide-tape.c | if (rq == NULL || !IDETAPE_REQUEST_CMD (rq->cmd)) { |
cmd | 3159 | drivers/block/ide-tape.c | int idetape_queue_rw_tail (ide_drive_t *drive,int cmd,int blocks,char *buffer) |
cmd | 3166 | drivers/block/ide-tape.c | printk ("idetape_queue_rw_tail: cmd=%d\n",cmd); |
cmd | 3177 | drivers/block/ide-tape.c | rq.cmd = cmd; |
cmd | 3204 | drivers/block/ide-tape.c | rq.cmd = IDETAPE_READ_REQUEST; |
cmd | 3306 | drivers/block/ide-tape.c | rq->cmd = IDETAPE_WRITE_REQUEST; |
cmd | 3804 | drivers/block/ide-tape.c | int idetape_chrdev_ioctl (struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg) |
cmd | 3816 | drivers/block/ide-tape.c | printk ("Reached idetape_chrdev_ioctl, cmd=%u\n",cmd); |
cmd | 3824 | drivers/block/ide-tape.c | if (tape->chrdev_direction == idetape_direction_read && cmd != MTIOCTOP) |
cmd | 3831 | drivers/block/ide-tape.c | switch (cmd) { |
cmd | 3853 | drivers/block/ide-tape.c | return (idetape_blkdev_ioctl (drive,inode,file,cmd,arg)); |
cmd | 4567 | drivers/block/ide-tape.c | if (rq->cmd == IDETAPE_WRITE_REQUEST) |
cmd | 746 | drivers/block/ide.c | if (rq->cmd == IDE_DRIVE_CMD) { |
cmd | 864 | drivers/block/ide.c | if (rq->cmd == IDE_DRIVE_CMD || (rq->cmd != READ && rq->cmd != WRITE && drive->media == ide_disk)) |
cmd | 880 | drivers/block/ide.c | if ((stat & DRQ_STAT) && rq->cmd != WRITE) |
cmd | 1055 | drivers/block/ide.c | static void ide_cmd(ide_drive_t *drive, byte cmd, byte nsect, ide_handler_t *handler) |
cmd | 1060 | drivers/block/ide.c | OUT_BYTE(cmd,IDE_COMMAND_REG); |
cmd | 1218 | drivers/block/ide.c | drive->name, (rq->cmd==READ)?"read":"writ", |
cmd | 1237 | drivers/block/ide.c | drive->name, (rq->cmd==READ)?"read":"writ", cyl, |
cmd | 1241 | drivers/block/ide.c | if (rq->cmd == READ) { |
cmd | 1250 | drivers/block/ide.c | if (rq->cmd == WRITE) { |
cmd | 1273 | drivers/block/ide.c | if (rq->cmd == IDE_DRIVE_CMD) { |
cmd | 1295 | drivers/block/ide.c | printk("%s: bad command: %d\n", drive->name, rq->cmd); |
cmd | 1370 | drivers/block/ide.c | if (rq->cmd == IDE_DRIVE_CMD) { |
cmd | 1628 | drivers/block/ide.c | rq->cmd = IDE_DRIVE_CMD; |
cmd | 1844 | drivers/block/ide.c | unsigned int cmd, unsigned long arg) |
cmd | 1857 | drivers/block/ide.c | switch (cmd) { |
cmd | 1936 | drivers/block/ide.c | switch (cmd) { |
cmd | 2027 | drivers/block/ide.c | return ide_cdrom_ioctl(drive, inode, file, cmd, arg); |
cmd | 2031 | drivers/block/ide.c | return idetape_blkdev_ioctl(drive, inode, file, cmd, arg); |
cmd | 2079 | drivers/block/ide.c | static inline void do_identify (ide_drive_t *drive, byte cmd) |
cmd | 2104 | drivers/block/ide.c | if (cmd == WIN_PIDENTIFY) { |
cmd | 2118 | drivers/block/ide.c | if (cmd == WIN_PIDENTIFY) { |
cmd | 2271 | drivers/block/ide.c | static int try_to_identify (ide_drive_t *drive, byte cmd) |
cmd | 2290 | drivers/block/ide.c | OUT_BYTE(cmd,IDE_COMMAND_REG); /* ask drive for ID */ |
cmd | 2291 | drivers/block/ide.c | timeout = ((cmd == WIN_IDENTIFY) ? WAIT_WORSTCASE : WAIT_PIDENTIFY) / 2; |
cmd | 2305 | drivers/block/ide.c | do_identify(drive, cmd); /* drive returned ID */ |
cmd | 2340 | drivers/block/ide.c | static int do_probe (ide_drive_t *drive, byte cmd) |
cmd | 2345 | drivers/block/ide.c | if ((drive->media != ide_disk) && (cmd == WIN_IDENTIFY)) |
cmd | 2352 | drivers/block/ide.c | (cmd == WIN_IDENTIFY) ? "ATA" : "ATAPI"); |
cmd | 2366 | drivers/block/ide.c | || drive->present || cmd == WIN_PIDENTIFY) |
cmd | 2368 | drivers/block/ide.c | if ((rc = try_to_identify(drive,cmd))) /* send cmd and wait */ |
cmd | 2369 | drivers/block/ide.c | rc = try_to_identify(drive,cmd); /* failed: try again */ |
cmd | 642 | drivers/block/ide.h | unsigned int cmd, unsigned long arg); |
cmd | 159 | drivers/block/linear.c | pending[queue].cmd=req->cmd; |
cmd | 88 | drivers/block/ll_rw_blk.c | plug->cmd = -1; |
cmd | 108 | drivers/block/ll_rw_blk.c | if (req && req->rq_status == RQ_INACTIVE && req->cmd == -1) { |
cmd | 208 | drivers/block/ll_rw_blk.c | static inline void drive_stat_acct(int cmd, unsigned long nr_sectors, short disk_index) |
cmd | 211 | drivers/block/ll_rw_blk.c | if (cmd == READ) { |
cmd | 215 | drivers/block/ll_rw_blk.c | else if (cmd == WRITE) { |
cmd | 243 | drivers/block/ll_rw_blk.c | drive_stat_acct(req->cmd, req->nr_sectors, disk_index); |
cmd | 248 | drivers/block/ll_rw_blk.c | drive_stat_acct(req->cmd, req->nr_sectors, disk_index); |
cmd | 252 | drivers/block/ll_rw_blk.c | drive_stat_acct(req->cmd, req->nr_sectors, disk_index); |
cmd | 368 | drivers/block/ll_rw_blk.c | req->cmd == rw && |
cmd | 383 | drivers/block/ll_rw_blk.c | req->cmd == rw && |
cmd | 419 | drivers/block/ll_rw_blk.c | req->cmd = rw; |
cmd | 599 | drivers/block/ll_rw_blk.c | req[j]->cmd = rw; |
cmd | 46 | drivers/block/loop.c | static int transfer_none(struct loop_device *lo, int cmd, char *raw_buf, |
cmd | 49 | drivers/block/loop.c | if (cmd == READ) |
cmd | 56 | drivers/block/loop.c | static int transfer_xor(struct loop_device *lo, int cmd, char *raw_buf, |
cmd | 62 | drivers/block/loop.c | if (cmd == READ) { |
cmd | 77 | drivers/block/loop.c | static int transfer_des(struct loop_device *lo, int cmd, char *raw_buf, |
cmd | 88 | drivers/block/loop.c | if (cmd == READ) { |
cmd | 184 | drivers/block/loop.c | if ((CURRENT->cmd != WRITE) && (CURRENT->cmd != READ)) { |
cmd | 185 | drivers/block/loop.c | printk("unknown loop device command (%d)?!?", CURRENT->cmd); |
cmd | 204 | drivers/block/loop.c | if (!buffer_uptodate(bh) && ((CURRENT->cmd == READ) || |
cmd | 217 | drivers/block/loop.c | if ((lo->transfer)(lo, CURRENT->cmd, bh->b_data + offset, |
cmd | 223 | drivers/block/loop.c | if (CURRENT->cmd == WRITE) |
cmd | 356 | drivers/block/loop.c | unsigned int cmd, unsigned long arg) |
cmd | 371 | drivers/block/loop.c | switch (cmd) { |
cmd | 129 | drivers/block/md.c | unsigned int cmd, unsigned long arg) |
cmd | 143 | drivers/block/md.c | return (pers[minor & 0x7f]->ioctl (inode, file, cmd, arg)); |
cmd | 148 | drivers/block/md.c | switch (cmd) |
cmd | 322 | drivers/block/md.c | printk ("Unknown md_ioctl %d\n", cmd); |
cmd | 451 | drivers/block/md.c | rw=pending[i].cmd; |
cmd | 478 | drivers/block/md.c | req->cmd == rw && |
cmd | 492 | drivers/block/md.c | req->cmd == rw && |
cmd | 517 | drivers/block/md.c | req->cmd = rw; |
cmd | 246 | drivers/block/raid0.c | pending[queue].cmd=req->cmd; |
cmd | 126 | drivers/block/rd.c | if (CURRENT->cmd == READ) |
cmd | 135 | drivers/block/rd.c | static int rd_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg) |
cmd | 142 | drivers/block/rd.c | switch (cmd) { |
cmd | 225 | drivers/block/xd.c | switch (CURRENT->cmd) { |
cmd | 229 | drivers/block/xd.c | code = xd_readwrite(CURRENT->cmd,CURRENT_DEV,CURRENT->buffer,block,count); |
cmd | 240 | drivers/block/xd.c | static int xd_ioctl (struct inode *inode,struct file *file,u_int cmd,u_long arg) |
cmd | 246 | drivers/block/xd.c | switch (cmd) { |
cmd | 195 | drivers/cdrom/aztcd.c | (CURRENT && MAJOR(CURRENT -> rq_dev) == MAJOR_NR && CURRENT -> cmd == READ \ |
cmd | 267 | drivers/cdrom/aztcd.c | static int aztSendCmd(int cmd); |
cmd | 268 | drivers/cdrom/aztcd.c | static int sendAztCmd(int cmd, struct azt_Play_msf *params); |
cmd | 407 | drivers/cdrom/aztcd.c | static int aztSendCmd(int cmd) |
cmd | 412 | drivers/cdrom/aztcd.c | printk("aztcd: Executing command %x\n",cmd); |
cmd | 414 | drivers/cdrom/aztcd.c | aztCmd=cmd; |
cmd | 423 | drivers/cdrom/aztcd.c | { outb((unsigned char) cmd,CMD_PORT); |
cmd | 431 | drivers/cdrom/aztcd.c | printk("### Error 1 aztcd: aztSendCmd %x Error Code %x\n",cmd,data); |
cmd | 435 | drivers/cdrom/aztcd.c | { printk("### Error 2 aztcd: aztSendCmd %x \n",cmd); |
cmd | 444 | drivers/cdrom/aztcd.c | static int sendAztCmd(int cmd, struct azt_Play_msf *params) |
cmd | 454 | drivers/cdrom/aztcd.c | { aztSendCmd(cmd); |
cmd | 468 | drivers/cdrom/aztcd.c | printk("### Error 1 aztcd: sendAztCmd %x Error Code %x\n",cmd,data); |
cmd | 472 | drivers/cdrom/aztcd.c | { printk("### Error 2 aztcd: sendAztCmd %x\n ",cmd); |
cmd | 611 | drivers/cdrom/aztcd.c | static int aztcd_ioctl(struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg) |
cmd | 623 | drivers/cdrom/aztcd.c | printk("aztcd: starting aztcd_ioctl - Command:%x Time: %li\n",cmd, jiffies); |
cmd | 632 | drivers/cdrom/aztcd.c | switch (cmd) |
cmd | 806 | drivers/cdrom/aztcd.c | printk("aztcd: exiting aztcd_ioctl - Error 1 - Command:%x\n",cmd); |
cmd | 813 | drivers/cdrom/aztcd.c | printk("aztcd: exiting aztcd_ioctl - Error 2 - Command:%x\n",cmd); |
cmd | 821 | drivers/cdrom/aztcd.c | printk("aztcd: exiting aztcd_ioctl - Error 3 - Command:%x\n",cmd); |
cmd | 907 | drivers/cdrom/aztcd.c | if (cmd==CDROMREADRAW) |
cmd | 948 | drivers/cdrom/aztcd.c | printk("aztcd: exiting aztcd_ioctl Command:%x Time:%li\n",cmd,jiffies); |
cmd | 237 | drivers/cdrom/cdu31a.c | static void do_sony_cd_cmd(unsigned char cmd, |
cmd | 517 | drivers/cdrom/cdu31a.c | write_cmd(unsigned char cmd) |
cmd | 520 | drivers/cdrom/cdu31a.c | outb(cmd, sony_cd_cmd_reg); |
cmd | 819 | drivers/cdrom/cdu31a.c | do_sony_cd_cmd(unsigned char cmd, |
cmd | 887 | drivers/cdrom/cdu31a.c | write_cmd(cmd); |
cmd | 1579 | drivers/cdrom/cdu31a.c | switch(CURRENT->cmd) |
cmd | 2360 | drivers/cdrom/cdu31a.c | unsigned char cmd, |
cmd | 2366 | drivers/cdrom/cdu31a.c | do_sony_cd_cmd(cmd, params, num_params, result_buffer, result_size); |
cmd | 2380 | drivers/cdrom/cdu31a.c | unsigned int cmd, |
cmd | 2394 | drivers/cdrom/cdu31a.c | switch (cmd) |
cmd | 644 | drivers/cdrom/cm206.c | if (CURRENT->cmd != READ) { |
cmd | 645 | drivers/cdrom/cm206.c | debug(("Non-read command %d on cdrom\n", CURRENT->cmd)); |
cmd | 886 | drivers/cdrom/cm206.c | unsigned int cmd, unsigned long arg) |
cmd | 888 | drivers/cdrom/cm206.c | switch (cmd) { |
cmd | 927 | drivers/cdrom/cm206.c | switch (cmd) { |
cmd | 1009 | drivers/cdrom/cm206.c | else return -cmd; |
cmd | 1022 | drivers/cdrom/cm206.c | debug(("Unknown ioctl call 0x%x\n", cmd)); |
cmd | 202 | drivers/cdrom/gscd.c | static int gscd_ioctl (struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg) |
cmd | 208 | drivers/cdrom/gscd.c | switch (cmd) |
cmd | 274 | drivers/cdrom/gscd.c | if (CURRENT -> cmd != READ) |
cmd | 276 | drivers/cdrom/gscd.c | printk("GSCD: bad cmd %d\n", CURRENT -> cmd); |
cmd | 317 | drivers/cdrom/gscd.c | char cmd[] = { CMD_READ, 0x80, 0,0,0, 0,1 }; /* cmd mode M-S-F secth sectl */ |
cmd | 340 | drivers/cdrom/gscd.c | cmd[2] = gscdcmd.start.min; |
cmd | 341 | drivers/cdrom/gscd.c | cmd[3] = gscdcmd.start.sec; |
cmd | 342 | drivers/cdrom/gscd.c | cmd[4] = gscdcmd.start.frame; |
cmd | 345 | drivers/cdrom/gscd.c | printk ("GSCD: read msf %d:%d:%d\n", cmd[2], cmd[3], cmd[4] ); |
cmd | 347 | drivers/cdrom/gscd.c | cmd_out ( TYPE_DATA, (char *)&cmd, (char *)&gscd_buf[0], 1 ); |
cmd | 519 | drivers/cdrom/gscd.c | void cmd_out ( int cmd_type, char * cmd, char * respo_buf, int respo_count ) |
cmd | 575 | drivers/cdrom/gscd.c | cmd_write_cmd (cmd); |
cmd | 133 | drivers/cdrom/mcd.c | (CURRENT && MAJOR(CURRENT -> rq_dev) == MAJOR_NR && CURRENT -> cmd == READ \ |
cmd | 185 | drivers/cdrom/mcd.c | static void sendMcdCmd(int cmd, struct mcd_Play_msf *params); |
cmd | 285 | drivers/cdrom/mcd.c | mcd_ioctl(struct inode *ip, struct file *fp, unsigned int cmd, |
cmd | 312 | drivers/cdrom/mcd.c | switch (cmd) |
cmd | 1321 | drivers/cdrom/mcd.c | sendMcdCmd(int cmd, struct mcd_Play_msf *params) |
cmd | 1323 | drivers/cdrom/mcd.c | outb(cmd, MCDPORT(0)); |
cmd | 232 | drivers/cdrom/mcdx.c | const unsigned char* cmd, size_t, |
cmd | 270 | drivers/cdrom/mcdx.c | unsigned int cmd, unsigned long arg) |
cmd | 277 | drivers/cdrom/mcdx.c | switch (cmd) { |
cmd | 531 | drivers/cdrom/mcdx.c | WARN(("ioctl(): unknown request 0x%04x\n", cmd)); |
cmd | 569 | drivers/cdrom/mcdx.c | switch (CURRENT->cmd) { |
cmd | 910 | drivers/cdrom/mcdx.c | const unsigned char *cmd, size_t cmdlen, |
cmd | 939 | drivers/cdrom/mcdx.c | tries, timeout, size, (unsigned char) cmd[0])); |
cmd | 940 | drivers/cdrom/mcdx.c | for (i = 1; i < cmdlen; i++) printk(" 0x%02x", cmd[i]); |
cmd | 952 | drivers/cdrom/mcdx.c | outsb((unsigned int) stuffp->wreg_data, cmd, cmdlen); |
cmd | 958 | drivers/cdrom/mcdx.c | cmd[0], tries - 1, tries == 2 ? "y" : "ies")); |
cmd | 970 | drivers/cdrom/mcdx.c | cmd[0], cmdlen > 1 ? "..." : "")); |
cmd | 993 | drivers/cdrom/mcdx.c | cmd[0], tries - 1, tries == 2 ? "y" : "ies")); |
cmd | 1384 | drivers/cdrom/mcdx.c | static unsigned char cmd[] = { |
cmd | 1390 | drivers/cdrom/mcdx.c | cmd[0] = stuffp->readcmd; |
cmd | 1420 | drivers/cdrom/mcdx.c | cmd[1] = pending.minute; |
cmd | 1421 | drivers/cdrom/mcdx.c | cmd[2] = pending.second; |
cmd | 1422 | drivers/cdrom/mcdx.c | cmd[3] = pending.frame; |
cmd | 1426 | drivers/cdrom/mcdx.c | cmd[6] = (unsigned char) (stuffp->off_requested - stuffp->pending) / 4; |
cmd | 1428 | drivers/cdrom/mcdx.c | outsb((unsigned int) stuffp->wreg_data, cmd, sizeof cmd); |
cmd | 1563 | drivers/cdrom/mcdx.c | unsigned char cmd[7] = { |
cmd | 1567 | drivers/cdrom/mcdx.c | cmd[0] = stuffp->playcmd; |
cmd | 1569 | drivers/cdrom/mcdx.c | cmd[1] = msf->cdmsf_min0; |
cmd | 1570 | drivers/cdrom/mcdx.c | cmd[2] = msf->cdmsf_sec0; |
cmd | 1571 | drivers/cdrom/mcdx.c | cmd[3] = msf->cdmsf_frame0; |
cmd | 1572 | drivers/cdrom/mcdx.c | cmd[4] = msf->cdmsf_min1; |
cmd | 1573 | drivers/cdrom/mcdx.c | cmd[5] = msf->cdmsf_sec1; |
cmd | 1574 | drivers/cdrom/mcdx.c | cmd[6] = msf->cdmsf_frame1; |
cmd | 1578 | drivers/cdrom/mcdx.c | cmd[0], cmd[1], cmd[2], cmd[3], |
cmd | 1579 | drivers/cdrom/mcdx.c | cmd[4], cmd[5], cmd[6])); |
cmd | 1581 | drivers/cdrom/mcdx.c | outsb((unsigned int) stuffp->wreg_data, cmd, sizeof cmd); |
cmd | 1717 | drivers/cdrom/mcdx.c | char cmd[2]; |
cmd | 1722 | drivers/cdrom/mcdx.c | if (-1 == (ans = mcdx_talk(stuffp, "\xc2", 1, cmd, sizeof(cmd), 5 * HZ, tries))) |
cmd | 1726 | drivers/cdrom/mcdx.c | case TOC: cmd[1] |= 0x04; break; |
cmd | 1727 | drivers/cdrom/mcdx.c | case DATA: cmd[1] &= ~0x04; break; |
cmd | 1728 | drivers/cdrom/mcdx.c | case RAW: cmd[1] |= 0x40; break; |
cmd | 1729 | drivers/cdrom/mcdx.c | case COOKED: cmd[1] &= ~0x40; break; |
cmd | 1732 | drivers/cdrom/mcdx.c | cmd[0] = 0x50; |
cmd | 1733 | drivers/cdrom/mcdx.c | return mcdx_talk(stuffp, cmd, 2, NULL, 1, 5 * HZ, tries); |
cmd | 1739 | drivers/cdrom/mcdx.c | unsigned char cmd[2] = { 0xa0 }; |
cmd | 1742 | drivers/cdrom/mcdx.c | case MODE0: cmd[1] = 0x00; break; |
cmd | 1743 | drivers/cdrom/mcdx.c | case MODE1: cmd[1] = 0x01; break; |
cmd | 1744 | drivers/cdrom/mcdx.c | case MODE2: cmd[1] = 0x02; break; |
cmd | 1747 | drivers/cdrom/mcdx.c | return mcdx_talk(stuffp, cmd, 2, NULL, 1, 5 * HZ, tries); |
cmd | 1753 | drivers/cdrom/mcdx.c | char cmd[4]; |
cmd | 1757 | drivers/cdrom/mcdx.c | cmd[0] = 0x90; |
cmd | 1759 | drivers/cdrom/mcdx.c | cmd[1] = 0x10; /* irq enable */ |
cmd | 1760 | drivers/cdrom/mcdx.c | cmd[2] = 0x05; /* pre, err irq enable */ |
cmd | 1762 | drivers/cdrom/mcdx.c | if (-1 == mcdx_talk(stuffp, cmd, 3, NULL, 1, 1 * HZ, tries)) |
cmd | 1765 | drivers/cdrom/mcdx.c | cmd[1] = 0x02; /* dma select */ |
cmd | 1766 | drivers/cdrom/mcdx.c | cmd[2] = 0x00; /* no dma */ |
cmd | 1768 | drivers/cdrom/mcdx.c | return mcdx_talk(stuffp, cmd, 3, NULL, 1, 1 * HZ, tries); |
cmd | 1800 | drivers/cdrom/mcdx.c | char cmd[2] = { 0xfe }; |
cmd | 1802 | drivers/cdrom/mcdx.c | cmd[1] = lock ? 0x01 : 0x00; |
cmd | 1803 | drivers/cdrom/mcdx.c | return mcdx_talk(stuffp, cmd, sizeof(cmd), NULL, 1, 5 * HZ, tries); |
cmd | 1835 | drivers/cdrom/mcdx.c | char cmd[5]; |
cmd | 1836 | drivers/cdrom/mcdx.c | cmd[0] = 0xae; |
cmd | 1837 | drivers/cdrom/mcdx.c | cmd[1] = vol->channel0; |
cmd | 1838 | drivers/cdrom/mcdx.c | cmd[2] = 0; |
cmd | 1839 | drivers/cdrom/mcdx.c | cmd[3] = vol->channel1; |
cmd | 1840 | drivers/cdrom/mcdx.c | cmd[4] = 0; |
cmd | 1842 | drivers/cdrom/mcdx.c | return mcdx_talk(stuffp, cmd, sizeof(cmd), NULL, 5, 200, tries); |
cmd | 305 | drivers/cdrom/optcd.c | static int send_cmd(int cmd) |
cmd | 309 | drivers/cdrom/optcd.c | DEBUG((DEBUG_DRIVE_IF, "sending command 0x%02x\n", cmd)); |
cmd | 312 | drivers/cdrom/optcd.c | outb(cmd, COMIN_PORT); /* Send command code */ |
cmd | 473 | drivers/cdrom/optcd.c | inline static int exec_cmd(int cmd) |
cmd | 475 | drivers/cdrom/optcd.c | int ack = send_cmd(cmd); |
cmd | 478 | drivers/cdrom/optcd.c | return get_exec_status(cmd < COMFETCH); |
cmd | 484 | drivers/cdrom/optcd.c | inline static int exec_read_cmd(int cmd, struct cdrom_msf *params) |
cmd | 486 | drivers/cdrom/optcd.c | int ack = send_cmd(cmd); |
cmd | 494 | drivers/cdrom/optcd.c | inline static int exec_seek_cmd(int cmd, struct cdrom_msf *params) |
cmd | 496 | drivers/cdrom/optcd.c | int ack = send_cmd(cmd); |
cmd | 507 | drivers/cdrom/optcd.c | inline static int exec_long_cmd(int cmd, struct cdrom_msf *params) |
cmd | 509 | drivers/cdrom/optcd.c | int ack = exec_read_cmd(cmd, params); |
cmd | 968 | drivers/cdrom/optcd.c | && CURRENT -> cmd == READ && CURRENT -> sector != -1) |
cmd | 1612 | drivers/cdrom/optcd.c | static int cdromread(unsigned long arg, int blocksize, int cmd) |
cmd | 1630 | drivers/cdrom/optcd.c | status = exec_read_cmd(cmd, &msf); |
cmd | 1735 | drivers/cdrom/optcd.c | unsigned int cmd, unsigned long arg) |
cmd | 1744 | drivers/cdrom/optcd.c | if (cmd == CDROMRESET) |
cmd | 1761 | drivers/cdrom/optcd.c | switch (cmd) { /* Actions that can be taken with door open */ |
cmd | 1783 | drivers/cdrom/optcd.c | DEBUG((DEBUG_VFS, "ioctl cmd 0x%x", cmd)); |
cmd | 1785 | drivers/cdrom/optcd.c | switch (cmd) { |
cmd | 3831 | drivers/cdrom/sbpcd.c | static int sbpcd_ioctl(struct inode *inode, struct file *file, u_int cmd, |
cmd | 3837 | drivers/cdrom/sbpcd.c | MINOR(inode->i_rdev), cmd, arg); |
cmd | 3858 | drivers/cdrom/sbpcd.c | msg(DBG_IO2,"ioctl: device %d, request %04X\n",i,cmd); |
cmd | 3859 | drivers/cdrom/sbpcd.c | switch (cmd) /* Sun-compatible */ |
cmd | 4383 | drivers/cdrom/sbpcd.c | msg(DBG_IOC,"ioctl: unknown function request %04X\n", cmd); |
cmd | 4424 | drivers/cdrom/sbpcd.c | if (CURRENT->cmd != READ) |
cmd | 4426 | drivers/cdrom/sbpcd.c | msg(DBG_INF, "bad cmd %d\n", CURRENT->cmd); |
cmd | 194 | drivers/cdrom/sjcd.c | static void sjcd_send_cmd( unsigned char cmd ){ |
cmd | 196 | drivers/cdrom/sjcd.c | printk( "SJCD: send_cmd( 0x%x )\n", cmd ); |
cmd | 198 | drivers/cdrom/sjcd.c | outb( cmd, SJCDPORT( 0 ) ); |
cmd | 207 | drivers/cdrom/sjcd.c | static void sjcd_send_1_cmd( unsigned char cmd, unsigned char a ){ |
cmd | 209 | drivers/cdrom/sjcd.c | printk( "SJCD: send_1_cmd( 0x%x, 0x%x )\n", cmd, a ); |
cmd | 211 | drivers/cdrom/sjcd.c | outb( cmd, SJCDPORT( 0 ) ); |
cmd | 221 | drivers/cdrom/sjcd.c | static void sjcd_send_4_cmd( unsigned char cmd, unsigned char a, |
cmd | 224 | drivers/cdrom/sjcd.c | printk( "SJCD: send_4_cmd( 0x%x )\n", cmd ); |
cmd | 226 | drivers/cdrom/sjcd.c | outb( cmd, SJCDPORT( 0 ) ); |
cmd | 239 | drivers/cdrom/sjcd.c | static void sjcd_send_6_cmd( unsigned char cmd, struct sjcd_play_msf *pms ){ |
cmd | 241 | drivers/cdrom/sjcd.c | printk( "SJCD: send_long_cmd( 0x%x )\n", cmd ); |
cmd | 243 | drivers/cdrom/sjcd.c | outb( cmd, SJCDPORT( 0 ) ); |
cmd | 654 | drivers/cdrom/sjcd.c | unsigned int cmd, unsigned long arg ){ |
cmd | 665 | drivers/cdrom/sjcd.c | switch( cmd ){ |
cmd | 921 | drivers/cdrom/sjcd.c | CURRENT->cmd == READ && CURRENT->sector != -1 ) |
cmd | 195 | drivers/cdrom/sonycd535.c | static int do_sony_cmd(Byte * cmd, int nCmd, Byte status[2], |
cmd | 427 | drivers/cdrom/sonycd535.c | Byte cmd; |
cmd | 487 | drivers/cdrom/sonycd535.c | cmd = SONY535_SPIN_UP; |
cmd | 488 | drivers/cdrom/sonycd535.c | do_sony_cmd(&cmd, 1, e_status, NULL, 0, 0); |
cmd | 528 | drivers/cdrom/sonycd535.c | do_sony_cmd(Byte * cmd, int n_cmd, Byte status[2], |
cmd | 535 | drivers/cdrom/sonycd535.c | outb(cmd[i], command_reg); |
cmd | 549 | drivers/cdrom/sonycd535.c | *cmd, status[0], status[1]); |
cmd | 692 | drivers/cdrom/sonycd535.c | Byte cmd; |
cmd | 695 | drivers/cdrom/sonycd535.c | cmd = SONY535_REQUEST_DRIVE_STATUS_1; |
cmd | 696 | drivers/cdrom/sonycd535.c | if (do_sony_cmd(&cmd, 1, status, NULL, 0, 0) != 0) |
cmd | 702 | drivers/cdrom/sonycd535.c | cmd = SONY535_SPIN_UP; |
cmd | 703 | drivers/cdrom/sonycd535.c | return do_sony_cmd(&cmd, 1, status, NULL, 0, 0); |
cmd | 793 | drivers/cdrom/sonycd535.c | Byte cmd[2]; |
cmd | 814 | drivers/cdrom/sonycd535.c | switch (CURRENT->cmd) { |
cmd | 901 | drivers/cdrom/sonycd535.c | cmd[0] = SONY535_SPIN_UP; |
cmd | 902 | drivers/cdrom/sonycd535.c | do_sony_cmd(cmd, 1, status, NULL, 0, 0); |
cmd | 978 | drivers/cdrom/sonycd535.c | Byte cmd = SONY535_REQUEST_SUB_Q_DATA; |
cmd | 985 | drivers/cdrom/sonycd535.c | if ((dsc_status = do_sony_cmd(&cmd, 1, status, (Byte *) last_sony_subcode, |
cmd | 1073 | drivers/cdrom/sonycd535.c | unsigned int cmd, |
cmd | 1093 | drivers/cdrom/sonycd535.c | switch (cmd) { |
cmd | 832 | drivers/char/apm_bios.c | u_int cmd, u_long arg) |
cmd | 839 | drivers/char/apm_bios.c | switch (cmd) { |
cmd | 496 | drivers/char/cyclades.c | write_cy_cmd(u_char *base_addr, u_char cmd, int index) |
cmd | 517 | drivers/char/cyclades.c | base_addr[CyCCR<<index] = cmd; |
cmd | 1917 | drivers/char/cyclades.c | set_modem_info(struct cyclades_port * info, unsigned int cmd, |
cmd | 1933 | drivers/char/cyclades.c | switch (cmd) { |
cmd | 2144 | drivers/char/cyclades.c | unsigned int cmd, unsigned long arg) |
cmd | 2151 | drivers/char/cyclades.c | printk("cy_ioctl ttyC%d, cmd = %x arg = %lx\n", info->line, cmd, arg); /* */ |
cmd | 2154 | drivers/char/cyclades.c | switch (cmd) { |
cmd | 2230 | drivers/char/cyclades.c | ret_val = set_modem_info(info, cmd, (unsigned int *) arg); |
cmd | 454 | drivers/char/ftape/fdc-io.c | byte cmd[] = |
cmd | 460 | drivers/char/ftape/fdc-io.c | cmd[1] = (fdc_drv_spec[0] & 0x1f) | 0x00; |
cmd | 461 | drivers/char/ftape/fdc-io.c | cmd[2] = (fdc_drv_spec[1] & 0x1f) | 0x20; |
cmd | 462 | drivers/char/ftape/fdc-io.c | cmd[3] = (fdc_drv_spec[2] & 0x1f) | 0x40; |
cmd | 463 | drivers/char/ftape/fdc-io.c | cmd[4] = (fdc_drv_spec[3] & 0x1f) | 0x60; |
cmd | 464 | drivers/char/ftape/fdc-io.c | result = fdc_command(cmd, NR_ITEMS(cmd)); |
cmd | 970 | drivers/char/ftape/fdc-io.c | byte cmd[1]; |
cmd | 982 | drivers/char/ftape/fdc-io.c | cmd[0] = FDC_DUMPREGS; |
cmd | 983 | drivers/char/ftape/fdc-io.c | result = fdc_issue_command(cmd, 1, stat, 1); |
cmd | 994 | drivers/char/ftape/fdc-io.c | cmd[0] = FDC_VERSION; |
cmd | 995 | drivers/char/ftape/fdc-io.c | result = fdc_issue_command(cmd, 1, stat, 1); |
cmd | 1000 | drivers/char/ftape/fdc-io.c | cmd[0] = FDC_UNLOCK; |
cmd | 1001 | drivers/char/ftape/fdc-io.c | result = fdc_issue_command(cmd, 1, stat, 1); |
cmd | 1009 | drivers/char/ftape/fdc-io.c | cmd[0] = FDC_LOCK; /* restore lock */ |
cmd | 1010 | drivers/char/ftape/fdc-io.c | result = fdc_issue_command(cmd, 1, stat, 1); |
cmd | 1014 | drivers/char/ftape/fdc-io.c | cmd[0] = FDC_PARTID; |
cmd | 1015 | drivers/char/ftape/fdc-io.c | result = fdc_issue_command(cmd, 1, stat, 1); |
cmd | 1043 | drivers/char/ftape/fdc-io.c | cmd[0] = FDC_SAVE; |
cmd | 1044 | drivers/char/ftape/fdc-io.c | result = fdc_issue_command(cmd, 1, stat, 16); |
cmd | 307 | drivers/char/ftape/fdc-isr.c | static int calc_steps(int cmd) |
cmd | 309 | drivers/char/ftape/fdc-isr.c | if (current_cylinder > cmd) { |
cmd | 310 | drivers/char/ftape/fdc-isr.c | return current_cylinder - cmd; |
cmd | 312 | drivers/char/ftape/fdc-isr.c | return current_cylinder + cmd; |
cmd | 234 | drivers/char/ftape/ftape-io.c | int cmd; |
cmd | 238 | drivers/char/ftape/ftape-io.c | ftape_report_error(&err, &cmd, 1); |
cmd | 626 | drivers/char/istallion.c | static int stli_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg); |
cmd | 645 | drivers/char/istallion.c | static int stli_memioctl(struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg); |
cmd | 655 | drivers/char/istallion.c | static int stli_cmdwait(stlibrd_t *brdp, stliport_t *portp, unsigned long cmd, void *arg, int size, int copyback); |
cmd | 656 | drivers/char/istallion.c | static void stli_sendcmd(stlibrd_t *brdp, stliport_t *portp, unsigned long cmd, void *arg, int size, int copyback); |
cmd | 1272 | drivers/char/istallion.c | static int stli_cmdwait(stlibrd_t *brdp, stliport_t *portp, unsigned long cmd, void *arg, int size, int copyback) |
cmd | 1277 | drivers/char/istallion.c | printk("stli_cmdwait(brdp=%x,portp=%x,cmd=%x,arg=%x,size=%d,copyback=%d)\n", (int) brdp, (int) portp, (int) cmd, (int) arg, size, copyback); |
cmd | 1290 | drivers/char/istallion.c | stli_sendcmd(brdp, portp, cmd, arg, size, copyback); |
cmd | 1843 | drivers/char/istallion.c | static int stli_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg) |
cmd | 1851 | drivers/char/istallion.c | printk("stli_ioctl(tty=%x,file=%x,cmd=%x,arg=%x)\n", (int) tty, (int) file, cmd, (int) arg); |
cmd | 1867 | drivers/char/istallion.c | switch (cmd) { |
cmd | 2273 | drivers/char/istallion.c | static void stli_sendcmd(stlibrd_t *brdp, stliport_t *portp, unsigned long cmd, void *arg, int size, int copyback) |
cmd | 2281 | drivers/char/istallion.c | printk("stli_sendcmd(brdp=%x,portp=%x,cmd=%x,arg=%x,size=%d,copyback=%d)\n", (int) brdp, (int) portp, (int) cmd, (int) arg, size, copyback); |
cmd | 2288 | drivers/char/istallion.c | printk("STALLION: command already busy, cmd=%x!\n", (int) cmd); |
cmd | 2303 | drivers/char/istallion.c | cp->cmd = cmd; |
cmd | 2392 | drivers/char/istallion.c | int cmd; |
cmd | 2396 | drivers/char/istallion.c | cmd = A_SETSIGNALSF; |
cmd | 2398 | drivers/char/istallion.c | cmd = A_SETSIGNALSFTX; |
cmd | 2400 | drivers/char/istallion.c | cmd = A_SETSIGNALSFRX; |
cmd | 2402 | drivers/char/istallion.c | cmd = A_SETSIGNALS; |
cmd | 2408 | drivers/char/istallion.c | cp->cmd = cmd; |
cmd | 2411 | drivers/char/istallion.c | cmd = ((test_bit(ST_DOFLUSHTX, &portp->state)) ? FLUSHTX : 0); |
cmd | 2412 | drivers/char/istallion.c | cmd |= ((test_bit(ST_DOFLUSHRX, &portp->state)) ? FLUSHRX : 0); |
cmd | 2415 | drivers/char/istallion.c | memcpy((void *) &(cp->args[0]), (void *) &cmd, sizeof(int)); |
cmd | 2417 | drivers/char/istallion.c | cp->cmd = A_FLUSH; |
cmd | 2486 | drivers/char/istallion.c | if ((cp->cmd == 0) && (rc != 0)) { |
cmd | 4252 | drivers/char/istallion.c | static int stli_memioctl(struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg) |
cmd | 4258 | drivers/char/istallion.c | printk("stli_memioctl(ip=%x,fp=%x,cmd=%x,arg=%x)\n", (int) ip, (int) fp, cmd, (int) arg); |
cmd | 4272 | drivers/char/istallion.c | switch (cmd) { |
cmd | 392 | drivers/char/lp.c | unsigned int cmd, unsigned long arg) |
cmd | 398 | drivers/char/lp.c | printk(KERN_DEBUG "lp%d ioctl, cmd: 0x%x, arg: 0x%x\n", minor, cmd, arg); |
cmd | 404 | drivers/char/lp.c | switch ( cmd ) { |
cmd | 243 | drivers/char/random.c | unsigned int cmd, unsigned long arg); |
cmd | 732 | drivers/char/random.c | unsigned int cmd, unsigned long arg) |
cmd | 737 | drivers/char/random.c | switch (cmd) { |
cmd | 222 | drivers/char/scc.c | static int scc_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg); |
cmd | 1593 | drivers/char/scc.c | kiss_set_param(struct scc_channel *scc,char cmd, unsigned int val) |
cmd | 1599 | drivers/char/scc.c | switch(cmd){ |
cmd | 2092 | drivers/char/scc.c | scc_ioctl(struct tty_struct *tty, struct file * file, unsigned int cmd, unsigned long arg) |
cmd | 2115 | drivers/char/scc.c | if (cmd == TIOCSCCCFG) |
cmd | 2203 | drivers/char/scc.c | if (cmd == TIOCSCCINI) |
cmd | 2223 | drivers/char/scc.c | if (cmd == TIOCCHANINI) |
cmd | 2272 | drivers/char/scc.c | switch(cmd){ |
cmd | 2294 | drivers/char/scc.c | switch (cmd) { |
cmd | 1627 | drivers/char/serial.c | static int set_modem_info(struct async_struct * info, unsigned int cmd, |
cmd | 1637 | drivers/char/serial.c | switch (cmd) { |
cmd | 1871 | drivers/char/serial.c | unsigned int cmd, unsigned long arg) |
cmd | 1882 | drivers/char/serial.c | if ((cmd != TIOCGSERIAL) && (cmd != TIOCSSERIAL) && |
cmd | 1883 | drivers/char/serial.c | (cmd != TIOCSERCONFIG) && (cmd != TIOCSERGWILD) && |
cmd | 1884 | drivers/char/serial.c | (cmd != TIOCSERSWILD) && (cmd != TIOCSERGSTRUCT) && |
cmd | 1885 | drivers/char/serial.c | (cmd != TIOCMIWAIT) && (cmd != TIOCGICOUNT)) { |
cmd | 1890 | drivers/char/serial.c | switch (cmd) { |
cmd | 1928 | drivers/char/serial.c | return set_modem_info(info, cmd, (unsigned int *) arg); |
cmd | 462 | drivers/char/stallion.c | static int stl_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg); |
cmd | 1160 | drivers/char/stallion.c | static int stl_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg) |
cmd | 1166 | drivers/char/stallion.c | printk("stl_ioctl(tty=%x,file=%x,cmd=%x,arg=%x)\n", (int) tty, (int) file, cmd, (int) arg); |
cmd | 1177 | drivers/char/stallion.c | switch (cmd) { |
cmd | 666 | drivers/char/tpqic02.c | static int notify_cmd(char cmd, short ignore_ex) |
cmd | 670 | drivers/char/tpqic02.c | outb_p(cmd, QIC02_CMD_PORT); /* output the command */ |
cmd | 806 | drivers/char/tpqic02.c | static int send_qic02_cmd(int cmd, time_t timeout, int ignore_ex) |
cmd | 825 | drivers/char/tpqic02.c | status_cmd_pending = cmd; |
cmd | 827 | drivers/char/tpqic02.c | stat = notify_cmd(cmd, ignore_ex); /* tell drive new command was loaded, */ |
cmd | 829 | drivers/char/tpqic02.c | if (TP_HAVE_SEEK && (cmd == AR_QCMDV_SEEK_BLK)) { |
cmd | 974 | drivers/char/tpqic02.c | static void finish_rw(int cmd); |
cmd | 1078 | drivers/char/tpqic02.c | static int ll_do_qic_cmd(int cmd, time_t timeout) |
cmd | 1095 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": ll_do_qic_cmd(%x, %ld) failed\n", cmd, (long) timeout); |
cmd | 1105 | drivers/char/tpqic02.c | stat = send_qic02_cmd(cmd, timeout, 0); /* (checks for exceptions) */ |
cmd | 1107 | drivers/char/tpqic02.c | if (cmd==QCMD_RD_FM) { |
cmd | 1113 | drivers/char/tpqic02.c | } else if (cmd==QCMD_WRT_FM) { |
cmd | 1116 | drivers/char/tpqic02.c | } else if ((cmd==QCMD_REWIND) || (cmd==QCMD_ERASE) || (cmd==QCMD_RETEN)) { |
cmd | 1131 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": Exception persist in ll_do_qic_cmd[1](%x, %ld)", cmd, (long) timeout); |
cmd | 1149 | drivers/char/tpqic02.c | if (tp_sense((cmd==QCMD_SEEK_EOD ? /*****************************/ |
cmd | 1152 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": Exception persist in ll_do_qic_cmd[2](%x, %ld)\n", cmd, (long) timeout); |
cmd | 1153 | drivers/char/tpqic02.c | if (cmd!=QCMD_RD_FM) |
cmd | 1160 | drivers/char/tpqic02.c | printk(TPQIC02_NAME ": ll_do_qic_cmd %x: wait failed, stat == 0x%x\n", cmd, stat); |
cmd | 1192 | drivers/char/tpqic02.c | static void terminate_read(int cmd) |
cmd | 1196 | drivers/char/tpqic02.c | if (cmd != QCMD_RD_FM) { |
cmd | 1220 | drivers/char/tpqic02.c | static void terminate_write(int cmd) |
cmd | 1227 | drivers/char/tpqic02.c | if (cmd != QCMD_WRT_FM) { |
cmd | 1244 | drivers/char/tpqic02.c | static void finish_rw(int cmd) |
cmd | 1250 | drivers/char/tpqic02.c | terminate_read(cmd); |
cmd | 1251 | drivers/char/tpqic02.c | terminate_write(cmd); |
cmd | 1259 | drivers/char/tpqic02.c | static int do_qic_cmd(int cmd, time_t timeout) |
cmd | 1264 | drivers/char/tpqic02.c | finish_rw(cmd); |
cmd | 1274 | drivers/char/tpqic02.c | if (cmd==QCMD_REWIND) /* don't wind beyond BOT ;-) */ |
cmd | 1278 | drivers/char/tpqic02.c | return ll_do_qic_cmd(cmd, timeout); |
cmd | 1286 | drivers/char/tpqic02.c | static int do_ioctl_cmd(int cmd) |
cmd | 1296 | drivers/char/tpqic02.c | switch (cmd) { |
cmd | 119 | drivers/char/tty_io.c | unsigned int cmd, unsigned long arg); |
cmd | 331 | drivers/char/tty_io.c | unsigned int cmd, unsigned long arg) |
cmd | 1362 | drivers/char/tty_io.c | unsigned int cmd, unsigned long arg) |
cmd | 1382 | drivers/char/tty_io.c | switch (cmd) { |
cmd | 1595 | drivers/char/tty_io.c | cmd, arg); |
cmd | 1601 | 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 | 197 | drivers/char/vt.c | unsigned int cmd, unsigned long arg) |
cmd | 219 | drivers/char/vt.c | switch (cmd) { |
cmd | 266 | drivers/char/vt.c | return sys_ioperm(arg, 1, (cmd == KDADDIO)) ? -ENXIO : 0; |
cmd | 271 | drivers/char/vt.c | (cmd == KDENABIO)) ? -ENXIO : 0; |
cmd | 150 | drivers/char/wdt.c | static int wdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd, |
cmd | 359 | drivers/isdn/icn/icn.c | isdn_ctrl cmd; |
cmd | 383 | drivers/isdn/icn/icn.c | cmd.command = ISDN_STAT_BSENT; |
cmd | 384 | drivers/isdn/icn/icn.c | cmd.driver = dev->myid; |
cmd | 385 | drivers/isdn/icn/icn.c | cmd.arg = channel; |
cmd | 386 | drivers/isdn/icn/icn.c | dev->interface.statcallb(&cmd); |
cmd | 460 | drivers/isdn/icn/icn.c | isdn_ctrl cmd; |
cmd | 489 | drivers/isdn/icn/icn.c | cmd.command = ISDN_STAT_BCONN; |
cmd | 490 | drivers/isdn/icn/icn.c | cmd.driver = dev->myid; |
cmd | 491 | drivers/isdn/icn/icn.c | cmd.arg = ch - 1; |
cmd | 492 | drivers/isdn/icn/icn.c | dev->interface.statcallb(&cmd); |
cmd | 496 | drivers/isdn/icn/icn.c | cmd.command = ISDN_STAT_RUN; |
cmd | 497 | drivers/isdn/icn/icn.c | cmd.driver = dev->myid; |
cmd | 498 | drivers/isdn/icn/icn.c | cmd.arg = ch - 1; |
cmd | 499 | drivers/isdn/icn/icn.c | dev->interface.statcallb(&cmd); |
cmd | 513 | drivers/isdn/icn/icn.c | cmd.command = ISDN_STAT_BHUP; |
cmd | 514 | drivers/isdn/icn/icn.c | cmd.arg = ch - 1; |
cmd | 515 | drivers/isdn/icn/icn.c | cmd.driver = dev->myid; |
cmd | 516 | drivers/isdn/icn/icn.c | dev->interface.statcallb(&cmd); |
cmd | 520 | drivers/isdn/icn/icn.c | cmd.command = ISDN_STAT_DCONN; |
cmd | 521 | drivers/isdn/icn/icn.c | cmd.arg = ch - 1; |
cmd | 522 | drivers/isdn/icn/icn.c | cmd.driver = dev->myid; |
cmd | 523 | drivers/isdn/icn/icn.c | dev->interface.statcallb(&cmd); |
cmd | 527 | drivers/isdn/icn/icn.c | cmd.command = ISDN_STAT_DHUP; |
cmd | 528 | drivers/isdn/icn/icn.c | cmd.arg = ch - 1; |
cmd | 529 | drivers/isdn/icn/icn.c | cmd.driver = dev->myid; |
cmd | 530 | drivers/isdn/icn/icn.c | dev->interface.statcallb(&cmd); |
cmd | 534 | drivers/isdn/icn/icn.c | cmd.command = ISDN_STAT_BHUP; |
cmd | 535 | drivers/isdn/icn/icn.c | cmd.arg = 0; |
cmd | 536 | drivers/isdn/icn/icn.c | cmd.driver = dev->myid; |
cmd | 537 | drivers/isdn/icn/icn.c | dev->interface.statcallb(&cmd); |
cmd | 538 | drivers/isdn/icn/icn.c | cmd.command = ISDN_STAT_DHUP; |
cmd | 539 | drivers/isdn/icn/icn.c | cmd.arg = 0; |
cmd | 540 | drivers/isdn/icn/icn.c | cmd.driver = dev->myid; |
cmd | 541 | drivers/isdn/icn/icn.c | dev->interface.statcallb(&cmd); |
cmd | 545 | drivers/isdn/icn/icn.c | cmd.command = ISDN_STAT_CINF; |
cmd | 546 | drivers/isdn/icn/icn.c | cmd.arg = ch - 1; |
cmd | 547 | drivers/isdn/icn/icn.c | strncpy(cmd.num, p + 3, sizeof(cmd.num) - 1); |
cmd | 548 | drivers/isdn/icn/icn.c | cmd.driver = dev->myid; |
cmd | 549 | drivers/isdn/icn/icn.c | dev->interface.statcallb(&cmd); |
cmd | 553 | drivers/isdn/icn/icn.c | cmd.command = ISDN_STAT_CAUSE; |
cmd | 554 | drivers/isdn/icn/icn.c | cmd.arg = ch - 1; |
cmd | 555 | drivers/isdn/icn/icn.c | strncpy(cmd.num, p + 3, sizeof(cmd.num) - 1); |
cmd | 556 | drivers/isdn/icn/icn.c | cmd.driver = dev->myid; |
cmd | 557 | drivers/isdn/icn/icn.c | dev->interface.statcallb(&cmd); |
cmd | 561 | drivers/isdn/icn/icn.c | cmd.command = ISDN_STAT_ICALL; |
cmd | 562 | drivers/isdn/icn/icn.c | cmd.driver = dev->myid; |
cmd | 563 | drivers/isdn/icn/icn.c | cmd.arg = ch - 1; |
cmd | 564 | drivers/isdn/icn/icn.c | strncpy(cmd.num, p + 6, sizeof(cmd.num) - 1); |
cmd | 565 | drivers/isdn/icn/icn.c | dev->interface.statcallb(&cmd); |
cmd | 569 | drivers/isdn/icn/icn.c | cmd.command = ISDN_STAT_ICALL; |
cmd | 570 | drivers/isdn/icn/icn.c | cmd.driver = dev->myid; |
cmd | 571 | drivers/isdn/icn/icn.c | cmd.arg = ch - 1; |
cmd | 572 | drivers/isdn/icn/icn.c | strcpy(cmd.num, "LEASED,07,00,1"); |
cmd | 573 | drivers/isdn/icn/icn.c | dev->interface.statcallb(&cmd); |
cmd | 577 | drivers/isdn/icn/icn.c | cmd.command = ISDN_STAT_ICALL; |
cmd | 578 | drivers/isdn/icn/icn.c | cmd.driver = dev->myid; |
cmd | 579 | drivers/isdn/icn/icn.c | cmd.arg = ch - 1; |
cmd | 580 | drivers/isdn/icn/icn.c | strncpy(cmd.num, p + 6, sizeof(cmd.num) - 1); |
cmd | 581 | drivers/isdn/icn/icn.c | dev->interface.statcallb(&cmd); |
cmd | 585 | drivers/isdn/icn/icn.c | cmd.command = ISDN_STAT_NODCH; |
cmd | 586 | drivers/isdn/icn/icn.c | cmd.driver = dev->myid; |
cmd | 587 | drivers/isdn/icn/icn.c | cmd.arg = ch - 1; |
cmd | 588 | drivers/isdn/icn/icn.c | strncpy(cmd.num, p + 6, sizeof(cmd.num) - 1); |
cmd | 589 | drivers/isdn/icn/icn.c | dev->interface.statcallb(&cmd); |
cmd | 619 | drivers/isdn/icn/icn.c | cmd.command = ISDN_STAT_STAVAIL; |
cmd | 620 | drivers/isdn/icn/icn.c | cmd.driver = dev->myid; |
cmd | 621 | drivers/isdn/icn/icn.c | cmd.arg = avail; |
cmd | 622 | drivers/isdn/icn/icn.c | dev->interface.statcallb(&cmd); |
cmd | 971 | drivers/isdn/icn/icn.c | isdn_ctrl cmd; |
cmd | 1003 | drivers/isdn/icn/icn.c | cmd.command = ISDN_STAT_STAVAIL; |
cmd | 1004 | drivers/isdn/icn/icn.c | cmd.driver = dev->myid; |
cmd | 1005 | drivers/isdn/icn/icn.c | cmd.arg = ocount; |
cmd | 1006 | drivers/isdn/icn/icn.c | dev->interface.statcallb(&cmd); |
cmd | 1023 | drivers/isdn/icn/icn.c | isdn_ctrl cmd; |
cmd | 1029 | drivers/isdn/icn/icn.c | cmd.command = ISDN_STAT_STOP; |
cmd | 1030 | drivers/isdn/icn/icn.c | cmd.driver = ldev->myid; |
cmd | 1031 | drivers/isdn/icn/icn.c | ldev->interface.statcallb(&cmd); |
cmd | 1053 | drivers/isdn/icn/icn.c | isdn_ctrl cmd; |
cmd | 1149 | drivers/isdn/icn/icn.c | cmd.command = ISDN_STAT_RUN; |
cmd | 1150 | drivers/isdn/icn/icn.c | cmd.driver = ldev->myid; |
cmd | 1151 | drivers/isdn/icn/icn.c | cmd.arg = 0; |
cmd | 1152 | drivers/isdn/icn/icn.c | ldev->interface.statcallb(&cmd); |
cmd | 1160 | drivers/isdn/icn/icn.c | cmd.command = ISDN_STAT_RUN; |
cmd | 1161 | drivers/isdn/icn/icn.c | cmd.driver = ldev->myid; |
cmd | 1162 | drivers/isdn/icn/icn.c | cmd.arg = 0; |
cmd | 1163 | drivers/isdn/icn/icn.c | ldev->interface.statcallb(&cmd); |
cmd | 1375 | drivers/isdn/icn/icn.c | isdn_ctrl cmd; |
cmd | 1437 | drivers/isdn/icn/icn.c | cmd.command = ISDN_STAT_UNLOAD; |
cmd | 1438 | drivers/isdn/icn/icn.c | cmd.driver = dev->myid; |
cmd | 1439 | drivers/isdn/icn/icn.c | dev->interface.statcallb(&cmd); |
cmd | 1473 | drivers/isdn/icn/icn.c | isdn_ctrl cmd; |
cmd | 1477 | drivers/isdn/icn/icn.c | cmd.command = ISDN_STAT_UNLOAD; |
cmd | 1478 | drivers/isdn/icn/icn.c | cmd.driver = dev->myid; |
cmd | 1479 | drivers/isdn/icn/icn.c | dev->interface.statcallb(&cmd); |
cmd | 1482 | drivers/isdn/icn/icn.c | cmd.command = ISDN_STAT_UNLOAD; |
cmd | 1483 | drivers/isdn/icn/icn.c | cmd.driver = dev2->myid; |
cmd | 1484 | drivers/isdn/icn/icn.c | dev2->interface.statcallb(&cmd); |
cmd | 287 | drivers/isdn/isdn_common.c | isdn_ctrl cmd; |
cmd | 289 | drivers/isdn/isdn_common.c | cmd.driver = di; |
cmd | 290 | drivers/isdn/isdn_common.c | cmd.arg = ch; |
cmd | 291 | drivers/isdn/isdn_common.c | cmd.command = ISDN_CMD_SETEAZ; |
cmd | 292 | drivers/isdn/isdn_common.c | cmd.num[0] = '\0'; |
cmd | 293 | drivers/isdn/isdn_common.c | (void) dev->drv[di]->interface->command(&cmd); |
cmd | 303 | drivers/isdn/isdn_common.c | isdn_ctrl cmd; |
cmd | 343 | drivers/isdn/isdn_common.c | cmd.driver = di; |
cmd | 344 | drivers/isdn/isdn_common.c | cmd.arg = c->arg; |
cmd | 345 | drivers/isdn/isdn_common.c | cmd.command = ISDN_CMD_HANGUP; |
cmd | 346 | drivers/isdn/isdn_common.c | dev->drv[di]->interface->command(&cmd); |
cmd | 362 | drivers/isdn/isdn_common.c | cmd.driver = di; |
cmd | 363 | drivers/isdn/isdn_common.c | cmd.arg = c->arg; |
cmd | 364 | drivers/isdn/isdn_common.c | cmd.command = ISDN_CMD_HANGUP; |
cmd | 365 | drivers/isdn/isdn_common.c | dev->drv[di]->interface->command(&cmd); |
cmd | 371 | drivers/isdn/isdn_common.c | cmd.driver = di; |
cmd | 372 | drivers/isdn/isdn_common.c | cmd.arg = c->arg; |
cmd | 373 | drivers/isdn/isdn_common.c | cmd.command = ISDN_CMD_ACCEPTD; |
cmd | 374 | drivers/isdn/isdn_common.c | dev->drv[di]->interface->command(&cmd); |
cmd | 378 | drivers/isdn/isdn_common.c | cmd.driver = di; |
cmd | 379 | drivers/isdn/isdn_common.c | cmd.arg = c->arg; |
cmd | 380 | drivers/isdn/isdn_common.c | cmd.command = ISDN_CMD_HANGUP; |
cmd | 381 | drivers/isdn/isdn_common.c | dev->drv[di]->interface->command(&cmd); |
cmd | 423 | drivers/isdn/isdn_common.c | cmd.driver = di; |
cmd | 424 | drivers/isdn/isdn_common.c | cmd.arg = c->arg; |
cmd | 425 | drivers/isdn/isdn_common.c | cmd.command = ISDN_CMD_ACCEPTB; |
cmd | 426 | drivers/isdn/isdn_common.c | dev->drv[di]->interface->command(&cmd); |
cmd | 997 | drivers/isdn/isdn_common.c | static int isdn_ioctl(struct inode *inode, struct file *file, uint cmd, ulong arg) |
cmd | 1025 | drivers/isdn/isdn_common.c | switch (cmd) { |
cmd | 1273 | drivers/isdn/isdn_common.c | if (cmd == IIOCSETMAP) { |
cmd | 1310 | drivers/isdn/isdn_common.c | if ((cmd&IIOCDRVCTL)==IIOCDRVCTL) |
cmd | 1311 | drivers/isdn/isdn_common.c | cmd = ((cmd>>_IOC_NRSHIFT)&_IOC_NRMASK)& ISDN_DRVIOCTL_MASK; |
cmd | 1339 | drivers/isdn/isdn_common.c | c.arg = cmd; |
cmd | 1351 | drivers/isdn/isdn_common.c | return (isdn_ppp_ioctl(minor - ISDN_MINOR_PPP, file, cmd, arg)); |
cmd | 193 | drivers/isdn/isdn_net.c | isdn_net_stat_callback(int idx, int cmd) |
cmd | 199 | drivers/isdn/isdn_net.c | switch (cmd) { |
cmd | 316 | drivers/isdn/isdn_net.c | isdn_ctrl cmd; |
cmd | 333 | drivers/isdn/isdn_net.c | cmd.driver = p->local.isdn_device; |
cmd | 334 | drivers/isdn/isdn_net.c | cmd.arg = p->local.isdn_channel; |
cmd | 335 | drivers/isdn/isdn_net.c | cmd.command = ISDN_CMD_CLREAZ; |
cmd | 336 | drivers/isdn/isdn_net.c | dev->drv[p->local.isdn_device]->interface->command(&cmd); |
cmd | 337 | drivers/isdn/isdn_net.c | sprintf(cmd.num, "%s", isdn_map_eaz2msn(p->local.msn, cmd.driver)); |
cmd | 338 | drivers/isdn/isdn_net.c | cmd.command = ISDN_CMD_SETEAZ; |
cmd | 339 | drivers/isdn/isdn_net.c | dev->drv[p->local.isdn_device]->interface->command(&cmd); |
cmd | 349 | drivers/isdn/isdn_net.c | cmd.driver = p->local.isdn_device; |
cmd | 350 | drivers/isdn/isdn_net.c | cmd.command = ISDN_CMD_SETL2; |
cmd | 351 | drivers/isdn/isdn_net.c | cmd.arg = p->local.isdn_channel + (p->local.l2_proto << 8); |
cmd | 352 | drivers/isdn/isdn_net.c | dev->drv[p->local.isdn_device]->interface->command(&cmd); |
cmd | 353 | drivers/isdn/isdn_net.c | cmd.driver = p->local.isdn_device; |
cmd | 354 | drivers/isdn/isdn_net.c | cmd.command = ISDN_CMD_SETL3; |
cmd | 355 | drivers/isdn/isdn_net.c | cmd.arg = p->local.isdn_channel + (p->local.l3_proto << 8); |
cmd | 356 | drivers/isdn/isdn_net.c | dev->drv[p->local.isdn_device]->interface->command(&cmd); |
cmd | 357 | drivers/isdn/isdn_net.c | cmd.driver = p->local.isdn_device; |
cmd | 358 | drivers/isdn/isdn_net.c | cmd.arg = p->local.isdn_channel; |
cmd | 366 | drivers/isdn/isdn_net.c | cmd.command = ISDN_CMD_DIAL; |
cmd | 367 | drivers/isdn/isdn_net.c | sprintf(cmd.num, "%s,%s,7,0", p->local.dial->num, |
cmd | 368 | drivers/isdn/isdn_net.c | isdn_map_eaz2msn(p->local.msn, cmd.driver)); |
cmd | 388 | drivers/isdn/isdn_net.c | dev->drv[p->local.isdn_device]->interface->command(&cmd); |
cmd | 407 | drivers/isdn/isdn_net.c | cmd.driver = p->local.isdn_device; |
cmd | 408 | drivers/isdn/isdn_net.c | cmd.arg = p->local.isdn_channel; |
cmd | 409 | drivers/isdn/isdn_net.c | cmd.command = ISDN_CMD_ACCEPTB; |
cmd | 413 | drivers/isdn/isdn_net.c | dev->drv[p->local.isdn_device]->interface->command(&cmd); |
cmd | 433 | drivers/isdn/isdn_net.c | cmd.driver = p->local.isdn_device; |
cmd | 434 | drivers/isdn/isdn_net.c | cmd.command = ISDN_CMD_SETL2; |
cmd | 435 | drivers/isdn/isdn_net.c | cmd.arg = p->local.isdn_channel + (p->local.l2_proto << 8); |
cmd | 436 | drivers/isdn/isdn_net.c | dev->drv[p->local.isdn_device]->interface->command(&cmd); |
cmd | 437 | drivers/isdn/isdn_net.c | cmd.driver = p->local.isdn_device; |
cmd | 438 | drivers/isdn/isdn_net.c | cmd.command = ISDN_CMD_SETL3; |
cmd | 439 | drivers/isdn/isdn_net.c | cmd.arg = p->local.isdn_channel + (p->local.l3_proto << 8); |
cmd | 440 | drivers/isdn/isdn_net.c | dev->drv[p->local.isdn_device]->interface->command(&cmd); |
cmd | 450 | drivers/isdn/isdn_net.c | cmd.driver = p->local.isdn_device; |
cmd | 451 | drivers/isdn/isdn_net.c | cmd.arg = p->local.isdn_channel; |
cmd | 452 | drivers/isdn/isdn_net.c | cmd.command = ISDN_CMD_ACCEPTB; |
cmd | 453 | drivers/isdn/isdn_net.c | dev->drv[p->local.isdn_device]->interface->command(&cmd); |
cmd | 503 | drivers/isdn/isdn_net.c | isdn_ctrl cmd; |
cmd | 518 | drivers/isdn/isdn_net.c | cmd.driver = lp->isdn_device; |
cmd | 519 | drivers/isdn/isdn_net.c | cmd.command = ISDN_CMD_HANGUP; |
cmd | 520 | drivers/isdn/isdn_net.c | cmd.arg = lp->isdn_channel; |
cmd | 521 | drivers/isdn/isdn_net.c | (void) dev->drv[cmd.driver]->interface->command(&cmd); |
cmd | 275 | drivers/isdn/isdn_ppp.c | int isdn_ppp_ioctl(int minor, struct file *file, unsigned int cmd, unsigned long arg) |
cmd | 281 | drivers/isdn/isdn_ppp.c | printk(KERN_DEBUG "isdn_ppp_ioctl: minor: %d cmd: %x",minor,cmd); |
cmd | 288 | drivers/isdn/isdn_ppp.c | switch (cmd) { |
cmd | 1155 | drivers/isdn/isdn_ppp.c | int isdn_ppp_dev_ioctl(struct device *dev, struct ifreq *ifr, int cmd) |
cmd | 1165 | drivers/isdn/isdn_ppp.c | switch (cmd) { |
cmd | 144 | drivers/isdn/isdn_tty.c | isdn_ctrl cmd; |
cmd | 163 | drivers/isdn/isdn_tty.c | cmd.driver = info->isdn_driver; |
cmd | 164 | drivers/isdn/isdn_tty.c | cmd.arg = info->isdn_channel; |
cmd | 165 | drivers/isdn/isdn_tty.c | cmd.command = ISDN_CMD_CLREAZ; |
cmd | 166 | drivers/isdn/isdn_tty.c | dev->drv[info->isdn_driver]->interface->command(&cmd); |
cmd | 167 | drivers/isdn/isdn_tty.c | strcpy(cmd.num, isdn_map_eaz2msn(m->msn, info->isdn_driver)); |
cmd | 168 | drivers/isdn/isdn_tty.c | cmd.driver = info->isdn_driver; |
cmd | 169 | drivers/isdn/isdn_tty.c | cmd.command = ISDN_CMD_SETEAZ; |
cmd | 170 | drivers/isdn/isdn_tty.c | dev->drv[info->isdn_driver]->interface->command(&cmd); |
cmd | 171 | drivers/isdn/isdn_tty.c | cmd.driver = info->isdn_driver; |
cmd | 172 | drivers/isdn/isdn_tty.c | cmd.command = ISDN_CMD_SETL2; |
cmd | 173 | drivers/isdn/isdn_tty.c | cmd.arg = info->isdn_channel + (m->mdmreg[14] << 8); |
cmd | 174 | drivers/isdn/isdn_tty.c | dev->drv[info->isdn_driver]->interface->command(&cmd); |
cmd | 175 | drivers/isdn/isdn_tty.c | cmd.driver = info->isdn_driver; |
cmd | 176 | drivers/isdn/isdn_tty.c | cmd.command = ISDN_CMD_SETL3; |
cmd | 177 | drivers/isdn/isdn_tty.c | cmd.arg = info->isdn_channel + (m->mdmreg[15] << 8); |
cmd | 178 | drivers/isdn/isdn_tty.c | dev->drv[info->isdn_driver]->interface->command(&cmd); |
cmd | 179 | drivers/isdn/isdn_tty.c | cmd.driver = info->isdn_driver; |
cmd | 180 | drivers/isdn/isdn_tty.c | cmd.arg = info->isdn_channel; |
cmd | 181 | drivers/isdn/isdn_tty.c | sprintf(cmd.num, "%s,%s,%d,%d", n, isdn_map_eaz2msn(m->msn, info->isdn_driver), |
cmd | 183 | drivers/isdn/isdn_tty.c | cmd.command = ISDN_CMD_DIAL; |
cmd | 187 | drivers/isdn/isdn_tty.c | dev->drv[info->isdn_driver]->interface->command(&cmd); |
cmd | 195 | drivers/isdn/isdn_tty.c | isdn_ctrl cmd; |
cmd | 200 | drivers/isdn/isdn_tty.c | cmd.driver = info->isdn_driver; |
cmd | 201 | drivers/isdn/isdn_tty.c | cmd.command = ISDN_CMD_HANGUP; |
cmd | 202 | drivers/isdn/isdn_tty.c | cmd.arg = info->isdn_channel; |
cmd | 203 | drivers/isdn/isdn_tty.c | dev->drv[info->isdn_driver]->interface->command(&cmd); |
cmd | 590 | drivers/isdn/isdn_tty.c | static int isdn_tty_set_modem_info(modem_info * info, uint cmd, uint * value) |
cmd | 594 | drivers/isdn/isdn_tty.c | switch (cmd) { |
cmd | 641 | drivers/isdn/isdn_tty.c | uint cmd, ulong arg) |
cmd | 649 | drivers/isdn/isdn_tty.c | switch (cmd) { |
cmd | 682 | drivers/isdn/isdn_tty.c | return isdn_tty_set_modem_info(info, cmd, (uint *) arg); |
cmd | 745 | drivers/isdn/isdn_tty.c | printk(KERN_DEBUG "unsupp. ioctl 0x%08x on ttyi%d\n", cmd, info->line); |
cmd | 1445 | drivers/isdn/isdn_tty.c | isdn_ctrl cmd; |
cmd | 1448 | drivers/isdn/isdn_tty.c | cmd.driver = info->isdn_driver; |
cmd | 1449 | drivers/isdn/isdn_tty.c | cmd.arg = info->isdn_channel; |
cmd | 1450 | drivers/isdn/isdn_tty.c | cmd.command = ISDN_CMD_ACCEPTD; |
cmd | 1451 | drivers/isdn/isdn_tty.c | dev->drv[info->isdn_driver]->interface->command(&cmd); |
cmd | 1560 | drivers/isdn/isdn_tty.c | isdn_ctrl cmd; |
cmd | 1583 | drivers/isdn/isdn_tty.c | cmd.driver = info->isdn_driver; |
cmd | 1584 | drivers/isdn/isdn_tty.c | cmd.command = ISDN_CMD_SETL2; |
cmd | 1585 | drivers/isdn/isdn_tty.c | cmd.arg = info->isdn_channel + (m->mdmreg[14] << 8); |
cmd | 1586 | drivers/isdn/isdn_tty.c | dev->drv[info->isdn_driver]->interface->command(&cmd); |
cmd | 1587 | drivers/isdn/isdn_tty.c | cmd.driver = info->isdn_driver; |
cmd | 1588 | drivers/isdn/isdn_tty.c | cmd.command = ISDN_CMD_SETL3; |
cmd | 1589 | drivers/isdn/isdn_tty.c | cmd.arg = info->isdn_channel + (m->mdmreg[15] << 8); |
cmd | 1590 | drivers/isdn/isdn_tty.c | dev->drv[info->isdn_driver]->interface->command(&cmd); |
cmd | 1591 | drivers/isdn/isdn_tty.c | cmd.driver = info->isdn_driver; |
cmd | 1592 | drivers/isdn/isdn_tty.c | cmd.arg = info->isdn_channel; |
cmd | 1593 | drivers/isdn/isdn_tty.c | cmd.command = ISDN_CMD_ACCEPTD; |
cmd | 1600 | drivers/isdn/isdn_tty.c | fido_command(&cmd); |
cmd | 1602 | drivers/isdn/isdn_tty.c | dev->drv[info->isdn_driver]->interface->command(&cmd); |
cmd | 105 | drivers/net/apricot.c | struct i596_cmd cmd; |
cmd | 113 | drivers/net/apricot.c | unsigned short cmd; |
cmd | 126 | drivers/net/apricot.c | struct i596_cmd *cmd; |
cmd | 189 | drivers/net/apricot.c | static void i596_add_cmd(struct device *dev, struct i596_cmd *cmd); |
cmd | 216 | drivers/net/apricot.c | rfd->cmd = CMD_EOL; |
cmd | 220 | drivers/net/apricot.c | rfd->cmd = 0x0000; |
cmd | 271 | drivers/net/apricot.c | lp->cmd_head = lp->scb.cmd = (struct i596_cmd *) I596_NULL; |
cmd | 373 | drivers/net/apricot.c | lp->rx_tail->cmd = 0; |
cmd | 377 | drivers/net/apricot.c | lp->rx_tail->cmd = CMD_EOL; |
cmd | 438 | drivers/net/apricot.c | lp->scb.cmd = lp->cmd_head; |
cmd | 482 | drivers/net/apricot.c | static void i596_add_cmd(struct device *dev, struct i596_cmd *cmd) |
cmd | 491 | drivers/net/apricot.c | cmd->status = 0; |
cmd | 492 | drivers/net/apricot.c | cmd->command |= (CMD_EOL|CMD_INTR); |
cmd | 493 | drivers/net/apricot.c | cmd->next = (struct i596_cmd *) I596_NULL; |
cmd | 498 | drivers/net/apricot.c | lp->cmd_tail->next = cmd; |
cmd | 501 | drivers/net/apricot.c | lp->cmd_head = cmd; |
cmd | 510 | drivers/net/apricot.c | lp->scb.cmd = cmd; |
cmd | 514 | drivers/net/apricot.c | lp->cmd_tail = cmd; |
cmd | 517 | drivers/net/apricot.c | lp->cmd_head = lp->scb.cmd; |
cmd | 639 | drivers/net/apricot.c | tx_cmd->cmd.command = CMD_FLEX|CmdTx; |
cmd | 739 | drivers/net/apricot.c | lp->scb.cmd = (struct i596_cmd *) I596_NULL; |
cmd | 871 | drivers/net/apricot.c | lp->scb.cmd = lp->cmd_head; |
cmd | 960 | drivers/net/apricot.c | struct i596_cmd *cmd; |
cmd | 969 | drivers/net/apricot.c | cmd = (struct i596_cmd *) kmalloc(sizeof(struct i596_cmd)+2+dev->mc_count*6, GFP_ATOMIC); |
cmd | 970 | drivers/net/apricot.c | if (cmd == NULL) |
cmd | 975 | drivers/net/apricot.c | cmd->command = CmdMulticastList; |
cmd | 976 | drivers/net/apricot.c | *((unsigned short *) (cmd + 1)) = dev->mc_count * 6; |
cmd | 977 | drivers/net/apricot.c | cp=((char *)(cmd + 1))+2; |
cmd | 983 | drivers/net/apricot.c | print_eth (((char *)(cmd + 1)) + 2); |
cmd | 984 | drivers/net/apricot.c | i596_add_cmd(dev, cmd); |
cmd | 132 | drivers/net/atp.c | static unsigned short eeprom_op(short ioaddr, unsigned int cmd); |
cmd | 293 | drivers/net/atp.c | static unsigned short eeprom_op(short ioaddr, unsigned int cmd) |
cmd | 299 | drivers/net/atp.c | char outval = test_bit(num_bits, &cmd) ? EE_DATA_WRITE : 0; |
cmd | 537 | drivers/net/de4x5.c | static int de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd); |
cmd | 3493 | drivers/net/de4x5.c | static int de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
cmd | 3506 | drivers/net/de4x5.c | switch(ioc->cmd) { |
cmd | 784 | drivers/net/de4x5.h | unsigned short cmd; /* Command to run */ |
cmd | 287 | drivers/net/de600.c | #define de600_put_command(cmd) ( \ |
cmd | 290 | drivers/net/de600.c | outb_p(((rx_page | cmd) << 4) | COMMAND , DATA_PORT), \ |
cmd | 291 | drivers/net/de600.c | outb_p(((rx_page | cmd) & 0xf0) | COMMAND | HI_NIBBLE, DATA_PORT)) |
cmd | 272 | drivers/net/de620.c | de620_send_command(struct device *dev, byte cmd) |
cmd | 275 | drivers/net/de620.c | if (cmd == W_DUMMY) |
cmd | 278 | drivers/net/de620.c | outb(cmd, DATA_PORT); |
cmd | 386 | drivers/net/depca.c | static int depca_ioctl(struct device *dev, struct ifreq *rq, int cmd); |
cmd | 1699 | drivers/net/depca.c | static int depca_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
cmd | 1711 | drivers/net/depca.c | switch(ioc->cmd) { |
cmd | 163 | drivers/net/depca.h | unsigned short cmd; /* Command to run */ |
cmd | 792 | drivers/net/eexpress.c | unsigned short cmd = 0x180|(location&0x7f); |
cmd | 799 | drivers/net/eexpress.c | if (cmd&i) |
cmd | 148 | drivers/net/eql.c | static int eql_ioctl(struct device *dev, struct ifreq *ifr, int cmd); /* */ |
cmd | 337 | drivers/net/eql.c | static int eql_ioctl(struct device *dev, struct ifreq *ifr, int cmd) |
cmd | 339 | drivers/net/eql.c | if(!suser() && cmd!=EQL_GETMASTRCFG && cmd!=EQL_GETSLAVECFG) |
cmd | 341 | drivers/net/eql.c | switch (cmd) |
cmd | 780 | drivers/net/eth16i.c | short cmd = ( (command & (1 << i)) ? DI_1 : DI_0 ); |
cmd | 781 | drivers/net/eth16i.c | outb(cmd, ioaddr + EEPROM_DATA_REG); |
cmd | 295 | drivers/net/ewrk3.c | static int ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd); |
cmd | 1672 | drivers/net/ewrk3.c | static int ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
cmd | 1684 | drivers/net/ewrk3.c | switch(ioc->cmd) { |
cmd | 297 | drivers/net/ewrk3.h | unsigned short cmd; /* Command to run */ |
cmd | 154 | drivers/net/pi2.c | static int pi_ioctl(struct device *dev, struct ifreq *ifr, int cmd); |
cmd | 241 | drivers/net/pi2.c | int cmd; |
cmd | 250 | drivers/net/pi2.c | cmd = lp->base + CTL; |
cmd | 256 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R1, WT_FN_RDYFN | WT_RDY_RT | INT_ERR_Rx | EXT_INT_ENAB); |
cmd | 272 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_Rx_CRC); |
cmd | 275 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R1, |
cmd | 345 | drivers/net/pi2.c | int cmd; |
cmd | 351 | drivers/net/pi2.c | cmd = CTL + lp->base; |
cmd | 367 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 368 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 369 | drivers/net/pi2.c | if ((rdscc(lp->cardbase, cmd, R0) & DCD) != 0) { |
cmd | 373 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R15, CTSIE | DCDIE); |
cmd | 384 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R5, TxCRC_ENAB | RTS | Tx8); |
cmd | 400 | drivers/net/pi2.c | int cmd; |
cmd | 411 | drivers/net/pi2.c | cmd = lp->base + CTL; |
cmd | 438 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R1, WT_FN_RDYFN | EXT_INT_ENAB); |
cmd | 455 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_Tx_CRC | RES_Tx_P); |
cmd | 458 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R15, TxUIE); |
cmd | 461 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R1, WT_RDY_ENAB | WT_FN_RDYFN | EXT_INT_ENAB); |
cmd | 464 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EOM_L); |
cmd | 474 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 475 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 476 | drivers/net/pi2.c | if ((rdscc(lp->cardbase, cmd, R0) & DCD) != 0) { |
cmd | 491 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R5, TxCRC_ENAB | RTS | Tx8); |
cmd | 507 | drivers/net/pi2.c | int cmd; |
cmd | 517 | drivers/net/pi2.c | cmd = lp->base + CTL; |
cmd | 519 | drivers/net/pi2.c | rse = rdscc(lp->cardbase, cmd, R1); /* Get special condition bits from R1 */ |
cmd | 583 | drivers/net/pi2.c | int cmd; |
cmd | 592 | drivers/net/pi2.c | cmd = CTL + lp->base; |
cmd | 594 | drivers/net/pi2.c | rse = rdscc(lp->cardbase, cmd, R1); /* get status byte from R1 */ |
cmd | 596 | drivers/net/pi2.c | if ((rdscc(lp->cardbase, cmd, R0)) & Rx_CH_AV) { |
cmd | 618 | drivers/net/pi2.c | *lp->rcp++ = rdscc(lp->cardbase, cmd, R8); /* char to rcv buff */ |
cmd | 622 | drivers/net/pi2.c | (void) rdscc(lp->cardbase, cmd, R8); |
cmd | 623 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, ERR_RES); /* reset err latch */ |
cmd | 677 | drivers/net/pi2.c | int cmd; |
cmd | 682 | drivers/net/pi2.c | cmd = CTL + lp->base; |
cmd | 708 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 709 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 710 | drivers/net/pi2.c | if ((rdscc(lp->cardbase, cmd, R0) & DCD) != 0) { |
cmd | 714 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R15, CTSIE | DCDIE); |
cmd | 735 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R8, c); |
cmd | 741 | drivers/net/pi2.c | if ((rdscc(lp->cardbase, cmd, R0) & 0x40)) { |
cmd | 746 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, SEND_ABORT); |
cmd | 755 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R10, CRCPS | NRZI); |
cmd | 757 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R10, CRCPS); |
cmd | 759 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_Tx_P); /* reset Tx Int Pend */ |
cmd | 778 | drivers/net/pi2.c | int cmd; |
cmd | 781 | drivers/net/pi2.c | cmd = CTL + lp->base; |
cmd | 784 | drivers/net/pi2.c | st = rdscc(lp->cardbase, cmd, R0); /* Fetch status */ |
cmd | 786 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 793 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, SEND_ABORT); |
cmd | 821 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_Tx_CRC); /* reset for next frame */ |
cmd | 825 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R10, CRCPS | NRZI | ABUNDER); |
cmd | 827 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R10, CRCPS | ABUNDER); |
cmd | 830 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R8, c); /* First char out now */ |
cmd | 831 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EOM_L); /* Reset end of message latch */ |
cmd | 839 | drivers/net/pi2.c | while((rdscc(lp->cardbase, cmd, R0) & 0x04) == 0) |
cmd | 841 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R8, c); |
cmd | 847 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R15, TxUIE); /* allow Underrun int only */ |
cmd | 848 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 849 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R1, TxINT_ENAB | EXT_INT_ENAB); /* Tx/Ext ints */ |
cmd | 859 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 860 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 861 | drivers/net/pi2.c | if ((rdscc(lp->cardbase, cmd, R0) & DCD) != 0) { |
cmd | 865 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R15, CTSIE | DCDIE); |
cmd | 886 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_Tx_CRC); /* reset for next frame */ |
cmd | 890 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R10, CRCPS | NRZI | ABUNDER); |
cmd | 892 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R10, CRCPS | ABUNDER); |
cmd | 895 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R8, c); /* First char out now */ |
cmd | 896 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EOM_L); /* Reset end of message latch */ |
cmd | 904 | drivers/net/pi2.c | while((rdscc(lp->cardbase, cmd, R0) & 0x04) == 0) |
cmd | 906 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R8, c); |
cmd | 912 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R15, TxUIE); /* allow Underrun int only */ |
cmd | 913 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 915 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R1, TxINT_ENAB | EXT_INT_ENAB); |
cmd | 928 | drivers/net/pi2.c | (void) rdscc(lp->cardbase, cmd, R8); |
cmd | 929 | drivers/net/pi2.c | (void) rdscc(lp->cardbase, cmd, R8); |
cmd | 930 | drivers/net/pi2.c | (void) rdscc(lp->cardbase, cmd, R8); |
cmd | 1002 | drivers/net/pi2.c | int cmd; |
cmd | 1006 | drivers/net/pi2.c | cmd = CTL + lp->base; |
cmd | 1011 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R15, 0); |
cmd | 1012 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R3, Rx8); /* Rx off */ |
cmd | 1014 | drivers/net/pi2.c | if (cmd & 2) { /* if channel a */ |
cmd | 1016 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R1, WT_FN_RDYFN | EXT_INT_ENAB); |
cmd | 1018 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R1, 0); /* No interrupts */ |
cmd | 1025 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R12, tc & 0xFF); /* lower byte */ |
cmd | 1026 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R13, (tc >> 8) & 0xFF); /* upper byte */ |
cmd | 1029 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R5, TxCRC_ENAB | RTS | TxENAB | Tx8 | DTR); |
cmd | 1033 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R5, Tx8 | DTR); /* TX off */ |
cmd | 1039 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R14, BRSRC); |
cmd | 1043 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R12, tc & 0xFF); /* lower byte */ |
cmd | 1044 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R13, (tc >> 8) & 0xFF); /* upper byte */ |
cmd | 1046 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R14, BRSRC | SEARCH); |
cmd | 1048 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R14, BRSRC | BRENABL); |
cmd | 1052 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R3, Rx8); /* Make sure rx is off */ |
cmd | 1053 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R0, ERR_RES); /* reset err latch */ |
cmd | 1054 | drivers/net/pi2.c | dummy = rdscc(lp->cardbase, cmd, R1); /* get status byte from R1 */ |
cmd | 1055 | drivers/net/pi2.c | (void) rdscc(lp->cardbase, cmd, R8); |
cmd | 1056 | drivers/net/pi2.c | (void) rdscc(lp->cardbase, cmd, R8); |
cmd | 1058 | drivers/net/pi2.c | (void) rdscc(lp->cardbase, cmd, R8); |
cmd | 1061 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R3, RxENABLE | Rx8); |
cmd | 1064 | drivers/net/pi2.c | if (cmd & 2) { /* if channel a */ |
cmd | 1070 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R1, (INT_ALL_Rx | EXT_INT_ENAB)); |
cmd | 1072 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R15, BRKIE); /* allow ABORT int */ |
cmd | 1097 | drivers/net/pi2.c | register int cmd; |
cmd | 1101 | drivers/net/pi2.c | cmd = CTL + lp->base; |
cmd | 1105 | drivers/net/pi2.c | switch (cmd & CHANA) { |
cmd | 1107 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R9, CHRA); /* Reset channel A */ |
cmd | 1108 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R2, 0xff); /* Initialize interrupt vector */ |
cmd | 1111 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R9, CHRB); /* Reset channel B */ |
cmd | 1116 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R1, 0); |
cmd | 1119 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R15, 0); |
cmd | 1122 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R4, SDLC | X1CLK); |
cmd | 1126 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R10, CRCPS | NRZI); |
cmd | 1129 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R11, TCBR | RCDPLL | TRxCDP | TRxCOI); |
cmd | 1132 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R11, TCDPLL | RCDPLL | TRxCBR | TRxCOI); |
cmd | 1134 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R10, CRCPS); |
cmd | 1136 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R11, TCTRxCP); |
cmd | 1140 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R6, 0); |
cmd | 1143 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R7, FLAG); |
cmd | 1148 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R5, Tx8 | DTR); |
cmd | 1151 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R3, Rx8); /* 8 bits/char */ |
cmd | 1154 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R14, BRSRC); /* BRG off, keep Pclk source */ |
cmd | 1165 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R12, tc & 0xFF); /* lower byte */ |
cmd | 1166 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R13, (tc >> 8) & 0xFF); /* upper byte */ |
cmd | 1173 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R14, BRSRC | SSBR); |
cmd | 1176 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R14, BRSRC | SSRTxC); |
cmd | 1178 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R14, BRSRC | SEARCH); /* SEARCH mode, keep BRG src */ |
cmd | 1179 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R14, BRSRC | BRENABL); /* Enable the BRG */ |
cmd | 1181 | drivers/net/pi2.c | if (!(cmd & 2)) /* if channel b */ |
cmd | 1182 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R1, (INT_ALL_Rx | EXT_INT_ENAB)); |
cmd | 1184 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R15, BRKIE); /* ABORT int */ |
cmd | 1187 | drivers/net/pi2.c | wrtscc(lp->cardbase, cmd, R3, RxENABLE | RxCRC_ENAB | Rx8); |
cmd | 1595 | drivers/net/pi2.c | static int pi_ioctl(struct device *dev, struct ifreq *ifr, int cmd) |
cmd | 1605 | drivers/net/pi2.c | if(cmd!=SIOCDEVPRIVATE) |
cmd | 1610 | drivers/net/pi2.c | switch (rq.cmd) { |
cmd | 73 | drivers/net/pi2.h | int cmd; |
cmd | 152 | drivers/net/plip.c | static int plip_ioctl(struct device *dev, struct ifreq *ifr, int cmd); |
cmd | 1036 | drivers/net/plip.c | plip_ioctl(struct device *dev, struct ifreq *rq, int cmd) |
cmd | 179 | drivers/net/ppp.c | static int ppp_dev_ioctl (struct device *dev, struct ifreq *ifr, int cmd); |
cmd | 2812 | drivers/net/ppp.c | ppp_dev_ioctl (struct device *dev, struct ifreq *ifr, int cmd) |
cmd | 2819 | drivers/net/ppp.c | switch (cmd) { |
cmd | 125 | drivers/net/pt.c | static int pt_ioctl(struct device *dev, struct ifreq *ifr, int cmd); |
cmd | 250 | drivers/net/pt.c | int cmd; |
cmd | 259 | drivers/net/pt.c | cmd = lp->base + CTL; |
cmd | 265 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R1, WT_FN_RDYFN | WT_RDY_RT | INT_ERR_Rx | EXT_INT_ENAB); |
cmd | 281 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R0, RES_Rx_CRC); |
cmd | 284 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R1, |
cmd | 365 | drivers/net/pt.c | register int cmd = lp->base + CTL; |
cmd | 376 | drivers/net/pt.c | if (cmd & CHANA) |
cmd | 378 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R9, CHRA); /* Reset channel A */ |
cmd | 379 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R2, 0xff); /* Initialise interrupt vector */ |
cmd | 381 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R9, CHRB); /* Reset channel B */ |
cmd | 385 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R1, 0); |
cmd | 388 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R15, 0); |
cmd | 391 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R4, SDLC | X1CLK); |
cmd | 397 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R10, CRCPS | NRZI); |
cmd | 400 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R10, CRCPS); |
cmd | 407 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R11, TCBR | RCDPLL | TRxCDP | TRxCOI); |
cmd | 411 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R11, TCTRxCP | RCRTxCP | TRxCBR); |
cmd | 412 | drivers/net/pt.c | wrtscc(lp->cardbase,cmd, R14, 0); /* wiz1 */ |
cmd | 416 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R6, 0); |
cmd | 419 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R7, FLAG); |
cmd | 422 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R5, Tx8 | DTR); |
cmd | 425 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R3, AUTO_ENAB | Rx8); |
cmd | 428 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R14, BRSRC); |
cmd | 435 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R12, tc & 0xff); /* lower byte */ |
cmd | 436 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R13, (tc >> 8) & 0xff); /* upper byte */ |
cmd | 446 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R14, BRSRC | SSBR); |
cmd | 447 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R14, BRSRC | SEARCH); /* SEARCH mode, keep BRG src */ |
cmd | 448 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R14, BRSRC | BRENABL); /* Enable the BRG */ |
cmd | 466 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R1, (INT_ALL_Rx | EXT_INT_ENAB)); |
cmd | 468 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R15, BRKIE); /* ABORT int */ |
cmd | 477 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R3, RxENABLE | RxCRC_ENAB | AUTO_ENAB | Rx8 ); |
cmd | 642 | drivers/net/pt.c | int cmd = lp->base + CTL; |
cmd | 648 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R15, 0); |
cmd | 649 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R3, AUTO_ENAB | Rx8); /* Rx off */ |
cmd | 655 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R1, WT_FN_RDYFN | EXT_INT_ENAB); |
cmd | 658 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R1, 0); |
cmd | 667 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R12, tc & 0xff); |
cmd | 668 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R13, (tc >> 8) & 0xff); |
cmd | 672 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R5, TxCRC_ENAB | RTS | TxENAB | Tx8 | DTR); |
cmd | 678 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R5, Tx8 | DTR); |
cmd | 685 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R14, BRSRC); |
cmd | 688 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R12, tc & 0xff); |
cmd | 689 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R13, (tc >> 8) & 0xff); |
cmd | 692 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R14, BRSRC | SEARCH); |
cmd | 694 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R14, BRSRC | BRENABL); |
cmd | 699 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R3, AUTO_ENAB | Rx8); |
cmd | 702 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R0, ERR_RES); |
cmd | 705 | drivers/net/pt.c | (void) rdscc(lp->cardbase, cmd, R1); |
cmd | 708 | drivers/net/pt.c | (void) rdscc(lp->cardbase, cmd, R8); |
cmd | 709 | drivers/net/pt.c | (void) rdscc(lp->cardbase, cmd, R8); |
cmd | 710 | drivers/net/pt.c | (void) rdscc(lp->cardbase, cmd, R8); |
cmd | 713 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R3, RxENABLE | AUTO_ENAB | Rx8 ); |
cmd | 725 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R1, INT_ALL_Rx | EXT_INT_ENAB); |
cmd | 728 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R15, BRKIE ); |
cmd | 1000 | drivers/net/pt.c | int cmd; |
cmd | 1002 | drivers/net/pt.c | cmd = lp->base + CTL; |
cmd | 1029 | drivers/net/pt.c | static int pt_ioctl(struct device *dev, struct ifreq *ifr, int cmd) |
cmd | 1039 | drivers/net/pt.c | if (cmd != SIOCDEVPRIVATE) |
cmd | 1044 | drivers/net/pt.c | switch (rq.cmd) { |
cmd | 1148 | drivers/net/pt.c | int cmd; |
cmd | 1153 | drivers/net/pt.c | cmd = lp->base + CTL; |
cmd | 1190 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 1191 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 1192 | drivers/net/pt.c | if ((rdscc(lp->cardbase, cmd, R0) & DCD) != 0) |
cmd | 1197 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R15, DCDIE); |
cmd | 1210 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R5, TxCRC_ENAB | RTS | Tx8); |
cmd | 1225 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R8, c); |
cmd | 1231 | drivers/net/pt.c | if ((rdscc(lp->cardbase, cmd, R0) & TxEOM)) |
cmd | 1236 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R0, SEND_ABORT); |
cmd | 1246 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R10, CRCPS | NRZI); |
cmd | 1248 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R10, CRCPS | NRZ); |
cmd | 1251 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R0, RES_Tx_P); |
cmd | 1256 | drivers/net/pt.c | printk("PT: pt_txisr(): Invlaid tstate (%d) for chan %s.\n", lp->tstate, (cmd & CHANA? "A": "B") ); |
cmd | 1267 | drivers/net/pt.c | int cmd = lp->base + CTL; |
cmd | 1280 | drivers/net/pt.c | rse = rdscc(lp->cardbase, cmd, R1); |
cmd | 1289 | drivers/net/pt.c | if (rdscc(lp->cardbase, cmd, R0) & Rx_CH_AV && !lp->dmachan) |
cmd | 1315 | drivers/net/pt.c | *lp->rcp++ = rdscc(lp->cardbase, cmd, R8); |
cmd | 1319 | drivers/net/pt.c | (void) rdscc(lp->cardbase, cmd, R8); |
cmd | 1320 | drivers/net/pt.c | (void) rdscc(lp->cardbase, cmd, R8); |
cmd | 1321 | drivers/net/pt.c | (void) rdscc(lp->cardbase, cmd, R8); |
cmd | 1324 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R0, ERR_RES); |
cmd | 1328 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R3, RxENABLE | ENT_HM | AUTO_ENAB | Rx8); |
cmd | 1370 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R3, RxENABLE | ENT_HM | AUTO_ENAB | Rx8); |
cmd | 1427 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R0, ERR_RES); |
cmd | 1564 | drivers/net/pt.c | int cmd = lp->base + CTL; |
cmd | 1573 | drivers/net/pt.c | st = rdscc(lp->cardbase, cmd, R0); |
cmd | 1579 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 1597 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R0, SEND_ABORT); |
cmd | 1635 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R1, WT_FN_RDYFN | EXT_INT_ENAB); |
cmd | 1646 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R0, RES_Tx_CRC | RES_Tx_P); |
cmd | 1649 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R15, TxUIE); |
cmd | 1652 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R1, WT_RDY_ENAB | WT_FN_RDYFN | EXT_INT_ENAB); |
cmd | 1655 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R0, RES_EOM_L); |
cmd | 1664 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R0, RES_Tx_CRC); |
cmd | 1669 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R10, CRCPS | NRZI | ABUNDER); |
cmd | 1671 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R10, CRCPS | NRZ | ABUNDER); |
cmd | 1674 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R8, c); |
cmd | 1677 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R0, RES_EOM_L); |
cmd | 1689 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R15, TxUIE); |
cmd | 1692 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 1695 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R1, TxINT_ENAB | EXT_INT_ENAB); |
cmd | 1706 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 1707 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R0, RES_EXT_INT); |
cmd | 1708 | drivers/net/pt.c | if ((rdscc(lp->cardbase, cmd, R0) & DCD) != 0) |
cmd | 1713 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R15, DCDIE); |
cmd | 1725 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R5, TxCRC_ENAB | RTS | Tx8); |
cmd | 1752 | drivers/net/pt.c | (void) rdscc(lp->cardbase, cmd, R8); |
cmd | 1753 | drivers/net/pt.c | (void) rdscc(lp->cardbase, cmd, R8); |
cmd | 1754 | drivers/net/pt.c | (void) rdscc(lp->cardbase, cmd, R8); |
cmd | 1760 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R3, RxENABLE | ENT_HM | AUTO_ENAB | Rx8); |
cmd | 1785 | drivers/net/pt.c | (void)rdscc(lp->cardbase, cmd, R8); |
cmd | 1786 | drivers/net/pt.c | (void)rdscc(lp->cardbase, cmd, R8); |
cmd | 1787 | drivers/net/pt.c | (void)rdscc(lp->cardbase, cmd, R8); |
cmd | 1794 | drivers/net/pt.c | wrtscc(lp->cardbase, cmd, R3, RxENABLE | ENT_HM | AUTO_ENAB | Rx8); |
cmd | 102 | drivers/net/pt.h | int cmd; |
cmd | 1042 | drivers/net/slip.c | slip_ioctl(struct tty_struct *tty, void *file, int cmd, void *arg) |
cmd | 1053 | drivers/net/slip.c | switch(cmd) { |
cmd | 1178 | 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 | 741 | drivers/pci/pci.c | unsigned char cmd, tmp, hdr_type = 0; |
cmd | 801 | drivers/pci/pci.c | &cmd); |
cmd | 803 | drivers/pci/pci.c | cmd | PCI_COMMAND_MASTER); |
cmd | 808 | drivers/pci/pci.c | cmd); |
cmd | 271 | drivers/scsi/53c7,8xx.c | static void print_progress (Scsi_Cmnd *cmd); |
cmd | 275 | drivers/scsi/53c7,8xx.c | static void abnormal_finished (struct NCR53c7x0_cmd *cmd, int result); |
cmd | 283 | drivers/scsi/53c7,8xx.c | *cmd); |
cmd | 284 | drivers/scsi/53c7,8xx.c | static void intr_dma (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd); |
cmd | 290 | drivers/scsi/53c7,8xx.c | static void NCR53c8xx_dsa_fixup (struct NCR53c7x0_cmd *cmd); |
cmd | 293 | drivers/scsi/53c7,8xx.c | NCR53c7x0_cmd *cmd); |
cmd | 1899 | drivers/scsi/53c7,8xx.c | unsigned char cmd[6]; |
cmd | 1904 | drivers/scsi/53c7,8xx.c | cmd[0] = INQUIRY; |
cmd | 1905 | drivers/scsi/53c7,8xx.c | cmd[1] = cmd[2] = cmd[3] = cmd[5] = 0; |
cmd | 1906 | drivers/scsi/53c7,8xx.c | cmd[4] = sizeof(data); |
cmd | 1911 | drivers/scsi/53c7,8xx.c | dsa[5] = virt_to_bus(&cmd); |
cmd | 1984 | drivers/scsi/53c7,8xx.c | NCR53c8xx_dsa_fixup (struct NCR53c7x0_cmd *cmd) { |
cmd | 1985 | drivers/scsi/53c7,8xx.c | Scsi_Cmnd *c = cmd->cmd; |
cmd | 1991 | drivers/scsi/53c7,8xx.c | memcpy (cmd->dsa, hostdata->script + (hostdata->E_dsa_code_template / 4), |
cmd | 2010 | drivers/scsi/53c7,8xx.c | patch_abs_tci_data (cmd->dsa, Ent_dsa_code_template / sizeof(u32), |
cmd | 2012 | drivers/scsi/53c7,8xx.c | patch_abs_32 (cmd->dsa, Ent_dsa_code_template / sizeof(u32), |
cmd | 2013 | drivers/scsi/53c7,8xx.c | dsa_temp_addr_next, virt_to_bus(&cmd->dsa_next_addr)); |
cmd | 2014 | drivers/scsi/53c7,8xx.c | patch_abs_32 (cmd->dsa, Ent_dsa_code_template / sizeof(u32), |
cmd | 2015 | drivers/scsi/53c7,8xx.c | dsa_temp_next, virt_to_bus(cmd->dsa) + Ent_dsa_zero - |
cmd | 2017 | drivers/scsi/53c7,8xx.c | patch_abs_32 (cmd->dsa, Ent_dsa_code_template / sizeof(u32), |
cmd | 2019 | drivers/scsi/53c7,8xx.c | patch_abs_tci_data (cmd->dsa, Ent_dsa_code_template / sizeof(u32), |
cmd | 2022 | drivers/scsi/53c7,8xx.c | patch_abs_32 (cmd->dsa, Ent_dsa_code_template / sizeof(u32), |
cmd | 2023 | drivers/scsi/53c7,8xx.c | dsa_temp_addr_saved_pointer, virt_to_bus(&cmd->saved_data_pointer)); |
cmd | 2024 | drivers/scsi/53c7,8xx.c | patch_abs_32 (cmd->dsa, Ent_dsa_code_template / sizeof(u32), |
cmd | 2025 | drivers/scsi/53c7,8xx.c | dsa_temp_addr_saved_residual, virt_to_bus(&cmd->saved_residual)); |
cmd | 2026 | drivers/scsi/53c7,8xx.c | patch_abs_32 (cmd->dsa, Ent_dsa_code_template / sizeof(u32), |
cmd | 2027 | drivers/scsi/53c7,8xx.c | dsa_temp_addr_residual, virt_to_bus(&cmd->residual)); |
cmd | 2030 | drivers/scsi/53c7,8xx.c | patch_abs_32 (cmd->dsa, Ent_dsa_code_template / sizeof(u32), |
cmd | 2031 | drivers/scsi/53c7,8xx.c | dsa_temp_addr_dsa_value, virt_to_bus(&cmd->dsa_addr)); |
cmd | 2080 | drivers/scsi/53c7,8xx.c | abnormal_finished (struct NCR53c7x0_cmd *cmd, int result) { |
cmd | 2081 | drivers/scsi/53c7,8xx.c | Scsi_Cmnd *c = cmd->cmd; |
cmd | 2108 | drivers/scsi/53c7,8xx.c | if (issue_to_cmd (host, hostdata, (u32 *) current) == cmd) |
cmd | 2130 | drivers/scsi/53c7,8xx.c | != (char *) cmd->dsa; |
cmd | 2157 | drivers/scsi/53c7,8xx.c | left >= 0 && linux_search && linux_search != cmd; |
cmd | 2170 | drivers/scsi/53c7,8xx.c | cmd->next = hostdata->free; |
cmd | 2171 | drivers/scsi/53c7,8xx.c | hostdata->free = cmd; |
cmd | 2196 | drivers/scsi/53c7,8xx.c | NCR53c7x0_cmd *cmd) { |
cmd | 2200 | drivers/scsi/53c7,8xx.c | Scsi_Cmnd *c = cmd ? cmd->cmd : NULL; |
cmd | 2466 | drivers/scsi/53c7,8xx.c | NCR53c7x0_cmd *cmd) { |
cmd | 2469 | drivers/scsi/53c7,8xx.c | Scsi_Cmnd *c = cmd ? cmd->cmd : NULL; |
cmd | 2492 | drivers/scsi/53c7,8xx.c | if (cmd && (cmd->flags & CMD_FLAG_SDTR)) { |
cmd | 2495 | drivers/scsi/53c7,8xx.c | cmd->flags &= ~CMD_FLAG_SDTR; |
cmd | 2536 | drivers/scsi/53c7,8xx.c | if (cmd) { |
cmd | 2539 | drivers/scsi/53c7,8xx.c | (cmd->flags & CMD_FLAG_SDTR) ? "accepting" : "requesting"); |
cmd | 2550 | drivers/scsi/53c7,8xx.c | if (cmd->flags & CMD_FLAG_SDTR) { |
cmd | 2551 | drivers/scsi/53c7,8xx.c | cmd->flags &= ~CMD_FLAG_SDTR; |
cmd | 2563 | drivers/scsi/53c7,8xx.c | cmd->flags |= CMD_FLAG_DID_SDTR; |
cmd | 2570 | drivers/scsi/53c7,8xx.c | patch_dsa_32 (cmd->dsa, dsa_msgout_other, 0, 5); |
cmd | 2571 | drivers/scsi/53c7,8xx.c | patch_dsa_32 (cmd->dsa, dsa_msgout_other, 1, (u32) |
cmd | 2635 | drivers/scsi/53c7,8xx.c | patch_dsa_32 (cmd->dsa, dsa_msgout, 0, 1); |
cmd | 2642 | drivers/scsi/53c7,8xx.c | patch_dsa_32 (cmd->dsa, dsa_cmdout, 0, 6); |
cmd | 2657 | drivers/scsi/53c7,8xx.c | patch_dsa_32 (cmd->dsa, dsa_dataout, 0, |
cmd | 2659 | drivers/scsi/53c7,8xx.c | patch_dsa_32 (cmd->dsa, dsa_datain, 0, |
cmd | 2660 | drivers/scsi/53c7,8xx.c | virt_to_bus(cmd->data_transfer_start)); |
cmd | 2661 | drivers/scsi/53c7,8xx.c | cmd->data_transfer_start[0] = (((DCMD_TYPE_BMI | DCMD_BMI_OP_MOVE_I | |
cmd | 2663 | drivers/scsi/53c7,8xx.c | cmd->data_transfer_start[1] = (u32) virt_to_bus(c->sense_buffer); |
cmd | 2665 | drivers/scsi/53c7,8xx.c | cmd->data_transfer_start[2] = ((DCMD_TYPE_TCI | DCMD_TCI_OP_JUMP) |
cmd | 2667 | drivers/scsi/53c7,8xx.c | cmd->data_transfer_start[3] = (u32) virt_to_bus(hostdata->script) + |
cmd | 2677 | drivers/scsi/53c7,8xx.c | cmd->cmd->result = 0xffff; |
cmd | 2691 | drivers/scsi/53c7,8xx.c | if (cmd) |
cmd | 2692 | drivers/scsi/53c7,8xx.c | abnormal_finished (cmd, DID_ERROR << 16); |
cmd | 2717 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->saved_data_pointer, |
cmd | 2718 | drivers/scsi/53c7,8xx.c | bus_to_virt(cmd->saved_data_pointer)); |
cmd | 2750 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->saved_data_pointer, |
cmd | 2751 | drivers/scsi/53c7,8xx.c | bus_to_virt (cmd->saved_data_pointer)); |
cmd | 2779 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->saved_data_pointer, |
cmd | 2780 | drivers/scsi/53c7,8xx.c | bus_to_virt (cmd->saved_data_pointer), |
cmd | 2873 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->saved_data_pointer, |
cmd | 2874 | drivers/scsi/53c7,8xx.c | bus_to_virt (cmd->saved_data_pointer)); |
cmd | 2883 | drivers/scsi/53c7,8xx.c | if (cmd) { |
cmd | 2886 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->saved_data_pointer, bus_to_virt ( |
cmd | 2887 | drivers/scsi/53c7,8xx.c | cmd->saved_data_pointer)); |
cmd | 2889 | drivers/scsi/53c7,8xx.c | bus_to_virt(cmd->saved_data_pointer), "", 1); |
cmd | 2891 | drivers/scsi/53c7,8xx.c | bus_to_virt(cmd->saved_data_pointer) + size, "", 1); |
cmd | 3397 | drivers/scsi/53c7,8xx.c | allocate_cmd (Scsi_Cmnd *cmd) { |
cmd | 3398 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
cmd | 3410 | drivers/scsi/53c7,8xx.c | cmd->target, cmd->lun, (hostdata->cmd_allocated[cmd->target] & |
cmd | 3411 | drivers/scsi/53c7,8xx.c | (1 << cmd->lun)) ? "allready allocated" : "not allocated"); |
cmd | 3419 | drivers/scsi/53c7,8xx.c | if (!(hostdata->cmd_allocated[cmd->target] & (1 << cmd->lun)) && |
cmd | 3423 | drivers/scsi/53c7,8xx.c | cmd->device && cmd->device->has_cmdblocks |
cmd | 3428 | drivers/scsi/53c7,8xx.c | hostdata->cmd_allocated[cmd->target] |= (1 << cmd->lun); |
cmd | 3467 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->target, cmd->lun); |
cmd | 3486 | drivers/scsi/53c7,8xx.c | create_cmd (Scsi_Cmnd *cmd) { |
cmd | 3488 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
cmd | 3503 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(cmd->host); |
cmd | 3505 | drivers/scsi/53c7,8xx.c | if (!(tmp = allocate_cmd (cmd))) |
cmd | 3514 | drivers/scsi/53c7,8xx.c | switch (cmd->cmnd[0]) { |
cmd | 3522 | drivers/scsi/53c7,8xx.c | datain = 2 * (cmd->use_sg ? cmd->use_sg : 1) + 3; |
cmd | 3531 | drivers/scsi/53c7,8xx.c | print_command(cmd->cmnd); |
cmd | 3535 | drivers/scsi/53c7,8xx.c | cmd->use_sg); |
cmd | 3538 | drivers/scsi/53c7,8xx.c | dataout = 2 * (cmd->use_sg ? cmd->use_sg : 1) + 3; |
cmd | 3556 | drivers/scsi/53c7,8xx.c | datain = dataout = 2 * (cmd->use_sg ? cmd->use_sg : 1) + 3; |
cmd | 3605 | drivers/scsi/53c7,8xx.c | tmp->cmd = cmd; |
cmd | 3637 | drivers/scsi/53c7,8xx.c | patch_dsa_32(tmp->dsa, dsa_cmnd, 0, virt_to_bus(cmd)); |
cmd | 3640 | drivers/scsi/53c7,8xx.c | if (hostdata->sync[cmd->target].select_indirect != |
cmd | 3641 | drivers/scsi/53c7,8xx.c | ((hostdata->sync[cmd->target].scntl3_sanity << 24) | |
cmd | 3642 | drivers/scsi/53c7,8xx.c | (cmd->target << 16) | |
cmd | 3643 | drivers/scsi/53c7,8xx.c | (hostdata->sync[cmd->target].sxfer_sanity << 8))) { |
cmd | 3645 | drivers/scsi/53c7,8xx.c | host->host_no, hostdata->sync[cmd->target].select_indirect); |
cmd | 3650 | drivers/scsi/53c7,8xx.c | patch_dsa_32(tmp->dsa, dsa_select, 0, hostdata->sync[cmd->target]. |
cmd | 3657 | drivers/scsi/53c7,8xx.c | if (hostdata->initiate_wdtr & (1 << cmd->target)) { |
cmd | 3663 | drivers/scsi/53c7,8xx.c | hostdata->initiate_wdtr &= ~(1 << cmd->target); |
cmd | 3665 | drivers/scsi/53c7,8xx.c | } else if (hostdata->initiate_sdtr & (1 << cmd->target)) { |
cmd | 3672 | drivers/scsi/53c7,8xx.c | hostdata->initiate_sdtr &= ~(1 << cmd->target); |
cmd | 3677 | drivers/scsi/53c7,8xx.c | else if (!(hostdata->talked_to & (1 << cmd->target)) && |
cmd | 3687 | drivers/scsi/53c7,8xx.c | hostdata->talked_to |= (1 << cmd->target); |
cmd | 3689 | drivers/scsi/53c7,8xx.c | IDENTIFY (1, cmd->lun) : IDENTIFY (0, cmd->lun); |
cmd | 3691 | drivers/scsi/53c7,8xx.c | patch_dsa_32(tmp->dsa, dsa_cmdout, 0, cmd->cmd_len); |
cmd | 3692 | drivers/scsi/53c7,8xx.c | patch_dsa_32(tmp->dsa, dsa_cmdout, 1, virt_to_bus(cmd->cmnd)); |
cmd | 3709 | drivers/scsi/53c7,8xx.c | patch_dsa_32(tmp->dsa, dsa_msgin, 1, virt_to_bus(&cmd->result) + 1); |
cmd | 3711 | drivers/scsi/53c7,8xx.c | patch_dsa_32(tmp->dsa, dsa_status, 1, virt_to_bus(&cmd->result)); |
cmd | 3754 | drivers/scsi/53c7,8xx.c | for (i = 0; cmd->use_sg ? (i < cmd->use_sg) : !i; cmd_datain += 4, |
cmd | 3756 | drivers/scsi/53c7,8xx.c | u32 buf = cmd->use_sg ? |
cmd | 3757 | drivers/scsi/53c7,8xx.c | virt_to_bus(((struct scatterlist *)cmd->buffer)[i].address) : |
cmd | 3758 | drivers/scsi/53c7,8xx.c | virt_to_bus(cmd->request_buffer); |
cmd | 3759 | drivers/scsi/53c7,8xx.c | u32 count = cmd->use_sg ? |
cmd | 3760 | drivers/scsi/53c7,8xx.c | ((struct scatterlist *)cmd->buffer)[i].length : |
cmd | 3761 | drivers/scsi/53c7,8xx.c | cmd->request_bufflen; |
cmd | 3854 | drivers/scsi/53c7,8xx.c | NCR53c7xx_queue_command (Scsi_Cmnd *cmd, void (* done)(Scsi_Cmnd *)) { |
cmd | 3855 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
cmd | 3861 | drivers/scsi/53c7,8xx.c | cmd->scsi_done = done; |
cmd | 3862 | drivers/scsi/53c7,8xx.c | cmd->host_scribble = NULL; |
cmd | 3863 | drivers/scsi/53c7,8xx.c | cmd->SCp.ptr = NULL; |
cmd | 3864 | drivers/scsi/53c7,8xx.c | cmd->SCp.buffer = NULL; |
cmd | 3870 | drivers/scsi/53c7,8xx.c | !(hostdata->debug_lun_limit[cmd->target] & (1 << cmd->lun))) |
cmd | 3872 | drivers/scsi/53c7,8xx.c | || cmd->target > 7 |
cmd | 3874 | drivers/scsi/53c7,8xx.c | || cmd->target > host->max_id |
cmd | 3876 | drivers/scsi/53c7,8xx.c | || cmd->target == host->this_id |
cmd | 3879 | drivers/scsi/53c7,8xx.c | cmd->target, cmd->lun); |
cmd | 3880 | drivers/scsi/53c7,8xx.c | cmd->result = (DID_BAD_TARGET << 16); |
cmd | 3884 | drivers/scsi/53c7,8xx.c | cmd->result = (DID_BAD_TARGET << 16); |
cmd | 3885 | drivers/scsi/53c7,8xx.c | cmd->result = (DID_BAD_TARGET << 16); |
cmd | 3887 | drivers/scsi/53c7,8xx.c | switch (cmd->cmnd[0]) { |
cmd | 3892 | drivers/scsi/53c7,8xx.c | cmd->result = (DID_BAD_TARGET << 16); |
cmd | 3899 | drivers/scsi/53c7,8xx.c | cmd->result = 0xffff; /* The NCR will overwrite message |
cmd | 3901 | drivers/scsi/53c7,8xx.c | cmd->host_scribble = (unsigned char *) tmp = create_cmd (cmd); |
cmd | 3910 | drivers/scsi/53c7,8xx.c | if (!(hostdata->issue_queue) || (cmd->cmnd[0] == REQUEST_SENSE)) { |
cmd | 3911 | drivers/scsi/53c7,8xx.c | cmd->SCp.ptr = (unsigned char *) hostdata->issue_queue; |
cmd | 3912 | drivers/scsi/53c7,8xx.c | hostdata->issue_queue = cmd; |
cmd | 3916 | drivers/scsi/53c7,8xx.c | tmp->SCp.ptr = (unsigned char *) cmd; |
cmd | 3944 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_cmd *cmd) { |
cmd | 3946 | drivers/scsi/53c7,8xx.c | Scsi_Cmnd *tmp = cmd->cmd; |
cmd | 3969 | drivers/scsi/53c7,8xx.c | cmd->next = (struct NCR53c7x0_cmd *) hostdata->free; |
cmd | 3970 | drivers/scsi/53c7,8xx.c | hostdata->free = cmd; |
cmd | 3982 | drivers/scsi/53c7,8xx.c | cmd->next = hostdata->running_list; |
cmd | 3983 | drivers/scsi/53c7,8xx.c | hostdata->running_list = cmd; |
cmd | 3986 | drivers/scsi/53c7,8xx.c | cmd->dsa [(hostdata->dsa_jump_dest - hostdata->dsa_start) / |
cmd | 3990 | drivers/scsi/53c7,8xx.c | virt_to_bus ((void *) cmd->dsa) + hostdata->E_dsa_code_begin - |
cmd | 3999 | drivers/scsi/53c7,8xx.c | cmd->next = (struct NCR53c7x0_cmd *) hostdata->free; |
cmd | 4000 | drivers/scsi/53c7,8xx.c | hostdata->free = cmd; |
cmd | 4034 | drivers/scsi/53c7,8xx.c | Scsi_Cmnd *cmd) { |
cmd | 4038 | drivers/scsi/53c7,8xx.c | return hostdata->busy[cmd->target][cmd->lun]; |
cmd | 4150 | drivers/scsi/53c7,8xx.c | intr_scsi (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) { |
cmd | 4183 | drivers/scsi/53c7,8xx.c | if (cmd) { |
cmd | 4185 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->target, cmd->cmd->lun); |
cmd | 4186 | drivers/scsi/53c7,8xx.c | print_command (cmd->cmd->cmnd); |
cmd | 4207 | drivers/scsi/53c7,8xx.c | } else if (cmd) { |
cmd | 4208 | drivers/scsi/53c7,8xx.c | abnormal_finished(cmd, DID_BAD_TARGET << 16); |
cmd | 4221 | drivers/scsi/53c7,8xx.c | if (cmd) { |
cmd | 4223 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->target, cmd->cmd->lun); |
cmd | 4225 | drivers/scsi/53c7,8xx.c | abnormal_finished(cmd, DID_ERROR << 16); |
cmd | 4237 | drivers/scsi/53c7,8xx.c | if (cmd && cmd->cmd) { |
cmd | 4239 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->target, cmd->cmd->lun); |
cmd | 4240 | drivers/scsi/53c7,8xx.c | abnormal_finished (cmd, DID_PARITY << 16); |
cmd | 4286 | drivers/scsi/53c7,8xx.c | intr_phase_mismatch (host, cmd); |
cmd | 4340 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_cmd *cmd, /* command which halted */ |
cmd | 4415 | drivers/scsi/53c7,8xx.c | &(hostdata->running_list), cmd = |
cmd | 4416 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_cmd *) hostdata->running_list; cmd ; |
cmd | 4417 | drivers/scsi/53c7,8xx.c | cmd_prev_ptr = (struct NCR53c7x0_cmd **) &(cmd->next), |
cmd | 4418 | drivers/scsi/53c7,8xx.c | cmd = (struct NCR53c7x0_cmd *) cmd->next) { |
cmd | 4421 | drivers/scsi/53c7,8xx.c | if (!cmd) { |
cmd | 4426 | drivers/scsi/53c7,8xx.c | if (!(tmp = cmd->cmd)) { |
cmd | 4433 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->result); |
cmd | 4444 | drivers/scsi/53c7,8xx.c | *cmd_prev_ptr = (struct NCR53c7x0_cmd *) cmd->next; |
cmd | 4447 | drivers/scsi/53c7,8xx.c | cmd->next = hostdata->free; |
cmd | 4448 | drivers/scsi/53c7,8xx.c | hostdata->free = cmd; |
cmd | 4504 | drivers/scsi/53c7,8xx.c | cmd = (struct NCR53c7x0_cmd *) hostdata->current; |
cmd | 4507 | drivers/scsi/53c7,8xx.c | for (cmd = (struct NCR53c7x0_cmd *) |
cmd | 4508 | drivers/scsi/53c7,8xx.c | hostdata->running_list; cmd && |
cmd | 4510 | drivers/scsi/53c7,8xx.c | cmd->dsa; |
cmd | 4511 | drivers/scsi/53c7,8xx.c | cmd = (struct NCR53c7x0_cmd *)(cmd->next)); |
cmd | 4514 | drivers/scsi/53c7,8xx.c | if (cmd) { |
cmd | 4516 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->pid, (int) cmd->cmd->target, |
cmd | 4517 | drivers/scsi/53c7,8xx.c | (int) cmd->cmd->lun); |
cmd | 4518 | drivers/scsi/53c7,8xx.c | print_command (cmd->cmd->cmnd); |
cmd | 4527 | drivers/scsi/53c7,8xx.c | intr_scsi (host, cmd); |
cmd | 4533 | drivers/scsi/53c7,8xx.c | intr_dma (host, cmd); |
cmd | 4781 | drivers/scsi/53c7,8xx.c | intr_phase_mismatch (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) { |
cmd | 4820 | drivers/scsi/53c7,8xx.c | if (!cmd) { |
cmd | 4841 | drivers/scsi/53c7,8xx.c | } else if (((dsp >= cmd->data_transfer_start && |
cmd | 4842 | drivers/scsi/53c7,8xx.c | dsp < cmd->data_transfer_end)) || dsp == (cmd->residual + 2)) { |
cmd | 4857 | drivers/scsi/53c7,8xx.c | if (dsp != cmd->residual + 2) { |
cmd | 4858 | drivers/scsi/53c7,8xx.c | cmd->residual[0] = ((DCMD_TYPE_TCI | DCMD_TCI_OP_CALL | |
cmd | 4861 | drivers/scsi/53c7,8xx.c | cmd->residual[1] = virt_to_bus(hostdata->script) |
cmd | 4871 | drivers/scsi/53c7,8xx.c | cmd->residual[2] = dbc_dcmd + residual; |
cmd | 4872 | drivers/scsi/53c7,8xx.c | cmd->residual[3] = NCR53c7x0_read32(DNAD_REG) - residual; |
cmd | 4878 | drivers/scsi/53c7,8xx.c | if (dsp != cmd->residual + 2) { |
cmd | 4879 | drivers/scsi/53c7,8xx.c | cmd->residual[4] = ((DCMD_TYPE_TCI|DCMD_TCI_OP_JUMP) |
cmd | 4881 | drivers/scsi/53c7,8xx.c | cmd->residual[5] = virt_to_bus(dsp_next); |
cmd | 4888 | drivers/scsi/53c7,8xx.c | hostdata->dsp = cmd->residual; |
cmd | 4909 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->target); |
cmd | 4910 | drivers/scsi/53c7,8xx.c | cmd->flags &= ~CMD_FLAG_SDTR; |
cmd | 4999 | drivers/scsi/53c7,8xx.c | intr_bf (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) { |
cmd | 5100 | drivers/scsi/53c7,8xx.c | intr_dma (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) { |
cmd | 5215 | drivers/scsi/53c7,8xx.c | } else if (cmd) |
cmd | 5216 | drivers/scsi/53c7,8xx.c | abnormal_finished (cmd, DID_BAD_TARGET << 16); |
cmd | 5257 | drivers/scsi/53c7,8xx.c | intr_bf (host, cmd); |
cmd | 5272 | drivers/scsi/53c7,8xx.c | switch ((tmp = hostdata->dstat_sir_intr (host, cmd))) { |
cmd | 5286 | drivers/scsi/53c7,8xx.c | intr_break (host, cmd); |
cmd | 5419 | drivers/scsi/53c7,8xx.c | NCR53c7xx_abort (Scsi_Cmnd *cmd) { |
cmd | 5421 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
cmd | 5434 | drivers/scsi/53c7,8xx.c | cmd->pid); |
cmd | 5459 | drivers/scsi/53c7,8xx.c | cmd->pid); |
cmd | 5467 | drivers/scsi/53c7,8xx.c | if (cache_pid == cmd->pid) |
cmd | 5468 | drivers/scsi/53c7,8xx.c | panic ("scsi%d : bloody fetus %d\n", host->host_no, cmd->pid); |
cmd | 5470 | drivers/scsi/53c7,8xx.c | cache_pid = cmd->pid; |
cmd | 5486 | drivers/scsi/53c7,8xx.c | me && me != cmd; last = (Scsi_Cmnd **)&(me->SCp.ptr), |
cmd | 5496 | drivers/scsi/53c7,8xx.c | cmd->result = DID_ABORT << 16; |
cmd | 5497 | drivers/scsi/53c7,8xx.c | cmd->scsi_done(cmd); |
cmd | 5512 | drivers/scsi/53c7,8xx.c | curr && curr->cmd != cmd; prev = (struct NCR53c7x0_cmd **) |
cmd | 5516 | drivers/scsi/53c7,8xx.c | if ((cmd->result & 0xff) != 0xff && (cmd->result & 0xff00) != 0xff00) { |
cmd | 5520 | drivers/scsi/53c7,8xx.c | cmd->host_scribble = NULL; |
cmd | 5522 | drivers/scsi/53c7,8xx.c | cmd->scsi_done(cmd); |
cmd | 5524 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->pid); |
cmd | 5529 | drivers/scsi/53c7,8xx.c | cmd->host->host_no); |
cmd | 5540 | drivers/scsi/53c7,8xx.c | curr = (struct NCR53c7x0_cmd *) cmd->host_scribble; |
cmd | 5544 | drivers/scsi/53c7,8xx.c | cmd->host_scribble = NULL; |
cmd | 5547 | drivers/scsi/53c7,8xx.c | if (((cmd->result & 0xff00) == 0xff00) || |
cmd | 5548 | drivers/scsi/53c7,8xx.c | ((cmd->result & 0xff) == 0xff)) { |
cmd | 5550 | drivers/scsi/53c7,8xx.c | cmd->result = DID_ABORT << 16; |
cmd | 5559 | drivers/scsi/53c7,8xx.c | --hostdata->busy[cmd->target][cmd->lun]; |
cmd | 5562 | drivers/scsi/53c7,8xx.c | cmd->scsi_done(cmd); |
cmd | 5583 | drivers/scsi/53c7,8xx.c | NCR53c7xx_reset (Scsi_Cmnd *cmd) { |
cmd | 5604 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
cmd | 5617 | drivers/scsi/53c7,8xx.c | if (tmp == cmd) { |
cmd | 5627 | drivers/scsi/53c7,8xx.c | c = (struct NCR53c7x0_cmd *) cmd->host_scribble; |
cmd | 5629 | drivers/scsi/53c7,8xx.c | cmd->host_scribble = NULL; |
cmd | 5633 | drivers/scsi/53c7,8xx.c | printk ("scsi%d: lost command %ld\n", host->host_no, cmd->pid); |
cmd | 5634 | drivers/scsi/53c7,8xx.c | cmd->SCp.buffer = (struct scatterlist *) nuke_list; |
cmd | 5635 | drivers/scsi/53c7,8xx.c | nuke_list = cmd; |
cmd | 5673 | drivers/scsi/53c7,8xx.c | insn_to_offset (Scsi_Cmnd *cmd, u32 *insn) { |
cmd | 5675 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_hostdata *) cmd->host->hostdata; |
cmd | 5677 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_cmd *) cmd->host_scribble; |
cmd | 5697 | drivers/scsi/53c7,8xx.c | if ((buffers = cmd->use_sg)) { |
cmd | 5699 | drivers/scsi/53c7,8xx.c | segment = (struct scatterlist *) cmd->buffer; |
cmd | 5705 | drivers/scsi/53c7,8xx.c | cmd->host->host_no, saved, segment->address); |
cmd | 5712 | drivers/scsi/53c7,8xx.c | offset = ptr - (char *) (cmd->request_buffer); |
cmd | 5736 | drivers/scsi/53c7,8xx.c | print_progress (Scsi_Cmnd *cmd) { |
cmd | 5739 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_cmd *) cmd->host_scribble; |
cmd | 5743 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup (cmd->host); |
cmd | 5757 | drivers/scsi/53c7,8xx.c | offset = insn_to_offset (cmd, ptr); |
cmd | 5761 | drivers/scsi/53c7,8xx.c | cmd->host->host_no, where, offset); |
cmd | 5765 | drivers/scsi/53c7,8xx.c | cmd->host->host_no, where); |
cmd | 5767 | drivers/scsi/53c7,8xx.c | size = print_insn (cmd->host, |
cmd | 5769 | drivers/scsi/53c7,8xx.c | print_insn (cmd->host, |
cmd | 5784 | drivers/scsi/53c7,8xx.c | Scsi_Cmnd *cmd; |
cmd | 5820 | drivers/scsi/53c7,8xx.c | cmd = (Scsi_Cmnd *) bus_to_virt(dsa[hostdata->dsa_cmnd / sizeof(u32)]); |
cmd | 5822 | drivers/scsi/53c7,8xx.c | (u32) virt_to_bus(cmd)); |
cmd | 5823 | drivers/scsi/53c7,8xx.c | if (cmd) { |
cmd | 5825 | drivers/scsi/53c7,8xx.c | cmd->result, cmd->target, cmd->lun); |
cmd | 5826 | drivers/scsi/53c7,8xx.c | print_command(cmd->cmnd); |
cmd | 5831 | drivers/scsi/53c7,8xx.c | if (cmd) { |
cmd | 5834 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->target, |
cmd | 5835 | drivers/scsi/53c7,8xx.c | hostdata->sync[cmd->target].sxfer_sanity, |
cmd | 5836 | drivers/scsi/53c7,8xx.c | hostdata->sync[cmd->target].scntl3_sanity); |
cmd | 5837 | drivers/scsi/53c7,8xx.c | for (i = 0; i < (sizeof(hostdata->sync[cmd->target].script) / 4); ++i) |
cmd | 5838 | drivers/scsi/53c7,8xx.c | printk ("0x%x ", hostdata->sync[cmd->target].script[i]); |
cmd | 5840 | drivers/scsi/53c7,8xx.c | print_progress (cmd); |
cmd | 5859 | drivers/scsi/53c7,8xx.c | Scsi_Cmnd *cmd, *next_cmd; |
cmd | 5864 | drivers/scsi/53c7,8xx.c | for (left = host->can_queue, cmd = (Scsi_Cmnd *) hostdata->issue_queue; |
cmd | 5865 | drivers/scsi/53c7,8xx.c | left >= 0 && cmd; |
cmd | 5866 | drivers/scsi/53c7,8xx.c | cmd = next_cmd) { |
cmd | 5867 | drivers/scsi/53c7,8xx.c | next_cmd = (Scsi_Cmnd *) cmd->SCp.ptr; |
cmd | 5870 | drivers/scsi/53c7,8xx.c | if (cmd->host_scribble) { |
cmd | 5871 | drivers/scsi/53c7,8xx.c | if (check_address ((unsigned long) (cmd->host_scribble), |
cmd | 5872 | drivers/scsi/53c7,8xx.c | sizeof (cmd->host_scribble)) == -1) |
cmd | 5874 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->pid); |
cmd | 5877 | drivers/scsi/53c7,8xx.c | print_dsa (host, ((struct NCR53c7x0_cmd *) cmd->host_scribble) |
cmd | 5881 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->pid, cmd->target, cmd->lun); |
cmd | 6097 | drivers/scsi/53c7,8xx.c | if (c->cmd->SCp.buffer) { |
cmd | 6105 | drivers/scsi/53c7,8xx.c | c->cmd->SCp.buffer = (struct scatterlist *) list; |
cmd | 6106 | drivers/scsi/53c7,8xx.c | list = c->cmd; |
cmd | 6344 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_cmd *cmd, *tmp; |
cmd | 6361 | drivers/scsi/53c7,8xx.c | for (cmd = (struct NCR53c7x0_cmd *) hostdata->free; cmd; cmd = tmp, |
cmd | 6363 | drivers/scsi/53c7,8xx.c | tmp = (struct NCR53c7x0_cmd *) cmd->next; |
cmd | 6368 | drivers/scsi/53c7,8xx.c | cmd->next = NULL; |
cmd | 6369 | drivers/scsi/53c7,8xx.c | if (cmd->free) |
cmd | 6370 | drivers/scsi/53c7,8xx.c | cmd->free ((void *) cmd->real, cmd->size); |
cmd | 1086 | drivers/scsi/53c7,8xx.h | Scsi_Cmnd *cmd; /* Associated Scsi_Cmnd |
cmd | 1250 | drivers/scsi/53c7,8xx.h | void (* dsa_fixup)(struct NCR53c7x0_cmd *cmd); |
cmd | 1260 | drivers/scsi/53c7,8xx.h | int (* dstat_sir_intr)(struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd); |
cmd | 131 | drivers/scsi/AM53C974.c | static __inline__ void initialize_SCp(Scsi_Cmnd *cmd); |
cmd | 143 | drivers/scsi/AM53C974.c | static int AM53C974_message(struct Scsi_Host *instance, Scsi_Cmnd *cmd, unsigned char msg); |
cmd | 144 | drivers/scsi/AM53C974.c | static void AM53C974_select(struct Scsi_Host *instance, Scsi_Cmnd *cmd, int tag); |
cmd | 757 | drivers/scsi/AM53C974.c | static __inline__ void initialize_SCp(Scsi_Cmnd *cmd) |
cmd | 759 | drivers/scsi/AM53C974.c | if (cmd->use_sg) { |
cmd | 760 | drivers/scsi/AM53C974.c | cmd->SCp.buffer = (struct scatterlist *)cmd->buffer; |
cmd | 761 | drivers/scsi/AM53C974.c | cmd->SCp.buffers_residual = cmd->use_sg - 1; |
cmd | 762 | drivers/scsi/AM53C974.c | cmd->SCp.ptr = (char *)cmd->SCp.buffer->address; |
cmd | 763 | drivers/scsi/AM53C974.c | cmd->SCp.this_residual = cmd->SCp.buffer->length; } |
cmd | 765 | drivers/scsi/AM53C974.c | cmd->SCp.buffer = NULL; |
cmd | 766 | drivers/scsi/AM53C974.c | cmd->SCp.buffers_residual = 0; |
cmd | 767 | drivers/scsi/AM53C974.c | cmd->SCp.ptr = (char *)cmd->request_buffer; |
cmd | 768 | drivers/scsi/AM53C974.c | cmd->SCp.this_residual = cmd->request_bufflen; } |
cmd | 812 | drivers/scsi/AM53C974.c | int AM53C974_queue_command(Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *)) |
cmd | 814 | drivers/scsi/AM53C974.c | struct Scsi_Host *instance = cmd->host; |
cmd | 822 | drivers/scsi/AM53C974.c | cmd->cmnd[0], cmd->target, cmd->lun, cmd->request_bufflen, cmd->use_sg)); |
cmd | 825 | drivers/scsi/AM53C974.c | cmd->host_scribble = NULL; |
cmd | 826 | drivers/scsi/AM53C974.c | cmd->scsi_done = done; |
cmd | 827 | drivers/scsi/AM53C974.c | cmd->result = 0; |
cmd | 828 | drivers/scsi/AM53C974.c | cmd->device->disconnect = 0; |
cmd | 834 | drivers/scsi/AM53C974.c | if (!(hostdata->issue_queue) || (cmd->cmnd[0] == REQUEST_SENSE)) { |
cmd | 835 | drivers/scsi/AM53C974.c | LIST(cmd, hostdata->issue_queue); |
cmd | 836 | drivers/scsi/AM53C974.c | cmd->host_scribble = (unsigned char *)hostdata->issue_queue; |
cmd | 837 | drivers/scsi/AM53C974.c | hostdata->issue_queue = cmd; } |
cmd | 841 | drivers/scsi/AM53C974.c | LIST(cmd, tmp); |
cmd | 842 | drivers/scsi/AM53C974.c | tmp->host_scribble = (unsigned char *)cmd; } |
cmd | 845 | drivers/scsi/AM53C974.c | (cmd->cmnd[0] == REQUEST_SENSE) ? "head" : "tail")); |
cmd | 1169 | drivers/scsi/AM53C974.c | Scsi_Cmnd *cmd; |
cmd | 1174 | drivers/scsi/AM53C974.c | cmd = (Scsi_Cmnd *)hostdata->sel_cmd; |
cmd | 1176 | drivers/scsi/AM53C974.c | cmd->result = DID_BAD_TARGET << 16; |
cmd | 1187 | drivers/scsi/AM53C974.c | cmd = (Scsi_Cmnd *)hostdata->connected; |
cmd | 1188 | drivers/scsi/AM53C974.c | AM53C974_set_async(instance, cmd->target); |
cmd | 1190 | drivers/scsi/AM53C974.c | instance->host_no, cmd->cmnd[0], cmd->target, cmd->lun)); |
cmd | 1191 | drivers/scsi/AM53C974.c | if (cmd->device->disconnect) { |
cmd | 1194 | drivers/scsi/AM53C974.c | LIST(cmd,hostdata->disconnected_queue); |
cmd | 1195 | drivers/scsi/AM53C974.c | cmd->host_scribble = (unsigned char *)hostdata->disconnected_queue; |
cmd | 1196 | drivers/scsi/AM53C974.c | hostdata->disconnected_queue = cmd; |
cmd | 1198 | drivers/scsi/AM53C974.c | " the disconnected_queue\n", instance->host_no, cmd->target, |
cmd | 1199 | drivers/scsi/AM53C974.c | cmd->lun, hostdata->disconnected_queue->SCp.this_residual)); |
cmd | 1205 | drivers/scsi/AM53C974.c | if (cmd->cmnd[0] == REQUEST_SENSE) { |
cmd | 1208 | drivers/scsi/AM53C974.c | for (i = 0; i < cmd->request_bufflen; i++) { |
cmd | 1209 | drivers/scsi/AM53C974.c | printk("%02x ", *((char *)(cmd->request_buffer) + i)); |
cmd | 1217 | drivers/scsi/AM53C974.c | cmd = (Scsi_Cmnd *)hostdata->connected; |
cmd | 1218 | drivers/scsi/AM53C974.c | if (cmd) { |
cmd | 1222 | drivers/scsi/AM53C974.c | AM53C974_set_async(instance, cmd->target); |
cmd | 1224 | drivers/scsi/AM53C974.c | instance->host_no, cmd->SCp.phase, cmd->target, cmd->SCp.this_residual, cmd->SCp.buffers_residual, |
cmd | 1225 | drivers/scsi/AM53C974.c | cmd->SCp.Message); |
cmd | 1233 | drivers/scsi/AM53C974.c | hostdata->sync_off[cmd->target] = 0; } |
cmd | 1235 | drivers/scsi/AM53C974.c | cmd->result = DID_ABORT << 16; |
cmd | 1237 | drivers/scsi/AM53C974.c | cmd->result = DID_ERROR << 16; |
cmd | 1248 | drivers/scsi/AM53C974.c | hostdata->busy[cmd->target] &= ~(1 << cmd->lun); |
cmd | 1252 | drivers/scsi/AM53C974.c | cmd->scsi_done(cmd); |
cmd | 1255 | drivers/scsi/AM53C974.c | AM53C974_set_async(instance, cmd->target); |
cmd | 1270 | drivers/scsi/AM53C974.c | AM53C974_set_async(instance, cmd->target); |
cmd | 1392 | drivers/scsi/AM53C974.c | Scsi_Cmnd *cmd = (Scsi_Cmnd *)hostdata->connected; |
cmd | 1400 | drivers/scsi/AM53C974.c | (long)hostdata->connected, (long)hostdata->sel_cmd, cmd->SCp.this_residual, cmd->SCp.buffers_residual)); |
cmd | 1401 | drivers/scsi/AM53C974.c | cmd->SCp.phase = PHASE_DATAOUT; |
cmd | 1406 | drivers/scsi/AM53C974.c | (long)hostdata->connected, (long)hostdata->sel_cmd, cmd->SCp.this_residual, cmd->SCp.buffers_residual)); |
cmd | 1407 | drivers/scsi/AM53C974.c | cmd->SCp.phase = PHASE_DATAIN; |
cmd | 1414 | drivers/scsi/AM53C974.c | if ((!cmd->SCp.this_residual) && cmd->SCp.buffers_residual) { |
cmd | 1415 | drivers/scsi/AM53C974.c | cmd->SCp.buffer++; |
cmd | 1416 | drivers/scsi/AM53C974.c | cmd->SCp.buffers_residual--; |
cmd | 1417 | drivers/scsi/AM53C974.c | cmd->SCp.ptr = (unsigned char *)cmd->SCp.buffer->address; |
cmd | 1418 | drivers/scsi/AM53C974.c | cmd->SCp.this_residual = cmd->SCp.buffer->length; } |
cmd | 1419 | drivers/scsi/AM53C974.c | if (cmd->SCp.this_residual) { |
cmd | 1423 | drivers/scsi/AM53C974.c | (unsigned long)cmd->SCp.this_residual, |
cmd | 1424 | drivers/scsi/AM53C974.c | cmd->SCp.ptr); } |
cmd | 1433 | drivers/scsi/AM53C974.c | AM53C974_set_async(instance, cmd->target); |
cmd | 1434 | drivers/scsi/AM53C974.c | if (cmd->SCp.phase == PHASE_DATAIN) |
cmd | 1436 | drivers/scsi/AM53C974.c | if ((cmd->SCp.phase == PHASE_DATAOUT) && (AM53C974_read_8(DMACMD) & DMACMD_START)) { |
cmd | 1440 | drivers/scsi/AM53C974.c | cmd->SCp.ptr += cmd->SCp.this_residual - residual; |
cmd | 1441 | drivers/scsi/AM53C974.c | cmd->SCp.this_residual = residual; |
cmd | 1444 | drivers/scsi/AM53C974.c | if (cmd->SCp.phase == PHASE_STATIN) { |
cmd | 1446 | drivers/scsi/AM53C974.c | cmd->SCp.Status = AM53C974_read_8(FFREG); |
cmd | 1447 | drivers/scsi/AM53C974.c | cmd->SCp.Message = AM53C974_read_8(FFREG); |
cmd | 1449 | drivers/scsi/AM53C974.c | cmd->SCp.Status, cmd->SCp.Message)); |
cmd | 1450 | drivers/scsi/AM53C974.c | ret = AM53C974_message(instance, cmd, cmd->SCp.Message); } |
cmd | 1455 | drivers/scsi/AM53C974.c | cmd->SCp.Message = AM53C974_read_8(FFREG); |
cmd | 1457 | drivers/scsi/AM53C974.c | ret = AM53C974_message(instance, cmd, cmd->SCp.Message); |
cmd | 1459 | drivers/scsi/AM53C974.c | cmd->SCp.phase = PHASE_MSGIN; |
cmd | 1460 | drivers/scsi/AM53C974.c | AM53C974_set_sync(instance, cmd->target); |
cmd | 1466 | drivers/scsi/AM53C974.c | AM53C974_set_async(instance, cmd->target); |
cmd | 1487 | drivers/scsi/AM53C974.c | cmd->SCp.phase = PHASE_MSGOUT; |
cmd | 1489 | drivers/scsi/AM53C974.c | AM53C974_set_sync(instance, cmd->target); |
cmd | 1494 | drivers/scsi/AM53C974.c | AM53C974_set_async(instance, cmd->target); |
cmd | 1495 | drivers/scsi/AM53C974.c | for (i = 0; i < cmd->cmd_len; i++) AM53C974_write_8(FFREG, cmd->cmnd[i]); |
cmd | 1497 | drivers/scsi/AM53C974.c | cmd->SCp.phase = PHASE_CMDOUT; |
cmd | 1498 | drivers/scsi/AM53C974.c | AM53C974_set_sync(instance, cmd->target); |
cmd | 1503 | drivers/scsi/AM53C974.c | if (cmd->SCp.phase == PHASE_DATAIN) |
cmd | 1505 | drivers/scsi/AM53C974.c | AM53C974_set_async(instance, cmd->target); |
cmd | 1506 | drivers/scsi/AM53C974.c | if (cmd->SCp.phase == PHASE_DATAOUT) { |
cmd | 1513 | drivers/scsi/AM53C974.c | cmd->SCp.ptr += cmd->SCp.this_residual - residual; |
cmd | 1514 | drivers/scsi/AM53C974.c | cmd->SCp.this_residual = residual; } |
cmd | 1517 | drivers/scsi/AM53C974.c | cmd->SCp.phase = PHASE_STATIN; |
cmd | 1544 | drivers/scsi/AM53C974.c | static int AM53C974_message(struct Scsi_Host *instance, Scsi_Cmnd *cmd, |
cmd | 1573 | drivers/scsi/AM53C974.c | instance->host_no, cmd->target, cmd->lun)); |
cmd | 1576 | drivers/scsi/AM53C974.c | if (!cmd->next_link) { |
cmd | 1578 | drivers/scsi/AM53C974.c | instance->host_no, cmd->target, cmd->lun); |
cmd | 1585 | drivers/scsi/AM53C974.c | "LINKED_FLG_CMD_COMPLETE message\n", cmd->cmnd[0])); |
cmd | 1589 | drivers/scsi/AM53C974.c | initialize_SCp(cmd->next_link); |
cmd | 1591 | drivers/scsi/AM53C974.c | cmd->next_link->tag = cmd->tag; |
cmd | 1592 | drivers/scsi/AM53C974.c | cmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); |
cmd | 1594 | drivers/scsi/AM53C974.c | instance->host_no, cmd->target, cmd->lun)); |
cmd | 1595 | drivers/scsi/AM53C974.c | cmd->scsi_done(cmd); |
cmd | 1596 | drivers/scsi/AM53C974.c | cmd = hostdata->connected; |
cmd | 1604 | drivers/scsi/AM53C974.c | instance->host_no, cmd->cmnd[0], cmd->target, cmd->lun)); |
cmd | 1606 | drivers/scsi/AM53C974.c | cmd->device->disconnect = 0; |
cmd | 1620 | drivers/scsi/AM53C974.c | if (cmd->cmnd[0] != REQUEST_SENSE) |
cmd | 1621 | drivers/scsi/AM53C974.c | cmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); |
cmd | 1622 | drivers/scsi/AM53C974.c | else if (cmd->SCp.Status != GOOD) |
cmd | 1623 | drivers/scsi/AM53C974.c | cmd->result = (cmd->result & 0x00ffff) | (DID_ERROR << 16); |
cmd | 1628 | drivers/scsi/AM53C974.c | "COMMAND_COMPLETE message\n", cmd->cmnd[0])); |
cmd | 1630 | drivers/scsi/AM53C974.c | if ((cmd->cmnd[0] != REQUEST_SENSE) && (cmd->SCp.Status == CHECK_CONDITION)) { |
cmd | 1632 | drivers/scsi/AM53C974.c | cmd->cmnd[0] = REQUEST_SENSE; |
cmd | 1633 | drivers/scsi/AM53C974.c | cmd->cmnd[1] &= 0xe0; |
cmd | 1634 | drivers/scsi/AM53C974.c | cmd->cmnd[2] = 0; |
cmd | 1635 | drivers/scsi/AM53C974.c | cmd->cmnd[3] = 0; |
cmd | 1636 | drivers/scsi/AM53C974.c | cmd->cmnd[4] = sizeof(cmd->sense_buffer); |
cmd | 1637 | drivers/scsi/AM53C974.c | cmd->cmnd[5] = 0; |
cmd | 1638 | drivers/scsi/AM53C974.c | cmd->SCp.buffer = NULL; |
cmd | 1639 | drivers/scsi/AM53C974.c | cmd->SCp.buffers_residual = 0; |
cmd | 1640 | drivers/scsi/AM53C974.c | cmd->SCp.ptr = (char *)cmd->sense_buffer; |
cmd | 1641 | drivers/scsi/AM53C974.c | cmd->SCp.this_residual = sizeof(cmd->sense_buffer); |
cmd | 1642 | drivers/scsi/AM53C974.c | LIST(cmd,hostdata->issue_queue); |
cmd | 1643 | drivers/scsi/AM53C974.c | cmd->host_scribble = (unsigned char *)hostdata->issue_queue; |
cmd | 1644 | drivers/scsi/AM53C974.c | hostdata->issue_queue = (Scsi_Cmnd *)cmd; |
cmd | 1654 | drivers/scsi/AM53C974.c | instance->host_no, cmd->cmnd[0], cmd->target, cmd->lun)); |
cmd | 1660 | drivers/scsi/AM53C974.c | cmd->target, DEF_CLK / DEF_STP); |
cmd | 1661 | drivers/scsi/AM53C974.c | hostdata->sync_off[cmd->target] = 0; |
cmd | 1662 | drivers/scsi/AM53C974.c | hostdata->sync_per[cmd->target] = DEF_STP; } |
cmd | 1667 | drivers/scsi/AM53C974.c | cmd->device->tagged_queue = 0; |
cmd | 1668 | drivers/scsi/AM53C974.c | hostdata->busy[cmd->target] |= (1 << cmd->lun); |
cmd | 1679 | drivers/scsi/AM53C974.c | instance->host_no, cmd->cmnd[0], cmd->target, cmd->lun)); |
cmd | 1680 | drivers/scsi/AM53C974.c | cmd->device->disconnect = 1; |
cmd | 1688 | drivers/scsi/AM53C974.c | instance->host_no, cmd->cmnd[0], cmd->target, cmd->lun)); |
cmd | 1699 | drivers/scsi/AM53C974.c | cmd->cmnd[0])); |
cmd | 1706 | drivers/scsi/AM53C974.c | instance->host_no, cmd->cmnd[0], cmd->target, cmd->lun)); |
cmd | 1746 | drivers/scsi/AM53C974.c | ret = AM53C974_sync_neg(instance, cmd->target, extended_msg); |
cmd | 1786 | drivers/scsi/AM53C974.c | static void AM53C974_select(struct Scsi_Host *instance, Scsi_Cmnd *cmd, int tag) |
cmd | 1791 | drivers/scsi/AM53C974.c | unsigned int i, len, cmd_size = COMMAND_SIZE(cmd->cmnd[0]); |
cmd | 1800 | drivers/scsi/AM53C974.c | tmp[0] = IDENTIFY(1, cmd->lun); |
cmd | 1803 | drivers/scsi/AM53C974.c | if (cmd->device->tagged_queue && (tag != TAG_NONE)) { |
cmd | 1807 | drivers/scsi/AM53C974.c | if (cmd->device->current_tag == 0) cmd->device->current_tag = 1; |
cmd | 1808 | drivers/scsi/AM53C974.c | cmd->tag = cmd->device->current_tag; |
cmd | 1809 | drivers/scsi/AM53C974.c | cmd->device->current_tag++; } |
cmd | 1811 | drivers/scsi/AM53C974.c | cmd->tag = (unsigned char)tag; |
cmd | 1812 | drivers/scsi/AM53C974.c | tmp[2] = cmd->tag; |
cmd | 1824 | drivers/scsi/AM53C974.c | cmd->tag = 0; } |
cmd | 1828 | drivers/scsi/AM53C974.c | if (((cmd->cmnd[0] == INQUIRY) || (cmd->cmnd[0] == REQUEST_SENSE)) && |
cmd | 1829 | drivers/scsi/AM53C974.c | !(hostdata->sync_neg[cmd->target]) && hostdata->sync_en[cmd->target]) { |
cmd | 1830 | drivers/scsi/AM53C974.c | hostdata->sync_neg[cmd->target] = 1; |
cmd | 1834 | drivers/scsi/AM53C974.c | hostdata->msgout[3] = 250 / (int)hostdata->max_rate[cmd->target]; |
cmd | 1835 | drivers/scsi/AM53C974.c | hostdata->msgout[4] = hostdata->max_offset[cmd->target]; |
cmd | 1838 | drivers/scsi/AM53C974.c | AM53C974_write_8(SDIDREG, SDIREG_MASK & cmd->target); /* setup dest. id */ |
cmd | 1842 | drivers/scsi/AM53C974.c | for (i = 0; i < cmd_size; i++) AM53C974_write_8(FFREG, cmd->cmnd[i]); |
cmd | 1847 | drivers/scsi/AM53C974.c | for (i = 0; i < cmd_size; i++) AM53C974_write_8(FFREG, cmd->cmnd[i]); |
cmd | 2096 | drivers/scsi/AM53C974.c | int AM53C974_abort(Scsi_Cmnd *cmd) |
cmd | 2099 | drivers/scsi/AM53C974.c | struct Scsi_Host *instance = cmd->host; |
cmd | 2117 | drivers/scsi/AM53C974.c | if ((hostdata->connected == cmd) || (hostdata->sel_cmd == cmd)) { |
cmd | 2130 | drivers/scsi/AM53C974.c | if (cmd == tmp) { |
cmd | 2166 | drivers/scsi/AM53C974.c | if (cmd == tmp) { |
cmd | 2198 | drivers/scsi/AM53C974.c | int AM53C974_reset(Scsi_Cmnd *cmd) |
cmd | 2202 | drivers/scsi/AM53C974.c | struct Scsi_Host *instance = cmd->host; |
cmd | 2240 | drivers/scsi/AM53C974.c | cmd->result = DID_RESET << 16; |
cmd | 2241 | drivers/scsi/AM53C974.c | cmd->scsi_done(cmd); |
cmd | 291 | drivers/scsi/AM53C974.h | int AM53C974_queue_command(Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *)); |
cmd | 292 | drivers/scsi/AM53C974.h | int AM53C974_abort(Scsi_Cmnd *cmd); |
cmd | 293 | drivers/scsi/AM53C974.h | int AM53C974_reset (Scsi_Cmnd *cmd); |
cmd | 311 | drivers/scsi/NCR5380.c | static __inline__ void initialize_SCp(Scsi_Cmnd *cmd) { |
cmd | 317 | drivers/scsi/NCR5380.c | if (cmd->use_sg) { |
cmd | 318 | drivers/scsi/NCR5380.c | cmd->SCp.buffer = (struct scatterlist *) cmd->buffer; |
cmd | 319 | drivers/scsi/NCR5380.c | cmd->SCp.buffers_residual = cmd->use_sg - 1; |
cmd | 320 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = (char *) cmd->SCp.buffer->address; |
cmd | 321 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = cmd->SCp.buffer->length; |
cmd | 323 | drivers/scsi/NCR5380.c | cmd->SCp.buffer = NULL; |
cmd | 324 | drivers/scsi/NCR5380.c | cmd->SCp.buffers_residual = 0; |
cmd | 325 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = (char *) cmd->request_buffer; |
cmd | 326 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = cmd->request_bufflen; |
cmd | 515 | drivers/scsi/NCR5380.c | static int should_disconnect (unsigned char cmd) { |
cmd | 516 | drivers/scsi/NCR5380.c | switch (cmd) { |
cmd | 910 | drivers/scsi/NCR5380.c | int NCR5380_queue_command (Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *)) { |
cmd | 911 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance = cmd->host; |
cmd | 917 | drivers/scsi/NCR5380.c | switch (cmd->cmnd[0]) { |
cmd | 922 | drivers/scsi/NCR5380.c | cmd->result = (DID_ERROR << 16); |
cmd | 923 | drivers/scsi/NCR5380.c | done(cmd); |
cmd | 934 | drivers/scsi/NCR5380.c | cmd->host_scribble = NULL; |
cmd | 935 | drivers/scsi/NCR5380.c | cmd->scsi_done = done; |
cmd | 937 | drivers/scsi/NCR5380.c | cmd->result = 0; |
cmd | 948 | drivers/scsi/NCR5380.c | if (!(hostdata->issue_queue) || (cmd->cmnd[0] == REQUEST_SENSE)) { |
cmd | 949 | drivers/scsi/NCR5380.c | LIST(cmd, hostdata->issue_queue); |
cmd | 950 | drivers/scsi/NCR5380.c | cmd->host_scribble = (unsigned char *) hostdata->issue_queue; |
cmd | 951 | drivers/scsi/NCR5380.c | hostdata->issue_queue = cmd; |
cmd | 955 | drivers/scsi/NCR5380.c | LIST(cmd, tmp); |
cmd | 956 | drivers/scsi/NCR5380.c | tmp->host_scribble = (unsigned char *) cmd; |
cmd | 960 | drivers/scsi/NCR5380.c | (cmd->cmnd[0] == REQUEST_SENSE) ? "head" : "tail"); |
cmd | 1258 | drivers/scsi/NCR5380.c | static int NCR5380_select (struct Scsi_Host *instance, Scsi_Cmnd *cmd, |
cmd | 1372 | drivers/scsi/NCR5380.c | NCR5380_write(OUTPUT_DATA_REG, (hostdata->id_mask | (1 << cmd->target))); |
cmd | 1420 | drivers/scsi/NCR5380.c | printk("scsi%d : selecting target %d\n", instance->host_no, cmd->target); |
cmd | 1461 | drivers/scsi/NCR5380.c | if (hostdata->targets_present & (1 << cmd->target)) { |
cmd | 1471 | drivers/scsi/NCR5380.c | cmd->result = DID_BAD_TARGET << 16; |
cmd | 1472 | drivers/scsi/NCR5380.c | cmd->scsi_done(cmd); |
cmd | 1482 | drivers/scsi/NCR5380.c | hostdata->targets_present |= (1 << cmd->target); |
cmd | 1518 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target); |
cmd | 1520 | drivers/scsi/NCR5380.c | tmp[0] = IDENTIFY(((instance->irq == IRQ_NONE) ? 0 : 1), cmd->lun); |
cmd | 1522 | drivers/scsi/NCR5380.c | if (cmd->device->tagged_queue && (tag != TAG_NONE)) { |
cmd | 1526 | drivers/scsi/NCR5380.c | if (cmd->device->current_tag == 0) |
cmd | 1527 | drivers/scsi/NCR5380.c | cmd->device->current_tag = 1; |
cmd | 1529 | drivers/scsi/NCR5380.c | cmd->tag = cmd->device->current_tag; |
cmd | 1530 | drivers/scsi/NCR5380.c | cmd->device->current_tag++; |
cmd | 1532 | drivers/scsi/NCR5380.c | cmd->tag = (unsigned char) tag; |
cmd | 1534 | drivers/scsi/NCR5380.c | tmp[2] = cmd->tag; |
cmd | 1541 | drivers/scsi/NCR5380.c | cmd->tag=0; |
cmd | 1552 | drivers/scsi/NCR5380.c | hostdata->connected = cmd; |
cmd | 1554 | drivers/scsi/NCR5380.c | if (!cmd->device->tagged_queue) |
cmd | 1556 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] |= (1 << cmd->lun); |
cmd | 1558 | drivers/scsi/NCR5380.c | initialize_SCp(cmd); |
cmd | 2160 | drivers/scsi/NCR5380.c | Scsi_Cmnd *cmd = (Scsi_Cmnd *) hostdata->connected; |
cmd | 2195 | drivers/scsi/NCR5380.c | cmd->result = DID_ERROR << 16; |
cmd | 2196 | drivers/scsi/NCR5380.c | cmd->done(cmd); |
cmd | 2204 | drivers/scsi/NCR5380.c | if (!cmd->SCp.this_residual && cmd->SCp.buffers_residual) { |
cmd | 2205 | drivers/scsi/NCR5380.c | ++cmd->SCp.buffer; |
cmd | 2206 | drivers/scsi/NCR5380.c | --cmd->SCp.buffers_residual; |
cmd | 2207 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = cmd->SCp.buffer->length; |
cmd | 2208 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = cmd->SCp.buffer->address; |
cmd | 2211 | drivers/scsi/NCR5380.c | instance->host_no, cmd->SCp.this_residual, |
cmd | 2212 | drivers/scsi/NCR5380.c | cmd->SCp.buffers_residual); |
cmd | 2235 | drivers/scsi/NCR5380.c | if (!cmd->device->borken && |
cmd | 2237 | drivers/scsi/NCR5380.c | (transfersize = NCR5380_dma_xfer_len(instance, cmd)) != 0) { |
cmd | 2239 | drivers/scsi/NCR5380.c | transfersize = cmd->transfersize; |
cmd | 2246 | drivers/scsi/NCR5380.c | if (!cmd->device->borken && transfersize && |
cmd | 2248 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual && !(cmd->SCp.this_residual % |
cmd | 2253 | drivers/scsi/NCR5380.c | &len, (unsigned char **) &cmd->SCp.ptr)) { |
cmd | 2259 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
cmd | 2260 | drivers/scsi/NCR5380.c | cmd->device->borken = 1; |
cmd | 2265 | drivers/scsi/NCR5380.c | cmd->result = DID_ERROR << 16; |
cmd | 2266 | drivers/scsi/NCR5380.c | cmd->done(cmd); |
cmd | 2269 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual -= transfersize - len; |
cmd | 2273 | drivers/scsi/NCR5380.c | (int *) &cmd->SCp.this_residual, (unsigned char **) |
cmd | 2274 | drivers/scsi/NCR5380.c | &cmd->SCp.ptr); |
cmd | 2280 | drivers/scsi/NCR5380.c | cmd->SCp.Message = tmp; |
cmd | 2301 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
cmd | 2309 | drivers/scsi/NCR5380.c | if (!cmd->next_link) { |
cmd | 2311 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
cmd | 2317 | drivers/scsi/NCR5380.c | initialize_SCp(cmd->next_link); |
cmd | 2319 | drivers/scsi/NCR5380.c | cmd->next_link->tag = cmd->tag; |
cmd | 2320 | drivers/scsi/NCR5380.c | cmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); |
cmd | 2323 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
cmd | 2325 | drivers/scsi/NCR5380.c | cmd->scsi_done(cmd); |
cmd | 2326 | drivers/scsi/NCR5380.c | cmd = hostdata->connected; |
cmd | 2337 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
cmd | 2339 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] &= ~(1 << cmd->lun); |
cmd | 2357 | drivers/scsi/NCR5380.c | if (cmd->cmnd[0] != REQUEST_SENSE) |
cmd | 2358 | drivers/scsi/NCR5380.c | cmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); |
cmd | 2359 | drivers/scsi/NCR5380.c | else if (cmd->SCp.Status != GOOD) |
cmd | 2360 | drivers/scsi/NCR5380.c | cmd->result = (cmd->result & 0x00ffff) | (DID_ERROR << 16); |
cmd | 2363 | drivers/scsi/NCR5380.c | if ((cmd->cmnd[0] != REQUEST_SENSE) && |
cmd | 2364 | drivers/scsi/NCR5380.c | (cmd->SCp.Status == CHECK_CONDITION)) { |
cmd | 2369 | drivers/scsi/NCR5380.c | cmd->cmnd[0] = REQUEST_SENSE; |
cmd | 2370 | drivers/scsi/NCR5380.c | cmd->cmnd[1] &= 0xe0; |
cmd | 2371 | drivers/scsi/NCR5380.c | cmd->cmnd[2] = 0; |
cmd | 2372 | drivers/scsi/NCR5380.c | cmd->cmnd[3] = 0; |
cmd | 2373 | drivers/scsi/NCR5380.c | cmd->cmnd[4] = sizeof(cmd->sense_buffer); |
cmd | 2374 | drivers/scsi/NCR5380.c | cmd->cmnd[5] = 0; |
cmd | 2376 | drivers/scsi/NCR5380.c | cmd->SCp.buffer = NULL; |
cmd | 2377 | drivers/scsi/NCR5380.c | cmd->SCp.buffers_residual = 0; |
cmd | 2378 | drivers/scsi/NCR5380.c | cmd->SCp.ptr = (char *) cmd->sense_buffer; |
cmd | 2379 | drivers/scsi/NCR5380.c | cmd->SCp.this_residual = sizeof(cmd->sense_buffer); |
cmd | 2382 | drivers/scsi/NCR5380.c | LIST(cmd,hostdata->issue_queue); |
cmd | 2383 | drivers/scsi/NCR5380.c | cmd->host_scribble = (unsigned char *) |
cmd | 2385 | drivers/scsi/NCR5380.c | hostdata->issue_queue = (Scsi_Cmnd *) cmd; |
cmd | 2392 | drivers/scsi/NCR5380.c | cmd->scsi_done(cmd); |
cmd | 2411 | drivers/scsi/NCR5380.c | cmd->device->tagged_queue = 0; |
cmd | 2412 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] |= (1 << cmd->lun); |
cmd | 2420 | drivers/scsi/NCR5380.c | cmd->device->disconnect = 1; |
cmd | 2422 | drivers/scsi/NCR5380.c | LIST(cmd,hostdata->disconnected_queue); |
cmd | 2423 | drivers/scsi/NCR5380.c | cmd->host_scribble = (unsigned char *) |
cmd | 2426 | drivers/scsi/NCR5380.c | hostdata->disconnected_queue = cmd; |
cmd | 2431 | drivers/scsi/NCR5380.c | cmd->target, cmd->lun); |
cmd | 2540 | drivers/scsi/NCR5380.c | instance->host_no, tmp, cmd->target, cmd->lun); |
cmd | 2543 | drivers/scsi/NCR5380.c | instance->host_no, extended_msg[1], extended_msg[0], cmd->target, cmd->lun); |
cmd | 2557 | drivers/scsi/NCR5380.c | hostdata->busy[cmd->target] &= ~(1 << cmd->lun); |
cmd | 2559 | drivers/scsi/NCR5380.c | cmd->result = DID_ERROR << 16; |
cmd | 2560 | drivers/scsi/NCR5380.c | cmd->scsi_done(cmd); |
cmd | 2567 | drivers/scsi/NCR5380.c | len = cmd->cmd_len; |
cmd | 2568 | drivers/scsi/NCR5380.c | data = cmd->cmnd; |
cmd | 2577 | drivers/scsi/NCR5380.c | if (!disconnect && should_disconnect(cmd->cmnd[0])) { |
cmd | 2592 | drivers/scsi/NCR5380.c | cmd->SCp.Status = tmp; |
cmd | 2825 | drivers/scsi/NCR5380.c | int NCR5380_abort (Scsi_Cmnd *cmd) { |
cmd | 2827 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance = cmd->host; |
cmd | 2833 | drivers/scsi/NCR5380.c | print_Scsi_Cmnd (cmd); |
cmd | 2838 | drivers/scsi/NCR5380.c | print_Scsi_Cmnd (cmd); |
cmd | 2858 | drivers/scsi/NCR5380.c | if (hostdata->connected == cmd) { |
cmd | 2896 | drivers/scsi/NCR5380.c | if (cmd == tmp) { |
cmd | 2960 | drivers/scsi/NCR5380.c | if (cmd == tmp) { |
cmd | 2966 | drivers/scsi/NCR5380.c | if (NCR5380_select (instance, cmd, (int) cmd->tag)) |
cmd | 2980 | drivers/scsi/NCR5380.c | if (cmd == tmp) { |
cmd | 3020 | drivers/scsi/NCR5380.c | int NCR5380_reset (Scsi_Cmnd *cmd) { |
cmd | 3022 | drivers/scsi/NCR5380.c | NCR5380_setup(cmd->host); |
cmd | 3024 | drivers/scsi/NCR5380.c | NCR5380_print_status (cmd->host); |
cmd | 3025 | drivers/scsi/NCR5380.c | do_reset (cmd->host); |
cmd | 286 | drivers/scsi/NCR5380.h | int NCR5380_abort (Scsi_Cmnd *cmd); |
cmd | 290 | drivers/scsi/NCR5380.h | int NCR5380_reset (Scsi_Cmnd *cmd); |
cmd | 294 | drivers/scsi/NCR5380.h | int NCR5380_queue_command (Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *)); |
cmd | 298 | drivers/scsi/NCR5380.h | static int NCR5380_select (struct Scsi_Host *instance, Scsi_Cmnd *cmd, int tag); |
cmd | 514 | drivers/scsi/aha1542.c | unchar *cmd = (unchar *) SCpnt->cmnd; |
cmd | 533 | drivers/scsi/aha1542.c | if(*cmd == REQUEST_SENSE){ |
cmd | 545 | drivers/scsi/aha1542.c | if (*cmd == READ_10 || *cmd == WRITE_10) |
cmd | 546 | drivers/scsi/aha1542.c | i = xscsi2int(cmd+2); |
cmd | 547 | drivers/scsi/aha1542.c | else if (*cmd == READ_6 || *cmd == WRITE_6) |
cmd | 548 | drivers/scsi/aha1542.c | i = scsi2int(cmd+2); |
cmd | 552 | drivers/scsi/aha1542.c | printk("aha1542_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
cmd | 554 | drivers/scsi/aha1542.c | printk("aha1542_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
cmd | 557 | drivers/scsi/aha1542.c | for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); |
cmd | 559 | drivers/scsi/aha1542.c | if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 597 | drivers/scsi/aha1542.c | if (*cmd == READ_10 || *cmd == READ_6) |
cmd | 599 | drivers/scsi/aha1542.c | else if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 602 | drivers/scsi/aha1542.c | memcpy(ccb[mbo].cdb, cmd, ccb[mbo].cdblen); |
cmd | 700 | drivers/scsi/aha1542.c | unchar cmd[5] = {CMD_MBINIT, AHA1542_MAILBOXES, 0, 0, 0}; |
cmd | 710 | drivers/scsi/aha1542.c | any2scsi((cmd+2), mb); |
cmd | 711 | drivers/scsi/aha1542.c | aha1542_out(bse, cmd, 5); |
cmd | 1039 | drivers/scsi/aha1542.c | static unchar cmd[] = { READ_CAPACITY, 0, 0, 0, 0, 0, 0, 0, 0, 0}; |
cmd | 1044 | drivers/scsi/aha1542.c | if (!aha1542_command(i, cmd, buf, sizeof(buf))) { |
cmd | 1054 | drivers/scsi/aha1542.c | unsigned char cmd[10]; |
cmd | 1057 | drivers/scsi/aha1542.c | cmd[0] = READ_10; |
cmd | 1058 | drivers/scsi/aha1542.c | cmd[1] = 0; |
cmd | 1059 | drivers/scsi/aha1542.c | xany2scsi(cmd+2, i); |
cmd | 1060 | drivers/scsi/aha1542.c | cmd[6] = 0; |
cmd | 1061 | drivers/scsi/aha1542.c | cmd[7] = 0; |
cmd | 1062 | drivers/scsi/aha1542.c | cmd[8] = 1; |
cmd | 1063 | drivers/scsi/aha1542.c | cmd[9] = 0; |
cmd | 1064 | drivers/scsi/aha1542.c | aha1542_command(0, cmd, buffer, 512); |
cmd | 255 | drivers/scsi/aha1740.c | unchar *cmd = (unchar *) SCpnt->cmnd; |
cmd | 264 | drivers/scsi/aha1740.c | if(*cmd == REQUEST_SENSE) |
cmd | 276 | drivers/scsi/aha1740.c | if (*cmd == READ_10 || *cmd == WRITE_10) |
cmd | 277 | drivers/scsi/aha1740.c | i = xscsi2int(cmd+2); |
cmd | 278 | drivers/scsi/aha1740.c | else if (*cmd == READ_6 || *cmd == WRITE_6) |
cmd | 279 | drivers/scsi/aha1740.c | i = scsi2int(cmd+2); |
cmd | 282 | drivers/scsi/aha1740.c | printk("aha1740_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
cmd | 284 | drivers/scsi/aha1740.c | for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); |
cmd | 317 | drivers/scsi/aha1740.c | if (*cmd == READ_10 || *cmd == READ_6) |
cmd | 319 | drivers/scsi/aha1740.c | else if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 322 | drivers/scsi/aha1740.c | memcpy(ecb[ecbno].cdb, cmd, ecb[ecbno].cdblen); |
cmd | 429 | drivers/scsi/aic7xxx.c | #define aic7xxx_error(cmd) ((cmd)->SCp.Status) |
cmd | 434 | drivers/scsi/aic7xxx.c | #define aic7xxx_status(cmd) ((cmd)->SCp.sent_command) |
cmd | 439 | drivers/scsi/aic7xxx.c | #define aic7xxx_position(cmd) ((cmd)->SCp.have_data_in) |
cmd | 525 | drivers/scsi/aic7xxx.c | Scsi_Cmnd *cmd; /* Scsi_Cmnd for this scb */ |
cmd | 810 | drivers/scsi/aic7xxx.c | (unsigned long) scb->next, (unsigned long) scb->cmd, scb->state, |
cmd | 1033 | drivers/scsi/aic7xxx.c | aic7xxx_length(Scsi_Cmnd *cmd, int sg_last) |
cmd | 1039 | drivers/scsi/aic7xxx.c | segments = cmd->use_sg - sg_last; |
cmd | 1040 | drivers/scsi/aic7xxx.c | sg = (struct scatterlist *) cmd->buffer; |
cmd | 1042 | drivers/scsi/aic7xxx.c | if (cmd->use_sg) |
cmd | 1044 | drivers/scsi/aic7xxx.c | for (i = length = 0; (i < cmd->use_sg) && (i < segments); i++) |
cmd | 1051 | drivers/scsi/aic7xxx.c | length = cmd->request_bufflen; |
cmd | 1276 | drivers/scsi/aic7xxx.c | Scsi_Cmnd *cmd = scb->cmd; |
cmd | 1280 | drivers/scsi/aic7xxx.c | cmd->target, cmd->channel); |
cmd | 1296 | drivers/scsi/aic7xxx.c | scb->cmd = NULL; |
cmd | 1300 | drivers/scsi/aic7xxx.c | cmd->scsi_done(cmd); |
cmd | 1416 | drivers/scsi/aic7xxx.c | scb->cmd->result = (DID_RESET << 16); |
cmd | 1470 | drivers/scsi/aic7xxx.c | scb->cmd->result = (DID_RESET << 16); |
cmd | 1534 | drivers/scsi/aic7xxx.c | scb->cmd->result = (DID_RESET << 16); |
cmd | 1698 | drivers/scsi/aic7xxx.c | Scsi_Cmnd *cmd; |
cmd | 1812 | drivers/scsi/aic7xxx.c | scb->cmd->device->tagged_supported = 0; |
cmd | 1813 | drivers/scsi/aic7xxx.c | scb->cmd->device->tagged_queue = 0; |
cmd | 2020 | drivers/scsi/aic7xxx.c | if (!(scb->state & SCB_ACTIVE) || (scb->cmd == NULL)) |
cmd | 2024 | drivers/scsi/aic7xxx.c | intstat, scb_index, scb->state, (unsigned int) scb->cmd); |
cmd | 2028 | drivers/scsi/aic7xxx.c | cmd = scb->cmd; |
cmd | 2030 | drivers/scsi/aic7xxx.c | aic7xxx_status(cmd) = scb->target_status; |
cmd | 2032 | drivers/scsi/aic7xxx.c | cmd->result |= scb->target_status; |
cmd | 2041 | drivers/scsi/aic7xxx.c | if ((aic7xxx_error(cmd) == 0) && !(cmd->flags & WAS_SENSE)) |
cmd | 2052 | drivers/scsi/aic7xxx.c | cmd->flags |= WAS_SENSE; |
cmd | 2056 | drivers/scsi/aic7xxx.c | scb->sense_cmd[1] = (cmd->lun << 5); |
cmd | 2057 | drivers/scsi/aic7xxx.c | scb->sense_cmd[4] = sizeof(cmd->sense_buffer); |
cmd | 2059 | drivers/scsi/aic7xxx.c | scb->sense_sg.address = (char *) &cmd->sense_buffer; |
cmd | 2060 | drivers/scsi/aic7xxx.c | scb->sense_sg.length = sizeof(cmd->sense_buffer); |
cmd | 2062 | drivers/scsi/aic7xxx.c | cmd->cmd_len = COMMAND_SIZE(cmd->cmnd[0]); |
cmd | 2090 | drivers/scsi/aic7xxx.c | cmd->flags &= ~ASKED_FOR_SENSE; |
cmd | 2091 | drivers/scsi/aic7xxx.c | if (aic7xxx_error(cmd) == 0) |
cmd | 2093 | drivers/scsi/aic7xxx.c | aic7xxx_error(cmd) = DID_RETRY_COMMAND; |
cmd | 2099 | drivers/scsi/aic7xxx.c | if (!aic7xxx_error(cmd)) |
cmd | 2101 | drivers/scsi/aic7xxx.c | aic7xxx_error(cmd) = DID_BUS_BUSY; |
cmd | 2107 | drivers/scsi/aic7xxx.c | if (!aic7xxx_error(cmd)) |
cmd | 2109 | drivers/scsi/aic7xxx.c | aic7xxx_error(cmd) = DID_RETRY_COMMAND; |
cmd | 2116 | drivers/scsi/aic7xxx.c | if (!aic7xxx_error(cmd)) |
cmd | 2118 | drivers/scsi/aic7xxx.c | aic7xxx_error(cmd) = DID_RETRY_COMMAND; |
cmd | 2128 | drivers/scsi/aic7xxx.c | if (!(scb->state & SCB_ACTIVE) || (scb->cmd == NULL)) |
cmd | 2132 | drivers/scsi/aic7xxx.c | intstat, scb_index, scb->state, (unsigned int) scb->cmd); |
cmd | 2136 | drivers/scsi/aic7xxx.c | cmd = scb->cmd; |
cmd | 2141 | drivers/scsi/aic7xxx.c | if (!(cmd->flags & WAS_SENSE)) |
cmd | 2149 | drivers/scsi/aic7xxx.c | actual = aic7xxx_length(cmd, scb->residual_SG_segment_count); |
cmd | 2155 | drivers/scsi/aic7xxx.c | if (actual < cmd->underflow) |
cmd | 2159 | drivers/scsi/aic7xxx.c | cmd->target, cmd->underflow, actual, |
cmd | 2161 | drivers/scsi/aic7xxx.c | aic7xxx_error(cmd) = DID_RETRY_COMMAND; |
cmd | 2162 | drivers/scsi/aic7xxx.c | aic7xxx_status(cmd) = scb->target_status; |
cmd | 2171 | drivers/scsi/aic7xxx.c | if (!(scb->state & SCB_ACTIVE) || (scb->cmd == NULL)) |
cmd | 2175 | drivers/scsi/aic7xxx.c | intstat, scb_index, scb->state, (unsigned int) scb->cmd); |
cmd | 2179 | drivers/scsi/aic7xxx.c | cmd = scb->cmd; |
cmd | 2186 | drivers/scsi/aic7xxx.c | scsi_id, channel, cmd->lun & 0x07); |
cmd | 2188 | drivers/scsi/aic7xxx.c | cmd->result = (DID_RETRY_COMMAND << 16); |
cmd | 2196 | drivers/scsi/aic7xxx.c | if (!(scb->state & SCB_ACTIVE) || (scb->cmd == NULL)) |
cmd | 2200 | drivers/scsi/aic7xxx.c | intstat, scb_index, scb->state, (unsigned int) scb->cmd); |
cmd | 2268 | drivers/scsi/aic7xxx.c | if (!(scb->state & SCB_ACTIVE) || (scb->cmd == NULL)) |
cmd | 2272 | drivers/scsi/aic7xxx.c | intstat, scb_index, scb->state, (unsigned int) scb->cmd); |
cmd | 2280 | drivers/scsi/aic7xxx.c | cmd = scb->cmd; |
cmd | 2315 | drivers/scsi/aic7xxx.c | cmd->target, cmd->channel & 0x01, cmd->lun & 0x07); |
cmd | 2327 | drivers/scsi/aic7xxx.c | aic7xxx_error(cmd) = DID_PARITY; |
cmd | 2334 | drivers/scsi/aic7xxx.c | aic7xxx_error(cmd) = DID_RETRY_COMMAND; |
cmd | 2361 | drivers/scsi/aic7xxx.c | if (!(scb->state & SCB_ACTIVE) || (scb->cmd == NULL)) |
cmd | 2376 | drivers/scsi/aic7xxx.c | cmd = scb->cmd; |
cmd | 2394 | drivers/scsi/aic7xxx.c | cmd->result = (DID_TIME_OUT << 16); |
cmd | 2436 | drivers/scsi/aic7xxx.c | scb->position, scb->state, (unsigned int) scb->cmd); |
cmd | 2469 | drivers/scsi/aic7xxx.c | if (!(scb->state & SCB_ACTIVE) || (scb->cmd == NULL)) |
cmd | 2474 | drivers/scsi/aic7xxx.c | scb->state, (unsigned int) scb->cmd, scb->position); |
cmd | 2478 | drivers/scsi/aic7xxx.c | cmd = scb->cmd; |
cmd | 2480 | drivers/scsi/aic7xxx.c | if ((cmd->flags & WAS_SENSE) && !(cmd->flags & ASKED_FOR_SENSE)) |
cmd | 2485 | drivers/scsi/aic7xxx.c | cmd->flags &= ASKED_FOR_SENSE; |
cmd | 2489 | drivers/scsi/aic7xxx.c | scb->state, (unsigned int) scb->cmd, (unsigned int) p->free_scb); |
cmd | 2509 | drivers/scsi/aic7xxx.c | scb->state, (unsigned int) scb->cmd, (unsigned int) p->free_scb); |
cmd | 2517 | drivers/scsi/aic7xxx.c | actual = aic7xxx_length(cmd, 0); |
cmd | 2518 | drivers/scsi/aic7xxx.c | if (!(cmd->flags & WAS_SENSE) && (actual > 0)) |
cmd | 2524 | drivers/scsi/aic7xxx.c | sp = &p->stats[cmd->channel & 0x01][cmd->target & 0x0F][cmd->lun & 0x07]; |
cmd | 2527 | drivers/scsi/aic7xxx.c | if (cmd->request.cmd == WRITE) |
cmd | 3428 | drivers/scsi/aic7xxx.c | p->scb_array[i].cmd = NULL; |
cmd | 4020 | drivers/scsi/aic7xxx.c | Scsi_Cmnd *cmd, |
cmd | 4032 | drivers/scsi/aic7xxx.c | if (cmd->device->tagged_supported) |
cmd | 4034 | drivers/scsi/aic7xxx.c | if (cmd->device->tagged_queue == 0) |
cmd | 4037 | drivers/scsi/aic7xxx.c | "channel %d.\n", cmd->target, cmd->channel); |
cmd | 4038 | drivers/scsi/aic7xxx.c | cmd->device->tagged_queue = 1; |
cmd | 4039 | drivers/scsi/aic7xxx.c | cmd->device->current_tag = 1; /* enable tagging */ |
cmd | 4041 | drivers/scsi/aic7xxx.c | cmd->tag = cmd->device->current_tag; |
cmd | 4042 | drivers/scsi/aic7xxx.c | cmd->device->current_tag++; |
cmd | 4046 | drivers/scsi/aic7xxx.c | mask = (0x01 << (cmd->target | (cmd->channel << 3))); |
cmd | 4056 | drivers/scsi/aic7xxx.c | printk("aic7xxx: Sending WDTR request to target %d.\n", cmd->target); |
cmd | 4066 | drivers/scsi/aic7xxx.c | printk("aic7xxx: Sending SDTR request to target %d.\n", cmd->target); |
cmd | 4074 | drivers/scsi/aic7xxx.c | cmd->target, cmd->cmnd[0], cmd->cmd_len, p->needwdtr, mask); |
cmd | 4076 | drivers/scsi/aic7xxx.c | scb->target_channel_lun = ((cmd->target << 4) & 0xF0) | |
cmd | 4077 | drivers/scsi/aic7xxx.c | ((cmd->channel & 0x01) << 3) | (cmd->lun & 0x07); |
cmd | 4090 | drivers/scsi/aic7xxx.c | addr = cmd->cmnd; |
cmd | 4091 | drivers/scsi/aic7xxx.c | scb->SCSI_cmd_length = cmd->cmd_len; |
cmd | 4094 | drivers/scsi/aic7xxx.c | if (cmd->use_sg) |
cmd | 4096 | drivers/scsi/aic7xxx.c | scb->SG_segment_count = cmd->use_sg; |
cmd | 4097 | drivers/scsi/aic7xxx.c | memcpy(scb->SG_list_pointer, &cmd->request_buffer, |
cmd | 4099 | drivers/scsi/aic7xxx.c | memcpy(&sg, &cmd->request_buffer, sizeof(sg)); |
cmd | 4104 | drivers/scsi/aic7xxx.c | cmd->use_sg, aic7xxx_length(cmd, 0), scb->data_count); |
cmd | 4111 | drivers/scsi/aic7xxx.c | (unsigned long) cmd->request_buffer, cmd->request_bufflen); |
cmd | 4113 | drivers/scsi/aic7xxx.c | if (cmd->request_bufflen == 0) |
cmd | 4128 | drivers/scsi/aic7xxx.c | scb->sg.address = (char *) cmd->request_buffer; |
cmd | 4129 | drivers/scsi/aic7xxx.c | scb->sg.length = cmd->request_bufflen; |
cmd | 4133 | drivers/scsi/aic7xxx.c | memcpy(scb->data_pointer, &cmd->request_buffer, sizeof(scb->data_pointer)); |
cmd | 4146 | drivers/scsi/aic7xxx.c | aic7xxx_queue(Scsi_Cmnd *cmd, void (*fn)(Scsi_Cmnd *)) |
cmd | 4152 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) cmd->host->hostdata; |
cmd | 4157 | drivers/scsi/aic7xxx.c | if (!p->a_scanned && (cmd->channel == 0)) |
cmd | 4164 | drivers/scsi/aic7xxx.c | if (!p->b_scanned && (cmd->channel == 1)) |
cmd | 4173 | drivers/scsi/aic7xxx.c | cmd->cmnd[0], cmd->cmd_len, cmd->target, cmd->channel, |
cmd | 4174 | drivers/scsi/aic7xxx.c | cmd->lun & 0x07); |
cmd | 4233 | drivers/scsi/aic7xxx.c | scb->cmd = cmd; |
cmd | 4234 | drivers/scsi/aic7xxx.c | aic7xxx_position(cmd) = scb->position; |
cmd | 4243 | drivers/scsi/aic7xxx.c | aic7xxx_buildscb(p, cmd, scb); |
cmd | 4252 | drivers/scsi/aic7xxx.c | scb->position, (unsigned int) scb->cmd, |
cmd | 4278 | drivers/scsi/aic7xxx.c | cmd->scsi_done = fn; |
cmd | 4279 | drivers/scsi/aic7xxx.c | aic7xxx_error(cmd) = DID_OK; |
cmd | 4280 | drivers/scsi/aic7xxx.c | aic7xxx_status(cmd) = 0; |
cmd | 4281 | drivers/scsi/aic7xxx.c | cmd->result = 0; |
cmd | 4282 | drivers/scsi/aic7xxx.c | memset(&cmd->sense_buffer, 0, sizeof(cmd->sense_buffer)); |
cmd | 4287 | drivers/scsi/aic7xxx.c | (long) cmd, (long) scb->cmd, scb->position); |
cmd | 4373 | drivers/scsi/aic7xxx.c | aic7xxx_error(scb->cmd) = errcode; |
cmd | 4422 | drivers/scsi/aic7xxx.c | aic7xxx_error(scb->cmd) = errcode; |
cmd | 4452 | drivers/scsi/aic7xxx.c | aic7xxx_abort_reset(Scsi_Cmnd *cmd, unsigned char errcode) |
cmd | 4459 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) cmd->host->hostdata; |
cmd | 4460 | drivers/scsi/aic7xxx.c | scb = &(p->scb_array[aic7xxx_position(cmd)]); |
cmd | 4477 | drivers/scsi/aic7xxx.c | aic7xxx_error(cmd) = errcode; |
cmd | 4509 | drivers/scsi/aic7xxx.c | cmd->result = errcode << 16; |
cmd | 4510 | drivers/scsi/aic7xxx.c | cmd->scsi_done(cmd); |
cmd | 4525 | drivers/scsi/aic7xxx.c | aic7xxx_abort(Scsi_Cmnd *cmd) |
cmd | 4528 | drivers/scsi/aic7xxx.c | printk ("aic7xxx: (abort) target/channel %d/%d\n", cmd->target, cmd->channel); |
cmd | 4531 | drivers/scsi/aic7xxx.c | switch (aic7xxx_abort_reset(cmd, DID_ABORT)) |
cmd | 4557 | drivers/scsi/aic7xxx.c | aic7xxx_reset(Scsi_Cmnd *cmd) |
cmd | 4560 | drivers/scsi/aic7xxx.c | printk ("aic7xxx: (reset) target/channel %d/%d\n", cmd->target, cmd->channel); |
cmd | 4563 | drivers/scsi/aic7xxx.c | switch (aic7xxx_abort_reset(cmd, DID_RESET)) |
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 | 337 | drivers/scsi/eata.c | static inline unchar do_dma (ushort iobase, unsigned int addr, unchar cmd) { |
cmd | 348 | drivers/scsi/eata.c | outb(cmd, iobase + REG_CMD); |
cmd | 157 | drivers/scsi/eata_dma.c | Scsi_Cmnd *cmd; |
cmd | 186 | drivers/scsi/eata_dma.c | cmd = cp->cmd; |
cmd | 187 | drivers/scsi/eata_dma.c | base = (uint) cmd->host->base; |
cmd | 214 | drivers/scsi/eata_dma.c | "%#.2x \n", irq, base, cmd->pid, cmd->target, |
cmd | 215 | drivers/scsi/eata_dma.c | cmd->lun, eata_stat, hba_stat)); |
cmd | 220 | drivers/scsi/eata_dma.c | && cmd->device->type == TYPE_DISK |
cmd | 221 | drivers/scsi/eata_dma.c | && (HD(cmd)->t_state[cp->cp_channel][cp->cp_id] == RESET)) |
cmd | 224 | drivers/scsi/eata_dma.c | HD(cmd)->t_state[cp->cp_channel][cp->cp_id] = OK; |
cmd | 225 | drivers/scsi/eata_dma.c | if(HD(cmd)->do_latency == TRUE && cp->timestamp) { |
cmd | 229 | drivers/scsi/eata_dma.c | if(HD(cmd)->writes_lat[cp->sizeindex][1] > time) |
cmd | 230 | drivers/scsi/eata_dma.c | HD(cmd)->writes_lat[cp->sizeindex][1] = time; |
cmd | 231 | drivers/scsi/eata_dma.c | if(HD(cmd)->writes_lat[cp->sizeindex][2] < time) |
cmd | 232 | drivers/scsi/eata_dma.c | HD(cmd)->writes_lat[cp->sizeindex][2] = time; |
cmd | 233 | drivers/scsi/eata_dma.c | HD(cmd)->writes_lat[cp->sizeindex][3] += time; |
cmd | 234 | drivers/scsi/eata_dma.c | HD(cmd)->writes_lat[cp->sizeindex][0]++; |
cmd | 236 | drivers/scsi/eata_dma.c | if(HD(cmd)->reads_lat[cp->sizeindex][1] > time) |
cmd | 237 | drivers/scsi/eata_dma.c | HD(cmd)->reads_lat[cp->sizeindex][1] = time; |
cmd | 238 | drivers/scsi/eata_dma.c | if(HD(cmd)->reads_lat[cp->sizeindex][2] < time) |
cmd | 239 | drivers/scsi/eata_dma.c | HD(cmd)->reads_lat[cp->sizeindex][2] = time; |
cmd | 240 | drivers/scsi/eata_dma.c | HD(cmd)->reads_lat[cp->sizeindex][3] += time; |
cmd | 241 | drivers/scsi/eata_dma.c | HD(cmd)->reads_lat[cp->sizeindex][0]++; |
cmd | 246 | drivers/scsi/eata_dma.c | && cmd->device->type == TYPE_DISK |
cmd | 247 | drivers/scsi/eata_dma.c | && (cmd->sense_buffer[2] & 0xf) == RECOVERED_ERROR) |
cmd | 251 | drivers/scsi/eata_dma.c | HD(cmd)->t_timeout[cp->cp_channel][cp->cp_id] = OK; |
cmd | 257 | drivers/scsi/eata_dma.c | if (HD(cmd)->t_timeout[cp->cp_channel][cp->cp_id] > 1) |
cmd | 261 | drivers/scsi/eata_dma.c | HD(cmd)->t_timeout[cp->cp_channel][cp->cp_id]++; |
cmd | 266 | drivers/scsi/eata_dma.c | if (cmd->device->type != TYPE_TAPE) |
cmd | 272 | drivers/scsi/eata_dma.c | HD(cmd)->t_state[cp->cp_channel][i] = RESET; |
cmd | 286 | drivers/scsi/eata_dma.c | cmd->result = result | (scsi_stat << 1); |
cmd | 290 | drivers/scsi/eata_dma.c | || cmd->scsi_done == NULL || cmd->device->id == 7) |
cmd | 294 | drivers/scsi/eata_dma.c | cmd->device->channel, cmd->device->id, cmd->device->lun, |
cmd | 295 | drivers/scsi/eata_dma.c | cmd->pid, eata_stat, hba_stat, scsi_stat, |
cmd | 296 | drivers/scsi/eata_dma.c | cmd->sense_buffer[2] & 0xf, cmd->result); |
cmd | 301 | drivers/scsi/eata_dma.c | cmd->scsi_done(cmd); |
cmd | 346 | drivers/scsi/eata_dma.c | int eata_queue(Scsi_Cmnd * cmd, void (* done) (Scsi_Cmnd *)) |
cmd | 360 | drivers/scsi/eata_dma.c | hd = HD(cmd); |
cmd | 361 | drivers/scsi/eata_dma.c | sh = cmd->host; |
cmd | 404 | drivers/scsi/eata_dma.c | cmd->pid, cmd->target, cmd->lun, y)); |
cmd | 412 | drivers/scsi/eata_dma.c | if (cmd->cmnd[0] == WRITE_6 || cmd->cmnd[0] == WRITE_10 || |
cmd | 413 | drivers/scsi/eata_dma.c | cmd->cmnd[0] == WRITE_12 || cmd->cmnd[0] == READ_6 || |
cmd | 414 | drivers/scsi/eata_dma.c | cmd->cmnd[0] == READ_10 || cmd->cmnd[0] == READ_12) { |
cmd | 417 | drivers/scsi/eata_dma.c | switch(cmd->cmnd[0]) { |
cmd | 420 | drivers/scsi/eata_dma.c | x = cmd->cmnd[4]/2; |
cmd | 424 | drivers/scsi/eata_dma.c | sho = (short *) &cmd->cmnd[7]; |
cmd | 429 | drivers/scsi/eata_dma.c | lon = (long *) &cmd->cmnd[6]; |
cmd | 437 | drivers/scsi/eata_dma.c | if (cmd->cmnd[0] == WRITE_6 || cmd->cmnd[0] == WRITE_10 || |
cmd | 438 | drivers/scsi/eata_dma.c | cmd->cmnd[0] == WRITE_12){ |
cmd | 443 | drivers/scsi/eata_dma.c | cmd->scsi_done = (void *)done; |
cmd | 445 | drivers/scsi/eata_dma.c | switch (cmd->cmnd[0]) { |
cmd | 467 | drivers/scsi/eata_dma.c | if (cmd->target == sh->this_id) |
cmd | 470 | drivers/scsi/eata_dma.c | if (cmd->use_sg) { |
cmd | 480 | drivers/scsi/eata_dma.c | cp->cp_datalen = htonl(cmd->use_sg * sizeof(struct eata_sg_list)); |
cmd | 481 | drivers/scsi/eata_dma.c | sl=(struct scatterlist *)cmd->request_buffer; |
cmd | 482 | drivers/scsi/eata_dma.c | for(i = 0; i < cmd->use_sg; i++, sl++){ |
cmd | 488 | drivers/scsi/eata_dma.c | cp->cp_datalen = htonl(cmd->request_bufflen); |
cmd | 489 | drivers/scsi/eata_dma.c | cp->cp_dataDMA = htonl(virt_to_bus(cmd->request_buffer)); |
cmd | 493 | drivers/scsi/eata_dma.c | cp->cp_reqDMA = htonl(virt_to_bus(cmd->sense_buffer)); |
cmd | 494 | drivers/scsi/eata_dma.c | cp->reqlen = sizeof(cmd->sense_buffer); |
cmd | 496 | drivers/scsi/eata_dma.c | cp->cp_id = cmd->target; |
cmd | 497 | drivers/scsi/eata_dma.c | cp->cp_channel = cmd->channel; |
cmd | 498 | drivers/scsi/eata_dma.c | cp->cp_lun = cmd->lun; |
cmd | 501 | drivers/scsi/eata_dma.c | memcpy(cp->cp_cdb, cmd->cmnd, cmd->cmd_len); |
cmd | 507 | drivers/scsi/eata_dma.c | cp->cmd = cmd; |
cmd | 508 | drivers/scsi/eata_dma.c | cmd->host_scribble = (char *)&hd->ccb[y]; |
cmd | 511 | drivers/scsi/eata_dma.c | cmd->result = DID_BUS_BUSY << 16; |
cmd | 514 | drivers/scsi/eata_dma.c | "returning DID_BUS_BUSY\n",cmd->target, cmd->pid)); |
cmd | 515 | drivers/scsi/eata_dma.c | done(cmd); |
cmd | 521 | drivers/scsi/eata_dma.c | "slot %d irq %d\n", (s32)sh->base, cmd->pid, |
cmd | 522 | drivers/scsi/eata_dma.c | cmd->target, cmd->lun, y, sh->irq)); |
cmd | 529 | drivers/scsi/eata_dma.c | int eata_abort(Scsi_Cmnd * cmd) |
cmd | 538 | drivers/scsi/eata_dma.c | " reason %x\n", cmd->pid, cmd->target, cmd->lun, |
cmd | 539 | drivers/scsi/eata_dma.c | cmd->abort_reason)); |
cmd | 542 | drivers/scsi/eata_dma.c | while (inb((u32)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY) { |
cmd | 550 | drivers/scsi/eata_dma.c | if (CD(cmd)->status == RESET) { |
cmd | 556 | drivers/scsi/eata_dma.c | if (CD(cmd)->status == LOCKED) { |
cmd | 562 | drivers/scsi/eata_dma.c | if (CD(cmd)->status == USED) { |
cmd | 567 | drivers/scsi/eata_dma.c | if (CD(cmd)->status == FREE) { |
cmd | 576 | drivers/scsi/eata_dma.c | int eata_reset(Scsi_Cmnd * cmd) |
cmd | 589 | drivers/scsi/eata_dma.c | " reason %x\n", cmd->pid, cmd->target, cmd->lun, |
cmd | 590 | drivers/scsi/eata_dma.c | cmd->abort_reason)); |
cmd | 592 | drivers/scsi/eata_dma.c | if (HD(cmd)->state == RESET) { |
cmd | 599 | drivers/scsi/eata_dma.c | while (inb((u32)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY) |
cmd | 609 | drivers/scsi/eata_dma.c | HD(cmd)->t_state[x][z] = RESET; |
cmd | 610 | drivers/scsi/eata_dma.c | HD(cmd)->t_timeout[x][z] = NO_TIMEOUT; |
cmd | 614 | drivers/scsi/eata_dma.c | for (x = 0; x < cmd->host->can_queue; x++) { |
cmd | 615 | drivers/scsi/eata_dma.c | if (HD(cmd)->ccb[x].status == FREE) |
cmd | 618 | drivers/scsi/eata_dma.c | if (HD(cmd)->ccb[x].status == LOCKED) { |
cmd | 619 | drivers/scsi/eata_dma.c | HD(cmd)->ccb[x].status = FREE; |
cmd | 624 | drivers/scsi/eata_dma.c | sp = HD(cmd)->ccb[x].cmd; |
cmd | 625 | drivers/scsi/eata_dma.c | HD(cmd)->ccb[x].status = RESET; |
cmd | 633 | drivers/scsi/eata_dma.c | if (sp == cmd) |
cmd | 638 | drivers/scsi/eata_dma.c | inb((u32) (cmd->host->base) + HA_RSTATUS); /* This might cause trouble */ |
cmd | 639 | drivers/scsi/eata_dma.c | eata_send_command(0, (u32) cmd->host->base, EATA_CMD_RESET); |
cmd | 642 | drivers/scsi/eata_dma.c | HD(cmd)->state = RESET; |
cmd | 657 | drivers/scsi/eata_dma.c | for (x = 0; x < cmd->host->can_queue; x++) { |
cmd | 660 | drivers/scsi/eata_dma.c | if (HD(cmd)->ccb[x].status != RESET) |
cmd | 663 | drivers/scsi/eata_dma.c | sp = HD(cmd)->ccb[x].cmd; |
cmd | 667 | drivers/scsi/eata_dma.c | HD(cmd)->ccb[x].status = LOCKED; |
cmd | 677 | drivers/scsi/eata_dma.c | HD(cmd)->state = FALSE; |
cmd | 92 | drivers/scsi/eata_generic.h | #define HD(cmd) ((hostdata *)&(cmd->host->hostdata)) |
cmd | 93 | drivers/scsi/eata_generic.h | #define CD(cmd) ((struct eata_ccb *)(cmd->host_scribble)) |
cmd | 315 | drivers/scsi/eata_generic.h | Scsi_Cmnd *cmd; /* address of cmd */ |
cmd | 130 | drivers/scsi/eata_pio.c | Scsi_Cmnd *cmd; |
cmd | 154 | drivers/scsi/eata_pio.c | cmd = cp->cmd; |
cmd | 155 | drivers/scsi/eata_pio.c | base = (uint) cmd->host->base; |
cmd | 164 | drivers/scsi/eata_pio.c | while ((cmd->SCp.Status)&&((z>0)||(odd))) |
cmd | 168 | drivers/scsi/eata_pio.c | *(cmd->SCp.ptr)=zwickel>>8; |
cmd | 169 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,1); |
cmd | 172 | drivers/scsi/eata_pio.c | x=min(z,cmd->SCp.this_residual/2); |
cmd | 173 | drivers/scsi/eata_pio.c | insw(base+HA_RDATA,cmd->SCp.ptr,x); |
cmd | 175 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,2*x); |
cmd | 176 | drivers/scsi/eata_pio.c | if ((z>0)&&(cmd->SCp.this_residual==1)) |
cmd | 179 | drivers/scsi/eata_pio.c | *(cmd->SCp.ptr)=zwickel&0xff; |
cmd | 180 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,1); z--; |
cmd | 192 | drivers/scsi/eata_pio.c | while ((cmd->SCp.Status)&&((z>0)||(odd))) |
cmd | 196 | drivers/scsi/eata_pio.c | zwickel+=*(cmd->SCp.ptr)<<8; |
cmd | 197 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,1); |
cmd | 202 | drivers/scsi/eata_pio.c | x=min(z,cmd->SCp.this_residual/2); |
cmd | 203 | drivers/scsi/eata_pio.c | outsw(base+HA_RDATA,cmd->SCp.ptr,x); |
cmd | 205 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,2*x); |
cmd | 206 | drivers/scsi/eata_pio.c | if ((z>0)&&(cmd->SCp.this_residual==1)) |
cmd | 208 | drivers/scsi/eata_pio.c | zwickel=*(cmd->SCp.ptr); |
cmd | 210 | drivers/scsi/eata_pio.c | IncStat(&cmd->SCp,1); |
cmd | 233 | drivers/scsi/eata_pio.c | cmd->result=(DID_OK<<16); |
cmd | 237 | drivers/scsi/eata_pio.c | cmd->result=(DID_OK<<16)+0x02; |
cmd | 238 | drivers/scsi/eata_pio.c | else cmd->result=(DID_NO_CONNECT<<16); |
cmd | 251 | drivers/scsi/eata_pio.c | printk("stat: %#.2x, result: %#.8x\n", stat, cmd->result); |
cmd | 258 | drivers/scsi/eata_pio.c | cmd->scsi_done(cmd); |
cmd | 279 | drivers/scsi/eata_pio.c | int eata_pio_queue(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *)) |
cmd | 294 | drivers/scsi/eata_pio.c | hd = HD(cmd); |
cmd | 295 | drivers/scsi/eata_pio.c | sh = cmd->host; |
cmd | 316 | drivers/scsi/eata_pio.c | memset(cmd->sense_buffer, 0, sizeof(cmd->sense_buffer)); |
cmd | 321 | drivers/scsi/eata_pio.c | cmd->pid, cmd->target, cmd->lun, y)); |
cmd | 324 | drivers/scsi/eata_pio.c | cmd->scsi_done = (void *)done; |
cmd | 326 | drivers/scsi/eata_pio.c | switch (cmd->cmnd[0]) { |
cmd | 345 | drivers/scsi/eata_pio.c | cp->Interpret = (cmd->target == hd->hostid); |
cmd | 346 | drivers/scsi/eata_pio.c | cp->cp_datalen = htonl((ulong)cmd->request_bufflen); |
cmd | 351 | drivers/scsi/eata_pio.c | cp->cp_id = cmd->target; |
cmd | 352 | drivers/scsi/eata_pio.c | cp->cp_lun = cmd->lun; |
cmd | 355 | drivers/scsi/eata_pio.c | memcpy(cp->cp_cdb, cmd->cmnd, COMMAND_SIZE(*cmd->cmnd)); |
cmd | 360 | drivers/scsi/eata_pio.c | cp->cmd = cmd; |
cmd | 361 | drivers/scsi/eata_pio.c | cmd->host_scribble = (char *)&hd->ccb[y]; |
cmd | 363 | drivers/scsi/eata_pio.c | if (cmd->use_sg == 0) |
cmd | 365 | drivers/scsi/eata_pio.c | cmd->SCp.buffers_residual=1; |
cmd | 366 | drivers/scsi/eata_pio.c | cmd->SCp.ptr = cmd->request_buffer; |
cmd | 367 | drivers/scsi/eata_pio.c | cmd->SCp.this_residual = cmd->request_bufflen; |
cmd | 368 | drivers/scsi/eata_pio.c | cmd->SCp.buffer = NULL; |
cmd | 370 | drivers/scsi/eata_pio.c | cmd->SCp.buffer = cmd->request_buffer; |
cmd | 371 | drivers/scsi/eata_pio.c | cmd->SCp.buffers_residual = cmd->use_sg; |
cmd | 372 | drivers/scsi/eata_pio.c | cmd->SCp.ptr = cmd->SCp.buffer->address; |
cmd | 373 | drivers/scsi/eata_pio.c | cmd->SCp.this_residual = cmd->SCp.buffer->length; |
cmd | 375 | drivers/scsi/eata_pio.c | cmd->SCp.Status = (cmd->SCp.this_residual != 0); /* TRUE as long as bytes |
cmd | 380 | drivers/scsi/eata_pio.c | cmd->result = DID_BUS_BUSY << 16; |
cmd | 382 | drivers/scsi/eata_pio.c | "DID_BUS_BUSY, done.\n", cmd->target, cmd->pid); |
cmd | 383 | drivers/scsi/eata_pio.c | done(cmd); |
cmd | 394 | drivers/scsi/eata_pio.c | "slot %d irq %d\n", (long)sh->base, cmd->pid, |
cmd | 395 | drivers/scsi/eata_pio.c | cmd->target, cmd->lun, y, sh->irq)); |
cmd | 402 | drivers/scsi/eata_pio.c | int eata_pio_abort(Scsi_Cmnd * cmd) |
cmd | 411 | drivers/scsi/eata_pio.c | " reason %x\n", cmd->pid, cmd->target, cmd->lun, |
cmd | 412 | drivers/scsi/eata_pio.c | cmd->abort_reason)); |
cmd | 416 | drivers/scsi/eata_pio.c | while (inb((uint)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY) |
cmd | 423 | drivers/scsi/eata_pio.c | if (CD(cmd)->status == FREE) { |
cmd | 428 | drivers/scsi/eata_pio.c | if (CD(cmd)->status == USED) { |
cmd | 433 | drivers/scsi/eata_pio.c | if (CD(cmd)->status == RESET) { |
cmd | 439 | drivers/scsi/eata_pio.c | if (CD(cmd)->status == LOCKED) { |
cmd | 449 | drivers/scsi/eata_pio.c | int eata_pio_reset(Scsi_Cmnd * cmd) |
cmd | 460 | drivers/scsi/eata_pio.c | "reason %x\n", cmd->pid, cmd->target, cmd->lun, |
cmd | 461 | drivers/scsi/eata_pio.c | cmd->abort_reason)); |
cmd | 463 | drivers/scsi/eata_pio.c | if (HD(cmd)->state == RESET) { |
cmd | 471 | drivers/scsi/eata_pio.c | HD(cmd)->t_state[0][z] = RESET; |
cmd | 472 | drivers/scsi/eata_pio.c | HD(cmd)->t_timeout[0][z] = NO_TIMEOUT; |
cmd | 477 | drivers/scsi/eata_pio.c | for (x = 0; x < cmd->host->can_queue; x++) { |
cmd | 479 | drivers/scsi/eata_pio.c | if (HD(cmd)->ccb[x].status == FREE) |
cmd | 482 | drivers/scsi/eata_pio.c | sp = HD(cmd)->ccb[x].cmd; |
cmd | 483 | drivers/scsi/eata_pio.c | HD(cmd)->ccb[x].status = RESET; |
cmd | 493 | drivers/scsi/eata_pio.c | outb((uint) cmd->host->base+HA_WCOMMAND, EATA_CMD_RESET); |
cmd | 496 | drivers/scsi/eata_pio.c | HD(cmd)->state = RESET; |
cmd | 504 | drivers/scsi/eata_pio.c | for (x = 0; x < cmd->host->can_queue; x++) { |
cmd | 507 | drivers/scsi/eata_pio.c | if (HD(cmd)->ccb[x].status != RESET) |
cmd | 510 | drivers/scsi/eata_pio.c | sp = HD(cmd)->ccb[x].cmd; |
cmd | 515 | drivers/scsi/eata_pio.c | HD(cmd)->ccb[x].status = FREE; |
cmd | 522 | drivers/scsi/eata_pio.c | HD(cmd)->state = FALSE; |
cmd | 421 | drivers/scsi/in2000.c | unchar *cmd = (unchar *) SCpnt->cmnd; |
cmd | 436 | drivers/scsi/in2000.c | if ( *cmd == TEST_UNIT_READY ) |
cmd | 442 | drivers/scsi/in2000.c | if (*cmd == READ_10 || *cmd == WRITE_10) { |
cmd | 443 | drivers/scsi/in2000.c | i = xscsi2int((cmd+1)); |
cmd | 444 | drivers/scsi/in2000.c | } else if (*cmd == READ_6 || *cmd == WRITE_6) { |
cmd | 445 | drivers/scsi/in2000.c | i = scsi2int((cmd+1)); |
cmd | 452 | drivers/scsi/in2000.c | for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); |
cmd | 456 | drivers/scsi/in2000.c | if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 520 | drivers/scsi/in2000.c | outb(cmd[loop],INDATA); |
cmd | 295 | drivers/scsi/qlogic.c | static void ql_icmd(Scsi_Cmnd * cmd) |
cmd | 329 | drivers/scsi/qlogic.c | outb(cmd->target, qbase + 4); |
cmd | 331 | drivers/scsi/qlogic.c | for (i = 0; i < cmd->cmd_len; i++) |
cmd | 332 | drivers/scsi/qlogic.c | outb(cmd->cmnd[i], qbase + 2); |
cmd | 333 | drivers/scsi/qlogic.c | qlcmd = cmd; |
cmd | 339 | drivers/scsi/qlogic.c | static unsigned int ql_pcmd(Scsi_Cmnd * cmd) |
cmd | 376 | drivers/scsi/qlogic.c | reqlen = cmd->request_bufflen; |
cmd | 386 | drivers/scsi/qlogic.c | if (!cmd->use_sg) |
cmd | 387 | drivers/scsi/qlogic.c | ql_pdma(phase, cmd->request_buffer, cmd->request_bufflen); |
cmd | 389 | drivers/scsi/qlogic.c | sgcount = cmd->use_sg; |
cmd | 390 | drivers/scsi/qlogic.c | sglist = cmd->request_buffer; |
cmd | 474 | drivers/scsi/qlogic.c | static void qlidone(Scsi_Cmnd * cmd) {}; /* null function */ |
cmd | 478 | drivers/scsi/qlogic.c | int qlogic_command(Scsi_Cmnd * cmd) |
cmd | 483 | drivers/scsi/qlogic.c | qlogic_queuecommand(cmd, qlidone); |
cmd | 485 | drivers/scsi/qlogic.c | return cmd->result; |
cmd | 489 | drivers/scsi/qlogic.c | if (cmd->target == qinitid) |
cmd | 491 | drivers/scsi/qlogic.c | ql_icmd(cmd); |
cmd | 494 | drivers/scsi/qlogic.c | return ql_pcmd(cmd); |
cmd | 501 | drivers/scsi/qlogic.c | int qlogic_queuecommand(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *)) |
cmd | 503 | drivers/scsi/qlogic.c | if(cmd->target == qinitid) { |
cmd | 504 | drivers/scsi/qlogic.c | cmd->result = DID_BAD_TARGET << 16; |
cmd | 505 | drivers/scsi/qlogic.c | done(cmd); |
cmd | 509 | drivers/scsi/qlogic.c | cmd->scsi_done = done; |
cmd | 513 | drivers/scsi/qlogic.c | ql_icmd(cmd); |
cmd | 517 | drivers/scsi/qlogic.c | int qlogic_queuecommand(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *)) |
cmd | 650 | drivers/scsi/qlogic.c | int qlogic_abort(Scsi_Cmnd * cmd) |
cmd | 659 | drivers/scsi/qlogic.c | int qlogic_reset(Scsi_Cmnd * cmd) |
cmd | 3122 | drivers/scsi/scsi.c | req->cmd, |
cmd | 100 | drivers/scsi/scsi_debug.c | if (SCpnt->request.cmd != RW) panic ("Wrong operation"); \ |
cmd | 175 | drivers/scsi/scsi_debug.c | unchar *cmd = (unchar *) SCpnt->cmnd; |
cmd | 209 | drivers/scsi/scsi_debug.c | switch(*cmd){ |
cmd | 227 | drivers/scsi/scsi_debug.c | if(cmd[4]) printk("Medium removal inhibited..."); |
cmd | 265 | drivers/scsi/scsi_debug.c | if ((*cmd) == READ_10) |
cmd | 266 | drivers/scsi/scsi_debug.c | block = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); |
cmd | 268 | drivers/scsi/scsi_debug.c | block = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16); |
cmd | 346 | drivers/scsi/scsi_debug.c | memcpy(buff+sizeof(target), cmd, 24); |
cmd | 378 | drivers/scsi/scsi_debug.c | if ((*cmd) == WRITE_10) |
cmd | 379 | drivers/scsi/scsi_debug.c | block = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); |
cmd | 381 | drivers/scsi/scsi_debug.c | block = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16); |
cmd | 400 | drivers/scsi/scsi_debug.c | printk("Unknown command %d\n",*cmd); |
cmd | 104 | drivers/scsi/scsi_ioctl.c | static int ioctl_internal_command(Scsi_Device *dev, char * cmd) |
cmd | 113 | drivers/scsi/scsi_ioctl.c | scsi_do_cmd(SCpnt, cmd, NULL, 0, |
cmd | 122 | drivers/scsi/scsi_ioctl.c | if(cmd[0] == ALLOW_MEDIUM_REMOVAL) dev->lockable = 0; |
cmd | 164 | drivers/scsi/scsi_ioctl.c | char cmd[12]; |
cmd | 224 | drivers/scsi/scsi_ioctl.c | memcpy_fromfs ((void *) cmd, cmd_in, cmdlen); |
cmd | 236 | drivers/scsi/scsi_ioctl.c | cmd[1] = ( cmd[1] & 0x1f ) | (dev->lun << 5); |
cmd | 245 | drivers/scsi/scsi_ioctl.c | scsi_do_cmd(SCpnt, cmd, buf, needed, scsi_ioctl_done, MAX_TIMEOUT, |
cmd | 282 | drivers/scsi/scsi_ioctl.c | printk("%02x ", cmd[i]); |
cmd | 300 | drivers/scsi/scsi_ioctl.c | int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) |
cmd | 308 | drivers/scsi/scsi_ioctl.c | switch (cmd) { |
cmd | 370 | drivers/scsi/scsi_ioctl.c | int kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) { |
cmd | 375 | drivers/scsi/scsi_ioctl.c | tmp = scsi_ioctl (dev, cmd, arg); |
cmd | 16 | drivers/scsi/scsi_ioctl.h | extern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
cmd | 17 | drivers/scsi/scsi_ioctl.h | extern int kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
cmd | 249 | drivers/scsi/sd.c | if (SCpnt->request.cmd == READ) |
cmd | 264 | drivers/scsi/sd.c | if (SCpnt->request.cmd == READ) |
cmd | 509 | drivers/scsi/sd.c | unsigned char cmd[10]; |
cmd | 576 | drivers/scsi/sd.c | switch (SCpnt->request.cmd) |
cmd | 584 | drivers/scsi/sd.c | cmd[0] = WRITE_6; |
cmd | 587 | drivers/scsi/sd.c | cmd[0] = READ_6; |
cmd | 590 | drivers/scsi/sd.c | panic ("Unknown sd command %d\n", SCpnt->request.cmd); |
cmd | 808 | drivers/scsi/sd.c | if (SCpnt->request.cmd == WRITE) |
cmd | 830 | drivers/scsi/sd.c | if (SCpnt->request.cmd == WRITE) |
cmd | 837 | drivers/scsi/sd.c | (SCpnt->request.cmd == WRITE) ? "writing" : "reading", |
cmd | 841 | drivers/scsi/sd.c | cmd[1] = (SCpnt->lun << 5) & 0xe0; |
cmd | 860 | drivers/scsi/sd.c | cmd[0] += READ_10 - READ_6 ; |
cmd | 861 | drivers/scsi/sd.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
cmd | 862 | drivers/scsi/sd.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
cmd | 863 | drivers/scsi/sd.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
cmd | 864 | drivers/scsi/sd.c | cmd[5] = (unsigned char) block & 0xff; |
cmd | 865 | drivers/scsi/sd.c | cmd[6] = cmd[9] = 0; |
cmd | 866 | drivers/scsi/sd.c | cmd[7] = (unsigned char) (this_count >> 8) & 0xff; |
cmd | 867 | drivers/scsi/sd.c | cmd[8] = (unsigned char) this_count & 0xff; |
cmd | 874 | drivers/scsi/sd.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
cmd | 875 | drivers/scsi/sd.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
cmd | 876 | drivers/scsi/sd.c | cmd[3] = (unsigned char) block & 0xff; |
cmd | 877 | drivers/scsi/sd.c | cmd[4] = (unsigned char) this_count; |
cmd | 878 | drivers/scsi/sd.c | cmd[5] = 0; |
cmd | 889 | drivers/scsi/sd.c | scsi_do_cmd (SCpnt, (void *) cmd, buff, |
cmd | 954 | drivers/scsi/sd.c | unsigned char cmd[10]; |
cmd | 976 | drivers/scsi/sd.c | cmd[0] = TEST_UNIT_READY; |
cmd | 977 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
cmd | 978 | drivers/scsi/sd.c | memset ((void *) &cmd[2], 0, 8); |
cmd | 989 | drivers/scsi/sd.c | (void *) cmd, (void *) buffer, |
cmd | 1009 | drivers/scsi/sd.c | cmd[0] = START_STOP; |
cmd | 1010 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
cmd | 1011 | drivers/scsi/sd.c | cmd[1] |= 1; /* Return immediately */ |
cmd | 1012 | drivers/scsi/sd.c | memset ((void *) &cmd[2], 0, 8); |
cmd | 1013 | drivers/scsi/sd.c | cmd[4] = 1; /* Start spin cycle */ |
cmd | 1024 | drivers/scsi/sd.c | (void *) cmd, (void *) buffer, |
cmd | 1049 | drivers/scsi/sd.c | cmd[0] = READ_CAPACITY; |
cmd | 1050 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
cmd | 1051 | drivers/scsi/sd.c | memset ((void *) &cmd[2], 0, 8); |
cmd | 1063 | drivers/scsi/sd.c | (void *) cmd, (void *) buffer, |
cmd | 1194 | drivers/scsi/sd.c | memset ((void *) &cmd[0], 0, 8); |
cmd | 1195 | drivers/scsi/sd.c | cmd[0] = MODE_SENSE; |
cmd | 1196 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
cmd | 1197 | drivers/scsi/sd.c | cmd[2] = 1; /* page code 1 ?? */ |
cmd | 1198 | drivers/scsi/sd.c | cmd[4] = 12; |
cmd | 1209 | drivers/scsi/sd.c | (void *) cmd, (void *) buffer, |
cmd | 23 | drivers/scsi/sd_ioctl.c | int sd_ioctl(struct inode * inode, struct file * file, unsigned int cmd, unsigned long arg) |
cmd | 31 | drivers/scsi/sd_ioctl.c | switch (cmd) { |
cmd | 98 | drivers/scsi/sd_ioctl.c | return scsi_ioctl(rscsi_disks[MINOR(dev) >> 4].device , cmd, (void *) arg); |
cmd | 1638 | drivers/scsi/seagate.c | unsigned char buf[256 + sizeof(int) * 2], cmd[6], *data, *page; |
cmd | 1653 | drivers/scsi/seagate.c | cmd[0] = MODE_SENSE; |
cmd | 1654 | drivers/scsi/seagate.c | cmd[1] = (disk->device->lun << 5) & 0xe5; |
cmd | 1655 | drivers/scsi/seagate.c | cmd[2] = 0x04; /* Read page 4, rigid disk geometry page current values */ |
cmd | 1656 | drivers/scsi/seagate.c | cmd[3] = 0; |
cmd | 1657 | drivers/scsi/seagate.c | cmd[4] = 255; |
cmd | 1658 | drivers/scsi/seagate.c | cmd[5] = 0; |
cmd | 1668 | drivers/scsi/seagate.c | memcpy (data, cmd, 6); |
cmd | 1680 | drivers/scsi/seagate.c | cmd[2] = 0x03; /* Read page 3, format page current values */ |
cmd | 1681 | drivers/scsi/seagate.c | memcpy (data, cmd, 6); |
cmd | 321 | drivers/scsi/sr.c | unsigned char *cmd; /* the scsi-command */ |
cmd | 350 | drivers/scsi/sr.c | cmd = rec = &buf[8]; |
cmd | 361 | drivers/scsi/sr.c | cmd[0] = 0xde; |
cmd | 362 | drivers/scsi/sr.c | cmd[1] = 0x03; |
cmd | 363 | drivers/scsi/sr.c | cmd[2] = 0xb0; |
cmd | 397 | drivers/scsi/sr.c | cmd[0] = 0xc7; |
cmd | 398 | drivers/scsi/sr.c | cmd[1] = 3; |
cmd | 433 | drivers/scsi/sr.c | cmd[0] = 0x1a; |
cmd | 434 | drivers/scsi/sr.c | cmd[2] = 1; |
cmd | 435 | drivers/scsi/sr.c | cmd[4] = 12; |
cmd | 454 | drivers/scsi/sr.c | cmd[0] = 0x15; |
cmd | 455 | drivers/scsi/sr.c | cmd[1] = (1 << 4); |
cmd | 456 | drivers/scsi/sr.c | cmd[4] = 12; |
cmd | 457 | drivers/scsi/sr.c | send = &cmd[6]; /* this is a 6-Byte command */ |
cmd | 479 | drivers/scsi/sr.c | cmd[0] = 0x43; /* Read TOC */ |
cmd | 480 | drivers/scsi/sr.c | cmd[8] = 0x0c; |
cmd | 481 | drivers/scsi/sr.c | cmd[9] = 0x40; |
cmd | 643 | drivers/scsi/sr.c | unsigned char cmd[10], *buffer, tries; |
cmd | 684 | drivers/scsi/sr.c | switch (SCpnt->request.cmd) |
cmd | 691 | drivers/scsi/sr.c | cmd[0] = READ_6; |
cmd | 694 | drivers/scsi/sr.c | panic ("Unknown sr command %d\n", SCpnt->request.cmd); |
cmd | 697 | drivers/scsi/sr.c | cmd[1] = (SCpnt->lun << 5) & 0xe0; |
cmd | 872 | drivers/scsi/sr.c | cmd[0] += READ_10 - READ_6 ; |
cmd | 873 | drivers/scsi/sr.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
cmd | 874 | drivers/scsi/sr.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
cmd | 875 | drivers/scsi/sr.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
cmd | 876 | drivers/scsi/sr.c | cmd[5] = (unsigned char) block & 0xff; |
cmd | 877 | drivers/scsi/sr.c | cmd[6] = cmd[9] = 0; |
cmd | 878 | drivers/scsi/sr.c | cmd[7] = (unsigned char) (realcount >> 8) & 0xff; |
cmd | 879 | drivers/scsi/sr.c | cmd[8] = (unsigned char) realcount & 0xff; |
cmd | 889 | drivers/scsi/sr.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
cmd | 890 | drivers/scsi/sr.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
cmd | 891 | drivers/scsi/sr.c | cmd[3] = (unsigned char) block & 0xff; |
cmd | 892 | drivers/scsi/sr.c | cmd[4] = (unsigned char) realcount; |
cmd | 893 | drivers/scsi/sr.c | cmd[5] = 0; |
cmd | 902 | drivers/scsi/sr.c | for(i=0; i<12; i++) printk("%2.2x ", cmd[i]); |
cmd | 921 | drivers/scsi/sr.c | scsi_do_cmd (SCpnt, (void *) cmd, buffer, |
cmd | 976 | drivers/scsi/sr.c | unsigned char cmd[10]; |
cmd | 986 | drivers/scsi/sr.c | cmd[0] = READ_CAPACITY; |
cmd | 987 | drivers/scsi/sr.c | cmd[1] = (scsi_CDs[i].device->lun << 5) & 0xe0; |
cmd | 988 | drivers/scsi/sr.c | memset ((void *) &cmd[2], 0, 8); |
cmd | 999 | drivers/scsi/sr.c | (void *) cmd, (void *) buffer, |
cmd | 87 | drivers/scsi/sr_ioctl.c | int sr_ioctl(struct inode * inode, struct file * file, unsigned int cmd, unsigned long arg) |
cmd | 99 | drivers/scsi/sr_ioctl.c | switch (cmd) |
cmd | 468 | drivers/scsi/sr_ioctl.c | return scsi_ioctl(scsi_CDs[target].device,cmd,(void *) arg); |
cmd | 230 | drivers/scsi/st.c | st_do_scsi(Scsi_Cmnd *SCpnt, Scsi_Tape *STp, unsigned char *cmd, int bytes, |
cmd | 239 | drivers/scsi/st.c | cmd[1] |= (SCpnt->lun << 5) & 0xe0; |
cmd | 245 | drivers/scsi/st.c | scsi_do_cmd(SCpnt, (void *)cmd, (STp->buffer)->b_data, bytes, |
cmd | 296 | drivers/scsi/st.c | unsigned char cmd[10]; |
cmd | 298 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 299 | drivers/scsi/st.c | cmd[1] = 0x01; /* Space FileMarks */ |
cmd | 300 | drivers/scsi/st.c | cmd[2] = cmd[3] = cmd[4] = 0xff; /* -1 filemarks */ |
cmd | 301 | drivers/scsi/st.c | cmd[5] = 0; |
cmd | 303 | drivers/scsi/st.c | SCpnt = st_do_scsi(NULL, STp, cmd, 0, ST_TIMEOUT, MAX_RETRIES); |
cmd | 325 | drivers/scsi/st.c | unsigned char cmd[10]; |
cmd | 357 | drivers/scsi/st.c | memset(cmd, 0, 10); |
cmd | 358 | drivers/scsi/st.c | cmd[0] = WRITE_6; |
cmd | 359 | drivers/scsi/st.c | cmd[1] = 1; |
cmd | 361 | drivers/scsi/st.c | cmd[2] = blks >> 16; |
cmd | 362 | drivers/scsi/st.c | cmd[3] = blks >> 8; |
cmd | 363 | drivers/scsi/st.c | cmd[4] = blks; |
cmd | 365 | drivers/scsi/st.c | SCpnt = st_do_scsi(NULL, STp, cmd, transfer, ST_TIMEOUT, MAX_WRITE_RETRIES); |
cmd | 457 | drivers/scsi/st.c | unsigned char cmd[10]; |
cmd | 504 | drivers/scsi/st.c | memset ((void *) &cmd[0], 0, 10); |
cmd | 505 | drivers/scsi/st.c | cmd[0] = TEST_UNIT_READY; |
cmd | 507 | drivers/scsi/st.c | SCpnt = st_do_scsi(NULL, STp, cmd, 0, ST_LONG_TIMEOUT, MAX_READY_RETRIES); |
cmd | 514 | drivers/scsi/st.c | memset ((void *) &cmd[0], 0, 10); |
cmd | 515 | drivers/scsi/st.c | cmd[0] = TEST_UNIT_READY; |
cmd | 517 | drivers/scsi/st.c | SCpnt = st_do_scsi(SCpnt, STp, cmd, 0, ST_LONG_TIMEOUT, MAX_READY_RETRIES); |
cmd | 547 | drivers/scsi/st.c | memset ((void *) &cmd[0], 0, 10); |
cmd | 548 | drivers/scsi/st.c | cmd[0] = READ_BLOCK_LIMITS; |
cmd | 550 | drivers/scsi/st.c | SCpnt = st_do_scsi(SCpnt, STp, cmd, 6, ST_TIMEOUT, MAX_READY_RETRIES); |
cmd | 571 | drivers/scsi/st.c | memset ((void *) &cmd[0], 0, 10); |
cmd | 572 | drivers/scsi/st.c | cmd[0] = MODE_SENSE; |
cmd | 573 | drivers/scsi/st.c | cmd[4] = 12; |
cmd | 575 | drivers/scsi/st.c | SCpnt = st_do_scsi(SCpnt, STp, cmd, 12, ST_TIMEOUT, MAX_READY_RETRIES); |
cmd | 662 | drivers/scsi/st.c | static unsigned char cmd[10]; |
cmd | 686 | drivers/scsi/st.c | memset(cmd, 0, 10); |
cmd | 687 | drivers/scsi/st.c | cmd[0] = WRITE_FILEMARKS; |
cmd | 688 | drivers/scsi/st.c | cmd[4] = 1 + STp->two_fm; |
cmd | 690 | drivers/scsi/st.c | SCpnt = st_do_scsi(NULL, STp, cmd, 0, ST_TIMEOUT, MAX_WRITE_RETRIES); |
cmd | 710 | drivers/scsi/st.c | dev, cmd[4]); |
cmd | 749 | drivers/scsi/st.c | static unsigned char cmd[10]; |
cmd | 829 | drivers/scsi/st.c | memset(cmd, 0, 10); |
cmd | 830 | drivers/scsi/st.c | cmd[0] = WRITE_6; |
cmd | 831 | drivers/scsi/st.c | cmd[1] = (STp->block_size != 0); |
cmd | 859 | drivers/scsi/st.c | cmd[2] = blks >> 16; |
cmd | 860 | drivers/scsi/st.c | cmd[3] = blks >> 8; |
cmd | 861 | drivers/scsi/st.c | cmd[4] = blks; |
cmd | 863 | drivers/scsi/st.c | SCpnt = st_do_scsi(SCpnt, STp, cmd, transfer, ST_TIMEOUT, MAX_WRITE_RETRIES); |
cmd | 972 | drivers/scsi/st.c | cmd[2] = blks >> 16; |
cmd | 973 | drivers/scsi/st.c | cmd[3] = blks >> 8; |
cmd | 974 | drivers/scsi/st.c | cmd[4] = blks; |
cmd | 984 | drivers/scsi/st.c | (void *) cmd, (STp->buffer)->b_data, |
cmd | 1002 | drivers/scsi/st.c | static unsigned char cmd[10]; |
cmd | 1055 | drivers/scsi/st.c | memset(cmd, 0, 10); |
cmd | 1056 | drivers/scsi/st.c | cmd[0] = READ_6; |
cmd | 1057 | drivers/scsi/st.c | cmd[1] = (STp->block_size != 0); |
cmd | 1073 | drivers/scsi/st.c | cmd[2] = blks >> 16; |
cmd | 1074 | drivers/scsi/st.c | cmd[3] = blks >> 8; |
cmd | 1075 | drivers/scsi/st.c | cmd[4] = blks; |
cmd | 1077 | drivers/scsi/st.c | SCpnt = st_do_scsi(SCpnt, STp, cmd, bytes, ST_TIMEOUT, MAX_RETRIES); |
cmd | 1292 | drivers/scsi/st.c | unsigned char cmd[10]; |
cmd | 1305 | drivers/scsi/st.c | memset(cmd, 0, 10); |
cmd | 1310 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1311 | drivers/scsi/st.c | cmd[1] = 0x01; /* Space FileMarks */ |
cmd | 1312 | drivers/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 1313 | drivers/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 1314 | drivers/scsi/st.c | cmd[4] = arg; |
cmd | 1318 | drivers/scsi/st.c | dev, cmd[2] * 65536 + cmd[3] * 256 + cmd[4]); |
cmd | 1327 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1328 | drivers/scsi/st.c | cmd[1] = 0x01; /* Space FileMarks */ |
cmd | 1330 | drivers/scsi/st.c | cmd[2] = (ltmp >> 16); |
cmd | 1331 | drivers/scsi/st.c | cmd[3] = (ltmp >> 8); |
cmd | 1332 | drivers/scsi/st.c | cmd[4] = ltmp; |
cmd | 1335 | drivers/scsi/st.c | if (cmd[2] & 0x80) |
cmd | 1337 | drivers/scsi/st.c | ltmp = ltmp | (cmd[2] << 16) | (cmd[3] << 8) | cmd[4]; |
cmd | 1348 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1349 | drivers/scsi/st.c | cmd[1] = 0x00; /* Space Blocks */ |
cmd | 1350 | drivers/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 1351 | drivers/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 1352 | drivers/scsi/st.c | cmd[4] = arg; |
cmd | 1356 | drivers/scsi/st.c | cmd[2] * 65536 + cmd[3] * 256 + cmd[4]); |
cmd | 1363 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1364 | drivers/scsi/st.c | cmd[1] = 0x00; /* Space Blocks */ |
cmd | 1366 | drivers/scsi/st.c | cmd[2] = (ltmp >> 16); |
cmd | 1367 | drivers/scsi/st.c | cmd[3] = (ltmp >> 8); |
cmd | 1368 | drivers/scsi/st.c | cmd[4] = ltmp; |
cmd | 1371 | drivers/scsi/st.c | if (cmd[2] & 0x80) |
cmd | 1373 | drivers/scsi/st.c | ltmp = ltmp | (cmd[2] << 16) | (cmd[3] << 8) | cmd[4]; |
cmd | 1382 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1383 | drivers/scsi/st.c | cmd[1] = 0x04; /* Space Setmarks */ |
cmd | 1384 | drivers/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 1385 | drivers/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 1386 | drivers/scsi/st.c | cmd[4] = arg; |
cmd | 1390 | drivers/scsi/st.c | cmd[2] * 65536 + cmd[3] * 256 + cmd[4]); |
cmd | 1398 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1399 | drivers/scsi/st.c | cmd[1] = 0x04; /* Space Setmarks */ |
cmd | 1401 | drivers/scsi/st.c | cmd[2] = (ltmp >> 16); |
cmd | 1402 | drivers/scsi/st.c | cmd[3] = (ltmp >> 8); |
cmd | 1403 | drivers/scsi/st.c | cmd[4] = ltmp; |
cmd | 1406 | drivers/scsi/st.c | if (cmd[2] & 0x80) |
cmd | 1408 | drivers/scsi/st.c | ltmp = ltmp | (cmd[2] << 16) | (cmd[3] << 8) | cmd[4]; |
cmd | 1422 | drivers/scsi/st.c | cmd[0] = WRITE_FILEMARKS; |
cmd | 1424 | drivers/scsi/st.c | cmd[1] = 2; |
cmd | 1425 | drivers/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 1426 | drivers/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 1427 | drivers/scsi/st.c | cmd[4] = arg; |
cmd | 1433 | drivers/scsi/st.c | cmd[2] * 65536 + cmd[3] * 256 + cmd[4]); |
cmd | 1436 | drivers/scsi/st.c | cmd[2] * 65536 + cmd[3] * 256 + cmd[4]); |
cmd | 1445 | drivers/scsi/st.c | cmd[0] = REZERO_UNIT; |
cmd | 1447 | 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[4] |= 1; |
cmd | 1463 | drivers/scsi/st.c | cmd[1] = 1; /* Don't wait for completion */ |
cmd | 1482 | drivers/scsi/st.c | cmd[0] = START_STOP; |
cmd | 1484 | drivers/scsi/st.c | cmd[1] = 1; /* Don't wait for completion */ |
cmd | 1487 | drivers/scsi/st.c | cmd[4] = 3; |
cmd | 1508 | drivers/scsi/st.c | cmd[0] = SPACE; |
cmd | 1509 | drivers/scsi/st.c | cmd[1] = 3; |
cmd | 1520 | drivers/scsi/st.c | cmd[0] = ERASE; |
cmd | 1521 | drivers/scsi/st.c | cmd[1] = 1; /* To the end of tape */ |
cmd | 1523 | drivers/scsi/st.c | cmd[1] |= 2; /* Don't wait for completion */ |
cmd | 1535 | drivers/scsi/st.c | cmd[0] = ALLOW_MEDIUM_REMOVAL; |
cmd | 1536 | drivers/scsi/st.c | cmd[4] = SCSI_REMOVAL_PREVENT; |
cmd | 1543 | drivers/scsi/st.c | cmd[0] = ALLOW_MEDIUM_REMOVAL; |
cmd | 1544 | drivers/scsi/st.c | cmd[4] = SCSI_REMOVAL_ALLOW; |
cmd | 1552 | drivers/scsi/st.c | cmd[0] = QFA_SEEK_BLOCK; |
cmd | 1553 | drivers/scsi/st.c | cmd[2] = (arg >> 16); |
cmd | 1554 | drivers/scsi/st.c | cmd[3] = (arg >> 8); |
cmd | 1555 | drivers/scsi/st.c | cmd[4] = arg; |
cmd | 1556 | drivers/scsi/st.c | cmd[5] = 0; |
cmd | 1559 | drivers/scsi/st.c | cmd[0] = SEEK_10; |
cmd | 1560 | drivers/scsi/st.c | cmd[1] = 4; |
cmd | 1561 | drivers/scsi/st.c | cmd[3] = (arg >> 24); |
cmd | 1562 | drivers/scsi/st.c | cmd[4] = (arg >> 16); |
cmd | 1563 | drivers/scsi/st.c | cmd[5] = (arg >> 8); |
cmd | 1564 | drivers/scsi/st.c | cmd[6] = arg; |
cmd | 1567 | drivers/scsi/st.c | cmd[1] |= 1; /* Don't wait for completion */ |
cmd | 1589 | drivers/scsi/st.c | cmd[0] = MODE_SELECT; |
cmd | 1590 | drivers/scsi/st.c | cmd[4] = datalen = 12; |
cmd | 1631 | drivers/scsi/st.c | SCpnt = st_do_scsi(NULL, STp, cmd, datalen, timeout, MAX_RETRIES); |
cmd | 578 | drivers/scsi/wd7000.c | static inline int command_out(Adapter *host, unchar *cmd, int len) |
cmd | 583 | drivers/scsi/wd7000.c | outb(*cmd, host->iobase+ASC_COMMAND); |
cmd | 586 | drivers/scsi/wd7000.c | cmd++; |
cmd | 121 | drivers/sound/ad1848.c | static int ad1848_ioctl (int dev, unsigned int cmd, caddr_t arg, int local); |
cmd | 448 | drivers/sound/ad1848.c | ad1848_mixer_ioctl (int dev, unsigned int cmd, caddr_t arg) |
cmd | 461 | drivers/sound/ad1848.c | if (((cmd >> 8) & 0xff) == 'M') |
cmd | 464 | drivers/sound/ad1848.c | if (_IOC_DIR (cmd) & _IOC_WRITE) |
cmd | 465 | drivers/sound/ad1848.c | switch (cmd & 0xff) |
cmd | 472 | drivers/sound/ad1848.c | return snd_ioctl_return ((int *) arg, ad1848_mixer_set (devc, cmd & 0xff, get_fs_long ((long *) arg))); |
cmd | 475 | drivers/sound/ad1848.c | switch (cmd & 0xff) /* |
cmd | 501 | drivers/sound/ad1848.c | return snd_ioctl_return ((int *) arg, ad1848_mixer_get (devc, cmd & 0xff)); |
cmd | 769 | drivers/sound/ad1848.c | ad1848_ioctl (int dev, unsigned int cmd, caddr_t arg, int local) |
cmd | 773 | 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 | 339 | drivers/sound/audio.c | unsigned int cmd, caddr_t arg) |
cmd | 344 | drivers/sound/audio.c | if (((cmd >> 8) & 0xff) == 'C') |
cmd | 347 | drivers/sound/audio.c | return audio_devs[dev]->coproc->ioctl (audio_devs[dev]->coproc->devc, cmd, arg, 0); |
cmd | 354 | drivers/sound/audio.c | switch (cmd) |
cmd | 358 | drivers/sound/audio.c | return DMAbuf_ioctl (dev, cmd, arg, 0); |
cmd | 368 | drivers/sound/audio.c | return DMAbuf_ioctl (dev, cmd, arg, 0); |
cmd | 385 | drivers/sound/audio.c | int err = DMAbuf_ioctl (dev, cmd, (caddr_t) & info, 1); |
cmd | 403 | drivers/sound/audio.c | int err = DMAbuf_ioctl (dev, cmd, (caddr_t) & info, 1); |
cmd | 444 | drivers/sound/audio.c | return DMAbuf_ioctl (dev, cmd, arg, 0); |
cmd | 1518 | drivers/sound/configure.c | char cmd[200]; |
cmd | 1520 | drivers/sound/configure.c | sprintf (cmd, "cp local.h %s", oldconf); |
cmd | 1523 | drivers/sound/configure.c | if (system (cmd) != 0) |
cmd | 1524 | drivers/sound/configure.c | perror (cmd); |
cmd | 138 | drivers/sound/dev_table.h | int (*ioctl) (void *devc, unsigned int cmd, caddr_t arg, int local); |
cmd | 160 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, caddr_t arg, int local); |
cmd | 183 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, caddr_t arg); |
cmd | 194 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, caddr_t arg); |
cmd | 238 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, caddr_t arg); |
cmd | 264 | drivers/sound/dev_table.h | int (*ioctl) (int dev, unsigned int cmd, caddr_t arg); |
cmd | 721 | drivers/sound/dmabuf.c | DMAbuf_ioctl (int dev, unsigned int cmd, caddr_t arg, int local) |
cmd | 726 | drivers/sound/dmabuf.c | switch (cmd) |
cmd | 794 | drivers/sound/dmabuf.c | if (cmd == SNDCTL_DSP_GETISPACE && audio_devs[dev]->flags & DMA_DUPLEX) |
cmd | 801 | drivers/sound/dmabuf.c | reorganize_buffers (dev, dmap, (cmd == SNDCTL_DSP_GETISPACE)); |
cmd | 805 | drivers/sound/dmabuf.c | if (cmd == SNDCTL_DSP_GETISPACE) |
cmd | 835 | drivers/sound/dmabuf.c | if (cmd == SNDCTL_DSP_GETISPACE && dmap->qlen) |
cmd | 957 | drivers/sound/dmabuf.c | return audio_devs[dev]->ioctl (dev, cmd, arg, local); |
cmd | 1735 | drivers/sound/dmabuf.c | DMAbuf_ioctl (int dev, unsigned int cmd, caddr_t arg, int local) |
cmd | 197 | drivers/sound/gus_midi.c | gus_midi_ioctl (int dev, unsigned cmd, caddr_t arg) |
cmd | 896 | drivers/sound/gus_wave.c | unsigned int cmd, caddr_t arg) |
cmd | 899 | drivers/sound/gus_wave.c | switch (cmd) |
cmd | 1778 | drivers/sound/gus_wave.c | int voice, cmd; |
cmd | 1783 | drivers/sound/gus_wave.c | cmd = event_rec[2]; |
cmd | 1790 | drivers/sound/gus_wave.c | (cmd != _GUS_VOICESAMPLE) && (cmd != _GUS_VOICE_POS)) |
cmd | 1793 | drivers/sound/gus_wave.c | switch (cmd) |
cmd | 1991 | drivers/sound/gus_wave.c | gus_sampling_ioctl (int dev, unsigned int cmd, caddr_t arg, int local) |
cmd | 1993 | drivers/sound/gus_wave.c | switch (cmd) |
cmd | 2829 | drivers/sound/gus_wave.c | gus_default_mixer_ioctl (int dev, unsigned int cmd, caddr_t arg) |
cmd | 2833 | drivers/sound/gus_wave.c | if (((cmd >> 8) & 0xff) == 'M') |
cmd | 2835 | drivers/sound/gus_wave.c | if (_IOC_DIR (cmd) & _IOC_WRITE) |
cmd | 2836 | drivers/sound/gus_wave.c | switch (cmd & 0xff) |
cmd | 2907 | drivers/sound/gus_wave.c | switch (cmd & 0xff) /* |
cmd | 135 | drivers/sound/ics2101.c | ics2101_mixer_ioctl (int dev, unsigned int cmd, caddr_t arg) |
cmd | 137 | drivers/sound/ics2101.c | if (((cmd >> 8) & 0xff) == 'M') |
cmd | 139 | drivers/sound/ics2101.c | if (_IOC_DIR (cmd) & _IOC_WRITE) |
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 | 311 | drivers/sound/mad16_sb_midi.c | mad16_sb_midi_ioctl (int dev, unsigned cmd, caddr_t arg) |
cmd | 53 | drivers/sound/midi_synth.c | #define STORE(cmd) |
cmd | 55 | drivers/sound/midi_synth.c | #define STORE(cmd) \ |
cmd | 59 | drivers/sound/midi_synth.c | cmd; \ |
cmd | 284 | drivers/sound/midi_synth.c | unsigned int cmd, caddr_t arg) |
cmd | 290 | drivers/sound/midi_synth.c | switch (cmd) |
cmd | 2 | drivers/sound/midi_synth.h | unsigned int cmd, caddr_t arg); |
cmd | 472 | drivers/sound/midibuf.c | unsigned int cmd, caddr_t arg) |
cmd | 478 | drivers/sound/midibuf.c | if (((cmd >> 8) & 0xff) == 'C') |
cmd | 481 | drivers/sound/midibuf.c | return midi_devs[dev]->coproc->ioctl (midi_devs[dev]->coproc->devc, cmd, arg, 0); |
cmd | 488 | drivers/sound/midibuf.c | switch (cmd) |
cmd | 502 | drivers/sound/midibuf.c | return midi_devs[dev]->ioctl (dev, cmd, arg); |
cmd | 99 | drivers/sound/mpu401.c | write_command (struct mpu_config *devc, unsigned char cmd) |
cmd | 101 | drivers/sound/mpu401.c | outb (cmd, COMDPORT (devc->base)); |
cmd | 170 | drivers/sound/mpu401.c | #define STORE(cmd) |
cmd | 172 | drivers/sound/mpu401.c | #define STORE(cmd) \ |
cmd | 176 | drivers/sound/mpu401.c | cmd; \ |
cmd | 613 | drivers/sound/mpu401.c | mpu401_command (int dev, mpu_command_rec * cmd) |
cmd | 645 | drivers/sound/mpu401.c | printk ("MPU-401: Command (0x%x) timeout\n", (int) cmd->cmd); |
cmd | 658 | drivers/sound/mpu401.c | write_command (devc, cmd->cmd); |
cmd | 683 | drivers/sound/mpu401.c | if (cmd->nr_args) |
cmd | 684 | drivers/sound/mpu401.c | for (i = 0; i < cmd->nr_args; i++) |
cmd | 688 | drivers/sound/mpu401.c | if (!mpu401_out (dev, cmd->data[i])) |
cmd | 691 | drivers/sound/mpu401.c | printk ("MPU: Command (0x%x), parm send failed.\n", (int) cmd->cmd); |
cmd | 697 | drivers/sound/mpu401.c | cmd->data[0] = 0; |
cmd | 699 | drivers/sound/mpu401.c | if (cmd->nr_returns) |
cmd | 700 | drivers/sound/mpu401.c | for (i = 0; i < cmd->nr_returns; i++) |
cmd | 706 | drivers/sound/mpu401.c | cmd->data[i] = read_data (devc); |
cmd | 724 | drivers/sound/mpu401.c | mpu_cmd (int dev, int cmd, int data) |
cmd | 730 | drivers/sound/mpu401.c | rec.cmd = cmd & 0xff; |
cmd | 731 | drivers/sound/mpu401.c | rec.nr_args = ((cmd & 0xf0) == 0xE0); |
cmd | 732 | drivers/sound/mpu401.c | rec.nr_returns = ((cmd & 0xf0) == 0xA0); |
cmd | 790 | drivers/sound/mpu401.c | mpu401_ioctl (int dev, unsigned cmd, caddr_t arg) |
cmd | 796 | drivers/sound/mpu401.c | switch (cmd) |
cmd | 848 | drivers/sound/mpu401.c | unsigned int cmd, caddr_t arg) |
cmd | 860 | drivers/sound/mpu401.c | switch (cmd) |
cmd | 127 | drivers/sound/opl3.c | unsigned int cmd, caddr_t arg) |
cmd | 129 | drivers/sound/opl3.c | switch (cmd) |
cmd | 220 | drivers/sound/pas2_midi.c | pas_midi_ioctl (int dev, unsigned cmd, caddr_t arg) |
cmd | 263 | drivers/sound/pas2_mixer.c | pas_mixer_ioctl (int dev, unsigned int cmd, caddr_t arg) |
cmd | 265 | 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 | 267 | drivers/sound/pas2_mixer.c | if (((cmd >> 8) & 0xff) == 'M') |
cmd | 269 | drivers/sound/pas2_mixer.c | if (_IOC_DIR (cmd) & _IOC_WRITE) |
cmd | 270 | drivers/sound/pas2_mixer.c | return snd_ioctl_return ((int *) arg, pas_mixer_set (cmd & 0xff, get_fs_long ((long *) arg))); |
cmd | 276 | drivers/sound/pas2_mixer.c | switch (cmd & 0xff) |
cmd | 316 | drivers/sound/pas2_mixer.c | return snd_ioctl_return ((int *) arg, levels[cmd & 0xff]); |
cmd | 164 | drivers/sound/pas2_pcm.c | pas_pcm_ioctl (int dev, unsigned int cmd, caddr_t arg, int local) |
cmd | 166 | 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 | 168 | drivers/sound/pas2_pcm.c | switch (cmd) |
cmd | 494 | drivers/sound/pss.c | pss_coproc_ioctl (void *dev_info, unsigned int cmd, caddr_t arg, int local) |
cmd | 498 | drivers/sound/pss.c | switch (cmd) |
cmd | 64 | drivers/sound/sb16_dsp.c | static int sb16_dsp_ioctl (int dev, unsigned int cmd, caddr_t arg, int local); |
cmd | 154 | drivers/sound/sb16_dsp.c | sb16_dsp_ioctl (int dev, unsigned int cmd, caddr_t arg, int local) |
cmd | 156 | drivers/sound/sb16_dsp.c | switch (cmd) |
cmd | 53 | drivers/sound/sb16_midi.c | sb16midi_cmd (unsigned char cmd) |
cmd | 55 | drivers/sound/sb16_midi.c | outb (cmd, COMDPORT); |
cmd | 194 | drivers/sound/sb16_midi.c | sb16midi_ioctl (int dev, unsigned cmd, caddr_t arg) |
cmd | 933 | drivers/sound/sb_dsp.c | sb_dsp_ioctl (int dev, unsigned int cmd, caddr_t arg, int local) |
cmd | 935 | drivers/sound/sb_dsp.c | switch (cmd) |
cmd | 197 | drivers/sound/sb_midi.c | sb_midi_ioctl (int dev, unsigned cmd, caddr_t arg) |
cmd | 448 | drivers/sound/sb_mixer.c | sb_mixer_ioctl (int dev, unsigned int cmd, caddr_t arg) |
cmd | 450 | drivers/sound/sb_mixer.c | if (((cmd >> 8) & 0xff) == 'M') |
cmd | 452 | drivers/sound/sb_mixer.c | if (_IOC_DIR (cmd) & _IOC_WRITE) |
cmd | 453 | drivers/sound/sb_mixer.c | switch (cmd & 0xff) |
cmd | 461 | drivers/sound/sb_mixer.c | return snd_ioctl_return ((int *) arg, sb_mixer_set (cmd & 0xff, get_fs_long ((long *) arg))); |
cmd | 464 | drivers/sound/sb_mixer.c | switch (cmd & 0xff) /* |
cmd | 493 | drivers/sound/sb_mixer.c | return snd_ioctl_return ((int *) arg, sb_mixer_get (cmd & 0xff)); |
cmd | 519 | drivers/sound/sequencer.c | unsigned char cmd = event_rec[2]; |
cmd | 537 | drivers/sound/sequencer.c | if (cmd == MIDI_NOTEON && parm == 0) |
cmd | 539 | drivers/sound/sequencer.c | cmd = MIDI_NOTEOFF; |
cmd | 544 | drivers/sound/sequencer.c | switch (cmd) |
cmd | 601 | drivers/sound/sequencer.c | unsigned char cmd = event_rec[2]; |
cmd | 615 | drivers/sound/sequencer.c | switch (cmd) |
cmd | 698 | drivers/sound/sequencer.c | unsigned char cmd = event_rec[1]; |
cmd | 726 | drivers/sound/sequencer.c | switch (cmd) |
cmd | 801 | drivers/sound/sequencer.c | unsigned char cmd = event_rec[1]; |
cmd | 804 | drivers/sound/sequencer.c | switch (cmd) |
cmd | 1529 | drivers/sound/sequencer.c | unsigned int cmd, caddr_t arg) |
cmd | 1536 | drivers/sound/sequencer.c | switch (cmd) |
cmd | 1550 | drivers/sound/sequencer.c | return tmr->ioctl (tmr_no, cmd, arg); |
cmd | 1652 | drivers/sound/sequencer.c | return tmr->ioctl (tmr_no, cmd, arg); |
cmd | 1678 | drivers/sound/sequencer.c | err = synth_devs[dev]->ioctl (dev, cmd, arg); |
cmd | 1701 | drivers/sound/sequencer.c | return snd_ioctl_return ((int *) arg, synth_devs[dev]->ioctl (dev, cmd, arg)); |
cmd | 1715 | drivers/sound/sequencer.c | synth_devs[dev]->ioctl (dev, cmd, arg); |
cmd | 1734 | drivers/sound/sequencer.c | return synth_devs[dev]->ioctl (dev, cmd, arg); |
cmd | 1890 | drivers/sound/sequencer.c | return synth_devs[0]->ioctl (0, cmd, arg); |
cmd | 13 | drivers/sound/sound_calls.h | int DMAbuf_ioctl(int dev, unsigned int cmd, caddr_t arg, int local); |
cmd | 33 | drivers/sound/sound_calls.h | unsigned int cmd, caddr_t arg); |
cmd | 48 | drivers/sound/sound_calls.h | unsigned int cmd, caddr_t arg); |
cmd | 68 | drivers/sound/sound_calls.h | unsigned int cmd, caddr_t arg); |
cmd | 99 | drivers/sound/sound_calls.h | unsigned int cmd, caddr_t arg); |
cmd | 180 | drivers/sound/sound_calls.h | int gus_default_mixer_ioctl (int dev, unsigned int cmd, caddr_t arg); |
cmd | 249 | drivers/sound/sound_calls.h | unsigned int cmd, caddr_t arg); |
cmd | 519 | drivers/sound/sound_switch.c | unsigned int cmd, caddr_t arg) |
cmd | 521 | drivers/sound/sound_switch.c | DEB (printk ("sound_ioctl_sw(dev=%d, cmd=0x%x, arg=0x%x)\n", dev, cmd, arg)); |
cmd | 523 | drivers/sound/sound_switch.c | if (((cmd >> 8) & 0xff) == 'M' && num_mixers > 0) /* Mixer ioctl */ |
cmd | 538 | drivers/sound/sound_switch.c | return mixer_devs[mixdev]->ioctl (mixdev, cmd, arg); |
cmd | 543 | drivers/sound/sound_switch.c | return mixer_devs[0]->ioctl (0, cmd, arg); |
cmd | 560 | drivers/sound/sound_switch.c | return mixer_devs[dev]->ioctl (dev, cmd, arg); |
cmd | 566 | drivers/sound/sound_switch.c | return sequencer_ioctl (dev, file, cmd, arg); |
cmd | 574 | drivers/sound/sound_switch.c | return audio_ioctl (dev, file, cmd, arg); |
cmd | 580 | drivers/sound/sound_switch.c | return MIDIbuf_ioctl (dev, file, cmd, arg); |
cmd | 134 | drivers/sound/sound_timer.c | unsigned char cmd = event[1]; |
cmd | 137 | drivers/sound/sound_timer.c | switch (cmd) |
cmd | 207 | drivers/sound/sound_timer.c | unsigned int cmd, caddr_t arg) |
cmd | 209 | drivers/sound/sound_timer.c | switch (cmd) |
cmd | 158 | drivers/sound/soundcard.c | unsigned int cmd, unsigned long arg) |
cmd | 166 | drivers/sound/soundcard.c | if (_IOC_DIR (cmd) != _IOC_NONE) |
cmd | 173 | drivers/sound/soundcard.c | len = _IOC_SIZE (cmd); |
cmd | 175 | drivers/sound/soundcard.c | if (_IOC_DIR (cmd) == _IOC_WRITE) |
cmd | 181 | drivers/sound/soundcard.c | if (_IOC_DIR (cmd) == _IOC_READ) |
cmd | 189 | drivers/sound/soundcard.c | err = sound_ioctl_sw (dev, &files[dev], cmd, (caddr_t) arg); |
cmd | 232 | drivers/sound/sscape.c | host_command1 (struct sscape_info *devc, int cmd) |
cmd | 236 | drivers/sound/sscape.c | buf[0] = (unsigned char) (cmd & 0xff); |
cmd | 242 | drivers/sound/sscape.c | host_command2 (struct sscape_info *devc, int cmd, int parm1) |
cmd | 246 | drivers/sound/sscape.c | buf[0] = (unsigned char) (cmd & 0xff); |
cmd | 253 | drivers/sound/sscape.c | host_command3 (struct sscape_info *devc, int cmd, int parm1, int parm2) |
cmd | 257 | drivers/sound/sscape.c | buf[0] = (unsigned char) (cmd & 0xff); |
cmd | 651 | drivers/sound/sscape.c | sscape_coproc_ioctl (void *dev_info, unsigned int cmd, caddr_t arg, int local) |
cmd | 654 | drivers/sound/sscape.c | switch (cmd) |
cmd | 758 | drivers/sound/sscape.c | sscape_audio_ioctl (int dev, unsigned int cmd, caddr_t arg, int local) |
cmd | 762 | drivers/sound/sscape.c | switch (cmd) |
cmd | 136 | drivers/sound/sys_timer.c | unsigned char cmd = event[1]; |
cmd | 139 | drivers/sound/sys_timer.c | switch (cmd) |
cmd | 206 | drivers/sound/sys_timer.c | unsigned int cmd, caddr_t arg) |
cmd | 208 | drivers/sound/sys_timer.c | switch (cmd) |
cmd | 53 | drivers/sound/uart6850.c | uart6850_cmd (unsigned char cmd) |
cmd | 55 | drivers/sound/uart6850.c | outb (cmd, COMDPORT); |
cmd | 239 | drivers/sound/uart6850.c | uart6850_ioctl (int dev, unsigned cmd, caddr_t arg) |
cmd | 1011 | fs/dquot.c | asmlinkage int sys_quotactl(int cmd, const char *special, int id, caddr_t addr) |
cmd | 1017 | fs/dquot.c | cmds = cmd >> SUBCMDSHIFT; |
cmd | 1018 | fs/dquot.c | type = cmd & SUBCMDMASK; |
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 | 381 | fs/fat/dir.c | unsigned int cmd, unsigned long arg) |
cmd | 389 | fs/fat/dir.c | switch (cmd) { |
cmd | 18 | fs/fcntl.c | extern int sock_fcntl (struct file *, unsigned int cmd, unsigned long arg); |
cmd | 56 | fs/fcntl.c | asmlinkage long sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg) |
cmd | 64 | fs/fcntl.c | switch (cmd) { |
cmd | 97 | fs/fcntl.c | return fcntl_setlk(fd, cmd, (struct flock *) arg); |
cmd | 99 | fs/fcntl.c | return fcntl_setlk(fd, cmd, (struct flock *) arg); |
cmd | 158 | 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 | 77 | fs/locks.c | unsigned int cmd); |
cmd | 153 | fs/locks.c | asmlinkage int sys_flock(unsigned int fd, unsigned int cmd) |
cmd | 161 | fs/locks.c | if (!flock_make_lock(filp, &file_lock, cmd)) |
cmd | 167 | fs/locks.c | return (flock_lock_file(filp, &file_lock, cmd & LOCK_UN ? 0 : cmd & LOCK_NB ? 0 : 1)); |
cmd | 216 | fs/locks.c | int fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l) |
cmd | 256 | fs/locks.c | return (posix_lock_file(filp, &file_lock, cmd == F_SETLKW)); |
cmd | 342 | fs/locks.c | unsigned int cmd) |
cmd | 347 | fs/locks.c | switch (cmd & ~LOCK_NB) { |
cmd | 19 | fs/ncpfs/ioctl.c | unsigned int cmd, unsigned long arg) |
cmd | 26 | fs/ncpfs/ioctl.c | switch(cmd) { |
cmd | 76 | fs/noquot.c | asmlinkage int sys_quotactl(int cmd, const char *special, int id, caddr_t addr) |
cmd | 135 | fs/pipe.c | unsigned int cmd, unsigned long arg) |
cmd | 139 | fs/pipe.c | switch (cmd) { |
cmd | 18 | fs/smbfs/ioctl.c | unsigned int cmd, unsigned long arg) |
cmd | 22 | fs/smbfs/ioctl.c | switch (cmd) { |
cmd | 58 | fs/umsdos/ioctl.c | unsigned int cmd, |
cmd | 74 | fs/umsdos/ioctl.c | || cmd == UMSDOS_GETVERSION){ |
cmd | 96 | fs/umsdos/ioctl.c | PRINTK (("ioctl %d ",cmd)); |
cmd | 97 | fs/umsdos/ioctl.c | if (cmd == UMSDOS_GETVERSION){ |
cmd | 111 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_READDIR_DOS){ |
cmd | 124 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_READDIR_EMD){ |
cmd | 167 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_INIT_EMD){ |
cmd | 190 | fs/umsdos/ioctl.c | if (cmd == UMSDOS_CREAT_EMD){ |
cmd | 207 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_RENAME_DOS){ |
cmd | 222 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_UNLINK_EMD){ |
cmd | 240 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_UNLINK_DOS){ |
cmd | 251 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_RMDIR_DOS){ |
cmd | 262 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_STAT_DOS){ |
cmd | 286 | fs/umsdos/ioctl.c | }else if (cmd == UMSDOS_DOS_SETUP){ |
cmd | 23 | include/linux/blkdev.h | int cmd; /* READ or WRITE */ |
cmd | 421 | include/linux/cdk.h | unsigned long cmd; |
cmd | 350 | include/linux/fd.h | unsigned char cmd[16]; |
cmd | 82 | include/linux/kerneld.h | static inline int ksystem(const char *cmd, int waitflag) |
cmd | 86 | include/linux/kerneld.h | strlen(cmd), cmd, NULL); |
cmd | 25 | include/linux/loop.h | int (*transfer)(struct loop_device *, int cmd, |
cmd | 35 | include/linux/loop.h | typedef int (* transfer_proc_t)(struct loop_device *, int cmd, |
cmd | 115 | include/linux/md.h | unsigned int cmd, unsigned long arg); |
cmd | 122 | include/linux/mroute.h | extern int ipmr_ioctl(struct sock *sk, int cmd, unsigned long arg); |
cmd | 219 | include/linux/msdos_fs.h | unsigned int cmd, unsigned long arg); |
cmd | 74 | include/linux/msg.h | asmlinkage int sys_msgctl (int msqid, int cmd, struct msqid_ds *buf); |
cmd | 144 | include/linux/ncp_fs.h | unsigned int cmd, unsigned long arg); |
cmd | 107 | include/linux/net.h | int (*ioctl) (struct socket *sock, unsigned int cmd, |
cmd | 115 | include/linux/net.h | int (*fcntl) (struct socket *sock, unsigned int cmd, |
cmd | 184 | include/linux/netdevice.h | int (*do_ioctl)(struct device *dev, struct ifreq *ifr, int cmd); |
cmd | 239 | include/linux/netdevice.h | extern int dev_ioctl(unsigned int cmd, void *); |
cmd | 98 | include/linux/quota.h | #define QCMD(cmd, type) (((cmd) << SUBCMDSHIFT) | ((type) & SUBCMDMASK)) |
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 | 112 | include/linux/smb_fs.h | unsigned int cmd, unsigned long arg); |
cmd | 533 | include/linux/soundcard.h | unsigned char cmd; |
cmd | 318 | include/linux/tty.h | unsigned int cmd, unsigned long arg); |
cmd | 337 | 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 | 91 | include/linux/ultrasound.h | #define _GUS_CMD(chn, voice, cmd, p1, p2) \ |
cmd | 93 | include/linux/ultrasound.h | _seqbuf[_seqbufptr+1] = (chn); _seqbuf[_seqbufptr+2] = cmd;\ |
cmd | 114 | include/linux/xd.h | static int xd_ioctl (struct inode *inode,struct file *file,unsigned int cmd,unsigned long arg); |
cmd | 11 | include/net/arp.h | extern int arp_ioctl(unsigned int cmd, void *arg); |
cmd | 36 | include/net/icmp.h | extern int icmp_ioctl(struct sock *sk, int cmd, |
cmd | 87 | include/net/ip.h | extern int ip_ioctl(struct sock *sk, int cmd, unsigned long arg); |
cmd | 5 | include/net/rarp.h | extern int rarp_ioctl(unsigned int cmd, void *arg); |
cmd | 193 | include/net/route.h | extern int ip_rt_ioctl(unsigned int cmd, void *arg); |
cmd | 350 | include/net/sock.h | int (*ioctl)(struct sock *sk, int cmd, |
cmd | 127 | 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 | 426 | ipc/msg.c | asmlinkage int sys_msgctl (int msqid, int cmd, struct msqid_ds *buf) |
cmd | 433 | ipc/msg.c | if (msqid < 0 || cmd < 0) |
cmd | 435 | ipc/msg.c | switch (cmd) { |
cmd | 450 | ipc/msg.c | if (cmd == MSG_INFO) { |
cmd | 511 | 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 | 203 | ipc/shm.c | asmlinkage int sys_shmctl (int shmid, int cmd, struct shmid_ds *buf) |
cmd | 210 | ipc/shm.c | if (cmd < 0 || shmid < 0) |
cmd | 212 | ipc/shm.c | if (cmd == IPC_SET) { |
cmd | 221 | ipc/shm.c | switch (cmd) { /* replace with proc interface ? */ |
cmd | 288 | 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 | 691 | net/appletalk/ddp.c | int atif_ioctl(int cmd, void *arg) |
cmd | 699 | net/appletalk/ddp.c | int ro=(cmd==SIOCSIFADDR); |
cmd | 716 | net/appletalk/ddp.c | switch(cmd) |
cmd | 827 | net/appletalk/ddp.c | static int atrtr_ioctl(unsigned int cmd, void *arg) |
cmd | 837 | net/appletalk/ddp.c | switch(cmd) |
cmd | 963 | net/appletalk/ddp.c | static int atalk_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 966 | net/appletalk/ddp.c | switch(cmd) |
cmd | 1852 | net/appletalk/ddp.c | static int atalk_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg) |
cmd | 1858 | net/appletalk/ddp.c | switch(cmd) |
cmd | 1895 | net/appletalk/ddp.c | return(atrtr_ioctl(cmd,(void *)arg)); |
cmd | 1902 | net/appletalk/ddp.c | return atif_ioctl(cmd,(void *)arg); |
cmd | 1916 | net/appletalk/ddp.c | return(dev_ioctl(cmd,(void *) arg)); |
cmd | 475 | net/ax25/af_ax25.c | static int ax25_uid_ioctl(int cmd, struct sockaddr_ax25 *sax) |
cmd | 479 | net/ax25/af_ax25.c | switch (cmd) { |
cmd | 721 | net/ax25/af_ax25.c | static int ax25_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 1995 | net/ax25/af_ax25.c | static int ax25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 2001 | net/ax25/af_ax25.c | switch (cmd) { |
cmd | 2042 | net/ax25/af_ax25.c | return ax25_uid_ioctl(cmd, &sax25); |
cmd | 2060 | net/ax25/af_ax25.c | return ax25_bpq_ioctl(cmd, (void *)arg); |
cmd | 2065 | net/ax25/af_ax25.c | return ax25_dev_ioctl(cmd, (void *)arg); |
cmd | 2071 | net/ax25/af_ax25.c | return ax25_rt_ioctl(cmd, (void *)arg); |
cmd | 2086 | net/ax25/af_ax25.c | return(dev_ioctl(cmd, (void *)arg)); |
cmd | 167 | net/ax25/ax25_route.c | int ax25_rt_ioctl(unsigned int cmd, void *arg) |
cmd | 175 | net/ax25/ax25_route.c | switch (cmd) { |
cmd | 590 | net/ax25/ax25_route.c | int ax25_dev_ioctl(unsigned int cmd, void *arg) |
cmd | 597 | net/ax25/ax25_route.c | switch (cmd) { |
cmd | 726 | net/ax25/ax25_route.c | int ax25_bpq_ioctl(unsigned int cmd, void *arg) |
cmd | 734 | net/ax25/ax25_route.c | switch (cmd) { |
cmd | 484 | net/ax25/ax25_subr.c | void ax25_kiss_cmd(ax25_cb *ax25, unsigned char cmd, unsigned char param) |
cmd | 507 | net/ax25/ax25_subr.c | *p++=cmd; |
cmd | 1252 | net/core/dev.c | int dev_ioctl(unsigned int cmd, void *arg) |
cmd | 1254 | net/core/dev.c | switch(cmd) |
cmd | 1276 | net/core/dev.c | return dev_ifsioc(arg, cmd); |
cmd | 1296 | net/core/dev.c | return dev_ifsioc(arg, cmd); |
cmd | 1306 | net/core/dev.c | if((cmd >= SIOCDEVPRIVATE) && |
cmd | 1307 | net/core/dev.c | (cmd <= (SIOCDEVPRIVATE + 15))) { |
cmd | 1308 | net/core/dev.c | return dev_ifsioc(arg, cmd); |
cmd | 427 | net/ipv4/af_inet.c | static int inet_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 433 | net/ipv4/af_inet.c | switch(cmd) |
cmd | 1194 | net/ipv4/af_inet.c | static int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 1200 | net/ipv4/af_inet.c | switch(cmd) |
cmd | 1230 | net/ipv4/af_inet.c | return(ip_rt_ioctl(cmd,(void *) arg)); |
cmd | 1237 | net/ipv4/af_inet.c | return(arp_ioctl(cmd,(void *) arg)); |
cmd | 1246 | net/ipv4/af_inet.c | return(rarp_ioctl_hook(cmd,(void *) arg)); |
cmd | 1273 | net/ipv4/af_inet.c | return(dev_ioctl(cmd,(void *) arg)); |
cmd | 1276 | net/ipv4/af_inet.c | if ((cmd >= SIOCDEVPRIVATE) && |
cmd | 1277 | net/ipv4/af_inet.c | (cmd <= (SIOCDEVPRIVATE + 15))) |
cmd | 1278 | net/ipv4/af_inet.c | return(dev_ioctl(cmd,(void *) arg)); |
cmd | 1282 | net/ipv4/af_inet.c | return(sk->prot->ioctl(sk, cmd, arg)); |
cmd | 1865 | net/ipv4/arp.c | int arp_ioctl(unsigned int cmd, void *arg) |
cmd | 1872 | net/ipv4/arp.c | switch(cmd) |
cmd | 1917 | net/ipv4/arp.c | ((cmd == SIOCSARP) || (cmd == OLD_SIOCSARP))) { |
cmd | 1923 | net/ipv4/arp.c | switch(cmd) |
cmd | 1333 | net/ipv4/ip_fw.c | int ret, cmd, fwtype; |
cmd | 1335 | net/ipv4/ip_fw.c | cmd = stage & IP_FW_COMMAND; |
cmd | 1338 | net/ipv4/ip_fw.c | if ( cmd == IP_FW_FLUSH ) |
cmd | 1344 | net/ipv4/ip_fw.c | if ( cmd == IP_FW_ZERO ) |
cmd | 1350 | net/ipv4/ip_fw.c | if ( cmd == IP_FW_POLICY ) |
cmd | 1358 | net/ipv4/ip_fw.c | if ( cmd == IP_FW_CHECK ) |
cmd | 1411 | net/ipv4/ip_fw.c | if ( cmd == IP_FW_INSERT || cmd == IP_FW_APPEND || cmd == IP_FW_DELETE ) |
cmd | 1421 | net/ipv4/ip_fw.c | switch (cmd) |
cmd | 180 | net/ipv4/ip_input.c | int ip_ioctl(struct sock *sk, int cmd, unsigned long arg) |
cmd | 182 | net/ipv4/ip_input.c | switch(cmd) |
cmd | 596 | net/ipv4/ipmr.c | int ipmr_ioctl(struct sock *sk, int cmd, unsigned long arg) |
cmd | 603 | net/ipv4/ipmr.c | switch(cmd) |
cmd | 443 | net/ipv4/rarp.c | int rarp_ioctl(unsigned int cmd, void *arg) |
cmd | 449 | net/ipv4/rarp.c | switch(cmd) |
cmd | 1752 | net/ipv4/route.c | int ip_rt_ioctl(unsigned int cmd, void *arg) |
cmd | 1757 | net/ipv4/route.c | switch(cmd) |
cmd | 1767 | net/ipv4/route.c | return (cmd == SIOCDELRT) ? rt_kill(&rt) : ip_rt_new(&rt); |
cmd | 745 | net/ipv4/tcp.c | int tcp_ioctl(struct sock *sk, int cmd, unsigned long arg) |
cmd | 748 | net/ipv4/tcp.c | switch(cmd) |
cmd | 444 | net/ipv4/udp.c | int udp_ioctl(struct sock *sk, int cmd, unsigned long arg) |
cmd | 447 | net/ipv4/udp.c | switch(cmd) |
cmd | 993 | net/ipx/af_ipx.c | ipxitf_ioctl(unsigned int cmd, void *arg) |
cmd | 996 | net/ipx/af_ipx.c | switch(cmd) |
cmd | 1263 | net/ipx/af_ipx.c | static int ipxrtr_ioctl(unsigned int cmd, void *arg) |
cmd | 1285 | net/ipx/af_ipx.c | switch(cmd) |
cmd | 1487 | net/ipx/af_ipx.c | static int ipx_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 1489 | net/ipx/af_ipx.c | switch(cmd) |
cmd | 2083 | net/ipx/af_ipx.c | static int ipx_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg) |
cmd | 2089 | net/ipx/af_ipx.c | switch(cmd) |
cmd | 2116 | net/ipx/af_ipx.c | return(ipxrtr_ioctl(cmd,(void *)arg)); |
cmd | 2123 | net/ipx/af_ipx.c | return(ipxitf_ioctl(cmd,(void *)arg)); |
cmd | 2151 | net/ipx/af_ipx.c | return(dev_ioctl(cmd,(void *) arg)); |
cmd | 144 | net/netlink.c | unsigned int cmd, unsigned long arg) |
cmd | 151 | net/netlink.c | switch ( cmd ) { |
cmd | 280 | net/netrom/af_netrom.c | static int nr_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 1169 | net/netrom/af_netrom.c | static int nr_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 1175 | net/netrom/af_netrom.c | switch (cmd) { |
cmd | 1224 | 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 | 564 | net/netrom/nr_route.c | int nr_rt_ioctl(unsigned int cmd, void *arg) |
cmd | 571 | net/netrom/nr_route.c | switch (cmd) { |
cmd | 83 | net/socket.c | unsigned int cmd, unsigned long arg); |
cmd | 389 | net/socket.c | int sock_ioctl(struct inode *inode, struct file *file, unsigned int cmd, |
cmd | 394 | net/socket.c | return(sock->ops->ioctl(sock, cmd, arg)); |
cmd | 1164 | net/socket.c | int sock_fcntl(struct file *filp, unsigned int cmd, unsigned long arg) |
cmd | 1170 | net/socket.c | return(sock->ops->fcntl(sock, cmd, arg)); |
cmd | 215 | net/unix/af_unix.c | static int unix_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 1192 | net/unix/af_unix.c | static int unix_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 1198 | net/unix/af_unix.c | switch(cmd) |