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 45 "include/asm-generic/int-ll64.h"
23typedef short s16;
24#line 46 "include/asm-generic/int-ll64.h"
25typedef unsigned short u16;
26#line 48 "include/asm-generic/int-ll64.h"
27typedef int s32;
28#line 49 "include/asm-generic/int-ll64.h"
29typedef unsigned int u32;
30#line 51 "include/asm-generic/int-ll64.h"
31typedef long long s64;
32#line 52 "include/asm-generic/int-ll64.h"
33typedef unsigned long long u64;
34#line 14 "include/asm-generic/posix_types.h"
35typedef long __kernel_long_t;
36#line 15 "include/asm-generic/posix_types.h"
37typedef unsigned long __kernel_ulong_t;
38#line 31 "include/asm-generic/posix_types.h"
39typedef int __kernel_pid_t;
40#line 52 "include/asm-generic/posix_types.h"
41typedef unsigned int __kernel_uid32_t;
42#line 53 "include/asm-generic/posix_types.h"
43typedef unsigned int __kernel_gid32_t;
44#line 75 "include/asm-generic/posix_types.h"
45typedef __kernel_ulong_t __kernel_size_t;
46#line 76 "include/asm-generic/posix_types.h"
47typedef __kernel_long_t __kernel_ssize_t;
48#line 90 "include/asm-generic/posix_types.h"
49typedef __kernel_long_t __kernel_off_t;
50#line 91 "include/asm-generic/posix_types.h"
51typedef long long __kernel_loff_t;
52#line 92 "include/asm-generic/posix_types.h"
53typedef __kernel_long_t __kernel_time_t;
54#line 93 "include/asm-generic/posix_types.h"
55typedef __kernel_long_t __kernel_clock_t;
56#line 94 "include/asm-generic/posix_types.h"
57typedef int __kernel_timer_t;
58#line 95 "include/asm-generic/posix_types.h"
59typedef int __kernel_clockid_t;
60#line 21 "include/linux/types.h"
61typedef __u32 __kernel_dev_t;
62#line 24 "include/linux/types.h"
63typedef __kernel_dev_t dev_t;
64#line 27 "include/linux/types.h"
65typedef unsigned short umode_t;
66#line 29 "include/linux/types.h"
67typedef __kernel_off_t off_t;
68#line 30 "include/linux/types.h"
69typedef __kernel_pid_t pid_t;
70#line 35 "include/linux/types.h"
71typedef __kernel_clockid_t clockid_t;
72#line 38 "include/linux/types.h"
73typedef _Bool bool;
74#line 40 "include/linux/types.h"
75typedef __kernel_uid32_t uid_t;
76#line 41 "include/linux/types.h"
77typedef __kernel_gid32_t gid_t;
78#line 54 "include/linux/types.h"
79typedef __kernel_loff_t loff_t;
80#line 63 "include/linux/types.h"
81typedef __kernel_size_t size_t;
82#line 68 "include/linux/types.h"
83typedef __kernel_ssize_t ssize_t;
84#line 78 "include/linux/types.h"
85typedef __kernel_time_t time_t;
86#line 111 "include/linux/types.h"
87typedef __s32 int32_t;
88#line 117 "include/linux/types.h"
89typedef __u32 uint32_t;
90#line 142 "include/linux/types.h"
91typedef unsigned long sector_t;
92#line 143 "include/linux/types.h"
93typedef unsigned long blkcnt_t;
94#line 155 "include/linux/types.h"
95typedef u64 dma_addr_t;
96#line 178 "include/linux/types.h"
97typedef __u16 __le16;
98#line 180 "include/linux/types.h"
99typedef __u32 __le32;
100#line 181 "include/linux/types.h"
101typedef __u32 __be32;
102#line 202 "include/linux/types.h"
103typedef unsigned int gfp_t;
104#line 203 "include/linux/types.h"
105typedef unsigned int fmode_t;
106#line 221 "include/linux/types.h"
107struct __anonstruct_atomic_t_6 {
108 int counter ;
109};
110#line 221 "include/linux/types.h"
111typedef struct __anonstruct_atomic_t_6 atomic_t;
112#line 226 "include/linux/types.h"
113struct __anonstruct_atomic64_t_7 {
114 long counter ;
115};
116#line 226 "include/linux/types.h"
117typedef struct __anonstruct_atomic64_t_7 atomic64_t;
118#line 227 "include/linux/types.h"
119struct list_head {
120 struct list_head *next ;
121 struct list_head *prev ;
122};
123#line 232
124struct hlist_node;
125#line 232 "include/linux/types.h"
126struct hlist_head {
127 struct hlist_node *first ;
128};
129#line 236 "include/linux/types.h"
130struct hlist_node {
131 struct hlist_node *next ;
132 struct hlist_node **pprev ;
133};
134#line 247 "include/linux/types.h"
135struct rcu_head {
136 struct rcu_head *next ;
137 void (*func)(struct rcu_head * ) ;
138};
139#line 55 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/alternative.h"
140struct module;
141#line 55
142struct module;
143#line 146 "include/linux/init.h"
144typedef void (*ctor_fn_t)(void);
145#line 46 "include/linux/dynamic_debug.h"
146struct device;
147#line 46
148struct device;
149#line 57
150struct completion;
151#line 57
152struct completion;
153#line 58
154struct pt_regs;
155#line 58
156struct pt_regs;
157#line 348 "include/linux/kernel.h"
158struct pid;
159#line 348
160struct pid;
161#line 112 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/stat.h"
162struct timespec;
163#line 112
164struct timespec;
165#line 58 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/page_types.h"
166struct page;
167#line 58
168struct page;
169#line 26 "include/asm-generic/getorder.h"
170struct task_struct;
171#line 26
172struct task_struct;
173#line 28
174struct mm_struct;
175#line 28
176struct mm_struct;
177#line 268 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/segment.h"
178struct pt_regs {
179 unsigned long r15 ;
180 unsigned long r14 ;
181 unsigned long r13 ;
182 unsigned long r12 ;
183 unsigned long bp ;
184 unsigned long bx ;
185 unsigned long r11 ;
186 unsigned long r10 ;
187 unsigned long r9 ;
188 unsigned long r8 ;
189 unsigned long ax ;
190 unsigned long cx ;
191 unsigned long dx ;
192 unsigned long si ;
193 unsigned long di ;
194 unsigned long orig_ax ;
195 unsigned long ip ;
196 unsigned long cs ;
197 unsigned long flags ;
198 unsigned long sp ;
199 unsigned long ss ;
200};
201#line 125 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/ptrace.h"
202struct __anonstruct_ldv_2180_13 {
203 unsigned int a ;
204 unsigned int b ;
205};
206#line 125 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/ptrace.h"
207struct __anonstruct_ldv_2195_14 {
208 u16 limit0 ;
209 u16 base0 ;
210 unsigned char base1 ;
211 unsigned char type : 4 ;
212 unsigned char s : 1 ;
213 unsigned char dpl : 2 ;
214 unsigned char p : 1 ;
215 unsigned char limit : 4 ;
216 unsigned char avl : 1 ;
217 unsigned char l : 1 ;
218 unsigned char d : 1 ;
219 unsigned char g : 1 ;
220 unsigned char base2 ;
221};
222#line 125 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/ptrace.h"
223union __anonunion_ldv_2196_12 {
224 struct __anonstruct_ldv_2180_13 ldv_2180 ;
225 struct __anonstruct_ldv_2195_14 ldv_2195 ;
226};
227#line 125 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/ptrace.h"
228struct desc_struct {
229 union __anonunion_ldv_2196_12 ldv_2196 ;
230};
231#line 13 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/pgtable_64_types.h"
232typedef unsigned long pgdval_t;
233#line 14 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/pgtable_64_types.h"
234typedef unsigned long pgprotval_t;
235#line 18 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/pgtable_64_types.h"
236struct pgprot {
237 pgprotval_t pgprot ;
238};
239#line 192 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/pgtable_types.h"
240typedef struct pgprot pgprot_t;
241#line 194 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/pgtable_types.h"
242struct __anonstruct_pgd_t_16 {
243 pgdval_t pgd ;
244};
245#line 194 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/pgtable_types.h"
246typedef struct __anonstruct_pgd_t_16 pgd_t;
247#line 282 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/pgtable_types.h"
248typedef struct page *pgtable_t;
249#line 290
250struct file;
251#line 290
252struct file;
253#line 305
254struct seq_file;
255#line 305
256struct seq_file;
257#line 337
258struct thread_struct;
259#line 337
260struct thread_struct;
261#line 339
262struct cpumask;
263#line 339
264struct cpumask;
265#line 327 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/paravirt_types.h"
266struct arch_spinlock;
267#line 327
268struct arch_spinlock;
269#line 300 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/ptrace.h"
270struct kernel_vm86_regs {
271 struct pt_regs pt ;
272 unsigned short es ;
273 unsigned short __esh ;
274 unsigned short ds ;
275 unsigned short __dsh ;
276 unsigned short fs ;
277 unsigned short __fsh ;
278 unsigned short gs ;
279 unsigned short __gsh ;
280};
281#line 203 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/vm86.h"
282union __anonunion_ldv_2824_19 {
283 struct pt_regs *regs ;
284 struct kernel_vm86_regs *vm86 ;
285};
286#line 203 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/vm86.h"
287struct math_emu_info {
288 long ___orig_eip ;
289 union __anonunion_ldv_2824_19 ldv_2824 ;
290};
291#line 306 "include/linux/bitmap.h"
292struct bug_entry {
293 int bug_addr_disp ;
294 int file_disp ;
295 unsigned short line ;
296 unsigned short flags ;
297};
298#line 89 "include/linux/bug.h"
299struct cpumask {
300 unsigned long bits[64U] ;
301};
302#line 14 "include/linux/cpumask.h"
303typedef struct cpumask cpumask_t;
304#line 637 "include/linux/cpumask.h"
305typedef struct cpumask *cpumask_var_t;
306#line 234 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/paravirt.h"
307struct static_key;
308#line 234
309struct static_key;
310#line 287 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
311struct i387_fsave_struct {
312 u32 cwd ;
313 u32 swd ;
314 u32 twd ;
315 u32 fip ;
316 u32 fcs ;
317 u32 foo ;
318 u32 fos ;
319 u32 st_space[20U] ;
320 u32 status ;
321};
322#line 305 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
323struct __anonstruct_ldv_5180_24 {
324 u64 rip ;
325 u64 rdp ;
326};
327#line 305 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
328struct __anonstruct_ldv_5186_25 {
329 u32 fip ;
330 u32 fcs ;
331 u32 foo ;
332 u32 fos ;
333};
334#line 305 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
335union __anonunion_ldv_5187_23 {
336 struct __anonstruct_ldv_5180_24 ldv_5180 ;
337 struct __anonstruct_ldv_5186_25 ldv_5186 ;
338};
339#line 305 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
340union __anonunion_ldv_5196_26 {
341 u32 padding1[12U] ;
342 u32 sw_reserved[12U] ;
343};
344#line 305 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
345struct i387_fxsave_struct {
346 u16 cwd ;
347 u16 swd ;
348 u16 twd ;
349 u16 fop ;
350 union __anonunion_ldv_5187_23 ldv_5187 ;
351 u32 mxcsr ;
352 u32 mxcsr_mask ;
353 u32 st_space[32U] ;
354 u32 xmm_space[64U] ;
355 u32 padding[12U] ;
356 union __anonunion_ldv_5196_26 ldv_5196 ;
357};
358#line 339 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
359struct i387_soft_struct {
360 u32 cwd ;
361 u32 swd ;
362 u32 twd ;
363 u32 fip ;
364 u32 fcs ;
365 u32 foo ;
366 u32 fos ;
367 u32 st_space[20U] ;
368 u8 ftop ;
369 u8 changed ;
370 u8 lookahead ;
371 u8 no_update ;
372 u8 rm ;
373 u8 alimit ;
374 struct math_emu_info *info ;
375 u32 entry_eip ;
376};
377#line 360 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
378struct ymmh_struct {
379 u32 ymmh_space[64U] ;
380};
381#line 365 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
382struct xsave_hdr_struct {
383 u64 xstate_bv ;
384 u64 reserved1[2U] ;
385 u64 reserved2[5U] ;
386};
387#line 371 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
388struct xsave_struct {
389 struct i387_fxsave_struct i387 ;
390 struct xsave_hdr_struct xsave_hdr ;
391 struct ymmh_struct ymmh ;
392};
393#line 377 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
394union thread_xstate {
395 struct i387_fsave_struct fsave ;
396 struct i387_fxsave_struct fxsave ;
397 struct i387_soft_struct soft ;
398 struct xsave_struct xsave ;
399};
400#line 385 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
401struct fpu {
402 unsigned int last_cpu ;
403 unsigned int has_fpu ;
404 union thread_xstate *state ;
405};
406#line 433
407struct kmem_cache;
408#line 434
409struct perf_event;
410#line 434
411struct perf_event;
412#line 435 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
413struct thread_struct {
414 struct desc_struct tls_array[3U] ;
415 unsigned long sp0 ;
416 unsigned long sp ;
417 unsigned long usersp ;
418 unsigned short es ;
419 unsigned short ds ;
420 unsigned short fsindex ;
421 unsigned short gsindex ;
422 unsigned long fs ;
423 unsigned long gs ;
424 struct perf_event *ptrace_bps[4U] ;
425 unsigned long debugreg6 ;
426 unsigned long ptrace_dr7 ;
427 unsigned long cr2 ;
428 unsigned long trap_nr ;
429 unsigned long error_code ;
430 struct fpu fpu ;
431 unsigned long *io_bitmap_ptr ;
432 unsigned long iopl ;
433 unsigned int io_bitmap_max ;
434};
435#line 23 "include/asm-generic/atomic-long.h"
436typedef atomic64_t atomic_long_t;
437#line 14 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/spinlock_types.h"
438typedef u16 __ticket_t;
439#line 15 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/spinlock_types.h"
440typedef u32 __ticketpair_t;
441#line 16 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/spinlock_types.h"
442struct __raw_tickets {
443 __ticket_t head ;
444 __ticket_t tail ;
445};
446#line 26 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/spinlock_types.h"
447union __anonunion_ldv_5907_29 {
448 __ticketpair_t head_tail ;
449 struct __raw_tickets tickets ;
450};
451#line 26 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/spinlock_types.h"
452struct arch_spinlock {
453 union __anonunion_ldv_5907_29 ldv_5907 ;
454};
455#line 27 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/spinlock_types.h"
456typedef struct arch_spinlock arch_spinlock_t;
457#line 33 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/rwlock.h"
458struct __anonstruct_ldv_5914_31 {
459 u32 read ;
460 s32 write ;
461};
462#line 33 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/rwlock.h"
463union __anonunion_arch_rwlock_t_30 {
464 s64 lock ;
465 struct __anonstruct_ldv_5914_31 ldv_5914 ;
466};
467#line 33 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/rwlock.h"
468typedef union __anonunion_arch_rwlock_t_30 arch_rwlock_t;
469#line 34
470struct lockdep_map;
471#line 34
472struct lockdep_map;
473#line 55 "include/linux/debug_locks.h"
474struct stack_trace {
475 unsigned int nr_entries ;
476 unsigned int max_entries ;
477 unsigned long *entries ;
478 int skip ;
479};
480#line 26 "include/linux/stacktrace.h"
481struct lockdep_subclass_key {
482 char __one_byte ;
483};
484#line 53 "include/linux/lockdep.h"
485struct lock_class_key {
486 struct lockdep_subclass_key subkeys[8U] ;
487};
488#line 59 "include/linux/lockdep.h"
489struct lock_class {
490 struct list_head hash_entry ;
491 struct list_head lock_entry ;
492 struct lockdep_subclass_key *key ;
493 unsigned int subclass ;
494 unsigned int dep_gen_id ;
495 unsigned long usage_mask ;
496 struct stack_trace usage_traces[13U] ;
497 struct list_head locks_after ;
498 struct list_head locks_before ;
499 unsigned int version ;
500 unsigned long ops ;
501 char const *name ;
502 int name_version ;
503 unsigned long contention_point[4U] ;
504 unsigned long contending_point[4U] ;
505};
506#line 144 "include/linux/lockdep.h"
507struct lockdep_map {
508 struct lock_class_key *key ;
509 struct lock_class *class_cache[2U] ;
510 char const *name ;
511 int cpu ;
512 unsigned long ip ;
513};
514#line 187 "include/linux/lockdep.h"
515struct held_lock {
516 u64 prev_chain_key ;
517 unsigned long acquire_ip ;
518 struct lockdep_map *instance ;
519 struct lockdep_map *nest_lock ;
520 u64 waittime_stamp ;
521 u64 holdtime_stamp ;
522 unsigned short class_idx : 13 ;
523 unsigned char irq_context : 2 ;
524 unsigned char trylock : 1 ;
525 unsigned char read : 2 ;
526 unsigned char check : 2 ;
527 unsigned char hardirqs_off : 1 ;
528 unsigned short references : 11 ;
529};
530#line 556 "include/linux/lockdep.h"
531struct raw_spinlock {
532 arch_spinlock_t raw_lock ;
533 unsigned int magic ;
534 unsigned int owner_cpu ;
535 void *owner ;
536 struct lockdep_map dep_map ;
537};
538#line 32 "include/linux/spinlock_types.h"
539typedef struct raw_spinlock raw_spinlock_t;
540#line 33 "include/linux/spinlock_types.h"
541struct __anonstruct_ldv_6122_33 {
542 u8 __padding[24U] ;
543 struct lockdep_map dep_map ;
544};
545#line 33 "include/linux/spinlock_types.h"
546union __anonunion_ldv_6123_32 {
547 struct raw_spinlock rlock ;
548 struct __anonstruct_ldv_6122_33 ldv_6122 ;
549};
550#line 33 "include/linux/spinlock_types.h"
551struct spinlock {
552 union __anonunion_ldv_6123_32 ldv_6123 ;
553};
554#line 76 "include/linux/spinlock_types.h"
555typedef struct spinlock spinlock_t;
556#line 23 "include/linux/rwlock_types.h"
557struct __anonstruct_rwlock_t_34 {
558 arch_rwlock_t raw_lock ;
559 unsigned int magic ;
560 unsigned int owner_cpu ;
561 void *owner ;
562 struct lockdep_map dep_map ;
563};
564#line 23 "include/linux/rwlock_types.h"
565typedef struct __anonstruct_rwlock_t_34 rwlock_t;
566#line 110 "include/linux/seqlock.h"
567struct seqcount {
568 unsigned int sequence ;
569};
570#line 121 "include/linux/seqlock.h"
571typedef struct seqcount seqcount_t;
572#line 254 "include/linux/seqlock.h"
573struct timespec {
574 __kernel_time_t tv_sec ;
575 long tv_nsec ;
576};
577#line 286 "include/linux/time.h"
578struct kstat {
579 u64 ino ;
580 dev_t dev ;
581 umode_t mode ;
582 unsigned int nlink ;
583 uid_t uid ;
584 gid_t gid ;
585 dev_t rdev ;
586 loff_t size ;
587 struct timespec atime ;
588 struct timespec mtime ;
589 struct timespec ctime ;
590 unsigned long blksize ;
591 unsigned long long blocks ;
592};
593#line 48 "include/linux/wait.h"
594struct __wait_queue_head {
595 spinlock_t lock ;
596 struct list_head task_list ;
597};
598#line 53 "include/linux/wait.h"
599typedef struct __wait_queue_head wait_queue_head_t;
600#line 98 "include/linux/nodemask.h"
601struct __anonstruct_nodemask_t_36 {
602 unsigned long bits[16U] ;
603};
604#line 98 "include/linux/nodemask.h"
605typedef struct __anonstruct_nodemask_t_36 nodemask_t;
606#line 670 "include/linux/mmzone.h"
607struct mutex {
608 atomic_t count ;
609 spinlock_t wait_lock ;
610 struct list_head wait_list ;
611 struct task_struct *owner ;
612 char const *name ;
613 void *magic ;
614 struct lockdep_map dep_map ;
615};
616#line 63 "include/linux/mutex.h"
617struct mutex_waiter {
618 struct list_head list ;
619 struct task_struct *task ;
620 void *magic ;
621};
622#line 171
623struct rw_semaphore;
624#line 171
625struct rw_semaphore;
626#line 172 "include/linux/mutex.h"
627struct rw_semaphore {
628 long count ;
629 raw_spinlock_t wait_lock ;
630 struct list_head wait_list ;
631 struct lockdep_map dep_map ;
632};
633#line 128 "include/linux/rwsem.h"
634struct completion {
635 unsigned int done ;
636 wait_queue_head_t wait ;
637};
638#line 312 "include/linux/jiffies.h"
639union ktime {
640 s64 tv64 ;
641};
642#line 59 "include/linux/ktime.h"
643typedef union ktime ktime_t;
644#line 341
645struct tvec_base;
646#line 341
647struct tvec_base;
648#line 342 "include/linux/ktime.h"
649struct timer_list {
650 struct list_head entry ;
651 unsigned long expires ;
652 struct tvec_base *base ;
653 void (*function)(unsigned long ) ;
654 unsigned long data ;
655 int slack ;
656 int start_pid ;
657 void *start_site ;
658 char start_comm[16U] ;
659 struct lockdep_map lockdep_map ;
660};
661#line 289 "include/linux/timer.h"
662struct hrtimer;
663#line 289
664struct hrtimer;
665#line 290
666enum hrtimer_restart;
667#line 301
668struct workqueue_struct;
669#line 301
670struct workqueue_struct;
671#line 302
672struct work_struct;
673#line 302
674struct work_struct;
675#line 45 "include/linux/workqueue.h"
676struct work_struct {
677 atomic_long_t data ;
678 struct list_head entry ;
679 void (*func)(struct work_struct * ) ;
680 struct lockdep_map lockdep_map ;
681};
682#line 86 "include/linux/workqueue.h"
683struct delayed_work {
684 struct work_struct work ;
685 struct timer_list timer ;
686};
687#line 102 "include/linux/workqueue.h"
688struct execute_work {
689 struct work_struct work ;
690};
691#line 46 "include/linux/pm.h"
692struct pm_message {
693 int event ;
694};
695#line 52 "include/linux/pm.h"
696typedef struct pm_message pm_message_t;
697#line 53 "include/linux/pm.h"
698struct dev_pm_ops {
699 int (*prepare)(struct device * ) ;
700 void (*complete)(struct device * ) ;
701 int (*suspend)(struct device * ) ;
702 int (*resume)(struct device * ) ;
703 int (*freeze)(struct device * ) ;
704 int (*thaw)(struct device * ) ;
705 int (*poweroff)(struct device * ) ;
706 int (*restore)(struct device * ) ;
707 int (*suspend_late)(struct device * ) ;
708 int (*resume_early)(struct device * ) ;
709 int (*freeze_late)(struct device * ) ;
710 int (*thaw_early)(struct device * ) ;
711 int (*poweroff_late)(struct device * ) ;
712 int (*restore_early)(struct device * ) ;
713 int (*suspend_noirq)(struct device * ) ;
714 int (*resume_noirq)(struct device * ) ;
715 int (*freeze_noirq)(struct device * ) ;
716 int (*thaw_noirq)(struct device * ) ;
717 int (*poweroff_noirq)(struct device * ) ;
718 int (*restore_noirq)(struct device * ) ;
719 int (*runtime_suspend)(struct device * ) ;
720 int (*runtime_resume)(struct device * ) ;
721 int (*runtime_idle)(struct device * ) ;
722};
723#line 289
724enum rpm_status {
725 RPM_ACTIVE = 0,
726 RPM_RESUMING = 1,
727 RPM_SUSPENDED = 2,
728 RPM_SUSPENDING = 3
729} ;
730#line 296
731enum rpm_request {
732 RPM_REQ_NONE = 0,
733 RPM_REQ_IDLE = 1,
734 RPM_REQ_SUSPEND = 2,
735 RPM_REQ_AUTOSUSPEND = 3,
736 RPM_REQ_RESUME = 4
737} ;
738#line 304
739struct wakeup_source;
740#line 304
741struct wakeup_source;
742#line 494 "include/linux/pm.h"
743struct pm_subsys_data {
744 spinlock_t lock ;
745 unsigned int refcount ;
746};
747#line 499
748struct dev_pm_qos_request;
749#line 499
750struct pm_qos_constraints;
751#line 499 "include/linux/pm.h"
752struct dev_pm_info {
753 pm_message_t power_state ;
754 unsigned char can_wakeup : 1 ;
755 unsigned char async_suspend : 1 ;
756 bool is_prepared ;
757 bool is_suspended ;
758 bool ignore_children ;
759 spinlock_t lock ;
760 struct list_head entry ;
761 struct completion completion ;
762 struct wakeup_source *wakeup ;
763 bool wakeup_path ;
764 struct timer_list suspend_timer ;
765 unsigned long timer_expires ;
766 struct work_struct work ;
767 wait_queue_head_t wait_queue ;
768 atomic_t usage_count ;
769 atomic_t child_count ;
770 unsigned char disable_depth : 3 ;
771 unsigned char idle_notification : 1 ;
772 unsigned char request_pending : 1 ;
773 unsigned char deferred_resume : 1 ;
774 unsigned char run_wake : 1 ;
775 unsigned char runtime_auto : 1 ;
776 unsigned char no_callbacks : 1 ;
777 unsigned char irq_safe : 1 ;
778 unsigned char use_autosuspend : 1 ;
779 unsigned char timer_autosuspends : 1 ;
780 enum rpm_request request ;
781 enum rpm_status runtime_status ;
782 int runtime_error ;
783 int autosuspend_delay ;
784 unsigned long last_busy ;
785 unsigned long active_jiffies ;
786 unsigned long suspended_jiffies ;
787 unsigned long accounting_timestamp ;
788 ktime_t suspend_time ;
789 s64 max_time_suspended_ns ;
790 struct dev_pm_qos_request *pq_req ;
791 struct pm_subsys_data *subsys_data ;
792 struct pm_qos_constraints *constraints ;
793};
794#line 558 "include/linux/pm.h"
795struct dev_pm_domain {
796 struct dev_pm_ops ops ;
797};
798#line 22 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/mmu.h"
799struct __anonstruct_mm_context_t_101 {
800 void *ldt ;
801 int size ;
802 unsigned short ia32_compat ;
803 struct mutex lock ;
804 void *vdso ;
805};
806#line 22 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/mmu.h"
807typedef struct __anonstruct_mm_context_t_101 mm_context_t;
808#line 18 "include/asm-generic/pci_iomap.h"
809struct vm_area_struct;
810#line 18
811struct vm_area_struct;
812#line 68 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/xen/hypervisor.h"
813struct bio_vec;
814#line 68
815struct bio_vec;
816#line 18 "include/linux/smp.h"
817struct call_single_data {
818 struct list_head list ;
819 void (*func)(void * ) ;
820 void *info ;
821 u16 flags ;
822 u16 priv ;
823};
824#line 835 "include/linux/sysctl.h"
825struct rb_node {
826 unsigned long rb_parent_color ;
827 struct rb_node *rb_right ;
828 struct rb_node *rb_left ;
829};
830#line 108 "include/linux/rbtree.h"
831struct rb_root {
832 struct rb_node *rb_node ;
833};
834#line 176
835struct nsproxy;
836#line 176
837struct nsproxy;
838#line 37 "include/linux/kmod.h"
839struct cred;
840#line 37
841struct cred;
842#line 18 "include/linux/elf.h"
843typedef __u64 Elf64_Addr;
844#line 19 "include/linux/elf.h"
845typedef __u16 Elf64_Half;
846#line 23 "include/linux/elf.h"
847typedef __u32 Elf64_Word;
848#line 24 "include/linux/elf.h"
849typedef __u64 Elf64_Xword;
850#line 193 "include/linux/elf.h"
851struct elf64_sym {
852 Elf64_Word st_name ;
853 unsigned char st_info ;
854 unsigned char st_other ;
855 Elf64_Half st_shndx ;
856 Elf64_Addr st_value ;
857 Elf64_Xword st_size ;
858};
859#line 201 "include/linux/elf.h"
860typedef struct elf64_sym Elf64_Sym;
861#line 445
862struct sock;
863#line 445
864struct sock;
865#line 446
866struct kobject;
867#line 446
868struct kobject;
869#line 447
870enum kobj_ns_type {
871 KOBJ_NS_TYPE_NONE = 0,
872 KOBJ_NS_TYPE_NET = 1,
873 KOBJ_NS_TYPES = 2
874} ;
875#line 453 "include/linux/elf.h"
876struct kobj_ns_type_operations {
877 enum kobj_ns_type type ;
878 void *(*grab_current_ns)(void) ;
879 void const *(*netlink_ns)(struct sock * ) ;
880 void const *(*initial_ns)(void) ;
881 void (*drop_ns)(void * ) ;
882};
883#line 57 "include/linux/kobject_ns.h"
884struct attribute {
885 char const *name ;
886 umode_t mode ;
887 struct lock_class_key *key ;
888 struct lock_class_key skey ;
889};
890#line 33 "include/linux/sysfs.h"
891struct attribute_group {
892 char const *name ;
893 umode_t (*is_visible)(struct kobject * , struct attribute * , int ) ;
894 struct attribute **attrs ;
895};
896#line 62 "include/linux/sysfs.h"
897struct bin_attribute {
898 struct attribute attr ;
899 size_t size ;
900 void *private ;
901 ssize_t (*read)(struct file * , struct kobject * , struct bin_attribute * , char * ,
902 loff_t , size_t ) ;
903 ssize_t (*write)(struct file * , struct kobject * , struct bin_attribute * , char * ,
904 loff_t , size_t ) ;
905 int (*mmap)(struct file * , struct kobject * , struct bin_attribute * , struct vm_area_struct * ) ;
906};
907#line 98 "include/linux/sysfs.h"
908struct sysfs_ops {
909 ssize_t (*show)(struct kobject * , struct attribute * , char * ) ;
910 ssize_t (*store)(struct kobject * , struct attribute * , char const * , size_t ) ;
911 void const *(*namespace)(struct kobject * , struct attribute const * ) ;
912};
913#line 117
914struct sysfs_dirent;
915#line 117
916struct sysfs_dirent;
917#line 182 "include/linux/sysfs.h"
918struct kref {
919 atomic_t refcount ;
920};
921#line 49 "include/linux/kobject.h"
922struct kset;
923#line 49
924struct kobj_type;
925#line 49 "include/linux/kobject.h"
926struct kobject {
927 char const *name ;
928 struct list_head entry ;
929 struct kobject *parent ;
930 struct kset *kset ;
931 struct kobj_type *ktype ;
932 struct sysfs_dirent *sd ;
933 struct kref kref ;
934 unsigned char state_initialized : 1 ;
935 unsigned char state_in_sysfs : 1 ;
936 unsigned char state_add_uevent_sent : 1 ;
937 unsigned char state_remove_uevent_sent : 1 ;
938 unsigned char uevent_suppress : 1 ;
939};
940#line 107 "include/linux/kobject.h"
941struct kobj_type {
942 void (*release)(struct kobject * ) ;
943 struct sysfs_ops const *sysfs_ops ;
944 struct attribute **default_attrs ;
945 struct kobj_ns_type_operations const *(*child_ns_type)(struct kobject * ) ;
946 void const *(*namespace)(struct kobject * ) ;
947};
948#line 115 "include/linux/kobject.h"
949struct kobj_uevent_env {
950 char *envp[32U] ;
951 int envp_idx ;
952 char buf[2048U] ;
953 int buflen ;
954};
955#line 122 "include/linux/kobject.h"
956struct kset_uevent_ops {
957 int (* const filter)(struct kset * , struct kobject * ) ;
958 char const *(* const name)(struct kset * , struct kobject * ) ;
959 int (* const uevent)(struct kset * , struct kobject * , struct kobj_uevent_env * ) ;
960};
961#line 139 "include/linux/kobject.h"
962struct kset {
963 struct list_head list ;
964 spinlock_t list_lock ;
965 struct kobject kobj ;
966 struct kset_uevent_ops const *uevent_ops ;
967};
968#line 215
969struct kernel_param;
970#line 215
971struct kernel_param;
972#line 216 "include/linux/kobject.h"
973struct kernel_param_ops {
974 int (*set)(char const * , struct kernel_param const * ) ;
975 int (*get)(char * , struct kernel_param const * ) ;
976 void (*free)(void * ) ;
977};
978#line 49 "include/linux/moduleparam.h"
979struct kparam_string;
980#line 49
981struct kparam_array;
982#line 49 "include/linux/moduleparam.h"
983union __anonunion_ldv_13363_134 {
984 void *arg ;
985 struct kparam_string const *str ;
986 struct kparam_array const *arr ;
987};
988#line 49 "include/linux/moduleparam.h"
989struct kernel_param {
990 char const *name ;
991 struct kernel_param_ops const *ops ;
992 u16 perm ;
993 s16 level ;
994 union __anonunion_ldv_13363_134 ldv_13363 ;
995};
996#line 61 "include/linux/moduleparam.h"
997struct kparam_string {
998 unsigned int maxlen ;
999 char *string ;
1000};
1001#line 67 "include/linux/moduleparam.h"
1002struct kparam_array {
1003 unsigned int max ;
1004 unsigned int elemsize ;
1005 unsigned int *num ;
1006 struct kernel_param_ops const *ops ;
1007 void *elem ;
1008};
1009#line 458 "include/linux/moduleparam.h"
1010struct static_key {
1011 atomic_t enabled ;
1012};
1013#line 225 "include/linux/jump_label.h"
1014struct tracepoint;
1015#line 225
1016struct tracepoint;
1017#line 226 "include/linux/jump_label.h"
1018struct tracepoint_func {
1019 void *func ;
1020 void *data ;
1021};
1022#line 29 "include/linux/tracepoint.h"
1023struct tracepoint {
1024 char const *name ;
1025 struct static_key key ;
1026 void (*regfunc)(void) ;
1027 void (*unregfunc)(void) ;
1028 struct tracepoint_func *funcs ;
1029};
1030#line 86 "include/linux/tracepoint.h"
1031struct kernel_symbol {
1032 unsigned long value ;
1033 char const *name ;
1034};
1035#line 27 "include/linux/export.h"
1036struct mod_arch_specific {
1037
1038};
1039#line 34 "include/linux/module.h"
1040struct module_param_attrs;
1041#line 34 "include/linux/module.h"
1042struct module_kobject {
1043 struct kobject kobj ;
1044 struct module *mod ;
1045 struct kobject *drivers_dir ;
1046 struct module_param_attrs *mp ;
1047};
1048#line 43 "include/linux/module.h"
1049struct module_attribute {
1050 struct attribute attr ;
1051 ssize_t (*show)(struct module_attribute * , struct module_kobject * , char * ) ;
1052 ssize_t (*store)(struct module_attribute * , struct module_kobject * , char const * ,
1053 size_t ) ;
1054 void (*setup)(struct module * , char const * ) ;
1055 int (*test)(struct module * ) ;
1056 void (*free)(struct module * ) ;
1057};
1058#line 69
1059struct exception_table_entry;
1060#line 69
1061struct exception_table_entry;
1062#line 198
1063enum module_state {
1064 MODULE_STATE_LIVE = 0,
1065 MODULE_STATE_COMING = 1,
1066 MODULE_STATE_GOING = 2
1067} ;
1068#line 204 "include/linux/module.h"
1069struct module_ref {
1070 unsigned long incs ;
1071 unsigned long decs ;
1072};
1073#line 219
1074struct module_sect_attrs;
1075#line 219
1076struct module_notes_attrs;
1077#line 219
1078struct ftrace_event_call;
1079#line 219 "include/linux/module.h"
1080struct module {
1081 enum module_state state ;
1082 struct list_head list ;
1083 char name[56U] ;
1084 struct module_kobject mkobj ;
1085 struct module_attribute *modinfo_attrs ;
1086 char const *version ;
1087 char const *srcversion ;
1088 struct kobject *holders_dir ;
1089 struct kernel_symbol const *syms ;
1090 unsigned long const *crcs ;
1091 unsigned int num_syms ;
1092 struct kernel_param *kp ;
1093 unsigned int num_kp ;
1094 unsigned int num_gpl_syms ;
1095 struct kernel_symbol const *gpl_syms ;
1096 unsigned long const *gpl_crcs ;
1097 struct kernel_symbol const *unused_syms ;
1098 unsigned long const *unused_crcs ;
1099 unsigned int num_unused_syms ;
1100 unsigned int num_unused_gpl_syms ;
1101 struct kernel_symbol const *unused_gpl_syms ;
1102 unsigned long const *unused_gpl_crcs ;
1103 struct kernel_symbol const *gpl_future_syms ;
1104 unsigned long const *gpl_future_crcs ;
1105 unsigned int num_gpl_future_syms ;
1106 unsigned int num_exentries ;
1107 struct exception_table_entry *extable ;
1108 int (*init)(void) ;
1109 void *module_init ;
1110 void *module_core ;
1111 unsigned int init_size ;
1112 unsigned int core_size ;
1113 unsigned int init_text_size ;
1114 unsigned int core_text_size ;
1115 unsigned int init_ro_size ;
1116 unsigned int core_ro_size ;
1117 struct mod_arch_specific arch ;
1118 unsigned int taints ;
1119 unsigned int num_bugs ;
1120 struct list_head bug_list ;
1121 struct bug_entry *bug_table ;
1122 Elf64_Sym *symtab ;
1123 Elf64_Sym *core_symtab ;
1124 unsigned int num_symtab ;
1125 unsigned int core_num_syms ;
1126 char *strtab ;
1127 char *core_strtab ;
1128 struct module_sect_attrs *sect_attrs ;
1129 struct module_notes_attrs *notes_attrs ;
1130 char *args ;
1131 void *percpu ;
1132 unsigned int percpu_size ;
1133 unsigned int num_tracepoints ;
1134 struct tracepoint * const *tracepoints_ptrs ;
1135 unsigned int num_trace_bprintk_fmt ;
1136 char const **trace_bprintk_fmt_start ;
1137 struct ftrace_event_call **trace_events ;
1138 unsigned int num_trace_events ;
1139 struct list_head source_list ;
1140 struct list_head target_list ;
1141 struct task_struct *waiter ;
1142 void (*exit)(void) ;
1143 struct module_ref *refptr ;
1144 ctor_fn_t (**ctors)(void) ;
1145 unsigned int num_ctors ;
1146};
1147#line 88 "include/linux/kmemleak.h"
1148struct kmem_cache_cpu {
1149 void **freelist ;
1150 unsigned long tid ;
1151 struct page *page ;
1152 struct page *partial ;
1153 int node ;
1154 unsigned int stat[26U] ;
1155};
1156#line 55 "include/linux/slub_def.h"
1157struct kmem_cache_node {
1158 spinlock_t list_lock ;
1159 unsigned long nr_partial ;
1160 struct list_head partial ;
1161 atomic_long_t nr_slabs ;
1162 atomic_long_t total_objects ;
1163 struct list_head full ;
1164};
1165#line 66 "include/linux/slub_def.h"
1166struct kmem_cache_order_objects {
1167 unsigned long x ;
1168};
1169#line 76 "include/linux/slub_def.h"
1170struct kmem_cache {
1171 struct kmem_cache_cpu *cpu_slab ;
1172 unsigned long flags ;
1173 unsigned long min_partial ;
1174 int size ;
1175 int objsize ;
1176 int offset ;
1177 int cpu_partial ;
1178 struct kmem_cache_order_objects oo ;
1179 struct kmem_cache_order_objects max ;
1180 struct kmem_cache_order_objects min ;
1181 gfp_t allocflags ;
1182 int refcount ;
1183 void (*ctor)(void * ) ;
1184 int inuse ;
1185 int align ;
1186 int reserved ;
1187 char const *name ;
1188 struct list_head list ;
1189 struct kobject kobj ;
1190 int remote_node_defrag_ratio ;
1191 struct kmem_cache_node *node[1024U] ;
1192};
1193#line 15 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
1194struct prio_tree_node;
1195#line 15 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
1196struct raw_prio_tree_node {
1197 struct prio_tree_node *left ;
1198 struct prio_tree_node *right ;
1199 struct prio_tree_node *parent ;
1200};
1201#line 19 "include/linux/prio_tree.h"
1202struct prio_tree_node {
1203 struct prio_tree_node *left ;
1204 struct prio_tree_node *right ;
1205 struct prio_tree_node *parent ;
1206 unsigned long start ;
1207 unsigned long last ;
1208};
1209#line 27 "include/linux/prio_tree.h"
1210struct prio_tree_root {
1211 struct prio_tree_node *prio_tree_node ;
1212 unsigned short index_bits ;
1213 unsigned short raw ;
1214};
1215#line 116
1216struct address_space;
1217#line 116
1218struct address_space;
1219#line 117 "include/linux/prio_tree.h"
1220union __anonunion_ldv_14216_136 {
1221 unsigned long index ;
1222 void *freelist ;
1223};
1224#line 117 "include/linux/prio_tree.h"
1225struct __anonstruct_ldv_14226_140 {
1226 unsigned short inuse ;
1227 unsigned short objects : 15 ;
1228 unsigned char frozen : 1 ;
1229};
1230#line 117 "include/linux/prio_tree.h"
1231union __anonunion_ldv_14227_139 {
1232 atomic_t _mapcount ;
1233 struct __anonstruct_ldv_14226_140 ldv_14226 ;
1234};
1235#line 117 "include/linux/prio_tree.h"
1236struct __anonstruct_ldv_14229_138 {
1237 union __anonunion_ldv_14227_139 ldv_14227 ;
1238 atomic_t _count ;
1239};
1240#line 117 "include/linux/prio_tree.h"
1241union __anonunion_ldv_14230_137 {
1242 unsigned long counters ;
1243 struct __anonstruct_ldv_14229_138 ldv_14229 ;
1244};
1245#line 117 "include/linux/prio_tree.h"
1246struct __anonstruct_ldv_14231_135 {
1247 union __anonunion_ldv_14216_136 ldv_14216 ;
1248 union __anonunion_ldv_14230_137 ldv_14230 ;
1249};
1250#line 117 "include/linux/prio_tree.h"
1251struct __anonstruct_ldv_14238_142 {
1252 struct page *next ;
1253 int pages ;
1254 int pobjects ;
1255};
1256#line 117 "include/linux/prio_tree.h"
1257union __anonunion_ldv_14239_141 {
1258 struct list_head lru ;
1259 struct __anonstruct_ldv_14238_142 ldv_14238 ;
1260};
1261#line 117 "include/linux/prio_tree.h"
1262union __anonunion_ldv_14244_143 {
1263 unsigned long private ;
1264 struct kmem_cache *slab ;
1265 struct page *first_page ;
1266};
1267#line 117 "include/linux/prio_tree.h"
1268struct page {
1269 unsigned long flags ;
1270 struct address_space *mapping ;
1271 struct __anonstruct_ldv_14231_135 ldv_14231 ;
1272 union __anonunion_ldv_14239_141 ldv_14239 ;
1273 union __anonunion_ldv_14244_143 ldv_14244 ;
1274 unsigned long debug_flags ;
1275};
1276#line 192 "include/linux/mm_types.h"
1277struct __anonstruct_vm_set_145 {
1278 struct list_head list ;
1279 void *parent ;
1280 struct vm_area_struct *head ;
1281};
1282#line 192 "include/linux/mm_types.h"
1283union __anonunion_shared_144 {
1284 struct __anonstruct_vm_set_145 vm_set ;
1285 struct raw_prio_tree_node prio_tree_node ;
1286};
1287#line 192
1288struct anon_vma;
1289#line 192
1290struct vm_operations_struct;
1291#line 192
1292struct mempolicy;
1293#line 192 "include/linux/mm_types.h"
1294struct vm_area_struct {
1295 struct mm_struct *vm_mm ;
1296 unsigned long vm_start ;
1297 unsigned long vm_end ;
1298 struct vm_area_struct *vm_next ;
1299 struct vm_area_struct *vm_prev ;
1300 pgprot_t vm_page_prot ;
1301 unsigned long vm_flags ;
1302 struct rb_node vm_rb ;
1303 union __anonunion_shared_144 shared ;
1304 struct list_head anon_vma_chain ;
1305 struct anon_vma *anon_vma ;
1306 struct vm_operations_struct const *vm_ops ;
1307 unsigned long vm_pgoff ;
1308 struct file *vm_file ;
1309 void *vm_private_data ;
1310 struct mempolicy *vm_policy ;
1311};
1312#line 255 "include/linux/mm_types.h"
1313struct core_thread {
1314 struct task_struct *task ;
1315 struct core_thread *next ;
1316};
1317#line 261 "include/linux/mm_types.h"
1318struct core_state {
1319 atomic_t nr_threads ;
1320 struct core_thread dumper ;
1321 struct completion startup ;
1322};
1323#line 274 "include/linux/mm_types.h"
1324struct mm_rss_stat {
1325 atomic_long_t count[3U] ;
1326};
1327#line 287
1328struct linux_binfmt;
1329#line 287
1330struct mmu_notifier_mm;
1331#line 287 "include/linux/mm_types.h"
1332struct mm_struct {
1333 struct vm_area_struct *mmap ;
1334 struct rb_root mm_rb ;
1335 struct vm_area_struct *mmap_cache ;
1336 unsigned long (*get_unmapped_area)(struct file * , unsigned long , unsigned long ,
1337 unsigned long , unsigned long ) ;
1338 void (*unmap_area)(struct mm_struct * , unsigned long ) ;
1339 unsigned long mmap_base ;
1340 unsigned long task_size ;
1341 unsigned long cached_hole_size ;
1342 unsigned long free_area_cache ;
1343 pgd_t *pgd ;
1344 atomic_t mm_users ;
1345 atomic_t mm_count ;
1346 int map_count ;
1347 spinlock_t page_table_lock ;
1348 struct rw_semaphore mmap_sem ;
1349 struct list_head mmlist ;
1350 unsigned long hiwater_rss ;
1351 unsigned long hiwater_vm ;
1352 unsigned long total_vm ;
1353 unsigned long locked_vm ;
1354 unsigned long pinned_vm ;
1355 unsigned long shared_vm ;
1356 unsigned long exec_vm ;
1357 unsigned long stack_vm ;
1358 unsigned long reserved_vm ;
1359 unsigned long def_flags ;
1360 unsigned long nr_ptes ;
1361 unsigned long start_code ;
1362 unsigned long end_code ;
1363 unsigned long start_data ;
1364 unsigned long end_data ;
1365 unsigned long start_brk ;
1366 unsigned long brk ;
1367 unsigned long start_stack ;
1368 unsigned long arg_start ;
1369 unsigned long arg_end ;
1370 unsigned long env_start ;
1371 unsigned long env_end ;
1372 unsigned long saved_auxv[44U] ;
1373 struct mm_rss_stat rss_stat ;
1374 struct linux_binfmt *binfmt ;
1375 cpumask_var_t cpu_vm_mask_var ;
1376 mm_context_t context ;
1377 unsigned int faultstamp ;
1378 unsigned int token_priority ;
1379 unsigned int last_interval ;
1380 unsigned long flags ;
1381 struct core_state *core_state ;
1382 spinlock_t ioctx_lock ;
1383 struct hlist_head ioctx_list ;
1384 struct task_struct *owner ;
1385 struct file *exe_file ;
1386 unsigned long num_exe_file_vmas ;
1387 struct mmu_notifier_mm *mmu_notifier_mm ;
1388 pgtable_t pmd_huge_pte ;
1389 struct cpumask cpumask_allocation ;
1390};
1391#line 93 "include/linux/bit_spinlock.h"
1392struct shrink_control {
1393 gfp_t gfp_mask ;
1394 unsigned long nr_to_scan ;
1395};
1396#line 14 "include/linux/shrinker.h"
1397struct shrinker {
1398 int (*shrink)(struct shrinker * , struct shrink_control * ) ;
1399 int seeks ;
1400 long batch ;
1401 struct list_head list ;
1402 atomic_long_t nr_in_batch ;
1403};
1404#line 43
1405struct file_ra_state;
1406#line 43
1407struct file_ra_state;
1408#line 44
1409struct user_struct;
1410#line 44
1411struct user_struct;
1412#line 45
1413struct writeback_control;
1414#line 45
1415struct writeback_control;
1416#line 178 "include/linux/mm.h"
1417struct vm_fault {
1418 unsigned int flags ;
1419 unsigned long pgoff ;
1420 void *virtual_address ;
1421 struct page *page ;
1422};
1423#line 195 "include/linux/mm.h"
1424struct vm_operations_struct {
1425 void (*open)(struct vm_area_struct * ) ;
1426 void (*close)(struct vm_area_struct * ) ;
1427 int (*fault)(struct vm_area_struct * , struct vm_fault * ) ;
1428 int (*page_mkwrite)(struct vm_area_struct * , struct vm_fault * ) ;
1429 int (*access)(struct vm_area_struct * , unsigned long , void * , int , int ) ;
1430 int (*set_policy)(struct vm_area_struct * , struct mempolicy * ) ;
1431 struct mempolicy *(*get_policy)(struct vm_area_struct * , unsigned long ) ;
1432 int (*migrate)(struct vm_area_struct * , nodemask_t const * , nodemask_t const * ,
1433 unsigned long ) ;
1434};
1435#line 244
1436struct inode;
1437#line 244
1438struct inode;
1439#line 1631 "include/linux/mm.h"
1440struct scatterlist {
1441 unsigned long sg_magic ;
1442 unsigned long page_link ;
1443 unsigned int offset ;
1444 unsigned int length ;
1445 dma_addr_t dma_address ;
1446 unsigned int dma_length ;
1447};
1448#line 17 "include/asm-generic/scatterlist.h"
1449struct sg_table {
1450 struct scatterlist *sgl ;
1451 unsigned int nents ;
1452 unsigned int orig_nents ;
1453};
1454#line 268 "include/linux/scatterlist.h"
1455struct scsi_cmnd;
1456#line 268
1457struct scsi_cmnd;
1458#line 564 "include/scsi/scsi.h"
1459struct klist_node;
1460#line 564
1461struct klist_node;
1462#line 37 "include/linux/klist.h"
1463struct klist_node {
1464 void *n_klist ;
1465 struct list_head n_node ;
1466 struct kref n_ref ;
1467};
1468#line 67
1469struct dma_map_ops;
1470#line 67 "include/linux/klist.h"
1471struct dev_archdata {
1472 void *acpi_handle ;
1473 struct dma_map_ops *dma_ops ;
1474 void *iommu ;
1475};
1476#line 17 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/device.h"
1477struct device_private;
1478#line 17
1479struct device_private;
1480#line 18
1481struct device_driver;
1482#line 18
1483struct device_driver;
1484#line 19
1485struct driver_private;
1486#line 19
1487struct driver_private;
1488#line 20
1489struct class;
1490#line 20
1491struct class;
1492#line 21
1493struct subsys_private;
1494#line 21
1495struct subsys_private;
1496#line 22
1497struct bus_type;
1498#line 22
1499struct bus_type;
1500#line 23
1501struct device_node;
1502#line 23
1503struct device_node;
1504#line 24
1505struct iommu_ops;
1506#line 24
1507struct iommu_ops;
1508#line 25 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/device.h"
1509struct bus_attribute {
1510 struct attribute attr ;
1511 ssize_t (*show)(struct bus_type * , char * ) ;
1512 ssize_t (*store)(struct bus_type * , char const * , size_t ) ;
1513};
1514#line 51 "include/linux/device.h"
1515struct device_attribute;
1516#line 51
1517struct driver_attribute;
1518#line 51 "include/linux/device.h"
1519struct bus_type {
1520 char const *name ;
1521 char const *dev_name ;
1522 struct device *dev_root ;
1523 struct bus_attribute *bus_attrs ;
1524 struct device_attribute *dev_attrs ;
1525 struct driver_attribute *drv_attrs ;
1526 int (*match)(struct device * , struct device_driver * ) ;
1527 int (*uevent)(struct device * , struct kobj_uevent_env * ) ;
1528 int (*probe)(struct device * ) ;
1529 int (*remove)(struct device * ) ;
1530 void (*shutdown)(struct device * ) ;
1531 int (*suspend)(struct device * , pm_message_t ) ;
1532 int (*resume)(struct device * ) ;
1533 struct dev_pm_ops const *pm ;
1534 struct iommu_ops *iommu_ops ;
1535 struct subsys_private *p ;
1536};
1537#line 125
1538struct device_type;
1539#line 182
1540struct of_device_id;
1541#line 182 "include/linux/device.h"
1542struct device_driver {
1543 char const *name ;
1544 struct bus_type *bus ;
1545 struct module *owner ;
1546 char const *mod_name ;
1547 bool suppress_bind_attrs ;
1548 struct of_device_id const *of_match_table ;
1549 int (*probe)(struct device * ) ;
1550 int (*remove)(struct device * ) ;
1551 void (*shutdown)(struct device * ) ;
1552 int (*suspend)(struct device * , pm_message_t ) ;
1553 int (*resume)(struct device * ) ;
1554 struct attribute_group const **groups ;
1555 struct dev_pm_ops const *pm ;
1556 struct driver_private *p ;
1557};
1558#line 245 "include/linux/device.h"
1559struct driver_attribute {
1560 struct attribute attr ;
1561 ssize_t (*show)(struct device_driver * , char * ) ;
1562 ssize_t (*store)(struct device_driver * , char const * , size_t ) ;
1563};
1564#line 299
1565struct class_attribute;
1566#line 299 "include/linux/device.h"
1567struct class {
1568 char const *name ;
1569 struct module *owner ;
1570 struct class_attribute *class_attrs ;
1571 struct device_attribute *dev_attrs ;
1572 struct bin_attribute *dev_bin_attrs ;
1573 struct kobject *dev_kobj ;
1574 int (*dev_uevent)(struct device * , struct kobj_uevent_env * ) ;
1575 char *(*devnode)(struct device * , umode_t * ) ;
1576 void (*class_release)(struct class * ) ;
1577 void (*dev_release)(struct device * ) ;
1578 int (*suspend)(struct device * , pm_message_t ) ;
1579 int (*resume)(struct device * ) ;
1580 struct kobj_ns_type_operations const *ns_type ;
1581 void const *(*namespace)(struct device * ) ;
1582 struct dev_pm_ops const *pm ;
1583 struct subsys_private *p ;
1584};
1585#line 394 "include/linux/device.h"
1586struct class_attribute {
1587 struct attribute attr ;
1588 ssize_t (*show)(struct class * , struct class_attribute * , char * ) ;
1589 ssize_t (*store)(struct class * , struct class_attribute * , char const * , size_t ) ;
1590 void const *(*namespace)(struct class * , struct class_attribute const * ) ;
1591};
1592#line 447 "include/linux/device.h"
1593struct device_type {
1594 char const *name ;
1595 struct attribute_group const **groups ;
1596 int (*uevent)(struct device * , struct kobj_uevent_env * ) ;
1597 char *(*devnode)(struct device * , umode_t * ) ;
1598 void (*release)(struct device * ) ;
1599 struct dev_pm_ops const *pm ;
1600};
1601#line 474 "include/linux/device.h"
1602struct device_attribute {
1603 struct attribute attr ;
1604 ssize_t (*show)(struct device * , struct device_attribute * , char * ) ;
1605 ssize_t (*store)(struct device * , struct device_attribute * , char const * ,
1606 size_t ) ;
1607};
1608#line 557 "include/linux/device.h"
1609struct device_dma_parameters {
1610 unsigned int max_segment_size ;
1611 unsigned long segment_boundary_mask ;
1612};
1613#line 567
1614struct dma_coherent_mem;
1615#line 567 "include/linux/device.h"
1616struct device {
1617 struct device *parent ;
1618 struct device_private *p ;
1619 struct kobject kobj ;
1620 char const *init_name ;
1621 struct device_type const *type ;
1622 struct mutex mutex ;
1623 struct bus_type *bus ;
1624 struct device_driver *driver ;
1625 void *platform_data ;
1626 struct dev_pm_info power ;
1627 struct dev_pm_domain *pm_domain ;
1628 int numa_node ;
1629 u64 *dma_mask ;
1630 u64 coherent_dma_mask ;
1631 struct device_dma_parameters *dma_parms ;
1632 struct list_head dma_pools ;
1633 struct dma_coherent_mem *dma_mem ;
1634 struct dev_archdata archdata ;
1635 struct device_node *of_node ;
1636 dev_t devt ;
1637 u32 id ;
1638 spinlock_t devres_lock ;
1639 struct list_head devres_head ;
1640 struct klist_node knode_class ;
1641 struct class *class ;
1642 struct attribute_group const **groups ;
1643 void (*release)(struct device * ) ;
1644};
1645#line 681 "include/linux/device.h"
1646struct wakeup_source {
1647 char const *name ;
1648 struct list_head entry ;
1649 spinlock_t lock ;
1650 struct timer_list timer ;
1651 unsigned long timer_expires ;
1652 ktime_t total_time ;
1653 ktime_t max_time ;
1654 ktime_t last_time ;
1655 unsigned long event_count ;
1656 unsigned long active_count ;
1657 unsigned long relax_count ;
1658 unsigned long hit_count ;
1659 unsigned char active : 1 ;
1660};
1661#line 999 "include/linux/device.h"
1662struct dma_attrs {
1663 unsigned long flags[1U] ;
1664};
1665#line 67 "include/linux/dma-attrs.h"
1666enum dma_data_direction {
1667 DMA_BIDIRECTIONAL = 0,
1668 DMA_TO_DEVICE = 1,
1669 DMA_FROM_DEVICE = 2,
1670 DMA_NONE = 3
1671} ;
1672#line 74 "include/linux/dma-attrs.h"
1673struct dma_map_ops {
1674 void *(*alloc)(struct device * , size_t , dma_addr_t * , gfp_t , struct dma_attrs * ) ;
1675 void (*free)(struct device * , size_t , void * , dma_addr_t , struct dma_attrs * ) ;
1676 int (*mmap)(struct device * , struct vm_area_struct * , void * , dma_addr_t ,
1677 size_t , struct dma_attrs * ) ;
1678 dma_addr_t (*map_page)(struct device * , struct page * , unsigned long , size_t ,
1679 enum dma_data_direction , struct dma_attrs * ) ;
1680 void (*unmap_page)(struct device * , dma_addr_t , size_t , enum dma_data_direction ,
1681 struct dma_attrs * ) ;
1682 int (*map_sg)(struct device * , struct scatterlist * , int , enum dma_data_direction ,
1683 struct dma_attrs * ) ;
1684 void (*unmap_sg)(struct device * , struct scatterlist * , int , enum dma_data_direction ,
1685 struct dma_attrs * ) ;
1686 void (*sync_single_for_cpu)(struct device * , dma_addr_t , size_t , enum dma_data_direction ) ;
1687 void (*sync_single_for_device)(struct device * , dma_addr_t , size_t , enum dma_data_direction ) ;
1688 void (*sync_sg_for_cpu)(struct device * , struct scatterlist * , int , enum dma_data_direction ) ;
1689 void (*sync_sg_for_device)(struct device * , struct scatterlist * , int , enum dma_data_direction ) ;
1690 int (*mapping_error)(struct device * , dma_addr_t ) ;
1691 int (*dma_supported)(struct device * , u64 ) ;
1692 int (*set_dma_mask)(struct device * , u64 ) ;
1693 int is_phys ;
1694};
1695#line 93 "include/linux/capability.h"
1696struct kernel_cap_struct {
1697 __u32 cap[2U] ;
1698};
1699#line 96 "include/linux/capability.h"
1700typedef struct kernel_cap_struct kernel_cap_t;
1701#line 104
1702struct dentry;
1703#line 104
1704struct dentry;
1705#line 105
1706struct user_namespace;
1707#line 105
1708struct user_namespace;
1709#line 7 "include/asm-generic/cputime.h"
1710typedef unsigned long cputime_t;
1711#line 98 "include/linux/sem.h"
1712struct sem_undo_list;
1713#line 98 "include/linux/sem.h"
1714struct sysv_sem {
1715 struct sem_undo_list *undo_list ;
1716};
1717#line 107
1718struct siginfo;
1719#line 107
1720struct siginfo;
1721#line 32 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/signal.h"
1722struct __anonstruct_sigset_t_147 {
1723 unsigned long sig[1U] ;
1724};
1725#line 32 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/signal.h"
1726typedef struct __anonstruct_sigset_t_147 sigset_t;
1727#line 17 "include/asm-generic/signal-defs.h"
1728typedef void __signalfn_t(int );
1729#line 18 "include/asm-generic/signal-defs.h"
1730typedef __signalfn_t *__sighandler_t;
1731#line 20 "include/asm-generic/signal-defs.h"
1732typedef void __restorefn_t(void);
1733#line 21 "include/asm-generic/signal-defs.h"
1734typedef __restorefn_t *__sigrestore_t;
1735#line 126 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/signal.h"
1736struct sigaction {
1737 __sighandler_t sa_handler ;
1738 unsigned long sa_flags ;
1739 __sigrestore_t sa_restorer ;
1740 sigset_t sa_mask ;
1741};
1742#line 173 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/signal.h"
1743struct k_sigaction {
1744 struct sigaction sa ;
1745};
1746#line 185 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/signal.h"
1747union sigval {
1748 int sival_int ;
1749 void *sival_ptr ;
1750};
1751#line 10 "include/asm-generic/siginfo.h"
1752typedef union sigval sigval_t;
1753#line 11 "include/asm-generic/siginfo.h"
1754struct __anonstruct__kill_149 {
1755 __kernel_pid_t _pid ;
1756 __kernel_uid32_t _uid ;
1757};
1758#line 11 "include/asm-generic/siginfo.h"
1759struct __anonstruct__timer_150 {
1760 __kernel_timer_t _tid ;
1761 int _overrun ;
1762 char _pad[0U] ;
1763 sigval_t _sigval ;
1764 int _sys_private ;
1765};
1766#line 11 "include/asm-generic/siginfo.h"
1767struct __anonstruct__rt_151 {
1768 __kernel_pid_t _pid ;
1769 __kernel_uid32_t _uid ;
1770 sigval_t _sigval ;
1771};
1772#line 11 "include/asm-generic/siginfo.h"
1773struct __anonstruct__sigchld_152 {
1774 __kernel_pid_t _pid ;
1775 __kernel_uid32_t _uid ;
1776 int _status ;
1777 __kernel_clock_t _utime ;
1778 __kernel_clock_t _stime ;
1779};
1780#line 11 "include/asm-generic/siginfo.h"
1781struct __anonstruct__sigfault_153 {
1782 void *_addr ;
1783 short _addr_lsb ;
1784};
1785#line 11 "include/asm-generic/siginfo.h"
1786struct __anonstruct__sigpoll_154 {
1787 long _band ;
1788 int _fd ;
1789};
1790#line 11 "include/asm-generic/siginfo.h"
1791union __anonunion__sifields_148 {
1792 int _pad[28U] ;
1793 struct __anonstruct__kill_149 _kill ;
1794 struct __anonstruct__timer_150 _timer ;
1795 struct __anonstruct__rt_151 _rt ;
1796 struct __anonstruct__sigchld_152 _sigchld ;
1797 struct __anonstruct__sigfault_153 _sigfault ;
1798 struct __anonstruct__sigpoll_154 _sigpoll ;
1799};
1800#line 11 "include/asm-generic/siginfo.h"
1801struct siginfo {
1802 int si_signo ;
1803 int si_errno ;
1804 int si_code ;
1805 union __anonunion__sifields_148 _sifields ;
1806};
1807#line 102 "include/asm-generic/siginfo.h"
1808typedef struct siginfo siginfo_t;
1809#line 24 "include/linux/signal.h"
1810struct sigpending {
1811 struct list_head list ;
1812 sigset_t signal ;
1813};
1814#line 388
1815enum pid_type {
1816 PIDTYPE_PID = 0,
1817 PIDTYPE_PGID = 1,
1818 PIDTYPE_SID = 2,
1819 PIDTYPE_MAX = 3
1820} ;
1821#line 395
1822struct pid_namespace;
1823#line 395 "include/linux/signal.h"
1824struct upid {
1825 int nr ;
1826 struct pid_namespace *ns ;
1827 struct hlist_node pid_chain ;
1828};
1829#line 56 "include/linux/pid.h"
1830struct pid {
1831 atomic_t count ;
1832 unsigned int level ;
1833 struct hlist_head tasks[3U] ;
1834 struct rcu_head rcu ;
1835 struct upid numbers[1U] ;
1836};
1837#line 68 "include/linux/pid.h"
1838struct pid_link {
1839 struct hlist_node node ;
1840 struct pid *pid ;
1841};
1842#line 175 "include/linux/pid.h"
1843struct percpu_counter {
1844 raw_spinlock_t lock ;
1845 s64 count ;
1846 struct list_head list ;
1847 s32 *counters ;
1848};
1849#line 45 "include/linux/proportions.h"
1850struct prop_local_percpu {
1851 struct percpu_counter events ;
1852 int shift ;
1853 unsigned long period ;
1854 raw_spinlock_t lock ;
1855};
1856#line 10 "include/linux/seccomp.h"
1857struct __anonstruct_seccomp_t_157 {
1858 int mode ;
1859};
1860#line 10 "include/linux/seccomp.h"
1861typedef struct __anonstruct_seccomp_t_157 seccomp_t;
1862#line 427 "include/linux/rculist.h"
1863struct plist_head {
1864 struct list_head node_list ;
1865};
1866#line 84 "include/linux/plist.h"
1867struct plist_node {
1868 int prio ;
1869 struct list_head prio_list ;
1870 struct list_head node_list ;
1871};
1872#line 38 "include/linux/rtmutex.h"
1873struct rt_mutex_waiter;
1874#line 38
1875struct rt_mutex_waiter;
1876#line 41 "include/linux/resource.h"
1877struct rlimit {
1878 unsigned long rlim_cur ;
1879 unsigned long rlim_max ;
1880};
1881#line 85 "include/linux/resource.h"
1882struct timerqueue_node {
1883 struct rb_node node ;
1884 ktime_t expires ;
1885};
1886#line 12 "include/linux/timerqueue.h"
1887struct timerqueue_head {
1888 struct rb_root head ;
1889 struct timerqueue_node *next ;
1890};
1891#line 50
1892struct hrtimer_clock_base;
1893#line 50
1894struct hrtimer_clock_base;
1895#line 51
1896struct hrtimer_cpu_base;
1897#line 51
1898struct hrtimer_cpu_base;
1899#line 60
1900enum hrtimer_restart {
1901 HRTIMER_NORESTART = 0,
1902 HRTIMER_RESTART = 1
1903} ;
1904#line 65 "include/linux/timerqueue.h"
1905struct hrtimer {
1906 struct timerqueue_node node ;
1907 ktime_t _softexpires ;
1908 enum hrtimer_restart (*function)(struct hrtimer * ) ;
1909 struct hrtimer_clock_base *base ;
1910 unsigned long state ;
1911 int start_pid ;
1912 void *start_site ;
1913 char start_comm[16U] ;
1914};
1915#line 132 "include/linux/hrtimer.h"
1916struct hrtimer_clock_base {
1917 struct hrtimer_cpu_base *cpu_base ;
1918 int index ;
1919 clockid_t clockid ;
1920 struct timerqueue_head active ;
1921 ktime_t resolution ;
1922 ktime_t (*get_time)(void) ;
1923 ktime_t softirq_time ;
1924 ktime_t offset ;
1925};
1926#line 162 "include/linux/hrtimer.h"
1927struct hrtimer_cpu_base {
1928 raw_spinlock_t lock ;
1929 unsigned long active_bases ;
1930 ktime_t expires_next ;
1931 int hres_active ;
1932 int hang_detected ;
1933 unsigned long nr_events ;
1934 unsigned long nr_retries ;
1935 unsigned long nr_hangs ;
1936 ktime_t max_hang_time ;
1937 struct hrtimer_clock_base clock_base[3U] ;
1938};
1939#line 452 "include/linux/hrtimer.h"
1940struct task_io_accounting {
1941 u64 rchar ;
1942 u64 wchar ;
1943 u64 syscr ;
1944 u64 syscw ;
1945 u64 read_bytes ;
1946 u64 write_bytes ;
1947 u64 cancelled_write_bytes ;
1948};
1949#line 45 "include/linux/task_io_accounting.h"
1950struct latency_record {
1951 unsigned long backtrace[12U] ;
1952 unsigned int count ;
1953 unsigned long time ;
1954 unsigned long max ;
1955};
1956#line 29 "include/linux/key.h"
1957typedef int32_t key_serial_t;
1958#line 32 "include/linux/key.h"
1959typedef uint32_t key_perm_t;
1960#line 33
1961struct key;
1962#line 33
1963struct key;
1964#line 34
1965struct signal_struct;
1966#line 34
1967struct signal_struct;
1968#line 35
1969struct key_type;
1970#line 35
1971struct key_type;
1972#line 37
1973struct keyring_list;
1974#line 37
1975struct keyring_list;
1976#line 115
1977struct key_user;
1978#line 115 "include/linux/key.h"
1979union __anonunion_ldv_19571_158 {
1980 time_t expiry ;
1981 time_t revoked_at ;
1982};
1983#line 115 "include/linux/key.h"
1984union __anonunion_type_data_159 {
1985 struct list_head link ;
1986 unsigned long x[2U] ;
1987 void *p[2U] ;
1988 int reject_error ;
1989};
1990#line 115 "include/linux/key.h"
1991union __anonunion_payload_160 {
1992 unsigned long value ;
1993 void *rcudata ;
1994 void *data ;
1995 struct keyring_list *subscriptions ;
1996};
1997#line 115 "include/linux/key.h"
1998struct key {
1999 atomic_t usage ;
2000 key_serial_t serial ;
2001 struct rb_node serial_node ;
2002 struct key_type *type ;
2003 struct rw_semaphore sem ;
2004 struct key_user *user ;
2005 void *security ;
2006 union __anonunion_ldv_19571_158 ldv_19571 ;
2007 uid_t uid ;
2008 gid_t gid ;
2009 key_perm_t perm ;
2010 unsigned short quotalen ;
2011 unsigned short datalen ;
2012 unsigned long flags ;
2013 char *description ;
2014 union __anonunion_type_data_159 type_data ;
2015 union __anonunion_payload_160 payload ;
2016};
2017#line 316
2018struct audit_context;
2019#line 316
2020struct audit_context;
2021#line 27 "include/linux/selinux.h"
2022struct group_info {
2023 atomic_t usage ;
2024 int ngroups ;
2025 int nblocks ;
2026 gid_t small_block[32U] ;
2027 gid_t *blocks[0U] ;
2028};
2029#line 77 "include/linux/cred.h"
2030struct thread_group_cred {
2031 atomic_t usage ;
2032 pid_t tgid ;
2033 spinlock_t lock ;
2034 struct key *session_keyring ;
2035 struct key *process_keyring ;
2036 struct rcu_head rcu ;
2037};
2038#line 91 "include/linux/cred.h"
2039struct cred {
2040 atomic_t usage ;
2041 atomic_t subscribers ;
2042 void *put_addr ;
2043 unsigned int magic ;
2044 uid_t uid ;
2045 gid_t gid ;
2046 uid_t suid ;
2047 gid_t sgid ;
2048 uid_t euid ;
2049 gid_t egid ;
2050 uid_t fsuid ;
2051 gid_t fsgid ;
2052 unsigned int securebits ;
2053 kernel_cap_t cap_inheritable ;
2054 kernel_cap_t cap_permitted ;
2055 kernel_cap_t cap_effective ;
2056 kernel_cap_t cap_bset ;
2057 unsigned char jit_keyring ;
2058 struct key *thread_keyring ;
2059 struct key *request_key_auth ;
2060 struct thread_group_cred *tgcred ;
2061 void *security ;
2062 struct user_struct *user ;
2063 struct user_namespace *user_ns ;
2064 struct group_info *group_info ;
2065 struct rcu_head rcu ;
2066};
2067#line 264
2068struct llist_node;
2069#line 64 "include/linux/llist.h"
2070struct llist_node {
2071 struct llist_node *next ;
2072};
2073#line 185
2074struct futex_pi_state;
2075#line 185
2076struct futex_pi_state;
2077#line 186
2078struct robust_list_head;
2079#line 186
2080struct robust_list_head;
2081#line 187
2082struct bio_list;
2083#line 187
2084struct bio_list;
2085#line 188
2086struct fs_struct;
2087#line 188
2088struct fs_struct;
2089#line 189
2090struct perf_event_context;
2091#line 189
2092struct perf_event_context;
2093#line 190
2094struct blk_plug;
2095#line 190
2096struct blk_plug;
2097#line 149 "include/linux/sched.h"
2098struct cfs_rq;
2099#line 149
2100struct cfs_rq;
2101#line 44 "include/linux/aio_abi.h"
2102struct io_event {
2103 __u64 data ;
2104 __u64 obj ;
2105 __s64 res ;
2106 __s64 res2 ;
2107};
2108#line 106 "include/linux/aio_abi.h"
2109struct iovec {
2110 void *iov_base ;
2111 __kernel_size_t iov_len ;
2112};
2113#line 54 "include/linux/uio.h"
2114struct kioctx;
2115#line 54
2116struct kioctx;
2117#line 55 "include/linux/uio.h"
2118union __anonunion_ki_obj_161 {
2119 void *user ;
2120 struct task_struct *tsk ;
2121};
2122#line 55
2123struct eventfd_ctx;
2124#line 55 "include/linux/uio.h"
2125struct kiocb {
2126 struct list_head ki_run_list ;
2127 unsigned long ki_flags ;
2128 int ki_users ;
2129 unsigned int ki_key ;
2130 struct file *ki_filp ;
2131 struct kioctx *ki_ctx ;
2132 int (*ki_cancel)(struct kiocb * , struct io_event * ) ;
2133 ssize_t (*ki_retry)(struct kiocb * ) ;
2134 void (*ki_dtor)(struct kiocb * ) ;
2135 union __anonunion_ki_obj_161 ki_obj ;
2136 __u64 ki_user_data ;
2137 loff_t ki_pos ;
2138 void *private ;
2139 unsigned short ki_opcode ;
2140 size_t ki_nbytes ;
2141 char *ki_buf ;
2142 size_t ki_left ;
2143 struct iovec ki_inline_vec ;
2144 struct iovec *ki_iovec ;
2145 unsigned long ki_nr_segs ;
2146 unsigned long ki_cur_seg ;
2147 struct list_head ki_list ;
2148 struct list_head ki_batch ;
2149 struct eventfd_ctx *ki_eventfd ;
2150};
2151#line 162 "include/linux/aio.h"
2152struct aio_ring_info {
2153 unsigned long mmap_base ;
2154 unsigned long mmap_size ;
2155 struct page **ring_pages ;
2156 spinlock_t ring_lock ;
2157 long nr_pages ;
2158 unsigned int nr ;
2159 unsigned int tail ;
2160 struct page *internal_pages[8U] ;
2161};
2162#line 178 "include/linux/aio.h"
2163struct kioctx {
2164 atomic_t users ;
2165 int dead ;
2166 struct mm_struct *mm ;
2167 unsigned long user_id ;
2168 struct hlist_node list ;
2169 wait_queue_head_t wait ;
2170 spinlock_t ctx_lock ;
2171 int reqs_active ;
2172 struct list_head active_reqs ;
2173 struct list_head run_list ;
2174 unsigned int max_reqs ;
2175 struct aio_ring_info ring_info ;
2176 struct delayed_work wq ;
2177 struct rcu_head rcu_head ;
2178};
2179#line 406 "include/linux/sched.h"
2180struct sighand_struct {
2181 atomic_t count ;
2182 struct k_sigaction action[64U] ;
2183 spinlock_t siglock ;
2184 wait_queue_head_t signalfd_wqh ;
2185};
2186#line 449 "include/linux/sched.h"
2187struct pacct_struct {
2188 int ac_flag ;
2189 long ac_exitcode ;
2190 unsigned long ac_mem ;
2191 cputime_t ac_utime ;
2192 cputime_t ac_stime ;
2193 unsigned long ac_minflt ;
2194 unsigned long ac_majflt ;
2195};
2196#line 457 "include/linux/sched.h"
2197struct cpu_itimer {
2198 cputime_t expires ;
2199 cputime_t incr ;
2200 u32 error ;
2201 u32 incr_error ;
2202};
2203#line 464 "include/linux/sched.h"
2204struct task_cputime {
2205 cputime_t utime ;
2206 cputime_t stime ;
2207 unsigned long long sum_exec_runtime ;
2208};
2209#line 481 "include/linux/sched.h"
2210struct thread_group_cputimer {
2211 struct task_cputime cputime ;
2212 int running ;
2213 raw_spinlock_t lock ;
2214};
2215#line 517
2216struct autogroup;
2217#line 517
2218struct autogroup;
2219#line 518
2220struct tty_struct;
2221#line 518
2222struct taskstats;
2223#line 518
2224struct tty_audit_buf;
2225#line 518 "include/linux/sched.h"
2226struct signal_struct {
2227 atomic_t sigcnt ;
2228 atomic_t live ;
2229 int nr_threads ;
2230 wait_queue_head_t wait_chldexit ;
2231 struct task_struct *curr_target ;
2232 struct sigpending shared_pending ;
2233 int group_exit_code ;
2234 int notify_count ;
2235 struct task_struct *group_exit_task ;
2236 int group_stop_count ;
2237 unsigned int flags ;
2238 unsigned char is_child_subreaper : 1 ;
2239 unsigned char has_child_subreaper : 1 ;
2240 struct list_head posix_timers ;
2241 struct hrtimer real_timer ;
2242 struct pid *leader_pid ;
2243 ktime_t it_real_incr ;
2244 struct cpu_itimer it[2U] ;
2245 struct thread_group_cputimer cputimer ;
2246 struct task_cputime cputime_expires ;
2247 struct list_head cpu_timers[3U] ;
2248 struct pid *tty_old_pgrp ;
2249 int leader ;
2250 struct tty_struct *tty ;
2251 struct autogroup *autogroup ;
2252 cputime_t utime ;
2253 cputime_t stime ;
2254 cputime_t cutime ;
2255 cputime_t cstime ;
2256 cputime_t gtime ;
2257 cputime_t cgtime ;
2258 cputime_t prev_utime ;
2259 cputime_t prev_stime ;
2260 unsigned long nvcsw ;
2261 unsigned long nivcsw ;
2262 unsigned long cnvcsw ;
2263 unsigned long cnivcsw ;
2264 unsigned long min_flt ;
2265 unsigned long maj_flt ;
2266 unsigned long cmin_flt ;
2267 unsigned long cmaj_flt ;
2268 unsigned long inblock ;
2269 unsigned long oublock ;
2270 unsigned long cinblock ;
2271 unsigned long coublock ;
2272 unsigned long maxrss ;
2273 unsigned long cmaxrss ;
2274 struct task_io_accounting ioac ;
2275 unsigned long long sum_sched_runtime ;
2276 struct rlimit rlim[16U] ;
2277 struct pacct_struct pacct ;
2278 struct taskstats *stats ;
2279 unsigned int audit_tty ;
2280 struct tty_audit_buf *tty_audit_buf ;
2281 struct rw_semaphore group_rwsem ;
2282 int oom_adj ;
2283 int oom_score_adj ;
2284 int oom_score_adj_min ;
2285 struct mutex cred_guard_mutex ;
2286};
2287#line 699 "include/linux/sched.h"
2288struct user_struct {
2289 atomic_t __count ;
2290 atomic_t processes ;
2291 atomic_t files ;
2292 atomic_t sigpending ;
2293 atomic_t inotify_watches ;
2294 atomic_t inotify_devs ;
2295 atomic_t fanotify_listeners ;
2296 atomic_long_t epoll_watches ;
2297 unsigned long mq_bytes ;
2298 unsigned long locked_shm ;
2299 struct key *uid_keyring ;
2300 struct key *session_keyring ;
2301 struct hlist_node uidhash_node ;
2302 uid_t uid ;
2303 struct user_namespace *user_ns ;
2304 atomic_long_t locked_vm ;
2305};
2306#line 744
2307struct backing_dev_info;
2308#line 744
2309struct backing_dev_info;
2310#line 745
2311struct reclaim_state;
2312#line 745
2313struct reclaim_state;
2314#line 746 "include/linux/sched.h"
2315struct sched_info {
2316 unsigned long pcount ;
2317 unsigned long long run_delay ;
2318 unsigned long long last_arrival ;
2319 unsigned long long last_queued ;
2320};
2321#line 760 "include/linux/sched.h"
2322struct task_delay_info {
2323 spinlock_t lock ;
2324 unsigned int flags ;
2325 struct timespec blkio_start ;
2326 struct timespec blkio_end ;
2327 u64 blkio_delay ;
2328 u64 swapin_delay ;
2329 u32 blkio_count ;
2330 u32 swapin_count ;
2331 struct timespec freepages_start ;
2332 struct timespec freepages_end ;
2333 u64 freepages_delay ;
2334 u32 freepages_count ;
2335};
2336#line 1069
2337struct io_context;
2338#line 1069
2339struct io_context;
2340#line 1097
2341struct pipe_inode_info;
2342#line 1097
2343struct pipe_inode_info;
2344#line 1099
2345struct rq;
2346#line 1099
2347struct rq;
2348#line 1100 "include/linux/sched.h"
2349struct sched_class {
2350 struct sched_class const *next ;
2351 void (*enqueue_task)(struct rq * , struct task_struct * , int ) ;
2352 void (*dequeue_task)(struct rq * , struct task_struct * , int ) ;
2353 void (*yield_task)(struct rq * ) ;
2354 bool (*yield_to_task)(struct rq * , struct task_struct * , bool ) ;
2355 void (*check_preempt_curr)(struct rq * , struct task_struct * , int ) ;
2356 struct task_struct *(*pick_next_task)(struct rq * ) ;
2357 void (*put_prev_task)(struct rq * , struct task_struct * ) ;
2358 int (*select_task_rq)(struct task_struct * , int , int ) ;
2359 void (*pre_schedule)(struct rq * , struct task_struct * ) ;
2360 void (*post_schedule)(struct rq * ) ;
2361 void (*task_waking)(struct task_struct * ) ;
2362 void (*task_woken)(struct rq * , struct task_struct * ) ;
2363 void (*set_cpus_allowed)(struct task_struct * , struct cpumask const * ) ;
2364 void (*rq_online)(struct rq * ) ;
2365 void (*rq_offline)(struct rq * ) ;
2366 void (*set_curr_task)(struct rq * ) ;
2367 void (*task_tick)(struct rq * , struct task_struct * , int ) ;
2368 void (*task_fork)(struct task_struct * ) ;
2369 void (*switched_from)(struct rq * , struct task_struct * ) ;
2370 void (*switched_to)(struct rq * , struct task_struct * ) ;
2371 void (*prio_changed)(struct rq * , struct task_struct * , int ) ;
2372 unsigned int (*get_rr_interval)(struct rq * , struct task_struct * ) ;
2373 void (*task_move_group)(struct task_struct * , int ) ;
2374};
2375#line 1165 "include/linux/sched.h"
2376struct load_weight {
2377 unsigned long weight ;
2378 unsigned long inv_weight ;
2379};
2380#line 1170 "include/linux/sched.h"
2381struct sched_statistics {
2382 u64 wait_start ;
2383 u64 wait_max ;
2384 u64 wait_count ;
2385 u64 wait_sum ;
2386 u64 iowait_count ;
2387 u64 iowait_sum ;
2388 u64 sleep_start ;
2389 u64 sleep_max ;
2390 s64 sum_sleep_runtime ;
2391 u64 block_start ;
2392 u64 block_max ;
2393 u64 exec_max ;
2394 u64 slice_max ;
2395 u64 nr_migrations_cold ;
2396 u64 nr_failed_migrations_affine ;
2397 u64 nr_failed_migrations_running ;
2398 u64 nr_failed_migrations_hot ;
2399 u64 nr_forced_migrations ;
2400 u64 nr_wakeups ;
2401 u64 nr_wakeups_sync ;
2402 u64 nr_wakeups_migrate ;
2403 u64 nr_wakeups_local ;
2404 u64 nr_wakeups_remote ;
2405 u64 nr_wakeups_affine ;
2406 u64 nr_wakeups_affine_attempts ;
2407 u64 nr_wakeups_passive ;
2408 u64 nr_wakeups_idle ;
2409};
2410#line 1205 "include/linux/sched.h"
2411struct sched_entity {
2412 struct load_weight load ;
2413 struct rb_node run_node ;
2414 struct list_head group_node ;
2415 unsigned int on_rq ;
2416 u64 exec_start ;
2417 u64 sum_exec_runtime ;
2418 u64 vruntime ;
2419 u64 prev_sum_exec_runtime ;
2420 u64 nr_migrations ;
2421 struct sched_statistics statistics ;
2422 struct sched_entity *parent ;
2423 struct cfs_rq *cfs_rq ;
2424 struct cfs_rq *my_q ;
2425};
2426#line 1231
2427struct rt_rq;
2428#line 1231 "include/linux/sched.h"
2429struct sched_rt_entity {
2430 struct list_head run_list ;
2431 unsigned long timeout ;
2432 unsigned int time_slice ;
2433 int nr_cpus_allowed ;
2434 struct sched_rt_entity *back ;
2435 struct sched_rt_entity *parent ;
2436 struct rt_rq *rt_rq ;
2437 struct rt_rq *my_q ;
2438};
2439#line 1255
2440struct mem_cgroup;
2441#line 1255 "include/linux/sched.h"
2442struct memcg_batch_info {
2443 int do_batch ;
2444 struct mem_cgroup *memcg ;
2445 unsigned long nr_pages ;
2446 unsigned long memsw_nr_pages ;
2447};
2448#line 1616
2449struct files_struct;
2450#line 1616
2451struct css_set;
2452#line 1616
2453struct compat_robust_list_head;
2454#line 1616 "include/linux/sched.h"
2455struct task_struct {
2456 long volatile state ;
2457 void *stack ;
2458 atomic_t usage ;
2459 unsigned int flags ;
2460 unsigned int ptrace ;
2461 struct llist_node wake_entry ;
2462 int on_cpu ;
2463 int on_rq ;
2464 int prio ;
2465 int static_prio ;
2466 int normal_prio ;
2467 unsigned int rt_priority ;
2468 struct sched_class const *sched_class ;
2469 struct sched_entity se ;
2470 struct sched_rt_entity rt ;
2471 struct hlist_head preempt_notifiers ;
2472 unsigned char fpu_counter ;
2473 unsigned int policy ;
2474 cpumask_t cpus_allowed ;
2475 struct sched_info sched_info ;
2476 struct list_head tasks ;
2477 struct plist_node pushable_tasks ;
2478 struct mm_struct *mm ;
2479 struct mm_struct *active_mm ;
2480 unsigned char brk_randomized : 1 ;
2481 int exit_state ;
2482 int exit_code ;
2483 int exit_signal ;
2484 int pdeath_signal ;
2485 unsigned int jobctl ;
2486 unsigned int personality ;
2487 unsigned char did_exec : 1 ;
2488 unsigned char in_execve : 1 ;
2489 unsigned char in_iowait : 1 ;
2490 unsigned char sched_reset_on_fork : 1 ;
2491 unsigned char sched_contributes_to_load : 1 ;
2492 unsigned char irq_thread : 1 ;
2493 pid_t pid ;
2494 pid_t tgid ;
2495 unsigned long stack_canary ;
2496 struct task_struct *real_parent ;
2497 struct task_struct *parent ;
2498 struct list_head children ;
2499 struct list_head sibling ;
2500 struct task_struct *group_leader ;
2501 struct list_head ptraced ;
2502 struct list_head ptrace_entry ;
2503 struct pid_link pids[3U] ;
2504 struct list_head thread_group ;
2505 struct completion *vfork_done ;
2506 int *set_child_tid ;
2507 int *clear_child_tid ;
2508 cputime_t utime ;
2509 cputime_t stime ;
2510 cputime_t utimescaled ;
2511 cputime_t stimescaled ;
2512 cputime_t gtime ;
2513 cputime_t prev_utime ;
2514 cputime_t prev_stime ;
2515 unsigned long nvcsw ;
2516 unsigned long nivcsw ;
2517 struct timespec start_time ;
2518 struct timespec real_start_time ;
2519 unsigned long min_flt ;
2520 unsigned long maj_flt ;
2521 struct task_cputime cputime_expires ;
2522 struct list_head cpu_timers[3U] ;
2523 struct cred const *real_cred ;
2524 struct cred const *cred ;
2525 struct cred *replacement_session_keyring ;
2526 char comm[16U] ;
2527 int link_count ;
2528 int total_link_count ;
2529 struct sysv_sem sysvsem ;
2530 unsigned long last_switch_count ;
2531 struct thread_struct thread ;
2532 struct fs_struct *fs ;
2533 struct files_struct *files ;
2534 struct nsproxy *nsproxy ;
2535 struct signal_struct *signal ;
2536 struct sighand_struct *sighand ;
2537 sigset_t blocked ;
2538 sigset_t real_blocked ;
2539 sigset_t saved_sigmask ;
2540 struct sigpending pending ;
2541 unsigned long sas_ss_sp ;
2542 size_t sas_ss_size ;
2543 int (*notifier)(void * ) ;
2544 void *notifier_data ;
2545 sigset_t *notifier_mask ;
2546 struct audit_context *audit_context ;
2547 uid_t loginuid ;
2548 unsigned int sessionid ;
2549 seccomp_t seccomp ;
2550 u32 parent_exec_id ;
2551 u32 self_exec_id ;
2552 spinlock_t alloc_lock ;
2553 raw_spinlock_t pi_lock ;
2554 struct plist_head pi_waiters ;
2555 struct rt_mutex_waiter *pi_blocked_on ;
2556 struct mutex_waiter *blocked_on ;
2557 unsigned int irq_events ;
2558 unsigned long hardirq_enable_ip ;
2559 unsigned long hardirq_disable_ip ;
2560 unsigned int hardirq_enable_event ;
2561 unsigned int hardirq_disable_event ;
2562 int hardirqs_enabled ;
2563 int hardirq_context ;
2564 unsigned long softirq_disable_ip ;
2565 unsigned long softirq_enable_ip ;
2566 unsigned int softirq_disable_event ;
2567 unsigned int softirq_enable_event ;
2568 int softirqs_enabled ;
2569 int softirq_context ;
2570 u64 curr_chain_key ;
2571 int lockdep_depth ;
2572 unsigned int lockdep_recursion ;
2573 struct held_lock held_locks[48U] ;
2574 gfp_t lockdep_reclaim_gfp ;
2575 void *journal_info ;
2576 struct bio_list *bio_list ;
2577 struct blk_plug *plug ;
2578 struct reclaim_state *reclaim_state ;
2579 struct backing_dev_info *backing_dev_info ;
2580 struct io_context *io_context ;
2581 unsigned long ptrace_message ;
2582 siginfo_t *last_siginfo ;
2583 struct task_io_accounting ioac ;
2584 u64 acct_rss_mem1 ;
2585 u64 acct_vm_mem1 ;
2586 cputime_t acct_timexpd ;
2587 nodemask_t mems_allowed ;
2588 seqcount_t mems_allowed_seq ;
2589 int cpuset_mem_spread_rotor ;
2590 int cpuset_slab_spread_rotor ;
2591 struct css_set *cgroups ;
2592 struct list_head cg_list ;
2593 struct robust_list_head *robust_list ;
2594 struct compat_robust_list_head *compat_robust_list ;
2595 struct list_head pi_state_list ;
2596 struct futex_pi_state *pi_state_cache ;
2597 struct perf_event_context *perf_event_ctxp[2U] ;
2598 struct mutex perf_event_mutex ;
2599 struct list_head perf_event_list ;
2600 struct mempolicy *mempolicy ;
2601 short il_next ;
2602 short pref_node_fork ;
2603 struct rcu_head rcu ;
2604 struct pipe_inode_info *splice_pipe ;
2605 struct task_delay_info *delays ;
2606 int make_it_fail ;
2607 int nr_dirtied ;
2608 int nr_dirtied_pause ;
2609 unsigned long dirty_paused_when ;
2610 int latency_record_count ;
2611 struct latency_record latency_record[32U] ;
2612 unsigned long timer_slack_ns ;
2613 unsigned long default_timer_slack_ns ;
2614 struct list_head *scm_work_list ;
2615 unsigned long trace ;
2616 unsigned long trace_recursion ;
2617 struct memcg_batch_info memcg_batch ;
2618 atomic_t ptrace_bp_refcnt ;
2619};
2620#line 52 "include/linux/genhd.h"
2621struct bio;
2622#line 52
2623struct bio;
2624#line 53
2625struct bio_integrity_payload;
2626#line 53
2627struct bio_integrity_payload;
2628#line 54
2629struct block_device;
2630#line 54
2631struct block_device;
2632#line 17 "include/linux/blk_types.h"
2633typedef void bio_end_io_t(struct bio * , int );
2634#line 18 "include/linux/blk_types.h"
2635typedef void bio_destructor_t(struct bio * );
2636#line 19 "include/linux/blk_types.h"
2637struct bio_vec {
2638 struct page *bv_page ;
2639 unsigned int bv_len ;
2640 unsigned int bv_offset ;
2641};
2642#line 28 "include/linux/blk_types.h"
2643struct bio {
2644 sector_t bi_sector ;
2645 struct bio *bi_next ;
2646 struct block_device *bi_bdev ;
2647 unsigned long bi_flags ;
2648 unsigned long bi_rw ;
2649 unsigned short bi_vcnt ;
2650 unsigned short bi_idx ;
2651 unsigned int bi_phys_segments ;
2652 unsigned int bi_size ;
2653 unsigned int bi_seg_front_size ;
2654 unsigned int bi_seg_back_size ;
2655 unsigned int bi_max_vecs ;
2656 atomic_t bi_cnt ;
2657 struct bio_vec *bi_io_vec ;
2658 bio_end_io_t *bi_end_io ;
2659 void *bi_private ;
2660 struct bio_integrity_payload *bi_integrity ;
2661 bio_destructor_t *bi_destructor ;
2662 struct bio_vec bi_inline_vecs[0U] ;
2663};
2664#line 57 "include/linux/fs.h"
2665struct hlist_bl_node;
2666#line 57 "include/linux/fs.h"
2667struct hlist_bl_head {
2668 struct hlist_bl_node *first ;
2669};
2670#line 36 "include/linux/list_bl.h"
2671struct hlist_bl_node {
2672 struct hlist_bl_node *next ;
2673 struct hlist_bl_node **pprev ;
2674};
2675#line 114 "include/linux/rculist_bl.h"
2676struct nameidata;
2677#line 114
2678struct nameidata;
2679#line 115
2680struct path;
2681#line 115
2682struct path;
2683#line 116
2684struct vfsmount;
2685#line 116
2686struct vfsmount;
2687#line 117 "include/linux/rculist_bl.h"
2688struct qstr {
2689 unsigned int hash ;
2690 unsigned int len ;
2691 unsigned char const *name ;
2692};
2693#line 72 "include/linux/dcache.h"
2694struct dentry_operations;
2695#line 72
2696struct super_block;
2697#line 72 "include/linux/dcache.h"
2698union __anonunion_d_u_163 {
2699 struct list_head d_child ;
2700 struct rcu_head d_rcu ;
2701};
2702#line 72 "include/linux/dcache.h"
2703struct dentry {
2704 unsigned int d_flags ;
2705 seqcount_t d_seq ;
2706 struct hlist_bl_node d_hash ;
2707 struct dentry *d_parent ;
2708 struct qstr d_name ;
2709 struct inode *d_inode ;
2710 unsigned char d_iname[32U] ;
2711 unsigned int d_count ;
2712 spinlock_t d_lock ;
2713 struct dentry_operations const *d_op ;
2714 struct super_block *d_sb ;
2715 unsigned long d_time ;
2716 void *d_fsdata ;
2717 struct list_head d_lru ;
2718 union __anonunion_d_u_163 d_u ;
2719 struct list_head d_subdirs ;
2720 struct list_head d_alias ;
2721};
2722#line 123 "include/linux/dcache.h"
2723struct dentry_operations {
2724 int (*d_revalidate)(struct dentry * , struct nameidata * ) ;
2725 int (*d_hash)(struct dentry const * , struct inode const * , struct qstr * ) ;
2726 int (*d_compare)(struct dentry const * , struct inode const * , struct dentry const * ,
2727 struct inode const * , unsigned int , char const * , struct qstr const * ) ;
2728 int (*d_delete)(struct dentry const * ) ;
2729 void (*d_release)(struct dentry * ) ;
2730 void (*d_prune)(struct dentry * ) ;
2731 void (*d_iput)(struct dentry * , struct inode * ) ;
2732 char *(*d_dname)(struct dentry * , char * , int ) ;
2733 struct vfsmount *(*d_automount)(struct path * ) ;
2734 int (*d_manage)(struct dentry * , bool ) ;
2735};
2736#line 402 "include/linux/dcache.h"
2737struct path {
2738 struct vfsmount *mnt ;
2739 struct dentry *dentry ;
2740};
2741#line 58 "include/linux/radix-tree.h"
2742struct radix_tree_node;
2743#line 58 "include/linux/radix-tree.h"
2744struct radix_tree_root {
2745 unsigned int height ;
2746 gfp_t gfp_mask ;
2747 struct radix_tree_node *rnode ;
2748};
2749#line 45 "include/linux/semaphore.h"
2750struct fiemap_extent {
2751 __u64 fe_logical ;
2752 __u64 fe_physical ;
2753 __u64 fe_length ;
2754 __u64 fe_reserved64[2U] ;
2755 __u32 fe_flags ;
2756 __u32 fe_reserved[3U] ;
2757};
2758#line 38 "include/linux/fiemap.h"
2759enum migrate_mode {
2760 MIGRATE_ASYNC = 0,
2761 MIGRATE_SYNC_LIGHT = 1,
2762 MIGRATE_SYNC = 2
2763} ;
2764#line 44
2765struct export_operations;
2766#line 44
2767struct export_operations;
2768#line 45
2769struct hd_geometry;
2770#line 45
2771struct hd_geometry;
2772#line 46
2773struct poll_table_struct;
2774#line 46
2775struct poll_table_struct;
2776#line 47
2777struct kstatfs;
2778#line 47
2779struct kstatfs;
2780#line 435 "include/linux/fs.h"
2781struct iattr {
2782 unsigned int ia_valid ;
2783 umode_t ia_mode ;
2784 uid_t ia_uid ;
2785 gid_t ia_gid ;
2786 loff_t ia_size ;
2787 struct timespec ia_atime ;
2788 struct timespec ia_mtime ;
2789 struct timespec ia_ctime ;
2790 struct file *ia_file ;
2791};
2792#line 119 "include/linux/quota.h"
2793struct if_dqinfo {
2794 __u64 dqi_bgrace ;
2795 __u64 dqi_igrace ;
2796 __u32 dqi_flags ;
2797 __u32 dqi_valid ;
2798};
2799#line 152 "include/linux/quota.h"
2800struct fs_disk_quota {
2801 __s8 d_version ;
2802 __s8 d_flags ;
2803 __u16 d_fieldmask ;
2804 __u32 d_id ;
2805 __u64 d_blk_hardlimit ;
2806 __u64 d_blk_softlimit ;
2807 __u64 d_ino_hardlimit ;
2808 __u64 d_ino_softlimit ;
2809 __u64 d_bcount ;
2810 __u64 d_icount ;
2811 __s32 d_itimer ;
2812 __s32 d_btimer ;
2813 __u16 d_iwarns ;
2814 __u16 d_bwarns ;
2815 __s32 d_padding2 ;
2816 __u64 d_rtb_hardlimit ;
2817 __u64 d_rtb_softlimit ;
2818 __u64 d_rtbcount ;
2819 __s32 d_rtbtimer ;
2820 __u16 d_rtbwarns ;
2821 __s16 d_padding3 ;
2822 char d_padding4[8U] ;
2823};
2824#line 75 "include/linux/dqblk_xfs.h"
2825struct fs_qfilestat {
2826 __u64 qfs_ino ;
2827 __u64 qfs_nblks ;
2828 __u32 qfs_nextents ;
2829};
2830#line 150 "include/linux/dqblk_xfs.h"
2831typedef struct fs_qfilestat fs_qfilestat_t;
2832#line 151 "include/linux/dqblk_xfs.h"
2833struct fs_quota_stat {
2834 __s8 qs_version ;
2835 __u16 qs_flags ;
2836 __s8 qs_pad ;
2837 fs_qfilestat_t qs_uquota ;
2838 fs_qfilestat_t qs_gquota ;
2839 __u32 qs_incoredqs ;
2840 __s32 qs_btimelimit ;
2841 __s32 qs_itimelimit ;
2842 __s32 qs_rtbtimelimit ;
2843 __u16 qs_bwarnlimit ;
2844 __u16 qs_iwarnlimit ;
2845};
2846#line 165
2847struct dquot;
2848#line 165
2849struct dquot;
2850#line 185 "include/linux/quota.h"
2851typedef __kernel_uid32_t qid_t;
2852#line 186 "include/linux/quota.h"
2853typedef long long qsize_t;
2854#line 189 "include/linux/quota.h"
2855struct mem_dqblk {
2856 qsize_t dqb_bhardlimit ;
2857 qsize_t dqb_bsoftlimit ;
2858 qsize_t dqb_curspace ;
2859 qsize_t dqb_rsvspace ;
2860 qsize_t dqb_ihardlimit ;
2861 qsize_t dqb_isoftlimit ;
2862 qsize_t dqb_curinodes ;
2863 time_t dqb_btime ;
2864 time_t dqb_itime ;
2865};
2866#line 211
2867struct quota_format_type;
2868#line 211
2869struct quota_format_type;
2870#line 212 "include/linux/quota.h"
2871struct mem_dqinfo {
2872 struct quota_format_type *dqi_format ;
2873 int dqi_fmt_id ;
2874 struct list_head dqi_dirty_list ;
2875 unsigned long dqi_flags ;
2876 unsigned int dqi_bgrace ;
2877 unsigned int dqi_igrace ;
2878 qsize_t dqi_maxblimit ;
2879 qsize_t dqi_maxilimit ;
2880 void *dqi_priv ;
2881};
2882#line 275 "include/linux/quota.h"
2883struct dquot {
2884 struct hlist_node dq_hash ;
2885 struct list_head dq_inuse ;
2886 struct list_head dq_free ;
2887 struct list_head dq_dirty ;
2888 struct mutex dq_lock ;
2889 atomic_t dq_count ;
2890 wait_queue_head_t dq_wait_unused ;
2891 struct super_block *dq_sb ;
2892 unsigned int dq_id ;
2893 loff_t dq_off ;
2894 unsigned long dq_flags ;
2895 short dq_type ;
2896 struct mem_dqblk dq_dqb ;
2897};
2898#line 303 "include/linux/quota.h"
2899struct quota_format_ops {
2900 int (*check_quota_file)(struct super_block * , int ) ;
2901 int (*read_file_info)(struct super_block * , int ) ;
2902 int (*write_file_info)(struct super_block * , int ) ;
2903 int (*free_file_info)(struct super_block * , int ) ;
2904 int (*read_dqblk)(struct dquot * ) ;
2905 int (*commit_dqblk)(struct dquot * ) ;
2906 int (*release_dqblk)(struct dquot * ) ;
2907};
2908#line 314 "include/linux/quota.h"
2909struct dquot_operations {
2910 int (*write_dquot)(struct dquot * ) ;
2911 struct dquot *(*alloc_dquot)(struct super_block * , int ) ;
2912 void (*destroy_dquot)(struct dquot * ) ;
2913 int (*acquire_dquot)(struct dquot * ) ;
2914 int (*release_dquot)(struct dquot * ) ;
2915 int (*mark_dirty)(struct dquot * ) ;
2916 int (*write_info)(struct super_block * , int ) ;
2917 qsize_t *(*get_reserved_space)(struct inode * ) ;
2918};
2919#line 328 "include/linux/quota.h"
2920struct quotactl_ops {
2921 int (*quota_on)(struct super_block * , int , int , struct path * ) ;
2922 int (*quota_on_meta)(struct super_block * , int , int ) ;
2923 int (*quota_off)(struct super_block * , int ) ;
2924 int (*quota_sync)(struct super_block * , int , int ) ;
2925 int (*get_info)(struct super_block * , int , struct if_dqinfo * ) ;
2926 int (*set_info)(struct super_block * , int , struct if_dqinfo * ) ;
2927 int (*get_dqblk)(struct super_block * , int , qid_t , struct fs_disk_quota * ) ;
2928 int (*set_dqblk)(struct super_block * , int , qid_t , struct fs_disk_quota * ) ;
2929 int (*get_xstate)(struct super_block * , struct fs_quota_stat * ) ;
2930 int (*set_xstate)(struct super_block * , unsigned int , int ) ;
2931};
2932#line 344 "include/linux/quota.h"
2933struct quota_format_type {
2934 int qf_fmt_id ;
2935 struct quota_format_ops const *qf_ops ;
2936 struct module *qf_owner ;
2937 struct quota_format_type *qf_next ;
2938};
2939#line 390 "include/linux/quota.h"
2940struct quota_info {
2941 unsigned int flags ;
2942 struct mutex dqio_mutex ;
2943 struct mutex dqonoff_mutex ;
2944 struct rw_semaphore dqptr_sem ;
2945 struct inode *files[2U] ;
2946 struct mem_dqinfo info[2U] ;
2947 struct quota_format_ops const *ops[2U] ;
2948};
2949#line 585 "include/linux/fs.h"
2950union __anonunion_arg_165 {
2951 char *buf ;
2952 void *data ;
2953};
2954#line 585 "include/linux/fs.h"
2955struct __anonstruct_read_descriptor_t_164 {
2956 size_t written ;
2957 size_t count ;
2958 union __anonunion_arg_165 arg ;
2959 int error ;
2960};
2961#line 585 "include/linux/fs.h"
2962typedef struct __anonstruct_read_descriptor_t_164 read_descriptor_t;
2963#line 588 "include/linux/fs.h"
2964struct address_space_operations {
2965 int (*writepage)(struct page * , struct writeback_control * ) ;
2966 int (*readpage)(struct file * , struct page * ) ;
2967 int (*writepages)(struct address_space * , struct writeback_control * ) ;
2968 int (*set_page_dirty)(struct page * ) ;
2969 int (*readpages)(struct file * , struct address_space * , struct list_head * ,
2970 unsigned int ) ;
2971 int (*write_begin)(struct file * , struct address_space * , loff_t , unsigned int ,
2972 unsigned int , struct page ** , void ** ) ;
2973 int (*write_end)(struct file * , struct address_space * , loff_t , unsigned int ,
2974 unsigned int , struct page * , void * ) ;
2975 sector_t (*bmap)(struct address_space * , sector_t ) ;
2976 void (*invalidatepage)(struct page * , unsigned long ) ;
2977 int (*releasepage)(struct page * , gfp_t ) ;
2978 void (*freepage)(struct page * ) ;
2979 ssize_t (*direct_IO)(int , struct kiocb * , struct iovec const * , loff_t ,
2980 unsigned long ) ;
2981 int (*get_xip_mem)(struct address_space * , unsigned long , int , void ** , unsigned long * ) ;
2982 int (*migratepage)(struct address_space * , struct page * , struct page * , enum migrate_mode ) ;
2983 int (*launder_page)(struct page * ) ;
2984 int (*is_partially_uptodate)(struct page * , read_descriptor_t * , unsigned long ) ;
2985 int (*error_remove_page)(struct address_space * , struct page * ) ;
2986};
2987#line 642 "include/linux/fs.h"
2988struct address_space {
2989 struct inode *host ;
2990 struct radix_tree_root page_tree ;
2991 spinlock_t tree_lock ;
2992 unsigned int i_mmap_writable ;
2993 struct prio_tree_root i_mmap ;
2994 struct list_head i_mmap_nonlinear ;
2995 struct mutex i_mmap_mutex ;
2996 unsigned long nrpages ;
2997 unsigned long writeback_index ;
2998 struct address_space_operations const *a_ops ;
2999 unsigned long flags ;
3000 struct backing_dev_info *backing_dev_info ;
3001 spinlock_t private_lock ;
3002 struct list_head private_list ;
3003 struct address_space *assoc_mapping ;
3004};
3005#line 664
3006struct request_queue;
3007#line 664
3008struct request_queue;
3009#line 665
3010struct hd_struct;
3011#line 665
3012struct gendisk;
3013#line 665 "include/linux/fs.h"
3014struct block_device {
3015 dev_t bd_dev ;
3016 int bd_openers ;
3017 struct inode *bd_inode ;
3018 struct super_block *bd_super ;
3019 struct mutex bd_mutex ;
3020 struct list_head bd_inodes ;
3021 void *bd_claiming ;
3022 void *bd_holder ;
3023 int bd_holders ;
3024 bool bd_write_holder ;
3025 struct list_head bd_holder_disks ;
3026 struct block_device *bd_contains ;
3027 unsigned int bd_block_size ;
3028 struct hd_struct *bd_part ;
3029 unsigned int bd_part_count ;
3030 int bd_invalidated ;
3031 struct gendisk *bd_disk ;
3032 struct request_queue *bd_queue ;
3033 struct list_head bd_list ;
3034 unsigned long bd_private ;
3035 int bd_fsfreeze_count ;
3036 struct mutex bd_fsfreeze_mutex ;
3037};
3038#line 737
3039struct posix_acl;
3040#line 737
3041struct posix_acl;
3042#line 738
3043struct inode_operations;
3044#line 738 "include/linux/fs.h"
3045union __anonunion_ldv_22603_166 {
3046 unsigned int const i_nlink ;
3047 unsigned int __i_nlink ;
3048};
3049#line 738 "include/linux/fs.h"
3050union __anonunion_ldv_22622_167 {
3051 struct list_head i_dentry ;
3052 struct rcu_head i_rcu ;
3053};
3054#line 738
3055struct file_operations;
3056#line 738
3057struct file_lock;
3058#line 738
3059struct cdev;
3060#line 738 "include/linux/fs.h"
3061union __anonunion_ldv_22640_168 {
3062 struct pipe_inode_info *i_pipe ;
3063 struct block_device *i_bdev ;
3064 struct cdev *i_cdev ;
3065};
3066#line 738 "include/linux/fs.h"
3067struct inode {
3068 umode_t i_mode ;
3069 unsigned short i_opflags ;
3070 uid_t i_uid ;
3071 gid_t i_gid ;
3072 unsigned int i_flags ;
3073 struct posix_acl *i_acl ;
3074 struct posix_acl *i_default_acl ;
3075 struct inode_operations const *i_op ;
3076 struct super_block *i_sb ;
3077 struct address_space *i_mapping ;
3078 void *i_security ;
3079 unsigned long i_ino ;
3080 union __anonunion_ldv_22603_166 ldv_22603 ;
3081 dev_t i_rdev ;
3082 struct timespec i_atime ;
3083 struct timespec i_mtime ;
3084 struct timespec i_ctime ;
3085 spinlock_t i_lock ;
3086 unsigned short i_bytes ;
3087 blkcnt_t i_blocks ;
3088 loff_t i_size ;
3089 unsigned long i_state ;
3090 struct mutex i_mutex ;
3091 unsigned long dirtied_when ;
3092 struct hlist_node i_hash ;
3093 struct list_head i_wb_list ;
3094 struct list_head i_lru ;
3095 struct list_head i_sb_list ;
3096 union __anonunion_ldv_22622_167 ldv_22622 ;
3097 atomic_t i_count ;
3098 unsigned int i_blkbits ;
3099 u64 i_version ;
3100 atomic_t i_dio_count ;
3101 atomic_t i_writecount ;
3102 struct file_operations const *i_fop ;
3103 struct file_lock *i_flock ;
3104 struct address_space i_data ;
3105 struct dquot *i_dquot[2U] ;
3106 struct list_head i_devices ;
3107 union __anonunion_ldv_22640_168 ldv_22640 ;
3108 __u32 i_generation ;
3109 __u32 i_fsnotify_mask ;
3110 struct hlist_head i_fsnotify_marks ;
3111 atomic_t i_readcount ;
3112 void *i_private ;
3113};
3114#line 941 "include/linux/fs.h"
3115struct fown_struct {
3116 rwlock_t lock ;
3117 struct pid *pid ;
3118 enum pid_type pid_type ;
3119 uid_t uid ;
3120 uid_t euid ;
3121 int signum ;
3122};
3123#line 949 "include/linux/fs.h"
3124struct file_ra_state {
3125 unsigned long start ;
3126 unsigned int size ;
3127 unsigned int async_size ;
3128 unsigned int ra_pages ;
3129 unsigned int mmap_miss ;
3130 loff_t prev_pos ;
3131};
3132#line 972 "include/linux/fs.h"
3133union __anonunion_f_u_169 {
3134 struct list_head fu_list ;
3135 struct rcu_head fu_rcuhead ;
3136};
3137#line 972 "include/linux/fs.h"
3138struct file {
3139 union __anonunion_f_u_169 f_u ;
3140 struct path f_path ;
3141 struct file_operations const *f_op ;
3142 spinlock_t f_lock ;
3143 int f_sb_list_cpu ;
3144 atomic_long_t f_count ;
3145 unsigned int f_flags ;
3146 fmode_t f_mode ;
3147 loff_t f_pos ;
3148 struct fown_struct f_owner ;
3149 struct cred const *f_cred ;
3150 struct file_ra_state f_ra ;
3151 u64 f_version ;
3152 void *f_security ;
3153 void *private_data ;
3154 struct list_head f_ep_links ;
3155 struct list_head f_tfile_llink ;
3156 struct address_space *f_mapping ;
3157 unsigned long f_mnt_write_state ;
3158};
3159#line 1111 "include/linux/fs.h"
3160typedef struct files_struct *fl_owner_t;
3161#line 1112 "include/linux/fs.h"
3162struct file_lock_operations {
3163 void (*fl_copy_lock)(struct file_lock * , struct file_lock * ) ;
3164 void (*fl_release_private)(struct file_lock * ) ;
3165};
3166#line 1117 "include/linux/fs.h"
3167struct lock_manager_operations {
3168 int (*lm_compare_owner)(struct file_lock * , struct file_lock * ) ;
3169 void (*lm_notify)(struct file_lock * ) ;
3170 int (*lm_grant)(struct file_lock * , struct file_lock * , int ) ;
3171 void (*lm_release_private)(struct file_lock * ) ;
3172 void (*lm_break)(struct file_lock * ) ;
3173 int (*lm_change)(struct file_lock ** , int ) ;
3174};
3175#line 1134
3176struct nlm_lockowner;
3177#line 1134
3178struct nlm_lockowner;
3179#line 1135 "include/linux/fs.h"
3180struct nfs_lock_info {
3181 u32 state ;
3182 struct nlm_lockowner *owner ;
3183 struct list_head list ;
3184};
3185#line 14 "include/linux/nfs_fs_i.h"
3186struct nfs4_lock_state;
3187#line 14
3188struct nfs4_lock_state;
3189#line 15 "include/linux/nfs_fs_i.h"
3190struct nfs4_lock_info {
3191 struct nfs4_lock_state *owner ;
3192};
3193#line 19
3194struct fasync_struct;
3195#line 19 "include/linux/nfs_fs_i.h"
3196struct __anonstruct_afs_171 {
3197 struct list_head link ;
3198 int state ;
3199};
3200#line 19 "include/linux/nfs_fs_i.h"
3201union __anonunion_fl_u_170 {
3202 struct nfs_lock_info nfs_fl ;
3203 struct nfs4_lock_info nfs4_fl ;
3204 struct __anonstruct_afs_171 afs ;
3205};
3206#line 19 "include/linux/nfs_fs_i.h"
3207struct file_lock {
3208 struct file_lock *fl_next ;
3209 struct list_head fl_link ;
3210 struct list_head fl_block ;
3211 fl_owner_t fl_owner ;
3212 unsigned int fl_flags ;
3213 unsigned char fl_type ;
3214 unsigned int fl_pid ;
3215 struct pid *fl_nspid ;
3216 wait_queue_head_t fl_wait ;
3217 struct file *fl_file ;
3218 loff_t fl_start ;
3219 loff_t fl_end ;
3220 struct fasync_struct *fl_fasync ;
3221 unsigned long fl_break_time ;
3222 unsigned long fl_downgrade_time ;
3223 struct file_lock_operations const *fl_ops ;
3224 struct lock_manager_operations const *fl_lmops ;
3225 union __anonunion_fl_u_170 fl_u ;
3226};
3227#line 1221 "include/linux/fs.h"
3228struct fasync_struct {
3229 spinlock_t fa_lock ;
3230 int magic ;
3231 int fa_fd ;
3232 struct fasync_struct *fa_next ;
3233 struct file *fa_file ;
3234 struct rcu_head fa_rcu ;
3235};
3236#line 1417
3237struct file_system_type;
3238#line 1417
3239struct super_operations;
3240#line 1417
3241struct xattr_handler;
3242#line 1417
3243struct mtd_info;
3244#line 1417 "include/linux/fs.h"
3245struct super_block {
3246 struct list_head s_list ;
3247 dev_t s_dev ;
3248 unsigned char s_dirt ;
3249 unsigned char s_blocksize_bits ;
3250 unsigned long s_blocksize ;
3251 loff_t s_maxbytes ;
3252 struct file_system_type *s_type ;
3253 struct super_operations const *s_op ;
3254 struct dquot_operations const *dq_op ;
3255 struct quotactl_ops const *s_qcop ;
3256 struct export_operations const *s_export_op ;
3257 unsigned long s_flags ;
3258 unsigned long s_magic ;
3259 struct dentry *s_root ;
3260 struct rw_semaphore s_umount ;
3261 struct mutex s_lock ;
3262 int s_count ;
3263 atomic_t s_active ;
3264 void *s_security ;
3265 struct xattr_handler const **s_xattr ;
3266 struct list_head s_inodes ;
3267 struct hlist_bl_head s_anon ;
3268 struct list_head *s_files ;
3269 struct list_head s_mounts ;
3270 struct list_head s_dentry_lru ;
3271 int s_nr_dentry_unused ;
3272 spinlock_t s_inode_lru_lock ;
3273 struct list_head s_inode_lru ;
3274 int s_nr_inodes_unused ;
3275 struct block_device *s_bdev ;
3276 struct backing_dev_info *s_bdi ;
3277 struct mtd_info *s_mtd ;
3278 struct hlist_node s_instances ;
3279 struct quota_info s_dquot ;
3280 int s_frozen ;
3281 wait_queue_head_t s_wait_unfrozen ;
3282 char s_id[32U] ;
3283 u8 s_uuid[16U] ;
3284 void *s_fs_info ;
3285 unsigned int s_max_links ;
3286 fmode_t s_mode ;
3287 u32 s_time_gran ;
3288 struct mutex s_vfs_rename_mutex ;
3289 char *s_subtype ;
3290 char *s_options ;
3291 struct dentry_operations const *s_d_op ;
3292 int cleancache_poolid ;
3293 struct shrinker s_shrink ;
3294 atomic_long_t s_remove_count ;
3295 int s_readonly_remount ;
3296};
3297#line 1563 "include/linux/fs.h"
3298struct fiemap_extent_info {
3299 unsigned int fi_flags ;
3300 unsigned int fi_extents_mapped ;
3301 unsigned int fi_extents_max ;
3302 struct fiemap_extent *fi_extents_start ;
3303};
3304#line 1601
3305struct block_device_operations;
3306#line 1601
3307struct block_device_operations;
3308#line 1602 "include/linux/fs.h"
3309struct file_operations {
3310 struct module *owner ;
3311 loff_t (*llseek)(struct file * , loff_t , int ) ;
3312 ssize_t (*read)(struct file * , char * , size_t , loff_t * ) ;
3313 ssize_t (*write)(struct file * , char const * , size_t , loff_t * ) ;
3314 ssize_t (*aio_read)(struct kiocb * , struct iovec const * , unsigned long ,
3315 loff_t ) ;
3316 ssize_t (*aio_write)(struct kiocb * , struct iovec const * , unsigned long ,
3317 loff_t ) ;
3318 int (*readdir)(struct file * , void * , int (*)(void * , char const * , int ,
3319 loff_t , u64 , unsigned int ) ) ;
3320 unsigned int (*poll)(struct file * , struct poll_table_struct * ) ;
3321 long (*unlocked_ioctl)(struct file * , unsigned int , unsigned long ) ;
3322 long (*compat_ioctl)(struct file * , unsigned int , unsigned long ) ;
3323 int (*mmap)(struct file * , struct vm_area_struct * ) ;
3324 int (*open)(struct inode * , struct file * ) ;
3325 int (*flush)(struct file * , fl_owner_t ) ;
3326 int (*release)(struct inode * , struct file * ) ;
3327 int (*fsync)(struct file * , loff_t , loff_t , int ) ;
3328 int (*aio_fsync)(struct kiocb * , int ) ;
3329 int (*fasync)(int , struct file * , int ) ;
3330 int (*lock)(struct file * , int , struct file_lock * ) ;
3331 ssize_t (*sendpage)(struct file * , struct page * , int , size_t , loff_t * ,
3332 int ) ;
3333 unsigned long (*get_unmapped_area)(struct file * , unsigned long , unsigned long ,
3334 unsigned long , unsigned long ) ;
3335 int (*check_flags)(int ) ;
3336 int (*flock)(struct file * , int , struct file_lock * ) ;
3337 ssize_t (*splice_write)(struct pipe_inode_info * , struct file * , loff_t * , size_t ,
3338 unsigned int ) ;
3339 ssize_t (*splice_read)(struct file * , loff_t * , struct pipe_inode_info * , size_t ,
3340 unsigned int ) ;
3341 int (*setlease)(struct file * , long , struct file_lock ** ) ;
3342 long (*fallocate)(struct file * , int , loff_t , loff_t ) ;
3343};
3344#line 1637 "include/linux/fs.h"
3345struct inode_operations {
3346 struct dentry *(*lookup)(struct inode * , struct dentry * , struct nameidata * ) ;
3347 void *(*follow_link)(struct dentry * , struct nameidata * ) ;
3348 int (*permission)(struct inode * , int ) ;
3349 struct posix_acl *(*get_acl)(struct inode * , int ) ;
3350 int (*readlink)(struct dentry * , char * , int ) ;
3351 void (*put_link)(struct dentry * , struct nameidata * , void * ) ;
3352 int (*create)(struct inode * , struct dentry * , umode_t , struct nameidata * ) ;
3353 int (*link)(struct dentry * , struct inode * , struct dentry * ) ;
3354 int (*unlink)(struct inode * , struct dentry * ) ;
3355 int (*symlink)(struct inode * , struct dentry * , char const * ) ;
3356 int (*mkdir)(struct inode * , struct dentry * , umode_t ) ;
3357 int (*rmdir)(struct inode * , struct dentry * ) ;
3358 int (*mknod)(struct inode * , struct dentry * , umode_t , dev_t ) ;
3359 int (*rename)(struct inode * , struct dentry * , struct inode * , struct dentry * ) ;
3360 void (*truncate)(struct inode * ) ;
3361 int (*setattr)(struct dentry * , struct iattr * ) ;
3362 int (*getattr)(struct vfsmount * , struct dentry * , struct kstat * ) ;
3363 int (*setxattr)(struct dentry * , char const * , void const * , size_t , int ) ;
3364 ssize_t (*getxattr)(struct dentry * , char const * , void * , size_t ) ;
3365 ssize_t (*listxattr)(struct dentry * , char * , size_t ) ;
3366 int (*removexattr)(struct dentry * , char const * ) ;
3367 void (*truncate_range)(struct inode * , loff_t , loff_t ) ;
3368 int (*fiemap)(struct inode * , struct fiemap_extent_info * , u64 , u64 ) ;
3369};
3370#line 1682 "include/linux/fs.h"
3371struct super_operations {
3372 struct inode *(*alloc_inode)(struct super_block * ) ;
3373 void (*destroy_inode)(struct inode * ) ;
3374 void (*dirty_inode)(struct inode * , int ) ;
3375 int (*write_inode)(struct inode * , struct writeback_control * ) ;
3376 int (*drop_inode)(struct inode * ) ;
3377 void (*evict_inode)(struct inode * ) ;
3378 void (*put_super)(struct super_block * ) ;
3379 void (*write_super)(struct super_block * ) ;
3380 int (*sync_fs)(struct super_block * , int ) ;
3381 int (*freeze_fs)(struct super_block * ) ;
3382 int (*unfreeze_fs)(struct super_block * ) ;
3383 int (*statfs)(struct dentry * , struct kstatfs * ) ;
3384 int (*remount_fs)(struct super_block * , int * , char * ) ;
3385 void (*umount_begin)(struct super_block * ) ;
3386 int (*show_options)(struct seq_file * , struct dentry * ) ;
3387 int (*show_devname)(struct seq_file * , struct dentry * ) ;
3388 int (*show_path)(struct seq_file * , struct dentry * ) ;
3389 int (*show_stats)(struct seq_file * , struct dentry * ) ;
3390 ssize_t (*quota_read)(struct super_block * , int , char * , size_t , loff_t ) ;
3391 ssize_t (*quota_write)(struct super_block * , int , char const * , size_t ,
3392 loff_t ) ;
3393 int (*bdev_try_to_free_page)(struct super_block * , struct page * , gfp_t ) ;
3394 int (*nr_cached_objects)(struct super_block * ) ;
3395 void (*free_cached_objects)(struct super_block * , int ) ;
3396};
3397#line 1834 "include/linux/fs.h"
3398struct file_system_type {
3399 char const *name ;
3400 int fs_flags ;
3401 struct dentry *(*mount)(struct file_system_type * , int , char const * , void * ) ;
3402 void (*kill_sb)(struct super_block * ) ;
3403 struct module *owner ;
3404 struct file_system_type *next ;
3405 struct hlist_head fs_supers ;
3406 struct lock_class_key s_lock_key ;
3407 struct lock_class_key s_umount_key ;
3408 struct lock_class_key s_vfs_rename_key ;
3409 struct lock_class_key i_lock_key ;
3410 struct lock_class_key i_mutex_key ;
3411 struct lock_class_key i_mutex_dir_key ;
3412};
3413#line 81 "include/linux/genhd.h"
3414struct disk_stats {
3415 unsigned long sectors[2U] ;
3416 unsigned long ios[2U] ;
3417 unsigned long merges[2U] ;
3418 unsigned long ticks[2U] ;
3419 unsigned long io_ticks ;
3420 unsigned long time_in_queue ;
3421};
3422#line 90 "include/linux/genhd.h"
3423struct partition_meta_info {
3424 u8 uuid[16U] ;
3425 u8 volname[64U] ;
3426};
3427#line 98 "include/linux/genhd.h"
3428struct hd_struct {
3429 sector_t start_sect ;
3430 sector_t nr_sects ;
3431 sector_t alignment_offset ;
3432 unsigned int discard_alignment ;
3433 struct device __dev ;
3434 struct kobject *holder_dir ;
3435 int policy ;
3436 int partno ;
3437 struct partition_meta_info *info ;
3438 int make_it_fail ;
3439 unsigned long stamp ;
3440 atomic_t in_flight[2U] ;
3441 struct disk_stats *dkstats ;
3442 atomic_t ref ;
3443 struct rcu_head rcu_head ;
3444};
3445#line 146 "include/linux/genhd.h"
3446struct disk_part_tbl {
3447 struct rcu_head rcu_head ;
3448 int len ;
3449 struct hd_struct *last_lookup ;
3450 struct hd_struct *part[0U] ;
3451};
3452#line 153
3453struct disk_events;
3454#line 153
3455struct disk_events;
3456#line 154
3457struct timer_rand_state;
3458#line 154
3459struct blk_integrity;
3460#line 154 "include/linux/genhd.h"
3461struct gendisk {
3462 int major ;
3463 int first_minor ;
3464 int minors ;
3465 char disk_name[32U] ;
3466 char *(*devnode)(struct gendisk * , umode_t * ) ;
3467 unsigned int events ;
3468 unsigned int async_events ;
3469 struct disk_part_tbl *part_tbl ;
3470 struct hd_struct part0 ;
3471 struct block_device_operations const *fops ;
3472 struct request_queue *queue ;
3473 void *private_data ;
3474 int flags ;
3475 struct device *driverfs_dev ;
3476 struct kobject *slave_dir ;
3477 struct timer_rand_state *random ;
3478 atomic_t sync_io ;
3479 struct disk_events *ev ;
3480 struct blk_integrity *integrity ;
3481 int node_id ;
3482};
3483#line 650 "include/linux/genhd.h"
3484struct exception_table_entry {
3485 unsigned long insn ;
3486 unsigned long fixup ;
3487};
3488#line 348 "include/linux/irq.h"
3489struct proc_dir_entry;
3490#line 348
3491struct proc_dir_entry;
3492#line 11 "include/linux/writeback.h"
3493enum writeback_sync_modes {
3494 WB_SYNC_NONE = 0,
3495 WB_SYNC_ALL = 1
3496} ;
3497#line 54 "include/linux/writeback.h"
3498struct writeback_control {
3499 enum writeback_sync_modes sync_mode ;
3500 long nr_to_write ;
3501 long pages_skipped ;
3502 loff_t range_start ;
3503 loff_t range_end ;
3504 unsigned char for_kupdate : 1 ;
3505 unsigned char for_background : 1 ;
3506 unsigned char tagged_writepages : 1 ;
3507 unsigned char for_reclaim : 1 ;
3508 unsigned char range_cyclic : 1 ;
3509};
3510#line 80
3511struct bdi_writeback;
3512#line 80
3513struct bdi_writeback;
3514#line 38 "include/linux/backing-dev.h"
3515typedef int congested_fn(void * , int );
3516#line 47 "include/linux/backing-dev.h"
3517struct bdi_writeback {
3518 struct backing_dev_info *bdi ;
3519 unsigned int nr ;
3520 unsigned long last_old_flush ;
3521 unsigned long last_active ;
3522 struct task_struct *task ;
3523 struct timer_list wakeup_timer ;
3524 struct list_head b_dirty ;
3525 struct list_head b_io ;
3526 struct list_head b_more_io ;
3527 spinlock_t list_lock ;
3528};
3529#line 64 "include/linux/backing-dev.h"
3530struct backing_dev_info {
3531 struct list_head bdi_list ;
3532 unsigned long ra_pages ;
3533 unsigned long state ;
3534 unsigned int capabilities ;
3535 congested_fn *congested_fn ;
3536 void *congested_data ;
3537 char *name ;
3538 struct percpu_counter bdi_stat[4U] ;
3539 unsigned long bw_time_stamp ;
3540 unsigned long dirtied_stamp ;
3541 unsigned long written_stamp ;
3542 unsigned long write_bandwidth ;
3543 unsigned long avg_write_bandwidth ;
3544 unsigned long dirty_ratelimit ;
3545 unsigned long balanced_dirty_ratelimit ;
3546 struct prop_local_percpu completions ;
3547 int dirty_exceeded ;
3548 unsigned int min_ratio ;
3549 unsigned int max_ratio ;
3550 unsigned int max_prop_frac ;
3551 struct bdi_writeback wb ;
3552 spinlock_t wb_lock ;
3553 struct list_head work_list ;
3554 struct device *dev ;
3555 struct timer_list laptop_mode_wb_timer ;
3556 struct dentry *debug_dir ;
3557 struct dentry *debug_stats ;
3558};
3559#line 11 "include/linux/mempool.h"
3560typedef void *mempool_alloc_t(gfp_t , void * );
3561#line 12 "include/linux/mempool.h"
3562typedef void mempool_free_t(void * , void * );
3563#line 13 "include/linux/mempool.h"
3564struct mempool_s {
3565 spinlock_t lock ;
3566 int min_nr ;
3567 int curr_nr ;
3568 void **elements ;
3569 void *pool_data ;
3570 mempool_alloc_t *alloc ;
3571 mempool_free_t *free ;
3572 wait_queue_head_t wait ;
3573};
3574#line 24 "include/linux/mempool.h"
3575typedef struct mempool_s mempool_t;
3576#line 79 "include/linux/mempool.h"
3577union __anonunion_ldv_26913_173 {
3578 struct list_head q_node ;
3579 struct kmem_cache *__rcu_icq_cache ;
3580};
3581#line 79 "include/linux/mempool.h"
3582union __anonunion_ldv_26917_174 {
3583 struct hlist_node ioc_node ;
3584 struct rcu_head __rcu_head ;
3585};
3586#line 79 "include/linux/mempool.h"
3587struct io_cq {
3588 struct request_queue *q ;
3589 struct io_context *ioc ;
3590 union __anonunion_ldv_26913_173 ldv_26913 ;
3591 union __anonunion_ldv_26917_174 ldv_26917 ;
3592 unsigned int flags ;
3593};
3594#line 96 "include/linux/iocontext.h"
3595struct io_context {
3596 atomic_long_t refcount ;
3597 atomic_t nr_tasks ;
3598 spinlock_t lock ;
3599 unsigned short ioprio ;
3600 int nr_batch_requests ;
3601 unsigned long last_waited ;
3602 struct radix_tree_root icq_tree ;
3603 struct io_cq *icq_hint ;
3604 struct hlist_head icq_list ;
3605 struct work_struct release_work ;
3606};
3607#line 91 "include/linux/bio.h"
3608struct bio_integrity_payload {
3609 struct bio *bip_bio ;
3610 sector_t bip_sector ;
3611 void *bip_buf ;
3612 bio_end_io_t *bip_end_io ;
3613 unsigned int bip_size ;
3614 unsigned short bip_slab ;
3615 unsigned short bip_vcnt ;
3616 unsigned short bip_idx ;
3617 struct work_struct bip_work ;
3618 struct bio_vec bip_vec[0U] ;
3619};
3620#line 366 "include/linux/bio.h"
3621struct bio_list {
3622 struct bio *head ;
3623 struct bio *tail ;
3624};
3625#line 63 "include/linux/bsg.h"
3626struct bsg_class_device {
3627 struct device *class_dev ;
3628 struct device *parent ;
3629 int minor ;
3630 struct request_queue *queue ;
3631 struct kref ref ;
3632 void (*release)(struct device * ) ;
3633};
3634#line 81
3635struct elevator_queue;
3636#line 81
3637struct elevator_queue;
3638#line 84
3639struct request;
3640#line 84
3641struct request;
3642#line 86
3643struct bsg_job;
3644#line 86
3645struct bsg_job;
3646#line 40 "include/linux/blkdev.h"
3647typedef void rq_end_io_fn(struct request * , int );
3648#line 41 "include/linux/blkdev.h"
3649struct request_list {
3650 int count[2U] ;
3651 int starved[2U] ;
3652 int elvpriv ;
3653 mempool_t *rq_pool ;
3654 wait_queue_head_t wait[2U] ;
3655};
3656#line 53
3657enum rq_cmd_type_bits {
3658 REQ_TYPE_FS = 1,
3659 REQ_TYPE_BLOCK_PC = 2,
3660 REQ_TYPE_SENSE = 3,
3661 REQ_TYPE_PM_SUSPEND = 4,
3662 REQ_TYPE_PM_RESUME = 5,
3663 REQ_TYPE_PM_SHUTDOWN = 6,
3664 REQ_TYPE_SPECIAL = 7,
3665 REQ_TYPE_ATA_TASKFILE = 8,
3666 REQ_TYPE_ATA_PC = 9
3667} ;
3668#line 65 "include/linux/blkdev.h"
3669union __anonunion_ldv_27340_175 {
3670 struct rb_node rb_node ;
3671 void *completion_data ;
3672};
3673#line 65 "include/linux/blkdev.h"
3674struct __anonstruct_elv_177 {
3675 struct io_cq *icq ;
3676 void *priv[2U] ;
3677};
3678#line 65 "include/linux/blkdev.h"
3679struct __anonstruct_flush_178 {
3680 unsigned int seq ;
3681 struct list_head list ;
3682 rq_end_io_fn *saved_end_io ;
3683};
3684#line 65 "include/linux/blkdev.h"
3685union __anonunion_ldv_27351_176 {
3686 struct __anonstruct_elv_177 elv ;
3687 struct __anonstruct_flush_178 flush ;
3688};
3689#line 65 "include/linux/blkdev.h"
3690struct request {
3691 struct list_head queuelist ;
3692 struct call_single_data csd ;
3693 struct request_queue *q ;
3694 unsigned int cmd_flags ;
3695 enum rq_cmd_type_bits cmd_type ;
3696 unsigned long atomic_flags ;
3697 int cpu ;
3698 unsigned int __data_len ;
3699 sector_t __sector ;
3700 struct bio *bio ;
3701 struct bio *biotail ;
3702 struct hlist_node hash ;
3703 union __anonunion_ldv_27340_175 ldv_27340 ;
3704 union __anonunion_ldv_27351_176 ldv_27351 ;
3705 struct gendisk *rq_disk ;
3706 struct hd_struct *part ;
3707 unsigned long start_time ;
3708 unsigned short nr_phys_segments ;
3709 unsigned short nr_integrity_segments ;
3710 unsigned short ioprio ;
3711 int ref_count ;
3712 void *special ;
3713 char *buffer ;
3714 int tag ;
3715 int errors ;
3716 unsigned char __cmd[16U] ;
3717 unsigned char *cmd ;
3718 unsigned short cmd_len ;
3719 unsigned int extra_len ;
3720 unsigned int sense_len ;
3721 unsigned int resid_len ;
3722 void *sense ;
3723 unsigned long deadline ;
3724 struct list_head timeout_list ;
3725 unsigned int timeout ;
3726 int retries ;
3727 rq_end_io_fn *end_io ;
3728 void *end_io_data ;
3729 struct request *next_rq ;
3730};
3731#line 10 "include/linux/elevator.h"
3732typedef int elevator_merge_fn(struct request_queue * , struct request ** , struct bio * );
3733#line 13 "include/linux/elevator.h"
3734typedef void elevator_merge_req_fn(struct request_queue * , struct request * , struct request * );
3735#line 15 "include/linux/elevator.h"
3736typedef void elevator_merged_fn(struct request_queue * , struct request * , int );
3737#line 17 "include/linux/elevator.h"
3738typedef int elevator_allow_merge_fn(struct request_queue * , struct request * , struct bio * );
3739#line 19 "include/linux/elevator.h"
3740typedef void elevator_bio_merged_fn(struct request_queue * , struct request * , struct bio * );
3741#line 22 "include/linux/elevator.h"
3742typedef int elevator_dispatch_fn(struct request_queue * , int );
3743#line 24 "include/linux/elevator.h"
3744typedef void elevator_add_req_fn(struct request_queue * , struct request * );
3745#line 25 "include/linux/elevator.h"
3746typedef struct request *elevator_request_list_fn(struct request_queue * , struct request * );
3747#line 26 "include/linux/elevator.h"
3748typedef void elevator_completed_req_fn(struct request_queue * , struct request * );
3749#line 27 "include/linux/elevator.h"
3750typedef int elevator_may_queue_fn(struct request_queue * , int );
3751#line 29 "include/linux/elevator.h"
3752typedef void elevator_init_icq_fn(struct io_cq * );
3753#line 30 "include/linux/elevator.h"
3754typedef void elevator_exit_icq_fn(struct io_cq * );
3755#line 31 "include/linux/elevator.h"
3756typedef int elevator_set_req_fn(struct request_queue * , struct request * , gfp_t );
3757#line 32 "include/linux/elevator.h"
3758typedef void elevator_put_req_fn(struct request * );
3759#line 33 "include/linux/elevator.h"
3760typedef void elevator_activate_req_fn(struct request_queue * , struct request * );
3761#line 34 "include/linux/elevator.h"
3762typedef void elevator_deactivate_req_fn(struct request_queue * , struct request * );
3763#line 36 "include/linux/elevator.h"
3764typedef void *elevator_init_fn(struct request_queue * );
3765#line 37 "include/linux/elevator.h"
3766typedef void elevator_exit_fn(struct elevator_queue * );
3767#line 38 "include/linux/elevator.h"
3768struct elevator_ops {
3769 elevator_merge_fn *elevator_merge_fn ;
3770 elevator_merged_fn *elevator_merged_fn ;
3771 elevator_merge_req_fn *elevator_merge_req_fn ;
3772 elevator_allow_merge_fn *elevator_allow_merge_fn ;
3773 elevator_bio_merged_fn *elevator_bio_merged_fn ;
3774 elevator_dispatch_fn *elevator_dispatch_fn ;
3775 elevator_add_req_fn *elevator_add_req_fn ;
3776 elevator_activate_req_fn *elevator_activate_req_fn ;
3777 elevator_deactivate_req_fn *elevator_deactivate_req_fn ;
3778 elevator_completed_req_fn *elevator_completed_req_fn ;
3779 elevator_request_list_fn *elevator_former_req_fn ;
3780 elevator_request_list_fn *elevator_latter_req_fn ;
3781 elevator_init_icq_fn *elevator_init_icq_fn ;
3782 elevator_exit_icq_fn *elevator_exit_icq_fn ;
3783 elevator_set_req_fn *elevator_set_req_fn ;
3784 elevator_put_req_fn *elevator_put_req_fn ;
3785 elevator_may_queue_fn *elevator_may_queue_fn ;
3786 elevator_init_fn *elevator_init_fn ;
3787 elevator_exit_fn *elevator_exit_fn ;
3788};
3789#line 68 "include/linux/elevator.h"
3790struct elv_fs_entry {
3791 struct attribute attr ;
3792 ssize_t (*show)(struct elevator_queue * , char * ) ;
3793 ssize_t (*store)(struct elevator_queue * , char const * , size_t ) ;
3794};
3795#line 76 "include/linux/elevator.h"
3796struct elevator_type {
3797 struct kmem_cache *icq_cache ;
3798 struct elevator_ops ops ;
3799 size_t icq_size ;
3800 size_t icq_align ;
3801 struct elv_fs_entry *elevator_attrs ;
3802 char elevator_name[16U] ;
3803 struct module *elevator_owner ;
3804 char icq_cache_name[21U] ;
3805 struct list_head list ;
3806};
3807#line 97 "include/linux/elevator.h"
3808struct elevator_queue {
3809 struct elevator_type *type ;
3810 void *elevator_data ;
3811 struct kobject kobj ;
3812 struct mutex sysfs_lock ;
3813 struct hlist_head *hash ;
3814 unsigned char registered : 1 ;
3815};
3816#line 202 "include/linux/blkdev.h"
3817typedef void request_fn_proc(struct request_queue * );
3818#line 203 "include/linux/blkdev.h"
3819typedef void make_request_fn(struct request_queue * , struct bio * );
3820#line 204 "include/linux/blkdev.h"
3821typedef int prep_rq_fn(struct request_queue * , struct request * );
3822#line 205 "include/linux/blkdev.h"
3823typedef void unprep_rq_fn(struct request_queue * , struct request * );
3824#line 206 "include/linux/blkdev.h"
3825struct bvec_merge_data {
3826 struct block_device *bi_bdev ;
3827 sector_t bi_sector ;
3828 unsigned int bi_size ;
3829 unsigned long bi_rw ;
3830};
3831#line 214 "include/linux/blkdev.h"
3832typedef int merge_bvec_fn(struct request_queue * , struct bvec_merge_data * , struct bio_vec * );
3833#line 216 "include/linux/blkdev.h"
3834typedef void softirq_done_fn(struct request * );
3835#line 217 "include/linux/blkdev.h"
3836typedef int dma_drain_needed_fn(struct request * );
3837#line 218 "include/linux/blkdev.h"
3838typedef int lld_busy_fn(struct request_queue * );
3839#line 219 "include/linux/blkdev.h"
3840typedef int bsg_job_fn(struct bsg_job * );
3841#line 220
3842enum blk_eh_timer_return {
3843 BLK_EH_NOT_HANDLED = 0,
3844 BLK_EH_HANDLED = 1,
3845 BLK_EH_RESET_TIMER = 2
3846} ;
3847#line 227 "include/linux/blkdev.h"
3848typedef enum blk_eh_timer_return rq_timed_out_fn(struct request * );
3849#line 233 "include/linux/blkdev.h"
3850struct blk_queue_tag {
3851 struct request **tag_index ;
3852 unsigned long *tag_map ;
3853 int busy ;
3854 int max_depth ;
3855 int real_max_depth ;
3856 atomic_t refcnt ;
3857};
3858#line 242 "include/linux/blkdev.h"
3859struct queue_limits {
3860 unsigned long bounce_pfn ;
3861 unsigned long seg_boundary_mask ;
3862 unsigned int max_hw_sectors ;
3863 unsigned int max_sectors ;
3864 unsigned int max_segment_size ;
3865 unsigned int physical_block_size ;
3866 unsigned int alignment_offset ;
3867 unsigned int io_min ;
3868 unsigned int io_opt ;
3869 unsigned int max_discard_sectors ;
3870 unsigned int discard_granularity ;
3871 unsigned int discard_alignment ;
3872 unsigned short logical_block_size ;
3873 unsigned short max_segments ;
3874 unsigned short max_integrity_segments ;
3875 unsigned char misaligned ;
3876 unsigned char discard_misaligned ;
3877 unsigned char cluster ;
3878 unsigned char discard_zeroes_data ;
3879};
3880#line 270 "include/linux/blkdev.h"
3881struct request_queue {
3882 struct list_head queue_head ;
3883 struct request *last_merge ;
3884 struct elevator_queue *elevator ;
3885 struct request_list rq ;
3886 request_fn_proc *request_fn ;
3887 make_request_fn *make_request_fn ;
3888 prep_rq_fn *prep_rq_fn ;
3889 unprep_rq_fn *unprep_rq_fn ;
3890 merge_bvec_fn *merge_bvec_fn ;
3891 softirq_done_fn *softirq_done_fn ;
3892 rq_timed_out_fn *rq_timed_out_fn ;
3893 dma_drain_needed_fn *dma_drain_needed ;
3894 lld_busy_fn *lld_busy_fn ;
3895 sector_t end_sector ;
3896 struct request *boundary_rq ;
3897 struct delayed_work delay_work ;
3898 struct backing_dev_info backing_dev_info ;
3899 void *queuedata ;
3900 unsigned long queue_flags ;
3901 int id ;
3902 gfp_t bounce_gfp ;
3903 spinlock_t __queue_lock ;
3904 spinlock_t *queue_lock ;
3905 struct kobject kobj ;
3906 unsigned long nr_requests ;
3907 unsigned int nr_congestion_on ;
3908 unsigned int nr_congestion_off ;
3909 unsigned int nr_batching ;
3910 unsigned int dma_drain_size ;
3911 void *dma_drain_buffer ;
3912 unsigned int dma_pad_mask ;
3913 unsigned int dma_alignment ;
3914 struct blk_queue_tag *queue_tags ;
3915 struct list_head tag_busy_list ;
3916 unsigned int nr_sorted ;
3917 unsigned int in_flight[2U] ;
3918 unsigned int rq_timeout ;
3919 struct timer_list timeout ;
3920 struct list_head timeout_list ;
3921 struct list_head icq_list ;
3922 struct queue_limits limits ;
3923 unsigned int sg_timeout ;
3924 unsigned int sg_reserved_size ;
3925 int node ;
3926 unsigned int flush_flags ;
3927 unsigned char flush_not_queueable : 1 ;
3928 unsigned char flush_queue_delayed : 1 ;
3929 unsigned char flush_pending_idx : 1 ;
3930 unsigned char flush_running_idx : 1 ;
3931 unsigned long flush_pending_since ;
3932 struct list_head flush_queue[2U] ;
3933 struct list_head flush_data_in_flight ;
3934 struct request flush_rq ;
3935 struct mutex sysfs_lock ;
3936 bsg_job_fn *bsg_job_fn ;
3937 int bsg_job_size ;
3938 struct bsg_class_device bsg_dev ;
3939};
3940#line 876 "include/linux/blkdev.h"
3941struct blk_plug {
3942 unsigned long magic ;
3943 struct list_head list ;
3944 struct list_head cb_list ;
3945 unsigned int should_sort ;
3946};
3947#line 1208 "include/linux/blkdev.h"
3948struct blk_integrity_exchg {
3949 void *prot_buf ;
3950 void *data_buf ;
3951 sector_t sector ;
3952 unsigned int data_size ;
3953 unsigned short sector_size ;
3954 char const *disk_name ;
3955};
3956#line 1229 "include/linux/blkdev.h"
3957typedef void integrity_gen_fn(struct blk_integrity_exchg * );
3958#line 1230 "include/linux/blkdev.h"
3959typedef int integrity_vrfy_fn(struct blk_integrity_exchg * );
3960#line 1231 "include/linux/blkdev.h"
3961typedef void integrity_set_tag_fn(void * , void * , unsigned int );
3962#line 1232 "include/linux/blkdev.h"
3963typedef void integrity_get_tag_fn(void * , void * , unsigned int );
3964#line 1233 "include/linux/blkdev.h"
3965struct blk_integrity {
3966 integrity_gen_fn *generate_fn ;
3967 integrity_vrfy_fn *verify_fn ;
3968 integrity_set_tag_fn *set_tag_fn ;
3969 integrity_get_tag_fn *get_tag_fn ;
3970 unsigned short flags ;
3971 unsigned short tuple_size ;
3972 unsigned short sector_size ;
3973 unsigned short tag_size ;
3974 char const *name ;
3975 struct kobject kobj ;
3976};
3977#line 1292 "include/linux/blkdev.h"
3978struct block_device_operations {
3979 int (*open)(struct block_device * , fmode_t ) ;
3980 int (*release)(struct gendisk * , fmode_t ) ;
3981 int (*ioctl)(struct block_device * , fmode_t , unsigned int , unsigned long ) ;
3982 int (*compat_ioctl)(struct block_device * , fmode_t , unsigned int , unsigned long ) ;
3983 int (*direct_access)(struct block_device * , sector_t , void ** , unsigned long * ) ;
3984 unsigned int (*check_events)(struct gendisk * , unsigned int ) ;
3985 int (*media_changed)(struct gendisk * ) ;
3986 void (*unlock_native_capacity)(struct gendisk * ) ;
3987 int (*revalidate_disk)(struct gendisk * ) ;
3988 int (*getgeo)(struct block_device * , struct hd_geometry * ) ;
3989 void (*swap_slot_free_notify)(struct block_device * , unsigned long ) ;
3990 struct module *owner ;
3991};
3992#line 1382
3993struct Scsi_Host;
3994#line 1382
3995struct Scsi_Host;
3996#line 1383
3997struct scsi_device;
3998#line 1383
3999struct scsi_device;
4000#line 1385 "include/linux/blkdev.h"
4001struct scsi_data_buffer {
4002 struct sg_table table ;
4003 unsigned int length ;
4004 int resid ;
4005};
4006#line 37 "include/scsi/scsi_cmnd.h"
4007struct scsi_pointer {
4008 char *ptr ;
4009 int this_residual ;
4010 struct scatterlist *buffer ;
4011 int buffers_residual ;
4012 dma_addr_t dma_handle ;
4013 int volatile Status ;
4014 int volatile Message ;
4015 int volatile have_data_in ;
4016 int volatile sent_command ;
4017 int volatile phase ;
4018};
4019#line 53 "include/scsi/scsi_cmnd.h"
4020struct scsi_cmnd {
4021 struct scsi_device *device ;
4022 struct list_head list ;
4023 struct list_head eh_entry ;
4024 int eh_eflags ;
4025 unsigned long serial_number ;
4026 unsigned long jiffies_at_alloc ;
4027 int retries ;
4028 int allowed ;
4029 unsigned char prot_op ;
4030 unsigned char prot_type ;
4031 unsigned short cmd_len ;
4032 enum dma_data_direction sc_data_direction ;
4033 unsigned char *cmnd ;
4034 struct scsi_data_buffer sdb ;
4035 struct scsi_data_buffer *prot_sdb ;
4036 unsigned int underflow ;
4037 unsigned int transfersize ;
4038 struct request *request ;
4039 unsigned char *sense_buffer ;
4040 void (*scsi_done)(struct scsi_cmnd * ) ;
4041 struct scsi_pointer SCp ;
4042 unsigned char *host_scribble ;
4043 int result ;
4044 unsigned char tag ;
4045};
4046#line 313
4047struct scsi_sense_hdr;
4048#line 313
4049struct scsi_sense_hdr;
4050#line 25 "include/scsi/scsi_device.h"
4051enum scsi_device_state {
4052 SDEV_CREATED = 1,
4053 SDEV_RUNNING = 2,
4054 SDEV_CANCEL = 3,
4055 SDEV_DEL = 4,
4056 SDEV_QUIESCE = 5,
4057 SDEV_OFFLINE = 6,
4058 SDEV_BLOCK = 7,
4059 SDEV_CREATED_BLOCK = 8
4060} ;
4061#line 63
4062struct scsi_target;
4063#line 63
4064struct scsi_dh_data;
4065#line 63 "include/scsi/scsi_device.h"
4066struct scsi_device {
4067 struct Scsi_Host *host ;
4068 struct request_queue *request_queue ;
4069 struct list_head siblings ;
4070 struct list_head same_target_siblings ;
4071 unsigned int device_busy ;
4072 spinlock_t list_lock ;
4073 struct list_head cmd_list ;
4074 struct list_head starved_entry ;
4075 struct scsi_cmnd *current_cmnd ;
4076 unsigned short queue_depth ;
4077 unsigned short max_queue_depth ;
4078 unsigned short last_queue_full_depth ;
4079 unsigned short last_queue_full_count ;
4080 unsigned long last_queue_full_time ;
4081 unsigned long queue_ramp_up_period ;
4082 unsigned long last_queue_ramp_up ;
4083 unsigned int id ;
4084 unsigned int lun ;
4085 unsigned int channel ;
4086 unsigned int manufacturer ;
4087 unsigned int sector_size ;
4088 void *hostdata ;
4089 char type ;
4090 char scsi_level ;
4091 char inq_periph_qual ;
4092 unsigned char inquiry_len ;
4093 unsigned char *inquiry ;
4094 char const *vendor ;
4095 char const *model ;
4096 char const *rev ;
4097 unsigned char current_tag ;
4098 struct scsi_target *sdev_target ;
4099 unsigned int sdev_bflags ;
4100 unsigned char writeable : 1 ;
4101 unsigned char removable : 1 ;
4102 unsigned char changed : 1 ;
4103 unsigned char busy : 1 ;
4104 unsigned char lockable : 1 ;
4105 unsigned char locked : 1 ;
4106 unsigned char borken : 1 ;
4107 unsigned char disconnect : 1 ;
4108 unsigned char soft_reset : 1 ;
4109 unsigned char sdtr : 1 ;
4110 unsigned char wdtr : 1 ;
4111 unsigned char ppr : 1 ;
4112 unsigned char tagged_supported : 1 ;
4113 unsigned char simple_tags : 1 ;
4114 unsigned char ordered_tags : 1 ;
4115 unsigned char was_reset : 1 ;
4116 unsigned char expecting_cc_ua : 1 ;
4117 unsigned char use_10_for_rw : 1 ;
4118 unsigned char use_10_for_ms : 1 ;
4119 unsigned char skip_ms_page_8 : 1 ;
4120 unsigned char skip_ms_page_3f : 1 ;
4121 unsigned char skip_vpd_pages : 1 ;
4122 unsigned char use_192_bytes_for_3f : 1 ;
4123 unsigned char no_start_on_add : 1 ;
4124 unsigned char allow_restart : 1 ;
4125 unsigned char manage_start_stop : 1 ;
4126 unsigned char start_stop_pwr_cond : 1 ;
4127 unsigned char no_uld_attach : 1 ;
4128 unsigned char select_no_atn : 1 ;
4129 unsigned char fix_capacity : 1 ;
4130 unsigned char guess_capacity : 1 ;
4131 unsigned char retry_hwerror : 1 ;
4132 unsigned char last_sector_bug : 1 ;
4133 unsigned char no_read_disc_info : 1 ;
4134 unsigned char no_read_capacity_16 : 1 ;
4135 unsigned char is_visible : 1 ;
4136 unsigned long supported_events[1U] ;
4137 struct list_head event_list ;
4138 struct work_struct event_work ;
4139 unsigned int device_blocked ;
4140 unsigned int max_device_blocked ;
4141 atomic_t iorequest_cnt ;
4142 atomic_t iodone_cnt ;
4143 atomic_t ioerr_cnt ;
4144 struct device sdev_gendev ;
4145 struct device sdev_dev ;
4146 struct execute_work ew ;
4147 struct work_struct requeue_work ;
4148 struct scsi_dh_data *scsi_dh_data ;
4149 enum scsi_device_state sdev_state ;
4150 unsigned long sdev_data[0U] ;
4151};
4152#line 179 "include/scsi/scsi_device.h"
4153struct scsi_dh_devlist {
4154 char *vendor ;
4155 char *model ;
4156};
4157#line 186 "include/scsi/scsi_device.h"
4158struct scsi_device_handler {
4159 struct list_head list ;
4160 struct module *module ;
4161 char const *name ;
4162 struct scsi_dh_devlist const *devlist ;
4163 int (*check_sense)(struct scsi_device * , struct scsi_sense_hdr * ) ;
4164 int (*attach)(struct scsi_device * ) ;
4165 void (*detach)(struct scsi_device * ) ;
4166 int (*activate)(struct scsi_device * , void (*)(void * , int ) , void * ) ;
4167 int (*prep_fn)(struct scsi_device * , struct request * ) ;
4168 int (*set_params)(struct scsi_device * , char const * ) ;
4169 bool (*match)(struct scsi_device * ) ;
4170};
4171#line 202 "include/scsi/scsi_device.h"
4172struct scsi_dh_data {
4173 struct scsi_device_handler *scsi_dh ;
4174 struct scsi_device *sdev ;
4175 struct kref kref ;
4176 char buf[0U] ;
4177};
4178#line 209
4179enum scsi_target_state {
4180 STARGET_CREATED = 1,
4181 STARGET_RUNNING = 2,
4182 STARGET_DEL = 3
4183} ;
4184#line 215 "include/scsi/scsi_device.h"
4185struct scsi_target {
4186 struct scsi_device *starget_sdev_user ;
4187 struct list_head siblings ;
4188 struct list_head devices ;
4189 struct device dev ;
4190 unsigned int reap_ref ;
4191 unsigned int channel ;
4192 unsigned int id ;
4193 unsigned char create : 1 ;
4194 unsigned char single_lun : 1 ;
4195 unsigned char pdt_1f_for_no_lun : 1 ;
4196 unsigned char no_report_luns : 1 ;
4197 unsigned int target_busy ;
4198 unsigned int can_queue ;
4199 unsigned int target_blocked ;
4200 unsigned int max_target_blocked ;
4201 char scsi_level ;
4202 struct execute_work ew ;
4203 enum scsi_target_state state ;
4204 void *hostdata ;
4205 unsigned long starget_data[0U] ;
4206};
4207#line 12 "include/linux/mod_devicetable.h"
4208typedef unsigned long kernel_ulong_t;
4209#line 38 "include/linux/mod_devicetable.h"
4210struct usb_device_id {
4211 __u16 match_flags ;
4212 __u16 idVendor ;
4213 __u16 idProduct ;
4214 __u16 bcdDevice_lo ;
4215 __u16 bcdDevice_hi ;
4216 __u8 bDeviceClass ;
4217 __u8 bDeviceSubClass ;
4218 __u8 bDeviceProtocol ;
4219 __u8 bInterfaceClass ;
4220 __u8 bInterfaceSubClass ;
4221 __u8 bInterfaceProtocol ;
4222 kernel_ulong_t driver_info ;
4223};
4224#line 215 "include/linux/mod_devicetable.h"
4225struct of_device_id {
4226 char name[32U] ;
4227 char type[32U] ;
4228 char compatible[128U] ;
4229 void *data ;
4230};
4231#line 584 "include/linux/mod_devicetable.h"
4232struct usb_ctrlrequest {
4233 __u8 bRequestType ;
4234 __u8 bRequest ;
4235 __le16 wValue ;
4236 __le16 wIndex ;
4237 __le16 wLength ;
4238};
4239#line 245 "include/linux/usb/ch9.h"
4240struct usb_device_descriptor {
4241 __u8 bLength ;
4242 __u8 bDescriptorType ;
4243 __le16 bcdUSB ;
4244 __u8 bDeviceClass ;
4245 __u8 bDeviceSubClass ;
4246 __u8 bDeviceProtocol ;
4247 __u8 bMaxPacketSize0 ;
4248 __le16 idVendor ;
4249 __le16 idProduct ;
4250 __le16 bcdDevice ;
4251 __u8 iManufacturer ;
4252 __u8 iProduct ;
4253 __u8 iSerialNumber ;
4254 __u8 bNumConfigurations ;
4255};
4256#line 267 "include/linux/usb/ch9.h"
4257struct usb_config_descriptor {
4258 __u8 bLength ;
4259 __u8 bDescriptorType ;
4260 __le16 wTotalLength ;
4261 __u8 bNumInterfaces ;
4262 __u8 bConfigurationValue ;
4263 __u8 iConfiguration ;
4264 __u8 bmAttributes ;
4265 __u8 bMaxPower ;
4266};
4267#line 335 "include/linux/usb/ch9.h"
4268struct usb_interface_descriptor {
4269 __u8 bLength ;
4270 __u8 bDescriptorType ;
4271 __u8 bInterfaceNumber ;
4272 __u8 bAlternateSetting ;
4273 __u8 bNumEndpoints ;
4274 __u8 bInterfaceClass ;
4275 __u8 bInterfaceSubClass ;
4276 __u8 bInterfaceProtocol ;
4277 __u8 iInterface ;
4278};
4279#line 355 "include/linux/usb/ch9.h"
4280struct usb_endpoint_descriptor {
4281 __u8 bLength ;
4282 __u8 bDescriptorType ;
4283 __u8 bEndpointAddress ;
4284 __u8 bmAttributes ;
4285 __le16 wMaxPacketSize ;
4286 __u8 bInterval ;
4287 __u8 bRefresh ;
4288 __u8 bSynchAddress ;
4289};
4290#line 594 "include/linux/usb/ch9.h"
4291struct usb_ss_ep_comp_descriptor {
4292 __u8 bLength ;
4293 __u8 bDescriptorType ;
4294 __u8 bMaxBurst ;
4295 __u8 bmAttributes ;
4296 __le16 wBytesPerInterval ;
4297};
4298#line 673 "include/linux/usb/ch9.h"
4299struct usb_interface_assoc_descriptor {
4300 __u8 bLength ;
4301 __u8 bDescriptorType ;
4302 __u8 bFirstInterface ;
4303 __u8 bInterfaceCount ;
4304 __u8 bFunctionClass ;
4305 __u8 bFunctionSubClass ;
4306 __u8 bFunctionProtocol ;
4307 __u8 iFunction ;
4308};
4309#line 732 "include/linux/usb/ch9.h"
4310struct usb_bos_descriptor {
4311 __u8 bLength ;
4312 __u8 bDescriptorType ;
4313 __le16 wTotalLength ;
4314 __u8 bNumDeviceCaps ;
4315};
4316#line 782 "include/linux/usb/ch9.h"
4317struct usb_ext_cap_descriptor {
4318 __u8 bLength ;
4319 __u8 bDescriptorType ;
4320 __u8 bDevCapabilityType ;
4321 __le32 bmAttributes ;
4322};
4323#line 792 "include/linux/usb/ch9.h"
4324struct usb_ss_cap_descriptor {
4325 __u8 bLength ;
4326 __u8 bDescriptorType ;
4327 __u8 bDevCapabilityType ;
4328 __u8 bmAttributes ;
4329 __le16 wSpeedSupported ;
4330 __u8 bFunctionalitySupport ;
4331 __u8 bU1devExitLat ;
4332 __le16 bU2DevExitLat ;
4333};
4334#line 821 "include/linux/usb/ch9.h"
4335struct usb_ss_container_id_descriptor {
4336 __u8 bLength ;
4337 __u8 bDescriptorType ;
4338 __u8 bDevCapabilityType ;
4339 __u8 bReserved ;
4340 __u8 ContainerID[16U] ;
4341};
4342#line 886
4343enum usb_device_speed {
4344 USB_SPEED_UNKNOWN = 0,
4345 USB_SPEED_LOW = 1,
4346 USB_SPEED_FULL = 2,
4347 USB_SPEED_HIGH = 3,
4348 USB_SPEED_WIRELESS = 4,
4349 USB_SPEED_SUPER = 5
4350} ;
4351#line 908
4352enum usb_device_state {
4353 USB_STATE_NOTATTACHED = 0,
4354 USB_STATE_ATTACHED = 1,
4355 USB_STATE_POWERED = 2,
4356 USB_STATE_RECONNECTING = 3,
4357 USB_STATE_UNAUTHENTICATED = 4,
4358 USB_STATE_DEFAULT = 5,
4359 USB_STATE_ADDRESS = 6,
4360 USB_STATE_CONFIGURED = 7,
4361 USB_STATE_SUSPENDED = 8
4362} ;
4363#line 253 "include/linux/pm_runtime.h"
4364struct usb_device;
4365#line 253
4366struct usb_device;
4367#line 255
4368struct wusb_dev;
4369#line 255
4370struct wusb_dev;
4371#line 256
4372struct ep_device;
4373#line 256
4374struct ep_device;
4375#line 257 "include/linux/pm_runtime.h"
4376struct usb_host_endpoint {
4377 struct usb_endpoint_descriptor desc ;
4378 struct usb_ss_ep_comp_descriptor ss_ep_comp ;
4379 struct list_head urb_list ;
4380 void *hcpriv ;
4381 struct ep_device *ep_dev ;
4382 unsigned char *extra ;
4383 int extralen ;
4384 int enabled ;
4385};
4386#line 75 "include/linux/usb.h"
4387struct usb_host_interface {
4388 struct usb_interface_descriptor desc ;
4389 struct usb_host_endpoint *endpoint ;
4390 char *string ;
4391 unsigned char *extra ;
4392 int extralen ;
4393};
4394#line 89
4395enum usb_interface_condition {
4396 USB_INTERFACE_UNBOUND = 0,
4397 USB_INTERFACE_BINDING = 1,
4398 USB_INTERFACE_BOUND = 2,
4399 USB_INTERFACE_UNBINDING = 3
4400} ;
4401#line 96 "include/linux/usb.h"
4402struct usb_interface {
4403 struct usb_host_interface *altsetting ;
4404 struct usb_host_interface *cur_altsetting ;
4405 unsigned int num_altsetting ;
4406 struct usb_interface_assoc_descriptor *intf_assoc ;
4407 int minor ;
4408 enum usb_interface_condition condition ;
4409 unsigned char sysfs_files_created : 1 ;
4410 unsigned char ep_devs_created : 1 ;
4411 unsigned char unregistering : 1 ;
4412 unsigned char needs_remote_wakeup : 1 ;
4413 unsigned char needs_altsetting0 : 1 ;
4414 unsigned char needs_binding : 1 ;
4415 unsigned char reset_running : 1 ;
4416 unsigned char resetting_device : 1 ;
4417 struct device dev ;
4418 struct device *usb_dev ;
4419 atomic_t pm_usage_cnt ;
4420 struct work_struct reset_ws ;
4421};
4422#line 203 "include/linux/usb.h"
4423struct usb_interface_cache {
4424 unsigned int num_altsetting ;
4425 struct kref ref ;
4426 struct usb_host_interface altsetting[0U] ;
4427};
4428#line 230 "include/linux/usb.h"
4429struct usb_host_config {
4430 struct usb_config_descriptor desc ;
4431 char *string ;
4432 struct usb_interface_assoc_descriptor *intf_assoc[16U] ;
4433 struct usb_interface *interface[32U] ;
4434 struct usb_interface_cache *intf_cache[32U] ;
4435 unsigned char *extra ;
4436 int extralen ;
4437};
4438#line 294 "include/linux/usb.h"
4439struct usb_host_bos {
4440 struct usb_bos_descriptor *desc ;
4441 struct usb_ext_cap_descriptor *ext_cap ;
4442 struct usb_ss_cap_descriptor *ss_cap ;
4443 struct usb_ss_container_id_descriptor *ss_id ;
4444};
4445#line 306 "include/linux/usb.h"
4446struct usb_devmap {
4447 unsigned long devicemap[2U] ;
4448};
4449#line 318
4450struct mon_bus;
4451#line 318 "include/linux/usb.h"
4452struct usb_bus {
4453 struct device *controller ;
4454 int busnum ;
4455 char const *bus_name ;
4456 u8 uses_dma ;
4457 u8 uses_pio_for_control ;
4458 u8 otg_port ;
4459 unsigned char is_b_host : 1 ;
4460 unsigned char b_hnp_enable : 1 ;
4461 unsigned int sg_tablesize ;
4462 int devnum_next ;
4463 struct usb_devmap devmap ;
4464 struct usb_device *root_hub ;
4465 struct usb_bus *hs_companion ;
4466 struct list_head bus_list ;
4467 int bandwidth_allocated ;
4468 int bandwidth_int_reqs ;
4469 int bandwidth_isoc_reqs ;
4470 struct dentry *usbfs_dentry ;
4471 struct mon_bus *mon_bus ;
4472 int monitored ;
4473};
4474#line 362
4475struct usb_tt;
4476#line 362
4477struct usb_tt;
4478#line 363
4479enum usb_device_removable {
4480 USB_DEVICE_REMOVABLE_UNKNOWN = 0,
4481 USB_DEVICE_REMOVABLE = 1,
4482 USB_DEVICE_FIXED = 2
4483} ;
4484#line 369 "include/linux/usb.h"
4485struct usb_device {
4486 int devnum ;
4487 char devpath[16U] ;
4488 u32 route ;
4489 enum usb_device_state state ;
4490 enum usb_device_speed speed ;
4491 struct usb_tt *tt ;
4492 int ttport ;
4493 unsigned int toggle[2U] ;
4494 struct usb_device *parent ;
4495 struct usb_bus *bus ;
4496 struct usb_host_endpoint ep0 ;
4497 struct device dev ;
4498 struct usb_device_descriptor descriptor ;
4499 struct usb_host_bos *bos ;
4500 struct usb_host_config *config ;
4501 struct usb_host_config *actconfig ;
4502 struct usb_host_endpoint *ep_in[16U] ;
4503 struct usb_host_endpoint *ep_out[16U] ;
4504 char **rawdescriptors ;
4505 unsigned short bus_mA ;
4506 u8 portnum ;
4507 u8 level ;
4508 unsigned char can_submit : 1 ;
4509 unsigned char persist_enabled : 1 ;
4510 unsigned char have_langid : 1 ;
4511 unsigned char authorized : 1 ;
4512 unsigned char authenticated : 1 ;
4513 unsigned char wusb : 1 ;
4514 unsigned char lpm_capable : 1 ;
4515 unsigned char usb2_hw_lpm_capable : 1 ;
4516 unsigned char usb2_hw_lpm_enabled : 1 ;
4517 int string_langid ;
4518 char *product ;
4519 char *manufacturer ;
4520 char *serial ;
4521 struct list_head filelist ;
4522 struct device *usb_classdev ;
4523 struct dentry *usbfs_dentry ;
4524 int maxchild ;
4525 struct usb_device **children ;
4526 u32 quirks ;
4527 atomic_t urbnum ;
4528 unsigned long active_duration ;
4529 unsigned long connect_time ;
4530 unsigned char do_remote_wakeup : 1 ;
4531 unsigned char reset_resume : 1 ;
4532 struct wusb_dev *wusb_dev ;
4533 int slot_id ;
4534 enum usb_device_removable removable ;
4535};
4536#line 986 "include/linux/usb.h"
4537struct usb_iso_packet_descriptor {
4538 unsigned int offset ;
4539 unsigned int length ;
4540 unsigned int actual_length ;
4541 int status ;
4542};
4543#line 1028
4544struct urb;
4545#line 1028
4546struct urb;
4547#line 1029 "include/linux/usb.h"
4548struct usb_anchor {
4549 struct list_head urb_list ;
4550 wait_queue_head_t wait ;
4551 spinlock_t lock ;
4552 unsigned char poisoned : 1 ;
4553};
4554#line 1046 "include/linux/usb.h"
4555struct urb {
4556 struct kref kref ;
4557 void *hcpriv ;
4558 atomic_t use_count ;
4559 atomic_t reject ;
4560 int unlinked ;
4561 struct list_head urb_list ;
4562 struct list_head anchor_list ;
4563 struct usb_anchor *anchor ;
4564 struct usb_device *dev ;
4565 struct usb_host_endpoint *ep ;
4566 unsigned int pipe ;
4567 unsigned int stream_id ;
4568 int status ;
4569 unsigned int transfer_flags ;
4570 void *transfer_buffer ;
4571 dma_addr_t transfer_dma ;
4572 struct scatterlist *sg ;
4573 int num_mapped_sgs ;
4574 int num_sgs ;
4575 u32 transfer_buffer_length ;
4576 u32 actual_length ;
4577 unsigned char *setup_packet ;
4578 dma_addr_t setup_dma ;
4579 int start_frame ;
4580 int number_of_packets ;
4581 int interval ;
4582 int error_count ;
4583 void *context ;
4584 void (*complete)(struct urb * ) ;
4585 struct usb_iso_packet_descriptor iso_frame_desc[0U] ;
4586};
4587#line 1468 "include/linux/usb.h"
4588struct usb_sg_request {
4589 int status ;
4590 size_t bytes ;
4591 spinlock_t lock ;
4592 struct usb_device *dev ;
4593 int pipe ;
4594 int entries ;
4595 struct urb **urbs ;
4596 int count ;
4597 struct completion complete ;
4598};
4599#line 95 "include/linux/usb_usual.h"
4600struct scsi_host_cmd_pool;
4601#line 95
4602struct scsi_host_cmd_pool;
4603#line 96
4604struct scsi_transport_template;
4605#line 96
4606struct scsi_transport_template;
4607#line 104 "include/linux/usb_usual.h"
4608struct scsi_host_template {
4609 struct module *module ;
4610 char const *name ;
4611 int (*detect)(struct scsi_host_template * ) ;
4612 int (*release)(struct Scsi_Host * ) ;
4613 char const *(*info)(struct Scsi_Host * ) ;
4614 int (*ioctl)(struct scsi_device * , int , void * ) ;
4615 int (*compat_ioctl)(struct scsi_device * , int , void * ) ;
4616 int (*queuecommand)(struct Scsi_Host * , struct scsi_cmnd * ) ;
4617 int (*transfer_response)(struct scsi_cmnd * , void (*)(struct scsi_cmnd * ) ) ;
4618 int (*eh_abort_handler)(struct scsi_cmnd * ) ;
4619 int (*eh_device_reset_handler)(struct scsi_cmnd * ) ;
4620 int (*eh_target_reset_handler)(struct scsi_cmnd * ) ;
4621 int (*eh_bus_reset_handler)(struct scsi_cmnd * ) ;
4622 int (*eh_host_reset_handler)(struct scsi_cmnd * ) ;
4623 int (*slave_alloc)(struct scsi_device * ) ;
4624 int (*slave_configure)(struct scsi_device * ) ;
4625 void (*slave_destroy)(struct scsi_device * ) ;
4626 int (*target_alloc)(struct scsi_target * ) ;
4627 void (*target_destroy)(struct scsi_target * ) ;
4628 int (*scan_finished)(struct Scsi_Host * , unsigned long ) ;
4629 void (*scan_start)(struct Scsi_Host * ) ;
4630 int (*change_queue_depth)(struct scsi_device * , int , int ) ;
4631 int (*change_queue_type)(struct scsi_device * , int ) ;
4632 int (*bios_param)(struct scsi_device * , struct block_device * , sector_t , int * ) ;
4633 void (*unlock_native_capacity)(struct scsi_device * ) ;
4634 int (*proc_info)(struct Scsi_Host * , char * , char ** , off_t , int , int ) ;
4635 enum blk_eh_timer_return (*eh_timed_out)(struct scsi_cmnd * ) ;
4636 int (*host_reset)(struct Scsi_Host * , int ) ;
4637 char const *proc_name ;
4638 struct proc_dir_entry *proc_dir ;
4639 int can_queue ;
4640 int this_id ;
4641 unsigned short sg_tablesize ;
4642 unsigned short sg_prot_tablesize ;
4643 unsigned short max_sectors ;
4644 unsigned long dma_boundary ;
4645 short cmd_per_lun ;
4646 unsigned char present ;
4647 unsigned char supported_mode : 2 ;
4648 unsigned char unchecked_isa_dma : 1 ;
4649 unsigned char use_clustering : 1 ;
4650 unsigned char emulated : 1 ;
4651 unsigned char skip_settle_delay : 1 ;
4652 unsigned char ordered_tag : 1 ;
4653 unsigned int max_host_blocked ;
4654 struct device_attribute **shost_attrs ;
4655 struct device_attribute **sdev_attrs ;
4656 struct list_head legacy_hosts ;
4657 u64 vendor_id ;
4658};
4659#line 518 "include/scsi/scsi_host.h"
4660enum scsi_host_state {
4661 SHOST_CREATED = 1,
4662 SHOST_RUNNING = 2,
4663 SHOST_CANCEL = 3,
4664 SHOST_DEL = 4,
4665 SHOST_RECOVERY = 5,
4666 SHOST_CANCEL_RECOVERY = 6,
4667 SHOST_DEL_RECOVERY = 7
4668} ;
4669#line 528 "include/scsi/scsi_host.h"
4670struct Scsi_Host {
4671 struct list_head __devices ;
4672 struct list_head __targets ;
4673 struct scsi_host_cmd_pool *cmd_pool ;
4674 spinlock_t free_list_lock ;
4675 struct list_head free_list ;
4676 struct list_head starved_list ;
4677 spinlock_t default_lock ;
4678 spinlock_t *host_lock ;
4679 struct mutex scan_mutex ;
4680 struct list_head eh_cmd_q ;
4681 struct task_struct *ehandler ;
4682 struct completion *eh_action ;
4683 wait_queue_head_t host_wait ;
4684 struct scsi_host_template *hostt ;
4685 struct scsi_transport_template *transportt ;
4686 struct blk_queue_tag *bqt ;
4687 unsigned int host_busy ;
4688 unsigned int host_failed ;
4689 unsigned int host_eh_scheduled ;
4690 unsigned int host_no ;
4691 int resetting ;
4692 unsigned long last_reset ;
4693 unsigned int max_id ;
4694 unsigned int max_lun ;
4695 unsigned int max_channel ;
4696 unsigned int unique_id ;
4697 unsigned short max_cmd_len ;
4698 int this_id ;
4699 int can_queue ;
4700 short cmd_per_lun ;
4701 unsigned short sg_tablesize ;
4702 unsigned short sg_prot_tablesize ;
4703 unsigned short max_sectors ;
4704 unsigned long dma_boundary ;
4705 unsigned long cmd_serial_number ;
4706 unsigned char active_mode : 2 ;
4707 unsigned char unchecked_isa_dma : 1 ;
4708 unsigned char use_clustering : 1 ;
4709 unsigned char use_blk_tcq : 1 ;
4710 unsigned char host_self_blocked : 1 ;
4711 unsigned char reverse_ordering : 1 ;
4712 unsigned char ordered_tag : 1 ;
4713 unsigned char tmf_in_progress : 1 ;
4714 unsigned char async_scan : 1 ;
4715 unsigned char eh_noresume : 1 ;
4716 char work_q_name[20U] ;
4717 struct workqueue_struct *work_q ;
4718 unsigned int host_blocked ;
4719 unsigned int max_host_blocked ;
4720 unsigned int prot_capabilities ;
4721 unsigned char prot_guard_type ;
4722 struct request_queue *uspace_req_q ;
4723 unsigned long base ;
4724 unsigned long io_port ;
4725 unsigned char n_io_port ;
4726 unsigned char dma_channel ;
4727 unsigned int irq ;
4728 enum scsi_host_state shost_state ;
4729 struct device shost_gendev ;
4730 struct device shost_dev ;
4731 struct list_head sht_legacy_list ;
4732 void *shost_data ;
4733 struct device *dma_dev ;
4734 unsigned long hostdata[0U] ;
4735};
4736#line 920
4737struct us_data;
4738#line 920
4739struct us_data;
4740#line 921 "include/scsi/scsi_host.h"
4741struct us_unusual_dev {
4742 char const *vendorName ;
4743 char const *productName ;
4744 __u8 useProtocol ;
4745 __u8 useTransport ;
4746 int (*initFunction)(struct us_data * ) ;
4747};
4748#line 97 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/drivers/usb/storage/usb.h"
4749struct us_data {
4750 struct mutex dev_mutex ;
4751 struct usb_device *pusb_dev ;
4752 struct usb_interface *pusb_intf ;
4753 struct us_unusual_dev *unusual_dev ;
4754 unsigned long fflags ;
4755 unsigned long dflags ;
4756 unsigned int send_bulk_pipe ;
4757 unsigned int recv_bulk_pipe ;
4758 unsigned int send_ctrl_pipe ;
4759 unsigned int recv_ctrl_pipe ;
4760 unsigned int recv_intr_pipe ;
4761 char *transport_name ;
4762 char *protocol_name ;
4763 __le32 bcs_signature ;
4764 u8 subclass ;
4765 u8 protocol ;
4766 u8 max_lun ;
4767 u8 ifnum ;
4768 u8 ep_bInterval ;
4769 int (*transport)(struct scsi_cmnd * , struct us_data * ) ;
4770 int (*transport_reset)(struct us_data * ) ;
4771 void (*proto_handler)(struct scsi_cmnd * , struct us_data * ) ;
4772 struct scsi_cmnd *srb ;
4773 unsigned int tag ;
4774 char scsi_name[32U] ;
4775 struct urb *current_urb ;
4776 struct usb_ctrlrequest *cr ;
4777 struct usb_sg_request current_sg ;
4778 unsigned char *iobuf ;
4779 dma_addr_t iobuf_dma ;
4780 struct task_struct *ctl_thread ;
4781 struct completion cmnd_ready ;
4782 struct completion notify ;
4783 wait_queue_head_t delay_wait ;
4784 struct delayed_work scan_dwork ;
4785 void *extra ;
4786 void (*extra_destructor)(void * ) ;
4787 void (*suspend_resume_hook)(struct us_data * , int ) ;
4788 int use_last_sector_hacks ;
4789 int last_sector_retries ;
4790};
4791#line 46 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/drivers/usb/storage/protocol.h"
4792enum xfer_buf_dir {
4793 TO_XFER_BUF = 0,
4794 FROM_XFER_BUF = 1
4795} ;
4796#line 64 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
4797struct alauda_media_info {
4798 unsigned long capacity ;
4799 unsigned int pagesize ;
4800 unsigned int blocksize ;
4801 unsigned int uzonesize ;
4802 unsigned int zonesize ;
4803 unsigned int blockmask ;
4804 unsigned char pageshift ;
4805 unsigned char blockshift ;
4806 unsigned char zoneshift ;
4807 u16 **lba_to_pba ;
4808 u16 **pba_to_lba ;
4809};
4810#line 124 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
4811struct alauda_info {
4812 struct alauda_media_info port[2U] ;
4813 int wr_ep ;
4814 unsigned char sense_key ;
4815 unsigned long sense_asc ;
4816 unsigned long sense_ascq ;
4817};
4818#line 27 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/drivers/usb/storage/unusual_alauda.h"
4819struct alauda_card_info {
4820 unsigned char id ;
4821 unsigned char chipshift ;
4822 unsigned char pageshift ;
4823 unsigned char blockshift ;
4824 unsigned char zoneshift ;
4825};
4826#line 1 "<compiler builtins>"
4827
4828#line 2 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
4829void ldv_spin_lock(void) ;
4830#line 3
4831void ldv_spin_unlock(void) ;
4832#line 4
4833int ldv_spin_trylock(void) ;
4834#line 7 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/swab.h"
4835__inline static __u32 __arch_swab32(__u32 val )
4836{
4837
4838 {
4839#line 21
4840 __asm__ ("bswapl %0": "=r" (val): "0" (val));
4841#line 25
4842 return (val);
4843}
4844}
4845#line 55 "include/linux/swab.h"
4846__inline static __u32 __fswab32(__u32 val )
4847{ __u32 tmp ;
4848
4849 {
4850 {
4851#line 58
4852 tmp = __arch_swab32(val);
4853 }
4854#line 58
4855 return (tmp);
4856}
4857}
4858#line 101 "include/linux/printk.h"
4859extern int printk(char const * , ...) ;
4860#line 34 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/string_64.h"
4861extern void *__memcpy(void * , void const * , size_t ) ;
4862#line 55
4863extern void *memset(void * , int , size_t ) ;
4864#line 58
4865extern void *memmove(void * , void const * , size_t ) ;
4866#line 161 "include/linux/slab.h"
4867extern void kfree(void const * ) ;
4868#line 220 "include/linux/slub_def.h"
4869extern void *kmem_cache_alloc(struct kmem_cache * , gfp_t ) ;
4870#line 223
4871void *ldv_kmem_cache_alloc_16(struct kmem_cache *ldv_func_arg1 , gfp_t ldv_func_arg2 ) ;
4872#line 225
4873extern void *__kmalloc(size_t , gfp_t ) ;
4874#line 268 "include/linux/slub_def.h"
4875__inline static void *ldv_kmalloc_12(size_t size , gfp_t flags )
4876{ void *tmp___2 ;
4877
4878 {
4879 {
4880#line 283
4881 tmp___2 = __kmalloc(size, flags);
4882 }
4883#line 283
4884 return (tmp___2);
4885}
4886}
4887#line 268
4888__inline static void *kmalloc(size_t size , gfp_t flags ) ;
4889#line 243 "include/linux/slab.h"
4890__inline static void *kmalloc_array(size_t n , size_t size , gfp_t flags )
4891{ void *tmp ;
4892 unsigned long __cil_tmp5 ;
4893 size_t __cil_tmp6 ;
4894
4895 {
4896#line 245
4897 if (size != 0UL) {
4898 {
4899#line 245
4900 __cil_tmp5 = 0xffffffffffffffffUL / size;
4901#line 245
4902 if (__cil_tmp5 < n) {
4903#line 246
4904 return ((void *)0);
4905 } else {
4906
4907 }
4908 }
4909 } else {
4910
4911 }
4912 {
4913#line 247
4914 __cil_tmp6 = n * size;
4915#line 247
4916 tmp = __kmalloc(__cil_tmp6, flags);
4917 }
4918#line 247
4919 return (tmp);
4920}
4921}
4922#line 256 "include/linux/slab.h"
4923__inline static void *ldv_kcalloc_14(size_t n , size_t size , gfp_t flags )
4924{ void *tmp ;
4925 unsigned int __cil_tmp5 ;
4926
4927 {
4928 {
4929#line 258
4930 __cil_tmp5 = flags | 32768U;
4931#line 258
4932 tmp = kmalloc_array(n, size, __cil_tmp5);
4933 }
4934#line 258
4935 return (tmp);
4936}
4937}
4938#line 256
4939__inline static void *kcalloc(size_t n , size_t size , gfp_t flags ) ;
4940#line 353
4941__inline static void *kzalloc(size_t size , gfp_t flags ) ;
4942#line 10 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
4943extern void *__VERIFIER_nondet_pointer(void) ;
4944#line 11
4945void ldv_check_alloc_flags(gfp_t flags ) ;
4946#line 12
4947void ldv_check_alloc_nonatomic(void) ;
4948#line 14
4949struct page *ldv_check_alloc_flags_and_return_some_page(gfp_t flags ) ;
4950#line 46 "include/linux/delay.h"
4951extern void msleep(unsigned int ) ;
4952#line 1567 "include/linux/usb.h"
4953__inline static unsigned int __create_pipe(struct usb_device *dev , unsigned int endpoint )
4954{ unsigned int __cil_tmp3 ;
4955 int __cil_tmp4 ;
4956 int __cil_tmp5 ;
4957 unsigned int __cil_tmp6 ;
4958
4959 {
4960 {
4961#line 1570
4962 __cil_tmp3 = endpoint << 15;
4963#line 1570
4964 __cil_tmp4 = *((int *)dev);
4965#line 1570
4966 __cil_tmp5 = __cil_tmp4 << 8;
4967#line 1570
4968 __cil_tmp6 = (unsigned int )__cil_tmp5;
4969#line 1570
4970 return (__cil_tmp6 | __cil_tmp3);
4971 }
4972}
4973}
4974#line 175 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/drivers/usb/storage/usb.h"
4975extern void fill_inquiry_response(struct us_data * , unsigned char * , unsigned int ) ;
4976#line 197
4977extern int usb_stor_probe1(struct us_data ** , struct usb_interface * , struct usb_device_id const * ,
4978 struct us_unusual_dev * ) ;
4979#line 201
4980extern int usb_stor_probe2(struct us_data * ) ;
4981#line 82 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/drivers/usb/storage/transport.h"
4982extern int usb_stor_Bulk_reset(struct us_data * ) ;
4983#line 92
4984extern int usb_stor_ctrl_transfer(struct us_data * , unsigned int , u8 , u8 , u16 ,
4985 u16 , void * , u16 ) ;
4986#line 95
4987extern int usb_stor_bulk_transfer_buf(struct us_data * , unsigned int , void * ,
4988 unsigned int , unsigned int * ) ;
4989#line 51 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/drivers/usb/storage/protocol.h"
4990extern unsigned int usb_stor_access_xfer_buf(unsigned char * , unsigned int , struct scsi_cmnd * ,
4991 struct scatterlist ** , unsigned int * ,
4992 enum xfer_buf_dir ) ;
4993#line 55
4994extern void usb_stor_set_xfer_buf(unsigned char * , unsigned int , struct scsi_cmnd * ) ;
4995#line 145 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
4996static int init_alauda(struct us_data *us ) ;
4997#line 157 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
4998static struct usb_device_id alauda_usb_ids[3U] = { {(__u16 )15U, (__u16 )1412U, (__u16 )8U, (__u16 )258U, (__u16 )258U, (unsigned char)0,
4999 (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0,
5000 16777216UL},
5001 {(__u16 )15U, (__u16 )1972U, (__u16 )266U, (__u16 )258U, (__u16 )258U, (unsigned char)0,
5002 (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0,
5003 16777216UL},
5004 {(unsigned short)0, (unsigned short)0, (unsigned short)0, (unsigned short)0,
5005 (unsigned short)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0,
5006 (unsigned char)0, (unsigned char)0, 0UL}};
5007#line 161 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
5008struct usb_device_id const __mod_usb_device_table ;
5009#line 179 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
5010static struct us_unusual_dev alauda_unusual_dev_list[3U] = { {"Fujifilm", "DPC-R1 (Alauda)", (__u8 )6U, (__u8 )244U, & init_alauda},
5011 {"Olympus", "MAUSB-10 (Alauda)", (__u8 )6U, (__u8 )244U, & init_alauda},
5012 {(char const *)0, (char const *)0, (unsigned char)0, (unsigned char)0, (int (*)(struct us_data * ))0}};
5013#line 199 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
5014static struct alauda_card_info alauda_card_ids[20U] =
5015#line 199
5016 { {(unsigned char)110, (unsigned char)20, (unsigned char)8, (unsigned char)4, (unsigned char)8},
5017 {(unsigned char)232,
5018 (unsigned char)20, (unsigned char)8, (unsigned char)4, (unsigned char)8},
5019 {(unsigned char)236, (unsigned char)20, (unsigned char)8, (unsigned char)4, (unsigned char)8},
5020 {(unsigned char)100,
5021 (unsigned char)21, (unsigned char)8, (unsigned char)4, (unsigned char)9},
5022 {(unsigned char)234, (unsigned char)21, (unsigned char)8, (unsigned char)4, (unsigned char)9},
5023 {(unsigned char)107,
5024 (unsigned char)22, (unsigned char)9, (unsigned char)4, (unsigned char)9},
5025 {(unsigned char)227, (unsigned char)22, (unsigned char)9, (unsigned char)4, (unsigned char)9},
5026 {(unsigned char)229,
5027 (unsigned char)22, (unsigned char)9, (unsigned char)4, (unsigned char)9},
5028 {(unsigned char)230, (unsigned char)23, (unsigned char)9, (unsigned char)4, (unsigned char)10},
5029 {(unsigned char)115,
5030 (unsigned char)24, (unsigned char)9, (unsigned char)5, (unsigned char)10},
5031 {(unsigned char)117, (unsigned char)25, (unsigned char)9, (unsigned char)5, (unsigned char)10},
5032 {(unsigned char)118,
5033 (unsigned char)26, (unsigned char)9, (unsigned char)5, (unsigned char)10},
5034 {(unsigned char)121, (unsigned char)27, (unsigned char)9, (unsigned char)5, (unsigned char)10},
5035 {(unsigned char)113,
5036 (unsigned char)28, (unsigned char)9, (unsigned char)5, (unsigned char)10},
5037 {(unsigned char)93, (unsigned char)21, (unsigned char)9, (unsigned char)4, (unsigned char)8},
5038 {(unsigned char)213,
5039 (unsigned char)22, (unsigned char)9, (unsigned char)4, (unsigned char)9},
5040 {(unsigned char)214, (unsigned char)23, (unsigned char)9, (unsigned char)4, (unsigned char)10},
5041 {(unsigned char)87,
5042 (unsigned char)24, (unsigned char)9, (unsigned char)4, (unsigned char)11},
5043 {(unsigned char)88, (unsigned char)25, (unsigned char)9, (unsigned char)4, (unsigned char)12},
5044 {(unsigned char)0,
5045 (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}};
5046#line 225 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
5047static struct alauda_card_info *alauda_card_find_id(unsigned char id )
5048{ int i ;
5049 int __cil_tmp3 ;
5050 unsigned long __cil_tmp4 ;
5051 unsigned long __cil_tmp5 ;
5052 unsigned char __cil_tmp6 ;
5053 int __cil_tmp7 ;
5054 unsigned long __cil_tmp8 ;
5055 struct alauda_card_info *__cil_tmp9 ;
5056 unsigned long __cil_tmp10 ;
5057 unsigned long __cil_tmp11 ;
5058 unsigned char __cil_tmp12 ;
5059 unsigned int __cil_tmp13 ;
5060
5061 {
5062#line 228
5063 i = 0;
5064#line 228
5065 goto ldv_31055;
5066 ldv_31054: ;
5067 {
5068#line 229
5069 __cil_tmp3 = (int )id;
5070#line 229
5071 __cil_tmp4 = i * 5UL;
5072#line 229
5073 __cil_tmp5 = (unsigned long )(alauda_card_ids) + __cil_tmp4;
5074#line 229
5075 __cil_tmp6 = *((unsigned char *)__cil_tmp5);
5076#line 229
5077 __cil_tmp7 = (int )__cil_tmp6;
5078#line 229
5079 if (__cil_tmp7 == __cil_tmp3) {
5080 {
5081#line 230
5082 __cil_tmp8 = (unsigned long )i;
5083#line 230
5084 __cil_tmp9 = (struct alauda_card_info *)(& alauda_card_ids);
5085#line 230
5086 return (__cil_tmp9 + __cil_tmp8);
5087 }
5088 } else {
5089
5090 }
5091 }
5092#line 228
5093 i = i + 1;
5094 ldv_31055: ;
5095 {
5096#line 228
5097 __cil_tmp10 = i * 5UL;
5098#line 228
5099 __cil_tmp11 = (unsigned long )(alauda_card_ids) + __cil_tmp10;
5100#line 228
5101 __cil_tmp12 = *((unsigned char *)__cil_tmp11);
5102#line 228
5103 __cil_tmp13 = (unsigned int )__cil_tmp12;
5104#line 228
5105 if (__cil_tmp13 != 0U) {
5106#line 229
5107 goto ldv_31054;
5108 } else {
5109#line 231
5110 goto ldv_31056;
5111 }
5112 }
5113 ldv_31056: ;
5114#line 231
5115 return ((struct alauda_card_info *)0);
5116}
5117}
5118#line 238 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
5119static unsigned char parity[256U] ;
5120#line 239 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
5121static unsigned char ecc2[256U] ;
5122#line 241 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
5123static void nand_init_ecc(void)
5124{ int i ;
5125 int j ;
5126 int a ;
5127 int tmp ;
5128 unsigned long __cil_tmp5 ;
5129 unsigned long __cil_tmp6 ;
5130 unsigned long __cil_tmp7 ;
5131 unsigned long __cil_tmp8 ;
5132 int __cil_tmp9 ;
5133 int __cil_tmp10 ;
5134 unsigned long __cil_tmp11 ;
5135 unsigned long __cil_tmp12 ;
5136 unsigned char __cil_tmp13 ;
5137 unsigned int __cil_tmp14 ;
5138 unsigned int __cil_tmp15 ;
5139 int __cil_tmp16 ;
5140 int __cil_tmp17 ;
5141 int __cil_tmp18 ;
5142 int __cil_tmp19 ;
5143 unsigned long __cil_tmp20 ;
5144 unsigned long __cil_tmp21 ;
5145 unsigned char __cil_tmp22 ;
5146 unsigned int __cil_tmp23 ;
5147 unsigned long __cil_tmp24 ;
5148 unsigned long __cil_tmp25 ;
5149 signed char __cil_tmp26 ;
5150 int __cil_tmp27 ;
5151 int __cil_tmp28 ;
5152 signed char __cil_tmp29 ;
5153 int __cil_tmp30 ;
5154 int __cil_tmp31 ;
5155 int __cil_tmp32 ;
5156
5157 {
5158#line 244
5159 __cil_tmp5 = 0 * 1UL;
5160#line 244
5161 __cil_tmp6 = (unsigned long )(parity) + __cil_tmp5;
5162#line 244
5163 *((unsigned char *)__cil_tmp6) = (unsigned char)0;
5164#line 245
5165 i = 1;
5166#line 245
5167 goto ldv_31066;
5168 ldv_31065:
5169#line 246
5170 __cil_tmp7 = i * 1UL;
5171#line 246
5172 __cil_tmp8 = (unsigned long )(parity) + __cil_tmp7;
5173#line 246
5174 __cil_tmp9 = i + -1;
5175#line 246
5176 __cil_tmp10 = __cil_tmp9 & i;
5177#line 246
5178 __cil_tmp11 = __cil_tmp10 * 1UL;
5179#line 246
5180 __cil_tmp12 = (unsigned long )(parity) + __cil_tmp11;
5181#line 246
5182 __cil_tmp13 = *((unsigned char *)__cil_tmp12);
5183#line 246
5184 __cil_tmp14 = (unsigned int )__cil_tmp13;
5185#line 246
5186 __cil_tmp15 = __cil_tmp14 ^ 1U;
5187#line 246
5188 *((unsigned char *)__cil_tmp8) = (unsigned char )__cil_tmp15;
5189#line 245
5190 i = i + 1;
5191 ldv_31066: ;
5192#line 245
5193 if (i <= 255) {
5194#line 246
5195 goto ldv_31065;
5196 } else {
5197#line 248
5198 goto ldv_31067;
5199 }
5200 ldv_31067:
5201#line 248
5202 i = 0;
5203#line 248
5204 goto ldv_31072;
5205 ldv_31071:
5206#line 249
5207 a = 0;
5208#line 250
5209 j = 0;
5210#line 250
5211 goto ldv_31069;
5212 ldv_31068: ;
5213 {
5214#line 251
5215 __cil_tmp16 = i >> j;
5216#line 251
5217 if (__cil_tmp16 & 1) {
5218 {
5219#line 252
5220 __cil_tmp17 = j & 1;
5221#line 252
5222 if (__cil_tmp17 == 0) {
5223#line 253
5224 a = a ^ 4;
5225 } else {
5226
5227 }
5228 }
5229 {
5230#line 254
5231 __cil_tmp18 = j & 2;
5232#line 254
5233 if (__cil_tmp18 == 0) {
5234#line 255
5235 a = a ^ 16;
5236 } else {
5237
5238 }
5239 }
5240 {
5241#line 256
5242 __cil_tmp19 = j & 4;
5243#line 256
5244 if (__cil_tmp19 == 0) {
5245#line 257
5246 a = a ^ 64;
5247 } else {
5248
5249 }
5250 }
5251 } else {
5252
5253 }
5254 }
5255#line 250
5256 j = j + 1;
5257 ldv_31069: ;
5258#line 250
5259 if (j <= 7) {
5260#line 251
5261 goto ldv_31068;
5262 } else {
5263#line 253
5264 goto ldv_31070;
5265 }
5266 ldv_31070: ;
5267 {
5268#line 260
5269 __cil_tmp20 = i * 1UL;
5270#line 260
5271 __cil_tmp21 = (unsigned long )(parity) + __cil_tmp20;
5272#line 260
5273 __cil_tmp22 = *((unsigned char *)__cil_tmp21);
5274#line 260
5275 __cil_tmp23 = (unsigned int )__cil_tmp22;
5276#line 260
5277 if (__cil_tmp23 != 0U) {
5278#line 260
5279 tmp = 87;
5280 } else {
5281#line 260
5282 tmp = -1;
5283 }
5284 }
5285#line 260
5286 __cil_tmp24 = i * 1UL;
5287#line 260
5288 __cil_tmp25 = (unsigned long )(ecc2) + __cil_tmp24;
5289#line 260
5290 __cil_tmp26 = (signed char )a;
5291#line 260
5292 __cil_tmp27 = (int )__cil_tmp26;
5293#line 260
5294 __cil_tmp28 = a << 1;
5295#line 260
5296 __cil_tmp29 = (signed char )__cil_tmp28;
5297#line 260
5298 __cil_tmp30 = (int )__cil_tmp29;
5299#line 260
5300 __cil_tmp31 = __cil_tmp30 ^ __cil_tmp27;
5301#line 260
5302 __cil_tmp32 = __cil_tmp31 ^ tmp;
5303#line 260
5304 *((unsigned char *)__cil_tmp25) = (unsigned char )__cil_tmp32;
5305#line 248
5306 i = i + 1;
5307 ldv_31072: ;
5308#line 248
5309 if (i <= 255) {
5310#line 249
5311 goto ldv_31071;
5312 } else {
5313#line 251
5314 goto ldv_31073;
5315 }
5316 ldv_31073: ;
5317#line 253
5318 return;
5319}
5320}
5321#line 265 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
5322static void nand_compute_ecc(unsigned char *data , unsigned char *ecc )
5323{ int i ;
5324 int j ;
5325 int a ;
5326 unsigned char par ;
5327 unsigned char bit ;
5328 unsigned char bits[8U] ;
5329 int tmp ;
5330 int tmp___0 ;
5331 unsigned long __cil_tmp11 ;
5332 unsigned long __cil_tmp12 ;
5333 int __cil_tmp13 ;
5334 unsigned long __cil_tmp14 ;
5335 unsigned char *__cil_tmp15 ;
5336 unsigned char __cil_tmp16 ;
5337 int __cil_tmp17 ;
5338 int __cil_tmp18 ;
5339 unsigned long __cil_tmp19 ;
5340 unsigned char *__cil_tmp20 ;
5341 unsigned char __cil_tmp21 ;
5342 int __cil_tmp22 ;
5343 unsigned long __cil_tmp23 ;
5344 unsigned long __cil_tmp24 ;
5345 int __cil_tmp25 ;
5346 int __cil_tmp26 ;
5347 unsigned long __cil_tmp27 ;
5348 unsigned long __cil_tmp28 ;
5349 int __cil_tmp29 ;
5350 unsigned long __cil_tmp30 ;
5351 unsigned long __cil_tmp31 ;
5352 unsigned char __cil_tmp32 ;
5353 int __cil_tmp33 ;
5354 int __cil_tmp34 ;
5355 unsigned long __cil_tmp35 ;
5356 unsigned long __cil_tmp36 ;
5357 unsigned char __cil_tmp37 ;
5358 int __cil_tmp38 ;
5359 unsigned long __cil_tmp39 ;
5360 unsigned long __cil_tmp40 ;
5361 unsigned char __cil_tmp41 ;
5362 int __cil_tmp42 ;
5363 int __cil_tmp43 ;
5364 unsigned long __cil_tmp44 ;
5365 unsigned long __cil_tmp45 ;
5366 unsigned char __cil_tmp46 ;
5367 int __cil_tmp47 ;
5368 int __cil_tmp48 ;
5369 unsigned long __cil_tmp49 ;
5370 unsigned long __cil_tmp50 ;
5371 unsigned char __cil_tmp51 ;
5372 int __cil_tmp52 ;
5373 int __cil_tmp53 ;
5374 int __cil_tmp54 ;
5375 int __cil_tmp55 ;
5376 int __cil_tmp56 ;
5377 unsigned long __cil_tmp57 ;
5378 unsigned long __cil_tmp58 ;
5379 unsigned char __cil_tmp59 ;
5380 unsigned int __cil_tmp60 ;
5381 signed char __cil_tmp61 ;
5382 int __cil_tmp62 ;
5383 int __cil_tmp63 ;
5384 signed char __cil_tmp64 ;
5385 int __cil_tmp65 ;
5386 int __cil_tmp66 ;
5387 int __cil_tmp67 ;
5388 unsigned long __cil_tmp68 ;
5389 unsigned long __cil_tmp69 ;
5390 unsigned char __cil_tmp70 ;
5391 int __cil_tmp71 ;
5392 unsigned long __cil_tmp72 ;
5393 unsigned long __cil_tmp73 ;
5394 unsigned char __cil_tmp74 ;
5395 int __cil_tmp75 ;
5396 int __cil_tmp76 ;
5397 unsigned long __cil_tmp77 ;
5398 unsigned long __cil_tmp78 ;
5399 unsigned char __cil_tmp79 ;
5400 int __cil_tmp80 ;
5401 int __cil_tmp81 ;
5402 unsigned long __cil_tmp82 ;
5403 unsigned long __cil_tmp83 ;
5404 unsigned char __cil_tmp84 ;
5405 int __cil_tmp85 ;
5406 int __cil_tmp86 ;
5407 int __cil_tmp87 ;
5408 int __cil_tmp88 ;
5409 int __cil_tmp89 ;
5410 unsigned long __cil_tmp90 ;
5411 unsigned long __cil_tmp91 ;
5412 unsigned char __cil_tmp92 ;
5413 unsigned int __cil_tmp93 ;
5414 unsigned char *__cil_tmp94 ;
5415 signed char __cil_tmp95 ;
5416 int __cil_tmp96 ;
5417 int __cil_tmp97 ;
5418 signed char __cil_tmp98 ;
5419 int __cil_tmp99 ;
5420 int __cil_tmp100 ;
5421 int __cil_tmp101 ;
5422 unsigned char *__cil_tmp102 ;
5423 int __cil_tmp103 ;
5424 unsigned long __cil_tmp104 ;
5425 unsigned long __cil_tmp105 ;
5426
5427 {
5428#line 269
5429 par = (unsigned char)0;
5430#line 270
5431 j = 0;
5432#line 270
5433 goto ldv_31085;
5434 ldv_31084:
5435#line 271
5436 __cil_tmp11 = j * 1UL;
5437#line 271
5438 __cil_tmp12 = (unsigned long )(bits) + __cil_tmp11;
5439#line 271
5440 *((unsigned char *)__cil_tmp12) = (unsigned char)0;
5441#line 270
5442 j = j + 1;
5443 ldv_31085: ;
5444#line 270
5445 if (j <= 7) {
5446#line 271
5447 goto ldv_31084;
5448 } else {
5449#line 273
5450 goto ldv_31086;
5451 }
5452 ldv_31086:
5453#line 274
5454 i = 0;
5455#line 274
5456 goto ldv_31091;
5457 ldv_31090:
5458#line 275
5459 __cil_tmp13 = (int )par;
5460#line 275
5461 __cil_tmp14 = (unsigned long )i;
5462#line 275
5463 __cil_tmp15 = data + __cil_tmp14;
5464#line 275
5465 __cil_tmp16 = *__cil_tmp15;
5466#line 275
5467 __cil_tmp17 = (int )__cil_tmp16;
5468#line 275
5469 __cil_tmp18 = __cil_tmp17 ^ __cil_tmp13;
5470#line 275
5471 par = (unsigned char )__cil_tmp18;
5472#line 276
5473 __cil_tmp19 = (unsigned long )i;
5474#line 276
5475 __cil_tmp20 = data + __cil_tmp19;
5476#line 276
5477 __cil_tmp21 = *__cil_tmp20;
5478#line 276
5479 __cil_tmp22 = (int )__cil_tmp21;
5480#line 276
5481 __cil_tmp23 = __cil_tmp22 * 1UL;
5482#line 276
5483 __cil_tmp24 = (unsigned long )(parity) + __cil_tmp23;
5484#line 276
5485 bit = *((unsigned char *)__cil_tmp24);
5486#line 277
5487 j = 0;
5488#line 277
5489 goto ldv_31088;
5490 ldv_31087: ;
5491 {
5492#line 278
5493 __cil_tmp25 = i >> j;
5494#line 278
5495 __cil_tmp26 = __cil_tmp25 & 1;
5496#line 278
5497 if (__cil_tmp26 == 0) {
5498#line 279
5499 __cil_tmp27 = j * 1UL;
5500#line 279
5501 __cil_tmp28 = (unsigned long )(bits) + __cil_tmp27;
5502#line 279
5503 __cil_tmp29 = (int )bit;
5504#line 279
5505 __cil_tmp30 = j * 1UL;
5506#line 279
5507 __cil_tmp31 = (unsigned long )(bits) + __cil_tmp30;
5508#line 279
5509 __cil_tmp32 = *((unsigned char *)__cil_tmp31);
5510#line 279
5511 __cil_tmp33 = (int )__cil_tmp32;
5512#line 279
5513 __cil_tmp34 = __cil_tmp33 ^ __cil_tmp29;
5514#line 279
5515 *((unsigned char *)__cil_tmp28) = (unsigned char )__cil_tmp34;
5516 } else {
5517
5518 }
5519 }
5520#line 277
5521 j = j + 1;
5522 ldv_31088: ;
5523#line 277
5524 if (j <= 7) {
5525#line 278
5526 goto ldv_31087;
5527 } else {
5528#line 280
5529 goto ldv_31089;
5530 }
5531 ldv_31089:
5532#line 274
5533 i = i + 1;
5534 ldv_31091: ;
5535#line 274
5536 if (i <= 255) {
5537#line 275
5538 goto ldv_31090;
5539 } else {
5540#line 277
5541 goto ldv_31092;
5542 }
5543 ldv_31092:
5544#line 283
5545 __cil_tmp35 = 0 * 1UL;
5546#line 283
5547 __cil_tmp36 = (unsigned long )(bits) + __cil_tmp35;
5548#line 283
5549 __cil_tmp37 = *((unsigned char *)__cil_tmp36);
5550#line 283
5551 __cil_tmp38 = (int )__cil_tmp37;
5552#line 283
5553 __cil_tmp39 = 1 * 1UL;
5554#line 283
5555 __cil_tmp40 = (unsigned long )(bits) + __cil_tmp39;
5556#line 283
5557 __cil_tmp41 = *((unsigned char *)__cil_tmp40);
5558#line 283
5559 __cil_tmp42 = (int )__cil_tmp41;
5560#line 283
5561 __cil_tmp43 = __cil_tmp42 << 2;
5562#line 283
5563 __cil_tmp44 = 2 * 1UL;
5564#line 283
5565 __cil_tmp45 = (unsigned long )(bits) + __cil_tmp44;
5566#line 283
5567 __cil_tmp46 = *((unsigned char *)__cil_tmp45);
5568#line 283
5569 __cil_tmp47 = (int )__cil_tmp46;
5570#line 283
5571 __cil_tmp48 = __cil_tmp47 << 4;
5572#line 283
5573 __cil_tmp49 = 3 * 1UL;
5574#line 283
5575 __cil_tmp50 = (unsigned long )(bits) + __cil_tmp49;
5576#line 283
5577 __cil_tmp51 = *((unsigned char *)__cil_tmp50);
5578#line 283
5579 __cil_tmp52 = (int )__cil_tmp51;
5580#line 283
5581 __cil_tmp53 = __cil_tmp52 << 6;
5582#line 283
5583 __cil_tmp54 = __cil_tmp53 + __cil_tmp48;
5584#line 283
5585 __cil_tmp55 = __cil_tmp54 + __cil_tmp43;
5586#line 283
5587 a = __cil_tmp55 + __cil_tmp38;
5588 {
5589#line 284
5590 __cil_tmp56 = (int )par;
5591#line 284
5592 __cil_tmp57 = __cil_tmp56 * 1UL;
5593#line 284
5594 __cil_tmp58 = (unsigned long )(parity) + __cil_tmp57;
5595#line 284
5596 __cil_tmp59 = *((unsigned char *)__cil_tmp58);
5597#line 284
5598 __cil_tmp60 = (unsigned int )__cil_tmp59;
5599#line 284
5600 if (__cil_tmp60 != 0U) {
5601#line 284
5602 tmp = 85;
5603 } else {
5604#line 284
5605 tmp = -1;
5606 }
5607 }
5608#line 284
5609 __cil_tmp61 = (signed char )a;
5610#line 284
5611 __cil_tmp62 = (int )__cil_tmp61;
5612#line 284
5613 __cil_tmp63 = a << 1;
5614#line 284
5615 __cil_tmp64 = (signed char )__cil_tmp63;
5616#line 284
5617 __cil_tmp65 = (int )__cil_tmp64;
5618#line 284
5619 __cil_tmp66 = __cil_tmp65 ^ __cil_tmp62;
5620#line 284
5621 __cil_tmp67 = __cil_tmp66 ^ tmp;
5622#line 284
5623 *ecc = (unsigned char )__cil_tmp67;
5624#line 286
5625 __cil_tmp68 = 4 * 1UL;
5626#line 286
5627 __cil_tmp69 = (unsigned long )(bits) + __cil_tmp68;
5628#line 286
5629 __cil_tmp70 = *((unsigned char *)__cil_tmp69);
5630#line 286
5631 __cil_tmp71 = (int )__cil_tmp70;
5632#line 286
5633 __cil_tmp72 = 5 * 1UL;
5634#line 286
5635 __cil_tmp73 = (unsigned long )(bits) + __cil_tmp72;
5636#line 286
5637 __cil_tmp74 = *((unsigned char *)__cil_tmp73);
5638#line 286
5639 __cil_tmp75 = (int )__cil_tmp74;
5640#line 286
5641 __cil_tmp76 = __cil_tmp75 << 2;
5642#line 286
5643 __cil_tmp77 = 6 * 1UL;
5644#line 286
5645 __cil_tmp78 = (unsigned long )(bits) + __cil_tmp77;
5646#line 286
5647 __cil_tmp79 = *((unsigned char *)__cil_tmp78);
5648#line 286
5649 __cil_tmp80 = (int )__cil_tmp79;
5650#line 286
5651 __cil_tmp81 = __cil_tmp80 << 4;
5652#line 286
5653 __cil_tmp82 = 7 * 1UL;
5654#line 286
5655 __cil_tmp83 = (unsigned long )(bits) + __cil_tmp82;
5656#line 286
5657 __cil_tmp84 = *((unsigned char *)__cil_tmp83);
5658#line 286
5659 __cil_tmp85 = (int )__cil_tmp84;
5660#line 286
5661 __cil_tmp86 = __cil_tmp85 << 6;
5662#line 286
5663 __cil_tmp87 = __cil_tmp86 + __cil_tmp81;
5664#line 286
5665 __cil_tmp88 = __cil_tmp87 + __cil_tmp76;
5666#line 286
5667 a = __cil_tmp88 + __cil_tmp71;
5668 {
5669#line 287
5670 __cil_tmp89 = (int )par;
5671#line 287
5672 __cil_tmp90 = __cil_tmp89 * 1UL;
5673#line 287
5674 __cil_tmp91 = (unsigned long )(parity) + __cil_tmp90;
5675#line 287
5676 __cil_tmp92 = *((unsigned char *)__cil_tmp91);
5677#line 287
5678 __cil_tmp93 = (unsigned int )__cil_tmp92;
5679#line 287
5680 if (__cil_tmp93 != 0U) {
5681#line 287
5682 tmp___0 = 85;
5683 } else {
5684#line 287
5685 tmp___0 = -1;
5686 }
5687 }
5688#line 287
5689 __cil_tmp94 = ecc + 1UL;
5690#line 287
5691 __cil_tmp95 = (signed char )a;
5692#line 287
5693 __cil_tmp96 = (int )__cil_tmp95;
5694#line 287
5695 __cil_tmp97 = a << 1;
5696#line 287
5697 __cil_tmp98 = (signed char )__cil_tmp97;
5698#line 287
5699 __cil_tmp99 = (int )__cil_tmp98;
5700#line 287
5701 __cil_tmp100 = __cil_tmp99 ^ __cil_tmp96;
5702#line 287
5703 __cil_tmp101 = __cil_tmp100 ^ tmp___0;
5704#line 287
5705 *__cil_tmp94 = (unsigned char )__cil_tmp101;
5706#line 289
5707 __cil_tmp102 = ecc + 2UL;
5708#line 289
5709 __cil_tmp103 = (int )par;
5710#line 289
5711 __cil_tmp104 = __cil_tmp103 * 1UL;
5712#line 289
5713 __cil_tmp105 = (unsigned long )(ecc2) + __cil_tmp104;
5714#line 289
5715 *__cil_tmp102 = *((unsigned char *)__cil_tmp105);
5716#line 290
5717 return;
5718}
5719}
5720#line 292 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
5721static int nand_compare_ecc(unsigned char *data , unsigned char *ecc )
5722{ int tmp ;
5723 unsigned char __cil_tmp4 ;
5724 int __cil_tmp5 ;
5725 unsigned char __cil_tmp6 ;
5726 int __cil_tmp7 ;
5727 unsigned char *__cil_tmp8 ;
5728 unsigned char __cil_tmp9 ;
5729 int __cil_tmp10 ;
5730 unsigned char *__cil_tmp11 ;
5731 unsigned char __cil_tmp12 ;
5732 int __cil_tmp13 ;
5733 unsigned char *__cil_tmp14 ;
5734 unsigned char __cil_tmp15 ;
5735 int __cil_tmp16 ;
5736 unsigned char *__cil_tmp17 ;
5737 unsigned char __cil_tmp18 ;
5738 int __cil_tmp19 ;
5739
5740 {
5741 {
5742#line 293
5743 __cil_tmp4 = *ecc;
5744#line 293
5745 __cil_tmp5 = (int )__cil_tmp4;
5746#line 293
5747 __cil_tmp6 = *data;
5748#line 293
5749 __cil_tmp7 = (int )__cil_tmp6;
5750#line 293
5751 if (__cil_tmp7 == __cil_tmp5) {
5752 {
5753#line 293
5754 __cil_tmp8 = ecc + 1UL;
5755#line 293
5756 __cil_tmp9 = *__cil_tmp8;
5757#line 293
5758 __cil_tmp10 = (int )__cil_tmp9;
5759#line 293
5760 __cil_tmp11 = data + 1UL;
5761#line 293
5762 __cil_tmp12 = *__cil_tmp11;
5763#line 293
5764 __cil_tmp13 = (int )__cil_tmp12;
5765#line 293
5766 if (__cil_tmp13 == __cil_tmp10) {
5767 {
5768#line 293
5769 __cil_tmp14 = ecc + 2UL;
5770#line 293
5771 __cil_tmp15 = *__cil_tmp14;
5772#line 293
5773 __cil_tmp16 = (int )__cil_tmp15;
5774#line 293
5775 __cil_tmp17 = data + 2UL;
5776#line 293
5777 __cil_tmp18 = *__cil_tmp17;
5778#line 293
5779 __cil_tmp19 = (int )__cil_tmp18;
5780#line 293
5781 if (__cil_tmp19 == __cil_tmp16) {
5782#line 293
5783 tmp = 1;
5784 } else {
5785#line 293
5786 tmp = 0;
5787 }
5788 }
5789 } else {
5790#line 293
5791 tmp = 0;
5792 }
5793 }
5794 } else {
5795#line 293
5796 tmp = 0;
5797 }
5798 }
5799#line 293
5800 return (tmp);
5801}
5802}
5803#line 296 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
5804static void nand_store_ecc(unsigned char *data , unsigned char *ecc )
5805{ size_t __len ;
5806 void *__ret ;
5807 void *__cil_tmp5 ;
5808 void const *__cil_tmp6 ;
5809 void *__cil_tmp7 ;
5810 void const *__cil_tmp8 ;
5811
5812 {
5813#line 297
5814 __len = 3UL;
5815#line 297
5816 if (__len > 63UL) {
5817 {
5818#line 297
5819 __cil_tmp5 = (void *)data;
5820#line 297
5821 __cil_tmp6 = (void const *)ecc;
5822#line 297
5823 __ret = __memcpy(__cil_tmp5, __cil_tmp6, __len);
5824 }
5825 } else {
5826 {
5827#line 297
5828 __cil_tmp7 = (void *)data;
5829#line 297
5830 __cil_tmp8 = (void const *)ecc;
5831#line 297
5832 __ret = __builtin_memcpy(__cil_tmp7, __cil_tmp8, __len);
5833 }
5834 }
5835#line 299
5836 return;
5837}
5838}
5839#line 307 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
5840static void alauda_free_maps(struct alauda_media_info *media_info )
5841{ unsigned int shift ;
5842 unsigned int num_zones ;
5843 unsigned int i ;
5844 unsigned long __cil_tmp5 ;
5845 unsigned long __cil_tmp6 ;
5846 unsigned char __cil_tmp7 ;
5847 int __cil_tmp8 ;
5848 unsigned long __cil_tmp9 ;
5849 unsigned long __cil_tmp10 ;
5850 unsigned char __cil_tmp11 ;
5851 int __cil_tmp12 ;
5852 unsigned long __cil_tmp13 ;
5853 unsigned long __cil_tmp14 ;
5854 unsigned char __cil_tmp15 ;
5855 int __cil_tmp16 ;
5856 int __cil_tmp17 ;
5857 int __cil_tmp18 ;
5858 int __cil_tmp19 ;
5859 unsigned long __cil_tmp20 ;
5860 unsigned long __cil_tmp21 ;
5861 u16 **__cil_tmp22 ;
5862 unsigned long __cil_tmp23 ;
5863 unsigned long __cil_tmp24 ;
5864 unsigned long __cil_tmp25 ;
5865 u16 **__cil_tmp26 ;
5866 unsigned long __cil_tmp27 ;
5867 unsigned long __cil_tmp28 ;
5868 unsigned long __cil_tmp29 ;
5869 unsigned long __cil_tmp30 ;
5870 u16 **__cil_tmp31 ;
5871 u16 **__cil_tmp32 ;
5872 u16 *__cil_tmp33 ;
5873 void const *__cil_tmp34 ;
5874 unsigned long __cil_tmp35 ;
5875 unsigned long __cil_tmp36 ;
5876 unsigned long __cil_tmp37 ;
5877 u16 **__cil_tmp38 ;
5878 u16 **__cil_tmp39 ;
5879 u16 **__cil_tmp40 ;
5880 unsigned long __cil_tmp41 ;
5881 unsigned long __cil_tmp42 ;
5882 unsigned long __cil_tmp43 ;
5883 u16 **__cil_tmp44 ;
5884 unsigned long __cil_tmp45 ;
5885 unsigned long __cil_tmp46 ;
5886 unsigned long __cil_tmp47 ;
5887 unsigned long __cil_tmp48 ;
5888 u16 **__cil_tmp49 ;
5889 u16 **__cil_tmp50 ;
5890 u16 *__cil_tmp51 ;
5891 void const *__cil_tmp52 ;
5892 unsigned long __cil_tmp53 ;
5893 unsigned long __cil_tmp54 ;
5894 unsigned long __cil_tmp55 ;
5895 u16 **__cil_tmp56 ;
5896 u16 **__cil_tmp57 ;
5897
5898 {
5899#line 309
5900 __cil_tmp5 = (unsigned long )media_info;
5901#line 309
5902 __cil_tmp6 = __cil_tmp5 + 28;
5903#line 309
5904 __cil_tmp7 = *((unsigned char *)__cil_tmp6);
5905#line 309
5906 __cil_tmp8 = (int )__cil_tmp7;
5907#line 309
5908 __cil_tmp9 = (unsigned long )media_info;
5909#line 309
5910 __cil_tmp10 = __cil_tmp9 + 29;
5911#line 309
5912 __cil_tmp11 = *((unsigned char *)__cil_tmp10);
5913#line 309
5914 __cil_tmp12 = (int )__cil_tmp11;
5915#line 309
5916 __cil_tmp13 = (unsigned long )media_info;
5917#line 309
5918 __cil_tmp14 = __cil_tmp13 + 30;
5919#line 309
5920 __cil_tmp15 = *((unsigned char *)__cil_tmp14);
5921#line 309
5922 __cil_tmp16 = (int )__cil_tmp15;
5923#line 309
5924 __cil_tmp17 = __cil_tmp16 + __cil_tmp12;
5925#line 309
5926 __cil_tmp18 = __cil_tmp17 + __cil_tmp8;
5927#line 309
5928 shift = (unsigned int )__cil_tmp18;
5929#line 311
5930 __cil_tmp19 = (int )shift;
5931#line 311
5932 __cil_tmp20 = *((unsigned long *)media_info);
5933#line 311
5934 __cil_tmp21 = __cil_tmp20 >> __cil_tmp19;
5935#line 311
5936 num_zones = (unsigned int )__cil_tmp21;
5937 {
5938#line 314
5939 __cil_tmp22 = (u16 **)0;
5940#line 314
5941 __cil_tmp23 = (unsigned long )__cil_tmp22;
5942#line 314
5943 __cil_tmp24 = (unsigned long )media_info;
5944#line 314
5945 __cil_tmp25 = __cil_tmp24 + 32;
5946#line 314
5947 __cil_tmp26 = *((u16 ***)__cil_tmp25);
5948#line 314
5949 __cil_tmp27 = (unsigned long )__cil_tmp26;
5950#line 314
5951 if (__cil_tmp27 != __cil_tmp23) {
5952#line 315
5953 i = 0U;
5954#line 315
5955 goto ldv_31111;
5956 ldv_31110:
5957 {
5958#line 316
5959 __cil_tmp28 = (unsigned long )i;
5960#line 316
5961 __cil_tmp29 = (unsigned long )media_info;
5962#line 316
5963 __cil_tmp30 = __cil_tmp29 + 32;
5964#line 316
5965 __cil_tmp31 = *((u16 ***)__cil_tmp30);
5966#line 316
5967 __cil_tmp32 = __cil_tmp31 + __cil_tmp28;
5968#line 316
5969 __cil_tmp33 = *__cil_tmp32;
5970#line 316
5971 __cil_tmp34 = (void const *)__cil_tmp33;
5972#line 316
5973 kfree(__cil_tmp34);
5974#line 317
5975 __cil_tmp35 = (unsigned long )i;
5976#line 317
5977 __cil_tmp36 = (unsigned long )media_info;
5978#line 317
5979 __cil_tmp37 = __cil_tmp36 + 32;
5980#line 317
5981 __cil_tmp38 = *((u16 ***)__cil_tmp37);
5982#line 317
5983 __cil_tmp39 = __cil_tmp38 + __cil_tmp35;
5984#line 317
5985 *__cil_tmp39 = (u16 *)0;
5986#line 315
5987 i = i + 1U;
5988 }
5989 ldv_31111: ;
5990#line 315
5991 if (i < num_zones) {
5992#line 316
5993 goto ldv_31110;
5994 } else {
5995#line 318
5996 goto ldv_31112;
5997 }
5998 ldv_31112: ;
5999 } else {
6000
6001 }
6002 }
6003 {
6004#line 320
6005 __cil_tmp40 = (u16 **)0;
6006#line 320
6007 __cil_tmp41 = (unsigned long )__cil_tmp40;
6008#line 320
6009 __cil_tmp42 = (unsigned long )media_info;
6010#line 320
6011 __cil_tmp43 = __cil_tmp42 + 40;
6012#line 320
6013 __cil_tmp44 = *((u16 ***)__cil_tmp43);
6014#line 320
6015 __cil_tmp45 = (unsigned long )__cil_tmp44;
6016#line 320
6017 if (__cil_tmp45 != __cil_tmp41) {
6018#line 321
6019 i = 0U;
6020#line 321
6021 goto ldv_31114;
6022 ldv_31113:
6023 {
6024#line 322
6025 __cil_tmp46 = (unsigned long )i;
6026#line 322
6027 __cil_tmp47 = (unsigned long )media_info;
6028#line 322
6029 __cil_tmp48 = __cil_tmp47 + 40;
6030#line 322
6031 __cil_tmp49 = *((u16 ***)__cil_tmp48);
6032#line 322
6033 __cil_tmp50 = __cil_tmp49 + __cil_tmp46;
6034#line 322
6035 __cil_tmp51 = *__cil_tmp50;
6036#line 322
6037 __cil_tmp52 = (void const *)__cil_tmp51;
6038#line 322
6039 kfree(__cil_tmp52);
6040#line 323
6041 __cil_tmp53 = (unsigned long )i;
6042#line 323
6043 __cil_tmp54 = (unsigned long )media_info;
6044#line 323
6045 __cil_tmp55 = __cil_tmp54 + 40;
6046#line 323
6047 __cil_tmp56 = *((u16 ***)__cil_tmp55);
6048#line 323
6049 __cil_tmp57 = __cil_tmp56 + __cil_tmp53;
6050#line 323
6051 *__cil_tmp57 = (u16 *)0;
6052#line 321
6053 i = i + 1U;
6054 }
6055 ldv_31114: ;
6056#line 321
6057 if (i < num_zones) {
6058#line 322
6059 goto ldv_31113;
6060 } else {
6061#line 324
6062 goto ldv_31115;
6063 }
6064 ldv_31115: ;
6065 } else {
6066
6067 }
6068 }
6069#line 327
6070 return;
6071}
6072}
6073#line 331 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
6074static int alauda_get_media_status(struct us_data *us , unsigned char *data )
6075{ int rc ;
6076 unsigned char command ;
6077 unsigned long __cil_tmp5 ;
6078 unsigned long __cil_tmp6 ;
6079 struct scsi_cmnd *__cil_tmp7 ;
6080 struct scsi_device *__cil_tmp8 ;
6081 unsigned long __cil_tmp9 ;
6082 unsigned long __cil_tmp10 ;
6083 unsigned int __cil_tmp11 ;
6084 unsigned long __cil_tmp12 ;
6085 unsigned long __cil_tmp13 ;
6086 unsigned int __cil_tmp14 ;
6087 int __cil_tmp15 ;
6088 u8 __cil_tmp16 ;
6089 u8 __cil_tmp17 ;
6090 u16 __cil_tmp18 ;
6091 u16 __cil_tmp19 ;
6092 void *__cil_tmp20 ;
6093 u16 __cil_tmp21 ;
6094 unsigned char __cil_tmp22 ;
6095 int __cil_tmp23 ;
6096 unsigned char *__cil_tmp24 ;
6097 unsigned char __cil_tmp25 ;
6098 int __cil_tmp26 ;
6099
6100 {
6101 {
6102#line 336
6103 __cil_tmp5 = (unsigned long )us;
6104#line 336
6105 __cil_tmp6 = __cil_tmp5 + 288;
6106#line 336
6107 __cil_tmp7 = *((struct scsi_cmnd **)__cil_tmp6);
6108#line 336
6109 __cil_tmp8 = *((struct scsi_device **)__cil_tmp7);
6110#line 336
6111 __cil_tmp9 = (unsigned long )__cil_tmp8;
6112#line 336
6113 __cil_tmp10 = __cil_tmp9 + 204;
6114#line 336
6115 __cil_tmp11 = *((unsigned int *)__cil_tmp10);
6116#line 336
6117 if (__cil_tmp11 == 0U) {
6118#line 337
6119 command = (unsigned char)8;
6120 } else {
6121#line 339
6122 command = (unsigned char)152;
6123 }
6124 }
6125 {
6126#line 341
6127 __cil_tmp12 = (unsigned long )us;
6128#line 341
6129 __cil_tmp13 = __cil_tmp12 + 220;
6130#line 341
6131 __cil_tmp14 = *((unsigned int *)__cil_tmp13);
6132#line 341
6133 __cil_tmp15 = (int )command;
6134#line 341
6135 __cil_tmp16 = (u8 )__cil_tmp15;
6136#line 341
6137 __cil_tmp17 = (u8 )192;
6138#line 341
6139 __cil_tmp18 = (u16 )0;
6140#line 341
6141 __cil_tmp19 = (u16 )1;
6142#line 341
6143 __cil_tmp20 = (void *)data;
6144#line 341
6145 __cil_tmp21 = (u16 )2;
6146#line 341
6147 rc = usb_stor_ctrl_transfer(us, __cil_tmp14, __cil_tmp16, __cil_tmp17, __cil_tmp18,
6148 __cil_tmp19, __cil_tmp20, __cil_tmp21);
6149#line 344
6150 __cil_tmp22 = *data;
6151#line 344
6152 __cil_tmp23 = (int )__cil_tmp22;
6153#line 344
6154 __cil_tmp24 = data + 1UL;
6155#line 344
6156 __cil_tmp25 = *__cil_tmp24;
6157#line 344
6158 __cil_tmp26 = (int )__cil_tmp25;
6159#line 344
6160 printk("<7>usb-storage: alauda_get_media_status: Media status %02X %02X\n", __cil_tmp23,
6161 __cil_tmp26);
6162 }
6163#line 347
6164 return (rc);
6165}
6166}
6167#line 354 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
6168static int alauda_ack_media(struct us_data *us )
6169{ unsigned char command ;
6170 int tmp ;
6171 unsigned long __cil_tmp4 ;
6172 unsigned long __cil_tmp5 ;
6173 struct scsi_cmnd *__cil_tmp6 ;
6174 struct scsi_device *__cil_tmp7 ;
6175 unsigned long __cil_tmp8 ;
6176 unsigned long __cil_tmp9 ;
6177 unsigned int __cil_tmp10 ;
6178 unsigned long __cil_tmp11 ;
6179 unsigned long __cil_tmp12 ;
6180 unsigned int __cil_tmp13 ;
6181 int __cil_tmp14 ;
6182 u8 __cil_tmp15 ;
6183 u8 __cil_tmp16 ;
6184 u16 __cil_tmp17 ;
6185 u16 __cil_tmp18 ;
6186 void *__cil_tmp19 ;
6187 u16 __cil_tmp20 ;
6188
6189 {
6190 {
6191#line 358
6192 __cil_tmp4 = (unsigned long )us;
6193#line 358
6194 __cil_tmp5 = __cil_tmp4 + 288;
6195#line 358
6196 __cil_tmp6 = *((struct scsi_cmnd **)__cil_tmp5);
6197#line 358
6198 __cil_tmp7 = *((struct scsi_device **)__cil_tmp6);
6199#line 358
6200 __cil_tmp8 = (unsigned long )__cil_tmp7;
6201#line 358
6202 __cil_tmp9 = __cil_tmp8 + 204;
6203#line 358
6204 __cil_tmp10 = *((unsigned int *)__cil_tmp9);
6205#line 358
6206 if (__cil_tmp10 == 0U) {
6207#line 359
6208 command = (unsigned char)10;
6209 } else {
6210#line 361
6211 command = (unsigned char)154;
6212 }
6213 }
6214 {
6215#line 363
6216 __cil_tmp11 = (unsigned long )us;
6217#line 363
6218 __cil_tmp12 = __cil_tmp11 + 216;
6219#line 363
6220 __cil_tmp13 = *((unsigned int *)__cil_tmp12);
6221#line 363
6222 __cil_tmp14 = (int )command;
6223#line 363
6224 __cil_tmp15 = (u8 )__cil_tmp14;
6225#line 363
6226 __cil_tmp16 = (u8 )64;
6227#line 363
6228 __cil_tmp17 = (u16 )0;
6229#line 363
6230 __cil_tmp18 = (u16 )1;
6231#line 363
6232 __cil_tmp19 = (void *)0;
6233#line 363
6234 __cil_tmp20 = (u16 )0;
6235#line 363
6236 tmp = usb_stor_ctrl_transfer(us, __cil_tmp13, __cil_tmp15, __cil_tmp16, __cil_tmp17,
6237 __cil_tmp18, __cil_tmp19, __cil_tmp20);
6238 }
6239#line 363
6240 return (tmp);
6241}
6242}
6243#line 371 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
6244static int alauda_get_media_signature(struct us_data *us , unsigned char *data )
6245{ unsigned char command ;
6246 int tmp ;
6247 unsigned long __cil_tmp5 ;
6248 unsigned long __cil_tmp6 ;
6249 struct scsi_cmnd *__cil_tmp7 ;
6250 struct scsi_device *__cil_tmp8 ;
6251 unsigned long __cil_tmp9 ;
6252 unsigned long __cil_tmp10 ;
6253 unsigned int __cil_tmp11 ;
6254 unsigned long __cil_tmp12 ;
6255 unsigned long __cil_tmp13 ;
6256 unsigned int __cil_tmp14 ;
6257 int __cil_tmp15 ;
6258 u8 __cil_tmp16 ;
6259 u8 __cil_tmp17 ;
6260 u16 __cil_tmp18 ;
6261 u16 __cil_tmp19 ;
6262 void *__cil_tmp20 ;
6263 u16 __cil_tmp21 ;
6264
6265 {
6266 {
6267#line 375
6268 __cil_tmp5 = (unsigned long )us;
6269#line 375
6270 __cil_tmp6 = __cil_tmp5 + 288;
6271#line 375
6272 __cil_tmp7 = *((struct scsi_cmnd **)__cil_tmp6);
6273#line 375
6274 __cil_tmp8 = *((struct scsi_device **)__cil_tmp7);
6275#line 375
6276 __cil_tmp9 = (unsigned long )__cil_tmp8;
6277#line 375
6278 __cil_tmp10 = __cil_tmp9 + 204;
6279#line 375
6280 __cil_tmp11 = *((unsigned int *)__cil_tmp10);
6281#line 375
6282 if (__cil_tmp11 == 0U) {
6283#line 376
6284 command = (unsigned char)134;
6285 } else {
6286#line 378
6287 command = (unsigned char)150;
6288 }
6289 }
6290 {
6291#line 380
6292 __cil_tmp12 = (unsigned long )us;
6293#line 380
6294 __cil_tmp13 = __cil_tmp12 + 220;
6295#line 380
6296 __cil_tmp14 = *((unsigned int *)__cil_tmp13);
6297#line 380
6298 __cil_tmp15 = (int )command;
6299#line 380
6300 __cil_tmp16 = (u8 )__cil_tmp15;
6301#line 380
6302 __cil_tmp17 = (u8 )192;
6303#line 380
6304 __cil_tmp18 = (u16 )0;
6305#line 380
6306 __cil_tmp19 = (u16 )0;
6307#line 380
6308 __cil_tmp20 = (void *)data;
6309#line 380
6310 __cil_tmp21 = (u16 )4;
6311#line 380
6312 tmp = usb_stor_ctrl_transfer(us, __cil_tmp14, __cil_tmp16, __cil_tmp17, __cil_tmp18,
6313 __cil_tmp19, __cil_tmp20, __cil_tmp21);
6314 }
6315#line 380
6316 return (tmp);
6317}
6318}
6319#line 387 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
6320static int alauda_reset_media(struct us_data *us )
6321{ unsigned char *command ;
6322 int tmp ;
6323 unsigned long __cil_tmp4 ;
6324 unsigned long __cil_tmp5 ;
6325 void *__cil_tmp6 ;
6326 unsigned char *__cil_tmp7 ;
6327 unsigned char *__cil_tmp8 ;
6328 unsigned long __cil_tmp9 ;
6329 unsigned long __cil_tmp10 ;
6330 struct scsi_cmnd *__cil_tmp11 ;
6331 struct scsi_device *__cil_tmp12 ;
6332 unsigned long __cil_tmp13 ;
6333 unsigned long __cil_tmp14 ;
6334 unsigned int __cil_tmp15 ;
6335 unsigned long __cil_tmp16 ;
6336 unsigned long __cil_tmp17 ;
6337 unsigned int __cil_tmp18 ;
6338 void *__cil_tmp19 ;
6339 unsigned int *__cil_tmp20 ;
6340
6341 {
6342 {
6343#line 389
6344 __cil_tmp4 = (unsigned long )us;
6345#line 389
6346 __cil_tmp5 = __cil_tmp4 + 568;
6347#line 389
6348 command = *((unsigned char **)__cil_tmp5);
6349#line 391
6350 __cil_tmp6 = (void *)command;
6351#line 391
6352 memset(__cil_tmp6, 0, 9UL);
6353#line 392
6354 *command = (unsigned char)64;
6355#line 393
6356 __cil_tmp7 = command + 1UL;
6357#line 393
6358 *__cil_tmp7 = (unsigned char)224;
6359#line 394
6360 __cil_tmp8 = command + 8UL;
6361#line 394
6362 __cil_tmp9 = (unsigned long )us;
6363#line 394
6364 __cil_tmp10 = __cil_tmp9 + 288;
6365#line 394
6366 __cil_tmp11 = *((struct scsi_cmnd **)__cil_tmp10);
6367#line 394
6368 __cil_tmp12 = *((struct scsi_device **)__cil_tmp11);
6369#line 394
6370 __cil_tmp13 = (unsigned long )__cil_tmp12;
6371#line 394
6372 __cil_tmp14 = __cil_tmp13 + 204;
6373#line 394
6374 __cil_tmp15 = *((unsigned int *)__cil_tmp14);
6375#line 394
6376 *__cil_tmp8 = (unsigned char )__cil_tmp15;
6377#line 396
6378 __cil_tmp16 = (unsigned long )us;
6379#line 396
6380 __cil_tmp17 = __cil_tmp16 + 208;
6381#line 396
6382 __cil_tmp18 = *((unsigned int *)__cil_tmp17);
6383#line 396
6384 __cil_tmp19 = (void *)command;
6385#line 396
6386 __cil_tmp20 = (unsigned int *)0;
6387#line 396
6388 tmp = usb_stor_bulk_transfer_buf(us, __cil_tmp18, __cil_tmp19, 9U, __cil_tmp20);
6389 }
6390#line 396
6391 return (tmp);
6392}
6393}
6394#line 403 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
6395static int alauda_init_media(struct us_data *us )
6396{ unsigned char *data ;
6397 int ready ;
6398 struct alauda_card_info *media_info ;
6399 unsigned int num_zones ;
6400 int tmp ;
6401 int tmp___0 ;
6402 int tmp___1 ;
6403 int tmp___2 ;
6404 void *tmp___3 ;
6405 void *tmp___4 ;
6406 int tmp___5 ;
6407 unsigned long __cil_tmp13 ;
6408 unsigned long __cil_tmp14 ;
6409 unsigned char __cil_tmp15 ;
6410 int __cil_tmp16 ;
6411 int __cil_tmp17 ;
6412 unsigned char __cil_tmp18 ;
6413 unsigned int __cil_tmp19 ;
6414 unsigned char __cil_tmp20 ;
6415 int __cil_tmp21 ;
6416 unsigned char *__cil_tmp22 ;
6417 unsigned char __cil_tmp23 ;
6418 int __cil_tmp24 ;
6419 unsigned char *__cil_tmp25 ;
6420 unsigned char __cil_tmp26 ;
6421 int __cil_tmp27 ;
6422 unsigned char *__cil_tmp28 ;
6423 unsigned char __cil_tmp29 ;
6424 int __cil_tmp30 ;
6425 unsigned char *__cil_tmp31 ;
6426 unsigned char __cil_tmp32 ;
6427 int __cil_tmp33 ;
6428 unsigned char __cil_tmp34 ;
6429 struct alauda_card_info *__cil_tmp35 ;
6430 unsigned long __cil_tmp36 ;
6431 unsigned long __cil_tmp37 ;
6432 unsigned char __cil_tmp38 ;
6433 int __cil_tmp39 ;
6434 unsigned char *__cil_tmp40 ;
6435 unsigned char __cil_tmp41 ;
6436 int __cil_tmp42 ;
6437 unsigned char *__cil_tmp43 ;
6438 unsigned char __cil_tmp44 ;
6439 int __cil_tmp45 ;
6440 unsigned char *__cil_tmp46 ;
6441 unsigned char __cil_tmp47 ;
6442 int __cil_tmp48 ;
6443 unsigned long __cil_tmp49 ;
6444 unsigned long __cil_tmp50 ;
6445 struct scsi_cmnd *__cil_tmp51 ;
6446 struct scsi_device *__cil_tmp52 ;
6447 unsigned long __cil_tmp53 ;
6448 unsigned long __cil_tmp54 ;
6449 unsigned int __cil_tmp55 ;
6450 unsigned long __cil_tmp56 ;
6451 unsigned long __cil_tmp57 ;
6452 unsigned long __cil_tmp58 ;
6453 unsigned long __cil_tmp59 ;
6454 void *__cil_tmp60 ;
6455 struct alauda_info *__cil_tmp61 ;
6456 unsigned long __cil_tmp62 ;
6457 unsigned long __cil_tmp63 ;
6458 unsigned long __cil_tmp64 ;
6459 unsigned long __cil_tmp65 ;
6460 unsigned char __cil_tmp66 ;
6461 int __cil_tmp67 ;
6462 int __cil_tmp68 ;
6463 unsigned long __cil_tmp69 ;
6464 unsigned long __cil_tmp70 ;
6465 struct scsi_cmnd *__cil_tmp71 ;
6466 struct scsi_device *__cil_tmp72 ;
6467 unsigned long __cil_tmp73 ;
6468 unsigned long __cil_tmp74 ;
6469 unsigned int __cil_tmp75 ;
6470 unsigned long __cil_tmp76 ;
6471 unsigned long __cil_tmp77 ;
6472 unsigned long __cil_tmp78 ;
6473 unsigned long __cil_tmp79 ;
6474 void *__cil_tmp80 ;
6475 struct alauda_info *__cil_tmp81 ;
6476 unsigned long __cil_tmp82 ;
6477 unsigned long __cil_tmp83 ;
6478 unsigned long __cil_tmp84 ;
6479 unsigned long __cil_tmp85 ;
6480 unsigned long __cil_tmp86 ;
6481 unsigned long __cil_tmp87 ;
6482 struct scsi_cmnd *__cil_tmp88 ;
6483 struct scsi_device *__cil_tmp89 ;
6484 unsigned long __cil_tmp90 ;
6485 unsigned long __cil_tmp91 ;
6486 unsigned int __cil_tmp92 ;
6487 unsigned long __cil_tmp93 ;
6488 unsigned long __cil_tmp94 ;
6489 unsigned long __cil_tmp95 ;
6490 unsigned long __cil_tmp96 ;
6491 unsigned long __cil_tmp97 ;
6492 void *__cil_tmp98 ;
6493 struct alauda_info *__cil_tmp99 ;
6494 unsigned long __cil_tmp100 ;
6495 unsigned long __cil_tmp101 ;
6496 unsigned long __cil_tmp102 ;
6497 unsigned long __cil_tmp103 ;
6498 unsigned long __cil_tmp104 ;
6499 unsigned long __cil_tmp105 ;
6500 struct scsi_cmnd *__cil_tmp106 ;
6501 struct scsi_device *__cil_tmp107 ;
6502 unsigned long __cil_tmp108 ;
6503 unsigned long __cil_tmp109 ;
6504 unsigned int __cil_tmp110 ;
6505 unsigned long __cil_tmp111 ;
6506 unsigned long __cil_tmp112 ;
6507 unsigned long __cil_tmp113 ;
6508 unsigned long __cil_tmp114 ;
6509 unsigned long __cil_tmp115 ;
6510 void *__cil_tmp116 ;
6511 struct alauda_info *__cil_tmp117 ;
6512 unsigned long __cil_tmp118 ;
6513 unsigned long __cil_tmp119 ;
6514 unsigned long __cil_tmp120 ;
6515 unsigned long __cil_tmp121 ;
6516 unsigned long __cil_tmp122 ;
6517 unsigned long __cil_tmp123 ;
6518 struct scsi_cmnd *__cil_tmp124 ;
6519 struct scsi_device *__cil_tmp125 ;
6520 unsigned long __cil_tmp126 ;
6521 unsigned long __cil_tmp127 ;
6522 unsigned int __cil_tmp128 ;
6523 unsigned long __cil_tmp129 ;
6524 unsigned long __cil_tmp130 ;
6525 unsigned long __cil_tmp131 ;
6526 unsigned long __cil_tmp132 ;
6527 unsigned long __cil_tmp133 ;
6528 void *__cil_tmp134 ;
6529 struct alauda_info *__cil_tmp135 ;
6530 unsigned long __cil_tmp136 ;
6531 unsigned long __cil_tmp137 ;
6532 unsigned long __cil_tmp138 ;
6533 unsigned long __cil_tmp139 ;
6534 unsigned long __cil_tmp140 ;
6535 unsigned long __cil_tmp141 ;
6536 struct scsi_cmnd *__cil_tmp142 ;
6537 struct scsi_device *__cil_tmp143 ;
6538 unsigned long __cil_tmp144 ;
6539 unsigned long __cil_tmp145 ;
6540 unsigned int __cil_tmp146 ;
6541 unsigned long __cil_tmp147 ;
6542 unsigned long __cil_tmp148 ;
6543 unsigned long __cil_tmp149 ;
6544 unsigned long __cil_tmp150 ;
6545 unsigned long __cil_tmp151 ;
6546 void *__cil_tmp152 ;
6547 struct alauda_info *__cil_tmp153 ;
6548 unsigned long __cil_tmp154 ;
6549 unsigned long __cil_tmp155 ;
6550 unsigned long __cil_tmp156 ;
6551 unsigned long __cil_tmp157 ;
6552 unsigned char __cil_tmp158 ;
6553 int __cil_tmp159 ;
6554 int __cil_tmp160 ;
6555 unsigned long __cil_tmp161 ;
6556 unsigned long __cil_tmp162 ;
6557 struct scsi_cmnd *__cil_tmp163 ;
6558 struct scsi_device *__cil_tmp164 ;
6559 unsigned long __cil_tmp165 ;
6560 unsigned long __cil_tmp166 ;
6561 unsigned int __cil_tmp167 ;
6562 unsigned long __cil_tmp168 ;
6563 unsigned long __cil_tmp169 ;
6564 unsigned long __cil_tmp170 ;
6565 unsigned long __cil_tmp171 ;
6566 unsigned long __cil_tmp172 ;
6567 void *__cil_tmp173 ;
6568 struct alauda_info *__cil_tmp174 ;
6569 unsigned long __cil_tmp175 ;
6570 unsigned long __cil_tmp176 ;
6571 unsigned long __cil_tmp177 ;
6572 unsigned long __cil_tmp178 ;
6573 unsigned char __cil_tmp179 ;
6574 int __cil_tmp180 ;
6575 int __cil_tmp181 ;
6576 unsigned long __cil_tmp182 ;
6577 unsigned long __cil_tmp183 ;
6578 struct scsi_cmnd *__cil_tmp184 ;
6579 struct scsi_device *__cil_tmp185 ;
6580 unsigned long __cil_tmp186 ;
6581 unsigned long __cil_tmp187 ;
6582 unsigned int __cil_tmp188 ;
6583 unsigned long __cil_tmp189 ;
6584 unsigned long __cil_tmp190 ;
6585 unsigned long __cil_tmp191 ;
6586 unsigned long __cil_tmp192 ;
6587 unsigned long __cil_tmp193 ;
6588 void *__cil_tmp194 ;
6589 struct alauda_info *__cil_tmp195 ;
6590 unsigned long __cil_tmp196 ;
6591 unsigned long __cil_tmp197 ;
6592 unsigned long __cil_tmp198 ;
6593 unsigned long __cil_tmp199 ;
6594 unsigned char __cil_tmp200 ;
6595 int __cil_tmp201 ;
6596 int __cil_tmp202 ;
6597 unsigned long __cil_tmp203 ;
6598 unsigned long __cil_tmp204 ;
6599 struct scsi_cmnd *__cil_tmp205 ;
6600 struct scsi_device *__cil_tmp206 ;
6601 unsigned long __cil_tmp207 ;
6602 unsigned long __cil_tmp208 ;
6603 unsigned int __cil_tmp209 ;
6604 unsigned long __cil_tmp210 ;
6605 unsigned long __cil_tmp211 ;
6606 unsigned long __cil_tmp212 ;
6607 unsigned long __cil_tmp213 ;
6608 unsigned long __cil_tmp214 ;
6609 void *__cil_tmp215 ;
6610 struct alauda_info *__cil_tmp216 ;
6611 unsigned long __cil_tmp217 ;
6612 unsigned long __cil_tmp218 ;
6613 unsigned long __cil_tmp219 ;
6614 unsigned long __cil_tmp220 ;
6615 unsigned char __cil_tmp221 ;
6616 int __cil_tmp222 ;
6617 int __cil_tmp223 ;
6618 int __cil_tmp224 ;
6619 int __cil_tmp225 ;
6620 unsigned long __cil_tmp226 ;
6621 unsigned long __cil_tmp227 ;
6622 struct scsi_cmnd *__cil_tmp228 ;
6623 struct scsi_device *__cil_tmp229 ;
6624 unsigned long __cil_tmp230 ;
6625 unsigned long __cil_tmp231 ;
6626 unsigned int __cil_tmp232 ;
6627 unsigned long __cil_tmp233 ;
6628 unsigned long __cil_tmp234 ;
6629 unsigned long __cil_tmp235 ;
6630 unsigned long __cil_tmp236 ;
6631 unsigned long __cil_tmp237 ;
6632 void *__cil_tmp238 ;
6633 struct alauda_info *__cil_tmp239 ;
6634 unsigned long __cil_tmp240 ;
6635 unsigned long __cil_tmp241 ;
6636 unsigned long __cil_tmp242 ;
6637 unsigned long __cil_tmp243 ;
6638 struct scsi_cmnd *__cil_tmp244 ;
6639 struct scsi_device *__cil_tmp245 ;
6640 unsigned long __cil_tmp246 ;
6641 unsigned long __cil_tmp247 ;
6642 unsigned int __cil_tmp248 ;
6643 unsigned long __cil_tmp249 ;
6644 unsigned long __cil_tmp250 ;
6645 unsigned long __cil_tmp251 ;
6646 unsigned long __cil_tmp252 ;
6647 unsigned long __cil_tmp253 ;
6648 void *__cil_tmp254 ;
6649 struct alauda_info *__cil_tmp255 ;
6650 unsigned long __cil_tmp256 ;
6651 unsigned long __cil_tmp257 ;
6652 unsigned int __cil_tmp258 ;
6653 unsigned long __cil_tmp259 ;
6654 unsigned long __cil_tmp260 ;
6655 struct scsi_cmnd *__cil_tmp261 ;
6656 struct scsi_device *__cil_tmp262 ;
6657 unsigned long __cil_tmp263 ;
6658 unsigned long __cil_tmp264 ;
6659 unsigned int __cil_tmp265 ;
6660 unsigned long __cil_tmp266 ;
6661 unsigned long __cil_tmp267 ;
6662 unsigned long __cil_tmp268 ;
6663 unsigned long __cil_tmp269 ;
6664 unsigned long __cil_tmp270 ;
6665 void *__cil_tmp271 ;
6666 struct alauda_info *__cil_tmp272 ;
6667 unsigned long __cil_tmp273 ;
6668 unsigned long __cil_tmp274 ;
6669 unsigned char __cil_tmp275 ;
6670 int __cil_tmp276 ;
6671 unsigned long __cil_tmp277 ;
6672 unsigned long __cil_tmp278 ;
6673 struct scsi_cmnd *__cil_tmp279 ;
6674 struct scsi_device *__cil_tmp280 ;
6675 unsigned long __cil_tmp281 ;
6676 unsigned long __cil_tmp282 ;
6677 unsigned int __cil_tmp283 ;
6678 unsigned long __cil_tmp284 ;
6679 unsigned long __cil_tmp285 ;
6680 unsigned long __cil_tmp286 ;
6681 unsigned long __cil_tmp287 ;
6682 unsigned long __cil_tmp288 ;
6683 void *__cil_tmp289 ;
6684 struct alauda_info *__cil_tmp290 ;
6685 unsigned long __cil_tmp291 ;
6686 unsigned long __cil_tmp292 ;
6687 unsigned char __cil_tmp293 ;
6688 int __cil_tmp294 ;
6689 unsigned long __cil_tmp295 ;
6690 unsigned long __cil_tmp296 ;
6691 struct scsi_cmnd *__cil_tmp297 ;
6692 struct scsi_device *__cil_tmp298 ;
6693 unsigned long __cil_tmp299 ;
6694 unsigned long __cil_tmp300 ;
6695 unsigned int __cil_tmp301 ;
6696 unsigned long __cil_tmp302 ;
6697 unsigned long __cil_tmp303 ;
6698 unsigned long __cil_tmp304 ;
6699 unsigned long __cil_tmp305 ;
6700 unsigned long __cil_tmp306 ;
6701 void *__cil_tmp307 ;
6702 struct alauda_info *__cil_tmp308 ;
6703 unsigned long __cil_tmp309 ;
6704 unsigned long __cil_tmp310 ;
6705 unsigned char __cil_tmp311 ;
6706 int __cil_tmp312 ;
6707 int __cil_tmp313 ;
6708 int __cil_tmp314 ;
6709 unsigned long __cil_tmp315 ;
6710 unsigned long __cil_tmp316 ;
6711 struct scsi_cmnd *__cil_tmp317 ;
6712 struct scsi_device *__cil_tmp318 ;
6713 unsigned long __cil_tmp319 ;
6714 unsigned long __cil_tmp320 ;
6715 unsigned int __cil_tmp321 ;
6716 unsigned long __cil_tmp322 ;
6717 unsigned long __cil_tmp323 ;
6718 unsigned long __cil_tmp324 ;
6719 unsigned long __cil_tmp325 ;
6720 void *__cil_tmp326 ;
6721 struct alauda_info *__cil_tmp327 ;
6722 unsigned long __cil_tmp328 ;
6723 unsigned long __cil_tmp329 ;
6724 unsigned long __cil_tmp330 ;
6725 unsigned long __cil_tmp331 ;
6726 size_t __cil_tmp332 ;
6727 unsigned long __cil_tmp333 ;
6728 unsigned long __cil_tmp334 ;
6729 struct scsi_cmnd *__cil_tmp335 ;
6730 struct scsi_device *__cil_tmp336 ;
6731 unsigned long __cil_tmp337 ;
6732 unsigned long __cil_tmp338 ;
6733 unsigned int __cil_tmp339 ;
6734 unsigned long __cil_tmp340 ;
6735 unsigned long __cil_tmp341 ;
6736 unsigned long __cil_tmp342 ;
6737 unsigned long __cil_tmp343 ;
6738 unsigned long __cil_tmp344 ;
6739 void *__cil_tmp345 ;
6740 struct alauda_info *__cil_tmp346 ;
6741 unsigned long __cil_tmp347 ;
6742 unsigned long __cil_tmp348 ;
6743 size_t __cil_tmp349 ;
6744 unsigned long __cil_tmp350 ;
6745 unsigned long __cil_tmp351 ;
6746 struct scsi_cmnd *__cil_tmp352 ;
6747 struct scsi_device *__cil_tmp353 ;
6748 unsigned long __cil_tmp354 ;
6749 unsigned long __cil_tmp355 ;
6750 unsigned int __cil_tmp356 ;
6751 unsigned long __cil_tmp357 ;
6752 unsigned long __cil_tmp358 ;
6753 unsigned long __cil_tmp359 ;
6754 unsigned long __cil_tmp360 ;
6755 unsigned long __cil_tmp361 ;
6756 void *__cil_tmp362 ;
6757 struct alauda_info *__cil_tmp363 ;
6758 unsigned long __cil_tmp364 ;
6759 unsigned long __cil_tmp365 ;
6760
6761 {
6762#line 405
6763 __cil_tmp13 = (unsigned long )us;
6764#line 405
6765 __cil_tmp14 = __cil_tmp13 + 568;
6766#line 405
6767 data = *((unsigned char **)__cil_tmp14);
6768#line 406
6769 ready = 0;
6770#line 410
6771 goto ldv_31143;
6772 ldv_31142:
6773 {
6774#line 411
6775 msleep(20U);
6776#line 413
6777 tmp = alauda_get_media_status(us, data);
6778 }
6779#line 413
6780 if (tmp != 0) {
6781#line 414
6782 return (3);
6783 } else {
6784
6785 }
6786 {
6787#line 416
6788 __cil_tmp15 = *data;
6789#line 416
6790 __cil_tmp16 = (int )__cil_tmp15;
6791#line 416
6792 __cil_tmp17 = __cil_tmp16 & 16;
6793#line 416
6794 if (__cil_tmp17 != 0) {
6795#line 417
6796 ready = 1;
6797 } else {
6798
6799 }
6800 }
6801 ldv_31143: ;
6802#line 410
6803 if (ready == 0) {
6804#line 411
6805 goto ldv_31142;
6806 } else {
6807#line 413
6808 goto ldv_31144;
6809 }
6810 ldv_31144:
6811 {
6812#line 420
6813 printk("<7>usb-storage: alauda_init_media: We are ready for action!\n");
6814#line 422
6815 tmp___0 = alauda_ack_media(us);
6816 }
6817#line 422
6818 if (tmp___0 != 0) {
6819#line 423
6820 return (3);
6821 } else {
6822
6823 }
6824 {
6825#line 425
6826 msleep(10U);
6827#line 427
6828 tmp___1 = alauda_get_media_status(us, data);
6829 }
6830#line 427
6831 if (tmp___1 != 0) {
6832#line 428
6833 return (3);
6834 } else {
6835
6836 }
6837 {
6838#line 430
6839 __cil_tmp18 = *data;
6840#line 430
6841 __cil_tmp19 = (unsigned int )__cil_tmp18;
6842#line 430
6843 if (__cil_tmp19 != 20U) {
6844 {
6845#line 431
6846 printk("<7>usb-storage: alauda_init_media: Media not ready after ack\n");
6847 }
6848#line 432
6849 return (3);
6850 } else {
6851
6852 }
6853 }
6854 {
6855#line 435
6856 tmp___2 = alauda_get_media_signature(us, data);
6857 }
6858#line 435
6859 if (tmp___2 != 0) {
6860#line 436
6861 return (3);
6862 } else {
6863
6864 }
6865 {
6866#line 438
6867 __cil_tmp20 = *data;
6868#line 438
6869 __cil_tmp21 = (int )__cil_tmp20;
6870#line 438
6871 __cil_tmp22 = data + 1UL;
6872#line 438
6873 __cil_tmp23 = *__cil_tmp22;
6874#line 438
6875 __cil_tmp24 = (int )__cil_tmp23;
6876#line 438
6877 __cil_tmp25 = data + 2UL;
6878#line 438
6879 __cil_tmp26 = *__cil_tmp25;
6880#line 438
6881 __cil_tmp27 = (int )__cil_tmp26;
6882#line 438
6883 __cil_tmp28 = data + 3UL;
6884#line 438
6885 __cil_tmp29 = *__cil_tmp28;
6886#line 438
6887 __cil_tmp30 = (int )__cil_tmp29;
6888#line 438
6889 printk("<7>usb-storage: alauda_init_media: Media signature: %02X %02X %02X %02X\n",
6890 __cil_tmp21, __cil_tmp24, __cil_tmp27, __cil_tmp30);
6891#line 440
6892 __cil_tmp31 = data + 1UL;
6893#line 440
6894 __cil_tmp32 = *__cil_tmp31;
6895#line 440
6896 __cil_tmp33 = (int )__cil_tmp32;
6897#line 440
6898 __cil_tmp34 = (unsigned char )__cil_tmp33;
6899#line 440
6900 media_info = alauda_card_find_id(__cil_tmp34);
6901 }
6902 {
6903#line 441
6904 __cil_tmp35 = (struct alauda_card_info *)0;
6905#line 441
6906 __cil_tmp36 = (unsigned long )__cil_tmp35;
6907#line 441
6908 __cil_tmp37 = (unsigned long )media_info;
6909#line 441
6910 if (__cil_tmp37 == __cil_tmp36) {
6911 {
6912#line 442
6913 __cil_tmp38 = *data;
6914#line 442
6915 __cil_tmp39 = (int )__cil_tmp38;
6916#line 442
6917 __cil_tmp40 = data + 1UL;
6918#line 442
6919 __cil_tmp41 = *__cil_tmp40;
6920#line 442
6921 __cil_tmp42 = (int )__cil_tmp41;
6922#line 442
6923 __cil_tmp43 = data + 2UL;
6924#line 442
6925 __cil_tmp44 = *__cil_tmp43;
6926#line 442
6927 __cil_tmp45 = (int )__cil_tmp44;
6928#line 442
6929 __cil_tmp46 = data + 3UL;
6930#line 442
6931 __cil_tmp47 = *__cil_tmp46;
6932#line 442
6933 __cil_tmp48 = (int )__cil_tmp47;
6934#line 442
6935 printk("<4>alauda_init_media: Unrecognised media signature: %02X %02X %02X %02X\n",
6936 __cil_tmp39, __cil_tmp42, __cil_tmp45, __cil_tmp48);
6937 }
6938#line 446
6939 return (3);
6940 } else {
6941
6942 }
6943 }
6944 {
6945#line 449
6946 __cil_tmp49 = (unsigned long )us;
6947#line 449
6948 __cil_tmp50 = __cil_tmp49 + 288;
6949#line 449
6950 __cil_tmp51 = *((struct scsi_cmnd **)__cil_tmp50);
6951#line 449
6952 __cil_tmp52 = *((struct scsi_device **)__cil_tmp51);
6953#line 449
6954 __cil_tmp53 = (unsigned long )__cil_tmp52;
6955#line 449
6956 __cil_tmp54 = __cil_tmp53 + 204;
6957#line 449
6958 __cil_tmp55 = *((unsigned int *)__cil_tmp54);
6959#line 449
6960 __cil_tmp56 = __cil_tmp55 * 48UL;
6961#line 449
6962 __cil_tmp57 = 0 + __cil_tmp56;
6963#line 449
6964 __cil_tmp58 = (unsigned long )us;
6965#line 449
6966 __cil_tmp59 = __cil_tmp58 + 1080;
6967#line 449
6968 __cil_tmp60 = *((void **)__cil_tmp59);
6969#line 449
6970 __cil_tmp61 = (struct alauda_info *)__cil_tmp60;
6971#line 449
6972 __cil_tmp62 = (unsigned long )__cil_tmp61;
6973#line 449
6974 __cil_tmp63 = __cil_tmp62 + __cil_tmp57;
6975#line 449
6976 __cil_tmp64 = (unsigned long )media_info;
6977#line 449
6978 __cil_tmp65 = __cil_tmp64 + 1;
6979#line 449
6980 __cil_tmp66 = *((unsigned char *)__cil_tmp65);
6981#line 449
6982 __cil_tmp67 = (int )__cil_tmp66;
6983#line 449
6984 __cil_tmp68 = 1 << __cil_tmp67;
6985#line 449
6986 *((unsigned long *)__cil_tmp63) = (unsigned long )__cil_tmp68;
6987#line 450
6988 __cil_tmp69 = (unsigned long )us;
6989#line 450
6990 __cil_tmp70 = __cil_tmp69 + 288;
6991#line 450
6992 __cil_tmp71 = *((struct scsi_cmnd **)__cil_tmp70);
6993#line 450
6994 __cil_tmp72 = *((struct scsi_device **)__cil_tmp71);
6995#line 450
6996 __cil_tmp73 = (unsigned long )__cil_tmp72;
6997#line 450
6998 __cil_tmp74 = __cil_tmp73 + 204;
6999#line 450
7000 __cil_tmp75 = *((unsigned int *)__cil_tmp74);
7001#line 450
7002 __cil_tmp76 = __cil_tmp75 * 48UL;
7003#line 450
7004 __cil_tmp77 = 0 + __cil_tmp76;
7005#line 450
7006 __cil_tmp78 = (unsigned long )us;
7007#line 450
7008 __cil_tmp79 = __cil_tmp78 + 1080;
7009#line 450
7010 __cil_tmp80 = *((void **)__cil_tmp79);
7011#line 450
7012 __cil_tmp81 = (struct alauda_info *)__cil_tmp80;
7013#line 450
7014 __cil_tmp82 = (unsigned long )__cil_tmp81;
7015#line 450
7016 __cil_tmp83 = __cil_tmp82 + __cil_tmp77;
7017#line 450
7018 __cil_tmp84 = *((unsigned long *)__cil_tmp83);
7019#line 450
7020 __cil_tmp85 = __cil_tmp84 >> 20;
7021#line 450
7022 printk("<7>usb-storage: Found media with capacity: %ldMB\n", __cil_tmp85);
7023#line 453
7024 __cil_tmp86 = (unsigned long )us;
7025#line 453
7026 __cil_tmp87 = __cil_tmp86 + 288;
7027#line 453
7028 __cil_tmp88 = *((struct scsi_cmnd **)__cil_tmp87);
7029#line 453
7030 __cil_tmp89 = *((struct scsi_device **)__cil_tmp88);
7031#line 453
7032 __cil_tmp90 = (unsigned long )__cil_tmp89;
7033#line 453
7034 __cil_tmp91 = __cil_tmp90 + 204;
7035#line 453
7036 __cil_tmp92 = *((unsigned int *)__cil_tmp91);
7037#line 453
7038 __cil_tmp93 = __cil_tmp92 * 48UL;
7039#line 453
7040 __cil_tmp94 = __cil_tmp93 + 28;
7041#line 453
7042 __cil_tmp95 = 0 + __cil_tmp94;
7043#line 453
7044 __cil_tmp96 = (unsigned long )us;
7045#line 453
7046 __cil_tmp97 = __cil_tmp96 + 1080;
7047#line 453
7048 __cil_tmp98 = *((void **)__cil_tmp97);
7049#line 453
7050 __cil_tmp99 = (struct alauda_info *)__cil_tmp98;
7051#line 453
7052 __cil_tmp100 = (unsigned long )__cil_tmp99;
7053#line 453
7054 __cil_tmp101 = __cil_tmp100 + __cil_tmp95;
7055#line 453
7056 __cil_tmp102 = (unsigned long )media_info;
7057#line 453
7058 __cil_tmp103 = __cil_tmp102 + 2;
7059#line 453
7060 *((unsigned char *)__cil_tmp101) = *((unsigned char *)__cil_tmp103);
7061#line 454
7062 __cil_tmp104 = (unsigned long )us;
7063#line 454
7064 __cil_tmp105 = __cil_tmp104 + 288;
7065#line 454
7066 __cil_tmp106 = *((struct scsi_cmnd **)__cil_tmp105);
7067#line 454
7068 __cil_tmp107 = *((struct scsi_device **)__cil_tmp106);
7069#line 454
7070 __cil_tmp108 = (unsigned long )__cil_tmp107;
7071#line 454
7072 __cil_tmp109 = __cil_tmp108 + 204;
7073#line 454
7074 __cil_tmp110 = *((unsigned int *)__cil_tmp109);
7075#line 454
7076 __cil_tmp111 = __cil_tmp110 * 48UL;
7077#line 454
7078 __cil_tmp112 = __cil_tmp111 + 29;
7079#line 454
7080 __cil_tmp113 = 0 + __cil_tmp112;
7081#line 454
7082 __cil_tmp114 = (unsigned long )us;
7083#line 454
7084 __cil_tmp115 = __cil_tmp114 + 1080;
7085#line 454
7086 __cil_tmp116 = *((void **)__cil_tmp115);
7087#line 454
7088 __cil_tmp117 = (struct alauda_info *)__cil_tmp116;
7089#line 454
7090 __cil_tmp118 = (unsigned long )__cil_tmp117;
7091#line 454
7092 __cil_tmp119 = __cil_tmp118 + __cil_tmp113;
7093#line 454
7094 __cil_tmp120 = (unsigned long )media_info;
7095#line 454
7096 __cil_tmp121 = __cil_tmp120 + 3;
7097#line 454
7098 *((unsigned char *)__cil_tmp119) = *((unsigned char *)__cil_tmp121);
7099#line 455
7100 __cil_tmp122 = (unsigned long )us;
7101#line 455
7102 __cil_tmp123 = __cil_tmp122 + 288;
7103#line 455
7104 __cil_tmp124 = *((struct scsi_cmnd **)__cil_tmp123);
7105#line 455
7106 __cil_tmp125 = *((struct scsi_device **)__cil_tmp124);
7107#line 455
7108 __cil_tmp126 = (unsigned long )__cil_tmp125;
7109#line 455
7110 __cil_tmp127 = __cil_tmp126 + 204;
7111#line 455
7112 __cil_tmp128 = *((unsigned int *)__cil_tmp127);
7113#line 455
7114 __cil_tmp129 = __cil_tmp128 * 48UL;
7115#line 455
7116 __cil_tmp130 = __cil_tmp129 + 30;
7117#line 455
7118 __cil_tmp131 = 0 + __cil_tmp130;
7119#line 455
7120 __cil_tmp132 = (unsigned long )us;
7121#line 455
7122 __cil_tmp133 = __cil_tmp132 + 1080;
7123#line 455
7124 __cil_tmp134 = *((void **)__cil_tmp133);
7125#line 455
7126 __cil_tmp135 = (struct alauda_info *)__cil_tmp134;
7127#line 455
7128 __cil_tmp136 = (unsigned long )__cil_tmp135;
7129#line 455
7130 __cil_tmp137 = __cil_tmp136 + __cil_tmp131;
7131#line 455
7132 __cil_tmp138 = (unsigned long )media_info;
7133#line 455
7134 __cil_tmp139 = __cil_tmp138 + 4;
7135#line 455
7136 *((unsigned char *)__cil_tmp137) = *((unsigned char *)__cil_tmp139);
7137#line 457
7138 __cil_tmp140 = (unsigned long )us;
7139#line 457
7140 __cil_tmp141 = __cil_tmp140 + 288;
7141#line 457
7142 __cil_tmp142 = *((struct scsi_cmnd **)__cil_tmp141);
7143#line 457
7144 __cil_tmp143 = *((struct scsi_device **)__cil_tmp142);
7145#line 457
7146 __cil_tmp144 = (unsigned long )__cil_tmp143;
7147#line 457
7148 __cil_tmp145 = __cil_tmp144 + 204;
7149#line 457
7150 __cil_tmp146 = *((unsigned int *)__cil_tmp145);
7151#line 457
7152 __cil_tmp147 = __cil_tmp146 * 48UL;
7153#line 457
7154 __cil_tmp148 = __cil_tmp147 + 8;
7155#line 457
7156 __cil_tmp149 = 0 + __cil_tmp148;
7157#line 457
7158 __cil_tmp150 = (unsigned long )us;
7159#line 457
7160 __cil_tmp151 = __cil_tmp150 + 1080;
7161#line 457
7162 __cil_tmp152 = *((void **)__cil_tmp151);
7163#line 457
7164 __cil_tmp153 = (struct alauda_info *)__cil_tmp152;
7165#line 457
7166 __cil_tmp154 = (unsigned long )__cil_tmp153;
7167#line 457
7168 __cil_tmp155 = __cil_tmp154 + __cil_tmp149;
7169#line 457
7170 __cil_tmp156 = (unsigned long )media_info;
7171#line 457
7172 __cil_tmp157 = __cil_tmp156 + 2;
7173#line 457
7174 __cil_tmp158 = *((unsigned char *)__cil_tmp157);
7175#line 457
7176 __cil_tmp159 = (int )__cil_tmp158;
7177#line 457
7178 __cil_tmp160 = 1 << __cil_tmp159;
7179#line 457
7180 *((unsigned int *)__cil_tmp155) = (unsigned int )__cil_tmp160;
7181#line 458
7182 __cil_tmp161 = (unsigned long )us;
7183#line 458
7184 __cil_tmp162 = __cil_tmp161 + 288;
7185#line 458
7186 __cil_tmp163 = *((struct scsi_cmnd **)__cil_tmp162);
7187#line 458
7188 __cil_tmp164 = *((struct scsi_device **)__cil_tmp163);
7189#line 458
7190 __cil_tmp165 = (unsigned long )__cil_tmp164;
7191#line 458
7192 __cil_tmp166 = __cil_tmp165 + 204;
7193#line 458
7194 __cil_tmp167 = *((unsigned int *)__cil_tmp166);
7195#line 458
7196 __cil_tmp168 = __cil_tmp167 * 48UL;
7197#line 458
7198 __cil_tmp169 = __cil_tmp168 + 12;
7199#line 458
7200 __cil_tmp170 = 0 + __cil_tmp169;
7201#line 458
7202 __cil_tmp171 = (unsigned long )us;
7203#line 458
7204 __cil_tmp172 = __cil_tmp171 + 1080;
7205#line 458
7206 __cil_tmp173 = *((void **)__cil_tmp172);
7207#line 458
7208 __cil_tmp174 = (struct alauda_info *)__cil_tmp173;
7209#line 458
7210 __cil_tmp175 = (unsigned long )__cil_tmp174;
7211#line 458
7212 __cil_tmp176 = __cil_tmp175 + __cil_tmp170;
7213#line 458
7214 __cil_tmp177 = (unsigned long )media_info;
7215#line 458
7216 __cil_tmp178 = __cil_tmp177 + 3;
7217#line 458
7218 __cil_tmp179 = *((unsigned char *)__cil_tmp178);
7219#line 458
7220 __cil_tmp180 = (int )__cil_tmp179;
7221#line 458
7222 __cil_tmp181 = 1 << __cil_tmp180;
7223#line 458
7224 *((unsigned int *)__cil_tmp176) = (unsigned int )__cil_tmp181;
7225#line 459
7226 __cil_tmp182 = (unsigned long )us;
7227#line 459
7228 __cil_tmp183 = __cil_tmp182 + 288;
7229#line 459
7230 __cil_tmp184 = *((struct scsi_cmnd **)__cil_tmp183);
7231#line 459
7232 __cil_tmp185 = *((struct scsi_device **)__cil_tmp184);
7233#line 459
7234 __cil_tmp186 = (unsigned long )__cil_tmp185;
7235#line 459
7236 __cil_tmp187 = __cil_tmp186 + 204;
7237#line 459
7238 __cil_tmp188 = *((unsigned int *)__cil_tmp187);
7239#line 459
7240 __cil_tmp189 = __cil_tmp188 * 48UL;
7241#line 459
7242 __cil_tmp190 = __cil_tmp189 + 20;
7243#line 459
7244 __cil_tmp191 = 0 + __cil_tmp190;
7245#line 459
7246 __cil_tmp192 = (unsigned long )us;
7247#line 459
7248 __cil_tmp193 = __cil_tmp192 + 1080;
7249#line 459
7250 __cil_tmp194 = *((void **)__cil_tmp193);
7251#line 459
7252 __cil_tmp195 = (struct alauda_info *)__cil_tmp194;
7253#line 459
7254 __cil_tmp196 = (unsigned long )__cil_tmp195;
7255#line 459
7256 __cil_tmp197 = __cil_tmp196 + __cil_tmp191;
7257#line 459
7258 __cil_tmp198 = (unsigned long )media_info;
7259#line 459
7260 __cil_tmp199 = __cil_tmp198 + 4;
7261#line 459
7262 __cil_tmp200 = *((unsigned char *)__cil_tmp199);
7263#line 459
7264 __cil_tmp201 = (int )__cil_tmp200;
7265#line 459
7266 __cil_tmp202 = 1 << __cil_tmp201;
7267#line 459
7268 *((unsigned int *)__cil_tmp197) = (unsigned int )__cil_tmp202;
7269#line 461
7270 __cil_tmp203 = (unsigned long )us;
7271#line 461
7272 __cil_tmp204 = __cil_tmp203 + 288;
7273#line 461
7274 __cil_tmp205 = *((struct scsi_cmnd **)__cil_tmp204);
7275#line 461
7276 __cil_tmp206 = *((struct scsi_device **)__cil_tmp205);
7277#line 461
7278 __cil_tmp207 = (unsigned long )__cil_tmp206;
7279#line 461
7280 __cil_tmp208 = __cil_tmp207 + 204;
7281#line 461
7282 __cil_tmp209 = *((unsigned int *)__cil_tmp208);
7283#line 461
7284 __cil_tmp210 = __cil_tmp209 * 48UL;
7285#line 461
7286 __cil_tmp211 = __cil_tmp210 + 16;
7287#line 461
7288 __cil_tmp212 = 0 + __cil_tmp211;
7289#line 461
7290 __cil_tmp213 = (unsigned long )us;
7291#line 461
7292 __cil_tmp214 = __cil_tmp213 + 1080;
7293#line 461
7294 __cil_tmp215 = *((void **)__cil_tmp214);
7295#line 461
7296 __cil_tmp216 = (struct alauda_info *)__cil_tmp215;
7297#line 461
7298 __cil_tmp217 = (unsigned long )__cil_tmp216;
7299#line 461
7300 __cil_tmp218 = __cil_tmp217 + __cil_tmp212;
7301#line 461
7302 __cil_tmp219 = (unsigned long )media_info;
7303#line 461
7304 __cil_tmp220 = __cil_tmp219 + 4;
7305#line 461
7306 __cil_tmp221 = *((unsigned char *)__cil_tmp220);
7307#line 461
7308 __cil_tmp222 = (int )__cil_tmp221;
7309#line 461
7310 __cil_tmp223 = 1 << __cil_tmp222;
7311#line 461
7312 __cil_tmp224 = __cil_tmp223 / 128;
7313#line 461
7314 __cil_tmp225 = __cil_tmp224 * 125;
7315#line 461
7316 *((unsigned int *)__cil_tmp218) = (unsigned int )__cil_tmp225;
7317#line 462
7318 __cil_tmp226 = (unsigned long )us;
7319#line 462
7320 __cil_tmp227 = __cil_tmp226 + 288;
7321#line 462
7322 __cil_tmp228 = *((struct scsi_cmnd **)__cil_tmp227);
7323#line 462
7324 __cil_tmp229 = *((struct scsi_device **)__cil_tmp228);
7325#line 462
7326 __cil_tmp230 = (unsigned long )__cil_tmp229;
7327#line 462
7328 __cil_tmp231 = __cil_tmp230 + 204;
7329#line 462
7330 __cil_tmp232 = *((unsigned int *)__cil_tmp231);
7331#line 462
7332 __cil_tmp233 = __cil_tmp232 * 48UL;
7333#line 462
7334 __cil_tmp234 = __cil_tmp233 + 24;
7335#line 462
7336 __cil_tmp235 = 0 + __cil_tmp234;
7337#line 462
7338 __cil_tmp236 = (unsigned long )us;
7339#line 462
7340 __cil_tmp237 = __cil_tmp236 + 1080;
7341#line 462
7342 __cil_tmp238 = *((void **)__cil_tmp237);
7343#line 462
7344 __cil_tmp239 = (struct alauda_info *)__cil_tmp238;
7345#line 462
7346 __cil_tmp240 = (unsigned long )__cil_tmp239;
7347#line 462
7348 __cil_tmp241 = __cil_tmp240 + __cil_tmp235;
7349#line 462
7350 __cil_tmp242 = (unsigned long )us;
7351#line 462
7352 __cil_tmp243 = __cil_tmp242 + 288;
7353#line 462
7354 __cil_tmp244 = *((struct scsi_cmnd **)__cil_tmp243);
7355#line 462
7356 __cil_tmp245 = *((struct scsi_device **)__cil_tmp244);
7357#line 462
7358 __cil_tmp246 = (unsigned long )__cil_tmp245;
7359#line 462
7360 __cil_tmp247 = __cil_tmp246 + 204;
7361#line 462
7362 __cil_tmp248 = *((unsigned int *)__cil_tmp247);
7363#line 462
7364 __cil_tmp249 = __cil_tmp248 * 48UL;
7365#line 462
7366 __cil_tmp250 = __cil_tmp249 + 12;
7367#line 462
7368 __cil_tmp251 = 0 + __cil_tmp250;
7369#line 462
7370 __cil_tmp252 = (unsigned long )us;
7371#line 462
7372 __cil_tmp253 = __cil_tmp252 + 1080;
7373#line 462
7374 __cil_tmp254 = *((void **)__cil_tmp253);
7375#line 462
7376 __cil_tmp255 = (struct alauda_info *)__cil_tmp254;
7377#line 462
7378 __cil_tmp256 = (unsigned long )__cil_tmp255;
7379#line 462
7380 __cil_tmp257 = __cil_tmp256 + __cil_tmp251;
7381#line 462
7382 __cil_tmp258 = *((unsigned int *)__cil_tmp257);
7383#line 462
7384 *((unsigned int *)__cil_tmp241) = __cil_tmp258 - 1U;
7385#line 464
7386 __cil_tmp259 = (unsigned long )us;
7387#line 464
7388 __cil_tmp260 = __cil_tmp259 + 288;
7389#line 464
7390 __cil_tmp261 = *((struct scsi_cmnd **)__cil_tmp260);
7391#line 464
7392 __cil_tmp262 = *((struct scsi_device **)__cil_tmp261);
7393#line 464
7394 __cil_tmp263 = (unsigned long )__cil_tmp262;
7395#line 464
7396 __cil_tmp264 = __cil_tmp263 + 204;
7397#line 464
7398 __cil_tmp265 = *((unsigned int *)__cil_tmp264);
7399#line 464
7400 __cil_tmp266 = __cil_tmp265 * 48UL;
7401#line 464
7402 __cil_tmp267 = __cil_tmp266 + 28;
7403#line 464
7404 __cil_tmp268 = 0 + __cil_tmp267;
7405#line 464
7406 __cil_tmp269 = (unsigned long )us;
7407#line 464
7408 __cil_tmp270 = __cil_tmp269 + 1080;
7409#line 464
7410 __cil_tmp271 = *((void **)__cil_tmp270);
7411#line 464
7412 __cil_tmp272 = (struct alauda_info *)__cil_tmp271;
7413#line 464
7414 __cil_tmp273 = (unsigned long )__cil_tmp272;
7415#line 464
7416 __cil_tmp274 = __cil_tmp273 + __cil_tmp268;
7417#line 464
7418 __cil_tmp275 = *((unsigned char *)__cil_tmp274);
7419#line 464
7420 __cil_tmp276 = (int )__cil_tmp275;
7421#line 464
7422 __cil_tmp277 = (unsigned long )us;
7423#line 464
7424 __cil_tmp278 = __cil_tmp277 + 288;
7425#line 464
7426 __cil_tmp279 = *((struct scsi_cmnd **)__cil_tmp278);
7427#line 464
7428 __cil_tmp280 = *((struct scsi_device **)__cil_tmp279);
7429#line 464
7430 __cil_tmp281 = (unsigned long )__cil_tmp280;
7431#line 464
7432 __cil_tmp282 = __cil_tmp281 + 204;
7433#line 464
7434 __cil_tmp283 = *((unsigned int *)__cil_tmp282);
7435#line 464
7436 __cil_tmp284 = __cil_tmp283 * 48UL;
7437#line 464
7438 __cil_tmp285 = __cil_tmp284 + 29;
7439#line 464
7440 __cil_tmp286 = 0 + __cil_tmp285;
7441#line 464
7442 __cil_tmp287 = (unsigned long )us;
7443#line 464
7444 __cil_tmp288 = __cil_tmp287 + 1080;
7445#line 464
7446 __cil_tmp289 = *((void **)__cil_tmp288);
7447#line 464
7448 __cil_tmp290 = (struct alauda_info *)__cil_tmp289;
7449#line 464
7450 __cil_tmp291 = (unsigned long )__cil_tmp290;
7451#line 464
7452 __cil_tmp292 = __cil_tmp291 + __cil_tmp286;
7453#line 464
7454 __cil_tmp293 = *((unsigned char *)__cil_tmp292);
7455#line 464
7456 __cil_tmp294 = (int )__cil_tmp293;
7457#line 464
7458 __cil_tmp295 = (unsigned long )us;
7459#line 464
7460 __cil_tmp296 = __cil_tmp295 + 288;
7461#line 464
7462 __cil_tmp297 = *((struct scsi_cmnd **)__cil_tmp296);
7463#line 464
7464 __cil_tmp298 = *((struct scsi_device **)__cil_tmp297);
7465#line 464
7466 __cil_tmp299 = (unsigned long )__cil_tmp298;
7467#line 464
7468 __cil_tmp300 = __cil_tmp299 + 204;
7469#line 464
7470 __cil_tmp301 = *((unsigned int *)__cil_tmp300);
7471#line 464
7472 __cil_tmp302 = __cil_tmp301 * 48UL;
7473#line 464
7474 __cil_tmp303 = __cil_tmp302 + 30;
7475#line 464
7476 __cil_tmp304 = 0 + __cil_tmp303;
7477#line 464
7478 __cil_tmp305 = (unsigned long )us;
7479#line 464
7480 __cil_tmp306 = __cil_tmp305 + 1080;
7481#line 464
7482 __cil_tmp307 = *((void **)__cil_tmp306);
7483#line 464
7484 __cil_tmp308 = (struct alauda_info *)__cil_tmp307;
7485#line 464
7486 __cil_tmp309 = (unsigned long )__cil_tmp308;
7487#line 464
7488 __cil_tmp310 = __cil_tmp309 + __cil_tmp304;
7489#line 464
7490 __cil_tmp311 = *((unsigned char *)__cil_tmp310);
7491#line 464
7492 __cil_tmp312 = (int )__cil_tmp311;
7493#line 464
7494 __cil_tmp313 = __cil_tmp312 + __cil_tmp294;
7495#line 464
7496 __cil_tmp314 = __cil_tmp313 + __cil_tmp276;
7497#line 464
7498 __cil_tmp315 = (unsigned long )us;
7499#line 464
7500 __cil_tmp316 = __cil_tmp315 + 288;
7501#line 464
7502 __cil_tmp317 = *((struct scsi_cmnd **)__cil_tmp316);
7503#line 464
7504 __cil_tmp318 = *((struct scsi_device **)__cil_tmp317);
7505#line 464
7506 __cil_tmp319 = (unsigned long )__cil_tmp318;
7507#line 464
7508 __cil_tmp320 = __cil_tmp319 + 204;
7509#line 464
7510 __cil_tmp321 = *((unsigned int *)__cil_tmp320);
7511#line 464
7512 __cil_tmp322 = __cil_tmp321 * 48UL;
7513#line 464
7514 __cil_tmp323 = 0 + __cil_tmp322;
7515#line 464
7516 __cil_tmp324 = (unsigned long )us;
7517#line 464
7518 __cil_tmp325 = __cil_tmp324 + 1080;
7519#line 464
7520 __cil_tmp326 = *((void **)__cil_tmp325);
7521#line 464
7522 __cil_tmp327 = (struct alauda_info *)__cil_tmp326;
7523#line 464
7524 __cil_tmp328 = (unsigned long )__cil_tmp327;
7525#line 464
7526 __cil_tmp329 = __cil_tmp328 + __cil_tmp323;
7527#line 464
7528 __cil_tmp330 = *((unsigned long *)__cil_tmp329);
7529#line 464
7530 __cil_tmp331 = __cil_tmp330 >> __cil_tmp314;
7531#line 464
7532 num_zones = (unsigned int )__cil_tmp331;
7533#line 466
7534 __cil_tmp332 = (size_t )num_zones;
7535#line 466
7536 tmp___3 = kcalloc(__cil_tmp332, 8UL, 16U);
7537#line 466
7538 __cil_tmp333 = (unsigned long )us;
7539#line 466
7540 __cil_tmp334 = __cil_tmp333 + 288;
7541#line 466
7542 __cil_tmp335 = *((struct scsi_cmnd **)__cil_tmp334);
7543#line 466
7544 __cil_tmp336 = *((struct scsi_device **)__cil_tmp335);
7545#line 466
7546 __cil_tmp337 = (unsigned long )__cil_tmp336;
7547#line 466
7548 __cil_tmp338 = __cil_tmp337 + 204;
7549#line 466
7550 __cil_tmp339 = *((unsigned int *)__cil_tmp338);
7551#line 466
7552 __cil_tmp340 = __cil_tmp339 * 48UL;
7553#line 466
7554 __cil_tmp341 = __cil_tmp340 + 40;
7555#line 466
7556 __cil_tmp342 = 0 + __cil_tmp341;
7557#line 466
7558 __cil_tmp343 = (unsigned long )us;
7559#line 466
7560 __cil_tmp344 = __cil_tmp343 + 1080;
7561#line 466
7562 __cil_tmp345 = *((void **)__cil_tmp344);
7563#line 466
7564 __cil_tmp346 = (struct alauda_info *)__cil_tmp345;
7565#line 466
7566 __cil_tmp347 = (unsigned long )__cil_tmp346;
7567#line 466
7568 __cil_tmp348 = __cil_tmp347 + __cil_tmp342;
7569#line 466
7570 *((u16 ***)__cil_tmp348) = (u16 **)tmp___3;
7571#line 467
7572 __cil_tmp349 = (size_t )num_zones;
7573#line 467
7574 tmp___4 = kcalloc(__cil_tmp349, 8UL, 16U);
7575#line 467
7576 __cil_tmp350 = (unsigned long )us;
7577#line 467
7578 __cil_tmp351 = __cil_tmp350 + 288;
7579#line 467
7580 __cil_tmp352 = *((struct scsi_cmnd **)__cil_tmp351);
7581#line 467
7582 __cil_tmp353 = *((struct scsi_device **)__cil_tmp352);
7583#line 467
7584 __cil_tmp354 = (unsigned long )__cil_tmp353;
7585#line 467
7586 __cil_tmp355 = __cil_tmp354 + 204;
7587#line 467
7588 __cil_tmp356 = *((unsigned int *)__cil_tmp355);
7589#line 467
7590 __cil_tmp357 = __cil_tmp356 * 48UL;
7591#line 467
7592 __cil_tmp358 = __cil_tmp357 + 32;
7593#line 467
7594 __cil_tmp359 = 0 + __cil_tmp358;
7595#line 467
7596 __cil_tmp360 = (unsigned long )us;
7597#line 467
7598 __cil_tmp361 = __cil_tmp360 + 1080;
7599#line 467
7600 __cil_tmp362 = *((void **)__cil_tmp361);
7601#line 467
7602 __cil_tmp363 = (struct alauda_info *)__cil_tmp362;
7603#line 467
7604 __cil_tmp364 = (unsigned long )__cil_tmp363;
7605#line 467
7606 __cil_tmp365 = __cil_tmp364 + __cil_tmp359;
7607#line 467
7608 *((u16 ***)__cil_tmp365) = (u16 **)tmp___4;
7609#line 469
7610 tmp___5 = alauda_reset_media(us);
7611 }
7612#line 469
7613 if (tmp___5 != 0) {
7614#line 470
7615 return (3);
7616 } else {
7617
7618 }
7619#line 472
7620 return (0);
7621}
7622}
7623#line 479 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
7624static int alauda_check_media(struct us_data *us )
7625{ struct alauda_info *info ;
7626 unsigned char status[2U] ;
7627 int rc ;
7628 unsigned long __cil_tmp5 ;
7629 unsigned long __cil_tmp6 ;
7630 void *__cil_tmp7 ;
7631 unsigned char *__cil_tmp8 ;
7632 unsigned long __cil_tmp9 ;
7633 unsigned long __cil_tmp10 ;
7634 unsigned char __cil_tmp11 ;
7635 signed char __cil_tmp12 ;
7636 int __cil_tmp13 ;
7637 unsigned long __cil_tmp14 ;
7638 unsigned long __cil_tmp15 ;
7639 unsigned char __cil_tmp16 ;
7640 int __cil_tmp17 ;
7641 int __cil_tmp18 ;
7642 unsigned long __cil_tmp19 ;
7643 unsigned long __cil_tmp20 ;
7644 unsigned char __cil_tmp21 ;
7645 int __cil_tmp22 ;
7646 int __cil_tmp23 ;
7647 unsigned long __cil_tmp24 ;
7648 unsigned long __cil_tmp25 ;
7649 struct scsi_cmnd *__cil_tmp26 ;
7650 struct scsi_device *__cil_tmp27 ;
7651 unsigned long __cil_tmp28 ;
7652 unsigned long __cil_tmp29 ;
7653 unsigned int __cil_tmp30 ;
7654 unsigned long __cil_tmp31 ;
7655 unsigned long __cil_tmp32 ;
7656 unsigned long __cil_tmp33 ;
7657 void *__cil_tmp34 ;
7658 struct alauda_info *__cil_tmp35 ;
7659 struct alauda_media_info (*__cil_tmp36)[2U] ;
7660 struct alauda_media_info *__cil_tmp37 ;
7661 struct alauda_media_info *__cil_tmp38 ;
7662 unsigned long __cil_tmp39 ;
7663 unsigned long __cil_tmp40 ;
7664 unsigned long __cil_tmp41 ;
7665 unsigned long __cil_tmp42 ;
7666 unsigned long __cil_tmp43 ;
7667 unsigned long __cil_tmp44 ;
7668 unsigned long __cil_tmp45 ;
7669 unsigned long __cil_tmp46 ;
7670 unsigned char __cil_tmp47 ;
7671 int __cil_tmp48 ;
7672 int __cil_tmp49 ;
7673 unsigned long __cil_tmp50 ;
7674 unsigned long __cil_tmp51 ;
7675 struct scsi_cmnd *__cil_tmp52 ;
7676 struct scsi_device *__cil_tmp53 ;
7677 unsigned long __cil_tmp54 ;
7678 unsigned long __cil_tmp55 ;
7679 unsigned int __cil_tmp56 ;
7680 unsigned long __cil_tmp57 ;
7681 unsigned long __cil_tmp58 ;
7682 unsigned long __cil_tmp59 ;
7683 void *__cil_tmp60 ;
7684 struct alauda_info *__cil_tmp61 ;
7685 struct alauda_media_info (*__cil_tmp62)[2U] ;
7686 struct alauda_media_info *__cil_tmp63 ;
7687 struct alauda_media_info *__cil_tmp64 ;
7688 unsigned long __cil_tmp65 ;
7689 unsigned long __cil_tmp66 ;
7690 unsigned long __cil_tmp67 ;
7691 unsigned long __cil_tmp68 ;
7692 unsigned long __cil_tmp69 ;
7693 unsigned long __cil_tmp70 ;
7694
7695 {
7696 {
7697#line 481
7698 __cil_tmp5 = (unsigned long )us;
7699#line 481
7700 __cil_tmp6 = __cil_tmp5 + 1080;
7701#line 481
7702 __cil_tmp7 = *((void **)__cil_tmp6);
7703#line 481
7704 info = (struct alauda_info *)__cil_tmp7;
7705#line 485
7706 __cil_tmp8 = (unsigned char *)(& status);
7707#line 485
7708 rc = alauda_get_media_status(us, __cil_tmp8);
7709 }
7710 {
7711#line 488
7712 __cil_tmp9 = 0 * 1UL;
7713#line 488
7714 __cil_tmp10 = (unsigned long )(status) + __cil_tmp9;
7715#line 488
7716 __cil_tmp11 = *((unsigned char *)__cil_tmp10);
7717#line 488
7718 __cil_tmp12 = (signed char )__cil_tmp11;
7719#line 488
7720 __cil_tmp13 = (int )__cil_tmp12;
7721#line 488
7722 if (__cil_tmp13 < 0) {
7723#line 488
7724 goto _L;
7725 } else {
7726 {
7727#line 488
7728 __cil_tmp14 = 0 * 1UL;
7729#line 488
7730 __cil_tmp15 = (unsigned long )(status) + __cil_tmp14;
7731#line 488
7732 __cil_tmp16 = *((unsigned char *)__cil_tmp15);
7733#line 488
7734 __cil_tmp17 = (int )__cil_tmp16;
7735#line 488
7736 __cil_tmp18 = __cil_tmp17 & 31;
7737#line 488
7738 if (__cil_tmp18 == 16) {
7739#line 488
7740 goto _L;
7741 } else {
7742 {
7743#line 488
7744 __cil_tmp19 = 1 * 1UL;
7745#line 488
7746 __cil_tmp20 = (unsigned long )(status) + __cil_tmp19;
7747#line 488
7748 __cil_tmp21 = *((unsigned char *)__cil_tmp20);
7749#line 488
7750 __cil_tmp22 = (int )__cil_tmp21;
7751#line 488
7752 __cil_tmp23 = __cil_tmp22 & 1;
7753#line 488
7754 if (__cil_tmp23 == 0) {
7755 _L:
7756 {
7757#line 490
7758 printk("<7>usb-storage: alauda_check_media: No media, or door open\n");
7759#line 491
7760 __cil_tmp24 = (unsigned long )us;
7761#line 491
7762 __cil_tmp25 = __cil_tmp24 + 288;
7763#line 491
7764 __cil_tmp26 = *((struct scsi_cmnd **)__cil_tmp25);
7765#line 491
7766 __cil_tmp27 = *((struct scsi_device **)__cil_tmp26);
7767#line 491
7768 __cil_tmp28 = (unsigned long )__cil_tmp27;
7769#line 491
7770 __cil_tmp29 = __cil_tmp28 + 204;
7771#line 491
7772 __cil_tmp30 = *((unsigned int *)__cil_tmp29);
7773#line 491
7774 __cil_tmp31 = (unsigned long )__cil_tmp30;
7775#line 491
7776 __cil_tmp32 = (unsigned long )us;
7777#line 491
7778 __cil_tmp33 = __cil_tmp32 + 1080;
7779#line 491
7780 __cil_tmp34 = *((void **)__cil_tmp33);
7781#line 491
7782 __cil_tmp35 = (struct alauda_info *)__cil_tmp34;
7783#line 491
7784 __cil_tmp36 = (struct alauda_media_info (*)[2U])__cil_tmp35;
7785#line 491
7786 __cil_tmp37 = (struct alauda_media_info *)__cil_tmp36;
7787#line 491
7788 __cil_tmp38 = __cil_tmp37 + __cil_tmp31;
7789#line 491
7790 alauda_free_maps(__cil_tmp38);
7791#line 492
7792 __cil_tmp39 = (unsigned long )info;
7793#line 492
7794 __cil_tmp40 = __cil_tmp39 + 100;
7795#line 492
7796 *((unsigned char *)__cil_tmp40) = (unsigned char)2;
7797#line 493
7798 __cil_tmp41 = (unsigned long )info;
7799#line 493
7800 __cil_tmp42 = __cil_tmp41 + 104;
7801#line 493
7802 *((unsigned long *)__cil_tmp42) = 58UL;
7803#line 494
7804 __cil_tmp43 = (unsigned long )info;
7805#line 494
7806 __cil_tmp44 = __cil_tmp43 + 112;
7807#line 494
7808 *((unsigned long *)__cil_tmp44) = 0UL;
7809 }
7810#line 495
7811 return (1);
7812 } else {
7813
7814 }
7815 }
7816 }
7817 }
7818 }
7819 }
7820 {
7821#line 499
7822 __cil_tmp45 = 0 * 1UL;
7823#line 499
7824 __cil_tmp46 = (unsigned long )(status) + __cil_tmp45;
7825#line 499
7826 __cil_tmp47 = *((unsigned char *)__cil_tmp46);
7827#line 499
7828 __cil_tmp48 = (int )__cil_tmp47;
7829#line 499
7830 __cil_tmp49 = __cil_tmp48 & 8;
7831#line 499
7832 if (__cil_tmp49 != 0) {
7833 {
7834#line 500
7835 printk("<7>usb-storage: alauda_check_media: Media change detected\n");
7836#line 501
7837 __cil_tmp50 = (unsigned long )us;
7838#line 501
7839 __cil_tmp51 = __cil_tmp50 + 288;
7840#line 501
7841 __cil_tmp52 = *((struct scsi_cmnd **)__cil_tmp51);
7842#line 501
7843 __cil_tmp53 = *((struct scsi_device **)__cil_tmp52);
7844#line 501
7845 __cil_tmp54 = (unsigned long )__cil_tmp53;
7846#line 501
7847 __cil_tmp55 = __cil_tmp54 + 204;
7848#line 501
7849 __cil_tmp56 = *((unsigned int *)__cil_tmp55);
7850#line 501
7851 __cil_tmp57 = (unsigned long )__cil_tmp56;
7852#line 501
7853 __cil_tmp58 = (unsigned long )us;
7854#line 501
7855 __cil_tmp59 = __cil_tmp58 + 1080;
7856#line 501
7857 __cil_tmp60 = *((void **)__cil_tmp59);
7858#line 501
7859 __cil_tmp61 = (struct alauda_info *)__cil_tmp60;
7860#line 501
7861 __cil_tmp62 = (struct alauda_media_info (*)[2U])__cil_tmp61;
7862#line 501
7863 __cil_tmp63 = (struct alauda_media_info *)__cil_tmp62;
7864#line 501
7865 __cil_tmp64 = __cil_tmp63 + __cil_tmp57;
7866#line 501
7867 alauda_free_maps(__cil_tmp64);
7868#line 502
7869 alauda_init_media(us);
7870#line 504
7871 __cil_tmp65 = (unsigned long )info;
7872#line 504
7873 __cil_tmp66 = __cil_tmp65 + 100;
7874#line 504
7875 *((unsigned char *)__cil_tmp66) = (unsigned char)6;
7876#line 505
7877 __cil_tmp67 = (unsigned long )info;
7878#line 505
7879 __cil_tmp68 = __cil_tmp67 + 104;
7880#line 505
7881 *((unsigned long *)__cil_tmp68) = 40UL;
7882#line 506
7883 __cil_tmp69 = (unsigned long )info;
7884#line 506
7885 __cil_tmp70 = __cil_tmp69 + 112;
7886#line 506
7887 *((unsigned long *)__cil_tmp70) = 0UL;
7888 }
7889#line 507
7890 return (1);
7891 } else {
7892
7893 }
7894 }
7895#line 510
7896 return (0);
7897}
7898}
7899#line 517 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
7900static int alauda_check_status2(struct us_data *us )
7901{ int rc ;
7902 unsigned char command[9U] ;
7903 unsigned char data[3U] ;
7904 unsigned long __cil_tmp5 ;
7905 unsigned long __cil_tmp6 ;
7906 unsigned long __cil_tmp7 ;
7907 unsigned long __cil_tmp8 ;
7908 unsigned long __cil_tmp9 ;
7909 unsigned long __cil_tmp10 ;
7910 unsigned long __cil_tmp11 ;
7911 unsigned long __cil_tmp12 ;
7912 unsigned long __cil_tmp13 ;
7913 unsigned long __cil_tmp14 ;
7914 unsigned long __cil_tmp15 ;
7915 unsigned long __cil_tmp16 ;
7916 unsigned long __cil_tmp17 ;
7917 unsigned long __cil_tmp18 ;
7918 unsigned long __cil_tmp19 ;
7919 unsigned long __cil_tmp20 ;
7920 unsigned long __cil_tmp21 ;
7921 unsigned long __cil_tmp22 ;
7922 unsigned long __cil_tmp23 ;
7923 unsigned long __cil_tmp24 ;
7924 struct scsi_cmnd *__cil_tmp25 ;
7925 struct scsi_device *__cil_tmp26 ;
7926 unsigned long __cil_tmp27 ;
7927 unsigned long __cil_tmp28 ;
7928 unsigned int __cil_tmp29 ;
7929 unsigned long __cil_tmp30 ;
7930 unsigned long __cil_tmp31 ;
7931 unsigned int __cil_tmp32 ;
7932 void *__cil_tmp33 ;
7933 unsigned int *__cil_tmp34 ;
7934 unsigned long __cil_tmp35 ;
7935 unsigned long __cil_tmp36 ;
7936 unsigned int __cil_tmp37 ;
7937 void *__cil_tmp38 ;
7938 unsigned int *__cil_tmp39 ;
7939 unsigned long __cil_tmp40 ;
7940 unsigned long __cil_tmp41 ;
7941 unsigned char __cil_tmp42 ;
7942 int __cil_tmp43 ;
7943 unsigned long __cil_tmp44 ;
7944 unsigned long __cil_tmp45 ;
7945 unsigned char __cil_tmp46 ;
7946 int __cil_tmp47 ;
7947 unsigned long __cil_tmp48 ;
7948 unsigned long __cil_tmp49 ;
7949 unsigned char __cil_tmp50 ;
7950 int __cil_tmp51 ;
7951 unsigned long __cil_tmp52 ;
7952 unsigned long __cil_tmp53 ;
7953 unsigned char __cil_tmp54 ;
7954 int __cil_tmp55 ;
7955
7956 {
7957 {
7958#line 520
7959 __cil_tmp5 = 0 * 1UL;
7960#line 520
7961 __cil_tmp6 = (unsigned long )(command) + __cil_tmp5;
7962#line 520
7963 *((unsigned char *)__cil_tmp6) = (unsigned char)64;
7964#line 520
7965 __cil_tmp7 = 1 * 1UL;
7966#line 520
7967 __cil_tmp8 = (unsigned long )(command) + __cil_tmp7;
7968#line 520
7969 *((unsigned char *)__cil_tmp8) = (unsigned char)183;
7970#line 520
7971 __cil_tmp9 = 2 * 1UL;
7972#line 520
7973 __cil_tmp10 = (unsigned long )(command) + __cil_tmp9;
7974#line 520
7975 *((unsigned char *)__cil_tmp10) = (unsigned char)0;
7976#line 520
7977 __cil_tmp11 = 3 * 1UL;
7978#line 520
7979 __cil_tmp12 = (unsigned long )(command) + __cil_tmp11;
7980#line 520
7981 *((unsigned char *)__cil_tmp12) = (unsigned char)0;
7982#line 520
7983 __cil_tmp13 = 4 * 1UL;
7984#line 520
7985 __cil_tmp14 = (unsigned long )(command) + __cil_tmp13;
7986#line 520
7987 *((unsigned char *)__cil_tmp14) = (unsigned char)0;
7988#line 520
7989 __cil_tmp15 = 5 * 1UL;
7990#line 520
7991 __cil_tmp16 = (unsigned long )(command) + __cil_tmp15;
7992#line 520
7993 *((unsigned char *)__cil_tmp16) = (unsigned char)0;
7994#line 520
7995 __cil_tmp17 = 6 * 1UL;
7996#line 520
7997 __cil_tmp18 = (unsigned long )(command) + __cil_tmp17;
7998#line 520
7999 *((unsigned char *)__cil_tmp18) = (unsigned char)3;
8000#line 520
8001 __cil_tmp19 = 7 * 1UL;
8002#line 520
8003 __cil_tmp20 = (unsigned long )(command) + __cil_tmp19;
8004#line 520
8005 *((unsigned char *)__cil_tmp20) = (unsigned char)0;
8006#line 520
8007 __cil_tmp21 = 8 * 1UL;
8008#line 520
8009 __cil_tmp22 = (unsigned long )(command) + __cil_tmp21;
8010#line 520
8011 __cil_tmp23 = (unsigned long )us;
8012#line 520
8013 __cil_tmp24 = __cil_tmp23 + 288;
8014#line 520
8015 __cil_tmp25 = *((struct scsi_cmnd **)__cil_tmp24);
8016#line 520
8017 __cil_tmp26 = *((struct scsi_device **)__cil_tmp25);
8018#line 520
8019 __cil_tmp27 = (unsigned long )__cil_tmp26;
8020#line 520
8021 __cil_tmp28 = __cil_tmp27 + 204;
8022#line 520
8023 __cil_tmp29 = *((unsigned int *)__cil_tmp28);
8024#line 520
8025 *((unsigned char *)__cil_tmp22) = (unsigned char )__cil_tmp29;
8026#line 526
8027 __cil_tmp30 = (unsigned long )us;
8028#line 526
8029 __cil_tmp31 = __cil_tmp30 + 208;
8030#line 526
8031 __cil_tmp32 = *((unsigned int *)__cil_tmp31);
8032#line 526
8033 __cil_tmp33 = (void *)(& command);
8034#line 526
8035 __cil_tmp34 = (unsigned int *)0;
8036#line 526
8037 rc = usb_stor_bulk_transfer_buf(us, __cil_tmp32, __cil_tmp33, 9U, __cil_tmp34);
8038 }
8039#line 528
8040 if (rc != 0) {
8041#line 529
8042 return (rc);
8043 } else {
8044
8045 }
8046 {
8047#line 531
8048 __cil_tmp35 = (unsigned long )us;
8049#line 531
8050 __cil_tmp36 = __cil_tmp35 + 212;
8051#line 531
8052 __cil_tmp37 = *((unsigned int *)__cil_tmp36);
8053#line 531
8054 __cil_tmp38 = (void *)(& data);
8055#line 531
8056 __cil_tmp39 = (unsigned int *)0;
8057#line 531
8058 rc = usb_stor_bulk_transfer_buf(us, __cil_tmp37, __cil_tmp38, 3U, __cil_tmp39);
8059 }
8060#line 533
8061 if (rc != 0) {
8062#line 534
8063 return (rc);
8064 } else {
8065
8066 }
8067 {
8068#line 536
8069 __cil_tmp40 = 0 * 1UL;
8070#line 536
8071 __cil_tmp41 = (unsigned long )(data) + __cil_tmp40;
8072#line 536
8073 __cil_tmp42 = *((unsigned char *)__cil_tmp41);
8074#line 536
8075 __cil_tmp43 = (int )__cil_tmp42;
8076#line 536
8077 __cil_tmp44 = 1 * 1UL;
8078#line 536
8079 __cil_tmp45 = (unsigned long )(data) + __cil_tmp44;
8080#line 536
8081 __cil_tmp46 = *((unsigned char *)__cil_tmp45);
8082#line 536
8083 __cil_tmp47 = (int )__cil_tmp46;
8084#line 536
8085 __cil_tmp48 = 2 * 1UL;
8086#line 536
8087 __cil_tmp49 = (unsigned long )(data) + __cil_tmp48;
8088#line 536
8089 __cil_tmp50 = *((unsigned char *)__cil_tmp49);
8090#line 536
8091 __cil_tmp51 = (int )__cil_tmp50;
8092#line 536
8093 printk("<7>usb-storage: alauda_check_status2: %02X %02X %02X\n", __cil_tmp43, __cil_tmp47,
8094 __cil_tmp51);
8095 }
8096 {
8097#line 537
8098 __cil_tmp52 = 0 * 1UL;
8099#line 537
8100 __cil_tmp53 = (unsigned long )(data) + __cil_tmp52;
8101#line 537
8102 __cil_tmp54 = *((unsigned char *)__cil_tmp53);
8103#line 537
8104 __cil_tmp55 = (int )__cil_tmp54;
8105#line 537
8106 if (__cil_tmp55 & 1) {
8107#line 538
8108 return (4);
8109 } else {
8110
8111 }
8112 }
8113#line 540
8114 return (0);
8115}
8116}
8117#line 547 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
8118static int alauda_get_redu_data(struct us_data *us , u16 pba , unsigned char *data )
8119{ int rc ;
8120 unsigned char command[9U] ;
8121 int tmp ;
8122 unsigned long __cil_tmp7 ;
8123 unsigned long __cil_tmp8 ;
8124 unsigned long __cil_tmp9 ;
8125 unsigned long __cil_tmp10 ;
8126 unsigned long __cil_tmp11 ;
8127 unsigned long __cil_tmp12 ;
8128 int __cil_tmp13 ;
8129 int __cil_tmp14 ;
8130 unsigned long __cil_tmp15 ;
8131 unsigned long __cil_tmp16 ;
8132 int __cil_tmp17 ;
8133 int __cil_tmp18 ;
8134 unsigned long __cil_tmp19 ;
8135 unsigned long __cil_tmp20 ;
8136 unsigned long __cil_tmp21 ;
8137 unsigned long __cil_tmp22 ;
8138 unsigned char __cil_tmp23 ;
8139 int __cil_tmp24 ;
8140 int __cil_tmp25 ;
8141 unsigned long __cil_tmp26 ;
8142 unsigned long __cil_tmp27 ;
8143 unsigned long __cil_tmp28 ;
8144 unsigned long __cil_tmp29 ;
8145 unsigned long __cil_tmp30 ;
8146 unsigned long __cil_tmp31 ;
8147 unsigned long __cil_tmp32 ;
8148 unsigned long __cil_tmp33 ;
8149 struct scsi_cmnd *__cil_tmp34 ;
8150 struct scsi_device *__cil_tmp35 ;
8151 unsigned long __cil_tmp36 ;
8152 unsigned long __cil_tmp37 ;
8153 unsigned int __cil_tmp38 ;
8154 unsigned long __cil_tmp39 ;
8155 unsigned long __cil_tmp40 ;
8156 unsigned int __cil_tmp41 ;
8157 void *__cil_tmp42 ;
8158 unsigned int *__cil_tmp43 ;
8159 unsigned long __cil_tmp44 ;
8160 unsigned long __cil_tmp45 ;
8161 unsigned int __cil_tmp46 ;
8162 void *__cil_tmp47 ;
8163 unsigned int *__cil_tmp48 ;
8164
8165 {
8166 {
8167#line 550
8168 __cil_tmp7 = 0 * 1UL;
8169#line 550
8170 __cil_tmp8 = (unsigned long )(command) + __cil_tmp7;
8171#line 550
8172 *((unsigned char *)__cil_tmp8) = (unsigned char)64;
8173#line 550
8174 __cil_tmp9 = 1 * 1UL;
8175#line 550
8176 __cil_tmp10 = (unsigned long )(command) + __cil_tmp9;
8177#line 550
8178 *((unsigned char *)__cil_tmp10) = (unsigned char)133;
8179#line 550
8180 __cil_tmp11 = 2 * 1UL;
8181#line 550
8182 __cil_tmp12 = (unsigned long )(command) + __cil_tmp11;
8183#line 550
8184 __cil_tmp13 = (int )pba;
8185#line 550
8186 __cil_tmp14 = __cil_tmp13 >> 3;
8187#line 550
8188 *((unsigned char *)__cil_tmp12) = (unsigned char )__cil_tmp14;
8189#line 550
8190 __cil_tmp15 = 3 * 1UL;
8191#line 550
8192 __cil_tmp16 = (unsigned long )(command) + __cil_tmp15;
8193#line 550
8194 __cil_tmp17 = (int )pba;
8195#line 550
8196 __cil_tmp18 = __cil_tmp17 >> 11;
8197#line 550
8198 *((unsigned char *)__cil_tmp16) = (unsigned char )__cil_tmp18;
8199#line 550
8200 __cil_tmp19 = 4 * 1UL;
8201#line 550
8202 __cil_tmp20 = (unsigned long )(command) + __cil_tmp19;
8203#line 550
8204 *((unsigned char *)__cil_tmp20) = (unsigned char)0;
8205#line 550
8206 __cil_tmp21 = 5 * 1UL;
8207#line 550
8208 __cil_tmp22 = (unsigned long )(command) + __cil_tmp21;
8209#line 550
8210 __cil_tmp23 = (unsigned char )pba;
8211#line 550
8212 __cil_tmp24 = (int )__cil_tmp23;
8213#line 550
8214 __cil_tmp25 = __cil_tmp24 << 5U;
8215#line 550
8216 *((unsigned char *)__cil_tmp22) = (unsigned char )__cil_tmp25;
8217#line 550
8218 __cil_tmp26 = 6 * 1UL;
8219#line 550
8220 __cil_tmp27 = (unsigned long )(command) + __cil_tmp26;
8221#line 550
8222 *((unsigned char *)__cil_tmp27) = (unsigned char)0;
8223#line 550
8224 __cil_tmp28 = 7 * 1UL;
8225#line 550
8226 __cil_tmp29 = (unsigned long )(command) + __cil_tmp28;
8227#line 550
8228 *((unsigned char *)__cil_tmp29) = (unsigned char)0;
8229#line 550
8230 __cil_tmp30 = 8 * 1UL;
8231#line 550
8232 __cil_tmp31 = (unsigned long )(command) + __cil_tmp30;
8233#line 550
8234 __cil_tmp32 = (unsigned long )us;
8235#line 550
8236 __cil_tmp33 = __cil_tmp32 + 288;
8237#line 550
8238 __cil_tmp34 = *((struct scsi_cmnd **)__cil_tmp33);
8239#line 550
8240 __cil_tmp35 = *((struct scsi_device **)__cil_tmp34);
8241#line 550
8242 __cil_tmp36 = (unsigned long )__cil_tmp35;
8243#line 550
8244 __cil_tmp37 = __cil_tmp36 + 204;
8245#line 550
8246 __cil_tmp38 = *((unsigned int *)__cil_tmp37);
8247#line 550
8248 *((unsigned char *)__cil_tmp31) = (unsigned char )__cil_tmp38;
8249#line 555
8250 __cil_tmp39 = (unsigned long )us;
8251#line 555
8252 __cil_tmp40 = __cil_tmp39 + 208;
8253#line 555
8254 __cil_tmp41 = *((unsigned int *)__cil_tmp40);
8255#line 555
8256 __cil_tmp42 = (void *)(& command);
8257#line 555
8258 __cil_tmp43 = (unsigned int *)0;
8259#line 555
8260 rc = usb_stor_bulk_transfer_buf(us, __cil_tmp41, __cil_tmp42, 9U, __cil_tmp43);
8261 }
8262#line 557
8263 if (rc != 0) {
8264#line 558
8265 return (rc);
8266 } else {
8267
8268 }
8269 {
8270#line 560
8271 __cil_tmp44 = (unsigned long )us;
8272#line 560
8273 __cil_tmp45 = __cil_tmp44 + 212;
8274#line 560
8275 __cil_tmp46 = *((unsigned int *)__cil_tmp45);
8276#line 560
8277 __cil_tmp47 = (void *)data;
8278#line 560
8279 __cil_tmp48 = (unsigned int *)0;
8280#line 560
8281 tmp = usb_stor_bulk_transfer_buf(us, __cil_tmp46, __cil_tmp47, 16U, __cil_tmp48);
8282 }
8283#line 560
8284 return (tmp);
8285}
8286}
8287#line 568 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
8288static u16 alauda_find_unused_pba(struct alauda_media_info *info , unsigned int zone )
8289{ u16 *pba_to_lba ;
8290 unsigned int i ;
8291 unsigned long __cil_tmp5 ;
8292 unsigned long __cil_tmp6 ;
8293 unsigned long __cil_tmp7 ;
8294 u16 **__cil_tmp8 ;
8295 u16 **__cil_tmp9 ;
8296 unsigned long __cil_tmp10 ;
8297 u16 *__cil_tmp11 ;
8298 u16 __cil_tmp12 ;
8299 unsigned int __cil_tmp13 ;
8300 u16 __cil_tmp14 ;
8301 int __cil_tmp15 ;
8302 unsigned long __cil_tmp16 ;
8303 unsigned long __cil_tmp17 ;
8304 unsigned char __cil_tmp18 ;
8305 int __cil_tmp19 ;
8306 unsigned int __cil_tmp20 ;
8307 u16 __cil_tmp21 ;
8308 int __cil_tmp22 ;
8309 int __cil_tmp23 ;
8310 unsigned long __cil_tmp24 ;
8311 unsigned long __cil_tmp25 ;
8312 unsigned int __cil_tmp26 ;
8313
8314 {
8315#line 571
8316 __cil_tmp5 = (unsigned long )zone;
8317#line 571
8318 __cil_tmp6 = (unsigned long )info;
8319#line 571
8320 __cil_tmp7 = __cil_tmp6 + 40;
8321#line 571
8322 __cil_tmp8 = *((u16 ***)__cil_tmp7);
8323#line 571
8324 __cil_tmp9 = __cil_tmp8 + __cil_tmp5;
8325#line 571
8326 pba_to_lba = *__cil_tmp9;
8327#line 574
8328 i = 0U;
8329#line 574
8330 goto ldv_31171;
8331 ldv_31170: ;
8332 {
8333#line 575
8334 __cil_tmp10 = (unsigned long )i;
8335#line 575
8336 __cil_tmp11 = pba_to_lba + __cil_tmp10;
8337#line 575
8338 __cil_tmp12 = *__cil_tmp11;
8339#line 575
8340 __cil_tmp13 = (unsigned int )__cil_tmp12;
8341#line 575
8342 if (__cil_tmp13 == 65535U) {
8343 {
8344#line 576
8345 __cil_tmp14 = (u16 )i;
8346#line 576
8347 __cil_tmp15 = (int )__cil_tmp14;
8348#line 576
8349 __cil_tmp16 = (unsigned long )info;
8350#line 576
8351 __cil_tmp17 = __cil_tmp16 + 30;
8352#line 576
8353 __cil_tmp18 = *((unsigned char *)__cil_tmp17);
8354#line 576
8355 __cil_tmp19 = (int )__cil_tmp18;
8356#line 576
8357 __cil_tmp20 = zone << __cil_tmp19;
8358#line 576
8359 __cil_tmp21 = (u16 )__cil_tmp20;
8360#line 576
8361 __cil_tmp22 = (int )__cil_tmp21;
8362#line 576
8363 __cil_tmp23 = __cil_tmp22 + __cil_tmp15;
8364#line 576
8365 return ((u16 )__cil_tmp23);
8366 }
8367 } else {
8368
8369 }
8370 }
8371#line 574
8372 i = i + 1U;
8373 ldv_31171: ;
8374 {
8375#line 574
8376 __cil_tmp24 = (unsigned long )info;
8377#line 574
8378 __cil_tmp25 = __cil_tmp24 + 20;
8379#line 574
8380 __cil_tmp26 = *((unsigned int *)__cil_tmp25);
8381#line 574
8382 if (__cil_tmp26 > i) {
8383#line 575
8384 goto ldv_31170;
8385 } else {
8386#line 577
8387 goto ldv_31172;
8388 }
8389 }
8390 ldv_31172: ;
8391#line 578
8392 return ((u16 )0U);
8393}
8394}
8395#line 585 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
8396static int alauda_read_map(struct us_data *us , unsigned int zone )
8397{ unsigned char *data ;
8398 int result ;
8399 int i ;
8400 int j ;
8401 unsigned int zonesize ;
8402 unsigned int uzonesize ;
8403 unsigned int lba_offset ;
8404 unsigned int lba_real ;
8405 unsigned int blocknum ;
8406 unsigned int zone_base_lba ;
8407 unsigned int zone_base_pba ;
8408 u16 *lba_to_pba ;
8409 void *tmp ;
8410 u16 *pba_to_lba ;
8411 void *tmp___0 ;
8412 u16 tmp___1 ;
8413 unsigned long __cil_tmp19 ;
8414 unsigned long __cil_tmp20 ;
8415 unsigned long __cil_tmp21 ;
8416 unsigned long __cil_tmp22 ;
8417 struct scsi_cmnd *__cil_tmp23 ;
8418 struct scsi_device *__cil_tmp24 ;
8419 unsigned long __cil_tmp25 ;
8420 unsigned long __cil_tmp26 ;
8421 unsigned int __cil_tmp27 ;
8422 unsigned long __cil_tmp28 ;
8423 unsigned long __cil_tmp29 ;
8424 unsigned long __cil_tmp30 ;
8425 unsigned long __cil_tmp31 ;
8426 unsigned long __cil_tmp32 ;
8427 void *__cil_tmp33 ;
8428 struct alauda_info *__cil_tmp34 ;
8429 unsigned long __cil_tmp35 ;
8430 unsigned long __cil_tmp36 ;
8431 unsigned long __cil_tmp37 ;
8432 unsigned long __cil_tmp38 ;
8433 struct scsi_cmnd *__cil_tmp39 ;
8434 struct scsi_device *__cil_tmp40 ;
8435 unsigned long __cil_tmp41 ;
8436 unsigned long __cil_tmp42 ;
8437 unsigned int __cil_tmp43 ;
8438 unsigned long __cil_tmp44 ;
8439 unsigned long __cil_tmp45 ;
8440 unsigned long __cil_tmp46 ;
8441 unsigned long __cil_tmp47 ;
8442 unsigned long __cil_tmp48 ;
8443 void *__cil_tmp49 ;
8444 struct alauda_info *__cil_tmp50 ;
8445 unsigned long __cil_tmp51 ;
8446 unsigned long __cil_tmp52 ;
8447 size_t __cil_tmp53 ;
8448 size_t __cil_tmp54 ;
8449 u16 *__cil_tmp55 ;
8450 unsigned long __cil_tmp56 ;
8451 unsigned long __cil_tmp57 ;
8452 u16 *__cil_tmp58 ;
8453 unsigned long __cil_tmp59 ;
8454 unsigned long __cil_tmp60 ;
8455 unsigned long __cil_tmp61 ;
8456 u16 *__cil_tmp62 ;
8457 unsigned long __cil_tmp63 ;
8458 u16 *__cil_tmp64 ;
8459 unsigned int __cil_tmp65 ;
8460 unsigned int __cil_tmp66 ;
8461 u16 __cil_tmp67 ;
8462 int __cil_tmp68 ;
8463 u16 __cil_tmp69 ;
8464 unsigned long __cil_tmp70 ;
8465 unsigned char *__cil_tmp71 ;
8466 unsigned char __cil_tmp72 ;
8467 unsigned int __cil_tmp73 ;
8468 unsigned long __cil_tmp74 ;
8469 u16 *__cil_tmp75 ;
8470 unsigned long __cil_tmp76 ;
8471 unsigned char *__cil_tmp77 ;
8472 unsigned char __cil_tmp78 ;
8473 unsigned int __cil_tmp79 ;
8474 unsigned char __cil_tmp80 ;
8475 int __cil_tmp81 ;
8476 unsigned char *__cil_tmp82 ;
8477 unsigned char __cil_tmp83 ;
8478 int __cil_tmp84 ;
8479 unsigned char *__cil_tmp85 ;
8480 unsigned char __cil_tmp86 ;
8481 int __cil_tmp87 ;
8482 unsigned char *__cil_tmp88 ;
8483 unsigned char __cil_tmp89 ;
8484 int __cil_tmp90 ;
8485 unsigned char *__cil_tmp91 ;
8486 unsigned char __cil_tmp92 ;
8487 int __cil_tmp93 ;
8488 unsigned char *__cil_tmp94 ;
8489 unsigned char __cil_tmp95 ;
8490 int __cil_tmp96 ;
8491 unsigned long __cil_tmp97 ;
8492 u16 *__cil_tmp98 ;
8493 unsigned char *__cil_tmp99 ;
8494 unsigned char __cil_tmp100 ;
8495 int __cil_tmp101 ;
8496 int __cil_tmp102 ;
8497 unsigned int __cil_tmp103 ;
8498 unsigned char *__cil_tmp104 ;
8499 unsigned char __cil_tmp105 ;
8500 int __cil_tmp106 ;
8501 unsigned char *__cil_tmp107 ;
8502 unsigned char __cil_tmp108 ;
8503 int __cil_tmp109 ;
8504 unsigned char *__cil_tmp110 ;
8505 unsigned char __cil_tmp111 ;
8506 int __cil_tmp112 ;
8507 unsigned char *__cil_tmp113 ;
8508 unsigned char __cil_tmp114 ;
8509 int __cil_tmp115 ;
8510 unsigned long __cil_tmp116 ;
8511 u16 *__cil_tmp117 ;
8512 unsigned char *__cil_tmp118 ;
8513 unsigned char __cil_tmp119 ;
8514 int __cil_tmp120 ;
8515 unsigned char *__cil_tmp121 ;
8516 unsigned char __cil_tmp122 ;
8517 int __cil_tmp123 ;
8518 int __cil_tmp124 ;
8519 unsigned long __cil_tmp125 ;
8520 unsigned long __cil_tmp126 ;
8521 unsigned char __cil_tmp127 ;
8522 unsigned int __cil_tmp128 ;
8523 unsigned char *__cil_tmp129 ;
8524 unsigned char __cil_tmp130 ;
8525 int __cil_tmp131 ;
8526 unsigned char *__cil_tmp132 ;
8527 unsigned char __cil_tmp133 ;
8528 int __cil_tmp134 ;
8529 unsigned long __cil_tmp135 ;
8530 u16 *__cil_tmp136 ;
8531 unsigned char *__cil_tmp137 ;
8532 unsigned char __cil_tmp138 ;
8533 int __cil_tmp139 ;
8534 int __cil_tmp140 ;
8535 unsigned char *__cil_tmp141 ;
8536 unsigned char __cil_tmp142 ;
8537 int __cil_tmp143 ;
8538 int __cil_tmp144 ;
8539 unsigned int __cil_tmp145 ;
8540 unsigned long __cil_tmp146 ;
8541 u16 *__cil_tmp147 ;
8542 u16 __cil_tmp148 ;
8543 unsigned int __cil_tmp149 ;
8544 unsigned long __cil_tmp150 ;
8545 u16 *__cil_tmp151 ;
8546 u16 __cil_tmp152 ;
8547 int __cil_tmp153 ;
8548 unsigned long __cil_tmp154 ;
8549 u16 *__cil_tmp155 ;
8550 unsigned long __cil_tmp156 ;
8551 u16 *__cil_tmp157 ;
8552 unsigned int __cil_tmp158 ;
8553 unsigned long __cil_tmp159 ;
8554 unsigned long __cil_tmp160 ;
8555 unsigned long __cil_tmp161 ;
8556 struct scsi_cmnd *__cil_tmp162 ;
8557 struct scsi_device *__cil_tmp163 ;
8558 unsigned long __cil_tmp164 ;
8559 unsigned long __cil_tmp165 ;
8560 unsigned int __cil_tmp166 ;
8561 unsigned long __cil_tmp167 ;
8562 unsigned long __cil_tmp168 ;
8563 unsigned long __cil_tmp169 ;
8564 unsigned long __cil_tmp170 ;
8565 unsigned long __cil_tmp171 ;
8566 void *__cil_tmp172 ;
8567 struct alauda_info *__cil_tmp173 ;
8568 unsigned long __cil_tmp174 ;
8569 unsigned long __cil_tmp175 ;
8570 u16 **__cil_tmp176 ;
8571 u16 **__cil_tmp177 ;
8572 unsigned long __cil_tmp178 ;
8573 unsigned long __cil_tmp179 ;
8574 unsigned long __cil_tmp180 ;
8575 struct scsi_cmnd *__cil_tmp181 ;
8576 struct scsi_device *__cil_tmp182 ;
8577 unsigned long __cil_tmp183 ;
8578 unsigned long __cil_tmp184 ;
8579 unsigned int __cil_tmp185 ;
8580 unsigned long __cil_tmp186 ;
8581 unsigned long __cil_tmp187 ;
8582 unsigned long __cil_tmp188 ;
8583 unsigned long __cil_tmp189 ;
8584 unsigned long __cil_tmp190 ;
8585 void *__cil_tmp191 ;
8586 struct alauda_info *__cil_tmp192 ;
8587 unsigned long __cil_tmp193 ;
8588 unsigned long __cil_tmp194 ;
8589 u16 **__cil_tmp195 ;
8590 u16 **__cil_tmp196 ;
8591 void const *__cil_tmp197 ;
8592 void const *__cil_tmp198 ;
8593
8594 {
8595 {
8596#line 587
8597 __cil_tmp19 = (unsigned long )us;
8598#line 587
8599 __cil_tmp20 = __cil_tmp19 + 568;
8600#line 587
8601 data = *((unsigned char **)__cil_tmp20);
8602#line 590
8603 __cil_tmp21 = (unsigned long )us;
8604#line 590
8605 __cil_tmp22 = __cil_tmp21 + 288;
8606#line 590
8607 __cil_tmp23 = *((struct scsi_cmnd **)__cil_tmp22);
8608#line 590
8609 __cil_tmp24 = *((struct scsi_device **)__cil_tmp23);
8610#line 590
8611 __cil_tmp25 = (unsigned long )__cil_tmp24;
8612#line 590
8613 __cil_tmp26 = __cil_tmp25 + 204;
8614#line 590
8615 __cil_tmp27 = *((unsigned int *)__cil_tmp26);
8616#line 590
8617 __cil_tmp28 = __cil_tmp27 * 48UL;
8618#line 590
8619 __cil_tmp29 = __cil_tmp28 + 20;
8620#line 590
8621 __cil_tmp30 = 0 + __cil_tmp29;
8622#line 590
8623 __cil_tmp31 = (unsigned long )us;
8624#line 590
8625 __cil_tmp32 = __cil_tmp31 + 1080;
8626#line 590
8627 __cil_tmp33 = *((void **)__cil_tmp32);
8628#line 590
8629 __cil_tmp34 = (struct alauda_info *)__cil_tmp33;
8630#line 590
8631 __cil_tmp35 = (unsigned long )__cil_tmp34;
8632#line 590
8633 __cil_tmp36 = __cil_tmp35 + __cil_tmp30;
8634#line 590
8635 zonesize = *((unsigned int *)__cil_tmp36);
8636#line 591
8637 __cil_tmp37 = (unsigned long )us;
8638#line 591
8639 __cil_tmp38 = __cil_tmp37 + 288;
8640#line 591
8641 __cil_tmp39 = *((struct scsi_cmnd **)__cil_tmp38);
8642#line 591
8643 __cil_tmp40 = *((struct scsi_device **)__cil_tmp39);
8644#line 591
8645 __cil_tmp41 = (unsigned long )__cil_tmp40;
8646#line 591
8647 __cil_tmp42 = __cil_tmp41 + 204;
8648#line 591
8649 __cil_tmp43 = *((unsigned int *)__cil_tmp42);
8650#line 591
8651 __cil_tmp44 = __cil_tmp43 * 48UL;
8652#line 591
8653 __cil_tmp45 = __cil_tmp44 + 16;
8654#line 591
8655 __cil_tmp46 = 0 + __cil_tmp45;
8656#line 591
8657 __cil_tmp47 = (unsigned long )us;
8658#line 591
8659 __cil_tmp48 = __cil_tmp47 + 1080;
8660#line 591
8661 __cil_tmp49 = *((void **)__cil_tmp48);
8662#line 591
8663 __cil_tmp50 = (struct alauda_info *)__cil_tmp49;
8664#line 591
8665 __cil_tmp51 = (unsigned long )__cil_tmp50;
8666#line 591
8667 __cil_tmp52 = __cil_tmp51 + __cil_tmp46;
8668#line 591
8669 uzonesize = *((unsigned int *)__cil_tmp52);
8670#line 593
8671 zone_base_lba = zone * uzonesize;
8672#line 594
8673 zone_base_pba = zone * zonesize;
8674#line 595
8675 __cil_tmp53 = (size_t )zonesize;
8676#line 595
8677 tmp = kcalloc(__cil_tmp53, 2UL, 16U);
8678#line 595
8679 lba_to_pba = (u16 *)tmp;
8680#line 596
8681 __cil_tmp54 = (size_t )zonesize;
8682#line 596
8683 tmp___0 = kcalloc(__cil_tmp54, 2UL, 16U);
8684#line 596
8685 pba_to_lba = (u16 *)tmp___0;
8686 }
8687 {
8688#line 597
8689 __cil_tmp55 = (u16 *)0;
8690#line 597
8691 __cil_tmp56 = (unsigned long )__cil_tmp55;
8692#line 597
8693 __cil_tmp57 = (unsigned long )lba_to_pba;
8694#line 597
8695 if (__cil_tmp57 == __cil_tmp56) {
8696#line 598
8697 result = 3;
8698#line 599
8699 goto error;
8700 } else {
8701 {
8702#line 597
8703 __cil_tmp58 = (u16 *)0;
8704#line 597
8705 __cil_tmp59 = (unsigned long )__cil_tmp58;
8706#line 597
8707 __cil_tmp60 = (unsigned long )pba_to_lba;
8708#line 597
8709 if (__cil_tmp60 == __cil_tmp59) {
8710#line 598
8711 result = 3;
8712#line 599
8713 goto error;
8714 } else {
8715
8716 }
8717 }
8718 }
8719 }
8720 {
8721#line 602
8722 printk("<7>usb-storage: alauda_read_map: Mapping blocks for zone %d\n", zone);
8723#line 605
8724 i = 0;
8725 }
8726#line 605
8727 goto ldv_31192;
8728 ldv_31191:
8729#line 606
8730 tmp___1 = (u16 )65535U;
8731#line 606
8732 __cil_tmp61 = (unsigned long )i;
8733#line 606
8734 __cil_tmp62 = pba_to_lba + __cil_tmp61;
8735#line 606
8736 *__cil_tmp62 = tmp___1;
8737#line 606
8738 __cil_tmp63 = (unsigned long )i;
8739#line 606
8740 __cil_tmp64 = lba_to_pba + __cil_tmp63;
8741#line 606
8742 *__cil_tmp64 = tmp___1;
8743#line 605
8744 i = i + 1;
8745 ldv_31192: ;
8746 {
8747#line 605
8748 __cil_tmp65 = (unsigned int )i;
8749#line 605
8750 if (__cil_tmp65 < zonesize) {
8751#line 606
8752 goto ldv_31191;
8753 } else {
8754#line 608
8755 goto ldv_31193;
8756 }
8757 }
8758 ldv_31193:
8759#line 608
8760 i = 0;
8761#line 608
8762 goto ldv_31204;
8763 ldv_31203:
8764 {
8765#line 609
8766 __cil_tmp66 = (unsigned int )i;
8767#line 609
8768 blocknum = zone_base_pba + __cil_tmp66;
8769#line 611
8770 __cil_tmp67 = (u16 )blocknum;
8771#line 611
8772 __cil_tmp68 = (int )__cil_tmp67;
8773#line 611
8774 __cil_tmp69 = (u16 )__cil_tmp68;
8775#line 611
8776 result = alauda_get_redu_data(us, __cil_tmp69, data);
8777 }
8778#line 612
8779 if (result != 0) {
8780#line 613
8781 result = 3;
8782#line 614
8783 goto error;
8784 } else {
8785
8786 }
8787#line 618
8788 j = 0;
8789#line 618
8790 goto ldv_31196;
8791 ldv_31195: ;
8792 {
8793#line 619
8794 __cil_tmp70 = (unsigned long )j;
8795#line 619
8796 __cil_tmp71 = data + __cil_tmp70;
8797#line 619
8798 __cil_tmp72 = *__cil_tmp71;
8799#line 619
8800 __cil_tmp73 = (unsigned int )__cil_tmp72;
8801#line 619
8802 if (__cil_tmp73 != 0U) {
8803#line 620
8804 goto nonz;
8805 } else {
8806
8807 }
8808 }
8809#line 618
8810 j = j + 1;
8811 ldv_31196: ;
8812#line 618
8813 if (j <= 15) {
8814#line 619
8815 goto ldv_31195;
8816 } else {
8817#line 621
8818 goto ldv_31197;
8819 }
8820 ldv_31197:
8821 {
8822#line 621
8823 __cil_tmp74 = (unsigned long )i;
8824#line 621
8825 __cil_tmp75 = pba_to_lba + __cil_tmp74;
8826#line 621
8827 *__cil_tmp75 = (u16 )65533U;
8828#line 622
8829 printk("<7>usb-storage: alauda_read_map: PBA %d has no logical mapping\n", blocknum);
8830 }
8831#line 623
8832 goto ldv_31198;
8833 nonz:
8834#line 627
8835 j = 0;
8836#line 627
8837 goto ldv_31201;
8838 ldv_31200: ;
8839 {
8840#line 628
8841 __cil_tmp76 = (unsigned long )j;
8842#line 628
8843 __cil_tmp77 = data + __cil_tmp76;
8844#line 628
8845 __cil_tmp78 = *__cil_tmp77;
8846#line 628
8847 __cil_tmp79 = (unsigned int )__cil_tmp78;
8848#line 628
8849 if (__cil_tmp79 != 255U) {
8850#line 629
8851 goto nonff;
8852 } else {
8853
8854 }
8855 }
8856#line 627
8857 j = j + 1;
8858 ldv_31201: ;
8859#line 627
8860 if (j <= 15) {
8861#line 628
8862 goto ldv_31200;
8863 } else {
8864#line 630
8865 goto ldv_31202;
8866 }
8867 ldv_31202: ;
8868#line 630
8869 goto ldv_31198;
8870 nonff: ;
8871#line 634
8872 if (j <= 5) {
8873 {
8874#line 635
8875 __cil_tmp80 = *data;
8876#line 635
8877 __cil_tmp81 = (int )__cil_tmp80;
8878#line 635
8879 __cil_tmp82 = data + 1UL;
8880#line 635
8881 __cil_tmp83 = *__cil_tmp82;
8882#line 635
8883 __cil_tmp84 = (int )__cil_tmp83;
8884#line 635
8885 __cil_tmp85 = data + 2UL;
8886#line 635
8887 __cil_tmp86 = *__cil_tmp85;
8888#line 635
8889 __cil_tmp87 = (int )__cil_tmp86;
8890#line 635
8891 __cil_tmp88 = data + 3UL;
8892#line 635
8893 __cil_tmp89 = *__cil_tmp88;
8894#line 635
8895 __cil_tmp90 = (int )__cil_tmp89;
8896#line 635
8897 __cil_tmp91 = data + 4UL;
8898#line 635
8899 __cil_tmp92 = *__cil_tmp91;
8900#line 635
8901 __cil_tmp93 = (int )__cil_tmp92;
8902#line 635
8903 __cil_tmp94 = data + 5UL;
8904#line 635
8905 __cil_tmp95 = *__cil_tmp94;
8906#line 635
8907 __cil_tmp96 = (int )__cil_tmp95;
8908#line 635
8909 printk("<7>usb-storage: alauda_read_map: PBA %d has no logical mapping: reserved area = %02X%02X%02X%02X data status %02X block status %02X\n",
8910 blocknum, __cil_tmp81, __cil_tmp84, __cil_tmp87, __cil_tmp90, __cil_tmp93,
8911 __cil_tmp96);
8912#line 640
8913 __cil_tmp97 = (unsigned long )i;
8914#line 640
8915 __cil_tmp98 = pba_to_lba + __cil_tmp97;
8916#line 640
8917 *__cil_tmp98 = (u16 )65533U;
8918 }
8919#line 641
8920 goto ldv_31198;
8921 } else {
8922
8923 }
8924 {
8925#line 644
8926 __cil_tmp99 = data + 6UL;
8927#line 644
8928 __cil_tmp100 = *__cil_tmp99;
8929#line 644
8930 __cil_tmp101 = (int )__cil_tmp100;
8931#line 644
8932 __cil_tmp102 = __cil_tmp101 >> 4;
8933#line 644
8934 __cil_tmp103 = (unsigned int )__cil_tmp102;
8935#line 644
8936 if (__cil_tmp103 != 1U) {
8937 {
8938#line 645
8939 __cil_tmp104 = data + 6UL;
8940#line 645
8941 __cil_tmp105 = *__cil_tmp104;
8942#line 645
8943 __cil_tmp106 = (int )__cil_tmp105;
8944#line 645
8945 __cil_tmp107 = data + 7UL;
8946#line 645
8947 __cil_tmp108 = *__cil_tmp107;
8948#line 645
8949 __cil_tmp109 = (int )__cil_tmp108;
8950#line 645
8951 __cil_tmp110 = data + 11UL;
8952#line 645
8953 __cil_tmp111 = *__cil_tmp110;
8954#line 645
8955 __cil_tmp112 = (int )__cil_tmp111;
8956#line 645
8957 __cil_tmp113 = data + 12UL;
8958#line 645
8959 __cil_tmp114 = *__cil_tmp113;
8960#line 645
8961 __cil_tmp115 = (int )__cil_tmp114;
8962#line 645
8963 printk("<7>usb-storage: alauda_read_map: PBA %d has invalid address field %02X%02X/%02X%02X\n",
8964 blocknum, __cil_tmp106, __cil_tmp109, __cil_tmp112, __cil_tmp115);
8965#line 648
8966 __cil_tmp116 = (unsigned long )i;
8967#line 648
8968 __cil_tmp117 = pba_to_lba + __cil_tmp116;
8969#line 648
8970 *__cil_tmp117 = (u16 )65533U;
8971 }
8972#line 649
8973 goto ldv_31198;
8974 } else {
8975
8976 }
8977 }
8978 {
8979#line 653
8980 __cil_tmp118 = data + 7UL;
8981#line 653
8982 __cil_tmp119 = *__cil_tmp118;
8983#line 653
8984 __cil_tmp120 = (int )__cil_tmp119;
8985#line 653
8986 __cil_tmp121 = data + 6UL;
8987#line 653
8988 __cil_tmp122 = *__cil_tmp121;
8989#line 653
8990 __cil_tmp123 = (int )__cil_tmp122;
8991#line 653
8992 __cil_tmp124 = __cil_tmp123 ^ __cil_tmp120;
8993#line 653
8994 __cil_tmp125 = __cil_tmp124 * 1UL;
8995#line 653
8996 __cil_tmp126 = (unsigned long )(parity) + __cil_tmp125;
8997#line 653
8998 __cil_tmp127 = *((unsigned char *)__cil_tmp126);
8999#line 653
9000 __cil_tmp128 = (unsigned int )__cil_tmp127;
9001#line 653
9002 if (__cil_tmp128 != 0U) {
9003 {
9004#line 654
9005 __cil_tmp129 = data + 6UL;
9006#line 654
9007 __cil_tmp130 = *__cil_tmp129;
9008#line 654
9009 __cil_tmp131 = (int )__cil_tmp130;
9010#line 654
9011 __cil_tmp132 = data + 7UL;
9012#line 654
9013 __cil_tmp133 = *__cil_tmp132;
9014#line 654
9015 __cil_tmp134 = (int )__cil_tmp133;
9016#line 654
9017 printk("<4>alauda_read_map: Bad parity in LBA for block %d (%02X %02X)\n", i,
9018 __cil_tmp131, __cil_tmp134);
9019#line 657
9020 __cil_tmp135 = (unsigned long )i;
9021#line 657
9022 __cil_tmp136 = pba_to_lba + __cil_tmp135;
9023#line 657
9024 *__cil_tmp136 = (u16 )65533U;
9025 }
9026#line 658
9027 goto ldv_31198;
9028 } else {
9029
9030 }
9031 }
9032#line 661
9033 __cil_tmp137 = data + 6UL;
9034#line 661
9035 __cil_tmp138 = *__cil_tmp137;
9036#line 661
9037 __cil_tmp139 = (int )__cil_tmp138;
9038#line 661
9039 __cil_tmp140 = __cil_tmp139 << 8;
9040#line 661
9041 __cil_tmp141 = data + 7UL;
9042#line 661
9043 __cil_tmp142 = *__cil_tmp141;
9044#line 661
9045 __cil_tmp143 = (int )__cil_tmp142;
9046#line 661
9047 __cil_tmp144 = __cil_tmp143 | __cil_tmp140;
9048#line 661
9049 lba_offset = (unsigned int )__cil_tmp144;
9050#line 662
9051 __cil_tmp145 = lba_offset & 2047U;
9052#line 662
9053 lba_offset = __cil_tmp145 >> 1;
9054#line 663
9055 lba_real = lba_offset + zone_base_lba;
9056#line 674
9057 if (lba_offset >= uzonesize) {
9058 {
9059#line 675
9060 printk("<4>alauda_read_map: Bad low LBA %d for block %d\n", lba_real, blocknum);
9061 }
9062#line 678
9063 goto ldv_31198;
9064 } else {
9065
9066 }
9067 {
9068#line 681
9069 __cil_tmp146 = (unsigned long )lba_offset;
9070#line 681
9071 __cil_tmp147 = lba_to_pba + __cil_tmp146;
9072#line 681
9073 __cil_tmp148 = *__cil_tmp147;
9074#line 681
9075 __cil_tmp149 = (unsigned int )__cil_tmp148;
9076#line 681
9077 if (__cil_tmp149 != 65535U) {
9078 {
9079#line 682
9080 __cil_tmp150 = (unsigned long )lba_offset;
9081#line 682
9082 __cil_tmp151 = lba_to_pba + __cil_tmp150;
9083#line 682
9084 __cil_tmp152 = *__cil_tmp151;
9085#line 682
9086 __cil_tmp153 = (int )__cil_tmp152;
9087#line 682
9088 printk("<4>alauda_read_map: LBA %d seen for PBA %d and %d\n", lba_real, __cil_tmp153,
9089 blocknum);
9090 }
9091#line 686
9092 goto ldv_31198;
9093 } else {
9094
9095 }
9096 }
9097#line 689
9098 __cil_tmp154 = (unsigned long )i;
9099#line 689
9100 __cil_tmp155 = pba_to_lba + __cil_tmp154;
9101#line 689
9102 *__cil_tmp155 = (u16 )lba_real;
9103#line 690
9104 __cil_tmp156 = (unsigned long )lba_offset;
9105#line 690
9106 __cil_tmp157 = lba_to_pba + __cil_tmp156;
9107#line 690
9108 *__cil_tmp157 = (u16 )blocknum;
9109#line 691
9110 goto ldv_31198;
9111 ldv_31198:
9112#line 608
9113 i = i + 1;
9114 ldv_31204: ;
9115 {
9116#line 608
9117 __cil_tmp158 = (unsigned int )i;
9118#line 608
9119 if (__cil_tmp158 < zonesize) {
9120#line 609
9121 goto ldv_31203;
9122 } else {
9123#line 611
9124 goto ldv_31205;
9125 }
9126 }
9127 ldv_31205:
9128#line 694
9129 __cil_tmp159 = (unsigned long )zone;
9130#line 694
9131 __cil_tmp160 = (unsigned long )us;
9132#line 694
9133 __cil_tmp161 = __cil_tmp160 + 288;
9134#line 694
9135 __cil_tmp162 = *((struct scsi_cmnd **)__cil_tmp161);
9136#line 694
9137 __cil_tmp163 = *((struct scsi_device **)__cil_tmp162);
9138#line 694
9139 __cil_tmp164 = (unsigned long )__cil_tmp163;
9140#line 694
9141 __cil_tmp165 = __cil_tmp164 + 204;
9142#line 694
9143 __cil_tmp166 = *((unsigned int *)__cil_tmp165);
9144#line 694
9145 __cil_tmp167 = __cil_tmp166 * 48UL;
9146#line 694
9147 __cil_tmp168 = __cil_tmp167 + 32;
9148#line 694
9149 __cil_tmp169 = 0 + __cil_tmp168;
9150#line 694
9151 __cil_tmp170 = (unsigned long )us;
9152#line 694
9153 __cil_tmp171 = __cil_tmp170 + 1080;
9154#line 694
9155 __cil_tmp172 = *((void **)__cil_tmp171);
9156#line 694
9157 __cil_tmp173 = (struct alauda_info *)__cil_tmp172;
9158#line 694
9159 __cil_tmp174 = (unsigned long )__cil_tmp173;
9160#line 694
9161 __cil_tmp175 = __cil_tmp174 + __cil_tmp169;
9162#line 694
9163 __cil_tmp176 = *((u16 ***)__cil_tmp175);
9164#line 694
9165 __cil_tmp177 = __cil_tmp176 + __cil_tmp159;
9166#line 694
9167 *__cil_tmp177 = lba_to_pba;
9168#line 695
9169 __cil_tmp178 = (unsigned long )zone;
9170#line 695
9171 __cil_tmp179 = (unsigned long )us;
9172#line 695
9173 __cil_tmp180 = __cil_tmp179 + 288;
9174#line 695
9175 __cil_tmp181 = *((struct scsi_cmnd **)__cil_tmp180);
9176#line 695
9177 __cil_tmp182 = *((struct scsi_device **)__cil_tmp181);
9178#line 695
9179 __cil_tmp183 = (unsigned long )__cil_tmp182;
9180#line 695
9181 __cil_tmp184 = __cil_tmp183 + 204;
9182#line 695
9183 __cil_tmp185 = *((unsigned int *)__cil_tmp184);
9184#line 695
9185 __cil_tmp186 = __cil_tmp185 * 48UL;
9186#line 695
9187 __cil_tmp187 = __cil_tmp186 + 40;
9188#line 695
9189 __cil_tmp188 = 0 + __cil_tmp187;
9190#line 695
9191 __cil_tmp189 = (unsigned long )us;
9192#line 695
9193 __cil_tmp190 = __cil_tmp189 + 1080;
9194#line 695
9195 __cil_tmp191 = *((void **)__cil_tmp190);
9196#line 695
9197 __cil_tmp192 = (struct alauda_info *)__cil_tmp191;
9198#line 695
9199 __cil_tmp193 = (unsigned long )__cil_tmp192;
9200#line 695
9201 __cil_tmp194 = __cil_tmp193 + __cil_tmp188;
9202#line 695
9203 __cil_tmp195 = *((u16 ***)__cil_tmp194);
9204#line 695
9205 __cil_tmp196 = __cil_tmp195 + __cil_tmp178;
9206#line 695
9207 *__cil_tmp196 = pba_to_lba;
9208#line 696
9209 result = 0;
9210#line 697
9211 goto out;
9212 error:
9213 {
9214#line 700
9215 __cil_tmp197 = (void const *)lba_to_pba;
9216#line 700
9217 kfree(__cil_tmp197);
9218#line 701
9219 __cil_tmp198 = (void const *)pba_to_lba;
9220#line 701
9221 kfree(__cil_tmp198);
9222 }
9223 out: ;
9224#line 703
9225 return (result);
9226}
9227}
9228#line 710 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
9229static void alauda_ensure_map_for_zone(struct us_data *us , unsigned int zone )
9230{ u16 *__cil_tmp3 ;
9231 unsigned long __cil_tmp4 ;
9232 unsigned long __cil_tmp5 ;
9233 unsigned long __cil_tmp6 ;
9234 unsigned long __cil_tmp7 ;
9235 struct scsi_cmnd *__cil_tmp8 ;
9236 struct scsi_device *__cil_tmp9 ;
9237 unsigned long __cil_tmp10 ;
9238 unsigned long __cil_tmp11 ;
9239 unsigned int __cil_tmp12 ;
9240 unsigned long __cil_tmp13 ;
9241 unsigned long __cil_tmp14 ;
9242 unsigned long __cil_tmp15 ;
9243 unsigned long __cil_tmp16 ;
9244 unsigned long __cil_tmp17 ;
9245 void *__cil_tmp18 ;
9246 struct alauda_info *__cil_tmp19 ;
9247 unsigned long __cil_tmp20 ;
9248 unsigned long __cil_tmp21 ;
9249 u16 **__cil_tmp22 ;
9250 u16 **__cil_tmp23 ;
9251 u16 *__cil_tmp24 ;
9252 unsigned long __cil_tmp25 ;
9253 u16 *__cil_tmp26 ;
9254 unsigned long __cil_tmp27 ;
9255 unsigned long __cil_tmp28 ;
9256 unsigned long __cil_tmp29 ;
9257 unsigned long __cil_tmp30 ;
9258 struct scsi_cmnd *__cil_tmp31 ;
9259 struct scsi_device *__cil_tmp32 ;
9260 unsigned long __cil_tmp33 ;
9261 unsigned long __cil_tmp34 ;
9262 unsigned int __cil_tmp35 ;
9263 unsigned long __cil_tmp36 ;
9264 unsigned long __cil_tmp37 ;
9265 unsigned long __cil_tmp38 ;
9266 unsigned long __cil_tmp39 ;
9267 unsigned long __cil_tmp40 ;
9268 void *__cil_tmp41 ;
9269 struct alauda_info *__cil_tmp42 ;
9270 unsigned long __cil_tmp43 ;
9271 unsigned long __cil_tmp44 ;
9272 u16 **__cil_tmp45 ;
9273 u16 **__cil_tmp46 ;
9274 u16 *__cil_tmp47 ;
9275 unsigned long __cil_tmp48 ;
9276
9277 {
9278 {
9279#line 712
9280 __cil_tmp3 = (u16 *)0;
9281#line 712
9282 __cil_tmp4 = (unsigned long )__cil_tmp3;
9283#line 712
9284 __cil_tmp5 = (unsigned long )zone;
9285#line 712
9286 __cil_tmp6 = (unsigned long )us;
9287#line 712
9288 __cil_tmp7 = __cil_tmp6 + 288;
9289#line 712
9290 __cil_tmp8 = *((struct scsi_cmnd **)__cil_tmp7);
9291#line 712
9292 __cil_tmp9 = *((struct scsi_device **)__cil_tmp8);
9293#line 712
9294 __cil_tmp10 = (unsigned long )__cil_tmp9;
9295#line 712
9296 __cil_tmp11 = __cil_tmp10 + 204;
9297#line 712
9298 __cil_tmp12 = *((unsigned int *)__cil_tmp11);
9299#line 712
9300 __cil_tmp13 = __cil_tmp12 * 48UL;
9301#line 712
9302 __cil_tmp14 = __cil_tmp13 + 32;
9303#line 712
9304 __cil_tmp15 = 0 + __cil_tmp14;
9305#line 712
9306 __cil_tmp16 = (unsigned long )us;
9307#line 712
9308 __cil_tmp17 = __cil_tmp16 + 1080;
9309#line 712
9310 __cil_tmp18 = *((void **)__cil_tmp17);
9311#line 712
9312 __cil_tmp19 = (struct alauda_info *)__cil_tmp18;
9313#line 712
9314 __cil_tmp20 = (unsigned long )__cil_tmp19;
9315#line 712
9316 __cil_tmp21 = __cil_tmp20 + __cil_tmp15;
9317#line 712
9318 __cil_tmp22 = *((u16 ***)__cil_tmp21);
9319#line 712
9320 __cil_tmp23 = __cil_tmp22 + __cil_tmp5;
9321#line 712
9322 __cil_tmp24 = *__cil_tmp23;
9323#line 712
9324 __cil_tmp25 = (unsigned long )__cil_tmp24;
9325#line 712
9326 if (__cil_tmp25 == __cil_tmp4) {
9327 {
9328#line 714
9329 alauda_read_map(us, zone);
9330 }
9331 } else {
9332 {
9333#line 712
9334 __cil_tmp26 = (u16 *)0;
9335#line 712
9336 __cil_tmp27 = (unsigned long )__cil_tmp26;
9337#line 712
9338 __cil_tmp28 = (unsigned long )zone;
9339#line 712
9340 __cil_tmp29 = (unsigned long )us;
9341#line 712
9342 __cil_tmp30 = __cil_tmp29 + 288;
9343#line 712
9344 __cil_tmp31 = *((struct scsi_cmnd **)__cil_tmp30);
9345#line 712
9346 __cil_tmp32 = *((struct scsi_device **)__cil_tmp31);
9347#line 712
9348 __cil_tmp33 = (unsigned long )__cil_tmp32;
9349#line 712
9350 __cil_tmp34 = __cil_tmp33 + 204;
9351#line 712
9352 __cil_tmp35 = *((unsigned int *)__cil_tmp34);
9353#line 712
9354 __cil_tmp36 = __cil_tmp35 * 48UL;
9355#line 712
9356 __cil_tmp37 = __cil_tmp36 + 40;
9357#line 712
9358 __cil_tmp38 = 0 + __cil_tmp37;
9359#line 712
9360 __cil_tmp39 = (unsigned long )us;
9361#line 712
9362 __cil_tmp40 = __cil_tmp39 + 1080;
9363#line 712
9364 __cil_tmp41 = *((void **)__cil_tmp40);
9365#line 712
9366 __cil_tmp42 = (struct alauda_info *)__cil_tmp41;
9367#line 712
9368 __cil_tmp43 = (unsigned long )__cil_tmp42;
9369#line 712
9370 __cil_tmp44 = __cil_tmp43 + __cil_tmp38;
9371#line 712
9372 __cil_tmp45 = *((u16 ***)__cil_tmp44);
9373#line 712
9374 __cil_tmp46 = __cil_tmp45 + __cil_tmp28;
9375#line 712
9376 __cil_tmp47 = *__cil_tmp46;
9377#line 712
9378 __cil_tmp48 = (unsigned long )__cil_tmp47;
9379#line 712
9380 if (__cil_tmp48 == __cil_tmp27) {
9381 {
9382#line 714
9383 alauda_read_map(us, zone);
9384 }
9385 } else {
9386
9387 }
9388 }
9389 }
9390 }
9391#line 715
9392 return;
9393}
9394}
9395#line 720 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
9396static int alauda_erase_block(struct us_data *us , u16 pba )
9397{ int rc ;
9398 unsigned char command[9U] ;
9399 unsigned char buf[2U] ;
9400 unsigned long __cil_tmp6 ;
9401 unsigned long __cil_tmp7 ;
9402 unsigned long __cil_tmp8 ;
9403 unsigned long __cil_tmp9 ;
9404 unsigned long __cil_tmp10 ;
9405 unsigned long __cil_tmp11 ;
9406 int __cil_tmp12 ;
9407 int __cil_tmp13 ;
9408 unsigned long __cil_tmp14 ;
9409 unsigned long __cil_tmp15 ;
9410 int __cil_tmp16 ;
9411 int __cil_tmp17 ;
9412 unsigned long __cil_tmp18 ;
9413 unsigned long __cil_tmp19 ;
9414 unsigned long __cil_tmp20 ;
9415 unsigned long __cil_tmp21 ;
9416 unsigned char __cil_tmp22 ;
9417 int __cil_tmp23 ;
9418 int __cil_tmp24 ;
9419 unsigned long __cil_tmp25 ;
9420 unsigned long __cil_tmp26 ;
9421 unsigned long __cil_tmp27 ;
9422 unsigned long __cil_tmp28 ;
9423 unsigned long __cil_tmp29 ;
9424 unsigned long __cil_tmp30 ;
9425 unsigned long __cil_tmp31 ;
9426 unsigned long __cil_tmp32 ;
9427 struct scsi_cmnd *__cil_tmp33 ;
9428 struct scsi_device *__cil_tmp34 ;
9429 unsigned long __cil_tmp35 ;
9430 unsigned long __cil_tmp36 ;
9431 unsigned int __cil_tmp37 ;
9432 int __cil_tmp38 ;
9433 unsigned long __cil_tmp39 ;
9434 unsigned long __cil_tmp40 ;
9435 unsigned int __cil_tmp41 ;
9436 void *__cil_tmp42 ;
9437 unsigned int *__cil_tmp43 ;
9438 unsigned long __cil_tmp44 ;
9439 unsigned long __cil_tmp45 ;
9440 unsigned int __cil_tmp46 ;
9441 void *__cil_tmp47 ;
9442 unsigned int *__cil_tmp48 ;
9443 unsigned long __cil_tmp49 ;
9444 unsigned long __cil_tmp50 ;
9445 unsigned char __cil_tmp51 ;
9446 int __cil_tmp52 ;
9447 unsigned long __cil_tmp53 ;
9448 unsigned long __cil_tmp54 ;
9449 unsigned char __cil_tmp55 ;
9450 int __cil_tmp56 ;
9451
9452 {
9453 {
9454#line 723
9455 __cil_tmp6 = 0 * 1UL;
9456#line 723
9457 __cil_tmp7 = (unsigned long )(command) + __cil_tmp6;
9458#line 723
9459 *((unsigned char *)__cil_tmp7) = (unsigned char)64;
9460#line 723
9461 __cil_tmp8 = 1 * 1UL;
9462#line 723
9463 __cil_tmp9 = (unsigned long )(command) + __cil_tmp8;
9464#line 723
9465 *((unsigned char *)__cil_tmp9) = (unsigned char)163;
9466#line 723
9467 __cil_tmp10 = 2 * 1UL;
9468#line 723
9469 __cil_tmp11 = (unsigned long )(command) + __cil_tmp10;
9470#line 723
9471 __cil_tmp12 = (int )pba;
9472#line 723
9473 __cil_tmp13 = __cil_tmp12 >> 3;
9474#line 723
9475 *((unsigned char *)__cil_tmp11) = (unsigned char )__cil_tmp13;
9476#line 723
9477 __cil_tmp14 = 3 * 1UL;
9478#line 723
9479 __cil_tmp15 = (unsigned long )(command) + __cil_tmp14;
9480#line 723
9481 __cil_tmp16 = (int )pba;
9482#line 723
9483 __cil_tmp17 = __cil_tmp16 >> 11;
9484#line 723
9485 *((unsigned char *)__cil_tmp15) = (unsigned char )__cil_tmp17;
9486#line 723
9487 __cil_tmp18 = 4 * 1UL;
9488#line 723
9489 __cil_tmp19 = (unsigned long )(command) + __cil_tmp18;
9490#line 723
9491 *((unsigned char *)__cil_tmp19) = (unsigned char)0;
9492#line 723
9493 __cil_tmp20 = 5 * 1UL;
9494#line 723
9495 __cil_tmp21 = (unsigned long )(command) + __cil_tmp20;
9496#line 723
9497 __cil_tmp22 = (unsigned char )pba;
9498#line 723
9499 __cil_tmp23 = (int )__cil_tmp22;
9500#line 723
9501 __cil_tmp24 = __cil_tmp23 << 5U;
9502#line 723
9503 *((unsigned char *)__cil_tmp21) = (unsigned char )__cil_tmp24;
9504#line 723
9505 __cil_tmp25 = 6 * 1UL;
9506#line 723
9507 __cil_tmp26 = (unsigned long )(command) + __cil_tmp25;
9508#line 723
9509 *((unsigned char *)__cil_tmp26) = (unsigned char)2;
9510#line 723
9511 __cil_tmp27 = 7 * 1UL;
9512#line 723
9513 __cil_tmp28 = (unsigned long )(command) + __cil_tmp27;
9514#line 723
9515 *((unsigned char *)__cil_tmp28) = (unsigned char)0;
9516#line 723
9517 __cil_tmp29 = 8 * 1UL;
9518#line 723
9519 __cil_tmp30 = (unsigned long )(command) + __cil_tmp29;
9520#line 723
9521 __cil_tmp31 = (unsigned long )us;
9522#line 723
9523 __cil_tmp32 = __cil_tmp31 + 288;
9524#line 723
9525 __cil_tmp33 = *((struct scsi_cmnd **)__cil_tmp32);
9526#line 723
9527 __cil_tmp34 = *((struct scsi_device **)__cil_tmp33);
9528#line 723
9529 __cil_tmp35 = (unsigned long )__cil_tmp34;
9530#line 723
9531 __cil_tmp36 = __cil_tmp35 + 204;
9532#line 723
9533 __cil_tmp37 = *((unsigned int *)__cil_tmp36);
9534#line 723
9535 *((unsigned char *)__cil_tmp30) = (unsigned char )__cil_tmp37;
9536#line 729
9537 __cil_tmp38 = (int )pba;
9538#line 729
9539 printk("<7>usb-storage: alauda_erase_block: Erasing PBA %d\n", __cil_tmp38);
9540#line 731
9541 __cil_tmp39 = (unsigned long )us;
9542#line 731
9543 __cil_tmp40 = __cil_tmp39 + 208;
9544#line 731
9545 __cil_tmp41 = *((unsigned int *)__cil_tmp40);
9546#line 731
9547 __cil_tmp42 = (void *)(& command);
9548#line 731
9549 __cil_tmp43 = (unsigned int *)0;
9550#line 731
9551 rc = usb_stor_bulk_transfer_buf(us, __cil_tmp41, __cil_tmp42, 9U, __cil_tmp43);
9552 }
9553#line 733
9554 if (rc != 0) {
9555#line 734
9556 return (rc);
9557 } else {
9558
9559 }
9560 {
9561#line 736
9562 __cil_tmp44 = (unsigned long )us;
9563#line 736
9564 __cil_tmp45 = __cil_tmp44 + 212;
9565#line 736
9566 __cil_tmp46 = *((unsigned int *)__cil_tmp45);
9567#line 736
9568 __cil_tmp47 = (void *)(& buf);
9569#line 736
9570 __cil_tmp48 = (unsigned int *)0;
9571#line 736
9572 rc = usb_stor_bulk_transfer_buf(us, __cil_tmp46, __cil_tmp47, 2U, __cil_tmp48);
9573 }
9574#line 738
9575 if (rc != 0) {
9576#line 739
9577 return (rc);
9578 } else {
9579
9580 }
9581 {
9582#line 741
9583 __cil_tmp49 = 0 * 1UL;
9584#line 741
9585 __cil_tmp50 = (unsigned long )(buf) + __cil_tmp49;
9586#line 741
9587 __cil_tmp51 = *((unsigned char *)__cil_tmp50);
9588#line 741
9589 __cil_tmp52 = (int )__cil_tmp51;
9590#line 741
9591 __cil_tmp53 = 1 * 1UL;
9592#line 741
9593 __cil_tmp54 = (unsigned long )(buf) + __cil_tmp53;
9594#line 741
9595 __cil_tmp55 = *((unsigned char *)__cil_tmp54);
9596#line 741
9597 __cil_tmp56 = (int )__cil_tmp55;
9598#line 741
9599 printk("<7>usb-storage: alauda_erase_block: Erase result: %02X %02X\n", __cil_tmp52,
9600 __cil_tmp56);
9601 }
9602#line 743
9603 return (rc);
9604}
9605}
9606#line 750 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
9607static int alauda_read_block_raw(struct us_data *us , u16 pba , unsigned int page ,
9608 unsigned int pages , unsigned char *data )
9609{ int rc ;
9610 unsigned char command[9U] ;
9611 int tmp ;
9612 unsigned long __cil_tmp9 ;
9613 unsigned long __cil_tmp10 ;
9614 unsigned long __cil_tmp11 ;
9615 unsigned long __cil_tmp12 ;
9616 unsigned long __cil_tmp13 ;
9617 unsigned long __cil_tmp14 ;
9618 int __cil_tmp15 ;
9619 int __cil_tmp16 ;
9620 unsigned long __cil_tmp17 ;
9621 unsigned long __cil_tmp18 ;
9622 int __cil_tmp19 ;
9623 int __cil_tmp20 ;
9624 unsigned long __cil_tmp21 ;
9625 unsigned long __cil_tmp22 ;
9626 unsigned long __cil_tmp23 ;
9627 unsigned long __cil_tmp24 ;
9628 unsigned char __cil_tmp25 ;
9629 int __cil_tmp26 ;
9630 unsigned char __cil_tmp27 ;
9631 int __cil_tmp28 ;
9632 int __cil_tmp29 ;
9633 int __cil_tmp30 ;
9634 unsigned long __cil_tmp31 ;
9635 unsigned long __cil_tmp32 ;
9636 unsigned long __cil_tmp33 ;
9637 unsigned long __cil_tmp34 ;
9638 unsigned long __cil_tmp35 ;
9639 unsigned long __cil_tmp36 ;
9640 unsigned long __cil_tmp37 ;
9641 unsigned long __cil_tmp38 ;
9642 struct scsi_cmnd *__cil_tmp39 ;
9643 struct scsi_device *__cil_tmp40 ;
9644 unsigned long __cil_tmp41 ;
9645 unsigned long __cil_tmp42 ;
9646 unsigned int __cil_tmp43 ;
9647 int __cil_tmp44 ;
9648 unsigned long __cil_tmp45 ;
9649 unsigned long __cil_tmp46 ;
9650 unsigned int __cil_tmp47 ;
9651 void *__cil_tmp48 ;
9652 unsigned int *__cil_tmp49 ;
9653 unsigned long __cil_tmp50 ;
9654 unsigned long __cil_tmp51 ;
9655 unsigned int __cil_tmp52 ;
9656 void *__cil_tmp53 ;
9657 unsigned long __cil_tmp54 ;
9658 unsigned long __cil_tmp55 ;
9659 struct scsi_cmnd *__cil_tmp56 ;
9660 struct scsi_device *__cil_tmp57 ;
9661 unsigned long __cil_tmp58 ;
9662 unsigned long __cil_tmp59 ;
9663 unsigned int __cil_tmp60 ;
9664 unsigned long __cil_tmp61 ;
9665 unsigned long __cil_tmp62 ;
9666 unsigned long __cil_tmp63 ;
9667 unsigned long __cil_tmp64 ;
9668 unsigned long __cil_tmp65 ;
9669 void *__cil_tmp66 ;
9670 struct alauda_info *__cil_tmp67 ;
9671 unsigned long __cil_tmp68 ;
9672 unsigned long __cil_tmp69 ;
9673 unsigned int __cil_tmp70 ;
9674 unsigned int __cil_tmp71 ;
9675 unsigned int __cil_tmp72 ;
9676 unsigned int *__cil_tmp73 ;
9677
9678 {
9679 {
9680#line 754
9681 __cil_tmp9 = 0 * 1UL;
9682#line 754
9683 __cil_tmp10 = (unsigned long )(command) + __cil_tmp9;
9684#line 754
9685 *((unsigned char *)__cil_tmp10) = (unsigned char)64;
9686#line 754
9687 __cil_tmp11 = 1 * 1UL;
9688#line 754
9689 __cil_tmp12 = (unsigned long )(command) + __cil_tmp11;
9690#line 754
9691 *((unsigned char *)__cil_tmp12) = (unsigned char)148;
9692#line 754
9693 __cil_tmp13 = 2 * 1UL;
9694#line 754
9695 __cil_tmp14 = (unsigned long )(command) + __cil_tmp13;
9696#line 754
9697 __cil_tmp15 = (int )pba;
9698#line 754
9699 __cil_tmp16 = __cil_tmp15 >> 3;
9700#line 754
9701 *((unsigned char *)__cil_tmp14) = (unsigned char )__cil_tmp16;
9702#line 754
9703 __cil_tmp17 = 3 * 1UL;
9704#line 754
9705 __cil_tmp18 = (unsigned long )(command) + __cil_tmp17;
9706#line 754
9707 __cil_tmp19 = (int )pba;
9708#line 754
9709 __cil_tmp20 = __cil_tmp19 >> 11;
9710#line 754
9711 *((unsigned char *)__cil_tmp18) = (unsigned char )__cil_tmp20;
9712#line 754
9713 __cil_tmp21 = 4 * 1UL;
9714#line 754
9715 __cil_tmp22 = (unsigned long )(command) + __cil_tmp21;
9716#line 754
9717 *((unsigned char *)__cil_tmp22) = (unsigned char)0;
9718#line 754
9719 __cil_tmp23 = 5 * 1UL;
9720#line 754
9721 __cil_tmp24 = (unsigned long )(command) + __cil_tmp23;
9722#line 754
9723 __cil_tmp25 = (unsigned char )page;
9724#line 754
9725 __cil_tmp26 = (int )__cil_tmp25;
9726#line 754
9727 __cil_tmp27 = (unsigned char )pba;
9728#line 754
9729 __cil_tmp28 = (int )__cil_tmp27;
9730#line 754
9731 __cil_tmp29 = __cil_tmp28 << 5U;
9732#line 754
9733 __cil_tmp30 = __cil_tmp29 + __cil_tmp26;
9734#line 754
9735 *((unsigned char *)__cil_tmp24) = (unsigned char )__cil_tmp30;
9736#line 754
9737 __cil_tmp31 = 6 * 1UL;
9738#line 754
9739 __cil_tmp32 = (unsigned long )(command) + __cil_tmp31;
9740#line 754
9741 *((unsigned char *)__cil_tmp32) = (unsigned char )pages;
9742#line 754
9743 __cil_tmp33 = 7 * 1UL;
9744#line 754
9745 __cil_tmp34 = (unsigned long )(command) + __cil_tmp33;
9746#line 754
9747 *((unsigned char *)__cil_tmp34) = (unsigned char)0;
9748#line 754
9749 __cil_tmp35 = 8 * 1UL;
9750#line 754
9751 __cil_tmp36 = (unsigned long )(command) + __cil_tmp35;
9752#line 754
9753 __cil_tmp37 = (unsigned long )us;
9754#line 754
9755 __cil_tmp38 = __cil_tmp37 + 288;
9756#line 754
9757 __cil_tmp39 = *((struct scsi_cmnd **)__cil_tmp38);
9758#line 754
9759 __cil_tmp40 = *((struct scsi_device **)__cil_tmp39);
9760#line 754
9761 __cil_tmp41 = (unsigned long )__cil_tmp40;
9762#line 754
9763 __cil_tmp42 = __cil_tmp41 + 204;
9764#line 754
9765 __cil_tmp43 = *((unsigned int *)__cil_tmp42);
9766#line 754
9767 *((unsigned char *)__cil_tmp36) = (unsigned char )__cil_tmp43;
9768#line 759
9769 __cil_tmp44 = (int )pba;
9770#line 759
9771 printk("<7>usb-storage: alauda_read_block: pba %d page %d count %d\n", __cil_tmp44,
9772 page, pages);
9773#line 762
9774 __cil_tmp45 = (unsigned long )us;
9775#line 762
9776 __cil_tmp46 = __cil_tmp45 + 208;
9777#line 762
9778 __cil_tmp47 = *((unsigned int *)__cil_tmp46);
9779#line 762
9780 __cil_tmp48 = (void *)(& command);
9781#line 762
9782 __cil_tmp49 = (unsigned int *)0;
9783#line 762
9784 rc = usb_stor_bulk_transfer_buf(us, __cil_tmp47, __cil_tmp48, 9U, __cil_tmp49);
9785 }
9786#line 764
9787 if (rc != 0) {
9788#line 765
9789 return (rc);
9790 } else {
9791
9792 }
9793 {
9794#line 767
9795 __cil_tmp50 = (unsigned long )us;
9796#line 767
9797 __cil_tmp51 = __cil_tmp50 + 212;
9798#line 767
9799 __cil_tmp52 = *((unsigned int *)__cil_tmp51);
9800#line 767
9801 __cil_tmp53 = (void *)data;
9802#line 767
9803 __cil_tmp54 = (unsigned long )us;
9804#line 767
9805 __cil_tmp55 = __cil_tmp54 + 288;
9806#line 767
9807 __cil_tmp56 = *((struct scsi_cmnd **)__cil_tmp55);
9808#line 767
9809 __cil_tmp57 = *((struct scsi_device **)__cil_tmp56);
9810#line 767
9811 __cil_tmp58 = (unsigned long )__cil_tmp57;
9812#line 767
9813 __cil_tmp59 = __cil_tmp58 + 204;
9814#line 767
9815 __cil_tmp60 = *((unsigned int *)__cil_tmp59);
9816#line 767
9817 __cil_tmp61 = __cil_tmp60 * 48UL;
9818#line 767
9819 __cil_tmp62 = __cil_tmp61 + 8;
9820#line 767
9821 __cil_tmp63 = 0 + __cil_tmp62;
9822#line 767
9823 __cil_tmp64 = (unsigned long )us;
9824#line 767
9825 __cil_tmp65 = __cil_tmp64 + 1080;
9826#line 767
9827 __cil_tmp66 = *((void **)__cil_tmp65);
9828#line 767
9829 __cil_tmp67 = (struct alauda_info *)__cil_tmp66;
9830#line 767
9831 __cil_tmp68 = (unsigned long )__cil_tmp67;
9832#line 767
9833 __cil_tmp69 = __cil_tmp68 + __cil_tmp63;
9834#line 767
9835 __cil_tmp70 = *((unsigned int *)__cil_tmp69);
9836#line 767
9837 __cil_tmp71 = __cil_tmp70 + 64U;
9838#line 767
9839 __cil_tmp72 = __cil_tmp71 * pages;
9840#line 767
9841 __cil_tmp73 = (unsigned int *)0;
9842#line 767
9843 tmp = usb_stor_bulk_transfer_buf(us, __cil_tmp52, __cil_tmp53, __cil_tmp72, __cil_tmp73);
9844 }
9845#line 767
9846 return (tmp);
9847}
9848}
9849#line 777 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
9850static int alauda_read_block(struct us_data *us , u16 pba , unsigned int page , unsigned int pages ,
9851 unsigned char *data )
9852{ int i ;
9853 int rc ;
9854 unsigned int pagesize ;
9855 int dest_offset ;
9856 int src_offset ;
9857 unsigned long __cil_tmp11 ;
9858 unsigned long __cil_tmp12 ;
9859 struct scsi_cmnd *__cil_tmp13 ;
9860 struct scsi_device *__cil_tmp14 ;
9861 unsigned long __cil_tmp15 ;
9862 unsigned long __cil_tmp16 ;
9863 unsigned int __cil_tmp17 ;
9864 unsigned long __cil_tmp18 ;
9865 unsigned long __cil_tmp19 ;
9866 unsigned long __cil_tmp20 ;
9867 unsigned long __cil_tmp21 ;
9868 unsigned long __cil_tmp22 ;
9869 void *__cil_tmp23 ;
9870 struct alauda_info *__cil_tmp24 ;
9871 unsigned long __cil_tmp25 ;
9872 unsigned long __cil_tmp26 ;
9873 int __cil_tmp27 ;
9874 u16 __cil_tmp28 ;
9875 unsigned int __cil_tmp29 ;
9876 unsigned int __cil_tmp30 ;
9877 unsigned int __cil_tmp31 ;
9878 unsigned int __cil_tmp32 ;
9879 unsigned int __cil_tmp33 ;
9880 unsigned long __cil_tmp34 ;
9881 void *__cil_tmp35 ;
9882 void *__cil_tmp36 ;
9883 unsigned long __cil_tmp37 ;
9884 void const *__cil_tmp38 ;
9885 void const *__cil_tmp39 ;
9886 size_t __cil_tmp40 ;
9887 unsigned int __cil_tmp41 ;
9888
9889 {
9890 {
9891#line 781
9892 __cil_tmp11 = (unsigned long )us;
9893#line 781
9894 __cil_tmp12 = __cil_tmp11 + 288;
9895#line 781
9896 __cil_tmp13 = *((struct scsi_cmnd **)__cil_tmp12);
9897#line 781
9898 __cil_tmp14 = *((struct scsi_device **)__cil_tmp13);
9899#line 781
9900 __cil_tmp15 = (unsigned long )__cil_tmp14;
9901#line 781
9902 __cil_tmp16 = __cil_tmp15 + 204;
9903#line 781
9904 __cil_tmp17 = *((unsigned int *)__cil_tmp16);
9905#line 781
9906 __cil_tmp18 = __cil_tmp17 * 48UL;
9907#line 781
9908 __cil_tmp19 = __cil_tmp18 + 8;
9909#line 781
9910 __cil_tmp20 = 0 + __cil_tmp19;
9911#line 781
9912 __cil_tmp21 = (unsigned long )us;
9913#line 781
9914 __cil_tmp22 = __cil_tmp21 + 1080;
9915#line 781
9916 __cil_tmp23 = *((void **)__cil_tmp22);
9917#line 781
9918 __cil_tmp24 = (struct alauda_info *)__cil_tmp23;
9919#line 781
9920 __cil_tmp25 = (unsigned long )__cil_tmp24;
9921#line 781
9922 __cil_tmp26 = __cil_tmp25 + __cil_tmp20;
9923#line 781
9924 pagesize = *((unsigned int *)__cil_tmp26);
9925#line 783
9926 __cil_tmp27 = (int )pba;
9927#line 783
9928 __cil_tmp28 = (u16 )__cil_tmp27;
9929#line 783
9930 rc = alauda_read_block_raw(us, __cil_tmp28, page, pages, data);
9931 }
9932#line 784
9933 if (rc != 0) {
9934#line 785
9935 return (rc);
9936 } else {
9937
9938 }
9939#line 788
9940 i = 0;
9941#line 788
9942 goto ldv_31240;
9943 ldv_31239:
9944 {
9945#line 789
9946 __cil_tmp29 = (unsigned int )i;
9947#line 789
9948 __cil_tmp30 = __cil_tmp29 * pagesize;
9949#line 789
9950 dest_offset = (int )__cil_tmp30;
9951#line 790
9952 __cil_tmp31 = (unsigned int )i;
9953#line 790
9954 __cil_tmp32 = pagesize + 64U;
9955#line 790
9956 __cil_tmp33 = __cil_tmp32 * __cil_tmp31;
9957#line 790
9958 src_offset = (int )__cil_tmp33;
9959#line 791
9960 __cil_tmp34 = (unsigned long )dest_offset;
9961#line 791
9962 __cil_tmp35 = (void *)data;
9963#line 791
9964 __cil_tmp36 = __cil_tmp35 + __cil_tmp34;
9965#line 791
9966 __cil_tmp37 = (unsigned long )src_offset;
9967#line 791
9968 __cil_tmp38 = (void const *)data;
9969#line 791
9970 __cil_tmp39 = __cil_tmp38 + __cil_tmp37;
9971#line 791
9972 __cil_tmp40 = (size_t )pagesize;
9973#line 791
9974 memmove(__cil_tmp36, __cil_tmp39, __cil_tmp40);
9975#line 788
9976 i = i + 1;
9977 }
9978 ldv_31240: ;
9979 {
9980#line 788
9981 __cil_tmp41 = (unsigned int )i;
9982#line 788
9983 if (__cil_tmp41 < pages) {
9984#line 789
9985 goto ldv_31239;
9986 } else {
9987#line 791
9988 goto ldv_31241;
9989 }
9990 }
9991 ldv_31241: ;
9992#line 794
9993 return (rc);
9994}
9995}
9996#line 802 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
9997static int alauda_write_block(struct us_data *us , u16 pba , unsigned char *data )
9998{ int rc ;
9999 struct alauda_info *info ;
10000 unsigned char command[9U] ;
10001 int tmp ;
10002 unsigned long __cil_tmp8 ;
10003 unsigned long __cil_tmp9 ;
10004 void *__cil_tmp10 ;
10005 unsigned long __cil_tmp11 ;
10006 unsigned long __cil_tmp12 ;
10007 unsigned long __cil_tmp13 ;
10008 unsigned long __cil_tmp14 ;
10009 unsigned long __cil_tmp15 ;
10010 unsigned long __cil_tmp16 ;
10011 int __cil_tmp17 ;
10012 int __cil_tmp18 ;
10013 unsigned long __cil_tmp19 ;
10014 unsigned long __cil_tmp20 ;
10015 int __cil_tmp21 ;
10016 int __cil_tmp22 ;
10017 unsigned long __cil_tmp23 ;
10018 unsigned long __cil_tmp24 ;
10019 unsigned long __cil_tmp25 ;
10020 unsigned long __cil_tmp26 ;
10021 unsigned char __cil_tmp27 ;
10022 int __cil_tmp28 ;
10023 int __cil_tmp29 ;
10024 unsigned long __cil_tmp30 ;
10025 unsigned long __cil_tmp31 ;
10026 unsigned long __cil_tmp32 ;
10027 unsigned long __cil_tmp33 ;
10028 unsigned long __cil_tmp34 ;
10029 unsigned long __cil_tmp35 ;
10030 unsigned long __cil_tmp36 ;
10031 unsigned long __cil_tmp37 ;
10032 struct scsi_cmnd *__cil_tmp38 ;
10033 struct scsi_device *__cil_tmp39 ;
10034 unsigned long __cil_tmp40 ;
10035 unsigned long __cil_tmp41 ;
10036 unsigned int __cil_tmp42 ;
10037 int __cil_tmp43 ;
10038 unsigned long __cil_tmp44 ;
10039 unsigned long __cil_tmp45 ;
10040 unsigned int __cil_tmp46 ;
10041 void *__cil_tmp47 ;
10042 unsigned int *__cil_tmp48 ;
10043 unsigned long __cil_tmp49 ;
10044 unsigned long __cil_tmp50 ;
10045 int __cil_tmp51 ;
10046 unsigned int __cil_tmp52 ;
10047 void *__cil_tmp53 ;
10048 unsigned long __cil_tmp54 ;
10049 unsigned long __cil_tmp55 ;
10050 struct scsi_cmnd *__cil_tmp56 ;
10051 struct scsi_device *__cil_tmp57 ;
10052 unsigned long __cil_tmp58 ;
10053 unsigned long __cil_tmp59 ;
10054 unsigned int __cil_tmp60 ;
10055 unsigned long __cil_tmp61 ;
10056 unsigned long __cil_tmp62 ;
10057 unsigned long __cil_tmp63 ;
10058 unsigned long __cil_tmp64 ;
10059 unsigned long __cil_tmp65 ;
10060 void *__cil_tmp66 ;
10061 struct alauda_info *__cil_tmp67 ;
10062 unsigned long __cil_tmp68 ;
10063 unsigned long __cil_tmp69 ;
10064 unsigned int __cil_tmp70 ;
10065 unsigned long __cil_tmp71 ;
10066 unsigned long __cil_tmp72 ;
10067 struct scsi_cmnd *__cil_tmp73 ;
10068 struct scsi_device *__cil_tmp74 ;
10069 unsigned long __cil_tmp75 ;
10070 unsigned long __cil_tmp76 ;
10071 unsigned int __cil_tmp77 ;
10072 unsigned long __cil_tmp78 ;
10073 unsigned long __cil_tmp79 ;
10074 unsigned long __cil_tmp80 ;
10075 unsigned long __cil_tmp81 ;
10076 unsigned long __cil_tmp82 ;
10077 void *__cil_tmp83 ;
10078 struct alauda_info *__cil_tmp84 ;
10079 unsigned long __cil_tmp85 ;
10080 unsigned long __cil_tmp86 ;
10081 unsigned int __cil_tmp87 ;
10082 unsigned int __cil_tmp88 ;
10083 unsigned int __cil_tmp89 ;
10084 unsigned int *__cil_tmp90 ;
10085
10086 {
10087 {
10088#line 805
10089 __cil_tmp8 = (unsigned long )us;
10090#line 805
10091 __cil_tmp9 = __cil_tmp8 + 1080;
10092#line 805
10093 __cil_tmp10 = *((void **)__cil_tmp9);
10094#line 805
10095 info = (struct alauda_info *)__cil_tmp10;
10096#line 806
10097 __cil_tmp11 = 0 * 1UL;
10098#line 806
10099 __cil_tmp12 = (unsigned long )(command) + __cil_tmp11;
10100#line 806
10101 *((unsigned char *)__cil_tmp12) = (unsigned char)64;
10102#line 806
10103 __cil_tmp13 = 1 * 1UL;
10104#line 806
10105 __cil_tmp14 = (unsigned long )(command) + __cil_tmp13;
10106#line 806
10107 *((unsigned char *)__cil_tmp14) = (unsigned char)180;
10108#line 806
10109 __cil_tmp15 = 2 * 1UL;
10110#line 806
10111 __cil_tmp16 = (unsigned long )(command) + __cil_tmp15;
10112#line 806
10113 __cil_tmp17 = (int )pba;
10114#line 806
10115 __cil_tmp18 = __cil_tmp17 >> 3;
10116#line 806
10117 *((unsigned char *)__cil_tmp16) = (unsigned char )__cil_tmp18;
10118#line 806
10119 __cil_tmp19 = 3 * 1UL;
10120#line 806
10121 __cil_tmp20 = (unsigned long )(command) + __cil_tmp19;
10122#line 806
10123 __cil_tmp21 = (int )pba;
10124#line 806
10125 __cil_tmp22 = __cil_tmp21 >> 11;
10126#line 806
10127 *((unsigned char *)__cil_tmp20) = (unsigned char )__cil_tmp22;
10128#line 806
10129 __cil_tmp23 = 4 * 1UL;
10130#line 806
10131 __cil_tmp24 = (unsigned long )(command) + __cil_tmp23;
10132#line 806
10133 *((unsigned char *)__cil_tmp24) = (unsigned char)0;
10134#line 806
10135 __cil_tmp25 = 5 * 1UL;
10136#line 806
10137 __cil_tmp26 = (unsigned long )(command) + __cil_tmp25;
10138#line 806
10139 __cil_tmp27 = (unsigned char )pba;
10140#line 806
10141 __cil_tmp28 = (int )__cil_tmp27;
10142#line 806
10143 __cil_tmp29 = __cil_tmp28 << 5U;
10144#line 806
10145 *((unsigned char *)__cil_tmp26) = (unsigned char )__cil_tmp29;
10146#line 806
10147 __cil_tmp30 = 6 * 1UL;
10148#line 806
10149 __cil_tmp31 = (unsigned long )(command) + __cil_tmp30;
10150#line 806
10151 *((unsigned char *)__cil_tmp31) = (unsigned char)32;
10152#line 806
10153 __cil_tmp32 = 7 * 1UL;
10154#line 806
10155 __cil_tmp33 = (unsigned long )(command) + __cil_tmp32;
10156#line 806
10157 *((unsigned char *)__cil_tmp33) = (unsigned char)0;
10158#line 806
10159 __cil_tmp34 = 8 * 1UL;
10160#line 806
10161 __cil_tmp35 = (unsigned long )(command) + __cil_tmp34;
10162#line 806
10163 __cil_tmp36 = (unsigned long )us;
10164#line 806
10165 __cil_tmp37 = __cil_tmp36 + 288;
10166#line 806
10167 __cil_tmp38 = *((struct scsi_cmnd **)__cil_tmp37);
10168#line 806
10169 __cil_tmp39 = *((struct scsi_device **)__cil_tmp38);
10170#line 806
10171 __cil_tmp40 = (unsigned long )__cil_tmp39;
10172#line 806
10173 __cil_tmp41 = __cil_tmp40 + 204;
10174#line 806
10175 __cil_tmp42 = *((unsigned int *)__cil_tmp41);
10176#line 806
10177 *((unsigned char *)__cil_tmp35) = (unsigned char )__cil_tmp42;
10178#line 811
10179 __cil_tmp43 = (int )pba;
10180#line 811
10181 printk("<7>usb-storage: alauda_write_block: pba %d\n", __cil_tmp43);
10182#line 813
10183 __cil_tmp44 = (unsigned long )us;
10184#line 813
10185 __cil_tmp45 = __cil_tmp44 + 208;
10186#line 813
10187 __cil_tmp46 = *((unsigned int *)__cil_tmp45);
10188#line 813
10189 __cil_tmp47 = (void *)(& command);
10190#line 813
10191 __cil_tmp48 = (unsigned int *)0;
10192#line 813
10193 rc = usb_stor_bulk_transfer_buf(us, __cil_tmp46, __cil_tmp47, 9U, __cil_tmp48);
10194 }
10195#line 815
10196 if (rc != 0) {
10197#line 816
10198 return (rc);
10199 } else {
10200
10201 }
10202 {
10203#line 818
10204 __cil_tmp49 = (unsigned long )info;
10205#line 818
10206 __cil_tmp50 = __cil_tmp49 + 96;
10207#line 818
10208 __cil_tmp51 = *((int *)__cil_tmp50);
10209#line 818
10210 __cil_tmp52 = (unsigned int )__cil_tmp51;
10211#line 818
10212 __cil_tmp53 = (void *)data;
10213#line 818
10214 __cil_tmp54 = (unsigned long )us;
10215#line 818
10216 __cil_tmp55 = __cil_tmp54 + 288;
10217#line 818
10218 __cil_tmp56 = *((struct scsi_cmnd **)__cil_tmp55);
10219#line 818
10220 __cil_tmp57 = *((struct scsi_device **)__cil_tmp56);
10221#line 818
10222 __cil_tmp58 = (unsigned long )__cil_tmp57;
10223#line 818
10224 __cil_tmp59 = __cil_tmp58 + 204;
10225#line 818
10226 __cil_tmp60 = *((unsigned int *)__cil_tmp59);
10227#line 818
10228 __cil_tmp61 = __cil_tmp60 * 48UL;
10229#line 818
10230 __cil_tmp62 = __cil_tmp61 + 12;
10231#line 818
10232 __cil_tmp63 = 0 + __cil_tmp62;
10233#line 818
10234 __cil_tmp64 = (unsigned long )us;
10235#line 818
10236 __cil_tmp65 = __cil_tmp64 + 1080;
10237#line 818
10238 __cil_tmp66 = *((void **)__cil_tmp65);
10239#line 818
10240 __cil_tmp67 = (struct alauda_info *)__cil_tmp66;
10241#line 818
10242 __cil_tmp68 = (unsigned long )__cil_tmp67;
10243#line 818
10244 __cil_tmp69 = __cil_tmp68 + __cil_tmp63;
10245#line 818
10246 __cil_tmp70 = *((unsigned int *)__cil_tmp69);
10247#line 818
10248 __cil_tmp71 = (unsigned long )us;
10249#line 818
10250 __cil_tmp72 = __cil_tmp71 + 288;
10251#line 818
10252 __cil_tmp73 = *((struct scsi_cmnd **)__cil_tmp72);
10253#line 818
10254 __cil_tmp74 = *((struct scsi_device **)__cil_tmp73);
10255#line 818
10256 __cil_tmp75 = (unsigned long )__cil_tmp74;
10257#line 818
10258 __cil_tmp76 = __cil_tmp75 + 204;
10259#line 818
10260 __cil_tmp77 = *((unsigned int *)__cil_tmp76);
10261#line 818
10262 __cil_tmp78 = __cil_tmp77 * 48UL;
10263#line 818
10264 __cil_tmp79 = __cil_tmp78 + 8;
10265#line 818
10266 __cil_tmp80 = 0 + __cil_tmp79;
10267#line 818
10268 __cil_tmp81 = (unsigned long )us;
10269#line 818
10270 __cil_tmp82 = __cil_tmp81 + 1080;
10271#line 818
10272 __cil_tmp83 = *((void **)__cil_tmp82);
10273#line 818
10274 __cil_tmp84 = (struct alauda_info *)__cil_tmp83;
10275#line 818
10276 __cil_tmp85 = (unsigned long )__cil_tmp84;
10277#line 818
10278 __cil_tmp86 = __cil_tmp85 + __cil_tmp80;
10279#line 818
10280 __cil_tmp87 = *((unsigned int *)__cil_tmp86);
10281#line 818
10282 __cil_tmp88 = __cil_tmp87 + 64U;
10283#line 818
10284 __cil_tmp89 = __cil_tmp88 * __cil_tmp70;
10285#line 818
10286 __cil_tmp90 = (unsigned int *)0;
10287#line 818
10288 rc = usb_stor_bulk_transfer_buf(us, __cil_tmp52, __cil_tmp53, __cil_tmp89, __cil_tmp90);
10289 }
10290#line 821
10291 if (rc != 0) {
10292#line 822
10293 return (rc);
10294 } else {
10295
10296 }
10297 {
10298#line 824
10299 tmp = alauda_check_status2(us);
10300 }
10301#line 824
10302 return (tmp);
10303}
10304}
10305#line 830 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
10306static int alauda_write_lba(struct us_data *us , u16 lba , unsigned int page , unsigned int pages ,
10307 unsigned char *ptr , unsigned char *blockbuffer )
10308{ u16 pba ;
10309 u16 lbap ;
10310 u16 new_pba ;
10311 unsigned char *bptr ;
10312 unsigned char *cptr ;
10313 unsigned char *xptr ;
10314 unsigned char ecc[3U] ;
10315 int i ;
10316 int result ;
10317 unsigned int uzonesize ;
10318 unsigned int zonesize ;
10319 unsigned int pagesize ;
10320 unsigned int blocksize ;
10321 unsigned int lba_offset ;
10322 unsigned int new_pba_offset ;
10323 unsigned int zone ;
10324 int tmp ;
10325 int tmp___0 ;
10326 unsigned char tmp___1 ;
10327 unsigned char tmp___2 ;
10328 size_t __len ;
10329 void *__ret ;
10330 unsigned int pba_offset ;
10331 unsigned long __cil_tmp30 ;
10332 unsigned long __cil_tmp31 ;
10333 struct scsi_cmnd *__cil_tmp32 ;
10334 struct scsi_device *__cil_tmp33 ;
10335 unsigned long __cil_tmp34 ;
10336 unsigned long __cil_tmp35 ;
10337 unsigned int __cil_tmp36 ;
10338 unsigned long __cil_tmp37 ;
10339 unsigned long __cil_tmp38 ;
10340 unsigned long __cil_tmp39 ;
10341 unsigned long __cil_tmp40 ;
10342 unsigned long __cil_tmp41 ;
10343 void *__cil_tmp42 ;
10344 struct alauda_info *__cil_tmp43 ;
10345 unsigned long __cil_tmp44 ;
10346 unsigned long __cil_tmp45 ;
10347 unsigned long __cil_tmp46 ;
10348 unsigned long __cil_tmp47 ;
10349 struct scsi_cmnd *__cil_tmp48 ;
10350 struct scsi_device *__cil_tmp49 ;
10351 unsigned long __cil_tmp50 ;
10352 unsigned long __cil_tmp51 ;
10353 unsigned int __cil_tmp52 ;
10354 unsigned long __cil_tmp53 ;
10355 unsigned long __cil_tmp54 ;
10356 unsigned long __cil_tmp55 ;
10357 unsigned long __cil_tmp56 ;
10358 unsigned long __cil_tmp57 ;
10359 void *__cil_tmp58 ;
10360 struct alauda_info *__cil_tmp59 ;
10361 unsigned long __cil_tmp60 ;
10362 unsigned long __cil_tmp61 ;
10363 unsigned long __cil_tmp62 ;
10364 unsigned long __cil_tmp63 ;
10365 struct scsi_cmnd *__cil_tmp64 ;
10366 struct scsi_device *__cil_tmp65 ;
10367 unsigned long __cil_tmp66 ;
10368 unsigned long __cil_tmp67 ;
10369 unsigned int __cil_tmp68 ;
10370 unsigned long __cil_tmp69 ;
10371 unsigned long __cil_tmp70 ;
10372 unsigned long __cil_tmp71 ;
10373 unsigned long __cil_tmp72 ;
10374 unsigned long __cil_tmp73 ;
10375 void *__cil_tmp74 ;
10376 struct alauda_info *__cil_tmp75 ;
10377 unsigned long __cil_tmp76 ;
10378 unsigned long __cil_tmp77 ;
10379 unsigned long __cil_tmp78 ;
10380 unsigned long __cil_tmp79 ;
10381 struct scsi_cmnd *__cil_tmp80 ;
10382 struct scsi_device *__cil_tmp81 ;
10383 unsigned long __cil_tmp82 ;
10384 unsigned long __cil_tmp83 ;
10385 unsigned int __cil_tmp84 ;
10386 unsigned long __cil_tmp85 ;
10387 unsigned long __cil_tmp86 ;
10388 unsigned long __cil_tmp87 ;
10389 unsigned long __cil_tmp88 ;
10390 unsigned long __cil_tmp89 ;
10391 void *__cil_tmp90 ;
10392 struct alauda_info *__cil_tmp91 ;
10393 unsigned long __cil_tmp92 ;
10394 unsigned long __cil_tmp93 ;
10395 unsigned int __cil_tmp94 ;
10396 unsigned int __cil_tmp95 ;
10397 unsigned long __cil_tmp96 ;
10398 unsigned long __cil_tmp97 ;
10399 unsigned long __cil_tmp98 ;
10400 unsigned long __cil_tmp99 ;
10401 struct scsi_cmnd *__cil_tmp100 ;
10402 struct scsi_device *__cil_tmp101 ;
10403 unsigned long __cil_tmp102 ;
10404 unsigned long __cil_tmp103 ;
10405 unsigned int __cil_tmp104 ;
10406 unsigned long __cil_tmp105 ;
10407 unsigned long __cil_tmp106 ;
10408 unsigned long __cil_tmp107 ;
10409 unsigned long __cil_tmp108 ;
10410 unsigned long __cil_tmp109 ;
10411 void *__cil_tmp110 ;
10412 struct alauda_info *__cil_tmp111 ;
10413 unsigned long __cil_tmp112 ;
10414 unsigned long __cil_tmp113 ;
10415 u16 **__cil_tmp114 ;
10416 u16 **__cil_tmp115 ;
10417 u16 *__cil_tmp116 ;
10418 u16 *__cil_tmp117 ;
10419 unsigned int __cil_tmp118 ;
10420 unsigned long __cil_tmp119 ;
10421 unsigned long __cil_tmp120 ;
10422 struct scsi_cmnd *__cil_tmp121 ;
10423 struct scsi_device *__cil_tmp122 ;
10424 unsigned long __cil_tmp123 ;
10425 unsigned long __cil_tmp124 ;
10426 unsigned int __cil_tmp125 ;
10427 unsigned long __cil_tmp126 ;
10428 unsigned long __cil_tmp127 ;
10429 unsigned long __cil_tmp128 ;
10430 void *__cil_tmp129 ;
10431 struct alauda_info *__cil_tmp130 ;
10432 struct alauda_media_info (*__cil_tmp131)[2U] ;
10433 struct alauda_media_info *__cil_tmp132 ;
10434 struct alauda_media_info *__cil_tmp133 ;
10435 unsigned int __cil_tmp134 ;
10436 unsigned int __cil_tmp135 ;
10437 int __cil_tmp136 ;
10438 u16 __cil_tmp137 ;
10439 void *__cil_tmp138 ;
10440 unsigned int __cil_tmp139 ;
10441 unsigned int __cil_tmp140 ;
10442 size_t __cil_tmp141 ;
10443 u16 __cil_tmp142 ;
10444 int __cil_tmp143 ;
10445 int __cil_tmp144 ;
10446 unsigned int __cil_tmp145 ;
10447 unsigned int __cil_tmp146 ;
10448 int __cil_tmp147 ;
10449 int __cil_tmp148 ;
10450 int __cil_tmp149 ;
10451 int __cil_tmp150 ;
10452 int __cil_tmp151 ;
10453 unsigned long __cil_tmp152 ;
10454 unsigned long __cil_tmp153 ;
10455 unsigned char __cil_tmp154 ;
10456 unsigned int __cil_tmp155 ;
10457 unsigned int __cil_tmp156 ;
10458 unsigned int __cil_tmp157 ;
10459 unsigned int __cil_tmp158 ;
10460 unsigned int __cil_tmp159 ;
10461 unsigned int __cil_tmp160 ;
10462 unsigned long __cil_tmp161 ;
10463 unsigned long __cil_tmp162 ;
10464 unsigned char *__cil_tmp163 ;
10465 unsigned char *__cil_tmp164 ;
10466 unsigned char *__cil_tmp165 ;
10467 int __cil_tmp166 ;
10468 unsigned char *__cil_tmp167 ;
10469 unsigned char *__cil_tmp168 ;
10470 unsigned int __cil_tmp169 ;
10471 unsigned long __cil_tmp170 ;
10472 unsigned char *__cil_tmp171 ;
10473 unsigned char *__cil_tmp172 ;
10474 unsigned char *__cil_tmp173 ;
10475 unsigned char *__cil_tmp174 ;
10476 int __cil_tmp175 ;
10477 unsigned char *__cil_tmp176 ;
10478 unsigned char *__cil_tmp177 ;
10479 int __cil_tmp178 ;
10480 int __cil_tmp179 ;
10481 unsigned char *__cil_tmp180 ;
10482 unsigned char *__cil_tmp181 ;
10483 unsigned char *__cil_tmp182 ;
10484 unsigned char *__cil_tmp183 ;
10485 unsigned int __cil_tmp184 ;
10486 unsigned int __cil_tmp185 ;
10487 unsigned int __cil_tmp186 ;
10488 unsigned int __cil_tmp187 ;
10489 unsigned long __cil_tmp188 ;
10490 unsigned long __cil_tmp189 ;
10491 void *__cil_tmp190 ;
10492 void const *__cil_tmp191 ;
10493 unsigned long __cil_tmp192 ;
10494 unsigned char *__cil_tmp193 ;
10495 unsigned char *__cil_tmp194 ;
10496 unsigned char *__cil_tmp195 ;
10497 unsigned int __cil_tmp196 ;
10498 unsigned long __cil_tmp197 ;
10499 unsigned char *__cil_tmp198 ;
10500 unsigned char *__cil_tmp199 ;
10501 unsigned char *__cil_tmp200 ;
10502 unsigned char *__cil_tmp201 ;
10503 unsigned int __cil_tmp202 ;
10504 unsigned int __cil_tmp203 ;
10505 int __cil_tmp204 ;
10506 u16 __cil_tmp205 ;
10507 unsigned int __cil_tmp206 ;
10508 unsigned int __cil_tmp207 ;
10509 unsigned long __cil_tmp208 ;
10510 unsigned long __cil_tmp209 ;
10511 unsigned long __cil_tmp210 ;
10512 unsigned long __cil_tmp211 ;
10513 struct scsi_cmnd *__cil_tmp212 ;
10514 struct scsi_device *__cil_tmp213 ;
10515 unsigned long __cil_tmp214 ;
10516 unsigned long __cil_tmp215 ;
10517 unsigned int __cil_tmp216 ;
10518 unsigned long __cil_tmp217 ;
10519 unsigned long __cil_tmp218 ;
10520 unsigned long __cil_tmp219 ;
10521 unsigned long __cil_tmp220 ;
10522 unsigned long __cil_tmp221 ;
10523 void *__cil_tmp222 ;
10524 struct alauda_info *__cil_tmp223 ;
10525 unsigned long __cil_tmp224 ;
10526 unsigned long __cil_tmp225 ;
10527 u16 **__cil_tmp226 ;
10528 u16 **__cil_tmp227 ;
10529 u16 *__cil_tmp228 ;
10530 u16 *__cil_tmp229 ;
10531 unsigned long __cil_tmp230 ;
10532 unsigned long __cil_tmp231 ;
10533 unsigned long __cil_tmp232 ;
10534 unsigned long __cil_tmp233 ;
10535 struct scsi_cmnd *__cil_tmp234 ;
10536 struct scsi_device *__cil_tmp235 ;
10537 unsigned long __cil_tmp236 ;
10538 unsigned long __cil_tmp237 ;
10539 unsigned int __cil_tmp238 ;
10540 unsigned long __cil_tmp239 ;
10541 unsigned long __cil_tmp240 ;
10542 unsigned long __cil_tmp241 ;
10543 unsigned long __cil_tmp242 ;
10544 unsigned long __cil_tmp243 ;
10545 void *__cil_tmp244 ;
10546 struct alauda_info *__cil_tmp245 ;
10547 unsigned long __cil_tmp246 ;
10548 unsigned long __cil_tmp247 ;
10549 u16 **__cil_tmp248 ;
10550 u16 **__cil_tmp249 ;
10551 u16 *__cil_tmp250 ;
10552 u16 *__cil_tmp251 ;
10553 int __cil_tmp252 ;
10554 int __cil_tmp253 ;
10555 unsigned int __cil_tmp254 ;
10556 unsigned int __cil_tmp255 ;
10557 unsigned int __cil_tmp256 ;
10558 int __cil_tmp257 ;
10559 u16 __cil_tmp258 ;
10560 unsigned long __cil_tmp259 ;
10561 unsigned long __cil_tmp260 ;
10562 unsigned long __cil_tmp261 ;
10563 unsigned long __cil_tmp262 ;
10564 struct scsi_cmnd *__cil_tmp263 ;
10565 struct scsi_device *__cil_tmp264 ;
10566 unsigned long __cil_tmp265 ;
10567 unsigned long __cil_tmp266 ;
10568 unsigned int __cil_tmp267 ;
10569 unsigned long __cil_tmp268 ;
10570 unsigned long __cil_tmp269 ;
10571 unsigned long __cil_tmp270 ;
10572 unsigned long __cil_tmp271 ;
10573 unsigned long __cil_tmp272 ;
10574 void *__cil_tmp273 ;
10575 struct alauda_info *__cil_tmp274 ;
10576 unsigned long __cil_tmp275 ;
10577 unsigned long __cil_tmp276 ;
10578 u16 **__cil_tmp277 ;
10579 u16 **__cil_tmp278 ;
10580 u16 *__cil_tmp279 ;
10581 u16 *__cil_tmp280 ;
10582
10583 {
10584 {
10585#line 838
10586 __cil_tmp30 = (unsigned long )us;
10587#line 838
10588 __cil_tmp31 = __cil_tmp30 + 288;
10589#line 838
10590 __cil_tmp32 = *((struct scsi_cmnd **)__cil_tmp31);
10591#line 838
10592 __cil_tmp33 = *((struct scsi_device **)__cil_tmp32);
10593#line 838
10594 __cil_tmp34 = (unsigned long )__cil_tmp33;
10595#line 838
10596 __cil_tmp35 = __cil_tmp34 + 204;
10597#line 838
10598 __cil_tmp36 = *((unsigned int *)__cil_tmp35);
10599#line 838
10600 __cil_tmp37 = __cil_tmp36 * 48UL;
10601#line 838
10602 __cil_tmp38 = __cil_tmp37 + 16;
10603#line 838
10604 __cil_tmp39 = 0 + __cil_tmp38;
10605#line 838
10606 __cil_tmp40 = (unsigned long )us;
10607#line 838
10608 __cil_tmp41 = __cil_tmp40 + 1080;
10609#line 838
10610 __cil_tmp42 = *((void **)__cil_tmp41);
10611#line 838
10612 __cil_tmp43 = (struct alauda_info *)__cil_tmp42;
10613#line 838
10614 __cil_tmp44 = (unsigned long )__cil_tmp43;
10615#line 838
10616 __cil_tmp45 = __cil_tmp44 + __cil_tmp39;
10617#line 838
10618 uzonesize = *((unsigned int *)__cil_tmp45);
10619#line 839
10620 __cil_tmp46 = (unsigned long )us;
10621#line 839
10622 __cil_tmp47 = __cil_tmp46 + 288;
10623#line 839
10624 __cil_tmp48 = *((struct scsi_cmnd **)__cil_tmp47);
10625#line 839
10626 __cil_tmp49 = *((struct scsi_device **)__cil_tmp48);
10627#line 839
10628 __cil_tmp50 = (unsigned long )__cil_tmp49;
10629#line 839
10630 __cil_tmp51 = __cil_tmp50 + 204;
10631#line 839
10632 __cil_tmp52 = *((unsigned int *)__cil_tmp51);
10633#line 839
10634 __cil_tmp53 = __cil_tmp52 * 48UL;
10635#line 839
10636 __cil_tmp54 = __cil_tmp53 + 20;
10637#line 839
10638 __cil_tmp55 = 0 + __cil_tmp54;
10639#line 839
10640 __cil_tmp56 = (unsigned long )us;
10641#line 839
10642 __cil_tmp57 = __cil_tmp56 + 1080;
10643#line 839
10644 __cil_tmp58 = *((void **)__cil_tmp57);
10645#line 839
10646 __cil_tmp59 = (struct alauda_info *)__cil_tmp58;
10647#line 839
10648 __cil_tmp60 = (unsigned long )__cil_tmp59;
10649#line 839
10650 __cil_tmp61 = __cil_tmp60 + __cil_tmp55;
10651#line 839
10652 zonesize = *((unsigned int *)__cil_tmp61);
10653#line 840
10654 __cil_tmp62 = (unsigned long )us;
10655#line 840
10656 __cil_tmp63 = __cil_tmp62 + 288;
10657#line 840
10658 __cil_tmp64 = *((struct scsi_cmnd **)__cil_tmp63);
10659#line 840
10660 __cil_tmp65 = *((struct scsi_device **)__cil_tmp64);
10661#line 840
10662 __cil_tmp66 = (unsigned long )__cil_tmp65;
10663#line 840
10664 __cil_tmp67 = __cil_tmp66 + 204;
10665#line 840
10666 __cil_tmp68 = *((unsigned int *)__cil_tmp67);
10667#line 840
10668 __cil_tmp69 = __cil_tmp68 * 48UL;
10669#line 840
10670 __cil_tmp70 = __cil_tmp69 + 8;
10671#line 840
10672 __cil_tmp71 = 0 + __cil_tmp70;
10673#line 840
10674 __cil_tmp72 = (unsigned long )us;
10675#line 840
10676 __cil_tmp73 = __cil_tmp72 + 1080;
10677#line 840
10678 __cil_tmp74 = *((void **)__cil_tmp73);
10679#line 840
10680 __cil_tmp75 = (struct alauda_info *)__cil_tmp74;
10681#line 840
10682 __cil_tmp76 = (unsigned long )__cil_tmp75;
10683#line 840
10684 __cil_tmp77 = __cil_tmp76 + __cil_tmp71;
10685#line 840
10686 pagesize = *((unsigned int *)__cil_tmp77);
10687#line 841
10688 __cil_tmp78 = (unsigned long )us;
10689#line 841
10690 __cil_tmp79 = __cil_tmp78 + 288;
10691#line 841
10692 __cil_tmp80 = *((struct scsi_cmnd **)__cil_tmp79);
10693#line 841
10694 __cil_tmp81 = *((struct scsi_device **)__cil_tmp80);
10695#line 841
10696 __cil_tmp82 = (unsigned long )__cil_tmp81;
10697#line 841
10698 __cil_tmp83 = __cil_tmp82 + 204;
10699#line 841
10700 __cil_tmp84 = *((unsigned int *)__cil_tmp83);
10701#line 841
10702 __cil_tmp85 = __cil_tmp84 * 48UL;
10703#line 841
10704 __cil_tmp86 = __cil_tmp85 + 12;
10705#line 841
10706 __cil_tmp87 = 0 + __cil_tmp86;
10707#line 841
10708 __cil_tmp88 = (unsigned long )us;
10709#line 841
10710 __cil_tmp89 = __cil_tmp88 + 1080;
10711#line 841
10712 __cil_tmp90 = *((void **)__cil_tmp89);
10713#line 841
10714 __cil_tmp91 = (struct alauda_info *)__cil_tmp90;
10715#line 841
10716 __cil_tmp92 = (unsigned long )__cil_tmp91;
10717#line 841
10718 __cil_tmp93 = __cil_tmp92 + __cil_tmp87;
10719#line 841
10720 blocksize = *((unsigned int *)__cil_tmp93);
10721#line 842
10722 __cil_tmp94 = (unsigned int )lba;
10723#line 842
10724 lba_offset = __cil_tmp94 % uzonesize;
10725#line 844
10726 __cil_tmp95 = (unsigned int )lba;
10727#line 844
10728 zone = __cil_tmp95 / uzonesize;
10729#line 846
10730 alauda_ensure_map_for_zone(us, zone);
10731#line 848
10732 __cil_tmp96 = (unsigned long )lba_offset;
10733#line 848
10734 __cil_tmp97 = (unsigned long )zone;
10735#line 848
10736 __cil_tmp98 = (unsigned long )us;
10737#line 848
10738 __cil_tmp99 = __cil_tmp98 + 288;
10739#line 848
10740 __cil_tmp100 = *((struct scsi_cmnd **)__cil_tmp99);
10741#line 848
10742 __cil_tmp101 = *((struct scsi_device **)__cil_tmp100);
10743#line 848
10744 __cil_tmp102 = (unsigned long )__cil_tmp101;
10745#line 848
10746 __cil_tmp103 = __cil_tmp102 + 204;
10747#line 848
10748 __cil_tmp104 = *((unsigned int *)__cil_tmp103);
10749#line 848
10750 __cil_tmp105 = __cil_tmp104 * 48UL;
10751#line 848
10752 __cil_tmp106 = __cil_tmp105 + 32;
10753#line 848
10754 __cil_tmp107 = 0 + __cil_tmp106;
10755#line 848
10756 __cil_tmp108 = (unsigned long )us;
10757#line 848
10758 __cil_tmp109 = __cil_tmp108 + 1080;
10759#line 848
10760 __cil_tmp110 = *((void **)__cil_tmp109);
10761#line 848
10762 __cil_tmp111 = (struct alauda_info *)__cil_tmp110;
10763#line 848
10764 __cil_tmp112 = (unsigned long )__cil_tmp111;
10765#line 848
10766 __cil_tmp113 = __cil_tmp112 + __cil_tmp107;
10767#line 848
10768 __cil_tmp114 = *((u16 ***)__cil_tmp113);
10769#line 848
10770 __cil_tmp115 = __cil_tmp114 + __cil_tmp97;
10771#line 848
10772 __cil_tmp116 = *__cil_tmp115;
10773#line 848
10774 __cil_tmp117 = __cil_tmp116 + __cil_tmp96;
10775#line 848
10776 pba = *__cil_tmp117;
10777 }
10778 {
10779#line 849
10780 __cil_tmp118 = (unsigned int )pba;
10781#line 849
10782 if (__cil_tmp118 == 1U) {
10783 {
10784#line 852
10785 printk("<4>alauda_write_lba: avoid writing to pba 1\n");
10786 }
10787#line 854
10788 return (0);
10789 } else {
10790
10791 }
10792 }
10793 {
10794#line 857
10795 __cil_tmp119 = (unsigned long )us;
10796#line 857
10797 __cil_tmp120 = __cil_tmp119 + 288;
10798#line 857
10799 __cil_tmp121 = *((struct scsi_cmnd **)__cil_tmp120);
10800#line 857
10801 __cil_tmp122 = *((struct scsi_device **)__cil_tmp121);
10802#line 857
10803 __cil_tmp123 = (unsigned long )__cil_tmp122;
10804#line 857
10805 __cil_tmp124 = __cil_tmp123 + 204;
10806#line 857
10807 __cil_tmp125 = *((unsigned int *)__cil_tmp124);
10808#line 857
10809 __cil_tmp126 = (unsigned long )__cil_tmp125;
10810#line 857
10811 __cil_tmp127 = (unsigned long )us;
10812#line 857
10813 __cil_tmp128 = __cil_tmp127 + 1080;
10814#line 857
10815 __cil_tmp129 = *((void **)__cil_tmp128);
10816#line 857
10817 __cil_tmp130 = (struct alauda_info *)__cil_tmp129;
10818#line 857
10819 __cil_tmp131 = (struct alauda_media_info (*)[2U])__cil_tmp130;
10820#line 857
10821 __cil_tmp132 = (struct alauda_media_info *)__cil_tmp131;
10822#line 857
10823 __cil_tmp133 = __cil_tmp132 + __cil_tmp126;
10824#line 857
10825 new_pba = alauda_find_unused_pba(__cil_tmp133, zone);
10826 }
10827 {
10828#line 858
10829 __cil_tmp134 = (unsigned int )new_pba;
10830#line 858
10831 if (__cil_tmp134 == 0U) {
10832 {
10833#line 859
10834 printk("<4>alauda_write_lba: Out of unused blocks\n");
10835 }
10836#line 861
10837 return (3);
10838 } else {
10839
10840 }
10841 }
10842 {
10843#line 865
10844 __cil_tmp135 = (unsigned int )pba;
10845#line 865
10846 if (__cil_tmp135 != 65535U) {
10847 {
10848#line 866
10849 __cil_tmp136 = (int )pba;
10850#line 866
10851 __cil_tmp137 = (u16 )__cil_tmp136;
10852#line 866
10853 result = alauda_read_block_raw(us, __cil_tmp137, 0U, blocksize, blockbuffer);
10854 }
10855#line 868
10856 if (result != 0) {
10857#line 869
10858 return (result);
10859 } else {
10860
10861 }
10862 } else {
10863 {
10864#line 871
10865 __cil_tmp138 = (void *)blockbuffer;
10866#line 871
10867 __cil_tmp139 = pagesize + 64U;
10868#line 871
10869 __cil_tmp140 = __cil_tmp139 * blocksize;
10870#line 871
10871 __cil_tmp141 = (size_t )__cil_tmp140;
10872#line 871
10873 memset(__cil_tmp138, 0, __cil_tmp141);
10874 }
10875 }
10876 }
10877#line 874
10878 __cil_tmp142 = (u16 )lba_offset;
10879#line 874
10880 __cil_tmp143 = (int )__cil_tmp142;
10881#line 874
10882 __cil_tmp144 = __cil_tmp143 << 1U;
10883#line 874
10884 __cil_tmp145 = (unsigned int )__cil_tmp144;
10885#line 874
10886 __cil_tmp146 = __cil_tmp145 | 4096U;
10887#line 874
10888 lbap = (u16 )__cil_tmp146;
10889 {
10890#line 875
10891 __cil_tmp147 = (int )lbap;
10892#line 875
10893 __cil_tmp148 = __cil_tmp147 & 255;
10894#line 875
10895 __cil_tmp149 = (int )lbap;
10896#line 875
10897 __cil_tmp150 = __cil_tmp149 >> 8;
10898#line 875
10899 __cil_tmp151 = __cil_tmp150 ^ __cil_tmp148;
10900#line 875
10901 __cil_tmp152 = __cil_tmp151 * 1UL;
10902#line 875
10903 __cil_tmp153 = (unsigned long )(parity) + __cil_tmp152;
10904#line 875
10905 __cil_tmp154 = *((unsigned char *)__cil_tmp153);
10906#line 875
10907 __cil_tmp155 = (unsigned int )__cil_tmp154;
10908#line 875
10909 if (__cil_tmp155 != 0U) {
10910#line 876
10911 __cil_tmp156 = (unsigned int )lbap;
10912#line 876
10913 __cil_tmp157 = __cil_tmp156 ^ 1U;
10914#line 876
10915 lbap = (u16 )__cil_tmp157;
10916 } else {
10917
10918 }
10919 }
10920#line 879
10921 i = 0;
10922#line 879
10923 goto ldv_31275;
10924 ldv_31274:
10925 {
10926#line 880
10927 __cil_tmp158 = (unsigned int )i;
10928#line 880
10929 __cil_tmp159 = pagesize + 64U;
10930#line 880
10931 __cil_tmp160 = __cil_tmp159 * __cil_tmp158;
10932#line 880
10933 __cil_tmp161 = (unsigned long )__cil_tmp160;
10934#line 880
10935 bptr = blockbuffer + __cil_tmp161;
10936#line 881
10937 __cil_tmp162 = (unsigned long )pagesize;
10938#line 881
10939 cptr = bptr + __cil_tmp162;
10940#line 882
10941 __cil_tmp163 = (unsigned char *)(& ecc);
10942#line 882
10943 nand_compute_ecc(bptr, __cil_tmp163);
10944#line 883
10945 __cil_tmp164 = cptr + 13UL;
10946#line 883
10947 __cil_tmp165 = (unsigned char *)(& ecc);
10948#line 883
10949 tmp = nand_compare_ecc(__cil_tmp164, __cil_tmp165);
10950 }
10951#line 883
10952 if (tmp == 0) {
10953 {
10954#line 884
10955 __cil_tmp166 = (int )pba;
10956#line 884
10957 printk("<7>usb-storage: Warning: bad ecc in page %d- of pba %d\n", i, __cil_tmp166);
10958#line 886
10959 __cil_tmp167 = cptr + 13UL;
10960#line 886
10961 __cil_tmp168 = (unsigned char *)(& ecc);
10962#line 886
10963 nand_store_ecc(__cil_tmp167, __cil_tmp168);
10964 }
10965 } else {
10966
10967 }
10968 {
10969#line 888
10970 __cil_tmp169 = pagesize / 2U;
10971#line 888
10972 __cil_tmp170 = (unsigned long )__cil_tmp169;
10973#line 888
10974 __cil_tmp171 = bptr + __cil_tmp170;
10975#line 888
10976 __cil_tmp172 = (unsigned char *)(& ecc);
10977#line 888
10978 nand_compute_ecc(__cil_tmp171, __cil_tmp172);
10979#line 889
10980 __cil_tmp173 = cptr + 8UL;
10981#line 889
10982 __cil_tmp174 = (unsigned char *)(& ecc);
10983#line 889
10984 tmp___0 = nand_compare_ecc(__cil_tmp173, __cil_tmp174);
10985 }
10986#line 889
10987 if (tmp___0 == 0) {
10988 {
10989#line 890
10990 __cil_tmp175 = (int )pba;
10991#line 890
10992 printk("<7>usb-storage: Warning: bad ecc in page %d+ of pba %d\n", i, __cil_tmp175);
10993#line 892
10994 __cil_tmp176 = cptr + 8UL;
10995#line 892
10996 __cil_tmp177 = (unsigned char *)(& ecc);
10997#line 892
10998 nand_store_ecc(__cil_tmp176, __cil_tmp177);
10999 }
11000 } else {
11001
11002 }
11003#line 894
11004 __cil_tmp178 = (int )lbap;
11005#line 894
11006 __cil_tmp179 = __cil_tmp178 >> 8;
11007#line 894
11008 tmp___1 = (unsigned char )__cil_tmp179;
11009#line 894
11010 __cil_tmp180 = cptr + 11UL;
11011#line 894
11012 *__cil_tmp180 = tmp___1;
11013#line 894
11014 __cil_tmp181 = cptr + 6UL;
11015#line 894
11016 *__cil_tmp181 = tmp___1;
11017#line 895
11018 tmp___2 = (unsigned char )lbap;
11019#line 895
11020 __cil_tmp182 = cptr + 12UL;
11021#line 895
11022 *__cil_tmp182 = tmp___2;
11023#line 895
11024 __cil_tmp183 = cptr + 7UL;
11025#line 895
11026 *__cil_tmp183 = tmp___2;
11027#line 879
11028 i = i + 1;
11029 ldv_31275: ;
11030 {
11031#line 879
11032 __cil_tmp184 = (unsigned int )i;
11033#line 879
11034 if (__cil_tmp184 < blocksize) {
11035#line 880
11036 goto ldv_31274;
11037 } else {
11038#line 882
11039 goto ldv_31276;
11040 }
11041 }
11042 ldv_31276:
11043#line 899
11044 xptr = ptr;
11045#line 900
11046 i = (int )page;
11047#line 900
11048 goto ldv_31281;
11049 ldv_31280:
11050 {
11051#line 901
11052 __cil_tmp185 = (unsigned int )i;
11053#line 901
11054 __cil_tmp186 = pagesize + 64U;
11055#line 901
11056 __cil_tmp187 = __cil_tmp186 * __cil_tmp185;
11057#line 901
11058 __cil_tmp188 = (unsigned long )__cil_tmp187;
11059#line 901
11060 bptr = blockbuffer + __cil_tmp188;
11061#line 902
11062 __cil_tmp189 = (unsigned long )pagesize;
11063#line 902
11064 cptr = bptr + __cil_tmp189;
11065#line 903
11066 __len = (size_t )pagesize;
11067#line 903
11068 __cil_tmp190 = (void *)bptr;
11069#line 903
11070 __cil_tmp191 = (void const *)xptr;
11071#line 903
11072 __ret = __builtin_memcpy(__cil_tmp190, __cil_tmp191, __len);
11073#line 904
11074 __cil_tmp192 = (unsigned long )pagesize;
11075#line 904
11076 xptr = xptr + __cil_tmp192;
11077#line 905
11078 __cil_tmp193 = (unsigned char *)(& ecc);
11079#line 905
11080 nand_compute_ecc(bptr, __cil_tmp193);
11081#line 906
11082 __cil_tmp194 = cptr + 13UL;
11083#line 906
11084 __cil_tmp195 = (unsigned char *)(& ecc);
11085#line 906
11086 nand_store_ecc(__cil_tmp194, __cil_tmp195);
11087#line 907
11088 __cil_tmp196 = pagesize / 2U;
11089#line 907
11090 __cil_tmp197 = (unsigned long )__cil_tmp196;
11091#line 907
11092 __cil_tmp198 = bptr + __cil_tmp197;
11093#line 907
11094 __cil_tmp199 = (unsigned char *)(& ecc);
11095#line 907
11096 nand_compute_ecc(__cil_tmp198, __cil_tmp199);
11097#line 908
11098 __cil_tmp200 = cptr + 8UL;
11099#line 908
11100 __cil_tmp201 = (unsigned char *)(& ecc);
11101#line 908
11102 nand_store_ecc(__cil_tmp200, __cil_tmp201);
11103#line 900
11104 i = i + 1;
11105 }
11106 ldv_31281: ;
11107 {
11108#line 900
11109 __cil_tmp202 = page + pages;
11110#line 900
11111 __cil_tmp203 = (unsigned int )i;
11112#line 900
11113 if (__cil_tmp203 < __cil_tmp202) {
11114#line 901
11115 goto ldv_31280;
11116 } else {
11117#line 903
11118 goto ldv_31282;
11119 }
11120 }
11121 ldv_31282:
11122 {
11123#line 911
11124 __cil_tmp204 = (int )new_pba;
11125#line 911
11126 __cil_tmp205 = (u16 )__cil_tmp204;
11127#line 911
11128 result = alauda_write_block(us, __cil_tmp205, blockbuffer);
11129 }
11130#line 912
11131 if (result != 0) {
11132#line 913
11133 return (result);
11134 } else {
11135
11136 }
11137 {
11138#line 915
11139 __cil_tmp206 = zone * zonesize;
11140#line 915
11141 __cil_tmp207 = (unsigned int )new_pba;
11142#line 915
11143 new_pba_offset = __cil_tmp207 - __cil_tmp206;
11144#line 916
11145 __cil_tmp208 = (unsigned long )new_pba_offset;
11146#line 916
11147 __cil_tmp209 = (unsigned long )zone;
11148#line 916
11149 __cil_tmp210 = (unsigned long )us;
11150#line 916
11151 __cil_tmp211 = __cil_tmp210 + 288;
11152#line 916
11153 __cil_tmp212 = *((struct scsi_cmnd **)__cil_tmp211);
11154#line 916
11155 __cil_tmp213 = *((struct scsi_device **)__cil_tmp212);
11156#line 916
11157 __cil_tmp214 = (unsigned long )__cil_tmp213;
11158#line 916
11159 __cil_tmp215 = __cil_tmp214 + 204;
11160#line 916
11161 __cil_tmp216 = *((unsigned int *)__cil_tmp215);
11162#line 916
11163 __cil_tmp217 = __cil_tmp216 * 48UL;
11164#line 916
11165 __cil_tmp218 = __cil_tmp217 + 40;
11166#line 916
11167 __cil_tmp219 = 0 + __cil_tmp218;
11168#line 916
11169 __cil_tmp220 = (unsigned long )us;
11170#line 916
11171 __cil_tmp221 = __cil_tmp220 + 1080;
11172#line 916
11173 __cil_tmp222 = *((void **)__cil_tmp221);
11174#line 916
11175 __cil_tmp223 = (struct alauda_info *)__cil_tmp222;
11176#line 916
11177 __cil_tmp224 = (unsigned long )__cil_tmp223;
11178#line 916
11179 __cil_tmp225 = __cil_tmp224 + __cil_tmp219;
11180#line 916
11181 __cil_tmp226 = *((u16 ***)__cil_tmp225);
11182#line 916
11183 __cil_tmp227 = __cil_tmp226 + __cil_tmp209;
11184#line 916
11185 __cil_tmp228 = *__cil_tmp227;
11186#line 916
11187 __cil_tmp229 = __cil_tmp228 + __cil_tmp208;
11188#line 916
11189 *__cil_tmp229 = lba;
11190#line 917
11191 __cil_tmp230 = (unsigned long )lba_offset;
11192#line 917
11193 __cil_tmp231 = (unsigned long )zone;
11194#line 917
11195 __cil_tmp232 = (unsigned long )us;
11196#line 917
11197 __cil_tmp233 = __cil_tmp232 + 288;
11198#line 917
11199 __cil_tmp234 = *((struct scsi_cmnd **)__cil_tmp233);
11200#line 917
11201 __cil_tmp235 = *((struct scsi_device **)__cil_tmp234);
11202#line 917
11203 __cil_tmp236 = (unsigned long )__cil_tmp235;
11204#line 917
11205 __cil_tmp237 = __cil_tmp236 + 204;
11206#line 917
11207 __cil_tmp238 = *((unsigned int *)__cil_tmp237);
11208#line 917
11209 __cil_tmp239 = __cil_tmp238 * 48UL;
11210#line 917
11211 __cil_tmp240 = __cil_tmp239 + 32;
11212#line 917
11213 __cil_tmp241 = 0 + __cil_tmp240;
11214#line 917
11215 __cil_tmp242 = (unsigned long )us;
11216#line 917
11217 __cil_tmp243 = __cil_tmp242 + 1080;
11218#line 917
11219 __cil_tmp244 = *((void **)__cil_tmp243);
11220#line 917
11221 __cil_tmp245 = (struct alauda_info *)__cil_tmp244;
11222#line 917
11223 __cil_tmp246 = (unsigned long )__cil_tmp245;
11224#line 917
11225 __cil_tmp247 = __cil_tmp246 + __cil_tmp241;
11226#line 917
11227 __cil_tmp248 = *((u16 ***)__cil_tmp247);
11228#line 917
11229 __cil_tmp249 = __cil_tmp248 + __cil_tmp231;
11230#line 917
11231 __cil_tmp250 = *__cil_tmp249;
11232#line 917
11233 __cil_tmp251 = __cil_tmp250 + __cil_tmp230;
11234#line 917
11235 *__cil_tmp251 = new_pba;
11236#line 918
11237 __cil_tmp252 = (int )lba;
11238#line 918
11239 __cil_tmp253 = (int )new_pba;
11240#line 918
11241 printk("<7>usb-storage: alauda_write_lba: Remapped LBA %d to PBA %d\n", __cil_tmp252,
11242 __cil_tmp253);
11243 }
11244 {
11245#line 921
11246 __cil_tmp254 = (unsigned int )pba;
11247#line 921
11248 if (__cil_tmp254 != 65535U) {
11249 {
11250#line 922
11251 __cil_tmp255 = zone * zonesize;
11252#line 922
11253 __cil_tmp256 = (unsigned int )pba;
11254#line 922
11255 pba_offset = __cil_tmp256 - __cil_tmp255;
11256#line 923
11257 __cil_tmp257 = (int )pba;
11258#line 923
11259 __cil_tmp258 = (u16 )__cil_tmp257;
11260#line 923
11261 result = alauda_erase_block(us, __cil_tmp258);
11262 }
11263#line 924
11264 if (result != 0) {
11265#line 925
11266 return (result);
11267 } else {
11268
11269 }
11270#line 926
11271 __cil_tmp259 = (unsigned long )pba_offset;
11272#line 926
11273 __cil_tmp260 = (unsigned long )zone;
11274#line 926
11275 __cil_tmp261 = (unsigned long )us;
11276#line 926
11277 __cil_tmp262 = __cil_tmp261 + 288;
11278#line 926
11279 __cil_tmp263 = *((struct scsi_cmnd **)__cil_tmp262);
11280#line 926
11281 __cil_tmp264 = *((struct scsi_device **)__cil_tmp263);
11282#line 926
11283 __cil_tmp265 = (unsigned long )__cil_tmp264;
11284#line 926
11285 __cil_tmp266 = __cil_tmp265 + 204;
11286#line 926
11287 __cil_tmp267 = *((unsigned int *)__cil_tmp266);
11288#line 926
11289 __cil_tmp268 = __cil_tmp267 * 48UL;
11290#line 926
11291 __cil_tmp269 = __cil_tmp268 + 40;
11292#line 926
11293 __cil_tmp270 = 0 + __cil_tmp269;
11294#line 926
11295 __cil_tmp271 = (unsigned long )us;
11296#line 926
11297 __cil_tmp272 = __cil_tmp271 + 1080;
11298#line 926
11299 __cil_tmp273 = *((void **)__cil_tmp272);
11300#line 926
11301 __cil_tmp274 = (struct alauda_info *)__cil_tmp273;
11302#line 926
11303 __cil_tmp275 = (unsigned long )__cil_tmp274;
11304#line 926
11305 __cil_tmp276 = __cil_tmp275 + __cil_tmp270;
11306#line 926
11307 __cil_tmp277 = *((u16 ***)__cil_tmp276);
11308#line 926
11309 __cil_tmp278 = __cil_tmp277 + __cil_tmp260;
11310#line 926
11311 __cil_tmp279 = *__cil_tmp278;
11312#line 926
11313 __cil_tmp280 = __cil_tmp279 + __cil_tmp259;
11314#line 926
11315 *__cil_tmp280 = (u16 )65535U;
11316 } else {
11317
11318 }
11319 }
11320#line 929
11321 return (0);
11322}
11323}
11324#line 935 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
11325static int alauda_read_data(struct us_data *us , unsigned long address , unsigned int sectors )
11326{ unsigned char *buffer ;
11327 u16 lba ;
11328 u16 max_lba ;
11329 unsigned int page ;
11330 unsigned int len ;
11331 unsigned int offset ;
11332 unsigned int blockshift ;
11333 unsigned int pageshift ;
11334 unsigned int blocksize ;
11335 unsigned int pagesize ;
11336 unsigned int uzonesize ;
11337 struct scatterlist *sg ;
11338 int result ;
11339 unsigned int _min1 ;
11340 unsigned int _min2 ;
11341 unsigned int tmp ;
11342 void *tmp___0 ;
11343 unsigned int zone ;
11344 unsigned int lba_offset ;
11345 unsigned int pages ;
11346 u16 pba ;
11347 unsigned int _min1___0 ;
11348 unsigned int _min2___0 ;
11349 unsigned int tmp___1 ;
11350 unsigned long __cil_tmp28 ;
11351 unsigned long __cil_tmp29 ;
11352 struct scsi_cmnd *__cil_tmp30 ;
11353 struct scsi_device *__cil_tmp31 ;
11354 unsigned long __cil_tmp32 ;
11355 unsigned long __cil_tmp33 ;
11356 unsigned int __cil_tmp34 ;
11357 unsigned long __cil_tmp35 ;
11358 unsigned long __cil_tmp36 ;
11359 unsigned long __cil_tmp37 ;
11360 unsigned long __cil_tmp38 ;
11361 unsigned long __cil_tmp39 ;
11362 void *__cil_tmp40 ;
11363 struct alauda_info *__cil_tmp41 ;
11364 unsigned long __cil_tmp42 ;
11365 unsigned long __cil_tmp43 ;
11366 unsigned char __cil_tmp44 ;
11367 unsigned long __cil_tmp45 ;
11368 unsigned long __cil_tmp46 ;
11369 struct scsi_cmnd *__cil_tmp47 ;
11370 struct scsi_device *__cil_tmp48 ;
11371 unsigned long __cil_tmp49 ;
11372 unsigned long __cil_tmp50 ;
11373 unsigned int __cil_tmp51 ;
11374 unsigned long __cil_tmp52 ;
11375 unsigned long __cil_tmp53 ;
11376 unsigned long __cil_tmp54 ;
11377 unsigned long __cil_tmp55 ;
11378 unsigned long __cil_tmp56 ;
11379 void *__cil_tmp57 ;
11380 struct alauda_info *__cil_tmp58 ;
11381 unsigned long __cil_tmp59 ;
11382 unsigned long __cil_tmp60 ;
11383 unsigned char __cil_tmp61 ;
11384 unsigned long __cil_tmp62 ;
11385 unsigned long __cil_tmp63 ;
11386 struct scsi_cmnd *__cil_tmp64 ;
11387 struct scsi_device *__cil_tmp65 ;
11388 unsigned long __cil_tmp66 ;
11389 unsigned long __cil_tmp67 ;
11390 unsigned int __cil_tmp68 ;
11391 unsigned long __cil_tmp69 ;
11392 unsigned long __cil_tmp70 ;
11393 unsigned long __cil_tmp71 ;
11394 unsigned long __cil_tmp72 ;
11395 unsigned long __cil_tmp73 ;
11396 void *__cil_tmp74 ;
11397 struct alauda_info *__cil_tmp75 ;
11398 unsigned long __cil_tmp76 ;
11399 unsigned long __cil_tmp77 ;
11400 unsigned long __cil_tmp78 ;
11401 unsigned long __cil_tmp79 ;
11402 struct scsi_cmnd *__cil_tmp80 ;
11403 struct scsi_device *__cil_tmp81 ;
11404 unsigned long __cil_tmp82 ;
11405 unsigned long __cil_tmp83 ;
11406 unsigned int __cil_tmp84 ;
11407 unsigned long __cil_tmp85 ;
11408 unsigned long __cil_tmp86 ;
11409 unsigned long __cil_tmp87 ;
11410 unsigned long __cil_tmp88 ;
11411 unsigned long __cil_tmp89 ;
11412 void *__cil_tmp90 ;
11413 struct alauda_info *__cil_tmp91 ;
11414 unsigned long __cil_tmp92 ;
11415 unsigned long __cil_tmp93 ;
11416 unsigned long __cil_tmp94 ;
11417 unsigned long __cil_tmp95 ;
11418 struct scsi_cmnd *__cil_tmp96 ;
11419 struct scsi_device *__cil_tmp97 ;
11420 unsigned long __cil_tmp98 ;
11421 unsigned long __cil_tmp99 ;
11422 unsigned int __cil_tmp100 ;
11423 unsigned long __cil_tmp101 ;
11424 unsigned long __cil_tmp102 ;
11425 unsigned long __cil_tmp103 ;
11426 unsigned long __cil_tmp104 ;
11427 unsigned long __cil_tmp105 ;
11428 void *__cil_tmp106 ;
11429 struct alauda_info *__cil_tmp107 ;
11430 unsigned long __cil_tmp108 ;
11431 unsigned long __cil_tmp109 ;
11432 unsigned int __cil_tmp110 ;
11433 size_t __cil_tmp111 ;
11434 unsigned char *__cil_tmp112 ;
11435 unsigned long __cil_tmp113 ;
11436 unsigned long __cil_tmp114 ;
11437 int __cil_tmp115 ;
11438 unsigned long __cil_tmp116 ;
11439 unsigned int __cil_tmp117 ;
11440 unsigned long __cil_tmp118 ;
11441 unsigned long __cil_tmp119 ;
11442 struct scsi_cmnd *__cil_tmp120 ;
11443 struct scsi_device *__cil_tmp121 ;
11444 unsigned long __cil_tmp122 ;
11445 unsigned long __cil_tmp123 ;
11446 unsigned int __cil_tmp124 ;
11447 unsigned long __cil_tmp125 ;
11448 unsigned long __cil_tmp126 ;
11449 unsigned long __cil_tmp127 ;
11450 unsigned long __cil_tmp128 ;
11451 unsigned long __cil_tmp129 ;
11452 void *__cil_tmp130 ;
11453 struct alauda_info *__cil_tmp131 ;
11454 unsigned long __cil_tmp132 ;
11455 unsigned long __cil_tmp133 ;
11456 unsigned int __cil_tmp134 ;
11457 unsigned int __cil_tmp135 ;
11458 int __cil_tmp136 ;
11459 unsigned long __cil_tmp137 ;
11460 unsigned long __cil_tmp138 ;
11461 struct scsi_cmnd *__cil_tmp139 ;
11462 struct scsi_device *__cil_tmp140 ;
11463 unsigned long __cil_tmp141 ;
11464 unsigned long __cil_tmp142 ;
11465 unsigned int __cil_tmp143 ;
11466 unsigned long __cil_tmp144 ;
11467 unsigned long __cil_tmp145 ;
11468 unsigned long __cil_tmp146 ;
11469 unsigned long __cil_tmp147 ;
11470 void *__cil_tmp148 ;
11471 struct alauda_info *__cil_tmp149 ;
11472 unsigned long __cil_tmp150 ;
11473 unsigned long __cil_tmp151 ;
11474 unsigned long __cil_tmp152 ;
11475 unsigned long __cil_tmp153 ;
11476 unsigned int *__cil_tmp154 ;
11477 struct scatterlist **__cil_tmp155 ;
11478 unsigned int __cil_tmp156 ;
11479 unsigned int __cil_tmp157 ;
11480 unsigned int __cil_tmp158 ;
11481 int __cil_tmp159 ;
11482 int __cil_tmp160 ;
11483 int __cil_tmp161 ;
11484 int __cil_tmp162 ;
11485 int __cil_tmp163 ;
11486 unsigned long __cil_tmp164 ;
11487 unsigned long __cil_tmp165 ;
11488 unsigned long __cil_tmp166 ;
11489 unsigned long __cil_tmp167 ;
11490 struct scsi_cmnd *__cil_tmp168 ;
11491 struct scsi_device *__cil_tmp169 ;
11492 unsigned long __cil_tmp170 ;
11493 unsigned long __cil_tmp171 ;
11494 unsigned int __cil_tmp172 ;
11495 unsigned long __cil_tmp173 ;
11496 unsigned long __cil_tmp174 ;
11497 unsigned long __cil_tmp175 ;
11498 unsigned long __cil_tmp176 ;
11499 unsigned long __cil_tmp177 ;
11500 void *__cil_tmp178 ;
11501 struct alauda_info *__cil_tmp179 ;
11502 unsigned long __cil_tmp180 ;
11503 unsigned long __cil_tmp181 ;
11504 u16 **__cil_tmp182 ;
11505 u16 **__cil_tmp183 ;
11506 u16 *__cil_tmp184 ;
11507 u16 *__cil_tmp185 ;
11508 unsigned int __cil_tmp186 ;
11509 int __cil_tmp187 ;
11510 void *__cil_tmp188 ;
11511 size_t __cil_tmp189 ;
11512 int __cil_tmp190 ;
11513 int __cil_tmp191 ;
11514 int __cil_tmp192 ;
11515 u16 __cil_tmp193 ;
11516 unsigned long __cil_tmp194 ;
11517 unsigned long __cil_tmp195 ;
11518 struct scsi_cmnd *__cil_tmp196 ;
11519 enum xfer_buf_dir __cil_tmp197 ;
11520 int __cil_tmp198 ;
11521 int __cil_tmp199 ;
11522 void const *__cil_tmp200 ;
11523
11524 {
11525#line 941
11526 __cil_tmp28 = (unsigned long )us;
11527#line 941
11528 __cil_tmp29 = __cil_tmp28 + 288;
11529#line 941
11530 __cil_tmp30 = *((struct scsi_cmnd **)__cil_tmp29);
11531#line 941
11532 __cil_tmp31 = *((struct scsi_device **)__cil_tmp30);
11533#line 941
11534 __cil_tmp32 = (unsigned long )__cil_tmp31;
11535#line 941
11536 __cil_tmp33 = __cil_tmp32 + 204;
11537#line 941
11538 __cil_tmp34 = *((unsigned int *)__cil_tmp33);
11539#line 941
11540 __cil_tmp35 = __cil_tmp34 * 48UL;
11541#line 941
11542 __cil_tmp36 = __cil_tmp35 + 29;
11543#line 941
11544 __cil_tmp37 = 0 + __cil_tmp36;
11545#line 941
11546 __cil_tmp38 = (unsigned long )us;
11547#line 941
11548 __cil_tmp39 = __cil_tmp38 + 1080;
11549#line 941
11550 __cil_tmp40 = *((void **)__cil_tmp39);
11551#line 941
11552 __cil_tmp41 = (struct alauda_info *)__cil_tmp40;
11553#line 941
11554 __cil_tmp42 = (unsigned long )__cil_tmp41;
11555#line 941
11556 __cil_tmp43 = __cil_tmp42 + __cil_tmp37;
11557#line 941
11558 __cil_tmp44 = *((unsigned char *)__cil_tmp43);
11559#line 941
11560 blockshift = (unsigned int )__cil_tmp44;
11561#line 942
11562 __cil_tmp45 = (unsigned long )us;
11563#line 942
11564 __cil_tmp46 = __cil_tmp45 + 288;
11565#line 942
11566 __cil_tmp47 = *((struct scsi_cmnd **)__cil_tmp46);
11567#line 942
11568 __cil_tmp48 = *((struct scsi_device **)__cil_tmp47);
11569#line 942
11570 __cil_tmp49 = (unsigned long )__cil_tmp48;
11571#line 942
11572 __cil_tmp50 = __cil_tmp49 + 204;
11573#line 942
11574 __cil_tmp51 = *((unsigned int *)__cil_tmp50);
11575#line 942
11576 __cil_tmp52 = __cil_tmp51 * 48UL;
11577#line 942
11578 __cil_tmp53 = __cil_tmp52 + 28;
11579#line 942
11580 __cil_tmp54 = 0 + __cil_tmp53;
11581#line 942
11582 __cil_tmp55 = (unsigned long )us;
11583#line 942
11584 __cil_tmp56 = __cil_tmp55 + 1080;
11585#line 942
11586 __cil_tmp57 = *((void **)__cil_tmp56);
11587#line 942
11588 __cil_tmp58 = (struct alauda_info *)__cil_tmp57;
11589#line 942
11590 __cil_tmp59 = (unsigned long )__cil_tmp58;
11591#line 942
11592 __cil_tmp60 = __cil_tmp59 + __cil_tmp54;
11593#line 942
11594 __cil_tmp61 = *((unsigned char *)__cil_tmp60);
11595#line 942
11596 pageshift = (unsigned int )__cil_tmp61;
11597#line 943
11598 __cil_tmp62 = (unsigned long )us;
11599#line 943
11600 __cil_tmp63 = __cil_tmp62 + 288;
11601#line 943
11602 __cil_tmp64 = *((struct scsi_cmnd **)__cil_tmp63);
11603#line 943
11604 __cil_tmp65 = *((struct scsi_device **)__cil_tmp64);
11605#line 943
11606 __cil_tmp66 = (unsigned long )__cil_tmp65;
11607#line 943
11608 __cil_tmp67 = __cil_tmp66 + 204;
11609#line 943
11610 __cil_tmp68 = *((unsigned int *)__cil_tmp67);
11611#line 943
11612 __cil_tmp69 = __cil_tmp68 * 48UL;
11613#line 943
11614 __cil_tmp70 = __cil_tmp69 + 12;
11615#line 943
11616 __cil_tmp71 = 0 + __cil_tmp70;
11617#line 943
11618 __cil_tmp72 = (unsigned long )us;
11619#line 943
11620 __cil_tmp73 = __cil_tmp72 + 1080;
11621#line 943
11622 __cil_tmp74 = *((void **)__cil_tmp73);
11623#line 943
11624 __cil_tmp75 = (struct alauda_info *)__cil_tmp74;
11625#line 943
11626 __cil_tmp76 = (unsigned long )__cil_tmp75;
11627#line 943
11628 __cil_tmp77 = __cil_tmp76 + __cil_tmp71;
11629#line 943
11630 blocksize = *((unsigned int *)__cil_tmp77);
11631#line 944
11632 __cil_tmp78 = (unsigned long )us;
11633#line 944
11634 __cil_tmp79 = __cil_tmp78 + 288;
11635#line 944
11636 __cil_tmp80 = *((struct scsi_cmnd **)__cil_tmp79);
11637#line 944
11638 __cil_tmp81 = *((struct scsi_device **)__cil_tmp80);
11639#line 944
11640 __cil_tmp82 = (unsigned long )__cil_tmp81;
11641#line 944
11642 __cil_tmp83 = __cil_tmp82 + 204;
11643#line 944
11644 __cil_tmp84 = *((unsigned int *)__cil_tmp83);
11645#line 944
11646 __cil_tmp85 = __cil_tmp84 * 48UL;
11647#line 944
11648 __cil_tmp86 = __cil_tmp85 + 8;
11649#line 944
11650 __cil_tmp87 = 0 + __cil_tmp86;
11651#line 944
11652 __cil_tmp88 = (unsigned long )us;
11653#line 944
11654 __cil_tmp89 = __cil_tmp88 + 1080;
11655#line 944
11656 __cil_tmp90 = *((void **)__cil_tmp89);
11657#line 944
11658 __cil_tmp91 = (struct alauda_info *)__cil_tmp90;
11659#line 944
11660 __cil_tmp92 = (unsigned long )__cil_tmp91;
11661#line 944
11662 __cil_tmp93 = __cil_tmp92 + __cil_tmp87;
11663#line 944
11664 pagesize = *((unsigned int *)__cil_tmp93);
11665#line 945
11666 __cil_tmp94 = (unsigned long )us;
11667#line 945
11668 __cil_tmp95 = __cil_tmp94 + 288;
11669#line 945
11670 __cil_tmp96 = *((struct scsi_cmnd **)__cil_tmp95);
11671#line 945
11672 __cil_tmp97 = *((struct scsi_device **)__cil_tmp96);
11673#line 945
11674 __cil_tmp98 = (unsigned long )__cil_tmp97;
11675#line 945
11676 __cil_tmp99 = __cil_tmp98 + 204;
11677#line 945
11678 __cil_tmp100 = *((unsigned int *)__cil_tmp99);
11679#line 945
11680 __cil_tmp101 = __cil_tmp100 * 48UL;
11681#line 945
11682 __cil_tmp102 = __cil_tmp101 + 16;
11683#line 945
11684 __cil_tmp103 = 0 + __cil_tmp102;
11685#line 945
11686 __cil_tmp104 = (unsigned long )us;
11687#line 945
11688 __cil_tmp105 = __cil_tmp104 + 1080;
11689#line 945
11690 __cil_tmp106 = *((void **)__cil_tmp105);
11691#line 945
11692 __cil_tmp107 = (struct alauda_info *)__cil_tmp106;
11693#line 945
11694 __cil_tmp108 = (unsigned long )__cil_tmp107;
11695#line 945
11696 __cil_tmp109 = __cil_tmp108 + __cil_tmp103;
11697#line 945
11698 uzonesize = *((unsigned int *)__cil_tmp109);
11699#line 957
11700 _min1 = sectors;
11701#line 957
11702 _min2 = blocksize;
11703#line 957
11704 if (_min1 < _min2) {
11705#line 957
11706 tmp = _min1;
11707 } else {
11708#line 957
11709 tmp = _min2;
11710 }
11711 {
11712#line 957
11713 __cil_tmp110 = pagesize + 64U;
11714#line 957
11715 len = tmp * __cil_tmp110;
11716#line 958
11717 __cil_tmp111 = (size_t )len;
11718#line 958
11719 tmp___0 = kmalloc(__cil_tmp111, 16U);
11720#line 958
11721 buffer = (unsigned char *)tmp___0;
11722 }
11723 {
11724#line 959
11725 __cil_tmp112 = (unsigned char *)0;
11726#line 959
11727 __cil_tmp113 = (unsigned long )__cil_tmp112;
11728#line 959
11729 __cil_tmp114 = (unsigned long )buffer;
11730#line 959
11731 if (__cil_tmp114 == __cil_tmp113) {
11732 {
11733#line 960
11734 printk("<4>alauda_read_data: Out of memory\n");
11735 }
11736#line 961
11737 return (3);
11738 } else {
11739
11740 }
11741 }
11742#line 965
11743 __cil_tmp115 = (int )blockshift;
11744#line 965
11745 __cil_tmp116 = address >> __cil_tmp115;
11746#line 965
11747 lba = (u16 )__cil_tmp116;
11748#line 966
11749 __cil_tmp117 = (unsigned int )address;
11750#line 966
11751 __cil_tmp118 = (unsigned long )us;
11752#line 966
11753 __cil_tmp119 = __cil_tmp118 + 288;
11754#line 966
11755 __cil_tmp120 = *((struct scsi_cmnd **)__cil_tmp119);
11756#line 966
11757 __cil_tmp121 = *((struct scsi_device **)__cil_tmp120);
11758#line 966
11759 __cil_tmp122 = (unsigned long )__cil_tmp121;
11760#line 966
11761 __cil_tmp123 = __cil_tmp122 + 204;
11762#line 966
11763 __cil_tmp124 = *((unsigned int *)__cil_tmp123);
11764#line 966
11765 __cil_tmp125 = __cil_tmp124 * 48UL;
11766#line 966
11767 __cil_tmp126 = __cil_tmp125 + 24;
11768#line 966
11769 __cil_tmp127 = 0 + __cil_tmp126;
11770#line 966
11771 __cil_tmp128 = (unsigned long )us;
11772#line 966
11773 __cil_tmp129 = __cil_tmp128 + 1080;
11774#line 966
11775 __cil_tmp130 = *((void **)__cil_tmp129);
11776#line 966
11777 __cil_tmp131 = (struct alauda_info *)__cil_tmp130;
11778#line 966
11779 __cil_tmp132 = (unsigned long )__cil_tmp131;
11780#line 966
11781 __cil_tmp133 = __cil_tmp132 + __cil_tmp127;
11782#line 966
11783 __cil_tmp134 = *((unsigned int *)__cil_tmp133);
11784#line 966
11785 page = __cil_tmp134 & __cil_tmp117;
11786#line 967
11787 __cil_tmp135 = blockshift + pageshift;
11788#line 967
11789 __cil_tmp136 = (int )__cil_tmp135;
11790#line 967
11791 __cil_tmp137 = (unsigned long )us;
11792#line 967
11793 __cil_tmp138 = __cil_tmp137 + 288;
11794#line 967
11795 __cil_tmp139 = *((struct scsi_cmnd **)__cil_tmp138);
11796#line 967
11797 __cil_tmp140 = *((struct scsi_device **)__cil_tmp139);
11798#line 967
11799 __cil_tmp141 = (unsigned long )__cil_tmp140;
11800#line 967
11801 __cil_tmp142 = __cil_tmp141 + 204;
11802#line 967
11803 __cil_tmp143 = *((unsigned int *)__cil_tmp142);
11804#line 967
11805 __cil_tmp144 = __cil_tmp143 * 48UL;
11806#line 967
11807 __cil_tmp145 = 0 + __cil_tmp144;
11808#line 967
11809 __cil_tmp146 = (unsigned long )us;
11810#line 967
11811 __cil_tmp147 = __cil_tmp146 + 1080;
11812#line 967
11813 __cil_tmp148 = *((void **)__cil_tmp147);
11814#line 967
11815 __cil_tmp149 = (struct alauda_info *)__cil_tmp148;
11816#line 967
11817 __cil_tmp150 = (unsigned long )__cil_tmp149;
11818#line 967
11819 __cil_tmp151 = __cil_tmp150 + __cil_tmp145;
11820#line 967
11821 __cil_tmp152 = *((unsigned long *)__cil_tmp151);
11822#line 967
11823 __cil_tmp153 = __cil_tmp152 >> __cil_tmp136;
11824#line 967
11825 max_lba = (u16 )__cil_tmp153;
11826#line 969
11827 result = 0;
11828#line 970
11829 __cil_tmp154 = & offset;
11830#line 970
11831 *__cil_tmp154 = 0U;
11832#line 971
11833 __cil_tmp155 = & sg;
11834#line 971
11835 *__cil_tmp155 = (struct scatterlist *)0;
11836#line 973
11837 goto ldv_31314;
11838 ldv_31313:
11839 {
11840#line 974
11841 __cil_tmp156 = (unsigned int )lba;
11842#line 974
11843 zone = __cil_tmp156 / uzonesize;
11844#line 975
11845 __cil_tmp157 = zone * uzonesize;
11846#line 975
11847 __cil_tmp158 = (unsigned int )lba;
11848#line 975
11849 lba_offset = __cil_tmp158 - __cil_tmp157;
11850#line 978
11851 alauda_ensure_map_for_zone(us, zone);
11852 }
11853 {
11854#line 981
11855 __cil_tmp159 = (int )max_lba;
11856#line 981
11857 __cil_tmp160 = (int )lba;
11858#line 981
11859 if (__cil_tmp160 >= __cil_tmp159) {
11860 {
11861#line 982
11862 __cil_tmp161 = (int )lba;
11863#line 982
11864 __cil_tmp162 = (int )max_lba;
11865#line 982
11866 printk("<7>usb-storage: Error: Requested lba %u exceeds maximum %u\n", __cil_tmp161,
11867 __cil_tmp162);
11868#line 984
11869 result = 3;
11870 }
11871#line 985
11872 goto ldv_31309;
11873 } else {
11874
11875 }
11876 }
11877#line 989
11878 _min1___0 = sectors;
11879#line 989
11880 _min2___0 = blocksize - page;
11881#line 989
11882 if (_min1___0 < _min2___0) {
11883#line 989
11884 tmp___1 = _min1___0;
11885 } else {
11886#line 989
11887 tmp___1 = _min2___0;
11888 }
11889#line 989
11890 pages = tmp___1;
11891#line 990
11892 __cil_tmp163 = (int )pageshift;
11893#line 990
11894 len = pages << __cil_tmp163;
11895#line 993
11896 __cil_tmp164 = (unsigned long )lba_offset;
11897#line 993
11898 __cil_tmp165 = (unsigned long )zone;
11899#line 993
11900 __cil_tmp166 = (unsigned long )us;
11901#line 993
11902 __cil_tmp167 = __cil_tmp166 + 288;
11903#line 993
11904 __cil_tmp168 = *((struct scsi_cmnd **)__cil_tmp167);
11905#line 993
11906 __cil_tmp169 = *((struct scsi_device **)__cil_tmp168);
11907#line 993
11908 __cil_tmp170 = (unsigned long )__cil_tmp169;
11909#line 993
11910 __cil_tmp171 = __cil_tmp170 + 204;
11911#line 993
11912 __cil_tmp172 = *((unsigned int *)__cil_tmp171);
11913#line 993
11914 __cil_tmp173 = __cil_tmp172 * 48UL;
11915#line 993
11916 __cil_tmp174 = __cil_tmp173 + 32;
11917#line 993
11918 __cil_tmp175 = 0 + __cil_tmp174;
11919#line 993
11920 __cil_tmp176 = (unsigned long )us;
11921#line 993
11922 __cil_tmp177 = __cil_tmp176 + 1080;
11923#line 993
11924 __cil_tmp178 = *((void **)__cil_tmp177);
11925#line 993
11926 __cil_tmp179 = (struct alauda_info *)__cil_tmp178;
11927#line 993
11928 __cil_tmp180 = (unsigned long )__cil_tmp179;
11929#line 993
11930 __cil_tmp181 = __cil_tmp180 + __cil_tmp175;
11931#line 993
11932 __cil_tmp182 = *((u16 ***)__cil_tmp181);
11933#line 993
11934 __cil_tmp183 = __cil_tmp182 + __cil_tmp165;
11935#line 993
11936 __cil_tmp184 = *__cil_tmp183;
11937#line 993
11938 __cil_tmp185 = __cil_tmp184 + __cil_tmp164;
11939#line 993
11940 pba = *__cil_tmp185;
11941 {
11942#line 995
11943 __cil_tmp186 = (unsigned int )pba;
11944#line 995
11945 if (__cil_tmp186 == 65535U) {
11946 {
11947#line 996
11948 __cil_tmp187 = (int )lba;
11949#line 996
11950 printk("<7>usb-storage: Read %d zero pages (LBA %d) page %d\n", pages, __cil_tmp187,
11951 page);
11952#line 1004
11953 __cil_tmp188 = (void *)buffer;
11954#line 1004
11955 __cil_tmp189 = (size_t )len;
11956#line 1004
11957 memset(__cil_tmp188, 0, __cil_tmp189);
11958 }
11959 } else {
11960 {
11961#line 1006
11962 __cil_tmp190 = (int )pba;
11963#line 1006
11964 __cil_tmp191 = (int )lba;
11965#line 1006
11966 printk("<7>usb-storage: Read %d pages, from PBA %d (LBA %d) page %d\n", pages,
11967 __cil_tmp190, __cil_tmp191, page);
11968#line 1010
11969 __cil_tmp192 = (int )pba;
11970#line 1010
11971 __cil_tmp193 = (u16 )__cil_tmp192;
11972#line 1010
11973 result = alauda_read_block(us, __cil_tmp193, page, pages, buffer);
11974 }
11975#line 1011
11976 if (result != 0) {
11977#line 1012
11978 goto ldv_31309;
11979 } else {
11980
11981 }
11982 }
11983 }
11984 {
11985#line 1016
11986 __cil_tmp194 = (unsigned long )us;
11987#line 1016
11988 __cil_tmp195 = __cil_tmp194 + 288;
11989#line 1016
11990 __cil_tmp196 = *((struct scsi_cmnd **)__cil_tmp195);
11991#line 1016
11992 __cil_tmp197 = (enum xfer_buf_dir )0;
11993#line 1016
11994 usb_stor_access_xfer_buf(buffer, len, __cil_tmp196, & sg, & offset, __cil_tmp197);
11995#line 1019
11996 page = 0U;
11997#line 1020
11998 __cil_tmp198 = (int )lba;
11999#line 1020
12000 __cil_tmp199 = __cil_tmp198 + 1;
12001#line 1020
12002 lba = (u16 )__cil_tmp199;
12003#line 1021
12004 sectors = sectors - pages;
12005 }
12006 ldv_31314: ;
12007#line 973
12008 if (sectors != 0U) {
12009#line 974
12010 goto ldv_31313;
12011 } else {
12012#line 976
12013 goto ldv_31309;
12014 }
12015 ldv_31309:
12016 {
12017#line 1024
12018 __cil_tmp200 = (void const *)buffer;
12019#line 1024
12020 kfree(__cil_tmp200);
12021 }
12022#line 1025
12023 return (result);
12024}
12025}
12026#line 1031 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
12027static int alauda_write_data(struct us_data *us , unsigned long address , unsigned int sectors )
12028{ unsigned char *buffer ;
12029 unsigned char *blockbuffer ;
12030 unsigned int page ;
12031 unsigned int len ;
12032 unsigned int offset ;
12033 unsigned int blockshift ;
12034 unsigned int pageshift ;
12035 unsigned int blocksize ;
12036 unsigned int pagesize ;
12037 struct scatterlist *sg ;
12038 u16 lba ;
12039 u16 max_lba ;
12040 int result ;
12041 unsigned int _min1 ;
12042 unsigned int _min2 ;
12043 unsigned int tmp ;
12044 void *tmp___0 ;
12045 void *tmp___1 ;
12046 unsigned int pages ;
12047 unsigned int _min1___0 ;
12048 unsigned int _min2___0 ;
12049 unsigned int tmp___2 ;
12050 unsigned long __cil_tmp26 ;
12051 unsigned long __cil_tmp27 ;
12052 struct scsi_cmnd *__cil_tmp28 ;
12053 struct scsi_device *__cil_tmp29 ;
12054 unsigned long __cil_tmp30 ;
12055 unsigned long __cil_tmp31 ;
12056 unsigned int __cil_tmp32 ;
12057 unsigned long __cil_tmp33 ;
12058 unsigned long __cil_tmp34 ;
12059 unsigned long __cil_tmp35 ;
12060 unsigned long __cil_tmp36 ;
12061 unsigned long __cil_tmp37 ;
12062 void *__cil_tmp38 ;
12063 struct alauda_info *__cil_tmp39 ;
12064 unsigned long __cil_tmp40 ;
12065 unsigned long __cil_tmp41 ;
12066 unsigned char __cil_tmp42 ;
12067 unsigned long __cil_tmp43 ;
12068 unsigned long __cil_tmp44 ;
12069 struct scsi_cmnd *__cil_tmp45 ;
12070 struct scsi_device *__cil_tmp46 ;
12071 unsigned long __cil_tmp47 ;
12072 unsigned long __cil_tmp48 ;
12073 unsigned int __cil_tmp49 ;
12074 unsigned long __cil_tmp50 ;
12075 unsigned long __cil_tmp51 ;
12076 unsigned long __cil_tmp52 ;
12077 unsigned long __cil_tmp53 ;
12078 unsigned long __cil_tmp54 ;
12079 void *__cil_tmp55 ;
12080 struct alauda_info *__cil_tmp56 ;
12081 unsigned long __cil_tmp57 ;
12082 unsigned long __cil_tmp58 ;
12083 unsigned char __cil_tmp59 ;
12084 unsigned long __cil_tmp60 ;
12085 unsigned long __cil_tmp61 ;
12086 struct scsi_cmnd *__cil_tmp62 ;
12087 struct scsi_device *__cil_tmp63 ;
12088 unsigned long __cil_tmp64 ;
12089 unsigned long __cil_tmp65 ;
12090 unsigned int __cil_tmp66 ;
12091 unsigned long __cil_tmp67 ;
12092 unsigned long __cil_tmp68 ;
12093 unsigned long __cil_tmp69 ;
12094 unsigned long __cil_tmp70 ;
12095 unsigned long __cil_tmp71 ;
12096 void *__cil_tmp72 ;
12097 struct alauda_info *__cil_tmp73 ;
12098 unsigned long __cil_tmp74 ;
12099 unsigned long __cil_tmp75 ;
12100 unsigned long __cil_tmp76 ;
12101 unsigned long __cil_tmp77 ;
12102 struct scsi_cmnd *__cil_tmp78 ;
12103 struct scsi_device *__cil_tmp79 ;
12104 unsigned long __cil_tmp80 ;
12105 unsigned long __cil_tmp81 ;
12106 unsigned int __cil_tmp82 ;
12107 unsigned long __cil_tmp83 ;
12108 unsigned long __cil_tmp84 ;
12109 unsigned long __cil_tmp85 ;
12110 unsigned long __cil_tmp86 ;
12111 unsigned long __cil_tmp87 ;
12112 void *__cil_tmp88 ;
12113 struct alauda_info *__cil_tmp89 ;
12114 unsigned long __cil_tmp90 ;
12115 unsigned long __cil_tmp91 ;
12116 size_t __cil_tmp92 ;
12117 unsigned char *__cil_tmp93 ;
12118 unsigned long __cil_tmp94 ;
12119 unsigned long __cil_tmp95 ;
12120 unsigned int __cil_tmp96 ;
12121 unsigned int __cil_tmp97 ;
12122 size_t __cil_tmp98 ;
12123 unsigned char *__cil_tmp99 ;
12124 unsigned long __cil_tmp100 ;
12125 unsigned long __cil_tmp101 ;
12126 void const *__cil_tmp102 ;
12127 int __cil_tmp103 ;
12128 unsigned long __cil_tmp104 ;
12129 unsigned int __cil_tmp105 ;
12130 unsigned long __cil_tmp106 ;
12131 unsigned long __cil_tmp107 ;
12132 struct scsi_cmnd *__cil_tmp108 ;
12133 struct scsi_device *__cil_tmp109 ;
12134 unsigned long __cil_tmp110 ;
12135 unsigned long __cil_tmp111 ;
12136 unsigned int __cil_tmp112 ;
12137 unsigned long __cil_tmp113 ;
12138 unsigned long __cil_tmp114 ;
12139 unsigned long __cil_tmp115 ;
12140 unsigned long __cil_tmp116 ;
12141 unsigned long __cil_tmp117 ;
12142 void *__cil_tmp118 ;
12143 struct alauda_info *__cil_tmp119 ;
12144 unsigned long __cil_tmp120 ;
12145 unsigned long __cil_tmp121 ;
12146 unsigned int __cil_tmp122 ;
12147 unsigned int __cil_tmp123 ;
12148 int __cil_tmp124 ;
12149 unsigned long __cil_tmp125 ;
12150 unsigned long __cil_tmp126 ;
12151 struct scsi_cmnd *__cil_tmp127 ;
12152 struct scsi_device *__cil_tmp128 ;
12153 unsigned long __cil_tmp129 ;
12154 unsigned long __cil_tmp130 ;
12155 unsigned int __cil_tmp131 ;
12156 unsigned long __cil_tmp132 ;
12157 unsigned long __cil_tmp133 ;
12158 unsigned long __cil_tmp134 ;
12159 unsigned long __cil_tmp135 ;
12160 void *__cil_tmp136 ;
12161 struct alauda_info *__cil_tmp137 ;
12162 unsigned long __cil_tmp138 ;
12163 unsigned long __cil_tmp139 ;
12164 unsigned long __cil_tmp140 ;
12165 unsigned long __cil_tmp141 ;
12166 unsigned int *__cil_tmp142 ;
12167 struct scatterlist **__cil_tmp143 ;
12168 int __cil_tmp144 ;
12169 int __cil_tmp145 ;
12170 int __cil_tmp146 ;
12171 int __cil_tmp147 ;
12172 int __cil_tmp148 ;
12173 unsigned long __cil_tmp149 ;
12174 unsigned long __cil_tmp150 ;
12175 struct scsi_cmnd *__cil_tmp151 ;
12176 enum xfer_buf_dir __cil_tmp152 ;
12177 int __cil_tmp153 ;
12178 u16 __cil_tmp154 ;
12179 int __cil_tmp155 ;
12180 int __cil_tmp156 ;
12181 void const *__cil_tmp157 ;
12182 void const *__cil_tmp158 ;
12183
12184 {
12185#line 1036
12186 __cil_tmp26 = (unsigned long )us;
12187#line 1036
12188 __cil_tmp27 = __cil_tmp26 + 288;
12189#line 1036
12190 __cil_tmp28 = *((struct scsi_cmnd **)__cil_tmp27);
12191#line 1036
12192 __cil_tmp29 = *((struct scsi_device **)__cil_tmp28);
12193#line 1036
12194 __cil_tmp30 = (unsigned long )__cil_tmp29;
12195#line 1036
12196 __cil_tmp31 = __cil_tmp30 + 204;
12197#line 1036
12198 __cil_tmp32 = *((unsigned int *)__cil_tmp31);
12199#line 1036
12200 __cil_tmp33 = __cil_tmp32 * 48UL;
12201#line 1036
12202 __cil_tmp34 = __cil_tmp33 + 29;
12203#line 1036
12204 __cil_tmp35 = 0 + __cil_tmp34;
12205#line 1036
12206 __cil_tmp36 = (unsigned long )us;
12207#line 1036
12208 __cil_tmp37 = __cil_tmp36 + 1080;
12209#line 1036
12210 __cil_tmp38 = *((void **)__cil_tmp37);
12211#line 1036
12212 __cil_tmp39 = (struct alauda_info *)__cil_tmp38;
12213#line 1036
12214 __cil_tmp40 = (unsigned long )__cil_tmp39;
12215#line 1036
12216 __cil_tmp41 = __cil_tmp40 + __cil_tmp35;
12217#line 1036
12218 __cil_tmp42 = *((unsigned char *)__cil_tmp41);
12219#line 1036
12220 blockshift = (unsigned int )__cil_tmp42;
12221#line 1037
12222 __cil_tmp43 = (unsigned long )us;
12223#line 1037
12224 __cil_tmp44 = __cil_tmp43 + 288;
12225#line 1037
12226 __cil_tmp45 = *((struct scsi_cmnd **)__cil_tmp44);
12227#line 1037
12228 __cil_tmp46 = *((struct scsi_device **)__cil_tmp45);
12229#line 1037
12230 __cil_tmp47 = (unsigned long )__cil_tmp46;
12231#line 1037
12232 __cil_tmp48 = __cil_tmp47 + 204;
12233#line 1037
12234 __cil_tmp49 = *((unsigned int *)__cil_tmp48);
12235#line 1037
12236 __cil_tmp50 = __cil_tmp49 * 48UL;
12237#line 1037
12238 __cil_tmp51 = __cil_tmp50 + 28;
12239#line 1037
12240 __cil_tmp52 = 0 + __cil_tmp51;
12241#line 1037
12242 __cil_tmp53 = (unsigned long )us;
12243#line 1037
12244 __cil_tmp54 = __cil_tmp53 + 1080;
12245#line 1037
12246 __cil_tmp55 = *((void **)__cil_tmp54);
12247#line 1037
12248 __cil_tmp56 = (struct alauda_info *)__cil_tmp55;
12249#line 1037
12250 __cil_tmp57 = (unsigned long )__cil_tmp56;
12251#line 1037
12252 __cil_tmp58 = __cil_tmp57 + __cil_tmp52;
12253#line 1037
12254 __cil_tmp59 = *((unsigned char *)__cil_tmp58);
12255#line 1037
12256 pageshift = (unsigned int )__cil_tmp59;
12257#line 1038
12258 __cil_tmp60 = (unsigned long )us;
12259#line 1038
12260 __cil_tmp61 = __cil_tmp60 + 288;
12261#line 1038
12262 __cil_tmp62 = *((struct scsi_cmnd **)__cil_tmp61);
12263#line 1038
12264 __cil_tmp63 = *((struct scsi_device **)__cil_tmp62);
12265#line 1038
12266 __cil_tmp64 = (unsigned long )__cil_tmp63;
12267#line 1038
12268 __cil_tmp65 = __cil_tmp64 + 204;
12269#line 1038
12270 __cil_tmp66 = *((unsigned int *)__cil_tmp65);
12271#line 1038
12272 __cil_tmp67 = __cil_tmp66 * 48UL;
12273#line 1038
12274 __cil_tmp68 = __cil_tmp67 + 12;
12275#line 1038
12276 __cil_tmp69 = 0 + __cil_tmp68;
12277#line 1038
12278 __cil_tmp70 = (unsigned long )us;
12279#line 1038
12280 __cil_tmp71 = __cil_tmp70 + 1080;
12281#line 1038
12282 __cil_tmp72 = *((void **)__cil_tmp71);
12283#line 1038
12284 __cil_tmp73 = (struct alauda_info *)__cil_tmp72;
12285#line 1038
12286 __cil_tmp74 = (unsigned long )__cil_tmp73;
12287#line 1038
12288 __cil_tmp75 = __cil_tmp74 + __cil_tmp69;
12289#line 1038
12290 blocksize = *((unsigned int *)__cil_tmp75);
12291#line 1039
12292 __cil_tmp76 = (unsigned long )us;
12293#line 1039
12294 __cil_tmp77 = __cil_tmp76 + 288;
12295#line 1039
12296 __cil_tmp78 = *((struct scsi_cmnd **)__cil_tmp77);
12297#line 1039
12298 __cil_tmp79 = *((struct scsi_device **)__cil_tmp78);
12299#line 1039
12300 __cil_tmp80 = (unsigned long )__cil_tmp79;
12301#line 1039
12302 __cil_tmp81 = __cil_tmp80 + 204;
12303#line 1039
12304 __cil_tmp82 = *((unsigned int *)__cil_tmp81);
12305#line 1039
12306 __cil_tmp83 = __cil_tmp82 * 48UL;
12307#line 1039
12308 __cil_tmp84 = __cil_tmp83 + 8;
12309#line 1039
12310 __cil_tmp85 = 0 + __cil_tmp84;
12311#line 1039
12312 __cil_tmp86 = (unsigned long )us;
12313#line 1039
12314 __cil_tmp87 = __cil_tmp86 + 1080;
12315#line 1039
12316 __cil_tmp88 = *((void **)__cil_tmp87);
12317#line 1039
12318 __cil_tmp89 = (struct alauda_info *)__cil_tmp88;
12319#line 1039
12320 __cil_tmp90 = (unsigned long )__cil_tmp89;
12321#line 1039
12322 __cil_tmp91 = __cil_tmp90 + __cil_tmp85;
12323#line 1039
12324 pagesize = *((unsigned int *)__cil_tmp91);
12325#line 1050
12326 _min1 = sectors;
12327#line 1050
12328 _min2 = blocksize;
12329#line 1050
12330 if (_min1 < _min2) {
12331#line 1050
12332 tmp = _min1;
12333 } else {
12334#line 1050
12335 tmp = _min2;
12336 }
12337 {
12338#line 1050
12339 len = tmp * pagesize;
12340#line 1051
12341 __cil_tmp92 = (size_t )len;
12342#line 1051
12343 tmp___0 = kmalloc(__cil_tmp92, 16U);
12344#line 1051
12345 buffer = (unsigned char *)tmp___0;
12346 }
12347 {
12348#line 1052
12349 __cil_tmp93 = (unsigned char *)0;
12350#line 1052
12351 __cil_tmp94 = (unsigned long )__cil_tmp93;
12352#line 1052
12353 __cil_tmp95 = (unsigned long )buffer;
12354#line 1052
12355 if (__cil_tmp95 == __cil_tmp94) {
12356 {
12357#line 1053
12358 printk("<4>alauda_write_data: Out of memory\n");
12359 }
12360#line 1054
12361 return (3);
12362 } else {
12363
12364 }
12365 }
12366 {
12367#line 1061
12368 __cil_tmp96 = pagesize + 64U;
12369#line 1061
12370 __cil_tmp97 = __cil_tmp96 * blocksize;
12371#line 1061
12372 __cil_tmp98 = (size_t )__cil_tmp97;
12373#line 1061
12374 tmp___1 = kmalloc(__cil_tmp98, 16U);
12375#line 1061
12376 blockbuffer = (unsigned char *)tmp___1;
12377 }
12378 {
12379#line 1062
12380 __cil_tmp99 = (unsigned char *)0;
12381#line 1062
12382 __cil_tmp100 = (unsigned long )__cil_tmp99;
12383#line 1062
12384 __cil_tmp101 = (unsigned long )blockbuffer;
12385#line 1062
12386 if (__cil_tmp101 == __cil_tmp100) {
12387 {
12388#line 1063
12389 printk("<4>alauda_write_data: Out of memory\n");
12390#line 1064
12391 __cil_tmp102 = (void const *)buffer;
12392#line 1064
12393 kfree(__cil_tmp102);
12394 }
12395#line 1065
12396 return (3);
12397 } else {
12398
12399 }
12400 }
12401#line 1069
12402 __cil_tmp103 = (int )blockshift;
12403#line 1069
12404 __cil_tmp104 = address >> __cil_tmp103;
12405#line 1069
12406 lba = (u16 )__cil_tmp104;
12407#line 1070
12408 __cil_tmp105 = (unsigned int )address;
12409#line 1070
12410 __cil_tmp106 = (unsigned long )us;
12411#line 1070
12412 __cil_tmp107 = __cil_tmp106 + 288;
12413#line 1070
12414 __cil_tmp108 = *((struct scsi_cmnd **)__cil_tmp107);
12415#line 1070
12416 __cil_tmp109 = *((struct scsi_device **)__cil_tmp108);
12417#line 1070
12418 __cil_tmp110 = (unsigned long )__cil_tmp109;
12419#line 1070
12420 __cil_tmp111 = __cil_tmp110 + 204;
12421#line 1070
12422 __cil_tmp112 = *((unsigned int *)__cil_tmp111);
12423#line 1070
12424 __cil_tmp113 = __cil_tmp112 * 48UL;
12425#line 1070
12426 __cil_tmp114 = __cil_tmp113 + 24;
12427#line 1070
12428 __cil_tmp115 = 0 + __cil_tmp114;
12429#line 1070
12430 __cil_tmp116 = (unsigned long )us;
12431#line 1070
12432 __cil_tmp117 = __cil_tmp116 + 1080;
12433#line 1070
12434 __cil_tmp118 = *((void **)__cil_tmp117);
12435#line 1070
12436 __cil_tmp119 = (struct alauda_info *)__cil_tmp118;
12437#line 1070
12438 __cil_tmp120 = (unsigned long )__cil_tmp119;
12439#line 1070
12440 __cil_tmp121 = __cil_tmp120 + __cil_tmp115;
12441#line 1070
12442 __cil_tmp122 = *((unsigned int *)__cil_tmp121);
12443#line 1070
12444 page = __cil_tmp122 & __cil_tmp105;
12445#line 1071
12446 __cil_tmp123 = pageshift + blockshift;
12447#line 1071
12448 __cil_tmp124 = (int )__cil_tmp123;
12449#line 1071
12450 __cil_tmp125 = (unsigned long )us;
12451#line 1071
12452 __cil_tmp126 = __cil_tmp125 + 288;
12453#line 1071
12454 __cil_tmp127 = *((struct scsi_cmnd **)__cil_tmp126);
12455#line 1071
12456 __cil_tmp128 = *((struct scsi_device **)__cil_tmp127);
12457#line 1071
12458 __cil_tmp129 = (unsigned long )__cil_tmp128;
12459#line 1071
12460 __cil_tmp130 = __cil_tmp129 + 204;
12461#line 1071
12462 __cil_tmp131 = *((unsigned int *)__cil_tmp130);
12463#line 1071
12464 __cil_tmp132 = __cil_tmp131 * 48UL;
12465#line 1071
12466 __cil_tmp133 = 0 + __cil_tmp132;
12467#line 1071
12468 __cil_tmp134 = (unsigned long )us;
12469#line 1071
12470 __cil_tmp135 = __cil_tmp134 + 1080;
12471#line 1071
12472 __cil_tmp136 = *((void **)__cil_tmp135);
12473#line 1071
12474 __cil_tmp137 = (struct alauda_info *)__cil_tmp136;
12475#line 1071
12476 __cil_tmp138 = (unsigned long )__cil_tmp137;
12477#line 1071
12478 __cil_tmp139 = __cil_tmp138 + __cil_tmp133;
12479#line 1071
12480 __cil_tmp140 = *((unsigned long *)__cil_tmp139);
12481#line 1071
12482 __cil_tmp141 = __cil_tmp140 >> __cil_tmp124;
12483#line 1071
12484 max_lba = (u16 )__cil_tmp141;
12485#line 1073
12486 result = 0;
12487#line 1074
12488 __cil_tmp142 = & offset;
12489#line 1074
12490 *__cil_tmp142 = 0U;
12491#line 1075
12492 __cil_tmp143 = & sg;
12493#line 1075
12494 *__cil_tmp143 = (struct scatterlist *)0;
12495#line 1077
12496 goto ldv_31342;
12497 ldv_31341:
12498#line 1079
12499 _min1___0 = sectors;
12500#line 1079
12501 _min2___0 = blocksize - page;
12502#line 1079
12503 if (_min1___0 < _min2___0) {
12504#line 1079
12505 tmp___2 = _min1___0;
12506 } else {
12507#line 1079
12508 tmp___2 = _min2___0;
12509 }
12510#line 1079
12511 pages = tmp___2;
12512#line 1080
12513 __cil_tmp144 = (int )pageshift;
12514#line 1080
12515 len = pages << __cil_tmp144;
12516 {
12517#line 1083
12518 __cil_tmp145 = (int )max_lba;
12519#line 1083
12520 __cil_tmp146 = (int )lba;
12521#line 1083
12522 if (__cil_tmp146 >= __cil_tmp145) {
12523 {
12524#line 1084
12525 __cil_tmp147 = (int )lba;
12526#line 1084
12527 __cil_tmp148 = (int )max_lba;
12528#line 1084
12529 printk("<7>usb-storage: alauda_write_data: Requested lba %u exceeds maximum %u\n",
12530 __cil_tmp147, __cil_tmp148);
12531#line 1086
12532 result = 3;
12533 }
12534#line 1087
12535 goto ldv_31340;
12536 } else {
12537
12538 }
12539 }
12540 {
12541#line 1091
12542 __cil_tmp149 = (unsigned long )us;
12543#line 1091
12544 __cil_tmp150 = __cil_tmp149 + 288;
12545#line 1091
12546 __cil_tmp151 = *((struct scsi_cmnd **)__cil_tmp150);
12547#line 1091
12548 __cil_tmp152 = (enum xfer_buf_dir )1;
12549#line 1091
12550 usb_stor_access_xfer_buf(buffer, len, __cil_tmp151, & sg, & offset, __cil_tmp152);
12551#line 1094
12552 __cil_tmp153 = (int )lba;
12553#line 1094
12554 __cil_tmp154 = (u16 )__cil_tmp153;
12555#line 1094
12556 result = alauda_write_lba(us, __cil_tmp154, page, pages, buffer, blockbuffer);
12557 }
12558#line 1096
12559 if (result != 0) {
12560#line 1097
12561 goto ldv_31340;
12562 } else {
12563
12564 }
12565#line 1099
12566 page = 0U;
12567#line 1100
12568 __cil_tmp155 = (int )lba;
12569#line 1100
12570 __cil_tmp156 = __cil_tmp155 + 1;
12571#line 1100
12572 lba = (u16 )__cil_tmp156;
12573#line 1101
12574 sectors = sectors - pages;
12575 ldv_31342: ;
12576#line 1077
12577 if (sectors != 0U) {
12578#line 1078
12579 goto ldv_31341;
12580 } else {
12581#line 1080
12582 goto ldv_31340;
12583 }
12584 ldv_31340:
12585 {
12586#line 1104
12587 __cil_tmp157 = (void const *)buffer;
12588#line 1104
12589 kfree(__cil_tmp157);
12590#line 1105
12591 __cil_tmp158 = (void const *)blockbuffer;
12592#line 1105
12593 kfree(__cil_tmp158);
12594 }
12595#line 1106
12596 return (result);
12597}
12598}
12599#line 1113 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
12600static void alauda_info_destructor(void *extra )
12601{ struct alauda_info *info ;
12602 int port ;
12603 struct alauda_media_info *media_info ;
12604 struct alauda_info *__cil_tmp5 ;
12605 unsigned long __cil_tmp6 ;
12606 unsigned long __cil_tmp7 ;
12607 unsigned long __cil_tmp8 ;
12608 struct alauda_media_info (*__cil_tmp9)[2U] ;
12609 struct alauda_media_info *__cil_tmp10 ;
12610 unsigned long __cil_tmp11 ;
12611 unsigned long __cil_tmp12 ;
12612 u16 **__cil_tmp13 ;
12613 void const *__cil_tmp14 ;
12614 unsigned long __cil_tmp15 ;
12615 unsigned long __cil_tmp16 ;
12616 u16 **__cil_tmp17 ;
12617 void const *__cil_tmp18 ;
12618
12619 {
12620#line 1115
12621 info = (struct alauda_info *)extra;
12622 {
12623#line 1118
12624 __cil_tmp5 = (struct alauda_info *)0;
12625#line 1118
12626 __cil_tmp6 = (unsigned long )__cil_tmp5;
12627#line 1118
12628 __cil_tmp7 = (unsigned long )info;
12629#line 1118
12630 if (__cil_tmp7 == __cil_tmp6) {
12631#line 1119
12632 return;
12633 } else {
12634
12635 }
12636 }
12637#line 1121
12638 port = 0;
12639#line 1121
12640 goto ldv_31350;
12641 ldv_31349:
12642 {
12643#line 1122
12644 __cil_tmp8 = (unsigned long )port;
12645#line 1122
12646 __cil_tmp9 = (struct alauda_media_info (*)[2U])info;
12647#line 1122
12648 __cil_tmp10 = (struct alauda_media_info *)__cil_tmp9;
12649#line 1122
12650 media_info = __cil_tmp10 + __cil_tmp8;
12651#line 1124
12652 alauda_free_maps(media_info);
12653#line 1125
12654 __cil_tmp11 = (unsigned long )media_info;
12655#line 1125
12656 __cil_tmp12 = __cil_tmp11 + 32;
12657#line 1125
12658 __cil_tmp13 = *((u16 ***)__cil_tmp12);
12659#line 1125
12660 __cil_tmp14 = (void const *)__cil_tmp13;
12661#line 1125
12662 kfree(__cil_tmp14);
12663#line 1126
12664 __cil_tmp15 = (unsigned long )media_info;
12665#line 1126
12666 __cil_tmp16 = __cil_tmp15 + 40;
12667#line 1126
12668 __cil_tmp17 = *((u16 ***)__cil_tmp16);
12669#line 1126
12670 __cil_tmp18 = (void const *)__cil_tmp17;
12671#line 1126
12672 kfree(__cil_tmp18);
12673#line 1121
12674 port = port + 1;
12675 }
12676 ldv_31350: ;
12677#line 1121
12678 if (port <= 1) {
12679#line 1122
12680 goto ldv_31349;
12681 } else {
12682#line 1124
12683 goto ldv_31351;
12684 }
12685 ldv_31351: ;
12686#line 1126
12687 return;
12688}
12689}
12690#line 1133 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
12691static int init_alauda(struct us_data *us )
12692{ struct alauda_info *info ;
12693 struct usb_host_interface *altsetting ;
12694 unsigned int tmp ;
12695 unsigned long __cil_tmp5 ;
12696 unsigned long __cil_tmp6 ;
12697 struct usb_interface *__cil_tmp7 ;
12698 unsigned long __cil_tmp8 ;
12699 unsigned long __cil_tmp9 ;
12700 unsigned long __cil_tmp10 ;
12701 unsigned long __cil_tmp11 ;
12702 void *__cil_tmp12 ;
12703 unsigned long __cil_tmp13 ;
12704 unsigned long __cil_tmp14 ;
12705 unsigned long __cil_tmp15 ;
12706 void *__cil_tmp16 ;
12707 unsigned long __cil_tmp17 ;
12708 unsigned long __cil_tmp18 ;
12709 unsigned long __cil_tmp19 ;
12710 void *__cil_tmp20 ;
12711 unsigned long __cil_tmp21 ;
12712 unsigned long __cil_tmp22 ;
12713 unsigned long __cil_tmp23 ;
12714 unsigned long __cil_tmp24 ;
12715 struct usb_device *__cil_tmp25 ;
12716 unsigned long __cil_tmp26 ;
12717 unsigned long __cil_tmp27 ;
12718 unsigned long __cil_tmp28 ;
12719 struct usb_host_endpoint *__cil_tmp29 ;
12720 unsigned long __cil_tmp30 ;
12721 unsigned long __cil_tmp31 ;
12722 __u8 __cil_tmp32 ;
12723 unsigned int __cil_tmp33 ;
12724 unsigned int __cil_tmp34 ;
12725 unsigned long __cil_tmp35 ;
12726 unsigned long __cil_tmp36 ;
12727 unsigned int __cil_tmp37 ;
12728
12729 {
12730 {
12731#line 1136
12732 __cil_tmp5 = (unsigned long )us;
12733#line 1136
12734 __cil_tmp6 = __cil_tmp5 + 176;
12735#line 1136
12736 __cil_tmp7 = *((struct usb_interface **)__cil_tmp6);
12737#line 1136
12738 __cil_tmp8 = (unsigned long )__cil_tmp7;
12739#line 1136
12740 __cil_tmp9 = __cil_tmp8 + 8;
12741#line 1136
12742 altsetting = *((struct usb_host_interface **)__cil_tmp9);
12743#line 1137
12744 nand_init_ecc();
12745#line 1139
12746 __cil_tmp10 = (unsigned long )us;
12747#line 1139
12748 __cil_tmp11 = __cil_tmp10 + 1080;
12749#line 1139
12750 *((void **)__cil_tmp11) = kzalloc(120UL, 16U);
12751 }
12752 {
12753#line 1140
12754 __cil_tmp12 = (void *)0;
12755#line 1140
12756 __cil_tmp13 = (unsigned long )__cil_tmp12;
12757#line 1140
12758 __cil_tmp14 = (unsigned long )us;
12759#line 1140
12760 __cil_tmp15 = __cil_tmp14 + 1080;
12761#line 1140
12762 __cil_tmp16 = *((void **)__cil_tmp15);
12763#line 1140
12764 __cil_tmp17 = (unsigned long )__cil_tmp16;
12765#line 1140
12766 if (__cil_tmp17 == __cil_tmp13) {
12767 {
12768#line 1141
12769 printk("<7>usb-storage: init_alauda: Gah! Can\'t allocate storage foralauda info struct!\n");
12770 }
12771#line 1143
12772 return (3);
12773 } else {
12774
12775 }
12776 }
12777 {
12778#line 1145
12779 __cil_tmp18 = (unsigned long )us;
12780#line 1145
12781 __cil_tmp19 = __cil_tmp18 + 1080;
12782#line 1145
12783 __cil_tmp20 = *((void **)__cil_tmp19);
12784#line 1145
12785 info = (struct alauda_info *)__cil_tmp20;
12786#line 1146
12787 __cil_tmp21 = (unsigned long )us;
12788#line 1146
12789 __cil_tmp22 = __cil_tmp21 + 1088;
12790#line 1146
12791 *((void (**)(void * ))__cil_tmp22) = & alauda_info_destructor;
12792#line 1148
12793 __cil_tmp23 = (unsigned long )us;
12794#line 1148
12795 __cil_tmp24 = __cil_tmp23 + 168;
12796#line 1148
12797 __cil_tmp25 = *((struct usb_device **)__cil_tmp24);
12798#line 1148
12799 __cil_tmp26 = 0 + 2;
12800#line 1148
12801 __cil_tmp27 = (unsigned long )altsetting;
12802#line 1148
12803 __cil_tmp28 = __cil_tmp27 + 16;
12804#line 1148
12805 __cil_tmp29 = *((struct usb_host_endpoint **)__cil_tmp28);
12806#line 1148
12807 __cil_tmp30 = (unsigned long )__cil_tmp29;
12808#line 1148
12809 __cil_tmp31 = __cil_tmp30 + __cil_tmp26;
12810#line 1148
12811 __cil_tmp32 = *((__u8 *)__cil_tmp31);
12812#line 1148
12813 __cil_tmp33 = (unsigned int )__cil_tmp32;
12814#line 1148
12815 __cil_tmp34 = __cil_tmp33 & 15U;
12816#line 1148
12817 tmp = __create_pipe(__cil_tmp25, __cil_tmp34);
12818#line 1148
12819 __cil_tmp35 = (unsigned long )info;
12820#line 1148
12821 __cil_tmp36 = __cil_tmp35 + 96;
12822#line 1148
12823 __cil_tmp37 = tmp | 3221225472U;
12824#line 1148
12825 *((int *)__cil_tmp36) = (int )__cil_tmp37;
12826 }
12827#line 1152
12828 return (0);
12829}
12830}
12831#line 1155 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
12832static int alauda_transport(struct scsi_cmnd *srb , struct us_data *us )
12833{ int rc ;
12834 struct alauda_info *info ;
12835 unsigned char *ptr ;
12836 unsigned char inquiry_response[36U] ;
12837 size_t __len ;
12838 void *__ret ;
12839 int tmp ;
12840 unsigned int num_zones ;
12841 unsigned long capacity ;
12842 __u32 tmp___0 ;
12843 unsigned int page ;
12844 unsigned int pages ;
12845 int tmp___1 ;
12846 unsigned int page___0 ;
12847 unsigned int pages___0 ;
12848 int tmp___2 ;
12849 unsigned long __cil_tmp19 ;
12850 unsigned long __cil_tmp20 ;
12851 void *__cil_tmp21 ;
12852 unsigned long __cil_tmp22 ;
12853 unsigned long __cil_tmp23 ;
12854 unsigned long __cil_tmp24 ;
12855 unsigned long __cil_tmp25 ;
12856 unsigned long __cil_tmp26 ;
12857 unsigned long __cil_tmp27 ;
12858 unsigned long __cil_tmp28 ;
12859 unsigned long __cil_tmp29 ;
12860 unsigned long __cil_tmp30 ;
12861 unsigned long __cil_tmp31 ;
12862 unsigned long __cil_tmp32 ;
12863 unsigned long __cil_tmp33 ;
12864 unsigned long __cil_tmp34 ;
12865 unsigned long __cil_tmp35 ;
12866 unsigned long __cil_tmp36 ;
12867 unsigned long __cil_tmp37 ;
12868 unsigned long __cil_tmp38 ;
12869 unsigned long __cil_tmp39 ;
12870 unsigned long __cil_tmp40 ;
12871 unsigned long __cil_tmp41 ;
12872 unsigned char *__cil_tmp42 ;
12873 unsigned char __cil_tmp43 ;
12874 unsigned int __cil_tmp44 ;
12875 void *__cil_tmp45 ;
12876 void const *__cil_tmp46 ;
12877 void *__cil_tmp47 ;
12878 void const *__cil_tmp48 ;
12879 unsigned long __cil_tmp49 ;
12880 unsigned long __cil_tmp50 ;
12881 unsigned char *__cil_tmp51 ;
12882 unsigned char __cil_tmp52 ;
12883 unsigned int __cil_tmp53 ;
12884 unsigned long __cil_tmp54 ;
12885 unsigned long __cil_tmp55 ;
12886 unsigned char *__cil_tmp56 ;
12887 unsigned char __cil_tmp57 ;
12888 unsigned int __cil_tmp58 ;
12889 unsigned long __cil_tmp59 ;
12890 unsigned long __cil_tmp60 ;
12891 struct scsi_cmnd *__cil_tmp61 ;
12892 struct scsi_device *__cil_tmp62 ;
12893 unsigned long __cil_tmp63 ;
12894 unsigned long __cil_tmp64 ;
12895 unsigned int __cil_tmp65 ;
12896 unsigned long __cil_tmp66 ;
12897 unsigned long __cil_tmp67 ;
12898 unsigned long __cil_tmp68 ;
12899 unsigned long __cil_tmp69 ;
12900 unsigned long __cil_tmp70 ;
12901 void *__cil_tmp71 ;
12902 struct alauda_info *__cil_tmp72 ;
12903 unsigned long __cil_tmp73 ;
12904 unsigned long __cil_tmp74 ;
12905 unsigned char __cil_tmp75 ;
12906 int __cil_tmp76 ;
12907 unsigned long __cil_tmp77 ;
12908 unsigned long __cil_tmp78 ;
12909 struct scsi_cmnd *__cil_tmp79 ;
12910 struct scsi_device *__cil_tmp80 ;
12911 unsigned long __cil_tmp81 ;
12912 unsigned long __cil_tmp82 ;
12913 unsigned int __cil_tmp83 ;
12914 unsigned long __cil_tmp84 ;
12915 unsigned long __cil_tmp85 ;
12916 unsigned long __cil_tmp86 ;
12917 unsigned long __cil_tmp87 ;
12918 unsigned long __cil_tmp88 ;
12919 void *__cil_tmp89 ;
12920 struct alauda_info *__cil_tmp90 ;
12921 unsigned long __cil_tmp91 ;
12922 unsigned long __cil_tmp92 ;
12923 unsigned char __cil_tmp93 ;
12924 int __cil_tmp94 ;
12925 unsigned long __cil_tmp95 ;
12926 unsigned long __cil_tmp96 ;
12927 struct scsi_cmnd *__cil_tmp97 ;
12928 struct scsi_device *__cil_tmp98 ;
12929 unsigned long __cil_tmp99 ;
12930 unsigned long __cil_tmp100 ;
12931 unsigned int __cil_tmp101 ;
12932 unsigned long __cil_tmp102 ;
12933 unsigned long __cil_tmp103 ;
12934 unsigned long __cil_tmp104 ;
12935 unsigned long __cil_tmp105 ;
12936 unsigned long __cil_tmp106 ;
12937 void *__cil_tmp107 ;
12938 struct alauda_info *__cil_tmp108 ;
12939 unsigned long __cil_tmp109 ;
12940 unsigned long __cil_tmp110 ;
12941 unsigned char __cil_tmp111 ;
12942 int __cil_tmp112 ;
12943 int __cil_tmp113 ;
12944 int __cil_tmp114 ;
12945 unsigned long __cil_tmp115 ;
12946 unsigned long __cil_tmp116 ;
12947 struct scsi_cmnd *__cil_tmp117 ;
12948 struct scsi_device *__cil_tmp118 ;
12949 unsigned long __cil_tmp119 ;
12950 unsigned long __cil_tmp120 ;
12951 unsigned int __cil_tmp121 ;
12952 unsigned long __cil_tmp122 ;
12953 unsigned long __cil_tmp123 ;
12954 unsigned long __cil_tmp124 ;
12955 unsigned long __cil_tmp125 ;
12956 void *__cil_tmp126 ;
12957 struct alauda_info *__cil_tmp127 ;
12958 unsigned long __cil_tmp128 ;
12959 unsigned long __cil_tmp129 ;
12960 unsigned long __cil_tmp130 ;
12961 unsigned long __cil_tmp131 ;
12962 unsigned long __cil_tmp132 ;
12963 unsigned long __cil_tmp133 ;
12964 struct scsi_cmnd *__cil_tmp134 ;
12965 struct scsi_device *__cil_tmp135 ;
12966 unsigned long __cil_tmp136 ;
12967 unsigned long __cil_tmp137 ;
12968 unsigned int __cil_tmp138 ;
12969 unsigned long __cil_tmp139 ;
12970 unsigned long __cil_tmp140 ;
12971 unsigned long __cil_tmp141 ;
12972 unsigned long __cil_tmp142 ;
12973 unsigned long __cil_tmp143 ;
12974 void *__cil_tmp144 ;
12975 struct alauda_info *__cil_tmp145 ;
12976 unsigned long __cil_tmp146 ;
12977 unsigned long __cil_tmp147 ;
12978 unsigned int __cil_tmp148 ;
12979 unsigned long __cil_tmp149 ;
12980 unsigned long __cil_tmp150 ;
12981 struct scsi_cmnd *__cil_tmp151 ;
12982 struct scsi_device *__cil_tmp152 ;
12983 unsigned long __cil_tmp153 ;
12984 unsigned long __cil_tmp154 ;
12985 unsigned int __cil_tmp155 ;
12986 unsigned long __cil_tmp156 ;
12987 unsigned long __cil_tmp157 ;
12988 unsigned long __cil_tmp158 ;
12989 unsigned long __cil_tmp159 ;
12990 unsigned long __cil_tmp160 ;
12991 void *__cil_tmp161 ;
12992 struct alauda_info *__cil_tmp162 ;
12993 unsigned long __cil_tmp163 ;
12994 unsigned long __cil_tmp164 ;
12995 unsigned int __cil_tmp165 ;
12996 unsigned int __cil_tmp166 ;
12997 unsigned int __cil_tmp167 ;
12998 __u32 __cil_tmp168 ;
12999 __u32 __cil_tmp169 ;
13000 __be32 *__cil_tmp170 ;
13001 __be32 *__cil_tmp171 ;
13002 __be32 *__cil_tmp172 ;
13003 unsigned long __cil_tmp173 ;
13004 unsigned long __cil_tmp174 ;
13005 unsigned char *__cil_tmp175 ;
13006 unsigned char __cil_tmp176 ;
13007 unsigned int __cil_tmp177 ;
13008 unsigned long __cil_tmp178 ;
13009 unsigned long __cil_tmp179 ;
13010 unsigned char *__cil_tmp180 ;
13011 unsigned char *__cil_tmp181 ;
13012 unsigned char __cil_tmp182 ;
13013 int __cil_tmp183 ;
13014 int __cil_tmp184 ;
13015 unsigned long __cil_tmp185 ;
13016 unsigned long __cil_tmp186 ;
13017 unsigned char *__cil_tmp187 ;
13018 unsigned char *__cil_tmp188 ;
13019 unsigned char __cil_tmp189 ;
13020 int __cil_tmp190 ;
13021 int __cil_tmp191 ;
13022 unsigned long __cil_tmp192 ;
13023 unsigned long __cil_tmp193 ;
13024 unsigned char *__cil_tmp194 ;
13025 unsigned char *__cil_tmp195 ;
13026 unsigned char __cil_tmp196 ;
13027 int __cil_tmp197 ;
13028 int __cil_tmp198 ;
13029 unsigned long __cil_tmp199 ;
13030 unsigned long __cil_tmp200 ;
13031 unsigned char *__cil_tmp201 ;
13032 unsigned char *__cil_tmp202 ;
13033 unsigned char __cil_tmp203 ;
13034 int __cil_tmp204 ;
13035 int __cil_tmp205 ;
13036 unsigned int __cil_tmp206 ;
13037 unsigned long __cil_tmp207 ;
13038 unsigned long __cil_tmp208 ;
13039 unsigned char *__cil_tmp209 ;
13040 unsigned char *__cil_tmp210 ;
13041 unsigned char __cil_tmp211 ;
13042 int __cil_tmp212 ;
13043 int __cil_tmp213 ;
13044 unsigned long __cil_tmp214 ;
13045 unsigned long __cil_tmp215 ;
13046 unsigned char *__cil_tmp216 ;
13047 unsigned char *__cil_tmp217 ;
13048 unsigned char __cil_tmp218 ;
13049 int __cil_tmp219 ;
13050 int __cil_tmp220 ;
13051 unsigned long __cil_tmp221 ;
13052 unsigned long __cil_tmp222 ;
13053 unsigned long __cil_tmp223 ;
13054 unsigned char *__cil_tmp224 ;
13055 unsigned char __cil_tmp225 ;
13056 unsigned int __cil_tmp226 ;
13057 unsigned long __cil_tmp227 ;
13058 unsigned long __cil_tmp228 ;
13059 unsigned char *__cil_tmp229 ;
13060 unsigned char *__cil_tmp230 ;
13061 unsigned char __cil_tmp231 ;
13062 int __cil_tmp232 ;
13063 int __cil_tmp233 ;
13064 unsigned long __cil_tmp234 ;
13065 unsigned long __cil_tmp235 ;
13066 unsigned char *__cil_tmp236 ;
13067 unsigned char *__cil_tmp237 ;
13068 unsigned char __cil_tmp238 ;
13069 int __cil_tmp239 ;
13070 int __cil_tmp240 ;
13071 unsigned long __cil_tmp241 ;
13072 unsigned long __cil_tmp242 ;
13073 unsigned char *__cil_tmp243 ;
13074 unsigned char *__cil_tmp244 ;
13075 unsigned char __cil_tmp245 ;
13076 int __cil_tmp246 ;
13077 int __cil_tmp247 ;
13078 unsigned long __cil_tmp248 ;
13079 unsigned long __cil_tmp249 ;
13080 unsigned char *__cil_tmp250 ;
13081 unsigned char *__cil_tmp251 ;
13082 unsigned char __cil_tmp252 ;
13083 int __cil_tmp253 ;
13084 int __cil_tmp254 ;
13085 unsigned int __cil_tmp255 ;
13086 unsigned long __cil_tmp256 ;
13087 unsigned long __cil_tmp257 ;
13088 unsigned char *__cil_tmp258 ;
13089 unsigned char *__cil_tmp259 ;
13090 unsigned char __cil_tmp260 ;
13091 int __cil_tmp261 ;
13092 int __cil_tmp262 ;
13093 unsigned long __cil_tmp263 ;
13094 unsigned long __cil_tmp264 ;
13095 unsigned char *__cil_tmp265 ;
13096 unsigned char *__cil_tmp266 ;
13097 unsigned char __cil_tmp267 ;
13098 int __cil_tmp268 ;
13099 int __cil_tmp269 ;
13100 unsigned long __cil_tmp270 ;
13101 unsigned long __cil_tmp271 ;
13102 unsigned long __cil_tmp272 ;
13103 unsigned char *__cil_tmp273 ;
13104 unsigned char __cil_tmp274 ;
13105 unsigned int __cil_tmp275 ;
13106 void *__cil_tmp276 ;
13107 unsigned char *__cil_tmp277 ;
13108 unsigned long __cil_tmp278 ;
13109 unsigned long __cil_tmp279 ;
13110 unsigned char *__cil_tmp280 ;
13111 unsigned char *__cil_tmp281 ;
13112 unsigned long __cil_tmp282 ;
13113 unsigned long __cil_tmp283 ;
13114 unsigned long __cil_tmp284 ;
13115 unsigned char *__cil_tmp285 ;
13116 unsigned long __cil_tmp286 ;
13117 unsigned long __cil_tmp287 ;
13118 unsigned long __cil_tmp288 ;
13119 unsigned long __cil_tmp289 ;
13120 unsigned long __cil_tmp290 ;
13121 unsigned char *__cil_tmp291 ;
13122 unsigned char __cil_tmp292 ;
13123 unsigned int __cil_tmp293 ;
13124 unsigned long __cil_tmp294 ;
13125 unsigned long __cil_tmp295 ;
13126 unsigned char *__cil_tmp296 ;
13127 unsigned char __cil_tmp297 ;
13128 int __cil_tmp298 ;
13129 unsigned long __cil_tmp299 ;
13130 unsigned long __cil_tmp300 ;
13131 unsigned char *__cil_tmp301 ;
13132 unsigned char __cil_tmp302 ;
13133 int __cil_tmp303 ;
13134 unsigned long __cil_tmp304 ;
13135 unsigned long __cil_tmp305 ;
13136 unsigned long __cil_tmp306 ;
13137 unsigned long __cil_tmp307 ;
13138 unsigned long __cil_tmp308 ;
13139 unsigned long __cil_tmp309 ;
13140
13141 {
13142#line 1158
13143 __cil_tmp19 = (unsigned long )us;
13144#line 1158
13145 __cil_tmp20 = __cil_tmp19 + 1080;
13146#line 1158
13147 __cil_tmp21 = *((void **)__cil_tmp20);
13148#line 1158
13149 info = (struct alauda_info *)__cil_tmp21;
13150#line 1159
13151 __cil_tmp22 = (unsigned long )us;
13152#line 1159
13153 __cil_tmp23 = __cil_tmp22 + 568;
13154#line 1159
13155 ptr = *((unsigned char **)__cil_tmp23);
13156#line 1160
13157 __cil_tmp24 = 0 * 1UL;
13158#line 1160
13159 __cil_tmp25 = (unsigned long )(inquiry_response) + __cil_tmp24;
13160#line 1160
13161 *((unsigned char *)__cil_tmp25) = (unsigned char)0;
13162#line 1160
13163 __cil_tmp26 = 1 * 1UL;
13164#line 1160
13165 __cil_tmp27 = (unsigned long )(inquiry_response) + __cil_tmp26;
13166#line 1160
13167 *((unsigned char *)__cil_tmp27) = (unsigned char)128;
13168#line 1160
13169 __cil_tmp28 = 2 * 1UL;
13170#line 1160
13171 __cil_tmp29 = (unsigned long )(inquiry_response) + __cil_tmp28;
13172#line 1160
13173 *((unsigned char *)__cil_tmp29) = (unsigned char)0;
13174#line 1160
13175 __cil_tmp30 = 3 * 1UL;
13176#line 1160
13177 __cil_tmp31 = (unsigned long )(inquiry_response) + __cil_tmp30;
13178#line 1160
13179 *((unsigned char *)__cil_tmp31) = (unsigned char)1;
13180#line 1160
13181 __cil_tmp32 = 4 * 1UL;
13182#line 1160
13183 __cil_tmp33 = (unsigned long )(inquiry_response) + __cil_tmp32;
13184#line 1160
13185 *((unsigned char *)__cil_tmp33) = (unsigned char)31;
13186#line 1160
13187 __cil_tmp34 = 5 * 1UL;
13188#line 1160
13189 __cil_tmp35 = (unsigned long )(inquiry_response) + __cil_tmp34;
13190#line 1160
13191 *((unsigned char *)__cil_tmp35) = (unsigned char)0;
13192#line 1160
13193 __cil_tmp36 = 6 * 1UL;
13194#line 1160
13195 __cil_tmp37 = (unsigned long )(inquiry_response) + __cil_tmp36;
13196#line 1160
13197 *((unsigned char *)__cil_tmp37) = (unsigned char)0;
13198#line 1160
13199 __cil_tmp38 = 7 * 1UL;
13200#line 1160
13201 __cil_tmp39 = (unsigned long )(inquiry_response) + __cil_tmp38;
13202#line 1160
13203 *((unsigned char *)__cil_tmp39) = (unsigned char)0;
13204 {
13205#line 1164
13206 __cil_tmp40 = (unsigned long )srb;
13207#line 1164
13208 __cil_tmp41 = __cil_tmp40 + 80;
13209#line 1164
13210 __cil_tmp42 = *((unsigned char **)__cil_tmp41);
13211#line 1164
13212 __cil_tmp43 = *__cil_tmp42;
13213#line 1164
13214 __cil_tmp44 = (unsigned int )__cil_tmp43;
13215#line 1164
13216 if (__cil_tmp44 == 18U) {
13217 {
13218#line 1165
13219 printk("<7>usb-storage: alauda_transport: INQUIRY. Returning bogus response.\n");
13220#line 1167
13221 __len = 36UL;
13222 }
13223#line 1167
13224 if (__len > 63UL) {
13225 {
13226#line 1167
13227 __cil_tmp45 = (void *)ptr;
13228#line 1167
13229 __cil_tmp46 = (void const *)(& inquiry_response);
13230#line 1167
13231 __ret = __memcpy(__cil_tmp45, __cil_tmp46, __len);
13232 }
13233 } else {
13234 {
13235#line 1167
13236 __cil_tmp47 = (void *)ptr;
13237#line 1167
13238 __cil_tmp48 = (void const *)(& inquiry_response);
13239#line 1167
13240 __ret = __builtin_memcpy(__cil_tmp47, __cil_tmp48, __len);
13241 }
13242 }
13243 {
13244#line 1168
13245 fill_inquiry_response(us, ptr, 36U);
13246 }
13247#line 1169
13248 return (0);
13249 } else {
13250
13251 }
13252 }
13253 {
13254#line 1172
13255 __cil_tmp49 = (unsigned long )srb;
13256#line 1172
13257 __cil_tmp50 = __cil_tmp49 + 80;
13258#line 1172
13259 __cil_tmp51 = *((unsigned char **)__cil_tmp50);
13260#line 1172
13261 __cil_tmp52 = *__cil_tmp51;
13262#line 1172
13263 __cil_tmp53 = (unsigned int )__cil_tmp52;
13264#line 1172
13265 if (__cil_tmp53 == 0U) {
13266 {
13267#line 1173
13268 printk("<7>usb-storage: alauda_transport: TEST_UNIT_READY.\n");
13269#line 1174
13270 tmp = alauda_check_media(us);
13271 }
13272#line 1174
13273 return (tmp);
13274 } else {
13275
13276 }
13277 }
13278 {
13279#line 1177
13280 __cil_tmp54 = (unsigned long )srb;
13281#line 1177
13282 __cil_tmp55 = __cil_tmp54 + 80;
13283#line 1177
13284 __cil_tmp56 = *((unsigned char **)__cil_tmp55);
13285#line 1177
13286 __cil_tmp57 = *__cil_tmp56;
13287#line 1177
13288 __cil_tmp58 = (unsigned int )__cil_tmp57;
13289#line 1177
13290 if (__cil_tmp58 == 37U) {
13291 {
13292#line 1181
13293 rc = alauda_check_media(us);
13294 }
13295#line 1182
13296 if (rc != 0) {
13297#line 1183
13298 return (rc);
13299 } else {
13300
13301 }
13302 {
13303#line 1185
13304 __cil_tmp59 = (unsigned long )us;
13305#line 1185
13306 __cil_tmp60 = __cil_tmp59 + 288;
13307#line 1185
13308 __cil_tmp61 = *((struct scsi_cmnd **)__cil_tmp60);
13309#line 1185
13310 __cil_tmp62 = *((struct scsi_device **)__cil_tmp61);
13311#line 1185
13312 __cil_tmp63 = (unsigned long )__cil_tmp62;
13313#line 1185
13314 __cil_tmp64 = __cil_tmp63 + 204;
13315#line 1185
13316 __cil_tmp65 = *((unsigned int *)__cil_tmp64);
13317#line 1185
13318 __cil_tmp66 = __cil_tmp65 * 48UL;
13319#line 1185
13320 __cil_tmp67 = __cil_tmp66 + 28;
13321#line 1185
13322 __cil_tmp68 = 0 + __cil_tmp67;
13323#line 1185
13324 __cil_tmp69 = (unsigned long )us;
13325#line 1185
13326 __cil_tmp70 = __cil_tmp69 + 1080;
13327#line 1185
13328 __cil_tmp71 = *((void **)__cil_tmp70);
13329#line 1185
13330 __cil_tmp72 = (struct alauda_info *)__cil_tmp71;
13331#line 1185
13332 __cil_tmp73 = (unsigned long )__cil_tmp72;
13333#line 1185
13334 __cil_tmp74 = __cil_tmp73 + __cil_tmp68;
13335#line 1185
13336 __cil_tmp75 = *((unsigned char *)__cil_tmp74);
13337#line 1185
13338 __cil_tmp76 = (int )__cil_tmp75;
13339#line 1185
13340 __cil_tmp77 = (unsigned long )us;
13341#line 1185
13342 __cil_tmp78 = __cil_tmp77 + 288;
13343#line 1185
13344 __cil_tmp79 = *((struct scsi_cmnd **)__cil_tmp78);
13345#line 1185
13346 __cil_tmp80 = *((struct scsi_device **)__cil_tmp79);
13347#line 1185
13348 __cil_tmp81 = (unsigned long )__cil_tmp80;
13349#line 1185
13350 __cil_tmp82 = __cil_tmp81 + 204;
13351#line 1185
13352 __cil_tmp83 = *((unsigned int *)__cil_tmp82);
13353#line 1185
13354 __cil_tmp84 = __cil_tmp83 * 48UL;
13355#line 1185
13356 __cil_tmp85 = __cil_tmp84 + 29;
13357#line 1185
13358 __cil_tmp86 = 0 + __cil_tmp85;
13359#line 1185
13360 __cil_tmp87 = (unsigned long )us;
13361#line 1185
13362 __cil_tmp88 = __cil_tmp87 + 1080;
13363#line 1185
13364 __cil_tmp89 = *((void **)__cil_tmp88);
13365#line 1185
13366 __cil_tmp90 = (struct alauda_info *)__cil_tmp89;
13367#line 1185
13368 __cil_tmp91 = (unsigned long )__cil_tmp90;
13369#line 1185
13370 __cil_tmp92 = __cil_tmp91 + __cil_tmp86;
13371#line 1185
13372 __cil_tmp93 = *((unsigned char *)__cil_tmp92);
13373#line 1185
13374 __cil_tmp94 = (int )__cil_tmp93;
13375#line 1185
13376 __cil_tmp95 = (unsigned long )us;
13377#line 1185
13378 __cil_tmp96 = __cil_tmp95 + 288;
13379#line 1185
13380 __cil_tmp97 = *((struct scsi_cmnd **)__cil_tmp96);
13381#line 1185
13382 __cil_tmp98 = *((struct scsi_device **)__cil_tmp97);
13383#line 1185
13384 __cil_tmp99 = (unsigned long )__cil_tmp98;
13385#line 1185
13386 __cil_tmp100 = __cil_tmp99 + 204;
13387#line 1185
13388 __cil_tmp101 = *((unsigned int *)__cil_tmp100);
13389#line 1185
13390 __cil_tmp102 = __cil_tmp101 * 48UL;
13391#line 1185
13392 __cil_tmp103 = __cil_tmp102 + 30;
13393#line 1185
13394 __cil_tmp104 = 0 + __cil_tmp103;
13395#line 1185
13396 __cil_tmp105 = (unsigned long )us;
13397#line 1185
13398 __cil_tmp106 = __cil_tmp105 + 1080;
13399#line 1185
13400 __cil_tmp107 = *((void **)__cil_tmp106);
13401#line 1185
13402 __cil_tmp108 = (struct alauda_info *)__cil_tmp107;
13403#line 1185
13404 __cil_tmp109 = (unsigned long )__cil_tmp108;
13405#line 1185
13406 __cil_tmp110 = __cil_tmp109 + __cil_tmp104;
13407#line 1185
13408 __cil_tmp111 = *((unsigned char *)__cil_tmp110);
13409#line 1185
13410 __cil_tmp112 = (int )__cil_tmp111;
13411#line 1185
13412 __cil_tmp113 = __cil_tmp112 + __cil_tmp94;
13413#line 1185
13414 __cil_tmp114 = __cil_tmp113 + __cil_tmp76;
13415#line 1185
13416 __cil_tmp115 = (unsigned long )us;
13417#line 1185
13418 __cil_tmp116 = __cil_tmp115 + 288;
13419#line 1185
13420 __cil_tmp117 = *((struct scsi_cmnd **)__cil_tmp116);
13421#line 1185
13422 __cil_tmp118 = *((struct scsi_device **)__cil_tmp117);
13423#line 1185
13424 __cil_tmp119 = (unsigned long )__cil_tmp118;
13425#line 1185
13426 __cil_tmp120 = __cil_tmp119 + 204;
13427#line 1185
13428 __cil_tmp121 = *((unsigned int *)__cil_tmp120);
13429#line 1185
13430 __cil_tmp122 = __cil_tmp121 * 48UL;
13431#line 1185
13432 __cil_tmp123 = 0 + __cil_tmp122;
13433#line 1185
13434 __cil_tmp124 = (unsigned long )us;
13435#line 1185
13436 __cil_tmp125 = __cil_tmp124 + 1080;
13437#line 1185
13438 __cil_tmp126 = *((void **)__cil_tmp125);
13439#line 1185
13440 __cil_tmp127 = (struct alauda_info *)__cil_tmp126;
13441#line 1185
13442 __cil_tmp128 = (unsigned long )__cil_tmp127;
13443#line 1185
13444 __cil_tmp129 = __cil_tmp128 + __cil_tmp123;
13445#line 1185
13446 __cil_tmp130 = *((unsigned long *)__cil_tmp129);
13447#line 1185
13448 __cil_tmp131 = __cil_tmp130 >> __cil_tmp114;
13449#line 1185
13450 num_zones = (unsigned int )__cil_tmp131;
13451#line 1188
13452 __cil_tmp132 = (unsigned long )us;
13453#line 1188
13454 __cil_tmp133 = __cil_tmp132 + 288;
13455#line 1188
13456 __cil_tmp134 = *((struct scsi_cmnd **)__cil_tmp133);
13457#line 1188
13458 __cil_tmp135 = *((struct scsi_device **)__cil_tmp134);
13459#line 1188
13460 __cil_tmp136 = (unsigned long )__cil_tmp135;
13461#line 1188
13462 __cil_tmp137 = __cil_tmp136 + 204;
13463#line 1188
13464 __cil_tmp138 = *((unsigned int *)__cil_tmp137);
13465#line 1188
13466 __cil_tmp139 = __cil_tmp138 * 48UL;
13467#line 1188
13468 __cil_tmp140 = __cil_tmp139 + 12;
13469#line 1188
13470 __cil_tmp141 = 0 + __cil_tmp140;
13471#line 1188
13472 __cil_tmp142 = (unsigned long )us;
13473#line 1188
13474 __cil_tmp143 = __cil_tmp142 + 1080;
13475#line 1188
13476 __cil_tmp144 = *((void **)__cil_tmp143);
13477#line 1188
13478 __cil_tmp145 = (struct alauda_info *)__cil_tmp144;
13479#line 1188
13480 __cil_tmp146 = (unsigned long )__cil_tmp145;
13481#line 1188
13482 __cil_tmp147 = __cil_tmp146 + __cil_tmp141;
13483#line 1188
13484 __cil_tmp148 = *((unsigned int *)__cil_tmp147);
13485#line 1188
13486 __cil_tmp149 = (unsigned long )us;
13487#line 1188
13488 __cil_tmp150 = __cil_tmp149 + 288;
13489#line 1188
13490 __cil_tmp151 = *((struct scsi_cmnd **)__cil_tmp150);
13491#line 1188
13492 __cil_tmp152 = *((struct scsi_device **)__cil_tmp151);
13493#line 1188
13494 __cil_tmp153 = (unsigned long )__cil_tmp152;
13495#line 1188
13496 __cil_tmp154 = __cil_tmp153 + 204;
13497#line 1188
13498 __cil_tmp155 = *((unsigned int *)__cil_tmp154);
13499#line 1188
13500 __cil_tmp156 = __cil_tmp155 * 48UL;
13501#line 1188
13502 __cil_tmp157 = __cil_tmp156 + 16;
13503#line 1188
13504 __cil_tmp158 = 0 + __cil_tmp157;
13505#line 1188
13506 __cil_tmp159 = (unsigned long )us;
13507#line 1188
13508 __cil_tmp160 = __cil_tmp159 + 1080;
13509#line 1188
13510 __cil_tmp161 = *((void **)__cil_tmp160);
13511#line 1188
13512 __cil_tmp162 = (struct alauda_info *)__cil_tmp161;
13513#line 1188
13514 __cil_tmp163 = (unsigned long )__cil_tmp162;
13515#line 1188
13516 __cil_tmp164 = __cil_tmp163 + __cil_tmp158;
13517#line 1188
13518 __cil_tmp165 = *((unsigned int *)__cil_tmp164);
13519#line 1188
13520 __cil_tmp166 = __cil_tmp165 * num_zones;
13521#line 1188
13522 __cil_tmp167 = __cil_tmp166 * __cil_tmp148;
13523#line 1188
13524 capacity = (unsigned long )__cil_tmp167;
13525#line 1192
13526 __cil_tmp168 = (__u32 )capacity;
13527#line 1192
13528 __cil_tmp169 = __cil_tmp168 - 1U;
13529#line 1192
13530 tmp___0 = __fswab32(__cil_tmp169);
13531#line 1192
13532 __cil_tmp170 = (__be32 *)ptr;
13533#line 1192
13534 *__cil_tmp170 = tmp___0;
13535#line 1193
13536 __cil_tmp171 = (__be32 *)ptr;
13537#line 1193
13538 __cil_tmp172 = __cil_tmp171 + 1UL;
13539#line 1193
13540 *__cil_tmp172 = 131072U;
13541#line 1195
13542 usb_stor_set_xfer_buf(ptr, 8U, srb);
13543 }
13544#line 1196
13545 return (0);
13546 } else {
13547
13548 }
13549 }
13550 {
13551#line 1199
13552 __cil_tmp173 = (unsigned long )srb;
13553#line 1199
13554 __cil_tmp174 = __cil_tmp173 + 80;
13555#line 1199
13556 __cil_tmp175 = *((unsigned char **)__cil_tmp174);
13557#line 1199
13558 __cil_tmp176 = *__cil_tmp175;
13559#line 1199
13560 __cil_tmp177 = (unsigned int )__cil_tmp176;
13561#line 1199
13562 if (__cil_tmp177 == 40U) {
13563 {
13564#line 1202
13565 rc = alauda_check_media(us);
13566 }
13567#line 1203
13568 if (rc != 0) {
13569#line 1204
13570 return (rc);
13571 } else {
13572
13573 }
13574 {
13575#line 1206
13576 __cil_tmp178 = (unsigned long )srb;
13577#line 1206
13578 __cil_tmp179 = __cil_tmp178 + 80;
13579#line 1206
13580 __cil_tmp180 = *((unsigned char **)__cil_tmp179);
13581#line 1206
13582 __cil_tmp181 = __cil_tmp180 + 2UL;
13583#line 1206
13584 __cil_tmp182 = *__cil_tmp181;
13585#line 1206
13586 __cil_tmp183 = (int )__cil_tmp182;
13587#line 1206
13588 __cil_tmp184 = __cil_tmp183 << 8;
13589#line 1206
13590 __cil_tmp185 = (unsigned long )srb;
13591#line 1206
13592 __cil_tmp186 = __cil_tmp185 + 80;
13593#line 1206
13594 __cil_tmp187 = *((unsigned char **)__cil_tmp186);
13595#line 1206
13596 __cil_tmp188 = __cil_tmp187 + 3UL;
13597#line 1206
13598 __cil_tmp189 = *__cil_tmp188;
13599#line 1206
13600 __cil_tmp190 = (int )__cil_tmp189;
13601#line 1206
13602 __cil_tmp191 = __cil_tmp190 | __cil_tmp184;
13603#line 1206
13604 page = (unsigned int )__cil_tmp191;
13605#line 1207
13606 page = page << 16;
13607#line 1208
13608 __cil_tmp192 = (unsigned long )srb;
13609#line 1208
13610 __cil_tmp193 = __cil_tmp192 + 80;
13611#line 1208
13612 __cil_tmp194 = *((unsigned char **)__cil_tmp193);
13613#line 1208
13614 __cil_tmp195 = __cil_tmp194 + 4UL;
13615#line 1208
13616 __cil_tmp196 = *__cil_tmp195;
13617#line 1208
13618 __cil_tmp197 = (int )__cil_tmp196;
13619#line 1208
13620 __cil_tmp198 = __cil_tmp197 << 8;
13621#line 1208
13622 __cil_tmp199 = (unsigned long )srb;
13623#line 1208
13624 __cil_tmp200 = __cil_tmp199 + 80;
13625#line 1208
13626 __cil_tmp201 = *((unsigned char **)__cil_tmp200);
13627#line 1208
13628 __cil_tmp202 = __cil_tmp201 + 5UL;
13629#line 1208
13630 __cil_tmp203 = *__cil_tmp202;
13631#line 1208
13632 __cil_tmp204 = (int )__cil_tmp203;
13633#line 1208
13634 __cil_tmp205 = __cil_tmp204 | __cil_tmp198;
13635#line 1208
13636 __cil_tmp206 = (unsigned int )__cil_tmp205;
13637#line 1208
13638 page = __cil_tmp206 | page;
13639#line 1209
13640 __cil_tmp207 = (unsigned long )srb;
13641#line 1209
13642 __cil_tmp208 = __cil_tmp207 + 80;
13643#line 1209
13644 __cil_tmp209 = *((unsigned char **)__cil_tmp208);
13645#line 1209
13646 __cil_tmp210 = __cil_tmp209 + 7UL;
13647#line 1209
13648 __cil_tmp211 = *__cil_tmp210;
13649#line 1209
13650 __cil_tmp212 = (int )__cil_tmp211;
13651#line 1209
13652 __cil_tmp213 = __cil_tmp212 << 8;
13653#line 1209
13654 __cil_tmp214 = (unsigned long )srb;
13655#line 1209
13656 __cil_tmp215 = __cil_tmp214 + 80;
13657#line 1209
13658 __cil_tmp216 = *((unsigned char **)__cil_tmp215);
13659#line 1209
13660 __cil_tmp217 = __cil_tmp216 + 8UL;
13661#line 1209
13662 __cil_tmp218 = *__cil_tmp217;
13663#line 1209
13664 __cil_tmp219 = (int )__cil_tmp218;
13665#line 1209
13666 __cil_tmp220 = __cil_tmp219 | __cil_tmp213;
13667#line 1209
13668 pages = (unsigned int )__cil_tmp220;
13669#line 1211
13670 printk("<7>usb-storage: alauda_transport: READ_10: page %d pagect %d\n", page,
13671 pages);
13672#line 1214
13673 __cil_tmp221 = (unsigned long )page;
13674#line 1214
13675 tmp___1 = alauda_read_data(us, __cil_tmp221, pages);
13676 }
13677#line 1214
13678 return (tmp___1);
13679 } else {
13680
13681 }
13682 }
13683 {
13684#line 1217
13685 __cil_tmp222 = (unsigned long )srb;
13686#line 1217
13687 __cil_tmp223 = __cil_tmp222 + 80;
13688#line 1217
13689 __cil_tmp224 = *((unsigned char **)__cil_tmp223);
13690#line 1217
13691 __cil_tmp225 = *__cil_tmp224;
13692#line 1217
13693 __cil_tmp226 = (unsigned int )__cil_tmp225;
13694#line 1217
13695 if (__cil_tmp226 == 42U) {
13696 {
13697#line 1220
13698 rc = alauda_check_media(us);
13699 }
13700#line 1221
13701 if (rc != 0) {
13702#line 1222
13703 return (rc);
13704 } else {
13705
13706 }
13707 {
13708#line 1224
13709 __cil_tmp227 = (unsigned long )srb;
13710#line 1224
13711 __cil_tmp228 = __cil_tmp227 + 80;
13712#line 1224
13713 __cil_tmp229 = *((unsigned char **)__cil_tmp228);
13714#line 1224
13715 __cil_tmp230 = __cil_tmp229 + 2UL;
13716#line 1224
13717 __cil_tmp231 = *__cil_tmp230;
13718#line 1224
13719 __cil_tmp232 = (int )__cil_tmp231;
13720#line 1224
13721 __cil_tmp233 = __cil_tmp232 << 8;
13722#line 1224
13723 __cil_tmp234 = (unsigned long )srb;
13724#line 1224
13725 __cil_tmp235 = __cil_tmp234 + 80;
13726#line 1224
13727 __cil_tmp236 = *((unsigned char **)__cil_tmp235);
13728#line 1224
13729 __cil_tmp237 = __cil_tmp236 + 3UL;
13730#line 1224
13731 __cil_tmp238 = *__cil_tmp237;
13732#line 1224
13733 __cil_tmp239 = (int )__cil_tmp238;
13734#line 1224
13735 __cil_tmp240 = __cil_tmp239 | __cil_tmp233;
13736#line 1224
13737 page___0 = (unsigned int )__cil_tmp240;
13738#line 1225
13739 page___0 = page___0 << 16;
13740#line 1226
13741 __cil_tmp241 = (unsigned long )srb;
13742#line 1226
13743 __cil_tmp242 = __cil_tmp241 + 80;
13744#line 1226
13745 __cil_tmp243 = *((unsigned char **)__cil_tmp242);
13746#line 1226
13747 __cil_tmp244 = __cil_tmp243 + 4UL;
13748#line 1226
13749 __cil_tmp245 = *__cil_tmp244;
13750#line 1226
13751 __cil_tmp246 = (int )__cil_tmp245;
13752#line 1226
13753 __cil_tmp247 = __cil_tmp246 << 8;
13754#line 1226
13755 __cil_tmp248 = (unsigned long )srb;
13756#line 1226
13757 __cil_tmp249 = __cil_tmp248 + 80;
13758#line 1226
13759 __cil_tmp250 = *((unsigned char **)__cil_tmp249);
13760#line 1226
13761 __cil_tmp251 = __cil_tmp250 + 5UL;
13762#line 1226
13763 __cil_tmp252 = *__cil_tmp251;
13764#line 1226
13765 __cil_tmp253 = (int )__cil_tmp252;
13766#line 1226
13767 __cil_tmp254 = __cil_tmp253 | __cil_tmp247;
13768#line 1226
13769 __cil_tmp255 = (unsigned int )__cil_tmp254;
13770#line 1226
13771 page___0 = __cil_tmp255 | page___0;
13772#line 1227
13773 __cil_tmp256 = (unsigned long )srb;
13774#line 1227
13775 __cil_tmp257 = __cil_tmp256 + 80;
13776#line 1227
13777 __cil_tmp258 = *((unsigned char **)__cil_tmp257);
13778#line 1227
13779 __cil_tmp259 = __cil_tmp258 + 7UL;
13780#line 1227
13781 __cil_tmp260 = *__cil_tmp259;
13782#line 1227
13783 __cil_tmp261 = (int )__cil_tmp260;
13784#line 1227
13785 __cil_tmp262 = __cil_tmp261 << 8;
13786#line 1227
13787 __cil_tmp263 = (unsigned long )srb;
13788#line 1227
13789 __cil_tmp264 = __cil_tmp263 + 80;
13790#line 1227
13791 __cil_tmp265 = *((unsigned char **)__cil_tmp264);
13792#line 1227
13793 __cil_tmp266 = __cil_tmp265 + 8UL;
13794#line 1227
13795 __cil_tmp267 = *__cil_tmp266;
13796#line 1227
13797 __cil_tmp268 = (int )__cil_tmp267;
13798#line 1227
13799 __cil_tmp269 = __cil_tmp268 | __cil_tmp262;
13800#line 1227
13801 pages___0 = (unsigned int )__cil_tmp269;
13802#line 1229
13803 printk("<7>usb-storage: alauda_transport: WRITE_10: page %d pagect %d\n", page___0,
13804 pages___0);
13805#line 1232
13806 __cil_tmp270 = (unsigned long )page___0;
13807#line 1232
13808 tmp___2 = alauda_write_data(us, __cil_tmp270, pages___0);
13809 }
13810#line 1232
13811 return (tmp___2);
13812 } else {
13813
13814 }
13815 }
13816 {
13817#line 1235
13818 __cil_tmp271 = (unsigned long )srb;
13819#line 1235
13820 __cil_tmp272 = __cil_tmp271 + 80;
13821#line 1235
13822 __cil_tmp273 = *((unsigned char **)__cil_tmp272);
13823#line 1235
13824 __cil_tmp274 = *__cil_tmp273;
13825#line 1235
13826 __cil_tmp275 = (unsigned int )__cil_tmp274;
13827#line 1235
13828 if (__cil_tmp275 == 3U) {
13829 {
13830#line 1236
13831 printk("<7>usb-storage: alauda_transport: REQUEST_SENSE.\n");
13832#line 1238
13833 __cil_tmp276 = (void *)ptr;
13834#line 1238
13835 memset(__cil_tmp276, 0, 18UL);
13836#line 1239
13837 *ptr = (unsigned char)240;
13838#line 1240
13839 __cil_tmp277 = ptr + 2UL;
13840#line 1240
13841 __cil_tmp278 = (unsigned long )info;
13842#line 1240
13843 __cil_tmp279 = __cil_tmp278 + 100;
13844#line 1240
13845 *__cil_tmp277 = *((unsigned char *)__cil_tmp279);
13846#line 1241
13847 __cil_tmp280 = ptr + 7UL;
13848#line 1241
13849 *__cil_tmp280 = (unsigned char)11;
13850#line 1242
13851 __cil_tmp281 = ptr + 12UL;
13852#line 1242
13853 __cil_tmp282 = (unsigned long )info;
13854#line 1242
13855 __cil_tmp283 = __cil_tmp282 + 104;
13856#line 1242
13857 __cil_tmp284 = *((unsigned long *)__cil_tmp283);
13858#line 1242
13859 *__cil_tmp281 = (unsigned char )__cil_tmp284;
13860#line 1243
13861 __cil_tmp285 = ptr + 13UL;
13862#line 1243
13863 __cil_tmp286 = (unsigned long )info;
13864#line 1243
13865 __cil_tmp287 = __cil_tmp286 + 112;
13866#line 1243
13867 __cil_tmp288 = *((unsigned long *)__cil_tmp287);
13868#line 1243
13869 *__cil_tmp285 = (unsigned char )__cil_tmp288;
13870#line 1244
13871 usb_stor_set_xfer_buf(ptr, 18U, srb);
13872 }
13873#line 1246
13874 return (0);
13875 } else {
13876
13877 }
13878 }
13879 {
13880#line 1249
13881 __cil_tmp289 = (unsigned long )srb;
13882#line 1249
13883 __cil_tmp290 = __cil_tmp289 + 80;
13884#line 1249
13885 __cil_tmp291 = *((unsigned char **)__cil_tmp290);
13886#line 1249
13887 __cil_tmp292 = *__cil_tmp291;
13888#line 1249
13889 __cil_tmp293 = (unsigned int )__cil_tmp292;
13890#line 1249
13891 if (__cil_tmp293 == 30U) {
13892#line 1252
13893 return (0);
13894 } else {
13895
13896 }
13897 }
13898 {
13899#line 1255
13900 __cil_tmp294 = (unsigned long )srb;
13901#line 1255
13902 __cil_tmp295 = __cil_tmp294 + 80;
13903#line 1255
13904 __cil_tmp296 = *((unsigned char **)__cil_tmp295);
13905#line 1255
13906 __cil_tmp297 = *__cil_tmp296;
13907#line 1255
13908 __cil_tmp298 = (int )__cil_tmp297;
13909#line 1255
13910 __cil_tmp299 = (unsigned long )srb;
13911#line 1255
13912 __cil_tmp300 = __cil_tmp299 + 80;
13913#line 1255
13914 __cil_tmp301 = *((unsigned char **)__cil_tmp300);
13915#line 1255
13916 __cil_tmp302 = *__cil_tmp301;
13917#line 1255
13918 __cil_tmp303 = (int )__cil_tmp302;
13919#line 1255
13920 printk("<7>usb-storage: alauda_transport: Gah! Unknown command: %d (0x%x)\n", __cil_tmp298,
13921 __cil_tmp303);
13922#line 1257
13923 __cil_tmp304 = (unsigned long )info;
13924#line 1257
13925 __cil_tmp305 = __cil_tmp304 + 100;
13926#line 1257
13927 *((unsigned char *)__cil_tmp305) = (unsigned char)5;
13928#line 1258
13929 __cil_tmp306 = (unsigned long )info;
13930#line 1258
13931 __cil_tmp307 = __cil_tmp306 + 104;
13932#line 1258
13933 *((unsigned long *)__cil_tmp307) = 32UL;
13934#line 1259
13935 __cil_tmp308 = (unsigned long )info;
13936#line 1259
13937 __cil_tmp309 = __cil_tmp308 + 112;
13938#line 1259
13939 *((unsigned long *)__cil_tmp309) = 0UL;
13940 }
13941#line 1260
13942 return (1);
13943}
13944}
13945#line 1263 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
13946static int alauda_probe(struct usb_interface *intf , struct usb_device_id const *id )
13947{ struct us_data *us ;
13948 int result ;
13949 long __cil_tmp5 ;
13950 long __cil_tmp6 ;
13951 long __cil_tmp7 ;
13952 long __cil_tmp8 ;
13953 unsigned long __cil_tmp9 ;
13954 struct us_unusual_dev *__cil_tmp10 ;
13955 struct us_unusual_dev *__cil_tmp11 ;
13956 struct us_data **__cil_tmp12 ;
13957 struct us_data *__cil_tmp13 ;
13958 unsigned long __cil_tmp14 ;
13959 unsigned long __cil_tmp15 ;
13960 struct us_data **__cil_tmp16 ;
13961 struct us_data *__cil_tmp17 ;
13962 unsigned long __cil_tmp18 ;
13963 unsigned long __cil_tmp19 ;
13964 struct us_data **__cil_tmp20 ;
13965 struct us_data *__cil_tmp21 ;
13966 unsigned long __cil_tmp22 ;
13967 unsigned long __cil_tmp23 ;
13968 struct us_data **__cil_tmp24 ;
13969 struct us_data *__cil_tmp25 ;
13970 unsigned long __cil_tmp26 ;
13971 unsigned long __cil_tmp27 ;
13972 struct us_data **__cil_tmp28 ;
13973 struct us_data *__cil_tmp29 ;
13974
13975 {
13976 {
13977#line 1269
13978 __cil_tmp5 = (long )(& alauda_usb_ids);
13979#line 1269
13980 __cil_tmp6 = (long )id;
13981#line 1269
13982 __cil_tmp7 = __cil_tmp6 - __cil_tmp5;
13983#line 1269
13984 __cil_tmp8 = __cil_tmp7 / 24L;
13985#line 1269
13986 __cil_tmp9 = (unsigned long )__cil_tmp8;
13987#line 1269
13988 __cil_tmp10 = (struct us_unusual_dev *)(& alauda_unusual_dev_list);
13989#line 1269
13990 __cil_tmp11 = __cil_tmp10 + __cil_tmp9;
13991#line 1269
13992 result = usb_stor_probe1(& us, intf, id, __cil_tmp11);
13993 }
13994#line 1271
13995 if (result != 0) {
13996#line 1272
13997 return (result);
13998 } else {
13999
14000 }
14001 {
14002#line 1274
14003 __cil_tmp12 = & us;
14004#line 1274
14005 __cil_tmp13 = *__cil_tmp12;
14006#line 1274
14007 __cil_tmp14 = (unsigned long )__cil_tmp13;
14008#line 1274
14009 __cil_tmp15 = __cil_tmp14 + 232;
14010#line 1274
14011 *((char **)__cil_tmp15) = (char *)"Alauda Control/Bulk";
14012#line 1275
14013 __cil_tmp16 = & us;
14014#line 1275
14015 __cil_tmp17 = *__cil_tmp16;
14016#line 1275
14017 __cil_tmp18 = (unsigned long )__cil_tmp17;
14018#line 1275
14019 __cil_tmp19 = __cil_tmp18 + 264;
14020#line 1275
14021 *((int (**)(struct scsi_cmnd * , struct us_data * ))__cil_tmp19) = & alauda_transport;
14022#line 1276
14023 __cil_tmp20 = & us;
14024#line 1276
14025 __cil_tmp21 = *__cil_tmp20;
14026#line 1276
14027 __cil_tmp22 = (unsigned long )__cil_tmp21;
14028#line 1276
14029 __cil_tmp23 = __cil_tmp22 + 272;
14030#line 1276
14031 *((int (**)(struct us_data * ))__cil_tmp23) = & usb_stor_Bulk_reset;
14032#line 1277
14033 __cil_tmp24 = & us;
14034#line 1277
14035 __cil_tmp25 = *__cil_tmp24;
14036#line 1277
14037 __cil_tmp26 = (unsigned long )__cil_tmp25;
14038#line 1277
14039 __cil_tmp27 = __cil_tmp26 + 254;
14040#line 1277
14041 *((u8 *)__cil_tmp27) = (u8 )1U;
14042#line 1279
14043 __cil_tmp28 = & us;
14044#line 1279
14045 __cil_tmp29 = *__cil_tmp28;
14046#line 1279
14047 result = usb_stor_probe2(__cil_tmp29);
14048 }
14049#line 1280
14050 return (result);
14051}
14052}
14053#line 1315
14054extern void ldv_check_final_state(void) ;
14055#line 1318
14056extern void ldv_check_return_value(int ) ;
14057#line 1321
14058extern void ldv_initialize(void) ;
14059#line 1324
14060extern int __VERIFIER_nondet_int(void) ;
14061#line 1327 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
14062int LDV_IN_INTERRUPT ;
14063#line 1330 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
14064void main(void)
14065{ struct usb_interface *var_group1 ;
14066 struct usb_device_id const *var_alauda_probe_27_p1 ;
14067 int res_alauda_probe_27 ;
14068 int ldv_s_alauda_driver_usb_driver ;
14069 int tmp ;
14070 int tmp___0 ;
14071
14072 {
14073 {
14074#line 1408
14075 ldv_s_alauda_driver_usb_driver = 0;
14076#line 1398
14077 LDV_IN_INTERRUPT = 1;
14078#line 1407
14079 ldv_initialize();
14080 }
14081#line 1411
14082 goto ldv_31418;
14083 ldv_31417:
14084 {
14085#line 1415
14086 tmp = __VERIFIER_nondet_int();
14087 }
14088#line 1417
14089 if (tmp == 0) {
14090#line 1417
14091 goto case_0;
14092 } else {
14093 {
14094#line 1482
14095 goto switch_default;
14096#line 1415
14097 if (0) {
14098 case_0: ;
14099#line 1420
14100 if (ldv_s_alauda_driver_usb_driver == 0) {
14101 {
14102#line 1471
14103 res_alauda_probe_27 = alauda_probe(var_group1, var_alauda_probe_27_p1);
14104#line 1472
14105 ldv_check_return_value(res_alauda_probe_27);
14106 }
14107#line 1473
14108 if (res_alauda_probe_27 != 0) {
14109#line 1474
14110 goto ldv_module_exit;
14111 } else {
14112
14113 }
14114#line 1475
14115 ldv_s_alauda_driver_usb_driver = 0;
14116 } else {
14117
14118 }
14119#line 1481
14120 goto ldv_31415;
14121 switch_default: ;
14122#line 1482
14123 goto ldv_31415;
14124 } else {
14125 switch_break: ;
14126 }
14127 }
14128 }
14129 ldv_31415: ;
14130 ldv_31418:
14131 {
14132#line 1411
14133 tmp___0 = __VERIFIER_nondet_int();
14134 }
14135#line 1411
14136 if (tmp___0 != 0) {
14137#line 1413
14138 goto ldv_31417;
14139 } else
14140#line 1411
14141 if (ldv_s_alauda_driver_usb_driver != 0) {
14142#line 1413
14143 goto ldv_31417;
14144 } else {
14145#line 1415
14146 goto ldv_31419;
14147 }
14148 ldv_31419: ;
14149 ldv_module_exit: ;
14150 {
14151#line 1491
14152 ldv_check_final_state();
14153 }
14154#line 1494
14155 return;
14156}
14157}
14158#line 5 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/kernel-rules/files/engine-blast-assert.h"
14159void ldv_blast_assert(void)
14160{
14161
14162 {
14163 ERROR: ;
14164#line 6
14165 goto ERROR;
14166}
14167}
14168#line 6 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/kernel-rules/files/engine-blast.h"
14169extern int __VERIFIER_nondet_int(void) ;
14170#line 1515 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
14171int ldv_spin = 0;
14172#line 1519 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
14173void ldv_check_alloc_flags(gfp_t flags )
14174{
14175
14176 {
14177#line 1522
14178 if (ldv_spin != 0) {
14179#line 1522
14180 if (flags != 32U) {
14181 {
14182#line 1522
14183 ldv_blast_assert();
14184 }
14185 } else {
14186
14187 }
14188 } else {
14189
14190 }
14191#line 1525
14192 return;
14193}
14194}
14195#line 1525
14196extern struct page *ldv_some_page(void) ;
14197#line 1528 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
14198struct page *ldv_check_alloc_flags_and_return_some_page(gfp_t flags )
14199{ struct page *tmp ;
14200
14201 {
14202#line 1531
14203 if (ldv_spin != 0) {
14204#line 1531
14205 if (flags != 32U) {
14206 {
14207#line 1531
14208 ldv_blast_assert();
14209 }
14210 } else {
14211
14212 }
14213 } else {
14214
14215 }
14216 {
14217#line 1533
14218 tmp = ldv_some_page();
14219 }
14220#line 1533
14221 return (tmp);
14222}
14223}
14224#line 1537 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
14225void ldv_check_alloc_nonatomic(void)
14226{
14227
14228 {
14229#line 1540
14230 if (ldv_spin != 0) {
14231 {
14232#line 1540
14233 ldv_blast_assert();
14234 }
14235 } else {
14236
14237 }
14238#line 1543
14239 return;
14240}
14241}
14242#line 1544 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
14243void ldv_spin_lock(void)
14244{
14245
14246 {
14247#line 1547
14248 ldv_spin = 1;
14249#line 1548
14250 return;
14251}
14252}
14253#line 1551 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
14254void ldv_spin_unlock(void)
14255{
14256
14257 {
14258#line 1554
14259 ldv_spin = 0;
14260#line 1555
14261 return;
14262}
14263}
14264#line 1558 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
14265int ldv_spin_trylock(void)
14266{ int is_lock ;
14267
14268 {
14269 {
14270#line 1563
14271 is_lock = __VERIFIER_nondet_int();
14272 }
14273#line 1565
14274 if (is_lock != 0) {
14275#line 1568
14276 return (0);
14277 } else {
14278#line 1573
14279 ldv_spin = 1;
14280#line 1575
14281 return (1);
14282 }
14283}
14284}
14285#line 1697 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
14286__inline static void *kmalloc(size_t size , gfp_t flags )
14287{
14288
14289 {
14290 {
14291#line 1703
14292 ldv_check_alloc_flags(flags);
14293#line 1705
14294 ldv_kmalloc_12(size, flags);
14295 }
14296#line 1706
14297 return ((void *)0);
14298}
14299}
14300#line 1720 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
14301__inline static void *kcalloc(size_t n , size_t size , gfp_t flags )
14302{
14303
14304 {
14305 {
14306#line 1727
14307 ldv_check_alloc_flags(flags);
14308#line 1729
14309 ldv_kcalloc_14(n, size, flags);
14310 }
14311#line 1730
14312 return ((void *)0);
14313}
14314}
14315#line 1742 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
14316void *ldv_kmem_cache_alloc_16(struct kmem_cache *ldv_func_arg1 , gfp_t ldv_func_arg2 )
14317{
14318
14319 {
14320 {
14321#line 1748
14322 ldv_check_alloc_flags(ldv_func_arg2);
14323#line 1750
14324 kmem_cache_alloc(ldv_func_arg1, ldv_func_arg2);
14325 }
14326#line 1751
14327 return ((void *)0);
14328}
14329}
14330#line 1753 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2012/dscv_tempdir/dscv/ri/43_1a/drivers/usb/storage/alauda.c.p"
14331__inline static void *kzalloc(size_t size , gfp_t flags )
14332{ void *tmp ;
14333
14334 {
14335 {
14336#line 1759
14337 ldv_check_alloc_flags(flags);
14338#line 1760
14339 tmp = __VERIFIER_nondet_pointer();
14340 }
14341#line 1760
14342 return (tmp);
14343}
14344}