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 | 13 | fs/ioctl.c | int sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) |
cmd | 20 | fs/ioctl.c | return filp->f_op->ioctl(filp->f_inode, filp, cmd,arg); |
cmd | 96 | fs/pipe.c | unsigned int cmd, unsigned int arg) |
cmd | 98 | fs/pipe.c | switch (cmd) { |
cmd | 52 | include/fcntl.h | extern int fcntl(int fildes,int cmd, ...); |
cmd | 99 | include/unistd.h | int fcntl(int fildes, int cmd, ...); |
cmd | 106 | include/unistd.h | int ioctl(int fildes, int cmd, ...); |
cmd | 129 | include/unistd.h | int ulimit(int cmd, long limit); |
cmd | 25 | kernel/blk_drv/blk.h | int cmd; /* READ or WRITE */ |
cmd | 42 | kernel/blk_drv/blk.h | ((s1)->cmd<(s2)->cmd || ((s1)->cmd==(s2)->cmd && \ |
cmd | 774 | kernel/blk_drv/floppy.c | if (CURRENT->cmd == READ) |
cmd | 776 | kernel/blk_drv/floppy.c | else if (CURRENT->cmd == WRITE) |
cmd | 828 | kernel/blk_drv/floppy.c | static int fd_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, |
cmd | 836 | kernel/blk_drv/floppy.c | switch (cmd) { |
cmd | 844 | kernel/blk_drv/floppy.c | cmd = FDCLRPRM; |
cmd | 883 | kernel/blk_drv/floppy.c | switch (cmd) { |
cmd | 896 | kernel/blk_drv/floppy.c | if (cmd == FDDEFPRM) keep_data[drive] = -1; |
cmd | 326 | kernel/blk_drv/hd.c | unsigned int head,unsigned int cyl,unsigned int cmd, |
cmd | 350 | kernel/blk_drv/hd.c | outb_p(cmd,++port); |
cmd | 574 | kernel/blk_drv/hd.c | if (CURRENT->cmd == WRITE) { |
cmd | 585 | kernel/blk_drv/hd.c | } else if (CURRENT->cmd == READ) { |
cmd | 594 | kernel/blk_drv/hd.c | unsigned int cmd, unsigned int arg) |
cmd | 604 | kernel/blk_drv/hd.c | switch (cmd) { |
cmd | 139 | kernel/blk_drv/ll_rw_blk.c | req->cmd == rw && |
cmd | 176 | kernel/blk_drv/ll_rw_blk.c | req->cmd = rw; |
cmd | 212 | kernel/blk_drv/ll_rw_blk.c | req->cmd = rw; |
cmd | 278 | kernel/blk_drv/ll_rw_blk.c | req->cmd = rw; |
cmd | 36 | kernel/blk_drv/ramdisk.c | if (CURRENT-> cmd == WRITE) { |
cmd | 40 | kernel/blk_drv/ramdisk.c | } else if (CURRENT->cmd == READ) { |
cmd | 257 | kernel/blk_drv/scsi/aha1542.c | unchar *cmd = (unchar *) cmnd; |
cmd | 262 | kernel/blk_drv/scsi/aha1542.c | if (*cmd == READ_10 || *cmd == WRITE_10) |
cmd | 263 | kernel/blk_drv/scsi/aha1542.c | i = xscsi2int(cmd+2); |
cmd | 264 | kernel/blk_drv/scsi/aha1542.c | else if (*cmd == READ_6 || *cmd == WRITE_6) |
cmd | 265 | kernel/blk_drv/scsi/aha1542.c | i = scsi2int(cmd+2); |
cmd | 269 | kernel/blk_drv/scsi/aha1542.c | printk("aha1542_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
cmd | 271 | kernel/blk_drv/scsi/aha1542.c | printk("aha1542_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); |
cmd | 274 | kernel/blk_drv/scsi/aha1542.c | for (i = 0; i < (*cmd<=0x1f?6:10); i++) printk("%02x ", cmd[i]); |
cmd | 276 | kernel/blk_drv/scsi/aha1542.c | if (*cmd == WRITE_10 || *cmd == WRITE_6) |
cmd | 281 | kernel/blk_drv/scsi/aha1542.c | ccb.cdblen = (*cmd<=0x1f)?6:10; /* SCSI Command Descriptor Block Length */ |
cmd | 283 | kernel/blk_drv/scsi/aha1542.c | memcpy(ccb.cdb, cmd, ccb.cdblen); |
cmd | 338 | kernel/blk_drv/scsi/aha1542.c | static unchar cmd[5] = {CMD_MBINIT, 1}; |
cmd | 342 | kernel/blk_drv/scsi/aha1542.c | any2scsi((cmd+2), mb); |
cmd | 344 | kernel/blk_drv/scsi/aha1542.c | aha1542_out(cmd, 5); |
cmd | 408 | kernel/blk_drv/scsi/aha1542.c | static unchar cmd[] = { READ_CAPACITY, 0, 0, 0, 0, 0, 0, 0, 0, 0}; |
cmd | 413 | kernel/blk_drv/scsi/aha1542.c | if (!aha1542_command(i, cmd, buf, sizeof(buf))) { |
cmd | 423 | kernel/blk_drv/scsi/aha1542.c | unsigned char cmd[10]; |
cmd | 426 | kernel/blk_drv/scsi/aha1542.c | cmd[0] = READ_10; |
cmd | 427 | kernel/blk_drv/scsi/aha1542.c | cmd[1] = 0; |
cmd | 428 | kernel/blk_drv/scsi/aha1542.c | xany2scsi(cmd+2, i); |
cmd | 429 | kernel/blk_drv/scsi/aha1542.c | cmd[6] = 0; |
cmd | 430 | kernel/blk_drv/scsi/aha1542.c | cmd[7] = 0; |
cmd | 431 | kernel/blk_drv/scsi/aha1542.c | cmd[8] = 1; |
cmd | 432 | kernel/blk_drv/scsi/aha1542.c | cmd[9] = 0; |
cmd | 433 | kernel/blk_drv/scsi/aha1542.c | aha1542_command(0, cmd, buffer, 512); |
cmd | 74 | kernel/blk_drv/scsi/scsi_ioctl.c | char cmd[10]; |
cmd | 88 | kernel/blk_drv/scsi/scsi_ioctl.c | memcpy_fromfs ((void *) cmd, cmd_in, cmdlen = COMMAND_SIZE (opcode)); |
cmd | 106 | kernel/blk_drv/scsi/scsi_ioctl.c | scsi_do_cmd(host, dev->id, cmd, buf, ((outlen > MAX_BUF) ? |
cmd | 121 | kernel/blk_drv/scsi/scsi_ioctl.c | printk("%02x ", cmd[i]); |
cmd | 137 | kernel/blk_drv/scsi/scsi_ioctl.c | int scsi_ioctl (int dev, int cmd, void *arg) |
cmd | 139 | kernel/blk_drv/scsi/scsi_ioctl.c | if ((cmd != 0 && dev > NR_SCSI_DEVICES) || dev < 0) |
cmd | 141 | kernel/blk_drv/scsi/scsi_ioctl.c | if ((cmd == 0 && dev > MAX_SCSI_HOSTS)) |
cmd | 144 | kernel/blk_drv/scsi/scsi_ioctl.c | switch (cmd) { |
cmd | 165 | kernel/blk_drv/scsi/sd.c | unsigned char cmd[10]; |
cmd | 196 | kernel/blk_drv/scsi/sd.c | switch (CURRENT->cmd) |
cmd | 204 | kernel/blk_drv/scsi/sd.c | cmd[0] = WRITE_6; |
cmd | 207 | kernel/blk_drv/scsi/sd.c | cmd[0] = READ_6; |
cmd | 210 | kernel/blk_drv/scsi/sd.c | printk ("Unknown sd command %d\r\n", CURRENT->cmd); |
cmd | 214 | kernel/blk_drv/scsi/sd.c | cmd[1] = (LUN << 5) & 0xe0; |
cmd | 221 | kernel/blk_drv/scsi/sd.c | cmd[0] += READ_10 - READ_6 ; |
cmd | 222 | kernel/blk_drv/scsi/sd.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
cmd | 223 | kernel/blk_drv/scsi/sd.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
cmd | 224 | kernel/blk_drv/scsi/sd.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
cmd | 225 | kernel/blk_drv/scsi/sd.c | cmd[5] = (unsigned char) block & 0xff; |
cmd | 226 | kernel/blk_drv/scsi/sd.c | cmd[6] = cmd[9] = 0; |
cmd | 227 | kernel/blk_drv/scsi/sd.c | cmd[7] = (unsigned char) (this_count >> 8) & 0xff; |
cmd | 228 | kernel/blk_drv/scsi/sd.c | cmd[8] = (unsigned char) this_count & 0xff; |
cmd | 235 | kernel/blk_drv/scsi/sd.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
cmd | 236 | kernel/blk_drv/scsi/sd.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
cmd | 237 | kernel/blk_drv/scsi/sd.c | cmd[3] = (unsigned char) block & 0xff; |
cmd | 238 | kernel/blk_drv/scsi/sd.c | cmd[4] = (unsigned char) this_count; |
cmd | 239 | kernel/blk_drv/scsi/sd.c | cmd[5] = 0; |
cmd | 242 | kernel/blk_drv/scsi/sd.c | scsi_do_cmd (HOST, ID, (void *) cmd, CURRENT->buffer, this_count << 9, |
cmd | 259 | kernel/blk_drv/scsi/sd.c | unsigned char cmd[10]; |
cmd | 267 | kernel/blk_drv/scsi/sd.c | cmd[0] = READ_CAPACITY; |
cmd | 269 | kernel/blk_drv/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
cmd | 270 | kernel/blk_drv/scsi/sd.c | memset ((void *) &cmd[2], 0, 8); |
cmd | 278 | kernel/blk_drv/scsi/sd.c | (void *) cmd, (void *) buffer, |
cmd | 343 | kernel/blk_drv/scsi/sd.c | cmd[0] = READ_6; |
cmd | 344 | kernel/blk_drv/scsi/sd.c | cmd[2] = cmd[3] = cmd[5] = 0; |
cmd | 345 | kernel/blk_drv/scsi/sd.c | cmd[4] = 1; |
cmd | 349 | kernel/blk_drv/scsi/sd.c | (void *) cmd, (void *) buffer, 512, sd_init_done, SD_TIMEOUT, |
cmd | 9 | kernel/blk_drv/scsi/sd_ioctl.c | extern int scsi_ioctl (int 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(int 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 | 227 | kernel/chr_drv/tty_ioctl.c | unsigned int cmd, unsigned int arg) |
cmd | 249 | kernel/chr_drv/tty_ioctl.c | switch (cmd) { |
cmd | 394 | kernel/chr_drv/tty_ioctl.c | return vt_ioctl(tty, dev, cmd, arg); |
cmd | 72 | kernel/chr_drv/vt.c | vt_ioctl(struct tty_struct *tty, int dev, int cmd, int arg) |
cmd | 80 | kernel/chr_drv/vt.c | switch (cmd) { |
cmd | 100 | kernel/chr_drv/vt.c | return sys_ioperm(arg, 1, (cmd == KDADDIO)) ? -ENXIO : 0; |
cmd | 105 | 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 | 50 | net/socket.c | unsigned int cmd, unsigned int arg); |
cmd | 269 | net/socket.c | sock_ioctl(struct inode *inode, struct file *file, unsigned int cmd, |
cmd | 274 | net/socket.c | PRINTK("sock_ioctl: inode=0x%x cmd=0x%x arg=%d\n", inode, cmd, arg); |
cmd | 279 | net/socket.c | switch (cmd) { |
cmd | 289 | net/socket.c | return sock->ops->ioctl(sock, cmd, arg); |
cmd | 57 | net/unix.c | static int unix_proto_ioctl(struct socket *sock, unsigned int cmd, |
cmd | 566 | net/unix.c | unix_proto_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
cmd | 573 | net/unix.c | switch (cmd) { |