Lines Matching refs:ctrl_cmd
2773 static void pkt_get_status(struct pkt_ctrl_command *ctrl_cmd) in pkt_get_status() argument
2779 pd = pkt_find_dev_from_minor(ctrl_cmd->dev_index); in pkt_get_status()
2781 ctrl_cmd->dev = new_encode_dev(pd->bdev->bd_dev); in pkt_get_status()
2782 ctrl_cmd->pkt_dev = new_encode_dev(pd->pkt_dev); in pkt_get_status()
2784 ctrl_cmd->dev = 0; in pkt_get_status()
2785 ctrl_cmd->pkt_dev = 0; in pkt_get_status()
2787 ctrl_cmd->num_devices = MAX_WRITERS; in pkt_get_status()
2795 struct pkt_ctrl_command ctrl_cmd; in pkt_ctl_ioctl() local
2802 if (copy_from_user(&ctrl_cmd, argp, sizeof(struct pkt_ctrl_command))) in pkt_ctl_ioctl()
2805 switch (ctrl_cmd.command) { in pkt_ctl_ioctl()
2809 ret = pkt_setup_dev(new_decode_dev(ctrl_cmd.dev), &pkt_dev); in pkt_ctl_ioctl()
2810 ctrl_cmd.pkt_dev = new_encode_dev(pkt_dev); in pkt_ctl_ioctl()
2815 ret = pkt_remove_dev(new_decode_dev(ctrl_cmd.pkt_dev)); in pkt_ctl_ioctl()
2818 pkt_get_status(&ctrl_cmd); in pkt_ctl_ioctl()
2824 if (copy_to_user(argp, &ctrl_cmd, sizeof(struct pkt_ctrl_command))) in pkt_ctl_ioctl()