extern void __VERIFIER_error() __attribute__ ((__noreturn__)); /* Generated by CIL v. 1.3.7 */ /* print_CIL_Input is false */ typedef signed char __s8; typedef unsigned char __u8; typedef short __s16; typedef unsigned short __u16; typedef int __s32; typedef unsigned int __u32; typedef long long __s64; typedef unsigned long long __u64; typedef unsigned char u8; typedef short s16; typedef unsigned short u16; typedef int s32; typedef unsigned int u32; typedef long long s64; typedef unsigned long long u64; typedef long __kernel_long_t; typedef unsigned long __kernel_ulong_t; typedef int __kernel_pid_t; typedef unsigned int __kernel_uid32_t; typedef unsigned int __kernel_gid32_t; typedef __kernel_ulong_t __kernel_size_t; typedef __kernel_long_t __kernel_ssize_t; typedef __kernel_long_t __kernel_off_t; typedef long long __kernel_loff_t; typedef __kernel_long_t __kernel_time_t; typedef __kernel_long_t __kernel_clock_t; typedef int __kernel_timer_t; typedef int __kernel_clockid_t; typedef __u32 __be32; typedef __u64 __be64; typedef __u32 __kernel_dev_t; typedef __kernel_dev_t dev_t; typedef unsigned short umode_t; typedef __u32 nlink_t; typedef __kernel_off_t off_t; typedef __kernel_pid_t pid_t; typedef __kernel_clockid_t clockid_t; typedef _Bool bool; typedef __kernel_uid32_t uid_t; typedef __kernel_gid32_t gid_t; typedef __kernel_loff_t loff_t; typedef __kernel_size_t size_t; typedef __kernel_ssize_t ssize_t; typedef __kernel_time_t time_t; typedef unsigned int uint; typedef unsigned long ulong; typedef __s32 int32_t; typedef __u32 uint32_t; typedef unsigned long sector_t; typedef unsigned long blkcnt_t; typedef u64 dma_addr_t; typedef unsigned int gfp_t; typedef unsigned int fmode_t; typedef unsigned int oom_flags_t; typedef u64 phys_addr_t; typedef phys_addr_t resource_size_t; struct __anonstruct_atomic_t_6 { int counter ; }; typedef struct __anonstruct_atomic_t_6 atomic_t; struct __anonstruct_atomic64_t_7 { long counter ; }; typedef struct __anonstruct_atomic64_t_7 atomic64_t; struct list_head { struct list_head *next ; struct list_head *prev ; }; struct hlist_node; struct hlist_head { struct hlist_node *first ; }; struct hlist_node { struct hlist_node *next ; struct hlist_node **pprev ; }; struct callback_head { struct callback_head *next ; void (*func)(struct callback_head * ) ; }; struct module; typedef void (*ctor_fn_t)(void); struct file_operations; struct _ddebug { char const *modname ; char const *function ; char const *filename ; char const *format ; unsigned int lineno : 18 ; unsigned char flags ; }; struct device; struct completion; struct pt_regs; struct pid; typedef u16 __ticket_t; typedef u32 __ticketpair_t; struct __raw_tickets { __ticket_t head ; __ticket_t tail ; }; union __anonunion_ldv_2024_8 { __ticketpair_t head_tail ; struct __raw_tickets tickets ; }; struct arch_spinlock { union __anonunion_ldv_2024_8 ldv_2024 ; }; typedef struct arch_spinlock arch_spinlock_t; struct __anonstruct_ldv_2031_10 { u32 read ; s32 write ; }; union __anonunion_arch_rwlock_t_9 { s64 lock ; struct __anonstruct_ldv_2031_10 ldv_2031 ; }; typedef union __anonunion_arch_rwlock_t_9 arch_rwlock_t; struct task_struct; struct lockdep_map; struct mm_struct; struct pt_regs { unsigned long r15 ; unsigned long r14 ; unsigned long r13 ; unsigned long r12 ; unsigned long bp ; unsigned long bx ; unsigned long r11 ; unsigned long r10 ; unsigned long r9 ; unsigned long r8 ; unsigned long ax ; unsigned long cx ; unsigned long dx ; unsigned long si ; unsigned long di ; unsigned long orig_ax ; unsigned long ip ; unsigned long cs ; unsigned long flags ; unsigned long sp ; unsigned long ss ; }; struct __anonstruct_ldv_2096_12 { unsigned int a ; unsigned int b ; }; struct __anonstruct_ldv_2111_13 { u16 limit0 ; u16 base0 ; unsigned char base1 ; unsigned char type : 4 ; unsigned char s : 1 ; unsigned char dpl : 2 ; unsigned char p : 1 ; unsigned char limit : 4 ; unsigned char avl : 1 ; unsigned char l : 1 ; unsigned char d : 1 ; unsigned char g : 1 ; unsigned char base2 ; }; union __anonunion_ldv_2112_11 { struct __anonstruct_ldv_2096_12 ldv_2096 ; struct __anonstruct_ldv_2111_13 ldv_2111 ; }; struct desc_struct { union __anonunion_ldv_2112_11 ldv_2112 ; }; typedef unsigned long pgdval_t; typedef unsigned long pgprotval_t; struct pgprot { pgprotval_t pgprot ; }; typedef struct pgprot pgprot_t; struct __anonstruct_pgd_t_15 { pgdval_t pgd ; }; typedef struct __anonstruct_pgd_t_15 pgd_t; struct page; typedef struct page *pgtable_t; struct file; struct seq_file; struct thread_struct; struct cpumask; struct paravirt_callee_save { void *func ; }; struct pv_irq_ops { struct paravirt_callee_save save_fl ; struct paravirt_callee_save restore_fl ; struct paravirt_callee_save irq_disable ; struct paravirt_callee_save irq_enable ; void (*safe_halt)(void) ; void (*halt)(void) ; void (*adjust_exception_frame)(void) ; }; struct kernel_vm86_regs { struct pt_regs pt ; unsigned short es ; unsigned short __esh ; unsigned short ds ; unsigned short __dsh ; unsigned short fs ; unsigned short __fsh ; unsigned short gs ; unsigned short __gsh ; }; union __anonunion_ldv_2767_18 { struct pt_regs *regs ; struct kernel_vm86_regs *vm86 ; }; struct math_emu_info { long ___orig_eip ; union __anonunion_ldv_2767_18 ldv_2767 ; }; struct bug_entry { int bug_addr_disp ; int file_disp ; unsigned short line ; unsigned short flags ; }; struct cpumask { unsigned long bits[64U] ; }; typedef struct cpumask cpumask_t; typedef struct cpumask *cpumask_var_t; struct static_key; struct seq_operations; struct i387_fsave_struct { u32 cwd ; u32 swd ; u32 twd ; u32 fip ; u32 fcs ; u32 foo ; u32 fos ; u32 st_space[20U] ; u32 status ; }; struct __anonstruct_ldv_5125_23 { u64 rip ; u64 rdp ; }; struct __anonstruct_ldv_5131_24 { u32 fip ; u32 fcs ; u32 foo ; u32 fos ; }; union __anonunion_ldv_5132_22 { struct __anonstruct_ldv_5125_23 ldv_5125 ; struct __anonstruct_ldv_5131_24 ldv_5131 ; }; union __anonunion_ldv_5141_25 { u32 padding1[12U] ; u32 sw_reserved[12U] ; }; struct i387_fxsave_struct { u16 cwd ; u16 swd ; u16 twd ; u16 fop ; union __anonunion_ldv_5132_22 ldv_5132 ; u32 mxcsr ; u32 mxcsr_mask ; u32 st_space[32U] ; u32 xmm_space[64U] ; u32 padding[12U] ; union __anonunion_ldv_5141_25 ldv_5141 ; }; struct i387_soft_struct { u32 cwd ; u32 swd ; u32 twd ; u32 fip ; u32 fcs ; u32 foo ; u32 fos ; u32 st_space[20U] ; u8 ftop ; u8 changed ; u8 lookahead ; u8 no_update ; u8 rm ; u8 alimit ; struct math_emu_info *info ; u32 entry_eip ; }; struct ymmh_struct { u32 ymmh_space[64U] ; }; struct xsave_hdr_struct { u64 xstate_bv ; u64 reserved1[2U] ; u64 reserved2[5U] ; }; struct xsave_struct { struct i387_fxsave_struct i387 ; struct xsave_hdr_struct xsave_hdr ; struct ymmh_struct ymmh ; }; union thread_xstate { struct i387_fsave_struct fsave ; struct i387_fxsave_struct fxsave ; struct i387_soft_struct soft ; struct xsave_struct xsave ; }; struct fpu { unsigned int last_cpu ; unsigned int has_fpu ; union thread_xstate *state ; }; struct kmem_cache; struct perf_event; struct thread_struct { struct desc_struct tls_array[3U] ; unsigned long sp0 ; unsigned long sp ; unsigned long usersp ; unsigned short es ; unsigned short ds ; unsigned short fsindex ; unsigned short gsindex ; unsigned long fs ; unsigned long gs ; struct perf_event *ptrace_bps[4U] ; unsigned long debugreg6 ; unsigned long ptrace_dr7 ; unsigned long cr2 ; unsigned long trap_nr ; unsigned long error_code ; struct fpu fpu ; unsigned long *io_bitmap_ptr ; unsigned long iopl ; unsigned int io_bitmap_max ; }; typedef atomic64_t atomic_long_t; struct stack_trace { unsigned int nr_entries ; unsigned int max_entries ; unsigned long *entries ; int skip ; }; struct lockdep_subclass_key { char __one_byte ; } __attribute__((__packed__)) ; struct lock_class_key { struct lockdep_subclass_key subkeys[8U] ; }; struct lock_class { struct list_head hash_entry ; struct list_head lock_entry ; struct lockdep_subclass_key *key ; unsigned int subclass ; unsigned int dep_gen_id ; unsigned long usage_mask ; struct stack_trace usage_traces[13U] ; struct list_head locks_after ; struct list_head locks_before ; unsigned int version ; unsigned long ops ; char const *name ; int name_version ; unsigned long contention_point[4U] ; unsigned long contending_point[4U] ; }; struct lockdep_map { struct lock_class_key *key ; struct lock_class *class_cache[2U] ; char const *name ; int cpu ; unsigned long ip ; }; struct held_lock { u64 prev_chain_key ; unsigned long acquire_ip ; struct lockdep_map *instance ; struct lockdep_map *nest_lock ; u64 waittime_stamp ; u64 holdtime_stamp ; unsigned short class_idx : 13 ; unsigned char irq_context : 2 ; unsigned char trylock : 1 ; unsigned char read : 2 ; unsigned char check : 2 ; unsigned char hardirqs_off : 1 ; unsigned short references : 11 ; }; struct raw_spinlock { arch_spinlock_t raw_lock ; unsigned int magic ; unsigned int owner_cpu ; void *owner ; struct lockdep_map dep_map ; }; typedef struct raw_spinlock raw_spinlock_t; struct __anonstruct_ldv_5960_29 { u8 __padding[24U] ; struct lockdep_map dep_map ; }; union __anonunion_ldv_5961_28 { struct raw_spinlock rlock ; struct __anonstruct_ldv_5960_29 ldv_5960 ; }; struct spinlock { union __anonunion_ldv_5961_28 ldv_5961 ; }; typedef struct spinlock spinlock_t; struct __anonstruct_rwlock_t_30 { arch_rwlock_t raw_lock ; unsigned int magic ; unsigned int owner_cpu ; void *owner ; struct lockdep_map dep_map ; }; typedef struct __anonstruct_rwlock_t_30 rwlock_t; struct mutex { atomic_t count ; spinlock_t wait_lock ; struct list_head wait_list ; struct task_struct *owner ; char const *name ; void *magic ; struct lockdep_map dep_map ; }; struct mutex_waiter { struct list_head list ; struct task_struct *task ; void *magic ; }; struct timespec; struct seqcount { unsigned int sequence ; }; typedef struct seqcount seqcount_t; struct timespec { __kernel_time_t tv_sec ; long tv_nsec ; }; struct user_namespace; typedef uid_t kuid_t; typedef gid_t kgid_t; struct kstat { u64 ino ; dev_t dev ; umode_t mode ; unsigned int nlink ; kuid_t uid ; kgid_t gid ; dev_t rdev ; loff_t size ; struct timespec atime ; struct timespec mtime ; struct timespec ctime ; unsigned long blksize ; unsigned long long blocks ; }; struct __wait_queue_head { spinlock_t lock ; struct list_head task_list ; }; typedef struct __wait_queue_head wait_queue_head_t; struct __anonstruct_nodemask_t_36 { unsigned long bits[16U] ; }; typedef struct __anonstruct_nodemask_t_36 nodemask_t; struct rw_semaphore; struct rw_semaphore { long count ; raw_spinlock_t wait_lock ; struct list_head wait_list ; struct lockdep_map dep_map ; }; struct completion { unsigned int done ; wait_queue_head_t wait ; }; union ktime { s64 tv64 ; }; typedef union ktime ktime_t; struct tvec_base; struct timer_list { struct list_head entry ; unsigned long expires ; struct tvec_base *base ; void (*function)(unsigned long ) ; unsigned long data ; int slack ; int start_pid ; void *start_site ; char start_comm[16U] ; struct lockdep_map lockdep_map ; }; struct hrtimer; enum hrtimer_restart; struct workqueue_struct; struct work_struct; struct work_struct { atomic_long_t data ; struct list_head entry ; void (*func)(struct work_struct * ) ; struct lockdep_map lockdep_map ; }; struct delayed_work { struct work_struct work ; struct timer_list timer ; int cpu ; }; struct execute_work { struct work_struct work ; }; struct ctl_table; struct resource { resource_size_t start ; resource_size_t end ; char const *name ; unsigned long flags ; struct resource *parent ; struct resource *sibling ; struct resource *child ; }; struct pci_dev; struct pm_message { int event ; }; typedef struct pm_message pm_message_t; struct dev_pm_ops { int (*prepare)(struct device * ) ; void (*complete)(struct device * ) ; int (*suspend)(struct device * ) ; int (*resume)(struct device * ) ; int (*freeze)(struct device * ) ; int (*thaw)(struct device * ) ; int (*poweroff)(struct device * ) ; int (*restore)(struct device * ) ; int (*suspend_late)(struct device * ) ; int (*resume_early)(struct device * ) ; int (*freeze_late)(struct device * ) ; int (*thaw_early)(struct device * ) ; int (*poweroff_late)(struct device * ) ; int (*restore_early)(struct device * ) ; int (*suspend_noirq)(struct device * ) ; int (*resume_noirq)(struct device * ) ; int (*freeze_noirq)(struct device * ) ; int (*thaw_noirq)(struct device * ) ; int (*poweroff_noirq)(struct device * ) ; int (*restore_noirq)(struct device * ) ; int (*runtime_suspend)(struct device * ) ; int (*runtime_resume)(struct device * ) ; int (*runtime_idle)(struct device * ) ; }; enum rpm_status { RPM_ACTIVE = 0, RPM_RESUMING = 1, RPM_SUSPENDED = 2, RPM_SUSPENDING = 3 } ; enum rpm_request { RPM_REQ_NONE = 0, RPM_REQ_IDLE = 1, RPM_REQ_SUSPEND = 2, RPM_REQ_AUTOSUSPEND = 3, RPM_REQ_RESUME = 4 } ; struct wakeup_source; struct pm_subsys_data { spinlock_t lock ; unsigned int refcount ; }; struct dev_pm_qos; struct dev_pm_info { pm_message_t power_state ; unsigned char can_wakeup : 1 ; unsigned char async_suspend : 1 ; bool is_prepared ; bool is_suspended ; bool ignore_children ; bool early_init ; spinlock_t lock ; struct list_head entry ; struct completion completion ; struct wakeup_source *wakeup ; bool wakeup_path ; bool syscore ; struct timer_list suspend_timer ; unsigned long timer_expires ; struct work_struct work ; wait_queue_head_t wait_queue ; atomic_t usage_count ; atomic_t child_count ; unsigned char disable_depth : 3 ; unsigned char idle_notification : 1 ; unsigned char request_pending : 1 ; unsigned char deferred_resume : 1 ; unsigned char run_wake : 1 ; unsigned char runtime_auto : 1 ; unsigned char no_callbacks : 1 ; unsigned char irq_safe : 1 ; unsigned char use_autosuspend : 1 ; unsigned char timer_autosuspends : 1 ; enum rpm_request request ; enum rpm_status runtime_status ; int runtime_error ; int autosuspend_delay ; unsigned long last_busy ; unsigned long active_jiffies ; unsigned long suspended_jiffies ; unsigned long accounting_timestamp ; struct pm_subsys_data *subsys_data ; struct dev_pm_qos *qos ; }; struct dev_pm_domain { struct dev_pm_ops ops ; }; struct pci_bus; struct __anonstruct_mm_context_t_101 { void *ldt ; int size ; unsigned short ia32_compat ; struct mutex lock ; void *vdso ; }; typedef struct __anonstruct_mm_context_t_101 mm_context_t; struct vm_area_struct; struct bio_vec; struct call_single_data { struct list_head list ; void (*func)(void * ) ; void *info ; u16 flags ; u16 priv ; }; struct rb_node { unsigned long __rb_parent_color ; struct rb_node *rb_right ; struct rb_node *rb_left ; }; struct rb_root { struct rb_node *rb_node ; }; struct nsproxy; struct ctl_table_root; struct ctl_table_header; struct ctl_dir; typedef int proc_handler(struct ctl_table * , int , void * , size_t * , loff_t * ); struct ctl_table_poll { atomic_t event ; wait_queue_head_t wait ; }; struct ctl_table { char const *procname ; void *data ; int maxlen ; umode_t mode ; struct ctl_table *child ; proc_handler *proc_handler ; struct ctl_table_poll *poll ; void *extra1 ; void *extra2 ; }; struct ctl_node { struct rb_node node ; struct ctl_table_header *header ; }; struct __anonstruct_ldv_13202_129 { struct ctl_table *ctl_table ; int used ; int count ; int nreg ; }; union __anonunion_ldv_13204_128 { struct __anonstruct_ldv_13202_129 ldv_13202 ; struct callback_head rcu ; }; struct ctl_table_set; struct ctl_table_header { union __anonunion_ldv_13204_128 ldv_13204 ; struct completion *unregistering ; struct ctl_table *ctl_table_arg ; struct ctl_table_root *root ; struct ctl_table_set *set ; struct ctl_dir *parent ; struct ctl_node *node ; }; struct ctl_dir { struct ctl_table_header header ; struct rb_root root ; }; struct ctl_table_set { int (*is_seen)(struct ctl_table_set * ) ; struct ctl_dir dir ; }; struct ctl_table_root { struct ctl_table_set default_set ; struct ctl_table_set *(*lookup)(struct ctl_table_root * , struct nsproxy * ) ; int (*permissions)(struct ctl_table_header * , struct ctl_table * ) ; }; struct cred; typedef __u64 Elf64_Addr; typedef __u16 Elf64_Half; typedef __u32 Elf64_Word; typedef __u64 Elf64_Xword; struct elf64_sym { Elf64_Word st_name ; unsigned char st_info ; unsigned char st_other ; Elf64_Half st_shndx ; Elf64_Addr st_value ; Elf64_Xword st_size ; }; typedef struct elf64_sym Elf64_Sym; struct sock; struct kobject; enum kobj_ns_type { KOBJ_NS_TYPE_NONE = 0, KOBJ_NS_TYPE_NET = 1, KOBJ_NS_TYPES = 2 } ; struct kobj_ns_type_operations { enum kobj_ns_type type ; void *(*grab_current_ns)(void) ; void const *(*netlink_ns)(struct sock * ) ; void const *(*initial_ns)(void) ; void (*drop_ns)(void * ) ; }; struct attribute { char const *name ; umode_t mode ; bool ignore_lockdep ; struct lock_class_key *key ; struct lock_class_key skey ; }; struct attribute_group { char const *name ; umode_t (*is_visible)(struct kobject * , struct attribute * , int ) ; struct attribute **attrs ; }; struct bin_attribute { struct attribute attr ; size_t size ; void *private ; ssize_t (*read)(struct file * , struct kobject * , struct bin_attribute * , char * , loff_t , size_t ) ; ssize_t (*write)(struct file * , struct kobject * , struct bin_attribute * , char * , loff_t , size_t ) ; int (*mmap)(struct file * , struct kobject * , struct bin_attribute * , struct vm_area_struct * ) ; }; struct sysfs_ops { ssize_t (*show)(struct kobject * , struct attribute * , char * ) ; ssize_t (*store)(struct kobject * , struct attribute * , char const * , size_t ) ; void const *(*namespace)(struct kobject * , struct attribute const * ) ; }; struct sysfs_dirent; struct kref { atomic_t refcount ; }; struct kset; struct kobj_type; struct kobject { char const *name ; struct list_head entry ; struct kobject *parent ; struct kset *kset ; struct kobj_type *ktype ; struct sysfs_dirent *sd ; struct kref kref ; unsigned char state_initialized : 1 ; unsigned char state_in_sysfs : 1 ; unsigned char state_add_uevent_sent : 1 ; unsigned char state_remove_uevent_sent : 1 ; unsigned char uevent_suppress : 1 ; }; struct kobj_type { void (*release)(struct kobject * ) ; struct sysfs_ops const *sysfs_ops ; struct attribute **default_attrs ; struct kobj_ns_type_operations const *(*child_ns_type)(struct kobject * ) ; void const *(*namespace)(struct kobject * ) ; }; struct kobj_uevent_env { char *envp[32U] ; int envp_idx ; char buf[2048U] ; int buflen ; }; struct kset_uevent_ops { int (* const filter)(struct kset * , struct kobject * ) ; char const *(* const name)(struct kset * , struct kobject * ) ; int (* const uevent)(struct kset * , struct kobject * , struct kobj_uevent_env * ) ; }; struct kset { struct list_head list ; spinlock_t list_lock ; struct kobject kobj ; struct kset_uevent_ops const *uevent_ops ; }; struct kernel_param; struct kernel_param_ops { int (*set)(char const * , struct kernel_param const * ) ; int (*get)(char * , struct kernel_param const * ) ; void (*free)(void * ) ; }; struct kparam_string; struct kparam_array; union __anonunion_ldv_13982_134 { void *arg ; struct kparam_string const *str ; struct kparam_array const *arr ; }; struct kernel_param { char const *name ; struct kernel_param_ops const *ops ; u16 perm ; s16 level ; union __anonunion_ldv_13982_134 ldv_13982 ; }; struct kparam_string { unsigned int maxlen ; char *string ; }; struct kparam_array { unsigned int max ; unsigned int elemsize ; unsigned int *num ; struct kernel_param_ops const *ops ; void *elem ; }; struct static_key { atomic_t enabled ; }; struct tracepoint; struct tracepoint_func { void *func ; void *data ; }; struct tracepoint { char const *name ; struct static_key key ; void (*regfunc)(void) ; void (*unregfunc)(void) ; struct tracepoint_func *funcs ; }; struct kernel_symbol { unsigned long value ; char const *name ; }; struct mod_arch_specific { }; struct module_param_attrs; struct module_kobject { struct kobject kobj ; struct module *mod ; struct kobject *drivers_dir ; struct module_param_attrs *mp ; }; struct module_attribute { struct attribute attr ; ssize_t (*show)(struct module_attribute * , struct module_kobject * , char * ) ; ssize_t (*store)(struct module_attribute * , struct module_kobject * , char const * , size_t ) ; void (*setup)(struct module * , char const * ) ; int (*test)(struct module * ) ; void (*free)(struct module * ) ; }; struct exception_table_entry; enum module_state { MODULE_STATE_LIVE = 0, MODULE_STATE_COMING = 1, MODULE_STATE_GOING = 2 } ; struct module_ref { unsigned long incs ; unsigned long decs ; }; struct module_sect_attrs; struct module_notes_attrs; struct ftrace_event_call; struct module { enum module_state state ; struct list_head list ; char name[56U] ; struct module_kobject mkobj ; struct module_attribute *modinfo_attrs ; char const *version ; char const *srcversion ; struct kobject *holders_dir ; struct kernel_symbol const *syms ; unsigned long const *crcs ; unsigned int num_syms ; struct kernel_param *kp ; unsigned int num_kp ; unsigned int num_gpl_syms ; struct kernel_symbol const *gpl_syms ; unsigned long const *gpl_crcs ; struct kernel_symbol const *unused_syms ; unsigned long const *unused_crcs ; unsigned int num_unused_syms ; unsigned int num_unused_gpl_syms ; struct kernel_symbol const *unused_gpl_syms ; unsigned long const *unused_gpl_crcs ; bool sig_ok ; struct kernel_symbol const *gpl_future_syms ; unsigned long const *gpl_future_crcs ; unsigned int num_gpl_future_syms ; unsigned int num_exentries ; struct exception_table_entry *extable ; int (*init)(void) ; void *module_init ; void *module_core ; unsigned int init_size ; unsigned int core_size ; unsigned int init_text_size ; unsigned int core_text_size ; unsigned int init_ro_size ; unsigned int core_ro_size ; struct mod_arch_specific arch ; unsigned int taints ; unsigned int num_bugs ; struct list_head bug_list ; struct bug_entry *bug_table ; Elf64_Sym *symtab ; Elf64_Sym *core_symtab ; unsigned int num_symtab ; unsigned int core_num_syms ; char *strtab ; char *core_strtab ; struct module_sect_attrs *sect_attrs ; struct module_notes_attrs *notes_attrs ; char *args ; void *percpu ; unsigned int percpu_size ; unsigned int num_tracepoints ; struct tracepoint * const *tracepoints_ptrs ; unsigned int num_trace_bprintk_fmt ; char const **trace_bprintk_fmt_start ; struct ftrace_event_call **trace_events ; unsigned int num_trace_events ; struct list_head source_list ; struct list_head target_list ; struct task_struct *waiter ; void (*exit)(void) ; struct module_ref *refptr ; ctor_fn_t (**ctors)(void) ; unsigned int num_ctors ; }; enum irqreturn { IRQ_NONE = 0, IRQ_HANDLED = 1, IRQ_WAKE_THREAD = 2 } ; typedef enum irqreturn irqreturn_t; struct proc_dir_entry; struct exception_table_entry { int insn ; int fixup ; }; struct timerqueue_node { struct rb_node node ; ktime_t expires ; }; struct timerqueue_head { struct rb_root head ; struct timerqueue_node *next ; }; struct hrtimer_clock_base; struct hrtimer_cpu_base; enum hrtimer_restart { HRTIMER_NORESTART = 0, HRTIMER_RESTART = 1 } ; struct hrtimer { struct timerqueue_node node ; ktime_t _softexpires ; enum hrtimer_restart (*function)(struct hrtimer * ) ; struct hrtimer_clock_base *base ; unsigned long state ; int start_pid ; void *start_site ; char start_comm[16U] ; }; struct hrtimer_clock_base { struct hrtimer_cpu_base *cpu_base ; int index ; clockid_t clockid ; struct timerqueue_head active ; ktime_t resolution ; ktime_t (*get_time)(void) ; ktime_t softirq_time ; ktime_t offset ; }; struct hrtimer_cpu_base { raw_spinlock_t lock ; unsigned int active_bases ; unsigned int clock_was_set ; ktime_t expires_next ; int hres_active ; int hang_detected ; unsigned long nr_events ; unsigned long nr_retries ; unsigned long nr_hangs ; ktime_t max_hang_time ; struct hrtimer_clock_base clock_base[3U] ; }; typedef unsigned long kernel_ulong_t; struct pci_device_id { __u32 vendor ; __u32 device ; __u32 subvendor ; __u32 subdevice ; __u32 class ; __u32 class_mask ; kernel_ulong_t driver_data ; }; struct acpi_device_id { __u8 id[16U] ; kernel_ulong_t driver_data ; }; struct of_device_id { char name[32U] ; char type[32U] ; char compatible[128U] ; void const *data ; }; struct klist_node; struct klist_node { void *n_klist ; struct list_head n_node ; struct kref n_ref ; }; struct dma_map_ops; struct dev_archdata { struct dma_map_ops *dma_ops ; void *iommu ; }; struct device_private; struct device_driver; struct driver_private; struct class; struct subsys_private; struct bus_type; struct device_node; struct iommu_ops; struct iommu_group; struct bus_attribute { struct attribute attr ; ssize_t (*show)(struct bus_type * , char * ) ; ssize_t (*store)(struct bus_type * , char const * , size_t ) ; }; struct device_attribute; struct driver_attribute; struct bus_type { char const *name ; char const *dev_name ; struct device *dev_root ; struct bus_attribute *bus_attrs ; struct device_attribute *dev_attrs ; struct driver_attribute *drv_attrs ; int (*match)(struct device * , struct device_driver * ) ; int (*uevent)(struct device * , struct kobj_uevent_env * ) ; int (*probe)(struct device * ) ; int (*remove)(struct device * ) ; void (*shutdown)(struct device * ) ; int (*suspend)(struct device * , pm_message_t ) ; int (*resume)(struct device * ) ; struct dev_pm_ops const *pm ; struct iommu_ops *iommu_ops ; struct subsys_private *p ; }; struct device_type; struct device_driver { char const *name ; struct bus_type *bus ; struct module *owner ; char const *mod_name ; bool suppress_bind_attrs ; struct of_device_id const *of_match_table ; struct acpi_device_id const *acpi_match_table ; int (*probe)(struct device * ) ; int (*remove)(struct device * ) ; void (*shutdown)(struct device * ) ; int (*suspend)(struct device * , pm_message_t ) ; int (*resume)(struct device * ) ; struct attribute_group const **groups ; struct dev_pm_ops const *pm ; struct driver_private *p ; }; struct driver_attribute { struct attribute attr ; ssize_t (*show)(struct device_driver * , char * ) ; ssize_t (*store)(struct device_driver * , char const * , size_t ) ; }; struct class_attribute; struct class { char const *name ; struct module *owner ; struct class_attribute *class_attrs ; struct device_attribute *dev_attrs ; struct bin_attribute *dev_bin_attrs ; struct kobject *dev_kobj ; int (*dev_uevent)(struct device * , struct kobj_uevent_env * ) ; char *(*devnode)(struct device * , umode_t * ) ; void (*class_release)(struct class * ) ; void (*dev_release)(struct device * ) ; int (*suspend)(struct device * , pm_message_t ) ; int (*resume)(struct device * ) ; struct kobj_ns_type_operations const *ns_type ; void const *(*namespace)(struct device * ) ; struct dev_pm_ops const *pm ; struct subsys_private *p ; }; struct class_attribute { struct attribute attr ; ssize_t (*show)(struct class * , struct class_attribute * , char * ) ; ssize_t (*store)(struct class * , struct class_attribute * , char const * , size_t ) ; void const *(*namespace)(struct class * , struct class_attribute const * ) ; }; struct device_type { char const *name ; struct attribute_group const **groups ; int (*uevent)(struct device * , struct kobj_uevent_env * ) ; char *(*devnode)(struct device * , umode_t * ) ; void (*release)(struct device * ) ; struct dev_pm_ops const *pm ; }; struct device_attribute { struct attribute attr ; ssize_t (*show)(struct device * , struct device_attribute * , char * ) ; ssize_t (*store)(struct device * , struct device_attribute * , char const * , size_t ) ; }; struct device_dma_parameters { unsigned int max_segment_size ; unsigned long segment_boundary_mask ; }; struct acpi_dev_node { void *handle ; }; struct dma_coherent_mem; struct device { struct device *parent ; struct device_private *p ; struct kobject kobj ; char const *init_name ; struct device_type const *type ; struct mutex mutex ; struct bus_type *bus ; struct device_driver *driver ; void *platform_data ; struct dev_pm_info power ; struct dev_pm_domain *pm_domain ; int numa_node ; u64 *dma_mask ; u64 coherent_dma_mask ; struct device_dma_parameters *dma_parms ; struct list_head dma_pools ; struct dma_coherent_mem *dma_mem ; struct dev_archdata archdata ; struct device_node *of_node ; struct acpi_dev_node acpi_node ; dev_t devt ; u32 id ; spinlock_t devres_lock ; struct list_head devres_head ; struct klist_node knode_class ; struct class *class ; struct attribute_group const **groups ; void (*release)(struct device * ) ; struct iommu_group *iommu_group ; }; struct wakeup_source { char const *name ; struct list_head entry ; spinlock_t lock ; struct timer_list timer ; unsigned long timer_expires ; ktime_t total_time ; ktime_t max_time ; ktime_t last_time ; ktime_t start_prevent_time ; ktime_t prevent_sleep_time ; unsigned long event_count ; unsigned long active_count ; unsigned long relax_count ; unsigned long expire_count ; unsigned long wakeup_count ; bool active ; bool autosleep_enabled ; }; struct hotplug_slot; struct pci_slot { struct pci_bus *bus ; struct list_head list ; struct hotplug_slot *hotplug ; unsigned char number ; struct kobject kobj ; }; typedef int pci_power_t; typedef unsigned int pci_channel_state_t; enum pci_channel_state { pci_channel_io_normal = 1, pci_channel_io_frozen = 2, pci_channel_io_perm_failure = 3 } ; typedef unsigned short pci_dev_flags_t; typedef unsigned short pci_bus_flags_t; struct pcie_link_state; struct pci_vpd; struct pci_sriov; struct pci_ats; struct pci_driver; union __anonunion_ldv_17387_137 { struct pci_sriov *sriov ; struct pci_dev *physfn ; }; struct pci_dev { struct list_head bus_list ; struct pci_bus *bus ; struct pci_bus *subordinate ; void *sysdata ; struct proc_dir_entry *procent ; struct pci_slot *slot ; unsigned int devfn ; unsigned short vendor ; unsigned short device ; unsigned short subsystem_vendor ; unsigned short subsystem_device ; unsigned int class ; u8 revision ; u8 hdr_type ; u8 pcie_cap ; unsigned char pcie_mpss : 3 ; u8 rom_base_reg ; u8 pin ; u16 pcie_flags_reg ; struct pci_driver *driver ; u64 dma_mask ; struct device_dma_parameters dma_parms ; pci_power_t current_state ; int pm_cap ; unsigned char pme_support : 5 ; unsigned char pme_interrupt : 1 ; unsigned char pme_poll : 1 ; unsigned char d1_support : 1 ; unsigned char d2_support : 1 ; unsigned char no_d1d2 : 1 ; unsigned char no_d3cold : 1 ; unsigned char d3cold_allowed : 1 ; unsigned char mmio_always_on : 1 ; unsigned char wakeup_prepared : 1 ; unsigned char runtime_d3cold : 1 ; unsigned int d3_delay ; unsigned int d3cold_delay ; struct pcie_link_state *link_state ; pci_channel_state_t error_state ; struct device dev ; int cfg_size ; unsigned int irq ; struct resource resource[17U] ; unsigned char transparent : 1 ; unsigned char multifunction : 1 ; unsigned char is_added : 1 ; unsigned char is_busmaster : 1 ; unsigned char no_msi : 1 ; unsigned char block_cfg_access : 1 ; unsigned char broken_parity_status : 1 ; unsigned char irq_reroute_variant : 2 ; unsigned char msi_enabled : 1 ; unsigned char msix_enabled : 1 ; unsigned char ari_enabled : 1 ; unsigned char is_managed : 1 ; unsigned char is_pcie : 1 ; unsigned char needs_freset : 1 ; unsigned char state_saved : 1 ; unsigned char is_physfn : 1 ; unsigned char is_virtfn : 1 ; unsigned char reset_fn : 1 ; unsigned char is_hotplug_bridge : 1 ; unsigned char __aer_firmware_first_valid : 1 ; unsigned char __aer_firmware_first : 1 ; unsigned char broken_intx_masking : 1 ; unsigned char io_window_1k : 1 ; pci_dev_flags_t dev_flags ; atomic_t enable_cnt ; u32 saved_config_space[16U] ; struct hlist_head saved_cap_space ; struct bin_attribute *rom_attr ; int rom_attr_enabled ; struct bin_attribute *res_attr[17U] ; struct bin_attribute *res_attr_wc[17U] ; struct list_head msi_list ; struct kset *msi_kset ; struct pci_vpd *vpd ; union __anonunion_ldv_17387_137 ldv_17387 ; struct pci_ats *ats ; phys_addr_t rom ; size_t romlen ; }; struct pci_ops; struct pci_bus { struct list_head node ; struct pci_bus *parent ; struct list_head children ; struct list_head devices ; struct pci_dev *self ; struct list_head slots ; struct resource *resource[4U] ; struct list_head resources ; struct resource busn_res ; struct pci_ops *ops ; void *sysdata ; struct proc_dir_entry *procdir ; unsigned char number ; unsigned char primary ; unsigned char max_bus_speed ; unsigned char cur_bus_speed ; char name[48U] ; unsigned short bridge_ctl ; pci_bus_flags_t bus_flags ; struct device *bridge ; struct device dev ; struct bin_attribute *legacy_io ; struct bin_attribute *legacy_mem ; unsigned char is_added : 1 ; }; struct pci_ops { int (*read)(struct pci_bus * , unsigned int , int , int , u32 * ) ; int (*write)(struct pci_bus * , unsigned int , int , int , u32 ) ; }; struct pci_dynids { spinlock_t lock ; struct list_head list ; }; typedef unsigned int pci_ers_result_t; struct pci_error_handlers { pci_ers_result_t (*error_detected)(struct pci_dev * , enum pci_channel_state ) ; pci_ers_result_t (*mmio_enabled)(struct pci_dev * ) ; pci_ers_result_t (*link_reset)(struct pci_dev * ) ; pci_ers_result_t (*slot_reset)(struct pci_dev * ) ; void (*resume)(struct pci_dev * ) ; }; struct pci_driver { struct list_head node ; char const *name ; struct pci_device_id const *id_table ; int (*probe)(struct pci_dev * , struct pci_device_id const * ) ; void (*remove)(struct pci_dev * ) ; int (*suspend)(struct pci_dev * , pm_message_t ) ; int (*suspend_late)(struct pci_dev * , pm_message_t ) ; int (*resume_early)(struct pci_dev * ) ; int (*resume)(struct pci_dev * ) ; void (*shutdown)(struct pci_dev * ) ; int (*sriov_configure)(struct pci_dev * , int ) ; struct pci_error_handlers const *err_handler ; struct device_driver driver ; struct pci_dynids dynids ; }; struct scatterlist { unsigned long sg_magic ; unsigned long page_link ; unsigned int offset ; unsigned int length ; dma_addr_t dma_address ; unsigned int dma_length ; }; struct msix_entry { u32 vector ; u16 entry ; }; struct inode; struct arch_uprobe_task { unsigned long saved_scratch_register ; unsigned int saved_trap_nr ; unsigned int saved_tf ; }; enum uprobe_task_state { UTASK_RUNNING = 0, UTASK_SSTEP = 1, UTASK_SSTEP_ACK = 2, UTASK_SSTEP_TRAPPED = 3 } ; struct uprobe; struct uprobe_task { enum uprobe_task_state state ; struct arch_uprobe_task autask ; struct uprobe *active_uprobe ; unsigned long xol_vaddr ; unsigned long vaddr ; }; struct xol_area { wait_queue_head_t wq ; atomic_t slot_count ; unsigned long *bitmap ; struct page *page ; unsigned long vaddr ; }; struct uprobes_state { struct xol_area *xol_area ; }; struct address_space; union __anonunion_ldv_18418_139 { unsigned long index ; void *freelist ; bool pfmemalloc ; }; struct __anonstruct_ldv_18428_143 { unsigned short inuse ; unsigned short objects : 15 ; unsigned char frozen : 1 ; }; union __anonunion_ldv_18430_142 { atomic_t _mapcount ; struct __anonstruct_ldv_18428_143 ldv_18428 ; int units ; }; struct __anonstruct_ldv_18432_141 { union __anonunion_ldv_18430_142 ldv_18430 ; atomic_t _count ; }; union __anonunion_ldv_18433_140 { unsigned long counters ; struct __anonstruct_ldv_18432_141 ldv_18432 ; }; struct __anonstruct_ldv_18434_138 { union __anonunion_ldv_18418_139 ldv_18418 ; union __anonunion_ldv_18433_140 ldv_18433 ; }; struct __anonstruct_ldv_18441_145 { struct page *next ; int pages ; int pobjects ; }; struct slab; union __anonunion_ldv_18445_144 { struct list_head lru ; struct __anonstruct_ldv_18441_145 ldv_18441 ; struct list_head list ; struct slab *slab_page ; }; union __anonunion_ldv_18450_146 { unsigned long private ; struct kmem_cache *slab_cache ; struct page *first_page ; }; struct page { unsigned long flags ; struct address_space *mapping ; struct __anonstruct_ldv_18434_138 ldv_18434 ; union __anonunion_ldv_18445_144 ldv_18445 ; union __anonunion_ldv_18450_146 ldv_18450 ; unsigned long debug_flags ; int _last_nid ; }; struct page_frag { struct page *page ; __u32 offset ; __u32 size ; }; struct __anonstruct_linear_148 { struct rb_node rb ; unsigned long rb_subtree_last ; }; union __anonunion_shared_147 { struct __anonstruct_linear_148 linear ; struct list_head nonlinear ; }; struct anon_vma; struct vm_operations_struct; struct mempolicy; struct vm_area_struct { unsigned long vm_start ; unsigned long vm_end ; struct vm_area_struct *vm_next ; struct vm_area_struct *vm_prev ; struct rb_node vm_rb ; unsigned long rb_subtree_gap ; struct mm_struct *vm_mm ; pgprot_t vm_page_prot ; unsigned long vm_flags ; union __anonunion_shared_147 shared ; struct list_head anon_vma_chain ; struct anon_vma *anon_vma ; struct vm_operations_struct const *vm_ops ; unsigned long vm_pgoff ; struct file *vm_file ; void *vm_private_data ; struct mempolicy *vm_policy ; }; struct core_thread { struct task_struct *task ; struct core_thread *next ; }; struct core_state { atomic_t nr_threads ; struct core_thread dumper ; struct completion startup ; }; struct mm_rss_stat { atomic_long_t count[3U] ; }; struct linux_binfmt; struct mmu_notifier_mm; struct mm_struct { struct vm_area_struct *mmap ; struct rb_root mm_rb ; struct vm_area_struct *mmap_cache ; unsigned long (*get_unmapped_area)(struct file * , unsigned long , unsigned long , unsigned long , unsigned long ) ; void (*unmap_area)(struct mm_struct * , unsigned long ) ; unsigned long mmap_base ; unsigned long task_size ; unsigned long cached_hole_size ; unsigned long free_area_cache ; unsigned long highest_vm_end ; pgd_t *pgd ; atomic_t mm_users ; atomic_t mm_count ; int map_count ; spinlock_t page_table_lock ; struct rw_semaphore mmap_sem ; struct list_head mmlist ; unsigned long hiwater_rss ; unsigned long hiwater_vm ; unsigned long total_vm ; unsigned long locked_vm ; unsigned long pinned_vm ; unsigned long shared_vm ; unsigned long exec_vm ; unsigned long stack_vm ; unsigned long def_flags ; unsigned long nr_ptes ; unsigned long start_code ; unsigned long end_code ; unsigned long start_data ; unsigned long end_data ; unsigned long start_brk ; unsigned long brk ; unsigned long start_stack ; unsigned long arg_start ; unsigned long arg_end ; unsigned long env_start ; unsigned long env_end ; unsigned long saved_auxv[44U] ; struct mm_rss_stat rss_stat ; struct linux_binfmt *binfmt ; cpumask_var_t cpu_vm_mask_var ; mm_context_t context ; unsigned long flags ; struct core_state *core_state ; spinlock_t ioctx_lock ; struct hlist_head ioctx_list ; struct task_struct *owner ; struct file *exe_file ; struct mmu_notifier_mm *mmu_notifier_mm ; pgtable_t pmd_huge_pte ; struct cpumask cpumask_allocation ; unsigned long numa_next_scan ; unsigned long numa_next_reset ; unsigned long numa_scan_offset ; int numa_scan_seq ; int first_nid ; struct uprobes_state uprobes_state ; }; struct shrink_control { gfp_t gfp_mask ; unsigned long nr_to_scan ; }; struct shrinker { int (*shrink)(struct shrinker * , struct shrink_control * ) ; int seeks ; long batch ; struct list_head list ; atomic_long_t nr_in_batch ; }; struct file_ra_state; struct user_struct; struct writeback_control; struct vm_fault { unsigned int flags ; unsigned long pgoff ; void *virtual_address ; struct page *page ; }; struct vm_operations_struct { void (*open)(struct vm_area_struct * ) ; void (*close)(struct vm_area_struct * ) ; int (*fault)(struct vm_area_struct * , struct vm_fault * ) ; int (*page_mkwrite)(struct vm_area_struct * , struct vm_fault * ) ; int (*access)(struct vm_area_struct * , unsigned long , void * , int , int ) ; int (*set_policy)(struct vm_area_struct * , struct mempolicy * ) ; struct mempolicy *(*get_policy)(struct vm_area_struct * , unsigned long ) ; int (*migrate)(struct vm_area_struct * , nodemask_t const * , nodemask_t const * , unsigned long ) ; int (*remap_pages)(struct vm_area_struct * , unsigned long , unsigned long , unsigned long ) ; }; struct mem_cgroup; struct __anonstruct_ldv_21209_150 { struct mem_cgroup *memcg ; struct list_head list ; struct kmem_cache *root_cache ; bool dead ; atomic_t nr_pages ; struct work_struct destroy ; }; union __anonunion_ldv_21210_149 { struct kmem_cache *memcg_caches[0U] ; struct __anonstruct_ldv_21209_150 ldv_21209 ; }; struct memcg_cache_params { bool is_root_cache ; union __anonunion_ldv_21210_149 ldv_21210 ; }; struct kmem_cache_cpu { void **freelist ; unsigned long tid ; struct page *page ; struct page *partial ; unsigned int stat[26U] ; }; struct kmem_cache_node { spinlock_t list_lock ; unsigned long nr_partial ; struct list_head partial ; atomic_long_t nr_slabs ; atomic_long_t total_objects ; struct list_head full ; }; struct kmem_cache_order_objects { unsigned long x ; }; struct kmem_cache { struct kmem_cache_cpu *cpu_slab ; unsigned long flags ; unsigned long min_partial ; int size ; int object_size ; int offset ; int cpu_partial ; struct kmem_cache_order_objects oo ; struct kmem_cache_order_objects max ; struct kmem_cache_order_objects min ; gfp_t allocflags ; int refcount ; void (*ctor)(void * ) ; int inuse ; int align ; int reserved ; char const *name ; struct list_head list ; struct kobject kobj ; struct memcg_cache_params *memcg_params ; int max_attr_size ; int remote_node_defrag_ratio ; struct kmem_cache_node *node[1024U] ; }; struct pci_sysdata { int domain ; int node ; void *iommu ; }; struct dma_attrs { unsigned long flags[1U] ; }; enum dma_data_direction { DMA_BIDIRECTIONAL = 0, DMA_TO_DEVICE = 1, DMA_FROM_DEVICE = 2, DMA_NONE = 3 } ; struct sg_table { struct scatterlist *sgl ; unsigned int nents ; unsigned int orig_nents ; }; struct dma_map_ops { void *(*alloc)(struct device * , size_t , dma_addr_t * , gfp_t , struct dma_attrs * ) ; void (*free)(struct device * , size_t , void * , dma_addr_t , struct dma_attrs * ) ; int (*mmap)(struct device * , struct vm_area_struct * , void * , dma_addr_t , size_t , struct dma_attrs * ) ; int (*get_sgtable)(struct device * , struct sg_table * , void * , dma_addr_t , size_t , struct dma_attrs * ) ; dma_addr_t (*map_page)(struct device * , struct page * , unsigned long , size_t , enum dma_data_direction , struct dma_attrs * ) ; void (*unmap_page)(struct device * , dma_addr_t , size_t , enum dma_data_direction , struct dma_attrs * ) ; int (*map_sg)(struct device * , struct scatterlist * , int , enum dma_data_direction , struct dma_attrs * ) ; void (*unmap_sg)(struct device * , struct scatterlist * , int , enum dma_data_direction , struct dma_attrs * ) ; void (*sync_single_for_cpu)(struct device * , dma_addr_t , size_t , enum dma_data_direction ) ; void (*sync_single_for_device)(struct device * , dma_addr_t , size_t , enum dma_data_direction ) ; void (*sync_sg_for_cpu)(struct device * , struct scatterlist * , int , enum dma_data_direction ) ; void (*sync_sg_for_device)(struct device * , struct scatterlist * , int , enum dma_data_direction ) ; int (*mapping_error)(struct device * , dma_addr_t ) ; int (*dma_supported)(struct device * , u64 ) ; int (*set_dma_mask)(struct device * , u64 ) ; int is_phys ; }; struct hlist_bl_node; struct hlist_bl_head { struct hlist_bl_node *first ; }; struct hlist_bl_node { struct hlist_bl_node *next ; struct hlist_bl_node **pprev ; }; struct nameidata; struct path; struct vfsmount; struct __anonstruct_ldv_22869_152 { u32 hash ; u32 len ; }; union __anonunion_ldv_22871_151 { struct __anonstruct_ldv_22869_152 ldv_22869 ; u64 hash_len ; }; struct qstr { union __anonunion_ldv_22871_151 ldv_22871 ; unsigned char const *name ; }; struct dentry_operations; struct super_block; union __anonunion_d_u_153 { struct list_head d_child ; struct callback_head d_rcu ; }; struct dentry { unsigned int d_flags ; seqcount_t d_seq ; struct hlist_bl_node d_hash ; struct dentry *d_parent ; struct qstr d_name ; struct inode *d_inode ; unsigned char d_iname[32U] ; unsigned int d_count ; spinlock_t d_lock ; struct dentry_operations const *d_op ; struct super_block *d_sb ; unsigned long d_time ; void *d_fsdata ; struct list_head d_lru ; union __anonunion_d_u_153 d_u ; struct list_head d_subdirs ; struct hlist_node d_alias ; }; struct dentry_operations { int (*d_revalidate)(struct dentry * , unsigned int ) ; int (*d_hash)(struct dentry const * , struct inode const * , struct qstr * ) ; int (*d_compare)(struct dentry const * , struct inode const * , struct dentry const * , struct inode const * , unsigned int , char const * , struct qstr const * ) ; int (*d_delete)(struct dentry const * ) ; void (*d_release)(struct dentry * ) ; void (*d_prune)(struct dentry * ) ; void (*d_iput)(struct dentry * , struct inode * ) ; char *(*d_dname)(struct dentry * , char * , int ) ; struct vfsmount *(*d_automount)(struct path * ) ; int (*d_manage)(struct dentry * , bool ) ; }; struct path { struct vfsmount *mnt ; struct dentry *dentry ; }; struct radix_tree_node; struct radix_tree_root { unsigned int height ; gfp_t gfp_mask ; struct radix_tree_node *rnode ; }; enum pid_type { PIDTYPE_PID = 0, PIDTYPE_PGID = 1, PIDTYPE_SID = 2, PIDTYPE_MAX = 3 } ; struct pid_namespace; struct upid { int nr ; struct pid_namespace *ns ; struct hlist_node pid_chain ; }; struct pid { atomic_t count ; unsigned int level ; struct hlist_head tasks[3U] ; struct callback_head rcu ; struct upid numbers[1U] ; }; struct pid_link { struct hlist_node node ; struct pid *pid ; }; struct kernel_cap_struct { __u32 cap[2U] ; }; typedef struct kernel_cap_struct kernel_cap_t; struct fiemap_extent { __u64 fe_logical ; __u64 fe_physical ; __u64 fe_length ; __u64 fe_reserved64[2U] ; __u32 fe_flags ; __u32 fe_reserved[3U] ; }; enum migrate_mode { MIGRATE_ASYNC = 0, MIGRATE_SYNC_LIGHT = 1, MIGRATE_SYNC = 2 } ; struct bio_set; struct bio; struct bio_integrity_payload; struct block_device; struct io_context; struct cgroup_subsys_state; typedef void bio_end_io_t(struct bio * , int ); struct bio_vec { struct page *bv_page ; unsigned int bv_len ; unsigned int bv_offset ; }; struct bio { sector_t bi_sector ; struct bio *bi_next ; struct block_device *bi_bdev ; unsigned long bi_flags ; unsigned long bi_rw ; unsigned short bi_vcnt ; unsigned short bi_idx ; unsigned int bi_phys_segments ; unsigned int bi_size ; unsigned int bi_seg_front_size ; unsigned int bi_seg_back_size ; bio_end_io_t *bi_end_io ; void *bi_private ; struct io_context *bi_ioc ; struct cgroup_subsys_state *bi_css ; struct bio_integrity_payload *bi_integrity ; unsigned int bi_max_vecs ; atomic_t bi_cnt ; struct bio_vec *bi_io_vec ; struct bio_set *bi_pool ; struct bio_vec bi_inline_vecs[0U] ; }; struct export_operations; struct hd_geometry; struct iovec; struct kiocb; struct pipe_inode_info; struct poll_table_struct; struct kstatfs; struct swap_info_struct; struct iattr { unsigned int ia_valid ; umode_t ia_mode ; kuid_t ia_uid ; kgid_t ia_gid ; loff_t ia_size ; struct timespec ia_atime ; struct timespec ia_mtime ; struct timespec ia_ctime ; struct file *ia_file ; }; struct percpu_counter { raw_spinlock_t lock ; s64 count ; struct list_head list ; s32 *counters ; }; struct fs_disk_quota { __s8 d_version ; __s8 d_flags ; __u16 d_fieldmask ; __u32 d_id ; __u64 d_blk_hardlimit ; __u64 d_blk_softlimit ; __u64 d_ino_hardlimit ; __u64 d_ino_softlimit ; __u64 d_bcount ; __u64 d_icount ; __s32 d_itimer ; __s32 d_btimer ; __u16 d_iwarns ; __u16 d_bwarns ; __s32 d_padding2 ; __u64 d_rtb_hardlimit ; __u64 d_rtb_softlimit ; __u64 d_rtbcount ; __s32 d_rtbtimer ; __u16 d_rtbwarns ; __s16 d_padding3 ; char d_padding4[8U] ; }; struct fs_qfilestat { __u64 qfs_ino ; __u64 qfs_nblks ; __u32 qfs_nextents ; }; typedef struct fs_qfilestat fs_qfilestat_t; struct fs_quota_stat { __s8 qs_version ; __u16 qs_flags ; __s8 qs_pad ; fs_qfilestat_t qs_uquota ; fs_qfilestat_t qs_gquota ; __u32 qs_incoredqs ; __s32 qs_btimelimit ; __s32 qs_itimelimit ; __s32 qs_rtbtimelimit ; __u16 qs_bwarnlimit ; __u16 qs_iwarnlimit ; }; struct dquot; typedef __kernel_uid32_t projid_t; typedef projid_t kprojid_t; struct if_dqinfo { __u64 dqi_bgrace ; __u64 dqi_igrace ; __u32 dqi_flags ; __u32 dqi_valid ; }; enum quota_type { USRQUOTA = 0, GRPQUOTA = 1, PRJQUOTA = 2 } ; typedef long long qsize_t; union __anonunion_ldv_23875_155 { kuid_t uid ; kgid_t gid ; kprojid_t projid ; }; struct kqid { union __anonunion_ldv_23875_155 ldv_23875 ; enum quota_type type ; }; struct mem_dqblk { qsize_t dqb_bhardlimit ; qsize_t dqb_bsoftlimit ; qsize_t dqb_curspace ; qsize_t dqb_rsvspace ; qsize_t dqb_ihardlimit ; qsize_t dqb_isoftlimit ; qsize_t dqb_curinodes ; time_t dqb_btime ; time_t dqb_itime ; }; struct quota_format_type; struct mem_dqinfo { struct quota_format_type *dqi_format ; int dqi_fmt_id ; struct list_head dqi_dirty_list ; unsigned long dqi_flags ; unsigned int dqi_bgrace ; unsigned int dqi_igrace ; qsize_t dqi_maxblimit ; qsize_t dqi_maxilimit ; void *dqi_priv ; }; struct dquot { struct hlist_node dq_hash ; struct list_head dq_inuse ; struct list_head dq_free ; struct list_head dq_dirty ; struct mutex dq_lock ; atomic_t dq_count ; wait_queue_head_t dq_wait_unused ; struct super_block *dq_sb ; struct kqid dq_id ; loff_t dq_off ; unsigned long dq_flags ; struct mem_dqblk dq_dqb ; }; struct quota_format_ops { int (*check_quota_file)(struct super_block * , int ) ; int (*read_file_info)(struct super_block * , int ) ; int (*write_file_info)(struct super_block * , int ) ; int (*free_file_info)(struct super_block * , int ) ; int (*read_dqblk)(struct dquot * ) ; int (*commit_dqblk)(struct dquot * ) ; int (*release_dqblk)(struct dquot * ) ; }; struct dquot_operations { int (*write_dquot)(struct dquot * ) ; struct dquot *(*alloc_dquot)(struct super_block * , int ) ; void (*destroy_dquot)(struct dquot * ) ; int (*acquire_dquot)(struct dquot * ) ; int (*release_dquot)(struct dquot * ) ; int (*mark_dirty)(struct dquot * ) ; int (*write_info)(struct super_block * , int ) ; qsize_t *(*get_reserved_space)(struct inode * ) ; }; struct quotactl_ops { int (*quota_on)(struct super_block * , int , int , struct path * ) ; int (*quota_on_meta)(struct super_block * , int , int ) ; int (*quota_off)(struct super_block * , int ) ; int (*quota_sync)(struct super_block * , int ) ; int (*get_info)(struct super_block * , int , struct if_dqinfo * ) ; int (*set_info)(struct super_block * , int , struct if_dqinfo * ) ; int (*get_dqblk)(struct super_block * , struct kqid , struct fs_disk_quota * ) ; int (*set_dqblk)(struct super_block * , struct kqid , struct fs_disk_quota * ) ; int (*get_xstate)(struct super_block * , struct fs_quota_stat * ) ; int (*set_xstate)(struct super_block * , unsigned int , int ) ; }; struct quota_format_type { int qf_fmt_id ; struct quota_format_ops const *qf_ops ; struct module *qf_owner ; struct quota_format_type *qf_next ; }; struct quota_info { unsigned int flags ; struct mutex dqio_mutex ; struct mutex dqonoff_mutex ; struct rw_semaphore dqptr_sem ; struct inode *files[2U] ; struct mem_dqinfo info[2U] ; struct quota_format_ops const *ops[2U] ; }; union __anonunion_arg_157 { char *buf ; void *data ; }; struct __anonstruct_read_descriptor_t_156 { size_t written ; size_t count ; union __anonunion_arg_157 arg ; int error ; }; typedef struct __anonstruct_read_descriptor_t_156 read_descriptor_t; struct address_space_operations { int (*writepage)(struct page * , struct writeback_control * ) ; int (*readpage)(struct file * , struct page * ) ; int (*writepages)(struct address_space * , struct writeback_control * ) ; int (*set_page_dirty)(struct page * ) ; int (*readpages)(struct file * , struct address_space * , struct list_head * , unsigned int ) ; int (*write_begin)(struct file * , struct address_space * , loff_t , unsigned int , unsigned int , struct page ** , void ** ) ; int (*write_end)(struct file * , struct address_space * , loff_t , unsigned int , unsigned int , struct page * , void * ) ; sector_t (*bmap)(struct address_space * , sector_t ) ; void (*invalidatepage)(struct page * , unsigned long ) ; int (*releasepage)(struct page * , gfp_t ) ; void (*freepage)(struct page * ) ; ssize_t (*direct_IO)(int , struct kiocb * , struct iovec const * , loff_t , unsigned long ) ; int (*get_xip_mem)(struct address_space * , unsigned long , int , void ** , unsigned long * ) ; int (*migratepage)(struct address_space * , struct page * , struct page * , enum migrate_mode ) ; int (*launder_page)(struct page * ) ; int (*is_partially_uptodate)(struct page * , read_descriptor_t * , unsigned long ) ; int (*error_remove_page)(struct address_space * , struct page * ) ; int (*swap_activate)(struct swap_info_struct * , struct file * , sector_t * ) ; void (*swap_deactivate)(struct file * ) ; }; struct backing_dev_info; struct address_space { struct inode *host ; struct radix_tree_root page_tree ; spinlock_t tree_lock ; unsigned int i_mmap_writable ; struct rb_root i_mmap ; struct list_head i_mmap_nonlinear ; struct mutex i_mmap_mutex ; unsigned long nrpages ; unsigned long writeback_index ; struct address_space_operations const *a_ops ; unsigned long flags ; struct backing_dev_info *backing_dev_info ; spinlock_t private_lock ; struct list_head private_list ; void *private_data ; }; struct request_queue; struct hd_struct; struct gendisk; struct block_device { dev_t bd_dev ; int bd_openers ; struct inode *bd_inode ; struct super_block *bd_super ; struct mutex bd_mutex ; struct list_head bd_inodes ; void *bd_claiming ; void *bd_holder ; int bd_holders ; bool bd_write_holder ; struct list_head bd_holder_disks ; struct block_device *bd_contains ; unsigned int bd_block_size ; struct hd_struct *bd_part ; unsigned int bd_part_count ; int bd_invalidated ; struct gendisk *bd_disk ; struct request_queue *bd_queue ; struct list_head bd_list ; unsigned long bd_private ; int bd_fsfreeze_count ; struct mutex bd_fsfreeze_mutex ; }; struct posix_acl; struct inode_operations; union __anonunion_ldv_24309_158 { unsigned int const i_nlink ; unsigned int __i_nlink ; }; union __anonunion_ldv_24329_159 { struct hlist_head i_dentry ; struct callback_head i_rcu ; }; struct file_lock; struct cdev; union __anonunion_ldv_24345_160 { struct pipe_inode_info *i_pipe ; struct block_device *i_bdev ; struct cdev *i_cdev ; }; struct inode { umode_t i_mode ; unsigned short i_opflags ; kuid_t i_uid ; kgid_t i_gid ; unsigned int i_flags ; struct posix_acl *i_acl ; struct posix_acl *i_default_acl ; struct inode_operations const *i_op ; struct super_block *i_sb ; struct address_space *i_mapping ; void *i_security ; unsigned long i_ino ; union __anonunion_ldv_24309_158 ldv_24309 ; dev_t i_rdev ; loff_t i_size ; struct timespec i_atime ; struct timespec i_mtime ; struct timespec i_ctime ; spinlock_t i_lock ; unsigned short i_bytes ; unsigned int i_blkbits ; blkcnt_t i_blocks ; unsigned long i_state ; struct mutex i_mutex ; unsigned long dirtied_when ; struct hlist_node i_hash ; struct list_head i_wb_list ; struct list_head i_lru ; struct list_head i_sb_list ; union __anonunion_ldv_24329_159 ldv_24329 ; u64 i_version ; atomic_t i_count ; atomic_t i_dio_count ; atomic_t i_writecount ; struct file_operations const *i_fop ; struct file_lock *i_flock ; struct address_space i_data ; struct dquot *i_dquot[2U] ; struct list_head i_devices ; union __anonunion_ldv_24345_160 ldv_24345 ; __u32 i_generation ; __u32 i_fsnotify_mask ; struct hlist_head i_fsnotify_marks ; atomic_t i_readcount ; void *i_private ; }; struct fown_struct { rwlock_t lock ; struct pid *pid ; enum pid_type pid_type ; kuid_t uid ; kuid_t euid ; int signum ; }; struct file_ra_state { unsigned long start ; unsigned int size ; unsigned int async_size ; unsigned int ra_pages ; unsigned int mmap_miss ; loff_t prev_pos ; }; union __anonunion_f_u_161 { struct list_head fu_list ; struct callback_head fu_rcuhead ; }; struct file { union __anonunion_f_u_161 f_u ; struct path f_path ; struct file_operations const *f_op ; spinlock_t f_lock ; int f_sb_list_cpu ; atomic_long_t f_count ; unsigned int f_flags ; fmode_t f_mode ; loff_t f_pos ; struct fown_struct f_owner ; struct cred const *f_cred ; struct file_ra_state f_ra ; u64 f_version ; void *f_security ; void *private_data ; struct list_head f_ep_links ; struct list_head f_tfile_llink ; struct address_space *f_mapping ; unsigned long f_mnt_write_state ; }; struct files_struct; typedef struct files_struct *fl_owner_t; struct file_lock_operations { void (*fl_copy_lock)(struct file_lock * , struct file_lock * ) ; void (*fl_release_private)(struct file_lock * ) ; }; struct lock_manager_operations { int (*lm_compare_owner)(struct file_lock * , struct file_lock * ) ; void (*lm_notify)(struct file_lock * ) ; int (*lm_grant)(struct file_lock * , struct file_lock * , int ) ; void (*lm_break)(struct file_lock * ) ; int (*lm_change)(struct file_lock ** , int ) ; }; struct nlm_lockowner; struct nfs_lock_info { u32 state ; struct nlm_lockowner *owner ; struct list_head list ; }; struct nfs4_lock_state; struct nfs4_lock_info { struct nfs4_lock_state *owner ; }; struct fasync_struct; struct __anonstruct_afs_163 { struct list_head link ; int state ; }; union __anonunion_fl_u_162 { struct nfs_lock_info nfs_fl ; struct nfs4_lock_info nfs4_fl ; struct __anonstruct_afs_163 afs ; }; struct file_lock { struct file_lock *fl_next ; struct list_head fl_link ; struct list_head fl_block ; fl_owner_t fl_owner ; unsigned int fl_flags ; unsigned char fl_type ; unsigned int fl_pid ; struct pid *fl_nspid ; wait_queue_head_t fl_wait ; struct file *fl_file ; loff_t fl_start ; loff_t fl_end ; struct fasync_struct *fl_fasync ; unsigned long fl_break_time ; unsigned long fl_downgrade_time ; struct file_lock_operations const *fl_ops ; struct lock_manager_operations const *fl_lmops ; union __anonunion_fl_u_162 fl_u ; }; struct fasync_struct { spinlock_t fa_lock ; int magic ; int fa_fd ; struct fasync_struct *fa_next ; struct file *fa_file ; struct callback_head fa_rcu ; }; struct sb_writers { struct percpu_counter counter[3U] ; wait_queue_head_t wait ; int frozen ; wait_queue_head_t wait_unfrozen ; struct lockdep_map lock_map[3U] ; }; struct file_system_type; struct super_operations; struct xattr_handler; struct mtd_info; struct super_block { struct list_head s_list ; dev_t s_dev ; unsigned char s_blocksize_bits ; unsigned long s_blocksize ; loff_t s_maxbytes ; struct file_system_type *s_type ; struct super_operations const *s_op ; struct dquot_operations const *dq_op ; struct quotactl_ops const *s_qcop ; struct export_operations const *s_export_op ; unsigned long s_flags ; unsigned long s_magic ; struct dentry *s_root ; struct rw_semaphore s_umount ; int s_count ; atomic_t s_active ; void *s_security ; struct xattr_handler const **s_xattr ; struct list_head s_inodes ; struct hlist_bl_head s_anon ; struct list_head *s_files ; struct list_head s_mounts ; struct list_head s_dentry_lru ; int s_nr_dentry_unused ; spinlock_t s_inode_lru_lock ; struct list_head s_inode_lru ; int s_nr_inodes_unused ; struct block_device *s_bdev ; struct backing_dev_info *s_bdi ; struct mtd_info *s_mtd ; struct hlist_node s_instances ; struct quota_info s_dquot ; struct sb_writers s_writers ; char s_id[32U] ; u8 s_uuid[16U] ; void *s_fs_info ; unsigned int s_max_links ; fmode_t s_mode ; u32 s_time_gran ; struct mutex s_vfs_rename_mutex ; char *s_subtype ; char *s_options ; struct dentry_operations const *s_d_op ; int cleancache_poolid ; struct shrinker s_shrink ; atomic_long_t s_remove_count ; int s_readonly_remount ; }; struct fiemap_extent_info { unsigned int fi_flags ; unsigned int fi_extents_mapped ; unsigned int fi_extents_max ; struct fiemap_extent *fi_extents_start ; }; struct block_device_operations; struct file_operations { struct module *owner ; loff_t (*llseek)(struct file * , loff_t , int ) ; ssize_t (*read)(struct file * , char * , size_t , loff_t * ) ; ssize_t (*write)(struct file * , char const * , size_t , loff_t * ) ; ssize_t (*aio_read)(struct kiocb * , struct iovec const * , unsigned long , loff_t ) ; ssize_t (*aio_write)(struct kiocb * , struct iovec const * , unsigned long , loff_t ) ; int (*readdir)(struct file * , void * , int (*)(void * , char const * , int , loff_t , u64 , unsigned int ) ) ; unsigned int (*poll)(struct file * , struct poll_table_struct * ) ; long (*unlocked_ioctl)(struct file * , unsigned int , unsigned long ) ; long (*compat_ioctl)(struct file * , unsigned int , unsigned long ) ; int (*mmap)(struct file * , struct vm_area_struct * ) ; int (*open)(struct inode * , struct file * ) ; int (*flush)(struct file * , fl_owner_t ) ; int (*release)(struct inode * , struct file * ) ; int (*fsync)(struct file * , loff_t , loff_t , int ) ; int (*aio_fsync)(struct kiocb * , int ) ; int (*fasync)(int , struct file * , int ) ; int (*lock)(struct file * , int , struct file_lock * ) ; ssize_t (*sendpage)(struct file * , struct page * , int , size_t , loff_t * , int ) ; unsigned long (*get_unmapped_area)(struct file * , unsigned long , unsigned long , unsigned long , unsigned long ) ; int (*check_flags)(int ) ; int (*flock)(struct file * , int , struct file_lock * ) ; ssize_t (*splice_write)(struct pipe_inode_info * , struct file * , loff_t * , size_t , unsigned int ) ; ssize_t (*splice_read)(struct file * , loff_t * , struct pipe_inode_info * , size_t , unsigned int ) ; int (*setlease)(struct file * , long , struct file_lock ** ) ; long (*fallocate)(struct file * , int , loff_t , loff_t ) ; int (*show_fdinfo)(struct seq_file * , struct file * ) ; }; struct inode_operations { struct dentry *(*lookup)(struct inode * , struct dentry * , unsigned int ) ; void *(*follow_link)(struct dentry * , struct nameidata * ) ; int (*permission)(struct inode * , int ) ; struct posix_acl *(*get_acl)(struct inode * , int ) ; int (*readlink)(struct dentry * , char * , int ) ; void (*put_link)(struct dentry * , struct nameidata * , void * ) ; int (*create)(struct inode * , struct dentry * , umode_t , bool ) ; int (*link)(struct dentry * , struct inode * , struct dentry * ) ; int (*unlink)(struct inode * , struct dentry * ) ; int (*symlink)(struct inode * , struct dentry * , char const * ) ; int (*mkdir)(struct inode * , struct dentry * , umode_t ) ; int (*rmdir)(struct inode * , struct dentry * ) ; int (*mknod)(struct inode * , struct dentry * , umode_t , dev_t ) ; int (*rename)(struct inode * , struct dentry * , struct inode * , struct dentry * ) ; int (*setattr)(struct dentry * , struct iattr * ) ; int (*getattr)(struct vfsmount * , struct dentry * , struct kstat * ) ; int (*setxattr)(struct dentry * , char const * , void const * , size_t , int ) ; ssize_t (*getxattr)(struct dentry * , char const * , void * , size_t ) ; ssize_t (*listxattr)(struct dentry * , char * , size_t ) ; int (*removexattr)(struct dentry * , char const * ) ; int (*fiemap)(struct inode * , struct fiemap_extent_info * , u64 , u64 ) ; int (*update_time)(struct inode * , struct timespec * , int ) ; int (*atomic_open)(struct inode * , struct dentry * , struct file * , unsigned int , umode_t , int * ) ; }; struct super_operations { struct inode *(*alloc_inode)(struct super_block * ) ; void (*destroy_inode)(struct inode * ) ; void (*dirty_inode)(struct inode * , int ) ; int (*write_inode)(struct inode * , struct writeback_control * ) ; int (*drop_inode)(struct inode * ) ; void (*evict_inode)(struct inode * ) ; void (*put_super)(struct super_block * ) ; int (*sync_fs)(struct super_block * , int ) ; int (*freeze_fs)(struct super_block * ) ; int (*unfreeze_fs)(struct super_block * ) ; int (*statfs)(struct dentry * , struct kstatfs * ) ; int (*remount_fs)(struct super_block * , int * , char * ) ; void (*umount_begin)(struct super_block * ) ; int (*show_options)(struct seq_file * , struct dentry * ) ; int (*show_devname)(struct seq_file * , struct dentry * ) ; int (*show_path)(struct seq_file * , struct dentry * ) ; int (*show_stats)(struct seq_file * , struct dentry * ) ; ssize_t (*quota_read)(struct super_block * , int , char * , size_t , loff_t ) ; ssize_t (*quota_write)(struct super_block * , int , char const * , size_t , loff_t ) ; int (*bdev_try_to_free_page)(struct super_block * , struct page * , gfp_t ) ; int (*nr_cached_objects)(struct super_block * ) ; void (*free_cached_objects)(struct super_block * , int ) ; }; struct file_system_type { char const *name ; int fs_flags ; struct dentry *(*mount)(struct file_system_type * , int , char const * , void * ) ; void (*kill_sb)(struct super_block * ) ; struct module *owner ; struct file_system_type *next ; struct hlist_head fs_supers ; struct lock_class_key s_lock_key ; struct lock_class_key s_umount_key ; struct lock_class_key s_vfs_rename_key ; struct lock_class_key s_writers_key[3U] ; struct lock_class_key i_lock_key ; struct lock_class_key i_mutex_key ; struct lock_class_key i_mutex_dir_key ; }; typedef void *mempool_alloc_t(gfp_t , void * ); typedef void mempool_free_t(void * , void * ); struct mempool_s { spinlock_t lock ; int min_nr ; int curr_nr ; void **elements ; void *pool_data ; mempool_alloc_t *alloc ; mempool_free_t *free ; wait_queue_head_t wait ; }; typedef struct mempool_s mempool_t; typedef unsigned long cputime_t; struct sem_undo_list; struct sysv_sem { struct sem_undo_list *undo_list ; }; struct __anonstruct_sigset_t_164 { unsigned long sig[1U] ; }; typedef struct __anonstruct_sigset_t_164 sigset_t; struct siginfo; typedef void __signalfn_t(int ); typedef __signalfn_t *__sighandler_t; typedef void __restorefn_t(void); typedef __restorefn_t *__sigrestore_t; struct sigaction { __sighandler_t sa_handler ; unsigned long sa_flags ; __sigrestore_t sa_restorer ; sigset_t sa_mask ; }; struct k_sigaction { struct sigaction sa ; }; union sigval { int sival_int ; void *sival_ptr ; }; typedef union sigval sigval_t; struct __anonstruct__kill_166 { __kernel_pid_t _pid ; __kernel_uid32_t _uid ; }; struct __anonstruct__timer_167 { __kernel_timer_t _tid ; int _overrun ; char _pad[0U] ; sigval_t _sigval ; int _sys_private ; }; struct __anonstruct__rt_168 { __kernel_pid_t _pid ; __kernel_uid32_t _uid ; sigval_t _sigval ; }; struct __anonstruct__sigchld_169 { __kernel_pid_t _pid ; __kernel_uid32_t _uid ; int _status ; __kernel_clock_t _utime ; __kernel_clock_t _stime ; }; struct __anonstruct__sigfault_170 { void *_addr ; short _addr_lsb ; }; struct __anonstruct__sigpoll_171 { long _band ; int _fd ; }; struct __anonstruct__sigsys_172 { void *_call_addr ; int _syscall ; unsigned int _arch ; }; union __anonunion__sifields_165 { int _pad[28U] ; struct __anonstruct__kill_166 _kill ; struct __anonstruct__timer_167 _timer ; struct __anonstruct__rt_168 _rt ; struct __anonstruct__sigchld_169 _sigchld ; struct __anonstruct__sigfault_170 _sigfault ; struct __anonstruct__sigpoll_171 _sigpoll ; struct __anonstruct__sigsys_172 _sigsys ; }; struct siginfo { int si_signo ; int si_errno ; int si_code ; union __anonunion__sifields_165 _sifields ; }; typedef struct siginfo siginfo_t; struct sigpending { struct list_head list ; sigset_t signal ; }; struct seccomp_filter; struct seccomp { int mode ; struct seccomp_filter *filter ; }; struct plist_head { struct list_head node_list ; }; struct plist_node { int prio ; struct list_head prio_list ; struct list_head node_list ; }; struct rt_mutex_waiter; struct rlimit { unsigned long rlim_cur ; unsigned long rlim_max ; }; struct task_io_accounting { u64 rchar ; u64 wchar ; u64 syscr ; u64 syscw ; u64 read_bytes ; u64 write_bytes ; u64 cancelled_write_bytes ; }; struct latency_record { unsigned long backtrace[12U] ; unsigned int count ; unsigned long time ; unsigned long max ; }; typedef int32_t key_serial_t; typedef uint32_t key_perm_t; struct key; struct signal_struct; struct key_type; struct keyring_list; union __anonunion_ldv_27310_175 { struct list_head graveyard_link ; struct rb_node serial_node ; }; struct key_user; union __anonunion_ldv_27319_176 { time_t expiry ; time_t revoked_at ; }; union __anonunion_type_data_177 { struct list_head link ; unsigned long x[2U] ; void *p[2U] ; int reject_error ; }; union __anonunion_payload_178 { unsigned long value ; void *rcudata ; void *data ; struct keyring_list *subscriptions ; }; struct key { atomic_t usage ; key_serial_t serial ; union __anonunion_ldv_27310_175 ldv_27310 ; struct key_type *type ; struct rw_semaphore sem ; struct key_user *user ; void *security ; union __anonunion_ldv_27319_176 ldv_27319 ; time_t last_used_at ; kuid_t uid ; kgid_t gid ; key_perm_t perm ; unsigned short quotalen ; unsigned short datalen ; unsigned long flags ; char *description ; union __anonunion_type_data_177 type_data ; union __anonunion_payload_178 payload ; }; struct audit_context; struct group_info { atomic_t usage ; int ngroups ; int nblocks ; kgid_t small_block[32U] ; kgid_t *blocks[0U] ; }; struct thread_group_cred; struct cred { atomic_t usage ; atomic_t subscribers ; void *put_addr ; unsigned int magic ; kuid_t uid ; kgid_t gid ; kuid_t suid ; kgid_t sgid ; kuid_t euid ; kgid_t egid ; kuid_t fsuid ; kgid_t fsgid ; unsigned int securebits ; kernel_cap_t cap_inheritable ; kernel_cap_t cap_permitted ; kernel_cap_t cap_effective ; kernel_cap_t cap_bset ; unsigned char jit_keyring ; struct key *session_keyring ; struct key *process_keyring ; struct key *thread_keyring ; struct key *request_key_auth ; struct thread_group_cred *tgcred ; void *security ; struct user_struct *user ; struct user_namespace *user_ns ; struct group_info *group_info ; struct callback_head rcu ; }; struct llist_node; struct llist_node { struct llist_node *next ; }; struct futex_pi_state; struct robust_list_head; struct bio_list; struct fs_struct; struct perf_event_context; struct blk_plug; struct cfs_rq; struct task_group; struct io_event { __u64 data ; __u64 obj ; __s64 res ; __s64 res2 ; }; struct iovec { void *iov_base ; __kernel_size_t iov_len ; }; struct kioctx; union __anonunion_ki_obj_179 { void *user ; struct task_struct *tsk ; }; struct eventfd_ctx; struct kiocb { struct list_head ki_run_list ; unsigned long ki_flags ; int ki_users ; unsigned int ki_key ; struct file *ki_filp ; struct kioctx *ki_ctx ; int (*ki_cancel)(struct kiocb * , struct io_event * ) ; ssize_t (*ki_retry)(struct kiocb * ) ; void (*ki_dtor)(struct kiocb * ) ; union __anonunion_ki_obj_179 ki_obj ; __u64 ki_user_data ; loff_t ki_pos ; void *private ; unsigned short ki_opcode ; size_t ki_nbytes ; char *ki_buf ; size_t ki_left ; struct iovec ki_inline_vec ; struct iovec *ki_iovec ; unsigned long ki_nr_segs ; unsigned long ki_cur_seg ; struct list_head ki_list ; struct list_head ki_batch ; struct eventfd_ctx *ki_eventfd ; }; struct aio_ring_info { unsigned long mmap_base ; unsigned long mmap_size ; struct page **ring_pages ; spinlock_t ring_lock ; long nr_pages ; unsigned int nr ; unsigned int tail ; struct page *internal_pages[8U] ; }; struct kioctx { atomic_t users ; int dead ; struct mm_struct *mm ; unsigned long user_id ; struct hlist_node list ; wait_queue_head_t wait ; spinlock_t ctx_lock ; int reqs_active ; struct list_head active_reqs ; struct list_head run_list ; unsigned int max_reqs ; struct aio_ring_info ring_info ; struct delayed_work wq ; struct callback_head callback_head ; }; struct sighand_struct { atomic_t count ; struct k_sigaction action[64U] ; spinlock_t siglock ; wait_queue_head_t signalfd_wqh ; }; struct pacct_struct { int ac_flag ; long ac_exitcode ; unsigned long ac_mem ; cputime_t ac_utime ; cputime_t ac_stime ; unsigned long ac_minflt ; unsigned long ac_majflt ; }; struct cpu_itimer { cputime_t expires ; cputime_t incr ; u32 error ; u32 incr_error ; }; struct cputime { cputime_t utime ; cputime_t stime ; }; struct task_cputime { cputime_t utime ; cputime_t stime ; unsigned long long sum_exec_runtime ; }; struct thread_group_cputimer { struct task_cputime cputime ; int running ; raw_spinlock_t lock ; }; struct autogroup; struct tty_struct; struct taskstats; struct tty_audit_buf; struct signal_struct { atomic_t sigcnt ; atomic_t live ; int nr_threads ; wait_queue_head_t wait_chldexit ; struct task_struct *curr_target ; struct sigpending shared_pending ; int group_exit_code ; int notify_count ; struct task_struct *group_exit_task ; int group_stop_count ; unsigned int flags ; unsigned char is_child_subreaper : 1 ; unsigned char has_child_subreaper : 1 ; struct list_head posix_timers ; struct hrtimer real_timer ; struct pid *leader_pid ; ktime_t it_real_incr ; struct cpu_itimer it[2U] ; struct thread_group_cputimer cputimer ; struct task_cputime cputime_expires ; struct list_head cpu_timers[3U] ; struct pid *tty_old_pgrp ; int leader ; struct tty_struct *tty ; struct autogroup *autogroup ; cputime_t utime ; cputime_t stime ; cputime_t cutime ; cputime_t cstime ; cputime_t gtime ; cputime_t cgtime ; struct cputime prev_cputime ; unsigned long nvcsw ; unsigned long nivcsw ; unsigned long cnvcsw ; unsigned long cnivcsw ; unsigned long min_flt ; unsigned long maj_flt ; unsigned long cmin_flt ; unsigned long cmaj_flt ; unsigned long inblock ; unsigned long oublock ; unsigned long cinblock ; unsigned long coublock ; unsigned long maxrss ; unsigned long cmaxrss ; struct task_io_accounting ioac ; unsigned long long sum_sched_runtime ; struct rlimit rlim[16U] ; struct pacct_struct pacct ; struct taskstats *stats ; unsigned int audit_tty ; struct tty_audit_buf *tty_audit_buf ; struct rw_semaphore group_rwsem ; oom_flags_t oom_flags ; short oom_score_adj ; short oom_score_adj_min ; struct mutex cred_guard_mutex ; }; struct user_struct { atomic_t __count ; atomic_t processes ; atomic_t files ; atomic_t sigpending ; atomic_t inotify_watches ; atomic_t inotify_devs ; atomic_t fanotify_listeners ; atomic_long_t epoll_watches ; unsigned long mq_bytes ; unsigned long locked_shm ; struct key *uid_keyring ; struct key *session_keyring ; struct hlist_node uidhash_node ; kuid_t uid ; atomic_long_t locked_vm ; }; struct reclaim_state; struct sched_info { unsigned long pcount ; unsigned long long run_delay ; unsigned long long last_arrival ; unsigned long long last_queued ; }; struct task_delay_info { spinlock_t lock ; unsigned int flags ; struct timespec blkio_start ; struct timespec blkio_end ; u64 blkio_delay ; u64 swapin_delay ; u32 blkio_count ; u32 swapin_count ; struct timespec freepages_start ; struct timespec freepages_end ; u64 freepages_delay ; u32 freepages_count ; }; struct rq; struct sched_class { struct sched_class const *next ; void (*enqueue_task)(struct rq * , struct task_struct * , int ) ; void (*dequeue_task)(struct rq * , struct task_struct * , int ) ; void (*yield_task)(struct rq * ) ; bool (*yield_to_task)(struct rq * , struct task_struct * , bool ) ; void (*check_preempt_curr)(struct rq * , struct task_struct * , int ) ; struct task_struct *(*pick_next_task)(struct rq * ) ; void (*put_prev_task)(struct rq * , struct task_struct * ) ; int (*select_task_rq)(struct task_struct * , int , int ) ; void (*migrate_task_rq)(struct task_struct * , int ) ; void (*pre_schedule)(struct rq * , struct task_struct * ) ; void (*post_schedule)(struct rq * ) ; void (*task_waking)(struct task_struct * ) ; void (*task_woken)(struct rq * , struct task_struct * ) ; void (*set_cpus_allowed)(struct task_struct * , struct cpumask const * ) ; void (*rq_online)(struct rq * ) ; void (*rq_offline)(struct rq * ) ; void (*set_curr_task)(struct rq * ) ; void (*task_tick)(struct rq * , struct task_struct * , int ) ; void (*task_fork)(struct task_struct * ) ; void (*switched_from)(struct rq * , struct task_struct * ) ; void (*switched_to)(struct rq * , struct task_struct * ) ; void (*prio_changed)(struct rq * , struct task_struct * , int ) ; unsigned int (*get_rr_interval)(struct rq * , struct task_struct * ) ; void (*task_move_group)(struct task_struct * , int ) ; }; struct load_weight { unsigned long weight ; unsigned long inv_weight ; }; struct sched_avg { u32 runnable_avg_sum ; u32 runnable_avg_period ; u64 last_runnable_update ; s64 decay_count ; unsigned long load_avg_contrib ; }; struct sched_statistics { u64 wait_start ; u64 wait_max ; u64 wait_count ; u64 wait_sum ; u64 iowait_count ; u64 iowait_sum ; u64 sleep_start ; u64 sleep_max ; s64 sum_sleep_runtime ; u64 block_start ; u64 block_max ; u64 exec_max ; u64 slice_max ; u64 nr_migrations_cold ; u64 nr_failed_migrations_affine ; u64 nr_failed_migrations_running ; u64 nr_failed_migrations_hot ; u64 nr_forced_migrations ; u64 nr_wakeups ; u64 nr_wakeups_sync ; u64 nr_wakeups_migrate ; u64 nr_wakeups_local ; u64 nr_wakeups_remote ; u64 nr_wakeups_affine ; u64 nr_wakeups_affine_attempts ; u64 nr_wakeups_passive ; u64 nr_wakeups_idle ; }; struct sched_entity { struct load_weight load ; struct rb_node run_node ; struct list_head group_node ; unsigned int on_rq ; u64 exec_start ; u64 sum_exec_runtime ; u64 vruntime ; u64 prev_sum_exec_runtime ; u64 nr_migrations ; struct sched_statistics statistics ; struct sched_entity *parent ; struct cfs_rq *cfs_rq ; struct cfs_rq *my_q ; struct sched_avg avg ; }; struct rt_rq; struct sched_rt_entity { struct list_head run_list ; unsigned long timeout ; unsigned int time_slice ; struct sched_rt_entity *back ; struct sched_rt_entity *parent ; struct rt_rq *rt_rq ; struct rt_rq *my_q ; }; struct memcg_batch_info { int do_batch ; struct mem_cgroup *memcg ; unsigned long nr_pages ; unsigned long memsw_nr_pages ; }; struct css_set; struct compat_robust_list_head; struct task_struct { long volatile state ; void *stack ; atomic_t usage ; unsigned int flags ; unsigned int ptrace ; struct llist_node wake_entry ; int on_cpu ; int on_rq ; int prio ; int static_prio ; int normal_prio ; unsigned int rt_priority ; struct sched_class const *sched_class ; struct sched_entity se ; struct sched_rt_entity rt ; struct task_group *sched_task_group ; struct hlist_head preempt_notifiers ; unsigned char fpu_counter ; unsigned int policy ; int nr_cpus_allowed ; cpumask_t cpus_allowed ; struct sched_info sched_info ; struct list_head tasks ; struct plist_node pushable_tasks ; struct mm_struct *mm ; struct mm_struct *active_mm ; unsigned char brk_randomized : 1 ; int exit_state ; int exit_code ; int exit_signal ; int pdeath_signal ; unsigned int jobctl ; unsigned int personality ; unsigned char did_exec : 1 ; unsigned char in_execve : 1 ; unsigned char in_iowait : 1 ; unsigned char no_new_privs : 1 ; unsigned char sched_reset_on_fork : 1 ; unsigned char sched_contributes_to_load : 1 ; pid_t pid ; pid_t tgid ; unsigned long stack_canary ; struct task_struct *real_parent ; struct task_struct *parent ; struct list_head children ; struct list_head sibling ; struct task_struct *group_leader ; struct list_head ptraced ; struct list_head ptrace_entry ; struct pid_link pids[3U] ; struct list_head thread_group ; struct completion *vfork_done ; int *set_child_tid ; int *clear_child_tid ; cputime_t utime ; cputime_t stime ; cputime_t utimescaled ; cputime_t stimescaled ; cputime_t gtime ; struct cputime prev_cputime ; unsigned long nvcsw ; unsigned long nivcsw ; struct timespec start_time ; struct timespec real_start_time ; unsigned long min_flt ; unsigned long maj_flt ; struct task_cputime cputime_expires ; struct list_head cpu_timers[3U] ; struct cred const *real_cred ; struct cred const *cred ; char comm[16U] ; int link_count ; int total_link_count ; struct sysv_sem sysvsem ; unsigned long last_switch_count ; struct thread_struct thread ; struct fs_struct *fs ; struct files_struct *files ; struct nsproxy *nsproxy ; struct signal_struct *signal ; struct sighand_struct *sighand ; sigset_t blocked ; sigset_t real_blocked ; sigset_t saved_sigmask ; struct sigpending pending ; unsigned long sas_ss_sp ; size_t sas_ss_size ; int (*notifier)(void * ) ; void *notifier_data ; sigset_t *notifier_mask ; struct callback_head *task_works ; struct audit_context *audit_context ; kuid_t loginuid ; unsigned int sessionid ; struct seccomp seccomp ; u32 parent_exec_id ; u32 self_exec_id ; spinlock_t alloc_lock ; raw_spinlock_t pi_lock ; struct plist_head pi_waiters ; struct rt_mutex_waiter *pi_blocked_on ; struct mutex_waiter *blocked_on ; unsigned int irq_events ; unsigned long hardirq_enable_ip ; unsigned long hardirq_disable_ip ; unsigned int hardirq_enable_event ; unsigned int hardirq_disable_event ; int hardirqs_enabled ; int hardirq_context ; unsigned long softirq_disable_ip ; unsigned long softirq_enable_ip ; unsigned int softirq_disable_event ; unsigned int softirq_enable_event ; int softirqs_enabled ; int softirq_context ; u64 curr_chain_key ; int lockdep_depth ; unsigned int lockdep_recursion ; struct held_lock held_locks[48U] ; gfp_t lockdep_reclaim_gfp ; void *journal_info ; struct bio_list *bio_list ; struct blk_plug *plug ; struct reclaim_state *reclaim_state ; struct backing_dev_info *backing_dev_info ; struct io_context *io_context ; unsigned long ptrace_message ; siginfo_t *last_siginfo ; struct task_io_accounting ioac ; u64 acct_rss_mem1 ; u64 acct_vm_mem1 ; cputime_t acct_timexpd ; nodemask_t mems_allowed ; seqcount_t mems_allowed_seq ; int cpuset_mem_spread_rotor ; int cpuset_slab_spread_rotor ; struct css_set *cgroups ; struct list_head cg_list ; struct robust_list_head *robust_list ; struct compat_robust_list_head *compat_robust_list ; struct list_head pi_state_list ; struct futex_pi_state *pi_state_cache ; struct perf_event_context *perf_event_ctxp[2U] ; struct mutex perf_event_mutex ; struct list_head perf_event_list ; struct mempolicy *mempolicy ; short il_next ; short pref_node_fork ; int numa_scan_seq ; int numa_migrate_seq ; unsigned int numa_scan_period ; u64 node_stamp ; struct callback_head numa_work ; struct callback_head rcu ; struct pipe_inode_info *splice_pipe ; struct page_frag task_frag ; struct task_delay_info *delays ; int make_it_fail ; int nr_dirtied ; int nr_dirtied_pause ; unsigned long dirty_paused_when ; int latency_record_count ; struct latency_record latency_record[32U] ; unsigned long timer_slack_ns ; unsigned long default_timer_slack_ns ; unsigned long trace ; unsigned long trace_recursion ; struct memcg_batch_info memcg_batch ; unsigned int memcg_kmem_skip_account ; atomic_t ptrace_bp_refcnt ; struct uprobe_task *utask ; }; union __anonunion_ldv_29213_181 { struct list_head q_node ; struct kmem_cache *__rcu_icq_cache ; }; union __anonunion_ldv_29217_182 { struct hlist_node ioc_node ; struct callback_head __rcu_head ; }; struct io_cq { struct request_queue *q ; struct io_context *ioc ; union __anonunion_ldv_29213_181 ldv_29213 ; union __anonunion_ldv_29217_182 ldv_29217 ; unsigned int flags ; }; struct io_context { atomic_long_t refcount ; atomic_t active_ref ; atomic_t nr_tasks ; spinlock_t lock ; unsigned short ioprio ; int nr_batch_requests ; unsigned long last_waited ; struct radix_tree_root icq_tree ; struct io_cq *icq_hint ; struct hlist_head icq_list ; struct work_struct release_work ; }; struct bio_integrity_payload { struct bio *bip_bio ; sector_t bip_sector ; void *bip_buf ; bio_end_io_t *bip_end_io ; unsigned int bip_size ; unsigned short bip_slab ; unsigned short bip_vcnt ; unsigned short bip_idx ; struct work_struct bip_work ; struct bio_vec bip_vec[0U] ; }; struct bio_set { struct kmem_cache *bio_slab ; unsigned int front_pad ; mempool_t *bio_pool ; mempool_t *bio_integrity_pool ; mempool_t *bvec_pool ; }; struct bio_list { struct bio *head ; struct bio *tail ; }; typedef int read_proc_t(char * , char ** , off_t , int , int * , void * ); typedef int write_proc_t(struct file * , char const * , unsigned long , void * ); struct proc_dir_entry { unsigned int low_ino ; umode_t mode ; nlink_t nlink ; kuid_t uid ; kgid_t gid ; loff_t size ; struct inode_operations const *proc_iops ; struct file_operations const *proc_fops ; struct proc_dir_entry *next ; struct proc_dir_entry *parent ; struct proc_dir_entry *subdir ; void *data ; read_proc_t *read_proc ; write_proc_t *write_proc ; atomic_t count ; int pde_users ; struct completion *pde_unload_completion ; struct list_head pde_openers ; spinlock_t pde_unload_lock ; u8 namelen ; char name[] ; }; struct proc_ns_operations { char const *name ; int type ; void *(*get)(struct task_struct * ) ; void (*put)(void * ) ; int (*install)(struct nsproxy * , void * ) ; unsigned int (*inum)(void * ) ; }; union proc_op { int (*proc_get_link)(struct dentry * , struct path * ) ; int (*proc_read)(struct task_struct * , char * ) ; int (*proc_show)(struct seq_file * , struct pid_namespace * , struct pid * , struct task_struct * ) ; }; struct proc_inode { struct pid *pid ; int fd ; union proc_op op ; struct proc_dir_entry *pde ; struct ctl_table_header *sysctl ; struct ctl_table *sysctl_entry ; void *ns ; struct proc_ns_operations const *ns_ops ; struct inode vfs_inode ; }; struct seq_file { char *buf ; size_t size ; size_t from ; size_t count ; loff_t index ; loff_t read_pos ; u64 version ; struct mutex lock ; struct seq_operations const *op ; int poll_event ; void *private ; }; struct seq_operations { void *(*start)(struct seq_file * , loff_t * ) ; void (*stop)(struct seq_file * , void * ) ; void *(*next)(struct seq_file * , void * , loff_t * ) ; int (*show)(struct seq_file * , void * ) ; }; struct hd_geometry { unsigned char heads ; unsigned char sectors ; unsigned short cylinders ; unsigned long start ; }; typedef s32 compat_long_t; typedef u32 compat_uptr_t; struct compat_robust_list { compat_uptr_t next ; }; struct compat_robust_list_head { struct compat_robust_list list ; compat_long_t futex_offset ; compat_uptr_t list_op_pending ; }; struct disk_stats { unsigned long sectors[2U] ; unsigned long ios[2U] ; unsigned long merges[2U] ; unsigned long ticks[2U] ; unsigned long io_ticks ; unsigned long time_in_queue ; }; struct partition_meta_info { char uuid[37U] ; u8 volname[64U] ; }; struct hd_struct { sector_t start_sect ; sector_t nr_sects ; seqcount_t nr_sects_seq ; sector_t alignment_offset ; unsigned int discard_alignment ; struct device __dev ; struct kobject *holder_dir ; int policy ; int partno ; struct partition_meta_info *info ; int make_it_fail ; unsigned long stamp ; atomic_t in_flight[2U] ; struct disk_stats *dkstats ; atomic_t ref ; struct callback_head callback_head ; }; struct disk_part_tbl { struct callback_head callback_head ; int len ; struct hd_struct *last_lookup ; struct hd_struct *part[] ; }; struct disk_events; struct timer_rand_state; struct blk_integrity; struct gendisk { int major ; int first_minor ; int minors ; char disk_name[32U] ; char *(*devnode)(struct gendisk * , umode_t * ) ; unsigned int events ; unsigned int async_events ; struct disk_part_tbl *part_tbl ; struct hd_struct part0 ; struct block_device_operations const *fops ; struct request_queue *queue ; void *private_data ; int flags ; struct device *driverfs_dev ; struct kobject *slave_dir ; struct timer_rand_state *random ; atomic_t sync_io ; struct disk_events *ev ; struct blk_integrity *integrity ; int node_id ; }; struct fprop_local_percpu { struct percpu_counter events ; unsigned int period ; raw_spinlock_t lock ; }; enum writeback_sync_modes { WB_SYNC_NONE = 0, WB_SYNC_ALL = 1 } ; struct writeback_control { long nr_to_write ; long pages_skipped ; loff_t range_start ; loff_t range_end ; enum writeback_sync_modes sync_mode ; unsigned char for_kupdate : 1 ; unsigned char for_background : 1 ; unsigned char tagged_writepages : 1 ; unsigned char for_reclaim : 1 ; unsigned char range_cyclic : 1 ; }; struct bdi_writeback; typedef int congested_fn(void * , int ); struct bdi_writeback { struct backing_dev_info *bdi ; unsigned int nr ; unsigned long last_old_flush ; unsigned long last_active ; struct task_struct *task ; struct timer_list wakeup_timer ; struct list_head b_dirty ; struct list_head b_io ; struct list_head b_more_io ; spinlock_t list_lock ; }; struct backing_dev_info { struct list_head bdi_list ; unsigned long ra_pages ; unsigned long state ; unsigned int capabilities ; congested_fn *congested_fn ; void *congested_data ; char *name ; struct percpu_counter bdi_stat[4U] ; unsigned long bw_time_stamp ; unsigned long dirtied_stamp ; unsigned long written_stamp ; unsigned long write_bandwidth ; unsigned long avg_write_bandwidth ; unsigned long dirty_ratelimit ; unsigned long balanced_dirty_ratelimit ; struct fprop_local_percpu completions ; int dirty_exceeded ; unsigned int min_ratio ; unsigned int max_ratio ; unsigned int max_prop_frac ; struct bdi_writeback wb ; spinlock_t wb_lock ; struct list_head work_list ; struct device *dev ; struct timer_list laptop_mode_wb_timer ; struct dentry *debug_dir ; struct dentry *debug_stats ; }; struct bsg_class_device { struct device *class_dev ; struct device *parent ; int minor ; struct request_queue *queue ; struct kref ref ; void (*release)(struct device * ) ; }; struct elevator_queue; struct request; struct bsg_job; struct blkcg_gq; typedef void rq_end_io_fn(struct request * , int ); struct request_list { struct request_queue *q ; struct blkcg_gq *blkg ; int count[2U] ; int starved[2U] ; mempool_t *rq_pool ; wait_queue_head_t wait[2U] ; unsigned int flags ; }; enum rq_cmd_type_bits { REQ_TYPE_FS = 1, REQ_TYPE_BLOCK_PC = 2, REQ_TYPE_SENSE = 3, REQ_TYPE_PM_SUSPEND = 4, REQ_TYPE_PM_RESUME = 5, REQ_TYPE_PM_SHUTDOWN = 6, REQ_TYPE_SPECIAL = 7, REQ_TYPE_ATA_TASKFILE = 8, REQ_TYPE_ATA_PC = 9 } ; union __anonunion_ldv_32525_209 { struct rb_node rb_node ; void *completion_data ; }; struct __anonstruct_elv_211 { struct io_cq *icq ; void *priv[2U] ; }; struct __anonstruct_flush_212 { unsigned int seq ; struct list_head list ; rq_end_io_fn *saved_end_io ; }; union __anonunion_ldv_32536_210 { struct __anonstruct_elv_211 elv ; struct __anonstruct_flush_212 flush ; }; struct request { struct list_head queuelist ; struct call_single_data csd ; struct request_queue *q ; unsigned int cmd_flags ; enum rq_cmd_type_bits cmd_type ; unsigned long atomic_flags ; int cpu ; unsigned int __data_len ; sector_t __sector ; struct bio *bio ; struct bio *biotail ; struct hlist_node hash ; union __anonunion_ldv_32525_209 ldv_32525 ; union __anonunion_ldv_32536_210 ldv_32536 ; struct gendisk *rq_disk ; struct hd_struct *part ; unsigned long start_time ; struct request_list *rl ; unsigned long long start_time_ns ; unsigned long long io_start_time_ns ; unsigned short nr_phys_segments ; unsigned short nr_integrity_segments ; unsigned short ioprio ; int ref_count ; void *special ; char *buffer ; int tag ; int errors ; unsigned char __cmd[16U] ; unsigned char *cmd ; unsigned short cmd_len ; unsigned int extra_len ; unsigned int sense_len ; unsigned int resid_len ; void *sense ; unsigned long deadline ; struct list_head timeout_list ; unsigned int timeout ; int retries ; rq_end_io_fn *end_io ; void *end_io_data ; struct request *next_rq ; }; typedef int elevator_merge_fn(struct request_queue * , struct request ** , struct bio * ); typedef void elevator_merge_req_fn(struct request_queue * , struct request * , struct request * ); typedef void elevator_merged_fn(struct request_queue * , struct request * , int ); typedef int elevator_allow_merge_fn(struct request_queue * , struct request * , struct bio * ); typedef void elevator_bio_merged_fn(struct request_queue * , struct request * , struct bio * ); typedef int elevator_dispatch_fn(struct request_queue * , int ); typedef void elevator_add_req_fn(struct request_queue * , struct request * ); typedef struct request *elevator_request_list_fn(struct request_queue * , struct request * ); typedef void elevator_completed_req_fn(struct request_queue * , struct request * ); typedef int elevator_may_queue_fn(struct request_queue * , int ); typedef void elevator_init_icq_fn(struct io_cq * ); typedef void elevator_exit_icq_fn(struct io_cq * ); typedef int elevator_set_req_fn(struct request_queue * , struct request * , struct bio * , gfp_t ); typedef void elevator_put_req_fn(struct request * ); typedef void elevator_activate_req_fn(struct request_queue * , struct request * ); typedef void elevator_deactivate_req_fn(struct request_queue * , struct request * ); typedef int elevator_init_fn(struct request_queue * ); typedef void elevator_exit_fn(struct elevator_queue * ); struct elevator_ops { elevator_merge_fn *elevator_merge_fn ; elevator_merged_fn *elevator_merged_fn ; elevator_merge_req_fn *elevator_merge_req_fn ; elevator_allow_merge_fn *elevator_allow_merge_fn ; elevator_bio_merged_fn *elevator_bio_merged_fn ; elevator_dispatch_fn *elevator_dispatch_fn ; elevator_add_req_fn *elevator_add_req_fn ; elevator_activate_req_fn *elevator_activate_req_fn ; elevator_deactivate_req_fn *elevator_deactivate_req_fn ; elevator_completed_req_fn *elevator_completed_req_fn ; elevator_request_list_fn *elevator_former_req_fn ; elevator_request_list_fn *elevator_latter_req_fn ; elevator_init_icq_fn *elevator_init_icq_fn ; elevator_exit_icq_fn *elevator_exit_icq_fn ; elevator_set_req_fn *elevator_set_req_fn ; elevator_put_req_fn *elevator_put_req_fn ; elevator_may_queue_fn *elevator_may_queue_fn ; elevator_init_fn *elevator_init_fn ; elevator_exit_fn *elevator_exit_fn ; }; struct elv_fs_entry { struct attribute attr ; ssize_t (*show)(struct elevator_queue * , char * ) ; ssize_t (*store)(struct elevator_queue * , char const * , size_t ) ; }; struct elevator_type { struct kmem_cache *icq_cache ; struct elevator_ops ops ; size_t icq_size ; size_t icq_align ; struct elv_fs_entry *elevator_attrs ; char elevator_name[16U] ; struct module *elevator_owner ; char icq_cache_name[21U] ; struct list_head list ; }; struct elevator_queue { struct elevator_type *type ; void *elevator_data ; struct kobject kobj ; struct mutex sysfs_lock ; struct hlist_head *hash ; unsigned char registered : 1 ; }; typedef void request_fn_proc(struct request_queue * ); typedef void make_request_fn(struct request_queue * , struct bio * ); typedef int prep_rq_fn(struct request_queue * , struct request * ); typedef void unprep_rq_fn(struct request_queue * , struct request * ); struct bvec_merge_data { struct block_device *bi_bdev ; sector_t bi_sector ; unsigned int bi_size ; unsigned long bi_rw ; }; typedef int merge_bvec_fn(struct request_queue * , struct bvec_merge_data * , struct bio_vec * ); typedef void softirq_done_fn(struct request * ); typedef int dma_drain_needed_fn(struct request * ); typedef int lld_busy_fn(struct request_queue * ); typedef int bsg_job_fn(struct bsg_job * ); enum blk_eh_timer_return { BLK_EH_NOT_HANDLED = 0, BLK_EH_HANDLED = 1, BLK_EH_RESET_TIMER = 2 } ; typedef enum blk_eh_timer_return rq_timed_out_fn(struct request * ); struct blk_queue_tag { struct request **tag_index ; unsigned long *tag_map ; int busy ; int max_depth ; int real_max_depth ; atomic_t refcnt ; }; struct queue_limits { unsigned long bounce_pfn ; unsigned long seg_boundary_mask ; unsigned int max_hw_sectors ; unsigned int max_sectors ; unsigned int max_segment_size ; unsigned int physical_block_size ; unsigned int alignment_offset ; unsigned int io_min ; unsigned int io_opt ; unsigned int max_discard_sectors ; unsigned int max_write_same_sectors ; unsigned int discard_granularity ; unsigned int discard_alignment ; unsigned short logical_block_size ; unsigned short max_segments ; unsigned short max_integrity_segments ; unsigned char misaligned ; unsigned char discard_misaligned ; unsigned char cluster ; unsigned char discard_zeroes_data ; }; struct throtl_data; struct request_queue { struct list_head queue_head ; struct request *last_merge ; struct elevator_queue *elevator ; int nr_rqs[2U] ; int nr_rqs_elvpriv ; struct request_list root_rl ; request_fn_proc *request_fn ; make_request_fn *make_request_fn ; prep_rq_fn *prep_rq_fn ; unprep_rq_fn *unprep_rq_fn ; merge_bvec_fn *merge_bvec_fn ; softirq_done_fn *softirq_done_fn ; rq_timed_out_fn *rq_timed_out_fn ; dma_drain_needed_fn *dma_drain_needed ; lld_busy_fn *lld_busy_fn ; sector_t end_sector ; struct request *boundary_rq ; struct delayed_work delay_work ; struct backing_dev_info backing_dev_info ; void *queuedata ; unsigned long queue_flags ; int id ; gfp_t bounce_gfp ; spinlock_t __queue_lock ; spinlock_t *queue_lock ; struct kobject kobj ; unsigned long nr_requests ; unsigned int nr_congestion_on ; unsigned int nr_congestion_off ; unsigned int nr_batching ; unsigned int dma_drain_size ; void *dma_drain_buffer ; unsigned int dma_pad_mask ; unsigned int dma_alignment ; struct blk_queue_tag *queue_tags ; struct list_head tag_busy_list ; unsigned int nr_sorted ; unsigned int in_flight[2U] ; unsigned int request_fn_active ; unsigned int rq_timeout ; struct timer_list timeout ; struct list_head timeout_list ; struct list_head icq_list ; unsigned long blkcg_pols[1U] ; struct blkcg_gq *root_blkg ; struct list_head blkg_list ; struct queue_limits limits ; unsigned int sg_timeout ; unsigned int sg_reserved_size ; int node ; unsigned int flush_flags ; unsigned char flush_not_queueable : 1 ; unsigned char flush_queue_delayed : 1 ; unsigned char flush_pending_idx : 1 ; unsigned char flush_running_idx : 1 ; unsigned long flush_pending_since ; struct list_head flush_queue[2U] ; struct list_head flush_data_in_flight ; struct request flush_rq ; struct mutex sysfs_lock ; int bypass_depth ; bsg_job_fn *bsg_job_fn ; int bsg_job_size ; struct bsg_class_device bsg_dev ; struct list_head all_q_node ; struct throtl_data *td ; }; struct blk_plug { unsigned long magic ; struct list_head list ; struct list_head cb_list ; unsigned int should_sort ; }; struct blk_integrity_exchg { void *prot_buf ; void *data_buf ; sector_t sector ; unsigned int data_size ; unsigned short sector_size ; char const *disk_name ; }; typedef void integrity_gen_fn(struct blk_integrity_exchg * ); typedef int integrity_vrfy_fn(struct blk_integrity_exchg * ); typedef void integrity_set_tag_fn(void * , void * , unsigned int ); typedef void integrity_get_tag_fn(void * , void * , unsigned int ); struct blk_integrity { integrity_gen_fn *generate_fn ; integrity_vrfy_fn *verify_fn ; integrity_set_tag_fn *set_tag_fn ; integrity_get_tag_fn *get_tag_fn ; unsigned short flags ; unsigned short tuple_size ; unsigned short sector_size ; unsigned short tag_size ; char const *name ; struct kobject kobj ; }; struct block_device_operations { int (*open)(struct block_device * , fmode_t ) ; int (*release)(struct gendisk * , fmode_t ) ; int (*ioctl)(struct block_device * , fmode_t , unsigned int , unsigned long ) ; int (*compat_ioctl)(struct block_device * , fmode_t , unsigned int , unsigned long ) ; int (*direct_access)(struct block_device * , sector_t , void ** , unsigned long * ) ; unsigned int (*check_events)(struct gendisk * , unsigned int ) ; int (*media_changed)(struct gendisk * ) ; void (*unlock_native_capacity)(struct gendisk * ) ; int (*revalidate_disk)(struct gendisk * ) ; int (*getgeo)(struct block_device * , struct hd_geometry * ) ; void (*swap_slot_free_notify)(struct block_device * , unsigned long ) ; struct module *owner ; }; struct scsi_cmnd; struct scsi_device; struct __anonstruct_PeripDev_221 { __u8 Dev ; unsigned char Bus : 6 ; unsigned char Mode : 2 ; }; struct __anonstruct_LogDev_222 { __u8 DevLSB ; unsigned char DevMSB : 6 ; unsigned char Mode : 2 ; }; struct __anonstruct_LogUnit_223 { unsigned char Dev : 5 ; unsigned char Bus : 3 ; unsigned char Targ : 6 ; unsigned char Mode : 2 ; }; union _SCSI3Addr_struct { struct __anonstruct_PeripDev_221 PeripDev ; struct __anonstruct_LogDev_222 LogDev ; struct __anonstruct_LogUnit_223 LogUnit ; }; typedef union _SCSI3Addr_struct SCSI3Addr_struct; struct _PhysDevAddr_struct { unsigned int TargetId : 24 ; unsigned char Bus : 6 ; unsigned char Mode : 2 ; SCSI3Addr_struct Target[2U] ; }; typedef struct _PhysDevAddr_struct PhysDevAddr_struct; struct _LogDevAddr_struct { unsigned int VolId : 30 ; unsigned char Mode : 2 ; __u8 reserved[4U] ; }; typedef struct _LogDevAddr_struct LogDevAddr_struct; union _LUNAddr_struct { __u8 LunAddrBytes[8U] ; SCSI3Addr_struct SCSI3Lun[4U] ; PhysDevAddr_struct PhysDev ; LogDevAddr_struct LogDev ; }; typedef union _LUNAddr_struct LUNAddr_struct; struct __anonstruct_Type_224 { unsigned char Type : 3 ; unsigned char Attribute : 3 ; unsigned char Direction : 2 ; }; struct _RequestBlock_struct { __u8 CDBLen ; struct __anonstruct_Type_224 Type ; __u16 Timeout ; __u8 CDB[16U] ; }; typedef struct _RequestBlock_struct RequestBlock_struct; struct __anonstruct_Common_Info_225 { __u8 Reserved[3U] ; __u8 Type ; __u32 ErrorInfo ; }; struct __anonstruct_Invalid_Cmd_226 { __u8 Reserved[2U] ; __u8 offense_size ; __u8 offense_num ; __u32 offense_value ; }; union _MoreErrInfo_struct { struct __anonstruct_Common_Info_225 Common_Info ; struct __anonstruct_Invalid_Cmd_226 Invalid_Cmd ; }; typedef union _MoreErrInfo_struct MoreErrInfo_struct; struct _ErrorInfo_struct { __u8 ScsiStatus ; __u8 SenseLen ; __u16 CommandStatus ; __u32 ResidualCnt ; MoreErrInfo_struct MoreErrInfo ; __u8 SenseInfo[32U] ; }; typedef struct _ErrorInfo_struct ErrorInfo_struct; struct _vals32 { __u32 lower ; __u32 upper ; }; typedef struct _vals32 vals32; union _u64bit { vals32 val32 ; __u64 val ; }; typedef union _u64bit u64bit; struct _InquiryData_struct { __u8 data_byte[36U] ; }; typedef struct _InquiryData_struct InquiryData_struct; struct _ReportLUNdata_struct { __u8 LUNListLength[4U] ; __u32 reserved ; __u8 LUN[1024U][8U] ; }; typedef struct _ReportLUNdata_struct ReportLunData_struct; struct _ReadCapdata_struct { __u8 total_size[4U] ; __u8 block_size[4U] ; }; typedef struct _ReadCapdata_struct ReadCapdata_struct; struct _ReadCapdata_struct_16 { __u8 total_size[8U] ; __u8 block_size[4U] ; unsigned char prot_en : 1 ; unsigned char rto_en : 1 ; unsigned char reserved : 6 ; __u8 reserved2[18U] ; }; typedef struct _ReadCapdata_struct_16 ReadCapdata_struct_16; struct _CommandListHeader_struct { __u8 ReplyQueue ; __u8 SGList ; __u16 SGTotal ; vals32 Tag ; LUNAddr_struct LUN ; }; typedef struct _CommandListHeader_struct CommandListHeader_struct; struct _ErrDescriptor_struct { vals32 Addr ; __u32 Len ; }; typedef struct _ErrDescriptor_struct ErrDescriptor_struct; struct _SGDescriptor_struct { vals32 Addr ; __u32 Len ; __u32 Ext ; }; typedef struct _SGDescriptor_struct SGDescriptor_struct; struct _CommandList_struct { CommandListHeader_struct Header ; RequestBlock_struct Request ; ErrDescriptor_struct ErrDesc ; SGDescriptor_struct SG[32U] ; __u32 busaddr ; ErrorInfo_struct *err_info ; int ctlr ; int cmd_type ; long cmdindex ; struct list_head list ; struct request *rq ; struct completion *waiting ; int retry_count ; void *scsi_cmd ; char pad[4U] ; }; typedef struct _CommandList_struct CommandList_struct; struct _HostWrite_struct { __u32 TransportRequest ; __u32 Reserved ; __u32 CoalIntDelay ; __u32 CoalIntCount ; }; typedef struct _HostWrite_struct HostWrite_struct; struct _CfgTable_struct { __u8 Signature[4U] ; __u32 SpecValence ; __u32 TransportSupport ; __u32 TransportActive ; HostWrite_struct HostWrite ; __u32 CmdsOutMax ; __u32 BusTypes ; __u32 TransMethodOffset ; __u8 ServerName[16U] ; __u32 HeartBeat ; __u32 SCSI_Prefetch ; __u32 MaxSGElements ; __u32 MaxLogicalUnits ; __u32 MaxPhysicalDrives ; __u32 MaxPhysicalDrivesPerLogicalUnit ; __u32 MaxPerformantModeCommands ; u8 reserved[32U] ; u32 misc_fw_support ; u8 driver_version[32U] ; }; typedef struct _CfgTable_struct CfgTable_struct; struct TransTable_struct { u32 BlockFetch0 ; u32 BlockFetch1 ; u32 BlockFetch2 ; u32 BlockFetch3 ; u32 BlockFetch4 ; u32 BlockFetch5 ; u32 BlockFetch6 ; u32 BlockFetch7 ; u32 RepQSize ; u32 RepQCount ; u32 RepQCtrAddrLow32 ; u32 RepQCtrAddrHigh32 ; u32 RepQAddr0Low32 ; u32 RepQAddr0High32 ; }; struct ctlr_info; typedef struct ctlr_info ctlr_info_t; struct access_method { void (*submit_command)(ctlr_info_t * , CommandList_struct * ) ; void (*set_intr_mask)(ctlr_info_t * , unsigned long ) ; unsigned long (*fifo_full)(ctlr_info_t * ) ; bool (*intr_pending)(ctlr_info_t * ) ; unsigned long (*command_completed)(ctlr_info_t * ) ; }; struct _drive_info_struct { unsigned char LunID[8U] ; int usage_count ; struct request_queue *queue ; sector_t nr_blocks ; int block_size ; int heads ; int sectors ; int cylinders ; int raid_level ; int busy_configuring ; struct device dev ; __u8 serial_no[16U] ; char vendor[9U] ; char model[17U] ; char rev[5U] ; char device_initialized ; }; typedef struct _drive_info_struct drive_info_struct; struct cciss_scsi_adapter_data_t; struct ctlr_info { int ctlr ; char devname[8U] ; char *product_name ; char firm_ver[4U] ; struct pci_dev *pdev ; __u32 board_id ; void *vaddr ; unsigned long paddr ; int nr_cmds ; CfgTable_struct *cfgtable ; int interrupts_enabled ; int major ; int max_commands ; int commands_outstanding ; int max_outstanding ; int num_luns ; int highest_lun ; int usage_count ; struct scatterlist **scatter_list ; int maxsgentries ; int chainsize ; int max_cmd_sgentries ; SGDescriptor_struct **cmd_sg_list ; unsigned int intr[4U] ; unsigned int msix_vector ; unsigned int msi_vector ; int intr_mode ; int cciss_max_sectors ; __u8 cciss_read ; __u8 cciss_write ; __u8 cciss_read_capacity ; drive_info_struct *drv[1024U] ; struct access_method access ; struct list_head reqQ ; struct list_head cmpQ ; unsigned int Qdepth ; unsigned int maxQsinceinit ; unsigned int maxSG ; spinlock_t lock ; CommandList_struct *cmd_pool ; dma_addr_t cmd_pool_dhandle ; ErrorInfo_struct *errinfo_pool ; dma_addr_t errinfo_pool_dhandle ; unsigned long *cmd_pool_bits ; int nr_allocs ; int nr_frees ; int busy_configuring ; int busy_initializing ; int busy_scanning ; struct mutex busy_shutting_down ; int next_to_run ; struct gendisk *gendisk[1024U] ; struct cciss_scsi_adapter_data_t *scsi_ctlr ; unsigned char alive ; struct list_head scan_list ; struct completion scan_wait ; struct device dev ; u32 trans_support ; u32 trans_offset ; struct TransTable_struct *transtable ; unsigned long transMethod ; u64 *reply_pool ; dma_addr_t reply_pool_dhandle ; u64 *reply_pool_head ; size_t reply_pool_size ; unsigned char reply_pool_wraparound ; u32 *blockFetchTable ; }; struct board_type { __u32 board_id ; char *product_name ; struct access_method *access ; int nr_cmds ; }; struct _cciss_pci_info_struct { unsigned char bus ; unsigned char dev_fn ; unsigned short domain ; __u32 board_id ; }; typedef struct _cciss_pci_info_struct cciss_pci_info_struct; struct _cciss_coalint_struct { __u32 delay ; __u32 count ; }; typedef struct _cciss_coalint_struct cciss_coalint_struct; typedef char NodeName_type[16U]; typedef __u32 Heartbeat_type; typedef __u32 BusTypes_type; typedef char FirmwareVer_type[4U]; typedef __u32 DriverVer_type; struct _IOCTL_Command_struct { LUNAddr_struct LUN_info ; RequestBlock_struct Request ; ErrorInfo_struct error_info ; __u16 buf_size ; __u8 *buf ; }; typedef struct _IOCTL_Command_struct IOCTL_Command_struct; struct _BIG_IOCTL_Command_struct { LUNAddr_struct LUN_info ; RequestBlock_struct Request ; ErrorInfo_struct error_info ; __u32 malloc_size ; __u32 buf_size ; __u8 *buf ; }; typedef struct _BIG_IOCTL_Command_struct BIG_IOCTL_Command_struct; struct _LogvolInfo_struct { __u32 LunID ; int num_opens ; int num_parts ; }; typedef struct _LogvolInfo_struct LogvolInfo_struct; struct _IOCTL32_Command_struct { LUNAddr_struct LUN_info ; RequestBlock_struct Request ; ErrorInfo_struct error_info ; __u16 buf_size ; __u32 buf ; }; typedef struct _IOCTL32_Command_struct IOCTL32_Command_struct; struct _BIG_IOCTL32_Command_struct { LUNAddr_struct LUN_info ; RequestBlock_struct Request ; ErrorInfo_struct error_info ; __u32 malloc_size ; __u32 buf_size ; __u32 buf ; }; typedef struct _BIG_IOCTL32_Command_struct BIG_IOCTL32_Command_struct; struct Scsi_Host; struct scsi_data_buffer { struct sg_table table ; unsigned int length ; int resid ; }; struct scsi_pointer { char *ptr ; int this_residual ; struct scatterlist *buffer ; int buffers_residual ; dma_addr_t dma_handle ; int volatile Status ; int volatile Message ; int volatile have_data_in ; int volatile sent_command ; int volatile phase ; }; struct scsi_cmnd { struct scsi_device *device ; struct list_head list ; struct list_head eh_entry ; int eh_eflags ; unsigned long serial_number ; unsigned long jiffies_at_alloc ; int retries ; int allowed ; unsigned char prot_op ; unsigned char prot_type ; unsigned short cmd_len ; enum dma_data_direction sc_data_direction ; unsigned char *cmnd ; struct scsi_data_buffer sdb ; struct scsi_data_buffer *prot_sdb ; unsigned int underflow ; unsigned int transfersize ; struct request *request ; unsigned char *sense_buffer ; void (*scsi_done)(struct scsi_cmnd * ) ; struct scsi_pointer SCp ; unsigned char *host_scribble ; int result ; unsigned char tag ; }; struct scsi_sense_hdr; enum scsi_device_state { SDEV_CREATED = 1, SDEV_RUNNING = 2, SDEV_CANCEL = 3, SDEV_DEL = 4, SDEV_QUIESCE = 5, SDEV_OFFLINE = 6, SDEV_TRANSPORT_OFFLINE = 7, SDEV_BLOCK = 8, SDEV_CREATED_BLOCK = 9 } ; struct scsi_target; struct scsi_dh_data; struct scsi_device { struct Scsi_Host *host ; struct request_queue *request_queue ; struct list_head siblings ; struct list_head same_target_siblings ; unsigned int device_busy ; spinlock_t list_lock ; struct list_head cmd_list ; struct list_head starved_entry ; struct scsi_cmnd *current_cmnd ; unsigned short queue_depth ; unsigned short max_queue_depth ; unsigned short last_queue_full_depth ; unsigned short last_queue_full_count ; unsigned long last_queue_full_time ; unsigned long queue_ramp_up_period ; unsigned long last_queue_ramp_up ; unsigned int id ; unsigned int lun ; unsigned int channel ; unsigned int manufacturer ; unsigned int sector_size ; void *hostdata ; char type ; char scsi_level ; char inq_periph_qual ; unsigned char inquiry_len ; unsigned char *inquiry ; char const *vendor ; char const *model ; char const *rev ; unsigned char current_tag ; struct scsi_target *sdev_target ; unsigned int sdev_bflags ; unsigned char writeable : 1 ; unsigned char removable : 1 ; unsigned char changed : 1 ; unsigned char busy : 1 ; unsigned char lockable : 1 ; unsigned char locked : 1 ; unsigned char borken : 1 ; unsigned char disconnect : 1 ; unsigned char soft_reset : 1 ; unsigned char sdtr : 1 ; unsigned char wdtr : 1 ; unsigned char ppr : 1 ; unsigned char tagged_supported : 1 ; unsigned char simple_tags : 1 ; unsigned char ordered_tags : 1 ; unsigned char was_reset : 1 ; unsigned char expecting_cc_ua : 1 ; unsigned char use_10_for_rw : 1 ; unsigned char use_10_for_ms : 1 ; unsigned char no_report_opcodes : 1 ; unsigned char no_write_same : 1 ; unsigned char use_16_for_rw : 1 ; unsigned char skip_ms_page_8 : 1 ; unsigned char skip_ms_page_3f : 1 ; unsigned char skip_vpd_pages : 1 ; unsigned char use_192_bytes_for_3f : 1 ; unsigned char no_start_on_add : 1 ; unsigned char allow_restart : 1 ; unsigned char manage_start_stop : 1 ; unsigned char start_stop_pwr_cond : 1 ; unsigned char no_uld_attach : 1 ; unsigned char select_no_atn : 1 ; unsigned char fix_capacity : 1 ; unsigned char guess_capacity : 1 ; unsigned char retry_hwerror : 1 ; unsigned char last_sector_bug : 1 ; unsigned char no_read_disc_info : 1 ; unsigned char no_read_capacity_16 : 1 ; unsigned char try_rc_10_first : 1 ; unsigned char is_visible : 1 ; unsigned char can_power_off : 1 ; unsigned char wce_default_on : 1 ; unsigned char no_dif : 1 ; unsigned long supported_events[1U] ; struct list_head event_list ; struct work_struct event_work ; unsigned int device_blocked ; unsigned int max_device_blocked ; atomic_t iorequest_cnt ; atomic_t iodone_cnt ; atomic_t ioerr_cnt ; struct device sdev_gendev ; struct device sdev_dev ; struct execute_work ew ; struct work_struct requeue_work ; struct scsi_dh_data *scsi_dh_data ; enum scsi_device_state sdev_state ; unsigned long sdev_data[0U] ; }; struct scsi_dh_devlist { char *vendor ; char *model ; }; struct scsi_device_handler { struct list_head list ; struct module *module ; char const *name ; struct scsi_dh_devlist const *devlist ; int (*check_sense)(struct scsi_device * , struct scsi_sense_hdr * ) ; int (*attach)(struct scsi_device * ) ; void (*detach)(struct scsi_device * ) ; int (*activate)(struct scsi_device * , void (*)(void * , int ) , void * ) ; int (*prep_fn)(struct scsi_device * , struct request * ) ; int (*set_params)(struct scsi_device * , char const * ) ; bool (*match)(struct scsi_device * ) ; }; struct scsi_dh_data { struct scsi_device_handler *scsi_dh ; struct scsi_device *sdev ; struct kref kref ; char buf[0U] ; }; enum scsi_target_state { STARGET_CREATED = 1, STARGET_RUNNING = 2, STARGET_DEL = 3 } ; struct scsi_target { struct scsi_device *starget_sdev_user ; struct list_head siblings ; struct list_head devices ; struct device dev ; unsigned int reap_ref ; unsigned int channel ; unsigned int id ; unsigned char create : 1 ; unsigned char single_lun : 1 ; unsigned char pdt_1f_for_no_lun : 1 ; unsigned char no_report_luns : 1 ; unsigned int target_busy ; unsigned int can_queue ; unsigned int target_blocked ; unsigned int max_target_blocked ; char scsi_level ; struct execute_work ew ; enum scsi_target_state state ; void *hostdata ; unsigned long starget_data[0U] ; }; struct scsi_host_cmd_pool; struct scsi_transport_template; struct scsi_host_template { struct module *module ; char const *name ; int (*detect)(struct scsi_host_template * ) ; int (*release)(struct Scsi_Host * ) ; char const *(*info)(struct Scsi_Host * ) ; int (*ioctl)(struct scsi_device * , int , void * ) ; int (*compat_ioctl)(struct scsi_device * , int , void * ) ; int (*queuecommand)(struct Scsi_Host * , struct scsi_cmnd * ) ; int (*transfer_response)(struct scsi_cmnd * , void (*)(struct scsi_cmnd * ) ) ; int (*eh_abort_handler)(struct scsi_cmnd * ) ; int (*eh_device_reset_handler)(struct scsi_cmnd * ) ; int (*eh_target_reset_handler)(struct scsi_cmnd * ) ; int (*eh_bus_reset_handler)(struct scsi_cmnd * ) ; int (*eh_host_reset_handler)(struct scsi_cmnd * ) ; int (*slave_alloc)(struct scsi_device * ) ; int (*slave_configure)(struct scsi_device * ) ; void (*slave_destroy)(struct scsi_device * ) ; int (*target_alloc)(struct scsi_target * ) ; void (*target_destroy)(struct scsi_target * ) ; int (*scan_finished)(struct Scsi_Host * , unsigned long ) ; void (*scan_start)(struct Scsi_Host * ) ; int (*change_queue_depth)(struct scsi_device * , int , int ) ; int (*change_queue_type)(struct scsi_device * , int ) ; int (*bios_param)(struct scsi_device * , struct block_device * , sector_t , int * ) ; void (*unlock_native_capacity)(struct scsi_device * ) ; int (*proc_info)(struct Scsi_Host * , char * , char ** , off_t , int , int ) ; enum blk_eh_timer_return (*eh_timed_out)(struct scsi_cmnd * ) ; int (*host_reset)(struct Scsi_Host * , int ) ; char const *proc_name ; struct proc_dir_entry *proc_dir ; int can_queue ; int this_id ; unsigned short sg_tablesize ; unsigned short sg_prot_tablesize ; unsigned short max_sectors ; unsigned long dma_boundary ; short cmd_per_lun ; unsigned char present ; unsigned char supported_mode : 2 ; unsigned char unchecked_isa_dma : 1 ; unsigned char use_clustering : 1 ; unsigned char emulated : 1 ; unsigned char skip_settle_delay : 1 ; unsigned char ordered_tag : 1 ; unsigned int max_host_blocked ; struct device_attribute **shost_attrs ; struct device_attribute **sdev_attrs ; struct list_head legacy_hosts ; u64 vendor_id ; }; enum scsi_host_state { SHOST_CREATED = 1, SHOST_RUNNING = 2, SHOST_CANCEL = 3, SHOST_DEL = 4, SHOST_RECOVERY = 5, SHOST_CANCEL_RECOVERY = 6, SHOST_DEL_RECOVERY = 7 } ; struct Scsi_Host { struct list_head __devices ; struct list_head __targets ; struct scsi_host_cmd_pool *cmd_pool ; spinlock_t free_list_lock ; struct list_head free_list ; struct list_head starved_list ; spinlock_t default_lock ; spinlock_t *host_lock ; struct mutex scan_mutex ; struct list_head eh_cmd_q ; struct task_struct *ehandler ; struct completion *eh_action ; wait_queue_head_t host_wait ; struct scsi_host_template *hostt ; struct scsi_transport_template *transportt ; struct blk_queue_tag *bqt ; unsigned int host_busy ; unsigned int host_failed ; unsigned int host_eh_scheduled ; unsigned int host_no ; int resetting ; unsigned long last_reset ; unsigned int max_id ; unsigned int max_lun ; unsigned int max_channel ; unsigned int unique_id ; unsigned short max_cmd_len ; int this_id ; int can_queue ; short cmd_per_lun ; unsigned short sg_tablesize ; unsigned short sg_prot_tablesize ; unsigned short max_sectors ; unsigned long dma_boundary ; unsigned long cmd_serial_number ; unsigned char active_mode : 2 ; unsigned char unchecked_isa_dma : 1 ; unsigned char use_clustering : 1 ; unsigned char use_blk_tcq : 1 ; unsigned char host_self_blocked : 1 ; unsigned char reverse_ordering : 1 ; unsigned char ordered_tag : 1 ; unsigned char tmf_in_progress : 1 ; unsigned char async_scan : 1 ; unsigned char eh_noresume : 1 ; char work_q_name[20U] ; struct workqueue_struct *work_q ; unsigned int host_blocked ; unsigned int max_host_blocked ; unsigned int prot_capabilities ; unsigned char prot_guard_type ; struct request_queue *uspace_req_q ; unsigned long base ; unsigned long io_port ; unsigned char n_io_port ; unsigned char dma_channel ; unsigned int irq ; enum scsi_host_state shost_state ; struct device shost_gendev ; struct device shost_dev ; struct list_head sht_legacy_list ; void *shost_data ; struct device *dma_dev ; unsigned long hostdata[0U] ; }; struct cciss_scsi_dev_t { int devtype ; int bus ; int target ; int lun ; unsigned char scsi3addr[8U] ; unsigned char device_id[16U] ; unsigned char vendor[8U] ; unsigned char model[16U] ; unsigned char revision[4U] ; }; struct cciss_scsi_hba_t { char *name ; int ndevices ; struct cciss_scsi_dev_t dev[16U] ; }; struct cciss_scsi_cmd_stack_elem_t { CommandList_struct cmd ; ErrorInfo_struct Err ; __u32 busaddr ; int cmdindex ; u8 pad[8U] ; }; struct cciss_scsi_cmd_stack_t { struct cciss_scsi_cmd_stack_elem_t *pool ; struct cciss_scsi_cmd_stack_elem_t **elem ; dma_addr_t cmd_pool_handle ; int top ; int nelems ; }; struct cciss_scsi_adapter_data_t { struct Scsi_Host *scsi_host ; struct cciss_scsi_cmd_stack_t cmd_stack ; SGDescriptor_struct **cmd_sg_list ; int registered ; spinlock_t lock ; }; struct scsi2map { char scsi3addr[8U] ; int bus ; int target ; int lun ; }; struct __anonstruct_Command_237 { CommandListHeader_struct CommandHeader ; RequestBlock_struct Request ; ErrDescriptor_struct ErrorDescriptor ; }; typedef struct __anonstruct_Command_237 Command; typedef int ldv_func_ret_type___2; typedef int ldv_func_ret_type___6; typedef struct Scsi_Host *ldv_func_ret_type___7; typedef int ldv_func_ret_type___15; long ldv__builtin_expect(long exp , long c ) ; __inline static void clear_bit(int nr , unsigned long volatile *addr ) { { __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; btr %1,%0": "+m" (*((long volatile *)addr)): "Ir" (nr)); return; } } __inline static int test_and_set_bit(int nr , unsigned long volatile *addr ) { int oldbit ; { __asm__ volatile (".pushsection .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.popsection\n671:\n\tlock; bts %2,%1\n\tsbb %0,%0": "=r" (oldbit), "+m" (*((long volatile *)addr)): "Ir" (nr): "memory"); return (oldbit); } } extern unsigned long find_first_zero_bit(unsigned long const * , unsigned long ) ; __inline static __u32 __arch_swab32(__u32 val ) { { __asm__ ("bswapl %0": "=r" (val): "0" (val)); return (val); } } __inline static __u64 __arch_swab64(__u64 val ) { { __asm__ ("bswapq %0": "=r" (val): "0" (val)); return (val); } } __inline static __u32 __fswab32(__u32 val ) { __u32 tmp ; { tmp = __arch_swab32(val); return (tmp); } } __inline static __u64 __fswab64(__u64 val ) { __u64 tmp ; { tmp = __arch_swab64(val); return (tmp); } } extern unsigned int reset_devices ; extern int printk(char const * , ...) ; extern int __dynamic_dev_dbg(struct _ddebug * , struct device const * , char const * , ...) ; extern void might_fault(void) ; extern int sprintf(char * , char const * , ...) ; extern int snprintf(char * , size_t , char const * , ...) ; __inline static void INIT_LIST_HEAD(struct list_head *list ) { { list->next = list; list->prev = list; return; } } extern void __list_add(struct list_head * , struct list_head * , struct list_head * ) ; __inline static void list_add_tail(struct list_head *new , struct list_head *head ) { { __list_add(new, head->prev, head); return; } } extern void __list_del_entry(struct list_head * ) ; extern void list_del(struct list_head * ) ; __inline static void list_del_init(struct list_head *entry ) { { __list_del_entry(entry); INIT_LIST_HEAD(entry); return; } } __inline static int list_empty(struct list_head const *head ) { { return ((unsigned long )((struct list_head const *)head->next) == (unsigned long )head); } } extern unsigned long __phys_addr(unsigned long ) ; extern struct pv_irq_ops pv_irq_ops ; extern void __bad_percpu_size(void) ; extern struct task_struct *current_task ; __inline static struct task_struct *get_current(void) { struct task_struct *pfo_ret__ ; { switch (8UL) { case 1: __asm__ ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "p" (& current_task)); goto ldv_2861; case 2: __asm__ ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "p" (& current_task)); goto ldv_2861; case 4: __asm__ ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "p" (& current_task)); goto ldv_2861; case 8: __asm__ ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "p" (& current_task)); goto ldv_2861; default: __bad_percpu_size(); } ldv_2861: ; return (pfo_ret__); } } extern void *__memcpy(void * , void const * , size_t ) ; extern void *memset(void * , int , size_t ) ; extern int memcmp(void const * , void const * , size_t ) ; extern size_t strlen(char const * ) ; extern char *strncpy(char * , char const * , __kernel_size_t ) ; extern int strncmp(char const * , char const * , __kernel_size_t ) ; __inline static void bitmap_zero(unsigned long *dst , int nbits ) { int len ; { len = (int )((unsigned int )(((unsigned long )nbits + 63UL) / 64UL) * 8U); memset((void *)dst, 0, (size_t )len); return; } } extern void warn_slowpath_fmt(char const * , int const , char const * , ...) ; extern void warn_slowpath_null(char const * , int const ) ; __inline static unsigned long arch_local_save_flags(void) { unsigned long __ret ; unsigned long __edi ; unsigned long __esi ; unsigned long __edx ; unsigned long __ecx ; unsigned long __eax ; long tmp ; { __edi = __edi; __esi = __esi; __edx = __edx; __ecx = __ecx; __eax = __eax; tmp = ldv__builtin_expect((unsigned long )pv_irq_ops.save_fl.func == (unsigned long )((void *)0), 0L); if (tmp != 0L) { __asm__ volatile ("1:\tud2\n.pushsection __bug_table,\"a\"\n2:\t.long 1b - 2b, %c0 - 2b\n\t.word %c1, 0\n\t.org 2b+%c2\n.popsection": : "i" ((char *)"/work/ldvuser/zakharov_benchmarks/bench/cpa/inst/current/envs/linux-3.8-rc1/linux-3.8-rc1/arch/x86/include/asm/paravirt.h"), "i" (825), "i" (12UL)); ldv_4725: ; goto ldv_4725; } else { } __asm__ volatile ("771:\n\tcall *%c2;\n772:\n.pushsection .parainstructions,\"a\"\n .balign 8 \n .quad 771b\n .byte %c1\n .byte 772b-771b\n .short %c3\n.popsection\n": "=a" (__eax): [paravirt_typenum] "i" (45UL), [paravirt_opptr] "i" (& pv_irq_ops.save_fl.func), [paravirt_clobber] "i" (1): "memory", "cc"); __ret = __eax; return (__ret); } } __inline static void *ERR_PTR(long error ) { { return ((void *)error); } } __inline static long PTR_ERR(void const *ptr ) { { return ((long )ptr); } } __inline static long IS_ERR(void const *ptr ) { long tmp ; { tmp = ldv__builtin_expect((unsigned long )ptr > 0xfffffffffffff000UL, 0L); return (tmp); } } __inline static int arch_irqs_disabled_flags(unsigned long flags ) { { return ((flags & 512UL) == 0UL); } } extern void __xchg_wrong_size(void) ; extern void __mutex_init(struct mutex * , char const * , struct lock_class_key * ) ; extern int mutex_trylock(struct mutex * ) ; int ldv_mutex_trylock_4(struct mutex *ldv_func_arg1 ) ; int ldv_mutex_trylock_17(struct mutex *ldv_func_arg1 ) ; extern void mutex_unlock(struct mutex * ) ; void ldv_mutex_unlock_2(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_5(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_7(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_12(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_14(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_16(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_19(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_20(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_22(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_23(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_24(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_26(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_27(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_29(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_unlock_31(struct mutex *ldv_func_arg1 ) ; extern void mutex_lock(struct mutex * ) ; void ldv_mutex_lock_1(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_3(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_6(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_11(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_13(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_15(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_18(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_21(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_25(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_28(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_30(struct mutex *ldv_func_arg1 ) ; void ldv_mutex_lock_busy_shutting_down_of_ctlr_info(struct mutex *lock ) ; int ldv_mutex_trylock_busy_shutting_down_of_ctlr_info(struct mutex *lock ) ; void ldv_mutex_unlock_busy_shutting_down_of_ctlr_info(struct mutex *lock ) ; void ldv_mutex_lock_cciss_mutex(struct mutex *lock ) ; void ldv_mutex_unlock_cciss_mutex(struct mutex *lock ) ; void ldv_mutex_lock_cred_guard_mutex_of_signal_struct(struct mutex *lock ) ; void ldv_mutex_unlock_cred_guard_mutex_of_signal_struct(struct mutex *lock ) ; void ldv_mutex_lock_lock(struct mutex *lock ) ; void ldv_mutex_unlock_lock(struct mutex *lock ) ; void ldv_mutex_lock_mutex_of_device(struct mutex *lock ) ; int ldv_mutex_trylock_mutex_of_device(struct mutex *lock ) ; void ldv_mutex_unlock_mutex_of_device(struct mutex *lock ) ; void ldv_mutex_lock_scan_mutex(struct mutex *lock ) ; void ldv_mutex_unlock_scan_mutex(struct mutex *lock ) ; int ldv_state_variable_8 ; int ldv_state_variable_17 ; int ldv_state_variable_18 ; int ldv_state_variable_15 ; int ldv_state_variable_20 ; int ldv_state_variable_10 ; int ldv_state_variable_19 ; int ldv_state_variable_6 ; int ldv_state_variable_0 ; int ldv_state_variable_9 ; int ldv_state_variable_5 ; int ldv_state_variable_16 ; int ldv_state_variable_3 ; int ldv_state_variable_13 ; int ldv_state_variable_2 ; int ref_cnt ; int ldv_state_variable_12 ; extern int __VERIFIER_nondet_int(void) ; int ldv_state_variable_1 ; int ldv_state_variable_7 ; int ldv_state_variable_4 ; int ldv_state_variable_14 ; int ldv_state_variable_11 ; extern void __raw_spin_lock_init(raw_spinlock_t * , char const * , struct lock_class_key * ) ; extern void _raw_spin_lock_irq(raw_spinlock_t * ) ; extern unsigned long _raw_spin_lock_irqsave(raw_spinlock_t * ) ; extern void _raw_spin_unlock_irq(raw_spinlock_t * ) ; extern void _raw_spin_unlock_irqrestore(raw_spinlock_t * , unsigned long ) ; __inline static raw_spinlock_t *spinlock_check(spinlock_t *lock ) { { return (& lock->ldv_5961.rlock); } } __inline static void spin_lock_irq(spinlock_t *lock ) { { _raw_spin_lock_irq(& lock->ldv_5961.rlock); return; } } __inline static void spin_unlock_irq(spinlock_t *lock ) { { _raw_spin_unlock_irq(& lock->ldv_5961.rlock); return; } } __inline static void spin_unlock_irqrestore(spinlock_t *lock , unsigned long flags ) { { _raw_spin_unlock_irqrestore(& lock->ldv_5961.rlock, flags); return; } } extern void __init_waitqueue_head(wait_queue_head_t * , char const * , struct lock_class_key * ) ; __inline static void init_completion(struct completion *x ) { struct lock_class_key __key ; { x->done = 0U; __init_waitqueue_head(& x->wait, "&x->wait", & __key); return; } } extern void wait_for_completion(struct completion * ) ; extern int wait_for_completion_interruptible(struct completion * ) ; extern void complete(struct completion * ) ; extern void complete_all(struct completion * ) ; __inline static unsigned char readb(void const volatile *addr ) { unsigned char ret ; { __asm__ volatile ("movb %1,%0": "=q" (ret): "m" (*((unsigned char volatile *)addr)): "memory"); return (ret); } } __inline static unsigned int readl(void const volatile *addr ) { unsigned int ret ; { __asm__ volatile ("movl %1,%0": "=r" (ret): "m" (*((unsigned int volatile *)addr)): "memory"); return (ret); } } __inline static void writeb(unsigned char val , void volatile *addr ) { { __asm__ volatile ("movb %0,%1": : "q" (val), "m" (*((unsigned char volatile *)addr)): "memory"); return; } } __inline static void writel(unsigned int val , void volatile *addr ) { { __asm__ volatile ("movl %0,%1": : "r" (val), "m" (*((unsigned int volatile *)addr)): "memory"); return; } } extern void *ioremap_nocache(resource_size_t , unsigned long ) ; __inline static void *ioremap(resource_size_t offset , unsigned long size ) { void *tmp ; { tmp = ioremap_nocache(offset, size); return (tmp); } } extern void iounmap(void volatile * ) ; extern unsigned long __get_free_pages(gfp_t , unsigned int ) ; extern void free_pages(unsigned long , unsigned int ) ; __inline static char const *kobject_name(struct kobject const *kobj ) { { return ((char const *)kobj->name); } } extern struct module __this_module ; extern unsigned long _copy_to_user(void * , void const * , unsigned int ) ; extern unsigned long _copy_from_user(void * , void const * , unsigned int ) ; extern unsigned long copy_in_user(void * , void const * , unsigned int ) ; __inline static unsigned long copy_from_user(void *to , void const *from , unsigned long n ) { int sz ; unsigned long tmp ; int __ret_warn_on ; long tmp___0 ; long tmp___1 ; long tmp___2 ; { tmp = __builtin_object_size((void const *)to, 0); sz = (int )tmp; might_fault(); tmp___1 = ldv__builtin_expect(sz == -1, 1L); if (tmp___1 != 0L) { n = _copy_from_user(to, from, (unsigned int )n); } else { tmp___2 = ldv__builtin_expect((unsigned long )sz >= n, 1L); if (tmp___2 != 0L) { n = _copy_from_user(to, from, (unsigned int )n); } else { __ret_warn_on = 1; tmp___0 = ldv__builtin_expect(__ret_warn_on != 0, 0L); if (tmp___0 != 0L) { warn_slowpath_fmt("/work/ldvuser/zakharov_benchmarks/bench/cpa/inst/current/envs/linux-3.8-rc1/linux-3.8-rc1/arch/x86/include/asm/uaccess_64.h", 66, "Buffer overflow detected!\n"); } else { } ldv__builtin_expect(__ret_warn_on != 0, 0L); } } return (n); } } __inline static int copy_to_user(void *dst , void const *src , unsigned int size ) { unsigned long tmp ; { might_fault(); tmp = _copy_to_user(dst, src, size); return ((int )tmp); } } extern int request_threaded_irq(unsigned int , irqreturn_t (*)(int , void * ) , irqreturn_t (*)(int , void * ) , unsigned long , char const * , void * ) ; __inline static int request_irq(unsigned int irq , irqreturn_t (*handler)(int , void * ) , unsigned long flags , char const *name , void *dev ) { int tmp ; { tmp = request_threaded_irq(irq, handler, 0, flags, name, dev); return (tmp); } } extern void free_irq(unsigned int , void * ) ; extern int __bus_register(struct bus_type * , struct lock_class_key * ) ; extern void bus_unregister(struct bus_type * ) ; __inline static char const *dev_name(struct device const *dev ) { char const *tmp ; { if ((unsigned long )dev->init_name != (unsigned long )((char const */* const */)0)) { return ((char const *)dev->init_name); } else { } tmp = kobject_name(& dev->kobj); return (tmp); } } extern int dev_set_name(struct device * , char const * , ...) ; extern void device_initialize(struct device * ) ; extern int device_add(struct device * ) ; extern void device_del(struct device * ) ; extern void *dev_get_drvdata(struct device const * ) ; extern int dev_set_drvdata(struct device * , void * ) ; extern void put_device(struct device * ) ; extern int dev_err(struct device const * , char const * , ...) ; extern int dev_warn(struct device const * , char const * , ...) ; extern int _dev_info(struct device const * , char const * , ...) ; extern int check_signature(void const volatile * , unsigned char const * , int ) ; extern int pci_find_capability(struct pci_dev * , int ) ; extern int pci_bus_read_config_word(struct pci_bus * , unsigned int , int , u16 * ) ; extern int pci_bus_read_config_dword(struct pci_bus * , unsigned int , int , u32 * ) ; extern int pci_bus_write_config_word(struct pci_bus * , unsigned int , int , u16 ) ; extern int pci_bus_write_config_dword(struct pci_bus * , unsigned int , int , u32 ) ; __inline static int pci_read_config_word(struct pci_dev const *dev , int where , u16 *val ) { int tmp ; { tmp = pci_bus_read_config_word(dev->bus, dev->devfn, where, val); return (tmp); } } __inline static int pci_read_config_dword(struct pci_dev const *dev , int where , u32 *val ) { int tmp ; { tmp = pci_bus_read_config_dword(dev->bus, dev->devfn, where, val); return (tmp); } } __inline static int pci_write_config_word(struct pci_dev const *dev , int where , u16 val ) { int tmp ; { tmp = pci_bus_write_config_word(dev->bus, dev->devfn, where, (int )val); return (tmp); } } __inline static int pci_write_config_dword(struct pci_dev const *dev , int where , u32 val ) { int tmp ; { tmp = pci_bus_write_config_dword(dev->bus, dev->devfn, where, val); return (tmp); } } extern int pci_enable_device(struct pci_dev * ) ; extern void pci_disable_device(struct pci_dev * ) ; extern int pci_save_state(struct pci_dev * ) ; extern void pci_restore_state(struct pci_dev * ) ; extern int pci_request_regions(struct pci_dev * , char const * ) ; extern void pci_release_regions(struct pci_dev * ) ; extern int __pci_register_driver(struct pci_driver * , struct module * , char const * ) ; extern void pci_unregister_driver(struct pci_driver * ) ; extern int pci_enable_msi_block(struct pci_dev * , unsigned int ) ; extern void pci_disable_msi(struct pci_dev * ) ; extern int pci_enable_msix(struct pci_dev * , struct msix_entry * , int ) ; extern void pci_disable_msix(struct pci_dev * ) ; __inline static void *lowmem_page_address(struct page const *page ) { { return ((void *)((unsigned long )((unsigned long long )(((long )page + 24189255811072L) / 80L) << 12) + 0xffff880000000000UL)); } } extern void kfree(void const * ) ; extern void *__kmalloc(size_t , gfp_t ) ; __inline static void *kmalloc(size_t size , gfp_t flags ) { void *tmp___2 ; { tmp___2 = __kmalloc(size, flags); return (tmp___2); } } __inline static void *kzalloc(size_t size , gfp_t flags ) { void *tmp ; { tmp = kmalloc(size, flags | 32768U); return (tmp); } } __inline static int pci_domain_nr(struct pci_bus *bus ) { struct pci_sysdata *sd ; { sd = (struct pci_sysdata *)bus->sysdata; return (sd->domain); } } __inline static struct page *sg_page(struct scatterlist *sg ) { long tmp ; long tmp___0 ; { tmp = ldv__builtin_expect(sg->sg_magic != 2271560481UL, 0L); if (tmp != 0L) { __asm__ volatile ("1:\tud2\n.pushsection __bug_table,\"a\"\n2:\t.long 1b - 2b, %c0 - 2b\n\t.word %c1, 0\n\t.org 2b+%c2\n.popsection": : "i" ((char *)"include/linux/scatterlist.h"), "i" (98), "i" (12UL)); ldv_21601: ; goto ldv_21601; } else { } tmp___0 = ldv__builtin_expect((long )((int )sg->page_link) & 1L, 0L); if (tmp___0 != 0L) { __asm__ volatile ("1:\tud2\n.pushsection __bug_table,\"a\"\n2:\t.long 1b - 2b, %c0 - 2b\n\t.word %c1, 0\n\t.org 2b+%c2\n.popsection": : "i" ((char *)"include/linux/scatterlist.h"), "i" (99), "i" (12UL)); ldv_21602: ; goto ldv_21602; } else { } return ((struct page *)(sg->page_link & 0xfffffffffffffffcUL)); } } extern struct scatterlist *sg_next(struct scatterlist * ) ; extern void sg_init_table(struct scatterlist * , unsigned int ) ; __inline static int valid_dma_direction(int dma_direction ) { { return ((dma_direction == 0 || dma_direction == 1) || dma_direction == 2); } } __inline static int is_device_dma_capable(struct device *dev ) { { return ((unsigned long )dev->dma_mask != (unsigned long )((u64 *)0) && *(dev->dma_mask) != 0ULL); } } __inline static void kmemcheck_mark_initialized(void *address , unsigned int n ) { { return; } } extern void debug_dma_map_page(struct device * , struct page * , size_t , size_t , int , dma_addr_t , bool ) ; extern void debug_dma_unmap_page(struct device * , dma_addr_t , size_t , int , bool ) ; extern void debug_dma_alloc_coherent(struct device * , size_t , dma_addr_t , void * ) ; extern void debug_dma_free_coherent(struct device * , size_t , void * , dma_addr_t ) ; extern struct device x86_dma_fallback_dev ; extern struct dma_map_ops *dma_ops ; __inline static struct dma_map_ops *get_dma_ops(struct device *dev ) { long tmp ; { tmp = ldv__builtin_expect((unsigned long )dev == (unsigned long )((struct device *)0), 0L); if (tmp != 0L || (unsigned long )dev->archdata.dma_ops == (unsigned long )((struct dma_map_ops *)0)) { return (dma_ops); } else { return (dev->archdata.dma_ops); } } } __inline static dma_addr_t dma_map_single_attrs(struct device *dev , void *ptr , size_t size , enum dma_data_direction dir , struct dma_attrs *attrs ) { struct dma_map_ops *ops ; struct dma_map_ops *tmp ; dma_addr_t addr ; int tmp___0 ; long tmp___1 ; unsigned long tmp___2 ; unsigned long tmp___3 ; { tmp = get_dma_ops(dev); ops = tmp; kmemcheck_mark_initialized(ptr, (unsigned int )size); tmp___0 = valid_dma_direction((int )dir); tmp___1 = ldv__builtin_expect(tmp___0 == 0, 0L); if (tmp___1 != 0L) { __asm__ volatile ("1:\tud2\n.pushsection __bug_table,\"a\"\n2:\t.long 1b - 2b, %c0 - 2b\n\t.word %c1, 0\n\t.org 2b+%c2\n.popsection": : "i" ((char *)"include/asm-generic/dma-mapping-common.h"), "i" (19), "i" (12UL)); ldv_22076: ; goto ldv_22076; } else { } tmp___2 = __phys_addr((unsigned long )ptr); addr = (*(ops->map_page))(dev, 0xffffea0000000000UL + (tmp___2 >> 12), (unsigned long )ptr & 4095UL, size, dir, attrs); tmp___3 = __phys_addr((unsigned long )ptr); debug_dma_map_page(dev, 0xffffea0000000000UL + (tmp___3 >> 12), (unsigned long )ptr & 4095UL, size, (int )dir, addr, 1); return (addr); } } __inline static void dma_unmap_single_attrs(struct device *dev , dma_addr_t addr , size_t size , enum dma_data_direction dir , struct dma_attrs *attrs ) { struct dma_map_ops *ops ; struct dma_map_ops *tmp ; int tmp___0 ; long tmp___1 ; { tmp = get_dma_ops(dev); ops = tmp; tmp___0 = valid_dma_direction((int )dir); tmp___1 = ldv__builtin_expect(tmp___0 == 0, 0L); if (tmp___1 != 0L) { __asm__ volatile ("1:\tud2\n.pushsection __bug_table,\"a\"\n2:\t.long 1b - 2b, %c0 - 2b\n\t.word %c1, 0\n\t.org 2b+%c2\n.popsection": : "i" ((char *)"include/asm-generic/dma-mapping-common.h"), "i" (36), "i" (12UL)); ldv_22085: ; goto ldv_22085; } else { } if ((unsigned long )ops->unmap_page != (unsigned long )((void (*)(struct device * , dma_addr_t , size_t , enum dma_data_direction , struct dma_attrs * ))0)) { (*(ops->unmap_page))(dev, addr, size, dir, attrs); } else { } debug_dma_unmap_page(dev, addr, size, (int )dir, 1); return; } } __inline static dma_addr_t dma_map_page(struct device *dev , struct page *page , size_t offset , size_t size , enum dma_data_direction dir ) { struct dma_map_ops *ops ; struct dma_map_ops *tmp ; dma_addr_t addr ; void *tmp___0 ; int tmp___1 ; long tmp___2 ; { tmp = get_dma_ops(dev); ops = tmp; tmp___0 = lowmem_page_address((struct page const *)page); kmemcheck_mark_initialized(tmp___0 + offset, (unsigned int )size); tmp___1 = valid_dma_direction((int )dir); tmp___2 = ldv__builtin_expect(tmp___1 == 0, 0L); if (tmp___2 != 0L) { __asm__ volatile ("1:\tud2\n.pushsection __bug_table,\"a\"\n2:\t.long 1b - 2b, %c0 - 2b\n\t.word %c1, 0\n\t.org 2b+%c2\n.popsection": : "i" ((char *)"include/asm-generic/dma-mapping-common.h"), "i" (79), "i" (12UL)); ldv_22119: ; goto ldv_22119; } else { } addr = (*(ops->map_page))(dev, page, offset, size, dir, 0); debug_dma_map_page(dev, page, offset, size, (int )dir, addr, 0); return (addr); } } __inline static void dma_unmap_page(struct device *dev , dma_addr_t addr , size_t size , enum dma_data_direction dir ) { struct dma_map_ops *ops ; struct dma_map_ops *tmp ; int tmp___0 ; long tmp___1 ; { tmp = get_dma_ops(dev); ops = tmp; tmp___0 = valid_dma_direction((int )dir); tmp___1 = ldv__builtin_expect(tmp___0 == 0, 0L); if (tmp___1 != 0L) { __asm__ volatile ("1:\tud2\n.pushsection __bug_table,\"a\"\n2:\t.long 1b - 2b, %c0 - 2b\n\t.word %c1, 0\n\t.org 2b+%c2\n.popsection": : "i" ((char *)"include/asm-generic/dma-mapping-common.h"), "i" (91), "i" (12UL)); ldv_22127: ; goto ldv_22127; } else { } if ((unsigned long )ops->unmap_page != (unsigned long )((void (*)(struct device * , dma_addr_t , size_t , enum dma_data_direction , struct dma_attrs * ))0)) { (*(ops->unmap_page))(dev, addr, size, dir, 0); } else { } debug_dma_unmap_page(dev, addr, size, (int )dir, 0); return; } } extern int dma_supported(struct device * , u64 ) ; extern int dma_set_mask(struct device * , u64 ) ; __inline static unsigned long dma_alloc_coherent_mask(struct device *dev , gfp_t gfp ) { unsigned long dma_mask ; { dma_mask = 0UL; dma_mask = (unsigned long )dev->coherent_dma_mask; if (dma_mask == 0UL) { if ((int )gfp & 1) { dma_mask = 16777215UL; } else { dma_mask = 4294967295UL; } } else { } return (dma_mask); } } __inline static gfp_t dma_alloc_coherent_gfp_flags(struct device *dev , gfp_t gfp ) { unsigned long dma_mask ; unsigned long tmp ; { tmp = dma_alloc_coherent_mask(dev, gfp); dma_mask = tmp; if ((unsigned long long )dma_mask <= 16777215ULL) { gfp = gfp | 1U; } else { } if ((unsigned long long )dma_mask <= 4294967295ULL && (gfp & 1U) == 0U) { gfp = gfp | 4U; } else { } return (gfp); } } __inline static void *dma_alloc_attrs(struct device *dev , size_t size , dma_addr_t *dma_handle , gfp_t gfp , struct dma_attrs *attrs ) { struct dma_map_ops *ops ; struct dma_map_ops *tmp ; void *memory ; int tmp___0 ; gfp_t tmp___1 ; { tmp = get_dma_ops(dev); ops = tmp; gfp = gfp & 4294967288U; if ((unsigned long )dev == (unsigned long )((struct device *)0)) { dev = & x86_dma_fallback_dev; } else { } tmp___0 = is_device_dma_capable(dev); if (tmp___0 == 0) { return (0); } else { } if ((unsigned long )ops->alloc == (unsigned long )((void *(*)(struct device * , size_t , dma_addr_t * , gfp_t , struct dma_attrs * ))0)) { return (0); } else { } tmp___1 = dma_alloc_coherent_gfp_flags(dev, gfp); memory = (*(ops->alloc))(dev, size, dma_handle, tmp___1, attrs); debug_dma_alloc_coherent(dev, size, *dma_handle, memory); return (memory); } } __inline static void dma_free_attrs(struct device *dev , size_t size , void *vaddr , dma_addr_t bus , struct dma_attrs *attrs ) { struct dma_map_ops *ops ; struct dma_map_ops *tmp ; int __ret_warn_on ; unsigned long _flags ; int tmp___0 ; long tmp___1 ; { tmp = get_dma_ops(dev); ops = tmp; _flags = arch_local_save_flags(); tmp___0 = arch_irqs_disabled_flags(_flags); __ret_warn_on = tmp___0 != 0; tmp___1 = ldv__builtin_expect(__ret_warn_on != 0, 0L); if (tmp___1 != 0L) { warn_slowpath_null("/work/ldvuser/zakharov_benchmarks/bench/cpa/inst/current/envs/linux-3.8-rc1/linux-3.8-rc1/arch/x86/include/asm/dma-mapping.h", 166); } else { } ldv__builtin_expect(__ret_warn_on != 0, 0L); debug_dma_free_coherent(dev, size, vaddr, bus); if ((unsigned long )ops->free != (unsigned long )((void (*)(struct device * , size_t , void * , dma_addr_t , struct dma_attrs * ))0)) { (*(ops->free))(dev, size, vaddr, bus, attrs); } else { } return; } } __inline static int dma_set_coherent_mask(struct device *dev , u64 mask ) { int tmp ; { tmp = dma_supported(dev, mask); if (tmp == 0) { return (-5); } else { } dev->coherent_dma_mask = mask; return (0); } } __inline static void *pci_alloc_consistent(struct pci_dev *hwdev , size_t size , dma_addr_t *dma_handle ) { struct device *tmp ; void *tmp___0 ; { if ((unsigned long )hwdev != (unsigned long )((struct pci_dev *)0)) { tmp = & hwdev->dev; } else { tmp = 0; } tmp___0 = dma_alloc_attrs(tmp, size, dma_handle, 32U, 0); return (tmp___0); } } __inline static void pci_free_consistent(struct pci_dev *hwdev , size_t size , void *vaddr , dma_addr_t dma_handle ) { struct device *tmp ; { if ((unsigned long )hwdev != (unsigned long )((struct pci_dev *)0)) { tmp = & hwdev->dev; } else { tmp = 0; } dma_free_attrs(tmp, size, vaddr, dma_handle, 0); return; } } __inline static dma_addr_t pci_map_single(struct pci_dev *hwdev , void *ptr , size_t size , int direction ) { struct device *tmp ; dma_addr_t tmp___0 ; { if ((unsigned long )hwdev != (unsigned long )((struct pci_dev *)0)) { tmp = & hwdev->dev; } else { tmp = 0; } tmp___0 = dma_map_single_attrs(tmp, ptr, size, (enum dma_data_direction )direction, 0); return (tmp___0); } } __inline static void pci_unmap_single(struct pci_dev *hwdev , dma_addr_t dma_addr , size_t size , int direction ) { struct device *tmp ; { if ((unsigned long )hwdev != (unsigned long )((struct pci_dev *)0)) { tmp = & hwdev->dev; } else { tmp = 0; } dma_unmap_single_attrs(tmp, dma_addr, size, (enum dma_data_direction )direction, 0); return; } } __inline static dma_addr_t pci_map_page(struct pci_dev *hwdev , struct page *page , unsigned long offset , size_t size , int direction ) { struct device *tmp ; dma_addr_t tmp___0 ; { if ((unsigned long )hwdev != (unsigned long )((struct pci_dev *)0)) { tmp = & hwdev->dev; } else { tmp = 0; } tmp___0 = dma_map_page(tmp, page, offset, size, (enum dma_data_direction )direction); return (tmp___0); } } __inline static void pci_unmap_page(struct pci_dev *hwdev , dma_addr_t dma_address , size_t size , int direction ) { struct device *tmp ; { if ((unsigned long )hwdev != (unsigned long )((struct pci_dev *)0)) { tmp = & hwdev->dev; } else { tmp = 0; } dma_unmap_page(tmp, dma_address, size, (enum dma_data_direction )direction); return; } } __inline static int pci_set_dma_mask(struct pci_dev *dev , u64 mask ) { int tmp ; { tmp = dma_set_mask(& dev->dev, mask); return (tmp); } } __inline static int pci_set_consistent_dma_mask(struct pci_dev *dev , u64 mask ) { int tmp ; { tmp = dma_set_coherent_mask(& dev->dev, mask); return (tmp); } } __inline static void *pci_get_drvdata(struct pci_dev *pdev ) { void *tmp ; { tmp = dev_get_drvdata((struct device const *)(& pdev->dev)); return (tmp); } } __inline static void pci_set_drvdata(struct pci_dev *pdev , void *data ) { { dev_set_drvdata(& pdev->dev, data); return; } } __inline static char const *pci_name(struct pci_dev const *pdev ) { char const *tmp ; { tmp = dev_name(& pdev->dev); return (tmp); } } extern void pci_disable_link_state(struct pci_dev * , int ) ; extern void __const_udelay(unsigned long ) ; extern void msleep(unsigned int ) ; extern void usleep_range(unsigned long , unsigned long ) ; extern bool capable(int ) ; extern int register_blkdev(unsigned int , char const * ) ; extern void unregister_blkdev(unsigned int , char const * ) ; extern long schedule_timeout_uninterruptible(long ) ; extern void schedule(void) ; extern int wake_up_process(struct task_struct * ) ; extern struct proc_dir_entry *proc_create_data(char const * , umode_t , struct proc_dir_entry * , struct file_operations const * , void * ) ; extern void remove_proc_entry(char const * , struct proc_dir_entry * ) ; extern struct proc_dir_entry *proc_mkdir(char const * , struct proc_dir_entry * ) ; __inline static struct proc_inode *PROC_I(struct inode const *inode ) { struct inode const *__mptr ; { __mptr = inode; return ((struct proc_inode *)__mptr + 0xffffffffffffffc0UL); } } __inline static struct proc_dir_entry *PDE(struct inode const *inode ) { struct proc_inode *tmp ; { tmp = PROC_I(inode); return (tmp->pde); } } extern int seq_open(struct file * , struct seq_operations const * ) ; extern ssize_t seq_read(struct file * , char * , size_t , loff_t * ) ; extern loff_t seq_lseek(struct file * , loff_t , int ) ; extern int seq_release(struct inode * , struct file * ) ; extern int seq_printf(struct seq_file * , char const * , ...) ; __inline static void *compat_ptr(compat_uptr_t uptr ) { { return ((void *)((unsigned long )uptr)); } } extern void *compat_alloc_user_space(unsigned long ) ; extern void add_disk(struct gendisk * ) ; extern void del_gendisk(struct gendisk * ) ; __inline static void set_capacity(struct gendisk *disk , sector_t size ) { { disk->part0.nr_sects = size; return; } } extern struct gendisk *alloc_disk(int ) ; extern void put_disk(struct gendisk * ) ; extern int scsi_cmd_blk_ioctl(struct block_device * , fmode_t , unsigned int , void * ) ; extern void blk_start_queue(struct request_queue * ) ; extern void blk_stop_queue(struct request_queue * ) ; __inline static sector_t blk_rq_pos(struct request const *rq ) { { return ((sector_t )rq->__sector); } } __inline static unsigned int blk_rq_bytes(struct request const *rq ) { { return ((unsigned int )rq->__data_len); } } __inline static unsigned int blk_rq_sectors(struct request const *rq ) { unsigned int tmp ; { tmp = blk_rq_bytes(rq); return (tmp >> 9); } } extern struct request *blk_peek_request(struct request_queue * ) ; extern void blk_start_request(struct request * ) ; extern void blk_end_request_all(struct request * , int ) ; extern void blk_complete_request(struct request * ) ; extern struct request_queue *blk_init_queue(request_fn_proc * , spinlock_t * ) ; extern void blk_cleanup_queue(struct request_queue * ) ; extern void blk_queue_bounce_limit(struct request_queue * , u64 ) ; extern void blk_queue_max_hw_sectors(struct request_queue * , unsigned int ) ; extern void blk_queue_max_segments(struct request_queue * , unsigned short ) ; extern void blk_queue_logical_block_size(struct request_queue * , unsigned short ) ; extern void blk_queue_softirq_done(struct request_queue * , softirq_done_fn * ) ; extern int blk_rq_map_sg(struct request_queue * , struct request * , struct scatterlist * ) ; extern char const *scsi_device_type(unsigned int ) ; extern struct task_struct *kthread_create_on_node(int (*)(void * ) , void * , int , char const * , ...) ; extern int kthread_stop(struct task_struct * ) ; extern bool kthread_should_stop(void) ; static int cciss_tape_cmds = 6; static int cciss_simple_mode ; static struct mutex cciss_mutex = {{1}, {{{{{0U}}, 3735899821U, 4294967295U, 0xffffffffffffffffUL, {0, {0, 0}, "cciss_mutex.wait_lock", 0, 0UL}}}}, {& cciss_mutex.wait_list, & cciss_mutex.wait_list}, 0, 0, (void *)(& cciss_mutex), {0, {0, 0}, "cciss_mutex", 0, 0UL}}; static struct proc_dir_entry *proc_cciss ; static void SA5_submit_command(ctlr_info_t *h , CommandList_struct *c ) { { writel(c->busaddr, (void volatile *)h->vaddr + 64U); readl((void const volatile *)h->vaddr + 176U); h->commands_outstanding = h->commands_outstanding + 1; if (h->commands_outstanding > h->max_outstanding) { h->max_outstanding = h->commands_outstanding; } else { } return; } } static void SA5_intr_mask(ctlr_info_t *h , unsigned long val ) { { if (val != 0UL) { h->interrupts_enabled = 1; writel(0U, (void volatile *)h->vaddr + 52U); readl((void const volatile *)h->vaddr + 52U); } else { h->interrupts_enabled = 0; writel(8U, (void volatile *)h->vaddr + 52U); readl((void const volatile *)h->vaddr + 52U); } return; } } static void SA5B_intr_mask(ctlr_info_t *h , unsigned long val ) { { if (val != 0UL) { h->interrupts_enabled = 1; writel(0U, (void volatile *)h->vaddr + 52U); readl((void const volatile *)h->vaddr + 52U); } else { h->interrupts_enabled = 0; writel(4U, (void volatile *)h->vaddr + 52U); readl((void const volatile *)h->vaddr + 52U); } return; } } static void SA5_performant_intr_mask(ctlr_info_t *h , unsigned long val ) { { if (val != 0UL) { h->interrupts_enabled = 1; writel(0U, (void volatile *)h->vaddr + 52U); readl((void const volatile *)h->vaddr + 52U); } else { h->interrupts_enabled = 0; writel(5U, (void volatile *)h->vaddr + 52U); readl((void const volatile *)h->vaddr + 52U); } return; } } static unsigned long SA5_fifo_full(ctlr_info_t *h ) { { if (h->commands_outstanding >= h->max_commands) { return (1UL); } else { return (0UL); } } } static unsigned long SA5_completed(ctlr_info_t *h ) { unsigned long register_value ; unsigned int tmp ; { tmp = readl((void const volatile *)h->vaddr + 68U); register_value = (unsigned long )tmp; if (register_value != 4294967295UL) { h->commands_outstanding = h->commands_outstanding - 1; } else { } return (register_value); } } static unsigned long SA5_performant_completed(ctlr_info_t *h ) { unsigned long register_value ; unsigned int tmp ; unsigned int tmp___0 ; { register_value = 4294967295UL; tmp = readl((void const volatile *)h->vaddr + 156U); register_value = (unsigned long )tmp; if (h->msi_vector == 0U && h->msix_vector == 0U) { writel(1U, (void volatile *)h->vaddr + 160U); tmp___0 = readl((void const volatile *)h->vaddr + 156U); register_value = (unsigned long )tmp___0; } else { } if ((*(h->reply_pool_head) & 1ULL) == (u64 )h->reply_pool_wraparound) { register_value = (unsigned long )*(h->reply_pool_head); h->reply_pool_head = h->reply_pool_head + 1; h->commands_outstanding = h->commands_outstanding - 1; } else { register_value = 4294967295UL; } if ((unsigned long )h->reply_pool_head == (unsigned long )(h->reply_pool + (unsigned long )h->max_commands)) { h->reply_pool_head = h->reply_pool; h->reply_pool_wraparound = (unsigned int )h->reply_pool_wraparound ^ 1U; } else { } return (register_value); } } static bool SA5_intr_pending(ctlr_info_t *h ) { unsigned long register_value ; unsigned int tmp ; { tmp = readl((void const volatile *)h->vaddr + 48U); register_value = (unsigned long )tmp; if ((register_value & 8UL) != 0UL) { return (1); } else { } return (0); } } static bool SA5B_intr_pending(ctlr_info_t *h ) { unsigned long register_value ; unsigned int tmp ; { tmp = readl((void const volatile *)h->vaddr + 48U); register_value = (unsigned long )tmp; if ((register_value & 4UL) != 0UL) { return (1); } else { } return (0); } } static bool SA5_performant_intr_pending(ctlr_info_t *h ) { unsigned long register_value ; unsigned int tmp ; unsigned int tmp___0 ; { tmp = readl((void const volatile *)h->vaddr + 48U); register_value = (unsigned long )tmp; if (register_value == 0UL) { return (0); } else { } if (h->msi_vector != 0U || h->msix_vector != 0U) { return (1); } else { } tmp___0 = readl((void const volatile *)h->vaddr + 156U); register_value = (unsigned long )tmp___0; return ((register_value & 1UL) != 0UL); } } static struct access_method SA5_access = {& SA5_submit_command, & SA5_intr_mask, & SA5_fifo_full, & SA5_intr_pending, & SA5_completed}; static struct access_method SA5B_access = {& SA5_submit_command, & SA5B_intr_mask, & SA5_fifo_full, & SA5B_intr_pending, & SA5_completed}; static struct access_method SA5_performant_access = {& SA5_submit_command, & SA5_performant_intr_mask, & SA5_fifo_full, & SA5_performant_intr_pending, & SA5_performant_completed}; static struct pci_device_id const cciss_pci_device_id[21U] = { {3601U, 45152U, 3601U, 16496U, 0U, 0U, 0UL}, {3601U, 45432U, 3601U, 16512U, 0U, 0U, 0UL}, {3601U, 45432U, 3601U, 16514U, 0U, 0U, 0UL}, {3601U, 45432U, 3601U, 16515U, 0U, 0U, 0UL}, {3601U, 70U, 3601U, 16529U, 0U, 0U, 0UL}, {3601U, 70U, 3601U, 16538U, 0U, 0U, 0UL}, {3601U, 70U, 3601U, 16539U, 0U, 0U, 0UL}, {3601U, 70U, 3601U, 16540U, 0U, 0U, 0UL}, {3601U, 70U, 3601U, 16541U, 0U, 0U, 0UL}, {4156U, 12832U, 4156U, 12837U, 0U, 0U, 0UL}, {4156U, 12848U, 4156U, 12835U, 0U, 0U, 0UL}, {4156U, 12848U, 4156U, 12852U, 0U, 0U, 0UL}, {4156U, 12848U, 4156U, 12853U, 0U, 0U, 0UL}, {4156U, 12856U, 4156U, 12817U, 0U, 0U, 0UL}, {4156U, 12856U, 4156U, 12818U, 0U, 0U, 0UL}, {4156U, 12856U, 4156U, 12819U, 0U, 0U, 0UL}, {4156U, 12856U, 4156U, 12820U, 0U, 0U, 0UL}, {4156U, 12856U, 4156U, 12821U, 0U, 0U, 0UL}, {4156U, 12848U, 4156U, 12855U, 0U, 0U, 0UL}, {4156U, 12848U, 4156U, 12861U, 0U, 0U, 0UL}, {0U, 0U, 0U, 0U, 0U, 0U, 0UL}}; struct pci_device_id const __mod_pci_device_table ; static struct board_type products[22U] = { {1081085457U, (char *)"Smart Array 5300", & SA5_access, 0}, {1082134033U, (char *)"Smart Array 5i", & SA5B_access, 0}, {1082265105U, (char *)"Smart Array 532", & SA5B_access, 0}, {1082330641U, (char *)"Smart Array 5312", & SA5B_access, 0}, {1083837969U, (char *)"Smart Array 641", & SA5_access, 0}, {1083903505U, (char *)"Smart Array 642", & SA5_access, 0}, {1083969041U, (char *)"Smart Array 6400", & SA5_access, 0}, {1084034577U, (char *)"Smart Array 6400 EM", & SA5_access, 0}, {1083248145U, (char *)"Smart Array 6i", & SA5_access, 0}, {841289788U, (char *)"Smart Array P600", & SA5_access, 0}, {841158716U, (char *)"Smart Array P800", & SA5_access, 0}, {842272828U, (char *)"Smart Array P400", & SA5_access, 0}, {842338364U, (char *)"Smart Array P400i", & SA5_access, 0}, {839979068U, (char *)"Smart Array E200i", & SA5_access, 0}, {840044604U, (char *)"Smart Array E200", & SA5_access, 0}, {840110140U, (char *)"Smart Array E200i", & SA5_access, 0}, {840175676U, (char *)"Smart Array E200i", & SA5_access, 0}, {840241212U, (char *)"Smart Array E200i", & SA5_access, 0}, {842469436U, (char *)"Smart Array E500", & SA5_access, 0}, {841158716U, (char *)"Smart Array P800", & SA5_access, 0}, {842272828U, (char *)"Smart Array P400", & SA5_access, 0}, {842862652U, (char *)"Smart Array P700m", & SA5_access, 0}}; static ctlr_info_t *hba[32U] ; static struct task_struct *cciss_scan_thread ; static struct mutex scan_mutex = {{1}, {{{{{0U}}, 3735899821U, 4294967295U, 0xffffffffffffffffUL, {0, {0, 0}, "scan_mutex.wait_lock", 0, 0UL}}}}, {& scan_mutex.wait_list, & scan_mutex.wait_list}, 0, 0, (void *)(& scan_mutex), {0, {0, 0}, "scan_mutex", 0, 0UL}}; static struct list_head scan_q = {& scan_q, & scan_q}; static void do_cciss_request(struct request_queue *q ) ; static irqreturn_t do_cciss_intx(int irq , void *dev_id ) ; static irqreturn_t do_cciss_msix_intr(int irq , void *dev_id ) ; static int cciss_open(struct block_device *bdev , fmode_t mode ) ; static int cciss_unlocked_open(struct block_device *bdev , fmode_t mode ) ; static int cciss_release(struct gendisk *disk , fmode_t mode ) ; static int do_ioctl(struct block_device *bdev , fmode_t mode , unsigned int cmd , unsigned long arg ) ; static int cciss_ioctl(struct block_device *bdev , fmode_t mode , unsigned int cmd , unsigned long arg ) ; static int cciss_getgeo(struct block_device *bdev , struct hd_geometry *geo ) ; static int cciss_revalidate(struct gendisk *disk ) ; static int rebuild_lun_table(ctlr_info_t *h , int first_time , int via_ioctl ) ; static int deregister_disk(ctlr_info_t *h , int drv_index , int clear_all , int via_ioctl ) ; static void cciss_read_capacity(ctlr_info_t *h , int logvol , sector_t *total_size , unsigned int *block_size___0 ) ; static void cciss_read_capacity_16(ctlr_info_t *h , int logvol , sector_t *total_size , unsigned int *block_size___0 ) ; static void cciss_geometry_inquiry(ctlr_info_t *h , int logvol , sector_t total_size , unsigned int block_size___0 , InquiryData_struct *inq_buff , drive_info_struct *drv ) ; static void cciss_interrupt_mode(ctlr_info_t *h ) ; static int cciss_enter_simple_mode(struct ctlr_info *h ) ; static void start_io(ctlr_info_t *h ) ; static int sendcmd_withirq(ctlr_info_t *h , __u8 cmd , void *buff , size_t size , __u8 page_code , unsigned char *scsi3addr , int cmd_type ) ; static int sendcmd_withirq_core(ctlr_info_t *h , CommandList_struct *c , int attempt_retry ) ; static int process_sendcmd_error(ctlr_info_t *h , CommandList_struct *c ) ; static int add_to_scan_list(struct ctlr_info *h ) ; static int scan_thread(void *data ) ; static int check_for_unit_attention(ctlr_info_t *h , CommandList_struct *c ) ; static void cciss_hba_release(struct device *dev ) ; static void cciss_device_release(struct device *dev ) ; static void cciss_free_gendisk(ctlr_info_t *h , int drv_index ) ; static void cciss_free_drive_info(ctlr_info_t *h , int drv_index ) ; __inline static u32 next_command(ctlr_info_t *h ) ; static int cciss_find_cfg_addrs(struct pci_dev *pdev , void *vaddr , u32 *cfg_base_addr , u64 *cfg_base_addr_index , u64 *cfg_offset ) ; static int cciss_pci_find_memory_BAR(struct pci_dev *pdev , unsigned long *memory_bar ) ; __inline static u32 cciss_tag_discard_error_bits(ctlr_info_t *h , u32 tag ) ; static int write_driver_ver_to_cfgtable(CfgTable_struct *cfgtable ) ; static void calc_bucket_map(int *bucket , int num_buckets , int nsgs , int *bucket_map ) ; static void cciss_put_controller_into_performant_mode(ctlr_info_t *h ) ; static void cciss_procinit(ctlr_info_t *h ) ; static int cciss_compat_ioctl(struct block_device *bdev , fmode_t mode , unsigned int cmd , unsigned long arg ) ; static struct block_device_operations const cciss_fops = {& cciss_unlocked_open, & cciss_release, & do_ioctl, & cciss_compat_ioctl, 0, 0, 0, 0, & cciss_revalidate, & cciss_getgeo, 0, & __this_module}; static void set_performant_mode(ctlr_info_t *h , CommandList_struct *c ) { long tmp ; { tmp = ldv__builtin_expect((h->transMethod & 4UL) != 0UL, 1L); if (tmp != 0L) { c->busaddr = (c->busaddr | (*(h->blockFetchTable + (unsigned long )c->Header.SGList) << 1)) | 1U; } else { } return; } } __inline static void addQ(struct list_head *list , CommandList_struct *c ) { { list_add_tail(& c->list, list); return; } } __inline static void removeQ(CommandList_struct *c ) { int __ret_warn_on ; int tmp ; long tmp___0 ; long tmp___1 ; { tmp = list_empty((struct list_head const *)(& c->list)); __ret_warn_on = tmp != 0; tmp___0 = ldv__builtin_expect(__ret_warn_on != 0, 0L); if (tmp___0 != 0L) { warn_slowpath_null("/work/ldvuser/zakharov_benchmarks/bench/cpa/work/current--X--drivers/block/cciss.ko--X--x1linux-3.8-rc1--X--32_7a--X--cpachecker/linux-3.8-rc1/csd_deg_dscv/12/dscv_tempdir/dscv/ri/32_7a/drivers/block/cciss.c.prepared", 349); } else { } tmp___1 = ldv__builtin_expect(__ret_warn_on != 0, 0L); if (tmp___1 != 0L) { c->cmd_type = 255; return; } else { } list_del_init(& c->list); return; } } static void enqueue_cmd_and_start_io(ctlr_info_t *h , CommandList_struct *c ) { unsigned long flags ; raw_spinlock_t *tmp ; { set_performant_mode(h, c); tmp = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp); addQ(& h->reqQ, c); h->Qdepth = h->Qdepth + 1U; if (h->Qdepth > h->maxQsinceinit) { h->maxQsinceinit = h->Qdepth; } else { } start_io(h); spin_unlock_irqrestore(& h->lock, flags); return; } } static void cciss_free_sg_chain_blocks(SGDescriptor_struct **cmd_sg_list , int nr_cmds ) { int i ; { if ((unsigned long )cmd_sg_list == (unsigned long )((SGDescriptor_struct **)0)) { return; } else { } i = 0; goto ldv_34961; ldv_34960: kfree((void const *)*(cmd_sg_list + (unsigned long )i)); *(cmd_sg_list + (unsigned long )i) = 0; i = i + 1; ldv_34961: ; if (i < nr_cmds) { goto ldv_34960; } else { goto ldv_34962; } ldv_34962: kfree((void const *)cmd_sg_list); return; } } static SGDescriptor_struct **cciss_allocate_sg_chain_blocks(ctlr_info_t *h , int chainsize , int nr_cmds ) { int j ; SGDescriptor_struct **cmd_sg_list ; void *tmp ; void *tmp___0 ; { if (chainsize <= 0) { return (0); } else { } tmp = kmalloc((unsigned long )nr_cmds * 8UL, 208U); cmd_sg_list = (SGDescriptor_struct **)tmp; if ((unsigned long )cmd_sg_list == (unsigned long )((SGDescriptor_struct **)0)) { return (0); } else { } j = 0; goto ldv_34972; ldv_34971: tmp___0 = kmalloc((unsigned long )chainsize * 16UL, 208U); *(cmd_sg_list + (unsigned long )j) = (SGDescriptor_struct *)tmp___0; if ((unsigned long )*(cmd_sg_list + (unsigned long )j) == (unsigned long )((SGDescriptor_struct *)0)) { dev_err((struct device const *)(& (h->pdev)->dev), "Cannot get memory for s/g chains.\n"); goto clean; } else { } j = j + 1; ldv_34972: ; if (j < nr_cmds) { goto ldv_34971; } else { goto ldv_34973; } ldv_34973: ; return (cmd_sg_list); clean: cciss_free_sg_chain_blocks(cmd_sg_list, nr_cmds); return (0); } } static void cciss_unmap_sg_chain_block(ctlr_info_t *h , CommandList_struct *c ) { SGDescriptor_struct *chain_sg ; u64bit temp64 ; { if ((int )c->Header.SGTotal <= h->max_cmd_sgentries) { return; } else { } chain_sg = (SGDescriptor_struct *)(& c->SG) + ((unsigned long )h->max_cmd_sgentries + 0xffffffffffffffffUL); temp64.val32.lower = chain_sg->Addr.lower; temp64.val32.upper = chain_sg->Addr.upper; pci_unmap_single(h->pdev, temp64.val, (size_t )chain_sg->Len, 1); return; } } static void cciss_map_sg_chain_block(ctlr_info_t *h , CommandList_struct *c , SGDescriptor_struct *chain_block , int len ) { SGDescriptor_struct *chain_sg ; u64bit temp64 ; { chain_sg = (SGDescriptor_struct *)(& c->SG) + ((unsigned long )h->max_cmd_sgentries + 0xffffffffffffffffUL); chain_sg->Ext = 2147483648U; chain_sg->Len = (__u32 )len; temp64.val = pci_map_single(h->pdev, (void *)chain_block, (size_t )len, 1); chain_sg->Addr.lower = temp64.val32.lower; chain_sg->Addr.upper = temp64.val32.upper; return; } } extern int scsi_dma_map(struct scsi_cmnd * ) ; extern void scsi_dma_unmap(struct scsi_cmnd * ) ; __inline static unsigned int scsi_sg_count(struct scsi_cmnd *cmd ) { { return (cmd->sdb.table.nents); } } __inline static struct scatterlist *scsi_sglist(struct scsi_cmnd *cmd ) { { return (cmd->sdb.table.sgl); } } __inline static void scsi_set_resid(struct scsi_cmnd *cmd , int resid ) { { cmd->sdb.resid = resid; return; } } extern int scsi_add_device(struct Scsi_Host * , uint , uint , uint ) ; extern void scsi_remove_device(struct scsi_device * ) ; extern void scsi_device_put(struct scsi_device * ) ; extern struct scsi_device *scsi_device_lookup(struct Scsi_Host * , uint , uint , uint ) ; extern struct Scsi_Host *scsi_host_alloc(struct scsi_host_template * , int ) ; struct Scsi_Host *ldv_scsi_host_alloc_9(struct scsi_host_template *sht , int privsize ) ; extern int scsi_add_host_with_dma(struct Scsi_Host * , struct device * , struct device * ) ; int ldv_scsi_add_host_with_dma_8(struct Scsi_Host *shost , struct device *dev , struct device *dma_dev ) ; extern void scsi_scan_host(struct Scsi_Host * ) ; extern void scsi_remove_host(struct Scsi_Host * ) ; void ldv_scsi_remove_host_10(struct Scsi_Host *shost ) ; extern void scsi_host_put(struct Scsi_Host * ) ; extern void scsi_cmd_get_serial(struct Scsi_Host * , struct scsi_cmnd * ) ; __inline static int scsi_add_host(struct Scsi_Host *host , struct device *dev ) { int tmp ; { tmp = ldv_scsi_add_host_with_dma_8(host, dev, dev); return (tmp); } } static int fill_cmd(ctlr_info_t *h , CommandList_struct *c , __u8 cmd , void *buff , size_t size , __u8 page_code , unsigned char *scsi3addr , int cmd_type ) ; static CommandList_struct *cmd_alloc(ctlr_info_t *h ) ; static CommandList_struct *cmd_special_alloc(ctlr_info_t *h ) ; static void cmd_free(ctlr_info_t *h , CommandList_struct *c ) ; static void cmd_special_free(ctlr_info_t *h , CommandList_struct *c ) ; static int cciss_scsi_proc_info(struct Scsi_Host *sh , char *buffer , char **start , off_t offset , int length , int func ) ; static int cciss_scsi_queue_command(struct Scsi_Host *shost , struct scsi_cmnd *cmd ) ; static int cciss_eh_device_reset_handler(struct scsi_cmnd *scsicmd ) ; static int cciss_eh_abort_handler(struct scsi_cmnd *scsicmd ) ; static struct cciss_scsi_hba_t ccissscsi[32U] = { {(char *)"cciss0", 0, {{0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}}}, {(char *)"cciss1", 0, {{0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}}}, {(char *)"cciss2", 0, {{0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}}}, {(char *)"cciss3", 0, {{0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}}}, {(char *)"cciss4", 0, {{0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}}}, {(char *)"cciss5", 0, {{0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}}}, {(char *)"cciss6", 0, {{0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}}}, {(char *)"cciss7", 0, {{0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}, {0, 0, 0, 0, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}, {(unsigned char)0, (unsigned char)0, (unsigned char)0, (unsigned char)0}}}}}; static struct scsi_host_template cciss_driver_template = {& __this_module, "cciss", 0, 0, 0, 0, 0, & cciss_scsi_queue_command, 0, & cciss_eh_abort_handler, & cciss_eh_device_reset_handler, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, & cciss_scsi_proc_info, 0, 0, "cciss", 0, 0, 7, (unsigned short)0, (unsigned short)0, (unsigned short)0, 0UL, 1, (unsigned char)0, (unsigned char)0, (unsigned char)0, 0U, (unsigned char)0, (unsigned char)0, (unsigned char)0, 0U, 0, 0, {0, 0}, 0ULL}; static CommandList_struct *scsi_cmd_alloc(ctlr_info_t *h ) { struct cciss_scsi_cmd_stack_elem_t *c ; struct cciss_scsi_adapter_data_t *sa ; struct cciss_scsi_cmd_stack_t *stk ; u64bit temp64 ; { sa = h->scsi_ctlr; stk = & sa->cmd_stack; if (stk->top < 0) { return (0); } else { } c = *(stk->elem + (unsigned long )stk->top); memset((void *)(& c->cmd), 0, 640UL); memset((void *)(& c->Err), 0, 48UL); c->cmd.busaddr = c->busaddr; c->cmd.cmdindex = (long )c->cmdindex; temp64.val = (unsigned long long )((unsigned long )c->busaddr + 640UL); stk->top = stk->top - 1; c->cmd.ErrDesc.Addr.lower = temp64.val32.lower; c->cmd.ErrDesc.Addr.upper = temp64.val32.upper; c->cmd.ErrDesc.Len = 48U; c->cmd.ctlr = h->ctlr; c->cmd.err_info = & c->Err; return ((CommandList_struct *)c); } } static void scsi_cmd_free(ctlr_info_t *h , CommandList_struct *c ) { struct cciss_scsi_adapter_data_t *sa ; struct cciss_scsi_cmd_stack_t *stk ; { sa = h->scsi_ctlr; stk = & sa->cmd_stack; stk->top = stk->top + 1; if (stk->top >= stk->nelems) { dev_err((struct device const *)(& (h->pdev)->dev), "scsi_cmd_free called too many times.\n"); __asm__ volatile ("1:\tud2\n.pushsection __bug_table,\"a\"\n2:\t.long 1b - 2b, %c0 - 2b\n\t.word %c1, 0\n\t.org 2b+%c2\n.popsection": : "i" ((char *)"/work/ldvuser/zakharov_benchmarks/bench/cpa/inst/current/envs/linux-3.8-rc1/linux-3.8-rc1/drivers/block/cciss_scsi.c"), "i" (193), "i" (12UL)); ldv_35950: ; goto ldv_35950; } else { } *(stk->elem + (unsigned long )stk->top) = (struct cciss_scsi_cmd_stack_elem_t *)c; return; } } static int scsi_cmd_stack_setup(ctlr_info_t *h , struct cciss_scsi_adapter_data_t *sa ) { int i ; struct cciss_scsi_cmd_stack_t *stk ; size_t size ; void *tmp ; void *tmp___0 ; { stk = & sa->cmd_stack; stk->nelems = cciss_tape_cmds + 2; sa->cmd_sg_list = cciss_allocate_sg_chain_blocks(h, h->chainsize, stk->nelems); if ((unsigned long )sa->cmd_sg_list == (unsigned long )((SGDescriptor_struct **)0) && h->chainsize > 0) { return (-12); } else { } size = (unsigned long )stk->nelems * 704UL; tmp = pci_alloc_consistent(h->pdev, size, & stk->cmd_pool_handle); stk->pool = (struct cciss_scsi_cmd_stack_elem_t *)tmp; if ((unsigned long )stk->pool == (unsigned long )((struct cciss_scsi_cmd_stack_elem_t *)0)) { cciss_free_sg_chain_blocks(sa->cmd_sg_list, stk->nelems); sa->cmd_sg_list = 0; return (-12); } else { } tmp___0 = kmalloc((unsigned long )stk->nelems * 8UL, 208U); stk->elem = (struct cciss_scsi_cmd_stack_elem_t **)tmp___0; if ((unsigned long )stk->elem == (unsigned long )((struct cciss_scsi_cmd_stack_elem_t **)0)) { pci_free_consistent(h->pdev, size, (void *)stk->pool, stk->cmd_pool_handle); return (-1); } else { } i = 0; goto ldv_35959; ldv_35958: *(stk->elem + (unsigned long )i) = stk->pool + (unsigned long )i; (*(stk->elem + (unsigned long )i))->busaddr = (unsigned int )stk->cmd_pool_handle + (unsigned int )((unsigned long )i) * 704U; (*(stk->elem + (unsigned long )i))->cmdindex = i; i = i + 1; ldv_35959: ; if (stk->nelems > i) { goto ldv_35958; } else { goto ldv_35960; } ldv_35960: stk->top = stk->nelems + -1; return (0); } } static void scsi_cmd_stack_free(ctlr_info_t *h ) { struct cciss_scsi_adapter_data_t *sa ; struct cciss_scsi_cmd_stack_t *stk ; size_t size ; { sa = h->scsi_ctlr; stk = & sa->cmd_stack; if (stk->top != stk->nelems + -1) { dev_warn((struct device const *)(& (h->pdev)->dev), "bug: %d scsi commands are still outstanding.\n", stk->nelems - stk->top); } else { } size = (unsigned long )stk->nelems * 704UL; pci_free_consistent(h->pdev, size, (void *)stk->pool, stk->cmd_pool_handle); stk->pool = 0; cciss_free_sg_chain_blocks(sa->cmd_sg_list, stk->nelems); kfree((void const *)stk->elem); stk->elem = 0; return; } } static int find_bus_target_lun(ctlr_info_t *h , int *bus , int *target , int *lun ) { int i ; int found ; unsigned char target_taken[16U] ; { found = 0; memset((void *)(& target_taken), 0, 16UL); target_taken[15] = 1U; i = 0; goto ldv_35977; ldv_35976: target_taken[ccissscsi[h->ctlr].dev[i].target] = 1U; i = i + 1; ldv_35977: ; if (ccissscsi[h->ctlr].ndevices > i) { goto ldv_35976; } else { goto ldv_35978; } ldv_35978: i = 0; goto ldv_35981; ldv_35980: ; if ((unsigned int )target_taken[i] == 0U) { *bus = 0; *target = i; *lun = 0; found = 1; goto ldv_35979; } else { } i = i + 1; ldv_35981: ; if (i <= 15) { goto ldv_35980; } else { goto ldv_35979; } ldv_35979: ; return (found == 0); } } static int cciss_scsi_add_entry(ctlr_info_t *h , int hostno , struct cciss_scsi_dev_t *device , struct scsi2map *added , int *nadded ) { int n ; struct cciss_scsi_dev_t *sd ; int i ; int bus ; int target ; int lun ; unsigned char addr1[8U] ; unsigned char addr2[8U] ; size_t __len ; void *__ret ; size_t __len___0 ; void *__ret___0 ; int tmp ; int tmp___0 ; size_t __len___1 ; void *__ret___1 ; size_t __len___2 ; void *__ret___2 ; size_t __len___3 ; void *__ret___3 ; size_t __len___4 ; void *__ret___4 ; char const *tmp___1 ; { n = ccissscsi[h->ctlr].ndevices; if (n > 15) { dev_warn((struct device const *)(& (h->pdev)->dev), "Too many devices, some will be inaccessible.\n"); return (-1); } else { } target = -1; bus = target; lun = 0; if ((unsigned int )device->scsi3addr[4] != 0U) { __len = 8UL; if (__len > 63UL) { __ret = __memcpy((void *)(& addr1), (void const *)(& device->scsi3addr), __len); } else { __ret = __builtin_memcpy((void *)(& addr1), (void const *)(& device->scsi3addr), __len); } addr1[4] = 0U; i = 0; goto ldv_36010; ldv_36009: sd = (struct cciss_scsi_dev_t *)(& ccissscsi[h->ctlr].dev) + (unsigned long )i; __len___0 = 8UL; if (__len___0 > 63UL) { __ret___0 = __memcpy((void *)(& addr2), (void const *)(& sd->scsi3addr), __len___0); } else { __ret___0 = __builtin_memcpy((void *)(& addr2), (void const *)(& sd->scsi3addr), __len___0); } addr2[4] = 0U; tmp = memcmp((void const *)(& addr1), (void const *)(& addr2), 8UL); if (tmp == 0) { bus = sd->bus; target = sd->target; lun = (int )device->scsi3addr[4]; goto ldv_36008; } else { } i = i + 1; ldv_36010: ; if (i < n) { goto ldv_36009; } else { goto ldv_36008; } ldv_36008: ; } else { } sd = (struct cciss_scsi_dev_t *)(& ccissscsi[h->ctlr].dev) + (unsigned long )n; if (lun == 0) { tmp___0 = find_bus_target_lun(h, & sd->bus, & sd->target, & sd->lun); if (tmp___0 != 0) { return (-1); } else { sd->bus = bus; sd->target = target; sd->lun = lun; } } else { } (added + (unsigned long )*nadded)->bus = sd->bus; (added + (unsigned long )*nadded)->target = sd->target; (added + (unsigned long )*nadded)->lun = sd->lun; *nadded = *nadded + 1; __len___1 = 8UL; if (__len___1 > 63UL) { __ret___1 = __memcpy((void *)(& sd->scsi3addr), (void const *)(& device->scsi3addr), __len___1); } else { __ret___1 = __builtin_memcpy((void *)(& sd->scsi3addr), (void const *)(& device->scsi3addr), __len___1); } __len___2 = 8UL; if (__len___2 > 63UL) { __ret___2 = __memcpy((void *)(& sd->vendor), (void const *)(& device->vendor), __len___2); } else { __ret___2 = __builtin_memcpy((void *)(& sd->vendor), (void const *)(& device->vendor), __len___2); } __len___3 = 4UL; if (__len___3 > 63UL) { __ret___3 = __memcpy((void *)(& sd->revision), (void const *)(& device->revision), __len___3); } else { __ret___3 = __builtin_memcpy((void *)(& sd->revision), (void const *)(& device->revision), __len___3); } __len___4 = 16UL; if (__len___4 > 63UL) { __ret___4 = __memcpy((void *)(& sd->device_id), (void const *)(& device->device_id), __len___4); } else { __ret___4 = __builtin_memcpy((void *)(& sd->device_id), (void const *)(& device->device_id), __len___4); } sd->devtype = device->devtype; ccissscsi[h->ctlr].ndevices = ccissscsi[h->ctlr].ndevices + 1; if (hostno != -1) { tmp___1 = scsi_device_type((unsigned int )sd->devtype); _dev_info((struct device const *)(& (h->pdev)->dev), "%s device c%db%dt%dl%d added.\n", tmp___1, hostno, sd->bus, sd->target, sd->lun); } else { } return (0); } } static void cciss_scsi_remove_entry(ctlr_info_t *h , int hostno , int entry , struct scsi2map *removed , int *nremoved ) { int i ; struct cciss_scsi_dev_t sd ; char const *tmp ; { if (entry < 0 || entry > 15) { return; } else { } sd = ccissscsi[h->ctlr].dev[entry]; (removed + (unsigned long )*nremoved)->bus = sd.bus; (removed + (unsigned long )*nremoved)->target = sd.target; (removed + (unsigned long )*nremoved)->lun = sd.lun; *nremoved = *nremoved + 1; i = entry; goto ldv_36033; ldv_36032: ccissscsi[h->ctlr].dev[i] = ccissscsi[h->ctlr].dev[i + 1]; i = i + 1; ldv_36033: ; if (ccissscsi[h->ctlr].ndevices + -1 > i) { goto ldv_36032; } else { goto ldv_36034; } ldv_36034: ccissscsi[h->ctlr].ndevices = ccissscsi[h->ctlr].ndevices - 1; tmp = scsi_device_type((unsigned int )sd.devtype); _dev_info((struct device const *)(& (h->pdev)->dev), "%s device c%db%dt%dl%d removed.\n", tmp, hostno, sd.bus, sd.target, sd.lun); return; } } static void fixup_botched_add(ctlr_info_t *h , char *scsi3addr ) { unsigned long flags ; int i ; int j ; raw_spinlock_t *tmp ; int tmp___0 ; { tmp = spinlock_check(& (h->scsi_ctlr)->lock); flags = _raw_spin_lock_irqsave(tmp); i = 0; goto ldv_36050; ldv_36049: tmp___0 = memcmp((void const *)scsi3addr, (void const *)(& ccissscsi[h->ctlr].dev[i].scsi3addr), 8UL); if (tmp___0 == 0) { j = i; goto ldv_36046; ldv_36045: ccissscsi[h->ctlr].dev[j] = ccissscsi[h->ctlr].dev[j + 1]; j = j + 1; ldv_36046: ; if (ccissscsi[h->ctlr].ndevices + -1 > j) { goto ldv_36045; } else { goto ldv_36047; } ldv_36047: ccissscsi[h->ctlr].ndevices = ccissscsi[h->ctlr].ndevices - 1; goto ldv_36048; } else { } i = i + 1; ldv_36050: ; if (ccissscsi[h->ctlr].ndevices > i) { goto ldv_36049; } else { goto ldv_36048; } ldv_36048: spin_unlock_irqrestore(& (h->scsi_ctlr)->lock, flags); return; } } static int device_is_the_same(struct cciss_scsi_dev_t *dev1 , struct cciss_scsi_dev_t *dev2 ) { int tmp ; int tmp___0 ; int tmp___1 ; int tmp___2 ; int tmp___3 ; int tmp___4 ; { if (dev1->devtype == dev2->devtype) { tmp = memcmp((void const *)(& dev1->scsi3addr), (void const *)(& dev2->scsi3addr), 8UL); if (tmp == 0) { tmp___0 = memcmp((void const *)(& dev1->device_id), (void const *)(& dev2->device_id), 16UL); if (tmp___0 == 0) { tmp___1 = memcmp((void const *)(& dev1->vendor), (void const *)(& dev2->vendor), 8UL); if (tmp___1 == 0) { tmp___2 = memcmp((void const *)(& dev1->model), (void const *)(& dev2->model), 16UL); if (tmp___2 == 0) { tmp___3 = memcmp((void const *)(& dev1->revision), (void const *)(& dev2->revision), 4UL); if (tmp___3 == 0) { tmp___4 = 1; } else { tmp___4 = 0; } } else { tmp___4 = 0; } } else { tmp___4 = 0; } } else { tmp___4 = 0; } } else { tmp___4 = 0; } } else { tmp___4 = 0; } return (tmp___4); } } static int adjust_cciss_scsi_table(ctlr_info_t *h , int hostno , struct cciss_scsi_dev_t *sd , int nsds ) { int i ; int j ; int found ; int changes ; struct cciss_scsi_dev_t *csd ; unsigned long flags ; struct scsi2map *added ; struct scsi2map *removed ; int nadded ; int nremoved ; struct Scsi_Host *sh ; void *tmp ; void *tmp___0 ; raw_spinlock_t *tmp___1 ; int tmp___2 ; int tmp___3 ; size_t __len ; void *__ret ; size_t __len___0 ; void *__ret___0 ; size_t __len___1 ; void *__ret___1 ; size_t __len___2 ; void *__ret___2 ; int tmp___4 ; int tmp___5 ; struct scsi_device *sdev ; struct scsi_device *tmp___6 ; int rc ; { changes = 0; sh = 0; tmp = kzalloc(320UL, 208U); added = (struct scsi2map *)tmp; tmp___0 = kzalloc(320UL, 208U); removed = (struct scsi2map *)tmp___0; if ((unsigned long )added == (unsigned long )((struct scsi2map *)0) || (unsigned long )removed == (unsigned long )((struct scsi2map *)0)) { dev_warn((struct device const *)(& (h->pdev)->dev), "Out of memory in adjust_cciss_scsi_table\n"); goto free_and_out; } else { } tmp___1 = spinlock_check(& (h->scsi_ctlr)->lock); flags = _raw_spin_lock_irqsave(tmp___1); if (hostno != -1) { sh = (h->scsi_ctlr)->scsi_host; } else { } i = 0; nremoved = 0; nadded = 0; goto ldv_36093; ldv_36092: csd = (struct cciss_scsi_dev_t *)(& ccissscsi[h->ctlr].dev) + (unsigned long )i; found = 0; j = 0; goto ldv_36078; ldv_36077: ; if ((((((((int )(sd + (unsigned long )j)->scsi3addr[7] == (int )csd->scsi3addr[7] && (int )(sd + (unsigned long )j)->scsi3addr[6] == (int )csd->scsi3addr[6]) && (int )(sd + (unsigned long )j)->scsi3addr[5] == (int )csd->scsi3addr[5]) && (int )(sd + (unsigned long )j)->scsi3addr[4] == (int )csd->scsi3addr[4]) && (int )(sd + (unsigned long )j)->scsi3addr[3] == (int )csd->scsi3addr[3]) && (int )(sd + (unsigned long )j)->scsi3addr[2] == (int )csd->scsi3addr[2]) && (int )(sd + (unsigned long )j)->scsi3addr[1] == (int )csd->scsi3addr[1]) && (int )(sd + (unsigned long )j)->scsi3addr[0] == (int )csd->scsi3addr[0]) { tmp___2 = device_is_the_same(sd + (unsigned long )j, csd); if (tmp___2 != 0) { found = 2; } else { found = 1; } goto ldv_36076; } else { } j = j + 1; ldv_36078: ; if (j < nsds) { goto ldv_36077; } else { goto ldv_36076; } ldv_36076: ; if (found == 0) { changes = changes + 1; cciss_scsi_remove_entry(h, hostno, i, removed, & nremoved); } else if (found == 1) { changes = changes + 1; _dev_info((struct device const *)(& (h->pdev)->dev), "device c%db%dt%dl%d has changed.\n", hostno, csd->bus, csd->target, csd->lun); cciss_scsi_remove_entry(h, hostno, i, removed, & nremoved); tmp___3 = cciss_scsi_add_entry(h, hostno, sd + (unsigned long )j, added, & nadded); if (tmp___3 != 0) { __asm__ volatile ("1:\tud2\n.pushsection __bug_table,\"a\"\n2:\t.long 1b - 2b, %c0 - 2b\n\t.word %c1, 0\n\t.org 2b+%c2\n.popsection": : "i" ((char *)"/work/ldvuser/zakharov_benchmarks/bench/cpa/inst/current/envs/linux-3.8-rc1/linux-3.8-rc1/drivers/block/cciss_scsi.c"), "i" (589), "i" (12UL)); ldv_36079: ; goto ldv_36079; } else { } csd->devtype = (sd + (unsigned long )j)->devtype; __len = 16UL; if (__len > 63UL) { __ret = __memcpy((void *)(& csd->device_id), (void const *)(& (sd + (unsigned long )j)->device_id), __len); } else { __ret = __builtin_memcpy((void *)(& csd->device_id), (void const *)(& (sd + (unsigned long )j)->device_id), __len); } __len___0 = 8UL; if (__len___0 > 63UL) { __ret___0 = __memcpy((void *)(& csd->vendor), (void const *)(& (sd + (unsigned long )j)->vendor), __len___0); } else { __ret___0 = __builtin_memcpy((void *)(& csd->vendor), (void const *)(& (sd + (unsigned long )j)->vendor), __len___0); } __len___1 = 16UL; if (__len___1 > 63UL) { __ret___1 = __memcpy((void *)(& csd->model), (void const *)(& (sd + (unsigned long )j)->model), __len___1); } else { __ret___1 = __builtin_memcpy((void *)(& csd->model), (void const *)(& (sd + (unsigned long )j)->model), __len___1); } __len___2 = 4UL; if (__len___2 > 63UL) { __ret___2 = __memcpy((void *)(& csd->revision), (void const *)(& (sd + (unsigned long )j)->revision), __len___2); } else { __ret___2 = __builtin_memcpy((void *)(& csd->revision), (void const *)(& (sd + (unsigned long )j)->revision), __len___2); } } else { i = i + 1; } ldv_36093: ; if (ccissscsi[h->ctlr].ndevices > i) { goto ldv_36092; } else { goto ldv_36094; } ldv_36094: i = 0; goto ldv_36100; ldv_36099: found = 0; j = 0; goto ldv_36097; ldv_36096: csd = (struct cciss_scsi_dev_t *)(& ccissscsi[h->ctlr].dev) + (unsigned long )j; if ((((((((int )(sd + (unsigned long )i)->scsi3addr[7] == (int )csd->scsi3addr[7] && (int )(sd + (unsigned long )i)->scsi3addr[6] == (int )csd->scsi3addr[6]) && (int )(sd + (unsigned long )i)->scsi3addr[5] == (int )csd->scsi3addr[5]) && (int )(sd + (unsigned long )i)->scsi3addr[4] == (int )csd->scsi3addr[4]) && (int )(sd + (unsigned long )i)->scsi3addr[3] == (int )csd->scsi3addr[3]) && (int )(sd + (unsigned long )i)->scsi3addr[2] == (int )csd->scsi3addr[2]) && (int )(sd + (unsigned long )i)->scsi3addr[1] == (int )csd->scsi3addr[1]) && (int )(sd + (unsigned long )i)->scsi3addr[0] == (int )csd->scsi3addr[0]) { tmp___4 = device_is_the_same(sd + (unsigned long )i, csd); if (tmp___4 != 0) { found = 2; } else { found = 1; } goto ldv_36095; } else { } j = j + 1; ldv_36097: ; if (ccissscsi[h->ctlr].ndevices > j) { goto ldv_36096; } else { goto ldv_36095; } ldv_36095: ; if (found == 0) { changes = changes + 1; tmp___5 = cciss_scsi_add_entry(h, hostno, sd + (unsigned long )i, added, & nadded); if (tmp___5 != 0) { goto ldv_36098; } else { } } else if (found == 1) { changes = changes + 1; dev_warn((struct device const *)(& (h->pdev)->dev), "device unexpectedly changed\n"); } else { } i = i + 1; ldv_36100: ; if (i < nsds) { goto ldv_36099; } else { goto ldv_36098; } ldv_36098: spin_unlock_irqrestore(& (h->scsi_ctlr)->lock, flags); if (hostno == -1 || changes == 0) { goto free_and_out; } else { } i = 0; goto ldv_36103; ldv_36102: tmp___6 = scsi_device_lookup(sh, (uint )(removed + (unsigned long )i)->bus, (uint )(removed + (unsigned long )i)->target, (uint )(removed + (unsigned long )i)->lun); sdev = tmp___6; if ((unsigned long )sdev != (unsigned long )((struct scsi_device *)0)) { scsi_remove_device(sdev); scsi_device_put(sdev); } else { dev_warn((struct device const *)(& (h->pdev)->dev), "didn\'t find c%db%dt%dl%d\n for removal.", hostno, (removed + (unsigned long )i)->bus, (removed + (unsigned long )i)->target, (removed + (unsigned long )i)->lun); } i = i + 1; ldv_36103: ; if (i < nremoved) { goto ldv_36102; } else { goto ldv_36104; } ldv_36104: i = 0; goto ldv_36108; ldv_36107: rc = scsi_add_device(sh, (uint )(added + (unsigned long )i)->bus, (uint )(added + (unsigned long )i)->target, (uint )(added + (unsigned long )i)->lun); if (rc == 0) { goto ldv_36106; } else { } dev_warn((struct device const *)(& (h->pdev)->dev), "scsi_add_device c%db%dt%dl%d failed, device not added.\n", hostno, (added + (unsigned long )i)->bus, (added + (unsigned long )i)->target, (added + (unsigned long )i)->lun); fixup_botched_add(h, (char *)(& (added + (unsigned long )i)->scsi3addr)); ldv_36106: i = i + 1; ldv_36108: ; if (i < nadded) { goto ldv_36107; } else { goto ldv_36109; } ldv_36109: ; free_and_out: kfree((void const *)added); kfree((void const *)removed); return (0); } } static int lookup_scsi3addr(ctlr_info_t *h , int bus , int target , int lun , char *scsi3addr ) { int i ; struct cciss_scsi_dev_t *sd ; unsigned long flags ; raw_spinlock_t *tmp ; size_t __len ; void *__ret ; { tmp = spinlock_check(& (h->scsi_ctlr)->lock); flags = _raw_spin_lock_irqsave(tmp); i = 0; goto ldv_36127; ldv_36126: sd = (struct cciss_scsi_dev_t *)(& ccissscsi[h->ctlr].dev) + (unsigned long )i; if ((sd->bus == bus && sd->target == target) && sd->lun == lun) { __len = 8UL; if (__len > 63UL) { __ret = __memcpy((void *)scsi3addr, (void const *)(& sd->scsi3addr), __len); } else { __ret = __builtin_memcpy((void *)scsi3addr, (void const *)(& sd->scsi3addr), __len); } spin_unlock_irqrestore(& (h->scsi_ctlr)->lock, flags); return (0); } else { } i = i + 1; ldv_36127: ; if (ccissscsi[h->ctlr].ndevices > i) { goto ldv_36126; } else { goto ldv_36128; } ldv_36128: spin_unlock_irqrestore(& (h->scsi_ctlr)->lock, flags); return (-1); } } static void cciss_scsi_setup(ctlr_info_t *h ) { struct cciss_scsi_adapter_data_t *shba ; void *tmp ; struct lock_class_key __key ; int tmp___0 ; { ccissscsi[h->ctlr].ndevices = 0; tmp = kmalloc(128UL, 208U); shba = (struct cciss_scsi_adapter_data_t *)tmp; if ((unsigned long )shba == (unsigned long )((struct cciss_scsi_adapter_data_t *)0)) { return; } else { } shba->scsi_host = 0; spinlock_check(& shba->lock); __raw_spin_lock_init(& shba->lock.ldv_5961.rlock, "&(&shba->lock)->rlock", & __key); shba->registered = 0; tmp___0 = scsi_cmd_stack_setup(h, shba); if (tmp___0 != 0) { kfree((void const *)shba); shba = 0; } else { } h->scsi_ctlr = shba; return; } } static void complete_scsi_command(CommandList_struct *c , int timeout , __u32 tag ) { struct scsi_cmnd *cmd ; ctlr_info_t *h ; ErrorInfo_struct *ei ; size_t __len ; size_t tmp ; void *__ret ; { ei = c->err_info; if ((unsigned int )*((unsigned char *)c + 21UL) == 1U) { c->cmd_type = 4; return; } else { } cmd = (struct scsi_cmnd *)c->scsi_cmd; h = hba[c->ctlr]; scsi_dma_unmap(cmd); if ((int )c->Header.SGTotal > h->max_cmd_sgentries) { cciss_unmap_sg_chain_block(h, c); } else { } cmd->result = 0; cmd->result = cmd->result; cmd->result = cmd->result | (int )ei->ScsiStatus; if ((unsigned int )ei->SenseLen <= 96U) { tmp = (size_t )ei->SenseLen; } else { tmp = 96UL; } __len = tmp; __ret = __builtin_memcpy((void *)cmd->sense_buffer, (void const *)(& ei->SenseInfo), __len); scsi_set_resid(cmd, (int )ei->ResidualCnt); if ((unsigned int )ei->CommandStatus != 0U) { switch ((int )ei->CommandStatus) { case 1: ; if ((unsigned int )ei->ScsiStatus == 0U) { cmd->result = 65536; } else { } goto ldv_36146; case 2: ; goto ldv_36146; case 3: dev_warn((struct device const *)(& (h->pdev)->dev), "%p has completed with data overrun reported\n", c); goto ldv_36146; case 4: cmd->result = 65536; goto ldv_36146; case 5: cmd->result = 458752; dev_warn((struct device const *)(& (h->pdev)->dev), "%p has protocol error\n", c); goto ldv_36146; case 6: cmd->result = 458752; dev_warn((struct device const *)(& (h->pdev)->dev), "%p had hardware error\n", c); goto ldv_36146; case 7: cmd->result = 458752; dev_warn((struct device const *)(& (h->pdev)->dev), "%p had connection lost\n", c); goto ldv_36146; case 8: cmd->result = 327680; dev_warn((struct device const *)(& (h->pdev)->dev), "%p was aborted\n", c); goto ldv_36146; case 9: cmd->result = 458752; dev_warn((struct device const *)(& (h->pdev)->dev), "%p reports abort failed\n", c); goto ldv_36146; case 10: cmd->result = 327680; dev_warn((struct device const *)(& (h->pdev)->dev), "%p aborted due to an unsolicited abort\n", c); goto ldv_36146; case 11: cmd->result = 196608; dev_warn((struct device const *)(& (h->pdev)->dev), "%p timedout\n", c); goto ldv_36146; case 12: cmd->result = 458752; dev_warn((struct device const *)(& (h->pdev)->dev), "c %p command unabortable\n", c); goto ldv_36146; default: cmd->result = 458752; dev_warn((struct device const *)(& (h->pdev)->dev), "%p returned unknown status %x\n", c, (int )ei->CommandStatus); } ldv_36146: ; } else { } (*(cmd->scsi_done))(cmd); scsi_cmd_free(h, c); return; } } static int cciss_scsi_detect(ctlr_info_t *h ) { struct Scsi_Host *sh ; int error ; { sh = ldv_scsi_host_alloc_9(& cciss_driver_template, 8); if ((unsigned long )sh == (unsigned long )((struct Scsi_Host *)0)) { goto fail; } else { } sh->io_port = 0UL; sh->n_io_port = 0U; sh->this_id = 15; sh->can_queue = cciss_tape_cmds; sh->sg_tablesize = (unsigned short )h->maxsgentries; sh->max_cmd_len = 16U; sh->max_sectors = (unsigned short )h->cciss_max_sectors; (h->scsi_ctlr)->scsi_host = sh; sh->hostdata[0] = (unsigned long )h; sh->irq = h->intr[2]; sh->unique_id = sh->irq; error = scsi_add_host(sh, & (h->pdev)->dev); if (error != 0) { goto fail_host_put; } else { } scsi_scan_host(sh); return (1); fail_host_put: scsi_host_put(sh); fail: ; return (0); } } static void cciss_unmap_one(struct pci_dev *pdev , CommandList_struct *c , size_t buflen , int data_direction ) { u64bit addr64 ; { addr64.val32.lower = c->SG[0].Addr.lower; addr64.val32.upper = c->SG[0].Addr.upper; pci_unmap_single(pdev, addr64.val, buflen, data_direction); return; } } static void cciss_map_one(struct pci_dev *pdev , CommandList_struct *c , unsigned char *buf , size_t buflen , int data_direction ) { __u64 addr64 ; { addr64 = pci_map_single(pdev, (void *)buf, buflen, data_direction); c->SG[0].Addr.lower = (unsigned int )addr64; c->SG[0].Addr.upper = (unsigned int )(addr64 >> 32); c->SG[0].Len = (__u32 )buflen; c->Header.SGList = 1U; c->Header.SGTotal = 1U; return; } } static int cciss_scsi_do_simple_cmd(ctlr_info_t *h , CommandList_struct *c , unsigned char *scsi3addr , unsigned char *cdb , unsigned char cdblen , unsigned char *buf , int bufsize , int direction ) { struct completion wait ; size_t __len ; void *__ret ; size_t __len___0 ; void *__ret___0 ; { init_completion(& wait); wait = wait; c->cmd_type = 1; c->scsi_cmd = 0; c->Header.ReplyQueue = 0U; __len = 8UL; if (__len > 63UL) { __ret = __memcpy((void *)(& c->Header.LUN), (void const *)scsi3addr, __len); } else { __ret = __builtin_memcpy((void *)(& c->Header.LUN), (void const *)scsi3addr, __len); } c->Header.Tag.lower = c->busaddr; memset((void *)(& c->Request.CDB), 0, 16UL); __len___0 = (size_t )cdblen; __ret___0 = __builtin_memcpy((void *)(& c->Request.CDB), (void const *)cdb, __len___0); c->Request.Timeout = 0U; c->Request.CDBLen = cdblen; c->Request.Type.Type = 0U; c->Request.Type.Attribute = 4U; c->Request.Type.Direction = (unsigned char )direction; cciss_map_one(h->pdev, c, buf, (size_t )bufsize, 2); c->waiting = & wait; enqueue_cmd_and_start_io(h, c); wait_for_completion(& wait); cciss_unmap_one(h->pdev, c, (size_t )bufsize, 2); return (0); } } static void cciss_scsi_interpret_error(ctlr_info_t *h , CommandList_struct *c ) { ErrorInfo_struct *ei ; { ei = c->err_info; switch ((int )ei->CommandStatus) { case 1: dev_warn((struct device const *)(& (h->pdev)->dev), "cmd %p has completed with errors\n", c); dev_warn((struct device const *)(& (h->pdev)->dev), "cmd %p has SCSI Status = %x\n", c, (int )ei->ScsiStatus); if ((unsigned int )ei->ScsiStatus == 0U) { dev_warn((struct device const *)(& (h->pdev)->dev), "SCSI status is abnormally zero. (probably indicates selection timeout reported incorrectly due to a known firmware bug, circa July, 2001.)\n"); } else { } goto ldv_36205; case 2: _dev_info((struct device const *)(& (h->pdev)->dev), "UNDERRUN\n"); goto ldv_36205; case 3: dev_warn((struct device const *)(& (h->pdev)->dev), "%p has completed with data overrun reported\n", c); goto ldv_36205; case 4: dev_warn((struct device const *)(& (h->pdev)->dev), "%p is reported invalid (probably means target device no longer present)\n", c); goto ldv_36205; case 5: dev_warn((struct device const *)(& (h->pdev)->dev), "%p has protocol error\n", c); goto ldv_36205; case 6: dev_warn((struct device const *)(& (h->pdev)->dev), "%p had hardware error\n", c); goto ldv_36205; case 7: dev_warn((struct device const *)(& (h->pdev)->dev), "%p had connection lost\n", c); goto ldv_36205; case 8: dev_warn((struct device const *)(& (h->pdev)->dev), "%p was aborted\n", c); goto ldv_36205; case 9: dev_warn((struct device const *)(& (h->pdev)->dev), "%p reports abort failed\n", c); goto ldv_36205; case 10: dev_warn((struct device const *)(& (h->pdev)->dev), "%p aborted due to an unsolicited abort\n", c); goto ldv_36205; case 11: dev_warn((struct device const *)(& (h->pdev)->dev), "%p timedout\n", c); goto ldv_36205; case 12: dev_warn((struct device const *)(& (h->pdev)->dev), "%p unabortable\n", c); goto ldv_36205; default: dev_warn((struct device const *)(& (h->pdev)->dev), "%p returned unknown status %x\n", c, (int )ei->CommandStatus); } ldv_36205: ; return; } } static int cciss_scsi_do_inquiry(ctlr_info_t *h , unsigned char *scsi3addr , unsigned char page , unsigned char *buf , unsigned char bufsize ) { int rc ; CommandList_struct *c ; char cdb[6U] ; ErrorInfo_struct *ei ; unsigned long flags ; raw_spinlock_t *tmp ; raw_spinlock_t *tmp___0 ; { tmp = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp); c = scsi_cmd_alloc(h); spin_unlock_irqrestore(& h->lock, flags); if ((unsigned long )c == (unsigned long )((CommandList_struct *)0)) { printk("cmd_alloc returned NULL!\n"); return (-1); } else { } ei = c->err_info; cdb[0] = 18; cdb[1] = (unsigned int )page != 0U; cdb[2] = (char )page; cdb[3] = 0; cdb[4] = (char )bufsize; cdb[5] = 0; rc = cciss_scsi_do_simple_cmd(h, c, scsi3addr, (unsigned char *)(& cdb), 6, buf, (int )bufsize, 2); if (rc != 0) { return (rc); } else { } if ((unsigned int )ei->CommandStatus != 0U && (unsigned int )ei->CommandStatus != 2U) { cciss_scsi_interpret_error(h, c); rc = -1; } else { } tmp___0 = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp___0); scsi_cmd_free(h, c); spin_unlock_irqrestore(& h->lock, flags); return (rc); } } static int cciss_scsi_get_device_id(ctlr_info_t *h , unsigned char *scsi3addr , unsigned char *device_id , int buflen ) { int rc ; unsigned char *buf ; void *tmp ; size_t __len ; void *__ret ; { if (buflen > 16) { buflen = 16; } else { } tmp = kzalloc(64UL, 208U); buf = (unsigned char *)tmp; if ((unsigned long )buf == (unsigned long )((unsigned char *)0)) { return (-1); } else { } rc = cciss_scsi_do_inquiry(h, scsi3addr, 131, buf, 64); if (rc == 0) { __len = (size_t )buflen; __ret = __builtin_memcpy((void *)device_id, (void const *)buf + 8U, __len); } else { } kfree((void const *)buf); return (rc != 0); } } static int cciss_scsi_do_report_phys_luns(ctlr_info_t *h , ReportLunData_struct *buf , int bufsize ) { int rc ; CommandList_struct *c ; unsigned char cdb[12U] ; unsigned char scsi3addr[8U] ; ErrorInfo_struct *ei ; unsigned long flags ; raw_spinlock_t *tmp ; raw_spinlock_t *tmp___0 ; { tmp = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp); c = scsi_cmd_alloc(h); spin_unlock_irqrestore(& h->lock, flags); if ((unsigned long )c == (unsigned long )((CommandList_struct *)0)) { printk("cmd_alloc returned NULL!\n"); return (-1); } else { } memset((void *)(& scsi3addr), 0, 8UL); cdb[0] = 195U; cdb[1] = 0U; cdb[2] = 0U; cdb[3] = 0U; cdb[4] = 0U; cdb[5] = 0U; cdb[6] = (unsigned char )((unsigned int )bufsize >> 24); cdb[7] = (unsigned char )(bufsize >> 16); cdb[8] = (unsigned char )(bufsize >> 8); cdb[9] = (unsigned char )bufsize; cdb[10] = 0U; cdb[11] = 0U; rc = cciss_scsi_do_simple_cmd(h, c, (unsigned char *)(& scsi3addr), (unsigned char *)(& cdb), 12, (unsigned char *)buf, bufsize, 2); if (rc != 0) { return (rc); } else { } ei = c->err_info; if ((unsigned int )ei->CommandStatus != 0U && (unsigned int )ei->CommandStatus != 2U) { cciss_scsi_interpret_error(h, c); rc = -1; } else { } tmp___0 = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp___0); scsi_cmd_free(h, c); spin_unlock_irqrestore(& h->lock, flags); return (rc); } } static void cciss_update_non_disk_devices(ctlr_info_t *h , int hostno ) { ReportLunData_struct *ld_buff ; unsigned char *inq_buff ; unsigned char scsi3addr[8U] ; __u32 num_luns ; unsigned char *ch ; struct cciss_scsi_dev_t *currentsd ; struct cciss_scsi_dev_t *this_device ; int ncurrent ; int reportlunsize ; int i ; void *tmp ; void *tmp___0 ; void *tmp___1 ; int tmp___2 ; size_t __len ; void *__ret ; int tmp___3 ; size_t __len___0 ; void *__ret___0 ; size_t __len___1 ; void *__ret___1 ; size_t __len___2 ; void *__ret___2 ; size_t __len___3 ; void *__ret___3 ; char obdr_sig[7U] ; int tmp___4 ; char const *tmp___5 ; { num_luns = 0U; ncurrent = 0; reportlunsize = 16392; tmp = kzalloc((size_t )reportlunsize, 208U); ld_buff = (ReportLunData_struct *)tmp; tmp___0 = kmalloc(49UL, 208U); inq_buff = (unsigned char *)tmp___0; tmp___1 = kzalloc(1156UL, 208U); currentsd = (struct cciss_scsi_dev_t *)tmp___1; if (((unsigned long )ld_buff == (unsigned long )((ReportLunData_struct *)0) || (unsigned long )inq_buff == (unsigned long )((unsigned char *)0)) || (unsigned long )currentsd == (unsigned long )((struct cciss_scsi_dev_t *)0)) { printk("\vcciss: out of memory\n"); goto out; } else { } this_device = currentsd + 16UL; tmp___2 = cciss_scsi_do_report_phys_luns(h, ld_buff, reportlunsize); if (tmp___2 == 0) { ch = (unsigned char *)(& ld_buff->LUNListLength); num_luns = (__u32 )((((((int )*ch << 24) | ((int )*(ch + 1UL) << 16)) | ((int )*(ch + 2UL) << 8)) | (int )*(ch + 3UL)) / 8); if (num_luns > 1024U) { printk("\fcciss: Maximum physical LUNs (%d) exceeded. %d LUNs ignored.\n", 1024, num_luns - 1024U); num_luns = 1024U; } else { } } else { printk("\vcciss: Report physical LUNs failed.\n"); goto out; } i = 0; goto ldv_36302; ldv_36301: ; if (((int )ld_buff->LUN[i][3] & 192) != 0) { goto ldv_36279; } else { } memset((void *)inq_buff, 0, 49UL); __len = 8UL; if (__len > 63UL) { __ret = __memcpy((void *)(& scsi3addr), (void const *)(& ld_buff->LUN) + (unsigned long )i, __len); } else { __ret = __builtin_memcpy((void *)(& scsi3addr), (void const *)(& ld_buff->LUN) + (unsigned long )i, __len); } tmp___3 = cciss_scsi_do_inquiry(h, (unsigned char *)(& scsi3addr), 0, inq_buff, 49); if (tmp___3 != 0) { goto ldv_36279; } else { } this_device->devtype = (int )*inq_buff & 31; this_device->bus = -1; this_device->target = -1; this_device->lun = -1; __len___0 = 8UL; if (__len___0 > 63UL) { __ret___0 = __memcpy((void *)(& this_device->scsi3addr), (void const *)(& scsi3addr), __len___0); } else { __ret___0 = __builtin_memcpy((void *)(& this_device->scsi3addr), (void const *)(& scsi3addr), __len___0); } __len___1 = 8UL; if (__len___1 > 63UL) { __ret___1 = __memcpy((void *)(& this_device->vendor), (void const *)inq_buff + 8U, __len___1); } else { __ret___1 = __builtin_memcpy((void *)(& this_device->vendor), (void const *)inq_buff + 8U, __len___1); } __len___2 = 16UL; if (__len___2 > 63UL) { __ret___2 = __memcpy((void *)(& this_device->model), (void const *)inq_buff + 16U, __len___2); } else { __ret___2 = __builtin_memcpy((void *)(& this_device->model), (void const *)inq_buff + 16U, __len___2); } __len___3 = 4UL; if (__len___3 > 63UL) { __ret___3 = __memcpy((void *)(& this_device->revision), (void const *)inq_buff + 32U, __len___3); } else { __ret___3 = __builtin_memcpy((void *)(& this_device->revision), (void const *)inq_buff + 32U, __len___3); } memset((void *)(& this_device->device_id), 0, 16UL); cciss_scsi_get_device_id(h, (unsigned char *)(& scsi3addr), (unsigned char *)(& this_device->device_id), 16); switch (this_device->devtype) { case 5: strncpy((char *)(& obdr_sig), (char const *)inq_buff + 43U, 6UL); obdr_sig[6] = 0; tmp___4 = strncmp((char const *)(& obdr_sig), "$DR-10", 6UL); if (tmp___4 != 0) { goto ldv_36297; } else { } case 1: ; case 8: ; if (ncurrent > 15) { tmp___5 = scsi_device_type((unsigned int )this_device->devtype); printk("\016cciss%d: %s ignored, too many devices.\n", h->ctlr, tmp___5); goto ldv_36297; } else { } *(currentsd + (unsigned long )ncurrent) = *this_device; ncurrent = ncurrent + 1; goto ldv_36297; default: ; goto ldv_36297; } ldv_36297: ; ldv_36279: i = i + 1; ldv_36302: ; if ((__u32 )i < num_luns) { goto ldv_36301; } else { goto ldv_36303; } ldv_36303: adjust_cciss_scsi_table(h, hostno, currentsd, ncurrent); out: kfree((void const *)inq_buff); kfree((void const *)ld_buff); kfree((void const *)currentsd); return; } } static int is_keyword(char *ptr , int len , char *verb ) { int verb_len ; size_t tmp ; int tmp___0 ; { tmp = strlen((char const *)verb); verb_len = (int )tmp; if (len >= verb_len) { tmp___0 = memcmp((void const *)verb, (void const *)ptr, (size_t )verb_len); if (tmp___0 == 0) { return (verb_len); } else { return (0); } } else { return (0); } } } static int cciss_scsi_user_command(ctlr_info_t *h , int hostno , char *buffer , int length ) { int arg_len ; { arg_len = is_keyword(buffer, length, (char *)"rescan"); if (arg_len != 0) { cciss_update_non_disk_devices(h, hostno); } else { return (-22); } return (length); } } static int cciss_scsi_proc_info(struct Scsi_Host *sh , char *buffer , char **start , off_t offset , int length , int func ) { int buflen ; int datalen ; ctlr_info_t *h ; int i ; struct cciss_scsi_dev_t *sd ; int tmp ; int tmp___0 ; { h = (ctlr_info_t *)sh->hostdata[0]; if ((unsigned long )h == (unsigned long )((ctlr_info_t *)0)) { return (-22); } else { } if (func == 0) { buflen = sprintf(buffer, "cciss%d: SCSI host: %d\n", h->ctlr, sh->host_no); i = 0; goto ldv_36331; ldv_36330: sd = (struct cciss_scsi_dev_t *)(& ccissscsi[h->ctlr].dev) + (unsigned long )i; tmp = sprintf(buffer + (unsigned long )buflen, "c%db%dt%dl%d %02d 0x%02x%02x%02x%02x%02x%02x%02x%02x\n", sh->host_no, sd->bus, sd->target, sd->lun, sd->devtype, (int )sd->scsi3addr[0], (int )sd->scsi3addr[1], (int )sd->scsi3addr[2], (int )sd->scsi3addr[3], (int )sd->scsi3addr[4], (int )sd->scsi3addr[5], (int )sd->scsi3addr[6], (int )sd->scsi3addr[7]); buflen = tmp + buflen; i = i + 1; ldv_36331: ; if (ccissscsi[h->ctlr].ndevices > i) { goto ldv_36330; } else { goto ldv_36332; } ldv_36332: datalen = (int )((unsigned int )buflen - (unsigned int )offset); if (datalen < 0) { datalen = 0; *start = buffer + (unsigned long )buflen; } else { *start = buffer + (unsigned long )offset; } return (datalen); } else { tmp___0 = cciss_scsi_user_command(h, (int )sh->host_no, buffer, length); return (tmp___0); } } } static void cciss_scatter_gather(ctlr_info_t *h , CommandList_struct *c , struct scsi_cmnd *cmd ) { unsigned int len ; struct scatterlist *sg ; __u64 addr64 ; int request_nsgs ; int i ; int chained ; int sg_index ; struct cciss_scsi_adapter_data_t *sa ; SGDescriptor_struct *curr_sg ; unsigned int tmp ; long tmp___0 ; { sa = h->scsi_ctlr; tmp = scsi_sg_count(cmd); tmp___0 = ldv__builtin_expect(tmp > (unsigned int )h->maxsgentries, 0L); if (tmp___0 != 0L) { __asm__ volatile ("1:\tud2\n.pushsection __bug_table,\"a\"\n2:\t.long 1b - 2b, %c0 - 2b\n\t.word %c1, 0\n\t.org 2b+%c2\n.popsection": : "i" ((char *)"/work/ldvuser/zakharov_benchmarks/bench/cpa/inst/current/envs/linux-3.8-rc1/linux-3.8-rc1/drivers/block/cciss_scsi.c"), "i" (1373), "i" (12UL)); ldv_36347: ; goto ldv_36347; } else { } chained = 0; sg_index = 0; curr_sg = (SGDescriptor_struct *)(& c->SG); request_nsgs = scsi_dma_map(cmd); if (request_nsgs != 0) { i = 0; sg = scsi_sglist(cmd); goto ldv_36349; ldv_36348: ; if ((sg_index + 1 == h->max_cmd_sgentries && chained == 0) && request_nsgs - i > 1) { chained = 1; sg_index = 0; curr_sg = *(sa->cmd_sg_list + (unsigned long )c->cmdindex); } else { } addr64 = sg->dma_address; len = sg->dma_length; (curr_sg + (unsigned long )sg_index)->Addr.lower = (unsigned int )addr64; (curr_sg + (unsigned long )sg_index)->Addr.upper = (unsigned int )(addr64 >> 32); (curr_sg + (unsigned long )sg_index)->Len = len; (curr_sg + (unsigned long )sg_index)->Ext = 0U; sg_index = sg_index + 1; i = i + 1; sg = sg_next(sg); ldv_36349: ; if (i < request_nsgs) { goto ldv_36348; } else { goto ldv_36350; } ldv_36350: ; if (chained != 0) { cciss_map_sg_chain_block(h, c, *(sa->cmd_sg_list + (unsigned long )c->cmdindex), (int )((unsigned int )((1 - h->max_cmd_sgentries) + request_nsgs) * 16U)); } else { } } else { } if ((unsigned int )request_nsgs > h->maxSG) { h->maxSG = (unsigned int )request_nsgs; } else { } c->Header.SGTotal = (int )((__u16 )request_nsgs) + (int )((__u16 )chained); if (h->max_cmd_sgentries < request_nsgs) { c->Header.SGList = (__u8 )h->max_cmd_sgentries; } else { c->Header.SGList = (__u8 )c->Header.SGTotal; } return; } } static int cciss_scsi_queue_command_lck(struct scsi_cmnd *cmd , void (*done)(struct scsi_cmnd * ) ) { ctlr_info_t *h ; int rc ; unsigned char scsi3addr[8U] ; CommandList_struct *c ; unsigned long flags ; raw_spinlock_t *tmp ; size_t __len ; void *__ret ; long tmp___0 ; size_t __len___0 ; void *__ret___0 ; { h = (ctlr_info_t *)((cmd->device)->host)->hostdata[0]; rc = lookup_scsi3addr(h, (int )(cmd->device)->channel, (int )(cmd->device)->id, (int )(cmd->device)->lun, (char *)(& scsi3addr)); if (rc != 0) { cmd->result = 65536; (*done)(cmd); return (0); } else { } tmp = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp); c = scsi_cmd_alloc(h); spin_unlock_irqrestore(& h->lock, flags); if ((unsigned long )c == (unsigned long )((CommandList_struct *)0)) { dev_warn((struct device const *)(& (h->pdev)->dev), "scsi_cmd_alloc returned NULL!\n"); cmd->result = 65536; (*done)(cmd); return (0); } else { } cmd->scsi_done = done; cmd->host_scribble = (unsigned char *)c; c->cmd_type = 3; c->scsi_cmd = (void *)cmd; c->Header.ReplyQueue = 0U; __len = 8UL; if (__len > 63UL) { __ret = __memcpy((void *)(& c->Header.LUN.LunAddrBytes), (void const *)(& scsi3addr), __len); } else { __ret = __builtin_memcpy((void *)(& c->Header.LUN.LunAddrBytes), (void const *)(& scsi3addr), __len); } c->Header.Tag.lower = c->busaddr; c->Request.Timeout = 0U; memset((void *)(& c->Request.CDB), 0, 16UL); tmp___0 = ldv__builtin_expect((unsigned int )cmd->cmd_len > 16U, 0L); if (tmp___0 != 0L) { __asm__ volatile ("1:\tud2\n.pushsection __bug_table,\"a\"\n2:\t.long 1b - 2b, %c0 - 2b\n\t.word %c1, 0\n\t.org 2b+%c2\n.popsection": : "i" ((char *)"/work/ldvuser/zakharov_benchmarks/bench/cpa/inst/current/envs/linux-3.8-rc1/linux-3.8-rc1/drivers/block/cciss_scsi.c"), "i" (1471), "i" (12UL)); ldv_36367: ; goto ldv_36367; } else { } c->Request.CDBLen = (__u8 )cmd->cmd_len; __len___0 = (size_t )cmd->cmd_len; __ret___0 = __builtin_memcpy((void *)(& c->Request.CDB), (void const *)cmd->cmnd, __len___0); c->Request.Type.Type = 0U; c->Request.Type.Attribute = 4U; switch ((unsigned int )cmd->sc_data_direction) { case 1: c->Request.Type.Direction = 1U; goto ldv_36372; case 2: c->Request.Type.Direction = 2U; goto ldv_36372; case 3: c->Request.Type.Direction = 0U; goto ldv_36372; case 0: c->Request.Type.Direction = 3U; goto ldv_36372; default: dev_warn((struct device const *)(& (h->pdev)->dev), "unknown data direction: %d\n", (unsigned int )cmd->sc_data_direction); __asm__ volatile ("1:\tud2\n.pushsection __bug_table,\"a\"\n2:\t.long 1b - 2b, %c0 - 2b\n\t.word %c1, 0\n\t.org 2b+%c2\n.popsection": : "i" ((char *)"/work/ldvuser/zakharov_benchmarks/bench/cpa/inst/current/envs/linux-3.8-rc1/linux-3.8-rc1/drivers/block/cciss_scsi.c"), "i" (1505), "i" (12UL)); ldv_36377: ; goto ldv_36377; } ldv_36372: cciss_scatter_gather(h, c, cmd); enqueue_cmd_and_start_io(h, c); return (0); } } static int cciss_scsi_queue_command(struct Scsi_Host *shost , struct scsi_cmnd *cmd ) { unsigned long irq_flags ; int rc ; raw_spinlock_t *tmp ; { tmp = spinlock_check(shost->host_lock); irq_flags = _raw_spin_lock_irqsave(tmp); scsi_cmd_get_serial(shost, cmd); rc = cciss_scsi_queue_command_lck(cmd, cmd->scsi_done); spin_unlock_irqrestore(shost->host_lock, irq_flags); return (rc); } } static void cciss_unregister_scsi(ctlr_info_t *h ) { struct cciss_scsi_adapter_data_t *sa ; struct cciss_scsi_cmd_stack_t *stk ; unsigned long flags ; raw_spinlock_t *tmp ; raw_spinlock_t *tmp___0 ; { tmp = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp); sa = h->scsi_ctlr; stk = & sa->cmd_stack; if (sa->registered != 0) { spin_unlock_irqrestore(& h->lock, flags); ldv_scsi_remove_host_10(sa->scsi_host); scsi_host_put(sa->scsi_host); tmp___0 = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp___0); } else { } sa->scsi_host = 0; spin_unlock_irqrestore(& h->lock, flags); scsi_cmd_stack_free(h); kfree((void const *)sa); return; } } static int cciss_engage_scsi(ctlr_info_t *h ) { struct cciss_scsi_adapter_data_t *sa ; struct cciss_scsi_cmd_stack_t *stk ; unsigned long flags ; raw_spinlock_t *tmp ; { tmp = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp); sa = h->scsi_ctlr; stk = & sa->cmd_stack; if (sa->registered != 0) { _dev_info((struct device const *)(& (h->pdev)->dev), "SCSI subsystem already engaged.\n"); spin_unlock_irqrestore(& h->lock, flags); return (-6); } else { } sa->registered = 1; spin_unlock_irqrestore(& h->lock, flags); cciss_update_non_disk_devices(h, -1); cciss_scsi_detect(h); return (0); } } static void cciss_seq_tape_report(struct seq_file *seq , ctlr_info_t *h ) { unsigned long flags ; raw_spinlock_t *tmp ; { tmp = spinlock_check(& (h->scsi_ctlr)->lock); flags = _raw_spin_lock_irqsave(tmp); seq_printf(seq, "Sequential access devices: %d\n\n", ccissscsi[h->ctlr].ndevices); spin_unlock_irqrestore(& (h->scsi_ctlr)->lock, flags); return; } } static int wait_for_device_to_become_ready(ctlr_info_t *h , unsigned char *lunaddr ) { int rc ; int count ; int waittime ; CommandList_struct *c ; unsigned char asc ; { count = 0; waittime = 250; c = cmd_alloc(h); if ((unsigned long )c == (unsigned long )((CommandList_struct *)0)) { dev_warn((struct device const *)(& (h->pdev)->dev), "out of memory in wait_for_device_to_become_ready.\n"); return (1); } else { } goto ldv_36428; ldv_36427: schedule_timeout_uninterruptible((long )waittime); count = count + 1; if (waittime <= 7499) { waittime = waittime * 2; } else { } rc = fill_cmd(h, c, 0, 0, 0UL, 0, lunaddr, 0); if (rc == 0) { rc = sendcmd_withirq_core(h, c, 0); } else { } process_sendcmd_error(h, c); if (rc != 0) { goto retry_tur; } else { } if ((unsigned int )(c->err_info)->CommandStatus == 0U) { goto ldv_36425; } else { } if ((unsigned int )(c->err_info)->CommandStatus == 1U && (unsigned int )(c->err_info)->ScsiStatus == 2U) { if ((unsigned int )(c->err_info)->SenseInfo[2] == 0U) { goto ldv_36425; } else { } if ((unsigned int )(c->err_info)->SenseInfo[2] == 6U) { asc = (c->err_info)->SenseInfo[12]; check_for_unit_attention(h, c); if ((unsigned int )asc == 41U) { goto ldv_36425; } else { } } else { } } else { } retry_tur: dev_warn((struct device const *)(& (h->pdev)->dev), "Waiting %d secs for device to become ready.\n", waittime / 250); rc = 1; ldv_36428: ; if (count <= 19) { goto ldv_36427; } else { goto ldv_36425; } ldv_36425: ; if (rc != 0) { dev_warn((struct device const *)(& (h->pdev)->dev), "giving up on device.\n"); } else { dev_warn((struct device const *)(& (h->pdev)->dev), "device is ready.\n"); } cmd_free(h, c); return (rc); } } static int cciss_eh_device_reset_handler(struct scsi_cmnd *scsicmd ) { int rc ; CommandList_struct *cmd_in_trouble ; unsigned char lunaddr[8U] ; ctlr_info_t *h ; size_t __len ; void *__ret ; int tmp ; { h = (ctlr_info_t *)((scsicmd->device)->host)->hostdata[0]; if ((unsigned long )h == (unsigned long )((ctlr_info_t *)0)) { return (8195); } else { } dev_warn((struct device const *)(& (h->pdev)->dev), "resetting tape drive or medium changer.\n"); cmd_in_trouble = (CommandList_struct *)scsicmd->host_scribble; if ((unsigned long )cmd_in_trouble == (unsigned long )((CommandList_struct *)0)) { return (8195); } else { } __len = 8UL; if (__len > 63UL) { __ret = __memcpy((void *)(& lunaddr), (void const *)(& cmd_in_trouble->Header.LUN.LunAddrBytes), __len); } else { __ret = __builtin_memcpy((void *)(& lunaddr), (void const *)(& cmd_in_trouble->Header.LUN.LunAddrBytes), __len); } rc = sendcmd_withirq(h, 1, 0, 0UL, 0, (unsigned char *)(& lunaddr), 1); if (rc == 0) { tmp = wait_for_device_to_become_ready(h, (unsigned char *)(& lunaddr)); if (tmp == 0) { return (8194); } else { } } else { } dev_warn((struct device const *)(& (h->pdev)->dev), "resetting device failed.\n"); return (8195); } } static int cciss_eh_abort_handler(struct scsi_cmnd *scsicmd ) { int rc ; CommandList_struct *cmd_to_abort ; unsigned char lunaddr[8U] ; ctlr_info_t *h ; size_t __len ; void *__ret ; { h = (ctlr_info_t *)((scsicmd->device)->host)->hostdata[0]; if ((unsigned long )h == (unsigned long )((ctlr_info_t *)0)) { return (8195); } else { } dev_warn((struct device const *)(& (h->pdev)->dev), "aborting tardy SCSI cmd\n"); cmd_to_abort = (CommandList_struct *)scsicmd->host_scribble; if ((unsigned long )cmd_to_abort == (unsigned long )((CommandList_struct *)0)) { return (8195); } else { } __len = 8UL; if (__len > 63UL) { __ret = __memcpy((void *)(& lunaddr), (void const *)(& cmd_to_abort->Header.LUN.LunAddrBytes), __len); } else { __ret = __builtin_memcpy((void *)(& lunaddr), (void const *)(& cmd_to_abort->Header.LUN.LunAddrBytes), __len); } rc = sendcmd_withirq(h, 0, (void *)(& cmd_to_abort->Header.Tag), 0UL, 0, (unsigned char *)(& lunaddr), 1); if (rc == 0) { return (8194); } else { } return (8195); } } static char const *raid_label[7U] = { "0", "4", "1(1+0)", "5", "5+1", "ADG", "UNKNOWN"}; static void cciss_seq_show_header(struct seq_file *seq ) { ctlr_info_t *h ; { h = (ctlr_info_t *)seq->private; seq_printf(seq, "%s: HP %s Controller\nBoard ID: 0x%08lx\nFirmware Version: %c%c%c%c\nIRQ: %d\nLogical drives: %d\nCurrent Q depth: %d\nCurrent # commands on controller: %d\nMax Q depth since init: %d\nMax # commands on controller since init: %d\nMax SG entries since init: %d\n", (char *)(& h->devname), h->product_name, (unsigned long )h->board_id, (int )h->firm_ver[0], (int )h->firm_ver[1], (int )h->firm_ver[2], (int )h->firm_ver[3], h->intr[h->intr_mode], h->num_luns, h->Qdepth, h->commands_outstanding, h->maxQsinceinit, h->max_outstanding, h->maxSG); cciss_seq_tape_report(seq, h); return; } } static void *cciss_seq_start(struct seq_file *seq , loff_t *pos ) { ctlr_info_t *h ; unsigned long flags ; raw_spinlock_t *tmp ; void *tmp___0 ; { h = (ctlr_info_t *)seq->private; tmp = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp); if (h->busy_configuring != 0) { spin_unlock_irqrestore(& h->lock, flags); tmp___0 = ERR_PTR(-16L); return (tmp___0); } else { } h->busy_configuring = 1; spin_unlock_irqrestore(& h->lock, flags); if (*pos == 0LL) { cciss_seq_show_header(seq); } else { } return ((void *)pos); } } static int cciss_seq_show(struct seq_file *seq , void *v ) { sector_t vol_sz ; sector_t vol_sz_frac ; ctlr_info_t *h ; unsigned int ctlr ; loff_t *pos ; drive_info_struct *drv ; int _res ; int _res___0 ; { h = (ctlr_info_t *)seq->private; ctlr = (unsigned int )h->ctlr; pos = (loff_t *)v; drv = h->drv[*pos]; if (*pos > (loff_t )h->highest_lun) { return (0); } else { } if ((unsigned long )drv == (unsigned long )((drive_info_struct *)0)) { return (0); } else { } if (drv->heads == 0) { return (0); } else { } vol_sz = drv->nr_blocks; _res = (int )(vol_sz % 1953125UL); vol_sz = vol_sz / 1953125UL; vol_sz_frac = (sector_t )_res; vol_sz_frac = vol_sz_frac * 100UL; _res___0 = (int )(vol_sz_frac % 1953125UL); vol_sz_frac = vol_sz_frac / 1953125UL; if (drv->raid_level < 0 || (unsigned int )drv->raid_level > 6U) { drv->raid_level = 6; } else { } seq_printf(seq, "cciss/c%dd%d:\t%4u.%02uGB\tRAID %s\n", ctlr, (int )*pos, (int )vol_sz, (int )vol_sz_frac, raid_label[drv->raid_level]); return (0); } } static void *cciss_seq_next(struct seq_file *seq , void *v , loff_t *pos ) { ctlr_info_t *h ; { h = (ctlr_info_t *)seq->private; if (*pos > (loff_t )h->highest_lun) { return (0); } else { } *pos = *pos + 1LL; return ((void *)pos); } } static void cciss_seq_stop(struct seq_file *seq , void *v ) { ctlr_info_t *h ; void *tmp ; { h = (ctlr_info_t *)seq->private; tmp = ERR_PTR(-16L); if ((unsigned long )tmp == (unsigned long )v) { return; } else { } h->busy_configuring = 0; return; } } static struct seq_operations const cciss_seq_ops = {& cciss_seq_start, & cciss_seq_stop, & cciss_seq_next, & cciss_seq_show}; static int cciss_seq_open(struct inode *inode , struct file *file ) { int ret ; int tmp ; struct seq_file *seq ; struct proc_dir_entry *tmp___0 ; { tmp = seq_open(file, & cciss_seq_ops); ret = tmp; seq = (struct seq_file *)file->private_data; if (ret == 0) { tmp___0 = PDE((struct inode const *)inode); seq->private = tmp___0->data; } else { } return (ret); } } static ssize_t cciss_proc_write(struct file *file , char const *buf , size_t length , loff_t *ppos ) { int err ; char *buffer ; unsigned long tmp ; unsigned long tmp___0 ; struct seq_file *seq ; ctlr_info_t *h ; int tmp___1 ; { if ((unsigned long )buf == (unsigned long )((char const *)0) || length > 4095UL) { return (-22L); } else { } tmp = __get_free_pages(208U, 0U); buffer = (char *)tmp; if ((unsigned long )buffer == (unsigned long )((char *)0)) { return (-12L); } else { } err = -14; tmp___0 = copy_from_user((void *)buffer, (void const *)buf, length); if (tmp___0 != 0UL) { goto out; } else { } *(buffer + length) = 0; tmp___1 = strncmp("engage scsi", (char const *)buffer, 11UL); if (tmp___1 == 0) { seq = (struct seq_file *)file->private_data; h = (ctlr_info_t *)seq->private; err = cciss_engage_scsi(h); if (err == 0) { err = (int )length; } else { } } else { err = -22; } out: free_pages((unsigned long )buffer, 0U); return ((ssize_t )err); } } static struct file_operations const cciss_proc_fops = {& __this_module, & seq_lseek, & seq_read, & cciss_proc_write, 0, 0, 0, 0, 0, 0, 0, & cciss_seq_open, 0, & seq_release, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static void cciss_procinit(ctlr_info_t *h ) { struct proc_dir_entry *pde ; { if ((unsigned long )proc_cciss == (unsigned long )((struct proc_dir_entry *)0)) { proc_cciss = proc_mkdir("driver/cciss", 0); } else { } if ((unsigned long )proc_cciss == (unsigned long )((struct proc_dir_entry *)0)) { return; } else { } pde = proc_create_data((char const *)(& h->devname), 420, proc_cciss, & cciss_proc_fops, (void *)h); return; } } static u32 unresettable_controller[14U] = { 843714620U, 843780156U, 841158716U, 842272828U, 842338364U, 839979068U, 840044604U, 840110140U, 840175676U, 840241212U, 842469436U, 842862652U, 1083969041U, 1084034577U}; static u32 soft_unresettable_controller[2U] = { 1083969041U, 1084034577U}; static int ctlr_is_hard_resettable(u32 board_id ) { int i ; { i = 0; goto ldv_36524; ldv_36523: ; if (unresettable_controller[i] == board_id) { return (0); } else { } i = i + 1; ldv_36524: ; if ((unsigned int )i <= 13U) { goto ldv_36523; } else { goto ldv_36525; } ldv_36525: ; return (1); } } static int ctlr_is_soft_resettable(u32 board_id ) { int i ; { i = 0; goto ldv_36533; ldv_36532: ; if (soft_unresettable_controller[i] == board_id) { return (0); } else { } i = i + 1; ldv_36533: ; if ((unsigned int )i <= 1U) { goto ldv_36532; } else { goto ldv_36534; } ldv_36534: ; return (1); } } static int ctlr_is_resettable(u32 board_id ) { int tmp ; int tmp___0 ; int tmp___1 ; { tmp = ctlr_is_hard_resettable(board_id); if (tmp != 0) { tmp___1 = 1; } else { tmp___0 = ctlr_is_soft_resettable(board_id); if (tmp___0 != 0) { tmp___1 = 1; } else { tmp___1 = 0; } } return (tmp___1); } } static ssize_t host_show_resettable(struct device *dev , struct device_attribute *attr , char *buf ) { struct ctlr_info *h ; struct device const *__mptr ; int tmp ; int tmp___0 ; { __mptr = (struct device const *)dev; h = (struct ctlr_info *)__mptr + 0xffffffffffffbd38UL; tmp = ctlr_is_resettable(h->board_id); tmp___0 = snprintf(buf, 20UL, "%d\n", tmp); return ((ssize_t )tmp___0); } } static struct device_attribute dev_attr_resettable = {{"resettable", 292U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & host_show_resettable, 0}; static ssize_t host_store_rescan(struct device *dev , struct device_attribute *attr , char const *buf , size_t count ) { struct ctlr_info *h ; struct device const *__mptr ; { __mptr = (struct device const *)dev; h = (struct ctlr_info *)__mptr + 0xffffffffffffbd38UL; add_to_scan_list(h); wake_up_process(cciss_scan_thread); wait_for_completion_interruptible(& h->scan_wait); return ((ssize_t )count); } } static struct device_attribute dev_attr_rescan = {{"rescan", 128U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, 0, & host_store_rescan}; static ssize_t host_show_transport_mode(struct device *dev , struct device_attribute *attr , char *buf ) { struct ctlr_info *h ; struct device const *__mptr ; char *tmp ; int tmp___0 ; { __mptr = (struct device const *)dev; h = (struct ctlr_info *)__mptr + 0xffffffffffffbd38UL; if ((h->transMethod & 4UL) != 0UL) { tmp = (char *)"performant"; } else { tmp = (char *)"simple"; } tmp___0 = snprintf(buf, 20UL, "%s\n", tmp); return ((ssize_t )tmp___0); } } static struct device_attribute dev_attr_transport_mode = {{"transport_mode", 292U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & host_show_transport_mode, 0}; static ssize_t dev_show_unique_id(struct device *dev , struct device_attribute *attr , char *buf ) { drive_info_struct *drv ; struct device const *__mptr ; struct ctlr_info *h ; struct device const *__mptr___0 ; __u8 sn[16U] ; unsigned long flags ; int ret ; raw_spinlock_t *tmp ; size_t __len ; void *__ret ; int tmp___0 ; { __mptr = (struct device const *)dev; drv = (drive_info_struct *)__mptr + 0xffffffffffffffc8UL; __mptr___0 = (struct device const *)drv->dev.parent; h = (struct ctlr_info *)__mptr___0 + 0xffffffffffffbd38UL; ret = 0; tmp = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp); if (h->busy_configuring != 0) { ret = -16; } else { __len = 16UL; if (__len > 63UL) { __ret = __memcpy((void *)(& sn), (void const *)(& drv->serial_no), __len); } else { __ret = __builtin_memcpy((void *)(& sn), (void const *)(& drv->serial_no), __len); } } spin_unlock_irqrestore(& h->lock, flags); if (ret != 0) { return ((ssize_t )ret); } else { tmp___0 = snprintf(buf, 34UL, "%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X\n", (int )sn[0], (int )sn[1], (int )sn[2], (int )sn[3], (int )sn[4], (int )sn[5], (int )sn[6], (int )sn[7], (int )sn[8], (int )sn[9], (int )sn[10], (int )sn[11], (int )sn[12], (int )sn[13], (int )sn[14], (int )sn[15]); return ((ssize_t )tmp___0); } } } static struct device_attribute dev_attr_unique_id = {{"unique_id", 292U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & dev_show_unique_id, 0}; static ssize_t dev_show_vendor(struct device *dev , struct device_attribute *attr , char *buf ) { drive_info_struct *drv ; struct device const *__mptr ; struct ctlr_info *h ; struct device const *__mptr___0 ; char vendor[9U] ; unsigned long flags ; int ret ; raw_spinlock_t *tmp ; size_t __len ; void *__ret ; int tmp___0 ; { __mptr = (struct device const *)dev; drv = (drive_info_struct *)__mptr + 0xffffffffffffffc8UL; __mptr___0 = (struct device const *)drv->dev.parent; h = (struct ctlr_info *)__mptr___0 + 0xffffffffffffbd38UL; ret = 0; tmp = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp); if (h->busy_configuring != 0) { ret = -16; } else { __len = 9UL; if (__len > 63UL) { __ret = __memcpy((void *)(& vendor), (void const *)(& drv->vendor), __len); } else { __ret = __builtin_memcpy((void *)(& vendor), (void const *)(& drv->vendor), __len); } } spin_unlock_irqrestore(& h->lock, flags); if (ret != 0) { return ((ssize_t )ret); } else { tmp___0 = snprintf(buf, 10UL, "%s\n", (char *)(& drv->vendor)); return ((ssize_t )tmp___0); } } } static struct device_attribute dev_attr_vendor = {{"vendor", 292U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & dev_show_vendor, 0}; static ssize_t dev_show_model(struct device *dev , struct device_attribute *attr , char *buf ) { drive_info_struct *drv ; struct device const *__mptr ; struct ctlr_info *h ; struct device const *__mptr___0 ; char model[17U] ; unsigned long flags ; int ret ; raw_spinlock_t *tmp ; size_t __len ; void *__ret ; int tmp___0 ; { __mptr = (struct device const *)dev; drv = (drive_info_struct *)__mptr + 0xffffffffffffffc8UL; __mptr___0 = (struct device const *)drv->dev.parent; h = (struct ctlr_info *)__mptr___0 + 0xffffffffffffbd38UL; ret = 0; tmp = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp); if (h->busy_configuring != 0) { ret = -16; } else { __len = 17UL; if (__len > 63UL) { __ret = __memcpy((void *)(& model), (void const *)(& drv->model), __len); } else { __ret = __builtin_memcpy((void *)(& model), (void const *)(& drv->model), __len); } } spin_unlock_irqrestore(& h->lock, flags); if (ret != 0) { return ((ssize_t )ret); } else { tmp___0 = snprintf(buf, 18UL, "%s\n", (char *)(& drv->model)); return ((ssize_t )tmp___0); } } } static struct device_attribute dev_attr_model = {{"model", 292U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & dev_show_model, 0}; static ssize_t dev_show_rev(struct device *dev , struct device_attribute *attr , char *buf ) { drive_info_struct *drv ; struct device const *__mptr ; struct ctlr_info *h ; struct device const *__mptr___0 ; char rev[5U] ; unsigned long flags ; int ret ; raw_spinlock_t *tmp ; size_t __len ; void *__ret ; int tmp___0 ; { __mptr = (struct device const *)dev; drv = (drive_info_struct *)__mptr + 0xffffffffffffffc8UL; __mptr___0 = (struct device const *)drv->dev.parent; h = (struct ctlr_info *)__mptr___0 + 0xffffffffffffbd38UL; ret = 0; tmp = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp); if (h->busy_configuring != 0) { ret = -16; } else { __len = 5UL; if (__len > 63UL) { __ret = __memcpy((void *)(& rev), (void const *)(& drv->rev), __len); } else { __ret = __builtin_memcpy((void *)(& rev), (void const *)(& drv->rev), __len); } } spin_unlock_irqrestore(& h->lock, flags); if (ret != 0) { return ((ssize_t )ret); } else { tmp___0 = snprintf(buf, 6UL, "%s\n", (char *)(& drv->rev)); return ((ssize_t )tmp___0); } } } static struct device_attribute dev_attr_rev = {{"rev", 292U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & dev_show_rev, 0}; static ssize_t cciss_show_lunid(struct device *dev , struct device_attribute *attr , char *buf ) { drive_info_struct *drv ; struct device const *__mptr ; struct ctlr_info *h ; struct device const *__mptr___0 ; unsigned long flags ; unsigned char lunid[8U] ; raw_spinlock_t *tmp ; size_t __len ; void *__ret ; int tmp___0 ; { __mptr = (struct device const *)dev; drv = (drive_info_struct *)__mptr + 0xffffffffffffffc8UL; __mptr___0 = (struct device const *)drv->dev.parent; h = (struct ctlr_info *)__mptr___0 + 0xffffffffffffbd38UL; tmp = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp); if (h->busy_configuring != 0) { spin_unlock_irqrestore(& h->lock, flags); return (-16L); } else { } if (drv->heads == 0) { spin_unlock_irqrestore(& h->lock, flags); return (-25L); } else { } __len = 8UL; if (__len > 63UL) { __ret = __memcpy((void *)(& lunid), (void const *)(& drv->LunID), __len); } else { __ret = __builtin_memcpy((void *)(& lunid), (void const *)(& drv->LunID), __len); } spin_unlock_irqrestore(& h->lock, flags); tmp___0 = snprintf(buf, 20UL, "0x%02x%02x%02x%02x%02x%02x%02x%02x\n", (int )lunid[0], (int )lunid[1], (int )lunid[2], (int )lunid[3], (int )lunid[4], (int )lunid[5], (int )lunid[6], (int )lunid[7]); return ((ssize_t )tmp___0); } } static struct device_attribute dev_attr_lunid = {{"lunid", 292U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & cciss_show_lunid, 0}; static ssize_t cciss_show_raid_level(struct device *dev , struct device_attribute *attr , char *buf ) { drive_info_struct *drv ; struct device const *__mptr ; struct ctlr_info *h ; struct device const *__mptr___0 ; int raid ; unsigned long flags ; raw_spinlock_t *tmp ; size_t tmp___0 ; int tmp___1 ; { __mptr = (struct device const *)dev; drv = (drive_info_struct *)__mptr + 0xffffffffffffffc8UL; __mptr___0 = (struct device const *)drv->dev.parent; h = (struct ctlr_info *)__mptr___0 + 0xffffffffffffbd38UL; tmp = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp); if (h->busy_configuring != 0) { spin_unlock_irqrestore(& h->lock, flags); return (-16L); } else { } raid = drv->raid_level; spin_unlock_irqrestore(& h->lock, flags); if (raid < 0 || (unsigned int )raid > 6U) { raid = 6; } else { } tmp___0 = strlen(raid_label[raid]); tmp___1 = snprintf(buf, tmp___0 + 7UL, "RAID %s\n", raid_label[raid]); return ((ssize_t )tmp___1); } } static struct device_attribute dev_attr_raid_level = {{"raid_level", 292U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & cciss_show_raid_level, 0}; static ssize_t cciss_show_usage_count(struct device *dev , struct device_attribute *attr , char *buf ) { drive_info_struct *drv ; struct device const *__mptr ; struct ctlr_info *h ; struct device const *__mptr___0 ; unsigned long flags ; int count ; raw_spinlock_t *tmp ; int tmp___0 ; { __mptr = (struct device const *)dev; drv = (drive_info_struct *)__mptr + 0xffffffffffffffc8UL; __mptr___0 = (struct device const *)drv->dev.parent; h = (struct ctlr_info *)__mptr___0 + 0xffffffffffffbd38UL; tmp = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp); if (h->busy_configuring != 0) { spin_unlock_irqrestore(& h->lock, flags); return (-16L); } else { } count = drv->usage_count; spin_unlock_irqrestore(& h->lock, flags); tmp___0 = snprintf(buf, 20UL, "%d\n", count); return ((ssize_t )tmp___0); } } static struct device_attribute dev_attr_usage_count = {{"usage_count", 292U, (_Bool)0, 0, {{{(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}, {(char)0}}}}, & cciss_show_usage_count, 0}; static struct attribute *cciss_host_attrs[4U] = { & dev_attr_rescan.attr, & dev_attr_resettable.attr, & dev_attr_transport_mode.attr, 0}; static struct attribute_group cciss_host_attr_group = {0, 0, (struct attribute **)(& cciss_host_attrs)}; static struct attribute_group const *cciss_host_attr_groups[2U] = { (struct attribute_group const *)(& cciss_host_attr_group), 0}; static struct device_type cciss_host_type = {"cciss_host", (struct attribute_group const **)(& cciss_host_attr_groups), 0, 0, & cciss_hba_release, 0}; static struct attribute *cciss_dev_attrs[8U] = { & dev_attr_unique_id.attr, & dev_attr_model.attr, & dev_attr_vendor.attr, & dev_attr_rev.attr, & dev_attr_lunid.attr, & dev_attr_raid_level.attr, & dev_attr_usage_count.attr, 0}; static struct attribute_group cciss_dev_attr_group = {0, 0, (struct attribute **)(& cciss_dev_attrs)}; static struct attribute_group const *cciss_dev_attr_groups[2U] = { (struct attribute_group const *)(& cciss_dev_attr_group), 0}; static struct device_type cciss_dev_type = {"cciss_device", (struct attribute_group const **)(& cciss_dev_attr_groups), 0, 0, & cciss_device_release, 0}; static struct bus_type cciss_bus_type = {"cciss", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static void cciss_hba_release(struct device *dev ) { { return; } } static int cciss_create_hba_sysfs_entry(struct ctlr_info *h ) { int tmp ; { device_initialize(& h->dev); h->dev.type = (struct device_type const *)(& cciss_host_type); h->dev.bus = & cciss_bus_type; dev_set_name(& h->dev, "%s", (char *)(& h->devname)); h->dev.parent = & (h->pdev)->dev; tmp = device_add(& h->dev); return (tmp); } } static void cciss_destroy_hba_sysfs_entry(struct ctlr_info *h ) { { device_del(& h->dev); put_device(& h->dev); return; } } static void cciss_device_release(struct device *dev ) { drive_info_struct *drv ; struct device const *__mptr ; { __mptr = (struct device const *)dev; drv = (drive_info_struct *)__mptr + 0xffffffffffffffc8UL; kfree((void const *)drv); return; } } static long cciss_create_ld_sysfs_entry(struct ctlr_info *h , int drv_index ) { struct device *dev ; int tmp ; { if ((int )((signed char )(h->drv[drv_index])->device_initialized) != 0) { return (0L); } else { } dev = & (h->drv[drv_index])->dev; device_initialize(dev); dev->type = (struct device_type const *)(& cciss_dev_type); dev->bus = & cciss_bus_type; dev_set_name(dev, "c%dd%d", h->ctlr, drv_index); dev->parent = & h->dev; (h->drv[drv_index])->device_initialized = 1; tmp = device_add(dev); return ((long )tmp); } } static void cciss_destroy_ld_sysfs_entry(struct ctlr_info *h , int drv_index , int ctlr_exiting ) { struct device *dev ; { dev = & (h->drv[drv_index])->dev; if (drv_index == 0 && ctlr_exiting == 0) { return; } else { } device_del(dev); put_device(dev); h->drv[drv_index] = 0; return; } } static CommandList_struct *cmd_alloc(ctlr_info_t *h ) { CommandList_struct *c ; int i ; u64bit temp64 ; dma_addr_t cmd_dma_handle ; dma_addr_t err_dma_handle ; unsigned long tmp ; int tmp___0 ; { ldv_36751: tmp = find_first_zero_bit((unsigned long const *)h->cmd_pool_bits, (unsigned long )h->nr_cmds); i = (int )tmp; if (h->nr_cmds == i) { return (0); } else { } tmp___0 = test_and_set_bit(i, (unsigned long volatile *)h->cmd_pool_bits); if (tmp___0 != 0) { goto ldv_36751; } else { goto ldv_36752; } ldv_36752: c = h->cmd_pool + (unsigned long )i; memset((void *)c, 0, 640UL); cmd_dma_handle = h->cmd_pool_dhandle + (unsigned long long )((unsigned long )i * 640UL); c->err_info = h->errinfo_pool + (unsigned long )i; memset((void *)c->err_info, 0, 48UL); err_dma_handle = h->errinfo_pool_dhandle + (unsigned long long )((unsigned long )i * 48UL); h->nr_allocs = h->nr_allocs + 1; c->cmdindex = (long )i; INIT_LIST_HEAD(& c->list); c->busaddr = (unsigned int )cmd_dma_handle; temp64.val = err_dma_handle; c->ErrDesc.Addr.lower = temp64.val32.lower; c->ErrDesc.Addr.upper = temp64.val32.upper; c->ErrDesc.Len = 48U; c->ctlr = h->ctlr; return (c); } } static CommandList_struct *cmd_special_alloc(ctlr_info_t *h ) { CommandList_struct *c ; u64bit temp64 ; dma_addr_t cmd_dma_handle ; dma_addr_t err_dma_handle ; void *tmp ; void *tmp___0 ; { tmp = pci_alloc_consistent(h->pdev, 640UL, & cmd_dma_handle); c = (CommandList_struct *)tmp; if ((unsigned long )c == (unsigned long )((CommandList_struct *)0)) { return (0); } else { } memset((void *)c, 0, 640UL); c->cmdindex = -1L; tmp___0 = pci_alloc_consistent(h->pdev, 48UL, & err_dma_handle); c->err_info = (ErrorInfo_struct *)tmp___0; if ((unsigned long )c->err_info == (unsigned long )((ErrorInfo_struct *)0)) { pci_free_consistent(h->pdev, 640UL, (void *)c, cmd_dma_handle); return (0); } else { } memset((void *)c->err_info, 0, 48UL); INIT_LIST_HEAD(& c->list); c->busaddr = (unsigned int )cmd_dma_handle; temp64.val = err_dma_handle; c->ErrDesc.Addr.lower = temp64.val32.lower; c->ErrDesc.Addr.upper = temp64.val32.upper; c->ErrDesc.Len = 48U; c->ctlr = h->ctlr; return (c); } } static void cmd_free(ctlr_info_t *h , CommandList_struct *c ) { int i ; { i = (int )(((long )c - (long )h->cmd_pool) / 640L); clear_bit(i, (unsigned long volatile *)h->cmd_pool_bits); h->nr_frees = h->nr_frees + 1; return; } } static void cmd_special_free(ctlr_info_t *h , CommandList_struct *c ) { u64bit temp64 ; u32 tmp ; { temp64.val32.lower = c->ErrDesc.Addr.lower; temp64.val32.upper = c->ErrDesc.Addr.upper; pci_free_consistent(h->pdev, 48UL, (void *)c->err_info, temp64.val); tmp = cciss_tag_discard_error_bits(h, c->busaddr); pci_free_consistent(h->pdev, 640UL, (void *)c, (unsigned long long )tmp); return; } } __inline static ctlr_info_t *get_host(struct gendisk *disk ) { { return ((ctlr_info_t *)(disk->queue)->queuedata); } } __inline static drive_info_struct *get_drv(struct gendisk *disk ) { { return ((drive_info_struct *)disk->private_data); } } static int cciss_open(struct block_device *bdev , fmode_t mode ) { ctlr_info_t *h ; ctlr_info_t *tmp ; drive_info_struct *drv ; drive_info_struct *tmp___0 ; struct _ddebug descriptor ; long tmp___1 ; int tmp___2 ; bool tmp___3 ; int tmp___4 ; { tmp = get_host(bdev->bd_disk); h = tmp; tmp___0 = get_drv(bdev->bd_disk); drv = tmp___0; descriptor.modname = "cciss"; descriptor.function = "cciss_open"; descriptor.filename = "/work/ldvuser/zakharov_benchmarks/bench/cpa/work/current--X--drivers/block/cciss.ko--X--x1linux-3.8-rc1--X--32_7a--X--cpachecker/linux-3.8-rc1/csd_deg_dscv/12/dscv_tempdir/dscv/ri/32_7a/drivers/block/cciss.c.prepared"; descriptor.format = "cciss_open %s\n"; descriptor.lineno = 1163U; descriptor.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_dev_dbg(& descriptor, (struct device const *)(& (h->pdev)->dev), "cciss_open %s\n", (char *)(& (bdev->bd_disk)->disk_name)); } else { } if (drv->busy_configuring != 0) { return (-16); } else { } if (drv->heads == 0) { if ((bdev->bd_dev & 1048575U) != 0U) { if ((bdev->bd_dev & 15U) != 0U) { return (-6); } else { tmp___2 = memcmp((void const *)(& drv->LunID), (void const *)"", 8UL); if (tmp___2 != 0) { return (-6); } else { } } } else { } tmp___3 = capable(21); if (tmp___3) { tmp___4 = 0; } else { tmp___4 = 1; } if (tmp___4) { return (-1); } else { } } else { } drv->usage_count = drv->usage_count + 1; h->usage_count = h->usage_count + 1; return (0); } } static int cciss_unlocked_open(struct block_device *bdev , fmode_t mode ) { int ret ; { ldv_mutex_lock_11(& cciss_mutex); ret = cciss_open(bdev, mode); ldv_mutex_unlock_12(& cciss_mutex); return (ret); } } static int cciss_release(struct gendisk *disk , fmode_t mode ) { ctlr_info_t *h ; drive_info_struct *drv ; struct _ddebug descriptor ; long tmp ; { ldv_mutex_lock_13(& cciss_mutex); h = get_host(disk); drv = get_drv(disk); descriptor.modname = "cciss"; descriptor.function = "cciss_release"; descriptor.filename = "/work/ldvuser/zakharov_benchmarks/bench/cpa/work/current--X--drivers/block/cciss.ko--X--x1linux-3.8-rc1--X--32_7a--X--cpachecker/linux-3.8-rc1/csd_deg_dscv/12/dscv_tempdir/dscv/ri/32_7a/drivers/block/cciss.c.prepared"; descriptor.format = "cciss_release %s\n"; descriptor.lineno = 1215U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_dev_dbg(& descriptor, (struct device const *)(& (h->pdev)->dev), "cciss_release %s\n", (char *)(& disk->disk_name)); } else { } drv->usage_count = drv->usage_count - 1; h->usage_count = h->usage_count - 1; ldv_mutex_unlock_14(& cciss_mutex); return (0); } } static int do_ioctl(struct block_device *bdev , fmode_t mode , unsigned int cmd , unsigned long arg ) { int ret ; { ldv_mutex_lock_15(& cciss_mutex); ret = cciss_ioctl(bdev, mode, cmd, arg); ldv_mutex_unlock_16(& cciss_mutex); return (ret); } } static int cciss_ioctl32_passthru(struct block_device *bdev , fmode_t mode , unsigned int cmd , unsigned long arg ) ; static int cciss_ioctl32_big_passthru(struct block_device *bdev , fmode_t mode , unsigned int cmd , unsigned long arg ) ; static int cciss_compat_ioctl(struct block_device *bdev , fmode_t mode , unsigned int cmd , unsigned long arg ) { int tmp ; int tmp___0 ; int tmp___1 ; { switch (cmd) { case -2146942463: ; case -2146942462: ; case 1074283011: ; case -2146418172: ; case 1074807301: ; case -2147204602: ; case -2147204601: ; case -2147204600: ; case -2147204599: ; case 16906: ; case 16908: ; case 1074020877: ; case 16910: ; case 16912: ; case -2146680303: tmp = do_ioctl(bdev, mode, cmd, arg); return (tmp); case -1068219893: tmp___0 = cciss_ioctl32_passthru(bdev, mode, cmd, arg); return (tmp___0); case -1067957742: tmp___1 = cciss_ioctl32_big_passthru(bdev, mode, cmd, arg); return (tmp___1); default: ; return (-515); } } } static int cciss_ioctl32_passthru(struct block_device *bdev , fmode_t mode , unsigned int cmd , unsigned long arg ) { IOCTL32_Command_struct *arg32 ; IOCTL_Command_struct arg64 ; IOCTL_Command_struct *p ; void *tmp ; int err ; u32 cp ; unsigned long tmp___0 ; unsigned long tmp___1 ; unsigned long tmp___2 ; int __ret_gu ; unsigned long __val_gu ; int __ret_gu___0 ; unsigned long __val_gu___0 ; void *tmp___3 ; int tmp___4 ; unsigned long tmp___5 ; { arg32 = (IOCTL32_Command_struct *)arg; tmp = compat_alloc_user_space(88UL); p = (IOCTL_Command_struct *)tmp; err = 0; tmp___0 = copy_from_user((void *)(& arg64.LUN_info), (void const *)(& arg32->LUN_info), 8UL); err = (int )((unsigned int )tmp___0 | (unsigned int )err); tmp___1 = copy_from_user((void *)(& arg64.Request), (void const *)(& arg32->Request), 20UL); err = (int )((unsigned int )tmp___1 | (unsigned int )err); tmp___2 = copy_from_user((void *)(& arg64.error_info), (void const *)(& arg32->error_info), 48UL); err = (int )((unsigned int )tmp___2 | (unsigned int )err); might_fault(); switch (2UL) { case 1: __asm__ volatile ("call __get_user_1": "=a" (__ret_gu), "=d" (__val_gu): "0" (& arg32->buf_size)); goto ldv_36852; case 2: __asm__ volatile ("call __get_user_2": "=a" (__ret_gu), "=d" (__val_gu): "0" (& arg32->buf_size)); goto ldv_36852; case 4: __asm__ volatile ("call __get_user_4": "=a" (__ret_gu), "=d" (__val_gu): "0" (& arg32->buf_size)); goto ldv_36852; case 8: __asm__ volatile ("call __get_user_8": "=a" (__ret_gu), "=d" (__val_gu): "0" (& arg32->buf_size)); goto ldv_36852; default: __asm__ volatile ("call __get_user_X": "=a" (__ret_gu), "=d" (__val_gu): "0" (& arg32->buf_size)); goto ldv_36852; } ldv_36852: arg64.buf_size = (unsigned short )__val_gu; err = __ret_gu | err; might_fault(); switch (4UL) { case 1: __asm__ volatile ("call __get_user_1": "=a" (__ret_gu___0), "=d" (__val_gu___0): "0" (& arg32->buf)); goto ldv_36861; case 2: __asm__ volatile ("call __get_user_2": "=a" (__ret_gu___0), "=d" (__val_gu___0): "0" (& arg32->buf)); goto ldv_36861; case 4: __asm__ volatile ("call __get_user_4": "=a" (__ret_gu___0), "=d" (__val_gu___0): "0" (& arg32->buf)); goto ldv_36861; case 8: __asm__ volatile ("call __get_user_8": "=a" (__ret_gu___0), "=d" (__val_gu___0): "0" (& arg32->buf)); goto ldv_36861; default: __asm__ volatile ("call __get_user_X": "=a" (__ret_gu___0), "=d" (__val_gu___0): "0" (& arg32->buf)); goto ldv_36861; } ldv_36861: cp = (unsigned int )__val_gu___0; err = __ret_gu___0 | err; tmp___3 = compat_ptr(cp); arg64.buf = (__u8 *)tmp___3; tmp___4 = copy_to_user((void *)p, (void const *)(& arg64), 88U); err = tmp___4 | err; if (err != 0) { return (-14); } else { } err = do_ioctl(bdev, mode, 3227009547U, (unsigned long )p); if (err != 0) { return (err); } else { } tmp___5 = copy_in_user((void *)(& arg32->error_info), (void const *)(& p->error_info), 48U); err = (int )((unsigned int )tmp___5 | (unsigned int )err); if (err != 0) { return (-14); } else { } return (err); } } static int cciss_ioctl32_big_passthru(struct block_device *bdev , fmode_t mode , unsigned int cmd , unsigned long arg ) { BIG_IOCTL32_Command_struct *arg32 ; BIG_IOCTL_Command_struct arg64 ; BIG_IOCTL_Command_struct *p ; void *tmp ; int err ; u32 cp ; unsigned long tmp___0 ; unsigned long tmp___1 ; unsigned long tmp___2 ; int __ret_gu ; unsigned long __val_gu ; int __ret_gu___0 ; unsigned long __val_gu___0 ; int __ret_gu___1 ; unsigned long __val_gu___1 ; void *tmp___3 ; int tmp___4 ; unsigned long tmp___5 ; { arg32 = (BIG_IOCTL32_Command_struct *)arg; tmp = compat_alloc_user_space(96UL); p = (BIG_IOCTL_Command_struct *)tmp; memset((void *)(& arg64), 0, 96UL); err = 0; tmp___0 = copy_from_user((void *)(& arg64.LUN_info), (void const *)(& arg32->LUN_info), 8UL); err = (int )((unsigned int )tmp___0 | (unsigned int )err); tmp___1 = copy_from_user((void *)(& arg64.Request), (void const *)(& arg32->Request), 20UL); err = (int )((unsigned int )tmp___1 | (unsigned int )err); tmp___2 = copy_from_user((void *)(& arg64.error_info), (void const *)(& arg32->error_info), 48UL); err = (int )((unsigned int )tmp___2 | (unsigned int )err); might_fault(); switch (4UL) { case 1: __asm__ volatile ("call __get_user_1": "=a" (__ret_gu), "=d" (__val_gu): "0" (& arg32->buf_size)); goto ldv_36881; case 2: __asm__ volatile ("call __get_user_2": "=a" (__ret_gu), "=d" (__val_gu): "0" (& arg32->buf_size)); goto ldv_36881; case 4: __asm__ volatile ("call __get_user_4": "=a" (__ret_gu), "=d" (__val_gu): "0" (& arg32->buf_size)); goto ldv_36881; case 8: __asm__ volatile ("call __get_user_8": "=a" (__ret_gu), "=d" (__val_gu): "0" (& arg32->buf_size)); goto ldv_36881; default: __asm__ volatile ("call __get_user_X": "=a" (__ret_gu), "=d" (__val_gu): "0" (& arg32->buf_size)); goto ldv_36881; } ldv_36881: arg64.buf_size = (unsigned int )__val_gu; err = __ret_gu | err; might_fault(); switch (4UL) { case 1: __asm__ volatile ("call __get_user_1": "=a" (__ret_gu___0), "=d" (__val_gu___0): "0" (& arg32->malloc_size)); goto ldv_36890; case 2: __asm__ volatile ("call __get_user_2": "=a" (__ret_gu___0), "=d" (__val_gu___0): "0" (& arg32->malloc_size)); goto ldv_36890; case 4: __asm__ volatile ("call __get_user_4": "=a" (__ret_gu___0), "=d" (__val_gu___0): "0" (& arg32->malloc_size)); goto ldv_36890; case 8: __asm__ volatile ("call __get_user_8": "=a" (__ret_gu___0), "=d" (__val_gu___0): "0" (& arg32->malloc_size)); goto ldv_36890; default: __asm__ volatile ("call __get_user_X": "=a" (__ret_gu___0), "=d" (__val_gu___0): "0" (& arg32->malloc_size)); goto ldv_36890; } ldv_36890: arg64.malloc_size = (unsigned int )__val_gu___0; err = __ret_gu___0 | err; might_fault(); switch (4UL) { case 1: __asm__ volatile ("call __get_user_1": "=a" (__ret_gu___1), "=d" (__val_gu___1): "0" (& arg32->buf)); goto ldv_36899; case 2: __asm__ volatile ("call __get_user_2": "=a" (__ret_gu___1), "=d" (__val_gu___1): "0" (& arg32->buf)); goto ldv_36899; case 4: __asm__ volatile ("call __get_user_4": "=a" (__ret_gu___1), "=d" (__val_gu___1): "0" (& arg32->buf)); goto ldv_36899; case 8: __asm__ volatile ("call __get_user_8": "=a" (__ret_gu___1), "=d" (__val_gu___1): "0" (& arg32->buf)); goto ldv_36899; default: __asm__ volatile ("call __get_user_X": "=a" (__ret_gu___1), "=d" (__val_gu___1): "0" (& arg32->buf)); goto ldv_36899; } ldv_36899: cp = (unsigned int )__val_gu___1; err = __ret_gu___1 | err; tmp___3 = compat_ptr(cp); arg64.buf = (__u8 *)tmp___3; tmp___4 = copy_to_user((void *)p, (void const *)(& arg64), 96U); err = tmp___4 | err; if (err != 0) { return (-14); } else { } err = do_ioctl(bdev, mode, 3227533842U, (unsigned long )p); if (err != 0) { return (err); } else { } tmp___5 = copy_in_user((void *)(& arg32->error_info), (void const *)(& p->error_info), 48U); err = (int )((unsigned int )tmp___5 | (unsigned int )err); if (err != 0) { return (-14); } else { } return (err); } } static int cciss_getgeo(struct block_device *bdev , struct hd_geometry *geo ) { drive_info_struct *drv ; drive_info_struct *tmp ; { tmp = get_drv(bdev->bd_disk); drv = tmp; if (drv->cylinders == 0) { return (-6); } else { } geo->heads = (unsigned char )drv->heads; geo->sectors = (unsigned char )drv->sectors; geo->cylinders = (unsigned short )drv->cylinders; return (0); } } static void check_ioctl_unit_attention(ctlr_info_t *h , CommandList_struct *c ) { { if ((unsigned int )(c->err_info)->CommandStatus == 1U && (unsigned int )(c->err_info)->ScsiStatus != 2U) { check_for_unit_attention(h, c); } else { } return; } } static int cciss_getpciinfo(ctlr_info_t *h , void *argp ) { cciss_pci_info_struct pciinfo ; int tmp ; int tmp___0 ; { if ((unsigned long )argp == (unsigned long )((void *)0)) { return (-22); } else { } tmp = pci_domain_nr((h->pdev)->bus); pciinfo.domain = (unsigned short )tmp; pciinfo.bus = ((h->pdev)->bus)->number; pciinfo.dev_fn = (unsigned char )(h->pdev)->devfn; pciinfo.board_id = h->board_id; tmp___0 = copy_to_user(argp, (void const *)(& pciinfo), 8U); if (tmp___0 != 0) { return (-14); } else { } return (0); } } static int cciss_getintinfo(ctlr_info_t *h , void *argp ) { cciss_coalint_struct intinfo ; int tmp ; { if ((unsigned long )argp == (unsigned long )((void *)0)) { return (-22); } else { } intinfo.delay = readl((void const volatile *)(& (h->cfgtable)->HostWrite.CoalIntDelay)); intinfo.count = readl((void const volatile *)(& (h->cfgtable)->HostWrite.CoalIntCount)); tmp = copy_to_user(argp, (void const *)(& intinfo), 8U); if (tmp != 0) { return (-14); } else { } return (0); } } static int cciss_setintinfo(ctlr_info_t *h , void *argp ) { cciss_coalint_struct intinfo ; unsigned long flags ; int i ; bool tmp ; int tmp___0 ; unsigned long tmp___1 ; raw_spinlock_t *tmp___2 ; unsigned int tmp___3 ; { if ((unsigned long )argp == (unsigned long )((void *)0)) { return (-22); } else { } tmp = capable(21); if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } if (tmp___0) { return (-1); } else { } tmp___1 = copy_from_user((void *)(& intinfo), (void const *)argp, 8UL); if (tmp___1 != 0UL) { return (-14); } else { } if (intinfo.delay == 0U && intinfo.count == 0U) { return (-22); } else { } tmp___2 = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp___2); writel(intinfo.delay, (void volatile *)(& (h->cfgtable)->HostWrite.CoalIntDelay)); writel(intinfo.count, (void volatile *)(& (h->cfgtable)->HostWrite.CoalIntCount)); writel(1U, (void volatile *)h->vaddr + 32U); i = 0; goto ldv_36936; ldv_36935: tmp___3 = readl((void const volatile *)h->vaddr + 32U); if (((long )tmp___3 & 1L) == 0L) { goto ldv_36934; } else { } __const_udelay(4295000UL); i = i + 1; ldv_36936: ; if (i <= 999) { goto ldv_36935; } else { goto ldv_36934; } ldv_36934: spin_unlock_irqrestore(& h->lock, flags); if (i > 999) { return (-11); } else { } return (0); } } static int cciss_getnodename(ctlr_info_t *h , void *argp ) { NodeName_type NodeName ; int i ; unsigned char tmp ; int tmp___0 ; { if ((unsigned long )argp == (unsigned long )((void *)0)) { return (-22); } else { } i = 0; goto ldv_36944; ldv_36943: tmp = readb((void const volatile *)(& (h->cfgtable)->ServerName) + (unsigned long )i); NodeName[i] = (char )tmp; i = i + 1; ldv_36944: ; if (i <= 15) { goto ldv_36943; } else { goto ldv_36945; } ldv_36945: tmp___0 = copy_to_user(argp, (void const *)(& NodeName), 16U); if (tmp___0 != 0) { return (-14); } else { } return (0); } } static int cciss_setnodename(ctlr_info_t *h , void *argp ) { NodeName_type NodeName ; unsigned long flags ; int i ; bool tmp ; int tmp___0 ; unsigned long tmp___1 ; raw_spinlock_t *tmp___2 ; unsigned int tmp___3 ; { if ((unsigned long )argp == (unsigned long )((void *)0)) { return (-22); } else { } tmp = capable(21); if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } if (tmp___0) { return (-1); } else { } tmp___1 = copy_from_user((void *)(& NodeName), (void const *)argp, 16UL); if (tmp___1 != 0UL) { return (-14); } else { } tmp___2 = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp___2); i = 0; goto ldv_36957; ldv_36956: writeb((int )((unsigned char )NodeName[i]), (void volatile *)(& (h->cfgtable)->ServerName) + (unsigned long )i); i = i + 1; ldv_36957: ; if (i <= 15) { goto ldv_36956; } else { goto ldv_36958; } ldv_36958: writel(1U, (void volatile *)h->vaddr + 32U); i = 0; goto ldv_36961; ldv_36960: tmp___3 = readl((void const volatile *)h->vaddr + 32U); if (((long )tmp___3 & 1L) == 0L) { goto ldv_36959; } else { } __const_udelay(4295000UL); i = i + 1; ldv_36961: ; if (i <= 999) { goto ldv_36960; } else { goto ldv_36959; } ldv_36959: spin_unlock_irqrestore(& h->lock, flags); if (i > 999) { return (-11); } else { } return (0); } } static int cciss_getheartbeat(ctlr_info_t *h , void *argp ) { Heartbeat_type heartbeat ; int tmp ; { if ((unsigned long )argp == (unsigned long )((void *)0)) { return (-22); } else { } heartbeat = readl((void const volatile *)(& (h->cfgtable)->HeartBeat)); tmp = copy_to_user(argp, (void const *)(& heartbeat), 4U); if (tmp != 0) { return (-14); } else { } return (0); } } static int cciss_getbustypes(ctlr_info_t *h , void *argp ) { BusTypes_type BusTypes ; int tmp ; { if ((unsigned long )argp == (unsigned long )((void *)0)) { return (-22); } else { } BusTypes = readl((void const volatile *)(& (h->cfgtable)->BusTypes)); tmp = copy_to_user(argp, (void const *)(& BusTypes), 4U); if (tmp != 0) { return (-14); } else { } return (0); } } static int cciss_getfirmver(ctlr_info_t *h , void *argp ) { FirmwareVer_type firmware ; size_t __len ; void *__ret ; int tmp ; { if ((unsigned long )argp == (unsigned long )((void *)0)) { return (-22); } else { } __len = 4UL; if (__len > 63UL) { __ret = __memcpy((void *)(& firmware), (void const *)(& h->firm_ver), __len); } else { __ret = __builtin_memcpy((void *)(& firmware), (void const *)(& h->firm_ver), __len); } tmp = copy_to_user(argp, (void const *)(& firmware), 4U); if (tmp != 0) { return (-14); } else { } return (0); } } static int cciss_getdrivver(ctlr_info_t *h , void *argp ) { DriverVer_type DriverVer ; int tmp ; { DriverVer = 198170U; if ((unsigned long )argp == (unsigned long )((void *)0)) { return (-22); } else { } tmp = copy_to_user(argp, (void const *)(& DriverVer), 4U); if (tmp != 0) { return (-14); } else { } return (0); } } static int cciss_getluninfo(ctlr_info_t *h , struct gendisk *disk , void *argp ) { LogvolInfo_struct luninfo ; drive_info_struct *drv ; drive_info_struct *tmp ; size_t __len ; void *__ret ; int tmp___0 ; { tmp = get_drv(disk); drv = tmp; if ((unsigned long )argp == (unsigned long )((void *)0)) { return (-22); } else { } __len = 4UL; if (__len > 63UL) { __ret = __memcpy((void *)(& luninfo.LunID), (void const *)(& drv->LunID), __len); } else { __ret = __builtin_memcpy((void *)(& luninfo.LunID), (void const *)(& drv->LunID), __len); } luninfo.num_opens = drv->usage_count; luninfo.num_parts = 0; tmp___0 = copy_to_user(argp, (void const *)(& luninfo), 12U); if (tmp___0 != 0) { return (-14); } else { } return (0); } } static int cciss_passthru(ctlr_info_t *h , void *argp ) { IOCTL_Command_struct iocommand ; CommandList_struct *c ; char *buff ; u64bit temp64 ; struct completion wait ; bool tmp ; int tmp___0 ; unsigned long tmp___1 ; void *tmp___2 ; unsigned long tmp___3 ; int tmp___4 ; int tmp___5 ; { buff = 0; init_completion(& wait); wait = wait; if ((unsigned long )argp == (unsigned long )((void *)0)) { return (-22); } else { } tmp = capable(17); if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } if (tmp___0) { return (-1); } else { } tmp___1 = copy_from_user((void *)(& iocommand), (void const *)argp, 88UL); if (tmp___1 != 0UL) { return (-14); } else { } if ((unsigned int )iocommand.buf_size == 0U && (unsigned int )*((unsigned char *)(& iocommand) + 9UL) != 0U) { return (-22); } else { } if ((unsigned int )iocommand.buf_size != 0U) { tmp___2 = kmalloc((size_t )iocommand.buf_size, 208U); buff = (char *)tmp___2; if ((unsigned long )buff == (unsigned long )((char *)0)) { return (-14); } else { } } else { } if ((unsigned int )*((unsigned char *)(& iocommand) + 9UL) == 64U) { tmp___3 = copy_from_user((void *)buff, (void const *)iocommand.buf, (unsigned long )iocommand.buf_size); if (tmp___3 != 0UL) { kfree((void const *)buff); return (-14); } else { memset((void *)buff, 0, (size_t )iocommand.buf_size); } } else { } c = cmd_special_alloc(h); if ((unsigned long )c == (unsigned long )((CommandList_struct *)0)) { kfree((void const *)buff); return (-12); } else { } c->cmd_type = 1; c->Header.ReplyQueue = 0U; if ((unsigned int )iocommand.buf_size != 0U) { c->Header.SGList = 1U; c->Header.SGTotal = 1U; } else { c->Header.SGList = 0U; c->Header.SGTotal = 0U; } c->Header.LUN = iocommand.LUN_info; c->Header.Tag.lower = c->busaddr; c->Request = iocommand.Request; if ((unsigned int )iocommand.buf_size != 0U) { temp64.val = pci_map_single(h->pdev, (void *)buff, (size_t )iocommand.buf_size, 0); c->SG[0].Addr.lower = temp64.val32.lower; c->SG[0].Addr.upper = temp64.val32.upper; c->SG[0].Len = (__u32 )iocommand.buf_size; c->SG[0].Ext = 0U; } else { } c->waiting = & wait; enqueue_cmd_and_start_io(h, c); wait_for_completion(& wait); temp64.val32.lower = c->SG[0].Addr.lower; temp64.val32.upper = c->SG[0].Addr.upper; pci_unmap_single(h->pdev, temp64.val, (size_t )iocommand.buf_size, 0); check_ioctl_unit_attention(h, c); iocommand.error_info = *(c->err_info); tmp___4 = copy_to_user(argp, (void const *)(& iocommand), 88U); if (tmp___4 != 0) { kfree((void const *)buff); cmd_special_free(h, c); return (-14); } else { } if ((unsigned int )*((unsigned char *)(& iocommand) + 9UL) == 128U) { tmp___5 = copy_to_user((void *)iocommand.buf, (void const *)buff, (unsigned int )iocommand.buf_size); if (tmp___5 != 0) { kfree((void const *)buff); cmd_special_free(h, c); return (-14); } else { } } else { } kfree((void const *)buff); cmd_special_free(h, c); return (0); } } static int cciss_bigpassthru(ctlr_info_t *h , void *argp ) { BIG_IOCTL_Command_struct *ioc ; CommandList_struct *c ; unsigned char **buff ; int *buff_size ; u64bit temp64 ; __u8 sg_used ; int status ; int i ; struct completion wait ; __u32 left ; __u32 sz ; __u8 *data_ptr ; bool tmp ; int tmp___0 ; void *tmp___1 ; unsigned long tmp___2 ; void *tmp___3 ; void *tmp___4 ; void *tmp___5 ; unsigned long tmp___6 ; int tmp___7 ; __u8 *ptr ; int tmp___8 ; { buff = 0; buff_size = 0; sg_used = 0U; status = 0; init_completion(& wait); wait = wait; if ((unsigned long )argp == (unsigned long )((void *)0)) { return (-22); } else { } tmp = capable(17); if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } if (tmp___0) { return (-1); } else { } tmp___1 = kmalloc(96UL, 208U); ioc = (BIG_IOCTL_Command_struct *)tmp___1; if ((unsigned long )ioc == (unsigned long )((BIG_IOCTL_Command_struct *)0)) { status = -12; goto cleanup1; } else { } tmp___2 = copy_from_user((void *)ioc, (void const *)argp, 96UL); if (tmp___2 != 0UL) { status = -14; goto cleanup1; } else { } if (ioc->buf_size == 0U && (unsigned int )*((unsigned char *)ioc + 9UL) != 0U) { status = -22; goto cleanup1; } else { } if (ioc->malloc_size > 128000U) { status = -22; goto cleanup1; } else { } if (ioc->buf_size > ioc->malloc_size * 32U) { status = -22; goto cleanup1; } else { } tmp___3 = kzalloc(256UL, 208U); buff = (unsigned char **)tmp___3; if ((unsigned long )buff == (unsigned long )((unsigned char **)0)) { status = -12; goto cleanup1; } else { } tmp___4 = kmalloc(128UL, 208U); buff_size = (int *)tmp___4; if ((unsigned long )buff_size == (unsigned long )((int *)0)) { status = -12; goto cleanup1; } else { } left = ioc->buf_size; data_ptr = ioc->buf; goto ldv_37024; ldv_37023: ; if (left < ioc->malloc_size) { sz = left; } else { sz = ioc->malloc_size; } *(buff_size + (unsigned long )sg_used) = (int )sz; tmp___5 = kmalloc((size_t )sz, 208U); *(buff + (unsigned long )sg_used) = (unsigned char *)tmp___5; if ((unsigned long )*(buff + (unsigned long )sg_used) == (unsigned long )((unsigned char *)0)) { status = -12; goto cleanup1; } else { } if ((unsigned int )*((unsigned char *)ioc + 9UL) == 64U) { tmp___6 = copy_from_user((void *)*(buff + (unsigned long )sg_used), (void const *)data_ptr, (unsigned long )sz); if (tmp___6 != 0UL) { status = -14; goto cleanup1; } else { memset((void *)*(buff + (unsigned long )sg_used), 0, (size_t )sz); } } else { } left = left - sz; data_ptr = data_ptr + (unsigned long )sz; sg_used = (__u8 )((int )sg_used + 1); ldv_37024: ; if (left != 0U) { goto ldv_37023; } else { goto ldv_37025; } ldv_37025: c = cmd_special_alloc(h); if ((unsigned long )c == (unsigned long )((CommandList_struct *)0)) { status = -12; goto cleanup1; } else { } c->cmd_type = 1; c->Header.ReplyQueue = 0U; c->Header.SGList = sg_used; c->Header.SGTotal = (__u16 )sg_used; c->Header.LUN = ioc->LUN_info; c->Header.Tag.lower = c->busaddr; c->Request = ioc->Request; i = 0; goto ldv_37027; ldv_37026: temp64.val = pci_map_single(h->pdev, (void *)*(buff + (unsigned long )i), (size_t )*(buff_size + (unsigned long )i), 0); c->SG[i].Addr.lower = temp64.val32.lower; c->SG[i].Addr.upper = temp64.val32.upper; c->SG[i].Len = (__u32 )*(buff_size + (unsigned long )i); c->SG[i].Ext = 0U; i = i + 1; ldv_37027: ; if ((int )sg_used > i) { goto ldv_37026; } else { goto ldv_37028; } ldv_37028: c->waiting = & wait; enqueue_cmd_and_start_io(h, c); wait_for_completion(& wait); i = 0; goto ldv_37030; ldv_37029: temp64.val32.lower = c->SG[i].Addr.lower; temp64.val32.upper = c->SG[i].Addr.upper; pci_unmap_single(h->pdev, temp64.val, (size_t )*(buff_size + (unsigned long )i), 0); i = i + 1; ldv_37030: ; if ((int )sg_used > i) { goto ldv_37029; } else { goto ldv_37031; } ldv_37031: check_ioctl_unit_attention(h, c); ioc->error_info = *(c->err_info); tmp___7 = copy_to_user(argp, (void const *)ioc, 96U); if (tmp___7 != 0) { cmd_special_free(h, c); status = -14; goto cleanup1; } else { } if ((unsigned int )*((unsigned char *)ioc + 9UL) == 128U) { ptr = ioc->buf; i = 0; goto ldv_37034; ldv_37033: tmp___8 = copy_to_user((void *)ptr, (void const *)*(buff + (unsigned long )i), (unsigned int )*(buff_size + (unsigned long )i)); if (tmp___8 != 0) { cmd_special_free(h, c); status = -14; goto cleanup1; } else { } ptr = ptr + (unsigned long )*(buff_size + (unsigned long )i); i = i + 1; ldv_37034: ; if ((int )sg_used > i) { goto ldv_37033; } else { goto ldv_37035; } ldv_37035: ; } else { } cmd_special_free(h, c); status = 0; cleanup1: ; if ((unsigned long )buff != (unsigned long )((unsigned char **)0)) { i = 0; goto ldv_37037; ldv_37036: kfree((void const *)*(buff + (unsigned long )i)); i = i + 1; ldv_37037: ; if ((int )sg_used > i) { goto ldv_37036; } else { goto ldv_37038; } ldv_37038: kfree((void const *)buff); } else { } kfree((void const *)buff_size); kfree((void const *)ioc); return (status); } } static int cciss_ioctl(struct block_device *bdev , fmode_t mode , unsigned int cmd , unsigned long arg ) { struct gendisk *disk ; ctlr_info_t *h ; ctlr_info_t *tmp ; void *argp ; struct _ddebug descriptor ; long tmp___0 ; int tmp___1 ; int tmp___2 ; int tmp___3 ; int tmp___4 ; int tmp___5 ; int tmp___6 ; int tmp___7 ; int tmp___8 ; int tmp___9 ; int tmp___10 ; int tmp___11 ; int tmp___12 ; int tmp___13 ; int tmp___14 ; { disk = bdev->bd_disk; tmp = get_host(disk); h = tmp; argp = (void *)arg; descriptor.modname = "cciss"; descriptor.function = "cciss_ioctl"; descriptor.filename = "/work/ldvuser/zakharov_benchmarks/bench/cpa/work/current--X--drivers/block/cciss.ko--X--x1linux-3.8-rc1--X--32_7a--X--cpachecker/linux-3.8-rc1/csd_deg_dscv/12/dscv_tempdir/dscv/ri/32_7a/drivers/block/cciss.c.prepared"; descriptor.format = "cciss_ioctl: Called with cmd=%x %lx\n"; descriptor.lineno = 1786U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_dev_dbg(& descriptor, (struct device const *)(& (h->pdev)->dev), "cciss_ioctl: Called with cmd=%x %lx\n", cmd, arg); } else { } switch (cmd) { case -2146942463: tmp___1 = cciss_getpciinfo(h, argp); return (tmp___1); case -2146942462: tmp___2 = cciss_getintinfo(h, argp); return (tmp___2); case 1074283011: tmp___3 = cciss_setintinfo(h, argp); return (tmp___3); case -2146418172: tmp___4 = cciss_getnodename(h, argp); return (tmp___4); case 1074807301: tmp___5 = cciss_setnodename(h, argp); return (tmp___5); case -2147204602: tmp___6 = cciss_getheartbeat(h, argp); return (tmp___6); case -2147204601: tmp___7 = cciss_getbustypes(h, argp); return (tmp___7); case -2147204600: tmp___8 = cciss_getfirmver(h, argp); return (tmp___8); case -2147204599: tmp___9 = cciss_getdrivver(h, argp); return (tmp___9); case 16908: ; case 16910: ; case 16906: tmp___10 = rebuild_lun_table(h, 0, 1); return (tmp___10); case -2146680303: tmp___11 = cciss_getluninfo(h, disk, argp); return (tmp___11); case -1067957749: tmp___12 = cciss_passthru(h, argp); return (tmp___12); case -1067433454: tmp___13 = cciss_bigpassthru(h, argp); return (tmp___13); case 8834: ; case 8705: ; case 8706: ; case 8818: ; case 8821: ; case 8707: ; case 8837: ; case 1: tmp___14 = scsi_cmd_blk_ioctl(bdev, mode, cmd, argp); return (tmp___14); case 21395: ; case 21273: ; case 21257: ; case 21378: ; case 21382: ; default: ; return (-25); } } } static void cciss_check_queues(ctlr_info_t *h ) { int start_queue ; int i ; unsigned long tmp ; int curr_queue ; unsigned long tmp___0 ; { start_queue = h->next_to_run; tmp = find_first_zero_bit((unsigned long const *)h->cmd_pool_bits, (unsigned long )h->nr_cmds); if (tmp == (unsigned long )h->nr_cmds) { return; } else { } i = 0; goto ldv_37088; ldv_37087: curr_queue = (start_queue + i) % (h->highest_lun + 1); if ((unsigned long )h->drv[curr_queue] == (unsigned long )((drive_info_struct *)0)) { goto ldv_37085; } else { } if ((unsigned long )(h->drv[curr_queue])->queue == (unsigned long )((struct request_queue *)0) || (h->drv[curr_queue])->heads == 0) { goto ldv_37085; } else { } blk_start_queue((h->gendisk[curr_queue])->queue); tmp___0 = find_first_zero_bit((unsigned long const *)h->cmd_pool_bits, (unsigned long )h->nr_cmds); if (tmp___0 == (unsigned long )h->nr_cmds) { if (curr_queue == start_queue) { h->next_to_run = (start_queue + 1) % (h->highest_lun + 1); goto ldv_37086; } else { h->next_to_run = curr_queue; goto ldv_37086; } } else { } ldv_37085: i = i + 1; ldv_37088: ; if (h->highest_lun + 1 > i) { goto ldv_37087; } else { goto ldv_37086; } ldv_37086: ; return; } } static void cciss_softirq_done(struct request *rq ) { CommandList_struct *c ; ctlr_info_t *h ; SGDescriptor_struct *curr_sg ; u64bit temp64 ; unsigned long flags ; int i ; int ddir ; int sg_index ; struct _ddebug descriptor ; long tmp ; int tmp___0 ; raw_spinlock_t *tmp___1 ; { c = (CommandList_struct *)rq->ldv_32525.completion_data; h = hba[c->ctlr]; curr_sg = (SGDescriptor_struct *)(& c->SG); sg_index = 0; if ((unsigned int )*((unsigned char *)c + 21UL) == 128U) { ddir = 2; } else { ddir = 1; } i = 0; goto ldv_37101; ldv_37100: ; if ((curr_sg + (unsigned long )sg_index)->Ext == 2147483648U) { cciss_unmap_sg_chain_block(h, c); curr_sg = *(h->cmd_sg_list + (unsigned long )c->cmdindex); sg_index = 0; } else { } temp64.val32.lower = (curr_sg + (unsigned long )sg_index)->Addr.lower; temp64.val32.upper = (curr_sg + (unsigned long )sg_index)->Addr.upper; pci_unmap_page(h->pdev, temp64.val, (size_t )(curr_sg + (unsigned long )sg_index)->Len, ddir); sg_index = sg_index + 1; i = i + 1; ldv_37101: ; if ((int )c->Header.SGList > i) { goto ldv_37100; } else { goto ldv_37102; } ldv_37102: descriptor.modname = "cciss"; descriptor.function = "cciss_softirq_done"; descriptor.filename = "/work/ldvuser/zakharov_benchmarks/bench/cpa/work/current--X--drivers/block/cciss.ko--X--x1linux-3.8-rc1--X--32_7a--X--cpachecker/linux-3.8-rc1/csd_deg_dscv/12/dscv_tempdir/dscv/ri/32_7a/drivers/block/cciss.c.prepared"; descriptor.format = "Done with %p\n"; descriptor.lineno = 1921U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_dev_dbg(& descriptor, (struct device const *)(& (h->pdev)->dev), "Done with %p\n", rq); } else { } if ((unsigned int )rq->cmd_type == 2U) { rq->resid_len = (c->err_info)->ResidualCnt; } else { } if (rq->errors == 0) { tmp___0 = 0; } else { tmp___0 = -5; } blk_end_request_all(rq, tmp___0); tmp___1 = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp___1); cmd_free(h, c); cciss_check_queues(h); spin_unlock_irqrestore(& h->lock, flags); return; } } __inline static void log_unit_to_scsi3addr(ctlr_info_t *h , unsigned char *scsi3addr , uint32_t log_unit ) { size_t __len ; void *__ret ; { __len = 8UL; if (__len > 63UL) { __ret = __memcpy((void *)scsi3addr, (void const *)(& (h->drv[log_unit])->LunID), __len); } else { __ret = __builtin_memcpy((void *)scsi3addr, (void const *)(& (h->drv[log_unit])->LunID), __len); } return; } } static void cciss_get_device_descr(ctlr_info_t *h , int logvol , char *vendor , char *model , char *rev ) { int rc ; InquiryData_struct *inq_buf ; unsigned char scsi3addr[8U] ; void *tmp ; size_t __len ; void *__ret ; size_t __len___0 ; void *__ret___0 ; size_t __len___1 ; void *__ret___1 ; { *vendor = 0; *model = 0; *rev = 0; tmp = kzalloc(36UL, 208U); inq_buf = (InquiryData_struct *)tmp; if ((unsigned long )inq_buf == (unsigned long )((InquiryData_struct *)0)) { return; } else { } log_unit_to_scsi3addr(h, (unsigned char *)(& scsi3addr), (uint32_t )logvol); rc = sendcmd_withirq(h, 18, (void *)inq_buf, 36UL, 0, (unsigned char *)(& scsi3addr), 0); if (rc == 0) { __len = 8UL; if (__len > 63UL) { __ret = __memcpy((void *)vendor, (void const *)(& inq_buf->data_byte) + 8U, __len); } else { __ret = __builtin_memcpy((void *)vendor, (void const *)(& inq_buf->data_byte) + 8U, __len); } *(vendor + 8UL) = 0; __len___0 = 16UL; if (__len___0 > 63UL) { __ret___0 = __memcpy((void *)model, (void const *)(& inq_buf->data_byte) + 16U, __len___0); } else { __ret___0 = __builtin_memcpy((void *)model, (void const *)(& inq_buf->data_byte) + 16U, __len___0); } *(model + 16UL) = 0; __len___1 = 4UL; if (__len___1 > 63UL) { __ret___1 = __memcpy((void *)rev, (void const *)(& inq_buf->data_byte) + 32U, __len___1); } else { __ret___1 = __builtin_memcpy((void *)rev, (void const *)(& inq_buf->data_byte) + 32U, __len___1); } *(rev + 4UL) = 0; } else { } kfree((void const *)inq_buf); return; } } static void cciss_get_serial_no(ctlr_info_t *h , int logvol , unsigned char *serial_no , int buflen ) { int rc ; unsigned char *buf ; unsigned char scsi3addr[8U] ; void *tmp ; size_t __len ; void *__ret ; { if (buflen > 16) { buflen = 16; } else { } memset((void *)serial_no, 255, (size_t )buflen); tmp = kzalloc(64UL, 208U); buf = (unsigned char *)tmp; if ((unsigned long )buf == (unsigned long )((unsigned char *)0)) { return; } else { } memset((void *)serial_no, 0, (size_t )buflen); log_unit_to_scsi3addr(h, (unsigned char *)(& scsi3addr), (uint32_t )logvol); rc = sendcmd_withirq(h, 18, (void *)buf, 64UL, 131, (unsigned char *)(& scsi3addr), 0); if (rc == 0) { __len = (size_t )buflen; __ret = __builtin_memcpy((void *)serial_no, (void const *)buf + 8U, __len); } else { } kfree((void const *)buf); return; } } static int cciss_add_disk(ctlr_info_t *h , struct gendisk *disk , int drv_index ) { long tmp ; { disk->queue = blk_init_queue(& do_cciss_request, & h->lock); if ((unsigned long )disk->queue == (unsigned long )((struct request_queue *)0)) { goto init_queue_failure; } else { } sprintf((char *)(& disk->disk_name), "cciss/c%dd%d", h->ctlr, drv_index); disk->major = h->major; disk->first_minor = drv_index << 4; disk->fops = & cciss_fops; tmp = cciss_create_ld_sysfs_entry(h, drv_index); if (tmp != 0L) { goto cleanup_queue; } else { } disk->private_data = (void *)h->drv[drv_index]; disk->driverfs_dev = & (h->drv[drv_index])->dev; blk_queue_bounce_limit(disk->queue, (h->pdev)->dma_mask); blk_queue_max_segments(disk->queue, (int )((unsigned short )h->maxsgentries)); blk_queue_max_hw_sectors(disk->queue, (unsigned int )h->cciss_max_sectors); blk_queue_softirq_done(disk->queue, & cciss_softirq_done); (disk->queue)->queuedata = (void *)h; blk_queue_logical_block_size(disk->queue, (int )((unsigned short )(h->drv[drv_index])->block_size)); __asm__ volatile ("sfence": : : "memory"); (h->drv[drv_index])->queue = disk->queue; add_disk(disk); return (0); cleanup_queue: blk_cleanup_queue(disk->queue); disk->queue = 0; init_queue_failure: ; return (-1); } } static void cciss_update_drive_info(ctlr_info_t *h , int drv_index , int first_time , int via_ioctl ) { struct gendisk *disk ; InquiryData_struct *inq_buff ; unsigned int block_size___0 ; sector_t total_size ; unsigned long flags ; int ret ; drive_info_struct *drvinfo ; void *tmp ; void *tmp___0 ; size_t __len ; void *__ret ; int tmp___1 ; raw_spinlock_t *tmp___2 ; size_t __len___0 ; void *__ret___0 ; size_t __len___1 ; void *__ret___1 ; size_t __len___2 ; void *__ret___2 ; size_t __len___3 ; void *__ret___3 ; int tmp___3 ; { inq_buff = 0; flags = 0UL; ret = 0; tmp = kmalloc(36UL, 208U); inq_buff = (InquiryData_struct *)tmp; tmp___0 = kzalloc(1240UL, 208U); drvinfo = (drive_info_struct *)tmp___0; if ((unsigned long )inq_buff == (unsigned long )((InquiryData_struct *)0) || (unsigned long )drvinfo == (unsigned long )((drive_info_struct *)0)) { goto mem_msg; } else { } if ((unsigned int )h->cciss_read == 136U) { cciss_read_capacity_16(h, drv_index, & total_size, & block_size___0); } else { cciss_read_capacity(h, drv_index, & total_size, & block_size___0); if ((unsigned long long )total_size == 4294967295ULL) { cciss_read_capacity_16(h, drv_index, & total_size, & block_size___0); h->cciss_read = 136U; h->cciss_write = 138U; } else { h->cciss_read = 40U; h->cciss_write = 42U; } } cciss_geometry_inquiry(h, drv_index, total_size, block_size___0, inq_buff, drvinfo); drvinfo->block_size = (int )block_size___0; drvinfo->nr_blocks = total_size + 1UL; cciss_get_device_descr(h, drv_index, (char *)(& drvinfo->vendor), (char *)(& drvinfo->model), (char *)(& drvinfo->rev)); cciss_get_serial_no(h, drv_index, (unsigned char *)(& drvinfo->serial_no), 16); __len = 8UL; if (__len > 63UL) { __ret = __memcpy((void *)(& drvinfo->LunID), (void const *)(& (h->drv[drv_index])->LunID), __len); } else { __ret = __builtin_memcpy((void *)(& drvinfo->LunID), (void const *)(& (h->drv[drv_index])->LunID), __len); } if ((h->drv[drv_index])->raid_level != -1) { tmp___1 = memcmp((void const *)(& drvinfo->serial_no), (void const *)(& (h->drv[drv_index])->serial_no), 16UL); if (((((tmp___1 == 0 && drvinfo->block_size == (h->drv[drv_index])->block_size) && drvinfo->nr_blocks == (h->drv[drv_index])->nr_blocks) && drvinfo->heads == (h->drv[drv_index])->heads) && drvinfo->sectors == (h->drv[drv_index])->sectors) && drvinfo->cylinders == (h->drv[drv_index])->cylinders) { goto freeret; } else { } } else { } if ((h->drv[drv_index])->raid_level != -1 && drv_index != 0) { dev_warn((struct device const *)(& (h->pdev)->dev), "disk %d has changed.\n", drv_index); tmp___2 = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp___2); (h->drv[drv_index])->busy_configuring = 1; spin_unlock_irqrestore(& h->lock, flags); ret = deregister_disk(h, drv_index, 0, via_ioctl); } else { } if (ret != 0) { goto freeret; } else { } if ((unsigned long )h->drv[drv_index] == (unsigned long )((drive_info_struct *)0)) { drvinfo->device_initialized = 0; h->drv[drv_index] = drvinfo; drvinfo = 0; } else { (h->drv[drv_index])->block_size = drvinfo->block_size; (h->drv[drv_index])->nr_blocks = drvinfo->nr_blocks; (h->drv[drv_index])->heads = drvinfo->heads; (h->drv[drv_index])->sectors = drvinfo->sectors; (h->drv[drv_index])->cylinders = drvinfo->cylinders; (h->drv[drv_index])->raid_level = drvinfo->raid_level; __len___0 = 16UL; if (__len___0 > 63UL) { __ret___0 = __memcpy((void *)(& (h->drv[drv_index])->serial_no), (void const *)(& drvinfo->serial_no), __len___0); } else { __ret___0 = __builtin_memcpy((void *)(& (h->drv[drv_index])->serial_no), (void const *)(& drvinfo->serial_no), __len___0); } __len___1 = 9UL; if (__len___1 > 63UL) { __ret___1 = __memcpy((void *)(& (h->drv[drv_index])->vendor), (void const *)(& drvinfo->vendor), __len___1); } else { __ret___1 = __builtin_memcpy((void *)(& (h->drv[drv_index])->vendor), (void const *)(& drvinfo->vendor), __len___1); } __len___2 = 17UL; if (__len___2 > 63UL) { __ret___2 = __memcpy((void *)(& (h->drv[drv_index])->model), (void const *)(& drvinfo->model), __len___2); } else { __ret___2 = __builtin_memcpy((void *)(& (h->drv[drv_index])->model), (void const *)(& drvinfo->model), __len___2); } __len___3 = 5UL; if (__len___3 > 63UL) { __ret___3 = __memcpy((void *)(& (h->drv[drv_index])->rev), (void const *)(& drvinfo->rev), __len___3); } else { __ret___3 = __builtin_memcpy((void *)(& (h->drv[drv_index])->rev), (void const *)(& drvinfo->rev), __len___3); } } h->num_luns = h->num_luns + 1; disk = h->gendisk[drv_index]; set_capacity(disk, (h->drv[drv_index])->nr_blocks); if (drv_index != 0 || first_time != 0) { tmp___3 = cciss_add_disk(h, disk, drv_index); if (tmp___3 != 0) { cciss_free_gendisk(h, drv_index); cciss_free_drive_info(h, drv_index); dev_warn((struct device const *)(& (h->pdev)->dev), "could not update disk %d\n", drv_index); h->num_luns = h->num_luns - 1; } else { } } else { } freeret: kfree((void const *)inq_buff); kfree((void const *)drvinfo); return; mem_msg: dev_err((struct device const *)(& (h->pdev)->dev), "out of memory\n"); goto freeret; } } static int cciss_alloc_drive_info(ctlr_info_t *h , int controller_node ) { int i ; drive_info_struct *drv ; void *tmp ; { i = 0; goto ldv_37195; ldv_37194: ; if ((unsigned long )h->drv[i] != (unsigned long )((drive_info_struct *)0) && i != 0) { goto ldv_37193; } else { } if ((i == 0 && (unsigned long )h->drv[i] != (unsigned long )((drive_info_struct *)0)) && (h->drv[i])->raid_level != -1) { goto ldv_37193; } else { } if (h->highest_lun < i && controller_node == 0) { h->highest_lun = i; } else { } if (i == 0 && (unsigned long )h->drv[i] != (unsigned long )((drive_info_struct *)0)) { return (i); } else { } tmp = kzalloc(1240UL, 208U); drv = (drive_info_struct *)tmp; if ((unsigned long )drv == (unsigned long )((drive_info_struct *)0)) { return (-1); } else { } drv->raid_level = -1; h->drv[i] = drv; return (i); ldv_37193: i = i + 1; ldv_37195: ; if (i <= 1023) { goto ldv_37194; } else { goto ldv_37196; } ldv_37196: ; return (-1); } } static void cciss_free_drive_info(ctlr_info_t *h , int drv_index ) { { kfree((void const *)h->drv[drv_index]); h->drv[drv_index] = 0; return; } } static void cciss_free_gendisk(ctlr_info_t *h , int drv_index ) { { put_disk(h->gendisk[drv_index]); h->gendisk[drv_index] = 0; return; } } static int cciss_add_gendisk(ctlr_info_t *h , unsigned char *lunid , int controller_node ) { int drv_index ; size_t __len ; void *__ret ; long tmp ; { drv_index = cciss_alloc_drive_info(h, controller_node); if (drv_index == -1) { return (-1); } else { } if ((unsigned long )h->gendisk[drv_index] == (unsigned long )((struct gendisk *)0)) { h->gendisk[drv_index] = alloc_disk(16); if ((unsigned long )h->gendisk[drv_index] == (unsigned long )((struct gendisk *)0)) { dev_err((struct device const *)(& (h->pdev)->dev), "could not allocate a new disk %d\n", drv_index); goto err_free_drive_info; } else { } } else { } __len = 8UL; if (__len > 63UL) { __ret = __memcpy((void *)(& (h->drv[drv_index])->LunID), (void const *)lunid, __len); } else { __ret = __builtin_memcpy((void *)(& (h->drv[drv_index])->LunID), (void const *)lunid, __len); } tmp = cciss_create_ld_sysfs_entry(h, drv_index); if (tmp != 0L) { goto err_free_disk; } else { } (h->drv[drv_index])->busy_configuring = 0; __asm__ volatile ("sfence": : : "memory"); return (drv_index); err_free_disk: cciss_free_gendisk(h, drv_index); err_free_drive_info: cciss_free_drive_info(h, drv_index); return (-1); } } static void cciss_add_controller_node(ctlr_info_t *h ) { struct gendisk *disk ; int drv_index ; int tmp ; { if ((unsigned long )h->gendisk[0] != (unsigned long )((struct gendisk *)0)) { return; } else { } drv_index = cciss_add_gendisk(h, (unsigned char *)"", 1); if (drv_index == -1) { goto error; } else { } (h->drv[drv_index])->block_size = 512; (h->drv[drv_index])->nr_blocks = 0UL; (h->drv[drv_index])->heads = 0; (h->drv[drv_index])->sectors = 0; (h->drv[drv_index])->cylinders = 0; (h->drv[drv_index])->raid_level = -1; memset((void *)(& (h->drv[drv_index])->serial_no), 0, 16UL); disk = h->gendisk[drv_index]; tmp = cciss_add_disk(h, disk, drv_index); if (tmp == 0) { return; } else { } cciss_free_gendisk(h, drv_index); cciss_free_drive_info(h, drv_index); error: dev_warn((struct device const *)(& (h->pdev)->dev), "could not add disk 0.\n"); return; } } static int rebuild_lun_table(ctlr_info_t *h , int first_time , int via_ioctl ) { int num_luns ; ReportLunData_struct *ld_buff ; int return_code ; int listlength ; int i ; int drv_found ; int drv_index ; unsigned char lunid[8U] ; unsigned long flags ; bool tmp ; int tmp___0 ; raw_spinlock_t *tmp___1 ; void *tmp___2 ; __u32 tmp___3 ; int j ; size_t __len ; void *__ret ; int tmp___4 ; raw_spinlock_t *tmp___5 ; int j___0 ; size_t __len___0 ; void *__ret___0 ; int tmp___6 ; { ld_buff = 0; listlength = 0; drv_index = 0; lunid[0] = '\000'; lunid[1] = (unsigned char)0; lunid[2] = (unsigned char)0; lunid[3] = (unsigned char)0; lunid[4] = (unsigned char)0; lunid[5] = (unsigned char)0; lunid[6] = (unsigned char)0; lunid[7] = (unsigned char)0; tmp = capable(17); if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } if (tmp___0) { return (-1); } else { } tmp___1 = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp___1); if (h->busy_configuring != 0) { spin_unlock_irqrestore(& h->lock, flags); return (-16); } else { } h->busy_configuring = 1; spin_unlock_irqrestore(& h->lock, flags); tmp___2 = kzalloc(8200UL, 208U); ld_buff = (ReportLunData_struct *)tmp___2; if ((unsigned long )ld_buff == (unsigned long )((ReportLunData_struct *)0)) { goto mem_msg; } else { } return_code = sendcmd_withirq(h, 194, (void *)ld_buff, 8200UL, 0, (unsigned char *)"", 0); if (return_code == 0) { tmp___3 = __fswab32(*((__be32 *)(& ld_buff->LUNListLength))); listlength = (int )tmp___3; } else { dev_warn((struct device const *)(& (h->pdev)->dev), "report logical volume command failed\n"); listlength = 0; goto freeret; } num_luns = listlength / 8; if (num_luns > 1024) { num_luns = 1024; dev_warn((struct device const *)(& (h->pdev)->dev), "more luns configured on controller than can be handled by this driver.\n"); } else { } if (num_luns == 0) { cciss_add_controller_node(h); } else { } i = 0; goto ldv_37253; ldv_37252: drv_found = 0; if ((unsigned long )h->drv[i] == (unsigned long )((drive_info_struct *)0)) { goto ldv_37242; } else { } j = 0; goto ldv_37248; ldv_37247: __len = 8UL; if (__len > 63UL) { __ret = __memcpy((void *)(& lunid), (void const *)(& ld_buff->LUN) + (unsigned long )j, __len); } else { __ret = __builtin_memcpy((void *)(& lunid), (void const *)(& ld_buff->LUN) + (unsigned long )j, __len); } tmp___4 = memcmp((void const *)(& (h->drv[i])->LunID), (void const *)(& lunid), 8UL); if (tmp___4 == 0) { drv_found = 1; goto ldv_37246; } else { } j = j + 1; ldv_37248: ; if (j < num_luns) { goto ldv_37247; } else { goto ldv_37246; } ldv_37246: ; if (drv_found == 0) { tmp___5 = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp___5); (h->drv[i])->busy_configuring = 1; spin_unlock_irqrestore(& h->lock, flags); return_code = deregister_disk(h, i, 1, via_ioctl); if ((unsigned long )h->drv[i] != (unsigned long )((drive_info_struct *)0)) { (h->drv[i])->busy_configuring = 0; } else { } } else { } ldv_37242: i = i + 1; ldv_37253: ; if (h->highest_lun >= i) { goto ldv_37252; } else { goto ldv_37254; } ldv_37254: i = 0; goto ldv_37263; ldv_37262: drv_found = 0; __len___0 = 8UL; if (__len___0 > 63UL) { __ret___0 = __memcpy((void *)(& lunid), (void const *)(& ld_buff->LUN) + (unsigned long )i, __len___0); } else { __ret___0 = __builtin_memcpy((void *)(& lunid), (void const *)(& ld_buff->LUN) + (unsigned long )i, __len___0); } j___0 = 0; goto ldv_37261; ldv_37260: ; if ((unsigned long )h->drv[j___0] != (unsigned long )((drive_info_struct *)0)) { tmp___6 = memcmp((void const *)(& (h->drv[j___0])->LunID), (void const *)(& lunid), 8UL); if (tmp___6 == 0) { drv_index = j___0; drv_found = 1; goto ldv_37259; } else { } } else { } j___0 = j___0 + 1; ldv_37261: ; if (h->highest_lun >= j___0) { goto ldv_37260; } else { goto ldv_37259; } ldv_37259: ; if (drv_found == 0) { drv_index = cciss_add_gendisk(h, (unsigned char *)(& lunid), 0); if (drv_index == -1) { goto freeret; } else { } } else { } cciss_update_drive_info(h, drv_index, first_time, via_ioctl); i = i + 1; ldv_37263: ; if (i < num_luns) { goto ldv_37262; } else { goto ldv_37264; } ldv_37264: ; freeret: kfree((void const *)ld_buff); h->busy_configuring = 0; return (-1); mem_msg: dev_err((struct device const *)(& (h->pdev)->dev), "out of memory\n"); h->busy_configuring = 0; goto freeret; } } static void cciss_clear_drive_info(drive_info_struct *drive_info ) { { drive_info->nr_blocks = 0UL; drive_info->block_size = 0; drive_info->heads = 0; drive_info->sectors = 0; drive_info->cylinders = 0; drive_info->raid_level = -1; memset((void *)(& drive_info->serial_no), 0, 16UL); memset((void *)(& drive_info->model), 0, 17UL); memset((void *)(& drive_info->rev), 0, 5UL); memset((void *)(& drive_info->vendor), 0, 9UL); return; } } static int deregister_disk(ctlr_info_t *h , int drv_index , int clear_all , int via_ioctl ) { int i ; struct gendisk *disk ; drive_info_struct *drv ; int recalculate_highest_lun ; bool tmp ; int tmp___0 ; struct request_queue *q ; int newhighest ; { tmp = capable(17); if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } if (tmp___0) { return (-1); } else { } drv = h->drv[drv_index]; disk = h->gendisk[drv_index]; if (clear_all != 0 || (unsigned long )h->gendisk[0] == (unsigned long )disk) { if (drv->usage_count > via_ioctl) { return (-16); } else if (drv->usage_count > 0) { return (-16); } else { } } else { } recalculate_highest_lun = (unsigned long )h->drv[h->highest_lun] == (unsigned long )drv; if ((unsigned long )h->gendisk[0] != (unsigned long )disk) { q = disk->queue; if ((disk->flags & 16) != 0) { cciss_destroy_ld_sysfs_entry(h, drv_index, 0); del_gendisk(disk); } else { } if ((unsigned long )q != (unsigned long )((struct request_queue *)0)) { blk_cleanup_queue(q); } else { } if (clear_all != 0) { i = 0; goto ldv_37281; ldv_37280: ; if ((unsigned long )h->gendisk[i] == (unsigned long )disk) { h->gendisk[i] = 0; goto ldv_37279; } else { } i = i + 1; ldv_37281: ; if (i <= 1023) { goto ldv_37280; } else { goto ldv_37279; } ldv_37279: put_disk(disk); } else { } } else { set_capacity(disk, 0UL); cciss_clear_drive_info(drv); } h->num_luns = h->num_luns - 1; if (clear_all != 0 && recalculate_highest_lun != 0) { newhighest = -1; i = 0; goto ldv_37284; ldv_37283: ; if ((unsigned long )h->drv[i] != (unsigned long )((drive_info_struct *)0) && (h->drv[i])->heads != 0) { newhighest = i; } else { } i = i + 1; ldv_37284: ; if (h->highest_lun >= i) { goto ldv_37283; } else { goto ldv_37285; } ldv_37285: h->highest_lun = newhighest; } else { } return (0); } } static int fill_cmd(ctlr_info_t *h , CommandList_struct *c , __u8 cmd , void *buff , size_t size , __u8 page_code , unsigned char *scsi3addr , int cmd_type ) { u64bit buff_dma_handle ; int status ; size_t __len ; void *__ret ; size_t __len___0 ; void *__ret___0 ; { status = 0; c->cmd_type = 1; c->Header.ReplyQueue = 0U; if ((unsigned long )buff != (unsigned long )((void *)0)) { c->Header.SGList = 1U; c->Header.SGTotal = 1U; } else { c->Header.SGList = 0U; c->Header.SGTotal = 0U; } c->Header.Tag.lower = c->busaddr; __len = 8UL; if (__len > 63UL) { __ret = __memcpy((void *)(& c->Header.LUN.LunAddrBytes), (void const *)scsi3addr, __len); } else { __ret = __builtin_memcpy((void *)(& c->Header.LUN.LunAddrBytes), (void const *)scsi3addr, __len); } c->Request.Type.Type = (unsigned char )cmd_type; if (cmd_type == 0) { switch ((int )cmd) { case 18: ; if ((unsigned int )page_code != 0U) { c->Request.CDB[1] = 1U; c->Request.CDB[2] = page_code; } else { } c->Request.CDBLen = 6U; c->Request.Type.Attribute = 4U; c->Request.Type.Direction = 2U; c->Request.Timeout = 0U; c->Request.CDB[0] = 18U; c->Request.CDB[4] = (__u8 )size; goto ldv_37302; case 194: ; case 195: c->Request.CDBLen = 12U; c->Request.Type.Attribute = 4U; c->Request.Type.Direction = 2U; c->Request.Timeout = 0U; c->Request.CDB[0] = cmd; c->Request.CDB[6] = (__u8 )(size >> 24); c->Request.CDB[7] = (__u8 )(size >> 16); c->Request.CDB[8] = (__u8 )(size >> 8); c->Request.CDB[9] = (__u8 )size; goto ldv_37302; case 37: c->Request.CDBLen = 10U; c->Request.Type.Attribute = 4U; c->Request.Type.Direction = 2U; c->Request.Timeout = 0U; c->Request.CDB[0] = cmd; goto ldv_37302; case 158: c->Request.CDBLen = 16U; c->Request.Type.Attribute = 4U; c->Request.Type.Direction = 2U; c->Request.Timeout = 0U; c->Request.CDB[0] = cmd; c->Request.CDB[1] = 16U; c->Request.CDB[10] = (__u8 )(size >> 24); c->Request.CDB[11] = (__u8 )(size >> 16); c->Request.CDB[12] = (__u8 )(size >> 8); c->Request.CDB[13] = (__u8 )size; c->Request.Timeout = 0U; c->Request.CDB[0] = cmd; goto ldv_37302; case 1: c->Request.CDBLen = 12U; c->Request.Type.Attribute = 4U; c->Request.Type.Direction = 1U; c->Request.Timeout = 0U; c->Request.CDB[0] = 39U; c->Request.CDB[6] = 194U; c->Request.CDB[7] = (__u8 )(size >> 8); c->Request.CDB[8] = (__u8 )size; goto ldv_37302; case 0: c->Request.CDBLen = 6U; c->Request.Type.Attribute = 4U; c->Request.Type.Direction = 0U; c->Request.Timeout = 0U; goto ldv_37302; default: dev_warn((struct device const *)(& (h->pdev)->dev), "Unknown Command 0x%c\n", (int )cmd); return (1); } ldv_37302: ; } else if (cmd_type == 1) { switch ((int )cmd) { case 0: c->Request.CDBLen = 12U; c->Request.Type.Attribute = 4U; c->Request.Type.Direction = 1U; c->Request.Timeout = 0U; c->Request.CDB[0] = cmd; c->Request.CDB[1] = 0U; __len___0 = 8UL; if (__len___0 > 63UL) { __ret___0 = __memcpy((void *)(& c->Request.CDB) + 4U, (void const *)buff, __len___0); } else { __ret___0 = __builtin_memcpy((void *)(& c->Request.CDB) + 4U, (void const *)buff, __len___0); } goto ldv_37314; case 1: c->Request.CDBLen = 16U; c->Request.Type.Attribute = 4U; c->Request.Type.Direction = 0U; c->Request.Timeout = 0U; memset((void *)(& c->Request.CDB), 0, 16UL); c->Request.CDB[0] = cmd; c->Request.CDB[1] = 3U; goto ldv_37314; case 3: c->Request.CDBLen = 1U; c->Request.Type.Attribute = 4U; c->Request.Type.Direction = 1U; c->Request.Timeout = 0U; c->Request.CDB[0] = cmd; goto ldv_37314; default: dev_warn((struct device const *)(& (h->pdev)->dev), "unknown message type %d\n", (int )cmd); return (1); } ldv_37314: ; } else { dev_warn((struct device const *)(& (h->pdev)->dev), "unknown command type %d\n", cmd_type); return (1); } if (size != 0UL) { buff_dma_handle.val = pci_map_single(h->pdev, buff, size, 0); c->SG[0].Addr.lower = buff_dma_handle.val32.lower; c->SG[0].Addr.upper = buff_dma_handle.val32.upper; c->SG[0].Len = (__u32 )size; c->SG[0].Ext = 0U; } else { } return (status); } } static int cciss_send_reset(ctlr_info_t *h , unsigned char *scsi3addr , u8 reset_type ) { CommandList_struct *c ; int return_status ; { c = cmd_alloc(h); if ((unsigned long )c == (unsigned long )((CommandList_struct *)0)) { return (-12); } else { } return_status = fill_cmd(h, c, 1, 0, 0UL, 0, (unsigned char *)"", 1); c->Request.CDB[1] = reset_type; if (return_status != 0) { cmd_special_free(h, c); return (return_status); } else { } c->waiting = 0; enqueue_cmd_and_start_io(h, c); return (0); } } static int check_target_status(ctlr_info_t *h , CommandList_struct *c ) { int tmp ; { switch ((int )(c->err_info)->ScsiStatus) { case 0: ; return (0); case 2: ; switch ((int )(c->err_info)->SenseInfo[2] & 15) { case 0: ; return (0); case 1: ; return (0); default: tmp = check_for_unit_attention(h, c); if (tmp != 0) { return (3); } else { } dev_warn((struct device const *)(& (h->pdev)->dev), "cmd 0x%02x check condition, sense key = 0x%02x\n", (int )c->Request.CDB[0], (int )(c->err_info)->SenseInfo[2]); } goto ldv_37334; default: dev_warn((struct device const *)(& (h->pdev)->dev), "cmd 0x%02xscsi status = 0x%02x\n", (int )c->Request.CDB[0], (int )(c->err_info)->ScsiStatus); goto ldv_37334; } ldv_37334: ; return (1); } } static int process_sendcmd_error(ctlr_info_t *h , CommandList_struct *c ) { int return_status ; { return_status = 0; if ((unsigned int )(c->err_info)->CommandStatus == 0U) { return (0); } else { } switch ((int )(c->err_info)->CommandStatus) { case 1: return_status = check_target_status(h, c); goto ldv_37342; case 2: ; case 3: ; goto ldv_37342; case 4: dev_warn((struct device const *)(& (h->pdev)->dev), "cmd 0x%02x is reported invalid\n", (int )c->Request.CDB[0]); return_status = 1; goto ldv_37342; case 5: dev_warn((struct device const *)(& (h->pdev)->dev), "cmd 0x%02x has protocol error\n", (int )c->Request.CDB[0]); return_status = 1; goto ldv_37342; case 6: dev_warn((struct device const *)(& (h->pdev)->dev), "cmd 0x%02x had hardware error\n", (int )c->Request.CDB[0]); return_status = 1; goto ldv_37342; case 7: dev_warn((struct device const *)(& (h->pdev)->dev), "cmd 0x%02x had connection lost\n", (int )c->Request.CDB[0]); return_status = 1; goto ldv_37342; case 8: dev_warn((struct device const *)(& (h->pdev)->dev), "cmd 0x%02x was aborted\n", (int )c->Request.CDB[0]); return_status = 1; goto ldv_37342; case 9: dev_warn((struct device const *)(& (h->pdev)->dev), "cmd 0x%02x reports abort failed\n", (int )c->Request.CDB[0]); return_status = 1; goto ldv_37342; case 10: dev_warn((struct device const *)(& (h->pdev)->dev), "unsolicited abort 0x%02x\n", (int )c->Request.CDB[0]); return_status = 3; goto ldv_37342; case 12: dev_warn((struct device const *)(& (h->pdev)->dev), "cmd unabortable\n"); return_status = 1; goto ldv_37342; default: dev_warn((struct device const *)(& (h->pdev)->dev), "cmd 0x%02x returned unknown status %x\n", (int )c->Request.CDB[0], (int )(c->err_info)->CommandStatus); return_status = 1; } ldv_37342: ; return (return_status); } } static int sendcmd_withirq_core(ctlr_info_t *h , CommandList_struct *c , int attempt_retry ) { struct completion wait ; u64bit buff_dma_handle ; int return_status ; { init_completion(& wait); wait = wait; return_status = 0; resend_cmd2: c->waiting = & wait; enqueue_cmd_and_start_io(h, c); wait_for_completion(& wait); if ((unsigned int )(c->err_info)->CommandStatus == 0U || attempt_retry == 0) { goto command_done; } else { } return_status = process_sendcmd_error(h, c); if (return_status == 3 && c->retry_count <= 2) { dev_warn((struct device const *)(& (h->pdev)->dev), "retrying 0x%02x\n", (int )c->Request.CDB[0]); c->retry_count = c->retry_count + 1; memset((void *)c->err_info, 0, 48UL); return_status = 0; wait.done = 0U; goto resend_cmd2; } else { } command_done: buff_dma_handle.val32.lower = c->SG[0].Addr.lower; buff_dma_handle.val32.upper = c->SG[0].Addr.upper; pci_unmap_single(h->pdev, buff_dma_handle.val, (size_t )c->SG[0].Len, 0); return (return_status); } } static int sendcmd_withirq(ctlr_info_t *h , __u8 cmd , void *buff , size_t size , __u8 page_code , unsigned char *scsi3addr , int cmd_type ) { CommandList_struct *c ; int return_status ; { c = cmd_special_alloc(h); if ((unsigned long )c == (unsigned long )((CommandList_struct *)0)) { return (-12); } else { } return_status = fill_cmd(h, c, (int )cmd, buff, size, (int )page_code, scsi3addr, cmd_type); if (return_status == 0) { return_status = sendcmd_withirq_core(h, c, 1); } else { } cmd_special_free(h, c); return (return_status); } } static void cciss_geometry_inquiry(ctlr_info_t *h , int logvol , sector_t total_size , unsigned int block_size___0 , InquiryData_struct *inq_buff , drive_info_struct *drv ) { int return_code ; unsigned long t ; unsigned char scsi3addr[8U] ; sector_t real_size ; unsigned long rem ; int _res ; { memset((void *)inq_buff, 0, 36UL); log_unit_to_scsi3addr(h, (unsigned char *)(& scsi3addr), (uint32_t )logvol); return_code = sendcmd_withirq(h, 18, (void *)inq_buff, 36UL, 193, (unsigned char *)(& scsi3addr), 0); if (return_code == 0) { if ((unsigned int )inq_buff->data_byte[8] == 255U) { dev_warn((struct device const *)(& (h->pdev)->dev), "reading geometry failed, volume does not support reading geometry\n"); drv->heads = 255; drv->sectors = 32; drv->cylinders = (int )((unsigned int )total_size + 1U); drv->raid_level = 6; } else { drv->heads = (int )inq_buff->data_byte[6]; drv->sectors = (int )inq_buff->data_byte[7]; drv->cylinders = (int )inq_buff->data_byte[4] << 8; drv->cylinders = drv->cylinders + (int )inq_buff->data_byte[5]; drv->raid_level = (int )inq_buff->data_byte[8]; } drv->block_size = (int )block_size___0; drv->nr_blocks = total_size + 1UL; t = (unsigned long )(drv->heads * drv->sectors); if (t > 1UL) { real_size = total_size + 1UL; _res = (int )(real_size % t); real_size = real_size / t; rem = (unsigned long )_res; if (rem != 0UL) { real_size = real_size + 1UL; } else { } drv->cylinders = (int )real_size; } else { } } else { dev_warn((struct device const *)(& (h->pdev)->dev), "reading geometry failed\n"); } return; } } static void cciss_read_capacity(ctlr_info_t *h , int logvol , sector_t *total_size , unsigned int *block_size___0 ) { ReadCapdata_struct *buf ; int return_code ; unsigned char scsi3addr[8U] ; void *tmp ; __u32 tmp___0 ; __u32 tmp___1 ; { tmp = kzalloc(8UL, 208U); buf = (ReadCapdata_struct *)tmp; if ((unsigned long )buf == (unsigned long )((ReadCapdata_struct *)0)) { dev_warn((struct device const *)(& (h->pdev)->dev), "out of memory\n"); return; } else { } log_unit_to_scsi3addr(h, (unsigned char *)(& scsi3addr), (uint32_t )logvol); return_code = sendcmd_withirq(h, 37, (void *)buf, 8UL, 0, (unsigned char *)(& scsi3addr), 0); if (return_code == 0) { tmp___0 = __fswab32(*((__be32 *)(& buf->total_size))); *total_size = (sector_t )tmp___0; tmp___1 = __fswab32(*((__be32 *)(& buf->block_size))); *block_size___0 = tmp___1; } else { dev_warn((struct device const *)(& (h->pdev)->dev), "read capacity failed\n"); *total_size = 0UL; *block_size___0 = 1024U; } kfree((void const *)buf); return; } } static void cciss_read_capacity_16(ctlr_info_t *h , int logvol , sector_t *total_size , unsigned int *block_size___0 ) { ReadCapdata_struct_16 *buf ; int return_code ; unsigned char scsi3addr[8U] ; void *tmp ; __u64 tmp___0 ; __u32 tmp___1 ; { tmp = kzalloc(31UL, 208U); buf = (ReadCapdata_struct_16 *)tmp; if ((unsigned long )buf == (unsigned long )((ReadCapdata_struct_16 *)0)) { dev_warn((struct device const *)(& (h->pdev)->dev), "out of memory\n"); return; } else { } log_unit_to_scsi3addr(h, (unsigned char *)(& scsi3addr), (uint32_t )logvol); return_code = sendcmd_withirq(h, 158, (void *)buf, 31UL, 0, (unsigned char *)(& scsi3addr), 0); if (return_code == 0) { tmp___0 = __fswab64(*((__be64 *)(& buf->total_size))); *total_size = (sector_t )tmp___0; tmp___1 = __fswab32(*((__be32 *)(& buf->block_size))); *block_size___0 = tmp___1; } else { dev_warn((struct device const *)(& (h->pdev)->dev), "read capacity failed\n"); *total_size = 0UL; *block_size___0 = 1024U; } _dev_info((struct device const *)(& (h->pdev)->dev), " blocks= %llu block_size= %d\n", (unsigned long long )*total_size + 1ULL, *block_size___0); kfree((void const *)buf); return; } } static int cciss_revalidate(struct gendisk *disk ) { ctlr_info_t *h ; ctlr_info_t *tmp ; drive_info_struct *drv ; drive_info_struct *tmp___0 ; int logvol ; int FOUND ; unsigned int block_size___0 ; sector_t total_size ; InquiryData_struct *inq_buff ; int tmp___1 ; void *tmp___2 ; { tmp = get_host(disk); h = tmp; tmp___0 = get_drv(disk); drv = tmp___0; FOUND = 0; inq_buff = 0; logvol = 0; goto ldv_37424; ldv_37423: ; if ((unsigned long )h->drv[logvol] == (unsigned long )((drive_info_struct *)0)) { goto ldv_37421; } else { } tmp___1 = memcmp((void const *)(& (h->drv[logvol])->LunID), (void const *)(& drv->LunID), 8UL); if (tmp___1 == 0) { FOUND = 1; goto ldv_37422; } else { } ldv_37421: logvol = logvol + 1; ldv_37424: ; if (h->highest_lun >= logvol) { goto ldv_37423; } else { goto ldv_37422; } ldv_37422: ; if (FOUND == 0) { return (1); } else { } tmp___2 = kmalloc(36UL, 208U); inq_buff = (InquiryData_struct *)tmp___2; if ((unsigned long )inq_buff == (unsigned long )((InquiryData_struct *)0)) { dev_warn((struct device const *)(& (h->pdev)->dev), "out of memory\n"); return (1); } else { } if ((unsigned int )h->cciss_read == 40U) { cciss_read_capacity(h, logvol, & total_size, & block_size___0); } else { cciss_read_capacity_16(h, logvol, & total_size, & block_size___0); } cciss_geometry_inquiry(h, logvol, total_size, block_size___0, inq_buff, drv); blk_queue_logical_block_size(drv->queue, (int )((unsigned short )drv->block_size)); set_capacity(disk, drv->nr_blocks); kfree((void const *)inq_buff); return (0); } } static void *remap_pci_mem(ulong base , ulong size ) { ulong page_base ; ulong page_offs ; void *page_remapped ; void *tmp ; void *tmp___0 ; { page_base = base & 0xfffffffffffff000UL; page_offs = base - page_base; tmp = ioremap((resource_size_t )page_base, page_offs + size); page_remapped = tmp; if ((unsigned long )page_remapped != (unsigned long )((void *)0)) { tmp___0 = page_remapped + page_offs; } else { tmp___0 = 0; } return (tmp___0); } } static void start_io(ctlr_info_t *h ) { CommandList_struct *c ; struct list_head const *__mptr ; unsigned long tmp ; int tmp___0 ; { goto ldv_37440; ldv_37439: __mptr = (struct list_head const *)h->reqQ.next; c = (CommandList_struct *)__mptr + 0xfffffffffffffdb0UL; tmp = (*(h->access.fifo_full))(h); if (tmp != 0UL) { dev_warn((struct device const *)(& (h->pdev)->dev), "fifo full\n"); goto ldv_37438; } else { } removeQ(c); h->Qdepth = h->Qdepth - 1U; (*(h->access.submit_command))(h, c); addQ(& h->cmpQ, c); ldv_37440: tmp___0 = list_empty((struct list_head const *)(& h->reqQ)); if (tmp___0 == 0) { goto ldv_37439; } else { goto ldv_37438; } ldv_37438: ; return; } } __inline static void resend_cciss_cmd(ctlr_info_t *h , CommandList_struct *c ) { { memset((void *)c->err_info, 0, 48UL); addQ(& h->reqQ, c); h->Qdepth = h->Qdepth + 1U; if (h->Qdepth > h->maxQsinceinit) { h->maxQsinceinit = h->Qdepth; } else { } start_io(h); return; } } __inline static unsigned int make_status_bytes(unsigned int scsi_status_byte , unsigned int msg_byte , unsigned int host_byte , unsigned int driver_byte ) { { return ((((scsi_status_byte & 255U) | ((msg_byte << 8) & 65535U)) | ((host_byte & 255U) << 16)) | (driver_byte << 24)); } } __inline static int evaluate_target_status(ctlr_info_t *h , CommandList_struct *cmd , int *retry_cmd ) { unsigned char sense_key ; unsigned char status_byte ; unsigned char msg_byte ; unsigned char host_byte ; unsigned char driver_byte ; int error_value ; unsigned int tmp ; int tmp___0 ; size_t __len ; void *__ret ; { *retry_cmd = 0; status_byte = (cmd->err_info)->ScsiStatus; driver_byte = 0U; msg_byte = (unsigned char )(cmd->err_info)->CommandStatus; if ((unsigned int )(cmd->rq)->cmd_type == 2U) { host_byte = 10U; } else { host_byte = 0U; } tmp = make_status_bytes((unsigned int )status_byte, (unsigned int )msg_byte, (unsigned int )host_byte, (unsigned int )driver_byte); error_value = (int )tmp; if ((unsigned int )(cmd->err_info)->ScsiStatus != 2U) { if ((unsigned int )(cmd->rq)->cmd_type != 2U) { dev_warn((struct device const *)(& (h->pdev)->dev), "cmd %p has SCSI Status 0x%x\n", cmd, (int )(cmd->err_info)->ScsiStatus); } else { } return (error_value); } else { } sense_key = (unsigned int )(cmd->err_info)->SenseInfo[2] & 15U; if (((unsigned int )sense_key == 0U || (unsigned int )sense_key == 1U) && (unsigned int )(cmd->rq)->cmd_type != 2U) { error_value = 0; } else { } tmp___0 = check_for_unit_attention(h, cmd); if (tmp___0 != 0) { *retry_cmd = (unsigned int )(cmd->rq)->cmd_type != 2U; return (0); } else { } if ((unsigned int )(cmd->rq)->cmd_type != 2U) { if (error_value != 0) { dev_warn((struct device const *)(& (h->pdev)->dev), "cmd %p has CHECK CONDITION sense key = 0x%x\n", cmd, (int )sense_key); } else { } return (error_value); } else { } if ((unsigned long )(cmd->rq)->sense != (unsigned long )((void *)0)) { if ((cmd->rq)->sense_len > (unsigned int )(cmd->err_info)->SenseLen) { (cmd->rq)->sense_len = (unsigned int )(cmd->err_info)->SenseLen; } else { } __len = (size_t )(cmd->rq)->sense_len; __ret = __builtin_memcpy((cmd->rq)->sense, (void const *)(& (cmd->err_info)->SenseInfo), __len); } else { (cmd->rq)->sense_len = 0U; } return (error_value); } } __inline static void complete_command(ctlr_info_t *h , CommandList_struct *cmd , int timeout ) { int retry_cmd ; struct request *rq ; unsigned int tmp ; unsigned int tmp___0 ; unsigned int tmp___1 ; unsigned int tmp___2 ; unsigned int tmp___3 ; unsigned int tmp___4 ; unsigned int tmp___5 ; unsigned int tmp___6 ; unsigned int tmp___7 ; unsigned int tmp___8 ; unsigned int tmp___9 ; unsigned int tmp___10 ; unsigned int tmp___11 ; unsigned int tmp___12 ; unsigned int tmp___13 ; unsigned int tmp___14 ; unsigned int tmp___15 ; unsigned int tmp___16 ; unsigned int tmp___17 ; unsigned int tmp___18 ; unsigned int tmp___19 ; { retry_cmd = 0; rq = cmd->rq; rq->errors = 0; if (timeout != 0) { tmp = make_status_bytes(0U, 0U, 0U, 6U); rq->errors = (int )tmp; } else { } if ((unsigned int )(cmd->err_info)->CommandStatus == 0U) { goto after_error_processing; } else { } switch ((int )(cmd->err_info)->CommandStatus) { case 1: rq->errors = evaluate_target_status(h, cmd, & retry_cmd); goto ldv_37474; case 2: ; if ((unsigned int )(cmd->rq)->cmd_type == 1U) { dev_warn((struct device const *)(& (h->pdev)->dev), "cmd %p has completed with data underrun reported\n", cmd); (cmd->rq)->resid_len = (cmd->err_info)->ResidualCnt; } else { } goto ldv_37474; case 3: ; if ((unsigned int )(cmd->rq)->cmd_type == 1U) { dev_warn((struct device const *)(& (h->pdev)->dev), "cciss: cmd %p has completed with data overrun reported\n", cmd); } else { } goto ldv_37474; case 4: dev_warn((struct device const *)(& (h->pdev)->dev), "cciss: cmd %p is reported invalid\n", cmd); if ((unsigned int )(cmd->rq)->cmd_type == 2U) { tmp___0 = 10U; } else { tmp___0 = 7U; } tmp___1 = make_status_bytes(0U, (unsigned int )(cmd->err_info)->CommandStatus, 0U, tmp___0); rq->errors = (int )tmp___1; goto ldv_37474; case 5: dev_warn((struct device const *)(& (h->pdev)->dev), "cciss: cmd %p has protocol error\n", cmd); if ((unsigned int )(cmd->rq)->cmd_type == 2U) { tmp___2 = 10U; } else { tmp___2 = 7U; } tmp___3 = make_status_bytes(0U, (unsigned int )(cmd->err_info)->CommandStatus, 0U, tmp___2); rq->errors = (int )tmp___3; goto ldv_37474; case 6: dev_warn((struct device const *)(& (h->pdev)->dev), "cciss: cmd %p had hardware error\n", cmd); if ((unsigned int )(cmd->rq)->cmd_type == 2U) { tmp___4 = 10U; } else { tmp___4 = 7U; } tmp___5 = make_status_bytes(0U, (unsigned int )(cmd->err_info)->CommandStatus, 0U, tmp___4); rq->errors = (int )tmp___5; goto ldv_37474; case 7: dev_warn((struct device const *)(& (h->pdev)->dev), "cciss: cmd %p had connection lost\n", cmd); if ((unsigned int )(cmd->rq)->cmd_type == 2U) { tmp___6 = 10U; } else { tmp___6 = 7U; } tmp___7 = make_status_bytes(0U, (unsigned int )(cmd->err_info)->CommandStatus, 0U, tmp___6); rq->errors = (int )tmp___7; goto ldv_37474; case 8: dev_warn((struct device const *)(& (h->pdev)->dev), "cciss: cmd %p was aborted\n", cmd); if ((unsigned int )(cmd->rq)->cmd_type == 2U) { tmp___8 = 10U; } else { tmp___8 = 5U; } tmp___9 = make_status_bytes(0U, (unsigned int )(cmd->err_info)->CommandStatus, 0U, tmp___8); rq->errors = (int )tmp___9; goto ldv_37474; case 9: dev_warn((struct device const *)(& (h->pdev)->dev), "cciss: cmd %p reports abort failed\n", cmd); if ((unsigned int )(cmd->rq)->cmd_type == 2U) { tmp___10 = 10U; } else { tmp___10 = 7U; } tmp___11 = make_status_bytes(0U, (unsigned int )(cmd->err_info)->CommandStatus, 0U, tmp___10); rq->errors = (int )tmp___11; goto ldv_37474; case 10: dev_warn((struct device const *)(& (h->pdev)->dev), "cciss%d: unsolicited abort %p\n", h->ctlr, cmd); if (cmd->retry_count <= 2) { retry_cmd = 1; dev_warn((struct device const *)(& (h->pdev)->dev), "retrying %p\n", cmd); cmd->retry_count = cmd->retry_count + 1; } else { dev_warn((struct device const *)(& (h->pdev)->dev), "%p retried too many times\n", cmd); } if ((unsigned int )(cmd->rq)->cmd_type == 2U) { tmp___12 = 10U; } else { tmp___12 = 5U; } tmp___13 = make_status_bytes(0U, (unsigned int )(cmd->err_info)->CommandStatus, 0U, tmp___12); rq->errors = (int )tmp___13; goto ldv_37474; case 11: dev_warn((struct device const *)(& (h->pdev)->dev), "cmd %p timedout\n", cmd); if ((unsigned int )(cmd->rq)->cmd_type == 2U) { tmp___14 = 10U; } else { tmp___14 = 7U; } tmp___15 = make_status_bytes(0U, (unsigned int )(cmd->err_info)->CommandStatus, 0U, tmp___14); rq->errors = (int )tmp___15; goto ldv_37474; case 12: dev_warn((struct device const *)(& (h->pdev)->dev), "cmd %p unabortable\n", cmd); if ((unsigned int )(cmd->rq)->cmd_type == 2U) { tmp___16 = 10U; } else { tmp___16 = 7U; } tmp___17 = make_status_bytes(0U, (unsigned int )(cmd->err_info)->CommandStatus, 0U, tmp___16); rq->errors = (int )tmp___17; goto ldv_37474; default: dev_warn((struct device const *)(& (h->pdev)->dev), "cmd %p returned unknown status %x\n", cmd, (int )(cmd->err_info)->CommandStatus); if ((unsigned int )(cmd->rq)->cmd_type == 2U) { tmp___18 = 10U; } else { tmp___18 = 7U; } tmp___19 = make_status_bytes(0U, (unsigned int )(cmd->err_info)->CommandStatus, 0U, tmp___18); rq->errors = (int )tmp___19; } ldv_37474: ; after_error_processing: ; if (retry_cmd != 0) { resend_cciss_cmd(h, cmd); return; } else { } (cmd->rq)->ldv_32525.completion_data = (void *)cmd; blk_complete_request(cmd->rq); return; } } __inline static u32 cciss_tag_contains_index(u32 tag ) { { return (tag & 16U); } } __inline static u32 cciss_tag_to_index(u32 tag ) { { return (tag >> 5); } } __inline static u32 cciss_tag_discard_error_bits(ctlr_info_t *h , u32 tag ) { long tmp ; { tmp = ldv__builtin_expect((h->transMethod & 4UL) != 0UL, 1L); if (tmp != 0L) { return (tag & 4294967264U); } else { } return (tag & 4294967292U); } } __inline static void cciss_mark_tag_indexed(u32 *tag ) { { *tag = *tag | 16U; return; } } __inline static void cciss_set_tag_index(u32 *tag , u32 index ) { { *tag = *tag | (index << 5); return; } } static void do_cciss_request(struct request_queue *q ) { ctlr_info_t *h ; CommandList_struct *c ; sector_t start_blk ; int seg ; struct request *creq ; u64bit temp64 ; struct scatterlist *tmp_sg ; SGDescriptor_struct *curr_sg ; drive_info_struct *drv ; int i ; int dir ; int sg_index ; int chained ; long tmp ; size_t __len ; void *__ret ; struct _ddebug descriptor ; unsigned int tmp___0 ; sector_t tmp___1 ; long tmp___2 ; struct page *tmp___3 ; struct _ddebug descriptor___0 ; unsigned int tmp___4 ; long tmp___5 ; unsigned int tmp___6 ; unsigned int tmp___7 ; __u8 tmp___8 ; __u8 tmp___9 ; u32 upper32 ; unsigned int tmp___10 ; unsigned int tmp___11 ; unsigned int tmp___12 ; unsigned int tmp___13 ; __u8 tmp___14 ; size_t __len___0 ; void *__ret___0 ; long tmp___15 ; { h = (ctlr_info_t *)q->queuedata; sg_index = 0; chained = 0; queue: creq = blk_peek_request(q); if ((unsigned long )creq == (unsigned long )((struct request *)0)) { goto startio; } else { } tmp = ldv__builtin_expect((int )creq->nr_phys_segments > h->maxsgentries, 0L); if (tmp != 0L) { __asm__ volatile ("1:\tud2\n.pushsection __bug_table,\"a\"\n2:\t.long 1b - 2b, %c0 - 2b\n\t.word %c1, 0\n\t.org 2b+%c2\n.popsection": : "i" ((char *)"/work/ldvuser/zakharov_benchmarks/bench/cpa/work/current--X--drivers/block/cciss.ko--X--x1linux-3.8-rc1--X--32_7a--X--cpachecker/linux-3.8-rc1/csd_deg_dscv/12/dscv_tempdir/dscv/ri/32_7a/drivers/block/cciss.c.prepared"), "i" (3383), "i" (12UL)); ldv_37522: ; goto ldv_37522; } else { } c = cmd_alloc(h); if ((unsigned long )c == (unsigned long )((CommandList_struct *)0)) { goto full; } else { } blk_start_request(creq); tmp_sg = *(h->scatter_list + (unsigned long )c->cmdindex); spin_unlock_irq(q->queue_lock); c->cmd_type = 0; c->rq = creq; drv = (drive_info_struct *)(creq->rq_disk)->private_data; c->Header.ReplyQueue = 0U; cciss_set_tag_index(& c->Header.Tag.lower, (u32 )c->cmdindex); cciss_mark_tag_indexed(& c->Header.Tag.lower); __len = 8UL; if (__len > 63UL) { __ret = __memcpy((void *)(& c->Header.LUN), (void const *)(& drv->LunID), __len); } else { __ret = __builtin_memcpy((void *)(& c->Header.LUN), (void const *)(& drv->LunID), __len); } c->Request.CDBLen = 10U; c->Request.Type.Type = 0U; c->Request.Type.Attribute = 4U; if ((creq->cmd_flags & 1U) == 0U) { c->Request.Type.Direction = 2U; } else { c->Request.Type.Direction = 1U; } c->Request.Timeout = 0U; if ((creq->cmd_flags & 1U) == 0U) { c->Request.CDB[0] = h->cciss_read; } else { c->Request.CDB[0] = h->cciss_write; } start_blk = blk_rq_pos((struct request const *)creq); descriptor.modname = "cciss"; descriptor.function = "do_cciss_request"; descriptor.filename = "/work/ldvuser/zakharov_benchmarks/bench/cpa/work/current--X--drivers/block/cciss.ko--X--x1linux-3.8-rc1--X--32_7a--X--cpachecker/linux-3.8-rc1/csd_deg_dscv/12/dscv_tempdir/dscv/ri/32_7a/drivers/block/cciss.c.prepared"; descriptor.format = "sector =%d nr_sectors=%d\n"; descriptor.lineno = 3416U; descriptor.flags = 0U; tmp___2 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___2 != 0L) { tmp___0 = blk_rq_sectors((struct request const *)creq); tmp___1 = blk_rq_pos((struct request const *)creq); __dynamic_dev_dbg(& descriptor, (struct device const *)(& (h->pdev)->dev), "sector =%d nr_sectors=%d\n", (int )tmp___1, (int )tmp___0); } else { } sg_init_table(tmp_sg, (unsigned int )h->maxsgentries); seg = blk_rq_map_sg(q, creq, tmp_sg); if ((unsigned int )*((unsigned char *)c + 21UL) == 128U) { dir = 2; } else { dir = 1; } curr_sg = (SGDescriptor_struct *)(& c->SG); sg_index = 0; chained = 0; i = 0; goto ldv_37530; ldv_37529: ; if ((sg_index + 1 == h->max_cmd_sgentries && chained == 0) && seg - i > 1) { curr_sg = *(h->cmd_sg_list + (unsigned long )c->cmdindex); sg_index = 0; chained = 1; } else { } (curr_sg + (unsigned long )sg_index)->Len = (tmp_sg + (unsigned long )i)->length; tmp___3 = sg_page(tmp_sg + (unsigned long )i); temp64.val = pci_map_page(h->pdev, tmp___3, (unsigned long )(tmp_sg + (unsigned long )i)->offset, (size_t )(tmp_sg + (unsigned long )i)->length, dir); (curr_sg + (unsigned long )sg_index)->Addr.lower = temp64.val32.lower; (curr_sg + (unsigned long )sg_index)->Addr.upper = temp64.val32.upper; (curr_sg + (unsigned long )sg_index)->Ext = 0U; sg_index = sg_index + 1; i = i + 1; ldv_37530: ; if (i < seg) { goto ldv_37529; } else { goto ldv_37531; } ldv_37531: ; if (chained != 0) { cciss_map_sg_chain_block(h, c, *(h->cmd_sg_list + (unsigned long )c->cmdindex), (int )((unsigned int )((1 - h->max_cmd_sgentries) + seg) * 16U)); } else { } if ((unsigned int )seg > h->maxSG) { h->maxSG = (unsigned int )seg; } else { } descriptor___0.modname = "cciss"; descriptor___0.function = "do_cciss_request"; descriptor___0.filename = "/work/ldvuser/zakharov_benchmarks/bench/cpa/work/current--X--drivers/block/cciss.ko--X--x1linux-3.8-rc1--X--32_7a--X--cpachecker/linux-3.8-rc1/csd_deg_dscv/12/dscv_tempdir/dscv/ri/32_7a/drivers/block/cciss.c.prepared"; descriptor___0.format = "Submitting %u sectors in %d segments chained[%d]\n"; descriptor___0.lineno = 3458U; descriptor___0.flags = 0U; tmp___5 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___5 != 0L) { tmp___4 = blk_rq_sectors((struct request const *)creq); __dynamic_dev_dbg(& descriptor___0, (struct device const *)(& (h->pdev)->dev), "Submitting %u sectors in %d segments chained[%d]\n", tmp___4, seg, chained); } else { } c->Header.SGTotal = (int )((__u16 )seg) + (int )((__u16 )chained); if (h->max_cmd_sgentries >= seg) { c->Header.SGList = (__u8 )c->Header.SGTotal; } else { c->Header.SGList = (__u8 )h->max_cmd_sgentries; } set_performant_mode(h, c); tmp___15 = ldv__builtin_expect((unsigned int )creq->cmd_type == 1U, 1L); if (tmp___15 != 0L) { if ((unsigned int )h->cciss_read == 40U) { c->Request.CDB[1] = 0U; c->Request.CDB[2] = (__u8 )(start_blk >> 24); c->Request.CDB[3] = (__u8 )(start_blk >> 16); c->Request.CDB[4] = (__u8 )(start_blk >> 8); c->Request.CDB[5] = (__u8 )start_blk; c->Request.CDB[6] = 0U; tmp___6 = blk_rq_sectors((struct request const *)creq); c->Request.CDB[7] = (__u8 )(tmp___6 >> 8); tmp___7 = blk_rq_sectors((struct request const *)creq); c->Request.CDB[8] = (__u8 )tmp___7; tmp___9 = 0U; c->Request.CDB[12] = tmp___9; tmp___8 = tmp___9; c->Request.CDB[11] = tmp___8; c->Request.CDB[9] = tmp___8; } else { upper32 = (unsigned int )(start_blk >> 32UL); c->Request.CDBLen = 16U; c->Request.CDB[1] = 0U; c->Request.CDB[2] = (__u8 )(upper32 >> 24); c->Request.CDB[3] = (__u8 )(upper32 >> 16); c->Request.CDB[4] = (__u8 )(upper32 >> 8); c->Request.CDB[5] = (__u8 )upper32; c->Request.CDB[6] = (__u8 )(start_blk >> 24); c->Request.CDB[7] = (__u8 )(start_blk >> 16); c->Request.CDB[8] = (__u8 )(start_blk >> 8); c->Request.CDB[9] = (__u8 )start_blk; tmp___10 = blk_rq_sectors((struct request const *)creq); c->Request.CDB[10] = (__u8 )(tmp___10 >> 24); tmp___11 = blk_rq_sectors((struct request const *)creq); c->Request.CDB[11] = (__u8 )(tmp___11 >> 16); tmp___12 = blk_rq_sectors((struct request const *)creq); c->Request.CDB[12] = (__u8 )(tmp___12 >> 8); tmp___13 = blk_rq_sectors((struct request const *)creq); c->Request.CDB[13] = (__u8 )tmp___13; tmp___14 = 0U; c->Request.CDB[15] = tmp___14; c->Request.CDB[14] = tmp___14; } } else if ((unsigned int )creq->cmd_type == 2U) { c->Request.CDBLen = (__u8 )creq->cmd_len; __len___0 = 16UL; if (__len___0 > 63UL) { __ret___0 = __memcpy((void *)(& c->Request.CDB), (void const *)creq->cmd, __len___0); } else { __ret___0 = __builtin_memcpy((void *)(& c->Request.CDB), (void const *)creq->cmd, __len___0); } } else { dev_warn((struct device const *)(& (h->pdev)->dev), "bad request type %d\n", (unsigned int )creq->cmd_type); __asm__ volatile ("1:\tud2\n.pushsection __bug_table,\"a\"\n2:\t.long 1b - 2b, %c0 - 2b\n\t.word %c1, 0\n\t.org 2b+%c2\n.popsection": : "i" ((char *)"/work/ldvuser/zakharov_benchmarks/bench/cpa/work/current--X--drivers/block/cciss.ko--X--x1linux-3.8-rc1--X--32_7a--X--cpachecker/linux-3.8-rc1/csd_deg_dscv/12/dscv_tempdir/dscv/ri/32_7a/drivers/block/cciss.c.prepared"), "i" (3503), "i" (12UL)); ldv_37537: ; goto ldv_37537; } spin_lock_irq(q->queue_lock); addQ(& h->reqQ, c); h->Qdepth = h->Qdepth + 1U; if (h->Qdepth > h->maxQsinceinit) { h->maxQsinceinit = h->Qdepth; } else { } goto queue; full: blk_stop_queue(q); startio: start_io(h); return; } } __inline static unsigned long get_next_completion(ctlr_info_t *h ) { unsigned long tmp ; { tmp = (*(h->access.command_completed))(h); return (tmp); } } __inline static int interrupt_pending(ctlr_info_t *h ) { bool tmp ; { tmp = (*(h->access.intr_pending))(h); return ((int )tmp); } } __inline static long interrupt_not_for_us(ctlr_info_t *h ) { bool tmp ; int tmp___0 ; { tmp = (*(h->access.intr_pending))(h); if (tmp) { tmp___0 = 0; } else { tmp___0 = 1; } return ((long )(tmp___0 || h->interrupts_enabled == 0)); } } __inline static int bad_tag(ctlr_info_t *h , u32 tag_index , u32 raw_tag ) { long tmp ; { tmp = ldv__builtin_expect((u32 )h->nr_cmds <= tag_index, 0L); if (tmp != 0L) { dev_warn((struct device const *)(& (h->pdev)->dev), "bad tag 0x%08x ignored.\n", raw_tag); return (1); } else { } return (0); } } __inline static void finish_cmd(ctlr_info_t *h , CommandList_struct *c , u32 raw_tag ) { long tmp ; { removeQ(c); tmp = ldv__builtin_expect(c->cmd_type == 0, 1L); if (tmp != 0L) { complete_command(h, c, 0); } else if (c->cmd_type == 1) { complete(c->waiting); } else if (c->cmd_type == 3) { complete_scsi_command(c, 0, raw_tag); } else { } return; } } __inline static u32 next_command(ctlr_info_t *h ) { u32 a ; unsigned long tmp ; long tmp___0 ; { tmp___0 = ldv__builtin_expect((h->transMethod & 4UL) == 0UL, 0L); if (tmp___0 != 0L) { tmp = (*(h->access.command_completed))(h); return ((u32 )tmp); } else { } if ((*(h->reply_pool_head) & 1ULL) == (u64 )h->reply_pool_wraparound) { a = (u32 )*(h->reply_pool_head); h->reply_pool_head = h->reply_pool_head + 1; h->commands_outstanding = h->commands_outstanding - 1; } else { a = 4294967295U; } if ((unsigned long )h->reply_pool_head == (unsigned long )(h->reply_pool + (unsigned long )h->max_commands)) { h->reply_pool_head = h->reply_pool; h->reply_pool_wraparound = (unsigned int )h->reply_pool_wraparound ^ 1U; } else { } return (a); } } __inline static u32 process_indexed_cmd(ctlr_info_t *h , u32 raw_tag ) { u32 tag_index ; CommandList_struct *c ; u32 tmp ; int tmp___0 ; u32 tmp___1 ; { tag_index = cciss_tag_to_index(raw_tag); tmp___0 = bad_tag(h, tag_index, raw_tag); if (tmp___0 != 0) { tmp = next_command(h); return (tmp); } else { } c = h->cmd_pool + (unsigned long )tag_index; finish_cmd(h, c, raw_tag); tmp___1 = next_command(h); return (tmp___1); } } __inline static u32 process_nonindexed_cmd(ctlr_info_t *h , u32 raw_tag ) { CommandList_struct *c ; __u32 busaddr_masked ; __u32 tag_masked ; struct list_head const *__mptr ; u32 tmp ; struct list_head const *__mptr___0 ; u32 tmp___0 ; { c = 0; tag_masked = cciss_tag_discard_error_bits(h, raw_tag); __mptr = (struct list_head const *)h->cmpQ.next; c = (CommandList_struct *)__mptr + 0xfffffffffffffdb0UL; goto ldv_37579; ldv_37578: busaddr_masked = cciss_tag_discard_error_bits(h, c->busaddr); if (busaddr_masked == tag_masked) { finish_cmd(h, c, raw_tag); tmp = next_command(h); return (tmp); } else { } __mptr___0 = (struct list_head const *)c->list.next; c = (CommandList_struct *)__mptr___0 + 0xfffffffffffffdb0UL; ldv_37579: ; if ((unsigned long )(& c->list) != (unsigned long )(& h->cmpQ)) { goto ldv_37578; } else { goto ldv_37580; } ldv_37580: bad_tag(h, (u32 )(h->nr_cmds + 1), raw_tag); tmp___0 = next_command(h); return (tmp___0); } } static int ignore_bogus_interrupt(ctlr_info_t *h ) { long tmp ; long tmp___0 ; { tmp = ldv__builtin_expect(reset_devices == 0U, 1L); if (tmp != 0L) { return (0); } else { } tmp___0 = ldv__builtin_expect(h->interrupts_enabled != 0, 1L); if (tmp___0 != 0L) { return (0); } else { } _dev_info((struct device const *)(& (h->pdev)->dev), "Received interrupt while interrupts disabled (known firmware bug.) Ignoring.\n"); return (1); } } static irqreturn_t cciss_intx_discard_completions(int irq , void *dev_id ) { ctlr_info_t *h ; unsigned long flags ; u32 raw_tag ; int tmp ; long tmp___0 ; raw_spinlock_t *tmp___1 ; unsigned long tmp___2 ; int tmp___3 ; { h = (ctlr_info_t *)dev_id; tmp = ignore_bogus_interrupt(h); if (tmp != 0) { return (0); } else { } tmp___0 = interrupt_not_for_us(h); if (tmp___0 != 0L) { return (0); } else { } tmp___1 = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp___1); goto ldv_37598; ldv_37597: tmp___2 = get_next_completion(h); raw_tag = (u32 )tmp___2; goto ldv_37595; ldv_37594: raw_tag = next_command(h); ldv_37595: ; if (raw_tag != 4294967295U) { goto ldv_37594; } else { goto ldv_37596; } ldv_37596: ; ldv_37598: tmp___3 = interrupt_pending(h); if (tmp___3 != 0) { goto ldv_37597; } else { goto ldv_37599; } ldv_37599: spin_unlock_irqrestore(& h->lock, flags); return (1); } } static irqreturn_t cciss_msix_discard_completions(int irq , void *dev_id ) { ctlr_info_t *h ; unsigned long flags ; u32 raw_tag ; int tmp ; raw_spinlock_t *tmp___0 ; unsigned long tmp___1 ; { h = (ctlr_info_t *)dev_id; tmp = ignore_bogus_interrupt(h); if (tmp != 0) { return (0); } else { } tmp___0 = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp___0); tmp___1 = get_next_completion(h); raw_tag = (u32 )tmp___1; goto ldv_37611; ldv_37610: raw_tag = next_command(h); ldv_37611: ; if (raw_tag != 4294967295U) { goto ldv_37610; } else { goto ldv_37612; } ldv_37612: spin_unlock_irqrestore(& h->lock, flags); return (1); } } static irqreturn_t do_cciss_intx(int irq , void *dev_id ) { ctlr_info_t *h ; unsigned long flags ; u32 raw_tag ; long tmp ; raw_spinlock_t *tmp___0 ; unsigned long tmp___1 ; u32 tmp___2 ; int tmp___3 ; { h = (ctlr_info_t *)dev_id; tmp = interrupt_not_for_us(h); if (tmp != 0L) { return (0); } else { } tmp___0 = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp___0); goto ldv_37627; ldv_37626: tmp___1 = get_next_completion(h); raw_tag = (u32 )tmp___1; goto ldv_37624; ldv_37623: tmp___2 = cciss_tag_contains_index(raw_tag); if (tmp___2 != 0U) { raw_tag = process_indexed_cmd(h, raw_tag); } else { raw_tag = process_nonindexed_cmd(h, raw_tag); } ldv_37624: ; if (raw_tag != 4294967295U) { goto ldv_37623; } else { goto ldv_37625; } ldv_37625: ; ldv_37627: tmp___3 = interrupt_pending(h); if (tmp___3 != 0) { goto ldv_37626; } else { goto ldv_37628; } ldv_37628: spin_unlock_irqrestore(& h->lock, flags); return (1); } } static irqreturn_t do_cciss_msix_intr(int irq , void *dev_id ) { ctlr_info_t *h ; unsigned long flags ; u32 raw_tag ; raw_spinlock_t *tmp ; unsigned long tmp___0 ; u32 tmp___1 ; { h = (ctlr_info_t *)dev_id; tmp = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp); tmp___0 = get_next_completion(h); raw_tag = (u32 )tmp___0; goto ldv_37640; ldv_37639: tmp___1 = cciss_tag_contains_index(raw_tag); if (tmp___1 != 0U) { raw_tag = process_indexed_cmd(h, raw_tag); } else { raw_tag = process_nonindexed_cmd(h, raw_tag); } ldv_37640: ; if (raw_tag != 4294967295U) { goto ldv_37639; } else { goto ldv_37641; } ldv_37641: spin_unlock_irqrestore(& h->lock, flags); return (1); } } static int add_to_scan_list(struct ctlr_info *h ) { struct ctlr_info *test_h ; int found ; int ret ; int tmp ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; { found = 0; ret = 0; if (h->busy_initializing != 0) { return (0); } else { } tmp = ldv_mutex_trylock_17(& h->busy_shutting_down); if (tmp == 0) { return (0); } else { } ldv_mutex_lock_18(& scan_mutex); __mptr = (struct list_head const *)scan_q.next; test_h = (struct ctlr_info *)__mptr + 0xffffffffffffbda8UL; goto ldv_37654; ldv_37653: ; if ((unsigned long )test_h == (unsigned long )h) { found = 1; goto ldv_37652; } else { } __mptr___0 = (struct list_head const *)test_h->scan_list.next; test_h = (struct ctlr_info *)__mptr___0 + 0xffffffffffffbda8UL; ldv_37654: ; if ((unsigned long )(& test_h->scan_list) != (unsigned long )(& scan_q)) { goto ldv_37653; } else { goto ldv_37652; } ldv_37652: ; if (found == 0 && h->busy_scanning == 0) { h->scan_wait.done = 0U; list_add_tail(& h->scan_list, & scan_q); ret = 1; } else { } ldv_mutex_unlock_19(& scan_mutex); ldv_mutex_unlock_20(& h->busy_shutting_down); return (ret); } } static void remove_from_scan_list(struct ctlr_info *h ) { struct ctlr_info *test_h ; struct ctlr_info *tmp_h ; struct list_head const *__mptr ; struct list_head const *__mptr___0 ; struct list_head const *__mptr___1 ; { ldv_mutex_lock_21(& scan_mutex); __mptr = (struct list_head const *)scan_q.next; test_h = (struct ctlr_info *)__mptr + 0xffffffffffffbda8UL; __mptr___0 = (struct list_head const *)test_h->scan_list.next; tmp_h = (struct ctlr_info *)__mptr___0 + 0xffffffffffffbda8UL; goto ldv_37667; ldv_37666: ; if ((unsigned long )test_h == (unsigned long )h) { list_del(& h->scan_list); complete_all(& h->scan_wait); ldv_mutex_unlock_22(& scan_mutex); return; } else { } test_h = tmp_h; __mptr___1 = (struct list_head const *)tmp_h->scan_list.next; tmp_h = (struct ctlr_info *)__mptr___1 + 0xffffffffffffbda8UL; ldv_37667: ; if ((unsigned long )(& test_h->scan_list) != (unsigned long )(& scan_q)) { goto ldv_37666; } else { goto ldv_37668; } ldv_37668: ; if (h->busy_scanning != 0) { ldv_mutex_unlock_23(& scan_mutex); wait_for_completion(& h->scan_wait); } else { ldv_mutex_unlock_24(& scan_mutex); } return; } } static int scan_thread(void *data ) { struct ctlr_info *h ; long volatile __ret ; struct task_struct *tmp ; struct task_struct *tmp___0 ; struct task_struct *tmp___1 ; struct task_struct *tmp___2 ; bool tmp___3 ; int tmp___4 ; struct list_head const *__mptr ; { ldv_37686: __ret = 1L; switch (8UL) { case 1: tmp = get_current(); __asm__ volatile ("xchgb %b0, %1\n": "+q" (__ret), "+m" (tmp->state): : "memory", "cc"); goto ldv_37675; case 2: tmp___0 = get_current(); __asm__ volatile ("xchgw %w0, %1\n": "+r" (__ret), "+m" (tmp___0->state): : "memory", "cc"); goto ldv_37675; case 4: tmp___1 = get_current(); __asm__ volatile ("xchgl %0, %1\n": "+r" (__ret), "+m" (tmp___1->state): : "memory", "cc"); goto ldv_37675; case 8: tmp___2 = get_current(); __asm__ volatile ("xchgq %q0, %1\n": "+r" (__ret), "+m" (tmp___2->state): : "memory", "cc"); goto ldv_37675; default: __xchg_wrong_size(); } ldv_37675: schedule(); tmp___3 = kthread_should_stop(); if ((int )tmp___3) { goto ldv_37681; } else { } ldv_37685: ldv_mutex_lock_25(& scan_mutex); tmp___4 = list_empty((struct list_head const *)(& scan_q)); if (tmp___4 != 0) { ldv_mutex_unlock_26(& scan_mutex); goto ldv_37682; } else { } __mptr = (struct list_head const *)scan_q.next; h = (struct ctlr_info *)__mptr + 0xffffffffffffbda8UL; list_del(& h->scan_list); h->busy_scanning = 1; ldv_mutex_unlock_27(& scan_mutex); rebuild_lun_table(h, 0, 0); complete_all(& h->scan_wait); ldv_mutex_lock_28(& scan_mutex); h->busy_scanning = 0; ldv_mutex_unlock_29(& scan_mutex); goto ldv_37685; ldv_37682: ; goto ldv_37686; ldv_37681: ; return (0); } } static int check_for_unit_attention(ctlr_info_t *h , CommandList_struct *c ) { { if ((unsigned int )(c->err_info)->SenseInfo[2] != 6U) { return (0); } else { } switch ((int )(c->err_info)->SenseInfo[12]) { case 42: dev_warn((struct device const *)(& (h->pdev)->dev), "a state change detected, command retried\n"); return (1); case 62: dev_warn((struct device const *)(& (h->pdev)->dev), "LUN failure detected, action required\n"); return (1); case 63: dev_warn((struct device const *)(& (h->pdev)->dev), "report LUN data changed\n"); return (1); case 41: dev_warn((struct device const *)(& (h->pdev)->dev), "a power on or device reset detected\n"); return (1); case 47: dev_warn((struct device const *)(& (h->pdev)->dev), "unit attention cleared by another initiator\n"); return (1); default: dev_warn((struct device const *)(& (h->pdev)->dev), "unknown unit attention detected\n"); return (1); } } } static void print_cfg_table(ctlr_info_t *h ) { int i ; char temp_name[17U] ; CfgTable_struct *tb ; struct _ddebug descriptor ; long tmp ; struct _ddebug descriptor___0 ; long tmp___0 ; unsigned char tmp___1 ; struct _ddebug descriptor___1 ; long tmp___2 ; struct _ddebug descriptor___2 ; unsigned int tmp___3 ; long tmp___4 ; struct _ddebug descriptor___3 ; unsigned int tmp___5 ; long tmp___6 ; struct _ddebug descriptor___4 ; unsigned int tmp___7 ; long tmp___8 ; struct _ddebug descriptor___5 ; unsigned int tmp___9 ; long tmp___10 ; struct _ddebug descriptor___6 ; unsigned int tmp___11 ; long tmp___12 ; struct _ddebug descriptor___7 ; unsigned int tmp___13 ; long tmp___14 ; struct _ddebug descriptor___8 ; unsigned int tmp___15 ; long tmp___16 ; struct _ddebug descriptor___9 ; unsigned int tmp___17 ; long tmp___18 ; unsigned char tmp___19 ; struct _ddebug descriptor___10 ; long tmp___20 ; struct _ddebug descriptor___11 ; unsigned int tmp___21 ; long tmp___22 ; { tb = h->cfgtable; descriptor.modname = "cciss"; descriptor.function = "print_cfg_table"; descriptor.filename = "/work/ldvuser/zakharov_benchmarks/bench/cpa/work/current--X--drivers/block/cciss.ko--X--x1linux-3.8-rc1--X--32_7a--X--cpachecker/linux-3.8-rc1/csd_deg_dscv/12/dscv_tempdir/dscv/ri/32_7a/drivers/block/cciss.c.prepared"; descriptor.format = "Controller Configuration information\n"; descriptor.lineno = 3901U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_dev_dbg(& descriptor, (struct device const *)(& (h->pdev)->dev), "Controller Configuration information\n"); } else { } descriptor___0.modname = "cciss"; descriptor___0.function = "print_cfg_table"; descriptor___0.filename = "/work/ldvuser/zakharov_benchmarks/bench/cpa/work/current--X--drivers/block/cciss.ko--X--x1linux-3.8-rc1--X--32_7a--X--cpachecker/linux-3.8-rc1/csd_deg_dscv/12/dscv_tempdir/dscv/ri/32_7a/drivers/block/cciss.c.prepared"; descriptor___0.format = "------------------------------------\n"; descriptor___0.lineno = 3902U; descriptor___0.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_dev_dbg(& descriptor___0, (struct device const *)(& (h->pdev)->dev), "------------------------------------\n"); } else { } i = 0; goto ldv_37707; ldv_37706: tmp___1 = readb((void const volatile *)(& tb->Signature) + (unsigned long )i); temp_name[i] = (char )tmp___1; i = i + 1; ldv_37707: ; if (i <= 3) { goto ldv_37706; } else { goto ldv_37708; } ldv_37708: temp_name[4] = 0; descriptor___1.modname = "cciss"; descriptor___1.function = "print_cfg_table"; descriptor___1.filename = "/work/ldvuser/zakharov_benchmarks/bench/cpa/work/current--X--drivers/block/cciss.ko--X--x1linux-3.8-rc1--X--32_7a--X--cpachecker/linux-3.8-rc1/csd_deg_dscv/12/dscv_tempdir/dscv/ri/32_7a/drivers/block/cciss.c.prepared"; descriptor___1.format = " Signature = %s\n"; descriptor___1.lineno = 3906U; descriptor___1.flags = 0U; tmp___2 = ldv__builtin_expect((long )descriptor___1.flags & 1L, 0L); if (tmp___2 != 0L) { __dynamic_dev_dbg(& descriptor___1, (struct device const *)(& (h->pdev)->dev), " Signature = %s\n", (char *)(& temp_name)); } else { } descriptor___2.modname = "cciss"; descriptor___2.function = "print_cfg_table"; descriptor___2.filename = "/work/ldvuser/zakharov_benchmarks/bench/cpa/work/current--X--drivers/block/cciss.ko--X--x1linux-3.8-rc1--X--32_7a--X--cpachecker/linux-3.8-rc1/csd_deg_dscv/12/dscv_tempdir/dscv/ri/32_7a/drivers/block/cciss.c.prepared"; descriptor___2.format = " Spec Number = %d\n"; descriptor___2.lineno = 3908U; descriptor___2.flags = 0U; tmp___4 = ldv__builtin_expect((long )descriptor___2.flags & 1L, 0L); if (tmp___4 != 0L) { tmp___3 = readl((void const volatile *)(& tb->SpecValence)); __dynamic_dev_dbg(& descriptor___2, (struct device const *)(& (h->pdev)->dev), " Spec Number = %d\n", tmp___3); } else { } descriptor___3.modname = "cciss"; descriptor___3.function = "print_cfg_table"; descriptor___3.filename = "/work/ldvuser/zakharov_benchmarks/bench/cpa/work/current--X--drivers/block/cciss.ko--X--x1linux-3.8-rc1--X--32_7a--X--cpachecker/linux-3.8-rc1/csd_deg_dscv/12/dscv_tempdir/dscv/ri/32_7a/drivers/block/cciss.c.prepared"; descriptor___3.format = " Transport methods supported = 0x%x\n"; descriptor___3.lineno = 3910U; descriptor___3.flags = 0U; tmp___6 = ldv__builtin_expect((long )descriptor___3.flags & 1L, 0L); if (tmp___6 != 0L) { tmp___5 = readl((void const volatile *)(& tb->TransportSupport)); __dynamic_dev_dbg(& descriptor___3, (struct device const *)(& (h->pdev)->dev), " Transport methods supported = 0x%x\n", tmp___5); } else { } descriptor___4.modname = "cciss"; descriptor___4.function = "print_cfg_table"; descriptor___4.filename = "/work/ldvuser/zakharov_benchmarks/bench/cpa/work/current--X--drivers/block/cciss.ko--X--x1linux-3.8-rc1--X--32_7a--X--cpachecker/linux-3.8-rc1/csd_deg_dscv/12/dscv_tempdir/dscv/ri/32_7a/drivers/block/cciss.c.prepared"; descriptor___4.format = " Transport methods active = 0x%x\n"; descriptor___4.lineno = 3912U; descriptor___4.flags = 0U; tmp___8 = ldv__builtin_expect((long )descriptor___4.flags & 1L, 0L); if (tmp___8 != 0L) { tmp___7 = readl((void const volatile *)(& tb->TransportActive)); __dynamic_dev_dbg(& descriptor___4, (struct device const *)(& (h->pdev)->dev), " Transport methods active = 0x%x\n", tmp___7); } else { } descriptor___5.modname = "cciss"; descriptor___5.function = "print_cfg_table"; descriptor___5.filename = "/work/ldvuser/zakharov_benchmarks/bench/cpa/work/current--X--drivers/block/cciss.ko--X--x1linux-3.8-rc1--X--32_7a--X--cpachecker/linux-3.8-rc1/csd_deg_dscv/12/dscv_tempdir/dscv/ri/32_7a/drivers/block/cciss.c.prepared"; descriptor___5.format = " Requested transport Method = 0x%x\n"; descriptor___5.lineno = 3914U; descriptor___5.flags = 0U; tmp___10 = ldv__builtin_expect((long )descriptor___5.flags & 1L, 0L); if (tmp___10 != 0L) { tmp___9 = readl((void const volatile *)(& tb->HostWrite.TransportRequest)); __dynamic_dev_dbg(& descriptor___5, (struct device const *)(& (h->pdev)->dev), " Requested transport Method = 0x%x\n", tmp___9); } else { } descriptor___6.modname = "cciss"; descriptor___6.function = "print_cfg_table"; descriptor___6.filename = "/work/ldvuser/zakharov_benchmarks/bench/cpa/work/current--X--drivers/block/cciss.ko--X--x1linux-3.8-rc1--X--32_7a--X--cpachecker/linux-3.8-rc1/csd_deg_dscv/12/dscv_tempdir/dscv/ri/32_7a/drivers/block/cciss.c.prepared"; descriptor___6.format = " Coalesce Interrupt Delay = 0x%x\n"; descriptor___6.lineno = 3916U; descriptor___6.flags = 0U; tmp___12 = ldv__builtin_expect((long )descriptor___6.flags & 1L, 0L); if (tmp___12 != 0L) { tmp___11 = readl((void const volatile *)(& tb->HostWrite.CoalIntDelay)); __dynamic_dev_dbg(& descriptor___6, (struct device const *)(& (h->pdev)->dev), " Coalesce Interrupt Delay = 0x%x\n", tmp___11); } else { } descriptor___7.modname = "cciss"; descriptor___7.function = "print_cfg_table"; descriptor___7.filename = "/work/ldvuser/zakharov_benchmarks/bench/cpa/work/current--X--drivers/block/cciss.ko--X--x1linux-3.8-rc1--X--32_7a--X--cpachecker/linux-3.8-rc1/csd_deg_dscv/12/dscv_tempdir/dscv/ri/32_7a/drivers/block/cciss.c.prepared"; descriptor___7.format = " Coalesce Interrupt Count = 0x%x\n"; descriptor___7.lineno = 3918U; descriptor___7.flags = 0U; tmp___14 = ldv__builtin_expect((long )descriptor___7.flags & 1L, 0L); if (tmp___14 != 0L) { tmp___13 = readl((void const volatile *)(& tb->HostWrite.CoalIntCount)); __dynamic_dev_dbg(& descriptor___7, (struct device const *)(& (h->pdev)->dev), " Coalesce Interrupt Count = 0x%x\n", tmp___13); } else { } descriptor___8.modname = "cciss"; descriptor___8.function = "print_cfg_table"; descriptor___8.filename = "/work/ldvuser/zakharov_benchmarks/bench/cpa/work/current--X--drivers/block/cciss.ko--X--x1linux-3.8-rc1--X--32_7a--X--cpachecker/linux-3.8-rc1/csd_deg_dscv/12/dscv_tempdir/dscv/ri/32_7a/drivers/block/cciss.c.prepared"; descriptor___8.format = " Max outstanding commands = 0x%d\n"; descriptor___8.lineno = 3920U; descriptor___8.flags = 0U; tmp___16 = ldv__builtin_expect((long )descriptor___8.flags & 1L, 0L); if (tmp___16 != 0L) { tmp___15 = readl((void const volatile *)(& tb->CmdsOutMax)); __dynamic_dev_dbg(& descriptor___8, (struct device const *)(& (h->pdev)->dev), " Max outstanding commands = 0x%d\n", tmp___15); } else { } descriptor___9.modname = "cciss"; descriptor___9.function = "print_cfg_table"; descriptor___9.filename = "/work/ldvuser/zakharov_benchmarks/bench/cpa/work/current--X--drivers/block/cciss.ko--X--x1linux-3.8-rc1--X--32_7a--X--cpachecker/linux-3.8-rc1/csd_deg_dscv/12/dscv_tempdir/dscv/ri/32_7a/drivers/block/cciss.c.prepared"; descriptor___9.format = " Bus Types = 0x%x\n"; descriptor___9.lineno = 3922U; descriptor___9.flags = 0U; tmp___18 = ldv__builtin_expect((long )descriptor___9.flags & 1L, 0L); if (tmp___18 != 0L) { tmp___17 = readl((void const volatile *)(& tb->BusTypes)); __dynamic_dev_dbg(& descriptor___9, (struct device const *)(& (h->pdev)->dev), " Bus Types = 0x%x\n", tmp___17); } else { } i = 0; goto ldv_37719; ldv_37718: tmp___19 = readb((void const volatile *)(& tb->ServerName) + (unsigned long )i); temp_name[i] = (char )tmp___19; i = i + 1; ldv_37719: ; if (i <= 15) { goto ldv_37718; } else { goto ldv_37720; } ldv_37720: temp_name[16] = 0; descriptor___10.modname = "cciss"; descriptor___10.function = "print_cfg_table"; descriptor___10.filename = "/work/ldvuser/zakharov_benchmarks/bench/cpa/work/current--X--drivers/block/cciss.ko--X--x1linux-3.8-rc1--X--32_7a--X--cpachecker/linux-3.8-rc1/csd_deg_dscv/12/dscv_tempdir/dscv/ri/32_7a/drivers/block/cciss.c.prepared"; descriptor___10.format = " Server Name = %s\n"; descriptor___10.lineno = 3926U; descriptor___10.flags = 0U; tmp___20 = ldv__builtin_expect((long )descriptor___10.flags & 1L, 0L); if (tmp___20 != 0L) { __dynamic_dev_dbg(& descriptor___10, (struct device const *)(& (h->pdev)->dev), " Server Name = %s\n", (char *)(& temp_name)); } else { } descriptor___11.modname = "cciss"; descriptor___11.function = "print_cfg_table"; descriptor___11.filename = "/work/ldvuser/zakharov_benchmarks/bench/cpa/work/current--X--drivers/block/cciss.ko--X--x1linux-3.8-rc1--X--32_7a--X--cpachecker/linux-3.8-rc1/csd_deg_dscv/12/dscv_tempdir/dscv/ri/32_7a/drivers/block/cciss.c.prepared"; descriptor___11.format = " Heartbeat Counter = 0x%x\n\n\n"; descriptor___11.lineno = 3928U; descriptor___11.flags = 0U; tmp___22 = ldv__builtin_expect((long )descriptor___11.flags & 1L, 0L); if (tmp___22 != 0L) { tmp___21 = readl((void const volatile *)(& tb->HeartBeat)); __dynamic_dev_dbg(& descriptor___11, (struct device const *)(& (h->pdev)->dev), " Heartbeat Counter = 0x%x\n\n\n", tmp___21); } else { } return; } } static int find_PCI_BAR_index(struct pci_dev *pdev , unsigned long pci_bar_addr ) { int i ; int offset ; int mem_type ; int bar_type ; { if (pci_bar_addr == 16UL) { return (0); } else { } offset = 0; i = 0; goto ldv_37737; ldv_37736: bar_type = (int )pdev->resource[i].flags & 1; if (bar_type == 1) { offset = offset + 4; } else { mem_type = (int )pdev->resource[i].flags & 6; switch (mem_type) { case 0: ; case 2: offset = offset + 4; goto ldv_37733; case 4: offset = offset + 8; goto ldv_37733; default: dev_warn((struct device const *)(& pdev->dev), "Base address is invalid\n"); return (-1); } ldv_37733: ; } if ((unsigned long )offset == pci_bar_addr - 16UL) { return (i + 1); } else { } i = i + 1; ldv_37737: ; if (i <= 16) { goto ldv_37736; } else { goto ldv_37738; } ldv_37738: ; return (-1); } } static void calc_bucket_map(int *bucket , int num_buckets , int nsgs , int *bucket_map ) { int i ; int j ; int b ; int size ; { i = 0; goto ldv_37753; ldv_37752: size = i + 4; b = num_buckets; j = 0; goto ldv_37751; ldv_37750: ; if (*(bucket + (unsigned long )j) >= size) { b = j; goto ldv_37749; } else { } j = j + 1; ldv_37751: ; if (j <= 7) { goto ldv_37750; } else { goto ldv_37749; } ldv_37749: *(bucket_map + (unsigned long )i) = b; i = i + 1; ldv_37753: ; if (i <= nsgs) { goto ldv_37752; } else { goto ldv_37754; } ldv_37754: ; return; } } static void cciss_wait_for_mode_change_ack(ctlr_info_t *h ) { int i ; unsigned int tmp ; { i = 0; goto ldv_37761; ldv_37760: tmp = readl((void const volatile *)h->vaddr + 32U); if (((long )tmp & 1L) == 0L) { goto ldv_37759; } else { } usleep_range(10000UL, 20000UL); i = i + 1; ldv_37761: ; if (i <= 29999) { goto ldv_37760; } else { goto ldv_37759; } ldv_37759: ; return; } } static void cciss_enter_performant_mode(ctlr_info_t *h , u32 use_short_tags ) { __u32 trans_offset ; int bft[8U] ; unsigned long register_value ; unsigned int tmp ; { bft[0] = 5; bft[1] = 6; bft[2] = 8; bft[3] = 10; bft[4] = 12; bft[5] = 20; bft[6] = 28; bft[7] = 36; h->reply_pool_wraparound = 1U; memset((void *)h->reply_pool, 0, (unsigned long )h->max_commands * 8UL); h->reply_pool_head = h->reply_pool; trans_offset = readl((void const volatile *)(& (h->cfgtable)->TransMethodOffset)); calc_bucket_map((int *)(& bft), 8, h->maxsgentries, (int *)h->blockFetchTable); writel((unsigned int )bft[0], (void volatile *)(& (h->transtable)->BlockFetch0)); writel((unsigned int )bft[1], (void volatile *)(& (h->transtable)->BlockFetch1)); writel((unsigned int )bft[2], (void volatile *)(& (h->transtable)->BlockFetch2)); writel((unsigned int )bft[3], (void volatile *)(& (h->transtable)->BlockFetch3)); writel((unsigned int )bft[4], (void volatile *)(& (h->transtable)->BlockFetch4)); writel((unsigned int )bft[5], (void volatile *)(& (h->transtable)->BlockFetch5)); writel((unsigned int )bft[6], (void volatile *)(& (h->transtable)->BlockFetch6)); writel((unsigned int )bft[7], (void volatile *)(& (h->transtable)->BlockFetch7)); writel((unsigned int )h->max_commands, (void volatile *)(& (h->transtable)->RepQSize)); writel(1U, (void volatile *)(& (h->transtable)->RepQCount)); writel(0U, (void volatile *)(& (h->transtable)->RepQCtrAddrLow32)); writel(0U, (void volatile *)(& (h->transtable)->RepQCtrAddrHigh32)); writel((unsigned int )h->reply_pool_dhandle, (void volatile *)(& (h->transtable)->RepQAddr0Low32)); writel(0U, (void volatile *)(& (h->transtable)->RepQAddr0High32)); writel(use_short_tags | 4U, (void volatile *)(& (h->cfgtable)->HostWrite.TransportRequest)); writel(1U, (void volatile *)h->vaddr + 32U); cciss_wait_for_mode_change_ack(h); tmp = readl((void const volatile *)(& (h->cfgtable)->TransportActive)); register_value = (unsigned long )tmp; if ((register_value & 4UL) == 0UL) { dev_warn((struct device const *)(& (h->pdev)->dev), "cciss: unable to get board into performant mode\n"); } else { } return; } } static void cciss_put_controller_into_performant_mode(ctlr_info_t *h ) { __u32 trans_support ; struct _ddebug descriptor ; long tmp ; struct _ddebug descriptor___0 ; long tmp___0 ; void *tmp___1 ; void *tmp___2 ; { if (cciss_simple_mode != 0) { return; } else { } descriptor.modname = "cciss"; descriptor.function = "cciss_put_controller_into_performant_mode"; descriptor.filename = "/work/ldvuser/zakharov_benchmarks/bench/cpa/work/current--X--drivers/block/cciss.ko--X--x1linux-3.8-rc1--X--32_7a--X--cpachecker/linux-3.8-rc1/csd_deg_dscv/12/dscv_tempdir/dscv/ri/32_7a/drivers/block/cciss.c.prepared"; descriptor.format = "Trying to put board into Performant mode\n"; descriptor.lineno = 4090U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_dev_dbg(& descriptor, (struct device const *)(& (h->pdev)->dev), "Trying to put board into Performant mode\n"); } else { } trans_support = readl((void const volatile *)(& (h->cfgtable)->TransportSupport)); if ((trans_support & 4U) == 0U) { return; } else { } descriptor___0.modname = "cciss"; descriptor___0.function = "cciss_put_controller_into_performant_mode"; descriptor___0.filename = "/work/ldvuser/zakharov_benchmarks/bench/cpa/work/current--X--drivers/block/cciss.ko--X--x1linux-3.8-rc1--X--32_7a--X--cpachecker/linux-3.8-rc1/csd_deg_dscv/12/dscv_tempdir/dscv/ri/32_7a/drivers/block/cciss.c.prepared"; descriptor___0.format = "Placing controller into performant mode\n"; descriptor___0.lineno = 4097U; descriptor___0.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_dev_dbg(& descriptor___0, (struct device const *)(& (h->pdev)->dev), "Placing controller into performant mode\n"); } else { } tmp___1 = pci_alloc_consistent(h->pdev, (unsigned long )h->max_commands * 8UL, & h->reply_pool_dhandle); h->reply_pool = (u64 *)tmp___1; tmp___2 = kmalloc((unsigned long )(h->maxsgentries + 1) * 4UL, 208U); h->blockFetchTable = (u32 *)tmp___2; if ((unsigned long )h->reply_pool == (unsigned long )((u64 *)0) || (unsigned long )h->blockFetchTable == (unsigned long )((u32 *)0)) { goto clean_up; } else { } cciss_enter_performant_mode(h, trans_support & 536870912U); h->access = SA5_performant_access; h->transMethod = 4UL; return; clean_up: kfree((void const *)h->blockFetchTable); if ((unsigned long )h->reply_pool != (unsigned long )((u64 *)0)) { pci_free_consistent(h->pdev, (unsigned long )h->max_commands * 8UL, (void *)h->reply_pool, h->reply_pool_dhandle); } else { } return; } } static void cciss_interrupt_mode(ctlr_info_t *h ) { int err ; struct msix_entry cciss_msix_entries[4U] ; int tmp ; int tmp___0 ; int tmp___1 ; { cciss_msix_entries[0].vector = 0U; cciss_msix_entries[0].entry = 0U; cciss_msix_entries[1].vector = 0U; cciss_msix_entries[1].entry = 1U; cciss_msix_entries[2].vector = 0U; cciss_msix_entries[2].entry = 2U; cciss_msix_entries[3].vector = 0U; cciss_msix_entries[3].entry = 3U; if (((h->board_id == 1081085457U || h->board_id == 1082134033U) || h->board_id == 1082265105U) || h->board_id == 1082330641U) { goto default_int_mode; } else { } tmp = pci_find_capability(h->pdev, 17); if (tmp != 0) { err = pci_enable_msix(h->pdev, (struct msix_entry *)(& cciss_msix_entries), 4); if (err == 0) { h->intr[0] = cciss_msix_entries[0].vector; h->intr[1] = cciss_msix_entries[1].vector; h->intr[2] = cciss_msix_entries[2].vector; h->intr[3] = cciss_msix_entries[3].vector; h->msix_vector = 1U; return; } else { } if (err > 0) { dev_warn((struct device const *)(& (h->pdev)->dev), "only %d MSI-X vectors available\n", err); goto default_int_mode; } else { dev_warn((struct device const *)(& (h->pdev)->dev), "MSI-X init failed %d\n", err); goto default_int_mode; } } else { } tmp___1 = pci_find_capability(h->pdev, 5); if (tmp___1 != 0) { tmp___0 = pci_enable_msi_block(h->pdev, 1U); if (tmp___0 == 0) { h->msi_vector = 1U; } else { dev_warn((struct device const *)(& (h->pdev)->dev), "MSI init failed\n"); } } else { } default_int_mode: h->intr[h->intr_mode] = (h->pdev)->irq; return; } } static int cciss_lookup_board_id(struct pci_dev *pdev , u32 *board_id ) { int i ; u32 subsystem_vendor_id ; u32 subsystem_device_id ; { subsystem_vendor_id = (u32 )pdev->subsystem_vendor; subsystem_device_id = (u32 )pdev->subsystem_device; *board_id = (subsystem_device_id << 16) | subsystem_vendor_id; i = 0; goto ldv_37795; ldv_37794: ; if (*board_id == products[i].board_id) { return (i); } else { } i = i + 1; ldv_37795: ; if ((unsigned int )i <= 21U) { goto ldv_37794; } else { goto ldv_37796; } ldv_37796: dev_warn((struct device const *)(& pdev->dev), "unrecognized board ID: 0x%08x, ignoring.\n", *board_id); return (-19); } } __inline static bool cciss_board_disabled(ctlr_info_t *h ) { u16 command ; { pci_read_config_word((struct pci_dev const *)h->pdev, 4, & command); return (((int )command & 2) == 0); } } static int cciss_pci_find_memory_BAR(struct pci_dev *pdev , unsigned long *memory_bar ) { int i ; struct _ddebug descriptor ; long tmp ; { i = 0; goto ldv_37809; ldv_37808: ; if ((pdev->resource[i].flags & 512UL) != 0UL) { *memory_bar = (unsigned long )pdev->resource[i].start; descriptor.modname = "cciss"; descriptor.function = "cciss_pci_find_memory_BAR"; descriptor.filename = "/work/ldvuser/zakharov_benchmarks/bench/cpa/work/current--X--drivers/block/cciss.ko--X--x1linux-3.8-rc1--X--32_7a--X--cpachecker/linux-3.8-rc1/csd_deg_dscv/12/dscv_tempdir/dscv/ri/32_7a/drivers/block/cciss.c.prepared"; descriptor.format = "memory BAR = %lx\n"; descriptor.lineno = 4227U; descriptor.flags = 0U; tmp = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp != 0L) { __dynamic_dev_dbg(& descriptor, (struct device const *)(& pdev->dev), "memory BAR = %lx\n", *memory_bar); } else { } return (0); } else { } i = i + 1; ldv_37809: ; if (i <= 16) { goto ldv_37808; } else { goto ldv_37810; } ldv_37810: dev_warn((struct device const *)(& pdev->dev), "no memory BAR found\n"); return (-19); } } static int cciss_wait_for_board_state(struct pci_dev *pdev , void *vaddr , int wait_for_ready ) { int i ; int iterations ; u32 scratchpad ; { if (wait_for_ready != 0) { iterations = 1200; } else { iterations = 1000; } i = 0; goto ldv_37820; ldv_37819: scratchpad = readl((void const volatile *)vaddr + 176U); if (wait_for_ready != 0) { if (scratchpad == 4294901760U) { return (0); } else if (scratchpad != 4294901760U) { return (0); } else { } } else { } msleep(100U); i = i + 1; ldv_37820: ; if (i < iterations) { goto ldv_37819; } else { goto ldv_37821; } ldv_37821: dev_warn((struct device const *)(& pdev->dev), "board not ready, timed out.\n"); return (-19); } } static int cciss_find_cfg_addrs(struct pci_dev *pdev , void *vaddr , u32 *cfg_base_addr , u64 *cfg_base_addr_index , u64 *cfg_offset ) { unsigned int tmp ; int tmp___0 ; { *cfg_base_addr = readl((void const volatile *)vaddr + 180U); tmp = readl((void const volatile *)vaddr + 184U); *cfg_offset = (u64 )tmp; *cfg_base_addr = *cfg_base_addr & 65535U; tmp___0 = find_PCI_BAR_index(pdev, (unsigned long )*cfg_base_addr); *cfg_base_addr_index = (u64 )tmp___0; if (*cfg_base_addr_index == 0xffffffffffffffffULL) { dev_warn((struct device const *)(& pdev->dev), "cannot find cfg_base_addr_index, *cfg_base_addr = 0x%08x\n", *cfg_base_addr); return (-19); } else { } return (0); } } static int cciss_find_cfgtables(ctlr_info_t *h ) { u64 cfg_offset ; u32 cfg_base_addr ; u64 cfg_base_addr_index ; u32 trans_offset ; int rc ; void *tmp ; void *tmp___0 ; { rc = cciss_find_cfg_addrs(h->pdev, h->vaddr, & cfg_base_addr, & cfg_base_addr_index, & cfg_offset); if (rc != 0) { return (rc); } else { } tmp = remap_pci_mem((ulong )((h->pdev)->resource[cfg_base_addr_index].start + cfg_offset), 8UL); h->cfgtable = (CfgTable_struct *)tmp; if ((unsigned long )h->cfgtable == (unsigned long )((CfgTable_struct *)0)) { return (-12); } else { } rc = write_driver_ver_to_cfgtable(h->cfgtable); if (rc != 0) { return (rc); } else { } trans_offset = readl((void const volatile *)(& (h->cfgtable)->TransMethodOffset)); tmp___0 = remap_pci_mem((ulong )(((h->pdev)->resource[cfg_base_addr_index].start + cfg_offset) + (unsigned long long )trans_offset), 56UL); h->transtable = (struct TransTable_struct *)tmp___0; if ((unsigned long )h->transtable == (unsigned long )((struct TransTable_struct *)0)) { return (-12); } else { } return (0); } } static void cciss_get_max_perf_mode_cmds(struct ctlr_info *h ) { unsigned int tmp ; { tmp = readl((void const volatile *)(& (h->cfgtable)->MaxPerformantModeCommands)); h->max_commands = (int )tmp; if (reset_devices != 0U && h->max_commands > 32) { h->max_commands = 32; } else { } if (h->max_commands <= 15) { dev_warn((struct device const *)(& (h->pdev)->dev), "Controller reports max supported commands of %d, an obvious lie. Using 16. Ensure that firmware is up to date.\n", h->max_commands); h->max_commands = 16; } else { } return; } } static void cciss_find_board_params(ctlr_info_t *h ) { unsigned int tmp ; { cciss_get_max_perf_mode_cmds(h); h->nr_cmds = (h->max_commands + -4) - cciss_tape_cmds; tmp = readl((void const volatile *)(& (h->cfgtable)->MaxSGElements)); h->maxsgentries = (int )tmp; h->max_cmd_sgentries = 31; if (h->maxsgentries > 512) { h->max_cmd_sgentries = 32; h->chainsize = (h->maxsgentries - h->max_cmd_sgentries) + 1; h->maxsgentries = h->maxsgentries - 1; } else { h->maxsgentries = 31; h->chainsize = 0; } return; } } __inline static bool CISS_signature_present(ctlr_info_t *h ) { int tmp ; { tmp = check_signature((void const volatile *)(& (h->cfgtable)->Signature), (unsigned char const *)"CISS", 4); if (tmp == 0) { dev_warn((struct device const *)(& (h->pdev)->dev), "not a valid CISS config table\n"); return (0); } else { } return (1); } } __inline static void cciss_enable_scsi_prefetch(ctlr_info_t *h ) { u32 prefetch___0 ; { prefetch___0 = readl((void const volatile *)(& (h->cfgtable)->SCSI_Prefetch)); prefetch___0 = prefetch___0 | 256U; writel(prefetch___0, (void volatile *)(& (h->cfgtable)->SCSI_Prefetch)); return; } } __inline static void cciss_p600_dma_prefetch_quirk(ctlr_info_t *h ) { u32 dma_prefetch ; __u32 dma_refetch ; { if (h->board_id != 841289788U) { return; } else { } dma_prefetch = readl((void const volatile *)h->vaddr + 532U); dma_prefetch = dma_prefetch | 32768U; writel(dma_prefetch, (void volatile *)h->vaddr + 532U); pci_read_config_dword((struct pci_dev const *)h->pdev, 64, & dma_refetch); dma_refetch = dma_refetch | 1U; pci_write_config_dword((struct pci_dev const *)h->pdev, 64, dma_refetch); return; } } static int cciss_pci_init(ctlr_info_t *h ) { int prod_index ; int err ; bool tmp ; struct _ddebug descriptor ; long tmp___0 ; struct _ddebug descriptor___0 ; long tmp___1 ; bool tmp___2 ; int tmp___3 ; { prod_index = cciss_lookup_board_id(h->pdev, & h->board_id); if (prod_index < 0) { return (-19); } else { } h->product_name = products[prod_index].product_name; h->access = *(products[prod_index].access); tmp = cciss_board_disabled(h); if ((int )tmp) { dev_warn((struct device const *)(& (h->pdev)->dev), "controller appears to be disabled\n"); return (-19); } else { } pci_disable_link_state(h->pdev, 7); err = pci_enable_device(h->pdev); if (err != 0) { dev_warn((struct device const *)(& (h->pdev)->dev), "Unable to Enable PCI device\n"); return (err); } else { } err = pci_request_regions(h->pdev, "cciss"); if (err != 0) { dev_warn((struct device const *)(& (h->pdev)->dev), "Cannot obtain PCI resources, aborting\n"); return (err); } else { } descriptor.modname = "cciss"; descriptor.function = "cciss_pci_init"; descriptor.filename = "/work/ldvuser/zakharov_benchmarks/bench/cpa/work/current--X--drivers/block/cciss.ko--X--x1linux-3.8-rc1--X--32_7a--X--cpachecker/linux-3.8-rc1/csd_deg_dscv/12/dscv_tempdir/dscv/ri/32_7a/drivers/block/cciss.c.prepared"; descriptor.format = "irq = %x\n"; descriptor.lineno = 4418U; descriptor.flags = 0U; tmp___0 = ldv__builtin_expect((long )descriptor.flags & 1L, 0L); if (tmp___0 != 0L) { __dynamic_dev_dbg(& descriptor, (struct device const *)(& (h->pdev)->dev), "irq = %x\n", (h->pdev)->irq); } else { } descriptor___0.modname = "cciss"; descriptor___0.function = "cciss_pci_init"; descriptor___0.filename = "/work/ldvuser/zakharov_benchmarks/bench/cpa/work/current--X--drivers/block/cciss.ko--X--x1linux-3.8-rc1--X--32_7a--X--cpachecker/linux-3.8-rc1/csd_deg_dscv/12/dscv_tempdir/dscv/ri/32_7a/drivers/block/cciss.c.prepared"; descriptor___0.format = "board_id = %x\n"; descriptor___0.lineno = 4419U; descriptor___0.flags = 0U; tmp___1 = ldv__builtin_expect((long )descriptor___0.flags & 1L, 0L); if (tmp___1 != 0L) { __dynamic_dev_dbg(& descriptor___0, (struct device const *)(& (h->pdev)->dev), "board_id = %x\n", h->board_id); } else { } cciss_interrupt_mode(h); err = cciss_pci_find_memory_BAR(h->pdev, & h->paddr); if (err != 0) { goto err_out_free_res; } else { } h->vaddr = remap_pci_mem(h->paddr, 592UL); if ((unsigned long )h->vaddr == (unsigned long )((void *)0)) { err = -12; goto err_out_free_res; } else { } err = cciss_wait_for_board_state(h->pdev, h->vaddr, 1); if (err != 0) { goto err_out_free_res; } else { } err = cciss_find_cfgtables(h); if (err != 0) { goto err_out_free_res; } else { } print_cfg_table(h); cciss_find_board_params(h); tmp___2 = CISS_signature_present(h); if (tmp___2) { tmp___3 = 0; } else { tmp___3 = 1; } if (tmp___3) { err = -19; goto err_out_free_res; } else { } cciss_enable_scsi_prefetch(h); cciss_p600_dma_prefetch_quirk(h); err = cciss_enter_simple_mode(h); if (err != 0) { goto err_out_free_res; } else { } cciss_put_controller_into_performant_mode(h); return (0); err_out_free_res: ; if ((unsigned long )h->transtable != (unsigned long )((struct TransTable_struct *)0)) { iounmap((void volatile *)h->transtable); } else { } if ((unsigned long )h->cfgtable != (unsigned long )((CfgTable_struct *)0)) { iounmap((void volatile *)h->cfgtable); } else { } if ((unsigned long )h->vaddr != (unsigned long )((void *)0)) { iounmap((void volatile *)h->vaddr); } else { } pci_release_regions(h->pdev); return (err); } } static int alloc_cciss_hba(struct pci_dev *pdev ) { int i ; ctlr_info_t *h ; void *tmp ; { i = 0; goto ldv_37871; ldv_37870: ; if ((unsigned long )hba[i] == (unsigned long )((ctlr_info_t *)0)) { tmp = kzalloc(18304UL, 208U); h = (ctlr_info_t *)tmp; if ((unsigned long )h == (unsigned long )((ctlr_info_t *)0)) { goto Enomem; } else { } hba[i] = h; return (i); } else { } i = i + 1; ldv_37871: ; if (i <= 31) { goto ldv_37870; } else { goto ldv_37872; } ldv_37872: dev_warn((struct device const *)(& pdev->dev), "This driver supports a maximum of %d controllers.\n", 32); return (-1); Enomem: dev_warn((struct device const *)(& pdev->dev), "out of memory.\n"); return (-1); } } static void free_hba(ctlr_info_t *h ) { int i ; { hba[h->ctlr] = 0; i = 0; goto ldv_37878; ldv_37877: ; if ((unsigned long )h->gendisk[i] != (unsigned long )((struct gendisk *)0)) { put_disk(h->gendisk[i]); } else { } i = i + 1; ldv_37878: ; if (h->highest_lun + 1 > i) { goto ldv_37877; } else { goto ldv_37879; } ldv_37879: kfree((void const *)h); return; } } static int cciss_message(struct pci_dev *pdev , unsigned char opcode , unsigned char type ) { size_t cmd_sz ; Command *cmd ; dma_addr_t paddr64 ; uint32_t paddr32 ; uint32_t tag ; void *vaddr ; int i ; int err ; unsigned long tmp ; void *tmp___0 ; { cmd_sz = 100UL; if (pdev->resource[0].start != 0ULL || pdev->resource[0].end != pdev->resource[0].start) { tmp = (unsigned long )((pdev->resource[0].end - pdev->resource[0].start) + 1ULL); } else { tmp = 0UL; } vaddr = ioremap_nocache(pdev->resource[0].start, tmp); if ((unsigned long )vaddr == (unsigned long )((void *)0)) { return (-12); } else { } err = pci_set_consistent_dma_mask(pdev, 4294967295ULL); if (err != 0) { iounmap((void volatile *)vaddr); return (-12); } else { } tmp___0 = pci_alloc_consistent(pdev, cmd_sz, & paddr64); cmd = (Command *)tmp___0; if ((unsigned long )cmd == (unsigned long )((Command *)0)) { iounmap((void volatile *)vaddr); return (-12); } else { } paddr32 = (uint32_t )paddr64; cmd->CommandHeader.ReplyQueue = 0U; cmd->CommandHeader.SGList = 0U; cmd->CommandHeader.SGTotal = 0U; cmd->CommandHeader.Tag.lower = paddr32; cmd->CommandHeader.Tag.upper = 0U; memset((void *)(& cmd->CommandHeader.LUN.LunAddrBytes), 0, 8UL); cmd->Request.CDBLen = 16U; cmd->Request.Type.Type = 1U; cmd->Request.Type.Attribute = 5U; cmd->Request.Type.Direction = 0U; cmd->Request.Timeout = 0U; cmd->Request.CDB[0] = opcode; cmd->Request.CDB[1] = type; memset((void *)(& cmd->Request.CDB) + 2U, 0, 14UL); cmd->ErrorDescriptor.Addr.lower = paddr32 + 52U; cmd->ErrorDescriptor.Addr.upper = 0U; cmd->ErrorDescriptor.Len = 48U; writel(paddr32, (void volatile *)vaddr + 64U); i = 0; goto ldv_37900; ldv_37899: tag = readl((void const volatile *)vaddr + 68U); if ((tag & 4294967292U) == paddr32) { goto ldv_37898; } else { } msleep(10000U); i = i + 1; ldv_37900: ; if (i <= 9) { goto ldv_37899; } else { goto ldv_37898; } ldv_37898: iounmap((void volatile *)vaddr); if (i == 10) { dev_err((struct device const *)(& pdev->dev), "controller message %02x:%02x timed out\n", (int )opcode, (int )type); return (-110); } else { } pci_free_consistent(pdev, cmd_sz, (void *)cmd, paddr64); if ((tag & 2U) != 0U) { dev_err((struct device const *)(& pdev->dev), "controller message %02x:%02x failed\n", (int )opcode, (int )type); return (-5); } else { } _dev_info((struct device const *)(& pdev->dev), "controller message %02x:%02x succeeded\n", (int )opcode, (int )type); return (0); } } static int cciss_controller_hard_reset(struct pci_dev *pdev , void *vaddr , u32 use_doorbell ) { u16 pmcsr ; int pos ; { if (use_doorbell != 0U) { _dev_info((struct device const *)(& pdev->dev), "using doorbell to reset controller\n"); writel(use_doorbell, (void volatile *)vaddr + 32U); } else { pos = pci_find_capability(pdev, 1); if (pos == 0) { dev_err((struct device const *)(& pdev->dev), "cciss_controller_hard_reset: PCI PM not supported\n"); return (-19); } else { } _dev_info((struct device const *)(& pdev->dev), "using PCI PM to reset controller\n"); pci_read_config_word((struct pci_dev const *)pdev, pos + 4, & pmcsr); pmcsr = (unsigned int )pmcsr & 65532U; pmcsr = (u16 )((unsigned int )pmcsr | 3U); pci_write_config_word((struct pci_dev const *)pdev, pos + 4, (int )pmcsr); msleep(500U); pmcsr = (unsigned int )pmcsr & 65532U; pmcsr = pmcsr; pci_write_config_word((struct pci_dev const *)pdev, pos + 4, (int )pmcsr); msleep(500U); } return (0); } } static void init_driver_version(char *driver_version , int len ) { { memset((void *)driver_version, 0, (size_t )len); strncpy(driver_version, "cciss HP CISS Driver (v 3.6.26)", (__kernel_size_t )(len + -1)); return; } } static int write_driver_ver_to_cfgtable(CfgTable_struct *cfgtable ) { char *driver_version ; int i ; int size ; void *tmp ; { size = 32; tmp = kmalloc((size_t )size, 208U); driver_version = (char *)tmp; if ((unsigned long )driver_version == (unsigned long )((char *)0)) { return (-12); } else { } init_driver_version(driver_version, size); i = 0; goto ldv_37919; ldv_37918: writeb((int )((unsigned char )*(driver_version + (unsigned long )i)), (void volatile *)(& cfgtable->driver_version) + (unsigned long )i); i = i + 1; ldv_37919: ; if (i < size) { goto ldv_37918; } else { goto ldv_37920; } ldv_37920: kfree((void const *)driver_version); return (0); } } static void read_driver_ver_from_cfgtable(CfgTable_struct *cfgtable , unsigned char *driver_ver ) { int i ; { i = 0; goto ldv_37927; ldv_37926: *(driver_ver + (unsigned long )i) = readb((void const volatile *)(& cfgtable->driver_version) + (unsigned long )i); i = i + 1; ldv_37927: ; if ((unsigned int )i <= 31U) { goto ldv_37926; } else { goto ldv_37928; } ldv_37928: ; return; } } static int controller_reset_failed(CfgTable_struct *cfgtable ) { char *driver_ver ; char *old_driver_ver ; int rc ; int size ; void *tmp ; int tmp___0 ; { size = 32; tmp = kmalloc((size_t )(size * 2), 208U); old_driver_ver = (char *)tmp; if ((unsigned long )old_driver_ver == (unsigned long )((char *)0)) { return (-12); } else { } driver_ver = old_driver_ver + (unsigned long )size; init_driver_version(old_driver_ver, size); read_driver_ver_from_cfgtable(cfgtable, (unsigned char *)driver_ver); tmp___0 = memcmp((void const *)driver_ver, (void const *)old_driver_ver, (size_t )size); rc = tmp___0 == 0; kfree((void const *)old_driver_ver); return (rc); } } static int cciss_kdump_hard_reset_controller(struct pci_dev *pdev ) { u64 cfg_offset ; u32 cfg_base_addr ; u64 cfg_base_addr_index ; void *vaddr ; unsigned long paddr ; u32 misc_fw_support ; int rc ; CfgTable_struct *cfgtable ; u32 use_doorbell ; u32 board_id ; u16 command_register ; int tmp ; int tmp___0 ; void *tmp___1 ; { cciss_lookup_board_id(pdev, & board_id); tmp = ctlr_is_resettable(board_id); if (tmp == 0) { dev_warn((struct device const *)(& pdev->dev), "Cannot reset Smart Array 640x due to shared cache module."); return (-19); } else { } tmp___0 = ctlr_is_hard_resettable(board_id); if (tmp___0 == 0) { return (-524); } else { } pci_read_config_word((struct pci_dev const *)pdev, 4, & command_register); pci_disable_device(pdev); pci_save_state(pdev); rc = cciss_pci_find_memory_BAR(pdev, & paddr); if (rc != 0) { return (rc); } else { } vaddr = remap_pci_mem(paddr, 592UL); if ((unsigned long )vaddr == (unsigned long )((void *)0)) { return (-12); } else { } rc = cciss_find_cfg_addrs(pdev, vaddr, & cfg_base_addr, & cfg_base_addr_index, & cfg_offset); if (rc != 0) { goto unmap_vaddr; } else { } tmp___1 = remap_pci_mem((ulong )(pdev->resource[cfg_base_addr_index].start + cfg_offset), 156UL); cfgtable = (CfgTable_struct *)tmp___1; if ((unsigned long )cfgtable == (unsigned long )((CfgTable_struct *)0)) { rc = -12; goto unmap_vaddr; } else { } rc = write_driver_ver_to_cfgtable(cfgtable); if (rc != 0) { goto unmap_vaddr; } else { } misc_fw_support = readl((void const volatile *)(& cfgtable->misc_fw_support)); use_doorbell = misc_fw_support & 16U; if (use_doorbell != 0U) { use_doorbell = 32U; } else { use_doorbell = misc_fw_support & 2U; if (use_doorbell != 0U) { dev_warn((struct device const *)(& pdev->dev), "Controller claims that \'Bit 2 doorbell reset\' is supported, but not \'bit 5 doorbell reset\'. Firmware update is recommended.\n"); rc = -524; goto unmap_cfgtable; } else { } } rc = cciss_controller_hard_reset(pdev, vaddr, use_doorbell); if (rc != 0) { goto unmap_cfgtable; } else { } pci_restore_state(pdev); rc = pci_enable_device(pdev); if (rc != 0) { dev_warn((struct device const *)(& pdev->dev), "failed to enable device.\n"); goto unmap_cfgtable; } else { } pci_write_config_word((struct pci_dev const *)pdev, 4, (int )command_register); msleep(3000U); _dev_info((struct device const *)(& pdev->dev), "Waiting for board to reset.\n"); rc = cciss_wait_for_board_state(pdev, vaddr, 0); if (rc != 0) { dev_warn((struct device const *)(& pdev->dev), "Failed waiting for board to hard reset. Will try soft reset.\n"); rc = -524; goto unmap_cfgtable; } else { } rc = cciss_wait_for_board_state(pdev, vaddr, 1); if (rc != 0) { dev_warn((struct device const *)(& pdev->dev), "failed waiting for board to become ready after hard reset\n"); goto unmap_cfgtable; } else { } rc = controller_reset_failed((CfgTable_struct *)vaddr); if (rc < 0) { goto unmap_cfgtable; } else { } if (rc != 0) { dev_warn((struct device const *)(& pdev->dev), "Unable to successfully hard reset controller. Will try soft reset.\n"); rc = -524; } else { _dev_info((struct device const *)(& pdev->dev), "Board ready after hard reset.\n"); } unmap_cfgtable: iounmap((void volatile *)cfgtable); unmap_vaddr: iounmap((void volatile *)vaddr); return (rc); } } static int cciss_init_reset_devices(struct pci_dev *pdev ) { int rc ; int i ; char *tmp ; int tmp___0 ; { if (reset_devices == 0U) { return (0); } else { } rc = cciss_kdump_hard_reset_controller(pdev); if (rc == -524) { return (rc); } else { } if (rc != 0) { return (-19); } else { } dev_warn((struct device const *)(& pdev->dev), "Waiting for controller to respond to no-op\n"); i = 0; goto ldv_37959; ldv_37958: tmp___0 = cciss_message(pdev, 3, 0); if (tmp___0 == 0) { goto ldv_37957; } else { if (i <= 10) { tmp = (char *)"; re-trying"; } else { tmp = (char *)""; } dev_warn((struct device const *)(& pdev->dev), "no-op failed%s\n", tmp); } msleep(4000U); i = i + 1; ldv_37959: ; if (i <= 11) { goto ldv_37958; } else { goto ldv_37957; } ldv_37957: ; return (0); } } static int cciss_allocate_cmd_pool(ctlr_info_t *h ) { void *tmp ; void *tmp___0 ; void *tmp___1 ; { tmp = kmalloc((((unsigned long )h->nr_cmds + 63UL) / 64UL) * 8UL, 208U); h->cmd_pool_bits = (unsigned long *)tmp; tmp___0 = pci_alloc_consistent(h->pdev, (unsigned long )h->nr_cmds * 640UL, & h->cmd_pool_dhandle); h->cmd_pool = (CommandList_struct *)tmp___0; tmp___1 = pci_alloc_consistent(h->pdev, (unsigned long )h->nr_cmds * 48UL, & h->errinfo_pool_dhandle); h->errinfo_pool = (ErrorInfo_struct *)tmp___1; if (((unsigned long )h->cmd_pool_bits == (unsigned long )((unsigned long *)0) || (unsigned long )h->cmd_pool == (unsigned long )((CommandList_struct *)0)) || (unsigned long )h->errinfo_pool == (unsigned long )((ErrorInfo_struct *)0)) { dev_err((struct device const *)(& (h->pdev)->dev), "out of memory"); return (-12); } else { } return (0); } } static int cciss_allocate_scatterlists(ctlr_info_t *h ) { int i ; void *tmp ; void *tmp___0 ; { tmp = kzalloc((unsigned long )h->max_commands * 8UL, 208U); h->scatter_list = (struct scatterlist **)tmp; if ((unsigned long )h->scatter_list == (unsigned long )((struct scatterlist **)0)) { return (-12); } else { } i = 0; goto ldv_37968; ldv_37967: tmp___0 = kmalloc((unsigned long )h->maxsgentries * 40UL, 208U); *(h->scatter_list + (unsigned long )i) = (struct scatterlist *)tmp___0; if ((unsigned long )*(h->scatter_list + (unsigned long )i) == (unsigned long )((struct scatterlist *)0)) { dev_err((struct device const *)(& (h->pdev)->dev), "could not allocate s/g lists\n"); return (-12); } else { } i = i + 1; ldv_37968: ; if (h->nr_cmds > i) { goto ldv_37967; } else { goto ldv_37969; } ldv_37969: ; return (0); } } static void cciss_free_scatterlists(ctlr_info_t *h ) { int i ; { if ((unsigned long )h->scatter_list != (unsigned long )((struct scatterlist **)0)) { i = 0; goto ldv_37975; ldv_37974: kfree((void const *)*(h->scatter_list + (unsigned long )i)); i = i + 1; ldv_37975: ; if (h->nr_cmds > i) { goto ldv_37974; } else { goto ldv_37976; } ldv_37976: kfree((void const *)h->scatter_list); } else { } return; } } static void cciss_free_cmd_pool(ctlr_info_t *h ) { { kfree((void const *)h->cmd_pool_bits); if ((unsigned long )h->cmd_pool != (unsigned long )((CommandList_struct *)0)) { pci_free_consistent(h->pdev, (unsigned long )h->nr_cmds * 640UL, (void *)h->cmd_pool, h->cmd_pool_dhandle); } else { } if ((unsigned long )h->errinfo_pool != (unsigned long )((ErrorInfo_struct *)0)) { pci_free_consistent(h->pdev, (unsigned long )h->nr_cmds * 48UL, (void *)h->errinfo_pool, h->errinfo_pool_dhandle); } else { } return; } } static int cciss_request_irq(ctlr_info_t *h , irqreturn_t (*msixhandler)(int , void * ) , irqreturn_t (*intxhandler)(int , void * ) ) { int tmp ; int tmp___0 ; { if (h->msix_vector != 0U || h->msi_vector != 0U) { tmp = request_irq(h->intr[h->intr_mode], msixhandler, 0UL, (char const *)(& h->devname), (void *)h); if (tmp == 0) { return (0); } else { } dev_err((struct device const *)(& (h->pdev)->dev), "Unable to get msi irq %d for %s\n", h->intr[h->intr_mode], (char *)(& h->devname)); return (-1); } else { } tmp___0 = request_irq(h->intr[h->intr_mode], intxhandler, 128UL, (char const *)(& h->devname), (void *)h); if (tmp___0 == 0) { return (0); } else { } dev_err((struct device const *)(& (h->pdev)->dev), "Unable to get irq %d for %s\n", h->intr[h->intr_mode], (char *)(& h->devname)); return (-1); } } static int cciss_kdump_soft_reset(ctlr_info_t *h ) { int tmp ; int tmp___0 ; int tmp___1 ; { tmp = cciss_send_reset(h, (unsigned char *)"", 0); if (tmp != 0) { dev_warn((struct device const *)(& (h->pdev)->dev), "Resetting array controller failed.\n"); return (-5); } else { } _dev_info((struct device const *)(& (h->pdev)->dev), "Waiting for board to soft reset.\n"); tmp___0 = cciss_wait_for_board_state(h->pdev, h->vaddr, 0); if (tmp___0 != 0) { dev_warn((struct device const *)(& (h->pdev)->dev), "Soft reset had no effect.\n"); return (-1); } else { } _dev_info((struct device const *)(& (h->pdev)->dev), "Board reset, awaiting READY status.\n"); tmp___1 = cciss_wait_for_board_state(h->pdev, h->vaddr, 1); if (tmp___1 != 0) { dev_warn((struct device const *)(& (h->pdev)->dev), "Board failed to become ready after soft reset.\n"); return (-1); } else { } return (0); } } static void cciss_undo_allocations_after_kdump_soft_reset(ctlr_info_t *h ) { int ctlr ; { ctlr = h->ctlr; free_irq(h->intr[h->intr_mode], (void *)h); if (h->msix_vector != 0U) { pci_disable_msix(h->pdev); } else if (h->msi_vector != 0U) { pci_disable_msi(h->pdev); } else { } cciss_free_sg_chain_blocks(h->cmd_sg_list, h->nr_cmds); cciss_free_scatterlists(h); cciss_free_cmd_pool(h); kfree((void const *)h->blockFetchTable); if ((unsigned long )h->reply_pool != (unsigned long )((u64 *)0)) { pci_free_consistent(h->pdev, (unsigned long )h->max_commands * 8UL, (void *)h->reply_pool, h->reply_pool_dhandle); } else { } if ((unsigned long )h->transtable != (unsigned long )((struct TransTable_struct *)0)) { iounmap((void volatile *)h->transtable); } else { } if ((unsigned long )h->cfgtable != (unsigned long )((CfgTable_struct *)0)) { iounmap((void volatile *)h->cfgtable); } else { } if ((unsigned long )h->vaddr != (unsigned long )((void *)0)) { iounmap((void volatile *)h->vaddr); } else { } unregister_blkdev((unsigned int )h->major, (char const *)(& h->devname)); cciss_destroy_hba_sysfs_entry(h); pci_release_regions(h->pdev); kfree((void const *)h); hba[ctlr] = 0; return; } } static int cciss_init_one(struct pci_dev *pdev , struct pci_device_id const *ent ) { int i ; int j ; int rc ; int try_soft_reset ; int dac ; int return_code ; InquiryData_struct *inq_buff ; ctlr_info_t *h ; unsigned long flags ; struct lock_class_key __key ; int tmp ; int tmp___0 ; int tmp___1 ; int tmp___2 ; char *tmp___3 ; char const *tmp___4 ; int tmp___5 ; int tmp___6 ; struct lock_class_key __key___0 ; raw_spinlock_t *tmp___7 ; void *tmp___8 ; { j = 0; try_soft_reset = 0; rc = cciss_init_reset_devices(pdev); if (rc != 0) { if (rc != -524) { return (rc); } else { } try_soft_reset = 1; rc = 0; } else { } reinit_after_soft_reset: i = alloc_cciss_hba(pdev); if (i < 0) { return (-1); } else { } h = hba[i]; h->pdev = pdev; h->busy_initializing = 1; if (cciss_simple_mode != 0) { h->intr_mode = 2; } else { h->intr_mode = 0; } INIT_LIST_HEAD(& h->cmpQ); INIT_LIST_HEAD(& h->reqQ); __mutex_init(& h->busy_shutting_down, "&h->busy_shutting_down", & __key); tmp = cciss_pci_init(h); if (tmp != 0) { goto clean_no_release_regions; } else { } sprintf((char *)(& h->devname), "cciss%d", i); h->ctlr = i; if (cciss_tape_cmds <= 1) { cciss_tape_cmds = 2; } else { } if (cciss_tape_cmds > 16) { cciss_tape_cmds = 16; } else { } init_completion(& h->scan_wait); tmp___0 = cciss_create_hba_sysfs_entry(h); if (tmp___0 != 0) { goto clean0; } else { } tmp___2 = pci_set_dma_mask(pdev, 0xffffffffffffffffULL); if (tmp___2 == 0) { dac = 1; } else { tmp___1 = pci_set_dma_mask(pdev, 4294967295ULL); if (tmp___1 == 0) { dac = 0; } else { dev_err((struct device const *)(& (h->pdev)->dev), "no suitable DMA available\n"); goto clean1; } } if (i <= 7) { h->major = i + 104; } else { } rc = register_blkdev((unsigned int )h->major, (char const *)(& h->devname)); if (rc == -16 || rc == -22) { dev_err((struct device const *)(& (h->pdev)->dev), "Unable to get major number %d for %s on hba %d\n", h->major, (char *)(& h->devname), i); goto clean1; } else if (i > 7) { h->major = rc; } else { } (*(h->access.set_intr_mask))(h, 0UL); rc = cciss_request_irq(h, & do_cciss_msix_intr, & do_cciss_intx); if (rc != 0) { goto clean2; } else { } if (dac != 0) { tmp___3 = (char *)""; } else { tmp___3 = (char *)" not"; } tmp___4 = pci_name((struct pci_dev const *)pdev); _dev_info((struct device const *)(& (h->pdev)->dev), "%s: <0x%x> at PCI %s IRQ %d%s using DAC\n", (char *)(& h->devname), (int )pdev->device, tmp___4, h->intr[h->intr_mode], tmp___3); tmp___5 = cciss_allocate_cmd_pool(h); if (tmp___5 != 0) { goto clean4; } else { } tmp___6 = cciss_allocate_scatterlists(h); if (tmp___6 != 0) { goto clean4; } else { } h->cmd_sg_list = cciss_allocate_sg_chain_blocks(h, h->chainsize, h->nr_cmds); if ((unsigned long )h->cmd_sg_list == (unsigned long )((SGDescriptor_struct **)0) && h->chainsize > 0) { goto clean4; } else { } spinlock_check(& h->lock); __raw_spin_lock_init(& h->lock.ldv_5961.rlock, "&(&h->lock)->rlock", & __key___0); pci_set_drvdata(pdev, (void *)h); bitmap_zero(h->cmd_pool_bits, h->nr_cmds); h->num_luns = 0; h->highest_lun = -1; j = 0; goto ldv_38018; ldv_38017: h->drv[j] = 0; h->gendisk[j] = 0; j = j + 1; ldv_38018: ; if (j <= 1023) { goto ldv_38017; } else { goto ldv_38019; } ldv_38019: ; if (try_soft_reset != 0) { tmp___7 = spinlock_check(& h->lock); flags = _raw_spin_lock_irqsave(tmp___7); (*(h->access.set_intr_mask))(h, 0UL); spin_unlock_irqrestore(& h->lock, flags); free_irq(h->intr[h->intr_mode], (void *)h); rc = cciss_request_irq(h, & cciss_msix_discard_completions, & cciss_intx_discard_completions); if (rc != 0) { dev_warn((struct device const *)(& (h->pdev)->dev), "Failed to request_irq after soft reset.\n"); goto clean4; } else { } rc = cciss_kdump_soft_reset(h); if (rc != 0) { dev_warn((struct device const *)(& (h->pdev)->dev), "Soft reset failed.\n"); goto clean4; } else { } _dev_info((struct device const *)(& (h->pdev)->dev), "Board READY.\n"); _dev_info((struct device const *)(& (h->pdev)->dev), "Waiting for stale completions to drain.\n"); (*(h->access.set_intr_mask))(h, 1UL); msleep(10000U); (*(h->access.set_intr_mask))(h, 0UL); rc = controller_reset_failed(h->cfgtable); if (rc != 0) { _dev_info((struct device const *)(& (h->pdev)->dev), "Soft reset appears to have failed.\n"); } else { } cciss_undo_allocations_after_kdump_soft_reset(h); try_soft_reset = 0; if (rc != 0) { return (-19); } else { } goto reinit_after_soft_reset; } else { } cciss_scsi_setup(h); (*(h->access.set_intr_mask))(h, 1UL); tmp___8 = kzalloc(36UL, 208U); inq_buff = (InquiryData_struct *)tmp___8; if ((unsigned long )inq_buff == (unsigned long )((InquiryData_struct *)0)) { dev_err((struct device const *)(& (h->pdev)->dev), "out of memory\n"); goto clean4; } else { } return_code = sendcmd_withirq(h, 18, (void *)inq_buff, 36UL, 0, (unsigned char *)"", 0); if (return_code == 0) { h->firm_ver[0] = (char )inq_buff->data_byte[32]; h->firm_ver[1] = (char )inq_buff->data_byte[33]; h->firm_ver[2] = (char )inq_buff->data_byte[34]; h->firm_ver[3] = (char )inq_buff->data_byte[35]; } else { dev_warn((struct device const *)(& (h->pdev)->dev), "unable to determine firmware version of controller\n"); } kfree((void const *)inq_buff); cciss_procinit(h); h->cciss_max_sectors = 8192; rebuild_lun_table(h, 1, 0); cciss_engage_scsi(h); h->busy_initializing = 0; return (1); clean4: cciss_free_cmd_pool(h); cciss_free_scatterlists(h); cciss_free_sg_chain_blocks(h->cmd_sg_list, h->nr_cmds); free_irq(h->intr[h->intr_mode], (void *)h); clean2: unregister_blkdev((unsigned int )h->major, (char const *)(& h->devname)); clean1: cciss_destroy_hba_sysfs_entry(h); clean0: pci_release_regions(pdev); clean_no_release_regions: h->busy_initializing = 0; pci_set_drvdata(pdev, 0); free_hba(h); return (-1); } } static void cciss_shutdown(struct pci_dev *pdev ) { ctlr_info_t *h ; char *flush_buf ; int return_code ; void *tmp ; void *tmp___0 ; { tmp = pci_get_drvdata(pdev); h = (ctlr_info_t *)tmp; tmp___0 = kzalloc(4UL, 208U); flush_buf = (char *)tmp___0; if ((unsigned long )flush_buf == (unsigned long )((char *)0)) { dev_warn((struct device const *)(& (h->pdev)->dev), "cache not flushed, out of memory.\n"); return; } else { } return_code = sendcmd_withirq(h, 1, (void *)flush_buf, 4UL, 0, (unsigned char *)"", 0); kfree((void const *)flush_buf); if (return_code != 0) { dev_warn((struct device const *)(& (h->pdev)->dev), "Error flushing cache\n"); } else { } (*(h->access.set_intr_mask))(h, 0UL); free_irq(h->intr[h->intr_mode], (void *)h); return; } } static int cciss_enter_simple_mode(struct ctlr_info *h ) { u32 trans_support ; unsigned int tmp ; unsigned int tmp___0 ; { trans_support = readl((void const volatile *)(& (h->cfgtable)->TransportSupport)); if ((trans_support & 2U) == 0U) { return (-524); } else { } tmp = readl((void const volatile *)(& (h->cfgtable)->CmdsOutMax)); h->max_commands = (int )tmp; writel(2U, (void volatile *)(& (h->cfgtable)->HostWrite.TransportRequest)); writel(1U, (void volatile *)h->vaddr + 32U); cciss_wait_for_mode_change_ack(h); print_cfg_table(h); tmp___0 = readl((void const volatile *)(& (h->cfgtable)->TransportActive)); if (((long )tmp___0 & 2L) == 0L) { dev_warn((struct device const *)(& (h->pdev)->dev), "unable to get board into simple mode\n"); return (-19); } else { } h->transMethod = 2UL; return (0); } } static void cciss_remove_one(struct pci_dev *pdev ) { ctlr_info_t *h ; int i ; int j ; void *tmp ; void *tmp___0 ; struct gendisk *disk ; struct request_queue *q ; { tmp = pci_get_drvdata(pdev); if ((unsigned long )tmp == (unsigned long )((void *)0)) { dev_err((struct device const *)(& pdev->dev), "Unable to remove device\n"); return; } else { } tmp___0 = pci_get_drvdata(pdev); h = (ctlr_info_t *)tmp___0; i = h->ctlr; if ((unsigned long )hba[i] == (unsigned long )((ctlr_info_t *)0)) { dev_err((struct device const *)(& pdev->dev), "device appears to already be removed\n"); return; } else { } ldv_mutex_lock_30(& h->busy_shutting_down); remove_from_scan_list(h); remove_proc_entry((char const *)(& h->devname), proc_cciss); unregister_blkdev((unsigned int )h->major, (char const *)(& h->devname)); j = 0; goto ldv_38042; ldv_38041: disk = h->gendisk[j]; if ((unsigned long )disk != (unsigned long )((struct gendisk *)0)) { q = disk->queue; if ((disk->flags & 16) != 0) { cciss_destroy_ld_sysfs_entry(h, j, 1); del_gendisk(disk); } else { } if ((unsigned long )q != (unsigned long )((struct request_queue *)0)) { blk_cleanup_queue(q); } else { } } else { } j = j + 1; ldv_38042: ; if (j <= 1023) { goto ldv_38041; } else { goto ldv_38043; } ldv_38043: cciss_unregister_scsi(h); cciss_shutdown(pdev); if (h->msix_vector != 0U) { pci_disable_msix(h->pdev); } else if (h->msi_vector != 0U) { pci_disable_msi(h->pdev); } else { } iounmap((void volatile *)h->transtable); iounmap((void volatile *)h->cfgtable); iounmap((void volatile *)h->vaddr); cciss_free_cmd_pool(h); j = 0; goto ldv_38045; ldv_38044: kfree((void const *)*(h->scatter_list + (unsigned long )j)); j = j + 1; ldv_38045: ; if (h->nr_cmds > j) { goto ldv_38044; } else { goto ldv_38046; } ldv_38046: kfree((void const *)h->scatter_list); cciss_free_sg_chain_blocks(h->cmd_sg_list, h->nr_cmds); kfree((void const *)h->blockFetchTable); if ((unsigned long )h->reply_pool != (unsigned long )((u64 *)0)) { pci_free_consistent(h->pdev, (unsigned long )h->max_commands * 8UL, (void *)h->reply_pool, h->reply_pool_dhandle); } else { } pci_release_regions(pdev); pci_set_drvdata(pdev, 0); cciss_destroy_hba_sysfs_entry(h); ldv_mutex_unlock_31(& h->busy_shutting_down); free_hba(h); return; } } static struct pci_driver cciss_pci_driver = {{0, 0}, "cciss", (struct pci_device_id const *)(& cciss_pci_device_id), & cciss_init_one, & cciss_remove_one, 0, 0, 0, 0, & cciss_shutdown, 0, 0, {0, 0, 0, 0, (_Bool)0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {{{{{{0U}}, 0U, 0U, 0, {0, {0, 0}, 0, 0, 0UL}}}}, {0, 0}}}; static int cciss_init(void) { int err ; struct lock_class_key __key ; int tmp ; struct task_struct *__k ; struct task_struct *tmp___0 ; long tmp___1 ; long tmp___2 ; long tmp___3 ; { printk("\016HP CISS Driver (v 3.6.26)\n"); tmp = __bus_register(& cciss_bus_type, & __key); err = tmp; if (err != 0) { return (err); } else { } tmp___0 = kthread_create_on_node(& scan_thread, 0, -1, "cciss_scan"); __k = tmp___0; tmp___1 = IS_ERR((void const *)__k); if (tmp___1 == 0L) { wake_up_process(__k); } else { } cciss_scan_thread = __k; tmp___3 = IS_ERR((void const *)cciss_scan_thread); if (tmp___3 != 0L) { tmp___2 = PTR_ERR((void const *)cciss_scan_thread); err = (int )tmp___2; goto err_bus_unregister; } else { } err = __pci_register_driver(& cciss_pci_driver, & __this_module, "cciss"); if (err != 0) { goto err_thread_stop; } else { } return (err); err_thread_stop: kthread_stop(cciss_scan_thread); err_bus_unregister: bus_unregister(& cciss_bus_type); return (err); } } static void cciss_cleanup(void) { int i ; { pci_unregister_driver(& cciss_pci_driver); i = 0; goto ldv_38063; ldv_38062: ; if ((unsigned long )hba[i] != (unsigned long )((ctlr_info_t *)0)) { dev_warn((struct device const *)(& ((hba[i])->pdev)->dev), "had to remove controller\n"); cciss_remove_one((hba[i])->pdev); } else { } i = i + 1; ldv_38063: ; if (i <= 31) { goto ldv_38062; } else { goto ldv_38064; } ldv_38064: kthread_stop(cciss_scan_thread); if ((unsigned long )proc_cciss != (unsigned long )((struct proc_dir_entry *)0)) { remove_proc_entry("driver/cciss", 0); } else { } bus_unregister(& cciss_bus_type); return; } } loff_t ldvarg51 ; struct device *ldvarg32 ; unsigned long ldvarg7 ; struct device_attribute *ldvarg42 ; unsigned int ldvarg12 ; int ldv_retval_2 ; int ldvarg50 ; CommandList_struct *ldvarg46 ; char *ldvarg1 ; char *ldvarg58 ; int ldv_retval_0 ; size_t ldvarg53 ; int ldv_retval_1 ; struct device *ldvarg64 ; struct gendisk *cciss_fops_group0 ; unsigned long ldvarg44 ; struct block_device *cciss_fops_group1 ; struct device *ldvarg0 ; struct device_attribute *ldvarg69 ; struct device_attribute *ldvarg5 ; char *ldvarg33 ; struct pci_device_id *ldvarg16 ; fmode_t ldvarg6 ; char *ldvarg4 ; int ldvarg28 ; struct device_attribute *ldvarg2 ; ctlr_info_t *ldvarg47 ; struct device_attribute *ldvarg31 ; CommandList_struct *ldvarg20 ; void *ldvarg60 ; char *ldvarg41 ; struct device *ldvarg3 ; loff_t *ldvarg59 ; ctlr_info_t *ldvarg49 ; struct device_attribute *ldvarg79 ; void ldv_initialize(void) ; fmode_t ldvarg13 ; loff_t *ldvarg55 ; struct device *ldvarg36 ; struct hd_geometry *ldvarg10 ; struct device *ldvarg40 ; char *ldvarg81 ; ctlr_info_t *ldvarg45 ; loff_t *ldvarg63 ; ctlr_info_t *ldvarg70 ; char *ldvarg68 ; char *ldvarg30 ; extern int ldv_cciss_dev_type_probe_2(void) ; char *ldvarg54 ; struct device_attribute *ldvarg82 ; ctlr_info_t *ldvarg76 ; ctlr_info_t *ldvarg19 ; ctlr_info_t *ldvarg75 ; struct device *ldvarg77 ; unsigned long ldvarg18 ; unsigned long ldvarg11 ; struct device *ldvarg67 ; ctlr_info_t *ldvarg23 ; ctlr_info_t *ldvarg43 ; unsigned long ldvarg71 ; ctlr_info_t *ldvarg72 ; struct file *ldvarg56 ; char *ldvarg37 ; struct device *ldvarg29 ; int ldvarg24 ; struct device *ldvarg35 ; struct device_attribute *ldvarg38 ; ctlr_info_t *ldvarg48 ; fmode_t ldvarg14 ; void ldv_check_final_state(void) ; struct device_attribute *ldvarg34 ; struct file *cciss_proc_fops_group2 ; struct seq_file *cciss_seq_ops_group0 ; struct inode *cciss_proc_fops_group1 ; size_t ldvarg39 ; struct device *ldvarg80 ; void *ldvarg62 ; char *ldvarg65 ; size_t ldvarg57 ; unsigned int ldvarg8 ; struct scsi_cmnd *cciss_driver_template_group1 ; struct device_attribute *ldvarg66 ; fmode_t ldvarg9 ; char **ldvarg26 ; char *ldvarg27 ; CommandList_struct *ldvarg73 ; char *ldvarg78 ; struct Scsi_Host *cciss_driver_template_group0 ; struct device *ldvarg15 ; ctlr_info_t *ldvarg21 ; void *ldvarg61 ; ctlr_info_t *ldvarg17 ; off_t ldvarg25 ; ctlr_info_t *ldvarg22 ; ctlr_info_t *ldvarg74 ; loff_t *ldvarg52 ; int ldv_retval_3 ; struct pci_dev *cciss_pci_driver_group0 ; extern int ldv_cciss_host_type_probe_3(void) ; int main(void) { int tmp ; int tmp___0 ; int tmp___1 ; int tmp___2 ; int tmp___3 ; int tmp___4 ; int tmp___5 ; int tmp___6 ; int tmp___7 ; int tmp___8 ; int tmp___9 ; int tmp___10 ; int tmp___11 ; int tmp___12 ; int tmp___13 ; int tmp___14 ; int tmp___15 ; int tmp___16 ; int tmp___17 ; int tmp___18 ; int tmp___19 ; int tmp___20 ; { ldv_initialize(); ldv_state_variable_11 = 0; ldv_state_variable_7 = 0; ldv_state_variable_17 = 0; ldv_state_variable_2 = 0; ldv_state_variable_1 = 0; ldv_state_variable_18 = 0; ref_cnt = 0; ldv_state_variable_0 = 1; ldv_state_variable_16 = 0; ldv_state_variable_13 = 0; ldv_state_variable_6 = 0; ldv_state_variable_3 = 0; ldv_state_variable_9 = 0; ldv_state_variable_12 = 0; ldv_state_variable_20 = 0; ldv_state_variable_14 = 0; ldv_state_variable_15 = 0; ldv_state_variable_8 = 0; ldv_state_variable_4 = 0; ldv_state_variable_19 = 0; ldv_state_variable_10 = 0; ldv_state_variable_5 = 0; ldv_38342: tmp = __VERIFIER_nondet_int(); switch (tmp) { case 0: ; if (ldv_state_variable_11 != 0) { tmp___0 = __VERIFIER_nondet_int(); switch (tmp___0) { case 0: ; if (ldv_state_variable_11 == 1) { host_show_transport_mode(ldvarg0, ldvarg2, ldvarg1); ldv_state_variable_11 = 1; } else { } goto ldv_38225; default: ; goto ldv_38225; } ldv_38225: ; } else { } goto ldv_38227; case 1: ; if (ldv_state_variable_7 != 0) { tmp___1 = __VERIFIER_nondet_int(); switch (tmp___1) { case 0: ; if (ldv_state_variable_7 == 1) { dev_show_rev(ldvarg3, ldvarg5, ldvarg4); ldv_state_variable_7 = 1; } else { } goto ldv_38230; default: ; goto ldv_38230; } ldv_38230: ; } else { } goto ldv_38227; case 2: ; if (ldv_state_variable_17 != 0) { tmp___2 = __VERIFIER_nondet_int(); switch (tmp___2) { case 0: ; if (ldv_state_variable_17 == 2) { cciss_release(cciss_fops_group0, ldvarg14); ldv_state_variable_17 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_38234; case 1: ; if (ldv_state_variable_17 == 1) { do_ioctl(cciss_fops_group1, ldvarg13, ldvarg12, ldvarg11); ldv_state_variable_17 = 1; } else { } if (ldv_state_variable_17 == 2) { do_ioctl(cciss_fops_group1, ldvarg13, ldvarg12, ldvarg11); ldv_state_variable_17 = 2; } else { } goto ldv_38234; case 2: ; if (ldv_state_variable_17 == 1) { cciss_getgeo(cciss_fops_group1, ldvarg10); ldv_state_variable_17 = 1; } else { } if (ldv_state_variable_17 == 2) { cciss_getgeo(cciss_fops_group1, ldvarg10); ldv_state_variable_17 = 2; } else { } goto ldv_38234; case 3: ; if (ldv_state_variable_17 == 1) { cciss_revalidate(cciss_fops_group0); ldv_state_variable_17 = 1; } else { } if (ldv_state_variable_17 == 2) { cciss_revalidate(cciss_fops_group0); ldv_state_variable_17 = 2; } else { } goto ldv_38234; case 4: ; if (ldv_state_variable_17 == 1) { cciss_compat_ioctl(cciss_fops_group1, ldvarg9, ldvarg8, ldvarg7); ldv_state_variable_17 = 1; } else { } if (ldv_state_variable_17 == 2) { cciss_compat_ioctl(cciss_fops_group1, ldvarg9, ldvarg8, ldvarg7); ldv_state_variable_17 = 2; } else { } goto ldv_38234; case 5: ; if (ldv_state_variable_17 == 1) { ldv_retval_0 = cciss_unlocked_open(cciss_fops_group1, ldvarg6); if (ldv_retval_0 == 0) { ldv_state_variable_17 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_38234; default: ; goto ldv_38234; } ldv_38234: ; } else { } goto ldv_38227; case 3: ; if (ldv_state_variable_2 != 0) { tmp___3 = __VERIFIER_nondet_int(); switch (tmp___3) { case 0: ; if (ldv_state_variable_2 == 2) { cciss_device_release(ldvarg15); ldv_state_variable_2 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_38243; case 1: ; if (ldv_state_variable_2 == 1) { ldv_cciss_dev_type_probe_2(); ldv_state_variable_2 = 2; ref_cnt = ref_cnt + 1; } else { } goto ldv_38243; default: ; goto ldv_38243; } ldv_38243: ; } else { } goto ldv_38227; case 4: ; if (ldv_state_variable_1 != 0) { tmp___4 = __VERIFIER_nondet_int(); switch (tmp___4) { case 0: ; if (ldv_state_variable_1 == 1) { ldv_retval_1 = cciss_init_one(cciss_pci_driver_group0, (struct pci_device_id const *)ldvarg16); if (ldv_retval_1 == 0) { ldv_state_variable_1 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_38248; case 1: ; if (ldv_state_variable_1 == 2) { cciss_shutdown(cciss_pci_driver_group0); ldv_state_variable_1 = 3; } else { } goto ldv_38248; case 2: ; if (ldv_state_variable_1 == 3) { cciss_remove_one(cciss_pci_driver_group0); ldv_state_variable_1 = 1; ref_cnt = ref_cnt - 1; } else { } if (ldv_state_variable_1 == 2) { cciss_remove_one(cciss_pci_driver_group0); ldv_state_variable_1 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_38248; default: ; goto ldv_38248; } ldv_38248: ; } else { } goto ldv_38227; case 5: ; if (ldv_state_variable_18 != 0) { tmp___5 = __VERIFIER_nondet_int(); switch (tmp___5) { case 0: ; if (ldv_state_variable_18 == 1) { SA5_fifo_full(ldvarg23); ldv_state_variable_18 = 1; } else { } goto ldv_38254; case 1: ; if (ldv_state_variable_18 == 1) { SA5_performant_intr_pending(ldvarg22); ldv_state_variable_18 = 1; } else { } goto ldv_38254; case 2: ; if (ldv_state_variable_18 == 1) { SA5_performant_completed(ldvarg21); ldv_state_variable_18 = 1; } else { } goto ldv_38254; case 3: ; if (ldv_state_variable_18 == 1) { SA5_submit_command(ldvarg19, ldvarg20); ldv_state_variable_18 = 1; } else { } goto ldv_38254; case 4: ; if (ldv_state_variable_18 == 1) { SA5_performant_intr_mask(ldvarg17, ldvarg18); ldv_state_variable_18 = 1; } else { } goto ldv_38254; default: ; goto ldv_38254; } ldv_38254: ; } else { } goto ldv_38227; case 6: ; if (ldv_state_variable_0 != 0) { tmp___6 = __VERIFIER_nondet_int(); switch (tmp___6) { case 0: ; if (ldv_state_variable_0 == 2 && ref_cnt == 0) { cciss_cleanup(); ldv_state_variable_0 = 3; goto ldv_final; } else { } goto ldv_38263; case 1: ; if (ldv_state_variable_0 == 1) { ldv_retval_2 = cciss_init(); if (ldv_retval_2 != 0) { ldv_state_variable_0 = 3; goto ldv_final; } else { } if (ldv_retval_2 == 0) { ldv_state_variable_0 = 2; ldv_state_variable_5 = 1; ldv_state_variable_10 = 1; ldv_state_variable_19 = 1; ldv_state_variable_4 = 1; ldv_state_variable_8 = 1; ldv_state_variable_15 = 1; ldv_state_variable_14 = 1; ldv_state_variable_20 = 1; ldv_state_variable_12 = 1; ldv_state_variable_9 = 1; ldv_state_variable_3 = 1; ldv_state_variable_6 = 1; ldv_state_variable_13 = 1; ldv_state_variable_18 = 1; ldv_state_variable_1 = 1; ldv_state_variable_2 = 1; ldv_state_variable_17 = 1; ldv_state_variable_7 = 1; ldv_state_variable_11 = 1; } else { } } else { } goto ldv_38263; default: ; goto ldv_38263; } ldv_38263: ; } else { } goto ldv_38227; case 7: ; if (ldv_state_variable_16 != 0) { tmp___7 = __VERIFIER_nondet_int(); switch (tmp___7) { case 0: ; if (ldv_state_variable_16 == 1) { cciss_eh_abort_handler(cciss_driver_template_group1); ldv_state_variable_16 = 1; } else { } goto ldv_38268; case 1: ; if (ldv_state_variable_16 == 1) { cciss_scsi_queue_command(cciss_driver_template_group0, cciss_driver_template_group1); ldv_state_variable_16 = 1; } else { } goto ldv_38268; case 2: ; if (ldv_state_variable_16 == 1) { cciss_scsi_proc_info(cciss_driver_template_group0, ldvarg27, ldvarg26, ldvarg25, ldvarg28, ldvarg24); ldv_state_variable_16 = 1; } else { } goto ldv_38268; case 3: ; if (ldv_state_variable_16 == 1) { cciss_eh_device_reset_handler(cciss_driver_template_group1); ldv_state_variable_16 = 1; } else { } goto ldv_38268; default: ; goto ldv_38268; } ldv_38268: ; } else { } goto ldv_38227; case 8: ; if (ldv_state_variable_13 != 0) { tmp___8 = __VERIFIER_nondet_int(); switch (tmp___8) { case 0: ; if (ldv_state_variable_13 == 1) { host_show_resettable(ldvarg29, ldvarg31, ldvarg30); ldv_state_variable_13 = 1; } else { } goto ldv_38275; default: ; goto ldv_38275; } ldv_38275: ; } else { } goto ldv_38227; case 9: ; if (ldv_state_variable_6 != 0) { tmp___9 = __VERIFIER_nondet_int(); switch (tmp___9) { case 0: ; if (ldv_state_variable_6 == 1) { cciss_show_lunid(ldvarg32, ldvarg34, ldvarg33); ldv_state_variable_6 = 1; } else { } goto ldv_38279; default: ; goto ldv_38279; } ldv_38279: ; } else { } goto ldv_38227; case 10: ; if (ldv_state_variable_3 != 0) { tmp___10 = __VERIFIER_nondet_int(); switch (tmp___10) { case 0: ; if (ldv_state_variable_3 == 2) { cciss_hba_release(ldvarg35); ldv_state_variable_3 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_38283; case 1: ; if (ldv_state_variable_3 == 1) { ldv_cciss_host_type_probe_3(); ldv_state_variable_3 = 2; ref_cnt = ref_cnt + 1; } else { } goto ldv_38283; default: ; goto ldv_38283; } ldv_38283: ; } else { } goto ldv_38227; case 11: ; if (ldv_state_variable_9 != 0) { tmp___11 = __VERIFIER_nondet_int(); switch (tmp___11) { case 0: ; if (ldv_state_variable_9 == 1) { dev_show_vendor(ldvarg36, ldvarg38, ldvarg37); ldv_state_variable_9 = 1; } else { } goto ldv_38288; default: ; goto ldv_38288; } ldv_38288: ; } else { } goto ldv_38227; case 12: ; if (ldv_state_variable_12 != 0) { tmp___12 = __VERIFIER_nondet_int(); switch (tmp___12) { case 0: ; if (ldv_state_variable_12 == 1) { host_store_rescan(ldvarg40, ldvarg42, (char const *)ldvarg41, ldvarg39); ldv_state_variable_12 = 1; } else { } goto ldv_38292; default: ; goto ldv_38292; } ldv_38292: ; } else { } goto ldv_38227; case 13: ; if (ldv_state_variable_20 != 0) { tmp___13 = __VERIFIER_nondet_int(); switch (tmp___13) { case 0: ; if (ldv_state_variable_20 == 1) { SA5_fifo_full(ldvarg49); ldv_state_variable_20 = 1; } else { } goto ldv_38296; case 1: ; if (ldv_state_variable_20 == 1) { SA5_intr_pending(ldvarg48); ldv_state_variable_20 = 1; } else { } goto ldv_38296; case 2: ; if (ldv_state_variable_20 == 1) { SA5_completed(ldvarg47); ldv_state_variable_20 = 1; } else { } goto ldv_38296; case 3: ; if (ldv_state_variable_20 == 1) { SA5_submit_command(ldvarg45, ldvarg46); ldv_state_variable_20 = 1; } else { } goto ldv_38296; case 4: ; if (ldv_state_variable_20 == 1) { SA5_intr_mask(ldvarg43, ldvarg44); ldv_state_variable_20 = 1; } else { } goto ldv_38296; default: ; goto ldv_38296; } ldv_38296: ; } else { } goto ldv_38227; case 14: ; if (ldv_state_variable_14 != 0) { tmp___14 = __VERIFIER_nondet_int(); switch (tmp___14) { case 0: ; if (ldv_state_variable_14 == 1) { cciss_proc_write(ldvarg56, (char const *)ldvarg58, ldvarg57, ldvarg55); ldv_state_variable_14 = 1; } else { } if (ldv_state_variable_14 == 2) { cciss_proc_write(ldvarg56, (char const *)ldvarg58, ldvarg57, ldvarg55); ldv_state_variable_14 = 2; } else { } goto ldv_38304; case 1: ; if (ldv_state_variable_14 == 2) { seq_release(cciss_proc_fops_group1, cciss_proc_fops_group2); ldv_state_variable_14 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_38304; case 2: ; if (ldv_state_variable_14 == 2) { seq_read(cciss_proc_fops_group2, ldvarg54, ldvarg53, ldvarg52); ldv_state_variable_14 = 2; } else { } goto ldv_38304; case 3: ; if (ldv_state_variable_14 == 2) { seq_lseek(cciss_proc_fops_group2, ldvarg51, ldvarg50); ldv_state_variable_14 = 2; } else { } goto ldv_38304; case 4: ; if (ldv_state_variable_14 == 1) { ldv_retval_3 = cciss_seq_open(cciss_proc_fops_group1, cciss_proc_fops_group2); if (ldv_retval_3 == 0) { ldv_state_variable_14 = 2; ref_cnt = ref_cnt + 1; } else { } } else { } goto ldv_38304; default: ; goto ldv_38304; } ldv_38304: ; } else { } goto ldv_38227; case 15: ; if (ldv_state_variable_15 != 0) { tmp___15 = __VERIFIER_nondet_int(); switch (tmp___15) { case 0: ; if (ldv_state_variable_15 == 1) { cciss_seq_start(cciss_seq_ops_group0, ldvarg63); ldv_state_variable_15 = 2; ref_cnt = ref_cnt + 1; } else { } goto ldv_38312; case 1: ; if (ldv_state_variable_15 == 2) { cciss_seq_stop(cciss_seq_ops_group0, ldvarg62); ldv_state_variable_15 = 1; ref_cnt = ref_cnt - 1; } else { } goto ldv_38312; case 2: ; if (ldv_state_variable_15 == 1) { cciss_seq_show(cciss_seq_ops_group0, ldvarg61); ldv_state_variable_15 = 1; } else { } if (ldv_state_variable_15 == 2) { cciss_seq_show(cciss_seq_ops_group0, ldvarg61); ldv_state_variable_15 = 2; } else { } goto ldv_38312; case 3: ; if (ldv_state_variable_15 == 1) { cciss_seq_next(cciss_seq_ops_group0, ldvarg60, ldvarg59); ldv_state_variable_15 = 1; } else { } if (ldv_state_variable_15 == 2) { cciss_seq_next(cciss_seq_ops_group0, ldvarg60, ldvarg59); ldv_state_variable_15 = 2; } else { } goto ldv_38312; default: ; goto ldv_38312; } ldv_38312: ; } else { } goto ldv_38227; case 16: ; if (ldv_state_variable_8 != 0) { tmp___16 = __VERIFIER_nondet_int(); switch (tmp___16) { case 0: ; if (ldv_state_variable_8 == 1) { dev_show_model(ldvarg64, ldvarg66, ldvarg65); ldv_state_variable_8 = 1; } else { } goto ldv_38319; default: ; goto ldv_38319; } ldv_38319: ; } else { } goto ldv_38227; case 17: ; if (ldv_state_variable_4 != 0) { tmp___17 = __VERIFIER_nondet_int(); switch (tmp___17) { case 0: ; if (ldv_state_variable_4 == 1) { cciss_show_usage_count(ldvarg67, ldvarg69, ldvarg68); ldv_state_variable_4 = 1; } else { } goto ldv_38323; default: ; goto ldv_38323; } ldv_38323: ; } else { } goto ldv_38227; case 18: ; if (ldv_state_variable_19 != 0) { tmp___18 = __VERIFIER_nondet_int(); switch (tmp___18) { case 0: ; if (ldv_state_variable_19 == 1) { SA5_fifo_full(ldvarg76); ldv_state_variable_19 = 1; } else { } goto ldv_38327; case 1: ; if (ldv_state_variable_19 == 1) { SA5B_intr_pending(ldvarg75); ldv_state_variable_19 = 1; } else { } goto ldv_38327; case 2: ; if (ldv_state_variable_19 == 1) { SA5_completed(ldvarg74); ldv_state_variable_19 = 1; } else { } goto ldv_38327; case 3: ; if (ldv_state_variable_19 == 1) { SA5_submit_command(ldvarg72, ldvarg73); ldv_state_variable_19 = 1; } else { } goto ldv_38327; case 4: ; if (ldv_state_variable_19 == 1) { SA5B_intr_mask(ldvarg70, ldvarg71); ldv_state_variable_19 = 1; } else { } goto ldv_38327; default: ; goto ldv_38327; } ldv_38327: ; } else { } goto ldv_38227; case 19: ; if (ldv_state_variable_10 != 0) { tmp___19 = __VERIFIER_nondet_int(); switch (tmp___19) { case 0: ; if (ldv_state_variable_10 == 1) { dev_show_unique_id(ldvarg77, ldvarg79, ldvarg78); ldv_state_variable_10 = 1; } else { } goto ldv_38335; default: ; goto ldv_38335; } ldv_38335: ; } else { } goto ldv_38227; case 20: ; if (ldv_state_variable_5 != 0) { tmp___20 = __VERIFIER_nondet_int(); switch (tmp___20) { case 0: ; if (ldv_state_variable_5 == 1) { cciss_show_raid_level(ldvarg80, ldvarg82, ldvarg81); ldv_state_variable_5 = 1; } else { } goto ldv_38339; default: ; goto ldv_38339; } ldv_38339: ; } else { } goto ldv_38227; default: ; goto ldv_38227; } ldv_38227: ; goto ldv_38342; ldv_final: ldv_check_final_state(); return 0; } } void ldv_mutex_lock_1(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_lock(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_2(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_lock(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_3(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_mutex_of_device(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } int ldv_mutex_trylock_4(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type___2 ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_trylock(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_mutex_trylock_mutex_of_device(ldv_func_arg1); return (tmp___0); return (ldv_func_res); } } void ldv_mutex_unlock_5(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_mutex_of_device(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_6(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_cred_guard_mutex_of_signal_struct(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_7(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_cred_guard_mutex_of_signal_struct(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } int ldv_scsi_add_host_with_dma_8(struct Scsi_Host *shost , struct device *dev , struct device *dma_dev ) { ldv_func_ret_type___6 ldv_func_res ; int tmp ; { tmp = scsi_add_host_with_dma(shost, dev, dma_dev); ldv_func_res = tmp; if (ldv_func_res == 0) { ldv_state_variable_16 = 1; } else { } return (ldv_func_res); } } struct Scsi_Host *ldv_scsi_host_alloc_9(struct scsi_host_template *sht , int privsize ) { ldv_func_ret_type___7 ldv_func_res ; struct Scsi_Host *tmp ; { tmp = scsi_host_alloc(sht, privsize); ldv_func_res = tmp; if ((unsigned long )ldv_func_res != (unsigned long )((ldv_func_ret_type___7 )0)) { ldv_state_variable_16 = 1; } else { } return (ldv_func_res); } } void ldv_scsi_remove_host_10(struct Scsi_Host *shost ) { { scsi_remove_host(shost); ldv_state_variable_16 = 0; return; } } void ldv_mutex_lock_11(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_cciss_mutex(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_12(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_cciss_mutex(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_13(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_cciss_mutex(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_14(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_cciss_mutex(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_15(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_cciss_mutex(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_16(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_cciss_mutex(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } int ldv_mutex_trylock_17(struct mutex *ldv_func_arg1 ) { ldv_func_ret_type___15 ldv_func_res ; int tmp ; int tmp___0 ; { tmp = mutex_trylock(ldv_func_arg1); ldv_func_res = tmp; tmp___0 = ldv_mutex_trylock_busy_shutting_down_of_ctlr_info(ldv_func_arg1); return (tmp___0); return (ldv_func_res); } } void ldv_mutex_lock_18(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_scan_mutex(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_19(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_scan_mutex(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_unlock_20(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_busy_shutting_down_of_ctlr_info(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_21(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_scan_mutex(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_22(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_scan_mutex(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_unlock_23(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_scan_mutex(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_unlock_24(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_scan_mutex(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_25(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_scan_mutex(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_26(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_scan_mutex(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_unlock_27(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_scan_mutex(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_28(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_scan_mutex(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_29(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_scan_mutex(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } void ldv_mutex_lock_30(struct mutex *ldv_func_arg1 ) { { ldv_mutex_lock_busy_shutting_down_of_ctlr_info(ldv_func_arg1); mutex_lock(ldv_func_arg1); return; } } void ldv_mutex_unlock_31(struct mutex *ldv_func_arg1 ) { { ldv_mutex_unlock_busy_shutting_down_of_ctlr_info(ldv_func_arg1); mutex_unlock(ldv_func_arg1); return; } } __inline static void ldv_error(void) __attribute__((__no_instrument_function__)) ; __inline static void ldv_error(void) { { ERROR: __VERIFIER_error(); } } extern int __VERIFIER_nondet_int(void) ; long ldv__builtin_expect(long exp , long c ) { { return (exp); } } void ldv__builtin_trap(void) { { ldv_error(); return; } } static int ldv_mutex_busy_shutting_down_of_ctlr_info ; int ldv_mutex_lock_interruptible_busy_shutting_down_of_ctlr_info(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_busy_shutting_down_of_ctlr_info == 1) { } else { ldv_error(); } nondetermined = __VERIFIER_nondet_int(); if (nondetermined) { ldv_mutex_busy_shutting_down_of_ctlr_info = 2; return (0); } else { return (-4); } } } int ldv_mutex_lock_killable_busy_shutting_down_of_ctlr_info(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_busy_shutting_down_of_ctlr_info == 1) { } else { ldv_error(); } nondetermined = __VERIFIER_nondet_int(); if (nondetermined) { ldv_mutex_busy_shutting_down_of_ctlr_info = 2; return (0); } else { return (-4); } } } void ldv_mutex_lock_busy_shutting_down_of_ctlr_info(struct mutex *lock ) { { if (ldv_mutex_busy_shutting_down_of_ctlr_info == 1) { } else { ldv_error(); } ldv_mutex_busy_shutting_down_of_ctlr_info = 2; return; } } int ldv_mutex_trylock_busy_shutting_down_of_ctlr_info(struct mutex *lock ) { int is_mutex_held_by_another_thread ; { if (ldv_mutex_busy_shutting_down_of_ctlr_info == 1) { } else { ldv_error(); } is_mutex_held_by_another_thread = __VERIFIER_nondet_int(); if (is_mutex_held_by_another_thread) { return (0); } else { ldv_mutex_busy_shutting_down_of_ctlr_info = 2; return (1); } } } int ldv_atomic_dec_and_mutex_lock_busy_shutting_down_of_ctlr_info(atomic_t *cnt , struct mutex *lock ) { int atomic_value_after_dec ; { if (ldv_mutex_busy_shutting_down_of_ctlr_info == 1) { } else { ldv_error(); } atomic_value_after_dec = __VERIFIER_nondet_int(); if (atomic_value_after_dec == 0) { ldv_mutex_busy_shutting_down_of_ctlr_info = 2; return (1); } else { } return (0); } } int ldv_mutex_is_locked_busy_shutting_down_of_ctlr_info(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_busy_shutting_down_of_ctlr_info == 1) { nondetermined = __VERIFIER_nondet_int(); if (nondetermined) { return (0); } else { return (1); } } else { return (1); } } } void ldv_mutex_unlock_busy_shutting_down_of_ctlr_info(struct mutex *lock ) { { if (ldv_mutex_busy_shutting_down_of_ctlr_info == 2) { } else { ldv_error(); } ldv_mutex_busy_shutting_down_of_ctlr_info = 1; return; } } static int ldv_mutex_cciss_mutex ; int ldv_mutex_lock_interruptible_cciss_mutex(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_cciss_mutex == 1) { } else { ldv_error(); } nondetermined = __VERIFIER_nondet_int(); if (nondetermined) { ldv_mutex_cciss_mutex = 2; return (0); } else { return (-4); } } } int ldv_mutex_lock_killable_cciss_mutex(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_cciss_mutex == 1) { } else { ldv_error(); } nondetermined = __VERIFIER_nondet_int(); if (nondetermined) { ldv_mutex_cciss_mutex = 2; return (0); } else { return (-4); } } } void ldv_mutex_lock_cciss_mutex(struct mutex *lock ) { { if (ldv_mutex_cciss_mutex == 1) { } else { ldv_error(); } ldv_mutex_cciss_mutex = 2; return; } } int ldv_mutex_trylock_cciss_mutex(struct mutex *lock ) { int is_mutex_held_by_another_thread ; { if (ldv_mutex_cciss_mutex == 1) { } else { ldv_error(); } is_mutex_held_by_another_thread = __VERIFIER_nondet_int(); if (is_mutex_held_by_another_thread) { return (0); } else { ldv_mutex_cciss_mutex = 2; return (1); } } } int ldv_atomic_dec_and_mutex_lock_cciss_mutex(atomic_t *cnt , struct mutex *lock ) { int atomic_value_after_dec ; { if (ldv_mutex_cciss_mutex == 1) { } else { ldv_error(); } atomic_value_after_dec = __VERIFIER_nondet_int(); if (atomic_value_after_dec == 0) { ldv_mutex_cciss_mutex = 2; return (1); } else { } return (0); } } int ldv_mutex_is_locked_cciss_mutex(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_cciss_mutex == 1) { nondetermined = __VERIFIER_nondet_int(); if (nondetermined) { return (0); } else { return (1); } } else { return (1); } } } void ldv_mutex_unlock_cciss_mutex(struct mutex *lock ) { { if (ldv_mutex_cciss_mutex == 2) { } else { ldv_error(); } ldv_mutex_cciss_mutex = 1; return; } } static int ldv_mutex_cred_guard_mutex_of_signal_struct ; int ldv_mutex_lock_interruptible_cred_guard_mutex_of_signal_struct(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_cred_guard_mutex_of_signal_struct == 1) { } else { ldv_error(); } nondetermined = __VERIFIER_nondet_int(); if (nondetermined) { ldv_mutex_cred_guard_mutex_of_signal_struct = 2; return (0); } else { return (-4); } } } int ldv_mutex_lock_killable_cred_guard_mutex_of_signal_struct(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_cred_guard_mutex_of_signal_struct == 1) { } else { ldv_error(); } nondetermined = __VERIFIER_nondet_int(); if (nondetermined) { ldv_mutex_cred_guard_mutex_of_signal_struct = 2; return (0); } else { return (-4); } } } void ldv_mutex_lock_cred_guard_mutex_of_signal_struct(struct mutex *lock ) { { if (ldv_mutex_cred_guard_mutex_of_signal_struct == 1) { } else { ldv_error(); } ldv_mutex_cred_guard_mutex_of_signal_struct = 2; return; } } int ldv_mutex_trylock_cred_guard_mutex_of_signal_struct(struct mutex *lock ) { int is_mutex_held_by_another_thread ; { if (ldv_mutex_cred_guard_mutex_of_signal_struct == 1) { } else { ldv_error(); } is_mutex_held_by_another_thread = __VERIFIER_nondet_int(); if (is_mutex_held_by_another_thread) { return (0); } else { ldv_mutex_cred_guard_mutex_of_signal_struct = 2; return (1); } } } int ldv_atomic_dec_and_mutex_lock_cred_guard_mutex_of_signal_struct(atomic_t *cnt , struct mutex *lock ) { int atomic_value_after_dec ; { if (ldv_mutex_cred_guard_mutex_of_signal_struct == 1) { } else { ldv_error(); } atomic_value_after_dec = __VERIFIER_nondet_int(); if (atomic_value_after_dec == 0) { ldv_mutex_cred_guard_mutex_of_signal_struct = 2; return (1); } else { } return (0); } } int ldv_mutex_is_locked_cred_guard_mutex_of_signal_struct(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_cred_guard_mutex_of_signal_struct == 1) { nondetermined = __VERIFIER_nondet_int(); if (nondetermined) { return (0); } else { return (1); } } else { return (1); } } } void ldv_mutex_unlock_cred_guard_mutex_of_signal_struct(struct mutex *lock ) { { if (ldv_mutex_cred_guard_mutex_of_signal_struct == 2) { } else { ldv_error(); } ldv_mutex_cred_guard_mutex_of_signal_struct = 1; return; } } static int ldv_mutex_lock ; int ldv_mutex_lock_interruptible_lock(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_lock == 1) { } else { ldv_error(); } nondetermined = __VERIFIER_nondet_int(); if (nondetermined) { ldv_mutex_lock = 2; return (0); } else { return (-4); } } } int ldv_mutex_lock_killable_lock(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_lock == 1) { } else { ldv_error(); } nondetermined = __VERIFIER_nondet_int(); if (nondetermined) { ldv_mutex_lock = 2; return (0); } else { return (-4); } } } void ldv_mutex_lock_lock(struct mutex *lock ) { { if (ldv_mutex_lock == 1) { } else { ldv_error(); } ldv_mutex_lock = 2; return; } } int ldv_mutex_trylock_lock(struct mutex *lock ) { int is_mutex_held_by_another_thread ; { if (ldv_mutex_lock == 1) { } else { ldv_error(); } is_mutex_held_by_another_thread = __VERIFIER_nondet_int(); if (is_mutex_held_by_another_thread) { return (0); } else { ldv_mutex_lock = 2; return (1); } } } int ldv_atomic_dec_and_mutex_lock_lock(atomic_t *cnt , struct mutex *lock ) { int atomic_value_after_dec ; { if (ldv_mutex_lock == 1) { } else { ldv_error(); } atomic_value_after_dec = __VERIFIER_nondet_int(); if (atomic_value_after_dec == 0) { ldv_mutex_lock = 2; return (1); } else { } return (0); } } int ldv_mutex_is_locked_lock(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_lock == 1) { nondetermined = __VERIFIER_nondet_int(); if (nondetermined) { return (0); } else { return (1); } } else { return (1); } } } void ldv_mutex_unlock_lock(struct mutex *lock ) { { if (ldv_mutex_lock == 2) { } else { ldv_error(); } ldv_mutex_lock = 1; return; } } static int ldv_mutex_mutex_of_device ; int ldv_mutex_lock_interruptible_mutex_of_device(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_mutex_of_device == 1) { } else { ldv_error(); } nondetermined = __VERIFIER_nondet_int(); if (nondetermined) { ldv_mutex_mutex_of_device = 2; return (0); } else { return (-4); } } } int ldv_mutex_lock_killable_mutex_of_device(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_mutex_of_device == 1) { } else { ldv_error(); } nondetermined = __VERIFIER_nondet_int(); if (nondetermined) { ldv_mutex_mutex_of_device = 2; return (0); } else { return (-4); } } } void ldv_mutex_lock_mutex_of_device(struct mutex *lock ) { { if (ldv_mutex_mutex_of_device == 1) { } else { ldv_error(); } ldv_mutex_mutex_of_device = 2; return; } } int ldv_mutex_trylock_mutex_of_device(struct mutex *lock ) { int is_mutex_held_by_another_thread ; { if (ldv_mutex_mutex_of_device == 1) { } else { ldv_error(); } is_mutex_held_by_another_thread = __VERIFIER_nondet_int(); if (is_mutex_held_by_another_thread) { return (0); } else { ldv_mutex_mutex_of_device = 2; return (1); } } } int ldv_atomic_dec_and_mutex_lock_mutex_of_device(atomic_t *cnt , struct mutex *lock ) { int atomic_value_after_dec ; { if (ldv_mutex_mutex_of_device == 1) { } else { ldv_error(); } atomic_value_after_dec = __VERIFIER_nondet_int(); if (atomic_value_after_dec == 0) { ldv_mutex_mutex_of_device = 2; return (1); } else { } return (0); } } int ldv_mutex_is_locked_mutex_of_device(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_mutex_of_device == 1) { nondetermined = __VERIFIER_nondet_int(); if (nondetermined) { return (0); } else { return (1); } } else { return (1); } } } void ldv_mutex_unlock_mutex_of_device(struct mutex *lock ) { { if (ldv_mutex_mutex_of_device == 2) { } else { ldv_error(); } ldv_mutex_mutex_of_device = 1; return; } } static int ldv_mutex_scan_mutex ; int ldv_mutex_lock_interruptible_scan_mutex(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_scan_mutex == 1) { } else { ldv_error(); } nondetermined = __VERIFIER_nondet_int(); if (nondetermined) { ldv_mutex_scan_mutex = 2; return (0); } else { return (-4); } } } int ldv_mutex_lock_killable_scan_mutex(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_scan_mutex == 1) { } else { ldv_error(); } nondetermined = __VERIFIER_nondet_int(); if (nondetermined) { ldv_mutex_scan_mutex = 2; return (0); } else { return (-4); } } } void ldv_mutex_lock_scan_mutex(struct mutex *lock ) { { if (ldv_mutex_scan_mutex == 1) { } else { ldv_error(); } ldv_mutex_scan_mutex = 2; return; } } int ldv_mutex_trylock_scan_mutex(struct mutex *lock ) { int is_mutex_held_by_another_thread ; { if (ldv_mutex_scan_mutex == 1) { } else { ldv_error(); } is_mutex_held_by_another_thread = __VERIFIER_nondet_int(); if (is_mutex_held_by_another_thread) { return (0); } else { ldv_mutex_scan_mutex = 2; return (1); } } } int ldv_atomic_dec_and_mutex_lock_scan_mutex(atomic_t *cnt , struct mutex *lock ) { int atomic_value_after_dec ; { if (ldv_mutex_scan_mutex == 1) { } else { ldv_error(); } atomic_value_after_dec = __VERIFIER_nondet_int(); if (atomic_value_after_dec == 0) { ldv_mutex_scan_mutex = 2; return (1); } else { } return (0); } } int ldv_mutex_is_locked_scan_mutex(struct mutex *lock ) { int nondetermined ; { if (ldv_mutex_scan_mutex == 1) { nondetermined = __VERIFIER_nondet_int(); if (nondetermined) { return (0); } else { return (1); } } else { return (1); } } } void ldv_mutex_unlock_scan_mutex(struct mutex *lock ) { { if (ldv_mutex_scan_mutex == 2) { } else { ldv_error(); } ldv_mutex_scan_mutex = 1; return; } } void ldv_initialize(void) { { ldv_mutex_busy_shutting_down_of_ctlr_info = 1; ldv_mutex_cciss_mutex = 1; ldv_mutex_cred_guard_mutex_of_signal_struct = 1; ldv_mutex_lock = 1; ldv_mutex_mutex_of_device = 1; ldv_mutex_scan_mutex = 1; return; } } void ldv_check_final_state(void) { { if (ldv_mutex_busy_shutting_down_of_ctlr_info == 1) { } else { ldv_error(); } if (ldv_mutex_cciss_mutex == 1) { } else { ldv_error(); } if (ldv_mutex_cred_guard_mutex_of_signal_struct == 1) { } else { ldv_error(); } if (ldv_mutex_lock == 1) { } else { ldv_error(); } if (ldv_mutex_mutex_of_device == 1) { } else { ldv_error(); } if (ldv_mutex_scan_mutex == 1) { } else { ldv_error(); } return; } }