Lines Matching refs:mc_cmd
375 struct fsl_mc_command *mc_cmd) in fsl_mc_command_check() argument
385 cmdid = mc_cmd_hdr_read_cmdid(mc_cmd); in fsl_mc_command_check()
399 mc_cmd_max_size = sizeof(*mc_cmd); in fsl_mc_command_check()
400 mc_cmd_end = ((char *)mc_cmd) + desc->size; in fsl_mc_command_check()
413 token_provided = mc_cmd_hdr_read_token(mc_cmd) ? true : false; in fsl_mc_command_check()
416 cmdid, mc_cmd_hdr_read_token(mc_cmd)); in fsl_mc_command_check()
448 struct fsl_mc_command mc_cmd; in fsl_mc_uapi_send_command() local
451 error = copy_from_user(&mc_cmd, (void __user *)arg, sizeof(mc_cmd)); in fsl_mc_uapi_send_command()
455 error = fsl_mc_command_check(mc_dev, &mc_cmd); in fsl_mc_uapi_send_command()
459 error = mc_send_command(mc_io, &mc_cmd); in fsl_mc_uapi_send_command()
463 error = copy_to_user((void __user *)arg, &mc_cmd, sizeof(mc_cmd)); in fsl_mc_uapi_send_command()