extern void abort(void); extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); void reach_error() { __assert_fail("0", "drivers--rtc--rtc-pcf2123.ko_003.5a0e3ad.32_7a.cil_true-unreach-call.i", 3, "reach_error"); } /* Generated by CIL v. 1.5.1 */ /* print_CIL_Input is false */ typedef signed char __s8; typedef short __s16; typedef unsigned short __u16; typedef int __s32; typedef unsigned int __u32; typedef unsigned long long __u64; typedef unsigned char u8; typedef short s16; typedef unsigned short u16; typedef unsigned int u32; typedef unsigned long long u64; typedef unsigned short umode_t; typedef u64 dma_addr_t; typedef unsigned int __kernel_mode_t; typedef unsigned int __kernel_uid_t; typedef unsigned int __kernel_gid_t; typedef unsigned long __kernel_size_t; typedef long __kernel_ssize_t; typedef long __kernel_time_t; typedef int __kernel_clockid_t; typedef long long __kernel_loff_t; typedef __kernel_uid_t __kernel_uid32_t; typedef __kernel_gid_t __kernel_gid32_t; typedef __u32 __kernel_dev_t; typedef __kernel_dev_t dev_t; typedef __kernel_mode_t mode_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 long sector_t; typedef unsigned long blkcnt_t; typedef unsigned int gfp_t; typedef unsigned int fmode_t; struct __anonstruct_atomic_t_6 { int volatile counter ; }; typedef struct __anonstruct_atomic_t_6 atomic_t; struct __anonstruct_atomic64_t_7 { long volatile counter ; }; typedef struct __anonstruct_atomic64_t_7 atomic64_t; struct module; struct _ddebug { char const *modname ; char const *function ; char const *filename ; char const *format ; char primary_hash ; char secondary_hash ; unsigned int lineno : 24 ; unsigned char flags ; }; struct bug_entry { int bug_addr_disp ; int file_disp ; unsigned short line ; unsigned short flags ; }; struct completion; struct pt_regs; struct pid; struct task_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 ; }; typedef void (*ctor_fn_t)(void); struct page; struct file; struct seq_file; struct arch_spinlock; struct exec_domain; struct map_segment; struct exec_domain { char const *name ; void (*handler)(int , struct pt_regs * ) ; unsigned char pers_low ; unsigned char pers_high ; unsigned long *signal_map ; unsigned long *signal_invmap ; struct map_segment *err_map ; struct map_segment *socktype_map ; struct map_segment *sockopt_map ; struct map_segment *af_map ; struct module *module ; struct exec_domain *next ; }; struct seq_operations; struct kmem_cache; struct __anonstruct_mm_segment_t_24 { unsigned long seg ; }; typedef struct __anonstruct_mm_segment_t_24 mm_segment_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 arch_spinlock { unsigned int slock ; }; typedef struct arch_spinlock arch_spinlock_t; struct __anonstruct_arch_rwlock_t_25 { unsigned int lock ; }; typedef struct __anonstruct_arch_rwlock_t_25 arch_rwlock_t; struct lockdep_map; 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 ; }; 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 ; char const *name ; int cpu ; unsigned long ip ; }; struct raw_spinlock { arch_spinlock_t raw_lock ; unsigned int magic ; unsigned int owner_cpu ; void *owner ; struct lockdep_map dep_map ; }; struct __anonstruct_ldv_5574_27 { u8 __padding[1U] ; struct lockdep_map dep_map ; }; union __anonunion_ldv_5575_26 { struct raw_spinlock rlock ; struct __anonstruct_ldv_5574_27 ldv_5574 ; }; struct spinlock { union __anonunion_ldv_5575_26 ldv_5575 ; }; typedef struct spinlock spinlock_t; struct __anonstruct_rwlock_t_28 { arch_rwlock_t raw_lock ; unsigned int magic ; unsigned int owner_cpu ; void *owner ; struct lockdep_map dep_map ; }; typedef struct __anonstruct_rwlock_t_28 rwlock_t; struct thread_info; struct mutex { atomic_t count ; spinlock_t wait_lock ; struct list_head wait_list ; struct thread_info *owner ; char const *name ; void *magic ; struct lockdep_map dep_map ; }; struct device; struct kobject; struct attribute { char const *name ; struct module *owner ; mode_t mode ; struct lock_class_key *key ; struct lock_class_key skey ; }; struct attribute_group { char const *name ; mode_t (*is_visible)(struct kobject * , struct attribute * , int ) ; struct attribute **attrs ; }; 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 ) ; }; struct sysfs_dirent; struct timespec; struct compat_timespec; struct __anonstruct_ldv_5909_30 { unsigned long arg0 ; unsigned long arg1 ; unsigned long arg2 ; unsigned long arg3 ; }; struct __anonstruct_futex_31 { u32 *uaddr ; u32 val ; u32 flags ; u32 bitset ; u64 time ; u32 *uaddr2 ; }; struct __anonstruct_nanosleep_32 { clockid_t index ; struct timespec *rmtp ; struct compat_timespec *compat_rmtp ; u64 expires ; }; struct pollfd; struct __anonstruct_poll_33 { struct pollfd *ufds ; int nfds ; int has_timeout ; unsigned long tv_sec ; unsigned long tv_nsec ; }; union __anonunion_ldv_5932_29 { struct __anonstruct_ldv_5909_30 ldv_5909 ; struct __anonstruct_futex_31 futex ; struct __anonstruct_nanosleep_32 nanosleep ; struct __anonstruct_poll_33 poll ; }; struct restart_block { long (*fn)(struct restart_block * ) ; union __anonunion_ldv_5932_29 ldv_5932 ; }; struct thread_info { struct task_struct *task ; struct exec_domain *exec_domain ; __u32 flags ; __u32 status ; __u32 cpu ; int preempt_count ; mm_segment_t addr_limit ; struct restart_block restart_block ; void *sysenter_return ; int uaccess_err ; }; struct kref { atomic_t refcount ; }; struct __wait_queue_head { spinlock_t lock ; struct list_head task_list ; }; typedef struct __wait_queue_head wait_queue_head_t; 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_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 klist_node; struct klist_node { void *n_klist ; struct list_head n_node ; struct kref n_ref ; }; struct timespec { __kernel_time_t tv_sec ; long tv_nsec ; }; struct kstat { u64 ino ; dev_t dev ; umode_t mode ; unsigned int nlink ; uid_t uid ; gid_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 rw_semaphore; typedef long rwsem_count_t; struct rw_semaphore { rwsem_count_t count ; spinlock_t wait_lock ; struct list_head wait_list ; struct lockdep_map dep_map ; }; struct tvec_base; struct timer_list { struct list_head entry ; unsigned long expires ; void (*function)(unsigned long ) ; unsigned long data ; struct tvec_base *base ; void *start_site ; char start_comm[16U] ; int start_pid ; struct lockdep_map lockdep_map ; }; 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 completion { unsigned int done ; wait_queue_head_t wait ; }; 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_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 dpm_state { DPM_INVALID = 0, DPM_ON = 1, DPM_PREPARING = 2, DPM_RESUMING = 3, DPM_SUSPENDING = 4, DPM_OFF = 5, DPM_OFF_IRQ = 6 } ; 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_RESUME = 3 } ; struct dev_pm_info { pm_message_t power_state ; unsigned char can_wakeup : 1 ; unsigned char should_wakeup : 1 ; unsigned char async_suspend : 1 ; enum dpm_state status ; struct list_head entry ; struct completion completion ; struct timer_list suspend_timer ; unsigned long timer_expires ; struct work_struct work ; wait_queue_head_t wait_queue ; spinlock_t lock ; atomic_t usage_count ; atomic_t child_count ; unsigned char disable_depth : 3 ; unsigned char ignore_children : 1 ; 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 ; enum rpm_request request ; enum rpm_status runtime_status ; int runtime_error ; }; 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 kernel_param; struct kparam_string; struct kparam_array; union __anonunion_ldv_10653_110 { void *arg ; struct kparam_string const *str ; struct kparam_array const *arr ; }; struct kernel_param { char const *name ; u16 perm ; u16 flags ; int (*set)(char const * , struct kernel_param * ) ; int (*get)(char * , struct kernel_param * ) ; union __anonunion_ldv_10653_110 ldv_10653 ; }; struct kparam_string { unsigned int maxlen ; char *string ; }; struct kparam_array { unsigned int max ; unsigned int *num ; int (*set)(char const * , struct kernel_param * ) ; int (*get)(char * , struct kernel_param * ) ; unsigned int elemsize ; void *elem ; }; struct rcu_head { struct rcu_head *next ; void (*func)(struct rcu_head * ) ; }; struct tracepoint; struct tracepoint { char const *name ; int state ; void (*regfunc)(void) ; void (*unregfunc)(void) ; void **funcs ; }; struct kmem_cache_cpu { void **freelist ; struct page *page ; int node ; unsigned int stat[18U] ; }; 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 ; int size ; int objsize ; int offset ; struct kmem_cache_order_objects oo ; struct kmem_cache_node local_node ; struct kmem_cache_order_objects max ; struct kmem_cache_order_objects min ; gfp_t allocflags ; int refcount ; void (*ctor)(void * ) ; int inuse ; int align ; unsigned long min_partial ; char const *name ; struct list_head list ; struct kobject kobj ; int remote_node_defrag_ratio ; struct kmem_cache_node *node[512U] ; }; struct mod_arch_specific { }; struct kernel_symbol { unsigned long value ; char const *name ; }; struct module_attribute { struct attribute attr ; ssize_t (*show)(struct module_attribute * , struct module * , char * ) ; ssize_t (*store)(struct module_attribute * , struct module * , char const * , size_t ) ; void (*setup)(struct module * , char const * ) ; int (*test)(struct module * ) ; void (*free)(struct module * ) ; }; struct module_param_attrs; struct module_kobject { struct kobject kobj ; struct module *mod ; struct kobject *drivers_dir ; struct module_param_attrs *mp ; }; struct exception_table_entry; enum module_state { MODULE_STATE_LIVE = 0, MODULE_STATE_COMING = 1, MODULE_STATE_GOING = 2 } ; struct module_ref { int count ; }; 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 ; 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 ; 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 ; void *percpu ; char *args ; struct tracepoint *tracepoints ; unsigned int num_tracepoints ; char const **trace_bprintk_fmt_start ; unsigned int num_trace_bprintk_fmt ; struct ftrace_event_call *trace_events ; unsigned int num_trace_events ; struct list_head modules_which_use_me ; struct task_struct *waiter ; void (*exit)(void) ; struct module_ref *refptr ; ctor_fn_t (**ctors)(void) ; unsigned int num_ctors ; }; struct device_driver; struct semaphore { spinlock_t lock ; unsigned int count ; struct list_head wait_list ; }; struct dma_map_ops; struct dev_archdata { void *acpi_handle ; struct dma_map_ops *dma_ops ; void *iommu ; }; struct device_private; struct driver_private; struct class; struct class_private; struct bus_type; struct bus_type_private; 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 ; 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 bus_type_private *p ; }; struct device_driver { char const *name ; struct bus_type *bus ; struct module *owner ; char const *mod_name ; bool suppress_bind_attrs ; 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 kobject *dev_kobj ; int (*dev_uevent)(struct device * , struct kobj_uevent_env * ) ; char *(*devnode)(struct device * , mode_t * ) ; void (*class_release)(struct class * ) ; void (*dev_release)(struct device * ) ; int (*suspend)(struct device * , pm_message_t ) ; int (*resume)(struct device * ) ; struct dev_pm_ops const *pm ; struct class_private *p ; }; struct device_type; 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 ) ; }; struct device_type { char const *name ; struct attribute_group const **groups ; int (*uevent)(struct device * , struct kobj_uevent_env * ) ; char *(*devnode)(struct device * , mode_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 dma_coherent_mem; struct device { struct device *parent ; struct device_private *p ; struct kobject kobj ; char const *init_name ; struct device_type *type ; struct semaphore sem ; struct bus_type *bus ; struct device_driver *driver ; void *platform_data ; struct dev_pm_info power ; 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 ; dev_t devt ; 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 rtc_time { int tm_sec ; int tm_min ; int tm_hour ; int tm_mday ; int tm_mon ; int tm_year ; int tm_wday ; int tm_yday ; int tm_isdst ; }; struct rtc_wkalrm { unsigned char enabled ; unsigned char pending ; struct rtc_time time ; }; struct exception_table_entry { unsigned long insn ; unsigned long fixup ; }; struct path; struct inode; struct dentry; 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 ; 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 file_operations; struct cdev { struct kobject kobj ; struct module *owner ; struct file_operations const *ops ; struct list_head list ; dev_t dev ; unsigned int count ; }; struct backing_dev_info; struct pollfd { int fd ; short events ; short revents ; }; struct nameidata; struct vfsmount; struct qstr { unsigned int hash ; unsigned int len ; unsigned char const *name ; }; union __anonunion_d_u_112 { struct list_head d_child ; struct rcu_head d_rcu ; }; struct dentry_operations; struct super_block; struct dentry { atomic_t d_count ; unsigned int d_flags ; spinlock_t d_lock ; int d_mounted ; struct inode *d_inode ; struct hlist_node d_hash ; struct dentry *d_parent ; struct qstr d_name ; struct list_head d_lru ; union __anonunion_d_u_112 d_u ; struct list_head d_subdirs ; struct list_head d_alias ; unsigned long d_time ; struct dentry_operations const *d_op ; struct super_block *d_sb ; void *d_fsdata ; unsigned char d_iname[32U] ; }; struct dentry_operations { int (*d_revalidate)(struct dentry * , struct nameidata * ) ; int (*d_hash)(struct dentry * , struct qstr * ) ; int (*d_compare)(struct dentry * , struct qstr * , struct qstr * ) ; int (*d_delete)(struct dentry * ) ; void (*d_release)(struct dentry * ) ; void (*d_iput)(struct dentry * , struct inode * ) ; char *(*d_dname)(struct dentry * , char * , int ) ; }; 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 ; }; struct prio_tree_node; struct prio_tree_node { struct prio_tree_node *left ; struct prio_tree_node *right ; struct prio_tree_node *parent ; unsigned long start ; unsigned long last ; }; struct prio_tree_root { struct prio_tree_node *prio_tree_node ; unsigned short index_bits ; unsigned short raw ; }; 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 rcu_head rcu ; struct upid numbers[1U] ; }; struct fiemap_extent { __u64 fe_logical ; __u64 fe_physical ; __u64 fe_length ; __u64 fe_reserved64[2U] ; __u32 fe_flags ; __u32 fe_reserved[3U] ; }; struct export_operations; struct iovec; struct kiocb; struct pipe_inode_info; struct poll_table_struct; struct kstatfs; struct cred; struct iattr { unsigned int ia_valid ; umode_t ia_mode ; uid_t ia_uid ; gid_t ia_gid ; loff_t ia_size ; struct timespec ia_atime ; struct timespec ia_mtime ; struct timespec ia_ctime ; struct file *ia_file ; }; struct if_dqblk { __u64 dqb_bhardlimit ; __u64 dqb_bsoftlimit ; __u64 dqb_curspace ; __u64 dqb_ihardlimit ; __u64 dqb_isoftlimit ; __u64 dqb_curinodes ; __u64 dqb_btime ; __u64 dqb_itime ; __u32 dqb_valid ; }; struct if_dqinfo { __u64 dqi_bgrace ; __u64 dqi_igrace ; __u32 dqi_flags ; __u32 dqi_valid ; }; 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 qid_t; typedef long long qsize_t; 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 ; unsigned int dq_id ; loff_t dq_off ; unsigned long dq_flags ; short dq_type ; 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 , char * , int ) ; int (*quota_off)(struct super_block * , int , int ) ; int (*quota_sync)(struct super_block * , int , 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 * , int , qid_t , struct if_dqblk * ) ; int (*set_dqblk)(struct super_block * , int , qid_t , struct if_dqblk * ) ; int (*get_xstate)(struct super_block * , struct fs_quota_stat * ) ; int (*set_xstate)(struct super_block * , unsigned int , int ) ; int (*get_xquota)(struct super_block * , int , qid_t , struct fs_disk_quota * ) ; int (*set_xquota)(struct super_block * , int , qid_t , struct fs_disk_quota * ) ; }; 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] ; }; struct address_space; struct writeback_control; union __anonunion_arg_115 { char *buf ; void *data ; }; struct __anonstruct_read_descriptor_t_114 { size_t written ; size_t count ; union __anonunion_arg_115 arg ; int error ; }; typedef struct __anonstruct_read_descriptor_t_114 read_descriptor_t; struct address_space_operations { int (*writepage)(struct page * , struct writeback_control * ) ; int (*readpage)(struct file * , struct page * ) ; void (*sync_page)(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 ) ; 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 * ) ; 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 * ) ; }; struct address_space { struct inode *host ; struct radix_tree_root page_tree ; spinlock_t tree_lock ; unsigned int i_mmap_writable ; struct prio_tree_root i_mmap ; struct list_head i_mmap_nonlinear ; spinlock_t i_mmap_lock ; unsigned int truncate_count ; 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 ; struct address_space *assoc_mapping ; }; struct hd_struct; struct gendisk; struct block_device { dev_t bd_dev ; struct inode *bd_inode ; struct super_block *bd_super ; int bd_openers ; struct mutex bd_mutex ; struct list_head bd_inodes ; void *bd_holder ; int bd_holders ; struct list_head bd_holder_list ; 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 list_head bd_list ; unsigned long bd_private ; int bd_fsfreeze_count ; struct mutex bd_fsfreeze_mutex ; }; struct posix_acl; struct inode_operations; struct file_lock; union __anonunion_ldv_15351_116 { struct pipe_inode_info *i_pipe ; struct block_device *i_bdev ; struct cdev *i_cdev ; }; struct inode { struct hlist_node i_hash ; struct list_head i_list ; struct list_head i_sb_list ; struct list_head i_dentry ; unsigned long i_ino ; atomic_t i_count ; unsigned int i_nlink ; uid_t i_uid ; gid_t i_gid ; dev_t i_rdev ; unsigned int i_blkbits ; u64 i_version ; loff_t i_size ; struct timespec i_atime ; struct timespec i_mtime ; struct timespec i_ctime ; blkcnt_t i_blocks ; unsigned short i_bytes ; umode_t i_mode ; spinlock_t i_lock ; struct mutex i_mutex ; struct rw_semaphore i_alloc_sem ; struct inode_operations const *i_op ; struct file_operations const *i_fop ; struct super_block *i_sb ; struct file_lock *i_flock ; struct address_space *i_mapping ; struct address_space i_data ; struct dquot *i_dquot[2U] ; struct list_head i_devices ; union __anonunion_ldv_15351_116 ldv_15351 ; __u32 i_generation ; __u32 i_fsnotify_mask ; struct hlist_head i_fsnotify_mark_entries ; struct list_head inotify_watches ; struct mutex inotify_mutex ; unsigned long i_state ; unsigned long dirtied_when ; unsigned int i_flags ; atomic_t i_writecount ; void *i_security ; struct posix_acl *i_acl ; struct posix_acl *i_default_acl ; void *i_private ; }; struct fown_struct { rwlock_t lock ; struct pid *pid ; enum pid_type pid_type ; uid_t uid ; uid_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_117 { struct list_head fu_list ; struct rcu_head fu_rcuhead ; }; struct file { union __anonunion_f_u_117 f_u ; struct path f_path ; struct file_operations const *f_op ; spinlock_t f_lock ; 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 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 (*fl_compare_owner)(struct file_lock * , struct file_lock * ) ; void (*fl_notify)(struct file_lock * ) ; int (*fl_grant)(struct file_lock * , struct file_lock * , int ) ; void (*fl_copy_lock)(struct file_lock * , struct file_lock * ) ; void (*fl_release_private)(struct file_lock * ) ; void (*fl_break)(struct file_lock * ) ; int (*fl_mylease)(struct file_lock * , struct file_lock * ) ; int (*fl_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_119 { struct list_head link ; int state ; }; union __anonunion_fl_u_118 { struct nfs_lock_info nfs_fl ; struct nfs4_lock_info nfs4_fl ; struct __anonstruct_afs_119 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 char 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 ; struct file_lock_operations const *fl_ops ; struct lock_manager_operations const *fl_lmops ; union __anonunion_fl_u_118 fl_u ; }; struct fasync_struct { int magic ; int fa_fd ; struct fasync_struct *fa_next ; struct file *fa_file ; }; 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_dirt ; 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 ; struct mutex s_lock ; int s_count ; int s_need_sync ; atomic_t s_active ; void *s_security ; struct xattr_handler **s_xattr ; struct list_head s_inodes ; struct hlist_head s_anon ; struct list_head s_files ; struct list_head s_dentry_lru ; int s_nr_dentry_unused ; struct block_device *s_bdev ; struct backing_dev_info *s_bdi ; struct mtd_info *s_mtd ; struct list_head s_instances ; struct quota_info s_dquot ; int s_frozen ; wait_queue_head_t s_wait_unfrozen ; char s_id[32U] ; void *s_fs_info ; fmode_t s_mode ; u32 s_time_gran ; struct mutex s_vfs_rename_mutex ; char *s_subtype ; char *s_options ; }; 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 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 * ) ; int (*ioctl)(struct inode * , struct file * , unsigned int , unsigned long ) ; 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 * , struct dentry * , 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 ** ) ; }; struct inode_operations { int (*create)(struct inode * , struct dentry * , int , struct nameidata * ) ; struct dentry *(*lookup)(struct inode * , struct dentry * , struct nameidata * ) ; 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 * , int ) ; int (*rmdir)(struct inode * , struct dentry * ) ; int (*mknod)(struct inode * , struct dentry * , int , dev_t ) ; int (*rename)(struct inode * , struct dentry * , struct inode * , struct dentry * ) ; int (*readlink)(struct dentry * , char * , int ) ; void *(*follow_link)(struct dentry * , struct nameidata * ) ; void (*put_link)(struct dentry * , struct nameidata * , void * ) ; void (*truncate)(struct inode * ) ; int (*permission)(struct inode * , int ) ; int (*check_acl)(struct inode * , int ) ; 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 * ) ; void (*truncate_range)(struct inode * , loff_t , loff_t ) ; long (*fallocate)(struct inode * , int , loff_t , loff_t ) ; int (*fiemap)(struct inode * , struct fiemap_extent_info * , u64 , u64 ) ; }; struct super_operations { struct inode *(*alloc_inode)(struct super_block * ) ; void (*destroy_inode)(struct inode * ) ; void (*dirty_inode)(struct inode * ) ; int (*write_inode)(struct inode * , struct writeback_control * ) ; void (*drop_inode)(struct inode * ) ; void (*delete_inode)(struct inode * ) ; void (*put_super)(struct super_block * ) ; void (*write_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 (*clear_inode)(struct inode * ) ; void (*umount_begin)(struct super_block * ) ; int (*show_options)(struct seq_file * , struct vfsmount * ) ; int (*show_stats)(struct seq_file * , struct vfsmount * ) ; 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 ) ; }; struct file_system_type { char const *name ; int fs_flags ; int (*get_sb)(struct file_system_type * , int , char const * , void * , struct vfsmount * ) ; void (*kill_sb)(struct super_block * ) ; struct module *owner ; struct file_system_type *next ; struct list_head fs_supers ; struct lock_class_key s_lock_key ; struct lock_class_key s_umount_key ; struct lock_class_key i_lock_key ; struct lock_class_key i_mutex_key ; struct lock_class_key i_mutex_dir_key ; struct lock_class_key i_alloc_sem_key ; }; struct poll_table_struct { void (*qproc)(struct file * , wait_queue_head_t * , struct poll_table_struct * ) ; unsigned long key ; }; struct rtc_class_ops { int (*open)(struct device * ) ; void (*release)(struct device * ) ; int (*ioctl)(struct device * , unsigned int , unsigned long ) ; int (*read_time)(struct device * , struct rtc_time * ) ; int (*set_time)(struct device * , struct rtc_time * ) ; int (*read_alarm)(struct device * , struct rtc_wkalrm * ) ; int (*set_alarm)(struct device * , struct rtc_wkalrm * ) ; int (*proc)(struct device * , struct seq_file * ) ; int (*set_mmss)(struct device * , unsigned long ) ; int (*irq_set_state)(struct device * , int ) ; int (*irq_set_freq)(struct device * , int ) ; int (*read_callback)(struct device * , int ) ; int (*alarm_irq_enable)(struct device * , unsigned int ) ; int (*update_irq_enable)(struct device * , unsigned int ) ; }; struct rtc_task; struct rtc_device { struct device dev ; struct module *owner ; int id ; char name[20U] ; struct rtc_class_ops const *ops ; struct mutex ops_lock ; struct cdev char_dev ; unsigned long flags ; unsigned long irq_data ; spinlock_t irq_lock ; wait_queue_head_t irq_queue ; struct fasync_struct *async_queue ; struct rtc_task *irq_task ; spinlock_t irq_task_lock ; int irq_freq ; int max_user_freq ; struct work_struct uie_task ; struct timer_list uie_timer ; unsigned int oldsecs ; unsigned char uie_irq_active : 1 ; unsigned char stop_uie_polling : 1 ; unsigned char uie_task_active : 1 ; unsigned char uie_timer_active : 1 ; }; struct rtc_task { void (*func)(void * ) ; void *private_data ; }; typedef unsigned long kernel_ulong_t; struct spi_device_id { char name[32U] ; kernel_ulong_t driver_data ; }; struct spi_master; struct spi_device { struct device dev ; struct spi_master *master ; u32 max_speed_hz ; u8 chip_select ; u8 mode ; u8 bits_per_word ; int irq ; void *controller_state ; void *controller_data ; char modalias[32U] ; }; struct spi_message; struct spi_driver { struct spi_device_id const *id_table ; int (*probe)(struct spi_device * ) ; int (*remove)(struct spi_device * ) ; void (*shutdown)(struct spi_device * ) ; int (*suspend)(struct spi_device * , pm_message_t ) ; int (*resume)(struct spi_device * ) ; struct device_driver driver ; }; struct spi_master { struct device dev ; s16 bus_num ; u16 num_chipselect ; u16 dma_alignment ; u16 mode_bits ; u16 flags ; int (*setup)(struct spi_device * ) ; int (*transfer)(struct spi_device * , struct spi_message * ) ; void (*cleanup)(struct spi_device * ) ; }; struct spi_transfer { void const *tx_buf ; void *rx_buf ; unsigned int len ; dma_addr_t tx_dma ; dma_addr_t rx_dma ; unsigned char cs_change : 1 ; u8 bits_per_word ; u16 delay_usecs ; u32 speed_hz ; struct list_head transfer_list ; }; struct spi_message { struct list_head transfers ; struct spi_device *spi ; unsigned char is_dma_mapped : 1 ; void (*complete)(void * ) ; void *context ; unsigned int actual_length ; int status ; struct list_head queue ; void *state ; }; struct pcf2123_sysfs_reg { struct device_attribute attr ; char name[2U] ; }; struct pcf2123_plat_data { struct rtc_device *rtc ; struct pcf2123_sysfs_reg regs[16U] ; }; long ldv__builtin_expect(long exp , long c ) ; extern long long dynamic_debug_enabled ; extern long long dynamic_debug_enabled2 ; extern int strict_strtoul(char const * , unsigned int , unsigned long * ) ; extern int sprintf(char * , char const * , ...) ; extern int printk(char const * , ...) ; extern void *memset(void * , int , size_t ) ; __inline static int get_order(unsigned long size ) { int order ; { size = (size - 1UL) >> 11; order = -1; ldv_4325: size = size >> 1; order = order + 1; if (size != 0UL) { goto ldv_4325; } else { } return (order); } } __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 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 int debug_locks ; extern void lockdep_rcu_dereference(char const * , int const ) ; extern unsigned int bcd2bin(unsigned char ) ; extern unsigned char bin2bcd(unsigned int ) ; extern void __const_udelay(unsigned long ) ; __inline static char const *kobject_name(struct kobject const *kobj ) { { return ((char const *)kobj->name); } } extern unsigned long __get_free_pages(gfp_t , unsigned int ) ; extern int rcu_scheduler_active ; __inline static int debug_lockdep_rcu_enabled(void) { long tmp ; long tmp___0 ; int tmp___1 ; { tmp = ldv__builtin_expect(rcu_scheduler_active != 0, 1L); if (tmp != 0L) { tmp___0 = ldv__builtin_expect(debug_locks != 0, 1L); if (tmp___0 != 0L) { tmp___1 = 1; } else { tmp___1 = 0; } } else { tmp___1 = 0; } return (tmp___1); } } __inline static int rcu_read_lock_sched_held(void) { { return (1); } } __inline static void rcu_read_lock_sched_notrace(void) { { return; } } extern void kfree(void const * ) ; extern struct tracepoint __tracepoint_kmalloc ; __inline static void trace_kmalloc(unsigned long call_site , void const *ptr , size_t bytes_req , size_t bytes_alloc , gfp_t gfp_flags ) { void **it_func ; int tmp ; int tmp___0 ; void **_________p1 ; long tmp___1 ; { tmp___1 = ldv__builtin_expect(__tracepoint_kmalloc.state != 0, 0L); if (tmp___1 != 0L) { rcu_read_lock_sched_notrace(); tmp = debug_lockdep_rcu_enabled(); if (tmp != 0) { tmp___0 = rcu_read_lock_sched_held(); if (tmp___0 == 0) { lockdep_rcu_dereference("include/trace/events/kmem.h", 87); } else { } } else { } _________p1 = *((void ** volatile *)(& __tracepoint_kmalloc.funcs)); it_func = _________p1; if ((unsigned long )it_func != (unsigned long )((void **)0)) { ldv_10993: (*((void (*)(unsigned long , void const * , size_t , size_t , gfp_t ))*it_func))(call_site, ptr, bytes_req, bytes_alloc, gfp_flags); it_func = it_func + 1; if ((unsigned long )*it_func != (unsigned long )((void *)0)) { goto ldv_10993; } else { } } else { } rcu_read_lock_sched_notrace(); } else { } return; } } __inline static void kmemleak_alloc(void const *ptr , size_t size , int min_count , gfp_t gfp ) { { return; } } extern struct kmem_cache kmalloc_caches[22U] ; __inline static int kmalloc_index(size_t size ) { { if (size == 0UL) { return (0); } else { } if (size <= 8UL) { return (3); } else { } if (size > 64UL && size <= 96UL) { return (1); } else { } if (size > 128UL && size <= 192UL) { return (2); } else { } if (size <= 8UL) { return (3); } else { } if (size <= 16UL) { return (4); } else { } if (size <= 32UL) { return (5); } else { } if (size <= 64UL) { return (6); } else { } if (size <= 128UL) { return (7); } else { } if (size <= 256UL) { return (8); } else { } if (size <= 512UL) { return (9); } else { } if (size <= 1024UL) { return (10); } else { } if (size <= 2048UL) { return (11); } else { } if (size <= 4096UL) { return (12); } else { } if (size <= 8192UL) { return (13); } else { } if (size <= 16384UL) { return (14); } else { } if (size <= 32768UL) { return (15); } else { } if (size <= 65536UL) { return (16); } else { } if (size <= 131072UL) { return (17); } else { } if (size <= 262144UL) { return (18); } else { } if (size <= 524288UL) { return (19); } else { } if (size <= 1048576UL) { return (20); } else { } if (size <= 2097152UL) { return (21); } else { } return (-1); } } __inline static struct kmem_cache *kmalloc_slab(size_t size ) { int index ; int tmp ; { tmp = kmalloc_index(size); index = tmp; if (index == 0) { return (0); } else { } return ((struct kmem_cache *)(& kmalloc_caches) + (unsigned long )index); } } extern void *__kmalloc(size_t , gfp_t ) ; extern void *kmem_cache_alloc_notrace(struct kmem_cache * , gfp_t ) ; __inline static void *kmalloc_large(size_t size , gfp_t flags ) { unsigned int order ; int tmp ; void *ret ; unsigned long tmp___0 ; { tmp = get_order(size); order = (unsigned int )tmp; tmp___0 = __get_free_pages(flags | 16384U, order); ret = (void *)tmp___0; kmemleak_alloc((void const *)ret, size, 1, flags); trace_kmalloc((unsigned long )((void *)0), (void const *)ret, size, 4096UL << (int )order, flags); return (ret); } } __inline static void *kmalloc(size_t size , gfp_t flags ) { void *ret ; void *tmp ; struct kmem_cache *s ; struct kmem_cache *tmp___0 ; void *tmp___1 ; { if (0) { if (size > 8192UL) { tmp = kmalloc_large(size, flags); return (tmp); } else { } if ((flags & 1U) == 0U) { tmp___0 = kmalloc_slab(size); s = tmp___0; if ((unsigned long )s == (unsigned long )((struct kmem_cache *)0)) { return (16); } else { } ret = kmem_cache_alloc_notrace(s, flags); trace_kmalloc((unsigned long )((void *)0), (void const *)ret, size, (size_t )s->size, flags); return (ret); } else { } } else { } tmp___1 = __kmalloc(size, flags); return (tmp___1); } } __inline static void *kzalloc(size_t size , gfp_t flags ) { void *tmp ; { tmp = kmalloc(size, flags | 32768U); return (tmp); } } extern struct module __this_module ; extern void driver_unregister(struct device_driver * ) ; extern int device_create_file(struct device * , struct device_attribute const * ) ; extern void device_remove_file(struct device * , struct device_attribute const * ) ; __inline static char const *dev_name(struct device const *dev ) { char const *tmp ; { tmp = kobject_name(& dev->kobj); return (tmp); } } extern char const *dev_driver_string(struct device const * ) ; extern int rtc_valid_tm(struct rtc_time * ) ; extern struct rtc_device *rtc_device_register(char const * , struct device * , struct rtc_class_ops const * , struct module * ) ; extern void rtc_device_unregister(struct rtc_device * ) ; extern struct bus_type spi_bus_type ; __inline static struct spi_device *to_spi_device(struct device *dev ) { struct device const *__mptr ; struct spi_device *tmp ; { if ((unsigned long )dev != (unsigned long )((struct device *)0)) { __mptr = (struct device const *)dev; tmp = (struct spi_device *)__mptr; } else { tmp = 0; } return (tmp); } } extern int spi_register_driver(struct spi_driver * ) ; __inline static void spi_unregister_driver(struct spi_driver *sdrv ) { { if ((unsigned long )sdrv != (unsigned long )((struct spi_driver *)0)) { driver_unregister(& sdrv->driver); } else { } return; } } __inline static void spi_message_init(struct spi_message *m ) { { memset((void *)m, 0, 80UL); INIT_LIST_HEAD(& m->transfers); return; } } __inline static void spi_message_add_tail(struct spi_transfer *t , struct spi_message *m ) { { list_add_tail(& t->transfer_list, & m->transfers); return; } } extern int spi_sync(struct spi_device * , struct spi_message * ) ; __inline static int spi_write(struct spi_device *spi , u8 const *buf , size_t len ) { struct spi_transfer t ; struct spi_message m ; int tmp ; { t.tx_buf = (void const *)buf; t.rx_buf = 0; t.len = (unsigned int )len; t.tx_dma = 0ULL; t.rx_dma = 0ULL; t.cs_change = (unsigned char)0; t.bits_per_word = (unsigned char)0; t.delay_usecs = (unsigned short)0; t.speed_hz = 0U; t.transfer_list.next = 0; t.transfer_list.prev = 0; spi_message_init(& m); spi_message_add_tail(& t, & m); tmp = spi_sync(spi, & m); return (tmp); } } extern int spi_write_then_read(struct spi_device * , u8 const * , unsigned int , u8 * , unsigned int ) ; static struct spi_driver pcf2123_driver ; __inline static void pcf2123_delay_trec(void) { { __const_udelay(150UL); return; } } static ssize_t pcf2123_show(struct device *dev , struct device_attribute *attr , char *buffer ) { struct spi_device *spi ; struct spi_device *tmp ; struct pcf2123_sysfs_reg *r ; u8 txbuf[1U] ; u8 rxbuf[1U] ; unsigned long reg ; int ret ; struct device_attribute const *__mptr ; int tmp___0 ; int tmp___1 ; { tmp = to_spi_device(dev); spi = tmp; __mptr = (struct device_attribute const *)attr; r = (struct pcf2123_sysfs_reg *)__mptr; tmp___0 = strict_strtoul((char const *)(& r->name), 16U, & reg); if (tmp___0 != 0) { return (-22L); } else { } txbuf[0] = (unsigned int )((u8 )reg) | 144U; ret = spi_write_then_read(spi, (u8 const *)(& txbuf), 1U, (u8 *)(& rxbuf), 1U); if (ret < 0) { return (-5L); } else { } pcf2123_delay_trec(); tmp___1 = sprintf(buffer, "0x%x\n", (int )rxbuf[0]); return ((ssize_t )tmp___1); } } static ssize_t pcf2123_store(struct device *dev , struct device_attribute *attr , char const *buffer , size_t count ) { struct spi_device *spi ; struct spi_device *tmp ; struct pcf2123_sysfs_reg *r ; u8 txbuf[2U] ; unsigned long reg ; unsigned long val ; int ret ; struct device_attribute const *__mptr ; int tmp___0 ; int tmp___1 ; { tmp = to_spi_device(dev); spi = tmp; __mptr = (struct device_attribute const *)attr; r = (struct pcf2123_sysfs_reg *)__mptr; tmp___0 = strict_strtoul((char const *)(& r->name), 16U, & reg); if (tmp___0 != 0) { return (-22L); } else { tmp___1 = strict_strtoul(buffer, 10U, & val); if (tmp___1 != 0) { return (-22L); } else { } } txbuf[0] = (unsigned int )((u8 )reg) | 16U; txbuf[1] = (u8 )val; ret = spi_write(spi, (u8 const *)(& txbuf), 2UL); if (ret < 0) { return (-5L); } else { } pcf2123_delay_trec(); return ((ssize_t )count); } } static int pcf2123_rtc_read_time(struct device *dev , struct rtc_time *tm ) { struct spi_device *spi ; struct spi_device *tmp ; u8 txbuf[1U] ; u8 rxbuf[7U] ; int ret ; unsigned int tmp___0 ; unsigned int tmp___1 ; unsigned int tmp___2 ; unsigned int tmp___3 ; unsigned int tmp___4 ; unsigned int tmp___5 ; struct _ddebug descriptor ; char const *tmp___6 ; char const *tmp___7 ; int __ret ; long tmp___8 ; long tmp___9 ; long tmp___10 ; char const *tmp___11 ; char const *tmp___12 ; int tmp___13 ; { tmp = to_spi_device(dev); spi = tmp; txbuf[0] = 146U; ret = spi_write_then_read(spi, (u8 const *)(& txbuf), 1U, (u8 *)(& rxbuf), 7U); if (ret < 0) { return (ret); } else { } pcf2123_delay_trec(); tmp___0 = bcd2bin((int )rxbuf[0] & 127); tm->tm_sec = (int )tmp___0; tmp___1 = bcd2bin((int )rxbuf[1] & 127); tm->tm_min = (int )tmp___1; tmp___2 = bcd2bin((int )rxbuf[2] & 63); tm->tm_hour = (int )tmp___2; tmp___3 = bcd2bin((int )rxbuf[3] & 63); tm->tm_mday = (int )tmp___3; tm->tm_wday = (int )rxbuf[4] & 7; tmp___4 = bcd2bin((int )rxbuf[5] & 31); tm->tm_mon = (int )(tmp___4 - 1U); tmp___5 = bcd2bin((int )rxbuf[6]); tm->tm_year = (int )tmp___5; if (tm->tm_year <= 69) { tm->tm_year = tm->tm_year + 100; } else { } descriptor.modname = "rtc_pcf2123"; descriptor.function = "pcf2123_rtc_read_time"; descriptor.filename = "/work/ldvuser/novikov/work/current--X--drivers/rtc/rtc-pcf2123.ko--X--defaultlinux--X--32_7a--X--cpachecker/linux/csd_deg_dscv/11/dscv_tempdir/dscv/ri/32_7a/drivers/rtc/rtc-pcf2123.c.prepared"; descriptor.format = "%s: tm is secs=%d, mins=%d, hours=%d, mday=%d, mon=%d, year=%d, wday=%d\n"; descriptor.primary_hash = 51; descriptor.secondary_hash = 45; descriptor.lineno = 166U; descriptor.flags = 0U; __ret = 0; tmp___9 = ldv__builtin_expect((dynamic_debug_enabled & 2251799813685248LL) != 0LL, 0L); if (tmp___9 != 0L) { tmp___10 = ldv__builtin_expect((dynamic_debug_enabled2 & 35184372088832LL) != 0LL, 0L); if (tmp___10 != 0L) { tmp___8 = ldv__builtin_expect((unsigned int )descriptor.flags != 0U, 0L); if (tmp___8 != 0L) { __ret = 1; } else { } } else { } } else { } if (__ret != 0) { tmp___6 = dev_name((struct device const *)dev); tmp___7 = dev_driver_string((struct device const *)dev); printk("<7>%s %s: %s: tm is secs=%d, mins=%d, hours=%d, mday=%d, mon=%d, year=%d, wday=%d\n", tmp___7, tmp___6, "pcf2123_rtc_read_time", tm->tm_sec, tm->tm_min, tm->tm_hour, tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); } else { } tmp___13 = rtc_valid_tm(tm); if (tmp___13 < 0) { tmp___11 = dev_name((struct device const *)dev); tmp___12 = dev_driver_string((struct device const *)dev); printk("<3>%s %s: retrieved date/time is not valid.\n", tmp___12, tmp___11); } else { } return (0); } } static int pcf2123_rtc_set_time(struct device *dev , struct rtc_time *tm ) { struct spi_device *spi ; struct spi_device *tmp ; u8 txbuf[8U] ; int ret ; struct _ddebug descriptor ; char const *tmp___0 ; char const *tmp___1 ; int __ret ; long tmp___2 ; long tmp___3 ; long tmp___4 ; { tmp = to_spi_device(dev); spi = tmp; descriptor.modname = "rtc_pcf2123"; descriptor.function = "pcf2123_rtc_set_time"; descriptor.filename = "/work/ldvuser/novikov/work/current--X--drivers/rtc/rtc-pcf2123.ko--X--defaultlinux--X--32_7a--X--cpachecker/linux/csd_deg_dscv/11/dscv_tempdir/dscv/ri/32_7a/drivers/rtc/rtc-pcf2123.c.prepared"; descriptor.format = "%s: tm is secs=%d, mins=%d, hours=%d, mday=%d, mon=%d, year=%d, wday=%d\n"; descriptor.primary_hash = 51; descriptor.secondary_hash = 45; descriptor.lineno = 187U; descriptor.flags = 0U; __ret = 0; tmp___3 = ldv__builtin_expect((dynamic_debug_enabled & 2251799813685248LL) != 0LL, 0L); if (tmp___3 != 0L) { tmp___4 = ldv__builtin_expect((dynamic_debug_enabled2 & 35184372088832LL) != 0LL, 0L); if (tmp___4 != 0L) { tmp___2 = ldv__builtin_expect((unsigned int )descriptor.flags != 0U, 0L); if (tmp___2 != 0L) { __ret = 1; } else { } } else { } } else { } if (__ret != 0) { tmp___0 = dev_name((struct device const *)dev); tmp___1 = dev_driver_string((struct device const *)dev); printk("<7>%s %s: %s: tm is secs=%d, mins=%d, hours=%d, mday=%d, mon=%d, year=%d, wday=%d\n", tmp___1, tmp___0, "pcf2123_rtc_set_time", tm->tm_sec, tm->tm_min, tm->tm_hour, tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); } else { } txbuf[0] = 16U; txbuf[1] = 32U; ret = spi_write(spi, (u8 const *)(& txbuf), 2UL); if (ret < 0) { return (ret); } else { } pcf2123_delay_trec(); txbuf[0] = 18U; txbuf[1] = bin2bcd((unsigned int )tm->tm_sec & 127U); txbuf[2] = bin2bcd((unsigned int )tm->tm_min & 127U); txbuf[3] = bin2bcd((unsigned int )tm->tm_hour & 63U); txbuf[4] = bin2bcd((unsigned int )tm->tm_mday & 63U); txbuf[5] = (unsigned int )((u8 )tm->tm_wday) & 7U; txbuf[6] = bin2bcd((unsigned int )(tm->tm_mon + 1) & 31U); txbuf[7] = bin2bcd((unsigned int )(tm->tm_year <= 99 ? tm->tm_year : tm->tm_year + -100)); ret = spi_write(spi, (u8 const *)(& txbuf), 8UL); if (ret < 0) { return (ret); } else { } pcf2123_delay_trec(); txbuf[0] = 16U; txbuf[1] = 0U; ret = spi_write(spi, (u8 const *)(& txbuf), 2UL); if (ret < 0) { return (ret); } else { } pcf2123_delay_trec(); return (0); } } static struct rtc_class_ops const pcf2123_rtc_ops = {0, 0, 0, & pcf2123_rtc_read_time, & pcf2123_rtc_set_time, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static int pcf2123_probe(struct spi_device *spi ) { struct rtc_device *rtc ; struct pcf2123_plat_data *pdata ; u8 txbuf[2U] ; u8 rxbuf[2U] ; int ret ; int i ; void *tmp ; struct _ddebug descriptor ; char const *tmp___0 ; char const *tmp___1 ; int __ret ; long tmp___2 ; long tmp___3 ; long tmp___4 ; struct _ddebug descriptor___0 ; char const *tmp___5 ; char const *tmp___6 ; int __ret___0 ; long tmp___7 ; long tmp___8 ; long tmp___9 ; struct _ddebug descriptor___1 ; char const *tmp___10 ; char const *tmp___11 ; int __ret___1 ; long tmp___12 ; long tmp___13 ; long tmp___14 ; struct _ddebug descriptor___2 ; char const *tmp___15 ; char const *tmp___16 ; int __ret___2 ; long tmp___17 ; long tmp___18 ; long tmp___19 ; char const *tmp___20 ; char const *tmp___21 ; char const *tmp___22 ; char const *tmp___23 ; char const *tmp___24 ; char const *tmp___25 ; char const *tmp___26 ; char const *tmp___27 ; long tmp___28 ; long tmp___29 ; char const *tmp___30 ; char const *tmp___31 ; { tmp = kzalloc(1032UL, 208U); pdata = (struct pcf2123_plat_data *)tmp; if ((unsigned long )pdata == (unsigned long )((struct pcf2123_plat_data *)0)) { return (-12); } else { } spi->dev.platform_data = (void *)pdata; txbuf[0] = 16U; txbuf[1] = 88U; descriptor.modname = "rtc_pcf2123"; descriptor.function = "pcf2123_probe"; descriptor.filename = "/work/ldvuser/novikov/work/current--X--drivers/rtc/rtc-pcf2123.ko--X--defaultlinux--X--32_7a--X--cpachecker/linux/csd_deg_dscv/11/dscv_tempdir/dscv/ri/32_7a/drivers/rtc/rtc-pcf2123.c.prepared"; descriptor.format = "resetting RTC (0x%02X 0x%02X)\n"; descriptor.primary_hash = 51; descriptor.secondary_hash = 45; descriptor.lineno = 244U; descriptor.flags = 0U; __ret = 0; tmp___3 = ldv__builtin_expect((dynamic_debug_enabled & 2251799813685248LL) != 0LL, 0L); if (tmp___3 != 0L) { tmp___4 = ldv__builtin_expect((dynamic_debug_enabled2 & 35184372088832LL) != 0LL, 0L); if (tmp___4 != 0L) { tmp___2 = ldv__builtin_expect((unsigned int )descriptor.flags != 0U, 0L); if (tmp___2 != 0L) { __ret = 1; } else { } } else { } } else { } if (__ret != 0) { tmp___0 = dev_name((struct device const *)(& spi->dev)); tmp___1 = dev_driver_string((struct device const *)(& spi->dev)); printk("<7>%s %s: resetting RTC (0x%02X 0x%02X)\n", tmp___1, tmp___0, (int )txbuf[0], (int )txbuf[1]); } else { } ret = spi_write(spi, (u8 const *)(& txbuf), 2UL); if (ret < 0) { goto kfree_exit; } else { } pcf2123_delay_trec(); txbuf[0] = 16U; txbuf[1] = 32U; descriptor___0.modname = "rtc_pcf2123"; descriptor___0.function = "pcf2123_probe"; descriptor___0.filename = "/work/ldvuser/novikov/work/current--X--drivers/rtc/rtc-pcf2123.ko--X--defaultlinux--X--32_7a--X--cpachecker/linux/csd_deg_dscv/11/dscv_tempdir/dscv/ri/32_7a/drivers/rtc/rtc-pcf2123.c.prepared"; descriptor___0.format = "stopping RTC (0x%02X 0x%02X)\n"; descriptor___0.primary_hash = 51; descriptor___0.secondary_hash = 45; descriptor___0.lineno = 254U; descriptor___0.flags = 0U; __ret___0 = 0; tmp___8 = ldv__builtin_expect((dynamic_debug_enabled & 2251799813685248LL) != 0LL, 0L); if (tmp___8 != 0L) { tmp___9 = ldv__builtin_expect((dynamic_debug_enabled2 & 35184372088832LL) != 0LL, 0L); if (tmp___9 != 0L) { tmp___7 = ldv__builtin_expect((unsigned int )descriptor___0.flags != 0U, 0L); if (tmp___7 != 0L) { __ret___0 = 1; } else { } } else { } } else { } if (__ret___0 != 0) { tmp___5 = dev_name((struct device const *)(& spi->dev)); tmp___6 = dev_driver_string((struct device const *)(& spi->dev)); printk("<7>%s %s: stopping RTC (0x%02X 0x%02X)\n", tmp___6, tmp___5, (int )txbuf[0], (int )txbuf[1]); } else { } ret = spi_write(spi, (u8 const *)(& txbuf), 2UL); if (ret < 0) { goto kfree_exit; } else { } pcf2123_delay_trec(); txbuf[0] = 144U; descriptor___1.modname = "rtc_pcf2123"; descriptor___1.function = "pcf2123_probe"; descriptor___1.filename = "/work/ldvuser/novikov/work/current--X--drivers/rtc/rtc-pcf2123.ko--X--defaultlinux--X--32_7a--X--cpachecker/linux/csd_deg_dscv/11/dscv_tempdir/dscv/ri/32_7a/drivers/rtc/rtc-pcf2123.c.prepared"; descriptor___1.format = "checking for presence of RTC (0x%02X)\n"; descriptor___1.primary_hash = 51; descriptor___1.secondary_hash = 45; descriptor___1.lineno = 263U; descriptor___1.flags = 0U; __ret___1 = 0; tmp___13 = ldv__builtin_expect((dynamic_debug_enabled & 2251799813685248LL) != 0LL, 0L); if (tmp___13 != 0L) { tmp___14 = ldv__builtin_expect((dynamic_debug_enabled2 & 35184372088832LL) != 0LL, 0L); if (tmp___14 != 0L) { tmp___12 = ldv__builtin_expect((unsigned int )descriptor___1.flags != 0U, 0L); if (tmp___12 != 0L) { __ret___1 = 1; } else { } } else { } } else { } if (__ret___1 != 0) { tmp___10 = dev_name((struct device const *)(& spi->dev)); tmp___11 = dev_driver_string((struct device const *)(& spi->dev)); printk("<7>%s %s: checking for presence of RTC (0x%02X)\n", tmp___11, tmp___10, (int )txbuf[0]); } else { } ret = spi_write_then_read(spi, (u8 const *)(& txbuf), 1U, (u8 *)(& rxbuf), 2U); descriptor___2.modname = "rtc_pcf2123"; descriptor___2.function = "pcf2123_probe"; descriptor___2.filename = "/work/ldvuser/novikov/work/current--X--drivers/rtc/rtc-pcf2123.ko--X--defaultlinux--X--32_7a--X--cpachecker/linux/csd_deg_dscv/11/dscv_tempdir/dscv/ri/32_7a/drivers/rtc/rtc-pcf2123.c.prepared"; descriptor___2.format = "received data from RTC (0x%02X 0x%02X)\n"; descriptor___2.primary_hash = 51; descriptor___2.secondary_hash = 45; descriptor___2.lineno = 267U; descriptor___2.flags = 0U; __ret___2 = 0; tmp___18 = ldv__builtin_expect((dynamic_debug_enabled & 2251799813685248LL) != 0LL, 0L); if (tmp___18 != 0L) { tmp___19 = ldv__builtin_expect((dynamic_debug_enabled2 & 35184372088832LL) != 0LL, 0L); if (tmp___19 != 0L) { tmp___17 = ldv__builtin_expect((unsigned int )descriptor___2.flags != 0U, 0L); if (tmp___17 != 0L) { __ret___2 = 1; } else { } } else { } } else { } if (__ret___2 != 0) { tmp___15 = dev_name((struct device const *)(& spi->dev)); tmp___16 = dev_driver_string((struct device const *)(& spi->dev)); printk("<7>%s %s: received data from RTC (0x%02X 0x%02X)\n", tmp___16, tmp___15, (int )rxbuf[0], (int )rxbuf[1]); } else { } if (ret < 0) { goto kfree_exit; } else { } pcf2123_delay_trec(); if (((int )rxbuf[0] & 32) == 0) { tmp___20 = dev_name((struct device const *)(& spi->dev)); tmp___21 = dev_driver_string((struct device const *)(& spi->dev)); printk("<3>%s %s: chip not found\n", tmp___21, tmp___20); goto kfree_exit; } else { } tmp___22 = dev_name((struct device const *)(& spi->dev)); tmp___23 = dev_driver_string((struct device const *)(& spi->dev)); printk("<6>%s %s: chip found, driver version 0.6\n", tmp___23, tmp___22); tmp___24 = dev_name((struct device const *)(& spi->dev)); tmp___25 = dev_driver_string((struct device const *)(& spi->dev)); printk("<6>%s %s: spiclk %u KHz.\n", tmp___25, tmp___24, (spi->max_speed_hz + 500U) / 1000U); txbuf[0] = 16U; txbuf[1] = 0U; ret = spi_write(spi, (u8 const *)(& txbuf), 2UL); if (ret < 0) { goto kfree_exit; } else { } pcf2123_delay_trec(); rtc = rtc_device_register(pcf2123_driver.driver.name, & spi->dev, & pcf2123_rtc_ops, & __this_module); tmp___29 = IS_ERR((void const *)rtc); if (tmp___29 != 0L) { tmp___26 = dev_name((struct device const *)(& spi->dev)); tmp___27 = dev_driver_string((struct device const *)(& spi->dev)); printk("<3>%s %s: failed to register.\n", tmp___27, tmp___26); tmp___28 = PTR_ERR((void const *)rtc); ret = (int )tmp___28; goto kfree_exit; } else { } pdata->rtc = rtc; i = 0; goto ldv_18787; ldv_18786: sprintf((char *)(& pdata->regs[i].name), "%1x", i); pdata->regs[i].attr.attr.mode = 420U; pdata->regs[i].attr.attr.name = (char const *)(& pdata->regs[i].name); pdata->regs[i].attr.show = & pcf2123_show; pdata->regs[i].attr.store = & pcf2123_store; ret = device_create_file(& spi->dev, (struct device_attribute const *)(& pdata->regs[i].attr)); if (ret != 0) { tmp___30 = dev_name((struct device const *)(& spi->dev)); tmp___31 = dev_driver_string((struct device const *)(& spi->dev)); printk("<3>%s %s: Unable to create sysfs %s\n", tmp___31, tmp___30, (char *)(& pdata->regs[i].name)); goto sysfs_exit; } else { } i = i + 1; ldv_18787: ; if (i <= 15) { goto ldv_18786; } else { } return (0); sysfs_exit: i = i - 1; goto ldv_18790; ldv_18789: device_remove_file(& spi->dev, (struct device_attribute const *)(& pdata->regs[i].attr)); i = i - 1; ldv_18790: ; if (i >= 0) { goto ldv_18789; } else { } kfree_exit: kfree((void const *)pdata); spi->dev.platform_data = 0; return (ret); } } static int pcf2123_remove(struct spi_device *spi ) { struct pcf2123_plat_data *pdata ; int i ; struct rtc_device *rtc ; { pdata = (struct pcf2123_plat_data *)spi->dev.platform_data; if ((unsigned long )pdata != (unsigned long )((struct pcf2123_plat_data *)0)) { rtc = pdata->rtc; if ((unsigned long )rtc != (unsigned long )((struct rtc_device *)0)) { rtc_device_unregister(rtc); } else { } i = 0; goto ldv_18799; ldv_18798: ; if ((int )((signed char )pdata->regs[i].name[0]) != 0) { device_remove_file(& spi->dev, (struct device_attribute const *)(& pdata->regs[i].attr)); } else { } i = i + 1; ldv_18799: ; if (i <= 15) { goto ldv_18798; } else { } kfree((void const *)pdata); } else { } return (0); } } static struct spi_driver pcf2123_driver = {0, & pcf2123_probe, & pcf2123_remove, 0, 0, 0, {"rtc-pcf2123", & spi_bus_type, & __this_module, 0, (_Bool)0, 0, 0, 0, 0, 0, 0, 0, 0}}; static int pcf2123_init(void) { int tmp ; { tmp = spi_register_driver(& pcf2123_driver); return (tmp); } } static void pcf2123_exit(void) { { spi_unregister_driver(& pcf2123_driver); return; } } void ldv_check_final_state(void) ; extern void ldv_check_return_value(int ) ; extern void ldv_check_return_value_probe(int ) ; void ldv_initialize(void) ; extern void ldv_handler_precall(void) ; extern int nondet_int(void) ; int LDV_IN_INTERRUPT ; int main(void) { struct device *var_group1 ; struct rtc_time *var_group2 ; struct spi_device *var_group3 ; int res_pcf2123_probe_5 ; int ldv_s_pcf2123_driver_spi_driver ; int tmp ; int tmp___0 ; int tmp___1 ; { ldv_s_pcf2123_driver_spi_driver = 0; LDV_IN_INTERRUPT = 1; ldv_initialize(); ldv_handler_precall(); tmp = pcf2123_init(); if (tmp != 0) { goto ldv_final; } else { } goto ldv_18852; ldv_18851: tmp___0 = nondet_int(); switch (tmp___0) { case 0: ldv_handler_precall(); pcf2123_rtc_read_time(var_group1, var_group2); goto ldv_18845; case 1: ldv_handler_precall(); pcf2123_rtc_set_time(var_group1, var_group2); goto ldv_18845; case 2: ; if (ldv_s_pcf2123_driver_spi_driver == 0) { res_pcf2123_probe_5 = pcf2123_probe(var_group3); ldv_check_return_value(res_pcf2123_probe_5); ldv_check_return_value_probe(res_pcf2123_probe_5); if (res_pcf2123_probe_5 != 0) { goto ldv_module_exit; } else { } ldv_s_pcf2123_driver_spi_driver = ldv_s_pcf2123_driver_spi_driver + 1; } else { } goto ldv_18845; case 3: ; if (ldv_s_pcf2123_driver_spi_driver == 1) { ldv_handler_precall(); pcf2123_remove(var_group3); ldv_s_pcf2123_driver_spi_driver = 0; } else { } goto ldv_18845; default: ; goto ldv_18845; } ldv_18845: ; ldv_18852: tmp___1 = nondet_int(); if (tmp___1 != 0 || ldv_s_pcf2123_driver_spi_driver != 0) { goto ldv_18851; } else { } ldv_module_exit: ldv_handler_precall(); pcf2123_exit(); ldv_final: ldv_check_final_state(); return 0; } } long ldv__builtin_expect(long exp , long c ) { { return (exp); } } void ldv_initialize(void) { { return; } } void ldv_check_final_state(void) { { return; } }