1
2
3
4#line 19 "include/asm-generic/int-ll64.h"
5typedef signed char __s8;
6#line 20 "include/asm-generic/int-ll64.h"
7typedef unsigned char __u8;
8#line 22 "include/asm-generic/int-ll64.h"
9typedef short __s16;
10#line 23 "include/asm-generic/int-ll64.h"
11typedef unsigned short __u16;
12#line 25 "include/asm-generic/int-ll64.h"
13typedef int __s32;
14#line 26 "include/asm-generic/int-ll64.h"
15typedef unsigned int __u32;
16#line 29 "include/asm-generic/int-ll64.h"
17typedef long long __s64;
18#line 30 "include/asm-generic/int-ll64.h"
19typedef unsigned long long __u64;
20#line 43 "include/asm-generic/int-ll64.h"
21typedef unsigned char u8;
22#line 46 "include/asm-generic/int-ll64.h"
23typedef unsigned short u16;
24#line 48 "include/asm-generic/int-ll64.h"
25typedef int s32;
26#line 49 "include/asm-generic/int-ll64.h"
27typedef unsigned int u32;
28#line 51 "include/asm-generic/int-ll64.h"
29typedef long long s64;
30#line 52 "include/asm-generic/int-ll64.h"
31typedef unsigned long long u64;
32#line 11 "include/asm-generic/types.h"
33typedef unsigned short umode_t;
34#line 11 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
35typedef unsigned int __kernel_mode_t;
36#line 14 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
37typedef int __kernel_pid_t;
38#line 16 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
39typedef unsigned int __kernel_uid_t;
40#line 17 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
41typedef unsigned int __kernel_gid_t;
42#line 18 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
43typedef unsigned long __kernel_size_t;
44#line 19 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
45typedef long __kernel_ssize_t;
46#line 21 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
47typedef long __kernel_time_t;
48#line 22 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
49typedef long __kernel_suseconds_t;
50#line 23 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
51typedef long __kernel_clock_t;
52#line 24 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
53typedef int __kernel_timer_t;
54#line 25 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
55typedef int __kernel_clockid_t;
56#line 32 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
57typedef long long __kernel_loff_t;
58#line 41 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
59typedef __kernel_uid_t __kernel_uid32_t;
60#line 42 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
61typedef __kernel_gid_t __kernel_gid32_t;
62#line 21 "include/linux/types.h"
63typedef __u32 __kernel_dev_t;
64#line 24 "include/linux/types.h"
65typedef __kernel_dev_t dev_t;
66#line 26 "include/linux/types.h"
67typedef __kernel_mode_t mode_t;
68#line 29 "include/linux/types.h"
69typedef __kernel_pid_t pid_t;
70#line 34 "include/linux/types.h"
71typedef __kernel_clockid_t clockid_t;
72#line 37 "include/linux/types.h"
73typedef _Bool bool;
74#line 39 "include/linux/types.h"
75typedef __kernel_uid32_t uid_t;
76#line 40 "include/linux/types.h"
77typedef __kernel_gid32_t gid_t;
78#line 53 "include/linux/types.h"
79typedef __kernel_loff_t loff_t;
80#line 62 "include/linux/types.h"
81typedef __kernel_size_t size_t;
82#line 67 "include/linux/types.h"
83typedef __kernel_ssize_t ssize_t;
84#line 77 "include/linux/types.h"
85typedef __kernel_time_t time_t;
86#line 110 "include/linux/types.h"
87typedef __s32 int32_t;
88#line 116 "include/linux/types.h"
89typedef __u32 uint32_t;
90#line 141 "include/linux/types.h"
91typedef unsigned long sector_t;
92#line 142 "include/linux/types.h"
93typedef unsigned long blkcnt_t;
94#line 154 "include/linux/types.h"
95typedef u64 dma_addr_t;
96#line 177 "include/linux/types.h"
97typedef __u16 __le16;
98#line 201 "include/linux/types.h"
99typedef unsigned int gfp_t;
100#line 202 "include/linux/types.h"
101typedef unsigned int fmode_t;
102#line 212 "include/linux/types.h"
103struct __anonstruct_atomic_t_7 {
104 int counter ;
105};
106#line 212 "include/linux/types.h"
107typedef struct __anonstruct_atomic_t_7 atomic_t;
108#line 217 "include/linux/types.h"
109struct __anonstruct_atomic64_t_8 {
110 long counter ;
111};
112#line 217 "include/linux/types.h"
113typedef struct __anonstruct_atomic64_t_8 atomic64_t;
114#line 222 "include/linux/types.h"
115struct list_head {
116 struct list_head *next ;
117 struct list_head *prev ;
118};
119#line 226
120struct hlist_node;
121#line 226
122struct hlist_node;
123#line 226 "include/linux/types.h"
124struct hlist_head {
125 struct hlist_node *first ;
126};
127#line 230 "include/linux/types.h"
128struct hlist_node {
129 struct hlist_node *next ;
130 struct hlist_node **pprev ;
131};
132#line 59 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/alternative.h"
133struct module;
134#line 59
135struct module;
136#line 145 "include/linux/init.h"
137typedef void (*ctor_fn_t)(void);
138#line 10 "include/asm-generic/bug.h"
139struct bug_entry {
140 int bug_addr_disp ;
141 int file_disp ;
142 unsigned short line ;
143 unsigned short flags ;
144};
145#line 113 "include/linux/kernel.h"
146struct completion;
147#line 113
148struct completion;
149#line 114
150struct pt_regs;
151#line 114
152struct pt_regs;
153#line 322
154struct pid;
155#line 322
156struct pid;
157#line 12 "include/linux/thread_info.h"
158struct timespec;
159#line 12
160struct timespec;
161#line 13
162struct compat_timespec;
163#line 13
164struct compat_timespec;
165#line 18 "include/linux/thread_info.h"
166struct __anonstruct_futex_11 {
167 u32 *uaddr ;
168 u32 val ;
169 u32 flags ;
170 u32 bitset ;
171 u64 time ;
172 u32 *uaddr2 ;
173};
174#line 18 "include/linux/thread_info.h"
175struct __anonstruct_nanosleep_12 {
176 clockid_t clockid ;
177 struct timespec *rmtp ;
178 struct compat_timespec *compat_rmtp ;
179 u64 expires ;
180};
181#line 18
182struct pollfd;
183#line 18
184struct pollfd;
185#line 18 "include/linux/thread_info.h"
186struct __anonstruct_poll_13 {
187 struct pollfd *ufds ;
188 int nfds ;
189 int has_timeout ;
190 unsigned long tv_sec ;
191 unsigned long tv_nsec ;
192};
193#line 18 "include/linux/thread_info.h"
194union __anonunion____missing_field_name_10 {
195 struct __anonstruct_futex_11 futex ;
196 struct __anonstruct_nanosleep_12 nanosleep ;
197 struct __anonstruct_poll_13 poll ;
198};
199#line 18 "include/linux/thread_info.h"
200struct restart_block {
201 long (*fn)(struct restart_block * ) ;
202 union __anonunion____missing_field_name_10 __annonCompField4 ;
203};
204#line 18 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/page.h"
205struct page;
206#line 18
207struct page;
208#line 20 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/thread_info.h"
209struct task_struct;
210#line 20
211struct task_struct;
212#line 21
213struct exec_domain;
214#line 21
215struct exec_domain;
216#line 8 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
217struct mm_struct;
218#line 8
219struct mm_struct;
220#line 99 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/ptrace.h"
221struct pt_regs {
222 unsigned long r15 ;
223 unsigned long r14 ;
224 unsigned long r13 ;
225 unsigned long r12 ;
226 unsigned long bp ;
227 unsigned long bx ;
228 unsigned long r11 ;
229 unsigned long r10 ;
230 unsigned long r9 ;
231 unsigned long r8 ;
232 unsigned long ax ;
233 unsigned long cx ;
234 unsigned long dx ;
235 unsigned long si ;
236 unsigned long di ;
237 unsigned long orig_ax ;
238 unsigned long ip ;
239 unsigned long cs ;
240 unsigned long flags ;
241 unsigned long sp ;
242 unsigned long ss ;
243};
244#line 141 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/vm86.h"
245struct kernel_vm86_regs {
246 struct pt_regs pt ;
247 unsigned short es ;
248 unsigned short __esh ;
249 unsigned short ds ;
250 unsigned short __dsh ;
251 unsigned short fs ;
252 unsigned short __fsh ;
253 unsigned short gs ;
254 unsigned short __gsh ;
255};
256#line 11 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/math_emu.h"
257union __anonunion____missing_field_name_14 {
258 struct pt_regs *regs ;
259 struct kernel_vm86_regs *vm86 ;
260};
261#line 11 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/math_emu.h"
262struct math_emu_info {
263 long ___orig_eip ;
264 union __anonunion____missing_field_name_14 __annonCompField5 ;
265};
266#line 13 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/pgtable_64_types.h"
267typedef unsigned long pgdval_t;
268#line 14 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/pgtable_64_types.h"
269typedef unsigned long pgprotval_t;
270#line 190 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/pgtable_types.h"
271struct pgprot {
272 pgprotval_t pgprot ;
273};
274#line 190 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/pgtable_types.h"
275typedef struct pgprot pgprot_t;
276#line 192 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/pgtable_types.h"
277struct __anonstruct_pgd_t_17 {
278 pgdval_t pgd ;
279};
280#line 192 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/pgtable_types.h"
281typedef struct __anonstruct_pgd_t_17 pgd_t;
282#line 280 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/pgtable_types.h"
283typedef struct page *pgtable_t;
284#line 293
285struct file;
286#line 293
287struct file;
288#line 311
289struct seq_file;
290#line 311
291struct seq_file;
292#line 22 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/desc_defs.h"
293struct __anonstruct____missing_field_name_22 {
294 unsigned int a ;
295 unsigned int b ;
296};
297#line 22 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/desc_defs.h"
298struct __anonstruct____missing_field_name_23 {
299 u16 limit0 ;
300 u16 base0 ;
301 unsigned int base1 : 8 ;
302 unsigned int type : 4 ;
303 unsigned int s : 1 ;
304 unsigned int dpl : 2 ;
305 unsigned int p : 1 ;
306 unsigned int limit : 4 ;
307 unsigned int avl : 1 ;
308 unsigned int l : 1 ;
309 unsigned int d : 1 ;
310 unsigned int g : 1 ;
311 unsigned int base2 : 8 ;
312};
313#line 22 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/desc_defs.h"
314union __anonunion____missing_field_name_21 {
315 struct __anonstruct____missing_field_name_22 __annonCompField7 ;
316 struct __anonstruct____missing_field_name_23 __annonCompField8 ;
317};
318#line 22 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/desc_defs.h"
319struct desc_struct {
320 union __anonunion____missing_field_name_21 __annonCompField9 ;
321} __attribute__((__packed__)) ;
322#line 46 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/paravirt_types.h"
323struct thread_struct;
324#line 46
325struct thread_struct;
326#line 52
327struct cpumask;
328#line 52
329struct cpumask;
330#line 322
331struct arch_spinlock;
332#line 322
333struct arch_spinlock;
334#line 13 "include/linux/cpumask.h"
335struct cpumask {
336 unsigned long bits[((4096UL + 8UL * sizeof(long )) - 1UL) / (8UL * sizeof(long ))] ;
337};
338#line 13 "include/linux/cpumask.h"
339typedef struct cpumask cpumask_t;
340#line 622 "include/linux/cpumask.h"
341typedef struct cpumask *cpumask_var_t;
342#line 91 "include/linux/personality.h"
343struct map_segment;
344#line 91
345struct map_segment;
346#line 91 "include/linux/personality.h"
347struct exec_domain {
348 char const *name ;
349 void (*handler)(int , struct pt_regs * ) ;
350 unsigned char pers_low ;
351 unsigned char pers_high ;
352 unsigned long *signal_map ;
353 unsigned long *signal_invmap ;
354 struct map_segment *err_map ;
355 struct map_segment *socktype_map ;
356 struct map_segment *sockopt_map ;
357 struct map_segment *af_map ;
358 struct module *module ;
359 struct exec_domain *next ;
360};
361#line 280 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
362struct i387_fsave_struct {
363 u32 cwd ;
364 u32 swd ;
365 u32 twd ;
366 u32 fip ;
367 u32 fcs ;
368 u32 foo ;
369 u32 fos ;
370 u32 st_space[20] ;
371 u32 status ;
372};
373#line 296 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
374struct __anonstruct____missing_field_name_31 {
375 u64 rip ;
376 u64 rdp ;
377};
378#line 296 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
379struct __anonstruct____missing_field_name_32 {
380 u32 fip ;
381 u32 fcs ;
382 u32 foo ;
383 u32 fos ;
384};
385#line 296 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
386union __anonunion____missing_field_name_30 {
387 struct __anonstruct____missing_field_name_31 __annonCompField12 ;
388 struct __anonstruct____missing_field_name_32 __annonCompField13 ;
389};
390#line 296 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
391union __anonunion____missing_field_name_33 {
392 u32 padding1[12] ;
393 u32 sw_reserved[12] ;
394};
395#line 296 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
396struct i387_fxsave_struct {
397 u16 cwd ;
398 u16 swd ;
399 u16 twd ;
400 u16 fop ;
401 union __anonunion____missing_field_name_30 __annonCompField14 ;
402 u32 mxcsr ;
403 u32 mxcsr_mask ;
404 u32 st_space[32] ;
405 u32 xmm_space[64] ;
406 u32 padding[12] ;
407 union __anonunion____missing_field_name_33 __annonCompField15 ;
408} __attribute__((__aligned__(16))) ;
409#line 331 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
410struct i387_soft_struct {
411 u32 cwd ;
412 u32 swd ;
413 u32 twd ;
414 u32 fip ;
415 u32 fcs ;
416 u32 foo ;
417 u32 fos ;
418 u32 st_space[20] ;
419 u8 ftop ;
420 u8 changed ;
421 u8 lookahead ;
422 u8 no_update ;
423 u8 rm ;
424 u8 alimit ;
425 struct math_emu_info *info ;
426 u32 entry_eip ;
427};
428#line 351 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
429struct ymmh_struct {
430 u32 ymmh_space[64] ;
431};
432#line 356 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
433struct xsave_hdr_struct {
434 u64 xstate_bv ;
435 u64 reserved1[2] ;
436 u64 reserved2[5] ;
437} __attribute__((__packed__)) ;
438#line 362 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
439struct xsave_struct {
440 struct i387_fxsave_struct i387 ;
441 struct xsave_hdr_struct xsave_hdr ;
442 struct ymmh_struct ymmh ;
443} __attribute__((__packed__, __aligned__(64))) ;
444#line 369 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
445union thread_xstate {
446 struct i387_fsave_struct fsave ;
447 struct i387_fxsave_struct fxsave ;
448 struct i387_soft_struct soft ;
449 struct xsave_struct xsave ;
450};
451#line 376 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
452struct fpu {
453 union thread_xstate *state ;
454};
455#line 421
456struct kmem_cache;
457#line 421
458struct kmem_cache;
459#line 423
460struct perf_event;
461#line 423
462struct perf_event;
463#line 425 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
464struct thread_struct {
465 struct desc_struct tls_array[3] ;
466 unsigned long sp0 ;
467 unsigned long sp ;
468 unsigned long usersp ;
469 unsigned short es ;
470 unsigned short ds ;
471 unsigned short fsindex ;
472 unsigned short gsindex ;
473 unsigned long fs ;
474 unsigned long gs ;
475 struct perf_event *ptrace_bps[4] ;
476 unsigned long debugreg6 ;
477 unsigned long ptrace_dr7 ;
478 unsigned long cr2 ;
479 unsigned long trap_no ;
480 unsigned long error_code ;
481 struct fpu fpu ;
482 unsigned long *io_bitmap_ptr ;
483 unsigned long iopl ;
484 unsigned int io_bitmap_max ;
485};
486#line 620 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
487struct __anonstruct_mm_segment_t_35 {
488 unsigned long seg ;
489};
490#line 620 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
491typedef struct __anonstruct_mm_segment_t_35 mm_segment_t;
492#line 23 "include/asm-generic/atomic-long.h"
493typedef atomic64_t atomic_long_t;
494#line 26 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/thread_info.h"
495struct thread_info {
496 struct task_struct *task ;
497 struct exec_domain *exec_domain ;
498 __u32 flags ;
499 __u32 status ;
500 __u32 cpu ;
501 int preempt_count ;
502 mm_segment_t addr_limit ;
503 struct restart_block restart_block ;
504 void *sysenter_return ;
505 int uaccess_err ;
506};
507#line 8 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/spinlock_types.h"
508struct arch_spinlock {
509 unsigned int slock ;
510};
511#line 8 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/spinlock_types.h"
512typedef struct arch_spinlock arch_spinlock_t;
513#line 14 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/spinlock_types.h"
514struct __anonstruct_arch_rwlock_t_36 {
515 unsigned int lock ;
516};
517#line 14 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/spinlock_types.h"
518typedef struct __anonstruct_arch_rwlock_t_36 arch_rwlock_t;
519#line 13 "include/linux/lockdep.h"
520struct lockdep_map;
521#line 13
522struct lockdep_map;
523#line 10 "include/linux/stacktrace.h"
524struct stack_trace {
525 unsigned int nr_entries ;
526 unsigned int max_entries ;
527 unsigned long *entries ;
528 int skip ;
529};
530#line 50 "include/linux/lockdep.h"
531struct lockdep_subclass_key {
532 char __one_byte ;
533} __attribute__((__packed__)) ;
534#line 54 "include/linux/lockdep.h"
535struct lock_class_key {
536 struct lockdep_subclass_key subkeys[8UL] ;
537};
538#line 65 "include/linux/lockdep.h"
539struct lock_class {
540 struct list_head hash_entry ;
541 struct list_head lock_entry ;
542 struct lockdep_subclass_key *key ;
543 unsigned int subclass ;
544 unsigned int dep_gen_id ;
545 unsigned long usage_mask ;
546 struct stack_trace usage_traces[13] ;
547 struct list_head locks_after ;
548 struct list_head locks_before ;
549 unsigned int version ;
550 unsigned long ops ;
551 char const *name ;
552 int name_version ;
553 unsigned long contention_point[4] ;
554 unsigned long contending_point[4] ;
555};
556#line 150 "include/linux/lockdep.h"
557struct lockdep_map {
558 struct lock_class_key *key ;
559 struct lock_class *class_cache[2] ;
560 char const *name ;
561 int cpu ;
562 unsigned long ip ;
563};
564#line 196 "include/linux/lockdep.h"
565struct held_lock {
566 u64 prev_chain_key ;
567 unsigned long acquire_ip ;
568 struct lockdep_map *instance ;
569 struct lockdep_map *nest_lock ;
570 u64 waittime_stamp ;
571 u64 holdtime_stamp ;
572 unsigned int class_idx : 13 ;
573 unsigned int irq_context : 2 ;
574 unsigned int trylock : 1 ;
575 unsigned int read : 2 ;
576 unsigned int check : 2 ;
577 unsigned int hardirqs_off : 1 ;
578 unsigned int references : 11 ;
579};
580#line 20 "include/linux/spinlock_types.h"
581struct raw_spinlock {
582 arch_spinlock_t raw_lock ;
583 unsigned int magic ;
584 unsigned int owner_cpu ;
585 void *owner ;
586 struct lockdep_map dep_map ;
587};
588#line 20 "include/linux/spinlock_types.h"
589typedef struct raw_spinlock raw_spinlock_t;
590#line 64 "include/linux/spinlock_types.h"
591struct __anonstruct____missing_field_name_38 {
592 u8 __padding[(unsigned int )(& ((struct raw_spinlock *)0)->dep_map)] ;
593 struct lockdep_map dep_map ;
594};
595#line 64 "include/linux/spinlock_types.h"
596union __anonunion____missing_field_name_37 {
597 struct raw_spinlock rlock ;
598 struct __anonstruct____missing_field_name_38 __annonCompField17 ;
599};
600#line 64 "include/linux/spinlock_types.h"
601struct spinlock {
602 union __anonunion____missing_field_name_37 __annonCompField18 ;
603};
604#line 64 "include/linux/spinlock_types.h"
605typedef struct spinlock spinlock_t;
606#line 11 "include/linux/rwlock_types.h"
607struct __anonstruct_rwlock_t_39 {
608 arch_rwlock_t raw_lock ;
609 unsigned int magic ;
610 unsigned int owner_cpu ;
611 void *owner ;
612 struct lockdep_map dep_map ;
613};
614#line 11 "include/linux/rwlock_types.h"
615typedef struct __anonstruct_rwlock_t_39 rwlock_t;
616#line 119 "include/linux/seqlock.h"
617struct seqcount {
618 unsigned int sequence ;
619};
620#line 119 "include/linux/seqlock.h"
621typedef struct seqcount seqcount_t;
622#line 14 "include/linux/time.h"
623struct timespec {
624 __kernel_time_t tv_sec ;
625 long tv_nsec ;
626};
627#line 20 "include/linux/time.h"
628struct timeval {
629 __kernel_time_t tv_sec ;
630 __kernel_suseconds_t tv_usec ;
631};
632#line 62 "include/linux/stat.h"
633struct kstat {
634 u64 ino ;
635 dev_t dev ;
636 umode_t mode ;
637 unsigned int nlink ;
638 uid_t uid ;
639 gid_t gid ;
640 dev_t rdev ;
641 loff_t size ;
642 struct timespec atime ;
643 struct timespec mtime ;
644 struct timespec ctime ;
645 unsigned long blksize ;
646 unsigned long long blocks ;
647};
648#line 28 "include/linux/wait.h"
649struct __wait_queue;
650#line 28
651struct __wait_queue;
652#line 28 "include/linux/wait.h"
653typedef struct __wait_queue wait_queue_t;
654#line 32 "include/linux/wait.h"
655struct __wait_queue {
656 unsigned int flags ;
657 void *private ;
658 int (*func)(wait_queue_t *wait , unsigned int mode , int flags , void *key ) ;
659 struct list_head task_list ;
660};
661#line 50 "include/linux/wait.h"
662struct __wait_queue_head {
663 spinlock_t lock ;
664 struct list_head task_list ;
665};
666#line 54 "include/linux/wait.h"
667typedef struct __wait_queue_head wait_queue_head_t;
668#line 96 "include/linux/nodemask.h"
669struct __anonstruct_nodemask_t_41 {
670 unsigned long bits[(((unsigned long )(1 << 10) + 8UL * sizeof(long )) - 1UL) / (8UL * sizeof(long ))] ;
671};
672#line 96 "include/linux/nodemask.h"
673typedef struct __anonstruct_nodemask_t_41 nodemask_t;
674#line 48 "include/linux/mutex.h"
675struct mutex {
676 atomic_t count ;
677 spinlock_t wait_lock ;
678 struct list_head wait_list ;
679 struct task_struct *owner ;
680 char const *name ;
681 void *magic ;
682 struct lockdep_map dep_map ;
683};
684#line 69 "include/linux/mutex.h"
685struct mutex_waiter {
686 struct list_head list ;
687 struct task_struct *task ;
688 void *magic ;
689};
690#line 20 "include/linux/rwsem.h"
691struct rw_semaphore;
692#line 20
693struct rw_semaphore;
694#line 26 "include/linux/rwsem.h"
695struct rw_semaphore {
696 long count ;
697 spinlock_t wait_lock ;
698 struct list_head wait_list ;
699 struct lockdep_map dep_map ;
700};
701#line 177 "include/linux/ioport.h"
702struct device;
703#line 177
704struct device;
705#line 46 "include/linux/ktime.h"
706union ktime {
707 s64 tv64 ;
708};
709#line 59 "include/linux/ktime.h"
710typedef union ktime ktime_t;
711#line 10 "include/linux/timer.h"
712struct tvec_base;
713#line 10
714struct tvec_base;
715#line 12 "include/linux/timer.h"
716struct timer_list {
717 struct list_head entry ;
718 unsigned long expires ;
719 struct tvec_base *base ;
720 void (*function)(unsigned long ) ;
721 unsigned long data ;
722 int slack ;
723 int start_pid ;
724 void *start_site ;
725 char start_comm[16] ;
726 struct lockdep_map lockdep_map ;
727};
728#line 289
729struct hrtimer;
730#line 289
731struct hrtimer;
732#line 290
733enum hrtimer_restart;
734#line 290
735enum hrtimer_restart;
736#line 290
737enum hrtimer_restart;
738#line 17 "include/linux/workqueue.h"
739struct work_struct;
740#line 17
741struct work_struct;
742#line 79 "include/linux/workqueue.h"
743struct work_struct {
744 atomic_long_t data ;
745 struct list_head entry ;
746 void (*func)(struct work_struct *work ) ;
747 struct lockdep_map lockdep_map ;
748};
749#line 92 "include/linux/workqueue.h"
750struct delayed_work {
751 struct work_struct work ;
752 struct timer_list timer ;
753};
754#line 25 "include/linux/completion.h"
755struct completion {
756 unsigned int done ;
757 wait_queue_head_t wait ;
758};
759#line 50 "include/linux/pm.h"
760struct pm_message {
761 int event ;
762};
763#line 50 "include/linux/pm.h"
764typedef struct pm_message pm_message_t;
765#line 204 "include/linux/pm.h"
766struct dev_pm_ops {
767 int (*prepare)(struct device *dev ) ;
768 void (*complete)(struct device *dev ) ;
769 int (*suspend)(struct device *dev ) ;
770 int (*resume)(struct device *dev ) ;
771 int (*freeze)(struct device *dev ) ;
772 int (*thaw)(struct device *dev ) ;
773 int (*poweroff)(struct device *dev ) ;
774 int (*restore)(struct device *dev ) ;
775 int (*suspend_noirq)(struct device *dev ) ;
776 int (*resume_noirq)(struct device *dev ) ;
777 int (*freeze_noirq)(struct device *dev ) ;
778 int (*thaw_noirq)(struct device *dev ) ;
779 int (*poweroff_noirq)(struct device *dev ) ;
780 int (*restore_noirq)(struct device *dev ) ;
781 int (*runtime_suspend)(struct device *dev ) ;
782 int (*runtime_resume)(struct device *dev ) ;
783 int (*runtime_idle)(struct device *dev ) ;
784};
785#line 392
786enum rpm_status {
787 RPM_ACTIVE = 0,
788 RPM_RESUMING = 1,
789 RPM_SUSPENDED = 2,
790 RPM_SUSPENDING = 3
791} ;
792#line 414
793enum rpm_request {
794 RPM_REQ_NONE = 0,
795 RPM_REQ_IDLE = 1,
796 RPM_REQ_SUSPEND = 2,
797 RPM_REQ_AUTOSUSPEND = 3,
798 RPM_REQ_RESUME = 4
799} ;
800#line 422
801struct wakeup_source;
802#line 422
803struct wakeup_source;
804#line 424 "include/linux/pm.h"
805struct dev_pm_info {
806 pm_message_t power_state ;
807 unsigned int can_wakeup : 1 ;
808 unsigned int async_suspend : 1 ;
809 bool is_prepared : 1 ;
810 bool is_suspended : 1 ;
811 spinlock_t lock ;
812 struct list_head entry ;
813 struct completion completion ;
814 struct wakeup_source *wakeup ;
815 struct timer_list suspend_timer ;
816 unsigned long timer_expires ;
817 struct work_struct work ;
818 wait_queue_head_t wait_queue ;
819 atomic_t usage_count ;
820 atomic_t child_count ;
821 unsigned int disable_depth : 3 ;
822 unsigned int ignore_children : 1 ;
823 unsigned int idle_notification : 1 ;
824 unsigned int request_pending : 1 ;
825 unsigned int deferred_resume : 1 ;
826 unsigned int run_wake : 1 ;
827 unsigned int runtime_auto : 1 ;
828 unsigned int no_callbacks : 1 ;
829 unsigned int irq_safe : 1 ;
830 unsigned int use_autosuspend : 1 ;
831 unsigned int timer_autosuspends : 1 ;
832 enum rpm_request request ;
833 enum rpm_status runtime_status ;
834 int runtime_error ;
835 int autosuspend_delay ;
836 unsigned long last_busy ;
837 unsigned long active_jiffies ;
838 unsigned long suspended_jiffies ;
839 unsigned long accounting_timestamp ;
840 void *subsys_data ;
841};
842#line 475 "include/linux/pm.h"
843struct dev_power_domain {
844 struct dev_pm_ops ops ;
845};
846#line 11 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/mmu.h"
847struct __anonstruct_mm_context_t_111 {
848 void *ldt ;
849 int size ;
850 unsigned short ia32_compat ;
851 struct mutex lock ;
852 void *vdso ;
853};
854#line 11 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/mmu.h"
855typedef struct __anonstruct_mm_context_t_111 mm_context_t;
856#line 8 "include/linux/vmalloc.h"
857struct vm_area_struct;
858#line 8
859struct vm_area_struct;
860#line 72 "include/linux/rcupdate.h"
861struct rcu_head {
862 struct rcu_head *next ;
863 void (*func)(struct rcu_head *head ) ;
864};
865#line 937 "include/linux/sysctl.h"
866struct nsproxy;
867#line 937
868struct nsproxy;
869#line 48 "include/linux/kmod.h"
870struct cred;
871#line 48
872struct cred;
873#line 27 "include/linux/elf.h"
874typedef __u64 Elf64_Addr;
875#line 28 "include/linux/elf.h"
876typedef __u16 Elf64_Half;
877#line 32 "include/linux/elf.h"
878typedef __u32 Elf64_Word;
879#line 33 "include/linux/elf.h"
880typedef __u64 Elf64_Xword;
881#line 203 "include/linux/elf.h"
882struct elf64_sym {
883 Elf64_Word st_name ;
884 unsigned char st_info ;
885 unsigned char st_other ;
886 Elf64_Half st_shndx ;
887 Elf64_Addr st_value ;
888 Elf64_Xword st_size ;
889};
890#line 203 "include/linux/elf.h"
891typedef struct elf64_sym Elf64_Sym;
892#line 20 "include/linux/kobject_ns.h"
893struct sock;
894#line 20
895struct sock;
896#line 21
897struct kobject;
898#line 21
899struct kobject;
900#line 27
901enum kobj_ns_type {
902 KOBJ_NS_TYPE_NONE = 0,
903 KOBJ_NS_TYPE_NET = 1,
904 KOBJ_NS_TYPES = 2
905} ;
906#line 40 "include/linux/kobject_ns.h"
907struct kobj_ns_type_operations {
908 enum kobj_ns_type type ;
909 void *(*grab_current_ns)(void) ;
910 void const *(*netlink_ns)(struct sock *sk ) ;
911 void const *(*initial_ns)(void) ;
912 void (*drop_ns)(void * ) ;
913};
914#line 24 "include/linux/sysfs.h"
915enum kobj_ns_type;
916#line 26 "include/linux/sysfs.h"
917struct attribute {
918 char const *name ;
919 mode_t mode ;
920 struct lock_class_key *key ;
921 struct lock_class_key skey ;
922};
923#line 56 "include/linux/sysfs.h"
924struct attribute_group {
925 char const *name ;
926 mode_t (*is_visible)(struct kobject * , struct attribute * , int ) ;
927 struct attribute **attrs ;
928};
929#line 88 "include/linux/sysfs.h"
930struct bin_attribute {
931 struct attribute attr ;
932 size_t size ;
933 void *private ;
934 ssize_t (*read)(struct file * , struct kobject * , struct bin_attribute * , char * ,
935 loff_t , size_t ) ;
936 ssize_t (*write)(struct file * , struct kobject * , struct bin_attribute * , char * ,
937 loff_t , size_t ) ;
938 int (*mmap)(struct file * , struct kobject * , struct bin_attribute *attr , struct vm_area_struct *vma ) ;
939};
940#line 112 "include/linux/sysfs.h"
941struct sysfs_ops {
942 ssize_t (*show)(struct kobject * , struct attribute * , char * ) ;
943 ssize_t (*store)(struct kobject * , struct attribute * , char const * , size_t ) ;
944};
945#line 117
946struct sysfs_dirent;
947#line 117
948struct sysfs_dirent;
949#line 20 "include/linux/kref.h"
950struct kref {
951 atomic_t refcount ;
952};
953#line 60 "include/linux/kobject.h"
954struct kset;
955#line 60
956struct kset;
957#line 60
958struct kobj_type;
959#line 60
960struct kobj_type;
961#line 60 "include/linux/kobject.h"
962struct kobject {
963 char const *name ;
964 struct list_head entry ;
965 struct kobject *parent ;
966 struct kset *kset ;
967 struct kobj_type *ktype ;
968 struct sysfs_dirent *sd ;
969 struct kref kref ;
970 unsigned int state_initialized : 1 ;
971 unsigned int state_in_sysfs : 1 ;
972 unsigned int state_add_uevent_sent : 1 ;
973 unsigned int state_remove_uevent_sent : 1 ;
974 unsigned int uevent_suppress : 1 ;
975};
976#line 110 "include/linux/kobject.h"
977struct kobj_type {
978 void (*release)(struct kobject *kobj ) ;
979 struct sysfs_ops const *sysfs_ops ;
980 struct attribute **default_attrs ;
981 struct kobj_ns_type_operations const *(*child_ns_type)(struct kobject *kobj ) ;
982 void const *(*namespace)(struct kobject *kobj ) ;
983};
984#line 118 "include/linux/kobject.h"
985struct kobj_uevent_env {
986 char *envp[32] ;
987 int envp_idx ;
988 char buf[2048] ;
989 int buflen ;
990};
991#line 125 "include/linux/kobject.h"
992struct kset_uevent_ops {
993 int (* const filter)(struct kset *kset , struct kobject *kobj ) ;
994 char const *(* const name)(struct kset *kset , struct kobject *kobj ) ;
995 int (* const uevent)(struct kset *kset , struct kobject *kobj , struct kobj_uevent_env *env ) ;
996};
997#line 161 "include/linux/kobject.h"
998struct kset {
999 struct list_head list ;
1000 spinlock_t list_lock ;
1001 struct kobject kobj ;
1002 struct kset_uevent_ops const *uevent_ops ;
1003};
1004#line 34 "include/linux/moduleparam.h"
1005struct kernel_param;
1006#line 34
1007struct kernel_param;
1008#line 36 "include/linux/moduleparam.h"
1009struct kernel_param_ops {
1010 int (*set)(char const *val , struct kernel_param const *kp ) ;
1011 int (*get)(char *buffer , struct kernel_param const *kp ) ;
1012 void (*free)(void *arg ) ;
1013};
1014#line 48
1015struct kparam_string;
1016#line 48
1017struct kparam_string;
1018#line 48
1019struct kparam_array;
1020#line 48
1021struct kparam_array;
1022#line 48 "include/linux/moduleparam.h"
1023union __anonunion____missing_field_name_195 {
1024 void *arg ;
1025 struct kparam_string const *str ;
1026 struct kparam_array const *arr ;
1027};
1028#line 48 "include/linux/moduleparam.h"
1029struct kernel_param {
1030 char const *name ;
1031 struct kernel_param_ops const *ops ;
1032 u16 perm ;
1033 u16 flags ;
1034 union __anonunion____missing_field_name_195 __annonCompField31 ;
1035};
1036#line 61 "include/linux/moduleparam.h"
1037struct kparam_string {
1038 unsigned int maxlen ;
1039 char *string ;
1040};
1041#line 67 "include/linux/moduleparam.h"
1042struct kparam_array {
1043 unsigned int max ;
1044 unsigned int elemsize ;
1045 unsigned int *num ;
1046 struct kernel_param_ops const *ops ;
1047 void *elem ;
1048};
1049#line 61 "include/linux/jump_label.h"
1050struct jump_label_key {
1051 atomic_t enabled ;
1052};
1053#line 23 "include/linux/tracepoint.h"
1054struct tracepoint;
1055#line 23
1056struct tracepoint;
1057#line 25 "include/linux/tracepoint.h"
1058struct tracepoint_func {
1059 void *func ;
1060 void *data ;
1061};
1062#line 30 "include/linux/tracepoint.h"
1063struct tracepoint {
1064 char const *name ;
1065 struct jump_label_key key ;
1066 void (*regfunc)(void) ;
1067 void (*unregfunc)(void) ;
1068 struct tracepoint_func *funcs ;
1069};
1070#line 8 "include/asm-generic/module.h"
1071struct mod_arch_specific {
1072
1073};
1074#line 37 "include/linux/module.h"
1075struct kernel_symbol {
1076 unsigned long value ;
1077 char const *name ;
1078};
1079#line 51 "include/linux/module.h"
1080struct module_attribute {
1081 struct attribute attr ;
1082 ssize_t (*show)(struct module_attribute * , struct module * , char * ) ;
1083 ssize_t (*store)(struct module_attribute * , struct module * , char const * ,
1084 size_t count ) ;
1085 void (*setup)(struct module * , char const * ) ;
1086 int (*test)(struct module * ) ;
1087 void (*free)(struct module * ) ;
1088};
1089#line 70
1090struct module_param_attrs;
1091#line 70
1092struct module_param_attrs;
1093#line 70 "include/linux/module.h"
1094struct module_kobject {
1095 struct kobject kobj ;
1096 struct module *mod ;
1097 struct kobject *drivers_dir ;
1098 struct module_param_attrs *mp ;
1099};
1100#line 83
1101struct exception_table_entry;
1102#line 83
1103struct exception_table_entry;
1104#line 265
1105enum module_state {
1106 MODULE_STATE_LIVE = 0,
1107 MODULE_STATE_COMING = 1,
1108 MODULE_STATE_GOING = 2
1109} ;
1110#line 272
1111struct module_sect_attrs;
1112#line 272
1113struct module_sect_attrs;
1114#line 272
1115struct module_notes_attrs;
1116#line 272
1117struct module_notes_attrs;
1118#line 272
1119struct ftrace_event_call;
1120#line 272
1121struct ftrace_event_call;
1122#line 272 "include/linux/module.h"
1123struct module_ref {
1124 unsigned int incs ;
1125 unsigned int decs ;
1126};
1127#line 272 "include/linux/module.h"
1128struct module {
1129 enum module_state state ;
1130 struct list_head list ;
1131 char name[64UL - sizeof(unsigned long )] ;
1132 struct module_kobject mkobj ;
1133 struct module_attribute *modinfo_attrs ;
1134 char const *version ;
1135 char const *srcversion ;
1136 struct kobject *holders_dir ;
1137 struct kernel_symbol const *syms ;
1138 unsigned long const *crcs ;
1139 unsigned int num_syms ;
1140 struct kernel_param *kp ;
1141 unsigned int num_kp ;
1142 unsigned int num_gpl_syms ;
1143 struct kernel_symbol const *gpl_syms ;
1144 unsigned long const *gpl_crcs ;
1145 struct kernel_symbol const *unused_syms ;
1146 unsigned long const *unused_crcs ;
1147 unsigned int num_unused_syms ;
1148 unsigned int num_unused_gpl_syms ;
1149 struct kernel_symbol const *unused_gpl_syms ;
1150 unsigned long const *unused_gpl_crcs ;
1151 struct kernel_symbol const *gpl_future_syms ;
1152 unsigned long const *gpl_future_crcs ;
1153 unsigned int num_gpl_future_syms ;
1154 unsigned int num_exentries ;
1155 struct exception_table_entry *extable ;
1156 int (*init)(void) ;
1157 void *module_init ;
1158 void *module_core ;
1159 unsigned int init_size ;
1160 unsigned int core_size ;
1161 unsigned int init_text_size ;
1162 unsigned int core_text_size ;
1163 unsigned int init_ro_size ;
1164 unsigned int core_ro_size ;
1165 struct mod_arch_specific arch ;
1166 unsigned int taints ;
1167 unsigned int num_bugs ;
1168 struct list_head bug_list ;
1169 struct bug_entry *bug_table ;
1170 Elf64_Sym *symtab ;
1171 Elf64_Sym *core_symtab ;
1172 unsigned int num_symtab ;
1173 unsigned int core_num_syms ;
1174 char *strtab ;
1175 char *core_strtab ;
1176 struct module_sect_attrs *sect_attrs ;
1177 struct module_notes_attrs *notes_attrs ;
1178 char *args ;
1179 void *percpu ;
1180 unsigned int percpu_size ;
1181 unsigned int num_tracepoints ;
1182 struct tracepoint * const *tracepoints_ptrs ;
1183 unsigned int num_trace_bprintk_fmt ;
1184 char const **trace_bprintk_fmt_start ;
1185 struct ftrace_event_call **trace_events ;
1186 unsigned int num_trace_events ;
1187 unsigned int num_ftrace_callsites ;
1188 unsigned long *ftrace_callsites ;
1189 struct list_head source_list ;
1190 struct list_head target_list ;
1191 struct task_struct *waiter ;
1192 void (*exit)(void) ;
1193 struct module_ref *refptr ;
1194 ctor_fn_t *ctors ;
1195 unsigned int num_ctors ;
1196};
1197#line 38 "include/linux/slub_def.h"
1198struct kmem_cache_cpu {
1199 void **freelist ;
1200 unsigned long tid ;
1201 struct page *page ;
1202 int node ;
1203 unsigned int stat[19] ;
1204};
1205#line 48 "include/linux/slub_def.h"
1206struct kmem_cache_node {
1207 spinlock_t list_lock ;
1208 unsigned long nr_partial ;
1209 struct list_head partial ;
1210 atomic_long_t nr_slabs ;
1211 atomic_long_t total_objects ;
1212 struct list_head full ;
1213};
1214#line 64 "include/linux/slub_def.h"
1215struct kmem_cache_order_objects {
1216 unsigned long x ;
1217};
1218#line 71 "include/linux/slub_def.h"
1219struct kmem_cache {
1220 struct kmem_cache_cpu *cpu_slab ;
1221 unsigned long flags ;
1222 unsigned long min_partial ;
1223 int size ;
1224 int objsize ;
1225 int offset ;
1226 struct kmem_cache_order_objects oo ;
1227 struct kmem_cache_order_objects max ;
1228 struct kmem_cache_order_objects min ;
1229 gfp_t allocflags ;
1230 int refcount ;
1231 void (*ctor)(void * ) ;
1232 int inuse ;
1233 int align ;
1234 int reserved ;
1235 char const *name ;
1236 struct list_head list ;
1237 struct kobject kobj ;
1238 int remote_node_defrag_ratio ;
1239 struct kmem_cache_node *node[1 << 10] ;
1240};
1241#line 12 "include/linux/mod_devicetable.h"
1242typedef unsigned long kernel_ulong_t;
1243#line 219 "include/linux/mod_devicetable.h"
1244struct of_device_id {
1245 char name[32] ;
1246 char type[32] ;
1247 char compatible[128] ;
1248 void *data ;
1249};
1250#line 413 "include/linux/mod_devicetable.h"
1251struct i2c_device_id {
1252 char name[20] ;
1253 kernel_ulong_t driver_data __attribute__((__aligned__(sizeof(kernel_ulong_t )))) ;
1254};
1255#line 19 "include/linux/klist.h"
1256struct klist_node;
1257#line 19
1258struct klist_node;
1259#line 39 "include/linux/klist.h"
1260struct klist_node {
1261 void *n_klist ;
1262 struct list_head n_node ;
1263 struct kref n_ref ;
1264};
1265#line 4 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/device.h"
1266struct dma_map_ops;
1267#line 4
1268struct dma_map_ops;
1269#line 4 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/device.h"
1270struct dev_archdata {
1271 void *acpi_handle ;
1272 struct dma_map_ops *dma_ops ;
1273 void *iommu ;
1274};
1275#line 29 "include/linux/device.h"
1276struct device_private;
1277#line 29
1278struct device_private;
1279#line 30
1280struct device_driver;
1281#line 30
1282struct device_driver;
1283#line 31
1284struct driver_private;
1285#line 31
1286struct driver_private;
1287#line 32
1288struct class;
1289#line 32
1290struct class;
1291#line 33
1292struct subsys_private;
1293#line 33
1294struct subsys_private;
1295#line 34
1296struct bus_type;
1297#line 34
1298struct bus_type;
1299#line 35
1300struct device_node;
1301#line 35
1302struct device_node;
1303#line 37 "include/linux/device.h"
1304struct bus_attribute {
1305 struct attribute attr ;
1306 ssize_t (*show)(struct bus_type *bus , char *buf ) ;
1307 ssize_t (*store)(struct bus_type *bus , char const *buf , size_t count ) ;
1308};
1309#line 82
1310struct device_attribute;
1311#line 82
1312struct device_attribute;
1313#line 82
1314struct driver_attribute;
1315#line 82
1316struct driver_attribute;
1317#line 82 "include/linux/device.h"
1318struct bus_type {
1319 char const *name ;
1320 struct bus_attribute *bus_attrs ;
1321 struct device_attribute *dev_attrs ;
1322 struct driver_attribute *drv_attrs ;
1323 int (*match)(struct device *dev , struct device_driver *drv ) ;
1324 int (*uevent)(struct device *dev , struct kobj_uevent_env *env ) ;
1325 int (*probe)(struct device *dev ) ;
1326 int (*remove)(struct device *dev ) ;
1327 void (*shutdown)(struct device *dev ) ;
1328 int (*suspend)(struct device *dev , pm_message_t state ) ;
1329 int (*resume)(struct device *dev ) ;
1330 struct dev_pm_ops const *pm ;
1331 struct subsys_private *p ;
1332};
1333#line 185 "include/linux/device.h"
1334struct device_driver {
1335 char const *name ;
1336 struct bus_type *bus ;
1337 struct module *owner ;
1338 char const *mod_name ;
1339 bool suppress_bind_attrs ;
1340 struct of_device_id const *of_match_table ;
1341 int (*probe)(struct device *dev ) ;
1342 int (*remove)(struct device *dev ) ;
1343 void (*shutdown)(struct device *dev ) ;
1344 int (*suspend)(struct device *dev , pm_message_t state ) ;
1345 int (*resume)(struct device *dev ) ;
1346 struct attribute_group const **groups ;
1347 struct dev_pm_ops const *pm ;
1348 struct driver_private *p ;
1349};
1350#line 222 "include/linux/device.h"
1351struct driver_attribute {
1352 struct attribute attr ;
1353 ssize_t (*show)(struct device_driver *driver , char *buf ) ;
1354 ssize_t (*store)(struct device_driver *driver , char const *buf , size_t count ) ;
1355};
1356#line 280
1357struct class_attribute;
1358#line 280
1359struct class_attribute;
1360#line 280 "include/linux/device.h"
1361struct class {
1362 char const *name ;
1363 struct module *owner ;
1364 struct class_attribute *class_attrs ;
1365 struct device_attribute *dev_attrs ;
1366 struct bin_attribute *dev_bin_attrs ;
1367 struct kobject *dev_kobj ;
1368 int (*dev_uevent)(struct device *dev , struct kobj_uevent_env *env ) ;
1369 char *(*devnode)(struct device *dev , mode_t *mode ) ;
1370 void (*class_release)(struct class *class ) ;
1371 void (*dev_release)(struct device *dev ) ;
1372 int (*suspend)(struct device *dev , pm_message_t state ) ;
1373 int (*resume)(struct device *dev ) ;
1374 struct kobj_ns_type_operations const *ns_type ;
1375 void const *(*namespace)(struct device *dev ) ;
1376 struct dev_pm_ops const *pm ;
1377 struct subsys_private *p ;
1378};
1379#line 306
1380struct device_type;
1381#line 306
1382struct device_type;
1383#line 347 "include/linux/device.h"
1384struct class_attribute {
1385 struct attribute attr ;
1386 ssize_t (*show)(struct class *class , struct class_attribute *attr , char *buf ) ;
1387 ssize_t (*store)(struct class *class , struct class_attribute *attr , char const *buf ,
1388 size_t count ) ;
1389};
1390#line 413 "include/linux/device.h"
1391struct device_type {
1392 char const *name ;
1393 struct attribute_group const **groups ;
1394 int (*uevent)(struct device *dev , struct kobj_uevent_env *env ) ;
1395 char *(*devnode)(struct device *dev , mode_t *mode ) ;
1396 void (*release)(struct device *dev ) ;
1397 struct dev_pm_ops const *pm ;
1398};
1399#line 424 "include/linux/device.h"
1400struct device_attribute {
1401 struct attribute attr ;
1402 ssize_t (*show)(struct device *dev , struct device_attribute *attr , char *buf ) ;
1403 ssize_t (*store)(struct device *dev , struct device_attribute *attr , char const *buf ,
1404 size_t count ) ;
1405};
1406#line 484 "include/linux/device.h"
1407struct device_dma_parameters {
1408 unsigned int max_segment_size ;
1409 unsigned long segment_boundary_mask ;
1410};
1411#line 551
1412struct dma_coherent_mem;
1413#line 551
1414struct dma_coherent_mem;
1415#line 551 "include/linux/device.h"
1416struct device {
1417 struct device *parent ;
1418 struct device_private *p ;
1419 struct kobject kobj ;
1420 char const *init_name ;
1421 struct device_type const *type ;
1422 struct mutex mutex ;
1423 struct bus_type *bus ;
1424 struct device_driver *driver ;
1425 void *platform_data ;
1426 struct dev_pm_info power ;
1427 struct dev_power_domain *pwr_domain ;
1428 int numa_node ;
1429 u64 *dma_mask ;
1430 u64 coherent_dma_mask ;
1431 struct device_dma_parameters *dma_parms ;
1432 struct list_head dma_pools ;
1433 struct dma_coherent_mem *dma_mem ;
1434 struct dev_archdata archdata ;
1435 struct device_node *of_node ;
1436 dev_t devt ;
1437 spinlock_t devres_lock ;
1438 struct list_head devres_head ;
1439 struct klist_node knode_class ;
1440 struct class *class ;
1441 struct attribute_group const **groups ;
1442 void (*release)(struct device *dev ) ;
1443};
1444#line 43 "include/linux/pm_wakeup.h"
1445struct wakeup_source {
1446 char *name ;
1447 struct list_head entry ;
1448 spinlock_t lock ;
1449 struct timer_list timer ;
1450 unsigned long timer_expires ;
1451 ktime_t total_time ;
1452 ktime_t max_time ;
1453 ktime_t last_time ;
1454 unsigned long event_count ;
1455 unsigned long active_count ;
1456 unsigned long relax_count ;
1457 unsigned long hit_count ;
1458 unsigned int active : 1 ;
1459};
1460#line 94 "include/linux/capability.h"
1461struct kernel_cap_struct {
1462 __u32 cap[2] ;
1463};
1464#line 94 "include/linux/capability.h"
1465typedef struct kernel_cap_struct kernel_cap_t;
1466#line 376
1467struct dentry;
1468#line 376
1469struct dentry;
1470#line 377
1471struct user_namespace;
1472#line 377
1473struct user_namespace;
1474#line 100 "include/linux/rbtree.h"
1475struct rb_node {
1476 unsigned long rb_parent_color ;
1477 struct rb_node *rb_right ;
1478 struct rb_node *rb_left ;
1479} __attribute__((__aligned__(sizeof(long )))) ;
1480#line 110 "include/linux/rbtree.h"
1481struct rb_root {
1482 struct rb_node *rb_node ;
1483};
1484#line 14 "include/linux/prio_tree.h"
1485struct prio_tree_node;
1486#line 14
1487struct prio_tree_node;
1488#line 14 "include/linux/prio_tree.h"
1489struct raw_prio_tree_node {
1490 struct prio_tree_node *left ;
1491 struct prio_tree_node *right ;
1492 struct prio_tree_node *parent ;
1493};
1494#line 20 "include/linux/prio_tree.h"
1495struct prio_tree_node {
1496 struct prio_tree_node *left ;
1497 struct prio_tree_node *right ;
1498 struct prio_tree_node *parent ;
1499 unsigned long start ;
1500 unsigned long last ;
1501};
1502#line 28 "include/linux/prio_tree.h"
1503struct prio_tree_root {
1504 struct prio_tree_node *prio_tree_node ;
1505 unsigned short index_bits ;
1506 unsigned short raw ;
1507};
1508#line 23 "include/linux/mm_types.h"
1509struct address_space;
1510#line 23
1511struct address_space;
1512#line 34 "include/linux/mm_types.h"
1513struct __anonstruct____missing_field_name_200 {
1514 u16 inuse ;
1515 u16 objects ;
1516};
1517#line 34 "include/linux/mm_types.h"
1518union __anonunion____missing_field_name_199 {
1519 atomic_t _mapcount ;
1520 struct __anonstruct____missing_field_name_200 __annonCompField32 ;
1521};
1522#line 34 "include/linux/mm_types.h"
1523struct __anonstruct____missing_field_name_202 {
1524 unsigned long private ;
1525 struct address_space *mapping ;
1526};
1527#line 34 "include/linux/mm_types.h"
1528union __anonunion____missing_field_name_201 {
1529 struct __anonstruct____missing_field_name_202 __annonCompField34 ;
1530 struct kmem_cache *slab ;
1531 struct page *first_page ;
1532};
1533#line 34 "include/linux/mm_types.h"
1534union __anonunion____missing_field_name_203 {
1535 unsigned long index ;
1536 void *freelist ;
1537};
1538#line 34 "include/linux/mm_types.h"
1539struct page {
1540 unsigned long flags ;
1541 atomic_t _count ;
1542 union __anonunion____missing_field_name_199 __annonCompField33 ;
1543 union __anonunion____missing_field_name_201 __annonCompField35 ;
1544 union __anonunion____missing_field_name_203 __annonCompField36 ;
1545 struct list_head lru ;
1546};
1547#line 132 "include/linux/mm_types.h"
1548struct __anonstruct_vm_set_205 {
1549 struct list_head list ;
1550 void *parent ;
1551 struct vm_area_struct *head ;
1552};
1553#line 132 "include/linux/mm_types.h"
1554union __anonunion_shared_204 {
1555 struct __anonstruct_vm_set_205 vm_set ;
1556 struct raw_prio_tree_node prio_tree_node ;
1557};
1558#line 132
1559struct anon_vma;
1560#line 132
1561struct anon_vma;
1562#line 132
1563struct vm_operations_struct;
1564#line 132
1565struct vm_operations_struct;
1566#line 132
1567struct mempolicy;
1568#line 132
1569struct mempolicy;
1570#line 132 "include/linux/mm_types.h"
1571struct vm_area_struct {
1572 struct mm_struct *vm_mm ;
1573 unsigned long vm_start ;
1574 unsigned long vm_end ;
1575 struct vm_area_struct *vm_next ;
1576 struct vm_area_struct *vm_prev ;
1577 pgprot_t vm_page_prot ;
1578 unsigned long vm_flags ;
1579 struct rb_node vm_rb ;
1580 union __anonunion_shared_204 shared ;
1581 struct list_head anon_vma_chain ;
1582 struct anon_vma *anon_vma ;
1583 struct vm_operations_struct const *vm_ops ;
1584 unsigned long vm_pgoff ;
1585 struct file *vm_file ;
1586 void *vm_private_data ;
1587 struct mempolicy *vm_policy ;
1588};
1589#line 189 "include/linux/mm_types.h"
1590struct core_thread {
1591 struct task_struct *task ;
1592 struct core_thread *next ;
1593};
1594#line 194 "include/linux/mm_types.h"
1595struct core_state {
1596 atomic_t nr_threads ;
1597 struct core_thread dumper ;
1598 struct completion startup ;
1599};
1600#line 216 "include/linux/mm_types.h"
1601struct mm_rss_stat {
1602 atomic_long_t count[3] ;
1603};
1604#line 220
1605struct linux_binfmt;
1606#line 220
1607struct linux_binfmt;
1608#line 220
1609struct mmu_notifier_mm;
1610#line 220
1611struct mmu_notifier_mm;
1612#line 220 "include/linux/mm_types.h"
1613struct mm_struct {
1614 struct vm_area_struct *mmap ;
1615 struct rb_root mm_rb ;
1616 struct vm_area_struct *mmap_cache ;
1617 unsigned long (*get_unmapped_area)(struct file *filp , unsigned long addr , unsigned long len ,
1618 unsigned long pgoff , unsigned long flags ) ;
1619 void (*unmap_area)(struct mm_struct *mm , unsigned long addr ) ;
1620 unsigned long mmap_base ;
1621 unsigned long task_size ;
1622 unsigned long cached_hole_size ;
1623 unsigned long free_area_cache ;
1624 pgd_t *pgd ;
1625 atomic_t mm_users ;
1626 atomic_t mm_count ;
1627 int map_count ;
1628 spinlock_t page_table_lock ;
1629 struct rw_semaphore mmap_sem ;
1630 struct list_head mmlist ;
1631 unsigned long hiwater_rss ;
1632 unsigned long hiwater_vm ;
1633 unsigned long total_vm ;
1634 unsigned long locked_vm ;
1635 unsigned long shared_vm ;
1636 unsigned long exec_vm ;
1637 unsigned long stack_vm ;
1638 unsigned long reserved_vm ;
1639 unsigned long def_flags ;
1640 unsigned long nr_ptes ;
1641 unsigned long start_code ;
1642 unsigned long end_code ;
1643 unsigned long start_data ;
1644 unsigned long end_data ;
1645 unsigned long start_brk ;
1646 unsigned long brk ;
1647 unsigned long start_stack ;
1648 unsigned long arg_start ;
1649 unsigned long arg_end ;
1650 unsigned long env_start ;
1651 unsigned long env_end ;
1652 unsigned long saved_auxv[44] ;
1653 struct mm_rss_stat rss_stat ;
1654 struct linux_binfmt *binfmt ;
1655 cpumask_var_t cpu_vm_mask_var ;
1656 mm_context_t context ;
1657 unsigned int faultstamp ;
1658 unsigned int token_priority ;
1659 unsigned int last_interval ;
1660 atomic_t oom_disable_count ;
1661 unsigned long flags ;
1662 struct core_state *core_state ;
1663 spinlock_t ioctx_lock ;
1664 struct hlist_head ioctx_list ;
1665 struct task_struct *owner ;
1666 struct file *exe_file ;
1667 unsigned long num_exe_file_vmas ;
1668 struct mmu_notifier_mm *mmu_notifier_mm ;
1669 pgtable_t pmd_huge_pte ;
1670 struct cpumask cpumask_allocation ;
1671};
1672#line 7 "include/asm-generic/cputime.h"
1673typedef unsigned long cputime_t;
1674#line 122 "include/linux/sem.h"
1675struct sem_undo_list;
1676#line 122
1677struct sem_undo_list;
1678#line 135 "include/linux/sem.h"
1679struct sem_undo_list {
1680 atomic_t refcnt ;
1681 spinlock_t lock ;
1682 struct list_head list_proc ;
1683};
1684#line 141 "include/linux/sem.h"
1685struct sysv_sem {
1686 struct sem_undo_list *undo_list ;
1687};
1688#line 10 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/signal.h"
1689struct siginfo;
1690#line 10
1691struct siginfo;
1692#line 30 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/signal.h"
1693struct __anonstruct_sigset_t_207 {
1694 unsigned long sig[1] ;
1695};
1696#line 30 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/signal.h"
1697typedef struct __anonstruct_sigset_t_207 sigset_t;
1698#line 17 "include/asm-generic/signal-defs.h"
1699typedef void __signalfn_t(int );
1700#line 18 "include/asm-generic/signal-defs.h"
1701typedef __signalfn_t *__sighandler_t;
1702#line 20 "include/asm-generic/signal-defs.h"
1703typedef void __restorefn_t(void);
1704#line 21 "include/asm-generic/signal-defs.h"
1705typedef __restorefn_t *__sigrestore_t;
1706#line 167 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/signal.h"
1707struct sigaction {
1708 __sighandler_t sa_handler ;
1709 unsigned long sa_flags ;
1710 __sigrestore_t sa_restorer ;
1711 sigset_t sa_mask ;
1712};
1713#line 174 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/signal.h"
1714struct k_sigaction {
1715 struct sigaction sa ;
1716};
1717#line 7 "include/asm-generic/siginfo.h"
1718union sigval {
1719 int sival_int ;
1720 void *sival_ptr ;
1721};
1722#line 7 "include/asm-generic/siginfo.h"
1723typedef union sigval sigval_t;
1724#line 40 "include/asm-generic/siginfo.h"
1725struct __anonstruct__kill_209 {
1726 __kernel_pid_t _pid ;
1727 __kernel_uid32_t _uid ;
1728};
1729#line 40 "include/asm-generic/siginfo.h"
1730struct __anonstruct__timer_210 {
1731 __kernel_timer_t _tid ;
1732 int _overrun ;
1733 char _pad[sizeof(__kernel_uid32_t ) - sizeof(int )] ;
1734 sigval_t _sigval ;
1735 int _sys_private ;
1736};
1737#line 40 "include/asm-generic/siginfo.h"
1738struct __anonstruct__rt_211 {
1739 __kernel_pid_t _pid ;
1740 __kernel_uid32_t _uid ;
1741 sigval_t _sigval ;
1742};
1743#line 40 "include/asm-generic/siginfo.h"
1744struct __anonstruct__sigchld_212 {
1745 __kernel_pid_t _pid ;
1746 __kernel_uid32_t _uid ;
1747 int _status ;
1748 __kernel_clock_t _utime ;
1749 __kernel_clock_t _stime ;
1750};
1751#line 40 "include/asm-generic/siginfo.h"
1752struct __anonstruct__sigfault_213 {
1753 void *_addr ;
1754 short _addr_lsb ;
1755};
1756#line 40 "include/asm-generic/siginfo.h"
1757struct __anonstruct__sigpoll_214 {
1758 long _band ;
1759 int _fd ;
1760};
1761#line 40 "include/asm-generic/siginfo.h"
1762union __anonunion__sifields_208 {
1763 int _pad[(128UL - 4UL * sizeof(int )) / sizeof(int )] ;
1764 struct __anonstruct__kill_209 _kill ;
1765 struct __anonstruct__timer_210 _timer ;
1766 struct __anonstruct__rt_211 _rt ;
1767 struct __anonstruct__sigchld_212 _sigchld ;
1768 struct __anonstruct__sigfault_213 _sigfault ;
1769 struct __anonstruct__sigpoll_214 _sigpoll ;
1770};
1771#line 40 "include/asm-generic/siginfo.h"
1772struct siginfo {
1773 int si_signo ;
1774 int si_errno ;
1775 int si_code ;
1776 union __anonunion__sifields_208 _sifields ;
1777};
1778#line 40 "include/asm-generic/siginfo.h"
1779typedef struct siginfo siginfo_t;
1780#line 18 "include/linux/signal.h"
1781struct user_struct;
1782#line 18
1783struct user_struct;
1784#line 28 "include/linux/signal.h"
1785struct sigpending {
1786 struct list_head list ;
1787 sigset_t signal ;
1788};
1789#line 6 "include/linux/pid.h"
1790enum pid_type {
1791 PIDTYPE_PID = 0,
1792 PIDTYPE_PGID = 1,
1793 PIDTYPE_SID = 2,
1794 PIDTYPE_MAX = 3
1795} ;
1796#line 50
1797struct pid_namespace;
1798#line 50
1799struct pid_namespace;
1800#line 50 "include/linux/pid.h"
1801struct upid {
1802 int nr ;
1803 struct pid_namespace *ns ;
1804 struct hlist_node pid_chain ;
1805};
1806#line 57 "include/linux/pid.h"
1807struct pid {
1808 atomic_t count ;
1809 unsigned int level ;
1810 struct hlist_head tasks[3] ;
1811 struct rcu_head rcu ;
1812 struct upid numbers[1] ;
1813};
1814#line 69 "include/linux/pid.h"
1815struct pid_link {
1816 struct hlist_node node ;
1817 struct pid *pid ;
1818};
1819#line 97 "include/linux/proportions.h"
1820struct prop_local_single {
1821 unsigned long events ;
1822 unsigned long period ;
1823 int shift ;
1824 spinlock_t lock ;
1825};
1826#line 10 "include/linux/seccomp.h"
1827struct __anonstruct_seccomp_t_217 {
1828 int mode ;
1829};
1830#line 10 "include/linux/seccomp.h"
1831typedef struct __anonstruct_seccomp_t_217 seccomp_t;
1832#line 82 "include/linux/plist.h"
1833struct plist_head {
1834 struct list_head node_list ;
1835 raw_spinlock_t *rawlock ;
1836 spinlock_t *spinlock ;
1837};
1838#line 90 "include/linux/plist.h"
1839struct plist_node {
1840 int prio ;
1841 struct list_head prio_list ;
1842 struct list_head node_list ;
1843};
1844#line 28 "include/linux/rtmutex.h"
1845struct rt_mutex {
1846 raw_spinlock_t wait_lock ;
1847 struct plist_head wait_list ;
1848 struct task_struct *owner ;
1849 int save_state ;
1850 char const *name ;
1851 char const *file ;
1852 int line ;
1853 void *magic ;
1854};
1855#line 40
1856struct rt_mutex_waiter;
1857#line 40
1858struct rt_mutex_waiter;
1859#line 42 "include/linux/resource.h"
1860struct rlimit {
1861 unsigned long rlim_cur ;
1862 unsigned long rlim_max ;
1863};
1864#line 8 "include/linux/timerqueue.h"
1865struct timerqueue_node {
1866 struct rb_node node ;
1867 ktime_t expires ;
1868};
1869#line 13 "include/linux/timerqueue.h"
1870struct timerqueue_head {
1871 struct rb_root head ;
1872 struct timerqueue_node *next ;
1873};
1874#line 27 "include/linux/hrtimer.h"
1875struct hrtimer_clock_base;
1876#line 27
1877struct hrtimer_clock_base;
1878#line 28
1879struct hrtimer_cpu_base;
1880#line 28
1881struct hrtimer_cpu_base;
1882#line 44
1883enum hrtimer_restart {
1884 HRTIMER_NORESTART = 0,
1885 HRTIMER_RESTART = 1
1886} ;
1887#line 108 "include/linux/hrtimer.h"
1888struct hrtimer {
1889 struct timerqueue_node node ;
1890 ktime_t _softexpires ;
1891 enum hrtimer_restart (*function)(struct hrtimer * ) ;
1892 struct hrtimer_clock_base *base ;
1893 unsigned long state ;
1894 int start_pid ;
1895 void *start_site ;
1896 char start_comm[16] ;
1897};
1898#line 145 "include/linux/hrtimer.h"
1899struct hrtimer_clock_base {
1900 struct hrtimer_cpu_base *cpu_base ;
1901 int index ;
1902 clockid_t clockid ;
1903 struct timerqueue_head active ;
1904 ktime_t resolution ;
1905 ktime_t (*get_time)(void) ;
1906 ktime_t softirq_time ;
1907 ktime_t offset ;
1908};
1909#line 178 "include/linux/hrtimer.h"
1910struct hrtimer_cpu_base {
1911 raw_spinlock_t lock ;
1912 unsigned long active_bases ;
1913 ktime_t expires_next ;
1914 int hres_active ;
1915 int hang_detected ;
1916 unsigned long nr_events ;
1917 unsigned long nr_retries ;
1918 unsigned long nr_hangs ;
1919 ktime_t max_hang_time ;
1920 struct hrtimer_clock_base clock_base[3] ;
1921};
1922#line 11 "include/linux/task_io_accounting.h"
1923struct task_io_accounting {
1924 u64 rchar ;
1925 u64 wchar ;
1926 u64 syscr ;
1927 u64 syscw ;
1928 u64 read_bytes ;
1929 u64 write_bytes ;
1930 u64 cancelled_write_bytes ;
1931};
1932#line 18 "include/linux/latencytop.h"
1933struct latency_record {
1934 unsigned long backtrace[12] ;
1935 unsigned int count ;
1936 unsigned long time ;
1937 unsigned long max ;
1938};
1939#line 29 "include/linux/key.h"
1940typedef int32_t key_serial_t;
1941#line 32 "include/linux/key.h"
1942typedef uint32_t key_perm_t;
1943#line 34
1944struct key;
1945#line 34
1946struct key;
1947#line 76
1948struct signal_struct;
1949#line 76
1950struct signal_struct;
1951#line 79
1952struct key_type;
1953#line 79
1954struct key_type;
1955#line 81
1956struct keyring_list;
1957#line 81
1958struct keyring_list;
1959#line 124
1960struct key_user;
1961#line 124
1962struct key_user;
1963#line 124 "include/linux/key.h"
1964union __anonunion____missing_field_name_218 {
1965 time_t expiry ;
1966 time_t revoked_at ;
1967};
1968#line 124 "include/linux/key.h"
1969union __anonunion_type_data_219 {
1970 struct list_head link ;
1971 unsigned long x[2] ;
1972 void *p[2] ;
1973 int reject_error ;
1974};
1975#line 124 "include/linux/key.h"
1976union __anonunion_payload_220 {
1977 unsigned long value ;
1978 void *rcudata ;
1979 void *data ;
1980 struct keyring_list *subscriptions ;
1981};
1982#line 124 "include/linux/key.h"
1983struct key {
1984 atomic_t usage ;
1985 key_serial_t serial ;
1986 struct rb_node serial_node ;
1987 struct key_type *type ;
1988 struct rw_semaphore sem ;
1989 struct key_user *user ;
1990 void *security ;
1991 union __anonunion____missing_field_name_218 __annonCompField37 ;
1992 uid_t uid ;
1993 gid_t gid ;
1994 key_perm_t perm ;
1995 unsigned short quotalen ;
1996 unsigned short datalen ;
1997 unsigned long flags ;
1998 char *description ;
1999 union __anonunion_type_data_219 type_data ;
2000 union __anonunion_payload_220 payload ;
2001};
2002#line 18 "include/linux/selinux.h"
2003struct audit_context;
2004#line 18
2005struct audit_context;
2006#line 23 "include/linux/cred.h"
2007struct inode;
2008#line 23
2009struct inode;
2010#line 31 "include/linux/cred.h"
2011struct group_info {
2012 atomic_t usage ;
2013 int ngroups ;
2014 int nblocks ;
2015 gid_t small_block[32] ;
2016 gid_t *blocks[0] ;
2017};
2018#line 83 "include/linux/cred.h"
2019struct thread_group_cred {
2020 atomic_t usage ;
2021 pid_t tgid ;
2022 spinlock_t lock ;
2023 struct key *session_keyring ;
2024 struct key *process_keyring ;
2025 struct rcu_head rcu ;
2026};
2027#line 116 "include/linux/cred.h"
2028struct cred {
2029 atomic_t usage ;
2030 atomic_t subscribers ;
2031 void *put_addr ;
2032 unsigned int magic ;
2033 uid_t uid ;
2034 gid_t gid ;
2035 uid_t suid ;
2036 gid_t sgid ;
2037 uid_t euid ;
2038 gid_t egid ;
2039 uid_t fsuid ;
2040 gid_t fsgid ;
2041 unsigned int securebits ;
2042 kernel_cap_t cap_inheritable ;
2043 kernel_cap_t cap_permitted ;
2044 kernel_cap_t cap_effective ;
2045 kernel_cap_t cap_bset ;
2046 unsigned char jit_keyring ;
2047 struct key *thread_keyring ;
2048 struct key *request_key_auth ;
2049 struct thread_group_cred *tgcred ;
2050 void *security ;
2051 struct user_struct *user ;
2052 struct user_namespace *user_ns ;
2053 struct group_info *group_info ;
2054 struct rcu_head rcu ;
2055};
2056#line 97 "include/linux/sched.h"
2057struct futex_pi_state;
2058#line 97
2059struct futex_pi_state;
2060#line 98
2061struct robust_list_head;
2062#line 98
2063struct robust_list_head;
2064#line 99
2065struct bio_list;
2066#line 99
2067struct bio_list;
2068#line 100
2069struct fs_struct;
2070#line 100
2071struct fs_struct;
2072#line 101
2073struct perf_event_context;
2074#line 101
2075struct perf_event_context;
2076#line 102
2077struct blk_plug;
2078#line 102
2079struct blk_plug;
2080#line 151
2081struct cfs_rq;
2082#line 151
2083struct cfs_rq;
2084#line 58 "include/linux/aio_abi.h"
2085struct io_event {
2086 __u64 data ;
2087 __u64 obj ;
2088 __s64 res ;
2089 __s64 res2 ;
2090};
2091#line 16 "include/linux/uio.h"
2092struct iovec {
2093 void *iov_base ;
2094 __kernel_size_t iov_len ;
2095};
2096#line 15 "include/linux/aio.h"
2097struct kioctx;
2098#line 15
2099struct kioctx;
2100#line 87 "include/linux/aio.h"
2101union __anonunion_ki_obj_222 {
2102 void *user ;
2103 struct task_struct *tsk ;
2104};
2105#line 87
2106struct eventfd_ctx;
2107#line 87
2108struct eventfd_ctx;
2109#line 87 "include/linux/aio.h"
2110struct kiocb {
2111 struct list_head ki_run_list ;
2112 unsigned long ki_flags ;
2113 int ki_users ;
2114 unsigned int ki_key ;
2115 struct file *ki_filp ;
2116 struct kioctx *ki_ctx ;
2117 int (*ki_cancel)(struct kiocb * , struct io_event * ) ;
2118 ssize_t (*ki_retry)(struct kiocb * ) ;
2119 void (*ki_dtor)(struct kiocb * ) ;
2120 union __anonunion_ki_obj_222 ki_obj ;
2121 __u64 ki_user_data ;
2122 loff_t ki_pos ;
2123 void *private ;
2124 unsigned short ki_opcode ;
2125 size_t ki_nbytes ;
2126 char *ki_buf ;
2127 size_t ki_left ;
2128 struct iovec ki_inline_vec ;
2129 struct iovec *ki_iovec ;
2130 unsigned long ki_nr_segs ;
2131 unsigned long ki_cur_seg ;
2132 struct list_head ki_list ;
2133 struct eventfd_ctx *ki_eventfd ;
2134};
2135#line 165 "include/linux/aio.h"
2136struct aio_ring_info {
2137 unsigned long mmap_base ;
2138 unsigned long mmap_size ;
2139 struct page **ring_pages ;
2140 spinlock_t ring_lock ;
2141 long nr_pages ;
2142 unsigned int nr ;
2143 unsigned int tail ;
2144 struct page *internal_pages[8] ;
2145};
2146#line 178 "include/linux/aio.h"
2147struct kioctx {
2148 atomic_t users ;
2149 int dead ;
2150 struct mm_struct *mm ;
2151 unsigned long user_id ;
2152 struct hlist_node list ;
2153 wait_queue_head_t wait ;
2154 spinlock_t ctx_lock ;
2155 int reqs_active ;
2156 struct list_head active_reqs ;
2157 struct list_head run_list ;
2158 unsigned int max_reqs ;
2159 struct aio_ring_info ring_info ;
2160 struct delayed_work wq ;
2161 struct rcu_head rcu_head ;
2162};
2163#line 441 "include/linux/sched.h"
2164struct sighand_struct {
2165 atomic_t count ;
2166 struct k_sigaction action[64] ;
2167 spinlock_t siglock ;
2168 wait_queue_head_t signalfd_wqh ;
2169};
2170#line 448 "include/linux/sched.h"
2171struct pacct_struct {
2172 int ac_flag ;
2173 long ac_exitcode ;
2174 unsigned long ac_mem ;
2175 cputime_t ac_utime ;
2176 cputime_t ac_stime ;
2177 unsigned long ac_minflt ;
2178 unsigned long ac_majflt ;
2179};
2180#line 456 "include/linux/sched.h"
2181struct cpu_itimer {
2182 cputime_t expires ;
2183 cputime_t incr ;
2184 u32 error ;
2185 u32 incr_error ;
2186};
2187#line 474 "include/linux/sched.h"
2188struct task_cputime {
2189 cputime_t utime ;
2190 cputime_t stime ;
2191 unsigned long long sum_exec_runtime ;
2192};
2193#line 510 "include/linux/sched.h"
2194struct thread_group_cputimer {
2195 struct task_cputime cputime ;
2196 int running ;
2197 spinlock_t lock ;
2198};
2199#line 517
2200struct autogroup;
2201#line 517
2202struct autogroup;
2203#line 526
2204struct tty_struct;
2205#line 526
2206struct tty_struct;
2207#line 526
2208struct taskstats;
2209#line 526
2210struct taskstats;
2211#line 526
2212struct tty_audit_buf;
2213#line 526
2214struct tty_audit_buf;
2215#line 526 "include/linux/sched.h"
2216struct signal_struct {
2217 atomic_t sigcnt ;
2218 atomic_t live ;
2219 int nr_threads ;
2220 wait_queue_head_t wait_chldexit ;
2221 struct task_struct *curr_target ;
2222 struct sigpending shared_pending ;
2223 int group_exit_code ;
2224 int notify_count ;
2225 struct task_struct *group_exit_task ;
2226 int group_stop_count ;
2227 unsigned int flags ;
2228 struct list_head posix_timers ;
2229 struct hrtimer real_timer ;
2230 struct pid *leader_pid ;
2231 ktime_t it_real_incr ;
2232 struct cpu_itimer it[2] ;
2233 struct thread_group_cputimer cputimer ;
2234 struct task_cputime cputime_expires ;
2235 struct list_head cpu_timers[3] ;
2236 struct pid *tty_old_pgrp ;
2237 int leader ;
2238 struct tty_struct *tty ;
2239 struct autogroup *autogroup ;
2240 cputime_t utime ;
2241 cputime_t stime ;
2242 cputime_t cutime ;
2243 cputime_t cstime ;
2244 cputime_t gtime ;
2245 cputime_t cgtime ;
2246 cputime_t prev_utime ;
2247 cputime_t prev_stime ;
2248 unsigned long nvcsw ;
2249 unsigned long nivcsw ;
2250 unsigned long cnvcsw ;
2251 unsigned long cnivcsw ;
2252 unsigned long min_flt ;
2253 unsigned long maj_flt ;
2254 unsigned long cmin_flt ;
2255 unsigned long cmaj_flt ;
2256 unsigned long inblock ;
2257 unsigned long oublock ;
2258 unsigned long cinblock ;
2259 unsigned long coublock ;
2260 unsigned long maxrss ;
2261 unsigned long cmaxrss ;
2262 struct task_io_accounting ioac ;
2263 unsigned long long sum_sched_runtime ;
2264 struct rlimit rlim[16] ;
2265 struct pacct_struct pacct ;
2266 struct taskstats *stats ;
2267 unsigned int audit_tty ;
2268 struct tty_audit_buf *tty_audit_buf ;
2269 struct rw_semaphore threadgroup_fork_lock ;
2270 int oom_adj ;
2271 int oom_score_adj ;
2272 int oom_score_adj_min ;
2273 struct mutex cred_guard_mutex ;
2274};
2275#line 687 "include/linux/sched.h"
2276struct user_struct {
2277 atomic_t __count ;
2278 atomic_t processes ;
2279 atomic_t files ;
2280 atomic_t sigpending ;
2281 atomic_t inotify_watches ;
2282 atomic_t inotify_devs ;
2283 atomic_t fanotify_listeners ;
2284 atomic_long_t epoll_watches ;
2285 unsigned long mq_bytes ;
2286 unsigned long locked_shm ;
2287 struct key *uid_keyring ;
2288 struct key *session_keyring ;
2289 struct hlist_node uidhash_node ;
2290 uid_t uid ;
2291 struct user_namespace *user_ns ;
2292 atomic_long_t locked_vm ;
2293};
2294#line 731
2295struct backing_dev_info;
2296#line 731
2297struct backing_dev_info;
2298#line 732
2299struct reclaim_state;
2300#line 732
2301struct reclaim_state;
2302#line 735 "include/linux/sched.h"
2303struct sched_info {
2304 unsigned long pcount ;
2305 unsigned long long run_delay ;
2306 unsigned long long last_arrival ;
2307 unsigned long long last_queued ;
2308};
2309#line 747 "include/linux/sched.h"
2310struct task_delay_info {
2311 spinlock_t lock ;
2312 unsigned int flags ;
2313 struct timespec blkio_start ;
2314 struct timespec blkio_end ;
2315 u64 blkio_delay ;
2316 u64 swapin_delay ;
2317 u32 blkio_count ;
2318 u32 swapin_count ;
2319 struct timespec freepages_start ;
2320 struct timespec freepages_end ;
2321 u64 freepages_delay ;
2322 u32 freepages_count ;
2323};
2324#line 1050
2325struct io_context;
2326#line 1050
2327struct io_context;
2328#line 1061
2329struct pipe_inode_info;
2330#line 1061
2331struct pipe_inode_info;
2332#line 1064
2333struct rq;
2334#line 1064
2335struct rq;
2336#line 1084 "include/linux/sched.h"
2337struct sched_class {
2338 struct sched_class const *next ;
2339 void (*enqueue_task)(struct rq *rq , struct task_struct *p , int flags ) ;
2340 void (*dequeue_task)(struct rq *rq , struct task_struct *p , int flags ) ;
2341 void (*yield_task)(struct rq *rq ) ;
2342 bool (*yield_to_task)(struct rq *rq , struct task_struct *p , bool preempt ) ;
2343 void (*check_preempt_curr)(struct rq *rq , struct task_struct *p , int flags ) ;
2344 struct task_struct *(*pick_next_task)(struct rq *rq ) ;
2345 void (*put_prev_task)(struct rq *rq , struct task_struct *p ) ;
2346 int (*select_task_rq)(struct task_struct *p , int sd_flag , int flags ) ;
2347 void (*pre_schedule)(struct rq *this_rq , struct task_struct *task ) ;
2348 void (*post_schedule)(struct rq *this_rq ) ;
2349 void (*task_waking)(struct task_struct *task ) ;
2350 void (*task_woken)(struct rq *this_rq , struct task_struct *task ) ;
2351 void (*set_cpus_allowed)(struct task_struct *p , struct cpumask const *newmask ) ;
2352 void (*rq_online)(struct rq *rq ) ;
2353 void (*rq_offline)(struct rq *rq ) ;
2354 void (*set_curr_task)(struct rq *rq ) ;
2355 void (*task_tick)(struct rq *rq , struct task_struct *p , int queued ) ;
2356 void (*task_fork)(struct task_struct *p ) ;
2357 void (*switched_from)(struct rq *this_rq , struct task_struct *task ) ;
2358 void (*switched_to)(struct rq *this_rq , struct task_struct *task ) ;
2359 void (*prio_changed)(struct rq *this_rq , struct task_struct *task , int oldprio ) ;
2360 unsigned int (*get_rr_interval)(struct rq *rq , struct task_struct *task ) ;
2361 void (*task_move_group)(struct task_struct *p , int on_rq ) ;
2362};
2363#line 1129 "include/linux/sched.h"
2364struct load_weight {
2365 unsigned long weight ;
2366 unsigned long inv_weight ;
2367};
2368#line 1134 "include/linux/sched.h"
2369struct sched_statistics {
2370 u64 wait_start ;
2371 u64 wait_max ;
2372 u64 wait_count ;
2373 u64 wait_sum ;
2374 u64 iowait_count ;
2375 u64 iowait_sum ;
2376 u64 sleep_start ;
2377 u64 sleep_max ;
2378 s64 sum_sleep_runtime ;
2379 u64 block_start ;
2380 u64 block_max ;
2381 u64 exec_max ;
2382 u64 slice_max ;
2383 u64 nr_migrations_cold ;
2384 u64 nr_failed_migrations_affine ;
2385 u64 nr_failed_migrations_running ;
2386 u64 nr_failed_migrations_hot ;
2387 u64 nr_forced_migrations ;
2388 u64 nr_wakeups ;
2389 u64 nr_wakeups_sync ;
2390 u64 nr_wakeups_migrate ;
2391 u64 nr_wakeups_local ;
2392 u64 nr_wakeups_remote ;
2393 u64 nr_wakeups_affine ;
2394 u64 nr_wakeups_affine_attempts ;
2395 u64 nr_wakeups_passive ;
2396 u64 nr_wakeups_idle ;
2397};
2398#line 1169 "include/linux/sched.h"
2399struct sched_entity {
2400 struct load_weight load ;
2401 struct rb_node run_node ;
2402 struct list_head group_node ;
2403 unsigned int on_rq ;
2404 u64 exec_start ;
2405 u64 sum_exec_runtime ;
2406 u64 vruntime ;
2407 u64 prev_sum_exec_runtime ;
2408 u64 nr_migrations ;
2409 struct sched_statistics statistics ;
2410 struct sched_entity *parent ;
2411 struct cfs_rq *cfs_rq ;
2412 struct cfs_rq *my_q ;
2413};
2414#line 1195
2415struct rt_rq;
2416#line 1195
2417struct rt_rq;
2418#line 1195 "include/linux/sched.h"
2419struct sched_rt_entity {
2420 struct list_head run_list ;
2421 unsigned long timeout ;
2422 unsigned int time_slice ;
2423 int nr_cpus_allowed ;
2424 struct sched_rt_entity *back ;
2425 struct sched_rt_entity *parent ;
2426 struct rt_rq *rt_rq ;
2427 struct rt_rq *my_q ;
2428};
2429#line 1220
2430struct files_struct;
2431#line 1220
2432struct files_struct;
2433#line 1220
2434struct irqaction;
2435#line 1220
2436struct irqaction;
2437#line 1220
2438struct css_set;
2439#line 1220
2440struct css_set;
2441#line 1220
2442struct compat_robust_list_head;
2443#line 1220
2444struct compat_robust_list_head;
2445#line 1220
2446struct ftrace_ret_stack;
2447#line 1220
2448struct ftrace_ret_stack;
2449#line 1220
2450struct mem_cgroup;
2451#line 1220
2452struct mem_cgroup;
2453#line 1220 "include/linux/sched.h"
2454struct memcg_batch_info {
2455 int do_batch ;
2456 struct mem_cgroup *memcg ;
2457 unsigned long nr_pages ;
2458 unsigned long memsw_nr_pages ;
2459};
2460#line 1220 "include/linux/sched.h"
2461struct task_struct {
2462 long volatile state ;
2463 void *stack ;
2464 atomic_t usage ;
2465 unsigned int flags ;
2466 unsigned int ptrace ;
2467 struct task_struct *wake_entry ;
2468 int on_cpu ;
2469 int on_rq ;
2470 int prio ;
2471 int static_prio ;
2472 int normal_prio ;
2473 unsigned int rt_priority ;
2474 struct sched_class const *sched_class ;
2475 struct sched_entity se ;
2476 struct sched_rt_entity rt ;
2477 struct hlist_head preempt_notifiers ;
2478 unsigned char fpu_counter ;
2479 unsigned int btrace_seq ;
2480 unsigned int policy ;
2481 cpumask_t cpus_allowed ;
2482 struct sched_info sched_info ;
2483 struct list_head tasks ;
2484 struct plist_node pushable_tasks ;
2485 struct mm_struct *mm ;
2486 struct mm_struct *active_mm ;
2487 unsigned int brk_randomized : 1 ;
2488 int exit_state ;
2489 int exit_code ;
2490 int exit_signal ;
2491 int pdeath_signal ;
2492 unsigned int group_stop ;
2493 unsigned int personality ;
2494 unsigned int did_exec : 1 ;
2495 unsigned int in_execve : 1 ;
2496 unsigned int in_iowait : 1 ;
2497 unsigned int sched_reset_on_fork : 1 ;
2498 unsigned int sched_contributes_to_load : 1 ;
2499 pid_t pid ;
2500 pid_t tgid ;
2501 unsigned long stack_canary ;
2502 struct task_struct *real_parent ;
2503 struct task_struct *parent ;
2504 struct list_head children ;
2505 struct list_head sibling ;
2506 struct task_struct *group_leader ;
2507 struct list_head ptraced ;
2508 struct list_head ptrace_entry ;
2509 struct pid_link pids[3] ;
2510 struct list_head thread_group ;
2511 struct completion *vfork_done ;
2512 int *set_child_tid ;
2513 int *clear_child_tid ;
2514 cputime_t utime ;
2515 cputime_t stime ;
2516 cputime_t utimescaled ;
2517 cputime_t stimescaled ;
2518 cputime_t gtime ;
2519 cputime_t prev_utime ;
2520 cputime_t prev_stime ;
2521 unsigned long nvcsw ;
2522 unsigned long nivcsw ;
2523 struct timespec start_time ;
2524 struct timespec real_start_time ;
2525 unsigned long min_flt ;
2526 unsigned long maj_flt ;
2527 struct task_cputime cputime_expires ;
2528 struct list_head cpu_timers[3] ;
2529 struct cred const *real_cred ;
2530 struct cred const *cred ;
2531 struct cred *replacement_session_keyring ;
2532 char comm[16] ;
2533 int link_count ;
2534 int total_link_count ;
2535 struct sysv_sem sysvsem ;
2536 unsigned long last_switch_count ;
2537 struct thread_struct thread ;
2538 struct fs_struct *fs ;
2539 struct files_struct *files ;
2540 struct nsproxy *nsproxy ;
2541 struct signal_struct *signal ;
2542 struct sighand_struct *sighand ;
2543 sigset_t blocked ;
2544 sigset_t real_blocked ;
2545 sigset_t saved_sigmask ;
2546 struct sigpending pending ;
2547 unsigned long sas_ss_sp ;
2548 size_t sas_ss_size ;
2549 int (*notifier)(void *priv ) ;
2550 void *notifier_data ;
2551 sigset_t *notifier_mask ;
2552 struct audit_context *audit_context ;
2553 uid_t loginuid ;
2554 unsigned int sessionid ;
2555 seccomp_t seccomp ;
2556 u32 parent_exec_id ;
2557 u32 self_exec_id ;
2558 spinlock_t alloc_lock ;
2559 struct irqaction *irqaction ;
2560 raw_spinlock_t pi_lock ;
2561 struct plist_head pi_waiters ;
2562 struct rt_mutex_waiter *pi_blocked_on ;
2563 struct mutex_waiter *blocked_on ;
2564 unsigned int irq_events ;
2565 unsigned long hardirq_enable_ip ;
2566 unsigned long hardirq_disable_ip ;
2567 unsigned int hardirq_enable_event ;
2568 unsigned int hardirq_disable_event ;
2569 int hardirqs_enabled ;
2570 int hardirq_context ;
2571 unsigned long softirq_disable_ip ;
2572 unsigned long softirq_enable_ip ;
2573 unsigned int softirq_disable_event ;
2574 unsigned int softirq_enable_event ;
2575 int softirqs_enabled ;
2576 int softirq_context ;
2577 u64 curr_chain_key ;
2578 int lockdep_depth ;
2579 unsigned int lockdep_recursion ;
2580 struct held_lock held_locks[48UL] ;
2581 gfp_t lockdep_reclaim_gfp ;
2582 void *journal_info ;
2583 struct bio_list *bio_list ;
2584 struct blk_plug *plug ;
2585 struct reclaim_state *reclaim_state ;
2586 struct backing_dev_info *backing_dev_info ;
2587 struct io_context *io_context ;
2588 unsigned long ptrace_message ;
2589 siginfo_t *last_siginfo ;
2590 struct task_io_accounting ioac ;
2591 u64 acct_rss_mem1 ;
2592 u64 acct_vm_mem1 ;
2593 cputime_t acct_timexpd ;
2594 nodemask_t mems_allowed ;
2595 int mems_allowed_change_disable ;
2596 int cpuset_mem_spread_rotor ;
2597 int cpuset_slab_spread_rotor ;
2598 struct css_set *cgroups ;
2599 struct list_head cg_list ;
2600 struct robust_list_head *robust_list ;
2601 struct compat_robust_list_head *compat_robust_list ;
2602 struct list_head pi_state_list ;
2603 struct futex_pi_state *pi_state_cache ;
2604 struct perf_event_context *perf_event_ctxp[2] ;
2605 struct mutex perf_event_mutex ;
2606 struct list_head perf_event_list ;
2607 struct mempolicy *mempolicy ;
2608 short il_next ;
2609 short pref_node_fork ;
2610 atomic_t fs_excl ;
2611 struct rcu_head rcu ;
2612 struct pipe_inode_info *splice_pipe ;
2613 struct task_delay_info *delays ;
2614 int make_it_fail ;
2615 struct prop_local_single dirties ;
2616 int latency_record_count ;
2617 struct latency_record latency_record[32] ;
2618 unsigned long timer_slack_ns ;
2619 unsigned long default_timer_slack_ns ;
2620 struct list_head *scm_work_list ;
2621 int curr_ret_stack ;
2622 struct ftrace_ret_stack *ret_stack ;
2623 unsigned long long ftrace_timestamp ;
2624 atomic_t trace_overrun ;
2625 atomic_t tracing_graph_pause ;
2626 unsigned long trace ;
2627 unsigned long trace_recursion ;
2628 struct memcg_batch_info memcg_batch ;
2629 atomic_t ptrace_bp_refcnt ;
2630};
2631#line 26 "include/linux/of.h"
2632typedef u32 phandle;
2633#line 29 "include/linux/of.h"
2634struct property {
2635 char *name ;
2636 int length ;
2637 void *value ;
2638 struct property *next ;
2639 unsigned long _flags ;
2640 unsigned int unique_id ;
2641};
2642#line 42
2643struct proc_dir_entry;
2644#line 42
2645struct proc_dir_entry;
2646#line 42 "include/linux/of.h"
2647struct device_node {
2648 char const *name ;
2649 char const *type ;
2650 phandle phandle ;
2651 char *full_name ;
2652 struct property *properties ;
2653 struct property *deadprops ;
2654 struct device_node *parent ;
2655 struct device_node *child ;
2656 struct device_node *sibling ;
2657 struct device_node *next ;
2658 struct device_node *allnext ;
2659 struct proc_dir_entry *pde ;
2660 struct kref kref ;
2661 unsigned long _flags ;
2662 void *data ;
2663};
2664#line 43 "include/linux/i2c.h"
2665struct i2c_msg;
2666#line 43
2667struct i2c_msg;
2668#line 44
2669struct i2c_algorithm;
2670#line 44
2671struct i2c_algorithm;
2672#line 45
2673struct i2c_adapter;
2674#line 45
2675struct i2c_adapter;
2676#line 46
2677struct i2c_client;
2678#line 46
2679struct i2c_client;
2680#line 47
2681struct i2c_driver;
2682#line 47
2683struct i2c_driver;
2684#line 48
2685union i2c_smbus_data;
2686#line 48
2687union i2c_smbus_data;
2688#line 49
2689struct i2c_board_info;
2690#line 49
2691struct i2c_board_info;
2692#line 142 "include/linux/i2c.h"
2693struct i2c_driver {
2694 unsigned int class ;
2695 int (*attach_adapter)(struct i2c_adapter * ) __attribute__((__deprecated__)) ;
2696 int (*detach_adapter)(struct i2c_adapter * ) __attribute__((__deprecated__)) ;
2697 int (*probe)(struct i2c_client * , struct i2c_device_id const * ) ;
2698 int (*remove)(struct i2c_client * ) ;
2699 void (*shutdown)(struct i2c_client * ) ;
2700 int (*suspend)(struct i2c_client * , pm_message_t mesg ) ;
2701 int (*resume)(struct i2c_client * ) ;
2702 void (*alert)(struct i2c_client * , unsigned int data ) ;
2703 int (*command)(struct i2c_client *client , unsigned int cmd , void *arg ) ;
2704 struct device_driver driver ;
2705 struct i2c_device_id const *id_table ;
2706 int (*detect)(struct i2c_client * , struct i2c_board_info * ) ;
2707 unsigned short const *address_list ;
2708 struct list_head clients ;
2709};
2710#line 201 "include/linux/i2c.h"
2711struct i2c_client {
2712 unsigned short flags ;
2713 unsigned short addr ;
2714 char name[20] ;
2715 struct i2c_adapter *adapter ;
2716 struct i2c_driver *driver ;
2717 struct device dev ;
2718 int irq ;
2719 struct list_head detected ;
2720};
2721#line 254 "include/linux/i2c.h"
2722struct i2c_board_info {
2723 char type[20] ;
2724 unsigned short flags ;
2725 unsigned short addr ;
2726 void *platform_data ;
2727 struct dev_archdata *archdata ;
2728 struct device_node *of_node ;
2729 int irq ;
2730};
2731#line 333 "include/linux/i2c.h"
2732struct i2c_algorithm {
2733 int (*master_xfer)(struct i2c_adapter *adap , struct i2c_msg *msgs , int num ) ;
2734 int (*smbus_xfer)(struct i2c_adapter *adap , u16 addr , unsigned short flags ,
2735 char read_write , u8 command , int size , union i2c_smbus_data *data ) ;
2736 u32 (*functionality)(struct i2c_adapter * ) ;
2737};
2738#line 354 "include/linux/i2c.h"
2739struct i2c_adapter {
2740 struct module *owner ;
2741 unsigned int class ;
2742 struct i2c_algorithm const *algo ;
2743 void *algo_data ;
2744 struct rt_mutex bus_lock ;
2745 int timeout ;
2746 int retries ;
2747 struct device dev ;
2748 int nr ;
2749 char name[48] ;
2750 struct completion dev_released ;
2751 struct mutex userspace_clients_lock ;
2752 struct list_head userspace_clients ;
2753};
2754#line 510 "include/linux/i2c.h"
2755struct i2c_msg {
2756 __u16 addr ;
2757 __u16 flags ;
2758 __u16 len ;
2759 __u8 *buf ;
2760};
2761#line 568 "include/linux/i2c.h"
2762union i2c_smbus_data {
2763 __u8 byte ;
2764 __u16 word ;
2765 __u8 block[34] ;
2766};
2767#line 107 "include/linux/videodev2.h"
2768enum v4l2_field {
2769 V4L2_FIELD_ANY = 0,
2770 V4L2_FIELD_NONE = 1,
2771 V4L2_FIELD_TOP = 2,
2772 V4L2_FIELD_BOTTOM = 3,
2773 V4L2_FIELD_INTERLACED = 4,
2774 V4L2_FIELD_SEQ_TB = 5,
2775 V4L2_FIELD_SEQ_BT = 6,
2776 V4L2_FIELD_ALTERNATE = 7,
2777 V4L2_FIELD_INTERLACED_TB = 8,
2778 V4L2_FIELD_INTERLACED_BT = 9
2779} ;
2780#line 149
2781enum v4l2_buf_type {
2782 V4L2_BUF_TYPE_VIDEO_CAPTURE = 1,
2783 V4L2_BUF_TYPE_VIDEO_OUTPUT = 2,
2784 V4L2_BUF_TYPE_VIDEO_OVERLAY = 3,
2785 V4L2_BUF_TYPE_VBI_CAPTURE = 4,
2786 V4L2_BUF_TYPE_VBI_OUTPUT = 5,
2787 V4L2_BUF_TYPE_SLICED_VBI_CAPTURE = 6,
2788 V4L2_BUF_TYPE_SLICED_VBI_OUTPUT = 7,
2789 V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY = 8,
2790 V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE = 9,
2791 V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE = 10,
2792 V4L2_BUF_TYPE_PRIVATE = 128
2793} ;
2794#line 178
2795enum v4l2_tuner_type {
2796 V4L2_TUNER_RADIO = 1,
2797 V4L2_TUNER_ANALOG_TV = 2,
2798 V4L2_TUNER_DIGITAL_TV = 3
2799} ;
2800#line 184
2801enum v4l2_memory {
2802 V4L2_MEMORY_MMAP = 1,
2803 V4L2_MEMORY_USERPTR = 2,
2804 V4L2_MEMORY_OVERLAY = 3
2805} ;
2806#line 191
2807enum v4l2_colorspace {
2808 V4L2_COLORSPACE_SMPTE170M = 1,
2809 V4L2_COLORSPACE_SMPTE240M = 2,
2810 V4L2_COLORSPACE_REC709 = 3,
2811 V4L2_COLORSPACE_BT878 = 4,
2812 V4L2_COLORSPACE_470_SYSTEM_M = 5,
2813 V4L2_COLORSPACE_470_SYSTEM_BG = 6,
2814 V4L2_COLORSPACE_JPEG = 7,
2815 V4L2_COLORSPACE_SRGB = 8
2816} ;
2817#line 218
2818enum v4l2_priority {
2819 V4L2_PRIORITY_UNSET = 0,
2820 V4L2_PRIORITY_BACKGROUND = 1,
2821 V4L2_PRIORITY_INTERACTIVE = 2,
2822 V4L2_PRIORITY_RECORD = 3,
2823 V4L2_PRIORITY_DEFAULT = 2
2824} ;
2825#line 226 "include/linux/videodev2.h"
2826struct v4l2_rect {
2827 __s32 left ;
2828 __s32 top ;
2829 __s32 width ;
2830 __s32 height ;
2831};
2832#line 233 "include/linux/videodev2.h"
2833struct v4l2_fract {
2834 __u32 numerator ;
2835 __u32 denominator ;
2836};
2837#line 241 "include/linux/videodev2.h"
2838struct v4l2_capability {
2839 __u8 driver[16] ;
2840 __u8 card[32] ;
2841 __u8 bus_info[32] ;
2842 __u32 version ;
2843 __u32 capabilities ;
2844 __u32 reserved[4] ;
2845};
2846#line 280 "include/linux/videodev2.h"
2847struct v4l2_pix_format {
2848 __u32 width ;
2849 __u32 height ;
2850 __u32 pixelformat ;
2851 enum v4l2_field field ;
2852 __u32 bytesperline ;
2853 __u32 sizeimage ;
2854 enum v4l2_colorspace colorspace ;
2855 __u32 priv ;
2856};
2857#line 409 "include/linux/videodev2.h"
2858struct v4l2_fmtdesc {
2859 __u32 index ;
2860 enum v4l2_buf_type type ;
2861 __u32 flags ;
2862 __u8 description[32] ;
2863 __u32 pixelformat ;
2864 __u32 reserved[4] ;
2865};
2866#line 432 "include/linux/videodev2.h"
2867struct v4l2_frmsize_discrete {
2868 __u32 width ;
2869 __u32 height ;
2870};
2871#line 437 "include/linux/videodev2.h"
2872struct v4l2_frmsize_stepwise {
2873 __u32 min_width ;
2874 __u32 max_width ;
2875 __u32 step_width ;
2876 __u32 min_height ;
2877 __u32 max_height ;
2878 __u32 step_height ;
2879};
2880#line 446 "include/linux/videodev2.h"
2881union __anonunion____missing_field_name_224 {
2882 struct v4l2_frmsize_discrete discrete ;
2883 struct v4l2_frmsize_stepwise stepwise ;
2884};
2885#line 446 "include/linux/videodev2.h"
2886struct v4l2_frmsizeenum {
2887 __u32 index ;
2888 __u32 pixel_format ;
2889 __u32 type ;
2890 union __anonunion____missing_field_name_224 __annonCompField39 ;
2891 __u32 reserved[2] ;
2892};
2893#line 468 "include/linux/videodev2.h"
2894struct v4l2_frmival_stepwise {
2895 struct v4l2_fract min ;
2896 struct v4l2_fract max ;
2897 struct v4l2_fract step ;
2898};
2899#line 474 "include/linux/videodev2.h"
2900union __anonunion____missing_field_name_225 {
2901 struct v4l2_fract discrete ;
2902 struct v4l2_frmival_stepwise stepwise ;
2903};
2904#line 474 "include/linux/videodev2.h"
2905struct v4l2_frmivalenum {
2906 __u32 index ;
2907 __u32 pixel_format ;
2908 __u32 width ;
2909 __u32 height ;
2910 __u32 type ;
2911 union __anonunion____missing_field_name_225 __annonCompField40 ;
2912 __u32 reserved[2] ;
2913};
2914#line 493 "include/linux/videodev2.h"
2915struct v4l2_timecode {
2916 __u32 type ;
2917 __u32 flags ;
2918 __u8 frames ;
2919 __u8 seconds ;
2920 __u8 minutes ;
2921 __u8 hours ;
2922 __u8 userbits[4] ;
2923};
2924#line 518 "include/linux/videodev2.h"
2925struct v4l2_jpegcompression {
2926 int quality ;
2927 int APPn ;
2928 int APP_len ;
2929 char APP_data[60] ;
2930 int COM_len ;
2931 char COM_data[60] ;
2932 __u32 jpeg_markers ;
2933};
2934#line 550 "include/linux/videodev2.h"
2935struct v4l2_requestbuffers {
2936 __u32 count ;
2937 enum v4l2_buf_type type ;
2938 enum v4l2_memory memory ;
2939 __u32 reserved[2] ;
2940};
2941#line 575 "include/linux/videodev2.h"
2942union __anonunion_m_226 {
2943 __u32 mem_offset ;
2944 unsigned long userptr ;
2945};
2946#line 575 "include/linux/videodev2.h"
2947struct v4l2_plane {
2948 __u32 bytesused ;
2949 __u32 length ;
2950 union __anonunion_m_226 m ;
2951 __u32 data_offset ;
2952 __u32 reserved[11] ;
2953};
2954#line 613 "include/linux/videodev2.h"
2955union __anonunion_m_227 {
2956 __u32 offset ;
2957 unsigned long userptr ;
2958 struct v4l2_plane *planes ;
2959};
2960#line 613 "include/linux/videodev2.h"
2961struct v4l2_buffer {
2962 __u32 index ;
2963 enum v4l2_buf_type type ;
2964 __u32 bytesused ;
2965 __u32 flags ;
2966 enum v4l2_field field ;
2967 struct timeval timestamp ;
2968 struct v4l2_timecode timecode ;
2969 __u32 sequence ;
2970 enum v4l2_memory memory ;
2971 union __anonunion_m_227 m ;
2972 __u32 length ;
2973 __u32 input ;
2974 __u32 reserved ;
2975};
2976#line 650 "include/linux/videodev2.h"
2977struct v4l2_framebuffer {
2978 __u32 capability ;
2979 __u32 flags ;
2980 void *base ;
2981 struct v4l2_pix_format fmt ;
2982};
2983#line 676 "include/linux/videodev2.h"
2984struct v4l2_clip {
2985 struct v4l2_rect c ;
2986 struct v4l2_clip *next ;
2987};
2988#line 681 "include/linux/videodev2.h"
2989struct v4l2_window {
2990 struct v4l2_rect w ;
2991 enum v4l2_field field ;
2992 __u32 chromakey ;
2993 struct v4l2_clip *clips ;
2994 __u32 clipcount ;
2995 void *bitmap ;
2996 __u8 global_alpha ;
2997};
2998#line 694 "include/linux/videodev2.h"
2999struct v4l2_captureparm {
3000 __u32 capability ;
3001 __u32 capturemode ;
3002 struct v4l2_fract timeperframe ;
3003 __u32 extendedmode ;
3004 __u32 readbuffers ;
3005 __u32 reserved[4] ;
3006};
3007#line 707 "include/linux/videodev2.h"
3008struct v4l2_outputparm {
3009 __u32 capability ;
3010 __u32 outputmode ;
3011 struct v4l2_fract timeperframe ;
3012 __u32 extendedmode ;
3013 __u32 writebuffers ;
3014 __u32 reserved[4] ;
3015};
3016#line 719 "include/linux/videodev2.h"
3017struct v4l2_cropcap {
3018 enum v4l2_buf_type type ;
3019 struct v4l2_rect bounds ;
3020 struct v4l2_rect defrect ;
3021 struct v4l2_fract pixelaspect ;
3022};
3023#line 726 "include/linux/videodev2.h"
3024struct v4l2_crop {
3025 enum v4l2_buf_type type ;
3026 struct v4l2_rect c ;
3027};
3028#line 735 "include/linux/videodev2.h"
3029typedef __u64 v4l2_std_id;
3030#line 836 "include/linux/videodev2.h"
3031struct v4l2_dv_preset {
3032 __u32 preset ;
3033 __u32 reserved[4] ;
3034};
3035#line 844 "include/linux/videodev2.h"
3036struct v4l2_dv_enum_preset {
3037 __u32 index ;
3038 __u32 preset ;
3039 __u8 name[32] ;
3040 __u32 width ;
3041 __u32 height ;
3042 __u32 reserved[4] ;
3043};
3044#line 881 "include/linux/videodev2.h"
3045struct v4l2_bt_timings {
3046 __u32 width ;
3047 __u32 height ;
3048 __u32 interlaced ;
3049 __u32 polarities ;
3050 __u64 pixelclock ;
3051 __u32 hfrontporch ;
3052 __u32 hsync ;
3053 __u32 hbackporch ;
3054 __u32 vfrontporch ;
3055 __u32 vsync ;
3056 __u32 vbackporch ;
3057 __u32 il_vfrontporch ;
3058 __u32 il_vsync ;
3059 __u32 il_vbackporch ;
3060 __u32 reserved[16] ;
3061} __attribute__((__packed__)) ;
3062#line 915 "include/linux/videodev2.h"
3063union __anonunion____missing_field_name_228 {
3064 struct v4l2_bt_timings bt ;
3065 __u32 reserved[32] ;
3066};
3067#line 915 "include/linux/videodev2.h"
3068struct v4l2_dv_timings {
3069 __u32 type ;
3070 union __anonunion____missing_field_name_228 __annonCompField41 ;
3071} __attribute__((__packed__)) ;
3072#line 929 "include/linux/videodev2.h"
3073struct v4l2_input {
3074 __u32 index ;
3075 __u8 name[32] ;
3076 __u32 type ;
3077 __u32 audioset ;
3078 __u32 tuner ;
3079 v4l2_std_id std ;
3080 __u32 status ;
3081 __u32 capabilities ;
3082 __u32 reserved[3] ;
3083};
3084#line 977 "include/linux/videodev2.h"
3085struct v4l2_output {
3086 __u32 index ;
3087 __u8 name[32] ;
3088 __u32 type ;
3089 __u32 audioset ;
3090 __u32 modulator ;
3091 v4l2_std_id std ;
3092 __u32 capabilities ;
3093 __u32 reserved[3] ;
3094};
3095#line 1000 "include/linux/videodev2.h"
3096struct v4l2_control {
3097 __u32 id ;
3098 __s32 value ;
3099};
3100#line 1005 "include/linux/videodev2.h"
3101union __anonunion____missing_field_name_229 {
3102 __s32 value ;
3103 __s64 value64 ;
3104 char *string ;
3105};
3106#line 1005 "include/linux/videodev2.h"
3107struct v4l2_ext_control {
3108 __u32 id ;
3109 __u32 size ;
3110 __u32 reserved2[1] ;
3111 union __anonunion____missing_field_name_229 __annonCompField42 ;
3112} __attribute__((__packed__)) ;
3113#line 1016 "include/linux/videodev2.h"
3114struct v4l2_ext_controls {
3115 __u32 ctrl_class ;
3116 __u32 count ;
3117 __u32 error_idx ;
3118 __u32 reserved[2] ;
3119 struct v4l2_ext_control *controls ;
3120};
3121#line 1034
3122enum v4l2_ctrl_type {
3123 V4L2_CTRL_TYPE_INTEGER = 1,
3124 V4L2_CTRL_TYPE_BOOLEAN = 2,
3125 V4L2_CTRL_TYPE_MENU = 3,
3126 V4L2_CTRL_TYPE_BUTTON = 4,
3127 V4L2_CTRL_TYPE_INTEGER64 = 5,
3128 V4L2_CTRL_TYPE_CTRL_CLASS = 6,
3129 V4L2_CTRL_TYPE_STRING = 7
3130} ;
3131#line 1045 "include/linux/videodev2.h"
3132struct v4l2_queryctrl {
3133 __u32 id ;
3134 enum v4l2_ctrl_type type ;
3135 __u8 name[32] ;
3136 __s32 minimum ;
3137 __s32 maximum ;
3138 __s32 step ;
3139 __s32 default_value ;
3140 __u32 flags ;
3141 __u32 reserved[2] ;
3142};
3143#line 1058 "include/linux/videodev2.h"
3144struct v4l2_querymenu {
3145 __u32 id ;
3146 __u32 index ;
3147 __u8 name[32] ;
3148 __u32 reserved ;
3149};
3150#line 1433 "include/linux/videodev2.h"
3151struct v4l2_tuner {
3152 __u32 index ;
3153 __u8 name[32] ;
3154 enum v4l2_tuner_type type ;
3155 __u32 capability ;
3156 __u32 rangelow ;
3157 __u32 rangehigh ;
3158 __u32 rxsubchans ;
3159 __u32 audmode ;
3160 __s32 signal ;
3161 __s32 afc ;
3162 __u32 reserved[4] ;
3163};
3164#line 1447 "include/linux/videodev2.h"
3165struct v4l2_modulator {
3166 __u32 index ;
3167 __u8 name[32] ;
3168 __u32 capability ;
3169 __u32 rangelow ;
3170 __u32 rangehigh ;
3171 __u32 txsubchans ;
3172 __u32 reserved[4] ;
3173};
3174#line 1484 "include/linux/videodev2.h"
3175struct v4l2_frequency {
3176 __u32 tuner ;
3177 enum v4l2_tuner_type type ;
3178 __u32 frequency ;
3179 __u32 reserved[8] ;
3180};
3181#line 1491 "include/linux/videodev2.h"
3182struct v4l2_hw_freq_seek {
3183 __u32 tuner ;
3184 enum v4l2_tuner_type type ;
3185 __u32 seek_upward ;
3186 __u32 wrap_around ;
3187 __u32 spacing ;
3188 __u32 reserved[7] ;
3189};
3190#line 1524 "include/linux/videodev2.h"
3191struct v4l2_audio {
3192 __u32 index ;
3193 __u8 name[32] ;
3194 __u32 capability ;
3195 __u32 mode ;
3196 __u32 reserved[2] ;
3197};
3198#line 1539 "include/linux/videodev2.h"
3199struct v4l2_audioout {
3200 __u32 index ;
3201 __u8 name[32] ;
3202 __u32 capability ;
3203 __u32 mode ;
3204 __u32 reserved[2] ;
3205};
3206#line 1558 "include/linux/videodev2.h"
3207struct v4l2_enc_idx_entry {
3208 __u64 offset ;
3209 __u64 pts ;
3210 __u32 length ;
3211 __u32 flags ;
3212 __u32 reserved[2] ;
3213};
3214#line 1567 "include/linux/videodev2.h"
3215struct v4l2_enc_idx {
3216 __u32 entries ;
3217 __u32 entries_cap ;
3218 __u32 reserved[4] ;
3219 struct v4l2_enc_idx_entry entry[64] ;
3220};
3221#line 1583 "include/linux/videodev2.h"
3222struct __anonstruct_raw_231 {
3223 __u32 data[8] ;
3224};
3225#line 1583 "include/linux/videodev2.h"
3226union __anonunion____missing_field_name_230 {
3227 struct __anonstruct_raw_231 raw ;
3228};
3229#line 1583 "include/linux/videodev2.h"
3230struct v4l2_encoder_cmd {
3231 __u32 cmd ;
3232 __u32 flags ;
3233 union __anonunion____missing_field_name_230 __annonCompField43 ;
3234};
3235#line 1603 "include/linux/videodev2.h"
3236struct v4l2_vbi_format {
3237 __u32 sampling_rate ;
3238 __u32 offset ;
3239 __u32 samples_per_line ;
3240 __u32 sample_format ;
3241 __s32 start[2] ;
3242 __u32 count[2] ;
3243 __u32 flags ;
3244 __u32 reserved[2] ;
3245};
3246#line 1625 "include/linux/videodev2.h"
3247struct v4l2_sliced_vbi_format {
3248 __u16 service_set ;
3249 __u16 service_lines[2][24] ;
3250 __u32 io_size ;
3251 __u32 reserved[2] ;
3252};
3253#line 1649 "include/linux/videodev2.h"
3254struct v4l2_sliced_vbi_cap {
3255 __u16 service_set ;
3256 __u16 service_lines[2][24] ;
3257 enum v4l2_buf_type type ;
3258 __u32 reserved[3] ;
3259};
3260#line 1660 "include/linux/videodev2.h"
3261struct v4l2_sliced_vbi_data {
3262 __u32 id ;
3263 __u32 field ;
3264 __u32 line ;
3265 __u32 reserved ;
3266 __u8 data[48] ;
3267};
3268#line 1726 "include/linux/videodev2.h"
3269struct v4l2_plane_pix_format {
3270 __u32 sizeimage ;
3271 __u16 bytesperline ;
3272 __u16 reserved[7] ;
3273} __attribute__((__packed__)) ;
3274#line 1742 "include/linux/videodev2.h"
3275struct v4l2_pix_format_mplane {
3276 __u32 width ;
3277 __u32 height ;
3278 __u32 pixelformat ;
3279 enum v4l2_field field ;
3280 enum v4l2_colorspace colorspace ;
3281 struct v4l2_plane_pix_format plane_fmt[8] ;
3282 __u8 num_planes ;
3283 __u8 reserved[11] ;
3284} __attribute__((__packed__)) ;
3285#line 1764 "include/linux/videodev2.h"
3286union __anonunion_fmt_233 {
3287 struct v4l2_pix_format pix ;
3288 struct v4l2_pix_format_mplane pix_mp ;
3289 struct v4l2_window win ;
3290 struct v4l2_vbi_format vbi ;
3291 struct v4l2_sliced_vbi_format sliced ;
3292 __u8 raw_data[200] ;
3293};
3294#line 1764 "include/linux/videodev2.h"
3295struct v4l2_format {
3296 enum v4l2_buf_type type ;
3297 union __anonunion_fmt_233 fmt ;
3298};
3299#line 1778 "include/linux/videodev2.h"
3300union __anonunion_parm_234 {
3301 struct v4l2_captureparm capture ;
3302 struct v4l2_outputparm output ;
3303 __u8 raw_data[200] ;
3304};
3305#line 1778 "include/linux/videodev2.h"
3306struct v4l2_streamparm {
3307 enum v4l2_buf_type type ;
3308 union __anonunion_parm_234 parm ;
3309};
3310#line 1814 "include/linux/videodev2.h"
3311struct v4l2_event_subscription {
3312 __u32 type ;
3313 __u32 reserved[7] ;
3314};
3315#line 1833 "include/linux/videodev2.h"
3316union __anonunion____missing_field_name_236 {
3317 __u32 addr ;
3318 char name[32] ;
3319};
3320#line 1833 "include/linux/videodev2.h"
3321struct v4l2_dbg_match {
3322 __u32 type ;
3323 union __anonunion____missing_field_name_236 __annonCompField45 ;
3324} __attribute__((__packed__)) ;
3325#line 1841 "include/linux/videodev2.h"
3326struct v4l2_dbg_register {
3327 struct v4l2_dbg_match match ;
3328 __u32 size ;
3329 __u64 reg ;
3330 __u64 val ;
3331} __attribute__((__packed__)) ;
3332#line 1849 "include/linux/videodev2.h"
3333struct v4l2_dbg_chip_ident {
3334 struct v4l2_dbg_match match ;
3335 __u32 ident ;
3336 __u32 revision ;
3337} __attribute__((__packed__)) ;
3338#line 31 "include/asm-generic/poll.h"
3339struct pollfd {
3340 int fd ;
3341 short events ;
3342 short revents ;
3343};
3344#line 16 "include/linux/blk_types.h"
3345struct block_device;
3346#line 16
3347struct block_device;
3348#line 33 "include/linux/list_bl.h"
3349struct hlist_bl_node;
3350#line 33
3351struct hlist_bl_node;
3352#line 33 "include/linux/list_bl.h"
3353struct hlist_bl_head {
3354 struct hlist_bl_node *first ;
3355};
3356#line 37 "include/linux/list_bl.h"
3357struct hlist_bl_node {
3358 struct hlist_bl_node *next ;
3359 struct hlist_bl_node **pprev ;
3360};
3361#line 13 "include/linux/dcache.h"
3362struct nameidata;
3363#line 13
3364struct nameidata;
3365#line 14
3366struct path;
3367#line 14
3368struct path;
3369#line 15
3370struct vfsmount;
3371#line 15
3372struct vfsmount;
3373#line 35 "include/linux/dcache.h"
3374struct qstr {
3375 unsigned int hash ;
3376 unsigned int len ;
3377 unsigned char const *name ;
3378};
3379#line 116
3380struct dentry_operations;
3381#line 116
3382struct dentry_operations;
3383#line 116
3384struct super_block;
3385#line 116
3386struct super_block;
3387#line 116 "include/linux/dcache.h"
3388union __anonunion_d_u_237 {
3389 struct list_head d_child ;
3390 struct rcu_head d_rcu ;
3391};
3392#line 116 "include/linux/dcache.h"
3393struct dentry {
3394 unsigned int d_flags ;
3395 seqcount_t d_seq ;
3396 struct hlist_bl_node d_hash ;
3397 struct dentry *d_parent ;
3398 struct qstr d_name ;
3399 struct inode *d_inode ;
3400 unsigned char d_iname[32] ;
3401 unsigned int d_count ;
3402 spinlock_t d_lock ;
3403 struct dentry_operations const *d_op ;
3404 struct super_block *d_sb ;
3405 unsigned long d_time ;
3406 void *d_fsdata ;
3407 struct list_head d_lru ;
3408 union __anonunion_d_u_237 d_u ;
3409 struct list_head d_subdirs ;
3410 struct list_head d_alias ;
3411};
3412#line 159 "include/linux/dcache.h"
3413struct dentry_operations {
3414 int (*d_revalidate)(struct dentry * , struct nameidata * ) ;
3415 int (*d_hash)(struct dentry const * , struct inode const * , struct qstr * ) ;
3416 int (*d_compare)(struct dentry const * , struct inode const * , struct dentry const * ,
3417 struct inode const * , unsigned int , char const * , struct qstr const * ) ;
3418 int (*d_delete)(struct dentry const * ) ;
3419 void (*d_release)(struct dentry * ) ;
3420 void (*d_iput)(struct dentry * , struct inode * ) ;
3421 char *(*d_dname)(struct dentry * , char * , int ) ;
3422 struct vfsmount *(*d_automount)(struct path * ) ;
3423 int (*d_manage)(struct dentry * , bool ) ;
3424} __attribute__((__aligned__((1) << (6) ))) ;
3425#line 7 "include/linux/path.h"
3426struct path {
3427 struct vfsmount *mnt ;
3428 struct dentry *dentry ;
3429};
3430#line 57 "include/linux/radix-tree.h"
3431struct radix_tree_node;
3432#line 57
3433struct radix_tree_node;
3434#line 57 "include/linux/radix-tree.h"
3435struct radix_tree_root {
3436 unsigned int height ;
3437 gfp_t gfp_mask ;
3438 struct radix_tree_node *rnode ;
3439};
3440#line 16 "include/linux/fiemap.h"
3441struct fiemap_extent {
3442 __u64 fe_logical ;
3443 __u64 fe_physical ;
3444 __u64 fe_length ;
3445 __u64 fe_reserved64[2] ;
3446 __u32 fe_flags ;
3447 __u32 fe_reserved[3] ;
3448};
3449#line 399 "include/linux/fs.h"
3450struct export_operations;
3451#line 399
3452struct export_operations;
3453#line 406
3454struct poll_table_struct;
3455#line 406
3456struct poll_table_struct;
3457#line 407
3458struct kstatfs;
3459#line 407
3460struct kstatfs;
3461#line 460 "include/linux/fs.h"
3462struct iattr {
3463 unsigned int ia_valid ;
3464 umode_t ia_mode ;
3465 uid_t ia_uid ;
3466 gid_t ia_gid ;
3467 loff_t ia_size ;
3468 struct timespec ia_atime ;
3469 struct timespec ia_mtime ;
3470 struct timespec ia_ctime ;
3471 struct file *ia_file ;
3472};
3473#line 129 "include/linux/quota.h"
3474struct if_dqinfo {
3475 __u64 dqi_bgrace ;
3476 __u64 dqi_igrace ;
3477 __u32 dqi_flags ;
3478 __u32 dqi_valid ;
3479};
3480#line 50 "include/linux/dqblk_xfs.h"
3481struct fs_disk_quota {
3482 __s8 d_version ;
3483 __s8 d_flags ;
3484 __u16 d_fieldmask ;
3485 __u32 d_id ;
3486 __u64 d_blk_hardlimit ;
3487 __u64 d_blk_softlimit ;
3488 __u64 d_ino_hardlimit ;
3489 __u64 d_ino_softlimit ;
3490 __u64 d_bcount ;
3491 __u64 d_icount ;
3492 __s32 d_itimer ;
3493 __s32 d_btimer ;
3494 __u16 d_iwarns ;
3495 __u16 d_bwarns ;
3496 __s32 d_padding2 ;
3497 __u64 d_rtb_hardlimit ;
3498 __u64 d_rtb_softlimit ;
3499 __u64 d_rtbcount ;
3500 __s32 d_rtbtimer ;
3501 __u16 d_rtbwarns ;
3502 __s16 d_padding3 ;
3503 char d_padding4[8] ;
3504};
3505#line 146 "include/linux/dqblk_xfs.h"
3506struct fs_qfilestat {
3507 __u64 qfs_ino ;
3508 __u64 qfs_nblks ;
3509 __u32 qfs_nextents ;
3510};
3511#line 146 "include/linux/dqblk_xfs.h"
3512typedef struct fs_qfilestat fs_qfilestat_t;
3513#line 152 "include/linux/dqblk_xfs.h"
3514struct fs_quota_stat {
3515 __s8 qs_version ;
3516 __u16 qs_flags ;
3517 __s8 qs_pad ;
3518 fs_qfilestat_t qs_uquota ;
3519 fs_qfilestat_t qs_gquota ;
3520 __u32 qs_incoredqs ;
3521 __s32 qs_btimelimit ;
3522 __s32 qs_itimelimit ;
3523 __s32 qs_rtbtimelimit ;
3524 __u16 qs_bwarnlimit ;
3525 __u16 qs_iwarnlimit ;
3526};
3527#line 17 "include/linux/dqblk_qtree.h"
3528struct dquot;
3529#line 17
3530struct dquot;
3531#line 185 "include/linux/quota.h"
3532typedef __kernel_uid32_t qid_t;
3533#line 186 "include/linux/quota.h"
3534typedef long long qsize_t;
3535#line 200 "include/linux/quota.h"
3536struct mem_dqblk {
3537 qsize_t dqb_bhardlimit ;
3538 qsize_t dqb_bsoftlimit ;
3539 qsize_t dqb_curspace ;
3540 qsize_t dqb_rsvspace ;
3541 qsize_t dqb_ihardlimit ;
3542 qsize_t dqb_isoftlimit ;
3543 qsize_t dqb_curinodes ;
3544 time_t dqb_btime ;
3545 time_t dqb_itime ;
3546};
3547#line 215
3548struct quota_format_type;
3549#line 215
3550struct quota_format_type;
3551#line 217 "include/linux/quota.h"
3552struct mem_dqinfo {
3553 struct quota_format_type *dqi_format ;
3554 int dqi_fmt_id ;
3555 struct list_head dqi_dirty_list ;
3556 unsigned long dqi_flags ;
3557 unsigned int dqi_bgrace ;
3558 unsigned int dqi_igrace ;
3559 qsize_t dqi_maxblimit ;
3560 qsize_t dqi_maxilimit ;
3561 void *dqi_priv ;
3562};
3563#line 284 "include/linux/quota.h"
3564struct dquot {
3565 struct hlist_node dq_hash ;
3566 struct list_head dq_inuse ;
3567 struct list_head dq_free ;
3568 struct list_head dq_dirty ;
3569 struct mutex dq_lock ;
3570 atomic_t dq_count ;
3571 wait_queue_head_t dq_wait_unused ;
3572 struct super_block *dq_sb ;
3573 unsigned int dq_id ;
3574 loff_t dq_off ;
3575 unsigned long dq_flags ;
3576 short dq_type ;
3577 struct mem_dqblk dq_dqb ;
3578};
3579#line 301 "include/linux/quota.h"
3580struct quota_format_ops {
3581 int (*check_quota_file)(struct super_block *sb , int type ) ;
3582 int (*read_file_info)(struct super_block *sb , int type ) ;
3583 int (*write_file_info)(struct super_block *sb , int type ) ;
3584 int (*free_file_info)(struct super_block *sb , int type ) ;
3585 int (*read_dqblk)(struct dquot *dquot ) ;
3586 int (*commit_dqblk)(struct dquot *dquot ) ;
3587 int (*release_dqblk)(struct dquot *dquot ) ;
3588};
3589#line 312 "include/linux/quota.h"
3590struct dquot_operations {
3591 int (*write_dquot)(struct dquot * ) ;
3592 struct dquot *(*alloc_dquot)(struct super_block * , int ) ;
3593 void (*destroy_dquot)(struct dquot * ) ;
3594 int (*acquire_dquot)(struct dquot * ) ;
3595 int (*release_dquot)(struct dquot * ) ;
3596 int (*mark_dirty)(struct dquot * ) ;
3597 int (*write_info)(struct super_block * , int ) ;
3598 qsize_t *(*get_reserved_space)(struct inode * ) ;
3599};
3600#line 328 "include/linux/quota.h"
3601struct quotactl_ops {
3602 int (*quota_on)(struct super_block * , int , int , struct path * ) ;
3603 int (*quota_on_meta)(struct super_block * , int , int ) ;
3604 int (*quota_off)(struct super_block * , int ) ;
3605 int (*quota_sync)(struct super_block * , int , int ) ;
3606 int (*get_info)(struct super_block * , int , struct if_dqinfo * ) ;
3607 int (*set_info)(struct super_block * , int , struct if_dqinfo * ) ;
3608 int (*get_dqblk)(struct super_block * , int , qid_t , struct fs_disk_quota * ) ;
3609 int (*set_dqblk)(struct super_block * , int , qid_t , struct fs_disk_quota * ) ;
3610 int (*get_xstate)(struct super_block * , struct fs_quota_stat * ) ;
3611 int (*set_xstate)(struct super_block * , unsigned int , int ) ;
3612};
3613#line 341 "include/linux/quota.h"
3614struct quota_format_type {
3615 int qf_fmt_id ;
3616 struct quota_format_ops const *qf_ops ;
3617 struct module *qf_owner ;
3618 struct quota_format_type *qf_next ;
3619};
3620#line 395 "include/linux/quota.h"
3621struct quota_info {
3622 unsigned int flags ;
3623 struct mutex dqio_mutex ;
3624 struct mutex dqonoff_mutex ;
3625 struct rw_semaphore dqptr_sem ;
3626 struct inode *files[2] ;
3627 struct mem_dqinfo info[2] ;
3628 struct quota_format_ops const *ops[2] ;
3629};
3630#line 525 "include/linux/fs.h"
3631struct writeback_control;
3632#line 525
3633struct writeback_control;
3634#line 568 "include/linux/fs.h"
3635union __anonunion_arg_244 {
3636 char *buf ;
3637 void *data ;
3638};
3639#line 568 "include/linux/fs.h"
3640struct __anonstruct_read_descriptor_t_243 {
3641 size_t written ;
3642 size_t count ;
3643 union __anonunion_arg_244 arg ;
3644 int error ;
3645};
3646#line 568 "include/linux/fs.h"
3647typedef struct __anonstruct_read_descriptor_t_243 read_descriptor_t;
3648#line 581 "include/linux/fs.h"
3649struct address_space_operations {
3650 int (*writepage)(struct page *page , struct writeback_control *wbc ) ;
3651 int (*readpage)(struct file * , struct page * ) ;
3652 int (*writepages)(struct address_space * , struct writeback_control * ) ;
3653 int (*set_page_dirty)(struct page *page ) ;
3654 int (*readpages)(struct file *filp , struct address_space *mapping , struct list_head *pages ,
3655 unsigned int nr_pages ) ;
3656 int (*write_begin)(struct file * , struct address_space *mapping , loff_t pos ,
3657 unsigned int len , unsigned int flags , struct page **pagep ,
3658 void **fsdata ) ;
3659 int (*write_end)(struct file * , struct address_space *mapping , loff_t pos , unsigned int len ,
3660 unsigned int copied , struct page *page , void *fsdata ) ;
3661 sector_t (*bmap)(struct address_space * , sector_t ) ;
3662 void (*invalidatepage)(struct page * , unsigned long ) ;
3663 int (*releasepage)(struct page * , gfp_t ) ;
3664 void (*freepage)(struct page * ) ;
3665 ssize_t (*direct_IO)(int , struct kiocb * , struct iovec const *iov , loff_t offset ,
3666 unsigned long nr_segs ) ;
3667 int (*get_xip_mem)(struct address_space * , unsigned long , int , void ** , unsigned long * ) ;
3668 int (*migratepage)(struct address_space * , struct page * , struct page * ) ;
3669 int (*launder_page)(struct page * ) ;
3670 int (*is_partially_uptodate)(struct page * , read_descriptor_t * , unsigned long ) ;
3671 int (*error_remove_page)(struct address_space * , struct page * ) ;
3672};
3673#line 634 "include/linux/fs.h"
3674struct address_space {
3675 struct inode *host ;
3676 struct radix_tree_root page_tree ;
3677 spinlock_t tree_lock ;
3678 unsigned int i_mmap_writable ;
3679 struct prio_tree_root i_mmap ;
3680 struct list_head i_mmap_nonlinear ;
3681 struct mutex i_mmap_mutex ;
3682 unsigned long nrpages ;
3683 unsigned long writeback_index ;
3684 struct address_space_operations const *a_ops ;
3685 unsigned long flags ;
3686 struct backing_dev_info *backing_dev_info ;
3687 spinlock_t private_lock ;
3688 struct list_head private_list ;
3689 struct address_space *assoc_mapping ;
3690} __attribute__((__aligned__(sizeof(long )))) ;
3691#line 658
3692struct hd_struct;
3693#line 658
3694struct hd_struct;
3695#line 658
3696struct gendisk;
3697#line 658
3698struct gendisk;
3699#line 658 "include/linux/fs.h"
3700struct block_device {
3701 dev_t bd_dev ;
3702 int bd_openers ;
3703 struct inode *bd_inode ;
3704 struct super_block *bd_super ;
3705 struct mutex bd_mutex ;
3706 struct list_head bd_inodes ;
3707 void *bd_claiming ;
3708 void *bd_holder ;
3709 int bd_holders ;
3710 bool bd_write_holder ;
3711 struct list_head bd_holder_disks ;
3712 struct block_device *bd_contains ;
3713 unsigned int bd_block_size ;
3714 struct hd_struct *bd_part ;
3715 unsigned int bd_part_count ;
3716 int bd_invalidated ;
3717 struct gendisk *bd_disk ;
3718 struct list_head bd_list ;
3719 unsigned long bd_private ;
3720 int bd_fsfreeze_count ;
3721 struct mutex bd_fsfreeze_mutex ;
3722};
3723#line 735
3724struct posix_acl;
3725#line 735
3726struct posix_acl;
3727#line 738
3728struct inode_operations;
3729#line 738
3730struct inode_operations;
3731#line 738 "include/linux/fs.h"
3732union __anonunion____missing_field_name_245 {
3733 struct list_head i_dentry ;
3734 struct rcu_head i_rcu ;
3735};
3736#line 738
3737struct file_operations;
3738#line 738
3739struct file_operations;
3740#line 738
3741struct file_lock;
3742#line 738
3743struct file_lock;
3744#line 738
3745struct cdev;
3746#line 738
3747struct cdev;
3748#line 738 "include/linux/fs.h"
3749union __anonunion____missing_field_name_246 {
3750 struct pipe_inode_info *i_pipe ;
3751 struct block_device *i_bdev ;
3752 struct cdev *i_cdev ;
3753};
3754#line 738 "include/linux/fs.h"
3755struct inode {
3756 umode_t i_mode ;
3757 uid_t i_uid ;
3758 gid_t i_gid ;
3759 struct inode_operations const *i_op ;
3760 struct super_block *i_sb ;
3761 spinlock_t i_lock ;
3762 unsigned int i_flags ;
3763 unsigned long i_state ;
3764 void *i_security ;
3765 struct mutex i_mutex ;
3766 unsigned long dirtied_when ;
3767 struct hlist_node i_hash ;
3768 struct list_head i_wb_list ;
3769 struct list_head i_lru ;
3770 struct list_head i_sb_list ;
3771 union __anonunion____missing_field_name_245 __annonCompField46 ;
3772 unsigned long i_ino ;
3773 atomic_t i_count ;
3774 unsigned int i_nlink ;
3775 dev_t i_rdev ;
3776 unsigned int i_blkbits ;
3777 u64 i_version ;
3778 loff_t i_size ;
3779 struct timespec i_atime ;
3780 struct timespec i_mtime ;
3781 struct timespec i_ctime ;
3782 blkcnt_t i_blocks ;
3783 unsigned short i_bytes ;
3784 struct rw_semaphore i_alloc_sem ;
3785 struct file_operations const *i_fop ;
3786 struct file_lock *i_flock ;
3787 struct address_space *i_mapping ;
3788 struct address_space i_data ;
3789 struct dquot *i_dquot[2] ;
3790 struct list_head i_devices ;
3791 union __anonunion____missing_field_name_246 __annonCompField47 ;
3792 __u32 i_generation ;
3793 __u32 i_fsnotify_mask ;
3794 struct hlist_head i_fsnotify_marks ;
3795 atomic_t i_readcount ;
3796 atomic_t i_writecount ;
3797 struct posix_acl *i_acl ;
3798 struct posix_acl *i_default_acl ;
3799 void *i_private ;
3800};
3801#line 903 "include/linux/fs.h"
3802struct fown_struct {
3803 rwlock_t lock ;
3804 struct pid *pid ;
3805 enum pid_type pid_type ;
3806 uid_t uid ;
3807 uid_t euid ;
3808 int signum ;
3809};
3810#line 914 "include/linux/fs.h"
3811struct file_ra_state {
3812 unsigned long start ;
3813 unsigned int size ;
3814 unsigned int async_size ;
3815 unsigned int ra_pages ;
3816 unsigned int mmap_miss ;
3817 loff_t prev_pos ;
3818};
3819#line 937 "include/linux/fs.h"
3820union __anonunion_f_u_247 {
3821 struct list_head fu_list ;
3822 struct rcu_head fu_rcuhead ;
3823};
3824#line 937 "include/linux/fs.h"
3825struct file {
3826 union __anonunion_f_u_247 f_u ;
3827 struct path f_path ;
3828 struct file_operations const *f_op ;
3829 spinlock_t f_lock ;
3830 int f_sb_list_cpu ;
3831 atomic_long_t f_count ;
3832 unsigned int f_flags ;
3833 fmode_t f_mode ;
3834 loff_t f_pos ;
3835 struct fown_struct f_owner ;
3836 struct cred const *f_cred ;
3837 struct file_ra_state f_ra ;
3838 u64 f_version ;
3839 void *f_security ;
3840 void *private_data ;
3841 struct list_head f_ep_links ;
3842 struct address_space *f_mapping ;
3843 unsigned long f_mnt_write_state ;
3844};
3845#line 1064 "include/linux/fs.h"
3846typedef struct files_struct *fl_owner_t;
3847#line 1066 "include/linux/fs.h"
3848struct file_lock_operations {
3849 void (*fl_copy_lock)(struct file_lock * , struct file_lock * ) ;
3850 void (*fl_release_private)(struct file_lock * ) ;
3851};
3852#line 1071 "include/linux/fs.h"
3853struct lock_manager_operations {
3854 int (*fl_compare_owner)(struct file_lock * , struct file_lock * ) ;
3855 void (*fl_notify)(struct file_lock * ) ;
3856 int (*fl_grant)(struct file_lock * , struct file_lock * , int ) ;
3857 void (*fl_release_private)(struct file_lock * ) ;
3858 void (*fl_break)(struct file_lock * ) ;
3859 int (*fl_change)(struct file_lock ** , int ) ;
3860};
3861#line 8 "include/linux/nfs_fs_i.h"
3862struct nlm_lockowner;
3863#line 8
3864struct nlm_lockowner;
3865#line 13 "include/linux/nfs_fs_i.h"
3866struct nfs_lock_info {
3867 u32 state ;
3868 struct nlm_lockowner *owner ;
3869 struct list_head list ;
3870};
3871#line 19
3872struct nfs4_lock_state;
3873#line 19
3874struct nfs4_lock_state;
3875#line 20 "include/linux/nfs_fs_i.h"
3876struct nfs4_lock_info {
3877 struct nfs4_lock_state *owner ;
3878};
3879#line 1091 "include/linux/fs.h"
3880struct fasync_struct;
3881#line 1091
3882struct fasync_struct;
3883#line 1091 "include/linux/fs.h"
3884struct __anonstruct_afs_249 {
3885 struct list_head link ;
3886 int state ;
3887};
3888#line 1091 "include/linux/fs.h"
3889union __anonunion_fl_u_248 {
3890 struct nfs_lock_info nfs_fl ;
3891 struct nfs4_lock_info nfs4_fl ;
3892 struct __anonstruct_afs_249 afs ;
3893};
3894#line 1091 "include/linux/fs.h"
3895struct file_lock {
3896 struct file_lock *fl_next ;
3897 struct list_head fl_link ;
3898 struct list_head fl_block ;
3899 fl_owner_t fl_owner ;
3900 unsigned char fl_flags ;
3901 unsigned char fl_type ;
3902 unsigned int fl_pid ;
3903 struct pid *fl_nspid ;
3904 wait_queue_head_t fl_wait ;
3905 struct file *fl_file ;
3906 loff_t fl_start ;
3907 loff_t fl_end ;
3908 struct fasync_struct *fl_fasync ;
3909 unsigned long fl_break_time ;
3910 struct file_lock_operations const *fl_ops ;
3911 struct lock_manager_operations const *fl_lmops ;
3912 union __anonunion_fl_u_248 fl_u ;
3913};
3914#line 1324 "include/linux/fs.h"
3915struct fasync_struct {
3916 spinlock_t fa_lock ;
3917 int magic ;
3918 int fa_fd ;
3919 struct fasync_struct *fa_next ;
3920 struct file *fa_file ;
3921 struct rcu_head fa_rcu ;
3922};
3923#line 1364
3924struct file_system_type;
3925#line 1364
3926struct file_system_type;
3927#line 1364
3928struct super_operations;
3929#line 1364
3930struct super_operations;
3931#line 1364
3932struct xattr_handler;
3933#line 1364
3934struct xattr_handler;
3935#line 1364
3936struct mtd_info;
3937#line 1364
3938struct mtd_info;
3939#line 1364 "include/linux/fs.h"
3940struct super_block {
3941 struct list_head s_list ;
3942 dev_t s_dev ;
3943 unsigned char s_dirt ;
3944 unsigned char s_blocksize_bits ;
3945 unsigned long s_blocksize ;
3946 loff_t s_maxbytes ;
3947 struct file_system_type *s_type ;
3948 struct super_operations const *s_op ;
3949 struct dquot_operations const *dq_op ;
3950 struct quotactl_ops const *s_qcop ;
3951 struct export_operations const *s_export_op ;
3952 unsigned long s_flags ;
3953 unsigned long s_magic ;
3954 struct dentry *s_root ;
3955 struct rw_semaphore s_umount ;
3956 struct mutex s_lock ;
3957 int s_count ;
3958 atomic_t s_active ;
3959 void *s_security ;
3960 struct xattr_handler const **s_xattr ;
3961 struct list_head s_inodes ;
3962 struct hlist_bl_head s_anon ;
3963 struct list_head *s_files ;
3964 struct list_head s_dentry_lru ;
3965 int s_nr_dentry_unused ;
3966 struct block_device *s_bdev ;
3967 struct backing_dev_info *s_bdi ;
3968 struct mtd_info *s_mtd ;
3969 struct list_head s_instances ;
3970 struct quota_info s_dquot ;
3971 int s_frozen ;
3972 wait_queue_head_t s_wait_unfrozen ;
3973 char s_id[32] ;
3974 u8 s_uuid[16] ;
3975 void *s_fs_info ;
3976 fmode_t s_mode ;
3977 u32 s_time_gran ;
3978 struct mutex s_vfs_rename_mutex ;
3979 char *s_subtype ;
3980 char *s_options ;
3981 struct dentry_operations const *s_d_op ;
3982 int cleancache_poolid ;
3983};
3984#line 1499 "include/linux/fs.h"
3985struct fiemap_extent_info {
3986 unsigned int fi_flags ;
3987 unsigned int fi_extents_mapped ;
3988 unsigned int fi_extents_max ;
3989 struct fiemap_extent *fi_extents_start ;
3990};
3991#line 1546 "include/linux/fs.h"
3992struct file_operations {
3993 struct module *owner ;
3994 loff_t (*llseek)(struct file * , loff_t , int ) ;
3995 ssize_t (*read)(struct file * , char * , size_t , loff_t * ) ;
3996 ssize_t (*write)(struct file * , char const * , size_t , loff_t * ) ;
3997 ssize_t (*aio_read)(struct kiocb * , struct iovec const * , unsigned long ,
3998 loff_t ) ;
3999 ssize_t (*aio_write)(struct kiocb * , struct iovec const * , unsigned long ,
4000 loff_t ) ;
4001 int (*readdir)(struct file * , void * , int (*)(void * , char const * , int ,
4002 loff_t , u64 , unsigned int ) ) ;
4003 unsigned int (*poll)(struct file * , struct poll_table_struct * ) ;
4004 long (*unlocked_ioctl)(struct file * , unsigned int , unsigned long ) ;
4005 long (*compat_ioctl)(struct file * , unsigned int , unsigned long ) ;
4006 int (*mmap)(struct file * , struct vm_area_struct * ) ;
4007 int (*open)(struct inode * , struct file * ) ;
4008 int (*flush)(struct file * , fl_owner_t id ) ;
4009 int (*release)(struct inode * , struct file * ) ;
4010 int (*fsync)(struct file * , int datasync ) ;
4011 int (*aio_fsync)(struct kiocb * , int datasync ) ;
4012 int (*fasync)(int , struct file * , int ) ;
4013 int (*lock)(struct file * , int , struct file_lock * ) ;
4014 ssize_t (*sendpage)(struct file * , struct page * , int , size_t , loff_t * ,
4015 int ) ;
4016 unsigned long (*get_unmapped_area)(struct file * , unsigned long , unsigned long ,
4017 unsigned long , unsigned long ) ;
4018 int (*check_flags)(int ) ;
4019 int (*flock)(struct file * , int , struct file_lock * ) ;
4020 ssize_t (*splice_write)(struct pipe_inode_info * , struct file * , loff_t * , size_t ,
4021 unsigned int ) ;
4022 ssize_t (*splice_read)(struct file * , loff_t * , struct pipe_inode_info * , size_t ,
4023 unsigned int ) ;
4024 int (*setlease)(struct file * , long , struct file_lock ** ) ;
4025 long (*fallocate)(struct file *file , int mode , loff_t offset , loff_t len ) ;
4026};
4027#line 1578 "include/linux/fs.h"
4028struct inode_operations {
4029 struct dentry *(*lookup)(struct inode * , struct dentry * , struct nameidata * ) ;
4030 void *(*follow_link)(struct dentry * , struct nameidata * ) ;
4031 int (*permission)(struct inode * , int , unsigned int ) ;
4032 int (*check_acl)(struct inode * , int , unsigned int ) ;
4033 int (*readlink)(struct dentry * , char * , int ) ;
4034 void (*put_link)(struct dentry * , struct nameidata * , void * ) ;
4035 int (*create)(struct inode * , struct dentry * , int , struct nameidata * ) ;
4036 int (*link)(struct dentry * , struct inode * , struct dentry * ) ;
4037 int (*unlink)(struct inode * , struct dentry * ) ;
4038 int (*symlink)(struct inode * , struct dentry * , char const * ) ;
4039 int (*mkdir)(struct inode * , struct dentry * , int ) ;
4040 int (*rmdir)(struct inode * , struct dentry * ) ;
4041 int (*mknod)(struct inode * , struct dentry * , int , dev_t ) ;
4042 int (*rename)(struct inode * , struct dentry * , struct inode * , struct dentry * ) ;
4043 void (*truncate)(struct inode * ) ;
4044 int (*setattr)(struct dentry * , struct iattr * ) ;
4045 int (*getattr)(struct vfsmount *mnt , struct dentry * , struct kstat * ) ;
4046 int (*setxattr)(struct dentry * , char const * , void const * , size_t , int ) ;
4047 ssize_t (*getxattr)(struct dentry * , char const * , void * , size_t ) ;
4048 ssize_t (*listxattr)(struct dentry * , char * , size_t ) ;
4049 int (*removexattr)(struct dentry * , char const * ) ;
4050 void (*truncate_range)(struct inode * , loff_t , loff_t ) ;
4051 int (*fiemap)(struct inode * , struct fiemap_extent_info * , u64 start , u64 len ) ;
4052} __attribute__((__aligned__((1) << (6) ))) ;
4053#line 1622 "include/linux/fs.h"
4054struct super_operations {
4055 struct inode *(*alloc_inode)(struct super_block *sb ) ;
4056 void (*destroy_inode)(struct inode * ) ;
4057 void (*dirty_inode)(struct inode * , int flags ) ;
4058 int (*write_inode)(struct inode * , struct writeback_control *wbc ) ;
4059 int (*drop_inode)(struct inode * ) ;
4060 void (*evict_inode)(struct inode * ) ;
4061 void (*put_super)(struct super_block * ) ;
4062 void (*write_super)(struct super_block * ) ;
4063 int (*sync_fs)(struct super_block *sb , int wait ) ;
4064 int (*freeze_fs)(struct super_block * ) ;
4065 int (*unfreeze_fs)(struct super_block * ) ;
4066 int (*statfs)(struct dentry * , struct kstatfs * ) ;
4067 int (*remount_fs)(struct super_block * , int * , char * ) ;
4068 void (*umount_begin)(struct super_block * ) ;
4069 int (*show_options)(struct seq_file * , struct vfsmount * ) ;
4070 int (*show_devname)(struct seq_file * , struct vfsmount * ) ;
4071 int (*show_path)(struct seq_file * , struct vfsmount * ) ;
4072 int (*show_stats)(struct seq_file * , struct vfsmount * ) ;
4073 ssize_t (*quota_read)(struct super_block * , int , char * , size_t , loff_t ) ;
4074 ssize_t (*quota_write)(struct super_block * , int , char const * , size_t ,
4075 loff_t ) ;
4076 int (*bdev_try_to_free_page)(struct super_block * , struct page * , gfp_t ) ;
4077};
4078#line 1802 "include/linux/fs.h"
4079struct file_system_type {
4080 char const *name ;
4081 int fs_flags ;
4082 struct dentry *(*mount)(struct file_system_type * , int , char const * , void * ) ;
4083 void (*kill_sb)(struct super_block * ) ;
4084 struct module *owner ;
4085 struct file_system_type *next ;
4086 struct list_head fs_supers ;
4087 struct lock_class_key s_lock_key ;
4088 struct lock_class_key s_umount_key ;
4089 struct lock_class_key s_vfs_rename_key ;
4090 struct lock_class_key i_lock_key ;
4091 struct lock_class_key i_mutex_key ;
4092 struct lock_class_key i_mutex_dir_key ;
4093 struct lock_class_key i_alloc_sem_key ;
4094};
4095#line 94 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/uaccess.h"
4096struct exception_table_entry {
4097 unsigned long insn ;
4098 unsigned long fixup ;
4099};
4100#line 35 "include/linux/poll.h"
4101struct poll_table_struct {
4102 void (*qproc)(struct file * , wait_queue_head_t * , struct poll_table_struct * ) ;
4103 unsigned long key ;
4104};
4105#line 12 "include/linux/cdev.h"
4106struct cdev {
4107 struct kobject kobj ;
4108 struct module *owner ;
4109 struct file_operations const *ops ;
4110 struct list_head list ;
4111 dev_t dev ;
4112 unsigned int count ;
4113};
4114#line 43 "include/media/media-devnode.h"
4115struct media_file_operations {
4116 struct module *owner ;
4117 ssize_t (*read)(struct file * , char * , size_t , loff_t * ) ;
4118 ssize_t (*write)(struct file * , char const * , size_t , loff_t * ) ;
4119 unsigned int (*poll)(struct file * , struct poll_table_struct * ) ;
4120 long (*ioctl)(struct file * , unsigned int , unsigned long ) ;
4121 int (*open)(struct file * ) ;
4122 int (*release)(struct file * ) ;
4123};
4124#line 64 "include/media/media-devnode.h"
4125struct media_devnode {
4126 struct media_file_operations const *fops ;
4127 struct device dev ;
4128 struct cdev cdev ;
4129 struct device *parent ;
4130 int minor ;
4131 unsigned long flags ;
4132 void (*release)(struct media_devnode *mdev ) ;
4133};
4134#line 29 "include/media/media-entity.h"
4135struct media_pipeline {
4136
4137};
4138#line 32
4139struct media_pad;
4140#line 32
4141struct media_pad;
4142#line 32 "include/media/media-entity.h"
4143struct media_link {
4144 struct media_pad *source ;
4145 struct media_pad *sink ;
4146 struct media_link *reverse ;
4147 unsigned long flags ;
4148};
4149#line 39
4150struct media_entity;
4151#line 39
4152struct media_entity;
4153#line 39 "include/media/media-entity.h"
4154struct media_pad {
4155 struct media_entity *entity ;
4156 u16 index ;
4157 unsigned long flags ;
4158};
4159#line 45 "include/media/media-entity.h"
4160struct media_entity_operations {
4161 int (*link_setup)(struct media_entity *entity , struct media_pad const *local ,
4162 struct media_pad const *remote , u32 flags ) ;
4163};
4164#line 51
4165struct media_device;
4166#line 51
4167struct media_device;
4168#line 51 "include/media/media-entity.h"
4169struct __anonstruct_v4l_258 {
4170 u32 major ;
4171 u32 minor ;
4172};
4173#line 51 "include/media/media-entity.h"
4174struct __anonstruct_fb_259 {
4175 u32 major ;
4176 u32 minor ;
4177};
4178#line 51 "include/media/media-entity.h"
4179struct __anonstruct_alsa_260 {
4180 u32 card ;
4181 u32 device ;
4182 u32 subdevice ;
4183};
4184#line 51 "include/media/media-entity.h"
4185union __anonunion____missing_field_name_257 {
4186 struct __anonstruct_v4l_258 v4l ;
4187 struct __anonstruct_fb_259 fb ;
4188 struct __anonstruct_alsa_260 alsa ;
4189 int dvb ;
4190};
4191#line 51 "include/media/media-entity.h"
4192struct media_entity {
4193 struct list_head list ;
4194 struct media_device *parent ;
4195 u32 id ;
4196 char const *name ;
4197 u32 type ;
4198 u32 revision ;
4199 unsigned long flags ;
4200 u32 group_id ;
4201 u16 num_pads ;
4202 u16 num_links ;
4203 u16 num_backlinks ;
4204 u16 max_links ;
4205 struct media_pad *pads ;
4206 struct media_link *links ;
4207 struct media_entity_operations const *ops ;
4208 int stream_count ;
4209 int use_count ;
4210 struct media_pipeline *pipe ;
4211 union __anonunion____missing_field_name_257 __annonCompField49 ;
4212};
4213#line 58 "include/media/media-device.h"
4214struct media_device {
4215 struct device *dev ;
4216 struct media_devnode devnode ;
4217 char model[32] ;
4218 char serial[40] ;
4219 char bus_info[32] ;
4220 u32 hw_revision ;
4221 u32 driver_version ;
4222 u32 entity_id ;
4223 struct list_head entities ;
4224 spinlock_t lock ;
4225 struct mutex graph_mutex ;
4226 int (*link_notify)(struct media_pad *source , struct media_pad *sink , u32 flags ) ;
4227};
4228#line 37 "include/linux/v4l2-mediabus.h"
4229enum v4l2_mbus_pixelcode {
4230 V4L2_MBUS_FMT_FIXED = 1,
4231 V4L2_MBUS_FMT_RGB444_2X8_PADHI_BE = 4097,
4232 V4L2_MBUS_FMT_RGB444_2X8_PADHI_LE = 4098,
4233 V4L2_MBUS_FMT_RGB555_2X8_PADHI_BE = 4099,
4234 V4L2_MBUS_FMT_RGB555_2X8_PADHI_LE = 4100,
4235 V4L2_MBUS_FMT_BGR565_2X8_BE = 4101,
4236 V4L2_MBUS_FMT_BGR565_2X8_LE = 4102,
4237 V4L2_MBUS_FMT_RGB565_2X8_BE = 4103,
4238 V4L2_MBUS_FMT_RGB565_2X8_LE = 4104,
4239 V4L2_MBUS_FMT_Y8_1X8 = 8193,
4240 V4L2_MBUS_FMT_UYVY8_1_5X8 = 8194,
4241 V4L2_MBUS_FMT_VYUY8_1_5X8 = 8195,
4242 V4L2_MBUS_FMT_YUYV8_1_5X8 = 8196,
4243 V4L2_MBUS_FMT_YVYU8_1_5X8 = 8197,
4244 V4L2_MBUS_FMT_UYVY8_2X8 = 8198,
4245 V4L2_MBUS_FMT_VYUY8_2X8 = 8199,
4246 V4L2_MBUS_FMT_YUYV8_2X8 = 8200,
4247 V4L2_MBUS_FMT_YVYU8_2X8 = 8201,
4248 V4L2_MBUS_FMT_Y10_1X10 = 8202,
4249 V4L2_MBUS_FMT_YUYV10_2X10 = 8203,
4250 V4L2_MBUS_FMT_YVYU10_2X10 = 8204,
4251 V4L2_MBUS_FMT_Y12_1X12 = 8211,
4252 V4L2_MBUS_FMT_UYVY8_1X16 = 8207,
4253 V4L2_MBUS_FMT_VYUY8_1X16 = 8208,
4254 V4L2_MBUS_FMT_YUYV8_1X16 = 8209,
4255 V4L2_MBUS_FMT_YVYU8_1X16 = 8210,
4256 V4L2_MBUS_FMT_YUYV10_1X20 = 8205,
4257 V4L2_MBUS_FMT_YVYU10_1X20 = 8206,
4258 V4L2_MBUS_FMT_SBGGR8_1X8 = 12289,
4259 V4L2_MBUS_FMT_SGBRG8_1X8 = 12307,
4260 V4L2_MBUS_FMT_SGRBG8_1X8 = 12290,
4261 V4L2_MBUS_FMT_SRGGB8_1X8 = 12308,
4262 V4L2_MBUS_FMT_SBGGR10_DPCM8_1X8 = 12299,
4263 V4L2_MBUS_FMT_SGBRG10_DPCM8_1X8 = 12300,
4264 V4L2_MBUS_FMT_SGRBG10_DPCM8_1X8 = 12297,
4265 V4L2_MBUS_FMT_SRGGB10_DPCM8_1X8 = 12301,
4266 V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_BE = 12291,
4267 V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE = 12292,
4268 V4L2_MBUS_FMT_SBGGR10_2X8_PADLO_BE = 12293,
4269 V4L2_MBUS_FMT_SBGGR10_2X8_PADLO_LE = 12294,
4270 V4L2_MBUS_FMT_SBGGR10_1X10 = 12295,
4271 V4L2_MBUS_FMT_SGBRG10_1X10 = 12302,
4272 V4L2_MBUS_FMT_SGRBG10_1X10 = 12298,
4273 V4L2_MBUS_FMT_SRGGB10_1X10 = 12303,
4274 V4L2_MBUS_FMT_SBGGR12_1X12 = 12296,
4275 V4L2_MBUS_FMT_SGBRG12_1X12 = 12304,
4276 V4L2_MBUS_FMT_SGRBG12_1X12 = 12305,
4277 V4L2_MBUS_FMT_SRGGB12_1X12 = 12306,
4278 V4L2_MBUS_FMT_JPEG_1X8 = 16385
4279} ;
4280#line 105 "include/linux/v4l2-mediabus.h"
4281struct v4l2_mbus_framefmt {
4282 __u32 width ;
4283 __u32 height ;
4284 __u32 code ;
4285 __u32 field ;
4286 __u32 colorspace ;
4287 __u32 reserved[7] ;
4288};
4289#line 46 "include/linux/v4l2-subdev.h"
4290struct v4l2_subdev_format {
4291 __u32 which ;
4292 __u32 pad ;
4293 struct v4l2_mbus_framefmt format ;
4294 __u32 reserved[8] ;
4295};
4296#line 59 "include/linux/v4l2-subdev.h"
4297struct v4l2_subdev_crop {
4298 __u32 which ;
4299 __u32 pad ;
4300 struct v4l2_rect rect ;
4301 __u32 reserved[8] ;
4302};
4303#line 72 "include/linux/v4l2-subdev.h"
4304struct v4l2_subdev_mbus_code_enum {
4305 __u32 pad ;
4306 __u32 index ;
4307 __u32 code ;
4308 __u32 reserved[9] ;
4309};
4310#line 85 "include/linux/v4l2-subdev.h"
4311struct v4l2_subdev_frame_size_enum {
4312 __u32 index ;
4313 __u32 pad ;
4314 __u32 code ;
4315 __u32 min_width ;
4316 __u32 max_width ;
4317 __u32 min_height ;
4318 __u32 max_height ;
4319 __u32 reserved[9] ;
4320};
4321#line 101 "include/linux/v4l2-subdev.h"
4322struct v4l2_subdev_frame_interval {
4323 __u32 pad ;
4324 struct v4l2_fract interval ;
4325 __u32 reserved[9] ;
4326};
4327#line 116 "include/linux/v4l2-subdev.h"
4328struct v4l2_subdev_frame_interval_enum {
4329 __u32 index ;
4330 __u32 pad ;
4331 __u32 code ;
4332 __u32 width ;
4333 __u32 height ;
4334 struct v4l2_fract interval ;
4335 __u32 reserved[9] ;
4336};
4337#line 30 "include/media/v4l2-dev.h"
4338struct video_device;
4339#line 30
4340struct video_device;
4341#line 31
4342struct v4l2_device;
4343#line 31
4344struct v4l2_device;
4345#line 32
4346struct v4l2_ctrl_handler;
4347#line 32
4348struct v4l2_ctrl_handler;
4349#line 45 "include/media/v4l2-dev.h"
4350struct v4l2_prio_state {
4351 atomic_t prios[4] ;
4352};
4353#line 58 "include/media/v4l2-dev.h"
4354struct v4l2_file_operations {
4355 struct module *owner ;
4356 ssize_t (*read)(struct file * , char * , size_t , loff_t * ) ;
4357 ssize_t (*write)(struct file * , char const * , size_t , loff_t * ) ;
4358 unsigned int (*poll)(struct file * , struct poll_table_struct * ) ;
4359 long (*ioctl)(struct file * , unsigned int , unsigned long ) ;
4360 long (*unlocked_ioctl)(struct file * , unsigned int , unsigned long ) ;
4361 unsigned long (*get_unmapped_area)(struct file * , unsigned long , unsigned long ,
4362 unsigned long , unsigned long ) ;
4363 int (*mmap)(struct file * , struct vm_area_struct * ) ;
4364 int (*open)(struct file * ) ;
4365 int (*release)(struct file * ) ;
4366};
4367#line 78
4368struct v4l2_ioctl_ops;
4369#line 78
4370struct v4l2_ioctl_ops;
4371#line 78 "include/media/v4l2-dev.h"
4372struct video_device {
4373 struct media_entity entity ;
4374 struct v4l2_file_operations const *fops ;
4375 struct device dev ;
4376 struct cdev *cdev ;
4377 struct device *parent ;
4378 struct v4l2_device *v4l2_dev ;
4379 struct v4l2_ctrl_handler *ctrl_handler ;
4380 struct v4l2_prio_state *prio ;
4381 char name[32] ;
4382 int vfl_type ;
4383 int minor ;
4384 u16 num ;
4385 unsigned long flags ;
4386 int index ;
4387 spinlock_t fh_lock ;
4388 struct list_head fh_list ;
4389 int debug ;
4390 v4l2_std_id tvnorms ;
4391 v4l2_std_id current_norm ;
4392 void (*release)(struct video_device *vdev ) ;
4393 struct v4l2_ioctl_ops const *ioctl_ops ;
4394 struct mutex *lock ;
4395};
4396#line 120 "include/media/v4l2-common.h"
4397struct v4l2_subdev;
4398#line 120
4399struct v4l2_subdev;
4400#line 121
4401struct v4l2_subdev_ops;
4402#line 121
4403struct v4l2_subdev_ops;
4404#line 182 "include/media/v4l2-common.h"
4405struct v4l2_priv_tun_config {
4406 int tuner ;
4407 void *priv ;
4408};
4409#line 32 "include/media/v4l2-fh.h"
4410struct v4l2_events;
4411#line 32
4412struct v4l2_events;
4413#line 34 "include/media/v4l2-fh.h"
4414struct v4l2_fh {
4415 struct list_head list ;
4416 struct video_device *vdev ;
4417 struct v4l2_events *events ;
4418 enum v4l2_priority prio ;
4419};
4420#line 46 "include/media/v4l2-subdev.h"
4421struct v4l2_subdev_fh;
4422#line 46
4423struct v4l2_subdev_fh;
4424#line 47
4425struct tuner_setup;
4426#line 47
4427struct tuner_setup;
4428#line 50 "include/media/v4l2-subdev.h"
4429struct v4l2_decode_vbi_line {
4430 u32 is_second_field ;
4431 u8 *p ;
4432 u32 line ;
4433 u32 type ;
4434};
4435#line 108 "include/media/v4l2-subdev.h"
4436struct v4l2_subdev_io_pin_config {
4437 u32 flags ;
4438 u8 pin ;
4439 u8 function ;
4440 u8 value ;
4441 u8 strength ;
4442};
4443#line 145 "include/media/v4l2-subdev.h"
4444struct v4l2_subdev_core_ops {
4445 int (*g_chip_ident)(struct v4l2_subdev *sd , struct v4l2_dbg_chip_ident *chip ) ;
4446 int (*log_status)(struct v4l2_subdev *sd ) ;
4447 int (*s_io_pin_config)(struct v4l2_subdev *sd , size_t n , struct v4l2_subdev_io_pin_config *pincfg ) ;
4448 int (*init)(struct v4l2_subdev *sd , u32 val ) ;
4449 int (*load_fw)(struct v4l2_subdev *sd ) ;
4450 int (*reset)(struct v4l2_subdev *sd , u32 val ) ;
4451 int (*s_gpio)(struct v4l2_subdev *sd , u32 val ) ;
4452 int (*queryctrl)(struct v4l2_subdev *sd , struct v4l2_queryctrl *qc ) ;
4453 int (*g_ctrl)(struct v4l2_subdev *sd , struct v4l2_control *ctrl ) ;
4454 int (*s_ctrl)(struct v4l2_subdev *sd , struct v4l2_control *ctrl ) ;
4455 int (*g_ext_ctrls)(struct v4l2_subdev *sd , struct v4l2_ext_controls *ctrls ) ;
4456 int (*s_ext_ctrls)(struct v4l2_subdev *sd , struct v4l2_ext_controls *ctrls ) ;
4457 int (*try_ext_ctrls)(struct v4l2_subdev *sd , struct v4l2_ext_controls *ctrls ) ;
4458 int (*querymenu)(struct v4l2_subdev *sd , struct v4l2_querymenu *qm ) ;
4459 int (*s_std)(struct v4l2_subdev *sd , v4l2_std_id norm ) ;
4460 long (*ioctl)(struct v4l2_subdev *sd , unsigned int cmd , void *arg ) ;
4461 int (*g_register)(struct v4l2_subdev *sd , struct v4l2_dbg_register *reg ) ;
4462 int (*s_register)(struct v4l2_subdev *sd , struct v4l2_dbg_register *reg ) ;
4463 int (*s_power)(struct v4l2_subdev *sd , int on ) ;
4464 int (*interrupt_service_routine)(struct v4l2_subdev *sd , u32 status , bool *handled ) ;
4465 int (*subscribe_event)(struct v4l2_subdev *sd , struct v4l2_fh *fh , struct v4l2_event_subscription *sub ) ;
4466 int (*unsubscribe_event)(struct v4l2_subdev *sd , struct v4l2_fh *fh , struct v4l2_event_subscription *sub ) ;
4467};
4468#line 189 "include/media/v4l2-subdev.h"
4469struct v4l2_subdev_tuner_ops {
4470 int (*s_radio)(struct v4l2_subdev *sd ) ;
4471 int (*s_frequency)(struct v4l2_subdev *sd , struct v4l2_frequency *freq ) ;
4472 int (*g_frequency)(struct v4l2_subdev *sd , struct v4l2_frequency *freq ) ;
4473 int (*g_tuner)(struct v4l2_subdev *sd , struct v4l2_tuner *vt ) ;
4474 int (*s_tuner)(struct v4l2_subdev *sd , struct v4l2_tuner *vt ) ;
4475 int (*g_modulator)(struct v4l2_subdev *sd , struct v4l2_modulator *vm ) ;
4476 int (*s_modulator)(struct v4l2_subdev *sd , struct v4l2_modulator *vm ) ;
4477 int (*s_type_addr)(struct v4l2_subdev *sd , struct tuner_setup *type ) ;
4478 int (*s_config)(struct v4l2_subdev *sd , struct v4l2_priv_tun_config const *config ) ;
4479};
4480#line 221 "include/media/v4l2-subdev.h"
4481struct v4l2_subdev_audio_ops {
4482 int (*s_clock_freq)(struct v4l2_subdev *sd , u32 freq ) ;
4483 int (*s_i2s_clock_freq)(struct v4l2_subdev *sd , u32 freq ) ;
4484 int (*s_routing)(struct v4l2_subdev *sd , u32 input , u32 output , u32 config ) ;
4485 int (*s_stream)(struct v4l2_subdev *sd , int enable ) ;
4486};
4487#line 263 "include/media/v4l2-subdev.h"
4488struct v4l2_subdev_video_ops {
4489 int (*s_routing)(struct v4l2_subdev *sd , u32 input , u32 output , u32 config ) ;
4490 int (*s_crystal_freq)(struct v4l2_subdev *sd , u32 freq , u32 flags ) ;
4491 int (*s_std_output)(struct v4l2_subdev *sd , v4l2_std_id std ) ;
4492 int (*querystd)(struct v4l2_subdev *sd , v4l2_std_id *std ) ;
4493 int (*g_input_status)(struct v4l2_subdev *sd , u32 *status ) ;
4494 int (*s_stream)(struct v4l2_subdev *sd , int enable ) ;
4495 int (*cropcap)(struct v4l2_subdev *sd , struct v4l2_cropcap *cc ) ;
4496 int (*g_crop)(struct v4l2_subdev *sd , struct v4l2_crop *crop ) ;
4497 int (*s_crop)(struct v4l2_subdev *sd , struct v4l2_crop *crop ) ;
4498 int (*g_parm)(struct v4l2_subdev *sd , struct v4l2_streamparm *param ) ;
4499 int (*s_parm)(struct v4l2_subdev *sd , struct v4l2_streamparm *param ) ;
4500 int (*g_frame_interval)(struct v4l2_subdev *sd , struct v4l2_subdev_frame_interval *interval ) ;
4501 int (*s_frame_interval)(struct v4l2_subdev *sd , struct v4l2_subdev_frame_interval *interval ) ;
4502 int (*enum_framesizes)(struct v4l2_subdev *sd , struct v4l2_frmsizeenum *fsize ) ;
4503 int (*enum_frameintervals)(struct v4l2_subdev *sd , struct v4l2_frmivalenum *fival ) ;
4504 int (*enum_dv_presets)(struct v4l2_subdev *sd , struct v4l2_dv_enum_preset *preset ) ;
4505 int (*s_dv_preset)(struct v4l2_subdev *sd , struct v4l2_dv_preset *preset ) ;
4506 int (*query_dv_preset)(struct v4l2_subdev *sd , struct v4l2_dv_preset *preset ) ;
4507 int (*s_dv_timings)(struct v4l2_subdev *sd , struct v4l2_dv_timings *timings ) ;
4508 int (*g_dv_timings)(struct v4l2_subdev *sd , struct v4l2_dv_timings *timings ) ;
4509 int (*enum_mbus_fmt)(struct v4l2_subdev *sd , unsigned int index , enum v4l2_mbus_pixelcode *code ) ;
4510 int (*enum_mbus_fsizes)(struct v4l2_subdev *sd , struct v4l2_frmsizeenum *fsize ) ;
4511 int (*g_mbus_fmt)(struct v4l2_subdev *sd , struct v4l2_mbus_framefmt *fmt ) ;
4512 int (*try_mbus_fmt)(struct v4l2_subdev *sd , struct v4l2_mbus_framefmt *fmt ) ;
4513 int (*s_mbus_fmt)(struct v4l2_subdev *sd , struct v4l2_mbus_framefmt *fmt ) ;
4514};
4515#line 332 "include/media/v4l2-subdev.h"
4516struct v4l2_subdev_vbi_ops {
4517 int (*decode_vbi_line)(struct v4l2_subdev *sd , struct v4l2_decode_vbi_line *vbi_line ) ;
4518 int (*s_vbi_data)(struct v4l2_subdev *sd , struct v4l2_sliced_vbi_data const *vbi_data ) ;
4519 int (*g_vbi_data)(struct v4l2_subdev *sd , struct v4l2_sliced_vbi_data *vbi_data ) ;
4520 int (*g_sliced_vbi_cap)(struct v4l2_subdev *sd , struct v4l2_sliced_vbi_cap *cap ) ;
4521 int (*s_raw_fmt)(struct v4l2_subdev *sd , struct v4l2_vbi_format *fmt ) ;
4522 int (*g_sliced_fmt)(struct v4l2_subdev *sd , struct v4l2_sliced_vbi_format *fmt ) ;
4523 int (*s_sliced_fmt)(struct v4l2_subdev *sd , struct v4l2_sliced_vbi_format *fmt ) ;
4524};
4525#line 352 "include/media/v4l2-subdev.h"
4526struct v4l2_subdev_sensor_ops {
4527 int (*g_skip_top_lines)(struct v4l2_subdev *sd , u32 *lines ) ;
4528 int (*g_skip_frames)(struct v4l2_subdev *sd , u32 *frames ) ;
4529};
4530#line 380
4531enum v4l2_subdev_ir_mode {
4532 V4L2_SUBDEV_IR_MODE_PULSE_WIDTH = 0
4533} ;
4534#line 384 "include/media/v4l2-subdev.h"
4535struct v4l2_subdev_ir_parameters {
4536 unsigned int bytes_per_data_element ;
4537 enum v4l2_subdev_ir_mode mode ;
4538 bool enable ;
4539 bool interrupt_enable ;
4540 bool shutdown ;
4541 bool modulation ;
4542 u32 max_pulse_width ;
4543 unsigned int carrier_freq ;
4544 unsigned int duty_cycle ;
4545 bool invert_level ;
4546 bool invert_carrier_sense ;
4547 u32 noise_filter_min_width ;
4548 unsigned int carrier_range_lower ;
4549 unsigned int carrier_range_upper ;
4550 u32 resolution ;
4551};
4552#line 409 "include/media/v4l2-subdev.h"
4553struct v4l2_subdev_ir_ops {
4554 int (*rx_read)(struct v4l2_subdev *sd , u8 *buf , size_t count , ssize_t *num ) ;
4555 int (*rx_g_parameters)(struct v4l2_subdev *sd , struct v4l2_subdev_ir_parameters *params ) ;
4556 int (*rx_s_parameters)(struct v4l2_subdev *sd , struct v4l2_subdev_ir_parameters *params ) ;
4557 int (*tx_write)(struct v4l2_subdev *sd , u8 *buf , size_t count , ssize_t *num ) ;
4558 int (*tx_g_parameters)(struct v4l2_subdev *sd , struct v4l2_subdev_ir_parameters *params ) ;
4559 int (*tx_s_parameters)(struct v4l2_subdev *sd , struct v4l2_subdev_ir_parameters *params ) ;
4560};
4561#line 429 "include/media/v4l2-subdev.h"
4562struct v4l2_subdev_pad_ops {
4563 int (*enum_mbus_code)(struct v4l2_subdev *sd , struct v4l2_subdev_fh *fh , struct v4l2_subdev_mbus_code_enum *code ) ;
4564 int (*enum_frame_size)(struct v4l2_subdev *sd , struct v4l2_subdev_fh *fh , struct v4l2_subdev_frame_size_enum *fse ) ;
4565 int (*enum_frame_interval)(struct v4l2_subdev *sd , struct v4l2_subdev_fh *fh ,
4566 struct v4l2_subdev_frame_interval_enum *fie ) ;
4567 int (*get_fmt)(struct v4l2_subdev *sd , struct v4l2_subdev_fh *fh , struct v4l2_subdev_format *format ) ;
4568 int (*set_fmt)(struct v4l2_subdev *sd , struct v4l2_subdev_fh *fh , struct v4l2_subdev_format *format ) ;
4569 int (*set_crop)(struct v4l2_subdev *sd , struct v4l2_subdev_fh *fh , struct v4l2_subdev_crop *crop ) ;
4570 int (*get_crop)(struct v4l2_subdev *sd , struct v4l2_subdev_fh *fh , struct v4l2_subdev_crop *crop ) ;
4571};
4572#line 448 "include/media/v4l2-subdev.h"
4573struct v4l2_subdev_ops {
4574 struct v4l2_subdev_core_ops const *core ;
4575 struct v4l2_subdev_tuner_ops const *tuner ;
4576 struct v4l2_subdev_audio_ops const *audio ;
4577 struct v4l2_subdev_video_ops const *video ;
4578 struct v4l2_subdev_vbi_ops const *vbi ;
4579 struct v4l2_subdev_ir_ops const *ir ;
4580 struct v4l2_subdev_sensor_ops const *sensor ;
4581 struct v4l2_subdev_pad_ops const *pad ;
4582};
4583#line 473 "include/media/v4l2-subdev.h"
4584struct v4l2_subdev_internal_ops {
4585 int (*registered)(struct v4l2_subdev *sd ) ;
4586 void (*unregistered)(struct v4l2_subdev *sd ) ;
4587 int (*open)(struct v4l2_subdev *sd , struct v4l2_subdev_fh *fh ) ;
4588 int (*close)(struct v4l2_subdev *sd , struct v4l2_subdev_fh *fh ) ;
4589};
4590#line 494 "include/media/v4l2-subdev.h"
4591struct v4l2_subdev {
4592 struct media_entity entity ;
4593 struct list_head list ;
4594 struct module *owner ;
4595 u32 flags ;
4596 struct v4l2_device *v4l2_dev ;
4597 struct v4l2_subdev_ops const *ops ;
4598 struct v4l2_subdev_internal_ops const *internal_ops ;
4599 struct v4l2_ctrl_handler *ctrl_handler ;
4600 char name[32] ;
4601 u32 grp_id ;
4602 void *dev_priv ;
4603 void *host_priv ;
4604 struct video_device devnode ;
4605 unsigned int nevents ;
4606};
4607#line 528 "include/media/v4l2-subdev.h"
4608struct v4l2_subdev_fh {
4609 struct v4l2_fh vfh ;
4610 struct v4l2_mbus_framefmt *try_fmt ;
4611 struct v4l2_rect *try_crop ;
4612};
4613#line 39 "include/media/v4l2-device.h"
4614struct v4l2_device {
4615 struct device *dev ;
4616 struct media_device *mdev ;
4617 struct list_head subdevs ;
4618 spinlock_t lock ;
4619 char name[36] ;
4620 void (*notify)(struct v4l2_subdev *sd , unsigned int notification , void *arg ) ;
4621 struct v4l2_ctrl_handler *ctrl_handler ;
4622 struct v4l2_prio_state prio ;
4623 struct mutex ioctl_lock ;
4624 struct kref ref ;
4625 void (*release)(struct v4l2_device *v4l2_dev ) ;
4626};
4627#line 21 "include/media/v4l2-ioctl.h"
4628struct v4l2_ioctl_ops {
4629 int (*vidioc_querycap)(struct file *file , void *fh , struct v4l2_capability *cap ) ;
4630 int (*vidioc_g_priority)(struct file *file , void *fh , enum v4l2_priority *p ) ;
4631 int (*vidioc_s_priority)(struct file *file , void *fh , enum v4l2_priority p ) ;
4632 int (*vidioc_enum_fmt_vid_cap)(struct file *file , void *fh , struct v4l2_fmtdesc *f ) ;
4633 int (*vidioc_enum_fmt_vid_overlay)(struct file *file , void *fh , struct v4l2_fmtdesc *f ) ;
4634 int (*vidioc_enum_fmt_vid_out)(struct file *file , void *fh , struct v4l2_fmtdesc *f ) ;
4635 int (*vidioc_enum_fmt_vid_cap_mplane)(struct file *file , void *fh , struct v4l2_fmtdesc *f ) ;
4636 int (*vidioc_enum_fmt_vid_out_mplane)(struct file *file , void *fh , struct v4l2_fmtdesc *f ) ;
4637 int (*vidioc_enum_fmt_type_private)(struct file *file , void *fh , struct v4l2_fmtdesc *f ) ;
4638 int (*vidioc_g_fmt_vid_cap)(struct file *file , void *fh , struct v4l2_format *f ) ;
4639 int (*vidioc_g_fmt_vid_overlay)(struct file *file , void *fh , struct v4l2_format *f ) ;
4640 int (*vidioc_g_fmt_vid_out)(struct file *file , void *fh , struct v4l2_format *f ) ;
4641 int (*vidioc_g_fmt_vid_out_overlay)(struct file *file , void *fh , struct v4l2_format *f ) ;
4642 int (*vidioc_g_fmt_vbi_cap)(struct file *file , void *fh , struct v4l2_format *f ) ;
4643 int (*vidioc_g_fmt_vbi_out)(struct file *file , void *fh , struct v4l2_format *f ) ;
4644 int (*vidioc_g_fmt_sliced_vbi_cap)(struct file *file , void *fh , struct v4l2_format *f ) ;
4645 int (*vidioc_g_fmt_sliced_vbi_out)(struct file *file , void *fh , struct v4l2_format *f ) ;
4646 int (*vidioc_g_fmt_vid_cap_mplane)(struct file *file , void *fh , struct v4l2_format *f ) ;
4647 int (*vidioc_g_fmt_vid_out_mplane)(struct file *file , void *fh , struct v4l2_format *f ) ;
4648 int (*vidioc_g_fmt_type_private)(struct file *file , void *fh , struct v4l2_format *f ) ;
4649 int (*vidioc_s_fmt_vid_cap)(struct file *file , void *fh , struct v4l2_format *f ) ;
4650 int (*vidioc_s_fmt_vid_overlay)(struct file *file , void *fh , struct v4l2_format *f ) ;
4651 int (*vidioc_s_fmt_vid_out)(struct file *file , void *fh , struct v4l2_format *f ) ;
4652 int (*vidioc_s_fmt_vid_out_overlay)(struct file *file , void *fh , struct v4l2_format *f ) ;
4653 int (*vidioc_s_fmt_vbi_cap)(struct file *file , void *fh , struct v4l2_format *f ) ;
4654 int (*vidioc_s_fmt_vbi_out)(struct file *file , void *fh , struct v4l2_format *f ) ;
4655 int (*vidioc_s_fmt_sliced_vbi_cap)(struct file *file , void *fh , struct v4l2_format *f ) ;
4656 int (*vidioc_s_fmt_sliced_vbi_out)(struct file *file , void *fh , struct v4l2_format *f ) ;
4657 int (*vidioc_s_fmt_vid_cap_mplane)(struct file *file , void *fh , struct v4l2_format *f ) ;
4658 int (*vidioc_s_fmt_vid_out_mplane)(struct file *file , void *fh , struct v4l2_format *f ) ;
4659 int (*vidioc_s_fmt_type_private)(struct file *file , void *fh , struct v4l2_format *f ) ;
4660 int (*vidioc_try_fmt_vid_cap)(struct file *file , void *fh , struct v4l2_format *f ) ;
4661 int (*vidioc_try_fmt_vid_overlay)(struct file *file , void *fh , struct v4l2_format *f ) ;
4662 int (*vidioc_try_fmt_vid_out)(struct file *file , void *fh , struct v4l2_format *f ) ;
4663 int (*vidioc_try_fmt_vid_out_overlay)(struct file *file , void *fh , struct v4l2_format *f ) ;
4664 int (*vidioc_try_fmt_vbi_cap)(struct file *file , void *fh , struct v4l2_format *f ) ;
4665 int (*vidioc_try_fmt_vbi_out)(struct file *file , void *fh , struct v4l2_format *f ) ;
4666 int (*vidioc_try_fmt_sliced_vbi_cap)(struct file *file , void *fh , struct v4l2_format *f ) ;
4667 int (*vidioc_try_fmt_sliced_vbi_out)(struct file *file , void *fh , struct v4l2_format *f ) ;
4668 int (*vidioc_try_fmt_vid_cap_mplane)(struct file *file , void *fh , struct v4l2_format *f ) ;
4669 int (*vidioc_try_fmt_vid_out_mplane)(struct file *file , void *fh , struct v4l2_format *f ) ;
4670 int (*vidioc_try_fmt_type_private)(struct file *file , void *fh , struct v4l2_format *f ) ;
4671 int (*vidioc_reqbufs)(struct file *file , void *fh , struct v4l2_requestbuffers *b ) ;
4672 int (*vidioc_querybuf)(struct file *file , void *fh , struct v4l2_buffer *b ) ;
4673 int (*vidioc_qbuf)(struct file *file , void *fh , struct v4l2_buffer *b ) ;
4674 int (*vidioc_dqbuf)(struct file *file , void *fh , struct v4l2_buffer *b ) ;
4675 int (*vidioc_overlay)(struct file *file , void *fh , unsigned int i ) ;
4676 int (*vidioc_g_fbuf)(struct file *file , void *fh , struct v4l2_framebuffer *a ) ;
4677 int (*vidioc_s_fbuf)(struct file *file , void *fh , struct v4l2_framebuffer *a ) ;
4678 int (*vidioc_streamon)(struct file *file , void *fh , enum v4l2_buf_type i ) ;
4679 int (*vidioc_streamoff)(struct file *file , void *fh , enum v4l2_buf_type i ) ;
4680 int (*vidioc_g_std)(struct file *file , void *fh , v4l2_std_id *norm ) ;
4681 int (*vidioc_s_std)(struct file *file , void *fh , v4l2_std_id *norm ) ;
4682 int (*vidioc_querystd)(struct file *file , void *fh , v4l2_std_id *a ) ;
4683 int (*vidioc_enum_input)(struct file *file , void *fh , struct v4l2_input *inp ) ;
4684 int (*vidioc_g_input)(struct file *file , void *fh , unsigned int *i ) ;
4685 int (*vidioc_s_input)(struct file *file , void *fh , unsigned int i ) ;
4686 int (*vidioc_enum_output)(struct file *file , void *fh , struct v4l2_output *a ) ;
4687 int (*vidioc_g_output)(struct file *file , void *fh , unsigned int *i ) ;
4688 int (*vidioc_s_output)(struct file *file , void *fh , unsigned int i ) ;
4689 int (*vidioc_queryctrl)(struct file *file , void *fh , struct v4l2_queryctrl *a ) ;
4690 int (*vidioc_g_ctrl)(struct file *file , void *fh , struct v4l2_control *a ) ;
4691 int (*vidioc_s_ctrl)(struct file *file , void *fh , struct v4l2_control *a ) ;
4692 int (*vidioc_g_ext_ctrls)(struct file *file , void *fh , struct v4l2_ext_controls *a ) ;
4693 int (*vidioc_s_ext_ctrls)(struct file *file , void *fh , struct v4l2_ext_controls *a ) ;
4694 int (*vidioc_try_ext_ctrls)(struct file *file , void *fh , struct v4l2_ext_controls *a ) ;
4695 int (*vidioc_querymenu)(struct file *file , void *fh , struct v4l2_querymenu *a ) ;
4696 int (*vidioc_enumaudio)(struct file *file , void *fh , struct v4l2_audio *a ) ;
4697 int (*vidioc_g_audio)(struct file *file , void *fh , struct v4l2_audio *a ) ;
4698 int (*vidioc_s_audio)(struct file *file , void *fh , struct v4l2_audio *a ) ;
4699 int (*vidioc_enumaudout)(struct file *file , void *fh , struct v4l2_audioout *a ) ;
4700 int (*vidioc_g_audout)(struct file *file , void *fh , struct v4l2_audioout *a ) ;
4701 int (*vidioc_s_audout)(struct file *file , void *fh , struct v4l2_audioout *a ) ;
4702 int (*vidioc_g_modulator)(struct file *file , void *fh , struct v4l2_modulator *a ) ;
4703 int (*vidioc_s_modulator)(struct file *file , void *fh , struct v4l2_modulator *a ) ;
4704 int (*vidioc_cropcap)(struct file *file , void *fh , struct v4l2_cropcap *a ) ;
4705 int (*vidioc_g_crop)(struct file *file , void *fh , struct v4l2_crop *a ) ;
4706 int (*vidioc_s_crop)(struct file *file , void *fh , struct v4l2_crop *a ) ;
4707 int (*vidioc_g_jpegcomp)(struct file *file , void *fh , struct v4l2_jpegcompression *a ) ;
4708 int (*vidioc_s_jpegcomp)(struct file *file , void *fh , struct v4l2_jpegcompression *a ) ;
4709 int (*vidioc_g_enc_index)(struct file *file , void *fh , struct v4l2_enc_idx *a ) ;
4710 int (*vidioc_encoder_cmd)(struct file *file , void *fh , struct v4l2_encoder_cmd *a ) ;
4711 int (*vidioc_try_encoder_cmd)(struct file *file , void *fh , struct v4l2_encoder_cmd *a ) ;
4712 int (*vidioc_g_parm)(struct file *file , void *fh , struct v4l2_streamparm *a ) ;
4713 int (*vidioc_s_parm)(struct file *file , void *fh , struct v4l2_streamparm *a ) ;
4714 int (*vidioc_g_tuner)(struct file *file , void *fh , struct v4l2_tuner *a ) ;
4715 int (*vidioc_s_tuner)(struct file *file , void *fh , struct v4l2_tuner *a ) ;
4716 int (*vidioc_g_frequency)(struct file *file , void *fh , struct v4l2_frequency *a ) ;
4717 int (*vidioc_s_frequency)(struct file *file , void *fh , struct v4l2_frequency *a ) ;
4718 int (*vidioc_g_sliced_vbi_cap)(struct file *file , void *fh , struct v4l2_sliced_vbi_cap *a ) ;
4719 int (*vidioc_log_status)(struct file *file , void *fh ) ;
4720 int (*vidioc_s_hw_freq_seek)(struct file *file , void *fh , struct v4l2_hw_freq_seek *a ) ;
4721 int (*vidioc_g_register)(struct file *file , void *fh , struct v4l2_dbg_register *reg ) ;
4722 int (*vidioc_s_register)(struct file *file , void *fh , struct v4l2_dbg_register *reg ) ;
4723 int (*vidioc_g_chip_ident)(struct file *file , void *fh , struct v4l2_dbg_chip_ident *chip ) ;
4724 int (*vidioc_enum_framesizes)(struct file *file , void *fh , struct v4l2_frmsizeenum *fsize ) ;
4725 int (*vidioc_enum_frameintervals)(struct file *file , void *fh , struct v4l2_frmivalenum *fival ) ;
4726 int (*vidioc_enum_dv_presets)(struct file *file , void *fh , struct v4l2_dv_enum_preset *preset ) ;
4727 int (*vidioc_s_dv_preset)(struct file *file , void *fh , struct v4l2_dv_preset *preset ) ;
4728 int (*vidioc_g_dv_preset)(struct file *file , void *fh , struct v4l2_dv_preset *preset ) ;
4729 int (*vidioc_query_dv_preset)(struct file *file , void *fh , struct v4l2_dv_preset *qpreset ) ;
4730 int (*vidioc_s_dv_timings)(struct file *file , void *fh , struct v4l2_dv_timings *timings ) ;
4731 int (*vidioc_g_dv_timings)(struct file *file , void *fh , struct v4l2_dv_timings *timings ) ;
4732 int (*vidioc_subscribe_event)(struct v4l2_fh *fh , struct v4l2_event_subscription *sub ) ;
4733 int (*vidioc_unsubscribe_event)(struct v4l2_fh *fh , struct v4l2_event_subscription *sub ) ;
4734 long (*vidioc_default)(struct file *file , void *fh , bool valid_prio , int cmd ,
4735 void *arg ) ;
4736};
4737#line 30 "include/media/v4l2-ctrls.h"
4738struct v4l2_ctrl;
4739#line 30
4740struct v4l2_ctrl;
4741#line 46 "include/media/v4l2-ctrls.h"
4742struct v4l2_ctrl_ops {
4743 int (*g_volatile_ctrl)(struct v4l2_ctrl *ctrl ) ;
4744 int (*try_ctrl)(struct v4l2_ctrl *ctrl ) ;
4745 int (*s_ctrl)(struct v4l2_ctrl *ctrl ) ;
4746};
4747#line 97 "include/media/v4l2-ctrls.h"
4748union __anonunion____missing_field_name_262 {
4749 u32 step ;
4750 u32 menu_skip_mask ;
4751};
4752#line 97 "include/media/v4l2-ctrls.h"
4753union __anonunion_cur_263 {
4754 s32 val ;
4755 s64 val64 ;
4756 char *string ;
4757};
4758#line 97 "include/media/v4l2-ctrls.h"
4759union __anonunion____missing_field_name_264 {
4760 s32 val ;
4761 s64 val64 ;
4762 char *string ;
4763};
4764#line 97 "include/media/v4l2-ctrls.h"
4765struct v4l2_ctrl {
4766 struct list_head node ;
4767 struct v4l2_ctrl_handler *handler ;
4768 struct v4l2_ctrl **cluster ;
4769 unsigned int ncontrols ;
4770 unsigned int done : 1 ;
4771 unsigned int is_new : 1 ;
4772 unsigned int is_private : 1 ;
4773 unsigned int is_volatile : 1 ;
4774 struct v4l2_ctrl_ops const *ops ;
4775 u32 id ;
4776 char const *name ;
4777 enum v4l2_ctrl_type type ;
4778 s32 minimum ;
4779 s32 maximum ;
4780 s32 default_value ;
4781 union __anonunion____missing_field_name_262 __annonCompField50 ;
4782 char const * const *qmenu ;
4783 unsigned long flags ;
4784 union __anonunion_cur_263 cur ;
4785 union __anonunion____missing_field_name_264 __annonCompField51 ;
4786 void *priv ;
4787};
4788#line 142 "include/media/v4l2-ctrls.h"
4789struct v4l2_ctrl_ref {
4790 struct list_head node ;
4791 struct v4l2_ctrl_ref *next ;
4792 struct v4l2_ctrl *ctrl ;
4793};
4794#line 161 "include/media/v4l2-ctrls.h"
4795struct v4l2_ctrl_handler {
4796 struct mutex lock ;
4797 struct list_head ctrls ;
4798 struct list_head ctrl_refs ;
4799 struct v4l2_ctrl_ref *cached ;
4800 struct v4l2_ctrl_ref **buckets ;
4801 u16 nr_of_buckets ;
4802 int error ;
4803};
4804#line 53 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/media/video/msp3400-driver.h"
4805struct __anonstruct____missing_field_name_265 {
4806 struct v4l2_ctrl *volume ;
4807 struct v4l2_ctrl *muted ;
4808};
4809#line 53 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/media/video/msp3400-driver.h"
4810struct msp_state {
4811 struct v4l2_subdev sd ;
4812 struct v4l2_ctrl_handler hdl ;
4813 int rev1 ;
4814 int rev2 ;
4815 int ident ;
4816 u8 has_nicam ;
4817 u8 has_radio ;
4818 u8 has_headphones ;
4819 u8 has_ntsc_jp_d_k3 ;
4820 u8 has_scart2 ;
4821 u8 has_scart3 ;
4822 u8 has_scart4 ;
4823 u8 has_scart2_out ;
4824 u8 has_scart2_out_volume ;
4825 u8 has_i2s_conf ;
4826 u8 has_subwoofer ;
4827 u8 has_sound_processing ;
4828 u8 has_virtual_dolby_surround ;
4829 u8 has_dolby_pro_logic ;
4830 u8 force_btsc ;
4831 int radio ;
4832 int opmode ;
4833 int std ;
4834 int mode ;
4835 v4l2_std_id v4l2_std ;
4836 int nicam_on ;
4837 int acb ;
4838 int in_scart ;
4839 int i2s_mode ;
4840 int main ;
4841 int second ;
4842 int input ;
4843 u32 route_in ;
4844 u32 route_out ;
4845 int audmode ;
4846 int rxsubchans ;
4847 struct __anonstruct____missing_field_name_265 __annonCompField52 ;
4848 int scan_in_progress ;
4849 struct task_struct *kthread ;
4850 wait_queue_head_t wq ;
4851 unsigned int restart : 1 ;
4852 unsigned int watch_stereo : 1 ;
4853};
4854#line 244 "include/linux/usb/ch9.h"
4855struct usb_device_descriptor {
4856 __u8 bLength ;
4857 __u8 bDescriptorType ;
4858 __le16 bcdUSB ;
4859 __u8 bDeviceClass ;
4860 __u8 bDeviceSubClass ;
4861 __u8 bDeviceProtocol ;
4862 __u8 bMaxPacketSize0 ;
4863 __le16 idVendor ;
4864 __le16 idProduct ;
4865 __le16 bcdDevice ;
4866 __u8 iManufacturer ;
4867 __u8 iProduct ;
4868 __u8 iSerialNumber ;
4869 __u8 bNumConfigurations ;
4870} __attribute__((__packed__)) ;
4871#line 300 "include/linux/usb/ch9.h"
4872struct usb_config_descriptor {
4873 __u8 bLength ;
4874 __u8 bDescriptorType ;
4875 __le16 wTotalLength ;
4876 __u8 bNumInterfaces ;
4877 __u8 bConfigurationValue ;
4878 __u8 iConfiguration ;
4879 __u8 bmAttributes ;
4880 __u8 bMaxPower ;
4881} __attribute__((__packed__)) ;
4882#line 337 "include/linux/usb/ch9.h"
4883struct usb_interface_descriptor {
4884 __u8 bLength ;
4885 __u8 bDescriptorType ;
4886 __u8 bInterfaceNumber ;
4887 __u8 bAlternateSetting ;
4888 __u8 bNumEndpoints ;
4889 __u8 bInterfaceClass ;
4890 __u8 bInterfaceSubClass ;
4891 __u8 bInterfaceProtocol ;
4892 __u8 iInterface ;
4893} __attribute__((__packed__)) ;
4894#line 355 "include/linux/usb/ch9.h"
4895struct usb_endpoint_descriptor {
4896 __u8 bLength ;
4897 __u8 bDescriptorType ;
4898 __u8 bEndpointAddress ;
4899 __u8 bmAttributes ;
4900 __le16 wMaxPacketSize ;
4901 __u8 bInterval ;
4902 __u8 bRefresh ;
4903 __u8 bSynchAddress ;
4904} __attribute__((__packed__)) ;
4905#line 576 "include/linux/usb/ch9.h"
4906struct usb_ss_ep_comp_descriptor {
4907 __u8 bLength ;
4908 __u8 bDescriptorType ;
4909 __u8 bMaxBurst ;
4910 __u8 bmAttributes ;
4911 __le16 wBytesPerInterval ;
4912} __attribute__((__packed__)) ;
4913#line 637 "include/linux/usb/ch9.h"
4914struct usb_interface_assoc_descriptor {
4915 __u8 bLength ;
4916 __u8 bDescriptorType ;
4917 __u8 bFirstInterface ;
4918 __u8 bInterfaceCount ;
4919 __u8 bFunctionClass ;
4920 __u8 bFunctionSubClass ;
4921 __u8 bFunctionProtocol ;
4922 __u8 iFunction ;
4923} __attribute__((__packed__)) ;
4924#line 846
4925enum usb_device_speed {
4926 USB_SPEED_UNKNOWN = 0,
4927 USB_SPEED_LOW = 1,
4928 USB_SPEED_FULL = 2,
4929 USB_SPEED_HIGH = 3,
4930 USB_SPEED_WIRELESS = 4,
4931 USB_SPEED_SUPER = 5
4932} ;
4933#line 854
4934enum usb_device_state {
4935 USB_STATE_NOTATTACHED = 0,
4936 USB_STATE_ATTACHED = 1,
4937 USB_STATE_POWERED = 2,
4938 USB_STATE_RECONNECTING = 3,
4939 USB_STATE_UNAUTHENTICATED = 4,
4940 USB_STATE_DEFAULT = 5,
4941 USB_STATE_ADDRESS = 6,
4942 USB_STATE_CONFIGURED = 7,
4943 USB_STATE_SUSPENDED = 8
4944} ;
4945#line 10 "include/linux/irqreturn.h"
4946enum irqreturn {
4947 IRQ_NONE = 0,
4948 IRQ_HANDLED = 1,
4949 IRQ_WAKE_THREAD = 2
4950} ;
4951#line 16 "include/linux/irqreturn.h"
4952typedef enum irqreturn irqreturn_t;
4953#line 106 "include/linux/interrupt.h"
4954struct irqaction {
4955 irqreturn_t (*handler)(int , void * ) ;
4956 unsigned long flags ;
4957 void *dev_id ;
4958 struct irqaction *next ;
4959 int irq ;
4960 irqreturn_t (*thread_fn)(int , void * ) ;
4961 struct task_struct *thread ;
4962 unsigned long thread_flags ;
4963 unsigned long thread_mask ;
4964 char const *name ;
4965 struct proc_dir_entry *dir ;
4966} __attribute__((__aligned__((1) << (12) ))) ;
4967#line 25 "include/linux/usb.h"
4968struct usb_device;
4969#line 25
4970struct usb_device;
4971#line 27
4972struct wusb_dev;
4973#line 27
4974struct wusb_dev;
4975#line 47
4976struct ep_device;
4977#line 47
4978struct ep_device;
4979#line 64 "include/linux/usb.h"
4980struct usb_host_endpoint {
4981 struct usb_endpoint_descriptor desc ;
4982 struct usb_ss_ep_comp_descriptor ss_ep_comp ;
4983 struct list_head urb_list ;
4984 void *hcpriv ;
4985 struct ep_device *ep_dev ;
4986 unsigned char *extra ;
4987 int extralen ;
4988 int enabled ;
4989};
4990#line 77 "include/linux/usb.h"
4991struct usb_host_interface {
4992 struct usb_interface_descriptor desc ;
4993 struct usb_host_endpoint *endpoint ;
4994 char *string ;
4995 unsigned char *extra ;
4996 int extralen ;
4997};
4998#line 90
4999enum usb_interface_condition {
5000 USB_INTERFACE_UNBOUND = 0,
5001 USB_INTERFACE_BINDING = 1,
5002 USB_INTERFACE_BOUND = 2,
5003 USB_INTERFACE_UNBINDING = 3
5004} ;
5005#line 159 "include/linux/usb.h"
5006struct usb_interface {
5007 struct usb_host_interface *altsetting ;
5008 struct usb_host_interface *cur_altsetting ;
5009 unsigned int num_altsetting ;
5010 struct usb_interface_assoc_descriptor *intf_assoc ;
5011 int minor ;
5012 enum usb_interface_condition condition ;
5013 unsigned int sysfs_files_created : 1 ;
5014 unsigned int ep_devs_created : 1 ;
5015 unsigned int unregistering : 1 ;
5016 unsigned int needs_remote_wakeup : 1 ;
5017 unsigned int needs_altsetting0 : 1 ;
5018 unsigned int needs_binding : 1 ;
5019 unsigned int reset_running : 1 ;
5020 unsigned int resetting_device : 1 ;
5021 struct device dev ;
5022 struct device *usb_dev ;
5023 atomic_t pm_usage_cnt ;
5024 struct work_struct reset_ws ;
5025};
5026#line 222 "include/linux/usb.h"
5027struct usb_interface_cache {
5028 unsigned int num_altsetting ;
5029 struct kref ref ;
5030 struct usb_host_interface altsetting[0] ;
5031};
5032#line 274 "include/linux/usb.h"
5033struct usb_host_config {
5034 struct usb_config_descriptor desc ;
5035 char *string ;
5036 struct usb_interface_assoc_descriptor *intf_assoc[16] ;
5037 struct usb_interface *interface[32] ;
5038 struct usb_interface_cache *intf_cache[32] ;
5039 unsigned char *extra ;
5040 int extralen ;
5041};
5042#line 305 "include/linux/usb.h"
5043struct usb_devmap {
5044 unsigned long devicemap[128UL / (8UL * sizeof(unsigned long ))] ;
5045};
5046#line 312
5047struct mon_bus;
5048#line 312
5049struct mon_bus;
5050#line 312 "include/linux/usb.h"
5051struct usb_bus {
5052 struct device *controller ;
5053 int busnum ;
5054 char const *bus_name ;
5055 u8 uses_dma ;
5056 u8 uses_pio_for_control ;
5057 u8 otg_port ;
5058 unsigned int is_b_host : 1 ;
5059 unsigned int b_hnp_enable : 1 ;
5060 unsigned int sg_tablesize ;
5061 int devnum_next ;
5062 struct usb_devmap devmap ;
5063 struct usb_device *root_hub ;
5064 struct usb_bus *hs_companion ;
5065 struct list_head bus_list ;
5066 int bandwidth_allocated ;
5067 int bandwidth_int_reqs ;
5068 int bandwidth_isoc_reqs ;
5069 struct dentry *usbfs_dentry ;
5070 struct mon_bus *mon_bus ;
5071 int monitored ;
5072};
5073#line 367
5074struct usb_tt;
5075#line 367
5076struct usb_tt;
5077#line 426 "include/linux/usb.h"
5078struct usb_device {
5079 int devnum ;
5080 char devpath[16] ;
5081 u32 route ;
5082 enum usb_device_state state ;
5083 enum usb_device_speed speed ;
5084 struct usb_tt *tt ;
5085 int ttport ;
5086 unsigned int toggle[2] ;
5087 struct usb_device *parent ;
5088 struct usb_bus *bus ;
5089 struct usb_host_endpoint ep0 ;
5090 struct device dev ;
5091 struct usb_device_descriptor descriptor ;
5092 struct usb_host_config *config ;
5093 struct usb_host_config *actconfig ;
5094 struct usb_host_endpoint *ep_in[16] ;
5095 struct usb_host_endpoint *ep_out[16] ;
5096 char **rawdescriptors ;
5097 unsigned short bus_mA ;
5098 u8 portnum ;
5099 u8 level ;
5100 unsigned int can_submit : 1 ;
5101 unsigned int persist_enabled : 1 ;
5102 unsigned int have_langid : 1 ;
5103 unsigned int authorized : 1 ;
5104 unsigned int authenticated : 1 ;
5105 unsigned int wusb : 1 ;
5106 int string_langid ;
5107 char *product ;
5108 char *manufacturer ;
5109 char *serial ;
5110 struct list_head filelist ;
5111 struct device *usb_classdev ;
5112 struct dentry *usbfs_dentry ;
5113 int maxchild ;
5114 struct usb_device *children[31] ;
5115 u32 quirks ;
5116 atomic_t urbnum ;
5117 unsigned long active_duration ;
5118 unsigned long connect_time ;
5119 unsigned int do_remote_wakeup : 1 ;
5120 unsigned int reset_resume : 1 ;
5121 struct wusb_dev *wusb_dev ;
5122 int slot_id ;
5123};
5124#line 983 "include/linux/usb.h"
5125struct usb_iso_packet_descriptor {
5126 unsigned int offset ;
5127 unsigned int length ;
5128 unsigned int actual_length ;
5129 int status ;
5130};
5131#line 990
5132struct urb;
5133#line 990
5134struct urb;
5135#line 992 "include/linux/usb.h"
5136struct usb_anchor {
5137 struct list_head urb_list ;
5138 wait_queue_head_t wait ;
5139 spinlock_t lock ;
5140 unsigned int poisoned : 1 ;
5141};
5142#line 1183
5143struct scatterlist;
5144#line 1183
5145struct scatterlist;
5146#line 1183 "include/linux/usb.h"
5147struct urb {
5148 struct kref kref ;
5149 void *hcpriv ;
5150 atomic_t use_count ;
5151 atomic_t reject ;
5152 int unlinked ;
5153 struct list_head urb_list ;
5154 struct list_head anchor_list ;
5155 struct usb_anchor *anchor ;
5156 struct usb_device *dev ;
5157 struct usb_host_endpoint *ep ;
5158 unsigned int pipe ;
5159 unsigned int stream_id ;
5160 int status ;
5161 unsigned int transfer_flags ;
5162 void *transfer_buffer ;
5163 dma_addr_t transfer_dma ;
5164 struct scatterlist *sg ;
5165 int num_sgs ;
5166 u32 transfer_buffer_length ;
5167 u32 actual_length ;
5168 unsigned char *setup_packet ;
5169 dma_addr_t setup_dma ;
5170 int start_frame ;
5171 int number_of_packets ;
5172 int interval ;
5173 int error_count ;
5174 void *context ;
5175 void (*complete)(struct urb * ) ;
5176 struct usb_iso_packet_descriptor iso_frame_desc[0] ;
5177};
5178#line 290 "include/linux/timer.h"
5179enum hrtimer_restart;
5180#line 290
5181enum hrtimer_restart;
5182#line 24 "include/linux/sysfs.h"
5183enum kobj_ns_type;
5184#line 40 "include/linux/taskstats.h"
5185struct taskstats {
5186 __u16 version ;
5187 __u32 ac_exitcode ;
5188 __u8 ac_flag ;
5189 __u8 ac_nice ;
5190 __u64 cpu_count __attribute__((__aligned__(8))) ;
5191 __u64 cpu_delay_total ;
5192 __u64 blkio_count ;
5193 __u64 blkio_delay_total ;
5194 __u64 swapin_count ;
5195 __u64 swapin_delay_total ;
5196 __u64 cpu_run_real_total ;
5197 __u64 cpu_run_virtual_total ;
5198 char ac_comm[32] ;
5199 __u8 ac_sched __attribute__((__aligned__(8))) ;
5200 __u8 ac_pad[3] ;
5201 __u32 ac_uid __attribute__((__aligned__(8))) ;
5202 __u32 ac_gid ;
5203 __u32 ac_pid ;
5204 __u32 ac_ppid ;
5205 __u32 ac_btime ;
5206 __u64 ac_etime __attribute__((__aligned__(8))) ;
5207 __u64 ac_utime ;
5208 __u64 ac_stime ;
5209 __u64 ac_minflt ;
5210 __u64 ac_majflt ;
5211 __u64 coremem ;
5212 __u64 virtmem ;
5213 __u64 hiwater_rss ;
5214 __u64 hiwater_vm ;
5215 __u64 read_char ;
5216 __u64 write_char ;
5217 __u64 read_syscalls ;
5218 __u64 write_syscalls ;
5219 __u64 read_bytes ;
5220 __u64 write_bytes ;
5221 __u64 cancelled_write_bytes ;
5222 __u64 nvcsw ;
5223 __u64 nivcsw ;
5224 __u64 ac_utimescaled ;
5225 __u64 ac_stimescaled ;
5226 __u64 cpu_scaled_run_real_total ;
5227 __u64 freepages_count ;
5228 __u64 freepages_delay_total ;
5229};
5230#line 22 "include/linux/cgroup.h"
5231struct cgroupfs_root;
5232#line 22
5233struct cgroupfs_root;
5234#line 25
5235struct cgroup;
5236#line 25
5237struct cgroup;
5238#line 26
5239struct css_id;
5240#line 26
5241struct css_id;
5242#line 60 "include/linux/cgroup.h"
5243struct cgroup_subsys_state {
5244 struct cgroup *cgroup ;
5245 atomic_t refcnt ;
5246 unsigned long flags ;
5247 struct css_id *id ;
5248};
5249#line 195 "include/linux/cgroup.h"
5250struct cgroup {
5251 unsigned long flags ;
5252 atomic_t count ;
5253 struct list_head sibling ;
5254 struct list_head children ;
5255 struct cgroup *parent ;
5256 struct dentry *dentry ;
5257 struct cgroup_subsys_state *subsys[8UL * sizeof(unsigned long )] ;
5258 struct cgroupfs_root *root ;
5259 struct cgroup *top_cgroup ;
5260 struct list_head css_sets ;
5261 struct list_head release_list ;
5262 struct list_head pidlists ;
5263 struct mutex pidlist_mutex ;
5264 struct rcu_head rcu_head ;
5265 struct list_head event_list ;
5266 spinlock_t event_list_lock ;
5267};
5268#line 256 "include/linux/cgroup.h"
5269struct css_set {
5270 atomic_t refcount ;
5271 struct hlist_node hlist ;
5272 struct list_head tasks ;
5273 struct list_head cg_links ;
5274 struct cgroup_subsys_state *subsys[8UL * sizeof(unsigned long )] ;
5275 struct rcu_head rcu_head ;
5276};
5277#line 110 "include/linux/swap.h"
5278struct reclaim_state {
5279 unsigned long reclaimed_slab ;
5280};
5281#line 185 "include/linux/mm.h"
5282struct vm_fault {
5283 unsigned int flags ;
5284 unsigned long pgoff ;
5285 void *virtual_address ;
5286 struct page *page ;
5287};
5288#line 202 "include/linux/mm.h"
5289struct vm_operations_struct {
5290 void (*open)(struct vm_area_struct *area ) ;
5291 void (*close)(struct vm_area_struct *area ) ;
5292 int (*fault)(struct vm_area_struct *vma , struct vm_fault *vmf ) ;
5293 int (*page_mkwrite)(struct vm_area_struct *vma , struct vm_fault *vmf ) ;
5294 int (*access)(struct vm_area_struct *vma , unsigned long addr , void *buf , int len ,
5295 int write ) ;
5296 int (*set_policy)(struct vm_area_struct *vma , struct mempolicy *new ) ;
5297 struct mempolicy *(*get_policy)(struct vm_area_struct *vma , unsigned long addr ) ;
5298 int (*migrate)(struct vm_area_struct *vma , nodemask_t const *from , nodemask_t const *to ,
5299 unsigned long flags ) ;
5300};
5301#line 36 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
5302struct __anonstruct_msp_stdlist_279 {
5303 int retval ;
5304 int main ;
5305 int second ;
5306 char *name ;
5307};
5308#line 65 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
5309struct msp3400c_init_data_dem {
5310 int fir1[6] ;
5311 int fir2[6] ;
5312 int cdo1 ;
5313 int cdo2 ;
5314 int ad_cv ;
5315 int mode_reg ;
5316 int dsp_src ;
5317 int dsp_matrix ;
5318};
5319#line 118 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
5320struct msp3400c_carrier_detect {
5321 int cdo ;
5322 char *name ;
5323};
5324#line 519 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
5325struct __anonstruct_280 {
5326 int : 0 ;
5327};
5328#line 545 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
5329struct __anonstruct_281 {
5330 int : 0 ;
5331};
5332#line 549 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
5333struct __anonstruct_282 {
5334 int : 0 ;
5335};
5336#line 1 "<compiler builtins>"
5337long __builtin_expect(long , long ) ;
5338#line 315 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/bitops.h"
5339__inline static int variable_test_bit(int nr , unsigned long const volatile *addr )
5340{ int oldbit ;
5341 unsigned long *__cil_tmp4 ;
5342
5343 {
5344#line 319
5345 __cil_tmp4 = (unsigned long *)addr;
5346#line 319
5347 __asm__ volatile ("bt %2,%1\n\t"
5348 "sbb %0,%0": "=r" (oldbit): "m" (*__cil_tmp4), "Ir" (nr));
5349#line 324
5350 return (oldbit);
5351}
5352}
5353#line 100 "include/linux/printk.h"
5354extern int printk(char const *fmt , ...) ;
5355#line 295 "include/linux/kernel.h"
5356extern int snprintf(char *buf , size_t size , char const *fmt , ...) ;
5357#line 88 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/percpu.h"
5358extern void __bad_percpu_size(void) ;
5359#line 10 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/current.h"
5360extern struct task_struct *current_task __attribute__((__section__(".data..percpu"))) ;
5361#line 12 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/current.h"
5362__inline static struct task_struct *( __attribute__((__always_inline__)) get_current)(void)
5363{ struct task_struct *pfo_ret__ ;
5364 int __cil_tmp2 ;
5365 int __cil_tmp3 ;
5366 int __cil_tmp4 ;
5367 int __cil_tmp5 ;
5368
5369 {
5370 {
5371#line 14
5372 __cil_tmp2 = (int )8UL;
5373#line 14
5374 if (__cil_tmp2 == 1) {
5375#line 14
5376 goto case_1;
5377 } else {
5378 {
5379#line 14
5380 __cil_tmp3 = (int )8UL;
5381#line 14
5382 if (__cil_tmp3 == 2) {
5383#line 14
5384 goto case_2;
5385 } else {
5386 {
5387#line 14
5388 __cil_tmp4 = (int )8UL;
5389#line 14
5390 if (__cil_tmp4 == 4) {
5391#line 14
5392 goto case_4;
5393 } else {
5394 {
5395#line 14
5396 __cil_tmp5 = (int )8UL;
5397#line 14
5398 if (__cil_tmp5 == 8) {
5399#line 14
5400 goto case_8;
5401 } else {
5402#line 14
5403 goto switch_default;
5404#line 14
5405 if (0) {
5406 case_1:
5407#line 14
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417#line 14
5418 goto switch_break;
5419 case_2:
5420#line 14
5421 __asm__ ("mov"
5422 "w "
5423 "%%"
5424 "gs"
5425 ":"
5426 "%P"
5427 "1"
5428 ",%0": "=r" (pfo_ret__): "p" (& current_task));
5429#line 14
5430 goto switch_break;
5431 case_4:
5432#line 14
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443#line 14
5444 goto switch_break;
5445 case_8:
5446#line 14
5447 __asm__ ("mov"
5448 "q "
5449 "%%"
5450 "gs"
5451 ":"
5452 "%P"
5453 "1"
5454 ",%0": "=r" (pfo_ret__): "p" (& current_task));
5455#line 14
5456 goto switch_break;
5457 switch_default:
5458 {
5459#line 14
5460 __bad_percpu_size();
5461 }
5462 } else {
5463 switch_break: ;
5464 }
5465 }
5466 }
5467 }
5468 }
5469 }
5470 }
5471 }
5472 }
5473#line 14
5474 return (pfo_ret__);
5475}
5476}
5477#line 11 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/cmpxchg_64.h"
5478extern void __xchg_wrong_size(void) ;
5479#line 30 "include/linux/string.h"
5480extern size_t strlcpy(char * , char const * , size_t ) ;
5481#line 32 "include/linux/err.h"
5482__inline static long __attribute__((__warn_unused_result__)) IS_ERR(void const *ptr )
5483{ long tmp ;
5484 unsigned long __cil_tmp3 ;
5485 int __cil_tmp4 ;
5486 int __cil_tmp5 ;
5487 int __cil_tmp6 ;
5488 long __cil_tmp7 ;
5489
5490 {
5491 {
5492#line 34
5493 __cil_tmp3 = (unsigned long )ptr;
5494#line 34
5495 __cil_tmp4 = __cil_tmp3 >= 1152921504606842881UL;
5496#line 34
5497 __cil_tmp5 = ! __cil_tmp4;
5498#line 34
5499 __cil_tmp6 = ! __cil_tmp5;
5500#line 34
5501 __cil_tmp7 = (long )__cil_tmp6;
5502#line 34
5503 tmp = __builtin_expect(__cil_tmp7, 0L);
5504 }
5505#line 34
5506 return (tmp);
5507}
5508}
5509#line 82 "include/linux/thread_info.h"
5510__inline static int test_ti_thread_flag(struct thread_info *ti , int flag )
5511{ int tmp___0 ;
5512 __u32 *__cil_tmp4 ;
5513 unsigned long *__cil_tmp5 ;
5514 unsigned long const volatile *__cil_tmp6 ;
5515
5516 {
5517 {
5518#line 84
5519 __cil_tmp4 = & ti->flags;
5520#line 84
5521 __cil_tmp5 = (unsigned long *)__cil_tmp4;
5522#line 84
5523 __cil_tmp6 = (unsigned long const volatile *)__cil_tmp5;
5524#line 84
5525 tmp___0 = variable_test_bit(flag, __cil_tmp6);
5526 }
5527#line 84
5528 return (tmp___0);
5529}
5530}
5531#line 30 "include/linux/wait.h"
5532extern int default_wake_function(wait_queue_t *wait , unsigned int mode , int flags ,
5533 void *key ) ;
5534#line 80
5535extern void __init_waitqueue_head(wait_queue_head_t *q , struct lock_class_key * ) ;
5536#line 118
5537extern void add_wait_queue(wait_queue_head_t *q , wait_queue_t *wait ) ;
5538#line 120
5539extern void remove_wait_queue(wait_queue_head_t *q , wait_queue_t *wait ) ;
5540#line 156
5541extern void __wake_up(wait_queue_head_t *q , unsigned int mode , int nr , void *key ) ;
5542#line 134 "include/linux/mutex.h"
5543extern void mutex_lock_nested(struct mutex *lock , unsigned int subclass ) ;
5544#line 169
5545extern void mutex_unlock(struct mutex *lock ) ;
5546#line 298 "include/linux/jiffies.h"
5547extern unsigned long msecs_to_jiffies(unsigned int m ) ;
5548#line 830 "include/linux/rcupdate.h"
5549extern void kfree(void const * ) ;
5550#line 303 "include/linux/moduleparam.h"
5551extern struct kernel_param_ops param_ops_int ;
5552#line 329
5553extern struct kernel_param_ops param_ops_bool ;
5554#line 79 "include/linux/module.h"
5555int init_module(void) ;
5556#line 80
5557void cleanup_module(void) ;
5558#line 99
5559extern struct module __this_module ;
5560#line 221 "include/linux/slub_def.h"
5561extern void *__kmalloc(size_t size , gfp_t flags ) ;
5562#line 255 "include/linux/slub_def.h"
5563__inline static void *( __attribute__((__always_inline__)) kmalloc)(size_t size ,
5564 gfp_t flags )
5565{ void *tmp___2 ;
5566
5567 {
5568 {
5569#line 270
5570 tmp___2 = __kmalloc(size, flags);
5571 }
5572#line 270
5573 return (tmp___2);
5574}
5575}
5576#line 318 "include/linux/slab.h"
5577__inline static void *kzalloc(size_t size , gfp_t flags )
5578{ void *tmp ;
5579 unsigned int __cil_tmp4 ;
5580
5581 {
5582 {
5583#line 320
5584 __cil_tmp4 = flags | 32768U;
5585#line 320
5586 tmp = kmalloc(size, __cil_tmp4);
5587 }
5588#line 320
5589 return (tmp);
5590}
5591}
5592#line 705 "include/linux/device.h"
5593extern void *dev_get_drvdata(struct device const *dev ) __attribute__((__ldv_model__)) ;
5594#line 358 "include/linux/sched.h"
5595extern long schedule_timeout_interruptible(long timeout ) ;
5596#line 361
5597extern void schedule(void) ;
5598#line 2112
5599extern int wake_up_process(struct task_struct *tsk ) ;
5600#line 2441 "include/linux/sched.h"
5601__inline static int test_tsk_thread_flag(struct task_struct *tsk , int flag )
5602{ int tmp___7 ;
5603 void *__cil_tmp4 ;
5604 struct thread_info *__cil_tmp5 ;
5605
5606 {
5607 {
5608#line 2443
5609 __cil_tmp4 = tsk->stack;
5610#line 2443
5611 __cil_tmp5 = (struct thread_info *)__cil_tmp4;
5612#line 2443
5613 tmp___7 = test_ti_thread_flag(__cil_tmp5, flag);
5614 }
5615#line 2443
5616 return (tmp___7);
5617}
5618}
5619#line 59 "include/linux/i2c.h"
5620extern int i2c_master_send(struct i2c_client const *client , char const *buf ,
5621 int count ) ;
5622#line 66
5623extern int i2c_transfer(struct i2c_adapter *adap , struct i2c_msg *msgs , int num ) ;
5624#line 223 "include/linux/i2c.h"
5625__inline static void *i2c_get_clientdata(struct i2c_client const *dev )
5626{ void *tmp___7 ;
5627 struct device const *__cil_tmp3 ;
5628
5629 {
5630 {
5631#line 225
5632 __cil_tmp3 = & dev->dev;
5633#line 225
5634 tmp___7 = dev_get_drvdata(__cil_tmp3);
5635 }
5636#line 225
5637 return (tmp___7);
5638}
5639}
5640#line 434
5641extern int i2c_register_driver(struct module * , struct i2c_driver * ) ;
5642#line 435
5643extern void i2c_del_driver(struct i2c_driver * ) ;
5644#line 437 "include/linux/i2c.h"
5645__inline static int i2c_add_driver(struct i2c_driver *driver )
5646{ int tmp___7 ;
5647
5648 {
5649 {
5650#line 439
5651 tmp___7 = i2c_register_driver(& __this_module, driver);
5652 }
5653#line 439
5654 return (tmp___7);
5655}
5656}
5657#line 467 "include/linux/i2c.h"
5658__inline static int i2c_adapter_id(struct i2c_adapter *adap )
5659{
5660
5661 {
5662#line 469
5663 return (adap->nr);
5664}
5665}
5666#line 7 "include/linux/kthread.h"
5667extern struct task_struct *kthread_create_on_node(int (*threadfn)(void *data ) , void *data ,
5668 int node , char const *namefmt
5669 , ...) ;
5670#line 36
5671extern int kthread_stop(struct task_struct *k ) ;
5672#line 37
5673extern int kthread_should_stop(void) ;
5674#line 21 "include/linux/freezer.h"
5675__inline static int freezing(struct task_struct *p )
5676{ int tmp___7 ;
5677
5678 {
5679 {
5680#line 23
5681 tmp___7 = test_tsk_thread_flag(p, 23);
5682 }
5683#line 23
5684 return (tmp___7);
5685}
5686}
5687#line 50
5688extern void refrigerator(void) ;
5689#line 54 "include/linux/freezer.h"
5690__inline static int try_to_freeze(void)
5691{ struct task_struct *tmp___7 ;
5692 int tmp___8 ;
5693
5694 {
5695 {
5696#line 56
5697 tmp___7 = get_current();
5698#line 56
5699 tmp___8 = freezing(tmp___7);
5700 }
5701#line 56
5702 if (tmp___8) {
5703 {
5704#line 57
5705 refrigerator();
5706 }
5707#line 58
5708 return (1);
5709 } else {
5710#line 60
5711 return (0);
5712 }
5713}
5714}
5715#line 107 "include/media/v4l2-common.h"
5716extern int v4l2_chip_ident_i2c_client(struct i2c_client *c , struct v4l2_dbg_chip_ident *chip ,
5717 u32 ident , u32 revision ) ;
5718#line 137
5719extern void v4l2_i2c_subdev_init(struct v4l2_subdev *sd , struct i2c_client *client ,
5720 struct v4l2_subdev_ops const *ops ) ;
5721#line 560 "include/media/v4l2-subdev.h"
5722__inline static void *v4l2_get_subdevdata(struct v4l2_subdev const *sd )
5723{ void *__cil_tmp2 ;
5724
5725 {
5726 {
5727#line 562
5728 __cil_tmp2 = sd->dev_priv;
5729#line 562
5730 return ((void *)__cil_tmp2);
5731 }
5732}
5733}
5734#line 115 "include/media/v4l2-device.h"
5735extern void v4l2_device_unregister_subdev(struct v4l2_subdev *sd ) ;
5736#line 244 "include/media/v4l2-ctrls.h"
5737extern int v4l2_ctrl_handler_init(struct v4l2_ctrl_handler *hdl , unsigned int nr_of_controls_hint ) ;
5738#line 253
5739extern void v4l2_ctrl_handler_free(struct v4l2_ctrl_handler *hdl ) ;
5740#line 263
5741extern int v4l2_ctrl_handler_setup(struct v4l2_ctrl_handler *hdl ) ;
5742#line 276
5743extern void v4l2_ctrl_handler_log_status(struct v4l2_ctrl_handler *hdl , char const *prefix ) ;
5744#line 308
5745extern struct v4l2_ctrl *v4l2_ctrl_new_std(struct v4l2_ctrl_handler *hdl , struct v4l2_ctrl_ops const *ops ,
5746 u32 id , s32 min , s32 max , u32 step ,
5747 s32 def ) ;
5748#line 363
5749extern void v4l2_ctrl_cluster(unsigned int ncontrols , struct v4l2_ctrl **controls ) ;
5750#line 406 "include/media/v4l2-ctrls.h"
5751__inline static void v4l2_ctrl_lock(struct v4l2_ctrl *ctrl )
5752{ struct v4l2_ctrl_handler *__cil_tmp2 ;
5753 struct mutex *__cil_tmp3 ;
5754
5755 {
5756 {
5757#line 408
5758 __cil_tmp2 = ctrl->handler;
5759#line 408
5760 __cil_tmp3 = & __cil_tmp2->lock;
5761#line 408
5762 mutex_lock_nested(__cil_tmp3, 0U);
5763 }
5764#line 409
5765 return;
5766}
5767}
5768#line 415 "include/media/v4l2-ctrls.h"
5769__inline static void v4l2_ctrl_unlock(struct v4l2_ctrl *ctrl )
5770{ struct v4l2_ctrl_handler *__cil_tmp2 ;
5771 struct mutex *__cil_tmp3 ;
5772
5773 {
5774 {
5775#line 417
5776 __cil_tmp2 = ctrl->handler;
5777#line 417
5778 __cil_tmp3 = & __cil_tmp2->lock;
5779#line 417
5780 mutex_unlock(__cil_tmp3);
5781 }
5782#line 418
5783 return;
5784}
5785}
5786#line 455
5787extern int v4l2_subdev_queryctrl(struct v4l2_subdev *sd , struct v4l2_queryctrl *qc ) ;
5788#line 456
5789extern int v4l2_subdev_querymenu(struct v4l2_subdev *sd , struct v4l2_querymenu *qm ) ;
5790#line 457
5791extern int v4l2_subdev_g_ext_ctrls(struct v4l2_subdev *sd , struct v4l2_ext_controls *cs ) ;
5792#line 458
5793extern int v4l2_subdev_try_ext_ctrls(struct v4l2_subdev *sd , struct v4l2_ext_controls *cs ) ;
5794#line 459
5795extern int v4l2_subdev_s_ext_ctrls(struct v4l2_subdev *sd , struct v4l2_ext_controls *cs ) ;
5796#line 460
5797extern int v4l2_subdev_g_ctrl(struct v4l2_subdev *sd , struct v4l2_control *ctrl ) ;
5798#line 461
5799extern int v4l2_subdev_s_ctrl(struct v4l2_subdev *sd , struct v4l2_control *ctrl ) ;
5800#line 46 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/media/video/msp3400-driver.h"
5801int msp_debug ;
5802#line 47 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/media/video/msp3400-driver.h"
5803int msp_once ;
5804#line 48 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/media/video/msp3400-driver.h"
5805int msp_amsound ;
5806#line 49
5807int msp_standard ;
5808#line 50 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/media/video/msp3400-driver.h"
5809int msp_dolby ;
5810#line 51
5811int msp_stereo_thresh ;
5812#line 107 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/media/video/msp3400-driver.h"
5813__inline static struct msp_state *to_state(struct v4l2_subdev *sd )
5814{ struct v4l2_subdev const *__mptr ;
5815 struct msp_state *__cil_tmp3 ;
5816 struct v4l2_subdev *__cil_tmp4 ;
5817 unsigned int __cil_tmp5 ;
5818 char *__cil_tmp6 ;
5819 char *__cil_tmp7 ;
5820
5821 {
5822#line 109
5823 __mptr = (struct v4l2_subdev const *)sd;
5824 {
5825#line 109
5826 __cil_tmp3 = (struct msp_state *)0;
5827#line 109
5828 __cil_tmp4 = & __cil_tmp3->sd;
5829#line 109
5830 __cil_tmp5 = (unsigned int )__cil_tmp4;
5831#line 109
5832 __cil_tmp6 = (char *)__mptr;
5833#line 109
5834 __cil_tmp7 = __cil_tmp6 - __cil_tmp5;
5835#line 109
5836 return ((struct msp_state *)__cil_tmp7);
5837 }
5838}
5839}
5840#line 112 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/media/video/msp3400-driver.h"
5841__inline static struct msp_state *ctrl_to_state(struct v4l2_ctrl *ctrl )
5842{ struct v4l2_ctrl_handler const *__mptr ;
5843 struct v4l2_ctrl_handler *__cil_tmp3 ;
5844 struct msp_state *__cil_tmp4 ;
5845 struct v4l2_ctrl_handler *__cil_tmp5 ;
5846 unsigned int __cil_tmp6 ;
5847 char *__cil_tmp7 ;
5848 char *__cil_tmp8 ;
5849
5850 {
5851#line 114
5852 __cil_tmp3 = ctrl->handler;
5853#line 114
5854 __mptr = (struct v4l2_ctrl_handler const *)__cil_tmp3;
5855 {
5856#line 114
5857 __cil_tmp4 = (struct msp_state *)0;
5858#line 114
5859 __cil_tmp5 = & __cil_tmp4->hdl;
5860#line 114
5861 __cil_tmp6 = (unsigned int )__cil_tmp5;
5862#line 114
5863 __cil_tmp7 = (char *)__mptr;
5864#line 114
5865 __cil_tmp8 = __cil_tmp7 - __cil_tmp6;
5866#line 114
5867 return ((struct msp_state *)__cil_tmp8);
5868 }
5869}
5870}
5871#line 118
5872int msp_write_dem(struct i2c_client *client , int addr , int val ) ;
5873#line 119
5874int msp_write_dsp(struct i2c_client *client , int addr , int val ) ;
5875#line 120
5876int msp_read_dem(struct i2c_client *client , int addr ) ;
5877#line 121
5878int msp_read_dsp(struct i2c_client *client , int addr ) ;
5879#line 122
5880int msp_reset(struct i2c_client *client ) ;
5881#line 123
5882void msp_set_scart(struct i2c_client *client , int in , int out ) ;
5883#line 124
5884void msp_update_volume(struct msp_state *state ) ;
5885#line 125
5886int msp_sleep(struct msp_state *state , int timeout ) ;
5887#line 128
5888char const *msp_standard_std_name(int std ) ;
5889#line 129
5890void msp_set_audmode(struct i2c_client *client ) ;
5891#line 130
5892int msp_detect_stereo(struct i2c_client *client ) ;
5893#line 131
5894int msp3400c_thread(void *data ) ;
5895#line 132
5896int msp3410d_thread(void *data ) ;
5897#line 133
5898int msp34xxg_thread(void *data ) ;
5899#line 134
5900void msp3400c_set_mode(struct i2c_client *client , int mode ) ;
5901#line 135
5902void msp3400c_set_carrier(struct i2c_client *client , int cdo1 , int cdo2 ) ;
5903#line 66 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
5904static char const __mod_description66[57] __attribute__((__used__, __unused__,
5905__section__(".modinfo"), __aligned__(1))) =
5906#line 66 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
5907 { (char const )'d', (char const )'e', (char const )'s', (char const )'c',
5908 (char const )'r', (char const )'i', (char const )'p', (char const )'t',
5909 (char const )'i', (char const )'o', (char const )'n', (char const )'=',
5910 (char const )'d', (char const )'e', (char const )'v', (char const )'i',
5911 (char const )'c', (char const )'e', (char const )' ', (char const )'d',
5912 (char const )'r', (char const )'i', (char const )'v', (char const )'e',
5913 (char const )'r', (char const )' ', (char const )'f', (char const )'o',
5914 (char const )'r', (char const )' ', (char const )'m', (char const )'s',
5915 (char const )'p', (char const )'3', (char const )'4', (char const )'x',
5916 (char const )'x', (char const )' ', (char const )'T', (char const )'V',
5917 (char const )' ', (char const )'s', (char const )'o', (char const )'u',
5918 (char const )'n', (char const )'d', (char const )' ', (char const )'p',
5919 (char const )'r', (char const )'o', (char const )'c', (char const )'e',
5920 (char const )'s', (char const )'s', (char const )'o', (char const )'r',
5921 (char const )'\000'};
5922#line 67 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
5923static char const __mod_author67[18] __attribute__((__used__, __unused__, __section__(".modinfo"),
5924__aligned__(1))) =
5925#line 67
5926 { (char const )'a', (char const )'u', (char const )'t', (char const )'h',
5927 (char const )'o', (char const )'r', (char const )'=', (char const )'G',
5928 (char const )'e', (char const )'r', (char const )'d', (char const )' ',
5929 (char const )'K', (char const )'n', (char const )'o', (char const )'r',
5930 (char const )'r', (char const )'\000'};
5931#line 68 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
5932static char const __mod_license68[12] __attribute__((__used__, __unused__, __section__(".modinfo"),
5933__aligned__(1))) =
5934#line 68
5935 { (char const )'l', (char const )'i', (char const )'c', (char const )'e',
5936 (char const )'n', (char const )'s', (char const )'e', (char const )'=',
5937 (char const )'G', (char const )'P', (char const )'L', (char const )'\000'};
5938#line 71 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
5939static int opmode = -1;
5940#line 76 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
5941int msp_standard = 1;
5942#line 80 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
5943int msp_stereo_thresh = 400;
5944#line 84 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
5945static char const __param_str_opmode[7] = { (char const )'o', (char const )'p', (char const )'m', (char const )'o',
5946 (char const )'d', (char const )'e', (char const )'\000'};
5947#line 84 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
5948static struct kernel_param const __param_opmode __attribute__((__used__, __unused__,
5949__section__("__param"), __aligned__(sizeof(void *)))) = {__param_str_opmode, (struct kernel_param_ops const *)(& param_ops_int), (u16 )292,
5950 (u16 )0, {(void *)(& opmode)}};
5951#line 84 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
5952static char const __mod_opmodetype84[20] __attribute__((__used__, __unused__, __section__(".modinfo"),
5953__aligned__(1))) =
5954#line 84
5955 { (char const )'p', (char const )'a', (char const )'r', (char const )'m',
5956 (char const )'t', (char const )'y', (char const )'p', (char const )'e',
5957 (char const )'=', (char const )'o', (char const )'p', (char const )'m',
5958 (char const )'o', (char const )'d', (char const )'e', (char const )':',
5959 (char const )'i', (char const )'n', (char const )'t', (char const )'\000'};
5960#line 87 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
5961static char const __param_str_once[5] = { (char const )'o', (char const )'n', (char const )'c', (char const )'e',
5962 (char const )'\000'};
5963#line 87 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
5964static struct kernel_param const __param_once __attribute__((__used__, __unused__,
5965__section__("__param"), __aligned__(sizeof(void *)))) = {__param_str_once, (struct kernel_param_ops const *)(& param_ops_bool), (u16 )420,
5966 (u16 )0, {(void *)(& msp_once)}};
5967#line 87 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
5968static char const __mod_oncetype87[19] __attribute__((__used__, __unused__, __section__(".modinfo"),
5969__aligned__(1))) =
5970#line 87
5971 { (char const )'p', (char const )'a', (char const )'r', (char const )'m',
5972 (char const )'t', (char const )'y', (char const )'p', (char const )'e',
5973 (char const )'=', (char const )'o', (char const )'n', (char const )'c',
5974 (char const )'e', (char const )':', (char const )'b', (char const )'o',
5975 (char const )'o', (char const )'l', (char const )'\000'};
5976#line 88 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
5977static char const __param_str_debug[6] = { (char const )'d', (char const )'e', (char const )'b', (char const )'u',
5978 (char const )'g', (char const )'\000'};
5979#line 88 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
5980static struct kernel_param const __param_debug __attribute__((__used__, __unused__,
5981__section__("__param"), __aligned__(sizeof(void *)))) = {__param_str_debug, (struct kernel_param_ops const *)(& param_ops_int), (u16 )420,
5982 (u16 )0, {(void *)(& msp_debug)}};
5983#line 88 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
5984static char const __mod_debugtype88[19] __attribute__((__used__, __unused__, __section__(".modinfo"),
5985__aligned__(1))) =
5986#line 88
5987 { (char const )'p', (char const )'a', (char const )'r', (char const )'m',
5988 (char const )'t', (char const )'y', (char const )'p', (char const )'e',
5989 (char const )'=', (char const )'d', (char const )'e', (char const )'b',
5990 (char const )'u', (char const )'g', (char const )':', (char const )'i',
5991 (char const )'n', (char const )'t', (char const )'\000'};
5992#line 89 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
5993static char const __param_str_stereo_threshold[17] =
5994#line 89
5995 { (char const )'s', (char const )'t', (char const )'e', (char const )'r',
5996 (char const )'e', (char const )'o', (char const )'_', (char const )'t',
5997 (char const )'h', (char const )'r', (char const )'e', (char const )'s',
5998 (char const )'h', (char const )'o', (char const )'l', (char const )'d',
5999 (char const )'\000'};
6000#line 89 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6001static struct kernel_param const __param_stereo_threshold __attribute__((__used__,
6002__unused__, __section__("__param"), __aligned__(sizeof(void *)))) = {__param_str_stereo_threshold, (struct kernel_param_ops const *)(& param_ops_int),
6003 (u16 )420, (u16 )0, {(void *)(& msp_stereo_thresh)}};
6004#line 89 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6005static char const __mod_stereo_thresholdtype89[30] __attribute__((__used__, __unused__,
6006__section__(".modinfo"), __aligned__(1))) =
6007#line 89
6008 { (char const )'p', (char const )'a', (char const )'r', (char const )'m',
6009 (char const )'t', (char const )'y', (char const )'p', (char const )'e',
6010 (char const )'=', (char const )'s', (char const )'t', (char const )'e',
6011 (char const )'r', (char const )'e', (char const )'o', (char const )'_',
6012 (char const )'t', (char const )'h', (char const )'r', (char const )'e',
6013 (char const )'s', (char const )'h', (char const )'o', (char const )'l',
6014 (char const )'d', (char const )':', (char const )'i', (char const )'n',
6015 (char const )'t', (char const )'\000'};
6016#line 90 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6017static char const __param_str_standard[9] =
6018#line 90
6019 { (char const )'s', (char const )'t', (char const )'a', (char const )'n',
6020 (char const )'d', (char const )'a', (char const )'r', (char const )'d',
6021 (char const )'\000'};
6022#line 90 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6023static struct kernel_param const __param_standard __attribute__((__used__, __unused__,
6024__section__("__param"), __aligned__(sizeof(void *)))) = {__param_str_standard, (struct kernel_param_ops const *)(& param_ops_int), (u16 )420,
6025 (u16 )0, {(void *)(& msp_standard)}};
6026#line 90 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6027static char const __mod_standardtype90[22] __attribute__((__used__, __unused__,
6028__section__(".modinfo"), __aligned__(1))) =
6029#line 90
6030 { (char const )'p', (char const )'a', (char const )'r', (char const )'m',
6031 (char const )'t', (char const )'y', (char const )'p', (char const )'e',
6032 (char const )'=', (char const )'s', (char const )'t', (char const )'a',
6033 (char const )'n', (char const )'d', (char const )'a', (char const )'r',
6034 (char const )'d', (char const )':', (char const )'i', (char const )'n',
6035 (char const )'t', (char const )'\000'};
6036#line 91 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6037static char const __param_str_amsound[8] =
6038#line 91
6039 { (char const )'a', (char const )'m', (char const )'s', (char const )'o',
6040 (char const )'u', (char const )'n', (char const )'d', (char const )'\000'};
6041#line 91 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6042static struct kernel_param const __param_amsound __attribute__((__used__, __unused__,
6043__section__("__param"), __aligned__(sizeof(void *)))) = {__param_str_amsound, (struct kernel_param_ops const *)(& param_ops_bool), (u16 )420,
6044 (u16 )0, {(void *)(& msp_amsound)}};
6045#line 91 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6046static char const __mod_amsoundtype91[22] __attribute__((__used__, __unused__,
6047__section__(".modinfo"), __aligned__(1))) =
6048#line 91
6049 { (char const )'p', (char const )'a', (char const )'r', (char const )'m',
6050 (char const )'t', (char const )'y', (char const )'p', (char const )'e',
6051 (char const )'=', (char const )'a', (char const )'m', (char const )'s',
6052 (char const )'o', (char const )'u', (char const )'n', (char const )'d',
6053 (char const )':', (char const )'b', (char const )'o', (char const )'o',
6054 (char const )'l', (char const )'\000'};
6055#line 92 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6056static char const __param_str_dolby[6] = { (char const )'d', (char const )'o', (char const )'l', (char const )'b',
6057 (char const )'y', (char const )'\000'};
6058#line 92 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6059static struct kernel_param const __param_dolby __attribute__((__used__, __unused__,
6060__section__("__param"), __aligned__(sizeof(void *)))) = {__param_str_dolby, (struct kernel_param_ops const *)(& param_ops_bool), (u16 )420,
6061 (u16 )0, {(void *)(& msp_dolby)}};
6062#line 92 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6063static char const __mod_dolbytype92[20] __attribute__((__used__, __unused__, __section__(".modinfo"),
6064__aligned__(1))) =
6065#line 92
6066 { (char const )'p', (char const )'a', (char const )'r', (char const )'m',
6067 (char const )'t', (char const )'y', (char const )'p', (char const )'e',
6068 (char const )'=', (char const )'d', (char const )'o', (char const )'l',
6069 (char const )'b', (char const )'y', (char const )':', (char const )'b',
6070 (char const )'o', (char const )'o', (char const )'l', (char const )'\000'};
6071#line 94 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6072static char const __mod_opmode94[89] __attribute__((__used__, __unused__, __section__(".modinfo"),
6073__aligned__(1))) =
6074#line 94
6075 { (char const )'p', (char const )'a', (char const )'r', (char const )'m',
6076 (char const )'=', (char const )'o', (char const )'p', (char const )'m',
6077 (char const )'o', (char const )'d', (char const )'e', (char const )':',
6078 (char const )'F', (char const )'o', (char const )'r', (char const )'c',
6079 (char const )'e', (char const )'s', (char const )' ', (char const )'a',
6080 (char const )' ', (char const )'M', (char const )'S', (char const )'P',
6081 (char const )'3', (char const )'4', (char const )'0', (char const )'0',
6082 (char const )' ', (char const )'o', (char const )'p', (char const )'m',
6083 (char const )'o', (char const )'d', (char const )'e', (char const )'.',
6084 (char const )' ', (char const )'0', (char const )'=', (char const )'M',
6085 (char const )'a', (char const )'n', (char const )'u', (char const )'a',
6086 (char const )'l', (char const )',', (char const )' ', (char const )'1',
6087 (char const )'=', (char const )'A', (char const )'u', (char const )'t',
6088 (char const )'o', (char const )'d', (char const )'e', (char const )'t',
6089 (char const )'e', (char const )'c', (char const )'t', (char const )',',
6090 (char const )' ', (char const )'2', (char const )'=', (char const )'A',
6091 (char const )'u', (char const )'t', (char const )'o', (char const )'d',
6092 (char const )'e', (char const )'t', (char const )'e', (char const )'c',
6093 (char const )'t', (char const )' ', (char const )'a', (char const )'n',
6094 (char const )'d', (char const )' ', (char const )'a', (char const )'u',
6095 (char const )'t', (char const )'o', (char const )'s', (char const )'e',
6096 (char const )'l', (char const )'e', (char const )'c', (char const )'t',
6097 (char const )'\000'};
6098#line 95 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6099static char const __mod_once95[42] __attribute__((__used__, __unused__, __section__(".modinfo"),
6100__aligned__(1))) =
6101#line 95
6102 { (char const )'p', (char const )'a', (char const )'r', (char const )'m',
6103 (char const )'=', (char const )'o', (char const )'n', (char const )'c',
6104 (char const )'e', (char const )':', (char const )'N', (char const )'o',
6105 (char const )' ', (char const )'c', (char const )'o', (char const )'n',
6106 (char const )'t', (char const )'i', (char const )'n', (char const )'u',
6107 (char const )'o', (char const )'u', (char const )'s', (char const )' ',
6108 (char const )'s', (char const )'t', (char const )'e', (char const )'r',
6109 (char const )'e', (char const )'o', (char const )' ', (char const )'m',
6110 (char const )'o', (char const )'n', (char const )'i', (char const )'t',
6111 (char const )'o', (char const )'r', (char const )'i', (char const )'n',
6112 (char const )'g', (char const )'\000'};
6113#line 96 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6114static char const __mod_debug96[39] __attribute__((__used__, __unused__, __section__(".modinfo"),
6115__aligned__(1))) =
6116#line 96
6117 { (char const )'p', (char const )'a', (char const )'r', (char const )'m',
6118 (char const )'=', (char const )'d', (char const )'e', (char const )'b',
6119 (char const )'u', (char const )'g', (char const )':', (char const )'E',
6120 (char const )'n', (char const )'a', (char const )'b', (char const )'l',
6121 (char const )'e', (char const )' ', (char const )'d', (char const )'e',
6122 (char const )'b', (char const )'u', (char const )'g', (char const )' ',
6123 (char const )'m', (char const )'e', (char const )'s', (char const )'s',
6124 (char const )'a', (char const )'g', (char const )'e', (char const )'s',
6125 (char const )' ', (char const )'[', (char const )'0', (char const )'-',
6126 (char const )'3', (char const )']', (char const )'\000'};
6127#line 97 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6128static char const __mod_stereo_threshold97[63] __attribute__((__used__, __unused__,
6129__section__(".modinfo"), __aligned__(1))) =
6130#line 97
6131 { (char const )'p', (char const )'a', (char const )'r', (char const )'m',
6132 (char const )'=', (char const )'s', (char const )'t', (char const )'e',
6133 (char const )'r', (char const )'e', (char const )'o', (char const )'_',
6134 (char const )'t', (char const )'h', (char const )'r', (char const )'e',
6135 (char const )'s', (char const )'h', (char const )'o', (char const )'l',
6136 (char const )'d', (char const )':', (char const )'S', (char const )'e',
6137 (char const )'t', (char const )'s', (char const )' ', (char const )'s',
6138 (char const )'i', (char const )'g', (char const )'n', (char const )'a',
6139 (char const )'l', (char const )' ', (char const )'t', (char const )'h',
6140 (char const )'r', (char const )'e', (char const )'s', (char const )'h',
6141 (char const )'o', (char const )'l', (char const )'d', (char const )' ',
6142 (char const )'t', (char const )'o', (char const )' ', (char const )'a',
6143 (char const )'c', (char const )'t', (char const )'i', (char const )'v',
6144 (char const )'a', (char const )'t', (char const )'e', (char const )' ',
6145 (char const )'s', (char const )'t', (char const )'e', (char const )'r',
6146 (char const )'e', (char const )'o', (char const )'\000'};
6147#line 98 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6148static char const __mod_standard98[81] __attribute__((__used__, __unused__, __section__(".modinfo"),
6149__aligned__(1))) =
6150#line 98
6151 { (char const )'p', (char const )'a', (char const )'r', (char const )'m',
6152 (char const )'=', (char const )'s', (char const )'t', (char const )'a',
6153 (char const )'n', (char const )'d', (char const )'a', (char const )'r',
6154 (char const )'d', (char const )':', (char const )'S', (char const )'p',
6155 (char const )'e', (char const )'c', (char const )'i', (char const )'f',
6156 (char const )'y', (char const )' ', (char const )'a', (char const )'u',
6157 (char const )'d', (char const )'i', (char const )'o', (char const )' ',
6158 (char const )'s', (char const )'t', (char const )'a', (char const )'n',
6159 (char const )'d', (char const )'a', (char const )'r', (char const )'d',
6160 (char const )':', (char const )' ', (char const )'3', (char const )'2',
6161 (char const )' ', (char const )'=', (char const )' ', (char const )'N',
6162 (char const )'T', (char const )'S', (char const )'C', (char const )',',
6163 (char const )' ', (char const )'6', (char const )'4', (char const )' ',
6164 (char const )'=', (char const )' ', (char const )'r', (char const )'a',
6165 (char const )'d', (char const )'i', (char const )'o', (char const )',',
6166 (char const )' ', (char const )'D', (char const )'e', (char const )'f',
6167 (char const )'a', (char const )'u', (char const )'l', (char const )'t',
6168 (char const )':', (char const )' ', (char const )'A', (char const )'u',
6169 (char const )'t', (char const )'o', (char const )'d', (char const )'e',
6170 (char const )'t', (char const )'e', (char const )'c', (char const )'t',
6171 (char const )'\000'};
6172#line 99 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6173static char const __mod_amsound99[66] __attribute__((__used__, __unused__, __section__(".modinfo"),
6174__aligned__(1))) =
6175#line 99
6176 { (char const )'p', (char const )'a', (char const )'r', (char const )'m',
6177 (char const )'=', (char const )'a', (char const )'m', (char const )'s',
6178 (char const )'o', (char const )'u', (char const )'n', (char const )'d',
6179 (char const )':', (char const )'H', (char const )'a', (char const )'r',
6180 (char const )'d', (char const )'w', (char const )'i', (char const )'r',
6181 (char const )'e', (char const )' ', (char const )'A', (char const )'M',
6182 (char const )' ', (char const )'s', (char const )'o', (char const )'u',
6183 (char const )'n', (char const )'d', (char const )' ', (char const )'a',
6184 (char const )'t', (char const )' ', (char const )'6', (char const )'.',
6185 (char const )'5', (char const )'H', (char const )'z', (char const )' ',
6186 (char const )'(', (char const )'F', (char const )'r', (char const )'a',
6187 (char const )'n', (char const )'c', (char const )'e', (char const )')',
6188 (char const )',', (char const )' ', (char const )'F', (char const )'M',
6189 (char const )' ', (char const )'c', (char const )'a', (char const )'n',
6190 (char const )' ', (char const )'a', (char const )'u', (char const )'t',
6191 (char const )'o', (char const )'s', (char const )'c', (char const )'a',
6192 (char const )'n', (char const )'\000'};
6193#line 100 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6194static char const __mod_dolby100[38] __attribute__((__used__, __unused__, __section__(".modinfo"),
6195__aligned__(1))) =
6196#line 100
6197 { (char const )'p', (char const )'a', (char const )'r', (char const )'m',
6198 (char const )'=', (char const )'d', (char const )'o', (char const )'l',
6199 (char const )'b', (char const )'y', (char const )':', (char const )'A',
6200 (char const )'c', (char const )'t', (char const )'i', (char const )'v',
6201 (char const )'a', (char const )'t', (char const )'e', (char const )'s',
6202 (char const )' ', (char const )'D', (char const )'o', (char const )'l',
6203 (char const )'b', (char const )'y', (char const )' ', (char const )'p',
6204 (char const )'r', (char const )'o', (char const )'c', (char const )'e',
6205 (char const )'s', (char const )'s', (char const )'i', (char const )'n',
6206 (char const )'g', (char const )'\000'};
6207#line 118 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6208static u8 reset_off[3] = { (u8 )0, (u8 )128, (u8 )0};
6209#line 119 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6210static u8 reset_on[3] = { (u8 )0, (u8 )0, (u8 )0};
6211#line 120 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6212static u8 write[3] = { (u8 )19, (u8 )0, (u8 )30};
6213#line 115 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6214int msp_reset(struct i2c_client *client )
6215{ u8 read[2] ;
6216 struct i2c_msg reset[2] ;
6217 struct i2c_msg test[2] ;
6218 int tmp___7 ;
6219 int tmp___8 ;
6220 int tmp___9 ;
6221 int tmp___10 ;
6222 int tmp___11 ;
6223 struct i2c_adapter *__cil_tmp10 ;
6224 struct i2c_driver *__cil_tmp11 ;
6225 char const *__cil_tmp12 ;
6226 unsigned short __cil_tmp13 ;
6227 int __cil_tmp14 ;
6228 struct i2c_adapter *__cil_tmp15 ;
6229 struct i2c_msg *__cil_tmp16 ;
6230 struct i2c_adapter *__cil_tmp17 ;
6231 struct i2c_driver *__cil_tmp18 ;
6232 char const *__cil_tmp19 ;
6233 unsigned short __cil_tmp20 ;
6234 int __cil_tmp21 ;
6235 struct i2c_adapter *__cil_tmp22 ;
6236 struct i2c_msg *__cil_tmp23 ;
6237 struct i2c_adapter *__cil_tmp24 ;
6238 struct i2c_driver *__cil_tmp25 ;
6239 char const *__cil_tmp26 ;
6240 unsigned short __cil_tmp27 ;
6241 int __cil_tmp28 ;
6242 struct i2c_adapter *__cil_tmp29 ;
6243 struct i2c_msg *__cil_tmp30 ;
6244 struct i2c_adapter *__cil_tmp31 ;
6245 struct i2c_driver *__cil_tmp32 ;
6246 char const *__cil_tmp33 ;
6247 unsigned short __cil_tmp34 ;
6248 int __cil_tmp35 ;
6249
6250 {
6251#line 122
6252 reset[0].addr = client->addr;
6253#line 122
6254 reset[0].flags = (__u16 )4096;
6255#line 122
6256 reset[0].len = (__u16 )3;
6257#line 122
6258 reset[0].buf = & reset_off[0];
6259#line 122
6260 reset[1].addr = client->addr;
6261#line 122
6262 reset[1].flags = (__u16 )4096;
6263#line 122
6264 reset[1].len = (__u16 )3;
6265#line 122
6266 reset[1].buf = & reset_on[0];
6267#line 126
6268 test[0].addr = client->addr;
6269#line 126
6270 test[0].flags = (__u16 )0;
6271#line 126
6272 test[0].len = (__u16 )3;
6273#line 126
6274 test[0].buf = & write[0];
6275#line 126
6276 test[1].addr = client->addr;
6277#line 126
6278 test[1].flags = (__u16 )1;
6279#line 126
6280 test[1].len = (__u16 )2;
6281#line 126
6282 test[1].buf = & read[0];
6283 {
6284#line 131
6285 while (1) {
6286 while_continue: ;
6287
6288#line 131
6289 if (msp_debug >= 3) {
6290 {
6291#line 131
6292 __cil_tmp10 = client->adapter;
6293#line 131
6294 tmp___7 = i2c_adapter_id(__cil_tmp10);
6295#line 131
6296 __cil_tmp11 = client->driver;
6297#line 131
6298 __cil_tmp12 = __cil_tmp11->driver.name;
6299#line 131
6300 __cil_tmp13 = client->addr;
6301#line 131
6302 __cil_tmp14 = (int )__cil_tmp13;
6303#line 131
6304 printk("<7>%s %d-%04x: msp_reset\n", __cil_tmp12, tmp___7, __cil_tmp14);
6305 }
6306 } else {
6307
6308 }
6309#line 131
6310 goto while_break;
6311 }
6312 while_break___0: ;
6313 }
6314
6315 while_break:
6316 {
6317#line 132
6318 __cil_tmp15 = client->adapter;
6319#line 132
6320 __cil_tmp16 = & reset[0];
6321#line 132
6322 tmp___9 = i2c_transfer(__cil_tmp15, __cil_tmp16, 1);
6323 }
6324#line 132
6325 if (tmp___9 != 1) {
6326 {
6327#line 135
6328 __cil_tmp17 = client->adapter;
6329#line 135
6330 tmp___8 = i2c_adapter_id(__cil_tmp17);
6331#line 135
6332 __cil_tmp18 = client->driver;
6333#line 135
6334 __cil_tmp19 = __cil_tmp18->driver.name;
6335#line 135
6336 __cil_tmp20 = client->addr;
6337#line 135
6338 __cil_tmp21 = (int )__cil_tmp20;
6339#line 135
6340 printk("<3>%s %d-%04x: chip reset failed\n", __cil_tmp19, tmp___8, __cil_tmp21);
6341 }
6342#line 136
6343 return (-1);
6344 } else {
6345 {
6346#line 132
6347 __cil_tmp22 = client->adapter;
6348#line 132
6349 __cil_tmp23 = & reset[1];
6350#line 132
6351 tmp___10 = i2c_transfer(__cil_tmp22, __cil_tmp23, 1);
6352 }
6353#line 132
6354 if (tmp___10 != 1) {
6355 {
6356#line 135
6357 __cil_tmp24 = client->adapter;
6358#line 135
6359 tmp___8 = i2c_adapter_id(__cil_tmp24);
6360#line 135
6361 __cil_tmp25 = client->driver;
6362#line 135
6363 __cil_tmp26 = __cil_tmp25->driver.name;
6364#line 135
6365 __cil_tmp27 = client->addr;
6366#line 135
6367 __cil_tmp28 = (int )__cil_tmp27;
6368#line 135
6369 printk("<3>%s %d-%04x: chip reset failed\n", __cil_tmp26, tmp___8, __cil_tmp28);
6370 }
6371#line 136
6372 return (-1);
6373 } else {
6374 {
6375#line 132
6376 __cil_tmp29 = client->adapter;
6377#line 132
6378 __cil_tmp30 = & test[0];
6379#line 132
6380 tmp___11 = i2c_transfer(__cil_tmp29, __cil_tmp30, 2);
6381 }
6382#line 132
6383 if (tmp___11 != 2) {
6384 {
6385#line 135
6386 __cil_tmp31 = client->adapter;
6387#line 135
6388 tmp___8 = i2c_adapter_id(__cil_tmp31);
6389#line 135
6390 __cil_tmp32 = client->driver;
6391#line 135
6392 __cil_tmp33 = __cil_tmp32->driver.name;
6393#line 135
6394 __cil_tmp34 = client->addr;
6395#line 135
6396 __cil_tmp35 = (int )__cil_tmp34;
6397#line 135
6398 printk("<3>%s %d-%04x: chip reset failed\n", __cil_tmp33, tmp___8, __cil_tmp35);
6399 }
6400#line 136
6401 return (-1);
6402 } else {
6403
6404 }
6405 }
6406 }
6407#line 138
6408 return (0);
6409}
6410}
6411#line 141 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6412static int msp_read(struct i2c_client *client , int dev , int addr )
6413{ int err ;
6414 int retval ;
6415 u8 write___0[3] ;
6416 u8 read[2] ;
6417 struct i2c_msg msgs[2] ;
6418 int tmp___7 ;
6419 int tmp___8 ;
6420 unsigned long tmp___9 ;
6421 int tmp___10 ;
6422 int tmp___11 ;
6423 int __cil_tmp14 ;
6424 int __cil_tmp15 ;
6425 int __cil_tmp16 ;
6426 struct i2c_adapter *__cil_tmp17 ;
6427 struct i2c_msg *__cil_tmp18 ;
6428 struct i2c_adapter *__cil_tmp19 ;
6429 struct i2c_driver *__cil_tmp20 ;
6430 char const *__cil_tmp21 ;
6431 unsigned short __cil_tmp22 ;
6432 int __cil_tmp23 ;
6433 unsigned int __cil_tmp24 ;
6434 unsigned int __cil_tmp25 ;
6435 long __cil_tmp26 ;
6436 struct i2c_adapter *__cil_tmp27 ;
6437 struct i2c_driver *__cil_tmp28 ;
6438 char const *__cil_tmp29 ;
6439 unsigned short __cil_tmp30 ;
6440 int __cil_tmp31 ;
6441 int __cil_tmp32 ;
6442 int __cil_tmp33 ;
6443 int __cil_tmp34 ;
6444 struct i2c_adapter *__cil_tmp35 ;
6445 struct i2c_driver *__cil_tmp36 ;
6446 char const *__cil_tmp37 ;
6447 unsigned short __cil_tmp38 ;
6448 int __cil_tmp39 ;
6449
6450 {
6451#line 146
6452 msgs[0].addr = client->addr;
6453#line 146
6454 msgs[0].flags = (__u16 )0;
6455#line 146
6456 msgs[0].len = (__u16 )3;
6457#line 146
6458 msgs[0].buf = & write___0[0];
6459#line 146
6460 msgs[1].addr = client->addr;
6461#line 146
6462 msgs[1].flags = (__u16 )1;
6463#line 146
6464 msgs[1].len = (__u16 )2;
6465#line 146
6466 msgs[1].buf = & read[0];
6467#line 151
6468 __cil_tmp14 = dev + 1;
6469#line 151
6470 write___0[0] = (u8 )__cil_tmp14;
6471#line 152
6472 __cil_tmp15 = addr >> 8;
6473#line 152
6474 write___0[1] = (u8 )__cil_tmp15;
6475#line 153
6476 __cil_tmp16 = addr & 255;
6477#line 153
6478 write___0[2] = (u8 )__cil_tmp16;
6479#line 155
6480 err = 0;
6481 {
6482#line 155
6483 while (1) {
6484 while_continue: ;
6485
6486#line 155
6487 if (err < 3) {
6488
6489 } else {
6490#line 155
6491 goto while_break;
6492 }
6493 {
6494#line 156
6495 __cil_tmp17 = client->adapter;
6496#line 156
6497 __cil_tmp18 = & msgs[0];
6498#line 156
6499 tmp___7 = i2c_transfer(__cil_tmp17, __cil_tmp18, 2);
6500 }
6501#line 156
6502 if (tmp___7 == 2) {
6503#line 157
6504 goto while_break;
6505 } else {
6506
6507 }
6508 {
6509#line 158
6510 __cil_tmp19 = client->adapter;
6511#line 158
6512 tmp___8 = i2c_adapter_id(__cil_tmp19);
6513#line 158
6514 __cil_tmp20 = client->driver;
6515#line 158
6516 __cil_tmp21 = __cil_tmp20->driver.name;
6517#line 158
6518 __cil_tmp22 = client->addr;
6519#line 158
6520 __cil_tmp23 = (int )__cil_tmp22;
6521#line 158
6522 printk("<4>%s %d-%04x: I/O error #%d (read 0x%02x/0x%02x)\n", __cil_tmp21, tmp___8,
6523 __cil_tmp23, err, dev, addr);
6524#line 160
6525 __cil_tmp24 = (unsigned int const )10;
6526#line 160
6527 __cil_tmp25 = (unsigned int )__cil_tmp24;
6528#line 160
6529 tmp___9 = msecs_to_jiffies(__cil_tmp25);
6530#line 160
6531 __cil_tmp26 = (long )tmp___9;
6532#line 160
6533 schedule_timeout_interruptible(__cil_tmp26);
6534#line 155
6535 err = err + 1;
6536 }
6537 }
6538 while_break___1: ;
6539 }
6540
6541 while_break: ;
6542#line 162
6543 if (err == 3) {
6544 {
6545#line 163
6546 __cil_tmp27 = client->adapter;
6547#line 163
6548 tmp___10 = i2c_adapter_id(__cil_tmp27);
6549#line 163
6550 __cil_tmp28 = client->driver;
6551#line 163
6552 __cil_tmp29 = __cil_tmp28->driver.name;
6553#line 163
6554 __cil_tmp30 = client->addr;
6555#line 163
6556 __cil_tmp31 = (int )__cil_tmp30;
6557#line 163
6558 printk("<4>%s %d-%04x: resetting chip, sound will go off.\n", __cil_tmp29, tmp___10,
6559 __cil_tmp31);
6560#line 164
6561 msp_reset(client);
6562 }
6563#line 165
6564 return (-1);
6565 } else {
6566
6567 }
6568#line 167
6569 __cil_tmp32 = (int )read[1];
6570#line 167
6571 __cil_tmp33 = (int )read[0];
6572#line 167
6573 __cil_tmp34 = __cil_tmp33 << 8;
6574#line 167
6575 retval = __cil_tmp34 | __cil_tmp32;
6576 {
6577#line 168
6578 while (1) {
6579 while_continue___0: ;
6580
6581#line 168
6582 if (msp_debug >= 3) {
6583 {
6584#line 168
6585 __cil_tmp35 = client->adapter;
6586#line 168
6587 tmp___11 = i2c_adapter_id(__cil_tmp35);
6588#line 168
6589 __cil_tmp36 = client->driver;
6590#line 168
6591 __cil_tmp37 = __cil_tmp36->driver.name;
6592#line 168
6593 __cil_tmp38 = client->addr;
6594#line 168
6595 __cil_tmp39 = (int )__cil_tmp38;
6596#line 168
6597 printk("<7>%s %d-%04x: msp_read(0x%x, 0x%x): 0x%x\n", __cil_tmp37, tmp___11,
6598 __cil_tmp39, dev, addr, retval);
6599 }
6600 } else {
6601
6602 }
6603#line 168
6604 goto while_break___0;
6605 }
6606 while_break___2: ;
6607 }
6608
6609 while_break___0: ;
6610#line 170
6611 return (retval);
6612}
6613}
6614#line 173 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6615int msp_read_dem(struct i2c_client *client , int addr )
6616{ int tmp___7 ;
6617
6618 {
6619 {
6620#line 175
6621 tmp___7 = msp_read(client, 16, addr);
6622 }
6623#line 175
6624 return (tmp___7);
6625}
6626}
6627#line 178 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6628int msp_read_dsp(struct i2c_client *client , int addr )
6629{ int tmp___7 ;
6630
6631 {
6632 {
6633#line 180
6634 tmp___7 = msp_read(client, 18, addr);
6635 }
6636#line 180
6637 return (tmp___7);
6638}
6639}
6640#line 183 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6641static int msp_write(struct i2c_client *client , int dev , int addr , int val )
6642{ int err ;
6643 u8 buffer[5] ;
6644 int tmp___7 ;
6645 int tmp___8 ;
6646 int tmp___9 ;
6647 unsigned long tmp___10 ;
6648 int tmp___11 ;
6649 int __cil_tmp12 ;
6650 int __cil_tmp13 ;
6651 int __cil_tmp14 ;
6652 int __cil_tmp15 ;
6653 struct i2c_adapter *__cil_tmp16 ;
6654 struct i2c_driver *__cil_tmp17 ;
6655 char const *__cil_tmp18 ;
6656 unsigned short __cil_tmp19 ;
6657 int __cil_tmp20 ;
6658 struct i2c_client const *__cil_tmp21 ;
6659 u8 *__cil_tmp22 ;
6660 char const *__cil_tmp23 ;
6661 struct i2c_adapter *__cil_tmp24 ;
6662 struct i2c_driver *__cil_tmp25 ;
6663 char const *__cil_tmp26 ;
6664 unsigned short __cil_tmp27 ;
6665 int __cil_tmp28 ;
6666 unsigned int __cil_tmp29 ;
6667 unsigned int __cil_tmp30 ;
6668 long __cil_tmp31 ;
6669 struct i2c_adapter *__cil_tmp32 ;
6670 struct i2c_driver *__cil_tmp33 ;
6671 char const *__cil_tmp34 ;
6672 unsigned short __cil_tmp35 ;
6673 int __cil_tmp36 ;
6674
6675 {
6676#line 188
6677 buffer[0] = (u8 )dev;
6678#line 189
6679 __cil_tmp12 = addr >> 8;
6680#line 189
6681 buffer[1] = (u8 )__cil_tmp12;
6682#line 190
6683 __cil_tmp13 = addr & 255;
6684#line 190
6685 buffer[2] = (u8 )__cil_tmp13;
6686#line 191
6687 __cil_tmp14 = val >> 8;
6688#line 191
6689 buffer[3] = (u8 )__cil_tmp14;
6690#line 192
6691 __cil_tmp15 = val & 255;
6692#line 192
6693 buffer[4] = (u8 )__cil_tmp15;
6694 {
6695#line 194
6696 while (1) {
6697 while_continue: ;
6698
6699#line 194
6700 if (msp_debug >= 3) {
6701 {
6702#line 194
6703 __cil_tmp16 = client->adapter;
6704#line 194
6705 tmp___7 = i2c_adapter_id(__cil_tmp16);
6706#line 194
6707 __cil_tmp17 = client->driver;
6708#line 194
6709 __cil_tmp18 = __cil_tmp17->driver.name;
6710#line 194
6711 __cil_tmp19 = client->addr;
6712#line 194
6713 __cil_tmp20 = (int )__cil_tmp19;
6714#line 194
6715 printk("<7>%s %d-%04x: msp_write(0x%x, 0x%x, 0x%x)\n", __cil_tmp18, tmp___7,
6716 __cil_tmp20, dev, addr, val);
6717 }
6718 } else {
6719
6720 }
6721#line 194
6722 goto while_break;
6723 }
6724 while_break___1: ;
6725 }
6726
6727 while_break:
6728#line 196
6729 err = 0;
6730 {
6731#line 196
6732 while (1) {
6733 while_continue___0: ;
6734
6735#line 196
6736 if (err < 3) {
6737
6738 } else {
6739#line 196
6740 goto while_break___0;
6741 }
6742 {
6743#line 197
6744 __cil_tmp21 = (struct i2c_client const *)client;
6745#line 197
6746 __cil_tmp22 = & buffer[0];
6747#line 197
6748 __cil_tmp23 = (char const *)__cil_tmp22;
6749#line 197
6750 tmp___8 = i2c_master_send(__cil_tmp21, __cil_tmp23, 5);
6751 }
6752#line 197
6753 if (tmp___8 == 5) {
6754#line 198
6755 goto while_break___0;
6756 } else {
6757
6758 }
6759 {
6760#line 199
6761 __cil_tmp24 = client->adapter;
6762#line 199
6763 tmp___9 = i2c_adapter_id(__cil_tmp24);
6764#line 199
6765 __cil_tmp25 = client->driver;
6766#line 199
6767 __cil_tmp26 = __cil_tmp25->driver.name;
6768#line 199
6769 __cil_tmp27 = client->addr;
6770#line 199
6771 __cil_tmp28 = (int )__cil_tmp27;
6772#line 199
6773 printk("<4>%s %d-%04x: I/O error #%d (write 0x%02x/0x%02x)\n", __cil_tmp26, tmp___9,
6774 __cil_tmp28, err, dev, addr);
6775#line 201
6776 __cil_tmp29 = (unsigned int const )10;
6777#line 201
6778 __cil_tmp30 = (unsigned int )__cil_tmp29;
6779#line 201
6780 tmp___10 = msecs_to_jiffies(__cil_tmp30);
6781#line 201
6782 __cil_tmp31 = (long )tmp___10;
6783#line 201
6784 schedule_timeout_interruptible(__cil_tmp31);
6785#line 196
6786 err = err + 1;
6787 }
6788 }
6789 while_break___2: ;
6790 }
6791
6792 while_break___0: ;
6793#line 203
6794 if (err == 3) {
6795 {
6796#line 204
6797 __cil_tmp32 = client->adapter;
6798#line 204
6799 tmp___11 = i2c_adapter_id(__cil_tmp32);
6800#line 204
6801 __cil_tmp33 = client->driver;
6802#line 204
6803 __cil_tmp34 = __cil_tmp33->driver.name;
6804#line 204
6805 __cil_tmp35 = client->addr;
6806#line 204
6807 __cil_tmp36 = (int )__cil_tmp35;
6808#line 204
6809 printk("<4>%s %d-%04x: resetting chip, sound will go off.\n", __cil_tmp34, tmp___11,
6810 __cil_tmp36);
6811#line 205
6812 msp_reset(client);
6813 }
6814#line 206
6815 return (-1);
6816 } else {
6817
6818 }
6819#line 208
6820 return (0);
6821}
6822}
6823#line 211 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6824int msp_write_dem(struct i2c_client *client , int addr , int val )
6825{ int tmp___7 ;
6826
6827 {
6828 {
6829#line 213
6830 tmp___7 = msp_write(client, 16, addr, val);
6831 }
6832#line 213
6833 return (tmp___7);
6834}
6835}
6836#line 216 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6837int msp_write_dsp(struct i2c_client *client , int addr , int val )
6838{ int tmp___7 ;
6839
6840 {
6841 {
6842#line 218
6843 tmp___7 = msp_write(client, 18, addr, val);
6844 }
6845#line 218
6846 return (tmp___7);
6847}
6848}
6849#line 248 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6850static int scarts[3][9] = { { 800, 0, 512, 768,
6851 32, -1, -1, 256,
6852 800},
6853 { 3136, 1088, 1024, 0,
6854 2112, 3072, 64, 2048,
6855 3136},
6856 { 12416, 4096, 4224, 8320,
6857 12416, 0, 128, 8192,
6858 12288}};
6859#line 258 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6860static char *scart_names[8] =
6861#line 258
6862 { (char *)"in1", (char *)"in2", (char *)"in3", (char *)"in4",
6863 (char *)"in1 da", (char *)"in2 da", (char *)"mono", (char *)"mute"};
6864#line 262 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6865void msp_set_scart(struct i2c_client *client , int in , int out )
6866{ struct msp_state *state ;
6867 void *tmp___7 ;
6868 struct msp_state *tmp___8 ;
6869 int tmp___9 ;
6870 struct i2c_client const *__cil_tmp8 ;
6871 struct v4l2_subdev *__cil_tmp9 ;
6872 int __cil_tmp10 ;
6873 int __cil_tmp11 ;
6874 int __cil_tmp12 ;
6875 struct i2c_adapter *__cil_tmp13 ;
6876 struct i2c_driver *__cil_tmp14 ;
6877 char const *__cil_tmp15 ;
6878 unsigned short __cil_tmp16 ;
6879 int __cil_tmp17 ;
6880 int __cil_tmp18 ;
6881 int __cil_tmp19 ;
6882 int __cil_tmp20 ;
6883
6884 {
6885 {
6886#line 264
6887 __cil_tmp8 = (struct i2c_client const *)client;
6888#line 264
6889 tmp___7 = i2c_get_clientdata(__cil_tmp8);
6890#line 264
6891 __cil_tmp9 = (struct v4l2_subdev *)tmp___7;
6892#line 264
6893 tmp___8 = to_state(__cil_tmp9);
6894#line 264
6895 state = tmp___8;
6896#line 266
6897 state->in_scart = in;
6898 }
6899#line 268
6900 if (in >= 0) {
6901#line 268
6902 if (in <= 7) {
6903#line 268
6904 if (out >= 0) {
6905#line 268
6906 if (out <= 2) {
6907#line 269
6908 if (-1 == scarts[out][in + 1]) {
6909#line 270
6910 return;
6911 } else {
6912
6913 }
6914#line 272
6915 __cil_tmp10 = ~ scarts[out][0];
6916#line 272
6917 __cil_tmp11 = state->acb;
6918#line 272
6919 state->acb = __cil_tmp11 & __cil_tmp10;
6920#line 273
6921 __cil_tmp12 = state->acb;
6922#line 273
6923 state->acb = __cil_tmp12 | scarts[out][in + 1];
6924 } else {
6925#line 275
6926 state->acb = 3936;
6927 }
6928 } else {
6929#line 275
6930 state->acb = 3936;
6931 }
6932 } else {
6933#line 275
6934 state->acb = 3936;
6935 }
6936 } else {
6937#line 275
6938 state->acb = 3936;
6939 }
6940 {
6941#line 277
6942 while (1) {
6943 while_continue: ;
6944
6945#line 277
6946 if (msp_debug >= 1) {
6947 {
6948#line 277
6949 __cil_tmp13 = client->adapter;
6950#line 277
6951 tmp___9 = i2c_adapter_id(__cil_tmp13);
6952#line 277
6953 __cil_tmp14 = client->driver;
6954#line 277
6955 __cil_tmp15 = __cil_tmp14->driver.name;
6956#line 277
6957 __cil_tmp16 = client->addr;
6958#line 277
6959 __cil_tmp17 = (int )__cil_tmp16;
6960#line 277
6961 __cil_tmp18 = state->acb;
6962#line 277
6963 printk("<7>%s %d-%04x: scart switch: %s => %d (ACB=0x%04x)\n", __cil_tmp15,
6964 tmp___9, __cil_tmp17, scart_names[in], out, __cil_tmp18);
6965 }
6966 } else {
6967
6968 }
6969#line 277
6970 goto while_break;
6971 }
6972 while_break___0: ;
6973 }
6974
6975 while_break:
6976 {
6977#line 279
6978 __cil_tmp19 = state->acb;
6979#line 279
6980 msp_write_dsp(client, 19, __cil_tmp19);
6981 }
6982#line 282
6983 if (state->has_i2s_conf) {
6984 {
6985#line 283
6986 __cil_tmp20 = state->i2s_mode;
6987#line 283
6988 msp_write_dem(client, 64, __cil_tmp20);
6989 }
6990 } else {
6991
6992 }
6993#line 284
6994 return;
6995}
6996}
6997#line 288 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
6998static void msp_wake_thread(struct i2c_client *client )
6999{ struct msp_state *state ;
7000 void *tmp___7 ;
7001 struct msp_state *tmp___8 ;
7002 struct i2c_client const *__cil_tmp5 ;
7003 struct v4l2_subdev *__cil_tmp6 ;
7004 struct task_struct *__cil_tmp7 ;
7005 unsigned long __cil_tmp8 ;
7006 void *__cil_tmp9 ;
7007 unsigned long __cil_tmp10 ;
7008 wait_queue_head_t *__cil_tmp11 ;
7009 void *__cil_tmp12 ;
7010
7011 {
7012 {
7013#line 290
7014 __cil_tmp5 = (struct i2c_client const *)client;
7015#line 290
7016 tmp___7 = i2c_get_clientdata(__cil_tmp5);
7017#line 290
7018 __cil_tmp6 = (struct v4l2_subdev *)tmp___7;
7019#line 290
7020 tmp___8 = to_state(__cil_tmp6);
7021#line 290
7022 state = tmp___8;
7023 }
7024 {
7025#line 292
7026 __cil_tmp7 = state->kthread;
7027#line 292
7028 __cil_tmp8 = (unsigned long )__cil_tmp7;
7029#line 292
7030 __cil_tmp9 = (void *)0;
7031#line 292
7032 __cil_tmp10 = (unsigned long )__cil_tmp9;
7033#line 292
7034 if (__cil_tmp10 == __cil_tmp8) {
7035#line 293
7036 return;
7037 } else {
7038
7039 }
7040 }
7041 {
7042#line 294
7043 state->watch_stereo = 0U;
7044#line 295
7045 state->restart = 1U;
7046#line 296
7047 __cil_tmp11 = & state->wq;
7048#line 296
7049 __cil_tmp12 = (void *)0;
7050#line 296
7051 __wake_up(__cil_tmp11, 1U, 1, __cil_tmp12);
7052 }
7053#line 297
7054 return;
7055}
7056}
7057#line 299 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
7058int msp_sleep(struct msp_state *state , int timeout )
7059{ wait_queue_t wait ;
7060 struct task_struct *tmp___7 ;
7061 long volatile __x ;
7062 struct task_struct *tmp___9 ;
7063 u8 volatile *__ptr ;
7064 struct task_struct *tmp___10 ;
7065 u16 volatile *__ptr___0 ;
7066 struct task_struct *tmp___11 ;
7067 u32 volatile *__ptr___1 ;
7068 struct task_struct *tmp___12 ;
7069 u64 volatile *__ptr___2 ;
7070 struct task_struct *tmp___13 ;
7071 unsigned long tmp___14 ;
7072 int tmp___15 ;
7073 void *__cil_tmp17 ;
7074 void *__cil_tmp18 ;
7075 wait_queue_head_t *__cil_tmp19 ;
7076 int __cil_tmp20 ;
7077 int __cil_tmp21 ;
7078 int __cil_tmp22 ;
7079 int __cil_tmp23 ;
7080 long volatile *__cil_tmp24 ;
7081 long volatile *__cil_tmp25 ;
7082 long volatile *__cil_tmp26 ;
7083 long volatile *__cil_tmp27 ;
7084 unsigned int __cil_tmp28 ;
7085 unsigned int __cil_tmp29 ;
7086 long __cil_tmp30 ;
7087 wait_queue_head_t *__cil_tmp31 ;
7088 unsigned int __cil_tmp32 ;
7089
7090 {
7091 {
7092#line 301
7093 tmp___7 = get_current();
7094#line 301
7095 wait.flags = 0U;
7096#line 301
7097 wait.private = (void *)tmp___7;
7098#line 301
7099 wait.func = & default_wake_function;
7100#line 301
7101 __cil_tmp17 = (void *)0;
7102#line 301
7103 wait.task_list.next = (struct list_head *)__cil_tmp17;
7104#line 301
7105 __cil_tmp18 = (void *)0;
7106#line 301
7107 wait.task_list.prev = (struct list_head *)__cil_tmp18;
7108#line 303
7109 __cil_tmp19 = & state->wq;
7110#line 303
7111 add_wait_queue(__cil_tmp19, & wait);
7112#line 304
7113 tmp___15 = kthread_should_stop();
7114 }
7115#line 304
7116 if (tmp___15) {
7117
7118 } else
7119#line 305
7120 if (timeout < 0) {
7121 {
7122#line 306
7123 while (1) {
7124 while_continue: ;
7125#line 306
7126 __x = (long volatile )1;
7127 {
7128#line 306
7129 __cil_tmp20 = (int )8UL;
7130#line 306
7131 if (__cil_tmp20 == 1) {
7132#line 306
7133 goto case_1;
7134 } else {
7135 {
7136#line 306
7137 __cil_tmp21 = (int )8UL;
7138#line 306
7139 if (__cil_tmp21 == 2) {
7140#line 306
7141 goto case_2;
7142 } else {
7143 {
7144#line 306
7145 __cil_tmp22 = (int )8UL;
7146#line 306
7147 if (__cil_tmp22 == 4) {
7148#line 306
7149 goto case_4;
7150 } else {
7151 {
7152#line 306
7153 __cil_tmp23 = (int )8UL;
7154#line 306
7155 if (__cil_tmp23 == 8) {
7156#line 306
7157 goto case_8;
7158 } else {
7159#line 306
7160 goto switch_default;
7161#line 306
7162 if (0) {
7163 case_1:
7164 {
7165#line 306
7166 tmp___10 = get_current();
7167#line 306
7168 __cil_tmp24 = & tmp___10->state;
7169#line 306
7170 __ptr = (u8 volatile *)__cil_tmp24;
7171#line 306
7172
7173 }
7174#line 306
7175 goto switch_break;
7176 case_2:
7177 {
7178#line 306
7179 tmp___11 = get_current();
7180#line 306
7181 __cil_tmp25 = & tmp___11->state;
7182#line 306
7183 __ptr___0 = (u16 volatile *)__cil_tmp25;
7184#line 306
7185 __asm__ volatile ("xchgw %0,%1": "=r" (__x), "+m" (*__ptr___0): "0" (__x): "memory");
7186 }
7187#line 306
7188 goto switch_break;
7189 case_4:
7190 {
7191#line 306
7192 tmp___12 = get_current();
7193#line 306
7194 __cil_tmp26 = & tmp___12->state;
7195#line 306
7196 __ptr___1 = (u32 volatile *)__cil_tmp26;
7197#line 306
7198
7199 }
7200#line 306
7201 goto switch_break;
7202 case_8:
7203 {
7204#line 306
7205 tmp___13 = get_current();
7206#line 306
7207 __cil_tmp27 = & tmp___13->state;
7208#line 306
7209 __ptr___2 = (u64 volatile *)__cil_tmp27;
7210#line 306
7211 __asm__ volatile ("xchgq %0,%1": "=r" (__x), "+m" (*__ptr___2): "0" (__x): "memory");
7212 }
7213#line 306
7214 goto switch_break;
7215 switch_default:
7216 {
7217#line 306
7218 __xchg_wrong_size();
7219 }
7220 } else {
7221 switch_break: ;
7222 }
7223 }
7224 }
7225 }
7226 }
7227 }
7228 }
7229 }
7230 }
7231#line 306
7232 goto while_break;
7233 }
7234 while_break___0: ;
7235 }
7236
7237 while_break:
7238 {
7239#line 307
7240 schedule();
7241 }
7242 } else {
7243 {
7244#line 309
7245 __cil_tmp28 = (unsigned int const )timeout;
7246#line 309
7247 __cil_tmp29 = (unsigned int )__cil_tmp28;
7248#line 309
7249 tmp___14 = msecs_to_jiffies(__cil_tmp29);
7250#line 309
7251 __cil_tmp30 = (long )tmp___14;
7252#line 309
7253 schedule_timeout_interruptible(__cil_tmp30);
7254 }
7255 }
7256 {
7257#line 314
7258 __cil_tmp31 = & state->wq;
7259#line 314
7260 remove_wait_queue(__cil_tmp31, & wait);
7261#line 315
7262 try_to_freeze();
7263 }
7264 {
7265#line 316
7266 __cil_tmp32 = state->restart;
7267#line 316
7268 return ((int )__cil_tmp32);
7269 }
7270}
7271}
7272#line 321 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
7273static int msp_s_ctrl(struct v4l2_ctrl *ctrl )
7274{ struct msp_state *state ;
7275 struct msp_state *tmp___7 ;
7276 struct i2c_client *client ;
7277 void *tmp___8 ;
7278 int val ;
7279 int reallymuted ;
7280 char const *tmp___9 ;
7281 char const *tmp___10 ;
7282 int tmp___11 ;
7283 int tmp___12 ;
7284 int tmp___13 ;
7285 struct v4l2_subdev *__cil_tmp13 ;
7286 struct v4l2_subdev const *__cil_tmp14 ;
7287 u32 __cil_tmp15 ;
7288 int __cil_tmp16 ;
7289 u32 __cil_tmp17 ;
7290 int __cil_tmp18 ;
7291 u32 __cil_tmp19 ;
7292 int __cil_tmp20 ;
7293 u32 __cil_tmp21 ;
7294 int __cil_tmp22 ;
7295 u32 __cil_tmp23 ;
7296 int __cil_tmp24 ;
7297 int __cil_tmp25 ;
7298 struct v4l2_ctrl *__cil_tmp26 ;
7299 s32 __cil_tmp27 ;
7300 int __cil_tmp28 ;
7301 int __cil_tmp29 ;
7302 struct v4l2_ctrl *__cil_tmp30 ;
7303 struct i2c_adapter *__cil_tmp31 ;
7304 struct i2c_driver *__cil_tmp32 ;
7305 char const *__cil_tmp33 ;
7306 unsigned short __cil_tmp34 ;
7307 int __cil_tmp35 ;
7308 struct v4l2_ctrl *__cil_tmp36 ;
7309 s32 __cil_tmp37 ;
7310 int __cil_tmp38 ;
7311 int __cil_tmp39 ;
7312 int __cil_tmp40 ;
7313 int __cil_tmp41 ;
7314 int __cil_tmp42 ;
7315 int __cil_tmp43 ;
7316 int __cil_tmp44 ;
7317 int __cil_tmp45 ;
7318 u8 __cil_tmp46 ;
7319 int __cil_tmp47 ;
7320 int __cil_tmp48 ;
7321
7322 {
7323 {
7324#line 323
7325 tmp___7 = ctrl_to_state(ctrl);
7326#line 323
7327 state = tmp___7;
7328#line 324
7329 __cil_tmp13 = & state->sd;
7330#line 324
7331 __cil_tmp14 = (struct v4l2_subdev const *)__cil_tmp13;
7332#line 324
7333 tmp___8 = v4l2_get_subdevdata(__cil_tmp14);
7334#line 324
7335 client = (struct i2c_client *)tmp___8;
7336#line 325
7337 val = ctrl->__annonCompField51.val;
7338 }
7339 {
7340#line 328
7341 __cil_tmp15 = ctrl->id;
7342#line 328
7343 __cil_tmp16 = (int )__cil_tmp15;
7344#line 328
7345 if (__cil_tmp16 == 9963781) {
7346#line 328
7347 goto case_9963781;
7348 } else {
7349 {
7350#line 349
7351 __cil_tmp17 = ctrl->id;
7352#line 349
7353 __cil_tmp18 = (int )__cil_tmp17;
7354#line 349
7355 if (__cil_tmp18 == 9963783) {
7356#line 349
7357 goto case_9963783;
7358 } else {
7359 {
7360#line 356
7361 __cil_tmp19 = ctrl->id;
7362#line 356
7363 __cil_tmp20 = (int )__cil_tmp19;
7364#line 356
7365 if (__cil_tmp20 == 9963784) {
7366#line 356
7367 goto case_9963784;
7368 } else {
7369 {
7370#line 363
7371 __cil_tmp21 = ctrl->id;
7372#line 363
7373 __cil_tmp22 = (int )__cil_tmp21;
7374#line 363
7375 if (__cil_tmp22 == 9963786) {
7376#line 363
7377 goto case_9963786;
7378 } else {
7379 {
7380#line 370
7381 __cil_tmp23 = ctrl->id;
7382#line 370
7383 __cil_tmp24 = (int )__cil_tmp23;
7384#line 370
7385 if (__cil_tmp24 == 9963782) {
7386#line 370
7387 goto case_9963782;
7388 } else {
7389#line 377
7390 goto switch_default;
7391#line 327
7392 if (0) {
7393 case_9963781:
7394#line 330
7395 __cil_tmp25 = state->scan_in_progress;
7396#line 330
7397 __cil_tmp26 = state->__annonCompField52.muted;
7398#line 330
7399 __cil_tmp27 = __cil_tmp26->__annonCompField51.val;
7400#line 330
7401 reallymuted = __cil_tmp27 | __cil_tmp25;
7402#line 332
7403 if (! reallymuted) {
7404#line 333
7405 __cil_tmp28 = val * 127;
7406#line 333
7407 __cil_tmp29 = __cil_tmp28 / 65535;
7408#line 333
7409 val = __cil_tmp29 << 8;
7410 } else {
7411
7412 }
7413 {
7414#line 335
7415 while (1) {
7416 while_continue: ;
7417
7418#line 335
7419 if (msp_debug >= 1) {
7420#line 335
7421 if (state->scan_in_progress) {
7422#line 335
7423 tmp___9 = "yes";
7424 } else {
7425#line 335
7426 tmp___9 = "no";
7427 }
7428 {
7429#line 335
7430 __cil_tmp30 = state->__annonCompField52.muted;
7431#line 335
7432 if (__cil_tmp30->__annonCompField51.val) {
7433#line 335
7434 tmp___10 = "on";
7435 } else {
7436#line 335
7437 tmp___10 = "off";
7438 }
7439 }
7440 {
7441#line 335
7442 __cil_tmp31 = client->adapter;
7443#line 335
7444 tmp___11 = i2c_adapter_id(__cil_tmp31);
7445#line 335
7446 __cil_tmp32 = client->driver;
7447#line 335
7448 __cil_tmp33 = __cil_tmp32->driver.name;
7449#line 335
7450 __cil_tmp34 = client->addr;
7451#line 335
7452 __cil_tmp35 = (int )__cil_tmp34;
7453#line 335
7454 __cil_tmp36 = state->__annonCompField52.volume;
7455#line 335
7456 __cil_tmp37 = __cil_tmp36->__annonCompField51.val;
7457#line 335
7458 printk("<7>%s %d-%04x: mute=%s scanning=%s volume=%d\n", __cil_tmp33,
7459 tmp___11, __cil_tmp35, tmp___10, tmp___9, __cil_tmp37);
7460 }
7461 } else {
7462
7463 }
7464#line 335
7465 goto while_break;
7466 }
7467 while_break___0: ;
7468 }
7469
7470 while_break:
7471 {
7472#line 340
7473 msp_write_dsp(client, 0, val);
7474 }
7475#line 341
7476 if (reallymuted) {
7477#line 341
7478 tmp___12 = 1;
7479 } else {
7480#line 341
7481 tmp___12 = val | 1;
7482 }
7483 {
7484#line 341
7485 msp_write_dsp(client, 7, tmp___12);
7486 }
7487#line 342
7488 if (state->has_scart2_out_volume) {
7489#line 343
7490 if (reallymuted) {
7491#line 343
7492 tmp___13 = 1;
7493 } else {
7494#line 343
7495 tmp___13 = val | 1;
7496 }
7497 {
7498#line 343
7499 msp_write_dsp(client, 64, tmp___13);
7500 }
7501 } else {
7502
7503 }
7504#line 344
7505 if (state->has_headphones) {
7506 {
7507#line 345
7508 msp_write_dsp(client, 6, val);
7509 }
7510 } else {
7511
7512 }
7513#line 346
7514 goto switch_break;
7515 case_9963783:
7516 {
7517#line 350
7518 __cil_tmp38 = val - 32768;
7519#line 350
7520 __cil_tmp39 = __cil_tmp38 * 96;
7521#line 350
7522 __cil_tmp40 = __cil_tmp39 / 65535;
7523#line 350
7524 val = __cil_tmp40 << 8;
7525#line 351
7526 msp_write_dsp(client, 2, val);
7527 }
7528#line 352
7529 if (state->has_headphones) {
7530 {
7531#line 353
7532 msp_write_dsp(client, 49, val);
7533 }
7534 } else {
7535
7536 }
7537#line 354
7538 goto switch_break;
7539 case_9963784:
7540 {
7541#line 357
7542 __cil_tmp41 = val - 32768;
7543#line 357
7544 __cil_tmp42 = __cil_tmp41 * 96;
7545#line 357
7546 __cil_tmp43 = __cil_tmp42 / 65535;
7547#line 357
7548 val = __cil_tmp43 << 8;
7549#line 358
7550 msp_write_dsp(client, 3, val);
7551 }
7552#line 359
7553 if (state->has_headphones) {
7554 {
7555#line 360
7556 msp_write_dsp(client, 50, val);
7557 }
7558 } else {
7559
7560 }
7561#line 361
7562 goto switch_break;
7563 case_9963786:
7564#line 364
7565 if (val) {
7566#line 364
7567 val = 20 << 8;
7568 } else {
7569#line 364
7570 val = 0;
7571 }
7572 {
7573#line 365
7574 msp_write_dsp(client, 4, val);
7575 }
7576#line 366
7577 if (state->has_headphones) {
7578 {
7579#line 367
7580 msp_write_dsp(client, 51, val);
7581 }
7582 } else {
7583
7584 }
7585#line 368
7586 goto switch_break;
7587 case_9963782:
7588 {
7589#line 371
7590 __cil_tmp44 = val / 256;
7591#line 371
7592 __cil_tmp45 = __cil_tmp44 - 128;
7593#line 371
7594 __cil_tmp46 = (u8 )__cil_tmp45;
7595#line 371
7596 val = (int )__cil_tmp46;
7597#line 372
7598 __cil_tmp47 = val << 8;
7599#line 372
7600 msp_write_dsp(client, 1, __cil_tmp47);
7601 }
7602#line 373
7603 if (state->has_headphones) {
7604 {
7605#line 374
7606 __cil_tmp48 = val << 8;
7607#line 374
7608 msp_write_dsp(client, 48, __cil_tmp48);
7609 }
7610 } else {
7611
7612 }
7613#line 375
7614 goto switch_break;
7615 switch_default:
7616#line 378
7617 return (-22);
7618 } else {
7619 switch_break: ;
7620 }
7621 }
7622 }
7623 }
7624 }
7625 }
7626 }
7627 }
7628 }
7629 }
7630 }
7631#line 380
7632 return (0);
7633}
7634}
7635#line 383 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
7636void msp_update_volume(struct msp_state *state )
7637{ struct v4l2_ctrl *__cil_tmp2 ;
7638 struct v4l2_ctrl *__cil_tmp3 ;
7639 struct v4l2_ctrl *__cil_tmp4 ;
7640 struct v4l2_ctrl *__cil_tmp5 ;
7641 struct v4l2_ctrl *__cil_tmp6 ;
7642 struct v4l2_ctrl *__cil_tmp7 ;
7643 struct v4l2_ctrl *__cil_tmp8 ;
7644
7645 {
7646 {
7647#line 386
7648 __cil_tmp2 = state->__annonCompField52.volume;
7649#line 386
7650 v4l2_ctrl_lock(__cil_tmp2);
7651#line 387
7652 __cil_tmp3 = state->__annonCompField52.volume;
7653#line 387
7654 __cil_tmp4 = state->__annonCompField52.volume;
7655#line 387
7656 __cil_tmp3->__annonCompField51.val = __cil_tmp4->cur.val;
7657#line 388
7658 __cil_tmp5 = state->__annonCompField52.muted;
7659#line 388
7660 __cil_tmp6 = state->__annonCompField52.muted;
7661#line 388
7662 __cil_tmp5->__annonCompField51.val = __cil_tmp6->cur.val;
7663#line 389
7664 __cil_tmp7 = state->__annonCompField52.volume;
7665#line 389
7666 msp_s_ctrl(__cil_tmp7);
7667#line 390
7668 __cil_tmp8 = state->__annonCompField52.volume;
7669#line 390
7670 v4l2_ctrl_unlock(__cil_tmp8);
7671 }
7672#line 391
7673 return;
7674}
7675}
7676#line 394 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
7677static int msp_s_radio(struct v4l2_subdev *sd )
7678{ struct msp_state *state ;
7679 struct msp_state *tmp___7 ;
7680 struct i2c_client *client ;
7681 void *tmp___8 ;
7682 int tmp___9 ;
7683 struct v4l2_subdev const *__cil_tmp7 ;
7684 struct i2c_adapter *__cil_tmp8 ;
7685 struct i2c_driver *__cil_tmp9 ;
7686 char const *__cil_tmp10 ;
7687 unsigned short __cil_tmp11 ;
7688 int __cil_tmp12 ;
7689 int __cil_tmp13 ;
7690 int __cil_tmp14 ;
7691 int __cil_tmp15 ;
7692 int __cil_tmp16 ;
7693 float __cil_tmp17 ;
7694 double __cil_tmp18 ;
7695 float __cil_tmp19 ;
7696 float __cil_tmp20 ;
7697 int __cil_tmp21 ;
7698 int __cil_tmp22 ;
7699 float __cil_tmp23 ;
7700 double __cil_tmp24 ;
7701 float __cil_tmp25 ;
7702 float __cil_tmp26 ;
7703 int __cil_tmp27 ;
7704
7705 {
7706 {
7707#line 396
7708 tmp___7 = to_state(sd);
7709#line 396
7710 state = tmp___7;
7711#line 397
7712 __cil_tmp7 = (struct v4l2_subdev const *)sd;
7713#line 397
7714 tmp___8 = v4l2_get_subdevdata(__cil_tmp7);
7715#line 397
7716 client = (struct i2c_client *)tmp___8;
7717 }
7718#line 399
7719 if (state->radio) {
7720#line 400
7721 return (0);
7722 } else {
7723
7724 }
7725#line 401
7726 state->radio = 1;
7727 {
7728#line 402
7729 while (1) {
7730 while_continue: ;
7731
7732#line 402
7733 if (msp_debug >= 1) {
7734 {
7735#line 402
7736 __cil_tmp8 = client->adapter;
7737#line 402
7738 tmp___9 = i2c_adapter_id(__cil_tmp8);
7739#line 402
7740 __cil_tmp9 = client->driver;
7741#line 402
7742 __cil_tmp10 = __cil_tmp9->driver.name;
7743#line 402
7744 __cil_tmp11 = client->addr;
7745#line 402
7746 __cil_tmp12 = (int )__cil_tmp11;
7747#line 402
7748 printk("<7>%s %d-%04x: switching to radio mode\n", __cil_tmp10, tmp___9, __cil_tmp12);
7749 }
7750 } else {
7751
7752 }
7753#line 402
7754 goto while_break;
7755 }
7756 while_break___0: ;
7757 }
7758
7759 while_break:
7760#line 403
7761 state->watch_stereo = 0U;
7762 {
7763#line 405
7764 __cil_tmp13 = state->opmode;
7765#line 405
7766 if (__cil_tmp13 == 0) {
7767#line 405
7768 goto case_0;
7769 } else {
7770 {
7771#line 412
7772 __cil_tmp14 = state->opmode;
7773#line 412
7774 if (__cil_tmp14 == 1) {
7775#line 412
7776 goto case_1;
7777 } else {
7778 {
7779#line 413
7780 __cil_tmp15 = state->opmode;
7781#line 413
7782 if (__cil_tmp15 == 2) {
7783#line 413
7784 goto case_1;
7785 } else
7786#line 404
7787 if (0) {
7788 case_0:
7789 {
7790#line 407
7791 msp3400c_set_mode(client, 2);
7792#line 408
7793 __cil_tmp16 = 1 << 24;
7794#line 408
7795 __cil_tmp17 = (float )__cil_tmp16;
7796#line 408
7797 __cil_tmp18 = 10.7 / 18.432;
7798#line 408
7799 __cil_tmp19 = (float )__cil_tmp18;
7800#line 408
7801 __cil_tmp20 = __cil_tmp19 * __cil_tmp17;
7802#line 408
7803 __cil_tmp21 = (int )__cil_tmp20;
7804#line 408
7805 __cil_tmp22 = 1 << 24;
7806#line 408
7807 __cil_tmp23 = (float )__cil_tmp22;
7808#line 408
7809 __cil_tmp24 = 10.7 / 18.432;
7810#line 408
7811 __cil_tmp25 = (float )__cil_tmp24;
7812#line 408
7813 __cil_tmp26 = __cil_tmp25 * __cil_tmp23;
7814#line 408
7815 __cil_tmp27 = (int )__cil_tmp26;
7816#line 408
7817 msp3400c_set_carrier(client, __cil_tmp21, __cil_tmp27);
7818#line 410
7819 msp_update_volume(state);
7820 }
7821#line 411
7822 goto switch_break;
7823 case_1:
7824 {
7825#line 415
7826 msp_wake_thread(client);
7827 }
7828#line 416
7829 goto switch_break;
7830 } else {
7831 switch_break: ;
7832 }
7833 }
7834 }
7835 }
7836 }
7837 }
7838#line 418
7839 return (0);
7840}
7841}
7842#line 421 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
7843static int msp_s_frequency(struct v4l2_subdev *sd , struct v4l2_frequency *freq )
7844{ struct i2c_client *client ;
7845 void *tmp___7 ;
7846 struct v4l2_subdev const *__cil_tmp5 ;
7847
7848 {
7849 {
7850#line 423
7851 __cil_tmp5 = (struct v4l2_subdev const *)sd;
7852#line 423
7853 tmp___7 = v4l2_get_subdevdata(__cil_tmp5);
7854#line 423
7855 client = (struct i2c_client *)tmp___7;
7856#line 426
7857 msp_wake_thread(client);
7858 }
7859#line 427
7860 return (0);
7861}
7862}
7863#line 430 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
7864static int msp_s_std(struct v4l2_subdev *sd , v4l2_std_id id )
7865{ struct msp_state *state ;
7866 struct msp_state *tmp___7 ;
7867 struct i2c_client *client ;
7868 void *tmp___8 ;
7869 int update ;
7870 int tmp___9 ;
7871 struct v4l2_subdev const *__cil_tmp9 ;
7872 v4l2_std_id __cil_tmp10 ;
7873
7874 {
7875 {
7876#line 432
7877 tmp___7 = to_state(sd);
7878#line 432
7879 state = tmp___7;
7880#line 433
7881 __cil_tmp9 = (struct v4l2_subdev const *)sd;
7882#line 433
7883 tmp___8 = v4l2_get_subdevdata(__cil_tmp9);
7884#line 433
7885 client = (struct i2c_client *)tmp___8;
7886 }
7887#line 434
7888 if (state->radio) {
7889#line 434
7890 tmp___9 = 1;
7891 } else {
7892 {
7893#line 434
7894 __cil_tmp10 = state->v4l2_std;
7895#line 434
7896 if (__cil_tmp10 != id) {
7897#line 434
7898 tmp___9 = 1;
7899 } else {
7900#line 434
7901 tmp___9 = 0;
7902 }
7903 }
7904 }
7905#line 434
7906 update = tmp___9;
7907#line 436
7908 state->v4l2_std = id;
7909#line 437
7910 state->radio = 0;
7911#line 438
7912 if (update) {
7913 {
7914#line 439
7915 msp_wake_thread(client);
7916 }
7917 } else {
7918
7919 }
7920#line 440
7921 return (0);
7922}
7923}
7924#line 443 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
7925static int msp_s_routing(struct v4l2_subdev *sd , u32 input , u32 output , u32 config )
7926{ struct msp_state *state ;
7927 struct msp_state *tmp___7 ;
7928 struct i2c_client *client ;
7929 void *tmp___8 ;
7930 int tuner ;
7931 int sc_in ;
7932 int sc1_out ;
7933 int sc2_out ;
7934 u16 val ;
7935 u16 reg ;
7936 int i ;
7937 int extern_input ;
7938 int tmp___9 ;
7939 struct v4l2_subdev const *__cil_tmp18 ;
7940 u32 __cil_tmp19 ;
7941 unsigned int __cil_tmp20 ;
7942 unsigned int __cil_tmp21 ;
7943 unsigned int __cil_tmp22 ;
7944 u32 __cil_tmp23 ;
7945 unsigned int __cil_tmp24 ;
7946 u32 __cil_tmp25 ;
7947 u32 __cil_tmp26 ;
7948 int __cil_tmp27 ;
7949 int __cil_tmp28 ;
7950 u32 __cil_tmp29 ;
7951 unsigned int __cil_tmp30 ;
7952 int __cil_tmp31 ;
7953 int __cil_tmp32 ;
7954 int __cil_tmp33 ;
7955 int __cil_tmp34 ;
7956 int __cil_tmp35 ;
7957 int __cil_tmp36 ;
7958 int __cil_tmp37 ;
7959
7960 {
7961 {
7962#line 446
7963 tmp___7 = to_state(sd);
7964#line 446
7965 state = tmp___7;
7966#line 447
7967 __cil_tmp18 = (struct v4l2_subdev const *)sd;
7968#line 447
7969 tmp___8 = v4l2_get_subdevdata(__cil_tmp18);
7970#line 447
7971 client = (struct i2c_client *)tmp___8;
7972#line 448
7973 __cil_tmp19 = input >> 3;
7974#line 448
7975 __cil_tmp20 = __cil_tmp19 & 1U;
7976#line 448
7977 tuner = (int )__cil_tmp20;
7978#line 449
7979 __cil_tmp21 = input & 7U;
7980#line 449
7981 sc_in = (int )__cil_tmp21;
7982#line 450
7983 __cil_tmp22 = output & 15U;
7984#line 450
7985 sc1_out = (int )__cil_tmp22;
7986#line 451
7987 __cil_tmp23 = output >> 4;
7988#line 451
7989 __cil_tmp24 = __cil_tmp23 & 15U;
7990#line 451
7991 sc2_out = (int )__cil_tmp24;
7992#line 454
7993 extern_input = 1;
7994 }
7995 {
7996#line 456
7997 __cil_tmp25 = state->route_in;
7998#line 456
7999 if (__cil_tmp25 == input) {
8000 {
8001#line 456
8002 __cil_tmp26 = state->route_out;
8003#line 456
8004 if (__cil_tmp26 == output) {
8005#line 457
8006 return (0);
8007 } else {
8008
8009 }
8010 }
8011 } else {
8012
8013 }
8014 }
8015#line 458
8016 state->route_in = input;
8017#line 459
8018 state->route_out = output;
8019#line 461
8020 i = 0;
8021 {
8022#line 461
8023 while (1) {
8024 while_continue: ;
8025
8026#line 461
8027 if (i < 5) {
8028
8029 } else {
8030#line 461
8031 goto while_break;
8032 }
8033 {
8034#line 462
8035 __cil_tmp27 = i * 4;
8036#line 462
8037 __cil_tmp28 = 4 + __cil_tmp27;
8038#line 462
8039 __cil_tmp29 = input >> __cil_tmp28;
8040#line 462
8041 __cil_tmp30 = __cil_tmp29 & 15U;
8042#line 462
8043 if (__cil_tmp30 == 0U) {
8044#line 463
8045 extern_input = 0;
8046 } else {
8047
8048 }
8049 }
8050#line 461
8051 i = i + 1;
8052 }
8053 while_break___0: ;
8054 }
8055
8056 while_break: ;
8057#line 465
8058 if (extern_input) {
8059#line 465
8060 state->mode = 9;
8061 } else {
8062#line 465
8063 state->mode = 0;
8064 }
8065 {
8066#line 466
8067 state->rxsubchans = 2;
8068#line 467
8069 msp_set_scart(client, sc_in, 0);
8070#line 468
8071 msp_set_scart(client, sc1_out, 1);
8072#line 469
8073 msp_set_scart(client, sc2_out, 2);
8074#line 470
8075 msp_set_audmode(client);
8076 }
8077 {
8078#line 471
8079 __cil_tmp31 = state->opmode;
8080#line 471
8081 if (__cil_tmp31 == 2) {
8082#line 471
8083 reg = (u16 )48;
8084 } else {
8085#line 471
8086 reg = (u16 )187;
8087 }
8088 }
8089 {
8090#line 472
8091 __cil_tmp32 = (int )reg;
8092#line 472
8093 tmp___9 = msp_read_dem(client, __cil_tmp32);
8094#line 472
8095 val = (u16 )tmp___9;
8096#line 473
8097 __cil_tmp33 = (int )reg;
8098#line 473
8099 __cil_tmp34 = tuner << 8;
8100#line 473
8101 __cil_tmp35 = (int )val;
8102#line 473
8103 __cil_tmp36 = __cil_tmp35 & -257;
8104#line 473
8105 __cil_tmp37 = __cil_tmp36 | __cil_tmp34;
8106#line 473
8107 msp_write_dem(client, __cil_tmp33, __cil_tmp37);
8108#line 475
8109 msp_wake_thread(client);
8110 }
8111#line 476
8112 return (0);
8113}
8114}
8115#line 479 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
8116static int msp_g_tuner(struct v4l2_subdev *sd , struct v4l2_tuner *vt )
8117{ struct msp_state *state ;
8118 struct msp_state *tmp___7 ;
8119 struct i2c_client *client ;
8120 void *tmp___8 ;
8121 struct v4l2_subdev const *__cil_tmp7 ;
8122 enum v4l2_tuner_type __cil_tmp8 ;
8123 unsigned int __cil_tmp9 ;
8124 int __cil_tmp10 ;
8125 int __cil_tmp11 ;
8126 int __cil_tmp12 ;
8127 int __cil_tmp13 ;
8128 __u32 __cil_tmp14 ;
8129
8130 {
8131 {
8132#line 481
8133 tmp___7 = to_state(sd);
8134#line 481
8135 state = tmp___7;
8136#line 482
8137 __cil_tmp7 = (struct v4l2_subdev const *)sd;
8138#line 482
8139 tmp___8 = v4l2_get_subdevdata(__cil_tmp7);
8140#line 482
8141 client = (struct i2c_client *)tmp___8;
8142 }
8143 {
8144#line 484
8145 __cil_tmp8 = vt->type;
8146#line 484
8147 __cil_tmp9 = (unsigned int )__cil_tmp8;
8148#line 484
8149 if (__cil_tmp9 != 2U) {
8150#line 485
8151 return (0);
8152 } else {
8153
8154 }
8155 }
8156 {
8157#line 486
8158 __cil_tmp10 = state->radio;
8159#line 486
8160 if (! __cil_tmp10) {
8161 {
8162#line 487
8163 __cil_tmp11 = state->opmode;
8164#line 487
8165 if (__cil_tmp11 == 2) {
8166 {
8167#line 488
8168 msp_detect_stereo(client);
8169 }
8170 } else {
8171
8172 }
8173 }
8174#line 489
8175 __cil_tmp12 = state->rxsubchans;
8176#line 489
8177 vt->rxsubchans = (__u32 )__cil_tmp12;
8178 } else {
8179
8180 }
8181 }
8182#line 491
8183 __cil_tmp13 = state->audmode;
8184#line 491
8185 vt->audmode = (__u32 )__cil_tmp13;
8186#line 492
8187 __cil_tmp14 = vt->capability;
8188#line 492
8189 vt->capability = __cil_tmp14 | 112U;
8190#line 494
8191 return (0);
8192}
8193}
8194#line 497 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
8195static int msp_s_tuner(struct v4l2_subdev *sd , struct v4l2_tuner *vt )
8196{ struct msp_state *state ;
8197 struct msp_state *tmp___7 ;
8198 struct i2c_client *client ;
8199 void *tmp___8 ;
8200 struct v4l2_subdev const *__cil_tmp7 ;
8201 __u32 __cil_tmp8 ;
8202 int __cil_tmp9 ;
8203 __u32 __cil_tmp10 ;
8204 __u32 __cil_tmp11 ;
8205
8206 {
8207 {
8208#line 499
8209 tmp___7 = to_state(sd);
8210#line 499
8211 state = tmp___7;
8212#line 500
8213 __cil_tmp7 = (struct v4l2_subdev const *)sd;
8214#line 500
8215 tmp___8 = v4l2_get_subdevdata(__cil_tmp7);
8216#line 500
8217 client = (struct i2c_client *)tmp___8;
8218 }
8219#line 502
8220 if (state->radio) {
8221#line 503
8222 return (0);
8223 } else {
8224
8225 }
8226 {
8227#line 504
8228 __cil_tmp8 = vt->audmode;
8229#line 504
8230 __cil_tmp9 = state->audmode;
8231#line 504
8232 __cil_tmp10 = (__u32 )__cil_tmp9;
8233#line 504
8234 if (__cil_tmp10 == __cil_tmp8) {
8235#line 505
8236 return (0);
8237 } else {
8238
8239 }
8240 }
8241 {
8242#line 506
8243 __cil_tmp11 = vt->audmode;
8244#line 506
8245 state->audmode = (int )__cil_tmp11;
8246#line 508
8247 msp_set_audmode(client);
8248 }
8249#line 509
8250 return (0);
8251}
8252}
8253#line 512 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
8254static int msp_s_i2s_clock_freq(struct v4l2_subdev *sd , u32 freq )
8255{ struct msp_state *state ;
8256 struct msp_state *tmp___7 ;
8257 struct i2c_client *client ;
8258 void *tmp___8 ;
8259 int tmp___9 ;
8260 struct v4l2_subdev const *__cil_tmp8 ;
8261 struct i2c_adapter *__cil_tmp9 ;
8262 struct i2c_driver *__cil_tmp10 ;
8263 char const *__cil_tmp11 ;
8264 unsigned short __cil_tmp12 ;
8265 int __cil_tmp13 ;
8266 int __cil_tmp14 ;
8267 int __cil_tmp15 ;
8268
8269 {
8270 {
8271#line 514
8272 tmp___7 = to_state(sd);
8273#line 514
8274 state = tmp___7;
8275#line 515
8276 __cil_tmp8 = (struct v4l2_subdev const *)sd;
8277#line 515
8278 tmp___8 = v4l2_get_subdevdata(__cil_tmp8);
8279#line 515
8280 client = (struct i2c_client *)tmp___8;
8281 }
8282 {
8283#line 517
8284 while (1) {
8285 while_continue: ;
8286
8287#line 517
8288 if (msp_debug >= 1) {
8289 {
8290#line 517
8291 __cil_tmp9 = client->adapter;
8292#line 517
8293 tmp___9 = i2c_adapter_id(__cil_tmp9);
8294#line 517
8295 __cil_tmp10 = client->driver;
8296#line 517
8297 __cil_tmp11 = __cil_tmp10->driver.name;
8298#line 517
8299 __cil_tmp12 = client->addr;
8300#line 517
8301 __cil_tmp13 = (int )__cil_tmp12;
8302#line 517
8303 printk("<7>%s %d-%04x: Setting I2S speed to %d\n", __cil_tmp11, tmp___9, __cil_tmp13,
8304 freq);
8305 }
8306 } else {
8307
8308 }
8309#line 517
8310 goto while_break;
8311 }
8312 while_break___0: ;
8313 }
8314
8315 while_break: ;
8316 {
8317#line 520
8318 __cil_tmp14 = (int )freq;
8319#line 520
8320 if (__cil_tmp14 == 1024000) {
8321#line 520
8322 goto case_1024000;
8323 } else {
8324 {
8325#line 523
8326 __cil_tmp15 = (int )freq;
8327#line 523
8328 if (__cil_tmp15 == 2048000) {
8329#line 523
8330 goto case_2048000;
8331 } else {
8332#line 526
8333 goto switch_default;
8334#line 519
8335 if (0) {
8336 case_1024000:
8337#line 521
8338 state->i2s_mode = 0;
8339#line 522
8340 goto switch_break;
8341 case_2048000:
8342#line 524
8343 state->i2s_mode = 1;
8344#line 525
8345 goto switch_break;
8346 switch_default:
8347#line 527
8348 return (-22);
8349 } else {
8350 switch_break: ;
8351 }
8352 }
8353 }
8354 }
8355 }
8356#line 529
8357 return (0);
8358}
8359}
8360#line 532 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
8361static int msp_g_chip_ident(struct v4l2_subdev *sd , struct v4l2_dbg_chip_ident *chip )
8362{ struct msp_state *state ;
8363 struct msp_state *tmp___7 ;
8364 struct i2c_client *client ;
8365 void *tmp___8 ;
8366 int tmp___9 ;
8367 struct v4l2_subdev const *__cil_tmp8 ;
8368 int __cil_tmp9 ;
8369 u32 __cil_tmp10 ;
8370 int __cil_tmp11 ;
8371 int __cil_tmp12 ;
8372 int __cil_tmp13 ;
8373 int __cil_tmp14 ;
8374 u32 __cil_tmp15 ;
8375
8376 {
8377 {
8378#line 534
8379 tmp___7 = to_state(sd);
8380#line 534
8381 state = tmp___7;
8382#line 535
8383 __cil_tmp8 = (struct v4l2_subdev const *)sd;
8384#line 535
8385 tmp___8 = v4l2_get_subdevdata(__cil_tmp8);
8386#line 535
8387 client = (struct i2c_client *)tmp___8;
8388#line 537
8389 __cil_tmp9 = state->ident;
8390#line 537
8391 __cil_tmp10 = (u32 )__cil_tmp9;
8392#line 537
8393 __cil_tmp11 = state->rev2;
8394#line 537
8395 __cil_tmp12 = state->rev1;
8396#line 537
8397 __cil_tmp13 = __cil_tmp12 << 16;
8398#line 537
8399 __cil_tmp14 = __cil_tmp13 | __cil_tmp11;
8400#line 537
8401 __cil_tmp15 = (u32 )__cil_tmp14;
8402#line 537
8403 tmp___9 = v4l2_chip_ident_i2c_client(client, chip, __cil_tmp10, __cil_tmp15);
8404 }
8405#line 537
8406 return (tmp___9);
8407}
8408}
8409#line 541 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
8410static int msp_log_status(struct v4l2_subdev *sd )
8411{ struct msp_state *state ;
8412 struct msp_state *tmp___7 ;
8413 struct i2c_client *client ;
8414 void *tmp___8 ;
8415 char const *p ;
8416 char prefix[52] ;
8417 int tmp___9 ;
8418 int tmp___10 ;
8419 char const *tmp___11 ;
8420 char const *tmp___12 ;
8421 int tmp___13 ;
8422 int tmp___14 ;
8423 char const *tmp___15 ;
8424 char const *tmp___16 ;
8425 char const *tmp___17 ;
8426 int tmp___18 ;
8427 int tmp___19 ;
8428 int tmp___20 ;
8429 int tmp___21 ;
8430 struct v4l2_subdev const *__cil_tmp21 ;
8431 int __cil_tmp22 ;
8432 struct i2c_adapter *__cil_tmp23 ;
8433 struct i2c_driver *__cil_tmp24 ;
8434 char const *__cil_tmp25 ;
8435 unsigned short __cil_tmp26 ;
8436 int __cil_tmp27 ;
8437 char *__cil_tmp28 ;
8438 int __cil_tmp29 ;
8439 int __cil_tmp30 ;
8440 char *__cil_tmp31 ;
8441 char *__cil_tmp32 ;
8442 struct v4l2_ctrl_handler *__cil_tmp33 ;
8443 char *__cil_tmp34 ;
8444 char const *__cil_tmp35 ;
8445 int __cil_tmp36 ;
8446 int __cil_tmp37 ;
8447 int __cil_tmp38 ;
8448 int __cil_tmp39 ;
8449 int __cil_tmp40 ;
8450 int __cil_tmp41 ;
8451 int __cil_tmp42 ;
8452 int __cil_tmp43 ;
8453 int __cil_tmp44 ;
8454 int __cil_tmp45 ;
8455 struct i2c_adapter *__cil_tmp46 ;
8456 struct i2c_driver *__cil_tmp47 ;
8457 char const *__cil_tmp48 ;
8458 unsigned short __cil_tmp49 ;
8459 int __cil_tmp50 ;
8460 int __cil_tmp51 ;
8461 int __cil_tmp52 ;
8462 int __cil_tmp53 ;
8463 struct i2c_adapter *__cil_tmp54 ;
8464 struct i2c_driver *__cil_tmp55 ;
8465 char const *__cil_tmp56 ;
8466 unsigned short __cil_tmp57 ;
8467 int __cil_tmp58 ;
8468 int __cil_tmp59 ;
8469 struct i2c_adapter *__cil_tmp60 ;
8470 struct i2c_driver *__cil_tmp61 ;
8471 char const *__cil_tmp62 ;
8472 unsigned short __cil_tmp63 ;
8473 int __cil_tmp64 ;
8474 int __cil_tmp65 ;
8475 int __cil_tmp66 ;
8476 int __cil_tmp67 ;
8477 struct i2c_adapter *__cil_tmp68 ;
8478 struct i2c_driver *__cil_tmp69 ;
8479 char const *__cil_tmp70 ;
8480 unsigned short __cil_tmp71 ;
8481 int __cil_tmp72 ;
8482 struct i2c_adapter *__cil_tmp73 ;
8483 struct i2c_driver *__cil_tmp74 ;
8484 char const *__cil_tmp75 ;
8485 unsigned short __cil_tmp76 ;
8486 int __cil_tmp77 ;
8487 int __cil_tmp78 ;
8488 struct i2c_adapter *__cil_tmp79 ;
8489 struct i2c_driver *__cil_tmp80 ;
8490 char const *__cil_tmp81 ;
8491 unsigned short __cil_tmp82 ;
8492 int __cil_tmp83 ;
8493 u32 __cil_tmp84 ;
8494 u32 __cil_tmp85 ;
8495 struct i2c_adapter *__cil_tmp86 ;
8496 struct i2c_driver *__cil_tmp87 ;
8497 char const *__cil_tmp88 ;
8498 unsigned short __cil_tmp89 ;
8499 int __cil_tmp90 ;
8500 int __cil_tmp91 ;
8501
8502 {
8503 {
8504#line 543
8505 tmp___7 = to_state(sd);
8506#line 543
8507 state = tmp___7;
8508#line 544
8509 __cil_tmp21 = (struct v4l2_subdev const *)sd;
8510#line 544
8511 tmp___8 = v4l2_get_subdevdata(__cil_tmp21);
8512#line 544
8513 client = (struct i2c_client *)tmp___8;
8514 }
8515 {
8516#line 548
8517 __cil_tmp22 = state->opmode;
8518#line 548
8519 if (__cil_tmp22 == 2) {
8520 {
8521#line 549
8522 msp_detect_stereo(client);
8523 }
8524 } else {
8525
8526 }
8527 }
8528 {
8529#line 550
8530 __cil_tmp23 = client->adapter;
8531#line 550
8532 tmp___9 = i2c_adapter_id(__cil_tmp23);
8533#line 550
8534 __cil_tmp24 = client->driver;
8535#line 550
8536 __cil_tmp25 = __cil_tmp24->driver.name;
8537#line 550
8538 __cil_tmp26 = client->addr;
8539#line 550
8540 __cil_tmp27 = (int )__cil_tmp26;
8541#line 550
8542 __cil_tmp28 = & client->name[0];
8543#line 550
8544 __cil_tmp29 = state->rev1;
8545#line 550
8546 __cil_tmp30 = state->rev2;
8547#line 550
8548 printk("<6>%s %d-%04x: %s rev1 = 0x%04x rev2 = 0x%04x\n", __cil_tmp25, tmp___9,
8549 __cil_tmp27, __cil_tmp28, __cil_tmp29, __cil_tmp30);
8550#line 552
8551 __cil_tmp31 = & prefix[0];
8552#line 552
8553 __cil_tmp32 = & sd->name[0];
8554#line 552
8555 snprintf(__cil_tmp31, 52UL, "%s: Audio: ", __cil_tmp32);
8556#line 553
8557 __cil_tmp33 = & state->hdl;
8558#line 553
8559 __cil_tmp34 = & prefix[0];
8560#line 553
8561 __cil_tmp35 = (char const *)__cil_tmp34;
8562#line 553
8563 v4l2_ctrl_handler_log_status(__cil_tmp33, __cil_tmp35);
8564 }
8565 {
8566#line 555
8567 __cil_tmp36 = state->mode;
8568#line 555
8569 if (__cil_tmp36 == 0) {
8570#line 555
8571 goto case_0;
8572 } else {
8573 {
8574#line 556
8575 __cil_tmp37 = state->mode;
8576#line 556
8577 if (__cil_tmp37 == 2) {
8578#line 556
8579 goto case_2;
8580 } else {
8581 {
8582#line 557
8583 __cil_tmp38 = state->mode;
8584#line 557
8585 if (__cil_tmp38 == 3) {
8586#line 557
8587 goto case_3;
8588 } else {
8589 {
8590#line 558
8591 __cil_tmp39 = state->mode;
8592#line 558
8593 if (__cil_tmp39 == 4) {
8594#line 558
8595 goto case_4;
8596 } else {
8597 {
8598#line 559
8599 __cil_tmp40 = state->mode;
8600#line 559
8601 if (__cil_tmp40 == 5) {
8602#line 559
8603 goto case_5;
8604 } else {
8605 {
8606#line 560
8607 __cil_tmp41 = state->mode;
8608#line 560
8609 if (__cil_tmp41 == 6) {
8610#line 560
8611 goto case_6;
8612 } else {
8613 {
8614#line 561
8615 __cil_tmp42 = state->mode;
8616#line 561
8617 if (__cil_tmp42 == 7) {
8618#line 561
8619 goto case_7;
8620 } else {
8621 {
8622#line 562
8623 __cil_tmp43 = state->mode;
8624#line 562
8625 if (__cil_tmp43 == 8) {
8626#line 562
8627 goto case_8;
8628 } else {
8629 {
8630#line 563
8631 __cil_tmp44 = state->mode;
8632#line 563
8633 if (__cil_tmp44 == 9) {
8634#line 563
8635 goto case_9;
8636 } else {
8637#line 564
8638 goto switch_default;
8639#line 554
8640 if (0) {
8641 case_0:
8642#line 555
8643 p = "AM (for carrier detect)";
8644#line 555
8645 goto switch_break;
8646 case_2:
8647#line 556
8648 p = "FM Radio";
8649#line 556
8650 goto switch_break;
8651 case_3:
8652#line 557
8653 p = "Terrestrial FM-mono/stereo";
8654#line 557
8655 goto switch_break;
8656 case_4:
8657#line 558
8658 p = "Satellite FM-mono";
8659#line 558
8660 goto switch_break;
8661 case_5:
8662#line 559
8663 p = "NICAM/FM (B/G, D/K)";
8664#line 559
8665 goto switch_break;
8666 case_6:
8667#line 560
8668 p = "NICAM/FM (I)";
8669#line 560
8670 goto switch_break;
8671 case_7:
8672#line 561
8673 p = "NICAM/AM (L)";
8674#line 561
8675 goto switch_break;
8676 case_8:
8677#line 562
8678 p = "BTSC";
8679#line 562
8680 goto switch_break;
8681 case_9:
8682#line 563
8683 p = "External input";
8684#line 563
8685 goto switch_break;
8686 switch_default:
8687#line 564
8688 p = "unknown";
8689#line 564
8690 goto switch_break;
8691 } else {
8692 switch_break: ;
8693 }
8694 }
8695 }
8696 }
8697 }
8698 }
8699 }
8700 }
8701 }
8702 }
8703 }
8704 }
8705 }
8706 }
8707 }
8708 }
8709 }
8710 }
8711 }
8712 {
8713#line 566
8714 __cil_tmp45 = state->mode;
8715#line 566
8716 if (__cil_tmp45 == 9) {
8717 {
8718#line 567
8719 __cil_tmp46 = client->adapter;
8720#line 567
8721 tmp___10 = i2c_adapter_id(__cil_tmp46);
8722#line 567
8723 __cil_tmp47 = client->driver;
8724#line 567
8725 __cil_tmp48 = __cil_tmp47->driver.name;
8726#line 567
8727 __cil_tmp49 = client->addr;
8728#line 567
8729 __cil_tmp50 = (int )__cil_tmp49;
8730#line 567
8731 printk("<6>%s %d-%04x: Mode: %s\n", __cil_tmp48, tmp___10, __cil_tmp50, p);
8732 }
8733 } else {
8734 {
8735#line 568
8736 __cil_tmp51 = state->opmode;
8737#line 568
8738 if (__cil_tmp51 == 0) {
8739 {
8740#line 569
8741 __cil_tmp52 = state->rxsubchans;
8742#line 569
8743 if (__cil_tmp52 & 4) {
8744#line 569
8745 tmp___11 = ", dual";
8746 } else {
8747#line 569
8748 tmp___11 = "";
8749 }
8750 }
8751 {
8752#line 569
8753 __cil_tmp53 = state->rxsubchans;
8754#line 569
8755 if (__cil_tmp53 & 2) {
8756#line 569
8757 tmp___12 = "stereo";
8758 } else {
8759#line 569
8760 tmp___12 = "mono";
8761 }
8762 }
8763 {
8764#line 569
8765 __cil_tmp54 = client->adapter;
8766#line 569
8767 tmp___13 = i2c_adapter_id(__cil_tmp54);
8768#line 569
8769 __cil_tmp55 = client->driver;
8770#line 569
8771 __cil_tmp56 = __cil_tmp55->driver.name;
8772#line 569
8773 __cil_tmp57 = client->addr;
8774#line 569
8775 __cil_tmp58 = (int )__cil_tmp57;
8776#line 569
8777 printk("<6>%s %d-%04x: Mode: %s (%s%s)\n", __cil_tmp56, tmp___13, __cil_tmp58,
8778 p, tmp___12, tmp___11);
8779 }
8780 } else {
8781 {
8782#line 573
8783 __cil_tmp59 = state->opmode;
8784#line 573
8785 if (__cil_tmp59 == 1) {
8786 {
8787#line 574
8788 __cil_tmp60 = client->adapter;
8789#line 574
8790 tmp___14 = i2c_adapter_id(__cil_tmp60);
8791#line 574
8792 __cil_tmp61 = client->driver;
8793#line 574
8794 __cil_tmp62 = __cil_tmp61->driver.name;
8795#line 574
8796 __cil_tmp63 = client->addr;
8797#line 574
8798 __cil_tmp64 = (int )__cil_tmp63;
8799#line 574
8800 printk("<6>%s %d-%04x: Mode: %s\n", __cil_tmp62, tmp___14, __cil_tmp64,
8801 p);
8802 }
8803 } else {
8804
8805 }
8806 }
8807 {
8808#line 575
8809 __cil_tmp65 = state->rxsubchans;
8810#line 575
8811 if (__cil_tmp65 & 4) {
8812#line 575
8813 tmp___15 = ", dual";
8814 } else {
8815#line 575
8816 tmp___15 = "";
8817 }
8818 }
8819 {
8820#line 575
8821 __cil_tmp66 = state->rxsubchans;
8822#line 575
8823 if (__cil_tmp66 & 2) {
8824#line 575
8825 tmp___16 = "stereo";
8826 } else {
8827#line 575
8828 tmp___16 = "mono";
8829 }
8830 }
8831 {
8832#line 575
8833 __cil_tmp67 = state->std;
8834#line 575
8835 tmp___17 = msp_standard_std_name(__cil_tmp67);
8836#line 575
8837 __cil_tmp68 = client->adapter;
8838#line 575
8839 tmp___18 = i2c_adapter_id(__cil_tmp68);
8840#line 575
8841 __cil_tmp69 = client->driver;
8842#line 575
8843 __cil_tmp70 = __cil_tmp69->driver.name;
8844#line 575
8845 __cil_tmp71 = client->addr;
8846#line 575
8847 __cil_tmp72 = (int )__cil_tmp71;
8848#line 575
8849 printk("<6>%s %d-%04x: Standard: %s (%s%s)\n", __cil_tmp70, tmp___18, __cil_tmp72,
8850 tmp___17, tmp___16, tmp___15);
8851 }
8852 }
8853 }
8854 }
8855 }
8856 {
8857#line 580
8858 __cil_tmp73 = client->adapter;
8859#line 580
8860 tmp___19 = i2c_adapter_id(__cil_tmp73);
8861#line 580
8862 __cil_tmp74 = client->driver;
8863#line 580
8864 __cil_tmp75 = __cil_tmp74->driver.name;
8865#line 580
8866 __cil_tmp76 = client->addr;
8867#line 580
8868 __cil_tmp77 = (int )__cil_tmp76;
8869#line 580
8870 __cil_tmp78 = state->audmode;
8871#line 580
8872 printk("<6>%s %d-%04x: Audmode: 0x%04x\n", __cil_tmp75, tmp___19, __cil_tmp77,
8873 __cil_tmp78);
8874#line 581
8875 __cil_tmp79 = client->adapter;
8876#line 581
8877 tmp___20 = i2c_adapter_id(__cil_tmp79);
8878#line 581
8879 __cil_tmp80 = client->driver;
8880#line 581
8881 __cil_tmp81 = __cil_tmp80->driver.name;
8882#line 581
8883 __cil_tmp82 = client->addr;
8884#line 581
8885 __cil_tmp83 = (int )__cil_tmp82;
8886#line 581
8887 __cil_tmp84 = state->route_in;
8888#line 581
8889 __cil_tmp85 = state->route_out;
8890#line 581
8891 printk("<6>%s %d-%04x: Routing: 0x%08x (input) 0x%08x (output)\n", __cil_tmp81,
8892 tmp___20, __cil_tmp83, __cil_tmp84, __cil_tmp85);
8893#line 583
8894 __cil_tmp86 = client->adapter;
8895#line 583
8896 tmp___21 = i2c_adapter_id(__cil_tmp86);
8897#line 583
8898 __cil_tmp87 = client->driver;
8899#line 583
8900 __cil_tmp88 = __cil_tmp87->driver.name;
8901#line 583
8902 __cil_tmp89 = client->addr;
8903#line 583
8904 __cil_tmp90 = (int )__cil_tmp89;
8905#line 583
8906 __cil_tmp91 = state->acb;
8907#line 583
8908 printk("<6>%s %d-%04x: ACB: 0x%04x\n", __cil_tmp88, tmp___21, __cil_tmp90,
8909 __cil_tmp91);
8910 }
8911#line 584
8912 return (0);
8913}
8914}
8915#line 587 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
8916static int msp_suspend(struct i2c_client *client , pm_message_t state )
8917{ int tmp___7 ;
8918 struct i2c_adapter *__cil_tmp4 ;
8919 struct i2c_driver *__cil_tmp5 ;
8920 char const *__cil_tmp6 ;
8921 unsigned short __cil_tmp7 ;
8922 int __cil_tmp8 ;
8923
8924 {
8925 {
8926#line 589
8927 while (1) {
8928 while_continue: ;
8929
8930#line 589
8931 if (msp_debug >= 1) {
8932 {
8933#line 589
8934 __cil_tmp4 = client->adapter;
8935#line 589
8936 tmp___7 = i2c_adapter_id(__cil_tmp4);
8937#line 589
8938 __cil_tmp5 = client->driver;
8939#line 589
8940 __cil_tmp6 = __cil_tmp5->driver.name;
8941#line 589
8942 __cil_tmp7 = client->addr;
8943#line 589
8944 __cil_tmp8 = (int )__cil_tmp7;
8945#line 589
8946 printk("<7>%s %d-%04x: suspend\n", __cil_tmp6, tmp___7, __cil_tmp8);
8947 }
8948 } else {
8949
8950 }
8951#line 589
8952 goto while_break;
8953 }
8954 while_break___0: ;
8955 }
8956
8957 while_break:
8958 {
8959#line 590
8960 msp_reset(client);
8961 }
8962#line 591
8963 return (0);
8964}
8965}
8966#line 594 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
8967static int msp_resume(struct i2c_client *client )
8968{ int tmp___7 ;
8969 struct i2c_adapter *__cil_tmp3 ;
8970 struct i2c_driver *__cil_tmp4 ;
8971 char const *__cil_tmp5 ;
8972 unsigned short __cil_tmp6 ;
8973 int __cil_tmp7 ;
8974
8975 {
8976 {
8977#line 596
8978 while (1) {
8979 while_continue: ;
8980
8981#line 596
8982 if (msp_debug >= 1) {
8983 {
8984#line 596
8985 __cil_tmp3 = client->adapter;
8986#line 596
8987 tmp___7 = i2c_adapter_id(__cil_tmp3);
8988#line 596
8989 __cil_tmp4 = client->driver;
8990#line 596
8991 __cil_tmp5 = __cil_tmp4->driver.name;
8992#line 596
8993 __cil_tmp6 = client->addr;
8994#line 596
8995 __cil_tmp7 = (int )__cil_tmp6;
8996#line 596
8997 printk("<7>%s %d-%04x: resume\n", __cil_tmp5, tmp___7, __cil_tmp7);
8998 }
8999 } else {
9000
9001 }
9002#line 596
9003 goto while_break;
9004 }
9005 while_break___0: ;
9006 }
9007
9008 while_break:
9009 {
9010#line 597
9011 msp_wake_thread(client);
9012 }
9013#line 598
9014 return (0);
9015}
9016}
9017#line 603 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
9018static struct v4l2_ctrl_ops const msp_ctrl_ops = {(int (*)(struct v4l2_ctrl *ctrl ))0, (int (*)(struct v4l2_ctrl *ctrl ))0, & msp_s_ctrl};
9019#line 607 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
9020static struct v4l2_subdev_core_ops const msp_core_ops =
9021#line 607
9022 {& msp_g_chip_ident, & msp_log_status, (int (*)(struct v4l2_subdev *sd , size_t n ,
9023 struct v4l2_subdev_io_pin_config *pincfg ))0,
9024 (int (*)(struct v4l2_subdev *sd , u32 val ))0, (int (*)(struct v4l2_subdev *sd ))0,
9025 (int (*)(struct v4l2_subdev *sd , u32 val ))0, (int (*)(struct v4l2_subdev *sd ,
9026 u32 val ))0, & v4l2_subdev_queryctrl,
9027 & v4l2_subdev_g_ctrl, & v4l2_subdev_s_ctrl, & v4l2_subdev_g_ext_ctrls, & v4l2_subdev_s_ext_ctrls,
9028 & v4l2_subdev_try_ext_ctrls, & v4l2_subdev_querymenu, & msp_s_std, (long (*)(struct v4l2_subdev *sd ,
9029 unsigned int cmd ,
9030 void *arg ))0,
9031 (int (*)(struct v4l2_subdev *sd , struct v4l2_dbg_register *reg ))0, (int (*)(struct v4l2_subdev *sd ,
9032 struct v4l2_dbg_register *reg ))0,
9033 (int (*)(struct v4l2_subdev *sd , int on ))0, (int (*)(struct v4l2_subdev *sd ,
9034 u32 status , bool *handled ))0,
9035 (int (*)(struct v4l2_subdev *sd , struct v4l2_fh *fh , struct v4l2_event_subscription *sub ))0,
9036 (int (*)(struct v4l2_subdev *sd , struct v4l2_fh *fh , struct v4l2_event_subscription *sub ))0};
9037#line 620 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
9038static struct v4l2_subdev_tuner_ops const msp_tuner_ops =
9039#line 620
9040 {& msp_s_radio, & msp_s_frequency, (int (*)(struct v4l2_subdev *sd , struct v4l2_frequency *freq ))0,
9041 & msp_g_tuner, & msp_s_tuner, (int (*)(struct v4l2_subdev *sd , struct v4l2_modulator *vm ))0,
9042 (int (*)(struct v4l2_subdev *sd , struct v4l2_modulator *vm ))0, (int (*)(struct v4l2_subdev *sd ,
9043 struct tuner_setup *type ))0,
9044 (int (*)(struct v4l2_subdev *sd , struct v4l2_priv_tun_config const *config ))0};
9045#line 627 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
9046static struct v4l2_subdev_audio_ops const msp_audio_ops = {(int (*)(struct v4l2_subdev *sd , u32 freq ))0, & msp_s_i2s_clock_freq, & msp_s_routing,
9047 (int (*)(struct v4l2_subdev *sd , int enable ))0};
9048#line 632 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
9049static struct v4l2_subdev_ops const msp_ops =
9050#line 632
9051 {& msp_core_ops, & msp_tuner_ops, & msp_audio_ops, (struct v4l2_subdev_video_ops const *)0,
9052 (struct v4l2_subdev_vbi_ops const *)0, (struct v4l2_subdev_ir_ops const *)0,
9053 (struct v4l2_subdev_sensor_ops const *)0, (struct v4l2_subdev_pad_ops const *)0};
9054#line 671 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
9055static struct lock_class_key __key___5 ;
9056#line 640 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
9057static int msp_probe(struct i2c_client *client , struct i2c_device_id const *id )
9058{ struct msp_state *state ;
9059 struct v4l2_subdev *sd ;
9060 struct v4l2_ctrl_handler *hdl ;
9061 int (*thread_func)(void *data ) ;
9062 int msp_hard ;
9063 int msp_family ;
9064 int msp_revision ;
9065 int msp_product ;
9066 int msp_prod_hi ;
9067 int msp_prod_lo ;
9068 int msp_rom ;
9069 int tmp___7 ;
9070 int tmp___8 ;
9071 void *tmp___9 ;
9072 int tmp___10 ;
9073 int tmp___11 ;
9074 int tmp___12 ;
9075 int tmp___13 ;
9076 int tmp___14 ;
9077 int tmp___15 ;
9078 int tmp___16 ;
9079 int tmp___17 ;
9080 int tmp___18 ;
9081 int tmp___19 ;
9082 int tmp___20 ;
9083 int tmp___21 ;
9084 int tmp___22 ;
9085 int err ;
9086 int tmp___23 ;
9087 int tmp___24 ;
9088 struct task_struct *__k ;
9089 struct task_struct *tmp___25 ;
9090 long tmp___26 ;
9091 int tmp___27 ;
9092 long tmp___28 ;
9093 long tmp ;
9094 long tmp___29 ;
9095 long tmp___30 ;
9096 long tmp___31 ;
9097 void *__cil_tmp42 ;
9098 char *__cil_tmp43 ;
9099 struct i2c_adapter *__cil_tmp44 ;
9100 struct i2c_driver *__cil_tmp45 ;
9101 char const *__cil_tmp46 ;
9102 unsigned short __cil_tmp47 ;
9103 int __cil_tmp48 ;
9104 wait_queue_head_t *__cil_tmp49 ;
9105 int __cil_tmp50 ;
9106 int __cil_tmp51 ;
9107 int __cil_tmp52 ;
9108 struct i2c_adapter *__cil_tmp53 ;
9109 struct i2c_driver *__cil_tmp54 ;
9110 char const *__cil_tmp55 ;
9111 unsigned short __cil_tmp56 ;
9112 int __cil_tmp57 ;
9113 int __cil_tmp58 ;
9114 int __cil_tmp59 ;
9115 int __cil_tmp60 ;
9116 int __cil_tmp61 ;
9117 int __cil_tmp62 ;
9118 struct i2c_adapter *__cil_tmp63 ;
9119 struct i2c_driver *__cil_tmp64 ;
9120 char const *__cil_tmp65 ;
9121 unsigned short __cil_tmp66 ;
9122 int __cil_tmp67 ;
9123 void const *__cil_tmp68 ;
9124 int __cil_tmp69 ;
9125 int __cil_tmp70 ;
9126 int __cil_tmp71 ;
9127 int __cil_tmp72 ;
9128 int __cil_tmp73 ;
9129 int __cil_tmp74 ;
9130 int __cil_tmp75 ;
9131 int __cil_tmp76 ;
9132 int __cil_tmp77 ;
9133 int __cil_tmp78 ;
9134 int __cil_tmp79 ;
9135 int __cil_tmp80 ;
9136 int __cil_tmp81 ;
9137 int __cil_tmp82 ;
9138 int __cil_tmp83 ;
9139 int __cil_tmp84 ;
9140 int __cil_tmp85 ;
9141 int __cil_tmp86 ;
9142 int __cil_tmp87 ;
9143 int __cil_tmp88 ;
9144 u32 __cil_tmp89 ;
9145 u32 __cil_tmp90 ;
9146 u32 __cil_tmp91 ;
9147 u32 __cil_tmp92 ;
9148 u32 __cil_tmp93 ;
9149 u32 __cil_tmp94 ;
9150 u32 __cil_tmp95 ;
9151 u32 __cil_tmp96 ;
9152 u32 __cil_tmp97 ;
9153 u32 __cil_tmp98 ;
9154 u32 __cil_tmp99 ;
9155 u32 __cil_tmp100 ;
9156 void const *__cil_tmp101 ;
9157 struct v4l2_ctrl **__cil_tmp102 ;
9158 struct i2c_adapter *__cil_tmp103 ;
9159 struct i2c_driver *__cil_tmp104 ;
9160 char const *__cil_tmp105 ;
9161 unsigned short __cil_tmp106 ;
9162 int __cil_tmp107 ;
9163 unsigned short __cil_tmp108 ;
9164 int __cil_tmp109 ;
9165 int __cil_tmp110 ;
9166 struct i2c_adapter *__cil_tmp111 ;
9167 char *__cil_tmp112 ;
9168 struct i2c_adapter *__cil_tmp113 ;
9169 struct i2c_driver *__cil_tmp114 ;
9170 char const *__cil_tmp115 ;
9171 unsigned short __cil_tmp116 ;
9172 int __cil_tmp117 ;
9173 char *__cil_tmp118 ;
9174 int __cil_tmp119 ;
9175 int __cil_tmp120 ;
9176 int __cil_tmp121 ;
9177 void *__cil_tmp122 ;
9178 void const *__cil_tmp123 ;
9179 struct task_struct *__cil_tmp124 ;
9180 void const *__cil_tmp125 ;
9181 struct i2c_adapter *__cil_tmp126 ;
9182 struct i2c_driver *__cil_tmp127 ;
9183 char const *__cil_tmp128 ;
9184 unsigned short __cil_tmp129 ;
9185 int __cil_tmp130 ;
9186
9187 {
9188#line 645
9189 __cil_tmp42 = (void *)0;
9190#line 645
9191 thread_func = (int (*)(void *data ))__cil_tmp42;
9192#line 652
9193 if (! id) {
9194 {
9195#line 653
9196 __cil_tmp43 = & client->name[0];
9197#line 653
9198 strlcpy(__cil_tmp43, "msp3400", 20UL);
9199 }
9200 } else {
9201
9202 }
9203 {
9204#line 655
9205 tmp___8 = msp_reset(client);
9206 }
9207#line 655
9208 if (tmp___8 == -1) {
9209 {
9210#line 656
9211 while (1) {
9212 while_continue: ;
9213
9214#line 656
9215 if (msp_debug >= 1) {
9216 {
9217#line 656
9218 __cil_tmp44 = client->adapter;
9219#line 656
9220 tmp___7 = i2c_adapter_id(__cil_tmp44);
9221#line 656
9222 __cil_tmp45 = client->driver;
9223#line 656
9224 __cil_tmp46 = __cil_tmp45->driver.name;
9225#line 656
9226 __cil_tmp47 = client->addr;
9227#line 656
9228 __cil_tmp48 = (int )__cil_tmp47;
9229#line 656
9230 printk("<7>%s %d-%04x: msp3400 not found\n", __cil_tmp46, tmp___7, __cil_tmp48);
9231 }
9232 } else {
9233
9234 }
9235#line 656
9236 goto while_break;
9237 }
9238 while_break___3: ;
9239 }
9240
9241 while_break: ;
9242#line 657
9243 return (-19);
9244 } else {
9245
9246 }
9247 {
9248#line 660
9249 tmp___9 = kzalloc(2200UL, 208U);
9250#line 660
9251 state = (struct msp_state *)tmp___9;
9252 }
9253#line 661
9254 if (! state) {
9255#line 662
9256 return (-12);
9257 } else {
9258
9259 }
9260 {
9261#line 664
9262 sd = & state->sd;
9263#line 665
9264 v4l2_i2c_subdev_init(sd, client, & msp_ops);
9265#line 667
9266 state->v4l2_std = 45056ULL;
9267#line 668
9268 state->audmode = 1;
9269#line 669
9270 state->input = -1;
9271#line 670
9272 state->i2s_mode = 0;
9273 }
9274 {
9275#line 671
9276 while (1) {
9277 while_continue___0: ;
9278 {
9279#line 671
9280 __cil_tmp49 = & state->wq;
9281#line 671
9282 __init_waitqueue_head(__cil_tmp49, & __key___5);
9283 }
9284#line 671
9285 goto while_break___0;
9286 }
9287 while_break___4: ;
9288 }
9289
9290 while_break___0:
9291 {
9292#line 673
9293 state->route_in = (u32 )0;
9294#line 674
9295 __cil_tmp50 = 4 << 4;
9296#line 674
9297 __cil_tmp51 = 2 | __cil_tmp50;
9298#line 674
9299 state->route_out = (u32 )__cil_tmp51;
9300#line 676
9301 state->rev1 = msp_read_dsp(client, 30);
9302 }
9303 {
9304#line 677
9305 __cil_tmp52 = state->rev1;
9306#line 677
9307 if (__cil_tmp52 != -1) {
9308 {
9309#line 678
9310 state->rev2 = msp_read_dsp(client, 31);
9311 }
9312 } else {
9313
9314 }
9315 }
9316 {
9317#line 679
9318 while (1) {
9319 while_continue___1: ;
9320
9321#line 679
9322 if (msp_debug >= 1) {
9323 {
9324#line 679
9325 __cil_tmp53 = client->adapter;
9326#line 679
9327 tmp___10 = i2c_adapter_id(__cil_tmp53);
9328#line 679
9329 __cil_tmp54 = client->driver;
9330#line 679
9331 __cil_tmp55 = __cil_tmp54->driver.name;
9332#line 679
9333 __cil_tmp56 = client->addr;
9334#line 679
9335 __cil_tmp57 = (int )__cil_tmp56;
9336#line 679
9337 __cil_tmp58 = state->rev1;
9338#line 679
9339 __cil_tmp59 = state->rev2;
9340#line 679
9341 printk("<7>%s %d-%04x: rev1=0x%04x, rev2=0x%04x\n", __cil_tmp55, tmp___10, __cil_tmp57,
9342 __cil_tmp58, __cil_tmp59);
9343 }
9344 } else {
9345
9346 }
9347#line 679
9348 goto while_break___1;
9349 }
9350 while_break___5: ;
9351 }
9352
9353 while_break___1: ;
9354 {
9355#line 681
9356 __cil_tmp60 = state->rev1;
9357#line 681
9358 if (__cil_tmp60 == -1) {
9359#line 681
9360 goto _L;
9361 } else {
9362 {
9363#line 681
9364 __cil_tmp61 = state->rev1;
9365#line 681
9366 if (__cil_tmp61 == 0) {
9367 {
9368#line 681
9369 __cil_tmp62 = state->rev2;
9370#line 681
9371 if (__cil_tmp62 == 0) {
9372 _L:
9373 {
9374#line 682
9375 while (1) {
9376 while_continue___2: ;
9377
9378#line 682
9379 if (msp_debug >= 1) {
9380 {
9381#line 682
9382 __cil_tmp63 = client->adapter;
9383#line 682
9384 tmp___11 = i2c_adapter_id(__cil_tmp63);
9385#line 682
9386 __cil_tmp64 = client->driver;
9387#line 682
9388 __cil_tmp65 = __cil_tmp64->driver.name;
9389#line 682
9390 __cil_tmp66 = client->addr;
9391#line 682
9392 __cil_tmp67 = (int )__cil_tmp66;
9393#line 682
9394 printk("<7>%s %d-%04x: not an msp3400 (cannot read chip version)\n", __cil_tmp65,
9395 tmp___11, __cil_tmp67);
9396 }
9397 } else {
9398
9399 }
9400#line 682
9401 goto while_break___2;
9402 }
9403 while_break___6: ;
9404 }
9405
9406 while_break___2:
9407 {
9408#line 684
9409 __cil_tmp68 = (void const *)state;
9410#line 684
9411 kfree(__cil_tmp68);
9412 }
9413#line 685
9414 return (-19);
9415 } else {
9416
9417 }
9418 }
9419 } else {
9420
9421 }
9422 }
9423 }
9424 }
9425#line 688
9426 __cil_tmp69 = state->rev1;
9427#line 688
9428 __cil_tmp70 = __cil_tmp69 >> 4;
9429#line 688
9430 __cil_tmp71 = __cil_tmp70 & 15;
9431#line 688
9432 msp_family = __cil_tmp71 + 3;
9433#line 689
9434 __cil_tmp72 = state->rev2;
9435#line 689
9436 __cil_tmp73 = __cil_tmp72 >> 8;
9437#line 689
9438 msp_product = __cil_tmp73 & 255;
9439#line 690
9440 msp_prod_hi = msp_product / 10;
9441#line 691
9442 msp_prod_lo = msp_product % 10;
9443#line 692
9444 __cil_tmp74 = state->rev1;
9445#line 692
9446 __cil_tmp75 = __cil_tmp74 & 15;
9447#line 692
9448 msp_revision = __cil_tmp75 + 64;
9449#line 693
9450 __cil_tmp76 = state->rev1;
9451#line 693
9452 __cil_tmp77 = __cil_tmp76 >> 8;
9453#line 693
9454 __cil_tmp78 = __cil_tmp77 & 255;
9455#line 693
9456 msp_hard = __cil_tmp78 + 64;
9457#line 694
9458 __cil_tmp79 = state->rev2;
9459#line 694
9460 msp_rom = __cil_tmp79 & 31;
9461#line 696
9462 __cil_tmp80 = msp_product * 10;
9463#line 696
9464 __cil_tmp81 = msp_family * 10000;
9465#line 696
9466 __cil_tmp82 = __cil_tmp81 + 4000;
9467#line 696
9468 __cil_tmp83 = __cil_tmp82 + __cil_tmp80;
9469#line 696
9470 __cil_tmp84 = __cil_tmp83 + msp_revision;
9471#line 696
9472 state->ident = __cil_tmp84 - 64;
9473#line 700
9474 if (msp_prod_hi == 1) {
9475#line 700
9476 tmp___12 = 1;
9477 } else
9478#line 700
9479 if (msp_prod_hi == 5) {
9480#line 700
9481 tmp___12 = 1;
9482 } else {
9483#line 700
9484 tmp___12 = 0;
9485 }
9486#line 700
9487 state->has_nicam = (u8 )tmp___12;
9488#line 703
9489 __cil_tmp85 = msp_revision >= 71;
9490#line 703
9491 state->has_radio = (u8 )__cil_tmp85;
9492#line 706
9493 __cil_tmp86 = msp_prod_lo < 5;
9494#line 706
9495 state->has_headphones = (u8 )__cil_tmp86;
9496#line 709
9497 if (msp_family >= 4) {
9498#line 709
9499 tmp___13 = 1;
9500 } else
9501#line 709
9502 if (msp_prod_lo < 7) {
9503#line 709
9504 tmp___13 = 1;
9505 } else {
9506#line 709
9507 tmp___13 = 0;
9508 }
9509#line 709
9510 state->has_scart2 = (u8 )tmp___13;
9511#line 712
9512 if (msp_family >= 4) {
9513#line 712
9514 tmp___14 = 1;
9515 } else
9516#line 712
9517 if (msp_prod_lo < 5) {
9518#line 712
9519 tmp___14 = 1;
9520 } else {
9521#line 712
9522 tmp___14 = 0;
9523 }
9524#line 712
9525 state->has_scart3 = (u8 )tmp___14;
9526#line 715
9527 if (msp_family >= 4) {
9528#line 715
9529 tmp___15 = 1;
9530 } else
9531#line 715
9532 if (msp_revision >= 68) {
9533#line 715
9534 if (msp_prod_lo < 5) {
9535#line 715
9536 tmp___15 = 1;
9537 } else {
9538#line 715
9539 tmp___15 = 0;
9540 }
9541 } else {
9542#line 715
9543 tmp___15 = 0;
9544 }
9545#line 715
9546 state->has_scart4 = (u8 )tmp___15;
9547#line 719
9548 if (msp_family >= 4) {
9549#line 719
9550 tmp___16 = 1;
9551 } else
9552#line 719
9553 if (msp_prod_lo < 5) {
9554#line 719
9555 tmp___16 = 1;
9556 } else {
9557#line 719
9558 tmp___16 = 0;
9559 }
9560#line 719
9561 state->has_scart2_out = (u8 )tmp___16;
9562#line 722
9563 if (msp_revision > 67) {
9564#line 722
9565 if (state->has_scart2_out) {
9566#line 722
9567 tmp___17 = 1;
9568 } else {
9569#line 722
9570 tmp___17 = 0;
9571 }
9572 } else {
9573#line 722
9574 tmp___17 = 0;
9575 }
9576#line 722
9577 state->has_scart2_out_volume = (u8 )tmp___17;
9578#line 725
9579 if (msp_revision >= 71) {
9580#line 725
9581 if (msp_prod_lo < 7) {
9582#line 725
9583 tmp___18 = 1;
9584 } else {
9585#line 725
9586 tmp___18 = 0;
9587 }
9588 } else {
9589#line 725
9590 tmp___18 = 0;
9591 }
9592#line 725
9593 state->has_i2s_conf = (u8 )tmp___18;
9594#line 729
9595 if (msp_revision >= 68) {
9596#line 729
9597 if (msp_prod_lo < 5) {
9598#line 729
9599 tmp___19 = 1;
9600 } else {
9601#line 729
9602 tmp___19 = 0;
9603 }
9604 } else {
9605#line 729
9606 tmp___19 = 0;
9607 }
9608#line 729
9609 state->has_subwoofer = (u8 )tmp___19;
9610#line 733
9611 __cil_tmp87 = msp_prod_lo < 7;
9612#line 733
9613 state->has_sound_processing = (u8 )__cil_tmp87;
9614#line 736
9615 if (msp_revision == 71) {
9616#line 736
9617 if (msp_prod_lo == 1) {
9618#line 736
9619 tmp___20 = 1;
9620 } else {
9621#line 736
9622 tmp___20 = 0;
9623 }
9624 } else {
9625#line 736
9626 tmp___20 = 0;
9627 }
9628#line 736
9629 state->has_virtual_dolby_surround = (u8 )tmp___20;
9630#line 739
9631 if (msp_revision == 71) {
9632#line 739
9633 if (msp_prod_lo == 2) {
9634#line 739
9635 tmp___21 = 1;
9636 } else {
9637#line 739
9638 tmp___21 = 0;
9639 }
9640 } else {
9641#line 739
9642 tmp___21 = 0;
9643 }
9644#line 739
9645 state->has_dolby_pro_logic = (u8 )tmp___21;
9646#line 743
9647 if (msp_family == 3) {
9648#line 743
9649 if (msp_revision == 71) {
9650#line 743
9651 if (msp_prod_hi == 3) {
9652#line 743
9653 tmp___22 = 1;
9654 } else {
9655#line 743
9656 tmp___22 = 0;
9657 }
9658 } else {
9659#line 743
9660 tmp___22 = 0;
9661 }
9662 } else {
9663#line 743
9664 tmp___22 = 0;
9665 }
9666#line 743
9667 state->force_btsc = (u8 )tmp___22;
9668#line 746
9669 state->opmode = opmode;
9670 {
9671#line 747
9672 __cil_tmp88 = state->opmode;
9673#line 747
9674 if (__cil_tmp88 == -1) {
9675#line 749
9676 if (msp_revision >= 71) {
9677#line 750
9678 state->opmode = 2;
9679 } else
9680#line 752
9681 if (msp_revision >= 68) {
9682#line 753
9683 state->opmode = 1;
9684 } else {
9685#line 755
9686 state->opmode = 0;
9687 }
9688 } else {
9689
9690 }
9691 }
9692 {
9693#line 758
9694 hdl = & state->hdl;
9695#line 759
9696 v4l2_ctrl_handler_init(hdl, 6U);
9697 }
9698#line 760
9699 if (state->has_sound_processing) {
9700 {
9701#line 761
9702 __cil_tmp89 = (u32 )9963783;
9703#line 761
9704 __cil_tmp90 = (u32 )655;
9705#line 761
9706 v4l2_ctrl_new_std(hdl, & msp_ctrl_ops, __cil_tmp89, 0, 65535, __cil_tmp90, 32768);
9707#line 763
9708 __cil_tmp91 = (u32 )9963784;
9709#line 763
9710 __cil_tmp92 = (u32 )655;
9711#line 763
9712 v4l2_ctrl_new_std(hdl, & msp_ctrl_ops, __cil_tmp91, 0, 65535, __cil_tmp92, 32768);
9713#line 765
9714 __cil_tmp93 = (u32 )9963786;
9715#line 765
9716 __cil_tmp94 = (u32 )1;
9717#line 765
9718 v4l2_ctrl_new_std(hdl, & msp_ctrl_ops, __cil_tmp93, 0, 1, __cil_tmp94, 0);
9719 }
9720 } else {
9721
9722 }
9723 {
9724#line 768
9725 __cil_tmp95 = (u32 )9963781;
9726#line 768
9727 __cil_tmp96 = (u32 )655;
9728#line 768
9729 state->__annonCompField52.volume = v4l2_ctrl_new_std(hdl, & msp_ctrl_ops, __cil_tmp95,
9730 0, 65535, __cil_tmp96, 58880);
9731#line 770
9732 __cil_tmp97 = (u32 )9963782;
9733#line 770
9734 __cil_tmp98 = (u32 )655;
9735#line 770
9736 v4l2_ctrl_new_std(hdl, & msp_ctrl_ops, __cil_tmp97, 0, 65535, __cil_tmp98, 32768);
9737#line 772
9738 __cil_tmp99 = (u32 )9963785;
9739#line 772
9740 __cil_tmp100 = (u32 )1;
9741#line 772
9742 state->__annonCompField52.muted = v4l2_ctrl_new_std(hdl, & msp_ctrl_ops, __cil_tmp99,
9743 0, 1, __cil_tmp100, 0);
9744#line 774
9745 sd->ctrl_handler = hdl;
9746 }
9747#line 775
9748 if (hdl->error) {
9749 {
9750#line 776
9751 err = hdl->error;
9752#line 778
9753 v4l2_ctrl_handler_free(hdl);
9754#line 779
9755 __cil_tmp101 = (void const *)state;
9756#line 779
9757 kfree(__cil_tmp101);
9758 }
9759#line 780
9760 return (err);
9761 } else {
9762
9763 }
9764 {
9765#line 783
9766 __cil_tmp102 = & state->__annonCompField52.volume;
9767#line 783
9768 v4l2_ctrl_cluster(2U, __cil_tmp102);
9769#line 784
9770 v4l2_ctrl_handler_setup(hdl);
9771#line 787
9772 __cil_tmp103 = client->adapter;
9773#line 787
9774 tmp___23 = i2c_adapter_id(__cil_tmp103);
9775#line 787
9776 __cil_tmp104 = client->driver;
9777#line 787
9778 __cil_tmp105 = __cil_tmp104->driver.name;
9779#line 787
9780 __cil_tmp106 = client->addr;
9781#line 787
9782 __cil_tmp107 = (int )__cil_tmp106;
9783#line 787
9784 __cil_tmp108 = client->addr;
9785#line 787
9786 __cil_tmp109 = (int )__cil_tmp108;
9787#line 787
9788 __cil_tmp110 = __cil_tmp109 << 1;
9789#line 787
9790 __cil_tmp111 = client->adapter;
9791#line 787
9792 __cil_tmp112 = & __cil_tmp111->name[0];
9793#line 787
9794 printk("<6>%s %d-%04x: MSP%d4%02d%c-%c%d found @ 0x%x (%s)\n", __cil_tmp105, tmp___23,
9795 __cil_tmp107, msp_family, msp_product, msp_revision, msp_hard, msp_rom, __cil_tmp110,
9796 __cil_tmp112);
9797#line 791
9798 __cil_tmp113 = client->adapter;
9799#line 791
9800 tmp___24 = i2c_adapter_id(__cil_tmp113);
9801#line 791
9802 __cil_tmp114 = client->driver;
9803#line 791
9804 __cil_tmp115 = __cil_tmp114->driver.name;
9805#line 791
9806 __cil_tmp116 = client->addr;
9807#line 791
9808 __cil_tmp117 = (int )__cil_tmp116;
9809#line 791
9810 __cil_tmp118 = & client->name[0];
9811#line 791
9812 printk("<6>%s %d-%04x: %s ", __cil_tmp115, tmp___24, __cil_tmp117, __cil_tmp118);
9813 }
9814#line 792
9815 if (state->has_nicam) {
9816#line 792
9817 if (state->has_radio) {
9818 {
9819#line 793
9820 printk("<c>supports nicam and radio, ");
9821 }
9822 } else {
9823#line 792
9824 goto _L___0;
9825 }
9826 } else
9827 _L___0:
9828#line 794
9829 if (state->has_nicam) {
9830 {
9831#line 795
9832 printk("<c>supports nicam, ");
9833 }
9834 } else
9835#line 796
9836 if (state->has_radio) {
9837 {
9838#line 797
9839 printk("<c>supports radio, ");
9840 }
9841 } else {
9842
9843 }
9844 {
9845#line 798
9846 printk("<c>mode is ");
9847 }
9848 {
9849#line 802
9850 __cil_tmp119 = state->opmode;
9851#line 802
9852 if (__cil_tmp119 == 0) {
9853#line 802
9854 goto case_0;
9855 } else {
9856 {
9857#line 806
9858 __cil_tmp120 = state->opmode;
9859#line 806
9860 if (__cil_tmp120 == 1) {
9861#line 806
9862 goto case_1;
9863 } else {
9864 {
9865#line 810
9866 __cil_tmp121 = state->opmode;
9867#line 810
9868 if (__cil_tmp121 == 2) {
9869#line 810
9870 goto case_2;
9871 } else
9872#line 801
9873 if (0) {
9874 case_0:
9875 {
9876#line 803
9877 printk("<c>manual");
9878#line 804
9879 thread_func = & msp3400c_thread;
9880 }
9881#line 805
9882 goto switch_break;
9883 case_1:
9884 {
9885#line 807
9886 printk("<c>autodetect");
9887#line 808
9888 thread_func = & msp3410d_thread;
9889 }
9890#line 809
9891 goto switch_break;
9892 case_2:
9893 {
9894#line 811
9895 printk("<c>autodetect and autoselect");
9896#line 812
9897 thread_func = & msp34xxg_thread;
9898 }
9899#line 813
9900 goto switch_break;
9901 } else {
9902 switch_break: ;
9903 }
9904 }
9905 }
9906 }
9907 }
9908 }
9909 {
9910#line 815
9911 printk("<c>\n");
9912 }
9913#line 818
9914 if (thread_func) {
9915 {
9916#line 819
9917 __cil_tmp122 = (void *)client;
9918#line 819
9919 tmp___25 = kthread_create_on_node(thread_func, __cil_tmp122, -1, "msp34xx");
9920#line 819
9921 __k = tmp___25;
9922#line 819
9923 __cil_tmp123 = (void const *)__k;
9924#line 819
9925 tmp___30 = (long )IS_ERR(__cil_tmp123);
9926#line 819
9927 tmp = tmp___30;
9928#line 819
9929 tmp___26 = tmp;
9930 }
9931#line 819
9932 if (tmp___26) {
9933
9934 } else {
9935 {
9936#line 819
9937 wake_up_process(__k);
9938 }
9939 }
9940 {
9941#line 819
9942 state->kthread = __k;
9943#line 821
9944 __cil_tmp124 = state->kthread;
9945#line 821
9946 __cil_tmp125 = (void const *)__cil_tmp124;
9947#line 821
9948 tmp___31 = (long )IS_ERR(__cil_tmp125);
9949#line 821
9950 tmp___29 = tmp___31;
9951#line 821
9952 tmp___28 = tmp___29;
9953 }
9954#line 821
9955 if (tmp___28) {
9956 {
9957#line 822
9958 __cil_tmp126 = client->adapter;
9959#line 822
9960 tmp___27 = i2c_adapter_id(__cil_tmp126);
9961#line 822
9962 __cil_tmp127 = client->driver;
9963#line 822
9964 __cil_tmp128 = __cil_tmp127->driver.name;
9965#line 822
9966 __cil_tmp129 = client->addr;
9967#line 822
9968 __cil_tmp130 = (int )__cil_tmp129;
9969#line 822
9970 printk("<4>%s %d-%04x: kernel_thread() failed\n", __cil_tmp128, tmp___27, __cil_tmp130);
9971 }
9972 } else {
9973
9974 }
9975 {
9976#line 823
9977 msp_wake_thread(client);
9978 }
9979 } else {
9980
9981 }
9982#line 825
9983 return (0);
9984}
9985}
9986#line 828 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
9987static int msp_remove(struct i2c_client *client )
9988{ struct msp_state *state ;
9989 void *tmp___7 ;
9990 struct msp_state *tmp___8 ;
9991 struct i2c_client const *__cil_tmp5 ;
9992 struct v4l2_subdev *__cil_tmp6 ;
9993 struct v4l2_subdev *__cil_tmp7 ;
9994 struct task_struct *__cil_tmp8 ;
9995 struct v4l2_ctrl_handler *__cil_tmp9 ;
9996 void const *__cil_tmp10 ;
9997
9998 {
9999 {
10000#line 830
10001 __cil_tmp5 = (struct i2c_client const *)client;
10002#line 830
10003 tmp___7 = i2c_get_clientdata(__cil_tmp5);
10004#line 830
10005 __cil_tmp6 = (struct v4l2_subdev *)tmp___7;
10006#line 830
10007 tmp___8 = to_state(__cil_tmp6);
10008#line 830
10009 state = tmp___8;
10010#line 832
10011 __cil_tmp7 = & state->sd;
10012#line 832
10013 v4l2_device_unregister_subdev(__cil_tmp7);
10014 }
10015#line 834
10016 if (state->kthread) {
10017 {
10018#line 835
10019 state->restart = 1U;
10020#line 836
10021 __cil_tmp8 = state->kthread;
10022#line 836
10023 kthread_stop(__cil_tmp8);
10024 }
10025 } else {
10026
10027 }
10028 {
10029#line 838
10030 msp_reset(client);
10031#line 840
10032 __cil_tmp9 = & state->hdl;
10033#line 840
10034 v4l2_ctrl_handler_free(__cil_tmp9);
10035#line 841
10036 __cil_tmp10 = (void const *)state;
10037#line 841
10038 kfree(__cil_tmp10);
10039 }
10040#line 842
10041 return (0);
10042}
10043}
10044#line 847 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
10045static struct i2c_device_id const msp_id[1] = { {{(char )'m', (char )'s', (char )'p', (char )'3', (char )'4', (char )'0', (char )'0',
10046 (char )'\000', (char)0, (char)0, (char)0, (char)0, (char)0, (char)0, (char)0,
10047 (char)0, (char)0, (char)0, (char)0, (char)0}, (kernel_ulong_t )0}};
10048#line 851
10049extern struct i2c_device_id const __mod_i2c_device_table __attribute__((__unused__,
10050__alias__("msp_id"))) ;
10051#line 853 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
10052static struct i2c_driver msp_driver =
10053#line 853
10054 {0U, (int (*)(struct i2c_adapter * ))0, (int (*)(struct i2c_adapter * ))0, & msp_probe,
10055 & msp_remove, (void (*)(struct i2c_client * ))0, & msp_suspend, & msp_resume,
10056 (void (*)(struct i2c_client * , unsigned int data ))0, (int (*)(struct i2c_client *client ,
10057 unsigned int cmd ,
10058 void *arg ))0,
10059 {"msp3400", (struct bus_type *)0, & __this_module, (char const *)0, (_Bool)0,
10060 (struct of_device_id const *)0, (int (*)(struct device *dev ))0, (int (*)(struct device *dev ))0,
10061 (void (*)(struct device *dev ))0, (int (*)(struct device *dev , pm_message_t state ))0,
10062 (int (*)(struct device *dev ))0, (struct attribute_group const **)0, (struct dev_pm_ops const *)0,
10063 (struct driver_private *)0}, msp_id, (int (*)(struct i2c_client * , struct i2c_board_info * ))0,
10064 (unsigned short const *)0, {(struct list_head *)0, (struct list_head *)0}};
10065#line 865
10066static int init_msp(void) __attribute__((__section__(".init.text"), __no_instrument_function__)) ;
10067#line 865
10068static int init_msp(void) __attribute__((__section__(".init.text"), __no_instrument_function__)) ;
10069#line 865 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
10070static int init_msp(void)
10071{ int tmp___7 ;
10072
10073 {
10074 {
10075#line 867
10076 tmp___7 = i2c_add_driver(& msp_driver);
10077 }
10078#line 867
10079 return (tmp___7);
10080}
10081}
10082#line 870
10083static void exit_msp(void) __attribute__((__section__(".exit.text"), __no_instrument_function__)) ;
10084#line 870
10085static void exit_msp(void) __attribute__((__section__(".exit.text"), __no_instrument_function__)) ;
10086#line 870 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
10087static void exit_msp(void)
10088{
10089
10090 {
10091 {
10092#line 872
10093 i2c_del_driver(& msp_driver);
10094 }
10095#line 873
10096 return;
10097}
10098}
10099#line 875 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
10100int init_module(void)
10101{ int tmp___7 ;
10102
10103 {
10104 {
10105#line 875
10106 tmp___7 = init_msp();
10107 }
10108#line 875
10109 return (tmp___7);
10110}
10111}
10112#line 876 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
10113void cleanup_module(void)
10114{
10115
10116 {
10117 {
10118#line 876
10119 exit_msp();
10120 }
10121#line 876
10122 return;
10123}
10124}
10125#line 902
10126void ldv_check_final_state(void) __attribute__((__ldv_model__)) ;
10127#line 905
10128extern void ldv_check_return_value(int res ) ;
10129#line 908
10130extern void ldv_initialize(void) ;
10131#line 911
10132extern int nondet_int(void) ;
10133#line 914 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
10134int LDV_IN_INTERRUPT ;
10135#line 1023 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
10136static int res_msp_probe_23 ;
10137#line 917 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-driver.c.common.c"
10138void main(void)
10139{ struct v4l2_ctrl *var_group1 ;
10140 struct v4l2_subdev *var_group2 ;
10141 struct v4l2_dbg_chip_ident *var_group3 ;
10142 v4l2_std_id var_msp_s_std_14_p1 ;
10143 struct v4l2_frequency *var_group4 ;
10144 struct v4l2_tuner *var_group5 ;
10145 u32 var_msp_s_routing_15_p1 ;
10146 u32 var_msp_s_routing_15_p2 ;
10147 u32 var_msp_s_routing_15_p3 ;
10148 u32 var_msp_s_i2s_clock_freq_18_p1 ;
10149 struct i2c_client *var_group6 ;
10150 struct i2c_device_id const *var_msp_probe_23_p1 ;
10151 pm_message_t var_msp_suspend_21_p1 ;
10152 int tmp___7 ;
10153 int ldv_s_msp_driver_i2c_driver ;
10154 int tmp___8 ;
10155 int tmp___9 ;
10156 int __cil_tmp18 ;
10157
10158 {
10159 {
10160#line 1051
10161 LDV_IN_INTERRUPT = 1;
10162#line 1060
10163 ldv_initialize();
10164#line 1070
10165 tmp___7 = init_msp();
10166 }
10167#line 1070
10168 if (tmp___7) {
10169#line 1071
10170 goto ldv_final;
10171 } else {
10172
10173 }
10174#line 1080
10175 ldv_s_msp_driver_i2c_driver = 0;
10176 {
10177#line 1084
10178 while (1) {
10179 while_continue: ;
10180 {
10181#line 1084
10182 tmp___9 = nondet_int();
10183 }
10184#line 1084
10185 if (tmp___9) {
10186
10187 } else {
10188 {
10189#line 1084
10190 __cil_tmp18 = ldv_s_msp_driver_i2c_driver == 0;
10191#line 1084
10192 if (! __cil_tmp18) {
10193
10194 } else {
10195#line 1084
10196 goto while_break;
10197 }
10198 }
10199 }
10200 {
10201#line 1088
10202 tmp___8 = nondet_int();
10203 }
10204#line 1090
10205 if (tmp___8 == 0) {
10206#line 1090
10207 goto case_0;
10208 } else
10209#line 1110
10210 if (tmp___8 == 1) {
10211#line 1110
10212 goto case_1;
10213 } else
10214#line 1130
10215 if (tmp___8 == 2) {
10216#line 1130
10217 goto case_2;
10218 } else
10219#line 1150
10220 if (tmp___8 == 3) {
10221#line 1150
10222 goto case_3;
10223 } else
10224#line 1170
10225 if (tmp___8 == 4) {
10226#line 1170
10227 goto case_4;
10228 } else
10229#line 1190
10230 if (tmp___8 == 5) {
10231#line 1190
10232 goto case_5;
10233 } else
10234#line 1210
10235 if (tmp___8 == 6) {
10236#line 1210
10237 goto case_6;
10238 } else
10239#line 1230
10240 if (tmp___8 == 7) {
10241#line 1230
10242 goto case_7;
10243 } else
10244#line 1250
10245 if (tmp___8 == 8) {
10246#line 1250
10247 goto case_8;
10248 } else
10249#line 1270
10250 if (tmp___8 == 9) {
10251#line 1270
10252 goto case_9;
10253 } else
10254#line 1290
10255 if (tmp___8 == 10) {
10256#line 1290
10257 goto case_10;
10258 } else
10259#line 1313
10260 if (tmp___8 == 11) {
10261#line 1313
10262 goto case_11;
10263 } else
10264#line 1333
10265 if (tmp___8 == 12) {
10266#line 1333
10267 goto case_12;
10268 } else
10269#line 1353
10270 if (tmp___8 == 13) {
10271#line 1353
10272 goto case_13;
10273 } else {
10274#line 1373
10275 goto switch_default;
10276#line 1088
10277 if (0) {
10278 case_0:
10279 {
10280#line 1102
10281 msp_s_ctrl(var_group1);
10282 }
10283#line 1109
10284 goto switch_break;
10285 case_1:
10286 {
10287#line 1122
10288 msp_log_status(var_group2);
10289 }
10290#line 1129
10291 goto switch_break;
10292 case_2:
10293 {
10294#line 1142
10295 msp_g_chip_ident(var_group2, var_group3);
10296 }
10297#line 1149
10298 goto switch_break;
10299 case_3:
10300 {
10301#line 1162
10302 msp_s_std(var_group2, var_msp_s_std_14_p1);
10303 }
10304#line 1169
10305 goto switch_break;
10306 case_4:
10307 {
10308#line 1182
10309 msp_s_frequency(var_group2, var_group4);
10310 }
10311#line 1189
10312 goto switch_break;
10313 case_5:
10314 {
10315#line 1202
10316 msp_g_tuner(var_group2, var_group5);
10317 }
10318#line 1209
10319 goto switch_break;
10320 case_6:
10321 {
10322#line 1222
10323 msp_s_tuner(var_group2, var_group5);
10324 }
10325#line 1229
10326 goto switch_break;
10327 case_7:
10328 {
10329#line 1242
10330 msp_s_radio(var_group2);
10331 }
10332#line 1249
10333 goto switch_break;
10334 case_8:
10335 {
10336#line 1262
10337 msp_s_routing(var_group2, var_msp_s_routing_15_p1, var_msp_s_routing_15_p2,
10338 var_msp_s_routing_15_p3);
10339 }
10340#line 1269
10341 goto switch_break;
10342 case_9:
10343 {
10344#line 1282
10345 msp_s_i2s_clock_freq(var_group2, var_msp_s_i2s_clock_freq_18_p1);
10346 }
10347#line 1289
10348 goto switch_break;
10349 case_10:
10350#line 1293
10351 if (ldv_s_msp_driver_i2c_driver == 0) {
10352 {
10353#line 1302
10354 res_msp_probe_23 = msp_probe(var_group6, var_msp_probe_23_p1);
10355#line 1303
10356 ldv_check_return_value(res_msp_probe_23);
10357 }
10358#line 1304
10359 if (res_msp_probe_23) {
10360#line 1305
10361 goto ldv_module_exit;
10362 } else {
10363
10364 }
10365#line 1306
10366 ldv_s_msp_driver_i2c_driver = 0;
10367 } else {
10368
10369 }
10370#line 1312
10371 goto switch_break;
10372 case_11:
10373 {
10374#line 1325
10375 msp_remove(var_group6);
10376 }
10377#line 1332
10378 goto switch_break;
10379 case_12:
10380 {
10381#line 1345
10382 msp_suspend(var_group6, var_msp_suspend_21_p1);
10383 }
10384#line 1352
10385 goto switch_break;
10386 case_13:
10387 {
10388#line 1365
10389 msp_resume(var_group6);
10390 }
10391#line 1372
10392 goto switch_break;
10393 switch_default:
10394#line 1373
10395 goto switch_break;
10396 } else {
10397 switch_break: ;
10398 }
10399 }
10400 }
10401 while_break___0: ;
10402 }
10403
10404 while_break: ;
10405 ldv_module_exit:
10406 {
10407#line 1389
10408 exit_msp();
10409 }
10410 ldv_final:
10411 {
10412#line 1392
10413 ldv_check_final_state();
10414 }
10415#line 1395
10416 return;
10417}
10418}
10419#line 5 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/kernel-rules/files/engine-blast-assert.h"
10420void ldv_blast_assert(void)
10421{
10422
10423 {
10424 ERROR:
10425#line 6
10426 goto ERROR;
10427}
10428}
10429#line 7 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/kernel-rules/files/engine-blast.h"
10430extern void *ldv_undefined_pointer(void) ;
10431#line 1332 "include/linux/usb.h"
10432struct urb *usb_alloc_urb(int iso_packets , gfp_t mem_flags ) __attribute__((__ldv_model__)) ;
10433#line 1333
10434void usb_free_urb(struct urb *urb ) __attribute__((__ldv_model__)) ;
10435#line 1377
10436void *usb_alloc_coherent(struct usb_device *dev , size_t size , gfp_t mem_flags ,
10437 dma_addr_t *dma ) __attribute__((__ldv_model__)) ;
10438#line 1379
10439void usb_free_coherent(struct usb_device *dev , size_t size , void *addr , dma_addr_t dma ) __attribute__((__ldv_model__)) ;
10440#line 10 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/kernel-rules/files/model0068.c"
10441void ldv_assume_stop(void) __attribute__((__ldv_model_inline__)) ;
10442#line 22
10443void ldv_assume_stop(void) __attribute__((__ldv_model_inline__)) ;
10444#line 22 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/kernel-rules/files/model0068.c"
10445void ldv_assume_stop(void)
10446{
10447
10448 {
10449 LDV_STOP:
10450#line 23
10451 goto LDV_STOP;
10452}
10453}
10454#line 29 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/kernel-rules/files/model0068.c"
10455int ldv_urb_state = 0;
10456#line 31 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/kernel-rules/files/model0068.c"
10457int ldv_coherent_state = 0;
10458#line 62
10459void *usb_alloc_coherent(struct usb_device *dev , size_t size , gfp_t mem_flags ,
10460 dma_addr_t *dma ) __attribute__((__ldv_model__)) ;
10461#line 62 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/kernel-rules/files/model0068.c"
10462void *usb_alloc_coherent(struct usb_device *dev , size_t size , gfp_t mem_flags ,
10463 dma_addr_t *dma )
10464{ void *arbitrary_memory ;
10465 void *tmp___7 ;
10466
10467 {
10468 {
10469#line 64
10470 while (1) {
10471 while_continue: ;
10472 {
10473#line 64
10474 tmp___7 = ldv_undefined_pointer();
10475#line 64
10476 arbitrary_memory = tmp___7;
10477 }
10478#line 64
10479 if (! arbitrary_memory) {
10480#line 64
10481 return ((void *)0);
10482 } else {
10483
10484 }
10485#line 64
10486 ldv_coherent_state = ldv_coherent_state + 1;
10487#line 64
10488 return (arbitrary_memory);
10489#line 64
10490 goto while_break;
10491 }
10492 while_break___0: ;
10493 }
10494
10495 while_break: ;
10496#line 65
10497 return ((void *)0);
10498}
10499}
10500#line 68
10501void usb_free_coherent(struct usb_device *dev , size_t size , void *addr , dma_addr_t dma ) __attribute__((__ldv_model__)) ;
10502#line 68 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/kernel-rules/files/model0068.c"
10503void usb_free_coherent(struct usb_device *dev , size_t size , void *addr , dma_addr_t dma )
10504{ void *__cil_tmp5 ;
10505 unsigned long __cil_tmp6 ;
10506 unsigned long __cil_tmp7 ;
10507 int __cil_tmp8 ;
10508
10509 {
10510 {
10511#line 70
10512 while (1) {
10513 while_continue: ;
10514
10515 {
10516#line 70
10517 __cil_tmp5 = (void *)0;
10518#line 70
10519 __cil_tmp6 = (unsigned long )__cil_tmp5;
10520#line 70
10521 __cil_tmp7 = (unsigned long )addr;
10522#line 70
10523 __cil_tmp8 = __cil_tmp7 != __cil_tmp6;
10524#line 70
10525 if (! __cil_tmp8) {
10526 {
10527#line 70
10528 ldv_assume_stop();
10529 }
10530 } else {
10531
10532 }
10533 }
10534#line 70
10535 if (addr) {
10536#line 70
10537 if (ldv_coherent_state >= 1) {
10538
10539 } else {
10540 {
10541#line 70
10542 ldv_blast_assert();
10543 }
10544 }
10545#line 70
10546 ldv_coherent_state = ldv_coherent_state - 1;
10547 } else {
10548
10549 }
10550#line 70
10551 goto while_break;
10552 }
10553 while_break___0: ;
10554 }
10555
10556 while_break: ;
10557#line 71
10558 return;
10559}
10560}
10561#line 74
10562struct urb *usb_alloc_urb(int iso_packets , gfp_t mem_flags ) __attribute__((__ldv_model__)) ;
10563#line 74 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/kernel-rules/files/model0068.c"
10564struct urb *usb_alloc_urb(int iso_packets , gfp_t mem_flags )
10565{ void *arbitrary_memory ;
10566 void *tmp___7 ;
10567 void *__cil_tmp5 ;
10568
10569 {
10570 {
10571#line 75
10572 while (1) {
10573 while_continue: ;
10574 {
10575#line 75
10576 tmp___7 = ldv_undefined_pointer();
10577#line 75
10578 arbitrary_memory = tmp___7;
10579 }
10580#line 75
10581 if (! arbitrary_memory) {
10582 {
10583#line 75
10584 __cil_tmp5 = (void *)0;
10585#line 75
10586 return ((struct urb *)__cil_tmp5);
10587 }
10588 } else {
10589
10590 }
10591#line 75
10592 ldv_urb_state = ldv_urb_state + 1;
10593#line 75
10594 return ((struct urb *)arbitrary_memory);
10595#line 75
10596 goto while_break;
10597 }
10598 while_break___0: ;
10599 }
10600
10601 while_break: ;
10602#line 76
10603 return ((struct urb *)0);
10604}
10605}
10606#line 79
10607void usb_free_urb(struct urb *urb ) __attribute__((__ldv_model__)) ;
10608#line 79 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/kernel-rules/files/model0068.c"
10609void usb_free_urb(struct urb *urb )
10610{ struct urb *__cil_tmp2 ;
10611 unsigned long __cil_tmp3 ;
10612 unsigned long __cil_tmp4 ;
10613 int __cil_tmp5 ;
10614
10615 {
10616 {
10617#line 80
10618 while (1) {
10619 while_continue: ;
10620
10621 {
10622#line 80
10623 __cil_tmp2 = (struct urb *)0;
10624#line 80
10625 __cil_tmp3 = (unsigned long )__cil_tmp2;
10626#line 80
10627 __cil_tmp4 = (unsigned long )urb;
10628#line 80
10629 __cil_tmp5 = __cil_tmp4 != __cil_tmp3;
10630#line 80
10631 if (! __cil_tmp5) {
10632 {
10633#line 80
10634 ldv_assume_stop();
10635 }
10636 } else {
10637
10638 }
10639 }
10640#line 80
10641 if (urb) {
10642#line 80
10643 if (ldv_urb_state >= 1) {
10644
10645 } else {
10646 {
10647#line 80
10648 ldv_blast_assert();
10649 }
10650 }
10651#line 80
10652 ldv_urb_state = ldv_urb_state - 1;
10653 } else {
10654
10655 }
10656#line 80
10657 goto while_break;
10658 }
10659 while_break___0: ;
10660 }
10661
10662 while_break: ;
10663#line 81
10664 return;
10665}
10666}
10667#line 84
10668void ldv_check_final_state(void) __attribute__((__ldv_model__)) ;
10669#line 84 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/kernel-rules/files/model0068.c"
10670void ldv_check_final_state(void)
10671{
10672
10673 {
10674#line 86
10675 if (ldv_urb_state == 0) {
10676
10677 } else {
10678 {
10679#line 86
10680 ldv_blast_assert();
10681 }
10682 }
10683#line 88
10684 if (ldv_coherent_state == 0) {
10685
10686 } else {
10687 {
10688#line 88
10689 ldv_blast_assert();
10690 }
10691 }
10692#line 89
10693 return;
10694}
10695}
10696#line 122 "include/linux/freezer.h"
10697__inline static void set_freezable(void)
10698{ struct task_struct *tmp___7 ;
10699 unsigned int __cil_tmp2 ;
10700
10701 {
10702 {
10703#line 124
10704 tmp___7 = get_current();
10705#line 124
10706 __cil_tmp2 = tmp___7->flags;
10707#line 124
10708 tmp___7->flags = __cil_tmp2 & 4294934527U;
10709 }
10710#line 125
10711 return;
10712}
10713}
10714#line 36 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
10715static struct __anonstruct_msp_stdlist_279 msp_stdlist[22] =
10716#line 36 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
10717 { {0, 0, 0, (char *)"could not detect sound standard"},
10718 {1, 0, 0, (char *)"autodetect start"},
10719 {2, (int )((float )(4.5 / 18.432) * (float )(1 << 24)), (int )((float )(4.72 / 18.432) * (float )(1 << 24)),
10720 (char *)"4.5/4.72 M Dual FM-Stereo"},
10721 {3, (int )((float )(5.5 / 18.432) * (float )(1 << 24)), (int )((float )(5.7421875 / 18.432) * (float )(1 << 24)),
10722 (char *)"5.5/5.74 B/G Dual FM-Stereo"},
10723 {4, (int )((float )(6.5 / 18.432) * (float )(1 << 24)), (int )((float )(6.2578125 / 18.432) * (float )(1 << 24)),
10724 (char *)"6.5/6.25 D/K1 Dual FM-Stereo"},
10725 {5, (int )((float )(6.5 / 18.432) * (float )(1 << 24)), (int )((float )(6.7421875 / 18.432) * (float )(1 << 24)),
10726 (char *)"6.5/6.74 D/K2 Dual FM-Stereo"},
10727 {6, (int )((float )(6.5 / 18.432) * (float )(1 << 24)), (int )((float )(6.5 / 18.432) * (float )(1 << 24)),
10728 (char *)"6.5 D/K FM-Mono (HDEV3)"},
10729 {7, (int )((float )(6.5 / 18.432) * (float )(1 << 24)), (int )((float )(5.7421875 / 18.432) * (float )(1 << 24)),
10730 (char *)"6.5/5.74 D/K3 Dual FM-Stereo"},
10731 {8, (int )((float )(5.5 / 18.432) * (float )(1 << 24)), (int )((float )(5.85 / 18.432) * (float )(1 << 24)),
10732 (char *)"5.5/5.85 B/G NICAM FM"},
10733 {9, (int )((float )(6.5 / 18.432) * (float )(1 << 24)), (int )((float )(5.85 / 18.432) * (float )(1 << 24)),
10734 (char *)"6.5/5.85 L NICAM AM"},
10735 {10, (int )((float )(6.0 / 18.432) * (float )(1 << 24)), (int )((float )(6.55 / 18.432) * (float )(1 << 24)),
10736 (char *)"6.0/6.55 I NICAM FM"},
10737 {11, (int )((float )(6.5 / 18.432) * (float )(1 << 24)), (int )((float )(5.85 / 18.432) * (float )(1 << 24)),
10738 (char *)"6.5/5.85 D/K NICAM FM"},
10739 {12, (int )((float )(6.5 / 18.432) * (float )(1 << 24)), (int )((float )(5.85 / 18.432) * (float )(1 << 24)),
10740 (char *)"6.5/5.85 D/K NICAM FM (HDEV2)"},
10741 {13, (int )((float )(6.5 / 18.432) * (float )(1 << 24)), (int )((float )(5.85 / 18.432) * (float )(1 << 24)),
10742 (char *)"6.5/5.85 D/K NICAM FM (HDEV3)"},
10743 {32, (int )((float )(4.5 / 18.432) * (float )(1 << 24)), (int )((float )(4.5 / 18.432) * (float )(1 << 24)),
10744 (char *)"4.5 M BTSC-Stereo"},
10745 {33, (int )((float )(4.5 / 18.432) * (float )(1 << 24)), (int )((float )(4.5 / 18.432) * (float )(1 << 24)),
10746 (char *)"4.5 M BTSC-Mono + SAP"},
10747 {48, (int )((float )(4.5 / 18.432) * (float )(1 << 24)), (int )((float )(4.5 / 18.432) * (float )(1 << 24)),
10748 (char *)"4.5 M EIA-J Japan Stereo"},
10749 {64, (int )((float )(10.7 / 18.432) * (float )(1 << 24)), (int )((float )(10.7 / 18.432) * (float )(1 << 24)),
10750 (char *)"10.7 FM-Stereo Radio"},
10751 {80, (int )((float )(6.5 / 18.432) * (float )(1 << 24)), (int )((float )(6.5 / 18.432) * (float )(1 << 24)),
10752 (char *)"6.5 SAT-Mono"},
10753 {81, (int )((float )(7.02 / 18.432) * (float )(1 << 24)), (int )((float )(7.20 / 18.432) * (float )(1 << 24)),
10754 (char *)"7.02/7.20 SAT-Stereo"},
10755 {96, (int )((float )(7.2 / 18.432) * (float )(1 << 24)), (int )((float )(7.2 / 18.432) * (float )(1 << 24)),
10756 (char *)"7.2 SAT ADR"},
10757 {-1, 0, 0, (char *)((void *)0)}};
10758#line 65 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
10759static struct msp3400c_init_data_dem msp3400c_init_data[8] =
10760#line 65
10761 { {{75, 19, 36, 35, 39, 40}, {75, 19, 36, 35, 39, 40}, (int )((float )(5.5 / 18.432) * (float )(1 << 24)),
10762 (int )((float )(5.5 / 18.432) * (float )(1 << 24)), 208, 1280, 32, 12288},
10763 {{-1, -1, -8, 2, 59, 126}, {-1, -1, -8, 2, 59, 126}, (int )((float )(5.5 / 18.432) * (float )(1 << 24)),
10764 (int )((float )(5.5 / 18.432) * (float )(1 << 24)), 208, 256, 32, 12288},
10765 {{-8, -8, 4, 6, 78, 107}, {-8, -8, 4, 6, 78, 107}, (int )((float )(10.7 / 18.432) * (float )(1 << 24)),
10766 (int )((float )(10.7 / 18.432) * (float )(1 << 24)), 208, 1152, 32, 12288},
10767 {{3, 18, 27, 48, 66, 72}, {3, 18, 27, 48, 66, 72}, (int )((float )(5.5 / 18.432) * (float )(1 << 24)),
10768 (int )((float )(5.5 / 18.432) * (float )(1 << 24)), 208, 1152, 48, 12288},
10769 {{1, 9, 14, 24, 33, 37}, {3, 18, 27, 48, 66, 72}, (int )((float )(6.5 / 18.432) * (float )(1 << 24)),
10770 (int )((float )(6.5 / 18.432) * (float )(1 << 24)), 198, 1152, 0, 12288},
10771 {{-2, -8, -10, 10, 50, 86}, {3, 18, 27, 48, 66, 72}, (int )((float )(5.5 / 18.432) * (float )(1 << 24)),
10772 (int )((float )(5.5 / 18.432) * (float )(1 << 24)), 208, 64, 288, 12288},
10773 {{2, 4, -6, -4, 40, 94}, {3, 18, 27, 48, 66, 72}, (int )((float )(6.0 / 18.432) * (float )(1 << 24)),
10774 (int )((float )(6.0 / 18.432) * (float )(1 << 24)), 208, 64, 288, 12288},
10775 {{-2, -8, -10, 10, 50, 86}, {-4, -12, -9, 23, 79, 126}, (int )((float )(6.5 / 18.432) * (float )(1 << 24)),
10776 (int )((float )(6.5 / 18.432) * (float )(1 << 24)), 198, 320, 288, 31744}};
10777#line 123 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
10778static struct msp3400c_carrier_detect msp3400c_carrier_detect_main[4] = { {(int )((float )(4.5 / 18.432) * (float )(1 << 24)), (char *)"4.5 NTSC"},
10779 {(int )((float )(5.5 / 18.432) * (float )(1 << 24)), (char *)"5.5 PAL B/G"},
10780 {(int )((float )(6.0 / 18.432) * (float )(1 << 24)),
10781 (char *)"6.0 PAL I"},
10782 {(int )((float )(6.5 / 18.432) * (float )(1 << 24)), (char *)"6.5 PAL D/K + SAT + SECAM"}};
10783#line 131 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
10784static struct msp3400c_carrier_detect msp3400c_carrier_detect_55[2] = { {(int )((float )(5.7421875 / 18.432) * (float )(1 << 24)), (char *)"5.742 PAL B/G FM-stereo"},
10785 {(int )((float )(5.85 / 18.432) * (float )(1 << 24)),
10786 (char *)"5.85 PAL B/G NICAM"}};
10787#line 137 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
10788static struct msp3400c_carrier_detect msp3400c_carrier_detect_65[6] = { {(int )((float )(5.85 / 18.432) * (float )(1 << 24)), (char *)"5.85 PAL D/K + SECAM NICAM"},
10789 {(int )((float )(6.2578125 / 18.432) * (float )(1 << 24)),
10790 (char *)"6.25 PAL D/K1 FM-stereo"},
10791 {(int )((float )(6.7421875 / 18.432) * (float )(1 << 24)), (char *)"6.74 PAL D/K2 FM-stereo"},
10792 {(int )((float )(7.02 / 18.432) * (float )(1 << 24)),
10793 (char *)"7.02 PAL SAT FM-stereo s/b"},
10794 {(int )((float )(7.20 / 18.432) * (float )(1 << 24)), (char *)"7.20 PAL SAT FM-stereo s"},
10795 {(int )((float )(7.38 / 18.432) * (float )(1 << 24)),
10796 (char *)"7.38 PAL SAT FM-stereo b"}};
10797#line 149 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
10798char const *msp_standard_std_name(int std )
10799{ int i ;
10800 void *__cil_tmp3 ;
10801 unsigned long __cil_tmp4 ;
10802 unsigned long __cil_tmp5 ;
10803
10804 {
10805#line 153
10806 i = 0;
10807 {
10808#line 153
10809 while (1) {
10810 while_continue: ;
10811
10812 {
10813#line 153
10814 __cil_tmp3 = (void *)0;
10815#line 153
10816 __cil_tmp4 = (unsigned long )__cil_tmp3;
10817#line 153
10818 __cil_tmp5 = (unsigned long )msp_stdlist[i].name;
10819#line 153
10820 if (__cil_tmp5 != __cil_tmp4) {
10821
10822 } else {
10823#line 153
10824 goto while_break;
10825 }
10826 }
10827#line 154
10828 if (msp_stdlist[i].retval == std) {
10829#line 155
10830 return ((char const *)msp_stdlist[i].name);
10831 } else {
10832
10833 }
10834#line 153
10835 i = i + 1;
10836 }
10837 while_break___0: ;
10838 }
10839
10840 while_break: ;
10841#line 156
10842 return ("unknown");
10843}
10844}
10845#line 159 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
10846static void msp_set_source(struct i2c_client *client , u16 src )
10847{ struct msp_state *state ;
10848 void *tmp___7 ;
10849 struct msp_state *tmp___8 ;
10850 struct i2c_client const *__cil_tmp6 ;
10851 struct v4l2_subdev *__cil_tmp7 ;
10852 int __cil_tmp8 ;
10853 int __cil_tmp9 ;
10854 int __cil_tmp10 ;
10855 int __cil_tmp11 ;
10856 int __cil_tmp12 ;
10857 int __cil_tmp13 ;
10858
10859 {
10860 {
10861#line 161
10862 __cil_tmp6 = (struct i2c_client const *)client;
10863#line 161
10864 tmp___7 = i2c_get_clientdata(__cil_tmp6);
10865#line 161
10866 __cil_tmp7 = (struct v4l2_subdev *)tmp___7;
10867#line 161
10868 tmp___8 = to_state(__cil_tmp7);
10869#line 161
10870 state = tmp___8;
10871 }
10872#line 163
10873 if (msp_dolby) {
10874 {
10875#line 164
10876 msp_write_dsp(client, 8, 1312);
10877#line 165
10878 msp_write_dsp(client, 9, 1568);
10879 }
10880 } else {
10881 {
10882#line 167
10883 __cil_tmp8 = (int )src;
10884#line 167
10885 msp_write_dsp(client, 8, __cil_tmp8);
10886#line 168
10887 __cil_tmp9 = (int )src;
10888#line 168
10889 msp_write_dsp(client, 9, __cil_tmp9);
10890 }
10891 }
10892 {
10893#line 170
10894 __cil_tmp10 = (int )src;
10895#line 170
10896 msp_write_dsp(client, 10, __cil_tmp10);
10897#line 171
10898 __cil_tmp11 = (int )src;
10899#line 171
10900 msp_write_dsp(client, 11, __cil_tmp11);
10901#line 172
10902 __cil_tmp12 = (int )src;
10903#line 172
10904 msp_write_dsp(client, 12, __cil_tmp12);
10905 }
10906#line 173
10907 if (state->has_scart2_out) {
10908 {
10909#line 174
10910 __cil_tmp13 = (int )src;
10911#line 174
10912 msp_write_dsp(client, 65, __cil_tmp13);
10913 }
10914 } else {
10915
10916 }
10917#line 175
10918 return;
10919}
10920}
10921#line 177 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
10922void msp3400c_set_carrier(struct i2c_client *client , int cdo1 , int cdo2 )
10923{ int __cil_tmp4 ;
10924 int __cil_tmp5 ;
10925 int __cil_tmp6 ;
10926 int __cil_tmp7 ;
10927
10928 {
10929 {
10930#line 179
10931 __cil_tmp4 = cdo1 & 4095;
10932#line 179
10933 msp_write_dem(client, 147, __cil_tmp4);
10934#line 180
10935 __cil_tmp5 = cdo1 >> 12;
10936#line 180
10937 msp_write_dem(client, 155, __cil_tmp5);
10938#line 181
10939 __cil_tmp6 = cdo2 & 4095;
10940#line 181
10941 msp_write_dem(client, 163, __cil_tmp6);
10942#line 182
10943 __cil_tmp7 = cdo2 >> 12;
10944#line 182
10945 msp_write_dem(client, 171, __cil_tmp7);
10946#line 183
10947 msp_write_dem(client, 86, 0);
10948 }
10949#line 184
10950 return;
10951}
10952}
10953#line 186 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
10954void msp3400c_set_mode(struct i2c_client *client , int mode )
10955{ struct msp_state *state ;
10956 void *tmp___7 ;
10957 struct msp_state *tmp___8 ;
10958 struct msp3400c_init_data_dem *data ;
10959 int tuner ;
10960 int i ;
10961 int tmp___9 ;
10962 int tmp___10 ;
10963 struct i2c_client const *__cil_tmp11 ;
10964 struct v4l2_subdev *__cil_tmp12 ;
10965 u32 __cil_tmp13 ;
10966 u32 __cil_tmp14 ;
10967 unsigned int __cil_tmp15 ;
10968 struct i2c_adapter *__cil_tmp16 ;
10969 struct i2c_driver *__cil_tmp17 ;
10970 char const *__cil_tmp18 ;
10971 unsigned short __cil_tmp19 ;
10972 int __cil_tmp20 ;
10973 int __cil_tmp21 ;
10974 int __cil_tmp22 ;
10975 int __cil_tmp23 ;
10976 int __cil_tmp24 ;
10977 int __cil_tmp25 ;
10978 int __cil_tmp26 ;
10979 int __cil_tmp27 ;
10980 int __cil_tmp28 ;
10981 u16 __cil_tmp29 ;
10982 int __cil_tmp30 ;
10983
10984 {
10985 {
10986#line 188
10987 __cil_tmp11 = (struct i2c_client const *)client;
10988#line 188
10989 tmp___7 = i2c_get_clientdata(__cil_tmp11);
10990#line 188
10991 __cil_tmp12 = (struct v4l2_subdev *)tmp___7;
10992#line 188
10993 tmp___8 = to_state(__cil_tmp12);
10994#line 188
10995 state = tmp___8;
10996#line 189
10997 data = & msp3400c_init_data[mode];
10998#line 190
10999 __cil_tmp13 = state->route_in;
11000#line 190
11001 __cil_tmp14 = __cil_tmp13 >> 3;
11002#line 190
11003 __cil_tmp15 = __cil_tmp14 & 1U;
11004#line 190
11005 tuner = (int )__cil_tmp15;
11006 }
11007 {
11008#line 193
11009 while (1) {
11010 while_continue: ;
11011
11012#line 193
11013 if (msp_debug >= 1) {
11014 {
11015#line 193
11016 __cil_tmp16 = client->adapter;
11017#line 193
11018 tmp___9 = i2c_adapter_id(__cil_tmp16);
11019#line 193
11020 __cil_tmp17 = client->driver;
11021#line 193
11022 __cil_tmp18 = __cil_tmp17->driver.name;
11023#line 193
11024 __cil_tmp19 = client->addr;
11025#line 193
11026 __cil_tmp20 = (int )__cil_tmp19;
11027#line 193
11028 printk("<7>%s %d-%04x: set_mode: %d\n", __cil_tmp18, tmp___9, __cil_tmp20, mode);
11029 }
11030 } else {
11031
11032 }
11033#line 193
11034 goto while_break;
11035 }
11036 while_break___2: ;
11037 }
11038
11039 while_break:
11040#line 194
11041 state->mode = mode;
11042#line 195
11043 state->rxsubchans = 1;
11044#line 197
11045 if (tuner) {
11046#line 197
11047 tmp___10 = 256;
11048 } else {
11049#line 197
11050 tmp___10 = 0;
11051 }
11052 {
11053#line 197
11054 __cil_tmp21 = data->ad_cv;
11055#line 197
11056 __cil_tmp22 = __cil_tmp21 | tmp___10;
11057#line 197
11058 msp_write_dem(client, 187, __cil_tmp22);
11059#line 199
11060 i = 5;
11061 }
11062 {
11063#line 199
11064 while (1) {
11065 while_continue___0: ;
11066
11067#line 199
11068 if (i >= 0) {
11069
11070 } else {
11071#line 199
11072 goto while_break___0;
11073 }
11074 {
11075#line 200
11076 __cil_tmp23 = data->fir1[i];
11077#line 200
11078 msp_write_dem(client, 1, __cil_tmp23);
11079#line 199
11080 i = i - 1;
11081 }
11082 }
11083 while_break___3: ;
11084 }
11085
11086 while_break___0:
11087 {
11088#line 202
11089 msp_write_dem(client, 5, 4);
11090#line 203
11091 msp_write_dem(client, 5, 64);
11092#line 204
11093 msp_write_dem(client, 5, 0);
11094#line 205
11095 i = 5;
11096 }
11097 {
11098#line 205
11099 while (1) {
11100 while_continue___1: ;
11101
11102#line 205
11103 if (i >= 0) {
11104
11105 } else {
11106#line 205
11107 goto while_break___1;
11108 }
11109 {
11110#line 206
11111 __cil_tmp24 = data->fir2[i];
11112#line 206
11113 msp_write_dem(client, 5, __cil_tmp24);
11114#line 205
11115 i = i - 1;
11116 }
11117 }
11118 while_break___4: ;
11119 }
11120
11121 while_break___1:
11122 {
11123#line 208
11124 __cil_tmp25 = data->mode_reg;
11125#line 208
11126 msp_write_dem(client, 131, __cil_tmp25);
11127#line 210
11128 __cil_tmp26 = data->cdo1;
11129#line 210
11130 __cil_tmp27 = data->cdo2;
11131#line 210
11132 msp3400c_set_carrier(client, __cil_tmp26, __cil_tmp27);
11133#line 212
11134 __cil_tmp28 = data->dsp_src;
11135#line 212
11136 __cil_tmp29 = (u16 )__cil_tmp28;
11137#line 212
11138 msp_set_source(client, __cil_tmp29);
11139#line 216
11140 msp_write_dsp(client, 13, 6400);
11141#line 217
11142 __cil_tmp30 = data->dsp_matrix;
11143#line 217
11144 msp_write_dsp(client, 14, __cil_tmp30);
11145 }
11146#line 218
11147 if (state->has_nicam) {
11148 {
11149#line 219
11150 msp_write_dsp(client, 16, 23040);
11151 }
11152 } else {
11153
11154 }
11155#line 220
11156 return;
11157}
11158}
11159#line 226
11160static void msp3400c_set_audmode(struct i2c_client *client ) ;
11161#line 226 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
11162static char *strmode[5] = { (char *)"mono", (char *)"stereo", (char *)"lang2", (char *)"lang1",
11163 (char *)"lang1+lang2"};
11164#line 224 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
11165static void msp3400c_set_audmode(struct i2c_client *client )
11166{ struct msp_state *state ;
11167 void *tmp___7 ;
11168 struct msp_state *tmp___8 ;
11169 char *modestr ;
11170 char const *tmp___9 ;
11171 int src ;
11172 int audmode ;
11173 int tmp___10 ;
11174 int tmp___11 ;
11175 int tmp___12 ;
11176 int tmp___13 ;
11177 int tmp___14 ;
11178 int tmp___15 ;
11179 int tmp___16 ;
11180 int tmp___17 ;
11181 int tmp___18 ;
11182 int tmp___19 ;
11183 int tmp___20 ;
11184 struct i2c_client const *__cil_tmp20 ;
11185 struct v4l2_subdev *__cil_tmp21 ;
11186 int __cil_tmp22 ;
11187 int __cil_tmp23 ;
11188 int __cil_tmp24 ;
11189 struct i2c_adapter *__cil_tmp25 ;
11190 struct i2c_driver *__cil_tmp26 ;
11191 char const *__cil_tmp27 ;
11192 unsigned short __cil_tmp28 ;
11193 int __cil_tmp29 ;
11194 int __cil_tmp30 ;
11195 int __cil_tmp31 ;
11196 int __cil_tmp32 ;
11197 int __cil_tmp33 ;
11198 int __cil_tmp34 ;
11199 int __cil_tmp35 ;
11200 int __cil_tmp36 ;
11201 int __cil_tmp37 ;
11202 int __cil_tmp38 ;
11203 int __cil_tmp39 ;
11204 int __cil_tmp40 ;
11205 int __cil_tmp41 ;
11206 struct i2c_adapter *__cil_tmp42 ;
11207 struct i2c_driver *__cil_tmp43 ;
11208 char const *__cil_tmp44 ;
11209 unsigned short __cil_tmp45 ;
11210 int __cil_tmp46 ;
11211 struct i2c_adapter *__cil_tmp47 ;
11212 struct i2c_driver *__cil_tmp48 ;
11213 char const *__cil_tmp49 ;
11214 unsigned short __cil_tmp50 ;
11215 int __cil_tmp51 ;
11216 int __cil_tmp52 ;
11217 float __cil_tmp53 ;
11218 double __cil_tmp54 ;
11219 float __cil_tmp55 ;
11220 float __cil_tmp56 ;
11221 int __cil_tmp57 ;
11222 int __cil_tmp58 ;
11223 float __cil_tmp59 ;
11224 double __cil_tmp60 ;
11225 float __cil_tmp61 ;
11226 float __cil_tmp62 ;
11227 int __cil_tmp63 ;
11228 int __cil_tmp64 ;
11229 float __cil_tmp65 ;
11230 double __cil_tmp66 ;
11231 float __cil_tmp67 ;
11232 float __cil_tmp68 ;
11233 int __cil_tmp69 ;
11234 int __cil_tmp70 ;
11235 float __cil_tmp71 ;
11236 double __cil_tmp72 ;
11237 float __cil_tmp73 ;
11238 float __cil_tmp74 ;
11239 int __cil_tmp75 ;
11240 int __cil_tmp76 ;
11241 float __cil_tmp77 ;
11242 double __cil_tmp78 ;
11243 float __cil_tmp79 ;
11244 float __cil_tmp80 ;
11245 int __cil_tmp81 ;
11246 int __cil_tmp82 ;
11247 float __cil_tmp83 ;
11248 double __cil_tmp84 ;
11249 float __cil_tmp85 ;
11250 float __cil_tmp86 ;
11251 int __cil_tmp87 ;
11252 int __cil_tmp88 ;
11253 float __cil_tmp89 ;
11254 double __cil_tmp90 ;
11255 float __cil_tmp91 ;
11256 float __cil_tmp92 ;
11257 int __cil_tmp93 ;
11258 int __cil_tmp94 ;
11259 float __cil_tmp95 ;
11260 double __cil_tmp96 ;
11261 float __cil_tmp97 ;
11262 float __cil_tmp98 ;
11263 int __cil_tmp99 ;
11264 struct i2c_adapter *__cil_tmp100 ;
11265 struct i2c_driver *__cil_tmp101 ;
11266 char const *__cil_tmp102 ;
11267 unsigned short __cil_tmp103 ;
11268 int __cil_tmp104 ;
11269 struct i2c_adapter *__cil_tmp105 ;
11270 struct i2c_driver *__cil_tmp106 ;
11271 char const *__cil_tmp107 ;
11272 unsigned short __cil_tmp108 ;
11273 int __cil_tmp109 ;
11274 struct i2c_adapter *__cil_tmp110 ;
11275 struct i2c_driver *__cil_tmp111 ;
11276 char const *__cil_tmp112 ;
11277 unsigned short __cil_tmp113 ;
11278 int __cil_tmp114 ;
11279 struct i2c_adapter *__cil_tmp115 ;
11280 struct i2c_driver *__cil_tmp116 ;
11281 char const *__cil_tmp117 ;
11282 unsigned short __cil_tmp118 ;
11283 int __cil_tmp119 ;
11284 struct i2c_adapter *__cil_tmp120 ;
11285 struct i2c_driver *__cil_tmp121 ;
11286 char const *__cil_tmp122 ;
11287 unsigned short __cil_tmp123 ;
11288 int __cil_tmp124 ;
11289 struct i2c_adapter *__cil_tmp125 ;
11290 struct i2c_driver *__cil_tmp126 ;
11291 char const *__cil_tmp127 ;
11292 unsigned short __cil_tmp128 ;
11293 int __cil_tmp129 ;
11294 int __cil_tmp130 ;
11295 struct i2c_adapter *__cil_tmp131 ;
11296 struct i2c_driver *__cil_tmp132 ;
11297 char const *__cil_tmp133 ;
11298 unsigned short __cil_tmp134 ;
11299 int __cil_tmp135 ;
11300 int __cil_tmp136 ;
11301 struct i2c_adapter *__cil_tmp137 ;
11302 struct i2c_driver *__cil_tmp138 ;
11303 char const *__cil_tmp139 ;
11304 unsigned short __cil_tmp140 ;
11305 int __cil_tmp141 ;
11306 u16 __cil_tmp142 ;
11307
11308 {
11309 {
11310#line 229
11311 __cil_tmp20 = (struct i2c_client const *)client;
11312#line 229
11313 tmp___7 = i2c_get_clientdata(__cil_tmp20);
11314#line 229
11315 __cil_tmp21 = (struct v4l2_subdev *)tmp___7;
11316#line 229
11317 tmp___8 = to_state(__cil_tmp21);
11318#line 229
11319 state = tmp___8;
11320 }
11321 {
11322#line 230
11323 __cil_tmp22 = state->audmode;
11324#line 230
11325 if (__cil_tmp22 >= 0) {
11326 {
11327#line 230
11328 __cil_tmp23 = state->audmode;
11329#line 230
11330 if (__cil_tmp23 < 5) {
11331#line 230
11332 tmp___9 = (char const *)strmode[state->audmode];
11333 } else {
11334#line 230
11335 tmp___9 = "unknown";
11336 }
11337 }
11338 } else {
11339#line 230
11340 tmp___9 = "unknown";
11341 }
11342 }
11343#line 230
11344 modestr = (char *)tmp___9;
11345#line 232
11346 src = 0;
11347#line 233
11348 audmode = state->audmode;
11349 {
11350#line 235
11351 __cil_tmp24 = state->opmode;
11352#line 235
11353 if (__cil_tmp24 == 2) {
11354 {
11355#line 239
11356 while (1) {
11357 while_continue: ;
11358
11359#line 239
11360 if (msp_debug >= 1) {
11361 {
11362#line 239
11363 __cil_tmp25 = client->adapter;
11364#line 239
11365 tmp___10 = i2c_adapter_id(__cil_tmp25);
11366#line 239
11367 __cil_tmp26 = client->driver;
11368#line 239
11369 __cil_tmp27 = __cil_tmp26->driver.name;
11370#line 239
11371 __cil_tmp28 = client->addr;
11372#line 239
11373 __cil_tmp29 = (int )__cil_tmp28;
11374#line 239
11375 __cil_tmp30 = state->audmode;
11376#line 239
11377 printk("<7>%s %d-%04x: set_audmode called with mode=%d instead of set_source (ignored)\n",
11378 __cil_tmp27, tmp___10, __cil_tmp29, __cil_tmp30);
11379 }
11380 } else {
11381
11382 }
11383#line 239
11384 goto while_break;
11385 }
11386 while_break___10: ;
11387 }
11388
11389 while_break: ;
11390#line 242
11391 return;
11392 } else {
11393
11394 }
11395 }
11396 {
11397#line 249
11398 __cil_tmp31 = state->mode;
11399#line 249
11400 if (__cil_tmp31 != 9) {
11401 {
11402#line 251
11403 __cil_tmp32 = state->rxsubchans;
11404#line 251
11405 if (__cil_tmp32 == 1) {
11406#line 252
11407 audmode = 0;
11408 } else {
11409 {
11410#line 254
11411 __cil_tmp33 = state->rxsubchans;
11412#line 254
11413 if (__cil_tmp33 & 4) {
11414#line 256
11415 if (audmode == 0) {
11416#line 258
11417 audmode = 3;
11418 } else
11419#line 256
11420 if (audmode == 1) {
11421#line 258
11422 audmode = 3;
11423 } else {
11424
11425 }
11426 } else
11427#line 261
11428 if (audmode != 0) {
11429#line 262
11430 audmode = 1;
11431 } else {
11432
11433 }
11434 }
11435 }
11436 }
11437 } else {
11438
11439 }
11440 }
11441 {
11442#line 267
11443 __cil_tmp34 = state->mode;
11444#line 267
11445 if (__cil_tmp34 == 3) {
11446#line 267
11447 goto case_3;
11448 } else {
11449 {
11450#line 281
11451 __cil_tmp35 = state->mode;
11452#line 281
11453 if (__cil_tmp35 == 4) {
11454#line 281
11455 goto case_4___0;
11456 } else {
11457 {
11458#line 299
11459 __cil_tmp36 = state->mode;
11460#line 299
11461 if (__cil_tmp36 == 5) {
11462#line 299
11463 goto case_5;
11464 } else {
11465 {
11466#line 300
11467 __cil_tmp37 = state->mode;
11468#line 300
11469 if (__cil_tmp37 == 6) {
11470#line 300
11471 goto case_5;
11472 } else {
11473 {
11474#line 301
11475 __cil_tmp38 = state->mode;
11476#line 301
11477 if (__cil_tmp38 == 7) {
11478#line 301
11479 goto case_5;
11480 } else {
11481 {
11482#line 307
11483 __cil_tmp39 = state->mode;
11484#line 307
11485 if (__cil_tmp39 == 8) {
11486#line 307
11487 goto case_8;
11488 } else {
11489 {
11490#line 311
11491 __cil_tmp40 = state->mode;
11492#line 311
11493 if (__cil_tmp40 == 9) {
11494#line 311
11495 goto case_9;
11496 } else {
11497 {
11498#line 316
11499 __cil_tmp41 = state->mode;
11500#line 316
11501 if (__cil_tmp41 == 2) {
11502#line 316
11503 goto case_2___1;
11504 } else {
11505#line 320
11506 goto switch_default;
11507#line 266
11508 if (0) {
11509 case_3:
11510 {
11511#line 268
11512 while (1) {
11513 while_continue___0: ;
11514
11515#line 268
11516 if (msp_debug >= 1) {
11517 {
11518#line 268
11519 __cil_tmp42 = client->adapter;
11520#line 268
11521 tmp___11 = i2c_adapter_id(__cil_tmp42);
11522#line 268
11523 __cil_tmp43 = client->driver;
11524#line 268
11525 __cil_tmp44 = __cil_tmp43->driver.name;
11526#line 268
11527 __cil_tmp45 = client->addr;
11528#line 268
11529 __cil_tmp46 = (int )__cil_tmp45;
11530#line 268
11531 printk("<7>%s %d-%04x: FM set_audmode: %s\n", __cil_tmp44,
11532 tmp___11, __cil_tmp46, modestr);
11533 }
11534 } else {
11535
11536 }
11537#line 268
11538 goto while_break___0;
11539 }
11540 while_break___11: ;
11541 }
11542
11543 while_break___0: ;
11544#line 270
11545 if (audmode == 1) {
11546#line 270
11547 goto case_1;
11548 } else
11549#line 273
11550 if (audmode == 0) {
11551#line 273
11552 goto case_0;
11553 } else
11554#line 274
11555 if (audmode == 3) {
11556#line 274
11557 goto case_0;
11558 } else
11559#line 275
11560 if (audmode == 2) {
11561#line 275
11562 goto case_0;
11563 } else
11564#line 276
11565 if (audmode == 4) {
11566#line 276
11567 goto case_0;
11568 } else
11569#line 269
11570 if (0) {
11571 case_1:
11572 {
11573#line 271
11574 msp_write_dsp(client, 14, 12289);
11575 }
11576#line 272
11577 goto switch_break___0;
11578 case_0:
11579 {
11580#line 277
11581 msp_write_dsp(client, 14, 12288);
11582 }
11583#line 278
11584 goto switch_break___0;
11585 } else {
11586 switch_break___0: ;
11587 }
11588#line 280
11589 goto switch_break;
11590 case_4___0:
11591 {
11592#line 282
11593 while (1) {
11594 while_continue___1: ;
11595
11596#line 282
11597 if (msp_debug >= 1) {
11598 {
11599#line 282
11600 __cil_tmp47 = client->adapter;
11601#line 282
11602 tmp___12 = i2c_adapter_id(__cil_tmp47);
11603#line 282
11604 __cil_tmp48 = client->driver;
11605#line 282
11606 __cil_tmp49 = __cil_tmp48->driver.name;
11607#line 282
11608 __cil_tmp50 = client->addr;
11609#line 282
11610 __cil_tmp51 = (int )__cil_tmp50;
11611#line 282
11612 printk("<7>%s %d-%04x: SAT set_audmode: %s\n", __cil_tmp49,
11613 tmp___12, __cil_tmp51, modestr);
11614 }
11615 } else {
11616
11617 }
11618#line 282
11619 goto while_break___1;
11620 }
11621 while_break___12: ;
11622 }
11623
11624 while_break___1: ;
11625#line 284
11626 if (audmode == 0) {
11627#line 284
11628 goto case_0___0;
11629 } else
11630#line 287
11631 if (audmode == 1) {
11632#line 287
11633 goto case_1___0;
11634 } else
11635#line 288
11636 if (audmode == 4) {
11637#line 288
11638 goto case_1___0;
11639 } else
11640#line 291
11641 if (audmode == 3) {
11642#line 291
11643 goto case_3___1;
11644 } else
11645#line 294
11646 if (audmode == 2) {
11647#line 294
11648 goto case_2___0;
11649 } else
11650#line 283
11651 if (0) {
11652 case_0___0:
11653 {
11654#line 285
11655 __cil_tmp52 = 1 << 24;
11656#line 285
11657 __cil_tmp53 = (float )__cil_tmp52;
11658#line 285
11659 __cil_tmp54 = 6.5 / 18.432;
11660#line 285
11661 __cil_tmp55 = (float )__cil_tmp54;
11662#line 285
11663 __cil_tmp56 = __cil_tmp55 * __cil_tmp53;
11664#line 285
11665 __cil_tmp57 = (int )__cil_tmp56;
11666#line 285
11667 __cil_tmp58 = 1 << 24;
11668#line 285
11669 __cil_tmp59 = (float )__cil_tmp58;
11670#line 285
11671 __cil_tmp60 = 6.5 / 18.432;
11672#line 285
11673 __cil_tmp61 = (float )__cil_tmp60;
11674#line 285
11675 __cil_tmp62 = __cil_tmp61 * __cil_tmp59;
11676#line 285
11677 __cil_tmp63 = (int )__cil_tmp62;
11678#line 285
11679 msp3400c_set_carrier(client, __cil_tmp57, __cil_tmp63);
11680 }
11681#line 286
11682 goto switch_break___1;
11683 case_1___0:
11684 {
11685#line 289
11686 __cil_tmp64 = 1 << 24;
11687#line 289
11688 __cil_tmp65 = (float )__cil_tmp64;
11689#line 289
11690 __cil_tmp66 = 7.2 / 18.432;
11691#line 289
11692 __cil_tmp67 = (float )__cil_tmp66;
11693#line 289
11694 __cil_tmp68 = __cil_tmp67 * __cil_tmp65;
11695#line 289
11696 __cil_tmp69 = (int )__cil_tmp68;
11697#line 289
11698 __cil_tmp70 = 1 << 24;
11699#line 289
11700 __cil_tmp71 = (float )__cil_tmp70;
11701#line 289
11702 __cil_tmp72 = 7.02 / 18.432;
11703#line 289
11704 __cil_tmp73 = (float )__cil_tmp72;
11705#line 289
11706 __cil_tmp74 = __cil_tmp73 * __cil_tmp71;
11707#line 289
11708 __cil_tmp75 = (int )__cil_tmp74;
11709#line 289
11710 msp3400c_set_carrier(client, __cil_tmp69, __cil_tmp75);
11711 }
11712#line 290
11713 goto switch_break___1;
11714 case_3___1:
11715 {
11716#line 292
11717 __cil_tmp76 = 1 << 24;
11718#line 292
11719 __cil_tmp77 = (float )__cil_tmp76;
11720#line 292
11721 __cil_tmp78 = 7.38 / 18.432;
11722#line 292
11723 __cil_tmp79 = (float )__cil_tmp78;
11724#line 292
11725 __cil_tmp80 = __cil_tmp79 * __cil_tmp77;
11726#line 292
11727 __cil_tmp81 = (int )__cil_tmp80;
11728#line 292
11729 __cil_tmp82 = 1 << 24;
11730#line 292
11731 __cil_tmp83 = (float )__cil_tmp82;
11732#line 292
11733 __cil_tmp84 = 7.02 / 18.432;
11734#line 292
11735 __cil_tmp85 = (float )__cil_tmp84;
11736#line 292
11737 __cil_tmp86 = __cil_tmp85 * __cil_tmp83;
11738#line 292
11739 __cil_tmp87 = (int )__cil_tmp86;
11740#line 292
11741 msp3400c_set_carrier(client, __cil_tmp81, __cil_tmp87);
11742 }
11743#line 293
11744 goto switch_break___1;
11745 case_2___0:
11746 {
11747#line 295
11748 __cil_tmp88 = 1 << 24;
11749#line 295
11750 __cil_tmp89 = (float )__cil_tmp88;
11751#line 295
11752 __cil_tmp90 = 7.38 / 18.432;
11753#line 295
11754 __cil_tmp91 = (float )__cil_tmp90;
11755#line 295
11756 __cil_tmp92 = __cil_tmp91 * __cil_tmp89;
11757#line 295
11758 __cil_tmp93 = (int )__cil_tmp92;
11759#line 295
11760 __cil_tmp94 = 1 << 24;
11761#line 295
11762 __cil_tmp95 = (float )__cil_tmp94;
11763#line 295
11764 __cil_tmp96 = 7.02 / 18.432;
11765#line 295
11766 __cil_tmp97 = (float )__cil_tmp96;
11767#line 295
11768 __cil_tmp98 = __cil_tmp97 * __cil_tmp95;
11769#line 295
11770 __cil_tmp99 = (int )__cil_tmp98;
11771#line 295
11772 msp3400c_set_carrier(client, __cil_tmp93, __cil_tmp99);
11773 }
11774#line 296
11775 goto switch_break___1;
11776 } else {
11777 switch_break___1: ;
11778 }
11779#line 298
11780 goto switch_break;
11781 case_5:
11782 {
11783#line 302
11784 while (1) {
11785 while_continue___2: ;
11786
11787#line 302
11788 if (msp_debug >= 1) {
11789 {
11790#line 302
11791 __cil_tmp100 = client->adapter;
11792#line 302
11793 tmp___13 = i2c_adapter_id(__cil_tmp100);
11794#line 302
11795 __cil_tmp101 = client->driver;
11796#line 302
11797 __cil_tmp102 = __cil_tmp101->driver.name;
11798#line 302
11799 __cil_tmp103 = client->addr;
11800#line 302
11801 __cil_tmp104 = (int )__cil_tmp103;
11802#line 302
11803 printk("<7>%s %d-%04x: NICAM set_audmode: %s\n", __cil_tmp102,
11804 tmp___13, __cil_tmp104, modestr);
11805 }
11806 } else {
11807
11808 }
11809#line 302
11810 goto while_break___2;
11811 }
11812 while_break___13: ;
11813 }
11814
11815 while_break___2: ;
11816#line 304
11817 if (state->nicam_on) {
11818#line 305
11819 src = 256;
11820 } else {
11821
11822 }
11823#line 306
11824 goto switch_break;
11825 case_8:
11826 {
11827#line 308
11828 while (1) {
11829 while_continue___3: ;
11830
11831#line 308
11832 if (msp_debug >= 1) {
11833 {
11834#line 308
11835 __cil_tmp105 = client->adapter;
11836#line 308
11837 tmp___14 = i2c_adapter_id(__cil_tmp105);
11838#line 308
11839 __cil_tmp106 = client->driver;
11840#line 308
11841 __cil_tmp107 = __cil_tmp106->driver.name;
11842#line 308
11843 __cil_tmp108 = client->addr;
11844#line 308
11845 __cil_tmp109 = (int )__cil_tmp108;
11846#line 308
11847 printk("<7>%s %d-%04x: BTSC set_audmode: %s\n", __cil_tmp107,
11848 tmp___14, __cil_tmp109, modestr);
11849 }
11850 } else {
11851
11852 }
11853#line 308
11854 goto while_break___3;
11855 }
11856 while_break___14: ;
11857 }
11858
11859 while_break___3: ;
11860#line 310
11861 goto switch_break;
11862 case_9:
11863 {
11864#line 312
11865 while (1) {
11866 while_continue___4: ;
11867
11868#line 312
11869 if (msp_debug >= 1) {
11870 {
11871#line 312
11872 __cil_tmp110 = client->adapter;
11873#line 312
11874 tmp___15 = i2c_adapter_id(__cil_tmp110);
11875#line 312
11876 __cil_tmp111 = client->driver;
11877#line 312
11878 __cil_tmp112 = __cil_tmp111->driver.name;
11879#line 312
11880 __cil_tmp113 = client->addr;
11881#line 312
11882 __cil_tmp114 = (int )__cil_tmp113;
11883#line 312
11884 printk("<7>%s %d-%04x: extern set_audmode: %s\n", __cil_tmp112,
11885 tmp___15, __cil_tmp114, modestr);
11886 }
11887 } else {
11888
11889 }
11890#line 312
11891 goto while_break___4;
11892 }
11893 while_break___15: ;
11894 }
11895
11896 while_break___4:
11897#line 314
11898 src = 512;
11899#line 315
11900 goto switch_break;
11901 case_2___1:
11902 {
11903#line 317
11904 while (1) {
11905 while_continue___5: ;
11906
11907#line 317
11908 if (msp_debug >= 1) {
11909 {
11910#line 317
11911 __cil_tmp115 = client->adapter;
11912#line 317
11913 tmp___16 = i2c_adapter_id(__cil_tmp115);
11914#line 317
11915 __cil_tmp116 = client->driver;
11916#line 317
11917 __cil_tmp117 = __cil_tmp116->driver.name;
11918#line 317
11919 __cil_tmp118 = client->addr;
11920#line 317
11921 __cil_tmp119 = (int )__cil_tmp118;
11922#line 317
11923 printk("<7>%s %d-%04x: FM-Radio set_audmode: %s\n", __cil_tmp117,
11924 tmp___16, __cil_tmp119, modestr);
11925 }
11926 } else {
11927
11928 }
11929#line 317
11930 goto while_break___5;
11931 }
11932 while_break___16: ;
11933 }
11934
11935 while_break___5: ;
11936#line 319
11937 goto switch_break;
11938 switch_default:
11939 {
11940#line 321
11941 while (1) {
11942 while_continue___6: ;
11943
11944#line 321
11945 if (msp_debug >= 1) {
11946 {
11947#line 321
11948 __cil_tmp120 = client->adapter;
11949#line 321
11950 tmp___17 = i2c_adapter_id(__cil_tmp120);
11951#line 321
11952 __cil_tmp121 = client->driver;
11953#line 321
11954 __cil_tmp122 = __cil_tmp121->driver.name;
11955#line 321
11956 __cil_tmp123 = client->addr;
11957#line 321
11958 __cil_tmp124 = (int )__cil_tmp123;
11959#line 321
11960 printk("<7>%s %d-%04x: mono set_audmode\n", __cil_tmp122,
11961 tmp___17, __cil_tmp124);
11962 }
11963 } else {
11964
11965 }
11966#line 321
11967 goto while_break___6;
11968 }
11969 while_break___17: ;
11970 }
11971
11972 while_break___6: ;
11973#line 322
11974 return;
11975 } else {
11976 switch_break: ;
11977 }
11978 }
11979 }
11980 }
11981 }
11982 }
11983 }
11984 }
11985 }
11986 }
11987 }
11988 }
11989 }
11990 }
11991 }
11992 }
11993 }
11994 {
11995#line 326
11996 while (1) {
11997 while_continue___7: ;
11998
11999#line 326
12000 if (msp_debug >= 1) {
12001 {
12002#line 326
12003 __cil_tmp125 = client->adapter;
12004#line 326
12005 tmp___18 = i2c_adapter_id(__cil_tmp125);
12006#line 326
12007 __cil_tmp126 = client->driver;
12008#line 326
12009 __cil_tmp127 = __cil_tmp126->driver.name;
12010#line 326
12011 __cil_tmp128 = client->addr;
12012#line 326
12013 __cil_tmp129 = (int )__cil_tmp128;
12014#line 326
12015 printk("<7>%s %d-%04x: set audmode %d\n", __cil_tmp127, tmp___18, __cil_tmp129,
12016 audmode);
12017 }
12018 } else {
12019
12020 }
12021#line 326
12022 goto while_break___7;
12023 }
12024 while_break___18: ;
12025 }
12026
12027 while_break___7: ;
12028#line 328
12029 if (audmode == 1) {
12030#line 328
12031 goto case_1___1;
12032 } else
12033#line 329
12034 if (audmode == 4) {
12035#line 329
12036 goto case_1___1;
12037 } else
12038#line 332
12039 if (audmode == 0) {
12040#line 332
12041 goto case_0___1;
12042 } else
12043#line 344
12044 if (audmode == 3) {
12045#line 344
12046 goto case_3___2;
12047 } else
12048#line 346
12049 if (audmode == 2) {
12050#line 346
12051 goto case_2___2;
12052 } else
12053#line 327
12054 if (0) {
12055 case_1___1:
12056#line 330
12057 src = src | 32;
12058#line 331
12059 goto switch_break___2;
12060 case_0___1:
12061 {
12062#line 333
12063 __cil_tmp130 = state->mode;
12064#line 333
12065 if (__cil_tmp130 == 7) {
12066 {
12067#line 334
12068 while (1) {
12069 while_continue___8: ;
12070
12071#line 334
12072 if (msp_debug >= 1) {
12073 {
12074#line 334
12075 __cil_tmp131 = client->adapter;
12076#line 334
12077 tmp___19 = i2c_adapter_id(__cil_tmp131);
12078#line 334
12079 __cil_tmp132 = client->driver;
12080#line 334
12081 __cil_tmp133 = __cil_tmp132->driver.name;
12082#line 334
12083 __cil_tmp134 = client->addr;
12084#line 334
12085 __cil_tmp135 = (int )__cil_tmp134;
12086#line 334
12087 printk("<7>%s %d-%04x: switching to AM mono\n", __cil_tmp133, tmp___19,
12088 __cil_tmp135);
12089 }
12090 } else {
12091
12092 }
12093#line 334
12094 goto while_break___8;
12095 }
12096 while_break___19: ;
12097 }
12098
12099 while_break___8:
12100 {
12101#line 337
12102 msp_set_scart(client, 6, 0);
12103#line 338
12104 src = 512;
12105 }
12106#line 339
12107 goto switch_break___2;
12108 } else {
12109
12110 }
12111 }
12112 {
12113#line 341
12114 __cil_tmp136 = state->rxsubchans;
12115#line 341
12116 if (__cil_tmp136 & 2) {
12117#line 342
12118 src = 48;
12119 } else {
12120
12121 }
12122 }
12123#line 343
12124 goto switch_break___2;
12125 case_3___2:
12126#line 345
12127 goto switch_break___2;
12128 case_2___2:
12129#line 347
12130 src = src | 16;
12131#line 348
12132 goto switch_break___2;
12133 } else {
12134 switch_break___2: ;
12135 }
12136 {
12137#line 350
12138 while (1) {
12139 while_continue___9: ;
12140
12141#line 350
12142 if (msp_debug >= 1) {
12143 {
12144#line 350
12145 __cil_tmp137 = client->adapter;
12146#line 350
12147 tmp___20 = i2c_adapter_id(__cil_tmp137);
12148#line 350
12149 __cil_tmp138 = client->driver;
12150#line 350
12151 __cil_tmp139 = __cil_tmp138->driver.name;
12152#line 350
12153 __cil_tmp140 = client->addr;
12154#line 350
12155 __cil_tmp141 = (int )__cil_tmp140;
12156#line 350
12157 printk("<7>%s %d-%04x: set_audmode final source/matrix = 0x%x\n", __cil_tmp139,
12158 tmp___20, __cil_tmp141, src);
12159 }
12160 } else {
12161
12162 }
12163#line 350
12164 goto while_break___9;
12165 }
12166 while_break___20: ;
12167 }
12168
12169 while_break___9:
12170 {
12171#line 353
12172 __cil_tmp142 = (u16 )src;
12173#line 353
12174 msp_set_source(client, __cil_tmp142);
12175 }
12176#line 354
12177 return;
12178}
12179}
12180#line 356 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
12181static void msp3400c_print_mode(struct i2c_client *client )
12182{ struct msp_state *state ;
12183 void *tmp___7 ;
12184 struct msp_state *tmp___8 ;
12185 int tmp___9 ;
12186 int tmp___10 ;
12187 int tmp___11 ;
12188 int tmp___12 ;
12189 int tmp___13 ;
12190 struct i2c_client const *__cil_tmp10 ;
12191 struct v4l2_subdev *__cil_tmp11 ;
12192 int __cil_tmp12 ;
12193 int __cil_tmp13 ;
12194 struct i2c_adapter *__cil_tmp14 ;
12195 struct i2c_driver *__cil_tmp15 ;
12196 char const *__cil_tmp16 ;
12197 unsigned short __cil_tmp17 ;
12198 int __cil_tmp18 ;
12199 int __cil_tmp19 ;
12200 int __cil_tmp20 ;
12201 int __cil_tmp21 ;
12202 int __cil_tmp22 ;
12203 int __cil_tmp23 ;
12204 struct i2c_adapter *__cil_tmp24 ;
12205 struct i2c_driver *__cil_tmp25 ;
12206 char const *__cil_tmp26 ;
12207 unsigned short __cil_tmp27 ;
12208 int __cil_tmp28 ;
12209 int __cil_tmp29 ;
12210 int __cil_tmp30 ;
12211 int __cil_tmp31 ;
12212 int __cil_tmp32 ;
12213 int __cil_tmp33 ;
12214 int __cil_tmp34 ;
12215 int __cil_tmp35 ;
12216 struct i2c_adapter *__cil_tmp36 ;
12217 struct i2c_driver *__cil_tmp37 ;
12218 char const *__cil_tmp38 ;
12219 unsigned short __cil_tmp39 ;
12220 int __cil_tmp40 ;
12221 int __cil_tmp41 ;
12222 int __cil_tmp42 ;
12223 int __cil_tmp43 ;
12224 int __cil_tmp44 ;
12225 int __cil_tmp45 ;
12226 int __cil_tmp46 ;
12227 struct i2c_adapter *__cil_tmp47 ;
12228 struct i2c_driver *__cil_tmp48 ;
12229 char const *__cil_tmp49 ;
12230 unsigned short __cil_tmp50 ;
12231 int __cil_tmp51 ;
12232 int __cil_tmp52 ;
12233 int __cil_tmp53 ;
12234 int __cil_tmp54 ;
12235 int __cil_tmp55 ;
12236 int __cil_tmp56 ;
12237 int __cil_tmp57 ;
12238 int __cil_tmp58 ;
12239 int __cil_tmp59 ;
12240 struct i2c_adapter *__cil_tmp60 ;
12241 struct i2c_driver *__cil_tmp61 ;
12242 char const *__cil_tmp62 ;
12243 unsigned short __cil_tmp63 ;
12244 int __cil_tmp64 ;
12245 int __cil_tmp65 ;
12246 int __cil_tmp66 ;
12247 int __cil_tmp67 ;
12248 int __cil_tmp68 ;
12249 int __cil_tmp69 ;
12250
12251 {
12252 {
12253#line 358
12254 __cil_tmp10 = (struct i2c_client const *)client;
12255#line 358
12256 tmp___7 = i2c_get_clientdata(__cil_tmp10);
12257#line 358
12258 __cil_tmp11 = (struct v4l2_subdev *)tmp___7;
12259#line 358
12260 tmp___8 = to_state(__cil_tmp11);
12261#line 358
12262 state = tmp___8;
12263 }
12264 {
12265#line 360
12266 __cil_tmp12 = state->second;
12267#line 360
12268 __cil_tmp13 = state->main;
12269#line 360
12270 if (__cil_tmp13 == __cil_tmp12) {
12271 {
12272#line 361
12273 while (1) {
12274 while_continue: ;
12275
12276#line 361
12277 if (msp_debug >= 1) {
12278 {
12279#line 361
12280 __cil_tmp14 = client->adapter;
12281#line 361
12282 tmp___9 = i2c_adapter_id(__cil_tmp14);
12283#line 361
12284 __cil_tmp15 = client->driver;
12285#line 361
12286 __cil_tmp16 = __cil_tmp15->driver.name;
12287#line 361
12288 __cil_tmp17 = client->addr;
12289#line 361
12290 __cil_tmp18 = (int )__cil_tmp17;
12291#line 361
12292 __cil_tmp19 = state->main;
12293#line 361
12294 __cil_tmp20 = __cil_tmp19 / 910000;
12295#line 361
12296 __cil_tmp21 = state->main;
12297#line 361
12298 __cil_tmp22 = __cil_tmp21 / 910;
12299#line 361
12300 __cil_tmp23 = __cil_tmp22 % 1000;
12301#line 361
12302 printk("<7>%s %d-%04x: mono sound carrier: %d.%03d MHz\n", __cil_tmp16, tmp___9,
12303 __cil_tmp18, __cil_tmp20, __cil_tmp23);
12304 }
12305 } else {
12306
12307 }
12308#line 361
12309 goto while_break;
12310 }
12311 while_break___4: ;
12312 }
12313
12314 while_break: ;
12315 } else {
12316 {
12317#line 365
12318 while (1) {
12319 while_continue___0: ;
12320
12321#line 365
12322 if (msp_debug >= 1) {
12323 {
12324#line 365
12325 __cil_tmp24 = client->adapter;
12326#line 365
12327 tmp___10 = i2c_adapter_id(__cil_tmp24);
12328#line 365
12329 __cil_tmp25 = client->driver;
12330#line 365
12331 __cil_tmp26 = __cil_tmp25->driver.name;
12332#line 365
12333 __cil_tmp27 = client->addr;
12334#line 365
12335 __cil_tmp28 = (int )__cil_tmp27;
12336#line 365
12337 __cil_tmp29 = state->main;
12338#line 365
12339 __cil_tmp30 = __cil_tmp29 / 910000;
12340#line 365
12341 __cil_tmp31 = state->main;
12342#line 365
12343 __cil_tmp32 = __cil_tmp31 / 910;
12344#line 365
12345 __cil_tmp33 = __cil_tmp32 % 1000;
12346#line 365
12347 printk("<7>%s %d-%04x: main sound carrier: %d.%03d MHz\n", __cil_tmp26, tmp___10,
12348 __cil_tmp28, __cil_tmp30, __cil_tmp33);
12349 }
12350 } else {
12351
12352 }
12353#line 365
12354 goto while_break___0;
12355 }
12356 while_break___5: ;
12357 }
12358
12359 while_break___0: ;
12360 }
12361 }
12362 {
12363#line 368
12364 __cil_tmp34 = state->mode;
12365#line 368
12366 if (__cil_tmp34 == 5) {
12367#line 368
12368 goto _L;
12369 } else {
12370 {
12371#line 368
12372 __cil_tmp35 = state->mode;
12373#line 368
12374 if (__cil_tmp35 == 6) {
12375 _L:
12376 {
12377#line 369
12378 while (1) {
12379 while_continue___1: ;
12380
12381#line 369
12382 if (msp_debug >= 1) {
12383 {
12384#line 369
12385 __cil_tmp36 = client->adapter;
12386#line 369
12387 tmp___11 = i2c_adapter_id(__cil_tmp36);
12388#line 369
12389 __cil_tmp37 = client->driver;
12390#line 369
12391 __cil_tmp38 = __cil_tmp37->driver.name;
12392#line 369
12393 __cil_tmp39 = client->addr;
12394#line 369
12395 __cil_tmp40 = (int )__cil_tmp39;
12396#line 369
12397 __cil_tmp41 = state->second;
12398#line 369
12399 __cil_tmp42 = __cil_tmp41 / 910000;
12400#line 369
12401 __cil_tmp43 = state->second;
12402#line 369
12403 __cil_tmp44 = __cil_tmp43 / 910;
12404#line 369
12405 __cil_tmp45 = __cil_tmp44 % 1000;
12406#line 369
12407 printk("<7>%s %d-%04x: NICAM/FM carrier : %d.%03d MHz\n", __cil_tmp38,
12408 tmp___11, __cil_tmp40, __cil_tmp42, __cil_tmp45);
12409 }
12410 } else {
12411
12412 }
12413#line 369
12414 goto while_break___1;
12415 }
12416 while_break___6: ;
12417 }
12418
12419 while_break___1: ;
12420 } else {
12421
12422 }
12423 }
12424 }
12425 }
12426 {
12427#line 372
12428 __cil_tmp46 = state->mode;
12429#line 372
12430 if (__cil_tmp46 == 7) {
12431 {
12432#line 373
12433 while (1) {
12434 while_continue___2: ;
12435
12436#line 373
12437 if (msp_debug >= 1) {
12438 {
12439#line 373
12440 __cil_tmp47 = client->adapter;
12441#line 373
12442 tmp___12 = i2c_adapter_id(__cil_tmp47);
12443#line 373
12444 __cil_tmp48 = client->driver;
12445#line 373
12446 __cil_tmp49 = __cil_tmp48->driver.name;
12447#line 373
12448 __cil_tmp50 = client->addr;
12449#line 373
12450 __cil_tmp51 = (int )__cil_tmp50;
12451#line 373
12452 __cil_tmp52 = state->second;
12453#line 373
12454 __cil_tmp53 = __cil_tmp52 / 910000;
12455#line 373
12456 __cil_tmp54 = state->second;
12457#line 373
12458 __cil_tmp55 = __cil_tmp54 / 910;
12459#line 373
12460 __cil_tmp56 = __cil_tmp55 % 1000;
12461#line 373
12462 printk("<7>%s %d-%04x: NICAM/AM carrier : %d.%03d MHz\n", __cil_tmp49, tmp___12,
12463 __cil_tmp51, __cil_tmp53, __cil_tmp56);
12464 }
12465 } else {
12466
12467 }
12468#line 373
12469 goto while_break___2;
12470 }
12471 while_break___7: ;
12472 }
12473
12474 while_break___2: ;
12475 } else {
12476
12477 }
12478 }
12479 {
12480#line 376
12481 __cil_tmp57 = state->mode;
12482#line 376
12483 if (__cil_tmp57 == 3) {
12484 {
12485#line 376
12486 __cil_tmp58 = state->second;
12487#line 376
12488 __cil_tmp59 = state->main;
12489#line 376
12490 if (__cil_tmp59 != __cil_tmp58) {
12491 {
12492#line 377
12493 while (1) {
12494 while_continue___3: ;
12495
12496#line 377
12497 if (msp_debug >= 1) {
12498 {
12499#line 377
12500 __cil_tmp60 = client->adapter;
12501#line 377
12502 tmp___13 = i2c_adapter_id(__cil_tmp60);
12503#line 377
12504 __cil_tmp61 = client->driver;
12505#line 377
12506 __cil_tmp62 = __cil_tmp61->driver.name;
12507#line 377
12508 __cil_tmp63 = client->addr;
12509#line 377
12510 __cil_tmp64 = (int )__cil_tmp63;
12511#line 377
12512 __cil_tmp65 = state->second;
12513#line 377
12514 __cil_tmp66 = __cil_tmp65 / 910000;
12515#line 377
12516 __cil_tmp67 = state->second;
12517#line 377
12518 __cil_tmp68 = __cil_tmp67 / 910;
12519#line 377
12520 __cil_tmp69 = __cil_tmp68 % 1000;
12521#line 377
12522 printk("<7>%s %d-%04x: FM-stereo carrier : %d.%03d MHz\n", __cil_tmp62,
12523 tmp___13, __cil_tmp64, __cil_tmp66, __cil_tmp69);
12524 }
12525 } else {
12526
12527 }
12528#line 377
12529 goto while_break___3;
12530 }
12531 while_break___8: ;
12532 }
12533
12534 while_break___3: ;
12535 } else {
12536
12537 }
12538 }
12539 } else {
12540
12541 }
12542 }
12543#line 381
12544 return;
12545}
12546}
12547#line 385 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
12548static int msp3400c_detect_stereo(struct i2c_client *client )
12549{ struct msp_state *state ;
12550 void *tmp___7 ;
12551 struct msp_state *tmp___8 ;
12552 int val ;
12553 int rxsubchans ;
12554 int newnicam ;
12555 int update ;
12556 int tmp___9 ;
12557 int tmp___10 ;
12558 int tmp___11 ;
12559 int tmp___12 ;
12560 struct i2c_client const *__cil_tmp13 ;
12561 struct v4l2_subdev *__cil_tmp14 ;
12562 int __cil_tmp15 ;
12563 int __cil_tmp16 ;
12564 int __cil_tmp17 ;
12565 int __cil_tmp18 ;
12566 struct i2c_adapter *__cil_tmp19 ;
12567 struct i2c_driver *__cil_tmp20 ;
12568 char const *__cil_tmp21 ;
12569 unsigned short __cil_tmp22 ;
12570 int __cil_tmp23 ;
12571 struct i2c_adapter *__cil_tmp24 ;
12572 struct i2c_driver *__cil_tmp25 ;
12573 char const *__cil_tmp26 ;
12574 unsigned short __cil_tmp27 ;
12575 int __cil_tmp28 ;
12576 int __cil_tmp29 ;
12577 int __cil_tmp30 ;
12578 int __cil_tmp31 ;
12579 int __cil_tmp32 ;
12580 int __cil_tmp33 ;
12581 int __cil_tmp34 ;
12582 int __cil_tmp35 ;
12583 int __cil_tmp36 ;
12584 int __cil_tmp37 ;
12585 int __cil_tmp38 ;
12586 int __cil_tmp39 ;
12587 int __cil_tmp40 ;
12588 int __cil_tmp41 ;
12589 int __cil_tmp42 ;
12590 int __cil_tmp43 ;
12591 int __cil_tmp44 ;
12592 struct i2c_adapter *__cil_tmp45 ;
12593 struct i2c_driver *__cil_tmp46 ;
12594 char const *__cil_tmp47 ;
12595 unsigned short __cil_tmp48 ;
12596 int __cil_tmp49 ;
12597 int __cil_tmp50 ;
12598 int __cil_tmp51 ;
12599 struct i2c_adapter *__cil_tmp52 ;
12600 struct i2c_driver *__cil_tmp53 ;
12601 char const *__cil_tmp54 ;
12602 unsigned short __cil_tmp55 ;
12603 int __cil_tmp56 ;
12604 int __cil_tmp57 ;
12605
12606 {
12607 {
12608#line 387
12609 __cil_tmp13 = (struct i2c_client const *)client;
12610#line 387
12611 tmp___7 = i2c_get_clientdata(__cil_tmp13);
12612#line 387
12613 __cil_tmp14 = (struct v4l2_subdev *)tmp___7;
12614#line 387
12615 tmp___8 = to_state(__cil_tmp14);
12616#line 387
12617 state = tmp___8;
12618#line 389
12619 rxsubchans = state->rxsubchans;
12620#line 390
12621 newnicam = state->nicam_on;
12622#line 391
12623 update = 0;
12624 }
12625 {
12626#line 394
12627 __cil_tmp15 = state->mode;
12628#line 394
12629 if (__cil_tmp15 == 3) {
12630#line 394
12631 goto case_3;
12632 } else {
12633 {
12634#line 409
12635 __cil_tmp16 = state->mode;
12636#line 409
12637 if (__cil_tmp16 == 5) {
12638#line 409
12639 goto case_5;
12640 } else {
12641 {
12642#line 410
12643 __cil_tmp17 = state->mode;
12644#line 410
12645 if (__cil_tmp17 == 6) {
12646#line 410
12647 goto case_5;
12648 } else {
12649 {
12650#line 411
12651 __cil_tmp18 = state->mode;
12652#line 411
12653 if (__cil_tmp18 == 7) {
12654#line 411
12655 goto case_5;
12656 } else
12657#line 393
12658 if (0) {
12659 case_3:
12660 {
12661#line 395
12662 val = msp_read_dsp(client, 24);
12663 }
12664#line 396
12665 if (val > 32767) {
12666#line 397
12667 val = val - 65536;
12668 } else {
12669
12670 }
12671 {
12672#line 398
12673 while (1) {
12674 while_continue: ;
12675
12676#line 398
12677 if (msp_debug >= 2) {
12678 {
12679#line 398
12680 __cil_tmp19 = client->adapter;
12681#line 398
12682 tmp___9 = i2c_adapter_id(__cil_tmp19);
12683#line 398
12684 __cil_tmp20 = client->driver;
12685#line 398
12686 __cil_tmp21 = __cil_tmp20->driver.name;
12687#line 398
12688 __cil_tmp22 = client->addr;
12689#line 398
12690 __cil_tmp23 = (int )__cil_tmp22;
12691#line 398
12692 printk("<7>%s %d-%04x: stereo detect register: %d\n", __cil_tmp21, tmp___9,
12693 __cil_tmp23, val);
12694 }
12695 } else {
12696
12697 }
12698#line 398
12699 goto while_break;
12700 }
12701 while_break___3: ;
12702 }
12703
12704 while_break: ;
12705#line 400
12706 if (val > 8192) {
12707#line 401
12708 rxsubchans = 2;
12709 } else
12710#line 402
12711 if (val < -4096) {
12712#line 403
12713 rxsubchans = 12;
12714 } else {
12715#line 405
12716 rxsubchans = 1;
12717 }
12718#line 407
12719 newnicam = 0;
12720#line 408
12721 goto switch_break;
12722 case_5:
12723 {
12724#line 412
12725 val = msp_read_dem(client, 35);
12726 }
12727 {
12728#line 413
12729 while (1) {
12730 while_continue___0: ;
12731
12732#line 413
12733 if (msp_debug >= 2) {
12734 {
12735#line 413
12736 __cil_tmp24 = client->adapter;
12737#line 413
12738 tmp___10 = i2c_adapter_id(__cil_tmp24);
12739#line 413
12740 __cil_tmp25 = client->driver;
12741#line 413
12742 __cil_tmp26 = __cil_tmp25->driver.name;
12743#line 413
12744 __cil_tmp27 = client->addr;
12745#line 413
12746 __cil_tmp28 = (int )__cil_tmp27;
12747#line 413
12748 __cil_tmp29 = val & 1;
12749#line 413
12750 __cil_tmp30 = val & 30;
12751#line 413
12752 __cil_tmp31 = __cil_tmp30 >> 1;
12753#line 413
12754 printk("<7>%s %d-%04x: nicam sync=%d, mode=%d\n", __cil_tmp26, tmp___10,
12755 __cil_tmp28, __cil_tmp29, __cil_tmp31);
12756 }
12757 } else {
12758
12759 }
12760#line 413
12761 goto while_break___0;
12762 }
12763 while_break___4: ;
12764 }
12765
12766 while_break___0: ;
12767#line 416
12768 if (val & 1) {
12769 {
12770#line 419
12771 __cil_tmp32 = val & 30;
12772#line 419
12773 __cil_tmp33 = __cil_tmp32 >> 1;
12774#line 419
12775 if (__cil_tmp33 == 0) {
12776#line 419
12777 goto case_0;
12778 } else {
12779 {
12780#line 420
12781 __cil_tmp34 = val & 30;
12782#line 420
12783 __cil_tmp35 = __cil_tmp34 >> 1;
12784#line 420
12785 if (__cil_tmp35 == 8) {
12786#line 420
12787 goto case_0;
12788 } else {
12789 {
12790#line 423
12791 __cil_tmp36 = val & 30;
12792#line 423
12793 __cil_tmp37 = __cil_tmp36 >> 1;
12794#line 423
12795 if (__cil_tmp37 == 1) {
12796#line 423
12797 goto case_1;
12798 } else {
12799 {
12800#line 424
12801 __cil_tmp38 = val & 30;
12802#line 424
12803 __cil_tmp39 = __cil_tmp38 >> 1;
12804#line 424
12805 if (__cil_tmp39 == 9) {
12806#line 424
12807 goto case_1;
12808 } else {
12809 {
12810#line 427
12811 __cil_tmp40 = val & 30;
12812#line 427
12813 __cil_tmp41 = __cil_tmp40 >> 1;
12814#line 427
12815 if (__cil_tmp41 == 2) {
12816#line 427
12817 goto case_2;
12818 } else {
12819 {
12820#line 428
12821 __cil_tmp42 = val & 30;
12822#line 428
12823 __cil_tmp43 = __cil_tmp42 >> 1;
12824#line 428
12825 if (__cil_tmp43 == 10) {
12826#line 428
12827 goto case_2;
12828 } else {
12829#line 431
12830 goto switch_default;
12831#line 418
12832 if (0) {
12833 case_0:
12834#line 421
12835 rxsubchans = 2;
12836#line 422
12837 goto switch_break___0;
12838 case_1:
12839#line 425
12840 rxsubchans = 1;
12841#line 426
12842 goto switch_break___0;
12843 case_2:
12844#line 429
12845 rxsubchans = 12;
12846#line 430
12847 goto switch_break___0;
12848 switch_default:
12849#line 432
12850 rxsubchans = 1;
12851#line 433
12852 goto switch_break___0;
12853 } else {
12854 switch_break___0: ;
12855 }
12856 }
12857 }
12858 }
12859 }
12860 }
12861 }
12862 }
12863 }
12864 }
12865 }
12866 }
12867 }
12868#line 435
12869 newnicam = 1;
12870 } else {
12871#line 437
12872 newnicam = 0;
12873#line 438
12874 rxsubchans = 1;
12875 }
12876#line 440
12877 goto switch_break;
12878 } else {
12879 switch_break: ;
12880 }
12881 }
12882 }
12883 }
12884 }
12885 }
12886 }
12887 }
12888 {
12889#line 442
12890 __cil_tmp44 = state->rxsubchans;
12891#line 442
12892 if (rxsubchans != __cil_tmp44) {
12893#line 443
12894 update = 1;
12895 {
12896#line 444
12897 while (1) {
12898 while_continue___1: ;
12899
12900#line 444
12901 if (msp_debug >= 1) {
12902 {
12903#line 444
12904 __cil_tmp45 = client->adapter;
12905#line 444
12906 tmp___11 = i2c_adapter_id(__cil_tmp45);
12907#line 444
12908 __cil_tmp46 = client->driver;
12909#line 444
12910 __cil_tmp47 = __cil_tmp46->driver.name;
12911#line 444
12912 __cil_tmp48 = client->addr;
12913#line 444
12914 __cil_tmp49 = (int )__cil_tmp48;
12915#line 444
12916 __cil_tmp50 = state->rxsubchans;
12917#line 444
12918 printk("<7>%s %d-%04x: watch: rxsubchans %02x => %02x\n", __cil_tmp47, tmp___11,
12919 __cil_tmp49, __cil_tmp50, rxsubchans);
12920 }
12921 } else {
12922
12923 }
12924#line 444
12925 goto while_break___1;
12926 }
12927 while_break___5: ;
12928 }
12929
12930 while_break___1:
12931#line 447
12932 state->rxsubchans = rxsubchans;
12933 } else {
12934
12935 }
12936 }
12937 {
12938#line 449
12939 __cil_tmp51 = state->nicam_on;
12940#line 449
12941 if (newnicam != __cil_tmp51) {
12942#line 450
12943 update = 1;
12944 {
12945#line 451
12946 while (1) {
12947 while_continue___2: ;
12948
12949#line 451
12950 if (msp_debug >= 1) {
12951 {
12952#line 451
12953 __cil_tmp52 = client->adapter;
12954#line 451
12955 tmp___12 = i2c_adapter_id(__cil_tmp52);
12956#line 451
12957 __cil_tmp53 = client->driver;
12958#line 451
12959 __cil_tmp54 = __cil_tmp53->driver.name;
12960#line 451
12961 __cil_tmp55 = client->addr;
12962#line 451
12963 __cil_tmp56 = (int )__cil_tmp55;
12964#line 451
12965 __cil_tmp57 = state->nicam_on;
12966#line 451
12967 printk("<7>%s %d-%04x: watch: nicam %d => %d\n", __cil_tmp54, tmp___12, __cil_tmp56,
12968 __cil_tmp57, newnicam);
12969 }
12970 } else {
12971
12972 }
12973#line 451
12974 goto while_break___2;
12975 }
12976 while_break___6: ;
12977 }
12978
12979 while_break___2:
12980#line 453
12981 state->nicam_on = newnicam;
12982 } else {
12983
12984 }
12985 }
12986#line 455
12987 return (update);
12988}
12989}
12990#line 463 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
12991static void watch_stereo(struct i2c_client *client )
12992{ struct msp_state *state ;
12993 void *tmp___7 ;
12994 struct msp_state *tmp___8 ;
12995 int tmp___9 ;
12996 struct i2c_client const *__cil_tmp6 ;
12997 struct v4l2_subdev *__cil_tmp7 ;
12998
12999 {
13000 {
13001#line 465
13002 __cil_tmp6 = (struct i2c_client const *)client;
13003#line 465
13004 tmp___7 = i2c_get_clientdata(__cil_tmp6);
13005#line 465
13006 __cil_tmp7 = (struct v4l2_subdev *)tmp___7;
13007#line 465
13008 tmp___8 = to_state(__cil_tmp7);
13009#line 465
13010 state = tmp___8;
13011#line 467
13012 tmp___9 = msp_detect_stereo(client);
13013 }
13014#line 467
13015 if (tmp___9) {
13016 {
13017#line 468
13018 msp_set_audmode(client);
13019 }
13020 } else {
13021
13022 }
13023#line 470
13024 if (msp_once) {
13025#line 471
13026 state->watch_stereo = 0U;
13027 } else {
13028
13029 }
13030#line 472
13031 return;
13032}
13033}
13034#line 474 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
13035int msp3400c_thread(void *data )
13036{ struct i2c_client *client ;
13037 struct msp_state *state ;
13038 void *tmp___7 ;
13039 struct msp_state *tmp___8 ;
13040 struct msp3400c_carrier_detect *cd ;
13041 int count ;
13042 int max1 ;
13043 int max2 ;
13044 int val1 ;
13045 int val2 ;
13046 int val ;
13047 int i ;
13048 int tmp___9 ;
13049 int tmp___10 ;
13050 int tmp___11 ;
13051 int tmp___12 ;
13052 int tmp___13 ;
13053 int tmp___14 ;
13054 int tmp___15 ;
13055 int tmp___16 ;
13056 int tmp___17 ;
13057 int tmp___18 ;
13058 int tmp___19 ;
13059 int tmp___20 ;
13060 int tmp___21 ;
13061 int tmp___22 ;
13062 int tmp___23 ;
13063 struct i2c_client const *__cil_tmp29 ;
13064 struct v4l2_subdev *__cil_tmp30 ;
13065 struct i2c_adapter *__cil_tmp31 ;
13066 struct i2c_driver *__cil_tmp32 ;
13067 char const *__cil_tmp33 ;
13068 unsigned short __cil_tmp34 ;
13069 int __cil_tmp35 ;
13070 struct i2c_adapter *__cil_tmp36 ;
13071 struct i2c_driver *__cil_tmp37 ;
13072 char const *__cil_tmp38 ;
13073 unsigned short __cil_tmp39 ;
13074 int __cil_tmp40 ;
13075 struct i2c_adapter *__cil_tmp41 ;
13076 struct i2c_driver *__cil_tmp42 ;
13077 char const *__cil_tmp43 ;
13078 unsigned short __cil_tmp44 ;
13079 int __cil_tmp45 ;
13080 struct i2c_adapter *__cil_tmp46 ;
13081 struct i2c_driver *__cil_tmp47 ;
13082 char const *__cil_tmp48 ;
13083 unsigned short __cil_tmp49 ;
13084 int __cil_tmp50 ;
13085 int __cil_tmp51 ;
13086 struct i2c_adapter *__cil_tmp52 ;
13087 struct i2c_driver *__cil_tmp53 ;
13088 char const *__cil_tmp54 ;
13089 unsigned short __cil_tmp55 ;
13090 int __cil_tmp56 ;
13091 unsigned long __cil_tmp57 ;
13092 unsigned long __cil_tmp58 ;
13093 v4l2_std_id __cil_tmp59 ;
13094 struct i2c_adapter *__cil_tmp60 ;
13095 struct i2c_driver *__cil_tmp61 ;
13096 char const *__cil_tmp62 ;
13097 unsigned short __cil_tmp63 ;
13098 int __cil_tmp64 ;
13099 struct msp3400c_carrier_detect *__cil_tmp65 ;
13100 int __cil_tmp66 ;
13101 struct msp3400c_carrier_detect *__cil_tmp67 ;
13102 int __cil_tmp68 ;
13103 struct i2c_adapter *__cil_tmp69 ;
13104 struct i2c_driver *__cil_tmp70 ;
13105 char const *__cil_tmp71 ;
13106 unsigned short __cil_tmp72 ;
13107 int __cil_tmp73 ;
13108 struct msp3400c_carrier_detect *__cil_tmp74 ;
13109 char *__cil_tmp75 ;
13110 unsigned long __cil_tmp76 ;
13111 unsigned long __cil_tmp77 ;
13112 unsigned long __cil_tmp78 ;
13113 unsigned long __cil_tmp79 ;
13114 void *__cil_tmp80 ;
13115 v4l2_std_id __cil_tmp81 ;
13116 void *__cil_tmp82 ;
13117 struct msp3400c_carrier_detect *__cil_tmp83 ;
13118 int __cil_tmp84 ;
13119 struct msp3400c_carrier_detect *__cil_tmp85 ;
13120 int __cil_tmp86 ;
13121 struct i2c_adapter *__cil_tmp87 ;
13122 struct i2c_driver *__cil_tmp88 ;
13123 char const *__cil_tmp89 ;
13124 unsigned short __cil_tmp90 ;
13125 int __cil_tmp91 ;
13126 struct msp3400c_carrier_detect *__cil_tmp92 ;
13127 char *__cil_tmp93 ;
13128 int __cil_tmp94 ;
13129 float __cil_tmp95 ;
13130 double __cil_tmp96 ;
13131 float __cil_tmp97 ;
13132 float __cil_tmp98 ;
13133 v4l2_std_id __cil_tmp99 ;
13134 int __cil_tmp100 ;
13135 int __cil_tmp101 ;
13136 struct i2c_adapter *__cil_tmp102 ;
13137 struct i2c_driver *__cil_tmp103 ;
13138 char const *__cil_tmp104 ;
13139 unsigned short __cil_tmp105 ;
13140 int __cil_tmp106 ;
13141
13142 {
13143 {
13144#line 476
13145 client = (struct i2c_client *)data;
13146#line 477
13147 __cil_tmp29 = (struct i2c_client const *)client;
13148#line 477
13149 tmp___7 = i2c_get_clientdata(__cil_tmp29);
13150#line 477
13151 __cil_tmp30 = (struct v4l2_subdev *)tmp___7;
13152#line 477
13153 tmp___8 = to_state(__cil_tmp30);
13154#line 477
13155 state = tmp___8;
13156 }
13157 {
13158#line 481
13159 while (1) {
13160 while_continue: ;
13161
13162#line 481
13163 if (msp_debug >= 1) {
13164 {
13165#line 481
13166 __cil_tmp31 = client->adapter;
13167#line 481
13168 tmp___9 = i2c_adapter_id(__cil_tmp31);
13169#line 481
13170 __cil_tmp32 = client->driver;
13171#line 481
13172 __cil_tmp33 = __cil_tmp32->driver.name;
13173#line 481
13174 __cil_tmp34 = client->addr;
13175#line 481
13176 __cil_tmp35 = (int )__cil_tmp34;
13177#line 481
13178 printk("<7>%s %d-%04x: msp3400 daemon started\n", __cil_tmp33, tmp___9, __cil_tmp35);
13179 }
13180 } else {
13181
13182 }
13183#line 481
13184 goto while_break;
13185 }
13186 while_break___12: ;
13187 }
13188
13189 while_break:
13190 {
13191#line 482
13192 set_freezable();
13193 }
13194 {
13195#line 483
13196 while (1) {
13197 while_continue___0: ;
13198
13199 {
13200#line 484
13201 while (1) {
13202 while_continue___1: ;
13203
13204#line 484
13205 if (msp_debug >= 2) {
13206 {
13207#line 484
13208 __cil_tmp36 = client->adapter;
13209#line 484
13210 tmp___10 = i2c_adapter_id(__cil_tmp36);
13211#line 484
13212 __cil_tmp37 = client->driver;
13213#line 484
13214 __cil_tmp38 = __cil_tmp37->driver.name;
13215#line 484
13216 __cil_tmp39 = client->addr;
13217#line 484
13218 __cil_tmp40 = (int )__cil_tmp39;
13219#line 484
13220 printk("<7>%s %d-%04x: msp3400 thread: sleep\n", __cil_tmp38, tmp___10, __cil_tmp40);
13221 }
13222 } else {
13223
13224 }
13225#line 484
13226 goto while_break___1;
13227 }
13228 while_break___14: ;
13229 }
13230
13231 while_break___1:
13232 {
13233#line 485
13234 msp_sleep(state, -1);
13235 }
13236 {
13237#line 486
13238 while (1) {
13239 while_continue___2: ;
13240
13241#line 486
13242 if (msp_debug >= 2) {
13243 {
13244#line 486
13245 __cil_tmp41 = client->adapter;
13246#line 486
13247 tmp___11 = i2c_adapter_id(__cil_tmp41);
13248#line 486
13249 __cil_tmp42 = client->driver;
13250#line 486
13251 __cil_tmp43 = __cil_tmp42->driver.name;
13252#line 486
13253 __cil_tmp44 = client->addr;
13254#line 486
13255 __cil_tmp45 = (int )__cil_tmp44;
13256#line 486
13257 printk("<7>%s %d-%04x: msp3400 thread: wakeup\n", __cil_tmp43, tmp___11, __cil_tmp45);
13258 }
13259 } else {
13260
13261 }
13262#line 486
13263 goto while_break___2;
13264 }
13265 while_break___15: ;
13266 }
13267
13268 while_break___2: ;
13269 restart:
13270 {
13271#line 489
13272 while (1) {
13273 while_continue___3: ;
13274
13275#line 489
13276 if (msp_debug >= 2) {
13277 {
13278#line 489
13279 __cil_tmp46 = client->adapter;
13280#line 489
13281 tmp___12 = i2c_adapter_id(__cil_tmp46);
13282#line 489
13283 __cil_tmp47 = client->driver;
13284#line 489
13285 __cil_tmp48 = __cil_tmp47->driver.name;
13286#line 489
13287 __cil_tmp49 = client->addr;
13288#line 489
13289 __cil_tmp50 = (int )__cil_tmp49;
13290#line 489
13291 printk("<7>%s %d-%04x: thread: restart scan\n", __cil_tmp48, tmp___12, __cil_tmp50);
13292 }
13293 } else {
13294
13295 }
13296#line 489
13297 goto while_break___3;
13298 }
13299 while_break___16: ;
13300 }
13301
13302 while_break___3:
13303 {
13304#line 490
13305 state->restart = 0U;
13306#line 491
13307 tmp___13 = kthread_should_stop();
13308 }
13309#line 491
13310 if (tmp___13) {
13311#line 492
13312 goto while_break___0;
13313 } else {
13314
13315 }
13316#line 494
13317 if (state->radio) {
13318#line 494
13319 goto _L;
13320 } else {
13321 {
13322#line 494
13323 __cil_tmp51 = state->mode;
13324#line 494
13325 if (9 == __cil_tmp51) {
13326 _L:
13327 {
13328#line 496
13329 while (1) {
13330 while_continue___4: ;
13331
13332#line 496
13333 if (msp_debug >= 1) {
13334 {
13335#line 496
13336 __cil_tmp52 = client->adapter;
13337#line 496
13338 tmp___14 = i2c_adapter_id(__cil_tmp52);
13339#line 496
13340 __cil_tmp53 = client->driver;
13341#line 496
13342 __cil_tmp54 = __cil_tmp53->driver.name;
13343#line 496
13344 __cil_tmp55 = client->addr;
13345#line 496
13346 __cil_tmp56 = (int )__cil_tmp55;
13347#line 496
13348 printk("<7>%s %d-%04x: thread: no carrier scan\n", __cil_tmp54, tmp___14,
13349 __cil_tmp56);
13350 }
13351 } else {
13352
13353 }
13354#line 496
13355 goto while_break___4;
13356 }
13357 while_break___17: ;
13358 }
13359
13360 while_break___4:
13361 {
13362#line 498
13363 state->scan_in_progress = 0;
13364#line 499
13365 msp_update_volume(state);
13366 }
13367#line 500
13368 goto __Cont;
13369 } else {
13370
13371 }
13372 }
13373 }
13374 {
13375#line 504
13376 state->scan_in_progress = 1;
13377#line 505
13378 msp_update_volume(state);
13379#line 507
13380 msp3400c_set_mode(client, 0);
13381#line 508
13382 val2 = 0;
13383#line 508
13384 val1 = val2;
13385#line 509
13386 max2 = -1;
13387#line 509
13388 max1 = max2;
13389#line 510
13390 state->watch_stereo = 0U;
13391#line 511
13392 state->nicam_on = 0;
13393#line 514
13394 tmp___15 = msp_sleep(state, 200);
13395 }
13396#line 514
13397 if (tmp___15) {
13398#line 515
13399 goto restart;
13400 } else {
13401
13402 }
13403#line 518
13404 cd = & msp3400c_carrier_detect_main[0];
13405#line 519
13406 __cil_tmp57 = 64UL / 16UL;
13407#line 519
13408 __cil_tmp58 = __cil_tmp57 + 0UL;
13409#line 519
13410 count = (int )__cil_tmp58;
13411#line 521
13412 if (msp_amsound) {
13413 {
13414#line 521
13415 __cil_tmp59 = state->v4l2_std;
13416#line 521
13417 if (__cil_tmp59 & 16711680ULL) {
13418#line 523
13419 max1 = 3;
13420#line 524
13421 count = 0;
13422 {
13423#line 525
13424 while (1) {
13425 while_continue___5: ;
13426
13427#line 525
13428 if (msp_debug >= 1) {
13429 {
13430#line 525
13431 __cil_tmp60 = client->adapter;
13432#line 525
13433 tmp___16 = i2c_adapter_id(__cil_tmp60);
13434#line 525
13435 __cil_tmp61 = client->driver;
13436#line 525
13437 __cil_tmp62 = __cil_tmp61->driver.name;
13438#line 525
13439 __cil_tmp63 = client->addr;
13440#line 525
13441 __cil_tmp64 = (int )__cil_tmp63;
13442#line 525
13443 printk("<7>%s %d-%04x: AM sound override\n", __cil_tmp62, tmp___16, __cil_tmp64);
13444 }
13445 } else {
13446
13447 }
13448#line 525
13449 goto while_break___5;
13450 }
13451 while_break___18: ;
13452 }
13453
13454 while_break___5: ;
13455 } else {
13456
13457 }
13458 }
13459 } else {
13460
13461 }
13462#line 528
13463 i = 0;
13464 {
13465#line 528
13466 while (1) {
13467 while_continue___6: ;
13468
13469#line 528
13470 if (i < count) {
13471
13472 } else {
13473#line 528
13474 goto while_break___6;
13475 }
13476 {
13477#line 529
13478 __cil_tmp65 = cd + i;
13479#line 529
13480 __cil_tmp66 = __cil_tmp65->cdo;
13481#line 529
13482 __cil_tmp67 = cd + i;
13483#line 529
13484 __cil_tmp68 = __cil_tmp67->cdo;
13485#line 529
13486 msp3400c_set_carrier(client, __cil_tmp66, __cil_tmp68);
13487#line 530
13488 tmp___17 = msp_sleep(state, 100);
13489 }
13490#line 530
13491 if (tmp___17) {
13492#line 531
13493 goto restart;
13494 } else {
13495
13496 }
13497 {
13498#line 532
13499 val = msp_read_dsp(client, 27);
13500 }
13501#line 533
13502 if (val > 32767) {
13503#line 534
13504 val = val - 65536;
13505 } else {
13506
13507 }
13508#line 535
13509 if (val1 < val) {
13510#line 536
13511 val1 = val;
13512#line 536
13513 max1 = i;
13514 } else {
13515
13516 }
13517 {
13518#line 537
13519 while (1) {
13520 while_continue___7: ;
13521
13522#line 537
13523 if (msp_debug >= 1) {
13524 {
13525#line 537
13526 __cil_tmp69 = client->adapter;
13527#line 537
13528 tmp___18 = i2c_adapter_id(__cil_tmp69);
13529#line 537
13530 __cil_tmp70 = client->driver;
13531#line 537
13532 __cil_tmp71 = __cil_tmp70->driver.name;
13533#line 537
13534 __cil_tmp72 = client->addr;
13535#line 537
13536 __cil_tmp73 = (int )__cil_tmp72;
13537#line 537
13538 __cil_tmp74 = cd + i;
13539#line 537
13540 __cil_tmp75 = __cil_tmp74->name;
13541#line 537
13542 printk("<7>%s %d-%04x: carrier1 val: %5d / %s\n", __cil_tmp71, tmp___18,
13543 __cil_tmp73, val, __cil_tmp75);
13544 }
13545 } else {
13546
13547 }
13548#line 537
13549 goto while_break___7;
13550 }
13551 while_break___20: ;
13552 }
13553
13554 while_break___7:
13555#line 528
13556 i = i + 1;
13557 }
13558 while_break___19: ;
13559 }
13560
13561 while_break___6: ;
13562#line 543
13563 if (max1 == 1) {
13564#line 543
13565 goto case_1;
13566 } else
13567#line 547
13568 if (max1 == 3) {
13569#line 547
13570 goto case_3;
13571 } else {
13572#line 553
13573 goto switch_default;
13574#line 542
13575 if (0) {
13576 case_1:
13577#line 544
13578 cd = & msp3400c_carrier_detect_55[0];
13579#line 545
13580 __cil_tmp76 = 32UL / 16UL;
13581#line 545
13582 __cil_tmp77 = __cil_tmp76 + 0UL;
13583#line 545
13584 count = (int )__cil_tmp77;
13585#line 546
13586 goto switch_break;
13587 case_3:
13588#line 548
13589 cd = & msp3400c_carrier_detect_65[0];
13590#line 549
13591 __cil_tmp78 = 96UL / 16UL;
13592#line 549
13593 __cil_tmp79 = __cil_tmp78 + 0UL;
13594#line 549
13595 count = (int )__cil_tmp79;
13596#line 550
13597 goto switch_break;
13598 switch_default:
13599#line 554
13600 __cil_tmp80 = (void *)0;
13601#line 554
13602 cd = (struct msp3400c_carrier_detect *)__cil_tmp80;
13603#line 555
13604 count = 0;
13605#line 556
13606 goto switch_break;
13607 } else {
13608 switch_break: ;
13609 }
13610 }
13611#line 559
13612 if (msp_amsound) {
13613 {
13614#line 559
13615 __cil_tmp81 = state->v4l2_std;
13616#line 559
13617 if (__cil_tmp81 & 16711680ULL) {
13618#line 561
13619 __cil_tmp82 = (void *)0;
13620#line 561
13621 cd = (struct msp3400c_carrier_detect *)__cil_tmp82;
13622#line 562
13623 count = 0;
13624#line 563
13625 max2 = 0;
13626 } else {
13627
13628 }
13629 }
13630 } else {
13631
13632 }
13633#line 565
13634 i = 0;
13635 {
13636#line 565
13637 while (1) {
13638 while_continue___8: ;
13639
13640#line 565
13641 if (i < count) {
13642
13643 } else {
13644#line 565
13645 goto while_break___8;
13646 }
13647 {
13648#line 566
13649 __cil_tmp83 = cd + i;
13650#line 566
13651 __cil_tmp84 = __cil_tmp83->cdo;
13652#line 566
13653 __cil_tmp85 = cd + i;
13654#line 566
13655 __cil_tmp86 = __cil_tmp85->cdo;
13656#line 566
13657 msp3400c_set_carrier(client, __cil_tmp84, __cil_tmp86);
13658#line 567
13659 tmp___19 = msp_sleep(state, 100);
13660 }
13661#line 567
13662 if (tmp___19) {
13663#line 568
13664 goto restart;
13665 } else {
13666
13667 }
13668 {
13669#line 569
13670 val = msp_read_dsp(client, 27);
13671 }
13672#line 570
13673 if (val > 32767) {
13674#line 571
13675 val = val - 65536;
13676 } else {
13677
13678 }
13679#line 572
13680 if (val2 < val) {
13681#line 573
13682 val2 = val;
13683#line 573
13684 max2 = i;
13685 } else {
13686
13687 }
13688 {
13689#line 574
13690 while (1) {
13691 while_continue___9: ;
13692
13693#line 574
13694 if (msp_debug >= 1) {
13695 {
13696#line 574
13697 __cil_tmp87 = client->adapter;
13698#line 574
13699 tmp___20 = i2c_adapter_id(__cil_tmp87);
13700#line 574
13701 __cil_tmp88 = client->driver;
13702#line 574
13703 __cil_tmp89 = __cil_tmp88->driver.name;
13704#line 574
13705 __cil_tmp90 = client->addr;
13706#line 574
13707 __cil_tmp91 = (int )__cil_tmp90;
13708#line 574
13709 __cil_tmp92 = cd + i;
13710#line 574
13711 __cil_tmp93 = __cil_tmp92->name;
13712#line 574
13713 printk("<7>%s %d-%04x: carrier2 val: %5d / %s\n", __cil_tmp89, tmp___20,
13714 __cil_tmp91, val, __cil_tmp93);
13715 }
13716 } else {
13717
13718 }
13719#line 574
13720 goto while_break___9;
13721 }
13722 while_break___22: ;
13723 }
13724
13725 while_break___9:
13726#line 565
13727 i = i + 1;
13728 }
13729 while_break___21: ;
13730 }
13731
13732 while_break___8:
13733#line 579
13734 state->main = msp3400c_carrier_detect_main[max1].cdo;
13735#line 581
13736 if (max1 == 1) {
13737#line 581
13738 goto case_1___0;
13739 } else
13740#line 597
13741 if (max1 == 2) {
13742#line 597
13743 goto case_2;
13744 } else
13745#line 604
13746 if (max1 == 3) {
13747#line 604
13748 goto case_3___0;
13749 } else {
13750#line 626
13751 goto no_second;
13752#line 580
13753 if (0) {
13754 case_1___0:
13755#line 582
13756 if (max2 == 0) {
13757 {
13758#line 584
13759 state->second = msp3400c_carrier_detect_55[max2].cdo;
13760#line 585
13761 msp3400c_set_mode(client, 3);
13762#line 586
13763 state->watch_stereo = 1U;
13764 }
13765 } else
13766#line 587
13767 if (max2 == 1) {
13768#line 587
13769 if (state->has_nicam) {
13770 {
13771#line 589
13772 state->second = msp3400c_carrier_detect_55[max2].cdo;
13773#line 590
13774 msp3400c_set_mode(client, 5);
13775#line 591
13776 state->nicam_on = 1;
13777#line 592
13778 state->watch_stereo = 1U;
13779 }
13780 } else {
13781#line 594
13782 goto no_second;
13783 }
13784 } else {
13785#line 594
13786 goto no_second;
13787 }
13788#line 596
13789 goto switch_break___0;
13790 case_2:
13791 {
13792#line 599
13793 __cil_tmp94 = 1 << 24;
13794#line 599
13795 __cil_tmp95 = (float )__cil_tmp94;
13796#line 599
13797 __cil_tmp96 = 6.552 / 18.432;
13798#line 599
13799 __cil_tmp97 = (float )__cil_tmp96;
13800#line 599
13801 __cil_tmp98 = __cil_tmp97 * __cil_tmp95;
13802#line 599
13803 state->second = (int )__cil_tmp98;
13804#line 600
13805 msp3400c_set_mode(client, 6);
13806#line 601
13807 state->nicam_on = 1;
13808#line 602
13809 state->watch_stereo = 1U;
13810 }
13811#line 603
13812 goto switch_break___0;
13813 case_3___0:
13814#line 605
13815 if (max2 == 1) {
13816 {
13817#line 607
13818 state->second = msp3400c_carrier_detect_65[max2].cdo;
13819#line 608
13820 msp3400c_set_mode(client, 3);
13821#line 609
13822 state->watch_stereo = 1U;
13823 }
13824 } else
13825#line 605
13826 if (max2 == 2) {
13827 {
13828#line 607
13829 state->second = msp3400c_carrier_detect_65[max2].cdo;
13830#line 608
13831 msp3400c_set_mode(client, 3);
13832#line 609
13833 state->watch_stereo = 1U;
13834 }
13835 } else
13836#line 610
13837 if (max2 == 0) {
13838 {
13839#line 610
13840 __cil_tmp99 = state->v4l2_std;
13841#line 610
13842 if (__cil_tmp99 & 16711680ULL) {
13843 {
13844#line 612
13845 state->second = msp3400c_carrier_detect_65[max2].cdo;
13846#line 613
13847 msp3400c_set_mode(client, 7);
13848#line 614
13849 state->watch_stereo = 1U;
13850 }
13851 } else {
13852#line 610
13853 goto _L___0;
13854 }
13855 }
13856 } else
13857 _L___0:
13858#line 615
13859 if (max2 == 0) {
13860#line 615
13861 if (state->has_nicam) {
13862 {
13863#line 617
13864 state->second = msp3400c_carrier_detect_65[max2].cdo;
13865#line 618
13866 msp3400c_set_mode(client, 5);
13867#line 619
13868 state->nicam_on = 1;
13869#line 620
13870 state->watch_stereo = 1U;
13871 }
13872 } else {
13873#line 622
13874 goto no_second;
13875 }
13876 } else {
13877#line 622
13878 goto no_second;
13879 }
13880#line 624
13881 goto switch_break___0;
13882 no_second:
13883 {
13884#line 628
13885 state->second = msp3400c_carrier_detect_main[max1].cdo;
13886#line 629
13887 msp3400c_set_mode(client, 3);
13888 }
13889#line 630
13890 goto switch_break___0;
13891 } else {
13892 switch_break___0: ;
13893 }
13894 }
13895 {
13896#line 632
13897 __cil_tmp100 = state->second;
13898#line 632
13899 __cil_tmp101 = state->main;
13900#line 632
13901 msp3400c_set_carrier(client, __cil_tmp100, __cil_tmp101);
13902#line 635
13903 state->scan_in_progress = 0;
13904#line 636
13905 msp3400c_set_audmode(client);
13906#line 637
13907 msp_update_volume(state);
13908 }
13909#line 639
13910 if (msp_debug) {
13911 {
13912#line 640
13913 msp3400c_print_mode(client);
13914 }
13915 } else {
13916
13917 }
13918#line 644
13919 count = 3;
13920 {
13921#line 645
13922 while (1) {
13923 while_continue___10: ;
13924
13925#line 645
13926 if (state->watch_stereo) {
13927
13928 } else {
13929#line 645
13930 goto while_break___10;
13931 }
13932#line 646
13933 if (count) {
13934#line 646
13935 tmp___21 = 1000;
13936 } else {
13937#line 646
13938 tmp___21 = 5000;
13939 }
13940 {
13941#line 646
13942 tmp___22 = msp_sleep(state, tmp___21);
13943 }
13944#line 646
13945 if (tmp___22) {
13946#line 647
13947 goto restart;
13948 } else {
13949
13950 }
13951#line 648
13952 if (count) {
13953#line 649
13954 count = count - 1;
13955 } else {
13956
13957 }
13958 {
13959#line 650
13960 watch_stereo(client);
13961 }
13962 }
13963 while_break___23: ;
13964 }
13965
13966 while_break___10: ;
13967 __Cont: ;
13968 }
13969 while_break___13: ;
13970 }
13971
13972 while_break___0: ;
13973 {
13974#line 653
13975 while (1) {
13976 while_continue___11: ;
13977
13978#line 653
13979 if (msp_debug >= 1) {
13980 {
13981#line 653
13982 __cil_tmp102 = client->adapter;
13983#line 653
13984 tmp___23 = i2c_adapter_id(__cil_tmp102);
13985#line 653
13986 __cil_tmp103 = client->driver;
13987#line 653
13988 __cil_tmp104 = __cil_tmp103->driver.name;
13989#line 653
13990 __cil_tmp105 = client->addr;
13991#line 653
13992 __cil_tmp106 = (int )__cil_tmp105;
13993#line 653
13994 printk("<7>%s %d-%04x: thread: exit\n", __cil_tmp104, tmp___23, __cil_tmp106);
13995 }
13996 } else {
13997
13998 }
13999#line 653
14000 goto while_break___11;
14001 }
14002 while_break___24: ;
14003 }
14004
14005 while_break___11: ;
14006#line 654
14007 return (0);
14008}
14009}
14010#line 658 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
14011int msp3410d_thread(void *data )
14012{ struct i2c_client *client ;
14013 struct msp_state *state ;
14014 void *tmp___7 ;
14015 struct msp_state *tmp___8 ;
14016 int val ;
14017 int i ;
14018 int std ;
14019 int count ;
14020 int tmp___9 ;
14021 int tmp___10 ;
14022 int tmp___11 ;
14023 int tmp___12 ;
14024 int tmp___13 ;
14025 int tmp___14 ;
14026 int tmp___15 ;
14027 char const *tmp___16 ;
14028 int tmp___17 ;
14029 int tmp___18 ;
14030 int tmp___19 ;
14031 char const *tmp___20 ;
14032 int tmp___21 ;
14033 char const *tmp___22 ;
14034 int tmp___23 ;
14035 int tmp___24 ;
14036 int tmp___25 ;
14037 int tmp___26 ;
14038 struct i2c_client const *__cil_tmp28 ;
14039 struct v4l2_subdev *__cil_tmp29 ;
14040 struct i2c_adapter *__cil_tmp30 ;
14041 struct i2c_driver *__cil_tmp31 ;
14042 char const *__cil_tmp32 ;
14043 unsigned short __cil_tmp33 ;
14044 int __cil_tmp34 ;
14045 struct i2c_adapter *__cil_tmp35 ;
14046 struct i2c_driver *__cil_tmp36 ;
14047 char const *__cil_tmp37 ;
14048 unsigned short __cil_tmp38 ;
14049 int __cil_tmp39 ;
14050 struct i2c_adapter *__cil_tmp40 ;
14051 struct i2c_driver *__cil_tmp41 ;
14052 char const *__cil_tmp42 ;
14053 unsigned short __cil_tmp43 ;
14054 int __cil_tmp44 ;
14055 struct i2c_adapter *__cil_tmp45 ;
14056 struct i2c_driver *__cil_tmp46 ;
14057 char const *__cil_tmp47 ;
14058 unsigned short __cil_tmp48 ;
14059 int __cil_tmp49 ;
14060 int __cil_tmp50 ;
14061 struct i2c_adapter *__cil_tmp51 ;
14062 struct i2c_driver *__cil_tmp52 ;
14063 char const *__cil_tmp53 ;
14064 unsigned short __cil_tmp54 ;
14065 int __cil_tmp55 ;
14066 v4l2_std_id __cil_tmp56 ;
14067 struct i2c_adapter *__cil_tmp57 ;
14068 struct i2c_driver *__cil_tmp58 ;
14069 char const *__cil_tmp59 ;
14070 unsigned short __cil_tmp60 ;
14071 int __cil_tmp61 ;
14072 struct i2c_adapter *__cil_tmp62 ;
14073 struct i2c_driver *__cil_tmp63 ;
14074 char const *__cil_tmp64 ;
14075 unsigned short __cil_tmp65 ;
14076 int __cil_tmp66 ;
14077 void *__cil_tmp67 ;
14078 unsigned long __cil_tmp68 ;
14079 unsigned long __cil_tmp69 ;
14080 struct i2c_adapter *__cil_tmp70 ;
14081 struct i2c_driver *__cil_tmp71 ;
14082 char const *__cil_tmp72 ;
14083 unsigned short __cil_tmp73 ;
14084 int __cil_tmp74 ;
14085 int __cil_tmp75 ;
14086 v4l2_std_id __cil_tmp76 ;
14087 struct i2c_adapter *__cil_tmp77 ;
14088 struct i2c_driver *__cil_tmp78 ;
14089 char const *__cil_tmp79 ;
14090 unsigned short __cil_tmp80 ;
14091 int __cil_tmp81 ;
14092 int __cil_tmp82 ;
14093 float __cil_tmp83 ;
14094 double __cil_tmp84 ;
14095 float __cil_tmp85 ;
14096 float __cil_tmp86 ;
14097 int __cil_tmp87 ;
14098 int __cil_tmp88 ;
14099 float __cil_tmp89 ;
14100 double __cil_tmp90 ;
14101 float __cil_tmp91 ;
14102 float __cil_tmp92 ;
14103 int __cil_tmp93 ;
14104 int __cil_tmp94 ;
14105 struct i2c_adapter *__cil_tmp95 ;
14106 struct i2c_driver *__cil_tmp96 ;
14107 char const *__cil_tmp97 ;
14108 unsigned short __cil_tmp98 ;
14109 int __cil_tmp99 ;
14110
14111 {
14112 {
14113#line 660
14114 client = (struct i2c_client *)data;
14115#line 661
14116 __cil_tmp28 = (struct i2c_client const *)client;
14117#line 661
14118 tmp___7 = i2c_get_clientdata(__cil_tmp28);
14119#line 661
14120 __cil_tmp29 = (struct v4l2_subdev *)tmp___7;
14121#line 661
14122 tmp___8 = to_state(__cil_tmp29);
14123#line 661
14124 state = tmp___8;
14125 }
14126 {
14127#line 664
14128 while (1) {
14129 while_continue: ;
14130
14131#line 664
14132 if (msp_debug >= 1) {
14133 {
14134#line 664
14135 __cil_tmp30 = client->adapter;
14136#line 664
14137 tmp___9 = i2c_adapter_id(__cil_tmp30);
14138#line 664
14139 __cil_tmp31 = client->driver;
14140#line 664
14141 __cil_tmp32 = __cil_tmp31->driver.name;
14142#line 664
14143 __cil_tmp33 = client->addr;
14144#line 664
14145 __cil_tmp34 = (int )__cil_tmp33;
14146#line 664
14147 printk("<7>%s %d-%04x: msp3410 daemon started\n", __cil_tmp32, tmp___9, __cil_tmp34);
14148 }
14149 } else {
14150
14151 }
14152#line 664
14153 goto while_break;
14154 }
14155 while_break___13: ;
14156 }
14157
14158 while_break:
14159 {
14160#line 665
14161 set_freezable();
14162 }
14163 {
14164#line 666
14165 while (1) {
14166 while_continue___0: ;
14167
14168 {
14169#line 667
14170 while (1) {
14171 while_continue___1: ;
14172
14173#line 667
14174 if (msp_debug >= 2) {
14175 {
14176#line 667
14177 __cil_tmp35 = client->adapter;
14178#line 667
14179 tmp___10 = i2c_adapter_id(__cil_tmp35);
14180#line 667
14181 __cil_tmp36 = client->driver;
14182#line 667
14183 __cil_tmp37 = __cil_tmp36->driver.name;
14184#line 667
14185 __cil_tmp38 = client->addr;
14186#line 667
14187 __cil_tmp39 = (int )__cil_tmp38;
14188#line 667
14189 printk("<7>%s %d-%04x: msp3410 thread: sleep\n", __cil_tmp37, tmp___10, __cil_tmp39);
14190 }
14191 } else {
14192
14193 }
14194#line 667
14195 goto while_break___1;
14196 }
14197 while_break___15: ;
14198 }
14199
14200 while_break___1:
14201 {
14202#line 668
14203 msp_sleep(state, -1);
14204 }
14205 {
14206#line 669
14207 while (1) {
14208 while_continue___2: ;
14209
14210#line 669
14211 if (msp_debug >= 2) {
14212 {
14213#line 669
14214 __cil_tmp40 = client->adapter;
14215#line 669
14216 tmp___11 = i2c_adapter_id(__cil_tmp40);
14217#line 669
14218 __cil_tmp41 = client->driver;
14219#line 669
14220 __cil_tmp42 = __cil_tmp41->driver.name;
14221#line 669
14222 __cil_tmp43 = client->addr;
14223#line 669
14224 __cil_tmp44 = (int )__cil_tmp43;
14225#line 669
14226 printk("<7>%s %d-%04x: msp3410 thread: wakeup\n", __cil_tmp42, tmp___11, __cil_tmp44);
14227 }
14228 } else {
14229
14230 }
14231#line 669
14232 goto while_break___2;
14233 }
14234 while_break___16: ;
14235 }
14236
14237 while_break___2: ;
14238 restart:
14239 {
14240#line 672
14241 while (1) {
14242 while_continue___3: ;
14243
14244#line 672
14245 if (msp_debug >= 2) {
14246 {
14247#line 672
14248 __cil_tmp45 = client->adapter;
14249#line 672
14250 tmp___12 = i2c_adapter_id(__cil_tmp45);
14251#line 672
14252 __cil_tmp46 = client->driver;
14253#line 672
14254 __cil_tmp47 = __cil_tmp46->driver.name;
14255#line 672
14256 __cil_tmp48 = client->addr;
14257#line 672
14258 __cil_tmp49 = (int )__cil_tmp48;
14259#line 672
14260 printk("<7>%s %d-%04x: thread: restart scan\n", __cil_tmp47, tmp___12, __cil_tmp49);
14261 }
14262 } else {
14263
14264 }
14265#line 672
14266 goto while_break___3;
14267 }
14268 while_break___17: ;
14269 }
14270
14271 while_break___3:
14272 {
14273#line 673
14274 state->restart = 0U;
14275#line 674
14276 tmp___13 = kthread_should_stop();
14277 }
14278#line 674
14279 if (tmp___13) {
14280#line 675
14281 goto while_break___0;
14282 } else {
14283
14284 }
14285 {
14286#line 677
14287 __cil_tmp50 = state->mode;
14288#line 677
14289 if (__cil_tmp50 == 9) {
14290 {
14291#line 679
14292 while (1) {
14293 while_continue___4: ;
14294
14295#line 679
14296 if (msp_debug >= 1) {
14297 {
14298#line 679
14299 __cil_tmp51 = client->adapter;
14300#line 679
14301 tmp___14 = i2c_adapter_id(__cil_tmp51);
14302#line 679
14303 __cil_tmp52 = client->driver;
14304#line 679
14305 __cil_tmp53 = __cil_tmp52->driver.name;
14306#line 679
14307 __cil_tmp54 = client->addr;
14308#line 679
14309 __cil_tmp55 = (int )__cil_tmp54;
14310#line 679
14311 printk("<7>%s %d-%04x: thread: no carrier scan\n", __cil_tmp53, tmp___14,
14312 __cil_tmp55);
14313 }
14314 } else {
14315
14316 }
14317#line 679
14318 goto while_break___4;
14319 }
14320 while_break___18: ;
14321 }
14322
14323 while_break___4:
14324 {
14325#line 681
14326 state->scan_in_progress = 0;
14327#line 682
14328 msp_update_volume(state);
14329 }
14330#line 683
14331 goto __Cont;
14332 } else {
14333
14334 }
14335 }
14336 {
14337#line 687
14338 state->scan_in_progress = 1;
14339#line 688
14340 msp_update_volume(state);
14341 }
14342#line 693
14343 if (state->radio) {
14344#line 694
14345 std = 64;
14346 } else {
14347 {
14348#line 696
14349 __cil_tmp56 = state->v4l2_std;
14350#line 696
14351 if (__cil_tmp56 & 45056ULL) {
14352#line 696
14353 std = 32;
14354 } else {
14355#line 696
14356 std = 1;
14357 }
14358 }
14359 }
14360 {
14361#line 697
14362 state->watch_stereo = 0U;
14363#line 698
14364 state->nicam_on = 0;
14365#line 701
14366 tmp___15 = msp_sleep(state, 200);
14367 }
14368#line 701
14369 if (tmp___15) {
14370#line 702
14371 goto restart;
14372 } else {
14373
14374 }
14375#line 704
14376 if (msp_debug) {
14377 {
14378#line 705
14379 while (1) {
14380 while_continue___5: ;
14381
14382#line 705
14383 if (msp_debug >= 2) {
14384 {
14385#line 705
14386 tmp___16 = msp_standard_std_name(std);
14387#line 705
14388 __cil_tmp57 = client->adapter;
14389#line 705
14390 tmp___17 = i2c_adapter_id(__cil_tmp57);
14391#line 705
14392 __cil_tmp58 = client->driver;
14393#line 705
14394 __cil_tmp59 = __cil_tmp58->driver.name;
14395#line 705
14396 __cil_tmp60 = client->addr;
14397#line 705
14398 __cil_tmp61 = (int )__cil_tmp60;
14399#line 705
14400 printk("<7>%s %d-%04x: setting standard: %s (0x%04x)\n", __cil_tmp59, tmp___17,
14401 __cil_tmp61, tmp___16, std);
14402 }
14403 } else {
14404
14405 }
14406#line 705
14407 goto while_break___5;
14408 }
14409 while_break___19: ;
14410 }
14411
14412 while_break___5: ;
14413 } else {
14414
14415 }
14416#line 709
14417 if (std != 1) {
14418#line 711
14419 val = std;
14420 } else {
14421 {
14422#line 714
14423 msp_write_dem(client, 32, std);
14424 }
14425 {
14426#line 715
14427 while (1) {
14428 while_continue___6: ;
14429 {
14430#line 716
14431 tmp___18 = msp_sleep(state, 100);
14432 }
14433#line 716
14434 if (tmp___18) {
14435#line 717
14436 goto restart;
14437 } else {
14438
14439 }
14440 {
14441#line 720
14442 val = msp_read_dem(client, 126);
14443 }
14444#line 721
14445 if (val < 2047) {
14446#line 722
14447 goto while_break___6;
14448 } else {
14449
14450 }
14451 {
14452#line 723
14453 while (1) {
14454 while_continue___7: ;
14455
14456#line 723
14457 if (msp_debug >= 2) {
14458 {
14459#line 723
14460 __cil_tmp62 = client->adapter;
14461#line 723
14462 tmp___19 = i2c_adapter_id(__cil_tmp62);
14463#line 723
14464 __cil_tmp63 = client->driver;
14465#line 723
14466 __cil_tmp64 = __cil_tmp63->driver.name;
14467#line 723
14468 __cil_tmp65 = client->addr;
14469#line 723
14470 __cil_tmp66 = (int )__cil_tmp65;
14471#line 723
14472 printk("<7>%s %d-%04x: detection still in progress\n", __cil_tmp64, tmp___19,
14473 __cil_tmp66);
14474 }
14475 } else {
14476
14477 }
14478#line 723
14479 goto while_break___7;
14480 }
14481 while_break___21: ;
14482 }
14483
14484 while_break___7: ;
14485 }
14486 while_break___20: ;
14487 }
14488
14489 while_break___6: ;
14490 }
14491#line 727
14492 i = 0;
14493 {
14494#line 727
14495 while (1) {
14496 while_continue___8: ;
14497
14498 {
14499#line 727
14500 __cil_tmp67 = (void *)0;
14501#line 727
14502 __cil_tmp68 = (unsigned long )__cil_tmp67;
14503#line 727
14504 __cil_tmp69 = (unsigned long )msp_stdlist[i].name;
14505#line 727
14506 if (__cil_tmp69 != __cil_tmp68) {
14507
14508 } else {
14509#line 727
14510 goto while_break___8;
14511 }
14512 }
14513#line 728
14514 if (msp_stdlist[i].retval == val) {
14515#line 729
14516 goto while_break___8;
14517 } else {
14518
14519 }
14520#line 727
14521 i = i + 1;
14522 }
14523 while_break___22: ;
14524 }
14525
14526 while_break___8: ;
14527 {
14528#line 730
14529 while (1) {
14530 while_continue___9: ;
14531
14532#line 730
14533 if (msp_debug >= 1) {
14534 {
14535#line 730
14536 tmp___20 = msp_standard_std_name(val);
14537#line 730
14538 __cil_tmp70 = client->adapter;
14539#line 730
14540 tmp___21 = i2c_adapter_id(__cil_tmp70);
14541#line 730
14542 __cil_tmp71 = client->driver;
14543#line 730
14544 __cil_tmp72 = __cil_tmp71->driver.name;
14545#line 730
14546 __cil_tmp73 = client->addr;
14547#line 730
14548 __cil_tmp74 = (int )__cil_tmp73;
14549#line 730
14550 printk("<7>%s %d-%04x: current standard: %s (0x%04x)\n", __cil_tmp72, tmp___21,
14551 __cil_tmp74, tmp___20, val);
14552 }
14553 } else {
14554
14555 }
14556#line 730
14557 goto while_break___9;
14558 }
14559 while_break___23: ;
14560 }
14561
14562 while_break___9:
14563#line 732
14564 state->main = msp_stdlist[i].main;
14565#line 733
14566 state->second = msp_stdlist[i].second;
14567#line 734
14568 state->std = val;
14569#line 735
14570 state->rxsubchans = 1;
14571#line 737
14572 if (msp_amsound) {
14573 {
14574#line 737
14575 __cil_tmp75 = state->radio;
14576#line 737
14577 if (! __cil_tmp75) {
14578 {
14579#line 737
14580 __cil_tmp76 = state->v4l2_std;
14581#line 737
14582 if (__cil_tmp76 & 16711680ULL) {
14583#line 737
14584 if (val != 9) {
14585 {
14586#line 740
14587 while (1) {
14588 while_continue___10: ;
14589
14590#line 740
14591 if (msp_debug >= 1) {
14592#line 740
14593 if (msp_stdlist[8].name) {
14594#line 740
14595 tmp___22 = (char const *)msp_stdlist[8].name;
14596 } else {
14597#line 740
14598 tmp___22 = "unknown";
14599 }
14600 {
14601#line 740
14602 __cil_tmp77 = client->adapter;
14603#line 740
14604 tmp___23 = i2c_adapter_id(__cil_tmp77);
14605#line 740
14606 __cil_tmp78 = client->driver;
14607#line 740
14608 __cil_tmp79 = __cil_tmp78->driver.name;
14609#line 740
14610 __cil_tmp80 = client->addr;
14611#line 740
14612 __cil_tmp81 = (int )__cil_tmp80;
14613#line 740
14614 printk("<7>%s %d-%04x: autodetection failed, switching to backup standard: %s (0x%04x)\n",
14615 __cil_tmp79, tmp___23, __cil_tmp81, tmp___22, val);
14616 }
14617 } else {
14618
14619 }
14620#line 740
14621 goto while_break___10;
14622 }
14623 while_break___24: ;
14624 }
14625
14626 while_break___10:
14627 {
14628#line 744
14629 val = 9;
14630#line 744
14631 state->std = val;
14632#line 745
14633 msp_write_dem(client, 32, val);
14634 }
14635 } else {
14636
14637 }
14638 } else {
14639
14640 }
14641 }
14642 } else {
14643
14644 }
14645 }
14646 } else {
14647
14648 }
14649#line 750
14650 if (val == 8) {
14651#line 750
14652 goto case_8;
14653 } else
14654#line 751
14655 if (val == 10) {
14656#line 751
14657 goto case_8;
14658 } else
14659#line 752
14660 if (val == 11) {
14661#line 752
14662 goto case_8;
14663 } else
14664#line 761
14665 if (val == 9) {
14666#line 761
14667 goto case_9;
14668 } else
14669#line 766
14670 if (val == 32) {
14671#line 766
14672 goto case_32;
14673 } else
14674#line 770
14675 if (val == 64) {
14676#line 770
14677 goto case_64;
14678 } else
14679#line 779
14680 if (val == 2) {
14681#line 779
14682 goto case_2;
14683 } else
14684#line 780
14685 if (val == 3) {
14686#line 780
14687 goto case_2;
14688 } else
14689#line 781
14690 if (val == 4) {
14691#line 781
14692 goto case_2;
14693 } else
14694#line 782
14695 if (val == 5) {
14696#line 782
14697 goto case_2;
14698 } else
14699#line 749
14700 if (0) {
14701 case_8:
14702#line 753
14703 if (val == 10) {
14704#line 754
14705 state->mode = 6;
14706 } else {
14707#line 756
14708 state->mode = 5;
14709 }
14710#line 758
14711 state->nicam_on = 1;
14712#line 759
14713 state->watch_stereo = 1U;
14714#line 760
14715 goto switch_break;
14716 case_9:
14717#line 762
14718 state->mode = 7;
14719#line 763
14720 state->nicam_on = 1;
14721#line 764
14722 state->watch_stereo = 1U;
14723#line 765
14724 goto switch_break;
14725 case_32:
14726#line 768
14727 state->mode = 8;
14728#line 769
14729 goto switch_break;
14730 case_64:
14731 {
14732#line 771
14733 state->mode = 2;
14734#line 772
14735 state->rxsubchans = 2;
14736#line 775
14737 msp3400c_set_mode(client, 2);
14738#line 776
14739 __cil_tmp82 = 1 << 24;
14740#line 776
14741 __cil_tmp83 = (float )__cil_tmp82;
14742#line 776
14743 __cil_tmp84 = 10.7 / 18.432;
14744#line 776
14745 __cil_tmp85 = (float )__cil_tmp84;
14746#line 776
14747 __cil_tmp86 = __cil_tmp85 * __cil_tmp83;
14748#line 776
14749 __cil_tmp87 = (int )__cil_tmp86;
14750#line 776
14751 __cil_tmp88 = 1 << 24;
14752#line 776
14753 __cil_tmp89 = (float )__cil_tmp88;
14754#line 776
14755 __cil_tmp90 = 10.7 / 18.432;
14756#line 776
14757 __cil_tmp91 = (float )__cil_tmp90;
14758#line 776
14759 __cil_tmp92 = __cil_tmp91 * __cil_tmp89;
14760#line 776
14761 __cil_tmp93 = (int )__cil_tmp92;
14762#line 776
14763 msp3400c_set_carrier(client, __cil_tmp87, __cil_tmp93);
14764 }
14765#line 778
14766 goto switch_break;
14767 case_2:
14768#line 783
14769 state->mode = 3;
14770#line 784
14771 state->watch_stereo = 1U;
14772#line 785
14773 goto switch_break;
14774 } else {
14775 switch_break: ;
14776 }
14777 {
14778#line 789
14779 msp_write_dsp(client, 13, 6400);
14780#line 790
14781 msp_write_dsp(client, 14, 12288);
14782 }
14783#line 791
14784 if (state->has_nicam) {
14785 {
14786#line 792
14787 msp_write_dsp(client, 16, 23040);
14788 }
14789 } else {
14790
14791 }
14792#line 794
14793 if (state->has_i2s_conf) {
14794 {
14795#line 795
14796 __cil_tmp94 = state->i2s_mode;
14797#line 795
14798 msp_write_dem(client, 64, __cil_tmp94);
14799 }
14800 } else {
14801
14802 }
14803 {
14804#line 798
14805 msp3400c_set_audmode(client);
14806#line 799
14807 state->scan_in_progress = 0;
14808#line 800
14809 msp_update_volume(state);
14810#line 804
14811 count = 3;
14812 }
14813 {
14814#line 805
14815 while (1) {
14816 while_continue___11: ;
14817
14818#line 805
14819 if (state->watch_stereo) {
14820
14821 } else {
14822#line 805
14823 goto while_break___11;
14824 }
14825#line 806
14826 if (count) {
14827#line 806
14828 tmp___24 = 1000;
14829 } else {
14830#line 806
14831 tmp___24 = 5000;
14832 }
14833 {
14834#line 806
14835 tmp___25 = msp_sleep(state, tmp___24);
14836 }
14837#line 806
14838 if (tmp___25) {
14839#line 807
14840 goto restart;
14841 } else {
14842
14843 }
14844#line 808
14845 if (count) {
14846#line 809
14847 count = count - 1;
14848 } else {
14849
14850 }
14851 {
14852#line 810
14853 watch_stereo(client);
14854 }
14855 }
14856 while_break___25: ;
14857 }
14858
14859 while_break___11: ;
14860 __Cont: ;
14861 }
14862 while_break___14: ;
14863 }
14864
14865 while_break___0: ;
14866 {
14867#line 813
14868 while (1) {
14869 while_continue___12: ;
14870
14871#line 813
14872 if (msp_debug >= 1) {
14873 {
14874#line 813
14875 __cil_tmp95 = client->adapter;
14876#line 813
14877 tmp___26 = i2c_adapter_id(__cil_tmp95);
14878#line 813
14879 __cil_tmp96 = client->driver;
14880#line 813
14881 __cil_tmp97 = __cil_tmp96->driver.name;
14882#line 813
14883 __cil_tmp98 = client->addr;
14884#line 813
14885 __cil_tmp99 = (int )__cil_tmp98;
14886#line 813
14887 printk("<7>%s %d-%04x: thread: exit\n", __cil_tmp97, tmp___26, __cil_tmp99);
14888 }
14889 } else {
14890
14891 }
14892#line 813
14893 goto while_break___12;
14894 }
14895 while_break___26: ;
14896 }
14897
14898 while_break___12: ;
14899#line 814
14900 return (0);
14901}
14902}
14903#line 825 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
14904static int msp34xxg_modus(struct i2c_client *client )
14905{ struct msp_state *state ;
14906 void *tmp___7 ;
14907 struct msp_state *tmp___8 ;
14908 int tmp___9 ;
14909 int tmp___10 ;
14910 int tmp___11 ;
14911 int tmp___12 ;
14912 int tmp___13 ;
14913 struct i2c_client const *__cil_tmp10 ;
14914 struct v4l2_subdev *__cil_tmp11 ;
14915 struct i2c_adapter *__cil_tmp12 ;
14916 struct i2c_driver *__cil_tmp13 ;
14917 char const *__cil_tmp14 ;
14918 unsigned short __cil_tmp15 ;
14919 int __cil_tmp16 ;
14920 v4l2_std_id __cil_tmp17 ;
14921 struct i2c_adapter *__cil_tmp18 ;
14922 struct i2c_driver *__cil_tmp19 ;
14923 char const *__cil_tmp20 ;
14924 unsigned short __cil_tmp21 ;
14925 int __cil_tmp22 ;
14926 v4l2_std_id __cil_tmp23 ;
14927 struct i2c_adapter *__cil_tmp24 ;
14928 struct i2c_driver *__cil_tmp25 ;
14929 char const *__cil_tmp26 ;
14930 unsigned short __cil_tmp27 ;
14931 int __cil_tmp28 ;
14932 v4l2_std_id __cil_tmp29 ;
14933 struct i2c_adapter *__cil_tmp30 ;
14934 struct i2c_driver *__cil_tmp31 ;
14935 char const *__cil_tmp32 ;
14936 unsigned short __cil_tmp33 ;
14937 int __cil_tmp34 ;
14938 v4l2_std_id __cil_tmp35 ;
14939 struct i2c_adapter *__cil_tmp36 ;
14940 struct i2c_driver *__cil_tmp37 ;
14941 char const *__cil_tmp38 ;
14942 unsigned short __cil_tmp39 ;
14943 int __cil_tmp40 ;
14944
14945 {
14946 {
14947#line 827
14948 __cil_tmp10 = (struct i2c_client const *)client;
14949#line 827
14950 tmp___7 = i2c_get_clientdata(__cil_tmp10);
14951#line 827
14952 __cil_tmp11 = (struct v4l2_subdev *)tmp___7;
14953#line 827
14954 tmp___8 = to_state(__cil_tmp11);
14955#line 827
14956 state = tmp___8;
14957 }
14958#line 829
14959 if (state->radio) {
14960 {
14961#line 830
14962 while (1) {
14963 while_continue: ;
14964
14965#line 830
14966 if (msp_debug >= 1) {
14967 {
14968#line 830
14969 __cil_tmp12 = client->adapter;
14970#line 830
14971 tmp___9 = i2c_adapter_id(__cil_tmp12);
14972#line 830
14973 __cil_tmp13 = client->driver;
14974#line 830
14975 __cil_tmp14 = __cil_tmp13->driver.name;
14976#line 830
14977 __cil_tmp15 = client->addr;
14978#line 830
14979 __cil_tmp16 = (int )__cil_tmp15;
14980#line 830
14981 printk("<7>%s %d-%04x: selected radio modus\n", __cil_tmp14, tmp___9, __cil_tmp16);
14982 }
14983 } else {
14984
14985 }
14986#line 830
14987 goto while_break;
14988 }
14989 while_break___4: ;
14990 }
14991
14992 while_break: ;
14993#line 831
14994 return (1);
14995 } else {
14996
14997 }
14998 {
14999#line 833
15000 __cil_tmp17 = state->v4l2_std;
15001#line 833
15002 if (__cil_tmp17 == 8192ULL) {
15003 {
15004#line 834
15005 while (1) {
15006 while_continue___0: ;
15007
15008#line 834
15009 if (msp_debug >= 1) {
15010 {
15011#line 834
15012 __cil_tmp18 = client->adapter;
15013#line 834
15014 tmp___10 = i2c_adapter_id(__cil_tmp18);
15015#line 834
15016 __cil_tmp19 = client->driver;
15017#line 834
15018 __cil_tmp20 = __cil_tmp19->driver.name;
15019#line 834
15020 __cil_tmp21 = client->addr;
15021#line 834
15022 __cil_tmp22 = (int )__cil_tmp21;
15023#line 834
15024 printk("<7>%s %d-%04x: selected M (EIA-J) modus\n", __cil_tmp20, tmp___10,
15025 __cil_tmp22);
15026 }
15027 } else {
15028
15029 }
15030#line 834
15031 goto while_break___0;
15032 }
15033 while_break___5: ;
15034 }
15035
15036 while_break___0: ;
15037#line 835
15038 return (16385);
15039 } else {
15040
15041 }
15042 }
15043 {
15044#line 837
15045 __cil_tmp23 = state->v4l2_std;
15046#line 837
15047 if (__cil_tmp23 == 32768ULL) {
15048 {
15049#line 838
15050 while (1) {
15051 while_continue___1: ;
15052
15053#line 838
15054 if (msp_debug >= 1) {
15055 {
15056#line 838
15057 __cil_tmp24 = client->adapter;
15058#line 838
15059 tmp___11 = i2c_adapter_id(__cil_tmp24);
15060#line 838
15061 __cil_tmp25 = client->driver;
15062#line 838
15063 __cil_tmp26 = __cil_tmp25->driver.name;
15064#line 838
15065 __cil_tmp27 = client->addr;
15066#line 838
15067 __cil_tmp28 = (int )__cil_tmp27;
15068#line 838
15069 printk("<7>%s %d-%04x: selected M (A2) modus\n", __cil_tmp26, tmp___11, __cil_tmp28);
15070 }
15071 } else {
15072
15073 }
15074#line 838
15075 goto while_break___1;
15076 }
15077 while_break___6: ;
15078 }
15079
15080 while_break___1: ;
15081#line 839
15082 return (1);
15083 } else {
15084
15085 }
15086 }
15087 {
15088#line 841
15089 __cil_tmp29 = state->v4l2_std;
15090#line 841
15091 if (__cil_tmp29 == 4194304ULL) {
15092 {
15093#line 842
15094 while (1) {
15095 while_continue___2: ;
15096
15097#line 842
15098 if (msp_debug >= 1) {
15099 {
15100#line 842
15101 __cil_tmp30 = client->adapter;
15102#line 842
15103 tmp___12 = i2c_adapter_id(__cil_tmp30);
15104#line 842
15105 __cil_tmp31 = client->driver;
15106#line 842
15107 __cil_tmp32 = __cil_tmp31->driver.name;
15108#line 842
15109 __cil_tmp33 = client->addr;
15110#line 842
15111 __cil_tmp34 = (int )__cil_tmp33;
15112#line 842
15113 printk("<7>%s %d-%04x: selected SECAM-L modus\n", __cil_tmp32, tmp___12, __cil_tmp34);
15114 }
15115 } else {
15116
15117 }
15118#line 842
15119 goto while_break___2;
15120 }
15121 while_break___7: ;
15122 }
15123
15124 while_break___2: ;
15125#line 843
15126 return (24577);
15127 } else {
15128
15129 }
15130 }
15131 {
15132#line 845
15133 __cil_tmp35 = state->v4l2_std;
15134#line 845
15135 if (__cil_tmp35 & 46848ULL) {
15136 {
15137#line 846
15138 while (1) {
15139 while_continue___3: ;
15140
15141#line 846
15142 if (msp_debug >= 1) {
15143 {
15144#line 846
15145 __cil_tmp36 = client->adapter;
15146#line 846
15147 tmp___13 = i2c_adapter_id(__cil_tmp36);
15148#line 846
15149 __cil_tmp37 = client->driver;
15150#line 846
15151 __cil_tmp38 = __cil_tmp37->driver.name;
15152#line 846
15153 __cil_tmp39 = client->addr;
15154#line 846
15155 __cil_tmp40 = (int )__cil_tmp39;
15156#line 846
15157 printk("<7>%s %d-%04x: selected M (BTSC) modus\n", __cil_tmp38, tmp___13,
15158 __cil_tmp40);
15159 }
15160 } else {
15161
15162 }
15163#line 846
15164 goto while_break___3;
15165 }
15166 while_break___8: ;
15167 }
15168
15169 while_break___3: ;
15170#line 847
15171 return (8193);
15172 } else {
15173
15174 }
15175 }
15176#line 849
15177 return (28673);
15178}
15179}
15180#line 852 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
15181static void msp34xxg_set_source(struct i2c_client *client , u16 reg , int in )
15182{ struct msp_state *state ;
15183 void *tmp___7 ;
15184 struct msp_state *tmp___8 ;
15185 int source ;
15186 int matrix ;
15187 int tmp___9 ;
15188 struct i2c_client const *__cil_tmp10 ;
15189 struct v4l2_subdev *__cil_tmp11 ;
15190 int __cil_tmp12 ;
15191 int __cil_tmp13 ;
15192 int __cil_tmp14 ;
15193 int __cil_tmp15 ;
15194 int __cil_tmp16 ;
15195 int __cil_tmp17 ;
15196 int __cil_tmp18 ;
15197 int __cil_tmp19 ;
15198 int __cil_tmp20 ;
15199 struct i2c_adapter *__cil_tmp21 ;
15200 struct i2c_driver *__cil_tmp22 ;
15201 char const *__cil_tmp23 ;
15202 unsigned short __cil_tmp24 ;
15203 int __cil_tmp25 ;
15204 int __cil_tmp26 ;
15205 int __cil_tmp27 ;
15206
15207 {
15208 {
15209#line 854
15210 __cil_tmp10 = (struct i2c_client const *)client;
15211#line 854
15212 tmp___7 = i2c_get_clientdata(__cil_tmp10);
15213#line 854
15214 __cil_tmp11 = (struct v4l2_subdev *)tmp___7;
15215#line 854
15216 tmp___8 = to_state(__cil_tmp11);
15217#line 854
15218 state = tmp___8;
15219 }
15220 {
15221#line 858
15222 __cil_tmp12 = state->audmode;
15223#line 858
15224 if (__cil_tmp12 == 0) {
15225#line 858
15226 goto case_0;
15227 } else {
15228 {
15229#line 862
15230 __cil_tmp13 = state->audmode;
15231#line 862
15232 if (__cil_tmp13 == 2) {
15233#line 862
15234 goto case_2;
15235 } else {
15236 {
15237#line 866
15238 __cil_tmp14 = state->audmode;
15239#line 866
15240 if (__cil_tmp14 == 4) {
15241#line 866
15242 goto case_4;
15243 } else {
15244 {
15245#line 870
15246 __cil_tmp15 = state->audmode;
15247#line 870
15248 if (__cil_tmp15 == 3) {
15249#line 870
15250 goto case_3;
15251 } else {
15252#line 875
15253 goto switch_default;
15254#line 857
15255 if (0) {
15256 case_0:
15257#line 859
15258 source = 0;
15259#line 860
15260 matrix = 48;
15261#line 861
15262 goto switch_break;
15263 case_2:
15264#line 863
15265 source = 4;
15266#line 864
15267 matrix = 16;
15268#line 865
15269 goto switch_break;
15270 case_4:
15271#line 867
15272 source = 1;
15273#line 868
15274 matrix = 32;
15275#line 869
15276 goto switch_break;
15277 case_3:
15278#line 871
15279 source = 3;
15280#line 872
15281 matrix = 0;
15282#line 873
15283 goto switch_break;
15284 switch_default:
15285#line 876
15286 source = 3;
15287#line 877
15288 matrix = 32;
15289#line 878
15290 goto switch_break;
15291 } else {
15292 switch_break: ;
15293 }
15294 }
15295 }
15296 }
15297 }
15298 }
15299 }
15300 }
15301 }
15302#line 881
15303 if (in == 0) {
15304#line 882
15305 __cil_tmp16 = source << 8;
15306#line 882
15307 source = __cil_tmp16 | 32;
15308 } else
15309#line 885
15310 if (in >= 11) {
15311#line 885
15312 if (state->has_dolby_pro_logic) {
15313#line 886
15314 __cil_tmp17 = in + 1;
15315#line 886
15316 __cil_tmp18 = __cil_tmp17 << 8;
15317#line 886
15318 source = __cil_tmp18 | matrix;
15319 } else {
15320#line 888
15321 __cil_tmp19 = in << 8;
15322#line 888
15323 source = __cil_tmp19 | matrix;
15324 }
15325 } else {
15326#line 888
15327 __cil_tmp20 = in << 8;
15328#line 888
15329 source = __cil_tmp20 | matrix;
15330 }
15331 {
15332#line 890
15333 while (1) {
15334 while_continue: ;
15335
15336#line 890
15337 if (msp_debug >= 1) {
15338 {
15339#line 890
15340 __cil_tmp21 = client->adapter;
15341#line 890
15342 tmp___9 = i2c_adapter_id(__cil_tmp21);
15343#line 890
15344 __cil_tmp22 = client->driver;
15345#line 890
15346 __cil_tmp23 = __cil_tmp22->driver.name;
15347#line 890
15348 __cil_tmp24 = client->addr;
15349#line 890
15350 __cil_tmp25 = (int )__cil_tmp24;
15351#line 890
15352 __cil_tmp26 = (int )reg;
15353#line 890
15354 printk("<7>%s %d-%04x: set source to %d (0x%x) for output %02x\n", __cil_tmp23,
15355 tmp___9, __cil_tmp25, in, source, __cil_tmp26);
15356 }
15357 } else {
15358
15359 }
15360#line 890
15361 goto while_break;
15362 }
15363 while_break___0: ;
15364 }
15365
15366 while_break:
15367 {
15368#line 892
15369 __cil_tmp27 = (int )reg;
15370#line 892
15371 msp_write_dsp(client, __cil_tmp27, source);
15372 }
15373#line 893
15374 return;
15375}
15376}
15377#line 895 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
15378static void msp34xxg_set_sources(struct i2c_client *client )
15379{ struct msp_state *state ;
15380 void *tmp___7 ;
15381 struct msp_state *tmp___8 ;
15382 u32 in ;
15383 struct i2c_client const *__cil_tmp6 ;
15384 struct v4l2_subdev *__cil_tmp7 ;
15385 u16 __cil_tmp8 ;
15386 u32 __cil_tmp9 ;
15387 unsigned int __cil_tmp10 ;
15388 int __cil_tmp11 ;
15389 u16 __cil_tmp12 ;
15390 u32 __cil_tmp13 ;
15391 unsigned int __cil_tmp14 ;
15392 int __cil_tmp15 ;
15393 u16 __cil_tmp16 ;
15394 u32 __cil_tmp17 ;
15395 unsigned int __cil_tmp18 ;
15396 int __cil_tmp19 ;
15397 u16 __cil_tmp20 ;
15398 u32 __cil_tmp21 ;
15399 unsigned int __cil_tmp22 ;
15400 int __cil_tmp23 ;
15401 u16 __cil_tmp24 ;
15402 u32 __cil_tmp25 ;
15403 unsigned int __cil_tmp26 ;
15404 int __cil_tmp27 ;
15405 u16 __cil_tmp28 ;
15406 u32 __cil_tmp29 ;
15407 unsigned int __cil_tmp30 ;
15408 int __cil_tmp31 ;
15409
15410 {
15411 {
15412#line 897
15413 __cil_tmp6 = (struct i2c_client const *)client;
15414#line 897
15415 tmp___7 = i2c_get_clientdata(__cil_tmp6);
15416#line 897
15417 __cil_tmp7 = (struct v4l2_subdev *)tmp___7;
15418#line 897
15419 tmp___8 = to_state(__cil_tmp7);
15420#line 897
15421 state = tmp___8;
15422#line 898
15423 in = state->route_in;
15424#line 900
15425 __cil_tmp8 = (u16 )8;
15426#line 900
15427 __cil_tmp9 = in >> 4;
15428#line 900
15429 __cil_tmp10 = __cil_tmp9 & 15U;
15430#line 900
15431 __cil_tmp11 = (int )__cil_tmp10;
15432#line 900
15433 msp34xxg_set_source(client, __cil_tmp8, __cil_tmp11);
15434#line 902
15435 __cil_tmp12 = (u16 )12;
15436#line 902
15437 __cil_tmp13 = in >> 4;
15438#line 902
15439 __cil_tmp14 = __cil_tmp13 & 15U;
15440#line 902
15441 __cil_tmp15 = (int )__cil_tmp14;
15442#line 902
15443 msp34xxg_set_source(client, __cil_tmp12, __cil_tmp15);
15444#line 903
15445 __cil_tmp16 = (u16 )9;
15446#line 903
15447 __cil_tmp17 = in >> 8;
15448#line 903
15449 __cil_tmp18 = __cil_tmp17 & 15U;
15450#line 903
15451 __cil_tmp19 = (int )__cil_tmp18;
15452#line 903
15453 msp34xxg_set_source(client, __cil_tmp16, __cil_tmp19);
15454#line 904
15455 __cil_tmp20 = (u16 )10;
15456#line 904
15457 __cil_tmp21 = in >> 12;
15458#line 904
15459 __cil_tmp22 = __cil_tmp21 & 15U;
15460#line 904
15461 __cil_tmp23 = (int )__cil_tmp22;
15462#line 904
15463 msp34xxg_set_source(client, __cil_tmp20, __cil_tmp23);
15464 }
15465#line 905
15466 if (state->has_scart2_out) {
15467 {
15468#line 906
15469 __cil_tmp24 = (u16 )65;
15470#line 906
15471 __cil_tmp25 = in >> 16;
15472#line 906
15473 __cil_tmp26 = __cil_tmp25 & 15U;
15474#line 906
15475 __cil_tmp27 = (int )__cil_tmp26;
15476#line 906
15477 msp34xxg_set_source(client, __cil_tmp24, __cil_tmp27);
15478 }
15479 } else {
15480
15481 }
15482 {
15483#line 907
15484 __cil_tmp28 = (u16 )11;
15485#line 907
15486 __cil_tmp29 = in >> 20;
15487#line 907
15488 __cil_tmp30 = __cil_tmp29 & 15U;
15489#line 907
15490 __cil_tmp31 = (int )__cil_tmp30;
15491#line 907
15492 msp34xxg_set_source(client, __cil_tmp28, __cil_tmp31);
15493 }
15494#line 908
15495 return;
15496}
15497}
15498#line 911 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
15499static void msp34xxg_reset(struct i2c_client *client )
15500{ struct msp_state *state ;
15501 void *tmp___7 ;
15502 struct msp_state *tmp___8 ;
15503 int tuner ;
15504 int modus ;
15505 int tmp___9 ;
15506 struct i2c_client const *__cil_tmp8 ;
15507 struct v4l2_subdev *__cil_tmp9 ;
15508 u32 __cil_tmp10 ;
15509 u32 __cil_tmp11 ;
15510 unsigned int __cil_tmp12 ;
15511 int __cil_tmp13 ;
15512
15513 {
15514 {
15515#line 913
15516 __cil_tmp8 = (struct i2c_client const *)client;
15517#line 913
15518 tmp___7 = i2c_get_clientdata(__cil_tmp8);
15519#line 913
15520 __cil_tmp9 = (struct v4l2_subdev *)tmp___7;
15521#line 913
15522 tmp___8 = to_state(__cil_tmp9);
15523#line 913
15524 state = tmp___8;
15525#line 914
15526 __cil_tmp10 = state->route_in;
15527#line 914
15528 __cil_tmp11 = __cil_tmp10 >> 3;
15529#line 914
15530 __cil_tmp12 = __cil_tmp11 & 1U;
15531#line 914
15532 tuner = (int )__cil_tmp12;
15533#line 919
15534 state->std = 1;
15535#line 921
15536 msp_reset(client);
15537 }
15538#line 923
15539 if (state->has_i2s_conf) {
15540 {
15541#line 924
15542 __cil_tmp13 = state->i2s_mode;
15543#line 924
15544 msp_write_dem(client, 64, __cil_tmp13);
15545 }
15546 } else {
15547
15548 }
15549 {
15550#line 927
15551 modus = msp34xxg_modus(client);
15552 }
15553#line 928
15554 if (tuner) {
15555#line 928
15556 tmp___9 = 256;
15557 } else {
15558#line 928
15559 tmp___9 = 0;
15560 }
15561 {
15562#line 928
15563 modus = modus | tmp___9;
15564#line 929
15565 msp_write_dem(client, 48, modus);
15566#line 933
15567 msp34xxg_set_sources(client);
15568#line 935
15569 msp_write_dsp(client, 13, 6400);
15570#line 936
15571 msp_write_dsp(client, 14, 12288);
15572 }
15573#line 937
15574 if (state->has_nicam) {
15575 {
15576#line 938
15577 msp_write_dsp(client, 16, 23040);
15578 }
15579 } else {
15580
15581 }
15582 {
15583#line 950
15584 msp_write_dem(client, 34, msp_stereo_thresh);
15585 }
15586#line 951
15587 return;
15588}
15589}
15590#line 953 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
15591int msp34xxg_thread(void *data )
15592{ struct i2c_client *client ;
15593 struct msp_state *state ;
15594 void *tmp___7 ;
15595 struct msp_state *tmp___8 ;
15596 int val ;
15597 int i ;
15598 int tmp___9 ;
15599 int tmp___10 ;
15600 int tmp___11 ;
15601 int tmp___12 ;
15602 int tmp___13 ;
15603 int tmp___14 ;
15604 int tmp___15 ;
15605 int tmp___16 ;
15606 int tmp___17 ;
15607 int tmp___18 ;
15608 int tmp___19 ;
15609 char const *tmp___20 ;
15610 int tmp___21 ;
15611 int tmp___22 ;
15612 int tmp___23 ;
15613 int tmp___24 ;
15614 struct i2c_client const *__cil_tmp24 ;
15615 struct v4l2_subdev *__cil_tmp25 ;
15616 struct i2c_adapter *__cil_tmp26 ;
15617 struct i2c_driver *__cil_tmp27 ;
15618 char const *__cil_tmp28 ;
15619 unsigned short __cil_tmp29 ;
15620 int __cil_tmp30 ;
15621 struct i2c_adapter *__cil_tmp31 ;
15622 struct i2c_driver *__cil_tmp32 ;
15623 char const *__cil_tmp33 ;
15624 unsigned short __cil_tmp34 ;
15625 int __cil_tmp35 ;
15626 struct i2c_adapter *__cil_tmp36 ;
15627 struct i2c_driver *__cil_tmp37 ;
15628 char const *__cil_tmp38 ;
15629 unsigned short __cil_tmp39 ;
15630 int __cil_tmp40 ;
15631 struct i2c_adapter *__cil_tmp41 ;
15632 struct i2c_driver *__cil_tmp42 ;
15633 char const *__cil_tmp43 ;
15634 unsigned short __cil_tmp44 ;
15635 int __cil_tmp45 ;
15636 int __cil_tmp46 ;
15637 struct i2c_adapter *__cil_tmp47 ;
15638 struct i2c_driver *__cil_tmp48 ;
15639 char const *__cil_tmp49 ;
15640 unsigned short __cil_tmp50 ;
15641 int __cil_tmp51 ;
15642 int __cil_tmp52 ;
15643 int __cil_tmp53 ;
15644 struct i2c_adapter *__cil_tmp54 ;
15645 struct i2c_driver *__cil_tmp55 ;
15646 char const *__cil_tmp56 ;
15647 unsigned short __cil_tmp57 ;
15648 int __cil_tmp58 ;
15649 struct i2c_adapter *__cil_tmp59 ;
15650 struct i2c_driver *__cil_tmp60 ;
15651 char const *__cil_tmp61 ;
15652 unsigned short __cil_tmp62 ;
15653 int __cil_tmp63 ;
15654 int __cil_tmp64 ;
15655 struct i2c_adapter *__cil_tmp65 ;
15656 struct i2c_driver *__cil_tmp66 ;
15657 char const *__cil_tmp67 ;
15658 unsigned short __cil_tmp68 ;
15659 int __cil_tmp69 ;
15660 int __cil_tmp70 ;
15661 struct i2c_adapter *__cil_tmp71 ;
15662 struct i2c_driver *__cil_tmp72 ;
15663 char const *__cil_tmp73 ;
15664 unsigned short __cil_tmp74 ;
15665 int __cil_tmp75 ;
15666 int __cil_tmp76 ;
15667 int __cil_tmp77 ;
15668 int __cil_tmp78 ;
15669 int __cil_tmp79 ;
15670 struct i2c_adapter *__cil_tmp80 ;
15671 struct i2c_driver *__cil_tmp81 ;
15672 char const *__cil_tmp82 ;
15673 unsigned short __cil_tmp83 ;
15674 int __cil_tmp84 ;
15675
15676 {
15677 {
15678#line 955
15679 client = (struct i2c_client *)data;
15680#line 956
15681 __cil_tmp24 = (struct i2c_client const *)client;
15682#line 956
15683 tmp___7 = i2c_get_clientdata(__cil_tmp24);
15684#line 956
15685 __cil_tmp25 = (struct v4l2_subdev *)tmp___7;
15686#line 956
15687 tmp___8 = to_state(__cil_tmp25);
15688#line 956
15689 state = tmp___8;
15690 }
15691 {
15692#line 959
15693 while (1) {
15694 while_continue: ;
15695
15696#line 959
15697 if (msp_debug >= 1) {
15698 {
15699#line 959
15700 __cil_tmp26 = client->adapter;
15701#line 959
15702 tmp___9 = i2c_adapter_id(__cil_tmp26);
15703#line 959
15704 __cil_tmp27 = client->driver;
15705#line 959
15706 __cil_tmp28 = __cil_tmp27->driver.name;
15707#line 959
15708 __cil_tmp29 = client->addr;
15709#line 959
15710 __cil_tmp30 = (int )__cil_tmp29;
15711#line 959
15712 printk("<7>%s %d-%04x: msp34xxg daemon started\n", __cil_tmp28, tmp___9, __cil_tmp30);
15713 }
15714 } else {
15715
15716 }
15717#line 959
15718 goto while_break;
15719 }
15720 while_break___12: ;
15721 }
15722
15723 while_break:
15724 {
15725#line 960
15726 set_freezable();
15727 }
15728 {
15729#line 961
15730 while (1) {
15731 while_continue___0: ;
15732
15733 {
15734#line 962
15735 while (1) {
15736 while_continue___1: ;
15737
15738#line 962
15739 if (msp_debug >= 2) {
15740 {
15741#line 962
15742 __cil_tmp31 = client->adapter;
15743#line 962
15744 tmp___10 = i2c_adapter_id(__cil_tmp31);
15745#line 962
15746 __cil_tmp32 = client->driver;
15747#line 962
15748 __cil_tmp33 = __cil_tmp32->driver.name;
15749#line 962
15750 __cil_tmp34 = client->addr;
15751#line 962
15752 __cil_tmp35 = (int )__cil_tmp34;
15753#line 962
15754 printk("<7>%s %d-%04x: msp34xxg thread: sleep\n", __cil_tmp33, tmp___10, __cil_tmp35);
15755 }
15756 } else {
15757
15758 }
15759#line 962
15760 goto while_break___1;
15761 }
15762 while_break___14: ;
15763 }
15764
15765 while_break___1:
15766 {
15767#line 963
15768 msp_sleep(state, -1);
15769 }
15770 {
15771#line 964
15772 while (1) {
15773 while_continue___2: ;
15774
15775#line 964
15776 if (msp_debug >= 2) {
15777 {
15778#line 964
15779 __cil_tmp36 = client->adapter;
15780#line 964
15781 tmp___11 = i2c_adapter_id(__cil_tmp36);
15782#line 964
15783 __cil_tmp37 = client->driver;
15784#line 964
15785 __cil_tmp38 = __cil_tmp37->driver.name;
15786#line 964
15787 __cil_tmp39 = client->addr;
15788#line 964
15789 __cil_tmp40 = (int )__cil_tmp39;
15790#line 964
15791 printk("<7>%s %d-%04x: msp34xxg thread: wakeup\n", __cil_tmp38, tmp___11,
15792 __cil_tmp40);
15793 }
15794 } else {
15795
15796 }
15797#line 964
15798 goto while_break___2;
15799 }
15800 while_break___15: ;
15801 }
15802
15803 while_break___2: ;
15804 restart:
15805 {
15806#line 967
15807 while (1) {
15808 while_continue___3: ;
15809
15810#line 967
15811 if (msp_debug >= 1) {
15812 {
15813#line 967
15814 __cil_tmp41 = client->adapter;
15815#line 967
15816 tmp___12 = i2c_adapter_id(__cil_tmp41);
15817#line 967
15818 __cil_tmp42 = client->driver;
15819#line 967
15820 __cil_tmp43 = __cil_tmp42->driver.name;
15821#line 967
15822 __cil_tmp44 = client->addr;
15823#line 967
15824 __cil_tmp45 = (int )__cil_tmp44;
15825#line 967
15826 printk("<7>%s %d-%04x: thread: restart scan\n", __cil_tmp43, tmp___12, __cil_tmp45);
15827 }
15828 } else {
15829
15830 }
15831#line 967
15832 goto while_break___3;
15833 }
15834 while_break___16: ;
15835 }
15836
15837 while_break___3:
15838 {
15839#line 968
15840 state->restart = 0U;
15841#line 969
15842 tmp___13 = kthread_should_stop();
15843 }
15844#line 969
15845 if (tmp___13) {
15846#line 970
15847 goto while_break___0;
15848 } else {
15849
15850 }
15851 {
15852#line 972
15853 __cil_tmp46 = state->mode;
15854#line 972
15855 if (__cil_tmp46 == 9) {
15856 {
15857#line 974
15858 while (1) {
15859 while_continue___4: ;
15860
15861#line 974
15862 if (msp_debug >= 1) {
15863 {
15864#line 974
15865 __cil_tmp47 = client->adapter;
15866#line 974
15867 tmp___14 = i2c_adapter_id(__cil_tmp47);
15868#line 974
15869 __cil_tmp48 = client->driver;
15870#line 974
15871 __cil_tmp49 = __cil_tmp48->driver.name;
15872#line 974
15873 __cil_tmp50 = client->addr;
15874#line 974
15875 __cil_tmp51 = (int )__cil_tmp50;
15876#line 974
15877 printk("<7>%s %d-%04x: thread: no carrier scan\n", __cil_tmp49, tmp___14,
15878 __cil_tmp51);
15879 }
15880 } else {
15881
15882 }
15883#line 974
15884 goto while_break___4;
15885 }
15886 while_break___17: ;
15887 }
15888
15889 while_break___4:
15890 {
15891#line 976
15892 state->scan_in_progress = 0;
15893#line 977
15894 msp_update_volume(state);
15895 }
15896#line 978
15897 goto __Cont;
15898 } else {
15899
15900 }
15901 }
15902 {
15903#line 982
15904 msp34xxg_reset(client);
15905 }
15906#line 983
15907 if (state->radio) {
15908#line 983
15909 state->std = 64;
15910 } else {
15911#line 983
15912 if (state->force_btsc) {
15913#line 983
15914 if (msp_standard == 1) {
15915#line 983
15916 tmp___15 = 32;
15917 } else {
15918#line 983
15919 tmp___15 = msp_standard;
15920 }
15921 } else {
15922#line 983
15923 tmp___15 = msp_standard;
15924 }
15925#line 983
15926 state->std = tmp___15;
15927 }
15928 {
15929#line 985
15930 __cil_tmp52 = state->std;
15931#line 985
15932 msp_write_dem(client, 32, __cil_tmp52);
15933 }
15934 {
15935#line 987
15936 __cil_tmp53 = state->std;
15937#line 987
15938 if (__cil_tmp53 != 1) {
15939#line 988
15940 goto unmute;
15941 } else {
15942
15943 }
15944 }
15945 {
15946#line 991
15947 while (1) {
15948 while_continue___5: ;
15949
15950#line 991
15951 if (msp_debug >= 1) {
15952 {
15953#line 991
15954 __cil_tmp54 = client->adapter;
15955#line 991
15956 tmp___16 = i2c_adapter_id(__cil_tmp54);
15957#line 991
15958 __cil_tmp55 = client->driver;
15959#line 991
15960 __cil_tmp56 = __cil_tmp55->driver.name;
15961#line 991
15962 __cil_tmp57 = client->addr;
15963#line 991
15964 __cil_tmp58 = (int )__cil_tmp57;
15965#line 991
15966 printk("<7>%s %d-%04x: started autodetect, waiting for result\n", __cil_tmp56,
15967 tmp___16, __cil_tmp58);
15968 }
15969 } else {
15970
15971 }
15972#line 991
15973 goto while_break___5;
15974 }
15975 while_break___18: ;
15976 }
15977
15978 while_break___5:
15979#line 993
15980 i = 0;
15981 {
15982#line 993
15983 while (1) {
15984 while_continue___6: ;
15985
15986#line 993
15987 if (i < 10) {
15988
15989 } else {
15990#line 993
15991 goto while_break___6;
15992 }
15993 {
15994#line 994
15995 tmp___17 = msp_sleep(state, 100);
15996 }
15997#line 994
15998 if (tmp___17) {
15999#line 995
16000 goto restart;
16001 } else {
16002
16003 }
16004 {
16005#line 998
16006 val = msp_read_dem(client, 126);
16007 }
16008#line 999
16009 if (val < 2047) {
16010#line 1000
16011 state->std = val;
16012#line 1001
16013 goto while_break___6;
16014 } else {
16015
16016 }
16017 {
16018#line 1003
16019 while (1) {
16020 while_continue___7: ;
16021
16022#line 1003
16023 if (msp_debug >= 2) {
16024 {
16025#line 1003
16026 __cil_tmp59 = client->adapter;
16027#line 1003
16028 tmp___18 = i2c_adapter_id(__cil_tmp59);
16029#line 1003
16030 __cil_tmp60 = client->driver;
16031#line 1003
16032 __cil_tmp61 = __cil_tmp60->driver.name;
16033#line 1003
16034 __cil_tmp62 = client->addr;
16035#line 1003
16036 __cil_tmp63 = (int )__cil_tmp62;
16037#line 1003
16038 printk("<7>%s %d-%04x: detection still in progress\n", __cil_tmp61, tmp___18,
16039 __cil_tmp63);
16040 }
16041 } else {
16042
16043 }
16044#line 1003
16045 goto while_break___7;
16046 }
16047 while_break___20: ;
16048 }
16049
16050 while_break___7:
16051#line 993
16052 i = i + 1;
16053 }
16054 while_break___19: ;
16055 }
16056
16057 while_break___6: ;
16058 {
16059#line 1006
16060 __cil_tmp64 = state->std;
16061#line 1006
16062 if (__cil_tmp64 == 1) {
16063 {
16064#line 1007
16065 while (1) {
16066 while_continue___8: ;
16067
16068#line 1007
16069 if (msp_debug >= 1) {
16070 {
16071#line 1007
16072 __cil_tmp65 = client->adapter;
16073#line 1007
16074 tmp___19 = i2c_adapter_id(__cil_tmp65);
16075#line 1007
16076 __cil_tmp66 = client->driver;
16077#line 1007
16078 __cil_tmp67 = __cil_tmp66->driver.name;
16079#line 1007
16080 __cil_tmp68 = client->addr;
16081#line 1007
16082 __cil_tmp69 = (int )__cil_tmp68;
16083#line 1007
16084 printk("<7>%s %d-%04x: detection still in progress after 10 tries. giving up.\n",
16085 __cil_tmp67, tmp___19, __cil_tmp69);
16086 }
16087 } else {
16088
16089 }
16090#line 1007
16091 goto while_break___8;
16092 }
16093 while_break___21: ;
16094 }
16095
16096 while_break___8: ;
16097#line 1009
16098 goto __Cont;
16099 } else {
16100
16101 }
16102 }
16103 unmute:
16104 {
16105#line 1013
16106 while (1) {
16107 while_continue___9: ;
16108
16109#line 1013
16110 if (msp_debug >= 1) {
16111 {
16112#line 1013
16113 __cil_tmp70 = state->std;
16114#line 1013
16115 tmp___20 = msp_standard_std_name(__cil_tmp70);
16116#line 1013
16117 __cil_tmp71 = client->adapter;
16118#line 1013
16119 tmp___21 = i2c_adapter_id(__cil_tmp71);
16120#line 1013
16121 __cil_tmp72 = client->driver;
16122#line 1013
16123 __cil_tmp73 = __cil_tmp72->driver.name;
16124#line 1013
16125 __cil_tmp74 = client->addr;
16126#line 1013
16127 __cil_tmp75 = (int )__cil_tmp74;
16128#line 1013
16129 __cil_tmp76 = state->std;
16130#line 1013
16131 printk("<7>%s %d-%04x: detected standard: %s (0x%04x)\n", __cil_tmp73, tmp___21,
16132 __cil_tmp75, tmp___20, __cil_tmp76);
16133 }
16134 } else {
16135
16136 }
16137#line 1013
16138 goto while_break___9;
16139 }
16140 while_break___22: ;
16141 }
16142
16143 while_break___9: ;
16144 {
16145#line 1017
16146 __cil_tmp77 = state->std;
16147#line 1017
16148 if (__cil_tmp77 == 9) {
16149 {
16150#line 1019
16151 msp_write_dsp(client, 14, 31744);
16152 }
16153 } else {
16154
16155 }
16156 }
16157 {
16158#line 1023
16159 msp_update_volume(state);
16160#line 1026
16161 __cil_tmp78 = state->acb;
16162#line 1026
16163 tmp___22 = msp_write_dsp(client, 19, __cil_tmp78);
16164 }
16165#line 1026
16166 if (tmp___22) {
16167#line 1027
16168 return (-1);
16169 } else {
16170
16171 }
16172 {
16173#line 1031
16174 __cil_tmp79 = state->std;
16175#line 1031
16176 if (__cil_tmp79 != 32) {
16177#line 1032
16178 goto __Cont;
16179 } else {
16180
16181 }
16182 }
16183 {
16184#line 1034
16185 state->watch_stereo = 1U;
16186#line 1038
16187 watch_stereo(client);
16188 }
16189 {
16190#line 1039
16191 while (1) {
16192 while_continue___10: ;
16193
16194#line 1039
16195 if (state->watch_stereo) {
16196
16197 } else {
16198#line 1039
16199 goto while_break___10;
16200 }
16201 {
16202#line 1040
16203 watch_stereo(client);
16204#line 1041
16205 tmp___23 = msp_sleep(state, 5000);
16206 }
16207#line 1041
16208 if (tmp___23) {
16209#line 1042
16210 goto restart;
16211 } else {
16212
16213 }
16214 }
16215 while_break___23: ;
16216 }
16217
16218 while_break___10: ;
16219 __Cont: ;
16220 }
16221 while_break___13: ;
16222 }
16223
16224 while_break___0: ;
16225 {
16226#line 1045
16227 while (1) {
16228 while_continue___11: ;
16229
16230#line 1045
16231 if (msp_debug >= 1) {
16232 {
16233#line 1045
16234 __cil_tmp80 = client->adapter;
16235#line 1045
16236 tmp___24 = i2c_adapter_id(__cil_tmp80);
16237#line 1045
16238 __cil_tmp81 = client->driver;
16239#line 1045
16240 __cil_tmp82 = __cil_tmp81->driver.name;
16241#line 1045
16242 __cil_tmp83 = client->addr;
16243#line 1045
16244 __cil_tmp84 = (int )__cil_tmp83;
16245#line 1045
16246 printk("<7>%s %d-%04x: thread: exit\n", __cil_tmp82, tmp___24, __cil_tmp84);
16247 }
16248 } else {
16249
16250 }
16251#line 1045
16252 goto while_break___11;
16253 }
16254 while_break___24: ;
16255 }
16256
16257 while_break___11: ;
16258#line 1046
16259 return (0);
16260}
16261}
16262#line 1049 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
16263static int msp34xxg_detect_stereo(struct i2c_client *client )
16264{ struct msp_state *state ;
16265 void *tmp___7 ;
16266 struct msp_state *tmp___8 ;
16267 int status ;
16268 int tmp___9 ;
16269 int is_bilingual ;
16270 int is_stereo ;
16271 int oldrx ;
16272 int tmp___10 ;
16273 struct i2c_client const *__cil_tmp11 ;
16274 struct v4l2_subdev *__cil_tmp12 ;
16275 int __cil_tmp13 ;
16276 int __cil_tmp14 ;
16277 int __cil_tmp15 ;
16278 struct i2c_adapter *__cil_tmp16 ;
16279 struct i2c_driver *__cil_tmp17 ;
16280 char const *__cil_tmp18 ;
16281 unsigned short __cil_tmp19 ;
16282 int __cil_tmp20 ;
16283 int __cil_tmp21 ;
16284 int __cil_tmp22 ;
16285
16286 {
16287 {
16288#line 1051
16289 __cil_tmp11 = (struct i2c_client const *)client;
16290#line 1051
16291 tmp___7 = i2c_get_clientdata(__cil_tmp11);
16292#line 1051
16293 __cil_tmp12 = (struct v4l2_subdev *)tmp___7;
16294#line 1051
16295 tmp___8 = to_state(__cil_tmp12);
16296#line 1051
16297 state = tmp___8;
16298#line 1052
16299 tmp___9 = msp_read_dem(client, 512);
16300#line 1052
16301 status = tmp___9;
16302#line 1053
16303 is_bilingual = status & 256;
16304#line 1054
16305 is_stereo = status & 64;
16306#line 1055
16307 oldrx = state->rxsubchans;
16308 }
16309 {
16310#line 1057
16311 __cil_tmp13 = state->mode;
16312#line 1057
16313 if (__cil_tmp13 == 9) {
16314#line 1058
16315 return (0);
16316 } else {
16317
16318 }
16319 }
16320#line 1060
16321 state->rxsubchans = 0;
16322#line 1061
16323 if (is_stereo) {
16324#line 1062
16325 state->rxsubchans = 2;
16326 } else {
16327#line 1064
16328 state->rxsubchans = 1;
16329 }
16330#line 1065
16331 if (is_bilingual) {
16332 {
16333#line 1066
16334 __cil_tmp14 = state->std;
16335#line 1066
16336 if (__cil_tmp14 == 32) {
16337#line 1067
16338 __cil_tmp15 = state->rxsubchans;
16339#line 1067
16340 state->rxsubchans = __cil_tmp15 | 4;
16341 } else {
16342#line 1069
16343 state->rxsubchans = 12;
16344 }
16345 }
16346 } else {
16347
16348 }
16349 {
16350#line 1072
16351 while (1) {
16352 while_continue: ;
16353
16354#line 1072
16355 if (msp_debug >= 1) {
16356 {
16357#line 1072
16358 __cil_tmp16 = client->adapter;
16359#line 1072
16360 tmp___10 = i2c_adapter_id(__cil_tmp16);
16361#line 1072
16362 __cil_tmp17 = client->driver;
16363#line 1072
16364 __cil_tmp18 = __cil_tmp17->driver.name;
16365#line 1072
16366 __cil_tmp19 = client->addr;
16367#line 1072
16368 __cil_tmp20 = (int )__cil_tmp19;
16369#line 1072
16370 __cil_tmp21 = state->rxsubchans;
16371#line 1072
16372 printk("<7>%s %d-%04x: status=0x%x, stereo=%d, bilingual=%d -> rxsubchans=%d\n",
16373 __cil_tmp18, tmp___10, __cil_tmp20, status, is_stereo, is_bilingual,
16374 __cil_tmp21);
16375 }
16376 } else {
16377
16378 }
16379#line 1072
16380 goto while_break;
16381 }
16382 while_break___0: ;
16383 }
16384
16385 while_break: ;
16386 {
16387#line 1075
16388 __cil_tmp22 = state->rxsubchans;
16389#line 1075
16390 return (oldrx != __cil_tmp22);
16391 }
16392}
16393}
16394#line 1078 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
16395static void msp34xxg_set_audmode(struct i2c_client *client )
16396{ struct msp_state *state ;
16397 void *tmp___7 ;
16398 struct msp_state *tmp___8 ;
16399 struct i2c_client const *__cil_tmp5 ;
16400 struct v4l2_subdev *__cil_tmp6 ;
16401 int __cil_tmp7 ;
16402 int __cil_tmp8 ;
16403 int __cil_tmp9 ;
16404 int __cil_tmp10 ;
16405
16406 {
16407 {
16408#line 1080
16409 __cil_tmp5 = (struct i2c_client const *)client;
16410#line 1080
16411 tmp___7 = i2c_get_clientdata(__cil_tmp5);
16412#line 1080
16413 __cil_tmp6 = (struct v4l2_subdev *)tmp___7;
16414#line 1080
16415 tmp___8 = to_state(__cil_tmp6);
16416#line 1080
16417 state = tmp___8;
16418 }
16419 {
16420#line 1082
16421 __cil_tmp7 = state->std;
16422#line 1082
16423 if (__cil_tmp7 == 32) {
16424 {
16425#line 1083
16426 __cil_tmp8 = state->rxsubchans;
16427#line 1083
16428 if (__cil_tmp8 & 4) {
16429 {
16430#line 1083
16431 __cil_tmp9 = state->audmode;
16432#line 1083
16433 if (__cil_tmp9 == 4) {
16434 {
16435#line 1086
16436 msp_write_dem(client, 32, 33);
16437 }
16438 } else {
16439 {
16440#line 1083
16441 __cil_tmp10 = state->audmode;
16442#line 1083
16443 if (__cil_tmp10 == 2) {
16444 {
16445#line 1086
16446 msp_write_dem(client, 32, 33);
16447 }
16448 } else {
16449 {
16450#line 1088
16451 msp_write_dem(client, 32, 32);
16452 }
16453 }
16454 }
16455 }
16456 }
16457 } else {
16458 {
16459#line 1088
16460 msp_write_dem(client, 32, 32);
16461 }
16462 }
16463 }
16464 } else {
16465
16466 }
16467 }
16468 {
16469#line 1092
16470 msp34xxg_set_sources(client);
16471 }
16472#line 1093
16473 return;
16474}
16475}
16476#line 1095 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
16477void msp_set_audmode(struct i2c_client *client )
16478{ struct msp_state *state ;
16479 void *tmp___7 ;
16480 struct msp_state *tmp___8 ;
16481 struct i2c_client const *__cil_tmp5 ;
16482 struct v4l2_subdev *__cil_tmp6 ;
16483 int __cil_tmp7 ;
16484 int __cil_tmp8 ;
16485 int __cil_tmp9 ;
16486
16487 {
16488 {
16489#line 1097
16490 __cil_tmp5 = (struct i2c_client const *)client;
16491#line 1097
16492 tmp___7 = i2c_get_clientdata(__cil_tmp5);
16493#line 1097
16494 __cil_tmp6 = (struct v4l2_subdev *)tmp___7;
16495#line 1097
16496 tmp___8 = to_state(__cil_tmp6);
16497#line 1097
16498 state = tmp___8;
16499 }
16500 {
16501#line 1100
16502 __cil_tmp7 = state->opmode;
16503#line 1100
16504 if (__cil_tmp7 == 0) {
16505#line 1100
16506 goto case_0;
16507 } else {
16508 {
16509#line 1101
16510 __cil_tmp8 = state->opmode;
16511#line 1101
16512 if (__cil_tmp8 == 1) {
16513#line 1101
16514 goto case_0;
16515 } else {
16516 {
16517#line 1104
16518 __cil_tmp9 = state->opmode;
16519#line 1104
16520 if (__cil_tmp9 == 2) {
16521#line 1104
16522 goto case_2;
16523 } else
16524#line 1099
16525 if (0) {
16526 case_0:
16527 {
16528#line 1102
16529 msp3400c_set_audmode(client);
16530 }
16531#line 1103
16532 goto switch_break;
16533 case_2:
16534 {
16535#line 1105
16536 msp34xxg_set_audmode(client);
16537 }
16538#line 1106
16539 goto switch_break;
16540 } else {
16541 switch_break: ;
16542 }
16543 }
16544 }
16545 }
16546 }
16547 }
16548#line 1108
16549 return;
16550}
16551}
16552#line 1110 "/anthill/stuff/tacas-comp/work/current--X--drivers/media/video/msp3400.ko--X--bulklinux-3.0.1--X--68_1/linux-3.0.1/csd_deg_dscv/22/dscv_tempdir/dscv/ri/68_1/drivers/media/video/msp3400-kthreads.c"
16553int msp_detect_stereo(struct i2c_client *client )
16554{ struct msp_state *state ;
16555 void *tmp___7 ;
16556 struct msp_state *tmp___8 ;
16557 int tmp___9 ;
16558 int tmp___10 ;
16559 struct i2c_client const *__cil_tmp7 ;
16560 struct v4l2_subdev *__cil_tmp8 ;
16561 int __cil_tmp9 ;
16562 int __cil_tmp10 ;
16563 int __cil_tmp11 ;
16564
16565 {
16566 {
16567#line 1112
16568 __cil_tmp7 = (struct i2c_client const *)client;
16569#line 1112
16570 tmp___7 = i2c_get_clientdata(__cil_tmp7);
16571#line 1112
16572 __cil_tmp8 = (struct v4l2_subdev *)tmp___7;
16573#line 1112
16574 tmp___8 = to_state(__cil_tmp8);
16575#line 1112
16576 state = tmp___8;
16577 }
16578 {
16579#line 1115
16580 __cil_tmp9 = state->opmode;
16581#line 1115
16582 if (__cil_tmp9 == 0) {
16583#line 1115
16584 goto case_0;
16585 } else {
16586 {
16587#line 1116
16588 __cil_tmp10 = state->opmode;
16589#line 1116
16590 if (__cil_tmp10 == 1) {
16591#line 1116
16592 goto case_0;
16593 } else {
16594 {
16595#line 1118
16596 __cil_tmp11 = state->opmode;
16597#line 1118
16598 if (__cil_tmp11 == 2) {
16599#line 1118
16600 goto case_2;
16601 } else
16602#line 1114
16603 if (0) {
16604 case_0:
16605 {
16606#line 1117
16607 tmp___9 = msp3400c_detect_stereo(client);
16608 }
16609#line 1117
16610 return (tmp___9);
16611 case_2:
16612 {
16613#line 1119
16614 tmp___10 = msp34xxg_detect_stereo(client);
16615 }
16616#line 1119
16617 return (tmp___10);
16618 } else {
16619
16620 }
16621 }
16622 }
16623 }
16624 }
16625 }
16626#line 1121
16627 return (0);
16628}
16629}