Lines Matching refs:ctrl_cmd
2768 static void pkt_get_status(struct pkt_ctrl_command *ctrl_cmd) in pkt_get_status() argument
2774 pd = pkt_find_dev_from_minor(ctrl_cmd->dev_index); in pkt_get_status()
2776 ctrl_cmd->dev = new_encode_dev(file_bdev(pd->bdev_file)->bd_dev); in pkt_get_status()
2777 ctrl_cmd->pkt_dev = new_encode_dev(pd->pkt_dev); in pkt_get_status()
2779 ctrl_cmd->dev = 0; in pkt_get_status()
2780 ctrl_cmd->pkt_dev = 0; in pkt_get_status()
2782 ctrl_cmd->num_devices = MAX_WRITERS; in pkt_get_status()
2790 struct pkt_ctrl_command ctrl_cmd; in pkt_ctl_ioctl() local
2797 if (copy_from_user(&ctrl_cmd, argp, sizeof(struct pkt_ctrl_command))) in pkt_ctl_ioctl()
2800 switch (ctrl_cmd.command) { in pkt_ctl_ioctl()
2804 ret = pkt_setup_dev(new_decode_dev(ctrl_cmd.dev), &pkt_dev); in pkt_ctl_ioctl()
2805 ctrl_cmd.pkt_dev = new_encode_dev(pkt_dev); in pkt_ctl_ioctl()
2810 ret = pkt_remove_dev(new_decode_dev(ctrl_cmd.pkt_dev)); in pkt_ctl_ioctl()
2813 pkt_get_status(&ctrl_cmd); in pkt_ctl_ioctl()
2819 if (copy_to_user(argp, &ctrl_cmd, sizeof(struct pkt_ctrl_command))) in pkt_ctl_ioctl()