Lines Matching refs:cmd
200 int blk_verify_command(unsigned char *cmd, fmode_t mode) in blk_verify_command() argument
209 if (test_bit(cmd[0], filter->read_ok)) in blk_verify_command()
213 if (test_bit(cmd[0], filter->write_ok) && (mode & FMODE_WRITE)) in blk_verify_command()
225 if (copy_from_user(req->cmd, hdr->cmdp, hdr->cmd_len)) in blk_fill_sghdr_rq()
227 if (blk_verify_command(req->cmd, mode)) in blk_fill_sghdr_rq()
320 req->cmd = kzalloc(hdr->cmd_len, GFP_KERNEL); in sg_io()
321 if (!req->cmd) in sg_io()
454 if (copy_from_user(req->cmd, sic->data, cmdlen)) in sg_scsi_ioctl()
460 err = blk_verify_command(req->cmd, mode); in sg_scsi_ioctl()
523 int cmd, int data) in __blk_send_generic() argument
532 scsi_req(rq)->cmd[0] = cmd; in __blk_send_generic()
533 scsi_req(rq)->cmd[4] = data; in __blk_send_generic()
638 unsigned char cmd[CDROM_PACKET_SIZE]; member
671 memcpy(&cgc->cmd, &cgc32.cmd, CDROM_PACKET_SIZE); in scsi_get_cdrom_generic_arg()
696 memcpy(&cgc32.cmd, &cgc->cmd, CDROM_PACKET_SIZE); in scsi_put_cdrom_generic_arg()
725 hdr.cmd_len = sizeof(cgc.cmd); in scsi_cdrom_send_packet()
749 hdr.cmdp = ((struct cdrom_generic_command __user*) arg)->cmd; in scsi_cdrom_send_packet()
750 hdr.cmd_len = sizeof(cgc.cmd); in scsi_cdrom_send_packet()
768 unsigned int cmd, void __user *arg) in scsi_cmd_ioctl() argument
775 switch (cmd) { in scsi_cmd_ioctl()
846 int scsi_verify_blk_ioctl(struct block_device *bd, unsigned int cmd) in scsi_verify_blk_ioctl() argument
859 unsigned int cmd, void __user *arg) in scsi_cmd_blk_ioctl() argument
863 ret = scsi_verify_blk_ioctl(bd, cmd); in scsi_cmd_blk_ioctl()
867 return scsi_cmd_ioctl(bd->bd_disk->queue, bd->bd_disk, mode, cmd, arg); in scsi_cmd_blk_ioctl()
880 req->cmd = req->__cmd; in scsi_req_init()