tag | line | file | source code |
cmd | 51 | fs/fcntl.c | int sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg) |
cmd | 57 | fs/fcntl.c | switch (cmd) { |
cmd | 14 | fs/ioctl.c | int sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) |
cmd | 21 | fs/ioctl.c | if (S_ISREG(filp->f_inode->i_mode) && cmd == BMAP_IOCTL && |
cmd | 29 | fs/ioctl.c | return filp->f_op->ioctl(filp->f_inode, filp, cmd,arg); |
cmd | 107 | fs/pipe.c | unsigned int cmd, unsigned int arg) |
cmd | 109 | fs/pipe.c | switch (cmd) { |
cmd | 25 | kernel/blk_drv/blk.h | int cmd; /* READ or WRITE */ |
cmd | 43 | kernel/blk_drv/blk.h | ((s1)->cmd < (s2)->cmd || ((s1)->cmd == (s2)->cmd && \ |
cmd | 949 | kernel/blk_drv/floppy.c | if (CURRENT->cmd == READ) |
cmd | 951 | kernel/blk_drv/floppy.c | else if (CURRENT->cmd == WRITE) |
cmd | 1002 | kernel/blk_drv/floppy.c | static int fd_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, |
cmd | 1008 | kernel/blk_drv/floppy.c | switch (cmd) { |
cmd | 1013 | kernel/blk_drv/floppy.c | switch (cmd) { |
cmd | 1021 | kernel/blk_drv/floppy.c | cmd = FDCLRPRM; |
cmd | 1060 | kernel/blk_drv/floppy.c | switch (cmd) { |
cmd | 1073 | kernel/blk_drv/floppy.c | if (cmd == FDDEFPRM) keep_data[drive] = -1; |
cmd | 130 | kernel/blk_drv/hd.c | unsigned int head,unsigned int cyl,unsigned int cmd, |
cmd | 154 | kernel/blk_drv/hd.c | outb_p(cmd,++port); |
cmd | 426 | kernel/blk_drv/hd.c | if (CURRENT->cmd == WRITE) { |
cmd | 437 | kernel/blk_drv/hd.c | } else if (CURRENT->cmd == READ) { |
cmd | 447 | kernel/blk_drv/hd.c | unsigned int cmd, unsigned int arg) |
cmd | 457 | kernel/blk_drv/hd.c | switch (cmd) { |
cmd | 176 | kernel/blk_drv/ll_rw_blk.c | req->cmd == rw && |
cmd | 213 | kernel/blk_drv/ll_rw_blk.c | req->cmd = rw; |
cmd | 254 | kernel/blk_drv/ll_rw_blk.c | req->cmd = rw; |
cmd | 341 | kernel/blk_drv/ll_rw_blk.c | req->cmd = rw; |
cmd | 38 | kernel/blk_drv/ramdisk.c | if (CURRENT-> cmd == WRITE) { |
cmd | 42 | kernel/blk_drv/ramdisk.c | } else if (CURRENT->cmd == READ) { |
cmd | 265 | kernel/blk_drv/scsi/7000fasst.c | unchar *cmd = (unchar *) cmnd; |
cmd | 273 | kernel/blk_drv/scsi/7000fasst.c | memcpy(scbs[i].scbdata, cmd, (*cmd<=0x1f)?6:10); |
cmd | 403 | kernel/blk_drv/scsi/7000fasst.c | static unchar cmd[] = { READ_CAPACITY, 0, 0, 0, 0, 0, 0, 0, 0, 0}; |
cmd | 410 | kernel/blk_drv/scsi/7000fasst.c | if (wd7000fasst_command(i, cmd, buf, sizeof(buf))) rstat++; |
cmd | 257 | kernel/blk_drv/scsi/aha1542.c | unchar *cmd = (unchar *) cmnd; |
cmd | 263 | kernel/blk_drv/scsi/aha1542.c | if (*cmd == READ_10 || *cmd == WRITE_10) |
cmd | 264 | kernel/blk_drv/scsi/aha1542.c | i = xscsi2int(cmd+2); |
cmd | 265 | kernel/blk_drv/scsi/aha1542.c | else if (*cmd == READ_6 || *cmd == WRITE_6) |
cmd | 266 | kernel/blk_drv/scsi/aha1542.c | i = scsi2int(cmd+2); |
cmd | 270 | kernel/blk_drv/scsi/aha1542.c | printk("aha1542_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
cmd | 272 | kernel/blk_drv/scsi/aha1542.c | printk("aha1542_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
cmd | 275 | kernel/blk_drv/scsi/aha1542.c | for (i = 0; i < (*cmd<=0x1f?6:10); i++) printk("%02x ", cmd[i]); |
cmd | 277 | kernel/blk_drv/scsi/aha1542.c | if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 282 | kernel/blk_drv/scsi/aha1542.c | ccb.cdblen = (*cmd<=0x1f)?6:10; /* SCSI Command Descriptor Block Length */ |
cmd | 284 | kernel/blk_drv/scsi/aha1542.c | memcpy(ccb.cdb, cmd, ccb.cdblen); |
cmd | 339 | kernel/blk_drv/scsi/aha1542.c | static unchar cmd[5] = {CMD_MBINIT, 1}; |
cmd | 343 | kernel/blk_drv/scsi/aha1542.c | any2scsi((cmd+2), mb); |
cmd | 345 | kernel/blk_drv/scsi/aha1542.c | aha1542_out(cmd, 5); |
cmd | 409 | kernel/blk_drv/scsi/aha1542.c | static unchar cmd[] = { READ_CAPACITY, 0, 0, 0, 0, 0, 0, 0, 0, 0}; |
cmd | 414 | kernel/blk_drv/scsi/aha1542.c | if (!aha1542_command(i, cmd, buf, sizeof(buf))) { |
cmd | 424 | kernel/blk_drv/scsi/aha1542.c | unsigned char cmd[10]; |
cmd | 427 | kernel/blk_drv/scsi/aha1542.c | cmd[0] = READ_10; |
cmd | 428 | kernel/blk_drv/scsi/aha1542.c | cmd[1] = 0; |
cmd | 429 | kernel/blk_drv/scsi/aha1542.c | xany2scsi(cmd+2, i); |
cmd | 430 | kernel/blk_drv/scsi/aha1542.c | cmd[6] = 0; |
cmd | 431 | kernel/blk_drv/scsi/aha1542.c | cmd[7] = 0; |
cmd | 432 | kernel/blk_drv/scsi/aha1542.c | cmd[8] = 1; |
cmd | 433 | kernel/blk_drv/scsi/aha1542.c | cmd[9] = 0; |
cmd | 434 | kernel/blk_drv/scsi/aha1542.c | aha1542_command(0, cmd, buffer, 512); |
cmd | 76 | kernel/blk_drv/scsi/scsi_ioctl.c | char cmd[10]; |
cmd | 90 | kernel/blk_drv/scsi/scsi_ioctl.c | memcpy_fromfs ((void *) cmd, cmd_in, cmdlen = COMMAND_SIZE (opcode)); |
cmd | 108 | kernel/blk_drv/scsi/scsi_ioctl.c | scsi_do_cmd(host, dev->id, cmd, buf, ((outlen > MAX_BUF) ? |
cmd | 123 | kernel/blk_drv/scsi/scsi_ioctl.c | printk("%02x ", cmd[i]); |
cmd | 142 | kernel/blk_drv/scsi/scsi_ioctl.c | int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) |
cmd | 144 | kernel/blk_drv/scsi/scsi_ioctl.c | if ((cmd != 0 && dev->id > NR_SCSI_DEVICES)) |
cmd | 146 | kernel/blk_drv/scsi/scsi_ioctl.c | if ((cmd == 0 && dev->host_no > MAX_SCSI_HOSTS)) |
cmd | 149 | kernel/blk_drv/scsi/scsi_ioctl.c | switch (cmd) { |
cmd | 224 | kernel/blk_drv/scsi/sd.c | unsigned char cmd[10]; |
cmd | 256 | kernel/blk_drv/scsi/sd.c | (CURRENT->cmd == WRITE) ? "writing" : "reading", |
cmd | 260 | kernel/blk_drv/scsi/sd.c | switch (CURRENT->cmd) |
cmd | 268 | kernel/blk_drv/scsi/sd.c | cmd[0] = WRITE_6; |
cmd | 271 | kernel/blk_drv/scsi/sd.c | cmd[0] = READ_6; |
cmd | 274 | kernel/blk_drv/scsi/sd.c | printk ("Unknown sd command %d\r\n", CURRENT->cmd); |
cmd | 278 | kernel/blk_drv/scsi/sd.c | cmd[1] = (LUN << 5) & 0xe0; |
cmd | 285 | kernel/blk_drv/scsi/sd.c | cmd[0] += READ_10 - READ_6 ; |
cmd | 286 | kernel/blk_drv/scsi/sd.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
cmd | 287 | kernel/blk_drv/scsi/sd.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
cmd | 288 | kernel/blk_drv/scsi/sd.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
cmd | 289 | kernel/blk_drv/scsi/sd.c | cmd[5] = (unsigned char) block & 0xff; |
cmd | 290 | kernel/blk_drv/scsi/sd.c | cmd[6] = cmd[9] = 0; |
cmd | 291 | kernel/blk_drv/scsi/sd.c | cmd[7] = (unsigned char) (this_count >> 8) & 0xff; |
cmd | 292 | kernel/blk_drv/scsi/sd.c | cmd[8] = (unsigned char) this_count & 0xff; |
cmd | 299 | kernel/blk_drv/scsi/sd.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
cmd | 300 | kernel/blk_drv/scsi/sd.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
cmd | 301 | kernel/blk_drv/scsi/sd.c | cmd[3] = (unsigned char) block & 0xff; |
cmd | 302 | kernel/blk_drv/scsi/sd.c | cmd[4] = (unsigned char) this_count; |
cmd | 303 | kernel/blk_drv/scsi/sd.c | cmd[5] = 0; |
cmd | 306 | kernel/blk_drv/scsi/sd.c | scsi_do_cmd (HOST, ID, (void *) cmd, CURRENT->buffer, this_count << 9, |
cmd | 323 | kernel/blk_drv/scsi/sd.c | unsigned char cmd[10]; |
cmd | 331 | kernel/blk_drv/scsi/sd.c | cmd[0] = READ_CAPACITY; |
cmd | 332 | kernel/blk_drv/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
cmd | 333 | kernel/blk_drv/scsi/sd.c | memset ((void *) &cmd[2], 0, 8); |
cmd | 350 | kernel/blk_drv/scsi/sd.c | (void *) cmd, (void *) buffer, |
cmd | 9 | kernel/blk_drv/scsi/sd_ioctl.c | extern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
cmd | 11 | kernel/blk_drv/scsi/sd_ioctl.c | int sd_ioctl(struct inode * inode, struct file * file, unsigned long cmd, unsigned long arg) |
cmd | 15 | kernel/blk_drv/scsi/sd_ioctl.c | switch (cmd) { |
cmd | 17 | kernel/blk_drv/scsi/sd_ioctl.c | return scsi_ioctl(rscsi_disks[MINOR(dev) >> 4].device, cmd, (void *) arg); |
cmd | 8 | kernel/blk_drv/scsi/st_ioctl.c | extern int scsi_ioctl(Scsi_Device *dev, int cmd, void *arg); |
cmd | 10 | kernel/blk_drv/scsi/st_ioctl.c | int st_ioctl(struct inode * inode, struct file * file, unsigned long cmd, unsigned long arg) |
cmd | 14 | kernel/blk_drv/scsi/st_ioctl.c | switch (cmd) { |
cmd | 16 | kernel/blk_drv/scsi/st_ioctl.c | return scsi_ioctl(scsi_tapes[MINOR(dev)].device, cmd, (void *) arg); |
cmd | 22 | kernel/chr_drv/tty_ioctl.c | extern int vt_ioctl(struct tty_struct *tty, int dev, int cmd, int arg); |
cmd | 230 | kernel/chr_drv/tty_ioctl.c | unsigned int cmd, unsigned int arg) |
cmd | 251 | kernel/chr_drv/tty_ioctl.c | switch (cmd) { |
cmd | 412 | kernel/chr_drv/tty_ioctl.c | return vt_ioctl(tty, dev, cmd, arg); |
cmd | 70 | kernel/chr_drv/vt.c | vt_ioctl(struct tty_struct *tty, int dev, int cmd, int arg) |
cmd | 78 | kernel/chr_drv/vt.c | switch (cmd) { |
cmd | 98 | kernel/chr_drv/vt.c | return sys_ioperm(arg, 1, (cmd == KDADDIO)) ? -ENXIO : 0; |
cmd | 103 | kernel/chr_drv/vt.c | (cmd == KDENABIO)) ? -ENXIO : 0; |
cmd | 56 | net/kern_sock.h | int (*ioctl)(struct socket *sock, unsigned int cmd, unsigned long arg); |
cmd | 51 | net/socket.c | unsigned int cmd, unsigned int arg); |
cmd | 270 | net/socket.c | sock_ioctl(struct inode *inode, struct file *file, unsigned int cmd, |
cmd | 275 | net/socket.c | PRINTK("sock_ioctl: inode=0x%x cmd=0x%x arg=%d\n", inode, cmd, arg); |
cmd | 280 | net/socket.c | switch (cmd) { |
cmd | 290 | net/socket.c | return sock->ops->ioctl(sock, cmd, arg); |
cmd | 59 | net/unix.c | static int unix_proto_ioctl(struct socket *sock, unsigned int cmd, |
cmd | 560 | net/unix.c | unix_proto_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 567 | net/unix.c | switch (cmd) { |