Lines Matching full:stat
23 static int fdtv_ca_ready(struct firedtv_tuner_status *stat) in fdtv_ca_ready() argument
25 return stat->ca_initialization_status == 1 && in fdtv_ca_ready()
26 stat->ca_error_flag == 0 && in fdtv_ca_ready()
27 stat->ca_dvb_flag == 1 && in fdtv_ca_ready()
28 stat->ca_module_present_status == 1; in fdtv_ca_ready()
31 static int fdtv_get_ca_flags(struct firedtv_tuner_status *stat) in fdtv_get_ca_flags() argument
35 if (stat->ca_module_present_status == 1) in fdtv_get_ca_flags()
37 if (stat->ca_initialization_status == 1 && in fdtv_get_ca_flags()
38 stat->ca_error_flag == 0 && in fdtv_get_ca_flags()
39 stat->ca_dvb_flag == 1) in fdtv_get_ca_flags()
57 struct firedtv_tuner_status stat; in fdtv_ca_get_slot_info() local
61 err = avc_tuner_status(fdtv, &stat); in fdtv_ca_get_slot_info()
69 slot->flags = fdtv_get_ca_flags(&stat); in fdtv_ca_get_slot_info()
96 struct firedtv_tuner_status stat; in fdtv_ca_get_msg() local
107 err = avc_tuner_status(fdtv, &stat); in fdtv_ca_get_msg()
110 if (stat.ca_mmi == 1) in fdtv_ca_get_msg()
178 struct firedtv_tuner_status stat; in fdtv_ca_ioctl() local
203 avc_tuner_status(fdtv, &stat); in fdtv_ca_ioctl()
232 struct firedtv_tuner_status stat; in fdtv_ca_register() local
235 if (avc_tuner_status(fdtv, &stat)) in fdtv_ca_register()
238 if (!fdtv_ca_ready(&stat)) in fdtv_ca_register()
244 if (stat.ca_application_info == 0) in fdtv_ca_register()
246 if (stat.ca_date_time_request == 1) in fdtv_ca_register()