Lines Matching refs:sisfb_command
74 struct sisfb_cmd *sisfb_command);
1840 if(copy_from_user(&ivideo->sisfb_command, (void __user *)arg, in sisfb_ioctl()
1844 sisfb_handle_command(ivideo, &ivideo->sisfb_command); in sisfb_ioctl()
1846 if(copy_to_user((void __user *)arg, &ivideo->sisfb_command, in sisfb_ioctl()
3941 sisfb_handle_command(struct sis_video_info *ivideo, struct sisfb_cmd *sisfb_command) in sisfb_handle_command() argument
3945 switch(sisfb_command->sisfb_cmd) { in sisfb_handle_command()
3948 sisfb_command->sisfb_result[0] = SISFB_CMD_ERR_EARLY; in sisfb_handle_command()
3950 sisfb_command->sisfb_result[0] = SISFB_CMD_ERR_OK; in sisfb_handle_command()
3951 sisfb_command->sisfb_result[1] = ivideo->currentvbflags; in sisfb_handle_command()
3952 sisfb_command->sisfb_result[2] = ivideo->vbflags2; in sisfb_handle_command()
3958 sisfb_command->sisfb_result[0] = SISFB_CMD_ERR_EARLY; in sisfb_handle_command()
3959 } else if(sisfb_command->sisfb_arg[0] == 99) { in sisfb_handle_command()
3961 sisfb_command->sisfb_result[1] = ivideo->sisfb_crt1off ? 0 : 1; in sisfb_handle_command()
3962 sisfb_command->sisfb_result[0] = SISFB_CMD_ERR_OK; in sisfb_handle_command()
3964 sisfb_command->sisfb_result[0] = SISFB_CMD_ERR_LOCKED; in sisfb_handle_command()
3966 (sisfb_command->sisfb_arg[0] == 0)) { in sisfb_handle_command()
3967 sisfb_command->sisfb_result[0] = SISFB_CMD_ERR_NOCRT2; in sisfb_handle_command()
3969 sisfb_command->sisfb_result[0] = SISFB_CMD_ERR_OK; in sisfb_handle_command()
3970 mycrt1off = sisfb_command->sisfb_arg[0] ? 0 : 1; in sisfb_handle_command()
3975 sisfb_command->sisfb_result[0] = SISFB_CMD_ERR_OTHER; in sisfb_handle_command()
3978 sisfb_command->sisfb_result[1] = ivideo->sisfb_crt1off ? 0 : 1; in sisfb_handle_command()
3983 sisfb_command->sisfb_result[0] = SISFB_CMD_ERR_UNKNOWN; in sisfb_handle_command()
3985 sisfb_command->sisfb_cmd); in sisfb_handle_command()